(0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (27.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (11.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$5y6YZ693yC4RTbq03bYRrO1lA7eXU3iiFW4kZUBRDu.sjTWwVlmaO"], ["created_at", "2015-02-26 18:08:17.902203"], ["updated_at", "2015-02-26 18:08:17.902203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (29.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:08:17.922426"], ["user_id", "70b47066-bde2-11e4-97a9-705681abff85"], ["created_at", "2015-02-26 18:08:17.928492"], ["updated_at", "2015-02-26 18:08:17.928492"], ["token", "E43JqdQ8gBa5Ug45MqF2C0q22fhPpVrrtPJ9CI42Xy0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$XBnrbpqHQ5cnzl/edbKDn.URAlCSzhg/nw3OSquPjopJdDPmzUnOm"], ["created_at", "2015-02-26 18:08:17.970487"], ["updated_at", "2015-02-26 18:08:17.970487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:08:17.972275"], ["user_id", "70bdf4e2-bde2-11e4-8121-705681abff85"], ["created_at", "2015-02-26 18:08:17.973200"], ["updated_at", "2015-02-26 18:08:17.973200"], ["token", "Kldpjnv_lyC2HNoJ1VS1ZlUa_1nEuGT6Gk03uJKSYzU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (24.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ZFz6Hi4i6pz/gkQF4yGINexWfdw1g3xt.D0Eznie61ZC74hrzrDzi"], ["created_at", "2015-02-26 18:09:57.742891"], ["updated_at", "2015-02-26 18:09:57.742891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (24.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:09:57.756177"], ["user_id", "ac365d16-bde2-11e4-abd1-705681abff85"], ["created_at", "2015-02-26 18:09:57.762339"], ["updated_at", "2015-02-26 18:09:57.762339"], ["token", "pzFo1kUrmu_ahPWDJi11zis3VngTyX1sw6n5HjQ-PU0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "clubhouse_organizations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-02-26 18:09:57.793269"], ["updated_at", "2015-02-26 18:09:57.793269"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (ac3dbe58-bde2-11e4-9288-705681abff85, null, null, 2015-02-26 18:09:57.793269, 2015-02-26 18:09:57.793269). : INSERT INTO "clubhouse_organizations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"  (0.9ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$J.hscGNLxT0IVQ1UXPPyz.jHQfd62C7oiuDuXzyZ1u1t.XzqbJ7m."], ["created_at", "2015-02-26 18:09:57.804133"], ["updated_at", "2015-02-26 18:09:57.804133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:09:57.806593"], ["user_id", "ac3f6384-bde2-11e4-b84f-705681abff85"], ["created_at", "2015-02-26 18:09:57.807700"], ["updated_at", "2015-02-26 18:09:57.807700"], ["token", "c_33ptRrjtUc349R75fo3pHhA1mwGa8znO2o58ELFRQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-02-26 18:09:57.810332"], ["updated_at", "2015-02-26 18:09:57.810332"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (ac404722-bde2-11e4-8719-705681abff85, null, null, 2015-02-26 18:09:57.810332, 2015-02-26 18:09:57.810332). : INSERT INTO "clubhouse_organizations" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$iBefC61apgkscuixgOUJPu7AAMIsp0PkUsejMZHfj00uPJumKQzji"], ["created_at", "2015-02-26 18:10:51.306816"], ["updated_at", "2015-02-26 18:10:51.306816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:10:51.316096"], ["user_id", "cc2363c6-bde2-11e4-9675-705681abff85"], ["created_at", "2015-02-26 18:10:51.321893"], ["updated_at", "2015-02-26 18:10:51.321893"], ["token", "0ccxkFzCdxSumA9J5yfnqGBSRQy5Ewwz4yIs872puwQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:10:51.329100"], ["updated_at", "2015-02-26 18:10:51.329100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:10:51.357079"], ["updated_at", "2015-02-26 18:10:51.357079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:10:51 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$zLy7FpoC6tl1SMlh3tZSeeGqKlulCQrQ3xIHK3SQjCsSKdz88OY/2"], ["created_at", "2015-02-26 18:10:51.373931"], ["updated_at", "2015-02-26 18:10:51.373931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:10:51.375648"], ["user_id", "cc2d753c-bde2-11e4-bab6-705681abff85"], ["created_at", "2015-02-26 18:10:51.376436"], ["updated_at", "2015-02-26 18:10:51.376436"], ["token", "42Bk5AWpo7-8tjlgWg3x-zpi3M6qT2pRio1qvHMXdGo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:10:51.378733"], ["updated_at", "2015-02-26 18:10:51.378733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:10:51.380574"], ["updated_at", "2015-02-26 18:10:51.380574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:10:51 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$rePxIDKOznWYX95MPdOpEeFCOYlWFOAbiz4GwB3TwJZSHgUP.lxxm"], ["created_at", "2015-02-26 18:11:41.021922"], ["updated_at", "2015-02-26 18:11:41.021922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:11:41.033686"], ["user_id", "e9c551c8-bde2-11e4-92b3-705681abff85"], ["created_at", "2015-02-26 18:11:41.041908"], ["updated_at", "2015-02-26 18:11:41.041908"], ["token", "A5f9b0VvxFrvP1husR5hr9PeVZlEsYdsgY5kJHkjqLY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:11:41.049258"], ["updated_at", "2015-02-26 18:11:41.049258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:11:41.051753"], ["updated_at", "2015-02-26 18:11:41.051753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:11:41 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$mN4J3pf17fDEaAevLibQJeb3i9G1zXcH1R7VXN20vvXp/moXF9t9O"], ["created_at", "2015-02-26 18:11:41.065339"], ["updated_at", "2015-02-26 18:11:41.065339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:11:41.067073"], ["user_id", "e9cbc224-bde2-11e4-bd14-705681abff85"], ["created_at", "2015-02-26 18:11:41.067907"], ["updated_at", "2015-02-26 18:11:41.067907"], ["token", "rd6fvDj9NjdBQkBo_OvB1ASTAD3-4o9MfgH9q9llf0g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (12.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:11:41.070406"], ["updated_at", "2015-02-26 18:11:41.070406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:11:41.084655"], ["updated_at", "2015-02-26 18:11:41.084655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:11:41 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$QXUVbiNIkLa7VwTliwikb.CgeUyilululFREhWf0BQwvsa2SgW7oC"], ["created_at", "2015-02-26 18:11:53.122652"], ["updated_at", "2015-02-26 18:11:53.122652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:11:53.132007"], ["user_id", "f0fbb6ee-bde2-11e4-8a72-705681abff85"], ["created_at", "2015-02-26 18:11:53.138046"], ["updated_at", "2015-02-26 18:11:53.138046"], ["token", "JI2tu55B3ma-eEeK63oCCwH-qiFZpuct_Vi6ZNW-3rA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:11:53.145418"], ["updated_at", "2015-02-26 18:11:53.145418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:11:53.148099"], ["updated_at", "2015-02-26 18:11:53.148099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:11:53 -0800  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Zazoi7MDAcYIhXTui2babOQ00DYvjQ3ARPAhfY7RUL4rz16WIZz/a"], ["created_at", "2015-02-26 18:11:53.161851"], ["updated_at", "2015-02-26 18:11:53.161851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:11:53.163652"], ["user_id", "f1018c4a-bde2-11e4-b74a-705681abff85"], ["created_at", "2015-02-26 18:11:53.164406"], ["updated_at", "2015-02-26 18:11:53.164406"], ["token", "ziFv6e5dkzK8NhLKlCZaUpeQnGVbLV2sDtnelRCDHTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:11:53.166868"], ["updated_at", "2015-02-26 18:11:53.166868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:11:53.168769"], ["updated_at", "2015-02-26 18:11:53.168769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:11:53 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$CSWmIgGr1K5F4j37fNibdug7F0SVGxrBbmd.9nBfEmiVbzoroTsOy"], ["created_at", "2015-02-26 18:13:07.634833"], ["updated_at", "2015-02-26 18:13:07.634833"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:13:07.646555"], ["user_id", "1d657f12-bde3-11e4-adbc-705681abff85"], ["created_at", "2015-02-26 18:13:07.652607"], ["updated_at", "2015-02-26 18:13:07.652607"], ["token", "fwKceGgOwcT3CS9PyRwOmeMOnKasaj3RrjvbfWe3hjU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:13:07.659785"], ["updated_at", "2015-02-26 18:13:07.659785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:13:07.662719"], ["updated_at", "2015-02-26 18:13:07.662719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:13:07 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$dpjdAUFtnLvPf.3.9RplsujcHScrbfWbpTnrMnOozTRciSkcpbwem"], ["created_at", "2015-02-26 18:13:07.726876"], ["updated_at", "2015-02-26 18:13:07.726876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:13:07.728548"], ["user_id", "1d7340f2-bde3-11e4-8a48-705681abff85"], ["created_at", "2015-02-26 18:13:07.729310"], ["updated_at", "2015-02-26 18:13:07.729310"], ["token", "7gXgyM4ttnPR-8zZ-Pt3CT4K9hE0yxbiwUpJ-LBIiG8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:13:07.731694"], ["updated_at", "2015-02-26 18:13:07.731694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:13:07.733650"], ["updated_at", "2015-02-26 18:13:07.733650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:13:07 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (22.9ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$DstSYR8OCyVb0wubWcpTQuvGwg9qxEjgIwRag2kVuzqpk/Y7hioTK"], ["created_at", "2015-02-26 18:14:04.102882"], ["updated_at", "2015-02-26 18:14:04.102882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:14:04.112512"], ["user_id", "3f0db968-bde3-11e4-87ae-705681abff85"], ["created_at", "2015-02-26 18:14:04.121328"], ["updated_at", "2015-02-26 18:14:04.121328"], ["token", "HbXa_RNN_GuasIRc5ecEP4MIRRTouv_Eu44hKS_-cwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:14:04.128629"], ["updated_at", "2015-02-26 18:14:04.128629"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:14:04.137074"], ["updated_at", "2015-02-26 18:14:04.137074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:14:04 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$eBbnwp13vXVR367oR/1awe2mXz6u./5Jk93XTP6waw4BgW7/f8812"], ["created_at", "2015-02-26 18:14:04.169313"], ["updated_at", "2015-02-26 18:14:04.169313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:14:04.171033"], ["user_id", "3f17b1ca-bde3-11e4-9278-705681abff85"], ["created_at", "2015-02-26 18:14:04.171847"], ["updated_at", "2015-02-26 18:14:04.171847"], ["token", "pWn3fDiu9bpA5wQ8aWD-o0t-dWRRbtZryeb2MG2jLNo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:14:04.173971"], ["updated_at", "2015-02-26 18:14:04.173971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:14:04.176069"], ["updated_at", "2015-02-26 18:14:04.176069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:14:04 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$n3v/56.q8V5KCSRObJBxB.gOCjM4Ibw8q0j54wLkXRuxpwLjjSAJ."], ["created_at", "2015-02-26 18:16:18.727889"], ["updated_at", "2015-02-26 18:16:18.727889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:16:18.737697"], ["user_id", "8f4beac6-bde3-11e4-8d8a-705681abff85"], ["created_at", "2015-02-26 18:16:18.743799"], ["updated_at", "2015-02-26 18:16:18.743799"], ["token", "huXZZ6NstOa5UerAp2KPWzt4sxgzTqDAW5qifJ77ByU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:16:18.758960"], ["updated_at", "2015-02-26 18:16:18.758960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:16:18.761617"], ["updated_at", "2015-02-26 18:16:18.761617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:16:18 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (4.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:16:18.782605' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "huXZZ6NstOa5UerAp2KPWzt4sxgzTqDAW5qifJ77ByU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:16:18.823904"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:16:18.825280"], ["id", "8f4e36c8-bde3-11e4-b92c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" Completed 200 OK in 64ms (Views: 1.2ms | ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$2U/Y7v7Fg2CDTU5TOwNwiOVPjEFpf7BrI6yyWq4bGFmlC9r8gXw.i"], ["created_at", "2015-02-26 18:16:18.851853"], ["updated_at", "2015-02-26 18:16:18.851853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:16:18.853572"], ["user_id", "8f5e9b8a-bde3-11e4-9572-705681abff85"], ["created_at", "2015-02-26 18:16:18.854380"], ["updated_at", "2015-02-26 18:16:18.854380"], ["token", "zHK_l06OWKfsbvUu4x4NRwDnHLcyiJ1dYzYIjygWQ1M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:16:18.856659"], ["updated_at", "2015-02-26 18:16:18.856659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:16:18.858489"], ["updated_at", "2015-02-26 18:16:18.858489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:16:18 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Zm.WXnQiRRUcjcEr676ZEOSGlpNT407sVZYqPjxzap9.xjC.J0Lq2"], ["created_at", "2015-02-26 18:16:37.139505"], ["updated_at", "2015-02-26 18:16:37.139505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:16:37.149187"], ["user_id", "9a45406c-bde3-11e4-8994-705681abff85"], ["created_at", "2015-02-26 18:16:37.155319"], ["updated_at", "2015-02-26 18:16:37.155319"], ["token", "CiycnYnTZQyMsLOTT2Qdv93we3Wh2mk3OSOFhFt2QBs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:16:37.169945"], ["updated_at", "2015-02-26 18:16:37.169945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:16:37.172452"], ["updated_at", "2015-02-26 18:16:37.172452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:16:37 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (8.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$RpJ37Vhd0LYc8wV1UEyuDuv.GhrClV1Yz06smEEav9z.vdYzWosuW"], ["created_at", "2015-02-26 18:16:37.220845"], ["updated_at", "2015-02-26 18:16:37.220845"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:16:37.232066"], ["user_id", "9a51b89c-bde3-11e4-a0b4-705681abff85"], ["created_at", "2015-02-26 18:16:37.234797"], ["updated_at", "2015-02-26 18:16:37.234797"], ["token", "mlGahXfHGxj_shEGvCHOLwVju4wfHsfVUEMM7L8aK2U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:16:37.240678"], ["updated_at", "2015-02-26 18:16:37.240678"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:16:37.244656"], ["updated_at", "2015-02-26 18:16:37.244656"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:16:37 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:16:37.255247' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mlGahXfHGxj_shEGvCHOLwVju4wfHsfVUEMM7L8aK2U"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:16:37.265893"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:16:37.267603"], ["id", "9a53f03a-bde3-11e4-b4a4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" Completed 200 OK in 18ms (Views: 1.7ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$0s//ILMZHoatcMUZbTUhqeRzHI5rIM/IHS29HC4iE.bHEpxPq8/NO"], ["created_at", "2015-02-26 18:18:04.864747"], ["updated_at", "2015-02-26 18:18:04.864747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:18:04.874264"], ["user_id", "ce8f1672-bde3-11e4-839a-705681abff85"], ["created_at", "2015-02-26 18:18:04.880048"], ["updated_at", "2015-02-26 18:18:04.880048"], ["token", "wyUP4zb89ANRVRgwbdJUX8mSDuxoS3FR-mNFKuSCJQI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:18:04.893626"], ["updated_at", "2015-02-26 18:18:04.893626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$/tc3KnDINKhZzM41w.H18O/pPgaSzP0rrXB1V4y3YZRJeCE1FoZUu"], ["created_at", "2015-02-26 18:18:04.907389"], ["updated_at", "2015-02-26 18:18:04.907389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:18:04.909270"], ["user_id", "ce956c48-bde3-11e4-aecb-705681abff85"], ["created_at", "2015-02-26 18:18:04.910042"], ["updated_at", "2015-02-26 18:18:04.910042"], ["token", "_o5T00MimySb7foudCUmqairw6CUEJAZLohKlcnIe5Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:18:04.912245"], ["updated_at", "2015-02-26 18:18:04.912245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ojDkwMZSm.FCReRKVONd7OnGcs8WmLPT7xKUOOrTFI2GO3zi.W2fS"], ["created_at", "2015-02-26 18:18:54.090931"], ["updated_at", "2015-02-26 18:18:54.090931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:18:54.101106"], ["user_id", "ebe666e4-bde3-11e4-b765-705681abff85"], ["created_at", "2015-02-26 18:18:54.107101"], ["updated_at", "2015-02-26 18:18:54.107101"], ["token", "hL-4h4zct673dJQVnf9QHOk4ms6s0LMxVAntBy01vQ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:18:54.114274"], ["updated_at", "2015-02-26 18:18:54.114274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (17.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ebe666e4-bde3-11e4-b765-705681abff85"], ["organization_id", "ebe9d478-bde3-11e4-aa77-705681abff85"], ["created_at", "2015-02-26 18:18:54.123389"], ["updated_at", "2015-02-26 18:18:54.123389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (3.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$qYU69iDP1r8h6h87PPHlnOJaoeQ/Hn5BvBegF5ESEFgZu30uhJUXi"], ["created_at", "2015-02-26 18:18:54.145524"], ["updated_at", "2015-02-26 18:18:54.145524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:18:54.151401"], ["updated_at", "2015-02-26 18:18:54.151401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ebee8b1c-bde3-11e4-9d52-705681abff85"], ["organization_id", "ebef768a-bde3-11e4-a0e6-705681abff85"], ["created_at", "2015-02-26 18:18:54.154395"], ["updated_at", "2015-02-26 18:18:54.154395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:18:54 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$RPeZO7i9bkgh7VDDRgByD.mc5nMju4DqlBPcBAwLrF.4iAV8aKHau"], ["created_at", "2015-02-26 18:18:54.181729"], ["updated_at", "2015-02-26 18:18:54.181729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:18:54.183683"], ["user_id", "ebf41636-bde3-11e4-a5f5-705681abff85"], ["created_at", "2015-02-26 18:18:54.184532"], ["updated_at", "2015-02-26 18:18:54.184532"], ["token", "vH6WojhqOIJORLWPNlU3aIjwo9l9LQicrV22emfep9s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:18:54.186899"], ["updated_at", "2015-02-26 18:18:54.186899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ebf41636-bde3-11e4-a5f5-705681abff85"], ["organization_id", "ebf4da44-bde3-11e4-859b-705681abff85"], ["created_at", "2015-02-26 18:18:54.189406"], ["updated_at", "2015-02-26 18:18:54.189406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$N8ipL6yBwCasjEkM2/2.ZuRYto7cXBBB0rz4AlJq18uwq9kBdipcy"], ["created_at", "2015-02-26 18:18:54.193815"], ["updated_at", "2015-02-26 18:18:54.193815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:18:54.195823"], ["updated_at", "2015-02-26 18:18:54.195823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (11.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ebf5e7b8-bde3-11e4-9847-705681abff85"], ["organization_id", "ebf63a74-bde3-11e4-b763-705681abff85"], ["created_at", "2015-02-26 18:18:54.210002"], ["updated_at", "2015-02-26 18:18:54.210002"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:18:54 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (6.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:18:54.227891' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vH6WojhqOIJORLWPNlU3aIjwo9l9LQicrV22emfep9s"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:18:54.254044"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:18:54.256855"], ["id", "ebf486ca-bde3-11e4-ac79-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" Completed 200 OK in 37ms (Views: 2.2ms | ActiveRecord: 8.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (13.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$5IoCEWHyVUUjHvWQjtrsi.lIcuoXTkkKl99/ivXkUZvNBkjrfqdA2"], ["created_at", "2015-02-26 18:20:26.667674"], ["updated_at", "2015-02-26 18:20:26.667674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:20:26.692091"], ["user_id", "231478ea-bde4-11e4-9f95-705681abff85"], ["created_at", "2015-02-26 18:20:26.698915"], ["updated_at", "2015-02-26 18:20:26.698915"], ["token", "YZFvt7YGDJN0rYh_WcyKvJyx9dFGQMN1iGge3E88eQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:20:26.713013"], ["updated_at", "2015-02-26 18:20:26.713013"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "231478ea-bde4-11e4-9f95-705681abff85"], ["organization_id", "231b462a-bde4-11e4-a984-705681abff85"], ["created_at", "2015-02-26 18:20:26.722551"], ["updated_at", "2015-02-26 18:20:26.722551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$JpILypNt0lSzX0.HhYew6ewTzvyReAJykGmIep5BA4XuhdysT4JT6"], ["created_at", "2015-02-26 18:20:26.728606"], ["updated_at", "2015-02-26 18:20:26.728606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:20:26.730785"], ["updated_at", "2015-02-26 18:20:26.730785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "231d9c04-bde4-11e4-bf78-705681abff85"], ["organization_id", "231dec04-bde4-11e4-83f0-705681abff85"], ["created_at", "2015-02-26 18:20:26.733063"], ["updated_at", "2015-02-26 18:20:26.733063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:20:26 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$H5N9WprMn22WHCZLgfecje6.0sGeJL.BPw8dASyS/E1BJ3RZNA7Wm"], ["created_at", "2015-02-26 18:20:26.761292"], ["updated_at", "2015-02-26 18:20:26.761292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:20:26.763111"], ["user_id", "2322993e-bde4-11e4-af06-705681abff85"], ["created_at", "2015-02-26 18:20:26.763929"], ["updated_at", "2015-02-26 18:20:26.763929"], ["token", "L7KyNobdcP3QBAV1w1Pg1KdzjWWxdTIqxOE6xjResoM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:20:26.766218"], ["updated_at", "2015-02-26 18:20:26.766218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2322993e-bde4-11e4-af06-705681abff85"], ["organization_id", "232357ca-bde4-11e4-ba12-705681abff85"], ["created_at", "2015-02-26 18:20:26.768670"], ["updated_at", "2015-02-26 18:20:26.768670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$yiNeUHAdhGc.c/KT4cQtE.85kP/gUc/vpH2QIcWcBmz2wvUSgx43m"], ["created_at", "2015-02-26 18:20:26.773087"], ["updated_at", "2015-02-26 18:20:26.773087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:20:26.775196"], ["updated_at", "2015-02-26 18:20:26.775196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "232462dc-bde4-11e4-b0dc-705681abff85"], ["organization_id", "2324b50c-bde4-11e4-8456-705681abff85"], ["created_at", "2015-02-26 18:20:26.777515"], ["updated_at", "2015-02-26 18:20:26.777515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:20:26 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:20:26.782281' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "L7KyNobdcP3QBAV1w1Pg1KdzjWWxdTIqxOE6xjResoM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:20:26.790005"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:20:26.791272"], ["id", "232303f6-bde4-11e4-bb73-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$JM/LiZKZF/TuzNrOstShwuvNpXqb9oZJJz/A3eVlx6ACy4J10YCY2"], ["created_at", "2015-02-26 18:21:06.395050"], ["updated_at", "2015-02-26 18:21:06.395050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:21:06.404102"], ["user_id", "3ac25ec6-bde4-11e4-a88a-705681abff85"], ["created_at", "2015-02-26 18:21:06.411924"], ["updated_at", "2015-02-26 18:21:06.411924"], ["token", "SjtsqHm6JeWmQ8HIcm1LM3XCSq0yonBuXM7W26L6G88"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:21:06.419149"], ["updated_at", "2015-02-26 18:21:06.419149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ac25ec6-bde4-11e4-a88a-705681abff85"], ["organization_id", "3ac5f5c2-bde4-11e4-a8b8-705681abff85"], ["created_at", "2015-02-26 18:21:06.428449"], ["updated_at", "2015-02-26 18:21:06.428449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$JBjbhKKH9SOg63VQ8JFqsOROkP6aRygEyEQkwOoxLvdJgxyIY0FCu"], ["created_at", "2015-02-26 18:21:06.433641"], ["updated_at", "2015-02-26 18:21:06.433641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:21:06.435773"], ["updated_at", "2015-02-26 18:21:06.435773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ac81cf8-bde4-11e4-9ca6-705681abff85"], ["organization_id", "3ac86bc2-bde4-11e4-8128-705681abff85"], ["created_at", "2015-02-26 18:21:06.438005"], ["updated_at", "2015-02-26 18:21:06.438005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:21:06 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:21:06.461539' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SjtsqHm6JeWmQ8HIcm1LM3XCSq0yonBuXM7W26L6G88"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:21:06.468835"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:21:06.470115"], ["id", "3ac4e7cc-bde4-11e4-bfbb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$eQQ7yndAdXdZk2idVKDEiue4.lQyTSW3Ms/IuATqyb6oN5VXbG9Je"], ["created_at", "2015-02-26 18:21:06.481701"], ["updated_at", "2015-02-26 18:21:06.481701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:21:06.483470"], ["user_id", "3acf7304-bde4-11e4-86e3-705681abff85"], ["created_at", "2015-02-26 18:21:06.484277"], ["updated_at", "2015-02-26 18:21:06.484277"], ["token", "0FO_4hgIFjY2SJplbNp3w2HX15ZB_Ue7DQ2dLGFPcY8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:21:06.486816"], ["updated_at", "2015-02-26 18:21:06.486816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3acf7304-bde4-11e4-86e3-705681abff85"], ["organization_id", "3ad03780-bde4-11e4-8ce1-705681abff85"], ["created_at", "2015-02-26 18:21:06.489184"], ["updated_at", "2015-02-26 18:21:06.489184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$htqWRb756ejHxxugciyoGeFfBRTtery9M7Mp0.PqxjhNY4eA72Jk."], ["created_at", "2015-02-26 18:21:06.495046"], ["updated_at", "2015-02-26 18:21:06.495046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:21:06.497584"], ["updated_at", "2015-02-26 18:21:06.497584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ad17f1e-bde4-11e4-9b6a-705681abff85"], ["organization_id", "3ad1e3be-bde4-11e4-9bac-705681abff85"], ["created_at", "2015-02-26 18:21:06.500454"], ["updated_at", "2015-02-26 18:21:06.500454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:21:06 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$FK9SeriwD5uebzx/qyUvROUqe/dkLMyzwP4dFm6OckzAIj7iaEtCm"], ["created_at", "2015-02-26 18:21:37.054123"], ["updated_at", "2015-02-26 18:21:37.054123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:21:37.064079"], ["user_id", "4d089f5a-bde4-11e4-a082-705681abff85"], ["created_at", "2015-02-26 18:21:37.070202"], ["updated_at", "2015-02-26 18:21:37.070202"], ["token", "MZ648LKG7JKG4o6Z0QB70NUCELiS2_5VeWqoz9N2P0g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:21:37.078902"], ["updated_at", "2015-02-26 18:21:37.078902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d089f5a-bde4-11e4-a082-705681abff85"], ["organization_id", "4d0c42fe-bde4-11e4-893e-705681abff85"], ["created_at", "2015-02-26 18:21:37.087997"], ["updated_at", "2015-02-26 18:21:37.087997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$OyQjiPxGn/FZ/KfVhurdy.Q9ix9e9jP3Gf359un.KKwSK/mRXr3nS"], ["created_at", "2015-02-26 18:21:37.094643"], ["updated_at", "2015-02-26 18:21:37.094643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:21:37.097088"], ["updated_at", "2015-02-26 18:21:37.097088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d0e9efa-bde4-11e4-8e8d-705681abff85"], ["organization_id", "4d0efac6-bde4-11e4-afce-705681abff85"], ["created_at", "2015-02-26 18:21:37.099673"], ["updated_at", "2015-02-26 18:21:37.099673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:21:37 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$XzWBifVB22amoL7T0MmyIuiqjQJq7WjuHT1ib03eCaZqRpLtdGyQW"], ["created_at", "2015-02-26 18:21:37.129846"], ["updated_at", "2015-02-26 18:21:37.129846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:21:37.131746"], ["user_id", "4d140296-bde4-11e4-85d6-705681abff85"], ["created_at", "2015-02-26 18:21:37.132660"], ["updated_at", "2015-02-26 18:21:37.132660"], ["token", "peSMzfSDdIqRFobviotpQPV-xLavFsA91oVWsdOkzJY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:21:37.135106"], ["updated_at", "2015-02-26 18:21:37.135106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d140296-bde4-11e4-85d6-705681abff85"], ["organization_id", "4d14c578-bde4-11e4-b602-705681abff85"], ["created_at", "2015-02-26 18:21:37.137845"], ["updated_at", "2015-02-26 18:21:37.137845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$/Z5viKIWUc0gD6/rUqHxpOTFhxKHQxaSLZ3kxL.1pDzvwsv6f6e/O"], ["created_at", "2015-02-26 18:21:37.149321"], ["updated_at", "2015-02-26 18:21:37.149321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:21:37.151456"], ["updated_at", "2015-02-26 18:21:37.151456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d16f3d4-bde4-11e4-915f-705681abff85"], ["organization_id", "4d17455a-bde4-11e4-b3e7-705681abff85"], ["created_at", "2015-02-26 18:21:37.153933"], ["updated_at", "2015-02-26 18:21:37.153933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:21:37 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:21:37.158475' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "peSMzfSDdIqRFobviotpQPV-xLavFsA91oVWsdOkzJY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:21:37.168110"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:21:37.169639"], ["id", "4d14714a-bde4-11e4-8f34-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d140296-bde4-11e4-85d6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" Completed 200 OK in 23ms (Views: 8.6ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$bjaQ2SNmebv.Q0bLoeeSIuH2e8QRF8lUklVlXLMlUNvFUqPXbzYeC"], ["created_at", "2015-02-26 18:23:32.788392"], ["updated_at", "2015-02-26 18:23:32.788392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:23:32.798650"], ["user_id", "92043ce0-bde4-11e4-b1fe-705681abff85"], ["created_at", "2015-02-26 18:23:32.804267"], ["updated_at", "2015-02-26 18:23:32.804267"], ["token", "DVpY8mtDE9AJlGdmpHDXsduDxnDy8ZK0AETBcftKUqQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:23:32.812270"], ["updated_at", "2015-02-26 18:23:32.812270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "92043ce0-bde4-11e4-b1fe-705681abff85"], ["organization_id", "9207c7fc-bde4-11e4-aaf1-705681abff85"], ["created_at", "2015-02-26 18:23:32.823122"], ["updated_at", "2015-02-26 18:23:32.823122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$dddw.MpCiAxJ6S5aby47qO2Sdgk.52JozA8WAqRUoUs.T0PM35q7a"], ["created_at", "2015-02-26 18:23:32.828518"], ["updated_at", "2015-02-26 18:23:32.828518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:23:32.831248"], ["updated_at", "2015-02-26 18:23:32.831248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "920a428e-bde4-11e4-82d3-705681abff85"], ["organization_id", "920a9f68-bde4-11e4-a978-705681abff85"], ["created_at", "2015-02-26 18:23:32.834183"], ["updated_at", "2015-02-26 18:23:32.834183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:23:32 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$WoZFLBgAEwiY97s9MPzlAesnLPntk9vIMueg8phBFbn4frPyI3Qca"], ["created_at", "2015-02-26 18:23:32.866127"], ["updated_at", "2015-02-26 18:23:32.866127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:23:32.868207"], ["user_id", "920ffac6-bde4-11e4-bdfc-705681abff85"], ["created_at", "2015-02-26 18:23:32.869009"], ["updated_at", "2015-02-26 18:23:32.869009"], ["token", "CddNFOWldvwJt1uafPAE9RfOrEtwCpingLqgwuMReJk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:23:32.871799"], ["updated_at", "2015-02-26 18:23:32.871799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "920ffac6-bde4-11e4-bdfc-705681abff85"], ["organization_id", "9210cfaa-bde4-11e4-a490-705681abff85"], ["created_at", "2015-02-26 18:23:32.874426"], ["updated_at", "2015-02-26 18:23:32.874426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$odPesaT.dsAEQqzO2icoa.vX2Bjlw3RZouLp9ReSAkLV2dcgMqSRG"], ["created_at", "2015-02-26 18:23:32.879081"], ["updated_at", "2015-02-26 18:23:32.879081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:23:32.881650"], ["updated_at", "2015-02-26 18:23:32.881650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9211e908-bde4-11e4-8152-705681abff85"], ["organization_id", "92124fba-bde4-11e4-a4cf-705681abff85"], ["created_at", "2015-02-26 18:23:32.884117"], ["updated_at", "2015-02-26 18:23:32.884117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:23:32 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:23:32.889076' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CddNFOWldvwJt1uafPAE9RfOrEtwCpingLqgwuMReJk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:23:32.896093"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:23:32.897721"], ["id", "92106c54-bde4-11e4-8752-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "920ffac6-bde4-11e4-bdfc-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" Completed 200 OK in 28ms (Views: 8.3ms | ActiveRecord: 7.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$fUpH5cRsxRJ9mxx44vWJ4OkKDkBrN4LwswxjlUu5.C4xcE32vZqSy"], ["created_at", "2015-02-26 18:27:56.890479"], ["updated_at", "2015-02-26 18:27:56.890479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (5.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:27:56.906583"], ["user_id", "2f6f09e2-bde5-11e4-bb94-705681abff85"], ["created_at", "2015-02-26 18:27:56.913422"], ["updated_at", "2015-02-26 18:27:56.913422"], ["token", "NaDZhlpHubne1X1Wj0NTVzS-r05gMHqFrVjrqeX64T0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (11.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:27:56.927370"], ["updated_at", "2015-02-26 18:27:56.927370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f6f09e2-bde5-11e4-bb94-705681abff85"], ["organization_id", "2f748ff2-bde5-11e4-a2e5-705681abff85"], ["created_at", "2015-02-26 18:27:56.948579"], ["updated_at", "2015-02-26 18:27:56.948579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$N2nKtQyKZXg2NqsJSfNqTu4i0MAvaAkgNMucI8.akClq2KAcl7IeO"], ["created_at", "2015-02-26 18:27:56.958289"], ["updated_at", "2015-02-26 18:27:56.958289"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:27:56.964548"], ["updated_at", "2015-02-26 18:27:56.964548"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f795c30-bde5-11e4-af04-705681abff85"], ["organization_id", "2f7a4fdc-bde5-11e4-84b7-705681abff85"], ["created_at", "2015-02-26 18:27:56.969968"], ["updated_at", "2015-02-26 18:27:56.969968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:27:56 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:27:56.993882' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NaDZhlpHubne1X1Wj0NTVzS-r05gMHqFrVjrqeX64T0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:27:57.001885"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:27:57.003443"], ["id", "2f727316-bde5-11e4-bb70-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f6f09e2-bde5-11e4-bb94-705681abff85"]] Completed 500 Internal Server Error in 31ms  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$ZqAaDrJGLutwSHebKUpHdeG4eckexnGjlued36ePQgu9ORYUjJpBm"], ["created_at", "2015-02-26 18:27:57.032739"], ["updated_at", "2015-02-26 18:27:57.032739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:27:57.035112"], ["user_id", "2f84999c-bde5-11e4-ba88-705681abff85"], ["created_at", "2015-02-26 18:27:57.036008"], ["updated_at", "2015-02-26 18:27:57.036008"], ["token", "brL--aLg6izJWS1cRe5EODxZxh89c01Dkt5s-T_j-Ug"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:27:57.038845"], ["updated_at", "2015-02-26 18:27:57.038845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f84999c-bde5-11e4-ba88-705681abff85"], ["organization_id", "2f858384-bde5-11e4-90b2-705681abff85"], ["created_at", "2015-02-26 18:27:57.042360"], ["updated_at", "2015-02-26 18:27:57.042360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$lvTmgZqrFQ45htPjiKNfb.IQvGmfMdsN6mJ7DPXMmjGx.NUT8CVcS"], ["created_at", "2015-02-26 18:27:57.048204"], ["updated_at", "2015-02-26 18:27:57.048204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:27:57.050917"], ["updated_at", "2015-02-26 18:27:57.050917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f86f03e-bde5-11e4-8f03-705681abff85"], ["organization_id", "2f876fdc-bde5-11e4-9ea0-705681abff85"], ["created_at", "2015-02-26 18:27:57.055126"], ["updated_at", "2015-02-26 18:27:57.055126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:27:57 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (7.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$9c2p4LL8Vz7vnfR8cGNCzeWOaz.Y4HXpzfeM1xrAsdtQth0X0mb5W"], ["created_at", "2015-02-26 18:29:24.831162"], ["updated_at", "2015-02-26 18:29:24.831162"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:29:24.887534"], ["user_id", "63ddc2e0-bde5-11e4-bb04-705681abff85"], ["created_at", "2015-02-26 18:29:24.899161"], ["updated_at", "2015-02-26 18:29:24.899161"], ["token", "je4neJuHR0C0QOJndy-hn_VWTJJ6poQFeMkqoccca1M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:29:24.912708"], ["updated_at", "2015-02-26 18:29:24.912708"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63ddc2e0-bde5-11e4-bb04-705681abff85"], ["organization_id", "63e61d1e-bde5-11e4-888f-705681abff85"], ["created_at", "2015-02-26 18:29:24.931011"], ["updated_at", "2015-02-26 18:29:24.931011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$CNgASfVGY1ZqpN26OkUIseek0tUN5R0Lbpkgzq0ttFMpQql16Zp3G"], ["created_at", "2015-02-26 18:29:24.937449"], ["updated_at", "2015-02-26 18:29:24.937449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:29:24.939531"], ["updated_at", "2015-02-26 18:29:24.939531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63e9bfc8-bde5-11e4-bcc6-705681abff85"], ["organization_id", "63ea0f1e-bde5-11e4-a4cd-705681abff85"], ["created_at", "2015-02-26 18:29:24.941870"], ["updated_at", "2015-02-26 18:29:24.941870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:29:24 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$IlAoI25vMFm5P6qocJ30Juec3aJvqRH7zCiSZE9bcFmA2UlaRVF3e"], ["created_at", "2015-02-26 18:29:24.976189"], ["updated_at", "2015-02-26 18:29:24.976189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:29:24.978029"], ["user_id", "63efacee-bde5-11e4-831e-705681abff85"], ["created_at", "2015-02-26 18:29:24.978838"], ["updated_at", "2015-02-26 18:29:24.978838"], ["token", "n67R7DHBhgEr_jz7pz40uJpXMPI4Q097p8m0TEovVRw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:29:24.981178"], ["updated_at", "2015-02-26 18:29:24.981178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63efacee-bde5-11e4-831e-705681abff85"], ["organization_id", "63f06b2a-bde5-11e4-b5ca-705681abff85"], ["created_at", "2015-02-26 18:29:24.984615"], ["updated_at", "2015-02-26 18:29:24.984615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ccmsSvo5NbdnZQ/UAu7KYOjLazNj4HYSQgfg2peTIFj0W7.ZFYk4y"], ["created_at", "2015-02-26 18:29:24.989146"], ["updated_at", "2015-02-26 18:29:24.989146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:29:24.991161"], ["updated_at", "2015-02-26 18:29:24.991161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63f1a1de-bde5-11e4-87f5-705681abff85"], ["organization_id", "63f1ef54-bde5-11e4-b7c4-705681abff85"], ["created_at", "2015-02-26 18:29:24.993390"], ["updated_at", "2015-02-26 18:29:24.993390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:29:24 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:29:24.997944' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n67R7DHBhgEr_jz7pz40uJpXMPI4Q097p8m0TEovVRw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:29:25.005491"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:29:25.007003"], ["id", "63f01a8a-bde5-11e4-a9b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63efacee-bde5-11e4-831e-705681abff85"]] Completed 500 Internal Server Error in 31ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$/6g1QAxJaRxppwmkz.tEiOFDcmMI1icm9n94Mm.uKVkjpC88.B0I."], ["created_at", "2015-02-26 18:30:42.711877"], ["updated_at", "2015-02-26 18:30:42.711877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:30:42.727515"], ["user_id", "92455c10-bde5-11e4-9329-705681abff85"], ["created_at", "2015-02-26 18:30:42.734274"], ["updated_at", "2015-02-26 18:30:42.734274"], ["token", "K6z1l--ArqITAgBOSuTcktn2BX6cOFETCSnWUsnX03E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:30:42.741877"], ["updated_at", "2015-02-26 18:30:42.741877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "92455c10-bde5-11e4-9329-705681abff85"], ["organization_id", "9249db00-bde5-11e4-beaf-705681abff85"], ["created_at", "2015-02-26 18:30:42.753856"], ["updated_at", "2015-02-26 18:30:42.753856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$aFYLzBsHy9UPYbKzDhH5Pu535TfjHzS565c7DQaogwnaEDid8lTNe"], ["created_at", "2015-02-26 18:30:42.764513"], ["updated_at", "2015-02-26 18:30:42.764513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:30:42.766969"], ["updated_at", "2015-02-26 18:30:42.766969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "924d3714-bde5-11e4-b1e8-705681abff85"], ["organization_id", "924d9c04-bde5-11e4-b029-705681abff85"], ["created_at", "2015-02-26 18:30:42.769403"], ["updated_at", "2015-02-26 18:30:42.769403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:30:42 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:30:42.789982' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "K6z1l--ArqITAgBOSuTcktn2BX6cOFETCSnWUsnX03E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:30:42.797199"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:30:42.798391"], ["id", "9248bb62-bde5-11e4-80ac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "92455c10-bde5-11e4-9329-705681abff85"]] PG::UndefinedColumn: ERROR: column clubhouse_memberships.user_id does not exist LINE 1: ...= "clubhouse_memberships"."organization_id" WHERE "clubhouse... ^ : SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."user_id" = $1 Completed 500 Internal Server Error in 37ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$nKl3/C51tS.OqzauV1/wteNz7ymFvu3EBPWmF7py7gzQ5RPi16ywi"], ["created_at", "2015-02-26 18:30:42.833074"], ["updated_at", "2015-02-26 18:30:42.833074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:30:42.835063"], ["user_id", "9257b6c6-bde5-11e4-9fa2-705681abff85"], ["created_at", "2015-02-26 18:30:42.836088"], ["updated_at", "2015-02-26 18:30:42.836088"], ["token", "NDoNG3XRZFmdOvquA4ZC0fljiQyXoQyhZc47jo2j_lQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:30:42.838804"], ["updated_at", "2015-02-26 18:30:42.838804"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9257b6c6-bde5-11e4-9fa2-705681abff85"], ["organization_id", "92588d76-bde5-11e4-b9b1-705681abff85"], ["created_at", "2015-02-26 18:30:42.841428"], ["updated_at", "2015-02-26 18:30:42.841428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$aMJf2hhgBl5jRRJkv/DYKOLE6O4jpW9vflEwjGzZ/ddgtyE9VqFqW"], ["created_at", "2015-02-26 18:30:42.845818"], ["updated_at", "2015-02-26 18:30:42.845818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:30:42.847861"], ["updated_at", "2015-02-26 18:30:42.847861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "92599f72-bde5-11e4-9ad9-705681abff85"], ["organization_id", "9259ed42-bde5-11e4-9e79-705681abff85"], ["created_at", "2015-02-26 18:30:42.850250"], ["updated_at", "2015-02-26 18:30:42.850250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:30:42 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$EWL1.G7tmFk1aP3LDps5YexF1mBGyKxbj2GTeaMJiuodgYZ1A4jaK"], ["created_at", "2015-02-26 18:31:34.843172"], ["updated_at", "2015-02-26 18:31:34.843172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:31:34.853365"], ["user_id", "b157f91e-bde5-11e4-aacb-705681abff85"], ["created_at", "2015-02-26 18:31:34.859650"], ["updated_at", "2015-02-26 18:31:34.859650"], ["token", "Uo1xrbAOHQW1fNGUAW7ZpexqaaC19vQUIznmBj7DWiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:31:34.867677"], ["updated_at", "2015-02-26 18:31:34.867677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b157f91e-bde5-11e4-aacb-705681abff85"], ["organization_id", "b15b9b3c-bde5-11e4-b04e-705681abff85"], ["created_at", "2015-02-26 18:31:34.877419"], ["updated_at", "2015-02-26 18:31:34.877419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$DP4HDOS5osfKVaQAV2Hokufyf.RxaCn4k1Od55nGiiqEtxJhOUf52"], ["created_at", "2015-02-26 18:31:34.883084"], ["updated_at", "2015-02-26 18:31:34.883084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:31:34.885487"], ["updated_at", "2015-02-26 18:31:34.885487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b15de5ae-bde5-11e4-a546-705681abff85"], ["organization_id", "b15e409e-bde5-11e4-929a-705681abff85"], ["created_at", "2015-02-26 18:31:34.887789"], ["updated_at", "2015-02-26 18:31:34.887789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:31:34 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:31:34.908820' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Uo1xrbAOHQW1fNGUAW7ZpexqaaC19vQUIznmBj7DWiY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:31:34.916353"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:31:34.917700"], ["id", "b15a723e-bde5-11e4-8158-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b157f91e-bde5-11e4-aacb-705681abff85"]] Clubhouse::Organization Load (19.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "b157f91e-bde5-11e4-aacb-705681abff85"]] Completed 200 OK in 52ms (Views: 4.6ms | ActiveRecord: 21.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$7CXA9OYSymVlfZEyXRbDtOHPksCtp6.uBngl2MxEzQpVjLngEZaGi"], ["created_at", "2015-02-26 18:31:34.970717"], ["updated_at", "2015-02-26 18:31:34.970717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:31:34.972495"], ["user_id", "b16b4168-bde5-11e4-9f20-705681abff85"], ["created_at", "2015-02-26 18:31:34.973347"], ["updated_at", "2015-02-26 18:31:34.973347"], ["token", "y7RiCp5iA1HHKbLYpBs_Pd3lQJDa1PEb7l55KVv-OZo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:31:34.975876"], ["updated_at", "2015-02-26 18:31:34.975876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b16b4168-bde5-11e4-9f20-705681abff85"], ["organization_id", "b16c0ce2-bde5-11e4-a5b4-705681abff85"], ["created_at", "2015-02-26 18:31:34.978549"], ["updated_at", "2015-02-26 18:31:34.978549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$YJcpsJqErJWbPDgn0P2lDOqPByYEHi40qBzsFQbtHmRe/H/YpImSO"], ["created_at", "2015-02-26 18:31:34.983414"], ["updated_at", "2015-02-26 18:31:34.983414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:31:34.985510"], ["updated_at", "2015-02-26 18:31:34.985510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b16d319e-bde5-11e4-b7a5-705681abff85"], ["organization_id", "b16d80e0-bde5-11e4-b33b-705681abff85"], ["created_at", "2015-02-26 18:31:34.987758"], ["updated_at", "2015-02-26 18:31:34.987758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:31:34 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Hzr5XTIOmljLQfSPyuwHQ.b6ptSyiOQ1T5B.JvgQL8oeS7imoiBF6"], ["created_at", "2015-02-26 18:31:46.211712"], ["updated_at", "2015-02-26 18:31:46.211712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:31:46.229657"], ["user_id", "b81ed682-bde5-11e4-9a0b-705681abff85"], ["created_at", "2015-02-26 18:31:46.236307"], ["updated_at", "2015-02-26 18:31:46.236307"], ["token", "9-AEHAe7Dih_8IiyEjY6nZZv8zublA2Vfupnoc9dLDU"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:31:46.245912"], ["updated_at", "2015-02-26 18:31:46.245912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b81ed682-bde5-11e4-9a0b-705681abff85"], ["organization_id", "b823cfb6-bde5-11e4-9a30-705681abff85"], ["created_at", "2015-02-26 18:31:46.263314"], ["updated_at", "2015-02-26 18:31:46.263314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$aOS2vD8wKSKs9Eu9OYZCs.2PxcyW1WXfzIlBbRJUAy04AXVAzCYqS"], ["created_at", "2015-02-26 18:31:46.269332"], ["updated_at", "2015-02-26 18:31:46.269332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:31:46.272613"], ["updated_at", "2015-02-26 18:31:46.272613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8275e60-bde5-11e4-ab58-705681abff85"], ["organization_id", "b827cb5c-bde5-11e4-812f-705681abff85"], ["created_at", "2015-02-26 18:31:46.275245"], ["updated_at", "2015-02-26 18:31:46.275245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:31:46 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Ymno3yz87yttoLlNDo0GtOzCTM/nvIXam1iM78zO21dXhILvnqA/G"], ["created_at", "2015-02-26 18:31:46.306053"], ["updated_at", "2015-02-26 18:31:46.306053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:31:46.307859"], ["user_id", "b82ce970-bde5-11e4-9981-705681abff85"], ["created_at", "2015-02-26 18:31:46.309028"], ["updated_at", "2015-02-26 18:31:46.309028"], ["token", "tiGwdwqrlfpAqTIl7LDbO4EQhV-tj6bKhYwDskCmzHg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:31:46.311859"], ["updated_at", "2015-02-26 18:31:46.311859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b82ce970-bde5-11e4-9981-705681abff85"], ["organization_id", "b82dca7a-bde5-11e4-a4f6-705681abff85"], ["created_at", "2015-02-26 18:31:46.314450"], ["updated_at", "2015-02-26 18:31:46.314450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$6tVSTcr7EBrDzHhg7xOXGOpBKTao05uZXQZclu9coj91fROlaRhJK"], ["created_at", "2015-02-26 18:31:46.318712"], ["updated_at", "2015-02-26 18:31:46.318712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:31:46.321519"], ["updated_at", "2015-02-26 18:31:46.321519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b82edc8a-bde5-11e4-bdd9-705681abff85"], ["organization_id", "b82f4224-bde5-11e4-b20d-705681abff85"], ["created_at", "2015-02-26 18:31:46.323899"], ["updated_at", "2015-02-26 18:31:46.323899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:31:46 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:31:46.328880' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tiGwdwqrlfpAqTIl7LDbO4EQhV-tj6bKhYwDskCmzHg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:31:46.335946"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:31:46.337626"], ["id", "b82d6d0a-bde5-11e4-bbf4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b82ce970-bde5-11e4-9981-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "b82ce970-bde5-11e4-9981-705681abff85"]] Completed 200 OK in 33ms (Views: 4.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$kn3/mfaogQAdtFS7eCyJ2.iwoY6CcXaOVV0rj/oCD9yy0HEAiFXpa"], ["created_at", "2015-02-26 18:38:13.480127"], ["updated_at", "2015-02-26 18:38:13.480127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:13.497418"], ["user_id", "9ef33314-bde6-11e4-923a-705681abff85"], ["created_at", "2015-02-26 18:38:13.502838"], ["updated_at", "2015-02-26 18:38:13.502838"], ["token", "g6N00PNt1iiv6-fx2ilxNO_OAUg26Gg81c-a79sEGzU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:13.518334"], ["updated_at", "2015-02-26 18:38:13.518334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (11.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9ef33314-bde6-11e4-923a-705681abff85"], ["organization_id", "9ef8ebec-bde6-11e4-af1f-705681abff85"], ["created_at", "2015-02-26 18:38:13.528881"], ["updated_at", "2015-02-26 18:38:13.528881"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/9ef8ebec-bde6-11e4-af1f-705681abff85" for 127.0.0.1 at 2015-02-26 10:38:13 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$EMk0.iEBgKz5Hhss4FEwa.wZgbULSJpy6GVW6C/9g7efxdsPNnRCC"], ["created_at", "2015-02-26 18:38:13.559223"], ["updated_at", "2015-02-26 18:38:13.559223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:13.561664"], ["user_id", "9eff0c70-bde6-11e4-b8c2-705681abff85"], ["created_at", "2015-02-26 18:38:13.562740"], ["updated_at", "2015-02-26 18:38:13.562740"], ["token", "47x6UyTFG8ZLxZUw2WQc_YeYOiS2NFVLgen04_cDdv0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:13.565722"], ["updated_at", "2015-02-26 18:38:13.565722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9eff0c70-bde6-11e4-b8c2-705681abff85"], ["organization_id", "9f000882-bde6-11e4-8e6c-705681abff85"], ["created_at", "2015-02-26 18:38:13.568223"], ["updated_at", "2015-02-26 18:38:13.568223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-26 10:38:13 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$W7aXN7dHMJ0DwesAKt.vL.T9F0XBcZWF57ERh93MugrUTM98BY0Ha"], ["created_at", "2015-02-26 18:38:13.579613"], ["updated_at", "2015-02-26 18:38:13.579613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:13.582081"], ["user_id", "9f023c56-bde6-11e4-9a2a-705681abff85"], ["created_at", "2015-02-26 18:38:13.583116"], ["updated_at", "2015-02-26 18:38:13.583116"], ["token", "lVvtGRFKeeyj70D_ceSdK_vj87KOxAN-SmUIBJ_MhgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:13.586194"], ["updated_at", "2015-02-26 18:38:13.586194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f023c56-bde6-11e4-9a2a-705681abff85"], ["organization_id", "9f032e86-bde6-11e4-9335-705681abff85"], ["created_at", "2015-02-26 18:38:13.589747"], ["updated_at", "2015-02-26 18:38:13.589747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$8vGYtKOX3QDWKE8jCzzP7.9Bed.nDETVy.Tt5b1Yq8wm6TSi.JhO."], ["created_at", "2015-02-26 18:38:13.596258"], ["updated_at", "2015-02-26 18:38:13.596258"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:13.599980"], ["updated_at", "2015-02-26 18:38:13.599980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f04b684-bde6-11e4-8b60-705681abff85"], ["organization_id", "9f0550a8-bde6-11e4-a6f1-705681abff85"], ["created_at", "2015-02-26 18:38:13.603620"], ["updated_at", "2015-02-26 18:38:13.603620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:38:13 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:38:13.626139' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lVvtGRFKeeyj70D_ceSdK_vj87KOxAN-SmUIBJ_MhgQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:38:13.634971"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:38:13.636842"], ["id", "9f02bfd2-bde6-11e4-aa40-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9f023c56-bde6-11e4-9a2a-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "9f023c56-bde6-11e4-9a2a-705681abff85"]] Completed 200 OK in 34ms (Views: 4.7ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$QGA6W//gq/W.3MYXM6RROetupeQvLs3gWngTSwTTsLlWUnFP7xC9q"], ["created_at", "2015-02-26 18:38:13.669360"], ["updated_at", "2015-02-26 18:38:13.669360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (12.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:13.671098"], ["user_id", "9f0fda28-bde6-11e4-a73f-705681abff85"], ["created_at", "2015-02-26 18:38:13.671892"], ["updated_at", "2015-02-26 18:38:13.671892"], ["token", "8hLFuLxTg8NWVPfHLbTJ0Vp2lX4zjLRF_RwQ-JLq1zU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:13.687066"], ["updated_at", "2015-02-26 18:38:13.687066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f0fda28-bde6-11e4-a73f-705681abff85"], ["organization_id", "9f1291b4-bde6-11e4-ba34-705681abff85"], ["created_at", "2015-02-26 18:38:13.689827"], ["updated_at", "2015-02-26 18:38:13.689827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$wHFVIzr0QNh0iU6IZriUc.aMjACYfXZTiKILCAX4HpslhxxI29KRa"], ["created_at", "2015-02-26 18:38:13.695339"], ["updated_at", "2015-02-26 18:38:13.695339"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:13.697738"], ["updated_at", "2015-02-26 18:38:13.697738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f13d01a-bde6-11e4-9c5c-705681abff85"], ["organization_id", "9f142d9e-bde6-11e4-8f7d-705681abff85"], ["created_at", "2015-02-26 18:38:13.701038"], ["updated_at", "2015-02-26 18:38:13.701038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:38:13 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$sPKbKj1V68HNZwVblc8J1uIsP2UEC9CoqIAc8KALknGwKKoprvGba"], ["created_at", "2015-02-26 18:38:13.717267"], ["updated_at", "2015-02-26 18:38:13.717267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:13.720051"], ["user_id", "9f173782-bde6-11e4-ac80-705681abff85"], ["created_at", "2015-02-26 18:38:13.721373"], ["updated_at", "2015-02-26 18:38:13.721373"], ["token", "AFwB5N_n_RCrUXCFP2tZ9FC6qqj1tynik9rRGN3hZvQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:13.724727"], ["updated_at", "2015-02-26 18:38:13.724727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f173782-bde6-11e4-ac80-705681abff85"], ["organization_id", "9f18527a-bde6-11e4-b8e1-705681abff85"], ["created_at", "2015-02-26 18:38:13.727983"], ["updated_at", "2015-02-26 18:38:13.727983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-7" for 127.0.0.1 at 2015-02-26 10:38:13 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$tfPCxI34axIxc/HDxDukoOU5lWYYI7baPtfS0byL4bNfkhvIucI1S"], ["created_at", "2015-02-26 18:38:13.739902"], ["updated_at", "2015-02-26 18:38:13.739902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:13.742494"], ["user_id", "9f1aacf0-bde6-11e4-b2cd-705681abff85"], ["created_at", "2015-02-26 18:38:13.744104"], ["updated_at", "2015-02-26 18:38:13.744104"], ["token", "fsUtXo5GGnIpQEhxmfF1qbiftvnelxpQe2ewwiwfzRI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:13.777899"], ["updated_at", "2015-02-26 18:38:13.777899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f1aacf0-bde6-11e4-b2cd-705681abff85"], ["organization_id", "9f206956-bde6-11e4-919b-705681abff85"], ["created_at", "2015-02-26 18:38:13.780599"], ["updated_at", "2015-02-26 18:38:13.780599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-26 10:38:13 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$yFZdcmSDTZLMKSWDzW.ynu65UQNBZXFh6K6IcpaLLhshE8C5vdXmC"], ["created_at", "2015-02-26 18:38:24.420282"], ["updated_at", "2015-02-26 18:38:24.420282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:24.431428"], ["user_id", "a5787d8e-bde6-11e4-bacc-705681abff85"], ["created_at", "2015-02-26 18:38:24.437628"], ["updated_at", "2015-02-26 18:38:24.437628"], ["token", "vrUlBfggWJVlNYQmNqeRglqOsZ3adtwJ_4yz2cB-g_0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:24.447985"], ["updated_at", "2015-02-26 18:38:24.447985"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5787d8e-bde6-11e4-bacc-705681abff85"], ["organization_id", "a57cadaa-bde6-11e4-910c-705681abff85"], ["created_at", "2015-02-26 18:38:24.491668"], ["updated_at", "2015-02-26 18:38:24.491668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a57cadaa-bde6-11e4-910c-705681abff85" for 127.0.0.1 at 2015-02-26 10:38:24 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$YNyX.jRo0QkdgcyWXEKldu3BtHmxMyjoK.SfQQoZ0WBHdrTawYJ8S"], ["created_at", "2015-02-26 18:38:24.571747"], ["updated_at", "2015-02-26 18:38:24.571747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:24.574465"], ["user_id", "a58f7eda-bde6-11e4-a80e-705681abff85"], ["created_at", "2015-02-26 18:38:24.575620"], ["updated_at", "2015-02-26 18:38:24.575620"], ["token", "jKckGh4F6ZMXNozE0oejSEMx0gR6pe7YKxyUZcur4Lw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:24.583865"], ["updated_at", "2015-02-26 18:38:24.583865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a58f7eda-bde6-11e4-a80e-705681abff85"], ["organization_id", "a59156d8-bde6-11e4-af79-705681abff85"], ["created_at", "2015-02-26 18:38:24.587984"], ["updated_at", "2015-02-26 18:38:24.587984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-26 10:38:24 -0800  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$9SvyG11gqfK.WSO3sKIf..C07kjZ9TinrrU4ZxXZhHf6EInm5bqQK"], ["created_at", "2015-02-26 18:38:24.603340"], ["updated_at", "2015-02-26 18:38:24.603340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:24.605752"], ["user_id", "a5944dc0-bde6-11e4-b54f-705681abff85"], ["created_at", "2015-02-26 18:38:24.606878"], ["updated_at", "2015-02-26 18:38:24.606878"], ["token", "ey5VtbTeM0ch9aLufHOqedqXMXNwlh9nEUXIXi4Vnc8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:24.610329"], ["updated_at", "2015-02-26 18:38:24.610329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5944dc0-bde6-11e4-b54f-705681abff85"], ["organization_id", "a595685e-bde6-11e4-a7ac-705681abff85"], ["created_at", "2015-02-26 18:38:24.614200"], ["updated_at", "2015-02-26 18:38:24.614200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-3" for 127.0.0.1 at 2015-02-26 10:38:24 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Yj6DFmv2gVMt4EUmaGMoeeKreNvNcRQik2o2tgRwtrxP8Wdt4R2ti"], ["created_at", "2015-02-26 18:38:24.627566"], ["updated_at", "2015-02-26 18:38:24.627566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:24.630208"], ["user_id", "a598000a-bde6-11e4-b8a9-705681abff85"], ["created_at", "2015-02-26 18:38:24.631545"], ["updated_at", "2015-02-26 18:38:24.631545"], ["token", "vxHABwqMeumIuOFLKIXWJGZMOXYstJXMi-YRolso8ms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:24.634799"], ["updated_at", "2015-02-26 18:38:24.634799"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a598000a-bde6-11e4-b8a9-705681abff85"], ["organization_id", "a5991df0-bde6-11e4-9650-705681abff85"], ["created_at", "2015-02-26 18:38:24.639102"], ["updated_at", "2015-02-26 18:38:24.639102"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-26 10:38:24 -0800  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$0h.jr4UynYBZfQkE4.EPR.zPSj/fpGiRI4q8F9cA/UjA4ZrmDz8n2"], ["created_at", "2015-02-26 18:38:24.660053"], ["updated_at", "2015-02-26 18:38:24.660053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:24.663463"], ["user_id", "a59d017c-bde6-11e4-bb18-705681abff85"], ["created_at", "2015-02-26 18:38:24.665105"], ["updated_at", "2015-02-26 18:38:24.665105"], ["token", "vzHLIGDp7JaSo51UQ6KfJVNRZ25fj5GYyURN3PgxNCc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:24.669501"], ["updated_at", "2015-02-26 18:38:24.669501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a59d017c-bde6-11e4-bb18-705681abff85"], ["organization_id", "a59e6508-bde6-11e4-a66a-705681abff85"], ["created_at", "2015-02-26 18:38:24.673474"], ["updated_at", "2015-02-26 18:38:24.673474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$gf8P1zlhl9J03vmqtEGPmutLo2paitsI.Cz5j/8g/pF/vkK92HuyC"], ["created_at", "2015-02-26 18:38:24.684084"], ["updated_at", "2015-02-26 18:38:24.684084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:24.687057"], ["updated_at", "2015-02-26 18:38:24.687057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5a0a5e8-bde6-11e4-866a-705681abff85"], ["organization_id", "a5a12612-bde6-11e4-8f5a-705681abff85"], ["created_at", "2015-02-26 18:38:24.690799"], ["updated_at", "2015-02-26 18:38:24.690799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:38:24 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:38:24.698584' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vzHLIGDp7JaSo51UQ6KfJVNRZ25fj5GYyURN3PgxNCc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (4.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:38:24.710452"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:38:24.712117"], ["id", "a59dcd14-bde6-11e4-bb46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a59d017c-bde6-11e4-bb18-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a59d017c-bde6-11e4-bb18-705681abff85"]] Completed 200 OK in 45ms (Views: 4.5ms | ActiveRecord: 5.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$qcMZ.ulbv8XqufPz5oCvte1gfMDIokBHqBqHi/VzGNKV2bf.PJRA6"], ["created_at", "2015-02-26 18:38:24.752581"], ["updated_at", "2015-02-26 18:38:24.752581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:38:24.754465"], ["user_id", "a5ab00f6-bde6-11e4-8867-705681abff85"], ["created_at", "2015-02-26 18:38:24.755289"], ["updated_at", "2015-02-26 18:38:24.755289"], ["token", "p9kMH_voX6oiiUpG2nMFlNgtzriGO3zDBl9wPvZTKzo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:24.757746"], ["updated_at", "2015-02-26 18:38:24.757746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5ab00f6-bde6-11e4-8867-705681abff85"], ["organization_id", "a5abcacc-bde6-11e4-b2d1-705681abff85"], ["created_at", "2015-02-26 18:38:24.760347"], ["updated_at", "2015-02-26 18:38:24.760347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$pSIob3YTaWPA6q6A9It.e.ycn5.RXIu2wXkONmxmQwkCj63ZsLNny"], ["created_at", "2015-02-26 18:38:24.764999"], ["updated_at", "2015-02-26 18:38:24.764999"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:38:24.800985"], ["updated_at", "2015-02-26 18:38:24.800985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5acedc6-bde6-11e4-add5-705681abff85"], ["organization_id", "a5b2897a-bde6-11e4-89d3-705681abff85"], ["created_at", "2015-02-26 18:38:24.805816"], ["updated_at", "2015-02-26 18:38:24.805816"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:38:24 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$sNCUbYdxHejU6xl0cFPVve/N4x6Yt6suy4l3DYBeeqCTyUmQKU0LS"], ["created_at", "2015-02-26 18:39:09.731692"], ["updated_at", "2015-02-26 18:39:09.731692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:09.741621"], ["user_id", "c07a729a-bde6-11e4-ae6b-705681abff85"], ["created_at", "2015-02-26 18:39:09.747795"], ["updated_at", "2015-02-26 18:39:09.747795"], ["token", "td_SUJMhm31qmVLVYmndHfIRoR-m83c5EB7N3_SFBt0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:09.755635"], ["updated_at", "2015-02-26 18:39:09.755635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (5.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c07a729a-bde6-11e4-ae6b-705681abff85"], ["organization_id", "c07dfa5a-bde6-11e4-b50c-705681abff85"], ["created_at", "2015-02-26 18:39:09.765796"], ["updated_at", "2015-02-26 18:39:09.765796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$YpXIPXC08hS4ZF./QGx0We32H8A.XCvnlyBvgH9.8xuzZyq/uEAgi"], ["created_at", "2015-02-26 18:39:09.776574"], ["updated_at", "2015-02-26 18:39:09.776574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:09.778999"], ["updated_at", "2015-02-26 18:39:09.778999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c0811fe6-bde6-11e4-b93f-705681abff85"], ["organization_id", "c081815c-bde6-11e4-8d7a-705681abff85"], ["created_at", "2015-02-26 18:39:09.781501"], ["updated_at", "2015-02-26 18:39:09.781501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:39:09 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$bBI8OjhwXuVhBHtZVUfhvuAF/vjYaj5lC3xkVuOtMQUVD5IYHE17e"], ["created_at", "2015-02-26 18:39:09.813731"], ["updated_at", "2015-02-26 18:39:09.813731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:09.815552"], ["user_id", "c086cebe-bde6-11e4-850e-705681abff85"], ["created_at", "2015-02-26 18:39:09.816370"], ["updated_at", "2015-02-26 18:39:09.816370"], ["token", "uZuUV1F6oZyZBfN07zZ2x6TORO8uc5L_K3NQmx7w4v0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:09.818683"], ["updated_at", "2015-02-26 18:39:09.818683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c086cebe-bde6-11e4-850e-705681abff85"], ["organization_id", "c0878b9c-bde6-11e4-adf8-705681abff85"], ["created_at", "2015-02-26 18:39:09.821237"], ["updated_at", "2015-02-26 18:39:09.821237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$DTq5skELz/sFV8K8GQCIR.4p6cgCOjUrJYRciwuilTsgSVjmAzq56"], ["created_at", "2015-02-26 18:39:09.825855"], ["updated_at", "2015-02-26 18:39:09.825855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:09.827932"], ["updated_at", "2015-02-26 18:39:09.827932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c088a40a-bde6-11e4-90ac-705681abff85"], ["organization_id", "c088f52c-bde6-11e4-a49b-705681abff85"], ["created_at", "2015-02-26 18:39:09.830298"], ["updated_at", "2015-02-26 18:39:09.830298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:39:09 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:39:09.835348' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uZuUV1F6oZyZBfN07zZ2x6TORO8uc5L_K3NQmx7w4v0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:39:09.842534"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:39:09.844176"], ["id", "c0873976-bde6-11e4-b28d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c086cebe-bde6-11e4-850e-705681abff85"]] Clubhouse::Organization Load (0.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c086cebe-bde6-11e4-850e-705681abff85"]] Completed 200 OK in 33ms (Views: 4.3ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$OrPbQbzL34B/7SMk4h.k/OpLQ8rXp2m4vcJnYFv26fLrM1ZQsJeMO"], ["created_at", "2015-02-26 18:39:09.880843"], ["updated_at", "2015-02-26 18:39:09.880843"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:09.883564"], ["user_id", "c09122b0-bde6-11e4-89b4-705681abff85"], ["created_at", "2015-02-26 18:39:09.885046"], ["updated_at", "2015-02-26 18:39:09.885046"], ["token", "Fwm7lNy3-TfRj6R6L89FoxaPhJRzKhoxn64rrao1Ms0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:09.888284"], ["updated_at", "2015-02-26 18:39:09.888284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c09122b0-bde6-11e4-89b4-705681abff85"], ["organization_id", "c0923722-bde6-11e4-92bb-705681abff85"], ["created_at", "2015-02-26 18:39:09.891161"], ["updated_at", "2015-02-26 18:39:09.891161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-26 10:39:09 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$IpRFIG/b98rGK6Ck.HV6s.wXDIgB9u6H4vFDgN8SN4IwU4rdhn.pC"], ["created_at", "2015-02-26 18:39:09.902640"], ["updated_at", "2015-02-26 18:39:09.902640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:09.904477"], ["user_id", "c0946240-bde6-11e4-aea2-705681abff85"], ["created_at", "2015-02-26 18:39:09.905241"], ["updated_at", "2015-02-26 18:39:09.905241"], ["token", "tZRlDDzJryO3_ndYoYWban-un--qRTwIQdXk_HHtdmA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:09.907847"], ["updated_at", "2015-02-26 18:39:09.907847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c0946240-bde6-11e4-aea2-705681abff85"], ["organization_id", "c09532ba-bde6-11e4-824f-705681abff85"], ["created_at", "2015-02-26 18:39:09.910650"], ["updated_at", "2015-02-26 18:39:09.910650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-02-26 10:39:09 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:39:09.915837' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tZRlDDzJryO3_ndYoYWban-un--qRTwIQdXk_HHtdmA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:39:09.917496"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:39:09.918549"], ["id", "c094c78a-bde6-11e4-8492-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c0946240-bde6-11e4-aea2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "c0946240-bde6-11e4-aea2-705681abff85"], ["id", nil]] Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$j6j5VxYqiRgUxIj14IrbF.RqiyPBlYZZawK.qyQ1g0hM11letPvy."], ["created_at", "2015-02-26 18:39:09.930615"], ["updated_at", "2015-02-26 18:39:09.930615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:09.960671"], ["user_id", "c09cedf2-bde6-11e4-b8f3-705681abff85"], ["created_at", "2015-02-26 18:39:09.961655"], ["updated_at", "2015-02-26 18:39:09.961655"], ["token", "c6zvoAGuMYIkkWJ7sDBsFQYcnxyAO31JTaKLTQEA23Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:09.964255"], ["updated_at", "2015-02-26 18:39:09.964255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c09cedf2-bde6-11e4-b8f3-705681abff85"], ["organization_id", "c09dccd6-bde6-11e4-9854-705681abff85"], ["created_at", "2015-02-26 18:39:09.967492"], ["updated_at", "2015-02-26 18:39:09.967492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-26 10:39:09 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$0wgvIyIJFGT4BN7RA3T0VevL7IN8Cmo6HjEAVCp32FG.7gmj7DSum"], ["created_at", "2015-02-26 18:39:09.978889"], ["updated_at", "2015-02-26 18:39:09.978889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:09.980745"], ["user_id", "c09ffee8-bde6-11e4-a852-705681abff85"], ["created_at", "2015-02-26 18:39:09.981554"], ["updated_at", "2015-02-26 18:39:09.981554"], ["token", "r_o8pfjFGaYSOsvZEFoSa11TECG29-52ARblkaWYesE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:09.983948"], ["updated_at", "2015-02-26 18:39:09.983948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c09ffee8-bde6-11e4-a852-705681abff85"], ["organization_id", "c0a0c058-bde6-11e4-a628-705681abff85"], ["created_at", "2015-02-26 18:39:09.986148"], ["updated_at", "2015-02-26 18:39:09.986148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c0a0c058-bde6-11e4-a628-705681abff85" for 127.0.0.1 at 2015-02-26 10:39:09 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"c0a0c058-bde6-11e4-a628-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:39:09.990402' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r_o8pfjFGaYSOsvZEFoSa11TECG29-52ARblkaWYesE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:39:09.991950"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:39:09.992925"], ["id", "c0a06f9a-bde6-11e4-a2ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c09ffee8-bde6-11e4-a852-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "c09ffee8-bde6-11e4-a852-705681abff85"], ["id", "c0a0c058-bde6-11e4-a628-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (12.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$hRpq2fG92sFNdlvN.57Y9eZuuODTAHa8Eg5u2RvKdd3gBIsqTLcBW"], ["created_at", "2015-02-26 18:39:57.244766"], ["updated_at", "2015-02-26 18:39:57.244766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:57.267217"], ["user_id", "dccc7024-bde6-11e4-a91e-705681abff85"], ["created_at", "2015-02-26 18:39:57.273542"], ["updated_at", "2015-02-26 18:39:57.273542"], ["token", "lxfUYr_RglE-UwUlI2hixzS64s0Vsugh3vP-Pi7Oyeg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:57.282549"], ["updated_at", "2015-02-26 18:39:57.282549"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dccc7024-bde6-11e4-a91e-705681abff85"], ["organization_id", "dcd205c0-bde6-11e4-b642-705681abff85"], ["created_at", "2015-02-26 18:39:57.300176"], ["updated_at", "2015-02-26 18:39:57.300176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$FTYpjllDtAW/dJa2KxA7IOFUkq3bn1qlwXN0.2Wwhgmj0xxnKPJz2"], ["created_at", "2015-02-26 18:39:57.306074"], ["updated_at", "2015-02-26 18:39:57.306074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:57.308514"], ["updated_at", "2015-02-26 18:39:57.308514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dcd58dda-bde6-11e4-96e2-705681abff85"], ["organization_id", "dcd5eeba-bde6-11e4-b634-705681abff85"], ["created_at", "2015-02-26 18:39:57.310935"], ["updated_at", "2015-02-26 18:39:57.310935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:39:57 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$kMSmqDXg3HL54JErx.1UH.DnUQ6I7hqj3doSWW.f2jO2vDJ0UNyZy"], ["created_at", "2015-02-26 18:39:57.343804"], ["updated_at", "2015-02-26 18:39:57.343804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:57.345611"], ["user_id", "dcdb526a-bde6-11e4-9adf-705681abff85"], ["created_at", "2015-02-26 18:39:57.346631"], ["updated_at", "2015-02-26 18:39:57.346631"], ["token", "iE8h2JEcf3zkUbz06fPa2Cy0-jJpFdANMPoz4yWBYOY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:57.351475"], ["updated_at", "2015-02-26 18:39:57.351475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dcdb526a-bde6-11e4-9adf-705681abff85"], ["organization_id", "dcdc7d5c-bde6-11e4-b929-705681abff85"], ["created_at", "2015-02-26 18:39:57.354049"], ["updated_at", "2015-02-26 18:39:57.354049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$WthPwmATyovsp4HgfzOJZuLJuCHk3adMavlIy0Zkt6c2YHJJCeySy"], ["created_at", "2015-02-26 18:39:57.358840"], ["updated_at", "2015-02-26 18:39:57.358840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:57.361079"], ["updated_at", "2015-02-26 18:39:57.361079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dcdd98b8-bde6-11e4-8a69-705681abff85"], ["organization_id", "dcddf2c2-bde6-11e4-b708-705681abff85"], ["created_at", "2015-02-26 18:39:57.363627"], ["updated_at", "2015-02-26 18:39:57.363627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:39:57 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:39:57.368641' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iE8h2JEcf3zkUbz06fPa2Cy0-jJpFdANMPoz4yWBYOY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:39:57.376309"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:39:57.377599"], ["id", "dcdbd014-bde6-11e4-8cc8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dcdb526a-bde6-11e4-9adf-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "dcdb526a-bde6-11e4-9adf-705681abff85"]] Completed 200 OK in 31ms (Views: 4.1ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$HDpTZdZNzwdvf/hKDAVV0.JF/hkKSfk5OcEoNNEMtAKtwlfxf3PIi"], ["created_at", "2015-02-26 18:39:57.408288"], ["updated_at", "2015-02-26 18:39:57.408288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:57.411393"], ["user_id", "dce54202-bde6-11e4-a12c-705681abff85"], ["created_at", "2015-02-26 18:39:57.412812"], ["updated_at", "2015-02-26 18:39:57.412812"], ["token", "s0y1NkprNOQivWCm0HQS85W21Oa5csNx-Ye2NlICLgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:57.415537"], ["updated_at", "2015-02-26 18:39:57.415537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dce54202-bde6-11e4-a12c-705681abff85"], ["organization_id", "dce64210-bde6-11e4-ab89-705681abff85"], ["created_at", "2015-02-26 18:39:57.418358"], ["updated_at", "2015-02-26 18:39:57.418358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-26 10:39:57 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$/UfyXo3VPoEU5gdiJhJ4Xe5FPWKIGUpgvVXtUR9Q5PfGupBqaPNuu"], ["created_at", "2015-02-26 18:39:57.431449"], ["updated_at", "2015-02-26 18:39:57.431449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:57.433162"], ["user_id", "dce8b07c-bde6-11e4-b8c3-705681abff85"], ["created_at", "2015-02-26 18:39:57.433974"], ["updated_at", "2015-02-26 18:39:57.433974"], ["token", "fNOM89F5-pa3EL9tlykZCb4yzP72MLwraMrUitfxTHI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:57.436538"], ["updated_at", "2015-02-26 18:39:57.436538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dce8b07c-bde6-11e4-b8c3-705681abff85"], ["organization_id", "dce9776e-bde6-11e4-ac75-705681abff85"], ["created_at", "2015-02-26 18:39:57.439211"], ["updated_at", "2015-02-26 18:39:57.439211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-02-26 10:39:57 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:39:57.444476' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fNOM89F5-pa3EL9tlykZCb4yzP72MLwraMrUitfxTHI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:39:57.445944"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:39:57.447123"], ["id", "dce91616-bde6-11e4-ad53-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dce8b07c-bde6-11e4-b8c3-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "dce8b07c-bde6-11e4-b8c3-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$cOMXCLx/8YZVB1A2CsNur.aWVPKJtWSAaJS4ST0ENciS/6jSxs.4q"], ["created_at", "2015-02-26 18:39:57.458031"], ["updated_at", "2015-02-26 18:39:57.458031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:57.489223"], ["user_id", "dcf134a4-bde6-11e4-a760-705681abff85"], ["created_at", "2015-02-26 18:39:57.490103"], ["updated_at", "2015-02-26 18:39:57.490103"], ["token", "2v2UsUcbtqSp8-jySYC96WEI0MqCwSt8iLJ8c4oUokM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:57.496805"], ["updated_at", "2015-02-26 18:39:57.496805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dcf134a4-bde6-11e4-a760-705681abff85"], ["organization_id", "dcf2a794-bde6-11e4-bf8c-705681abff85"], ["created_at", "2015-02-26 18:39:57.499401"], ["updated_at", "2015-02-26 18:39:57.499401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-26 10:39:57 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$D7wA8E4Tqe3Pgu7VgAN.a.wZfxhJFgmgP3CUANoMteJM8xoTkdK.i"], ["created_at", "2015-02-26 18:39:57.511312"], ["updated_at", "2015-02-26 18:39:57.511312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:39:57.513226"], ["user_id", "dcf4e4fa-bde6-11e4-a769-705681abff85"], ["created_at", "2015-02-26 18:39:57.513992"], ["updated_at", "2015-02-26 18:39:57.513992"], ["token", "MaVq3nmGZB5r_eoUBo4c4IbetmpIaq7tBBrNDebRZe0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:39:57.516623"], ["updated_at", "2015-02-26 18:39:57.516623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dcf4e4fa-bde6-11e4-a769-705681abff85"], ["organization_id", "dcf5abce-bde6-11e4-b025-705681abff85"], ["created_at", "2015-02-26 18:39:57.518923"], ["updated_at", "2015-02-26 18:39:57.518923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/dcf5abce-bde6-11e4-b025-705681abff85" for 127.0.0.1 at 2015-02-26 10:39:57 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"dcf5abce-bde6-11e4-b025-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:39:57.523422' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MaVq3nmGZB5r_eoUBo4c4IbetmpIaq7tBBrNDebRZe0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:39:57.524936"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:39:57.525903"], ["id", "dcf54f30-bde6-11e4-a97a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dcf4e4fa-bde6-11e4-a769-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "dcf4e4fa-bde6-11e4-a769-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (6.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Cbk7PngqwwmnsfeNlbNB/O2xqoejNWwHnjlUaFQAQHLA3/r6wvU4K"], ["created_at", "2015-02-26 18:48:02.727616"], ["updated_at", "2015-02-26 18:48:02.727616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:48:02.744384"], ["user_id", "fe2b4ece-bde7-11e4-8d7d-705681abff85"], ["created_at", "2015-02-26 18:48:02.751049"], ["updated_at", "2015-02-26 18:48:02.751049"], ["token", "4SwMoirsDBlfvxEtS40uNQmiyxDzqsLJdBcEX6L3tIo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:48:02.760059"], ["updated_at", "2015-02-26 18:48:02.760059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fe2b4ece-bde7-11e4-8d7d-705681abff85"], ["organization_id", "fe3001e4-bde7-11e4-9fb3-705681abff85"], ["created_at", "2015-02-26 18:48:02.769770"], ["updated_at", "2015-02-26 18:48:02.769770"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-26 10:48:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$bABbNirCN9C0HkiejCBcBu1NjdASfgnkcYM/YylarV/xhwsmRtYBe"], ["created_at", "2015-02-26 18:48:02.808192"], ["updated_at", "2015-02-26 18:48:02.808192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:48:02.809937"], ["user_id", "fe374ce2-bde7-11e4-b4c5-705681abff85"], ["created_at", "2015-02-26 18:48:02.810738"], ["updated_at", "2015-02-26 18:48:02.810738"], ["token", "vJb-K0hIoHsYBekKX4e0YMdYd_sfalHTMWY_hMIjmp8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:48:02.813039"], ["updated_at", "2015-02-26 18:48:02.813039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fe374ce2-bde7-11e4-b4c5-705681abff85"], ["organization_id", "fe380560-bde7-11e4-9376-705681abff85"], ["created_at", "2015-02-26 18:48:02.815324"], ["updated_at", "2015-02-26 18:48:02.815324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-2" for 127.0.0.1 at 2015-02-26 10:48:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Session Load (1.1ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:48:02.819611' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vJb-K0hIoHsYBekKX4e0YMdYd_sfalHTMWY_hMIjmp8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:48:02.828392"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:48:02.830065"], ["id", "fe37b470-bde7-11e4-a935-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fe374ce2-bde7-11e4-b4c5-705681abff85"]] Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "fe374ce2-bde7-11e4-b4c5-705681abff85"]] Completed 500 Internal Server Error in 36ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$4lMS3y5P./ah3MUQvijrYeFPQOL5ikrdhpvpa7FzsNrQRZO2tfQVe"], ["created_at", "2015-02-26 18:48:02.860836"], ["updated_at", "2015-02-26 18:48:02.860836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:48:02.862664"], ["user_id", "fe3f56c6-bde7-11e4-90f5-705681abff85"], ["created_at", "2015-02-26 18:48:02.863512"], ["updated_at", "2015-02-26 18:48:02.863512"], ["token", "GpGWpmFAQP7NC41dvOotUQFR2MASzHXKa1ztO14orE0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:48:02.865832"], ["updated_at", "2015-02-26 18:48:02.865832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fe3f56c6-bde7-11e4-90f5-705681abff85"], ["organization_id", "fe401296-bde7-11e4-bc56-705681abff85"], ["created_at", "2015-02-26 18:48:02.874306"], ["updated_at", "2015-02-26 18:48:02.874306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$zXDBP95qaSi.WUXO/EVHVuA74rnp71qSWez5puqNGKIH3nwXhyBcC"], ["created_at", "2015-02-26 18:48:02.878997"], ["updated_at", "2015-02-26 18:48:02.878997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:48:02.881144"], ["updated_at", "2015-02-26 18:48:02.881144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fe4217b2-bde7-11e4-b0c0-705681abff85"], ["organization_id", "fe426e4c-bde7-11e4-a6d2-705681abff85"], ["created_at", "2015-02-26 18:48:02.883666"], ["updated_at", "2015-02-26 18:48:02.883666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:48:02 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$H5wn0NYEURErg76ZuNDHaejb6qCfrvmtyaSueeGyWWzNomPn.zim2"], ["created_at", "2015-02-26 18:48:02.895739"], ["updated_at", "2015-02-26 18:48:02.895739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:48:02.897531"], ["user_id", "fe44a8ce-bde7-11e4-8080-705681abff85"], ["created_at", "2015-02-26 18:48:02.898357"], ["updated_at", "2015-02-26 18:48:02.898357"], ["token", "f8KQEhiEa9muNTSk3BgFcJeZN5Lj7eK2sofcpRJwtVg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:48:02.902315"], ["updated_at", "2015-02-26 18:48:02.902315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fe44a8ce-bde7-11e4-8080-705681abff85"], ["organization_id", "fe45a878-bde7-11e4-a0a0-705681abff85"], ["created_at", "2015-02-26 18:48:02.904662"], ["updated_at", "2015-02-26 18:48:02.904662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ZKK0pmAbpMXZgeKDqUlPDujy4lJvr1m8V1FGVLFdq5c7hbAmc/wUy"], ["created_at", "2015-02-26 18:48:02.909341"], ["updated_at", "2015-02-26 18:48:02.909341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:48:02.911664"], ["updated_at", "2015-02-26 18:48:02.911664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fe46c0d2-bde7-11e4-85db-705681abff85"], ["organization_id", "fe47137a-bde7-11e4-93a5-705681abff85"], ["created_at", "2015-02-26 18:48:02.914142"], ["updated_at", "2015-02-26 18:48:02.914142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:48:02 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:48:02.918642' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "f8KQEhiEa9muNTSk3BgFcJeZN5Lj7eK2sofcpRJwtVg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:48:02.920102"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:48:02.921129"], ["id", "fe4547d4-bde7-11e4-b4ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fe44a8ce-bde7-11e4-8080-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "fe44a8ce-bde7-11e4-8080-705681abff85"]] Completed 200 OK in 10ms (Views: 3.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$JH9paFFN35agR//6NLOQS.LmiqS3UtFt.y1pMMWByWkmvvcf10Fj6"], ["created_at", "2015-02-26 18:48:02.937955"], ["updated_at", "2015-02-26 18:48:02.937955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:48:02.971074"], ["user_id", "fe4fe180-bde7-11e4-bba0-705681abff85"], ["created_at", "2015-02-26 18:48:02.971984"], ["updated_at", "2015-02-26 18:48:02.971984"], ["token", "eHrly6fPD9BVfe4iBP1WwExMHcjB3ptNsfZovfsheL4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:48:02.974253"], ["updated_at", "2015-02-26 18:48:02.974253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fe4fe180-bde7-11e4-bba0-705681abff85"], ["organization_id", "fe509cc4-bde7-11e4-9246-705681abff85"], ["created_at", "2015-02-26 18:48:02.976436"], ["updated_at", "2015-02-26 18:48:02.976436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-26 10:48:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$AMoAS6LTBbrHHLMoyBeMAOh0XpQ435NlGTDGeJl5Lf3PftXhnNgpy"], ["created_at", "2015-02-26 18:48:02.989385"], ["updated_at", "2015-02-26 18:48:02.989385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:48:02.991309"], ["user_id", "fe52f5dc-bde7-11e4-96b8-705681abff85"], ["created_at", "2015-02-26 18:48:02.992098"], ["updated_at", "2015-02-26 18:48:02.992098"], ["token", "o3AjlNXKvmraKH9dF6YDn6oAV8j9MOhbXbfLybvY0xA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:48:02.994466"], ["updated_at", "2015-02-26 18:48:02.994466"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fe52f5dc-bde7-11e4-96b8-705681abff85"], ["organization_id", "fe53b350-bde7-11e4-b73e-705681abff85"], ["created_at", "2015-02-26 18:48:02.997356"], ["updated_at", "2015-02-26 18:48:02.997356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/fe53b350-bde7-11e4-b73e-705681abff85" for 127.0.0.1 at 2015-02-26 10:48:03 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"fe53b350-bde7-11e4-b73e-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:48:03.003000' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o3AjlNXKvmraKH9dF6YDn6oAV8j9MOhbXbfLybvY0xA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:48:03.004428"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:48:03.005495"], ["id", "fe5363b4-bde7-11e4-8f9a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fe52f5dc-bde7-11e4-96b8-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "fe52f5dc-bde7-11e4-96b8-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Hef/vlNtvdgplmhuSbLHeOqVS0ATwOonarsMKn10W4CLcERuALGYO"], ["created_at", "2015-02-26 18:52:52.554847"], ["updated_at", "2015-02-26 18:52:52.554847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:52:52.570859"], ["user_id", "aaeb4b3c-bde8-11e4-9ef6-705681abff85"], ["created_at", "2015-02-26 18:52:52.577638"], ["updated_at", "2015-02-26 18:52:52.577638"], ["token", "Y2B-OmO8mtRrytOXz45P3dl1SmPm9NUa-ivjAtpcy9Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:52:52.591466"], ["updated_at", "2015-02-26 18:52:52.591466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "aaeb4b3c-bde8-11e4-9ef6-705681abff85"], ["organization_id", "aaf0c42c-bde8-11e4-8f07-705681abff85"], ["created_at", "2015-02-26 18:52:52.601286"], ["updated_at", "2015-02-26 18:52:52.601286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/aaf0c42c-bde8-11e4-8f07-705681abff85" for 127.0.0.1 at 2015-02-26 10:52:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"aaf0c42c-bde8-11e4-8f07-705681abff85", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:52:52.624023' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y2B-OmO8mtRrytOXz45P3dl1SmPm9NUa-ivjAtpcy9Q"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:52:52.631949"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:52:52.633307"], ["id", "aaeeb196-bde8-11e4-b373-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aaeb4b3c-bde8-11e4-9ef6-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "aaeb4b3c-bde8-11e4-9ef6-705681abff85"], ["id", "aaf0c42c-bde8-11e4-8f07-705681abff85"]] Completed 200 OK in 32ms (Views: 1.7ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$d6SL7do.VctPCSPantl/4eJ8tgM3WnYGajP0w5lnIkr78KzpF3mvC"], ["created_at", "2015-02-26 18:52:52.664504"], ["updated_at", "2015-02-26 18:52:52.664504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:52:52.666367"], ["user_id", "aafbdf56-bde8-11e4-85dc-705681abff85"], ["created_at", "2015-02-26 18:52:52.667196"], ["updated_at", "2015-02-26 18:52:52.667196"], ["token", "8X5eCh6_sBKATGFLe4y9AjLGKVDw5Y56pBmC3Beqv_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:52:52.669475"], ["updated_at", "2015-02-26 18:52:52.669475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "aafbdf56-bde8-11e4-85dc-705681abff85"], ["organization_id", "aafc9946-bde8-11e4-85af-705681abff85"], ["created_at", "2015-02-26 18:52:52.671974"], ["updated_at", "2015-02-26 18:52:52.671974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-26 10:52:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$wGZ04EQUmJHYRbGy9elIQu9AjOkV8Hd8YWFdnFMIkWIDhC22bLgVK"], ["created_at", "2015-02-26 18:52:52.684742"], ["updated_at", "2015-02-26 18:52:52.684742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:52:52.686530"], ["user_id", "aafef484-bde8-11e4-946e-705681abff85"], ["created_at", "2015-02-26 18:52:52.687287"], ["updated_at", "2015-02-26 18:52:52.687287"], ["token", "7WdJ1lB7z8ceait2LkGBQdnNGKf36kXsbWJlwxo7gTA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:52:52.689659"], ["updated_at", "2015-02-26 18:52:52.689659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "aafef484-bde8-11e4-946e-705681abff85"], ["organization_id", "aaffb34c-bde8-11e4-ad93-705681abff85"], ["created_at", "2015-02-26 18:52:52.692191"], ["updated_at", "2015-02-26 18:52:52.692191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$8rkR8QopJhTW4LDHNmI1IuVWOs4NxyLyIyRDyZ4dKwGFOfQNBwXAy"], ["created_at", "2015-02-26 18:52:52.697418"], ["updated_at", "2015-02-26 18:52:52.697418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:52:52.699607"], ["updated_at", "2015-02-26 18:52:52.699607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ab00e028-bde8-11e4-81e2-705681abff85"], ["organization_id", "ab0136c2-bde8-11e4-ae23-705681abff85"], ["created_at", "2015-02-26 18:52:52.701902"], ["updated_at", "2015-02-26 18:52:52.701902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:52:52 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:52:52.706343' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7WdJ1lB7z8ceait2LkGBQdnNGKf36kXsbWJlwxo7gTA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:52:52.707937"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:52:52.709046"], ["id", "aaff5906-bde8-11e4-a731-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aafef484-bde8-11e4-946e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "aafef484-bde8-11e4-946e-705681abff85"]] Completed 200 OK in 9ms (Views: 2.3ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$XJLfFfH5iqmhzqfBiMJQ7.wtJXE6qdNdkDXJu17cBQlYysIBRC.cy"], ["created_at", "2015-02-26 18:52:52.723991"], ["updated_at", "2015-02-26 18:52:52.723991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:52:52.725727"], ["user_id", "ab04f05a-bde8-11e4-83ca-705681abff85"], ["created_at", "2015-02-26 18:52:52.726487"], ["updated_at", "2015-02-26 18:52:52.726487"], ["token", "U9aOl3QLbyrAqZsqkSCKR_SHfRZfEpHeOT-8A7aiLSw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:52:52.728742"], ["updated_at", "2015-02-26 18:52:52.728742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ab04f05a-bde8-11e4-83ca-705681abff85"], ["organization_id", "ab05a590-bde8-11e4-b1d7-705681abff85"], ["created_at", "2015-02-26 18:52:52.731342"], ["updated_at", "2015-02-26 18:52:52.731342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$lfwkIxAFoE6sGIixJwmjj.kmX5utE858Ru2L0DXLusj2il7F9yIg6"], ["created_at", "2015-02-26 18:52:52.735897"], ["updated_at", "2015-02-26 18:52:52.735897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:52:52.737877"], ["updated_at", "2015-02-26 18:52:52.737877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ab06be3a-bde8-11e4-9380-705681abff85"], ["organization_id", "ab070a7a-bde8-11e4-ab83-705681abff85"], ["created_at", "2015-02-26 18:52:52.740138"], ["updated_at", "2015-02-26 18:52:52.740138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:52:52 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ehBT7IApXrkadT/txlg.UOXEPvBqYT1Cel198UjyBNCNvDzkx23gq"], ["created_at", "2015-02-26 18:52:52.783258"], ["updated_at", "2015-02-26 18:52:52.783258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:52:52.784930"], ["user_id", "ab0dfb1e-bde8-11e4-95c9-705681abff85"], ["created_at", "2015-02-26 18:52:52.785717"], ["updated_at", "2015-02-26 18:52:52.785717"], ["token", "B0ybzTdBakAMzRO_iRIHGg9Ebn82qAGY-YoqUxfjiVs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:52:52.787930"], ["updated_at", "2015-02-26 18:52:52.787930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ab0dfb1e-bde8-11e4-95c9-705681abff85"], ["organization_id", "ab0ead52-bde8-11e4-847b-705681abff85"], ["created_at", "2015-02-26 18:52:52.790155"], ["updated_at", "2015-02-26 18:52:52.790155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-7" for 127.0.0.1 at 2015-02-26 10:52:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:52:52.795609' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B0ybzTdBakAMzRO_iRIHGg9Ebn82qAGY-YoqUxfjiVs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:52:52.797296"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:52:52.798325"], ["id", "ab0e5ea6-bde8-11e4-a6b0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ab0dfb1e-bde8-11e4-95c9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "ab0dfb1e-bde8-11e4-95c9-705681abff85"], ["name", "org-7"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$d.uIVah/DXdXPIv1V5D6ROWR/dalpCxn8dLnn36u0vU5/aMPIjHWO"], ["created_at", "2015-02-26 18:52:52.808316"], ["updated_at", "2015-02-26 18:52:52.808316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:52:52.810012"], ["user_id", "ab11ce42-bde8-11e4-9fd5-705681abff85"], ["created_at", "2015-02-26 18:52:52.810762"], ["updated_at", "2015-02-26 18:52:52.810762"], ["token", "zi4DV5mQDPOGKjdUIL0Mg4Vdfh4XaMCdTzUHe6NDOTo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:52:52.813042"], ["updated_at", "2015-02-26 18:52:52.813042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ab11ce42-bde8-11e4-9fd5-705681abff85"], ["organization_id", "ab1282ce-bde8-11e4-997a-705681abff85"], ["created_at", "2015-02-26 18:52:52.817759"], ["updated_at", "2015-02-26 18:52:52.817759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-26 10:52:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$kpjyIohTm1uKdciCM6qQiesoyc1vM3mU59wHtSpBDe8jyLQjKpI/e"], ["created_at", "2015-02-26 18:53:19.765161"], ["updated_at", "2015-02-26 18:53:19.765161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:19.774327"], ["user_id", "bb2340b8-bde8-11e4-9f4c-705681abff85"], ["created_at", "2015-02-26 18:53:19.781336"], ["updated_at", "2015-02-26 18:53:19.781336"], ["token", "rr2bz0L84yRsyt23kxP1yL5BZSWl3GJpgWcNTlCEnhg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:19.788564"], ["updated_at", "2015-02-26 18:53:19.788564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb2340b8-bde8-11e4-9f4c-705681abff85"], ["organization_id", "bb26b4e6-bde8-11e4-95d7-705681abff85"], ["created_at", "2015-02-26 18:53:19.797830"], ["updated_at", "2015-02-26 18:53:19.797830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$1hi3/i.WGgTtmNazkBiMROBTJ0P7Z47P7976/jVGYuyZt.iTZMt7q"], ["created_at", "2015-02-26 18:53:19.802944"], ["updated_at", "2015-02-26 18:53:19.802944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:19.805021"], ["updated_at", "2015-02-26 18:53:19.805021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb28d9e2-bde8-11e4-84c4-705681abff85"], ["organization_id", "bb2928ca-bde8-11e4-9590-705681abff85"], ["created_at", "2015-02-26 18:53:19.807283"], ["updated_at", "2015-02-26 18:53:19.807283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:53:19 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$ox32.hOqTXnHqaxLLinrK.S2NyA78aPB4PUa7nm5pQARQyUBNcmDS"], ["created_at", "2015-02-26 18:53:19.839651"], ["updated_at", "2015-02-26 18:53:19.839651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:19.841656"], ["user_id", "bb2e7e42-bde8-11e4-9621-705681abff85"], ["created_at", "2015-02-26 18:53:19.842488"], ["updated_at", "2015-02-26 18:53:19.842488"], ["token", "SkDHrzOjyW4e8kiX9TLb964h26ewKW43-hQ6gYB_rms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:19.845172"], ["updated_at", "2015-02-26 18:53:19.845172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb2e7e42-bde8-11e4-9621-705681abff85"], ["organization_id", "bb2f4dcc-bde8-11e4-a708-705681abff85"], ["created_at", "2015-02-26 18:53:19.847948"], ["updated_at", "2015-02-26 18:53:19.847948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$6o3rNBgRSxiv7M23Q.5qGOFdpGq7DyFtOtxrUDbTxGhVjp8kPSgdu"], ["created_at", "2015-02-26 18:53:19.852375"], ["updated_at", "2015-02-26 18:53:19.852375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:19.854362"], ["updated_at", "2015-02-26 18:53:19.854362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb3062d4-bde8-11e4-966f-705681abff85"], ["organization_id", "bb30afd2-bde8-11e4-9837-705681abff85"], ["created_at", "2015-02-26 18:53:19.856649"], ["updated_at", "2015-02-26 18:53:19.856649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:53:19 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:53:19.861628' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SkDHrzOjyW4e8kiX9TLb964h26ewKW43-hQ6gYB_rms"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:53:19.869286"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:53:19.870792"], ["id", "bb2eeab2-bde8-11e4-afc4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb2e7e42-bde8-11e4-9621-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "bb2e7e42-bde8-11e4-9621-705681abff85"]] Completed 200 OK in 33ms (Views: 4.1ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$ZnupGr3YaorKfskLQbDnoODJAugkkrCLQkIu.RdCyRVc0aihmy0DW"], ["created_at", "2015-02-26 18:53:19.902985"], ["updated_at", "2015-02-26 18:53:19.902985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:19.904694"], ["user_id", "bb381f6a-bde8-11e4-ad1f-705681abff85"], ["created_at", "2015-02-26 18:53:19.905493"], ["updated_at", "2015-02-26 18:53:19.905493"], ["token", "fVkZPMig0FN-90dqzHuK4Qe0mgTC3dVo3H2eQcnrFnE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:19.914748"], ["updated_at", "2015-02-26 18:53:19.914748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb381f6a-bde8-11e4-ad1f-705681abff85"], ["organization_id", "bb39ebf6-bde8-11e4-8663-705681abff85"], ["created_at", "2015-02-26 18:53:19.917276"], ["updated_at", "2015-02-26 18:53:19.917276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-26 10:53:19 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Q5FKYhoOVJttXOQg/bWJjeLEyxOZfn/P7RpadhLTs/QS1HOpF/Y4K"], ["created_at", "2015-02-26 18:53:19.929356"], ["updated_at", "2015-02-26 18:53:19.929356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:19.931395"], ["user_id", "bb3c2f9c-bde8-11e4-857a-705681abff85"], ["created_at", "2015-02-26 18:53:19.932166"], ["updated_at", "2015-02-26 18:53:19.932166"], ["token", "9IYw4BT6D32MFKhgy0dTuU4nsWXJborvp6wwzg_rccc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:19.934985"], ["updated_at", "2015-02-26 18:53:19.934985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb3c2f9c-bde8-11e4-857a-705681abff85"], ["organization_id", "bb3d026e-bde8-11e4-91b2-705681abff85"], ["created_at", "2015-02-26 18:53:19.937474"], ["updated_at", "2015-02-26 18:53:19.937474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-02-26 10:53:19 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:53:19.942081' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9IYw4BT6D32MFKhgy0dTuU4nsWXJborvp6wwzg_rccc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:53:19.943577"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:53:19.944554"], ["id", "bb3c9874-bde8-11e4-b0e4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb3c2f9c-bde8-11e4-857a-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "bb3c2f9c-bde8-11e4-857a-705681abff85"], ["name", "org-6"]] Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$qVaJ134ond5iB.fGNHFR4Om7eDxge65rG59Bt2OpuYUcOckW3SFGm"], ["created_at", "2015-02-26 18:53:19.987304"], ["updated_at", "2015-02-26 18:53:19.987304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:19.989504"], ["user_id", "bb450ad6-bde8-11e4-a1a4-705681abff85"], ["created_at", "2015-02-26 18:53:19.990336"], ["updated_at", "2015-02-26 18:53:19.990336"], ["token", "kVhaCztBNbM9v4c5zRN4FXB5WWFbSCjVVvhqN3cFnNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:19.992729"], ["updated_at", "2015-02-26 18:53:19.992729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb450ad6-bde8-11e4-a1a4-705681abff85"], ["organization_id", "bb45cd18-bde8-11e4-ad66-705681abff85"], ["created_at", "2015-02-26 18:53:19.994952"], ["updated_at", "2015-02-26 18:53:19.994952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-26 10:53:19 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$JwryvhRbmZ3vBeGOwM5Y.uRQ8leLa0SdemXdGroJkcy9266vEV7Ni"], ["created_at", "2015-02-26 18:53:20.009371"], ["updated_at", "2015-02-26 18:53:20.009371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:20.012045"], ["user_id", "bb487860-bde8-11e4-8e5a-705681abff85"], ["created_at", "2015-02-26 18:53:20.012903"], ["updated_at", "2015-02-26 18:53:20.012903"], ["token", "JPxQlXd9D9TnF926ZKn2i2gE4rGCK5VSdkN4JoxiCDQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:20.015830"], ["updated_at", "2015-02-26 18:53:20.015830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb487860-bde8-11e4-8e5a-705681abff85"], ["organization_id", "bb4956f4-bde8-11e4-b320-705681abff85"], ["created_at", "2015-02-26 18:53:20.018269"], ["updated_at", "2015-02-26 18:53:20.018269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bb4956f4-bde8-11e4-b320-705681abff85" for 127.0.0.1 at 2015-02-26 10:53:20 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"bb4956f4-bde8-11e4-b320-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:53:20.022946' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JPxQlXd9D9TnF926ZKn2i2gE4rGCK5VSdkN4JoxiCDQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:53:20.024912"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:53:20.026770"], ["id", "bb48f15a-bde8-11e4-8184-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb487860-bde8-11e4-8e5a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "bb487860-bde8-11e4-8e5a-705681abff85"], ["id", "bb4956f4-bde8-11e4-b320-705681abff85"]] Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Nx2A/QxiPlTyLkNfegwKGuSQ2HR51HbXnhuM3gIRw4MSvcdF/Me2m"], ["created_at", "2015-02-26 18:53:43.467304"], ["updated_at", "2015-02-26 18:53:43.467304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:43.478977"], ["user_id", "c943f4ee-bde8-11e4-be26-705681abff85"], ["created_at", "2015-02-26 18:53:43.485363"], ["updated_at", "2015-02-26 18:53:43.485363"], ["token", "GbkZ-DiHFzrnAK-djnpvAWTcaVAK5jylltvyBJaiJ3s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:43.499759"], ["updated_at", "2015-02-26 18:53:43.499759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c943f4ee-bde8-11e4-be26-705681abff85"], ["organization_id", "c948c514-bde8-11e4-88ec-705681abff85"], ["created_at", "2015-02-26 18:53:43.510850"], ["updated_at", "2015-02-26 18:53:43.510850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-1" for 127.0.0.1 at 2015-02-26 10:53:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:53:43.539903' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GbkZ-DiHFzrnAK-djnpvAWTcaVAK5jylltvyBJaiJ3s"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:53:43.548284"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:53:43.549645"], ["id", "c946a0cc-bde8-11e4-9eb7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c943f4ee-bde8-11e4-be26-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "c943f4ee-bde8-11e4-be26-705681abff85"], ["name", "org-1"]] Completed 200 OK in 32ms (Views: 1.7ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ZfYPYbp/6Sg7.gZ4zsKh0eJaooXg0TfFXpFsNWu.ZQfpWrO0pzySC"], ["created_at", "2015-02-26 18:53:43.580331"], ["updated_at", "2015-02-26 18:53:43.580331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:43.582275"], ["user_id", "c9550824-bde8-11e4-83d6-705681abff85"], ["created_at", "2015-02-26 18:53:43.583074"], ["updated_at", "2015-02-26 18:53:43.583074"], ["token", "EaQ3GvOiCPSa648XtFYAmyPQt9d3s3BD02J1DWmL9BE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:43.585518"], ["updated_at", "2015-02-26 18:53:43.585518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c9550824-bde8-11e4-83d6-705681abff85"], ["organization_id", "c955c93a-bde8-11e4-9cfb-705681abff85"], ["created_at", "2015-02-26 18:53:43.587972"], ["updated_at", "2015-02-26 18:53:43.587972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-26 10:53:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$T9t5JsmfigaSsWv7syGxGeML5bxeo.DHU8sqhrmq0z.QUblOA5CVa"], ["created_at", "2015-02-26 18:53:43.600331"], ["updated_at", "2015-02-26 18:53:43.600331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:43.603453"], ["user_id", "c9580e70-bde8-11e4-8d95-705681abff85"], ["created_at", "2015-02-26 18:53:43.604315"], ["updated_at", "2015-02-26 18:53:43.604315"], ["token", "jPLGxdL8rMlY9QpjRAG0en7aK3AoklxZZlN_xxis2Ls"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:43.606678"], ["updated_at", "2015-02-26 18:53:43.606678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c9580e70-bde8-11e4-8d95-705681abff85"], ["organization_id", "c95900f0-bde8-11e4-a0ca-705681abff85"], ["created_at", "2015-02-26 18:53:43.609011"], ["updated_at", "2015-02-26 18:53:43.609011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c95900f0-bde8-11e4-a0ca-705681abff85" for 127.0.0.1 at 2015-02-26 10:53:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"c95900f0-bde8-11e4-a0ca-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:53:43.614404' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jPLGxdL8rMlY9QpjRAG0en7aK3AoklxZZlN_xxis2Ls"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:53:43.615828"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:53:43.616837"], ["id", "c958afba-bde8-11e4-b0a5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c9580e70-bde8-11e4-8d95-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "c9580e70-bde8-11e4-8d95-705681abff85"], ["id", "c95900f0-bde8-11e4-a0ca-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$btp4uiVWL4wbHx1A1eckyOx2joA8QvdYAVjZ5lUJ1muGWkB0lQ2K6"], ["created_at", "2015-02-26 18:53:43.627789"], ["updated_at", "2015-02-26 18:53:43.627789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:43.629660"], ["user_id", "c95c40f8-bde8-11e4-8bf1-705681abff85"], ["created_at", "2015-02-26 18:53:43.630484"], ["updated_at", "2015-02-26 18:53:43.630484"], ["token", "9FJFIcJAj6_QcgLRnvMoKNgjKG0MTiN21aDUwCyA5wI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:43.632803"], ["updated_at", "2015-02-26 18:53:43.632803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c95c40f8-bde8-11e4-8bf1-705681abff85"], ["organization_id", "c95cfeb2-bde8-11e4-82f3-705681abff85"], ["created_at", "2015-02-26 18:53:43.635178"], ["updated_at", "2015-02-26 18:53:43.635178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-26 10:53:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$.40i8mNZwp8COc4l1Q3/s.CNEi0DDDEXKx6qRyGZuo9EpHkVwCzN2"], ["created_at", "2015-02-26 18:53:43.649396"], ["updated_at", "2015-02-26 18:53:43.649396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:43.651502"], ["user_id", "c95f9032-bde8-11e4-8a47-705681abff85"], ["created_at", "2015-02-26 18:53:43.652390"], ["updated_at", "2015-02-26 18:53:43.652390"], ["token", "WOFa024aGyn3VcONYUlyvHnf0KZssCYYc5d_GSG_P9w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:43.654839"], ["updated_at", "2015-02-26 18:53:43.654839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c95f9032-bde8-11e4-8a47-705681abff85"], ["organization_id", "c9605d5a-bde8-11e4-aaff-705681abff85"], ["created_at", "2015-02-26 18:53:43.657248"], ["updated_at", "2015-02-26 18:53:43.657248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$0DISFf3rN7.gZ4YeFfwCDO/ZArPX3iSvgkYY7IzAtziDDSvLKvQZW"], ["created_at", "2015-02-26 18:53:43.662159"], ["updated_at", "2015-02-26 18:53:43.662159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:43.664826"], ["updated_at", "2015-02-26 18:53:43.664826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c9617ece-bde8-11e4-a01a-705681abff85"], ["organization_id", "c961e3e6-bde8-11e4-b491-705681abff85"], ["created_at", "2015-02-26 18:53:43.667381"], ["updated_at", "2015-02-26 18:53:43.667381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:53:43 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:53:43.701738' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WOFa024aGyn3VcONYUlyvHnf0KZssCYYc5d_GSG_P9w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:53:43.703293"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:53:43.704277"], ["id", "c96007a6-bde8-11e4-af2f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c95f9032-bde8-11e4-8a47-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c95f9032-bde8-11e4-8a47-705681abff85"]] Completed 200 OK in 8ms (Views: 2.4ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$6TXnGR4YjOi1QzefRMRW.eRlsiPWbAxWZ0qx8tl/vanm.4m6TgASS"], ["created_at", "2015-02-26 18:53:43.717057"], ["updated_at", "2015-02-26 18:53:43.717057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:53:43.719073"], ["user_id", "c969e1a4-bde8-11e4-ab52-705681abff85"], ["created_at", "2015-02-26 18:53:43.720212"], ["updated_at", "2015-02-26 18:53:43.720212"], ["token", "KYycbM7Tmg2-Yw0HuYOq1wwOO7HZlWyBBPUWK7NCfSw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:43.723374"], ["updated_at", "2015-02-26 18:53:43.723374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c969e1a4-bde8-11e4-ab52-705681abff85"], ["organization_id", "c96ade56-bde8-11e4-959e-705681abff85"], ["created_at", "2015-02-26 18:53:43.726304"], ["updated_at", "2015-02-26 18:53:43.726304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$cBMfMEagmjFVq1N40CRERO4QPHZZ9PCDhWh1Eh6DWdWp2v4.tkCTq"], ["created_at", "2015-02-26 18:53:43.731369"], ["updated_at", "2015-02-26 18:53:43.731369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:53:43.734065"], ["updated_at", "2015-02-26 18:53:43.734065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c96c0d58-bde8-11e4-8f94-705681abff85"], ["organization_id", "c96c84f4-bde8-11e4-a961-705681abff85"], ["created_at", "2015-02-26 18:53:43.737549"], ["updated_at", "2015-02-26 18:53:43.737549"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:53:43 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (3.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$0JUjcCIfAQ71INp8ctYzouiaDEeNPwKNIKNz0G0iYN.PNG1wnTPCS"], ["created_at", "2015-02-26 18:54:42.944184"], ["updated_at", "2015-02-26 18:54:42.944184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:54:42.968319"], ["user_id", "ecb8beb4-bde8-11e4-ad60-705681abff85"], ["created_at", "2015-02-26 18:54:42.974482"], ["updated_at", "2015-02-26 18:54:42.974482"], ["token", "ZW4BNciatxzb42UAgTvdAxxsUfJ139jX7Nl1s7S_Oyc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:54:42.982132"], ["updated_at", "2015-02-26 18:54:42.982132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ecb8beb4-bde8-11e4-ad60-705681abff85"], ["organization_id", "ecbd0dca-bde8-11e4-bd58-705681abff85"], ["created_at", "2015-02-26 18:54:42.994329"], ["updated_at", "2015-02-26 18:54:42.994329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-26 10:54:43 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$LudinYINDPQPsBr7B9Ck/eoUFbHaXUkqSnT9PTPaAYvfBhqtgRmEu"], ["created_at", "2015-02-26 18:54:43.008869"], ["updated_at", "2015-02-26 18:54:43.008869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:54:43.010528"], ["user_id", "ecc11140-bde8-11e4-a28e-705681abff85"], ["created_at", "2015-02-26 18:54:43.011367"], ["updated_at", "2015-02-26 18:54:43.011367"], ["token", "7FeRoc730TogkmXc92r2Y48v1zFTznLJtv79R91PBcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:54:43.013674"], ["updated_at", "2015-02-26 18:54:43.013674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ecc11140-bde8-11e4-a28e-705681abff85"], ["organization_id", "ecc1cbda-bde8-11e4-9c2a-705681abff85"], ["created_at", "2015-02-26 18:54:43.015980"], ["updated_at", "2015-02-26 18:54:43.015980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-26 10:54:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$yrfpjOr5cbDjPU6lHbmRauWEJPHrMNsmjuLUjVlxuDUDS645v5pt6"], ["created_at", "2015-02-26 18:54:43.067527"], ["updated_at", "2015-02-26 18:54:43.067527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:54:43.069205"], ["user_id", "ecca0688-bde8-11e4-81e3-705681abff85"], ["created_at", "2015-02-26 18:54:43.070414"], ["updated_at", "2015-02-26 18:54:43.070414"], ["token", "lNpFlcOJ7RjtjQGdwZ9OL4dEvD6USc4ZzvWO_tYFxX0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:54:43.073100"], ["updated_at", "2015-02-26 18:54:43.073100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ecca0688-bde8-11e4-81e3-705681abff85"], ["organization_id", "eccae486-bde8-11e4-92fb-705681abff85"], ["created_at", "2015-02-26 18:54:43.075625"], ["updated_at", "2015-02-26 18:54:43.075625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-3" for 127.0.0.1 at 2015-02-26 10:54:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-3", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:54:43.080146' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lNpFlcOJ7RjtjQGdwZ9OL4dEvD6USc4ZzvWO_tYFxX0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:54:43.087763"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:54:43.089448"], ["id", "ecca8220-bde8-11e4-96f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ecca0688-bde8-11e4-81e3-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "ecca0688-bde8-11e4-81e3-705681abff85"], ["name", "org-3"]] Completed 200 OK in 33ms (Views: 1.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$NZuOZCmXNUlg/vC9AnSQuuSvNJv7xxCUIghwRN5GCTp9PMs1mY1Ii"], ["created_at", "2015-02-26 18:54:43.125738"], ["updated_at", "2015-02-26 18:54:43.125738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:54:43.127960"], ["user_id", "ecd2f9a0-bde8-11e4-9c39-705681abff85"], ["created_at", "2015-02-26 18:54:43.128790"], ["updated_at", "2015-02-26 18:54:43.128790"], ["token", "qU0iOfynYB97m-nVq7-Dq4-ptopNOr6Z2Rolw2Oi-bo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:54:43.131105"], ["updated_at", "2015-02-26 18:54:43.131105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ecd2f9a0-bde8-11e4-9c39-705681abff85"], ["organization_id", "ecd3ba8e-bde8-11e4-a087-705681abff85"], ["created_at", "2015-02-26 18:54:43.133738"], ["updated_at", "2015-02-26 18:54:43.133738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$DWQfDv5OMERsuMdtuSFFHuJ.8cwS2Pc8T6BQWk.9o1QUHbi0v3MDy"], ["created_at", "2015-02-26 18:54:43.145562"], ["updated_at", "2015-02-26 18:54:43.145562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:54:43.147785"], ["updated_at", "2015-02-26 18:54:43.147785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ecd5ee30-bde8-11e4-8d7f-705681abff85"], ["organization_id", "ecd64588-bde8-11e4-8e52-705681abff85"], ["created_at", "2015-02-26 18:54:43.150244"], ["updated_at", "2015-02-26 18:54:43.150244"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:54:43 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 16ms (Views: 16.0ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$wtY3oRytS/TEhs9N8ZeyXOvpNGzRz1bxiqbuVfTHA8LJF2T9QtQYK"], ["created_at", "2015-02-26 18:54:43.186642"], ["updated_at", "2015-02-26 18:54:43.186642"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (2.7ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:54:43.197419"], ["user_id", "ecdc52fc-bde8-11e4-b6d1-705681abff85"], ["created_at", "2015-02-26 18:54:43.201965"], ["updated_at", "2015-02-26 18:54:43.201965"], ["token", "RTM4ckPdPVzocegF7k23FDWlXqdIoqQSdxUUeCkAf9M"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:54:43.211977"], ["updated_at", "2015-02-26 18:54:43.211977"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ecdc52fc-bde8-11e4-b6d1-705681abff85"], ["organization_id", "ece06e0a-bde8-11e4-882c-705681abff85"], ["created_at", "2015-02-26 18:54:43.219037"], ["updated_at", "2015-02-26 18:54:43.219037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$HXZtdao1ve1htjS1B.SvseVd6J4ebP5XHWqYUDgnb9dI5FJOoSVKe"], ["created_at", "2015-02-26 18:54:43.228879"], ["updated_at", "2015-02-26 18:54:43.228879"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:54:43.234680"], ["updated_at", "2015-02-26 18:54:43.234680"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ece2f74c-bde8-11e4-b083-705681abff85"], ["organization_id", "ece39d96-bde8-11e4-bcd4-705681abff85"], ["created_at", "2015-02-26 18:54:43.242383"], ["updated_at", "2015-02-26 18:54:43.242383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:54:43 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:54:43.286866' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RTM4ckPdPVzocegF7k23FDWlXqdIoqQSdxUUeCkAf9M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:54:43.288917"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:54:43.289987"], ["id", "ecdec0e6-bde8-11e4-b393-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ecdc52fc-bde8-11e4-b6d1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "ecdc52fc-bde8-11e4-b6d1-705681abff85"]] Completed 200 OK in 9ms (Views: 2.4ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$j9PerXfgdYjXFxh.4BGrj.JamyqcQRat/zWIYoquRCEJzmIhu1kv6"], ["created_at", "2015-02-26 18:54:43.301649"], ["updated_at", "2015-02-26 18:54:43.301649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:54:43.303478"], ["user_id", "ecedbc90-bde8-11e4-b172-705681abff85"], ["created_at", "2015-02-26 18:54:43.304340"], ["updated_at", "2015-02-26 18:54:43.304340"], ["token", "1d_tnvdfwV_BtgYXv694zTo4o-eLeEvF3klttzDHSq0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:54:43.307028"], ["updated_at", "2015-02-26 18:54:43.307028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ecedbc90-bde8-11e4-b172-705681abff85"], ["organization_id", "ecee9282-bde8-11e4-875b-705681abff85"], ["created_at", "2015-02-26 18:54:43.309531"], ["updated_at", "2015-02-26 18:54:43.309531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-26 10:54:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$GWRTt4TF7E/LbznqKqRQWuOpUfUXZfamMa6suU6egRjLC2HadnwFK"], ["created_at", "2015-02-26 18:54:43.322853"], ["updated_at", "2015-02-26 18:54:43.322853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:54:43.324575"], ["user_id", "ecf0fd4c-bde8-11e4-b63f-705681abff85"], ["created_at", "2015-02-26 18:54:43.325309"], ["updated_at", "2015-02-26 18:54:43.325309"], ["token", "bZ-7m-HB8_HsTvtaXCCMYUA4-YuQc4MMBV41CYKy1l0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:54:43.328230"], ["updated_at", "2015-02-26 18:54:43.328230"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ecf0fd4c-bde8-11e4-b63f-705681abff85"], ["organization_id", "ecf1cd80-bde8-11e4-8a37-705681abff85"], ["created_at", "2015-02-26 18:54:43.333142"], ["updated_at", "2015-02-26 18:54:43.333142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/ecf1cd80-bde8-11e4-8a37-705681abff85" for 127.0.0.1 at 2015-02-26 10:54:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"ecf1cd80-bde8-11e4-8a37-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:54:43.338346' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bZ-7m-HB8_HsTvtaXCCMYUA4-YuQc4MMBV41CYKy1l0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:54:43.339888"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:54:43.341178"], ["id", "ecf15f3a-bde8-11e4-9bf0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ecf0fd4c-bde8-11e4-b63f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "ecf0fd4c-bde8-11e4-b63f-705681abff85"], ["id", "ecf1cd80-bde8-11e4-8a37-705681abff85"]] Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$eY5cODe08x1dqWN90IKb8uhaPAdTXSg3pcsLxabv2L59q5/Xik6Qm"], ["created_at", "2015-02-26 18:55:52.123498"], ["updated_at", "2015-02-26 18:55:52.123498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:55:52.133471"], ["user_id", "15f35c62-bde9-11e4-8a5d-705681abff85"], ["created_at", "2015-02-26 18:55:52.139764"], ["updated_at", "2015-02-26 18:55:52.139764"], ["token", "Ttm9EgNkpMjL0kuWKk-cK8AGP5Gg2XQ1ZopOTeMWNQA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:55:52.154194"], ["updated_at", "2015-02-26 18:55:52.154194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15f35c62-bde9-11e4-8a5d-705681abff85"], ["organization_id", "15f7dc74-bde9-11e4-8cb2-705681abff85"], ["created_at", "2015-02-26 18:55:52.204050"], ["updated_at", "2015-02-26 18:55:52.204050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-26 10:55:52 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$opXyUR3ZGL0Jms5FqOrQSOsPXrspDfpu8FnhU0eVFhbFkG1iAWEW."], ["created_at", "2015-02-26 18:55:52.252006"], ["updated_at", "2015-02-26 18:55:52.252006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:55:52.253744"], ["user_id", "1606bdc0-bde9-11e4-a78e-705681abff85"], ["created_at", "2015-02-26 18:55:52.254763"], ["updated_at", "2015-02-26 18:55:52.254763"], ["token", "HjnoXGBFivGpKZYqdrrEZe0M9fVae5PjtbbJvGCNlpE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:55:52.257799"], ["updated_at", "2015-02-26 18:55:52.257799"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1606bdc0-bde9-11e4-a78e-705681abff85"], ["organization_id", "16079e20-bde9-11e4-bb20-705681abff85"], ["created_at", "2015-02-26 18:55:52.260798"], ["updated_at", "2015-02-26 18:55:52.260798"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$/h52YdikFRKIp/NHRN6.X.3soJjawa2eFV8mAlvanDemO1gAi5N3."], ["created_at", "2015-02-26 18:55:52.272065"], ["updated_at", "2015-02-26 18:55:52.272065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:55:52.274619"], ["updated_at", "2015-02-26 18:55:52.274619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1609ca4c-bde9-11e4-b60e-705681abff85"], ["organization_id", "160a31e4-bde9-11e4-a5f5-705681abff85"], ["created_at", "2015-02-26 18:55:52.277088"], ["updated_at", "2015-02-26 18:55:52.277088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:55:52 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:55:52.281890' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HjnoXGBFivGpKZYqdrrEZe0M9fVae5PjtbbJvGCNlpE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:55:52.289212"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:55:52.290543"], ["id", "160738ae-bde9-11e4-af67-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1606bdc0-bde9-11e4-a78e-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "1606bdc0-bde9-11e4-a78e-705681abff85"]] Completed 200 OK in 33ms (Views: 4.3ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$kFSQEDIcD02cZK04th.Vdudy87s/aplrYYuRhWP796464U/PNSKBO"], ["created_at", "2015-02-26 18:55:52.322432"], ["updated_at", "2015-02-26 18:55:52.322432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:55:52.324275"], ["user_id", "161181a6-bde9-11e4-8564-705681abff85"], ["created_at", "2015-02-26 18:55:52.325300"], ["updated_at", "2015-02-26 18:55:52.325300"], ["token", "doba_9EVKbmT6kScBJSc4M_cZ0Q_L9xelg3LTABc3hE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:55:52.327837"], ["updated_at", "2015-02-26 18:55:52.327837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "161181a6-bde9-11e4-8564-705681abff85"], ["organization_id", "16124c62-bde9-11e4-8b37-705681abff85"], ["created_at", "2015-02-26 18:55:52.330145"], ["updated_at", "2015-02-26 18:55:52.330145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$6t0mvxqrZu6DZWb5I/nZDOa9qTi90iWJQ52Evk4zjwgtAi14fbC1e"], ["created_at", "2015-02-26 18:55:52.334812"], ["updated_at", "2015-02-26 18:55:52.334812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:55:52.336853"], ["updated_at", "2015-02-26 18:55:52.336853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16135da0-bde9-11e4-8e56-705681abff85"], ["organization_id", "1613ac88-bde9-11e4-b3e0-705681abff85"], ["created_at", "2015-02-26 18:55:52.339101"], ["updated_at", "2015-02-26 18:55:52.339101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-26 10:55:52 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$QfSENF9Dcmhg47iEfPK5w.ke4Z.0prff7aRz./hHAVmtAs/9U16Ke"], ["created_at", "2015-02-26 18:55:52.351305"], ["updated_at", "2015-02-26 18:55:52.351305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:55:52.353041"], ["user_id", "1615e20a-bde9-11e4-b7f8-705681abff85"], ["created_at", "2015-02-26 18:55:52.354200"], ["updated_at", "2015-02-26 18:55:52.354200"], ["token", "Wi6oTXhO4iqZejHgeHExAsDcWU6QbxTWkTvtarTNTzI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:55:52.356767"], ["updated_at", "2015-02-26 18:55:52.356767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1615e20a-bde9-11e4-b7f8-705681abff85"], ["organization_id", "1616d03e-bde9-11e4-9385-705681abff85"], ["created_at", "2015-02-26 18:55:52.360467"], ["updated_at", "2015-02-26 18:55:52.360467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1616d03e-bde9-11e4-9385-705681abff85" for 127.0.0.1 at 2015-02-26 10:55:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1616d03e-bde9-11e4-9385-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:55:52.365239' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Wi6oTXhO4iqZejHgeHExAsDcWU6QbxTWkTvtarTNTzI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:55:52.366637"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:55:52.367630"], ["id", "16166054-bde9-11e4-b153-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1615e20a-bde9-11e4-b7f8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "1615e20a-bde9-11e4-b7f8-705681abff85"], ["id", "1616d03e-bde9-11e4-9385-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$D/t7KgPlAslM6NEjw6h/7.jSn2aNdSM/BFlpkPCReSfdy//qpPrZ6"], ["created_at", "2015-02-26 18:55:52.378956"], ["updated_at", "2015-02-26 18:55:52.378956"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:55:52.409606"], ["user_id", "161e6f1a-bde9-11e4-be2b-705681abff85"], ["created_at", "2015-02-26 18:55:52.410448"], ["updated_at", "2015-02-26 18:55:52.410448"], ["token", "L5xkOxZWBzrtOebaWkWtDeMOU6Uc7ugvmF3KNIyEXfU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:55:52.417466"], ["updated_at", "2015-02-26 18:55:52.417466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "161e6f1a-bde9-11e4-be2b-705681abff85"], ["organization_id", "162000b4-bde9-11e4-8e9c-705681abff85"], ["created_at", "2015-02-26 18:55:52.420147"], ["updated_at", "2015-02-26 18:55:52.420147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-26 10:55:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$zr.ElWteWc3TYFe1WJFaWu2QfWFP0cME9C8caph//NB/ZyCuHvbnO"], ["created_at", "2015-02-26 18:55:52.433112"], ["updated_at", "2015-02-26 18:55:52.433112"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:55:52.435125"], ["user_id", "1622605c-bde9-11e4-8141-705681abff85"], ["created_at", "2015-02-26 18:55:52.435942"], ["updated_at", "2015-02-26 18:55:52.435942"], ["token", "R3J8w0jPMS4V5V5pNaFJdY5pitLJlQYt4O-B7v9O9cU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:55:52.438206"], ["updated_at", "2015-02-26 18:55:52.438206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1622605c-bde9-11e4-8141-705681abff85"], ["organization_id", "162324b0-bde9-11e4-9e60-705681abff85"], ["created_at", "2015-02-26 18:55:52.440571"], ["updated_at", "2015-02-26 18:55:52.440571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-8" for 127.0.0.1 at 2015-02-26 10:55:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-8", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-12 18:55:52.445467' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "R3J8w0jPMS4V5V5pNaFJdY5pitLJlQYt4O-B7v9O9cU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-26 18:55:52.446897"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-26 18:55:52.447817"], ["id", "1622d3b6-bde9-11e4-80a4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1622605c-bde9-11e4-8141-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "1622605c-bde9-11e4-8141-705681abff85"], ["name", "org-8"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$QucNoBVpQSzYgesenrZ05eoftRi.Cn3SECOFIkr/YtFK/5yTM.xTG"], ["created_at", "2015-02-26 18:55:52.458156"], ["updated_at", "2015-02-26 18:55:52.458156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-26 18:55:52.460146"], ["user_id", "16263128-bde9-11e4-8b2a-705681abff85"], ["created_at", "2015-02-26 18:55:52.461301"], ["updated_at", "2015-02-26 18:55:52.461301"], ["token", "ZhxzCLOylnVNEJrTvYQ-tKCBIn2I2Lq3e5PsLKBVoac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-26 18:55:52.464806"], ["updated_at", "2015-02-26 18:55:52.464806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16263128-bde9-11e4-8b2a-705681abff85"], ["organization_id", "16273708-bde9-11e4-9b20-705681abff85"], ["created_at", "2015-02-26 18:55:52.467319"], ["updated_at", "2015-02-26 18:55:52.467319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-26 10:55:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (29.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (41.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$tFXYJ/p9XiHhY5XfiGrxc.H5KKWXvPCdeKrdha9s5nmdmc4a5cd06"], ["created_at", "2015-02-27 17:51:59.838724"], ["updated_at", "2015-02-27 17:51:59.838724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (12.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 17:51:59.889768"], ["user_id", "542a2af4-bea9-11e4-8734-705681abff85"], ["created_at", "2015-02-27 17:51:59.896442"], ["updated_at", "2015-02-27 17:51:59.896442"], ["token", "C0j44geSy1LOOSG9khUPvFhG-40-kpJrMcNNoVzQc44"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (5.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 17:51:59.916310"], ["updated_at", "2015-02-27 17:51:59.916310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (5.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "542a2af4-bea9-11e4-8734-705681abff85"], ["organization_id", "543083fe-bea9-11e4-8a75-705681abff85"], ["created_at", "2015-02-27 17:51:59.931476"], ["updated_at", "2015-02-27 17:51:59.931476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/543083fe-bea9-11e4-8a75-705681abff85" for 127.0.0.1 at 2015-02-27 09:51:59 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"543083fe-bea9-11e4-8a75-705681abff85", "organization"=>{}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 17:51:59.965790' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "C0j44geSy1LOOSG9khUPvFhG-40-kpJrMcNNoVzQc44"]]  (0.1ms) SAVEPOINT active_record_1 SQL (12.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 17:51:59.976485"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 17:51:59.977720"], ["id", "542d85b4-bea9-11e4-a570-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "542a2af4-bea9-11e4-8734-705681abff85"]] Clubhouse::Organization Load (1.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "542a2af4-bea9-11e4-8734-705681abff85"], ["id", "543083fe-bea9-11e4-8a75-705681abff85"]] Completed 200 OK in 66ms (Views: 2.6ms | ActiveRecord: 15.2ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (20.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ZgdCRMmTBil4Pq8KCdKEbOEh6dxm6ov05/AdI7hMK8W2mNfg6yfT6"], ["created_at", "2015-02-27 17:52:00.077541"], ["updated_at", "2015-02-27 17:52:00.077541"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 17:52:00.080815"], ["user_id", "54493444-bea9-11e4-b0a1-705681abff85"], ["created_at", "2015-02-27 17:52:00.082702"], ["updated_at", "2015-02-27 17:52:00.082702"], ["token", "D4OTBURby-9HOUP0j2PFU-bPsfbV6ua8Hef3BKknHwE"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 17:52:00.089019"], ["updated_at", "2015-02-27 17:52:00.089019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "54493444-bea9-11e4-b0a1-705681abff85"], ["organization_id", "544ae956-bea9-11e4-89d5-705681abff85"], ["created_at", "2015-02-27 17:52:00.105328"], ["updated_at", "2015-02-27 17:52:00.105328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 09:52:00 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Cx5.rtYZidTiQAIFTvn90u8Xoubr.yJCZg5bQn/S8rUsjogBC9OiS"], ["created_at", "2015-02-27 17:52:00.128531"], ["updated_at", "2015-02-27 17:52:00.128531"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 17:52:00.130812"], ["user_id", "5450de74-bea9-11e4-b696-705681abff85"], ["created_at", "2015-02-27 17:52:00.132218"], ["updated_at", "2015-02-27 17:52:00.132218"], ["token", "ClM2ibjsHlgTUe-vcP0wkJIf_GqBjTvguvKq2QaxfVE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 17:52:00.136659"], ["updated_at", "2015-02-27 17:52:00.136659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5450de74-bea9-11e4-b696-705681abff85"], ["organization_id", "54521c44-bea9-11e4-9ccd-705681abff85"], ["created_at", "2015-02-27 17:52:00.140055"], ["updated_at", "2015-02-27 17:52:00.140055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-3" for 127.0.0.1 at 2015-02-27 09:52:00 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-3", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 17:52:00.145422' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ClM2ibjsHlgTUe-vcP0wkJIf_GqBjTvguvKq2QaxfVE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 17:52:00.147470"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 17:52:00.148869"], ["id", "545190bc-bea9-11e4-b5c4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5450de74-bea9-11e4-b696-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "5450de74-bea9-11e4-b696-705681abff85"], ["name", "org-3"]] Completed 200 OK in 10ms (Views: 0.8ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$8P3O6TV1DnKeChd2S0jfXuOq0h/VHrWbRb1MJs9ZjkKLqYzRx5RxK"], ["created_at", "2015-02-27 17:52:00.163895"], ["updated_at", "2015-02-27 17:52:00.163895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 17:52:00.167483"], ["user_id", "54564508-bea9-11e4-9ce9-705681abff85"], ["created_at", "2015-02-27 17:52:00.170197"], ["updated_at", "2015-02-27 17:52:00.170197"], ["token", "N1sMg6VAJ9mXgW-GcO1jAGfoWbfTUoC48fB1gn6E-zw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 17:52:00.173573"], ["updated_at", "2015-02-27 17:52:00.173573"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "54564508-bea9-11e4-9ce9-705681abff85"], ["organization_id", "5457baf0-bea9-11e4-a491-705681abff85"], ["created_at", "2015-02-27 17:52:00.176517"], ["updated_at", "2015-02-27 17:52:00.176517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 09:52:00 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$lhST6/qbY1jQqy.3a/6oTO7Q4mLMRHKlP.6eOqWtWHH2G05iHNwzO"], ["created_at", "2015-02-27 17:52:00.190365"], ["updated_at", "2015-02-27 17:52:00.190365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 17:52:00.192129"], ["user_id", "545a4afe-bea9-11e4-8b67-705681abff85"], ["created_at", "2015-02-27 17:52:00.193460"], ["updated_at", "2015-02-27 17:52:00.193460"], ["token", "7-Jv7MHK03nvVCGCcsJKUd8AkSX699cqETLPok8CBas"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 17:52:00.199348"], ["updated_at", "2015-02-27 17:52:00.199348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "545a4afe-bea9-11e4-8b67-705681abff85"], ["organization_id", "545bba06-bea9-11e4-ae45-705681abff85"], ["created_at", "2015-02-27 17:52:00.203154"], ["updated_at", "2015-02-27 17:52:00.203154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Lr1inCwiQLIbatjAfNsywuUC5j7c6gpE4/8W5FHWUOtIgdcgtqt8W"], ["created_at", "2015-02-27 17:52:00.210146"], ["updated_at", "2015-02-27 17:52:00.210146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 17:52:00.213129"], ["updated_at", "2015-02-27 17:52:00.213129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "545d53a2-bea9-11e4-9710-705681abff85"], ["organization_id", "545dd804-bea9-11e4-834f-705681abff85"], ["created_at", "2015-02-27 17:52:00.217153"], ["updated_at", "2015-02-27 17:52:00.217153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 09:52:00 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 17:52:00.294657' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7-Jv7MHK03nvVCGCcsJKUd8AkSX699cqETLPok8CBas"]]  (4.3ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 17:52:00.298727"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 17:52:00.304852"], ["id", "545b02fa-bea9-11e4-8998-705681abff85"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "545a4afe-bea9-11e4-8b67-705681abff85"]] Clubhouse::Organization Load (1.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "545a4afe-bea9-11e4-8b67-705681abff85"]] Completed 200 OK in 48ms (Views: 28.5ms | ActiveRecord: 7.6ms)  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (4.6ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$9wy0Bx31s6C2LPEJ0/ucZup05eO/jKYUVwt0N1xJ3xUWkoBmbs1ri"], ["created_at", "2015-02-27 17:52:00.412828"], ["updated_at", "2015-02-27 17:52:00.412828"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 17:52:00.447136"], ["user_id", "547d2704-bea9-11e4-8f27-705681abff85"], ["created_at", "2015-02-27 17:52:00.449647"], ["updated_at", "2015-02-27 17:52:00.449647"], ["token", "5iBiuw-_28NE8i6z4dktVnct78E27wIkaJ0UUK4cS4o"]]  (5.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 17:52:00.473081"], ["updated_at", "2015-02-27 17:52:00.473081"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "547d2704-bea9-11e4-8f27-705681abff85"], ["organization_id", "5485cd32-bea9-11e4-a533-705681abff85"], ["created_at", "2015-02-27 17:52:00.490119"], ["updated_at", "2015-02-27 17:52:00.490119"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ugEQq8hzaj3Ms0IwCUSlnupUc4EtAqAmVuutjB/i0JNpY80Eof0ti"], ["created_at", "2015-02-27 17:52:00.512195"], ["updated_at", "2015-02-27 17:52:00.512195"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 17:52:00.520599"], ["updated_at", "2015-02-27 17:52:00.520599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "548c2c7c-bea9-11e4-867d-705681abff85"], ["organization_id", "548cc4ca-bea9-11e4-af9b-705681abff85"], ["created_at", "2015-02-27 17:52:00.526420"], ["updated_at", "2015-02-27 17:52:00.526420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 09:52:00 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (2.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$04eED7Az0V3ls20GdfdBWO42oJS03dGgRVBOi06EWfqQ1AU.zlfsu"], ["created_at", "2015-02-27 18:12:17.040671"], ["updated_at", "2015-02-27 18:12:17.040671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (40.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 18:12:17.073403"], ["user_id", "29a715be-beac-11e4-9471-705681abff85"], ["created_at", "2015-02-27 18:12:17.079840"], ["updated_at", "2015-02-27 18:12:17.079840"], ["token", "-umzCmcPiKF99FusZP6YY9MwbBdaThfvTlrTc_BAwWw"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 18:12:17.136560"], ["updated_at", "2015-02-27 18:12:17.136560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "29a715be-beac-11e4-9471-705681abff85"], ["organization_id", "29b5fd72-beac-11e4-a3aa-705681abff85"], ["created_at", "2015-02-27 18:12:17.150685"], ["updated_at", "2015-02-27 18:12:17.150685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-1" for 127.0.0.1 at 2015-02-27 10:12:17 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 18:12:17.174058' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-umzCmcPiKF99FusZP6YY9MwbBdaThfvTlrTc_BAwWw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 18:12:17.191197"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 18:12:17.192381"], ["id", "29ad34d0-beac-11e4-baa5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "29a715be-beac-11e4-9471-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "29a715be-beac-11e4-9471-705681abff85"], ["name", "org-1"]] Completed 200 OK in 55ms (Views: 13.8ms | ActiveRecord: 1.8ms)  (7.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$PpOKUKO3ZxzZwColva4N4.734QeS2mJLdAMc2BO.YGAAsanx36etW"], ["created_at", "2015-02-27 18:12:17.255712"], ["updated_at", "2015-02-27 18:12:17.255712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 18:12:17.259209"], ["user_id", "29c7de02-beac-11e4-9e63-705681abff85"], ["created_at", "2015-02-27 18:12:17.261071"], ["updated_at", "2015-02-27 18:12:17.261071"], ["token", "c2LaeTjMK8mBTaSJgiVbJPiI9PMgv6lAXeSuU_fPB08"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 18:12:17.266238"], ["updated_at", "2015-02-27 18:12:17.266238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "29c7de02-beac-11e4-9e63-705681abff85"], ["organization_id", "29c96e3e-beac-11e4-b286-705681abff85"], ["created_at", "2015-02-27 18:12:17.271427"], ["updated_at", "2015-02-27 18:12:17.271427"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 10:12:17 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$7DS5BJeJms/LPVGdwnbsqe6OWu20Dx/TMAkI1L7vaw.L7cbseqcdq"], ["created_at", "2015-02-27 18:12:17.295187"], ["updated_at", "2015-02-27 18:12:17.295187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 18:12:17.296955"], ["user_id", "29cdbf16-beac-11e4-9db2-705681abff85"], ["created_at", "2015-02-27 18:12:17.297817"], ["updated_at", "2015-02-27 18:12:17.297817"], ["token", "tAti5OSKNqrQRXe9jmljV6SExbWQgIpE0H8NO-i2EOc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 18:12:17.300458"], ["updated_at", "2015-02-27 18:12:17.300458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "29cdbf16-beac-11e4-9db2-705681abff85"], ["organization_id", "29ce9102-beac-11e4-af79-705681abff85"], ["created_at", "2015-02-27 18:12:17.304141"], ["updated_at", "2015-02-27 18:12:17.304141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/29ce9102-beac-11e4-af79-705681abff85" for 127.0.0.1 at 2015-02-27 10:12:17 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"29ce9102-beac-11e4-af79-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 18:12:17.310080' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tAti5OSKNqrQRXe9jmljV6SExbWQgIpE0H8NO-i2EOc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 18:12:17.311603"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 18:12:17.312773"], ["id", "29ce2cf8-beac-11e4-b8ce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "29cdbf16-beac-11e4-9db2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "29cdbf16-beac-11e4-9db2-705681abff85"], ["id", "29ce9102-beac-11e4-af79-705681abff85"]] Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$aDUln1O1bnVckUWDsBGV3e5piK6zoBqZJrLO.iGb1CzWByhCZwj6O"], ["created_at", "2015-02-27 18:12:17.324971"], ["updated_at", "2015-02-27 18:12:17.324971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 18:12:17.326624"], ["user_id", "29d24932-beac-11e4-ad5f-705681abff85"], ["created_at", "2015-02-27 18:12:17.327409"], ["updated_at", "2015-02-27 18:12:17.327409"], ["token", "dEWz6TSsqV8KCiX8pl6AILfNADtwrKzTKyCbtSMGvFE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 18:12:17.329663"], ["updated_at", "2015-02-27 18:12:17.329663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "29d24932-beac-11e4-ad5f-705681abff85"], ["organization_id", "29d2fd46-beac-11e4-94e7-705681abff85"], ["created_at", "2015-02-27 18:12:17.331883"], ["updated_at", "2015-02-27 18:12:17.331883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 10:12:17 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$8uRsCki9r2ukJow7k6jt.O2RdpwJugL1aKUbLDdysg2ipi07ol96i"], ["created_at", "2015-02-27 18:12:17.344578"], ["updated_at", "2015-02-27 18:12:17.344578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 18:12:17.346299"], ["user_id", "29d548f8-beac-11e4-bf50-705681abff85"], ["created_at", "2015-02-27 18:12:17.347079"], ["updated_at", "2015-02-27 18:12:17.347079"], ["token", "WCsS2sZkhOhDXGNIIKoyF_NoZmvGdIpDWT5fRnOWymE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 18:12:17.349296"], ["updated_at", "2015-02-27 18:12:17.349296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "29d548f8-beac-11e4-bf50-705681abff85"], ["organization_id", "29d5fd8e-beac-11e4-a978-705681abff85"], ["created_at", "2015-02-27 18:12:17.351786"], ["updated_at", "2015-02-27 18:12:17.351786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$5qiGVF7vnhXJAZ33f.nYyOTmEsvHnTAtrQLihhfb231JW463EPpN6"], ["created_at", "2015-02-27 18:12:17.357801"], ["updated_at", "2015-02-27 18:12:17.357801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 18:12:17.359926"], ["updated_at", "2015-02-27 18:12:17.359926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "29d74aea-beac-11e4-9363-705681abff85"], ["organization_id", "29d79e1e-beac-11e4-8a73-705681abff85"], ["created_at", "2015-02-27 18:12:17.362272"], ["updated_at", "2015-02-27 18:12:17.362272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 10:12:17 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 18:12:17.398596' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WCsS2sZkhOhDXGNIIKoyF_NoZmvGdIpDWT5fRnOWymE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 18:12:17.400223"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 18:12:17.401403"], ["id", "29d5ad52-beac-11e4-8d4a-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "29d548f8-beac-11e4-bf50-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "29d548f8-beac-11e4-bf50-705681abff85"]] Completed 200 OK in 10ms (Views: 2.3ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$hhZH235kiyA2.6OcQVvQ8uSsHxEezBUGrngiO4.o0gGqMxZqdiAbC"], ["created_at", "2015-02-27 18:12:17.414086"], ["updated_at", "2015-02-27 18:12:17.414086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 18:12:17.415685"], ["user_id", "29dfe100-beac-11e4-aee5-705681abff85"], ["created_at", "2015-02-27 18:12:17.416501"], ["updated_at", "2015-02-27 18:12:17.416501"], ["token", "aozurOmPrzeR3Z4VXyqqTIThodijT1i-7ghLOIsmr54"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 18:12:17.420083"], ["updated_at", "2015-02-27 18:12:17.420083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "29dfe100-beac-11e4-aee5-705681abff85"], ["organization_id", "29e0caa2-beac-11e4-b3ca-705681abff85"], ["created_at", "2015-02-27 18:12:17.422513"], ["updated_at", "2015-02-27 18:12:17.422513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$c42Z7nSZvG4At9Mba08AueYNrbRKd73db3UnRhVZ.TXdufpWETEfq"], ["created_at", "2015-02-27 18:12:17.427097"], ["updated_at", "2015-02-27 18:12:17.427097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 18:12:17.429186"], ["updated_at", "2015-02-27 18:12:17.429186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "29e1de4c-beac-11e4-8335-705681abff85"], ["organization_id", "29e229d8-beac-11e4-8b58-705681abff85"], ["created_at", "2015-02-27 18:12:17.431307"], ["updated_at", "2015-02-27 18:12:17.431307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 10:12:17 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (7.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (45.3ms) INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "a"], ["created_at", "2015-02-27 19:16:09.363723"], ["updated_at", "2015-02-27 19:16:09.363723"]] PG::NotNullViolation: ERROR: null value in column "email" violates not-null constraint DETAIL: Failing row contains (15ec5d82-beb5-11e4-b0a7-705681abff85, a, null, 2015-02-27 19:16:09.363723, 2015-02-27 19:16:09.363723). : INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (11.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "a"], ["created_at", "2015-02-27 19:16:28.005070"], ["updated_at", "2015-02-27 19:16:28.005070"]] PG::NotNullViolation: ERROR: null value in column "email" violates not-null constraint DETAIL: Failing row contains (2101af38-beb5-11e4-b298-705681abff85, a, null, 2015-02-27 19:16:28.00507, 2015-02-27 19:16:28.00507). : INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (7.6ms) INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "a"], ["created_at", "2015-02-27 19:16:36.460651"], ["updated_at", "2015-02-27 19:16:36.460651"]] PG::NotNullViolation: ERROR: null value in column "email" violates not-null constraint DETAIL: Failing row contains (260bf60a-beb5-11e4-a86b-705681abff85, a, null, 2015-02-27 19:16:36.460651, 2015-02-27 19:16:36.460651). : INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "a"], ["created_at", "2015-02-27 19:16:43.742721"], ["updated_at", "2015-02-27 19:16:43.742721"]] PG::NotNullViolation: ERROR: null value in column "email" violates not-null constraint DETAIL: Failing row contains (2a62f7da-beb5-11e4-ab74-705681abff85, a, null, 2015-02-27 19:16:43.742721, 2015-02-27 19:16:43.742721). : INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (7.3ms) INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "a"], ["created_at", "2015-02-27 19:16:52.531562"], ["updated_at", "2015-02-27 19:16:52.531562"]] PG::NotNullViolation: ERROR: null value in column "email" violates not-null constraint DETAIL: Failing row contains (2fa01386-beb5-11e4-b999-705681abff85, a, null, 2015-02-27 19:16:52.531562, 2015-02-27 19:16:52.531562). : INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (7.6ms) INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "a"], ["created_at", "2015-02-27 19:17:00.315530"], ["updated_at", "2015-02-27 19:17:00.315530"]] PG::NotNullViolation: ERROR: null value in column "email" violates not-null constraint DETAIL: Failing row contains (3443cd38-beb5-11e4-8e1d-705681abff85, a, null, 2015-02-27 19:17:00.31553, 2015-02-27 19:17:00.31553). : INSERT INTO "clubhouse_organizations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (13.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:19:09.343790"], ["updated_at", "2015-02-27 19:19:09.343790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (6.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (7.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:19:16.988340"], ["updated_at", "2015-02-27 19:19:16.988340"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:23:39.711974"], ["updated_at", "2015-02-27 19:23:39.711974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (50.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:23:39.743645"], ["updated_at", "2015-02-27 19:23:39.743645"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "225c2fec-beb6-11e4-9fd5-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:23:39.822216"], ["updated_at", "2015-02-27 19:23:39.822216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", nil]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", nil]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:23:52.546197"], ["updated_at", "2015-02-27 19:23:52.546197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:23:52.573157"], ["updated_at", "2015-02-27 19:23:52.573157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "29fd276a-beb6-11e4-8e03-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:23:52.587191"], ["updated_at", "2015-02-27 19:23:52.587191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", nil]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", nil]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:24:05.699601"], ["updated_at", "2015-02-27 19:24:05.699601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:24:05.723136"], ["updated_at", "2015-02-27 19:24:05.723136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:24:05.730723"], ["updated_at", "2015-02-27 19:24:05.730723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "31d4d8f2-beb6-11e4-965f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:24:15.937884"], ["updated_at", "2015-02-27 19:24:15.937884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:24:15.968253"], ["updated_at", "2015-02-27 19:24:15.968253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37ef02bc-beb6-11e4-a648-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:24:15.984618"], ["updated_at", "2015-02-27 19:24:15.984618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:22.877533"], ["updated_at", "2015-02-27 19:26:22.877533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:22.891121"], ["updated_at", "2015-02-27 19:26:22.891121"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:22.967659"], ["updated_at", "2015-02-27 19:26:22.967659"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:22.975829"], ["updated_at", "2015-02-27 19:26:22.975829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83aa38f2-beb6-11e4-a9a6-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:30.956495"], ["updated_at", "2015-02-27 19:26:30.956495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:30.992441"], ["updated_at", "2015-02-27 19:26:30.992441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:31.001956"], ["updated_at", "2015-02-27 19:26:31.001956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "886b8d6e-beb6-11e4-8d5a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (6.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:40.248257"], ["updated_at", "2015-02-27 19:26:40.248257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (11.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:40.272683"], ["updated_at", "2015-02-27 19:26:40.272683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:40.295350"], ["updated_at", "2015-02-27 19:26:40.295350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8df588f2-beb6-11e4-bb5c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:26:40.306863"], ["updated_at", "2015-02-27 19:26:40.306863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$lNXYD3IitWKRA9Hbx4JXceMjXu4KUT5J0Z46G4UxI8mG/qeClieZW"], ["created_at", "2015-02-27 19:36:37.850831"], ["updated_at", "2015-02-27 19:36:37.850831"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (12.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:36:37.874999"], ["updated_at", "2015-02-27 19:36:37.874999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f22191c6-beb7-11e4-8f1f-705681abff85"], ["organization_id", "f2250680-beb7-11e4-a7c5-705681abff85"], ["created_at", "2015-02-27 19:36:37.878117"], ["updated_at", "2015-02-27 19:36:37.878117"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (1.0ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f22191c6-beb7-11e4-8f1f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f2250680-beb7-11e4-a7c5-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (4.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$jBjqcrlsUl9Wgf159yZUOOJB3MOzL0l.FlT.VwI/q8rImVuWqHbxC"], ["created_at", "2015-02-27 19:36:59.768231"], ["updated_at", "2015-02-27 19:36:59.768231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:36:59.780350"], ["updated_at", "2015-02-27 19:36:59.780350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff31f4d2-beb7-11e4-9ae3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff33802c-beb7-11e4-8f61-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ff31f4d2-beb7-11e4-9ae3-705681abff85"], ["organization_id", "ff33802c-beb7-11e4-8f61-705681abff85"], ["created_at", "2015-02-27 19:36:59.784534"], ["updated_at", "2015-02-27 19:36:59.784534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ff31f4d2-beb7-11e4-9ae3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ff33802c-beb7-11e4-8f61-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff31f4d2-beb7-11e4-9ae3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff33802c-beb7-11e4-8f61-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ff33802c-beb7-11e4-8f61-705681abff86"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff31f4d2-beb7-11e4-9ae3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff33802c-beb7-11e4-8f61-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$cuPAlL9NqQm3eRgLglIM9OeNiMUsNghV4M27JOxP2wgj84lyEWrZW"], ["created_at", "2015-02-27 19:51:52.101987"], ["updated_at", "2015-02-27 19:51:52.101987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (25.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:51:52.111518"], ["user_id", "13111634-beba-11e4-a4d1-705681abff85"], ["created_at", "2015-02-27 19:51:52.117763"], ["updated_at", "2015-02-27 19:51:52.117763"], ["token", "wueiJPx53pNAXIk4N_NvyuHp0TFIy0-EgEZ9KN4hEmQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.153890"], ["updated_at", "2015-02-27 19:51:52.153890"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13111634-beba-11e4-a4d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '1318fb10-beba-11e4-ad1e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "13111634-beba-11e4-a4d1-705681abff85"], ["organization_id", "1318fb10-beba-11e4-ad1e-705681abff85"], ["created_at", "2015-02-27 19:51:52.166862"], ["updated_at", "2015-02-27 19:51:52.166862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:51:52 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$K3R8/fdUsV4Pe0KrCsIyG.yjVnyDtGKwWumUqE.JhPYa41C64cl26"], ["created_at", "2015-02-27 19:51:52.181561"], ["updated_at", "2015-02-27 19:51:52.181561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:51:52.183334"], ["user_id", "131d0e30-beba-11e4-9e4a-705681abff85"], ["created_at", "2015-02-27 19:51:52.184190"], ["updated_at", "2015-02-27 19:51:52.184190"], ["token", "xY7kOY_apVSggXUFXZ6n2kL0v_bsZjb8an934H0nZ4M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.219619"], ["updated_at", "2015-02-27 19:51:52.219619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '131d0e30-beba-11e4-9e4a-705681abff85' AND "clubhouse_memberships"."organization_id" = '1322e1fc-beba-11e4-92f3-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "131d0e30-beba-11e4-9e4a-705681abff85"], ["organization_id", "1322e1fc-beba-11e4-92f3-705681abff85"], ["created_at", "2015-02-27 19:51:52.224843"], ["updated_at", "2015-02-27 19:51:52.224843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:51:52 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$TfmjvgF1XDPEiQmzLqVs9ehbARVuNPcRStpafMM5o4Il3DVJy8Vpi"], ["created_at", "2015-02-27 19:51:52.234944"], ["updated_at", "2015-02-27 19:51:52.234944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:51:52.236657"], ["user_id", "132531a0-beba-11e4-8ab1-705681abff85"], ["created_at", "2015-02-27 19:51:52.237444"], ["updated_at", "2015-02-27 19:51:52.237444"], ["token", "7lD-Rrrr3iP0xCbbyQhbLi9SWskDG-6vpcRVEIapslk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.240830"], ["updated_at", "2015-02-27 19:51:52.240830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '132531a0-beba-11e4-8ab1-705681abff85' AND "clubhouse_memberships"."organization_id" = '132613fe-beba-11e4-9b8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "132531a0-beba-11e4-8ab1-705681abff85"], ["organization_id", "132613fe-beba-11e4-9b8c-705681abff85"], ["created_at", "2015-02-27 19:51:52.244068"], ["updated_at", "2015-02-27 19:51:52.244068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:51:52 -0800  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$3BbKCN0vve24lcyS5C019uJ1zCMiydB9MM6M2tSEHfkvfYuziMqoK"], ["created_at", "2015-02-27 19:51:52.258615"], ["updated_at", "2015-02-27 19:51:52.258615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:51:52.260356"], ["user_id", "1328cf4a-beba-11e4-81ec-705681abff85"], ["created_at", "2015-02-27 19:51:52.261168"], ["updated_at", "2015-02-27 19:51:52.261168"], ["token", "cVdJoBIRbZRaLwciwnRJ2MyxK-NgcI6FwFuI5YOR3hM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.264932"], ["updated_at", "2015-02-27 19:51:52.264932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1328cf4a-beba-11e4-81ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '1329d408-beba-11e4-bafa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1328cf4a-beba-11e4-81ec-705681abff85"], ["organization_id", "1329d408-beba-11e4-bafa-705681abff85"], ["created_at", "2015-02-27 19:51:52.269411"], ["updated_at", "2015-02-27 19:51:52.269411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$BuC4GLR4Ez/l9s7dcGbU9e16qFC6c4r7orFD32XZUQuJpTbMoYGJi"], ["created_at", "2015-02-27 19:51:52.274521"], ["updated_at", "2015-02-27 19:51:52.274521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.277705"], ["updated_at", "2015-02-27 19:51:52.277705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '132b3bd6-beba-11e4-a786-705681abff85' AND "clubhouse_memberships"."organization_id" = '132bb39a-beba-11e4-adb0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "132b3bd6-beba-11e4-a786-705681abff85"], ["organization_id", "132bb39a-beba-11e4-adb0-705681abff85"], ["created_at", "2015-02-27 19:51:52.280899"], ["updated_at", "2015-02-27 19:51:52.280899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:51:52 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$DZ3PQnEwmcD1Y9yFMNCP3./lsSkxHywrRpabrlB5JcXtFlApX1Ev6"], ["created_at", "2015-02-27 19:51:52.310688"], ["updated_at", "2015-02-27 19:51:52.310688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:51:52.312411"], ["user_id", "1330c146-beba-11e4-af64-705681abff85"], ["created_at", "2015-02-27 19:51:52.313391"], ["updated_at", "2015-02-27 19:51:52.313391"], ["token", "vLEFYTZsfJAtGDQ1iOjKgm4Q___b5IFE4t89nPAxDzg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (7.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.317711"], ["updated_at", "2015-02-27 19:51:52.317711"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1330c146-beba-11e4-af64-705681abff85' AND "clubhouse_memberships"."organization_id" = '1332d22e-beba-11e4-a9cf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1330c146-beba-11e4-af64-705681abff85"], ["organization_id", "1332d22e-beba-11e4-a9cf-705681abff85"], ["created_at", "2015-02-27 19:51:52.328407"], ["updated_at", "2015-02-27 19:51:52.328407"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$QQ.MEvx4ad7gjEwfxlj3qOQi9fAqoRnNVM8r.4vL4AEBooSwrxG8S"], ["created_at", "2015-02-27 19:51:52.333193"], ["updated_at", "2015-02-27 19:51:52.333193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.336915"], ["updated_at", "2015-02-27 19:51:52.336915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13342cd2-beba-11e4-be7e-705681abff85' AND "clubhouse_memberships"."organization_id" = '1334c0ca-beba-11e4-b310-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "13342cd2-beba-11e4-be7e-705681abff85"], ["organization_id", "1334c0ca-beba-11e4-b310-705681abff85"], ["created_at", "2015-02-27 19:51:52.340262"], ["updated_at", "2015-02-27 19:51:52.340262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:51:52 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (1.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:51:52.345530' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vLEFYTZsfJAtGDQ1iOjKgm4Q___b5IFE4t89nPAxDzg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:51:52.360293"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:51:52.361523"], ["id", "133151d8-beba-11e4-91e9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1330c146-beba-11e4-af64-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "1330c146-beba-11e4-af64-705681abff85"]] Completed 200 OK in 39ms (Views: 4.3ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$tY1iATh3MMa8gbYVWQaNFOd7oaqMhKkV5PGqJgGeumsUrPkbpvx4W"], ["created_at", "2015-02-27 19:51:52.394292"], ["updated_at", "2015-02-27 19:51:52.394292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:51:52.396250"], ["user_id", "133d89c6-beba-11e4-8c16-705681abff85"], ["created_at", "2015-02-27 19:51:52.397095"], ["updated_at", "2015-02-27 19:51:52.397095"], ["token", "gtybee4tK9KekFxmLuSWihlQl3XihXNv6idvKDUjVME"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.400508"], ["updated_at", "2015-02-27 19:51:52.400508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '133d89c6-beba-11e4-8c16-705681abff85' AND "clubhouse_memberships"."organization_id" = '133e71b0-beba-11e4-b6c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "133d89c6-beba-11e4-8c16-705681abff85"], ["organization_id", "133e71b0-beba-11e4-b6c0-705681abff85"], ["created_at", "2015-02-27 19:51:52.403867"], ["updated_at", "2015-02-27 19:51:52.403867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 11:51:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$O7qmlGq2w42I/FatdEL6kuGNbFWiPFuzmguiWeAl789jGpp3r5tAO"], ["created_at", "2015-02-27 19:51:52.419410"], ["updated_at", "2015-02-27 19:51:52.419410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:51:52.421517"], ["user_id", "134161fe-beba-11e4-ad4e-705681abff85"], ["created_at", "2015-02-27 19:51:52.422376"], ["updated_at", "2015-02-27 19:51:52.422376"], ["token", "Z4anefyf3N_CdY2vg6BBlS1YVuuDycYJpO6r0SLKcf8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.428105"], ["updated_at", "2015-02-27 19:51:52.428105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '134161fe-beba-11e4-ad4e-705681abff85' AND "clubhouse_memberships"."organization_id" = '1342c7a6-beba-11e4-bea1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "134161fe-beba-11e4-ad4e-705681abff85"], ["organization_id", "1342c7a6-beba-11e4-bea1-705681abff85"], ["created_at", "2015-02-27 19:51:52.434858"], ["updated_at", "2015-02-27 19:51:52.434858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-9" for 127.0.0.1 at 2015-02-27 11:51:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-9", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:51:52.441223' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Z4anefyf3N_CdY2vg6BBlS1YVuuDycYJpO6r0SLKcf8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:51:52.443249"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:51:52.444538"], ["id", "1341d95e-beba-11e4-8a50-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "134161fe-beba-11e4-ad4e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "134161fe-beba-11e4-ad4e-705681abff85"], ["name", "org-9"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$FWuG8boBXjPIUIlFc.BPj.L6aSQob5DE34su8VHCjGbKPruY2WfiO"], ["created_at", "2015-02-27 19:51:52.456087"], ["updated_at", "2015-02-27 19:51:52.456087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:51:52.457730"], ["user_id", "1346eeda-beba-11e4-ac53-705681abff85"], ["created_at", "2015-02-27 19:51:52.458491"], ["updated_at", "2015-02-27 19:51:52.458491"], ["token", "9SyKWUSwSGzUYdTM73HPJov5GkjlrAPaQBpRiBkVAfc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.462473"], ["updated_at", "2015-02-27 19:51:52.462473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1346eeda-beba-11e4-ac53-705681abff85' AND "clubhouse_memberships"."organization_id" = '1347ff1e-beba-11e4-8589-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1346eeda-beba-11e4-ac53-705681abff85"], ["organization_id", "1347ff1e-beba-11e4-8589-705681abff85"], ["created_at", "2015-02-27 19:51:52.466319"], ["updated_at", "2015-02-27 19:51:52.466319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 11:51:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$f0zLJE77jyJ5/wL0qdY3xeyW2SP38zN34z49IWpM1p5HBQQDpXfBe"], ["created_at", "2015-02-27 19:51:52.478225"], ["updated_at", "2015-02-27 19:51:52.478225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:51:52.479910"], ["user_id", "134a512e-beba-11e4-98ca-705681abff85"], ["created_at", "2015-02-27 19:51:52.481123"], ["updated_at", "2015-02-27 19:51:52.481123"], ["token", "vj0_hbsoFplOf6hN658-IJe8jTgfR2M11BuGoTlIQis"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:51:52.485384"], ["updated_at", "2015-02-27 19:51:52.485384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '134a512e-beba-11e4-98ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '134b6604-beba-11e4-b2ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "134a512e-beba-11e4-98ca-705681abff85"], ["organization_id", "134b6604-beba-11e4-b2ab-705681abff85"], ["created_at", "2015-02-27 19:51:52.489093"], ["updated_at", "2015-02-27 19:51:52.489093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/134b6604-beba-11e4-b2ab-705681abff85" for 127.0.0.1 at 2015-02-27 11:51:52 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"134b6604-beba-11e4-b2ab-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:51:52.494606' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vj0_hbsoFplOf6hN658-IJe8jTgfR2M11BuGoTlIQis"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:51:52.496058"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:51:52.497017"], ["id", "134ae6e8-beba-11e4-a600-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "134a512e-beba-11e4-98ca-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "134a512e-beba-11e4-98ca-705681abff85"], ["id", "134b6604-beba-11e4-b2ab-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$M8LQ.IPemUeGiKYJyYRxY./n8aZEErTme92zH4/GQI/2YdheG5Yb."], ["created_at", "2015-02-27 19:52:12.522262"], ["updated_at", "2015-02-27 19:52:12.522262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:52:12.533568"], ["user_id", "1f3cff86-beba-11e4-afdc-705681abff85"], ["created_at", "2015-02-27 19:52:12.539633"], ["updated_at", "2015-02-27 19:52:12.539633"], ["token", "P-mttPTTswNnL0Ew9g29QAHiuNTtecgNJfzUCCTX3SI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.548477"], ["updated_at", "2015-02-27 19:52:12.548477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f3cff86-beba-11e4-afdc-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f40d21e-beba-11e4-8435-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f3cff86-beba-11e4-afdc-705681abff85"], ["organization_id", "1f40d21e-beba-11e4-8435-705681abff85"], ["created_at", "2015-02-27 19:52:12.560392"], ["updated_at", "2015-02-27 19:52:12.560392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 11:52:12 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$pKKF2sszD42sj6nLWizI0OtmOc7B19sBFeCW8VJVlBhY8CRu8oXJK"], ["created_at", "2015-02-27 19:52:12.623569"], ["updated_at", "2015-02-27 19:52:12.623569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:52:12.625977"], ["user_id", "1f4c5580-beba-11e4-b6a2-705681abff85"], ["created_at", "2015-02-27 19:52:12.626780"], ["updated_at", "2015-02-27 19:52:12.626780"], ["token", "tbZ6FNF9ZMqVBsNb0kk1ULiWc_k0L4jiVjhTwDSEmHQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.630191"], ["updated_at", "2015-02-27 19:52:12.630191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f4c5580-beba-11e4-b6a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f4d3f90-beba-11e4-853f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f4c5580-beba-11e4-b6a2-705681abff85"], ["organization_id", "1f4d3f90-beba-11e4-853f-705681abff85"], ["created_at", "2015-02-27 19:52:12.633627"], ["updated_at", "2015-02-27 19:52:12.633627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-2" for 127.0.0.1 at 2015-02-27 11:52:12 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:52:12.638543' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tbZ6FNF9ZMqVBsNb0kk1ULiWc_k0L4jiVjhTwDSEmHQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:52:12.645631"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:52:12.646811"], ["id", "1f4cc52e-beba-11e4-96e0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1f4c5580-beba-11e4-b6a2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "1f4c5580-beba-11e4-b6a2-705681abff85"], ["name", "org-2"]] Completed 200 OK in 31ms (Views: 1.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$CNBTu1.Ai7JFBQtr9yA0/eC2AS1dG9TGwODenJWlg1HknMQRxCrB6"], ["created_at", "2015-02-27 19:52:12.676832"], ["updated_at", "2015-02-27 19:52:12.676832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:52:12.678589"], ["user_id", "1f546270-beba-11e4-9f0c-705681abff85"], ["created_at", "2015-02-27 19:52:12.679506"], ["updated_at", "2015-02-27 19:52:12.679506"], ["token", "chXgb0SAqYYk4De28DvyaHXFZp76fUY2qoloRm0P8Us"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.683118"], ["updated_at", "2015-02-27 19:52:12.683118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f546270-beba-11e4-9f0c-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f55563a-beba-11e4-b7b1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f546270-beba-11e4-9f0c-705681abff85"], ["organization_id", "1f55563a-beba-11e4-b7b1-705681abff85"], ["created_at", "2015-02-27 19:52:12.686466"], ["updated_at", "2015-02-27 19:52:12.686466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$TRhFgrktdCXxKV6D9L7Szu20YrqLDRn7pFgMQdbR45PVI7g07rLZu"], ["created_at", "2015-02-27 19:52:12.691095"], ["updated_at", "2015-02-27 19:52:12.691095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.694139"], ["updated_at", "2015-02-27 19:52:12.694139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f568bcc-beba-11e4-bdd7-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f5701b0-beba-11e4-872c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f568bcc-beba-11e4-bdd7-705681abff85"], ["organization_id", "1f5701b0-beba-11e4-872c-705681abff85"], ["created_at", "2015-02-27 19:52:12.697341"], ["updated_at", "2015-02-27 19:52:12.697341"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:52:12 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Iu.hGiF5P5uk3vupoX04nus6ltQhtp7xXAPj1OIe5.AobLInOFR82"], ["created_at", "2015-02-27 19:52:12.710238"], ["updated_at", "2015-02-27 19:52:12.710238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (23.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:52:12.711973"], ["user_id", "1f597a30-beba-11e4-9c1e-705681abff85"], ["created_at", "2015-02-27 19:52:12.712735"], ["updated_at", "2015-02-27 19:52:12.712735"], ["token", "Cez6Wx_OpQI-MlvDdC0maBiqiJaTnDPNJp1ck_xI7zk"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.756021"], ["updated_at", "2015-02-27 19:52:12.756021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f597a30-beba-11e4-9c1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f60a42c-beba-11e4-bc47-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f597a30-beba-11e4-9c1e-705681abff85"], ["organization_id", "1f60a42c-beba-11e4-bc47-705681abff85"], ["created_at", "2015-02-27 19:52:12.764186"], ["updated_at", "2015-02-27 19:52:12.764186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$WLOlGGXAfrV8D5ubinzqZuPZg2aFXwuBlBKhKRhdxP/hqWw2CBLKe"], ["created_at", "2015-02-27 19:52:12.772209"], ["updated_at", "2015-02-27 19:52:12.772209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.776543"], ["updated_at", "2015-02-27 19:52:12.776543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f6307ee-beba-11e4-a283-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f63aa8c-beba-11e4-bb11-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f6307ee-beba-11e4-a283-705681abff85"], ["organization_id", "1f63aa8c-beba-11e4-bb11-705681abff85"], ["created_at", "2015-02-27 19:52:12.780510"], ["updated_at", "2015-02-27 19:52:12.780510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:52:12 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:52:12.785413' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Cez6Wx_OpQI-MlvDdC0maBiqiJaTnDPNJp1ck_xI7zk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:52:12.786992"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:52:12.788007"], ["id", "1f5b2678-beba-11e4-8b9d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1f597a30-beba-11e4-9c1e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "1f597a30-beba-11e4-9c1e-705681abff85"]] Completed 200 OK in 9ms (Views: 2.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$/NyrzFvqMoYUyI/62nUy7O8a6NiP9Izg2mqVK8MMCGcVNrSkNMjBS"], ["created_at", "2015-02-27 19:52:12.800962"], ["updated_at", "2015-02-27 19:52:12.800962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:52:12.802805"], ["user_id", "1f67577c-beba-11e4-a757-705681abff85"], ["created_at", "2015-02-27 19:52:12.803572"], ["updated_at", "2015-02-27 19:52:12.803572"], ["token", "u22hE_xRFASlDWwgFwYncLWUwopxYEzmjrWZ_yxqRXc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.809255"], ["updated_at", "2015-02-27 19:52:12.809255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f67577c-beba-11e4-a757-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f68947a-beba-11e4-a1c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f67577c-beba-11e4-a757-705681abff85"], ["organization_id", "1f68947a-beba-11e4-a1c0-705681abff85"], ["created_at", "2015-02-27 19:52:12.812721"], ["updated_at", "2015-02-27 19:52:12.812721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 11:52:12 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$9vHNC42AVqGsTq1CQjl1ueh6nBdSUiM20lfLymVEiHGz/7/4Hupfi"], ["created_at", "2015-02-27 19:52:12.824951"], ["updated_at", "2015-02-27 19:52:12.824951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:52:12.826772"], ["user_id", "1f6afe7c-beba-11e4-a880-705681abff85"], ["created_at", "2015-02-27 19:52:12.827499"], ["updated_at", "2015-02-27 19:52:12.827499"], ["token", "yKo4y1KZLLYDFjrrfLQxpJIsCc5Fxbh4CsbfES1nVjg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.830890"], ["updated_at", "2015-02-27 19:52:12.830890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f6afe7c-beba-11e4-a880-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f6be90e-beba-11e4-8dcc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f6afe7c-beba-11e4-a880-705681abff85"], ["organization_id", "1f6be90e-beba-11e4-8dcc-705681abff85"], ["created_at", "2015-02-27 19:52:12.835165"], ["updated_at", "2015-02-27 19:52:12.835165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1f6be90e-beba-11e4-8dcc-705681abff85" for 127.0.0.1 at 2015-02-27 11:52:12 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1f6be90e-beba-11e4-8dcc-705681abff85", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:52:12.839728' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yKo4y1KZLLYDFjrrfLQxpJIsCc5Fxbh4CsbfES1nVjg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:52:12.841111"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:52:12.842032"], ["id", "1f6b61f0-beba-11e4-ae57-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1f6afe7c-beba-11e4-a880-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "1f6afe7c-beba-11e4-a880-705681abff85"], ["id", "1f6be90e-beba-11e4-8dcc-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$jrdhR7JMc1kvXlG7IyJTPusgkttzK6vEYuTLS7e5JpDwVo0bTK9pu"], ["created_at", "2015-02-27 19:52:12.852345"], ["updated_at", "2015-02-27 19:52:12.852345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:52:12.854148"], ["user_id", "1f6f2ad8-beba-11e4-a414-705681abff85"], ["created_at", "2015-02-27 19:52:12.854989"], ["updated_at", "2015-02-27 19:52:12.854989"], ["token", "6sByaX0bIE5lBt8EOOGJijlem3EMPL4HAHt_WanzElk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.858234"], ["updated_at", "2015-02-27 19:52:12.858234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f6f2ad8-beba-11e4-a414-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f700d0e-beba-11e4-a7d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f6f2ad8-beba-11e4-a414-705681abff85"], ["organization_id", "1f700d0e-beba-11e4-a7d8-705681abff85"], ["created_at", "2015-02-27 19:52:12.861499"], ["updated_at", "2015-02-27 19:52:12.861499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:52:12 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$zicoj4ecZGVOhd0mhibKYeqoSJFdsTRg9QsixMHOfisQp.UUZKYY."], ["created_at", "2015-02-27 19:52:12.874046"], ["updated_at", "2015-02-27 19:52:12.874046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:52:12.875774"], ["user_id", "1f727a44-beba-11e4-bc3d-705681abff85"], ["created_at", "2015-02-27 19:52:12.876560"], ["updated_at", "2015-02-27 19:52:12.876560"], ["token", "7AVndC1XGEPKQtBt5tJmXD4YF98YqfIrqyl-5nhHAzc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.879812"], ["updated_at", "2015-02-27 19:52:12.879812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f727a44-beba-11e4-bc3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f73550e-beba-11e4-8b1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f727a44-beba-11e4-bc3d-705681abff85"], ["organization_id", "1f73550e-beba-11e4-8b1d-705681abff85"], ["created_at", "2015-02-27 19:52:12.883898"], ["updated_at", "2015-02-27 19:52:12.883898"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:52:12 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:52:12.888618' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7AVndC1XGEPKQtBt5tJmXD4YF98YqfIrqyl-5nhHAzc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:52:12.890116"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:52:12.891125"], ["id", "1f72e132-beba-11e4-aa78-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$VFDN6Eft6iIEIqs9c4r7d.ccjJK.Sint3us9bPSw28QM8RCpCSVha"], ["created_at", "2015-02-27 19:52:12.911032"], ["updated_at", "2015-02-27 19:52:12.911032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:52:12.912710"], ["user_id", "1f781e18-beba-11e4-aa07-705681abff85"], ["created_at", "2015-02-27 19:52:12.913722"], ["updated_at", "2015-02-27 19:52:12.913722"], ["token", "DPRutJ3IIPLvOD41-3N37bI5C_MnifT98pUM4u-4U0c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:52:12.918132"], ["updated_at", "2015-02-27 19:52:12.918132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f781e18-beba-11e4-aa07-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f794c8e-beba-11e4-a10d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f781e18-beba-11e4-aa07-705681abff85"], ["organization_id", "1f794c8e-beba-11e4-a10d-705681abff85"], ["created_at", "2015-02-27 19:52:12.922845"], ["updated_at", "2015-02-27 19:52:12.922845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:52:12 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "organization"=>{"name"=>"name"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:52:12.929524' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DPRutJ3IIPLvOD41-3N37bI5C_MnifT98pUM4u-4U0c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:52:12.930992"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:52:12.932156"], ["id", "1f789078-beba-11e4-86c9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (7.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ufjzbOZfbZRhcduYGUHfOu0cg2p17NZkAiSKwIZXezob/H7srEzYS"], ["created_at", "2015-02-27 19:54:11.329846"], ["updated_at", "2015-02-27 19:54:11.329846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (20.8ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:54:11.353158"], ["user_id", "660da96a-beba-11e4-baa7-705681abff85"], ["created_at", "2015-02-27 19:54:11.391105"], ["updated_at", "2015-02-27 19:54:11.391105"], ["token", "6qKrCfYjp79CVULyaHmbadDuFAhMBQG_hd89k2YwT5g"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.406922"], ["updated_at", "2015-02-27 19:54:11.406922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '660da96a-beba-11e4-baa7-705681abff85' AND "clubhouse_memberships"."organization_id" = '661941d0-beba-11e4-8600-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "660da96a-beba-11e4-baa7-705681abff85"], ["organization_id", "661941d0-beba-11e4-8600-705681abff85"], ["created_at", "2015-02-27 19:54:11.419581"], ["updated_at", "2015-02-27 19:54:11.419581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-1" for 127.0.0.1 at 2015-02-27 11:54:11 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:54:11.477134' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6qKrCfYjp79CVULyaHmbadDuFAhMBQG_hd89k2YwT5g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:54:11.484612"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:54:11.485834"], ["id", "66172044-beba-11e4-8c6d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "660da96a-beba-11e4-baa7-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "660da96a-beba-11e4-baa7-705681abff85"], ["name", "org-1"]] Completed 200 OK in 32ms (Views: 1.6ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$zY7aXtOsgfWlo6rlPijKHOeBdOShgBnzQyJS0ec5Y72yYQXGzij8u"], ["created_at", "2015-02-27 19:54:11.517840"], ["updated_at", "2015-02-27 19:54:11.517840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:54:11.519807"], ["user_id", "662a1dc0-beba-11e4-852c-705681abff85"], ["created_at", "2015-02-27 19:54:11.520644"], ["updated_at", "2015-02-27 19:54:11.520644"], ["token", "t4EY1ByFX6X_-rJJCWjObqhzZKcELY1qOsnJi1ZcP3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.524579"], ["updated_at", "2015-02-27 19:54:11.524579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '662a1dc0-beba-11e4-852c-705681abff85' AND "clubhouse_memberships"."organization_id" = '662b1b30-beba-11e4-9c4a-705681abff85') LIMIT 1 SQL (6.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "662a1dc0-beba-11e4-852c-705681abff85"], ["organization_id", "662b1b30-beba-11e4-9c4a-705681abff85"], ["created_at", "2015-02-27 19:54:11.528188"], ["updated_at", "2015-02-27 19:54:11.528188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 11:54:11 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$eRKo2ND9qSVsj596aFOTaOQY1O15uWtdO92qA2RaKGsfoiL8YS/U6"], ["created_at", "2015-02-27 19:54:11.548606"], ["updated_at", "2015-02-27 19:54:11.548606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:54:11.550697"], ["user_id", "662ecd2a-beba-11e4-ba8d-705681abff85"], ["created_at", "2015-02-27 19:54:11.551679"], ["updated_at", "2015-02-27 19:54:11.551679"], ["token", "XsrsTLnl6-m_oz5pqe5Xncvgkh1bR-ExyZwXl7aQfRk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.555363"], ["updated_at", "2015-02-27 19:54:11.555363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '662ecd2a-beba-11e4-ba8d-705681abff85' AND "clubhouse_memberships"."organization_id" = '662fcad6-beba-11e4-9295-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "662ecd2a-beba-11e4-ba8d-705681abff85"], ["organization_id", "662fcad6-beba-11e4-9295-705681abff85"], ["created_at", "2015-02-27 19:54:11.558694"], ["updated_at", "2015-02-27 19:54:11.558694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:54:11 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$2ThoMteRypIzDOX8ri03UeuS/tLexH35ZiOYxOdVGBhVJHZyQfrj."], ["created_at", "2015-02-27 19:54:11.571697"], ["updated_at", "2015-02-27 19:54:11.571697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:54:11.573416"], ["user_id", "66324dce-beba-11e4-96ff-705681abff85"], ["created_at", "2015-02-27 19:54:11.574214"], ["updated_at", "2015-02-27 19:54:11.574214"], ["token", "A8tTdm_BlEO1JZBqxN7ME5XXDdDflYcDx-_LsfgJdSM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.577716"], ["updated_at", "2015-02-27 19:54:11.577716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '66324dce-beba-11e4-96ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '663333d8-beba-11e4-a609-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "66324dce-beba-11e4-96ff-705681abff85"], ["organization_id", "663333d8-beba-11e4-a609-705681abff85"], ["created_at", "2015-02-27 19:54:11.580993"], ["updated_at", "2015-02-27 19:54:11.580993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:54:11 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "organization"=>{"name"=>"name"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:54:11.587667' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A8tTdm_BlEO1JZBqxN7ME5XXDdDflYcDx-_LsfgJdSM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:54:11.589429"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:54:11.590464"], ["id", "6632b750-beba-11e4-92ba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$PZ1htUZq8arhMvuXLJzRQeRKIQViLRsuzqyia5kjWQ9am56xalpmy"], ["created_at", "2015-02-27 19:54:11.602462"], ["updated_at", "2015-02-27 19:54:11.602462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:54:11.605013"], ["user_id", "6637146c-beba-11e4-a0ca-705681abff85"], ["created_at", "2015-02-27 19:54:11.605882"], ["updated_at", "2015-02-27 19:54:11.605882"], ["token", "aJVhG2xFZOv5m-AeLmk02-c4Bx41HyZTEbQq4XrB4ig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.609422"], ["updated_at", "2015-02-27 19:54:11.609422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6637146c-beba-11e4-a0ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '66380e6c-beba-11e4-8e7b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6637146c-beba-11e4-a0ca-705681abff85"], ["organization_id", "66380e6c-beba-11e4-8e7b-705681abff85"], ["created_at", "2015-02-27 19:54:11.612877"], ["updated_at", "2015-02-27 19:54:11.612877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:54:11 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:54:11.617341' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aJVhG2xFZOv5m-AeLmk02-c4Bx41HyZTEbQq4XrB4ig"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:54:11.618750"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:54:11.619668"], ["id", "66378abe-beba-11e4-9afa-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$mctavoEyjjqcyh8n67Vb1e/4KeY6TuC67bppzXxqZ2AYSXQeFNJva"], ["created_at", "2015-02-27 19:54:11.627804"], ["updated_at", "2015-02-27 19:54:11.627804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:54:11.629454"], ["user_id", "663adaca-beba-11e4-a48d-705681abff85"], ["created_at", "2015-02-27 19:54:11.630274"], ["updated_at", "2015-02-27 19:54:11.630274"], ["token", "fI7t-RJrqQU4T1H3SAynwtjOSKUL79Jki-uneEs5k8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.635971"], ["updated_at", "2015-02-27 19:54:11.635971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '663adaca-beba-11e4-a48d-705681abff85' AND "clubhouse_memberships"."organization_id" = '663c19e4-beba-11e4-86eb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "663adaca-beba-11e4-a48d-705681abff85"], ["organization_id", "663c19e4-beba-11e4-86eb-705681abff85"], ["created_at", "2015-02-27 19:54:11.639458"], ["updated_at", "2015-02-27 19:54:11.639458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/663c19e4-beba-11e4-86eb-705681abff85" for 127.0.0.1 at 2015-02-27 11:54:11 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"663c19e4-beba-11e4-86eb-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:54:11.644379' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fI7t-RJrqQU4T1H3SAynwtjOSKUL79Jki-uneEs5k8c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:54:11.646024"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:54:11.647063"], ["id", "663b4474-beba-11e4-b47d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "663adaca-beba-11e4-a48d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "663adaca-beba-11e4-a48d-705681abff85"], ["id", "663c19e4-beba-11e4-86eb-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$J01M0YTRi2bbpex7jo1szeZnAcgmwkZEvJS.fctT4DA3Rih6tMLzW"], ["created_at", "2015-02-27 19:54:11.658121"], ["updated_at", "2015-02-27 19:54:11.658121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:54:11.660275"], ["user_id", "663f8700-beba-11e4-a7af-705681abff85"], ["created_at", "2015-02-27 19:54:11.661206"], ["updated_at", "2015-02-27 19:54:11.661206"], ["token", "dEr9X5uIfcOQzdcOYZsCQA_5gDygkg31WQ66xQHTNak"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.665607"], ["updated_at", "2015-02-27 19:54:11.665607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '663f8700-beba-11e4-a7af-705681abff85' AND "clubhouse_memberships"."organization_id" = '66409ee2-beba-11e4-a532-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "663f8700-beba-11e4-a7af-705681abff85"], ["organization_id", "66409ee2-beba-11e4-a532-705681abff85"], ["created_at", "2015-02-27 19:54:11.669069"], ["updated_at", "2015-02-27 19:54:11.669069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 11:54:11 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$hFfpv0olVzT2h6NVULM9cuykubW7udTbz9jSmo1dRB2FjmanE89ty"], ["created_at", "2015-02-27 19:54:11.683124"], ["updated_at", "2015-02-27 19:54:11.683124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:54:11.685038"], ["user_id", "664352ae-beba-11e4-9595-705681abff85"], ["created_at", "2015-02-27 19:54:11.685986"], ["updated_at", "2015-02-27 19:54:11.685986"], ["token", "zQnjmGQpnf8vjYVEapfqFfMRmHA-Q8rlcLQR_FTrudk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.689530"], ["updated_at", "2015-02-27 19:54:11.689530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '664352ae-beba-11e4-9595-705681abff85' AND "clubhouse_memberships"."organization_id" = '664443ee-beba-11e4-a340-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "664352ae-beba-11e4-9595-705681abff85"], ["organization_id", "664443ee-beba-11e4-a340-705681abff85"], ["created_at", "2015-02-27 19:54:11.692781"], ["updated_at", "2015-02-27 19:54:11.692781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$OxxXTLu.J/DiOoadGAZ2T.Cahy3TSzf9vw9UlPuHvo4KHr0KdH9oq"], ["created_at", "2015-02-27 19:54:11.697335"], ["updated_at", "2015-02-27 19:54:11.697335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.700372"], ["updated_at", "2015-02-27 19:54:11.700372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6645744e-beba-11e4-a208-705681abff85' AND "clubhouse_memberships"."organization_id" = '6645ea28-beba-11e4-8a7d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6645744e-beba-11e4-a208-705681abff85"], ["organization_id", "6645ea28-beba-11e4-8a7d-705681abff85"], ["created_at", "2015-02-27 19:54:11.703649"], ["updated_at", "2015-02-27 19:54:11.703649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:54:11 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:54:11.708476' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zQnjmGQpnf8vjYVEapfqFfMRmHA-Q8rlcLQR_FTrudk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:54:11.710291"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:54:11.711446"], ["id", "6643c680-beba-11e4-9137-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "664352ae-beba-11e4-9595-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "664352ae-beba-11e4-9595-705681abff85"]] Completed 200 OK in 27ms (Views: 4.9ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$mXlqBXGv5c3DDuT/lhlxweiRXKcEWUbiyGRh2TBlJpGuZYe8kheQW"], ["created_at", "2015-02-27 19:54:11.744788"], ["updated_at", "2015-02-27 19:54:11.744788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:54:11.747668"], ["user_id", "664cc92e-beba-11e4-b5d9-705681abff85"], ["created_at", "2015-02-27 19:54:11.749353"], ["updated_at", "2015-02-27 19:54:11.749353"], ["token", "upRbIWb3Gqp9MtsqEBIRxyGcquZ2cCsECZJ25AGbr1o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.760538"], ["updated_at", "2015-02-27 19:54:11.760538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '664cc92e-beba-11e4-b5d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '664f1f12-beba-11e4-a9af-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "664cc92e-beba-11e4-b5d9-705681abff85"], ["organization_id", "664f1f12-beba-11e4-a9af-705681abff85"], ["created_at", "2015-02-27 19:54:11.764769"], ["updated_at", "2015-02-27 19:54:11.764769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$mTZ5vJahwphBDq/vSqbxQ.bouYDjEdSCRAELC3YGcXKRE4ZVc4YlW"], ["created_at", "2015-02-27 19:54:11.770232"], ["updated_at", "2015-02-27 19:54:11.770232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:54:11.774315"], ["updated_at", "2015-02-27 19:54:11.774315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '66509d10-beba-11e4-9038-705681abff85' AND "clubhouse_memberships"."organization_id" = '665139e6-beba-11e4-a143-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "66509d10-beba-11e4-9038-705681abff85"], ["organization_id", "665139e6-beba-11e4-a143-705681abff85"], ["created_at", "2015-02-27 19:54:11.778271"], ["updated_at", "2015-02-27 19:54:11.778271"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:54:11 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$yQBe9TETVioumwOvwaEVgOKeA0t5LMp3C8vZOu.z/KF3NlzGST9IS"], ["created_at", "2015-02-27 19:55:36.075951"], ["updated_at", "2015-02-27 19:55:36.075951"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:55:36.093190"], ["user_id", "9890f1b2-beba-11e4-a9bc-705681abff85"], ["created_at", "2015-02-27 19:55:36.099646"], ["updated_at", "2015-02-27 19:55:36.099646"], ["token", "rMrjDImDx1rcqDEAIbW_0Lh5siwdbtpnBTI1kOLkVt8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.108696"], ["updated_at", "2015-02-27 19:55:36.108696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9890f1b2-beba-11e4-a9bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '9895a4aa-beba-11e4-8ce6-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9890f1b2-beba-11e4-a9bc-705681abff85"], ["organization_id", "9895a4aa-beba-11e4-8ce6-705681abff85"], ["created_at", "2015-02-27 19:55:36.119913"], ["updated_at", "2015-02-27 19:55:36.119913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:55:36 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$7OUDjmDXKyUrKhaGAn0HkeKwcCJv2te66TDQ0Ns5WcZSYgqPBpWDC"], ["created_at", "2015-02-27 19:55:36.183771"], ["updated_at", "2015-02-27 19:55:36.183771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:55:36.185497"], ["user_id", "98a11416-beba-11e4-8b9c-705681abff85"], ["created_at", "2015-02-27 19:55:36.186335"], ["updated_at", "2015-02-27 19:55:36.186335"], ["token", "IxqTSX_n8lveKCNm_b1Lz0-YEyME8AT_2kB-CZ-21JM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.189798"], ["updated_at", "2015-02-27 19:55:36.189798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98a11416-beba-11e4-8b9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '98a1fe12-beba-11e4-8c29-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98a11416-beba-11e4-8b9c-705681abff85"], ["organization_id", "98a1fe12-beba-11e4-8c29-705681abff85"], ["created_at", "2015-02-27 19:55:36.193426"], ["updated_at", "2015-02-27 19:55:36.193426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:55:36 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:55:36.198221' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IxqTSX_n8lveKCNm_b1Lz0-YEyME8AT_2kB-CZ-21JM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:55:36.206916"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:55:36.208150"], ["id", "98a17b4a-beba-11e4-a503-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$oIkq4zEHrsNdcjT1Dr5yIeJTenibI8YTcyWR7ztdXByipzvbJezWy"], ["created_at", "2015-02-27 19:55:36.219129"], ["updated_at", "2015-02-27 19:55:36.219129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:55:36.220861"], ["user_id", "98a679a6-beba-11e4-8212-705681abff85"], ["created_at", "2015-02-27 19:55:36.221640"], ["updated_at", "2015-02-27 19:55:36.221640"], ["token", "XbK9r8H2szjOsI4mT8ZsKhjNbHXVyGRagDoF6Xx248M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.225058"], ["updated_at", "2015-02-27 19:55:36.225058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98a679a6-beba-11e4-8212-705681abff85' AND "clubhouse_memberships"."organization_id" = '98a75c5e-beba-11e4-b8e3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98a679a6-beba-11e4-8212-705681abff85"], ["organization_id", "98a75c5e-beba-11e4-b8e3-705681abff85"], ["created_at", "2015-02-27 19:55:36.229123"], ["updated_at", "2015-02-27 19:55:36.229123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:55:36 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "organization"=>{"name"=>"name"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:55:36.236837' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XbK9r8H2szjOsI4mT8ZsKhjNbHXVyGRagDoF6Xx248M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:55:36.238263"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:55:36.239213"], ["id", "98a6dd92-beba-11e4-a492-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "98a679a6-beba-11e4-8212-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$bFZtW82BcskWN5Mj4kfg8e0aajCoR61glhrTdHkUWHB4guBE3An.."], ["created_at", "2015-02-27 19:55:36.252505"], ["updated_at", "2015-02-27 19:55:36.252505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:55:36.254183"], ["user_id", "98ab908a-beba-11e4-b884-705681abff85"], ["created_at", "2015-02-27 19:55:36.254976"], ["updated_at", "2015-02-27 19:55:36.254976"], ["token", "OEtFRJuq0UcwxDOtF7xKEQ5xU1E_clZozy0nLQni6yQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.258299"], ["updated_at", "2015-02-27 19:55:36.258299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98ab908a-beba-11e4-b884-705681abff85' AND "clubhouse_memberships"."organization_id" = '98ac70e0-beba-11e4-ab6a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98ab908a-beba-11e4-b884-705681abff85"], ["organization_id", "98ac70e0-beba-11e4-ab6a-705681abff85"], ["created_at", "2015-02-27 19:55:36.261558"], ["updated_at", "2015-02-27 19:55:36.261558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$/1KQWtO5ArheLNd7Bj1oLuviH.g5MEHpufZ7ZJ4JWVYtH0Xd5e/3q"], ["created_at", "2015-02-27 19:55:36.267277"], ["updated_at", "2015-02-27 19:55:36.267277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.273149"], ["updated_at", "2015-02-27 19:55:36.273149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98add336-beba-11e4-8958-705681abff85' AND "clubhouse_memberships"."organization_id" = '98aeb468-beba-11e4-9f84-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98add336-beba-11e4-8958-705681abff85"], ["organization_id", "98aeb468-beba-11e4-9f84-705681abff85"], ["created_at", "2015-02-27 19:55:36.276762"], ["updated_at", "2015-02-27 19:55:36.276762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:55:36 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$/lIkrT4u5ptJelda6u17mOu2.vzLE4B9GRqgyfdphDB0BHAFvi7eK"], ["created_at", "2015-02-27 19:55:36.294636"], ["updated_at", "2015-02-27 19:55:36.294636"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:55:36.297331"], ["user_id", "98b202b2-beba-11e4-97b3-705681abff85"], ["created_at", "2015-02-27 19:55:36.298491"], ["updated_at", "2015-02-27 19:55:36.298491"], ["token", "xgFQhI_fm8Kkz594gm_0qRctUVUaovm53gEWmoxSm7A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.303751"], ["updated_at", "2015-02-27 19:55:36.303751"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98b202b2-beba-11e4-97b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '98b36e0e-beba-11e4-9053-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98b202b2-beba-11e4-97b3-705681abff85"], ["organization_id", "98b36e0e-beba-11e4-9053-705681abff85"], ["created_at", "2015-02-27 19:55:36.309513"], ["updated_at", "2015-02-27 19:55:36.309513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$5XQmkCU47cvRB1n57JDAmeEgjzcWKvvMarnYeRFLNR9utn0gVnyCu"], ["created_at", "2015-02-27 19:55:36.315110"], ["updated_at", "2015-02-27 19:55:36.315110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.318282"], ["updated_at", "2015-02-27 19:55:36.318282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98b51ccc-beba-11e4-a97c-705681abff85' AND "clubhouse_memberships"."organization_id" = '98b595c6-beba-11e4-ae3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98b51ccc-beba-11e4-a97c-705681abff85"], ["organization_id", "98b595c6-beba-11e4-ae3e-705681abff85"], ["created_at", "2015-02-27 19:55:36.321461"], ["updated_at", "2015-02-27 19:55:36.321461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:55:36 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:55:36.325985' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xgFQhI_fm8Kkz594gm_0qRctUVUaovm53gEWmoxSm7A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:55:36.327382"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:55:36.328349"], ["id", "98b2a7b2-beba-11e4-a484-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "98b202b2-beba-11e4-97b3-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "98b202b2-beba-11e4-97b3-705681abff85"]] Completed 200 OK in 23ms (Views: 5.0ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$USDVVBXArbx24D91HxXyLOGah1mm7kKogbRrGPmi/DPomu9pBlgCe"], ["created_at", "2015-02-27 19:55:36.361343"], ["updated_at", "2015-02-27 19:55:36.361343"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:55:36.363842"], ["user_id", "98bc2d28-beba-11e4-8fb7-705681abff85"], ["created_at", "2015-02-27 19:55:36.365023"], ["updated_at", "2015-02-27 19:55:36.365023"], ["token", "nUMEEYYV3XTgyEtkPzx6BaALCDfal4ZKD-p98euDHXY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.368633"], ["updated_at", "2015-02-27 19:55:36.368633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98bc2d28-beba-11e4-8fb7-705681abff85' AND "clubhouse_memberships"."organization_id" = '98bd44ce-beba-11e4-a8db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98bc2d28-beba-11e4-8fb7-705681abff85"], ["organization_id", "98bd44ce-beba-11e4-a8db-705681abff85"], ["created_at", "2015-02-27 19:55:36.372256"], ["updated_at", "2015-02-27 19:55:36.372256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 11:55:36 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$5KZLMQMQrvFB1hnRSKcuReC.Z/bIn4SSGcehlJAJGgr5xxNmHvcHC"], ["created_at", "2015-02-27 19:55:36.383828"], ["updated_at", "2015-02-27 19:55:36.383828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:55:36.385407"], ["user_id", "98bf9788-beba-11e4-8669-705681abff85"], ["created_at", "2015-02-27 19:55:36.386194"], ["updated_at", "2015-02-27 19:55:36.386194"], ["token", "xJ1yfzRCf6p4sQWi9cSH3KndT6WMGL74-lsP1XnwUDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.391141"], ["updated_at", "2015-02-27 19:55:36.391141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98bf9788-beba-11e4-8669-705681abff85' AND "clubhouse_memberships"."organization_id" = '98c0bc58-beba-11e4-84ef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98bf9788-beba-11e4-8669-705681abff85"], ["organization_id", "98c0bc58-beba-11e4-84ef-705681abff85"], ["created_at", "2015-02-27 19:55:36.395474"], ["updated_at", "2015-02-27 19:55:36.395474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-9" for 127.0.0.1 at 2015-02-27 11:55:36 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-9", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:55:36.401389' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xJ1yfzRCf6p4sQWi9cSH3KndT6WMGL74-lsP1XnwUDI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:55:36.403047"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:55:36.404002"], ["id", "98bffc14-beba-11e4-a376-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "98bf9788-beba-11e4-8669-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "98bf9788-beba-11e4-8669-705681abff85"], ["name", "org-9"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$4hHBAH8.ZEVqwYA5ccUTT.2jvZY/d44Zlm6dfsh.eucBl/vz68QJ2"], ["created_at", "2015-02-27 19:55:36.416044"], ["updated_at", "2015-02-27 19:55:36.416044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:55:36.417689"], ["user_id", "98c483d8-beba-11e4-9e2c-705681abff85"], ["created_at", "2015-02-27 19:55:36.418466"], ["updated_at", "2015-02-27 19:55:36.418466"], ["token", "eBVn_Yssy0rYaIMLGpdEDnUvi4Av_G9_Sdn-1PNME3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.422109"], ["updated_at", "2015-02-27 19:55:36.422109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98c483d8-beba-11e4-9e2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '98c56ca8-beba-11e4-87e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98c483d8-beba-11e4-9e2c-705681abff85"], ["organization_id", "98c56ca8-beba-11e4-87e3-705681abff85"], ["created_at", "2015-02-27 19:55:36.425442"], ["updated_at", "2015-02-27 19:55:36.425442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 11:55:36 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$6jyCRx0GwX9RP23DK2bqr.9sPesY.yrGoIyAK7LjT3/l8seIAlgh2"], ["created_at", "2015-02-27 19:55:36.438542"], ["updated_at", "2015-02-27 19:55:36.438542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:55:36.440257"], ["user_id", "98c7f414-beba-11e4-abf4-705681abff85"], ["created_at", "2015-02-27 19:55:36.441248"], ["updated_at", "2015-02-27 19:55:36.441248"], ["token", "L5yvPXHW0GdjgMzixdWQjtBG4WQ_ZSHjHdmvho_jKYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:55:36.445595"], ["updated_at", "2015-02-27 19:55:36.445595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98c7f414-beba-11e4-abf4-705681abff85' AND "clubhouse_memberships"."organization_id" = '98c9057a-beba-11e4-b2b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98c7f414-beba-11e4-abf4-705681abff85"], ["organization_id", "98c9057a-beba-11e4-b2b2-705681abff85"], ["created_at", "2015-02-27 19:55:36.449744"], ["updated_at", "2015-02-27 19:55:36.449744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/98c9057a-beba-11e4-b2b2-705681abff85" for 127.0.0.1 at 2015-02-27 11:55:36 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"98c9057a-beba-11e4-b2b2-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:55:36.455455' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "L5yvPXHW0GdjgMzixdWQjtBG4WQ_ZSHjHdmvho_jKYc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:55:36.457051"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:55:36.458063"], ["id", "98c86444-beba-11e4-aa43-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "98c7f414-beba-11e4-abf4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "98c7f414-beba-11e4-abf4-705681abff85"], ["id", "98c9057a-beba-11e4-b2b2-705681abff85"]] Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$eigOcgpoYzQ2/F91nCzCO.9DvmezgEYicMS7d6O8pvQp0Tk5lMRn."], ["created_at", "2015-02-27 19:56:02.952140"], ["updated_at", "2015-02-27 19:56:02.952140"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:02.962521"], ["user_id", "a895c16e-beba-11e4-88a4-705681abff85"], ["created_at", "2015-02-27 19:56:02.968670"], ["updated_at", "2015-02-27 19:56:02.968670"], ["token", "kxSHbhd4S0X7Z1r2TbrtkEhxfUZVz6hfYHvMrNNzbFE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:02.977522"], ["updated_at", "2015-02-27 19:56:02.977522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a895c16e-beba-11e4-88a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8998376-beba-11e4-b6b2-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a895c16e-beba-11e4-88a4-705681abff85"], ["organization_id", "a8998376-beba-11e4-b6b2-705681abff85"], ["created_at", "2015-02-27 19:56:02.988458"], ["updated_at", "2015-02-27 19:56:02.988458"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 11:56:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$rTbXss08f7Qh/ebzIEghJupfDu7UG30gtPkBRBHc6kEZDmDgL6YdW"], ["created_at", "2015-02-27 19:56:03.052763"], ["updated_at", "2015-02-27 19:56:03.052763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:03.054761"], ["user_id", "a8a4fc06-beba-11e4-8421-705681abff85"], ["created_at", "2015-02-27 19:56:03.055531"], ["updated_at", "2015-02-27 19:56:03.055531"], ["token", "HovwRFpMbVS8AdA4Mlw2k_Qh8KzkGnrTuFNNFibIQio"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:03.059368"], ["updated_at", "2015-02-27 19:56:03.059368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8a4fc06-beba-11e4-8421-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8a5f926-beba-11e4-ade4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a8a4fc06-beba-11e4-8421-705681abff85"], ["organization_id", "a8a5f926-beba-11e4-ade4-705681abff85"], ["created_at", "2015-02-27 19:56:03.062789"], ["updated_at", "2015-02-27 19:56:03.062789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-2" for 127.0.0.1 at 2015-02-27 11:56:03 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:56:03.068420' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HovwRFpMbVS8AdA4Mlw2k_Qh8KzkGnrTuFNNFibIQio"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:56:03.075773"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:56:03.076930"], ["id", "a8a56722-beba-11e4-a7bf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a8a4fc06-beba-11e4-8421-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "a8a4fc06-beba-11e4-8421-705681abff85"], ["name", "org-2"]] Completed 200 OK in 32ms (Views: 1.8ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$2r9Z6c/FQBPhSpcGZufedewLtdIy9C6pe9KvkJeb0pYBB0peKZw3m"], ["created_at", "2015-02-27 19:56:03.108210"], ["updated_at", "2015-02-27 19:56:03.108210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:03.109998"], ["user_id", "a8ad6d3c-beba-11e4-b6a4-705681abff85"], ["created_at", "2015-02-27 19:56:03.110782"], ["updated_at", "2015-02-27 19:56:03.110782"], ["token", "oNY6n69l-o7XtrXeK4CKWbbnM1RMULe49gGumDhUGYU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:03.114138"], ["updated_at", "2015-02-27 19:56:03.114138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8ad6d3c-beba-11e4-b6a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8ae504e-beba-11e4-bfb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a8ad6d3c-beba-11e4-b6a4-705681abff85"], ["organization_id", "a8ae504e-beba-11e4-bfb1-705681abff85"], ["created_at", "2015-02-27 19:56:03.117494"], ["updated_at", "2015-02-27 19:56:03.117494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 11:56:03 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (5.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$66BnNdm1HUBDSaA0g/hgjuY4B.osUr8vTyjoONS1EC/9NOfZrZnAm"], ["created_at", "2015-02-27 19:56:03.130309"], ["updated_at", "2015-02-27 19:56:03.130309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:03.137462"], ["user_id", "a8b0d012-beba-11e4-a765-705681abff85"], ["created_at", "2015-02-27 19:56:03.138533"], ["updated_at", "2015-02-27 19:56:03.138533"], ["token", "E0Natj-1QsLSt3E0T8Hbj-dDfWSh2eJ6vxeIahG4sfg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:03.142510"], ["updated_at", "2015-02-27 19:56:03.142510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8b0d012-beba-11e4-a765-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8b2a7d4-beba-11e4-afdf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a8b0d012-beba-11e4-a765-705681abff85"], ["organization_id", "a8b2a7d4-beba-11e4-afdf-705681abff85"], ["created_at", "2015-02-27 19:56:03.146293"], ["updated_at", "2015-02-27 19:56:03.146293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a8b2a7d4-beba-11e4-afdf-705681abff85" for 127.0.0.1 at 2015-02-27 11:56:03 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"a8b2a7d4-beba-11e4-afdf-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:56:03.151095' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "E0Natj-1QsLSt3E0T8Hbj-dDfWSh2eJ6vxeIahG4sfg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:56:03.152534"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:56:03.153521"], ["id", "a8b222a0-beba-11e4-8154-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a8b0d012-beba-11e4-a765-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "a8b0d012-beba-11e4-a765-705681abff85"], ["id", "a8b2a7d4-beba-11e4-afdf-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$LSPwlCFrjzke6qL6IA0Xye5t/RG4HwIGZli6UHxFO2rkhvrmGXbCq"], ["created_at", "2015-02-27 19:56:03.164418"], ["updated_at", "2015-02-27 19:56:03.164418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:03.166173"], ["user_id", "a8b5ff42-beba-11e4-b203-705681abff85"], ["created_at", "2015-02-27 19:56:03.167059"], ["updated_at", "2015-02-27 19:56:03.167059"], ["token", "yowlK8EX5S6CajxV9gbK-2oAk3Ae3hKEtsGw07jmf8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:03.170435"], ["updated_at", "2015-02-27 19:56:03.170435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8b5ff42-beba-11e4-b203-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8b6e588-beba-11e4-a0fc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a8b5ff42-beba-11e4-b203-705681abff85"], ["organization_id", "a8b6e588-beba-11e4-a0fc-705681abff85"], ["created_at", "2015-02-27 19:56:03.173653"], ["updated_at", "2015-02-27 19:56:03.173653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$33/pz1oS8sS0hg9UT8//s.omCIhYKxich9aggjjjHv2TAExfrSXm6"], ["created_at", "2015-02-27 19:56:03.178142"], ["updated_at", "2015-02-27 19:56:03.178142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:03.181411"], ["updated_at", "2015-02-27 19:56:03.181411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8b813ea-beba-11e4-a24f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8b894fa-beba-11e4-b433-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a8b813ea-beba-11e4-a24f-705681abff85"], ["organization_id", "a8b894fa-beba-11e4-b433-705681abff85"], ["created_at", "2015-02-27 19:56:03.185312"], ["updated_at", "2015-02-27 19:56:03.185312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:56:03 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$1CJIFYGI/g4SVmZKPwbko./ZoAC2en7gCR8s/BMaL.31h1YnZa7r6"], ["created_at", "2015-02-27 19:56:03.200275"], ["updated_at", "2015-02-27 19:56:03.200275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:03.201992"], ["user_id", "a8bb7724-beba-11e4-8a0a-705681abff85"], ["created_at", "2015-02-27 19:56:03.202745"], ["updated_at", "2015-02-27 19:56:03.202745"], ["token", "4SHM_sqiRswvG4Hsr9oo38tM1puG1BrIOIEfnylp2iU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:03.206580"], ["updated_at", "2015-02-27 19:56:03.206580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8bb7724-beba-11e4-8a0a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8bc6e22-beba-11e4-ab62-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a8bb7724-beba-11e4-8a0a-705681abff85"], ["organization_id", "a8bc6e22-beba-11e4-ab62-705681abff85"], ["created_at", "2015-02-27 19:56:03.209959"], ["updated_at", "2015-02-27 19:56:03.209959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$V7DytSqkEpPKa2kSz/spb.OO5fyVcFiY8trgoGKHmXNmS0JepdppS"], ["created_at", "2015-02-27 19:56:03.214530"], ["updated_at", "2015-02-27 19:56:03.214530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:03.217757"], ["updated_at", "2015-02-27 19:56:03.217757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8bda260-beba-11e4-b1d5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8be20f0-beba-11e4-b231-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a8bda260-beba-11e4-b1d5-705681abff85"], ["organization_id", "a8be20f0-beba-11e4-b231-705681abff85"], ["created_at", "2015-02-27 19:56:03.221197"], ["updated_at", "2015-02-27 19:56:03.221197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:56:03 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:56:03.225978' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4SHM_sqiRswvG4Hsr9oo38tM1puG1BrIOIEfnylp2iU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:56:03.227358"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:56:03.228267"], ["id", "a8bbdb9c-beba-11e4-a69c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a8bb7724-beba-11e4-8a0a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a8bb7724-beba-11e4-8a0a-705681abff85"]] Completed 200 OK in 8ms (Views: 2.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$rNfdjDbX.nsREu/yiv5REuKm7QyHaQTDIDssGmRPPHDfng7n71S2W"], ["created_at", "2015-02-27 19:56:03.240005"], ["updated_at", "2015-02-27 19:56:03.240005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:03.241734"], ["user_id", "a8c1857e-beba-11e4-839a-705681abff85"], ["created_at", "2015-02-27 19:56:03.242526"], ["updated_at", "2015-02-27 19:56:03.242526"], ["token", "p78uwU3iZq7g10vouacN_2sWYBxRl4LuP7IqSJ4Ae9A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:03.245996"], ["updated_at", "2015-02-27 19:56:03.245996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8c1857e-beba-11e4-839a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8c270c4-beba-11e4-af3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a8c1857e-beba-11e4-839a-705681abff85"], ["organization_id", "a8c270c4-beba-11e4-af3a-705681abff85"], ["created_at", "2015-02-27 19:56:03.249652"], ["updated_at", "2015-02-27 19:56:03.249652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:56:03 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$bXGbnah71XbpdrrMOg2vmOpeXjlqwKUWD4GnocyoIskaz/hawmEwW"], ["created_at", "2015-02-27 19:56:03.263942"], ["updated_at", "2015-02-27 19:56:03.263942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:03.268007"], ["user_id", "a8c52dc8-beba-11e4-8a8c-705681abff85"], ["created_at", "2015-02-27 19:56:03.268801"], ["updated_at", "2015-02-27 19:56:03.268801"], ["token", "jsREJK0GyhtbKstZV6TdnOathJVk7LfP2lr50eV6C9I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:03.272950"], ["updated_at", "2015-02-27 19:56:03.272950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8c52dc8-beba-11e4-8a8c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8c68d4e-beba-11e4-82fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a8c52dc8-beba-11e4-8a8c-705681abff85"], ["organization_id", "a8c68d4e-beba-11e4-82fd-705681abff85"], ["created_at", "2015-02-27 19:56:03.276505"], ["updated_at", "2015-02-27 19:56:03.276505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:56:03 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:56:03.281326' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jsREJK0GyhtbKstZV6TdnOathJVk7LfP2lr50eV6C9I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:56:03.282861"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:56:03.283851"], ["id", "a8c5f794-beba-11e4-ad96-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$SwZKRgUDXNisXWFZs0DcwOnmzK9kdK4elAdaid/qZaLlXZvGE.tc6"], ["created_at", "2015-02-27 19:56:03.293446"], ["updated_at", "2015-02-27 19:56:03.293446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:03.295195"], ["user_id", "a8c9b12c-beba-11e4-8098-705681abff85"], ["created_at", "2015-02-27 19:56:03.295961"], ["updated_at", "2015-02-27 19:56:03.295961"], ["token", "Othg7-N83HiTlWAjiwIWhS2eLQ8UbjUbyFrFzzHkUlw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:03.299297"], ["updated_at", "2015-02-27 19:56:03.299297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8c9b12c-beba-11e4-8098-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a8ca8f66-beba-11e4-8002-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a8c9b12c-beba-11e4-8098-705681abff85"], ["organization_id", "a8ca8f66-beba-11e4-8002-705681abff85"], ["created_at", "2015-02-27 19:56:03.302516"], ["updated_at", "2015-02-27 19:56:03.302516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:56:03 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "organization"=>{"name"=>"name"}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:56:03.309373' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Othg7-N83HiTlWAjiwIWhS2eLQ8UbjUbyFrFzzHkUlw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:56:03.310792"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:56:03.312087"], ["id", "a8ca1428-beba-11e4-acff-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a8c9b12c-beba-11e4-8098-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (2.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (13.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ZW6OHQhU8U4GlKs83PEjPeK.imF4vyu99iZkVeUY8LuWnFH80xTSG"], ["created_at", "2015-02-27 19:56:46.137457"], ["updated_at", "2015-02-27 19:56:46.137457"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:46.172687"], ["user_id", "c2543c84-beba-11e4-8566-705681abff85"], ["created_at", "2015-02-27 19:56:46.186590"], ["updated_at", "2015-02-27 19:56:46.186590"], ["token", "pW7DfiTB1FeIaD5T24mnlM4XsYGBGhG36k2AliTp4VU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:46.213770"], ["updated_at", "2015-02-27 19:56:46.213770"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2543c84-beba-11e4-8566-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c25ef4a8-beba-11e4-b2a4-705681abff85') LIMIT 1 SQL (13.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c2543c84-beba-11e4-8566-705681abff85"], ["organization_id", "c25ef4a8-beba-11e4-b2a4-705681abff85"], ["created_at", "2015-02-27 19:56:46.235332"], ["updated_at", "2015-02-27 19:56:46.235332"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c25ef4a8-beba-11e4-b2a4-705681abff85" for 127.0.0.1 at 2015-02-27 11:56:46 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"c25ef4a8-beba-11e4-b2a4-705681abff85", "organization"=>{}} Pollett::Session Load (25.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:56:46.568659' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pW7DfiTB1FeIaD5T24mnlM4XsYGBGhG36k2AliTp4VU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:56:46.627813"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:56:46.635477"], ["id", "c25ae8b8-beba-11e4-a397-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c2543c84-beba-11e4-8566-705681abff85"]] Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "c2543c84-beba-11e4-8566-705681abff85"], ["id", "c25ef4a8-beba-11e4-b2a4-705681abff85"]] Completed 200 OK in 111ms (Views: 5.0ms | ActiveRecord: 27.5ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$MAGkqpcohStHBlJ8i3pxe.zdn5yDELReXiCZ68RmeJjYv2bM4JS2C"], ["created_at", "2015-02-27 19:56:46.695426"], ["updated_at", "2015-02-27 19:56:46.695426"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:46.698541"], ["user_id", "c2a86656-beba-11e4-8670-705681abff85"], ["created_at", "2015-02-27 19:56:46.700098"], ["updated_at", "2015-02-27 19:56:46.700098"], ["token", "HaJXEs0cIsRDzSPjfvRqJhKdzeEO9VR2AqZe-zm_f4Q"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (219.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:46.707018"], ["updated_at", "2015-02-27 19:56:46.707018"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2a86656-beba-11e4-8670-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c2aa1e74-beba-11e4-9f1c-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c2a86656-beba-11e4-8670-705681abff85"], ["organization_id", "c2aa1e74-beba-11e4-9f1c-705681abff85"], ["created_at", "2015-02-27 19:56:46.985204"], ["updated_at", "2015-02-27 19:56:46.985204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 11:56:46 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$YRNUKNxBuevrgFgJfJ7Y8ORpHylfkQf0qrij4l9ZV91AjXG8jCGsi"], ["created_at", "2015-02-27 19:56:47.016211"], ["updated_at", "2015-02-27 19:56:47.016211"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:47.019331"], ["user_id", "c2d956da-beba-11e4-806e-705681abff85"], ["created_at", "2015-02-27 19:56:47.021649"], ["updated_at", "2015-02-27 19:56:47.021649"], ["token", "mtDdgG8UQ1CfvkTeDZ3B0gZdIzk9-eDfDbwSoMHiWlA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:47.030424"], ["updated_at", "2015-02-27 19:56:47.030424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2d956da-beba-11e4-806e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c2db7da2-beba-11e4-9ac4-705681abff85') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c2d956da-beba-11e4-806e-705681abff85"], ["organization_id", "c2db7da2-beba-11e4-9ac4-705681abff85"], ["created_at", "2015-02-27 19:56:47.046456"], ["updated_at", "2015-02-27 19:56:47.046456"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-3" for 127.0.0.1 at 2015-02-27 11:56:47 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-3", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:56:47.068230' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mtDdgG8UQ1CfvkTeDZ3B0gZdIzk9-eDfDbwSoMHiWlA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:56:47.071545"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:56:47.075658"], ["id", "c2da3f50-beba-11e4-a5a8-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c2d956da-beba-11e4-806e-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "c2d956da-beba-11e4-806e-705681abff85"], ["name", "org-3"]] Completed 200 OK in 19ms (Views: 1.2ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$qq/ofiUFEdj7Eu/wKpUxbO1KJhGhwl60SgldKkANzqVr0LHPga2hu"], ["created_at", "2015-02-27 19:56:47.099597"], ["updated_at", "2015-02-27 19:56:47.099597"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:47.102883"], ["user_id", "c2e618fc-beba-11e4-ab7f-705681abff85"], ["created_at", "2015-02-27 19:56:47.106092"], ["updated_at", "2015-02-27 19:56:47.106092"], ["token", "BUkqbjjCambgDJMpBdvT6iDNUJQglgssetM2nnPu8fc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:47.114330"], ["updated_at", "2015-02-27 19:56:47.114330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2e618fc-beba-11e4-ab7f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c2e84fd2-beba-11e4-b0c1-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c2e618fc-beba-11e4-ab7f-705681abff85"], ["organization_id", "c2e84fd2-beba-11e4-b0c1-705681abff85"], ["created_at", "2015-02-27 19:56:47.119720"], ["updated_at", "2015-02-27 19:56:47.119720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 11:56:47 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 6ms (Views: 6.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$L8rVEHrMaGAAUhtENeBO5ugw7iIw/fS3dsXrGjhAFcWhB3irnGcaK"], ["created_at", "2015-02-27 19:56:47.146004"], ["updated_at", "2015-02-27 19:56:47.146004"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:47.149771"], ["user_id", "c2ed25ca-beba-11e4-b56f-705681abff85"], ["created_at", "2015-02-27 19:56:47.151456"], ["updated_at", "2015-02-27 19:56:47.151456"], ["token", "9ZnNjPnnPuLhaJDd4wBbid5_4hLAiAfYf2HvcfSPehQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:47.158113"], ["updated_at", "2015-02-27 19:56:47.158113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2ed25ca-beba-11e4-b56f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c2eef9a4-beba-11e4-97dc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c2ed25ca-beba-11e4-b56f-705681abff85"], ["organization_id", "c2eef9a4-beba-11e4-97dc-705681abff85"], ["created_at", "2015-02-27 19:56:47.163813"], ["updated_at", "2015-02-27 19:56:47.163813"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:56:47 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$xEvx6O91bfb0ULyUNTjyjeO16SkWdQDLblXKQbcOF8awOxLp7nfzu"], ["created_at", "2015-02-27 19:56:47.184397"], ["updated_at", "2015-02-27 19:56:47.184397"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:47.187300"], ["user_id", "c2f2f9d2-beba-11e4-8a6c-705681abff85"], ["created_at", "2015-02-27 19:56:47.190442"], ["updated_at", "2015-02-27 19:56:47.190442"], ["token", "JVrT44ieDjpyMuL_NbEPLBi9oKLe26Jzl-3kAMVRlt8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:47.198462"], ["updated_at", "2015-02-27 19:56:47.198462"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2f2f9d2-beba-11e4-8a6c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c2f5188e-beba-11e4-8604-705681abff85') LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c2f2f9d2-beba-11e4-8a6c-705681abff85"], ["organization_id", "c2f5188e-beba-11e4-8604-705681abff85"], ["created_at", "2015-02-27 19:56:47.204586"], ["updated_at", "2015-02-27 19:56:47.204586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:56:47 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "organization"=>{"name"=>"name"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:56:47.217290' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JVrT44ieDjpyMuL_NbEPLBi9oKLe26Jzl-3kAMVRlt8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:56:47.218891"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:56:47.220283"], ["id", "c2f42b72-beba-11e4-834c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c2f2f9d2-beba-11e4-8a6c-705681abff85"]] Completed 201 Created in 15ms (Views: 4.4ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$dpBnHb4g48XY8bgUJ1SuEeVimeoUvQGGfs/Wu2OFGEUFHFBU3pf.6"], ["created_at", "2015-02-27 19:56:47.242194"], ["updated_at", "2015-02-27 19:56:47.242194"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:47.246274"], ["user_id", "c2fbebc8-beba-11e4-916d-705681abff85"], ["created_at", "2015-02-27 19:56:47.248112"], ["updated_at", "2015-02-27 19:56:47.248112"], ["token", "4oJYQ0MAJdFc0S5KUUTietcARojRFBnOXri8BSPzztA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:47.256085"], ["updated_at", "2015-02-27 19:56:47.256085"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2fbebc8-beba-11e4-916d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c2fe51ba-beba-11e4-b31b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c2fbebc8-beba-11e4-916d-705681abff85"], ["organization_id", "c2fe51ba-beba-11e4-b31b-705681abff85"], ["created_at", "2015-02-27 19:56:47.265722"], ["updated_at", "2015-02-27 19:56:47.265722"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 11:56:47 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (1.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:56:47.275338' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4oJYQ0MAJdFc0S5KUUTietcARojRFBnOXri8BSPzztA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:56:47.279213"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:56:47.281904"], ["id", "c2fcc41c-beba-11e4-a944-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c2fbebc8-beba-11e4-916d-705681abff85"]] Completed 201 Created in 14ms (Views: 2.5ms | ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$r/nkmr66/ys/afI/ceJJP.VTLhcR/doWnoSUxKywKYYwqjhKXA8RC"], ["created_at", "2015-02-27 19:56:47.298323"], ["updated_at", "2015-02-27 19:56:47.298323"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:47.301339"], ["user_id", "c30460aa-beba-11e4-97dd-705681abff85"], ["created_at", "2015-02-27 19:56:47.302828"], ["updated_at", "2015-02-27 19:56:47.302828"], ["token", "F2G0-XYA0JmJtXJvPjWt6lzviHKCbUlXl1JPeX5aB6g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:47.308852"], ["updated_at", "2015-02-27 19:56:47.308852"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c30460aa-beba-11e4-97dd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c305f578-beba-11e4-8297-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c30460aa-beba-11e4-97dd-705681abff85"], ["organization_id", "c305f578-beba-11e4-8297-705681abff85"], ["created_at", "2015-02-27 19:56:47.314641"], ["updated_at", "2015-02-27 19:56:47.314641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$dQnyY.L.p2dv1TujbViyxef/XSgeKRztduiGkCHrmmoHDMMRAYYFK"], ["created_at", "2015-02-27 19:56:47.320478"], ["updated_at", "2015-02-27 19:56:47.320478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:47.325302"], ["updated_at", "2015-02-27 19:56:47.325302"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c307ad78-beba-11e4-9895-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c30883d8-beba-11e4-8596-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c307ad78-beba-11e4-9895-705681abff85"], ["organization_id", "c30883d8-beba-11e4-8596-705681abff85"], ["created_at", "2015-02-27 19:56:47.333029"], ["updated_at", "2015-02-27 19:56:47.333029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:56:47 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 19:56:47.340378' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "F2G0-XYA0JmJtXJvPjWt6lzviHKCbUlXl1JPeX5aB6g"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 19:56:47.342756"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 19:56:47.345007"], ["id", "c3051c5c-beba-11e4-b5fd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c30460aa-beba-11e4-97dd-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c30460aa-beba-11e4-97dd-705681abff85"]] Completed 200 OK in 13ms (Views: 3.8ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$CVpTBTmbIHgYXvPQgBXtMO2Ki3v4YSkKsnkAHBzpLEQ9A96uz40yu"], ["created_at", "2015-02-27 19:56:47.361812"], ["updated_at", "2015-02-27 19:56:47.361812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 19:56:47.364067"], ["user_id", "c30e018c-beba-11e4-a88c-705681abff85"], ["created_at", "2015-02-27 19:56:47.365319"], ["updated_at", "2015-02-27 19:56:47.365319"], ["token", "xQYi5DtXBF-JriASZNJt8hzV_SReXRQtBVfUSDWxUqE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:47.371726"], ["updated_at", "2015-02-27 19:56:47.371726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c30e018c-beba-11e4-a88c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c30faa1e-beba-11e4-ae80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c30e018c-beba-11e4-a88c-705681abff85"], ["organization_id", "c30faa1e-beba-11e4-ae80-705681abff85"], ["created_at", "2015-02-27 19:56:47.377540"], ["updated_at", "2015-02-27 19:56:47.377540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$/eBqSfdiRvXkL5WegxUAL.LPgsrxjKWVOUAHyVsqBFs8gSOPnWoMi"], ["created_at", "2015-02-27 19:56:47.384269"], ["updated_at", "2015-02-27 19:56:47.384269"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 19:56:47.389148"], ["updated_at", "2015-02-27 19:56:47.389148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c311783a-beba-11e4-bfe1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c31235b8-beba-11e4-96a8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c311783a-beba-11e4-bfe1-705681abff85"], ["organization_id", "c31235b8-beba-11e4-96a8-705681abff85"], ["created_at", "2015-02-27 19:56:47.395876"], ["updated_at", "2015-02-27 19:56:47.395876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 11:56:47 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (13.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$e8UanDgBMdmL6u9FLeUYpehjJn1hoN1aAtvEj8PD84gjT.xVm5ybG"], ["created_at", "2015-02-27 20:53:26.223871"], ["updated_at", "2015-02-27 20:53:26.223871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (21.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:53:26.263453"], ["user_id", "acf052bc-bec2-11e4-95a7-705681abff85"], ["created_at", "2015-02-27 20:53:26.296097"], ["updated_at", "2015-02-27 20:53:26.296097"], ["token", "6wQabZ0MImdQl6KOn1RCVdhoT5ucCJHdPyORlIoxYJA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.326906"], ["updated_at", "2015-02-27 20:53:26.326906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acf052bc-bec2-11e4-95a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'acfefd6c-bec2-11e4-bd1f-705681abff85') LIMIT 1 SQL (4.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "acf052bc-bec2-11e4-95a7-705681abff85"], ["organization_id", "acfefd6c-bec2-11e4-bd1f-705681abff85"], ["created_at", "2015-02-27 20:53:26.366627"], ["updated_at", "2015-02-27 20:53:26.366627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 12:53:26 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$3DXo0ekucM8p9HJmYPl7/.TK7OLOPq1FX1MskdwA3b7ZJ8DP3l/RO"], ["created_at", "2015-02-27 20:53:26.451654"], ["updated_at", "2015-02-27 20:53:26.451654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:53:26.453303"], ["user_id", "ad11ed46-bec2-11e4-b86f-705681abff85"], ["created_at", "2015-02-27 20:53:26.454073"], ["updated_at", "2015-02-27 20:53:26.454073"], ["token", "B3R7a16R7Pk2JfqO8J2D5NYSGbGlUpctyfdbPN5-hRw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.457471"], ["updated_at", "2015-02-27 20:53:26.457471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad11ed46-bec2-11e4-b86f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad12ccf2-bec2-11e4-a02d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad11ed46-bec2-11e4-b86f-705681abff85"], ["organization_id", "ad12ccf2-bec2-11e4-a02d-705681abff85"], ["created_at", "2015-02-27 20:53:26.460620"], ["updated_at", "2015-02-27 20:53:26.460620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/ad12ccf2-bec2-11e4-a02d-705681abff85" for 127.0.0.1 at 2015-02-27 12:53:26 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"ad12ccf2-bec2-11e4-a02d-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:53:26.465497' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B3R7a16R7Pk2JfqO8J2D5NYSGbGlUpctyfdbPN5-hRw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:53:26.473472"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:53:26.474777"], ["id", "ad125484-bec2-11e4-858f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad11ed46-bec2-11e4-b86f-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "ad11ed46-bec2-11e4-b86f-705681abff85"], ["id", "ad12ccf2-bec2-11e4-a02d-705681abff85"]] Completed 200 OK in 33ms (Views: 1.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$S85PAa789bnfK7/XNrdZLeBHcmEWApl1lwVIi36kPKfLJCDIQuLJq"], ["created_at", "2015-02-27 20:53:26.505852"], ["updated_at", "2015-02-27 20:53:26.505852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:53:26.507501"], ["user_id", "ad1a32c6-bec2-11e4-9652-705681abff85"], ["created_at", "2015-02-27 20:53:26.508257"], ["updated_at", "2015-02-27 20:53:26.508257"], ["token", "PfBIYF2zmmMFCoJzy-RzijPQ1UhwFldfCnGpmnOqKQw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.511531"], ["updated_at", "2015-02-27 20:53:26.511531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad1a32c6-bec2-11e4-9652-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad1b10a6-bec2-11e4-81a1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad1a32c6-bec2-11e4-9652-705681abff85"], ["organization_id", "ad1b10a6-bec2-11e4-81a1-705681abff85"], ["created_at", "2015-02-27 20:53:26.515015"], ["updated_at", "2015-02-27 20:53:26.515015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$tyvqRqjdCzC1v4TduGAqjObr.HCrGmSQlRJQumldBph8KQma69Rsm"], ["created_at", "2015-02-27 20:53:26.519505"], ["updated_at", "2015-02-27 20:53:26.519505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.522435"], ["updated_at", "2015-02-27 20:53:26.522435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad1c457a-bec2-11e4-8ff3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad1cb62c-bec2-11e4-884d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad1c457a-bec2-11e4-8ff3-705681abff85"], ["organization_id", "ad1cb62c-bec2-11e4-884d-705681abff85"], ["created_at", "2015-02-27 20:53:26.525754"], ["updated_at", "2015-02-27 20:53:26.525754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 12:53:26 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$AcnDB1/rVExCBP8G8rLPAeT9gsmy/bKmY0Q2ZicvrkX9Ckcazhci2"], ["created_at", "2015-02-27 20:53:26.538464"], ["updated_at", "2015-02-27 20:53:26.538464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:53:26.540110"], ["user_id", "ad1f2d08-bec2-11e4-9b84-705681abff85"], ["created_at", "2015-02-27 20:53:26.540928"], ["updated_at", "2015-02-27 20:53:26.540928"], ["token", "kxd-qo9nAyGfI2EOqGgnrlotWG99yBcG1XZiClsYOyM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.544064"], ["updated_at", "2015-02-27 20:53:26.544064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad1f2d08-bec2-11e4-9b84-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad200412-bec2-11e4-9049-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad1f2d08-bec2-11e4-9b84-705681abff85"], ["organization_id", "ad200412-bec2-11e4-9049-705681abff85"], ["created_at", "2015-02-27 20:53:26.548161"], ["updated_at", "2015-02-27 20:53:26.548161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$wddjUUtT5P4nZOaEq4mQ3OgvHC4vgXNX8U8QhazVUGZ5vjyNs9sZS"], ["created_at", "2015-02-27 20:53:26.552778"], ["updated_at", "2015-02-27 20:53:26.552778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.555774"], ["updated_at", "2015-02-27 20:53:26.555774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad2158b2-bec2-11e4-85b1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad21cd9c-bec2-11e4-b208-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad2158b2-bec2-11e4-85b1-705681abff85"], ["organization_id", "ad21cd9c-bec2-11e4-b208-705681abff85"], ["created_at", "2015-02-27 20:53:26.558884"], ["updated_at", "2015-02-27 20:53:26.558884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 12:53:26 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:53:26.563591' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kxd-qo9nAyGfI2EOqGgnrlotWG99yBcG1XZiClsYOyM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:53:26.565015"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:53:26.566013"], ["id", "ad1f9194-bec2-11e4-8f39-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad1f2d08-bec2-11e4-9b84-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "ad1f2d08-bec2-11e4-9b84-705681abff85"]] Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$l89A.A0MCahBf8oIoLuZo.3fEMwsw99ZOVsavEGArUPw9IW5ulPoS"], ["created_at", "2015-02-27 20:53:26.579946"], ["updated_at", "2015-02-27 20:53:26.579946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:53:26.581499"], ["user_id", "ad258036-bec2-11e4-b1e4-705681abff85"], ["created_at", "2015-02-27 20:53:26.582255"], ["updated_at", "2015-02-27 20:53:26.582255"], ["token", "Bn-caNGsatIYmR8LFUrEnqHDE58foyFU_KEROMdPwgE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.585377"], ["updated_at", "2015-02-27 20:53:26.585377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad258036-bec2-11e4-b1e4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad265218-bec2-11e4-81f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad258036-bec2-11e4-b1e4-705681abff85"], ["organization_id", "ad265218-bec2-11e4-81f5-705681abff85"], ["created_at", "2015-02-27 20:53:26.589149"], ["updated_at", "2015-02-27 20:53:26.589149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 12:53:26 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Y8SOtfkVfb0PH.ymL2VV4uZqqpEy10o4zjLJDRUNHLfkQg6h.Tw9."], ["created_at", "2015-02-27 20:53:26.601731"], ["updated_at", "2015-02-27 20:53:26.601731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:53:26.603347"], ["user_id", "ad28d254-bec2-11e4-8c12-705681abff85"], ["created_at", "2015-02-27 20:53:26.604094"], ["updated_at", "2015-02-27 20:53:26.604094"], ["token", "iQDfigdRL4RpZ6THFfmSZClOuqbJFuy5fT89gL4t8aw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.608306"], ["updated_at", "2015-02-27 20:53:26.608306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad28d254-bec2-11e4-8c12-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad29ec02-bec2-11e4-87ba-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad28d254-bec2-11e4-8c12-705681abff85"], ["organization_id", "ad29ec02-bec2-11e4-87ba-705681abff85"], ["created_at", "2015-02-27 20:53:26.613982"], ["updated_at", "2015-02-27 20:53:26.613982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-8" for 127.0.0.1 at 2015-02-27 12:53:26 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-8", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:53:26.619576' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iQDfigdRL4RpZ6THFfmSZClOuqbJFuy5fT89gL4t8aw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:53:26.620916"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:53:26.621797"], ["id", "ad2932ee-bec2-11e4-b6e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad28d254-bec2-11e4-8c12-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "ad28d254-bec2-11e4-8c12-705681abff85"], ["name", "org-8"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Kwetp.kmb0qUAoHUoDKMYO.7ZcVIUJUVG7fc/gppwZZkqr1pJMbp2"], ["created_at", "2015-02-27 20:53:26.632560"], ["updated_at", "2015-02-27 20:53:26.632560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:53:26.634791"], ["user_id", "ad2d8c90-bec2-11e4-90c1-705681abff85"], ["created_at", "2015-02-27 20:53:26.635678"], ["updated_at", "2015-02-27 20:53:26.635678"], ["token", "EyCQEG-MvTqz-cL5T9IsFCGdli54b5O13uGFUIejx5A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.639129"], ["updated_at", "2015-02-27 20:53:26.639129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad2d8c90-bec2-11e4-90c1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad2e8460-bec2-11e4-b5d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad2d8c90-bec2-11e4-90c1-705681abff85"], ["organization_id", "ad2e8460-bec2-11e4-b5d3-705681abff85"], ["created_at", "2015-02-27 20:53:26.642280"], ["updated_at", "2015-02-27 20:53:26.642280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:53:26 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (3.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$IPLZkroixZTf7X7GvfBCuelV1J1vigUBnV9xpPOfA3j.zkhk8iDle"], ["created_at", "2015-02-27 20:53:26.654144"], ["updated_at", "2015-02-27 20:53:26.654144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:53:26.659415"], ["user_id", "ad30d260-bec2-11e4-a884-705681abff85"], ["created_at", "2015-02-27 20:53:26.660197"], ["updated_at", "2015-02-27 20:53:26.660197"], ["token", "uDDBnYqqCDTMCe7Md94xFcWIC42eejcFMik-QYyPqII"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.664405"], ["updated_at", "2015-02-27 20:53:26.664405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad30d260-bec2-11e4-a884-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad3266fc-bec2-11e4-a1f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad30d260-bec2-11e4-a884-705681abff85"], ["organization_id", "ad3266fc-bec2-11e4-a1f0-705681abff85"], ["created_at", "2015-02-27 20:53:26.667912"], ["updated_at", "2015-02-27 20:53:26.667912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:53:26 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:53:26.673526' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uDDBnYqqCDTMCe7Md94xFcWIC42eejcFMik-QYyPqII"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:53:26.675024"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:53:26.676067"], ["id", "ad31d3a4-bec2-11e4-b5a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad30d260-bec2-11e4-a884-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.683056"], ["updated_at", "2015-02-27 20:53:26.683056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ad354156-bec2-11e4-92fb-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad30d260-bec2-11e4-a884-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad354156-bec2-11e4-92fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad30d260-bec2-11e4-a884-705681abff85"], ["admin", "t"], ["organization_id", "ad354156-bec2-11e4-92fb-705681abff85"], ["created_at", "2015-02-27 20:53:26.689339"], ["updated_at", "2015-02-27 20:53:26.689339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 0.5ms | ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$IiGWw.XGK4b9t5Hgr77fZe7/uLk.ofYprR4kdzIAT47ac0CIahS7e"], ["created_at", "2015-02-27 20:53:26.697206"], ["updated_at", "2015-02-27 20:53:26.697206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:53:26.698893"], ["user_id", "ad376508-bec2-11e4-9c4b-705681abff85"], ["created_at", "2015-02-27 20:53:26.699661"], ["updated_at", "2015-02-27 20:53:26.699661"], ["token", "eFG_VKA_E1CT_7MGjYY6liJE326DjUm4wGHgVwzy7_4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:53:26.702893"], ["updated_at", "2015-02-27 20:53:26.702893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad376508-bec2-11e4-9c4b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad383eba-bec2-11e4-977d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad376508-bec2-11e4-9c4b-705681abff85"], ["organization_id", "ad383eba-bec2-11e4-977d-705681abff85"], ["created_at", "2015-02-27 20:53:26.706232"], ["updated_at", "2015-02-27 20:53:26.706232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:53:26 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "organization"=>{"name"=>"name"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:53:26.712800' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eFG_VKA_E1CT_7MGjYY6liJE326DjUm4wGHgVwzy7_4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:53:26.714286"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:53:26.715266"], ["id", "ad37cafc-bec2-11e4-b1aa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad376508-bec2-11e4-9c4b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (9.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$8pLNabwGk4lR2JOMpMC2Jug3nUNYyyldEreNG2FXOejCKTqQSvWmO"], ["created_at", "2015-02-27 20:56:57.855947"], ["updated_at", "2015-02-27 20:56:57.855947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:56:57.876716"], ["user_id", "2b13e5f0-bec3-11e4-a6a1-705681abff85"], ["created_at", "2015-02-27 20:56:57.883504"], ["updated_at", "2015-02-27 20:56:57.883504"], ["token", "FBssTHL2Zh_ih4QVytoyfBrIy2qARnQAr8jGfBpMpCI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (11.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:57.895966"], ["updated_at", "2015-02-27 20:56:57.895966"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b13e5f0-bec3-11e4-a6a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b19dff0-bec3-11e4-bfa6-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b13e5f0-bec3-11e4-a6a1-705681abff85"], ["organization_id", "2b19dff0-bec3-11e4-bfa6-705681abff85"], ["created_at", "2015-02-27 20:56:57.920965"], ["updated_at", "2015-02-27 20:56:57.920965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Hh0QqBGaVr8ugyf3JK7yk.eqm0Co71lc/HgJnL0aZupo11nx1d1IW"], ["created_at", "2015-02-27 20:56:57.927485"], ["updated_at", "2015-02-27 20:56:57.927485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:57.932817"], ["updated_at", "2015-02-27 20:56:57.932817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b1e97c0-bec3-11e4-bf5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b1f6c72-bec3-11e4-818a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b1e97c0-bec3-11e4-bf5d-705681abff85"], ["organization_id", "2b1f6c72-bec3-11e4-818a-705681abff85"], ["created_at", "2015-02-27 20:56:57.936971"], ["updated_at", "2015-02-27 20:56:57.936971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 12:56:57 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$5vbq91CMEucD8fQbhEoUAeI.oRtSSByEb2cSZVee5JXG3Jo4e3Eaq"], ["created_at", "2015-02-27 20:56:58.146382"], ["updated_at", "2015-02-27 20:56:58.146382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:56:58.148274"], ["user_id", "2b3fff0a-bec3-11e4-831f-705681abff85"], ["created_at", "2015-02-27 20:56:58.149066"], ["updated_at", "2015-02-27 20:56:58.149066"], ["token", "KW1ICtSBzysvRSZZ17UdX4fkp0JO36jpNDuiqd9kCqc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:58.153107"], ["updated_at", "2015-02-27 20:56:58.153107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b3fff0a-bec3-11e4-831f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b41074c-bec3-11e4-a475-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b3fff0a-bec3-11e4-831f-705681abff85"], ["organization_id", "2b41074c-bec3-11e4-a475-705681abff85"], ["created_at", "2015-02-27 20:56:58.157542"], ["updated_at", "2015-02-27 20:56:58.157542"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$UVH8ofeiyMid9rPoA7z.FezavbNuVx9TijvwREYF.iGCbuKeslEU2"], ["created_at", "2015-02-27 20:56:58.164784"], ["updated_at", "2015-02-27 20:56:58.164784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:58.170609"], ["updated_at", "2015-02-27 20:56:58.170609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b42dac2-bec3-11e4-8577-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b43b6b8-bec3-11e4-ab88-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b42dac2-bec3-11e4-8577-705681abff85"], ["organization_id", "2b43b6b8-bec3-11e4-ab88-705681abff85"], ["created_at", "2015-02-27 20:56:58.174843"], ["updated_at", "2015-02-27 20:56:58.174843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 12:56:58 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:56:58.181176' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KW1ICtSBzysvRSZZ17UdX4fkp0JO36jpNDuiqd9kCqc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:56:58.192248"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:56:58.193550"], ["id", "2b406b66-bec3-11e4-a582-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b3fff0a-bec3-11e4-831f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "2b3fff0a-bec3-11e4-831f-705681abff85"]] Completed 200 OK in 36ms (Views: 4.4ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$kIdOEpLL0cMgs7yqkbH1POeH1QrQsH3Vb9kLbGHvlxq.gcnWR20lG"], ["created_at", "2015-02-27 20:56:58.225779"], ["updated_at", "2015-02-27 20:56:58.225779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:56:58.227557"], ["user_id", "2b4c1aec-bec3-11e4-804b-705681abff85"], ["created_at", "2015-02-27 20:56:58.228322"], ["updated_at", "2015-02-27 20:56:58.228322"], ["token", "mkD7hJDgIDU6Lq0Y9uxS0O7B4jOtrWTzGPxbEMeJQMQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:58.231722"], ["updated_at", "2015-02-27 20:56:58.231722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b4c1aec-bec3-11e4-804b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b4cff0c-bec3-11e4-8567-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b4c1aec-bec3-11e4-804b-705681abff85"], ["organization_id", "2b4cff0c-bec3-11e4-8567-705681abff85"], ["created_at", "2015-02-27 20:56:58.235034"], ["updated_at", "2015-02-27 20:56:58.235034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 12:56:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ur4rjgAHJ5Ds21ZRtv4wHe0O55C0dskRPAG5MJl0qTDXR1zM4Kx4."], ["created_at", "2015-02-27 20:56:58.248614"], ["updated_at", "2015-02-27 20:56:58.248614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:56:58.250273"], ["user_id", "2b4f9668-bec3-11e4-8544-705681abff85"], ["created_at", "2015-02-27 20:56:58.251079"], ["updated_at", "2015-02-27 20:56:58.251079"], ["token", "qPuYIhocp3ylWsu3fmsReDUwpOZ2h4CSw09DdDsf80U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:58.254541"], ["updated_at", "2015-02-27 20:56:58.254541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b4f9668-bec3-11e4-8544-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b507b96-bec3-11e4-a634-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b4f9668-bec3-11e4-8544-705681abff85"], ["organization_id", "2b507b96-bec3-11e4-a634-705681abff85"], ["created_at", "2015-02-27 20:56:58.258762"], ["updated_at", "2015-02-27 20:56:58.258762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-02-27 12:56:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:56:58.264381' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qPuYIhocp3ylWsu3fmsReDUwpOZ2h4CSw09DdDsf80U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:56:58.266229"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:56:58.267419"], ["id", "2b4ff824-bec3-11e4-b611-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b4f9668-bec3-11e4-8544-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "2b4f9668-bec3-11e4-8544-705681abff85"], ["name", "org-6"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ZHrKMbq7iTUsF4kAL7DowuEgpnR2rPlRi.bGLS3rEOzia14FU/dbO"], ["created_at", "2015-02-27 20:56:58.279420"], ["updated_at", "2015-02-27 20:56:58.279420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:56:58.281087"], ["user_id", "2b544816-bec3-11e4-beed-705681abff85"], ["created_at", "2015-02-27 20:56:58.281832"], ["updated_at", "2015-02-27 20:56:58.281832"], ["token", "ReKCVOrhPMSLcnCh7w514HQX365qgpoMrjbCdaUxOEY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:58.286267"], ["updated_at", "2015-02-27 20:56:58.286267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b544816-bec3-11e4-beed-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b555f62-bec3-11e4-ba47-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b544816-bec3-11e4-beed-705681abff85"], ["organization_id", "2b555f62-bec3-11e4-ba47-705681abff85"], ["created_at", "2015-02-27 20:56:58.290653"], ["updated_at", "2015-02-27 20:56:58.290653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 12:56:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$NCFvOxHoKgO8DbYNT5oTZ.V4iBUJfnmJjHGMyfQxORxyXn.bIK9i6"], ["created_at", "2015-02-27 20:56:58.305268"], ["updated_at", "2015-02-27 20:56:58.305268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:56:58.307519"], ["user_id", "2b5849f2-bec3-11e4-a025-705681abff85"], ["created_at", "2015-02-27 20:56:58.308446"], ["updated_at", "2015-02-27 20:56:58.308446"], ["token", "B1DUVnnTcnajn5PT01wfPKLZCg7KNTUpV4HclTXd3Pc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:58.313781"], ["updated_at", "2015-02-27 20:56:58.313781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b5849f2-bec3-11e4-a025-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b5990a0-bec3-11e4-b5e2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b5849f2-bec3-11e4-a025-705681abff85"], ["organization_id", "2b5990a0-bec3-11e4-b5e2-705681abff85"], ["created_at", "2015-02-27 20:56:58.320183"], ["updated_at", "2015-02-27 20:56:58.320183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/2b5990a0-bec3-11e4-b5e2-705681abff85" for 127.0.0.1 at 2015-02-27 12:56:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"2b5990a0-bec3-11e4-b5e2-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:56:58.330155' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B1DUVnnTcnajn5PT01wfPKLZCg7KNTUpV4HclTXd3Pc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:56:58.331603"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:56:58.332574"], ["id", "2b58d034-bec3-11e4-8bf2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b5849f2-bec3-11e4-a025-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "2b5849f2-bec3-11e4-a025-705681abff85"], ["id", "2b5990a0-bec3-11e4-b5e2-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$ZxmPXWQTzFoaE4Ax0rmIZ.l9/VJh3/Y.z162viTGPbIerbL.otGxa"], ["created_at", "2015-02-27 20:56:58.344056"], ["updated_at", "2015-02-27 20:56:58.344056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:56:58.345796"], ["user_id", "2b5e27b4-bec3-11e4-9f4b-705681abff85"], ["created_at", "2015-02-27 20:56:58.346591"], ["updated_at", "2015-02-27 20:56:58.346591"], ["token", "Avg3bILRkoxK3BEgWZKinRkNA5NZZA9ZsrQys7p6gy8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:58.349828"], ["updated_at", "2015-02-27 20:56:58.349828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b5e27b4-bec3-11e4-9f4b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b5f060c-bec3-11e4-96ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b5e27b4-bec3-11e4-9f4b-705681abff85"], ["organization_id", "2b5f060c-bec3-11e4-96ce-705681abff85"], ["created_at", "2015-02-27 20:56:58.353769"], ["updated_at", "2015-02-27 20:56:58.353769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:56:58 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$8f5NFnzvenSfM60F.Dr8M.O27caZNtPJ4yzRR8F0ifjlPSOs4ixpi"], ["created_at", "2015-02-27 20:56:58.366138"], ["updated_at", "2015-02-27 20:56:58.366138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:56:58.367944"], ["user_id", "2b618346-bec3-11e4-93cf-705681abff85"], ["created_at", "2015-02-27 20:56:58.368810"], ["updated_at", "2015-02-27 20:56:58.368810"], ["token", "SRLgvcO1UBtAJIQSswpp1JtLijdo5GUWyo8s4m_DPI0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:58.372261"], ["updated_at", "2015-02-27 20:56:58.372261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b618346-bec3-11e4-93cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b626f0e-bec3-11e4-bee0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b618346-bec3-11e4-93cf-705681abff85"], ["organization_id", "2b626f0e-bec3-11e4-bee0-705681abff85"], ["created_at", "2015-02-27 20:56:58.376480"], ["updated_at", "2015-02-27 20:56:58.376480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:56:58 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:56:58.380963' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SRLgvcO1UBtAJIQSswpp1JtLijdo5GUWyo8s4m_DPI0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:56:58.382588"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:56:58.383580"], ["id", "2b61f344-bec3-11e4-8ddc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b618346-bec3-11e4-93cf-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:58.389645"], ["updated_at", "2015-02-27 20:56:58.389645"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2b6518da-bec3-11e4-8c22-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b618346-bec3-11e4-93cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b6518da-bec3-11e4-8c22-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2b618346-bec3-11e4-93cf-705681abff85"], ["admin", "t"], ["organization_id", "2b6518da-bec3-11e4-8c22-705681abff85"], ["created_at", "2015-02-27 20:56:58.396626"], ["updated_at", "2015-02-27 20:56:58.396626"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$R3r0MfAa0UJpjExztJ6HVOcGeEjUGdieeQ0vd4vOLRsCd7WKX9JkO"], ["created_at", "2015-02-27 20:56:58.405981"], ["updated_at", "2015-02-27 20:56:58.405981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:56:58.407739"], ["user_id", "2b6799f2-bec3-11e4-8a0a-705681abff85"], ["created_at", "2015-02-27 20:56:58.408819"], ["updated_at", "2015-02-27 20:56:58.408819"], ["token", "tzSFNbnTVHNNgtZYced1ohpzsEPuI-GAHZL5ywxqThE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:56:58.412273"], ["updated_at", "2015-02-27 20:56:58.412273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b6799f2-bec3-11e4-8a0a-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b688aa6-bec3-11e4-9ef3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b6799f2-bec3-11e4-8a0a-705681abff85"], ["organization_id", "2b688aa6-bec3-11e4-9ef3-705681abff85"], ["created_at", "2015-02-27 20:56:58.415603"], ["updated_at", "2015-02-27 20:56:58.415603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:56:58 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "organization"=>{"name"=>"name"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:56:58.422334' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tzSFNbnTVHNNgtZYced1ohpzsEPuI-GAHZL5ywxqThE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:56:58.423779"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:56:58.424762"], ["id", "2b680e32-bec3-11e4-bcc2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b6799f2-bec3-11e4-8a0a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$7qJDsbtpsny2SJY3gMu/ge/HcpKtp/3Z5gUx1MdUVoG0O1QG0huqK"], ["created_at", "2015-02-27 20:58:00.444230"], ["updated_at", "2015-02-27 20:58:00.444230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:00.465474"], ["user_id", "50620f58-bec3-11e4-8dae-705681abff85"], ["created_at", "2015-02-27 20:58:00.503647"], ["updated_at", "2015-02-27 20:58:00.503647"], ["token", "JyE8A8gR3B9xuy4TN6VXmue24VhvUxSKNIqlzvKnOKc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.520099"], ["updated_at", "2015-02-27 20:58:00.520099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50620f58-bec3-11e4-8dae-705681abff85' AND "clubhouse_memberships"."organization_id" = '506d8112-bec3-11e4-a955-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "50620f58-bec3-11e4-8dae-705681abff85"], ["organization_id", "506d8112-bec3-11e4-a955-705681abff85"], ["created_at", "2015-02-27 20:58:00.540649"], ["updated_at", "2015-02-27 20:58:00.540649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:58:00 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$3/kj9N5LVcfXgmKFZkz23OnZhzuGU5bvwjNmvFRLmS/Dfv4fTIme6"], ["created_at", "2015-02-27 20:58:00.576150"], ["updated_at", "2015-02-27 20:58:00.576150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:00.577938"], ["user_id", "5076044a-bec3-11e4-90cc-705681abff85"], ["created_at", "2015-02-27 20:58:00.578788"], ["updated_at", "2015-02-27 20:58:00.578788"], ["token", "jSLP1RtKzT--1qL-gUVtT61lHXaaELBgae5QSroLNCI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.582022"], ["updated_at", "2015-02-27 20:58:00.582022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5076044a-bec3-11e4-90cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '5076e34c-bec3-11e4-8ca0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5076044a-bec3-11e4-90cc-705681abff85"], ["organization_id", "5076e34c-bec3-11e4-8ca0-705681abff85"], ["created_at", "2015-02-27 20:58:00.585158"], ["updated_at", "2015-02-27 20:58:00.585158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:58:00 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "organization"=>{"name"=>"name"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:58:00.591510' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jSLP1RtKzT--1qL-gUVtT61lHXaaELBgae5QSroLNCI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:58:00.599201"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:58:00.600564"], ["id", "50766d40-bec3-11e4-b7a0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5076044a-bec3-11e4-90cc-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 31ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$O9wJcmk1TaaDD3aA1c1IEuByrh8MEH7.uxUiNtNaTBvQjAxnsLwyu"], ["created_at", "2015-02-27 20:58:00.628425"], ["updated_at", "2015-02-27 20:58:00.628425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:00.630310"], ["user_id", "507e0334-bec3-11e4-981d-705681abff85"], ["created_at", "2015-02-27 20:58:00.631089"], ["updated_at", "2015-02-27 20:58:00.631089"], ["token", "M0WBSmwYwUq-Wc--gjlHOEw2xW029BDmcqxaH4Gt0Xc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.634729"], ["updated_at", "2015-02-27 20:58:00.634729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '507e0334-bec3-11e4-981d-705681abff85' AND "clubhouse_memberships"."organization_id" = '507ef078-bec3-11e4-a3ce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "507e0334-bec3-11e4-981d-705681abff85"], ["organization_id", "507ef078-bec3-11e4-a3ce-705681abff85"], ["created_at", "2015-02-27 20:58:00.638163"], ["updated_at", "2015-02-27 20:58:00.638163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:58:00 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:58:00.673606' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M0WBSmwYwUq-Wc--gjlHOEw2xW029BDmcqxaH4Gt0Xc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:58:00.675362"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:58:00.676607"], ["id", "507e6acc-bec3-11e4-92d7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "507e0334-bec3-11e4-981d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$FcWqFXsiAjhlijkxxctk4.c8ye5q5d0CvMUZR3fyfVdEXRtfXMD9a"], ["created_at", "2015-02-27 20:58:00.689261"], ["updated_at", "2015-02-27 20:58:00.689261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:00.691224"], ["user_id", "508749a8-bec3-11e4-8d32-705681abff85"], ["created_at", "2015-02-27 20:58:00.692146"], ["updated_at", "2015-02-27 20:58:00.692146"], ["token", "9EFuCxosYS8GBTW6Akyr888Aw4knF9dgHKwUqP01bCM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.695697"], ["updated_at", "2015-02-27 20:58:00.695697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '508749a8-bec3-11e4-8d32-705681abff85' AND "clubhouse_memberships"."organization_id" = '50883c8c-bec3-11e4-8615-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "508749a8-bec3-11e4-8d32-705681abff85"], ["organization_id", "50883c8c-bec3-11e4-8615-705681abff85"], ["created_at", "2015-02-27 20:58:00.698830"], ["updated_at", "2015-02-27 20:58:00.698830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/50883c8c-bec3-11e4-8615-705681abff85" for 127.0.0.1 at 2015-02-27 12:58:00 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"50883c8c-bec3-11e4-8615-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:58:00.703389' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9EFuCxosYS8GBTW6Akyr888Aw4knF9dgHKwUqP01bCM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:58:00.705231"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:58:00.707153"], ["id", "5087bf1e-bec3-11e4-9252-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "508749a8-bec3-11e4-8d32-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "508749a8-bec3-11e4-8d32-705681abff85"], ["id", "50883c8c-bec3-11e4-8615-705681abff85"]] Completed 200 OK in 22ms (Views: 1.8ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$/RUJauX8oyrECkh0UOj/z.xK9ZbzcdBz0EyUIclLTzU/IMwG3uqP2"], ["created_at", "2015-02-27 20:58:00.733722"], ["updated_at", "2015-02-27 20:58:00.733722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:00.735721"], ["user_id", "508e1300-bec3-11e4-a5be-705681abff85"], ["created_at", "2015-02-27 20:58:00.736560"], ["updated_at", "2015-02-27 20:58:00.736560"], ["token", "TwH4zG5xXnnXOsVCN8fZxggqEJGd--imOjwzn62ohl0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.740101"], ["updated_at", "2015-02-27 20:58:00.740101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '508e1300-bec3-11e4-a5be-705681abff85' AND "clubhouse_memberships"."organization_id" = '508f0b8e-bec3-11e4-862c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "508e1300-bec3-11e4-a5be-705681abff85"], ["organization_id", "508f0b8e-bec3-11e4-862c-705681abff85"], ["created_at", "2015-02-27 20:58:00.743821"], ["updated_at", "2015-02-27 20:58:00.743821"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 12:58:00 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$4CtTrhUCQM20WJmdCkNlx.Cn9SS5cw9yZGP5vlwJrJ9R5N0qbZzf."], ["created_at", "2015-02-27 20:58:00.758062"], ["updated_at", "2015-02-27 20:58:00.758062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:00.760147"], ["user_id", "5091c9d2-bec3-11e4-a8aa-705681abff85"], ["created_at", "2015-02-27 20:58:00.761080"], ["updated_at", "2015-02-27 20:58:00.761080"], ["token", "E9yug_ZZ2_ApFWxk5j42axKwK9QgxAkeVllEfFEP9F4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.765021"], ["updated_at", "2015-02-27 20:58:00.765021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5091c9d2-bec3-11e4-a8aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '5092d818-bec3-11e4-bfe1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5091c9d2-bec3-11e4-a8aa-705681abff85"], ["organization_id", "5092d818-bec3-11e4-bfe1-705681abff85"], ["created_at", "2015-02-27 20:58:00.769263"], ["updated_at", "2015-02-27 20:58:00.769263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$MAiZXQehJFm04PEbFsaUZuzNHKSY7WXJn7i2xgFpIzgBiUmfGO9fC"], ["created_at", "2015-02-27 20:58:00.774077"], ["updated_at", "2015-02-27 20:58:00.774077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.777577"], ["updated_at", "2015-02-27 20:58:00.777577"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5094351e-bec3-11e4-ae19-705681abff85' AND "clubhouse_memberships"."organization_id" = '5094c330-bec3-11e4-a50f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5094351e-bec3-11e4-ae19-705681abff85"], ["organization_id", "5094c330-bec3-11e4-a50f-705681abff85"], ["created_at", "2015-02-27 20:58:00.782114"], ["updated_at", "2015-02-27 20:58:00.782114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 12:58:00 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:58:00.786626' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "E9yug_ZZ2_ApFWxk5j42axKwK9QgxAkeVllEfFEP9F4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:58:00.788418"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:58:00.790268"], ["id", "50924146-bec3-11e4-b139-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5091c9d2-bec3-11e4-a8aa-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "5091c9d2-bec3-11e4-a8aa-705681abff85"]] Completed 200 OK in 10ms (Views: 2.2ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$YLyTDhBOBdaut9lVdNhS3.aGfgRHCWHsYyGqASOJ6GnNM4ZSfTV7O"], ["created_at", "2015-02-27 20:58:00.802140"], ["updated_at", "2015-02-27 20:58:00.802140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:00.803850"], ["user_id", "50987f02-bec3-11e4-a0ab-705681abff85"], ["created_at", "2015-02-27 20:58:00.804610"], ["updated_at", "2015-02-27 20:58:00.804610"], ["token", "ox2lXpKBpVnvyfZMA1TC_aQDc-gu-2UmAagXk0ZEOEg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.807822"], ["updated_at", "2015-02-27 20:58:00.807822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50987f02-bec3-11e4-a0ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '50995968-bec3-11e4-a52b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "50987f02-bec3-11e4-a0ab-705681abff85"], ["organization_id", "50995968-bec3-11e4-a52b-705681abff85"], ["created_at", "2015-02-27 20:58:00.811499"], ["updated_at", "2015-02-27 20:58:00.811499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$ExABI6Z7FHs.g5rlrIWX6unQed81ZtGDr/2SFIvaXs9atJRBV4fga"], ["created_at", "2015-02-27 20:58:00.815868"], ["updated_at", "2015-02-27 20:58:00.815868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.818771"], ["updated_at", "2015-02-27 20:58:00.818771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '509a9300-bec3-11e4-84ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '509b0286-bec3-11e4-a2f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "509a9300-bec3-11e4-84ab-705681abff85"], ["organization_id", "509b0286-bec3-11e4-a2f1-705681abff85"], ["created_at", "2015-02-27 20:58:00.821827"], ["updated_at", "2015-02-27 20:58:00.821827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 12:58:00 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$d8360b5xE3ZOxAh9TopQsur4m9mKnmpvaARAYfzEJmajRFKVHnzv2"], ["created_at", "2015-02-27 20:58:00.834595"], ["updated_at", "2015-02-27 20:58:00.834595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:00.836688"], ["user_id", "509d75f2-bec3-11e4-b722-705681abff85"], ["created_at", "2015-02-27 20:58:00.837861"], ["updated_at", "2015-02-27 20:58:00.837861"], ["token", "y765CLVnIhYsObV3b52Xvwktxq9rhZBE0HEMdeLqrR4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.841791"], ["updated_at", "2015-02-27 20:58:00.841791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '509d75f2-bec3-11e4-b722-705681abff85' AND "clubhouse_memberships"."organization_id" = '509e8c26-bec3-11e4-9093-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "509d75f2-bec3-11e4-b722-705681abff85"], ["organization_id", "509e8c26-bec3-11e4-9093-705681abff85"], ["created_at", "2015-02-27 20:58:00.846295"], ["updated_at", "2015-02-27 20:58:00.846295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-10" for 127.0.0.1 at 2015-02-27 12:58:00 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:58:00.850983' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y765CLVnIhYsObV3b52Xvwktxq9rhZBE0HEMdeLqrR4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:58:00.852862"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:58:00.854754"], ["id", "509e0058-bec3-11e4-ad51-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "509d75f2-bec3-11e4-b722-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "509d75f2-bec3-11e4-b722-705681abff85"], ["name", "org-10"]] Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$On8oYhp4LHwWhWWJK174TuV0C2N.7BrGA2B0x6cAe8Gb4tM5iZ4uO"], ["created_at", "2015-02-27 20:58:00.866804"], ["updated_at", "2015-02-27 20:58:00.866804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:00.868432"], ["user_id", "50a25a4a-bec3-11e4-bd1f-705681abff85"], ["created_at", "2015-02-27 20:58:00.869162"], ["updated_at", "2015-02-27 20:58:00.869162"], ["token", "Y2enefuUMuz96UwyqtW89O_OEBIZsgjgnapLD5Uwnzc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:00.872331"], ["updated_at", "2015-02-27 20:58:00.872331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50a25a4a-bec3-11e4-bd1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '50a33000-bec3-11e4-85c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "50a25a4a-bec3-11e4-bd1f-705681abff85"], ["organization_id", "50a33000-bec3-11e4-85c5-705681abff85"], ["created_at", "2015-02-27 20:58:00.875845"], ["updated_at", "2015-02-27 20:58:00.875845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 12:58:00 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$3ccPRorMHF5pVSxN5Mlr6uPnwKNLpLhwcoxTVYMJRASbUoonHoErG"], ["created_at", "2015-02-27 20:58:12.488681"], ["updated_at", "2015-02-27 20:58:12.488681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:12.497970"], ["user_id", "578fe1a6-bec3-11e4-a2fc-705681abff85"], ["created_at", "2015-02-27 20:58:12.503884"], ["updated_at", "2015-02-27 20:58:12.503884"], ["token", "MnE2g7R1qJ55o4I-V4M0yLpqZXdFdiWb_ZMiYJ_OmNU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.512652"], ["updated_at", "2015-02-27 20:58:12.512652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '578fe1a6-bec3-11e4-a2fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '579368e4-bec3-11e4-957c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "578fe1a6-bec3-11e4-a2fc-705681abff85"], ["organization_id", "579368e4-bec3-11e4-957c-705681abff85"], ["created_at", "2015-02-27 20:58:12.523695"], ["updated_at", "2015-02-27 20:58:12.523695"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 12:58:12 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$uBfhAR4TmBgHUNx7Fz/V1uOiDnMwNfGvzFPsWkM3.k6W6AL0fWyp6"], ["created_at", "2015-02-27 20:58:12.585566"], ["updated_at", "2015-02-27 20:58:12.585566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:12.587345"], ["user_id", "579e82a6-bec3-11e4-bce0-705681abff85"], ["created_at", "2015-02-27 20:58:12.588163"], ["updated_at", "2015-02-27 20:58:12.588163"], ["token", "ivkgppfJjKLP4yjG9XVfBhI2COjwBm0y3hNilbjpnVQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.591427"], ["updated_at", "2015-02-27 20:58:12.591427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '579e82a6-bec3-11e4-bce0-705681abff85' AND "clubhouse_memberships"."organization_id" = '579f60d6-bec3-11e4-b123-705681abff85') LIMIT 1 SQL (6.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "579e82a6-bec3-11e4-bce0-705681abff85"], ["organization_id", "579f60d6-bec3-11e4-b123-705681abff85"], ["created_at", "2015-02-27 20:58:12.594568"], ["updated_at", "2015-02-27 20:58:12.594568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/579f60d6-bec3-11e4-b123-705681abff85" for 127.0.0.1 at 2015-02-27 12:58:12 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"579f60d6-bec3-11e4-b123-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:58:12.605546' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ivkgppfJjKLP4yjG9XVfBhI2COjwBm0y3hNilbjpnVQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:58:12.612682"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:58:12.613834"], ["id", "579eeca0-bec3-11e4-8b86-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "579e82a6-bec3-11e4-bce0-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "579e82a6-bec3-11e4-bce0-705681abff85"], ["id", "579f60d6-bec3-11e4-b123-705681abff85"]] Completed 200 OK in 31ms (Views: 1.6ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$vbyQ5lbJhdz8hRwvx4HAUOLAoGLwaO0lQsxc.Lyi/2CRxlUzOm1ry"], ["created_at", "2015-02-27 20:58:12.643893"], ["updated_at", "2015-02-27 20:58:12.643893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:12.645596"], ["user_id", "57a76718-bec3-11e4-89ba-705681abff85"], ["created_at", "2015-02-27 20:58:12.646411"], ["updated_at", "2015-02-27 20:58:12.646411"], ["token", "5dprB8sMR7rGlT5QkAu4NXoXHqs_I9fXaRORI7X4qrc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.649942"], ["updated_at", "2015-02-27 20:58:12.649942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57a76718-bec3-11e4-89ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '57a8509c-bec3-11e4-afd0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57a76718-bec3-11e4-89ba-705681abff85"], ["organization_id", "57a8509c-bec3-11e4-afd0-705681abff85"], ["created_at", "2015-02-27 20:58:12.653462"], ["updated_at", "2015-02-27 20:58:12.653462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 12:58:12 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$C4GtC4MOW.wR1tGz.pR7V.H5mnZvATYdwiHce56z8Sn7r.WItyAuy"], ["created_at", "2015-02-27 20:58:12.665701"], ["updated_at", "2015-02-27 20:58:12.665701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:12.667487"], ["user_id", "57aabeb8-bec3-11e4-91d7-705681abff85"], ["created_at", "2015-02-27 20:58:12.668278"], ["updated_at", "2015-02-27 20:58:12.668278"], ["token", "BzYawWRh0u_OYwvpsBpJ6uV4qi9DC53S-KKKjYIm8po"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.671561"], ["updated_at", "2015-02-27 20:58:12.671561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57aabeb8-bec3-11e4-91d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '57ab9c2a-bec3-11e4-8af9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57aabeb8-bec3-11e4-91d7-705681abff85"], ["organization_id", "57ab9c2a-bec3-11e4-8af9-705681abff85"], ["created_at", "2015-02-27 20:58:12.675183"], ["updated_at", "2015-02-27 20:58:12.675183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-4" for 127.0.0.1 at 2015-02-27 12:58:12 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-4", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:58:12.679900' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BzYawWRh0u_OYwvpsBpJ6uV4qi9DC53S-KKKjYIm8po"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:58:12.681768"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:58:12.683323"], ["id", "57ab2420-bec3-11e4-8e91-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57aabeb8-bec3-11e4-91d7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "57aabeb8-bec3-11e4-91d7-705681abff85"], ["name", "org-4"]] Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$8Zn5805AFKrXob1ICiGll.Ftm62IqSuTLDQugxkRYPzefdmV7m58u"], ["created_at", "2015-02-27 20:58:12.695647"], ["updated_at", "2015-02-27 20:58:12.695647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:12.697205"], ["user_id", "57af4a82-bec3-11e4-aa92-705681abff85"], ["created_at", "2015-02-27 20:58:12.697964"], ["updated_at", "2015-02-27 20:58:12.697964"], ["token", "V4rNzfVTE9PYXNHYJORsqFGglfAt-fSHtsk1xxKf9po"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.701342"], ["updated_at", "2015-02-27 20:58:12.701342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57af4a82-bec3-11e4-aa92-705681abff85' AND "clubhouse_memberships"."organization_id" = '57b0288a-bec3-11e4-b086-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57af4a82-bec3-11e4-aa92-705681abff85"], ["organization_id", "57b0288a-bec3-11e4-b086-705681abff85"], ["created_at", "2015-02-27 20:58:12.704761"], ["updated_at", "2015-02-27 20:58:12.704761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$G4ZIT3Bg6UkgXw0Ii438wOCrs21WZi8MP.OwWyxZBau2GyJdMci3K"], ["created_at", "2015-02-27 20:58:12.709214"], ["updated_at", "2015-02-27 20:58:12.709214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.712128"], ["updated_at", "2015-02-27 20:58:12.712128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57b15a70-bec3-11e4-adf9-705681abff85' AND "clubhouse_memberships"."organization_id" = '57b1cbb8-bec3-11e4-a5d6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57b15a70-bec3-11e4-adf9-705681abff85"], ["organization_id", "57b1cbb8-bec3-11e4-a5d6-705681abff85"], ["created_at", "2015-02-27 20:58:12.715269"], ["updated_at", "2015-02-27 20:58:12.715269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 12:58:12 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$6lyDNgLNsTy7q9oPZDPTb.sHFMAqp0H1EEh9Cd.8Tlf6dv9NRpzKS"], ["created_at", "2015-02-27 20:58:12.728281"], ["updated_at", "2015-02-27 20:58:12.728281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:12.730013"], ["user_id", "57b446f4-bec3-11e4-8b27-705681abff85"], ["created_at", "2015-02-27 20:58:12.730824"], ["updated_at", "2015-02-27 20:58:12.730824"], ["token", "ra8TX6pXo7LNTnBwC1Np0UNWi41phlS92n4rsAGXUP4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.734594"], ["updated_at", "2015-02-27 20:58:12.734594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57b446f4-bec3-11e4-8b27-705681abff85' AND "clubhouse_memberships"."organization_id" = '57b53b72-bec3-11e4-962f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57b446f4-bec3-11e4-8b27-705681abff85"], ["organization_id", "57b53b72-bec3-11e4-962f-705681abff85"], ["created_at", "2015-02-27 20:58:12.738016"], ["updated_at", "2015-02-27 20:58:12.738016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$yMuxUImKw3mp6rcEiG85/e8j8.wkI1rWTmCQ6eTx43HZWfDXSU3ia"], ["created_at", "2015-02-27 20:58:12.743309"], ["updated_at", "2015-02-27 20:58:12.743309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.746283"], ["updated_at", "2015-02-27 20:58:12.746283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57b68f04-bec3-11e4-aa13-705681abff85' AND "clubhouse_memberships"."organization_id" = '57b701d2-bec3-11e4-928d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57b68f04-bec3-11e4-aa13-705681abff85"], ["organization_id", "57b701d2-bec3-11e4-928d-705681abff85"], ["created_at", "2015-02-27 20:58:12.749728"], ["updated_at", "2015-02-27 20:58:12.749728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 12:58:12 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:58:12.754742' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ra8TX6pXo7LNTnBwC1Np0UNWi41phlS92n4rsAGXUP4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:58:12.756386"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:58:12.757311"], ["id", "57b4ba44-bec3-11e4-a956-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57b446f4-bec3-11e4-8b27-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "57b446f4-bec3-11e4-8b27-705681abff85"]] Completed 200 OK in 8ms (Views: 2.5ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$uexmU0W1k7N8yd7HkTBUZOT12vFkWWPuPsEGfnrhqpLGi/h2BmCJS"], ["created_at", "2015-02-27 20:58:12.769280"], ["updated_at", "2015-02-27 20:58:12.769280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:12.771111"], ["user_id", "57ba87b2-bec3-11e4-9df1-705681abff85"], ["created_at", "2015-02-27 20:58:12.772101"], ["updated_at", "2015-02-27 20:58:12.772101"], ["token", "LZi4Vr7kLRSD5V65cO4PnFycTnj3QFNbaBEg1X379TI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.775598"], ["updated_at", "2015-02-27 20:58:12.775598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57ba87b2-bec3-11e4-9df1-705681abff85' AND "clubhouse_memberships"."organization_id" = '57bb7a82-bec3-11e4-8309-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57ba87b2-bec3-11e4-9df1-705681abff85"], ["organization_id", "57bb7a82-bec3-11e4-8309-705681abff85"], ["created_at", "2015-02-27 20:58:12.778792"], ["updated_at", "2015-02-27 20:58:12.778792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:58:12 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$QyCiZ/CqcjIm5MJTMF8//eXtFLAYO/EYBps2/Z6HAAF7KccXSXs0q"], ["created_at", "2015-02-27 20:58:12.790748"], ["updated_at", "2015-02-27 20:58:12.790748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:12.792460"], ["user_id", "57bdd110-bec3-11e4-909b-705681abff85"], ["created_at", "2015-02-27 20:58:12.793258"], ["updated_at", "2015-02-27 20:58:12.793258"], ["token", "qwsMpChUjgabN49_6ZsYwwAd68bVR0gt5H8WrOcGIbQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.796565"], ["updated_at", "2015-02-27 20:58:12.796565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57bdd110-bec3-11e4-909b-705681abff85' AND "clubhouse_memberships"."organization_id" = '57beb1c0-bec3-11e4-8f95-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57bdd110-bec3-11e4-909b-705681abff85"], ["organization_id", "57beb1c0-bec3-11e4-8f95-705681abff85"], ["created_at", "2015-02-27 20:58:12.800671"], ["updated_at", "2015-02-27 20:58:12.800671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:58:12 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:58:12.805737' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qwsMpChUjgabN49_6ZsYwwAd68bVR0gt5H8WrOcGIbQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:58:12.807830"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:58:12.808895"], ["id", "57be3592-bec3-11e4-ac36-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57bdd110-bec3-11e4-909b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.814001"], ["updated_at", "2015-02-27 20:58:12.814001"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "57c159c0-bec3-11e4-a712-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57bdd110-bec3-11e4-909b-705681abff85' AND "clubhouse_memberships"."organization_id" = '57c159c0-bec3-11e4-a712-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57bdd110-bec3-11e4-909b-705681abff85"], ["admin", "t"], ["organization_id", "57c159c0-bec3-11e4-a712-705681abff85"], ["created_at", "2015-02-27 20:58:12.819901"], ["updated_at", "2015-02-27 20:58:12.819901"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 0.9ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$5mKeHPikVb2gP2rGcCXn1.wF/dsHgTKO3B1UfSHvz381FGsxtKUUe"], ["created_at", "2015-02-27 20:58:12.829955"], ["updated_at", "2015-02-27 20:58:12.829955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 20:58:12.831614"], ["user_id", "57c3c8d6-bec3-11e4-a355-705681abff85"], ["created_at", "2015-02-27 20:58:12.832574"], ["updated_at", "2015-02-27 20:58:12.832574"], ["token", "K_mEvSEJoVtogvqzRjrlLUaZL-58POaVfhLEGfJOQW0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 20:58:12.836318"], ["updated_at", "2015-02-27 20:58:12.836318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57c3c8d6-bec3-11e4-a355-705681abff85' AND "clubhouse_memberships"."organization_id" = '57c4bef8-bec3-11e4-9b3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57c3c8d6-bec3-11e4-a355-705681abff85"], ["organization_id", "57c4bef8-bec3-11e4-9b3d-705681abff85"], ["created_at", "2015-02-27 20:58:12.839571"], ["updated_at", "2015-02-27 20:58:12.839571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 12:58:12 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "organization"=>{"name"=>"name"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 20:58:12.845881' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "K_mEvSEJoVtogvqzRjrlLUaZL-58POaVfhLEGfJOQW0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 20:58:12.847394"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 20:58:12.848364"], ["id", "57c43d3e-bec3-11e4-9fef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57c3c8d6-bec3-11e4-a355-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (14.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$bLjE3gwRju8AhWsTZCDYgeNjLIyY8ItCqmdXXaXVBWoQ3cB7aH4mu"], ["created_at", "2015-02-27 21:05:28.720619"], ["updated_at", "2015-02-27 21:05:28.720619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:28.743995"], ["user_id", "5b939bfc-bec4-11e4-a852-705681abff85"], ["created_at", "2015-02-27 21:05:28.750030"], ["updated_at", "2015-02-27 21:05:28.750030"], ["token", "u8ZOKVSY_rvTPsu6fIOeWk2XvsfoiwJqpiZxVzrC85k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:28.759292"], ["updated_at", "2015-02-27 21:05:28.759292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5b939bfc-bec4-11e4-a852-705681abff85' AND "clubhouse_memberships"."organization_id" = '5b995cb8-bec4-11e4-9a08-705681abff85') LIMIT 1 SQL (6.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5b939bfc-bec4-11e4-a852-705681abff85"], ["organization_id", "5b995cb8-bec4-11e4-9a08-705681abff85"], ["created_at", "2015-02-27 21:05:28.771433"], ["updated_at", "2015-02-27 21:05:28.771433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:05:28 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$XJycHN6zWkjHAqtfDc0XAePBVg6CzHWxTDbE48iSwmX5QFw7OnAwC"], ["created_at", "2015-02-27 21:05:28.791860"], ["updated_at", "2015-02-27 21:05:28.791860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:28.793746"], ["user_id", "5b9e4d18-bec4-11e4-8fe5-705681abff85"], ["created_at", "2015-02-27 21:05:28.794859"], ["updated_at", "2015-02-27 21:05:28.794859"], ["token", "5u1BvqPsX5Iqvlarya6yJfffs4VbXmKZ9FDJLTbDXSM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:28.798709"], ["updated_at", "2015-02-27 21:05:28.798709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5b9e4d18-bec4-11e4-8fe5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5b9f55d2-bec4-11e4-801e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5b9e4d18-bec4-11e4-8fe5-705681abff85"], ["organization_id", "5b9f55d2-bec4-11e4-801e-705681abff85"], ["created_at", "2015-02-27 21:05:28.802411"], ["updated_at", "2015-02-27 21:05:28.802411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5b9f55d2-bec4-11e4-801e-705681abff85" for 127.0.0.1 at 2015-02-27 13:05:28 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$XHoDQH2aejKwtWGFglbNcedHfnqRN2JSCyK5P5O7Y4ZSIiGTOkACm"], ["created_at", "2015-02-27 21:05:28.812158"], ["updated_at", "2015-02-27 21:05:28.812158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:28.813878"], ["user_id", "5ba16822-bec4-11e4-9a6b-705681abff85"], ["created_at", "2015-02-27 21:05:28.814870"], ["updated_at", "2015-02-27 21:05:28.814870"], ["token", "2TR_TsS2qNwz5mQrPkglF3n9bkunY3PwfiGLBDAPIBI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:28.819157"], ["updated_at", "2015-02-27 21:05:28.819157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ba16822-bec4-11e4-9a6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ba27d5c-bec4-11e4-8041-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ba16822-bec4-11e4-9a6b-705681abff85"], ["organization_id", "5ba27d5c-bec4-11e4-8041-705681abff85"], ["created_at", "2015-02-27 21:05:28.823543"], ["updated_at", "2015-02-27 21:05:28.823543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5ba27d5c-bec4-11e4-8041-705681abff85" for 127.0.0.1 at 2015-02-27 13:05:28 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$OK0O7hx.BY4G1HKMxjhL1uwOqgNZBQsezAmRzbDpHHWk2GlyT0eKq"], ["created_at", "2015-02-27 21:05:28.846457"], ["updated_at", "2015-02-27 21:05:28.846457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:28.848391"], ["user_id", "5ba6a44a-bec4-11e4-a8b7-705681abff85"], ["created_at", "2015-02-27 21:05:28.849204"], ["updated_at", "2015-02-27 21:05:28.849204"], ["token", "4dLFqqRk-uN7hZ7jyHJq2azgjhkv12z26HIYwhJevco"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:28.853035"], ["updated_at", "2015-02-27 21:05:28.853035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ba6a44a-bec4-11e4-a8b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ba7a552-bec4-11e4-a4f0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ba6a44a-bec4-11e4-a8b7-705681abff85"], ["organization_id", "5ba7a552-bec4-11e4-a4f0-705681abff85"], ["created_at", "2015-02-27 21:05:28.856685"], ["updated_at", "2015-02-27 21:05:28.856685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$cfW5YiaF3pGbHUhXM5ei.OvOXvuOCdsIlCxa1.iQd6UPDFNzWuof2"], ["created_at", "2015-02-27 21:05:28.861639"], ["updated_at", "2015-02-27 21:05:28.861639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:28.864776"], ["updated_at", "2015-02-27 21:05:28.864776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ba8f15a-bec4-11e4-9e5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ba969f0-bec4-11e4-a6b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ba8f15a-bec4-11e4-9e5e-705681abff85"], ["organization_id", "5ba969f0-bec4-11e4-a6b0-705681abff85"], ["created_at", "2015-02-27 21:05:28.868664"], ["updated_at", "2015-02-27 21:05:28.868664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:05:28 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$oqy60y.SG9C082IHsxWA8uZYB.VTF8WPQgEb.4zVLCHw1ltEKAMF."], ["created_at", "2015-02-27 21:05:28.927003"], ["updated_at", "2015-02-27 21:05:28.927003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:28.928861"], ["user_id", "5bb2ee62-bec4-11e4-b97a-705681abff85"], ["created_at", "2015-02-27 21:05:28.929932"], ["updated_at", "2015-02-27 21:05:28.929932"], ["token", "JZb2mpjdf25z1GCpKDvk3XXjeywBQTWBM2QPYq37gV0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:28.934401"], ["updated_at", "2015-02-27 21:05:28.934401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bb2ee62-bec4-11e4-b97a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bb41dd2-bec4-11e4-bfb4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bb2ee62-bec4-11e4-b97a-705681abff85"], ["organization_id", "5bb41dd2-bec4-11e4-bfb4-705681abff85"], ["created_at", "2015-02-27 21:05:28.938655"], ["updated_at", "2015-02-27 21:05:28.938655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$F8/zv8Of5EJvliVEJnkpf.tcZEtjT240ov5aCP9bveApL8C.JYej2"], ["created_at", "2015-02-27 21:05:28.943269"], ["updated_at", "2015-02-27 21:05:28.943269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:28.946979"], ["updated_at", "2015-02-27 21:05:28.946979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bb56430-bec4-11e4-8d40-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bb601ce-bec4-11e4-96a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bb56430-bec4-11e4-8d40-705681abff85"], ["organization_id", "5bb601ce-bec4-11e4-96a0-705681abff85"], ["created_at", "2015-02-27 21:05:28.950700"], ["updated_at", "2015-02-27 21:05:28.950700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:05:28 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:05:28.955497' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JZb2mpjdf25z1GCpKDvk3XXjeywBQTWBM2QPYq37gV0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:05:28.962737"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:05:28.964035"], ["id", "5bb385f2-bec4-11e4-8259-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5bb2ee62-bec4-11e4-b97a-705681abff85"]] Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "5bb2ee62-bec4-11e4-b97a-705681abff85"]] Completed 200 OK in 54ms (Views: 8.3ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$5FTd74xcizmpzzC9HntPoudQAjs7S06bqIDC/eDYxtvnztEcHx9yq"], ["created_at", "2015-02-27 21:05:29.025009"], ["updated_at", "2015-02-27 21:05:29.025009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:29.027852"], ["user_id", "5bc1f902-bec4-11e4-befe-705681abff85"], ["created_at", "2015-02-27 21:05:29.029364"], ["updated_at", "2015-02-27 21:05:29.029364"], ["token", "W7gWLyPf8TERyEkijQu7p22g-_i0MmnzQhYGpWhJ274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:29.035181"], ["updated_at", "2015-02-27 21:05:29.035181"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bc1f902-bec4-11e4-befe-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bc37ad4-bec4-11e4-962e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bc1f902-bec4-11e4-befe-705681abff85"], ["organization_id", "5bc37ad4-bec4-11e4-962e-705681abff85"], ["created_at", "2015-02-27 21:05:29.040542"], ["updated_at", "2015-02-27 21:05:29.040542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:05:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$rHA9R4ggqqmKQWufY.wSYupPPSQRWHrC7GhOgS/NmoCx2MQWe94qG"], ["created_at", "2015-02-27 21:05:29.055515"], ["updated_at", "2015-02-27 21:05:29.055515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:29.057954"], ["user_id", "5bc69d90-bec4-11e4-9cf0-705681abff85"], ["created_at", "2015-02-27 21:05:29.058790"], ["updated_at", "2015-02-27 21:05:29.058790"], ["token", "XfJ14D9DhUghIfVn-XJYgv-m0vuyA3bnq2S7hc-P8Jw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:29.062344"], ["updated_at", "2015-02-27 21:05:29.062344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bc69d90-bec4-11e4-9cf0-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bc79038-bec4-11e4-a7e7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bc69d90-bec4-11e4-9cf0-705681abff85"], ["organization_id", "5bc79038-bec4-11e4-a7e7-705681abff85"], ["created_at", "2015-02-27 21:05:29.065707"], ["updated_at", "2015-02-27 21:05:29.065707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-9" for 127.0.0.1 at 2015-02-27 13:05:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-9", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:05:29.071855' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XfJ14D9DhUghIfVn-XJYgv-m0vuyA3bnq2S7hc-P8Jw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:05:29.073384"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:05:29.074489"], ["id", "5bc7107c-bec4-11e4-a238-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5bc69d90-bec4-11e4-9cf0-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "5bc69d90-bec4-11e4-9cf0-705681abff85"], ["name", "org-9"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$jI3EZbkBAdyAXte5YMZ60OTNGn40ymfHlriBMrWmAsJAjrk4NWh5C"], ["created_at", "2015-02-27 21:05:29.086482"], ["updated_at", "2015-02-27 21:05:29.086482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:29.088579"], ["user_id", "5bcb4228-bec4-11e4-ae0f-705681abff85"], ["created_at", "2015-02-27 21:05:29.089467"], ["updated_at", "2015-02-27 21:05:29.089467"], ["token", "yuqg_kjHTuJwaRfSIJqSQ0X-WHI5uIRBNhnyWAPZiWU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:29.093369"], ["updated_at", "2015-02-27 21:05:29.093369"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bcb4228-bec4-11e4-ae0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bcc5c76-bec4-11e4-b0c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bcb4228-bec4-11e4-ae0f-705681abff85"], ["organization_id", "5bcc5c76-bec4-11e4-b0c3-705681abff85"], ["created_at", "2015-02-27 21:05:29.098303"], ["updated_at", "2015-02-27 21:05:29.098303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:05:29 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$uyH0sMSIi3TaZkKf2vUp0Ocoyy4al3XtQzC0gH9XSMTXomN0vDZf2"], ["created_at", "2015-02-27 21:05:29.110638"], ["updated_at", "2015-02-27 21:05:29.110638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:29.112424"], ["user_id", "5bcef12a-bec4-11e4-a55d-705681abff85"], ["created_at", "2015-02-27 21:05:29.113227"], ["updated_at", "2015-02-27 21:05:29.113227"], ["token", "WQCKEYY3zIma1HrH7BqMWZDKjUQfwzJJzkFdypED1DY"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:29.124003"], ["updated_at", "2015-02-27 21:05:29.124003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bcef12a-bec4-11e4-a55d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bd11202-bec4-11e4-816e-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bcef12a-bec4-11e4-a55d-705681abff85"], ["organization_id", "5bd11202-bec4-11e4-816e-705681abff85"], ["created_at", "2015-02-27 21:05:29.131425"], ["updated_at", "2015-02-27 21:05:29.131425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:05:29 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:05:29.142918' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WQCKEYY3zIma1HrH7BqMWZDKjUQfwzJJzkFdypED1DY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:05:29.144624"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:05:29.145878"], ["id", "5bcf70dc-bec4-11e4-964c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5bcef12a-bec4-11e4-a55d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:29.151806"], ["updated_at", "2015-02-27 21:05:29.151806"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5bd536e8-bec4-11e4-ac4c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bcef12a-bec4-11e4-a55d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bd536e8-bec4-11e4-ac4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5bcef12a-bec4-11e4-a55d-705681abff85"], ["admin", "t"], ["organization_id", "5bd536e8-bec4-11e4-ac4c-705681abff85"], ["created_at", "2015-02-27 21:05:29.157701"], ["updated_at", "2015-02-27 21:05:29.157701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.6ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$hlC4jbb4YRZml5VxIdiS1OYRcL8BivX.VnRdrMNCAkTF/sLylzc1C"], ["created_at", "2015-02-27 21:05:29.166478"], ["updated_at", "2015-02-27 21:05:29.166478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:29.168059"], ["user_id", "5bd77304-bec4-11e4-9d60-705681abff85"], ["created_at", "2015-02-27 21:05:29.168813"], ["updated_at", "2015-02-27 21:05:29.168813"], ["token", "rtqBj5XFU55PRmX4AL3F5PQwoz9NbaZ1OeDeBI4L2NE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:29.172508"], ["updated_at", "2015-02-27 21:05:29.172508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bd77304-bec4-11e4-9d60-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bd85ff8-bec4-11e4-b2c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bd77304-bec4-11e4-9d60-705681abff85"], ["organization_id", "5bd85ff8-bec4-11e4-b2c0-705681abff85"], ["created_at", "2015-02-27 21:05:29.175779"], ["updated_at", "2015-02-27 21:05:29.175779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:05:29 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:05:29.180508' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rtqBj5XFU55PRmX4AL3F5PQwoz9NbaZ1OeDeBI4L2NE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:05:29.181951"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:05:29.182905"], ["id", "5bd7d5b0-bec4-11e4-a5c2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5bd77304-bec4-11e4-9d60-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$/k051rjICN7s4am1TDvw7.rZ3OLPSbJpO6o3hDwvnDXmLIBVL9wd2"], ["created_at", "2015-02-27 21:05:29.203117"], ["updated_at", "2015-02-27 21:05:29.203117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:29.204950"], ["user_id", "5bdd1138-bec4-11e4-b0c1-705681abff85"], ["created_at", "2015-02-27 21:05:29.205763"], ["updated_at", "2015-02-27 21:05:29.205763"], ["token", "K4qi4FqeIZ3OD1nvPJmWWrX4m2H9M_GhQUHtTNADPx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:29.208940"], ["updated_at", "2015-02-27 21:05:29.208940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bdd1138-bec4-11e4-b0c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bddeacc-bec4-11e4-b89e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bdd1138-bec4-11e4-b0c1-705681abff85"], ["organization_id", "5bddeacc-bec4-11e4-b89e-705681abff85"], ["created_at", "2015-02-27 21:05:29.212572"], ["updated_at", "2015-02-27 21:05:29.212572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:05:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$.3OO4Dpk664axqhB8PC2Oe/j1dawrFX4AJu9cHvmb4Uex3DNZcZ8S"], ["created_at", "2015-02-27 21:05:29.224816"], ["updated_at", "2015-02-27 21:05:29.224816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:05:29.226662"], ["user_id", "5be05b22-bec4-11e4-beda-705681abff85"], ["created_at", "2015-02-27 21:05:29.227419"], ["updated_at", "2015-02-27 21:05:29.227419"], ["token", "o7x33QFfVDGe28wwOteDxpOtYlyu6cyNJRFLUmyzV4g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:05:29.230855"], ["updated_at", "2015-02-27 21:05:29.230855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5be05b22-bec4-11e4-beda-705681abff85' AND "clubhouse_memberships"."organization_id" = '5be14654-bec4-11e4-bc4a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5be05b22-bec4-11e4-beda-705681abff85"], ["organization_id", "5be14654-bec4-11e4-bc4a-705681abff85"], ["created_at", "2015-02-27 21:05:29.234293"], ["updated_at", "2015-02-27 21:05:29.234293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5be14654-bec4-11e4-bc4a-705681abff85" for 127.0.0.1 at 2015-02-27 13:05:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"5be14654-bec4-11e4-bc4a-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:05:29.240599' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o7x33QFfVDGe28wwOteDxpOtYlyu6cyNJRFLUmyzV4g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:05:29.242314"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:05:29.243371"], ["id", "5be0c954-bec4-11e4-abbc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5be05b22-bec4-11e4-beda-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "5be05b22-bec4-11e4-beda-705681abff85"], ["id", "5be14654-bec4-11e4-bc4a-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$CUQaaNS3yohq6ssE948x.eQUe6a7HMqlHrtj./Jq.mlmtpUOQFruS"], ["created_at", "2015-02-27 21:06:08.001427"], ["updated_at", "2015-02-27 21:06:08.001427"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.019407"], ["user_id", "72fd8dde-bec4-11e4-9b1d-705681abff85"], ["created_at", "2015-02-27 21:06:08.044336"], ["updated_at", "2015-02-27 21:06:08.044336"], ["token", "BD28t_nORipg5xVRNEQ3uEj3cgtB80MnGGLVxfCsIWQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.056930"], ["updated_at", "2015-02-27 21:06:08.056930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '72fd8dde-bec4-11e4-9b1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '7305b518-bec4-11e4-85df-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "72fd8dde-bec4-11e4-9b1d-705681abff85"], ["organization_id", "7305b518-bec4-11e4-85df-705681abff85"], ["created_at", "2015-02-27 21:06:08.072050"], ["updated_at", "2015-02-27 21:06:08.072050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-1" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:06:08.095307' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BD28t_nORipg5xVRNEQ3uEj3cgtB80MnGGLVxfCsIWQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:06:08.102098"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:06:08.103234"], ["id", "7303f80e-bec4-11e4-8eec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "72fd8dde-bec4-11e4-9b1d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "72fd8dde-bec4-11e4-9b1d-705681abff85"], ["name", "org-1"]] Completed 200 OK in 29ms (Views: 1.6ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$qjTPYXk6XYRzXSh4jj5o1uKcgYYFnX.27EpT5k0CTaLMNJxUvyxYO"], ["created_at", "2015-02-27 21:06:08.133295"], ["updated_at", "2015-02-27 21:06:08.133295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.134989"], ["user_id", "731152c4-bec4-11e4-8a32-705681abff85"], ["created_at", "2015-02-27 21:06:08.135826"], ["updated_at", "2015-02-27 21:06:08.135826"], ["token", "u22enwkCvl1SamdzikTRU1pWeVoekbCjI6wa-stfszc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.139169"], ["updated_at", "2015-02-27 21:06:08.139169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '731152c4-bec4-11e4-8a32-705681abff85' AND "clubhouse_memberships"."organization_id" = '7312354a-bec4-11e4-a1b1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "731152c4-bec4-11e4-8a32-705681abff85"], ["organization_id", "7312354a-bec4-11e4-a1b1-705681abff85"], ["created_at", "2015-02-27 21:06:08.142403"], ["updated_at", "2015-02-27 21:06:08.142403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$CIkiqdZlkPNtH71DgVZytu9CbXHuULip.bx0kstdWXGV1d4J3bfO6"], ["created_at", "2015-02-27 21:06:08.186711"], ["updated_at", "2015-02-27 21:06:08.186711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.188374"], ["user_id", "73197a44-bec4-11e4-b138-705681abff85"], ["created_at", "2015-02-27 21:06:08.189150"], ["updated_at", "2015-02-27 21:06:08.189150"], ["token", "sM12t3Hr112R-Nz3I-MOQ9j7OaBEknu7W0_8rFGRFXQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.195414"], ["updated_at", "2015-02-27 21:06:08.195414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '73197a44-bec4-11e4-b138-705681abff85' AND "clubhouse_memberships"."organization_id" = '731acd72-bec4-11e4-8bb5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "73197a44-bec4-11e4-b138-705681abff85"], ["organization_id", "731acd72-bec4-11e4-8bb5-705681abff85"], ["created_at", "2015-02-27 21:06:08.199228"], ["updated_at", "2015-02-27 21:06:08.199228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/731acd72-bec4-11e4-8bb5-705681abff85" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"731acd72-bec4-11e4-8bb5-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:06:08.203968' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sM12t3Hr112R-Nz3I-MOQ9j7OaBEknu7W0_8rFGRFXQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:06:08.205472"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:06:08.206385"], ["id", "7319dc5a-bec4-11e4-bbc0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "73197a44-bec4-11e4-b138-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "73197a44-bec4-11e4-b138-705681abff85"], ["id", "731acd72-bec4-11e4-8bb5-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$b1AUjC9J07E0coNC9.05TuAvo4LTpy2FLhhhFf..2N2c8.ogut8S."], ["created_at", "2015-02-27 21:06:08.217280"], ["updated_at", "2015-02-27 21:06:08.217280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.218829"], ["user_id", "731e22ce-bec4-11e4-ab55-705681abff85"], ["created_at", "2015-02-27 21:06:08.219607"], ["updated_at", "2015-02-27 21:06:08.219607"], ["token", "Swgf8Xx11gELsnfmKLspvplgYUyMU4SqEw19WCUKv1s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.222809"], ["updated_at", "2015-02-27 21:06:08.222809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '731e22ce-bec4-11e4-ab55-705681abff85' AND "clubhouse_memberships"."organization_id" = '731ef852-bec4-11e4-acd9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "731e22ce-bec4-11e4-ab55-705681abff85"], ["organization_id", "731ef852-bec4-11e4-acd9-705681abff85"], ["created_at", "2015-02-27 21:06:08.225920"], ["updated_at", "2015-02-27 21:06:08.225920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$PA.WBZBHsMRFuPCESeN12.9WUR8txGI91ktLLW6S5LoV6fFugcEqq"], ["created_at", "2015-02-27 21:06:08.238115"], ["updated_at", "2015-02-27 21:06:08.238115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.239689"], ["user_id", "732150ca-bec4-11e4-a324-705681abff85"], ["created_at", "2015-02-27 21:06:08.240485"], ["updated_at", "2015-02-27 21:06:08.240485"], ["token", "OUO2_v5LsBbEWrvWIBKLVVnKm2W18ohqv1muuJtLaFk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.243708"], ["updated_at", "2015-02-27 21:06:08.243708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '732150ca-bec4-11e4-a324-705681abff85' AND "clubhouse_memberships"."organization_id" = '73222ef0-bec4-11e4-a065-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "732150ca-bec4-11e4-a324-705681abff85"], ["organization_id", "73222ef0-bec4-11e4-a065-705681abff85"], ["created_at", "2015-02-27 21:06:08.248086"], ["updated_at", "2015-02-27 21:06:08.248086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$8e/HlGo3xtU//M1Iwrx7vORm59TTP/o3V2shC7HDaha5hPH1ux4eq"], ["created_at", "2015-02-27 21:06:08.252914"], ["updated_at", "2015-02-27 21:06:08.252914"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.258550"], ["updated_at", "2015-02-27 21:06:08.258550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7323911e-bec4-11e4-9a5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '7324942e-bec4-11e4-8d03-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7323911e-bec4-11e4-9a5e-705681abff85"], ["organization_id", "7324942e-bec4-11e4-8d03-705681abff85"], ["created_at", "2015-02-27 21:06:08.265063"], ["updated_at", "2015-02-27 21:06:08.265063"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:06:08.271565' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OUO2_v5LsBbEWrvWIBKLVVnKm2W18ohqv1muuJtLaFk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:06:08.273023"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:06:08.274016"], ["id", "7321b3c6-bec4-11e4-9ff6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "732150ca-bec4-11e4-a324-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "732150ca-bec4-11e4-a324-705681abff85"]] Completed 200 OK in 10ms (Views: 4.5ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$DM8NA0GwztTz/kDYvsZ9seuBuO9y5QWFGcOJHBm.OFzq0LheSegt6"], ["created_at", "2015-02-27 21:06:08.288781"], ["updated_at", "2015-02-27 21:06:08.288781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.290665"], ["user_id", "7329112a-bec4-11e4-85bc-705681abff85"], ["created_at", "2015-02-27 21:06:08.291508"], ["updated_at", "2015-02-27 21:06:08.291508"], ["token", "SG7C6L0FcXY4pcDNWBTWcqw9D9edcA5Cpp3RKl-dZP4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.298660"], ["updated_at", "2015-02-27 21:06:08.298660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7329112a-bec4-11e4-85bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '732a943c-bec4-11e4-96be-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7329112a-bec4-11e4-85bc-705681abff85"], ["organization_id", "732a943c-bec4-11e4-96be-705681abff85"], ["created_at", "2015-02-27 21:06:08.303099"], ["updated_at", "2015-02-27 21:06:08.303099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$D5ScPCsQp2lRDdUiztf7zeB5clL5HEIyxQigCphPvnHVTRnYneMwG"], ["created_at", "2015-02-27 21:06:08.308759"], ["updated_at", "2015-02-27 21:06:08.308759"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.315871"], ["updated_at", "2015-02-27 21:06:08.315871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '732c252c-bec4-11e4-ae9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '732d50aa-bec4-11e4-bcc7-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "732c252c-bec4-11e4-ae9c-705681abff85"], ["organization_id", "732d50aa-bec4-11e4-bcc7-705681abff85"], ["created_at", "2015-02-27 21:06:08.322176"], ["updated_at", "2015-02-27 21:06:08.322176"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$lu7ZUbjkvsUawAC9WikPO.Rd5plVZFSJwRXcqGOu1zN6Ductc8V3y"], ["created_at", "2015-02-27 21:06:08.391052"], ["updated_at", "2015-02-27 21:06:08.391052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.393710"], ["user_id", "7338b9c2-bec4-11e4-897b-705681abff85"], ["created_at", "2015-02-27 21:06:08.394955"], ["updated_at", "2015-02-27 21:06:08.394955"], ["token", "_JIOCoXf1mcTDClT00Df-6vaY1ypLsh86dYPTYtwAmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.424678"], ["updated_at", "2015-02-27 21:06:08.424678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7338b9c2-bec4-11e4-897b-705681abff85' AND "clubhouse_memberships"."organization_id" = '733dfc48-bec4-11e4-b96e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7338b9c2-bec4-11e4-897b-705681abff85"], ["organization_id", "733dfc48-bec4-11e4-b96e-705681abff85"], ["created_at", "2015-02-27 21:06:08.434014"], ["updated_at", "2015-02-27 21:06:08.434014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$hFs.RR5YzXhxEaKRp2tZsus12nH20GRTPoS2QTz8jbR8oDJuZ4mUS"], ["created_at", "2015-02-27 21:06:08.449543"], ["updated_at", "2015-02-27 21:06:08.449543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.452959"], ["user_id", "7341a988-bec4-11e4-b46e-705681abff85"], ["created_at", "2015-02-27 21:06:08.454174"], ["updated_at", "2015-02-27 21:06:08.454174"], ["token", "IjQfeiAwcvHZeEMIF9XbCix_wH0X-UKgc8HjwDxFXVc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.458069"], ["updated_at", "2015-02-27 21:06:08.458069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7341a988-bec4-11e4-b46e-705681abff85' AND "clubhouse_memberships"."organization_id" = '7342e4a6-bec4-11e4-bb73-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7341a988-bec4-11e4-b46e-705681abff85"], ["organization_id", "7342e4a6-bec4-11e4-bb73-705681abff85"], ["created_at", "2015-02-27 21:06:08.463157"], ["updated_at", "2015-02-27 21:06:08.463157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:06:08.477366' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IjQfeiAwcvHZeEMIF9XbCix_wH0X-UKgc8HjwDxFXVc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:06:08.479969"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:06:08.481525"], ["id", "7342570c-bec4-11e4-802a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7341a988-bec4-11e4-b46e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 26ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$J5JocJVs2P2F3LnjGAvFi.ytNPRqW1QjTdMcMihmH7UjPsbT/94w2"], ["created_at", "2015-02-27 21:06:08.509749"], ["updated_at", "2015-02-27 21:06:08.509749"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.512240"], ["user_id", "734acf68-bec4-11e4-862a-705681abff85"], ["created_at", "2015-02-27 21:06:08.513317"], ["updated_at", "2015-02-27 21:06:08.513317"], ["token", "zOKXSGuCuHRJ2e3aQE4btuGF1Ak4mDmzaO6fDfriRFM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.518294"], ["updated_at", "2015-02-27 21:06:08.518294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '734acf68-bec4-11e4-862a-705681abff85' AND "clubhouse_memberships"."organization_id" = '734c1ad0-bec4-11e4-9abe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "734acf68-bec4-11e4-862a-705681abff85"], ["organization_id", "734c1ad0-bec4-11e4-9abe-705681abff85"], ["created_at", "2015-02-27 21:06:08.522242"], ["updated_at", "2015-02-27 21:06:08.522242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:06:08.526680' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zOKXSGuCuHRJ2e3aQE4btuGF1Ak4mDmzaO6fDfriRFM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:06:08.528043"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:06:08.529432"], ["id", "734b6a86-bec4-11e4-8e03-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "734acf68-bec4-11e4-862a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.537335"], ["updated_at", "2015-02-27 21:06:08.537335"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "734f0a9c-bec4-11e4-9a44-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '734acf68-bec4-11e4-862a-705681abff85' AND "clubhouse_memberships"."organization_id" = '734f0a9c-bec4-11e4-9a44-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "734acf68-bec4-11e4-862a-705681abff85"], ["admin", "t"], ["organization_id", "734f0a9c-bec4-11e4-9a44-705681abff85"], ["created_at", "2015-02-27 21:06:08.544037"], ["updated_at", "2015-02-27 21:06:08.544037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 0.7ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Mrw3qAqYParcT1HP2AcC7e/4mAM5Fq.QBWoRhmO6wfwL14C.nCMei"], ["created_at", "2015-02-27 21:06:08.552924"], ["updated_at", "2015-02-27 21:06:08.552924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.554917"], ["user_id", "73516300-bec4-11e4-9e84-705681abff85"], ["created_at", "2015-02-27 21:06:08.555753"], ["updated_at", "2015-02-27 21:06:08.555753"], ["token", "u2syND9DtHquZbq4j38EUU-wt5Hdm4zTwLN7nCwCr5s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.559035"], ["updated_at", "2015-02-27 21:06:08.559035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '73516300-bec4-11e4-9e84-705681abff85' AND "clubhouse_memberships"."organization_id" = '73524518-bec4-11e4-86e8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "73516300-bec4-11e4-9e84-705681abff85"], ["organization_id", "73524518-bec4-11e4-86e8-705681abff85"], ["created_at", "2015-02-27 21:06:08.562471"], ["updated_at", "2015-02-27 21:06:08.562471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$b9eDhIp1f/KBxyo0K8UOQOKx7Oyq3Fk3WqoVg7gxxNizzzObJYLji"], ["created_at", "2015-02-27 21:06:08.576860"], ["updated_at", "2015-02-27 21:06:08.576860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.578700"], ["user_id", "7355047e-bec4-11e4-a3ce-705681abff85"], ["created_at", "2015-02-27 21:06:08.580080"], ["updated_at", "2015-02-27 21:06:08.580080"], ["token", "0SnZHfSJNympIhDgyt0pV2oe-AqbqeOVcmda7FR8qzE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.585038"], ["updated_at", "2015-02-27 21:06:08.585038"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7355047e-bec4-11e4-a3ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '735655ae-bec4-11e4-80a4-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7355047e-bec4-11e4-a3ce-705681abff85"], ["organization_id", "735655ae-bec4-11e4-80a4-705681abff85"], ["created_at", "2015-02-27 21:06:08.592751"], ["updated_at", "2015-02-27 21:06:08.592751"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/735655ae-bec4-11e4-80a4-705681abff85" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"735655ae-bec4-11e4-80a4-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:06:08.603542' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0SnZHfSJNympIhDgyt0pV2oe-AqbqeOVcmda7FR8qzE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:06:08.606134"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:06:08.607859"], ["id", "735592a4-bec4-11e4-a822-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 31ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Um8Uv.dzm1yOXeJMeyFAQeCAoXJjqYj1Phmb9lc7qEsx/MK8UapQe"], ["created_at", "2015-02-27 21:06:08.645721"], ["updated_at", "2015-02-27 21:06:08.645721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:06:08.648925"], ["user_id", "735fb1c6-bec4-11e4-98da-705681abff85"], ["created_at", "2015-02-27 21:06:08.649949"], ["updated_at", "2015-02-27 21:06:08.649949"], ["token", "32_6WYXodgH7dsDq2-ryPaMjuCl1CZ3YVH4LpRiH_VM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:06:08.667717"], ["updated_at", "2015-02-27 21:06:08.667717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '735fb1c6-bec4-11e4-98da-705681abff85' AND "clubhouse_memberships"."organization_id" = '7362fe94-bec4-11e4-a2e5-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "735fb1c6-bec4-11e4-98da-705681abff85"], ["organization_id", "7362fe94-bec4-11e4-a2e5-705681abff85"], ["created_at", "2015-02-27 21:06:08.676170"], ["updated_at", "2015-02-27 21:06:08.676170"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/7362fe94-bec4-11e4-a2e5-705681abff85" for 127.0.0.1 at 2015-02-27 13:06:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"7362fe94-bec4-11e4-a2e5-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:06:08.685440' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "32_6WYXodgH7dsDq2-ryPaMjuCl1CZ3YVH4LpRiH_VM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:06:08.687772"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:06:08.689514"], ["id", "736055d6-bec4-11e4-99a4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Xwz1W6uiUu.m9WUmnRKIJe0HdVkimxdnCenHdwTQcbyBGUEijK9Y2"], ["created_at", "2015-02-27 21:10:02.448025"], ["updated_at", "2015-02-27 21:10:02.448025"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (13.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.465018"], ["user_id", "febb1256-bec4-11e4-96b7-705681abff85"], ["created_at", "2015-02-27 21:10:02.474059"], ["updated_at", "2015-02-27 21:10:02.474059"], ["token", "uVsZ0CHBpuL69EmYrXLFPOnnPOz8TWYoHpGI7opuvMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.496510"], ["updated_at", "2015-02-27 21:10:02.496510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'febb1256-bec4-11e4-96b7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fec27730-bec4-11e4-9fab-705681abff85') LIMIT 1 SQL (4.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "febb1256-bec4-11e4-96b7-705681abff85"], ["organization_id", "fec27730-bec4-11e4-9fab-705681abff85"], ["created_at", "2015-02-27 21:10:02.510547"], ["updated_at", "2015-02-27 21:10:02.510547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$rPokQDyomdud62kViqESt.Rz.l0s4npiQmxpStedLz30hxX9oUy8m"], ["created_at", "2015-02-27 21:10:02.547802"], ["updated_at", "2015-02-27 21:10:02.547802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.549859"], ["user_id", "feca2fd4-bec4-11e4-9163-705681abff85"], ["created_at", "2015-02-27 21:10:02.550649"], ["updated_at", "2015-02-27 21:10:02.550649"], ["token", "U1eH4aq8jem-EEC0WHTkkVYim_hGE7SKlwi6VX6mfzk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.554492"], ["updated_at", "2015-02-27 21:10:02.554492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'feca2fd4-bec4-11e4-9163-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fecb30e6-bec4-11e4-aa48-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "feca2fd4-bec4-11e4-9163-705681abff85"], ["organization_id", "fecb30e6-bec4-11e4-aa48-705681abff85"], ["created_at", "2015-02-27 21:10:02.558331"], ["updated_at", "2015-02-27 21:10:02.558331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/fecb30e6-bec4-11e4-aa48-705681abff85" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"fecb30e6-bec4-11e4-aa48-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:10:02.563556' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U1eH4aq8jem-EEC0WHTkkVYim_hGE7SKlwi6VX6mfzk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:10:02.571053"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:10:02.572353"], ["id", "feca9b68-bec4-11e4-919d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "feca2fd4-bec4-11e4-9163-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "feca2fd4-bec4-11e4-9163-705681abff85"], ["id", "fecb30e6-bec4-11e4-aa48-705681abff85"]] Completed 200 OK in 36ms (Views: 1.9ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$DLxNCdHObOnzgF.kjaW/ge1O6iF1b4b/sOQrEU8H9OJqR0At6eksq"], ["created_at", "2015-02-27 21:10:02.638216"], ["updated_at", "2015-02-27 21:10:02.638216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.640632"], ["user_id", "fed804ce-bec4-11e4-af9a-705681abff85"], ["created_at", "2015-02-27 21:10:02.641422"], ["updated_at", "2015-02-27 21:10:02.641422"], ["token", "Y39vSbFb2Dn94wleFzEFolh4c6zHv3LxL4l07MHINDo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.645360"], ["updated_at", "2015-02-27 21:10:02.645360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fed804ce-bec4-11e4-af9a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fed90586-bec4-11e4-a8a1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fed804ce-bec4-11e4-af9a-705681abff85"], ["organization_id", "fed90586-bec4-11e4-a8a1-705681abff85"], ["created_at", "2015-02-27 21:10:02.648740"], ["updated_at", "2015-02-27 21:10:02.648740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$slLr76pLnxFHQA6YYIAs/uzSHB4wiir1PL6Tcms3DO4EL69ECXRUG"], ["created_at", "2015-02-27 21:10:02.661298"], ["updated_at", "2015-02-27 21:10:02.661298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.662899"], ["user_id", "fedb74e2-bec4-11e4-8385-705681abff85"], ["created_at", "2015-02-27 21:10:02.663743"], ["updated_at", "2015-02-27 21:10:02.663743"], ["token", "v6XqXoGsrqPQ_FGqNkrjL-zzyDBaMeT25u7QnIhwJM4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.667004"], ["updated_at", "2015-02-27 21:10:02.667004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fedb74e2-bec4-11e4-8385-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fedc5178-bec4-11e4-87af-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fedb74e2-bec4-11e4-8385-705681abff85"], ["organization_id", "fedc5178-bec4-11e4-87af-705681abff85"], ["created_at", "2015-02-27 21:10:02.670217"], ["updated_at", "2015-02-27 21:10:02.670217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-4" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-4", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:10:02.676657' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v6XqXoGsrqPQ_FGqNkrjL-zzyDBaMeT25u7QnIhwJM4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:10:02.678275"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:10:02.679247"], ["id", "fedbdb1c-bec4-11e4-aa24-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fedb74e2-bec4-11e4-8385-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "fedb74e2-bec4-11e4-8385-705681abff85"], ["name", "org-4"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$xHmfSV/UhF4RwQyd8GnpLOFRwVXZq9NOnt.ftBYATJCUEbuaSG0V2"], ["created_at", "2015-02-27 21:10:02.689966"], ["updated_at", "2015-02-27 21:10:02.689966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.691972"], ["user_id", "fedfd820-bec4-11e4-b930-705681abff85"], ["created_at", "2015-02-27 21:10:02.692877"], ["updated_at", "2015-02-27 21:10:02.692877"], ["token", "Lpq5sW59k4zba4qPiHIOxOuA6TZWzNNj9rTqgChOoKM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.696288"], ["updated_at", "2015-02-27 21:10:02.696288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fedfd820-bec4-11e4-b930-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fee0c794-bec4-11e4-ae3e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fedfd820-bec4-11e4-b930-705681abff85"], ["organization_id", "fee0c794-bec4-11e4-ae3e-705681abff85"], ["created_at", "2015-02-27 21:10:02.699506"], ["updated_at", "2015-02-27 21:10:02.699506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$FsTfG8apG//RgGksp4k1xOiUw.egYY/Zae12gWvkLLxcGZROywoV2"], ["created_at", "2015-02-27 21:10:02.704285"], ["updated_at", "2015-02-27 21:10:02.704285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.707492"], ["updated_at", "2015-02-27 21:10:02.707492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fee207da-bec4-11e4-8612-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fee27f4e-bec4-11e4-b3b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fee207da-bec4-11e4-8612-705681abff85"], ["organization_id", "fee27f4e-bec4-11e4-b3b3-705681abff85"], ["created_at", "2015-02-27 21:10:02.710646"], ["updated_at", "2015-02-27 21:10:02.710646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$k2qEo0CF0YGcK4x68C8nfekDB7kD3RChO.bOQYO2Dx9em5WihmlsC"], ["created_at", "2015-02-27 21:10:02.722757"], ["updated_at", "2015-02-27 21:10:02.722757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.724567"], ["user_id", "fee4da82-bec4-11e4-a48e-705681abff85"], ["created_at", "2015-02-27 21:10:02.725346"], ["updated_at", "2015-02-27 21:10:02.725346"], ["token", "mgX-IWDsrgMQzN-TAVc_uMJpFstF-fTZmC5HN8gsGcQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.728510"], ["updated_at", "2015-02-27 21:10:02.728510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fee4da82-bec4-11e4-a48e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fee5b16e-bec4-11e4-beec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fee4da82-bec4-11e4-a48e-705681abff85"], ["organization_id", "fee5b16e-bec4-11e4-beec-705681abff85"], ["created_at", "2015-02-27 21:10:02.732160"], ["updated_at", "2015-02-27 21:10:02.732160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$wiEE5/y03f9mavkCY0OmGuuvFPZusk5OQ5VyvpUbgJsmcqRiz8ITO"], ["created_at", "2015-02-27 21:10:02.737168"], ["updated_at", "2015-02-27 21:10:02.737168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.740237"], ["updated_at", "2015-02-27 21:10:02.740237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fee708b6-bec4-11e4-b67a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fee77e54-bec4-11e4-92e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fee708b6-bec4-11e4-b67a-705681abff85"], ["organization_id", "fee77e54-bec4-11e4-92e7-705681abff85"], ["created_at", "2015-02-27 21:10:02.743430"], ["updated_at", "2015-02-27 21:10:02.743430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:10:02.748074' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mgX-IWDsrgMQzN-TAVc_uMJpFstF-fTZmC5HN8gsGcQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:10:02.749539"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:10:02.750533"], ["id", "fee5408a-bec4-11e4-84f9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fee4da82-bec4-11e4-a48e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "fee4da82-bec4-11e4-a48e-705681abff85"]] Completed 200 OK in 9ms (Views: 2.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$BzCmOu1b3mOCaY5tNsFAVOdxUB9BZpztMR7pguSoi7UPheQtLUrjG"], ["created_at", "2015-02-27 21:10:02.762905"], ["updated_at", "2015-02-27 21:10:02.762905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.764904"], ["user_id", "feeaf5ac-bec4-11e4-8b14-705681abff85"], ["created_at", "2015-02-27 21:10:02.765730"], ["updated_at", "2015-02-27 21:10:02.765730"], ["token", "htoVauXwtsl3ENHiR1C6mdAYqXU5K2fBvkb1ZiUHjuM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.769592"], ["updated_at", "2015-02-27 21:10:02.769592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'feeaf5ac-bec4-11e4-8b14-705681abff85' AND "clubhouse_memberships"."organization_id" = 'feebf8f8-bec4-11e4-99a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "feeaf5ac-bec4-11e4-8b14-705681abff85"], ["organization_id", "feebf8f8-bec4-11e4-99a9-705681abff85"], ["created_at", "2015-02-27 21:10:02.773330"], ["updated_at", "2015-02-27 21:10:02.773330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$zhjmmy76PvvGUxJVtijo0uZkL21PlNEE2x0t8msbIrwIwbbgp8OwG"], ["created_at", "2015-02-27 21:10:02.784847"], ["updated_at", "2015-02-27 21:10:02.784847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.786437"], ["user_id", "feee4db0-bec4-11e4-bb7f-705681abff85"], ["created_at", "2015-02-27 21:10:02.787216"], ["updated_at", "2015-02-27 21:10:02.787216"], ["token", "8aQtnwxZLrKgKzfdkghb18prKJPkUYrfLtXTnNkyY-Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.790468"], ["updated_at", "2015-02-27 21:10:02.790468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'feee4db0-bec4-11e4-bb7f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'feef2762-bec4-11e4-b68e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "feee4db0-bec4-11e4-bb7f-705681abff85"], ["organization_id", "feef2762-bec4-11e4-b68e-705681abff85"], ["created_at", "2015-02-27 21:10:02.794145"], ["updated_at", "2015-02-27 21:10:02.794145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/feef2762-bec4-11e4-b68e-705681abff85" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"feef2762-bec4-11e4-b68e-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:10:02.798776' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8aQtnwxZLrKgKzfdkghb18prKJPkUYrfLtXTnNkyY-Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:10:02.800162"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:10:02.801298"], ["id", "feeeae40-bec4-11e4-a036-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "feee4db0-bec4-11e4-bb7f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "feee4db0-bec4-11e4-bb7f-705681abff85"], ["id", "feef2762-bec4-11e4-b68e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'feef2762-bec4-11e4-b68e-705681abff85') LIMIT 1 SQL (0.7ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:10:02.808552"], ["id", "feef2762-bec4-11e4-b68e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$c9TI8fH7DvGxTmFRrRMrx.SWaJZ9nwkbzR55.JAq7bYwMB16Ktn3m"], ["created_at", "2015-02-27 21:10:02.816691"], ["updated_at", "2015-02-27 21:10:02.816691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.820594"], ["user_id", "fef32902-bec4-11e4-b1bb-705681abff85"], ["created_at", "2015-02-27 21:10:02.821541"], ["updated_at", "2015-02-27 21:10:02.821541"], ["token", "Ch3aZF2tLVMQ2Z39UVknS39Rkfmvvjuc01Itk_OzI5g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.825582"], ["updated_at", "2015-02-27 21:10:02.825582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fef32902-bec4-11e4-b1bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fef48504-bec4-11e4-8dab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fef32902-bec4-11e4-b1bb-705681abff85"], ["organization_id", "fef48504-bec4-11e4-8dab-705681abff85"], ["created_at", "2015-02-27 21:10:02.828901"], ["updated_at", "2015-02-27 21:10:02.828901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/fef48504-bec4-11e4-8dab-705681abff85" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"fef48504-bec4-11e4-8dab-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:10:02.835469' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ch3aZF2tLVMQ2Z39UVknS39Rkfmvvjuc01Itk_OzI5g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:10:02.836954"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:10:02.837901"], ["id", "fef3f508-bec4-11e4-9c90-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fef32902-bec4-11e4-b1bb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "fef32902-bec4-11e4-b1bb-705681abff85"], ["id", "fef48504-bec4-11e4-8dab-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'fef48504-bec4-11e4-8dab-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$KxpeICueX2iFZQ0X72HV7e5AH5XuIo/xVFTQ0xHPiClI25HL805du"], ["created_at", "2015-02-27 21:10:02.858618"], ["updated_at", "2015-02-27 21:10:02.858618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.860420"], ["user_id", "fef99044-bec4-11e4-8015-705681abff85"], ["created_at", "2015-02-27 21:10:02.861205"], ["updated_at", "2015-02-27 21:10:02.861205"], ["token", "IIBCzfiqz6f197mT1wjJGxqKNPdXnt20LyKD7fgDFQE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.864925"], ["updated_at", "2015-02-27 21:10:02.864925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fef99044-bec4-11e4-8015-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fefa88e6-bec4-11e4-bd4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fef99044-bec4-11e4-8015-705681abff85"], ["organization_id", "fefa88e6-bec4-11e4-bd4c-705681abff85"], ["created_at", "2015-02-27 21:10:02.868375"], ["updated_at", "2015-02-27 21:10:02.868375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$wOitEOKLBiA3u6gI3XWBROGguULsp9IsSixIzO8MGxiZiT6yiDGga"], ["created_at", "2015-02-27 21:10:02.880401"], ["updated_at", "2015-02-27 21:10:02.880401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.882130"], ["user_id", "fefce474-bec4-11e4-a3ba-705681abff85"], ["created_at", "2015-02-27 21:10:02.882946"], ["updated_at", "2015-02-27 21:10:02.882946"], ["token", "Y8a7_2CR2MYWycUPUKxncL_XYsWDWaphG64Ay_bp1TA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.886233"], ["updated_at", "2015-02-27 21:10:02.886233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fefce474-bec4-11e4-a3ba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fefdc3bc-bec4-11e4-9f3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fefce474-bec4-11e4-a3ba-705681abff85"], ["organization_id", "fefdc3bc-bec4-11e4-9f3d-705681abff85"], ["created_at", "2015-02-27 21:10:02.890258"], ["updated_at", "2015-02-27 21:10:02.890258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:10:02.894929' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y8a7_2CR2MYWycUPUKxncL_XYsWDWaphG64Ay_bp1TA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:10:02.896628"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:10:02.897734"], ["id", "fefd4ca2-bec4-11e4-bf11-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fefce474-bec4-11e4-a3ba-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.905469"], ["updated_at", "2015-02-27 21:10:02.905469"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ff00c4d6-bec4-11e4-bd6d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fefce474-bec4-11e4-a3ba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff00c4d6-bec4-11e4-bd6d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fefce474-bec4-11e4-a3ba-705681abff85"], ["admin", "t"], ["organization_id", "ff00c4d6-bec4-11e4-bd6d-705681abff85"], ["created_at", "2015-02-27 21:10:02.913027"], ["updated_at", "2015-02-27 21:10:02.913027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 21ms (Views: 0.6ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$rXwBzCsDuTE/WNJFmCjVY.tvIqTvAudcmycRhwnqWOcxT8NRiwIZS"], ["created_at", "2015-02-27 21:10:02.921890"], ["updated_at", "2015-02-27 21:10:02.921890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:10:02.923935"], ["user_id", "ff034300-bec4-11e4-b26b-705681abff85"], ["created_at", "2015-02-27 21:10:02.924777"], ["updated_at", "2015-02-27 21:10:02.924777"], ["token", "spDhJYFNJIJONZzAK3HftukG7-np2wClg___JivtVVg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:10:02.928216"], ["updated_at", "2015-02-27 21:10:02.928216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff034300-bec4-11e4-b26b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff042c34-bec4-11e4-8c08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ff034300-bec4-11e4-b26b-705681abff85"], ["organization_id", "ff042c34-bec4-11e4-8c08-705681abff85"], ["created_at", "2015-02-27 21:10:02.931602"], ["updated_at", "2015-02-27 21:10:02.931602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:10:02 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:10:02.936332' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "spDhJYFNJIJONZzAK3HftukG7-np2wClg___JivtVVg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:10:02.937994"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:10:02.940133"], ["id", "ff03b10a-bec4-11e4-926b-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ff034300-bec4-11e4-b26b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$YxERv3wRMQwPKxrn18Uf6eu6/p/DCdxnYEQtCOem1T/fweeHRs1DG"], ["created_at", "2015-02-27 21:11:10.351190"], ["updated_at", "2015-02-27 21:11:10.351190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.360980"], ["user_id", "27344d4c-bec5-11e4-abbf-705681abff85"], ["created_at", "2015-02-27 21:11:10.367223"], ["updated_at", "2015-02-27 21:11:10.367223"], ["token", "CXKha0bwWu0qgkbg19xTf5Kkzffu3JtpcNLUgQqhxAo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.376102"], ["updated_at", "2015-02-27 21:11:10.376102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '27344d4c-bec5-11e4-abbf-705681abff85' AND "clubhouse_memberships"."organization_id" = '2737f1d6-bec5-11e4-997c-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "27344d4c-bec5-11e4-abbf-705681abff85"], ["organization_id", "2737f1d6-bec5-11e4-997c-705681abff85"], ["created_at", "2015-02-27 21:11:10.392298"], ["updated_at", "2015-02-27 21:11:10.392298"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ycaESJ3WeTB8SlXqeG6j8eybUIeo5tVhUkIsK21FDj7zj8yP6eclK"], ["created_at", "2015-02-27 21:11:10.400572"], ["updated_at", "2015-02-27 21:11:10.400572"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.405074"], ["updated_at", "2015-02-27 21:11:10.405074"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '273bb30c-bec5-11e4-b1ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '273c6018-bec5-11e4-8481-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "273bb30c-bec5-11e4-b1ba-705681abff85"], ["organization_id", "273c6018-bec5-11e4-8481-705681abff85"], ["created_at", "2015-02-27 21:11:10.441737"], ["updated_at", "2015-02-27 21:11:10.441737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:10.463531' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CXKha0bwWu0qgkbg19xTf5Kkzffu3JtpcNLUgQqhxAo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:10.470765"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:10.472119"], ["id", "2736a6a0-bec5-11e4-afdd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "27344d4c-bec5-11e4-abbf-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "27344d4c-bec5-11e4-abbf-705681abff85"]] Completed 200 OK in 33ms (Views: 4.3ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$CLWgbGxaMV/mFl3uwGHNbOkgQutU3.rqjr1rBbzhz5YiO3FaPdLke"], ["created_at", "2015-02-27 21:11:10.507986"], ["updated_at", "2015-02-27 21:11:10.507986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (5.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.510512"], ["user_id", "274c1f8a-bec5-11e4-b595-705681abff85"], ["created_at", "2015-02-27 21:11:10.511772"], ["updated_at", "2015-02-27 21:11:10.511772"], ["token", "hIEKCQv3MGvgnOmJugcvBmebmzLMZm2GijUHN64bF6s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.521307"], ["updated_at", "2015-02-27 21:11:10.521307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '274c1f8a-bec5-11e4-b595-705681abff85' AND "clubhouse_memberships"."organization_id" = '274e1254-bec5-11e4-8cc2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "274c1f8a-bec5-11e4-b595-705681abff85"], ["organization_id", "274e1254-bec5-11e4-8cc2-705681abff85"], ["created_at", "2015-02-27 21:11:10.524665"], ["updated_at", "2015-02-27 21:11:10.524665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$1E.Ht2wZDofCdqVxaowM0eYtAYQ3oJuwUgDVhcxBNTegIbg9zd4JW"], ["created_at", "2015-02-27 21:11:10.529299"], ["updated_at", "2015-02-27 21:11:10.529299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.532738"], ["updated_at", "2015-02-27 21:11:10.532738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '274f4fc0-bec5-11e4-bf5b-705681abff85' AND "clubhouse_memberships"."organization_id" = '274fd5f8-bec5-11e4-84c7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "274f4fc0-bec5-11e4-bf5b-705681abff85"], ["organization_id", "274fd5f8-bec5-11e4-84c7-705681abff85"], ["created_at", "2015-02-27 21:11:10.536800"], ["updated_at", "2015-02-27 21:11:10.536800"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$J3tGuYNQPOBHkTqk/DBNBeMO95yrtkQi6k11qJ3Aua6hp7fNeWi6a"], ["created_at", "2015-02-27 21:11:10.549750"], ["updated_at", "2015-02-27 21:11:10.549750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.552022"], ["user_id", "27526f2a-bec5-11e4-a5ca-705681abff85"], ["created_at", "2015-02-27 21:11:10.553747"], ["updated_at", "2015-02-27 21:11:10.553747"], ["token", "JDGGcvwZjDjUsMJFFpD7TqTKWDWyebdU8vTgB84jbLE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.558206"], ["updated_at", "2015-02-27 21:11:10.558206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '27526f2a-bec5-11e4-a5ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '2753b3bc-bec5-11e4-9072-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "27526f2a-bec5-11e4-a5ca-705681abff85"], ["organization_id", "2753b3bc-bec5-11e4-9072-705681abff85"], ["created_at", "2015-02-27 21:11:10.561468"], ["updated_at", "2015-02-27 21:11:10.561468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-5" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:10.566756' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JDGGcvwZjDjUsMJFFpD7TqTKWDWyebdU8vTgB84jbLE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:10.568768"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:10.569762"], ["id", "27531de4-bec5-11e4-a01d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "27526f2a-bec5-11e4-a5ca-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "27526f2a-bec5-11e4-a5ca-705681abff85"], ["name", "org-5"]] Completed 200 OK in 10ms (Views: 1.0ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$UsV8VVUj5FrXLfgxZz85/O068TGVkcSGj9j5yGtIXL3UhYTq8HCP6"], ["created_at", "2015-02-27 21:11:10.582965"], ["updated_at", "2015-02-27 21:11:10.582965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.585031"], ["user_id", "27577d3a-bec5-11e4-817e-705681abff85"], ["created_at", "2015-02-27 21:11:10.585840"], ["updated_at", "2015-02-27 21:11:10.585840"], ["token", "nQ9sDRjy54UYm-RODv30BybNWdDMGzrkC4fGPqdxSYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.589195"], ["updated_at", "2015-02-27 21:11:10.589195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '27577d3a-bec5-11e4-817e-705681abff85' AND "clubhouse_memberships"."organization_id" = '27586bd2-bec5-11e4-a0c1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "27577d3a-bec5-11e4-817e-705681abff85"], ["organization_id", "27586bd2-bec5-11e4-a0c1-705681abff85"], ["created_at", "2015-02-27 21:11:10.592500"], ["updated_at", "2015-02-27 21:11:10.592500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$sY6NIyc6egouvsVOoJU0BeUE4Es74Q2YSr9i.AY840FhI2VSbF/U6"], ["created_at", "2015-02-27 21:11:10.604120"], ["updated_at", "2015-02-27 21:11:10.604120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.606514"], ["user_id", "275ac314-bec5-11e4-a82d-705681abff85"], ["created_at", "2015-02-27 21:11:10.607412"], ["updated_at", "2015-02-27 21:11:10.607412"], ["token", "ufJfP7Zbji8wVQeJIl3ucOP88_HMtCU81n3iEkd7FA8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.612234"], ["updated_at", "2015-02-27 21:11:10.612234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '275ac314-bec5-11e4-a82d-705681abff85' AND "clubhouse_memberships"."organization_id" = '275bf1bc-bec5-11e4-8d8e-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "275ac314-bec5-11e4-a82d-705681abff85"], ["organization_id", "275bf1bc-bec5-11e4-8d8e-705681abff85"], ["created_at", "2015-02-27 21:11:10.615541"], ["updated_at", "2015-02-27 21:11:10.615541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$0/mYT3t2opikA9mhnWbdnO3t8iH84YK9Ewhk0h1spTCWfm3NEmnTu"], ["created_at", "2015-02-27 21:11:10.634128"], ["updated_at", "2015-02-27 21:11:10.634128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.637245"], ["user_id", "275f78a0-bec5-11e4-ad5c-705681abff85"], ["created_at", "2015-02-27 21:11:10.638070"], ["updated_at", "2015-02-27 21:11:10.638070"], ["token", "8VRScPTgAt_fW4P3JeSMa2rYSDy29FOl9YNG0-Ol_m0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.641436"], ["updated_at", "2015-02-27 21:11:10.641436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '275f78a0-bec5-11e4-ad5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '27606314-bec5-11e4-a84b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "275f78a0-bec5-11e4-ad5c-705681abff85"], ["organization_id", "27606314-bec5-11e4-a84b-705681abff85"], ["created_at", "2015-02-27 21:11:10.644607"], ["updated_at", "2015-02-27 21:11:10.644607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:10.651954' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8VRScPTgAt_fW4P3JeSMa2rYSDy29FOl9YNG0-Ol_m0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:10.653449"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:10.654379"], ["id", "275fea6a-bec5-11e4-be93-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "275f78a0-bec5-11e4-ad5c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$H1brVR9QcVF20WmuQCgKDuFu2J7HJsRH2Xy4KzS2Cf97CGmKqN2fq"], ["created_at", "2015-02-27 21:11:10.675322"], ["updated_at", "2015-02-27 21:11:10.675322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.676909"], ["user_id", "276591c2-bec5-11e4-bb72-705681abff85"], ["created_at", "2015-02-27 21:11:10.678158"], ["updated_at", "2015-02-27 21:11:10.678158"], ["token", "hqFaOmis0HeXjlSgEzbU6SV8hiNjEmhxyrqIMIOh0hQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.682197"], ["updated_at", "2015-02-27 21:11:10.682197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '276591c2-bec5-11e4-bb72-705681abff85' AND "clubhouse_memberships"."organization_id" = '27669c70-bec5-11e4-b38a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "276591c2-bec5-11e4-bb72-705681abff85"], ["organization_id", "27669c70-bec5-11e4-b38a-705681abff85"], ["created_at", "2015-02-27 21:11:10.685936"], ["updated_at", "2015-02-27 21:11:10.685936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:10.691450' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hqFaOmis0HeXjlSgEzbU6SV8hiNjEmhxyrqIMIOh0hQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:10.692890"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:10.693906"], ["id", "27662600-bec5-11e4-be01-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "276591c2-bec5-11e4-bb72-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.698289"], ["updated_at", "2015-02-27 21:11:10.698289"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "276913f6-bec5-11e4-94f3-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '276591c2-bec5-11e4-bb72-705681abff85' AND "clubhouse_memberships"."organization_id" = '276913f6-bec5-11e4-94f3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "276591c2-bec5-11e4-bb72-705681abff85"], ["admin", "t"], ["organization_id", "276913f6-bec5-11e4-94f3-705681abff85"], ["created_at", "2015-02-27 21:11:10.704439"], ["updated_at", "2015-02-27 21:11:10.704439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Gtdg/MYBemCDznZTlqdb9OfuR.AGu8MNEtmeT25I2XQAvyv8Ih5MC"], ["created_at", "2015-02-27 21:11:10.713763"], ["updated_at", "2015-02-27 21:11:10.713763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.715769"], ["user_id", "276b7682-bec5-11e4-98c1-705681abff85"], ["created_at", "2015-02-27 21:11:10.716632"], ["updated_at", "2015-02-27 21:11:10.716632"], ["token", "SXuOUEAf6zUCq6nDCSRnahMDRfgy0YFm7J4FiRDaOog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.720117"], ["updated_at", "2015-02-27 21:11:10.720117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '276b7682-bec5-11e4-98c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '276c6772-bec5-11e4-a289-705681abff85') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "276b7682-bec5-11e4-98c1-705681abff85"], ["organization_id", "276c6772-bec5-11e4-a289-705681abff85"], ["created_at", "2015-02-27 21:11:10.723442"], ["updated_at", "2015-02-27 21:11:10.723442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$iEncUPK3QjbQHydFUxdPFuEGEaSBeNwFiz2riMRMhCKttfj6cAPwq"], ["created_at", "2015-02-27 21:11:10.740518"], ["updated_at", "2015-02-27 21:11:10.740518"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.743298"], ["user_id", "276f9dfc-bec5-11e4-8767-705681abff85"], ["created_at", "2015-02-27 21:11:10.744690"], ["updated_at", "2015-02-27 21:11:10.744690"], ["token", "hs3J1NCe-Os5Hue3EzvyJsNqsxden9HRu2jtu5a3eJk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.750552"], ["updated_at", "2015-02-27 21:11:10.750552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '276f9dfc-bec5-11e4-8767-705681abff85' AND "clubhouse_memberships"."organization_id" = '27710cf0-bec5-11e4-8015-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "276f9dfc-bec5-11e4-8767-705681abff85"], ["organization_id", "27710cf0-bec5-11e4-8015-705681abff85"], ["created_at", "2015-02-27 21:11:10.754156"], ["updated_at", "2015-02-27 21:11:10.754156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-11" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-11", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:10.759284' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hs3J1NCe-Os5Hue3EzvyJsNqsxden9HRu2jtu5a3eJk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:10.760691"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:10.761657"], ["id", "27703744-bec5-11e4-8a00-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "276f9dfc-bec5-11e4-8767-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "276f9dfc-bec5-11e4-8767-705681abff85"], ["id", nil]] Completed 404 Not Found in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$k7KdUdr2MJmU4Du4DGoLmeHrWMLzN09cWZpaCpD5wR8geNPNcnuIe"], ["created_at", "2015-02-27 21:11:10.772755"], ["updated_at", "2015-02-27 21:11:10.772755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.774505"], ["user_id", "277473c2-bec5-11e4-91b1-705681abff85"], ["created_at", "2015-02-27 21:11:10.775568"], ["updated_at", "2015-02-27 21:11:10.775568"], ["token", "MX6KmEHiBnqc8Vqke6K1nHlNz8uVBx6ZDOA5tZ3B8bQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.779030"], ["updated_at", "2015-02-27 21:11:10.779030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '277473c2-bec5-11e4-91b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '277564a8-bec5-11e4-92ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "277473c2-bec5-11e4-91b1-705681abff85"], ["organization_id", "277564a8-bec5-11e4-92ae-705681abff85"], ["created_at", "2015-02-27 21:11:10.782439"], ["updated_at", "2015-02-27 21:11:10.782439"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-12" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-12", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:10.787980' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MX6KmEHiBnqc8Vqke6K1nHlNz8uVBx6ZDOA5tZ3B8bQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:10.789869"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:10.791015"], ["id", "2774e7b2-bec5-11e4-b093-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "277473c2-bec5-11e4-91b1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "277473c2-bec5-11e4-91b1-705681abff85"], ["id", nil]] Completed 404 Not Found in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$dHFTr3TU60oOI3OB9NGfQ.1ZrF25Bg4gW548zfEgJBIa9wS9S6CNK"], ["created_at", "2015-02-27 21:11:10.800293"], ["updated_at", "2015-02-27 21:11:10.800293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.802309"], ["user_id", "2778a51e-bec5-11e4-88f4-705681abff85"], ["created_at", "2015-02-27 21:11:10.803496"], ["updated_at", "2015-02-27 21:11:10.803496"], ["token", "FohfVYd2q2sNnhnx6kTTvlWk64WlGihpVpOc1-KnTEY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.808239"], ["updated_at", "2015-02-27 21:11:10.808239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2778a51e-bec5-11e4-88f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '2779dbbe-bec5-11e4-9c68-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2778a51e-bec5-11e4-88f4-705681abff85"], ["organization_id", "2779dbbe-bec5-11e4-9c68-705681abff85"], ["created_at", "2015-02-27 21:11:10.811822"], ["updated_at", "2015-02-27 21:11:10.811822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/2779dbbe-bec5-11e4-9c68-705681abff85" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"2779dbbe-bec5-11e4-9c68-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:10.823307' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FohfVYd2q2sNnhnx6kTTvlWk64WlGihpVpOc1-KnTEY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:10.824813"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:10.825776"], ["id", "27793bfa-bec5-11e4-a824-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2778a51e-bec5-11e4-88f4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "2778a51e-bec5-11e4-88f4-705681abff85"], ["id", "2779dbbe-bec5-11e4-9c68-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (3.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$2wIrq6y09l.HIebML0uuzeoNz8EUxwan9OlZS0HA5zTXsQx5g2aiS"], ["created_at", "2015-02-27 21:11:10.836540"], ["updated_at", "2015-02-27 21:11:10.836540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.841644"], ["user_id", "277e3074-bec5-11e4-ae38-705681abff85"], ["created_at", "2015-02-27 21:11:10.842539"], ["updated_at", "2015-02-27 21:11:10.842539"], ["token", "Q2Dx6j8SJqPZdy3IbmAB2CHgvlpLg15XEm0yt1791T8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.846284"], ["updated_at", "2015-02-27 21:11:10.846284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '277e3074-bec5-11e4-ae38-705681abff85' AND "clubhouse_memberships"."organization_id" = '277fa6ac-bec5-11e4-96d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "277e3074-bec5-11e4-ae38-705681abff85"], ["organization_id", "277fa6ac-bec5-11e4-96d0-705681abff85"], ["created_at", "2015-02-27 21:11:10.849533"], ["updated_at", "2015-02-27 21:11:10.849533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$ivf6FbuSCxzW1VxWLho.geOvmzgPtqCqwVnpRO7GYYIWRBKJopHoG"], ["created_at", "2015-02-27 21:11:10.862337"], ["updated_at", "2015-02-27 21:11:10.862337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.863922"], ["user_id", "27821ab8-bec5-11e4-b1db-705681abff85"], ["created_at", "2015-02-27 21:11:10.864713"], ["updated_at", "2015-02-27 21:11:10.864713"], ["token", "0nuQVLkqeSXkpl_6QWlQ1rEzL9CleE4HOHLZ9TQ0cj8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.868295"], ["updated_at", "2015-02-27 21:11:10.868295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '27821ab8-bec5-11e4-b1db-705681abff85' AND "clubhouse_memberships"."organization_id" = '27830914-bec5-11e4-a7f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "27821ab8-bec5-11e4-b1db-705681abff85"], ["organization_id", "27830914-bec5-11e4-a7f5-705681abff85"], ["created_at", "2015-02-27 21:11:10.872432"], ["updated_at", "2015-02-27 21:11:10.872432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$GEEewzNxdaaYX.14NCiCuuO2s6vSewe5tSBovGtKMCpPEQrZ8aDt6"], ["created_at", "2015-02-27 21:11:10.886694"], ["updated_at", "2015-02-27 21:11:10.886694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.888607"], ["user_id", "2785d680-bec5-11e4-9317-705681abff85"], ["created_at", "2015-02-27 21:11:10.889378"], ["updated_at", "2015-02-27 21:11:10.889378"], ["token", "BWF4a9Lnjshzw15fTk67UpjETTL5Z_WEmUmRik0CC9A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.893033"], ["updated_at", "2015-02-27 21:11:10.893033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2785d680-bec5-11e4-9317-705681abff85' AND "clubhouse_memberships"."organization_id" = '2786c82e-bec5-11e4-af2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2785d680-bec5-11e4-9317-705681abff85"], ["organization_id", "2786c82e-bec5-11e4-af2a-705681abff85"], ["created_at", "2015-02-27 21:11:10.896210"], ["updated_at", "2015-02-27 21:11:10.896210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/2786c82e-bec5-11e4-af2a-705681abff85" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"2786c82e-bec5-11e4-af2a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:10.900698' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BWF4a9Lnjshzw15fTk67UpjETTL5Z_WEmUmRik0CC9A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:10.902690"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:10.903848"], ["id", "278642a0-bec5-11e4-917e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2785d680-bec5-11e4-9317-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "2785d680-bec5-11e4-9317-705681abff85"], ["id", "2786c82e-bec5-11e4-af2a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2786c82e-bec5-11e4-af2a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$VvgCCjDhEClgT4nLQC6BGuL0PPxAi5dsrAWJNu.hBfx/tOmS41s4y"], ["created_at", "2015-02-27 21:11:10.917318"], ["updated_at", "2015-02-27 21:11:10.917318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:10.919340"], ["user_id", "278a864e-bec5-11e4-80d8-705681abff85"], ["created_at", "2015-02-27 21:11:10.920308"], ["updated_at", "2015-02-27 21:11:10.920308"], ["token", "tNpYZQUfCf8bvzpasJeSNsWGOAJjb90CBqYrAI1bAf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:10.924149"], ["updated_at", "2015-02-27 21:11:10.924149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '278a864e-bec5-11e4-80d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '278b8a58-bec5-11e4-b239-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "278a864e-bec5-11e4-80d8-705681abff85"], ["organization_id", "278b8a58-bec5-11e4-b239-705681abff85"], ["created_at", "2015-02-27 21:11:10.927470"], ["updated_at", "2015-02-27 21:11:10.927470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/278b8a58-bec5-11e4-b239-705681abff85" for 127.0.0.1 at 2015-02-27 13:11:10 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"278b8a58-bec5-11e4-b239-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:10.931878' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tNpYZQUfCf8bvzpasJeSNsWGOAJjb90CBqYrAI1bAf4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:10.933770"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:10.935585"], ["id", "278b075e-bec5-11e4-a38e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "278a864e-bec5-11e4-80d8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "278a864e-bec5-11e4-80d8-705681abff85"], ["id", "278b8a58-bec5-11e4-b239-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '278b8a58-bec5-11e4-b239-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:11:10.942121"], ["id", "278b8a58-bec5-11e4-b239-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (2.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$K3KHkdJRiE9Sj0jU6jiUz.qCn0Aq/b6eo6Lbqv26O2gFAoNECSOQ."], ["created_at", "2015-02-27 21:11:26.193514"], ["updated_at", "2015-02-27 21:11:26.193514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.206248"], ["user_id", "30a5a592-bec5-11e4-a1bb-705681abff85"], ["created_at", "2015-02-27 21:11:26.218721"], ["updated_at", "2015-02-27 21:11:26.218721"], ["token", "tsKqMV5I77-sqqsSk2f5TI9S1i8DnxuQVp00VVKYz70"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (5.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.350011"], ["updated_at", "2015-02-27 21:11:26.350011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30a5a592-bec5-11e4-a1bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '30bd9bd4-bec5-11e4-9abd-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30a5a592-bec5-11e4-a1bb-705681abff85"], ["organization_id", "30bd9bd4-bec5-11e4-9abd-705681abff85"], ["created_at", "2015-02-27 21:11:26.378370"], ["updated_at", "2015-02-27 21:11:26.378370"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Uxx.EjqWGYDl.vC7gS544Oy0udtrO8zIQ5iuvjCwP3qC1/Zn4vHqe"], ["created_at", "2015-02-27 21:11:26.436026"], ["updated_at", "2015-02-27 21:11:26.436026"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.439772"], ["user_id", "30ca9d5c-bec5-11e4-bc7c-705681abff85"], ["created_at", "2015-02-27 21:11:26.441411"], ["updated_at", "2015-02-27 21:11:26.441411"], ["token", "cBS5V1I8ymifoZFV4rTSr4WyEXlLk6VibMeWiSYTRgA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.447427"], ["updated_at", "2015-02-27 21:11:26.447427"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30ca9d5c-bec5-11e4-bc7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '30cc5d18-bec5-11e4-bb4c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30ca9d5c-bec5-11e4-bc7c-705681abff85"], ["organization_id", "30cc5d18-bec5-11e4-bb4c-705681abff85"], ["created_at", "2015-02-27 21:11:26.457356"], ["updated_at", "2015-02-27 21:11:26.457356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/30cc5d18-bec5-11e4-bb4c-705681abff85" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"30cc5d18-bec5-11e4-bb4c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:26.469995' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cBS5V1I8ymifoZFV4rTSr4WyEXlLk6VibMeWiSYTRgA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:26.487895"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:26.489256"], ["id", "30cb6d18-bec5-11e4-be7c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30ca9d5c-bec5-11e4-bc7c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "30ca9d5c-bec5-11e4-bc7c-705681abff85"], ["id", "30cc5d18-bec5-11e4-bb4c-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '30cc5d18-bec5-11e4-bb4c-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 62ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$xV79.ZHJCt6UQHedCQv/l.uF0dNkH3.bSyZO8vG5mFjIEVItVkkoi"], ["created_at", "2015-02-27 21:11:26.540149"], ["updated_at", "2015-02-27 21:11:26.540149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.542961"], ["user_id", "30da6fd4-bec5-11e4-b49d-705681abff85"], ["created_at", "2015-02-27 21:11:26.543838"], ["updated_at", "2015-02-27 21:11:26.543838"], ["token", "NFkhueiWal2mSv5PQgJ3eSwUE8s-ns6a5-OqXnvF48w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.548572"], ["updated_at", "2015-02-27 21:11:26.548572"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30da6fd4-bec5-11e4-b49d-705681abff85' AND "clubhouse_memberships"."organization_id" = '30dbaa8e-bec5-11e4-8f5a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30da6fd4-bec5-11e4-b49d-705681abff85"], ["organization_id", "30dbaa8e-bec5-11e4-8f5a-705681abff85"], ["created_at", "2015-02-27 21:11:26.553073"], ["updated_at", "2015-02-27 21:11:26.553073"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/30dbaa8e-bec5-11e4-8f5a-705681abff85" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"30dbaa8e-bec5-11e4-8f5a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:26.561171' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NFkhueiWal2mSv5PQgJ3eSwUE8s-ns6a5-OqXnvF48w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (4.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:26.562907"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:26.564573"], ["id", "30db1038-bec5-11e4-8b90-705681abff85"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30da6fd4-bec5-11e4-b49d-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "30da6fd4-bec5-11e4-b49d-705681abff85"], ["id", "30dbaa8e-bec5-11e4-8f5a-705681abff85"]]  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '30dbaa8e-bec5-11e4-8f5a-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:11:26.582111"], ["id", "30dbaa8e-bec5-11e4-8f5a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 27ms (Views: 3.9ms | ActiveRecord: 8.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$QpNo/wYw56ACh29QqRbXeOko5J9lk/w/ew23hrLDLUB2KkGUSqr6e"], ["created_at", "2015-02-27 21:11:26.597767"], ["updated_at", "2015-02-27 21:11:26.597767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.600401"], ["user_id", "30e334c0-bec5-11e4-9cd8-705681abff85"], ["created_at", "2015-02-27 21:11:26.601244"], ["updated_at", "2015-02-27 21:11:26.601244"], ["token", "O8vWwzQhnVJab4EfAwCYCpHqSV5K6KUF0c_OYuiWFOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.604994"], ["updated_at", "2015-02-27 21:11:26.604994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30e334c0-bec5-11e4-9cd8-705681abff85' AND "clubhouse_memberships"."organization_id" = '30e43ece-bec5-11e4-b0de-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30e334c0-bec5-11e4-9cd8-705681abff85"], ["organization_id", "30e43ece-bec5-11e4-b0de-705681abff85"], ["created_at", "2015-02-27 21:11:26.608693"], ["updated_at", "2015-02-27 21:11:26.608693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$GKMXPW7N5HxWxYW4RNi3CuiSLnEudSQZHFIKQ3tqP8qLCwrf.B0yW"], ["created_at", "2015-02-27 21:11:26.622511"], ["updated_at", "2015-02-27 21:11:26.622511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.624865"], ["user_id", "30e6f920-bec5-11e4-b82c-705681abff85"], ["created_at", "2015-02-27 21:11:26.626569"], ["updated_at", "2015-02-27 21:11:26.626569"], ["token", "z52veg2c7InOnBMUgyOiqbGrSS5iS66kHvGm2y4HQ4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.631042"], ["updated_at", "2015-02-27 21:11:26.631042"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30e6f920-bec5-11e4-b82c-705681abff85' AND "clubhouse_memberships"."organization_id" = '30e83f1a-bec5-11e4-99e4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30e6f920-bec5-11e4-b82c-705681abff85"], ["organization_id", "30e83f1a-bec5-11e4-99e4-705681abff85"], ["created_at", "2015-02-27 21:11:26.637817"], ["updated_at", "2015-02-27 21:11:26.637817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-5" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-5", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:26.644329' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z52veg2c7InOnBMUgyOiqbGrSS5iS66kHvGm2y4HQ4E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:26.646217"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:26.647447"], ["id", "30e7a866-bec5-11e4-a35e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30e6f920-bec5-11e4-b82c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "30e6f920-bec5-11e4-b82c-705681abff85"], ["name", "org-5"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '30e83f1a-bec5-11e4-99e4-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$k2m258EhRzqB68B2WJYe7ev/8JC7rFdCSTvJTZET3hZUZdeFMW7Si"], ["created_at", "2015-02-27 21:11:26.662533"], ["updated_at", "2015-02-27 21:11:26.662533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.664698"], ["user_id", "30ed0e50-bec5-11e4-a402-705681abff85"], ["created_at", "2015-02-27 21:11:26.665722"], ["updated_at", "2015-02-27 21:11:26.665722"], ["token", "ajWY2uqIWw4rAabgoP4UIK2Ys3FDmsJnbTMpJBGwGVg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.670271"], ["updated_at", "2015-02-27 21:11:26.670271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30ed0e50-bec5-11e4-a402-705681abff85' AND "clubhouse_memberships"."organization_id" = '30ee41da-bec5-11e4-b4da-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30ed0e50-bec5-11e4-a402-705681abff85"], ["organization_id", "30ee41da-bec5-11e4-b4da-705681abff85"], ["created_at", "2015-02-27 21:11:26.674651"], ["updated_at", "2015-02-27 21:11:26.674651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-6" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-6", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:26.680628' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ajWY2uqIWw4rAabgoP4UIK2Ys3FDmsJnbTMpJBGwGVg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:26.682256"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:26.683471"], ["id", "30ed9d02-bec5-11e4-81b0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30ed0e50-bec5-11e4-a402-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "30ed0e50-bec5-11e4-a402-705681abff85"], ["name", "org-6"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '30ee41da-bec5-11e4-b4da-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:11:26.690617"], ["id", "30ee41da-bec5-11e4-b4da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.3ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$3u4nNvWCnolWZs23ViUw9.K16SBZAs6RWDar4F.Oc7aM7v1yYE9PG"], ["created_at", "2015-02-27 21:11:26.700562"], ["updated_at", "2015-02-27 21:11:26.700562"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.703712"], ["user_id", "30f2e410-bec5-11e4-bf04-705681abff85"], ["created_at", "2015-02-27 21:11:26.704819"], ["updated_at", "2015-02-27 21:11:26.704819"], ["token", "CQ6pxKTB16D2a9wMex_Q4CnkiM-5PGFQh4zFYXSyXuU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.709011"], ["updated_at", "2015-02-27 21:11:26.709011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30f2e410-bec5-11e4-bf04-705681abff85' AND "clubhouse_memberships"."organization_id" = '30f426a4-bec5-11e4-8812-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30f2e410-bec5-11e4-bf04-705681abff85"], ["organization_id", "30f426a4-bec5-11e4-8812-705681abff85"], ["created_at", "2015-02-27 21:11:26.712874"], ["updated_at", "2015-02-27 21:11:26.712874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$PINMDzOUt4KGf3Y4ADG83egvOQYxrPb833c/vcLzm6YlIw1gRrStO"], ["created_at", "2015-02-27 21:11:26.725380"], ["updated_at", "2015-02-27 21:11:26.725380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.726973"], ["user_id", "30f69cd6-bec5-11e4-8152-705681abff85"], ["created_at", "2015-02-27 21:11:26.727746"], ["updated_at", "2015-02-27 21:11:26.727746"], ["token", "EV6hG6GvaFVVi2ooYtcwtkznzinP4h754EYbTSgZBuk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.730962"], ["updated_at", "2015-02-27 21:11:26.730962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30f69cd6-bec5-11e4-8152-705681abff85' AND "clubhouse_memberships"."organization_id" = '30f774b2-bec5-11e4-804e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30f69cd6-bec5-11e4-8152-705681abff85"], ["organization_id", "30f774b2-bec5-11e4-804e-705681abff85"], ["created_at", "2015-02-27 21:11:26.734212"], ["updated_at", "2015-02-27 21:11:26.734212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:26.739290' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EV6hG6GvaFVVi2ooYtcwtkznzinP4h754EYbTSgZBuk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:26.740669"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:26.741649"], ["id", "30f6feba-bec5-11e4-af1e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30f69cd6-bec5-11e4-8152-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$AcaTYqC1PWHuwGpCj5kEM.1WFTtfvESb6YG5aNCQgUOZGLKbEdhW."], ["created_at", "2015-02-27 21:11:26.755449"], ["updated_at", "2015-02-27 21:11:26.755449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.757099"], ["user_id", "30fb34b2-bec5-11e4-825a-705681abff85"], ["created_at", "2015-02-27 21:11:26.757907"], ["updated_at", "2015-02-27 21:11:26.757907"], ["token", "3MToButOQxFzxmA4pMVJQ--b83QveRUJH437OYjtFjk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.761085"], ["updated_at", "2015-02-27 21:11:26.761085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30fb34b2-bec5-11e4-825a-705681abff85' AND "clubhouse_memberships"."organization_id" = '30fc0ca2-bec5-11e4-866e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30fb34b2-bec5-11e4-825a-705681abff85"], ["organization_id", "30fc0ca2-bec5-11e4-866e-705681abff85"], ["created_at", "2015-02-27 21:11:26.764242"], ["updated_at", "2015-02-27 21:11:26.764242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:26.768634' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3MToButOQxFzxmA4pMVJQ--b83QveRUJH437OYjtFjk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:26.770051"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:26.771048"], ["id", "30fb981c-bec5-11e4-82e9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30fb34b2-bec5-11e4-825a-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.775097"], ["updated_at", "2015-02-27 21:11:26.775097"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "30fe33b0-bec5-11e4-bcc4-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30fb34b2-bec5-11e4-825a-705681abff85' AND "clubhouse_memberships"."organization_id" = '30fe33b0-bec5-11e4-bcc4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "30fb34b2-bec5-11e4-825a-705681abff85"], ["admin", "t"], ["organization_id", "30fe33b0-bec5-11e4-bcc4-705681abff85"], ["created_at", "2015-02-27 21:11:26.781758"], ["updated_at", "2015-02-27 21:11:26.781758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.6ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (4.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$KK9P8ninhRcy9RwzkQakyODrCIc1EZUmJUACGbvpsOPcEdoSYO1WW"], ["created_at", "2015-02-27 21:11:26.791163"], ["updated_at", "2015-02-27 21:11:26.791163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.796772"], ["user_id", "3100a74e-bec5-11e4-b78f-705681abff85"], ["created_at", "2015-02-27 21:11:26.797636"], ["updated_at", "2015-02-27 21:11:26.797636"], ["token", "r4tMJ5A0obyRreubnQR_9GcRTF4wJYP7un3u9xSY2hw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.801761"], ["updated_at", "2015-02-27 21:11:26.801761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3100a74e-bec5-11e4-b78f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3107e6bc-bec5-11e4-827a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3100a74e-bec5-11e4-b78f-705681abff85"], ["organization_id", "3107e6bc-bec5-11e4-827a-705681abff85"], ["created_at", "2015-02-27 21:11:26.843726"], ["updated_at", "2015-02-27 21:11:26.843726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-10" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:26.848175' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r4tMJ5A0obyRreubnQR_9GcRTF4wJYP7un3u9xSY2hw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:26.850096"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:26.851346"], ["id", "3101ae0a-bec5-11e4-8e86-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3100a74e-bec5-11e4-b78f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "3100a74e-bec5-11e4-b78f-705681abff85"], ["name", "org-10"]] Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$DKOaUGKM7Coz0OYpsA.UGOS2/5AlFjYxIaymj6tkK2UuwpC/PxMvy"], ["created_at", "2015-02-27 21:11:26.862638"], ["updated_at", "2015-02-27 21:11:26.862638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.864236"], ["user_id", "310b8df8-bec5-11e4-b6a4-705681abff85"], ["created_at", "2015-02-27 21:11:26.865515"], ["updated_at", "2015-02-27 21:11:26.865515"], ["token", "K6CrMSqRs0yyykYSvkDAgwqpPdbxkPyE37tpTIlfb00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.869201"], ["updated_at", "2015-02-27 21:11:26.869201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '310b8df8-bec5-11e4-b6a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '310c8f0a-bec5-11e4-b879-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "310b8df8-bec5-11e4-b6a4-705681abff85"], ["organization_id", "310c8f0a-bec5-11e4-b879-705681abff85"], ["created_at", "2015-02-27 21:11:26.872695"], ["updated_at", "2015-02-27 21:11:26.872695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$XTzNRhgq5G6JoyXkDYHkveEabMfzgWBZjfY.SuZHt7G.Rmo3MFsFG"], ["created_at", "2015-02-27 21:11:26.884476"], ["updated_at", "2015-02-27 21:11:26.884476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.886123"], ["user_id", "310ee49e-bec5-11e4-b78b-705681abff85"], ["created_at", "2015-02-27 21:11:26.886882"], ["updated_at", "2015-02-27 21:11:26.886882"], ["token", "8f78SPGfiRVBFxoVgue9lFsH7v8rG8c1Bk_VSm67-hM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.890115"], ["updated_at", "2015-02-27 21:11:26.890115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '310ee49e-bec5-11e4-b78b-705681abff85' AND "clubhouse_memberships"."organization_id" = '310fbe64-bec5-11e4-b7bb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "310ee49e-bec5-11e4-b78b-705681abff85"], ["organization_id", "310fbe64-bec5-11e4-b7bb-705681abff85"], ["created_at", "2015-02-27 21:11:26.893463"], ["updated_at", "2015-02-27 21:11:26.893463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$/dWYtOxm4OvyNbm5LjnbjuDMGdafjEWyPiXDn8GgeaQuwymJiQnIW"], ["created_at", "2015-02-27 21:11:26.898497"], ["updated_at", "2015-02-27 21:11:26.898497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.902570"], ["updated_at", "2015-02-27 21:11:26.902570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '311104ea-bec5-11e4-b0c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3111b35e-bec5-11e4-9800-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "311104ea-bec5-11e4-b0c3-705681abff85"], ["organization_id", "3111b35e-bec5-11e4-9800-705681abff85"], ["created_at", "2015-02-27 21:11:26.906459"], ["updated_at", "2015-02-27 21:11:26.906459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:26.910829' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8f78SPGfiRVBFxoVgue9lFsH7v8rG8c1Bk_VSm67-hM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:26.912368"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:26.914299"], ["id", "310f47fe-bec5-11e4-bdc1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "310ee49e-bec5-11e4-b78b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "310ee49e-bec5-11e4-b78b-705681abff85"]] Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$RQQv6FJR/QsTXjn0uMd6nelbgDh8x2BIcakaQXyhpz7mbIiwkgKqO"], ["created_at", "2015-02-27 21:11:26.926840"], ["updated_at", "2015-02-27 21:11:26.926840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.928429"], ["user_id", "31155a90-bec5-11e4-af45-705681abff85"], ["created_at", "2015-02-27 21:11:26.929205"], ["updated_at", "2015-02-27 21:11:26.929205"], ["token", "hLBb-Ws0C_u-lVcManNJFsTE1HLqX8vERmKH_uM2nsE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.932394"], ["updated_at", "2015-02-27 21:11:26.932394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '31155a90-bec5-11e4-af45-705681abff85' AND "clubhouse_memberships"."organization_id" = '31163078-bec5-11e4-80c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "31155a90-bec5-11e4-af45-705681abff85"], ["organization_id", "31163078-bec5-11e4-80c6-705681abff85"], ["created_at", "2015-02-27 21:11:26.936211"], ["updated_at", "2015-02-27 21:11:26.936211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$vrguAF43XCODgGZE0vc81O1HSgf6ajgip58tH4AdZsfs6y1zDuSMO"], ["created_at", "2015-02-27 21:11:26.940571"], ["updated_at", "2015-02-27 21:11:26.940571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.943494"], ["updated_at", "2015-02-27 21:11:26.943494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '31176ff6-bec5-11e4-9609-705681abff85' AND "clubhouse_memberships"."organization_id" = '3117e184-bec5-11e4-a18c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "31176ff6-bec5-11e4-9609-705681abff85"], ["organization_id", "3117e184-bec5-11e4-a18c-705681abff85"], ["created_at", "2015-02-27 21:11:26.946590"], ["updated_at", "2015-02-27 21:11:26.946590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$XW317QA24BE7xzEgxHBgmOs4Ki9AqOLyX5/7SwmZDVwF//FxIhdPO"], ["created_at", "2015-02-27 21:11:26.959070"], ["updated_at", "2015-02-27 21:11:26.959070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:26.960854"], ["user_id", "311a49c4-bec5-11e4-9ad0-705681abff85"], ["created_at", "2015-02-27 21:11:26.961664"], ["updated_at", "2015-02-27 21:11:26.961664"], ["token", "Y3rJrb3DRMO_yzyQVBmOOw1EX5n19W1ZsbIqD_0kONg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (9.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:26.977383"], ["updated_at", "2015-02-27 21:11:26.977383"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '311a49c4-bec5-11e4-9ad0-705681abff85' AND "clubhouse_memberships"."organization_id" = '311d32ba-bec5-11e4-ba6f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "311a49c4-bec5-11e4-9ad0-705681abff85"], ["organization_id", "311d32ba-bec5-11e4-ba6f-705681abff85"], ["created_at", "2015-02-27 21:11:26.984622"], ["updated_at", "2015-02-27 21:11:26.984622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/311d32ba-bec5-11e4-ba6f-705681abff85" for 127.0.0.1 at 2015-02-27 13:11:26 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"311d32ba-bec5-11e4-ba6f-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:11:26.992650' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y3rJrb3DRMO_yzyQVBmOOw1EX5n19W1ZsbIqD_0kONg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:11:26.994190"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:11:26.995272"], ["id", "311ab1de-bec5-11e4-97b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "311a49c4-bec5-11e4-9ad0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "311a49c4-bec5-11e4-9ad0-705681abff85"], ["id", "311d32ba-bec5-11e4-ba6f-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$C1Iypb/KNh8su1jAwUZpiOoleybyFAWFBd9p.M34BGvqgXg1h8I3W"], ["created_at", "2015-02-27 21:11:27.007205"], ["updated_at", "2015-02-27 21:11:27.007205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:11:27.009057"], ["user_id", "3121a0b6-bec5-11e4-9b26-705681abff85"], ["created_at", "2015-02-27 21:11:27.009871"], ["updated_at", "2015-02-27 21:11:27.009871"], ["token", "PVQChMy6Sg-QPb6J98tr_-rwxWi8XXYKvf4tonSOlsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:11:27.013155"], ["updated_at", "2015-02-27 21:11:27.013155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3121a0b6-bec5-11e4-9b26-705681abff85' AND "clubhouse_memberships"."organization_id" = '312283a0-bec5-11e4-b82a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3121a0b6-bec5-11e4-9b26-705681abff85"], ["organization_id", "312283a0-bec5-11e4-b82a-705681abff85"], ["created_at", "2015-02-27 21:11:27.016651"], ["updated_at", "2015-02-27 21:11:27.016651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:11:27 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$9bfwpcfYusW1syQrNUk0w.l70.I30yvdtEDo3XrRm09QoPAqfp8Gm"], ["created_at", "2015-02-27 21:15:29.534154"], ["updated_at", "2015-02-27 21:15:29.534154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (13.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:29.551166"], ["user_id", "c1b07a76-bec5-11e4-8d92-705681abff85"], ["created_at", "2015-02-27 21:15:29.557430"], ["updated_at", "2015-02-27 21:15:29.557430"], ["token", "mMIF_yQ6d6Vw_WCJegN0MBa8AnWcZLd_v2Q0rJXSKyI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.581150"], ["updated_at", "2015-02-27 21:15:29.581150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1b07a76-bec5-11e4-8d92-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1b795f4-bec5-11e4-ab0e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1b07a76-bec5-11e4-8d92-705681abff85"], ["organization_id", "c1b795f4-bec5-11e4-ab0e-705681abff85"], ["created_at", "2015-02-27 21:15:29.594598"], ["updated_at", "2015-02-27 21:15:29.594598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:15:29 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$JXNK0dmhbVMGLvcP4xWMueA4Niz5g97IKDyd.JbDO9usWqXT4Kbym"], ["created_at", "2015-02-27 21:15:29.658884"], ["updated_at", "2015-02-27 21:15:29.658884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:29.660691"], ["user_id", "c1c35588-bec5-11e4-9411-705681abff85"], ["created_at", "2015-02-27 21:15:29.661466"], ["updated_at", "2015-02-27 21:15:29.661466"], ["token", "SaIdEPYH1xkiEKpRp6vNP4bV0Rjl9mbE4AwF29C28XQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.665247"], ["updated_at", "2015-02-27 21:15:29.665247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1c35588-bec5-11e4-9411-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1c44e5c-bec5-11e4-b3eb-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1c35588-bec5-11e4-9411-705681abff85"], ["organization_id", "c1c44e5c-bec5-11e4-b3eb-705681abff85"], ["created_at", "2015-02-27 21:15:29.669075"], ["updated_at", "2015-02-27 21:15:29.669075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:15:29 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:15:29.675164' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SaIdEPYH1xkiEKpRp6vNP4bV0Rjl9mbE4AwF29C28XQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:15:29.682822"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:15:29.684090"], ["id", "c1c3c0cc-bec5-11e4-beb6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1c35588-bec5-11e4-9411-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.696872"], ["updated_at", "2015-02-27 21:15:29.696872"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c1c921ac-bec5-11e4-8819-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1c35588-bec5-11e4-9411-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1c921ac-bec5-11e4-8819-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c1c35588-bec5-11e4-9411-705681abff85"], ["admin", "t"], ["organization_id", "c1c921ac-bec5-11e4-8819-705681abff85"], ["created_at", "2015-02-27 21:15:29.708234"], ["updated_at", "2015-02-27 21:15:29.708234"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 37ms (Views: 1.6ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$ohwZ3.lPJAWPP2mXf.a.B.scomSGrofIdyTE88SOzccK76b3CuY/a"], ["created_at", "2015-02-27 21:15:29.719055"], ["updated_at", "2015-02-27 21:15:29.719055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:29.720680"], ["user_id", "c1cc8180-bec5-11e4-8334-705681abff85"], ["created_at", "2015-02-27 21:15:29.721535"], ["updated_at", "2015-02-27 21:15:29.721535"], ["token", "RPWZ1p0ddrPxGWbCEMjc_xZBwFsz_4y5TAC8pB5Ud-k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.725320"], ["updated_at", "2015-02-27 21:15:29.725320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1cc8180-bec5-11e4-8334-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1cd755e-bec5-11e4-bb62-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1cc8180-bec5-11e4-8334-705681abff85"], ["organization_id", "c1cd755e-bec5-11e4-bb62-705681abff85"], ["created_at", "2015-02-27 21:15:29.728550"], ["updated_at", "2015-02-27 21:15:29.728550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:15:29 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:15:29.734852' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RPWZ1p0ddrPxGWbCEMjc_xZBwFsz_4y5TAC8pB5Ud-k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:15:29.736327"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:15:29.737272"], ["id", "c1cceb20-bec5-11e4-8886-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1cc8180-bec5-11e4-8334-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$dC2fUvw1vyKi0N5SzjdMkeADb4tDzgkJ.bfiU/T/zcln8MI6ViNp2"], ["created_at", "2015-02-27 21:15:29.757133"], ["updated_at", "2015-02-27 21:15:29.757133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:29.758831"], ["user_id", "c1d25452-bec5-11e4-8b67-705681abff85"], ["created_at", "2015-02-27 21:15:29.759631"], ["updated_at", "2015-02-27 21:15:29.759631"], ["token", "ggG9-C4dbj8EgNLTwq-sdycI8CwfF7zm0VZ7Aq_0DAQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.762794"], ["updated_at", "2015-02-27 21:15:29.762794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1d25452-bec5-11e4-8b67-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1d32da0-bec5-11e4-b86f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1d25452-bec5-11e4-8b67-705681abff85"], ["organization_id", "c1d32da0-bec5-11e4-b86f-705681abff85"], ["created_at", "2015-02-27 21:15:29.766496"], ["updated_at", "2015-02-27 21:15:29.766496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:15:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$RKgENtFni.xj6CuAN6DaJ.mzx1d3nBmFDIPwpp7AR09mxpnEQlZDW"], ["created_at", "2015-02-27 21:15:29.782346"], ["updated_at", "2015-02-27 21:15:29.782346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:29.784626"], ["user_id", "c1d64012-bec5-11e4-b28a-705681abff85"], ["created_at", "2015-02-27 21:15:29.785445"], ["updated_at", "2015-02-27 21:15:29.785445"], ["token", "tffj7dT4IiGgEksI4rYcmk7V42uswGgxVsIqL4jYcMg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.789282"], ["updated_at", "2015-02-27 21:15:29.789282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1d64012-bec5-11e4-b28a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1d73b7a-bec5-11e4-817d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1d64012-bec5-11e4-b28a-705681abff85"], ["organization_id", "c1d73b7a-bec5-11e4-817d-705681abff85"], ["created_at", "2015-02-27 21:15:29.793280"], ["updated_at", "2015-02-27 21:15:29.793280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-5" for 127.0.0.1 at 2015-02-27 13:15:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:15:29.797955' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tffj7dT4IiGgEksI4rYcmk7V42uswGgxVsIqL4jYcMg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:15:29.799295"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:15:29.800425"], ["id", "c1d6ac5a-bec5-11e4-9cc6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1d64012-bec5-11e4-b28a-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "c1d64012-bec5-11e4-b28a-705681abff85"], ["name", "org-5"]] Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$seTBsyPtCm/B/5OIKtZNruHM8Erv/u7yc3hVp6XTgNoJmhB4ZPKJm"], ["created_at", "2015-02-27 21:15:29.821208"], ["updated_at", "2015-02-27 21:15:29.821208"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:29.824101"], ["user_id", "c1dc3b84-bec5-11e4-a8f4-705681abff85"], ["created_at", "2015-02-27 21:15:29.825185"], ["updated_at", "2015-02-27 21:15:29.825185"], ["token", "zZB6N5IEd-8l79KeKTQfRB537swmWudsCjp0shZO1Q4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.829838"], ["updated_at", "2015-02-27 21:15:29.829838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1dc3b84-bec5-11e4-a8f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1dd6a2c-bec5-11e4-a38b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1dc3b84-bec5-11e4-a8f4-705681abff85"], ["organization_id", "c1dd6a2c-bec5-11e4-a38b-705681abff85"], ["created_at", "2015-02-27 21:15:29.833236"], ["updated_at", "2015-02-27 21:15:29.833236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$eYhVkQh9BmncfCwC0uqDpOkwLrU9CP9/zaO9Ed0LGImEzd655i29K"], ["created_at", "2015-02-27 21:15:29.837859"], ["updated_at", "2015-02-27 21:15:29.837859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.842627"], ["updated_at", "2015-02-27 21:15:29.842627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1deadc4-bec5-11e4-adf0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1df788a-bec5-11e4-bbbb-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1deadc4-bec5-11e4-adf0-705681abff85"], ["organization_id", "c1df788a-bec5-11e4-bbbb-705681abff85"], ["created_at", "2015-02-27 21:15:29.847952"], ["updated_at", "2015-02-27 21:15:29.847952"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:15:29 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$vcGQSdr119w.CaFlGVLlfeift0bk3BM1JCs3s/yjMvpSn0PpiBGzq"], ["created_at", "2015-02-27 21:15:29.867565"], ["updated_at", "2015-02-27 21:15:29.867565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:29.869483"], ["user_id", "c1e33146-bec5-11e4-bdcc-705681abff85"], ["created_at", "2015-02-27 21:15:29.870358"], ["updated_at", "2015-02-27 21:15:29.870358"], ["token", "_o_y98oH352sw2KwpjiTIJlc1PzgKZY4Ov9NNdAzsjI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.874117"], ["updated_at", "2015-02-27 21:15:29.874117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1e33146-bec5-11e4-bdcc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1e42ccc-bec5-11e4-98d2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1e33146-bec5-11e4-bdcc-705681abff85"], ["organization_id", "c1e42ccc-bec5-11e4-98d2-705681abff85"], ["created_at", "2015-02-27 21:15:29.877829"], ["updated_at", "2015-02-27 21:15:29.877829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$uDAnl2hgtiJlEqlWdc2DFeD/ESuVCTqUkFDiHGucBx2wKr9OF7gCu"], ["created_at", "2015-02-27 21:15:29.883340"], ["updated_at", "2015-02-27 21:15:29.883340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.889613"], ["updated_at", "2015-02-27 21:15:29.889613"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1e5bf24-bec5-11e4-8a09-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1e6a664-bec5-11e4-83ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1e5bf24-bec5-11e4-8a09-705681abff85"], ["organization_id", "c1e6a664-bec5-11e4-83ea-705681abff85"], ["created_at", "2015-02-27 21:15:29.898810"], ["updated_at", "2015-02-27 21:15:29.898810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:15:29 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:15:29.903769' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_o_y98oH352sw2KwpjiTIJlc1PzgKZY4Ov9NNdAzsjI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:15:29.905768"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:15:29.906885"], ["id", "c1e3a2de-bec5-11e4-97ea-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1e33146-bec5-11e4-bdcc-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c1e33146-bec5-11e4-bdcc-705681abff85"]] Completed 200 OK in 12ms (Views: 3.2ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$HS7r88s5c/M8exZp1NllDOi8WP9NLEKMo/94T35a/ChJ8DKUcuBPK"], ["created_at", "2015-02-27 21:15:29.924500"], ["updated_at", "2015-02-27 21:15:29.924500"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:29.927070"], ["user_id", "c1ebea7a-bec5-11e4-ab85-705681abff85"], ["created_at", "2015-02-27 21:15:29.927914"], ["updated_at", "2015-02-27 21:15:29.927914"], ["token", "v4ckwtBdJQ5jpdx-ns2OtCEy75PCCx4djgkNEeEVl7A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.931787"], ["updated_at", "2015-02-27 21:15:29.931787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1ebea7a-bec5-11e4-ab85-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1ecf7a8-bec5-11e4-ba97-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1ebea7a-bec5-11e4-ab85-705681abff85"], ["organization_id", "c1ecf7a8-bec5-11e4-ba97-705681abff85"], ["created_at", "2015-02-27 21:15:29.935195"], ["updated_at", "2015-02-27 21:15:29.935195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:15:29 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$wCUMVFB.55Yttr7AZBdInOvPxAXzJacS0hjc5fm.jz8jutsRS/5ye"], ["created_at", "2015-02-27 21:15:29.948594"], ["updated_at", "2015-02-27 21:15:29.948594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:29.951153"], ["user_id", "c1ef8b62-bec5-11e4-9577-705681abff85"], ["created_at", "2015-02-27 21:15:29.952409"], ["updated_at", "2015-02-27 21:15:29.952409"], ["token", "lGjxfZ_-DBS0OysuXo7w_-VJ4bsfNJ4_rc1ylaEmQ8Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:29.956378"], ["updated_at", "2015-02-27 21:15:29.956378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1ef8b62-bec5-11e4-9577-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1f0b92e-bec5-11e4-ba5f-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1ef8b62-bec5-11e4-9577-705681abff85"], ["organization_id", "c1f0b92e-bec5-11e4-ba5f-705681abff85"], ["created_at", "2015-02-27 21:15:29.980473"], ["updated_at", "2015-02-27 21:15:29.980473"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c1f0b92e-bec5-11e4-ba5f-705681abff85" for 127.0.0.1 at 2015-02-27 13:15:29 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"c1f0b92e-bec5-11e4-ba5f-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:15:29.998237' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lGjxfZ_-DBS0OysuXo7w_-VJ4bsfNJ4_rc1ylaEmQ8Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:15:30.000520"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:15:30.001748"], ["id", "c1f02d6a-bec5-11e4-bbf2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$hleufpOLjKIXSRXm.Vax7.d0nMvQita4LsI06km6AQ4ffceuoZ5uO"], ["created_at", "2015-02-27 21:15:30.011763"], ["updated_at", "2015-02-27 21:15:30.011763"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:30.018714"], ["user_id", "c1f9cc58-bec5-11e4-ac35-705681abff85"], ["created_at", "2015-02-27 21:15:30.027433"], ["updated_at", "2015-02-27 21:15:30.027433"], ["token", "AH4VJ5JVJqIKUpnCBPWLOFSMfqdHYFsrCg3SnduMDp0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:30.035634"], ["updated_at", "2015-02-27 21:15:30.035634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1f9cc58-bec5-11e4-ac35-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1fcfb94-bec5-11e4-89d9-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1f9cc58-bec5-11e4-ac35-705681abff85"], ["organization_id", "c1fcfb94-bec5-11e4-89d9-705681abff85"], ["created_at", "2015-02-27 21:15:30.043374"], ["updated_at", "2015-02-27 21:15:30.043374"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c1fcfb94-bec5-11e4-89d9-705681abff85" for 127.0.0.1 at 2015-02-27 13:15:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"c1fcfb94-bec5-11e4-89d9-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:15:30.057375' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AH4VJ5JVJqIKUpnCBPWLOFSMfqdHYFsrCg3SnduMDp0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:15:30.060037"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:15:30.062237"], ["id", "c1fbbd24-bec5-11e4-91af-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$g0BLkEAR9nsssTEa0vvEeek48EgG4Ba5AQCmdtaey.8m1UhVtahNm"], ["created_at", "2015-02-27 21:15:30.084334"], ["updated_at", "2015-02-27 21:15:30.084334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:30.087771"], ["user_id", "c2046a28-bec5-11e4-8423-705681abff85"], ["created_at", "2015-02-27 21:15:30.088713"], ["updated_at", "2015-02-27 21:15:30.088713"], ["token", "6fF8q6Hy2w2iNOtgBMntShpot3_8rDBA8WK3TbuOiVE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:30.093657"], ["updated_at", "2015-02-27 21:15:30.093657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2046a28-bec5-11e4-8423-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c205ac1c-bec5-11e4-bee1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c2046a28-bec5-11e4-8423-705681abff85"], ["organization_id", "c205ac1c-bec5-11e4-bee1-705681abff85"], ["created_at", "2015-02-27 21:15:30.097124"], ["updated_at", "2015-02-27 21:15:30.097124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:15:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$w1sxmy7AaaRhhIN0b1R9.e3eAQcoaHplgMPwFOuY1poKdSwxEWZH6"], ["created_at", "2015-02-27 21:15:30.115726"], ["updated_at", "2015-02-27 21:15:30.115726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:30.117308"], ["user_id", "c2090876-bec5-11e4-af44-705681abff85"], ["created_at", "2015-02-27 21:15:30.118085"], ["updated_at", "2015-02-27 21:15:30.118085"], ["token", "9aUHOvZCIYkcl8h3yDYk4jWjp_SIOmylg6X6vpuhKHA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:30.121859"], ["updated_at", "2015-02-27 21:15:30.121859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2090876-bec5-11e4-af44-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c20a053c-bec5-11e4-95b5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c2090876-bec5-11e4-af44-705681abff85"], ["organization_id", "c20a053c-bec5-11e4-95b5-705681abff85"], ["created_at", "2015-02-27 21:15:30.127062"], ["updated_at", "2015-02-27 21:15:30.127062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-14" for 127.0.0.1 at 2015-02-27 13:15:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-14", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:15:30.131900' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9aUHOvZCIYkcl8h3yDYk4jWjp_SIOmylg6X6vpuhKHA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:15:30.133252"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:15:30.134250"], ["id", "c2096a14-bec5-11e4-8ce4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$11Ni8FHJcQGDmHK49FsAuOnmdbjLzXdy2gMgJ72IKjCESQjShZm8i"], ["created_at", "2015-02-27 21:15:30.141371"], ["updated_at", "2015-02-27 21:15:30.141371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:30.143135"], ["user_id", "c20cf58a-bec5-11e4-b93b-705681abff85"], ["created_at", "2015-02-27 21:15:30.143925"], ["updated_at", "2015-02-27 21:15:30.143925"], ["token", "0w_96pJ0kQwcC_cByiwD1OpykJ1-7Hpj28QPkr43KPE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:30.147063"], ["updated_at", "2015-02-27 21:15:30.147063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c20cf58a-bec5-11e4-b93b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c20dccd0-bec5-11e4-9a9c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c20cf58a-bec5-11e4-b93b-705681abff85"], ["organization_id", "c20dccd0-bec5-11e4-9a9c-705681abff85"], ["created_at", "2015-02-27 21:15:30.150620"], ["updated_at", "2015-02-27 21:15:30.150620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-15" for 127.0.0.1 at 2015-02-27 13:15:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-15", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:15:30.155632' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0w_96pJ0kQwcC_cByiwD1OpykJ1-7Hpj28QPkr43KPE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:15:30.157074"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:15:30.158088"], ["id", "c20d5a8e-bec5-11e4-a441-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Z7Pvjac.ShswpzlCvpkMR.APpKsvjqEkkwDig/lfIHYsSIkcnvfwa"], ["created_at", "2015-02-27 21:15:30.166515"], ["updated_at", "2015-02-27 21:15:30.166515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:30.168124"], ["user_id", "c210c976-bec5-11e4-8a85-705681abff85"], ["created_at", "2015-02-27 21:15:30.168868"], ["updated_at", "2015-02-27 21:15:30.168868"], ["token", "JQClTqbFWBk0KfPeZd9srbuxS75ujKGP7cFmbAvy17E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:30.172293"], ["updated_at", "2015-02-27 21:15:30.172293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c210c976-bec5-11e4-8a85-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c211acd8-bec5-11e4-b456-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c210c976-bec5-11e4-8a85-705681abff85"], ["organization_id", "c211acd8-bec5-11e4-b456-705681abff85"], ["created_at", "2015-02-27 21:15:30.176700"], ["updated_at", "2015-02-27 21:15:30.176700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:15:30 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$zA93q5hmMslEoM9IuMPC0uJHWyqZClQZNgkq43R72GiP1.KM3VzWW"], ["created_at", "2015-02-27 21:15:30.190947"], ["updated_at", "2015-02-27 21:15:30.190947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:15:30.192623"], ["user_id", "c214843a-bec5-11e4-bc29-705681abff85"], ["created_at", "2015-02-27 21:15:30.193401"], ["updated_at", "2015-02-27 21:15:30.193401"], ["token", "HYcQCXbcTXPoBzYXYWWRwRYXBTRiGbboxjhumqjd5pQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:15:30.196506"], ["updated_at", "2015-02-27 21:15:30.196506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c214843a-bec5-11e4-bc29-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c21557ca-bec5-11e4-8811-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c214843a-bec5-11e4-bc29-705681abff85"], ["organization_id", "c21557ca-bec5-11e4-8811-705681abff85"], ["created_at", "2015-02-27 21:15:30.199803"], ["updated_at", "2015-02-27 21:15:30.199803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c21557ca-bec5-11e4-8811-705681abff85" for 127.0.0.1 at 2015-02-27 13:15:30 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"c21557ca-bec5-11e4-8811-705681abff85", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:15:30.204120' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HYcQCXbcTXPoBzYXYWWRwRYXBTRiGbboxjhumqjd5pQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:15:30.205652"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:15:30.206640"], ["id", "c214e83a-bec5-11e4-8d3a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c214843a-bec5-11e4-bc29-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "c214843a-bec5-11e4-bc29-705681abff85"], ["id", "c21557ca-bec5-11e4-8811-705681abff85"]] Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$un.y7wAE05.lbbz3NGMpwOgaI9zgr/6kShRlylukAPdrDRo8r4.06"], ["created_at", "2015-02-27 21:17:08.714408"], ["updated_at", "2015-02-27 21:17:08.714408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:08.723814"], ["user_id", "fcce2cc0-bec5-11e4-83c4-705681abff85"], ["created_at", "2015-02-27 21:17:08.729951"], ["updated_at", "2015-02-27 21:17:08.729951"], ["token", "L7JSuv6OcSZY5VE69qcvG1VHrsfloLXN1rzIK9qRxBE"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:08.749562"], ["updated_at", "2015-02-27 21:17:08.749562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fcce2cc0-bec5-11e4-83c4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fcd368f2-bec5-11e4-aff8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fcce2cc0-bec5-11e4-83c4-705681abff85"], ["organization_id", "fcd368f2-bec5-11e4-aff8-705681abff85"], ["created_at", "2015-02-27 21:17:08.760613"], ["updated_at", "2015-02-27 21:17:08.760613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:17:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$hj9M6.YDb5KQTuYGCBs0aOjfH5R.QxF3fMBaoid0juyjzVuTAbKZe"], ["created_at", "2015-02-27 21:17:08.793310"], ["updated_at", "2015-02-27 21:17:08.793310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:08.795011"], ["user_id", "fcda0bc6-bec5-11e4-bc36-705681abff85"], ["created_at", "2015-02-27 21:17:08.795810"], ["updated_at", "2015-02-27 21:17:08.795810"], ["token", "-aW5sFUFNaa0D30J61hf8oiwpRWtPd95H2_zxcYxO0E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:08.799116"], ["updated_at", "2015-02-27 21:17:08.799116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fcda0bc6-bec5-11e4-bc36-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fcdaeabe-bec5-11e4-ba05-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fcda0bc6-bec5-11e4-bc36-705681abff85"], ["organization_id", "fcdaeabe-bec5-11e4-ba05-705681abff85"], ["created_at", "2015-02-27 21:17:08.802346"], ["updated_at", "2015-02-27 21:17:08.802346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/fcdaeabe-bec5-11e4-ba05-705681abff85" for 127.0.0.1 at 2015-02-27 13:17:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"fcdaeabe-bec5-11e4-ba05-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:08.808826' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-aW5sFUFNaa0D30J61hf8oiwpRWtPd95H2_zxcYxO0E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:08.816031"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:08.817200"], ["id", "fcda70c0-bec5-11e4-8b2f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$GhHjlbeQpBozgUerZ.0UOeSFETSGddup6v.AugNBpR.C4LsXja8hq"], ["created_at", "2015-02-27 21:17:08.832893"], ["updated_at", "2015-02-27 21:17:08.832893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:08.834596"], ["user_id", "fce0173c-bec5-11e4-a08d-705681abff85"], ["created_at", "2015-02-27 21:17:08.835386"], ["updated_at", "2015-02-27 21:17:08.835386"], ["token", "PXPmgBZ3kU0l-4nBZ8ooOfpimeoRQiXmWFrcDqPQq7o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:08.838706"], ["updated_at", "2015-02-27 21:17:08.838706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fce0173c-bec5-11e4-a08d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fce101f6-bec5-11e4-b931-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fce0173c-bec5-11e4-a08d-705681abff85"], ["organization_id", "fce101f6-bec5-11e4-b931-705681abff85"], ["created_at", "2015-02-27 21:17:08.842538"], ["updated_at", "2015-02-27 21:17:08.842538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/fce101f6-bec5-11e4-b931-705681abff85" for 127.0.0.1 at 2015-02-27 13:17:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"fce101f6-bec5-11e4-b931-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:08.847780' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PXPmgBZ3kU0l-4nBZ8ooOfpimeoRQiXmWFrcDqPQq7o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:08.849199"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:08.850158"], ["id", "fce07ace-bec5-11e4-8797-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 39ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$dfWwHhR88Y5HpuEZ6YjD/.6WEgUuw.pEtZuez6CTx7tROsjHUZZQm"], ["created_at", "2015-02-27 21:17:08.891574"], ["updated_at", "2015-02-27 21:17:08.891574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:08.893139"], ["user_id", "fce90734-bec5-11e4-915f-705681abff85"], ["created_at", "2015-02-27 21:17:08.893901"], ["updated_at", "2015-02-27 21:17:08.893901"], ["token", "UausxF3ZbVyQQrGWBc5WkNlUDB0f7fyXqs7qn7BAtzI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:08.897299"], ["updated_at", "2015-02-27 21:17:08.897299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fce90734-bec5-11e4-915f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fce9e74e-bec5-11e4-9420-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fce90734-bec5-11e4-915f-705681abff85"], ["organization_id", "fce9e74e-bec5-11e4-9420-705681abff85"], ["created_at", "2015-02-27 21:17:08.900502"], ["updated_at", "2015-02-27 21:17:08.900502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$hseszAO..6GKE4YVl54JjuNQwTgFqcT8u.Kzuv6Q87Jh4G6MTHDsS"], ["created_at", "2015-02-27 21:17:08.906131"], ["updated_at", "2015-02-27 21:17:08.906131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:08.910328"], ["updated_at", "2015-02-27 21:17:08.910328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fceb43fa-bec5-11e4-a21b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fcebeb20-bec5-11e4-912d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fceb43fa-bec5-11e4-a21b-705681abff85"], ["organization_id", "fcebeb20-bec5-11e4-912d-705681abff85"], ["created_at", "2015-02-27 21:17:08.914938"], ["updated_at", "2015-02-27 21:17:08.914938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:17:08 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:08.920354' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UausxF3ZbVyQQrGWBc5WkNlUDB0f7fyXqs7qn7BAtzI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:08.921926"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:08.924140"], ["id", "fce96b16-bec5-11e4-8bef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fce90734-bec5-11e4-915f-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "fce90734-bec5-11e4-915f-705681abff85"]] Completed 200 OK in 27ms (Views: 4.1ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$h1V8FPsNmq2n2x/3Ves01u.mKGGQaOfIriyPXe45z8pm38Z5l4GM6"], ["created_at", "2015-02-27 21:17:08.954353"], ["updated_at", "2015-02-27 21:17:08.954353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:08.955925"], ["user_id", "fcf29cc2-bec5-11e4-90fd-705681abff85"], ["created_at", "2015-02-27 21:17:08.956780"], ["updated_at", "2015-02-27 21:17:08.956780"], ["token", "fXPnnykGwA-_91CqZa9WAhpz9Ig4XdlpkEOUe2w27TU"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:08.979039"], ["updated_at", "2015-02-27 21:17:08.979039"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fcf29cc2-bec5-11e4-90fd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fcf699e4-bec5-11e4-af12-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fcf29cc2-bec5-11e4-90fd-705681abff85"], ["organization_id", "fcf699e4-bec5-11e4-af12-705681abff85"], ["created_at", "2015-02-27 21:17:08.986553"], ["updated_at", "2015-02-27 21:17:08.986553"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$1YpgsPZB01i3I86wrD19BeVEORgelngb0Xr6RZ4qMM8hubtTQ0eUi"], ["created_at", "2015-02-27 21:17:08.994258"], ["updated_at", "2015-02-27 21:17:08.994258"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:08.997991"], ["updated_at", "2015-02-27 21:17:08.997991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fcf8b378-bec5-11e4-a361-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fcf943ba-bec5-11e4-9792-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fcf8b378-bec5-11e4-a361-705681abff85"], ["organization_id", "fcf943ba-bec5-11e4-9792-705681abff85"], ["created_at", "2015-02-27 21:17:09.001205"], ["updated_at", "2015-02-27 21:17:09.001205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$xt.pXbn4SBPbtzm9AbHK8eK/zR.kF5mF3j4PzjEeyeyCpvpPB90yS"], ["created_at", "2015-02-27 21:17:09.013338"], ["updated_at", "2015-02-27 21:17:09.013338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:09.015145"], ["user_id", "fcfb9b88-bec5-11e4-9158-705681abff85"], ["created_at", "2015-02-27 21:17:09.016162"], ["updated_at", "2015-02-27 21:17:09.016162"], ["token", "Is3Es8YaOhf1b2S7bdz867vQby_15QaL76pBqTHzWSk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.019767"], ["updated_at", "2015-02-27 21:17:09.019767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fcfb9b88-bec5-11e4-9158-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fcfc93c6-bec5-11e4-8a15-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fcfb9b88-bec5-11e4-9158-705681abff85"], ["organization_id", "fcfc93c6-bec5-11e4-8a15-705681abff85"], ["created_at", "2015-02-27 21:17:09.022795"], ["updated_at", "2015-02-27 21:17:09.022795"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$nwGpqzrVP9EyTT712tQNzelAr.0gcu854Kjz90UcwL49uTRgVpelq"], ["created_at", "2015-02-27 21:17:09.035163"], ["updated_at", "2015-02-27 21:17:09.035163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:09.036817"], ["user_id", "fcfef29c-bec5-11e4-b640-705681abff85"], ["created_at", "2015-02-27 21:17:09.037648"], ["updated_at", "2015-02-27 21:17:09.037648"], ["token", "1qQvhck3u-ZoUvZcoZuho6behawo9zcs5TABsrJO9HM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.040896"], ["updated_at", "2015-02-27 21:17:09.040896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fcfef29c-bec5-11e4-b640-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fcffcd48-bec5-11e4-9bb3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fcfef29c-bec5-11e4-b640-705681abff85"], ["organization_id", "fcffcd48-bec5-11e4-9bb3-705681abff85"], ["created_at", "2015-02-27 21:17:09.044515"], ["updated_at", "2015-02-27 21:17:09.044515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:09.050146' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1qQvhck3u-ZoUvZcoZuho6behawo9zcs5TABsrJO9HM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:09.051547"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:09.052488"], ["id", "fcff5a20-bec5-11e4-8b24-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$SsL5AQ8tqM8pJHJcslPSaeVuIfsf.2JCcHXIV1ZIroG7PYYn6K9i2"], ["created_at", "2015-02-27 21:17:09.063997"], ["updated_at", "2015-02-27 21:17:09.063997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:09.065564"], ["user_id", "fd03560c-bec5-11e4-ad7f-705681abff85"], ["created_at", "2015-02-27 21:17:09.066294"], ["updated_at", "2015-02-27 21:17:09.066294"], ["token", "eJk3m5ocdsuUE8MYOo3JtXpAAsthKs-s7_I2XWI2w1E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.069553"], ["updated_at", "2015-02-27 21:17:09.069553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fd03560c-bec5-11e4-ad7f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fd042e92-bec5-11e4-a2a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fd03560c-bec5-11e4-ad7f-705681abff85"], ["organization_id", "fd042e92-bec5-11e4-a2a0-705681abff85"], ["created_at", "2015-02-27 21:17:09.072767"], ["updated_at", "2015-02-27 21:17:09.072767"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:09.077369' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eJk3m5ocdsuUE8MYOo3JtXpAAsthKs-s7_I2XWI2w1E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:09.078801"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:09.079846"], ["id", "fd03b552-bec5-11e4-a674-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$curZqpqKy.vH.V2lzkQ5neGSPA6S9sh2hEeXbntcM/IoasGQX1UbG"], ["created_at", "2015-02-27 21:17:09.088482"], ["updated_at", "2015-02-27 21:17:09.088482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:09.090426"], ["user_id", "fd07126a-bec5-11e4-b444-705681abff85"], ["created_at", "2015-02-27 21:17:09.091286"], ["updated_at", "2015-02-27 21:17:09.091286"], ["token", "4oumkXuuT9NCUhigXhrzBimGrAst_sxpJzDbe7oofGU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.094872"], ["updated_at", "2015-02-27 21:17:09.094872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fd07126a-bec5-11e4-b444-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fd081dea-bec5-11e4-b95e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fd07126a-bec5-11e4-b444-705681abff85"], ["organization_id", "fd081dea-bec5-11e4-b95e-705681abff85"], ["created_at", "2015-02-27 21:17:09.100047"], ["updated_at", "2015-02-27 21:17:09.100047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$xe7N.LakPjnCmlD7UiGGhuuwNOKzvJZnf3WxrDWkelV4uFXLqFN5G"], ["created_at", "2015-02-27 21:17:09.112197"], ["updated_at", "2015-02-27 21:17:09.112197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:09.113955"], ["user_id", "fd0ab6d6-bec5-11e4-a135-705681abff85"], ["created_at", "2015-02-27 21:17:09.114721"], ["updated_at", "2015-02-27 21:17:09.114721"], ["token", "N1baSF1mEic8bRwhBNRJbhZWT27BSLjdfnVfp2fmCsk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.118315"], ["updated_at", "2015-02-27 21:17:09.118315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fd0ab6d6-bec5-11e4-a135-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fd0ba06e-bec5-11e4-98d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fd0ab6d6-bec5-11e4-a135-705681abff85"], ["organization_id", "fd0ba06e-bec5-11e4-98d5-705681abff85"], ["created_at", "2015-02-27 21:17:09.121553"], ["updated_at", "2015-02-27 21:17:09.121553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:09.125867' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N1baSF1mEic8bRwhBNRJbhZWT27BSLjdfnVfp2fmCsk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:09.127254"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:09.128420"], ["id", "fd0b1996-bec5-11e4-ba35-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fd0ab6d6-bec5-11e4-a135-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$zM0z6NUdKaxRYjZZUFc7/OY/R0pLOHC/aH2BZYKPl3gRFiZmP7Ygi"], ["created_at", "2015-02-27 21:17:09.151354"], ["updated_at", "2015-02-27 21:17:09.151354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:09.153407"], ["user_id", "fd10b70c-bec5-11e4-b9d9-705681abff85"], ["created_at", "2015-02-27 21:17:09.154281"], ["updated_at", "2015-02-27 21:17:09.154281"], ["token", "EoAdJnczDbEUmrlghubIXPwnRKDJK1Fb2CBmJYoHOhw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.157848"], ["updated_at", "2015-02-27 21:17:09.157848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fd10b70c-bec5-11e4-b9d9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fd11aa72-bec5-11e4-9c2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fd10b70c-bec5-11e4-b9d9-705681abff85"], ["organization_id", "fd11aa72-bec5-11e4-9c2a-705681abff85"], ["created_at", "2015-02-27 21:17:09.161607"], ["updated_at", "2015-02-27 21:17:09.161607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:09.166391' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EoAdJnczDbEUmrlghubIXPwnRKDJK1Fb2CBmJYoHOhw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:09.167956"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:09.168934"], ["id", "fd1126b0-bec5-11e4-bc5a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fd10b70c-bec5-11e4-b9d9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.174394"], ["updated_at", "2015-02-27 21:17:09.174394"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "fd143e54-bec5-11e4-8909-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fd10b70c-bec5-11e4-b9d9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fd143e54-bec5-11e4-8909-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fd10b70c-bec5-11e4-b9d9-705681abff85"], ["admin", "t"], ["organization_id", "fd143e54-bec5-11e4-8909-705681abff85"], ["created_at", "2015-02-27 21:17:09.180772"], ["updated_at", "2015-02-27 21:17:09.180772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.5ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$6qckdrKCl4V8cRQNeWcUhOfx/DlMoA6g5legQQO4u.YBx2NvGiMA."], ["created_at", "2015-02-27 21:17:09.189699"], ["updated_at", "2015-02-27 21:17:09.189699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:09.191770"], ["user_id", "fd168cc2-bec5-11e4-9162-705681abff85"], ["created_at", "2015-02-27 21:17:09.192865"], ["updated_at", "2015-02-27 21:17:09.192865"], ["token", "x5lzB6swFzK0AAkb4WB36tpuo3aOY3_dFFGMX-HWXL4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.197021"], ["updated_at", "2015-02-27 21:17:09.197021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fd168cc2-bec5-11e4-9162-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fd17a4cc-bec5-11e4-8634-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fd168cc2-bec5-11e4-9162-705681abff85"], ["organization_id", "fd17a4cc-bec5-11e4-8634-705681abff85"], ["created_at", "2015-02-27 21:17:09.200338"], ["updated_at", "2015-02-27 21:17:09.200338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-14" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:09.204765' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "x5lzB6swFzK0AAkb4WB36tpuo3aOY3_dFFGMX-HWXL4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:09.206336"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:09.207286"], ["id", "fd171e8a-bec5-11e4-a918-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fd168cc2-bec5-11e4-9162-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "fd168cc2-bec5-11e4-9162-705681abff85"], ["name", "org-14"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$ZXXEN0lHbS..EIB1TzSKKO8EpWCmFpCVon97vZol7YKwVDGetyfPO"], ["created_at", "2015-02-27 21:17:09.218187"], ["updated_at", "2015-02-27 21:17:09.218187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:09.220019"], ["user_id", "fd1ae45c-bec5-11e4-a1f6-705681abff85"], ["created_at", "2015-02-27 21:17:09.220887"], ["updated_at", "2015-02-27 21:17:09.220887"], ["token", "jvUG0-BguB0UYTdAH3FbXDMHph0ESHerEF27nquAjXg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.224696"], ["updated_at", "2015-02-27 21:17:09.224696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fd1ae45c-bec5-11e4-a1f6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fd1bdc54-bec5-11e4-8c68-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fd1ae45c-bec5-11e4-a1f6-705681abff85"], ["organization_id", "fd1bdc54-bec5-11e4-8c68-705681abff85"], ["created_at", "2015-02-27 21:17:09.228094"], ["updated_at", "2015-02-27 21:17:09.228094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$.d9G7NefFBBcX/BMo1l3yOQBBt3BoYX0rWlujipGxR6iT.dd65e3K"], ["created_at", "2015-02-27 21:17:09.241742"], ["updated_at", "2015-02-27 21:17:09.241742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:09.243550"], ["user_id", "fd1e7b1c-bec5-11e4-8865-705681abff85"], ["created_at", "2015-02-27 21:17:09.250950"], ["updated_at", "2015-02-27 21:17:09.250950"], ["token", "xtGr_l2k3sTJkVarQ_QnBUEfTplVqgF4HOMdDUitucE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.255523"], ["updated_at", "2015-02-27 21:17:09.255523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fd1e7b1c-bec5-11e4-8865-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fd209a1e-bec5-11e4-88fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fd1e7b1c-bec5-11e4-8865-705681abff85"], ["organization_id", "fd209a1e-bec5-11e4-88fa-705681abff85"], ["created_at", "2015-02-27 21:17:09.259242"], ["updated_at", "2015-02-27 21:17:09.259242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/fd209a1e-bec5-11e4-88fa-705681abff85" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"fd209a1e-bec5-11e4-88fa-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:09.263800' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xtGr_l2k3sTJkVarQ_QnBUEfTplVqgF4HOMdDUitucE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:09.265226"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:09.266191"], ["id", "fd1fefce-bec5-11e4-848b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fd1e7b1c-bec5-11e4-8865-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "fd1e7b1c-bec5-11e4-8865-705681abff85"], ["id", "fd209a1e-bec5-11e4-88fa-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$8xLC4/2CJkHfIen.vW53t.n2FXkLD/gHgvEuKsoWXYno8yYQG0X5K"], ["created_at", "2015-02-27 21:17:09.276843"], ["updated_at", "2015-02-27 21:17:09.276843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:09.278429"], ["user_id", "fd23d0ee-bec5-11e4-86c4-705681abff85"], ["created_at", "2015-02-27 21:17:09.279227"], ["updated_at", "2015-02-27 21:17:09.279227"], ["token", "i1vJNgst7vn2Iph276clTli7eCkj-KUuJNunKFQRMFg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:09.283107"], ["updated_at", "2015-02-27 21:17:09.283107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fd23d0ee-bec5-11e4-86c4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'fd24c4d6-bec5-11e4-ba67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fd23d0ee-bec5-11e4-86c4-705681abff85"], ["organization_id", "fd24c4d6-bec5-11e4-ba67-705681abff85"], ["created_at", "2015-02-27 21:17:09.286336"], ["updated_at", "2015-02-27 21:17:09.286336"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:17:09 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$MwrlLHB6nQRQhg.zIGQ7b.UkQliPXFeihn/m8bbiZQ4gfbJMeYslq"], ["created_at", "2015-02-27 21:17:30.193444"], ["updated_at", "2015-02-27 21:17:30.193444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (11.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.204651"], ["user_id", "099ba176-bec6-11e4-b94a-705681abff85"], ["created_at", "2015-02-27 21:17:30.210433"], ["updated_at", "2015-02-27 21:17:30.210433"], ["token", "F_WLjABclH_c9ZzguUmWdnAnv9BKSIXoMivNkngM3mM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.232256"], ["updated_at", "2015-02-27 21:17:30.232256"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '099ba176-bec6-11e4-b94a-705681abff85' AND "clubhouse_memberships"."organization_id" = '09a1653e-bec6-11e4-a378-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "099ba176-bec6-11e4-b94a-705681abff85"], ["organization_id", "09a1653e-bec6-11e4-a378-705681abff85"], ["created_at", "2015-02-27 21:17:30.243871"], ["updated_at", "2015-02-27 21:17:30.243871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-1" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:30.266413' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "F_WLjABclH_c9ZzguUmWdnAnv9BKSIXoMivNkngM3mM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:30.273172"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:30.274508"], ["id", "099e1e1a-bec6-11e4-abf7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "099ba176-bec6-11e4-b94a-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "099ba176-bec6-11e4-b94a-705681abff85"], ["name", "org-1"]] Completed 200 OK in 44ms (Views: 1.6ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Q3p0NJMY6Sn9G2ZFQxU6GeOPNiqRjninqfsHavNtsMbhwlFp76hzy"], ["created_at", "2015-02-27 21:17:30.318482"], ["updated_at", "2015-02-27 21:17:30.318482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.320341"], ["user_id", "09ae8ad4-bec6-11e4-908f-705681abff85"], ["created_at", "2015-02-27 21:17:30.321156"], ["updated_at", "2015-02-27 21:17:30.321156"], ["token", "6ynOyzh8P52xvyq1TyufZcL2RHw6JpXG-NYz7e3QG08"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.324716"], ["updated_at", "2015-02-27 21:17:30.324716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09ae8ad4-bec6-11e4-908f-705681abff85' AND "clubhouse_memberships"."organization_id" = '09af7eda-bec6-11e4-bc5c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09ae8ad4-bec6-11e4-908f-705681abff85"], ["organization_id", "09af7eda-bec6-11e4-bc5c-705681abff85"], ["created_at", "2015-02-27 21:17:30.328231"], ["updated_at", "2015-02-27 21:17:30.328231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$fjnsqBn6vAq1pKRdo6NhIe50w8VmGfgC2aRIUbVfan70Vy/sSzlkO"], ["created_at", "2015-02-27 21:17:30.342206"], ["updated_at", "2015-02-27 21:17:30.342206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.344627"], ["user_id", "09b23bc0-bec6-11e4-a51f-705681abff85"], ["created_at", "2015-02-27 21:17:30.345464"], ["updated_at", "2015-02-27 21:17:30.345464"], ["token", "ZYPAQhZCOzZ8lSu0N1BY7VzBM8TzemXgqOCA4WD0icY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.349472"], ["updated_at", "2015-02-27 21:17:30.349472"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09b23bc0-bec6-11e4-a51f-705681abff85' AND "clubhouse_memberships"."organization_id" = '09b34aa6-bec6-11e4-9c5c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09b23bc0-bec6-11e4-a51f-705681abff85"], ["organization_id", "09b34aa6-bec6-11e4-9c5c-705681abff85"], ["created_at", "2015-02-27 21:17:30.354288"], ["updated_at", "2015-02-27 21:17:30.354288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$x3Xmljc7wMio8Au4hH6CpOKkchWAF/8OKVJikiXiPVZ2TrUjHwTNi"], ["created_at", "2015-02-27 21:17:30.368495"], ["updated_at", "2015-02-27 21:17:30.368495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.370222"], ["user_id", "09b62988-bec6-11e4-92c4-705681abff85"], ["created_at", "2015-02-27 21:17:30.371095"], ["updated_at", "2015-02-27 21:17:30.371095"], ["token", "olg8NCSQniM9t_vuuQUdbbjJ-c-YQm-6wNUCP8PA6vE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.375256"], ["updated_at", "2015-02-27 21:17:30.375256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09b62988-bec6-11e4-92c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '09b72f90-bec6-11e4-a32c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09b62988-bec6-11e4-92c4-705681abff85"], ["organization_id", "09b72f90-bec6-11e4-a32c-705681abff85"], ["created_at", "2015-02-27 21:17:30.378732"], ["updated_at", "2015-02-27 21:17:30.378732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:30.386188' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "olg8NCSQniM9t_vuuQUdbbjJ-c-YQm-6wNUCP8PA6vE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:30.387970"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:30.388880"], ["id", "09b69cb0-bec6-11e4-be66-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09b62988-bec6-11e4-92c4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$hSNagV87gf1eXx4XBvnNCu5VyVV8o7/rSHYv7qjHuX2CqrqTXe83G"], ["created_at", "2015-02-27 21:17:30.411754"], ["updated_at", "2015-02-27 21:17:30.411754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.413438"], ["user_id", "09bcc3e2-bec6-11e4-9325-705681abff85"], ["created_at", "2015-02-27 21:17:30.414223"], ["updated_at", "2015-02-27 21:17:30.414223"], ["token", "ayKXcIETGysC-KQ1LcFD6SNv80Bks1AaLTn0cDlP3Ms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.418398"], ["updated_at", "2015-02-27 21:17:30.418398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09bcc3e2-bec6-11e4-9325-705681abff85' AND "clubhouse_memberships"."organization_id" = '09bdc332-bec6-11e4-9536-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09bcc3e2-bec6-11e4-9325-705681abff85"], ["organization_id", "09bdc332-bec6-11e4-9536-705681abff85"], ["created_at", "2015-02-27 21:17:30.421789"], ["updated_at", "2015-02-27 21:17:30.421789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:30.427311' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ayKXcIETGysC-KQ1LcFD6SNv80Bks1AaLTn0cDlP3Ms"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:30.428802"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:30.429785"], ["id", "09bd260c-bec6-11e4-aa51-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09bcc3e2-bec6-11e4-9325-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.433755"], ["updated_at", "2015-02-27 21:17:30.433755"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "09c01c36-bec6-11e4-b5f9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09bcc3e2-bec6-11e4-9325-705681abff85' AND "clubhouse_memberships"."organization_id" = '09c01c36-bec6-11e4-b5f9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "09bcc3e2-bec6-11e4-9325-705681abff85"], ["admin", "t"], ["organization_id", "09c01c36-bec6-11e4-b5f9-705681abff85"], ["created_at", "2015-02-27 21:17:30.439231"], ["updated_at", "2015-02-27 21:17:30.439231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.6ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$G4mjdnRL/H424v2BnvyVR.AhWDikumDNWm0wsZXFvpcRGLi36umjm"], ["created_at", "2015-02-27 21:17:30.447818"], ["updated_at", "2015-02-27 21:17:30.447818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.449418"], ["user_id", "09c24132-bec6-11e4-b8e5-705681abff85"], ["created_at", "2015-02-27 21:17:30.450205"], ["updated_at", "2015-02-27 21:17:30.450205"], ["token", "SOsFI5d3fk3TwBIp-067unG5XBxGSjPOceIb_x5FuvU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.453505"], ["updated_at", "2015-02-27 21:17:30.453505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09c24132-bec6-11e4-b8e5-705681abff85' AND "clubhouse_memberships"."organization_id" = '09c31ca6-bec6-11e4-a77b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09c24132-bec6-11e4-b8e5-705681abff85"], ["organization_id", "09c31ca6-bec6-11e4-a77b-705681abff85"], ["created_at", "2015-02-27 21:17:30.456724"], ["updated_at", "2015-02-27 21:17:30.456724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$fxt2DTQcIO4QSFWBPa1uTuQgAnkyank7wty.Uh0eu6ya8z1XQTPhi"], ["created_at", "2015-02-27 21:17:30.468799"], ["updated_at", "2015-02-27 21:17:30.468799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.470610"], ["user_id", "09c57500-bec6-11e4-b3aa-705681abff85"], ["created_at", "2015-02-27 21:17:30.471429"], ["updated_at", "2015-02-27 21:17:30.471429"], ["token", "_F2Yf4ZM87qgMfpS2Lp4QlCxjEH-XRG_vEUKGvZyeug"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.475994"], ["updated_at", "2015-02-27 21:17:30.475994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09c57500-bec6-11e4-b3aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '09c69138-bec6-11e4-bd06-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09c57500-bec6-11e4-b3aa-705681abff85"], ["organization_id", "09c69138-bec6-11e4-bd06-705681abff85"], ["created_at", "2015-02-27 21:17:30.480201"], ["updated_at", "2015-02-27 21:17:30.480201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-7" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-7", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:30.484740' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_F2Yf4ZM87qgMfpS2Lp4QlCxjEH-XRG_vEUKGvZyeug"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:30.486280"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:30.487397"], ["id", "09c5e530-bec6-11e4-afa2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (6.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$PGAEYpnM5lpJ/bslwAs7zeKNtNKan3bVuP9WxYCCbx9L190a.eA2C"], ["created_at", "2015-02-27 21:17:30.502994"], ["updated_at", "2015-02-27 21:17:30.502994"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.511754"], ["user_id", "09cab7cc-bec6-11e4-a8a6-705681abff85"], ["created_at", "2015-02-27 21:17:30.512554"], ["updated_at", "2015-02-27 21:17:30.512554"], ["token", "bh089Xoa7bmpC_cpDGhW-uiQR3IRHs6i8KGDB_ZDbTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.515946"], ["updated_at", "2015-02-27 21:17:30.515946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09cab7cc-bec6-11e4-a8a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '09cca474-bec6-11e4-b8c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09cab7cc-bec6-11e4-a8a6-705681abff85"], ["organization_id", "09cca474-bec6-11e4-b8c0-705681abff85"], ["created_at", "2015-02-27 21:17:30.519156"], ["updated_at", "2015-02-27 21:17:30.519156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-8" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-8", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:30.523838' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bh089Xoa7bmpC_cpDGhW-uiQR3IRHs6i8KGDB_ZDbTM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:30.525223"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:30.526172"], ["id", "09cc2abc-bec6-11e4-a1f3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$ITIKJJF1I3SC5EVl0jAtDeaBmnwt/10hqg9PMmlskdjGAjkpMmXTa"], ["created_at", "2015-02-27 21:17:30.535530"], ["updated_at", "2015-02-27 21:17:30.535530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.537149"], ["user_id", "09cfa3cc-bec6-11e4-9dad-705681abff85"], ["created_at", "2015-02-27 21:17:30.537890"], ["updated_at", "2015-02-27 21:17:30.537890"], ["token", "4R6Psk1f2UFOqHZdIbHbZ21x6uquka8M7Iztkrtw2u0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.541155"], ["updated_at", "2015-02-27 21:17:30.541155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09cfa3cc-bec6-11e4-9dad-705681abff85' AND "clubhouse_memberships"."organization_id" = '09d07c66-bec6-11e4-9e0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09cfa3cc-bec6-11e4-9dad-705681abff85"], ["organization_id", "09d07c66-bec6-11e4-9e0d-705681abff85"], ["created_at", "2015-02-27 21:17:30.544417"], ["updated_at", "2015-02-27 21:17:30.544417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/09d07c66-bec6-11e4-9e0d-705681abff85" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"09d07c66-bec6-11e4-9e0d-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:30.549217' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4R6Psk1f2UFOqHZdIbHbZ21x6uquka8M7Iztkrtw2u0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:30.550607"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:30.551640"], ["id", "09d00466-bec6-11e4-9815-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09cfa3cc-bec6-11e4-9dad-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "09cfa3cc-bec6-11e4-9dad-705681abff85"], ["id", "09d07c66-bec6-11e4-9e0d-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$JccSmqf5NixMVrhoWQkyVeHkEHb17mNRg1fY4QwPLu45ZimM.2fRa"], ["created_at", "2015-02-27 21:17:30.562241"], ["updated_at", "2015-02-27 21:17:30.562241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.596007"], ["user_id", "09d8925c-bec6-11e4-848c-705681abff85"], ["created_at", "2015-02-27 21:17:30.597624"], ["updated_at", "2015-02-27 21:17:30.597624"], ["token", "FovpS-akEdOtr0Kzu53toj6jbD95XJ2jEZVXK5F70pk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.601948"], ["updated_at", "2015-02-27 21:17:30.601948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09d8925c-bec6-11e4-848c-705681abff85' AND "clubhouse_memberships"."organization_id" = '09d9c35c-bec6-11e4-b81c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09d8925c-bec6-11e4-848c-705681abff85"], ["organization_id", "09d9c35c-bec6-11e4-b81c-705681abff85"], ["created_at", "2015-02-27 21:17:30.605124"], ["updated_at", "2015-02-27 21:17:30.605124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$t5x4qTQowJZSDfKlQmVq0.WD7u/VZeVLBKgWs9H7kiS4Zw1ifCepS"], ["created_at", "2015-02-27 21:17:30.617063"], ["updated_at", "2015-02-27 21:17:30.617063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.618711"], ["user_id", "09dc15e4-bec6-11e4-9884-705681abff85"], ["created_at", "2015-02-27 21:17:30.619520"], ["updated_at", "2015-02-27 21:17:30.619520"], ["token", "0T9eW83hIGLCJ7ZGrpmPNiLMuf-4KydGYYGQ3nENQsE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.623599"], ["updated_at", "2015-02-27 21:17:30.623599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09dc15e4-bec6-11e4-9884-705681abff85' AND "clubhouse_memberships"."organization_id" = '09dd1f02-bec6-11e4-8b34-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09dc15e4-bec6-11e4-9884-705681abff85"], ["organization_id", "09dd1f02-bec6-11e4-8b34-705681abff85"], ["created_at", "2015-02-27 21:17:30.628217"], ["updated_at", "2015-02-27 21:17:30.628217"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$aGk64NBPkgvbHB4BjsO7A.GtbeP1vBEdqObmYLD9tuKgSj5L1ioL2"], ["created_at", "2015-02-27 21:17:30.645093"], ["updated_at", "2015-02-27 21:17:30.645093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.646768"], ["user_id", "09e05b7c-bec6-11e4-ad6b-705681abff85"], ["created_at", "2015-02-27 21:17:30.647760"], ["updated_at", "2015-02-27 21:17:30.647760"], ["token", "C5iTmG0aPoEU84K5m86w82jX30LNiSCKY_mjEU4DV6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.652022"], ["updated_at", "2015-02-27 21:17:30.652022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09e05b7c-bec6-11e4-ad6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '09e16a94-bec6-11e4-9357-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09e05b7c-bec6-11e4-ad6b-705681abff85"], ["organization_id", "09e16a94-bec6-11e4-9357-705681abff85"], ["created_at", "2015-02-27 21:17:30.655551"], ["updated_at", "2015-02-27 21:17:30.655551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/09e16a94-bec6-11e4-9357-705681abff85" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"09e16a94-bec6-11e4-9357-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:30.660326' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "C5iTmG0aPoEU84K5m86w82jX30LNiSCKY_mjEU4DV6s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:30.662047"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:30.663089"], ["id", "09e0d156-bec6-11e4-846a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$SyKCE0PlOSp3hFSyjCe1TeVopl1jDgPv.oXeyGPZ/45o2NdrYjGJO"], ["created_at", "2015-02-27 21:17:30.675394"], ["updated_at", "2015-02-27 21:17:30.675394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.676984"], ["user_id", "09e4fa6a-bec6-11e4-a9ca-705681abff85"], ["created_at", "2015-02-27 21:17:30.677764"], ["updated_at", "2015-02-27 21:17:30.677764"], ["token", "JAIhgEP4MCcR4q0pMehl5bkqsxXKr4v48VCkAqeFzHM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.681060"], ["updated_at", "2015-02-27 21:17:30.681060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09e4fa6a-bec6-11e4-a9ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '09e5d62e-bec6-11e4-a4b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09e4fa6a-bec6-11e4-a9ca-705681abff85"], ["organization_id", "09e5d62e-bec6-11e4-a4b0-705681abff85"], ["created_at", "2015-02-27 21:17:30.684289"], ["updated_at", "2015-02-27 21:17:30.684289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/09e5d62e-bec6-11e4-a4b0-705681abff85" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"09e5d62e-bec6-11e4-a4b0-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:30.688762' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JAIhgEP4MCcR4q0pMehl5bkqsxXKr4v48VCkAqeFzHM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:30.690321"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:30.691314"], ["id", "09e55b5e-bec6-11e4-938f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$4tISIAL6bt1LHxTB3wIjfu5WOrH5OiaJmhXZ4k/lhWOPjg2lmkmkm"], ["created_at", "2015-02-27 21:17:30.700596"], ["updated_at", "2015-02-27 21:17:30.700596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.702329"], ["user_id", "09e8d4a0-bec6-11e4-a2b6-705681abff85"], ["created_at", "2015-02-27 21:17:30.703148"], ["updated_at", "2015-02-27 21:17:30.703148"], ["token", "IiEn6eLXBqZugNnwdkn3BTsyp9jE9cA6r3gaTmJ833M"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.707690"], ["updated_at", "2015-02-27 21:17:30.707690"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09e8d4a0-bec6-11e4-a2b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '09e9f7d6-bec6-11e4-ae95-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09e8d4a0-bec6-11e4-a2b6-705681abff85"], ["organization_id", "09e9f7d6-bec6-11e4-ae95-705681abff85"], ["created_at", "2015-02-27 21:17:30.713431"], ["updated_at", "2015-02-27 21:17:30.713431"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$qsYfx4pEZ/Nh3wl9STs/3.umTkj2ctUyXvgKz8eZ1FYxfCDmPVeNC"], ["created_at", "2015-02-27 21:17:30.719816"], ["updated_at", "2015-02-27 21:17:30.719816"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (3.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.729133"], ["updated_at", "2015-02-27 21:17:30.729133"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09ebd178-bec6-11e4-b104-705681abff85' AND "clubhouse_memberships"."organization_id" = '09ed4828-bec6-11e4-9c42-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09ebd178-bec6-11e4-b104-705681abff85"], ["organization_id", "09ed4828-bec6-11e4-9c42-705681abff85"], ["created_at", "2015-02-27 21:17:30.734780"], ["updated_at", "2015-02-27 21:17:30.734780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:17:30.739570' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IiEn6eLXBqZugNnwdkn3BTsyp9jE9cA6r3gaTmJ833M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:17:30.741119"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:17:30.742243"], ["id", "09e93d14-bec6-11e4-948f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09e8d4a0-bec6-11e4-a2b6-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "09e8d4a0-bec6-11e4-a2b6-705681abff85"]] Completed 200 OK in 13ms (Views: 4.8ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$a5HubJoqMsm9cjrtENOwRONvlxb.I3cLoVSwII/qwmlS62fSbcMsK"], ["created_at", "2015-02-27 21:17:30.762342"], ["updated_at", "2015-02-27 21:17:30.762342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:17:30.763925"], ["user_id", "09f23f86-bec6-11e4-95bc-705681abff85"], ["created_at", "2015-02-27 21:17:30.764698"], ["updated_at", "2015-02-27 21:17:30.764698"], ["token", "6wU13ZxGLzSAhEySe-iAINrkrPG2SGs1w51FUXky6OE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.767920"], ["updated_at", "2015-02-27 21:17:30.767920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09f23f86-bec6-11e4-95bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '09f315fa-bec6-11e4-9bca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09f23f86-bec6-11e4-95bc-705681abff85"], ["organization_id", "09f315fa-bec6-11e4-9bca-705681abff85"], ["created_at", "2015-02-27 21:17:30.771078"], ["updated_at", "2015-02-27 21:17:30.771078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$q8j6ZtTJ6fhKe2t.j3J4VOyv79aO60WkMkjE4ZEWIfOlyqGnBgesO"], ["created_at", "2015-02-27 21:17:30.776095"], ["updated_at", "2015-02-27 21:17:30.776095"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:17:30.787042"], ["updated_at", "2015-02-27 21:17:30.787042"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09f4b996-bec6-11e4-a53d-705681abff85' AND "clubhouse_memberships"."organization_id" = '09f64fae-bec6-11e4-a49b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09f4b996-bec6-11e4-a53d-705681abff85"], ["organization_id", "09f64fae-bec6-11e4-a49b-705681abff85"], ["created_at", "2015-02-27 21:17:30.797002"], ["updated_at", "2015-02-27 21:17:30.797002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:17:30 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$84f5n5ZDUqAdp4X5LBIPEe5tbQrnkhhgRc57tWRoKg8zM8ckFYutm"], ["created_at", "2015-02-27 21:18:34.829233"], ["updated_at", "2015-02-27 21:18:34.829233"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (10.7ms) SAVEPOINT active_record_1 SQL (35.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:34.862112"], ["user_id", "30224732-bec6-11e4-9965-705681abff85"], ["created_at", "2015-02-27 21:18:34.887276"], ["updated_at", "2015-02-27 21:18:34.887276"], ["token", "ME6z1c2G4TVcTu8omllyT7jtIVrfukrk0OKN4V_nRW8"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (6.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.095854"], ["updated_at", "2015-02-27 21:18:35.095854"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30224732-bec6-11e4-9965-705681abff85' AND "clubhouse_memberships"."organization_id" = '304af4b6-bec6-11e4-8689-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30224732-bec6-11e4-9965-705681abff85"], ["organization_id", "304af4b6-bec6-11e4-8689-705681abff85"], ["created_at", "2015-02-27 21:18:35.138634"], ["updated_at", "2015-02-27 21:18:35.138634"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$nPtFhbEOLXPlc.53.SO5Me1dPtvYM//GW1qNQHLFAcifCYnJCyFpi"], ["created_at", "2015-02-27 21:18:35.341711"], ["updated_at", "2015-02-27 21:18:35.341711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.344470"], ["user_id", "30705ad0-bec6-11e4-a0ab-705681abff85"], ["created_at", "2015-02-27 21:18:35.345369"], ["updated_at", "2015-02-27 21:18:35.345369"], ["token", "K3s9s8OnYtumYpeW4-Brx7X7EicOK9pfd4t9ljPpbuM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.348923"], ["updated_at", "2015-02-27 21:18:35.348923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30705ad0-bec6-11e4-a0ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '30716312-bec6-11e4-b1c4-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30705ad0-bec6-11e4-a0ab-705681abff85"], ["organization_id", "30716312-bec6-11e4-b1c4-705681abff85"], ["created_at", "2015-02-27 21:18:35.353317"], ["updated_at", "2015-02-27 21:18:35.353317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:18:35.361373' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "K3s9s8OnYtumYpeW4-Brx7X7EicOK9pfd4t9ljPpbuM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:18:35.369836"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:18:35.371233"], ["id", "3070e09a-bec6-11e4-81f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30705ad0-bec6-11e4-a0ab-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 38ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$h.HmimsFWaRNSdgJLvKun.OMTm1JOi.0yr3NvzyVjeREzoH08kwGK"], ["created_at", "2015-02-27 21:18:35.404043"], ["updated_at", "2015-02-27 21:18:35.404043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.405921"], ["user_id", "3079ce8a-bec6-11e4-a4de-705681abff85"], ["created_at", "2015-02-27 21:18:35.406698"], ["updated_at", "2015-02-27 21:18:35.406698"], ["token", "RazaDs7WRAS15SLcddqQsnD4t091SkXovpvZBdykjVQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.412206"], ["updated_at", "2015-02-27 21:18:35.412206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3079ce8a-bec6-11e4-a4de-705681abff85' AND "clubhouse_memberships"."organization_id" = '307b0b06-bec6-11e4-b854-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3079ce8a-bec6-11e4-a4de-705681abff85"], ["organization_id", "307b0b06-bec6-11e4-b854-705681abff85"], ["created_at", "2015-02-27 21:18:35.415659"], ["updated_at", "2015-02-27 21:18:35.415659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:18:35.422104' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RazaDs7WRAS15SLcddqQsnD4t091SkXovpvZBdykjVQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:18:35.423639"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:18:35.424676"], ["id", "307a55b2-bec6-11e4-94b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3079ce8a-bec6-11e4-a4de-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.428707"], ["updated_at", "2015-02-27 21:18:35.428707"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "307d8dcc-bec6-11e4-9137-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3079ce8a-bec6-11e4-a4de-705681abff85' AND "clubhouse_memberships"."organization_id" = '307d8dcc-bec6-11e4-9137-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3079ce8a-bec6-11e4-a4de-705681abff85"], ["admin", "t"], ["organization_id", "307d8dcc-bec6-11e4-9137-705681abff85"], ["created_at", "2015-02-27 21:18:35.441221"], ["updated_at", "2015-02-27 21:18:35.441221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 24ms (Views: 2.5ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$MSS7Tq9Ab4jaFA7Xlha1H.ON9tnByPKpi24F0JPr4GK0pprZRiqOS"], ["created_at", "2015-02-27 21:18:35.455161"], ["updated_at", "2015-02-27 21:18:35.455161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.457465"], ["user_id", "30819ae8-bec6-11e4-9a53-705681abff85"], ["created_at", "2015-02-27 21:18:35.458678"], ["updated_at", "2015-02-27 21:18:35.458678"], ["token", "g-DlJ5uWq2ycMnFhBaUzMJahrqL67PUgDLcBGQcTnfQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.462785"], ["updated_at", "2015-02-27 21:18:35.462785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30819ae8-bec6-11e4-9a53-705681abff85' AND "clubhouse_memberships"."organization_id" = '3082c238-bec6-11e4-a102-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30819ae8-bec6-11e4-9a53-705681abff85"], ["organization_id", "3082c238-bec6-11e4-a102-705681abff85"], ["created_at", "2015-02-27 21:18:35.466783"], ["updated_at", "2015-02-27 21:18:35.466783"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Xywj1qAzI8aR5xAXRI8k7Op0.Zmqdx.yb/.MCTLg2T.D3LaghQKM6"], ["created_at", "2015-02-27 21:18:35.487425"], ["updated_at", "2015-02-27 21:18:35.487425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.490749"], ["user_id", "3086b17c-bec6-11e4-ac14-705681abff85"], ["created_at", "2015-02-27 21:18:35.491928"], ["updated_at", "2015-02-27 21:18:35.491928"], ["token", "LKHfFiev65yAMC9YN008BG4kwAI5s8yoMWAK--k7Ypw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.495489"], ["updated_at", "2015-02-27 21:18:35.495489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3086b17c-bec6-11e4-ac14-705681abff85' AND "clubhouse_memberships"."organization_id" = '3087bf68-bec6-11e4-928a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3086b17c-bec6-11e4-ac14-705681abff85"], ["organization_id", "3087bf68-bec6-11e4-928a-705681abff85"], ["created_at", "2015-02-27 21:18:35.499969"], ["updated_at", "2015-02-27 21:18:35.499969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-5" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-5", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:18:35.509511' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LKHfFiev65yAMC9YN008BG4kwAI5s8yoMWAK--k7Ypw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:18:35.511779"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:18:35.513512"], ["id", "30873fde-bec6-11e4-ae4b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3086b17c-bec6-11e4-ac14-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "3086b17c-bec6-11e4-ac14-705681abff85"], ["name", "org-5"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3087bf68-bec6-11e4-928a-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 48ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$wv4BytXx8MoL7HX.vt1C7O1KyiYN/1hrThNfY6M.bh/dxubtbPmUO"], ["created_at", "2015-02-27 21:18:35.573836"], ["updated_at", "2015-02-27 21:18:35.573836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.575582"], ["user_id", "3093b642-bec6-11e4-b411-705681abff85"], ["created_at", "2015-02-27 21:18:35.576362"], ["updated_at", "2015-02-27 21:18:35.576362"], ["token", "KjIQPtiq0W8Vuq8nmXrlt9tPeDwes8YzrVA7MHxuA-I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.582369"], ["updated_at", "2015-02-27 21:18:35.582369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3093b642-bec6-11e4-b411-705681abff85' AND "clubhouse_memberships"."organization_id" = '3095040c-bec6-11e4-9c92-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3093b642-bec6-11e4-b411-705681abff85"], ["organization_id", "3095040c-bec6-11e4-9c92-705681abff85"], ["created_at", "2015-02-27 21:18:35.586106"], ["updated_at", "2015-02-27 21:18:35.586106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-6" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-6", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:18:35.591710' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KjIQPtiq0W8Vuq8nmXrlt9tPeDwes8YzrVA7MHxuA-I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:18:35.593274"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:18:35.594462"], ["id", "30942208-bec6-11e4-a98c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3093b642-bec6-11e4-b411-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "3093b642-bec6-11e4-b411-705681abff85"], ["name", "org-6"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3095040c-bec6-11e4-9c92-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:18:35.602789"], ["id", "3095040c-bec6-11e4-9c92-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.7ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$b0lLNS4jbKsEapfuFFGH4Oni5PQ1Qo0as2t9tWSy1ZvL7RScP1zgW"], ["created_at", "2015-02-27 21:18:35.612083"], ["updated_at", "2015-02-27 21:18:35.612083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.616323"], ["user_id", "3099d3f6-bec6-11e4-ab18-705681abff85"], ["created_at", "2015-02-27 21:18:35.617204"], ["updated_at", "2015-02-27 21:18:35.617204"], ["token", "jNgYdxklMqRcvD0PqQsmM8bfd_mCy7Q-7A8grv2K06w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.621518"], ["updated_at", "2015-02-27 21:18:35.621518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3099d3f6-bec6-11e4-ab18-705681abff85' AND "clubhouse_memberships"."organization_id" = '309afad8-bec6-11e4-a7cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3099d3f6-bec6-11e4-ab18-705681abff85"], ["organization_id", "309afad8-bec6-11e4-a7cc-705681abff85"], ["created_at", "2015-02-27 21:18:35.625416"], ["updated_at", "2015-02-27 21:18:35.625416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/309afad8-bec6-11e4-a7cc-705681abff85" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"309afad8-bec6-11e4-a7cc-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:18:35.632040' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jNgYdxklMqRcvD0PqQsmM8bfd_mCy7Q-7A8grv2K06w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:18:35.633438"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:18:35.634387"], ["id", "309a5ac4-bec6-11e4-afcc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3099d3f6-bec6-11e4-ab18-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "3099d3f6-bec6-11e4-ab18-705681abff85"], ["id", "309afad8-bec6-11e4-a7cc-705681abff85"]] Completed 200 OK in 12ms (Views: 1.1ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$BaTDN3aF9KNLBtv3ZEIkX.wSg8RegoIz6lOW7.RggrfPPjH9ugw7."], ["created_at", "2015-02-27 21:18:35.655450"], ["updated_at", "2015-02-27 21:18:35.655450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.658259"], ["user_id", "30a042ae-bec6-11e4-8ef2-705681abff85"], ["created_at", "2015-02-27 21:18:35.659962"], ["updated_at", "2015-02-27 21:18:35.659962"], ["token", "p-lyjFFGq2yWhk2Vd7nsh5E6jfJshTKDvJ0jGvkr3nQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.667568"], ["updated_at", "2015-02-27 21:18:35.667568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30a042ae-bec6-11e4-8ef2-705681abff85' AND "clubhouse_memberships"."organization_id" = '30a21552-bec6-11e4-b488-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30a042ae-bec6-11e4-8ef2-705681abff85"], ["organization_id", "30a21552-bec6-11e4-b488-705681abff85"], ["created_at", "2015-02-27 21:18:35.672131"], ["updated_at", "2015-02-27 21:18:35.672131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$AxTLbSEfB9RN129GnrICJeDg5X98lJ8IdvXivXMx5XMVKAZ0cVfZC"], ["created_at", "2015-02-27 21:18:35.686213"], ["updated_at", "2015-02-27 21:18:35.686213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.688744"], ["user_id", "30a4ec82-bec6-11e4-9224-705681abff85"], ["created_at", "2015-02-27 21:18:35.689532"], ["updated_at", "2015-02-27 21:18:35.689532"], ["token", "-CN-BeTz49e505G1r3Nn_kA44Ytx9Woin3RrhZCIass"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.695084"], ["updated_at", "2015-02-27 21:18:35.695084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30a4ec82-bec6-11e4-9224-705681abff85' AND "clubhouse_memberships"."organization_id" = '30a63754-bec6-11e4-a36a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30a4ec82-bec6-11e4-9224-705681abff85"], ["organization_id", "30a63754-bec6-11e4-a36a-705681abff85"], ["created_at", "2015-02-27 21:18:35.698848"], ["updated_at", "2015-02-27 21:18:35.698848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-9" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-9", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:18:35.704657' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-CN-BeTz49e505G1r3Nn_kA44Ytx9Woin3RrhZCIass"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:18:35.706510"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:18:35.707683"], ["id", "30a56dec-bec6-11e4-a003-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30a4ec82-bec6-11e4-9224-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "30a4ec82-bec6-11e4-9224-705681abff85"], ["name", "org-9"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$dTsBrtJmilM7r3YYBIw/iOilj6zbWl9yJjQh5qWKiSfO5EDFijYwq"], ["created_at", "2015-02-27 21:18:35.721268"], ["updated_at", "2015-02-27 21:18:35.721268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.723206"], ["user_id", "30aa3b38-bec6-11e4-87be-705681abff85"], ["created_at", "2015-02-27 21:18:35.724022"], ["updated_at", "2015-02-27 21:18:35.724022"], ["token", "RrebO4RXuL5UQPb0wgvZYS2o_ObilMy8EGU2CQON3BM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.729670"], ["updated_at", "2015-02-27 21:18:35.729670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30aa3b38-bec6-11e4-87be-705681abff85' AND "clubhouse_memberships"."organization_id" = '30ab7d5e-bec6-11e4-a288-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30aa3b38-bec6-11e4-87be-705681abff85"], ["organization_id", "30ab7d5e-bec6-11e4-a288-705681abff85"], ["created_at", "2015-02-27 21:18:35.733277"], ["updated_at", "2015-02-27 21:18:35.733277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$5Ni8Mj/OsHgkDq27rbVqAuMh18SiDFIREh4HBsoR3qkEtjPoMfIJ2"], ["created_at", "2015-02-27 21:18:35.748595"], ["updated_at", "2015-02-27 21:18:35.748595"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.753826"], ["user_id", "30ae699c-bec6-11e4-a593-705681abff85"], ["created_at", "2015-02-27 21:18:35.755407"], ["updated_at", "2015-02-27 21:18:35.755407"], ["token", "HLaipFhus4BsjBy3hpeBCpbFdky6arqpJUPaTW_0-XA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.761750"], ["updated_at", "2015-02-27 21:18:35.761750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30ae699c-bec6-11e4-a593-705681abff85' AND "clubhouse_memberships"."organization_id" = '30b07aac-bec6-11e4-b20e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30ae699c-bec6-11e4-a593-705681abff85"], ["organization_id", "30b07aac-bec6-11e4-b20e-705681abff85"], ["created_at", "2015-02-27 21:18:35.774229"], ["updated_at", "2015-02-27 21:18:35.774229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$WkwPtaL/usVbQoP8kS/G8OnnQ9Wgom5suQsrRkXH6PQIG.vV0kJMS"], ["created_at", "2015-02-27 21:18:35.796962"], ["updated_at", "2015-02-27 21:18:35.796962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.799916"], ["user_id", "30b5d628-bec6-11e4-9f87-705681abff85"], ["created_at", "2015-02-27 21:18:35.800772"], ["updated_at", "2015-02-27 21:18:35.800772"], ["token", "aymICoAK4_fgb0vfjCZ5jx2FOyfF_x2r5XKSAK7QINk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.814787"], ["updated_at", "2015-02-27 21:18:35.814787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30b5d628-bec6-11e4-9f87-705681abff85' AND "clubhouse_memberships"."organization_id" = '30b89b38-bec6-11e4-a6e4-705681abff85') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30b5d628-bec6-11e4-9f87-705681abff85"], ["organization_id", "30b89b38-bec6-11e4-a6e4-705681abff85"], ["created_at", "2015-02-27 21:18:35.820413"], ["updated_at", "2015-02-27 21:18:35.820413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/30b89b38-bec6-11e4-a6e4-705681abff85" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"30b89b38-bec6-11e4-a6e4-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:18:35.828289' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aymICoAK4_fgb0vfjCZ5jx2FOyfF_x2r5XKSAK7QINk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:18:35.829752"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:18:35.831177"], ["id", "30b65fd0-bec6-11e4-aebb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30b5d628-bec6-11e4-9f87-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "30b5d628-bec6-11e4-9f87-705681abff85"], ["id", "30b89b38-bec6-11e4-a6e4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '30b89b38-bec6-11e4-a6e4-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$xwlejNLU3M0Prno.5sRIrujJ35lcN7YhH4ukRkkxu5SyeSAhW6PWy"], ["created_at", "2015-02-27 21:18:35.847633"], ["updated_at", "2015-02-27 21:18:35.847633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.849289"], ["user_id", "30bd7a9a-bec6-11e4-ba23-705681abff85"], ["created_at", "2015-02-27 21:18:35.850070"], ["updated_at", "2015-02-27 21:18:35.850070"], ["token", "wO_e77ur-FN8TXZK_EJLMwFvdMYDxJRwLHH0_g9LQxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.853463"], ["updated_at", "2015-02-27 21:18:35.853463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30bd7a9a-bec6-11e4-ba23-705681abff85' AND "clubhouse_memberships"."organization_id" = '30be9ab0-bec6-11e4-a543-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30bd7a9a-bec6-11e4-ba23-705681abff85"], ["organization_id", "30be9ab0-bec6-11e4-a543-705681abff85"], ["created_at", "2015-02-27 21:18:35.859020"], ["updated_at", "2015-02-27 21:18:35.859020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/30be9ab0-bec6-11e4-a543-705681abff85" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"30be9ab0-bec6-11e4-a543-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:18:35.864025' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wO_e77ur-FN8TXZK_EJLMwFvdMYDxJRwLHH0_g9LQxg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:18:35.865478"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:18:35.866800"], ["id", "30bdde86-bec6-11e4-90e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30bd7a9a-bec6-11e4-ba23-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "30bd7a9a-bec6-11e4-ba23-705681abff85"], ["id", "30be9ab0-bec6-11e4-a543-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '30be9ab0-bec6-11e4-a543-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:18:35.874778"], ["id", "30be9ab0-bec6-11e4-a543-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$vBByxIuP/9QKpWK3QlVfaeZmyj7G5lwBAqnFVahwA8LhJwTAj7EnG"], ["created_at", "2015-02-27 21:18:35.884173"], ["updated_at", "2015-02-27 21:18:35.884173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.885900"], ["user_id", "30c30fb4-bec6-11e4-89a3-705681abff85"], ["created_at", "2015-02-27 21:18:35.886668"], ["updated_at", "2015-02-27 21:18:35.886668"], ["token", "KC9GBNO6NPxXU56sZ_Tk1gl4oHGQHjyy8rYmKaytlHg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.892270"], ["updated_at", "2015-02-27 21:18:35.892270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30c30fb4-bec6-11e4-89a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '30c460b2-bec6-11e4-bd2f-705681abff85') LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30c30fb4-bec6-11e4-89a3-705681abff85"], ["organization_id", "30c460b2-bec6-11e4-bd2f-705681abff85"], ["created_at", "2015-02-27 21:18:35.896951"], ["updated_at", "2015-02-27 21:18:35.896951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$LLMfzfLfipxUEpGphVyF1uBkzbVeWbWg/Lxu85lDaQfR6jeGapyVy"], ["created_at", "2015-02-27 21:18:35.905712"], ["updated_at", "2015-02-27 21:18:35.905712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.909986"], ["updated_at", "2015-02-27 21:18:35.909986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30c66f4c-bec6-11e4-aabb-705681abff85' AND "clubhouse_memberships"."organization_id" = '30c70010-bec6-11e4-bfc3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30c66f4c-bec6-11e4-aabb-705681abff85"], ["organization_id", "30c70010-bec6-11e4-bfc3-705681abff85"], ["created_at", "2015-02-27 21:18:35.914461"], ["updated_at", "2015-02-27 21:18:35.914461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:18:35.920988' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KC9GBNO6NPxXU56sZ_Tk1gl4oHGQHjyy8rYmKaytlHg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:18:35.923328"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:18:35.924351"], ["id", "30c3a190-bec6-11e4-acf7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30c30fb4-bec6-11e4-89a3-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "30c30fb4-bec6-11e4-89a3-705681abff85"]] Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$kfzLkrJhYG6RL4Id4lLTEui9UwpPhPJJULRzw4D7TQkplU/bw4dCa"], ["created_at", "2015-02-27 21:18:35.938441"], ["updated_at", "2015-02-27 21:18:35.938441"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:18:35.940476"], ["user_id", "30cb5976-bec6-11e4-8547-705681abff85"], ["created_at", "2015-02-27 21:18:35.941441"], ["updated_at", "2015-02-27 21:18:35.941441"], ["token", "N3zTm_eDJs7_qTsP_9QLz5Did7CNhJPohPKkA-X_KkI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.944894"], ["updated_at", "2015-02-27 21:18:35.944894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30cb5976-bec6-11e4-8547-705681abff85' AND "clubhouse_memberships"."organization_id" = '30cc4fc0-bec6-11e4-a530-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30cb5976-bec6-11e4-8547-705681abff85"], ["organization_id", "30cc4fc0-bec6-11e4-a530-705681abff85"], ["created_at", "2015-02-27 21:18:35.948179"], ["updated_at", "2015-02-27 21:18:35.948179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (12.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$sqlEqBipxKph83yiZrwf4e9X4oJt.WzFUMGQrykvY56Rh6Wwwyusu"], ["created_at", "2015-02-27 21:18:35.954794"], ["updated_at", "2015-02-27 21:18:35.954794"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:18:35.985632"], ["updated_at", "2015-02-27 21:18:35.985632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30cdd53e-bec6-11e4-9f72-705681abff85' AND "clubhouse_memberships"."organization_id" = '30d28c5a-bec6-11e4-a5ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "30cdd53e-bec6-11e4-9f72-705681abff85"], ["organization_id", "30d28c5a-bec6-11e4-a5ec-705681abff85"], ["created_at", "2015-02-27 21:18:35.989467"], ["updated_at", "2015-02-27 21:18:35.989467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:18:35 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (6.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$1zHOTAHvC.IaK7bWQN52Ku9sXk6YYAzelMbavxapug3y9qRUI6R2u"], ["created_at", "2015-02-27 21:25:24.637528"], ["updated_at", "2015-02-27 21:25:24.637528"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:24.654764"], ["user_id", "246618e6-bec7-11e4-8b96-705681abff85"], ["created_at", "2015-02-27 21:25:24.661146"], ["updated_at", "2015-02-27 21:25:24.661146"], ["token", "TaAXxY-PWQrIdCJ_ruAUiWd8mEVgWybp-nUL2ilfsCI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:24.670049"], ["updated_at", "2015-02-27 21:25:24.670049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '246618e6-bec7-11e4-8b96-705681abff85' AND "clubhouse_memberships"."organization_id" = '246ae150-bec7-11e4-b88d-705681abff85') LIMIT 1 SQL (6.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "246618e6-bec7-11e4-8b96-705681abff85"], ["organization_id", "246ae150-bec7-11e4-b88d-705681abff85"], ["created_at", "2015-02-27 21:25:24.680994"], ["updated_at", "2015-02-27 21:25:24.680994"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:25:24 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$KjFf67IlxExhdhewk2Qli.vJTeN88SogeWFOhQ4AzqE0J7By6WI/."], ["created_at", "2015-02-27 21:25:24.719414"], ["updated_at", "2015-02-27 21:25:24.719414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:24.721413"], ["user_id", "247261a0-bec7-11e4-9e5e-705681abff85"], ["created_at", "2015-02-27 21:25:24.722267"], ["updated_at", "2015-02-27 21:25:24.722267"], ["token", "uBBwvqrearPkRoQWDwQi11aHqY9VS5SJPwR7c0XvPMU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:24.726048"], ["updated_at", "2015-02-27 21:25:24.726048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '247261a0-bec7-11e4-9e5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '24735cb8-bec7-11e4-9ba0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "247261a0-bec7-11e4-9e5e-705681abff85"], ["organization_id", "24735cb8-bec7-11e4-9ba0-705681abff85"], ["created_at", "2015-02-27 21:25:24.729291"], ["updated_at", "2015-02-27 21:25:24.729291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-2" for 127.0.0.1 at 2015-02-27 13:25:24 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-2", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:24.735789' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uBBwvqrearPkRoQWDwQi11aHqY9VS5SJPwR7c0XvPMU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:24.752992"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:24.754469"], ["id", "2472d4aa-bec7-11e4-99df-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "247261a0-bec7-11e4-9e5e-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "247261a0-bec7-11e4-9e5e-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '24735cb8-bec7-11e4-9ba0-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 53ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$D.seMJ3B2ijOpWICGJWJXeB4cx1x2muYKf2YvoX38YQvNLa8gwSVK"], ["created_at", "2015-02-27 21:25:24.794163"], ["updated_at", "2015-02-27 21:25:24.794163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:24.796030"], ["user_id", "247dc3b0-bec7-11e4-9175-705681abff85"], ["created_at", "2015-02-27 21:25:24.796888"], ["updated_at", "2015-02-27 21:25:24.796888"], ["token", "ICIgkfItnirXDtLWrVK2OiE8NXJ1F0-mlIxoOV0qat8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:24.800903"], ["updated_at", "2015-02-27 21:25:24.800903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '247dc3b0-bec7-11e4-9175-705681abff85' AND "clubhouse_memberships"."organization_id" = '247ecc1a-bec7-11e4-9e26-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "247dc3b0-bec7-11e4-9175-705681abff85"], ["organization_id", "247ecc1a-bec7-11e4-9e26-705681abff85"], ["created_at", "2015-02-27 21:25:24.804588"], ["updated_at", "2015-02-27 21:25:24.804588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-3" for 127.0.0.1 at 2015-02-27 13:25:24 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-3", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:24.809126' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ICIgkfItnirXDtLWrVK2OiE8NXJ1F0-mlIxoOV0qat8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:24.810514"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:24.812120"], ["id", "247e37f0-bec7-11e4-8301-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "247dc3b0-bec7-11e4-9175-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "247dc3b0-bec7-11e4-9175-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '247ecc1a-bec7-11e4-9e26-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:25:24.818498"], ["id", "247ecc1a-bec7-11e4-9e26-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.6ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$/9I48zaZZbcM5E3uXnR/yOqZ2SDZ5Ga6FT/HB5iMYXzVNwfb454hC"], ["created_at", "2015-02-27 21:25:24.829846"], ["updated_at", "2015-02-27 21:25:24.829846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:24.831569"], ["user_id", "248337a0-bec7-11e4-8624-705681abff85"], ["created_at", "2015-02-27 21:25:24.832887"], ["updated_at", "2015-02-27 21:25:24.832887"], ["token", "IkYfMtOW6ydIMsC2XptgfQ1hdUGJ3aOe2IDc6_oSJKo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:24.837180"], ["updated_at", "2015-02-27 21:25:24.837180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '248337a0-bec7-11e4-8624-705681abff85' AND "clubhouse_memberships"."organization_id" = '24845298-bec7-11e4-bc84-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "248337a0-bec7-11e4-8624-705681abff85"], ["organization_id", "24845298-bec7-11e4-bc84-705681abff85"], ["created_at", "2015-02-27 21:25:24.840511"], ["updated_at", "2015-02-27 21:25:24.840511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/24845298-bec7-11e4-bc84-705681abff85" for 127.0.0.1 at 2015-02-27 13:25:24 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"24845298-bec7-11e4-bc84-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:24.845383' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IkYfMtOW6ydIMsC2XptgfQ1hdUGJ3aOe2IDc6_oSJKo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:24.847025"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:24.847978"], ["id", "2483bafe-bec7-11e4-adfe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "248337a0-bec7-11e4-8624-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "248337a0-bec7-11e4-8624-705681abff85"], ["id", "24845298-bec7-11e4-bc84-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$8NZKu0wU.F5pir.vrznNXeu0c6DRdYzxd/nuukXDHY59VzWmlILva"], ["created_at", "2015-02-27 21:25:24.859147"], ["updated_at", "2015-02-27 21:25:24.859147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:24.861424"], ["user_id", "2487bdfc-bec7-11e4-85cc-705681abff85"], ["created_at", "2015-02-27 21:25:24.862488"], ["updated_at", "2015-02-27 21:25:24.862488"], ["token", "McY22BsjGjYWwI047o0GFY9wgjRDC6cAcJW0OcRzoOc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:24.866319"], ["updated_at", "2015-02-27 21:25:24.866319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2487bdfc-bec7-11e4-85cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '2488ec9a-bec7-11e4-b5e2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2487bdfc-bec7-11e4-85cc-705681abff85"], ["organization_id", "2488ec9a-bec7-11e4-b5e2-705681abff85"], ["created_at", "2015-02-27 21:25:24.871128"], ["updated_at", "2015-02-27 21:25:24.871128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:25:24 -0800  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$In43hFSg4QlS5ASUmcR1YOcDOsu0kfjYwkvdDegIfFaI/.GXQq1AO"], ["created_at", "2015-02-27 21:25:24.881041"], ["updated_at", "2015-02-27 21:25:24.881041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:24.882607"], ["user_id", "248b03ea-bec7-11e4-be48-705681abff85"], ["created_at", "2015-02-27 21:25:24.883371"], ["updated_at", "2015-02-27 21:25:24.883371"], ["token", "JYNDRjIDE-LkZC-luhF9FThLdEqg6LpB44319mEaD_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:24.887557"], ["updated_at", "2015-02-27 21:25:24.887557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '248b03ea-bec7-11e4-be48-705681abff85' AND "clubhouse_memberships"."organization_id" = '248c04ca-bec7-11e4-9712-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "248b03ea-bec7-11e4-be48-705681abff85"], ["organization_id", "248c04ca-bec7-11e4-9712-705681abff85"], ["created_at", "2015-02-27 21:25:24.891213"], ["updated_at", "2015-02-27 21:25:24.891213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:25:24 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$SualKpQuzd/u87FhI6LCMOBtSS/LfAyUKdLhweJj5rXJl7VtI/ieO"], ["created_at", "2015-02-27 21:25:24.904469"], ["updated_at", "2015-02-27 21:25:24.904469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:24.906289"], ["user_id", "248e9d0c-bec7-11e4-a106-705681abff85"], ["created_at", "2015-02-27 21:25:24.907163"], ["updated_at", "2015-02-27 21:25:24.907163"], ["token", "tXxsfA5c06rbOwzKkqqYwP7Vk9FpH3FXgc4yCSRghkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:24.910995"], ["updated_at", "2015-02-27 21:25:24.910995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '248e9d0c-bec7-11e4-a106-705681abff85' AND "clubhouse_memberships"."organization_id" = '248f99fa-bec7-11e4-b544-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "248e9d0c-bec7-11e4-a106-705681abff85"], ["organization_id", "248f99fa-bec7-11e4-b544-705681abff85"], ["created_at", "2015-02-27 21:25:24.914925"], ["updated_at", "2015-02-27 21:25:24.914925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:25:24 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:24.920599' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tXxsfA5c06rbOwzKkqqYwP7Vk9FpH3FXgc4yCSRghkA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:24.922045"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:24.922985"], ["id", "248f1250-bec7-11e4-91d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "248e9d0c-bec7-11e4-a106-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$x7xh0uVEhJj59JCrprtAZ.VGvLhUneDvpUBOe/cGIF1h9GmBxHb52"], ["created_at", "2015-02-27 21:25:24.936470"], ["updated_at", "2015-02-27 21:25:24.936470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:24.938131"], ["user_id", "24937a16-bec7-11e4-b09d-705681abff85"], ["created_at", "2015-02-27 21:25:24.938928"], ["updated_at", "2015-02-27 21:25:24.938928"], ["token", "eH6ubHO1b1RrCJutuUPi1SZxvnuDp77bgzPub_IYRKI"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:24.943026"], ["updated_at", "2015-02-27 21:25:24.943026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24937a16-bec7-11e4-b09d-705681abff85' AND "clubhouse_memberships"."organization_id" = '249477fe-bec7-11e4-abf0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24937a16-bec7-11e4-b09d-705681abff85"], ["organization_id", "249477fe-bec7-11e4-abf0-705681abff85"], ["created_at", "2015-02-27 21:25:24.946405"], ["updated_at", "2015-02-27 21:25:24.946405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:25:24 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:24.963410' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eH6ubHO1b1RrCJutuUPi1SZxvnuDp77bgzPub_IYRKI"]]  (0.8ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:24.980294"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:24.983236"], ["id", "2493e85c-bec7-11e4-a094-705681abff85"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24937a16-bec7-11e4-b09d-705681abff85"]]  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:24.993723"], ["updated_at", "2015-02-27 21:25:24.993723"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "249c51d6-bec7-11e4-8686-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24937a16-bec7-11e4-b09d-705681abff85' AND "clubhouse_memberships"."organization_id" = '249c51d6-bec7-11e4-8686-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24937a16-bec7-11e4-b09d-705681abff85"], ["admin", "t"], ["organization_id", "249c51d6-bec7-11e4-8686-705681abff85"], ["created_at", "2015-02-27 21:25:25.004590"], ["updated_at", "2015-02-27 21:25:25.004590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 45ms (Views: 0.8ms | ActiveRecord: 5.8ms)  (1.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$OM0/qnmbFjkPjWZrYxA6ne3F4L4eOqJ/fnpDIgtOcI9TnbSOJhq9W"], ["created_at", "2015-02-27 21:25:25.021333"], ["updated_at", "2015-02-27 21:25:25.021333"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.024528"], ["user_id", "24a0888c-bec7-11e4-9e30-705681abff85"], ["created_at", "2015-02-27 21:25:25.030609"], ["updated_at", "2015-02-27 21:25:25.030609"], ["token", "Il78fr4Y_Nl_6ctStXIpv1hnDERx2BCRT6WayyUH_-M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.037152"], ["updated_at", "2015-02-27 21:25:25.037152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24a0888c-bec7-11e4-9e30-705681abff85' AND "clubhouse_memberships"."organization_id" = '24a2e6ae-bec7-11e4-a7be-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24a0888c-bec7-11e4-9e30-705681abff85"], ["organization_id", "24a2e6ae-bec7-11e4-a7be-705681abff85"], ["created_at", "2015-02-27 21:25:25.042634"], ["updated_at", "2015-02-27 21:25:25.042634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-9" for 127.0.0.1 at 2015-02-27 13:25:25 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-9", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:25.051752' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Il78fr4Y_Nl_6ctStXIpv1hnDERx2BCRT6WayyUH_-M"]]  (0.2ms) SAVEPOINT active_record_1 SQL (8.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:25.053882"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:25.055232"], ["id", "24a2129c-bec7-11e4-a1fa-705681abff85"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24a0888c-bec7-11e4-9e30-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "24a0888c-bec7-11e4-9e30-705681abff85"], ["name", "org-9"]] Completed 200 OK in 19ms (Views: 0.6ms | ActiveRecord: 10.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$0LfT46D1zJb50HYT6w7dCOmTXbtKDG.ew1nI5m0d2HEsCm3IMLANq"], ["created_at", "2015-02-27 21:25:25.079491"], ["updated_at", "2015-02-27 21:25:25.079491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.081896"], ["user_id", "24a95d2c-bec7-11e4-b583-705681abff85"], ["created_at", "2015-02-27 21:25:25.083199"], ["updated_at", "2015-02-27 21:25:25.083199"], ["token", "zUbnabuesP5xRXoIpUeCYMRHS5BnFQq3ojzvoC2Qjbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.087208"], ["updated_at", "2015-02-27 21:25:25.087208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24a95d2c-bec7-11e4-b583-705681abff85' AND "clubhouse_memberships"."organization_id" = '24aa7950-bec7-11e4-a3da-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24a95d2c-bec7-11e4-b583-705681abff85"], ["organization_id", "24aa7950-bec7-11e4-a3da-705681abff85"], ["created_at", "2015-02-27 21:25:25.090851"], ["updated_at", "2015-02-27 21:25:25.090851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:25:25 -0800  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$INTJaZMOEWOw7XBD3avUkeWigjStQxnQUS3F9eCqZbzcoSDPYnaCC"], ["created_at", "2015-02-27 21:25:25.132820"], ["updated_at", "2015-02-27 21:25:25.132820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.134907"], ["user_id", "24b17d40-bec7-11e4-a485-705681abff85"], ["created_at", "2015-02-27 21:25:25.135723"], ["updated_at", "2015-02-27 21:25:25.135723"], ["token", "soxbW85cOjCTvdOIndt59aXuegrd4qkEIAf7DS_3keo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.138853"], ["updated_at", "2015-02-27 21:25:25.138853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24b17d40-bec7-11e4-a485-705681abff85' AND "clubhouse_memberships"."organization_id" = '24b2614c-bec7-11e4-98ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24b17d40-bec7-11e4-a485-705681abff85"], ["organization_id", "24b2614c-bec7-11e4-98ac-705681abff85"], ["created_at", "2015-02-27 21:25:25.142521"], ["updated_at", "2015-02-27 21:25:25.142521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:25:25 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$alhzpX.IvWexeGOq85byJudQsrn/umDctTQwHx3hVuIpWn6B/6TDi"], ["created_at", "2015-02-27 21:25:25.154110"], ["updated_at", "2015-02-27 21:25:25.154110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.155913"], ["user_id", "24b4af06-bec7-11e4-899b-705681abff85"], ["created_at", "2015-02-27 21:25:25.156768"], ["updated_at", "2015-02-27 21:25:25.156768"], ["token", "bfebTueNcTEkGiBSN4vKvgxaPK8eZWPzJ4AR8GrNaLE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.160220"], ["updated_at", "2015-02-27 21:25:25.160220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24b4af06-bec7-11e4-899b-705681abff85' AND "clubhouse_memberships"."organization_id" = '24b59a42-bec7-11e4-860a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24b4af06-bec7-11e4-899b-705681abff85"], ["organization_id", "24b59a42-bec7-11e4-860a-705681abff85"], ["created_at", "2015-02-27 21:25:25.163414"], ["updated_at", "2015-02-27 21:25:25.163414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/24b59a42-bec7-11e4-860a-705681abff85" for 127.0.0.1 at 2015-02-27 13:25:25 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"24b59a42-bec7-11e4-860a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:25.168612' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bfebTueNcTEkGiBSN4vKvgxaPK8eZWPzJ4AR8GrNaLE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:25.170090"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:25.171048"], ["id", "24b5213e-bec7-11e4-9686-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24b4af06-bec7-11e4-899b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "24b4af06-bec7-11e4-899b-705681abff85"], ["id", "24b59a42-bec7-11e4-860a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '24b59a42-bec7-11e4-860a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$2NeIWkOb/FqIfoxHIFRRsexHmLlFacD5tpaWR5X4MStu7uGRDQJJe"], ["created_at", "2015-02-27 21:25:25.185872"], ["updated_at", "2015-02-27 21:25:25.185872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.187971"], ["user_id", "24b98e18-bec7-11e4-81e9-705681abff85"], ["created_at", "2015-02-27 21:25:25.188894"], ["updated_at", "2015-02-27 21:25:25.188894"], ["token", "zzMmLJmcU_b2PoDBrpijDPLiC3g-YdxgjXSrW7_mccI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.193041"], ["updated_at", "2015-02-27 21:25:25.193041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24b98e18-bec7-11e4-81e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '24baac12-bec7-11e4-b2a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24b98e18-bec7-11e4-81e9-705681abff85"], ["organization_id", "24baac12-bec7-11e4-b2a2-705681abff85"], ["created_at", "2015-02-27 21:25:25.199843"], ["updated_at", "2015-02-27 21:25:25.199843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/24baac12-bec7-11e4-b2a2-705681abff85" for 127.0.0.1 at 2015-02-27 13:25:25 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"24baac12-bec7-11e4-b2a2-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:25.204795' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zzMmLJmcU_b2PoDBrpijDPLiC3g-YdxgjXSrW7_mccI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:25.206306"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:25.207331"], ["id", "24ba0d66-bec7-11e4-a0cf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24b98e18-bec7-11e4-81e9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "24b98e18-bec7-11e4-81e9-705681abff85"], ["id", "24baac12-bec7-11e4-b2a2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '24baac12-bec7-11e4-b2a2-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:25:25.213056"], ["id", "24baac12-bec7-11e4-b2a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ELi4xe2OKcdvTMgJFlRQje.BGPdOKNe.SlnlK5Brtu79hy3nnvuCy"], ["created_at", "2015-02-27 21:25:25.221060"], ["updated_at", "2015-02-27 21:25:25.221060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.222676"], ["user_id", "24bee714-bec7-11e4-b041-705681abff85"], ["created_at", "2015-02-27 21:25:25.223466"], ["updated_at", "2015-02-27 21:25:25.223466"], ["token", "TiVX3ZeCmojeWDhTGcVk2Ti91SU3FGqo9lPMwBTbDPQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.226556"], ["updated_at", "2015-02-27 21:25:25.226556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24bee714-bec7-11e4-b041-705681abff85' AND "clubhouse_memberships"."organization_id" = '24bfb978-bec7-11e4-9258-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24bee714-bec7-11e4-b041-705681abff85"], ["organization_id", "24bfb978-bec7-11e4-9258-705681abff85"], ["created_at", "2015-02-27 21:25:25.230202"], ["updated_at", "2015-02-27 21:25:25.230202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-14" for 127.0.0.1 at 2015-02-27 13:25:25 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:25.234977' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TiVX3ZeCmojeWDhTGcVk2Ti91SU3FGqo9lPMwBTbDPQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:25.236411"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:25.237844"], ["id", "24bf489e-bec7-11e4-aef0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24bee714-bec7-11e4-b041-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "24bee714-bec7-11e4-b041-705681abff85"], ["name", "org-14"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$ByMNkHXHTFn4i24aTixucOTTs7z1.k94zYlOxDodjdOsW5YFPrXHa"], ["created_at", "2015-02-27 21:25:25.249539"], ["updated_at", "2015-02-27 21:25:25.249539"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.252078"], ["user_id", "24c34322-bec7-11e4-9fed-705681abff85"], ["created_at", "2015-02-27 21:25:25.253575"], ["updated_at", "2015-02-27 21:25:25.253575"], ["token", "zrKGGKDbRXbclcndIRnc9rf3tMmoNpwyDHUKjKarRdM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.258301"], ["updated_at", "2015-02-27 21:25:25.258301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24c34322-bec7-11e4-9fed-705681abff85' AND "clubhouse_memberships"."organization_id" = '24c49d30-bec7-11e4-90e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24c34322-bec7-11e4-9fed-705681abff85"], ["organization_id", "24c49d30-bec7-11e4-90e1-705681abff85"], ["created_at", "2015-02-27 21:25:25.262203"], ["updated_at", "2015-02-27 21:25:25.262203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:25:25 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$5PBZn9syQJdJVWWJSCZjIuHCnFEXzkdnt/69UyLXD6onv0XUlf/X2"], ["created_at", "2015-02-27 21:25:25.273991"], ["updated_at", "2015-02-27 21:25:25.273991"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.276094"], ["user_id", "24c6fc06-bec7-11e4-875d-705681abff85"], ["created_at", "2015-02-27 21:25:25.277100"], ["updated_at", "2015-02-27 21:25:25.277100"], ["token", "EVMpL7b-9mihIo25qxRdIyMy869Kz_ff0KctFxsBrLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.280621"], ["updated_at", "2015-02-27 21:25:25.280621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24c6fc06-bec7-11e4-875d-705681abff85' AND "clubhouse_memberships"."organization_id" = '24c7fd7c-bec7-11e4-ada3-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24c6fc06-bec7-11e4-875d-705681abff85"], ["organization_id", "24c7fd7c-bec7-11e4-ada3-705681abff85"], ["created_at", "2015-02-27 21:25:25.284045"], ["updated_at", "2015-02-27 21:25:25.284045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/24c7fd7c-bec7-11e4-ada3-705681abff85" for 127.0.0.1 at 2015-02-27 13:25:25 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"24c7fd7c-bec7-11e4-ada3-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:25.290794' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EVMpL7b-9mihIo25qxRdIyMy869Kz_ff0KctFxsBrLQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:25.292375"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:25.293591"], ["id", "24c77ea6-bec7-11e4-bb3b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24c6fc06-bec7-11e4-875d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "24c6fc06-bec7-11e4-875d-705681abff85"], ["id", "24c7fd7c-bec7-11e4-ada3-705681abff85"]] Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$Sxfpf4xfT4xxNgLaOhQHd.lj/2kTkuQc3zZwKsWHvVliNMSRh.vpK"], ["created_at", "2015-02-27 21:25:25.305344"], ["updated_at", "2015-02-27 21:25:25.305344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.307430"], ["user_id", "24cbcbd2-bec7-11e4-bb70-705681abff85"], ["created_at", "2015-02-27 21:25:25.308449"], ["updated_at", "2015-02-27 21:25:25.308449"], ["token", "9oP-vaTd4gwQ8rmrfBuVauSj2HM7I2qigJG6wafo-YI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.315399"], ["updated_at", "2015-02-27 21:25:25.315399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24cbcbd2-bec7-11e4-bb70-705681abff85' AND "clubhouse_memberships"."organization_id" = '24cd63d4-bec7-11e4-8112-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24cbcbd2-bec7-11e4-bb70-705681abff85"], ["organization_id", "24cd63d4-bec7-11e4-8112-705681abff85"], ["created_at", "2015-02-27 21:25:25.319873"], ["updated_at", "2015-02-27 21:25:25.319873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:25:25 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Iuu0S6iaWcJeXudEORJtuOUJ2LTjemJEB6kg05vcJEEcToD3qN04W"], ["created_at", "2015-02-27 21:25:25.332137"], ["updated_at", "2015-02-27 21:25:25.332137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.333779"], ["user_id", "24cfdaf6-bec7-11e4-b882-705681abff85"], ["created_at", "2015-02-27 21:25:25.334546"], ["updated_at", "2015-02-27 21:25:25.334546"], ["token", "7pSe9JADociEQ_uScHF-6znvbOi8rBIt-kZbcEcBrhA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.337950"], ["updated_at", "2015-02-27 21:25:25.337950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24cfdaf6-bec7-11e4-b882-705681abff85' AND "clubhouse_memberships"."organization_id" = '24d0bab6-bec7-11e4-8212-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24cfdaf6-bec7-11e4-b882-705681abff85"], ["organization_id", "24d0bab6-bec7-11e4-8212-705681abff85"], ["created_at", "2015-02-27 21:25:25.341236"], ["updated_at", "2015-02-27 21:25:25.341236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$NtnufQ.Ns2JLcvee1wn1.u4siEV8ibBSM6LgEQYHbttmkVMSjEdm2"], ["created_at", "2015-02-27 21:25:25.345559"], ["updated_at", "2015-02-27 21:25:25.345559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.348717"], ["updated_at", "2015-02-27 21:25:25.348717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24d1e3c8-bec7-11e4-92e5-705681abff85' AND "clubhouse_memberships"."organization_id" = '24d26028-bec7-11e4-b45b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24d1e3c8-bec7-11e4-92e5-705681abff85"], ["organization_id", "24d26028-bec7-11e4-b45b-705681abff85"], ["created_at", "2015-02-27 21:25:25.351975"], ["updated_at", "2015-02-27 21:25:25.351975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:25:25 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:25.357801' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7pSe9JADociEQ_uScHF-6znvbOi8rBIt-kZbcEcBrhA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:25.359268"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:25.360272"], ["id", "24d03cbc-bec7-11e4-8c8d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24cfdaf6-bec7-11e4-b882-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "24cfdaf6-bec7-11e4-b882-705681abff85"]] Completed 200 OK in 10ms (Views: 4.3ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ohZAXnKH8Xr/yKIed.mpHu./zWV36MhARJpiziXRax9MK3K/HjNvi"], ["created_at", "2015-02-27 21:25:25.376932"], ["updated_at", "2015-02-27 21:25:25.376932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:25.378819"], ["user_id", "24d6b3e4-bec7-11e4-9d5c-705681abff85"], ["created_at", "2015-02-27 21:25:25.379736"], ["updated_at", "2015-02-27 21:25:25.379736"], ["token", "Lt7fj_Q42NW6bz-ijhRARHrijbuym1fkjWm-5QIcypA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.383711"], ["updated_at", "2015-02-27 21:25:25.383711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24d6b3e4-bec7-11e4-9d5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '24d7bcda-bec7-11e4-ac7f-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24d6b3e4-bec7-11e4-9d5c-705681abff85"], ["organization_id", "24d7bcda-bec7-11e4-ac7f-705681abff85"], ["created_at", "2015-02-27 21:25:25.388132"], ["updated_at", "2015-02-27 21:25:25.388132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$JdE9aPdJ2vq9sg3KeZPDr.PsRW95fLUu.1m5JejoOGdjBKf8zitIO"], ["created_at", "2015-02-27 21:25:25.396418"], ["updated_at", "2015-02-27 21:25:25.396418"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (4.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:25.403060"], ["updated_at", "2015-02-27 21:25:25.403060"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24d9c35e-bec7-11e4-a087-705681abff85' AND "clubhouse_memberships"."organization_id" = '24dc0d3a-bec7-11e4-af5c-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24d9c35e-bec7-11e4-a087-705681abff85"], ["organization_id", "24dc0d3a-bec7-11e4-af5c-705681abff85"], ["created_at", "2015-02-27 21:25:25.443456"], ["updated_at", "2015-02-27 21:25:25.443456"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:25:25 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$txbI8M1Aw5kaQ2YOAAJtSOGAVpU8ALtL8QfBEkghBa9dBqLeHo0ku"], ["created_at", "2015-02-27 21:25:36.079824"], ["updated_at", "2015-02-27 21:25:36.079824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.090774"], ["user_id", "2b37fd88-bec7-11e4-9877-705681abff85"], ["created_at", "2015-02-27 21:25:36.096734"], ["updated_at", "2015-02-27 21:25:36.096734"], ["token", "TUQNxR_mSq4bf5BcKf9ZFiArO0jw06tI6sH253cTvxw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.109372"], ["updated_at", "2015-02-27 21:25:36.109372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b37fd88-bec7-11e4-9877-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b3c6940-bec7-11e4-ab6b-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b37fd88-bec7-11e4-9877-705681abff85"], ["organization_id", "2b3c6940-bec7-11e4-ab6b-705681abff85"], ["created_at", "2015-02-27 21:25:36.178055"], ["updated_at", "2015-02-27 21:25:36.178055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$e5wgv2aJPDD9PZNS4KKfkuqFAscoajCU2RNakpex0iodFV5Xt0Cpa"], ["created_at", "2015-02-27 21:25:36.224821"], ["updated_at", "2015-02-27 21:25:36.224821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.227105"], ["user_id", "2b4e0132-bec7-11e4-bfdf-705681abff85"], ["created_at", "2015-02-27 21:25:36.228060"], ["updated_at", "2015-02-27 21:25:36.228060"], ["token", "KYkNyLvJiEQKaXyyzn_bm9coTy0KSWSCBsU_OdXa1LA"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.233342"], ["updated_at", "2015-02-27 21:25:36.233342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b4e0132-bec7-11e4-bfdf-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b4f4d6c-bec7-11e4-a566-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b4e0132-bec7-11e4-bfdf-705681abff85"], ["organization_id", "2b4f4d6c-bec7-11e4-a566-705681abff85"], ["created_at", "2015-02-27 21:25:36.238266"], ["updated_at", "2015-02-27 21:25:36.238266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/2b4f4d6c-bec7-11e4-a566-705681abff85" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"2b4f4d6c-bec7-11e4-a566-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.256824' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KYkNyLvJiEQKaXyyzn_bm9coTy0KSWSCBsU_OdXa1LA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.265372"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.266612"], ["id", "2b4e80da-bec7-11e4-b099-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b4e0132-bec7-11e4-bfdf-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "2b4e0132-bec7-11e4-bfdf-705681abff85"], ["id", "2b4f4d6c-bec7-11e4-a566-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2b4f4d6c-bec7-11e4-a566-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 43ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$jsipTjhy7dmo.VMyripxueTc2q1/6rGr2kWfrb8DUjWTl6xcE92ji"], ["created_at", "2015-02-27 21:25:36.305594"], ["updated_at", "2015-02-27 21:25:36.305594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.307787"], ["user_id", "2b5a4e38-bec7-11e4-afc6-705681abff85"], ["created_at", "2015-02-27 21:25:36.308988"], ["updated_at", "2015-02-27 21:25:36.308988"], ["token", "wqGvWAFBlRrblcFr_4a0iglsIw3lfKXIN7C_amgCNyE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.312755"], ["updated_at", "2015-02-27 21:25:36.312755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b5a4e38-bec7-11e4-afc6-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b5b6304-bec7-11e4-9c7e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b5a4e38-bec7-11e4-afc6-705681abff85"], ["organization_id", "2b5b6304-bec7-11e4-9c7e-705681abff85"], ["created_at", "2015-02-27 21:25:36.319523"], ["updated_at", "2015-02-27 21:25:36.319523"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/2b5b6304-bec7-11e4-9c7e-705681abff85" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"2b5b6304-bec7-11e4-9c7e-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.328036' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wqGvWAFBlRrblcFr_4a0iglsIw3lfKXIN7C_amgCNyE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (4.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.329591"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.330915"], ["id", "2b5ad844-bec7-11e4-82c2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b5a4e38-bec7-11e4-afc6-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "2b5a4e38-bec7-11e4-afc6-705681abff85"], ["id", "2b5b6304-bec7-11e4-9c7e-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2b5b6304-bec7-11e4-9c7e-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:25:36.345670"], ["id", "2b5b6304-bec7-11e4-9c7e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 23ms (Views: 2.8ms | ActiveRecord: 6.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Kgozjt0qJOqg.BZRflAzuemGH23sW44K/1l5gt7dghAOIR6LIV19O"], ["created_at", "2015-02-27 21:25:36.360631"], ["updated_at", "2015-02-27 21:25:36.360631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.362499"], ["user_id", "2b62afd8-bec7-11e4-b07d-705681abff85"], ["created_at", "2015-02-27 21:25:36.363357"], ["updated_at", "2015-02-27 21:25:36.363357"], ["token", "4m23dJE9JI91rCGQnl0Kk7tkEmpMt1w4YbS51Z-P_YQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.367188"], ["updated_at", "2015-02-27 21:25:36.367188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b62afd8-bec7-11e4-b07d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b63aaa0-bec7-11e4-ba8f-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b62afd8-bec7-11e4-b07d-705681abff85"], ["organization_id", "2b63aaa0-bec7-11e4-ba8f-705681abff85"], ["created_at", "2015-02-27 21:25:36.370483"], ["updated_at", "2015-02-27 21:25:36.370483"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$eBn6z.vI0gRgNyIM8j7goelzRAdTD8xvMp2NfyTLZkUOp6PL.80oW"], ["created_at", "2015-02-27 21:25:36.388893"], ["updated_at", "2015-02-27 21:25:36.388893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.392780"], ["user_id", "2b673c24-bec7-11e4-a46a-705681abff85"], ["created_at", "2015-02-27 21:25:36.393669"], ["updated_at", "2015-02-27 21:25:36.393669"], ["token", "hlCkaz3RdyMfyKxMtWHTj_34863Xn1LnbBVA6Q4-oOs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.398229"], ["updated_at", "2015-02-27 21:25:36.398229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b673c24-bec7-11e4-a46a-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b6870a8-bec7-11e4-ad2f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b673c24-bec7-11e4-a46a-705681abff85"], ["organization_id", "2b6870a8-bec7-11e4-ad2f-705681abff85"], ["created_at", "2015-02-27 21:25:36.402482"], ["updated_at", "2015-02-27 21:25:36.402482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.409837' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hlCkaz3RdyMfyKxMtWHTj_34863Xn1LnbBVA6Q4-oOs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.411404"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.412524"], ["id", "2b67c446-bec7-11e4-9fbd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b673c24-bec7-11e4-a46a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$cNYYYn5i5LGbHN4s3Yzmau5/QQev2EUCjGCjSqIhq.ZwCv8PdEea."], ["created_at", "2015-02-27 21:25:36.429019"], ["updated_at", "2015-02-27 21:25:36.429019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.430680"], ["user_id", "2b6d1b44-bec7-11e4-be8b-705681abff85"], ["created_at", "2015-02-27 21:25:36.431523"], ["updated_at", "2015-02-27 21:25:36.431523"], ["token", "FKmokChE6o8pq08dbpOz1E09lZg8HcDdjxYb8KDf-Xs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.435185"], ["updated_at", "2015-02-27 21:25:36.435185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b6d1b44-bec7-11e4-be8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b6e09fa-bec7-11e4-b633-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b6d1b44-bec7-11e4-be8b-705681abff85"], ["organization_id", "2b6e09fa-bec7-11e4-b633-705681abff85"], ["created_at", "2015-02-27 21:25:36.438908"], ["updated_at", "2015-02-27 21:25:36.438908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.445417' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FKmokChE6o8pq08dbpOz1E09lZg8HcDdjxYb8KDf-Xs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.447080"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.448278"], ["id", "2b6d87dc-bec7-11e4-a367-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b6d1b44-bec7-11e4-be8b-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.455456"], ["updated_at", "2015-02-27 21:25:36.455456"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2b713a58-bec7-11e4-aea3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b6d1b44-bec7-11e4-be8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b713a58-bec7-11e4-aea3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2b6d1b44-bec7-11e4-be8b-705681abff85"], ["admin", "t"], ["organization_id", "2b713a58-bec7-11e4-aea3-705681abff85"], ["created_at", "2015-02-27 21:25:36.463451"], ["updated_at", "2015-02-27 21:25:36.463451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 21ms (Views: 0.6ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$hddvG6iTKtkH/IedwrzcU.qmL/fpXhZ2yymbuBwm7n1NK0.H7j4gC"], ["created_at", "2015-02-27 21:25:36.473276"], ["updated_at", "2015-02-27 21:25:36.473276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.476485"], ["user_id", "2b73f086-bec7-11e4-b53d-705681abff85"], ["created_at", "2015-02-27 21:25:36.478061"], ["updated_at", "2015-02-27 21:25:36.478061"], ["token", "Ib-CQMtrE34KASu78sMbemAKUzpRcJF3kQ1dPMmUjyU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.482547"], ["updated_at", "2015-02-27 21:25:36.482547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b73f086-bec7-11e4-b53d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b755016-bec7-11e4-99d7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b73f086-bec7-11e4-b53d-705681abff85"], ["organization_id", "2b755016-bec7-11e4-99d7-705681abff85"], ["created_at", "2015-02-27 21:25:36.488103"], ["updated_at", "2015-02-27 21:25:36.488103"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-7" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.495216' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ib-CQMtrE34KASu78sMbemAKUzpRcJF3kQ1dPMmUjyU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.496766"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.497946"], ["id", "2b74a8f0-bec7-11e4-b69e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b73f086-bec7-11e4-b53d-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "2b73f086-bec7-11e4-b53d-705681abff85"], ["name", "org-7"]] Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$JjCmHsMgcx3P8n/0hWs9nOwlJGPH8KvTx0vhknyJ4sJahb3bGgkgC"], ["created_at", "2015-02-27 21:25:36.511584"], ["updated_at", "2015-02-27 21:25:36.511584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.513825"], ["user_id", "2b79bf16-bec7-11e4-9239-705681abff85"], ["created_at", "2015-02-27 21:25:36.514741"], ["updated_at", "2015-02-27 21:25:36.514741"], ["token", "kTx9RgvbyrZprfZljBPYktCLPvoxQV9momtN0OH1dZY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.520863"], ["updated_at", "2015-02-27 21:25:36.520863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b79bf16-bec7-11e4-9239-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b7b3c60-bec7-11e4-9577-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b79bf16-bec7-11e4-9239-705681abff85"], ["organization_id", "2b7b3c60-bec7-11e4-9577-705681abff85"], ["created_at", "2015-02-27 21:25:36.526962"], ["updated_at", "2015-02-27 21:25:36.526962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:25:36 -0800  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$sOP9OhzNWcFMhlQJOZ9M1OAtLde9cDCFTA4e74HuaYnfUmTmYtiG6"], ["created_at", "2015-02-27 21:25:36.562611"], ["updated_at", "2015-02-27 21:25:36.562611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.564630"], ["user_id", "2b8180ac-bec7-11e4-980d-705681abff85"], ["created_at", "2015-02-27 21:25:36.565605"], ["updated_at", "2015-02-27 21:25:36.565605"], ["token", "xE-fdAzeWWI-kxCkPErNAdIOuUbMkC6K_5gkVxjRbfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.569745"], ["updated_at", "2015-02-27 21:25:36.569745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b8180ac-bec7-11e4-980d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b8293de-bec7-11e4-9097-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b8180ac-bec7-11e4-980d-705681abff85"], ["organization_id", "2b8293de-bec7-11e4-9097-705681abff85"], ["created_at", "2015-02-27 21:25:36.574108"], ["updated_at", "2015-02-27 21:25:36.574108"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/2b8293de-bec7-11e4-9097-705681abff85" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"2b8293de-bec7-11e4-9097-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.581563' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xE-fdAzeWWI-kxCkPErNAdIOuUbMkC6K_5gkVxjRbfo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.583334"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.584944"], ["id", "2b81ffc8-bec7-11e4-8d95-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b8180ac-bec7-11e4-980d-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "2b8180ac-bec7-11e4-980d-705681abff85"], ["id", "2b8293de-bec7-11e4-9097-705681abff85"]] Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (3.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$1E4cVGU7EzoqorA1XbhVyOZz0JysnIVKJE4Yj.KtvDSbVhS3RQh0W"], ["created_at", "2015-02-27 21:25:36.600781"], ["updated_at", "2015-02-27 21:25:36.600781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.607439"], ["user_id", "2b8752a2-bec7-11e4-a0f5-705681abff85"], ["created_at", "2015-02-27 21:25:36.609769"], ["updated_at", "2015-02-27 21:25:36.609769"], ["token", "Vfq2Rw05drSSYj0ewrDATa37G-W72liq7ukKTo9_Db0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.655363"], ["updated_at", "2015-02-27 21:25:36.655363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b8752a2-bec7-11e4-a0f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b8fa8c6-bec7-11e4-927f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b8752a2-bec7-11e4-a0f5-705681abff85"], ["organization_id", "2b8fa8c6-bec7-11e4-927f-705681abff85"], ["created_at", "2015-02-27 21:25:36.659873"], ["updated_at", "2015-02-27 21:25:36.659873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:25:36 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$KZ1wIPgBuJzGxEvXQb8vSuLMPfbhp8Mx4ZxX.bruWsuJYQA6fpTlC"], ["created_at", "2015-02-27 21:25:36.669273"], ["updated_at", "2015-02-27 21:25:36.669273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.670831"], ["user_id", "2b91c1d8-bec7-11e4-b5f2-705681abff85"], ["created_at", "2015-02-27 21:25:36.671609"], ["updated_at", "2015-02-27 21:25:36.671609"], ["token", "FYsGXbsFb2t5zqciDpgBKn5yR8NKTiP_AH1vpCzw6P4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.675006"], ["updated_at", "2015-02-27 21:25:36.675006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b91c1d8-bec7-11e4-b5f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b92afee-bec7-11e4-aadf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b91c1d8-bec7-11e4-b5f2-705681abff85"], ["organization_id", "2b92afee-bec7-11e4-aadf-705681abff85"], ["created_at", "2015-02-27 21:25:36.679977"], ["updated_at", "2015-02-27 21:25:36.679977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/2b92afee-bec7-11e4-aadf-705681abff85" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"2b92afee-bec7-11e4-aadf-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.685219' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FYsGXbsFb2t5zqciDpgBKn5yR8NKTiP_AH1vpCzw6P4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.687414"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.688553"], ["id", "2b922308-bec7-11e4-bd2e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b91c1d8-bec7-11e4-b5f2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "2b91c1d8-bec7-11e4-b5f2-705681abff85"], ["id", "2b92afee-bec7-11e4-aadf-705681abff85"]] Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$8frjEVqja/3FF3ziiCQLR.rHBJmEamJqXSk3k3h6gaXp8Jvx57GQe"], ["created_at", "2015-02-27 21:25:36.700783"], ["updated_at", "2015-02-27 21:25:36.700783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.702573"], ["user_id", "2b96947e-bec7-11e4-b6c6-705681abff85"], ["created_at", "2015-02-27 21:25:36.703411"], ["updated_at", "2015-02-27 21:25:36.703411"], ["token", "fmP2zQrOLqnqsUeQk687NyFB4FV8wjIiaf2SaaObwNM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.707664"], ["updated_at", "2015-02-27 21:25:36.707664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b96947e-bec7-11e4-b6c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b97ada0-bec7-11e4-a89c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b96947e-bec7-11e4-b6c6-705681abff85"], ["organization_id", "2b97ada0-bec7-11e4-a89c-705681abff85"], ["created_at", "2015-02-27 21:25:36.713498"], ["updated_at", "2015-02-27 21:25:36.713498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$c51SUHoMQvlTeL9y/NacOuyqN5l/oMP5RxypJjOoLeON8esECaVM."], ["created_at", "2015-02-27 21:25:36.734209"], ["updated_at", "2015-02-27 21:25:36.734209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.735925"], ["user_id", "2b9bad24-bec7-11e4-8638-705681abff85"], ["created_at", "2015-02-27 21:25:36.736668"], ["updated_at", "2015-02-27 21:25:36.736668"], ["token", "YYmFkILLowfJXR46F6r5125QMRPHQiQ2DvGLyaX7Ez8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.739936"], ["updated_at", "2015-02-27 21:25:36.739936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b9bad24-bec7-11e4-8638-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b9c8776-bec7-11e4-b6f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b9bad24-bec7-11e4-8638-705681abff85"], ["organization_id", "2b9c8776-bec7-11e4-b6f6-705681abff85"], ["created_at", "2015-02-27 21:25:36.743232"], ["updated_at", "2015-02-27 21:25:36.743232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (2.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$j1wilE74q95j/X/cJ3wnK.KmfoIEjvU9cwdYY5CKr.SS5jXMsQFya"], ["created_at", "2015-02-27 21:25:36.755069"], ["updated_at", "2015-02-27 21:25:36.755069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.759125"], ["user_id", "2b9edf9e-bec7-11e4-bd1f-705681abff85"], ["created_at", "2015-02-27 21:25:36.759914"], ["updated_at", "2015-02-27 21:25:36.759914"], ["token", "mds8PW9oDz-s_R2L3ZynyhyHdUmPSnJaU2En2YP29jM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.763332"], ["updated_at", "2015-02-27 21:25:36.763332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b9edf9e-bec7-11e4-bd1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ba02188-bec7-11e4-a734-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b9edf9e-bec7-11e4-bd1f-705681abff85"], ["organization_id", "2ba02188-bec7-11e4-a734-705681abff85"], ["created_at", "2015-02-27 21:25:36.768183"], ["updated_at", "2015-02-27 21:25:36.768183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-14" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-14", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.773487' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mds8PW9oDz-s_R2L3ZynyhyHdUmPSnJaU2En2YP29jM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.775310"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.777244"], ["id", "2b9f9e84-bec7-11e4-9de3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b9edf9e-bec7-11e4-bd1f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "2b9edf9e-bec7-11e4-bd1f-705681abff85"], ["name", "org-14"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2ba02188-bec7-11e4-a734-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$S5ThW9rbGyoKNyBsrNYEKurdBYdvlUw2.A.mRl0QAKSgINRM6yR7C"], ["created_at", "2015-02-27 21:25:36.790682"], ["updated_at", "2015-02-27 21:25:36.790682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.792261"], ["user_id", "2ba44808-bec7-11e4-8555-705681abff85"], ["created_at", "2015-02-27 21:25:36.793011"], ["updated_at", "2015-02-27 21:25:36.793011"], ["token", "cm3vA_P8qWm327miXnU8fPyRCnbgJ3Pj7Vql96Qeiy8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.796101"], ["updated_at", "2015-02-27 21:25:36.796101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ba44808-bec7-11e4-8555-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ba5197c-bec7-11e4-b6e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ba44808-bec7-11e4-8555-705681abff85"], ["organization_id", "2ba5197c-bec7-11e4-b6e2-705681abff85"], ["created_at", "2015-02-27 21:25:36.799316"], ["updated_at", "2015-02-27 21:25:36.799316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-15" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-15", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.803693' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cm3vA_P8qWm327miXnU8fPyRCnbgJ3Pj7Vql96Qeiy8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.805192"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.806115"], ["id", "2ba4a7b2-bec7-11e4-abfb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2ba44808-bec7-11e4-8555-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "2ba44808-bec7-11e4-8555-705681abff85"], ["name", "org-15"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2ba5197c-bec7-11e4-b6e2-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:25:36.812203"], ["id", "2ba5197c-bec7-11e4-b6e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$BEqsSsTEJbcj075fglUlWefX8ytsLD.cBXZpYIE8Zj4410Ruokxx2"], ["created_at", "2015-02-27 21:25:36.819699"], ["updated_at", "2015-02-27 21:25:36.819699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.821454"], ["user_id", "2ba8b6ae-bec7-11e4-b31b-705681abff85"], ["created_at", "2015-02-27 21:25:36.822790"], ["updated_at", "2015-02-27 21:25:36.822790"], ["token", "HHHncZrymOozJtvdC0MlJHU6-vmVdUp4e0AKLXKrO8E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.826804"], ["updated_at", "2015-02-27 21:25:36.826804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ba8b6ae-bec7-11e4-b31b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ba9ccce-bec7-11e4-b649-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ba8b6ae-bec7-11e4-b31b-705681abff85"], ["organization_id", "2ba9ccce-bec7-11e4-b649-705681abff85"], ["created_at", "2015-02-27 21:25:36.830046"], ["updated_at", "2015-02-27 21:25:36.830046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-16" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-16", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.834510' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HHHncZrymOozJtvdC0MlJHU6-vmVdUp4e0AKLXKrO8E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.835929"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.836885"], ["id", "2ba93cfa-bec7-11e4-bb2c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2ba8b6ae-bec7-11e4-b31b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "2ba8b6ae-bec7-11e4-b31b-705681abff85"], ["name", "org-16"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$9LGdsqq9HF1TNctBCVDG5ed0jrloofWFYqYkBYJk.xo6m1E9DP/q."], ["created_at", "2015-02-27 21:25:36.847125"], ["updated_at", "2015-02-27 21:25:36.847125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.848786"], ["user_id", "2bace6ac-bec7-11e4-b4d2-705681abff85"], ["created_at", "2015-02-27 21:25:36.849574"], ["updated_at", "2015-02-27 21:25:36.849574"], ["token", "tLmnZfD6v2bkoX5UnrEIQ2JAoR5Qv_a0HIwXk4_ighg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.853030"], ["updated_at", "2015-02-27 21:25:36.853030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2bace6ac-bec7-11e4-b4d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2badcb1c-bec7-11e4-8393-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2bace6ac-bec7-11e4-b4d2-705681abff85"], ["organization_id", "2badcb1c-bec7-11e4-8393-705681abff85"], ["created_at", "2015-02-27 21:25:36.856185"], ["updated_at", "2015-02-27 21:25:36.856185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$KmSXftzeZlg8t77ZHwIsX.YiB3OF.L36t9Ke2UwpVaQ/P5.kNe122"], ["created_at", "2015-02-27 21:25:36.870720"], ["updated_at", "2015-02-27 21:25:36.870720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.872406"], ["user_id", "2bb07ff6-bec7-11e4-8fc7-705681abff85"], ["created_at", "2015-02-27 21:25:36.873159"], ["updated_at", "2015-02-27 21:25:36.873159"], ["token", "an2spPYPkA8UacAE_MSHqF1waQ2IvuqTDtPGKTBQTvY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.876474"], ["updated_at", "2015-02-27 21:25:36.876474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2bb07ff6-bec7-11e4-8fc7-705681abff85' AND "clubhouse_memberships"."organization_id" = '2bb15f98-bec7-11e4-80e8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2bb07ff6-bec7-11e4-8fc7-705681abff85"], ["organization_id", "2bb15f98-bec7-11e4-80e8-705681abff85"], ["created_at", "2015-02-27 21:25:36.880198"], ["updated_at", "2015-02-27 21:25:36.880198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$fKMixX8Lfy3oV3/0QDXkFeVHZ1Gh/UjTSo6R41VNPsmIMuqJJJTfu"], ["created_at", "2015-02-27 21:25:36.885376"], ["updated_at", "2015-02-27 21:25:36.885376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.888709"], ["updated_at", "2015-02-27 21:25:36.888709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2bb2bc3a-bec7-11e4-98d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '2bb33bec-bec7-11e4-a329-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2bb2bc3a-bec7-11e4-98d1-705681abff85"], ["organization_id", "2bb33bec-bec7-11e4-a329-705681abff85"], ["created_at", "2015-02-27 21:25:36.891841"], ["updated_at", "2015-02-27 21:25:36.891841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:25:36.896497' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "an2spPYPkA8UacAE_MSHqF1waQ2IvuqTDtPGKTBQTvY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:25:36.897897"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:25:36.898943"], ["id", "2bb0e32e-bec7-11e4-bc91-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2bb07ff6-bec7-11e4-8fc7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "2bb07ff6-bec7-11e4-8fc7-705681abff85"]] Completed 200 OK in 8ms (Views: 2.3ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$flKEu9TUwTMJDKOotFuJT.KF8V64GvLo2sV/bQxZ7wIZZnJvh.6Sm"], ["created_at", "2015-02-27 21:25:36.910126"], ["updated_at", "2015-02-27 21:25:36.910126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:25:36.911666"], ["user_id", "2bb681bc-bec7-11e4-8886-705681abff85"], ["created_at", "2015-02-27 21:25:36.912424"], ["updated_at", "2015-02-27 21:25:36.912424"], ["token", "SEgg63OTshuxHu3n7J9nm7nY0mrVfdPt-MSs4Vhdbmg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.915655"], ["updated_at", "2015-02-27 21:25:36.915655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2bb681bc-bec7-11e4-8886-705681abff85' AND "clubhouse_memberships"."organization_id" = '2bb7588a-bec7-11e4-a1eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2bb681bc-bec7-11e4-8886-705681abff85"], ["organization_id", "2bb7588a-bec7-11e4-a1eb-705681abff85"], ["created_at", "2015-02-27 21:25:36.918893"], ["updated_at", "2015-02-27 21:25:36.918893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$9dmjY03nPvdWxUdet16soe3CWbp8JfM/u.WM8MTWccSHqeP93Y1ka"], ["created_at", "2015-02-27 21:25:36.923294"], ["updated_at", "2015-02-27 21:25:36.923294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:25:36.926472"], ["updated_at", "2015-02-27 21:25:36.926472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2bb88610-bec7-11e4-827d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2bb90090-bec7-11e4-b3ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2bb88610-bec7-11e4-827d-705681abff85"], ["organization_id", "2bb90090-bec7-11e4-b3ff-705681abff85"], ["created_at", "2015-02-27 21:25:36.929889"], ["updated_at", "2015-02-27 21:25:36.929889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:25:36 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$YNHj5qLncx2D73Pek.eW7Oy34nHPHBI4POPyo1pjGlZI3b7uzuPle"], ["created_at", "2015-02-27 21:27:03.807346"], ["updated_at", "2015-02-27 21:27:03.807346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:03.818879"], ["user_id", "5f823bc6-bec7-11e4-a44a-705681abff85"], ["created_at", "2015-02-27 21:27:03.824732"], ["updated_at", "2015-02-27 21:27:03.824732"], ["token", "CcK_7tkV_lgkKKKWgg19PhAP6Es8gS8rH8YQ0y2IaKU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (6.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:03.835641"], ["updated_at", "2015-02-27 21:27:03.835641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f823bc6-bec7-11e4-a44a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f865a1c-bec7-11e4-bb63-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f823bc6-bec7-11e4-a44a-705681abff85"], ["organization_id", "5f865a1c-bec7-11e4-bb63-705681abff85"], ["created_at", "2015-02-27 21:27:03.854225"], ["updated_at", "2015-02-27 21:27:03.854225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:27:03 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$UOIuRWhvu2WCOTOlCffqe.EaBRUaBMgR92qKf4vmw1kLgrqbYq/M6"], ["created_at", "2015-02-27 21:27:03.888761"], ["updated_at", "2015-02-27 21:27:03.888761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:03.890516"], ["user_id", "5f8e6a0e-bec7-11e4-a799-705681abff85"], ["created_at", "2015-02-27 21:27:03.891244"], ["updated_at", "2015-02-27 21:27:03.891244"], ["token", "UtQhE2ukd38gF4I0AZHRGoxcAM5hSr53xatoTXhpImw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:03.902410"], ["updated_at", "2015-02-27 21:27:03.902410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f8e6a0e-bec7-11e4-a799-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f908c62-bec7-11e4-b3f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f8e6a0e-bec7-11e4-a799-705681abff85"], ["organization_id", "5f908c62-bec7-11e4-b3f2-705681abff85"], ["created_at", "2015-02-27 21:27:03.906458"], ["updated_at", "2015-02-27 21:27:03.906458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-2" for 127.0.0.1 at 2015-02-27 13:27:03 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-2", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:03.922047' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UtQhE2ukd38gF4I0AZHRGoxcAM5hSr53xatoTXhpImw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:03.929371"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:03.930790"], ["id", "5f8eccc4-bec7-11e4-8858-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f8e6a0e-bec7-11e4-a799-705681abff85"]] Clubhouse::Organization Load (0.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "5f8e6a0e-bec7-11e4-a799-705681abff85"], ["name", "org-2"]]  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5f908c62-bec7-11e4-b3f2-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 78ms  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$gYNzYi8WJ.kZ2RHaraDTyenySBSS5vTDcdQWioCL1/yat.J8Ujhya"], ["created_at", "2015-02-27 21:27:04.008937"], ["updated_at", "2015-02-27 21:27:04.008937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.012470"], ["user_id", "5fa0e8c8-bec7-11e4-aa93-705681abff85"], ["created_at", "2015-02-27 21:27:04.014083"], ["updated_at", "2015-02-27 21:27:04.014083"], ["token", "D9W2pd7YwagIwcJIrQvVH32VAk8qp0R5I7UZIeJOzrE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.020580"], ["updated_at", "2015-02-27 21:27:04.020580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fa0e8c8-bec7-11e4-aa93-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fa29bc8-bec7-11e4-ba85-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fa0e8c8-bec7-11e4-aa93-705681abff85"], ["organization_id", "5fa29bc8-bec7-11e4-ba85-705681abff85"], ["created_at", "2015-02-27 21:27:04.026803"], ["updated_at", "2015-02-27 21:27:04.026803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-3" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-3", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:04.035616' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "D9W2pd7YwagIwcJIrQvVH32VAk8qp0R5I7UZIeJOzrE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:04.037069"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:04.038386"], ["id", "5fa1afa6-bec7-11e4-9351-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fa0e8c8-bec7-11e4-aa93-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "5fa0e8c8-bec7-11e4-aa93-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5fa29bc8-bec7-11e4-ba85-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:27:04.045346"], ["id", "5fa29bc8-bec7-11e4-ba85-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$2ssu148e4ksnoNyaBd6n/.m7FJ3RjwbOW52qgxek.F/GZ3Culfb/O"], ["created_at", "2015-02-27 21:27:04.056331"], ["updated_at", "2015-02-27 21:27:04.056331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.057947"], ["user_id", "5fa7f7f8-bec7-11e4-a9b9-705681abff85"], ["created_at", "2015-02-27 21:27:04.059115"], ["updated_at", "2015-02-27 21:27:04.059115"], ["token", "MXjds4z4THmdB5grXsv5MH6Uje62KuGGR9QRjiJ0Wso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.063256"], ["updated_at", "2015-02-27 21:27:04.063256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fa7f7f8-bec7-11e4-a9b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fa9047c-bec7-11e4-83b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fa7f7f8-bec7-11e4-a9b9-705681abff85"], ["organization_id", "5fa9047c-bec7-11e4-83b6-705681abff85"], ["created_at", "2015-02-27 21:27:04.066483"], ["updated_at", "2015-02-27 21:27:04.066483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5fa9047c-bec7-11e4-83b6-705681abff85" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"5fa9047c-bec7-11e4-83b6-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:04.071319' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MXjds4z4THmdB5grXsv5MH6Uje62KuGGR9QRjiJ0Wso"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:04.072849"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:04.074758"], ["id", "5fa88790-bec7-11e4-ad6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fa7f7f8-bec7-11e4-a9b9-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "5fa7f7f8-bec7-11e4-a9b9-705681abff85"], ["id", "5fa9047c-bec7-11e4-83b6-705681abff85"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$X89IIp/bWRdHASmrTr6rPup2d6L4qAo0qyk9hUAw5Psr8/oOToR5q"], ["created_at", "2015-02-27 21:27:04.086080"], ["updated_at", "2015-02-27 21:27:04.086080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.088297"], ["user_id", "5fac8a2a-bec7-11e4-89d9-705681abff85"], ["created_at", "2015-02-27 21:27:04.089301"], ["updated_at", "2015-02-27 21:27:04.089301"], ["token", "WzCju-3L_Tg7hnX6OHj4LV-NwRI8tcILSgeHPr1GZ0M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.092830"], ["updated_at", "2015-02-27 21:27:04.092830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fac8a2a-bec7-11e4-89d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fad8952-bec7-11e4-9108-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fac8a2a-bec7-11e4-89d9-705681abff85"], ["organization_id", "5fad8952-bec7-11e4-9108-705681abff85"], ["created_at", "2015-02-27 21:27:04.096220"], ["updated_at", "2015-02-27 21:27:04.096220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$7jqUGlWgpAayBEnZ5oxASOwg8QtR7IkxjalA3G4OExYUgO1IBLHXq"], ["created_at", "2015-02-27 21:27:04.110284"], ["updated_at", "2015-02-27 21:27:04.110284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.112039"], ["user_id", "5fb03760-bec7-11e4-99c6-705681abff85"], ["created_at", "2015-02-27 21:27:04.112906"], ["updated_at", "2015-02-27 21:27:04.112906"], ["token", "Ve3mmypetdFlmZ2ldLc6vw40zQcE14GqAZfC_ANkULQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.117003"], ["updated_at", "2015-02-27 21:27:04.117003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fb03760-bec7-11e4-99c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fb13d5e-bec7-11e4-b467-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fb03760-bec7-11e4-99c6-705681abff85"], ["organization_id", "5fb13d5e-bec7-11e4-b467-705681abff85"], ["created_at", "2015-02-27 21:27:04.120508"], ["updated_at", "2015-02-27 21:27:04.120508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:04.125537' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ve3mmypetdFlmZ2ldLc6vw40zQcE14GqAZfC_ANkULQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:04.126976"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:04.127917"], ["id", "5fb0a45c-bec7-11e4-859c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fb03760-bec7-11e4-99c6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "5fb03760-bec7-11e4-99c6-705681abff85"], ["name", "org-6"]] Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Q2Syay2CXAf5O.l5rPSWW.0ne7hPADh/o4dtMhw6KJPrUQQT6QLJ2"], ["created_at", "2015-02-27 21:27:04.138785"], ["updated_at", "2015-02-27 21:27:04.138785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.140741"], ["user_id", "5fb4938c-bec7-11e4-bf8c-705681abff85"], ["created_at", "2015-02-27 21:27:04.141680"], ["updated_at", "2015-02-27 21:27:04.141680"], ["token", "wh_xofiUzqqatDJEkom8Kn3OT6j_h7Oebzfx5ALK8O8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.145420"], ["updated_at", "2015-02-27 21:27:04.145420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fb4938c-bec7-11e4-bf8c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fb59124-bec7-11e4-abe2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fb4938c-bec7-11e4-bf8c-705681abff85"], ["organization_id", "5fb59124-bec7-11e4-abe2-705681abff85"], ["created_at", "2015-02-27 21:27:04.149029"], ["updated_at", "2015-02-27 21:27:04.149029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$X6SVXtzRjXIXAOuICuBku.t1sLoS6ujUpcAoZ57EFr603J4WtJLcu"], ["created_at", "2015-02-27 21:27:04.160825"], ["updated_at", "2015-02-27 21:27:04.160825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.162467"], ["user_id", "5fb7ea82-bec7-11e4-9cc9-705681abff85"], ["created_at", "2015-02-27 21:27:04.163249"], ["updated_at", "2015-02-27 21:27:04.163249"], ["token", "OVTBgVcuIF3fr2xhUXH4mhNqJtVxUgI86TKUgYR9aXY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.166424"], ["updated_at", "2015-02-27 21:27:04.166424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fb7ea82-bec7-11e4-9cc9-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fb8c83a-bec7-11e4-a31a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fb7ea82-bec7-11e4-9cc9-705681abff85"], ["organization_id", "5fb8c83a-bec7-11e4-a31a-705681abff85"], ["created_at", "2015-02-27 21:27:04.170217"], ["updated_at", "2015-02-27 21:27:04.170217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$xy.0wJ9c.nnWZHG.q7rKbeaa5YADgYyOOpQRx4ykU/L.WAtSC8Dd2"], ["created_at", "2015-02-27 21:27:04.182354"], ["updated_at", "2015-02-27 21:27:04.182354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.186129"], ["user_id", "5fbb31ce-bec7-11e4-a30c-705681abff85"], ["created_at", "2015-02-27 21:27:04.186963"], ["updated_at", "2015-02-27 21:27:04.186963"], ["token", "Qhc4_W2f-ZVr01VxX2SoAlFEttivw3YxXyh4aCuBb6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.190421"], ["updated_at", "2015-02-27 21:27:04.190421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fbb31ce-bec7-11e4-a30c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fbc711a-bec7-11e4-89e1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fbb31ce-bec7-11e4-a30c-705681abff85"], ["organization_id", "5fbc711a-bec7-11e4-89e1-705681abff85"], ["created_at", "2015-02-27 21:27:04.194383"], ["updated_at", "2015-02-27 21:27:04.194383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5fbc711a-bec7-11e4-89e1-705681abff85" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"5fbc711a-bec7-11e4-89e1-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:04.199648' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Qhc4_W2f-ZVr01VxX2SoAlFEttivw3YxXyh4aCuBb6M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:04.201115"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:04.202149"], ["id", "5fbbf294-bec7-11e4-8916-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fbb31ce-bec7-11e4-a30c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "5fbb31ce-bec7-11e4-a30c-705681abff85"], ["id", "5fbc711a-bec7-11e4-89e1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5fbc711a-bec7-11e4-89e1-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$on2BGdNUyl6cIo/os6xEhOe/AvRUKGd2ARUc4FGbKXlYMPv7h1PXC"], ["created_at", "2015-02-27 21:27:04.216192"], ["updated_at", "2015-02-27 21:27:04.216192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.218010"], ["user_id", "5fc05dca-bec7-11e4-8bd6-705681abff85"], ["created_at", "2015-02-27 21:27:04.218863"], ["updated_at", "2015-02-27 21:27:04.218863"], ["token", "UBjSP4xaEP8CuRDIz_rX43EmuI2Xp07rpNM-AYbejVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.222299"], ["updated_at", "2015-02-27 21:27:04.222299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fc05dca-bec7-11e4-8bd6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fc14ca8-bec7-11e4-8bee-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fc05dca-bec7-11e4-8bd6-705681abff85"], ["organization_id", "5fc14ca8-bec7-11e4-8bee-705681abff85"], ["created_at", "2015-02-27 21:27:04.226272"], ["updated_at", "2015-02-27 21:27:04.226272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5fc14ca8-bec7-11e4-8bee-705681abff85" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"5fc14ca8-bec7-11e4-8bee-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:04.262850' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UBjSP4xaEP8CuRDIz_rX43EmuI2Xp07rpNM-AYbejVI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:04.264903"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:04.265892"], ["id", "5fc0ce2c-bec7-11e4-9c04-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fc05dca-bec7-11e4-8bd6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "5fc05dca-bec7-11e4-8bd6-705681abff85"], ["id", "5fc14ca8-bec7-11e4-8bee-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5fc14ca8-bec7-11e4-8bee-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:27:04.272101"], ["id", "5fc14ca8-bec7-11e4-8bee-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$dY/mWmj8Ov/WU6XPXSdvP.YQmW8n/FbhHbL2RqzaWATpjCvDGInAC"], ["created_at", "2015-02-27 21:27:04.281618"], ["updated_at", "2015-02-27 21:27:04.281618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.283271"], ["user_id", "5fca5974-bec7-11e4-b1b2-705681abff85"], ["created_at", "2015-02-27 21:27:04.284065"], ["updated_at", "2015-02-27 21:27:04.284065"], ["token", "T28HXtcPg30S_6vFaVZDP_byebx2kbPxi-jhCzOyN6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.287577"], ["updated_at", "2015-02-27 21:27:04.287577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fca5974-bec7-11e4-b1b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fcb4226-bec7-11e4-99f0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fca5974-bec7-11e4-b1b2-705681abff85"], ["organization_id", "5fcb4226-bec7-11e4-99f0-705681abff85"], ["created_at", "2015-02-27 21:27:04.290973"], ["updated_at", "2015-02-27 21:27:04.290973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$yg4oCwLUmhjMneuUHzAxzu93asw/1CFvkAzfwpmD4O4DALUHsRyMS"], ["created_at", "2015-02-27 21:27:04.295369"], ["updated_at", "2015-02-27 21:27:04.295369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.299041"], ["updated_at", "2015-02-27 21:27:04.299041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fcc70c4-bec7-11e4-b572-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fccffbc-bec7-11e4-b479-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fcc70c4-bec7-11e4-b572-705681abff85"], ["organization_id", "5fccffbc-bec7-11e4-b479-705681abff85"], ["created_at", "2015-02-27 21:27:04.302365"], ["updated_at", "2015-02-27 21:27:04.302365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:04.309268' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "T28HXtcPg30S_6vFaVZDP_byebx2kbPxi-jhCzOyN6s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:04.310822"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:04.312008"], ["id", "5fcabe82-bec7-11e4-ad33-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fca5974-bec7-11e4-b1b2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "5fca5974-bec7-11e4-b1b2-705681abff85"]] Completed 200 OK in 10ms (Views: 2.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$uz2vVc0TTjZg/QGfwqyCmu9twPAipaokTAI8AruiagBbU/eRW2nS2"], ["created_at", "2015-02-27 21:27:04.325622"], ["updated_at", "2015-02-27 21:27:04.325622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.327545"], ["user_id", "5fd117e6-bec7-11e4-9d1a-705681abff85"], ["created_at", "2015-02-27 21:27:04.328381"], ["updated_at", "2015-02-27 21:27:04.328381"], ["token", "BB-Bl9qpsMJo_LxxXraOeiEKlz1KST_cHUav9Z7M2T4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.332552"], ["updated_at", "2015-02-27 21:27:04.332552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fd117e6-bec7-11e4-9d1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fd21d80-bec7-11e4-8bb2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fd117e6-bec7-11e4-9d1a-705681abff85"], ["organization_id", "5fd21d80-bec7-11e4-8bb2-705681abff85"], ["created_at", "2015-02-27 21:27:04.336105"], ["updated_at", "2015-02-27 21:27:04.336105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$zt/jTovj3kB1Ycu5FiYZnuTIsLI2XLBDtd98Tdf2JBLH/qmWlIxfi"], ["created_at", "2015-02-27 21:27:04.341195"], ["updated_at", "2015-02-27 21:27:04.341195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.345723"], ["updated_at", "2015-02-27 21:27:04.345723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fd36e6a-bec7-11e4-b91c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fd421fc-bec7-11e4-b8b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fd36e6a-bec7-11e4-b91c-705681abff85"], ["organization_id", "5fd421fc-bec7-11e4-b8b4-705681abff85"], ["created_at", "2015-02-27 21:27:04.351350"], ["updated_at", "2015-02-27 21:27:04.351350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$TBwUj36MNMWLsGl0AeKqquQWvcKVzOHGXylKJ7mtKG9YLNvStekOG"], ["created_at", "2015-02-27 21:27:04.372121"], ["updated_at", "2015-02-27 21:27:04.372121"]]  (2.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.376655"], ["user_id", "5fd82b94-bec7-11e4-ab8a-705681abff85"], ["created_at", "2015-02-27 21:27:04.377560"], ["updated_at", "2015-02-27 21:27:04.377560"], ["token", "MebAJkhh1UWx6CLTbGVEXEupKvKLUHtwHbkjUNTD6Fc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.381523"], ["updated_at", "2015-02-27 21:27:04.381523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fd82b94-bec7-11e4-ab8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fd998e4-bec7-11e4-8bc2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fd82b94-bec7-11e4-ab8a-705681abff85"], ["organization_id", "5fd998e4-bec7-11e4-8bc2-705681abff85"], ["created_at", "2015-02-27 21:27:04.385050"], ["updated_at", "2015-02-27 21:27:04.385050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$GOHjzSw066UnVHOvclKYk.YHPSTpdbpjzp./PSUfNGSEy/syHzrKe"], ["created_at", "2015-02-27 21:27:04.397744"], ["updated_at", "2015-02-27 21:27:04.397744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.399419"], ["user_id", "5fdc1290-bec7-11e4-90ba-705681abff85"], ["created_at", "2015-02-27 21:27:04.400195"], ["updated_at", "2015-02-27 21:27:04.400195"], ["token", "mZwiuqJo0CVDTNEaclKKw3JJqYnBPURzfaN5oiKR3v0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.405725"], ["updated_at", "2015-02-27 21:27:04.405725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fdc1290-bec7-11e4-90ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fdd5c72-bec7-11e4-b6b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fdc1290-bec7-11e4-90ba-705681abff85"], ["organization_id", "5fdd5c72-bec7-11e4-b6b0-705681abff85"], ["created_at", "2015-02-27 21:27:04.410664"], ["updated_at", "2015-02-27 21:27:04.410664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:04.415638' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mZwiuqJo0CVDTNEaclKKw3JJqYnBPURzfaN5oiKR3v0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:04.417752"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:04.419386"], ["id", "5fdc77a8-bec7-11e4-97a0-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fdc1290-bec7-11e4-90ba-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 26ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$n1s2LbzcyZnZAwRpEb/VT.kbHeOG3I7WMeVo1VhKKFBBU/VCe7jHS"], ["created_at", "2015-02-27 21:27:04.447655"], ["updated_at", "2015-02-27 21:27:04.447655"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.450650"], ["user_id", "5fe3c260-bec7-11e4-896d-705681abff85"], ["created_at", "2015-02-27 21:27:04.452547"], ["updated_at", "2015-02-27 21:27:04.452547"], ["token", "2erK2yMJZcZ0g7iNVTKUy6NQ1WvVK7VXSzt98_qiV5o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.462717"], ["updated_at", "2015-02-27 21:27:04.462717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fe3c260-bec7-11e4-896d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fe62e4c-bec7-11e4-8944-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fe3c260-bec7-11e4-896d-705681abff85"], ["organization_id", "5fe62e4c-bec7-11e4-8944-705681abff85"], ["created_at", "2015-02-27 21:27:04.471545"], ["updated_at", "2015-02-27 21:27:04.471545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:04.485026' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2erK2yMJZcZ0g7iNVTKUy6NQ1WvVK7VXSzt98_qiV5o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:04.487181"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:04.492496"], ["id", "5fe4b9ea-bec7-11e4-aad6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fe3c260-bec7-11e4-896d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.499729"], ["updated_at", "2015-02-27 21:27:04.499729"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5febbb96-bec7-11e4-9f1b-705681abff85"]] Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fe3c260-bec7-11e4-896d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5febbb96-bec7-11e4-9f1b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fe3c260-bec7-11e4-896d-705681abff85"], ["admin", "t"], ["organization_id", "5febbb96-bec7-11e4-9f1b-705681abff85"], ["created_at", "2015-02-27 21:27:04.514480"], ["updated_at", "2015-02-27 21:27:04.514480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 37ms (Views: 4.7ms | ActiveRecord: 4.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$8RNE/iOgtaWcfLm.iyfcsOk9bcZFV/dosJqGTTqyorqWvty6F0Q0W"], ["created_at", "2015-02-27 21:27:04.533823"], ["updated_at", "2015-02-27 21:27:04.533823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.536282"], ["user_id", "5ff0eb2a-bec7-11e4-b153-705681abff85"], ["created_at", "2015-02-27 21:27:04.537078"], ["updated_at", "2015-02-27 21:27:04.537078"], ["token", "NB6QxgGPGxUKQiocy9K1aKRtaGN8Fi-yVLsKVFw_0RU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.540605"], ["updated_at", "2015-02-27 21:27:04.540605"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ff0eb2a-bec7-11e4-b153-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ff1ec6e-bec7-11e4-9f34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ff0eb2a-bec7-11e4-b153-705681abff85"], ["organization_id", "5ff1ec6e-bec7-11e4-9f34-705681abff85"], ["created_at", "2015-02-27 21:27:04.545440"], ["updated_at", "2015-02-27 21:27:04.545440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-18" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Session Load (2.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:04.553342' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NB6QxgGPGxUKQiocy9K1aKRtaGN8Fi-yVLsKVFw_0RU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:04.559274"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:04.561201"], ["id", "5ff15a1a-bec7-11e4-b287-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5ff0eb2a-bec7-11e4-b153-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "5ff0eb2a-bec7-11e4-b153-705681abff85"], ["name", "org-18"]] Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$/fuaipPeP4h5HcZ1VYwDOOv.YX6ruKwiCHiPZBneM6YB5uZvX9mHm"], ["created_at", "2015-02-27 21:27:04.575622"], ["updated_at", "2015-02-27 21:27:04.575622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.577223"], ["user_id", "5ff73408-bec7-11e4-b602-705681abff85"], ["created_at", "2015-02-27 21:27:04.577965"], ["updated_at", "2015-02-27 21:27:04.577965"], ["token", "tpb8GsyLPVQA42ueDQQKbjKZebywJ5d4KmBu1BSrH_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.581259"], ["updated_at", "2015-02-27 21:27:04.581259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ff73408-bec7-11e4-b602-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ff80db0-bec7-11e4-8b79-705681abff85') LIMIT 1 SQL (3.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ff73408-bec7-11e4-b602-705681abff85"], ["organization_id", "5ff80db0-bec7-11e4-8b79-705681abff85"], ["created_at", "2015-02-27 21:27:04.584441"], ["updated_at", "2015-02-27 21:27:04.584441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$VUizdY/JUhFSKbt1oNItIuQ7rzwv8FdtVBjJvDpDtwTGCwIcPqY4K"], ["created_at", "2015-02-27 21:27:04.599603"], ["updated_at", "2015-02-27 21:27:04.599603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.601199"], ["user_id", "5ffadcd4-bec7-11e4-8a49-705681abff85"], ["created_at", "2015-02-27 21:27:04.601980"], ["updated_at", "2015-02-27 21:27:04.601980"], ["token", "aZdM53PBcKWJZy5krv6zMqFgSJ7VZsSsAAA2Hg-kf4A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.605168"], ["updated_at", "2015-02-27 21:27:04.605168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ffadcd4-bec7-11e4-8a49-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ffbb30c-bec7-11e4-bb12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ffadcd4-bec7-11e4-8a49-705681abff85"], ["organization_id", "5ffbb30c-bec7-11e4-bb12-705681abff85"], ["created_at", "2015-02-27 21:27:04.608289"], ["updated_at", "2015-02-27 21:27:04.608289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5ffbb30c-bec7-11e4-bb12-705681abff85" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"5ffbb30c-bec7-11e4-bb12-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:27:04.614049' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aZdM53PBcKWJZy5krv6zMqFgSJ7VZsSsAAA2Hg-kf4A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:27:04.615523"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:27:04.616489"], ["id", "5ffb3e40-bec7-11e4-b5d2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5ffadcd4-bec7-11e4-8a49-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "5ffadcd4-bec7-11e4-8a49-705681abff85"], ["id", "5ffbb30c-bec7-11e4-bb12-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$sYOrF1/iMfPv7Dum7MkwqOxTdISYQoi8s1SEoaXw1JQryOyPNm2UW"], ["created_at", "2015-02-27 21:27:04.628524"], ["updated_at", "2015-02-27 21:27:04.628524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:27:04.630246"], ["user_id", "5fff4904-bec7-11e4-804e-705681abff85"], ["created_at", "2015-02-27 21:27:04.631048"], ["updated_at", "2015-02-27 21:27:04.631048"], ["token", "KQzl6Fb8fFGXQf2x08_Jr0qZjVC5Wtfu_wD3EgNMR5Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:27:04.634658"], ["updated_at", "2015-02-27 21:27:04.634658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fff4904-bec7-11e4-804e-705681abff85' AND "clubhouse_memberships"."organization_id" = '600035ee-bec7-11e4-9532-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fff4904-bec7-11e4-804e-705681abff85"], ["organization_id", "600035ee-bec7-11e4-9532-705681abff85"], ["created_at", "2015-02-27 21:27:04.637878"], ["updated_at", "2015-02-27 21:27:04.637878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:27:04 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$.TQYBkMFN5/KMh8.BK4ZlegCpV..8HqhWo8MP1d/5CrfXCWFhFYsq"], ["created_at", "2015-02-27 21:28:06.654361"], ["updated_at", "2015-02-27 21:28:06.654361"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:06.672176"], ["user_id", "84f7ebb2-bec7-11e4-a000-705681abff85"], ["created_at", "2015-02-27 21:28:06.679462"], ["updated_at", "2015-02-27 21:28:06.679462"], ["token", "7548Bz-ZonK8z7W41II-dwEOMgqyplmoxWPeKahyr60"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:06.695446"], ["updated_at", "2015-02-27 21:28:06.695446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84f7ebb2-bec7-11e4-a000-705681abff85' AND "clubhouse_memberships"."organization_id" = '84fe0b46-bec7-11e4-8787-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "84f7ebb2-bec7-11e4-a000-705681abff85"], ["organization_id", "84fe0b46-bec7-11e4-8787-705681abff85"], ["created_at", "2015-02-27 21:28:06.708836"], ["updated_at", "2015-02-27 21:28:06.708836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/84fe0b46-bec7-11e4-8787-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:06 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"84fe0b46-bec7-11e4-8787-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:06.734605' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7548Bz-ZonK8z7W41II-dwEOMgqyplmoxWPeKahyr60"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:06.741853"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:06.744041"], ["id", "84fb9ac8-bec7-11e4-9020-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "84f7ebb2-bec7-11e4-a000-705681abff85"]] Clubhouse::Organization Load (3.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "84f7ebb2-bec7-11e4-a000-705681abff85"], ["id", "84fe0b46-bec7-11e4-8787-705681abff85"]] Completed 200 OK in 89ms (Views: 3.7ms | ActiveRecord: 5.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$NhlwPW2XDhl.MlnPx8m5seMkb4eYgHTJw/ihnXuDv7lx3s..7slri"], ["created_at", "2015-02-27 21:28:06.841314"], ["updated_at", "2015-02-27 21:28:06.841314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:06.843675"], ["user_id", "8514480c-bec7-11e4-bb14-705681abff85"], ["created_at", "2015-02-27 21:28:06.844501"], ["updated_at", "2015-02-27 21:28:06.844501"], ["token", "h0sYpe2Axkvs8FCnWQtGhujlzgUA3kbaXjBi515owMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:06.848775"], ["updated_at", "2015-02-27 21:28:06.848775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (22.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8514480c-bec7-11e4-bb14-705681abff85' AND "clubhouse_memberships"."organization_id" = '85156e1c-bec7-11e4-ab73-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8514480c-bec7-11e4-bb14-705681abff85"], ["organization_id", "85156e1c-bec7-11e4-ab73-705681abff85"], ["created_at", "2015-02-27 21:28:06.876301"], ["updated_at", "2015-02-27 21:28:06.876301"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:06 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 15ms (Views: 14.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$1t8iSOQkp/afPAh2p4C9.OLAsUAQmJB.z/pGSz3wx6o7aUfYHalLK"], ["created_at", "2015-02-27 21:28:06.936285"], ["updated_at", "2015-02-27 21:28:06.936285"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:06.939703"], ["user_id", "8522c9ea-bec7-11e4-87cf-705681abff85"], ["created_at", "2015-02-27 21:28:06.941168"], ["updated_at", "2015-02-27 21:28:06.941168"], ["token", "HvKzqNdNBwTjAm-tRBqSNpsKMmp1qfbVNR_zbL0-oxc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (5.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.014651"], ["updated_at", "2015-02-27 21:28:07.014651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8522c9ea-bec7-11e4-87cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '852eb642-bec7-11e4-a9ec-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8522c9ea-bec7-11e4-87cf-705681abff85"], ["organization_id", "852eb642-bec7-11e4-a9ec-705681abff85"], ["created_at", "2015-02-27 21:28:07.021899"], ["updated_at", "2015-02-27 21:28:07.021899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$e/vUjIA1EBAXWVDaxuRljuTXdbIjX0lVw3VGhHnUpcU4KjBh1ubNS"], ["created_at", "2015-02-27 21:28:07.028001"], ["updated_at", "2015-02-27 21:28:07.028001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.031447"], ["updated_at", "2015-02-27 21:28:07.031447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8530af1a-bec7-11e4-beea-705681abff85' AND "clubhouse_memberships"."organization_id" = '85313ce6-bec7-11e4-922a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8530af1a-bec7-11e4-beea-705681abff85"], ["organization_id", "85313ce6-bec7-11e4-922a-705681abff85"], ["created_at", "2015-02-27 21:28:07.035640"], ["updated_at", "2015-02-27 21:28:07.035640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:07.040435' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HvKzqNdNBwTjAm-tRBqSNpsKMmp1qfbVNR_zbL0-oxc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:07.042089"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:07.043124"], ["id", "85239dd4-bec7-11e4-b0da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8522c9ea-bec7-11e4-87cf-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "8522c9ea-bec7-11e4-87cf-705681abff85"]] Completed 200 OK in 9ms (Views: 2.5ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Rkzgwn7lu12PCMbAsJv6fu0jNOKD4TtEFaL01ANPb.I2FaHJK.qfi"], ["created_at", "2015-02-27 21:28:07.056090"], ["updated_at", "2015-02-27 21:28:07.056090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.057967"], ["user_id", "8534fbec-bec7-11e4-a272-705681abff85"], ["created_at", "2015-02-27 21:28:07.058798"], ["updated_at", "2015-02-27 21:28:07.058798"], ["token", "Y-3ffw4M9n-DJCPO8Pvt0mhGeMhqLj4CKGbKx7SJ_9w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.062121"], ["updated_at", "2015-02-27 21:28:07.062121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8534fbec-bec7-11e4-a272-705681abff85' AND "clubhouse_memberships"."organization_id" = '8535e16a-bec7-11e4-96f7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8534fbec-bec7-11e4-a272-705681abff85"], ["organization_id", "8535e16a-bec7-11e4-96f7-705681abff85"], ["created_at", "2015-02-27 21:28:07.065664"], ["updated_at", "2015-02-27 21:28:07.065664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$S7ZeUMqAjCQ.6zXpOswdf.KP4MgBzFvqsJu55W1sBVPvZ/Ph1CBUO"], ["created_at", "2015-02-27 21:28:07.071081"], ["updated_at", "2015-02-27 21:28:07.071081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.074084"], ["updated_at", "2015-02-27 21:28:07.074084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8537406e-bec7-11e4-8169-705681abff85' AND "clubhouse_memberships"."organization_id" = '8537b4b8-bec7-11e4-9075-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8537406e-bec7-11e4-8169-705681abff85"], ["organization_id", "8537b4b8-bec7-11e4-9075-705681abff85"], ["created_at", "2015-02-27 21:28:07.077904"], ["updated_at", "2015-02-27 21:28:07.077904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$gjFGjfcK5CqqKPFMqS5Ew.vG3qS0Im/7VMB/mARzPMJPfDXzhp/F2"], ["created_at", "2015-02-27 21:28:07.090670"], ["updated_at", "2015-02-27 21:28:07.090670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.092622"], ["user_id", "853a43ea-bec7-11e4-92ad-705681abff85"], ["created_at", "2015-02-27 21:28:07.093627"], ["updated_at", "2015-02-27 21:28:07.093627"], ["token", "_hKYAw5_UtNDwyYuWVjp2_90PukhABIUDD6nH9hLWIs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.097493"], ["updated_at", "2015-02-27 21:28:07.097493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '853a43ea-bec7-11e4-92ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '853b4c54-bec7-11e4-be5d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "853a43ea-bec7-11e4-92ad-705681abff85"], ["organization_id", "853b4c54-bec7-11e4-be5d-705681abff85"], ["created_at", "2015-02-27 21:28:07.102669"], ["updated_at", "2015-02-27 21:28:07.102669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$P4NHz95sUUsTcogHlZ89kuJO7hSsjqSU94xKBznh35f3ndyDiddY2"], ["created_at", "2015-02-27 21:28:07.115240"], ["updated_at", "2015-02-27 21:28:07.115240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.117250"], ["user_id", "853e0944-bec7-11e4-b1e1-705681abff85"], ["created_at", "2015-02-27 21:28:07.118040"], ["updated_at", "2015-02-27 21:28:07.118040"], ["token", "83ej3MXdTKOQ4zZ_IWBnOsXTxVk0zB90_Aegnake-Ns"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.121284"], ["updated_at", "2015-02-27 21:28:07.121284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '853e0944-bec7-11e4-b1e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '853ee620-bec7-11e4-9423-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "853e0944-bec7-11e4-b1e1-705681abff85"], ["organization_id", "853ee620-bec7-11e4-9423-705681abff85"], ["created_at", "2015-02-27 21:28:07.125203"], ["updated_at", "2015-02-27 21:28:07.125203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-8" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-8", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:07.131962' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "83ej3MXdTKOQ4zZ_IWBnOsXTxVk0zB90_Aegnake-Ns"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:07.133440"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:07.134366"], ["id", "853e7244-bec7-11e4-aec8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "853e0944-bec7-11e4-b1e1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "853e0944-bec7-11e4-b1e1-705681abff85"], ["name", "org-8"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '853ee620-bec7-11e4-9423-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$LMcWFhNF3DgxU75moNNvBunf3CQnKWI4tjKodPLapAGg7rhDt3Ln6"], ["created_at", "2015-02-27 21:28:07.157835"], ["updated_at", "2015-02-27 21:28:07.157835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.159432"], ["user_id", "85447dc4-bec7-11e4-a177-705681abff85"], ["created_at", "2015-02-27 21:28:07.160208"], ["updated_at", "2015-02-27 21:28:07.160208"], ["token", "zJyNgdwMYiyyaitoW_VrgTv6whFGmXK2E-jimwVKZMQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.165874"], ["updated_at", "2015-02-27 21:28:07.165874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85447dc4-bec7-11e4-a177-705681abff85' AND "clubhouse_memberships"."organization_id" = '8545d782-bec7-11e4-a22b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85447dc4-bec7-11e4-a177-705681abff85"], ["organization_id", "8545d782-bec7-11e4-a22b-705681abff85"], ["created_at", "2015-02-27 21:28:07.172724"], ["updated_at", "2015-02-27 21:28:07.172724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:07.177340' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zJyNgdwMYiyyaitoW_VrgTv6whFGmXK2E-jimwVKZMQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:07.178776"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:07.180274"], ["id", "8544ddfa-bec7-11e4-a4ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85447dc4-bec7-11e4-a177-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "85447dc4-bec7-11e4-a177-705681abff85"], ["name", "org-9"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8545d782-bec7-11e4-a22b-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:28:07.186428"], ["id", "8545d782-bec7-11e4-a22b-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$0KCdeVzecKDPcz9wcUTSIeYg0Vu7Gd1ajW4Awj9MYUVY5yb.qOv.6"], ["created_at", "2015-02-27 21:28:07.195373"], ["updated_at", "2015-02-27 21:28:07.195373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.197434"], ["user_id", "854a4376-bec7-11e4-9d0f-705681abff85"], ["created_at", "2015-02-27 21:28:07.198229"], ["updated_at", "2015-02-27 21:28:07.198229"], ["token", "cywuO-Fu850sn06ssssyCwt_kR_FFL3d6YlgGfekPL4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.202026"], ["updated_at", "2015-02-27 21:28:07.202026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '854a4376-bec7-11e4-9d0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '854b398e-bec7-11e4-868b-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "854a4376-bec7-11e4-9d0f-705681abff85"], ["organization_id", "854b398e-bec7-11e4-868b-705681abff85"], ["created_at", "2015-02-27 21:28:07.205666"], ["updated_at", "2015-02-27 21:28:07.205666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$klRg7thKth/UggJj/IR77eLXTqKPUtK800xLxYvEe8HoLrQ3R3cFO"], ["created_at", "2015-02-27 21:28:07.222178"], ["updated_at", "2015-02-27 21:28:07.222178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.223879"], ["user_id", "854e4fa2-bec7-11e4-a734-705681abff85"], ["created_at", "2015-02-27 21:28:07.224700"], ["updated_at", "2015-02-27 21:28:07.224700"], ["token", "drx5KPq-2oCrH3vGRkbrgL5v4xIBgFPdbeBCf22-ihU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.228696"], ["updated_at", "2015-02-27 21:28:07.228696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '854e4fa2-bec7-11e4-a734-705681abff85' AND "clubhouse_memberships"."organization_id" = '854f4d94-bec7-11e4-870c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "854e4fa2-bec7-11e4-a734-705681abff85"], ["organization_id", "854f4d94-bec7-11e4-870c-705681abff85"], ["created_at", "2015-02-27 21:28:07.233291"], ["updated_at", "2015-02-27 21:28:07.233291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:07.270107' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "drx5KPq-2oCrH3vGRkbrgL5v4xIBgFPdbeBCf22-ihU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:07.271643"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:07.272835"], ["id", "854ebe56-bec7-11e4-828f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "854e4fa2-bec7-11e4-a734-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$hWo0Q4QXO/gyqlGZVR4tte.Ju4YSGHws1RrVpfuU57VVzJD9eXfsK"], ["created_at", "2015-02-27 21:28:07.288101"], ["updated_at", "2015-02-27 21:28:07.288101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.289756"], ["user_id", "85585df8-bec7-11e4-a59d-705681abff85"], ["created_at", "2015-02-27 21:28:07.290488"], ["updated_at", "2015-02-27 21:28:07.290488"], ["token", "BrNEWXt7dm7jL8b_CWmoRX0OV_AEL-eqqViPra9nqWA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.293907"], ["updated_at", "2015-02-27 21:28:07.293907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85585df8-bec7-11e4-a59d-705681abff85' AND "clubhouse_memberships"."organization_id" = '855940ce-bec7-11e4-b390-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85585df8-bec7-11e4-a59d-705681abff85"], ["organization_id", "855940ce-bec7-11e4-b390-705681abff85"], ["created_at", "2015-02-27 21:28:07.297164"], ["updated_at", "2015-02-27 21:28:07.297164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:07.302513' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BrNEWXt7dm7jL8b_CWmoRX0OV_AEL-eqqViPra9nqWA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:07.303995"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:07.305184"], ["id", "8558bec4-bec7-11e4-9456-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85585df8-bec7-11e4-a59d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.309485"], ["updated_at", "2015-02-27 21:28:07.309485"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "855ba094-bec7-11e4-9a30-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85585df8-bec7-11e4-a59d-705681abff85' AND "clubhouse_memberships"."organization_id" = '855ba094-bec7-11e4-9a30-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85585df8-bec7-11e4-a59d-705681abff85"], ["admin", "t"], ["organization_id", "855ba094-bec7-11e4-9a30-705681abff85"], ["created_at", "2015-02-27 21:28:07.316299"], ["updated_at", "2015-02-27 21:28:07.316299"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 0.9ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$f1hlJi3w24.OgOM5Ll0EHuuXjtI2Aik8N0IEJR1ZwJ2OVF/A3W/Qq"], ["created_at", "2015-02-27 21:28:07.326549"], ["updated_at", "2015-02-27 21:28:07.326549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.328132"], ["user_id", "855e3c14-bec7-11e4-a565-705681abff85"], ["created_at", "2015-02-27 21:28:07.328906"], ["updated_at", "2015-02-27 21:28:07.328906"], ["token", "jZ8UmSjKUOiYm3Xb95uWWBl2FPcO2eU16S2Tu9Rnl_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.332417"], ["updated_at", "2015-02-27 21:28:07.332417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '855e3c14-bec7-11e4-a565-705681abff85' AND "clubhouse_memberships"."organization_id" = '855f23cc-bec7-11e4-9e63-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "855e3c14-bec7-11e4-a565-705681abff85"], ["organization_id", "855f23cc-bec7-11e4-9e63-705681abff85"], ["created_at", "2015-02-27 21:28:07.336365"], ["updated_at", "2015-02-27 21:28:07.336365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$UW6ayG9M.fvNket4q81eu.wZeQFQad7Y50UlJFD0GDRhMi/45qU16"], ["created_at", "2015-02-27 21:28:07.352905"], ["updated_at", "2015-02-27 21:28:07.352905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.354691"], ["user_id", "856243cc-bec7-11e4-8ed6-705681abff85"], ["created_at", "2015-02-27 21:28:07.355425"], ["updated_at", "2015-02-27 21:28:07.355425"], ["token", "SQNARUAakeGSCFpCX5tNy0e7PWuxj94J6vkvEfNyOrc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.359477"], ["updated_at", "2015-02-27 21:28:07.359477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '856243cc-bec7-11e4-8ed6-705681abff85' AND "clubhouse_memberships"."organization_id" = '8563413c-bec7-11e4-b73f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "856243cc-bec7-11e4-8ed6-705681abff85"], ["organization_id", "8563413c-bec7-11e4-b73f-705681abff85"], ["created_at", "2015-02-27 21:28:07.362832"], ["updated_at", "2015-02-27 21:28:07.362832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8563413c-bec7-11e4-b73f-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"8563413c-bec7-11e4-b73f-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:07.367983' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SQNARUAakeGSCFpCX5tNy0e7PWuxj94J6vkvEfNyOrc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:07.369394"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:07.370357"], ["id", "8562ba96-bec7-11e4-a6e7-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "856243cc-bec7-11e4-8ed6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "856243cc-bec7-11e4-8ed6-705681abff85"], ["id", "8563413c-bec7-11e4-b73f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8563413c-bec7-11e4-b73f-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$BnfmBcStTLbkZ3vBpjCjveRNBV33d7jgMvNu/QY9uapy2XwC.JdlK"], ["created_at", "2015-02-27 21:28:07.383235"], ["updated_at", "2015-02-27 21:28:07.383235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.385432"], ["user_id", "8566ec42-bec7-11e4-a946-705681abff85"], ["created_at", "2015-02-27 21:28:07.386284"], ["updated_at", "2015-02-27 21:28:07.386284"], ["token", "OzAWKG9ZPfY1FcEYrvIkJxs0C3V9Ciyms8w9ZruoY4g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.389966"], ["updated_at", "2015-02-27 21:28:07.389966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8566ec42-bec7-11e4-a946-705681abff85' AND "clubhouse_memberships"."organization_id" = '8567e732-bec7-11e4-865d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8566ec42-bec7-11e4-a946-705681abff85"], ["organization_id", "8567e732-bec7-11e4-865d-705681abff85"], ["created_at", "2015-02-27 21:28:07.393274"], ["updated_at", "2015-02-27 21:28:07.393274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8567e732-bec7-11e4-865d-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"8567e732-bec7-11e4-865d-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:07.398418' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OzAWKG9ZPfY1FcEYrvIkJxs0C3V9Ciyms8w9ZruoY4g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:07.399914"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:07.400998"], ["id", "856763ca-bec7-11e4-a160-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8566ec42-bec7-11e4-a946-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "8566ec42-bec7-11e4-a946-705681abff85"], ["id", "8567e732-bec7-11e4-865d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8567e732-bec7-11e4-865d-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:28:07.407368"], ["id", "8567e732-bec7-11e4-865d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$1VRGuQQN03bBuHpkjoDy2u/0nzn6XZ00R/Vg3QDXIbrFKaSGIT/o6"], ["created_at", "2015-02-27 21:28:07.415372"], ["updated_at", "2015-02-27 21:28:07.415372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.417640"], ["user_id", "856bcf78-bec7-11e4-8be5-705681abff85"], ["created_at", "2015-02-27 21:28:07.418655"], ["updated_at", "2015-02-27 21:28:07.418655"], ["token", "ILVcMk0sMfPJzMqEDtWd2ki3gFyaPX7pnaKLeiEM500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.422411"], ["updated_at", "2015-02-27 21:28:07.422411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '856bcf78-bec7-11e4-8be5-705681abff85' AND "clubhouse_memberships"."organization_id" = '856cda08-bec7-11e4-94e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "856bcf78-bec7-11e4-8be5-705681abff85"], ["organization_id", "856cda08-bec7-11e4-94e4-705681abff85"], ["created_at", "2015-02-27 21:28:07.425586"], ["updated_at", "2015-02-27 21:28:07.425586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/856cda08-bec7-11e4-94e4-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"856cda08-bec7-11e4-94e4-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:07.430366' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ILVcMk0sMfPJzMqEDtWd2ki3gFyaPX7pnaKLeiEM500"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:07.431765"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:07.432700"], ["id", "856c5b00-bec7-11e4-99d0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "856bcf78-bec7-11e4-8be5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "856bcf78-bec7-11e4-8be5-705681abff85"], ["id", "856cda08-bec7-11e4-94e4-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$yKSIGgJ7/vwulrv/JS3yRONfYtKVdfqmfSb/BSDotfViP6hXjUtQ."], ["created_at", "2015-02-27 21:28:07.442922"], ["updated_at", "2015-02-27 21:28:07.442922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.444726"], ["user_id", "857001ec-bec7-11e4-a2b0-705681abff85"], ["created_at", "2015-02-27 21:28:07.445568"], ["updated_at", "2015-02-27 21:28:07.445568"], ["token", "_7vBVR8yvUt61XXhHe2jQia1ucr8nm_qQXT_wT-LInI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.448868"], ["updated_at", "2015-02-27 21:28:07.448868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '857001ec-bec7-11e4-a2b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '8570e9cc-bec7-11e4-b7bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "857001ec-bec7-11e4-a2b0-705681abff85"], ["organization_id", "8570e9cc-bec7-11e4-b7bc-705681abff85"], ["created_at", "2015-02-27 21:28:07.452785"], ["updated_at", "2015-02-27 21:28:07.452785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$sHUaxyNCnN.9vysSCaxV6OowHugViLgubFHauQ5gpsCwfvqK8pZWe"], ["created_at", "2015-02-27 21:28:07.465329"], ["updated_at", "2015-02-27 21:28:07.465329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.467058"], ["user_id", "85736c92-bec7-11e4-bda5-705681abff85"], ["created_at", "2015-02-27 21:28:07.467933"], ["updated_at", "2015-02-27 21:28:07.467933"], ["token", "kF4M8-f7RoTINRbiFS4pMPFjx82Q3cmlGRIxI--Rjbc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.471613"], ["updated_at", "2015-02-27 21:28:07.471613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85736c92-bec7-11e4-bda5-705681abff85' AND "clubhouse_memberships"."organization_id" = '85745dc8-bec7-11e4-97b2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85736c92-bec7-11e4-bda5-705681abff85"], ["organization_id", "85745dc8-bec7-11e4-97b2-705681abff85"], ["created_at", "2015-02-27 21:28:07.475269"], ["updated_at", "2015-02-27 21:28:07.475269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-18" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:07.480783' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kF4M8-f7RoTINRbiFS4pMPFjx82Q3cmlGRIxI--Rjbc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:07.482194"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:07.483214"], ["id", "8573d72c-bec7-11e4-b5d7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85736c92-bec7-11e4-bda5-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "85736c92-bec7-11e4-bda5-705681abff85"], ["name", "org-18"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$8UjzhjcVORNcCvImys0whOuQDT8azVFvttbokpKSx3XuKs387t7Ym"], ["created_at", "2015-02-27 21:28:07.493640"], ["updated_at", "2015-02-27 21:28:07.493640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.495489"], ["user_id", "8577ba68-bec7-11e4-aa2d-705681abff85"], ["created_at", "2015-02-27 21:28:07.496314"], ["updated_at", "2015-02-27 21:28:07.496314"], ["token", "RZlhQ4a0YJz7EDrh3jy7oeinzRTsSj4zfsChkFHcRso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.499741"], ["updated_at", "2015-02-27 21:28:07.499741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8577ba68-bec7-11e4-aa2d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8578aa0e-bec7-11e4-bfee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8577ba68-bec7-11e4-aa2d-705681abff85"], ["organization_id", "8578aa0e-bec7-11e4-bfee-705681abff85"], ["created_at", "2015-02-27 21:28:07.504868"], ["updated_at", "2015-02-27 21:28:07.504868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$7wK7LBRThm4TOTfiXneLn.m9sR22OrpI08uR9Kqti69YZPs24nClu"], ["created_at", "2015-02-27 21:28:07.517406"], ["updated_at", "2015-02-27 21:28:07.517406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.519357"], ["user_id", "857b5cb8-bec7-11e4-b250-705681abff85"], ["created_at", "2015-02-27 21:28:07.520356"], ["updated_at", "2015-02-27 21:28:07.520356"], ["token", "zEayijP15DrRKiHRs2CkCpp-ZjdhP4tvbN1o_KUlioM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.524305"], ["updated_at", "2015-02-27 21:28:07.524305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '857b5cb8-bec7-11e4-b250-705681abff85' AND "clubhouse_memberships"."organization_id" = '857c71b6-bec7-11e4-bfb1-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "857b5cb8-bec7-11e4-b250-705681abff85"], ["organization_id", "857c71b6-bec7-11e4-bfb1-705681abff85"], ["created_at", "2015-02-27 21:28:07.528440"], ["updated_at", "2015-02-27 21:28:07.528440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-20" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:07.535343' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zEayijP15DrRKiHRs2CkCpp-ZjdhP4tvbN1o_KUlioM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:07.536958"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:07.538201"], ["id", "857bdaa8-bec7-11e4-90be-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "857b5cb8-bec7-11e4-b250-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "857b5cb8-bec7-11e4-b250-705681abff85"], ["name", "org-20"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$I6WuOdVZ6RaQczTIxmGmdOzBOkEvcP.tvIN/u3fB6ib8RS3RWBJge"], ["created_at", "2015-02-27 21:28:07.550330"], ["updated_at", "2015-02-27 21:28:07.550330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:07.552039"], ["user_id", "85806352-bec7-11e4-bc0c-705681abff85"], ["created_at", "2015-02-27 21:28:07.552794"], ["updated_at", "2015-02-27 21:28:07.552794"], ["token", "eMEKbUSTyAL3qW9vChNysUlNLRHyOqCfeYazNu8MaLE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:07.556545"], ["updated_at", "2015-02-27 21:28:07.556545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85806352-bec7-11e4-bc0c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8581542e-bec7-11e4-868b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85806352-bec7-11e4-bc0c-705681abff85"], ["organization_id", "8581542e-bec7-11e4-868b-705681abff85"], ["created_at", "2015-02-27 21:28:07.560032"], ["updated_at", "2015-02-27 21:28:07.560032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:07 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$CTLIf5qcCjMXpPzrznB4wOfNQ0ftJNJO6p2Z2mSAyOHk8KcxggAh2"], ["created_at", "2015-02-27 21:28:36.720063"], ["updated_at", "2015-02-27 21:28:36.720063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:36.729821"], ["user_id", "96e37ac6-bec7-11e4-8e0f-705681abff85"], ["created_at", "2015-02-27 21:28:36.736083"], ["updated_at", "2015-02-27 21:28:36.736083"], ["token", "zuCHIVGS3qHBkoSH16fTlHh2GBJI0cDetOpt6eIQZmg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:36.745882"], ["updated_at", "2015-02-27 21:28:36.745882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96e37ac6-bec7-11e4-8e0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '96e74cd2-bec7-11e4-835c-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96e37ac6-bec7-11e4-8e0f-705681abff85"], ["organization_id", "96e74cd2-bec7-11e4-835c-705681abff85"], ["created_at", "2015-02-27 21:28:36.756027"], ["updated_at", "2015-02-27 21:28:36.756027"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$FIPOB.sQmyeCJYCzEtu0Ne13TcNJRGs00VwmCosrWMhK0PZOcDe26"], ["created_at", "2015-02-27 21:28:36.763367"], ["updated_at", "2015-02-27 21:28:36.763367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:36.766333"], ["updated_at", "2015-02-27 21:28:36.766333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96e9ed2a-bec7-11e4-8684-705681abff85' AND "clubhouse_memberships"."organization_id" = '96ea620a-bec7-11e4-bb2f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96e9ed2a-bec7-11e4-8684-705681abff85"], ["organization_id", "96ea620a-bec7-11e4-bb2f-705681abff85"], ["created_at", "2015-02-27 21:28:36.769536"], ["updated_at", "2015-02-27 21:28:36.769536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:28:36 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$IcmMypLnFV29GKXoqwa5CuU6V7nvZVGLSxVR3jegHoxkpjtWuqAde"], ["created_at", "2015-02-27 21:28:36.802930"], ["updated_at", "2015-02-27 21:28:36.802930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:36.804962"], ["user_id", "96f002f0-bec7-11e4-ad60-705681abff85"], ["created_at", "2015-02-27 21:28:36.805800"], ["updated_at", "2015-02-27 21:28:36.805800"], ["token", "3MYu2Pjl8QdLGVK__yV2zfFNxibdut7O5V3JDzJPYZM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:36.809303"], ["updated_at", "2015-02-27 21:28:36.809303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96f002f0-bec7-11e4-ad60-705681abff85' AND "clubhouse_memberships"."organization_id" = '96f227f6-bec7-11e4-ba90-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96f002f0-bec7-11e4-ad60-705681abff85"], ["organization_id", "96f227f6-bec7-11e4-ba90-705681abff85"], ["created_at", "2015-02-27 21:28:36.821976"], ["updated_at", "2015-02-27 21:28:36.821976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Oylj5e5wMhBF2gbF4oGeSumxB5cY.8w9gdZZnQjdmlc7LMtTBvDS6"], ["created_at", "2015-02-27 21:28:36.829294"], ["updated_at", "2015-02-27 21:28:36.829294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:36.832239"], ["updated_at", "2015-02-27 21:28:36.832239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96f3fdce-bec7-11e4-85b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '96f46f48-bec7-11e4-a4bf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96f3fdce-bec7-11e4-85b7-705681abff85"], ["organization_id", "96f46f48-bec7-11e4-a4bf-705681abff85"], ["created_at", "2015-02-27 21:28:36.836226"], ["updated_at", "2015-02-27 21:28:36.836226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:28:36 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:36.840907' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3MYu2Pjl8QdLGVK__yV2zfFNxibdut7O5V3JDzJPYZM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:36.847997"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:36.849142"], ["id", "96f07366-bec7-11e4-a349-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "96f002f0-bec7-11e4-ad60-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "96f002f0-bec7-11e4-ad60-705681abff85"]] Completed 200 OK in 32ms (Views: 4.2ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$YgyX1ebBB2E2hxhvhngsAOPyWdzmK0TGhAvphZ1bbdiNfuFhueOQW"], ["created_at", "2015-02-27 21:28:36.880458"], ["updated_at", "2015-02-27 21:28:36.880458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:36.882161"], ["user_id", "96fbd0a8-bec7-11e4-8bbe-705681abff85"], ["created_at", "2015-02-27 21:28:36.882992"], ["updated_at", "2015-02-27 21:28:36.882992"], ["token", "b2gD5QFJF5amfBsLjxLQyrkQ2id1tKuNmFTKQvvSy28"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:36.886559"], ["updated_at", "2015-02-27 21:28:36.886559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96fbd0a8-bec7-11e4-8bbe-705681abff85' AND "clubhouse_memberships"."organization_id" = '96fcbaa4-bec7-11e4-915b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96fbd0a8-bec7-11e4-8bbe-705681abff85"], ["organization_id", "96fcbaa4-bec7-11e4-915b-705681abff85"], ["created_at", "2015-02-27 21:28:36.889713"], ["updated_at", "2015-02-27 21:28:36.889713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:36 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$sduwLqIRVSqa9pf3rtm4LuCAwk1OQ5h8apRvUUBApSSmrsnmJXe.."], ["created_at", "2015-02-27 21:28:36.901586"], ["updated_at", "2015-02-27 21:28:36.901586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:36.903180"], ["user_id", "96ff0764-bec7-11e4-8f0c-705681abff85"], ["created_at", "2015-02-27 21:28:36.903991"], ["updated_at", "2015-02-27 21:28:36.903991"], ["token", "IKR1AmQfe91neSClTrJh-lKqbS5O1NEoKTMAQ-PY6Uc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:36.907658"], ["updated_at", "2015-02-27 21:28:36.907658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96ff0764-bec7-11e4-8f0c-705681abff85' AND "clubhouse_memberships"."organization_id" = '96fff35e-bec7-11e4-9dca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96ff0764-bec7-11e4-8f0c-705681abff85"], ["organization_id", "96fff35e-bec7-11e4-9dca-705681abff85"], ["created_at", "2015-02-27 21:28:36.911389"], ["updated_at", "2015-02-27 21:28:36.911389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-6" for 127.0.0.1 at 2015-02-27 13:28:36 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:36.915958' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IKR1AmQfe91neSClTrJh-lKqbS5O1NEoKTMAQ-PY6Uc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:36.917325"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:36.918381"], ["id", "96ff6c0e-bec7-11e4-946e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "96ff0764-bec7-11e4-8f0c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "96ff0764-bec7-11e4-8f0c-705681abff85"], ["name", "org-6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "96fff35e-bec7-11e4-9dca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Yc0E1Ff/uZgOuX9XLidz7OPlCKEn5LvU8OYFlkypsyBGLxuzMqC2."], ["created_at", "2015-02-27 21:28:36.931133"], ["updated_at", "2015-02-27 21:28:36.931133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:36.932751"], ["user_id", "97038a14-bec7-11e4-832d-705681abff85"], ["created_at", "2015-02-27 21:28:36.933748"], ["updated_at", "2015-02-27 21:28:36.933748"], ["token", "XQLO1JqZYCjHuOSNPEmRWrPs4NjVRo2Cz2pjenZM_Lg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (4.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:36.937254"], ["updated_at", "2015-02-27 21:28:36.937254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97038a14-bec7-11e4-832d-705681abff85' AND "clubhouse_memberships"."organization_id" = '97047852-bec7-11e4-abbb-705681abff85') LIMIT 1 SQL (11.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97038a14-bec7-11e4-832d-705681abff85"], ["organization_id", "97047852-bec7-11e4-abbb-705681abff85"], ["created_at", "2015-02-27 21:28:36.944915"], ["updated_at", "2015-02-27 21:28:36.944915"]]  (1.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:36 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$7L0QGW8c34r0zvbpdSdo7O6HVZ/PqlONULqevlqu1pEJbSHOS/iXi"], ["created_at", "2015-02-27 21:28:36.991881"], ["updated_at", "2015-02-27 21:28:36.991881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:36.994992"], ["user_id", "970ce816-bec7-11e4-a609-705681abff85"], ["created_at", "2015-02-27 21:28:36.996317"], ["updated_at", "2015-02-27 21:28:36.996317"], ["token", "x9I7K32GwItPRWsuQgsFPncSXEAjzVdQRJrGi4zMXCI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.001909"], ["updated_at", "2015-02-27 21:28:37.001909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '970ce816-bec7-11e4-a609-705681abff85' AND "clubhouse_memberships"."organization_id" = '970e594e-bec7-11e4-8a5a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "970ce816-bec7-11e4-a609-705681abff85"], ["organization_id", "970e594e-bec7-11e4-8a5a-705681abff85"], ["created_at", "2015-02-27 21:28:37.005448"], ["updated_at", "2015-02-27 21:28:37.005448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:37.011095' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "x9I7K32GwItPRWsuQgsFPncSXEAjzVdQRJrGi4zMXCI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:37.012493"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:37.013472"], ["id", "970d9fae-bec7-11e4-abb1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "970ce816-bec7-11e4-a609-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.019266"], ["updated_at", "2015-02-27 21:28:37.019266"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9710fe38-bec7-11e4-b02d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '970ce816-bec7-11e4-a609-705681abff85' AND "clubhouse_memberships"."organization_id" = '9710fe38-bec7-11e4-b02d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "970ce816-bec7-11e4-a609-705681abff85"], ["admin", "t"], ["organization_id", "9710fe38-bec7-11e4-b02d-705681abff85"], ["created_at", "2015-02-27 21:28:37.026354"], ["updated_at", "2015-02-27 21:28:37.026354"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$qa5tYEv7rJQ909XxuNmRRuHAZRKqq.0Sb3YnXdqVci3fGCstQlpZa"], ["created_at", "2015-02-27 21:28:37.037141"], ["updated_at", "2015-02-27 21:28:37.037141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.039743"], ["user_id", "9713d432-bec7-11e4-be46-705681abff85"], ["created_at", "2015-02-27 21:28:37.040548"], ["updated_at", "2015-02-27 21:28:37.040548"], ["token", "xuv6SdozUyGCxmNFNKwHUqBAC2fzXn-iAdGq5Na9-LQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.043848"], ["updated_at", "2015-02-27 21:28:37.043848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9713d432-bec7-11e4-be46-705681abff85' AND "clubhouse_memberships"."organization_id" = '9714b852-bec7-11e4-b0f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9713d432-bec7-11e4-be46-705681abff85"], ["organization_id", "9714b852-bec7-11e4-b0f5-705681abff85"], ["created_at", "2015-02-27 21:28:37.047357"], ["updated_at", "2015-02-27 21:28:37.047357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:37.053957' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xuv6SdozUyGCxmNFNKwHUqBAC2fzXn-iAdGq5Na9-LQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:37.055580"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:37.056681"], ["id", "9714426e-bec7-11e4-bbc8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9713d432-bec7-11e4-be46-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$XHvLF0YOzubMhdQXyomED.GgAaVRmyBSXcQWlQz2KT0cxzq11C8xW"], ["created_at", "2015-02-27 21:28:37.076862"], ["updated_at", "2015-02-27 21:28:37.076862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.078574"], ["user_id", "9719c98c-bec7-11e4-a868-705681abff85"], ["created_at", "2015-02-27 21:28:37.079383"], ["updated_at", "2015-02-27 21:28:37.079383"], ["token", "wznoUesPkPQ8SVMWNzBrULPQr7NwJqs7O8HI_M8P51g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.082769"], ["updated_at", "2015-02-27 21:28:37.082769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9719c98c-bec7-11e4-a868-705681abff85' AND "clubhouse_memberships"."organization_id" = '971aa96a-bec7-11e4-a6e5-705681abff85') LIMIT 1 SQL (7.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9719c98c-bec7-11e4-a868-705681abff85"], ["organization_id", "971aa96a-bec7-11e4-a6e5-705681abff85"], ["created_at", "2015-02-27 21:28:37.086843"], ["updated_at", "2015-02-27 21:28:37.086843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$LIA1z04ZGbS48ZzNOSS72.wnhU2YXtkMz.l6ZpBbvMl.GF9f.cTv2"], ["created_at", "2015-02-27 21:28:37.106822"], ["updated_at", "2015-02-27 21:28:37.106822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.108775"], ["user_id", "971e5a88-bec7-11e4-9df7-705681abff85"], ["created_at", "2015-02-27 21:28:37.109585"], ["updated_at", "2015-02-27 21:28:37.109585"], ["token", "r0SoA7ANLHnSk2f9N-Hj3bBM3evPAaJejBUQOT1EwgU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.112970"], ["updated_at", "2015-02-27 21:28:37.112970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '971e5a88-bec7-11e4-9df7-705681abff85' AND "clubhouse_memberships"."organization_id" = '971f4600-bec7-11e4-abea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "971e5a88-bec7-11e4-9df7-705681abff85"], ["organization_id", "971f4600-bec7-11e4-abea-705681abff85"], ["created_at", "2015-02-27 21:28:37.116149"], ["updated_at", "2015-02-27 21:28:37.116149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/971f4600-bec7-11e4-abea-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"971f4600-bec7-11e4-abea-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:37.120950' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r0SoA7ANLHnSk2f9N-Hj3bBM3evPAaJejBUQOT1EwgU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:37.122530"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:37.123639"], ["id", "971ecba8-bec7-11e4-a71b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "971e5a88-bec7-11e4-9df7-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "971e5a88-bec7-11e4-9df7-705681abff85"], ["id", "971f4600-bec7-11e4-abea-705681abff85"]]  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '971f4600-bec7-11e4-abea-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:28:37.165512"], ["id", "971f4600-bec7-11e4-abea-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 47ms (Views: 0.5ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$rkiC7FFsyjeVStJfjQl2HO1.rfepUNIxLMjI/OFA9/zsFIoeogCZ6"], ["created_at", "2015-02-27 21:28:37.173591"], ["updated_at", "2015-02-27 21:28:37.173591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.175123"], ["user_id", "972886a2-bec7-11e4-b46a-705681abff85"], ["created_at", "2015-02-27 21:28:37.175874"], ["updated_at", "2015-02-27 21:28:37.175874"], ["token", "HTP32RzyI37j9FhFfnA2w78aLTRKQLSpV-M819L0C9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.178964"], ["updated_at", "2015-02-27 21:28:37.178964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '972886a2-bec7-11e4-b46a-705681abff85' AND "clubhouse_memberships"."organization_id" = '972957da-bec7-11e4-b22c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "972886a2-bec7-11e4-b46a-705681abff85"], ["organization_id", "972957da-bec7-11e4-b22c-705681abff85"], ["created_at", "2015-02-27 21:28:37.182140"], ["updated_at", "2015-02-27 21:28:37.182140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/972957da-bec7-11e4-b22c-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"972957da-bec7-11e4-b22c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:37.186607' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HTP32RzyI37j9FhFfnA2w78aLTRKQLSpV-M819L0C9Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:37.188061"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:37.188988"], ["id", "9728e4ee-bec7-11e4-9be9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "972886a2-bec7-11e4-b46a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "972886a2-bec7-11e4-b46a-705681abff85"], ["id", "972957da-bec7-11e4-b22c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '972957da-bec7-11e4-b22c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$CD26NIfhd2rZuZZpFTmRbOP17dF6y9CsqQaKZZlYl7t.LNaxxbS06"], ["created_at", "2015-02-27 21:28:37.200984"], ["updated_at", "2015-02-27 21:28:37.200984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.202762"], ["user_id", "972cbace-bec7-11e4-ba6a-705681abff85"], ["created_at", "2015-02-27 21:28:37.203608"], ["updated_at", "2015-02-27 21:28:37.203608"], ["token", "oLcrFkFTYSOG4EpCCl0oCnGLUb3HNIPsYtZTAs7xNPc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.207442"], ["updated_at", "2015-02-27 21:28:37.207442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '972cbace-bec7-11e4-ba6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '972dbbf4-bec7-11e4-aa70-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "972cbace-bec7-11e4-ba6a-705681abff85"], ["organization_id", "972dbbf4-bec7-11e4-aa70-705681abff85"], ["created_at", "2015-02-27 21:28:37.211410"], ["updated_at", "2015-02-27 21:28:37.211410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (3.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$STWUVNrv7OQ9TM1Sm2MBHeN3TmKHH7/7LbH8zobDN3mplpcEmSTvu"], ["created_at", "2015-02-27 21:28:37.225922"], ["updated_at", "2015-02-27 21:28:37.225922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.230980"], ["user_id", "97308582-bec7-11e4-9023-705681abff85"], ["created_at", "2015-02-27 21:28:37.231788"], ["updated_at", "2015-02-27 21:28:37.231788"], ["token", "9KypDJI-JUIA9yUv1X_ibPu39Ueb0JN-l_PewvLZrlQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.235109"], ["updated_at", "2015-02-27 21:28:37.235109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97308582-bec7-11e4-9023-705681abff85' AND "clubhouse_memberships"."organization_id" = '9731ec1a-bec7-11e4-aa05-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97308582-bec7-11e4-9023-705681abff85"], ["organization_id", "9731ec1a-bec7-11e4-aa05-705681abff85"], ["created_at", "2015-02-27 21:28:37.238429"], ["updated_at", "2015-02-27 21:28:37.238429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-14" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:37.242944' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9KypDJI-JUIA9yUv1X_ibPu39Ueb0JN-l_PewvLZrlQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:37.244775"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:37.246669"], ["id", "97317334-bec7-11e4-ac2a-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97308582-bec7-11e4-9023-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "97308582-bec7-11e4-9023-705681abff85"], ["name", "org-14"]] Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$ptHJZeoD3Qg9UQt38vhW5OjbVQvyxOVL5bIqjBOaIL9Ik7x4Mzwyy"], ["created_at", "2015-02-27 21:28:37.258583"], ["updated_at", "2015-02-27 21:28:37.258583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.261304"], ["user_id", "97358bd6-bec7-11e4-a148-705681abff85"], ["created_at", "2015-02-27 21:28:37.262141"], ["updated_at", "2015-02-27 21:28:37.262141"], ["token", "I9aiPnPuPlDqPJ5hPSahza9dT4jLKWBZ6DeADRmJVgY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.265412"], ["updated_at", "2015-02-27 21:28:37.265412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97358bd6-bec7-11e4-a148-705681abff85' AND "clubhouse_memberships"."organization_id" = '973686f8-bec7-11e4-b463-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97358bd6-bec7-11e4-a148-705681abff85"], ["organization_id", "973686f8-bec7-11e4-b463-705681abff85"], ["created_at", "2015-02-27 21:28:37.268547"], ["updated_at", "2015-02-27 21:28:37.268547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Tt1PKk5NG7YkS.hFuBJ3sesX0Gad/zzJKht6Qr98BwVga1z0wtdkW"], ["created_at", "2015-02-27 21:28:37.283109"], ["updated_at", "2015-02-27 21:28:37.283109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.285036"], ["user_id", "97394bd6-bec7-11e4-8b60-705681abff85"], ["created_at", "2015-02-27 21:28:37.285991"], ["updated_at", "2015-02-27 21:28:37.285991"], ["token", "i_3qLsWiXCeFsxreBe7TCLbNyW-LZPmkQ4R4DQ3UvzU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.289308"], ["updated_at", "2015-02-27 21:28:37.289308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97394bd6-bec7-11e4-8b60-705681abff85' AND "clubhouse_memberships"."organization_id" = '973a2d62-bec7-11e4-a7ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97394bd6-bec7-11e4-8b60-705681abff85"], ["organization_id", "973a2d62-bec7-11e4-a7ad-705681abff85"], ["created_at", "2015-02-27 21:28:37.292386"], ["updated_at", "2015-02-27 21:28:37.292386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/973a2d62-bec7-11e4-a7ad-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"973a2d62-bec7-11e4-a7ad-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:37.296597' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "i_3qLsWiXCeFsxreBe7TCLbNyW-LZPmkQ4R4DQ3UvzU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:37.298467"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:37.300375"], ["id", "9739b864-bec7-11e4-ab59-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97394bd6-bec7-11e4-8b60-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "97394bd6-bec7-11e4-8b60-705681abff85"], ["id", "973a2d62-bec7-11e4-a7ad-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "973a2d62-bec7-11e4-a7ad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$yb2dJIVeDhQXMWWfxj7Brui8C.x6vfpZB.wEkWLlFWJj/LxFzIRkq"], ["created_at", "2015-02-27 21:28:37.311929"], ["updated_at", "2015-02-27 21:28:37.311929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.314091"], ["user_id", "973db4d2-bec7-11e4-9752-705681abff85"], ["created_at", "2015-02-27 21:28:37.314912"], ["updated_at", "2015-02-27 21:28:37.314912"], ["token", "eGD7tfiWpMDl5eI8gEWi6CSJxK_ubI5F65Qf1CNLF7I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.318816"], ["updated_at", "2015-02-27 21:28:37.318816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '973db4d2-bec7-11e4-9752-705681abff85' AND "clubhouse_memberships"."organization_id" = '973eca0c-bec7-11e4-896d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "973db4d2-bec7-11e4-9752-705681abff85"], ["organization_id", "973eca0c-bec7-11e4-896d-705681abff85"], ["created_at", "2015-02-27 21:28:37.323878"], ["updated_at", "2015-02-27 21:28:37.323878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$z6pbtdEDVJBoHCwfQ6GOmeD8WePKbvZUt6jp5PGAleVnRiTmtyBuu"], ["created_at", "2015-02-27 21:28:37.337351"], ["updated_at", "2015-02-27 21:28:37.337351"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.341027"], ["user_id", "9741a308-bec7-11e4-a2be-705681abff85"], ["created_at", "2015-02-27 21:28:37.342564"], ["updated_at", "2015-02-27 21:28:37.342564"], ["token", "Nt1ec8lwdxoqTRb_fqlm0tEQrrTHpyvljgBOWHs_UOo"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.349494"], ["updated_at", "2015-02-27 21:28:37.349494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9741a308-bec7-11e4-a2be-705681abff85' AND "clubhouse_memberships"."organization_id" = '97437ae8-bec7-11e4-bfa5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9741a308-bec7-11e4-a2be-705681abff85"], ["organization_id", "97437ae8-bec7-11e4-bfa5-705681abff85"], ["created_at", "2015-02-27 21:28:37.354073"], ["updated_at", "2015-02-27 21:28:37.354073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/97437ae8-bec7-11e4-bfa5-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"97437ae8-bec7-11e4-bfa5-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:37.358416' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Nt1ec8lwdxoqTRb_fqlm0tEQrrTHpyvljgBOWHs_UOo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:37.360246"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:37.362154"], ["id", "97427490-bec7-11e4-adcd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9741a308-bec7-11e4-a2be-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "9741a308-bec7-11e4-a2be-705681abff85"], ["id", "97437ae8-bec7-11e4-bfa5-705681abff85"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$doolP8z3yoIBW2cB5F7DXe1mT7r5jmw8GUgI1VdAhwGE8Mdrbtzii"], ["created_at", "2015-02-27 21:28:37.373859"], ["updated_at", "2015-02-27 21:28:37.373859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.375900"], ["user_id", "974720b2-bec7-11e4-b398-705681abff85"], ["created_at", "2015-02-27 21:28:37.376903"], ["updated_at", "2015-02-27 21:28:37.376903"], ["token", "Ipte5qKxD6TDqgIKYaAeToUd_dUMPwTyjKKRMRuZ5do"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.380856"], ["updated_at", "2015-02-27 21:28:37.380856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '974720b2-bec7-11e4-b398-705681abff85' AND "clubhouse_memberships"."organization_id" = '97483178-bec7-11e4-b3e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "974720b2-bec7-11e4-b398-705681abff85"], ["organization_id", "97483178-bec7-11e4-b3e5-705681abff85"], ["created_at", "2015-02-27 21:28:37.384939"], ["updated_at", "2015-02-27 21:28:37.384939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$NgOnjsSfP2idiVLfAK9u0uSt50MsBF/.XZoEFL97ungKHhrHX3.dG"], ["created_at", "2015-02-27 21:28:37.398009"], ["updated_at", "2015-02-27 21:28:37.398009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.399611"], ["user_id", "974ac5f0-bec7-11e4-bc7c-705681abff85"], ["created_at", "2015-02-27 21:28:37.400386"], ["updated_at", "2015-02-27 21:28:37.400386"], ["token", "NqQIXHnz0iOLFiQQ8uimK2BhUSvEh2F-7s92yY6mWmg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.403831"], ["updated_at", "2015-02-27 21:28:37.403831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '974ac5f0-bec7-11e4-bc7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '974ba830-bec7-11e4-a4dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "974ac5f0-bec7-11e4-bc7c-705681abff85"], ["organization_id", "974ba830-bec7-11e4-a4dd-705681abff85"], ["created_at", "2015-02-27 21:28:37.407277"], ["updated_at", "2015-02-27 21:28:37.407277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-20" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-20", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:37.411962' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NqQIXHnz0iOLFiQQ8uimK2BhUSvEh2F-7s92yY6mWmg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:37.413475"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:37.414752"], ["id", "974b290a-bec7-11e4-abd9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "974ac5f0-bec7-11e4-bc7c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "974ac5f0-bec7-11e4-bc7c-705681abff85"], ["name", "org-20"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '974ba830-bec7-11e4-a4dd-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:28:37.420415"], ["id", "974ba830-bec7-11e4-a4dd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$bSMwv1yqOX9Ud6KNeuHTTucT4aJbMQY2CAztHUDJk8qyQDm/mTf.S"], ["created_at", "2015-02-27 21:28:37.428451"], ["updated_at", "2015-02-27 21:28:37.428451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:37.430870"], ["user_id", "974f72a8-bec7-11e4-9be2-705681abff85"], ["created_at", "2015-02-27 21:28:37.431784"], ["updated_at", "2015-02-27 21:28:37.431784"], ["token", "OCNsTsj5AZqhNe1JG9K4CKkXY1droO9fLG7fvsUMGDo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:37.436085"], ["updated_at", "2015-02-27 21:28:37.436085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '974f72a8-bec7-11e4-9be2-705681abff85' AND "clubhouse_memberships"."organization_id" = '9750a0a6-bec7-11e4-bec4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "974f72a8-bec7-11e4-9be2-705681abff85"], ["organization_id", "9750a0a6-bec7-11e4-bec4-705681abff85"], ["created_at", "2015-02-27 21:28:37.440168"], ["updated_at", "2015-02-27 21:28:37.440168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-21" for 127.0.0.1 at 2015-02-27 13:28:37 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-21", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:37.444816' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OCNsTsj5AZqhNe1JG9K4CKkXY1droO9fLG7fvsUMGDo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:37.446782"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:37.448694"], ["id", "974ffa2a-bec7-11e4-aaad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "974f72a8-bec7-11e4-9be2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "974f72a8-bec7-11e4-9be2-705681abff85"], ["name", "org-21"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9750a0a6-bec7-11e4-bec4-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$waTxCK/RecOf2fztCTAr5eRBHmYjxOlLl7CF2cQqf2tmhNw1hb7ve"], ["created_at", "2015-02-27 21:28:45.025213"], ["updated_at", "2015-02-27 21:28:45.025213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.035030"], ["user_id", "9bd6c560-bec7-11e4-bb2e-705681abff85"], ["created_at", "2015-02-27 21:28:45.040507"], ["updated_at", "2015-02-27 21:28:45.040507"], ["token", "1KP8iDewtc0aWpcsQsb_45Qtt-v9eApA12fo1v34nRs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.049022"], ["updated_at", "2015-02-27 21:28:45.049022"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9bd6c560-bec7-11e4-bb2e-705681abff85' AND "clubhouse_memberships"."organization_id" = '9bda40aa-bec7-11e4-9d23-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9bd6c560-bec7-11e4-bb2e-705681abff85"], ["organization_id", "9bda40aa-bec7-11e4-9d23-705681abff85"], ["created_at", "2015-02-27 21:28:45.062094"], ["updated_at", "2015-02-27 21:28:45.062094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-1" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.084486' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1KP8iDewtc0aWpcsQsb_45Qtt-v9eApA12fo1v34nRs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.091803"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.093404"], ["id", "9bd90820-bec7-11e4-b338-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9bd6c560-bec7-11e4-bb2e-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "9bd6c560-bec7-11e4-bb2e-705681abff85"], ["name", "org-1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "9bda40aa-bec7-11e4-9d23-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 40ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Sp5dNXp.YVVrEkjSwZu/BeOKhDiyHe5lSll3/5bxmEUZ8xySi3vOe"], ["created_at", "2015-02-27 21:28:45.130632"], ["updated_at", "2015-02-27 21:28:45.130632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.133402"], ["user_id", "9be6b754-bec7-11e4-a4a7-705681abff85"], ["created_at", "2015-02-27 21:28:45.134741"], ["updated_at", "2015-02-27 21:28:45.134741"], ["token", "1Uqg1WZtoxDjlA8_k5tHx21J9PDx8KRNfEOVPlWIQJs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.138893"], ["updated_at", "2015-02-27 21:28:45.138893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9be6b754-bec7-11e4-a4a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '9be7f3bc-bec7-11e4-82b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9be6b754-bec7-11e4-a4a7-705681abff85"], ["organization_id", "9be7f3bc-bec7-11e4-82b6-705681abff85"], ["created_at", "2015-02-27 21:28:45.142242"], ["updated_at", "2015-02-27 21:28:45.142242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$avaJKvF0UuULF1TJ/FY.me4AtFYkFOxaph4NwDL4ZvoVP0LjQT15C"], ["created_at", "2015-02-27 21:28:45.155959"], ["updated_at", "2015-02-27 21:28:45.155959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.157605"], ["user_id", "9bea8c76-bec7-11e4-9efc-705681abff85"], ["created_at", "2015-02-27 21:28:45.158394"], ["updated_at", "2015-02-27 21:28:45.158394"], ["token", "VqdUa5fjH-dx0x3TcSo8Ld2-5uvCqSv08wSZQbkpY8w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.162397"], ["updated_at", "2015-02-27 21:28:45.162397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9bea8c76-bec7-11e4-9efc-705681abff85' AND "clubhouse_memberships"."organization_id" = '9beb8ba8-bec7-11e4-a0f4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9bea8c76-bec7-11e4-9efc-705681abff85"], ["organization_id", "9beb8ba8-bec7-11e4-a0f4-705681abff85"], ["created_at", "2015-02-27 21:28:45.166325"], ["updated_at", "2015-02-27 21:28:45.166325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-3" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-3", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.171023' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VqdUa5fjH-dx0x3TcSo8Ld2-5uvCqSv08wSZQbkpY8w"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.172850"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.174690"], ["id", "9beaf9f4-bec7-11e4-b5cf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9bea8c76-bec7-11e4-9efc-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "9bea8c76-bec7-11e4-9efc-705681abff85"], ["name", "org-3"]] Completed 200 OK in 10ms (Views: 1.6ms | ActiveRecord: 1.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$qzbGWyQ6al8J8zfV0UyxWOhMoaW1pRCIVDNJWl9giK.xFKncw.doi"], ["created_at", "2015-02-27 21:28:45.191362"], ["updated_at", "2015-02-27 21:28:45.191362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.193278"], ["user_id", "9beffb66-bec7-11e4-a18f-705681abff85"], ["created_at", "2015-02-27 21:28:45.194058"], ["updated_at", "2015-02-27 21:28:45.194058"], ["token", "91hMhnSPr_iXqM92FQxGCIQbevx5RBgUOYM7t1dWD9M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.197527"], ["updated_at", "2015-02-27 21:28:45.197527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9beffb66-bec7-11e4-a18f-705681abff85' AND "clubhouse_memberships"."organization_id" = '9bf0e4ae-bec7-11e4-8eea-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9beffb66-bec7-11e4-a18f-705681abff85"], ["organization_id", "9bf0e4ae-bec7-11e4-8eea-705681abff85"], ["created_at", "2015-02-27 21:28:45.201851"], ["updated_at", "2015-02-27 21:28:45.201851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$0cDlU4p9GHJSOWcf0rN08exNrcQSXCtWgCzJnkN/ynVi9zM1AQm6y"], ["created_at", "2015-02-27 21:28:45.214980"], ["updated_at", "2015-02-27 21:28:45.214980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.216774"], ["user_id", "9bf38fec-bec7-11e4-81f2-705681abff85"], ["created_at", "2015-02-27 21:28:45.217576"], ["updated_at", "2015-02-27 21:28:45.217576"], ["token", "D24P3ohBB0yPbdWyPZhnk_tv_C65OPC_c_3ZHY4arNI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.221993"], ["updated_at", "2015-02-27 21:28:45.221993"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9bf38fec-bec7-11e4-81f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '9bf4b2a0-bec7-11e4-840c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9bf38fec-bec7-11e4-81f2-705681abff85"], ["organization_id", "9bf4b2a0-bec7-11e4-840c-705681abff85"], ["created_at", "2015-02-27 21:28:45.227232"], ["updated_at", "2015-02-27 21:28:45.227232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$MSNFwPaij5Z5mhAe7/KsV.QxNVHeCdf1l5gm0G/7y9ibjpoREw2dO"], ["created_at", "2015-02-27 21:28:45.243060"], ["updated_at", "2015-02-27 21:28:45.243060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.244909"], ["user_id", "9bf7da8e-bec7-11e4-8224-705681abff85"], ["created_at", "2015-02-27 21:28:45.245671"], ["updated_at", "2015-02-27 21:28:45.245671"], ["token", "Ich11HCi7wD8qiHpvnvX2MngA2tegJHh9YinE8EDn08"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.248930"], ["updated_at", "2015-02-27 21:28:45.248930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9bf7da8e-bec7-11e4-8224-705681abff85' AND "clubhouse_memberships"."organization_id" = '9bf8ba30-bec7-11e4-9437-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9bf7da8e-bec7-11e4-8224-705681abff85"], ["organization_id", "9bf8ba30-bec7-11e4-9437-705681abff85"], ["created_at", "2015-02-27 21:28:45.252097"], ["updated_at", "2015-02-27 21:28:45.252097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-6" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-6", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.258357' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ich11HCi7wD8qiHpvnvX2MngA2tegJHh9YinE8EDn08"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.259749"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.260759"], ["id", "9bf8430c-bec7-11e4-9914-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9bf7da8e-bec7-11e4-8224-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "9bf7da8e-bec7-11e4-8224-705681abff85"], ["name", "org-6"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9bf8ba30-bec7-11e4-9437-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ez9Qgqur.1iWdPP5aRpKHeYNQuQd75GHHaYrDzhL11A.QNJgoCAFC"], ["created_at", "2015-02-27 21:28:45.283620"], ["updated_at", "2015-02-27 21:28:45.283620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.285184"], ["user_id", "9bfe053a-bec7-11e4-bfd1-705681abff85"], ["created_at", "2015-02-27 21:28:45.285920"], ["updated_at", "2015-02-27 21:28:45.285920"], ["token", "toIgHCsDwVQvcDkGZQI8fBMPBAQxD3cinQoeAxODDdM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.288992"], ["updated_at", "2015-02-27 21:28:45.288992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9bfe053a-bec7-11e4-bfd1-705681abff85' AND "clubhouse_memberships"."organization_id" = '9bfed44c-bec7-11e4-8ac8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9bfe053a-bec7-11e4-bfd1-705681abff85"], ["organization_id", "9bfed44c-bec7-11e4-8ac8-705681abff85"], ["created_at", "2015-02-27 21:28:45.292159"], ["updated_at", "2015-02-27 21:28:45.292159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-7" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-7", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.296592' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "toIgHCsDwVQvcDkGZQI8fBMPBAQxD3cinQoeAxODDdM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.297976"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.298906"], ["id", "9bfe63d6-bec7-11e4-b6ba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9bfe053a-bec7-11e4-bfd1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "9bfe053a-bec7-11e4-bfd1-705681abff85"], ["name", "org-7"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9bfed44c-bec7-11e4-8ac8-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:28:45.304540"], ["id", "9bfed44c-bec7-11e4-8ac8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$NyMIE3dvMmWE1Hcbgtt5ROELFij.k1gQ1HAHYbKAlcU1RWmva/FNG"], ["created_at", "2015-02-27 21:28:45.313011"], ["updated_at", "2015-02-27 21:28:45.313011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.314835"], ["user_id", "9c02860a-bec7-11e4-89a6-705681abff85"], ["created_at", "2015-02-27 21:28:45.315766"], ["updated_at", "2015-02-27 21:28:45.315766"], ["token", "KhVOHl220z6JjwTYxw2GUY9t5W45ORAuRMnnZohd02M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.319750"], ["updated_at", "2015-02-27 21:28:45.319750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c02860a-bec7-11e4-89a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c038924-bec7-11e4-a4a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c02860a-bec7-11e4-89a6-705681abff85"], ["organization_id", "9c038924-bec7-11e4-a4a8-705681abff85"], ["created_at", "2015-02-27 21:28:45.323102"], ["updated_at", "2015-02-27 21:28:45.323102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/9c038924-bec7-11e4-a4a8-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"9c038924-bec7-11e4-a4a8-705681abff85", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.328184' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KhVOHl220z6JjwTYxw2GUY9t5W45ORAuRMnnZohd02M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.329692"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.330631"], ["id", "9c02fb12-bec7-11e4-8f14-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9c02860a-bec7-11e4-89a6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "9c02860a-bec7-11e4-89a6-705681abff85"], ["id", "9c038924-bec7-11e4-a4a8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "9c038924-bec7-11e4-a4a8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$sLKniC899e2kP/K.ABOLjujcgiCtl3whmOJ8yjfXhYpbAh21ilWyO"], ["created_at", "2015-02-27 21:28:45.340839"], ["updated_at", "2015-02-27 21:28:45.340839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.342458"], ["user_id", "9c06c17a-bec7-11e4-900a-705681abff85"], ["created_at", "2015-02-27 21:28:45.343259"], ["updated_at", "2015-02-27 21:28:45.343259"], ["token", "U8aDI8AP8PMUMr9M5iemqu8sefogqjqe_YTmWww9SQM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.346748"], ["updated_at", "2015-02-27 21:28:45.346748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c06c17a-bec7-11e4-900a-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c07a5c2-bec7-11e4-a86c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c06c17a-bec7-11e4-900a-705681abff85"], ["organization_id", "9c07a5c2-bec7-11e4-a86c-705681abff85"], ["created_at", "2015-02-27 21:28:45.349858"], ["updated_at", "2015-02-27 21:28:45.349858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$W8V/vdL2oQT5EMw1liJ2beVom3ObfvFQa3EBqzCiKfw0lGSa9qGPy"], ["created_at", "2015-02-27 21:28:45.363827"], ["updated_at", "2015-02-27 21:28:45.363827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.365934"], ["user_id", "9c0a47a0-bec7-11e4-8461-705681abff85"], ["created_at", "2015-02-27 21:28:45.366780"], ["updated_at", "2015-02-27 21:28:45.366780"], ["token", "gIJF7BMxAZhFUngXoh_NX-Dc_MYYhD5oJ5E7LEhWCFQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.370101"], ["updated_at", "2015-02-27 21:28:45.370101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c0a47a0-bec7-11e4-8461-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c0b34da-bec7-11e4-b096-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c0a47a0-bec7-11e4-8461-705681abff85"], ["organization_id", "9c0b34da-bec7-11e4-b096-705681abff85"], ["created_at", "2015-02-27 21:28:45.373885"], ["updated_at", "2015-02-27 21:28:45.373885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Y7QmrkQc6JNv/IuQMhXif.wwpQvRA0zsGCBhot0zvfODFTDmiKIv."], ["created_at", "2015-02-27 21:28:45.417529"], ["updated_at", "2015-02-27 21:28:45.417529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.419167"], ["user_id", "9c1275ec-bec7-11e4-8100-705681abff85"], ["created_at", "2015-02-27 21:28:45.419959"], ["updated_at", "2015-02-27 21:28:45.419959"], ["token", "zBiCmI_XGw6a4sJKAakX62deC7EmWhhzjAoEy5KgsoQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.423206"], ["updated_at", "2015-02-27 21:28:45.423206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c1275ec-bec7-11e4-8100-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c135390-bec7-11e4-8600-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c1275ec-bec7-11e4-8100-705681abff85"], ["organization_id", "9c135390-bec7-11e4-8600-705681abff85"], ["created_at", "2015-02-27 21:28:45.426781"], ["updated_at", "2015-02-27 21:28:45.426781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.431776' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zBiCmI_XGw6a4sJKAakX62deC7EmWhhzjAoEy5KgsoQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.433212"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.434128"], ["id", "9c12d960-bec7-11e4-996e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9c1275ec-bec7-11e4-8100-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Cpca6uUk1ZNdQRdKJCLm.uhgGEgMV3Dq6g7GfN6XJdGR0VRmqHXES"], ["created_at", "2015-02-27 21:28:45.449037"], ["updated_at", "2015-02-27 21:28:45.449037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.451712"], ["user_id", "9c1753be-bec7-11e4-b67b-705681abff85"], ["created_at", "2015-02-27 21:28:45.452842"], ["updated_at", "2015-02-27 21:28:45.452842"], ["token", "VW-I3-kpGmWp5SUTHCT4HkgXcp9myQf0SGU_PetyYSk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.459027"], ["updated_at", "2015-02-27 21:28:45.459027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c1753be-bec7-11e4-b67b-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c18d6ee-bec7-11e4-829a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c1753be-bec7-11e4-b67b-705681abff85"], ["organization_id", "9c18d6ee-bec7-11e4-829a-705681abff85"], ["created_at", "2015-02-27 21:28:45.463094"], ["updated_at", "2015-02-27 21:28:45.463094"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.471359' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VW-I3-kpGmWp5SUTHCT4HkgXcp9myQf0SGU_PetyYSk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.472950"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.474119"], ["id", "9c17fdfa-bec7-11e4-85e8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9c1753be-bec7-11e4-b67b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.478471"], ["updated_at", "2015-02-27 21:28:45.478471"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9c1bc25a-bec7-11e4-88da-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c1753be-bec7-11e4-b67b-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c1bc25a-bec7-11e4-88da-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9c1753be-bec7-11e4-b67b-705681abff85"], ["admin", "t"], ["organization_id", "9c1bc25a-bec7-11e4-88da-705681abff85"], ["created_at", "2015-02-27 21:28:45.485100"], ["updated_at", "2015-02-27 21:28:45.485100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.5ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$N8T5E5sjKs7vd58gU94heuGxarcVNnvnw0LO/HlN4umucssjMIWAy"], ["created_at", "2015-02-27 21:28:45.493940"], ["updated_at", "2015-02-27 21:28:45.493940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.495478"], ["user_id", "9c1e1c44-bec7-11e4-ace1-705681abff85"], ["created_at", "2015-02-27 21:28:45.496234"], ["updated_at", "2015-02-27 21:28:45.496234"], ["token", "IikUmApQ2tx4_jKTw6dRYTnyuFRb1KXFREo_-Y-E_Ng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.499357"], ["updated_at", "2015-02-27 21:28:45.499357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c1e1c44-bec7-11e4-ace1-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c1eedd6-bec7-11e4-9f37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c1e1c44-bec7-11e4-ace1-705681abff85"], ["organization_id", "9c1eedd6-bec7-11e4-9f37-705681abff85"], ["created_at", "2015-02-27 21:28:45.502420"], ["updated_at", "2015-02-27 21:28:45.502420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/9c1eedd6-bec7-11e4-9f37-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"9c1eedd6-bec7-11e4-9f37-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.506923' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IikUmApQ2tx4_jKTw6dRYTnyuFRb1KXFREo_-Y-E_Ng"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.508299"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.509312"], ["id", "9c1e7c8e-bec7-11e4-b22c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9c1e1c44-bec7-11e4-ace1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "9c1e1c44-bec7-11e4-ace1-705681abff85"], ["id", "9c1eedd6-bec7-11e4-9f37-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$/dhtU.ZkQXQPqvf2Q75zTesOwww7W.Aewyk3fiApO/iZTyhPe.fQ6"], ["created_at", "2015-02-27 21:28:45.519547"], ["updated_at", "2015-02-27 21:28:45.519547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.521140"], ["user_id", "9c2205e8-bec7-11e4-aca0-705681abff85"], ["created_at", "2015-02-27 21:28:45.522075"], ["updated_at", "2015-02-27 21:28:45.522075"], ["token", "Ir-AACLOlyNxH0m7wEXvjvszbqRVQTwMNz88HT2ieR4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.528000"], ["updated_at", "2015-02-27 21:28:45.528000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c2205e8-bec7-11e4-aca0-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c23522c-bec7-11e4-a6af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c2205e8-bec7-11e4-aca0-705681abff85"], ["organization_id", "9c23522c-bec7-11e4-a6af-705681abff85"], ["created_at", "2015-02-27 21:28:45.532205"], ["updated_at", "2015-02-27 21:28:45.532205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$QZhs02.AuVys07AOEof/DOwMXEJhNv5Onr31Nqh/v6LCqjZI9N6bC"], ["created_at", "2015-02-27 21:28:45.544355"], ["updated_at", "2015-02-27 21:28:45.544355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.546024"], ["user_id", "9c25d060-bec7-11e4-9b93-705681abff85"], ["created_at", "2015-02-27 21:28:45.546824"], ["updated_at", "2015-02-27 21:28:45.546824"], ["token", "z2bKLGJXEV6XsxTNVYYGOvHn5W5IZ4RBEymQ4dhMat8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.550108"], ["updated_at", "2015-02-27 21:28:45.550108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c25d060-bec7-11e4-9b93-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c26abac-bec7-11e4-bfe1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c25d060-bec7-11e4-9b93-705681abff85"], ["organization_id", "9c26abac-bec7-11e4-bfe1-705681abff85"], ["created_at", "2015-02-27 21:28:45.553218"], ["updated_at", "2015-02-27 21:28:45.553218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$RNmdtY7/XqEBmP2yhZVx9u08gYn3xh/ILwa0ibLOa/TbgEp40iXB."], ["created_at", "2015-02-27 21:28:45.557394"], ["updated_at", "2015-02-27 21:28:45.557394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.560358"], ["updated_at", "2015-02-27 21:28:45.560358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c27cc1c-bec7-11e4-ac32-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c283d32-bec7-11e4-a59e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c27cc1c-bec7-11e4-ac32-705681abff85"], ["organization_id", "9c283d32-bec7-11e4-a59e-705681abff85"], ["created_at", "2015-02-27 21:28:45.563398"], ["updated_at", "2015-02-27 21:28:45.563398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.567923' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z2bKLGJXEV6XsxTNVYYGOvHn5W5IZ4RBEymQ4dhMat8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.569304"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.570309"], ["id", "9c2637f8-bec7-11e4-bff8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9c25d060-bec7-11e4-9b93-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "9c25d060-bec7-11e4-9b93-705681abff85"]] Completed 200 OK in 8ms (Views: 2.7ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$HI4a41attrUq.O9ZkbXr8.cdcG/972HuxgK9Zd00k5RikyWQbNbuO"], ["created_at", "2015-02-27 21:28:45.583345"], ["updated_at", "2015-02-27 21:28:45.583345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.585245"], ["user_id", "9c2bca2e-bec7-11e4-9245-705681abff85"], ["created_at", "2015-02-27 21:28:45.586043"], ["updated_at", "2015-02-27 21:28:45.586043"], ["token", "y9HKPTYhiLghud8gfhD_mzcCmSm9F6yiANAR-rtXKng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.589382"], ["updated_at", "2015-02-27 21:28:45.589382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c2bca2e-bec7-11e4-9245-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c2caba6-bec7-11e4-bc4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c2bca2e-bec7-11e4-9245-705681abff85"], ["organization_id", "9c2caba6-bec7-11e4-bc4b-705681abff85"], ["created_at", "2015-02-27 21:28:45.592704"], ["updated_at", "2015-02-27 21:28:45.592704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$OwQV021MKPrVMpoR5zewAe1BkdNh63EhMBFT0xR195j1p.4iXOe7a"], ["created_at", "2015-02-27 21:28:45.597179"], ["updated_at", "2015-02-27 21:28:45.597179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.600185"], ["updated_at", "2015-02-27 21:28:45.600185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c2ddd50-bec7-11e4-aacd-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c2e5014-bec7-11e4-9a49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c2ddd50-bec7-11e4-aacd-705681abff85"], ["organization_id", "9c2e5014-bec7-11e4-9a49-705681abff85"], ["created_at", "2015-02-27 21:28:45.603570"], ["updated_at", "2015-02-27 21:28:45.603570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$LzP2zfo4d2nvqVHjL9RHzOiIlgIknJHjqaQ6q8nz7ntCBM9NucZ5e"], ["created_at", "2015-02-27 21:28:45.620602"], ["updated_at", "2015-02-27 21:28:45.620602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.622509"], ["user_id", "9c3176a4-bec7-11e4-96a7-705681abff85"], ["created_at", "2015-02-27 21:28:45.623352"], ["updated_at", "2015-02-27 21:28:45.623352"], ["token", "lS6n22dCNTEp8m_VZwO9ZKZ8Tndq_V2YNpBe3JaxIEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.627439"], ["updated_at", "2015-02-27 21:28:45.627439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c3176a4-bec7-11e4-96a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c327b76-bec7-11e4-8a7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c3176a4-bec7-11e4-96a7-705681abff85"], ["organization_id", "9c327b76-bec7-11e4-8a7c-705681abff85"], ["created_at", "2015-02-27 21:28:45.630910"], ["updated_at", "2015-02-27 21:28:45.630910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$uhopidEO5F0/HMJ6j4wgc.v1ZwohQG8JldW/MtYhhnkYuq5JdITo2"], ["created_at", "2015-02-27 21:28:45.642720"], ["updated_at", "2015-02-27 21:28:45.642720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.644406"], ["user_id", "9c34d2c2-bec7-11e4-8aa8-705681abff85"], ["created_at", "2015-02-27 21:28:45.645216"], ["updated_at", "2015-02-27 21:28:45.645216"], ["token", "t1eTjYoPbsOEsdEXNcaDw_58Izy_Db6mVG_oWOkEIz8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.648575"], ["updated_at", "2015-02-27 21:28:45.648575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c34d2c2-bec7-11e4-8aa8-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c35b32c-bec7-11e4-aae7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c34d2c2-bec7-11e4-8aa8-705681abff85"], ["organization_id", "9c35b32c-bec7-11e4-aae7-705681abff85"], ["created_at", "2015-02-27 21:28:45.651749"], ["updated_at", "2015-02-27 21:28:45.651749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/9c35b32c-bec7-11e4-aae7-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"9c35b32c-bec7-11e4-aae7-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.656514' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "t1eTjYoPbsOEsdEXNcaDw_58Izy_Db6mVG_oWOkEIz8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.657958"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.658992"], ["id", "9c353942-bec7-11e4-a620-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9c34d2c2-bec7-11e4-8aa8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "9c34d2c2-bec7-11e4-8aa8-705681abff85"], ["id", "9c35b32c-bec7-11e4-aae7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9c35b32c-bec7-11e4-aae7-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$y2wInjTggQ2J1k/2PjGNqOOMV.ZWFYhK4.sdTVGqnQhSAMNK.IWx2"], ["created_at", "2015-02-27 21:28:45.671438"], ["updated_at", "2015-02-27 21:28:45.671438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:45.673244"], ["user_id", "9c393574-bec7-11e4-8ba5-705681abff85"], ["created_at", "2015-02-27 21:28:45.674300"], ["updated_at", "2015-02-27 21:28:45.674300"], ["token", "z4xpAjARIxTrdNURDMnUIj_e0os88j8XPL1J5jzwc2w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:45.678463"], ["updated_at", "2015-02-27 21:28:45.678463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c393574-bec7-11e4-8ba5-705681abff85' AND "clubhouse_memberships"."organization_id" = '9c3a5116-bec7-11e4-91f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c393574-bec7-11e4-8ba5-705681abff85"], ["organization_id", "9c3a5116-bec7-11e4-91f0-705681abff85"], ["created_at", "2015-02-27 21:28:45.682593"], ["updated_at", "2015-02-27 21:28:45.682593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/9c3a5116-bec7-11e4-91f0-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"9c3a5116-bec7-11e4-91f0-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:45.687291' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z4xpAjARIxTrdNURDMnUIj_e0os88j8XPL1J5jzwc2w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:45.688724"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:45.689744"], ["id", "9c39b2a6-bec7-11e4-9185-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9c393574-bec7-11e4-8ba5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "9c393574-bec7-11e4-8ba5-705681abff85"], ["id", "9c3a5116-bec7-11e4-91f0-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9c3a5116-bec7-11e4-91f0-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:28:45.695355"], ["id", "9c3a5116-bec7-11e4-91f0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$qmIPsq7D.ovDzkANpkjLp.sWYYcXq6QLe9uQtwJU5tyiDwbQxlgUm"], ["created_at", "2015-02-27 21:28:54.785076"], ["updated_at", "2015-02-27 21:28:54.785076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:54.794901"], ["user_id", "a1a80242-bec7-11e4-9ccd-705681abff85"], ["created_at", "2015-02-27 21:28:54.801570"], ["updated_at", "2015-02-27 21:28:54.801570"], ["token", "CCxVZj9EIDVhzx_SB290dzBgRQSMJoxabnfQ-OpaLzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:54.811150"], ["updated_at", "2015-02-27 21:28:54.811150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1a80242-bec7-11e4-9ccd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1abf00a-bec7-11e4-b35c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1a80242-bec7-11e4-9ccd-705681abff85"], ["organization_id", "a1abf00a-bec7-11e4-b35c-705681abff85"], ["created_at", "2015-02-27 21:28:54.823149"], ["updated_at", "2015-02-27 21:28:54.823149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a1abf00a-bec7-11e4-b35c-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:54 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"a1abf00a-bec7-11e4-b35c-705681abff85", "organization"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:54.845829' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CCxVZj9EIDVhzx_SB290dzBgRQSMJoxabnfQ-OpaLzA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:54.857962"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:54.861455"], ["id", "a1aa70cc-bec7-11e4-a2f7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1a80242-bec7-11e4-9ccd-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "a1a80242-bec7-11e4-9ccd-705681abff85"], ["id", "a1abf00a-bec7-11e4-b35c-705681abff85"]] Completed 200 OK in 48ms (Views: 1.7ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$cPD.kaYYfRZ6aRV7V60NGuShDpoL2x6GmmKGJYUjhVejQwLIYxN76"], ["created_at", "2015-02-27 21:28:54.902549"], ["updated_at", "2015-02-27 21:28:54.902549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:54.904140"], ["user_id", "a1b9c298-bec7-11e4-81ad-705681abff85"], ["created_at", "2015-02-27 21:28:54.904966"], ["updated_at", "2015-02-27 21:28:54.904966"], ["token", "uYb9YOEKs9vTnvPC1mKj_zzdlHh6NAmFY5o3YK1GVhw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:54.908587"], ["updated_at", "2015-02-27 21:28:54.908587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1b9c298-bec7-11e4-81ad-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1baadfc-bec7-11e4-bcac-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1b9c298-bec7-11e4-81ad-705681abff85"], ["organization_id", "a1baadfc-bec7-11e4-bcac-705681abff85"], ["created_at", "2015-02-27 21:28:54.912635"], ["updated_at", "2015-02-27 21:28:54.912635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:54 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$mJv1Qb1BqApx/txP.O.OfumqCigN3MT8ULdmFi44814d/snxKucuG"], ["created_at", "2015-02-27 21:28:54.924475"], ["updated_at", "2015-02-27 21:28:54.924475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:54.926406"], ["user_id", "a1bd2348-bec7-11e4-8cbc-705681abff85"], ["created_at", "2015-02-27 21:28:54.927233"], ["updated_at", "2015-02-27 21:28:54.927233"], ["token", "GNH8lZSTRJ_g8CZ9L_RRJ3yoPE8jjngr1hxVbxalCWk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:54.930726"], ["updated_at", "2015-02-27 21:28:54.930726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1bd2348-bec7-11e4-8cbc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1be0ca4-bec7-11e4-8dee-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1bd2348-bec7-11e4-8cbc-705681abff85"], ["organization_id", "a1be0ca4-bec7-11e4-8dee-705681abff85"], ["created_at", "2015-02-27 21:28:54.934680"], ["updated_at", "2015-02-27 21:28:54.934680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:54 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ejeN4VmugglODGgNlLLVjeHtixE5Svn2mbG727IDBFCQrCA.nrKoG"], ["created_at", "2015-02-27 21:28:55.062618"], ["updated_at", "2015-02-27 21:28:55.062618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.065268"], ["user_id", "a1d23832-bec7-11e4-bf83-705681abff85"], ["created_at", "2015-02-27 21:28:55.066291"], ["updated_at", "2015-02-27 21:28:55.066291"], ["token", "sZjVOh6oUypqow1tmbVxvE1bJuB-qq0eg9KyM3CF7jc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.069848"], ["updated_at", "2015-02-27 21:28:55.069848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1d23832-bec7-11e4-bf83-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1d34894-bec7-11e4-b969-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1d23832-bec7-11e4-bf83-705681abff85"], ["organization_id", "a1d34894-bec7-11e4-b969-705681abff85"], ["created_at", "2015-02-27 21:28:55.073311"], ["updated_at", "2015-02-27 21:28:55.073311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:55.081229' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sZjVOh6oUypqow1tmbVxvE1bJuB-qq0eg9KyM3CF7jc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:55.082674"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:55.083643"], ["id", "a1d2c9aa-bec7-11e4-a689-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1d23832-bec7-11e4-bf83-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$4SKe0ghVXsytausAIJ70iOlPrVJTMZ77jnHQhK3RKSi2Cr6OeppgS"], ["created_at", "2015-02-27 21:28:55.104956"], ["updated_at", "2015-02-27 21:28:55.104956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.106744"], ["user_id", "a1d8aaa0-bec7-11e4-b765-705681abff85"], ["created_at", "2015-02-27 21:28:55.107555"], ["updated_at", "2015-02-27 21:28:55.107555"], ["token", "mGCVldkmIzZG355Z4y7Nj3YdMmuqRIrLrqnj27kU6KM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.110979"], ["updated_at", "2015-02-27 21:28:55.110979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1d8aaa0-bec7-11e4-b765-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1d9938e-bec7-11e4-aeb4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1d8aaa0-bec7-11e4-b765-705681abff85"], ["organization_id", "a1d9938e-bec7-11e4-aeb4-705681abff85"], ["created_at", "2015-02-27 21:28:55.114483"], ["updated_at", "2015-02-27 21:28:55.114483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:55.119190' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mGCVldkmIzZG355Z4y7Nj3YdMmuqRIrLrqnj27kU6KM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:55.120707"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:55.121723"], ["id", "a1d90ffe-bec7-11e4-8b0d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1d8aaa0-bec7-11e4-b765-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.125831"], ["updated_at", "2015-02-27 21:28:55.125831"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a1dbd8ba-bec7-11e4-aeda-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1d8aaa0-bec7-11e4-b765-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1dbd8ba-bec7-11e4-aeda-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1d8aaa0-bec7-11e4-b765-705681abff85"], ["admin", "t"], ["organization_id", "a1dbd8ba-bec7-11e4-aeda-705681abff85"], ["created_at", "2015-02-27 21:28:55.131192"], ["updated_at", "2015-02-27 21:28:55.131192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.5ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$0lValRzaTDuktgBej7SP8OWds9Qi9GTN0hQDrfwor8ocnDpQ8b1Za"], ["created_at", "2015-02-27 21:28:55.140274"], ["updated_at", "2015-02-27 21:28:55.140274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.141888"], ["user_id", "a1de081a-bec7-11e4-9acb-705681abff85"], ["created_at", "2015-02-27 21:28:55.142767"], ["updated_at", "2015-02-27 21:28:55.142767"], ["token", "7UEpwZjuvAszet9PdO2W_aSAcV5dP5QRE9Pdl8VMNt0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.146272"], ["updated_at", "2015-02-27 21:28:55.146272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1de081a-bec7-11e4-9acb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1deefaa-bec7-11e4-9c86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1de081a-bec7-11e4-9acb-705681abff85"], ["organization_id", "a1deefaa-bec7-11e4-9c86-705681abff85"], ["created_at", "2015-02-27 21:28:55.149444"], ["updated_at", "2015-02-27 21:28:55.149444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-6" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:55.154015' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7UEpwZjuvAszet9PdO2W_aSAcV5dP5QRE9Pdl8VMNt0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:55.155401"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:55.156339"], ["id", "a1de7250-bec7-11e4-a694-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1de081a-bec7-11e4-9acb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "a1de081a-bec7-11e4-9acb-705681abff85"], ["name", "org-6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a1deefaa-bec7-11e4-9c86-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$0LEviuuYVWAaC87J9yxsmuWpaVBMCHjpQcj9GE5lnZ4vn47LNlxPq"], ["created_at", "2015-02-27 21:28:55.169372"], ["updated_at", "2015-02-27 21:28:55.169372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.171032"], ["user_id", "a1e27a9e-bec7-11e4-9537-705681abff85"], ["created_at", "2015-02-27 21:28:55.171874"], ["updated_at", "2015-02-27 21:28:55.171874"], ["token", "oQYFu0DM5kt-In3OOc1pKZ3KpT1S-IKFJESnXO5N1s4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.175602"], ["updated_at", "2015-02-27 21:28:55.175602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1e27a9e-bec7-11e4-9537-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1e36aa8-bec7-11e4-a677-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1e27a9e-bec7-11e4-9537-705681abff85"], ["organization_id", "a1e36aa8-bec7-11e4-a677-705681abff85"], ["created_at", "2015-02-27 21:28:55.179317"], ["updated_at", "2015-02-27 21:28:55.179317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$P0XaB1NNrzaFDjydDGDkduwfJNBcqi.5Ow5ILWyBkNt7FJ.dSQxZi"], ["created_at", "2015-02-27 21:28:55.191857"], ["updated_at", "2015-02-27 21:28:55.191857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.193809"], ["user_id", "a1e5f0f2-bec7-11e4-b627-705681abff85"], ["created_at", "2015-02-27 21:28:55.194640"], ["updated_at", "2015-02-27 21:28:55.194640"], ["token", "NJYS6_hE0Dxu-MG9Yo3Ur-VY1xF0DYae62_b6_HYhOE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.198172"], ["updated_at", "2015-02-27 21:28:55.198172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1e5f0f2-bec7-11e4-b627-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1e6df12-bec7-11e4-8298-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1e5f0f2-bec7-11e4-b627-705681abff85"], ["organization_id", "a1e6df12-bec7-11e4-8298-705681abff85"], ["created_at", "2015-02-27 21:28:55.202489"], ["updated_at", "2015-02-27 21:28:55.202489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$zflN/jfVj6XXVzkgpYTFD.3w9lmo2kAtfsx0zmVf3MkemYNm7iZhu"], ["created_at", "2015-02-27 21:28:55.207949"], ["updated_at", "2015-02-27 21:28:55.207949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.215203"], ["updated_at", "2015-02-27 21:28:55.215203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1e87fd4-bec7-11e4-aa4b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1e979de-bec7-11e4-924e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1e87fd4-bec7-11e4-aa4b-705681abff85"], ["organization_id", "a1e979de-bec7-11e4-924e-705681abff85"], ["created_at", "2015-02-27 21:28:55.218752"], ["updated_at", "2015-02-27 21:28:55.218752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:55.223468' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NJYS6_hE0Dxu-MG9Yo3Ur-VY1xF0DYae62_b6_HYhOE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:55.225239"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:55.226250"], ["id", "a1e65bc8-bec7-11e4-9dc8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1e5f0f2-bec7-11e4-b627-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a1e5f0f2-bec7-11e4-b627-705681abff85"]] Completed 200 OK in 8ms (Views: 2.1ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$VJtRmF/mB8leFqDTSenq/ON7Sco8W7zqZjvLd3nR0Vkwa4G8zssZu"], ["created_at", "2015-02-27 21:28:55.238075"], ["updated_at", "2015-02-27 21:28:55.238075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.239673"], ["user_id", "a1ecf532-bec7-11e4-a1e0-705681abff85"], ["created_at", "2015-02-27 21:28:55.240435"], ["updated_at", "2015-02-27 21:28:55.240435"], ["token", "CGMVRZW4F4phyNdB2FpjrUyxKKbNzeIW7lm4PgfVnsc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.245554"], ["updated_at", "2015-02-27 21:28:55.245554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1ecf532-bec7-11e4-a1e0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1ee2902-bec7-11e4-9084-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1ecf532-bec7-11e4-a1e0-705681abff85"], ["organization_id", "a1ee2902-bec7-11e4-9084-705681abff85"], ["created_at", "2015-02-27 21:28:55.249397"], ["updated_at", "2015-02-27 21:28:55.249397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$8DBiSE4pHWth.XIDlCF//u5LymMOxsNAAmZvJqodh6uuoQNJOSvuK"], ["created_at", "2015-02-27 21:28:55.253751"], ["updated_at", "2015-02-27 21:28:55.253751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.256921"], ["updated_at", "2015-02-27 21:28:55.256921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1ef55fc-bec7-11e4-a2fe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1efd482-bec7-11e4-8bc6-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1ef55fc-bec7-11e4-a2fe-705681abff85"], ["organization_id", "a1efd482-bec7-11e4-8bc6-705681abff85"], ["created_at", "2015-02-27 21:28:55.260434"], ["updated_at", "2015-02-27 21:28:55.260434"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$f9ln03K2rh8o3jvttJHf6OpTJfm2ifdC/Z5wdbWDSf839IfWaCSs2"], ["created_at", "2015-02-27 21:28:55.305025"], ["updated_at", "2015-02-27 21:28:55.305025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.306630"], ["user_id", "a1f72c0a-bec7-11e4-af86-705681abff85"], ["created_at", "2015-02-27 21:28:55.307401"], ["updated_at", "2015-02-27 21:28:55.307401"], ["token", "LI8DCrIJUDnmQlgVlwhZASy5Uo2BY5ifqc9TuFl0cPU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.310542"], ["updated_at", "2015-02-27 21:28:55.310542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1f72c0a-bec7-11e4-af86-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1f8001c-bec7-11e4-bb12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1f72c0a-bec7-11e4-af86-705681abff85"], ["organization_id", "a1f8001c-bec7-11e4-bb12-705681abff85"], ["created_at", "2015-02-27 21:28:55.313833"], ["updated_at", "2015-02-27 21:28:55.313833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$S.nGf/l3f2MGSNqZ4fMHe.GYxiFOgSV0Mx/oFZPbnu.tmmRvqperm"], ["created_at", "2015-02-27 21:28:55.327546"], ["updated_at", "2015-02-27 21:28:55.327546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.329369"], ["user_id", "a1fa9dcc-bec7-11e4-9fc0-705681abff85"], ["created_at", "2015-02-27 21:28:55.330173"], ["updated_at", "2015-02-27 21:28:55.330173"], ["token", "hdiax7HWMVObroeFm9pbpdFIHO4Wjd11MJ_bm2XrjYA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.333422"], ["updated_at", "2015-02-27 21:28:55.333422"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1fa9dcc-bec7-11e4-9fc0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1fb7cb0-bec7-11e4-850a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1fa9dcc-bec7-11e4-9fc0-705681abff85"], ["organization_id", "a1fb7cb0-bec7-11e4-850a-705681abff85"], ["created_at", "2015-02-27 21:28:55.337193"], ["updated_at", "2015-02-27 21:28:55.337193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-13" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-13", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:55.341769' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hdiax7HWMVObroeFm9pbpdFIHO4Wjd11MJ_bm2XrjYA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:55.343365"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:55.345327"], ["id", "a1fb0974-bec7-11e4-bf23-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1fa9dcc-bec7-11e4-9fc0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "a1fa9dcc-bec7-11e4-9fc0-705681abff85"], ["name", "org-13"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a1fb7cb0-bec7-11e4-850a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$e.K5h/tO8qN7JfbEfb4jkOBqN/Dph7NekYzY.AnQMITYaAOZjO/FW"], ["created_at", "2015-02-27 21:28:55.361340"], ["updated_at", "2015-02-27 21:28:55.361340"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.365347"], ["user_id", "a1ffea98-bec7-11e4-b296-705681abff85"], ["created_at", "2015-02-27 21:28:55.366489"], ["updated_at", "2015-02-27 21:28:55.366489"], ["token", "bul3DRNDD01sARRUOLQFR62uP8GA90WQ6DWtcfOvoSY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.370006"], ["updated_at", "2015-02-27 21:28:55.370006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1ffea98-bec7-11e4-b296-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2011512-bec7-11e4-bc2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1ffea98-bec7-11e4-b296-705681abff85"], ["organization_id", "a2011512-bec7-11e4-bc2f-705681abff85"], ["created_at", "2015-02-27 21:28:55.373192"], ["updated_at", "2015-02-27 21:28:55.373192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-14" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-14", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:55.377745' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bul3DRNDD01sARRUOLQFR62uP8GA90WQ6DWtcfOvoSY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:55.379225"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:55.380497"], ["id", "a20096be-bec7-11e4-8090-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1ffea98-bec7-11e4-b296-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "a1ffea98-bec7-11e4-b296-705681abff85"], ["name", "org-14"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a2011512-bec7-11e4-bc2f-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:28:55.386047"], ["id", "a2011512-bec7-11e4-bc2f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$halLh8oLlsQvOzZjApNQBuIqQNLc8wmVRmdHVk3TDb/sxrsNxFlnG"], ["created_at", "2015-02-27 21:28:55.393952"], ["updated_at", "2015-02-27 21:28:55.393952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.395713"], ["user_id", "a204be06-bec7-11e4-b5fa-705681abff85"], ["created_at", "2015-02-27 21:28:55.396499"], ["updated_at", "2015-02-27 21:28:55.396499"], ["token", "yFQzoHvqwtNn9-ZiL59bKqG4WDjnjTOqPl_y6o8RHwo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.399777"], ["updated_at", "2015-02-27 21:28:55.399777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a204be06-bec7-11e4-b5fa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2059f88-bec7-11e4-8d59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a204be06-bec7-11e4-b5fa-705681abff85"], ["organization_id", "a2059f88-bec7-11e4-8d59-705681abff85"], ["created_at", "2015-02-27 21:28:55.403601"], ["updated_at", "2015-02-27 21:28:55.403601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/a2059f88-bec7-11e4-8d59-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"a2059f88-bec7-11e4-8d59-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:55.408218' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yFQzoHvqwtNn9-ZiL59bKqG4WDjnjTOqPl_y6o8RHwo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:55.409727"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:55.411084"], ["id", "a205286e-bec7-11e4-a658-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a204be06-bec7-11e4-b5fa-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "a204be06-bec7-11e4-b5fa-705681abff85"], ["id", "a2059f88-bec7-11e4-8d59-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a2059f88-bec7-11e4-8d59-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$W82OjCmBPiZIswbXjBV30OQz0n8Lh9yO4YPsYijIWIjqB7e.WjXGG"], ["created_at", "2015-02-27 21:28:55.420974"], ["updated_at", "2015-02-27 21:28:55.420974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.422532"], ["user_id", "a208dc34-bec7-11e4-b554-705681abff85"], ["created_at", "2015-02-27 21:28:55.423295"], ["updated_at", "2015-02-27 21:28:55.423295"], ["token", "V5gpD_gH50i0JOVb8xTeiYMwdTMDGCH5Ph1NtMAfIb4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.426478"], ["updated_at", "2015-02-27 21:28:55.426478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a208dc34-bec7-11e4-b554-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a209b316-bec7-11e4-8fe8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a208dc34-bec7-11e4-b554-705681abff85"], ["organization_id", "a209b316-bec7-11e4-8fe8-705681abff85"], ["created_at", "2015-02-27 21:28:55.430343"], ["updated_at", "2015-02-27 21:28:55.430343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$nUWn/VQWUjhxTQ8U//ElkerLk6sW7pxzluqRo1xoeVMucxyOdqLRa"], ["created_at", "2015-02-27 21:28:55.441830"], ["updated_at", "2015-02-27 21:28:55.441830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.443423"], ["user_id", "a20c0ae4-bec7-11e4-8d18-705681abff85"], ["created_at", "2015-02-27 21:28:55.444204"], ["updated_at", "2015-02-27 21:28:55.444204"], ["token", "VXLNpnI68iNUybKP1hMw_pij5VlphFBm43jBhaxR-xo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.448082"], ["updated_at", "2015-02-27 21:28:55.448082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a20c0ae4-bec7-11e4-8d18-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a20d0228-bec7-11e4-9865-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a20c0ae4-bec7-11e4-8d18-705681abff85"], ["organization_id", "a20d0228-bec7-11e4-9865-705681abff85"], ["created_at", "2015-02-27 21:28:55.451866"], ["updated_at", "2015-02-27 21:28:55.451866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$hy.YlJgDR2lFZyAzxA7tbeI2zBkw3Rji3IEzTYGpAYhnbjgvv2VzO"], ["created_at", "2015-02-27 21:28:55.463907"], ["updated_at", "2015-02-27 21:28:55.463907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.465975"], ["user_id", "a20f7418-bec7-11e4-812d-705681abff85"], ["created_at", "2015-02-27 21:28:55.466790"], ["updated_at", "2015-02-27 21:28:55.466790"], ["token", "lR0Mn6NBdE4Eamwt7ywx25p60m6yenFDzI-DHln8fZo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.470339"], ["updated_at", "2015-02-27 21:28:55.470339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a20f7418-bec7-11e4-812d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a21062f6-bec7-11e4-a594-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a20f7418-bec7-11e4-812d-705681abff85"], ["organization_id", "a21062f6-bec7-11e4-a594-705681abff85"], ["created_at", "2015-02-27 21:28:55.473624"], ["updated_at", "2015-02-27 21:28:55.473624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a21062f6-bec7-11e4-a594-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"a21062f6-bec7-11e4-a594-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:55.479304' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lR0Mn6NBdE4Eamwt7ywx25p60m6yenFDzI-DHln8fZo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:55.481130"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:55.482154"], ["id", "a20fe40c-bec7-11e4-82e6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a20f7418-bec7-11e4-812d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "a20f7418-bec7-11e4-812d-705681abff85"], ["id", "a21062f6-bec7-11e4-a594-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a21062f6-bec7-11e4-a594-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$v/VLo6lZ.v9rQJ7JlHCS6eOHOvtHMHa.9sGnFJ8tzAdWiWLymRwMy"], ["created_at", "2015-02-27 21:28:55.494972"], ["updated_at", "2015-02-27 21:28:55.494972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.496930"], ["user_id", "a2142ef4-bec7-11e4-b85d-705681abff85"], ["created_at", "2015-02-27 21:28:55.497754"], ["updated_at", "2015-02-27 21:28:55.497754"], ["token", "5YlBdbN2BbZV3fHEgI8XWOPAralB5qrPoHGC29mYbd8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.501057"], ["updated_at", "2015-02-27 21:28:55.501057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2142ef4-bec7-11e4-b85d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a21511f2-bec7-11e4-a595-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2142ef4-bec7-11e4-b85d-705681abff85"], ["organization_id", "a21511f2-bec7-11e4-a595-705681abff85"], ["created_at", "2015-02-27 21:28:55.505124"], ["updated_at", "2015-02-27 21:28:55.505124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a21511f2-bec7-11e4-a595-705681abff85" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"a21511f2-bec7-11e4-a595-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:55.509600' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5YlBdbN2BbZV3fHEgI8XWOPAralB5qrPoHGC29mYbd8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:55.511452"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:55.513297"], ["id", "a2149b5a-bec7-11e4-9d88-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2142ef4-bec7-11e4-b85d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "a2142ef4-bec7-11e4-b85d-705681abff85"], ["id", "a21511f2-bec7-11e4-a595-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a21511f2-bec7-11e4-a595-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:28:55.519554"], ["id", "a21511f2-bec7-11e4-a595-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$DnghiVIgm3SZPM3kTRpCtOiflJUtRvfkeKZ3/rvXzbLLcEtXgsZsm"], ["created_at", "2015-02-27 21:28:55.527421"], ["updated_at", "2015-02-27 21:28:55.527421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.529292"], ["user_id", "a2191edc-bec7-11e4-9a54-705681abff85"], ["created_at", "2015-02-27 21:28:55.530133"], ["updated_at", "2015-02-27 21:28:55.530133"], ["token", "b-P5JF3La2TVhBwV3VWG6iOyjhr9Zq1qrXcp-EjLgMY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.533938"], ["updated_at", "2015-02-27 21:28:55.533938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2191edc-bec7-11e4-9a54-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a21a1f4e-bec7-11e4-b990-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2191edc-bec7-11e4-9a54-705681abff85"], ["organization_id", "a21a1f4e-bec7-11e4-b990-705681abff85"], ["created_at", "2015-02-27 21:28:55.537552"], ["updated_at", "2015-02-27 21:28:55.537552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-20" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:28:55.542375' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b-P5JF3La2TVhBwV3VWG6iOyjhr9Zq1qrXcp-EjLgMY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:28:55.543902"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:28:55.544981"], ["id", "a21997a4-bec7-11e4-a2fb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2191edc-bec7-11e4-9a54-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "a2191edc-bec7-11e4-9a54-705681abff85"], ["name", "org-20"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$sVYTY4hSW6TeT08oMKKdYuQb7tShdK.h4JhOI1zF.iwPog0yJjvUe"], ["created_at", "2015-02-27 21:28:55.558946"], ["updated_at", "2015-02-27 21:28:55.558946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:28:55.561136"], ["user_id", "a21df59c-bec7-11e4-a2c7-705681abff85"], ["created_at", "2015-02-27 21:28:55.562157"], ["updated_at", "2015-02-27 21:28:55.562157"], ["token", "R-dR26l8RBp6c_E9XzxJfQeoTbKNWqsHRRQnQW8KxqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:28:55.566552"], ["updated_at", "2015-02-27 21:28:55.566552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a21df59c-bec7-11e4-a2c7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a21f1aa8-bec7-11e4-8b64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a21df59c-bec7-11e4-a2c7-705681abff85"], ["organization_id", "a21f1aa8-bec7-11e4-8b64-705681abff85"], ["created_at", "2015-02-27 21:28:55.570421"], ["updated_at", "2015-02-27 21:28:55.570421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:28:55 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$0gV1LBDXmI0BSjsXVoaIFeYY3qXMQuQa900arzfyBBWU/tm44dtXq"], ["created_at", "2015-02-27 21:29:28.974190"], ["updated_at", "2015-02-27 21:29:28.974190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (12.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:28.991409"], ["user_id", "b60959de-bec7-11e4-96ea-705681abff85"], ["created_at", "2015-02-27 21:29:28.999189"], ["updated_at", "2015-02-27 21:29:28.999189"], ["token", "8Z6E1V8KSp-p-CMLZkb4dWYaMSDZgPKVDJINxUhcf1k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.020625"], ["updated_at", "2015-02-27 21:29:29.020625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b60959de-bec7-11e4-96ea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b60fcce2-bec7-11e4-a14b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b60959de-bec7-11e4-96ea-705681abff85"], ["organization_id", "b60fcce2-bec7-11e4-a14b-705681abff85"], ["created_at", "2015-02-27 21:29:29.031721"], ["updated_at", "2015-02-27 21:29:29.031721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/b60fcce2-bec7-11e4-a14b-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"b60fcce2-bec7-11e4-a14b-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.053467' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8Z6E1V8KSp-p-CMLZkb4dWYaMSDZgPKVDJINxUhcf1k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.060983"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.062181"], ["id", "b60c9d06-bec7-11e4-be1b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b60959de-bec7-11e4-96ea-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "b60959de-bec7-11e4-96ea-705681abff85"], ["id", "b60fcce2-bec7-11e4-a14b-705681abff85"]] Completed 200 OK in 40ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$mRre.PgLb8pMfebUWzBHOOJtsd25f72y6bFbu4LQGjG9p5yM1BZia"], ["created_at", "2015-02-27 21:29:29.102679"], ["updated_at", "2015-02-27 21:29:29.102679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.104467"], ["user_id", "b61c4ae4-bec7-11e4-8d87-705681abff85"], ["created_at", "2015-02-27 21:29:29.105316"], ["updated_at", "2015-02-27 21:29:29.105316"], ["token", "H_RqA3Z0W36hM7iiCpUKIlfm79S8r7T0z9sDxKzK9yc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.109398"], ["updated_at", "2015-02-27 21:29:29.109398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b61c4ae4-bec7-11e4-8d87-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b61d4cd2-bec7-11e4-bdc2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b61c4ae4-bec7-11e4-8d87-705681abff85"], ["organization_id", "b61d4cd2-bec7-11e4-bdc2-705681abff85"], ["created_at", "2015-02-27 21:29:29.112683"], ["updated_at", "2015-02-27 21:29:29.112683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$yFMPJ8ttEW6NfuTF5UgT3e9KuEpVRuJENnFXti91rdzRHrjGuRD8S"], ["created_at", "2015-02-27 21:29:29.125322"], ["updated_at", "2015-02-27 21:29:29.125322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.127098"], ["user_id", "b61fbea4-bec7-11e4-bccd-705681abff85"], ["created_at", "2015-02-27 21:29:29.127908"], ["updated_at", "2015-02-27 21:29:29.127908"], ["token", "Sh8gbnPBNH-9JbivQxRz2HB6OOmTmt2JtwmRlurBaWQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.131185"], ["updated_at", "2015-02-27 21:29:29.131185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b61fbea4-bec7-11e4-bccd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b620a864-bec7-11e4-9994-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b61fbea4-bec7-11e4-bccd-705681abff85"], ["organization_id", "b620a864-bec7-11e4-9994-705681abff85"], ["created_at", "2015-02-27 21:29:29.135602"], ["updated_at", "2015-02-27 21:29:29.135602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-3" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-3", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.141035' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Sh8gbnPBNH-9JbivQxRz2HB6OOmTmt2JtwmRlurBaWQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.142510"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.143460"], ["id", "b6202894-bec7-11e4-81fa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b61fbea4-bec7-11e4-bccd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "b61fbea4-bec7-11e4-bccd-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "b620a864-bec7-11e4-9994-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$W5sbknTXTRu4ZJC109qKHuHFbhikjdfd7KS15S6Lu3ei4QUwrYucK"], ["created_at", "2015-02-27 21:29:29.155920"], ["updated_at", "2015-02-27 21:29:29.155920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.157580"], ["user_id", "b6246954-bec7-11e4-a860-705681abff85"], ["created_at", "2015-02-27 21:29:29.158356"], ["updated_at", "2015-02-27 21:29:29.158356"], ["token", "erKaiLaFgXNMbWoP3Nxvay4hT7vWSTn3oTlGAaXw--E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.161498"], ["updated_at", "2015-02-27 21:29:29.161498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6246954-bec7-11e4-a860-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6253ed8-bec7-11e4-af01-705681abff85') LIMIT 1 SQL (5.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6246954-bec7-11e4-a860-705681abff85"], ["organization_id", "b6253ed8-bec7-11e4-af01-705681abff85"], ["created_at", "2015-02-27 21:29:29.164723"], ["updated_at", "2015-02-27 21:29:29.164723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$mvAs9RDoGDNSBg6CpevusuflLeWvdsGIfKZpEsf1MGoV8tOGy3wFu"], ["created_at", "2015-02-27 21:29:29.182577"], ["updated_at", "2015-02-27 21:29:29.182577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.184195"], ["user_id", "b62879f4-bec7-11e4-9491-705681abff85"], ["created_at", "2015-02-27 21:29:29.185063"], ["updated_at", "2015-02-27 21:29:29.185063"], ["token", "eWN1GwOHDxpWHxp7sz_Ao6kn9OIuEiEbEH-VT0P_ahE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.189293"], ["updated_at", "2015-02-27 21:29:29.189293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b62879f4-bec7-11e4-9491-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b62980a6-bec7-11e4-9f4d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b62879f4-bec7-11e4-9491-705681abff85"], ["organization_id", "b62980a6-bec7-11e4-9f4d-705681abff85"], ["created_at", "2015-02-27 21:29:29.192595"], ["updated_at", "2015-02-27 21:29:29.192595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$eCNmrDFEwBFBb.8UAZIZKOARCi9.Y4HGRdV4E9R/Ifblq9Rn.cKj2"], ["created_at", "2015-02-27 21:29:29.197008"], ["updated_at", "2015-02-27 21:29:29.197008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.199950"], ["updated_at", "2015-02-27 21:29:29.199950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b62aab3e-bec7-11e4-afca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b62b1f24-bec7-11e4-9f37-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b62aab3e-bec7-11e4-afca-705681abff85"], ["organization_id", "b62b1f24-bec7-11e4-9f37-705681abff85"], ["created_at", "2015-02-27 21:29:29.203348"], ["updated_at", "2015-02-27 21:29:29.203348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.208418' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eWN1GwOHDxpWHxp7sz_Ao6kn9OIuEiEbEH-VT0P_ahE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.209925"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.210863"], ["id", "b628ef88-bec7-11e4-b1df-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b62879f4-bec7-11e4-9491-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "b62879f4-bec7-11e4-9491-705681abff85"]] Completed 200 OK in 8ms (Views: 2.1ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$CUCFWjyCjSh6GLXoxVKQ7ejsf51GXgq9mSsbiHvIrpbLAGFX1alte"], ["created_at", "2015-02-27 21:29:29.224204"], ["updated_at", "2015-02-27 21:29:29.224204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.225761"], ["user_id", "b62ed20e-bec7-11e4-924a-705681abff85"], ["created_at", "2015-02-27 21:29:29.226546"], ["updated_at", "2015-02-27 21:29:29.226546"], ["token", "eowcTe2Qx51ZJOBIdU8V5gPu4FnJCEsNDhcqX1ds-Ps"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.229932"], ["updated_at", "2015-02-27 21:29:29.229932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b62ed20e-bec7-11e4-924a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b62faf1c-bec7-11e4-8158-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b62ed20e-bec7-11e4-924a-705681abff85"], ["organization_id", "b62faf1c-bec7-11e4-8158-705681abff85"], ["created_at", "2015-02-27 21:29:29.232992"], ["updated_at", "2015-02-27 21:29:29.232992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$x3of0pU9DdWoAi6y37LgLueiHcopiiMFOH3NYFYqcwcBiESLg0sJW"], ["created_at", "2015-02-27 21:29:29.237319"], ["updated_at", "2015-02-27 21:29:29.237319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.240799"], ["updated_at", "2015-02-27 21:29:29.240799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b630d7b6-bec7-11e4-8b1d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6315aec-bec7-11e4-b348-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b630d7b6-bec7-11e4-8b1d-705681abff85"], ["organization_id", "b6315aec-bec7-11e4-b348-705681abff85"], ["created_at", "2015-02-27 21:29:29.244023"], ["updated_at", "2015-02-27 21:29:29.244023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$TZsexE8pKdlgDXetv2qpc.JsB9ONfYO76vlQQqNtIrZqWhHL2I4yW"], ["created_at", "2015-02-27 21:29:29.257538"], ["updated_at", "2015-02-27 21:29:29.257538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.259166"], ["user_id", "b633e94c-bec7-11e4-a4c9-705681abff85"], ["created_at", "2015-02-27 21:29:29.259935"], ["updated_at", "2015-02-27 21:29:29.259935"], ["token", "Jp3f7cTHdqtjqKHpCdOePbOQRnIryyC03sYy8e7Mq10"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.263135"], ["updated_at", "2015-02-27 21:29:29.263135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b633e94c-bec7-11e4-a4c9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b634c0c4-bec7-11e4-b7e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b633e94c-bec7-11e4-a4c9-705681abff85"], ["organization_id", "b634c0c4-bec7-11e4-b7e3-705681abff85"], ["created_at", "2015-02-27 21:29:29.266257"], ["updated_at", "2015-02-27 21:29:29.266257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$4Ecw.oVuve9as4yt3Ahyz.E5ztRckHUBU/8JwC9hFOSkhjyL.xHQe"], ["created_at", "2015-02-27 21:29:29.278076"], ["updated_at", "2015-02-27 21:29:29.278076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.279670"], ["user_id", "b6370c4e-bec7-11e4-b21d-705681abff85"], ["created_at", "2015-02-27 21:29:29.280444"], ["updated_at", "2015-02-27 21:29:29.280444"], ["token", "6NXLm-ROtzOrATsXZ6787F0IUGWglHqpKQwqBjLOxvU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.283720"], ["updated_at", "2015-02-27 21:29:29.283720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6370c4e-bec7-11e4-b21d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b637f2ee-bec7-11e4-87e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6370c4e-bec7-11e4-b21d-705681abff85"], ["organization_id", "b637f2ee-bec7-11e4-87e5-705681abff85"], ["created_at", "2015-02-27 21:29:29.287613"], ["updated_at", "2015-02-27 21:29:29.287613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.293767' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6NXLm-ROtzOrATsXZ6787F0IUGWglHqpKQwqBjLOxvU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.295198"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.296101"], ["id", "b6376d74-bec7-11e4-a3cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6370c4e-bec7-11e4-b21d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$.XDDnFE9WZaav7Ybf3Sa9uICjkm2cDASNKlopgVAOgDDwfX/gZXf6"], ["created_at", "2015-02-27 21:29:29.319872"], ["updated_at", "2015-02-27 21:29:29.319872"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.321808"], ["user_id", "b63d6e54-bec7-11e4-a722-705681abff85"], ["created_at", "2015-02-27 21:29:29.322671"], ["updated_at", "2015-02-27 21:29:29.322671"], ["token", "DXqlSKhNhSZ7YmwXtkFtbFJLQ0Vh9qih2QLsmRQa9jc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.326194"], ["updated_at", "2015-02-27 21:29:29.326194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b63d6e54-bec7-11e4-a722-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b63e6174-bec7-11e4-9666-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b63d6e54-bec7-11e4-a722-705681abff85"], ["organization_id", "b63e6174-bec7-11e4-9666-705681abff85"], ["created_at", "2015-02-27 21:29:29.329405"], ["updated_at", "2015-02-27 21:29:29.329405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.333852' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DXqlSKhNhSZ7YmwXtkFtbFJLQ0Vh9qih2QLsmRQa9jc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.335293"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.336304"], ["id", "b63de4a6-bec7-11e4-a89b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b63d6e54-bec7-11e4-a722-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.340744"], ["updated_at", "2015-02-27 21:29:29.340744"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b645aba0-bec7-11e4-afb9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b63d6e54-bec7-11e4-a722-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b645aba0-bec7-11e4-afb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b63d6e54-bec7-11e4-a722-705681abff85"], ["admin", "t"], ["organization_id", "b645aba0-bec7-11e4-afb9-705681abff85"], ["created_at", "2015-02-27 21:29:29.379284"], ["updated_at", "2015-02-27 21:29:29.379284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 48ms (Views: 0.6ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$VhuBQpH.quLhIfVvn0k0ze5UKAIVikx0K/lcKsqD996ZmRu1f.wHi"], ["created_at", "2015-02-27 21:29:29.387433"], ["updated_at", "2015-02-27 21:29:29.387433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.389132"], ["user_id", "b647b9cc-bec7-11e4-ba00-705681abff85"], ["created_at", "2015-02-27 21:29:29.390077"], ["updated_at", "2015-02-27 21:29:29.390077"], ["token", "n7xv1nO7dF3l474m_jKcKKWiK-xMiD9yZz9D3oslh-U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.393463"], ["updated_at", "2015-02-27 21:29:29.393463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b647b9cc-bec7-11e4-ba00-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b648a3aa-bec7-11e4-9558-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b647b9cc-bec7-11e4-ba00-705681abff85"], ["organization_id", "b648a3aa-bec7-11e4-9558-705681abff85"], ["created_at", "2015-02-27 21:29:29.399005"], ["updated_at", "2015-02-27 21:29:29.399005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/b648a3aa-bec7-11e4-9558-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"b648a3aa-bec7-11e4-9558-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.404074' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n7xv1nO7dF3l474m_jKcKKWiK-xMiD9yZz9D3oslh-U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.405550"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.406567"], ["id", "b6482cd6-bec7-11e4-9ad0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b647b9cc-bec7-11e4-ba00-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "b647b9cc-bec7-11e4-ba00-705681abff85"], ["id", "b648a3aa-bec7-11e4-9558-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "b648a3aa-bec7-11e4-9558-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Lwn9hnfUfxwYIVAywftSWutrgQIB.MsXaGd9V99vfN2ZC1Z/IPXn2"], ["created_at", "2015-02-27 21:29:29.416632"], ["updated_at", "2015-02-27 21:29:29.416632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.418863"], ["user_id", "b64c304c-bec7-11e4-a907-705681abff85"], ["created_at", "2015-02-27 21:29:29.419702"], ["updated_at", "2015-02-27 21:29:29.419702"], ["token", "9D_qVmWb7EQBAPlZs5eAAGKSlqs1-nrwQYrL-eo9S5E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.423611"], ["updated_at", "2015-02-27 21:29:29.423611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b64c304c-bec7-11e4-a907-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b64d427a-bec7-11e4-8d32-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b64c304c-bec7-11e4-a907-705681abff85"], ["organization_id", "b64d427a-bec7-11e4-8d32-705681abff85"], ["created_at", "2015-02-27 21:29:29.427140"], ["updated_at", "2015-02-27 21:29:29.427140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ucxDwnPl1sv6LUMVTCCyx.RiKAGgclDIg7MttAOXrjgJH90UourdO"], ["created_at", "2015-02-27 21:29:29.440307"], ["updated_at", "2015-02-27 21:29:29.440307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.441927"], ["user_id", "b64fcdf6-bec7-11e4-804e-705681abff85"], ["created_at", "2015-02-27 21:29:29.442693"], ["updated_at", "2015-02-27 21:29:29.442693"], ["token", "iu9TelCao2aoK9vb0CzT5p0AVG7RxR9YIAaX9q87-7M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.446199"], ["updated_at", "2015-02-27 21:29:29.446199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b64fcdf6-bec7-11e4-804e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b650b108-bec7-11e4-97b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b64fcdf6-bec7-11e4-804e-705681abff85"], ["organization_id", "b650b108-bec7-11e4-97b2-705681abff85"], ["created_at", "2015-02-27 21:29:29.449437"], ["updated_at", "2015-02-27 21:29:29.449437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$5DEfgd62CrbICwr.l6Kb8evtHumqejKYxrEAMcMJiqF/77pVquNOe"], ["created_at", "2015-02-27 21:29:29.461338"], ["updated_at", "2015-02-27 21:29:29.461338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.464023"], ["user_id", "b65301ec-bec7-11e4-9616-705681abff85"], ["created_at", "2015-02-27 21:29:29.464844"], ["updated_at", "2015-02-27 21:29:29.464844"], ["token", "9eg4OIBIPjlTVC2m0ZXKZwuXSxPyrBdVIx1DySOQPLE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.468296"], ["updated_at", "2015-02-27 21:29:29.468296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b65301ec-bec7-11e4-9616-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b65412ee-bec7-11e4-ae60-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b65301ec-bec7-11e4-9616-705681abff85"], ["organization_id", "b65412ee-bec7-11e4-ae60-705681abff85"], ["created_at", "2015-02-27 21:29:29.472229"], ["updated_at", "2015-02-27 21:29:29.472229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-15" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-15", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.477118' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9eg4OIBIPjlTVC2m0ZXKZwuXSxPyrBdVIx1DySOQPLE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.479626"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.481209"], ["id", "b65394f4-bec7-11e4-a8c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b65301ec-bec7-11e4-9616-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "b65301ec-bec7-11e4-9616-705681abff85"], ["name", "org-15"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b65412ee-bec7-11e4-ae60-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$C4n8dHxIKFHj8M1ijYyhVehP1YltsZtXrkbrzyeuDhzD3nljjSRTy"], ["created_at", "2015-02-27 21:29:29.496395"], ["updated_at", "2015-02-27 21:29:29.496395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.498076"], ["user_id", "b6585ca0-bec7-11e4-8412-705681abff85"], ["created_at", "2015-02-27 21:29:29.498841"], ["updated_at", "2015-02-27 21:29:29.498841"], ["token", "nnAI6iMagnGfbNNIoxUnRXGAnjMHO16Adff_LX9Ef68"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.502101"], ["updated_at", "2015-02-27 21:29:29.502101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6585ca0-bec7-11e4-8412-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6593b52-bec7-11e4-8058-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6585ca0-bec7-11e4-8412-705681abff85"], ["organization_id", "b6593b52-bec7-11e4-8058-705681abff85"], ["created_at", "2015-02-27 21:29:29.505541"], ["updated_at", "2015-02-27 21:29:29.505541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-16" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-16", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.509832' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nnAI6iMagnGfbNNIoxUnRXGAnjMHO16Adff_LX9Ef68"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.511738"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.513639"], ["id", "b658c15e-bec7-11e4-b016-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6585ca0-bec7-11e4-8412-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "b6585ca0-bec7-11e4-8412-705681abff85"], ["name", "org-16"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b6593b52-bec7-11e4-8058-705681abff85') LIMIT 1 SQL (0.5ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:29:29.519757"], ["id", "b6593b52-bec7-11e4-8058-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$no8lbS0mxXqUYW7YBNEfPOn6D1sj2EHH/sR0CjYSQPZPW5FDg5vS2"], ["created_at", "2015-02-27 21:29:29.528711"], ["updated_at", "2015-02-27 21:29:29.528711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.530413"], ["user_id", "b65d4c24-bec7-11e4-802d-705681abff85"], ["created_at", "2015-02-27 21:29:29.531170"], ["updated_at", "2015-02-27 21:29:29.531170"], ["token", "CYYK-XK75oHoBTYMnqe342cxY43LrFnf9xc8t_0Bt0Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.534354"], ["updated_at", "2015-02-27 21:29:29.534354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b65d4c24-bec7-11e4-802d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b65e2414-bec7-11e4-9326-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b65d4c24-bec7-11e4-802d-705681abff85"], ["organization_id", "b65e2414-bec7-11e4-9326-705681abff85"], ["created_at", "2015-02-27 21:29:29.537790"], ["updated_at", "2015-02-27 21:29:29.537790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$c2oCH2ClOxU.UoZMgY/65uV7D4Bs/0n/m/n4XsVm6kR7lElqf/GXW"], ["created_at", "2015-02-27 21:29:29.549941"], ["updated_at", "2015-02-27 21:29:29.549941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.551587"], ["user_id", "b660889e-bec7-11e4-98b0-705681abff85"], ["created_at", "2015-02-27 21:29:29.552481"], ["updated_at", "2015-02-27 21:29:29.552481"], ["token", "8IA5qEBsu1Fd6b5mxBOjcR3N0OWgX-5dl5AfUQ4juok"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.556138"], ["updated_at", "2015-02-27 21:29:29.556138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b660889e-bec7-11e4-98b0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6617a1a-bec7-11e4-a3ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b660889e-bec7-11e4-98b0-705681abff85"], ["organization_id", "b6617a1a-bec7-11e4-a3ec-705681abff85"], ["created_at", "2015-02-27 21:29:29.559445"], ["updated_at", "2015-02-27 21:29:29.559445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/b6617a1a-bec7-11e4-a3ec-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"b6617a1a-bec7-11e4-a3ec-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.564064' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8IA5qEBsu1Fd6b5mxBOjcR3N0OWgX-5dl5AfUQ4juok"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.565861"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.567752"], ["id", "b660fa18-bec7-11e4-99b3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b660889e-bec7-11e4-98b0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "b660889e-bec7-11e4-98b0-705681abff85"], ["id", "b6617a1a-bec7-11e4-a3ec-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b6617a1a-bec7-11e4-a3ec-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$/.GXV/tBUNIHJSZ1r7Xb9uBiBUH.oV9qFntPQlF08pCswYZTUkWce"], ["created_at", "2015-02-27 21:29:29.581427"], ["updated_at", "2015-02-27 21:29:29.581427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.583234"], ["user_id", "b665595a-bec7-11e4-9e04-705681abff85"], ["created_at", "2015-02-27 21:29:29.584068"], ["updated_at", "2015-02-27 21:29:29.584068"], ["token", "SoWyS3EkFiMrGBopdpqOIp7Q_NP_5GlfDkP79C19TEY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.589519"], ["updated_at", "2015-02-27 21:29:29.589519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b665595a-bec7-11e4-9e04-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6669018-bec7-11e4-8394-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b665595a-bec7-11e4-9e04-705681abff85"], ["organization_id", "b6669018-bec7-11e4-8394-705681abff85"], ["created_at", "2015-02-27 21:29:29.593419"], ["updated_at", "2015-02-27 21:29:29.593419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/b6669018-bec7-11e4-8394-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"b6669018-bec7-11e4-8394-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.597945' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SoWyS3EkFiMrGBopdpqOIp7Q_NP_5GlfDkP79C19TEY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.599380"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.601165"], ["id", "b665c2e6-bec7-11e4-bfe2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b665595a-bec7-11e4-9e04-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "b665595a-bec7-11e4-9e04-705681abff85"], ["id", "b6669018-bec7-11e4-8394-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b6669018-bec7-11e4-8394-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:29:29.607619"], ["id", "b6669018-bec7-11e4-8394-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Gjj4KO8.rvFepivlR2vWw.8zPiXsUIPlohjljyRboGBMssTAZb9ru"], ["created_at", "2015-02-27 21:29:29.615187"], ["updated_at", "2015-02-27 21:29:29.615187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.617208"], ["user_id", "b66a7bec-bec7-11e4-a505-705681abff85"], ["created_at", "2015-02-27 21:29:29.618749"], ["updated_at", "2015-02-27 21:29:29.618749"], ["token", "dyitxDJY9lDnVg47waoMwk3mxAwdpAgPWi6jHCMqDcU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.623325"], ["updated_at", "2015-02-27 21:29:29.623325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b66a7bec-bec7-11e4-a505-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b66bb908-bec7-11e4-9cba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b66a7bec-bec7-11e4-a505-705681abff85"], ["organization_id", "b66bb908-bec7-11e4-9cba-705681abff85"], ["created_at", "2015-02-27 21:29:29.627242"], ["updated_at", "2015-02-27 21:29:29.627242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-20" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:29.631775' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dyitxDJY9lDnVg47waoMwk3mxAwdpAgPWi6jHCMqDcU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:29.633145"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:29.634102"], ["id", "b66b2114-bec7-11e4-806d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b66a7bec-bec7-11e4-a505-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "b66a7bec-bec7-11e4-a505-705681abff85"], ["name", "org-20"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$KTtzbOcGpju.59pphVvazOkXgr4pXVNGDq9Tfh/5zkgp0v/upkykG"], ["created_at", "2015-02-27 21:29:29.645044"], ["updated_at", "2015-02-27 21:29:29.645044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:29.647158"], ["user_id", "b66f0cc0-bec7-11e4-9bcc-705681abff85"], ["created_at", "2015-02-27 21:29:29.648129"], ["updated_at", "2015-02-27 21:29:29.648129"], ["token", "EfJKVsB9bHBqwOjw0hcg20dqcl9kaD9Zppx58rZqYHo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:29.651711"], ["updated_at", "2015-02-27 21:29:29.651711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b66f0cc0-bec7-11e4-9bcc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6701160-bec7-11e4-b6cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b66f0cc0-bec7-11e4-9bcc-705681abff85"], ["organization_id", "b6701160-bec7-11e4-b6cd-705681abff85"], ["created_at", "2015-02-27 21:29:29.655253"], ["updated_at", "2015-02-27 21:29:29.655253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:29:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$vlXCRghLZVHePSTa.Js02ee5uHzlyDW6.n90JoHhnUf1OZEkaFlei"], ["created_at", "2015-02-27 21:29:38.771991"], ["updated_at", "2015-02-27 21:29:38.771991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:38.781254"], ["user_id", "bbdfdc02-bec7-11e4-abe5-705681abff85"], ["created_at", "2015-02-27 21:29:38.787227"], ["updated_at", "2015-02-27 21:29:38.787227"], ["token", "xTytPa6rRJFzSiTtmx59JOn5wDxZgyETTnJQEY4Vj3M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:38.795864"], ["updated_at", "2015-02-27 21:29:38.795864"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbdfdc02-bec7-11e4-abe5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbe36b92-bec7-11e4-8ed8-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbdfdc02-bec7-11e4-abe5-705681abff85"], ["organization_id", "bbe36b92-bec7-11e4-8ed8-705681abff85"], ["created_at", "2015-02-27 21:29:38.809155"], ["updated_at", "2015-02-27 21:29:38.809155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:29:38 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$8EYa/msS5z5JW2cCW0io/eDz77Kt/lZz9RpNIEuG3PsInVhVyrUDK"], ["created_at", "2015-02-27 21:29:38.842328"], ["updated_at", "2015-02-27 21:29:38.842328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:38.844197"], ["user_id", "bbea70f4-bec7-11e4-aed1-705681abff85"], ["created_at", "2015-02-27 21:29:38.845171"], ["updated_at", "2015-02-27 21:29:38.845171"], ["token", "a2H7rgI3qy1IQfW9RWJHjV3Mgp1d_d_bd_G91oHY5Ck"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:38.850287"], ["updated_at", "2015-02-27 21:29:38.850287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbea70f4-bec7-11e4-aed1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbebae2e-bec7-11e4-b3c5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbea70f4-bec7-11e4-aed1-705681abff85"], ["organization_id", "bbebae2e-bec7-11e4-b3c5-705681abff85"], ["created_at", "2015-02-27 21:29:38.854624"], ["updated_at", "2015-02-27 21:29:38.854624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:29:38 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (86.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:38.871333' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "a2H7rgI3qy1IQfW9RWJHjV3Mgp1d_d_bd_G91oHY5Ck"]]  (0.7ms) SAVEPOINT active_record_1 SQL (2.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:38.984450"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:38.987355"], ["id", "bbeaede0-bec7-11e4-b600-705681abff85"]]  (1.5ms) RELEASE SAVEPOINT active_record_1 User Load (2.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbea70f4-bec7-11e4-aed1-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 186ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$CQkpn0NKTUoSopiNcrIpQeGWcIV3IEUC1qwHfeMvsHtUUwecPtM8u"], ["created_at", "2015-02-27 21:29:39.061872"], ["updated_at", "2015-02-27 21:29:39.061872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.063511"], ["user_id", "bc0bf09e-bec7-11e4-b3bb-705681abff85"], ["created_at", "2015-02-27 21:29:39.064252"], ["updated_at", "2015-02-27 21:29:39.064252"], ["token", "fYubDgc6YG9d3JxN1U8FsWqx8FP4tKPcKRLM3WydPZ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.067647"], ["updated_at", "2015-02-27 21:29:39.067647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc0bf09e-bec7-11e4-b3bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc0cd356-bec7-11e4-82c6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc0bf09e-bec7-11e4-b3bb-705681abff85"], ["organization_id", "bc0cd356-bec7-11e4-82c6-705681abff85"], ["created_at", "2015-02-27 21:29:39.071603"], ["updated_at", "2015-02-27 21:29:39.071603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:39.079734' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fYubDgc6YG9d3JxN1U8FsWqx8FP4tKPcKRLM3WydPZ4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:39.081407"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:39.082530"], ["id", "bc0c5250-bec7-11e4-8e83-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc0bf09e-bec7-11e4-b3bb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.087868"], ["updated_at", "2015-02-27 21:29:39.087868"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc0ff69e-bec7-11e4-a723-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc0bf09e-bec7-11e4-b3bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc0ff69e-bec7-11e4-a723-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc0bf09e-bec7-11e4-b3bb-705681abff85"], ["admin", "t"], ["organization_id", "bc0ff69e-bec7-11e4-a723-705681abff85"], ["created_at", "2015-02-27 21:29:39.100083"], ["updated_at", "2015-02-27 21:29:39.100083"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 35ms (Views: 9.1ms | ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$c78aw/otXBsAUuHRggI0OugQrRzE6KdtU/fr1Cz13Q0nwvmjcBJDG"], ["created_at", "2015-02-27 21:29:39.123638"], ["updated_at", "2015-02-27 21:29:39.123638"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.127343"], ["user_id", "bc1588b6-bec7-11e4-ab24-705681abff85"], ["created_at", "2015-02-27 21:29:39.129040"], ["updated_at", "2015-02-27 21:29:39.129040"], ["token", "C5XM7v2t_McSEzsWtcUPnPwrFFsg3rE9pJIJ_eoYMNI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.134424"], ["updated_at", "2015-02-27 21:29:39.134424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc1588b6-bec7-11e4-ab24-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc1704c0-bec7-11e4-ac30-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc1588b6-bec7-11e4-ab24-705681abff85"], ["organization_id", "bc1704c0-bec7-11e4-ac30-705681abff85"], ["created_at", "2015-02-27 21:29:39.139147"], ["updated_at", "2015-02-27 21:29:39.139147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$CHWkdTpCMZ5IIP9RgDU83uQ75gdw4SvVYPrI0Qw8UWjSr.aoNUcFG"], ["created_at", "2015-02-27 21:29:39.155411"], ["updated_at", "2015-02-27 21:29:39.155411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.157129"], ["user_id", "bc1a380c-bec7-11e4-903c-705681abff85"], ["created_at", "2015-02-27 21:29:39.157975"], ["updated_at", "2015-02-27 21:29:39.157975"], ["token", "v4R0uNeHraXHke_T3YvPL6f-1VstidYqZ0krIKaZ1zk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.161362"], ["updated_at", "2015-02-27 21:29:39.161362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc1a380c-bec7-11e4-903c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc1b1f7e-bec7-11e4-901e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc1a380c-bec7-11e4-903c-705681abff85"], ["organization_id", "bc1b1f7e-bec7-11e4-901e-705681abff85"], ["created_at", "2015-02-27 21:29:39.164696"], ["updated_at", "2015-02-27 21:29:39.164696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-5" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-5", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:39.169803' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v4R0uNeHraXHke_T3YvPL6f-1VstidYqZ0krIKaZ1zk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:39.171211"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:39.172295"], ["id", "bc1aa1fc-bec7-11e4-bbe1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc1a380c-bec7-11e4-903c-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "bc1a380c-bec7-11e4-903c-705681abff85"], ["name", "org-5"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc1b1f7e-bec7-11e4-901e-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$86duVRc3JSRUApAhzs1t1.QTXg656Y/4UX9absI91ehRRIBiA2NWK"], ["created_at", "2015-02-27 21:29:39.193075"], ["updated_at", "2015-02-27 21:29:39.193075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.194712"], ["user_id", "bc1ff544-bec7-11e4-933a-705681abff85"], ["created_at", "2015-02-27 21:29:39.195488"], ["updated_at", "2015-02-27 21:29:39.195488"], ["token", "qyB7wehSST3btgSrG1FqhWMM7thFVD0hglMbl7LETsU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.198672"], ["updated_at", "2015-02-27 21:29:39.198672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc1ff544-bec7-11e4-933a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc20cb7c-bec7-11e4-aac8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc1ff544-bec7-11e4-933a-705681abff85"], ["organization_id", "bc20cb7c-bec7-11e4-aac8-705681abff85"], ["created_at", "2015-02-27 21:29:39.201816"], ["updated_at", "2015-02-27 21:29:39.201816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-6" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-6", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:39.206823' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qyB7wehSST3btgSrG1FqhWMM7thFVD0hglMbl7LETsU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:39.208769"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:39.209910"], ["id", "bc2057a0-bec7-11e4-b017-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc1ff544-bec7-11e4-933a-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "bc1ff544-bec7-11e4-933a-705681abff85"], ["name", "org-6"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc20cb7c-bec7-11e4-aac8-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:29:39.218250"], ["id", "bc20cb7c-bec7-11e4-aac8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$bZJoIUVs5vQK.jWJ9ihGAu3O2yLAf6SgT44c0aT16vyTwg9/7oChG"], ["created_at", "2015-02-27 21:29:39.226900"], ["updated_at", "2015-02-27 21:29:39.226900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.228567"], ["user_id", "bc251eca-bec7-11e4-b9bf-705681abff85"], ["created_at", "2015-02-27 21:29:39.229462"], ["updated_at", "2015-02-27 21:29:39.229462"], ["token", "4EE2QC-mGfFtpkxg7Yi8-FtKU-a9lWQRegOb40QHQeo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.232768"], ["updated_at", "2015-02-27 21:29:39.232768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc251eca-bec7-11e4-b9bf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc25ff3e-bec7-11e4-b179-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc251eca-bec7-11e4-b9bf-705681abff85"], ["organization_id", "bc25ff3e-bec7-11e4-b179-705681abff85"], ["created_at", "2015-02-27 21:29:39.236022"], ["updated_at", "2015-02-27 21:29:39.236022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-7" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:39.241386' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4EE2QC-mGfFtpkxg7Yi8-FtKU-a9lWQRegOb40QHQeo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:39.242805"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:39.243740"], ["id", "bc25895a-bec7-11e4-ad0e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc251eca-bec7-11e4-b9bf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "bc251eca-bec7-11e4-b9bf-705681abff85"], ["id", nil]] Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ZUhu./vitfIbWqrIWKSv0eWs2mTB3UkZPb/8khvtrrWa48.fPQd4m"], ["created_at", "2015-02-27 21:29:39.253963"], ["updated_at", "2015-02-27 21:29:39.253963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.255785"], ["user_id", "bc293ff0-bec7-11e4-8231-705681abff85"], ["created_at", "2015-02-27 21:29:39.257099"], ["updated_at", "2015-02-27 21:29:39.257099"], ["token", "ZySnrtZw9MsnLIwDhvEaSIi-BurzF2M1RQzCTVk5Hi8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.260522"], ["updated_at", "2015-02-27 21:29:39.260522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc293ff0-bec7-11e4-8231-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc2a3b6c-bec7-11e4-aa21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc293ff0-bec7-11e4-8231-705681abff85"], ["organization_id", "bc2a3b6c-bec7-11e4-aa21-705681abff85"], ["created_at", "2015-02-27 21:29:39.263598"], ["updated_at", "2015-02-27 21:29:39.263598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$83oWokeC4R9nqRMHqNTE2ucavhjuVnu/in8yipFeFfQRH4lO1igti"], ["created_at", "2015-02-27 21:29:39.275495"], ["updated_at", "2015-02-27 21:29:39.275495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.277116"], ["user_id", "bc2c8818-bec7-11e4-bfd8-705681abff85"], ["created_at", "2015-02-27 21:29:39.277876"], ["updated_at", "2015-02-27 21:29:39.277876"], ["token", "gIZ8eVksQnGrWcyLkOFG7Cbpi9CP2g_5NI1JrdKdmNU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.285952"], ["updated_at", "2015-02-27 21:29:39.285952"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc2c8818-bec7-11e4-bfd8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc2e2722-bec7-11e4-9a59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc2c8818-bec7-11e4-bfd8-705681abff85"], ["organization_id", "bc2e2722-bec7-11e4-9a59-705681abff85"], ["created_at", "2015-02-27 21:29:39.290646"], ["updated_at", "2015-02-27 21:29:39.290646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-9" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-9", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:39.296007' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gIZ8eVksQnGrWcyLkOFG7Cbpi9CP2g_5NI1JrdKdmNU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:39.297498"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:39.298525"], ["id", "bc2ce9b6-bec7-11e4-a0e8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc2c8818-bec7-11e4-bfd8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "bc2c8818-bec7-11e4-bfd8-705681abff85"], ["name", "org-9"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$a2LQr.L7xY8BJplOg2/hoODKJWkgypuVUHbbFi2OJtJ5s0PCUENSS"], ["created_at", "2015-02-27 21:29:39.310802"], ["updated_at", "2015-02-27 21:29:39.310802"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.315423"], ["user_id", "bc322494-bec7-11e4-be9e-705681abff85"], ["created_at", "2015-02-27 21:29:39.316946"], ["updated_at", "2015-02-27 21:29:39.316946"], ["token", "RpVYMEEq90teSZzDcE7FWCToAqqI802o1FJ2nDP5KGc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.356304"], ["updated_at", "2015-02-27 21:29:39.356304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc322494-bec7-11e4-be9e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc38ddc0-bec7-11e4-ad75-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc322494-bec7-11e4-be9e-705681abff85"], ["organization_id", "bc38ddc0-bec7-11e4-ad75-705681abff85"], ["created_at", "2015-02-27 21:29:39.359592"], ["updated_at", "2015-02-27 21:29:39.359592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$hdftJsABXG45I0vCd4asMeQTFCyciFwtbwnmXCau3Q80j2ijOsfZe"], ["created_at", "2015-02-27 21:29:39.373062"], ["updated_at", "2015-02-27 21:29:39.373062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.374653"], ["user_id", "bc3b6b80-bec7-11e4-82a7-705681abff85"], ["created_at", "2015-02-27 21:29:39.375440"], ["updated_at", "2015-02-27 21:29:39.375440"], ["token", "Yn5qAje-LngtYPCIpO0O0e7q7C5Ndlgg88RL98UG_hY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.378522"], ["updated_at", "2015-02-27 21:29:39.378522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc3b6b80-bec7-11e4-82a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc3c3c7c-bec7-11e4-b82e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc3b6b80-bec7-11e4-82a7-705681abff85"], ["organization_id", "bc3c3c7c-bec7-11e4-b82e-705681abff85"], ["created_at", "2015-02-27 21:29:39.381575"], ["updated_at", "2015-02-27 21:29:39.381575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bc3c3c7c-bec7-11e4-b82e-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"bc3c3c7c-bec7-11e4-b82e-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:39.386173' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Yn5qAje-LngtYPCIpO0O0e7q7C5Ndlgg88RL98UG_hY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:39.387728"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:39.388933"], ["id", "bc3bcd5a-bec7-11e4-82fc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc3b6b80-bec7-11e4-82a7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "bc3b6b80-bec7-11e4-82a7-705681abff85"], ["id", "bc3c3c7c-bec7-11e4-b82e-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$vkiawlL2cbxF5YhVZn5wZeC7OXmNW9HfvRg2NgSvxzu.bcP7h9TWi"], ["created_at", "2015-02-27 21:29:39.401464"], ["updated_at", "2015-02-27 21:29:39.401464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.403380"], ["user_id", "bc3fc284-bec7-11e4-98a1-705681abff85"], ["created_at", "2015-02-27 21:29:39.404310"], ["updated_at", "2015-02-27 21:29:39.404310"], ["token", "Kl27o2coljEjU_iqY19G1SuMOhF84vMjXMdkcQW_BXE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.408438"], ["updated_at", "2015-02-27 21:29:39.408438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc3fc284-bec7-11e4-98a1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc40d1c4-bec7-11e4-8597-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc3fc284-bec7-11e4-98a1-705681abff85"], ["organization_id", "bc40d1c4-bec7-11e4-8597-705681abff85"], ["created_at", "2015-02-27 21:29:39.411726"], ["updated_at", "2015-02-27 21:29:39.411726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$W2S9zpBneJf4qwELd3v14.rY4J4EHWnC1uuswOG5X95sGvrL5f2uO"], ["created_at", "2015-02-27 21:29:39.424139"], ["updated_at", "2015-02-27 21:29:39.424139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.426003"], ["user_id", "bc433d1a-bec7-11e4-9acc-705681abff85"], ["created_at", "2015-02-27 21:29:39.426801"], ["updated_at", "2015-02-27 21:29:39.426801"], ["token", "_vmRET49Fd67qomHXmZdrz8GcRkV7pvJbqFRvXRSddM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.429993"], ["updated_at", "2015-02-27 21:29:39.429993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc433d1a-bec7-11e4-9acc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc441794-bec7-11e4-8e1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc433d1a-bec7-11e4-9acc-705681abff85"], ["organization_id", "bc441794-bec7-11e4-8e1a-705681abff85"], ["created_at", "2015-02-27 21:29:39.433433"], ["updated_at", "2015-02-27 21:29:39.433433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/bc441794-bec7-11e4-8e1a-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"bc441794-bec7-11e4-8e1a-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:39.438438' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_vmRET49Fd67qomHXmZdrz8GcRkV7pvJbqFRvXRSddM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:39.439957"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:39.440947"], ["id", "bc43a336-bec7-11e4-b265-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc433d1a-bec7-11e4-9acc-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "bc433d1a-bec7-11e4-9acc-705681abff85"], ["id", "bc441794-bec7-11e4-8e1a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bc441794-bec7-11e4-8e1a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$b8y2JPqzG6Az7EaHCRDHbORnpXafCe8A1FODyzpXQsUAdSi5Owqby"], ["created_at", "2015-02-27 21:29:39.451232"], ["updated_at", "2015-02-27 21:29:39.451232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.453031"], ["user_id", "bc475850-bec7-11e4-bba1-705681abff85"], ["created_at", "2015-02-27 21:29:39.454066"], ["updated_at", "2015-02-27 21:29:39.454066"], ["token", "I7KZNhH7rpdwuy8IRKUEoQyPxm_-X1Yo3sjszpV3R1M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.458181"], ["updated_at", "2015-02-27 21:29:39.458181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc475850-bec7-11e4-bba1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc486dda-bec7-11e4-ac43-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc475850-bec7-11e4-bba1-705681abff85"], ["organization_id", "bc486dda-bec7-11e4-ac43-705681abff85"], ["created_at", "2015-02-27 21:29:39.461769"], ["updated_at", "2015-02-27 21:29:39.461769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$tGfOJEE7cLZxN5scymBn0ORe4vk0.6UOPd85YE4BwhqK15sboKNMG"], ["created_at", "2015-02-27 21:29:39.474671"], ["updated_at", "2015-02-27 21:29:39.474671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.476346"], ["user_id", "bc4aee34-bec7-11e4-b024-705681abff85"], ["created_at", "2015-02-27 21:29:39.477107"], ["updated_at", "2015-02-27 21:29:39.477107"], ["token", "aMc9mJGz_IaiyEfMBQpLRoS5THgYOz5VU1Gxf9t3y0Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.480191"], ["updated_at", "2015-02-27 21:29:39.480191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc4aee34-bec7-11e4-b024-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc4bbfbc-bec7-11e4-ac9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc4aee34-bec7-11e4-b024-705681abff85"], ["organization_id", "bc4bbfbc-bec7-11e4-ac9a-705681abff85"], ["created_at", "2015-02-27 21:29:39.483239"], ["updated_at", "2015-02-27 21:29:39.483239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$4iAryB5Ca3cWfTQbYO7qmuq9xyir2NWHyR0dnrttOQ1fI1qWGn6Za"], ["created_at", "2015-02-27 21:29:39.495072"], ["updated_at", "2015-02-27 21:29:39.495072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.496707"], ["user_id", "bc4e0966-bec7-11e4-b00c-705681abff85"], ["created_at", "2015-02-27 21:29:39.497448"], ["updated_at", "2015-02-27 21:29:39.497448"], ["token", "KUvhheNZcJaK5HRUtS-WAIYjdZ2_PmOhC5sieAjFcMg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.500521"], ["updated_at", "2015-02-27 21:29:39.500521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc4e0966-bec7-11e4-b00c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc4eda94-bec7-11e4-b491-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc4e0966-bec7-11e4-b00c-705681abff85"], ["organization_id", "bc4eda94-bec7-11e4-b491-705681abff85"], ["created_at", "2015-02-27 21:29:39.503739"], ["updated_at", "2015-02-27 21:29:39.503739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bc4eda94-bec7-11e4-b491-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"bc4eda94-bec7-11e4-b491-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:39.509420' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KUvhheNZcJaK5HRUtS-WAIYjdZ2_PmOhC5sieAjFcMg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:39.510975"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:39.511985"], ["id", "bc4e69ba-bec7-11e4-998a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc4e0966-bec7-11e4-b00c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "bc4e0966-bec7-11e4-b00c-705681abff85"], ["id", "bc4eda94-bec7-11e4-b491-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc4eda94-bec7-11e4-b491-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$rapsOHbgv9JQ0Djdomr1ou2hLu9sZe7lK83aV.2d0ffTvm3XXdqxm"], ["created_at", "2015-02-27 21:29:39.524586"], ["updated_at", "2015-02-27 21:29:39.524586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.526334"], ["user_id", "bc528bb2-bec7-11e4-a02e-705681abff85"], ["created_at", "2015-02-27 21:29:39.527137"], ["updated_at", "2015-02-27 21:29:39.527137"], ["token", "upAKa4UzOI15YJEj4IRONYvWAcncEj_QbhEpZpsNTvg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.530311"], ["updated_at", "2015-02-27 21:29:39.530311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc528bb2-bec7-11e4-a02e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc5366e0-bec7-11e4-97c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc528bb2-bec7-11e4-a02e-705681abff85"], ["organization_id", "bc5366e0-bec7-11e4-97c8-705681abff85"], ["created_at", "2015-02-27 21:29:39.533712"], ["updated_at", "2015-02-27 21:29:39.533712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bc5366e0-bec7-11e4-97c8-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"bc5366e0-bec7-11e4-97c8-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:39.538797' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "upAKa4UzOI15YJEj4IRONYvWAcncEj_QbhEpZpsNTvg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:39.540181"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:39.542082"], ["id", "bc52f3d6-bec7-11e4-9afb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc528bb2-bec7-11e4-a02e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "bc528bb2-bec7-11e4-a02e-705681abff85"], ["id", "bc5366e0-bec7-11e4-97c8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc5366e0-bec7-11e4-97c8-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:29:39.548450"], ["id", "bc5366e0-bec7-11e4-97c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$ekZOPBSI88i9STSUnr.5PeJR49rFy8bsLsq6pL2IqK7RyGzn2peEW"], ["created_at", "2015-02-27 21:29:39.556742"], ["updated_at", "2015-02-27 21:29:39.556742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.558671"], ["user_id", "bc5776c2-bec7-11e4-a202-705681abff85"], ["created_at", "2015-02-27 21:29:39.559694"], ["updated_at", "2015-02-27 21:29:39.559694"], ["token", "BU81kEORH9xoe4Mv5cweep2AtAv5EL-EuxzpyyhG8MU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.563386"], ["updated_at", "2015-02-27 21:29:39.563386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc5776c2-bec7-11e4-a202-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc5873c4-bec7-11e4-b9f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc5776c2-bec7-11e4-a202-705681abff85"], ["organization_id", "bc5873c4-bec7-11e4-b9f3-705681abff85"], ["created_at", "2015-02-27 21:29:39.566635"], ["updated_at", "2015-02-27 21:29:39.566635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$mVlD/w.lv38YgsaygPAGAO1ywYNu6byiMYS1ek02cL7/4GkJ1OFNm"], ["created_at", "2015-02-27 21:29:39.570958"], ["updated_at", "2015-02-27 21:29:39.570958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.574120"], ["updated_at", "2015-02-27 21:29:39.574120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc599e0c-bec7-11e4-a65c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc5a160c-bec7-11e4-8550-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc599e0c-bec7-11e4-a65c-705681abff85"], ["organization_id", "bc5a160c-bec7-11e4-8550-705681abff85"], ["created_at", "2015-02-27 21:29:39.577192"], ["updated_at", "2015-02-27 21:29:39.577192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:39.581743' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BU81kEORH9xoe4Mv5cweep2AtAv5EL-EuxzpyyhG8MU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:39.583154"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:39.584161"], ["id", "bc57f6ec-bec7-11e4-a669-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc5776c2-bec7-11e4-a202-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "bc5776c2-bec7-11e4-a202-705681abff85"]] Completed 200 OK in 8ms (Views: 2.1ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$2rOBrR/POeEo2ZhAIEmm5egj3lYIDzVXSmUjIW68nBhOD7vS6Bffy"], ["created_at", "2015-02-27 21:29:39.595321"], ["updated_at", "2015-02-27 21:29:39.595321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:39.596960"], ["user_id", "bc5d54f2-bec7-11e4-ab7d-705681abff85"], ["created_at", "2015-02-27 21:29:39.597712"], ["updated_at", "2015-02-27 21:29:39.597712"], ["token", "QAJJpLMeFd-EV4CNkM-_oIQvRQEdOVq9PFK1iUJLY-I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.600851"], ["updated_at", "2015-02-27 21:29:39.600851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc5d54f2-bec7-11e4-ab7d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc5e290e-bec7-11e4-829c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc5d54f2-bec7-11e4-ab7d-705681abff85"], ["organization_id", "bc5e290e-bec7-11e4-829c-705681abff85"], ["created_at", "2015-02-27 21:29:39.604099"], ["updated_at", "2015-02-27 21:29:39.604099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$EuXsbxW/SEEQSBFVmnKPKeYb5.1XntZOaDU1alA7lZ5Vtk7r5IhA2"], ["created_at", "2015-02-27 21:29:39.608778"], ["updated_at", "2015-02-27 21:29:39.608778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:39.611938"], ["updated_at", "2015-02-27 21:29:39.611938"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc5f62c4-bec7-11e4-9d7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc5fdcb8-bec7-11e4-bc22-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc5f62c4-bec7-11e4-9d7c-705681abff85"], ["organization_id", "bc5fdcb8-bec7-11e4-bc22-705681abff85"], ["created_at", "2015-02-27 21:29:39.616105"], ["updated_at", "2015-02-27 21:29:39.616105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:29:39 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$LP2PXygiHdR4aoFgOwgvE.N.Q3SBsD6ifk14K9FYM3UWgmoQnFl8S"], ["created_at", "2015-02-27 21:29:56.240583"], ["updated_at", "2015-02-27 21:29:56.240583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.249745"], ["user_id", "c6495ba0-bec7-11e4-83c2-705681abff85"], ["created_at", "2015-02-27 21:29:56.256900"], ["updated_at", "2015-02-27 21:29:56.256900"], ["token", "4QYWQeFKjFr75wCIKN8yc3lKFYSqCap3BZ9U3Bojlwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.265853"], ["updated_at", "2015-02-27 21:29:56.265853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6495ba0-bec7-11e4-83c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c64d1718-bec7-11e4-987b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6495ba0-bec7-11e4-83c2-705681abff85"], ["organization_id", "c64d1718-bec7-11e4-987b-705681abff85"], ["created_at", "2015-02-27 21:29:56.276434"], ["updated_at", "2015-02-27 21:29:56.276434"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$iAUh.nb/7KVLWG7z3pLrGes8PTn76aVviNEOTOatjgpogr39NOIRq"], ["created_at", "2015-02-27 21:29:56.309306"], ["updated_at", "2015-02-27 21:29:56.309306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.311119"], ["user_id", "c653b366-bec7-11e4-b406-705681abff85"], ["created_at", "2015-02-27 21:29:56.311895"], ["updated_at", "2015-02-27 21:29:56.311895"], ["token", "SU9P0-Q2xhg7w_hzMQqq3Rkh3qqTsRohyUbuiEHIxvs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.315727"], ["updated_at", "2015-02-27 21:29:56.315727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c653b366-bec7-11e4-b406-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c654aa28-bec7-11e4-9019-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c653b366-bec7-11e4-b406-705681abff85"], ["organization_id", "c654aa28-bec7-11e4-9019-705681abff85"], ["created_at", "2015-02-27 21:29:56.319230"], ["updated_at", "2015-02-27 21:29:56.319230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:56.334095' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SU9P0-Q2xhg7w_hzMQqq3Rkh3qqTsRohyUbuiEHIxvs"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:56.343254"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:56.344943"], ["id", "c65419fa-bec7-11e4-a1b5-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c653b366-bec7-11e4-b406-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.364432"], ["updated_at", "2015-02-27 21:29:56.364432"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c65ca82c-bec7-11e4-b2ae-705681abff85"]] Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c653b366-bec7-11e4-b406-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c65ca82c-bec7-11e4-b2ae-705681abff85') LIMIT 1 SQL (3.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c653b366-bec7-11e4-b406-705681abff85"], ["admin", "t"], ["organization_id", "c65ca82c-bec7-11e4-b2ae-705681abff85"], ["created_at", "2015-02-27 21:29:56.443120"], ["updated_at", "2015-02-27 21:29:56.443120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 119ms (Views: 1.7ms | ActiveRecord: 7.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$XgFKAG3gsp8ZdGVWsWIc1uYBkbiPKeL.vbuS/uhe9REpNLr/oKam6"], ["created_at", "2015-02-27 21:29:56.462437"], ["updated_at", "2015-02-27 21:29:56.462437"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.473850"], ["user_id", "c66c3a44-bec7-11e4-a7be-705681abff85"], ["created_at", "2015-02-27 21:29:56.475168"], ["updated_at", "2015-02-27 21:29:56.475168"], ["token", "yxPURfewNv_eKXnJ3bS-4W-JapFSlqiefr7KNcS1QP8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.478920"], ["updated_at", "2015-02-27 21:29:56.478920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c66c3a44-bec7-11e4-a7be-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c66d94de-bec7-11e4-ade4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c66c3a44-bec7-11e4-a7be-705681abff85"], ["organization_id", "c66d94de-bec7-11e4-ade4-705681abff85"], ["created_at", "2015-02-27 21:29:56.482340"], ["updated_at", "2015-02-27 21:29:56.482340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:56.490092' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yxPURfewNv_eKXnJ3bS-4W-JapFSlqiefr7KNcS1QP8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:56.492267"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:56.493925"], ["id", "c66d0a46-bec7-11e4-b50e-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c66c3a44-bec7-11e4-a7be-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$MzdwWmlFqnIeW1aFrpDyuubsX3A20HtneQX5BwKzlmzlH5m3g.Zsq"], ["created_at", "2015-02-27 21:29:56.523676"], ["updated_at", "2015-02-27 21:29:56.523676"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.543084"], ["user_id", "c67494f0-bec7-11e4-9e80-705681abff85"], ["created_at", "2015-02-27 21:29:56.545787"], ["updated_at", "2015-02-27 21:29:56.545787"], ["token", "nEMVvjpRGex7q_-oydB9SYalHCVbbsmNDkSFAHSMDMI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.549799"], ["updated_at", "2015-02-27 21:29:56.549799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c67494f0-bec7-11e4-9e80-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c678603a-bec7-11e4-b6ff-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c67494f0-bec7-11e4-9e80-705681abff85"], ["organization_id", "c678603a-bec7-11e4-b6ff-705681abff85"], ["created_at", "2015-02-27 21:29:56.553132"], ["updated_at", "2015-02-27 21:29:56.553132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Ra4G43cJqSpcxcN7orRmpuSMyjwJoEX2gi1DiMd0hi18EOA1J2aAm"], ["created_at", "2015-02-27 21:29:56.575121"], ["updated_at", "2015-02-27 21:29:56.575121"]]  (1.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.594872"], ["user_id", "c67d45a0-bec7-11e4-8ffb-705681abff85"], ["created_at", "2015-02-27 21:29:56.596111"], ["updated_at", "2015-02-27 21:29:56.596111"], ["token", "kVxZaNQYvka6aIqEb2k89ULqWQJLsupWuLqJrM8A2sE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.608736"], ["updated_at", "2015-02-27 21:29:56.608736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c67d45a0-bec7-11e4-8ffb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6816a2c-bec7-11e4-9ffd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c67d45a0-bec7-11e4-8ffb-705681abff85"], ["organization_id", "c6816a2c-bec7-11e4-9ffd-705681abff85"], ["created_at", "2015-02-27 21:29:56.614218"], ["updated_at", "2015-02-27 21:29:56.614218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-5" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-5", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:56.619175' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kVxZaNQYvka6aIqEb2k89ULqWQJLsupWuLqJrM8A2sE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:56.621001"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:56.622023"], ["id", "c6803ee0-bec7-11e4-953e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c67d45a0-bec7-11e4-8ffb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "c67d45a0-bec7-11e4-8ffb-705681abff85"], ["name", "org-5"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c6816a2c-bec7-11e4-9ffd-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:29:56.636630"], ["id", "c6816a2c-bec7-11e4-9ffd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$QpvsOch9Pp2OliWXNRrL7OgVAG1G6IDDmNspKhuyriFJUDIte9U0m"], ["created_at", "2015-02-27 21:29:56.644661"], ["updated_at", "2015-02-27 21:29:56.644661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.646329"], ["user_id", "c686db1a-bec7-11e4-b0bd-705681abff85"], ["created_at", "2015-02-27 21:29:56.647107"], ["updated_at", "2015-02-27 21:29:56.647107"], ["token", "Ve6aXWhfpa6IlFkZg01X-X742oOpsuLc_v-YcP6Hzzc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.650567"], ["updated_at", "2015-02-27 21:29:56.650567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c686db1a-bec7-11e4-b0bd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c687c098-bec7-11e4-87aa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c686db1a-bec7-11e4-b0bd-705681abff85"], ["organization_id", "c687c098-bec7-11e4-87aa-705681abff85"], ["created_at", "2015-02-27 21:29:56.653730"], ["updated_at", "2015-02-27 21:29:56.653730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-6" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-6", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:56.658435' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ve6aXWhfpa6IlFkZg01X-X742oOpsuLc_v-YcP6Hzzc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:56.659912"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:56.660871"], ["id", "c68741fe-bec7-11e4-9a02-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c686db1a-bec7-11e4-b0bd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "c686db1a-bec7-11e4-b0bd-705681abff85"], ["name", "org-6"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c687c098-bec7-11e4-87aa-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$5XzVisE5Yidmsr.yhVkYW.miRMr16uTVrImjeaYpa9bc1SE.txifW"], ["created_at", "2015-02-27 21:29:56.673765"], ["updated_at", "2015-02-27 21:29:56.673765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.675744"], ["user_id", "c68b5208-bec7-11e4-b0a2-705681abff85"], ["created_at", "2015-02-27 21:29:56.676709"], ["updated_at", "2015-02-27 21:29:56.676709"], ["token", "RFh7ymiwEuu2EB2ziA2C-nfkgf7-hJwKa5RSuFHr37E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.680161"], ["updated_at", "2015-02-27 21:29:56.680161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c68b5208-bec7-11e4-b0a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c68c430c-bec7-11e4-906e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c68b5208-bec7-11e4-b0a2-705681abff85"], ["organization_id", "c68c430c-bec7-11e4-906e-705681abff85"], ["created_at", "2015-02-27 21:29:56.683325"], ["updated_at", "2015-02-27 21:29:56.683325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ikw5bizG/JsddJQoOO6ZyemGfXZE3g7g3p4joihERRy0TolQhjHXG"], ["created_at", "2015-02-27 21:29:56.695502"], ["updated_at", "2015-02-27 21:29:56.695502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.697088"], ["user_id", "c68e9cec-bec7-11e4-b3f4-705681abff85"], ["created_at", "2015-02-27 21:29:56.697871"], ["updated_at", "2015-02-27 21:29:56.697871"], ["token", "vdRFL2KOR7CqHzVHxjY-cPqyGbS02SuUO1gQ_UgMfYg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.700987"], ["updated_at", "2015-02-27 21:29:56.700987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c68e9cec-bec7-11e4-b3f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c68f6f64-bec7-11e4-9f81-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c68e9cec-bec7-11e4-b3f4-705681abff85"], ["organization_id", "c68f6f64-bec7-11e4-9f81-705681abff85"], ["created_at", "2015-02-27 21:29:56.704273"], ["updated_at", "2015-02-27 21:29:56.704273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/c68f6f64-bec7-11e4-9f81-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"c68f6f64-bec7-11e4-9f81-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:56.708847' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vdRFL2KOR7CqHzVHxjY-cPqyGbS02SuUO1gQ_UgMfYg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:56.710302"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:56.711249"], ["id", "c68efd04-bec7-11e4-9520-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c68e9cec-bec7-11e4-b3f4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "c68e9cec-bec7-11e4-b3f4-705681abff85"], ["id", "c68f6f64-bec7-11e4-9f81-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "c68f6f64-bec7-11e4-9f81-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (11.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$.DYtDrD2SDG.0L8bdrgWw.9PBal//yjshgmBg5dMbJWOw.toBBt4S"], ["created_at", "2015-02-27 21:29:56.723466"], ["updated_at", "2015-02-27 21:29:56.723466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.736249"], ["user_id", "c692e2ac-bec7-11e4-a107-705681abff85"], ["created_at", "2015-02-27 21:29:56.737032"], ["updated_at", "2015-02-27 21:29:56.737032"], ["token", "0wnRzx-4nOgHNl_BXnxbsE2XIqFJn1vO4dvWh8bW8JQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.740676"], ["updated_at", "2015-02-27 21:29:56.740676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c692e2ac-bec7-11e4-a107-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6958430-bec7-11e4-bda0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c692e2ac-bec7-11e4-a107-705681abff85"], ["organization_id", "c6958430-bec7-11e4-bda0-705681abff85"], ["created_at", "2015-02-27 21:29:56.746441"], ["updated_at", "2015-02-27 21:29:56.746441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$joqGEuUH/l3RPTg5alBl4udwq5gru9Q36hwavq6pG/9Vbt3qqzvgW"], ["created_at", "2015-02-27 21:29:56.760848"], ["updated_at", "2015-02-27 21:29:56.760848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.762561"], ["user_id", "c698971a-bec7-11e4-8137-705681abff85"], ["created_at", "2015-02-27 21:29:56.763938"], ["updated_at", "2015-02-27 21:29:56.763938"], ["token", "rNUTEY6mBbA1jCl4X-p43uisUJjxXpNK7n9K15KOW-Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.801098"], ["updated_at", "2015-02-27 21:29:56.801098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c698971a-bec7-11e4-8137-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c69eb816-bec7-11e4-9595-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c698971a-bec7-11e4-8137-705681abff85"], ["organization_id", "c69eb816-bec7-11e4-9595-705681abff85"], ["created_at", "2015-02-27 21:29:56.804363"], ["updated_at", "2015-02-27 21:29:56.804363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c69eb816-bec7-11e4-9595-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"c69eb816-bec7-11e4-9595-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:56.808970' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rNUTEY6mBbA1jCl4X-p43uisUJjxXpNK7n9K15KOW-Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:56.810401"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:56.811356"], ["id", "c69e34b8-bec7-11e4-9907-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c698971a-bec7-11e4-8137-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "c698971a-bec7-11e4-8137-705681abff85"], ["id", "c69eb816-bec7-11e4-9595-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c69eb816-bec7-11e4-9595-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:29:56.817021"], ["id", "c69eb816-bec7-11e4-9595-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$EcrkWo5BQVprEKc4CEU3b.yGf47gLigT9dvT7ycNy7.06KaRlbGAS"], ["created_at", "2015-02-27 21:29:56.824584"], ["updated_at", "2015-02-27 21:29:56.824584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.826257"], ["user_id", "c6a25160-bec7-11e4-837c-705681abff85"], ["created_at", "2015-02-27 21:29:56.827045"], ["updated_at", "2015-02-27 21:29:56.827045"], ["token", "yoViqF1XyOqkyoWF7rDjN9nreUQjh9IW8e0x_aS1GwY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.830163"], ["updated_at", "2015-02-27 21:29:56.830163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6a25160-bec7-11e4-837c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6a325b8-bec7-11e4-b9dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6a25160-bec7-11e4-837c-705681abff85"], ["organization_id", "c6a325b8-bec7-11e4-b9dd-705681abff85"], ["created_at", "2015-02-27 21:29:56.833318"], ["updated_at", "2015-02-27 21:29:56.833318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c6a325b8-bec7-11e4-b9dd-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"c6a325b8-bec7-11e4-b9dd-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:56.837948' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yoViqF1XyOqkyoWF7rDjN9nreUQjh9IW8e0x_aS1GwY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:56.839359"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:56.840303"], ["id", "c6a2b330-bec7-11e4-99d5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6a25160-bec7-11e4-837c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "c6a25160-bec7-11e4-837c-705681abff85"], ["id", "c6a325b8-bec7-11e4-b9dd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c6a325b8-bec7-11e4-b9dd-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$jd/U3yumtUDNgTg4o8dc4ehAC8ttA1LXfftd1W36XkSheXwIu4C3y"], ["created_at", "2015-02-27 21:29:56.852348"], ["updated_at", "2015-02-27 21:29:56.852348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.853982"], ["user_id", "c6a68d16-bec7-11e4-a70b-705681abff85"], ["created_at", "2015-02-27 21:29:56.854859"], ["updated_at", "2015-02-27 21:29:56.854859"], ["token", "7Mh3ZMkkySkXNt5muHVbNOYuQVFGfaQwI2qZXR_YzZg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.858735"], ["updated_at", "2015-02-27 21:29:56.858735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6a68d16-bec7-11e4-a70b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6a78586-bec7-11e4-8776-705681abff85') LIMIT 1 SQL (3.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6a68d16-bec7-11e4-a70b-705681abff85"], ["organization_id", "c6a78586-bec7-11e4-8776-705681abff85"], ["created_at", "2015-02-27 21:29:56.862079"], ["updated_at", "2015-02-27 21:29:56.862079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$vdjPhENQE9KDmJyw.dI2L.HDVDgmA19xzexlY/TQdPHVNmPnmzwMK"], ["created_at", "2015-02-27 21:29:56.869813"], ["updated_at", "2015-02-27 21:29:56.869813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.872892"], ["updated_at", "2015-02-27 21:29:56.872892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6a93584-bec7-11e4-9eba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6a9ac62-bec7-11e4-99a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6a93584-bec7-11e4-9eba-705681abff85"], ["organization_id", "c6a9ac62-bec7-11e4-99a4-705681abff85"], ["created_at", "2015-02-27 21:29:56.876300"], ["updated_at", "2015-02-27 21:29:56.876300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Sb9tsdXh9cLgtVAoXGB8WOtDMOZOVDVnuP1HZbfFxIqaUW88GCfU."], ["created_at", "2015-02-27 21:29:56.890796"], ["updated_at", "2015-02-27 21:29:56.890796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.892572"], ["user_id", "c6ac6b46-bec7-11e4-8969-705681abff85"], ["created_at", "2015-02-27 21:29:56.893430"], ["updated_at", "2015-02-27 21:29:56.893430"], ["token", "W8_4vcEyL6Rr2xbhGh4AniNAD0SUH2ObZg-jDxnSHSM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.896790"], ["updated_at", "2015-02-27 21:29:56.896790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6ac6b46-bec7-11e4-8969-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6ad50ec-bec7-11e4-ab43-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6ac6b46-bec7-11e4-8969-705681abff85"], ["organization_id", "c6ad50ec-bec7-11e4-ab43-705681abff85"], ["created_at", "2015-02-27 21:29:56.899913"], ["updated_at", "2015-02-27 21:29:56.899913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$bkJxQ0GJoU39oMQviOIDau39Mod1qXayoewU/tXXRsedBRUGQI4di"], ["created_at", "2015-02-27 21:29:56.904202"], ["updated_at", "2015-02-27 21:29:56.904202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.907293"], ["updated_at", "2015-02-27 21:29:56.907293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6ae7418-bec7-11e4-a427-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6aeed62-bec7-11e4-837a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6ae7418-bec7-11e4-a427-705681abff85"], ["organization_id", "c6aeed62-bec7-11e4-837a-705681abff85"], ["created_at", "2015-02-27 21:29:56.910620"], ["updated_at", "2015-02-27 21:29:56.910620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:56.915289' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "W8_4vcEyL6Rr2xbhGh4AniNAD0SUH2ObZg-jDxnSHSM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:56.916737"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:56.917732"], ["id", "c6acd9dc-bec7-11e4-8b2a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6ac6b46-bec7-11e4-8969-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c6ac6b46-bec7-11e4-8969-705681abff85"]] Completed 200 OK in 8ms (Views: 2.9ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Kw6ZeSOJF8o0IOr0Vj2hbeJe2VxuTLYlkXAgsdLtKNMk75NJadXPS"], ["created_at", "2015-02-27 21:29:56.929809"], ["updated_at", "2015-02-27 21:29:56.929809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.931358"], ["user_id", "c6b25c9a-bec7-11e4-93ca-705681abff85"], ["created_at", "2015-02-27 21:29:56.932121"], ["updated_at", "2015-02-27 21:29:56.932121"], ["token", "3i3i0WZbt4_ILjTwklBf0EwSV3Q1vR7RGuB_CpEIGzg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.935336"], ["updated_at", "2015-02-27 21:29:56.935336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6b25c9a-bec7-11e4-93ca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6b332c8-bec7-11e4-b0f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6b25c9a-bec7-11e4-93ca-705681abff85"], ["organization_id", "c6b332c8-bec7-11e4-b0f2-705681abff85"], ["created_at", "2015-02-27 21:29:56.938531"], ["updated_at", "2015-02-27 21:29:56.938531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 13ms (Views: 12.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$1iWlC6pTgRs0croW1ly9JOZr9xXw9/0hv3uuj/ptD/wsW9n1Q5m1e"], ["created_at", "2015-02-27 21:29:56.965364"], ["updated_at", "2015-02-27 21:29:56.965364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.967747"], ["user_id", "c6b7e32c-bec7-11e4-b220-705681abff85"], ["created_at", "2015-02-27 21:29:56.968576"], ["updated_at", "2015-02-27 21:29:56.968576"], ["token", "bDUbDHjt3Ws2-6bS9oQbjfMy950y1sPShMybqXo2XOU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:56.972510"], ["updated_at", "2015-02-27 21:29:56.972510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6b7e32c-bec7-11e4-b220-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6b8e02e-bec7-11e4-bb6e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6b7e32c-bec7-11e4-b220-705681abff85"], ["organization_id", "c6b8e02e-bec7-11e4-bb6e-705681abff85"], ["created_at", "2015-02-27 21:29:56.975795"], ["updated_at", "2015-02-27 21:29:56.975795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-17" for 127.0.0.1 at 2015-02-27 13:29:56 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-17", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:56.980398' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bDUbDHjt3Ws2-6bS9oQbjfMy950y1sPShMybqXo2XOU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:56.982249"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:56.984191"], ["id", "c6b84d94-bec7-11e4-a026-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6b7e32c-bec7-11e4-b220-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "c6b7e32c-bec7-11e4-b220-705681abff85"], ["name", "org-17"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "c6b8e02e-bec7-11e4-bb6e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$QMYcZqh.E/PAI2O0dpQJWeOGlIc3ky3BZ38hRk.P8YRTG9j7EjRCm"], ["created_at", "2015-02-27 21:29:56.995292"], ["updated_at", "2015-02-27 21:29:56.995292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:56.996850"], ["user_id", "c6bc5ace-bec7-11e4-963f-705681abff85"], ["created_at", "2015-02-27 21:29:56.997845"], ["updated_at", "2015-02-27 21:29:56.997845"], ["token", "KrDF2Q_GNYNzQrwtXs18WPiLY7dS9F7_dmLll55ghus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:57.001387"], ["updated_at", "2015-02-27 21:29:57.001387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6bc5ace-bec7-11e4-963f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6bd468c-bec7-11e4-8f9c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6bc5ace-bec7-11e4-963f-705681abff85"], ["organization_id", "c6bd468c-bec7-11e4-8f9c-705681abff85"], ["created_at", "2015-02-27 21:29:57.004528"], ["updated_at", "2015-02-27 21:29:57.004528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:29:57 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$oRz4XloaYvUWaY4vlDOpJOmbDbij.qdzwMWk9VxvFC1eceqBIJfjG"], ["created_at", "2015-02-27 21:29:57.017506"], ["updated_at", "2015-02-27 21:29:57.017506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:57.019129"], ["user_id", "c6bfbf70-bec7-11e4-8ca2-705681abff85"], ["created_at", "2015-02-27 21:29:57.019896"], ["updated_at", "2015-02-27 21:29:57.019896"], ["token", "4kDlrOq76ZaTxrQs_Y4dubj84TRHUNT937yyw7NnSwo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:57.023134"], ["updated_at", "2015-02-27 21:29:57.023134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6bfbf70-bec7-11e4-8ca2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6c097ba-bec7-11e4-b4aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6bfbf70-bec7-11e4-8ca2-705681abff85"], ["organization_id", "c6c097ba-bec7-11e4-b4aa-705681abff85"], ["created_at", "2015-02-27 21:29:57.027283"], ["updated_at", "2015-02-27 21:29:57.027283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-19" for 127.0.0.1 at 2015-02-27 13:29:57 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-19", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:57.031906' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4kDlrOq76ZaTxrQs_Y4dubj84TRHUNT937yyw7NnSwo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:57.033341"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:57.034254"], ["id", "c6c021a4-bec7-11e4-b4f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6bfbf70-bec7-11e4-8ca2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "c6bfbf70-bec7-11e4-8ca2-705681abff85"], ["name", "org-19"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Vs2PqZV.XCXtX93/9sBEc.UtflKT3hU5BeyREgvqq5z9tc2TRMy8y"], ["created_at", "2015-02-27 21:29:57.045105"], ["updated_at", "2015-02-27 21:29:57.045105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:57.046854"], ["user_id", "c6c3f52c-bec7-11e4-b3d7-705681abff85"], ["created_at", "2015-02-27 21:29:57.047656"], ["updated_at", "2015-02-27 21:29:57.047656"], ["token", "xKpqHKShEqAAucQn0sUmZG4tG2FwMlaTN5bHSpdWZxU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:57.050839"], ["updated_at", "2015-02-27 21:29:57.050839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6c3f52c-bec7-11e4-b3d7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6c4d1b8-bec7-11e4-8df7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6c3f52c-bec7-11e4-b3d7-705681abff85"], ["organization_id", "c6c4d1b8-bec7-11e4-8df7-705681abff85"], ["created_at", "2015-02-27 21:29:57.053921"], ["updated_at", "2015-02-27 21:29:57.053921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:29:57 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$0z1YqrdIr6zEns66xLepEuQkj/wkMKI0rwgLjkp25mizwxnoI94SS"], ["created_at", "2015-02-27 21:29:57.065712"], ["updated_at", "2015-02-27 21:29:57.065712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:29:57.067377"], ["user_id", "c6c71ba8-bec7-11e4-938f-705681abff85"], ["created_at", "2015-02-27 21:29:57.068184"], ["updated_at", "2015-02-27 21:29:57.068184"], ["token", "r-NqQ6K65hobeKTZ4wTvvWKIRoBI6f5ZBbn7ot5kiIk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:29:57.071503"], ["updated_at", "2015-02-27 21:29:57.071503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6c71ba8-bec7-11e4-938f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6c801bc-bec7-11e4-af8b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6c71ba8-bec7-11e4-938f-705681abff85"], ["organization_id", "c6c801bc-bec7-11e4-af8b-705681abff85"], ["created_at", "2015-02-27 21:29:57.075672"], ["updated_at", "2015-02-27 21:29:57.075672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c6c801bc-bec7-11e4-af8b-705681abff85" for 127.0.0.1 at 2015-02-27 13:29:57 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"c6c801bc-bec7-11e4-af8b-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:29:57.081077' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r-NqQ6K65hobeKTZ4wTvvWKIRoBI6f5ZBbn7ot5kiIk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:29:57.082542"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:29:57.083580"], ["id", "c6c780a2-bec7-11e4-be30-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6c71ba8-bec7-11e4-938f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "c6c71ba8-bec7-11e4-938f-705681abff85"], ["id", "c6c801bc-bec7-11e4-af8b-705681abff85"]] Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (3.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$u7zTUc3F2nR7iTrcPaEUzOegO9aT4GuDyNm0ftPKWt93YFYvZ/jFO"], ["created_at", "2015-02-27 21:42:06.562242"], ["updated_at", "2015-02-27 21:42:06.562242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:06.574963"], ["user_id", "79979d42-bec9-11e4-9c34-705681abff85"], ["created_at", "2015-02-27 21:42:06.582640"], ["updated_at", "2015-02-27 21:42:06.582640"], ["token", "I1iQGzP0SGhqYw8KcOoVxgAVmG70KSSeihD43v0foRc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (10.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:06.602330"], ["updated_at", "2015-02-27 21:42:06.602330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79979d42-bec9-11e4-9c34-705681abff85' AND "clubhouse_memberships"."organization_id" = '799d9c4c-bec9-11e4-9582-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79979d42-bec9-11e4-9c34-705681abff85"], ["organization_id", "799d9c4c-bec9-11e4-9582-705681abff85"], ["created_at", "2015-02-27 21:42:06.614954"], ["updated_at", "2015-02-27 21:42:06.614954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:42:06 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Rm/zAQ3LZeAKyV53ttpHP.9yWDaqHYmTY0Rr/Ien7Lr.ellTZFsH6"], ["created_at", "2015-02-27 21:42:06.650142"], ["updated_at", "2015-02-27 21:42:06.650142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:06.652010"], ["user_id", "79a4e0e2-bec9-11e4-99d9-705681abff85"], ["created_at", "2015-02-27 21:42:06.652836"], ["updated_at", "2015-02-27 21:42:06.652836"], ["token", "LbaoLz9BAq3gp-hsv6Gxy6cDSvFF7lb9wZdPwNPTSrY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:06.656236"], ["updated_at", "2015-02-27 21:42:06.656236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79a4e0e2-bec9-11e4-99d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '79a5c502-bec9-11e4-9a74-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79a4e0e2-bec9-11e4-99d9-705681abff85"], ["organization_id", "79a5c502-bec9-11e4-9a74-705681abff85"], ["created_at", "2015-02-27 21:42:06.659474"], ["updated_at", "2015-02-27 21:42:06.659474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/79a5c502-bec9-11e4-9a74-705681abff85" for 127.0.0.1 at 2015-02-27 13:42:06 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"79a5c502-bec9-11e4-9a74-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (1.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:06.675177' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LbaoLz9BAq3gp-hsv6Gxy6cDSvFF7lb9wZdPwNPTSrY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:06.684752"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:06.686145"], ["id", "79a54a64-bec9-11e4-981c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79a4e0e2-bec9-11e4-99d9-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "79a4e0e2-bec9-11e4-99d9-705681abff85"], ["id", "79a5c502-bec9-11e4-9a74-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '79a5c502-bec9-11e4-9a74-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 49ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$H.3bK57djekF527qtuoT.ezMgBRtLCFvWMpDTLOug4rPUiH0TfkxK"], ["created_at", "2015-02-27 21:42:06.729074"], ["updated_at", "2015-02-27 21:42:06.729074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:06.730659"], ["user_id", "79b0e572-bec9-11e4-96c6-705681abff85"], ["created_at", "2015-02-27 21:42:06.731506"], ["updated_at", "2015-02-27 21:42:06.731506"], ["token", "gKuw-e810hPxPiEsKW_adF5Q3iF_mDHIjXjouN6Oupo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:06.734682"], ["updated_at", "2015-02-27 21:42:06.734682"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79b0e572-bec9-11e4-96c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '79b1bd8a-bec9-11e4-aceb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79b0e572-bec9-11e4-96c6-705681abff85"], ["organization_id", "79b1bd8a-bec9-11e4-aceb-705681abff85"], ["created_at", "2015-02-27 21:42:06.738120"], ["updated_at", "2015-02-27 21:42:06.738120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/79b1bd8a-bec9-11e4-aceb-705681abff85" for 127.0.0.1 at 2015-02-27 13:42:06 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"79b1bd8a-bec9-11e4-aceb-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:06.743075' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gKuw-e810hPxPiEsKW_adF5Q3iF_mDHIjXjouN6Oupo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:06.745550"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:06.746560"], ["id", "79b14a80-bec9-11e4-8cb2-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79b0e572-bec9-11e4-96c6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "79b0e572-bec9-11e4-96c6-705681abff85"], ["id", "79b1bd8a-bec9-11e4-aceb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '79b1bd8a-bec9-11e4-aceb-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:42:06.754058"], ["id", "79b1bd8a-bec9-11e4-aceb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 2.5ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$qRURUgOtsaPLum2lIBzXtujUJbaE2I9TEv2GpljzwEEygOu82Vv62"], ["created_at", "2015-02-27 21:42:06.767492"], ["updated_at", "2015-02-27 21:42:06.767492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:06.769382"], ["user_id", "79b6c87a-bec9-11e4-a1d1-705681abff85"], ["created_at", "2015-02-27 21:42:06.770206"], ["updated_at", "2015-02-27 21:42:06.770206"], ["token", "-4uEmPdp_egjj_dIrXaY2gzazRPbggyrF1lUH649yHg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:06.773800"], ["updated_at", "2015-02-27 21:42:06.773800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79b6c87a-bec9-11e4-a1d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '79b7bcb2-bec9-11e4-8952-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79b6c87a-bec9-11e4-a1d1-705681abff85"], ["organization_id", "79b7bcb2-bec9-11e4-8952-705681abff85"], ["created_at", "2015-02-27 21:42:06.777381"], ["updated_at", "2015-02-27 21:42:06.777381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-4" for 127.0.0.1 at 2015-02-27 13:42:06 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-4", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:06.782567' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-4uEmPdp_egjj_dIrXaY2gzazRPbggyrF1lUH649yHg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:06.783980"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:06.784884"], ["id", "79b73300-bec9-11e4-8d1e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79b6c87a-bec9-11e4-a1d1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "79b6c87a-bec9-11e4-a1d1-705681abff85"], ["name", "org-4"]] Completed 200 OK in 8ms (Views: 1.1ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$hqhjy1AnXwdK1nKltzvoEOuvl7o38Y1hWLBkzq4YSpo3ZgbOT6nMy"], ["created_at", "2015-02-27 21:42:06.799604"], ["updated_at", "2015-02-27 21:42:06.799604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:06.801562"], ["user_id", "79bbb128-bec9-11e4-9e70-705681abff85"], ["created_at", "2015-02-27 21:42:06.802504"], ["updated_at", "2015-02-27 21:42:06.802504"], ["token", "ugO64svSzo7TRzN2Xlg2xb-mV4aP9C1ExNs-EYabDEw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:06.806156"], ["updated_at", "2015-02-27 21:42:06.806156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79bbb128-bec9-11e4-9e70-705681abff85' AND "clubhouse_memberships"."organization_id" = '79bcac4a-bec9-11e4-8818-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79bbb128-bec9-11e4-9e70-705681abff85"], ["organization_id", "79bcac4a-bec9-11e4-8818-705681abff85"], ["created_at", "2015-02-27 21:42:06.810028"], ["updated_at", "2015-02-27 21:42:06.810028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:42:06 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$O8zEi3wpCDRoOnKwFIKld.AD.A0lugmABL1fH3NhPf81RgLj90GRC"], ["created_at", "2015-02-27 21:42:06.824463"], ["updated_at", "2015-02-27 21:42:06.824463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:06.826579"], ["user_id", "79bf7ea2-bec9-11e4-b377-705681abff85"], ["created_at", "2015-02-27 21:42:06.827470"], ["updated_at", "2015-02-27 21:42:06.827470"], ["token", "JaeQdX1Nc-gnmXnoS7dusR5qDW21lyBG68vH0gRYaA4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:06.831403"], ["updated_at", "2015-02-27 21:42:06.831403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79bf7ea2-bec9-11e4-b377-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c085c2-bec9-11e4-b58f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79bf7ea2-bec9-11e4-b377-705681abff85"], ["organization_id", "79c085c2-bec9-11e4-b58f-705681abff85"], ["created_at", "2015-02-27 21:42:06.835214"], ["updated_at", "2015-02-27 21:42:06.835214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$fNXIEnDL0XDeInEXZIxJ.OK2vtc7fi/iMkA4qT8p93XVOlmInwkb6"], ["created_at", "2015-02-27 21:42:06.840481"], ["updated_at", "2015-02-27 21:42:06.840481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:06.844168"], ["updated_at", "2015-02-27 21:42:06.844168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c1e836-bec9-11e4-b733-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c276de-bec9-11e4-bb2c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79c1e836-bec9-11e4-b733-705681abff85"], ["organization_id", "79c276de-bec9-11e4-bb2c-705681abff85"], ["created_at", "2015-02-27 21:42:06.848017"], ["updated_at", "2015-02-27 21:42:06.848017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:42:06 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:06.854748' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JaeQdX1Nc-gnmXnoS7dusR5qDW21lyBG68vH0gRYaA4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:06.856606"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:06.857783"], ["id", "79bff8a0-bec9-11e4-badc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79bf7ea2-bec9-11e4-b377-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "79bf7ea2-bec9-11e4-b377-705681abff85"]] Completed 200 OK in 11ms (Views: 3.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$lTK9fqigYFb3JK/SKXH2U.Owx7rkumBqC0Y9uWrtQ2wvbN2NvOjOa"], ["created_at", "2015-02-27 21:42:06.872542"], ["updated_at", "2015-02-27 21:42:06.872542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:06.874452"], ["user_id", "79c6cbf8-bec9-11e4-a40e-705681abff85"], ["created_at", "2015-02-27 21:42:06.875283"], ["updated_at", "2015-02-27 21:42:06.875283"], ["token", "moaW8f9oMyCzVyLTvUpPhRC-l845dYeCVU-dNzofnh0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:06.879369"], ["updated_at", "2015-02-27 21:42:06.879369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c6cbf8-bec9-11e4-a40e-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c7d61a-bec9-11e4-84fa-705681abff85') LIMIT 1 SQL (4.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79c6cbf8-bec9-11e4-a40e-705681abff85"], ["organization_id", "79c7d61a-bec9-11e4-84fa-705681abff85"], ["created_at", "2015-02-27 21:42:06.883029"], ["updated_at", "2015-02-27 21:42:06.883029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$/JiBTzm7RK7uCo56q7iGhugsM6NT0nHZScUFn/7/RSH5mNeB57d3i"], ["created_at", "2015-02-27 21:42:06.892837"], ["updated_at", "2015-02-27 21:42:06.892837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:06.896519"], ["updated_at", "2015-02-27 21:42:06.896519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c9e716-bec9-11e4-b2f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '79ca75a0-bec9-11e4-a647-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79c9e716-bec9-11e4-b2f2-705681abff85"], ["organization_id", "79ca75a0-bec9-11e4-a647-705681abff85"], ["created_at", "2015-02-27 21:42:06.900402"], ["updated_at", "2015-02-27 21:42:06.900402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:42:06 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$eQGSknO0kc7LYEIvC3tXgOZ4V6SwJd2xQK8cOBv.wAFOJq80VFG0."], ["created_at", "2015-02-27 21:42:06.916022"], ["updated_at", "2015-02-27 21:42:06.916022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:06.918437"], ["user_id", "79cd7eb2-bec9-11e4-afe2-705681abff85"], ["created_at", "2015-02-27 21:42:06.919322"], ["updated_at", "2015-02-27 21:42:06.919322"], ["token", "K2qFQphTJjpi45wKghLQasGLNwFYQAQYVFWeYnfizV4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:06.923192"], ["updated_at", "2015-02-27 21:42:06.923192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79cd7eb2-bec9-11e4-afe2-705681abff85' AND "clubhouse_memberships"."organization_id" = '79ce851e-bec9-11e4-bcff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79cd7eb2-bec9-11e4-afe2-705681abff85"], ["organization_id", "79ce851e-bec9-11e4-bcff-705681abff85"], ["created_at", "2015-02-27 21:42:06.927001"], ["updated_at", "2015-02-27 21:42:06.927001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-10" for 127.0.0.1 at 2015-02-27 13:42:06 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:06.959644' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "K2qFQphTJjpi45wKghLQasGLNwFYQAQYVFWeYnfizV4"]]  (1.0ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:06.969389"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:06.972628"], ["id", "79cdf860-bec9-11e4-8687-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79cd7eb2-bec9-11e4-afe2-705681abff85"]] Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "79cd7eb2-bec9-11e4-afe2-705681abff85"], ["name", "org-10"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "79ce851e-bec9-11e4-bcff-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 32ms (ActiveRecord: 6.2ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$bh1Unj/AjZxDevkk0vFF6eeaA2PqO1zkzSSI7Oo0yC5xFkgTXezCC"], ["created_at", "2015-02-27 21:42:07.001441"], ["updated_at", "2015-02-27 21:42:07.001441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.004506"], ["user_id", "79da923c-bec9-11e4-9428-705681abff85"], ["created_at", "2015-02-27 21:42:07.005936"], ["updated_at", "2015-02-27 21:42:07.005936"], ["token", "vM-Ug0NKLxzAU5ugD2o2rhkIHKOiTRwILBPMd4_KkW0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.011369"], ["updated_at", "2015-02-27 21:42:07.011369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79da923c-bec9-11e4-9428-705681abff85' AND "clubhouse_memberships"."organization_id" = '79dc163e-bec9-11e4-8faf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79da923c-bec9-11e4-9428-705681abff85"], ["organization_id", "79dc163e-bec9-11e4-8faf-705681abff85"], ["created_at", "2015-02-27 21:42:07.015850"], ["updated_at", "2015-02-27 21:42:07.015850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 34ms (Views: 33.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$gqNutrCezKPHYnHvxUf2ZuInfCUkGzOxZztFVngezS0N524BabycW"], ["created_at", "2015-02-27 21:42:07.062614"], ["updated_at", "2015-02-27 21:42:07.062614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.064276"], ["user_id", "79e3cc76-bec9-11e4-841f-705681abff85"], ["created_at", "2015-02-27 21:42:07.065077"], ["updated_at", "2015-02-27 21:42:07.065077"], ["token", "R7ID1z9vR40Vvw3wBtMGFP0dryUySzKYsfZpB9TmH_U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.068210"], ["updated_at", "2015-02-27 21:42:07.068210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79e3cc76-bec9-11e4-841f-705681abff85' AND "clubhouse_memberships"."organization_id" = '79e4a0c4-bec9-11e4-bf04-705681abff85') LIMIT 1 SQL (4.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79e3cc76-bec9-11e4-841f-705681abff85"], ["organization_id", "79e4a0c4-bec9-11e4-bf04-705681abff85"], ["created_at", "2015-02-27 21:42:07.071372"], ["updated_at", "2015-02-27 21:42:07.071372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ITgCmBnibNkoLAz5TNDPkuY1HIyl/.kSd5C/hJNgW6ObANr8ypPZC"], ["created_at", "2015-02-27 21:42:07.089864"], ["updated_at", "2015-02-27 21:42:07.089864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.091814"], ["user_id", "79e7f9cc-bec9-11e4-8794-705681abff85"], ["created_at", "2015-02-27 21:42:07.092627"], ["updated_at", "2015-02-27 21:42:07.092627"], ["token", "_3RP2xZ5d2g3pfGBJtEK_mcJ5PmZNpUiAEemS25hZJ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.095828"], ["updated_at", "2015-02-27 21:42:07.095828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79e7f9cc-bec9-11e4-8794-705681abff85' AND "clubhouse_memberships"."organization_id" = '79e8d98c-bec9-11e4-8f40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79e7f9cc-bec9-11e4-8794-705681abff85"], ["organization_id", "79e8d98c-bec9-11e4-8f40-705681abff85"], ["created_at", "2015-02-27 21:42:07.100056"], ["updated_at", "2015-02-27 21:42:07.100056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:07.104610' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_3RP2xZ5d2g3pfGBJtEK_mcJ5PmZNpUiAEemS25hZJ0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:07.106492"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:07.108382"], ["id", "79e86510-bec9-11e4-9201-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79e7f9cc-bec9-11e4-8794-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$oZPXCnIeEhxcrKIHf6lYNOF2QdLGDdUv5J1YU9VpF09WxNmsxj1mi"], ["created_at", "2015-02-27 21:42:07.121747"], ["updated_at", "2015-02-27 21:42:07.121747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.123322"], ["user_id", "79ecd01e-bec9-11e4-8dea-705681abff85"], ["created_at", "2015-02-27 21:42:07.124084"], ["updated_at", "2015-02-27 21:42:07.124084"], ["token", "LaJb3O0WaHryyAkdVQzZI9k3_oFQUPJTEbeK6n2w-l4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.127323"], ["updated_at", "2015-02-27 21:42:07.127323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79ecd01e-bec9-11e4-8dea-705681abff85' AND "clubhouse_memberships"."organization_id" = '79eda688-bec9-11e4-b2bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79ecd01e-bec9-11e4-8dea-705681abff85"], ["organization_id", "79eda688-bec9-11e4-b2bc-705681abff85"], ["created_at", "2015-02-27 21:42:07.131625"], ["updated_at", "2015-02-27 21:42:07.131625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:07.136366' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LaJb3O0WaHryyAkdVQzZI9k3_oFQUPJTEbeK6n2w-l4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:07.137786"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:07.138729"], ["id", "79ed30e0-bec9-11e4-bdf2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79ecd01e-bec9-11e4-8dea-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.142390"], ["updated_at", "2015-02-27 21:42:07.142390"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79eff5e6-bec9-11e4-8b1e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79ecd01e-bec9-11e4-8dea-705681abff85' AND "clubhouse_memberships"."organization_id" = '79eff5e6-bec9-11e4-8b1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79ecd01e-bec9-11e4-8dea-705681abff85"], ["admin", "t"], ["organization_id", "79eff5e6-bec9-11e4-8b1e-705681abff85"], ["created_at", "2015-02-27 21:42:07.147673"], ["updated_at", "2015-02-27 21:42:07.147673"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.0ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$/j5NzJv2he7hi7EkD5/u1.iQbGUL6xzSzOfoLbj8TbrU.fBKOJUy6"], ["created_at", "2015-02-27 21:42:07.157594"], ["updated_at", "2015-02-27 21:42:07.157594"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.159778"], ["user_id", "79f247ba-bec9-11e4-b4e9-705681abff85"], ["created_at", "2015-02-27 21:42:07.161299"], ["updated_at", "2015-02-27 21:42:07.161299"], ["token", "uv6W97fZSpaul23fxPK_Egk5HIpmYQo4dt391TP6PcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.166036"], ["updated_at", "2015-02-27 21:42:07.166036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79f247ba-bec9-11e4-b4e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '79f3a2fe-bec9-11e4-a6ea-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79f247ba-bec9-11e4-b4e9-705681abff85"], ["organization_id", "79f3a2fe-bec9-11e4-a6ea-705681abff85"], ["created_at", "2015-02-27 21:42:07.170157"], ["updated_at", "2015-02-27 21:42:07.170157"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/79f3a2fe-bec9-11e4-a6ea-705681abff85" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"79f3a2fe-bec9-11e4-a6ea-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:07.177953' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uv6W97fZSpaul23fxPK_Egk5HIpmYQo4dt391TP6PcM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:07.179492"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:07.180674"], ["id", "79f2f58e-bec9-11e4-8e1b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79f247ba-bec9-11e4-b4e9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "79f247ba-bec9-11e4-b4e9-705681abff85"], ["id", "79f3a2fe-bec9-11e4-a6ea-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$t8fc8ozZSIVSO3oJhtGYZOAWYEqNNTJTbbKmgFmzYTcSejFJg/ApO"], ["created_at", "2015-02-27 21:42:07.192694"], ["updated_at", "2015-02-27 21:42:07.192694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.195568"], ["user_id", "79f7c26c-bec9-11e4-b8c7-705681abff85"], ["created_at", "2015-02-27 21:42:07.196388"], ["updated_at", "2015-02-27 21:42:07.196388"], ["token", "Eq-ZCNZ8CDiSyegHgEueZcH7vkCI2o6dqp21Q-Ydr_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.203582"], ["updated_at", "2015-02-27 21:42:07.203582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79f7c26c-bec9-11e4-b8c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '79f9754e-bec9-11e4-a026-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79f7c26c-bec9-11e4-b8c7-705681abff85"], ["organization_id", "79f9754e-bec9-11e4-a026-705681abff85"], ["created_at", "2015-02-27 21:42:07.209065"], ["updated_at", "2015-02-27 21:42:07.209065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$ZKhU73Z0ZpWhQJ29ND8HjOMrnTXNpcE7ymUIAChcuORPM5eiQ4Du6"], ["created_at", "2015-02-27 21:42:07.221618"], ["updated_at", "2015-02-27 21:42:07.221618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.223261"], ["user_id", "79fc0d54-bec9-11e4-ba3b-705681abff85"], ["created_at", "2015-02-27 21:42:07.224039"], ["updated_at", "2015-02-27 21:42:07.224039"], ["token", "eIyac-J4l56SLzfo46OUVFhH3sqZC4WHkerKJWnFaTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.227161"], ["updated_at", "2015-02-27 21:42:07.227161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79fc0d54-bec9-11e4-ba3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '79fce74c-bec9-11e4-9dab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79fc0d54-bec9-11e4-ba3b-705681abff85"], ["organization_id", "79fce74c-bec9-11e4-9dab-705681abff85"], ["created_at", "2015-02-27 21:42:07.230712"], ["updated_at", "2015-02-27 21:42:07.230712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/79fce74c-bec9-11e4-9dab-705681abff85" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"79fce74c-bec9-11e4-9dab-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:07.235409' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eIyac-J4l56SLzfo46OUVFhH3sqZC4WHkerKJWnFaTY"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:07.236769"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:07.238672"], ["id", "79fc6f10-bec9-11e4-81db-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79fc0d54-bec9-11e4-ba3b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "79fc0d54-bec9-11e4-ba3b-705681abff85"], ["id", "79fce74c-bec9-11e4-9dab-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "79fce74c-bec9-11e4-9dab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$stUIfLmRHoTWd5OC4HDKq.6AXKIkC3XbyzHEeszO/qLW2hwew2eWK"], ["created_at", "2015-02-27 21:42:07.249903"], ["updated_at", "2015-02-27 21:42:07.249903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.251482"], ["user_id", "7a005dc8-bec9-11e4-8506-705681abff85"], ["created_at", "2015-02-27 21:42:07.252417"], ["updated_at", "2015-02-27 21:42:07.252417"], ["token", "SM3w_6Fa1h-rpoFsGLS4OJJu5MCW7gM0xN2TmtzMLis"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.256149"], ["updated_at", "2015-02-27 21:42:07.256149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a005dc8-bec9-11e4-8506-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a0152a0-bec9-11e4-b742-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a005dc8-bec9-11e4-8506-705681abff85"], ["organization_id", "7a0152a0-bec9-11e4-b742-705681abff85"], ["created_at", "2015-02-27 21:42:07.260576"], ["updated_at", "2015-02-27 21:42:07.260576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$KV351xlvJXGkcwWZ2t2avumx4Ae72U2mWXIKfqjWgWGN7n2WgqjHm"], ["created_at", "2015-02-27 21:42:07.274476"], ["updated_at", "2015-02-27 21:42:07.274476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.276171"], ["user_id", "7a041dbe-bec9-11e4-9c7a-705681abff85"], ["created_at", "2015-02-27 21:42:07.276960"], ["updated_at", "2015-02-27 21:42:07.276960"], ["token", "nYgUKpxxD4AlzTnzEahYqIdNveI_xb3w0G-G5_BhvdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.284366"], ["updated_at", "2015-02-27 21:42:07.284366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a041dbe-bec9-11e4-9c7a-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a05a0b2-bec9-11e4-be37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a041dbe-bec9-11e4-9c7a-705681abff85"], ["organization_id", "7a05a0b2-bec9-11e4-be37-705681abff85"], ["created_at", "2015-02-27 21:42:07.287636"], ["updated_at", "2015-02-27 21:42:07.287636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"available"} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Tnf821w4YSFEq38sdepBXO6jLpg0MPrB/gMAXrOuFJMqjn1cqb.Ne"], ["created_at", "2015-02-27 21:42:07.302222"], ["updated_at", "2015-02-27 21:42:07.302222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.303848"], ["user_id", "7a085b72-bec9-11e4-b3e7-705681abff85"], ["created_at", "2015-02-27 21:42:07.304726"], ["updated_at", "2015-02-27 21:42:07.304726"], ["token", "l7R_ImiSyb4BLIUReMOu0p5byTKjByYLWbZtCm6StZk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.309105"], ["updated_at", "2015-02-27 21:42:07.309105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a085b72-bec9-11e4-b3e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a096774-bec9-11e4-88ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a085b72-bec9-11e4-b3e7-705681abff85"], ["organization_id", "7a096774-bec9-11e4-88ff-705681abff85"], ["created_at", "2015-02-27 21:42:07.312469"], ["updated_at", "2015-02-27 21:42:07.312469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-20" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-20"} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$eVCp7o/oENT9pXU1JciSxuHtP1ZFqpQgjhsWmvp./mwrEWnkWVDIG"], ["created_at", "2015-02-27 21:42:07.325016"], ["updated_at", "2015-02-27 21:42:07.325016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.326640"], ["user_id", "7a0bd4fa-bec9-11e4-a986-705681abff85"], ["created_at", "2015-02-27 21:42:07.327399"], ["updated_at", "2015-02-27 21:42:07.327399"], ["token", "YkR2E5vpL1aXsigLsGs1bZErasZ0l7kaKBty7DxM4DY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.330869"], ["updated_at", "2015-02-27 21:42:07.330869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a0bd4fa-bec9-11e4-a986-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a0cb974-bec9-11e4-82bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a0bd4fa-bec9-11e4-a986-705681abff85"], ["organization_id", "7a0cb974-bec9-11e4-82bd-705681abff85"], ["created_at", "2015-02-27 21:42:07.334613"], ["updated_at", "2015-02-27 21:42:07.334613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$jRBy.GpnqlQ1CAMubluteu/RjrYm3xHjCTQtY/h3hTjTmvA3LBkRe"], ["created_at", "2015-02-27 21:42:07.348196"], ["updated_at", "2015-02-27 21:42:07.348196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.350048"], ["user_id", "7a0f6368-bec9-11e4-946d-705681abff85"], ["created_at", "2015-02-27 21:42:07.350825"], ["updated_at", "2015-02-27 21:42:07.350825"], ["token", "zfogcd9FAhie_yv2nTl0_WltKwrw5-ZTnJH8lB_f4Ac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.354949"], ["updated_at", "2015-02-27 21:42:07.354949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a0f6368-bec9-11e4-946d-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a1067a4-bec9-11e4-a037-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a0f6368-bec9-11e4-946d-705681abff85"], ["organization_id", "7a1067a4-bec9-11e4-a037-705681abff85"], ["created_at", "2015-02-27 21:42:07.358998"], ["updated_at", "2015-02-27 21:42:07.358998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-22" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-22", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:07.364839' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zfogcd9FAhie_yv2nTl0_WltKwrw5-ZTnJH8lB_f4Ac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:07.366776"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:07.368454"], ["id", "7a0fd96a-bec9-11e4-bd2c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a0f6368-bec9-11e4-946d-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "7a0f6368-bec9-11e4-946d-705681abff85"], ["name", "org-22"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7a1067a4-bec9-11e4-a037-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$y/j0JXq7wfUER4TiMV6Tu.2sXM8E87y0H/xxcBgasR8VAlyqMqj1q"], ["created_at", "2015-02-27 21:42:07.381893"], ["updated_at", "2015-02-27 21:42:07.381893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:07.385767"], ["user_id", "7a14829e-bec9-11e4-89dc-705681abff85"], ["created_at", "2015-02-27 21:42:07.386680"], ["updated_at", "2015-02-27 21:42:07.386680"], ["token", "H9eNeFJ2peSW3X-5C29Sm4f4kJAQg82tsl9QdQTjKEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:07.390025"], ["updated_at", "2015-02-27 21:42:07.390025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a14829e-bec9-11e4-89dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a15c726-bec9-11e4-a53d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a14829e-bec9-11e4-89dc-705681abff85"], ["organization_id", "7a15c726-bec9-11e4-a53d-705681abff85"], ["created_at", "2015-02-27 21:42:07.393576"], ["updated_at", "2015-02-27 21:42:07.393576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-02-27 13:42:07 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:07.399082' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "H9eNeFJ2peSW3X-5C29Sm4f4kJAQg82tsl9QdQTjKEQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:07.400587"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:07.401574"], ["id", "7a15449a-bec9-11e4-bae4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a14829e-bec9-11e4-89dc-705681abff85"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "7a14829e-bec9-11e4-89dc-705681abff85"], ["name", "org-23"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7a15c726-bec9-11e4-a53d-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:42:07.407433"], ["id", "7a15c726-bec9-11e4-a53d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ekK.kdG3er5rWQMvJj0ZjeH3dRYzmiIpfVVHNJJH74j0dU6Aay3ju"], ["created_at", "2015-02-27 21:42:57.747869"], ["updated_at", "2015-02-27 21:42:57.747869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (22.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:57.759652"], ["user_id", "9819f404-bec9-11e4-a5fe-705681abff85"], ["created_at", "2015-02-27 21:42:57.767099"], ["updated_at", "2015-02-27 21:42:57.767099"], ["token", "_XOa8upxyEUqGMGcvrWWoAGYavbE4DEibBsago8uAbo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:57.805819"], ["updated_at", "2015-02-27 21:42:57.805819"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9819f404-bec9-11e4-a5fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '9822b2ce-bec9-11e4-acb3-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9819f404-bec9-11e4-a5fe-705681abff85"], ["organization_id", "9822b2ce-bec9-11e4-acb3-705681abff85"], ["created_at", "2015-02-27 21:42:57.824313"], ["updated_at", "2015-02-27 21:42:57.824313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:42:57 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$X3etoIgyMd/gastFiTJIBOXG./YUJ02oUc22kFhqW50AscyKtmru2"], ["created_at", "2015-02-27 21:42:57.866473"], ["updated_at", "2015-02-27 21:42:57.866473"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:57.868434"], ["user_id", "982be0ce-bec9-11e4-a9b9-705681abff85"], ["created_at", "2015-02-27 21:42:57.869256"], ["updated_at", "2015-02-27 21:42:57.869256"], ["token", "izUEwcw-stKS06y_FT0IFzak-0knxOtO371pBMNW8d8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:57.872952"], ["updated_at", "2015-02-27 21:42:57.872952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '982be0ce-bec9-11e4-a9b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '982cd290-bec9-11e4-a237-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "982be0ce-bec9-11e4-a9b9-705681abff85"], ["organization_id", "982cd290-bec9-11e4-a237-705681abff85"], ["created_at", "2015-02-27 21:42:57.876227"], ["updated_at", "2015-02-27 21:42:57.876227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/982cd290-bec9-11e4-a237-705681abff85" for 127.0.0.1 at 2015-02-27 13:42:57 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"982cd290-bec9-11e4-a237-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:57.893331' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "izUEwcw-stKS06y_FT0IFzak-0knxOtO371pBMNW8d8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:57.900630"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:57.901874"], ["id", "982c4f32-bec9-11e4-ac0a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "982be0ce-bec9-11e4-a9b9-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "982be0ce-bec9-11e4-a9b9-705681abff85"], ["id", "982cd290-bec9-11e4-a237-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '982cd290-bec9-11e4-a237-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 102ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Xvhzjltqd6UX0wYH/i9aQelpCre2NZc96OQYQXZDXxlFXp/Nbo7W."], ["created_at", "2015-02-27 21:42:58.000605"], ["updated_at", "2015-02-27 21:42:58.000605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.002638"], ["user_id", "9840587e-bec9-11e4-b5f9-705681abff85"], ["created_at", "2015-02-27 21:42:58.003453"], ["updated_at", "2015-02-27 21:42:58.003453"], ["token", "j-Tyznn2KUv2WCAsk_b-vNWE0ypmFvO2APFuFTd3hVk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.007499"], ["updated_at", "2015-02-27 21:42:58.007499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9840587e-bec9-11e4-b5f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '98415dfa-bec9-11e4-aae4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9840587e-bec9-11e4-b5f9-705681abff85"], ["organization_id", "98415dfa-bec9-11e4-aae4-705681abff85"], ["created_at", "2015-02-27 21:42:58.011642"], ["updated_at", "2015-02-27 21:42:58.011642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/98415dfa-bec9-11e4-aae4-705681abff85" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"98415dfa-bec9-11e4-aae4-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:58.016436' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "j-Tyznn2KUv2WCAsk_b-vNWE0ypmFvO2APFuFTd3hVk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:58.018140"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:58.019328"], ["id", "9840c7be-bec9-11e4-bcc2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9840587e-bec9-11e4-b5f9-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "9840587e-bec9-11e4-b5f9-705681abff85"], ["id", "98415dfa-bec9-11e4-aae4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '98415dfa-bec9-11e4-aae4-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:42:58.028024"], ["id", "98415dfa-bec9-11e4-aae4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 2.5ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$vujv13ZykxhAMo1F/KeJUOGch2Kzh7FmyEX9VWgj6vb4xp.0ZC7Ii"], ["created_at", "2015-02-27 21:42:58.040739"], ["updated_at", "2015-02-27 21:42:58.040739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.042793"], ["user_id", "9846781c-bec9-11e4-b1e6-705681abff85"], ["created_at", "2015-02-27 21:42:58.043586"], ["updated_at", "2015-02-27 21:42:58.043586"], ["token", "PYaZQWzuET8s8c-Oy7rSJcav4JBdrfF6BUbLUnOiRRA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.055908"], ["updated_at", "2015-02-27 21:42:58.055908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9846781c-bec9-11e4-b1e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '9848c130-bec9-11e4-806f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9846781c-bec9-11e4-b1e6-705681abff85"], ["organization_id", "9848c130-bec9-11e4-806f-705681abff85"], ["created_at", "2015-02-27 21:42:58.059597"], ["updated_at", "2015-02-27 21:42:58.059597"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-4" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-4", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:58.065580' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PYaZQWzuET8s8c-Oy7rSJcav4JBdrfF6BUbLUnOiRRA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:58.067545"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:58.069033"], ["id", "9846e7fc-bec9-11e4-b1fa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9846781c-bec9-11e4-b1e6-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "9846781c-bec9-11e4-b1e6-705681abff85"], ["name", "org-4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "9848c130-bec9-11e4-806f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$DHqmw5a.E3cOVFRaPCU5/uiTl44cXz.YrwxTUfm5pyo.DFQmoXXO."], ["created_at", "2015-02-27 21:42:58.083427"], ["updated_at", "2015-02-27 21:42:58.083427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.085242"], ["user_id", "984cf6f6-bec9-11e4-83ae-705681abff85"], ["created_at", "2015-02-27 21:42:58.086046"], ["updated_at", "2015-02-27 21:42:58.086046"], ["token", "-10uFu9edVVoGczSpS8vpmO9_hESpGZ7VVMfa2HxpSU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.089494"], ["updated_at", "2015-02-27 21:42:58.089494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '984cf6f6-bec9-11e4-83ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '984de26e-bec9-11e4-83a4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "984cf6f6-bec9-11e4-83ae-705681abff85"], ["organization_id", "984de26e-bec9-11e4-83a4-705681abff85"], ["created_at", "2015-02-27 21:42:58.093466"], ["updated_at", "2015-02-27 21:42:58.093466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$llenxm9lPy2paZRx0lu7je1uBF7OvPCX4AoSywmCoQuc/0BkwDSvS"], ["created_at", "2015-02-27 21:42:58.106106"], ["updated_at", "2015-02-27 21:42:58.106106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.108367"], ["user_id", "98507826-bec9-11e4-9aba-705681abff85"], ["created_at", "2015-02-27 21:42:58.109330"], ["updated_at", "2015-02-27 21:42:58.109330"], ["token", "m0H5KcfQc5VOYYsCArkAcoYJVe8SrBjaSorgVX-xSa8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.114396"], ["updated_at", "2015-02-27 21:42:58.114396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98507826-bec9-11e4-9aba-705681abff85' AND "clubhouse_memberships"."organization_id" = '9851ba7e-bec9-11e4-a88e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98507826-bec9-11e4-9aba-705681abff85"], ["organization_id", "9851ba7e-bec9-11e4-a88e-705681abff85"], ["created_at", "2015-02-27 21:42:58.118611"], ["updated_at", "2015-02-27 21:42:58.118611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/9851ba7e-bec9-11e4-a88e-705681abff85" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"9851ba7e-bec9-11e4-a88e-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:58.124513' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "m0H5KcfQc5VOYYsCArkAcoYJVe8SrBjaSorgVX-xSa8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:58.126981"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:58.128416"], ["id", "9850f436-bec9-11e4-a2a0-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "98507826-bec9-11e4-9aba-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "98507826-bec9-11e4-9aba-705681abff85"], ["id", "9851ba7e-bec9-11e4-a88e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "9851ba7e-bec9-11e4-a88e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$00PQHmQ2MYr6M6mmDpxjmepm1AvhLpP2cs39CBlfgGH7uw.7mPSyG"], ["created_at", "2015-02-27 21:42:58.140202"], ["updated_at", "2015-02-27 21:42:58.140202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.142492"], ["user_id", "9855ae90-bec9-11e4-bac7-705681abff85"], ["created_at", "2015-02-27 21:42:58.143452"], ["updated_at", "2015-02-27 21:42:58.143452"], ["token", "aggwl7VMbLihIZ6Z1sOnMlgOoydxM5ZTlnrCK2yMJwk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.147280"], ["updated_at", "2015-02-27 21:42:58.147280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9855ae90-bec9-11e4-bac7-705681abff85' AND "clubhouse_memberships"."organization_id" = '9856b916-bec9-11e4-b56b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9855ae90-bec9-11e4-bac7-705681abff85"], ["organization_id", "9856b916-bec9-11e4-b56b-705681abff85"], ["created_at", "2015-02-27 21:42:58.151445"], ["updated_at", "2015-02-27 21:42:58.151445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$zJPU27AFY7M.yjqPEj.rw.mkkv8GQAoAaN7uWCAl1oAF9gSbuVlFG"], ["created_at", "2015-02-27 21:42:58.166200"], ["updated_at", "2015-02-27 21:42:58.166200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.168063"], ["user_id", "9859991a-bec9-11e4-80a9-705681abff85"], ["created_at", "2015-02-27 21:42:58.168960"], ["updated_at", "2015-02-27 21:42:58.168960"], ["token", "RwnnY_lmsp-zNqsoDJhW37iozS1nDPrs-LYuZQK6Kpk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.173112"], ["updated_at", "2015-02-27 21:42:58.173112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9859991a-bec9-11e4-80a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '985aac7e-bec9-11e4-8793-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9859991a-bec9-11e4-80a9-705681abff85"], ["organization_id", "985aac7e-bec9-11e4-8793-705681abff85"], ["created_at", "2015-02-27 21:42:58.177077"], ["updated_at", "2015-02-27 21:42:58.177077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$YzeL5XWR8zE9jtSnp5CHCORBLCEehicuojnQGztqzFeo8fTgBfeDy"], ["created_at", "2015-02-27 21:42:58.189015"], ["updated_at", "2015-02-27 21:42:58.189015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.191005"], ["user_id", "985d14aa-bec9-11e4-a288-705681abff85"], ["created_at", "2015-02-27 21:42:58.191841"], ["updated_at", "2015-02-27 21:42:58.191841"], ["token", "JQc2z6fx_LfzrHadyj1m9JzLbppCECZdRCE53-QerA4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.195246"], ["updated_at", "2015-02-27 21:42:58.195246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '985d14aa-bec9-11e4-a288-705681abff85' AND "clubhouse_memberships"."organization_id" = '985e0090-bec9-11e4-8159-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "985d14aa-bec9-11e4-a288-705681abff85"], ["organization_id", "985e0090-bec9-11e4-8159-705681abff85"], ["created_at", "2015-02-27 21:42:58.198383"], ["updated_at", "2015-02-27 21:42:58.198383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:58.202695' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JQc2z6fx_LfzrHadyj1m9JzLbppCECZdRCE53-QerA4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:58.204140"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:58.205080"], ["id", "985d8598-bec9-11e4-add8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "985d14aa-bec9-11e4-a288-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$tmJI3eF442Gxah2OWvgX9OmpGlHxa5logW2rbvsUEjr6Rucc4hcZa"], ["created_at", "2015-02-27 21:42:58.220732"], ["updated_at", "2015-02-27 21:42:58.220732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.222970"], ["user_id", "9861effc-bec9-11e4-8382-705681abff85"], ["created_at", "2015-02-27 21:42:58.223948"], ["updated_at", "2015-02-27 21:42:58.223948"], ["token", "M9SUzDOliwZ3C_fa4JcpsP8-9FfYxGSTvkD_tv32DiI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.230452"], ["updated_at", "2015-02-27 21:42:58.230452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9861effc-bec9-11e4-8382-705681abff85' AND "clubhouse_memberships"."organization_id" = '986366b6-bec9-11e4-8556-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9861effc-bec9-11e4-8382-705681abff85"], ["organization_id", "986366b6-bec9-11e4-8556-705681abff85"], ["created_at", "2015-02-27 21:42:58.234114"], ["updated_at", "2015-02-27 21:42:58.234114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:58.238683' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M9SUzDOliwZ3C_fa4JcpsP8-9FfYxGSTvkD_tv32DiI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:58.240246"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:58.274066"], ["id", "98627c2e-bec9-11e4-9535-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9861effc-bec9-11e4-8382-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.278712"], ["updated_at", "2015-02-27 21:42:58.278712"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "986abdb2-bec9-11e4-9431-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9861effc-bec9-11e4-8382-705681abff85' AND "clubhouse_memberships"."organization_id" = '986abdb2-bec9-11e4-9431-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9861effc-bec9-11e4-8382-705681abff85"], ["admin", "t"], ["organization_id", "986abdb2-bec9-11e4-9431-705681abff85"], ["created_at", "2015-02-27 21:42:58.284200"], ["updated_at", "2015-02-27 21:42:58.284200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 48ms (Views: 0.5ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$pOKzwXotUwSBCyKIY4luxeCm7jInH2S/oKoHnefJZYnXQwgNjiUda"], ["created_at", "2015-02-27 21:42:58.292287"], ["updated_at", "2015-02-27 21:42:58.292287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.294012"], ["user_id", "986cd1ba-bec9-11e4-b747-705681abff85"], ["created_at", "2015-02-27 21:42:58.294778"], ["updated_at", "2015-02-27 21:42:58.294778"], ["token", "cllSk9M_YeAyEEm-VqN07Z1U3J8ElttzJ0pAAaV0ynQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.298010"], ["updated_at", "2015-02-27 21:42:58.298010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '986cd1ba-bec9-11e4-b747-705681abff85' AND "clubhouse_memberships"."organization_id" = '986dad2e-bec9-11e4-8eac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "986cd1ba-bec9-11e4-b747-705681abff85"], ["organization_id", "986dad2e-bec9-11e4-8eac-705681abff85"], ["created_at", "2015-02-27 21:42:58.301038"], ["updated_at", "2015-02-27 21:42:58.301038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"available"} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$WsyD1Uh0JRvhKHW4TxIRTOrxBkYPAZ3P82.d94W///a8HuH7vKQ9m"], ["created_at", "2015-02-27 21:42:58.315624"], ["updated_at", "2015-02-27 21:42:58.315624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.317245"], ["user_id", "987062f8-bec9-11e4-b967-705681abff85"], ["created_at", "2015-02-27 21:42:58.318032"], ["updated_at", "2015-02-27 21:42:58.318032"], ["token", "Mlir2fyNoOy4zHMVlxhSeHl2oxY17Cfufol_p5cqKsE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.321376"], ["updated_at", "2015-02-27 21:42:58.321376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '987062f8-bec9-11e4-b967-705681abff85' AND "clubhouse_memberships"."organization_id" = '9871407e-bec9-11e4-a6c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "987062f8-bec9-11e4-b967-705681abff85"], ["organization_id", "9871407e-bec9-11e4-a6c3-705681abff85"], ["created_at", "2015-02-27 21:42:58.325341"], ["updated_at", "2015-02-27 21:42:58.325341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-12" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-12"} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$b/1.c8r9v.xMTwv0b9hkl.C2pPnh5nhK5zGrU2NCRAdqk.dibhDpG"], ["created_at", "2015-02-27 21:42:58.337381"], ["updated_at", "2015-02-27 21:42:58.337381"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.339153"], ["user_id", "9873b23c-bec9-11e4-8b5c-705681abff85"], ["created_at", "2015-02-27 21:42:58.340046"], ["updated_at", "2015-02-27 21:42:58.340046"], ["token", "lenno_3vpv842BeRbZ_x_5gEVCLcyliLj-7rl5ay3_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.343808"], ["updated_at", "2015-02-27 21:42:58.343808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9873b23c-bec9-11e4-8b5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '9874ad90-bec9-11e4-86a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9873b23c-bec9-11e4-8b5c-705681abff85"], ["organization_id", "9874ad90-bec9-11e4-86a2-705681abff85"], ["created_at", "2015-02-27 21:42:58.347021"], ["updated_at", "2015-02-27 21:42:58.347021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$G5twESyHqoQA8KBj6ANwn.XmYvX3CG1RxuhgsOZMA.tNypx/sUAx."], ["created_at", "2015-02-27 21:42:58.351517"], ["updated_at", "2015-02-27 21:42:58.351517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.354451"], ["updated_at", "2015-02-27 21:42:58.354451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9875d94a-bec9-11e4-9ebc-705681abff85' AND "clubhouse_memberships"."organization_id" = '98764a2e-bec9-11e4-879c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9875d94a-bec9-11e4-9ebc-705681abff85"], ["organization_id", "98764a2e-bec9-11e4-879c-705681abff85"], ["created_at", "2015-02-27 21:42:58.357492"], ["updated_at", "2015-02-27 21:42:58.357492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:58.362189' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lenno_3vpv842BeRbZ_x_5gEVCLcyliLj-7rl5ay3_c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:58.363965"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:58.365398"], ["id", "9874253c-bec9-11e4-a604-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9873b23c-bec9-11e4-8b5c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "9873b23c-bec9-11e4-8b5c-705681abff85"]] Completed 200 OK in 12ms (Views: 2.9ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$KHKOIxumm76SSWXxTlv1sOxJuP.u71R1Cb3h.mFaw9sqB72Ehq0wa"], ["created_at", "2015-02-27 21:42:58.380219"], ["updated_at", "2015-02-27 21:42:58.380219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.381946"], ["user_id", "987a3b16-bec9-11e4-b933-705681abff85"], ["created_at", "2015-02-27 21:42:58.382845"], ["updated_at", "2015-02-27 21:42:58.382845"], ["token", "NvuQ8zuLoFiE4HrsoUjh48HZepg4J0qWK-cQUicN0Is"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.386245"], ["updated_at", "2015-02-27 21:42:58.386245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '987a3b16-bec9-11e4-b933-705681abff85' AND "clubhouse_memberships"."organization_id" = '987b24ea-bec9-11e4-a2f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "987a3b16-bec9-11e4-b933-705681abff85"], ["organization_id", "987b24ea-bec9-11e4-a2f7-705681abff85"], ["created_at", "2015-02-27 21:42:58.389323"], ["updated_at", "2015-02-27 21:42:58.389323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$DpoXTo5lys/4nm7ca3mz4Oq9S9Gsq9SuBQW7L/i9AIEuBAGSCSQY."], ["created_at", "2015-02-27 21:42:58.394448"], ["updated_at", "2015-02-27 21:42:58.394448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.397889"], ["updated_at", "2015-02-27 21:42:58.397889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '987c6f30-bec9-11e4-916c-705681abff85' AND "clubhouse_memberships"."organization_id" = '987cec30-bec9-11e4-8678-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "987c6f30-bec9-11e4-916c-705681abff85"], ["organization_id", "987cec30-bec9-11e4-8678-705681abff85"], ["created_at", "2015-02-27 21:42:58.400966"], ["updated_at", "2015-02-27 21:42:58.400966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$yTWHbKOhqF4xeFvEfuur3uFeX8ulGZsBmmNXIhCBYtT.H3fPnZyDa"], ["created_at", "2015-02-27 21:42:58.413060"], ["updated_at", "2015-02-27 21:42:58.413060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.414990"], ["user_id", "987f457a-bec9-11e4-8ccf-705681abff85"], ["created_at", "2015-02-27 21:42:58.415977"], ["updated_at", "2015-02-27 21:42:58.415977"], ["token", "DcS5CMPpXxAuLBVulBGuwJeg39_VvM7xsqQ5sL29iyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.420045"], ["updated_at", "2015-02-27 21:42:58.420045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '987f457a-bec9-11e4-8ccf-705681abff85' AND "clubhouse_memberships"."organization_id" = '988054ba-bec9-11e4-839d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "987f457a-bec9-11e4-8ccf-705681abff85"], ["organization_id", "988054ba-bec9-11e4-839d-705681abff85"], ["created_at", "2015-02-27 21:42:58.423564"], ["updated_at", "2015-02-27 21:42:58.423564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/988054ba-bec9-11e4-839d-705681abff85" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"988054ba-bec9-11e4-839d-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:58.428233' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DcS5CMPpXxAuLBVulBGuwJeg39_VvM7xsqQ5sL29iyo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:58.429631"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:58.430615"], ["id", "987fc388-bec9-11e4-aa22-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "987f457a-bec9-11e4-8ccf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "987f457a-bec9-11e4-8ccf-705681abff85"], ["id", "988054ba-bec9-11e4-839d-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$WCl22oxI.Y5KiGm6toplGujsUyynTZs3ll.xlF6g7yL78.IzYe9Qa"], ["created_at", "2015-02-27 21:42:58.440459"], ["updated_at", "2015-02-27 21:42:58.440459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.442055"], ["user_id", "98836d58-bec9-11e4-94d0-705681abff85"], ["created_at", "2015-02-27 21:42:58.442835"], ["updated_at", "2015-02-27 21:42:58.442835"], ["token", "_lQLYmaGfMVG7aZvzIBP0dZ_IdD-PQcNz6cTyu_KafA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.446159"], ["updated_at", "2015-02-27 21:42:58.446159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98836d58-bec9-11e4-94d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '98844e62-bec9-11e4-80e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98836d58-bec9-11e4-94d0-705681abff85"], ["organization_id", "98844e62-bec9-11e4-80e7-705681abff85"], ["created_at", "2015-02-27 21:42:58.449631"], ["updated_at", "2015-02-27 21:42:58.449631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Hr2G2viCKBU.xpI8G.qyyORFfmatK64qGxq176tM7DrDM/8O5kiaK"], ["created_at", "2015-02-27 21:42:58.463651"], ["updated_at", "2015-02-27 21:42:58.463651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.465455"], ["user_id", "9886fb3a-bec9-11e4-8ace-705681abff85"], ["created_at", "2015-02-27 21:42:58.466251"], ["updated_at", "2015-02-27 21:42:58.466251"], ["token", "IR0UFQs4QFDsfInihdLPLqN8JT9TsIafl3T73Mg0Tqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.469540"], ["updated_at", "2015-02-27 21:42:58.469540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9886fb3a-bec9-11e4-8ace-705681abff85' AND "clubhouse_memberships"."organization_id" = '9887dae6-bec9-11e4-9242-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9886fb3a-bec9-11e4-8ace-705681abff85"], ["organization_id", "9887dae6-bec9-11e4-9242-705681abff85"], ["created_at", "2015-02-27 21:42:58.473246"], ["updated_at", "2015-02-27 21:42:58.473246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$1368XP2W7wQCas3iuxdosu3jQulHt4RAH5zADtIAElp4UJxM4wnjW"], ["created_at", "2015-02-27 21:42:58.485618"], ["updated_at", "2015-02-27 21:42:58.485618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.487227"], ["user_id", "988a51a4-bec9-11e4-ad7c-705681abff85"], ["created_at", "2015-02-27 21:42:58.488001"], ["updated_at", "2015-02-27 21:42:58.488001"], ["token", "wJR6dea8z5XqQBrkAC1SWRZuZOntsjLSHycuTqyYQzQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.491161"], ["updated_at", "2015-02-27 21:42:58.491161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '988a51a4-bec9-11e4-ad7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '988b2926-bec9-11e4-9c06-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "988a51a4-bec9-11e4-ad7c-705681abff85"], ["organization_id", "988b2926-bec9-11e4-9c06-705681abff85"], ["created_at", "2015-02-27 21:42:58.494637"], ["updated_at", "2015-02-27 21:42:58.494637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-20" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-20", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:58.499139' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wJR6dea8z5XqQBrkAC1SWRZuZOntsjLSHycuTqyYQzQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:58.500971"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:58.502947"], ["id", "988ab284-bec9-11e4-899f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "988a51a4-bec9-11e4-ad7c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "988a51a4-bec9-11e4-ad7c-705681abff85"], ["name", "org-20"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '988b2926-bec9-11e4-9c06-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$lMbEKhSQ4qQ4U14FgRlu/OuPLPMbYLK3pvAfDBq/Utfe.RXsy..CG"], ["created_at", "2015-02-27 21:42:58.516955"], ["updated_at", "2015-02-27 21:42:58.516955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.519125"], ["user_id", "988f2242-bec9-11e4-b688-705681abff85"], ["created_at", "2015-02-27 21:42:58.520247"], ["updated_at", "2015-02-27 21:42:58.520247"], ["token", "LqXWM3CDDgZIGm7CdTiIhPRjqq3rCU7zODblSE-y1AE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.524653"], ["updated_at", "2015-02-27 21:42:58.524653"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '988f2242-bec9-11e4-b688-705681abff85' AND "clubhouse_memberships"."organization_id" = '989047c6-bec9-11e4-b68a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "988f2242-bec9-11e4-b688-705681abff85"], ["organization_id", "989047c6-bec9-11e4-b68a-705681abff85"], ["created_at", "2015-02-27 21:42:58.528906"], ["updated_at", "2015-02-27 21:42:58.528906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-21" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-21", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:58.535361' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LqXWM3CDDgZIGm7CdTiIhPRjqq3rCU7zODblSE-y1AE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:58.536975"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:58.537975"], ["id", "988fac94-bec9-11e4-a101-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "988f2242-bec9-11e4-b688-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "988f2242-bec9-11e4-b688-705681abff85"], ["name", "org-21"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '989047c6-bec9-11e4-b68a-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:42:58.544974"], ["id", "989047c6-bec9-11e4-b68a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$/UDV8DG81UgI17ywvxjD2eaprg/7mVhWY62k.QwYVHHHW4P.xZtSq"], ["created_at", "2015-02-27 21:42:58.553630"], ["updated_at", "2015-02-27 21:42:58.553630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.555304"], ["user_id", "9894b3b0-bec9-11e4-b1d2-705681abff85"], ["created_at", "2015-02-27 21:42:58.556522"], ["updated_at", "2015-02-27 21:42:58.556522"], ["token", "3B59EIcF5v45jsixOxclCXb4DcARr-PKv4pZiBtLBHI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.560158"], ["updated_at", "2015-02-27 21:42:58.560158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9894b3b0-bec9-11e4-b1d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '9895aebe-bec9-11e4-85f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9894b3b0-bec9-11e4-b1d2-705681abff85"], ["organization_id", "9895aebe-bec9-11e4-85f1-705681abff85"], ["created_at", "2015-02-27 21:42:58.563929"], ["updated_at", "2015-02-27 21:42:58.563929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-22" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-22", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:42:58.568816' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3B59EIcF5v45jsixOxclCXb4DcARr-PKv4pZiBtLBHI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:42:58.570324"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:42:58.571266"], ["id", "98952fac-bec9-11e4-b6bc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9894b3b0-bec9-11e4-b1d2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "9894b3b0-bec9-11e4-b1d2-705681abff85"], ["name", "org-22"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$pP9AoGnno8xjRU2wxy5QcOZO27nVx.0w51fSwmSFTFed2j/tpjg7i"], ["created_at", "2015-02-27 21:42:58.581478"], ["updated_at", "2015-02-27 21:42:58.581478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:42:58.583078"], ["user_id", "9898f204-bec9-11e4-a038-705681abff85"], ["created_at", "2015-02-27 21:42:58.584085"], ["updated_at", "2015-02-27 21:42:58.584085"], ["token", "JFBoyXhyEx1ueD2RTtMJbEiNZmZazgFHnvA47lS0KfU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:42:58.588857"], ["updated_at", "2015-02-27 21:42:58.588857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9898f204-bec9-11e4-a038-705681abff85' AND "clubhouse_memberships"."organization_id" = '989a1c1a-bec9-11e4-8f2e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9898f204-bec9-11e4-a038-705681abff85"], ["organization_id", "989a1c1a-bec9-11e4-8f2e-705681abff85"], ["created_at", "2015-02-27 21:42:58.592658"], ["updated_at", "2015-02-27 21:42:58.592658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:42:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$yoyHv6EivOG.nYh8j3KrguiRTfioj1KW77/Hvp1HRWEHjXjqkXJhS"], ["created_at", "2015-02-27 21:46:46.128293"], ["updated_at", "2015-02-27 21:46:46.128293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.137337"], ["user_id", "2039fff0-beca-11e4-8433-705681abff85"], ["created_at", "2015-02-27 21:46:46.142543"], ["updated_at", "2015-02-27 21:46:46.142543"], ["token", "PBHkCVs-BQiy6tTAVVpAU4IkSv_Kabjhma-9Ag4oGWg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.158693"], ["updated_at", "2015-02-27 21:46:46.158693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2039fff0-beca-11e4-8433-705681abff85' AND "clubhouse_memberships"."organization_id" = '203e873c-beca-11e4-8503-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2039fff0-beca-11e4-8433-705681abff85"], ["organization_id", "203e873c-beca-11e4-8503-705681abff85"], ["created_at", "2015-02-27 21:46:46.169392"], ["updated_at", "2015-02-27 21:46:46.169392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Completed 204 No Content in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$3y2O9X9FVGDKp5UZmhOrO.w4OfwtQJ4azyoYO3GCcYvR13cp8Iyq."], ["created_at", "2015-02-27 21:46:46.201169"], ["updated_at", "2015-02-27 21:46:46.201169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.203231"], ["user_id", "2044fe46-beca-11e4-b75d-705681abff85"], ["created_at", "2015-02-27 21:46:46.204055"], ["updated_at", "2015-02-27 21:46:46.204055"], ["token", "uHmQDiE9FVVGvh8DF6TVCIH2RnDU_wQHtc--22Fr-ek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (5.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.207317"], ["updated_at", "2015-02-27 21:46:46.207317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2044fe46-beca-11e4-b75d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2045e338-beca-11e4-883d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2044fe46-beca-11e4-b75d-705681abff85"], ["organization_id", "2045e338-beca-11e4-883d-705681abff85"], ["created_at", "2015-02-27 21:46:46.216639"], ["updated_at", "2015-02-27 21:46:46.216639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-2" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-2"} Completed 204 No Content in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$F/Eh3V5OO1yz4F3/GimCWeOJctapL3VitQTuZHTWIRoF6LvGSj9Wi"], ["created_at", "2015-02-27 21:46:46.237834"], ["updated_at", "2015-02-27 21:46:46.237834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.239514"], ["user_id", "204a8d8e-beca-11e4-abea-705681abff85"], ["created_at", "2015-02-27 21:46:46.240706"], ["updated_at", "2015-02-27 21:46:46.240706"], ["token", "JwIMUhDiOUN-x-s6uITTmJnbmcTsuntqBSTB_0Rnfn4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.245692"], ["updated_at", "2015-02-27 21:46:46.245692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '204a8d8e-beca-11e4-abea-705681abff85' AND "clubhouse_memberships"."organization_id" = '204bbde4-beca-11e4-a9d4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "204a8d8e-beca-11e4-abea-705681abff85"], ["organization_id", "204bbde4-beca-11e4-a9d4-705681abff85"], ["created_at", "2015-02-27 21:46:46.248805"], ["updated_at", "2015-02-27 21:46:46.248805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-3" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-3", "organization"=>{}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.253625' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JwIMUhDiOUN-x-s6uITTmJnbmcTsuntqBSTB_0Rnfn4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.261881"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.263181"], ["id", "204b24c4-beca-11e4-a09b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "204a8d8e-beca-11e4-abea-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "204a8d8e-beca-11e4-abea-705681abff85"], ["name", "org-3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "204bbde4-beca-11e4-a9d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 34ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$IGSOY.T1KoflwCBuKKzkGu.6qj2ctKVQc123f5JQLNotnrZq790vq"], ["created_at", "2015-02-27 21:46:46.293322"], ["updated_at", "2015-02-27 21:46:46.293322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.294920"], ["user_id", "20530432-beca-11e4-b5ba-705681abff85"], ["created_at", "2015-02-27 21:46:46.295716"], ["updated_at", "2015-02-27 21:46:46.295716"], ["token", "h6UuVAvS7xdQU_Qogk3sMP4zX1MYwiM1rGKBwhJL5EI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.298875"], ["updated_at", "2015-02-27 21:46:46.298875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20530432-beca-11e4-b5ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '2053d9a2-beca-11e4-b77f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20530432-beca-11e4-b5ba-705681abff85"], ["organization_id", "2053d9a2-beca-11e4-b77f-705681abff85"], ["created_at", "2015-02-27 21:46:46.302001"], ["updated_at", "2015-02-27 21:46:46.302001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$C0EjDyC9PavdZavopAuPleAY.NHXp5IfUWqgeHHN3.eo/54ZaU7f6"], ["created_at", "2015-02-27 21:46:46.315414"], ["updated_at", "2015-02-27 21:46:46.315414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.317011"], ["user_id", "20566352-beca-11e4-ac56-705681abff85"], ["created_at", "2015-02-27 21:46:46.317784"], ["updated_at", "2015-02-27 21:46:46.317784"], ["token", "d-i99iTVt7KUI69YmnyWMMUEa6xyLE7m6rFQBaDSaGI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.321110"], ["updated_at", "2015-02-27 21:46:46.321110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20566352-beca-11e4-ac56-705681abff85' AND "clubhouse_memberships"."organization_id" = '20573f70-beca-11e4-9adc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20566352-beca-11e4-ac56-705681abff85"], ["organization_id", "20573f70-beca-11e4-9adc-705681abff85"], ["created_at", "2015-02-27 21:46:46.324296"], ["updated_at", "2015-02-27 21:46:46.324296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$JLt3J1fPaAxrBIqjzsxdcuVzoFdOlC/FsWYTE7zetnG6hzKnr.irC"], ["created_at", "2015-02-27 21:46:46.337806"], ["updated_at", "2015-02-27 21:46:46.337806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.339860"], ["user_id", "2059d0a0-beca-11e4-9568-705681abff85"], ["created_at", "2015-02-27 21:46:46.341179"], ["updated_at", "2015-02-27 21:46:46.341179"], ["token", "6goHVs8M99xLQZec7tDyAwbGB1U1ePb9rooZmWa6T5M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.345186"], ["updated_at", "2015-02-27 21:46:46.345186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2059d0a0-beca-11e4-9568-705681abff85' AND "clubhouse_memberships"."organization_id" = '205aeddc-beca-11e4-bb09-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2059d0a0-beca-11e4-9568-705681abff85"], ["organization_id", "205aeddc-beca-11e4-bb09-705681abff85"], ["created_at", "2015-02-27 21:46:46.348388"], ["updated_at", "2015-02-27 21:46:46.348388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/205aeddc-beca-11e4-bb09-705681abff85" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"205aeddc-beca-11e4-bb09-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.356601' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6goHVs8M99xLQZec7tDyAwbGB1U1ePb9rooZmWa6T5M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.358294"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.359233"], ["id", "205a609c-beca-11e4-a306-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2059d0a0-beca-11e4-9568-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "2059d0a0-beca-11e4-9568-705681abff85"], ["id", "205aeddc-beca-11e4-bb09-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '205aeddc-beca-11e4-bb09-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ZAIDOz31.e.PaHVWpoTuguvcSPaZAChcpsilUaVaVui9/od/JcVAi"], ["created_at", "2015-02-27 21:46:46.381583"], ["updated_at", "2015-02-27 21:46:46.381583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.383235"], ["user_id", "20607b44-beca-11e4-82d2-705681abff85"], ["created_at", "2015-02-27 21:46:46.383998"], ["updated_at", "2015-02-27 21:46:46.383998"], ["token", "Lw8oqLNNybOHp__BeM11XuhhCF0C1T-mQU6M0LqoH-A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.387223"], ["updated_at", "2015-02-27 21:46:46.387223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20607b44-beca-11e4-82d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '206155d2-beca-11e4-b60a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20607b44-beca-11e4-82d2-705681abff85"], ["organization_id", "206155d2-beca-11e4-b60a-705681abff85"], ["created_at", "2015-02-27 21:46:46.390557"], ["updated_at", "2015-02-27 21:46:46.390557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/206155d2-beca-11e4-b60a-705681abff85" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"206155d2-beca-11e4-b60a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.394892' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Lw8oqLNNybOHp__BeM11XuhhCF0C1T-mQU6M0LqoH-A"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.396736"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.398591"], ["id", "2060de22-beca-11e4-be46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20607b44-beca-11e4-82d2-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "20607b44-beca-11e4-82d2-705681abff85"], ["id", "206155d2-beca-11e4-b60a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '206155d2-beca-11e4-b60a-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:46:46.406610"], ["id", "206155d2-beca-11e4-b60a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.4ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Tlde8JbLXkPfOvnjcaRSt.LmK7hgv/jgPP/6NQNIY4YooRVT.mSJC"], ["created_at", "2015-02-27 21:46:46.418107"], ["updated_at", "2015-02-27 21:46:46.418107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.419932"], ["user_id", "20661158-beca-11e4-b4bd-705681abff85"], ["created_at", "2015-02-27 21:46:46.420755"], ["updated_at", "2015-02-27 21:46:46.420755"], ["token", "sdSKnh4vFpGqiyLfTk228YFsvarKI8hUzD4tYvq-07A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.425426"], ["updated_at", "2015-02-27 21:46:46.425426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20661158-beca-11e4-b4bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '20672be2-beca-11e4-85ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20661158-beca-11e4-b4bd-705681abff85"], ["organization_id", "20672be2-beca-11e4-85ca-705681abff85"], ["created_at", "2015-02-27 21:46:46.428693"], ["updated_at", "2015-02-27 21:46:46.428693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$R917qqD6ihMZZSSiCksHoe2Z5dm6ALqJ4Kw85S4tRwqoih53QFTMu"], ["created_at", "2015-02-27 21:46:46.442662"], ["updated_at", "2015-02-27 21:46:46.442662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.444303"], ["user_id", "2069cd84-beca-11e4-be58-705681abff85"], ["created_at", "2015-02-27 21:46:46.445034"], ["updated_at", "2015-02-27 21:46:46.445034"], ["token", "wQ_EGJSLizFFrCxUrEQ5NE-l5IlfrH2um3d6nLX4BGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.448354"], ["updated_at", "2015-02-27 21:46:46.448354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2069cd84-beca-11e4-be58-705681abff85' AND "clubhouse_memberships"."organization_id" = '206aa93e-beca-11e4-ad64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2069cd84-beca-11e4-be58-705681abff85"], ["organization_id", "206aa93e-beca-11e4-ad64-705681abff85"], ["created_at", "2015-02-27 21:46:46.451565"], ["updated_at", "2015-02-27 21:46:46.451565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.456260' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wQ_EGJSLizFFrCxUrEQ5NE-l5IlfrH2um3d6nLX4BGs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.458279"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.459408"], ["id", "206a3260-beca-11e4-bad5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2069cd84-beca-11e4-be58-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$EtBO59WujSBFbfW5tPXdfewgGp8G24.1v.IP1OvPeAvqFr49HMrjm"], ["created_at", "2015-02-27 21:46:46.474010"], ["updated_at", "2015-02-27 21:46:46.474010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.475967"], ["user_id", "206e9efe-beca-11e4-a3d6-705681abff85"], ["created_at", "2015-02-27 21:46:46.476924"], ["updated_at", "2015-02-27 21:46:46.476924"], ["token", "Qc5_iUVNzVxXPaM5r12_LYS6v6ikot7DtvRSV5bD4Ds"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.480324"], ["updated_at", "2015-02-27 21:46:46.480324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '206e9efe-beca-11e4-a3d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '206f8a44-beca-11e4-b6fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "206e9efe-beca-11e4-a3d6-705681abff85"], ["organization_id", "206f8a44-beca-11e4-b6fe-705681abff85"], ["created_at", "2015-02-27 21:46:46.483602"], ["updated_at", "2015-02-27 21:46:46.483602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.489492' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Qc5_iUVNzVxXPaM5r12_LYS6v6ikot7DtvRSV5bD4Ds"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.490907"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.491907"], ["id", "206f101e-beca-11e4-b93c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "206e9efe-beca-11e4-a3d6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.495925"], ["updated_at", "2015-02-27 21:46:46.495925"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2071ee1a-beca-11e4-9fbd-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '206e9efe-beca-11e4-a3d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '2071ee1a-beca-11e4-9fbd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "206e9efe-beca-11e4-a3d6-705681abff85"], ["admin", "t"], ["organization_id", "2071ee1a-beca-11e4-9fbd-705681abff85"], ["created_at", "2015-02-27 21:46:46.535871"], ["updated_at", "2015-02-27 21:46:46.535871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 49ms (Views: 0.6ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$v6hWG4M3T5/UEOei7rzxsekBR/DQ9F1A.XMMjJvlPPZ1nCOMLTT.O"], ["created_at", "2015-02-27 21:46:46.543966"], ["updated_at", "2015-02-27 21:46:46.543966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.545555"], ["user_id", "2079419c-beca-11e4-bf11-705681abff85"], ["created_at", "2015-02-27 21:46:46.546310"], ["updated_at", "2015-02-27 21:46:46.546310"], ["token", "SQlCz2BJqsukMevZRUULWJGKoiZJGGQqdMfm7AszRwk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.549397"], ["updated_at", "2015-02-27 21:46:46.549397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2079419c-beca-11e4-bf11-705681abff85' AND "clubhouse_memberships"."organization_id" = '207a1446-beca-11e4-bf55-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2079419c-beca-11e4-bf11-705681abff85"], ["organization_id", "207a1446-beca-11e4-bf55-705681abff85"], ["created_at", "2015-02-27 21:46:46.552520"], ["updated_at", "2015-02-27 21:46:46.552520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/207a1446-beca-11e4-bf55-705681abff85" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"207a1446-beca-11e4-bf55-705681abff85", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.557266' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SQlCz2BJqsukMevZRUULWJGKoiZJGGQqdMfm7AszRwk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.558977"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.560848"], ["id", "2079a1f0-beca-11e4-8737-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2079419c-beca-11e4-bf11-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "2079419c-beca-11e4-bf11-705681abff85"], ["id", "207a1446-beca-11e4-bf55-705681abff85"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$0tjN3HXWhUkf.CEytRXPJuzwmPm3PJ9uYOott69R.m7HEl5Jo8nR."], ["created_at", "2015-02-27 21:46:46.572107"], ["updated_at", "2015-02-27 21:46:46.572107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.573744"], ["user_id", "207d8e8c-beca-11e4-a397-705681abff85"], ["created_at", "2015-02-27 21:46:46.574929"], ["updated_at", "2015-02-27 21:46:46.574929"], ["token", "22uv72Hz3-KJxwB3AYzovlZpVLAjyA2eI2NVVLIkjaM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (4.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.579099"], ["updated_at", "2015-02-27 21:46:46.579099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '207d8e8c-beca-11e4-a397-705681abff85' AND "clubhouse_memberships"."organization_id" = '207ea1a0-beca-11e4-a959-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "207d8e8c-beca-11e4-a397-705681abff85"], ["organization_id", "207ea1a0-beca-11e4-a959-705681abff85"], ["created_at", "2015-02-27 21:46:46.587536"], ["updated_at", "2015-02-27 21:46:46.587536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$VNdkbk01M8uYbTyQkEgRW.jqlYJ0LiBq5egNbwEi3nDBptoxWbADa"], ["created_at", "2015-02-27 21:46:46.599921"], ["updated_at", "2015-02-27 21:46:46.599921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.601736"], ["user_id", "2081cd9e-beca-11e4-a427-705681abff85"], ["created_at", "2015-02-27 21:46:46.602524"], ["updated_at", "2015-02-27 21:46:46.602524"], ["token", "TkbxOmzlZUrKDYtXW-qnQ_aim5sJdpTr68vgXFWQrx4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.606555"], ["updated_at", "2015-02-27 21:46:46.606555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2081cd9e-beca-11e4-a427-705681abff85' AND "clubhouse_memberships"."organization_id" = '2082ce4c-beca-11e4-9d0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2081cd9e-beca-11e4-a427-705681abff85"], ["organization_id", "2082ce4c-beca-11e4-9d0e-705681abff85"], ["created_at", "2015-02-27 21:46:46.610898"], ["updated_at", "2015-02-27 21:46:46.610898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$5..a3I/GN9oerxmNkwMV9eBZ8hU6eKAyFdnLQaD99v7JHuoLxIo6e"], ["created_at", "2015-02-27 21:46:46.615606"], ["updated_at", "2015-02-27 21:46:46.615606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.618802"], ["updated_at", "2015-02-27 21:46:46.618802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '208431b0-beca-11e4-815b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2084c68e-beca-11e4-bb86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "208431b0-beca-11e4-815b-705681abff85"], ["organization_id", "2084c68e-beca-11e4-bb86-705681abff85"], ["created_at", "2015-02-27 21:46:46.622813"], ["updated_at", "2015-02-27 21:46:46.622813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.627269' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TkbxOmzlZUrKDYtXW-qnQ_aim5sJdpTr68vgXFWQrx4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.628695"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.629623"], ["id", "20823900-beca-11e4-82bd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2081cd9e-beca-11e4-a427-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "2081cd9e-beca-11e4-a427-705681abff85"]] Completed 200 OK in 9ms (Views: 2.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$3y.ew30XNwZ1Zlywi32gSuPYWpc4zzIPzne1yKcfXCht57s4/PyM6"], ["created_at", "2015-02-27 21:46:46.643334"], ["updated_at", "2015-02-27 21:46:46.643334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.644933"], ["user_id", "20886ba4-beca-11e4-ad1d-705681abff85"], ["created_at", "2015-02-27 21:46:46.645700"], ["updated_at", "2015-02-27 21:46:46.645700"], ["token", "H9AehGPV4Vc2W9AkW50V_58klaWI85msjN0K6XWzGDg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.648843"], ["updated_at", "2015-02-27 21:46:46.648843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20886ba4-beca-11e4-ad1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2089402e-beca-11e4-a35d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20886ba4-beca-11e4-ad1d-705681abff85"], ["organization_id", "2089402e-beca-11e4-a35d-705681abff85"], ["created_at", "2015-02-27 21:46:46.651967"], ["updated_at", "2015-02-27 21:46:46.651967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$g5wW2sdnNU4hy17gyOFu4urmLW1TQo5MFzNs1Fciplsf8p.Qmnn6C"], ["created_at", "2015-02-27 21:46:46.657341"], ["updated_at", "2015-02-27 21:46:46.657341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.660503"], ["updated_at", "2015-02-27 21:46:46.660503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '208a8f6a-beca-11e4-9699-705681abff85' AND "clubhouse_memberships"."organization_id" = '208b1552-beca-11e4-8aa0-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "208a8f6a-beca-11e4-9699-705681abff85"], ["organization_id", "208b1552-beca-11e4-8aa0-705681abff85"], ["created_at", "2015-02-27 21:46:46.664709"], ["updated_at", "2015-02-27 21:46:46.664709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (6.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$toIqfSmsRtW27H.DICNiFe09eOxqk05ntYyJieIAn3glHkJR.nZ.i"], ["created_at", "2015-02-27 21:46:46.678567"], ["updated_at", "2015-02-27 21:46:46.678567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.687369"], ["user_id", "208dd396-beca-11e4-8e9c-705681abff85"], ["created_at", "2015-02-27 21:46:46.688205"], ["updated_at", "2015-02-27 21:46:46.688205"], ["token", "4YHgdid4Mr5nv6lPt4nco_OdCYU4MkSckfj8nB-RCq4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.693354"], ["updated_at", "2015-02-27 21:46:46.693354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '208dd396-beca-11e4-8e9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '20900f62-beca-11e4-82df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "208dd396-beca-11e4-8e9c-705681abff85"], ["organization_id", "20900f62-beca-11e4-82df-705681abff85"], ["created_at", "2015-02-27 21:46:46.696748"], ["updated_at", "2015-02-27 21:46:46.696748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/20900f62-beca-11e4-82df-705681abff85" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"20900f62-beca-11e4-82df-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.701197' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4YHgdid4Mr5nv6lPt4nco_OdCYU4MkSckfj8nB-RCq4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.702614"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.703521"], ["id", "208f50cc-beca-11e4-bf70-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "208dd396-beca-11e4-8e9c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "208dd396-beca-11e4-8e9c-705681abff85"], ["id", "20900f62-beca-11e4-82df-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "20900f62-beca-11e4-82df-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$6k2kzrMT9QQewAvmCq1Y7u21vdwYndnrEW5Kkf9tT1UI2fAXB46Ya"], ["created_at", "2015-02-27 21:46:46.713848"], ["updated_at", "2015-02-27 21:46:46.713848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.715533"], ["user_id", "20932f4e-beca-11e4-b989-705681abff85"], ["created_at", "2015-02-27 21:46:46.716316"], ["updated_at", "2015-02-27 21:46:46.716316"], ["token", "IjvYZJ9KTuLj6O2mM_FBldfAgN6C3MkmhnCRX4rWGJY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.719755"], ["updated_at", "2015-02-27 21:46:46.719755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20932f4e-beca-11e4-b989-705681abff85' AND "clubhouse_memberships"."organization_id" = '2094130a-beca-11e4-af8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20932f4e-beca-11e4-b989-705681abff85"], ["organization_id", "2094130a-beca-11e4-af8c-705681abff85"], ["created_at", "2015-02-27 21:46:46.723065"], ["updated_at", "2015-02-27 21:46:46.723065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$mwW4JCXS96Y29doWsV7sxuLRyj4eX5MHxZLyurIKMzAcFVQQKQElW"], ["created_at", "2015-02-27 21:46:46.734543"], ["updated_at", "2015-02-27 21:46:46.734543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.736163"], ["user_id", "209658b8-beca-11e4-8ac0-705681abff85"], ["created_at", "2015-02-27 21:46:46.736950"], ["updated_at", "2015-02-27 21:46:46.736950"], ["token", "sDdBoYM_fGdNxVpXu38oYOPSHrY8ff4W-BZh_9MGL3Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.740041"], ["updated_at", "2015-02-27 21:46:46.740041"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '209658b8-beca-11e4-8ac0-705681abff85' AND "clubhouse_memberships"."organization_id" = '20972a5e-beca-11e4-8fcb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "209658b8-beca-11e4-8ac0-705681abff85"], ["organization_id", "20972a5e-beca-11e4-8fcb-705681abff85"], ["created_at", "2015-02-27 21:46:46.743968"], ["updated_at", "2015-02-27 21:46:46.743968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-19" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-19", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.749961' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sDdBoYM_fGdNxVpXu38oYOPSHrY8ff4W-BZh_9MGL3Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.751399"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.752370"], ["id", "2096b880-beca-11e4-9a47-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "209658b8-beca-11e4-8ac0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "209658b8-beca-11e4-8ac0-705681abff85"], ["name", "org-19"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ACj4OlC7oKvHrhQiruKlGu3r0XIoPngE8NitVIn3DP7kVizUEu5OW"], ["created_at", "2015-02-27 21:46:46.763107"], ["updated_at", "2015-02-27 21:46:46.763107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.764710"], ["user_id", "209ab232-beca-11e4-b398-705681abff85"], ["created_at", "2015-02-27 21:46:46.765485"], ["updated_at", "2015-02-27 21:46:46.765485"], ["token", "i6e9nicQp3JlFHLPLpvO4LN7cd2RwRC0mH5hmNOj7ek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.770702"], ["updated_at", "2015-02-27 21:46:46.770702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '209ab232-beca-11e4-b398-705681abff85' AND "clubhouse_memberships"."organization_id" = '209bdc84-beca-11e4-929b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "209ab232-beca-11e4-b398-705681abff85"], ["organization_id", "209bdc84-beca-11e4-929b-705681abff85"], ["created_at", "2015-02-27 21:46:46.774137"], ["updated_at", "2015-02-27 21:46:46.774137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$RDx4gSdc0GcQHOqY2jbuw.Nr5mZMVBNRs9tc0Wp6WEqPxVRAFEN2u"], ["created_at", "2015-02-27 21:46:46.785990"], ["updated_at", "2015-02-27 21:46:46.785990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.787557"], ["user_id", "209e3038-beca-11e4-bae1-705681abff85"], ["created_at", "2015-02-27 21:46:46.788383"], ["updated_at", "2015-02-27 21:46:46.788383"], ["token", "7Dvm3Yx5HI71M5TXb2ysPlsOB1D4vH6SmYQDP9RggdI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.791846"], ["updated_at", "2015-02-27 21:46:46.791846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '209e3038-beca-11e4-bae1-705681abff85' AND "clubhouse_memberships"."organization_id" = '209f1386-beca-11e4-a83b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "209e3038-beca-11e4-bae1-705681abff85"], ["organization_id", "209f1386-beca-11e4-a83b-705681abff85"], ["created_at", "2015-02-27 21:46:46.795514"], ["updated_at", "2015-02-27 21:46:46.795514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$V6iz8jEGpXRmMLI53EHXReA6A4sZPM/g9V7y8Jk9l5dHwfvg9IlB2"], ["created_at", "2015-02-27 21:46:46.810173"], ["updated_at", "2015-02-27 21:46:46.810173"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.812338"], ["user_id", "20a1e4f8-beca-11e4-a626-705681abff85"], ["created_at", "2015-02-27 21:46:46.813476"], ["updated_at", "2015-02-27 21:46:46.813476"], ["token", "6Sn2dgm7lvDVyE9VZ_Sg8pI6MzAYAo0pTB5Cn7C7e0c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.817013"], ["updated_at", "2015-02-27 21:46:46.817013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20a1e4f8-beca-11e4-a626-705681abff85' AND "clubhouse_memberships"."organization_id" = '20a2ea24-beca-11e4-b01a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20a1e4f8-beca-11e4-a626-705681abff85"], ["organization_id", "20a2ea24-beca-11e4-b01a-705681abff85"], ["created_at", "2015-02-27 21:46:46.820335"], ["updated_at", "2015-02-27 21:46:46.820335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-22" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-22", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.825754' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6Sn2dgm7lvDVyE9VZ_Sg8pI6MzAYAo0pTB5Cn7C7e0c"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.827617"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.829418"], ["id", "20a26e82-beca-11e4-8ad3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20a1e4f8-beca-11e4-a626-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "20a1e4f8-beca-11e4-a626-705681abff85"], ["name", "org-22"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '20a2ea24-beca-11e4-b01a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$ip57FMbA5Uwye/lESB5eKOi6lrUkXgJZQD75yLtDeh3wRB6Rj6f0y"], ["created_at", "2015-02-27 21:46:46.844551"], ["updated_at", "2015-02-27 21:46:46.844551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:46.846666"], ["user_id", "20a7283c-beca-11e4-a54a-705681abff85"], ["created_at", "2015-02-27 21:46:46.847508"], ["updated_at", "2015-02-27 21:46:46.847508"], ["token", "UklDORMGGaJ4qwnB4WpeQTIudr6a4MD1bEcdnQLGrLM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:46.850875"], ["updated_at", "2015-02-27 21:46:46.850875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20a7283c-beca-11e4-a54a-705681abff85' AND "clubhouse_memberships"."organization_id" = '20a81558-beca-11e4-92a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20a7283c-beca-11e4-a54a-705681abff85"], ["organization_id", "20a81558-beca-11e4-92a6-705681abff85"], ["created_at", "2015-02-27 21:46:46.853986"], ["updated_at", "2015-02-27 21:46:46.853986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-02-27 13:46:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:46.859712' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UklDORMGGaJ4qwnB4WpeQTIudr6a4MD1bEcdnQLGrLM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:46.861166"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:46.862115"], ["id", "20a79dbc-beca-11e4-97b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20a7283c-beca-11e4-a54a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "20a7283c-beca-11e4-a54a-705681abff85"], ["name", "org-23"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '20a81558-beca-11e4-92a6-705681abff85') LIMIT 1 SQL (2.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:46:46.867896"], ["id", "20a81558-beca-11e4-92a6-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 4.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$xRxhI/R/ZvTzRybinfyzouT/ztVndXmkjl.dWBR9kWXb8G6YjevKi"], ["created_at", "2015-02-27 21:46:59.451275"], ["updated_at", "2015-02-27 21:46:59.451275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.461058"], ["user_id", "282af3fe-beca-11e4-ba00-705681abff85"], ["created_at", "2015-02-27 21:46:59.466997"], ["updated_at", "2015-02-27 21:46:59.466997"], ["token", "euM5GhzrU_H3I1QjWhqSXUIwv40A8nnEawyfFkhmeGQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.475554"], ["updated_at", "2015-02-27 21:46:59.475554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '282af3fe-beca-11e4-ba00-705681abff85' AND "clubhouse_memberships"."organization_id" = '282e7f1a-beca-11e4-aea6-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "282af3fe-beca-11e4-ba00-705681abff85"], ["organization_id", "282e7f1a-beca-11e4-aea6-705681abff85"], ["created_at", "2015-02-27 21:46:59.486098"], ["updated_at", "2015-02-27 21:46:59.486098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$9KWPPGs1gLNUP8iLptNAzuL81uM4QpT1aDILEi10psIR2YrCB5dwS"], ["created_at", "2015-02-27 21:46:59.517529"], ["updated_at", "2015-02-27 21:46:59.517529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.519300"], ["user_id", "2834e260-beca-11e4-8356-705681abff85"], ["created_at", "2015-02-27 21:46:59.520064"], ["updated_at", "2015-02-27 21:46:59.520064"], ["token", "h_xvvpytaxqFknzutck_eoodTBC0F5DQ0EfxVB3NZYg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.523263"], ["updated_at", "2015-02-27 21:46:59.523263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2834e260-beca-11e4-8356-705681abff85' AND "clubhouse_memberships"."organization_id" = '2835bb54-beca-11e4-9bb5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2834e260-beca-11e4-8356-705681abff85"], ["organization_id", "2835bb54-beca-11e4-9bb5-705681abff85"], ["created_at", "2015-02-27 21:46:59.526568"], ["updated_at", "2015-02-27 21:46:59.526568"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/2835bb54-beca-11e4-9bb5-705681abff85" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"2835bb54-beca-11e4-9bb5-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:59.544467' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "h_xvvpytaxqFknzutck_eoodTBC0F5DQ0EfxVB3NZYg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:59.552378"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:59.553672"], ["id", "283547b4-beca-11e4-9af5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2834e260-beca-11e4-8356-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "2834e260-beca-11e4-8356-705681abff85"], ["id", "2835bb54-beca-11e4-9bb5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2835bb54-beca-11e4-9bb5-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 44ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$9bm.y9k.SlULY8XmTUlTA.UoHlxqIn5ZD9PTfIXKmbO8sTiYukAve"], ["created_at", "2015-02-27 21:46:59.593036"], ["updated_at", "2015-02-27 21:46:59.593036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.594864"], ["user_id", "28406cc0-beca-11e4-bf09-705681abff85"], ["created_at", "2015-02-27 21:46:59.595650"], ["updated_at", "2015-02-27 21:46:59.595650"], ["token", "aWUMfau6wipfY1NAqK46FTDuqsG8WhWCeZnXt83JzAk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.598764"], ["updated_at", "2015-02-27 21:46:59.598764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '28406cc0-beca-11e4-bf09-705681abff85' AND "clubhouse_memberships"."organization_id" = '2841412c-beca-11e4-a273-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "28406cc0-beca-11e4-bf09-705681abff85"], ["organization_id", "2841412c-beca-11e4-a273-705681abff85"], ["created_at", "2015-02-27 21:46:59.601848"], ["updated_at", "2015-02-27 21:46:59.601848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/2841412c-beca-11e4-a273-705681abff85" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"2841412c-beca-11e4-a273-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:59.606944' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aWUMfau6wipfY1NAqK46FTDuqsG8WhWCeZnXt83JzAk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:59.608593"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:59.609545"], ["id", "2840cfd0-beca-11e4-9ac4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "28406cc0-beca-11e4-bf09-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "28406cc0-beca-11e4-bf09-705681abff85"], ["id", "2841412c-beca-11e4-a273-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2841412c-beca-11e4-a273-705681abff85') LIMIT 1 SQL (2.0ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:46:59.615416"], ["id", "2841412c-beca-11e4-a273-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.9ms | ActiveRecord: 3.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$OIfhotF2DStpYPC0ExIYx.liaHV/dygA167YMrUzZ9WXvP3xyGNyS"], ["created_at", "2015-02-27 21:46:59.629632"], ["updated_at", "2015-02-27 21:46:59.629632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.631259"], ["user_id", "2845fa6e-beca-11e4-a1c1-705681abff85"], ["created_at", "2015-02-27 21:46:59.632033"], ["updated_at", "2015-02-27 21:46:59.632033"], ["token", "ZGn-ZfTCl6CLSMQt5QMD1UjcbvrfrDcMAHEucAOX80g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.635240"], ["updated_at", "2015-02-27 21:46:59.635240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2845fa6e-beca-11e4-a1c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '2846d182-beca-11e4-83a9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2845fa6e-beca-11e4-a1c1-705681abff85"], ["organization_id", "2846d182-beca-11e4-83a9-705681abff85"], ["created_at", "2015-02-27 21:46:59.639100"], ["updated_at", "2015-02-27 21:46:59.639100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$aLttEZ6mHy2led3r4aV3wOBh3kdFHrQA3ABdhEfrwyiH4KWOr7E92"], ["created_at", "2015-02-27 21:46:59.644182"], ["updated_at", "2015-02-27 21:46:59.644182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.647303"], ["updated_at", "2015-02-27 21:46:59.647303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '284830e0-beca-11e4-ace5-705681abff85' AND "clubhouse_memberships"."organization_id" = '2848a976-beca-11e4-942d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "284830e0-beca-11e4-ace5-705681abff85"], ["organization_id", "2848a976-beca-11e4-942d-705681abff85"], ["created_at", "2015-02-27 21:46:59.650590"], ["updated_at", "2015-02-27 21:46:59.650590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:59.655468' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZGn-ZfTCl6CLSMQt5QMD1UjcbvrfrDcMAHEucAOX80g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:59.656922"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:59.657878"], ["id", "28465b4e-beca-11e4-9599-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2845fa6e-beca-11e4-a1c1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "2845fa6e-beca-11e4-a1c1-705681abff85"]] Completed 200 OK in 8ms (Views: 2.2ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$eKIxcJtmTfE8WH3SMsYiN.hDVnr8yJDptLAentCBx6WMG7lUH.EBO"], ["created_at", "2015-02-27 21:46:59.669058"], ["updated_at", "2015-02-27 21:46:59.669058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.670637"], ["user_id", "284bfc98-beca-11e4-a8d3-705681abff85"], ["created_at", "2015-02-27 21:46:59.671367"], ["updated_at", "2015-02-27 21:46:59.671367"], ["token", "FqjXbpkmKXErb2C7roFd1XpwOsKYt99rhJHt0i48uHE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.674996"], ["updated_at", "2015-02-27 21:46:59.674996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '284bfc98-beca-11e4-a8d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '284ce6da-beca-11e4-8685-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "284bfc98-beca-11e4-a8d3-705681abff85"], ["organization_id", "284ce6da-beca-11e4-8685-705681abff85"], ["created_at", "2015-02-27 21:46:59.678343"], ["updated_at", "2015-02-27 21:46:59.678343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$tcfn9nD03IvfCEXFEdI.3umN34OoKRc3zcSXoxcN6kp.ILluRaOXS"], ["created_at", "2015-02-27 21:46:59.683672"], ["updated_at", "2015-02-27 21:46:59.683672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.686568"], ["updated_at", "2015-02-27 21:46:59.686568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '284e36f2-beca-11e4-8aad-705681abff85' AND "clubhouse_memberships"."organization_id" = '284ea81c-beca-11e4-ba20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "284e36f2-beca-11e4-8aad-705681abff85"], ["organization_id", "284ea81c-beca-11e4-ba20-705681abff85"], ["created_at", "2015-02-27 21:46:59.690998"], ["updated_at", "2015-02-27 21:46:59.690998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Dl6E8xVa9L1nAEZ/zFJGR.WeM65yJXS1bNCX5KhLpwypbDSPkLtLG"], ["created_at", "2015-02-27 21:46:59.706283"], ["updated_at", "2015-02-27 21:46:59.706283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.707879"], ["user_id", "2851aad0-beca-11e4-b7d0-705681abff85"], ["created_at", "2015-02-27 21:46:59.708645"], ["updated_at", "2015-02-27 21:46:59.708645"], ["token", "GuN3GqIceruUlnZA__AmVdYQrKois5HGdOTJgIqqBRY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.714203"], ["updated_at", "2015-02-27 21:46:59.714203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2851aad0-beca-11e4-b7d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '2852df7c-beca-11e4-aa59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2851aad0-beca-11e4-b7d0-705681abff85"], ["organization_id", "2852df7c-beca-11e4-aa59-705681abff85"], ["created_at", "2015-02-27 21:46:59.717835"], ["updated_at", "2015-02-27 21:46:59.717835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Completed 204 No Content in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$FXCda9U.TQfLUXzKEOUOZ.WAysmVWgymINAs.Fl4gzGw99Dc0Hgf."], ["created_at", "2015-02-27 21:46:59.730856"], ["updated_at", "2015-02-27 21:46:59.730856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.732551"], ["user_id", "28556f80-beca-11e4-8b54-705681abff85"], ["created_at", "2015-02-27 21:46:59.733288"], ["updated_at", "2015-02-27 21:46:59.733288"], ["token", "jcDq6Vt99_-nCzOL7U0mggb0FwGvWb99ILWHWI2dsVo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.736819"], ["updated_at", "2015-02-27 21:46:59.736819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '28556f80-beca-11e4-8b54-705681abff85' AND "clubhouse_memberships"."organization_id" = '285658be-beca-11e4-a546-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "28556f80-beca-11e4-8b54-705681abff85"], ["organization_id", "285658be-beca-11e4-a546-705681abff85"], ["created_at", "2015-02-27 21:46:59.740753"], ["updated_at", "2015-02-27 21:46:59.740753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-9" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-9"} Completed 204 No Content in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$AMiTu2ToLgOzy9ubCC.uOOwyq01z18DrS9l2LuNe4NH6IjIEOMwPm"], ["created_at", "2015-02-27 21:46:59.753150"], ["updated_at", "2015-02-27 21:46:59.753150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.754886"], ["user_id", "2858d594-beca-11e4-82ff-705681abff85"], ["created_at", "2015-02-27 21:46:59.755702"], ["updated_at", "2015-02-27 21:46:59.755702"], ["token", "3vPRcFSZmlp6HA-24eUwMzu4pYMasJUdWgC7AIPbn04"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.760216"], ["updated_at", "2015-02-27 21:46:59.760216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2858d594-beca-11e4-82ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '2859e8e4-beca-11e4-ac4a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2858d594-beca-11e4-82ff-705681abff85"], ["organization_id", "2859e8e4-beca-11e4-ac4a-705681abff85"], ["created_at", "2015-02-27 21:46:59.763571"], ["updated_at", "2015-02-27 21:46:59.763571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$ZPhxGu24f8DcbrFBDZz.P.0QjCyuefuZRMmlM80QRUfB6wstjYNYa"], ["created_at", "2015-02-27 21:46:59.775611"], ["updated_at", "2015-02-27 21:46:59.775611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.777314"], ["user_id", "285c4076-beca-11e4-8984-705681abff85"], ["created_at", "2015-02-27 21:46:59.778075"], ["updated_at", "2015-02-27 21:46:59.778075"], ["token", "JZU8Z3GGQPMCvhPJCVhBfnMwvwjw9E38GJo65OS3zRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.781208"], ["updated_at", "2015-02-27 21:46:59.781208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '285c4076-beca-11e4-8984-705681abff85' AND "clubhouse_memberships"."organization_id" = '285d17da-beca-11e4-ad77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "285c4076-beca-11e4-8984-705681abff85"], ["organization_id", "285d17da-beca-11e4-ad77-705681abff85"], ["created_at", "2015-02-27 21:46:59.784409"], ["updated_at", "2015-02-27 21:46:59.784409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:59.788982' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JZU8Z3GGQPMCvhPJCVhBfnMwvwjw9E38GJo65OS3zRg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:59.790446"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:59.791444"], ["id", "285ca3b8-beca-11e4-b8f0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "285c4076-beca-11e4-8984-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (12.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$tQTa.GGhkN5VnXsLiFPBoeobLByT0FK7TTt2ZXaqmKzxsohOK1kjm"], ["created_at", "2015-02-27 21:46:59.805694"], ["updated_at", "2015-02-27 21:46:59.805694"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.852803"], ["user_id", "2860e6d0-beca-11e4-9b8d-705681abff85"], ["created_at", "2015-02-27 21:46:59.853603"], ["updated_at", "2015-02-27 21:46:59.853603"], ["token", "xTbY7NDbnLNX2sLL5cWBC0J_Dl17Wr7sdMb_aCzvsfw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.857705"], ["updated_at", "2015-02-27 21:46:59.857705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2860e6d0-beca-11e4-9b8d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2868d0ca-beca-11e4-bfcc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2860e6d0-beca-11e4-9b8d-705681abff85"], ["organization_id", "2868d0ca-beca-11e4-bfcc-705681abff85"], ["created_at", "2015-02-27 21:46:59.861631"], ["updated_at", "2015-02-27 21:46:59.861631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:59.865956' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xTbY7NDbnLNX2sLL5cWBC0J_Dl17Wr7sdMb_aCzvsfw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:59.867817"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:59.869703"], ["id", "28682e2c-beca-11e4-b8ce-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2860e6d0-beca-11e4-9b8d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.874709"], ["updated_at", "2015-02-27 21:46:59.874709"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "286b5e80-beca-11e4-9b8b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2860e6d0-beca-11e4-9b8d-705681abff85' AND "clubhouse_memberships"."organization_id" = '286b5e80-beca-11e4-9b8b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2860e6d0-beca-11e4-9b8d-705681abff85"], ["admin", "t"], ["organization_id", "286b5e80-beca-11e4-9b8b-705681abff85"], ["created_at", "2015-02-27 21:46:59.880069"], ["updated_at", "2015-02-27 21:46:59.880069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.5ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$l3V7TCr4/kPv8GeeNMdlne9qIL.SD/Zfh/qwNvKKjwGFift0MU5ru"], ["created_at", "2015-02-27 21:46:59.888137"], ["updated_at", "2015-02-27 21:46:59.888137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.889844"], ["user_id", "286d6d56-beca-11e4-a4f3-705681abff85"], ["created_at", "2015-02-27 21:46:59.890617"], ["updated_at", "2015-02-27 21:46:59.890617"], ["token", "_CDBB_ySxWW1pT2u9Y1ruQ7kQHPg-5MbTYxlplYncog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.893792"], ["updated_at", "2015-02-27 21:46:59.893792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '286d6d56-beca-11e4-a4f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '286e43fc-beca-11e4-aaf7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "286d6d56-beca-11e4-a4f3-705681abff85"], ["organization_id", "286e43fc-beca-11e4-aaf7-705681abff85"], ["created_at", "2015-02-27 21:46:59.896786"], ["updated_at", "2015-02-27 21:46:59.896786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/286e43fc-beca-11e4-aaf7-705681abff85" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"286e43fc-beca-11e4-aaf7-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:59.901363' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_CDBB_ySxWW1pT2u9Y1ruQ7kQHPg-5MbTYxlplYncog"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:59.902790"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:59.903812"], ["id", "286dd14c-beca-11e4-9cef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "286d6d56-beca-11e4-a4f3-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "286d6d56-beca-11e4-a4f3-705681abff85"], ["id", "286e43fc-beca-11e4-aaf7-705681abff85"]] Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$k2/K7XtjJh4R2HPSjroXUOV/iUxfVKzBcO3YEHiI.sIQWS9cm/k3C"], ["created_at", "2015-02-27 21:46:59.915633"], ["updated_at", "2015-02-27 21:46:59.915633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.917353"], ["user_id", "28719f66-beca-11e4-ba4d-705681abff85"], ["created_at", "2015-02-27 21:46:59.918196"], ["updated_at", "2015-02-27 21:46:59.918196"], ["token", "ThN2gKMSvZ7lxgDfWj6yO4R9thI6JnotnOB1LxEJt4g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.922550"], ["updated_at", "2015-02-27 21:46:59.922550"]]  (10.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '28719f66-beca-11e4-ba4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2872b7c0-beca-11e4-9924-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "28719f66-beca-11e4-ba4d-705681abff85"], ["organization_id", "2872b7c0-beca-11e4-9924-705681abff85"], ["created_at", "2015-02-27 21:46:59.938623"], ["updated_at", "2015-02-27 21:46:59.938623"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$XqUamqh2NCv33.MpiwOb/ev1rOkcV5n0s3C5alRFg6JUvDqGh1v1a"], ["created_at", "2015-02-27 21:46:59.956176"], ["updated_at", "2015-02-27 21:46:59.956176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.957867"], ["user_id", "2877d020-beca-11e4-8caa-705681abff85"], ["created_at", "2015-02-27 21:46:59.958651"], ["updated_at", "2015-02-27 21:46:59.958651"], ["token", "Q6QbdkOKSV8N8RbQ34K1R3f63meBjLHUBxB9QD_tVdI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.961828"], ["updated_at", "2015-02-27 21:46:59.961828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2877d020-beca-11e4-8caa-705681abff85' AND "clubhouse_memberships"."organization_id" = '2878a5fe-beca-11e4-81d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2877d020-beca-11e4-8caa-705681abff85"], ["organization_id", "2878a5fe-beca-11e4-81d5-705681abff85"], ["created_at", "2015-02-27 21:46:59.964880"], ["updated_at", "2015-02-27 21:46:59.964880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$ePR5HLsYWBsnCoyKQ4iExezSimk.FshtmY8tcySaQMDS3WQd1GfBG"], ["created_at", "2015-02-27 21:46:59.976472"], ["updated_at", "2015-02-27 21:46:59.976472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:46:59.978129"], ["user_id", "287ae74c-beca-11e4-a572-705681abff85"], ["created_at", "2015-02-27 21:46:59.978889"], ["updated_at", "2015-02-27 21:46:59.978889"], ["token", "HBnH6P7EY3dVWqikgYOJe74y2-cDYPfLokxzDTrhDwA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:46:59.982088"], ["updated_at", "2015-02-27 21:46:59.982088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '287ae74c-beca-11e4-a572-705681abff85' AND "clubhouse_memberships"."organization_id" = '287bbdca-beca-11e4-96f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "287ae74c-beca-11e4-a572-705681abff85"], ["organization_id", "287bbdca-beca-11e4-96f5-705681abff85"], ["created_at", "2015-02-27 21:46:59.985221"], ["updated_at", "2015-02-27 21:46:59.985221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-16" for 127.0.0.1 at 2015-02-27 13:46:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-16", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:46:59.991058' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HBnH6P7EY3dVWqikgYOJe74y2-cDYPfLokxzDTrhDwA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:46:59.992686"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:46:59.993763"], ["id", "287b4818-beca-11e4-9872-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "287ae74c-beca-11e4-a572-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "287ae74c-beca-11e4-a572-705681abff85"], ["name", "org-16"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '287bbdca-beca-11e4-96f5-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$Vk/1mu8VEypqYebfnlQyeeKYdpiNl21kTdheISDGwcqLori2/FcT."], ["created_at", "2015-02-27 21:47:00.008090"], ["updated_at", "2015-02-27 21:47:00.008090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:47:00.010568"], ["user_id", "287fccf8-beca-11e4-9edf-705681abff85"], ["created_at", "2015-02-27 21:47:00.011393"], ["updated_at", "2015-02-27 21:47:00.011393"], ["token", "BCi0-sf-71wT7Ok9aMRl31bCflXPEXVgOYBRN93MmMg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:47:00.014771"], ["updated_at", "2015-02-27 21:47:00.014771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '287fccf8-beca-11e4-9edf-705681abff85' AND "clubhouse_memberships"."organization_id" = '2880bd98-beca-11e4-85e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "287fccf8-beca-11e4-9edf-705681abff85"], ["organization_id", "2880bd98-beca-11e4-85e5-705681abff85"], ["created_at", "2015-02-27 21:47:00.018203"], ["updated_at", "2015-02-27 21:47:00.018203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-17" for 127.0.0.1 at 2015-02-27 13:47:00 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-17", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:47:00.023047' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BCi0-sf-71wT7Ok9aMRl31bCflXPEXVgOYBRN93MmMg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:47:00.024601"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:47:00.025637"], ["id", "288042aa-beca-11e4-8681-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "287fccf8-beca-11e4-9edf-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "287fccf8-beca-11e4-9edf-705681abff85"], ["name", "org-17"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2880bd98-beca-11e4-85e5-705681abff85') LIMIT 1 SQL (0.7ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:47:00.032491"], ["id", "2880bd98-beca-11e4-85e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$8FPA2pnH6IqZ5qI4abqJBOwcxAPMLCvGiLhQvr5LgXT86iE1M8uaG"], ["created_at", "2015-02-27 21:47:00.042341"], ["updated_at", "2015-02-27 21:47:00.042341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:47:00.044318"], ["user_id", "2884f944-beca-11e4-bc44-705681abff85"], ["created_at", "2015-02-27 21:47:00.045214"], ["updated_at", "2015-02-27 21:47:00.045214"], ["token", "Z5W6Y7ITn1R3RUibwjNmjhKO8HYh-4X7oK010X9f5dE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:47:00.049198"], ["updated_at", "2015-02-27 21:47:00.049198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2884f944-beca-11e4-bc44-705681abff85' AND "clubhouse_memberships"."organization_id" = '2885fe2a-beca-11e4-804f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2884f944-beca-11e4-bc44-705681abff85"], ["organization_id", "2885fe2a-beca-11e4-804f-705681abff85"], ["created_at", "2015-02-27 21:47:00.054798"], ["updated_at", "2015-02-27 21:47:00.054798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-18" for 127.0.0.1 at 2015-02-27 13:47:00 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:47:00.061113' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Z5W6Y7ITn1R3RUibwjNmjhKO8HYh-4X7oK010X9f5dE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:47:00.062594"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:47:00.063616"], ["id", "28857392-beca-11e4-8c3a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2884f944-beca-11e4-bc44-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "2884f944-beca-11e4-bc44-705681abff85"], ["name", "org-18"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$gIOjJtW9BUYeuq6Tz4kEROJS1woclFqi0l0dNbpVeWm0nfa9218yy"], ["created_at", "2015-02-27 21:47:00.074060"], ["updated_at", "2015-02-27 21:47:00.074060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:47:00.075655"], ["user_id", "2889c988-beca-11e4-85bb-705681abff85"], ["created_at", "2015-02-27 21:47:00.076471"], ["updated_at", "2015-02-27 21:47:00.076471"], ["token", "rY06E-St52QEr45RphGmB2TKcPEHZAfawlkkaXY8lQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:47:00.079705"], ["updated_at", "2015-02-27 21:47:00.079705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2889c988-beca-11e4-85bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '288aa3a8-beca-11e4-8ead-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2889c988-beca-11e4-85bb-705681abff85"], ["organization_id", "288aa3a8-beca-11e4-8ead-705681abff85"], ["created_at", "2015-02-27 21:47:00.082923"], ["updated_at", "2015-02-27 21:47:00.082923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:47:00 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$L6aDh7.3YuGStXI/7VkUdO.hMNt60Ilu5tS6lyRxXAq4B1Mzw9b6e"], ["created_at", "2015-02-27 21:47:00.096964"], ["updated_at", "2015-02-27 21:47:00.096964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:47:00.098646"], ["user_id", "288d4bc6-beca-11e4-a0a3-705681abff85"], ["created_at", "2015-02-27 21:47:00.099447"], ["updated_at", "2015-02-27 21:47:00.099447"], ["token", "SBbv1KiLzqgSSPsDSkpnyrL3gzblIsHFLEfLZfVbBZE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:47:00.102726"], ["updated_at", "2015-02-27 21:47:00.102726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '288d4bc6-beca-11e4-a0a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '288e265e-beca-11e4-8d4c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "288d4bc6-beca-11e4-a0a3-705681abff85"], ["organization_id", "288e265e-beca-11e4-8d4c-705681abff85"], ["created_at", "2015-02-27 21:47:00.106838"], ["updated_at", "2015-02-27 21:47:00.106838"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/288e265e-beca-11e4-8d4c-705681abff85" for 127.0.0.1 at 2015-02-27 13:47:00 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"288e265e-beca-11e4-8d4c-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:47:00.112321' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SBbv1KiLzqgSSPsDSkpnyrL3gzblIsHFLEfLZfVbBZE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:47:00.113861"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:47:00.114943"], ["id", "288dafb2-beca-11e4-8b2c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "288d4bc6-beca-11e4-a0a3-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "288d4bc6-beca-11e4-a0a3-705681abff85"], ["id", "288e265e-beca-11e4-8d4c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "288e265e-beca-11e4-8d4c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$eVMkJn8SJfnTLUrlwsAjs.8/V5yQOzYxIfmuySQjki6ZI03q4aMmG"], ["created_at", "2015-02-27 21:47:00.129774"], ["updated_at", "2015-02-27 21:47:00.129774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:47:00.131656"], ["user_id", "289250d0-beca-11e4-b79e-705681abff85"], ["created_at", "2015-02-27 21:47:00.132516"], ["updated_at", "2015-02-27 21:47:00.132516"], ["token", "ovw-Q2kgSvpIPVMvV2SO3IRZQzqdq0suPlJkiDJS1YQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:47:00.136448"], ["updated_at", "2015-02-27 21:47:00.136448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '289250d0-beca-11e4-b79e-705681abff85' AND "clubhouse_memberships"."organization_id" = '28935278-beca-11e4-8b59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "289250d0-beca-11e4-b79e-705681abff85"], ["organization_id", "28935278-beca-11e4-8b59-705681abff85"], ["created_at", "2015-02-27 21:47:00.140712"], ["updated_at", "2015-02-27 21:47:00.140712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:47:00 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$.SM5Lpul/JwqUvHGplU3peBZbIHPKzMFxLe8eKxp9mzjV/fHFWZna"], ["created_at", "2015-02-27 21:47:00.154209"], ["updated_at", "2015-02-27 21:47:00.154209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:47:00.156300"], ["user_id", "28960f22-beca-11e4-9bac-705681abff85"], ["created_at", "2015-02-27 21:47:00.157522"], ["updated_at", "2015-02-27 21:47:00.157522"], ["token", "Dcsq1TZpYuEe9mxeEDLSZRVSCPOyQo2DNhndIz9lSb4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:47:00.161903"], ["updated_at", "2015-02-27 21:47:00.161903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '28960f22-beca-11e4-9bac-705681abff85' AND "clubhouse_memberships"."organization_id" = '2897434c-beca-11e4-ac0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "28960f22-beca-11e4-9bac-705681abff85"], ["organization_id", "2897434c-beca-11e4-ac0e-705681abff85"], ["created_at", "2015-02-27 21:47:00.166616"], ["updated_at", "2015-02-27 21:47:00.166616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-22" for 127.0.0.1 at 2015-02-27 13:47:00 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-22", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:47:00.171910' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Dcsq1TZpYuEe9mxeEDLSZRVSCPOyQo2DNhndIz9lSb4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:47:00.173548"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:47:00.174912"], ["id", "28969802-beca-11e4-9561-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "28960f22-beca-11e4-9bac-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "28960f22-beca-11e4-9bac-705681abff85"], ["name", "org-22"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "2897434c-beca-11e4-ac0e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$ke/HlYRVR3QMt66PwW/R5.s4RXs/7Gh.tXytmV6M.TYs9RYx1J7me"], ["created_at", "2015-02-27 21:47:00.186667"], ["updated_at", "2015-02-27 21:47:00.186667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:47:00.188428"], ["user_id", "289afc4e-beca-11e4-94b5-705681abff85"], ["created_at", "2015-02-27 21:47:00.189233"], ["updated_at", "2015-02-27 21:47:00.189233"], ["token", "JiT-CLLZ2ezjSe8rT7XvdEub4AQIofFsfRxqCCLPDvs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:47:00.193146"], ["updated_at", "2015-02-27 21:47:00.193146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '289afc4e-beca-11e4-94b5-705681abff85' AND "clubhouse_memberships"."organization_id" = '289bf950-beca-11e4-af90-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "289afc4e-beca-11e4-94b5-705681abff85"], ["organization_id", "289bf950-beca-11e4-af90-705681abff85"], ["created_at", "2015-02-27 21:47:00.197293"], ["updated_at", "2015-02-27 21:47:00.197293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:47:00 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$hhXhDiKmFu5kiaU34IJakeV7YqNx0erH93wWB5MmOXH4faYt1/rRO"], ["created_at", "2015-02-27 21:48:17.130488"], ["updated_at", "2015-02-27 21:48:17.130488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.146076"], ["user_id", "5678bc50-beca-11e4-a9bb-705681abff85"], ["created_at", "2015-02-27 21:48:17.154173"], ["updated_at", "2015-02-27 21:48:17.154173"], ["token", "PQAU052i16SGRqC8jYjhfJKDsCAZl-Wc3rTEgTZsMzY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.164260"], ["updated_at", "2015-02-27 21:48:17.164260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5678bc50-beca-11e4-a9bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '567ceece-beca-11e4-bf7c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5678bc50-beca-11e4-a9bb-705681abff85"], ["organization_id", "567ceece-beca-11e4-bf7c-705681abff85"], ["created_at", "2015-02-27 21:48:17.175594"], ["updated_at", "2015-02-27 21:48:17.175594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$rkHesdvvvWO9FMkPehjh3.W5RIvR/CaiMDkkpBrLZ/tj5jpeyerd2"], ["created_at", "2015-02-27 21:48:17.206379"], ["updated_at", "2015-02-27 21:48:17.206379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.208137"], ["user_id", "56834198-beca-11e4-93f0-705681abff85"], ["created_at", "2015-02-27 21:48:17.208939"], ["updated_at", "2015-02-27 21:48:17.208939"], ["token", "DQKm5Fieuy8l-jDajvEsAVbx76sWQjIx_K3W29MfBvc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.212186"], ["updated_at", "2015-02-27 21:48:17.212186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56834198-beca-11e4-93f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '56841f00-beca-11e4-b369-705681abff85') LIMIT 1 SQL (6.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56834198-beca-11e4-93f0-705681abff85"], ["organization_id", "56841f00-beca-11e4-b369-705681abff85"], ["created_at", "2015-02-27 21:48:17.215325"], ["updated_at", "2015-02-27 21:48:17.215325"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-2" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-2"} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$yoAU6T2O.rZX7nd9cr9t3uaTb8sSHUjMsRE.y3tQejaiSz/bRlffe"], ["created_at", "2015-02-27 21:48:17.240935"], ["updated_at", "2015-02-27 21:48:17.240935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.242686"], ["user_id", "56888914-beca-11e4-b1c4-705681abff85"], ["created_at", "2015-02-27 21:48:17.243468"], ["updated_at", "2015-02-27 21:48:17.243468"], ["token", "z1K8EpwsL3blVDVXcxCvli3oAQsgmcyz69Mevds7ohA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.246640"], ["updated_at", "2015-02-27 21:48:17.246640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56888914-beca-11e4-b1c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '568960be-beca-11e4-9092-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56888914-beca-11e4-b1c4-705681abff85"], ["organization_id", "568960be-beca-11e4-9092-705681abff85"], ["created_at", "2015-02-27 21:48:17.249812"], ["updated_at", "2015-02-27 21:48:17.249812"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-3" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-3", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.255852' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z1K8EpwsL3blVDVXcxCvli3oAQsgmcyz69Mevds7ohA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.263118"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.264260"], ["id", "5688ece2-beca-11e4-8736-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56888914-beca-11e4-b1c4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "56888914-beca-11e4-b1c4-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "568960be-beca-11e4-9092-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 31ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$sly9YW5UNFHKf9f6UuI4wehE14.bo/Xz5jUH7uLtbjtBloFzhXmja"], ["created_at", "2015-02-27 21:48:17.292980"], ["updated_at", "2015-02-27 21:48:17.292980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.294638"], ["user_id", "569076ba-beca-11e4-b274-705681abff85"], ["created_at", "2015-02-27 21:48:17.295396"], ["updated_at", "2015-02-27 21:48:17.295396"], ["token", "h4E8tB4COD6JYwZsRKZiQo6SnMjnZRRe5A0umwRGYrQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.298600"], ["updated_at", "2015-02-27 21:48:17.298600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '569076ba-beca-11e4-b274-705681abff85' AND "clubhouse_memberships"."organization_id" = '56914e32-beca-11e4-94ee-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "569076ba-beca-11e4-b274-705681abff85"], ["organization_id", "56914e32-beca-11e4-94ee-705681abff85"], ["created_at", "2015-02-27 21:48:17.302254"], ["updated_at", "2015-02-27 21:48:17.302254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$LoU6R7Cpk0/DcYCqYJdwqOXgtogjKgDhI8ltKP7GQPn46PU3ze3Bm"], ["created_at", "2015-02-27 21:48:17.316234"], ["updated_at", "2015-02-27 21:48:17.316234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.318007"], ["user_id", "5694056e-beca-11e4-8565-705681abff85"], ["created_at", "2015-02-27 21:48:17.318809"], ["updated_at", "2015-02-27 21:48:17.318809"], ["token", "CbXlHII10NhWmEZmngjhzc-6Y0vxZfyU9icfaLiV5w4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.322032"], ["updated_at", "2015-02-27 21:48:17.322032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5694056e-beca-11e4-8565-705681abff85' AND "clubhouse_memberships"."organization_id" = '5694e1dc-beca-11e4-8bf1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5694056e-beca-11e4-8565-705681abff85"], ["organization_id", "5694e1dc-beca-11e4-8bf1-705681abff85"], ["created_at", "2015-02-27 21:48:17.326161"], ["updated_at", "2015-02-27 21:48:17.326161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$qIPN5JPuzUd0r..tftWSn.jMHB7gBOWbLeakCnPRHO.XoqW.YRyu2"], ["created_at", "2015-02-27 21:48:17.339672"], ["updated_at", "2015-02-27 21:48:17.339672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.341453"], ["user_id", "56979a1c-beca-11e4-aa54-705681abff85"], ["created_at", "2015-02-27 21:48:17.342254"], ["updated_at", "2015-02-27 21:48:17.342254"], ["token", "Ig5ErVFiiQbj3qgORGKAw2nJdUkd9DlzjQN7Gz5IlWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.345930"], ["updated_at", "2015-02-27 21:48:17.345930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56979a1c-beca-11e4-aa54-705681abff85' AND "clubhouse_memberships"."organization_id" = '56988db4-beca-11e4-b7ac-705681abff85') LIMIT 1 SQL (4.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56979a1c-beca-11e4-aa54-705681abff85"], ["organization_id", "56988db4-beca-11e4-b7ac-705681abff85"], ["created_at", "2015-02-27 21:48:17.349728"], ["updated_at", "2015-02-27 21:48:17.349728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.361061' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ig5ErVFiiQbj3qgORGKAw2nJdUkd9DlzjQN7Gz5IlWs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.362611"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.363545"], ["id", "569808a8-beca-11e4-938a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56979a1c-beca-11e4-aa54-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$/qS2.mT4.ajqYlnDLO3xoucSiwlJ6w8UVOg/39irPzpy8UfdTTyxC"], ["created_at", "2015-02-27 21:48:17.385819"], ["updated_at", "2015-02-27 21:48:17.385819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.388241"], ["user_id", "569eb900-beca-11e4-bb4a-705681abff85"], ["created_at", "2015-02-27 21:48:17.389216"], ["updated_at", "2015-02-27 21:48:17.389216"], ["token", "z4b3EgWJHIWw0E50SaLU4vUEYWKoqdV9bWl70cuCRKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.392564"], ["updated_at", "2015-02-27 21:48:17.392564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '569eb900-beca-11e4-bb4a-705681abff85' AND "clubhouse_memberships"."organization_id" = '569fa3ec-beca-11e4-8b1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "569eb900-beca-11e4-bb4a-705681abff85"], ["organization_id", "569fa3ec-beca-11e4-8b1e-705681abff85"], ["created_at", "2015-02-27 21:48:17.395863"], ["updated_at", "2015-02-27 21:48:17.395863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.400453' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z4b3EgWJHIWw0E50SaLU4vUEYWKoqdV9bWl70cuCRKg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.402234"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.403253"], ["id", "569f2d22-beca-11e4-88c5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "569eb900-beca-11e4-bb4a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.407258"], ["updated_at", "2015-02-27 21:48:17.407258"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "56a1e580-beca-11e4-be93-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '569eb900-beca-11e4-bb4a-705681abff85' AND "clubhouse_memberships"."organization_id" = '56a1e580-beca-11e4-be93-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "569eb900-beca-11e4-bb4a-705681abff85"], ["admin", "t"], ["organization_id", "56a1e580-beca-11e4-be93-705681abff85"], ["created_at", "2015-02-27 21:48:17.412328"], ["updated_at", "2015-02-27 21:48:17.412328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.9ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$3hOAz.eTOvWME4JqpKGNHucvixE8J9eem1as1oYUEODzss9dbp2OS"], ["created_at", "2015-02-27 21:48:17.424753"], ["updated_at", "2015-02-27 21:48:17.424753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.426500"], ["user_id", "56a49492-beca-11e4-9fd6-705681abff85"], ["created_at", "2015-02-27 21:48:17.427286"], ["updated_at", "2015-02-27 21:48:17.427286"], ["token", "jmwDd4sA0RMCyEUrYrc89GAtgy7kRxQm_dYmfb0u7ps"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.430507"], ["updated_at", "2015-02-27 21:48:17.430507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56a49492-beca-11e4-9fd6-705681abff85' AND "clubhouse_memberships"."organization_id" = '56a57006-beca-11e4-8198-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56a49492-beca-11e4-9fd6-705681abff85"], ["organization_id", "56a57006-beca-11e4-8198-705681abff85"], ["created_at", "2015-02-27 21:48:17.433772"], ["updated_at", "2015-02-27 21:48:17.433772"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$8S98nfRcVbA6mcWoYLuk1.tuKsfCUgtjSNS9qPvCln2jCQmVTlaRm"], ["created_at", "2015-02-27 21:48:17.448513"], ["updated_at", "2015-02-27 21:48:17.448513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.450192"], ["user_id", "56a83200-beca-11e4-8e17-705681abff85"], ["created_at", "2015-02-27 21:48:17.450994"], ["updated_at", "2015-02-27 21:48:17.450994"], ["token", "raBqacwchXpYLn-sG8v5TEjkMrFHBc1C61DSxMhCNLA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.454616"], ["updated_at", "2015-02-27 21:48:17.454616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56a83200-beca-11e4-8e17-705681abff85' AND "clubhouse_memberships"."organization_id" = '56a91e0e-beca-11e4-9dd6-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56a83200-beca-11e4-8e17-705681abff85"], ["organization_id", "56a91e0e-beca-11e4-9dd6-705681abff85"], ["created_at", "2015-02-27 21:48:17.457769"], ["updated_at", "2015-02-27 21:48:17.457769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/56a91e0e-beca-11e4-9dd6-705681abff85" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"56a91e0e-beca-11e4-9dd6-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.464431' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "raBqacwchXpYLn-sG8v5TEjkMrFHBc1C61DSxMhCNLA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.465935"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.466917"], ["id", "56a8a0e6-beca-11e4-aefa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56a83200-beca-11e4-8e17-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "56a83200-beca-11e4-8e17-705681abff85"], ["id", "56a91e0e-beca-11e4-9dd6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '56a91e0e-beca-11e4-9dd6-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$HqtiRS714ynxm0k3GVUIq.8F0/jK.zYkAArjZB4ibUjMV7UFQeK4q"], ["created_at", "2015-02-27 21:48:17.482846"], ["updated_at", "2015-02-27 21:48:17.482846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.484593"], ["user_id", "56ad6f86-beca-11e4-989e-705681abff85"], ["created_at", "2015-02-27 21:48:17.485748"], ["updated_at", "2015-02-27 21:48:17.485748"], ["token", "eLvwh4Lvo38oEtNUBfBYOyy4NinAMd_A8ZQ5w0jdKEI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.490484"], ["updated_at", "2015-02-27 21:48:17.490484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56ad6f86-beca-11e4-989e-705681abff85' AND "clubhouse_memberships"."organization_id" = '56ae9802-beca-11e4-9c5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56ad6f86-beca-11e4-989e-705681abff85"], ["organization_id", "56ae9802-beca-11e4-9c5a-705681abff85"], ["created_at", "2015-02-27 21:48:17.493735"], ["updated_at", "2015-02-27 21:48:17.493735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/56ae9802-beca-11e4-9c5a-705681abff85" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"56ae9802-beca-11e4-9c5a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.498197' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eLvwh4Lvo38oEtNUBfBYOyy4NinAMd_A8ZQ5w0jdKEI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.499629"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.500713"], ["id", "56ae0a86-beca-11e4-966b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56ad6f86-beca-11e4-989e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "56ad6f86-beca-11e4-989e-705681abff85"], ["id", "56ae9802-beca-11e4-9c5a-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '56ae9802-beca-11e4-9c5a-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:48:17.536392"], ["id", "56ae9802-beca-11e4-9c5a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 41ms (Views: 0.6ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$d03Iieybe/7o3oRbVJP5LOSUVraoQZZj6Ket8i/0uwZ0SpztRkQOi"], ["created_at", "2015-02-27 21:48:17.544553"], ["updated_at", "2015-02-27 21:48:17.544553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.546179"], ["user_id", "56b6d85a-beca-11e4-bd40-705681abff85"], ["created_at", "2015-02-27 21:48:17.546944"], ["updated_at", "2015-02-27 21:48:17.546944"], ["token", "H28aMfGh46h0E79UTVx7GlrQCWym57dqIYjgkUR7UbA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.550161"], ["updated_at", "2015-02-27 21:48:17.550161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56b6d85a-beca-11e4-bd40-705681abff85' AND "clubhouse_memberships"."organization_id" = '56b7b4b4-beca-11e4-b5a2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56b6d85a-beca-11e4-bd40-705681abff85"], ["organization_id", "56b7b4b4-beca-11e4-b5a2-705681abff85"], ["created_at", "2015-02-27 21:48:17.553473"], ["updated_at", "2015-02-27 21:48:17.553473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/56b7b4b4-beca-11e4-b5a2-705681abff85" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"56b7b4b4-beca-11e4-b5a2-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.559442' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "H28aMfGh46h0E79UTVx7GlrQCWym57dqIYjgkUR7UbA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.560905"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.561913"], ["id", "56b73a70-beca-11e4-b25e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56b6d85a-beca-11e4-bd40-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "56b6d85a-beca-11e4-bd40-705681abff85"], ["id", "56b7b4b4-beca-11e4-b5a2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "56b7b4b4-beca-11e4-b5a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$d1OqMOA.3hMDP5qlw3tosOWM9JGW7tGUWK8jk4q5IrczO1kxwAOFW"], ["created_at", "2015-02-27 21:48:17.571931"], ["updated_at", "2015-02-27 21:48:17.571931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.573627"], ["user_id", "56bb05ec-beca-11e4-9955-705681abff85"], ["created_at", "2015-02-27 21:48:17.574378"], ["updated_at", "2015-02-27 21:48:17.574378"], ["token", "ZA0o-f51ob6-ydpDmzcNuWUf4uG7Kid02yNI2rxWiy4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.578960"], ["updated_at", "2015-02-27 21:48:17.578960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56bb05ec-beca-11e4-9955-705681abff85' AND "clubhouse_memberships"."organization_id" = '56bc21d4-beca-11e4-a0ed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56bb05ec-beca-11e4-9955-705681abff85"], ["organization_id", "56bc21d4-beca-11e4-a0ed-705681abff85"], ["created_at", "2015-02-27 21:48:17.582703"], ["updated_at", "2015-02-27 21:48:17.582703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$.0a9gQ5bVVVtg48O5lsqCe/ehzst2FhyI2ZTApaqbI8.hfma2Aqey"], ["created_at", "2015-02-27 21:48:17.595579"], ["updated_at", "2015-02-27 21:48:17.595579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.597191"], ["user_id", "56bea288-beca-11e4-b6be-705681abff85"], ["created_at", "2015-02-27 21:48:17.597985"], ["updated_at", "2015-02-27 21:48:17.597985"], ["token", "7QrjxdOrxDBXVejMKy5RdvJAt5SlBjgmBiZFeoTSCH8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.601213"], ["updated_at", "2015-02-27 21:48:17.601213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56bea288-beca-11e4-b6be-705681abff85' AND "clubhouse_memberships"."organization_id" = '56bf7f78-beca-11e4-9259-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56bea288-beca-11e4-b6be-705681abff85"], ["organization_id", "56bf7f78-beca-11e4-9259-705681abff85"], ["created_at", "2015-02-27 21:48:17.604644"], ["updated_at", "2015-02-27 21:48:17.604644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$8CXFI7mydJzxOiVgZSI/Y.YnJsN6BtPbEphLVCEqJ8DFkwbYeKGWG"], ["created_at", "2015-02-27 21:48:17.609327"], ["updated_at", "2015-02-27 21:48:17.609327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.612815"], ["updated_at", "2015-02-27 21:48:17.612815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56c0bd5c-beca-11e4-8ffd-705681abff85' AND "clubhouse_memberships"."organization_id" = '56c144ca-beca-11e4-9c1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56c0bd5c-beca-11e4-8ffd-705681abff85"], ["organization_id", "56c144ca-beca-11e4-9c1e-705681abff85"], ["created_at", "2015-02-27 21:48:17.616593"], ["updated_at", "2015-02-27 21:48:17.616593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.621549' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7QrjxdOrxDBXVejMKy5RdvJAt5SlBjgmBiZFeoTSCH8"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.622946"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.624882"], ["id", "56bf0462-beca-11e4-96b1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56bea288-beca-11e4-b6be-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "56bea288-beca-11e4-b6be-705681abff85"]] Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$Hw.qnS82SjtHrNUEKfL9MuGoo8y1ME5c3CyTL2bn/mijjUNrVwu8G"], ["created_at", "2015-02-27 21:48:17.639038"], ["updated_at", "2015-02-27 21:48:17.639038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.640824"], ["user_id", "56c54ac0-beca-11e4-b0ea-705681abff85"], ["created_at", "2015-02-27 21:48:17.641594"], ["updated_at", "2015-02-27 21:48:17.641594"], ["token", "NarxwxXzlwcrJhpMmfWDJdMf7qUiEE0aAa6WCgDhBUA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.644817"], ["updated_at", "2015-02-27 21:48:17.644817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56c54ac0-beca-11e4-b0ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '56c6242c-beca-11e4-b2c4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56c54ac0-beca-11e4-b0ea-705681abff85"], ["organization_id", "56c6242c-beca-11e4-b2c4-705681abff85"], ["created_at", "2015-02-27 21:48:17.648017"], ["updated_at", "2015-02-27 21:48:17.648017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$EdDAoSNrkGNfQ7YfixZsuefsazeVuYCq0fWinlKnikq0.ngRhS/Xy"], ["created_at", "2015-02-27 21:48:17.652487"], ["updated_at", "2015-02-27 21:48:17.652487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.655705"], ["updated_at", "2015-02-27 21:48:17.655705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56c752de-beca-11e4-8366-705681abff85' AND "clubhouse_memberships"."organization_id" = '56c7dd08-beca-11e4-aefb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56c752de-beca-11e4-8366-705681abff85"], ["organization_id", "56c7dd08-beca-11e4-aefb-705681abff85"], ["created_at", "2015-02-27 21:48:17.659473"], ["updated_at", "2015-02-27 21:48:17.659473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$6IGtvtDJ7owtAumGkkvqdugeF5S1QEE3ay.xjRIalbJDGO6KzYbdW"], ["created_at", "2015-02-27 21:48:17.672030"], ["updated_at", "2015-02-27 21:48:17.672030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.674162"], ["user_id", "56ca547a-beca-11e4-afee-705681abff85"], ["created_at", "2015-02-27 21:48:17.675185"], ["updated_at", "2015-02-27 21:48:17.675185"], ["token", "YDZVRu35gQIYT5flI7VvB00akqno_7FfSRAB5kC2ZOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.681419"], ["updated_at", "2015-02-27 21:48:17.681419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56ca547a-beca-11e4-afee-705681abff85' AND "clubhouse_memberships"."organization_id" = '56cbb9e6-beca-11e4-80e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56ca547a-beca-11e4-afee-705681abff85"], ["organization_id", "56cbb9e6-beca-11e4-80e8-705681abff85"], ["created_at", "2015-02-27 21:48:17.684769"], ["updated_at", "2015-02-27 21:48:17.684769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-17" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-17", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.690398' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YDZVRu35gQIYT5flI7VvB00akqno_7FfSRAB5kC2ZOo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.691838"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.692792"], ["id", "56cad666-beca-11e4-8249-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56ca547a-beca-11e4-afee-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "56ca547a-beca-11e4-afee-705681abff85"], ["name", "org-17"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$DjZ51kyuYNmnQthPlHV.AOCqKdZVRHPTpoJUEm1OkbFfp.Y1UxWgm"], ["created_at", "2015-02-27 21:48:17.702769"], ["updated_at", "2015-02-27 21:48:17.702769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.704534"], ["user_id", "56cefdae-beca-11e4-821c-705681abff85"], ["created_at", "2015-02-27 21:48:17.705386"], ["updated_at", "2015-02-27 21:48:17.705386"], ["token", "oTZ03SQPxxP-qasrmbEcJJL8DnG5NcyFkaONAFeeDWE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.708881"], ["updated_at", "2015-02-27 21:48:17.708881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56cefdae-beca-11e4-821c-705681abff85' AND "clubhouse_memberships"."organization_id" = '56cfee80-beca-11e4-8b89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56cefdae-beca-11e4-821c-705681abff85"], ["organization_id", "56cfee80-beca-11e4-8b89-705681abff85"], ["created_at", "2015-02-27 21:48:17.712335"], ["updated_at", "2015-02-27 21:48:17.712335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$WO/TPbs9MTsa6/DsCTUaDeiD8yBYal4RXI4SUVsfcbRjFtnx/40ma"], ["created_at", "2015-02-27 21:48:17.724249"], ["updated_at", "2015-02-27 21:48:17.724249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.725848"], ["user_id", "56d244be-beca-11e4-830a-705681abff85"], ["created_at", "2015-02-27 21:48:17.726626"], ["updated_at", "2015-02-27 21:48:17.726626"], ["token", "aHd3s-PWLgHzItqzDD3-x4IpFAUVEKE9vCZcCYK1Lac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.729931"], ["updated_at", "2015-02-27 21:48:17.729931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56d244be-beca-11e4-830a-705681abff85' AND "clubhouse_memberships"."organization_id" = '56d31f88-beca-11e4-b716-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56d244be-beca-11e4-830a-705681abff85"], ["organization_id", "56d31f88-beca-11e4-b716-705681abff85"], ["created_at", "2015-02-27 21:48:17.733164"], ["updated_at", "2015-02-27 21:48:17.733164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/56d31f88-beca-11e4-b716-705681abff85" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"56d31f88-beca-11e4-b716-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.739632' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aHd3s-PWLgHzItqzDD3-x4IpFAUVEKE9vCZcCYK1Lac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.741189"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.742107"], ["id", "56d2a576-beca-11e4-b277-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56d244be-beca-11e4-830a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "56d244be-beca-11e4-830a-705681abff85"], ["id", "56d31f88-beca-11e4-b716-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$0cSYJIIyVSug6TjMCAMqNuh8QWNRBCErFzgO4SXM3xfTLT/7l.9qi"], ["created_at", "2015-02-27 21:48:17.752599"], ["updated_at", "2015-02-27 21:48:17.752599"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.755372"], ["user_id", "56d6a11c-beca-11e4-8621-705681abff85"], ["created_at", "2015-02-27 21:48:17.756298"], ["updated_at", "2015-02-27 21:48:17.756298"], ["token", "NO7h0FsM9Mnq639JI0OaD55Awvk75IoZpqs0jF8zdn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.759781"], ["updated_at", "2015-02-27 21:48:17.759781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56d6a11c-beca-11e4-8621-705681abff85' AND "clubhouse_memberships"."organization_id" = '56d7ad64-beca-11e4-bcb6-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56d6a11c-beca-11e4-8621-705681abff85"], ["organization_id", "56d7ad64-beca-11e4-bcb6-705681abff85"], ["created_at", "2015-02-27 21:48:17.762915"], ["updated_at", "2015-02-27 21:48:17.762915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$KoNtGs.4GPfmfhn9UbiCHeWUe8MCGKtTmEeznOAynch4c6VZ9uUWy"], ["created_at", "2015-02-27 21:48:17.777438"], ["updated_at", "2015-02-27 21:48:17.777438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.779047"], ["user_id", "56da61a8-beca-11e4-9eb8-705681abff85"], ["created_at", "2015-02-27 21:48:17.779794"], ["updated_at", "2015-02-27 21:48:17.779794"], ["token", "l0XI8xE3-JjoqoWg1eWRHRAWtiw1yrXsibivHLryj8g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.783422"], ["updated_at", "2015-02-27 21:48:17.783422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56da61a8-beca-11e4-9eb8-705681abff85' AND "clubhouse_memberships"."organization_id" = '56db48e8-beca-11e4-bf0b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56da61a8-beca-11e4-9eb8-705681abff85"], ["organization_id", "56db48e8-beca-11e4-bf0b-705681abff85"], ["created_at", "2015-02-27 21:48:17.786599"], ["updated_at", "2015-02-27 21:48:17.786599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$V2lN.n5hOi7P7d2B9g5MLeExavE/QdCHH7nDLu/l7474xTcUuq2Cq"], ["created_at", "2015-02-27 21:48:17.799961"], ["updated_at", "2015-02-27 21:48:17.799961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.801759"], ["user_id", "56ddd306-beca-11e4-8db9-705681abff85"], ["created_at", "2015-02-27 21:48:17.802619"], ["updated_at", "2015-02-27 21:48:17.802619"], ["token", "ev6WBLKh_72qx0qzRYjKIL-1u0YsMC2ogw7oUVUJA1Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.807557"], ["updated_at", "2015-02-27 21:48:17.807557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56ddd306-beca-11e4-8db9-705681abff85' AND "clubhouse_memberships"."organization_id" = '56defee8-beca-11e4-b621-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56ddd306-beca-11e4-8db9-705681abff85"], ["organization_id", "56defee8-beca-11e4-b621-705681abff85"], ["created_at", "2015-02-27 21:48:17.812033"], ["updated_at", "2015-02-27 21:48:17.812033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-22" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-22", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.816829' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ev6WBLKh_72qx0qzRYjKIL-1u0YsMC2ogw7oUVUJA1Q"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.818818"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.820780"], ["id", "56de45c0-beca-11e4-ae25-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56ddd306-beca-11e4-8db9-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "56ddd306-beca-11e4-8db9-705681abff85"], ["name", "org-22"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '56defee8-beca-11e4-b621-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$qMvK3GtkpTYZSBL301uRou9pgQp/2UOP1UNcGJVVep1SPZBDUNErC"], ["created_at", "2015-02-27 21:48:17.834212"], ["updated_at", "2015-02-27 21:48:17.834212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:48:17.835908"], ["user_id", "56e30de4-beca-11e4-b6a6-705681abff85"], ["created_at", "2015-02-27 21:48:17.836698"], ["updated_at", "2015-02-27 21:48:17.836698"], ["token", "smtCQVDnx6kmGGWrB2RV3O-OE79Dftrr_rmHvNud6XI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:48:17.840670"], ["updated_at", "2015-02-27 21:48:17.840670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56e30de4-beca-11e4-b6a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '56e40ea6-beca-11e4-8a8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56e30de4-beca-11e4-b6a6-705681abff85"], ["organization_id", "56e40ea6-beca-11e4-8a8a-705681abff85"], ["created_at", "2015-02-27 21:48:17.844737"], ["updated_at", "2015-02-27 21:48:17.844737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-02-27 13:48:17 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:48:17.849223' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "smtCQVDnx6kmGGWrB2RV3O-OE79Dftrr_rmHvNud6XI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:48:17.850637"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:48:17.851571"], ["id", "56e3757c-beca-11e4-ac28-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56e30de4-beca-11e4-b6a6-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "56e30de4-beca-11e4-b6a6-705681abff85"], ["name", "org-23"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '56e40ea6-beca-11e4-8a8a-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:48:17.858678"], ["id", "56e40ea6-beca-11e4-8a8a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$0pcFw2qNLKdhLBBJ34MgcejYXtZ2YAjJhrpJw74TFr6NFr7K3x4lm"], ["created_at", "2015-02-27 21:49:46.699087"], ["updated_at", "2015-02-27 21:49:46.699087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:46.708371"], ["user_id", "8bdaed8c-beca-11e4-963d-705681abff85"], ["created_at", "2015-02-27 21:49:46.716117"], ["updated_at", "2015-02-27 21:49:46.716117"], ["token", "vhLKVqLKnuadZmdhEa9n3OW4CWoCj5mvz5KrLkENkEA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (5.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:46.726201"], ["updated_at", "2015-02-27 21:49:46.726201"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bdaed8c-beca-11e4-963d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bdef008-beca-11e4-af9e-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bdaed8c-beca-11e4-963d-705681abff85"], ["organization_id", "8bdef008-beca-11e4-af9e-705681abff85"], ["created_at", "2015-02-27 21:49:46.744968"], ["updated_at", "2015-02-27 21:49:46.744968"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:49:46 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$p6TSOTnRg7O6rnDIGu4axO6sptj/9fLtlpef/0BZbAld.bq/Vsrpy"], ["created_at", "2015-02-27 21:49:46.782021"], ["updated_at", "2015-02-27 21:49:46.782021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:46.783711"], ["user_id", "8be76a12-beca-11e4-9711-705681abff85"], ["created_at", "2015-02-27 21:49:46.784560"], ["updated_at", "2015-02-27 21:49:46.784560"], ["token", "IgtxYqU3HgsTpRKBBJkqd5AhDth9z8gMXJmgOAA2fSc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:46.787958"], ["updated_at", "2015-02-27 21:49:46.787958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8be76a12-beca-11e4-9711-705681abff85' AND "clubhouse_memberships"."organization_id" = '8be84f68-beca-11e4-8b77-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8be76a12-beca-11e4-9711-705681abff85"], ["organization_id", "8be84f68-beca-11e4-8b77-705681abff85"], ["created_at", "2015-02-27 21:49:46.791669"], ["updated_at", "2015-02-27 21:49:46.791669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:49:46 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:46.804692' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IgtxYqU3HgsTpRKBBJkqd5AhDth9z8gMXJmgOAA2fSc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:46.813718"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:46.815189"], ["id", "8be7d3bc-beca-11e4-82f9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8be76a12-beca-11e4-9711-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:46.826790"], ["updated_at", "2015-02-27 21:49:46.826790"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8bee444a-beca-11e4-b6fb-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8be76a12-beca-11e4-9711-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bee444a-beca-11e4-b6fb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8be76a12-beca-11e4-9711-705681abff85"], ["admin", "t"], ["organization_id", "8bee444a-beca-11e4-b6fb-705681abff85"], ["created_at", "2015-02-27 21:49:46.839024"], ["updated_at", "2015-02-27 21:49:46.839024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 46ms (Views: 1.6ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$WPl9ijclnMXiJfcf/kvPtOCE0Eh65TcjEYLXC1PFQAK5WxGnZs3cC"], ["created_at", "2015-02-27 21:49:46.850104"], ["updated_at", "2015-02-27 21:49:46.850104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:46.851805"], ["user_id", "8bf1cd54-beca-11e4-91ce-705681abff85"], ["created_at", "2015-02-27 21:49:46.852548"], ["updated_at", "2015-02-27 21:49:46.852548"], ["token", "qLx73ehNB3ZDpRduLiAlrB4mMnwAVdecyB_ZpbUN97U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:46.855803"], ["updated_at", "2015-02-27 21:49:46.855803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bf1cd54-beca-11e4-91ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bf2a832-beca-11e4-9093-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bf1cd54-beca-11e4-91ce-705681abff85"], ["organization_id", "8bf2a832-beca-11e4-9093-705681abff85"], ["created_at", "2015-02-27 21:49:46.859009"], ["updated_at", "2015-02-27 21:49:46.859009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:49:46 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:46.865246' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qLx73ehNB3ZDpRduLiAlrB4mMnwAVdecyB_ZpbUN97U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (5.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:46.866665"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:46.867623"], ["id", "8bf23122-beca-11e4-82d5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bf1cd54-beca-11e4-91ce-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$1r1f4/Ca2lacCTfhJGTkAOMufhhdd2cRbTv1Ug5PKR4PsKokk78Hu"], ["created_at", "2015-02-27 21:49:46.893270"], ["updated_at", "2015-02-27 21:49:46.893270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:46.895284"], ["user_id", "8bf86dee-beca-11e4-ab05-705681abff85"], ["created_at", "2015-02-27 21:49:46.896117"], ["updated_at", "2015-02-27 21:49:46.896117"], ["token", "FSZk5o8zWcgSYdocAC-LZBlJnLGZwUBooI5lKc56_2c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:46.899362"], ["updated_at", "2015-02-27 21:49:46.899362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bf86dee-beca-11e4-ab05-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bf94d0e-beca-11e4-9698-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bf86dee-beca-11e4-ab05-705681abff85"], ["organization_id", "8bf94d0e-beca-11e4-9698-705681abff85"], ["created_at", "2015-02-27 21:49:46.902518"], ["updated_at", "2015-02-27 21:49:46.902518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:49:46 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$JwJaxN7RUyeXI6TYbX0Jdevv.v.MfSbC7tBuuy/QabCZ9TSGN5syi"], ["created_at", "2015-02-27 21:49:46.914460"], ["updated_at", "2015-02-27 21:49:46.914460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:46.916292"], ["user_id", "8bfb9f50-beca-11e4-b5a2-705681abff85"], ["created_at", "2015-02-27 21:49:46.917257"], ["updated_at", "2015-02-27 21:49:46.917257"], ["token", "_zDVDe_LCvBGA8DParWoZ_WwBieAzlBsypfKY1cUjPo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:46.920679"], ["updated_at", "2015-02-27 21:49:46.920679"]]  (8.5ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bfb9f50-beca-11e4-b5a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bfc8ef6-beca-11e4-a625-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bfb9f50-beca-11e4-b5a2-705681abff85"], ["organization_id", "8bfc8ef6-beca-11e4-a625-705681abff85"], ["created_at", "2015-02-27 21:49:46.935540"], ["updated_at", "2015-02-27 21:49:46.935540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/8bfc8ef6-beca-11e4-a625-705681abff85" for 127.0.0.1 at 2015-02-27 13:49:46 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"8bfc8ef6-beca-11e4-a625-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:46.945867' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_zDVDe_LCvBGA8DParWoZ_WwBieAzlBsypfKY1cUjPo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:46.948324"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:46.950125"], ["id", "8bfc1412-beca-11e4-b7a7-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bfb9f50-beca-11e4-b5a2-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "8bfb9f50-beca-11e4-b5a2-705681abff85"], ["id", "8bfc8ef6-beca-11e4-a625-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8bfc8ef6-beca-11e4-a625-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 26ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$cA0cE6ajIQ62OtNW9jU9be5NuKvQl29GxFxSiTZmyc8rwOuhgxAsi"], ["created_at", "2015-02-27 21:49:46.980819"], ["updated_at", "2015-02-27 21:49:46.980819"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:46.984212"], ["user_id", "8c05e096-beca-11e4-8c4e-705681abff85"], ["created_at", "2015-02-27 21:49:46.985766"], ["updated_at", "2015-02-27 21:49:46.985766"], ["token", "wZ13WedLssMH0gBr7_RRvYBHuBNxeBSDR3ANyt37v4I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:46.991890"], ["updated_at", "2015-02-27 21:49:46.991890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c05e096-beca-11e4-8c4e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c0783ba-beca-11e4-afe0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c05e096-beca-11e4-8c4e-705681abff85"], ["organization_id", "8c0783ba-beca-11e4-afe0-705681abff85"], ["created_at", "2015-02-27 21:49:46.996827"], ["updated_at", "2015-02-27 21:49:46.996827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$IWOP3B7DuuOcbTWkbHiOM.YRpUOENFJmo4uSIi1UdocYlcRy9vr1O"], ["created_at", "2015-02-27 21:49:47.010713"], ["updated_at", "2015-02-27 21:49:47.010713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.013052"], ["user_id", "8c0a651c-beca-11e4-bbf5-705681abff85"], ["created_at", "2015-02-27 21:49:47.013880"], ["updated_at", "2015-02-27 21:49:47.013880"], ["token", "rpnjTYtEyyeq6rk5mF1VARen5j7xuevNdmJceuap7nY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.017433"], ["updated_at", "2015-02-27 21:49:47.017433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c0a651c-beca-11e4-bbf5-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c0b54e0-beca-11e4-b8f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c0a651c-beca-11e4-bbf5-705681abff85"], ["organization_id", "8c0b54e0-beca-11e4-b8f6-705681abff85"], ["created_at", "2015-02-27 21:49:47.022817"], ["updated_at", "2015-02-27 21:49:47.022817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8c0b54e0-beca-11e4-b8f6-705681abff85" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"8c0b54e0-beca-11e4-b8f6-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:47.028804' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rpnjTYtEyyeq6rk5mF1VARen5j7xuevNdmJceuap7nY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:47.030226"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:47.031165"], ["id", "8c0ad150-beca-11e4-816f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c0a651c-beca-11e4-bbf5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "8c0a651c-beca-11e4-bbf5-705681abff85"], ["id", "8c0b54e0-beca-11e4-b8f6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8c0b54e0-beca-11e4-b8f6-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:49:47.038920"], ["id", "8c0b54e0-beca-11e4-b8f6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$brqWx1v40iEn/L.VM7CDT.qmdtUvyULuOyT2eZSGsJi4uCBDEMgpq"], ["created_at", "2015-02-27 21:49:47.046754"], ["updated_at", "2015-02-27 21:49:47.046754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.048485"], ["user_id", "8c0fcd90-beca-11e4-97e4-705681abff85"], ["created_at", "2015-02-27 21:49:47.049264"], ["updated_at", "2015-02-27 21:49:47.049264"], ["token", "bFjGB3r_blq5OMWG_sCVuatvHQMWyH78-0O0jckrEpI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.052407"], ["updated_at", "2015-02-27 21:49:47.052407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c0fcd90-beca-11e4-97e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c10a684-beca-11e4-9437-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c0fcd90-beca-11e4-97e4-705681abff85"], ["organization_id", "8c10a684-beca-11e4-9437-705681abff85"], ["created_at", "2015-02-27 21:49:47.055615"], ["updated_at", "2015-02-27 21:49:47.055615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8c10a684-beca-11e4-9437-705681abff85" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"8c10a684-beca-11e4-9437-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:47.060755' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bFjGB3r_blq5OMWG_sCVuatvHQMWyH78-0O0jckrEpI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:47.062196"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:47.063130"], ["id", "8c1033e8-beca-11e4-b877-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c0fcd90-beca-11e4-97e4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "8c0fcd90-beca-11e4-97e4-705681abff85"], ["id", "8c10a684-beca-11e4-9437-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8c10a684-beca-11e4-9437-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$hD7/RC29Tv9nOlwQmSvQweBdech/LwAEpyxMF/vwl.sd4fSREmqy2"], ["created_at", "2015-02-27 21:49:47.075167"], ["updated_at", "2015-02-27 21:49:47.075167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.076793"], ["user_id", "8c1422d2-beca-11e4-a8fb-705681abff85"], ["created_at", "2015-02-27 21:49:47.077636"], ["updated_at", "2015-02-27 21:49:47.077636"], ["token", "KIlkJY2iU-O2D11L53LXdsVyO8VgMJa6u_eDUjSdfWM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.081453"], ["updated_at", "2015-02-27 21:49:47.081453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c1422d2-beca-11e4-a8fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c151840-beca-11e4-a3f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c1422d2-beca-11e4-a8fb-705681abff85"], ["organization_id", "8c151840-beca-11e4-a3f6-705681abff85"], ["created_at", "2015-02-27 21:49:47.084795"], ["updated_at", "2015-02-27 21:49:47.084795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$hl9d4RJVULtAxH7/NbQYaOzkVgq5gn9.HWZbKBaYmQZUiNENpSZQ2"], ["created_at", "2015-02-27 21:49:47.097309"], ["updated_at", "2015-02-27 21:49:47.097309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.098962"], ["user_id", "8c178490-beca-11e4-b6f8-705681abff85"], ["created_at", "2015-02-27 21:49:47.099737"], ["updated_at", "2015-02-27 21:49:47.099737"], ["token", "KqTru2CYtC-M9T-z3179W1eMnTjJVRyf-v9u3bwHhp4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.103264"], ["updated_at", "2015-02-27 21:49:47.103264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c178490-beca-11e4-b6f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c1cee94-beca-11e4-bf72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c178490-beca-11e4-b6f8-705681abff85"], ["organization_id", "8c1cee94-beca-11e4-bf72-705681abff85"], ["created_at", "2015-02-27 21:49:47.136300"], ["updated_at", "2015-02-27 21:49:47.136300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-10" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:47.140438' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KqTru2CYtC-M9T-z3179W1eMnTjJVRyf-v9u3bwHhp4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:47.141837"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:47.143653"], ["id", "8c17e818-beca-11e4-8ae3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c178490-beca-11e4-b6f8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "8c178490-beca-11e4-b6f8-705681abff85"], ["name", "org-10"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8c1cee94-beca-11e4-bf72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 5.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$89k8faTnisxStujuulujveCbA9JdfaG8I44H/kS4vZSkN8h1g79hG"], ["created_at", "2015-02-27 21:49:47.158786"], ["updated_at", "2015-02-27 21:49:47.158786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.160437"], ["user_id", "8c20e6c0-beca-11e4-b90e-705681abff85"], ["created_at", "2015-02-27 21:49:47.161227"], ["updated_at", "2015-02-27 21:49:47.161227"], ["token", "9ln-6D288xB8Tl4y_QnsZNkN7nudCUd23NWfX05JzCw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.164523"], ["updated_at", "2015-02-27 21:49:47.164523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c20e6c0-beca-11e4-b90e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c21c284-beca-11e4-8fa4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c20e6c0-beca-11e4-b90e-705681abff85"], ["organization_id", "8c21c284-beca-11e4-8fa4-705681abff85"], ["created_at", "2015-02-27 21:49:47.167758"], ["updated_at", "2015-02-27 21:49:47.167758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$558WJ03X3PgAt/pK3k4cyOJtnh1TqrfYN6GpChi9/yXD13dY9kCs."], ["created_at", "2015-02-27 21:49:47.172140"], ["updated_at", "2015-02-27 21:49:47.172140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.175103"], ["updated_at", "2015-02-27 21:49:47.175103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c22ebe6-beca-11e4-8905-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c2362e2-beca-11e4-b594-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c22ebe6-beca-11e4-8905-705681abff85"], ["organization_id", "8c2362e2-beca-11e4-b594-705681abff85"], ["created_at", "2015-02-27 21:49:47.178349"], ["updated_at", "2015-02-27 21:49:47.178349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$UwyHloC4jVULw13v0svN8eK1ldmzcW3G0PFsXHzS72wro5LwOvqOq"], ["created_at", "2015-02-27 21:49:47.190669"], ["updated_at", "2015-02-27 21:49:47.190669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.192540"], ["user_id", "8c25c6d6-beca-11e4-bc02-705681abff85"], ["created_at", "2015-02-27 21:49:47.193479"], ["updated_at", "2015-02-27 21:49:47.193479"], ["token", "HgfKsFdgZg4FXWmMSqvW8TFpCXkCD2BHTnqIQiOV-aE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.197698"], ["updated_at", "2015-02-27 21:49:47.197698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c25c6d6-beca-11e4-bc02-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c26d3e6-beca-11e4-8de2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c25c6d6-beca-11e4-bc02-705681abff85"], ["organization_id", "8c26d3e6-beca-11e4-8de2-705681abff85"], ["created_at", "2015-02-27 21:49:47.200819"], ["updated_at", "2015-02-27 21:49:47.200819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$xNI.yQZb1bx1X.fJaIpi2.FLikZiyK.SFITV2cqgCqEACeTe0cl4e"], ["created_at", "2015-02-27 21:49:47.205069"], ["updated_at", "2015-02-27 21:49:47.205069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.208220"], ["updated_at", "2015-02-27 21:49:47.208220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c27f230-beca-11e4-ada3-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c28720a-beca-11e4-a827-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c27f230-beca-11e4-ada3-705681abff85"], ["organization_id", "8c28720a-beca-11e4-a827-705681abff85"], ["created_at", "2015-02-27 21:49:47.211600"], ["updated_at", "2015-02-27 21:49:47.211600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:47.216375' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HgfKsFdgZg4FXWmMSqvW8TFpCXkCD2BHTnqIQiOV-aE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:47.217853"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:47.219434"], ["id", "8c26510a-beca-11e4-ad98-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c25c6d6-beca-11e4-bc02-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "8c25c6d6-beca-11e4-bc02-705681abff85"]] Completed 200 OK in 9ms (Views: 2.3ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$KFWY3DxVjGfy2B2TrJDTL.RkqhugSDfXAI.GxBpduo1kiSywPmPri"], ["created_at", "2015-02-27 21:49:47.231409"], ["updated_at", "2015-02-27 21:49:47.231409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.233173"], ["user_id", "8c2bfca4-beca-11e4-a3d1-705681abff85"], ["created_at", "2015-02-27 21:49:47.233975"], ["updated_at", "2015-02-27 21:49:47.233975"], ["token", "awvA72RbicCtifJwjweTN9hvpZC9GmIbDIFE7TRfmN4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.237126"], ["updated_at", "2015-02-27 21:49:47.237126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c2bfca4-beca-11e4-a3d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c2cd610-beca-11e4-984c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c2bfca4-beca-11e4-a3d1-705681abff85"], ["organization_id", "8c2cd610-beca-11e4-984c-705681abff85"], ["created_at", "2015-02-27 21:49:47.240283"], ["updated_at", "2015-02-27 21:49:47.240283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$TjVd38fiLirMZAEXyhH4RO5LX3v3PadRMPdzecxxH3X5HwbehwJBG"], ["created_at", "2015-02-27 21:49:47.251942"], ["updated_at", "2015-02-27 21:49:47.251942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.253616"], ["user_id", "8c2f1cf4-beca-11e4-9c98-705681abff85"], ["created_at", "2015-02-27 21:49:47.254408"], ["updated_at", "2015-02-27 21:49:47.254408"], ["token", "GAJB9OWUm8e8TOG0FgjX1H6HqQx-yxig-mIz3RZPO6U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.257622"], ["updated_at", "2015-02-27 21:49:47.257622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c2f1cf4-beca-11e4-9c98-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c30056a-beca-11e4-8dfc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c2f1cf4-beca-11e4-9c98-705681abff85"], ["organization_id", "8c30056a-beca-11e4-8dfc-705681abff85"], ["created_at", "2015-02-27 21:49:47.261687"], ["updated_at", "2015-02-27 21:49:47.261687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/8c30056a-beca-11e4-8dfc-705681abff85" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"8c30056a-beca-11e4-8dfc-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:47.266472' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GAJB9OWUm8e8TOG0FgjX1H6HqQx-yxig-mIz3RZPO6U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:47.267923"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:47.268903"], ["id", "8c2f81f8-beca-11e4-9392-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c2f1cf4-beca-11e4-9c98-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "8c2f1cf4-beca-11e4-9c98-705681abff85"], ["id", "8c30056a-beca-11e4-8dfc-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$RCYOa3Xf6MVTiRkUtg4m7uYifxGVrpTV6q8Z1vPfK/nZvrEuV9Ptu"], ["created_at", "2015-02-27 21:49:47.280772"], ["updated_at", "2015-02-27 21:49:47.280772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.282460"], ["user_id", "8c3384ba-beca-11e4-8928-705681abff85"], ["created_at", "2015-02-27 21:49:47.283222"], ["updated_at", "2015-02-27 21:49:47.283222"], ["token", "7tEDL8OIqRRT-uN6kCdqKtZTji39B6UiSS2Odll0wMI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.286465"], ["updated_at", "2015-02-27 21:49:47.286465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c3384ba-beca-11e4-8928-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c345d86-beca-11e4-af27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c3384ba-beca-11e4-8928-705681abff85"], ["organization_id", "8c345d86-beca-11e4-af27-705681abff85"], ["created_at", "2015-02-27 21:49:47.289603"], ["updated_at", "2015-02-27 21:49:47.289603"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$uG9WZTeGFly./qQoDwr85.v9ioFBQxVBSE6wAtHzMc0gZaxnmB7Dy"], ["created_at", "2015-02-27 21:49:47.304167"], ["updated_at", "2015-02-27 21:49:47.304167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.305817"], ["user_id", "8c3715f8-beca-11e4-a1a4-705681abff85"], ["created_at", "2015-02-27 21:49:47.306566"], ["updated_at", "2015-02-27 21:49:47.306566"], ["token", "_DkEHcnKsKANTAgLFno_Ymqa9eAHN8le5Mo0wFmcV3o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.309746"], ["updated_at", "2015-02-27 21:49:47.309746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c3715f8-beca-11e4-a1a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c37ea46-beca-11e4-9545-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c3715f8-beca-11e4-a1a4-705681abff85"], ["organization_id", "8c37ea46-beca-11e4-9545-705681abff85"], ["created_at", "2015-02-27 21:49:47.313334"], ["updated_at", "2015-02-27 21:49:47.313334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-18" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-18", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:47.320188' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_DkEHcnKsKANTAgLFno_Ymqa9eAHN8le5Mo0wFmcV3o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:47.321801"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:47.322810"], ["id", "8c377728-beca-11e4-9888-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c3715f8-beca-11e4-a1a4-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "8c3715f8-beca-11e4-a1a4-705681abff85"], ["name", "org-18"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8c37ea46-beca-11e4-9545-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:49:47.331336"], ["id", "8c37ea46-beca-11e4-9545-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Cos.WMVrv3Mf6NsebmNzj.3FFVPZ1wlmolhGIoLTixnMa2ZfKXwui"], ["created_at", "2015-02-27 21:49:47.339372"], ["updated_at", "2015-02-27 21:49:47.339372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.341034"], ["user_id", "8c3c73ea-beca-11e4-9dd4-705681abff85"], ["created_at", "2015-02-27 21:49:47.341920"], ["updated_at", "2015-02-27 21:49:47.341920"], ["token", "WtDheYDjwxVqY8pjK11elrKEVg7d4tww9d6AylExaGg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.345323"], ["updated_at", "2015-02-27 21:49:47.345323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c3c73ea-beca-11e4-9dd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c3d592c-beca-11e4-80cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c3c73ea-beca-11e4-9dd4-705681abff85"], ["organization_id", "8c3d592c-beca-11e4-80cc-705681abff85"], ["created_at", "2015-02-27 21:49:47.348477"], ["updated_at", "2015-02-27 21:49:47.348477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-19" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-19", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:47.353123' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WtDheYDjwxVqY8pjK11elrKEVg7d4tww9d6AylExaGg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:47.354598"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:47.355624"], ["id", "8c3cdede-beca-11e4-b2cf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c3c73ea-beca-11e4-9dd4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "8c3c73ea-beca-11e4-9dd4-705681abff85"], ["name", "org-19"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8c3d592c-beca-11e4-80cc-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$zG5rI304UqkRXGW/CVanVe8oOK/vxn/v4kDBOJvnGZgyZZqstWGhS"], ["created_at", "2015-02-27 21:49:47.370823"], ["updated_at", "2015-02-27 21:49:47.370823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.373164"], ["user_id", "8c414870-beca-11e4-9ee1-705681abff85"], ["created_at", "2015-02-27 21:49:47.373989"], ["updated_at", "2015-02-27 21:49:47.373989"], ["token", "EFIlhrVOFWOCg9xdfc0diK78rN3qwn8scaOGLdpyXsU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.377595"], ["updated_at", "2015-02-27 21:49:47.377595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c414870-beca-11e4-9ee1-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c4257ec-beca-11e4-88ca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c414870-beca-11e4-9ee1-705681abff85"], ["organization_id", "8c4257ec-beca-11e4-88ca-705681abff85"], ["created_at", "2015-02-27 21:49:47.381749"], ["updated_at", "2015-02-27 21:49:47.381749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$vVI9e343tqELkjFX/laEmOF13RAuxEc5polxzHdtCl1qIAHWlfkMm"], ["created_at", "2015-02-27 21:49:47.395677"], ["updated_at", "2015-02-27 21:49:47.395677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.397417"], ["user_id", "8c450e2e-beca-11e4-af8c-705681abff85"], ["created_at", "2015-02-27 21:49:47.398703"], ["updated_at", "2015-02-27 21:49:47.398703"], ["token", "zOpK3ewxrW-8YUHPujpcwGdwZ8uHC-tUYHP7FkNqrkY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.403932"], ["updated_at", "2015-02-27 21:49:47.403932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c450e2e-beca-11e4-af8c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c46509a-beca-11e4-90ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c450e2e-beca-11e4-af8c-705681abff85"], ["organization_id", "8c46509a-beca-11e4-90ee-705681abff85"], ["created_at", "2015-02-27 21:49:47.408236"], ["updated_at", "2015-02-27 21:49:47.408236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-21" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-21", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:49:47.413190' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zOpK3ewxrW-8YUHPujpcwGdwZ8uHC-tUYHP7FkNqrkY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:49:47.414710"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:49:47.415717"], ["id", "8c45ad98-beca-11e4-88b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c450e2e-beca-11e4-af8c-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "8c450e2e-beca-11e4-af8c-705681abff85"], ["name", "org-21"]] Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$aeIe7wESGAdkZVsDYunOQ.ij9Yc5.dqnjEog/fP3eEjaR4AQogrKS"], ["created_at", "2015-02-27 21:49:47.429807"], ["updated_at", "2015-02-27 21:49:47.429807"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.432003"], ["user_id", "8c4a4060-beca-11e4-9f90-705681abff85"], ["created_at", "2015-02-27 21:49:47.433210"], ["updated_at", "2015-02-27 21:49:47.433210"], ["token", "g3etr39Khgj9DeJNFW8boUqyJndnv6QYCKzwot66PCI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.437656"], ["updated_at", "2015-02-27 21:49:47.437656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c4a4060-beca-11e4-9f90-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c4b84f2-beca-11e4-9b44-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c4a4060-beca-11e4-9f90-705681abff85"], ["organization_id", "8c4b84f2-beca-11e4-9b44-705681abff85"], ["created_at", "2015-02-27 21:49:47.442406"], ["updated_at", "2015-02-27 21:49:47.442406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-22" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-22"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-22"]] Completed 200 OK in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$qb6pGADMNcTbLynbhvM2Regfj8dzmi6isLg40RAKzVN0Mqd5PJee2"], ["created_at", "2015-02-27 21:49:47.457867"], ["updated_at", "2015-02-27 21:49:47.457867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:49:47.459524"], ["user_id", "8c4e8954-beca-11e4-b755-705681abff85"], ["created_at", "2015-02-27 21:49:47.460298"], ["updated_at", "2015-02-27 21:49:47.460298"], ["token", "Hq6n5iShg1Pi4GyK4LxisDoLxt-7N2Okq_fObGzAA8E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:49:47.463897"], ["updated_at", "2015-02-27 21:49:47.463897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c4e8954-beca-11e4-b755-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c4f78e6-beca-11e4-92a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c4e8954-beca-11e4-b755-705681abff85"], ["organization_id", "8c4f78e6-beca-11e4-92a5-705681abff85"], ["created_at", "2015-02-27 21:49:47.467510"], ["updated_at", "2015-02-27 21:49:47.467510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:49:47 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (64.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$qe7WBzS0lcTdnuK4jfZDLuTAk3ozW15VWGH1ibuRRf6ORT4RMMUke"], ["created_at", "2015-02-27 21:50:52.560867"], ["updated_at", "2015-02-27 21:50:52.560867"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:52.637312"], ["user_id", "b32665e2-beca-11e4-bb7a-705681abff85"], ["created_at", "2015-02-27 21:50:52.643801"], ["updated_at", "2015-02-27 21:50:52.643801"], ["token", "fI3vRGLTBEy5zmN7aAYTES-g9T7t5aMSgIu-eyXZ87s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:52.665840"], ["updated_at", "2015-02-27 21:50:52.665840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b32665e2-beca-11e4-bb7a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b32c8102-beca-11e4-a3da-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b32665e2-beca-11e4-bb7a-705681abff85"], ["organization_id", "b32c8102-beca-11e4-a3da-705681abff85"], ["created_at", "2015-02-27 21:50:52.676635"], ["updated_at", "2015-02-27 21:50:52.676635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$bDpaanDIGXuk.z.8q1ib/uqFqe9mwNbfSgQ7OWxitbtT43HLK8olm"], ["created_at", "2015-02-27 21:50:52.682799"], ["updated_at", "2015-02-27 21:50:52.682799"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:52.691755"], ["updated_at", "2015-02-27 21:50:52.691755"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b32fa706-beca-11e4-a827-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b330891e-beca-11e4-b350-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b32fa706-beca-11e4-a827-705681abff85"], ["organization_id", "b330891e-beca-11e4-b350-705681abff85"], ["created_at", "2015-02-27 21:50:52.701003"], ["updated_at", "2015-02-27 21:50:52.701003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:50:52 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:52.738893' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fI3vRGLTBEy5zmN7aAYTES-g9T7t5aMSgIu-eyXZ87s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:52.746610"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:52.747874"], ["id", "b32942f8-beca-11e4-a4ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b32665e2-beca-11e4-bb7a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "b32665e2-beca-11e4-bb7a-705681abff85"]] Completed 200 OK in 42ms (Views: 4.5ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$B.Fn9Lv5c1AnJqzYvA76v.dcJDM1edJ.CHivyo7fP2bHjv5woYiSi"], ["created_at", "2015-02-27 21:50:52.789564"], ["updated_at", "2015-02-27 21:50:52.789564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:52.791388"], ["user_id", "b33f6196-beca-11e4-b442-705681abff85"], ["created_at", "2015-02-27 21:50:52.792211"], ["updated_at", "2015-02-27 21:50:52.792211"], ["token", "saswsOQCz21UrSVr6WlSNifJjJRv3ZwMn18KtwpImJU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:52.796527"], ["updated_at", "2015-02-27 21:50:52.796527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b33f6196-beca-11e4-b442-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b34084cc-beca-11e4-8c3a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b33f6196-beca-11e4-b442-705681abff85"], ["organization_id", "b34084cc-beca-11e4-8c3a-705681abff85"], ["created_at", "2015-02-27 21:50:52.801624"], ["updated_at", "2015-02-27 21:50:52.801624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$4kgP73/1M8VLAxUlRU4wAeTMf7nwmpOpuoWWd9hWKIXdyiybY4cRC"], ["created_at", "2015-02-27 21:50:52.806446"], ["updated_at", "2015-02-27 21:50:52.806446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:52.809588"], ["updated_at", "2015-02-27 21:50:52.809588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b341ef1a-beca-11e4-9529-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3426bfc-beca-11e4-b138-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b341ef1a-beca-11e4-9529-705681abff85"], ["organization_id", "b3426bfc-beca-11e4-b138-705681abff85"], ["created_at", "2015-02-27 21:50:52.813282"], ["updated_at", "2015-02-27 21:50:52.813282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:50:52 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$QSJlMqGZfMMlxv4LRd2ODubL.ZkDH80HzeMQieDPHv3o7hZueJ642"], ["created_at", "2015-02-27 21:50:52.827545"], ["updated_at", "2015-02-27 21:50:52.827545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:52.830514"], ["user_id", "b3454822-beca-11e4-9209-705681abff85"], ["created_at", "2015-02-27 21:50:52.831369"], ["updated_at", "2015-02-27 21:50:52.831369"], ["token", "NC_zSiWrGGxrfL-xRxF8ruP3z5EE-qZqJy1-BowYks0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:52.834691"], ["updated_at", "2015-02-27 21:50:52.834691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b3454822-beca-11e4-9209-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3463b24-beca-11e4-beef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b3454822-beca-11e4-9209-705681abff85"], ["organization_id", "b3463b24-beca-11e4-beef-705681abff85"], ["created_at", "2015-02-27 21:50:52.838079"], ["updated_at", "2015-02-27 21:50:52.838079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:50:52 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$h66CoPMdD/TrKvdmrqWhKO.TOCymtrYkrL4EytSpaLZkIbNEa.6pq"], ["created_at", "2015-02-27 21:50:52.851807"], ["updated_at", "2015-02-27 21:50:52.851807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:52.853676"], ["user_id", "b348e2de-beca-11e4-9808-705681abff85"], ["created_at", "2015-02-27 21:50:52.854460"], ["updated_at", "2015-02-27 21:50:52.854460"], ["token", "XlSxRQaIZ1wam1BDN0ryGbXdsBfrvCPef1yBHKBk8KQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:52.857615"], ["updated_at", "2015-02-27 21:50:52.857615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b348e2de-beca-11e4-9808-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b349bb6e-beca-11e4-9223-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b348e2de-beca-11e4-9808-705681abff85"], ["organization_id", "b349bb6e-beca-11e4-9223-705681abff85"], ["created_at", "2015-02-27 21:50:52.860919"], ["updated_at", "2015-02-27 21:50:52.860919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/b349bb6e-beca-11e4-9223-705681abff85" for 127.0.0.1 at 2015-02-27 13:50:52 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"b349bb6e-beca-11e4-9223-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:52.869696' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XlSxRQaIZ1wam1BDN0ryGbXdsBfrvCPef1yBHKBk8KQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:52.871107"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:52.872079"], ["id", "b34948dc-beca-11e4-ba3c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b348e2de-beca-11e4-9808-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "b348e2de-beca-11e4-9808-705681abff85"], ["id", "b349bb6e-beca-11e4-9223-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b349bb6e-beca-11e4-9223-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 23ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$r2eeRwdVq3Hbb0SdRhn/fe0G7xSz3fgX2Z7rh4uRlxID2bHHsvi9K"], ["created_at", "2015-02-27 21:50:52.897435"], ["updated_at", "2015-02-27 21:50:52.897435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:52.899885"], ["user_id", "b34feb56-beca-11e4-8e16-705681abff85"], ["created_at", "2015-02-27 21:50:52.901008"], ["updated_at", "2015-02-27 21:50:52.901008"], ["token", "c_6wLf47pltkSKlFplEtUdIoXw6aDk3MhK8lvGCsbII"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:52.904443"], ["updated_at", "2015-02-27 21:50:52.904443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b34feb56-beca-11e4-8e16-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b350df0c-beca-11e4-ab00-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b34feb56-beca-11e4-8e16-705681abff85"], ["organization_id", "b350df0c-beca-11e4-ab00-705681abff85"], ["created_at", "2015-02-27 21:50:52.907719"], ["updated_at", "2015-02-27 21:50:52.907719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/b350df0c-beca-11e4-ab00-705681abff85" for 127.0.0.1 at 2015-02-27 13:50:52 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"b350df0c-beca-11e4-ab00-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:52.912905' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "c_6wLf47pltkSKlFplEtUdIoXw6aDk3MhK8lvGCsbII"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:52.914319"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:52.916051"], ["id", "b35066e4-beca-11e4-95cb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (12.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b34feb56-beca-11e4-8e16-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "b34feb56-beca-11e4-8e16-705681abff85"], ["id", "b350df0c-beca-11e4-ab00-705681abff85"]]  (7.9ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b350df0c-beca-11e4-ab00-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:50:52.953389"], ["id", "b350df0c-beca-11e4-ab00-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 1.0ms | ActiveRecord: 22.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$vL0cXRl/fkjZUgaIBCS2ZOSIf0tdkLijm5/ytftV75Jh4n4aETThq"], ["created_at", "2015-02-27 21:50:52.968820"], ["updated_at", "2015-02-27 21:50:52.968820"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:52.974364"], ["user_id", "b35b20d4-beca-11e4-b53a-705681abff85"], ["created_at", "2015-02-27 21:50:52.975639"], ["updated_at", "2015-02-27 21:50:52.975639"], ["token", "uf8q0UkeNTGF-_aHjYmun3S9xhQ7OFlzh0i0haJpcgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:52.983196"], ["updated_at", "2015-02-27 21:50:52.983196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b35b20d4-beca-11e4-b53a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b35cfad0-beca-11e4-ad8e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b35b20d4-beca-11e4-b53a-705681abff85"], ["organization_id", "b35cfad0-beca-11e4-ad8e-705681abff85"], ["created_at", "2015-02-27 21:50:52.991668"], ["updated_at", "2015-02-27 21:50:52.991668"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/b35cfad0-beca-11e4-ad8e-705681abff85" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"b35cfad0-beca-11e4-ad8e-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:53.002667' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uf8q0UkeNTGF-_aHjYmun3S9xhQ7OFlzh0i0haJpcgQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:53.004953"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:53.006673"], ["id", "b35bf874-beca-11e4-b241-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b35b20d4-beca-11e4-b53a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "b35b20d4-beca-11e4-b53a-705681abff85"], ["id", "b35cfad0-beca-11e4-ad8e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "b35cfad0-beca-11e4-ad8e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 17ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$2SYH3H31eEEZsWFlb93/Q.6tco4wuD9XcrJRPd3JkF0M6oxH8ZR7S"], ["created_at", "2015-02-27 21:50:53.025197"], ["updated_at", "2015-02-27 21:50:53.025197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.027938"], ["user_id", "b3635038-beca-11e4-84c3-705681abff85"], ["created_at", "2015-02-27 21:50:53.028728"], ["updated_at", "2015-02-27 21:50:53.028728"], ["token", "c039Z142TMtB_09pj6CYc7UWuaKK-hrGjLCV_O7zHOQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.032064"], ["updated_at", "2015-02-27 21:50:53.032064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b3635038-beca-11e4-84c3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3645dde-beca-11e4-8345-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b3635038-beca-11e4-84c3-705681abff85"], ["organization_id", "b3645dde-beca-11e4-8345-705681abff85"], ["created_at", "2015-02-27 21:50:53.035584"], ["updated_at", "2015-02-27 21:50:53.035584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$RBIjdC53eKhMhStLnovh4uAuJD0ARx87SdGbtPpWDCfJdTfFjRHBG"], ["created_at", "2015-02-27 21:50:53.052545"], ["updated_at", "2015-02-27 21:50:53.052545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.055450"], ["user_id", "b3679a26-beca-11e4-844a-705681abff85"], ["created_at", "2015-02-27 21:50:53.056437"], ["updated_at", "2015-02-27 21:50:53.056437"], ["token", "mHdel4kDcflNOBcB-BB3HavQPL06z8j81jP9XW4_cek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.060023"], ["updated_at", "2015-02-27 21:50:53.060023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b3679a26-beca-11e4-844a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3689e8a-beca-11e4-bbfa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b3679a26-beca-11e4-844a-705681abff85"], ["organization_id", "b3689e8a-beca-11e4-bbfa-705681abff85"], ["created_at", "2015-02-27 21:50:53.066131"], ["updated_at", "2015-02-27 21:50:53.066131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/b3689e8a-beca-11e4-bbfa-705681abff85" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"b3689e8a-beca-11e4-bbfa-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:53.071766' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mHdel4kDcflNOBcB-BB3HavQPL06z8j81jP9XW4_cek"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:53.073138"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:53.074052"], ["id", "b3681f50-beca-11e4-baa2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b3679a26-beca-11e4-844a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "b3679a26-beca-11e4-844a-705681abff85"], ["id", "b3689e8a-beca-11e4-bbfa-705681abff85"]] Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$yxapfDn2ArWE7T7vVn2v2eu7nypt6/uWFNJmAi88o.mbNGxhnpa3C"], ["created_at", "2015-02-27 21:50:53.085758"], ["updated_at", "2015-02-27 21:50:53.085758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.087521"], ["user_id", "b36c8e5a-beca-11e4-9848-705681abff85"], ["created_at", "2015-02-27 21:50:53.088284"], ["updated_at", "2015-02-27 21:50:53.088284"], ["token", "fNi74EeKWrVBLRq2VVI13__nLbjL40jdtVAoyV5G5wM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.091435"], ["updated_at", "2015-02-27 21:50:53.091435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b36c8e5a-beca-11e4-9848-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b36d6866-beca-11e4-a3e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b36c8e5a-beca-11e4-9848-705681abff85"], ["organization_id", "b36d6866-beca-11e4-a3e7-705681abff85"], ["created_at", "2015-02-27 21:50:53.094630"], ["updated_at", "2015-02-27 21:50:53.094630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$b6ZwRgg6VZstKhVfKSRNGeg9jqJVrdjf7LBRbxQG.7D2Z8gwO09da"], ["created_at", "2015-02-27 21:50:53.136869"], ["updated_at", "2015-02-27 21:50:53.136869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.138660"], ["user_id", "b3745e82-beca-11e4-a74f-705681abff85"], ["created_at", "2015-02-27 21:50:53.139632"], ["updated_at", "2015-02-27 21:50:53.139632"], ["token", "HTN5SMnkQ54A3oDVGVzuVv_FyEJO-hfTFKVxE4XGoJ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.142782"], ["updated_at", "2015-02-27 21:50:53.142782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b3745e82-beca-11e4-a74f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3753c80-beca-11e4-898e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b3745e82-beca-11e4-a74f-705681abff85"], ["organization_id", "b3753c80-beca-11e4-898e-705681abff85"], ["created_at", "2015-02-27 21:50:53.146080"], ["updated_at", "2015-02-27 21:50:53.146080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$4AaQCHapfswyYl6ue9GmOeTaGjVzxIJXzAytu.QIjl.PBBhvShG/K"], ["created_at", "2015-02-27 21:50:53.157497"], ["updated_at", "2015-02-27 21:50:53.157497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.159106"], ["user_id", "b3777f54-beca-11e4-bd94-705681abff85"], ["created_at", "2015-02-27 21:50:53.159866"], ["updated_at", "2015-02-27 21:50:53.159866"], ["token", "DTiDobyBIXdz-GXFA_kc7ylUXMsb6hmq4gr0KEVGYoI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.163313"], ["updated_at", "2015-02-27 21:50:53.163313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b3777f54-beca-11e4-bd94-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3785fa0-beca-11e4-8943-705681abff85') LIMIT 1 SQL (3.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b3777f54-beca-11e4-bd94-705681abff85"], ["organization_id", "b3785fa0-beca-11e4-8943-705681abff85"], ["created_at", "2015-02-27 21:50:53.166710"], ["updated_at", "2015-02-27 21:50:53.166710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-13" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-13", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:53.175059' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DTiDobyBIXdz-GXFA_kc7ylUXMsb6hmq4gr0KEVGYoI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:53.176477"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:53.177514"], ["id", "b377e066-beca-11e4-9ea6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b3777f54-beca-11e4-bd94-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "b3777f54-beca-11e4-bd94-705681abff85"], ["name", "org-13"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b3785fa0-beca-11e4-8943-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Dv0bNPfHl702Ra4Om.ZG7.O5W7qHfJtWL3XnqM8HBHKWc.szbwanq"], ["created_at", "2015-02-27 21:50:53.192535"], ["updated_at", "2015-02-27 21:50:53.192535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.194754"], ["user_id", "b37cea34-beca-11e4-a4da-705681abff85"], ["created_at", "2015-02-27 21:50:53.195557"], ["updated_at", "2015-02-27 21:50:53.195557"], ["token", "WkaiDVTFxPvWLD3jrUniteCUQ9Wdd2goUhKrgR3XQss"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.198947"], ["updated_at", "2015-02-27 21:50:53.198947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b37cea34-beca-11e4-a4da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b37dcf94-beca-11e4-bf90-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b37cea34-beca-11e4-a4da-705681abff85"], ["organization_id", "b37dcf94-beca-11e4-bf90-705681abff85"], ["created_at", "2015-02-27 21:50:53.202158"], ["updated_at", "2015-02-27 21:50:53.202158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-14" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-14", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:53.206847' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WkaiDVTFxPvWLD3jrUniteCUQ9Wdd2goUhKrgR3XQss"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:53.208291"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:53.209231"], ["id", "b37d5640-beca-11e4-ad88-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b37cea34-beca-11e4-a4da-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "b37cea34-beca-11e4-a4da-705681abff85"], ["name", "org-14"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b37dcf94-beca-11e4-bf90-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:50:53.214539"], ["id", "b37dcf94-beca-11e4-bf90-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$xJToK4pUwUx6XVuOiY6cguFb8ygJ2KoazN850Stam3qWywEi5O6Nu"], ["created_at", "2015-02-27 21:50:53.224187"], ["updated_at", "2015-02-27 21:50:53.224187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.225799"], ["user_id", "b381ac36-beca-11e4-a295-705681abff85"], ["created_at", "2015-02-27 21:50:53.226544"], ["updated_at", "2015-02-27 21:50:53.226544"], ["token", "qiYpfEXcOqFK2hPqXufbYVRLpS6qzIlOE22oPeEr700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.230454"], ["updated_at", "2015-02-27 21:50:53.230454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b381ac36-beca-11e4-a295-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b382a640-beca-11e4-ad77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b381ac36-beca-11e4-a295-705681abff85"], ["organization_id", "b382a640-beca-11e4-ad77-705681abff85"], ["created_at", "2015-02-27 21:50:53.234001"], ["updated_at", "2015-02-27 21:50:53.234001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-15" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-15", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:53.238262' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qiYpfEXcOqFK2hPqXufbYVRLpS6qzIlOE22oPeEr700"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:53.239687"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:53.240598"], ["id", "b3820f0a-beca-11e4-b5d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b381ac36-beca-11e4-a295-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "b381ac36-beca-11e4-a295-705681abff85"], ["name", "org-15"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "b382a640-beca-11e4-ad77-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$pp6Y82JR1LshnWn2n3n.uO6/PM9DtFCfQLEsVJYOKtrhOgFWwvidW"], ["created_at", "2015-02-27 21:50:53.250416"], ["updated_at", "2015-02-27 21:50:53.250416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.252052"], ["user_id", "b385aba6-beca-11e4-914b-705681abff85"], ["created_at", "2015-02-27 21:50:53.252811"], ["updated_at", "2015-02-27 21:50:53.252811"], ["token", "ms9E1eJ5NEY6a0rjN9YruwoviTeewhX5jRvX5SnDPFo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.255920"], ["updated_at", "2015-02-27 21:50:53.255920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b385aba6-beca-11e4-914b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3868062-beca-11e4-a696-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b385aba6-beca-11e4-914b-705681abff85"], ["organization_id", "b3868062-beca-11e4-a696-705681abff85"], ["created_at", "2015-02-27 21:50:53.259015"], ["updated_at", "2015-02-27 21:50:53.259015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$e2fBTGTWru9XSpGj5O5mseqPI0VU.pue1gO/iySwVN.6bHf3bVR5q"], ["created_at", "2015-02-27 21:50:53.270945"], ["updated_at", "2015-02-27 21:50:53.270945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.272795"], ["user_id", "b388cf0c-beca-11e4-82cf-705681abff85"], ["created_at", "2015-02-27 21:50:53.273564"], ["updated_at", "2015-02-27 21:50:53.273564"], ["token", "ZrDGNj1F_0nmYbOZ4YhnCIxtgyRNTqoNQpT43Bl9HPI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.276726"], ["updated_at", "2015-02-27 21:50:53.276726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b388cf0c-beca-11e4-82cf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b389acb0-beca-11e4-9666-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b388cf0c-beca-11e4-82cf-705681abff85"], ["organization_id", "b389acb0-beca-11e4-9666-705681abff85"], ["created_at", "2015-02-27 21:50:53.279791"], ["updated_at", "2015-02-27 21:50:53.279791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-17" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-17", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:53.285920' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZrDGNj1F_0nmYbOZ4YhnCIxtgyRNTqoNQpT43Bl9HPI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:53.287380"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:53.288319"], ["id", "b3893a64-beca-11e4-8aa3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b388cf0c-beca-11e4-82cf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "b388cf0c-beca-11e4-82cf-705681abff85"], ["name", "org-17"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$DG5/VIApqx00doWJatsZL.r2Q.N2mppi7mN3Od/DRqQ77REGv3hEm"], ["created_at", "2015-02-27 21:50:53.300420"], ["updated_at", "2015-02-27 21:50:53.300420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.302292"], ["user_id", "b38d4fa0-beca-11e4-839f-705681abff85"], ["created_at", "2015-02-27 21:50:53.303108"], ["updated_at", "2015-02-27 21:50:53.303108"], ["token", "5zWH_DGCvMLxBh2sXZjKFdleWiPye5S8x8lOpvsSW1o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.306320"], ["updated_at", "2015-02-27 21:50:53.306320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b38d4fa0-beca-11e4-839f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b38e31c2-beca-11e4-a77e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b38d4fa0-beca-11e4-839f-705681abff85"], ["organization_id", "b38e31c2-beca-11e4-a77e-705681abff85"], ["created_at", "2015-02-27 21:50:53.309949"], ["updated_at", "2015-02-27 21:50:53.309949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Ce.cgQvpob/F3w02zqAR0.i0VWZdwz0NOo0vMoxTTj6OQvdeMW9BS"], ["created_at", "2015-02-27 21:50:53.322237"], ["updated_at", "2015-02-27 21:50:53.322237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.323785"], ["user_id", "b390a254-beca-11e4-bf18-705681abff85"], ["created_at", "2015-02-27 21:50:53.324609"], ["updated_at", "2015-02-27 21:50:53.324609"], ["token", "OWEK4M4mEzQ59wwqTmlYJdoCrOA6AN1hkEqWSSzP_S4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.327817"], ["updated_at", "2015-02-27 21:50:53.327817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b390a254-beca-11e4-bf18-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3917fbc-beca-11e4-9007-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b390a254-beca-11e4-bf18-705681abff85"], ["organization_id", "b3917fbc-beca-11e4-9007-705681abff85"], ["created_at", "2015-02-27 21:50:53.331298"], ["updated_at", "2015-02-27 21:50:53.331298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ibuMyiQi3eZaUaYen35cr.6qpSMpWGsTQVn4rXwhGATkBfoq1zu5u"], ["created_at", "2015-02-27 21:50:53.345989"], ["updated_at", "2015-02-27 21:50:53.345989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.348312"], ["user_id", "b3945084-beca-11e4-8548-705681abff85"], ["created_at", "2015-02-27 21:50:53.349105"], ["updated_at", "2015-02-27 21:50:53.349105"], ["token", "ZGKPmjcrdMYCrLObS9jDzglQTAnJgL-Ev6F1jv7RhhQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.352454"], ["updated_at", "2015-02-27 21:50:53.352454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b3945084-beca-11e4-8548-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3953ba2-beca-11e4-b530-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b3945084-beca-11e4-8548-705681abff85"], ["organization_id", "b3953ba2-beca-11e4-b530-705681abff85"], ["created_at", "2015-02-27 21:50:53.355595"], ["updated_at", "2015-02-27 21:50:53.355595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-20" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-20"} Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-20"]] Completed 200 OK in 1ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$DDxT2gNq0sr7yMtqGl807ORKJiRybhqIN8RtpelXNw/Mx9tGMphxK"], ["created_at", "2015-02-27 21:50:53.366219"], ["updated_at", "2015-02-27 21:50:53.366219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.367807"], ["user_id", "b397590a-beca-11e4-842d-705681abff85"], ["created_at", "2015-02-27 21:50:53.368686"], ["updated_at", "2015-02-27 21:50:53.368686"], ["token", "TEUHWdICOPdQybkNseiyrGfxVfnSGHo7Hr8hIREcFsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.372039"], ["updated_at", "2015-02-27 21:50:53.372039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b397590a-beca-11e4-842d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b39839c4-beca-11e4-822f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b397590a-beca-11e4-842d-705681abff85"], ["organization_id", "b39839c4-beca-11e4-822f-705681abff85"], ["created_at", "2015-02-27 21:50:53.375336"], ["updated_at", "2015-02-27 21:50:53.375336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$DR62DbbRhbMC02HWI43Gp.Cw1/n/BXGBUlMCR5ZszIVsGBnTQ7pvy"], ["created_at", "2015-02-27 21:50:53.388818"], ["updated_at", "2015-02-27 21:50:53.388818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.390589"], ["user_id", "b39ace32-beca-11e4-ae44-705681abff85"], ["created_at", "2015-02-27 21:50:53.391420"], ["updated_at", "2015-02-27 21:50:53.391420"], ["token", "hQshsSZOT4SnbqUD7j7atRg0vQ0Qa39Tck3WTVzHQzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.394766"], ["updated_at", "2015-02-27 21:50:53.394766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b39ace32-beca-11e4-ae44-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b39bb324-beca-11e4-9cd6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b39ace32-beca-11e4-ae44-705681abff85"], ["organization_id", "b39bb324-beca-11e4-9cd6-705681abff85"], ["created_at", "2015-02-27 21:50:53.398917"], ["updated_at", "2015-02-27 21:50:53.398917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:53.403785' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hQshsSZOT4SnbqUD7j7atRg0vQ0Qa39Tck3WTVzHQzA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:53.405388"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:53.406361"], ["id", "b39b3912-beca-11e4-8d96-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b39ace32-beca-11e4-ae44-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$BmxY3e9orynQmviJG97xAeNaMrS7Kzg4yg3u0yIfc3P7gpvxM7ihC"], ["created_at", "2015-02-27 21:50:53.419924"], ["updated_at", "2015-02-27 21:50:53.419924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:50:53.421648"], ["user_id", "b39f8c10-beca-11e4-9888-705681abff85"], ["created_at", "2015-02-27 21:50:53.422382"], ["updated_at", "2015-02-27 21:50:53.422382"], ["token", "2xUPABCoxsrmqui0qU_D1PaiHceii9eYhb1Bce1UXkw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.425537"], ["updated_at", "2015-02-27 21:50:53.425537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b39f8c10-beca-11e4-9888-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3a06392-beca-11e4-835e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b39f8c10-beca-11e4-9888-705681abff85"], ["organization_id", "b3a06392-beca-11e4-835e-705681abff85"], ["created_at", "2015-02-27 21:50:53.428680"], ["updated_at", "2015-02-27 21:50:53.428680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:50:53 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:50:53.433657' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2xUPABCoxsrmqui0qU_D1PaiHceii9eYhb1Bce1UXkw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:50:53.435121"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:50:53.436066"], ["id", "b39fef52-beca-11e4-9783-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b39f8c10-beca-11e4-9888-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:50:53.440034"], ["updated_at", "2015-02-27 21:50:53.440034"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b3a29c5c-beca-11e4-b57a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b39f8c10-beca-11e4-9888-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b3a29c5c-beca-11e4-b57a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b39f8c10-beca-11e4-9888-705681abff85"], ["admin", "t"], ["organization_id", "b3a29c5c-beca-11e4-b57a-705681abff85"], ["created_at", "2015-02-27 21:50:53.446016"], ["updated_at", "2015-02-27 21:50:53.446016"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.3ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$QwBl80JVPEwnoc.gRqeUfuW22c.qYPIqIpfA4Pk59ZRZljIjpRZLa"], ["created_at", "2015-02-27 21:51:05.226151"], ["updated_at", "2015-02-27 21:51:05.226151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.237068"], ["user_id", "baa93cc2-beca-11e4-97df-705681abff85"], ["created_at", "2015-02-27 21:51:05.243100"], ["updated_at", "2015-02-27 21:51:05.243100"], ["token", "WQgqjCZ2iVZkEGxozraLE7l3ap_xHiR4PKf1Xx_7UkQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.254876"], ["updated_at", "2015-02-27 21:51:05.254876"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baa93cc2-beca-11e4-97df-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baae629c-beca-11e4-9742-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "baa93cc2-beca-11e4-97df-705681abff85"], ["organization_id", "baae629c-beca-11e4-9742-705681abff85"], ["created_at", "2015-02-27 21:51:05.278002"], ["updated_at", "2015-02-27 21:51:05.278002"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$4sQzXQkxk2M0safnsG2T.eBTgQq3UJEBBO5lmCsI3Wq5KlmzSy8.m"], ["created_at", "2015-02-27 21:51:05.329140"], ["updated_at", "2015-02-27 21:51:05.329140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.331476"], ["user_id", "bab8cc82-beca-11e4-80c4-705681abff85"], ["created_at", "2015-02-27 21:51:05.332463"], ["updated_at", "2015-02-27 21:51:05.332463"], ["token", "TNMvOeyK0m24gGvarTo6lNefIjBecAaUKk2oMHzIxjU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.336137"], ["updated_at", "2015-02-27 21:51:05.336137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bab8cc82-beca-11e4-80c4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bab9ceac-beca-11e4-aa2e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bab8cc82-beca-11e4-80c4-705681abff85"], ["organization_id", "bab9ceac-beca-11e4-aa2e-705681abff85"], ["created_at", "2015-02-27 21:51:05.339895"], ["updated_at", "2015-02-27 21:51:05.339895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bab9ceac-beca-11e4-aa2e-705681abff85" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"bab9ceac-beca-11e4-aa2e-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.356344' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TNMvOeyK0m24gGvarTo6lNefIjBecAaUKk2oMHzIxjU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.363547"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.364726"], ["id", "bab94fb8-beca-11e4-a859-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bab8cc82-beca-11e4-80c4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "bab8cc82-beca-11e4-80c4-705681abff85"], ["id", "bab9ceac-beca-11e4-aa2e-705681abff85"]] Completed 200 OK in 31ms (Views: 1.7ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$OX3Sb4DgNHCZagz0MsOb3OLXi424uyK69Q5wzEgZs43kmQMRZB3fO"], ["created_at", "2015-02-27 21:51:05.395385"], ["updated_at", "2015-02-27 21:51:05.395385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.397209"], ["user_id", "bac2de20-beca-11e4-8a02-705681abff85"], ["created_at", "2015-02-27 21:51:05.398010"], ["updated_at", "2015-02-27 21:51:05.398010"], ["token", "3ZGo-w1-YFyL7kGttYOOVm-XsbQL7P0E2eJCp1LGlco"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.401471"], ["updated_at", "2015-02-27 21:51:05.401471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bac2de20-beca-11e4-8a02-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bac3c664-beca-11e4-94ff-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bac2de20-beca-11e4-8a02-705681abff85"], ["organization_id", "bac3c664-beca-11e4-94ff-705681abff85"], ["created_at", "2015-02-27 21:51:05.404639"], ["updated_at", "2015-02-27 21:51:05.404639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$IFcv2/J6u3Ijao1CE6raFeYUKv1B5KPYoIZF3NaMu94lRXXvdGBiG"], ["created_at", "2015-02-27 21:51:05.417355"], ["updated_at", "2015-02-27 21:51:05.417355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.419494"], ["user_id", "bac63e62-beca-11e4-8a25-705681abff85"], ["created_at", "2015-02-27 21:51:05.420456"], ["updated_at", "2015-02-27 21:51:05.420456"], ["token", "KSP33_fy3z4bKP-5wVhmF163hhCdquhWnTkFpIPq8wI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.426727"], ["updated_at", "2015-02-27 21:51:05.426727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bac63e62-beca-11e4-8a25-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bac7aa5e-beca-11e4-9fc9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bac63e62-beca-11e4-8a25-705681abff85"], ["organization_id", "bac7aa5e-beca-11e4-9fc9-705681abff85"], ["created_at", "2015-02-27 21:51:05.430745"], ["updated_at", "2015-02-27 21:51:05.430745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-4" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-4", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.436269' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KSP33_fy3z4bKP-5wVhmF163hhCdquhWnTkFpIPq8wI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.437921"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.438973"], ["id", "bac6cb84-beca-11e4-934d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bac63e62-beca-11e4-8a25-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "bac63e62-beca-11e4-8a25-705681abff85"], ["name", "org-4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bac7aa5e-beca-11e4-9fc9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$PDc9t3byWrGH0jsAe5cYce112wg7kRswCoHmweR7dNPdmcbJpkEB2"], ["created_at", "2015-02-27 21:51:05.452276"], ["updated_at", "2015-02-27 21:51:05.452276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.454048"], ["user_id", "bacb8bb0-beca-11e4-a93e-705681abff85"], ["created_at", "2015-02-27 21:51:05.454775"], ["updated_at", "2015-02-27 21:51:05.454775"], ["token", "_PPr8ak_3pCQnjIDWGtGS_QAmrY6W92uXX2YFzGqns4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.458802"], ["updated_at", "2015-02-27 21:51:05.458802"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bacb8bb0-beca-11e4-a93e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bacc9ea6-beca-11e4-ba1d-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bacb8bb0-beca-11e4-a93e-705681abff85"], ["organization_id", "bacc9ea6-beca-11e4-ba1d-705681abff85"], ["created_at", "2015-02-27 21:51:05.464399"], ["updated_at", "2015-02-27 21:51:05.464399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$LebTK5U1hteXav5RsI2MTu1zGQOAaQdlI4HcDWooXw7C2Q74gqp.q"], ["created_at", "2015-02-27 21:51:05.478496"], ["updated_at", "2015-02-27 21:51:05.478496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.480347"], ["user_id", "bacf9174-beca-11e4-b116-705681abff85"], ["created_at", "2015-02-27 21:51:05.481171"], ["updated_at", "2015-02-27 21:51:05.481171"], ["token", "cK3vyLEFBBoJTx0v7izvFx4PVjXppQbunAyqpW3McOU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.484581"], ["updated_at", "2015-02-27 21:51:05.484581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bacf9174-beca-11e4-b116-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bad07486-beca-11e4-b1a9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bacf9174-beca-11e4-b116-705681abff85"], ["organization_id", "bad07486-beca-11e4-b1a9-705681abff85"], ["created_at", "2015-02-27 21:51:05.487654"], ["updated_at", "2015-02-27 21:51:05.487654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.492080' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cK3vyLEFBBoJTx0v7izvFx4PVjXppQbunAyqpW3McOU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.493626"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.494758"], ["id", "bacffb8c-beca-11e4-8778-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bacf9174-beca-11e4-b116-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.500411"], ["updated_at", "2015-02-27 21:51:05.500411"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bad2e004-beca-11e4-89f3-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bacf9174-beca-11e4-b116-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bad2e004-beca-11e4-89f3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bacf9174-beca-11e4-b116-705681abff85"], ["admin", "t"], ["organization_id", "bad2e004-beca-11e4-89f3-705681abff85"], ["created_at", "2015-02-27 21:51:05.506538"], ["updated_at", "2015-02-27 21:51:05.506538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 0.7ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Ys0cdjMOv8lRX5WrCfxJye1ENqGB13zEzglESihz5EzjjhLj2T/4S"], ["created_at", "2015-02-27 21:51:05.515865"], ["updated_at", "2015-02-27 21:51:05.515865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.517586"], ["user_id", "bad53f34-beca-11e4-be9a-705681abff85"], ["created_at", "2015-02-27 21:51:05.518356"], ["updated_at", "2015-02-27 21:51:05.518356"], ["token", "Gm9E0JtCMdJQX3C9q7NNQDEcBdTPMGu8PhOGqj9ZOTE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.527072"], ["updated_at", "2015-02-27 21:51:05.527072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bad53f34-beca-11e4-be9a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bad6efd2-beca-11e4-8c00-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bad53f34-beca-11e4-be9a-705681abff85"], ["organization_id", "bad6efd2-beca-11e4-8c00-705681abff85"], ["created_at", "2015-02-27 21:51:05.530861"], ["updated_at", "2015-02-27 21:51:05.530861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.539489' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Gm9E0JtCMdJQX3C9q7NNQDEcBdTPMGu8PhOGqj9ZOTE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.541494"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.542521"], ["id", "bad5a488-beca-11e4-a861-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bad53f34-beca-11e4-be9a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$YbPM.c5eUUkQqJXZ0.UlZ.Ft.bQaXg35ZhFmRWoK4a5Zp5Qm/OLC2"], ["created_at", "2015-02-27 21:51:05.562799"], ["updated_at", "2015-02-27 21:51:05.562799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.564419"], ["user_id", "badc6606-beca-11e4-9c46-705681abff85"], ["created_at", "2015-02-27 21:51:05.565197"], ["updated_at", "2015-02-27 21:51:05.565197"], ["token", "CwkMXxr0wuINg_i4PiDdIM_QE7h6j4y8sxFL7qNsm7I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.568310"], ["updated_at", "2015-02-27 21:51:05.568310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'badc6606-beca-11e4-9c46-705681abff85' AND "clubhouse_memberships"."organization_id" = 'badd3914-beca-11e4-9f8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "badc6606-beca-11e4-9c46-705681abff85"], ["organization_id", "badd3914-beca-11e4-9f8a-705681abff85"], ["created_at", "2015-02-27 21:51:05.571452"], ["updated_at", "2015-02-27 21:51:05.571452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$1ivoF7Uqp6tHBw1kFo2g8eI9PJJXgXxC1eIIdTWpnSg6ApWa4jxUu"], ["created_at", "2015-02-27 21:51:05.585273"], ["updated_at", "2015-02-27 21:51:05.585273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.586959"], ["user_id", "badfd43a-beca-11e4-8622-705681abff85"], ["created_at", "2015-02-27 21:51:05.587880"], ["updated_at", "2015-02-27 21:51:05.587880"], ["token", "mezvWC674WKAcbljpZrBS4luJjNyn4VJNeHh_vxCPKo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.591507"], ["updated_at", "2015-02-27 21:51:05.591507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'badfd43a-beca-11e4-8622-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bae0c872-beca-11e4-90bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "badfd43a-beca-11e4-8622-705681abff85"], ["organization_id", "bae0c872-beca-11e4-90bc-705681abff85"], ["created_at", "2015-02-27 21:51:05.595282"], ["updated_at", "2015-02-27 21:51:05.595282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bae0c872-beca-11e4-90bc-705681abff85" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"bae0c872-beca-11e4-90bc-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.602777' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mezvWC674WKAcbljpZrBS4luJjNyn4VJNeHh_vxCPKo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.605021"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.607552"], ["id", "bae03fd8-beca-11e4-a765-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "badfd43a-beca-11e4-8622-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "badfd43a-beca-11e4-8622-705681abff85"], ["id", "bae0c872-beca-11e4-90bc-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bae0c872-beca-11e4-90bc-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:51:05.620358"], ["id", "bae0c872-beca-11e4-90bc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 0.6ms | ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Jc6o41tdzfqcw4hKzQS.8O7sbiX9sxIPtwEVc8yQDZhSRtsiXDMc6"], ["created_at", "2015-02-27 21:51:05.628621"], ["updated_at", "2015-02-27 21:51:05.628621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.630338"], ["user_id", "bae671d2-beca-11e4-a104-705681abff85"], ["created_at", "2015-02-27 21:51:05.631146"], ["updated_at", "2015-02-27 21:51:05.631146"], ["token", "Tir384ERwcSvtUK2cczadd1H6blBDcCPzxCaKJxzUBo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.634438"], ["updated_at", "2015-02-27 21:51:05.634438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bae671d2-beca-11e4-a104-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bae7523c-beca-11e4-bf10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bae671d2-beca-11e4-a104-705681abff85"], ["organization_id", "bae7523c-beca-11e4-bf10-705681abff85"], ["created_at", "2015-02-27 21:51:05.667907"], ["updated_at", "2015-02-27 21:51:05.667907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bae7523c-beca-11e4-bf10-705681abff85" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"bae7523c-beca-11e4-bf10-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.673503' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Tir384ERwcSvtUK2cczadd1H6blBDcCPzxCaKJxzUBo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.675658"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.676823"], ["id", "bae6da0a-beca-11e4-bcfe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bae671d2-beca-11e4-a104-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "bae671d2-beca-11e4-a104-705681abff85"], ["id", "bae7523c-beca-11e4-bf10-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bae7523c-beca-11e4-bf10-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$606abAdh56qRkuAgTPN56evIvTKa6/8fosvS44lKzmaVS1LD47C66"], ["created_at", "2015-02-27 21:51:05.691989"], ["updated_at", "2015-02-27 21:51:05.691989"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.694426"], ["user_id", "baf02ec0-beca-11e4-b1a1-705681abff85"], ["created_at", "2015-02-27 21:51:05.695216"], ["updated_at", "2015-02-27 21:51:05.695216"], ["token", "FEEta6VKWIvxPajAN0P8O4WSudVLyEHo4HBHKO6dm-0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.698350"], ["updated_at", "2015-02-27 21:51:05.698350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baf02ec0-beca-11e4-b1a1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baf1115a-beca-11e4-ba60-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "baf02ec0-beca-11e4-b1a1-705681abff85"], ["organization_id", "baf1115a-beca-11e4-ba60-705681abff85"], ["created_at", "2015-02-27 21:51:05.701453"], ["updated_at", "2015-02-27 21:51:05.701453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$q208yoFjejfkdk25okZN/ORsl9Cq1JMLwVskYrlsx8S7ktgP.H98S"], ["created_at", "2015-02-27 21:51:05.713176"], ["updated_at", "2015-02-27 21:51:05.713176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.714745"], ["user_id", "baf357da-beca-11e4-b241-705681abff85"], ["created_at", "2015-02-27 21:51:05.715498"], ["updated_at", "2015-02-27 21:51:05.715498"], ["token", "gS3k1tG5Cg0G3XtODuw4aXcPKxmNrpfPUxs43Xd22gw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.718579"], ["updated_at", "2015-02-27 21:51:05.718579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baf357da-beca-11e4-b241-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baf4336c-beca-11e4-b60f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "baf357da-beca-11e4-b241-705681abff85"], ["organization_id", "baf4336c-beca-11e4-b60f-705681abff85"], ["created_at", "2015-02-27 21:51:05.722875"], ["updated_at", "2015-02-27 21:51:05.722875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-12" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-12", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.728838' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gS3k1tG5Cg0G3XtODuw4aXcPKxmNrpfPUxs43Xd22gw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.730344"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.731330"], ["id", "baf3b626-beca-11e4-b4f5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "baf357da-beca-11e4-b241-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "baf357da-beca-11e4-b241-705681abff85"], ["name", "org-12"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ViBeL6k4zjmK9z3HqOtwNOIIvVzXMBvltene45A/gqLsqO4Yyvuhi"], ["created_at", "2015-02-27 21:51:05.742932"], ["updated_at", "2015-02-27 21:51:05.742932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.744537"], ["user_id", "baf7e21e-beca-11e4-8ff8-705681abff85"], ["created_at", "2015-02-27 21:51:05.745551"], ["updated_at", "2015-02-27 21:51:05.745551"], ["token", "0iDuk9YZxilm9lPOSahSA1o79M-a7YCk9N1IUFKm1YE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.749288"], ["updated_at", "2015-02-27 21:51:05.749288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baf7e21e-beca-11e4-8ff8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baf8d9c6-beca-11e4-8759-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "baf7e21e-beca-11e4-8ff8-705681abff85"], ["organization_id", "baf8d9c6-beca-11e4-8759-705681abff85"], ["created_at", "2015-02-27 21:51:05.752708"], ["updated_at", "2015-02-27 21:51:05.752708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$vjG5453KXHocN/TxKghoZOqzHSH/PCcRM2Zw2I1HAyqwiHzeggfzu"], ["created_at", "2015-02-27 21:51:05.765714"], ["updated_at", "2015-02-27 21:51:05.765714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.768073"], ["user_id", "bafb6e02-beca-11e4-b90f-705681abff85"], ["created_at", "2015-02-27 21:51:05.768856"], ["updated_at", "2015-02-27 21:51:05.768856"], ["token", "ZgKLY2Cgx1j9IY2wv6lSNHY1DAsgC3M-9vOVbOccPXo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.772098"], ["updated_at", "2015-02-27 21:51:05.772098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bafb6e02-beca-11e4-b90f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bafc595c-beca-11e4-8f29-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bafb6e02-beca-11e4-b90f-705681abff85"], ["organization_id", "bafc595c-beca-11e4-8f29-705681abff85"], ["created_at", "2015-02-27 21:51:05.776341"], ["updated_at", "2015-02-27 21:51:05.776341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/bafc595c-beca-11e4-8f29-705681abff85" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"bafc595c-beca-11e4-8f29-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.781564' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZgKLY2Cgx1j9IY2wv6lSNHY1DAsgC3M-9vOVbOccPXo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.783009"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.784063"], ["id", "bafbdafe-beca-11e4-b3a7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bafb6e02-beca-11e4-b90f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "bafb6e02-beca-11e4-b90f-705681abff85"], ["id", "bafc595c-beca-11e4-8f29-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bafc595c-beca-11e4-8f29-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$xd2AdbnAokcz1U.7qTaIOu5wuLztx8gRqCWnXwphQOSrZuYnQoo2q"], ["created_at", "2015-02-27 21:51:05.794035"], ["updated_at", "2015-02-27 21:51:05.794035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.796067"], ["user_id", "baffae86-beca-11e4-b068-705681abff85"], ["created_at", "2015-02-27 21:51:05.797232"], ["updated_at", "2015-02-27 21:51:05.797232"], ["token", "U0IlrgOLl0QMGwr8j0CjAM95eH7dgd51GY2JdSpN1nc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.800362"], ["updated_at", "2015-02-27 21:51:05.800362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baffae86-beca-11e4-b068-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb00a1c4-beca-11e4-ae5c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "baffae86-beca-11e4-b068-705681abff85"], ["organization_id", "bb00a1c4-beca-11e4-ae5c-705681abff85"], ["created_at", "2015-02-27 21:51:05.803409"], ["updated_at", "2015-02-27 21:51:05.803409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$zt0jq6NCkcu0C0880XEBfOQ50qMRnc/irOD5cqkYwT8TBEIb3s2ci"], ["created_at", "2015-02-27 21:51:05.807614"], ["updated_at", "2015-02-27 21:51:05.807614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.810722"], ["updated_at", "2015-02-27 21:51:05.810722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb01c162-beca-11e4-9deb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0238ea-beca-11e4-b9fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb01c162-beca-11e4-9deb-705681abff85"], ["organization_id", "bb0238ea-beca-11e4-b9fd-705681abff85"], ["created_at", "2015-02-27 21:51:05.813863"], ["updated_at", "2015-02-27 21:51:05.813863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$WAKWPXpA5414m7aTvMPPc.6RnuupxGvMdCw7uvUwozSYSwCNkUaFC"], ["created_at", "2015-02-27 21:51:05.825852"], ["updated_at", "2015-02-27 21:51:05.825852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.827806"], ["user_id", "bb0492c0-beca-11e4-bce2-705681abff85"], ["created_at", "2015-02-27 21:51:05.828620"], ["updated_at", "2015-02-27 21:51:05.828620"], ["token", "BBij3LiWjagFD3EDvxopd5ytsxb0uNchlaRO-U7waig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.831850"], ["updated_at", "2015-02-27 21:51:05.831850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0492c0-beca-11e4-bce2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb056f9c-beca-11e4-b2d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb0492c0-beca-11e4-bce2-705681abff85"], ["organization_id", "bb056f9c-beca-11e4-b2d7-705681abff85"], ["created_at", "2015-02-27 21:51:05.834906"], ["updated_at", "2015-02-27 21:51:05.834906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$msPkMUula.kNWgNAGU2BkeN0SCAERv/CN8wAxBKVVoikxF99Bhfo6"], ["created_at", "2015-02-27 21:51:05.839100"], ["updated_at", "2015-02-27 21:51:05.839100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.842059"], ["updated_at", "2015-02-27 21:51:05.842059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb068b7a-beca-11e4-bd01-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb070154-beca-11e4-83fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb068b7a-beca-11e4-bd01-705681abff85"], ["organization_id", "bb070154-beca-11e4-83fd-705681abff85"], ["created_at", "2015-02-27 21:51:05.846288"], ["updated_at", "2015-02-27 21:51:05.846288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.850803' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BBij3LiWjagFD3EDvxopd5ytsxb0uNchlaRO-U7waig"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.852733"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.853939"], ["id", "bb04fc24-beca-11e4-b8f2-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb0492c0-beca-11e4-bce2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "bb0492c0-beca-11e4-bce2-705681abff85"]] Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$qpMOlXz4evDU7kSy8qJBLeI2/6YEmjKO8rDhU2iiV6HfN9ewStLW."], ["created_at", "2015-02-27 21:51:05.866906"], ["updated_at", "2015-02-27 21:51:05.866906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.868695"], ["user_id", "bb0acd70-beca-11e4-8dfd-705681abff85"], ["created_at", "2015-02-27 21:51:05.869504"], ["updated_at", "2015-02-27 21:51:05.869504"], ["token", "NI4D6cukM5slth3kz9ghX1Vto-Gd_Hyzeh-_RwrQNPw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.872798"], ["updated_at", "2015-02-27 21:51:05.872798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0acd70-beca-11e4-8dfd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0bb1a4-beca-11e4-8ba8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb0acd70-beca-11e4-8dfd-705681abff85"], ["organization_id", "bb0bb1a4-beca-11e4-8ba8-705681abff85"], ["created_at", "2015-02-27 21:51:05.876009"], ["updated_at", "2015-02-27 21:51:05.876009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ek4qnu1R5adE7oVy2lUw2eF3C3rp5FtEpsmk/CKVl7TzBucNFy0Hq"], ["created_at", "2015-02-27 21:51:05.888866"], ["updated_at", "2015-02-27 21:51:05.888866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.890669"], ["user_id", "bb0e29ac-beca-11e4-b2de-705681abff85"], ["created_at", "2015-02-27 21:51:05.891425"], ["updated_at", "2015-02-27 21:51:05.891425"], ["token", "_aELVJNt1rxPU_l1uv9k71aVSZCnbpWuYd_qGbke2X8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.894863"], ["updated_at", "2015-02-27 21:51:05.894863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0e29ac-beca-11e4-b2de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0f0e44-beca-11e4-a928-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb0e29ac-beca-11e4-b2de-705681abff85"], ["organization_id", "bb0f0e44-beca-11e4-a928-705681abff85"], ["created_at", "2015-02-27 21:51:05.898611"], ["updated_at", "2015-02-27 21:51:05.898611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-20" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-20", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.903168' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_aELVJNt1rxPU_l1uv9k71aVSZCnbpWuYd_qGbke2X8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.904583"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.905489"], ["id", "bb0e9126-beca-11e4-9a57-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb0e29ac-beca-11e4-b2de-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "bb0e29ac-beca-11e4-b2de-705681abff85"], ["name", "org-20"]]  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bb0f0e44-beca-11e4-a928-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:51:05.912458"], ["id", "bb0f0e44-beca-11e4-a928-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (11.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$9Lqn1a/Fk6NmONRKz6a4rOVu5lXRjJv3OPOQj3GwYI9/w2sYVjEW."], ["created_at", "2015-02-27 21:51:05.932147"], ["updated_at", "2015-02-27 21:51:05.932147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.936006"], ["user_id", "bb14ea4e-beca-11e4-9dd3-705681abff85"], ["created_at", "2015-02-27 21:51:05.937766"], ["updated_at", "2015-02-27 21:51:05.937766"], ["token", "KugLfysXyVfBZTxEfacZG7O75Flof32t0c88tqG8ZxU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.944991"], ["updated_at", "2015-02-27 21:51:05.944991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb14ea4e-beca-11e4-9dd3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb16c6e8-beca-11e4-aed1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb14ea4e-beca-11e4-9dd3-705681abff85"], ["organization_id", "bb16c6e8-beca-11e4-aed1-705681abff85"], ["created_at", "2015-02-27 21:51:05.949037"], ["updated_at", "2015-02-27 21:51:05.949037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-21" for 127.0.0.1 at 2015-02-27 13:51:05 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-21", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:05.954313' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KugLfysXyVfBZTxEfacZG7O75Flof32t0c88tqG8ZxU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:05.955822"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:05.956775"], ["id", "bb15cb30-beca-11e4-bfb1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb14ea4e-beca-11e4-9dd3-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "bb14ea4e-beca-11e4-9dd3-705681abff85"], ["name", "org-21"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bb16c6e8-beca-11e4-aed1-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$FxNJzERTP2LEqLv0GsmbYO5TpPhm1.gBhOns8ohUz8RT3RfJn752u"], ["created_at", "2015-02-27 21:51:05.970522"], ["updated_at", "2015-02-27 21:51:05.970522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:05.972201"], ["user_id", "bb1a9dcc-beca-11e4-b836-705681abff85"], ["created_at", "2015-02-27 21:51:05.972960"], ["updated_at", "2015-02-27 21:51:05.972960"], ["token", "QStFsgWQoXWENcxJvZIHbSra9G2G2-XWlqnKLT5w8Kc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:05.976478"], ["updated_at", "2015-02-27 21:51:05.976478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1a9dcc-beca-11e4-b836-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1b85d4-beca-11e4-84f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb1a9dcc-beca-11e4-b836-705681abff85"], ["organization_id", "bb1b85d4-beca-11e4-84f9-705681abff85"], ["created_at", "2015-02-27 21:51:05.979957"], ["updated_at", "2015-02-27 21:51:05.979957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-22" for 127.0.0.1 at 2015-02-27 13:51:05 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$dK9euBGfIVwnNNSyQ/us0ex2teBaGqqezoEEYuPNGS9wleXjmvtba"], ["created_at", "2015-02-27 21:51:06.005876"], ["updated_at", "2015-02-27 21:51:06.005876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:06.008048"], ["user_id", "bb200122-beca-11e4-89ef-705681abff85"], ["created_at", "2015-02-27 21:51:06.009380"], ["updated_at", "2015-02-27 21:51:06.009380"], ["token", "1bSi-cVwD8NfCkCuLW8zt2EWOH2fTfsA9j0hd1HOJbM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:06.014073"], ["updated_at", "2015-02-27 21:51:06.014073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb200122-beca-11e4-89ef-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb21419a-beca-11e4-a23f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb200122-beca-11e4-89ef-705681abff85"], ["organization_id", "bb21419a-beca-11e4-a23f-705681abff85"], ["created_at", "2015-02-27 21:51:06.017355"], ["updated_at", "2015-02-27 21:51:06.017355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:51:06 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$AXoaRda2F/FqQTCwLJslHeXTU20S6hMKvKqiYeDjsrbcMp7KAXhrS"], ["created_at", "2015-02-27 21:51:33.746034"], ["updated_at", "2015-02-27 21:51:33.746034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:33.758161"], ["user_id", "cba90534-beca-11e4-86f3-705681abff85"], ["created_at", "2015-02-27 21:51:33.764030"], ["updated_at", "2015-02-27 21:51:33.764030"], ["token", "3yGKunnGIWyWJNDDEq75sKfZoAAwp-C0WoyztVmH9Ig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:33.774409"], ["updated_at", "2015-02-27 21:51:33.774409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cba90534-beca-11e4-86f3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbad35fa-beca-11e4-9b64-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cba90534-beca-11e4-86f3-705681abff85"], ["organization_id", "cbad35fa-beca-11e4-9b64-705681abff85"], ["created_at", "2015-02-27 21:51:33.786895"], ["updated_at", "2015-02-27 21:51:33.786895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:51:33 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (2.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$JBBiLwLCuElZoofwjekbX.R45ZENXMqrqFs9iXq1J2JGCeeX/qGf6"], ["created_at", "2015-02-27 21:51:33.835934"], ["updated_at", "2015-02-27 21:51:33.835934"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:33.841076"], ["user_id", "cbb6c7d2-beca-11e4-8dee-705681abff85"], ["created_at", "2015-02-27 21:51:33.842148"], ["updated_at", "2015-02-27 21:51:33.842148"], ["token", "r1O2aNgIAVTLSHAcphDBr5D6zijQjtXBTjOPyAJu8w8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:33.845884"], ["updated_at", "2015-02-27 21:51:33.845884"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbb6c7d2-beca-11e4-8dee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbb81f56-beca-11e4-a347-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbb6c7d2-beca-11e4-8dee-705681abff85"], ["organization_id", "cbb81f56-beca-11e4-a347-705681abff85"], ["created_at", "2015-02-27 21:51:33.852039"], ["updated_at", "2015-02-27 21:51:33.852039"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/cbb81f56-beca-11e4-a347-705681abff85" for 127.0.0.1 at 2015-02-27 13:51:33 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"cbb81f56-beca-11e4-a347-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:33.875224' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r1O2aNgIAVTLSHAcphDBr5D6zijQjtXBTjOPyAJu8w8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:33.884035"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:33.885321"], ["id", "cbb786cc-beca-11e4-b68e-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbb6c7d2-beca-11e4-8dee-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "cbb6c7d2-beca-11e4-8dee-705681abff85"], ["id", "cbb81f56-beca-11e4-a347-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "cbb81f56-beca-11e4-a347-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 36ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$kW7xt3Q1s2coiz7KzGLBD.HCzSoaYLGVTZm/kShYg2tBwOyvu0UI6"], ["created_at", "2015-02-27 21:51:33.916915"], ["updated_at", "2015-02-27 21:51:33.916915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (18.3ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:33.918642"], ["user_id", "cbc2e7c4-beca-11e4-aa7c-705681abff85"], ["created_at", "2015-02-27 21:51:33.938061"], ["updated_at", "2015-02-27 21:51:33.938061"], ["token", "aCbvOqAaldoM4u-M6iDWoofRNiCFf72sER8oRcPbJ_8"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:33.952543"], ["updated_at", "2015-02-27 21:51:33.952543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbc2e7c4-beca-11e4-aa7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbc8b97e-beca-11e4-955c-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbc2e7c4-beca-11e4-aa7c-705681abff85"], ["organization_id", "cbc8b97e-beca-11e4-955c-705681abff85"], ["created_at", "2015-02-27 21:51:33.964667"], ["updated_at", "2015-02-27 21:51:33.964667"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:51:33 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$h0kgkvN57NGGu7Jf7YVbEOpGTejbUlPVKp2/JwgTRq.R7sdF6YNXi"], ["created_at", "2015-02-27 21:51:33.993440"], ["updated_at", "2015-02-27 21:51:33.993440"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:33.997880"], ["user_id", "cbcec56c-beca-11e4-b874-705681abff85"], ["created_at", "2015-02-27 21:51:33.998975"], ["updated_at", "2015-02-27 21:51:33.998975"], ["token", "svVN5dBeS1UyPQUGfdqZeUdeNfc8YTIeCb-lCYaNy-M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.005247"], ["updated_at", "2015-02-27 21:51:34.005247"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbcec56c-beca-11e4-b874-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbd06b88-beca-11e4-87dc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbcec56c-beca-11e4-b874-705681abff85"], ["organization_id", "cbd06b88-beca-11e4-87dc-705681abff85"], ["created_at", "2015-02-27 21:51:34.010174"], ["updated_at", "2015-02-27 21:51:34.010174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/cbd06b88-beca-11e4-87dc-705681abff85" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"cbd06b88-beca-11e4-87dc-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:34.016250' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "svVN5dBeS1UyPQUGfdqZeUdeNfc8YTIeCb-lCYaNy-M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:34.018004"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:34.019216"], ["id", "cbcf7ae8-beca-11e4-bbd1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbcec56c-beca-11e4-b874-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "cbcec56c-beca-11e4-b874-705681abff85"], ["id", "cbd06b88-beca-11e4-87dc-705681abff85"]] Completed 200 OK in 11ms (Views: 2.2ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$7hOuC8YqJMERfdRtfMs/Rut5XHCzDQqzk7W4a53J3gcHQmN1vND92"], ["created_at", "2015-02-27 21:51:34.034913"], ["updated_at", "2015-02-27 21:51:34.034913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.036659"], ["user_id", "cbd4e6ea-beca-11e4-ab06-705681abff85"], ["created_at", "2015-02-27 21:51:34.037944"], ["updated_at", "2015-02-27 21:51:34.037944"], ["token", "MnvpCc1dWRlxeRMCIBdOFBhajzRDZrC1Ywcz26O10_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.041824"], ["updated_at", "2015-02-27 21:51:34.041824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbd4e6ea-beca-11e4-ab06-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbd5f210-beca-11e4-ad3d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbd4e6ea-beca-11e4-ab06-705681abff85"], ["organization_id", "cbd5f210-beca-11e4-ad3d-705681abff85"], ["created_at", "2015-02-27 21:51:34.045214"], ["updated_at", "2015-02-27 21:51:34.045214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-5" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-5"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-5"]] Completed 200 OK in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (12.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$b5AMUtOL.ihEIv7lm6ERieWgL7.jexH2o1RK2mZ9ZgCbHvm5BM5cG"], ["created_at", "2015-02-27 21:51:34.059804"], ["updated_at", "2015-02-27 21:51:34.059804"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.075452"], ["user_id", "cbd8b4d2-beca-11e4-83ca-705681abff85"], ["created_at", "2015-02-27 21:51:34.076932"], ["updated_at", "2015-02-27 21:51:34.076932"], ["token", "X6nASKBAKvI7UHDywfmAfSdUtBlG7wG0lFh99ppPC6Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.081161"], ["updated_at", "2015-02-27 21:51:34.081161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbd8b4d2-beca-11e4-83ca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbdbf57a-beca-11e4-8ffb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbd8b4d2-beca-11e4-83ca-705681abff85"], ["organization_id", "cbdbf57a-beca-11e4-8ffb-705681abff85"], ["created_at", "2015-02-27 21:51:34.084873"], ["updated_at", "2015-02-27 21:51:34.084873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$xv9I5zGd5N.bv.1Hs4IdnOie0iLRJR6gPIXMXuhWZDHF3NTNrpa46"], ["created_at", "2015-02-27 21:51:34.099668"], ["updated_at", "2015-02-27 21:51:34.099668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.101770"], ["user_id", "cbdecb42-beca-11e4-962b-705681abff85"], ["created_at", "2015-02-27 21:51:34.102747"], ["updated_at", "2015-02-27 21:51:34.102747"], ["token", "nU-sTpAqZvqMtu70M3ZKhgiCb8foB5k5JiuTv7C7gcE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.107053"], ["updated_at", "2015-02-27 21:51:34.107053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbdecb42-beca-11e4-962b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbdfe9f0-beca-11e4-ba20-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbdecb42-beca-11e4-962b-705681abff85"], ["organization_id", "cbdfe9f0-beca-11e4-ba20-705681abff85"], ["created_at", "2015-02-27 21:51:34.111124"], ["updated_at", "2015-02-27 21:51:34.111124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$68UYFI2aobeVxHi7e3R.QeVVNYiIaoUcBJzsSZQaHHor2gNzricFC"], ["created_at", "2015-02-27 21:51:34.125235"], ["updated_at", "2015-02-27 21:51:34.125235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.127198"], ["user_id", "cbe2b2ca-beca-11e4-a202-705681abff85"], ["created_at", "2015-02-27 21:51:34.128151"], ["updated_at", "2015-02-27 21:51:34.128151"], ["token", "MgmKHeoUpm-GDsdEwa0halyoVDdn-g_G_3GrY1cCxzU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.133056"], ["updated_at", "2015-02-27 21:51:34.133056"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe2b2ca-beca-11e4-a202-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbe3f612-beca-11e4-8c5f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbe2b2ca-beca-11e4-a202-705681abff85"], ["organization_id", "cbe3f612-beca-11e4-8c5f-705681abff85"], ["created_at", "2015-02-27 21:51:34.139915"], ["updated_at", "2015-02-27 21:51:34.139915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-8" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-8", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:34.146723' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MgmKHeoUpm-GDsdEwa0halyoVDdn-g_G_3GrY1cCxzU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:34.148285"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:34.149393"], ["id", "cbe3374a-beca-11e4-b508-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbe2b2ca-beca-11e4-a202-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "cbe2b2ca-beca-11e4-a202-705681abff85"], ["name", "org-8"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cbe3f612-beca-11e4-8c5f-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:51:34.158785"], ["id", "cbe3f612-beca-11e4-8c5f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$MNDa1/aaTpd1iYpRzIcLKu9oeEgm.hJ07NoMyGXZzYANKuS7wKiYe"], ["created_at", "2015-02-27 21:51:34.166924"], ["updated_at", "2015-02-27 21:51:34.166924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.168598"], ["user_id", "cbe90a76-beca-11e4-be59-705681abff85"], ["created_at", "2015-02-27 21:51:34.169600"], ["updated_at", "2015-02-27 21:51:34.169600"], ["token", "FFOk3Spy0g4FfRJn5NSBjh31sdC7vyl6QOJxnsKerSk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.173086"], ["updated_at", "2015-02-27 21:51:34.173086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe90a76-beca-11e4-be59-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbe9f81e-beca-11e4-8987-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbe90a76-beca-11e4-be59-705681abff85"], ["organization_id", "cbe9f81e-beca-11e4-8987-705681abff85"], ["created_at", "2015-02-27 21:51:34.176736"], ["updated_at", "2015-02-27 21:51:34.176736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:34.183303' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FFOk3Spy0g4FfRJn5NSBjh31sdC7vyl6QOJxnsKerSk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:34.184760"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:34.185719"], ["id", "cbe97d3a-beca-11e4-baee-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbe90a76-beca-11e4-be59-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "cbe90a76-beca-11e4-be59-705681abff85"], ["name", "org-9"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cbe9f81e-beca-11e4-8987-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$rekHGrMrJlofQpfq38OHPu0fZgqjmFZxXATJXc3nP.3PKq4uIrTVW"], ["created_at", "2015-02-27 21:51:34.210454"], ["updated_at", "2015-02-27 21:51:34.210454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.212174"], ["user_id", "cbefaf3e-beca-11e4-b446-705681abff85"], ["created_at", "2015-02-27 21:51:34.213005"], ["updated_at", "2015-02-27 21:51:34.213005"], ["token", "Axrh8IyhkCpsAu9fbk6xwSndFlt1Q9GnE64419vDZ0w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.216309"], ["updated_at", "2015-02-27 21:51:34.216309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbefaf3e-beca-11e4-b446-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbf097b4-beca-11e4-b03c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbefaf3e-beca-11e4-b446-705681abff85"], ["organization_id", "cbf097b4-beca-11e4-b03c-705681abff85"], ["created_at", "2015-02-27 21:51:34.220052"], ["updated_at", "2015-02-27 21:51:34.220052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$x0ipfau7j4g5Katu4t3LM.nPZMqLwnyniNQZiy/4Za8NxXXPpR/CS"], ["created_at", "2015-02-27 21:51:34.267200"], ["updated_at", "2015-02-27 21:51:34.267200"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.269243"], ["user_id", "cbf86048-beca-11e4-8924-705681abff85"], ["created_at", "2015-02-27 21:51:34.270238"], ["updated_at", "2015-02-27 21:51:34.270238"], ["token", "b2faQR3dxAWFdd17UQMpMjgSB9tK8ZxKamNZS_Dq9UI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.277969"], ["updated_at", "2015-02-27 21:51:34.277969"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbf86048-beca-11e4-8924-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbfa1262-beca-11e4-8bba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbf86048-beca-11e4-8924-705681abff85"], ["organization_id", "cbfa1262-beca-11e4-8bba-705681abff85"], ["created_at", "2015-02-27 21:51:34.283036"], ["updated_at", "2015-02-27 21:51:34.283036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-11" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-11", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:34.288635' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b2faQR3dxAWFdd17UQMpMjgSB9tK8ZxKamNZS_Dq9UI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:34.290489"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:34.291759"], ["id", "cbf8dfdc-beca-11e4-9e72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbf86048-beca-11e4-8924-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "cbf86048-beca-11e4-8924-705681abff85"], ["name", "org-11"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "cbfa1262-beca-11e4-8bba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$jv02gqDxb1e7img3.MKk4ORxFo6m1YNxIonTvhNC/I56PxekxX2Hi"], ["created_at", "2015-02-27 21:51:34.304202"], ["updated_at", "2015-02-27 21:51:34.304202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.306936"], ["user_id", "cbfe0598-beca-11e4-891c-705681abff85"], ["created_at", "2015-02-27 21:51:34.307780"], ["updated_at", "2015-02-27 21:51:34.307780"], ["token", "ArodOudDvA00dRxq_GFHx7kH9IdviDIqe38jlMPf8lI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.312180"], ["updated_at", "2015-02-27 21:51:34.312180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbfe0598-beca-11e4-891c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbff3b8e-beca-11e4-b922-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbfe0598-beca-11e4-891c-705681abff85"], ["organization_id", "cbff3b8e-beca-11e4-b922-705681abff85"], ["created_at", "2015-02-27 21:51:34.316394"], ["updated_at", "2015-02-27 21:51:34.316394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$P9mSZcb7RdlDvYXPYhMMje.IF9kM/iYfJ0rAAsBf.yu9BiqcMWSxW"], ["created_at", "2015-02-27 21:51:34.330383"], ["updated_at", "2015-02-27 21:51:34.330383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.332162"], ["user_id", "cc01fda6-beca-11e4-938c-705681abff85"], ["created_at", "2015-02-27 21:51:34.333176"], ["updated_at", "2015-02-27 21:51:34.333176"], ["token", "bnh4E8cY7ZKiCNQFajwihcXH_YqmyiQyYLhWmMGyQzk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.337070"], ["updated_at", "2015-02-27 21:51:34.337070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc01fda6-beca-11e4-938c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc0301ec-beca-11e4-aff0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc01fda6-beca-11e4-938c-705681abff85"], ["organization_id", "cc0301ec-beca-11e4-aff0-705681abff85"], ["created_at", "2015-02-27 21:51:34.340881"], ["updated_at", "2015-02-27 21:51:34.340881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/cc0301ec-beca-11e4-aff0-705681abff85" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"cc0301ec-beca-11e4-aff0-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:34.345427' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bnh4E8cY7ZKiCNQFajwihcXH_YqmyiQyYLhWmMGyQzk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:34.346849"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:34.347810"], ["id", "cc027a38-beca-11e4-a6b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc01fda6-beca-11e4-938c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "cc01fda6-beca-11e4-938c-705681abff85"], ["id", "cc0301ec-beca-11e4-aff0-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cc0301ec-beca-11e4-aff0-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:51:34.353611"], ["id", "cc0301ec-beca-11e4-aff0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$8GeGyMhv971avtYCsLeH9OSCR./E/koL5jNrqAPOQAm0Vqip.WVHG"], ["created_at", "2015-02-27 21:51:34.362110"], ["updated_at", "2015-02-27 21:51:34.362110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.363665"], ["user_id", "cc06d218-beca-11e4-ac8b-705681abff85"], ["created_at", "2015-02-27 21:51:34.364415"], ["updated_at", "2015-02-27 21:51:34.364415"], ["token", "NDehqoRjI0ts__HE6DHGnF2mu4qBFt4slTq7qzzJx30"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.367598"], ["updated_at", "2015-02-27 21:51:34.367598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc06d218-beca-11e4-ac8b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc07a580-beca-11e4-b807-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc06d218-beca-11e4-ac8b-705681abff85"], ["organization_id", "cc07a580-beca-11e4-b807-705681abff85"], ["created_at", "2015-02-27 21:51:34.370702"], ["updated_at", "2015-02-27 21:51:34.370702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/cc07a580-beca-11e4-b807-705681abff85" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"cc07a580-beca-11e4-b807-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:34.375247' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NDehqoRjI0ts__HE6DHGnF2mu4qBFt4slTq7qzzJx30"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:34.376631"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:34.377645"], ["id", "cc07337a-beca-11e4-9247-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc06d218-beca-11e4-ac8b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "cc06d218-beca-11e4-ac8b-705681abff85"], ["id", "cc07a580-beca-11e4-b807-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cc07a580-beca-11e4-b807-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$wO6AFosCCKlRdzkGnt69Zubk0FL8qHlzxCxXZm.S43zt1w/fcNvU."], ["created_at", "2015-02-27 21:51:34.391064"], ["updated_at", "2015-02-27 21:51:34.391064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.393631"], ["user_id", "cc0b5298-beca-11e4-98a8-705681abff85"], ["created_at", "2015-02-27 21:51:34.394696"], ["updated_at", "2015-02-27 21:51:34.394696"], ["token", "gzHRJbq6WUIzALSBh41LDGtxVHBO1S69lzfoNvWx3cg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.398509"], ["updated_at", "2015-02-27 21:51:34.398509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc0b5298-beca-11e4-98a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc0c5ea4-beca-11e4-82cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc0b5298-beca-11e4-98a8-705681abff85"], ["organization_id", "cc0c5ea4-beca-11e4-82cd-705681abff85"], ["created_at", "2015-02-27 21:51:34.401676"], ["updated_at", "2015-02-27 21:51:34.401676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Ty/6SPjXvwvCvVDOctlF.uZ/29QKJmMl5YhsARiq4BCR9JPQx4OoO"], ["created_at", "2015-02-27 21:51:34.407522"], ["updated_at", "2015-02-27 21:51:34.407522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.411018"], ["updated_at", "2015-02-27 21:51:34.411018"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc0dc37a-beca-11e4-84c7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc0e4b92-beca-11e4-afa0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc0dc37a-beca-11e4-84c7-705681abff85"], ["organization_id", "cc0e4b92-beca-11e4-afa0-705681abff85"], ["created_at", "2015-02-27 21:51:34.414582"], ["updated_at", "2015-02-27 21:51:34.414582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$F5JbgSMfc.GeWmkfHbTK.e71.aoBNg6pJoS7aHbt2cjh6TMp1yfWe"], ["created_at", "2015-02-27 21:51:34.428359"], ["updated_at", "2015-02-27 21:51:34.428359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.429949"], ["user_id", "cc10ef28-beca-11e4-8876-705681abff85"], ["created_at", "2015-02-27 21:51:34.430710"], ["updated_at", "2015-02-27 21:51:34.430710"], ["token", "RwvJMMBwLnpduJNz2gls0HGTTl9Xf1-AI1MD_YPfcBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.433814"], ["updated_at", "2015-02-27 21:51:34.433814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc10ef28-beca-11e4-8876-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc11c0b0-beca-11e4-88fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc10ef28-beca-11e4-8876-705681abff85"], ["organization_id", "cc11c0b0-beca-11e4-88fb-705681abff85"], ["created_at", "2015-02-27 21:51:34.436952"], ["updated_at", "2015-02-27 21:51:34.436952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Cb2eWfpYhZYY42F.f9KoguCeM7ff209Dx8XDtMO.tBQIrIjL4rfWK"], ["created_at", "2015-02-27 21:51:34.441683"], ["updated_at", "2015-02-27 21:51:34.441683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.445438"], ["updated_at", "2015-02-27 21:51:34.445438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc1310d2-beca-11e4-8b39-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc138792-beca-11e4-b8dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc1310d2-beca-11e4-8b39-705681abff85"], ["organization_id", "cc138792-beca-11e4-b8dd-705681abff85"], ["created_at", "2015-02-27 21:51:34.449149"], ["updated_at", "2015-02-27 21:51:34.449149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:34.453785' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RwvJMMBwLnpduJNz2gls0HGTTl9Xf1-AI1MD_YPfcBk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:34.455212"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:34.456194"], ["id", "cc114dd8-beca-11e4-bb7a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc10ef28-beca-11e4-8876-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "cc10ef28-beca-11e4-8876-705681abff85"]] Completed 200 OK in 9ms (Views: 2.3ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$AQZ/MpIoPsKlG21dcvWnW.dcifMLuFRu4OXZDuJ4JATLzZQo1m15y"], ["created_at", "2015-02-27 21:51:34.468673"], ["updated_at", "2015-02-27 21:51:34.468673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.470292"], ["user_id", "cc17154c-beca-11e4-9576-705681abff85"], ["created_at", "2015-02-27 21:51:34.471045"], ["updated_at", "2015-02-27 21:51:34.471045"], ["token", "CXrSv0LMMPG1-YdYzmO9zPHiWdNbxZKYjAjFO0DT7l0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.475210"], ["updated_at", "2015-02-27 21:51:34.475210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc17154c-beca-11e4-9576-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc1813f2-beca-11e4-a958-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc17154c-beca-11e4-9576-705681abff85"], ["organization_id", "cc1813f2-beca-11e4-a958-705681abff85"], ["created_at", "2015-02-27 21:51:34.478461"], ["updated_at", "2015-02-27 21:51:34.478461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Iw6d.fH55soVpIr7xTTgfeSHxq7Xujk.ff/Ja5ob9Tknld.GNQTXu"], ["created_at", "2015-02-27 21:51:34.492319"], ["updated_at", "2015-02-27 21:51:34.492319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.493899"], ["user_id", "cc1ab102-beca-11e4-acba-705681abff85"], ["created_at", "2015-02-27 21:51:34.494666"], ["updated_at", "2015-02-27 21:51:34.494666"], ["token", "8N5Op00fZL5HtNlOusDcFDoAzW9ZXYyFOOo_fgrj4Wc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.497863"], ["updated_at", "2015-02-27 21:51:34.497863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc1ab102-beca-11e4-acba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc1b8726-beca-11e4-b135-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc1ab102-beca-11e4-acba-705681abff85"], ["organization_id", "cc1b8726-beca-11e4-b135-705681abff85"], ["created_at", "2015-02-27 21:51:34.500983"], ["updated_at", "2015-02-27 21:51:34.500983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:34.505926' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8N5Op00fZL5HtNlOusDcFDoAzW9ZXYyFOOo_fgrj4Wc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:34.508276"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:34.509620"], ["id", "cc1b1250-beca-11e4-a555-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc1ab102-beca-11e4-acba-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.515230"], ["updated_at", "2015-02-27 21:51:34.515230"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cc1e2f4e-beca-11e4-bedb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc1ab102-beca-11e4-acba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc1e2f4e-beca-11e4-bedb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc1ab102-beca-11e4-acba-705681abff85"], ["admin", "t"], ["organization_id", "cc1e2f4e-beca-11e4-bedb-705681abff85"], ["created_at", "2015-02-27 21:51:34.520543"], ["updated_at", "2015-02-27 21:51:34.520543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.7ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$WKnSltkdvWdym2aaY.Mn5ebMqV2V7L/6Z60RbWLGvi2k3D11CX0Pm"], ["created_at", "2015-02-27 21:51:34.529338"], ["updated_at", "2015-02-27 21:51:34.529338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.531175"], ["user_id", "cc205846-beca-11e4-ac9e-705681abff85"], ["created_at", "2015-02-27 21:51:34.532044"], ["updated_at", "2015-02-27 21:51:34.532044"], ["token", "OjPXtV11ndXXvWdgfQgmeOJu6JypTV06BtJK0F3Mi3g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.535414"], ["updated_at", "2015-02-27 21:51:34.535414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc205846-beca-11e4-ac9e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc214292-beca-11e4-9dbd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc205846-beca-11e4-ac9e-705681abff85"], ["organization_id", "cc214292-beca-11e4-9dbd-705681abff85"], ["created_at", "2015-02-27 21:51:34.538693"], ["updated_at", "2015-02-27 21:51:34.538693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:34.543533' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OjPXtV11ndXXvWdgfQgmeOJu6JypTV06BtJK0F3Mi3g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:34.545015"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:34.545995"], ["id", "cc20c8b2-beca-11e4-b942-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc205846-beca-11e4-ac9e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$L9fyUj7F4ZfxF6Zt8/21SOZiow7vYUJSnKRROOwBChEAxtYzNsl7m"], ["created_at", "2015-02-27 21:51:34.557550"], ["updated_at", "2015-02-27 21:51:34.557550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.559203"], ["user_id", "cc24a608-beca-11e4-8918-705681abff85"], ["created_at", "2015-02-27 21:51:34.559988"], ["updated_at", "2015-02-27 21:51:34.559988"], ["token", "dBU0JeBEtkXjfFRhZbjWIc22NBznOPx-ac2IJ1RHnts"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.564058"], ["updated_at", "2015-02-27 21:51:34.564058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc24a608-beca-11e4-8918-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc25a35a-beca-11e4-a0df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc24a608-beca-11e4-8918-705681abff85"], ["organization_id", "cc25a35a-beca-11e4-a0df-705681abff85"], ["created_at", "2015-02-27 21:51:34.567454"], ["updated_at", "2015-02-27 21:51:34.567454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$JMLanTpcG97j6rYuey/3x.soY1mIX81rJFdZ5SiKRK/6.vi/j5cwS"], ["created_at", "2015-02-27 21:51:34.580318"], ["updated_at", "2015-02-27 21:51:34.580318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:51:34.582062"], ["user_id", "cc282102-beca-11e4-a681-705681abff85"], ["created_at", "2015-02-27 21:51:34.582880"], ["updated_at", "2015-02-27 21:51:34.582880"], ["token", "HQuaXISdQUzg81TVTuBgHyI7lkYSTc0u5U_OOafMRLs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:51:34.586358"], ["updated_at", "2015-02-27 21:51:34.586358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc282102-beca-11e4-a681-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc290892-beca-11e4-b566-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc282102-beca-11e4-a681-705681abff85"], ["organization_id", "cc290892-beca-11e4-b566-705681abff85"], ["created_at", "2015-02-27 21:51:34.589615"], ["updated_at", "2015-02-27 21:51:34.589615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-23" for 127.0.0.1 at 2015-02-27 13:51:34 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-23", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:51:34.594595' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HQuaXISdQUzg81TVTuBgHyI7lkYSTc0u5U_OOafMRLs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:51:34.596077"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:51:34.597039"], ["id", "cc288a34-beca-11e4-9a7f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc282102-beca-11e4-a681-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "cc282102-beca-11e4-a681-705681abff85"], ["name", "org-23"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$RgbL8OeWblZ2l06BfHuE5uKn1OE.5WBJ5lcbgD5LYZTtNviDo.NkO"], ["created_at", "2015-02-27 21:55:38.082994"], ["updated_at", "2015-02-27 21:55:38.082994"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.102280"], ["user_id", "5d4bd944-becb-11e4-a5e6-705681abff85"], ["created_at", "2015-02-27 21:55:38.107846"], ["updated_at", "2015-02-27 21:55:38.107846"], ["token", "bd1YJyTjo-Mo5S3y6zfJCqaEPfT5tKWVvPLpNRP5jSA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.123440"], ["updated_at", "2015-02-27 21:55:38.123440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d4bd944-becb-11e4-a5e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d51e276-becb-11e4-8726-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d4bd944-becb-11e4-a5e6-705681abff85"], ["organization_id", "5d51e276-becb-11e4-8726-705681abff85"], ["created_at", "2015-02-27 21:55:38.143598"], ["updated_at", "2015-02-27 21:55:38.143598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Mtzkgz2psKBc0/lyWamUAebNsuQUcWi6TcyE.Ipg63.O7fKvXD5QC"], ["created_at", "2015-02-27 21:55:38.175209"], ["updated_at", "2015-02-27 21:55:38.175209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.176842"], ["user_id", "5d59c1ee-becb-11e4-94b1-705681abff85"], ["created_at", "2015-02-27 21:55:38.177593"], ["updated_at", "2015-02-27 21:55:38.177593"], ["token", "6jZ0yQjlIM6REiM-dAoj_i_NhixwIomOw_LBAwd0MKI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.180898"], ["updated_at", "2015-02-27 21:55:38.180898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d59c1ee-becb-11e4-94b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d5a9c36-becb-11e4-bfce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d59c1ee-becb-11e4-94b1-705681abff85"], ["organization_id", "5d5a9c36-becb-11e4-bfce-705681abff85"], ["created_at", "2015-02-27 21:55:38.184158"], ["updated_at", "2015-02-27 21:55:38.184158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5d5a9c36-becb-11e4-bfce-705681abff85" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"5d5a9c36-becb-11e4-bfce-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.196901' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6jZ0yQjlIM6REiM-dAoj_i_NhixwIomOw_LBAwd0MKI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.204514"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.205923"], ["id", "5d5a22b0-becb-11e4-aff5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d59c1ee-becb-11e4-94b1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "5d59c1ee-becb-11e4-94b1-705681abff85"], ["id", "5d5a9c36-becb-11e4-bfce-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5d5a9c36-becb-11e4-bfce-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:55:38.231702"], ["id", "5d5a9c36-becb-11e4-bfce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 39ms (Views: 2.1ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Bfz4RYMX.Mcal/aCT47CE.lj1OkLhUsEfcVDszk3MvCO0f3wNWACa"], ["created_at", "2015-02-27 21:55:38.243469"], ["updated_at", "2015-02-27 21:55:38.243469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.245093"], ["user_id", "5d642bf2-becb-11e4-82bb-705681abff85"], ["created_at", "2015-02-27 21:55:38.245956"], ["updated_at", "2015-02-27 21:55:38.245956"], ["token", "8M0ilfI_MPnSp-0e975OEt_DtDuRKgvpzzgb995u4tQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.249472"], ["updated_at", "2015-02-27 21:55:38.249472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d642bf2-becb-11e4-82bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d651a8a-becb-11e4-8824-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d642bf2-becb-11e4-82bb-705681abff85"], ["organization_id", "5d651a8a-becb-11e4-8824-705681abff85"], ["created_at", "2015-02-27 21:55:38.253725"], ["updated_at", "2015-02-27 21:55:38.253725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5d651a8a-becb-11e4-8824-705681abff85" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"5d651a8a-becb-11e4-8824-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.262129' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8M0ilfI_MPnSp-0e975OEt_DtDuRKgvpzzgb995u4tQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.263875"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.265187"], ["id", "5d649362-becb-11e4-b1ee-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d642bf2-becb-11e4-82bb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "5d642bf2-becb-11e4-82bb-705681abff85"], ["id", "5d651a8a-becb-11e4-8824-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5d651a8a-becb-11e4-8824-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$2n9dUEM700ZY7MzYYHBeNudwplEgLYF.MEYUNbHv7x1scJlfhR262"], ["created_at", "2015-02-27 21:55:38.287361"], ["updated_at", "2015-02-27 21:55:38.287361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.289038"], ["user_id", "5d6adeca-becb-11e4-9e6a-705681abff85"], ["created_at", "2015-02-27 21:55:38.289784"], ["updated_at", "2015-02-27 21:55:38.289784"], ["token", "Kjck3Dl_EwxP0wmTZb5zuD0YWdM5BEUSlSd6Xt2Yt7E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.292915"], ["updated_at", "2015-02-27 21:55:38.292915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d6adeca-becb-11e4-9e6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d6bb35e-becb-11e4-a8c5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d6adeca-becb-11e4-9e6a-705681abff85"], ["organization_id", "5d6bb35e-becb-11e4-a8c5-705681abff85"], ["created_at", "2015-02-27 21:55:38.296038"], ["updated_at", "2015-02-27 21:55:38.296038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$zswYu9.iVaPWUKeVmkS7XuiDlNrKUBMBKeJKXuOWfBX0dLxgyRUC6"], ["created_at", "2015-02-27 21:55:38.309338"], ["updated_at", "2015-02-27 21:55:38.309338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.310925"], ["user_id", "5d6e3836-becb-11e4-8497-705681abff85"], ["created_at", "2015-02-27 21:55:38.311678"], ["updated_at", "2015-02-27 21:55:38.311678"], ["token", "nbiTFFI_uucrf12wVYgYskps-C4OZPUmXCtdQmw856o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.315007"], ["updated_at", "2015-02-27 21:55:38.315007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d6e3836-becb-11e4-8497-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d6f19d6-becb-11e4-821f-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d6e3836-becb-11e4-8497-705681abff85"], ["organization_id", "5d6f19d6-becb-11e4-821f-705681abff85"], ["created_at", "2015-02-27 21:55:38.320005"], ["updated_at", "2015-02-27 21:55:38.320005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-5" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.325550' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nbiTFFI_uucrf12wVYgYskps-C4OZPUmXCtdQmw856o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.327333"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.329045"], ["id", "5d6e9704-becb-11e4-9f1c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d6e3836-becb-11e4-8497-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "5d6e3836-becb-11e4-8497-705681abff85"], ["name", "org-5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "5d6f19d6-becb-11e4-821f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$mYG9Dtx/PiflHDx3AWK5o.9Pc3qV1xlPTOXBj.SN5LI16jeyTqIii"], ["created_at", "2015-02-27 21:55:38.342454"], ["updated_at", "2015-02-27 21:55:38.342454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.344047"], ["user_id", "5d7345e2-becb-11e4-be97-705681abff85"], ["created_at", "2015-02-27 21:55:38.344809"], ["updated_at", "2015-02-27 21:55:38.344809"], ["token", "2nvq-PBovrB8dPTBFPHSVKSNzaFFlKoYnXCJ-zcK11Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.347939"], ["updated_at", "2015-02-27 21:55:38.347939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d7345e2-becb-11e4-be97-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d741d6e-becb-11e4-be89-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d7345e2-becb-11e4-be97-705681abff85"], ["organization_id", "5d741d6e-becb-11e4-be89-705681abff85"], ["created_at", "2015-02-27 21:55:38.351385"], ["updated_at", "2015-02-27 21:55:38.351385"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$99Q2WTxwwbKgPfyFOtlime1AkJiEj8eN/rkj5iu7Ic38BWMOk/db6"], ["created_at", "2015-02-27 21:55:38.362984"], ["updated_at", "2015-02-27 21:55:38.362984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.364571"], ["user_id", "5d766736-becb-11e4-b3c6-705681abff85"], ["created_at", "2015-02-27 21:55:38.365450"], ["updated_at", "2015-02-27 21:55:38.365450"], ["token", "xq4uFV0PyLdOFayYPO5CnNE1sdKCySPAmKf1vVyZJhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.368924"], ["updated_at", "2015-02-27 21:55:38.368924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d766736-becb-11e4-b3c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d775222-becb-11e4-87a2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d766736-becb-11e4-b3c6-705681abff85"], ["organization_id", "5d775222-becb-11e4-87a2-705681abff85"], ["created_at", "2015-02-27 21:55:38.372435"], ["updated_at", "2015-02-27 21:55:38.372435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5d775222-becb-11e4-87a2-705681abff85" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"5d775222-becb-11e4-87a2-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.378616' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xq4uFV0PyLdOFayYPO5CnNE1sdKCySPAmKf1vVyZJhY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.380190"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.381432"], ["id", "5d76d4aa-becb-11e4-b421-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d766736-becb-11e4-b3c6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "5d766736-becb-11e4-b3c6-705681abff85"], ["id", "5d775222-becb-11e4-87a2-705681abff85"]] Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$l04RNQJGu6jYSceCaxDpee9nrlokg4O2iu0hDvQeZAtNNH4QoAsyS"], ["created_at", "2015-02-27 21:55:38.393361"], ["updated_at", "2015-02-27 21:55:38.393361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.394906"], ["user_id", "5d7b089a-becb-11e4-aaec-705681abff85"], ["created_at", "2015-02-27 21:55:38.395635"], ["updated_at", "2015-02-27 21:55:38.395635"], ["token", "BNDhX8v9RnWU8wb9A2ygAPVrPdP4gmCeFQqME0cQSxU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.399152"], ["updated_at", "2015-02-27 21:55:38.399152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d7b089a-becb-11e4-aaec-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d7beb16-becb-11e4-9347-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d7b089a-becb-11e4-aaec-705681abff85"], ["organization_id", "5d7beb16-becb-11e4-9347-705681abff85"], ["created_at", "2015-02-27 21:55:38.402417"], ["updated_at", "2015-02-27 21:55:38.402417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$7EZbG75XcgUjn5X2k6tgDewqjh8JIphDsrxsU0baw7VJL3DlKs3ii"], ["created_at", "2015-02-27 21:55:38.407024"], ["updated_at", "2015-02-27 21:55:38.407024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.410019"], ["updated_at", "2015-02-27 21:55:38.410019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d7d201c-becb-11e4-8747-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d7d9312-becb-11e4-a3aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d7d201c-becb-11e4-8747-705681abff85"], ["organization_id", "5d7d9312-becb-11e4-a3aa-705681abff85"], ["created_at", "2015-02-27 21:55:38.413100"], ["updated_at", "2015-02-27 21:55:38.413100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ZeB28wUuVTSZa8vkpdxCI.UWNyo7T/129AH6qt71briM8eaSUYwAe"], ["created_at", "2015-02-27 21:55:38.425525"], ["updated_at", "2015-02-27 21:55:38.425525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.427360"], ["user_id", "5d7ff7c4-becb-11e4-a72a-705681abff85"], ["created_at", "2015-02-27 21:55:38.428129"], ["updated_at", "2015-02-27 21:55:38.428129"], ["token", "eNHBtgurSMhdVW2ihREisIz7Sig_BViG3aZM8nNmVgo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.431393"], ["updated_at", "2015-02-27 21:55:38.431393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d7ff7c4-becb-11e4-a72a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d80d716-becb-11e4-a90f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d7ff7c4-becb-11e4-a72a-705681abff85"], ["organization_id", "5d80d716-becb-11e4-a90f-705681abff85"], ["created_at", "2015-02-27 21:55:38.435861"], ["updated_at", "2015-02-27 21:55:38.435861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$ADVEV2HzWz7Dr/d0fMxkmOZYVRTNeGg4YgIClV16F2yh0MzQ3JYfa"], ["created_at", "2015-02-27 21:55:38.440330"], ["updated_at", "2015-02-27 21:55:38.440330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.443309"], ["updated_at", "2015-02-27 21:55:38.443309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d8232be-becb-11e4-b897-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d82a64a-becb-11e4-a21b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d8232be-becb-11e4-b897-705681abff85"], ["organization_id", "5d82a64a-becb-11e4-a21b-705681abff85"], ["created_at", "2015-02-27 21:55:38.446436"], ["updated_at", "2015-02-27 21:55:38.446436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.450986' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eNHBtgurSMhdVW2ihREisIz7Sig_BViG3aZM8nNmVgo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.452420"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.453356"], ["id", "5d805d4a-becb-11e4-81be-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d7ff7c4-becb-11e4-a72a-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "5d7ff7c4-becb-11e4-a72a-705681abff85"]] Completed 200 OK in 39ms (Views: 33.0ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$odn4sJ3PR8Fj9yEJUDpf7OCDJ2vHGvVx1mNwaUCMHx7x782vbkqZe"], ["created_at", "2015-02-27 21:55:38.496081"], ["updated_at", "2015-02-27 21:55:38.496081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.497666"], ["user_id", "5d8ab6d2-becb-11e4-a049-705681abff85"], ["created_at", "2015-02-27 21:55:38.498578"], ["updated_at", "2015-02-27 21:55:38.498578"], ["token", "xqAC6qyivi8E14eGCf8bKbJounBaqg9yvJ7ArF3WNRc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.507164"], ["updated_at", "2015-02-27 21:55:38.507164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d8ab6d2-becb-11e4-a049-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d8c6694-becb-11e4-81b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d8ab6d2-becb-11e4-a049-705681abff85"], ["organization_id", "5d8c6694-becb-11e4-81b0-705681abff85"], ["created_at", "2015-02-27 21:55:38.510606"], ["updated_at", "2015-02-27 21:55:38.510606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$TH8qW.wxl.USxWAH449pJOOKvZ1QaF17nio3vk.k3hTcxbf6c6gTO"], ["created_at", "2015-02-27 21:55:38.523908"], ["updated_at", "2015-02-27 21:55:38.523908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.525509"], ["user_id", "5d8ef530-becb-11e4-8773-705681abff85"], ["created_at", "2015-02-27 21:55:38.526377"], ["updated_at", "2015-02-27 21:55:38.526377"], ["token", "ONZ8BUv1fhD9G2B7e6qigjSFL_uZ1aUQeYbBtGtULoU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.530190"], ["updated_at", "2015-02-27 21:55:38.530190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d8ef530-becb-11e4-8773-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d8fe88c-becb-11e4-ba72-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d8ef530-becb-11e4-8773-705681abff85"], ["organization_id", "5d8fe88c-becb-11e4-ba72-705681abff85"], ["created_at", "2015-02-27 21:55:38.533511"], ["updated_at", "2015-02-27 21:55:38.533511"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-13" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.540360' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ONZ8BUv1fhD9G2B7e6qigjSFL_uZ1aUQeYbBtGtULoU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.542121"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.543453"], ["id", "5d8f5fe8-becb-11e4-b52e-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d8ef530-becb-11e4-8773-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "5d8ef530-becb-11e4-8773-705681abff85"], ["name", "org-13"]] Completed 200 OK in 10ms (Views: 0.8ms | ActiveRecord: 1.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$.qf6xh0RoC3AXCPXDXle8O79LSkoiIHS8ttjk3ivsHK5V4xE4CfxK"], ["created_at", "2015-02-27 21:55:38.558202"], ["updated_at", "2015-02-27 21:55:38.558202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.559976"], ["user_id", "5d9436f8-becb-11e4-85b7-705681abff85"], ["created_at", "2015-02-27 21:55:38.560825"], ["updated_at", "2015-02-27 21:55:38.560825"], ["token", "9eRBCiPg-vS0j8PfWfcNC6O6QYnheCLddrzpW8sebmk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.564047"], ["updated_at", "2015-02-27 21:55:38.564047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d9436f8-becb-11e4-85b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d95129e-becb-11e4-9e5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d9436f8-becb-11e4-85b7-705681abff85"], ["organization_id", "5d95129e-becb-11e4-9e5b-705681abff85"], ["created_at", "2015-02-27 21:55:38.567321"], ["updated_at", "2015-02-27 21:55:38.567321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$8eKWM.St9AcGAUnHdY2afup9bW5Pb.G1sETTbEXBT/uQiEEgWX/bm"], ["created_at", "2015-02-27 21:55:38.578910"], ["updated_at", "2015-02-27 21:55:38.578910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.580454"], ["user_id", "5d9758e2-becb-11e4-8175-705681abff85"], ["created_at", "2015-02-27 21:55:38.581208"], ["updated_at", "2015-02-27 21:55:38.581208"], ["token", "p5DH3p2aXpNUCYS_USCvom20gBGshJkvM_xr8JgNTj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.584879"], ["updated_at", "2015-02-27 21:55:38.584879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d9758e2-becb-11e4-8175-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d984428-becb-11e4-983b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d9758e2-becb-11e4-8175-705681abff85"], ["organization_id", "5d984428-becb-11e4-983b-705681abff85"], ["created_at", "2015-02-27 21:55:38.588801"], ["updated_at", "2015-02-27 21:55:38.588801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.593301' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p5DH3p2aXpNUCYS_USCvom20gBGshJkvM_xr8JgNTj0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.595149"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.597082"], ["id", "5d97ba80-becb-11e4-8d86-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d9758e2-becb-11e4-8175-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (5.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.603957"], ["updated_at", "2015-02-27 21:55:38.603957"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5d9b2c2e-becb-11e4-981e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d9758e2-becb-11e4-8175-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d9b2c2e-becb-11e4-981e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d9758e2-becb-11e4-8175-705681abff85"], ["admin", "t"], ["organization_id", "5d9b2c2e-becb-11e4-981e-705681abff85"], ["created_at", "2015-02-27 21:55:38.615147"], ["updated_at", "2015-02-27 21:55:38.615147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 24ms (Views: 0.5ms | ActiveRecord: 8.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$X.sh9UJCk9QvQbkd750.8OrXGcihP1cwQ5YONGBUMKsd0ydDtlgZm"], ["created_at", "2015-02-27 21:55:38.623753"], ["updated_at", "2015-02-27 21:55:38.623753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.625511"], ["user_id", "5d9e3518-becb-11e4-8770-705681abff85"], ["created_at", "2015-02-27 21:55:38.626301"], ["updated_at", "2015-02-27 21:55:38.626301"], ["token", "LS8sfU8c6dz8rTjJRYU3A1zUNei4KoQ0PmvYaarvUXM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.629521"], ["updated_at", "2015-02-27 21:55:38.629521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d9e3518-becb-11e4-8770-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d9f0f4c-becb-11e4-98b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d9e3518-becb-11e4-8770-705681abff85"], ["organization_id", "5d9f0f4c-becb-11e4-98b9-705681abff85"], ["created_at", "2015-02-27 21:55:38.632741"], ["updated_at", "2015-02-27 21:55:38.632741"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.637446' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LS8sfU8c6dz8rTjJRYU3A1zUNei4KoQ0PmvYaarvUXM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.638835"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.639794"], ["id", "5d9e9abc-becb-11e4-a963-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d9e3518-becb-11e4-8770-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 8ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$1y5I2y9d.JOmsBosbgWcZu5mF.VIWBdUmZZNOT1G6ChENynf65xpa"], ["created_at", "2015-02-27 21:55:38.651988"], ["updated_at", "2015-02-27 21:55:38.651988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.654264"], ["user_id", "5da29374-becb-11e4-99bf-705681abff85"], ["created_at", "2015-02-27 21:55:38.655174"], ["updated_at", "2015-02-27 21:55:38.655174"], ["token", "maYPvO16TlzavL3Y3WCujWKhxLLAB0rElhDyhe-721Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.658636"], ["updated_at", "2015-02-27 21:55:38.658636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5da29374-becb-11e4-99bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '5da38176-becb-11e4-9b1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5da29374-becb-11e4-99bf-705681abff85"], ["organization_id", "5da38176-becb-11e4-9b1c-705681abff85"], ["created_at", "2015-02-27 21:55:38.661795"], ["updated_at", "2015-02-27 21:55:38.661795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$.T5HaZKsARx3HjT6p29jaOvTmqEXAD4j.p1sxU62q59OvWVZvLKU."], ["created_at", "2015-02-27 21:55:38.675291"], ["updated_at", "2015-02-27 21:55:38.675291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.676879"], ["user_id", "5da60ec8-becb-11e4-b4c0-705681abff85"], ["created_at", "2015-02-27 21:55:38.677621"], ["updated_at", "2015-02-27 21:55:38.677621"], ["token", "_K-WKXmqv5sAz8kNrKywott1xUp3GxkJroEVbYShhrQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.680709"], ["updated_at", "2015-02-27 21:55:38.680709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5da60ec8-becb-11e4-b4c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '5da6de98-becb-11e4-941b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5da60ec8-becb-11e4-b4c0-705681abff85"], ["organization_id", "5da6de98-becb-11e4-941b-705681abff85"], ["created_at", "2015-02-27 21:55:38.684085"], ["updated_at", "2015-02-27 21:55:38.684085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/5da6de98-becb-11e4-941b-705681abff85" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"5da6de98-becb-11e4-941b-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.688540' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_K-WKXmqv5sAz8kNrKywott1xUp3GxkJroEVbYShhrQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.689974"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.690877"], ["id", "5da66d1e-becb-11e4-a337-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5da60ec8-becb-11e4-b4c0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "5da60ec8-becb-11e4-b4c0-705681abff85"], ["id", "5da6de98-becb-11e4-941b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "5da6de98-becb-11e4-941b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$nM2YUVfsBKSp1jAspFY62u9HMjuRzQhNNmAWj0TILSKY1Gq4yhJy."], ["created_at", "2015-02-27 21:55:38.700860"], ["updated_at", "2015-02-27 21:55:38.700860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.704910"], ["user_id", "5da9f768-becb-11e4-8614-705681abff85"], ["created_at", "2015-02-27 21:55:38.705777"], ["updated_at", "2015-02-27 21:55:38.705777"], ["token", "6LCzkjpEPNLdzQbLQsN6AMxubbPubG0CC_t6AzQ_0uE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.709867"], ["updated_at", "2015-02-27 21:55:38.709867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5da9f768-becb-11e4-8614-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dab523e-becb-11e4-9f40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5da9f768-becb-11e4-8614-705681abff85"], ["organization_id", "5dab523e-becb-11e4-9f40-705681abff85"], ["created_at", "2015-02-27 21:55:38.713066"], ["updated_at", "2015-02-27 21:55:38.713066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$tChVOa9k/SPwChqeIe0TaecV12GqJDiiMdNi6YHN3qTRAzm.NbyPy"], ["created_at", "2015-02-27 21:55:38.725905"], ["updated_at", "2015-02-27 21:55:38.725905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.727613"], ["user_id", "5dadc988-becb-11e4-9474-705681abff85"], ["created_at", "2015-02-27 21:55:38.728394"], ["updated_at", "2015-02-27 21:55:38.728394"], ["token", "pAM1bGZAFGPItPADA50Du1VXQtGYhxpHYQfWbdJOsA4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.731771"], ["updated_at", "2015-02-27 21:55:38.731771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dadc988-becb-11e4-9474-705681abff85' AND "clubhouse_memberships"."organization_id" = '5daeaa2e-becb-11e4-866e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5dadc988-becb-11e4-9474-705681abff85"], ["organization_id", "5daeaa2e-becb-11e4-866e-705681abff85"], ["created_at", "2015-02-27 21:55:38.735055"], ["updated_at", "2015-02-27 21:55:38.735055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-20" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-20", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.739433' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pAM1bGZAFGPItPADA50Du1VXQtGYhxpHYQfWbdJOsA4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.740877"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.741841"], ["id", "5dae2e78-becb-11e4-b621-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5dadc988-becb-11e4-9474-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "5dadc988-becb-11e4-9474-705681abff85"], ["name", "org-20"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5daeaa2e-becb-11e4-866e-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:55:38.747346"], ["id", "5daeaa2e-becb-11e4-866e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$u2ch1FmMnjtIt5fxfyCCXOhClysgMmECRiFsPb1CXNnBjenikXJX6"], ["created_at", "2015-02-27 21:55:38.755247"], ["updated_at", "2015-02-27 21:55:38.755247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.757261"], ["user_id", "5db2430a-becb-11e4-b565-705681abff85"], ["created_at", "2015-02-27 21:55:38.758216"], ["updated_at", "2015-02-27 21:55:38.758216"], ["token", "X7b_hMhxCjhJXvlVy0z1U5joroZQQqjvOMQMh3WQ2jE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.761910"], ["updated_at", "2015-02-27 21:55:38.761910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5db2430a-becb-11e4-b565-705681abff85' AND "clubhouse_memberships"."organization_id" = '5db34868-becb-11e4-8c62-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5db2430a-becb-11e4-b565-705681abff85"], ["organization_id", "5db34868-becb-11e4-8c62-705681abff85"], ["created_at", "2015-02-27 21:55:38.765430"], ["updated_at", "2015-02-27 21:55:38.765430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-21" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-21", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:55:38.771787' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X7b_hMhxCjhJXvlVy0z1U5joroZQQqjvOMQMh3WQ2jE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:55:38.773570"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:55:38.774725"], ["id", "5db2c19a-becb-11e4-9d63-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5db2430a-becb-11e4-b565-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "5db2430a-becb-11e4-b565-705681abff85"], ["name", "org-21"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5db34868-becb-11e4-8c62-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$7.gJ74vDCiLZ1V9kv5bIYuaa.SzUUeDeNmCx8QEvThBsF2nD3VTpy"], ["created_at", "2015-02-27 21:55:38.792308"], ["updated_at", "2015-02-27 21:55:38.792308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.794050"], ["user_id", "5db7ece2-becb-11e4-84d7-705681abff85"], ["created_at", "2015-02-27 21:55:38.794903"], ["updated_at", "2015-02-27 21:55:38.794903"], ["token", "F0FeVFjRR5kHgPpCwKgXuVADPh40WNnJOqaYMWxxrMo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.802575"], ["updated_at", "2015-02-27 21:55:38.802575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5db7ece2-becb-11e4-84d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5db97a3a-becb-11e4-9e5d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5db7ece2-becb-11e4-84d7-705681abff85"], ["organization_id", "5db97a3a-becb-11e4-9e5d-705681abff85"], ["created_at", "2015-02-27 21:55:38.805976"], ["updated_at", "2015-02-27 21:55:38.805976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-22" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-22"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-22"]] Completed 200 OK in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$EHtKHD/wBzmhtPFD6fwLuONrFwZvygDCKJwX7zyz9K1EJtc6.1i3."], ["created_at", "2015-02-27 21:55:38.823115"], ["updated_at", "2015-02-27 21:55:38.823115"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:55:38.826040"], ["user_id", "5dbcaa8e-becb-11e4-921e-705681abff85"], ["created_at", "2015-02-27 21:55:38.827389"], ["updated_at", "2015-02-27 21:55:38.827389"], ["token", "5_EPxR3QmowmIlhC-nfEXWHjGMVD_jWCp8cfSRHbdy8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:55:38.833218"], ["updated_at", "2015-02-27 21:55:38.833218"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dbcaa8e-becb-11e4-921e-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dbe3fe8-becb-11e4-9162-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5dbcaa8e-becb-11e4-921e-705681abff85"], ["organization_id", "5dbe3fe8-becb-11e4-9162-705681abff85"], ["created_at", "2015-02-27 21:55:38.838072"], ["updated_at", "2015-02-27 21:55:38.838072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:55:38 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$uKfMrhU5NzHMr/VkP3FlceBhkCOUUBO8LIAJCEoJTNhfyUz/AMKaO"], ["created_at", "2015-02-27 21:59:30.800730"], ["updated_at", "2015-02-27 21:59:30.800730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:30.844715"], ["updated_at", "2015-02-27 21:59:30.844715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e801d020-becb-11e4-8e60-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8085968-becb-11e4-8986-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e801d020-becb-11e4-8e60-705681abff85"], ["organization_id", "e8085968-becb-11e4-8986-705681abff85"], ["created_at", "2015-02-27 21:59:30.848288"], ["updated_at", "2015-02-27 21:59:30.848288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.5ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e801d020-becb-11e4-8e60-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e8085968-becb-11e4-8986-705681abff85"]] Clubhouse::Membership Exists (5.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e801d020-becb-11e4-8e60-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8085968-becb-11e4-8986-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e8085968-becb-11e4-8986-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e801d020-becb-11e4-8e60-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8085968-becb-11e4-8986-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:30.881786"], ["updated_at", "2015-02-27 21:59:30.881786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:30.900353"], ["updated_at", "2015-02-27 21:59:30.900353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:30.945019"], ["updated_at", "2015-02-27 21:59:30.945019"]]  (1.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:30.958119"], ["updated_at", "2015-02-27 21:59:30.958119"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e819b898-becb-11e4-bd61-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$JR3BAGE6Bb3tkVLJTQR/Ue.jqtMCDW9P4FsBvyO0OBDQtsCj/H4Bu"], ["created_at", "2015-02-27 21:59:30.971924"], ["updated_at", "2015-02-27 21:59:30.971924"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:30.986439"], ["user_id", "e81bd25e-becb-11e4-bfad-705681abff85"], ["created_at", "2015-02-27 21:59:30.988299"], ["updated_at", "2015-02-27 21:59:30.988299"], ["token", "4ddJrMYppQt7tUhlWGjKEXglOP57Z06ae46CN4K-b2M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:30.995258"], ["updated_at", "2015-02-27 21:59:30.995258"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e81bd25e-becb-11e4-bfad-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e81f5f82-becb-11e4-a846-705681abff85') LIMIT 1 SQL (7.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e81bd25e-becb-11e4-bfad-705681abff85"], ["organization_id", "e81f5f82-becb-11e4-a846-705681abff85"], ["created_at", "2015-02-27 21:59:31.004692"], ["updated_at", "2015-02-27 21:59:31.004692"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$AZVgD2yH64SFrp4A0AxgwOzDfeqogmCY4Lp5cN6xLLRLxRz0HRRwW"], ["created_at", "2015-02-27 21:59:31.047909"], ["updated_at", "2015-02-27 21:59:31.047909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.049702"], ["user_id", "e82751c4-becb-11e4-b376-705681abff85"], ["created_at", "2015-02-27 21:59:31.050524"], ["updated_at", "2015-02-27 21:59:31.050524"], ["token", "Q36MLHtsdQ--aOgCJUQ2WcSn3VwyuwR-XuRB0TvHNDs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.055846"], ["updated_at", "2015-02-27 21:59:31.055846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e82751c4-becb-11e4-b376-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8288ddc-becb-11e4-a55d-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e82751c4-becb-11e4-b376-705681abff85"], ["organization_id", "e8288ddc-becb-11e4-a55d-705681abff85"], ["created_at", "2015-02-27 21:59:31.060902"], ["updated_at", "2015-02-27 21:59:31.060902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/e8288ddc-becb-11e4-a55d-705681abff85" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"e8288ddc-becb-11e4-a55d-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (1.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.069078' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Q36MLHtsdQ--aOgCJUQ2WcSn3VwyuwR-XuRB0TvHNDs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.072522"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.074024"], ["id", "e827c1f4-becb-11e4-8f3e-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e82751c4-becb-11e4-b376-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "e82751c4-becb-11e4-b376-705681abff85"], ["id", "e8288ddc-becb-11e4-a55d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'e8288ddc-becb-11e4-a55d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 35ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$dtPpy1NXWz6AvsP3YPUPfuCRTjrDwqhqwdtKVC/jZu341DAZ0x1tm"], ["created_at", "2015-02-27 21:59:31.108496"], ["updated_at", "2015-02-27 21:59:31.108496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.110051"], ["user_id", "e8308c76-becb-11e4-b761-705681abff85"], ["created_at", "2015-02-27 21:59:31.110801"], ["updated_at", "2015-02-27 21:59:31.110801"], ["token", "cRPJO64ugCW-JD1jpWbaO2I_BKXVjagG-0EgYJsKZVk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.114656"], ["updated_at", "2015-02-27 21:59:31.114656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8308c76-becb-11e4-b761-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8317b86-becb-11e4-b286-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8308c76-becb-11e4-b761-705681abff85"], ["organization_id", "e8317b86-becb-11e4-b286-705681abff85"], ["created_at", "2015-02-27 21:59:31.118074"], ["updated_at", "2015-02-27 21:59:31.118074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/e8317b86-becb-11e4-b286-705681abff85" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"e8317b86-becb-11e4-b286-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.122692' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cRPJO64ugCW-JD1jpWbaO2I_BKXVjagG-0EgYJsKZVk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.124497"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.126480"], ["id", "e830fa58-becb-11e4-af7a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e8308c76-becb-11e4-b761-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "e8308c76-becb-11e4-b761-705681abff85"], ["id", "e8317b86-becb-11e4-b286-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'e8317b86-becb-11e4-b286-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:59:31.132883"], ["id", "e8317b86-becb-11e4-b286-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$BA.LdSbxt2ZhdfS736T1C.woWlq9vRyxebRq1dDht4LWkpYq1FCpm"], ["created_at", "2015-02-27 21:59:31.143541"], ["updated_at", "2015-02-27 21:59:31.143541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.145258"], ["user_id", "e835e950-becb-11e4-a5c5-705681abff85"], ["created_at", "2015-02-27 21:59:31.146055"], ["updated_at", "2015-02-27 21:59:31.146055"], ["token", "EY1mnsaDkVTRRDgTgvJV7dbAVpDDlyrjT6dtExF3GI8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.149323"], ["updated_at", "2015-02-27 21:59:31.149323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e835e950-becb-11e4-a5c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e836c44c-becb-11e4-a26b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e835e950-becb-11e4-a5c5-705681abff85"], ["organization_id", "e836c44c-becb-11e4-a26b-705681abff85"], ["created_at", "2015-02-27 21:59:31.153529"], ["updated_at", "2015-02-27 21:59:31.153529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/e836c44c-becb-11e4-a26b-705681abff85" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"e836c44c-becb-11e4-a26b-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.158550' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EY1mnsaDkVTRRDgTgvJV7dbAVpDDlyrjT6dtExF3GI8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.160197"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.161157"], ["id", "e8364c88-becb-11e4-b0e7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e835e950-becb-11e4-a5c5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "e835e950-becb-11e4-a5c5-705681abff85"], ["id", "e836c44c-becb-11e4-a26b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "e836c44c-becb-11e4-a26b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$bumNM0urL59qfIlRTCmkS.3GpqwI10/c7GTqK8wLCMfa4LGJjyKnq"], ["created_at", "2015-02-27 21:59:31.173476"], ["updated_at", "2015-02-27 21:59:31.173476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.175301"], ["user_id", "e83a7baa-becb-11e4-b66d-705681abff85"], ["created_at", "2015-02-27 21:59:31.176219"], ["updated_at", "2015-02-27 21:59:31.176219"], ["token", "i4ttzsqYhRWOO5e7l3jf5X5n-RH7Qw2VMi1VbV6fOCg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.179745"], ["updated_at", "2015-02-27 21:59:31.179745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e83a7baa-becb-11e4-b66d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e83b6ae2-becb-11e4-bf90-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e83a7baa-becb-11e4-b66d-705681abff85"], ["organization_id", "e83b6ae2-becb-11e4-bf90-705681abff85"], ["created_at", "2015-02-27 21:59:31.183089"], ["updated_at", "2015-02-27 21:59:31.183089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$y6R8YeJtDW10kUOi2/EKS.8/sINYlwSfCcjxK1fUYUtQ8YoVRNesi"], ["created_at", "2015-02-27 21:59:31.195901"], ["updated_at", "2015-02-27 21:59:31.195901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.197604"], ["user_id", "e83de452-becb-11e4-b4ea-705681abff85"], ["created_at", "2015-02-27 21:59:31.198418"], ["updated_at", "2015-02-27 21:59:31.198418"], ["token", "mtuCH2I73tN202VRwgWlJIJoKTQiPLSpm_1yZKUThPA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.201877"], ["updated_at", "2015-02-27 21:59:31.201877"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e83de452-becb-11e4-b4ea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e83ed2cc-becb-11e4-8157-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e83de452-becb-11e4-b4ea-705681abff85"], ["organization_id", "e83ed2cc-becb-11e4-8157-705681abff85"], ["created_at", "2015-02-27 21:59:31.206589"], ["updated_at", "2015-02-27 21:59:31.206589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$i6y4xSNN276lWR2df0oelealAszvwDjkXCAxHLgvzdvP8QeE9xiV6"], ["created_at", "2015-02-27 21:59:31.220942"], ["updated_at", "2015-02-27 21:59:31.220942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.223131"], ["user_id", "e841c8f6-becb-11e4-bd99-705681abff85"], ["created_at", "2015-02-27 21:59:31.223935"], ["updated_at", "2015-02-27 21:59:31.223935"], ["token", "uMU6Ef8cOuXD4P6G5ENPPrsYIjxAFp8DLhmwsNinbY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.227363"], ["updated_at", "2015-02-27 21:59:31.227363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e841c8f6-becb-11e4-bd99-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e842ad7a-becb-11e4-b6d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e841c8f6-becb-11e4-bd99-705681abff85"], ["organization_id", "e842ad7a-becb-11e4-b6d4-705681abff85"], ["created_at", "2015-02-27 21:59:31.230603"], ["updated_at", "2015-02-27 21:59:31.230603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.235500' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uMU6Ef8cOuXD4P6G5ENPPrsYIjxAFp8DLhmwsNinbY0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.237043"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.238247"], ["id", "e84230f2-becb-11e4-8d08-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e841c8f6-becb-11e4-bd99-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "e841c8f6-becb-11e4-bd99-705681abff85"], ["name", "org-10"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'e842ad7a-becb-11e4-b6d4-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$3BLv5gezm.6lrdwhWql6RuyPK6ggUxsmgQLJgiLqw1WA60KMrOChe"], ["created_at", "2015-02-27 21:59:31.251891"], ["updated_at", "2015-02-27 21:59:31.251891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.254473"], ["user_id", "e84676da-becb-11e4-8532-705681abff85"], ["created_at", "2015-02-27 21:59:31.262067"], ["updated_at", "2015-02-27 21:59:31.262067"], ["token", "tpOiBrNjLWOCnKW3UKgmLXGE7znAw7d_2LmCw71tFPE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.267252"], ["updated_at", "2015-02-27 21:59:31.267252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e84676da-becb-11e4-8532-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e848cc8c-becb-11e4-befa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e84676da-becb-11e4-8532-705681abff85"], ["organization_id", "e848cc8c-becb-11e4-befa-705681abff85"], ["created_at", "2015-02-27 21:59:31.271076"], ["updated_at", "2015-02-27 21:59:31.271076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-11" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-11", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.275473' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tpOiBrNjLWOCnKW3UKgmLXGE7znAw7d_2LmCw71tFPE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.277294"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.279370"], ["id", "e848063a-becb-11e4-9775-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e84676da-becb-11e4-8532-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "e84676da-becb-11e4-8532-705681abff85"], ["name", "org-11"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'e848cc8c-becb-11e4-befa-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-02-27 21:59:31.286876"], ["id", "e848cc8c-becb-11e4-befa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.7ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$rOIMNQVicU/pU2uT7cuqIuOReIq9vJHuESo.sTyCKzsxR9xfuG2s2"], ["created_at", "2015-02-27 21:59:31.295090"], ["updated_at", "2015-02-27 21:59:31.295090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.297182"], ["user_id", "e84d06f8-becb-11e4-bb84-705681abff85"], ["created_at", "2015-02-27 21:59:31.298409"], ["updated_at", "2015-02-27 21:59:31.298409"], ["token", "RMrYnF4NIGz1_6z8y33OUkDt0gx2iZv5U451pt0ZYC8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.304358"], ["updated_at", "2015-02-27 21:59:31.304358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e84d06f8-becb-11e4-bb84-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e84e797a-becb-11e4-9e16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e84d06f8-becb-11e4-bb84-705681abff85"], ["organization_id", "e84e797a-becb-11e4-9e16-705681abff85"], ["created_at", "2015-02-27 21:59:31.308089"], ["updated_at", "2015-02-27 21:59:31.308089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$7ASomggdznL3pHsnZH2.BOvLFZ1pRlBm3w7ITtZ.wAqsRF0ioonVS"], ["created_at", "2015-02-27 21:59:31.312513"], ["updated_at", "2015-02-27 21:59:31.312513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.315688"], ["updated_at", "2015-02-27 21:59:31.315688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e84fac1e-becb-11e4-a404-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e85029d2-becb-11e4-ba04-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e84fac1e-becb-11e4-a404-705681abff85"], ["organization_id", "e85029d2-becb-11e4-ba04-705681abff85"], ["created_at", "2015-02-27 21:59:31.319349"], ["updated_at", "2015-02-27 21:59:31.319349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.324061' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RMrYnF4NIGz1_6z8y33OUkDt0gx2iZv5U451pt0ZYC8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.325954"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.327855"], ["id", "e84da39c-becb-11e4-8146-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e84d06f8-becb-11e4-bb84-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "e84d06f8-becb-11e4-bb84-705681abff85"]] Completed 200 OK in 10ms (Views: 2.1ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$3S6KA5.secJyDJeQt/XleOg35OtnIi963sYzJOPG5oKujp2imCqFy"], ["created_at", "2015-02-27 21:59:31.340235"], ["updated_at", "2015-02-27 21:59:31.340235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.341995"], ["user_id", "e853ebe4-becb-11e4-bf9c-705681abff85"], ["created_at", "2015-02-27 21:59:31.342742"], ["updated_at", "2015-02-27 21:59:31.342742"], ["token", "cwf6Ks5_keWb50xlxVmaY5eZlxb4dkPK3IU-ty2X_Co"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.345919"], ["updated_at", "2015-02-27 21:59:31.345919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e853ebe4-becb-11e4-bf9c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e854c33e-becb-11e4-841f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e853ebe4-becb-11e4-bf9c-705681abff85"], ["organization_id", "e854c33e-becb-11e4-841f-705681abff85"], ["created_at", "2015-02-27 21:59:31.349026"], ["updated_at", "2015-02-27 21:59:31.349026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$NXTdcSv0duIcxrwojUje/.vNn15fgTOX5mcizaL2OMgYTLe.duZcu"], ["created_at", "2015-02-27 21:59:31.353828"], ["updated_at", "2015-02-27 21:59:31.353828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.357441"], ["updated_at", "2015-02-27 21:59:31.357441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e85605f0-becb-11e4-a001-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e85686f6-becb-11e4-920d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e85605f0-becb-11e4-a001-705681abff85"], ["organization_id", "e85686f6-becb-11e4-920d-705681abff85"], ["created_at", "2015-02-27 21:59:31.362938"], ["updated_at", "2015-02-27 21:59:31.362938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$8EGBP7OzDI1gI9IvdnfQIeVjd.ApmSCYxLlbuYLVHhuw01AUBoo5K"], ["created_at", "2015-02-27 21:59:31.376869"], ["updated_at", "2015-02-27 21:59:31.376869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.378618"], ["user_id", "e859814e-becb-11e4-9a1e-705681abff85"], ["created_at", "2015-02-27 21:59:31.379413"], ["updated_at", "2015-02-27 21:59:31.379413"], ["token", "JvX0VLH53R7gQyNbG49z7YY079xEul_LNL96Jg09ac0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.382585"], ["updated_at", "2015-02-27 21:59:31.382585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e859814e-becb-11e4-9a1e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e85a5c54-becb-11e4-af7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e859814e-becb-11e4-9a1e-705681abff85"], ["organization_id", "e85a5c54-becb-11e4-af7a-705681abff85"], ["created_at", "2015-02-27 21:59:31.385901"], ["updated_at", "2015-02-27 21:59:31.385901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$HXHzbzYpL/e1nom3ZjogsueORakDZ37oL6kQmPcIGgBMAXyhBclC6"], ["created_at", "2015-02-27 21:59:31.399486"], ["updated_at", "2015-02-27 21:59:31.399486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.401043"], ["user_id", "e85cf298-becb-11e4-947b-705681abff85"], ["created_at", "2015-02-27 21:59:31.401801"], ["updated_at", "2015-02-27 21:59:31.401801"], ["token", "zns7Ql6rmqUFHFTcUnyA4Ue9R8-NzWE1UK5QRTq4sNI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.405373"], ["updated_at", "2015-02-27 21:59:31.405373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e85cf298-becb-11e4-947b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e85ddece-becb-11e4-b5c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e85cf298-becb-11e4-947b-705681abff85"], ["organization_id", "e85ddece-becb-11e4-b5c5-705681abff85"], ["created_at", "2015-02-27 21:59:31.409064"], ["updated_at", "2015-02-27 21:59:31.409064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-17" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-17"} Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-17"]] Completed 200 OK in 1ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$guu9YQBrnRub/E8eVtmMSumGrpRFVMjdQ0RRbM46gV/e03UqMBacK"], ["created_at", "2015-02-27 21:59:31.421660"], ["updated_at", "2015-02-27 21:59:31.421660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.424249"], ["user_id", "e8607724-becb-11e4-99eb-705681abff85"], ["created_at", "2015-02-27 21:59:31.425064"], ["updated_at", "2015-02-27 21:59:31.425064"], ["token", "exvBf-EaOBKrMxY0kqvdiO0TGKdBNRskp1s8UIoNJ_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.428359"], ["updated_at", "2015-02-27 21:59:31.428359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8607724-becb-11e4-99eb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e86158ce-becb-11e4-901c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8607724-becb-11e4-99eb-705681abff85"], ["organization_id", "e86158ce-becb-11e4-901c-705681abff85"], ["created_at", "2015-02-27 21:59:31.431513"], ["updated_at", "2015-02-27 21:59:31.431513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-18" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.436086' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "exvBf-EaOBKrMxY0kqvdiO0TGKdBNRskp1s8UIoNJ_c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.437556"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.438506"], ["id", "e860e0ce-becb-11e4-8ab3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e8607724-becb-11e4-99eb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "e8607724-becb-11e4-99eb-705681abff85"], ["name", "org-18"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "e86158ce-becb-11e4-901c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$lp7GaTdwOmJctD3wpbcBReyQLZIO52WlZLozb2K4FetP9jxlRjamm"], ["created_at", "2015-02-27 21:59:31.448211"], ["updated_at", "2015-02-27 21:59:31.448211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.449742"], ["user_id", "e8646230-becb-11e4-8dc9-705681abff85"], ["created_at", "2015-02-27 21:59:31.450520"], ["updated_at", "2015-02-27 21:59:31.450520"], ["token", "dQeHPbWUtkYqMrFcLHxRpRRUapiUoCzADO7oV1iCQ98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.453786"], ["updated_at", "2015-02-27 21:59:31.453786"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8646230-becb-11e4-8dc9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8653980-becb-11e4-96c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8646230-becb-11e4-8dc9-705681abff85"], ["organization_id", "e8653980-becb-11e4-96c8-705681abff85"], ["created_at", "2015-02-27 21:59:31.457460"], ["updated_at", "2015-02-27 21:59:31.457460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$yN.NPlQk/XmkTdI4lNtdL.F7ktCVIphz.154UC0fQ/xL9OG8AQ0X6"], ["created_at", "2015-02-27 21:59:31.469253"], ["updated_at", "2015-02-27 21:59:31.469253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.471671"], ["user_id", "e8679bda-becb-11e4-b753-705681abff85"], ["created_at", "2015-02-27 21:59:31.472743"], ["updated_at", "2015-02-27 21:59:31.472743"], ["token", "Kyi5aYeajOAtuFsr_164aSp3Mci6rhamoDT6pG-Z2cQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.476255"], ["updated_at", "2015-02-27 21:59:31.476255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8679bda-becb-11e4-b753-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e868a804-becb-11e4-ae4d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8679bda-becb-11e4-b753-705681abff85"], ["organization_id", "e868a804-becb-11e4-ae4d-705681abff85"], ["created_at", "2015-02-27 21:59:31.479389"], ["updated_at", "2015-02-27 21:59:31.479389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-20" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.484143' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Kyi5aYeajOAtuFsr_164aSp3Mci6rhamoDT6pG-Z2cQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.485939"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.488140"], ["id", "e8682d16-becb-11e4-a65b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e8679bda-becb-11e4-b753-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 LIMIT 1 [["member_id", "e8679bda-becb-11e4-b753-705681abff85"], ["name", "org-20"]] Completed 200 OK in 10ms (Views: 0.8ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$zV0TE.2xBwoPbNI.TTjpbejxB0c/GyamaUyXFvT/pu732/Xx1UPzK"], ["created_at", "2015-02-27 21:59:31.499580"], ["updated_at", "2015-02-27 21:59:31.499580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.501142"], ["user_id", "e86c396a-becb-11e4-9a1b-705681abff85"], ["created_at", "2015-02-27 21:59:31.501971"], ["updated_at", "2015-02-27 21:59:31.501971"], ["token", "xAzQACECSY6T0DAfSnbb2a2qFZQ1eukRiVxE8mbCVN0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.505833"], ["updated_at", "2015-02-27 21:59:31.505833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e86c396a-becb-11e4-9a1b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e86d34f0-becb-11e4-aafa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e86c396a-becb-11e4-9a1b-705681abff85"], ["organization_id", "e86d34f0-becb-11e4-aafa-705681abff85"], ["created_at", "2015-02-27 21:59:31.509611"], ["updated_at", "2015-02-27 21:59:31.509611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$6mXrgzafOWEQEKNg7u2/reuhEIUcea4rOeou60wzQNIJ/.z9aKQL."], ["created_at", "2015-02-27 21:59:31.525348"], ["updated_at", "2015-02-27 21:59:31.525348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.527728"], ["user_id", "e8703628-becb-11e4-aebf-705681abff85"], ["created_at", "2015-02-27 21:59:31.529064"], ["updated_at", "2015-02-27 21:59:31.529064"], ["token", "FqTZM1Hemkd73OiRHTHEz1CxiO9zh46p8K0NPN4NuyU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.533590"], ["updated_at", "2015-02-27 21:59:31.533590"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8703628-becb-11e4-aebf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e87174e8-becb-11e4-a9f8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8703628-becb-11e4-aebf-705681abff85"], ["organization_id", "e87174e8-becb-11e4-a9f8-705681abff85"], ["created_at", "2015-02-27 21:59:31.541119"], ["updated_at", "2015-02-27 21:59:31.541119"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/e87174e8-becb-11e4-a9f8-705681abff85" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"e87174e8-becb-11e4-a9f8-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.548864' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FqTZM1Hemkd73OiRHTHEz1CxiO9zh46p8K0NPN4NuyU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.550262"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.551248"], ["id", "e870cfa2-becb-11e4-a7f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e8703628-becb-11e4-aebf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 LIMIT 1 [["member_id", "e8703628-becb-11e4-aebf-705681abff85"], ["id", "e87174e8-becb-11e4-a9f8-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$aPsJpZb.V9jdtfF9chhsnuRboLG45ovswVU/VWHzJ72G5nRC3l7re"], ["created_at", "2015-02-27 21:59:31.561905"], ["updated_at", "2015-02-27 21:59:31.561905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.563532"], ["user_id", "e875bd64-becb-11e4-a558-705681abff85"], ["created_at", "2015-02-27 21:59:31.564312"], ["updated_at", "2015-02-27 21:59:31.564312"], ["token", "1PNBXWLCxG40ttCV53jOBy1wFRGCS3kCLtWxReO399g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.567569"], ["updated_at", "2015-02-27 21:59:31.567569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e875bd64-becb-11e4-a558-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8769a54-becb-11e4-9f7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e875bd64-becb-11e4-a558-705681abff85"], ["organization_id", "e8769a54-becb-11e4-9f7d-705681abff85"], ["created_at", "2015-02-27 21:59:31.571523"], ["updated_at", "2015-02-27 21:59:31.571523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$HLTV1dJGz75/NlWAVE4OxeUyMqiOoPUlcKjeguHb1kwa.r0aOYfdK"], ["created_at", "2015-02-27 21:59:31.585212"], ["updated_at", "2015-02-27 21:59:31.585212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.586953"], ["user_id", "e8794c2c-becb-11e4-b994-705681abff85"], ["created_at", "2015-02-27 21:59:31.588165"], ["updated_at", "2015-02-27 21:59:31.588165"], ["token", "zIU_vGwTM2tZHK0wAaNMP4gfarAo9RJjcf0G94Y-DdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.592208"], ["updated_at", "2015-02-27 21:59:31.592208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8794c2c-becb-11e4-b994-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e87a5ae0-becb-11e4-a6a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8794c2c-becb-11e4-b994-705681abff85"], ["organization_id", "e87a5ae0-becb-11e4-a6a4-705681abff85"], ["created_at", "2015-02-27 21:59:31.595686"], ["updated_at", "2015-02-27 21:59:31.595686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$i9pT4FodsgFw60J1DgQmyuJoK0J2e7mIljSzMx.vP71PfWp54MkR2"], ["created_at", "2015-02-27 21:59:31.608012"], ["updated_at", "2015-02-27 21:59:31.608012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.609619"], ["user_id", "e87cc532-becb-11e4-864c-705681abff85"], ["created_at", "2015-02-27 21:59:31.610405"], ["updated_at", "2015-02-27 21:59:31.610405"], ["token", "E7FIKfBniMGKVr12zQjopgvrcLOf-o3-Bi1t44qOi_A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.613705"], ["updated_at", "2015-02-27 21:59:31.613705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e87cc532-becb-11e4-864c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e87da0a6-becb-11e4-88e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e87cc532-becb-11e4-864c-705681abff85"], ["organization_id", "e87da0a6-becb-11e4-88e3-705681abff85"], ["created_at", "2015-02-27 21:59:31.616979"], ["updated_at", "2015-02-27 21:59:31.616979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.622917' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "E7FIKfBniMGKVr12zQjopgvrcLOf-o3-Bi1t44qOi_A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.630719"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.631689"], ["id", "e87d27b6-becb-11e4-a9b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e87cc532-becb-11e4-864c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$H2Xo5/y7G/KAIkvRo.XPa.szLJikeRCBWDImp09TnVZjpD5Yp09.C"], ["created_at", "2015-02-27 21:59:31.645574"], ["updated_at", "2015-02-27 21:59:31.645574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-27 21:59:31.647224"], ["user_id", "e8828058-becb-11e4-94b3-705681abff85"], ["created_at", "2015-02-27 21:59:31.648033"], ["updated_at", "2015-02-27 21:59:31.648033"], ["token", "S1nsH6ex8wD7FYpYyCQPOSbiGwnV7maF3BrEpAl7R1w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (6.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.651204"], ["updated_at", "2015-02-27 21:59:31.651204"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8828058-becb-11e4-94b3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e88358a2-becb-11e4-963f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8828058-becb-11e4-94b3-705681abff85"], ["organization_id", "e88358a2-becb-11e4-963f-705681abff85"], ["created_at", "2015-02-27 21:59:31.661472"], ["updated_at", "2015-02-27 21:59:31.661472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-27 13:59:31 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-13 21:59:31.666181' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S1nsH6ex8wD7FYpYyCQPOSbiGwnV7maF3BrEpAl7R1w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-27 21:59:31.667569"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-27 21:59:31.668525"], ["id", "e882e5b6-becb-11e4-bf62-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e8828058-becb-11e4-94b3-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-27 21:59:31.672312"], ["updated_at", "2015-02-27 21:59:31.672312"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e8869418-becb-11e4-9d85-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8828058-becb-11e4-94b3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8869418-becb-11e4-9d85-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e8828058-becb-11e4-94b3-705681abff85"], ["admin", "t"], ["organization_id", "e8869418-becb-11e4-9d85-705681abff85"], ["created_at", "2015-02-27 21:59:31.678176"], ["updated_at", "2015-02-27 21:59:31.678176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.5ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.4ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (8.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:10:32.018362"], ["updated_at", "2015-02-28 06:10:32.018362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:10:54.860981"], ["updated_at", "2015-02-28 06:10:54.860981"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (18.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "8de08c36-bf10-11e4-9905-705681abff85"], ["created_at", "2015-02-28 06:10:54.869648"], ["updated_at", "2015-02-28 06:10:54.869648"], ["token", "OwZNhmZuLToa1-8W407wWX37PSPxa5e_Q-awPMPMhKY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (21.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8de08c36-bf10-11e4-9905-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (6.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:11:45.758279"], ["updated_at", "2015-02-28 06:11:45.758279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "ac37a3fe-bf10-11e4-bcb9-705681abff85"], ["created_at", "2015-02-28 06:11:45.769139"], ["updated_at", "2015-02-28 06:11:45.769139"], ["token", "ryHKhPB1XKhL0Plx_8FrQcsDRy-J26G0hSZIWPOuMHI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.7ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ac37a3fe-bf10-11e4-bcb9-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:11:54.035359"], ["updated_at", "2015-02-28 06:11:54.035359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "b125a870-bf10-11e4-b23c-705681abff85"], ["created_at", "2015-02-28 06:11:54.039597"], ["updated_at", "2015-02-28 06:11:54.039597"], ["token", "Sw_4Z9uvJFYDj1j0jG1UerBsxRpl-M0T1yWja0BCfcI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.6ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b125a870-bf10-11e4-b23c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:12:08.146224"], ["updated_at", "2015-02-28 06:12:08.146224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "b98ec97e-bf10-11e4-8caa-705681abff85"], ["created_at", "2015-02-28 06:12:08.155971"], ["updated_at", "2015-02-28 06:12:08.155971"], ["token", "gdMMr38cHmwb7cYZJmZ-9AqvUfFSOt3zf7aewIu2U58"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b98ec97e-bf10-11e4-8caa-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" IS NULL AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" IS NULL AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:12:48.552410"], ["updated_at", "2015-02-28 06:12:48.552410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'd1a43b02-bf10-11e4-af1d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "d1a43b02-bf10-11e4-af1d-705681abff85"], ["created_at", "2015-02-28 06:12:48.556803"], ["updated_at", "2015-02-28 06:12:48.556803"], ["token", "aWhSRmvxMfUjOP48Q9TqFM8Sw2H8vLn0j7oyOIKPVeg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d1a43b02-bf10-11e4-af1d-705681abff85"]] Clubhouse::Invitation Exists (6.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'd1a43b02-bf10-11e4-af1d-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d1a43b02-bf10-11e4-af1d-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'd1a43b02-bf10-11e4-af1d-705681abff86') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:13:12.823485"], ["updated_at", "2015-02-28 06:13:12.823485"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" IS NULL AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" IS NULL AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:13:12.841991"], ["updated_at", "2015-02-28 06:13:12.841991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e01e6202-bf10-11e4-9c14-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "e01e6202-bf10-11e4-9c14-705681abff85"], ["created_at", "2015-02-28 06:13:12.845563"], ["updated_at", "2015-02-28 06:13:12.845563"], ["token", "8Xm8bJTJHlSOyvZB5u1h8VdyzG2BADy6cHVYLb9WlUw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.9ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e01e6202-bf10-11e4-9c14-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e01e6202-bf10-11e4-9c14-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e01e6202-bf10-11e4-9c14-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e01e6202-bf10-11e4-9c14-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:13:37.564432"], ["updated_at", "2015-02-28 06:13:37.564432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'eedae0ea-bf10-11e4-bb8f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "eedae0ea-bf10-11e4-bb8f-705681abff85"], ["created_at", "2015-02-28 06:13:37.569005"], ["updated_at", "2015-02-28 06:13:37.569005"], ["token", "Aht1XlMdgKArZGBLWcKJlvegplK-RkfalRO0L45Cy3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "eedae0ea-bf10-11e4-bb8f-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'eedae0ea-bf10-11e4-bb8f-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "eedae0ea-bf10-11e4-bb8f-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'eedae0ea-bf10-11e4-bb8f-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:13:37.623007"], ["updated_at", "2015-02-28 06:13:37.623007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" IS NULL AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:14:18.011875"], ["updated_at", "2015-02-28 06:14:18.011875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'eM ai l@eXample.com' AND "clubhouse_invitations"."organization_id" = '06f6a808-bf11-11e4-bd0a-705681abff85') LIMIT 1  (6.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" IS NULL AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:14:18.034989"], ["updated_at", "2015-02-28 06:14:18.034989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '06fa1fa6-bf11-11e4-8a15-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "06fa1fa6-bf11-11e4-8a15-705681abff85"], ["created_at", "2015-02-28 06:14:18.040413"], ["updated_at", "2015-02-28 06:14:18.040413"], ["token", "0m65gFDI5K4GCU0dKpCbSRfRVf6hc3_kKZV_71mBzSk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.6ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "06fa1fa6-bf11-11e4-8a15-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '06fa1fa6-bf11-11e4-8a15-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "06fa1fa6-bf11-11e4-8a15-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '06fa1fa6-bf11-11e4-8a15-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:14:26.058556"], ["updated_at", "2015-02-28 06:14:26.058556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0bc284b0-bf11-11e4-913c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "0bc284b0-bf11-11e4-913c-705681abff85"], ["created_at", "2015-02-28 06:14:26.063419"], ["updated_at", "2015-02-28 06:14:26.063419"], ["token", "4ScIjyNKZAqY8q6zXPWK9qTyzkK8ccf0tBeMpM3Bpqc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0bc284b0-bf11-11e4-913c-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0bc284b0-bf11-11e4-913c-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0bc284b0-bf11-11e4-913c-705681abff86"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0bc284b0-bf11-11e4-913c-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:14:26.115335"], ["updated_at", "2015-02-28 06:14:26.115335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0bcb02c0-bf11-11e4-86b7-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "0bcb02c0-bf11-11e4-86b7-705681abff85"], ["created_at", "2015-02-28 06:14:26.118353"], ["updated_at", "2015-02-28 06:14:26.118353"], ["token", "Sc5RkRReapc6mqPV6j3_aR5WgX2BrVZN95g_YwEz308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$suQmXwuDCguS1QVyO62rK.TDDtq.Z5fzgi3QfVFR8WnOOrxe.NNOa"], ["created_at", "2015-02-28 06:15:24.112056"], ["updated_at", "2015-02-28 06:15:24.112056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:24.182580"], ["updated_at", "2015-02-28 06:15:24.182580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e5cc364-bf11-11e4-8e98-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e676e9a-bf11-11e4-8a0b-705681abff85') LIMIT 1 SQL (17.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e5cc364-bf11-11e4-8e98-705681abff85"], ["organization_id", "2e676e9a-bf11-11e4-8a0b-705681abff85"], ["created_at", "2015-02-28 06:15:24.187809"], ["updated_at", "2015-02-28 06:15:24.187809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.6ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e5cc364-bf11-11e4-8e98-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e676e9a-bf11-11e4-8a0b-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e5cc364-bf11-11e4-8e98-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e676e9a-bf11-11e4-8a0b-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e676e9a-bf11-11e4-8a0b-705681abff86"]] Clubhouse::Membership Exists (10.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e5cc364-bf11-11e4-8e98-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e676e9a-bf11-11e4-8a0b-705681abff86') LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:24.254091"], ["updated_at", "2015-02-28 06:15:24.254091"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2e726278-bf11-11e4-b522-705681abff85') LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "2e726278-bf11-11e4-b522-705681abff85"], ["created_at", "2015-02-28 06:15:24.261750"], ["updated_at", "2015-02-28 06:15:24.261750"], ["token", "w5H821PiGbI_BhH-5-QKjFherX_GljqG8KxtLt8WNdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e726278-bf11-11e4-b522-705681abff85"]] Clubhouse::Invitation Exists (2.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2e726278-bf11-11e4-b522-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e726278-bf11-11e4-b522-705681abff86"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2e726278-bf11-11e4-b522-705681abff86') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:24.307014"], ["updated_at", "2015-02-28 06:15:24.307014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '2e7a5e9c-bf11-11e4-8c50-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "2e7a5e9c-bf11-11e4-8c50-705681abff85"], ["created_at", "2015-02-28 06:15:24.310688"], ["updated_at", "2015-02-28 06:15:24.310688"], ["token", "XxMzY9Ifvs82g0sGrCvbo29ms3KcptGLQuDD2uzacIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:24.341320"], ["updated_at", "2015-02-28 06:15:24.341320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:24.345190"], ["updated_at", "2015-02-28 06:15:24.345190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:24.365291"], ["updated_at", "2015-02-28 06:15:24.365291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:24.370414"], ["updated_at", "2015-02-28 06:15:24.370414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e84078a-bf11-11e4-addf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$K3kzWqI8p9vbN44calqxYuuG3Vm3FIjE6nCvoZnrGvB7SvQljKYQ."], ["created_at", "2015-02-28 06:15:48.327882"], ["updated_at", "2015-02-28 06:15:48.327882"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:48.370642"], ["updated_at", "2015-02-28 06:15:48.370642"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ccbddfe-bf11-11e4-a9cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '3cd2394c-bf11-11e4-a685-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ccbddfe-bf11-11e4-a9cf-705681abff85"], ["organization_id", "3cd2394c-bf11-11e4-a685-705681abff85"], ["created_at", "2015-02-28 06:15:48.374719"], ["updated_at", "2015-02-28 06:15:48.374719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.5ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ccbddfe-bf11-11e4-a9cf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3cd2394c-bf11-11e4-a685-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ccbddfe-bf11-11e4-a9cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '3cd2394c-bf11-11e4-a685-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3cd2394c-bf11-11e4-a685-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ccbddfe-bf11-11e4-a9cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '3cd2394c-bf11-11e4-a685-705681abff86') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" IS NULL AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" IS NULL AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:48.413260"], ["updated_at", "2015-02-28 06:15:48.413260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '3cd8ae76-bf11-11e4-8133-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "3cd8ae76-bf11-11e4-8133-705681abff85"], ["created_at", "2015-02-28 06:15:48.416023"], ["updated_at", "2015-02-28 06:15:48.416023"], ["token", "9Iqoe9qwSazr7bluOyQlnv0DQGfqIyw7C94WVc5FCoc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3cd8ae76-bf11-11e4-8133-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '3cd8ae76-bf11-11e4-8133-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3cd8ae76-bf11-11e4-8133-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '3cd8ae76-bf11-11e4-8133-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:48.430993"], ["updated_at", "2015-02-28 06:15:48.430993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'eM ai l@eXample.com' AND "clubhouse_invitations"."organization_id" = '3cdb629c-bf11-11e4-a7a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "eM ai l@eXample.com"], ["organization_id", "3cdb629c-bf11-11e4-a7a8-705681abff85"], ["created_at", "2015-02-28 06:15:48.434507"], ["updated_at", "2015-02-28 06:15:48.434507"], ["token", "Eqa5mE3F55GYR5prc2nP4b-BDvbsnLEs_q5uhe0eTy0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:48.446886"], ["updated_at", "2015-02-28 06:15:48.446886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:48.467184"], ["updated_at", "2015-02-28 06:15:48.467184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:48.486620"], ["updated_at", "2015-02-28 06:15:48.486620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:15:48.491269"], ["updated_at", "2015-02-28 06:15:48.491269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ce492cc-bf11-11e4-9f5a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:16:21.399413"], ["updated_at", "2015-02-28 06:16:21.399413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:16:21.423061"], ["updated_at", "2015-02-28 06:16:21.423061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:16:21.473438"], ["updated_at", "2015-02-28 06:16:21.473438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "508d4576-bf11-11e4-a4de-705681abff85"]]  (11.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:16:21.496450"], ["updated_at", "2015-02-28 06:16:21.496450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:16:21.511128"], ["updated_at", "2015-02-28 06:16:21.511128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '50930484-bf11-11e4-b2fe-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "50930484-bf11-11e4-b2fe-705681abff85"], ["created_at", "2015-02-28 06:16:21.519924"], ["updated_at", "2015-02-28 06:16:21.519924"], ["token", "7yT-zrBTsnOPRRQcGv5e380U25Z5-i-vyYYWtlUfETE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "50930484-bf11-11e4-b2fe-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '50930484-bf11-11e4-b2fe-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "50930484-bf11-11e4-b2fe-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '50930484-bf11-11e4-b2fe-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:16:21.544086"], ["updated_at", "2015-02-28 06:16:21.544086"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '50980a42-bf11-11e4-99c0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "50980a42-bf11-11e4-99c0-705681abff85"], ["created_at", "2015-02-28 06:16:21.547818"], ["updated_at", "2015-02-28 06:16:21.547818"], ["token", "dM40lzedBupnZNEZ0n9i3XhqMs0So6w-Gm7hnWGBKmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$2Zs3iaixAeolegB7StLsnu/jNnC8faDDpWoMP3zA6GSf6RIqx065u"], ["created_at", "2015-02-28 06:16:21.574546"], ["updated_at", "2015-02-28 06:16:21.574546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:16:21.579168"], ["updated_at", "2015-02-28 06:16:21.579168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '509cb632-bf11-11e4-adee-705681abff85' AND "clubhouse_memberships"."organization_id" = '509d6226-bf11-11e4-ad81-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "509cb632-bf11-11e4-adee-705681abff85"], ["organization_id", "509d6226-bf11-11e4-ad81-705681abff85"], ["created_at", "2015-02-28 06:16:21.583130"], ["updated_at", "2015-02-28 06:16:21.583130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "509cb632-bf11-11e4-adee-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "509d6226-bf11-11e4-ad81-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '509cb632-bf11-11e4-adee-705681abff85' AND "clubhouse_memberships"."organization_id" = '509d6226-bf11-11e4-ad81-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "509d6226-bf11-11e4-ad81-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '509cb632-bf11-11e4-adee-705681abff85' AND "clubhouse_memberships"."organization_id" = '509d6226-bf11-11e4-ad81-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:05.805074"], ["updated_at", "2015-02-28 06:17:05.805074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6af9e554-bf11-11e4-af08-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "6af9e554-bf11-11e4-af08-705681abff85"], ["created_at", "2015-02-28 06:17:05.815733"], ["updated_at", "2015-02-28 06:17:05.815733"], ["token", "wwQIGims6pvivphZi2tUnh9KqZgiPhbl0bUxlRw0lZ8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:05.839734"], ["updated_at", "2015-02-28 06:17:05.839734"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6aff0f48-bf11-11e4-bab2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "6aff0f48-bf11-11e4-bab2-705681abff85"], ["created_at", "2015-02-28 06:17:05.843310"], ["updated_at", "2015-02-28 06:17:05.843310"], ["token", "O124I-US89SWvY4U1MXQZPhEc5VvKnDfkWbdy8btrI0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6aff0f48-bf11-11e4-bab2-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6aff0f48-bf11-11e4-bab2-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6aff0f48-bf11-11e4-bab2-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6aff0f48-bf11-11e4-bab2-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "eM ai l@eXample.com"], ["created_at", "2015-02-28 06:17:05.903059"], ["updated_at", "2015-02-28 06:17:05.903059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:05.907329"], ["updated_at", "2015-02-28 06:17:05.907329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:05.929156"], ["updated_at", "2015-02-28 06:17:05.929156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6b0caba8-bf11-11e4-8666-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:05.937784"], ["updated_at", "2015-02-28 06:17:05.937784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$URnVoNYmRuEHZvzbENHdGux7xx2dRWLVXotDRd06EwLozJhWbvGTa"], ["created_at", "2015-02-28 06:17:05.968459"], ["updated_at", "2015-02-28 06:17:05.968459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:05.973922"], ["updated_at", "2015-02-28 06:17:05.973922"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b12c628-bf11-11e4-a71b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6b138ed2-bf11-11e4-b104-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6b12c628-bf11-11e4-a71b-705681abff85"], ["organization_id", "6b138ed2-bf11-11e4-b104-705681abff85"], ["created_at", "2015-02-28 06:17:05.977961"], ["updated_at", "2015-02-28 06:17:05.977961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6b12c628-bf11-11e4-a71b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6b138ed2-bf11-11e4-b104-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b12c628-bf11-11e4-a71b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6b138ed2-bf11-11e4-b104-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6b138ed2-bf11-11e4-b104-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b12c628-bf11-11e4-a71b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6b138ed2-bf11-11e4-b104-705681abff86') LIMIT 1  (3.5ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:11.874284"], ["updated_at", "2015-02-28 06:17:11.874284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:11.885458"], ["updated_at", "2015-02-28 06:17:11.885458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:11.951624"], ["updated_at", "2015-02-28 06:17:11.951624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:11.956795"], ["updated_at", "2015-02-28 06:17:11.956795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ea46576-bf11-11e4-864c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ARvsAA6F1CNfPcb49ld7TuQU66Cj3StAiijT1YuZ.dOizZswSihUi"], ["created_at", "2015-02-28 06:17:11.973657"], ["updated_at", "2015-02-28 06:17:11.973657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:11.983419"], ["updated_at", "2015-02-28 06:17:11.983419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ea7018c-bf11-11e4-8f32-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ea889da-bf11-11e4-b064-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6ea7018c-bf11-11e4-8f32-705681abff85"], ["organization_id", "6ea889da-bf11-11e4-b064-705681abff85"], ["created_at", "2015-02-28 06:17:11.988577"], ["updated_at", "2015-02-28 06:17:11.988577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ea7018c-bf11-11e4-8f32-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ea889da-bf11-11e4-b064-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ea7018c-bf11-11e4-8f32-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ea889da-bf11-11e4-b064-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ea889da-bf11-11e4-b064-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ea7018c-bf11-11e4-8f32-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ea889da-bf11-11e4-b064-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:12.028972"], ["updated_at", "2015-02-28 06:17:12.028972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6eaf6b88-bf11-11e4-a132-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "6eaf6b88-bf11-11e4-a132-705681abff85"], ["created_at", "2015-02-28 06:17:12.031932"], ["updated_at", "2015-02-28 06:17:12.031932"], ["token", "PQNsdAtkdn9uS4CgyoezjPlhok1nlmogPPJsXUd1sEs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:17:12.041394"], ["updated_at", "2015-02-28 06:17:12.041394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6eb14f52-bf11-11e4-a30e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "6eb14f52-bf11-11e4-a30e-705681abff85"], ["created_at", "2015-02-28 06:17:12.044674"], ["updated_at", "2015-02-28 06:17:12.044674"], ["token", "52gYaGGFKdhUxKBXQMq2vjZIJ6c6LW3sklvD3XGJCcw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6eb14f52-bf11-11e4-a30e-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6eb14f52-bf11-11e4-a30e-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6eb14f52-bf11-11e4-a30e-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6eb14f52-bf11-11e4-a30e-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$9TR8DkyhoVq7TomZlzGzpeiw7PEU7dsGYpQwV9UnEuTpe8tWTKuoO"], ["created_at", "2015-02-28 06:27:40.938947"], ["updated_at", "2015-02-28 06:27:40.938947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$SCQGzxEYrjUNwRsZ2OqoX.VcEGjGB7VijTE0qoY/2bsSDAMK7mm6u"], ["created_at", "2015-02-28 06:27:40.946234"], ["updated_at", "2015-02-28 06:27:40.946234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (33.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:27:40.954111"], ["user_id", "e58bd038-bf12-11e4-a93b-705681abff85"], ["created_at", "2015-02-28 06:27:40.961305"], ["updated_at", "2015-02-28 06:27:40.961305"], ["token", "6vSyxjjTL41_FP_1Vl9yum14iCRR8PKa1WsSFhUjiCQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (3.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:27:41.004829"], ["updated_at", "2015-02-28 06:27:41.004829"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e58bd038-bf12-11e4-a93b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e595b1ca-bf12-11e4-95c9-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e58bd038-bf12-11e4-a93b-705681abff85"], ["organization_id", "e595b1ca-bf12-11e4-95c9-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:27:41.021153"], ["updated_at", "2015-02-28 06:27:41.021153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e58c9310-bf12-11e4-8238-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e595b1ca-bf12-11e4-95c9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e58c9310-bf12-11e4-8238-705681abff85"], ["organization_id", "e595b1ca-bf12-11e4-95c9-705681abff85"], ["created_at", "2015-02-28 06:27:41.027449"], ["updated_at", "2015-02-28 06:27:41.027449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e595b1ca-bf12-11e4-95c9-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "e595b1ca-bf12-11e4-95c9-705681abff85"], ["created_at", "2015-02-28 06:27:41.066455"], ["updated_at", "2015-02-28 06:27:41.066455"], ["token", "mOiVS5wYpVHcmiKawph8hb-l8l979fYxt8WefwuO8aY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:27:41 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$KsGVKcM50bk3IKbYAI7IVe5db1CUgsEroQ03UQECiXbLZBs34rfSa"], ["created_at", "2015-02-28 06:27:41.086609"], ["updated_at", "2015-02-28 06:27:41.086609"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$GPrkfigdZUkGzfWZ/YR7gO4AoLV8dJyqv53FmQAxnqZENG9BBuw66"], ["created_at", "2015-02-28 06:27:41.093391"], ["updated_at", "2015-02-28 06:27:41.093391"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:27:41.095716"], ["user_id", "e5a20fb0-bf12-11e4-942e-705681abff85"], ["created_at", "2015-02-28 06:27:41.096642"], ["updated_at", "2015-02-28 06:27:41.096642"], ["token", "TiPg6-v7QKcoUsudK4n-CkuLICNHhoOVIjcteWY69Qc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:27:41.109066"], ["updated_at", "2015-02-28 06:27:41.109066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5a20fb0-bf12-11e4-942e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5a586cc-bf12-11e4-9394-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5a20fb0-bf12-11e4-942e-705681abff85"], ["organization_id", "e5a586cc-bf12-11e4-9394-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:27:41.114826"], ["updated_at", "2015-02-28 06:27:41.114826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5a3161c-bf12-11e4-92b3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5a586cc-bf12-11e4-9394-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5a3161c-bf12-11e4-92b3-705681abff85"], ["organization_id", "e5a586cc-bf12-11e4-9394-705681abff85"], ["created_at", "2015-02-28 06:27:41.119925"], ["updated_at", "2015-02-28 06:27:41.119925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'e5a586cc-bf12-11e4-9394-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "e5a586cc-bf12-11e4-9394-705681abff85"], ["created_at", "2015-02-28 06:27:41.123779"], ["updated_at", "2015-02-28 06:27:41.123779"], ["token", "NnQqMhXuMEKZvsMUOXWWD2RlGTiDIFwmBsCWfjPJ-sg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:27:41 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$doku/s.GmvHniLSwxktX5.kyRNex793XcVFdGrFwt50gI/.hilZTS"], ["created_at", "2015-02-28 06:27:41.134192"], ["updated_at", "2015-02-28 06:27:41.134192"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$UPviVnKm2b9PDCSRT7kpSObcrzOv/0Z2PlnLY7nv.urbCkz3vc0yS"], ["created_at", "2015-02-28 06:27:41.140803"], ["updated_at", "2015-02-28 06:27:41.140803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:27:41.142362"], ["user_id", "e5a94168-bf12-11e4-8d0f-705681abff85"], ["created_at", "2015-02-28 06:27:41.143166"], ["updated_at", "2015-02-28 06:27:41.143166"], ["token", "l4kV52t9z-0u2QsQAGp8lEzDJx9VRYCUtVFT-FYt94c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:27:41.146471"], ["updated_at", "2015-02-28 06:27:41.146471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5a94168-bf12-11e4-8d0f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5ab1e48-bf12-11e4-873a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5a94168-bf12-11e4-8d0f-705681abff85"], ["organization_id", "e5ab1e48-bf12-11e4-873a-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:27:41.149674"], ["updated_at", "2015-02-28 06:27:41.149674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5aa431a-bf12-11e4-8d88-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5ab1e48-bf12-11e4-873a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5aa431a-bf12-11e4-8d88-705681abff85"], ["organization_id", "e5ab1e48-bf12-11e4-873a-705681abff85"], ["created_at", "2015-02-28 06:27:41.152916"], ["updated_at", "2015-02-28 06:27:41.152916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'e5ab1e48-bf12-11e4-873a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "e5ab1e48-bf12-11e4-873a-705681abff85"], ["created_at", "2015-02-28 06:27:41.156217"], ["updated_at", "2015-02-28 06:27:41.156217"], ["token", "fMyjj9cFBsXdV0d6nwG1AOXhkzP72dnUeF_KYZQLX9U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:27:41 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$hy9mvXwidkMLWVV5U8582eUZTLQVcY6Y6p2kW8ZwCf9sPLc61jNkm"], ["created_at", "2015-02-28 06:28:13.337601"], ["updated_at", "2015-02-28 06:28:13.337601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$b3i3sZXWEW4Q4MFc8HxuVuWRDnKcJOw0KoVXw91faSoF1r/6NJq6a"], ["created_at", "2015-02-28 06:28:13.343149"], ["updated_at", "2015-02-28 06:28:13.343149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:28:13.357409"], ["user_id", "f8db40a6-bf12-11e4-96bd-705681abff85"], ["created_at", "2015-02-28 06:28:13.363597"], ["updated_at", "2015-02-28 06:28:13.363597"], ["token", "JOzqVDq--5rUSmVZVILS6sZctNa57c9UnUeV2aJIm1g"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:28:13.379497"], ["updated_at", "2015-02-28 06:28:13.379497"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f8db40a6-bf12-11e4-96bd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f8e19532-bf12-11e4-a901-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f8db40a6-bf12-11e4-96bd-705681abff85"], ["organization_id", "f8e19532-bf12-11e4-a901-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:28:13.392994"], ["updated_at", "2015-02-28 06:28:13.392994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f8dbf2a8-bf12-11e4-8104-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f8e19532-bf12-11e4-a901-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f8dbf2a8-bf12-11e4-8104-705681abff85"], ["organization_id", "f8e19532-bf12-11e4-a901-705681abff85"], ["created_at", "2015-02-28 06:28:13.396700"], ["updated_at", "2015-02-28 06:28:13.396700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'f8e19532-bf12-11e4-a901-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "f8e19532-bf12-11e4-a901-705681abff85"], ["created_at", "2015-02-28 06:28:13.408124"], ["updated_at", "2015-02-28 06:28:13.408124"], ["token", "BuBx2XQm1ezaHEmrIOqhKmC68_YTDqJ66PisrWfbm1s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:28:13 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$fB9ouUmoKrj3dVhT0dm41OvEZ4A0yjv0DPmKbQ1w.MIKTNwuOM5Cu"], ["created_at", "2015-02-28 06:28:13.423878"], ["updated_at", "2015-02-28 06:28:13.423878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Hnu4oSlkp.gRC312dAOBZOY88cX8zpAQmymFcghTuDVWuVrzyXqn2"], ["created_at", "2015-02-28 06:28:13.428258"], ["updated_at", "2015-02-28 06:28:13.428258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:28:13.429904"], ["user_id", "f8e8476a-bf12-11e4-8076-705681abff85"], ["created_at", "2015-02-28 06:28:13.430742"], ["updated_at", "2015-02-28 06:28:13.430742"], ["token", "R7ZVH3HX5XPv9PFy4axltTXu0lM_4a5lpkyYbp-Mi8g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:28:13.434086"], ["updated_at", "2015-02-28 06:28:13.434086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f8e8476a-bf12-11e4-8076-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f8e9d18e-bf12-11e4-a197-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f8e8476a-bf12-11e4-8076-705681abff85"], ["organization_id", "f8e9d18e-bf12-11e4-a197-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:28:13.437587"], ["updated_at", "2015-02-28 06:28:13.437587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f8e8ed8c-bf12-11e4-bda4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f8e9d18e-bf12-11e4-a197-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f8e8ed8c-bf12-11e4-bda4-705681abff85"], ["organization_id", "f8e9d18e-bf12-11e4-a197-705681abff85"], ["created_at", "2015-02-28 06:28:13.440990"], ["updated_at", "2015-02-28 06:28:13.440990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'f8e9d18e-bf12-11e4-a197-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "f8e9d18e-bf12-11e4-a197-705681abff85"], ["created_at", "2015-02-28 06:28:13.444621"], ["updated_at", "2015-02-28 06:28:13.444621"], ["token", "GVJF-MiMtfRXnj2nXPosbY6jZd1FYpBvDH9E3RtI9QA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:28:13 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$IWXgWoUbiQ6NE0NdlokdE.PO.IpLEUpSnjbVxicLZHPv9P7C9.glW"], ["created_at", "2015-02-28 06:28:13.455513"], ["updated_at", "2015-02-28 06:28:13.455513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$61si7qZxw4.rJ7evcPXxKeu4.uAOh2n0bW.ldmxGCmCbKCGWosxHa"], ["created_at", "2015-02-28 06:28:13.460075"], ["updated_at", "2015-02-28 06:28:13.460075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:28:13.461720"], ["user_id", "f8ed2046-bf12-11e4-86e9-705681abff85"], ["created_at", "2015-02-28 06:28:13.462481"], ["updated_at", "2015-02-28 06:28:13.462481"], ["token", "KNqgpi_LmW6Kfg5dNWzMxIqumlVRYEqjCBKJLjEc8_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:28:13.465871"], ["updated_at", "2015-02-28 06:28:13.465871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f8ed2046-bf12-11e4-86e9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f8eeac22-bf12-11e4-b739-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f8ed2046-bf12-11e4-86e9-705681abff85"], ["organization_id", "f8eeac22-bf12-11e4-b739-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:28:13.469280"], ["updated_at", "2015-02-28 06:28:13.469280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f8edcc30-bf12-11e4-8cbe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f8eeac22-bf12-11e4-b739-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f8edcc30-bf12-11e4-8cbe-705681abff85"], ["organization_id", "f8eeac22-bf12-11e4-b739-705681abff85"], ["created_at", "2015-02-28 06:28:13.472496"], ["updated_at", "2015-02-28 06:28:13.472496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'f8eeac22-bf12-11e4-b739-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "f8eeac22-bf12-11e4-b739-705681abff85"], ["created_at", "2015-02-28 06:28:13.509978"], ["updated_at", "2015-02-28 06:28:13.509978"], ["token", "Z05mFiXHuduwylmnzF_MTZYj8iUnH_ZyEtoDjUqH6z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:28:13 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (7.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$baO/34Ftgg/DKc1STBuYN.fzXueVMEKWG1/WycowxW67E7vcjLm/a"], ["created_at", "2015-02-28 06:31:26.691394"], ["updated_at", "2015-02-28 06:31:26.691394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$X6hw/PiaUCbd.bFXZIrOHuY1JIlWg5H2U1rjy8YD4bMoXNKkbjcV2"], ["created_at", "2015-02-28 06:31:26.698963"], ["updated_at", "2015-02-28 06:31:26.698963"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (12.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:31:26.738579"], ["user_id", "6c1ac438-bf13-11e4-af14-705681abff85"], ["created_at", "2015-02-28 06:31:26.749761"], ["updated_at", "2015-02-28 06:31:26.749761"], ["token", "ycMZGYYQcEUFDCEJAk1KhXZtLvdNRtcdBh7CyoL-BO8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:31:26.771489"], ["updated_at", "2015-02-28 06:31:26.771489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6c1ac438-bf13-11e4-af14-705681abff85' AND "clubhouse_memberships"."organization_id" = '6c26cec2-bf13-11e4-bbf9-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6c1ac438-bf13-11e4-af14-705681abff85"], ["organization_id", "6c26cec2-bf13-11e4-bbf9-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:31:26.782634"], ["updated_at", "2015-02-28 06:31:26.782634"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6c1be264-bf13-11e4-b8ac-705681abff85' AND "clubhouse_memberships"."organization_id" = '6c26cec2-bf13-11e4-bbf9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6c1be264-bf13-11e4-b8ac-705681abff85"], ["organization_id", "6c26cec2-bf13-11e4-bbf9-705681abff85"], ["created_at", "2015-02-28 06:31:26.817339"], ["updated_at", "2015-02-28 06:31:26.817339"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6c26cec2-bf13-11e4-bbf9-705681abff85') LIMIT 1 SQL (5.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "6c26cec2-bf13-11e4-bbf9-705681abff85"], ["created_at", "2015-02-28 06:31:26.828199"], ["updated_at", "2015-02-28 06:31:26.828199"], ["token", "OMY0hIzHWynMeNY8yiT-u0CtVxXJmS20bWiLcwpQaNI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:31:26 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$.5f21CWU9eEb8zOBcKkN9uWsO6WGoElmKJQWLkGrAFtc934FA2PH2"], ["created_at", "2015-02-28 06:31:26.880481"], ["updated_at", "2015-02-28 06:31:26.880481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$csgbb4OkloMO6a73ZEaWEeAyVxxakY9YESC5Rqly4kdWnQB7MspR6"], ["created_at", "2015-02-28 06:31:26.885819"], ["updated_at", "2015-02-28 06:31:26.885819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:31:26.888133"], ["user_id", "6c376b38-bf13-11e4-977c-705681abff85"], ["created_at", "2015-02-28 06:31:26.889241"], ["updated_at", "2015-02-28 06:31:26.889241"], ["token", "KS-ElVOhwTn71ZarWNJiNeJsXFG8B3lfK_CpQI89shk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:31:26.892901"], ["updated_at", "2015-02-28 06:31:26.892901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6c376b38-bf13-11e4-977c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6c394b74-bf13-11e4-b650-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6c376b38-bf13-11e4-977c-705681abff85"], ["organization_id", "6c394b74-bf13-11e4-b650-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:31:26.896540"], ["updated_at", "2015-02-28 06:31:26.896540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6c38479c-bf13-11e4-bdbd-705681abff85' AND "clubhouse_memberships"."organization_id" = '6c394b74-bf13-11e4-b650-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6c38479c-bf13-11e4-bdbd-705681abff85"], ["organization_id", "6c394b74-bf13-11e4-b650-705681abff85"], ["created_at", "2015-02-28 06:31:26.899785"], ["updated_at", "2015-02-28 06:31:26.899785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '6c394b74-bf13-11e4-b650-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "6c394b74-bf13-11e4-b650-705681abff85"], ["created_at", "2015-02-28 06:31:26.903129"], ["updated_at", "2015-02-28 06:31:26.903129"], ["token", "BTqq4uJTForj5_qdX2sM2VJvPRiGpjr-dhcqg1710fA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:31:26 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$hdX7nkC2HgzW53KR1Kv1oecf7SxtxoiEB6oJ940Y3Wn9i4EVhvWOG"], ["created_at", "2015-02-28 06:31:26.913343"], ["updated_at", "2015-02-28 06:31:26.913343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ffw85mGbJluuTIJ1BBsIIuhdjHJ9nOSsY9OiKSzgHtU4bilJJqa96"], ["created_at", "2015-02-28 06:31:26.918207"], ["updated_at", "2015-02-28 06:31:26.918207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:31:26.919912"], ["user_id", "6c3c70ba-bf13-11e4-aa17-705681abff85"], ["created_at", "2015-02-28 06:31:26.920739"], ["updated_at", "2015-02-28 06:31:26.920739"], ["token", "NSjMSuCCrl_wZfj_5mzYvua9GZ4YZWC5b_CAHHZLcQI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:31:26.924123"], ["updated_at", "2015-02-28 06:31:26.924123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6c3c70ba-bf13-11e4-aa17-705681abff85' AND "clubhouse_memberships"."organization_id" = '6c3e0dbc-bf13-11e4-95b6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6c3c70ba-bf13-11e4-aa17-705681abff85"], ["organization_id", "6c3e0dbc-bf13-11e4-95b6-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:31:26.927510"], ["updated_at", "2015-02-28 06:31:26.927510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6c3d2cda-bf13-11e4-98ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '6c3e0dbc-bf13-11e4-95b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6c3d2cda-bf13-11e4-98ed-705681abff85"], ["organization_id", "6c3e0dbc-bf13-11e4-95b6-705681abff85"], ["created_at", "2015-02-28 06:31:26.931288"], ["updated_at", "2015-02-28 06:31:26.931288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '6c3e0dbc-bf13-11e4-95b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "6c3e0dbc-bf13-11e4-95b6-705681abff85"], ["created_at", "2015-02-28 06:31:26.935292"], ["updated_at", "2015-02-28 06:31:26.935292"], ["token", "w7OUvPQEPQ_vteR5OY7YJZokf_amuk8hCUHG1I8eBM0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:31:26 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$XThdFasZTTuSru4H8uc3V..AC6e1LhLRh4j5twQTdvub6JvXb3VIS"], ["created_at", "2015-02-28 06:32:36.185440"], ["updated_at", "2015-02-28 06:32:36.185440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$mXyfcjfObUixR3N9llZ.rezTFgsxTeozTe6aACxWK/uQpOqQWIe8W"], ["created_at", "2015-02-28 06:32:36.191146"], ["updated_at", "2015-02-28 06:32:36.191146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:32:36.199186"], ["user_id", "9586acec-bf13-11e4-ad00-705681abff85"], ["created_at", "2015-02-28 06:32:36.214937"], ["updated_at", "2015-02-28 06:32:36.214937"], ["token", "6PPxruLfAdyAmwdeVtBV3I1ouWuPJVf_WHFmhsemRh0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:32:36.234617"], ["updated_at", "2015-02-28 06:32:36.234617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9586acec-bf13-11e4-ad00-705681abff85' AND "clubhouse_memberships"."organization_id" = '958e2a30-bf13-11e4-b04e-705681abff85') LIMIT 1 SQL (8.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9586acec-bf13-11e4-ad00-705681abff85"], ["organization_id", "958e2a30-bf13-11e4-b04e-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:32:36.255765"], ["updated_at", "2015-02-28 06:32:36.255765"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95875ee4-bf13-11e4-a243-705681abff85' AND "clubhouse_memberships"."organization_id" = '958e2a30-bf13-11e4-b04e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95875ee4-bf13-11e4-a243-705681abff85"], ["organization_id", "958e2a30-bf13-11e4-b04e-705681abff85"], ["created_at", "2015-02-28 06:32:36.298499"], ["updated_at", "2015-02-28 06:32:36.298499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '958e2a30-bf13-11e4-b04e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "958e2a30-bf13-11e4-b04e-705681abff85"], ["created_at", "2015-02-28 06:32:36.307675"], ["updated_at", "2015-02-28 06:32:36.307675"], ["token", "MdJTIjmiWBRlaYlaEYRwJsBXNFroVbBc3LxtUxUOtx0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:32:36 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization_id"=>"958e2a30-bf13-11e4-b04e-705681abff85", "admin"=>true, "invitation"=>{"organization_id"=>"958e2a30-bf13-11e4-b04e-705681abff85", "email"=>nil}} Pollett::Session Load (1.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:32:36.332103' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6PPxruLfAdyAmwdeVtBV3I1ouWuPJVf_WHFmhsemRh0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:32:36.371578"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:32:36.372926"], ["id", "958b75ba-bf13-11e4-97da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 63ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$riCG6zhD3n9xM5OLta132uZTmYZfPft/GBRxfW97QQORuNDikOyb2"], ["created_at", "2015-02-28 06:32:36.402202"], ["updated_at", "2015-02-28 06:32:36.402202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$iEGkknftkxGuj/TxiMtsBOeqL5wXzhY8FKG1ctLn9EPlc7q6.R5ri"], ["created_at", "2015-02-28 06:32:36.406927"], ["updated_at", "2015-02-28 06:32:36.406927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:32:36.408659"], ["user_id", "95a7966e-bf13-11e4-b0d6-705681abff85"], ["created_at", "2015-02-28 06:32:36.409448"], ["updated_at", "2015-02-28 06:32:36.409448"], ["token", "1Vs80kt2z7U000J5T_8h386iknN0X9jrymwFJcRb9IA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:32:36.412770"], ["updated_at", "2015-02-28 06:32:36.412770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95a7966e-bf13-11e4-b0d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '95a92f1a-bf13-11e4-9df6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95a7966e-bf13-11e4-b0d6-705681abff85"], ["organization_id", "95a92f1a-bf13-11e4-9df6-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:32:36.416206"], ["updated_at", "2015-02-28 06:32:36.416206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95a85068-bf13-11e4-8876-705681abff85' AND "clubhouse_memberships"."organization_id" = '95a92f1a-bf13-11e4-9df6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95a85068-bf13-11e4-8876-705681abff85"], ["organization_id", "95a92f1a-bf13-11e4-9df6-705681abff85"], ["created_at", "2015-02-28 06:32:36.419429"], ["updated_at", "2015-02-28 06:32:36.419429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '95a92f1a-bf13-11e4-9df6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "95a92f1a-bf13-11e4-9df6-705681abff85"], ["created_at", "2015-02-28 06:32:36.422738"], ["updated_at", "2015-02-28 06:32:36.422738"], ["token", "MCopPN3rmzREAKfFt01EMpR5yb4Nn_LTYNs2sRzZ1ns"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:32:36 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization_id"=>"95a92f1a-bf13-11e4-9df6-705681abff85", "admin"=>true, "invitation"=>{"organization_id"=>"95a92f1a-bf13-11e4-9df6-705681abff85", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:32:36.427270' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1Vs80kt2z7U000J5T_8h386iknN0X9jrymwFJcRb9IA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:32:36.428805"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:32:36.429807"], ["id", "95a8b620-bf13-11e4-89fa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$s26LbfezNgPyq5D3w8gu0uNh3DEf89mPv0BzPXLFYIwedzdzS.ima"], ["created_at", "2015-02-28 06:32:36.438146"], ["updated_at", "2015-02-28 06:32:36.438146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$hky06eVvtH01h3aCEfwK.O2HC0sZzVhwaablRC8GqXbMeSnpSkT2O"], ["created_at", "2015-02-28 06:32:36.442373"], ["updated_at", "2015-02-28 06:32:36.442373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:32:36.443805"], ["user_id", "95ad11ac-bf13-11e4-8294-705681abff85"], ["created_at", "2015-02-28 06:32:36.444558"], ["updated_at", "2015-02-28 06:32:36.444558"], ["token", "bRONwuNGd6uS3L-OhkSTr7tCO1xef-dD_rluuJ2HIAQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:32:36.447692"], ["updated_at", "2015-02-28 06:32:36.447692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95ad11ac-bf13-11e4-8294-705681abff85' AND "clubhouse_memberships"."organization_id" = '95ae8320-bf13-11e4-a557-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95ad11ac-bf13-11e4-8294-705681abff85"], ["organization_id", "95ae8320-bf13-11e4-a557-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:32:36.452364"], ["updated_at", "2015-02-28 06:32:36.452364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95adb1c0-bf13-11e4-a08e-705681abff85' AND "clubhouse_memberships"."organization_id" = '95ae8320-bf13-11e4-a557-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95adb1c0-bf13-11e4-a08e-705681abff85"], ["organization_id", "95ae8320-bf13-11e4-a557-705681abff85"], ["created_at", "2015-02-28 06:32:36.455799"], ["updated_at", "2015-02-28 06:32:36.455799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '95ae8320-bf13-11e4-a557-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "95ae8320-bf13-11e4-a557-705681abff85"], ["created_at", "2015-02-28 06:32:36.459216"], ["updated_at", "2015-02-28 06:32:36.459216"], ["token", "OVNaoWnS37qkold6skVHxIPMeW-rOwFwHhyDkHvyrAs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:32:36 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization_id"=>"95ae8320-bf13-11e4-a557-705681abff85", "admin"=>true, "invitation"=>{"organization_id"=>"95ae8320-bf13-11e4-a557-705681abff85", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:32:36.463894' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bRONwuNGd6uS3L-OhkSTr7tCO1xef-dD_rluuJ2HIAQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:32:36.465339"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:32:36.466321"], ["id", "95ae0f80-bf13-11e4-8294-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$kQu6V5kaUH5giYlbdvm3f.wUep4ejqnF5qTMocHAe0UrreJP0xM7a"], ["created_at", "2015-02-28 06:52:11.149988"], ["updated_at", "2015-02-28 06:52:11.149988"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$wMu0PW1WP6U0f/kT24z9WuV/5.jhnEzt7/npQooIPzCyqm2Oo9wya"], ["created_at", "2015-02-28 06:52:11.175426"], ["updated_at", "2015-02-28 06:52:11.175426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:52:11.183319"], ["user_id", "51dce8fa-bf16-11e4-9b68-705681abff85"], ["created_at", "2015-02-28 06:52:11.205565"], ["updated_at", "2015-02-28 06:52:11.205565"], ["token", "X-kofnlWPD7ta8aib4-WBYngZyzh9gxXupmOMyFHyVI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (26.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:52:11.262817"], ["updated_at", "2015-02-28 06:52:11.262817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '51dce8fa-bf16-11e4-9b68-705681abff85' AND "clubhouse_memberships"."organization_id" = '51ed3e44-bf16-11e4-a9a8-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "51dce8fa-bf16-11e4-9b68-705681abff85"], ["organization_id", "51ed3e44-bf16-11e4-a9a8-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:52:11.289780"], ["updated_at", "2015-02-28 06:52:11.289780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '51dfbefe-bf16-11e4-b364-705681abff85' AND "clubhouse_memberships"."organization_id" = '51ed3e44-bf16-11e4-a9a8-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "51dfbefe-bf16-11e4-b364-705681abff85"], ["organization_id", "51ed3e44-bf16-11e4-a9a8-705681abff85"], ["created_at", "2015-02-28 06:52:11.297010"], ["updated_at", "2015-02-28 06:52:11.297010"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '51ed3e44-bf16-11e4-a9a8-705681abff85') LIMIT 1 SQL (4.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "51ed3e44-bf16-11e4-a9a8-705681abff85"], ["created_at", "2015-02-28 06:52:11.313821"], ["updated_at", "2015-02-28 06:52:11.313821"], ["token", "wzJBqhi1vuURNaWlqTu_1d-KmNbBd2DBsxucXQVRNrY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:52:11 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>nil}} Pollett::Session Load (1.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:52:11.344924' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X-kofnlWPD7ta8aib4-WBYngZyzh9gxXupmOMyFHyVI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:52:11.353685"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:52:11.354996"], ["id", "51e4a96e-bf16-11e4-94e9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "51dce8fa-bf16-11e4-9b68-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "51dce8fa-bf16-11e4-9b68-705681abff85"], ["name", "org-1"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 81ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$T75kHupDLxxRoojrSD2LkuGyNMwJrcIJkmzOKROQERZ5/MqB8syyC"], ["created_at", "2015-02-28 06:52:11.431508"], ["updated_at", "2015-02-28 06:52:11.431508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$JMxb5y42nHmI60Cfcg/06OzWlx78Kg/MF5qDGtN6cQbqpTB/LfJey"], ["created_at", "2015-02-28 06:52:11.436824"], ["updated_at", "2015-02-28 06:52:11.436824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:52:11.438867"], ["user_id", "5206e150-bf16-11e4-9da7-705681abff85"], ["created_at", "2015-02-28 06:52:11.439682"], ["updated_at", "2015-02-28 06:52:11.439682"], ["token", "obnX2u5yMrRkpZoCXsuN-14rtwIctijVtZbEi7nlcz8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:52:11.443293"], ["updated_at", "2015-02-28 06:52:11.443293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5206e150-bf16-11e4-9da7-705681abff85' AND "clubhouse_memberships"."organization_id" = '52089d24-bf16-11e4-b748-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5206e150-bf16-11e4-9da7-705681abff85"], ["organization_id", "52089d24-bf16-11e4-b748-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:52:11.446591"], ["updated_at", "2015-02-28 06:52:11.446591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5207b076-bf16-11e4-844a-705681abff85' AND "clubhouse_memberships"."organization_id" = '52089d24-bf16-11e4-b748-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5207b076-bf16-11e4-844a-705681abff85"], ["organization_id", "52089d24-bf16-11e4-b748-705681abff85"], ["created_at", "2015-02-28 06:52:11.449667"], ["updated_at", "2015-02-28 06:52:11.449667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '52089d24-bf16-11e4-b748-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "52089d24-bf16-11e4-b748-705681abff85"], ["created_at", "2015-02-28 06:52:11.453013"], ["updated_at", "2015-02-28 06:52:11.453013"], ["token", "yxbM9TrwgbTF_6E7aNUDbboFyow6Ov8fGk210iBJEII"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:52:11 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:52:11.457783' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "obnX2u5yMrRkpZoCXsuN-14rtwIctijVtZbEi7nlcz8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:52:11.459253"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:52:11.460269"], ["id", "52081d18-bf16-11e4-b23c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5206e150-bf16-11e4-9da7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5206e150-bf16-11e4-9da7-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$0cAiDILvj6MGYiYIlm4Md.Yw4QShazGLvPfVfpSHjCWKgMAe4tSO2"], ["created_at", "2015-02-28 06:52:11.472989"], ["updated_at", "2015-02-28 06:52:11.472989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$4AQEsHmJpoXVrv7lL7B96uJkb5cu2h6qOPvaQJgmn6NJFpd9cW6fq"], ["created_at", "2015-02-28 06:52:11.478360"], ["updated_at", "2015-02-28 06:52:11.478360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:52:11.480505"], ["user_id", "520d26f0-bf16-11e4-aa9e-705681abff85"], ["created_at", "2015-02-28 06:52:11.481273"], ["updated_at", "2015-02-28 06:52:11.481273"], ["token", "SibdkGZsI0jPuwhXsRvo3ndKgsz-4QIqBmVDLx_v638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:52:11.485349"], ["updated_at", "2015-02-28 06:52:11.485349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '520d26f0-bf16-11e4-aa9e-705681abff85' AND "clubhouse_memberships"."organization_id" = '520f081c-bf16-11e4-a0c7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "520d26f0-bf16-11e4-aa9e-705681abff85"], ["organization_id", "520f081c-bf16-11e4-a0c7-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:52:11.488746"], ["updated_at", "2015-02-28 06:52:11.488746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '520e0b74-bf16-11e4-9d34-705681abff85' AND "clubhouse_memberships"."organization_id" = '520f081c-bf16-11e4-a0c7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "520e0b74-bf16-11e4-9d34-705681abff85"], ["organization_id", "520f081c-bf16-11e4-a0c7-705681abff85"], ["created_at", "2015-02-28 06:52:11.491796"], ["updated_at", "2015-02-28 06:52:11.491796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '520f081c-bf16-11e4-a0c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "520f081c-bf16-11e4-a0c7-705681abff85"], ["created_at", "2015-02-28 06:52:11.495242"], ["updated_at", "2015-02-28 06:52:11.495242"], ["token", "FLmPMue4CicaTh2eKqYoyffbt9Dwm9W38HyDvfgwcxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:52:11 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:52:11.499684' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SibdkGZsI0jPuwhXsRvo3ndKgsz-4QIqBmVDLx_v638"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:52:11.501590"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:52:11.503630"], ["id", "520e721c-bf16-11e4-871c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "520d26f0-bf16-11e4-aa9e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "520d26f0-bf16-11e4-aa9e-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$33SohmVZfuj2j2TPmUE/3e6X9b0ZYWsCwO/4I1dqJwoywa68wZGg6"], ["created_at", "2015-02-28 06:56:19.267320"], ["updated_at", "2015-02-28 06:56:19.267320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$hbuQa/NdvAdr5q8mC7re/uyunmsGjQ5ZibA7y1pE4sudX9A0s1dcq"], ["created_at", "2015-02-28 06:56:19.279783"], ["updated_at", "2015-02-28 06:56:19.279783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:56:19.288148"], ["user_id", "e5bfbf3e-bf16-11e4-a6d7-705681abff85"], ["created_at", "2015-02-28 06:56:19.294492"], ["updated_at", "2015-02-28 06:56:19.294492"], ["token", "ad_7r0Rll-e2HZXhdj69vSwQDsXerce-WQ9bU918KzQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:56:19.313811"], ["updated_at", "2015-02-28 06:56:19.313811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5bfbf3e-bf16-11e4-a6d7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5c6b1c2-bf16-11e4-b97e-705681abff85') LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5bfbf3e-bf16-11e4-a6d7-705681abff85"], ["organization_id", "e5c6b1c2-bf16-11e4-b97e-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:56:19.324902"], ["updated_at", "2015-02-28 06:56:19.324902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5c17946-bf16-11e4-8e91-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5c6b1c2-bf16-11e4-b97e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5c17946-bf16-11e4-8e91-705681abff85"], ["organization_id", "e5c6b1c2-bf16-11e4-b97e-705681abff85"], ["created_at", "2015-02-28 06:56:19.361414"], ["updated_at", "2015-02-28 06:56:19.361414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e5c6b1c2-bf16-11e4-b97e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "e5c6b1c2-bf16-11e4-b97e-705681abff85"], ["created_at", "2015-02-28 06:56:19.371483"], ["updated_at", "2015-02-28 06:56:19.371483"], ["token", "ah1WivOhLEWMLAvPWAKJictOvMc1iVw4gIScwLtx_HA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:56:19 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:56:19.396895' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ad_7r0Rll-e2HZXhdj69vSwQDsXerce-WQ9bU918KzQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:56:19.405741"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:56:19.407032"], ["id", "e5c3cdc2-bf16-11e4-b39e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e5bfbf3e-bf16-11e4-a6d7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e5bfbf3e-bf16-11e4-a6d7-705681abff85"], ["name", "org-1"]] Completed 500 Internal Server Error in 32ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$gTu9f1JYhbMZtKgtlg/JS.xUIQ.K6XyM1J7yPQKPIuQbT4Zwe6hIq"], ["created_at", "2015-02-28 06:56:19.436883"], ["updated_at", "2015-02-28 06:56:19.436883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (5.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$IpvJbrUbMVLE1P9HhCTH4OF6LJF4JSEAUApjdrWltLzLT1NHiRKd2"], ["created_at", "2015-02-28 06:56:19.441615"], ["updated_at", "2015-02-28 06:56:19.441615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:56:19.449185"], ["user_id", "e5d97370-bf16-11e4-b4a5-705681abff85"], ["created_at", "2015-02-28 06:56:19.449991"], ["updated_at", "2015-02-28 06:56:19.449991"], ["token", "psmH9zmDvS8M3obNGJiF8iwu_vcHjqJJ8tBQ48T_s2A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:56:19.453374"], ["updated_at", "2015-02-28 06:56:19.453374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5d97370-bf16-11e4-b4a5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5dbf276-bf16-11e4-a90b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5d97370-bf16-11e4-b4a5-705681abff85"], ["organization_id", "e5dbf276-bf16-11e4-a90b-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:56:19.456743"], ["updated_at", "2015-02-28 06:56:19.456743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5da2a5e-bf16-11e4-8186-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5dbf276-bf16-11e4-a90b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5da2a5e-bf16-11e4-8186-705681abff85"], ["organization_id", "e5dbf276-bf16-11e4-a90b-705681abff85"], ["created_at", "2015-02-28 06:56:19.459892"], ["updated_at", "2015-02-28 06:56:19.459892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'e5dbf276-bf16-11e4-a90b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "e5dbf276-bf16-11e4-a90b-705681abff85"], ["created_at", "2015-02-28 06:56:19.463633"], ["updated_at", "2015-02-28 06:56:19.463633"], ["token", "CzWP9nXfE96cocB5itooD2o1vDR5qy5Tlm60KnQeOoU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:56:19 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:56:19.468814' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "psmH9zmDvS8M3obNGJiF8iwu_vcHjqJJ8tBQ48T_s2A"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:56:19.470608"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:56:19.472179"], ["id", "e5db7936-bf16-11e4-8ea0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e5d97370-bf16-11e4-b4a5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e5d97370-bf16-11e4-b4a5-705681abff85"], ["name", "org-2"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$CgAEwTWSfRezElp/uYk9kOy33AG2y0WuF0wmL/820zYtYVKeo3GBO"], ["created_at", "2015-02-28 06:56:19.482731"], ["updated_at", "2015-02-28 06:56:19.482731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (3.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Xjm6tN9yOVWN2ApvO1wkPeMS498s.qznyE79tTBKsD8LAA7ntg3VS"], ["created_at", "2015-02-28 06:56:19.487821"], ["updated_at", "2015-02-28 06:56:19.487821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:56:19.493840"], ["user_id", "e5e06eb4-bf16-11e4-a916-705681abff85"], ["created_at", "2015-02-28 06:56:19.494652"], ["updated_at", "2015-02-28 06:56:19.494652"], ["token", "XFq0z2mVSV3MN1hmdWr_CjwuTCd8gTCKtJDFls1MkwM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:56:19.498050"], ["updated_at", "2015-02-28 06:56:19.498050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5e06eb4-bf16-11e4-a916-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5e2c3d0-bf16-11e4-88a7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5e06eb4-bf16-11e4-a916-705681abff85"], ["organization_id", "e5e2c3d0-bf16-11e4-88a7-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:56:19.501406"], ["updated_at", "2015-02-28 06:56:19.501406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5e15040-bf16-11e4-817b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5e2c3d0-bf16-11e4-88a7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5e15040-bf16-11e4-817b-705681abff85"], ["organization_id", "e5e2c3d0-bf16-11e4-88a7-705681abff85"], ["created_at", "2015-02-28 06:56:19.504587"], ["updated_at", "2015-02-28 06:56:19.504587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'e5e2c3d0-bf16-11e4-88a7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "e5e2c3d0-bf16-11e4-88a7-705681abff85"], ["created_at", "2015-02-28 06:56:19.508418"], ["updated_at", "2015-02-28 06:56:19.508418"], ["token", "aYq8YQdMi-tfWMprCA36wwyv6UOwhkzA1V9lLoY2TMs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:56:19 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:56:19.513761' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XFq0z2mVSV3MN1hmdWr_CjwuTCd8gTCKtJDFls1MkwM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:56:19.515383"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:56:19.516331"], ["id", "e5e2491e-bf16-11e4-821d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e5e06eb4-bf16-11e4-a916-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e5e06eb4-bf16-11e4-a916-705681abff85"], ["name", "org-3"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$OalCiaBXIdHClfLSoeoOcexM/GIgiJ7pH/syex7cd8Dm8FdEwD9wa"], ["created_at", "2015-02-28 06:56:47.588172"], ["updated_at", "2015-02-28 06:56:47.588172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$QKIM72AkJw9tz0rnd92s/uQA9hD/0yMhg9otnirwsbG/8Vu4WClOy"], ["created_at", "2015-02-28 06:56:47.593827"], ["updated_at", "2015-02-28 06:56:47.593827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:56:47.602079"], ["user_id", "f6a126c6-bf16-11e4-b475-705681abff85"], ["created_at", "2015-02-28 06:56:47.608493"], ["updated_at", "2015-02-28 06:56:47.608493"], ["token", "Azcpsj3k5lkiw3FR2DIc4eGBtJA3I0NzZUQ6peaFmxs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (6.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:56:47.624315"], ["updated_at", "2015-02-28 06:56:47.624315"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6a126c6-bf16-11e4-b475-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6a6a9e8-bf16-11e4-9b95-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f6a126c6-bf16-11e4-b475-705681abff85"], ["organization_id", "f6a6a9e8-bf16-11e4-9b95-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:56:47.637440"], ["updated_at", "2015-02-28 06:56:47.637440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6a1d80a-bf16-11e4-a0e8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6a6a9e8-bf16-11e4-9b95-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6a1d80a-bf16-11e4-a0e8-705681abff85"], ["organization_id", "f6a6a9e8-bf16-11e4-9b95-705681abff85"], ["created_at", "2015-02-28 06:56:47.673070"], ["updated_at", "2015-02-28 06:56:47.673070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'f6a6a9e8-bf16-11e4-9b95-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "f6a6a9e8-bf16-11e4-9b95-705681abff85"], ["created_at", "2015-02-28 06:56:47.681676"], ["updated_at", "2015-02-28 06:56:47.681676"], ["token", "C4RVzkz6HPnOqWTrn7GUHclNOLv-iKrHRDHkthLPGko"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:56:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:56:47.709377' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Azcpsj3k5lkiw3FR2DIc4eGBtJA3I0NzZUQ6peaFmxs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:56:47.716709"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:56:47.717869"], ["id", "f6a42cea-bf16-11e4-830c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6a126c6-bf16-11e4-b475-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "f6a126c6-bf16-11e4-b475-705681abff85"], ["name", "org-1"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f6a6a9e8-bf16-11e4-9b95-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'f6a6a9e8-bf16-11e4-9b95-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 49ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$3sHODn/B0V0q23ITGBWb.ekC4RMvwAL2cT1AALOIPNei/ntcsoexC"], ["created_at", "2015-02-28 06:56:47.763945"], ["updated_at", "2015-02-28 06:56:47.763945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (10.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$PMN7.hAleUrUyo7e3fNHhOQX68z5.2w8CrYghb9sE9V4ypMwXnufS"], ["created_at", "2015-02-28 06:56:47.768666"], ["updated_at", "2015-02-28 06:56:47.768666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:56:47.781010"], ["user_id", "f6bbd41c-bf16-11e4-bfae-705681abff85"], ["created_at", "2015-02-28 06:56:47.781832"], ["updated_at", "2015-02-28 06:56:47.781832"], ["token", "-P6sd7aiYburLtJBYYfln73W_0cstFAr5u5qZNkQmr8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:56:47.785387"], ["updated_at", "2015-02-28 06:56:47.785387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6bbd41c-bf16-11e4-bfae-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6bf13ca-bf16-11e4-a5b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f6bbd41c-bf16-11e4-bfae-705681abff85"], ["organization_id", "f6bf13ca-bf16-11e4-a5b3-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:56:47.788793"], ["updated_at", "2015-02-28 06:56:47.788793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6bc857e-bf16-11e4-9d16-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6bf13ca-bf16-11e4-a5b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6bc857e-bf16-11e4-9d16-705681abff85"], ["organization_id", "f6bf13ca-bf16-11e4-a5b3-705681abff85"], ["created_at", "2015-02-28 06:56:47.792067"], ["updated_at", "2015-02-28 06:56:47.792067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'f6bf13ca-bf16-11e4-a5b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "f6bf13ca-bf16-11e4-a5b3-705681abff85"], ["created_at", "2015-02-28 06:56:47.795958"], ["updated_at", "2015-02-28 06:56:47.795958"], ["token", "dFIV6F04YXq4UeVYg-shVY_mfxOMGwnqAlMRhYVQ8qw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:56:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:56:47.800735' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-P6sd7aiYburLtJBYYfln73W_0cstFAr5u5qZNkQmr8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:56:47.803368"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:56:47.804845"], ["id", "f6be945e-bf16-11e4-b2a9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6bbd41c-bf16-11e4-bfae-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "f6bbd41c-bf16-11e4-bfae-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f6bf13ca-bf16-11e4-a5b3-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'f6bf13ca-bf16-11e4-a5b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "f6bf13ca-bf16-11e4-a5b3-705681abff85"], ["created_at", "2015-02-28 06:56:47.812416"], ["updated_at", "2015-02-28 06:56:47.812416"], ["token", "duu0erI867BdmOuf5Itu-nzAtcZmPFnp8lwxpTIa7UI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 2.2ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$2CP2.7wxdv2Dydj6/ih0Rei8Vc7vnMVd00jhmM5VUYUfMaA/0YXCO"], ["created_at", "2015-02-28 06:56:47.823139"], ["updated_at", "2015-02-28 06:56:47.823139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$sXmRpZGPKDUHjX2DbqEYJeTNoAu0xQDTfiVWSGNAzYgw248u8pwTK"], ["created_at", "2015-02-28 06:56:47.827512"], ["updated_at", "2015-02-28 06:56:47.827512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:56:47.829086"], ["user_id", "f6c4d846-bf16-11e4-80e4-705681abff85"], ["created_at", "2015-02-28 06:56:47.829851"], ["updated_at", "2015-02-28 06:56:47.829851"], ["token", "AAnf4GjxuxYHaWqo2-irGb6rd6_u2ljBzPvPPy91gMg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:56:47.833022"], ["updated_at", "2015-02-28 06:56:47.833022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6c4d846-bf16-11e4-80e4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6c65662-bf16-11e4-ba06-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f6c4d846-bf16-11e4-80e4-705681abff85"], ["organization_id", "f6c65662-bf16-11e4-ba06-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:56:47.836576"], ["updated_at", "2015-02-28 06:56:47.836576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6c580ac-bf16-11e4-89f8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6c65662-bf16-11e4-ba06-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6c580ac-bf16-11e4-89f8-705681abff85"], ["organization_id", "f6c65662-bf16-11e4-ba06-705681abff85"], ["created_at", "2015-02-28 06:56:47.839742"], ["updated_at", "2015-02-28 06:56:47.839742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'f6c65662-bf16-11e4-ba06-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "f6c65662-bf16-11e4-ba06-705681abff85"], ["created_at", "2015-02-28 06:56:47.843138"], ["updated_at", "2015-02-28 06:56:47.843138"], ["token", "BRVbhga-TS3dOANIGBuQwtBNxuG4ktfDggTazIWRsbM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:56:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:56:47.847638' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AAnf4GjxuxYHaWqo2-irGb6rd6_u2ljBzPvPPy91gMg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:56:47.849498"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:56:47.851472"], ["id", "f6c5e1b4-bf16-11e4-bbfd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6c4d846-bf16-11e4-80e4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "f6c4d846-bf16-11e4-80e4-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f6c65662-bf16-11e4-ba06-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'f6c65662-bf16-11e4-ba06-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "f6c65662-bf16-11e4-ba06-705681abff85"], ["created_at", "2015-02-28 06:56:47.859852"], ["updated_at", "2015-02-28 06:56:47.859852"], ["token", "O8G0mJC9XRtZ7UA4cPml9WwxQXYD9cDWnFi-fvdiHWE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 1.6ms | ActiveRecord: 4.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$oo.c/7vFJXClRM9N6wkqYOoxB96z3mo6A5EdX7NxLq8CGbfypO9oi"], ["created_at", "2015-02-28 06:57:17.567969"], ["updated_at", "2015-02-28 06:57:17.567969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$0uwmNYKloMjk6Q.RpbxUqeGhZKDrvEgd/5zYy9hEr4c1auAfg5Aym"], ["created_at", "2015-02-28 06:57:17.574671"], ["updated_at", "2015-02-28 06:57:17.574671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:57:17.586466"], ["user_id", "087fc2e4-bf17-11e4-a9c0-705681abff85"], ["created_at", "2015-02-28 06:57:17.594009"], ["updated_at", "2015-02-28 06:57:17.594009"], ["token", "xg8e3nryzNWdZb0V-rCFiw6R0BCmZYlx35e6k_95zAI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:57:17.605114"], ["updated_at", "2015-02-28 06:57:17.605114"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '087fc2e4-bf17-11e4-a9c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '08854052-bf17-11e4-a535-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "087fc2e4-bf17-11e4-a9c0-705681abff85"], ["organization_id", "08854052-bf17-11e4-a535-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:57:17.616242"], ["updated_at", "2015-02-28 06:57:17.616242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0880916a-bf17-11e4-8466-705681abff85' AND "clubhouse_memberships"."organization_id" = '08854052-bf17-11e4-a535-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0880916a-bf17-11e4-8466-705681abff85"], ["organization_id", "08854052-bf17-11e4-a535-705681abff85"], ["created_at", "2015-02-28 06:57:17.620383"], ["updated_at", "2015-02-28 06:57:17.620383"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '08854052-bf17-11e4-a535-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "08854052-bf17-11e4-a535-705681abff85"], ["created_at", "2015-02-28 06:57:17.630615"], ["updated_at", "2015-02-28 06:57:17.630615"], ["token", "0rK-evGMENEnvBq0_XPMzhIudwX29yd2Iy-tiPd8u4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:57:17 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:57:17.651682' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xg8e3nryzNWdZb0V-rCFiw6R0BCmZYlx35e6k_95zAI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:57:17.659318"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:57:17.660592"], ["id", "0883bdd6-bf17-11e4-bb72-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "087fc2e4-bf17-11e4-a9c0-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "087fc2e4-bf17-11e4-a9c0-705681abff85"], ["name", "org-1"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08854052-bf17-11e4-a535-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '08854052-bf17-11e4-a535-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "08854052-bf17-11e4-a535-705681abff85"], ["created_at", "2015-02-28 06:57:17.719868"], ["updated_at", "2015-02-28 06:57:17.719868"], ["token", "3G-DqndBSBSaic7gVpiO7XYuZ2WXwKzP7EQrM2iILJI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 72ms (Views: 1.9ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$L1kwA3/zLuJ9Ht7MHfLfEOp7M4Cy.yqVHuvhgQ587rogEbKNFxqgC"], ["created_at", "2015-02-28 06:57:17.731857"], ["updated_at", "2015-02-28 06:57:17.731857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$wQAHUOq83mxOHms4oiFDHukbmQHtcs1/u4sGP2Lc0VyAz98gCBiMe"], ["created_at", "2015-02-28 06:57:17.736302"], ["updated_at", "2015-02-28 06:57:17.736302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:57:17.737997"], ["user_id", "08988d10-bf17-11e4-a086-705681abff85"], ["created_at", "2015-02-28 06:57:17.738765"], ["updated_at", "2015-02-28 06:57:17.738765"], ["token", "S9_aEXcRV0sX0j1b4nNin3UWBRN3C55HX9LKv8zag2Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:57:17.742004"], ["updated_at", "2015-02-28 06:57:17.742004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08988d10-bf17-11e4-a086-705681abff85' AND "clubhouse_memberships"."organization_id" = '089a1554-bf17-11e4-befe-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08988d10-bf17-11e4-a086-705681abff85"], ["organization_id", "089a1554-bf17-11e4-befe-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:57:17.745323"], ["updated_at", "2015-02-28 06:57:17.745323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '089939fe-bf17-11e4-8a4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '089a1554-bf17-11e4-befe-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "089939fe-bf17-11e4-8a4d-705681abff85"], ["organization_id", "089a1554-bf17-11e4-befe-705681abff85"], ["created_at", "2015-02-28 06:57:17.748412"], ["updated_at", "2015-02-28 06:57:17.748412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '089a1554-bf17-11e4-befe-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "089a1554-bf17-11e4-befe-705681abff85"], ["created_at", "2015-02-28 06:57:17.751792"], ["updated_at", "2015-02-28 06:57:17.751792"], ["token", "ebiWJme5XIHr7GDmmN4EEMnTZgcF1PgrJ9wX5u0nl_M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:57:17 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:57:17.759590' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S9_aEXcRV0sX0j1b4nNin3UWBRN3C55HX9LKv8zag2Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:57:17.761384"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:57:17.762494"], ["id", "08999f5c-bf17-11e4-b760-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08988d10-bf17-11e4-a086-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08988d10-bf17-11e4-a086-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "089a1554-bf17-11e4-befe-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '089a1554-bf17-11e4-befe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "089a1554-bf17-11e4-befe-705681abff85"], ["created_at", "2015-02-28 06:57:17.770540"], ["updated_at", "2015-02-28 06:57:17.770540"], ["token", "2WC13eClhEGJJfSvZCLAWaIlBpaESMNC5TOTO_ISil8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.5ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$TXu40q1Y4KhMzyAAshy2d.r5ON5nY/ww2xINKpSiW0wff9iETpXre"], ["created_at", "2015-02-28 06:57:17.780359"], ["updated_at", "2015-02-28 06:57:17.780359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$LIFF8W8KhOyzMxv/xbBe6e3rehNweZr4Sjr97.WeRS352SlQtz0oK"], ["created_at", "2015-02-28 06:57:17.786001"], ["updated_at", "2015-02-28 06:57:17.786001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:57:17.787779"], ["user_id", "089ff33e-bf17-11e4-98d1-705681abff85"], ["created_at", "2015-02-28 06:57:17.788825"], ["updated_at", "2015-02-28 06:57:17.788825"], ["token", "dYutxzaq4iNvcXJl8o52TpqXUll2idPU2WOqnvrrMIQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:57:17.792602"], ["updated_at", "2015-02-28 06:57:17.792602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '089ff33e-bf17-11e4-98d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '08a1cdc6-bf17-11e4-98b5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "089ff33e-bf17-11e4-98d1-705681abff85"], ["organization_id", "08a1cdc6-bf17-11e4-98b5-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:57:17.795917"], ["updated_at", "2015-02-28 06:57:17.795917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08a0d362-bf17-11e4-8591-705681abff85' AND "clubhouse_memberships"."organization_id" = '08a1cdc6-bf17-11e4-98b5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "08a0d362-bf17-11e4-8591-705681abff85"], ["organization_id", "08a1cdc6-bf17-11e4-98b5-705681abff85"], ["created_at", "2015-02-28 06:57:17.798931"], ["updated_at", "2015-02-28 06:57:17.798931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '08a1cdc6-bf17-11e4-98b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "08a1cdc6-bf17-11e4-98b5-705681abff85"], ["created_at", "2015-02-28 06:57:17.802378"], ["updated_at", "2015-02-28 06:57:17.802378"], ["token", "1f9VtwpiXMbrdwBajoSUqJDGRXus0VBzkEbBwv1IdMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:57:17 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:57:17.808921' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dYutxzaq4iNvcXJl8o52TpqXUll2idPU2WOqnvrrMIQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:57:17.810480"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:57:17.811795"], ["id", "08a15508-bf17-11e4-a115-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "089ff33e-bf17-11e4-98d1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "089ff33e-bf17-11e4-98d1-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08a1cdc6-bf17-11e4-98b5-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '08a1cdc6-bf17-11e4-98b5-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$AQhlfhoNyzHdPqN0yZM8zOslY3ZpKwYR4eS1Hnw.HqyNszLR5Xsfa"], ["created_at", "2015-02-28 06:58:22.954036"], ["updated_at", "2015-02-28 06:58:22.954036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (13.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Vrb8QkKpi58NJJRqovpOjORLloJk4pEc0mh3dgr7F1gtaR224j2vC"], ["created_at", "2015-02-28 06:58:22.961144"], ["updated_at", "2015-02-28 06:58:22.961144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:58:22.985207"], ["user_id", "2f78e466-bf17-11e4-9538-705681abff85"], ["created_at", "2015-02-28 06:58:22.993792"], ["updated_at", "2015-02-28 06:58:22.993792"], ["token", "d4sO546bQxa2BZpPpRrXwhco2lhJZEZ3vPjcmApKBCY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:58:23.004664"], ["updated_at", "2015-02-28 06:58:23.004664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f78e466-bf17-11e4-9538-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f807348-bf17-11e4-85fa-705681abff85') LIMIT 1 SQL (7.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f78e466-bf17-11e4-9538-705681abff85"], ["organization_id", "2f807348-bf17-11e4-85fa-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:58:23.017601"], ["updated_at", "2015-02-28 06:58:23.017601"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f79c2c8-bf17-11e4-8f0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f807348-bf17-11e4-85fa-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f79c2c8-bf17-11e4-8f0d-705681abff85"], ["organization_id", "2f807348-bf17-11e4-85fa-705681abff85"], ["created_at", "2015-02-28 06:58:23.066428"], ["updated_at", "2015-02-28 06:58:23.066428"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2f807348-bf17-11e4-85fa-705681abff85') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "2f807348-bf17-11e4-85fa-705681abff85"], ["created_at", "2015-02-28 06:58:23.082583"], ["updated_at", "2015-02-28 06:58:23.082583"], ["token", "5Kn1Yaq7xByeWtRyhio6_yzfRvErRmhnFrmFOkA16kY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:58:23 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:58:23.122567' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "d4sO546bQxa2BZpPpRrXwhco2lhJZEZ3vPjcmApKBCY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:58:23.129889"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:58:23.131375"], ["id", "2f7ed826-bf17-11e4-9265-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f78e466-bf17-11e4-9538-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2f78e466-bf17-11e4-9538-705681abff85"], ["name", "org-1"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2f807348-bf17-11e4-85fa-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '2f807348-bf17-11e4-85fa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "2f807348-bf17-11e4-85fa-705681abff85"], ["created_at", "2015-02-28 06:58:23.164459"], ["updated_at", "2015-02-28 06:58:23.164459"], ["token", "1U_GkGq7liotuL7EruRnAw1rFnKOpqyG6kbLeja962c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 46ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (15.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$fVl/u8feIbyVmhVF/yibRuORIOusUXXTCSQ.qnDXPo8yVtkzIG9PO"], ["created_at", "2015-02-28 06:58:23.174760"], ["updated_at", "2015-02-28 06:58:23.174760"]]  (3.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ridwStKJ6s7wtkEzeCXfM.8XpMN0FwwIuw9Phg4BcZjAeQFBm2OAu"], ["created_at", "2015-02-28 06:58:23.202389"], ["updated_at", "2015-02-28 06:58:23.202389"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:58:23.207730"], ["user_id", "2f9a60d2-bf17-11e4-a2a3-705681abff85"], ["created_at", "2015-02-28 06:58:23.211649"], ["updated_at", "2015-02-28 06:58:23.211649"], ["token", "z2wayATdjymqlvuAiB2ICbOePXbDLYyGRUcs_0WLVPE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:58:23.221802"], ["updated_at", "2015-02-28 06:58:23.221802"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f9a60d2-bf17-11e4-a2a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fa1a284-bf17-11e4-a9c1-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f9a60d2-bf17-11e4-a2a3-705681abff85"], ["organization_id", "2fa1a284-bf17-11e4-a9c1-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:58:23.230135"], ["updated_at", "2015-02-28 06:58:23.230135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f9eb9de-bf17-11e4-9e88-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fa1a284-bf17-11e4-a9c1-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f9eb9de-bf17-11e4-9e88-705681abff85"], ["organization_id", "2fa1a284-bf17-11e4-a9c1-705681abff85"], ["created_at", "2015-02-28 06:58:23.241960"], ["updated_at", "2015-02-28 06:58:23.241960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '2fa1a284-bf17-11e4-a9c1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "2fa1a284-bf17-11e4-a9c1-705681abff85"], ["created_at", "2015-02-28 06:58:23.251872"], ["updated_at", "2015-02-28 06:58:23.251872"], ["token", "YYQ6wGBTgUsBgqWjhQAdIOyqsJz8UHhwDLPnxI3Va3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:58:23 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:58:23.260251' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z2wayATdjymqlvuAiB2ICbOePXbDLYyGRUcs_0WLVPE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:58:23.262575"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:58:23.264227"], ["id", "2fa06fb8-bf17-11e4-ba81-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f9a60d2-bf17-11e4-a2a3-705681abff85"]] Clubhouse::Organization Load (1.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2f9a60d2-bf17-11e4-a2a3-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2fa1a284-bf17-11e4-a9c1-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '2fa1a284-bf17-11e4-a9c1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "2fa1a284-bf17-11e4-a9c1-705681abff85"], ["created_at", "2015-02-28 06:58:23.289582"], ["updated_at", "2015-02-28 06:58:23.289582"], ["token", "9P5ouaHw2JyWlisqxThKL7auzFVkZou2bHzBtceNz4k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 35ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$BE9Bw/fAH1ur/jCfh8LRle3j576mleJvqN4nW3VRk7zkh9TvEkY76"], ["created_at", "2015-02-28 06:58:23.305252"], ["updated_at", "2015-02-28 06:58:23.305252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$5r7QrK6ET5dxIencqr75JewgLSZ6c.dXbcpcYJVwjaHlgAJjLJGB6"], ["created_at", "2015-02-28 06:58:23.311629"], ["updated_at", "2015-02-28 06:58:23.311629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:58:23.314691"], ["user_id", "2fae5420-bf17-11e4-b8af-705681abff85"], ["created_at", "2015-02-28 06:58:23.315914"], ["updated_at", "2015-02-28 06:58:23.315914"], ["token", "SZH-IkcPhXovzknfou9RIeTT_ONuEeniQj_lJVXhv5U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:58:23.321788"], ["updated_at", "2015-02-28 06:58:23.321788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fae5420-bf17-11e4-b8af-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fb0dbc8-bf17-11e4-af88-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2fae5420-bf17-11e4-b8af-705681abff85"], ["organization_id", "2fb0dbc8-bf17-11e4-af88-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:58:23.327470"], ["updated_at", "2015-02-28 06:58:23.327470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2faf5546-bf17-11e4-a43f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fb0dbc8-bf17-11e4-af88-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2faf5546-bf17-11e4-a43f-705681abff85"], ["organization_id", "2fb0dbc8-bf17-11e4-af88-705681abff85"], ["created_at", "2015-02-28 06:58:23.331908"], ["updated_at", "2015-02-28 06:58:23.331908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '2fb0dbc8-bf17-11e4-af88-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "2fb0dbc8-bf17-11e4-af88-705681abff85"], ["created_at", "2015-02-28 06:58:23.336331"], ["updated_at", "2015-02-28 06:58:23.336331"], ["token", "4yauc8EOrCYpYCOJ1LzLWBIqaUF5k2uQ5O2iNzMN8bY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:58:23 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:58:23.343895' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SZH-IkcPhXovzknfou9RIeTT_ONuEeniQj_lJVXhv5U"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:58:23.345803"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:58:23.347318"], ["id", "2faff118-bf17-11e4-8db2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2fae5420-bf17-11e4-b8af-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2fae5420-bf17-11e4-b8af-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2fb0dbc8-bf17-11e4-af88-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '2fb0dbc8-bf17-11e4-af88-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 23ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$wCeTvihYDHHaPitvrRs.euoXQ7XSyW88Il3AzIZ9uIgqc/vaYrcJi"], ["created_at", "2015-02-28 06:58:28.543791"], ["updated_at", "2015-02-28 06:58:28.543791"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$XYK5HpRV9BCAEO.M/CaCKeeIwV88iX9NsydtQKLgkTdlACZDkf1Za"], ["created_at", "2015-02-28 06:58:28.550333"], ["updated_at", "2015-02-28 06:58:28.550333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:58:28.559329"], ["user_id", "32cdc276-bf17-11e4-9a46-705681abff85"], ["created_at", "2015-02-28 06:58:28.567150"], ["updated_at", "2015-02-28 06:58:28.567150"], ["token", "4fWaTvypAMsclyWzMAstZE9OUOwVPpebPPA4huNAaL0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:58:28.576833"], ["updated_at", "2015-02-28 06:58:28.576833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32cdc276-bf17-11e4-9a46-705681abff85' AND "clubhouse_memberships"."organization_id" = '32d2b0b0-bf17-11e4-8fc1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "32cdc276-bf17-11e4-9a46-705681abff85"], ["organization_id", "32d2b0b0-bf17-11e4-8fc1-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:58:28.589538"], ["updated_at", "2015-02-28 06:58:28.589538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32ce9606-bf17-11e4-8722-705681abff85' AND "clubhouse_memberships"."organization_id" = '32d2b0b0-bf17-11e4-8fc1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32ce9606-bf17-11e4-8722-705681abff85"], ["organization_id", "32d2b0b0-bf17-11e4-8fc1-705681abff85"], ["created_at", "2015-02-28 06:58:28.628634"], ["updated_at", "2015-02-28 06:58:28.628634"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '32d2b0b0-bf17-11e4-8fc1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "32d2b0b0-bf17-11e4-8fc1-705681abff85"], ["created_at", "2015-02-28 06:58:28.639841"], ["updated_at", "2015-02-28 06:58:28.639841"], ["token", "cLoNIM2xzWXS_y0HMo4rAws2pfHwatVU2e0H8yeClvI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:58:28 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:58:28.670927' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4fWaTvypAMsclyWzMAstZE9OUOwVPpebPPA4huNAaL0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (10.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:58:28.679307"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:58:28.680662"], ["id", "32d14004-bf17-11e4-903c-705681abff85"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "32cdc276-bf17-11e4-9a46-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "32cdc276-bf17-11e4-9a46-705681abff85"], ["name", "org-1"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "32d2b0b0-bf17-11e4-8fc1-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '32d2b0b0-bf17-11e4-8fc1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "32d2b0b0-bf17-11e4-8fc1-705681abff85"], ["created_at", "2015-02-28 06:58:28.722162"], ["updated_at", "2015-02-28 06:58:28.722162"], ["token", "ln4DQ0nKhhzZ6isPHWYsvu8leNC3ilQUMRqkUSzQPck"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 55ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$AnrcVYBQu6XGVPvNaMFrLO.RTgKtIN/FNJbZUxznBNcOfoPWIli0q"], ["created_at", "2015-02-28 06:58:28.730901"], ["updated_at", "2015-02-28 06:58:28.730901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$z5WVGOjooIFKZlz5Z0Jrnud8qa9O0QQwzMtlWDLy8vxPShmj0iDFC"], ["created_at", "2015-02-28 06:58:28.735314"], ["updated_at", "2015-02-28 06:58:28.735314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:58:28.737111"], ["user_id", "32ea26f0-bf17-11e4-80db-705681abff85"], ["created_at", "2015-02-28 06:58:28.738092"], ["updated_at", "2015-02-28 06:58:28.738092"], ["token", "9smcS_lrvedibp7ru7C2h22uO0FFjNrN7t0kTVur7nc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:58:28.741511"], ["updated_at", "2015-02-28 06:58:28.741511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32ea26f0-bf17-11e4-80db-705681abff85' AND "clubhouse_memberships"."organization_id" = '32ebc10e-bf17-11e4-a282-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "32ea26f0-bf17-11e4-80db-705681abff85"], ["organization_id", "32ebc10e-bf17-11e4-a282-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:58:28.744991"], ["updated_at", "2015-02-28 06:58:28.744991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32ead03c-bf17-11e4-a2cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '32ebc10e-bf17-11e4-a282-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32ead03c-bf17-11e4-a2cf-705681abff85"], ["organization_id", "32ebc10e-bf17-11e4-a282-705681abff85"], ["created_at", "2015-02-28 06:58:28.748240"], ["updated_at", "2015-02-28 06:58:28.748240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '32ebc10e-bf17-11e4-a282-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "32ebc10e-bf17-11e4-a282-705681abff85"], ["created_at", "2015-02-28 06:58:28.751700"], ["updated_at", "2015-02-28 06:58:28.751700"], ["token", "7AtBAif4P3tkQ4YEOwI7jov1FfYtrPfs91RLaDCCYxw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:58:28 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:58:28.758330' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9smcS_lrvedibp7ru7C2h22uO0FFjNrN7t0kTVur7nc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:58:28.759817"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:58:28.760828"], ["id", "32eb467a-bf17-11e4-9d10-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "32ea26f0-bf17-11e4-80db-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "32ea26f0-bf17-11e4-80db-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "32ebc10e-bf17-11e4-a282-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '32ebc10e-bf17-11e4-a282-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "32ebc10e-bf17-11e4-a282-705681abff85"], ["created_at", "2015-02-28 06:58:28.768640"], ["updated_at", "2015-02-28 06:58:28.768640"], ["token", "7e8uW_0VoYQG-y4Ov4mnDDqFgD_TudN2gZ4jGlKBJ7k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$93RWWe014FkYvYCdK/maSuBoA3TOwIYIPBBmuFNc/TZVoaFtcKgQW"], ["created_at", "2015-02-28 06:58:28.776191"], ["updated_at", "2015-02-28 06:58:28.776191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$9sqNyGt/sBeIjsgd3/4gVuOfAbphVXy.3rwD4ni0L6NHDFQuFE6dS"], ["created_at", "2015-02-28 06:58:28.780451"], ["updated_at", "2015-02-28 06:58:28.780451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:58:28.781977"], ["user_id", "32f10e20-bf17-11e4-91ff-705681abff85"], ["created_at", "2015-02-28 06:58:28.782773"], ["updated_at", "2015-02-28 06:58:28.782773"], ["token", "_c9IYuqkOYP2HuTS-_1kbTeNhzgdPhDWcfXjN4wTTo4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:58:28.785994"], ["updated_at", "2015-02-28 06:58:28.785994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32f10e20-bf17-11e4-91ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '32f28c32-bf17-11e4-a097-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "32f10e20-bf17-11e4-91ff-705681abff85"], ["organization_id", "32f28c32-bf17-11e4-a097-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:58:28.789323"], ["updated_at", "2015-02-28 06:58:28.789323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32f1b118-bf17-11e4-b83a-705681abff85' AND "clubhouse_memberships"."organization_id" = '32f28c32-bf17-11e4-a097-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32f1b118-bf17-11e4-b83a-705681abff85"], ["organization_id", "32f28c32-bf17-11e4-a097-705681abff85"], ["created_at", "2015-02-28 06:58:28.794971"], ["updated_at", "2015-02-28 06:58:28.794971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '32f28c32-bf17-11e4-a097-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "32f28c32-bf17-11e4-a097-705681abff85"], ["created_at", "2015-02-28 06:58:28.798623"], ["updated_at", "2015-02-28 06:58:28.798623"], ["token", "XOEqUn3obR01w7nYqejTfaxJRdjFhuOqH_3PaGRPw3I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:58:28 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:58:28.804430' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_c9IYuqkOYP2HuTS-_1kbTeNhzgdPhDWcfXjN4wTTo4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:58:28.806365"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:58:28.807596"], ["id", "32f214c8-bf17-11e4-8971-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "32f10e20-bf17-11e4-91ff-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "32f10e20-bf17-11e4-91ff-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "32f28c32-bf17-11e4-a097-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '32f28c32-bf17-11e4-a097-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$dw.SN9XICwJv.W8MwOqIJO/0uttO635JkRqBM4XlTI6ubCQhhOJum"], ["created_at", "2015-02-28 06:58:41.905850"], ["updated_at", "2015-02-28 06:58:41.905850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$sSGQl2Oqb/ekKJsMdWXFEupJxd/..LCvrs01/8irYoiSX/s.ezOWm"], ["created_at", "2015-02-28 06:58:41.911615"], ["updated_at", "2015-02-28 06:58:41.911615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:58:41.920498"], ["user_id", "3ac4a3aa-bf17-11e4-a25c-705681abff85"], ["created_at", "2015-02-28 06:58:41.926376"], ["updated_at", "2015-02-28 06:58:41.926376"], ["token", "sqSM3c3FAraACviAULZ3agjGE_OAPHgTdep8vEYcVeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:58:41.935108"], ["updated_at", "2015-02-28 06:58:41.935108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ac4a3aa-bf17-11e4-a25c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ac8fa04-bf17-11e4-80d9-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ac4a3aa-bf17-11e4-a25c-705681abff85"], ["organization_id", "3ac8fa04-bf17-11e4-80d9-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:58:41.948117"], ["updated_at", "2015-02-28 06:58:41.948117"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ac559da-bf17-11e4-ac9a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ac8fa04-bf17-11e4-80d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ac559da-bf17-11e4-ac9a-705681abff85"], ["organization_id", "3ac8fa04-bf17-11e4-80d9-705681abff85"], ["created_at", "2015-02-28 06:58:41.987420"], ["updated_at", "2015-02-28 06:58:41.987420"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '3ac8fa04-bf17-11e4-80d9-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "3ac8fa04-bf17-11e4-80d9-705681abff85"], ["created_at", "2015-02-28 06:58:41.998435"], ["updated_at", "2015-02-28 06:58:41.998435"], ["token", "YRKqgZSprakuQT282Vn1_3kxddEw3mjmGwqhzQbDDTk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:58:42 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:58:42.023086' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sqSM3c3FAraACviAULZ3agjGE_OAPHgTdep8vEYcVeU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:58:42.032906"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:58:42.034162"], ["id", "3ac7b45a-bf17-11e4-85a0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ac4a3aa-bf17-11e4-a25c-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3ac4a3aa-bf17-11e4-a25c-705681abff85"], ["name", "org-1"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ac8fa04-bf17-11e4-80d9-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3ac8fa04-bf17-11e4-80d9-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "3ac8fa04-bf17-11e4-80d9-705681abff85"], ["created_at", "2015-02-28 06:58:42.060532"], ["updated_at", "2015-02-28 06:58:42.060532"], ["token", "atWs3QFe0hzDe_uMotxPrkVLjqL6d-GERdBFQwAqZog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 43ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$0lH6VZjD3rQXu2JK5VhcqucDclj3kdmzZLDkf5PNEYJUWbNi5167K"], ["created_at", "2015-02-28 06:58:42.071728"], ["updated_at", "2015-02-28 06:58:42.071728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$9DEdFV4kyGPVqpeZpuQi..L3v47hr.4ri6Tksqpse9jVQwcMWZdx2"], ["created_at", "2015-02-28 06:58:42.076187"], ["updated_at", "2015-02-28 06:58:42.076187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:58:42.078264"], ["user_id", "3addce48-bf17-11e4-a5ce-705681abff85"], ["created_at", "2015-02-28 06:58:42.079040"], ["updated_at", "2015-02-28 06:58:42.079040"], ["token", "CPbLH-2W1_CUyTzMEQIQj3wxd2lGOVX9hiFECI9Z9C0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:58:42.082474"], ["updated_at", "2015-02-28 06:58:42.082474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3addce48-bf17-11e4-a5ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '3adf6f14-bf17-11e4-8165-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3addce48-bf17-11e4-a5ce-705681abff85"], ["organization_id", "3adf6f14-bf17-11e4-8165-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:58:42.086075"], ["updated_at", "2015-02-28 06:58:42.086075"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ade8356-bf17-11e4-85e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '3adf6f14-bf17-11e4-8165-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ade8356-bf17-11e4-85e6-705681abff85"], ["organization_id", "3adf6f14-bf17-11e4-8165-705681abff85"], ["created_at", "2015-02-28 06:58:42.089778"], ["updated_at", "2015-02-28 06:58:42.089778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '3adf6f14-bf17-11e4-8165-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "3adf6f14-bf17-11e4-8165-705681abff85"], ["created_at", "2015-02-28 06:58:42.093127"], ["updated_at", "2015-02-28 06:58:42.093127"], ["token", "a1Digt-lkWixJBXTfLkZ7uUWcTS6aCLeKLM2i1wwCSU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:58:42 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com"}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:58:42.098617' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CPbLH-2W1_CUyTzMEQIQj3wxd2lGOVX9hiFECI9Z9C0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:58:42.100679"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:58:42.101806"], ["id", "3adeee5e-bf17-11e4-9449-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3addce48-bf17-11e4-a5ce-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3addce48-bf17-11e4-a5ce-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3adf6f14-bf17-11e4-8165-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3adf6f14-bf17-11e4-8165-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "3adf6f14-bf17-11e4-8165-705681abff85"], ["created_at", "2015-02-28 06:58:42.109166"], ["updated_at", "2015-02-28 06:58:42.109166"], ["token", "ZjcI28j3xvcco-aXOoi4P56tfkN_838El_E2hmaXMMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$HTy/U9nNCwHY7xugpEYwZeBpBb3xEV8dCHlax.Guggt6DhMYN6D8u"], ["created_at", "2015-02-28 06:58:42.117604"], ["updated_at", "2015-02-28 06:58:42.117604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Zfng46Z.lVtG.x4kIjo1zO7/zizme/bZCvZ.tn7nzr7iIPqBIYumq"], ["created_at", "2015-02-28 06:58:42.123026"], ["updated_at", "2015-02-28 06:58:42.123026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:58:42.124559"], ["user_id", "3ae4e2a0-bf17-11e4-b378-705681abff85"], ["created_at", "2015-02-28 06:58:42.125330"], ["updated_at", "2015-02-28 06:58:42.125330"], ["token", "2DLoHA6crs7FE0YkmwSLV1wFXneTiLu7PxxJTZNfnHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:58:42.128520"], ["updated_at", "2015-02-28 06:58:42.128520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ae4e2a0-bf17-11e4-b378-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ae670f2-bf17-11e4-b71a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ae4e2a0-bf17-11e4-b378-705681abff85"], ["organization_id", "3ae670f2-bf17-11e4-b71a-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:58:42.132141"], ["updated_at", "2015-02-28 06:58:42.132141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ae59c68-bf17-11e4-843a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ae670f2-bf17-11e4-b71a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ae59c68-bf17-11e4-843a-705681abff85"], ["organization_id", "3ae670f2-bf17-11e4-b71a-705681abff85"], ["created_at", "2015-02-28 06:58:42.135431"], ["updated_at", "2015-02-28 06:58:42.135431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '3ae670f2-bf17-11e4-b71a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "3ae670f2-bf17-11e4-b71a-705681abff85"], ["created_at", "2015-02-28 06:58:42.139134"], ["updated_at", "2015-02-28 06:58:42.139134"], ["token", "bdWP4tmErGU4oULzU-cKT0KDrMQe1xzqpCLfrdPOhKo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:58:42 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:58:42.145574' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2DLoHA6crs7FE0YkmwSLV1wFXneTiLu7PxxJTZNfnHY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:58:42.146942"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:58:42.147872"], ["id", "3ae5fd0c-bf17-11e4-9a65-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ae4e2a0-bf17-11e4-b378-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3ae4e2a0-bf17-11e4-b378-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ae670f2-bf17-11e4-b71a-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '3ae670f2-bf17-11e4-b71a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (2.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (18.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$4aS741VpoymWVs1u9VGuR.ia.Jepv3PX.hQQsXu2GN.19tqrmgBFm"], ["created_at", "2015-02-28 06:59:28.750305"], ["updated_at", "2015-02-28 06:59:28.750305"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$92/AKq7oYNjRnkIe9Heyn.q5oFQobIy2KK6hTf2wgLBeMiDIW.7nC"], ["created_at", "2015-02-28 06:59:28.777685"], ["updated_at", "2015-02-28 06:59:28.777685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (25.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:59:28.785720"], ["user_id", "56b08bce-bf17-11e4-8fc0-705681abff85"], ["created_at", "2015-02-28 06:59:28.791444"], ["updated_at", "2015-02-28 06:59:28.791444"], ["token", "GMQxzDAiLBpaPJtCLc5O7kUXnIxN_dPxJtR729lA9FM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:59:28.827409"], ["updated_at", "2015-02-28 06:59:28.827409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56b08bce-bf17-11e4-8fc0-705681abff85' AND "clubhouse_memberships"."organization_id" = '56bc5080-bf17-11e4-b47d-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56b08bce-bf17-11e4-8fc0-705681abff85"], ["organization_id", "56bc5080-bf17-11e4-b47d-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:59:28.839467"], ["updated_at", "2015-02-28 06:59:28.839467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56b48e22-bf17-11e4-b14c-705681abff85' AND "clubhouse_memberships"."organization_id" = '56bc5080-bf17-11e4-b47d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56b48e22-bf17-11e4-b14c-705681abff85"], ["organization_id", "56bc5080-bf17-11e4-b47d-705681abff85"], ["created_at", "2015-02-28 06:59:28.875491"], ["updated_at", "2015-02-28 06:59:28.875491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '56bc5080-bf17-11e4-b47d-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "56bc5080-bf17-11e4-b47d-705681abff85"], ["created_at", "2015-02-28 06:59:28.884951"], ["updated_at", "2015-02-28 06:59:28.884951"], ["token", "uUaFbow9GxwYJ5SfRVKSFFvZmxT-SXl31FqHOyP2CPk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:59:28 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:59:28.908987' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GMQxzDAiLBpaPJtCLc5O7kUXnIxN_dPxJtR729lA9FM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:59:28.926215"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:59:28.928108"], ["id", "56b6bd8c-bf17-11e4-9197-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56b08bce-bf17-11e4-8fc0-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "56b08bce-bf17-11e4-8fc0-705681abff85"], ["name", "org-1"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "56bc5080-bf17-11e4-b47d-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '56bc5080-bf17-11e4-b47d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "56bc5080-bf17-11e4-b47d-705681abff85"], ["created_at", "2015-02-28 06:59:28.955241"], ["updated_at", "2015-02-28 06:59:28.955241"], ["token", "aq4sI8qpTqmcPfc_JgMLRTzHULxhZCxqKZowwY6hHuI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 52ms (Views: 3.6ms | ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$r3aYIiH/ciGqYF58lV0g6eitleNkMkuzIqMP4Jd6ggECJhpwdDkKe"], ["created_at", "2015-02-28 06:59:28.970401"], ["updated_at", "2015-02-28 06:59:28.970401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$QHgZiYB1iL3s8KkizkjRge3ZmZmuYoDONezj5RkHMIAe9VZulpFWG"], ["created_at", "2015-02-28 06:59:28.974995"], ["updated_at", "2015-02-28 06:59:28.974995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:59:28.976548"], ["user_id", "56d1fbb0-bf17-11e4-9d63-705681abff85"], ["created_at", "2015-02-28 06:59:28.977320"], ["updated_at", "2015-02-28 06:59:28.977320"], ["token", "Pi4n_4HgyPWqSEmWoCSJXnWx0GFaQdppFYyleRrtSEk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:59:28.980626"], ["updated_at", "2015-02-28 06:59:28.980626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56d1fbb0-bf17-11e4-9d63-705681abff85' AND "clubhouse_memberships"."organization_id" = '56d38340-bf17-11e4-97a9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56d1fbb0-bf17-11e4-9d63-705681abff85"], ["organization_id", "56d38340-bf17-11e4-97a9-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:59:28.983942"], ["updated_at", "2015-02-28 06:59:28.983942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56d2a6c8-bf17-11e4-a5f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '56d38340-bf17-11e4-97a9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56d2a6c8-bf17-11e4-a5f7-705681abff85"], ["organization_id", "56d38340-bf17-11e4-97a9-705681abff85"], ["created_at", "2015-02-28 06:59:28.986979"], ["updated_at", "2015-02-28 06:59:28.986979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '56d38340-bf17-11e4-97a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "56d38340-bf17-11e4-97a9-705681abff85"], ["created_at", "2015-02-28 06:59:28.990581"], ["updated_at", "2015-02-28 06:59:28.990581"], ["token", "FM25bNBnidglRQAsvhLsEUPQjG7jva70dBIlkKMf56A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:59:28 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:59:28.995027' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Pi4n_4HgyPWqSEmWoCSJXnWx0GFaQdppFYyleRrtSEk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:59:28.996489"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:59:28.997408"], ["id", "56d30a5a-bf17-11e4-95ac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56d1fbb0-bf17-11e4-9d63-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "56d1fbb0-bf17-11e4-9d63-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "56d38340-bf17-11e4-97a9-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '56d38340-bf17-11e4-97a9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "56d38340-bf17-11e4-97a9-705681abff85"], ["created_at", "2015-02-28 06:59:29.004673"], ["updated_at", "2015-02-28 06:59:29.004673"], ["token", "J5Xlv9Ea_p3xErPw5V5I3Ib6pjpnVxThHXjzXe4huZM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$qzCsFDoQk1J8Zf7/DuTUTOzI/tPgGW3zbYid6DHW.UNLubXk8xtmK"], ["created_at", "2015-02-28 06:59:29.014485"], ["updated_at", "2015-02-28 06:59:29.014485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$tqEUsKWXvQiWzMIjviCCB.tkIFPoNSBEnV3R5QZ4e.rKRPkEY7dgS"], ["created_at", "2015-02-28 06:59:29.019905"], ["updated_at", "2015-02-28 06:59:29.019905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 06:59:29.022154"], ["user_id", "56d8ae9c-bf17-11e4-b58a-705681abff85"], ["created_at", "2015-02-28 06:59:29.023426"], ["updated_at", "2015-02-28 06:59:29.023426"], ["token", "o4uESyn10_P9nNloPEM8yHJWvC3nIE3nYUmZoy5a5GM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 06:59:29.026767"], ["updated_at", "2015-02-28 06:59:29.026767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56d8ae9c-bf17-11e4-b58a-705681abff85' AND "clubhouse_memberships"."organization_id" = '56da8c30-bf17-11e4-97df-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56d8ae9c-bf17-11e4-b58a-705681abff85"], ["organization_id", "56da8c30-bf17-11e4-97df-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 06:59:29.029965"], ["updated_at", "2015-02-28 06:59:29.029965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56d99352-bf17-11e4-9631-705681abff85' AND "clubhouse_memberships"."organization_id" = '56da8c30-bf17-11e4-97df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56d99352-bf17-11e4-9631-705681abff85"], ["organization_id", "56da8c30-bf17-11e4-97df-705681abff85"], ["created_at", "2015-02-28 06:59:29.033003"], ["updated_at", "2015-02-28 06:59:29.033003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '56da8c30-bf17-11e4-97df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "56da8c30-bf17-11e4-97df-705681abff85"], ["created_at", "2015-02-28 06:59:29.036260"], ["updated_at", "2015-02-28 06:59:29.036260"], ["token", "vf3AlVmHoaFr8ekpkK3AwECOgI9qNgqsiIwyexRxS-Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 22:59:29 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 06:59:29.045045' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o4uESyn10_P9nNloPEM8yHJWvC3nIE3nYUmZoy5a5GM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 06:59:29.046782"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 06:59:29.047773"], ["id", "56da13e0-bf17-11e4-9c4d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56d8ae9c-bf17-11e4-b58a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "56d8ae9c-bf17-11e4-b58a-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "56da8c30-bf17-11e4-97df-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '56da8c30-bf17-11e4-97df-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (15.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$N2LmA0Qi.QyAeov8/UD8ter0QWY8hSxq3.fAsi7ChYosas7L9zByO"], ["created_at", "2015-02-28 07:01:30.290417"], ["updated_at", "2015-02-28 07:01:30.290417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$RospQP3pGWlxrMwRMTl0LOqaG/dH6.5.mzcuAt9R019rF9hiTMCGK"], ["created_at", "2015-02-28 07:01:30.312554"], ["updated_at", "2015-02-28 07:01:30.312554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 07:01:30.322853"], ["user_id", "9f223592-bf17-11e4-9dab-705681abff85"], ["created_at", "2015-02-28 07:01:30.331084"], ["updated_at", "2015-02-28 07:01:30.331084"], ["token", "B6z--BL9VsQr-pwmvMHe2weDYb7titlw_SkJHi21lnc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (8.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 07:01:30.348551"], ["updated_at", "2015-02-28 07:01:30.348551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f223592-bf17-11e4-9dab-705681abff85' AND "clubhouse_memberships"."organization_id" = '9f2adc9c-bf17-11e4-9e62-705681abff85') LIMIT 1 SQL (7.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9f223592-bf17-11e4-9dab-705681abff85"], ["organization_id", "9f2adc9c-bf17-11e4-9e62-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 07:01:30.360669"], ["updated_at", "2015-02-28 07:01:30.360669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f2568d4-bf17-11e4-8cf0-705681abff85' AND "clubhouse_memberships"."organization_id" = '9f2adc9c-bf17-11e4-9e62-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f2568d4-bf17-11e4-8cf0-705681abff85"], ["organization_id", "9f2adc9c-bf17-11e4-9e62-705681abff85"], ["created_at", "2015-02-28 07:01:30.371556"], ["updated_at", "2015-02-28 07:01:30.371556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '9f2adc9c-bf17-11e4-9e62-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "9f2adc9c-bf17-11e4-9e62-705681abff85"], ["created_at", "2015-02-28 07:01:30.383249"], ["updated_at", "2015-02-28 07:01:30.383249"], ["token", "N6thPdMTjnqvylEQrVUx5nWCv7A4yGtcWztuGs0wKGo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 23:01:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 07:01:30.413248' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B6z--BL9VsQr-pwmvMHe2weDYb7titlw_SkJHi21lnc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 07:01:30.420919"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 07:01:30.422188"], ["id", "9f284040-bf17-11e4-8543-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9f223592-bf17-11e4-9dab-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9f223592-bf17-11e4-9dab-705681abff85"], ["name", "org-1"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9f2adc9c-bf17-11e4-9e62-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '9f2adc9c-bf17-11e4-9e62-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "9f2adc9c-bf17-11e4-9e62-705681abff85"], ["created_at", "2015-02-28 07:01:30.484806"], ["updated_at", "2015-02-28 07:01:30.484806"], ["token", "h1nQi8yhwgldeshXGXt9hQ0NJoQ4M2FwH20yW_UdNfg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 77ms (Views: 3.1ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$9gWSdQC87ftji9KpJA7IgeyE/q3TUoDHtlYm9DsK2JjNsLF5mJHl6"], ["created_at", "2015-02-28 07:01:30.499258"], ["updated_at", "2015-02-28 07:01:30.499258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$4xHNC4sDlM2eUh06uCxG6eSZ/a4j.TA.0JHz8xDXil1Lid0wrb.4q"], ["created_at", "2015-02-28 07:01:30.504955"], ["updated_at", "2015-02-28 07:01:30.504955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 07:01:30.506748"], ["user_id", "9f41cc40-bf17-11e4-8a9c-705681abff85"], ["created_at", "2015-02-28 07:01:30.507583"], ["updated_at", "2015-02-28 07:01:30.507583"], ["token", "D01UXqSMjzjCVYemr2nYimzRnRFhCS13yfs0mAxxqfs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 07:01:30.511575"], ["updated_at", "2015-02-28 07:01:30.511575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f41cc40-bf17-11e4-8a9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '9f43ab64-bf17-11e4-9d0f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9f41cc40-bf17-11e4-8a9c-705681abff85"], ["organization_id", "9f43ab64-bf17-11e4-9d0f-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 07:01:30.514987"], ["updated_at", "2015-02-28 07:01:30.514987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f42ace6-bf17-11e4-b06d-705681abff85' AND "clubhouse_memberships"."organization_id" = '9f43ab64-bf17-11e4-9d0f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f42ace6-bf17-11e4-b06d-705681abff85"], ["organization_id", "9f43ab64-bf17-11e4-9d0f-705681abff85"], ["created_at", "2015-02-28 07:01:30.518041"], ["updated_at", "2015-02-28 07:01:30.518041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '9f43ab64-bf17-11e4-9d0f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "9f43ab64-bf17-11e4-9d0f-705681abff85"], ["created_at", "2015-02-28 07:01:30.521377"], ["updated_at", "2015-02-28 07:01:30.521377"], ["token", "frdxKPOU1dNJAvwSDW1Nx3mqdPqIlfHMjtiQ4ume9_I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 23:01:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 07:01:30.526129' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "D01UXqSMjzjCVYemr2nYimzRnRFhCS13yfs0mAxxqfs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 07:01:30.527607"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 07:01:30.528553"], ["id", "9f431a78-bf17-11e4-ab1a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9f41cc40-bf17-11e4-8a9c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9f41cc40-bf17-11e4-8a9c-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9f43ab64-bf17-11e4-9d0f-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '9f43ab64-bf17-11e4-9d0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "9f43ab64-bf17-11e4-9d0f-705681abff85"], ["created_at", "2015-02-28 07:01:30.535880"], ["updated_at", "2015-02-28 07:01:30.535880"], ["token", "HDbneqNpxVLopw6I77x-Sf81dsaNULrQ69bEIPk9rVk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 12ms (Views: 0.7ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$UJ8/.zIxP6lyQ9mUEqAT9.Z3cPgyqpRJklEllfDTVGX1YF/yMVj2e"], ["created_at", "2015-02-28 07:01:30.545021"], ["updated_at", "2015-02-28 07:01:30.545021"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ovgLfRfcrFBxYFBxQCj07uCgM5tNOm8SpD7bR7FrSII3Zt1.BNCG."], ["created_at", "2015-02-28 07:01:30.549574"], ["updated_at", "2015-02-28 07:01:30.549574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 07:01:30.551150"], ["user_id", "9f48c52c-bf17-11e4-82ee-705681abff85"], ["created_at", "2015-02-28 07:01:30.552005"], ["updated_at", "2015-02-28 07:01:30.552005"], ["token", "4MiLBtWNJ0CVCWBFZ-TorwVQmM2qQYpZEt-qNpPfh5A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 07:01:30.555535"], ["updated_at", "2015-02-28 07:01:30.555535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f48c52c-bf17-11e4-82ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '9f4a6080-bf17-11e4-a780-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9f48c52c-bf17-11e4-82ee-705681abff85"], ["organization_id", "9f4a6080-bf17-11e4-a780-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 07:01:30.559069"], ["updated_at", "2015-02-28 07:01:30.559069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f4975ee-bf17-11e4-b745-705681abff85' AND "clubhouse_memberships"."organization_id" = '9f4a6080-bf17-11e4-a780-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f4975ee-bf17-11e4-b745-705681abff85"], ["organization_id", "9f4a6080-bf17-11e4-a780-705681abff85"], ["created_at", "2015-02-28 07:01:30.562581"], ["updated_at", "2015-02-28 07:01:30.562581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '9f4a6080-bf17-11e4-a780-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "9f4a6080-bf17-11e4-a780-705681abff85"], ["created_at", "2015-02-28 07:01:30.566437"], ["updated_at", "2015-02-28 07:01:30.566437"], ["token", "jFdwnO6M53pHXA7bgLT1HV0hGEqohcDS6eHpfg9imaY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 23:01:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 07:01:30.572618' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4MiLBtWNJ0CVCWBFZ-TorwVQmM2qQYpZEt-qNpPfh5A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 07:01:30.574046"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 07:01:30.575250"], ["id", "9f49e0ba-bf17-11e4-b975-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9f48c52c-bf17-11e4-82ee-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9f48c52c-bf17-11e4-82ee-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9f4a6080-bf17-11e4-a780-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '9f4a6080-bf17-11e4-a780-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$705SiVtMfT5Gqm5a36WA9.NsQ8SFNJbpYRyvRegKUzXIBQrYH/ECm"], ["created_at", "2015-02-28 07:01:30.598673"], ["updated_at", "2015-02-28 07:01:30.598673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$6RUbgxJT/bZxouIZ3lbP8.Wo2kLVj8tTfh34rnbMcaL3a3isGX8Vq"], ["created_at", "2015-02-28 07:01:30.602900"], ["updated_at", "2015-02-28 07:01:30.602900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 07:01:30.604307"], ["user_id", "9f50f8aa-bf17-11e4-bada-705681abff85"], ["created_at", "2015-02-28 07:01:30.605085"], ["updated_at", "2015-02-28 07:01:30.605085"], ["token", "S2mTy535JYu2FT8LYeJ6MqDXSZo90_Mu3dcbG-DjPkk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 07:01:30.608555"], ["updated_at", "2015-02-28 07:01:30.608555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f50f8aa-bf17-11e4-bada-705681abff85' AND "clubhouse_memberships"."organization_id" = '9f527536-bf17-11e4-812e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9f50f8aa-bf17-11e4-bada-705681abff85"], ["organization_id", "9f527536-bf17-11e4-812e-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 07:01:30.612192"], ["updated_at", "2015-02-28 07:01:30.612192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f519648-bf17-11e4-b0cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '9f527536-bf17-11e4-812e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f519648-bf17-11e4-b0cf-705681abff85"], ["organization_id", "9f527536-bf17-11e4-812e-705681abff85"], ["created_at", "2015-02-28 07:01:30.615315"], ["updated_at", "2015-02-28 07:01:30.615315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '9f527536-bf17-11e4-812e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "9f527536-bf17-11e4-812e-705681abff85"], ["created_at", "2015-02-28 07:01:30.618915"], ["updated_at", "2015-02-28 07:01:30.618915"], ["token", "LbWBQnndaHeXMKq2PZqhFubI7xy6SiApFo0s-xWmoY8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$WcsYoVyd54OLWJU9gDZH2.uts8yKt81n7mX0eAHKRdJXBA7kBhTV6"], ["created_at", "2015-02-28 07:01:44.570382"], ["updated_at", "2015-02-28 07:01:44.570382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ePazcqYGkx/ldC49fIbY/eaDYgVvCTyMZsjsDEoh3.MeQViMrUaoK"], ["created_at", "2015-02-28 07:01:44.576333"], ["updated_at", "2015-02-28 07:01:44.576333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 07:01:44.587794"], ["user_id", "a7a5105e-bf17-11e4-a692-705681abff85"], ["created_at", "2015-02-28 07:01:44.593443"], ["updated_at", "2015-02-28 07:01:44.593443"], ["token", "CQS6oRYAtG98uFxrNZzLYVlRACABsJqZK4ZxfYQPwmk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 07:01:44.602291"], ["updated_at", "2015-02-28 07:01:44.602291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7a5105e-bf17-11e4-a692-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7a9c7fc-bf17-11e4-b61a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7a5105e-bf17-11e4-a692-705681abff85"], ["organization_id", "a7a9c7fc-bf17-11e4-b61a-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 07:01:44.613013"], ["updated_at", "2015-02-28 07:01:44.613013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7a5c774-bf17-11e4-bd28-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7a9c7fc-bf17-11e4-b61a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a7a5c774-bf17-11e4-bd28-705681abff85"], ["organization_id", "a7a9c7fc-bf17-11e4-b61a-705681abff85"], ["created_at", "2015-02-28 07:01:44.648747"], ["updated_at", "2015-02-28 07:01:44.648747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a7a9c7fc-bf17-11e4-b61a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a7a9c7fc-bf17-11e4-b61a-705681abff85"], ["created_at", "2015-02-28 07:01:44.659165"], ["updated_at", "2015-02-28 07:01:44.659165"], ["token", "VV4wdef-q2zlj7njAsZCHvWDWpZvjl9fxA6DSrhzYMI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$1vEk9lLWI8tbgVzGvZ.O2OUIT9XL18Zr3Cov1Z7S89suXOQ2vQfO2"], ["created_at", "2015-02-28 07:01:44.671042"], ["updated_at", "2015-02-28 07:01:44.671042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$35ZRuX8QVpEnqNyk1g3pFus1Qat3NU2qk9zHxR5Cjyd9tkPKKaJMG"], ["created_at", "2015-02-28 07:01:44.675585"], ["updated_at", "2015-02-28 07:01:44.675585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 07:01:44.677301"], ["user_id", "a7b4448e-bf17-11e4-8793-705681abff85"], ["created_at", "2015-02-28 07:01:44.678088"], ["updated_at", "2015-02-28 07:01:44.678088"], ["token", "7F88RHYZzOpR6H85wAUPBwN0_Z5HwWmPJNkh1ogU55A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 07:01:44.681302"], ["updated_at", "2015-02-28 07:01:44.681302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7b4448e-bf17-11e4-8793-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7b5c9e4-bf17-11e4-b103-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7b4448e-bf17-11e4-8793-705681abff85"], ["organization_id", "a7b5c9e4-bf17-11e4-b103-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 07:01:44.684585"], ["updated_at", "2015-02-28 07:01:44.684585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7b4ef9c-bf17-11e4-b7ee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7b5c9e4-bf17-11e4-b103-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a7b4ef9c-bf17-11e4-b7ee-705681abff85"], ["organization_id", "a7b5c9e4-bf17-11e4-b103-705681abff85"], ["created_at", "2015-02-28 07:01:44.688031"], ["updated_at", "2015-02-28 07:01:44.688031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a7b5c9e4-bf17-11e4-b103-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a7b5c9e4-bf17-11e4-b103-705681abff85"], ["created_at", "2015-02-28 07:01:44.691727"], ["updated_at", "2015-02-28 07:01:44.691727"], ["token", "Rbpcflns3Vc0gHVpW-g_wKSa4ICHK3M3bh_x6ivL3wY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 23:01:44 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 07:01:44.715531' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7F88RHYZzOpR6H85wAUPBwN0_Z5HwWmPJNkh1ogU55A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 07:01:44.723048"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 07:01:44.724376"], ["id", "a7b55554-bf17-11e4-ad02-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7b4448e-bf17-11e4-8793-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7b4448e-bf17-11e4-8793-705681abff85"], ["name", "org-2"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a7b5c9e4-bf17-11e4-b103-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'a7b5c9e4-bf17-11e4-b103-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 47ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$GyM4VdTRhrOgl6dzjbZZ4uTrKeeSDSMG2coH7UoJbX7MPOysIfIZ6"], ["created_at", "2015-02-28 07:01:44.768185"], ["updated_at", "2015-02-28 07:01:44.768185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$.WWyM5WrJwiXH9qHsC/mPeQunTOLz7ITvLNtwDrWHcfBZT9YPSZyu"], ["created_at", "2015-02-28 07:01:44.772612"], ["updated_at", "2015-02-28 07:01:44.772612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 07:01:44.774352"], ["user_id", "a7c3137e-bf17-11e4-a19b-705681abff85"], ["created_at", "2015-02-28 07:01:44.775135"], ["updated_at", "2015-02-28 07:01:44.775135"], ["token", "Nk632YZWdUhGRYcaYt8zkXmBQO0x7CB_3Nsz0QdwEiQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 07:01:44.778512"], ["updated_at", "2015-02-28 07:01:44.778512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7c3137e-bf17-11e4-a19b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7c49fb4-bf17-11e4-a8d3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7c3137e-bf17-11e4-a19b-705681abff85"], ["organization_id", "a7c49fb4-bf17-11e4-a8d3-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 07:01:44.781910"], ["updated_at", "2015-02-28 07:01:44.781910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7c3bbda-bf17-11e4-be45-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7c49fb4-bf17-11e4-a8d3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a7c3bbda-bf17-11e4-be45-705681abff85"], ["organization_id", "a7c49fb4-bf17-11e4-a8d3-705681abff85"], ["created_at", "2015-02-28 07:01:44.785086"], ["updated_at", "2015-02-28 07:01:44.785086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a7c49fb4-bf17-11e4-a8d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a7c49fb4-bf17-11e4-a8d3-705681abff85"], ["created_at", "2015-02-28 07:01:44.788476"], ["updated_at", "2015-02-28 07:01:44.788476"], ["token", "Lldo62y-pcx4HXxR6yhDua5UX5WQOlKNiSE6tmG1kSg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 23:01:44 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 07:01:44.792915' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Nk632YZWdUhGRYcaYt8zkXmBQO0x7CB_3Nsz0QdwEiQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 07:01:44.794800"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 07:01:44.796606"], ["id", "a7c425ac-bf17-11e4-ba80-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7c3137e-bf17-11e4-a19b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7c3137e-bf17-11e4-a19b-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a7c49fb4-bf17-11e4-a8d3-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a7c49fb4-bf17-11e4-a8d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a7c49fb4-bf17-11e4-a8d3-705681abff85"], ["created_at", "2015-02-28 07:01:44.805091"], ["updated_at", "2015-02-28 07:01:44.805091"], ["token", "o4tFea9sjCJhZ-IB3Dm6UWGYPu7l24aNZONgVMplDoE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 3.1ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$zhsKGBtGnNd7UZLsr/VECOrEdRWJeJAzy7NGIWgSeYKeK4uMJPYJG"], ["created_at", "2015-02-28 07:01:44.816162"], ["updated_at", "2015-02-28 07:01:44.816162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$38bzembArCb3NcinYVNfOOjd2Qyyil9aiydLReNDCyXSOdp7RMCGy"], ["created_at", "2015-02-28 07:01:44.820466"], ["updated_at", "2015-02-28 07:01:44.820466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 07:01:44.821938"], ["user_id", "a7ca6228-bf17-11e4-9f2d-705681abff85"], ["created_at", "2015-02-28 07:01:44.822697"], ["updated_at", "2015-02-28 07:01:44.822697"], ["token", "xJh-ruLfO15_e3kQyX6wqeIbVqtYkmYtZ21eFP1Huas"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 07:01:44.826060"], ["updated_at", "2015-02-28 07:01:44.826060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7ca6228-bf17-11e4-9f2d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7cbe224-bf17-11e4-adbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7ca6228-bf17-11e4-9f2d-705681abff85"], ["organization_id", "a7cbe224-bf17-11e4-adbe-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 07:01:44.829380"], ["updated_at", "2015-02-28 07:01:44.829380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7cb04f8-bf17-11e4-a1e1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7cbe224-bf17-11e4-adbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a7cb04f8-bf17-11e4-a1e1-705681abff85"], ["organization_id", "a7cbe224-bf17-11e4-adbe-705681abff85"], ["created_at", "2015-02-28 07:01:44.832672"], ["updated_at", "2015-02-28 07:01:44.832672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a7cbe224-bf17-11e4-adbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a7cbe224-bf17-11e4-adbe-705681abff85"], ["created_at", "2015-02-28 07:01:44.836079"], ["updated_at", "2015-02-28 07:01:44.836079"], ["token", "d76o7MkuwpPKJy-C_-t8EGqSLfJYR02TsX0jxQsztbo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-27 23:01:44 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 07:01:44.840908' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xJh-ruLfO15_e3kQyX6wqeIbVqtYkmYtZ21eFP1Huas"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 07:01:44.842291"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 07:01:44.843226"], ["id", "a7cb6574-bf17-11e4-98c4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7ca6228-bf17-11e4-9f2d-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7ca6228-bf17-11e4-9f2d-705681abff85"], ["name", "org-4"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a7cbe224-bf17-11e4-adbe-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a7cbe224-bf17-11e4-adbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a7cbe224-bf17-11e4-adbe-705681abff85"], ["created_at", "2015-02-28 07:01:44.851619"], ["updated_at", "2015-02-28 07:01:44.851619"], ["token", "b_0WA529MoYijfyeWCmVNo3Gorx28t5etarIM0iqMic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (23.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (34.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$opjPvMmgynmMc.tGc/CEueEvwoS9hSfgv8zaHPXQL/rHsx9F41Epe"], ["created_at", "2015-02-28 16:47:19.743713"], ["updated_at", "2015-02-28 16:47:19.743713"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$vLZDzPjBMUdN6V7j4TFNEe683a0ol8OFRU8IVntC6ePesRHDxkUMe"], ["created_at", "2015-02-28 16:47:19.785337"], ["updated_at", "2015-02-28 16:47:19.785337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (16.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 16:47:19.793812"], ["user_id", "75db6e18-bf69-11e4-a507-705681abff85"], ["created_at", "2015-02-28 16:47:19.801363"], ["updated_at", "2015-02-28 16:47:19.801363"], ["token", "TmQ9rLCLnBGt8p9_1P0Vs-dUd5w1MznljJ-DwZp6ctY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 16:47:19.829396"], ["updated_at", "2015-02-28 16:47:19.829396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75db6e18-bf69-11e4-a507-705681abff85' AND "clubhouse_memberships"."organization_id" = '75e3fff6-bf69-11e4-ac0d-705681abff85') LIMIT 1 SQL (3.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75db6e18-bf69-11e4-a507-705681abff85"], ["organization_id", "75e3fff6-bf69-11e4-ac0d-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 16:47:19.872041"], ["updated_at", "2015-02-28 16:47:19.872041"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75dd35fe-bf69-11e4-839c-705681abff85' AND "clubhouse_memberships"."organization_id" = '75e3fff6-bf69-11e4-ac0d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "75dd35fe-bf69-11e4-839c-705681abff85"], ["organization_id", "75e3fff6-bf69-11e4-ac0d-705681abff85"], ["created_at", "2015-02-28 16:47:19.881059"], ["updated_at", "2015-02-28 16:47:19.881059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '75e3fff6-bf69-11e4-ac0d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "75e3fff6-bf69-11e4-ac0d-705681abff85"], ["created_at", "2015-02-28 16:47:19.892905"], ["updated_at", "2015-02-28 16:47:19.892905"], ["token", "ZjJ1t4-BiMSfMTrZ8a4MYDZm23l35FsSZjyNcNqzVOM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$MlPkuDJfPeI8BzhzYNXpNu0JPFMIDuaa60GaZcHequdqrFlpMr8Da"], ["created_at", "2015-02-28 16:47:19.905574"], ["updated_at", "2015-02-28 16:47:19.905574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$YnuDZefUtVBkvg46MRnaKOR.9YpXCxHOJASSZHlQmIZR6.wQCl4zG"], ["created_at", "2015-02-28 16:47:19.910082"], ["updated_at", "2015-02-28 16:47:19.910082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 16:47:19.911579"], ["user_id", "75ef980c-bf69-11e4-9e8f-705681abff85"], ["created_at", "2015-02-28 16:47:19.912448"], ["updated_at", "2015-02-28 16:47:19.912448"], ["token", "sAQbLx-mmF8qtX7bhTc5GHiS0Jk2CjERn8w-Mm7KfXI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 16:47:19.915962"], ["updated_at", "2015-02-28 16:47:19.915962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75ef980c-bf69-11e4-9e8f-705681abff85' AND "clubhouse_memberships"."organization_id" = '75f1256e-bf69-11e4-9f98-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75ef980c-bf69-11e4-9e8f-705681abff85"], ["organization_id", "75f1256e-bf69-11e4-9f98-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 16:47:19.919326"], ["updated_at", "2015-02-28 16:47:19.919326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75f03c58-bf69-11e4-8861-705681abff85' AND "clubhouse_memberships"."organization_id" = '75f1256e-bf69-11e4-9f98-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "75f03c58-bf69-11e4-8861-705681abff85"], ["organization_id", "75f1256e-bf69-11e4-9f98-705681abff85"], ["created_at", "2015-02-28 16:47:19.922359"], ["updated_at", "2015-02-28 16:47:19.922359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '75f1256e-bf69-11e4-9f98-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "75f1256e-bf69-11e4-9f98-705681abff85"], ["created_at", "2015-02-28 16:47:19.925798"], ["updated_at", "2015-02-28 16:47:19.925798"], ["token", "nUZCDqppZVOkLvXsQ5Q7dj0oO3enffpkA1pDIl4sb7A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 08:47:19 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (1.1ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 16:47:19.947748' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sAQbLx-mmF8qtX7bhTc5GHiS0Jk2CjERn8w-Mm7KfXI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 16:47:19.958345"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 16:47:19.959509"], ["id", "75f0a472-bf69-11e4-84c3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "75ef980c-bf69-11e4-9e8f-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "75ef980c-bf69-11e4-9e8f-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "75f1256e-bf69-11e4-9f98-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '75f1256e-bf69-11e4-9f98-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 58ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$bfGHiYFE.3Jd929qF9A78eZJUP8xk7IUzLZbbNtL0iqUoHPPIcMDG"], ["created_at", "2015-02-28 16:47:20.010395"], ["updated_at", "2015-02-28 16:47:20.010395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$KhIm4dAOUfoYk9um.c6G/OLnirIQPPNmqD1I83D2zdxIQcFB99x8O"], ["created_at", "2015-02-28 16:47:20.014771"], ["updated_at", "2015-02-28 16:47:20.014771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 16:47:20.016427"], ["user_id", "75ff8e74-bf69-11e4-a26a-705681abff85"], ["created_at", "2015-02-28 16:47:20.017225"], ["updated_at", "2015-02-28 16:47:20.017225"], ["token", "evAZTL-DVjTwZE_RYkwyoUH_F6ZmMKDsqMwCUmentxQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 16:47:20.020960"], ["updated_at", "2015-02-28 16:47:20.020960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75ff8e74-bf69-11e4-a26a-705681abff85' AND "clubhouse_memberships"."organization_id" = '76013cb0-bf69-11e4-b646-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75ff8e74-bf69-11e4-a26a-705681abff85"], ["organization_id", "76013cb0-bf69-11e4-b646-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 16:47:20.025990"], ["updated_at", "2015-02-28 16:47:20.025990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76003964-bf69-11e4-b642-705681abff85' AND "clubhouse_memberships"."organization_id" = '76013cb0-bf69-11e4-b646-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76003964-bf69-11e4-b642-705681abff85"], ["organization_id", "76013cb0-bf69-11e4-b646-705681abff85"], ["created_at", "2015-02-28 16:47:20.029506"], ["updated_at", "2015-02-28 16:47:20.029506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '76013cb0-bf69-11e4-b646-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "76013cb0-bf69-11e4-b646-705681abff85"], ["created_at", "2015-02-28 16:47:20.033027"], ["updated_at", "2015-02-28 16:47:20.033027"], ["token", "O2MdNdKl4cfVbEbbGnSLrHYOOPkFC5qa9qHFava-doo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 08:47:20 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 16:47:20.038631' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "evAZTL-DVjTwZE_RYkwyoUH_F6ZmMKDsqMwCUmentxQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 16:47:20.041082"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 16:47:20.042667"], ["id", "76009fc6-bf69-11e4-90f5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "75ff8e74-bf69-11e4-a26a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "75ff8e74-bf69-11e4-a26a-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "76013cb0-bf69-11e4-b646-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '76013cb0-bf69-11e4-b646-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "76013cb0-bf69-11e4-b646-705681abff85"], ["created_at", "2015-02-28 16:47:20.051360"], ["updated_at", "2015-02-28 16:47:20.051360"], ["token", "hy8jXLHME87u-kEXiOKhcNbNHJ7kgR-7b8CjFImUUXw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 3.2ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$AueJ/bPNRD6cf3sJji86zewWH9lPHqxSZJTSMTb445HE62XFFnsfO"], ["created_at", "2015-02-28 16:47:20.063035"], ["updated_at", "2015-02-28 16:47:20.063035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$WBOxC9.Rbd374SnoPMfTYOKsgV0cv8w7bv7rk5a2tBSF0k.Ov3TW6"], ["created_at", "2015-02-28 16:47:20.067805"], ["updated_at", "2015-02-28 16:47:20.067805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 16:47:20.069383"], ["user_id", "76079d1c-bf69-11e4-adc7-705681abff85"], ["created_at", "2015-02-28 16:47:20.070226"], ["updated_at", "2015-02-28 16:47:20.070226"], ["token", "fZDPDzwdee0INox_UQ6mfCoL7oBQACRsiBBpHXY7X74"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 16:47:20.073639"], ["updated_at", "2015-02-28 16:47:20.073639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76079d1c-bf69-11e4-adc7-705681abff85' AND "clubhouse_memberships"."organization_id" = '760931a4-bf69-11e4-a47a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76079d1c-bf69-11e4-adc7-705681abff85"], ["organization_id", "760931a4-bf69-11e4-a47a-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 16:47:20.076978"], ["updated_at", "2015-02-28 16:47:20.076978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76084ec4-bf69-11e4-96b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '760931a4-bf69-11e4-a47a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76084ec4-bf69-11e4-96b6-705681abff85"], ["organization_id", "760931a4-bf69-11e4-a47a-705681abff85"], ["created_at", "2015-02-28 16:47:20.080315"], ["updated_at", "2015-02-28 16:47:20.080315"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '760931a4-bf69-11e4-a47a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "760931a4-bf69-11e4-a47a-705681abff85"], ["created_at", "2015-02-28 16:47:20.083912"], ["updated_at", "2015-02-28 16:47:20.083912"], ["token", "ZDItD4_KAunHir5mvpOAvlCMwrjX9ViFRMCO_qlbMAc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 08:47:20 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 16:47:20.089325' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fZDPDzwdee0INox_UQ6mfCoL7oBQACRsiBBpHXY7X74"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 16:47:20.091284"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 16:47:20.093292"], ["id", "7608b67a-bf69-11e4-a1e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "76079d1c-bf69-11e4-adc7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "76079d1c-bf69-11e4-adc7-705681abff85"], ["name", "org-4"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "760931a4-bf69-11e4-a47a-705681abff85"]] Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '760931a4-bf69-11e4-a47a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "760931a4-bf69-11e4-a47a-705681abff85"], ["created_at", "2015-02-28 16:47:20.102255"], ["updated_at", "2015-02-28 16:47:20.102255"], ["token", "9-lme7ppUn_FcJ6rVS3RTgVkojDHYeNmFvXbKBG2qOw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.9ms | ActiveRecord: 3.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$6JJSTWhA38GFmPLdXFggseoy0C3hGjvXMEDZa9tsSnHBC8DXOGNPm"], ["created_at", "2015-02-28 16:48:32.592781"], ["updated_at", "2015-02-28 16:48:32.592781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$PlirEYRytKFbIjSqD/3gluM2d54KYYSxeBW3gLyO4V6pjA6tx6uUC"], ["created_at", "2015-02-28 16:48:32.607589"], ["updated_at", "2015-02-28 16:48:32.607589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 16:48:32.615568"], ["user_id", "a142e8ba-bf69-11e4-9bfd-705681abff85"], ["created_at", "2015-02-28 16:48:32.621520"], ["updated_at", "2015-02-28 16:48:32.621520"], ["token", "3Hj0tQPIw4QkTHQiWwCm5uab4qwi9a5xA3_qE3K8OwU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 16:48:32.635964"], ["updated_at", "2015-02-28 16:48:32.635964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a142e8ba-bf69-11e4-9bfd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1496c1c-bf69-11e4-82a2-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a142e8ba-bf69-11e4-9bfd-705681abff85"], ["organization_id", "a1496c1c-bf69-11e4-82a2-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 16:48:32.692742"], ["updated_at", "2015-02-28 16:48:32.692742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a145015e-bf69-11e4-a4ab-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1496c1c-bf69-11e4-82a2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a145015e-bf69-11e4-a4ab-705681abff85"], ["organization_id", "a1496c1c-bf69-11e4-82a2-705681abff85"], ["created_at", "2015-02-28 16:48:32.696956"], ["updated_at", "2015-02-28 16:48:32.696956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a1496c1c-bf69-11e4-82a2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a1496c1c-bf69-11e4-82a2-705681abff85"], ["created_at", "2015-02-28 16:48:32.706569"], ["updated_at", "2015-02-28 16:48:32.706569"], ["token", "prtnQFsKyEAq1w_m32FXog_iMytuwoLiHaUvCaP2UuU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$YJ8u4VzUqGQ4.QNijj6pUeaHDA8sNs9nLv4t3PCP33nUMIIwtk/Pq"], ["created_at", "2015-02-28 16:48:32.719064"], ["updated_at", "2015-02-28 16:48:32.719064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$bvQlwiJ3uWdJWrkDRFPvZOj/1vpHPXUGANNu2p9KnfRCKDZz5HWbm"], ["created_at", "2015-02-28 16:48:32.723729"], ["updated_at", "2015-02-28 16:48:32.723729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 16:48:32.725284"], ["user_id", "a156071a-bf69-11e4-879f-705681abff85"], ["created_at", "2015-02-28 16:48:32.726025"], ["updated_at", "2015-02-28 16:48:32.726025"], ["token", "EPyYSx-CC8bhOVUNRtgh13PIefM5s8oZfa3eOdMC234"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 16:48:32.729470"], ["updated_at", "2015-02-28 16:48:32.729470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a156071a-bf69-11e4-879f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a157962a-bf69-11e4-a8cf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a156071a-bf69-11e4-879f-705681abff85"], ["organization_id", "a157962a-bf69-11e4-a8cf-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 16:48:32.732596"], ["updated_at", "2015-02-28 16:48:32.732596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a156b840-bf69-11e4-b7f1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a157962a-bf69-11e4-a8cf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a156b840-bf69-11e4-b7f1-705681abff85"], ["organization_id", "a157962a-bf69-11e4-a8cf-705681abff85"], ["created_at", "2015-02-28 16:48:32.735750"], ["updated_at", "2015-02-28 16:48:32.735750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a157962a-bf69-11e4-a8cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a157962a-bf69-11e4-a8cf-705681abff85"], ["created_at", "2015-02-28 16:48:32.739173"], ["updated_at", "2015-02-28 16:48:32.739173"], ["token", "z0lVIWWCq0_2tHSwnNhCNlZgAlL5ST2x91C0k6fJuXA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 08:48:32 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 16:48:32.761661' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EPyYSx-CC8bhOVUNRtgh13PIefM5s8oZfa3eOdMC234"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 16:48:32.768846"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 16:48:32.770099"], ["id", "a157193e-bf69-11e4-8785-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a156071a-bf69-11e4-879f-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a156071a-bf69-11e4-879f-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a157962a-bf69-11e4-a8cf-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'a157962a-bf69-11e4-a8cf-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 48ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$8Od75LT5eYR6wDzLi4J9TOkHrX3LS6IZLkNYhCNmzi9Axm7.mz64i"], ["created_at", "2015-02-28 16:48:32.815212"], ["updated_at", "2015-02-28 16:48:32.815212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$HfrI8PSVEEilpf8fzOWCgOvctS8xSOtrS4PFrf.jzKiQnspgcApGC"], ["created_at", "2015-02-28 16:48:32.819878"], ["updated_at", "2015-02-28 16:48:32.819878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 16:48:32.821481"], ["user_id", "a164b2c4-bf69-11e4-896a-705681abff85"], ["created_at", "2015-02-28 16:48:32.822250"], ["updated_at", "2015-02-28 16:48:32.822250"], ["token", "o5RLqUXjhGRIbdRmwrhIIBC6_2sN8Iwg4VSLt4bJ-5o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 16:48:32.825555"], ["updated_at", "2015-02-28 16:48:32.825555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a164b2c4-bf69-11e4-896a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1664152-bf69-11e4-8cca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a164b2c4-bf69-11e4-896a-705681abff85"], ["organization_id", "a1664152-bf69-11e4-8cca-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 16:48:32.828788"], ["updated_at", "2015-02-28 16:48:32.828788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a165650c-bf69-11e4-bc6e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1664152-bf69-11e4-8cca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a165650c-bf69-11e4-bc6e-705681abff85"], ["organization_id", "a1664152-bf69-11e4-8cca-705681abff85"], ["created_at", "2015-02-28 16:48:32.831864"], ["updated_at", "2015-02-28 16:48:32.831864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a1664152-bf69-11e4-8cca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a1664152-bf69-11e4-8cca-705681abff85"], ["created_at", "2015-02-28 16:48:32.835175"], ["updated_at", "2015-02-28 16:48:32.835175"], ["token", "WS-YNzzsi6lA7Usa0suvgR7hQ9zeV-2CR4hJy3B63dg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 08:48:32 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 16:48:32.840001' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o5RLqUXjhGRIbdRmwrhIIBC6_2sN8Iwg4VSLt4bJ-5o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 16:48:32.841435"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 16:48:32.842370"], ["id", "a165c70e-bf69-11e4-8873-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a164b2c4-bf69-11e4-896a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a164b2c4-bf69-11e4-896a-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a1664152-bf69-11e4-8cca-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a1664152-bf69-11e4-8cca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a1664152-bf69-11e4-8cca-705681abff85"], ["created_at", "2015-02-28 16:48:32.849767"], ["updated_at", "2015-02-28 16:48:32.849767"], ["token", "phUNkJPN8Nkh0DuEoW670Yej9dMu2XsYt5qiniE8cRI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 3.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$9QZocW/tX5fOi8mx4b0BSeK3pR5h/gwsYjZuOT.d06USUXwX8FN3i"], ["created_at", "2015-02-28 16:48:32.861970"], ["updated_at", "2015-02-28 16:48:32.861970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$kbr0h85.sPd1sv8LrIuC1eSksP5QifQhpC.NhGlnkpleRzpIwhoOC"], ["created_at", "2015-02-28 16:48:32.866265"], ["updated_at", "2015-02-28 16:48:32.866265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 16:48:32.867790"], ["user_id", "a16bd374-bf69-11e4-8c4e-705681abff85"], ["created_at", "2015-02-28 16:48:32.868622"], ["updated_at", "2015-02-28 16:48:32.868622"], ["token", "4F34hUumgMA4SAQrAFxa1jq9PUVcWT5eYrY0E2UpLzw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 16:48:32.872030"], ["updated_at", "2015-02-28 16:48:32.872030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a16bd374-bf69-11e4-8c4e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a16d5898-bf69-11e4-a4e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a16bd374-bf69-11e4-8c4e-705681abff85"], ["organization_id", "a16d5898-bf69-11e4-a4e9-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 16:48:32.875387"], ["updated_at", "2015-02-28 16:48:32.875387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a16c772a-bf69-11e4-a672-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a16d5898-bf69-11e4-a4e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a16c772a-bf69-11e4-a672-705681abff85"], ["organization_id", "a16d5898-bf69-11e4-a4e9-705681abff85"], ["created_at", "2015-02-28 16:48:32.878557"], ["updated_at", "2015-02-28 16:48:32.878557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a16d5898-bf69-11e4-a4e9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a16d5898-bf69-11e4-a4e9-705681abff85"], ["created_at", "2015-02-28 16:48:32.882048"], ["updated_at", "2015-02-28 16:48:32.882048"], ["token", "1jbszssK_Equmu6jsOKJFaDCK0waw8vhSi-zW3_gigc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 08:48:32 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 16:48:32.887319' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4F34hUumgMA4SAQrAFxa1jq9PUVcWT5eYrY0E2UpLzw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 16:48:32.888712"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 16:48:32.889642"], ["id", "a16cdefe-bf69-11e4-b84a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a16bd374-bf69-11e4-8c4e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a16bd374-bf69-11e4-8c4e-705681abff85"], ["name", "org-4"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a16d5898-bf69-11e4-a4e9-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a16d5898-bf69-11e4-a4e9-705681abff85') LIMIT 1 SQL (4.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a16d5898-bf69-11e4-a4e9-705681abff85"], ["created_at", "2015-02-28 16:48:32.897381"], ["updated_at", "2015-02-28 16:48:32.897381"], ["token", "07GfImmctyOc5yZ84Svvqohy-RTbKIye4UmuYvFTENA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 1.2ms | ActiveRecord: 6.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (6.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:11:02.050657"], ["updated_at", "2015-02-28 17:11:02.050657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (6.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'c599ddce-bf6c-11e4-a1ce-705681abff85') LIMIT 1 SQL (12.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "c599ddce-bf6c-11e4-a1ce-705681abff85"], ["created_at", "2015-02-28 17:11:02.073505"], ["updated_at", "2015-02-28 17:11:02.073505"], ["token", "e5cevAiyyPHqeb2388m_slGNCjQFAn5VS4QTO_mNt-g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:11:02.096142"], ["updated_at", "2015-02-28 17:11:02.096142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'c5a0a186-bf6c-11e4-a9d8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "c5a0a186-bf6c-11e4-a9d8-705681abff85"], ["created_at", "2015-02-28 17:11:02.100380"], ["updated_at", "2015-02-28 17:11:02.100380"], ["token", "dAykxdoj6q3Q4L4BspeSka3zx7ztW6g94uAlsEtF7Nk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Mailer#invitation: processed outbound mail in 0.5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:11:02.106226"], ["updated_at", "2015-02-28 17:11:02.106226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'c5a22614-bf6c-11e4-aec2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "c5a22614-bf6c-11e4-aec2-705681abff85"], ["created_at", "2015-02-28 17:11:02.109972"], ["updated_at", "2015-02-28 17:11:02.109972"], ["token", "Mx7UZyq8w_kz7jQOdOrdrYk8VvbakCZ5JBDcLQj4kwQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Mailer#invitation: processed outbound mail in 0.5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:11:02.115880"], ["updated_at", "2015-02-28 17:11:02.115880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'c5a3a05c-bf6c-11e4-a670-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "c5a3a05c-bf6c-11e4-a670-705681abff85"], ["created_at", "2015-02-28 17:11:02.120495"], ["updated_at", "2015-02-28 17:11:02.120495"], ["token", "3HyNlnC0shAKGIqrLnOUt7scKnuzUUaFIqhGG2vblKM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Mailer#invitation: processed outbound mail in 0.6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:11:27.535959"], ["updated_at", "2015-02-28 17:11:27.535959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd4ca9810-bf6c-11e4-bc74-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d4ca9810-bf6c-11e4-bc74-705681abff85"], ["created_at", "2015-02-28 17:11:27.551415"], ["updated_at", "2015-02-28 17:11:27.551415"], ["token", "qOcOeYjI13-yuDJSFSfISfwdxk0jHZgA5DeqnuF0RUs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Mailer#invitation: processed outbound mail in 10.4ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:11:27.574026"], ["updated_at", "2015-02-28 17:11:27.574026"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd4d05804-bf6c-11e4-9c57-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d4d05804-bf6c-11e4-9c57-705681abff85"], ["created_at", "2015-02-28 17:11:27.580221"], ["updated_at", "2015-02-28 17:11:27.580221"], ["token", "Zgq9Now20Hsq-XIdZ6EXpW0esJf7QpF7r7FBNRuvgck"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Mailer#invitation: processed outbound mail in 0.3ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:11:27.586328"], ["updated_at", "2015-02-28 17:11:27.586328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd4d22378-bf6c-11e4-8b51-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d4d22378-bf6c-11e4-8b51-705681abff85"], ["created_at", "2015-02-28 17:11:27.589911"], ["updated_at", "2015-02-28 17:11:27.589911"], ["token", "5AFj6l5Bt983NWsBn9D37fFI5hrklEhzvGOv_c3hgmU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Mailer#invitation: processed outbound mail in 0.3ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:11:27.596435"], ["updated_at", "2015-02-28 17:11:27.596435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd4d3a72a-bf6c-11e4-a434-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d4d3a72a-bf6c-11e4-a434-705681abff85"], ["created_at", "2015-02-28 17:11:27.599759"], ["updated_at", "2015-02-28 17:11:27.599759"], ["token", "FVsPNqpX8juddWuVoKrLkQ5UHfri9O6B1sTcRX2Bucc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Mailer#invitation: processed outbound mail in 0.3ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:12:54.030610"], ["updated_at", "2015-02-28 17:12:54.030610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0858d2aa-bf6d-11e4-b4bb-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0858d2aa-bf6d-11e4-b4bb-705681abff85"], ["created_at", "2015-02-28 17:12:54.050342"], ["updated_at", "2015-02-28 17:12:54.050342"], ["token", "tScqyXUUwvmsMfdPto2DweM-E9r2tRcawNWsdEy499Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (25.3ms) Clubhouse::Mailer#invitation: processed outbound mail in 76.9ms Sent mail to john@example.com (13.9ms) Date: Sat, 28 Feb 2015 09:12:54 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f71622ace_126e33fc0cdc49bf4645fc@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:12:54.157582"], ["updated_at", "2015-02-28 17:12:54.157582"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '086bfc04-bf6d-11e4-9202-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "086bfc04-bf6d-11e4-9202-705681abff85"], ["created_at", "2015-02-28 17:12:54.226983"], ["updated_at", "2015-02-28 17:12:54.226983"], ["token", "_A8kM4CTzUKlHXXJMtzBwH-dP_T1dawt630iqmLHxX0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.8ms Sent mail to john@example.com (3.1ms) Date: Sat, 28 Feb 2015 09:12:54 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f71638e0b_126e33fc0cdc49bf4646f9@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:12:54.243851"], ["updated_at", "2015-02-28 17:12:54.243851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '087902d2-bf6d-11e4-b1c3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "087902d2-bf6d-11e4-b1c3-705681abff85"], ["created_at", "2015-02-28 17:12:54.247534"], ["updated_at", "2015-02-28 17:12:54.247534"], ["token", "Y04xDF0nRpX0aRN8Jv0HqsUOaWl6ygi7W2SsgIKKE4k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (2.7ms) Date: Sat, 28 Feb 2015 09:12:54 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f7163db63_126e33fc0cdc49bf464791@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:12:54.259056"], ["updated_at", "2015-02-28 17:12:54.259056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '087b5096-bf6d-11e4-8dda-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "087b5096-bf6d-11e4-8dda-705681abff85"], ["created_at", "2015-02-28 17:12:54.263374"], ["updated_at", "2015-02-28 17:12:54.263374"], ["token", "WLAVoByNnw4bWn0WVZFFyxDN5KsHiw8tQInovNd8QVY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (2.8ms) Date: Sat, 28 Feb 2015 09:12:54 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f7164172a_126e33fc0cdc49bf464814@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (17.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:13:12.750654"], ["updated_at", "2015-02-28 17:13:12.750654"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1381e2a2-bf6d-11e4-8aa8-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1381e2a2-bf6d-11e4-8aa8-705681abff85"], ["created_at", "2015-02-28 17:13:12.815045"], ["updated_at", "2015-02-28 17:13:12.815045"], ["token", "sJ76EnBz-_irt-uIJujJ8FNOt-hGxG435rpdNyn66Xk"]]  (2.4ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (13.4ms) Clubhouse::Mailer#invitation: processed outbound mail in 50.5ms Sent mail to john@example.com (19.3ms) Date: Sat, 28 Feb 2015 09:13:12 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f728d9444_126ea3fc7dd82dbf83675c@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:13:12.910637"], ["updated_at", "2015-02-28 17:13:12.910637"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '139978fe-bf6d-11e4-b66e-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "139978fe-bf6d-11e4-b66e-705681abff85"], ["created_at", "2015-02-28 17:13:12.939539"], ["updated_at", "2015-02-28 17:13:12.939539"], ["token", "HYbAoHJIclaumAzUndHn-Z1LKrOA1iI2t2rnK9XCcR8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 3.4ms Sent mail to john@example.com (4.5ms) Date: Sat, 28 Feb 2015 09:13:12 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f728e7f6c_126ea3fc7dd82dbf836850@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:13:12.974468"], ["updated_at", "2015-02-28 17:13:12.974468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '13a3142c-bf6d-11e4-96cd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "13a3142c-bf6d-11e4-96cd-705681abff85"], ["created_at", "2015-02-28 17:13:12.977965"], ["updated_at", "2015-02-28 17:13:12.977965"], ["token", "xQiyBcUK2d4dxwCGlyX2iIAR1eTvEBPzaMC-aT56mdU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 09:13:12 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f728efc44_126ea3fc7dd82dbf836941@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:13:12.987505"], ["updated_at", "2015-02-28 17:13:12.987505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '13a50c50-bf6d-11e4-84be-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "13a50c50-bf6d-11e4-84be-705681abff85"], ["created_at", "2015-02-28 17:13:12.990905"], ["updated_at", "2015-02-28 17:13:12.990905"], ["token", "Usp-asWloKijoMusVHZ7YNqwzFyiARoINnUA6PJTgF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.0ms Sent mail to john@example.com (1.6ms) Date: Sat, 28 Feb 2015 09:13:12 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f728f2ba6_126ea3fc7dd82dbf83706f@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:13:24.994302"], ["updated_at", "2015-02-28 17:13:24.994302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1acd4d4e-bf6d-11e4-ab6c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1acd4d4e-bf6d-11e4-ab6c-705681abff85"], ["created_at", "2015-02-28 17:13:25.010695"], ["updated_at", "2015-02-28 17:13:25.010695"], ["token", "zNduhjyJzVk7SM9RpCKVYcKeaIBrgDlSka5bvxBVOrE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.5ms) Clubhouse::Mailer#invitation: processed outbound mail in 30.2ms Sent mail to john@example.com (9.3ms) Date: Sat, 28 Feb 2015 09:13:25 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f735c80d_126ed3fd114863bf0337ea@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:13:25.060182"], ["updated_at", "2015-02-28 17:13:25.060182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1ad73728-bf6d-11e4-ac4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1ad73728-bf6d-11e4-ac4e-705681abff85"], ["created_at", "2015-02-28 17:13:25.063796"], ["updated_at", "2015-02-28 17:13:25.063796"], ["token", "E0udjVSt1XWhJ4BbE2RShm-l1hODbJITiKvfADdCbLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.8ms) Date: Sat, 28 Feb 2015 09:13:25 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f735106bb_126ed3fd114863bf0338a4@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:13:25.074476"], ["updated_at", "2015-02-28 17:13:25.074476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1ad963d6-bf6d-11e4-ac56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1ad963d6-bf6d-11e4-ac56-705681abff85"], ["created_at", "2015-02-28 17:13:25.077963"], ["updated_at", "2015-02-28 17:13:25.077963"], ["token", "pi9xMSQsSmkoqGnlN2iRrk78_VDnyNg73LOhLi8fQ44"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 0.9ms Sent mail to john@example.com (1.5ms) Date: Sat, 28 Feb 2015 09:13:25 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f73513d2f_126ed3fd114863bf033958@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:13:25.086010"], ["updated_at", "2015-02-28 17:13:25.086010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1adb21a8-bf6d-11e4-aba2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1adb21a8-bf6d-11e4-aba2-705681abff85"], ["created_at", "2015-02-28 17:13:25.089302"], ["updated_at", "2015-02-28 17:13:25.089302"], ["token", "TTUlwB7SvNhrrCH6vasD9zr8OCxkg3LNhT3Ri_9G0gk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 09:13:25 -0800 From: from@example.com To: john@example.com Message-ID: <54f1f73516bc2_126ed3fd114863bf0340c4@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (7.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (11.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:27:46.904606"], ["updated_at", "2015-02-28 17:27:46.904606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1c8a6912-bf6f-11e4-85d3-705681abff85') LIMIT 1 SQL (6.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1c8a6912-bf6f-11e4-85d3-705681abff85"], ["created_at", "2015-02-28 17:27:46.935154"], ["updated_at", "2015-02-28 17:27:46.935154"], ["token", "Uu8QAU1r2mB1aXsJoCp-aOTMIkC0P01Pr-r3tnrYsvA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.3ms) Clubhouse::Mailer#invitation: processed outbound mail in 27.8ms Sent mail to john@example.com (10.8ms) Date: Sat, 28 Feb 2015 09:27:46 -0800 From: from@example.com To: john@example.com Message-ID: <54f1fa92ef256_1275e3ffb0c805bdc1357d@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, simply follow this link: If you don't wish to join the organization, just ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:27:46.992721"], ["updated_at", "2015-02-28 17:27:46.992721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1c97ac12-bf6f-11e4-9303-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1c97ac12-bf6f-11e4-9303-705681abff85"], ["created_at", "2015-02-28 17:27:46.996329"], ["updated_at", "2015-02-28 17:27:46.996329"], ["token", "871W1xfnsCgn7WjZBAq6z2APsgd0gM2P_OXNgSK808k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (4.3ms) Date: Sat, 28 Feb 2015 09:27:47 -0800 From: from@example.com To: john@example.com Message-ID: <54f1fa939d_1275e3ffb0c805bdc13661@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, simply follow this link: If you don't wish to join the organization, just ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:27:47.007620"], ["updated_at", "2015-02-28 17:27:47.007620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1c99ef72-bf6f-11e4-b001-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1c99ef72-bf6f-11e4-b001-705681abff85"], ["created_at", "2015-02-28 17:27:47.011223"], ["updated_at", "2015-02-28 17:27:47.011223"], ["token", "fwyRcEArNuIiynVS8aZcNHPuep9iq0zjtOIkYXP-cjk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.6ms) Date: Sat, 28 Feb 2015 09:27:47 -0800 From: from@example.com To: john@example.com Message-ID: <54f1fa933944_1275e3ffb0c805bdc137c3@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, simply follow this link: If you don't wish to join the organization, just ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:27:47.021244"], ["updated_at", "2015-02-28 17:27:47.021244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1c9c03f2-bf6f-11e4-b363-705681abff85') LIMIT 1 SQL (12.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1c9c03f2-bf6f-11e4-b363-705681abff85"], ["created_at", "2015-02-28 17:27:47.025075"], ["updated_at", "2015-02-28 17:27:47.025075"], ["token", "wDozMNqmAjrFXEdxN9m-i4GhrZGZKhQG2pzQ-lZqg8c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 09:27:47 -0800 From: from@example.com To: john@example.com Message-ID: <54f1fa939fe3_1275e3ffb0c805bdc13859@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, simply follow this link: If you don't wish to join the organization, just ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:28:11.260257"], ["updated_at", "2015-02-28 17:28:11.260257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '2b0ec7bc-bf6f-11e4-997c-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "2b0ec7bc-bf6f-11e4-997c-705681abff85"], ["created_at", "2015-02-28 17:28:11.277422"], ["updated_at", "2015-02-28 17:28:11.277422"], ["token", "ThHkHbdmnh7_VoVvlMhoP7yvYIULu4li6KXP5hPbC0k"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) Clubhouse::Mailer#invitation: processed outbound mail in 27.8ms Sent mail to john@example.com (7.7ms) Date: Sat, 28 Feb 2015 09:28:11 -0800 From: from@example.com To: john@example.com Message-ID: <54f1faab4cf31_127633fefe1063be464037@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, simply follow this link: https://example.com/invitation/ThHkHbdmnh7_VoVvlMhoP7yvYIULu4li6KXP5hPbC0k If you don't wish to join the organization, just ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:28:11.324262"], ["updated_at", "2015-02-28 17:28:11.324262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '2b1864ac-bf6f-11e4-b520-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "2b1864ac-bf6f-11e4-b520-705681abff85"], ["created_at", "2015-02-28 17:28:11.329940"], ["updated_at", "2015-02-28 17:28:11.329940"], ["token", "JDI5qyVrsMzViDTweh7tenE8bLdjjIFk6v6jMgBXofE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 09:28:11 -0800 From: from@example.com To: john@example.com Message-ID: <54f1faab51ae7_127633fefe1063be4641b1@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, simply follow this link: https://example.com/invitation/JDI5qyVrsMzViDTweh7tenE8bLdjjIFk6v6jMgBXofE If you don't wish to join the organization, just ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:28:11.340819"], ["updated_at", "2015-02-28 17:28:11.340819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '2b1ae286-bf6f-11e4-8606-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "2b1ae286-bf6f-11e4-8606-705681abff85"], ["created_at", "2015-02-28 17:28:11.345584"], ["updated_at", "2015-02-28 17:28:11.345584"], ["token", "C5yPVsCeNpaD3PmOnceND1swqzpQ8EG9EpnGJ6ayzys"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (4.2ms) Date: Sat, 28 Feb 2015 09:28:11 -0800 From: from@example.com To: john@example.com Message-ID: <54f1faab55e0d_127633fefe1063be4642f1@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, simply follow this link: https://example.com/invitation/C5yPVsCeNpaD3PmOnceND1swqzpQ8EG9EpnGJ6ayzys If you don't wish to join the organization, just ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:28:11.356844"], ["updated_at", "2015-02-28 17:28:11.356844"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '2b1d58d6-bf6f-11e4-bf88-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "2b1d58d6-bf6f-11e4-bf88-705681abff85"], ["created_at", "2015-02-28 17:28:11.360749"], ["updated_at", "2015-02-28 17:28:11.360749"], ["token", "a5ndYaYr12_oWTtGc61zCSbxlfxCLUgA2wiqkh8ARwo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.7ms Sent mail to john@example.com (2.0ms) Date: Sat, 28 Feb 2015 09:28:11 -0800 From: from@example.com To: john@example.com Message-ID: <54f1faab59602_127633fefe1063be46437c@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, simply follow this link: https://example.com/invitation/a5ndYaYr12_oWTtGc61zCSbxlfxCLUgA2wiqkh8ARwo If you don't wish to join the organization, just ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (4.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:28:50.958405"], ["updated_at", "2015-02-28 17:28:50.958405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '42b8991a-bf6f-11e4-ae8c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "42b8991a-bf6f-11e4-ae8c-705681abff85"], ["created_at", "2015-02-28 17:28:50.983370"], ["updated_at", "2015-02-28 17:28:50.983370"], ["token", "myPKQBWLP-wldLN34LOcXJsAQKBvxe_Ap0JRfrtduGg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 27.5ms Sent mail to john@example.com (8.9ms) Date: Sat, 28 Feb 2015 09:28:51 -0800 From: from@example.com To: john@example.com Message-ID: <54f1fad35057_1276a3fde2d065be424534@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/myPKQBWLP-wldLN34LOcXJsAQKBvxe_Ap0JRfrtduGg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:28:51.028222"], ["updated_at", "2015-02-28 17:28:51.028222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '42c2b468-bf6f-11e4-8132-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "42c2b468-bf6f-11e4-8132-705681abff85"], ["created_at", "2015-02-28 17:28:51.032059"], ["updated_at", "2015-02-28 17:28:51.032059"], ["token", "zjBS6XJJdA7xDbxthkN5Ibweq_a2pcFLoU7wbSu5JFM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (2.0ms) Date: Sat, 28 Feb 2015 09:28:51 -0800 From: from@example.com To: john@example.com Message-ID: <54f1fad38c33_1276a3fde2d065be4246be@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/zjBS6XJJdA7xDbxthkN5Ibweq_a2pcFLoU7wbSu5JFM If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:28:51.044827"], ["updated_at", "2015-02-28 17:28:51.044827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '42c53cf6-bf6f-11e4-a0c2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "42c53cf6-bf6f-11e4-a0c2-705681abff85"], ["created_at", "2015-02-28 17:28:51.048547"], ["updated_at", "2015-02-28 17:28:51.048547"], ["token", "F1HzwA05TY91XxYilYXb3yh55DsdGg4FZWYlZGph5-o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (2.9ms) Date: Sat, 28 Feb 2015 09:28:51 -0800 From: from@example.com To: john@example.com Message-ID: <54f1fad3cb08_1276a3fde2d065be424786@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/F1HzwA05TY91XxYilYXb3yh55DsdGg4FZWYlZGph5-o If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:28:51.060011"], ["updated_at", "2015-02-28 17:28:51.060011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '42c7956e-bf6f-11e4-a23e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "42c7956e-bf6f-11e4-a23e-705681abff85"], ["created_at", "2015-02-28 17:28:51.063810"], ["updated_at", "2015-02-28 17:28:51.063810"], ["token", "7gmyfoe9g2WWOyvmm6gavgOMDfTDlzFcsapqhpMgzBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.6ms) Date: Sat, 28 Feb 2015 09:28:51 -0800 From: from@example.com To: john@example.com Message-ID: <54f1fad310880_1276a3fde2d065be42484b@Jasons-Air-2.home.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/7gmyfoe9g2WWOyvmm6gavgOMDfTDlzFcsapqhpMgzBk If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (7.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (13.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$1pSBj0UMQJs9xH/miI1pu.L2dTBiT4DcxcqazcGuQ3XkhaE1w7FlG"], ["created_at", "2015-02-28 17:29:22.799799"], ["updated_at", "2015-02-28 17:29:22.799799"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$8CfKVXOAKNpf96xYdMbgMOC0kboNz8H3M4ArwbgLaMMdDkJYlWIVS"], ["created_at", "2015-02-28 17:29:22.818701"], ["updated_at", "2015-02-28 17:29:22.818701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:22.827225"], ["user_id", "55b2f588-bf6f-11e4-bea9-705681abff85"], ["created_at", "2015-02-28 17:29:22.833278"], ["updated_at", "2015-02-28 17:29:22.833278"], ["token", "SXOyVDeQcnYJ9VQEYsrX0emd_Jn_ACjVWnSyuRQLUw8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:22.849135"], ["updated_at", "2015-02-28 17:29:22.849135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55b2f588-bf6f-11e4-bea9-705681abff85' AND "clubhouse_memberships"."organization_id" = '55ba470c-bf6f-11e4-a7a9-705681abff85') LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55b2f588-bf6f-11e4-bea9-705681abff85"], ["organization_id", "55ba470c-bf6f-11e4-a7a9-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:22.895855"], ["updated_at", "2015-02-28 17:29:22.895855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55b58cc6-bf6f-11e4-a2a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '55ba470c-bf6f-11e4-a7a9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55b58cc6-bf6f-11e4-a2a9-705681abff85"], ["organization_id", "55ba470c-bf6f-11e4-a7a9-705681abff85"], ["created_at", "2015-02-28 17:29:22.902961"], ["updated_at", "2015-02-28 17:29:22.902961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '55ba470c-bf6f-11e4-a7a9-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "55ba470c-bf6f-11e4-a7a9-705681abff85"], ["created_at", "2015-02-28 17:29:22.912509"], ["updated_at", "2015-02-28 17:29:22.912509"], ["token", "-2eYasnc3xAdex6BeX8goyKDUwmNORoiLOhMhDysmjM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$EKm3tej.YT/huv0JwunnwOPHC1mG0sAjJusEyI.rkhcKisI6VjvZ2"], ["created_at", "2015-02-28 17:29:22.925318"], ["updated_at", "2015-02-28 17:29:22.925318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$VOha0ecR8p2Xgj.IhodHj.IFZBJV2myqjXOF.5ebA7/cjElWcWxTW"], ["created_at", "2015-02-28 17:29:22.929936"], ["updated_at", "2015-02-28 17:29:22.929936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:22.931835"], ["user_id", "55c5d6c6-bf6f-11e4-b12e-705681abff85"], ["created_at", "2015-02-28 17:29:22.932686"], ["updated_at", "2015-02-28 17:29:22.932686"], ["token", "cbvYeOACkud8qPMNFsZpBAQFqJ79xSSVx6fc98-i9_U"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:22.937042"], ["updated_at", "2015-02-28 17:29:22.937042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55c5d6c6-bf6f-11e4-b12e-705681abff85' AND "clubhouse_memberships"."organization_id" = '55c79e0c-bf6f-11e4-baf7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55c5d6c6-bf6f-11e4-b12e-705681abff85"], ["organization_id", "55c79e0c-bf6f-11e4-baf7-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:22.940947"], ["updated_at", "2015-02-28 17:29:22.940947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55c68c38-bf6f-11e4-9046-705681abff85' AND "clubhouse_memberships"."organization_id" = '55c79e0c-bf6f-11e4-baf7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55c68c38-bf6f-11e4-9046-705681abff85"], ["organization_id", "55c79e0c-bf6f-11e4-baf7-705681abff85"], ["created_at", "2015-02-28 17:29:22.944497"], ["updated_at", "2015-02-28 17:29:22.944497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '55c79e0c-bf6f-11e4-baf7-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "55c79e0c-bf6f-11e4-baf7-705681abff85"], ["created_at", "2015-02-28 17:29:22.948612"], ["updated_at", "2015-02-28 17:29:22.948612"], ["token", "IMsPFIBMlniqH3NaXTzablXtHttQCPI0DvpN5u1Ld1M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:29:22 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:29:22.979263' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cbvYeOACkud8qPMNFsZpBAQFqJ79xSSVx6fc98-i9_U"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:29:22.988292"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:29:22.989888"], ["id", "55c6fb64-bf6f-11e4-95ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55c5d6c6-bf6f-11e4-b12e-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55c5d6c6-bf6f-11e4-b12e-705681abff85"], ["name", "org-2"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "55c79e0c-bf6f-11e4-baf7-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '55c79e0c-bf6f-11e4-baf7-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 67ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$WfeYcKvuT0dSi2MZ3aMtU.Z17TqqRIlBk1L5E.DXLru2uVoY.tUqa"], ["created_at", "2015-02-28 17:29:23.056984"], ["updated_at", "2015-02-28 17:29:23.056984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$w017Ziw14XAdGJKYupsgNueZIsA8xr9yFmib8XDIJXXOFdi45Fu/u"], ["created_at", "2015-02-28 17:29:23.063973"], ["updated_at", "2015-02-28 17:29:23.063973"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:23.067392"], ["user_id", "55da0a2e-bf6f-11e4-b88a-705681abff85"], ["created_at", "2015-02-28 17:29:23.068839"], ["updated_at", "2015-02-28 17:29:23.068839"], ["token", "pE1a_hZedPIxV5fP1YQfVwtgAdfmzha5f84CRWu8ofQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:23.079187"], ["updated_at", "2015-02-28 17:29:23.079187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55da0a2e-bf6f-11e4-b88a-705681abff85' AND "clubhouse_memberships"."organization_id" = '55ddac92-bf6f-11e4-81b0-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55da0a2e-bf6f-11e4-b88a-705681abff85"], ["organization_id", "55ddac92-bf6f-11e4-81b0-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:23.098823"], ["updated_at", "2015-02-28 17:29:23.098823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55db0d52-bf6f-11e4-9aa4-705681abff85' AND "clubhouse_memberships"."organization_id" = '55ddac92-bf6f-11e4-81b0-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55db0d52-bf6f-11e4-9aa4-705681abff85"], ["organization_id", "55ddac92-bf6f-11e4-81b0-705681abff85"], ["created_at", "2015-02-28 17:29:23.112888"], ["updated_at", "2015-02-28 17:29:23.112888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '55ddac92-bf6f-11e4-81b0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "55ddac92-bf6f-11e4-81b0-705681abff85"], ["created_at", "2015-02-28 17:29:23.121433"], ["updated_at", "2015-02-28 17:29:23.121433"], ["token", "5hBbRAs6Xbu46DiogtmSWMCqzxpb2Hc1fVkCZp_oiwE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:29:23 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:29:23.134481' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pE1a_hZedPIxV5fP1YQfVwtgAdfmzha5f84CRWu8ofQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (27.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:29:23.137154"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:29:23.138644"], ["id", "55dc36e6-bf6f-11e4-b4b8-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55da0a2e-bf6f-11e4-b88a-705681abff85"]] Clubhouse::Organization Load (3.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55da0a2e-bf6f-11e4-b88a-705681abff85"], ["name", "org-3"]]  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "55ddac92-bf6f-11e4-81b0-705681abff85"]] Clubhouse::Invitation Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '55ddac92-bf6f-11e4-81b0-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "55ddac92-bf6f-11e4-81b0-705681abff85"], ["created_at", "2015-02-28 17:29:23.219564"], ["updated_at", "2015-02-28 17:29:23.219564"], ["token", "KbVRL45lx40bt6YVSUKpwfiHNy3gvf7RNWa_nikr4sc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 112ms (Views: 16.9ms | ActiveRecord: 35.9ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$TbWuNN5mrSUbFCiFea3S5.c/nv0UHowUKrXVXW5FN3FItWPvl0KMi"], ["created_at", "2015-02-28 17:29:23.302954"], ["updated_at", "2015-02-28 17:29:23.302954"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$x1gsM.ZJ2kVkQ6VwHtPYN.FZXYFSA9q6IGm176fK9deSB4CDwsE7e"], ["created_at", "2015-02-28 17:29:23.311542"], ["updated_at", "2015-02-28 17:29:23.311542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:23.314359"], ["user_id", "55ffab58-bf6f-11e4-b462-705681abff85"], ["created_at", "2015-02-28 17:29:23.316093"], ["updated_at", "2015-02-28 17:29:23.316093"], ["token", "v8Ki60Okys8No1zAu-YwHl3VoUJUo5FfvQGJCTsOEMA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:23.322821"], ["updated_at", "2015-02-28 17:29:23.322821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55ffab58-bf6f-11e4-b462-705681abff85' AND "clubhouse_memberships"."organization_id" = '5602b348-bf6f-11e4-a7c8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55ffab58-bf6f-11e4-b462-705681abff85"], ["organization_id", "5602b348-bf6f-11e4-a7c8-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:23.330637"], ["updated_at", "2015-02-28 17:29:23.330637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5600ced4-bf6f-11e4-914e-705681abff85' AND "clubhouse_memberships"."organization_id" = '5602b348-bf6f-11e4-a7c8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5600ced4-bf6f-11e4-914e-705681abff85"], ["organization_id", "5602b348-bf6f-11e4-a7c8-705681abff85"], ["created_at", "2015-02-28 17:29:23.338105"], ["updated_at", "2015-02-28 17:29:23.338105"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '5602b348-bf6f-11e4-a7c8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "5602b348-bf6f-11e4-a7c8-705681abff85"], ["created_at", "2015-02-28 17:29:23.346880"], ["updated_at", "2015-02-28 17:29:23.346880"], ["token", "ReOPqtiHCSvjCToekWOEXhrO9L8NaV1lcccEj-688Yo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:29:23 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:29:23.353541' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v8Ki60Okys8No1zAu-YwHl3VoUJUo5FfvQGJCTsOEMA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:29:23.355021"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:29:23.356213"], ["id", "56018f7c-bf6f-11e4-baa7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55ffab58-bf6f-11e4-b462-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55ffab58-bf6f-11e4-b462-705681abff85"], ["name", "org-4"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5602b348-bf6f-11e4-a7c8-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5602b348-bf6f-11e4-a7c8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "5602b348-bf6f-11e4-a7c8-705681abff85"], ["created_at", "2015-02-28 17:29:23.364437"], ["updated_at", "2015-02-28 17:29:23.364437"], ["token", "EeDl26140svg0N4HKXlaDV7OOdpgA679EyYqyAQSD5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.0ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (12.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$weK4Ueo27NrGU7YSmfq5neW5ZXP43D8muML4BmdtcL3Xxw4o4pyye"], ["created_at", "2015-02-28 17:29:40.708839"], ["updated_at", "2015-02-28 17:29:40.708839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$YXhuF6M.fKaIDtVy25ilEe3evPYWppsvCP/CaW/Ip.OO2U8GZLNDq"], ["created_at", "2015-02-28 17:29:40.726726"], ["updated_at", "2015-02-28 17:29:40.726726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:40.735392"], ["user_id", "605f87f8-bf6f-11e4-ad54-705681abff85"], ["created_at", "2015-02-28 17:29:40.742720"], ["updated_at", "2015-02-28 17:29:40.742720"], ["token", "0hTOOjgsioT3spktFgDF45AHKu6HEWpWSaZIlTXNKlY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:40.751520"], ["updated_at", "2015-02-28 17:29:40.751520"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '605f87f8-bf6f-11e4-ad54-705681abff85' AND "clubhouse_memberships"."organization_id" = '6065e9f4-bf6f-11e4-a04b-705681abff85') LIMIT 1 SQL (2.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "605f87f8-bf6f-11e4-ad54-705681abff85"], ["organization_id", "6065e9f4-bf6f-11e4-a04b-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:40.799632"], ["updated_at", "2015-02-28 17:29:40.799632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60621860-bf6f-11e4-a9d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '6065e9f4-bf6f-11e4-a04b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60621860-bf6f-11e4-a9d9-705681abff85"], ["organization_id", "6065e9f4-bf6f-11e4-a04b-705681abff85"], ["created_at", "2015-02-28 17:29:40.805896"], ["updated_at", "2015-02-28 17:29:40.805896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6065e9f4-bf6f-11e4-a04b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "6065e9f4-bf6f-11e4-a04b-705681abff85"], ["created_at", "2015-02-28 17:29:40.815834"], ["updated_at", "2015-02-28 17:29:40.815834"], ["token", "VphQkkKnAvsMu16axOGPTlb4QTdF7LO3qSbu94pHhxU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:29:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:29:40.841007' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0hTOOjgsioT3spktFgDF45AHKu6HEWpWSaZIlTXNKlY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (5.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:29:40.848739"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:29:40.849948"], ["id", "6064a1ca-bf6f-11e4-be5e-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "605f87f8-bf6f-11e4-ad54-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "605f87f8-bf6f-11e4-ad54-705681abff85"], ["name", "org-1"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6065e9f4-bf6f-11e4-a04b-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6065e9f4-bf6f-11e4-a04b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "6065e9f4-bf6f-11e4-a04b-705681abff85"], ["created_at", "2015-02-28 17:29:40.884974"], ["updated_at", "2015-02-28 17:29:40.884974"], ["token", "pf5uY3lolygaC4N1yeJnMz-TkcONPzZALgjZqsd59G4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5891add3-476f-44f5-8dc9-186b38507fe6) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/607a489a-bf6f-11e4-8087-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "607a489a-bf6f-11e4-8087-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5891add3-476f-44f5-8dc9-186b38507fe6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/607a489a-bf6f-11e4-8087-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [5891add3-476f-44f5-8dc9-186b38507fe6] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6065e9f4-bf6f-11e4-a04b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5891add3-476f-44f5-8dc9-186b38507fe6] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [5891add3-476f-44f5-8dc9-186b38507fe6] Clubhouse::Mailer#invitation: processed outbound mail in 234.9ms [ActiveJob] [ActionMailer::DeliveryJob] [5891add3-476f-44f5-8dc9-186b38507fe6] Sent mail to email@example.com (12.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [5891add3-476f-44f5-8dc9-186b38507fe6] Date: Sat, 28 Feb 2015 09:29:41 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fb05274f2_127743fc339065be44044a@Jasons-Air-2.home.mail> Subject: You've been invited to join org-1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/pf5uY3lolygaC4N1yeJnMz-TkcONPzZALgjZqsd59G4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5891add3-476f-44f5-8dc9-186b38507fe6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 259.68ms Completed 201 Created in 350ms (Views: 12.2ms | ActiveRecord: 8.7ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$klqu7OBbsznJ14Pvrc4g9.vBsRKGjhD4.GMjbTagFDS7AFgU3NNpO"], ["created_at", "2015-02-28 17:29:41.220496"], ["updated_at", "2015-02-28 17:29:41.220496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (20.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$xGlAZKbBG63HYF9i.Bc4i.sChdvs9aGK4pyaBzmfkHNydqsov1ghu"], ["created_at", "2015-02-28 17:29:41.259103"], ["updated_at", "2015-02-28 17:29:41.259103"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:41.261932"], ["user_id", "60ad966e-bf6f-11e4-875c-705681abff85"], ["created_at", "2015-02-28 17:29:41.263082"], ["updated_at", "2015-02-28 17:29:41.263082"], ["token", "JS7lVIKB-m9RvcBr-upgdGC4K3wEcW75Y1dR94ciXX0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:41.266897"], ["updated_at", "2015-02-28 17:29:41.266897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60ad966e-bf6f-11e4-875c-705681abff85' AND "clubhouse_memberships"."organization_id" = '60b486c2-bf6f-11e4-9518-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60ad966e-bf6f-11e4-875c-705681abff85"], ["organization_id", "60b486c2-bf6f-11e4-9518-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:41.271143"], ["updated_at", "2015-02-28 17:29:41.271143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60b36ef4-bf6f-11e4-ac29-705681abff85' AND "clubhouse_memberships"."organization_id" = '60b486c2-bf6f-11e4-9518-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60b36ef4-bf6f-11e4-ac29-705681abff85"], ["organization_id", "60b486c2-bf6f-11e4-9518-705681abff85"], ["created_at", "2015-02-28 17:29:41.276582"], ["updated_at", "2015-02-28 17:29:41.276582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '60b486c2-bf6f-11e4-9518-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "60b486c2-bf6f-11e4-9518-705681abff85"], ["created_at", "2015-02-28 17:29:41.280427"], ["updated_at", "2015-02-28 17:29:41.280427"], ["token", "yu638ESb90UjtQDoMeaA6SC6ZHBF4iUuxoQjKo73KUA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:29:41 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:29:41.285349' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JS7lVIKB-m9RvcBr-upgdGC4K3wEcW75Y1dR94ciXX0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:29:41.286773"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:29:41.287663"], ["id", "60b4001c-bf6f-11e4-995b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60ad966e-bf6f-11e4-875c-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "60ad966e-bf6f-11e4-875c-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60b486c2-bf6f-11e4-9518-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '60b486c2-bf6f-11e4-9518-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "60b486c2-bf6f-11e4-9518-705681abff85"], ["created_at", "2015-02-28 17:29:41.295139"], ["updated_at", "2015-02-28 17:29:41.295139"], ["token", "-WRZ4l3q3SSOjdQAjyhVe8LsGbDm6S2NnFdJ-DyKFNo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4ca8d29f-c106-48a4-abfa-5ee93dff0043) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/60b8da9c-bf6f-11e4-9c41-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "60b8da9c-bf6f-11e4-9c41-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4ca8d29f-c106-48a4-abfa-5ee93dff0043] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/60b8da9c-bf6f-11e4-9c41-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [4ca8d29f-c106-48a4-abfa-5ee93dff0043] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60b486c2-bf6f-11e4-9518-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4ca8d29f-c106-48a4-abfa-5ee93dff0043] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [4ca8d29f-c106-48a4-abfa-5ee93dff0043] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [4ca8d29f-c106-48a4-abfa-5ee93dff0043] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [4ca8d29f-c106-48a4-abfa-5ee93dff0043] Date: Sat, 28 Feb 2015 09:29:41 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fb0549f60_127743fc339065be44057e@Jasons-Air-2.home.mail> Subject: You've been invited to join org-2 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/-WRZ4l3q3SSOjdQAjyhVe8LsGbDm6S2NnFdJ-DyKFNo If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4ca8d29f-c106-48a4-abfa-5ee93dff0043] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.05ms Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$HP9.qNjsrflRpZH4Pf3MSeiEcd3YQyN7NBlq7OIiZKs/GplBNdqOi"], ["created_at", "2015-02-28 17:29:41.312946"], ["updated_at", "2015-02-28 17:29:41.312946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$S66orFqb61NtFFqli0okEOFbdYMmJzwxLNSAhmZzi6xHPf9wJP/8e"], ["created_at", "2015-02-28 17:29:41.317571"], ["updated_at", "2015-02-28 17:29:41.317571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:41.320234"], ["user_id", "60bb985e-bf6f-11e4-936c-705681abff85"], ["created_at", "2015-02-28 17:29:41.321104"], ["updated_at", "2015-02-28 17:29:41.321104"], ["token", "_2Oh22eET_MusCccGzs024EVbAoJnVwci96IUtiUw2k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:41.324554"], ["updated_at", "2015-02-28 17:29:41.324554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60bb985e-bf6f-11e4-936c-705681abff85' AND "clubhouse_memberships"."organization_id" = '60bd4f1e-bf6f-11e4-a00a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60bb985e-bf6f-11e4-936c-705681abff85"], ["organization_id", "60bd4f1e-bf6f-11e4-a00a-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:41.328508"], ["updated_at", "2015-02-28 17:29:41.328508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60bc3e94-bf6f-11e4-8219-705681abff85' AND "clubhouse_memberships"."organization_id" = '60bd4f1e-bf6f-11e4-a00a-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60bc3e94-bf6f-11e4-8219-705681abff85"], ["organization_id", "60bd4f1e-bf6f-11e4-a00a-705681abff85"], ["created_at", "2015-02-28 17:29:41.332183"], ["updated_at", "2015-02-28 17:29:41.332183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '60bd4f1e-bf6f-11e4-a00a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "60bd4f1e-bf6f-11e4-a00a-705681abff85"], ["created_at", "2015-02-28 17:29:41.338610"], ["updated_at", "2015-02-28 17:29:41.338610"], ["token", "fp0Sm829aDL-7SqXiGKIEbNKPi-TErxXp6VEyKmnBwA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:29:41 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:29:41.346907' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_2Oh22eET_MusCccGzs024EVbAoJnVwci96IUtiUw2k"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:29:41.351669"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:29:41.352776"], ["id", "60bcd4c6-bf6f-11e4-abb1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60bb985e-bf6f-11e4-936c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "60bb985e-bf6f-11e4-936c-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60bd4f1e-bf6f-11e4-a00a-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '60bd4f1e-bf6f-11e4-a00a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Kf4erhrizxS5PReeAEdKluDSO4Qq0fq0.VuYAbisqY/ktUSFWPUpy"], ["created_at", "2015-02-28 17:29:41.367919"], ["updated_at", "2015-02-28 17:29:41.367919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ExIF9WRnAnWZLfDVym0WzepWJb5vcXBM0xCoqKx8JADyhyO1xoYXG"], ["created_at", "2015-02-28 17:29:41.372015"], ["updated_at", "2015-02-28 17:29:41.372015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:41.373438"], ["user_id", "60c3edce-bf6f-11e4-91ee-705681abff85"], ["created_at", "2015-02-28 17:29:41.374179"], ["updated_at", "2015-02-28 17:29:41.374179"], ["token", "NXYjdrQDKyPjxKmOliDHV8HHKzWbDiYhLjPdJEgtcW8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:41.377503"], ["updated_at", "2015-02-28 17:29:41.377503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60c3edce-bf6f-11e4-91ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '60c57338-bf6f-11e4-b82e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60c3edce-bf6f-11e4-91ee-705681abff85"], ["organization_id", "60c57338-bf6f-11e4-b82e-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:41.381547"], ["updated_at", "2015-02-28 17:29:41.381547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60c48ab8-bf6f-11e4-b735-705681abff85' AND "clubhouse_memberships"."organization_id" = '60c57338-bf6f-11e4-b82e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60c48ab8-bf6f-11e4-b735-705681abff85"], ["organization_id", "60c57338-bf6f-11e4-b82e-705681abff85"], ["created_at", "2015-02-28 17:29:41.385349"], ["updated_at", "2015-02-28 17:29:41.385349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '60c57338-bf6f-11e4-b82e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "60c57338-bf6f-11e4-b82e-705681abff85"], ["created_at", "2015-02-28 17:29:41.395920"], ["updated_at", "2015-02-28 17:29:41.395920"], ["token", "vAUYziB6aQEjsFoMonIApQ-Li0JKM6evrI5ZEtP8lvg"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$YMCVDzqhMGRTl4CK27CiJuhsHzR1GcA9/KlbbvJZvFZMTstMH72ty"], ["created_at", "2015-02-28 17:29:54.753391"], ["updated_at", "2015-02-28 17:29:54.753391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$4p/8cAnaQx9BQQ1slEayWe0RtlE2bj.hsSO8Afcbw.xb1/Dy2qbtK"], ["created_at", "2015-02-28 17:29:54.759239"], ["updated_at", "2015-02-28 17:29:54.759239"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:54.767660"], ["user_id", "68be8ec6-bf6f-11e4-8304-705681abff85"], ["created_at", "2015-02-28 17:29:54.773824"], ["updated_at", "2015-02-28 17:29:54.773824"], ["token", "pBOSOG_ZyrCtEo3B9_OnO48PnDIRTj6fpt9VFxwwYjU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:54.783436"], ["updated_at", "2015-02-28 17:29:54.783436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68be8ec6-bf6f-11e4-8304-705681abff85' AND "clubhouse_memberships"."organization_id" = '68c309ba-bf6f-11e4-8550-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68be8ec6-bf6f-11e4-8304-705681abff85"], ["organization_id", "68c309ba-bf6f-11e4-8550-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:54.833552"], ["updated_at", "2015-02-28 17:29:54.833552"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68bf4bea-bf6f-11e4-996a-705681abff85' AND "clubhouse_memberships"."organization_id" = '68c309ba-bf6f-11e4-8550-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68bf4bea-bf6f-11e4-996a-705681abff85"], ["organization_id", "68c309ba-bf6f-11e4-8550-705681abff85"], ["created_at", "2015-02-28 17:29:54.838060"], ["updated_at", "2015-02-28 17:29:54.838060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '68c309ba-bf6f-11e4-8550-705681abff85') LIMIT 1 SQL (2.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "68c309ba-bf6f-11e4-8550-705681abff85"], ["created_at", "2015-02-28 17:29:54.847916"], ["updated_at", "2015-02-28 17:29:54.847916"], ["token", "ueJCpCJ1dWwQRFGMHbjFxy7wtHxOcZIqt0a5n0nnfOg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Z076eNbtDCQJIl79rLPbhuBnKhtZWCkGWK4PAzT0YmyO14AuGvL9u"], ["created_at", "2015-02-28 17:29:54.862769"], ["updated_at", "2015-02-28 17:29:54.862769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$bu0GTTHhS.L98hHrgU..u.d5JFslwDg5taESa/V0CzQ8FgPBAPxI6"], ["created_at", "2015-02-28 17:29:54.868922"], ["updated_at", "2015-02-28 17:29:54.868922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:54.870729"], ["user_id", "68cf3492-bf6f-11e4-a765-705681abff85"], ["created_at", "2015-02-28 17:29:54.871513"], ["updated_at", "2015-02-28 17:29:54.871513"], ["token", "QxQAm-4qlPTXIQy5b2zW54atWtt3BTxHWrqFOzjqJNI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:54.874855"], ["updated_at", "2015-02-28 17:29:54.874855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68cf3492-bf6f-11e4-a765-705681abff85' AND "clubhouse_memberships"."organization_id" = '68d0ec24-bf6f-11e4-b559-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68cf3492-bf6f-11e4-a765-705681abff85"], ["organization_id", "68d0ec24-bf6f-11e4-b559-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:54.878766"], ["updated_at", "2015-02-28 17:29:54.878766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68d00b92-bf6f-11e4-878c-705681abff85' AND "clubhouse_memberships"."organization_id" = '68d0ec24-bf6f-11e4-b559-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68d00b92-bf6f-11e4-878c-705681abff85"], ["organization_id", "68d0ec24-bf6f-11e4-b559-705681abff85"], ["created_at", "2015-02-28 17:29:54.882189"], ["updated_at", "2015-02-28 17:29:54.882189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '68d0ec24-bf6f-11e4-b559-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "68d0ec24-bf6f-11e4-b559-705681abff85"], ["created_at", "2015-02-28 17:29:54.885618"], ["updated_at", "2015-02-28 17:29:54.885618"], ["token", "M7WtbrpDgVWni8b2pFBspNLp9VGUF43FdGpFfiVTPTA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:29:54 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:29:54.910477' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QxQAm-4qlPTXIQy5b2zW54atWtt3BTxHWrqFOzjqJNI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:29:54.918446"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:29:54.919754"], ["id", "68d07258-bf6f-11e4-ab21-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68cf3492-bf6f-11e4-a765-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "68cf3492-bf6f-11e4-a765-705681abff85"], ["name", "org-2"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68d0ec24-bf6f-11e4-b559-705681abff85"]] Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '68d0ec24-bf6f-11e4-b559-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 52ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (11.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$8sy8GorhG1yrUdqFQfEfDeoA8I/5Nvk5.FCHMPZ/8MOln08asFLHS"], ["created_at", "2015-02-28 17:29:54.970933"], ["updated_at", "2015-02-28 17:29:54.970933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$3ZR0TJVcT703GtHi5hRH2eMClpXXBjQ3cCJIXVv.U94u7u5lKwB9."], ["created_at", "2015-02-28 17:29:54.989057"], ["updated_at", "2015-02-28 17:29:54.989057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:54.991263"], ["user_id", "68dfb5ba-bf6f-11e4-af63-705681abff85"], ["created_at", "2015-02-28 17:29:54.992258"], ["updated_at", "2015-02-28 17:29:54.992258"], ["token", "Jf43hGiYndyBq9mHjimrHBLosBtOOy3IhKi-9CBjyOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:54.996976"], ["updated_at", "2015-02-28 17:29:54.996976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68dfb5ba-bf6f-11e4-af63-705681abff85' AND "clubhouse_memberships"."organization_id" = '68e390b8-bf6f-11e4-8baf-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68dfb5ba-bf6f-11e4-af63-705681abff85"], ["organization_id", "68e390b8-bf6f-11e4-8baf-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:55.000971"], ["updated_at", "2015-02-28 17:29:55.000971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68e263aa-bf6f-11e4-805c-705681abff85' AND "clubhouse_memberships"."organization_id" = '68e390b8-bf6f-11e4-8baf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68e263aa-bf6f-11e4-805c-705681abff85"], ["organization_id", "68e390b8-bf6f-11e4-8baf-705681abff85"], ["created_at", "2015-02-28 17:29:55.004789"], ["updated_at", "2015-02-28 17:29:55.004789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '68e390b8-bf6f-11e4-8baf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "68e390b8-bf6f-11e4-8baf-705681abff85"], ["created_at", "2015-02-28 17:29:55.008303"], ["updated_at", "2015-02-28 17:29:55.008303"], ["token", "Ol-U9kVI0I5pveL60JeNBdeCb6dZrO7AO1tN3K5GBE4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:29:55 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:29:55.013391' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Jf43hGiYndyBq9mHjimrHBLosBtOOy3IhKi-9CBjyOo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:29:55.014805"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:29:55.015739"], ["id", "68e2f590-bf6f-11e4-b1e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68dfb5ba-bf6f-11e4-af63-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "68dfb5ba-bf6f-11e4-af63-705681abff85"], ["name", "org-3"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68e390b8-bf6f-11e4-8baf-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '68e390b8-bf6f-11e4-8baf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "68e390b8-bf6f-11e4-8baf-705681abff85"], ["created_at", "2015-02-28 17:29:55.026774"], ["updated_at", "2015-02-28 17:29:55.026774"], ["token", "sfFLSIq-Bf-n2SX-G2mpbcpzwVE9WvmkH-l0Bi3crlg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 74fb3704-0d86-49fc-9589-c06c4418c0ff) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/68e82dc6-bf6f-11e4-93bf-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "68e82dc6-bf6f-11e4-93bf-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [74fb3704-0d86-49fc-9589-c06c4418c0ff] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/68e82dc6-bf6f-11e4-93bf-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [74fb3704-0d86-49fc-9589-c06c4418c0ff] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68e390b8-bf6f-11e4-8baf-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [74fb3704-0d86-49fc-9589-c06c4418c0ff] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [74fb3704-0d86-49fc-9589-c06c4418c0ff] Clubhouse::Mailer#invitation: processed outbound mail in 319.0ms [ActiveJob] [ActionMailer::DeliveryJob] [74fb3704-0d86-49fc-9589-c06c4418c0ff] Sent mail to email@example.com (16.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [74fb3704-0d86-49fc-9589-c06c4418c0ff] Date: Sat, 28 Feb 2015 09:29:55 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fb135cf31_127783ff551c65be810568@Jasons-Air-2.home.mail> Subject: You've been invited to join org-3 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/sfFLSIq-Bf-n2SX-G2mpbcpzwVE9WvmkH-l0Bi3crlg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [74fb3704-0d86-49fc-9589-c06c4418c0ff] Performed ActionMailer::DeliveryJob from Inline(mailers) in 336.64ms Completed 201 Created in 383ms (Views: 3.5ms | ActiveRecord: 4.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$.9yGsMCJYhK0cv8P8z9hrOnRlZBPBHRmMLy2.TygA7DiW2rOLUYxe"], ["created_at", "2015-02-28 17:29:55.403696"], ["updated_at", "2015-02-28 17:29:55.403696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$z5LiS7IYFslGoiaJahP1yu7IjUei8SB5d1CGxabiMKhQSH1NLA2Gm"], ["created_at", "2015-02-28 17:29:55.407943"], ["updated_at", "2015-02-28 17:29:55.407943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:29:55.409430"], ["user_id", "6921a074-bf6f-11e4-88f9-705681abff85"], ["created_at", "2015-02-28 17:29:55.410202"], ["updated_at", "2015-02-28 17:29:55.410202"], ["token", "olEiG9Z92KKaBaKE2ZXMRK-JZRKa_0bjT2wzNm1Ndhk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:29:55.414589"], ["updated_at", "2015-02-28 17:29:55.414589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6921a074-bf6f-11e4-88f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '692350fe-bf6f-11e4-84d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6921a074-bf6f-11e4-88f9-705681abff85"], ["organization_id", "692350fe-bf6f-11e4-84d5-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:29:55.418529"], ["updated_at", "2015-02-28 17:29:55.418529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '692242b8-bf6f-11e4-8002-705681abff85' AND "clubhouse_memberships"."organization_id" = '692350fe-bf6f-11e4-84d5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "692242b8-bf6f-11e4-8002-705681abff85"], ["organization_id", "692350fe-bf6f-11e4-84d5-705681abff85"], ["created_at", "2015-02-28 17:29:55.422219"], ["updated_at", "2015-02-28 17:29:55.422219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '692350fe-bf6f-11e4-84d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "692350fe-bf6f-11e4-84d5-705681abff85"], ["created_at", "2015-02-28 17:29:55.425707"], ["updated_at", "2015-02-28 17:29:55.425707"], ["token", "GEFFXMiheZKe92l5rz2Eqhy_DZM2nwy7eIC7OrRizwY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:29:55 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:29:55.431817' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "olEiG9Z92KKaBaKE2ZXMRK-JZRKa_0bjT2wzNm1Ndhk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:29:55.433373"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:29:55.435228"], ["id", "6922a37a-bf6f-11e4-b981-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6921a074-bf6f-11e4-88f9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6921a074-bf6f-11e4-88f9-705681abff85"], ["name", "org-4"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "692350fe-bf6f-11e4-84d5-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '692350fe-bf6f-11e4-84d5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "692350fe-bf6f-11e4-84d5-705681abff85"], ["created_at", "2015-02-28 17:29:55.442643"], ["updated_at", "2015-02-28 17:29:55.442643"], ["token", "8-F2fDYH_gIjlVT1D7mPjWSJd49p23NvV81bx5nU-X4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: be848bee-2965-4418-b16a-bd8c85af1e62) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/69279678-bf6f-11e4-af9b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "69279678-bf6f-11e4-af9b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [be848bee-2965-4418-b16a-bd8c85af1e62] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/69279678-bf6f-11e4-af9b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [be848bee-2965-4418-b16a-bd8c85af1e62] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "692350fe-bf6f-11e4-84d5-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [be848bee-2965-4418-b16a-bd8c85af1e62] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [be848bee-2965-4418-b16a-bd8c85af1e62] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [be848bee-2965-4418-b16a-bd8c85af1e62] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [be848bee-2965-4418-b16a-bd8c85af1e62] Date: Sat, 28 Feb 2015 09:29:55 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fb136e2ff_127783ff551c65be81063@Jasons-Air-2.home.mail> Subject: You've been invited to join org-4 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/8-F2fDYH_gIjlVT1D7mPjWSJd49p23NvV81bx5nU-X4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [be848bee-2965-4418-b16a-bd8c85af1e62] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.81ms Completed 201 Created in 22ms (Views: 1.2ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$FzuYFujJhEO/EkSCqkeBkOWX7lBRw0qzA/ObzoEVpmt/nfrdSnjpa"], ["created_at", "2015-02-28 17:30:07.537446"], ["updated_at", "2015-02-28 17:30:07.537446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$soh76oNp716yVW03AF5koesHd4z2e6X8veivrim0Ql77ULdzV8pxy"], ["created_at", "2015-02-28 17:30:07.543433"], ["updated_at", "2015-02-28 17:30:07.543433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:30:07.551910"], ["user_id", "705d464a-bf6f-11e4-8ae6-705681abff85"], ["created_at", "2015-02-28 17:30:07.557863"], ["updated_at", "2015-02-28 17:30:07.557863"], ["token", "hA_otBlkoc8bdqdjp8UvBGagpm4jR5YspybI4IS0qig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:30:07.574148"], ["updated_at", "2015-02-28 17:30:07.574148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '705d464a-bf6f-11e4-8ae6-705681abff85' AND "clubhouse_memberships"."organization_id" = '7062d34e-bf6f-11e4-8f1b-705681abff85') LIMIT 1 SQL (5.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "705d464a-bf6f-11e4-8ae6-705681abff85"], ["organization_id", "7062d34e-bf6f-11e4-8f1b-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:30:07.617849"], ["updated_at", "2015-02-28 17:30:07.617849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '705e009e-bf6f-11e4-87cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '7062d34e-bf6f-11e4-8f1b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "705e009e-bf6f-11e4-87cf-705681abff85"], ["organization_id", "7062d34e-bf6f-11e4-8f1b-705681abff85"], ["created_at", "2015-02-28 17:30:07.627353"], ["updated_at", "2015-02-28 17:30:07.627353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '7062d34e-bf6f-11e4-8f1b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "7062d34e-bf6f-11e4-8f1b-705681abff85"], ["created_at", "2015-02-28 17:30:07.636893"], ["updated_at", "2015-02-28 17:30:07.636893"], ["token", "SZkGOy-w73lChuu174YKDns9B6sVP-zEKlBMkrmp6Kc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:30:07 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:30:07.659410' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hA_otBlkoc8bdqdjp8UvBGagpm4jR5YspybI4IS0qig"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:30:07.666683"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:30:07.667875"], ["id", "70604c32-bf6f-11e4-b00e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "705d464a-bf6f-11e4-8ae6-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "705d464a-bf6f-11e4-8ae6-705681abff85"], ["name", "org-1"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7062d34e-bf6f-11e4-8f1b-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7062d34e-bf6f-11e4-8f1b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "7062d34e-bf6f-11e4-8f1b-705681abff85"], ["created_at", "2015-02-28 17:30:07.693805"], ["updated_at", "2015-02-28 17:30:07.693805"], ["token", "o7ED7QKG1ncUrispa31eOcPFk5mofAPCGUdTN4G006c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1506a5c7-b2c0-4b18-96c4-9152ed5b5f5f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7074fdee-bf6f-11e4-9a92-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7074fdee-bf6f-11e4-9a92-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1506a5c7-b2c0-4b18-96c4-9152ed5b5f5f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7074fdee-bf6f-11e4-9a92-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [1506a5c7-b2c0-4b18-96c4-9152ed5b5f5f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7062d34e-bf6f-11e4-8f1b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1506a5c7-b2c0-4b18-96c4-9152ed5b5f5f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [1506a5c7-b2c0-4b18-96c4-9152ed5b5f5f] Clubhouse::Mailer#invitation: processed outbound mail in 244.1ms [ActiveJob] [ActionMailer::DeliveryJob] [1506a5c7-b2c0-4b18-96c4-9152ed5b5f5f] Sent mail to email@example.com (7.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [1506a5c7-b2c0-4b18-96c4-9152ed5b5f5f] Date: Sat, 28 Feb 2015 09:30:07 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fb1fedf35_1277c3fdca5865be858839@Jasons-Air-2.home.mail> Subject: You've been invited to join org-1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/o7ED7QKG1ncUrispa31eOcPFk5mofAPCGUdTN4G006c If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [1506a5c7-b2c0-4b18-96c4-9152ed5b5f5f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 260.4ms Completed 201 Created in 330ms (Views: 3.1ms | ActiveRecord: 3.1ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$GQsRHTMKOasN.aopGq7zqO3lXJZHFQusC64bqT2WMeVom/UVmfeua"], ["created_at", "2015-02-28 17:30:07.998998"], ["updated_at", "2015-02-28 17:30:07.998998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$aRrUg4FD3skAw1w2mJv1XuDXFCV3geP5tiwrDq1UObERkIhFED9k2"], ["created_at", "2015-02-28 17:30:08.003517"], ["updated_at", "2015-02-28 17:30:08.003517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:30:08.005133"], ["user_id", "70a386b4-bf6f-11e4-931a-705681abff85"], ["created_at", "2015-02-28 17:30:08.005905"], ["updated_at", "2015-02-28 17:30:08.005905"], ["token", "hqT53TNjuTYGxsUCCrqLdrpp6WAOx1d52strl8A6C2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:30:08.009643"], ["updated_at", "2015-02-28 17:30:08.009643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '70a386b4-bf6f-11e4-931a-705681abff85' AND "clubhouse_memberships"."organization_id" = '70a5279e-bf6f-11e4-96b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "70a386b4-bf6f-11e4-931a-705681abff85"], ["organization_id", "70a5279e-bf6f-11e4-96b0-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:30:08.020281"], ["updated_at", "2015-02-28 17:30:08.020281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '70a434ec-bf6f-11e4-a808-705681abff85' AND "clubhouse_memberships"."organization_id" = '70a5279e-bf6f-11e4-96b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "70a434ec-bf6f-11e4-a808-705681abff85"], ["organization_id", "70a5279e-bf6f-11e4-96b0-705681abff85"], ["created_at", "2015-02-28 17:30:08.023421"], ["updated_at", "2015-02-28 17:30:08.023421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '70a5279e-bf6f-11e4-96b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "70a5279e-bf6f-11e4-96b0-705681abff85"], ["created_at", "2015-02-28 17:30:08.027318"], ["updated_at", "2015-02-28 17:30:08.027318"], ["token", "KUjDzhD7ZCqFl1qiD1MjvLagQSZOdpuBwJn9ae5UC6k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:30:08 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:30:08.032687' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hqT53TNjuTYGxsUCCrqLdrpp6WAOx1d52strl8A6C2s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:30:08.034038"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:30:08.035054"], ["id", "70a49766-bf6f-11e4-9e06-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "70a386b4-bf6f-11e4-931a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "70a386b4-bf6f-11e4-931a-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "70a5279e-bf6f-11e4-96b0-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '70a5279e-bf6f-11e4-96b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "70a5279e-bf6f-11e4-96b0-705681abff85"], ["created_at", "2015-02-28 17:30:08.044353"], ["updated_at", "2015-02-28 17:30:08.044353"], ["token", "IHM8SB-KD8ypE7fApQ2sn2zCHVT10-duWQGQYpDukYY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a5057ff2-0e7a-4c47-a74b-51b79e34325d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/70aa8dc4-bf6f-11e4-8fcd-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "70aa8dc4-bf6f-11e4-8fcd-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a5057ff2-0e7a-4c47-a74b-51b79e34325d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/70aa8dc4-bf6f-11e4-8fcd-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [a5057ff2-0e7a-4c47-a74b-51b79e34325d] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "70a5279e-bf6f-11e4-96b0-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a5057ff2-0e7a-4c47-a74b-51b79e34325d] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [a5057ff2-0e7a-4c47-a74b-51b79e34325d] Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms [ActiveJob] [ActionMailer::DeliveryJob] [a5057ff2-0e7a-4c47-a74b-51b79e34325d] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [a5057ff2-0e7a-4c47-a74b-51b79e34325d] Date: Sat, 28 Feb 2015 09:30:08 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fb20ce6b_1277c3fdca5865be8589c4@Jasons-Air-2.home.mail> Subject: You've been invited to join org-2 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/IHM8SB-KD8ypE7fApQ2sn2zCHVT10-duWQGQYpDukYY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a5057ff2-0e7a-4c47-a74b-51b79e34325d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.86ms Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$ti8fyRp4/YPpAyxqc4YjeedXEl1nHozFUe.YSN1nZuaJlFrQBYKLm"], ["created_at", "2015-02-28 17:30:08.062784"], ["updated_at", "2015-02-28 17:30:08.062784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$rY1UNzEEz7X1xTWQ0goy9uTf//IqSx.mzMMHbrGXZ.s3CLu8wDR6K"], ["created_at", "2015-02-28 17:30:08.067645"], ["updated_at", "2015-02-28 17:30:08.067645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:30:08.069227"], ["user_id", "70ad48e8-bf6f-11e4-854c-705681abff85"], ["created_at", "2015-02-28 17:30:08.069977"], ["updated_at", "2015-02-28 17:30:08.069977"], ["token", "cUPTf7T26BXWu64uuBReE-9x7P3EYHlIUiywzJcSuH4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:30:08.076021"], ["updated_at", "2015-02-28 17:30:08.076021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '70ad48e8-bf6f-11e4-854c-705681abff85' AND "clubhouse_memberships"."organization_id" = '70af562e-bf6f-11e4-8bd0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "70ad48e8-bf6f-11e4-854c-705681abff85"], ["organization_id", "70af562e-bf6f-11e4-8bd0-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:30:08.080303"], ["updated_at", "2015-02-28 17:30:08.080303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '70adfcf2-bf6f-11e4-9e8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '70af562e-bf6f-11e4-8bd0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "70adfcf2-bf6f-11e4-9e8b-705681abff85"], ["organization_id", "70af562e-bf6f-11e4-8bd0-705681abff85"], ["created_at", "2015-02-28 17:30:08.083544"], ["updated_at", "2015-02-28 17:30:08.083544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '70af562e-bf6f-11e4-8bd0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "70af562e-bf6f-11e4-8bd0-705681abff85"], ["created_at", "2015-02-28 17:30:08.087121"], ["updated_at", "2015-02-28 17:30:08.087121"], ["token", "dZhuLGVFb-mX3TvpVTi8PfaIont5VqkvVyROtHnVowo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:30:08 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:30:08.094392' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cUPTf7T26BXWu64uuBReE-9x7P3EYHlIUiywzJcSuH4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:30:08.095949"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:30:08.098910"], ["id", "70aeacb0-bf6f-11e4-9298-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "70ad48e8-bf6f-11e4-854c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "70ad48e8-bf6f-11e4-854c-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "70af562e-bf6f-11e4-8bd0-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '70af562e-bf6f-11e4-8bd0-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$7Mm2EON5366sGMrOg1SAUurUo9FY05DFIS/tY/uYAnS1fKNin/ZOq"], ["created_at", "2015-02-28 17:30:08.115077"], ["updated_at", "2015-02-28 17:30:08.115077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$boa8wP0myM29sstGZD112uUy6wSd79WPMTIAzULK0TWd8Zlz8v6Ti"], ["created_at", "2015-02-28 17:30:08.119315"], ["updated_at", "2015-02-28 17:30:08.119315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:30:08.120822"], ["user_id", "70b538a0-bf6f-11e4-9d6d-705681abff85"], ["created_at", "2015-02-28 17:30:08.121597"], ["updated_at", "2015-02-28 17:30:08.121597"], ["token", "s9BVUUoI0lwPpRyMYihykQiA9kuPcYJfYgOglEfplLA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:30:08.128903"], ["updated_at", "2015-02-28 17:30:08.128903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '70b538a0-bf6f-11e4-9d6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '70b75590-bf6f-11e4-9f21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "70b538a0-bf6f-11e4-9d6d-705681abff85"], ["organization_id", "70b75590-bf6f-11e4-9f21-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:30:08.132079"], ["updated_at", "2015-02-28 17:30:08.132079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '70b5dddc-bf6f-11e4-9249-705681abff85' AND "clubhouse_memberships"."organization_id" = '70b75590-bf6f-11e4-9f21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "70b5dddc-bf6f-11e4-9249-705681abff85"], ["organization_id", "70b75590-bf6f-11e4-9f21-705681abff85"], ["created_at", "2015-02-28 17:30:08.135031"], ["updated_at", "2015-02-28 17:30:08.135031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '70b75590-bf6f-11e4-9f21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "70b75590-bf6f-11e4-9f21-705681abff85"], ["created_at", "2015-02-28 17:30:08.138373"], ["updated_at", "2015-02-28 17:30:08.138373"], ["token", "UG2-8mlDc4jvgY0xVAnqFPej2QYXm05RDuRufw3dIYw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$qpkjX7Y/AYfAwM50lW8BF.01/P66/M7AYJmK4hVK9TPt5zQZ1d3t."], ["created_at", "2015-02-28 17:31:00.131907"], ["updated_at", "2015-02-28 17:31:00.131907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$5EJlm3N9xBPxf2sFl7Na6e6Ckcau.SkJ3oWTTZCjp9/se/JRQlx9u"], ["created_at", "2015-02-28 17:31:00.137703"], ["updated_at", "2015-02-28 17:31:00.137703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:31:00.158299"], ["user_id", "8fb6883a-bf6f-11e4-9a20-705681abff85"], ["created_at", "2015-02-28 17:31:00.168894"], ["updated_at", "2015-02-28 17:31:00.168894"], ["token", "Ryp_BQvR0fCKJ1fqgqhaufKkVt06BQZJMAzzOyHt5Ys"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:31:00.174421"], ["user_id", "8fb73fbe-bf6f-11e4-a916-705681abff85"], ["created_at", "2015-02-28 17:31:00.176493"], ["updated_at", "2015-02-28 17:31:00.176493"], ["token", "QmTMXpNPq4dyrm65dne1rptihdtQIwu8kfE9YG4Vkzg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:31:00.190624"], ["updated_at", "2015-02-28 17:31:00.190624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fb6883a-bf6f-11e4-9a20-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fbf5c6c-bf6f-11e4-8bb9-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fb6883a-bf6f-11e4-9a20-705681abff85"], ["organization_id", "8fbf5c6c-bf6f-11e4-8bb9-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:31:00.242599"], ["updated_at", "2015-02-28 17:31:00.242599"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fb73fbe-bf6f-11e4-a916-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fbf5c6c-bf6f-11e4-8bb9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8fb73fbe-bf6f-11e4-a916-705681abff85"], ["organization_id", "8fbf5c6c-bf6f-11e4-8bb9-705681abff85"], ["created_at", "2015-02-28 17:31:00.248064"], ["updated_at", "2015-02-28 17:31:00.248064"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8fbf5c6c-bf6f-11e4-8bb9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "8fbf5c6c-bf6f-11e4-8bb9-705681abff85"], ["created_at", "2015-02-28 17:31:00.260256"], ["updated_at", "2015-02-28 17:31:00.260256"], ["token", "rNmdUnIvIJ2rZsQrueAPCDrKaw-8Zbp2Cee1Z9yOElU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:31:00 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:31:00.285711' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ryp_BQvR0fCKJ1fqgqhaufKkVt06BQZJMAzzOyHt5Ys"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:31:00.292937"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:31:00.294086"], ["id", "8fbc4266-bf6f-11e4-9528-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8fb6883a-bf6f-11e4-9a20-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8fb6883a-bf6f-11e4-9a20-705681abff85"], ["name", "org-1"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8fbf5c6c-bf6f-11e4-8bb9-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8fbf5c6c-bf6f-11e4-8bb9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "8fbf5c6c-bf6f-11e4-8bb9-705681abff85"], ["created_at", "2015-02-28 17:31:00.323134"], ["updated_at", "2015-02-28 17:31:00.323134"], ["token", "rl1NMy7pO4nvY4barNiB5-oX57A4Z4zByh280yugW2g"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8aca6ef2-af9b-40a3-bdeb-a872157566e9) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8fd3970e-bf6f-11e4-85e2-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8fd3970e-bf6f-11e4-85e2-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8aca6ef2-af9b-40a3-bdeb-a872157566e9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8fd3970e-bf6f-11e4-85e2-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [8aca6ef2-af9b-40a3-bdeb-a872157566e9] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8fbf5c6c-bf6f-11e4-8bb9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8aca6ef2-af9b-40a3-bdeb-a872157566e9] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [8aca6ef2-af9b-40a3-bdeb-a872157566e9] Clubhouse::Mailer#invitation: processed outbound mail in 249.6ms [ActiveJob] [ActionMailer::DeliveryJob] [8aca6ef2-af9b-40a3-bdeb-a872157566e9] Sent mail to email@example.com (15.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [8aca6ef2-af9b-40a3-bdeb-a872157566e9] Date: Sat, 28 Feb 2015 09:31:00 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fb5494be0_127843fdd36065bf025b8@Jasons-Air-2.home.mail> Subject: You've been invited to join org-1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/rl1NMy7pO4nvY4barNiB5-oX57A4Z4zByh280yugW2g If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [8aca6ef2-af9b-40a3-bdeb-a872157566e9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 265.63ms Completed 201 Created in 338ms (Views: 3.2ms | ActiveRecord: 3.5ms)  (0.3ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (12.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Q8NBlj1N1WSicf8do8qxku8.3ogpdofY4RopDihJsHFodrwD8gfOe"], ["created_at", "2015-02-28 17:31:00.634733"], ["updated_at", "2015-02-28 17:31:00.634733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$N3ls1MpUw8YyTgM4C.192e7Tj68ecPiyofjKtXYBU8XVgM4eon3r6"], ["created_at", "2015-02-28 17:31:00.651589"], ["updated_at", "2015-02-28 17:31:00.651589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:31:00.653207"], ["user_id", "9003197a-bf6f-11e4-a6bc-705681abff85"], ["created_at", "2015-02-28 17:31:00.654031"], ["updated_at", "2015-02-28 17:31:00.654031"], ["token", "5LGGHebdwVcdY1hV8m-m9-Zf5P866fWGrBZexUTOIG4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:31:00.655729"], ["user_id", "9005aa00-bf6f-11e4-9039-705681abff85"], ["created_at", "2015-02-28 17:31:00.656431"], ["updated_at", "2015-02-28 17:31:00.656431"], ["token", "Z9we3SiToTIuGeEO5u8h-MxiNkL8we-N1l3es2CKC8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:31:00.659572"], ["updated_at", "2015-02-28 17:31:00.659572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9003197a-bf6f-11e4-a6bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '9006df4c-bf6f-11e4-ab2c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9003197a-bf6f-11e4-a6bc-705681abff85"], ["organization_id", "9006df4c-bf6f-11e4-ab2c-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:31:00.662882"], ["updated_at", "2015-02-28 17:31:00.662882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9005aa00-bf6f-11e4-9039-705681abff85' AND "clubhouse_memberships"."organization_id" = '9006df4c-bf6f-11e4-ab2c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9005aa00-bf6f-11e4-9039-705681abff85"], ["organization_id", "9006df4c-bf6f-11e4-ab2c-705681abff85"], ["created_at", "2015-02-28 17:31:00.666934"], ["updated_at", "2015-02-28 17:31:00.666934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '9006df4c-bf6f-11e4-ab2c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "9006df4c-bf6f-11e4-ab2c-705681abff85"], ["created_at", "2015-02-28 17:31:00.671043"], ["updated_at", "2015-02-28 17:31:00.671043"], ["token", "2RHOtQtd2DnZa1w6TmJDKb8L6VuDWUvYjX5Lxmk1Cx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:31:00 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:31:00.676508' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5LGGHebdwVcdY1hV8m-m9-Zf5P866fWGrBZexUTOIG4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:31:00.677918"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:31:00.678892"], ["id", "90061030-bf6f-11e4-9274-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9003197a-bf6f-11e4-a6bc-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9003197a-bf6f-11e4-a6bc-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9006df4c-bf6f-11e4-ab2c-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '9006df4c-bf6f-11e4-ab2c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "9006df4c-bf6f-11e4-ab2c-705681abff85"], ["created_at", "2015-02-28 17:31:00.686901"], ["updated_at", "2015-02-28 17:31:00.686901"], ["token", "GUIs9Q-_0fQF0fg_TGzHBG811EvsRTpjlxBobP9z_-w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a41c21e6-9c23-45d6-b17a-7a05ae03cf31) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/900b1346-bf6f-11e4-b0ca-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "900b1346-bf6f-11e4-b0ca-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a41c21e6-9c23-45d6-b17a-7a05ae03cf31] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/900b1346-bf6f-11e4-b0ca-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [a41c21e6-9c23-45d6-b17a-7a05ae03cf31] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9006df4c-bf6f-11e4-ab2c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a41c21e6-9c23-45d6-b17a-7a05ae03cf31] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [a41c21e6-9c23-45d6-b17a-7a05ae03cf31] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [a41c21e6-9c23-45d6-b17a-7a05ae03cf31] Sent mail to email@example.com (3.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [a41c21e6-9c23-45d6-b17a-7a05ae03cf31] Date: Sat, 28 Feb 2015 09:31:00 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fb54a9988_127843fdd36065bf02659@Jasons-Air-2.home.mail> Subject: You've been invited to join org-2 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/GUIs9Q-_0fQF0fg_TGzHBG811EvsRTpjlxBobP9z_-w If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a41c21e6-9c23-45d6-b17a-7a05ae03cf31] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.42ms Completed 201 Created in 22ms (Views: 1.1ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Z01wN5e8cpYuxwVCmWPzOOYvuo65JaiKreulTWoZs4evBUsd2j8Qq"], ["created_at", "2015-02-28 17:31:00.707739"], ["updated_at", "2015-02-28 17:31:00.707739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Cp2HLHziHHEYd8i5djgBEuTPQ9XjVQR.P8uw3xHp3ft6g1.37mOja"], ["created_at", "2015-02-28 17:31:00.712160"], ["updated_at", "2015-02-28 17:31:00.712160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:31:00.713719"], ["user_id", "900e3d3c-bf6f-11e4-8da7-705681abff85"], ["created_at", "2015-02-28 17:31:00.714478"], ["updated_at", "2015-02-28 17:31:00.714478"], ["token", "p8l3QKl-1nLKmpLV1M44-ggy-VSZORJtmpZ98-NfT_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:31:00.716430"], ["user_id", "900ee692-bf6f-11e4-a849-705681abff85"], ["created_at", "2015-02-28 17:31:00.717224"], ["updated_at", "2015-02-28 17:31:00.717224"], ["token", "yD_NZ1TTO5Mb4bQACAm8Ls6r8hUHnO9UHSWbQo92OLo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:31:00.720739"], ["updated_at", "2015-02-28 17:31:00.720739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '900e3d3c-bf6f-11e4-8da7-705681abff85' AND "clubhouse_memberships"."organization_id" = '9010379a-bf6f-11e4-b7e9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "900e3d3c-bf6f-11e4-8da7-705681abff85"], ["organization_id", "9010379a-bf6f-11e4-b7e9-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:31:00.724179"], ["updated_at", "2015-02-28 17:31:00.724179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '900ee692-bf6f-11e4-a849-705681abff85' AND "clubhouse_memberships"."organization_id" = '9010379a-bf6f-11e4-b7e9-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "900ee692-bf6f-11e4-a849-705681abff85"], ["organization_id", "9010379a-bf6f-11e4-b7e9-705681abff85"], ["created_at", "2015-02-28 17:31:00.727488"], ["updated_at", "2015-02-28 17:31:00.727488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '9010379a-bf6f-11e4-b7e9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "9010379a-bf6f-11e4-b7e9-705681abff85"], ["created_at", "2015-02-28 17:31:00.735819"], ["updated_at", "2015-02-28 17:31:00.735819"], ["token", "RyYCiiJ9DiY_kGFEiNIKUABCsbhqV0LzFckWAdcZB5o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:31:00 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:31:00.742061' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p8l3QKl-1nLKmpLV1M44-ggy-VSZORJtmpZ98-NfT_s"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:31:00.743901"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:31:00.745783"], ["id", "900f483a-bf6f-11e4-8121-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "900e3d3c-bf6f-11e4-8da7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "900e3d3c-bf6f-11e4-8da7-705681abff85"], ["name", "org-3"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9010379a-bf6f-11e4-b7e9-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '9010379a-bf6f-11e4-b7e9-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$cwAZMdNCdyLh.O2lIwzl9.XAGOqRwYILT4u7Uwk8LrBQUN08/XJzm"], ["created_at", "2015-02-28 17:31:00.763327"], ["updated_at", "2015-02-28 17:31:00.763327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$tPqlvkc/UVpTxNwTwN.Mq.xgHmR1d5xlJQzhvS4KO.5QMnsNpsQYO"], ["created_at", "2015-02-28 17:31:00.769043"], ["updated_at", "2015-02-28 17:31:00.769043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:31:00.770988"], ["user_id", "9016dc62-bf6f-11e4-8aa4-705681abff85"], ["created_at", "2015-02-28 17:31:00.772503"], ["updated_at", "2015-02-28 17:31:00.772503"], ["token", "MKNLeU7qJ9KrC_wd1aj3sw-wqfPZ_l7l7drchqNmnxs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:31:00.775106"], ["user_id", "90179328-bf6f-11e4-bdbf-705681abff85"], ["created_at", "2015-02-28 17:31:00.775775"], ["updated_at", "2015-02-28 17:31:00.775775"], ["token", "oTlxS76W5ytKqxq70AHnSgQY1vRsAFR_6PMxOChPLRo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:31:00.779111"], ["updated_at", "2015-02-28 17:31:00.779111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9016dc62-bf6f-11e4-8aa4-705681abff85' AND "clubhouse_memberships"."organization_id" = '90191bf8-bf6f-11e4-aa0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9016dc62-bf6f-11e4-8aa4-705681abff85"], ["organization_id", "90191bf8-bf6f-11e4-aa0d-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:31:00.782235"], ["updated_at", "2015-02-28 17:31:00.782235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '90179328-bf6f-11e4-bdbf-705681abff85' AND "clubhouse_memberships"."organization_id" = '90191bf8-bf6f-11e4-aa0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "90179328-bf6f-11e4-bdbf-705681abff85"], ["organization_id", "90191bf8-bf6f-11e4-aa0d-705681abff85"], ["created_at", "2015-02-28 17:31:00.785503"], ["updated_at", "2015-02-28 17:31:00.785503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '90191bf8-bf6f-11e4-aa0d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "90191bf8-bf6f-11e4-aa0d-705681abff85"], ["created_at", "2015-02-28 17:31:00.789420"], ["updated_at", "2015-02-28 17:31:00.789420"], ["token", "i5MsNAY0cA9U0uxj60DeLpSQRS2kqWwHLoQnWOLWEZE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:31:00 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:31:00.794132' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oTlxS76W5ytKqxq70AHnSgQY1vRsAFR_6PMxOChPLRo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:31:00.795738"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:31:00.796737"], ["id", "90189cfa-bf6f-11e4-afc3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "90179328-bf6f-11e4-bdbf-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "90179328-bf6f-11e4-bdbf-705681abff85"], ["name", "org-4"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "90191bf8-bf6f-11e4-aa0d-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '90191bf8-bf6f-11e4-aa0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "90191bf8-bf6f-11e4-aa0d-705681abff85"], ["created_at", "2015-02-28 17:31:00.806821"], ["updated_at", "2015-02-28 17:31:00.806821"], ["token", "Pgf9AY9aonxC0fMiJieiiYfnAP4lVDJn_9tHs6LcF5Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 223b11e9-0484-43dd-8842-5f41b497166c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/901d5f92-bf6f-11e4-a120-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "901d5f92-bf6f-11e4-a120-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [223b11e9-0484-43dd-8842-5f41b497166c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/901d5f92-bf6f-11e4-a120-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [223b11e9-0484-43dd-8842-5f41b497166c] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "90191bf8-bf6f-11e4-aa0d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [223b11e9-0484-43dd-8842-5f41b497166c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [223b11e9-0484-43dd-8842-5f41b497166c] Clubhouse::Mailer#invitation: processed outbound mail in 1.8ms [ActiveJob] [ActionMailer::DeliveryJob] [223b11e9-0484-43dd-8842-5f41b497166c] Sent mail to email@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [223b11e9-0484-43dd-8842-5f41b497166c] Date: Sat, 28 Feb 2015 09:31:00 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fb54c6a6b_127843fdd36065bf0277@Jasons-Air-2.home.mail> Subject: You've been invited to join org-4 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Pgf9AY9aonxC0fMiJieiiYfnAP4lVDJn_9tHs6LcF5Q If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [223b11e9-0484-43dd-8842-5f41b497166c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.34ms Completed 201 Created in 24ms (Views: 1.4ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$fPDtntB5COPYTelGUBVDQOKM8iztzDr/eQIxyjpPiikn3cWyHWMTS"], ["created_at", "2015-02-28 17:35:23.401302"], ["updated_at", "2015-02-28 17:35:23.401302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$7FE9AVhxC6tEEqwDwnMHSu6IpH0X7ZNRfeZ5mKi2m2UQwdY3ugQtK"], ["created_at", "2015-02-28 17:35:23.414910"], ["updated_at", "2015-02-28 17:35:23.414910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:23.423302"], ["user_id", "2ca24bac-bf70-11e4-95ec-705681abff85"], ["created_at", "2015-02-28 17:35:23.429858"], ["updated_at", "2015-02-28 17:35:23.429858"], ["token", "P4sze5_VNLQy-SOz3IWt9R5VAPp6A8rwp5YUK2eDg2Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:23.432334"], ["user_id", "2ca42ada-bf70-11e4-b6b2-705681abff85"], ["created_at", "2015-02-28 17:35:23.433103"], ["updated_at", "2015-02-28 17:35:23.433103"], ["token", "noa5slqcOCRCcCWJVw1IOs760VKbff3WA376CCbdH6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:23.441919"], ["updated_at", "2015-02-28 17:35:23.441919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ca24bac-bf70-11e4-95ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ca8610e-bf70-11e4-874b-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ca24bac-bf70-11e4-95ec-705681abff85"], ["organization_id", "2ca8610e-bf70-11e4-874b-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:23.488085"], ["updated_at", "2015-02-28 17:35:23.488085"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ca42ada-bf70-11e4-b6b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ca8610e-bf70-11e4-874b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ca42ada-bf70-11e4-b6b2-705681abff85"], ["organization_id", "2ca8610e-bf70-11e4-874b-705681abff85"], ["created_at", "2015-02-28 17:35:23.495449"], ["updated_at", "2015-02-28 17:35:23.495449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2ca8610e-bf70-11e4-874b-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "2ca8610e-bf70-11e4-874b-705681abff85"], ["created_at", "2015-02-28 17:35:23.506820"], ["updated_at", "2015-02-28 17:35:23.506820"], ["token", "8NDHylJhliNSd7uwqgReuZbHn0zgPl2SioAEglTSOyI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:23 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:23.537139' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "P4sze5_VNLQy-SOz3IWt9R5VAPp6A8rwp5YUK2eDg2Q"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:23.546241"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:23.549806"], ["id", "2ca68ad2-bf70-11e4-9aa2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2ca24bac-bf70-11e4-95ec-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2ca24bac-bf70-11e4-95ec-705681abff85"], ["name", "org-1"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2ca24bac-bf70-11e4-95ec-705681abff85' LIMIT 1 [["organization_id", "2ca8610e-bf70-11e4-874b-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2ca8610e-bf70-11e4-874b-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '2ca8610e-bf70-11e4-874b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "2ca8610e-bf70-11e4-874b-705681abff85"], ["created_at", "2015-02-28 17:35:23.585535"], ["updated_at", "2015-02-28 17:35:23.585535"], ["token", "YWeE5dPQux4ZhhgZt1Me5LG9wruIwJ_aazyivYAtflA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: bb6f4205-e51e-45f1-addc-55d0d4e7b14a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2cbe496a-bf70-11e4-879d-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2cbe496a-bf70-11e4-879d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [bb6f4205-e51e-45f1-addc-55d0d4e7b14a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2cbe496a-bf70-11e4-879d-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [bb6f4205-e51e-45f1-addc-55d0d4e7b14a] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2ca8610e-bf70-11e4-874b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [bb6f4205-e51e-45f1-addc-55d0d4e7b14a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [bb6f4205-e51e-45f1-addc-55d0d4e7b14a] Clubhouse::Mailer#invitation: processed outbound mail in 253.2ms [ActiveJob] [ActionMailer::DeliveryJob] [bb6f4205-e51e-45f1-addc-55d0d4e7b14a] Sent mail to email@example.com (17.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [bb6f4205-e51e-45f1-addc-55d0d4e7b14a] Date: Sat, 28 Feb 2015 09:35:23 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fc5bd64b6_127a63ffdb5c65be0538cf@Jasons-Air-2.home.mail> Subject: You've been invited to join org-1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/YWeE5dPQux4ZhhgZt1Me5LG9wruIwJ_aazyivYAtflA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [bb6f4205-e51e-45f1-addc-55d0d4e7b14a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 271.67ms Completed 201 Created in 358ms (Views: 3.3ms | ActiveRecord: 4.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$jCU2VGXe0IwNCf5/ljag4./H4UNGBl4/wgp4bytGKeXg1aAg/dXtC"], ["created_at", "2015-02-28 17:35:23.906484"], ["updated_at", "2015-02-28 17:35:23.906484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$zkU796XoTo01j2xSWO7IF.gGJRTuOeLgHqxP3lDWNP.YW7jk5P0Ta"], ["created_at", "2015-02-28 17:35:23.911322"], ["updated_at", "2015-02-28 17:35:23.911322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:23.913240"], ["user_id", "2cef3732-bf70-11e4-ac89-705681abff85"], ["created_at", "2015-02-28 17:35:23.914996"], ["updated_at", "2015-02-28 17:35:23.914996"], ["token", "mETXHYBo_9anLXW4tWvh8GcWIDT9if1vlWZaK0hETNM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:23.917579"], ["user_id", "2cefea60-bf70-11e4-ac14-705681abff85"], ["created_at", "2015-02-28 17:35:23.918326"], ["updated_at", "2015-02-28 17:35:23.918326"], ["token", "YMxmNOUMBxfISej4gzM_b0GArOuwjZjOUXFafYWvHWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:23.922899"], ["updated_at", "2015-02-28 17:35:23.922899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cef3732-bf70-11e4-ac89-705681abff85' AND "clubhouse_memberships"."organization_id" = '2cf1b5ca-bf70-11e4-acdc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cef3732-bf70-11e4-ac89-705681abff85"], ["organization_id", "2cf1b5ca-bf70-11e4-acdc-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:23.926763"], ["updated_at", "2015-02-28 17:35:23.926763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cefea60-bf70-11e4-ac14-705681abff85' AND "clubhouse_memberships"."organization_id" = '2cf1b5ca-bf70-11e4-acdc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2cefea60-bf70-11e4-ac14-705681abff85"], ["organization_id", "2cf1b5ca-bf70-11e4-acdc-705681abff85"], ["created_at", "2015-02-28 17:35:23.932269"], ["updated_at", "2015-02-28 17:35:23.932269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '2cf1b5ca-bf70-11e4-acdc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "2cf1b5ca-bf70-11e4-acdc-705681abff85"], ["created_at", "2015-02-28 17:35:23.937599"], ["updated_at", "2015-02-28 17:35:23.937599"], ["token", "F6Hm0uwm-0Zk0qn--j5yBb1m4ZU488TX6g_vurj6x00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:23 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:23.943037' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mETXHYBo_9anLXW4tWvh8GcWIDT9if1vlWZaK0hETNM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:23.944549"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:23.945597"], ["id", "2cf099c4-bf70-11e4-8d85-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2cef3732-bf70-11e4-ac89-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2cef3732-bf70-11e4-ac89-705681abff85"], ["name", "org-2"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2cef3732-bf70-11e4-ac89-705681abff85' LIMIT 1 [["organization_id", "2cf1b5ca-bf70-11e4-acdc-705681abff85"]]  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2cf1b5ca-bf70-11e4-acdc-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '2cf1b5ca-bf70-11e4-acdc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "2cf1b5ca-bf70-11e4-acdc-705681abff85"], ["created_at", "2015-02-28 17:35:23.957739"], ["updated_at", "2015-02-28 17:35:23.957739"], ["token", "YyUVah6rqZBVGcuEWKOjhKGbjgCrG9zZX6Tue9wgYwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: bba9f5ee-e48d-4723-af15-bb4678fa710c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2cf704ee-bf70-11e4-bdc3-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2cf704ee-bf70-11e4-bdc3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [bba9f5ee-e48d-4723-af15-bb4678fa710c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2cf704ee-bf70-11e4-bdc3-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [bba9f5ee-e48d-4723-af15-bb4678fa710c] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2cf1b5ca-bf70-11e4-acdc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [bba9f5ee-e48d-4723-af15-bb4678fa710c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [bba9f5ee-e48d-4723-af15-bb4678fa710c] Clubhouse::Mailer#invitation: processed outbound mail in 3.4ms [ActiveJob] [ActionMailer::DeliveryJob] [bba9f5ee-e48d-4723-af15-bb4678fa710c] Sent mail to email@example.com (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [bba9f5ee-e48d-4723-af15-bb4678fa710c] Date: Sat, 28 Feb 2015 09:35:23 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fc5bec250_127a63ffdb5c65be053915@Jasons-Air-2.home.mail> Subject: You've been invited to join org-2 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/YyUVah6rqZBVGcuEWKOjhKGbjgCrG9zZX6Tue9wgYwc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [bba9f5ee-e48d-4723-af15-bb4678fa710c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.36ms Completed 201 Created in 28ms (Views: 1.2ms | ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$dROfyprO2BajfajA1Yq3g.w0pZr9fvoBkJ3wMSvGZSLlIocGmVdV6"], ["created_at", "2015-02-28 17:35:23.980514"], ["updated_at", "2015-02-28 17:35:23.980514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$67.jk5ID60dQXdkFmqofOOZp.UyjTuuA8en5x3mgCAjt7eRD.QzPa"], ["created_at", "2015-02-28 17:35:23.987322"], ["updated_at", "2015-02-28 17:35:23.987322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:23.989546"], ["user_id", "2cfa9500-bf70-11e4-abc1-705681abff85"], ["created_at", "2015-02-28 17:35:23.990350"], ["updated_at", "2015-02-28 17:35:23.990350"], ["token", "GPnVrcJzW8F3rw5fNLvMOWEDH39z5X1c_NgJ29jlVh8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:23.992175"], ["user_id", "2cfb8e6a-bf70-11e4-a3d8-705681abff85"], ["created_at", "2015-02-28 17:35:23.992882"], ["updated_at", "2015-02-28 17:35:23.992882"], ["token", "aRqPcnTLjYwO_Lm6uj27c9uxiLo1yPvRsdTNb9wVU4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:23.997011"], ["updated_at", "2015-02-28 17:35:23.997011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cfa9500-bf70-11e4-abc1-705681abff85' AND "clubhouse_memberships"."organization_id" = '2cfd0e3e-bf70-11e4-b935-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cfa9500-bf70-11e4-abc1-705681abff85"], ["organization_id", "2cfd0e3e-bf70-11e4-b935-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:24.001698"], ["updated_at", "2015-02-28 17:35:24.001698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cfb8e6a-bf70-11e4-a3d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '2cfd0e3e-bf70-11e4-b935-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2cfb8e6a-bf70-11e4-a3d8-705681abff85"], ["organization_id", "2cfd0e3e-bf70-11e4-b935-705681abff85"], ["created_at", "2015-02-28 17:35:24.008702"], ["updated_at", "2015-02-28 17:35:24.008702"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '2cfd0e3e-bf70-11e4-b935-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "2cfd0e3e-bf70-11e4-b935-705681abff85"], ["created_at", "2015-02-28 17:35:24.016577"], ["updated_at", "2015-02-28 17:35:24.016577"], ["token", "yxLZt5FVMB1SffKAT0TIcInZ7yU5MPBy0gyKOe50IbY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:24 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:24.025834' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GPnVrcJzW8F3rw5fNLvMOWEDH39z5X1c_NgJ29jlVh8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:24.027621"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:24.028651"], ["id", "2cfbffee-bf70-11e4-be4c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2cfa9500-bf70-11e4-abc1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2cfa9500-bf70-11e4-abc1-705681abff85"], ["name", "org-3"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2cfa9500-bf70-11e4-abc1-705681abff85' LIMIT 1 [["organization_id", "2cfd0e3e-bf70-11e4-b935-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2cfd0e3e-bf70-11e4-b935-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '2cfd0e3e-bf70-11e4-b935-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$u.7pirf.lB2oSdkEPKBdVuKFPBqgwfsy/txXi5O/7XTzwN94/YJcK"], ["created_at", "2015-02-28 17:35:24.049521"], ["updated_at", "2015-02-28 17:35:24.049521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$QVDNeBPYII.dZ.qGqPID.eyl54xS0eh4MPyzmzzJBDfu/8emPNZ.m"], ["created_at", "2015-02-28 17:35:24.055536"], ["updated_at", "2015-02-28 17:35:24.055536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:24.057244"], ["user_id", "2d05175a-bf70-11e4-bf1f-705681abff85"], ["created_at", "2015-02-28 17:35:24.058076"], ["updated_at", "2015-02-28 17:35:24.058076"], ["token", "KG0rhBQ1XtrewBePF01RMh6NNDxnIA33s2Ha9mWPGwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:24.059838"], ["user_id", "2d05eb9e-bf70-11e4-b07b-705681abff85"], ["created_at", "2015-02-28 17:35:24.060785"], ["updated_at", "2015-02-28 17:35:24.060785"], ["token", "pBIpvy-D9sfg9ztNaz_2Sy67J0Z596SddEPk_vSNFHg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:24.064950"], ["updated_at", "2015-02-28 17:35:24.064950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d05175a-bf70-11e4-bf1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d0761f4-bf70-11e4-8138-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d05175a-bf70-11e4-bf1f-705681abff85"], ["organization_id", "2d0761f4-bf70-11e4-8138-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:24.069800"], ["updated_at", "2015-02-28 17:35:24.069800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d05eb9e-bf70-11e4-b07b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d0761f4-bf70-11e4-8138-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2d05eb9e-bf70-11e4-b07b-705681abff85"], ["organization_id", "2d0761f4-bf70-11e4-8138-705681abff85"], ["created_at", "2015-02-28 17:35:24.073957"], ["updated_at", "2015-02-28 17:35:24.073957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '2d0761f4-bf70-11e4-8138-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "2d0761f4-bf70-11e4-8138-705681abff85"], ["created_at", "2015-02-28 17:35:24.077932"], ["updated_at", "2015-02-28 17:35:24.077932"], ["token", "xIUuI7Be31ucS3tBTDeXxZ0vdIZPHxS8FacJd2oTZew"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:24 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:24.088072' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pBIpvy-D9sfg9ztNaz_2Sy67J0Z596SddEPk_vSNFHg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:24.089939"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:24.091012"], ["id", "2d06c2c6-bf70-11e4-a6c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d05eb9e-bf70-11e4-b07b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2d05eb9e-bf70-11e4-b07b-705681abff85"], ["name", "org-4"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2d05eb9e-bf70-11e4-b07b-705681abff85' LIMIT 1 [["organization_id", "2d0761f4-bf70-11e4-8138-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$03xuoPc4Yb93HEY1G2psY..184p1NHDgMaofWaQAMvKOjFOMhIz3S"], ["created_at", "2015-02-28 17:35:36.966260"], ["updated_at", "2015-02-28 17:35:36.966260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$kZngOGl4g9PmhLGIpIyxue49vkI0e2dnsTzz/mq3vbXWTcLUbu1u6"], ["created_at", "2015-02-28 17:35:36.972358"], ["updated_at", "2015-02-28 17:35:36.972358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:36.980184"], ["user_id", "34b81d94-bf70-11e4-b483-705681abff85"], ["created_at", "2015-02-28 17:35:36.986182"], ["updated_at", "2015-02-28 17:35:36.986182"], ["token", "y6EqeBryEI4syVy6ntIDxz12QmoN-Liisw8AKLerzvk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:36.994335"], ["user_id", "34b8ddc4-bf70-11e4-befb-705681abff85"], ["created_at", "2015-02-28 17:35:36.995156"], ["updated_at", "2015-02-28 17:35:36.995156"], ["token", "n1pAIR0IMrb1bpQzA7UUi__jH81lloU12SmRUx5ulfs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:37.003818"], ["updated_at", "2015-02-28 17:35:37.003818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34b81d94-bf70-11e4-b483-705681abff85' AND "clubhouse_memberships"."organization_id" = '34bdb330-bf70-11e4-9be7-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34b81d94-bf70-11e4-b483-705681abff85"], ["organization_id", "34bdb330-bf70-11e4-9be7-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:37.045483"], ["updated_at", "2015-02-28 17:35:37.045483"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34b8ddc4-bf70-11e4-befb-705681abff85' AND "clubhouse_memberships"."organization_id" = '34bdb330-bf70-11e4-9be7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34b8ddc4-bf70-11e4-befb-705681abff85"], ["organization_id", "34bdb330-bf70-11e4-9be7-705681abff85"], ["created_at", "2015-02-28 17:35:37.051283"], ["updated_at", "2015-02-28 17:35:37.051283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '34bdb330-bf70-11e4-9be7-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "34bdb330-bf70-11e4-9be7-705681abff85"], ["created_at", "2015-02-28 17:35:37.061598"], ["updated_at", "2015-02-28 17:35:37.061598"], ["token", "O7HUDoMRD2ueETwGwbliDG01pT756Ro7v7FhC_0M6CY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:37 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:37.088134' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y6EqeBryEI4syVy6ntIDxz12QmoN-Liisw8AKLerzvk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:37.095109"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:37.096360"], ["id", "34bb113e-bf70-11e4-81fe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "34b81d94-bf70-11e4-b483-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "34b81d94-bf70-11e4-b483-705681abff85"], ["name", "org-1"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '34b81d94-bf70-11e4-b483-705681abff85' LIMIT 1 [["organization_id", "34bdb330-bf70-11e4-9be7-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "34bdb330-bf70-11e4-9be7-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '34bdb330-bf70-11e4-9be7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "34bdb330-bf70-11e4-9be7-705681abff85"], ["created_at", "2015-02-28 17:35:37.125490"], ["updated_at", "2015-02-28 17:35:37.125490"], ["token", "lv9B8YL6wksQQw4paTQzE_P04nYxAvu64E_ilKNdaBg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b12a7a18-b2a0-4224-8246-f8f9ebc2db13) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/34d046a8-bf70-11e4-baa6-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "34d046a8-bf70-11e4-baa6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b12a7a18-b2a0-4224-8246-f8f9ebc2db13] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/34d046a8-bf70-11e4-baa6-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [b12a7a18-b2a0-4224-8246-f8f9ebc2db13] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "34bdb330-bf70-11e4-9be7-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b12a7a18-b2a0-4224-8246-f8f9ebc2db13] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [b12a7a18-b2a0-4224-8246-f8f9ebc2db13] Clubhouse::Mailer#invitation: processed outbound mail in 254.4ms [ActiveJob] [ActionMailer::DeliveryJob] [b12a7a18-b2a0-4224-8246-f8f9ebc2db13] Sent mail to email@example.com (45.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [b12a7a18-b2a0-4224-8246-f8f9ebc2db13] Date: Sat, 28 Feb 2015 09:35:37 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fc696e7b2_127aa3feefe065be474b7@Jasons-Air-2.home.mail> Subject: You've been invited to join org-1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/lv9B8YL6wksQQw4paTQzE_P04nYxAvu64E_ilKNdaBg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b12a7a18-b2a0-4224-8246-f8f9ebc2db13] Performed ActionMailer::DeliveryJob from Inline(mailers) in 300.96ms Completed 201 Created in 397ms (Views: 4.2ms | ActiveRecord: 3.7ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (3.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$iAEjj1TT4WcoDsvq1Qx5.eGeyOW60uf8QMscZ4mNX9RyN8fpA1vWy"], ["created_at", "2015-02-28 17:35:37.496593"], ["updated_at", "2015-02-28 17:35:37.496593"]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (2.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$V3lZAVfAtCH.EkmpS8atqu.oONsbFsDp/XbQnAUqZmn8Jns/0VEDu"], ["created_at", "2015-02-28 17:35:37.522858"], ["updated_at", "2015-02-28 17:35:37.522858"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:37.528826"], ["user_id", "350a36a6-bf70-11e4-ba08-705681abff85"], ["created_at", "2015-02-28 17:35:37.532700"], ["updated_at", "2015-02-28 17:35:37.532700"], ["token", "hfpiW03r-GEltMIBebOvsIHK0zjIzfQ7NY3Yf-HokFg"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:37.541358"], ["user_id", "350d4616-bf70-11e4-8486-705681abff85"], ["created_at", "2015-02-28 17:35:37.545051"], ["updated_at", "2015-02-28 17:35:37.545051"], ["token", "PmSPKn9nCp0nbubDbUS6fx_HFA5HNlbrEWge9OB2uVg"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:37.556498"], ["updated_at", "2015-02-28 17:35:37.556498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '350a36a6-bf70-11e4-ba08-705681abff85' AND "clubhouse_memberships"."organization_id" = '35120b4c-bf70-11e4-998d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "350a36a6-bf70-11e4-ba08-705681abff85"], ["organization_id", "35120b4c-bf70-11e4-998d-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:37.561037"], ["updated_at", "2015-02-28 17:35:37.561037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '350d4616-bf70-11e4-8486-705681abff85' AND "clubhouse_memberships"."organization_id" = '35120b4c-bf70-11e4-998d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "350d4616-bf70-11e4-8486-705681abff85"], ["organization_id", "35120b4c-bf70-11e4-998d-705681abff85"], ["created_at", "2015-02-28 17:35:37.564557"], ["updated_at", "2015-02-28 17:35:37.564557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '35120b4c-bf70-11e4-998d-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "35120b4c-bf70-11e4-998d-705681abff85"], ["created_at", "2015-02-28 17:35:37.568412"], ["updated_at", "2015-02-28 17:35:37.568412"], ["token", "kMzb7ni8wY1vX7TshyMttJ49Kh-U4QCmoHmKgOz0-s4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:37 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:37.575376' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hfpiW03r-GEltMIBebOvsIHK0zjIzfQ7NY3Yf-HokFg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:37.576932"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:37.577859"], ["id", "350ec752-bf70-11e4-83c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "350a36a6-bf70-11e4-ba08-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "350a36a6-bf70-11e4-ba08-705681abff85"], ["name", "org-2"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '350a36a6-bf70-11e4-ba08-705681abff85' LIMIT 1 [["organization_id", "35120b4c-bf70-11e4-998d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35120b4c-bf70-11e4-998d-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '35120b4c-bf70-11e4-998d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$/UZ.vx3ve//fG7ZuzQRuUeLgKxbmp3IT0oZvc7sf8pViWgc0Y9Mdm"], ["created_at", "2015-02-28 17:35:37.594827"], ["updated_at", "2015-02-28 17:35:37.594827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$x2xLZ5nFDZ7mHHz7bH5giu3CxBQ/5baB9O6uFAkVTf7scDgy8VuAW"], ["created_at", "2015-02-28 17:35:37.600552"], ["updated_at", "2015-02-28 17:35:37.600552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:37.602170"], ["user_id", "3517d8ba-bf70-11e4-b765-705681abff85"], ["created_at", "2015-02-28 17:35:37.603139"], ["updated_at", "2015-02-28 17:35:37.603139"], ["token", "U0uj1qWSS9CjpaLmXCwp-BNgjWPKtrD3ELC3n4eUe9A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:37.605129"], ["user_id", "3518b776-bf70-11e4-910b-705681abff85"], ["created_at", "2015-02-28 17:35:37.606407"], ["updated_at", "2015-02-28 17:35:37.606407"], ["token", "VmBojeJZO64R8xufMWUNQcwSVN-yb6q9wCP6phN71DM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:37.612084"], ["updated_at", "2015-02-28 17:35:37.612084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3517d8ba-bf70-11e4-b765-705681abff85' AND "clubhouse_memberships"."organization_id" = '351a89ac-bf70-11e4-8fc7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3517d8ba-bf70-11e4-b765-705681abff85"], ["organization_id", "351a89ac-bf70-11e4-8fc7-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:37.616512"], ["updated_at", "2015-02-28 17:35:37.616512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3518b776-bf70-11e4-910b-705681abff85' AND "clubhouse_memberships"."organization_id" = '351a89ac-bf70-11e4-8fc7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3518b776-bf70-11e4-910b-705681abff85"], ["organization_id", "351a89ac-bf70-11e4-8fc7-705681abff85"], ["created_at", "2015-02-28 17:35:37.619947"], ["updated_at", "2015-02-28 17:35:37.619947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '351a89ac-bf70-11e4-8fc7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "351a89ac-bf70-11e4-8fc7-705681abff85"], ["created_at", "2015-02-28 17:35:37.623689"], ["updated_at", "2015-02-28 17:35:37.623689"], ["token", "842x1y5dc_v_OtSYBYEoTc6Qj1hSkkLBmGd7zauzLXQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:37 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:37.629274' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U0uj1qWSS9CjpaLmXCwp-BNgjWPKtrD3ELC3n4eUe9A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:37.630865"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:37.631999"], ["id", "3519238c-bf70-11e4-b924-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3517d8ba-bf70-11e4-b765-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3517d8ba-bf70-11e4-b765-705681abff85"], ["name", "org-3"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3517d8ba-bf70-11e4-b765-705681abff85' LIMIT 1 [["organization_id", "351a89ac-bf70-11e4-8fc7-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "351a89ac-bf70-11e4-8fc7-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '351a89ac-bf70-11e4-8fc7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "351a89ac-bf70-11e4-8fc7-705681abff85"], ["created_at", "2015-02-28 17:35:37.645106"], ["updated_at", "2015-02-28 17:35:37.645106"], ["token", "9pAdkFRADsaM8Po-ujcBX_x0e_odI75Di8MOwW9xZlQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3c499f43-7ef1-46ed-9d7c-d6b312f8f85e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/351f89ca-bf70-11e4-bae2-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "351f89ca-bf70-11e4-bae2-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3c499f43-7ef1-46ed-9d7c-d6b312f8f85e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/351f89ca-bf70-11e4-bae2-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [3c499f43-7ef1-46ed-9d7c-d6b312f8f85e] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "351a89ac-bf70-11e4-8fc7-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3c499f43-7ef1-46ed-9d7c-d6b312f8f85e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [3c499f43-7ef1-46ed-9d7c-d6b312f8f85e] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [3c499f43-7ef1-46ed-9d7c-d6b312f8f85e] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [3c499f43-7ef1-46ed-9d7c-d6b312f8f85e] Date: Sat, 28 Feb 2015 09:35:37 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fc699f319_127aa3feefe065be4759b@Jasons-Air-2.home.mail> Subject: You've been invited to join org-3 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/9pAdkFRADsaM8Po-ujcBX_x0e_odI75Di8MOwW9xZlQ If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [3c499f43-7ef1-46ed-9d7c-d6b312f8f85e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.81ms Completed 201 Created in 25ms (Views: 0.8ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$oOAP3vM9CLFEmsJIeL6mcujreTDOEIOfDcCSwW4rr35.vEIYXVVAi"], ["created_at", "2015-02-28 17:35:37.661576"], ["updated_at", "2015-02-28 17:35:37.661576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$6VDupzE3Vsz4X7joZtlwGOWFjxDf4NbglbqgVHV1uAjZQE255AZRO"], ["created_at", "2015-02-28 17:35:37.665944"], ["updated_at", "2015-02-28 17:35:37.665944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:37.667477"], ["user_id", "352207fe-bf70-11e4-85e6-705681abff85"], ["created_at", "2015-02-28 17:35:37.668253"], ["updated_at", "2015-02-28 17:35:37.668253"], ["token", "j1LFQRgZXN7a3Xfy22IQIfG2zEN5k69p0dwy92fJ9U8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:37.669808"], ["user_id", "3522b104-bf70-11e4-acec-705681abff85"], ["created_at", "2015-02-28 17:35:37.670492"], ["updated_at", "2015-02-28 17:35:37.670492"], ["token", "4AHqzRxfIF2uKS_QFDAautAyrBy45ezBtEKuoj8yuOw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:37.673893"], ["updated_at", "2015-02-28 17:35:37.673893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '352207fe-bf70-11e4-85e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '3523e826-bf70-11e4-ac8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "352207fe-bf70-11e4-85e6-705681abff85"], ["organization_id", "3523e826-bf70-11e4-ac8c-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:37.677158"], ["updated_at", "2015-02-28 17:35:37.677158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3522b104-bf70-11e4-acec-705681abff85' AND "clubhouse_memberships"."organization_id" = '3523e826-bf70-11e4-ac8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3522b104-bf70-11e4-acec-705681abff85"], ["organization_id", "3523e826-bf70-11e4-ac8c-705681abff85"], ["created_at", "2015-02-28 17:35:37.680114"], ["updated_at", "2015-02-28 17:35:37.680114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '3523e826-bf70-11e4-ac8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "3523e826-bf70-11e4-ac8c-705681abff85"], ["created_at", "2015-02-28 17:35:37.684105"], ["updated_at", "2015-02-28 17:35:37.684105"], ["token", "Vc8T17020fwsQ3u585JukbsiBSq3qW6nLMP77RS6Txc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:37 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:37.688969' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "j1LFQRgZXN7a3Xfy22IQIfG2zEN5k69p0dwy92fJ9U8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:37.690640"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:37.691571"], ["id", "35231022-bf70-11e4-b74a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "352207fe-bf70-11e4-85e6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "352207fe-bf70-11e4-85e6-705681abff85"], ["name", "org-4"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '352207fe-bf70-11e4-85e6-705681abff85' LIMIT 1 [["organization_id", "3523e826-bf70-11e4-ac8c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3523e826-bf70-11e4-ac8c-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3523e826-bf70-11e4-ac8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "3523e826-bf70-11e4-ac8c-705681abff85"], ["created_at", "2015-02-28 17:35:37.700345"], ["updated_at", "2015-02-28 17:35:37.700345"], ["token", "A6aXDEHLfRPv3mmrv-jPj2pDoqEEyqpedtAyL-JaOP8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 20ddf0e6-5933-4027-b37f-89b503fb7021) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3527fbe6-bf70-11e4-88fa-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3527fbe6-bf70-11e4-88fa-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [20ddf0e6-5933-4027-b37f-89b503fb7021] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3527fbe6-bf70-11e4-88fa-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [20ddf0e6-5933-4027-b37f-89b503fb7021] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3523e826-bf70-11e4-ac8c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [20ddf0e6-5933-4027-b37f-89b503fb7021] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [20ddf0e6-5933-4027-b37f-89b503fb7021] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [20ddf0e6-5933-4027-b37f-89b503fb7021] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [20ddf0e6-5933-4027-b37f-89b503fb7021] Date: Sat, 28 Feb 2015 09:35:37 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fc69acc30_127aa3feefe065be476cf@Jasons-Air-2.home.mail> Subject: You've been invited to join org-4 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/A6aXDEHLfRPv3mmrv-jPj2pDoqEEyqpedtAyL-JaOP8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [20ddf0e6-5933-4027-b37f-89b503fb7021] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.21ms Completed 201 Created in 21ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ZLPjuTjPEEWfJD9ltarrQOfWasPMdkt.Xa2tdxFnFzMiIIQEFomSG"], ["created_at", "2015-02-28 17:35:45.439456"], ["updated_at", "2015-02-28 17:35:45.439456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$3JsmnNayq8.9.dl8qQDOFONlg30aZAD9.MHMNZ8TGNQWOItYRW2Bu"], ["created_at", "2015-02-28 17:35:45.445563"], ["updated_at", "2015-02-28 17:35:45.445563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:45.453629"], ["user_id", "39c501b2-bf70-11e4-8bb9-705681abff85"], ["created_at", "2015-02-28 17:35:45.459843"], ["updated_at", "2015-02-28 17:35:45.459843"], ["token", "YEzeVm_s5cgXlQYEjRyM6uoO9BpAIEHilSBKyuqHlQQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:45.462613"], ["user_id", "39c5c6ce-bf70-11e4-94df-705681abff85"], ["created_at", "2015-02-28 17:35:45.463393"], ["updated_at", "2015-02-28 17:35:45.463393"], ["token", "BxX0Z0Z7PKT2dXHHJGAu3Uz0n1wppIo794LE2wWDB7Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:45.472490"], ["updated_at", "2015-02-28 17:35:45.472490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39c501b2-bf70-11e4-8bb9-705681abff85' AND "clubhouse_memberships"."organization_id" = '39c9f528-bf70-11e4-a49b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39c501b2-bf70-11e4-8bb9-705681abff85"], ["organization_id", "39c9f528-bf70-11e4-a49b-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:45.518058"], ["updated_at", "2015-02-28 17:35:45.518058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39c5c6ce-bf70-11e4-94df-705681abff85' AND "clubhouse_memberships"."organization_id" = '39c9f528-bf70-11e4-a49b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39c5c6ce-bf70-11e4-94df-705681abff85"], ["organization_id", "39c9f528-bf70-11e4-a49b-705681abff85"], ["created_at", "2015-02-28 17:35:45.522008"], ["updated_at", "2015-02-28 17:35:45.522008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '39c9f528-bf70-11e4-a49b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "39c9f528-bf70-11e4-a49b-705681abff85"], ["created_at", "2015-02-28 17:35:45.532432"], ["updated_at", "2015-02-28 17:35:45.532432"], ["token", "Sd5YCSGJ7sKjFA1IM4vPyDjrZFQuGVP1pJxgZrPxHq8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-1", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:45.557787' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BxX0Z0Z7PKT2dXHHJGAu3Uz0n1wppIo794LE2wWDB7Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:45.565572"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:45.566803"], ["id", "39c88562-bf70-11e4-97d1-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39c5c6ce-bf70-11e4-94df-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "39c5c6ce-bf70-11e4-94df-705681abff85"], ["name", "org-1"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39c5c6ce-bf70-11e4-94df-705681abff85' LIMIT 1 [["organization_id", "39c9f528-bf70-11e4-a49b-705681abff85"]] Completed 500 Internal Server Error in 34ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$/NBi5jj8D1pUkp4KKG..G./Fkpaj0F9AsksHnQJZVCtqGIktDoZ3O"], ["created_at", "2015-02-28 17:35:45.597543"], ["updated_at", "2015-02-28 17:35:45.597543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$0kmBcYJ/j5YDY5M9bYu/wemSynnxqJzvTeT3FU7cDkAQQE8b4DLku"], ["created_at", "2015-02-28 17:35:45.602321"], ["updated_at", "2015-02-28 17:35:45.602321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:45.604076"], ["user_id", "39dcfdc6-bf70-11e4-aece-705681abff85"], ["created_at", "2015-02-28 17:35:45.604865"], ["updated_at", "2015-02-28 17:35:45.604865"], ["token", "UxWSIhE89jkQ0nB5I-x_Is3TYDvBr1yhAMBRKfpouhg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:45.606669"], ["user_id", "39ddb540-bf70-11e4-80f3-705681abff85"], ["created_at", "2015-02-28 17:35:45.607437"], ["updated_at", "2015-02-28 17:35:45.607437"], ["token", "UFv2vAFSxQXmYjp4Ii7S5ac0OZ-goTyVNfBMeFaXids"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:45.611013"], ["updated_at", "2015-02-28 17:35:45.611013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39dcfdc6-bf70-11e4-aece-705681abff85' AND "clubhouse_memberships"."organization_id" = '39df06de-bf70-11e4-8543-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39dcfdc6-bf70-11e4-aece-705681abff85"], ["organization_id", "39df06de-bf70-11e4-8543-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:45.614717"], ["updated_at", "2015-02-28 17:35:45.614717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39ddb540-bf70-11e4-80f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '39df06de-bf70-11e4-8543-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39ddb540-bf70-11e4-80f3-705681abff85"], ["organization_id", "39df06de-bf70-11e4-8543-705681abff85"], ["created_at", "2015-02-28 17:35:45.617974"], ["updated_at", "2015-02-28 17:35:45.617974"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '39df06de-bf70-11e4-8543-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "39df06de-bf70-11e4-8543-705681abff85"], ["created_at", "2015-02-28 17:35:45.621374"], ["updated_at", "2015-02-28 17:35:45.621374"], ["token", "z8_FY_pW3LFv_xX6FeV_Ovum8nEvvk1tSLg755IHzC8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:45.626454' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UxWSIhE89jkQ0nB5I-x_Is3TYDvBr1yhAMBRKfpouhg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:45.628306"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:45.629383"], ["id", "39de1dbe-bf70-11e4-8ae6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39dcfdc6-bf70-11e4-aece-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "39dcfdc6-bf70-11e4-aece-705681abff85"], ["name", "org-2"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39dcfdc6-bf70-11e4-aece-705681abff85' LIMIT 1 [["organization_id", "39df06de-bf70-11e4-8543-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39df06de-bf70-11e4-8543-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '39df06de-bf70-11e4-8543-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 24ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$L.bS5A.WCyvgZLZVlmKkD.WP17tbFV/jdnIArF8WRAn/kSstFdUDu"], ["created_at", "2015-02-28 17:35:45.655679"], ["updated_at", "2015-02-28 17:35:45.655679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Rhdqn3Rc2lZ3nriozbobzePZc8dhBLiCBym2hEn3G/YrRhBpPJvoW"], ["created_at", "2015-02-28 17:35:45.660132"], ["updated_at", "2015-02-28 17:35:45.660132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:45.661921"], ["user_id", "39e5d860-bf70-11e4-8c30-705681abff85"], ["created_at", "2015-02-28 17:35:45.662911"], ["updated_at", "2015-02-28 17:35:45.662911"], ["token", "DX56B7EQOCkAlpeIIvBuVKNq_5s9MT0tFTzpsAu0SWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:45.664931"], ["user_id", "39e682e2-bf70-11e4-baf6-705681abff85"], ["created_at", "2015-02-28 17:35:45.665709"], ["updated_at", "2015-02-28 17:35:45.665709"], ["token", "dKCE7iorflcZtT9WeG60rMmYRrg8mZepFCx7hgqYPXY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:45.669101"], ["updated_at", "2015-02-28 17:35:45.669101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39e5d860-bf70-11e4-8c30-705681abff85' AND "clubhouse_memberships"."organization_id" = '39e7e04c-bf70-11e4-8ad1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39e5d860-bf70-11e4-8c30-705681abff85"], ["organization_id", "39e7e04c-bf70-11e4-8ad1-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:45.672308"], ["updated_at", "2015-02-28 17:35:45.672308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39e682e2-bf70-11e4-baf6-705681abff85' AND "clubhouse_memberships"."organization_id" = '39e7e04c-bf70-11e4-8ad1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39e682e2-bf70-11e4-baf6-705681abff85"], ["organization_id", "39e7e04c-bf70-11e4-8ad1-705681abff85"], ["created_at", "2015-02-28 17:35:45.676014"], ["updated_at", "2015-02-28 17:35:45.676014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '39e7e04c-bf70-11e4-8ad1-705681abff85') LIMIT 1 SQL (3.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "39e7e04c-bf70-11e4-8ad1-705681abff85"], ["created_at", "2015-02-28 17:35:45.679839"], ["updated_at", "2015-02-28 17:35:45.679839"], ["token", "i_t8oWcLJGS94lV0lOll13vnUkK0oDPeqzm3ZRrl6yA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:45.688828' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DX56B7EQOCkAlpeIIvBuVKNq_5s9MT0tFTzpsAu0SWw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:45.690424"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:45.691542"], ["id", "39e6fa74-bf70-11e4-8ff7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39e5d860-bf70-11e4-8c30-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "39e5d860-bf70-11e4-8c30-705681abff85"], ["name", "org-3"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39e5d860-bf70-11e4-8c30-705681abff85' LIMIT 1 [["organization_id", "39e7e04c-bf70-11e4-8ad1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39e7e04c-bf70-11e4-8ad1-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '39e7e04c-bf70-11e4-8ad1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "39e7e04c-bf70-11e4-8ad1-705681abff85"], ["created_at", "2015-02-28 17:35:45.700153"], ["updated_at", "2015-02-28 17:35:45.700153"], ["token", "PfEuQpJnNiuuizBW3QXNOo-3a5LNu-N_u1r2Go5-7LA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 04c01e52-18f5-448a-b66c-8c2437a9ce69) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/39eca9a6-bf70-11e4-943b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "39eca9a6-bf70-11e4-943b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [04c01e52-18f5-448a-b66c-8c2437a9ce69] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/39eca9a6-bf70-11e4-943b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [04c01e52-18f5-448a-b66c-8c2437a9ce69] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39e7e04c-bf70-11e4-8ad1-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [04c01e52-18f5-448a-b66c-8c2437a9ce69] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [04c01e52-18f5-448a-b66c-8c2437a9ce69] Clubhouse::Mailer#invitation: processed outbound mail in 235.0ms [ActiveJob] [ActionMailer::DeliveryJob] [04c01e52-18f5-448a-b66c-8c2437a9ce69] Sent mail to email@example.com (15.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [04c01e52-18f5-448a-b66c-8c2437a9ce69] Date: Sat, 28 Feb 2015 09:35:45 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fc71ec5b8_127ad3fee4e063bec494d7@Jasons-Air-2.home.mail> Subject: You've been invited to join org-3 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/PfEuQpJnNiuuizBW3QXNOo-3a5LNu-N_u1r2Go5-7LA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [04c01e52-18f5-448a-b66c-8c2437a9ce69] Performed ActionMailer::DeliveryJob from Inline(mailers) in 251.01ms Completed 201 Created in 294ms (Views: 3.3ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$esu8ROpsYse/iZesQ.drnOlw/avymxlM5ISrsZgP5U35.wYKIIRvu"], ["created_at", "2015-02-28 17:35:45.990855"], ["updated_at", "2015-02-28 17:35:45.990855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$OS9kYFEDshrfltv6TE7WLe2llzyBI/I/2hc7FfA4ERHlbgEpP/vxm"], ["created_at", "2015-02-28 17:35:45.995607"], ["updated_at", "2015-02-28 17:35:45.995607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:45.997518"], ["user_id", "3a18ff2e-bf70-11e4-a1f8-705681abff85"], ["created_at", "2015-02-28 17:35:45.998314"], ["updated_at", "2015-02-28 17:35:45.998314"], ["token", "_jY2LbewnVbn1XOVBiv0GUya3a4v1KtGdIMT_QTKQ9s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:35:46.000112"], ["user_id", "3a19b46e-bf70-11e4-8ed6-705681abff85"], ["created_at", "2015-02-28 17:35:46.000776"], ["updated_at", "2015-02-28 17:35:46.000776"], ["token", "3qJZnx-pU9GYIVisBRANgY1R41wLyKJkqDvbAEnbapU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:35:46.003966"], ["updated_at", "2015-02-28 17:35:46.003966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a18ff2e-bf70-11e4-a1f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a1af7ac-bf70-11e4-ba88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a18ff2e-bf70-11e4-a1f8-705681abff85"], ["organization_id", "3a1af7ac-bf70-11e4-ba88-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:35:46.007190"], ["updated_at", "2015-02-28 17:35:46.007190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a19b46e-bf70-11e4-8ed6-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a1af7ac-bf70-11e4-ba88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a19b46e-bf70-11e4-8ed6-705681abff85"], ["organization_id", "3a1af7ac-bf70-11e4-ba88-705681abff85"], ["created_at", "2015-02-28 17:35:46.010271"], ["updated_at", "2015-02-28 17:35:46.010271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '3a1af7ac-bf70-11e4-ba88-705681abff85') LIMIT 1 SQL (6.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "3a1af7ac-bf70-11e4-ba88-705681abff85"], ["created_at", "2015-02-28 17:35:46.014456"], ["updated_at", "2015-02-28 17:35:46.014456"], ["token", "w8JxmxR92K2J1EtcR3i-Wn5R5HWycSTlWs-fjoQauyU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:35:46 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:35:46.026659' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_jY2LbewnVbn1XOVBiv0GUya3a4v1KtGdIMT_QTKQ9s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:35:46.028215"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:35:46.030008"], ["id", "3a1a285e-bf70-11e4-b583-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a18ff2e-bf70-11e4-a1f8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3a18ff2e-bf70-11e4-a1f8-705681abff85"], ["name", "org-4"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a18ff2e-bf70-11e4-a1f8-705681abff85' LIMIT 1 [["organization_id", "3a1af7ac-bf70-11e4-ba88-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a1af7ac-bf70-11e4-ba88-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3a1af7ac-bf70-11e4-ba88-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "3a1af7ac-bf70-11e4-ba88-705681abff85"], ["created_at", "2015-02-28 17:35:46.039777"], ["updated_at", "2015-02-28 17:35:46.039777"], ["token", "QkPmC4GoEpJAKYEjEsW7qw_n3ppTXgdUeL9k1IdsJ8Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9804fa36-28cc-483b-9856-5d55a4492e9e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a207aba-bf70-11e4-bdb0-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3a207aba-bf70-11e4-bdb0-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9804fa36-28cc-483b-9856-5d55a4492e9e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a207aba-bf70-11e4-bdb0-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9804fa36-28cc-483b-9856-5d55a4492e9e] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a1af7ac-bf70-11e4-ba88-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9804fa36-28cc-483b-9856-5d55a4492e9e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [9804fa36-28cc-483b-9856-5d55a4492e9e] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [9804fa36-28cc-483b-9856-5d55a4492e9e] Sent mail to email@example.com (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [9804fa36-28cc-483b-9856-5d55a4492e9e] Date: Sat, 28 Feb 2015 09:35:46 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fc72c499_127ad3fee4e063bec4955@Jasons-Air-2.home.mail> Subject: You've been invited to join org-4 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/QkPmC4GoEpJAKYEjEsW7qw_n3ppTXgdUeL9k1IdsJ8Q If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9804fa36-28cc-483b-9856-5d55a4492e9e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.1ms Completed 201 Created in 27ms (Views: 1.1ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$rlv7j4DXLVg/iA4iq6q6ReUdrewx6VKcCAob1WzDZpbwREh.eDjSS"], ["created_at", "2015-02-28 17:43:41.451911"], ["updated_at", "2015-02-28 17:43:41.451911"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$yE4uVVc1szXTJlQHE/WkYevocJ4v2Xu9RELgQTKvjt4AfziFzJ5jC"], ["created_at", "2015-02-28 17:43:41.470069"], ["updated_at", "2015-02-28 17:43:41.470069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:41.490155"], ["user_id", "557f1112-bf71-11e4-a3dc-705681abff85"], ["created_at", "2015-02-28 17:43:41.502049"], ["updated_at", "2015-02-28 17:43:41.502049"], ["token", "AnH9jtua4-zaCDz5foImQ00pbVi2qh5OBabfywmSWr8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:41.513370"], ["user_id", "558182ee-bf71-11e4-9e29-705681abff85"], ["created_at", "2015-02-28 17:43:41.515346"], ["updated_at", "2015-02-28 17:43:41.515346"], ["token", "PiZKuBJt9Q2PD3HmZ_LxSIjKKaHFhYSFWzTHSuUnXbA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:41.535763"], ["updated_at", "2015-02-28 17:43:41.535763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '557f1112-bf71-11e4-a3dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '558b94fa-bf71-11e4-81a9-705681abff85') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "557f1112-bf71-11e4-a3dc-705681abff85"], ["organization_id", "558b94fa-bf71-11e4-81a9-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:41.613574"], ["updated_at", "2015-02-28 17:43:41.613574"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '558182ee-bf71-11e4-9e29-705681abff85' AND "clubhouse_memberships"."organization_id" = '558b94fa-bf71-11e4-81a9-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "558182ee-bf71-11e4-9e29-705681abff85"], ["organization_id", "558b94fa-bf71-11e4-81a9-705681abff85"], ["created_at", "2015-02-28 17:43:41.622841"], ["updated_at", "2015-02-28 17:43:41.622841"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '558b94fa-bf71-11e4-81a9-705681abff85') LIMIT 1 SQL (2.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "558b94fa-bf71-11e4-81a9-705681abff85"], ["created_at", "2015-02-28 17:43:41.645625"], ["updated_at", "2015-02-28 17:43:41.645625"], ["token", "RQ80qVIQKpTolYWOF_-TdjZR5hjN_ZSlHcTt1RuLxbc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:43:41 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Completed 401 Unauthorized in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$i1AIjyeSlbCjMpViNCHoxu.vIwedCcJwKAlsZhQsiD840nTLbDF26"], ["created_at", "2015-02-28 17:43:41.718275"], ["updated_at", "2015-02-28 17:43:41.718275"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$atbp3nLBDsl1KXEC2NcAueqylCqk0Rk43L/4AWK9cI.wFucI9rH.6"], ["created_at", "2015-02-28 17:43:41.732038"], ["updated_at", "2015-02-28 17:43:41.732038"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:41.736366"], ["user_id", "55a78fb6-bf71-11e4-a363-705681abff85"], ["created_at", "2015-02-28 17:43:41.738361"], ["updated_at", "2015-02-28 17:43:41.738361"], ["token", "7QJyF0rdjyadgcAdqbVTiVyxLGFPU66IX02Kh46GIZY"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:41.743896"], ["user_id", "55a97dc6-bf71-11e4-81bb-705681abff85"], ["created_at", "2015-02-28 17:43:41.745953"], ["updated_at", "2015-02-28 17:43:41.745953"], ["token", "T03IDLwANR1UNMKqDsh7YMr-uJI7_4bCXdIQWiKPB98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:41.754496"], ["updated_at", "2015-02-28 17:43:41.754496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55a78fb6-bf71-11e4-a363-705681abff85' AND "clubhouse_memberships"."organization_id" = '55acf33e-bf71-11e4-9dea-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55a78fb6-bf71-11e4-a363-705681abff85"], ["organization_id", "55acf33e-bf71-11e4-9dea-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:41.764458"], ["updated_at", "2015-02-28 17:43:41.764458"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55a97dc6-bf71-11e4-81bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '55acf33e-bf71-11e4-9dea-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55a97dc6-bf71-11e4-81bb-705681abff85"], ["organization_id", "55acf33e-bf71-11e4-9dea-705681abff85"], ["created_at", "2015-02-28 17:43:41.772820"], ["updated_at", "2015-02-28 17:43:41.772820"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '55acf33e-bf71-11e4-9dea-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "55acf33e-bf71-11e4-9dea-705681abff85"], ["created_at", "2015-02-28 17:43:41.782803"], ["updated_at", "2015-02-28 17:43:41.782803"], ["token", "rG3jHvce8jY0d5s1rv3fcbvmeHfgkuDNYMBA146NwBQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:43:41 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:43:41.799133' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "T03IDLwANR1UNMKqDsh7YMr-uJI7_4bCXdIQWiKPB98"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:43:41.813705"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:43:41.818177"], ["id", "55abb212-bf71-11e4-847d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55a97dc6-bf71-11e4-81bb-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55a97dc6-bf71-11e4-81bb-705681abff85"], ["name", "org-2"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '55a97dc6-bf71-11e4-81bb-705681abff85' LIMIT 1 [["organization_id", "55acf33e-bf71-11e4-9dea-705681abff85"]] Completed 500 Internal Server Error in 60ms  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$oYltvguveAouoL.dYgDs4ecOMJaedbCzRnxn3i3CcsRiGKG95GQci"], ["created_at", "2015-02-28 17:43:41.869646"], ["updated_at", "2015-02-28 17:43:41.869646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$dbht7cV1H.0heqXJlRCtUObH4R5S25fwoamLHEbomRoKkR/MOTCRO"], ["created_at", "2015-02-28 17:43:41.877716"], ["updated_at", "2015-02-28 17:43:41.877716"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:41.880320"], ["user_id", "55be7212-bf71-11e4-aab4-705681abff85"], ["created_at", "2015-02-28 17:43:41.881870"], ["updated_at", "2015-02-28 17:43:41.881870"], ["token", "KcmoQk7bSlFy_8EZuoNdXTiNaVcmNBY-cFB6QUnV9qI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:41.885915"], ["user_id", "55bfa29a-bf71-11e4-aeb5-705681abff85"], ["created_at", "2015-02-28 17:43:41.887298"], ["updated_at", "2015-02-28 17:43:41.887298"], ["token", "MrTv_ZxQfJlU96q5kWnEtKOx6XgIidomAySLIC16aLA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:41.893733"], ["updated_at", "2015-02-28 17:43:41.893733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55be7212-bf71-11e4-aab4-705681abff85' AND "clubhouse_memberships"."organization_id" = '55c218a4-bf71-11e4-a80d-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55be7212-bf71-11e4-aab4-705681abff85"], ["organization_id", "55c218a4-bf71-11e4-a80d-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:41.900828"], ["updated_at", "2015-02-28 17:43:41.900828"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55bfa29a-bf71-11e4-aeb5-705681abff85' AND "clubhouse_memberships"."organization_id" = '55c218a4-bf71-11e4-a80d-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55bfa29a-bf71-11e4-aeb5-705681abff85"], ["organization_id", "55c218a4-bf71-11e4-a80d-705681abff85"], ["created_at", "2015-02-28 17:43:41.906756"], ["updated_at", "2015-02-28 17:43:41.906756"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '55c218a4-bf71-11e4-a80d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "55c218a4-bf71-11e4-a80d-705681abff85"], ["created_at", "2015-02-28 17:43:41.914387"], ["updated_at", "2015-02-28 17:43:41.914387"], ["token", "9v9iaFX949T3b-4Uj4o6z-9zAWGDRh6EYHq0DyzHmXQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:43:41 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:43:41.923412' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KcmoQk7bSlFy_8EZuoNdXTiNaVcmNBY-cFB6QUnV9qI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:43:41.925387"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:43:41.927647"], ["id", "55c06612-bf71-11e4-a6a8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55be7212-bf71-11e4-aab4-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55be7212-bf71-11e4-aab4-705681abff85"], ["name", "org-3"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '55be7212-bf71-11e4-aab4-705681abff85' LIMIT 1 [["organization_id", "55c218a4-bf71-11e4-a80d-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "55c218a4-bf71-11e4-a80d-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '55c218a4-bf71-11e4-a80d-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 44ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$8fiK8JN3gQnhvVzi3RwMR.4ROvSussy1cC2DmgWg8ifpJBoBYseMe"], ["created_at", "2015-02-28 17:43:41.976691"], ["updated_at", "2015-02-28 17:43:41.976691"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$fBGxoTMKSbCBd/0OYnieK.QJnQ7HBFcicBgx0Iixo7zMGN0rRHOmG"], ["created_at", "2015-02-28 17:43:41.984985"], ["updated_at", "2015-02-28 17:43:41.984985"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:41.988309"], ["user_id", "55cecfea-bf71-11e4-b33f-705681abff85"], ["created_at", "2015-02-28 17:43:41.990274"], ["updated_at", "2015-02-28 17:43:41.990274"], ["token", "jYhzISs8HT-efWvS7wODYxSINrXrV5L0QgsdkqkUeX8"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:41.994126"], ["user_id", "55d0043c-bf71-11e4-888a-705681abff85"], ["created_at", "2015-02-28 17:43:41.995409"], ["updated_at", "2015-02-28 17:43:41.995409"], ["token", "gt6qlsLAJ-Q5ThWTdJfI4MNq2MuVviZbGp1TnQL9DTw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:42.001940"], ["updated_at", "2015-02-28 17:43:42.001940"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55cecfea-bf71-11e4-b33f-705681abff85' AND "clubhouse_memberships"."organization_id" = '55d295e4-bf71-11e4-a5fa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55cecfea-bf71-11e4-b33f-705681abff85"], ["organization_id", "55d295e4-bf71-11e4-a5fa-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:42.010895"], ["updated_at", "2015-02-28 17:43:42.010895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55d0043c-bf71-11e4-888a-705681abff85' AND "clubhouse_memberships"."organization_id" = '55d295e4-bf71-11e4-a5fa-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55d0043c-bf71-11e4-888a-705681abff85"], ["organization_id", "55d295e4-bf71-11e4-a5fa-705681abff85"], ["created_at", "2015-02-28 17:43:42.017294"], ["updated_at", "2015-02-28 17:43:42.017294"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '55d295e4-bf71-11e4-a5fa-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "55d295e4-bf71-11e4-a5fa-705681abff85"], ["created_at", "2015-02-28 17:43:42.023395"], ["updated_at", "2015-02-28 17:43:42.023395"], ["token", "ohNnv5BpCfMTednyVJ0Z6AaU_OhxMnssWbec4ZzOmsw"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:43:42 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:43:42.032617' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jYhzISs8HT-efWvS7wODYxSINrXrV5L0QgsdkqkUeX8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:43:42.035835"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:43:42.037995"], ["id", "55d0e7c6-bf71-11e4-b44b-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55cecfea-bf71-11e4-b33f-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55cecfea-bf71-11e4-b33f-705681abff85"], ["name", "org-4"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '55cecfea-bf71-11e4-b33f-705681abff85' LIMIT 1 [["organization_id", "55d295e4-bf71-11e4-a5fa-705681abff85"]]  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "55d295e4-bf71-11e4-a5fa-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '55d295e4-bf71-11e4-a5fa-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "55d295e4-bf71-11e4-a5fa-705681abff85"], ["created_at", "2015-02-28 17:43:42.058393"], ["updated_at", "2015-02-28 17:43:42.058393"], ["token", "KF_ECP9eVUCBbz5LI2nMYb-r6vNJQgiuIAHF-aJLL7Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0fd2e7fd-4f1a-40a1-91ff-6fcd1b50b6c2) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/55db6ee4-bf71-11e4-b06c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (2.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "55db6ee4-bf71-11e4-b06c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0fd2e7fd-4f1a-40a1-91ff-6fcd1b50b6c2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/55db6ee4-bf71-11e4-b06c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [0fd2e7fd-4f1a-40a1-91ff-6fcd1b50b6c2] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "55d295e4-bf71-11e4-a5fa-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0fd2e7fd-4f1a-40a1-91ff-6fcd1b50b6c2] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (5.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [0fd2e7fd-4f1a-40a1-91ff-6fcd1b50b6c2] Clubhouse::Mailer#invitation: processed outbound mail in 759.3ms [ActiveJob] [ActionMailer::DeliveryJob] [0fd2e7fd-4f1a-40a1-91ff-6fcd1b50b6c2] Sent mail to email@example.com (27.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [0fd2e7fd-4f1a-40a1-91ff-6fcd1b50b6c2] Date: Sat, 28 Feb 2015 09:43:43 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fe4f7999_127f33ff781453be438472@Jasons-Air-2.home.mail> Subject: You've been invited to join org-4 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/KF_ECP9eVUCBbz5LI2nMYb-r6vNJQgiuIAHF-aJLL7Q If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0fd2e7fd-4f1a-40a1-91ff-6fcd1b50b6c2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 788.88ms Completed 201 Created in 1023ms (Views: 4.3ms | ActiveRecord: 7.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$/M1bZ/MZOLeaLS1T3KsQKOorV9GZnzmp.X6dzqNUkaA8A4SzXfJc."], ["created_at", "2015-02-28 17:43:43.070290"], ["updated_at", "2015-02-28 17:43:43.070290"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ZLCjL3eMjPf02xZ/pL9VB./W3YWTY2leuquFfzS5yPwJ..ha0YByC"], ["created_at", "2015-02-28 17:43:43.078977"], ["updated_at", "2015-02-28 17:43:43.078977"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:43.082362"], ["user_id", "5675b648-bf71-11e4-bc35-705681abff85"], ["created_at", "2015-02-28 17:43:43.083931"], ["updated_at", "2015-02-28 17:43:43.083931"], ["token", "hXBSIStOV_CGvo8yEMorWRX9QfD-yn4p72-El-QwAwM"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:43.087716"], ["user_id", "5676fc1a-bf71-11e4-b352-705681abff85"], ["created_at", "2015-02-28 17:43:43.089724"], ["updated_at", "2015-02-28 17:43:43.089724"], ["token", "QBja8k0g86j2DmyPYnnp2qCWT0pbFeKMZFvgIHjy8IY"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:43.099840"], ["updated_at", "2015-02-28 17:43:43.099840"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5675b648-bf71-11e4-bc35-705681abff85' AND "clubhouse_memberships"."organization_id" = '567a35ec-bf71-11e4-9e1f-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5675b648-bf71-11e4-bc35-705681abff85"], ["organization_id", "567a35ec-bf71-11e4-9e1f-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:43.112004"], ["updated_at", "2015-02-28 17:43:43.112004"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5676fc1a-bf71-11e4-b352-705681abff85' AND "clubhouse_memberships"."organization_id" = '567a35ec-bf71-11e4-9e1f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5676fc1a-bf71-11e4-b352-705681abff85"], ["organization_id", "567a35ec-bf71-11e4-9e1f-705681abff85"], ["created_at", "2015-02-28 17:43:43.118876"], ["updated_at", "2015-02-28 17:43:43.118876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '567a35ec-bf71-11e4-9e1f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "567a35ec-bf71-11e4-9e1f-705681abff85"], ["created_at", "2015-02-28 17:43:43.125256"], ["updated_at", "2015-02-28 17:43:43.125256"], ["token", "qD9t6PgmcmL-loyo3EW9Q1qmUF-J15qeuO9Z_ZtAED8"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:43:43 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-5", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:43:43.225861' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hXBSIStOV_CGvo8yEMorWRX9QfD-yn4p72-El-QwAwM"]]  (1.7ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:43:43.230728"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:43:43.235835"], ["id", "5677bc68-bf71-11e4-96c8-705681abff85"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5675b648-bf71-11e4-bc35-705681abff85"]] Clubhouse::Organization Load (1.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5675b648-bf71-11e4-bc35-705681abff85"], ["name", "org-5"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5675b648-bf71-11e4-bc35-705681abff85' LIMIT 1 [["organization_id", "567a35ec-bf71-11e4-9e1f-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "567a35ec-bf71-11e4-9e1f-705681abff85"]] Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '567a35ec-bf71-11e4-9e1f-705681abff85') LIMIT 1 SQL (3.2ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "567a35ec-bf71-11e4-9e1f-705681abff85"], ["created_at", "2015-02-28 17:43:43.270601"], ["updated_at", "2015-02-28 17:43:43.270601"], ["token", "NIfroKAQ9CvWITkRmP5yOt0Q0XBUdghTN-HdFSx3KxY"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0621800f-653b-48a9-9f40-1e213d67c6d4) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/569456d4-bf71-11e4-accd-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "569456d4-bf71-11e4-accd-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0621800f-653b-48a9-9f40-1e213d67c6d4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/569456d4-bf71-11e4-accd-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [0621800f-653b-48a9-9f40-1e213d67c6d4] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "567a35ec-bf71-11e4-9e1f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0621800f-653b-48a9-9f40-1e213d67c6d4] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [0621800f-653b-48a9-9f40-1e213d67c6d4] Clubhouse::Mailer#invitation: processed outbound mail in 8.4ms [ActiveJob] [ActionMailer::DeliveryJob] [0621800f-653b-48a9-9f40-1e213d67c6d4] Sent mail to email@example.com (7.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [0621800f-653b-48a9-9f40-1e213d67c6d4] Date: Sat, 28 Feb 2015 09:43:43 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fe4f4912c_127f33ff781453be4385c9@Jasons-Air-2.home.mail> Subject: You've been invited to join org-5 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/NIfroKAQ9CvWITkRmP5yOt0Q0XBUdghTN-HdFSx3KxY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0621800f-653b-48a9-9f40-1e213d67c6d4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 16.93ms Completed 201 Created in 99ms (Views: 19.7ms | ActiveRecord: 11.6ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$YfDp2glWmB.uf5jmMp2X8OM8AcZjEUzY6thgGQRIMH4JuwgdAFKam"], ["created_at", "2015-02-28 17:43:43.345575"], ["updated_at", "2015-02-28 17:43:43.345575"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$F5K.v38UOdjwOB6pKHnopussmvHmp2HWej85uCAoY6BYHzjxOsql6"], ["created_at", "2015-02-28 17:43:43.354239"], ["updated_at", "2015-02-28 17:43:43.354239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:43.357258"], ["user_id", "569fad9a-bf71-11e4-b4e1-705681abff85"], ["created_at", "2015-02-28 17:43:43.359081"], ["updated_at", "2015-02-28 17:43:43.359081"], ["token", "ic5SJRb93Go2cHU8k0UhqwuTbkHF1DtHbmUnMhmxpAE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:43.362572"], ["user_id", "56a0ecbe-bf71-11e4-b1e2-705681abff85"], ["created_at", "2015-02-28 17:43:43.364010"], ["updated_at", "2015-02-28 17:43:43.364010"], ["token", "OTN8tjYZmCeBQ2Bsi817mhQ3GIgzNX7XXt2yuZ0XElw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:43.371012"], ["updated_at", "2015-02-28 17:43:43.371012"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '569fad9a-bf71-11e4-b4e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '56a3c84e-bf71-11e4-b91b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "569fad9a-bf71-11e4-b4e1-705681abff85"], ["organization_id", "56a3c84e-bf71-11e4-b91b-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:43.380390"], ["updated_at", "2015-02-28 17:43:43.380390"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56a0ecbe-bf71-11e4-b1e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '56a3c84e-bf71-11e4-b91b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56a0ecbe-bf71-11e4-b1e2-705681abff85"], ["organization_id", "56a3c84e-bf71-11e4-b91b-705681abff85"], ["created_at", "2015-02-28 17:43:43.391231"], ["updated_at", "2015-02-28 17:43:43.391231"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '56a3c84e-bf71-11e4-b91b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "56a3c84e-bf71-11e4-b91b-705681abff85"], ["created_at", "2015-02-28 17:43:43.400324"], ["updated_at", "2015-02-28 17:43:43.400324"], ["token", "uKP-ujTDZ-62hKN8aazGDzChcwhDfOEzoWtTnOM9nPo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/56a818e0-bf71-11e4-919c-705681abff85" for 127.0.0.1 at 2015-02-28 09:43:43 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Vr8tbK0ZUKTkiVyZ.X1pku.rb4U4vu5rcKforKPJ/sJPI3uOoY4dy"], ["created_at", "2015-02-28 17:43:43.417904"], ["updated_at", "2015-02-28 17:43:43.417904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$8brd0ff7HcW9srYrQ9fkMusOkjMTICVh/hhCtzbSicGHV4M7kHvaa"], ["created_at", "2015-02-28 17:43:43.425738"], ["updated_at", "2015-02-28 17:43:43.425738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:43.428299"], ["user_id", "56aaac90-bf71-11e4-ab99-705681abff85"], ["created_at", "2015-02-28 17:43:43.429686"], ["updated_at", "2015-02-28 17:43:43.429686"], ["token", "PRWJDkIfayeeYFbh7zVaRtsPM0Km9nVyjvaQMgU9DgY"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:43.433268"], ["user_id", "56abd5ac-bf71-11e4-81dc-705681abff85"], ["created_at", "2015-02-28 17:43:43.434964"], ["updated_at", "2015-02-28 17:43:43.434964"], ["token", "XtvGOAjRJoRpRl_e8onURntcZzXBONmikzEUiYwxcmw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:43.440748"], ["updated_at", "2015-02-28 17:43:43.440748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56aaac90-bf71-11e4-ab99-705681abff85' AND "clubhouse_memberships"."organization_id" = '56ae2816-bf71-11e4-9a38-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56aaac90-bf71-11e4-ab99-705681abff85"], ["organization_id", "56ae2816-bf71-11e4-9a38-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:43.447373"], ["updated_at", "2015-02-28 17:43:43.447373"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56abd5ac-bf71-11e4-81dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '56ae2816-bf71-11e4-9a38-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56abd5ac-bf71-11e4-81dc-705681abff85"], ["organization_id", "56ae2816-bf71-11e4-9a38-705681abff85"], ["created_at", "2015-02-28 17:43:43.453326"], ["updated_at", "2015-02-28 17:43:43.453326"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '56ae2816-bf71-11e4-9a38-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "56ae2816-bf71-11e4-9a38-705681abff85"], ["created_at", "2015-02-28 17:43:43.462342"], ["updated_at", "2015-02-28 17:43:43.462342"], ["token", "n7JvJCovK1sS-N14Poh5KDERbye6_pTz5y1PtLGgNHg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-02-28 09:43:43 -0800  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$AjF4l1oIxKYJL9NdZY0xcuzPjZbO3SEdUznect7tJ2GM5n.8ZSW/q"], ["created_at", "2015-02-28 17:43:54.695808"], ["updated_at", "2015-02-28 17:43:54.695808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$NSnhf0MVzfen5/BqP8Aoc.DojglpTyK.x65LsTEQ9fiy5Po3FPz/6"], ["created_at", "2015-02-28 17:43:54.707224"], ["updated_at", "2015-02-28 17:43:54.707224"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:54.727246"], ["user_id", "5d63d278-bf71-11e4-8eb5-705681abff85"], ["created_at", "2015-02-28 17:43:54.739423"], ["updated_at", "2015-02-28 17:43:54.739423"], ["token", "qGpOR0dvFUgsSCqw7-9IW2fyyDRmFAD5EPAmso8ciDU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:54.744906"], ["user_id", "5d6557ba-bf71-11e4-a8ed-705681abff85"], ["created_at", "2015-02-28 17:43:54.747167"], ["updated_at", "2015-02-28 17:43:54.747167"], ["token", "G6Urmbpq0pl6LKTndXrSIuRn8Y8NmGsE_C3JEnh_OpA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:54.766531"], ["updated_at", "2015-02-28 17:43:54.766531"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d63d278-bf71-11e4-8eb5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d6e8c40-bf71-11e4-88cf-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d63d278-bf71-11e4-8eb5-705681abff85"], ["organization_id", "5d6e8c40-bf71-11e4-88cf-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:54.847036"], ["updated_at", "2015-02-28 17:43:54.847036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d6557ba-bf71-11e4-a8ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d6e8c40-bf71-11e4-88cf-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d6557ba-bf71-11e4-a8ed-705681abff85"], ["organization_id", "5d6e8c40-bf71-11e4-88cf-705681abff85"], ["created_at", "2015-02-28 17:43:54.853583"], ["updated_at", "2015-02-28 17:43:54.853583"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5d6e8c40-bf71-11e4-88cf-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "5d6e8c40-bf71-11e4-88cf-705681abff85"], ["created_at", "2015-02-28 17:43:54.872550"], ["updated_at", "2015-02-28 17:43:54.872550"], ["token", "5UH9WJ1BAHAQ4HndkNsPle8D8OPM3mRfvevNv-18JJs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:43:54 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Completed 401 Unauthorized in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$mOleai0kOTbnWpcMfbh3bOio8Glz.rnS6RLKCP2bnuuHr..paeJ4u"], ["created_at", "2015-02-28 17:43:54.944583"], ["updated_at", "2015-02-28 17:43:54.944583"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$DQLBWz5sXwPe67iFcP8r8eqfQ4gvN667APmx4BZnelkE1L66qdFNW"], ["created_at", "2015-02-28 17:43:54.955157"], ["updated_at", "2015-02-28 17:43:54.955157"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:54.960699"], ["user_id", "5d897c08-bf71-11e4-a1b4-705681abff85"], ["created_at", "2015-02-28 17:43:54.962539"], ["updated_at", "2015-02-28 17:43:54.962539"], ["token", "MQZyQfKhGhLEnQcO8uYEoz0pqBk1dhxKg31YRdVeAQw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:54.967400"], ["user_id", "5d8b5532-bf71-11e4-8cd3-705681abff85"], ["created_at", "2015-02-28 17:43:54.969999"], ["updated_at", "2015-02-28 17:43:54.969999"], ["token", "tlkF5nLr9UvJ_tc2M7IyoeAGfAsSrkDcRb5t38EMfmc"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:54.980062"], ["updated_at", "2015-02-28 17:43:54.980062"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d897c08-bf71-11e4-a1b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d8ef99e-bf71-11e4-9dc4-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d897c08-bf71-11e4-a1b4-705681abff85"], ["organization_id", "5d8ef99e-bf71-11e4-9dc4-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:54.990022"], ["updated_at", "2015-02-28 17:43:54.990022"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d8b5532-bf71-11e4-8cd3-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d8ef99e-bf71-11e4-9dc4-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d8b5532-bf71-11e4-8cd3-705681abff85"], ["organization_id", "5d8ef99e-bf71-11e4-9dc4-705681abff85"], ["created_at", "2015-02-28 17:43:54.999217"], ["updated_at", "2015-02-28 17:43:54.999217"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '5d8ef99e-bf71-11e4-9dc4-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "5d8ef99e-bf71-11e4-9dc4-705681abff85"], ["created_at", "2015-02-28 17:43:55.009001"], ["updated_at", "2015-02-28 17:43:55.009001"], ["token", "p-Xhuc1oAAKiHgJogZaArqvG6m-h9kH35xWYNq3r2ik"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:43:55 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-2", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:43:55.024706' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tlkF5nLr9UvJ_tc2M7IyoeAGfAsSrkDcRb5t38EMfmc"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:43:55.040796"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:43:55.044647"], ["id", "5d8daefe-bf71-11e4-8738-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d8b5532-bf71-11e4-8cd3-705681abff85"]] Clubhouse::Organization Load (1.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5d8b5532-bf71-11e4-8cd3-705681abff85"], ["name", "org-2"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5d8b5532-bf71-11e4-8cd3-705681abff85' LIMIT 1 [["organization_id", "5d8ef99e-bf71-11e4-9dc4-705681abff85"]] Completed 500 Internal Server Error in 74ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$BWKAFfn14Jx94dgwEiYBu.qBKn/x6BiVE1hIKgPR12bCkqMz2U.o."], ["created_at", "2015-02-28 17:43:55.112423"], ["updated_at", "2015-02-28 17:43:55.112423"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$80RZWmPXF7CB45XjQTpYm.rqvKwaHcnXiz1ATHQjflIBhleTAHRKK"], ["created_at", "2015-02-28 17:43:55.123129"], ["updated_at", "2015-02-28 17:43:55.123129"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 SQL (8.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:55.162619"], ["user_id", "5da31a14-bf71-11e4-bb05-705681abff85"], ["created_at", "2015-02-28 17:43:55.194924"], ["updated_at", "2015-02-28 17:43:55.194924"], ["token", "NhFPj0kSXNnSIvjceC_5aF9H6UH2RRsTNYRbOfRAH38"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:55.211905"], ["user_id", "5da4f6d6-bf71-11e4-a631-705681abff85"], ["created_at", "2015-02-28 17:43:55.214229"], ["updated_at", "2015-02-28 17:43:55.214229"], ["token", "4D5AqpKQRmH2xJExnhP9UJiIvU_rhCwekRsiPHpLQvM"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:55.231110"], ["updated_at", "2015-02-28 17:43:55.231110"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5da31a14-bf71-11e4-bb05-705681abff85' AND "clubhouse_memberships"."organization_id" = '5db57682-bf71-11e4-bc6a-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5da31a14-bf71-11e4-bb05-705681abff85"], ["organization_id", "5db57682-bf71-11e4-bc6a-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:55.245551"], ["updated_at", "2015-02-28 17:43:55.245551"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5da4f6d6-bf71-11e4-a631-705681abff85' AND "clubhouse_memberships"."organization_id" = '5db57682-bf71-11e4-bc6a-705681abff85') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5da4f6d6-bf71-11e4-a631-705681abff85"], ["organization_id", "5db57682-bf71-11e4-bc6a-705681abff85"], ["created_at", "2015-02-28 17:43:55.256627"], ["updated_at", "2015-02-28 17:43:55.256627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '5db57682-bf71-11e4-bc6a-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "5db57682-bf71-11e4-bc6a-705681abff85"], ["created_at", "2015-02-28 17:43:55.267037"], ["updated_at", "2015-02-28 17:43:55.267037"], ["token", "1aPRpxv6HHxbK6tt7hq4e-i9vNEnfBqbvSaQM-oqJt8"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:43:55 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org-3", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:43:55.282223' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NhFPj0kSXNnSIvjceC_5aF9H6UH2RRsTNYRbOfRAH38"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:43:55.289882"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:43:55.295963"], ["id", "5db12992-bf71-11e4-9efb-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5da31a14-bf71-11e4-bb05-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5da31a14-bf71-11e4-bb05-705681abff85"], ["name", "org-3"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5da31a14-bf71-11e4-bb05-705681abff85' LIMIT 1 [["organization_id", "5db57682-bf71-11e4-bc6a-705681abff85"]]  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5db57682-bf71-11e4-bc6a-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '5db57682-bf71-11e4-bc6a-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 91ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$P/ktLJ2rI6.zErdm3IqLauF4N51Pq.cGn12zQloSvx8goMd26laeq"], ["created_at", "2015-02-28 17:43:55.387935"], ["updated_at", "2015-02-28 17:43:55.387935"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$MquF/8ez0Qhf.C2k0vBoou/hn.xLdujhOiQbr3n7gZfoxOLejl1Ye"], ["created_at", "2015-02-28 17:43:55.400736"], ["updated_at", "2015-02-28 17:43:55.400736"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:55.408793"], ["user_id", "5dcd5dc4-bf71-11e4-989c-705681abff85"], ["created_at", "2015-02-28 17:43:55.411810"], ["updated_at", "2015-02-28 17:43:55.411810"], ["token", "U1fUK7TK_fH6oxbcP520sy_Ha60b_E-F-qRRPsO0AdM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:55.417104"], ["user_id", "5dcf3130-bf71-11e4-b140-705681abff85"], ["created_at", "2015-02-28 17:43:55.418559"], ["updated_at", "2015-02-28 17:43:55.418559"], ["token", "pimw8mkbU4ZZSS8MfNNldGyvIJXXYYP8Xh_5-bu3vgk"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:55.430934"], ["updated_at", "2015-02-28 17:43:55.430934"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dcd5dc4-bf71-11e4-989c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dd3aa4e-bf71-11e4-ae15-705681abff85') LIMIT 1 SQL (3.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dcd5dc4-bf71-11e4-989c-705681abff85"], ["organization_id", "5dd3aa4e-bf71-11e4-ae15-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:55.441720"], ["updated_at", "2015-02-28 17:43:55.441720"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dcf3130-bf71-11e4-b140-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dd3aa4e-bf71-11e4-ae15-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5dcf3130-bf71-11e4-b140-705681abff85"], ["organization_id", "5dd3aa4e-bf71-11e4-ae15-705681abff85"], ["created_at", "2015-02-28 17:43:55.452875"], ["updated_at", "2015-02-28 17:43:55.452875"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '5dd3aa4e-bf71-11e4-ae15-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "5dd3aa4e-bf71-11e4-ae15-705681abff85"], ["created_at", "2015-02-28 17:43:55.465570"], ["updated_at", "2015-02-28 17:43:55.465570"], ["token", "dEqH1TQNUavvUtXInaJaTAYltmIGyV5KOvB0iyk8maw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:43:55 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-4", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:43:55.480803' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U1fUK7TK_fH6oxbcP520sy_Ha60b_E-F-qRRPsO0AdM"]]  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:43:55.484408"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:43:55.492702"], ["id", "5dd12486-bf71-11e4-ab03-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5dcd5dc4-bf71-11e4-989c-705681abff85"]] Clubhouse::Organization Load (1.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5dcd5dc4-bf71-11e4-989c-705681abff85"], ["name", "org-4"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dcd5dc4-bf71-11e4-989c-705681abff85' LIMIT 1 [["organization_id", "5dd3aa4e-bf71-11e4-ae15-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5dd3aa4e-bf71-11e4-ae15-705681abff85"]] Clubhouse::Invitation Exists (2.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5dd3aa4e-bf71-11e4-ae15-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "5dd3aa4e-bf71-11e4-ae15-705681abff85"], ["created_at", "2015-02-28 17:43:55.529226"], ["updated_at", "2015-02-28 17:43:55.529226"], ["token", "wB2Oe33Pi_rsYp43xM2kdnRME2zUdxtNYBclC9B_4CQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b5dc5951-6fef-422a-b130-9b8274bcedb7) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5de30854-bf71-11e4-b4e2-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5de30854-bf71-11e4-b4e2-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b5dc5951-6fef-422a-b130-9b8274bcedb7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5de30854-bf71-11e4-b4e2-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [b5dc5951-6fef-422a-b130-9b8274bcedb7] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5dd3aa4e-bf71-11e4-ae15-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b5dc5951-6fef-422a-b130-9b8274bcedb7] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [b5dc5951-6fef-422a-b130-9b8274bcedb7] Clubhouse::Mailer#invitation: processed outbound mail in 371.1ms [ActiveJob] [ActionMailer::DeliveryJob] [b5dc5951-6fef-422a-b130-9b8274bcedb7] Sent mail to email@example.com (24.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [b5dc5951-6fef-422a-b130-9b8274bcedb7] Date: Sat, 28 Feb 2015 09:43:55 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fe5bf373b_127f63fe5ba40fbe8968c2@Jasons-Air-2.home.mail> Subject: You've been invited to join org-4 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/wB2Oe33Pi_rsYp43xM2kdnRME2zUdxtNYBclC9B_4CQ If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b5dc5951-6fef-422a-b130-9b8274bcedb7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 397.0ms Completed 201 Created in 540ms (Views: 5.0ms | ActiveRecord: 9.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$QsD3cWhfUWl3RNv/MjPLF.q7uXG65IWE3LvMvJ7MLS0U/mmLhpAD2"], ["created_at", "2015-02-28 17:43:56.033539"], ["updated_at", "2015-02-28 17:43:56.033539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ucDYp95UTG8Hbon7sDm.LOa4RVpYKz8xADr/UKS9feNlrPOJbopdO"], ["created_at", "2015-02-28 17:43:56.041553"], ["updated_at", "2015-02-28 17:43:56.041553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:56.044950"], ["user_id", "5e2fade4-bf71-11e4-9949-705681abff85"], ["created_at", "2015-02-28 17:43:56.046584"], ["updated_at", "2015-02-28 17:43:56.046584"], ["token", "PcDL2zme2m1IlFwmOC00J3UKsmfsVaR8lBouSZCjsn8"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:56.049866"], ["user_id", "5e30e358-bf71-11e4-a005-705681abff85"], ["created_at", "2015-02-28 17:43:56.051218"], ["updated_at", "2015-02-28 17:43:56.051218"], ["token", "H1DVESrIwnSo8j-aenXI5CExmKw-Ra5R0tXMpr4qEBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:56.057645"], ["updated_at", "2015-02-28 17:43:56.057645"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e2fade4-bf71-11e4-9949-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e335c5a-bf71-11e4-b338-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e2fade4-bf71-11e4-9949-705681abff85"], ["organization_id", "5e335c5a-bf71-11e4-b338-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:56.066202"], ["updated_at", "2015-02-28 17:43:56.066202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e30e358-bf71-11e4-a005-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e335c5a-bf71-11e4-b338-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e30e358-bf71-11e4-a005-705681abff85"], ["organization_id", "5e335c5a-bf71-11e4-b338-705681abff85"], ["created_at", "2015-02-28 17:43:56.072937"], ["updated_at", "2015-02-28 17:43:56.072937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '5e335c5a-bf71-11e4-b338-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "5e335c5a-bf71-11e4-b338-705681abff85"], ["created_at", "2015-02-28 17:43:56.080484"], ["updated_at", "2015-02-28 17:43:56.080484"], ["token", "aRK2MGsUHEjXMMbLBpXTdYkx7DzfvplGLk7u7S5b_4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 09:43:56 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org-5", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-14 17:43:56.090429' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PcDL2zme2m1IlFwmOC00J3UKsmfsVaR8lBouSZCjsn8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-02-28 17:43:56.093214"], ["ip", "127.0.0.1"], ["updated_at", "2015-02-28 17:43:56.095755"], ["id", "5e31ad1a-bf71-11e4-845b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e2fade4-bf71-11e4-9949-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5e2fade4-bf71-11e4-9949-705681abff85"], ["name", "org-5"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5e2fade4-bf71-11e4-9949-705681abff85' LIMIT 1 [["organization_id", "5e335c5a-bf71-11e4-b338-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e335c5a-bf71-11e4-b338-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5e335c5a-bf71-11e4-b338-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "5e335c5a-bf71-11e4-b338-705681abff85"], ["created_at", "2015-02-28 17:43:56.113993"], ["updated_at", "2015-02-28 17:43:56.113993"], ["token", "lBQwRcq8D1UkABe4pjh4RTiCNwcdXGGUNrWAUh1U7f8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e95f5196-8b74-45ef-8e96-2c7dcd54af89) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5e3bfc98-bf71-11e4-adef-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5e3bfc98-bf71-11e4-adef-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e95f5196-8b74-45ef-8e96-2c7dcd54af89] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5e3bfc98-bf71-11e4-adef-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [e95f5196-8b74-45ef-8e96-2c7dcd54af89] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e335c5a-bf71-11e4-b338-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e95f5196-8b74-45ef-8e96-2c7dcd54af89] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [e95f5196-8b74-45ef-8e96-2c7dcd54af89] Clubhouse::Mailer#invitation: processed outbound mail in 4.5ms [ActiveJob] [ActionMailer::DeliveryJob] [e95f5196-8b74-45ef-8e96-2c7dcd54af89] Sent mail to email@example.com (22.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [e95f5196-8b74-45ef-8e96-2c7dcd54af89] Date: Sat, 28 Feb 2015 09:43:56 -0800 From: from@example.com To: email@example.com Message-ID: <54f1fe5c23291_127f63fe5ba40fbe8969c5@Jasons-Air-2.home.mail> Subject: You've been invited to join org-5 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/lBQwRcq8D1UkABe4pjh4RTiCNwcdXGGUNrWAUh1U7f8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [e95f5196-8b74-45ef-8e96-2c7dcd54af89] Performed ActionMailer::DeliveryJob from Inline(mailers) in 27.92ms Completed 201 Created in 67ms (Views: 4.2ms | ActiveRecord: 4.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$1i1QA1MA8N0ZD06OXb4uuep9NnDwoEdYy03st9WMGj7q13OAhZtVS"], ["created_at", "2015-02-28 17:43:56.190704"], ["updated_at", "2015-02-28 17:43:56.190704"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$H4Yv5ItDOfMVUMoSEHOJfOiMYUybB36IWhcZFO3ZgoaMk5WeiBise"], ["created_at", "2015-02-28 17:43:56.262497"], ["updated_at", "2015-02-28 17:43:56.262497"]]  (30.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:56.302738"], ["user_id", "5e47e620-bf71-11e4-b8ab-705681abff85"], ["created_at", "2015-02-28 17:43:56.308457"], ["updated_at", "2015-02-28 17:43:56.308457"], ["token", "BnzWTGV8cxJEBIc4ZPSnLs4b_UoCumXqLlkEoeMHOac"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:56.316499"], ["user_id", "5e531400-bf71-11e4-b9ae-705681abff85"], ["created_at", "2015-02-28 17:43:56.319268"], ["updated_at", "2015-02-28 17:43:56.319268"], ["token", "RBEn101B-t_32mtclrUg0DFzasKUvGg4y6wHATJFYBE"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:56.356788"], ["updated_at", "2015-02-28 17:43:56.356788"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e47e620-bf71-11e4-b8ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e618666-bf71-11e4-be56-705681abff85') LIMIT 1 SQL (21.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e47e620-bf71-11e4-b8ab-705681abff85"], ["organization_id", "5e618666-bf71-11e4-be56-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:56.384182"], ["updated_at", "2015-02-28 17:43:56.384182"]]  (10.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e531400-bf71-11e4-b9ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e618666-bf71-11e4-be56-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e531400-bf71-11e4-b9ae-705681abff85"], ["organization_id", "5e618666-bf71-11e4-be56-705681abff85"], ["created_at", "2015-02-28 17:43:56.438752"], ["updated_at", "2015-02-28 17:43:56.438752"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '5e618666-bf71-11e4-be56-705681abff85') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "5e618666-bf71-11e4-be56-705681abff85"], ["created_at", "2015-02-28 17:43:56.455011"], ["updated_at", "2015-02-28 17:43:56.455011"], ["token", "fR4W4ilrDEjPUm678Fs-tcajZPgxP8OBkH-iMgg5Qss"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/5e70c5a4-bf71-11e4-b9d4-705681abff85" for 127.0.0.1 at 2015-02-28 09:43:56 -0800  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$hIzmwgDwrb3HHZq4WkTNxuUVABGHpXMFPK7LXHfoYnpQat.FB0BKi"], ["created_at", "2015-02-28 17:43:56.608707"], ["updated_at", "2015-02-28 17:43:56.608707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$a68PD4dyLMRzTfBhjhSN1uRrUOPVgIVseyTKRzKdmV1usqIs4laT2"], ["created_at", "2015-02-28 17:43:56.616807"], ["updated_at", "2015-02-28 17:43:56.616807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:56.619592"], ["user_id", "5e876ee4-bf71-11e4-b981-705681abff85"], ["created_at", "2015-02-28 17:43:56.620994"], ["updated_at", "2015-02-28 17:43:56.620994"], ["token", "CidveCrr0Ul69R4D8D4EDen4wkYuycHJoTkN15acei0"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-02-28 17:43:56.626908"], ["user_id", "5e889f6c-bf71-11e4-b70e-705681abff85"], ["created_at", "2015-02-28 17:43:56.629032"], ["updated_at", "2015-02-28 17:43:56.629032"], ["token", "a4tx13xl3qDjF-o5TxzEoy8tXvxpLdwxUqoMBF-UFRc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-02-28 17:43:56.641979"], ["updated_at", "2015-02-28 17:43:56.641979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e876ee4-bf71-11e4-b981-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e8c95ea-bf71-11e4-8fdc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e876ee4-bf71-11e4-b981-705681abff85"], ["organization_id", "5e8c95ea-bf71-11e4-8fdc-705681abff85"], ["admin", "t"], ["created_at", "2015-02-28 17:43:56.649605"], ["updated_at", "2015-02-28 17:43:56.649605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e889f6c-bf71-11e4-b70e-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e8c95ea-bf71-11e4-8fdc-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e889f6c-bf71-11e4-b70e-705681abff85"], ["organization_id", "5e8c95ea-bf71-11e4-8fdc-705681abff85"], ["created_at", "2015-02-28 17:43:56.655594"], ["updated_at", "2015-02-28 17:43:56.655594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '5e8c95ea-bf71-11e4-8fdc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "5e8c95ea-bf71-11e4-8fdc-705681abff85"], ["created_at", "2015-02-28 17:43:56.664626"], ["updated_at", "2015-02-28 17:43:56.664626"], ["token", "j_PjbLL5HNFiTOMQYFM4KMmVCo2j9pPUNejNrkzp52c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-02-28 09:43:56 -0800  (0.2ms) ROLLBACK  (6.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (37.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (64.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$UaU3M3efrJXn9wBsiI8c.ubyzNH9Oa.5541cOJT88UR4EbtcRDBla"], ["created_at", "2015-03-01 03:11:16.821253"], ["updated_at", "2015-03-01 03:11:16.821253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (3.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$RAnaW.KKoGmDHlt6bhEffOFbp9bRkX1WzdtZbsELn/z6VRWiN8/US"], ["created_at", "2015-03-01 03:11:16.899497"], ["updated_at", "2015-03-01 03:11:16.899497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (24.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:16.911237"], ["user_id", "a01bee08-bfc0-11e4-aeb0-705681abff85"], ["created_at", "2015-03-01 03:11:16.921742"], ["updated_at", "2015-03-01 03:11:16.921742"], ["token", "v6VUHkjmJx6shuglAHfVAF1Tdt2lTUd6H9Isc5cedGg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:16.948458"], ["user_id", "a01f893c-bfc0-11e4-884d-705681abff85"], ["created_at", "2015-03-01 03:11:16.949668"], ["updated_at", "2015-03-01 03:11:16.949668"], ["token", "hsPoC3UVJbr62iUOZhDwDecoYf9EdV1idhBHurdrEU8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (3.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:11:16.961705"], ["updated_at", "2015-03-01 03:11:16.961705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a01bee08-bfc0-11e4-aeb0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a02922a8-bfc0-11e4-ab74-705681abff85') LIMIT 1 SQL (8.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a01bee08-bfc0-11e4-aeb0-705681abff85"], ["organization_id", "a02922a8-bfc0-11e4-ab74-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:11:17.021028"], ["updated_at", "2015-03-01 03:11:17.021028"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a01f893c-bfc0-11e4-884d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a02922a8-bfc0-11e4-ab74-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a01f893c-bfc0-11e4-884d-705681abff85"], ["organization_id", "a02922a8-bfc0-11e4-ab74-705681abff85"], ["created_at", "2015-03-01 03:11:17.037855"], ["updated_at", "2015-03-01 03:11:17.037855"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a02922a8-bfc0-11e4-ab74-705681abff85') LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a02922a8-bfc0-11e4-ab74-705681abff85"], ["created_at", "2015-03-01 03:11:17.057910"], ["updated_at", "2015-03-01 03:11:17.057910"], ["token", "lBvLmshhsuureXxkzZwxkalwiTCoNuJ64dqcBInsFEY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$0Hfiv0Y6v51buswL0uY99.z9cq6kx5sGJGhTkBxODsRhN4jSwddN."], ["created_at", "2015-03-01 03:11:17.079620"], ["updated_at", "2015-03-01 03:11:17.079620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$WDSqNXdUhYtDbxSMErjDj.5m2G5F0xlSw1ywiK7SKWqvzrmr9CIz6"], ["created_at", "2015-03-01 03:11:17.084955"], ["updated_at", "2015-03-01 03:11:17.084955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.086622"], ["user_id", "a03b0ed2-bfc0-11e4-aedb-705681abff85"], ["created_at", "2015-03-01 03:11:17.087419"], ["updated_at", "2015-03-01 03:11:17.087419"], ["token", "GIG2LBORi1CS6sNt0gDcX3ZkB-2hjAfRyBRkvxxhQi4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.091126"], ["user_id", "a03bcad4-bfc0-11e4-b21e-705681abff85"], ["created_at", "2015-03-01 03:11:17.093310"], ["updated_at", "2015-03-01 03:11:17.093310"], ["token", "2XHpVCTwZYfRyW3lnK_3RGpC_1_8mRdWUNXYvl-z5qk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:11:17.098424"], ["updated_at", "2015-03-01 03:11:17.098424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a03b0ed2-bfc0-11e4-aedb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a03df7dc-bfc0-11e4-a358-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a03b0ed2-bfc0-11e4-aedb-705681abff85"], ["organization_id", "a03df7dc-bfc0-11e4-a358-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:11:17.105462"], ["updated_at", "2015-03-01 03:11:17.105462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a03bcad4-bfc0-11e4-b21e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a03df7dc-bfc0-11e4-a358-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a03bcad4-bfc0-11e4-b21e-705681abff85"], ["organization_id", "a03df7dc-bfc0-11e4-a358-705681abff85"], ["created_at", "2015-03-01 03:11:17.110555"], ["updated_at", "2015-03-01 03:11:17.110555"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a03df7dc-bfc0-11e4-a358-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a03df7dc-bfc0-11e4-a358-705681abff85"], ["created_at", "2015-03-01 03:11:17.116691"], ["updated_at", "2015-03-01 03:11:17.116691"], ["token", "nWYW7GAyP7O2oqm8jfLSd9AJMj5RYiI8CCke4KV225k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:11:17 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$vRlc5sHgHe3sntcNhuXoCuGAfl3xoGCBq83LNtjfPf/Twj71XA0Ku"], ["created_at", "2015-03-01 03:11:17.171537"], ["updated_at", "2015-03-01 03:11:17.171537"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$V1e3l3rFZlBr.oaNBwWB1.InxhyhHv8fhexYjPoO37XfUEcf6nL7S"], ["created_at", "2015-03-01 03:11:17.178927"], ["updated_at", "2015-03-01 03:11:17.178927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.180761"], ["user_id", "a04923dc-bfc0-11e4-adb5-705681abff85"], ["created_at", "2015-03-01 03:11:17.181865"], ["updated_at", "2015-03-01 03:11:17.181865"], ["token", "-BmL0oYnsDQTR9MHTGMxXPlHdXkjTZzqUt2EFfQMAuE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.184551"], ["user_id", "a04a21e2-bfc0-11e4-bc76-705681abff85"], ["created_at", "2015-03-01 03:11:17.185327"], ["updated_at", "2015-03-01 03:11:17.185327"], ["token", "xrdu5ojlKi8AtbR2v8pK6oXGPdNds1bVYvQ72M_Cvzk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:11:17.189337"], ["updated_at", "2015-03-01 03:11:17.189337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a04923dc-bfc0-11e4-adb5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a04bc9f2-bfc0-11e4-b3f9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a04923dc-bfc0-11e4-adb5-705681abff85"], ["organization_id", "a04bc9f2-bfc0-11e4-b3f9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:11:17.194832"], ["updated_at", "2015-03-01 03:11:17.194832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a04a21e2-bfc0-11e4-bc76-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a04bc9f2-bfc0-11e4-b3f9-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a04a21e2-bfc0-11e4-bc76-705681abff85"], ["organization_id", "a04bc9f2-bfc0-11e4-b3f9-705681abff85"], ["created_at", "2015-03-01 03:11:17.199573"], ["updated_at", "2015-03-01 03:11:17.199573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a04bc9f2-bfc0-11e4-b3f9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a04bc9f2-bfc0-11e4-b3f9-705681abff85"], ["created_at", "2015-03-01 03:11:17.204945"], ["updated_at", "2015-03-01 03:11:17.204945"], ["token", "_0EbVqzOzGeT-LW2knprZLx6AZuIAUv9yc9HXPrMMQQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:11:17 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (1.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:11:17.213054' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-BmL0oYnsDQTR9MHTGMxXPlHdXkjTZzqUt2EFfQMAuE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (12.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:11:17.228570"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:11:17.229923"], ["id", "a04ab828-bfc0-11e4-b5e9-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a04923dc-bfc0-11e4-adb5-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a04923dc-bfc0-11e4-adb5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a04923dc-bfc0-11e4-adb5-705681abff85' LIMIT 1 [["organization_id", "a04bc9f2-bfc0-11e4-b3f9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a04bc9f2-bfc0-11e4-b3f9-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'a04bc9f2-bfc0-11e4-b3f9-705681abff85') LIMIT 1  (18.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 93ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ZD/QW7JgJa1kGfALkY8lLes3nrRxVnJ7N8nrrTLmN/PRaj9ZzWnLm"], ["created_at", "2015-03-01 03:11:17.313518"], ["updated_at", "2015-03-01 03:11:17.313518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (12.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$0UhOZ3k1WfiafER192.viOtWrZH6H2/XuAVydbYSsN.79FYSO4lpu"], ["created_at", "2015-03-01 03:11:17.330348"], ["updated_at", "2015-03-01 03:11:17.330348"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.333739"], ["user_id", "a05eb120-bfc0-11e4-b20d-705681abff85"], ["created_at", "2015-03-01 03:11:17.335423"], ["updated_at", "2015-03-01 03:11:17.335423"], ["token", "z25dla3hgNdQkGec_sZRrIPPCMSna5uGaa4qm-HA3dw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.339051"], ["user_id", "a0616000-bfc0-11e4-bcda-705681abff85"], ["created_at", "2015-03-01 03:11:17.340386"], ["updated_at", "2015-03-01 03:11:17.340386"], ["token", "OtsXwmlspm2HJlc-dlhWIDkCNgI5BbhkI61Cz9DR6_E"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:11:17.353342"], ["updated_at", "2015-03-01 03:11:17.353342"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a05eb120-bfc0-11e4-b20d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a064dc8a-bfc0-11e4-9eef-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a05eb120-bfc0-11e4-b20d-705681abff85"], ["organization_id", "a064dc8a-bfc0-11e4-9eef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:11:17.360753"], ["updated_at", "2015-03-01 03:11:17.360753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a0616000-bfc0-11e4-bcda-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a064dc8a-bfc0-11e4-9eef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a0616000-bfc0-11e4-bcda-705681abff85"], ["organization_id", "a064dc8a-bfc0-11e4-9eef-705681abff85"], ["created_at", "2015-03-01 03:11:17.366195"], ["updated_at", "2015-03-01 03:11:17.366195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a064dc8a-bfc0-11e4-9eef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a064dc8a-bfc0-11e4-9eef-705681abff85"], ["created_at", "2015-03-01 03:11:17.373369"], ["updated_at", "2015-03-01 03:11:17.373369"], ["token", "vdWj8ZPhNw8f4xz2PHZm6wdHR7Wlu5uyvRvhBOcLe9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:11:17 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:11:17.379971' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z25dla3hgNdQkGec_sZRrIPPCMSna5uGaa4qm-HA3dw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:11:17.381933"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:11:17.383156"], ["id", "a0622de6-bfc0-11e4-86a3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a05eb120-bfc0-11e4-b20d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a05eb120-bfc0-11e4-b20d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a05eb120-bfc0-11e4-b20d-705681abff85' LIMIT 1 [["organization_id", "a064dc8a-bfc0-11e4-9eef-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a064dc8a-bfc0-11e4-9eef-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a064dc8a-bfc0-11e4-9eef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a064dc8a-bfc0-11e4-9eef-705681abff85"], ["created_at", "2015-03-01 03:11:17.392767"], ["updated_at", "2015-03-01 03:11:17.392767"], ["token", "jMbQY00PM5SFzCscycyKoYxE-XAtFmtrtwz_6HqU9_0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: eebe46b8-f9c1-47ca-b149-18821b683de2) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a06acf32-bfc0-11e4-82a3-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a06acf32-bfc0-11e4-82a3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [eebe46b8-f9c1-47ca-b149-18821b683de2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a06acf32-bfc0-11e4-82a3-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [eebe46b8-f9c1-47ca-b149-18821b683de2] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a064dc8a-bfc0-11e4-9eef-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [eebe46b8-f9c1-47ca-b149-18821b683de2] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [eebe46b8-f9c1-47ca-b149-18821b683de2] Clubhouse::Mailer#invitation: processed outbound mail in 229.9ms [ActiveJob] [ActionMailer::DeliveryJob] [eebe46b8-f9c1-47ca-b149-18821b683de2] Sent mail to email@example.com (17.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [eebe46b8-f9c1-47ca-b149-18821b683de2] Date: Sat, 28 Feb 2015 19:11:17 -0800 From: from@example.com To: email@example.com Message-ID: <54f28355a2a37_12d8d3fefd5c63be466042@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/jMbQY00PM5SFzCscycyKoYxE-XAtFmtrtwz_6HqU9_0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [eebe46b8-f9c1-47ca-b149-18821b683de2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 247.68ms Completed 201 Created in 300ms (Views: 1.6ms | ActiveRecord: 3.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$zyanyqueCRI05F5HR9vMm.SI6j74dpQBDK57lJ.c1JA2FmeQlTtg."], ["created_at", "2015-03-01 03:11:17.688160"], ["updated_at", "2015-03-01 03:11:17.688160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$s0501pg16s2RmRKH2VBLQuYly.BkJeigvI/2Vkr4E05sS7sr33AQO"], ["created_at", "2015-03-01 03:11:17.692808"], ["updated_at", "2015-03-01 03:11:17.692808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.694580"], ["user_id", "a097d7fc-bfc0-11e4-a28d-705681abff85"], ["created_at", "2015-03-01 03:11:17.695622"], ["updated_at", "2015-03-01 03:11:17.695622"], ["token", "5PoLgW28DLPcE11GTeYFRkoSDHoQ_c9uI9FAskb-9kI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.697312"], ["user_id", "a098892c-bfc0-11e4-9ba1-705681abff85"], ["created_at", "2015-03-01 03:11:17.698042"], ["updated_at", "2015-03-01 03:11:17.698042"], ["token", "dZOfZZs44POXdf8k-MDbeRofz-V4Uik-s15ecRodI70"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:11:17.701441"], ["updated_at", "2015-03-01 03:11:17.701441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a097d7fc-bfc0-11e4-a28d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a099d930-bfc0-11e4-8a2d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a097d7fc-bfc0-11e4-a28d-705681abff85"], ["organization_id", "a099d930-bfc0-11e4-8a2d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:11:17.705199"], ["updated_at", "2015-03-01 03:11:17.705199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a098892c-bfc0-11e4-9ba1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a099d930-bfc0-11e4-8a2d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a098892c-bfc0-11e4-9ba1-705681abff85"], ["organization_id", "a099d930-bfc0-11e4-8a2d-705681abff85"], ["created_at", "2015-03-01 03:11:17.708489"], ["updated_at", "2015-03-01 03:11:17.708489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a099d930-bfc0-11e4-8a2d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a099d930-bfc0-11e4-8a2d-705681abff85"], ["created_at", "2015-03-01 03:11:17.712345"], ["updated_at", "2015-03-01 03:11:17.712345"], ["token", "IXyr-j1Fqoh1MgpuSUngDMP--9dzeFxrBm-mh5BK5w4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:11:17 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:11:17.717859' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5PoLgW28DLPcE11GTeYFRkoSDHoQ_c9uI9FAskb-9kI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:11:17.719574"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:11:17.720812"], ["id", "a098fe98-bfc0-11e4-afd5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a097d7fc-bfc0-11e4-a28d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a097d7fc-bfc0-11e4-a28d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a097d7fc-bfc0-11e4-a28d-705681abff85' LIMIT 1 [["organization_id", "a099d930-bfc0-11e4-8a2d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a099d930-bfc0-11e4-8a2d-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a099d930-bfc0-11e4-8a2d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a099d930-bfc0-11e4-8a2d-705681abff85"], ["created_at", "2015-03-01 03:11:17.730195"], ["updated_at", "2015-03-01 03:11:17.730195"], ["token", "7AuSkv-WfAW6Gupex6eHaFVw-oEdHPPafhbn5AuU1ZY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a3986b05-39e5-400b-9e3f-f3ebd05669da) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a09e4a74-bfc0-11e4-ac15-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a09e4a74-bfc0-11e4-ac15-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a3986b05-39e5-400b-9e3f-f3ebd05669da] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a09e4a74-bfc0-11e4-ac15-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [a3986b05-39e5-400b-9e3f-f3ebd05669da] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a099d930-bfc0-11e4-8a2d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a3986b05-39e5-400b-9e3f-f3ebd05669da] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [a3986b05-39e5-400b-9e3f-f3ebd05669da] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [a3986b05-39e5-400b-9e3f-f3ebd05669da] Sent mail to email@example.com (2.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [a3986b05-39e5-400b-9e3f-f3ebd05669da] Date: Sat, 28 Feb 2015 19:11:17 -0800 From: from@example.com To: email@example.com Message-ID: <54f28355b457d_12d8d3fefd5c63be466188@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/7AuSkv-WfAW6Gupex6eHaFVw-oEdHPPafhbn5AuU1ZY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a3986b05-39e5-400b-9e3f-f3ebd05669da] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.14ms Completed 201 Created in 23ms (Views: 0.7ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$8.owJ94tSSQZjbQ7klErrOOTcCt3llXMf4dkhH.8G.lL3F6lbsLLi"], ["created_at", "2015-03-01 03:11:17.748368"], ["updated_at", "2015-03-01 03:11:17.748368"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$umR4lcZpY.cpfKMfKdyife4pIsg4gMhdzrMiNcXxPNaxO.I9zVyCO"], ["created_at", "2015-03-01 03:11:17.754099"], ["updated_at", "2015-03-01 03:11:17.754099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.756168"], ["user_id", "a0a108ae-bfc0-11e4-a99b-705681abff85"], ["created_at", "2015-03-01 03:11:17.757177"], ["updated_at", "2015-03-01 03:11:17.757177"], ["token", "zZ265c1YOlxjKB2nhFtiamRURQtCbF4Wr-YzTA8PIko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.759381"], ["user_id", "a0a1f070-bfc0-11e4-b553-705681abff85"], ["created_at", "2015-03-01 03:11:17.760175"], ["updated_at", "2015-03-01 03:11:17.760175"], ["token", "9HzyK0EFikcTkozqqRd1hjitaVSrHkIQXnXZ3Xz4Ldk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:11:17.763794"], ["updated_at", "2015-03-01 03:11:17.763794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a0a108ae-bfc0-11e4-a99b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a0a35d8e-bfc0-11e4-a4f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a0a108ae-bfc0-11e4-a99b-705681abff85"], ["organization_id", "a0a35d8e-bfc0-11e4-a4f9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:11:17.767385"], ["updated_at", "2015-03-01 03:11:17.767385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a0a1f070-bfc0-11e4-b553-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a0a35d8e-bfc0-11e4-a4f9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a0a1f070-bfc0-11e4-b553-705681abff85"], ["organization_id", "a0a35d8e-bfc0-11e4-a4f9-705681abff85"], ["created_at", "2015-03-01 03:11:17.770851"], ["updated_at", "2015-03-01 03:11:17.770851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a0a35d8e-bfc0-11e4-a4f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a0a35d8e-bfc0-11e4-a4f9-705681abff85"], ["created_at", "2015-03-01 03:11:17.778399"], ["updated_at", "2015-03-01 03:11:17.778399"], ["token", "DAnuLKieCMzWDhcOn2fsH8ATAmHKo7_T5Guj4GQANj8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/a0a5a51c-bfc0-11e4-9956-705681abff85?organization=org3" for 127.0.0.1 at 2015-02-28 19:11:17 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org3", "id"=>"a0a5a51c-bfc0-11e4-9956-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:11:17.784326' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zZ265c1YOlxjKB2nhFtiamRURQtCbF4Wr-YzTA8PIko"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:11:17.785867"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:11:17.786849"], ["id", "a0a26a14-bfc0-11e4-8bc2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a0a108ae-bfc0-11e4-a99b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a0a108ae-bfc0-11e4-a99b-705681abff85"], ["name", "org3"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$cYGcfd7detFW38YLbgP21.Z8lQbJcXZ3tkZ4pMGSFo2a4g38ApCCe"], ["created_at", "2015-03-01 03:11:17.796227"], ["updated_at", "2015-03-01 03:11:17.796227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$sWxHPY1Mp.FvmLAgdMSPA.fOxDwuoTuW9oAGa2SRrJAT1.TpnpDPe"], ["created_at", "2015-03-01 03:11:17.800434"], ["updated_at", "2015-03-01 03:11:17.800434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.802073"], ["user_id", "a0a851b8-bfc0-11e4-b69b-705681abff85"], ["created_at", "2015-03-01 03:11:17.802845"], ["updated_at", "2015-03-01 03:11:17.802845"], ["token", "OeCpDbPmTlQ_iPOIQOhrUtRuZR5Ytz1m01pUS8Yx79E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:11:17.804490"], ["user_id", "a0a8f5f0-bfc0-11e4-8bc7-705681abff85"], ["created_at", "2015-03-01 03:11:17.805318"], ["updated_at", "2015-03-01 03:11:17.805318"], ["token", "_oCkzbABVrO4Kj1M83fRdq_fpflkAzRUOIRviPrX-AE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:11:17.808578"], ["updated_at", "2015-03-01 03:11:17.808578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a0a851b8-bfc0-11e4-b69b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a0aa30c8-bfc0-11e4-8db1-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a0a851b8-bfc0-11e4-b69b-705681abff85"], ["organization_id", "a0aa30c8-bfc0-11e4-8db1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:11:17.811771"], ["updated_at", "2015-03-01 03:11:17.811771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a0a8f5f0-bfc0-11e4-8bc7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a0aa30c8-bfc0-11e4-8db1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a0a8f5f0-bfc0-11e4-8bc7-705681abff85"], ["organization_id", "a0aa30c8-bfc0-11e4-8db1-705681abff85"], ["created_at", "2015-03-01 03:11:17.817487"], ["updated_at", "2015-03-01 03:11:17.817487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'a0aa30c8-bfc0-11e4-8db1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "a0aa30c8-bfc0-11e4-8db1-705681abff85"], ["created_at", "2015-03-01 03:11:17.821036"], ["updated_at", "2015-03-01 03:11:17.821036"], ["token", "G6qpMPoSpQnVCOgTo0N2lTUeNPGl_1MIAM1dZzkYOHE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:11:17 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (12.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$yIjKLEp3Fo0GrR9S8VvyN.BtOOgKDck2nBVfx5nzYIc0D9N4sKZai"], ["created_at", "2015-03-01 03:12:04.449376"], ["updated_at", "2015-03-01 03:12:04.449376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$9ZL6UmdnVaEyf/WmTb.ux.iCysxERKOpRgjhJq2MdhSykPV9mHqFq"], ["created_at", "2015-03-01 03:12:04.457312"], ["updated_at", "2015-03-01 03:12:04.457312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:04.467127"], ["user_id", "bc773e40-bfc0-11e4-80b0-705681abff85"], ["created_at", "2015-03-01 03:12:04.474194"], ["updated_at", "2015-03-01 03:12:04.474194"], ["token", "kyh2y9iUV7VVondN79aZyOOUFbQMD78uBOMRglfSNT4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:04.476642"], ["user_id", "bc784862-bfc0-11e4-895a-705681abff85"], ["created_at", "2015-03-01 03:12:04.477353"], ["updated_at", "2015-03-01 03:12:04.477353"], ["token", "6C90cvq6yuPSb_QMwjVNHMNOcgWsyCYAbDjWPHxdbLw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:04.486561"], ["updated_at", "2015-03-01 03:12:04.486561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc773e40-bfc0-11e4-80b0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc7cbec4-bfc0-11e4-b502-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc773e40-bfc0-11e4-80b0-705681abff85"], ["organization_id", "bc7cbec4-bfc0-11e4-b502-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:04.533707"], ["updated_at", "2015-03-01 03:12:04.533707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc784862-bfc0-11e4-895a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc7cbec4-bfc0-11e4-b502-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc784862-bfc0-11e4-895a-705681abff85"], ["organization_id", "bc7cbec4-bfc0-11e4-b502-705681abff85"], ["created_at", "2015-03-01 03:12:04.537960"], ["updated_at", "2015-03-01 03:12:04.537960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bc7cbec4-bfc0-11e4-b502-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "bc7cbec4-bfc0-11e4-b502-705681abff85"], ["created_at", "2015-03-01 03:12:04.548493"], ["updated_at", "2015-03-01 03:12:04.548493"], ["token", "dZGv0jdS8WIKSy7eATrJXYkcuYGGvNtwNOVCDFVuvBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:12:04 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$dCsTXdI9DKpJK7wsyICQAONGbkVgCM.plRuDo1axvRVrO3n.i507y"], ["created_at", "2015-03-01 03:12:04.586317"], ["updated_at", "2015-03-01 03:12:04.586317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$rNfZzIbzqO/0smPogFXas.EspCYyXTFYuggSQI8TqrabsDLDCDHaS"], ["created_at", "2015-03-01 03:12:04.590880"], ["updated_at", "2015-03-01 03:12:04.590880"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:04.592610"], ["user_id", "bc8befe8-bfc0-11e4-a620-705681abff85"], ["created_at", "2015-03-01 03:12:04.593496"], ["updated_at", "2015-03-01 03:12:04.593496"], ["token", "z6XYIWSxolAYfMvnxKO0Que-cgt22melqnAx1cCI0z8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:04.595583"], ["user_id", "bc8c9c9a-bfc0-11e4-a28b-705681abff85"], ["created_at", "2015-03-01 03:12:04.596524"], ["updated_at", "2015-03-01 03:12:04.596524"], ["token", "9kYC2YYVhP2J58WEPzdcoY6QwK4kkgLTR3dxwOxhx1c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:04.600467"], ["updated_at", "2015-03-01 03:12:04.600467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8befe8-bfc0-11e4-a620-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc8e152a-bfc0-11e4-9211-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc8befe8-bfc0-11e4-a620-705681abff85"], ["organization_id", "bc8e152a-bfc0-11e4-9211-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:04.604239"], ["updated_at", "2015-03-01 03:12:04.604239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8c9c9a-bfc0-11e4-a28b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc8e152a-bfc0-11e4-9211-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc8c9c9a-bfc0-11e4-a28b-705681abff85"], ["organization_id", "bc8e152a-bfc0-11e4-9211-705681abff85"], ["created_at", "2015-03-01 03:12:04.608227"], ["updated_at", "2015-03-01 03:12:04.608227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'bc8e152a-bfc0-11e4-9211-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "bc8e152a-bfc0-11e4-9211-705681abff85"], ["created_at", "2015-03-01 03:12:04.612598"], ["updated_at", "2015-03-01 03:12:04.612598"], ["token", "FGwqC4QKLaFg76FgE8a0acnGAO5dvHgIrgnKTjzM-Ls"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/bc8ff340-bfc0-11e4-9adb-705681abff85?organization=org3" for 127.0.0.1 at 2015-02-28 19:12:04 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org3", "id"=>"bc8ff340-bfc0-11e4-9adb-705681abff85", "invitation"=>{}} Pollett::Session Load (0.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:12:04.618739' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z6XYIWSxolAYfMvnxKO0Que-cgt22melqnAx1cCI0z8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:12:04.627730"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:12:04.629178"], ["id", "bc8d11b6-bfc0-11e4-bb01-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc8befe8-bfc0-11e4-a620-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc8befe8-bfc0-11e4-a620-705681abff85"], ["name", "org3"]] Completed 500 Internal Server Error in 32ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$94tSXOFWdgR2y.plAfm6s.yMc1oWkmVgcnIvv/GMkgQWDqzQLeiR2"], ["created_at", "2015-03-01 03:12:04.656709"], ["updated_at", "2015-03-01 03:12:04.656709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$xd97UeV5yQ11zpEJy0KjheBq8XFS4UY.E5CLyozn1GJiWaH3KQLM6"], ["created_at", "2015-03-01 03:12:04.661930"], ["updated_at", "2015-03-01 03:12:04.661930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:04.663684"], ["user_id", "bc96b66c-bfc0-11e4-9085-705681abff85"], ["created_at", "2015-03-01 03:12:04.664927"], ["updated_at", "2015-03-01 03:12:04.664927"], ["token", "rcDOpE5ZZ0EfIHNc6lHk5s0ndrIzOY9VNBHOt5va9Tw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:04.666900"], ["user_id", "bc977656-bfc0-11e4-979b-705681abff85"], ["created_at", "2015-03-01 03:12:04.667687"], ["updated_at", "2015-03-01 03:12:04.667687"], ["token", "qP5rLp-gyCtL_QXizPqbgu7GA_qptx3xcweUWD7EoaE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:04.671047"], ["updated_at", "2015-03-01 03:12:04.671047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc96b66c-bfc0-11e4-9085-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc98e310-bfc0-11e4-88ba-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc96b66c-bfc0-11e4-9085-705681abff85"], ["organization_id", "bc98e310-bfc0-11e4-88ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:04.675768"], ["updated_at", "2015-03-01 03:12:04.675768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc977656-bfc0-11e4-979b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc98e310-bfc0-11e4-88ba-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc977656-bfc0-11e4-979b-705681abff85"], ["organization_id", "bc98e310-bfc0-11e4-88ba-705681abff85"], ["created_at", "2015-03-01 03:12:04.681351"], ["updated_at", "2015-03-01 03:12:04.681351"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'bc98e310-bfc0-11e4-88ba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "bc98e310-bfc0-11e4-88ba-705681abff85"], ["created_at", "2015-03-01 03:12:04.687440"], ["updated_at", "2015-03-01 03:12:04.687440"], ["token", "4PPe7uOISsLEh_kbw0nF2_Tpjt83Itj7x3J26hgNMAk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:12:04 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$SjZCpOkmRY1ub3r9vs.jtuehFSRiiSHz.Fdq6ogeiO0Wv9R7g5uzK"], ["created_at", "2015-03-01 03:12:04.704776"], ["updated_at", "2015-03-01 03:12:04.704776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$MpYmOHoAzrnVwCAea/m0P.nicfwdjTAZgl6QFZZTAJpz7bVgmsbBq"], ["created_at", "2015-03-01 03:12:04.709615"], ["updated_at", "2015-03-01 03:12:04.709615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:04.711496"], ["user_id", "bc9e0408-bfc0-11e4-b864-705681abff85"], ["created_at", "2015-03-01 03:12:04.712520"], ["updated_at", "2015-03-01 03:12:04.712520"], ["token", "mo3CNRsZgGNRNkoS9o5Qr78pdu4Buk9HRGs_4oFOd_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:04.714410"], ["user_id", "bc9ebd4e-bfc0-11e4-8506-705681abff85"], ["created_at", "2015-03-01 03:12:04.715192"], ["updated_at", "2015-03-01 03:12:04.715192"], ["token", "Q0d3y-JZAoK52_kGPf-f49YrP4QG8LCPQDoyF68rZMk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:04.718612"], ["updated_at", "2015-03-01 03:12:04.718612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9e0408-bfc0-11e4-b864-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca01932-bfc0-11e4-a71d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc9e0408-bfc0-11e4-b864-705681abff85"], ["organization_id", "bca01932-bfc0-11e4-a71d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:04.722170"], ["updated_at", "2015-03-01 03:12:04.722170"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9ebd4e-bfc0-11e4-8506-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca01932-bfc0-11e4-a71d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc9ebd4e-bfc0-11e4-8506-705681abff85"], ["organization_id", "bca01932-bfc0-11e4-a71d-705681abff85"], ["created_at", "2015-03-01 03:12:04.725987"], ["updated_at", "2015-03-01 03:12:04.725987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'bca01932-bfc0-11e4-a71d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "bca01932-bfc0-11e4-a71d-705681abff85"], ["created_at", "2015-03-01 03:12:04.729729"], ["updated_at", "2015-03-01 03:12:04.729729"], ["token", "gPNB0EXUtUu9qhtkbNTrnlKaHfPC0Ruap5Qp10xU3TE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:12:04 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:12:04.737621' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mo3CNRsZgGNRNkoS9o5Qr78pdu4Buk9HRGs_4oFOd_s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:12:04.739318"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:12:04.740452"], ["id", "bc9f3814-bfc0-11e4-b75a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc9e0408-bfc0-11e4-b864-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc9e0408-bfc0-11e4-b864-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$AhvV4oh2ClVdqOgBhvOth.w1Hz275wYuTE4Ls8JvU5calBeu9SASC"], ["created_at", "2015-03-01 03:12:04.753402"], ["updated_at", "2015-03-01 03:12:04.753402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$jgxiMDVhBKKIBCMBmWlELOl5X6WUwtspNYI5E0Sf/GZ4VeIvKo1LK"], ["created_at", "2015-03-01 03:12:04.758114"], ["updated_at", "2015-03-01 03:12:04.758114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:04.760080"], ["user_id", "bca56fa4-bfc0-11e4-84c2-705681abff85"], ["created_at", "2015-03-01 03:12:04.761058"], ["updated_at", "2015-03-01 03:12:04.761058"], ["token", "4fesmYsbsTMDsr3hjPw5FFzMHLV6MvzsC-8RmHvhjEc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:04.763497"], ["user_id", "bca622b4-bfc0-11e4-8434-705681abff85"], ["created_at", "2015-03-01 03:12:04.764296"], ["updated_at", "2015-03-01 03:12:04.764296"], ["token", "T5U5guq7UkwZiOeTLmUnld4IH29IW0683Vg52-ujlKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:04.767892"], ["updated_at", "2015-03-01 03:12:04.767892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca56fa4-bfc0-11e4-84c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca7a580-bfc0-11e4-bf0e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca56fa4-bfc0-11e4-84c2-705681abff85"], ["organization_id", "bca7a580-bfc0-11e4-bf0e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:04.774303"], ["updated_at", "2015-03-01 03:12:04.774303"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca622b4-bfc0-11e4-8434-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca7a580-bfc0-11e4-bf0e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bca622b4-bfc0-11e4-8434-705681abff85"], ["organization_id", "bca7a580-bfc0-11e4-bf0e-705681abff85"], ["created_at", "2015-03-01 03:12:04.778570"], ["updated_at", "2015-03-01 03:12:04.778570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'bca7a580-bfc0-11e4-bf0e-705681abff85') LIMIT 1 SQL (7.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "bca7a580-bfc0-11e4-bf0e-705681abff85"], ["created_at", "2015-03-01 03:12:04.787823"], ["updated_at", "2015-03-01 03:12:04.787823"], ["token", "P89re4G6QS4h_p7gR72VIUnQlxWv5svtpywkwnTosuk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:12:04 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:12:04.813300' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4fesmYsbsTMDsr3hjPw5FFzMHLV6MvzsC-8RmHvhjEc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:12:04.814998"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:12:04.816310"], ["id", "bca6a3ba-bfc0-11e4-bb35-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bca56fa4-bfc0-11e4-84c2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bca56fa4-bfc0-11e4-84c2-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bca56fa4-bfc0-11e4-84c2-705681abff85' LIMIT 1 [["organization_id", "bca7a580-bfc0-11e4-bf0e-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bca7a580-bfc0-11e4-bf0e-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bca7a580-bfc0-11e4-bf0e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "bca7a580-bfc0-11e4-bf0e-705681abff85"], ["created_at", "2015-03-01 03:12:04.832404"], ["updated_at", "2015-03-01 03:12:04.832404"], ["token", "qVHZn0sTt6TfUXvF6Ehy3XpeARTVOrx9tJ4KCGQxsiM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8b6558a6-5ed6-43ad-b19d-32b66fd03cb6) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bcb189b0-bfc0-11e4-a763-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bcb189b0-bfc0-11e4-a763-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8b6558a6-5ed6-43ad-b19d-32b66fd03cb6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bcb189b0-bfc0-11e4-a763-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [8b6558a6-5ed6-43ad-b19d-32b66fd03cb6] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bca7a580-bfc0-11e4-bf0e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8b6558a6-5ed6-43ad-b19d-32b66fd03cb6] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [8b6558a6-5ed6-43ad-b19d-32b66fd03cb6] Clubhouse::Mailer#invitation: processed outbound mail in 309.2ms [ActiveJob] [ActionMailer::DeliveryJob] [8b6558a6-5ed6-43ad-b19d-32b66fd03cb6] Sent mail to email@example.com (15.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [8b6558a6-5ed6-43ad-b19d-32b66fd03cb6] Date: Sat, 28 Feb 2015 19:12:05 -0800 From: from@example.com To: email@example.com Message-ID: <54f283852b328_12d963ff2e9065bf034a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/qVHZn0sTt6TfUXvF6Ehy3XpeARTVOrx9tJ4KCGQxsiM If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [8b6558a6-5ed6-43ad-b19d-32b66fd03cb6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 325.22ms Completed 201 Created in 377ms (Views: 1.7ms | ActiveRecord: 3.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$cNdi4yTfQ.T0VFWX8e3qiefjqQ2qSDF3Q5l1A8nX.ovgBBNtroroi"], ["created_at", "2015-03-01 03:12:05.196003"], ["updated_at", "2015-03-01 03:12:05.196003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$90bVYV5g2ibSXprU3FaNx..SZu8rpYVjLPwScbGs1/W2WOVzK4W1K"], ["created_at", "2015-03-01 03:12:05.200345"], ["updated_at", "2015-03-01 03:12:05.200345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:05.202099"], ["user_id", "bce8f4ae-bfc0-11e4-af31-705681abff85"], ["created_at", "2015-03-01 03:12:05.203770"], ["updated_at", "2015-03-01 03:12:05.203770"], ["token", "hZ9UrjaDgf5pgHMO7PdOSDtmdx-SmpoEYBWILrqyB2Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:05.206635"], ["user_id", "bce998e6-bfc0-11e4-afc3-705681abff85"], ["created_at", "2015-03-01 03:12:05.207361"], ["updated_at", "2015-03-01 03:12:05.207361"], ["token", "M27J1OTAcMPbcdpzWnWPU6aU4g2skcVud_8vQDyTejs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:05.216920"], ["updated_at", "2015-03-01 03:12:05.216920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bce8f4ae-bfc0-11e4-af31-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcec2624-bfc0-11e4-a1ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bce8f4ae-bfc0-11e4-af31-705681abff85"], ["organization_id", "bcec2624-bfc0-11e4-a1ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:05.220573"], ["updated_at", "2015-03-01 03:12:05.220573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bce998e6-bfc0-11e4-afc3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcec2624-bfc0-11e4-a1ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bce998e6-bfc0-11e4-afc3-705681abff85"], ["organization_id", "bcec2624-bfc0-11e4-a1ce-705681abff85"], ["created_at", "2015-03-01 03:12:05.223803"], ["updated_at", "2015-03-01 03:12:05.223803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'bcec2624-bfc0-11e4-a1ce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "bcec2624-bfc0-11e4-a1ce-705681abff85"], ["created_at", "2015-03-01 03:12:05.227665"], ["updated_at", "2015-03-01 03:12:05.227665"], ["token", "HdqV6awtDiTyxKUBG7qXE4URgS5fXyawRcle7_g7cr4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:12:05 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:12:05.232502' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hZ9UrjaDgf5pgHMO7PdOSDtmdx-SmpoEYBWILrqyB2Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:12:05.234209"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:12:05.235209"], ["id", "bcea42c8-bfc0-11e4-8e24-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bce8f4ae-bfc0-11e4-af31-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bce8f4ae-bfc0-11e4-af31-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bce8f4ae-bfc0-11e4-af31-705681abff85' LIMIT 1 [["organization_id", "bcec2624-bfc0-11e4-a1ce-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bcec2624-bfc0-11e4-a1ce-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bcec2624-bfc0-11e4-a1ce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "bcec2624-bfc0-11e4-a1ce-705681abff85"], ["created_at", "2015-03-01 03:12:05.244579"], ["updated_at", "2015-03-01 03:12:05.244579"], ["token", "M6TuZqDa-_4qGAAWMbeGi5TXu6SeVd2Dt1Afyus9-eY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 94cf0e8e-6274-4324-80f2-a874affceaae) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bcf08a02-bfc0-11e4-9574-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bcf08a02-bfc0-11e4-9574-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [94cf0e8e-6274-4324-80f2-a874affceaae] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bcf08a02-bfc0-11e4-9574-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [94cf0e8e-6274-4324-80f2-a874affceaae] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bcec2624-bfc0-11e4-a1ce-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [94cf0e8e-6274-4324-80f2-a874affceaae] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [94cf0e8e-6274-4324-80f2-a874affceaae] Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms [ActiveJob] [ActionMailer::DeliveryJob] [94cf0e8e-6274-4324-80f2-a874affceaae] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [94cf0e8e-6274-4324-80f2-a874affceaae] Date: Sat, 28 Feb 2015 19:12:05 -0800 From: from@example.com To: email@example.com Message-ID: <54f283853df42_12d963ff2e9065bf04e6@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/M6TuZqDa-_4qGAAWMbeGi5TXu6SeVd2Dt1Afyus9-eY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [94cf0e8e-6274-4324-80f2-a874affceaae] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.57ms Completed 201 Created in 23ms (Views: 0.5ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$De43UOuh5VXWiP5WjOfg6uB82AcSP5xYV8CYXZefaufG7tyaFsjCO"], ["created_at", "2015-03-01 03:12:05.264029"], ["updated_at", "2015-03-01 03:12:05.264029"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$NTHyPbZiknh6XnUmRJHEfuTMVnRSpPhLBNHFTUQtavbITbivbqrxK"], ["created_at", "2015-03-01 03:12:05.270615"], ["updated_at", "2015-03-01 03:12:05.270615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:05.272339"], ["user_id", "bcf355de-bfc0-11e4-8836-705681abff85"], ["created_at", "2015-03-01 03:12:05.273254"], ["updated_at", "2015-03-01 03:12:05.273254"], ["token", "7Pqz7yf-cjTju9I0GheWnKsp9MKy-aqhGGufIlrXmqM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:05.282059"], ["user_id", "bcf458ee-bfc0-11e4-8c7d-705681abff85"], ["created_at", "2015-03-01 03:12:05.282790"], ["updated_at", "2015-03-01 03:12:05.282790"], ["token", "dtILMycz2sSCSOMJ7XbugajoKJYIVXX8uPhSRbne63g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:05.286158"], ["updated_at", "2015-03-01 03:12:05.286158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcf355de-bfc0-11e4-8836-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcf6b238-bfc0-11e4-9bba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcf355de-bfc0-11e4-8836-705681abff85"], ["organization_id", "bcf6b238-bfc0-11e4-9bba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:05.289662"], ["updated_at", "2015-03-01 03:12:05.289662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcf458ee-bfc0-11e4-8c7d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcf6b238-bfc0-11e4-9bba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcf458ee-bfc0-11e4-8c7d-705681abff85"], ["organization_id", "bcf6b238-bfc0-11e4-9bba-705681abff85"], ["created_at", "2015-03-01 03:12:05.293766"], ["updated_at", "2015-03-01 03:12:05.293766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'bcf6b238-bfc0-11e4-9bba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "bcf6b238-bfc0-11e4-9bba-705681abff85"], ["created_at", "2015-03-01 03:12:05.297932"], ["updated_at", "2015-03-01 03:12:05.297932"], ["token", "4gUXyWar8xloCDJBeAB6cQ2Ux0ZNFdqJfyB-Qg0PoXo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:12:05 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:12:05.306245' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7Pqz7yf-cjTju9I0GheWnKsp9MKy-aqhGGufIlrXmqM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:12:05.307735"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:12:05.308781"], ["id", "bcf4d936-bfc0-11e4-8d25-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcf355de-bfc0-11e4-8836-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bcf355de-bfc0-11e4-8836-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcf355de-bfc0-11e4-8836-705681abff85' LIMIT 1 [["organization_id", "bcf6b238-bfc0-11e4-9bba-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bcf6b238-bfc0-11e4-9bba-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'bcf6b238-bfc0-11e4-9bba-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 53ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (13.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Wav/cHno8K4aoFMDIJIVX.gU0lXN.ckfEreR0r.f.y7uRM0cubSla"], ["created_at", "2015-03-01 03:12:29.653780"], ["updated_at", "2015-03-01 03:12:29.653780"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$FXMSz0mAfRQ.TTP9Jg9mT.37mOQ8jdzY15X5sOFJpt5Q1GKZK/Y0K"], ["created_at", "2015-03-01 03:12:29.675669"], ["updated_at", "2015-03-01 03:12:29.675669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:29.685242"], ["user_id", "cb7efb62-bfc0-11e4-a8b9-705681abff85"], ["created_at", "2015-03-01 03:12:29.692592"], ["updated_at", "2015-03-01 03:12:29.692592"], ["token", "BaSiukjBFCgyK8Jn-iKT7zMXHQBr6z6ykhf1LNPLhnA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:29.694969"], ["user_id", "cb804620-bfc0-11e4-9a7f-705681abff85"], ["created_at", "2015-03-01 03:12:29.695778"], ["updated_at", "2015-03-01 03:12:29.695778"], ["token", "PEUL_0BupSO8LMvhIbRMtMRuo6PGFCsVrBrPrPczuZA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:29.704409"], ["updated_at", "2015-03-01 03:12:29.704409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cb7efb62-bfc0-11e4-a8b9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cb84b21e-bfc0-11e4-abc0-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cb7efb62-bfc0-11e4-a8b9-705681abff85"], ["organization_id", "cb84b21e-bfc0-11e4-abc0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:29.751846"], ["updated_at", "2015-03-01 03:12:29.751846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cb804620-bfc0-11e4-9a7f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cb84b21e-bfc0-11e4-abc0-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cb804620-bfc0-11e4-9a7f-705681abff85"], ["organization_id", "cb84b21e-bfc0-11e4-abc0-705681abff85"], ["created_at", "2015-03-01 03:12:29.756599"], ["updated_at", "2015-03-01 03:12:29.756599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'cb84b21e-bfc0-11e4-abc0-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "cb84b21e-bfc0-11e4-abc0-705681abff85"], ["created_at", "2015-03-01 03:12:29.770038"], ["updated_at", "2015-03-01 03:12:29.770038"], ["token", "_oQgbyKEz8E_4tSXH9a9snj0rkZKUauif2M8sulLdL0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:12:29 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$ayqQbydJy0Dlx5KnAyVW8uKwqP3M0C1nd9v.2os/NuOEiCXosYlSq"], ["created_at", "2015-03-01 03:12:29.809219"], ["updated_at", "2015-03-01 03:12:29.809219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (12.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$s6J6AbtYneV/gmEJBO1L0OYtmoXOaiJPCfh6SWTYB4iY2Xd8mL3/i"], ["created_at", "2015-03-01 03:12:29.814049"], ["updated_at", "2015-03-01 03:12:29.814049"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:29.827681"], ["user_id", "cb94a57a-bfc0-11e4-b26a-705681abff85"], ["created_at", "2015-03-01 03:12:29.828480"], ["updated_at", "2015-03-01 03:12:29.828480"], ["token", "QUjpSXBQLDK4qtKoe7YikTC5RxRFkr4pOhP8Dlh3_xU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:29.830410"], ["user_id", "cb955d76-bfc0-11e4-a18e-705681abff85"], ["created_at", "2015-03-01 03:12:29.831088"], ["updated_at", "2015-03-01 03:12:29.831088"], ["token", "2PFOU2g13CzyOWTViFL_yQsEoWO_E14PeLB2pZ0A94E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:29.834957"], ["updated_at", "2015-03-01 03:12:29.834957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cb94a57a-bfc0-11e4-b26a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cb98914e-bfc0-11e4-b1dd-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cb94a57a-bfc0-11e4-b26a-705681abff85"], ["organization_id", "cb98914e-bfc0-11e4-b1dd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:29.838683"], ["updated_at", "2015-03-01 03:12:29.838683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cb955d76-bfc0-11e4-a18e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cb98914e-bfc0-11e4-b1dd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cb955d76-bfc0-11e4-a18e-705681abff85"], ["organization_id", "cb98914e-bfc0-11e4-b1dd-705681abff85"], ["created_at", "2015-03-01 03:12:29.842604"], ["updated_at", "2015-03-01 03:12:29.842604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'cb98914e-bfc0-11e4-b1dd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "cb98914e-bfc0-11e4-b1dd-705681abff85"], ["created_at", "2015-03-01 03:12:29.846417"], ["updated_at", "2015-03-01 03:12:29.846417"], ["token", "rWvUoC5uZJMtqPalHFBCd8kZDxnVkxzgF81ofwX2SvI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/cb9a5646-bfc0-11e4-b2cb-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:12:29 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"cb9a5646-bfc0-11e4-b2cb-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:12:29.852827' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QUjpSXBQLDK4qtKoe7YikTC5RxRFkr4pOhP8Dlh3_xU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:12:29.861231"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:12:29.862610"], ["id", "cb979c44-bfc0-11e4-8f2d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cb94a57a-bfc0-11e4-b26a-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "cb94a57a-bfc0-11e4-b26a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cb94a57a-bfc0-11e4-b26a-705681abff85' LIMIT 1 [["organization_id", "cb98914e-bfc0-11e4-b1dd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "cb94a57a-bfc0-11e4-b26a-705681abff85"], ["id", "cb9a5646-bfc0-11e4-b2cb-705681abff85"]] Completed 404 Not Found in 38ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$1PVw19fk5IWf.fCYdsrW8Om1Wws8WwvMFuX4FjIvyzSVuQfJn3/WO"], ["created_at", "2015-03-01 03:12:29.895931"], ["updated_at", "2015-03-01 03:12:29.895931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$dyAakjUpRPT4uRuFij9ftOCcNPT1ItKz0i0VsPxsclHACIR64K3k6"], ["created_at", "2015-03-01 03:12:29.900576"], ["updated_at", "2015-03-01 03:12:29.900576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:29.902275"], ["user_id", "cba1e118-bfc0-11e4-b595-705681abff85"], ["created_at", "2015-03-01 03:12:29.903044"], ["updated_at", "2015-03-01 03:12:29.903044"], ["token", "DgdZkO4q-_JheNd-YsqDBVmBfwMBtovPgTQsRUQo8ng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:29.905908"], ["user_id", "cba2920c-bfc0-11e4-84c3-705681abff85"], ["created_at", "2015-03-01 03:12:29.907050"], ["updated_at", "2015-03-01 03:12:29.907050"], ["token", "k5-JZZyLRoURk3dfEDJC4J0QfmuW_HLtcHnF9lKkVTo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:29.911827"], ["updated_at", "2015-03-01 03:12:29.911827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cba1e118-bfc0-11e4-b595-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cba44818-bfc0-11e4-bb5d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cba1e118-bfc0-11e4-b595-705681abff85"], ["organization_id", "cba44818-bfc0-11e4-bb5d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:29.915149"], ["updated_at", "2015-03-01 03:12:29.915149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cba2920c-bfc0-11e4-84c3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cba44818-bfc0-11e4-bb5d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cba2920c-bfc0-11e4-84c3-705681abff85"], ["organization_id", "cba44818-bfc0-11e4-bb5d-705681abff85"], ["created_at", "2015-03-01 03:12:29.918902"], ["updated_at", "2015-03-01 03:12:29.918902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'cba44818-bfc0-11e4-bb5d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "cba44818-bfc0-11e4-bb5d-705681abff85"], ["created_at", "2015-03-01 03:12:29.922841"], ["updated_at", "2015-03-01 03:12:29.922841"], ["token", "Q0vobdfxI8yL93Up7gUZDU904SjA1_HkXWRUKuVAdNA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:12:29 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$m.FBSpm9LDyN3PInxA19KuAOierkaBFn.Sttsy.YMO7ovZgHujaE."], ["created_at", "2015-03-01 03:12:29.937603"], ["updated_at", "2015-03-01 03:12:29.937603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$.G.nlusz6xwgS/1bMkGGp.hkEt30QCGZ9C8d2zfi2DKe.3WL06R42"], ["created_at", "2015-03-01 03:12:29.942460"], ["updated_at", "2015-03-01 03:12:29.942460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:29.944105"], ["user_id", "cba841ca-bfc0-11e4-9bb9-705681abff85"], ["created_at", "2015-03-01 03:12:29.944968"], ["updated_at", "2015-03-01 03:12:29.944968"], ["token", "dBFH5CYpVyrEiFwr4ieBEGQXuV_-46QmRGyJ24unvZs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:29.946747"], ["user_id", "cba8f624-bfc0-11e4-9c07-705681abff85"], ["created_at", "2015-03-01 03:12:29.947485"], ["updated_at", "2015-03-01 03:12:29.947485"], ["token", "OjTpAIyEcdgK-MDWocRBqvbJTZMvI8-saxMl8YrH6Xg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:29.950818"], ["updated_at", "2015-03-01 03:12:29.950818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cba841ca-bfc0-11e4-9bb9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbaa3df4-bfc0-11e4-9552-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cba841ca-bfc0-11e4-9bb9-705681abff85"], ["organization_id", "cbaa3df4-bfc0-11e4-9552-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:29.954521"], ["updated_at", "2015-03-01 03:12:29.954521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cba8f624-bfc0-11e4-9c07-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbaa3df4-bfc0-11e4-9552-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cba8f624-bfc0-11e4-9c07-705681abff85"], ["organization_id", "cbaa3df4-bfc0-11e4-9552-705681abff85"], ["created_at", "2015-03-01 03:12:29.957582"], ["updated_at", "2015-03-01 03:12:29.957582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'cbaa3df4-bfc0-11e4-9552-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "cbaa3df4-bfc0-11e4-9552-705681abff85"], ["created_at", "2015-03-01 03:12:29.960968"], ["updated_at", "2015-03-01 03:12:29.960968"], ["token", "gakz851NTXdQqNSbVFHrm2nRrXxR9z2Tb7tQqWcrd7g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:12:29 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:12:29.968663' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dBFH5CYpVyrEiFwr4ieBEGQXuV_-46QmRGyJ24unvZs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:12:29.970116"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:12:29.971285"], ["id", "cba9608c-bfc0-11e4-bb18-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cba841ca-bfc0-11e4-9bb9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "cba841ca-bfc0-11e4-9bb9-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$ehLha2oNYtuJaJFPx2gt7esF4qKvQRpHk6BkZmRTvjf.T3TmoEpHW"], ["created_at", "2015-03-01 03:12:29.983175"], ["updated_at", "2015-03-01 03:12:29.983175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$pWzlDfK/sMx5lOdjqPrw9O2dZyn11KYClytyA6I.VHqj9XEbvYEXy"], ["created_at", "2015-03-01 03:12:29.988925"], ["updated_at", "2015-03-01 03:12:29.988925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:29.990868"], ["user_id", "cbaf2d1e-bfc0-11e4-a7ea-705681abff85"], ["created_at", "2015-03-01 03:12:29.991750"], ["updated_at", "2015-03-01 03:12:29.991750"], ["token", "mCjg56VgXmv6fXNK3h8-UkFBzzvXaQpFlrXsVBrG-bs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:29.993564"], ["user_id", "cbb01738-bfc0-11e4-b81e-705681abff85"], ["created_at", "2015-03-01 03:12:29.994298"], ["updated_at", "2015-03-01 03:12:29.994298"], ["token", "9Yo4n6ePi2gzjZaLOimUZyCS0HuuYhpRXxm1i6HBk5M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:29.998212"], ["updated_at", "2015-03-01 03:12:29.998212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbaf2d1e-bfc0-11e4-a7ea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbb178c6-bfc0-11e4-b841-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbaf2d1e-bfc0-11e4-a7ea-705681abff85"], ["organization_id", "cbb178c6-bfc0-11e4-b841-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:30.001807"], ["updated_at", "2015-03-01 03:12:30.001807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbb01738-bfc0-11e4-b81e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbb178c6-bfc0-11e4-b841-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbb01738-bfc0-11e4-b81e-705681abff85"], ["organization_id", "cbb178c6-bfc0-11e4-b841-705681abff85"], ["created_at", "2015-03-01 03:12:30.005401"], ["updated_at", "2015-03-01 03:12:30.005401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'cbb178c6-bfc0-11e4-b841-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "cbb178c6-bfc0-11e4-b841-705681abff85"], ["created_at", "2015-03-01 03:12:30.009109"], ["updated_at", "2015-03-01 03:12:30.009109"], ["token", "l0tmrqxIJ-4-bNd_7WBThri9iaI6eO_e0jL_9AVUP_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:12:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:12:30.014499' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mCjg56VgXmv6fXNK3h8-UkFBzzvXaQpFlrXsVBrG-bs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:12:30.016328"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:12:30.018346"], ["id", "cbb084ca-bfc0-11e4-aecd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbaf2d1e-bfc0-11e4-a7ea-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "cbaf2d1e-bfc0-11e4-a7ea-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cbaf2d1e-bfc0-11e4-a7ea-705681abff85' LIMIT 1 [["organization_id", "cbb178c6-bfc0-11e4-b841-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cbb178c6-bfc0-11e4-b841-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'cbb178c6-bfc0-11e4-b841-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "cbb178c6-bfc0-11e4-b841-705681abff85"], ["created_at", "2015-03-01 03:12:30.032654"], ["updated_at", "2015-03-01 03:12:30.032654"], ["token", "A3LfCXpfi4mtWCbdb40wLR95EudUeOosZwRH42rIeCg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: cd578783-49bf-479f-a0f3-961039620364) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/cbb6cc2c-bfc0-11e4-b6b9-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "cbb6cc2c-bfc0-11e4-b6b9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [cd578783-49bf-479f-a0f3-961039620364] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/cbb6cc2c-bfc0-11e4-b6b9-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [cd578783-49bf-479f-a0f3-961039620364] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cbb178c6-bfc0-11e4-b841-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [cd578783-49bf-479f-a0f3-961039620364] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [cd578783-49bf-479f-a0f3-961039620364] Clubhouse::Mailer#invitation: processed outbound mail in 230.1ms [ActiveJob] [ActionMailer::DeliveryJob] [cd578783-49bf-479f-a0f3-961039620364] Sent mail to email@example.com (15.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [cd578783-49bf-479f-a0f3-961039620364] Date: Sat, 28 Feb 2015 19:12:30 -0800 From: from@example.com To: email@example.com Message-ID: <54f2839e48a33_12d9b3ff496065bec82653@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/A3LfCXpfi4mtWCbdb40wLR95EudUeOosZwRH42rIeCg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [cd578783-49bf-479f-a0f3-961039620364] Performed ActionMailer::DeliveryJob from Inline(mailers) in 246.57ms Completed 201 Created in 297ms (Views: 1.6ms | ActiveRecord: 3.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (18.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$yiDYjKfMdurw3krz9Thby.INrpvbBFGLxVUaiuay.EdCdbtkkpagm"], ["created_at", "2015-03-01 03:12:30.358367"], ["updated_at", "2015-03-01 03:12:30.358367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$AuSJcIFGTODGPpLvsHbEWu2OXE2HiT./80WwJc0WuQQVOGTG3zRWy"], ["created_at", "2015-03-01 03:12:30.366945"], ["updated_at", "2015-03-01 03:12:30.366945"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:30.371912"], ["user_id", "cbe89982-bfc0-11e4-8d42-705681abff85"], ["created_at", "2015-03-01 03:12:30.374875"], ["updated_at", "2015-03-01 03:12:30.374875"], ["token", "CbnguwxulI6NMDE4VMWy-cA1E6G7CQmGPZnJOcyv3fo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:30.379011"], ["user_id", "cbea0100-bfc0-11e4-947a-705681abff85"], ["created_at", "2015-03-01 03:12:30.380498"], ["updated_at", "2015-03-01 03:12:30.380498"], ["token", "Blser2W9qXe2Et6T8wvjxd2_3dXWuk82d82opqvTLOQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:30.388330"], ["updated_at", "2015-03-01 03:12:30.388330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe89982-bfc0-11e4-8d42-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbed1ab6-bfc0-11e4-8374-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbe89982-bfc0-11e4-8d42-705681abff85"], ["organization_id", "cbed1ab6-bfc0-11e4-8374-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:30.393632"], ["updated_at", "2015-03-01 03:12:30.393632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbea0100-bfc0-11e4-947a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbed1ab6-bfc0-11e4-8374-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbea0100-bfc0-11e4-947a-705681abff85"], ["organization_id", "cbed1ab6-bfc0-11e4-8374-705681abff85"], ["created_at", "2015-03-01 03:12:30.397262"], ["updated_at", "2015-03-01 03:12:30.397262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'cbed1ab6-bfc0-11e4-8374-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "cbed1ab6-bfc0-11e4-8374-705681abff85"], ["created_at", "2015-03-01 03:12:30.400845"], ["updated_at", "2015-03-01 03:12:30.400845"], ["token", "I4dgph8AZVyv4qCf2unnFniFkaS2jx_S9Pe2GYVjwy0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:12:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:12:30.406791' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CbnguwxulI6NMDE4VMWy-cA1E6G7CQmGPZnJOcyv3fo"]]  (0.7ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:12:30.409087"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:12:30.412040"], ["id", "cbeb376e-bfc0-11e4-8f81-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbe89982-bfc0-11e4-8d42-705681abff85"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "cbe89982-bfc0-11e4-8d42-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cbe89982-bfc0-11e4-8d42-705681abff85' LIMIT 1 [["organization_id", "cbed1ab6-bfc0-11e4-8374-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cbed1ab6-bfc0-11e4-8374-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'cbed1ab6-bfc0-11e4-8374-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "cbed1ab6-bfc0-11e4-8374-705681abff85"], ["created_at", "2015-03-01 03:12:30.431286"], ["updated_at", "2015-03-01 03:12:30.431286"], ["token", "tKvt3tOnItsA8Qp7dT0ml-EbrFv5j3wKTtTWw-SDaaU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 33d9b29b-aef3-4f86-a848-7f02947bec9d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/cbf394ea-bfc0-11e4-8ef8-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "cbf394ea-bfc0-11e4-8ef8-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [33d9b29b-aef3-4f86-a848-7f02947bec9d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/cbf394ea-bfc0-11e4-8ef8-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [33d9b29b-aef3-4f86-a848-7f02947bec9d] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cbed1ab6-bfc0-11e4-8374-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [33d9b29b-aef3-4f86-a848-7f02947bec9d] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [33d9b29b-aef3-4f86-a848-7f02947bec9d] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [33d9b29b-aef3-4f86-a848-7f02947bec9d] Sent mail to email@example.com (2.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [33d9b29b-aef3-4f86-a848-7f02947bec9d] Date: Sat, 28 Feb 2015 19:12:30 -0800 From: from@example.com To: email@example.com Message-ID: <54f2839e6b1d2_12d9b3ff496065bec827c8@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/tKvt3tOnItsA8Qp7dT0ml-EbrFv5j3wKTtTWw-SDaaU If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [33d9b29b-aef3-4f86-a848-7f02947bec9d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.2ms Completed 201 Created in 36ms (Views: 1.2ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$y/7fCX9tMhiAtn4CBv9qPuyyhdyIQ26vi2Mgjn09WxXt3a.MhGcka"], ["created_at", "2015-03-01 03:12:30.451942"], ["updated_at", "2015-03-01 03:12:30.451942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$6/Te9OJ9n9zDnqHIoVGO/e.kIlAqDfS5dStknjk3bvChs2yvbD.lS"], ["created_at", "2015-03-01 03:12:30.456752"], ["updated_at", "2015-03-01 03:12:30.456752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:30.458363"], ["user_id", "cbf6b968-bfc0-11e4-adea-705681abff85"], ["created_at", "2015-03-01 03:12:30.459121"], ["updated_at", "2015-03-01 03:12:30.459121"], ["token", "hGQCVeHKiVIhrRW4bGdf_RiVBCNBDEBM08hoTdprEwA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:12:30.460730"], ["user_id", "cbf76e1c-bfc0-11e4-b551-705681abff85"], ["created_at", "2015-03-01 03:12:30.461644"], ["updated_at", "2015-03-01 03:12:30.461644"], ["token", "q5Fny0O4I5nhXg_uFsnLkpJlfeWkHuNC1fzd_dDbbu4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:12:30.464861"], ["updated_at", "2015-03-01 03:12:30.464861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbf6b968-bfc0-11e4-adea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbf8b010-bfc0-11e4-92ed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbf6b968-bfc0-11e4-adea-705681abff85"], ["organization_id", "cbf8b010-bfc0-11e4-92ed-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:12:30.468847"], ["updated_at", "2015-03-01 03:12:30.468847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbf76e1c-bfc0-11e4-b551-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbf8b010-bfc0-11e4-92ed-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbf76e1c-bfc0-11e4-b551-705681abff85"], ["organization_id", "cbf8b010-bfc0-11e4-92ed-705681abff85"], ["created_at", "2015-03-01 03:12:30.472311"], ["updated_at", "2015-03-01 03:12:30.472311"]]  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'cbf8b010-bfc0-11e4-92ed-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "cbf8b010-bfc0-11e4-92ed-705681abff85"], ["created_at", "2015-03-01 03:12:30.479518"], ["updated_at", "2015-03-01 03:12:30.479518"], ["token", "94J5ltL9T6l5XJnabEfK8T-0OSZMkdrUJwdR8T7qoiE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:12:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:12:30.485223' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hGQCVeHKiVIhrRW4bGdf_RiVBCNBDEBM08hoTdprEwA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:12:30.486596"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:12:30.487532"], ["id", "cbf7cfc4-bfc0-11e4-aab5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbf6b968-bfc0-11e4-adea-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "cbf6b968-bfc0-11e4-adea-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cbf6b968-bfc0-11e4-adea-705681abff85' LIMIT 1 [["organization_id", "cbf8b010-bfc0-11e4-92ed-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cbf8b010-bfc0-11e4-92ed-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'cbf8b010-bfc0-11e4-92ed-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$B6tNDN.kbGmehcen17dBjOnls42dzTGTkf2/aGtu140MlrI80pNqa"], ["created_at", "2015-03-01 03:13:56.683630"], ["updated_at", "2015-03-01 03:13:56.683630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$8AiflJdH.VtbXUK26wS2JeArQ7e5q6f6FRLKXFMyBQr6ZnctlRzhW"], ["created_at", "2015-03-01 03:13:56.689948"], ["updated_at", "2015-03-01 03:13:56.689948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:56.698535"], ["user_id", "ff5cce6e-bfc0-11e4-b663-705681abff85"], ["created_at", "2015-03-01 03:13:56.708892"], ["updated_at", "2015-03-01 03:13:56.708892"], ["token", "6g_VNsYoodn2sD-xyn03xpDQE690Pm2FQPZpTQyW5RU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:56.718173"], ["user_id", "ff5d93ee-bfc0-11e4-af90-705681abff85"], ["created_at", "2015-03-01 03:13:56.719176"], ["updated_at", "2015-03-01 03:13:56.719176"], ["token", "5x1BpNhsfeqx6dZX3aKqsLnimnBf45rXFpv01dRVsE0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:13:56.727548"], ["updated_at", "2015-03-01 03:13:56.727548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff5cce6e-bfc0-11e4-b663-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff635e64-bfc0-11e4-b7ee-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ff5cce6e-bfc0-11e4-b663-705681abff85"], ["organization_id", "ff635e64-bfc0-11e4-b7ee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:13:56.769993"], ["updated_at", "2015-03-01 03:13:56.769993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff5d93ee-bfc0-11e4-af90-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff635e64-bfc0-11e4-b7ee-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ff5d93ee-bfc0-11e4-af90-705681abff85"], ["organization_id", "ff635e64-bfc0-11e4-b7ee-705681abff85"], ["created_at", "2015-03-01 03:13:56.775375"], ["updated_at", "2015-03-01 03:13:56.775375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'ff635e64-bfc0-11e4-b7ee-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "ff635e64-bfc0-11e4-b7ee-705681abff85"], ["created_at", "2015-03-01 03:13:56.786106"], ["updated_at", "2015-03-01 03:13:56.786106"], ["token", "I4NemKJFA3Au8dPhAfMJSEa0FIHOmDPITTa_4EHycDQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:13:56 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$NuSp9KJwWayUk4l2IjAfn.gRIeWq27noV4bkJmJGeTgSMnIFZ5q26"], ["created_at", "2015-03-01 03:13:56.821184"], ["updated_at", "2015-03-01 03:13:56.821184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$U3po8NCxA9H2pKDPQJrcGuWd0kzZJNncCIOE6kl1h7pH4uMzmtcUq"], ["created_at", "2015-03-01 03:13:56.825770"], ["updated_at", "2015-03-01 03:13:56.825770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:56.827558"], ["user_id", "ff719ff6-bfc0-11e4-9f91-705681abff85"], ["created_at", "2015-03-01 03:13:56.828364"], ["updated_at", "2015-03-01 03:13:56.828364"], ["token", "1hrWWJ4T3BqffXPPkLtE5HiT9kjcLnMIkVwWtczLAMU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:56.830474"], ["user_id", "ff724f3c-bfc0-11e4-a97c-705681abff85"], ["created_at", "2015-03-01 03:13:56.831474"], ["updated_at", "2015-03-01 03:13:56.831474"], ["token", "fSVfvCazbMBsqEEO8cMXhCNXFCOl0NLlFTb9x76Fc90"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:13:56.835162"], ["updated_at", "2015-03-01 03:13:56.835162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff719ff6-bfc0-11e4-9f91-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff73bac0-bfc0-11e4-8458-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ff719ff6-bfc0-11e4-9f91-705681abff85"], ["organization_id", "ff73bac0-bfc0-11e4-8458-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:13:56.838579"], ["updated_at", "2015-03-01 03:13:56.838579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff724f3c-bfc0-11e4-a97c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff73bac0-bfc0-11e4-8458-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ff724f3c-bfc0-11e4-a97c-705681abff85"], ["organization_id", "ff73bac0-bfc0-11e4-8458-705681abff85"], ["created_at", "2015-03-01 03:13:56.841803"], ["updated_at", "2015-03-01 03:13:56.841803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'ff73bac0-bfc0-11e4-8458-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "ff73bac0-bfc0-11e4-8458-705681abff85"], ["created_at", "2015-03-01 03:13:56.845177"], ["updated_at", "2015-03-01 03:13:56.845177"], ["token", "kQqFd_PQiH3n6MqbcVzZRKf-UyWBm3ky4rjqncmypy0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/ff75444e-bfc0-11e4-8a24-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:13:56 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"ff75444e-bfc0-11e4-8a24-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:13:56.850755' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1hrWWJ4T3BqffXPPkLtE5HiT9kjcLnMIkVwWtczLAMU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:13:56.857936"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:13:56.859181"], ["id", "ff72bd3c-bfc0-11e4-b121-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ff719ff6-bfc0-11e4-9f91-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "ff719ff6-bfc0-11e4-9f91-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ff719ff6-bfc0-11e4-9f91-705681abff85' LIMIT 1 [["organization_id", "ff73bac0-bfc0-11e4-8458-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "ff719ff6-bfc0-11e4-9f91-705681abff85"], ["id", "ff75444e-bfc0-11e4-8a24-705681abff85"]] Completed 404 Not Found in 38ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$VKZfmVDR.yuuS9Zu6QsYcuM69VNx9iqCBpMiThskiEFQu6X45a96G"], ["created_at", "2015-03-01 03:13:56.894589"], ["updated_at", "2015-03-01 03:13:56.894589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$34VeXVBRm11nH1w05/Ya5OoxbTHQwKyeDAm12RSrsA8S/h2aP.pSa"], ["created_at", "2015-03-01 03:13:56.899547"], ["updated_at", "2015-03-01 03:13:56.899547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:56.901114"], ["user_id", "ff7cd31c-bfc0-11e4-a49b-705681abff85"], ["created_at", "2015-03-01 03:13:56.901954"], ["updated_at", "2015-03-01 03:13:56.901954"], ["token", "MivdlSQJohTS5VyI584zRwLlOj-2rTfBDd1dR01V8Dc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:56.903796"], ["user_id", "ff7d8e7e-bfc0-11e4-9530-705681abff85"], ["created_at", "2015-03-01 03:13:56.904513"], ["updated_at", "2015-03-01 03:13:56.904513"], ["token", "9L83USDJgu-oPDZr-6W99hO52IFxOXvz5qJe_3Hv0h0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:13:56.908051"], ["updated_at", "2015-03-01 03:13:56.908051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff7cd31c-bfc0-11e4-a49b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff7edc16-bfc0-11e4-a5c8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ff7cd31c-bfc0-11e4-a49b-705681abff85"], ["organization_id", "ff7edc16-bfc0-11e4-a5c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:13:56.911722"], ["updated_at", "2015-03-01 03:13:56.911722"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff7d8e7e-bfc0-11e4-9530-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff7edc16-bfc0-11e4-a5c8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ff7d8e7e-bfc0-11e4-9530-705681abff85"], ["organization_id", "ff7edc16-bfc0-11e4-a5c8-705681abff85"], ["created_at", "2015-03-01 03:13:56.916044"], ["updated_at", "2015-03-01 03:13:56.916044"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'ff7edc16-bfc0-11e4-a5c8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "ff7edc16-bfc0-11e4-a5c8-705681abff85"], ["created_at", "2015-03-01 03:13:56.922331"], ["updated_at", "2015-03-01 03:13:56.922331"], ["token", "0I0g9ULyjOvs_LcEd8a-CMgc06UAqTR6L2119j7Cqes"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:13:56 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$6P9X.TkuR8ZFWzurmMEKYOKrKseo/JkQASBuD7LcItFVun/0PRzE6"], ["created_at", "2015-03-01 03:13:56.938587"], ["updated_at", "2015-03-01 03:13:56.938587"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$nTqNU4HjhI5ZDOGeyipD0.MnpNEKlRcCoQ/k3yjU.10I3Trx79g.e"], ["created_at", "2015-03-01 03:13:56.945646"], ["updated_at", "2015-03-01 03:13:56.945646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:56.948366"], ["user_id", "ff8384dc-bfc0-11e4-94c0-705681abff85"], ["created_at", "2015-03-01 03:13:56.949171"], ["updated_at", "2015-03-01 03:13:56.949171"], ["token", "G1uPdVTmtuHxfkoV_pZnWfrf5hsluCiPzhWnVbRvBPQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:56.950913"], ["user_id", "ff84b3c0-bfc0-11e4-aa99-705681abff85"], ["created_at", "2015-03-01 03:13:56.951608"], ["updated_at", "2015-03-01 03:13:56.951608"], ["token", "pUBhQ_8j6AIyCqGhG9LVBOGH-Zz_GpjRJ9em1rsxpc0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:13:56.954965"], ["updated_at", "2015-03-01 03:13:56.954965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff8384dc-bfc0-11e4-94c0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff860612-bfc0-11e4-b66b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ff8384dc-bfc0-11e4-94c0-705681abff85"], ["organization_id", "ff860612-bfc0-11e4-b66b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:13:56.958414"], ["updated_at", "2015-03-01 03:13:56.958414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff84b3c0-bfc0-11e4-aa99-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff860612-bfc0-11e4-b66b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ff84b3c0-bfc0-11e4-aa99-705681abff85"], ["organization_id", "ff860612-bfc0-11e4-b66b-705681abff85"], ["created_at", "2015-03-01 03:13:56.961696"], ["updated_at", "2015-03-01 03:13:56.961696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'ff860612-bfc0-11e4-b66b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "ff860612-bfc0-11e4-b66b-705681abff85"], ["created_at", "2015-03-01 03:13:56.965059"], ["updated_at", "2015-03-01 03:13:56.965059"], ["token", "6KM8S5RhSafy3seZGkNzK6k1s_PndhPHoPr9RAeijEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:13:56 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:13:56.971409' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "G1uPdVTmtuHxfkoV_pZnWfrf5hsluCiPzhWnVbRvBPQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:13:56.973485"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:13:56.974620"], ["id", "ff8529fe-bfc0-11e4-911d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ff8384dc-bfc0-11e4-94c0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "ff8384dc-bfc0-11e4-94c0-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$H.l5VUjJ0nRHhi.4.0bYBOPGcuSi060rojK2ZoMSMOQ4P8Y2DFOCC"], ["created_at", "2015-03-01 03:13:56.986720"], ["updated_at", "2015-03-01 03:13:56.986720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$A0sVRfMBO7aMQ8.tUl92b.RLi3c5582EvMYCHlx0kRfz5klc40mAu"], ["created_at", "2015-03-01 03:13:56.991091"], ["updated_at", "2015-03-01 03:13:56.991091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:56.992691"], ["user_id", "ff8add90-bfc0-11e4-bb83-705681abff85"], ["created_at", "2015-03-01 03:13:56.993507"], ["updated_at", "2015-03-01 03:13:56.993507"], ["token", "GIYs6g80x9gNWD8ld6t09CceT812ByxV9AXX9upyngI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:56.995213"], ["user_id", "ff8b8664-bfc0-11e4-8f0f-705681abff85"], ["created_at", "2015-03-01 03:13:56.996372"], ["updated_at", "2015-03-01 03:13:56.996372"], ["token", "UYgagAFNSNETyGZ65-hIR86eNmPfbAI8TVVePZYvRzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:13:57.000220"], ["updated_at", "2015-03-01 03:13:57.000220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff8add90-bfc0-11e4-bb83-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff8cee6e-bfc0-11e4-88e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ff8add90-bfc0-11e4-bb83-705681abff85"], ["organization_id", "ff8cee6e-bfc0-11e4-88e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:13:57.003714"], ["updated_at", "2015-03-01 03:13:57.003714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff8b8664-bfc0-11e4-8f0f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ff8cee6e-bfc0-11e4-88e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ff8b8664-bfc0-11e4-8f0f-705681abff85"], ["organization_id", "ff8cee6e-bfc0-11e4-88e1-705681abff85"], ["created_at", "2015-03-01 03:13:57.007148"], ["updated_at", "2015-03-01 03:13:57.007148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'ff8cee6e-bfc0-11e4-88e1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "ff8cee6e-bfc0-11e4-88e1-705681abff85"], ["created_at", "2015-03-01 03:13:57.010639"], ["updated_at", "2015-03-01 03:13:57.010639"], ["token", "q_OSpuKC5wxTPgyqdPqj7mmEAqs9vMmzUubdpwNfEQI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:13:57 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:13:57.016382' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GIYs6g80x9gNWD8ld6t09CceT812ByxV9AXX9upyngI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:13:57.017830"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:13:57.018902"], ["id", "ff8beae6-bfc0-11e4-8016-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ff8add90-bfc0-11e4-bb83-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "ff8add90-bfc0-11e4-bb83-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ff8add90-bfc0-11e4-bb83-705681abff85' LIMIT 1 [["organization_id", "ff8cee6e-bfc0-11e4-88e1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ff8cee6e-bfc0-11e4-88e1-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ff8cee6e-bfc0-11e4-88e1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "ff8cee6e-bfc0-11e4-88e1-705681abff85"], ["created_at", "2015-03-01 03:13:57.031631"], ["updated_at", "2015-03-01 03:13:57.031631"], ["token", "EQVid5-vf3KiWDb23yzR1COdIaoRxDXiFcrKinFQkVA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9a25bdbb-395b-4a51-9add-9c9d965e52f1) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ff91cc9a-bfc0-11e4-a962-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ff91cc9a-bfc0-11e4-a962-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9a25bdbb-395b-4a51-9add-9c9d965e52f1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ff91cc9a-bfc0-11e4-a962-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9a25bdbb-395b-4a51-9add-9c9d965e52f1] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ff8cee6e-bfc0-11e4-88e1-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9a25bdbb-395b-4a51-9add-9c9d965e52f1] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [9a25bdbb-395b-4a51-9add-9c9d965e52f1] Clubhouse::Mailer#invitation: processed outbound mail in 251.9ms [ActiveJob] [ActionMailer::DeliveryJob] [9a25bdbb-395b-4a51-9add-9c9d965e52f1] Sent mail to email@example.com (58.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [9a25bdbb-395b-4a51-9add-9c9d965e52f1] Date: Sat, 28 Feb 2015 19:13:57 -0800 From: from@example.com To: email@example.com Message-ID: <54f283f557804_12da73fc8e9c65bf087914@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/EQVid5-vf3KiWDb23yzR1COdIaoRxDXiFcrKinFQkVA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9a25bdbb-395b-4a51-9add-9c9d965e52f1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 310.64ms Completed 201 Created in 358ms (Views: 1.7ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$esvdtTzoxIFguhkl7zQowO0mEXHhmJKz7QNOfCTB8qbX0u.nqT1mW"], ["created_at", "2015-03-01 03:13:57.380162"], ["updated_at", "2015-03-01 03:13:57.380162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$6r3obPS5Dq2r0s/L11sqCeIJa8Y6RhzSn/3gpEOMEh5R7GWRrt/XC"], ["created_at", "2015-03-01 03:13:57.385479"], ["updated_at", "2015-03-01 03:13:57.385479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:57.387106"], ["user_id", "ffc6e7cc-bfc0-11e4-9089-705681abff85"], ["created_at", "2015-03-01 03:13:57.387881"], ["updated_at", "2015-03-01 03:13:57.387881"], ["token", "PSYOiCUfjcFtqptG3WaCcwIctA35QZw2HZdrPdaCLtI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:57.389826"], ["user_id", "ffc7b56c-bfc0-11e4-bea1-705681abff85"], ["created_at", "2015-03-01 03:13:57.390567"], ["updated_at", "2015-03-01 03:13:57.390567"], ["token", "CTxtXRVOcsl45_pMfVcQ5SSGPepRdvswWjPAa2tluZk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:13:57.394100"], ["updated_at", "2015-03-01 03:13:57.394100"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ffc6e7cc-bfc0-11e4-9089-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ffc90458-bfc0-11e4-8645-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ffc6e7cc-bfc0-11e4-9089-705681abff85"], ["organization_id", "ffc90458-bfc0-11e4-8645-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:13:57.398109"], ["updated_at", "2015-03-01 03:13:57.398109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ffc7b56c-bfc0-11e4-bea1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ffc90458-bfc0-11e4-8645-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ffc7b56c-bfc0-11e4-bea1-705681abff85"], ["organization_id", "ffc90458-bfc0-11e4-8645-705681abff85"], ["created_at", "2015-03-01 03:13:57.401279"], ["updated_at", "2015-03-01 03:13:57.401279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'ffc90458-bfc0-11e4-8645-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "ffc90458-bfc0-11e4-8645-705681abff85"], ["created_at", "2015-03-01 03:13:57.404834"], ["updated_at", "2015-03-01 03:13:57.404834"], ["token", "7hoUCk_x1qy_mYquhfTSGf8o9235-p4WscJ1v2OC9Qk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:13:57 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:13:57.409706' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PSYOiCUfjcFtqptG3WaCcwIctA35QZw2HZdrPdaCLtI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:13:57.411647"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:13:57.413092"], ["id", "ffc81930-bfc0-11e4-a309-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ffc6e7cc-bfc0-11e4-9089-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "ffc6e7cc-bfc0-11e4-9089-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ffc6e7cc-bfc0-11e4-9089-705681abff85' LIMIT 1 [["organization_id", "ffc90458-bfc0-11e4-8645-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ffc90458-bfc0-11e4-8645-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ffc90458-bfc0-11e4-8645-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "ffc90458-bfc0-11e4-8645-705681abff85"], ["created_at", "2015-03-01 03:13:57.423385"], ["updated_at", "2015-03-01 03:13:57.423385"], ["token", "AIxhClZgeui1whXfHUQbk66TDFhcnI3P8Yydv9g84ws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 981b8693-8bef-43d9-a44e-6d420fce652c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ffcd83ca-bfc0-11e4-a1c6-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ffcd83ca-bfc0-11e4-a1c6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [981b8693-8bef-43d9-a44e-6d420fce652c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ffcd83ca-bfc0-11e4-a1c6-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [981b8693-8bef-43d9-a44e-6d420fce652c] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ffc90458-bfc0-11e4-8645-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [981b8693-8bef-43d9-a44e-6d420fce652c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [981b8693-8bef-43d9-a44e-6d420fce652c] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [981b8693-8bef-43d9-a44e-6d420fce652c] Sent mail to email@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [981b8693-8bef-43d9-a44e-6d420fce652c] Date: Sat, 28 Feb 2015 19:13:57 -0800 From: from@example.com To: email@example.com Message-ID: <54f283f569314_12da73fc8e9c65bf088054@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/AIxhClZgeui1whXfHUQbk66TDFhcnI3P8Yydv9g84ws If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [981b8693-8bef-43d9-a44e-6d420fce652c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.44ms Completed 201 Created in 24ms (Views: 0.6ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$xaEbCpJnee8T4RC8QJjL2OvF.VmQh2E1NK1bH14MLiPoJkUumYO/C"], ["created_at", "2015-03-01 03:13:57.441858"], ["updated_at", "2015-03-01 03:13:57.441858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$LjGJVGqldc67uQ387Tx9KOOtfWQ8Xr3tQJE/K8NARaqddhLndSzQ."], ["created_at", "2015-03-01 03:13:57.447807"], ["updated_at", "2015-03-01 03:13:57.447807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:57.449599"], ["user_id", "ffd08804-bfc0-11e4-b611-705681abff85"], ["created_at", "2015-03-01 03:13:57.450380"], ["updated_at", "2015-03-01 03:13:57.450380"], ["token", "7rxHYJbbHAXF_qkfAxmcpytgM1Pkc11L1FH1LMf4vkw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:13:57.458628"], ["user_id", "ffd13a38-bfc0-11e4-9572-705681abff85"], ["created_at", "2015-03-01 03:13:57.459425"], ["updated_at", "2015-03-01 03:13:57.459425"], ["token", "fxuSm0AWF5a9jArsx8by6UQkVbiN4nHoJiw7nSOiinY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:13:57.462853"], ["updated_at", "2015-03-01 03:13:57.462853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ffd08804-bfc0-11e4-b611-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ffd389f0-bfc0-11e4-90a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ffd08804-bfc0-11e4-b611-705681abff85"], ["organization_id", "ffd389f0-bfc0-11e4-90a3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:13:57.469671"], ["updated_at", "2015-03-01 03:13:57.469671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ffd13a38-bfc0-11e4-9572-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ffd389f0-bfc0-11e4-90a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ffd13a38-bfc0-11e4-9572-705681abff85"], ["organization_id", "ffd389f0-bfc0-11e4-90a3-705681abff85"], ["created_at", "2015-03-01 03:13:57.473422"], ["updated_at", "2015-03-01 03:13:57.473422"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'ffd389f0-bfc0-11e4-90a3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "ffd389f0-bfc0-11e4-90a3-705681abff85"], ["created_at", "2015-03-01 03:13:57.479797"], ["updated_at", "2015-03-01 03:13:57.479797"], ["token", "Qhm-ZPo5bd3NBgkjzZ6YRivQxW5k9HARBRwMyxVe84c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:13:57 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:13:57.485062' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7rxHYJbbHAXF_qkfAxmcpytgM1Pkc11L1FH1LMf4vkw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:13:57.486442"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:13:57.487343"], ["id", "ffd1a3d8-bfc0-11e4-9cea-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ffd08804-bfc0-11e4-b611-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "ffd08804-bfc0-11e4-b611-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ffd08804-bfc0-11e4-b611-705681abff85' LIMIT 1 [["organization_id", "ffd389f0-bfc0-11e4-90a3-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ffd389f0-bfc0-11e4-90a3-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'ffd389f0-bfc0-11e4-90a3-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$G341g/8UV/dDGAyEpJ/vpOUeCGu6sxIhEnP7XGj4Ospg.5mUH3nd6"], ["created_at", "2015-03-01 03:14:52.953685"], ["updated_at", "2015-03-01 03:14:52.953685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (11.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$bupGeaK0jXkOstDiEDTse.0fI1AGYisthaz63Yzskfc8UXOb3Rlsm"], ["created_at", "2015-03-01 03:14:52.960062"], ["updated_at", "2015-03-01 03:14:52.960062"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:52.980548"], ["user_id", "20e6edc6-bfc1-11e4-9d66-705681abff85"], ["created_at", "2015-03-01 03:14:52.986602"], ["updated_at", "2015-03-01 03:14:52.986602"], ["token", "_GvLJ19p9g9O4XOKc76aY7Euf6NmjnUQXytT20sTlFk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:52.989038"], ["user_id", "20e7c48a-bfc1-11e4-9fa5-705681abff85"], ["created_at", "2015-03-01 03:14:52.989814"], ["updated_at", "2015-03-01 03:14:52.989814"], ["token", "n0kM8FH5XFzNbL6s-QNK1pxU05b0ve-mGbwOvKOnfmE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:14:52.999200"], ["updated_at", "2015-03-01 03:14:52.999200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20e6edc6-bfc1-11e4-9d66-705681abff85' AND "clubhouse_memberships"."organization_id" = '20edc33a-bfc1-11e4-ba2e-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20e6edc6-bfc1-11e4-9d66-705681abff85"], ["organization_id", "20edc33a-bfc1-11e4-ba2e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:14:53.039296"], ["updated_at", "2015-03-01 03:14:53.039296"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20e7c48a-bfc1-11e4-9fa5-705681abff85' AND "clubhouse_memberships"."organization_id" = '20edc33a-bfc1-11e4-ba2e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20e7c48a-bfc1-11e4-9fa5-705681abff85"], ["organization_id", "20edc33a-bfc1-11e4-ba2e-705681abff85"], ["created_at", "2015-03-01 03:14:53.045123"], ["updated_at", "2015-03-01 03:14:53.045123"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '20edc33a-bfc1-11e4-ba2e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "20edc33a-bfc1-11e4-ba2e-705681abff85"], ["created_at", "2015-03-01 03:14:53.055989"], ["updated_at", "2015-03-01 03:14:53.055989"], ["token", "iRB4KHGi7VTRtSbWZ4ACUXKKOPNcOnbsw_MIzQUTU3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:14:53 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$UliO5PJpbxwONXcXARaV6u50ocnByS9QyXeGEt4mXvTz.U24Qa1MS"], ["created_at", "2015-03-01 03:14:53.089775"], ["updated_at", "2015-03-01 03:14:53.089775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$R80tkI/FBvlk6zyoyuiJCu/.5JO/PNcSg33GFJQ7IOIWn3iKWgul6"], ["created_at", "2015-03-01 03:14:53.094309"], ["updated_at", "2015-03-01 03:14:53.094309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.095925"], ["user_id", "20fb89f2-bfc1-11e4-9e81-705681abff85"], ["created_at", "2015-03-01 03:14:53.096760"], ["updated_at", "2015-03-01 03:14:53.096760"], ["token", "EB2uNkNvFoY5GyfDZmbVMvL7OTYbv0b3WbdHZa14Ujw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.098562"], ["user_id", "20fc312c-bfc1-11e4-8226-705681abff85"], ["created_at", "2015-03-01 03:14:53.099440"], ["updated_at", "2015-03-01 03:14:53.099440"], ["token", "4rJ_hdEBZ2rlVe3jx-yiT0IFo7GIMqUxLjhYvm_cl4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:14:53.102827"], ["updated_at", "2015-03-01 03:14:53.102827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20fb89f2-bfc1-11e4-9e81-705681abff85' AND "clubhouse_memberships"."organization_id" = '20fd7df2-bfc1-11e4-af22-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20fb89f2-bfc1-11e4-9e81-705681abff85"], ["organization_id", "20fd7df2-bfc1-11e4-af22-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:14:53.106421"], ["updated_at", "2015-03-01 03:14:53.106421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20fc312c-bfc1-11e4-8226-705681abff85' AND "clubhouse_memberships"."organization_id" = '20fd7df2-bfc1-11e4-af22-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20fc312c-bfc1-11e4-8226-705681abff85"], ["organization_id", "20fd7df2-bfc1-11e4-af22-705681abff85"], ["created_at", "2015-03-01 03:14:53.110109"], ["updated_at", "2015-03-01 03:14:53.110109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '20fd7df2-bfc1-11e4-af22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "20fd7df2-bfc1-11e4-af22-705681abff85"], ["created_at", "2015-03-01 03:14:53.113693"], ["updated_at", "2015-03-01 03:14:53.113693"], ["token", "PablUqtx811diSOx624Z8a_Bx_MJIOKfd2ciSB4_I3Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/20ff2bb6-bfc1-11e4-98d3-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:14:53 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"20ff2bb6-bfc1-11e4-98d3-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:14:53.118652' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EB2uNkNvFoY5GyfDZmbVMvL7OTYbv0b3WbdHZa14Ujw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:14:53.126199"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:14:53.127409"], ["id", "20fc9bee-bfc1-11e4-991d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20fb89f2-bfc1-11e4-9e81-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "20fb89f2-bfc1-11e4-9e81-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '20fb89f2-bfc1-11e4-9e81-705681abff85' LIMIT 1 [["organization_id", "20fd7df2-bfc1-11e4-af22-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "20fd7df2-bfc1-11e4-af22-705681abff85"], ["id", "20ff2bb6-bfc1-11e4-98d3-705681abff85"]] Completed 200 OK in 40ms (Views: 2.1ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$icinmGDxrkQkLK6sO43haOrS/mJWFS67nEzZAxRCDLoTVOfRkYbsm"], ["created_at", "2015-03-01 03:14:53.168105"], ["updated_at", "2015-03-01 03:14:53.168105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$YYsmN5zKQKW3PRN6tkNcQOjTw25mIFTFKlniAMyup.r5qiL5sqWDu"], ["created_at", "2015-03-01 03:14:53.172757"], ["updated_at", "2015-03-01 03:14:53.172757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.174431"], ["user_id", "21077a5a-bfc1-11e4-8cf3-705681abff85"], ["created_at", "2015-03-01 03:14:53.175247"], ["updated_at", "2015-03-01 03:14:53.175247"], ["token", "i0xtuhPNomIgResFuBljhNLUu2VPy7wyUBF4ow_h_l8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.177049"], ["user_id", "21082b8a-bfc1-11e4-ab12-705681abff85"], ["created_at", "2015-03-01 03:14:53.178195"], ["updated_at", "2015-03-01 03:14:53.178195"], ["token", "qpReRG7L9ZSoym8N4WbzN8ng8dvqSsd28dsd9MsgQ1I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:14:53.182260"], ["updated_at", "2015-03-01 03:14:53.182260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21077a5a-bfc1-11e4-8cf3-705681abff85' AND "clubhouse_memberships"."organization_id" = '2109abe0-bfc1-11e4-83ec-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21077a5a-bfc1-11e4-8cf3-705681abff85"], ["organization_id", "2109abe0-bfc1-11e4-83ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:14:53.186472"], ["updated_at", "2015-03-01 03:14:53.186472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21082b8a-bfc1-11e4-ab12-705681abff85' AND "clubhouse_memberships"."organization_id" = '2109abe0-bfc1-11e4-83ec-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "21082b8a-bfc1-11e4-ab12-705681abff85"], ["organization_id", "2109abe0-bfc1-11e4-83ec-705681abff85"], ["created_at", "2015-03-01 03:14:53.189815"], ["updated_at", "2015-03-01 03:14:53.189815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '2109abe0-bfc1-11e4-83ec-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "2109abe0-bfc1-11e4-83ec-705681abff85"], ["created_at", "2015-03-01 03:14:53.193426"], ["updated_at", "2015-03-01 03:14:53.193426"], ["token", "kivm-gtFww_MpJEw4JGVWWZuze5QQi4uEl6Cecld6Gk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:14:53 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$qnSyj7.O34LgbquAMhdI..wSVBhj6j.RYEk1V2qCyBhp/c2Qp4bvO"], ["created_at", "2015-03-01 03:14:53.207242"], ["updated_at", "2015-03-01 03:14:53.207242"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$XVBKx5t0iB6/5PCRlfx.d.I/gNgAXhlcF96Dka62TYyDYc.fJlpri"], ["created_at", "2015-03-01 03:14:53.214204"], ["updated_at", "2015-03-01 03:14:53.214204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.216029"], ["user_id", "210d6ece-bfc1-11e4-ae2a-705681abff85"], ["created_at", "2015-03-01 03:14:53.216832"], ["updated_at", "2015-03-01 03:14:53.216832"], ["token", "1vdE4HE4ACi7oSs4xuiEoxiV38CeqoLKZREYLiSNMiE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.218541"], ["user_id", "210e8264-bfc1-11e4-ae24-705681abff85"], ["created_at", "2015-03-01 03:14:53.219352"], ["updated_at", "2015-03-01 03:14:53.219352"], ["token", "Y3Xem8-Rl02_zJ6yAXIDuiYWmF_CEOX2kxfijWyJHYM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:14:53.222560"], ["updated_at", "2015-03-01 03:14:53.222560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '210d6ece-bfc1-11e4-ae2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '210fc3ae-bfc1-11e4-a61e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "210d6ece-bfc1-11e4-ae2a-705681abff85"], ["organization_id", "210fc3ae-bfc1-11e4-a61e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:14:53.225772"], ["updated_at", "2015-03-01 03:14:53.225772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '210e8264-bfc1-11e4-ae24-705681abff85' AND "clubhouse_memberships"."organization_id" = '210fc3ae-bfc1-11e4-a61e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "210e8264-bfc1-11e4-ae24-705681abff85"], ["organization_id", "210fc3ae-bfc1-11e4-a61e-705681abff85"], ["created_at", "2015-03-01 03:14:53.229332"], ["updated_at", "2015-03-01 03:14:53.229332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '210fc3ae-bfc1-11e4-a61e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "210fc3ae-bfc1-11e4-a61e-705681abff85"], ["created_at", "2015-03-01 03:14:53.232856"], ["updated_at", "2015-03-01 03:14:53.232856"], ["token", "I-mGCNVz-iuj8QqokJpNSDkl0wjYAT_5GlKd_SoaGWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:14:53 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:14:53.239544' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1vdE4HE4ACi7oSs4xuiEoxiV38CeqoLKZREYLiSNMiE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:14:53.241054"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:14:53.242038"], ["id", "210eeba0-bfc1-11e4-9da2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "210d6ece-bfc1-11e4-ae2a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "210d6ece-bfc1-11e4-ae2a-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$OmmdtwLVQ8IRruEUrjgn.u4PR/gzxJOIXUm8mK5Z0Wj0IZ62J6pkm"], ["created_at", "2015-03-01 03:14:53.254147"], ["updated_at", "2015-03-01 03:14:53.254147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$7qkAQeg4H0TrHGFfjFvg3.xv20ws9rlNd3tqao6b5KsOC474jEL7C"], ["created_at", "2015-03-01 03:14:53.258656"], ["updated_at", "2015-03-01 03:14:53.258656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.260363"], ["user_id", "211499f6-bfc1-11e4-8ed1-705681abff85"], ["created_at", "2015-03-01 03:14:53.261167"], ["updated_at", "2015-03-01 03:14:53.261167"], ["token", "UU892MWAR2MrE12NC3JUyNF5F9mjRmKAyH2bzx8KTow"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.263138"], ["user_id", "21154b6c-bfc1-11e4-97aa-705681abff85"], ["created_at", "2015-03-01 03:14:53.263835"], ["updated_at", "2015-03-01 03:14:53.263835"], ["token", "LRN73xf3zQRX_uTHpf2vCq2TMI1j30k1oul0C4V7Hp8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:14:53.267030"], ["updated_at", "2015-03-01 03:14:53.267030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '211499f6-bfc1-11e4-8ed1-705681abff85' AND "clubhouse_memberships"."organization_id" = '211696c0-bfc1-11e4-9bfb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "211499f6-bfc1-11e4-8ed1-705681abff85"], ["organization_id", "211696c0-bfc1-11e4-9bfb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:14:53.271364"], ["updated_at", "2015-03-01 03:14:53.271364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21154b6c-bfc1-11e4-97aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '211696c0-bfc1-11e4-9bfb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "21154b6c-bfc1-11e4-97aa-705681abff85"], ["organization_id", "211696c0-bfc1-11e4-9bfb-705681abff85"], ["created_at", "2015-03-01 03:14:53.275365"], ["updated_at", "2015-03-01 03:14:53.275365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '211696c0-bfc1-11e4-9bfb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "211696c0-bfc1-11e4-9bfb-705681abff85"], ["created_at", "2015-03-01 03:14:53.279077"], ["updated_at", "2015-03-01 03:14:53.279077"], ["token", "UtTVkBydpIeD8RHrP8H-BF64J2BLu0oazuyTpAHHc4M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:14:53 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:14:53.284994' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UU892MWAR2MrE12NC3JUyNF5F9mjRmKAyH2bzx8KTow"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:14:53.286651"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:14:53.287739"], ["id", "2115b96c-bfc1-11e4-b8b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "211499f6-bfc1-11e4-8ed1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "211499f6-bfc1-11e4-8ed1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '211499f6-bfc1-11e4-8ed1-705681abff85' LIMIT 1 [["organization_id", "211696c0-bfc1-11e4-9bfb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "211696c0-bfc1-11e4-9bfb-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '211696c0-bfc1-11e4-9bfb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "211696c0-bfc1-11e4-9bfb-705681abff85"], ["created_at", "2015-03-01 03:14:53.298962"], ["updated_at", "2015-03-01 03:14:53.298962"], ["token", "suXFVxdsDDreFo9H4Q4b34Rn7avUFzwazcIFmrrEsQA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0bc6f3b0-5fed-4b86-aaef-5dc8711061a9) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/211b890a-bfc1-11e4-abf1-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "211b890a-bfc1-11e4-abf1-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0bc6f3b0-5fed-4b86-aaef-5dc8711061a9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/211b890a-bfc1-11e4-abf1-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [0bc6f3b0-5fed-4b86-aaef-5dc8711061a9] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "211696c0-bfc1-11e4-9bfb-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0bc6f3b0-5fed-4b86-aaef-5dc8711061a9] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [0bc6f3b0-5fed-4b86-aaef-5dc8711061a9] Clubhouse::Mailer#invitation: processed outbound mail in 221.9ms [ActiveJob] [ActionMailer::DeliveryJob] [0bc6f3b0-5fed-4b86-aaef-5dc8711061a9] Sent mail to email@example.com (17.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [0bc6f3b0-5fed-4b86-aaef-5dc8711061a9] Date: Sat, 28 Feb 2015 19:14:53 -0800 From: from@example.com To: email@example.com Message-ID: <54f2842d8ccd3_12daf3fc5c0465be830936@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/suXFVxdsDDreFo9H4Q4b34Rn7avUFzwazcIFmrrEsQA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0bc6f3b0-5fed-4b86-aaef-5dc8711061a9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 239.68ms Completed 201 Created in 305ms (Views: 0.6ms | ActiveRecord: 3.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$4JIuY4hrhYGKSk1RdnQ.pe.GUu0OnjwNI6mTcOWGAaTVsEVFNW7gK"], ["created_at", "2015-03-01 03:14:53.597421"], ["updated_at", "2015-03-01 03:14:53.597421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$NoXnL2Q6pqC5X.9TfRsgguxcobMyy3BTwCT/0XiNzLY72gACCygxy"], ["created_at", "2015-03-01 03:14:53.603048"], ["updated_at", "2015-03-01 03:14:53.603048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.605091"], ["user_id", "2149068c-bfc1-11e4-ab2a-705681abff85"], ["created_at", "2015-03-01 03:14:53.606016"], ["updated_at", "2015-03-01 03:14:53.606016"], ["token", "2spZR4lO89f-o2LXA3Obzv2f-XwOYk-y_J2YHFertN8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.608019"], ["user_id", "2149daa8-bfc1-11e4-bd64-705681abff85"], ["created_at", "2015-03-01 03:14:53.608816"], ["updated_at", "2015-03-01 03:14:53.608816"], ["token", "m77_zxnoXKFahDT7eEdFsC4I-2OE4O_C0CyzR6k-gaw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:14:53.612994"], ["updated_at", "2015-03-01 03:14:53.612994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2149068c-bfc1-11e4-ab2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '214b5d56-bfc1-11e4-9b96-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2149068c-bfc1-11e4-ab2a-705681abff85"], ["organization_id", "214b5d56-bfc1-11e4-9b96-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:14:53.617916"], ["updated_at", "2015-03-01 03:14:53.617916"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2149daa8-bfc1-11e4-bd64-705681abff85' AND "clubhouse_memberships"."organization_id" = '214b5d56-bfc1-11e4-9b96-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2149daa8-bfc1-11e4-bd64-705681abff85"], ["organization_id", "214b5d56-bfc1-11e4-9b96-705681abff85"], ["created_at", "2015-03-01 03:14:53.623797"], ["updated_at", "2015-03-01 03:14:53.623797"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '214b5d56-bfc1-11e4-9b96-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "214b5d56-bfc1-11e4-9b96-705681abff85"], ["created_at", "2015-03-01 03:14:53.630673"], ["updated_at", "2015-03-01 03:14:53.630673"], ["token", "aJSJE8X3Qr3ZPq_ziQkQGkHO1TH0C1rx33jYZ_Q3zkI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:14:53 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (2.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:14:53.639096' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2spZR4lO89f-o2LXA3Obzv2f-XwOYk-y_J2YHFertN8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:14:53.643305"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:14:53.644350"], ["id", "214a5492-bfc1-11e4-9125-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2149068c-bfc1-11e4-ab2a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2149068c-bfc1-11e4-ab2a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2149068c-bfc1-11e4-ab2a-705681abff85' LIMIT 1 [["organization_id", "214b5d56-bfc1-11e4-9b96-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "214b5d56-bfc1-11e4-9b96-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '214b5d56-bfc1-11e4-9b96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "214b5d56-bfc1-11e4-9b96-705681abff85"], ["created_at", "2015-03-01 03:14:53.653411"], ["updated_at", "2015-03-01 03:14:53.653411"], ["token", "YoJ9dLx0w1ZzUqGt6GUhGQuMSyo2xAHrzy5bIeqV2D8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 71e5df1f-e51f-4e76-b427-f442d0990afd) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2151892e-bfc1-11e4-b908-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2151892e-bfc1-11e4-b908-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [71e5df1f-e51f-4e76-b427-f442d0990afd] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2151892e-bfc1-11e4-b908-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [71e5df1f-e51f-4e76-b427-f442d0990afd] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "214b5d56-bfc1-11e4-9b96-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [71e5df1f-e51f-4e76-b427-f442d0990afd] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [71e5df1f-e51f-4e76-b427-f442d0990afd] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [71e5df1f-e51f-4e76-b427-f442d0990afd] Sent mail to email@example.com (2.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [71e5df1f-e51f-4e76-b427-f442d0990afd] Date: Sat, 28 Feb 2015 19:14:53 -0800 From: from@example.com To: email@example.com Message-ID: <54f2842da1d2b_12daf3fc5c0465be831070@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/YoJ9dLx0w1ZzUqGt6GUhGQuMSyo2xAHrzy5bIeqV2D8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [71e5df1f-e51f-4e76-b427-f442d0990afd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.74ms Completed 201 Created in 26ms (Views: 0.5ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ixgH0Y8pIpPoz7A8n.N.uek4RpvnAva9ZCTFhKgRiLW9nvWIFbJ16"], ["created_at", "2015-03-01 03:14:53.674436"], ["updated_at", "2015-03-01 03:14:53.674436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$UHB9nNlifetlF46XJM2qTeHcIk.XoTwN9juFoQswNxO/OM2.kR1.6"], ["created_at", "2015-03-01 03:14:53.679684"], ["updated_at", "2015-03-01 03:14:53.679684"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.683088"], ["user_id", "2154c3f0-bfc1-11e4-b747-705681abff85"], ["created_at", "2015-03-01 03:14:53.684422"], ["updated_at", "2015-03-01 03:14:53.684422"], ["token", "cD757uticVuWi3rq2Z1qeigx0aUNq2xezpOshXMGfs4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:14:53.686704"], ["user_id", "215589fc-bfc1-11e4-8750-705681abff85"], ["created_at", "2015-03-01 03:14:53.687602"], ["updated_at", "2015-03-01 03:14:53.687602"], ["token", "gwIkMUbDXoeCjl1PNzN30BDyurMQ7ECGNBgO2DDIUJY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:14:53.691654"], ["updated_at", "2015-03-01 03:14:53.691654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2154c3f0-bfc1-11e4-b747-705681abff85' AND "clubhouse_memberships"."organization_id" = '21575d54-bfc1-11e4-a09d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2154c3f0-bfc1-11e4-b747-705681abff85"], ["organization_id", "21575d54-bfc1-11e4-a09d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:14:53.695774"], ["updated_at", "2015-03-01 03:14:53.695774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '215589fc-bfc1-11e4-8750-705681abff85' AND "clubhouse_memberships"."organization_id" = '21575d54-bfc1-11e4-a09d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "215589fc-bfc1-11e4-8750-705681abff85"], ["organization_id", "21575d54-bfc1-11e4-a09d-705681abff85"], ["created_at", "2015-03-01 03:14:53.699486"], ["updated_at", "2015-03-01 03:14:53.699486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '21575d54-bfc1-11e4-a09d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "21575d54-bfc1-11e4-a09d-705681abff85"], ["created_at", "2015-03-01 03:14:53.704762"], ["updated_at", "2015-03-01 03:14:53.704762"], ["token", "KpreCKdG1ylGgVB5uxWhp-Te346dJbofyS20KOov9cs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations" for 127.0.0.1 at 2015-02-28 19:14:53 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "organization"=>"org", "admin"=>true, "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:14:53.714112' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cD757uticVuWi3rq2Z1qeigx0aUNq2xezpOshXMGfs4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:14:53.716413"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:14:53.717631"], ["id", "215654a4-bfc1-11e4-a650-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2154c3f0-bfc1-11e4-b747-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2154c3f0-bfc1-11e4-b747-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2154c3f0-bfc1-11e4-b747-705681abff85' LIMIT 1 [["organization_id", "21575d54-bfc1-11e4-a09d-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "21575d54-bfc1-11e4-a09d-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '21575d54-bfc1-11e4-a09d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$3eTjRE8kKVMYkK9HJoyQH.oT9Ut1D0KLA6GQ45rvT7UVGlsg5osKe"], ["created_at", "2015-03-01 03:15:49.681215"], ["updated_at", "2015-03-01 03:15:49.681215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (6.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$fx4QbiS0WDgcuGAsSTTrEOLKQdLAyrMCwcV/hbzqkmO61VcOhf0kO"], ["created_at", "2015-03-01 03:15:49.687814"], ["updated_at", "2015-03-01 03:15:49.687814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:49.704179"], ["user_id", "42b6e2da-bfc1-11e4-92e3-705681abff85"], ["created_at", "2015-03-01 03:15:49.710266"], ["updated_at", "2015-03-01 03:15:49.710266"], ["token", "HjzMeGYsRr2QLbHT_dMXqu-nuN5DEEPmvW4BM8lXvWI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:49.712805"], ["user_id", "42b7b23c-bfc1-11e4-b5a5-705681abff85"], ["created_at", "2015-03-01 03:15:49.714346"], ["updated_at", "2015-03-01 03:15:49.714346"], ["token", "nGaQHIUgCAH-joIgQxWPMlfbsnM1Dm_hmqn-iBK8dYQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:15:49.724111"], ["updated_at", "2015-03-01 03:15:49.724111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42b6e2da-bfc1-11e4-92e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '42bd4698-bfc1-11e4-87e0-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "42b6e2da-bfc1-11e4-92e3-705681abff85"], ["organization_id", "42bd4698-bfc1-11e4-87e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:15:49.768934"], ["updated_at", "2015-03-01 03:15:49.768934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42b7b23c-bfc1-11e4-b5a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '42bd4698-bfc1-11e4-87e0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "42b7b23c-bfc1-11e4-b5a5-705681abff85"], ["organization_id", "42bd4698-bfc1-11e4-87e0-705681abff85"], ["created_at", "2015-03-01 03:15:49.773410"], ["updated_at", "2015-03-01 03:15:49.773410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '42bd4698-bfc1-11e4-87e0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "42bd4698-bfc1-11e4-87e0-705681abff85"], ["created_at", "2015-03-01 03:15:49.783275"], ["updated_at", "2015-03-01 03:15:49.783275"], ["token", "oji9jH4c3CJmYMX4vxn4xzwzynfrbqy8wWTHoNQiZ2k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:15:49 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:15:49.807986' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HjzMeGYsRr2QLbHT_dMXqu-nuN5DEEPmvW4BM8lXvWI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:15:49.816446"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:15:49.817767"], ["id", "42bb35ba-bfc1-11e4-a486-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "42b6e2da-bfc1-11e4-92e3-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "42b6e2da-bfc1-11e4-92e3-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '42b6e2da-bfc1-11e4-92e3-705681abff85' LIMIT 1 [["organization_id", "42bd4698-bfc1-11e4-87e0-705681abff85"]] Completed 400 Bad Request in 36ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$11i/dP6ll1CNdfpnL8P1MewOBc4Jahlw9vLKu4IGxPcvNLyP3FM2K"], ["created_at", "2015-03-01 03:15:49.852043"], ["updated_at", "2015-03-01 03:15:49.852043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$IP1bLKQBJNxL/W27NTtopOy2JYSQS.mgD8N9Y/xjz5TA1JSnma3b6"], ["created_at", "2015-03-01 03:15:49.856837"], ["updated_at", "2015-03-01 03:15:49.856837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:49.858388"], ["user_id", "42d0c006-bfc1-11e4-b692-705681abff85"], ["created_at", "2015-03-01 03:15:49.859371"], ["updated_at", "2015-03-01 03:15:49.859371"], ["token", "TDoj4J4nZpXp5BQ6CPH-5qqJGTB-MJ8eDINT6gUNf1A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:49.861297"], ["user_id", "42d1792e-bfc1-11e4-8960-705681abff85"], ["created_at", "2015-03-01 03:15:49.862003"], ["updated_at", "2015-03-01 03:15:49.862003"], ["token", "eXVPiKpqzVRZGwe2XAo5GpNEKKCPdbe0B2mA0W_rXss"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:15:49.865751"], ["updated_at", "2015-03-01 03:15:49.865751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42d0c006-bfc1-11e4-b692-705681abff85' AND "clubhouse_memberships"."organization_id" = '42d2e016-bfc1-11e4-93ad-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "42d0c006-bfc1-11e4-b692-705681abff85"], ["organization_id", "42d2e016-bfc1-11e4-93ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:15:49.870311"], ["updated_at", "2015-03-01 03:15:49.870311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42d1792e-bfc1-11e4-8960-705681abff85' AND "clubhouse_memberships"."organization_id" = '42d2e016-bfc1-11e4-93ad-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "42d1792e-bfc1-11e4-8960-705681abff85"], ["organization_id", "42d2e016-bfc1-11e4-93ad-705681abff85"], ["created_at", "2015-03-01 03:15:49.875015"], ["updated_at", "2015-03-01 03:15:49.875015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '42d2e016-bfc1-11e4-93ad-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "42d2e016-bfc1-11e4-93ad-705681abff85"], ["created_at", "2015-03-01 03:15:49.878638"], ["updated_at", "2015-03-01 03:15:49.878638"], ["token", "-h-2Edv7CVSjcTh8G32bXJv72-DrABrvKmeePMKFvWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:15:49 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$jOacnsh0NmguWdtGfI7PvO0HEEGnLYrpICP/u7PX1XJxb35dCGDi."], ["created_at", "2015-03-01 03:15:49.893893"], ["updated_at", "2015-03-01 03:15:49.893893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Vpa8uZ1HwOsJ.1uXExEhDeQYQwdl8cNSwEWCqwFI4moihcFWCzqCK"], ["created_at", "2015-03-01 03:15:49.900767"], ["updated_at", "2015-03-01 03:15:49.900767"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:49.903558"], ["user_id", "42d7432c-bfc1-11e4-82f9-705681abff85"], ["created_at", "2015-03-01 03:15:49.904894"], ["updated_at", "2015-03-01 03:15:49.904894"], ["token", "TMTjmQeo2IHoppAOI--MtgDhzYL942LA3_E4SeUflRU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:49.907141"], ["user_id", "42d8348a-bfc1-11e4-b6ea-705681abff85"], ["created_at", "2015-03-01 03:15:49.907944"], ["updated_at", "2015-03-01 03:15:49.907944"], ["token", "DMnCF8HaAoCjB71ZP-190XTQ3RsXSxgCtnMHKfYJfRI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:15:49.911549"], ["updated_at", "2015-03-01 03:15:49.911549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42d7432c-bfc1-11e4-82f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '42d9dcfe-bfc1-11e4-b1a7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "42d7432c-bfc1-11e4-82f9-705681abff85"], ["organization_id", "42d9dcfe-bfc1-11e4-b1a7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:15:49.915709"], ["updated_at", "2015-03-01 03:15:49.915709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42d8348a-bfc1-11e4-b6ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '42d9dcfe-bfc1-11e4-b1a7-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "42d8348a-bfc1-11e4-b6ea-705681abff85"], ["organization_id", "42d9dcfe-bfc1-11e4-b1a7-705681abff85"], ["created_at", "2015-03-01 03:15:49.919693"], ["updated_at", "2015-03-01 03:15:49.919693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '42d9dcfe-bfc1-11e4-b1a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "42d9dcfe-bfc1-11e4-b1a7-705681abff85"], ["created_at", "2015-03-01 03:15:49.923989"], ["updated_at", "2015-03-01 03:15:49.923989"], ["token", "QRT8hKEX43JvUQfiPCy2opGZEps83is-2K8scvz2Pak"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:15:49 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:15:49.929335' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TMTjmQeo2IHoppAOI--MtgDhzYL942LA3_E4SeUflRU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:15:49.930940"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:15:49.932145"], ["id", "42d8e2ea-bfc1-11e4-8319-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "42d7432c-bfc1-11e4-82f9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "42d7432c-bfc1-11e4-82f9-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '42d7432c-bfc1-11e4-82f9-705681abff85' LIMIT 1 [["organization_id", "42d9dcfe-bfc1-11e4-b1a7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "42d9dcfe-bfc1-11e4-b1a7-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '42d9dcfe-bfc1-11e4-b1a7-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 26ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$PXSWJCUvyrHBRlhJGFPQVO.rFivll1C91CzGdqyq6dJ7F1zKR5mDm"], ["created_at", "2015-03-01 03:15:49.960666"], ["updated_at", "2015-03-01 03:15:49.960666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Nts1KHcrH6FLwJLEQNnLY.H5UtHHUV9hmecYWwgfmf6sbgTLB5c6m"], ["created_at", "2015-03-01 03:15:49.965191"], ["updated_at", "2015-03-01 03:15:49.965191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:49.966730"], ["user_id", "42e153a8-bfc1-11e4-9c34-705681abff85"], ["created_at", "2015-03-01 03:15:49.967450"], ["updated_at", "2015-03-01 03:15:49.967450"], ["token", "YhBfWacgiAApWbewBXNa5li8TeJyyArpZp1rcotSzrs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:49.969263"], ["user_id", "42e1ffc4-bfc1-11e4-8dc2-705681abff85"], ["created_at", "2015-03-01 03:15:49.969991"], ["updated_at", "2015-03-01 03:15:49.969991"], ["token", "9PUiQee-TUP9fvCY0zQ42qTCIVaOWt_n0NZg4fHSfwY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:15:49.973239"], ["updated_at", "2015-03-01 03:15:49.973239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42e153a8-bfc1-11e4-9c34-705681abff85' AND "clubhouse_memberships"."organization_id" = '42e33920-bfc1-11e4-b161-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "42e153a8-bfc1-11e4-9c34-705681abff85"], ["organization_id", "42e33920-bfc1-11e4-b161-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:15:49.976700"], ["updated_at", "2015-03-01 03:15:49.976700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42e1ffc4-bfc1-11e4-8dc2-705681abff85' AND "clubhouse_memberships"."organization_id" = '42e33920-bfc1-11e4-b161-705681abff85') LIMIT 1 SQL (3.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "42e1ffc4-bfc1-11e4-8dc2-705681abff85"], ["organization_id", "42e33920-bfc1-11e4-b161-705681abff85"], ["created_at", "2015-03-01 03:15:49.980207"], ["updated_at", "2015-03-01 03:15:49.980207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '42e33920-bfc1-11e4-b161-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "42e33920-bfc1-11e4-b161-705681abff85"], ["created_at", "2015-03-01 03:15:49.987676"], ["updated_at", "2015-03-01 03:15:49.987676"], ["token", "2jJjgG_LsNzXEK3bjfjjYDTOFYEn-JOYjwtZ-Ct5hco"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:15:49 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:15:49.993338' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YhBfWacgiAApWbewBXNa5li8TeJyyArpZp1rcotSzrs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:15:49.995110"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:15:49.996570"], ["id", "42e25eb0-bfc1-11e4-b8f3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "42e153a8-bfc1-11e4-9c34-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "42e153a8-bfc1-11e4-9c34-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '42e153a8-bfc1-11e4-9c34-705681abff85' LIMIT 1 [["organization_id", "42e33920-bfc1-11e4-b161-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "42e33920-bfc1-11e4-b161-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '42e33920-bfc1-11e4-b161-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "42e33920-bfc1-11e4-b161-705681abff85"], ["created_at", "2015-03-01 03:15:50.006632"], ["updated_at", "2015-03-01 03:15:50.006632"], ["token", "e_W9DcGjSV32LSxddhP1E3hPa6_HdkI6jQrPFx698pE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 79ea1c28-b1e3-4b55-84c6-75a1b919b93d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/42e86314-bfc1-11e4-ae0e-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "42e86314-bfc1-11e4-ae0e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [79ea1c28-b1e3-4b55-84c6-75a1b919b93d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/42e86314-bfc1-11e4-ae0e-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [79ea1c28-b1e3-4b55-84c6-75a1b919b93d] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "42e33920-bfc1-11e4-b161-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [79ea1c28-b1e3-4b55-84c6-75a1b919b93d] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [79ea1c28-b1e3-4b55-84c6-75a1b919b93d] Clubhouse::Mailer#invitation: processed outbound mail in 213.9ms [ActiveJob] [ActionMailer::DeliveryJob] [79ea1c28-b1e3-4b55-84c6-75a1b919b93d] Sent mail to email@example.com (15.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [79ea1c28-b1e3-4b55-84c6-75a1b919b93d] Date: Sat, 28 Feb 2015 19:15:50 -0800 From: from@example.com To: email@example.com Message-ID: <54f284663eb1f_12db73fc8e6011bf490849@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/e_W9DcGjSV32LSxddhP1E3hPa6_HdkI6jQrPFx698pE If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [79ea1c28-b1e3-4b55-84c6-75a1b919b93d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 230.41ms Completed 201 Created in 278ms (Views: 2.0ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$lehW2w2BsPFVpLlqHsC7xuX1dADwFuiRlDWf1dzH/2KMNEcPi1mYW"], ["created_at", "2015-03-01 03:15:50.279576"], ["updated_at", "2015-03-01 03:15:50.279576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$mGREi7rhV0UD7Uu/nHiPyOWKfjEic4wOilrAPOc3BD56B35nOLaIW"], ["created_at", "2015-03-01 03:15:50.284110"], ["updated_at", "2015-03-01 03:15:50.284110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:50.285614"], ["user_id", "431204f8-bfc1-11e4-a4e0-705681abff85"], ["created_at", "2015-03-01 03:15:50.286374"], ["updated_at", "2015-03-01 03:15:50.286374"], ["token", "qfRnkktv604gpA7RYjlH8BruBcRJx7-rrZ2Vl1witP4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:50.288308"], ["user_id", "4312a9bc-bfc1-11e4-b4d1-705681abff85"], ["created_at", "2015-03-01 03:15:50.289169"], ["updated_at", "2015-03-01 03:15:50.289169"], ["token", "Tgi3RGS8udUnP_RzXEixx1Y4lzBkISSCfSYDeU_jV5U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:15:50.292814"], ["updated_at", "2015-03-01 03:15:50.292814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '431204f8-bfc1-11e4-a4e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '4313fe02-bfc1-11e4-af1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "431204f8-bfc1-11e4-a4e0-705681abff85"], ["organization_id", "4313fe02-bfc1-11e4-af1e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:15:50.296457"], ["updated_at", "2015-03-01 03:15:50.296457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4312a9bc-bfc1-11e4-b4d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4313fe02-bfc1-11e4-af1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4312a9bc-bfc1-11e4-b4d1-705681abff85"], ["organization_id", "4313fe02-bfc1-11e4-af1e-705681abff85"], ["created_at", "2015-03-01 03:15:50.299960"], ["updated_at", "2015-03-01 03:15:50.299960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '4313fe02-bfc1-11e4-af1e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "4313fe02-bfc1-11e4-af1e-705681abff85"], ["created_at", "2015-03-01 03:15:50.304156"], ["updated_at", "2015-03-01 03:15:50.304156"], ["token", "eZ_yYA7yrpKvnSZ38XDxcJifTwi1LkXTdm_mqM-Vi5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:15:50 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:15:50.309389' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qfRnkktv604gpA7RYjlH8BruBcRJx7-rrZ2Vl1witP4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (19.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:15:50.311238"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:15:50.312390"], ["id", "43130d58-bfc1-11e4-b9cf-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "431204f8-bfc1-11e4-a4e0-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "431204f8-bfc1-11e4-a4e0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '431204f8-bfc1-11e4-a4e0-705681abff85' LIMIT 1 [["organization_id", "4313fe02-bfc1-11e4-af1e-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4313fe02-bfc1-11e4-af1e-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4313fe02-bfc1-11e4-af1e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "4313fe02-bfc1-11e4-af1e-705681abff85"], ["created_at", "2015-03-01 03:15:50.356318"], ["updated_at", "2015-03-01 03:15:50.356318"], ["token", "Kgh8VDtUjYWzvSEyL7mos1K3qLVm-rL7Um7eME8Hye0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 018318a1-5d8d-4321-b552-6de142dd157a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/431dd616-bfc1-11e4-9969-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "431dd616-bfc1-11e4-9969-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [018318a1-5d8d-4321-b552-6de142dd157a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/431dd616-bfc1-11e4-9969-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [018318a1-5d8d-4321-b552-6de142dd157a] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4313fe02-bfc1-11e4-af1e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [018318a1-5d8d-4321-b552-6de142dd157a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [018318a1-5d8d-4321-b552-6de142dd157a] Clubhouse::Mailer#invitation: processed outbound mail in 5.4ms [ActiveJob] [ActionMailer::DeliveryJob] [018318a1-5d8d-4321-b552-6de142dd157a] Sent mail to email@example.com (6.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [018318a1-5d8d-4321-b552-6de142dd157a] Date: Sat, 28 Feb 2015 19:15:50 -0800 From: from@example.com To: email@example.com Message-ID: <54f284665b11d_12db73fc8e6011bf4909c2@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Kgh8VDtUjYWzvSEyL7mos1K3qLVm-rL7Um7eME8Hye0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [018318a1-5d8d-4321-b552-6de142dd157a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 12.27ms Completed 201 Created in 70ms (Views: 1.7ms | ActiveRecord: 23.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$ad3//D7aAfQobjvLXi9kL.EnayBjC21icQaXwRO.wrwqipySnT9J6"], ["created_at", "2015-03-01 03:15:50.387299"], ["updated_at", "2015-03-01 03:15:50.387299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$17eHuSQtlF947h9wgCUWqe3JtC1EegJT0Qj3OYsogYnTZYuUdqEqW"], ["created_at", "2015-03-01 03:15:50.393595"], ["updated_at", "2015-03-01 03:15:50.393595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:50.395624"], ["user_id", "43229962-bfc1-11e4-b2fc-705681abff85"], ["created_at", "2015-03-01 03:15:50.396982"], ["updated_at", "2015-03-01 03:15:50.396982"], ["token", "k2Gj9yVk_xyvnjw4ukqy2RJZviEaSpNlOHt1bOcZ9Rs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:50.402736"], ["user_id", "43236950-bfc1-11e4-95d8-705681abff85"], ["created_at", "2015-03-01 03:15:50.403491"], ["updated_at", "2015-03-01 03:15:50.403491"], ["token", "oXvyXoFUEA289UTfO-gHNSawXT5eU7dpkXmcTGDeI5U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:15:50.407566"], ["updated_at", "2015-03-01 03:15:50.407566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43229962-bfc1-11e4-b2fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '43258514-bfc1-11e4-981a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43229962-bfc1-11e4-b2fc-705681abff85"], ["organization_id", "43258514-bfc1-11e4-981a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:15:50.411427"], ["updated_at", "2015-03-01 03:15:50.411427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43236950-bfc1-11e4-95d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '43258514-bfc1-11e4-981a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "43236950-bfc1-11e4-95d8-705681abff85"], ["organization_id", "43258514-bfc1-11e4-981a-705681abff85"], ["created_at", "2015-03-01 03:15:50.414810"], ["updated_at", "2015-03-01 03:15:50.414810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '43258514-bfc1-11e4-981a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "43258514-bfc1-11e4-981a-705681abff85"], ["created_at", "2015-03-01 03:15:50.420978"], ["updated_at", "2015-03-01 03:15:50.420978"], ["token", "yOe7elVi_kCJH5raqIaDwPIY4dF0R16TMOyfckAIkIY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/432790f2-bfc1-11e4-b86e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:15:50 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"432790f2-bfc1-11e4-b86e-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:15:50.426337' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k2Gj9yVk_xyvnjw4ukqy2RJZviEaSpNlOHt1bOcZ9Rs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:15:50.427793"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:15:50.428900"], ["id", "43242886-bfc1-11e4-8b48-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43229962-bfc1-11e4-b2fc-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "43229962-bfc1-11e4-b2fc-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '43229962-bfc1-11e4-b2fc-705681abff85' LIMIT 1 [["organization_id", "43258514-bfc1-11e4-981a-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "43258514-bfc1-11e4-981a-705681abff85"], ["id", "432790f2-bfc1-11e4-b86e-705681abff85"]] Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$XeG7qXb.atY4.VCNfVvDUOYDPxqYoPNq9/aVrZHxGqWIY3RON3Wam"], ["created_at", "2015-03-01 03:15:50.448352"], ["updated_at", "2015-03-01 03:15:50.448352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$sq1VCSu70MJwq/sQEfVpH.fBcNDyrmsdM/lWzQ92cIAGvvYwqZP2S"], ["created_at", "2015-03-01 03:15:50.455392"], ["updated_at", "2015-03-01 03:15:50.455392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:50.457166"], ["user_id", "432bd4c8-bfc1-11e4-8561-705681abff85"], ["created_at", "2015-03-01 03:15:50.457992"], ["updated_at", "2015-03-01 03:15:50.457992"], ["token", "Y6Crbj56yHz4JXg6Ihno4wXNZmTN69lgN2huy6Wj_Uk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:15:50.459874"], ["user_id", "432cd346-bfc1-11e4-8d13-705681abff85"], ["created_at", "2015-03-01 03:15:50.460563"], ["updated_at", "2015-03-01 03:15:50.460563"], ["token", "sTVOiek6HaZtI6QZtgdiEh37usi3cP1zGy0CiKMN7AQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:15:50.463988"], ["updated_at", "2015-03-01 03:15:50.463988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '432bd4c8-bfc1-11e4-8561-705681abff85' AND "clubhouse_memberships"."organization_id" = '432e1ba2-bfc1-11e4-a280-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "432bd4c8-bfc1-11e4-8561-705681abff85"], ["organization_id", "432e1ba2-bfc1-11e4-a280-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:15:50.467172"], ["updated_at", "2015-03-01 03:15:50.467172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '432cd346-bfc1-11e4-8d13-705681abff85' AND "clubhouse_memberships"."organization_id" = '432e1ba2-bfc1-11e4-a280-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "432cd346-bfc1-11e4-8d13-705681abff85"], ["organization_id", "432e1ba2-bfc1-11e4-a280-705681abff85"], ["created_at", "2015-03-01 03:15:50.470662"], ["updated_at", "2015-03-01 03:15:50.470662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '432e1ba2-bfc1-11e4-a280-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "432e1ba2-bfc1-11e4-a280-705681abff85"], ["created_at", "2015-03-01 03:15:50.474190"], ["updated_at", "2015-03-01 03:15:50.474190"], ["token", "Tx81bx6K1B_riv3-5S64R-VX7jmRCzRz2J2Xfk31j9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:15:50 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$wIJowOwh3urzuy3PzWMHgOWiO6hjTu8vJhMmQi2LMS7CeJnF6A8du"], ["created_at", "2015-03-01 03:17:24.076627"], ["updated_at", "2015-03-01 03:17:24.076627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (11.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$aFDBT6gZv7KnFxFHrgoOduVp27w/LyP951VX/cIvp56VsoHICpbvK"], ["created_at", "2015-03-01 03:17:24.083302"], ["updated_at", "2015-03-01 03:17:24.083302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.104538"], ["user_id", "7afa841c-bfc1-11e4-bac5-705681abff85"], ["created_at", "2015-03-01 03:17:24.113683"], ["updated_at", "2015-03-01 03:17:24.113683"], ["token", "6v5DBU1swsjlEpveE-ZSHHHnuwWazk1zTNn3koG5pW4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.116417"], ["user_id", "7afb6792-bfc1-11e4-925a-705681abff85"], ["created_at", "2015-03-01 03:17:24.117286"], ["updated_at", "2015-03-01 03:17:24.117286"], ["token", "SlJH83bX4w8Ld4__kiEbfip3G_h55WQRbN1hcMoKjvg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:17:24.126110"], ["updated_at", "2015-03-01 03:17:24.126110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7afa841c-bfc1-11e4-bac5-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b01dd8e-bfc1-11e4-b312-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7afa841c-bfc1-11e4-bac5-705681abff85"], ["organization_id", "7b01dd8e-bfc1-11e4-b312-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:17:24.170345"], ["updated_at", "2015-03-01 03:17:24.170345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7afb6792-bfc1-11e4-925a-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b01dd8e-bfc1-11e4-b312-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7afb6792-bfc1-11e4-925a-705681abff85"], ["organization_id", "7b01dd8e-bfc1-11e4-b312-705681abff85"], ["created_at", "2015-03-01 03:17:24.175105"], ["updated_at", "2015-03-01 03:17:24.175105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '7b01dd8e-bfc1-11e4-b312-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "7b01dd8e-bfc1-11e4-b312-705681abff85"], ["created_at", "2015-03-01 03:17:24.184969"], ["updated_at", "2015-03-01 03:17:24.184969"], ["token", "D7FwA2rztD8C4ZhS_-3F0xG6TJ2aXTVO24SavDnThHA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:17:24 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$8PK3ahDbQaC9EXAwkLaOKu.hArZC0G9i//zeZN1pMGiwRiF1rB9Nm"], ["created_at", "2015-03-01 03:17:24.220030"], ["updated_at", "2015-03-01 03:17:24.220030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$9gI9NAeCP9rmemmSaJFbfuAxJCl/2GjksgDUHzHynWdo7CohJAFF2"], ["created_at", "2015-03-01 03:17:24.224594"], ["updated_at", "2015-03-01 03:17:24.224594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.226176"], ["user_id", "7b102aa6-bfc1-11e4-b35e-705681abff85"], ["created_at", "2015-03-01 03:17:24.227123"], ["updated_at", "2015-03-01 03:17:24.227123"], ["token", "CZOKovbXtEzCpZuRt0hlBqn_me43Rgb9NsJnHb8KKwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.228960"], ["user_id", "7b10da6e-bfc1-11e4-bb96-705681abff85"], ["created_at", "2015-03-01 03:17:24.229670"], ["updated_at", "2015-03-01 03:17:24.229670"], ["token", "URviQopXmGli2J0SjEKCKooPj7e43eqHSHZsP1jStw8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:17:24.233031"], ["updated_at", "2015-03-01 03:17:24.233031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b102aa6-bfc1-11e4-b35e-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b1221e4-bfc1-11e4-a496-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b102aa6-bfc1-11e4-b35e-705681abff85"], ["organization_id", "7b1221e4-bfc1-11e4-a496-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:17:24.236467"], ["updated_at", "2015-03-01 03:17:24.236467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b10da6e-bfc1-11e4-bb96-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b1221e4-bfc1-11e4-a496-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b10da6e-bfc1-11e4-bb96-705681abff85"], ["organization_id", "7b1221e4-bfc1-11e4-a496-705681abff85"], ["created_at", "2015-03-01 03:17:24.239873"], ["updated_at", "2015-03-01 03:17:24.239873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '7b1221e4-bfc1-11e4-a496-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "7b1221e4-bfc1-11e4-a496-705681abff85"], ["created_at", "2015-03-01 03:17:24.243483"], ["updated_at", "2015-03-01 03:17:24.243483"], ["token", "g808pl1NznHJYC3yXid5oDyOdtrFNLiLPH1H9sd_LIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/7b13c800-bfc1-11e4-947e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:17:24 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"7b13c800-bfc1-11e4-947e-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:17:24.248761' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CZOKovbXtEzCpZuRt0hlBqn_me43Rgb9NsJnHb8KKwc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (5.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:17:24.255515"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:17:24.256709"], ["id", "7b11474c-bfc1-11e4-9e2c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b102aa6-bfc1-11e4-b35e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b102aa6-bfc1-11e4-b35e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b102aa6-bfc1-11e4-b35e-705681abff85' LIMIT 1 [["organization_id", "7b1221e4-bfc1-11e4-a496-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "7b1221e4-bfc1-11e4-a496-705681abff85"], ["id", "7b13c800-bfc1-11e4-947e-705681abff85"]] Completed 200 OK in 43ms (Views: 1.8ms | ActiveRecord: 7.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$W4RzHSRzUmnEZcuXB9qv3.ZKWPqG5yzlPr0GmzGvNQUBJnPmymjfq"], ["created_at", "2015-03-01 03:17:24.300130"], ["updated_at", "2015-03-01 03:17:24.300130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Ruk105MWEaZWW9abYODOsurpSjpEByhZnwOOkN3K.0SGvICKmDsKC"], ["created_at", "2015-03-01 03:17:24.306325"], ["updated_at", "2015-03-01 03:17:24.306325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.307916"], ["user_id", "7b1c63fc-bfc1-11e4-99e3-705681abff85"], ["created_at", "2015-03-01 03:17:24.308710"], ["updated_at", "2015-03-01 03:17:24.308710"], ["token", "WIZLJ4mOut6LP4OO6hMswAysnipmd8tbjS3l0_8iNJA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.310368"], ["user_id", "7b1d5172-bfc1-11e4-a51b-705681abff85"], ["created_at", "2015-03-01 03:17:24.311074"], ["updated_at", "2015-03-01 03:17:24.311074"], ["token", "HUD0c-MWQp1Lhue2xOj5xFxV3xPpWOZO5yDTUsiA2o4"]]  (4.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:17:24.340389"], ["updated_at", "2015-03-01 03:17:24.340389"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b1c63fc-bfc1-11e4-99e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b22c184-bfc1-11e4-82f1-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b1c63fc-bfc1-11e4-99e3-705681abff85"], ["organization_id", "7b22c184-bfc1-11e4-82f1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:17:24.349252"], ["updated_at", "2015-03-01 03:17:24.349252"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b1d5172-bfc1-11e4-a51b-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b22c184-bfc1-11e4-82f1-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b1d5172-bfc1-11e4-a51b-705681abff85"], ["organization_id", "7b22c184-bfc1-11e4-82f1-705681abff85"], ["created_at", "2015-03-01 03:17:24.356602"], ["updated_at", "2015-03-01 03:17:24.356602"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '7b22c184-bfc1-11e4-82f1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "7b22c184-bfc1-11e4-82f1-705681abff85"], ["created_at", "2015-03-01 03:17:24.364124"], ["updated_at", "2015-03-01 03:17:24.364124"], ["token", "afIAx_270H8v7tIyeNzMA0aVO9iVHCb08wfSu9Oi5jA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:17:24 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$o8IWtRK00MSRsDjXmW/GqOXkN3s1GkODFUaop1QameKx2i8Mh0mPu"], ["created_at", "2015-03-01 03:17:24.385495"], ["updated_at", "2015-03-01 03:17:24.385495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$xCWSNyftV6RiX3yzp0rd3Oi0wgS1Ma4iwtIyFa2OCDpmCzJywvTl2"], ["created_at", "2015-03-01 03:17:24.390794"], ["updated_at", "2015-03-01 03:17:24.390794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.392488"], ["user_id", "7b297f88-bfc1-11e4-9fbf-705681abff85"], ["created_at", "2015-03-01 03:17:24.393261"], ["updated_at", "2015-03-01 03:17:24.393261"], ["token", "M5E7-JQKPN7Qxf4iTaKpiu_LNJfiDU1TCKRehKhCWfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.395215"], ["user_id", "7b2a36da-bfc1-11e4-ab14-705681abff85"], ["created_at", "2015-03-01 03:17:24.395974"], ["updated_at", "2015-03-01 03:17:24.395974"], ["token", "4D3YNrp7nvkXszc7kBsj_jN11vRgVfnx2a-avOXJbpU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:17:24.399488"], ["updated_at", "2015-03-01 03:17:24.399488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b297f88-bfc1-11e4-9fbf-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b2b8dfa-bfc1-11e4-9604-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b297f88-bfc1-11e4-9fbf-705681abff85"], ["organization_id", "7b2b8dfa-bfc1-11e4-9604-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:17:24.403152"], ["updated_at", "2015-03-01 03:17:24.403152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b2a36da-bfc1-11e4-ab14-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b2b8dfa-bfc1-11e4-9604-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b2a36da-bfc1-11e4-ab14-705681abff85"], ["organization_id", "7b2b8dfa-bfc1-11e4-9604-705681abff85"], ["created_at", "2015-03-01 03:17:24.406569"], ["updated_at", "2015-03-01 03:17:24.406569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '7b2b8dfa-bfc1-11e4-9604-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "7b2b8dfa-bfc1-11e4-9604-705681abff85"], ["created_at", "2015-03-01 03:17:24.410215"], ["updated_at", "2015-03-01 03:17:24.410215"], ["token", "SsBBfSzsFAzuRrx_nTpod-P5EhkQjekUC2dp8aVLc4U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:17:24 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:17:24.417407' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M5E7-JQKPN7Qxf4iTaKpiu_LNJfiDU1TCKRehKhCWfo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:17:24.418936"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:17:24.419928"], ["id", "7b2aa35e-bfc1-11e4-b491-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b297f88-bfc1-11e4-9fbf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b297f88-bfc1-11e4-9fbf-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b297f88-bfc1-11e4-9fbf-705681abff85' LIMIT 1 [["organization_id", "7b2b8dfa-bfc1-11e4-9604-705681abff85"]] Completed 400 Bad Request in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$HIFSex6zvIb84CWTYtzqKuHYEWay.1OZgk7nJIt.m4T8dLbmhXRdG"], ["created_at", "2015-03-01 03:17:24.434870"], ["updated_at", "2015-03-01 03:17:24.434870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$0iFzCa7aCVKhQ/QfsUF/KuBk5J0kJAcCS6PJtZHIO7zKIDSh7/iNu"], ["created_at", "2015-03-01 03:17:24.439514"], ["updated_at", "2015-03-01 03:17:24.439514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.441514"], ["user_id", "7b30f36c-bfc1-11e4-a1d1-705681abff85"], ["created_at", "2015-03-01 03:17:24.442838"], ["updated_at", "2015-03-01 03:17:24.442838"], ["token", "cCiJOusEzsm9agKgqzb1o0uBkLvK1cEXzp65zi2QZfs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.445428"], ["user_id", "7b31a3d4-bfc1-11e4-b99b-705681abff85"], ["created_at", "2015-03-01 03:17:24.446599"], ["updated_at", "2015-03-01 03:17:24.446599"], ["token", "41aNh5FRKR2CkB2rI_Hs772D1OFJhTDBXkfyUevWohs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:17:24.450757"], ["updated_at", "2015-03-01 03:17:24.450757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b30f36c-bfc1-11e4-a1d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b335d6e-bfc1-11e4-969d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b30f36c-bfc1-11e4-a1d1-705681abff85"], ["organization_id", "7b335d6e-bfc1-11e4-969d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:17:24.454464"], ["updated_at", "2015-03-01 03:17:24.454464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b31a3d4-bfc1-11e4-b99b-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b335d6e-bfc1-11e4-969d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b31a3d4-bfc1-11e4-b99b-705681abff85"], ["organization_id", "7b335d6e-bfc1-11e4-969d-705681abff85"], ["created_at", "2015-03-01 03:17:24.458305"], ["updated_at", "2015-03-01 03:17:24.458305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '7b335d6e-bfc1-11e4-969d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "7b335d6e-bfc1-11e4-969d-705681abff85"], ["created_at", "2015-03-01 03:17:24.462542"], ["updated_at", "2015-03-01 03:17:24.462542"], ["token", "K649s2kpDHib60L75BkARI5SuN1F3cOB_gQfCScdCVo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:17:24 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:17:24.468029' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cCiJOusEzsm9agKgqzb1o0uBkLvK1cEXzp65zi2QZfs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:17:24.471153"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:17:24.472928"], ["id", "7b323722-bfc1-11e4-9ff1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b30f36c-bfc1-11e4-a1d1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b30f36c-bfc1-11e4-a1d1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b30f36c-bfc1-11e4-a1d1-705681abff85' LIMIT 1 [["organization_id", "7b335d6e-bfc1-11e4-969d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7b335d6e-bfc1-11e4-969d-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7b335d6e-bfc1-11e4-969d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "7b335d6e-bfc1-11e4-969d-705681abff85"], ["created_at", "2015-03-01 03:17:24.483304"], ["updated_at", "2015-03-01 03:17:24.483304"], ["token", "z4U-eBCxiEGldiNYvFVHr0fojY4_xU-8J8JTENSjmWU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 38967cab-316e-473f-8d5d-613b47f5d57e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7b38655c-bfc1-11e4-ae8e-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7b38655c-bfc1-11e4-ae8e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [38967cab-316e-473f-8d5d-613b47f5d57e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7b38655c-bfc1-11e4-ae8e-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [38967cab-316e-473f-8d5d-613b47f5d57e] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7b335d6e-bfc1-11e4-969d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [38967cab-316e-473f-8d5d-613b47f5d57e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [38967cab-316e-473f-8d5d-613b47f5d57e] Clubhouse::Mailer#invitation: processed outbound mail in 251.6ms [ActiveJob] [ActionMailer::DeliveryJob] [38967cab-316e-473f-8d5d-613b47f5d57e] Sent mail to email@example.com (15.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [38967cab-316e-473f-8d5d-613b47f5d57e] Date: Sat, 28 Feb 2015 19:17:24 -0800 From: from@example.com To: email@example.com Message-ID: <54f284c4bbcd5_12dc63ffd2e065bec713bf@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/z4U-eBCxiEGldiNYvFVHr0fojY4_xU-8J8JTENSjmWU If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [38967cab-316e-473f-8d5d-613b47f5d57e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 267.27ms Completed 201 Created in 313ms (Views: 0.7ms | ActiveRecord: 3.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$LGvBhbY2nVmc6tF3VeJBTOrU.QAT3PlBg1jEbCmYei3.qjT22xT3W"], ["created_at", "2015-03-01 03:17:24.789734"], ["updated_at", "2015-03-01 03:17:24.789734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$SSSCGDLqEVyagELzHAU93epLoTifXkQVlVEfybdGxztGUn5G9YB42"], ["created_at", "2015-03-01 03:17:24.794673"], ["updated_at", "2015-03-01 03:17:24.794673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.796275"], ["user_id", "7b671c80-bfc1-11e4-9999-705681abff85"], ["created_at", "2015-03-01 03:17:24.797035"], ["updated_at", "2015-03-01 03:17:24.797035"], ["token", "nUE5YvaZXCadwwg-ky77KTwI3_J9j9QPHDJFbx7mqPI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.798812"], ["user_id", "7b67d652-bfc1-11e4-b7b4-705681abff85"], ["created_at", "2015-03-01 03:17:24.799465"], ["updated_at", "2015-03-01 03:17:24.799465"], ["token", "l6I8yqQVE7BLM9IRJPXie_pLpNk2zjLCmuyK_eDFuwM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:17:24.802654"], ["updated_at", "2015-03-01 03:17:24.802654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b671c80-bfc1-11e4-9999-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b690cc0-bfc1-11e4-8f9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b671c80-bfc1-11e4-9999-705681abff85"], ["organization_id", "7b690cc0-bfc1-11e4-8f9c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:17:24.806896"], ["updated_at", "2015-03-01 03:17:24.806896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b67d652-bfc1-11e4-b7b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b690cc0-bfc1-11e4-8f9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b67d652-bfc1-11e4-b7b4-705681abff85"], ["organization_id", "7b690cc0-bfc1-11e4-8f9c-705681abff85"], ["created_at", "2015-03-01 03:17:24.810055"], ["updated_at", "2015-03-01 03:17:24.810055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '7b690cc0-bfc1-11e4-8f9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "7b690cc0-bfc1-11e4-8f9c-705681abff85"], ["created_at", "2015-03-01 03:17:24.813414"], ["updated_at", "2015-03-01 03:17:24.813414"], ["token", "J5EKkwhrtWL6HNMHwFgUeXnVJI7sTVwhY-Ey2IggQ4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:17:24 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:17:24.818386' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nUE5YvaZXCadwwg-ky77KTwI3_J9j9QPHDJFbx7mqPI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:17:24.819976"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:17:24.821079"], ["id", "7b6838b8-bfc1-11e4-98f1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b671c80-bfc1-11e4-9999-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b671c80-bfc1-11e4-9999-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b671c80-bfc1-11e4-9999-705681abff85' LIMIT 1 [["organization_id", "7b690cc0-bfc1-11e4-8f9c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7b690cc0-bfc1-11e4-8f9c-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7b690cc0-bfc1-11e4-8f9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "7b690cc0-bfc1-11e4-8f9c-705681abff85"], ["created_at", "2015-03-01 03:17:24.830059"], ["updated_at", "2015-03-01 03:17:24.830059"], ["token", "Gy4kPKqnYfAPsMw8dC3Fm0E80kxXem0_CfgXvnJHgVA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9d9e8ede-465f-4ab7-b3fb-bcf97b318b6e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7b6d574e-bfc1-11e4-a154-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7b6d574e-bfc1-11e4-a154-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9d9e8ede-465f-4ab7-b3fb-bcf97b318b6e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7b6d574e-bfc1-11e4-a154-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9d9e8ede-465f-4ab7-b3fb-bcf97b318b6e] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7b690cc0-bfc1-11e4-8f9c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9d9e8ede-465f-4ab7-b3fb-bcf97b318b6e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [9d9e8ede-465f-4ab7-b3fb-bcf97b318b6e] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [9d9e8ede-465f-4ab7-b3fb-bcf97b318b6e] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [9d9e8ede-465f-4ab7-b3fb-bcf97b318b6e] Date: Sat, 28 Feb 2015 19:17:24 -0800 From: from@example.com To: email@example.com Message-ID: <54f284c4cc906_12dc63ffd2e065bec714be@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Gy4kPKqnYfAPsMw8dC3Fm0E80kxXem0_CfgXvnJHgVA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9d9e8ede-465f-4ab7-b3fb-bcf97b318b6e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.43ms Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ZrtJy6EBoWNA2rjKwE7I.On2xZFDfvZM3jIG4JQ7S5u2HcRrPU2H6"], ["created_at", "2015-03-01 03:17:24.848319"], ["updated_at", "2015-03-01 03:17:24.848319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$7/SSDp.XIZC5arrFIo1RHOabvDQyuv4mwtd5ohp3N.zChpso1.JDS"], ["created_at", "2015-03-01 03:17:24.853625"], ["updated_at", "2015-03-01 03:17:24.853625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.856307"], ["user_id", "7b700660-bfc1-11e4-89b1-705681abff85"], ["created_at", "2015-03-01 03:17:24.857100"], ["updated_at", "2015-03-01 03:17:24.857100"], ["token", "GYJPSAAOQryZwEL71mlC6HnUXUMjisDf2qysFu6Vs_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:17:24.858829"], ["user_id", "7b70fcc8-bfc1-11e4-9b1a-705681abff85"], ["created_at", "2015-03-01 03:17:24.859569"], ["updated_at", "2015-03-01 03:17:24.859569"], ["token", "8sYeUw__v65AarigCkuAqb1gVf0zeFrf4ecF08x_iXo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:17:24.862860"], ["updated_at", "2015-03-01 03:17:24.862860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b700660-bfc1-11e4-89b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b723b88-bfc1-11e4-bfa6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b700660-bfc1-11e4-89b1-705681abff85"], ["organization_id", "7b723b88-bfc1-11e4-bfa6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:17:24.866976"], ["updated_at", "2015-03-01 03:17:24.866976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b70fcc8-bfc1-11e4-9b1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b723b88-bfc1-11e4-bfa6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b70fcc8-bfc1-11e4-9b1a-705681abff85"], ["organization_id", "7b723b88-bfc1-11e4-bfa6-705681abff85"], ["created_at", "2015-03-01 03:17:24.870837"], ["updated_at", "2015-03-01 03:17:24.870837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '7b723b88-bfc1-11e4-bfa6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "7b723b88-bfc1-11e4-bfa6-705681abff85"], ["created_at", "2015-03-01 03:17:24.875636"], ["updated_at", "2015-03-01 03:17:24.875636"], ["token", "0cZp7CX3FKNwkkPzqvAFMKzJEvkw6tNOMjFZIF2hJqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:17:24 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:17:24.883116' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GYJPSAAOQryZwEL71mlC6HnUXUMjisDf2qysFu6Vs_0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:17:24.885106"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:17:24.887046"], ["id", "7b7162da-bfc1-11e4-a4d0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b700660-bfc1-11e4-89b1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b700660-bfc1-11e4-89b1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b700660-bfc1-11e4-89b1-705681abff85' LIMIT 1 [["organization_id", "7b723b88-bfc1-11e4-bfa6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7b723b88-bfc1-11e4-bfa6-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '7b723b88-bfc1-11e4-bfa6-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (26.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$cTed30XagmIsWoPxJPh3JOO8ghcJMrEa.YBospmsTUZJAIMkbkvSC"], ["created_at", "2015-03-01 03:18:47.473134"], ["updated_at", "2015-03-01 03:18:47.473134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$3IGsuCuKquLAnYr0gkKnTuArRtoWpwYyFD.0XKKKx5cOoNvaFYP7e"], ["created_at", "2015-03-01 03:18:47.505048"], ["updated_at", "2015-03-01 03:18:47.505048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:47.513969"], ["user_id", "acafc09e-bfc1-11e4-920d-705681abff85"], ["created_at", "2015-03-01 03:18:47.520216"], ["updated_at", "2015-03-01 03:18:47.520216"], ["token", "UzGXRV1KcXFi7WEhuHeb-Yjyvu2Rj-15h7MZmvHYTV4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:47.522642"], ["user_id", "acb47152-bfc1-11e4-a2aa-705681abff85"], ["created_at", "2015-03-01 03:18:47.523368"], ["updated_at", "2015-03-01 03:18:47.523368"], ["token", "Y8Zrns_kknZ28FdShuNYcXV57wOsgoiZzk7gXKB62Uc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (8.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:18:47.532980"], ["updated_at", "2015-03-01 03:18:47.532980"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acafc09e-bfc1-11e4-920d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'acb8bc80-bfc1-11e4-b6d7-705681abff85') LIMIT 1 SQL (2.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "acafc09e-bfc1-11e4-920d-705681abff85"], ["organization_id", "acb8bc80-bfc1-11e4-b6d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:18:47.588634"], ["updated_at", "2015-03-01 03:18:47.588634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acb47152-bfc1-11e4-a2aa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'acb8bc80-bfc1-11e4-b6d7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "acb47152-bfc1-11e4-a2aa-705681abff85"], ["organization_id", "acb8bc80-bfc1-11e4-b6d7-705681abff85"], ["created_at", "2015-03-01 03:18:47.595740"], ["updated_at", "2015-03-01 03:18:47.595740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'acb8bc80-bfc1-11e4-b6d7-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "acb8bc80-bfc1-11e4-b6d7-705681abff85"], ["created_at", "2015-03-01 03:18:47.607783"], ["updated_at", "2015-03-01 03:18:47.607783"], ["token", "tXWjk6I88sFt76yBrHT9K7OvjKPLwVpnFB6AumNGaeM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:18:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$U9Q3SkFPQFc0MUhdU8pBSelPVyPirDcluCWlgFl8d7p5.uwGi4Es6"], ["created_at", "2015-03-01 03:18:47.647763"], ["updated_at", "2015-03-01 03:18:47.647763"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$zRxM8ZDvLm1fs.ANSoWa9.XJ6AQdZwT1ws4S9m25eqcl2j7CGgvzO"], ["created_at", "2015-03-01 03:18:47.654092"], ["updated_at", "2015-03-01 03:18:47.654092"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:47.657581"], ["user_id", "acca454a-bfc1-11e4-b033-705681abff85"], ["created_at", "2015-03-01 03:18:47.658765"], ["updated_at", "2015-03-01 03:18:47.658765"], ["token", "lWLKaySH4woWKzzYpClcTcdmZ332L4HmvcqfIxK7mJA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:47.660849"], ["user_id", "accb3fb8-bfc1-11e4-9c64-705681abff85"], ["created_at", "2015-03-01 03:18:47.662059"], ["updated_at", "2015-03-01 03:18:47.662059"], ["token", "hqUL9CCKbw5M9Olk9N_I_KUNbrRGO2i6gIpf5wsb2K4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:18:47.668626"], ["updated_at", "2015-03-01 03:18:47.668626"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acca454a-bfc1-11e4-b033-705681abff85' AND "clubhouse_memberships"."organization_id" = 'accd8ec6-bfc1-11e4-b0a0-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "acca454a-bfc1-11e4-b033-705681abff85"], ["organization_id", "accd8ec6-bfc1-11e4-b0a0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:18:47.675545"], ["updated_at", "2015-03-01 03:18:47.675545"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'accb3fb8-bfc1-11e4-9c64-705681abff85' AND "clubhouse_memberships"."organization_id" = 'accd8ec6-bfc1-11e4-b0a0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "accb3fb8-bfc1-11e4-9c64-705681abff85"], ["organization_id", "accd8ec6-bfc1-11e4-b0a0-705681abff85"], ["created_at", "2015-03-01 03:18:47.681844"], ["updated_at", "2015-03-01 03:18:47.681844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'accd8ec6-bfc1-11e4-b0a0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "accd8ec6-bfc1-11e4-b0a0-705681abff85"], ["created_at", "2015-03-01 03:18:47.685824"], ["updated_at", "2015-03-01 03:18:47.685824"], ["token", "rqK1zex0sc9KN1RHOAuFlJ3v2eqCfB9G5YGK0PQhaMs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:18:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:18:47.692624' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lWLKaySH4woWKzzYpClcTcdmZ332L4HmvcqfIxK7mJA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:18:47.701614"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:18:47.703255"], ["id", "accbf58e-bfc1-11e4-80ce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "acca454a-bfc1-11e4-b033-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "acca454a-bfc1-11e4-b033-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'acca454a-bfc1-11e4-b033-705681abff85' LIMIT 1 [["organization_id", "accd8ec6-bfc1-11e4-b0a0-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "accd8ec6-bfc1-11e4-b0a0-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'accd8ec6-bfc1-11e4-b0a0-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 52ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$KHsTHgnQqCUziuK/g6STX.Y6iFxl6wBLKbMDhKJbgJlgG2OVTCwmC"], ["created_at", "2015-03-01 03:18:47.750244"], ["updated_at", "2015-03-01 03:18:47.750244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$McJocxhnGLDUOBgKeRVWXuRdbtBtnCOiRl61xDGT.nU2btIeS70XC"], ["created_at", "2015-03-01 03:18:47.754713"], ["updated_at", "2015-03-01 03:18:47.754713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:47.756577"], ["user_id", "acd9e0fe-bfc1-11e4-8ca0-705681abff85"], ["created_at", "2015-03-01 03:18:47.757594"], ["updated_at", "2015-03-01 03:18:47.757594"], ["token", "KA5KEtGJ-mbpXkzIuR8pf6r73jz3wEJsUUKZuk4VN6U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:47.759421"], ["user_id", "acda87c0-bfc1-11e4-8f91-705681abff85"], ["created_at", "2015-03-01 03:18:47.760263"], ["updated_at", "2015-03-01 03:18:47.760263"], ["token", "_1v3vALBM-JIXzIaDfsZr0MFobZyAJkUPbT6BDeUCxw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:18:47.764163"], ["updated_at", "2015-03-01 03:18:47.764163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acd9e0fe-bfc1-11e4-8ca0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'acdc0d3e-bfc1-11e4-873e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "acd9e0fe-bfc1-11e4-8ca0-705681abff85"], ["organization_id", "acdc0d3e-bfc1-11e4-873e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:18:47.770725"], ["updated_at", "2015-03-01 03:18:47.770725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acda87c0-bfc1-11e4-8f91-705681abff85' AND "clubhouse_memberships"."organization_id" = 'acdc0d3e-bfc1-11e4-873e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "acda87c0-bfc1-11e4-8f91-705681abff85"], ["organization_id", "acdc0d3e-bfc1-11e4-873e-705681abff85"], ["created_at", "2015-03-01 03:18:47.774621"], ["updated_at", "2015-03-01 03:18:47.774621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'acdc0d3e-bfc1-11e4-873e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "acdc0d3e-bfc1-11e4-873e-705681abff85"], ["created_at", "2015-03-01 03:18:47.778035"], ["updated_at", "2015-03-01 03:18:47.778035"], ["token", "Oc8Kw5-USPWQrfYdvy846D02U-2QfBiBywXlD1OW1_Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:18:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:18:47.783376' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KA5KEtGJ-mbpXkzIuR8pf6r73jz3wEJsUUKZuk4VN6U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:18:47.784958"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:18:47.786008"], ["id", "acdb0272-bfc1-11e4-902f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "acd9e0fe-bfc1-11e4-8ca0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "acd9e0fe-bfc1-11e4-8ca0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'acd9e0fe-bfc1-11e4-8ca0-705681abff85' LIMIT 1 [["organization_id", "acdc0d3e-bfc1-11e4-873e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "acdc0d3e-bfc1-11e4-873e-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'acdc0d3e-bfc1-11e4-873e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "acdc0d3e-bfc1-11e4-873e-705681abff85"], ["created_at", "2015-03-01 03:18:47.794461"], ["updated_at", "2015-03-01 03:18:47.794461"], ["token", "JNRk5JHnvl4-iTKKP7EJs7U3fJ6Bgj1vdh7jXzHT60Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 260a2f2f-19c0-4255-82b7-4c7cdea981c6) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ace0a7c2-bfc1-11e4-b16b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ace0a7c2-bfc1-11e4-b16b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [260a2f2f-19c0-4255-82b7-4c7cdea981c6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ace0a7c2-bfc1-11e4-b16b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [260a2f2f-19c0-4255-82b7-4c7cdea981c6] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "acdc0d3e-bfc1-11e4-873e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [260a2f2f-19c0-4255-82b7-4c7cdea981c6] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [260a2f2f-19c0-4255-82b7-4c7cdea981c6] Clubhouse::Mailer#invitation: processed outbound mail in 217.3ms [ActiveJob] [ActionMailer::DeliveryJob] [260a2f2f-19c0-4255-82b7-4c7cdea981c6] Sent mail to email@example.com (15.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [260a2f2f-19c0-4255-82b7-4c7cdea981c6] Date: Sat, 28 Feb 2015 19:18:48 -0800 From: from@example.com To: email@example.com Message-ID: <54f28518abaa_12dd23fd9f4c63be057384@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/JNRk5JHnvl4-iTKKP7EJs7U3fJ6Bgj1vdh7jXzHT60Q If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [260a2f2f-19c0-4255-82b7-4c7cdea981c6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 233.44ms Completed 201 Created in 274ms (Views: 1.6ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$MO33nE5BYfmen.hA3KIQgumSz7NKgGF850LcJNYZREzfwY6qPHLrS"], ["created_at", "2015-03-01 03:18:48.065657"], ["updated_at", "2015-03-01 03:18:48.065657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$tDi1McnOEbSF8pBbom.fNeOXKlKosnTnD/zMMsnmvFNiXjTufwGvi"], ["created_at", "2015-03-01 03:18:48.070718"], ["updated_at", "2015-03-01 03:18:48.070718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:48.072470"], ["user_id", "ad09fdfc-bfc1-11e4-b252-705681abff85"], ["created_at", "2015-03-01 03:18:48.073350"], ["updated_at", "2015-03-01 03:18:48.073350"], ["token", "gkUTINmEGL3JUH98zP8GtVwW1EINNULsukt6sWZ6ixM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:48.075163"], ["user_id", "ad0abfa8-bfc1-11e4-a4a7-705681abff85"], ["created_at", "2015-03-01 03:18:48.075959"], ["updated_at", "2015-03-01 03:18:48.075959"], ["token", "WPPz1wj3cD9vV0qlAh_zVH98mH-kVszc1xx7Slht9EQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:18:48.079251"], ["updated_at", "2015-03-01 03:18:48.079251"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad09fdfc-bfc1-11e4-b252-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad0c1498-bfc1-11e4-8600-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad09fdfc-bfc1-11e4-b252-705681abff85"], ["organization_id", "ad0c1498-bfc1-11e4-8600-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:18:48.083629"], ["updated_at", "2015-03-01 03:18:48.083629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad0abfa8-bfc1-11e4-a4a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad0c1498-bfc1-11e4-8600-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad0abfa8-bfc1-11e4-a4a7-705681abff85"], ["organization_id", "ad0c1498-bfc1-11e4-8600-705681abff85"], ["created_at", "2015-03-01 03:18:48.087081"], ["updated_at", "2015-03-01 03:18:48.087081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'ad0c1498-bfc1-11e4-8600-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "ad0c1498-bfc1-11e4-8600-705681abff85"], ["created_at", "2015-03-01 03:18:48.091034"], ["updated_at", "2015-03-01 03:18:48.091034"], ["token", "CcbD6NheaCoH3tAfcHVKBza5BfINgoRKQ9DSwzWxq4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:18:48 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:18:48.096506' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gkUTINmEGL3JUH98zP8GtVwW1EINNULsukt6sWZ6ixM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:18:48.098354"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:18:48.099393"], ["id", "ad0b2ff6-bfc1-11e4-b7e7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad09fdfc-bfc1-11e4-b252-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "ad09fdfc-bfc1-11e4-b252-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ad09fdfc-bfc1-11e4-b252-705681abff85' LIMIT 1 [["organization_id", "ad0c1498-bfc1-11e4-8600-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ad0c1498-bfc1-11e4-8600-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ad0c1498-bfc1-11e4-8600-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "ad0c1498-bfc1-11e4-8600-705681abff85"], ["created_at", "2015-03-01 03:18:48.108436"], ["updated_at", "2015-03-01 03:18:48.108436"], ["token", "uOP42X9Z1P8fnlS_n1zifGTnUWDmHo0wXBX48y-0D-Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d201bdf9-8089-4ca7-b544-e126828aec97) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ad108a78-bfc1-11e4-80c3-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ad108a78-bfc1-11e4-80c3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d201bdf9-8089-4ca7-b544-e126828aec97] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ad108a78-bfc1-11e4-80c3-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d201bdf9-8089-4ca7-b544-e126828aec97] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ad0c1498-bfc1-11e4-8600-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d201bdf9-8089-4ca7-b544-e126828aec97] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d201bdf9-8089-4ca7-b544-e126828aec97] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [d201bdf9-8089-4ca7-b544-e126828aec97] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d201bdf9-8089-4ca7-b544-e126828aec97] Date: Sat, 28 Feb 2015 19:18:48 -0800 From: from@example.com To: email@example.com Message-ID: <54f285181c82b_12dd23fd9f4c63be0574d5@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/uOP42X9Z1P8fnlS_n1zifGTnUWDmHo0wXBX48y-0D-Y If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d201bdf9-8089-4ca7-b544-e126828aec97] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.67ms Completed 201 Created in 22ms (Views: 0.5ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$jhaox3ZAErRlJ1a9UbhoUuvlxtVzhXd7fCE5yuU6nqeXrabt5N2.."], ["created_at", "2015-03-01 03:18:48.129518"], ["updated_at", "2015-03-01 03:18:48.129518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$4YBpJ/aETLTx6q28yC3cQ./EsHMTR1mW2T5GqOMOEtrQeNrHZpoBm"], ["created_at", "2015-03-01 03:18:48.134316"], ["updated_at", "2015-03-01 03:18:48.134316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:48.135819"], ["user_id", "ad13be0a-bfc1-11e4-9008-705681abff85"], ["created_at", "2015-03-01 03:18:48.136575"], ["updated_at", "2015-03-01 03:18:48.136575"], ["token", "oLk9IoT6tag0qmbDhn_9FJTmpE2C_-wNn4R0dfaGNbo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:48.138123"], ["user_id", "ad1473c2-bfc1-11e4-9f7c-705681abff85"], ["created_at", "2015-03-01 03:18:48.139336"], ["updated_at", "2015-03-01 03:18:48.139336"], ["token", "1cirf5PlbmUbYiyjpySvsFGrgDw9gxRUMGC_ZQ6KDEM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (6.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:18:48.143764"], ["updated_at", "2015-03-01 03:18:48.143764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad13be0a-bfc1-11e4-9008-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad15e9e6-bfc1-11e4-9f7c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad13be0a-bfc1-11e4-9008-705681abff85"], ["organization_id", "ad15e9e6-bfc1-11e4-9f7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:18:48.154284"], ["updated_at", "2015-03-01 03:18:48.154284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad1473c2-bfc1-11e4-9f7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad15e9e6-bfc1-11e4-9f7c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad1473c2-bfc1-11e4-9f7c-705681abff85"], ["organization_id", "ad15e9e6-bfc1-11e4-9f7c-705681abff85"], ["created_at", "2015-03-01 03:18:48.158832"], ["updated_at", "2015-03-01 03:18:48.158832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'ad15e9e6-bfc1-11e4-9f7c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "ad15e9e6-bfc1-11e4-9f7c-705681abff85"], ["created_at", "2015-03-01 03:18:48.166320"], ["updated_at", "2015-03-01 03:18:48.166320"], ["token", "zXvIWcoZlw-liaT7TcM_y7Hdij3g0He7HjP_LpKqCSg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/ad195dd8-bfc1-11e4-9275-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:18:48 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"ad195dd8-bfc1-11e4-9275-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:18:48.172717' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oLk9IoT6tag0qmbDhn_9FJTmpE2C_-wNn4R0dfaGNbo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:18:48.174278"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:18:48.175675"], ["id", "ad14d132-bfc1-11e4-a241-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad13be0a-bfc1-11e4-9008-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "ad13be0a-bfc1-11e4-9008-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ad13be0a-bfc1-11e4-9008-705681abff85' LIMIT 1 [["organization_id", "ad15e9e6-bfc1-11e4-9f7c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "ad15e9e6-bfc1-11e4-9f7c-705681abff85"], ["id", "ad195dd8-bfc1-11e4-9275-705681abff85"]] Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$1cXj2XThglLUIqibap4mXOopqlC8JGa5t01NDcX2pbjsSX50CYfFK"], ["created_at", "2015-03-01 03:18:48.193266"], ["updated_at", "2015-03-01 03:18:48.193266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Szj.rr3G3/VtgM78rkHoue99HN5ERAYeKvl9jhBFWSorYMMyhHtWq"], ["created_at", "2015-03-01 03:18:48.197947"], ["updated_at", "2015-03-01 03:18:48.197947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:48.199589"], ["user_id", "ad1d7878-bfc1-11e4-b160-705681abff85"], ["created_at", "2015-03-01 03:18:48.200358"], ["updated_at", "2015-03-01 03:18:48.200358"], ["token", "w7gzNpBDBJfB54MjmJVIDdA4Y4j72SW2a_cAqsYIHDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:18:48.202226"], ["user_id", "ad1e2bd8-bfc1-11e4-bb37-705681abff85"], ["created_at", "2015-03-01 03:18:48.203037"], ["updated_at", "2015-03-01 03:18:48.203037"], ["token", "J1i_JCFau9yaiGp1sbqEbD6LRCaghllhTtYYIU0GE7k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:18:48.206721"], ["updated_at", "2015-03-01 03:18:48.206721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad1d7878-bfc1-11e4-b160-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad1f8460-bfc1-11e4-b6ac-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad1d7878-bfc1-11e4-b160-705681abff85"], ["organization_id", "ad1f8460-bfc1-11e4-b6ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:18:48.210540"], ["updated_at", "2015-03-01 03:18:48.210540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad1e2bd8-bfc1-11e4-bb37-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ad1f8460-bfc1-11e4-b6ac-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad1e2bd8-bfc1-11e4-bb37-705681abff85"], ["organization_id", "ad1f8460-bfc1-11e4-b6ac-705681abff85"], ["created_at", "2015-03-01 03:18:48.215200"], ["updated_at", "2015-03-01 03:18:48.215200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'ad1f8460-bfc1-11e4-b6ac-705681abff85') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "ad1f8460-bfc1-11e4-b6ac-705681abff85"], ["created_at", "2015-03-01 03:18:48.220617"], ["updated_at", "2015-03-01 03:18:48.220617"], ["token", "BWzSkexdl7bRbHmxuqDQyAV5LOdSvbrKcPy_jKGrovE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:18:48 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$HWCpmPlmpUzjwx1QDqk2IekM/W3Q1mhzr9vtBBGOvPGvi00BAh8Zi"], ["created_at", "2015-03-01 03:22:18.260114"], ["updated_at", "2015-03-01 03:22:18.260114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$cwMNhe9FL1r6RuzPwoZUwOUwKjSymvZoMciN1sRQfaQGefnHpN0EG"], ["created_at", "2015-03-01 03:22:18.272218"], ["updated_at", "2015-03-01 03:22:18.272218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:18.280543"], ["user_id", "2a534764-bfc2-11e4-acc3-705681abff85"], ["created_at", "2015-03-01 03:22:18.286505"], ["updated_at", "2015-03-01 03:22:18.286505"], ["token", "bw--GVSsEbEdUo7ToxlWThTX-rdXSI8lK0E7-WODWt4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:18.289042"], ["user_id", "2a54f5d2-bfc2-11e4-ad4f-705681abff85"], ["created_at", "2015-03-01 03:22:18.290074"], ["updated_at", "2015-03-01 03:22:18.290074"], ["token", "mPwbrqZzgOLv72mel7YZUs75QTcfMRo6PeFCJfAtOs8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:18.298920"], ["updated_at", "2015-03-01 03:22:18.298920"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2a534764-bfc2-11e4-acc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '2a592526-bfc2-11e4-8b94-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2a534764-bfc2-11e4-acc3-705681abff85"], ["organization_id", "2a592526-bfc2-11e4-8b94-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:18.413020"], ["updated_at", "2015-03-01 03:22:18.413020"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$VDJ3vWJmwxHlbf9sGhkbMOAPmJar1G/V0LwkedSPicpNSFtEKH.7S"], ["created_at", "2015-03-01 03:22:18.423703"], ["updated_at", "2015-03-01 03:22:18.423703"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:18.431967"], ["updated_at", "2015-03-01 03:22:18.431967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2a6c282e-bfc2-11e4-8c1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2a6d7c42-bfc2-11e4-8936-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2a6c282e-bfc2-11e4-8c1d-705681abff85"], ["organization_id", "2a6d7c42-bfc2-11e4-8936-705681abff85"], ["created_at", "2015-03-01 03:22:18.438772"], ["updated_at", "2015-03-01 03:22:18.438772"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2a592526-bfc2-11e4-8b94-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "2a592526-bfc2-11e4-8b94-705681abff85"], ["created_at", "2015-03-01 03:22:18.451814"], ["updated_at", "2015-03-01 03:22:18.451814"], ["token", "WkWlb9V0zTeAkS60cR9WWeHfJ2HSuZZ7ARWDAYnTIxc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:18 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Hu4YVA/lqr/AD.nIGUx0JedSz6TQbwTWIzXrgi3sez09Q9C3V2SoS"], ["created_at", "2015-03-01 03:22:18.469619"], ["updated_at", "2015-03-01 03:22:18.469619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$OzH6s9FtPizK/JsKwdwc/ug6iVuHFIMMdifHdBQGWQnupw8B/.ez2"], ["created_at", "2015-03-01 03:22:18.474256"], ["updated_at", "2015-03-01 03:22:18.474256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:18.475840"], ["user_id", "2a731670-bfc2-11e4-834d-705681abff85"], ["created_at", "2015-03-01 03:22:18.476617"], ["updated_at", "2015-03-01 03:22:18.476617"], ["token", "ZpOULHjxSJGHCl4lH-p2AXkg1XwMKzjAqOps2xjxVA4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:18.478556"], ["user_id", "2a73c9d0-bfc2-11e4-958f-705681abff85"], ["created_at", "2015-03-01 03:22:18.479516"], ["updated_at", "2015-03-01 03:22:18.479516"], ["token", "PoczxoGRI8iJXAGT1Mj6jAsg8t6050CkWwmQO430-HQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:18.483042"], ["updated_at", "2015-03-01 03:22:18.483042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2a731670-bfc2-11e4-834d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2a75206e-bfc2-11e4-aeda-705681abff85') LIMIT 1 SQL (2.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2a731670-bfc2-11e4-834d-705681abff85"], ["organization_id", "2a75206e-bfc2-11e4-aeda-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:18.487322"], ["updated_at", "2015-03-01 03:22:18.487322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$LoOsElQchmGKLzxS85fBI.gzinXOFzRiu5sjqsaK5EJdewChP7L8W"], ["created_at", "2015-03-01 03:22:18.496775"], ["updated_at", "2015-03-01 03:22:18.496775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:18.500118"], ["updated_at", "2015-03-01 03:22:18.500118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2a773b4c-bfc2-11e4-8969-705681abff85' AND "clubhouse_memberships"."organization_id" = '2a77c26a-bfc2-11e4-a377-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2a773b4c-bfc2-11e4-8969-705681abff85"], ["organization_id", "2a77c26a-bfc2-11e4-a377-705681abff85"], ["created_at", "2015-03-01 03:22:18.504223"], ["updated_at", "2015-03-01 03:22:18.504223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '2a75206e-bfc2-11e4-aeda-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "2a75206e-bfc2-11e4-aeda-705681abff85"], ["created_at", "2015-03-01 03:22:18.508315"], ["updated_at", "2015-03-01 03:22:18.508315"], ["token", "3wNsmfr-CGSgCGh3CRQpGFEByrR7JH5FzSlLehir1ks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:18 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$w5GA8Zv/3f8gh3mF4gxwReb.va/RxmQsOQ5ds850REZdY7D5vWhC."], ["created_at", "2015-03-01 03:22:18.519482"], ["updated_at", "2015-03-01 03:22:18.519482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$2ZQipq69i3ER7MIHvLUJuOmnb1lYM95WsIsuY3nKnKYFQK.hrMPI."], ["created_at", "2015-03-01 03:22:18.524357"], ["updated_at", "2015-03-01 03:22:18.524357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:18.525900"], ["user_id", "2a7abeac-bfc2-11e4-8ef0-705681abff85"], ["created_at", "2015-03-01 03:22:18.526686"], ["updated_at", "2015-03-01 03:22:18.526686"], ["token", "H1TflFnovR-SK4LSBTdswXq-9RkENk5H2bqaE_vyZg4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:18.528632"], ["user_id", "2a7b6c30-bfc2-11e4-bf0f-705681abff85"], ["created_at", "2015-03-01 03:22:18.529416"], ["updated_at", "2015-03-01 03:22:18.529416"], ["token", "BpWkNS-tZjjaiZ5pCj-KUzJnrlTkxjX57vay7-aGYtE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:18.533313"], ["updated_at", "2015-03-01 03:22:18.533313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2a7abeac-bfc2-11e4-8ef0-705681abff85' AND "clubhouse_memberships"."organization_id" = '2a7cd30e-bfc2-11e4-9a6b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2a7abeac-bfc2-11e4-8ef0-705681abff85"], ["organization_id", "2a7cd30e-bfc2-11e4-9a6b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:18.537394"], ["updated_at", "2015-03-01 03:22:18.537394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2a7b6c30-bfc2-11e4-bf0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2a7cd30e-bfc2-11e4-9a6b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2a7b6c30-bfc2-11e4-bf0f-705681abff85"], ["organization_id", "2a7cd30e-bfc2-11e4-9a6b-705681abff85"], ["created_at", "2015-03-01 03:22:18.541156"], ["updated_at", "2015-03-01 03:22:18.541156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '2a7cd30e-bfc2-11e4-9a6b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "2a7cd30e-bfc2-11e4-9a6b-705681abff85"], ["created_at", "2015-03-01 03:22:18.545078"], ["updated_at", "2015-03-01 03:22:18.545078"], ["token", "QFgGxQLmSAOiwfRDlPVoLCpLzVRobGBfz16GsSgfREA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:18 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$QsEMxZvoh8BeKaiTul0vtOaC7CSXBgMjT4yVYFdo5lYWaVZwephZi"], ["created_at", "2015-03-01 03:22:18.577091"], ["updated_at", "2015-03-01 03:22:18.577091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$.CswYel0TnzkxEOVSWPhkOCycAihzlyi7YQi4KAYAxGKY6qgAar2."], ["created_at", "2015-03-01 03:22:18.581686"], ["updated_at", "2015-03-01 03:22:18.581686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:18.583263"], ["user_id", "2a8385dc-bfc2-11e4-97a9-705681abff85"], ["created_at", "2015-03-01 03:22:18.584059"], ["updated_at", "2015-03-01 03:22:18.584059"], ["token", "ppy6p1j_QJTyk_aODlcb7NOOGsnJjPTBXbxa9W5W3M4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:18.585890"], ["user_id", "2a842af0-bfc2-11e4-a0ef-705681abff85"], ["created_at", "2015-03-01 03:22:18.586579"], ["updated_at", "2015-03-01 03:22:18.586579"], ["token", "OzV1DrZFDJHEqhk_cPXaqYTbxSimdEoJpAVcjKcR6yg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:18.589897"], ["updated_at", "2015-03-01 03:22:18.589897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2a8385dc-bfc2-11e4-97a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '2a85714e-bfc2-11e4-bb87-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2a8385dc-bfc2-11e4-97a9-705681abff85"], ["organization_id", "2a85714e-bfc2-11e4-bb87-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:18.593368"], ["updated_at", "2015-03-01 03:22:18.593368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2a842af0-bfc2-11e4-a0ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '2a85714e-bfc2-11e4-bb87-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2a842af0-bfc2-11e4-a0ef-705681abff85"], ["organization_id", "2a85714e-bfc2-11e4-bb87-705681abff85"], ["created_at", "2015-03-01 03:22:18.597006"], ["updated_at", "2015-03-01 03:22:18.597006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '2a85714e-bfc2-11e4-bb87-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "2a85714e-bfc2-11e4-bb87-705681abff85"], ["created_at", "2015-03-01 03:22:18.600727"], ["updated_at", "2015-03-01 03:22:18.600727"], ["token", "ll2jqq__bMWZe8RTZYQKKrjliV20q3APRpOg8W6mnbQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:18 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:22:18.607447' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ppy6p1j_QJTyk_aODlcb7NOOGsnJjPTBXbxa9W5W3M4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:22:18.615574"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:22:18.617360"], ["id", "2a84958a-bfc2-11e4-a9d6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2a8385dc-bfc2-11e4-97a9-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2a8385dc-bfc2-11e4-97a9-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2a8385dc-bfc2-11e4-97a9-705681abff85' LIMIT 1 [["organization_id", "2a85714e-bfc2-11e4-bb87-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2a85714e-bfc2-11e4-bb87-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '2a85714e-bfc2-11e4-bb87-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "2a85714e-bfc2-11e4-bb87-705681abff85"], ["created_at", "2015-03-01 03:22:18.651020"], ["updated_at", "2015-03-01 03:22:18.651020"], ["token", "jPwiOTWhD7-lel8mgkXscwcyb6fhagAstmDHbjTJTEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3e20ffdf-572c-4a8d-acd7-8db9a93725ed) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2a8ed068-bfc2-11e4-977d-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2a8ed068-bfc2-11e4-977d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3e20ffdf-572c-4a8d-acd7-8db9a93725ed] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2a8ed068-bfc2-11e4-977d-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [3e20ffdf-572c-4a8d-acd7-8db9a93725ed] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2a85714e-bfc2-11e4-bb87-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3e20ffdf-572c-4a8d-acd7-8db9a93725ed] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [3e20ffdf-572c-4a8d-acd7-8db9a93725ed] Clubhouse::Mailer#invitation: processed outbound mail in 239.7ms [ActiveJob] [ActionMailer::DeliveryJob] [3e20ffdf-572c-4a8d-acd7-8db9a93725ed] Sent mail to email@example.com (18.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [3e20ffdf-572c-4a8d-acd7-8db9a93725ed] Date: Sat, 28 Feb 2015 19:22:18 -0800 From: from@example.com To: email@example.com Message-ID: <54f285eae2df0_12ded3fcdc1865be03376a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/jPwiOTWhD7-lel8mgkXscwcyb6fhagAstmDHbjTJTEQ If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [3e20ffdf-572c-4a8d-acd7-8db9a93725ed] Performed ActionMailer::DeliveryJob from Inline(mailers) in 258.93ms Completed 201 Created in 335ms (Views: 1.5ms | ActiveRecord: 3.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$H42ZrXvI7ImVAdJo/Lp4YeEAjqgFI5UpRzAkffNULF8cCb1xVcJFy"], ["created_at", "2015-03-01 03:22:18.951365"], ["updated_at", "2015-03-01 03:22:18.951365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$6IQlbdZ0EcggOza57KuMMuDTr3rPJPK1I51AaZhXy.Ffj9/wHD44u"], ["created_at", "2015-03-01 03:22:18.956658"], ["updated_at", "2015-03-01 03:22:18.956658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:18.958265"], ["user_id", "2abc97e6-bfc2-11e4-95a4-705681abff85"], ["created_at", "2015-03-01 03:22:18.959060"], ["updated_at", "2015-03-01 03:22:18.959060"], ["token", "PhjYtXWlUaPLpyAliTwEWsIF_l7opg1T72FPHIOqReg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:18.960757"], ["user_id", "2abd6608-bfc2-11e4-86e7-705681abff85"], ["created_at", "2015-03-01 03:22:18.962224"], ["updated_at", "2015-03-01 03:22:18.962224"], ["token", "pDLAtphMFcZSxfCybrRwh3NsaXS4hq9TX_KrBVa2eyY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:18.966509"], ["updated_at", "2015-03-01 03:22:18.966509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2abc97e6-bfc2-11e4-95a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '2abef7c0-bfc2-11e4-af84-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2abc97e6-bfc2-11e4-95a4-705681abff85"], ["organization_id", "2abef7c0-bfc2-11e4-af84-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:18.972615"], ["updated_at", "2015-03-01 03:22:18.972615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2abd6608-bfc2-11e4-86e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '2abef7c0-bfc2-11e4-af84-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2abd6608-bfc2-11e4-86e7-705681abff85"], ["organization_id", "2abef7c0-bfc2-11e4-af84-705681abff85"], ["created_at", "2015-03-01 03:22:18.976957"], ["updated_at", "2015-03-01 03:22:18.976957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '2abef7c0-bfc2-11e4-af84-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "2abef7c0-bfc2-11e4-af84-705681abff85"], ["created_at", "2015-03-01 03:22:18.981015"], ["updated_at", "2015-03-01 03:22:18.981015"], ["token", "MufAgvd2yHGR_VStOI8d1xxo7OgtFBNFJGCXncWB95s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:18 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:22:18.986545' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PhjYtXWlUaPLpyAliTwEWsIF_l7opg1T72FPHIOqReg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:22:18.988074"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:22:18.989008"], ["id", "2abdc72e-bfc2-11e4-b002-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2abc97e6-bfc2-11e4-95a4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2abc97e6-bfc2-11e4-95a4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2abc97e6-bfc2-11e4-95a4-705681abff85' LIMIT 1 [["organization_id", "2abef7c0-bfc2-11e4-af84-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2abef7c0-bfc2-11e4-af84-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '2abef7c0-bfc2-11e4-af84-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "2abef7c0-bfc2-11e4-af84-705681abff85"], ["created_at", "2015-03-01 03:22:18.998581"], ["updated_at", "2015-03-01 03:22:18.998581"], ["token", "2a8m0r13F-f9WyCnMNSx1k0vb0TenCKHMNFt27b-6yo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 99926a5b-8809-4831-89fb-90cd130e0b16) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2ac3d1f0-bfc2-11e4-96f8-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2ac3d1f0-bfc2-11e4-96f8-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [99926a5b-8809-4831-89fb-90cd130e0b16] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2ac3d1f0-bfc2-11e4-96f8-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [99926a5b-8809-4831-89fb-90cd130e0b16] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2abef7c0-bfc2-11e4-af84-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [99926a5b-8809-4831-89fb-90cd130e0b16] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [99926a5b-8809-4831-89fb-90cd130e0b16] Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms [ActiveJob] [ActionMailer::DeliveryJob] [99926a5b-8809-4831-89fb-90cd130e0b16] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [99926a5b-8809-4831-89fb-90cd130e0b16] Date: Sat, 28 Feb 2015 19:22:19 -0800 From: from@example.com To: email@example.com Message-ID: <54f285eb21b6_12ded3fcdc1865be03384f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/2a8m0r13F-f9WyCnMNSx1k0vb0TenCKHMNFt27b-6yo If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [99926a5b-8809-4831-89fb-90cd130e0b16] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.51ms Completed 201 Created in 24ms (Views: 0.4ms | ActiveRecord: 4.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$BIq5xXowIGXpPjt/pM0lku5T7CX6hdDQNdMSH7OxLoIFTI7zV.LAC"], ["created_at", "2015-03-01 03:22:19.018953"], ["updated_at", "2015-03-01 03:22:19.018953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$6AaR9pgldMBv5XxPIuOeouAFTCXsZRdA87/Y/2sCFwwhVNORibnT6"], ["created_at", "2015-03-01 03:22:19.024942"], ["updated_at", "2015-03-01 03:22:19.024942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:19.026519"], ["user_id", "2ac71e32-bfc2-11e4-9f60-705681abff85"], ["created_at", "2015-03-01 03:22:19.027315"], ["updated_at", "2015-03-01 03:22:19.027315"], ["token", "PZctV4FcPeNGqWP4haeyxTwU0qZz0InzK_3iNOtSmfE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:19.029043"], ["user_id", "2ac7d098-bfc2-11e4-83f2-705681abff85"], ["created_at", "2015-03-01 03:22:19.029933"], ["updated_at", "2015-03-01 03:22:19.029933"], ["token", "7ErRbIj51VQGkISNd_cfooVlHRS4Tbc8F5IlgaE7QMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:19.033654"], ["updated_at", "2015-03-01 03:22:19.033654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ac71e32-bfc2-11e4-9f60-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ac921aa-bfc2-11e4-ba76-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ac71e32-bfc2-11e4-9f60-705681abff85"], ["organization_id", "2ac921aa-bfc2-11e4-ba76-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:19.037151"], ["updated_at", "2015-03-01 03:22:19.037151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ac7d098-bfc2-11e4-83f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ac921aa-bfc2-11e4-ba76-705681abff85') LIMIT 1 SQL (3.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ac7d098-bfc2-11e4-83f2-705681abff85"], ["organization_id", "2ac921aa-bfc2-11e4-ba76-705681abff85"], ["created_at", "2015-03-01 03:22:19.041757"], ["updated_at", "2015-03-01 03:22:19.041757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '2ac921aa-bfc2-11e4-ba76-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "2ac921aa-bfc2-11e4-ba76-705681abff85"], ["created_at", "2015-03-01 03:22:19.048374"], ["updated_at", "2015-03-01 03:22:19.048374"], ["token", "wvrL0mIy95cqpXM2DunC7msridjUHQjia8vZgC_wKKo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:19 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:22:19.055095' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PZctV4FcPeNGqWP4haeyxTwU0qZz0InzK_3iNOtSmfE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:22:19.056579"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:22:19.057517"], ["id", "2ac834ac-bfc2-11e4-aad5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2ac71e32-bfc2-11e4-9f60-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2ac71e32-bfc2-11e4-9f60-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2ac71e32-bfc2-11e4-9f60-705681abff85' LIMIT 1 [["organization_id", "2ac921aa-bfc2-11e4-ba76-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2ac921aa-bfc2-11e4-ba76-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '2ac921aa-bfc2-11e4-ba76-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$aljYEEHp2rfspzzREIjyXuxXM1BpGys5LseokxaCm6tgOSGz7l..a"], ["created_at", "2015-03-01 03:22:19.075154"], ["updated_at", "2015-03-01 03:22:19.075154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$yMxMsY.PEgsdMB6YnQqA2u4euZWN3gqQl.ptc63022/mdCDd0nolq"], ["created_at", "2015-03-01 03:22:19.079532"], ["updated_at", "2015-03-01 03:22:19.079532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:19.081108"], ["user_id", "2acf78ca-bfc2-11e4-9ae8-705681abff85"], ["created_at", "2015-03-01 03:22:19.081904"], ["updated_at", "2015-03-01 03:22:19.081904"], ["token", "nhPTWMB8UVXG0V6oT8T1YF1TCe3kLR-rl1myQPvxrmw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:19.083670"], ["user_id", "2ad024aa-bfc2-11e4-a92f-705681abff85"], ["created_at", "2015-03-01 03:22:19.084363"], ["updated_at", "2015-03-01 03:22:19.084363"], ["token", "UaSN5bMSSC1caz3rYRV6P8dAA6c98n18LvURh7bXsbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:19.087490"], ["updated_at", "2015-03-01 03:22:19.087490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2acf78ca-bfc2-11e4-9ae8-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ad15848-bfc2-11e4-b926-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2acf78ca-bfc2-11e4-9ae8-705681abff85"], ["organization_id", "2ad15848-bfc2-11e4-b926-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:19.090881"], ["updated_at", "2015-03-01 03:22:19.090881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ad024aa-bfc2-11e4-a92f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ad15848-bfc2-11e4-b926-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ad024aa-bfc2-11e4-a92f-705681abff85"], ["organization_id", "2ad15848-bfc2-11e4-b926-705681abff85"], ["created_at", "2015-03-01 03:22:19.093831"], ["updated_at", "2015-03-01 03:22:19.093831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '2ad15848-bfc2-11e4-b926-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "2ad15848-bfc2-11e4-b926-705681abff85"], ["created_at", "2015-03-01 03:22:19.097877"], ["updated_at", "2015-03-01 03:22:19.097877"], ["token", "z-edygbqt6uGPKcba9Tvp-QrpuomRZe7XxJkFw0eyhI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:22:19 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$XaWa6qcJaOTN7RGvDokbFeg7HTFoL5v/6fHc9h03msL6Hd2SkZpFq"], ["created_at", "2015-03-01 03:22:19.110794"], ["updated_at", "2015-03-01 03:22:19.110794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$zeeAvpS0GVT0DG0r0K/atuUdQ6bSEhhtU.hpx3SOkHaJtd.NUtOxq"], ["created_at", "2015-03-01 03:22:19.115417"], ["updated_at", "2015-03-01 03:22:19.115417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:19.116937"], ["user_id", "2ad4eb8e-bfc2-11e4-af3d-705681abff85"], ["created_at", "2015-03-01 03:22:19.117703"], ["updated_at", "2015-03-01 03:22:19.117703"], ["token", "H-g71s25WEuZjrqF6thDBB1x5AiSnowEqEopuQg9rXU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:19.119359"], ["user_id", "2ad59c50-bfc2-11e4-82b0-705681abff85"], ["created_at", "2015-03-01 03:22:19.120069"], ["updated_at", "2015-03-01 03:22:19.120069"], ["token", "vazEQgWLLNQ821GmMxduXBYg_UCDt1Wn25HhUCDVMo0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:19.124094"], ["updated_at", "2015-03-01 03:22:19.124094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ad4eb8e-bfc2-11e4-af3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ad6f1fe-bfc2-11e4-af89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ad4eb8e-bfc2-11e4-af3d-705681abff85"], ["organization_id", "2ad6f1fe-bfc2-11e4-af89-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:19.127722"], ["updated_at", "2015-03-01 03:22:19.127722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ad59c50-bfc2-11e4-82b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ad6f1fe-bfc2-11e4-af89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ad59c50-bfc2-11e4-82b0-705681abff85"], ["organization_id", "2ad6f1fe-bfc2-11e4-af89-705681abff85"], ["created_at", "2015-03-01 03:22:19.130628"], ["updated_at", "2015-03-01 03:22:19.130628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '2ad6f1fe-bfc2-11e4-af89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "2ad6f1fe-bfc2-11e4-af89-705681abff85"], ["created_at", "2015-03-01 03:22:19.133867"], ["updated_at", "2015-03-01 03:22:19.133867"], ["token", "0Utq4uRjCU4VWym7CLT9dvvq5oDOjhsJuz0E12cy6f8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/2ad86f8e-bfc2-11e4-9770-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:22:19 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"2ad86f8e-bfc2-11e4-9770-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:22:19.139431' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "H-g71s25WEuZjrqF6thDBB1x5AiSnowEqEopuQg9rXU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:22:19.140867"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:22:19.142024"], ["id", "2ad5fbf0-bfc2-11e4-9ced-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2ad4eb8e-bfc2-11e4-af3d-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2ad4eb8e-bfc2-11e4-af3d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2ad4eb8e-bfc2-11e4-af3d-705681abff85' LIMIT 1 [["organization_id", "2ad6f1fe-bfc2-11e4-af89-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "2ad6f1fe-bfc2-11e4-af89-705681abff85"], ["id", "2ad86f8e-bfc2-11e4-9770-705681abff85"]] Completed 200 OK in 11ms (Views: 0.8ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$E326JR8BO9py888VEPXSy.MPK.iOeG7r3dEpTSX71KAUCnS0Potlu"], ["created_at", "2015-03-01 03:22:39.778100"], ["updated_at", "2015-03-01 03:22:39.778100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$bEzQlTs4pnqLX32rUCGjeuIv.AWsHrKVpqtgpC0YM9i5IYMPYOUw6"], ["created_at", "2015-03-01 03:22:39.790078"], ["updated_at", "2015-03-01 03:22:39.790078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:39.798280"], ["user_id", "3726b174-bfc2-11e4-b09f-705681abff85"], ["created_at", "2015-03-01 03:22:39.804560"], ["updated_at", "2015-03-01 03:22:39.804560"], ["token", "XwiqlyeBOob9VxyNOUW0DlxcngM84JsUCXANiWT6Ev0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:39.807749"], ["user_id", "37285330-bfc2-11e4-a94a-705681abff85"], ["created_at", "2015-03-01 03:22:39.808675"], ["updated_at", "2015-03-01 03:22:39.808675"], ["token", "gqi2qPCPnucTtnjgoBJgBI44jsOlzkl4z7vjotezSoA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (6.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:39.818156"], ["updated_at", "2015-03-01 03:22:39.818156"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3726b174-bfc2-11e4-b09f-705681abff85' AND "clubhouse_memberships"."organization_id" = '372ca728-bfc2-11e4-a84a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3726b174-bfc2-11e4-b09f-705681abff85"], ["organization_id", "372ca728-bfc2-11e4-a84a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:39.868668"], ["updated_at", "2015-03-01 03:22:39.868668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37285330-bfc2-11e4-a94a-705681abff85' AND "clubhouse_memberships"."organization_id" = '372ca728-bfc2-11e4-a84a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37285330-bfc2-11e4-a94a-705681abff85"], ["organization_id", "372ca728-bfc2-11e4-a84a-705681abff85"], ["created_at", "2015-03-01 03:22:39.872556"], ["updated_at", "2015-03-01 03:22:39.872556"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '372ca728-bfc2-11e4-a84a-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "372ca728-bfc2-11e4-a84a-705681abff85"], ["created_at", "2015-03-01 03:22:39.884775"], ["updated_at", "2015-03-01 03:22:39.884775"], ["token", "dxF2uCGvcbnIEzGMqVJZajkqLJFUZpYSh3Wqou7jQhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/3736d3ce-bfc2-11e4-97d0-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:22:39 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"3736d3ce-bfc2-11e4-97d0-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:22:39.911504' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XwiqlyeBOob9VxyNOUW0DlxcngM84JsUCXANiWT6Ev0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:22:39.919096"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:22:39.920397"], ["id", "372ab5bc-bfc2-11e4-a374-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3726b174-bfc2-11e4-b09f-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3726b174-bfc2-11e4-b09f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3726b174-bfc2-11e4-b09f-705681abff85' LIMIT 1 [["organization_id", "372ca728-bfc2-11e4-a84a-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "372ca728-bfc2-11e4-a84a-705681abff85"], ["id", "3736d3ce-bfc2-11e4-97d0-705681abff85"]] Completed 200 OK in 37ms (Views: 1.7ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Ofy5GNJqo5pESdVfiCy53uDPyQJMRW9woABoMQP7uQbkomYjqGz4m"], ["created_at", "2015-03-01 03:22:39.957393"], ["updated_at", "2015-03-01 03:22:39.957393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$PyQpxCiUqdbP9iOa69Oa9OgdGYzGwkIcMKp9Ws/iJ.NzuNu1ioYoa"], ["created_at", "2015-03-01 03:22:39.962278"], ["updated_at", "2015-03-01 03:22:39.962278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:39.964066"], ["user_id", "3741de68-bfc2-11e4-bd96-705681abff85"], ["created_at", "2015-03-01 03:22:39.964877"], ["updated_at", "2015-03-01 03:22:39.964877"], ["token", "H6q2ZBAx8dgPSo3W9QGWHl7HzXqnNsIpp4tMWD7ZDEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:39.966686"], ["user_id", "37429e02-bfc2-11e4-8836-705681abff85"], ["created_at", "2015-03-01 03:22:39.967483"], ["updated_at", "2015-03-01 03:22:39.967483"], ["token", "VG1PSL9JHPi0AkFj-iMBTwnZraH2ZBHfaWbnorOqOjs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:39.970756"], ["updated_at", "2015-03-01 03:22:39.970756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3741de68-bfc2-11e4-bd96-705681abff85' AND "clubhouse_memberships"."organization_id" = '3743e1b8-bfc2-11e4-bea7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3741de68-bfc2-11e4-bd96-705681abff85"], ["organization_id", "3743e1b8-bfc2-11e4-bea7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:39.974066"], ["updated_at", "2015-03-01 03:22:39.974066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37429e02-bfc2-11e4-8836-705681abff85' AND "clubhouse_memberships"."organization_id" = '3743e1b8-bfc2-11e4-bea7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37429e02-bfc2-11e4-8836-705681abff85"], ["organization_id", "3743e1b8-bfc2-11e4-bea7-705681abff85"], ["created_at", "2015-03-01 03:22:39.977393"], ["updated_at", "2015-03-01 03:22:39.977393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '3743e1b8-bfc2-11e4-bea7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "3743e1b8-bfc2-11e4-bea7-705681abff85"], ["created_at", "2015-03-01 03:22:39.980806"], ["updated_at", "2015-03-01 03:22:39.980806"], ["token", "OUVIzpypr_61D7ksOOrc5T0pQ3N8bDihNY8phzMn4w4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:22:39 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$qAciQ0h7o.CYLl.0uv6f8eF.QOeNjnFG5DUsdKdddxoV.nkZ40q1a"], ["created_at", "2015-03-01 03:22:39.995257"], ["updated_at", "2015-03-01 03:22:39.995257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$JkqqrHCDveBW3WA3DvRtuOBIRBhopH8wPfCEQqZclm56lk3m7aI8u"], ["created_at", "2015-03-01 03:22:40.000481"], ["updated_at", "2015-03-01 03:22:40.000481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.002476"], ["user_id", "3747a74e-bfc2-11e4-bd4f-705681abff85"], ["created_at", "2015-03-01 03:22:40.003365"], ["updated_at", "2015-03-01 03:22:40.003365"], ["token", "WY9nKGCbM0ZZE_VD7YkQ5jB1cpfcK7U5aE5BM15fmm4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.005624"], ["user_id", "37486fd0-bfc2-11e4-8060-705681abff85"], ["created_at", "2015-03-01 03:22:40.006528"], ["updated_at", "2015-03-01 03:22:40.006528"], ["token", "qndv3OXdILhWaO-B9B8-oaA4I0zbZ1ja0PlqyKL0WsY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:40.011293"], ["updated_at", "2015-03-01 03:22:40.011293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3747a74e-bfc2-11e4-bd4f-705681abff85' AND "clubhouse_memberships"."organization_id" = '374a1fec-bfc2-11e4-8058-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3747a74e-bfc2-11e4-bd4f-705681abff85"], ["organization_id", "374a1fec-bfc2-11e4-8058-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:40.017634"], ["updated_at", "2015-03-01 03:22:40.017634"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37486fd0-bfc2-11e4-8060-705681abff85' AND "clubhouse_memberships"."organization_id" = '374a1fec-bfc2-11e4-8058-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37486fd0-bfc2-11e4-8060-705681abff85"], ["organization_id", "374a1fec-bfc2-11e4-8058-705681abff85"], ["created_at", "2015-03-01 03:22:40.023570"], ["updated_at", "2015-03-01 03:22:40.023570"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '374a1fec-bfc2-11e4-8058-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "374a1fec-bfc2-11e4-8058-705681abff85"], ["created_at", "2015-03-01 03:22:40.029556"], ["updated_at", "2015-03-01 03:22:40.029556"], ["token", "r_tjiBLL7gJ0xwm-y0f6FnRBFpuAkmmuQ0XeWIoVaiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$iBZFyEV6w2AL701NUYqavemWUn4hr2ZXvvHyHA9eJsqc9ftxdQT0e"], ["created_at", "2015-03-01 03:22:40.044520"], ["updated_at", "2015-03-01 03:22:40.044520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Jvh5bWIysn5huIudLnxM4OjchaLtVpvxSLZ7wvEQtMs6j3J6jm9T6"], ["created_at", "2015-03-01 03:22:40.050201"], ["updated_at", "2015-03-01 03:22:40.050201"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.052725"], ["user_id", "374f2b68-bfc2-11e4-a44f-705681abff85"], ["created_at", "2015-03-01 03:22:40.054241"], ["updated_at", "2015-03-01 03:22:40.054241"], ["token", "1kMSw5bYvRsNdze3BbLO_JKPx1GBy95hAD2xs9bkuEU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.057524"], ["user_id", "37500eac-bfc2-11e4-ba52-705681abff85"], ["created_at", "2015-03-01 03:22:40.058531"], ["updated_at", "2015-03-01 03:22:40.058531"], ["token", "eI_MnGye6kp3QRsJy4iuzHayPjkeH3qke9DptihuFQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:40.066264"], ["updated_at", "2015-03-01 03:22:40.066264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '374f2b68-bfc2-11e4-a44f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3752a7b6-bfc2-11e4-b183-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "374f2b68-bfc2-11e4-a44f-705681abff85"], ["organization_id", "3752a7b6-bfc2-11e4-b183-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:40.072412"], ["updated_at", "2015-03-01 03:22:40.072412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37500eac-bfc2-11e4-ba52-705681abff85' AND "clubhouse_memberships"."organization_id" = '3752a7b6-bfc2-11e4-b183-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37500eac-bfc2-11e4-ba52-705681abff85"], ["organization_id", "3752a7b6-bfc2-11e4-b183-705681abff85"], ["created_at", "2015-03-01 03:22:40.085463"], ["updated_at", "2015-03-01 03:22:40.085463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '3752a7b6-bfc2-11e4-b183-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "3752a7b6-bfc2-11e4-b183-705681abff85"], ["created_at", "2015-03-01 03:22:40.089619"], ["updated_at", "2015-03-01 03:22:40.089619"], ["token", "quPJrbNp3SDmC19j6MWLzNSnVSwH6wltB25IVXMOrQs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:22:40.099862' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1kMSw5bYvRsNdze3BbLO_JKPx1GBy95hAD2xs9bkuEU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:22:40.101551"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:22:40.111304"], ["id", "3750bbb8-bfc2-11e4-99cd-705681abff85"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "374f2b68-bfc2-11e4-a44f-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "374f2b68-bfc2-11e4-a44f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '374f2b68-bfc2-11e4-a44f-705681abff85' LIMIT 1 [["organization_id", "3752a7b6-bfc2-11e4-b183-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3752a7b6-bfc2-11e4-b183-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '3752a7b6-bfc2-11e4-b183-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 86ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$fGMT8JlrJuDLsOqOI2U9YeW0c1hZYkMrGQWHyiLI7sn5taNukYKH2"], ["created_at", "2015-03-01 03:22:40.191360"], ["updated_at", "2015-03-01 03:22:40.191360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$iD3EeZ1SaqdOssTk3BaGIuwiB9HZITvWXYUQ3BmacYwLCgIhkxf1e"], ["created_at", "2015-03-01 03:22:40.196465"], ["updated_at", "2015-03-01 03:22:40.196465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.198679"], ["user_id", "3765910a-bfc2-11e4-b0a0-705681abff85"], ["created_at", "2015-03-01 03:22:40.199548"], ["updated_at", "2015-03-01 03:22:40.199548"], ["token", "aocsoF4f1QIzHZAzSTt3F3uI8soaZakgZUIu8GZpNuE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.201654"], ["user_id", "3766681e-bfc2-11e4-b0a0-705681abff85"], ["created_at", "2015-03-01 03:22:40.202522"], ["updated_at", "2015-03-01 03:22:40.202522"], ["token", "3rE7lfdr4TxZQRYJECf_ngEXSuC48DZauORgC7Eb-UA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:40.205886"], ["updated_at", "2015-03-01 03:22:40.205886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3765910a-bfc2-11e4-b0a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '3767c43e-bfc2-11e4-ad3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3765910a-bfc2-11e4-b0a0-705681abff85"], ["organization_id", "3767c43e-bfc2-11e4-ad3d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:40.209514"], ["updated_at", "2015-03-01 03:22:40.209514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3766681e-bfc2-11e4-b0a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '3767c43e-bfc2-11e4-ad3d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3766681e-bfc2-11e4-b0a0-705681abff85"], ["organization_id", "3767c43e-bfc2-11e4-ad3d-705681abff85"], ["created_at", "2015-03-01 03:22:40.212696"], ["updated_at", "2015-03-01 03:22:40.212696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '3767c43e-bfc2-11e4-ad3d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "3767c43e-bfc2-11e4-ad3d-705681abff85"], ["created_at", "2015-03-01 03:22:40.216495"], ["updated_at", "2015-03-01 03:22:40.216495"], ["token", "MsCWzy3hI-M1TsKJjQaIdPdvLVauiAAgKdcQ09EqwYM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:22:40.222282' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aocsoF4f1QIzHZAzSTt3F3uI8soaZakgZUIu8GZpNuE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:22:40.223843"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:22:40.224871"], ["id", "3766db46-bfc2-11e4-9f22-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3765910a-bfc2-11e4-b0a0-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3765910a-bfc2-11e4-b0a0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3765910a-bfc2-11e4-b0a0-705681abff85' LIMIT 1 [["organization_id", "3767c43e-bfc2-11e4-ad3d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3767c43e-bfc2-11e4-ad3d-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3767c43e-bfc2-11e4-ad3d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "3767c43e-bfc2-11e4-ad3d-705681abff85"], ["created_at", "2015-03-01 03:22:40.233917"], ["updated_at", "2015-03-01 03:22:40.233917"], ["token", "Q53b6s7Fo1YSupfle93Zw76wdtbUYx0Y_SNWM8rvvj8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b09d0882-d337-4359-81cb-143bb9209792) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/376c1746-bfc2-11e4-b66c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "376c1746-bfc2-11e4-b66c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b09d0882-d337-4359-81cb-143bb9209792] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/376c1746-bfc2-11e4-b66c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [b09d0882-d337-4359-81cb-143bb9209792] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3767c43e-bfc2-11e4-ad3d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b09d0882-d337-4359-81cb-143bb9209792] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [b09d0882-d337-4359-81cb-143bb9209792] Clubhouse::Mailer#invitation: processed outbound mail in 321.6ms [ActiveJob] [ActionMailer::DeliveryJob] [b09d0882-d337-4359-81cb-143bb9209792] Sent mail to email@example.com (15.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [b09d0882-d337-4359-81cb-143bb9209792] Date: Sat, 28 Feb 2015 19:22:40 -0800 From: from@example.com To: email@example.com Message-ID: <54f286009093f_12df13fd355c65be898469@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Q53b6s7Fo1YSupfle93Zw76wdtbUYx0Y_SNWM8rvvj8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b09d0882-d337-4359-81cb-143bb9209792] Performed ActionMailer::DeliveryJob from Inline(mailers) in 337.43ms Completed 201 Created in 382ms (Views: 0.6ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$HK.Sy9DxdAlKcvPnutML5el6e5JvutzZbopd3G4HOroRztg7xYA4C"], ["created_at", "2015-03-01 03:22:40.611853"], ["updated_at", "2015-03-01 03:22:40.611853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$mzigc9PQJIs4K9jfftl0Pu//VeZXHoUTY0okP9Z76WAZWOw9PNkAi"], ["created_at", "2015-03-01 03:22:40.616932"], ["updated_at", "2015-03-01 03:22:40.616932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.618522"], ["user_id", "37a5c69e-bfc2-11e4-ab9c-705681abff85"], ["created_at", "2015-03-01 03:22:40.619587"], ["updated_at", "2015-03-01 03:22:40.619587"], ["token", "QNWuJA1ZI2LHCxRyBRww5yseyDQ6BuMQUQn97DMWyXE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.621374"], ["user_id", "37a67d14-bfc2-11e4-ba47-705681abff85"], ["created_at", "2015-03-01 03:22:40.622150"], ["updated_at", "2015-03-01 03:22:40.622150"], ["token", "0RgZZqOSJpj1De3A1SWv0PyX83R-h57scDvP-SZx3l0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:40.625605"], ["updated_at", "2015-03-01 03:22:40.625605"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37a5c69e-bfc2-11e4-ab9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '37a7cdd6-bfc2-11e4-aada-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37a5c69e-bfc2-11e4-ab9c-705681abff85"], ["organization_id", "37a7cdd6-bfc2-11e4-aada-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:40.629106"], ["updated_at", "2015-03-01 03:22:40.629106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37a67d14-bfc2-11e4-ba47-705681abff85' AND "clubhouse_memberships"."organization_id" = '37a7cdd6-bfc2-11e4-aada-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37a67d14-bfc2-11e4-ba47-705681abff85"], ["organization_id", "37a7cdd6-bfc2-11e4-aada-705681abff85"], ["created_at", "2015-03-01 03:22:40.632418"], ["updated_at", "2015-03-01 03:22:40.632418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '37a7cdd6-bfc2-11e4-aada-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "37a7cdd6-bfc2-11e4-aada-705681abff85"], ["created_at", "2015-03-01 03:22:40.635782"], ["updated_at", "2015-03-01 03:22:40.635782"], ["token", "XhhHPAvqMAJArdp7n5joK8x0dsRnJ93Mfr8q6Wmcw4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:22:40.641651' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QNWuJA1ZI2LHCxRyBRww5yseyDQ6BuMQUQn97DMWyXE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:22:40.643422"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:22:40.644780"], ["id", "37a6eef2-bfc2-11e4-b3f0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37a5c69e-bfc2-11e4-ab9c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37a5c69e-bfc2-11e4-ab9c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37a5c69e-bfc2-11e4-ab9c-705681abff85' LIMIT 1 [["organization_id", "37a7cdd6-bfc2-11e4-aada-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37a7cdd6-bfc2-11e4-aada-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '37a7cdd6-bfc2-11e4-aada-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "37a7cdd6-bfc2-11e4-aada-705681abff85"], ["created_at", "2015-03-01 03:22:40.655057"], ["updated_at", "2015-03-01 03:22:40.655057"], ["token", "PKnor1aUax0OmQU67TjUeaiuEu_-WiZdTf7VEsCDkKU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f5813a4c-343f-45f9-b444-d809bfdd6454) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/37ac5478-bfc2-11e4-9c37-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "37ac5478-bfc2-11e4-9c37-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [f5813a4c-343f-45f9-b444-d809bfdd6454] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/37ac5478-bfc2-11e4-9c37-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [f5813a4c-343f-45f9-b444-d809bfdd6454] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37a7cdd6-bfc2-11e4-aada-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [f5813a4c-343f-45f9-b444-d809bfdd6454] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [f5813a4c-343f-45f9-b444-d809bfdd6454] Clubhouse::Mailer#invitation: processed outbound mail in 4.0ms [ActiveJob] [ActionMailer::DeliveryJob] [f5813a4c-343f-45f9-b444-d809bfdd6454] Sent mail to email@example.com (2.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [f5813a4c-343f-45f9-b444-d809bfdd6454] Date: Sat, 28 Feb 2015 19:22:40 -0800 From: from@example.com To: email@example.com Message-ID: <54f28600a25c7_12df13fd355c65be8985ec@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/PKnor1aUax0OmQU67TjUeaiuEu_-WiZdTf7VEsCDkKU If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [f5813a4c-343f-45f9-b444-d809bfdd6454] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.67ms Completed 201 Created in 26ms (Views: 0.5ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$uD1jP62lC3LIuFMIob7Y7OOQjQ/ZLnHUCvL0n/lWETyhfhbjSjd7."], ["created_at", "2015-03-01 03:22:40.675806"], ["updated_at", "2015-03-01 03:22:40.675806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$4tXf88RBK2OvckJKEY2wJ.O9j7Vn2Qz9OEq3kb7Ot5BaA5JrwSrSa"], ["created_at", "2015-03-01 03:22:40.681308"], ["updated_at", "2015-03-01 03:22:40.681308"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.683813"], ["user_id", "37af7b4e-bfc2-11e4-b961-705681abff85"], ["created_at", "2015-03-01 03:22:40.684937"], ["updated_at", "2015-03-01 03:22:40.684937"], ["token", "nEMlmAgYfXDqLdceyIKCilipWb_cwPylS18-6J9zMBQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.687878"], ["user_id", "37b055f0-bfc2-11e4-9333-705681abff85"], ["created_at", "2015-03-01 03:22:40.689316"], ["updated_at", "2015-03-01 03:22:40.689316"], ["token", "FuJZTLUGn8wWfA_hYnYaDYdncgD__SqIFWyNnVjWteo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:40.693179"], ["updated_at", "2015-03-01 03:22:40.693179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37af7b4e-bfc2-11e4-b961-705681abff85' AND "clubhouse_memberships"."organization_id" = '37b21eda-bfc2-11e4-a334-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37af7b4e-bfc2-11e4-b961-705681abff85"], ["organization_id", "37b21eda-bfc2-11e4-a334-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:40.696801"], ["updated_at", "2015-03-01 03:22:40.696801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$DDZMbSDnou3chhpRzEHTCOQG8ocmGkxYYoBgHTmC6hxWZjqMjBrXC"], ["created_at", "2015-03-01 03:22:40.701752"], ["updated_at", "2015-03-01 03:22:40.701752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:40.708087"], ["updated_at", "2015-03-01 03:22:40.708087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37b3732a-bfc2-11e4-a0e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '37b46906-bfc2-11e4-bc07-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37b3732a-bfc2-11e4-a0e8-705681abff85"], ["organization_id", "37b46906-bfc2-11e4-bc07-705681abff85"], ["created_at", "2015-03-01 03:22:40.711373"], ["updated_at", "2015-03-01 03:22:40.711373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '37b21eda-bfc2-11e4-a334-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "37b21eda-bfc2-11e4-a334-705681abff85"], ["created_at", "2015-03-01 03:22:40.714607"], ["updated_at", "2015-03-01 03:22:40.714607"], ["token", "U-vCjBCLGgpfwuzfXzk31D7_mTsXY5mWnbYMW_Fx3hU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:40 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$MBsIdHaz8tuq2jV2n4WZU.ahJ0v0ZtSZObo/8jXD0sF9T9bdAzyde"], ["created_at", "2015-03-01 03:22:40.741557"], ["updated_at", "2015-03-01 03:22:40.741557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$qEoz93pScuZwfnxsGq18u.Wm9bjGNudO24.exZWUVqwaaFLadwC52"], ["created_at", "2015-03-01 03:22:40.745858"], ["updated_at", "2015-03-01 03:22:40.745858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.747352"], ["user_id", "37b98102-bfc2-11e4-9105-705681abff85"], ["created_at", "2015-03-01 03:22:40.748135"], ["updated_at", "2015-03-01 03:22:40.748135"], ["token", "yzA-tBm-z9kfeVDZsQc7SiazH5WRe9SVGnf729z1Mys"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:22:40.749756"], ["user_id", "37ba2670-bfc2-11e4-b2ed-705681abff85"], ["created_at", "2015-03-01 03:22:40.750542"], ["updated_at", "2015-03-01 03:22:40.750542"], ["token", "7I2XalH--d3H4OQzJDUGhB_z9GQAs30dnzPPEpzjG1o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:40.753887"], ["updated_at", "2015-03-01 03:22:40.753887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37b98102-bfc2-11e4-9105-705681abff85' AND "clubhouse_memberships"."organization_id" = '37bb6170-bfc2-11e4-a313-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37b98102-bfc2-11e4-9105-705681abff85"], ["organization_id", "37bb6170-bfc2-11e4-a313-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:22:40.757175"], ["updated_at", "2015-03-01 03:22:40.757175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Q6uJDWthGLUrZABSJY31puwiQdIZlya4yhBMKsnkREN6UGTqAGmqS"], ["created_at", "2015-03-01 03:22:40.761624"], ["updated_at", "2015-03-01 03:22:40.761624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:22:40.764811"], ["updated_at", "2015-03-01 03:22:40.764811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37bc8f6e-bfc2-11e4-a478-705681abff85' AND "clubhouse_memberships"."organization_id" = '37bd0f66-bfc2-11e4-b9aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37bc8f6e-bfc2-11e4-a478-705681abff85"], ["organization_id", "37bd0f66-bfc2-11e4-b9aa-705681abff85"], ["created_at", "2015-03-01 03:22:40.768121"], ["updated_at", "2015-03-01 03:22:40.768121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '37bb6170-bfc2-11e4-a313-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "37bb6170-bfc2-11e4-a313-705681abff85"], ["created_at", "2015-03-01 03:22:40.771408"], ["updated_at", "2015-03-01 03:22:40.771408"], ["token", "woCARR5kYwbsQ4mMYscDq8V0eXwdGN-jdlpCmdE8nnw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:22:40 -0800  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$UI3QSaUes/KpJusF5K1yxeHRbve0.34CA/82GbIOvJ.Zh2GIT6ZZy"], ["created_at", "2015-03-01 03:23:03.301530"], ["updated_at", "2015-03-01 03:23:03.301530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (9.2ms) SAVEPOINT active_record_1 User Exists (5.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (8.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$FkVhPEoHWbp0ErAj4QgTre0uzLO2pVbVvkm9qslER.F6SF2QZrQEa"], ["created_at", "2015-03-01 03:23:03.339581"], ["updated_at", "2015-03-01 03:23:03.339581"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.365085"], ["user_id", "452c18fe-bfc2-11e4-a65b-705681abff85"], ["created_at", "2015-03-01 03:23:03.373241"], ["updated_at", "2015-03-01 03:23:03.373241"], ["token", "7c7JCGDCiLme5d_Pauqf6Cd0tpnticSYC89R0lQHQWM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.376245"], ["user_id", "4532f098-bfc2-11e4-93c2-705681abff85"], ["created_at", "2015-03-01 03:23:03.381932"], ["updated_at", "2015-03-01 03:23:03.381932"], ["token", "STbP7fVGP0W53dOciDzDav-pRU-DJRFKK1XSYm0GZyQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:23:03.391198"], ["updated_at", "2015-03-01 03:23:03.391198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '452c18fe-bfc2-11e4-a65b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4539a0b4-bfc2-11e4-9d72-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "452c18fe-bfc2-11e4-a65b-705681abff85"], ["organization_id", "4539a0b4-bfc2-11e4-9d72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:23:03.444717"], ["updated_at", "2015-03-01 03:23:03.444717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$M2YohvaJjpRf9Aigj565mOIBb0W4d30p.xJ3oO2Z8fVbgXW8.jEeq"], ["created_at", "2015-03-01 03:23:03.450813"], ["updated_at", "2015-03-01 03:23:03.450813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:23:03.454752"], ["updated_at", "2015-03-01 03:23:03.454752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4542b5e6-bfc2-11e4-94c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '45434880-bfc2-11e4-9102-705681abff85') LIMIT 1 SQL (24.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4542b5e6-bfc2-11e4-94c2-705681abff85"], ["organization_id", "45434880-bfc2-11e4-9102-705681abff85"], ["created_at", "2015-03-01 03:23:03.466744"], ["updated_at", "2015-03-01 03:23:03.466744"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '4539a0b4-bfc2-11e4-9d72-705681abff85') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "4539a0b4-bfc2-11e4-9d72-705681abff85"], ["created_at", "2015-03-01 03:23:03.576422"], ["updated_at", "2015-03-01 03:23:03.576422"], ["token", "bzjnYs8F1-4KDGZGEYOoIGf8tPSgUPu0_jdUSmGXPs8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:23:03 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:23:03.625107' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7c7JCGDCiLme5d_Pauqf6Cd0tpnticSYC89R0lQHQWM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:23:03.633607"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:23:03.634892"], ["id", "4536f45e-bfc2-11e4-94cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "452c18fe-bfc2-11e4-a65b-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "452c18fe-bfc2-11e4-a65b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '452c18fe-bfc2-11e4-a65b-705681abff85' LIMIT 1 [["organization_id", "4539a0b4-bfc2-11e4-9d72-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "4539a0b4-bfc2-11e4-9d72-705681abff85"]] Completed 200 OK in 42ms (Views: 4.2ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$81qr50sjnUE5Rxnac7YL5OsUDSjr1RSDCCZZVxcFmqCF0dzDg6/G6"], ["created_at", "2015-03-01 03:23:03.677230"], ["updated_at", "2015-03-01 03:23:03.677230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$KrzHLC8HW1a.smKiGJe3WemUscsEBIgJ.oumHIRvJIySPGokBG6cS"], ["created_at", "2015-03-01 03:23:03.682357"], ["updated_at", "2015-03-01 03:23:03.682357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.684197"], ["user_id", "456537ce-bfc2-11e4-8c1d-705681abff85"], ["created_at", "2015-03-01 03:23:03.684995"], ["updated_at", "2015-03-01 03:23:03.684995"], ["token", "u7H-6X0zRS6HLanUKV0C0tltuPAftAMWGRJojlbKZ74"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.686892"], ["user_id", "45660488-bfc2-11e4-84fa-705681abff85"], ["created_at", "2015-03-01 03:23:03.687754"], ["updated_at", "2015-03-01 03:23:03.687754"], ["token", "tqdXs0-1V2FD0F4dAaDUNjmXH5SKqUh5BijNBuW2dyI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:23:03.691536"], ["updated_at", "2015-03-01 03:23:03.691536"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '456537ce-bfc2-11e4-8c1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '45676e0e-bfc2-11e4-9f41-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "456537ce-bfc2-11e4-8c1d-705681abff85"], ["organization_id", "45676e0e-bfc2-11e4-9f41-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:23:03.695770"], ["updated_at", "2015-03-01 03:23:03.695770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$/lkA9RWMg7Erab5kO6wj.OC78WQR7MG/n8z4dm1obNkS28I8v8c3m"], ["created_at", "2015-03-01 03:23:03.701341"], ["updated_at", "2015-03-01 03:23:03.701341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:23:03.705289"], ["updated_at", "2015-03-01 03:23:03.705289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4568e8ba-bfc2-11e4-94cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '456992ba-bfc2-11e4-adaa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4568e8ba-bfc2-11e4-94cb-705681abff85"], ["organization_id", "456992ba-bfc2-11e4-adaa-705681abff85"], ["created_at", "2015-03-01 03:23:03.710208"], ["updated_at", "2015-03-01 03:23:03.710208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '45676e0e-bfc2-11e4-9f41-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "45676e0e-bfc2-11e4-9f41-705681abff85"], ["created_at", "2015-03-01 03:23:03.714315"], ["updated_at", "2015-03-01 03:23:03.714315"], ["token", "C7w014h2vhWC74pdQE9uct5EzwlYlOqm47Krqwhprjo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:23:03 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$BxJ3FQ8HpRDiyO0EWBw09uJpSnT8Ni49833pvbLucvVXq4v7KGer6"], ["created_at", "2015-03-01 03:23:03.731701"], ["updated_at", "2015-03-01 03:23:03.731701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$tJDfzgvgEObX7XqNik3kt.iKbd6njpD0/6rHrPwo0VlW1UXmNvemG"], ["created_at", "2015-03-01 03:23:03.736563"], ["updated_at", "2015-03-01 03:23:03.736563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.738327"], ["user_id", "456d8ab4-bfc2-11e4-917a-705681abff85"], ["created_at", "2015-03-01 03:23:03.739215"], ["updated_at", "2015-03-01 03:23:03.739215"], ["token", "jvEQw-Truvxd6PTQLcNUwi7cXqs8dmmQjbovlBqfuWU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.741516"], ["user_id", "456e474c-bfc2-11e4-be38-705681abff85"], ["created_at", "2015-03-01 03:23:03.742380"], ["updated_at", "2015-03-01 03:23:03.742380"], ["token", "R563i7gD0EBVw0Y_FY75oauoRK313WxExXdesnBNMFY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:23:03.746210"], ["updated_at", "2015-03-01 03:23:03.746210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '456d8ab4-bfc2-11e4-917a-705681abff85' AND "clubhouse_memberships"."organization_id" = '456fc02c-bfc2-11e4-b71a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "456d8ab4-bfc2-11e4-917a-705681abff85"], ["organization_id", "456fc02c-bfc2-11e4-b71a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:23:03.750398"], ["updated_at", "2015-03-01 03:23:03.750398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '456e474c-bfc2-11e4-be38-705681abff85' AND "clubhouse_memberships"."organization_id" = '456fc02c-bfc2-11e4-b71a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "456e474c-bfc2-11e4-be38-705681abff85"], ["organization_id", "456fc02c-bfc2-11e4-b71a-705681abff85"], ["created_at", "2015-03-01 03:23:03.754750"], ["updated_at", "2015-03-01 03:23:03.754750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '456fc02c-bfc2-11e4-b71a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "456fc02c-bfc2-11e4-b71a-705681abff85"], ["created_at", "2015-03-01 03:23:03.758748"], ["updated_at", "2015-03-01 03:23:03.758748"], ["token", "JBoFqtpiV5c93YPX1cxmcvUE88icE7hOjuP3ucaC1cE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/4571adec-bfc2-11e4-81ad-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:23:03 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"4571adec-bfc2-11e4-81ad-705681abff85", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:23:03.765534' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jvEQw-Truvxd6PTQLcNUwi7cXqs8dmmQjbovlBqfuWU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:23:03.768379"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:23:03.769580"], ["id", "456ec10e-bfc2-11e4-a864-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "456d8ab4-bfc2-11e4-917a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "456d8ab4-bfc2-11e4-917a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '456d8ab4-bfc2-11e4-917a-705681abff85' LIMIT 1 [["organization_id", "456fc02c-bfc2-11e4-b71a-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "456fc02c-bfc2-11e4-b71a-705681abff85"], ["id", "4571adec-bfc2-11e4-81ad-705681abff85"]] Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$b6iyBx3.Gyklc54MRNOrbO0zhoxB.DE19q3TbbpFBRbXyaPYUCiVS"], ["created_at", "2015-03-01 03:23:03.786498"], ["updated_at", "2015-03-01 03:23:03.786498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$7mvvzBs8v2Gz3d64WO/6l.1vrSO.HkJLAZ2ezDOYGU8FLOOCwrjP."], ["created_at", "2015-03-01 03:23:03.791570"], ["updated_at", "2015-03-01 03:23:03.791570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.794279"], ["user_id", "4575e89e-bfc2-11e4-986f-705681abff85"], ["created_at", "2015-03-01 03:23:03.795346"], ["updated_at", "2015-03-01 03:23:03.795346"], ["token", "k_LtCFhhm7IXiahNT0kguh9DJ7T_mAulKV47lKFea_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.797813"], ["user_id", "4576b972-bfc2-11e4-9800-705681abff85"], ["created_at", "2015-03-01 03:23:03.798919"], ["updated_at", "2015-03-01 03:23:03.798919"], ["token", "6PbKjJsSBsOJiVd5W-OpcRcoEhcuyr9nlBVXxcH5WaA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:23:03.803253"], ["updated_at", "2015-03-01 03:23:03.803253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4575e89e-bfc2-11e4-986f-705681abff85' AND "clubhouse_memberships"."organization_id" = '457873ca-bfc2-11e4-b618-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4575e89e-bfc2-11e4-986f-705681abff85"], ["organization_id", "457873ca-bfc2-11e4-b618-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:23:03.807199"], ["updated_at", "2015-03-01 03:23:03.807199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4576b972-bfc2-11e4-9800-705681abff85' AND "clubhouse_memberships"."organization_id" = '457873ca-bfc2-11e4-b618-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4576b972-bfc2-11e4-9800-705681abff85"], ["organization_id", "457873ca-bfc2-11e4-b618-705681abff85"], ["created_at", "2015-03-01 03:23:03.811039"], ["updated_at", "2015-03-01 03:23:03.811039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '457873ca-bfc2-11e4-b618-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "457873ca-bfc2-11e4-b618-705681abff85"], ["created_at", "2015-03-01 03:23:03.815190"], ["updated_at", "2015-03-01 03:23:03.815190"], ["token", "SUfKA0FDENdcL-Hh4rPnqyM6lbGVzWW7how4jdBOW0Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:23:03 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$jxixMdHGCkrxiDEb//goMuhp8sAAgQSNbebAUi712lVluNJ.9PLwe"], ["created_at", "2015-03-01 03:23:03.831210"], ["updated_at", "2015-03-01 03:23:03.831210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Ava681ICwc3GTJ9fCzrytO6xvcDdd0115Glf19Pfm7rmQWtaOL542"], ["created_at", "2015-03-01 03:23:03.837254"], ["updated_at", "2015-03-01 03:23:03.837254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.839225"], ["user_id", "457cbc64-bfc2-11e4-b32f-705681abff85"], ["created_at", "2015-03-01 03:23:03.840207"], ["updated_at", "2015-03-01 03:23:03.840207"], ["token", "O8ybAJuE9ekQVWrNcKtFnwCxoZZyOa_UPjeUugty7JA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.842322"], ["user_id", "457da430-bfc2-11e4-aa2d-705681abff85"], ["created_at", "2015-03-01 03:23:03.843152"], ["updated_at", "2015-03-01 03:23:03.843152"], ["token", "X7wpFkruW7KGOY_xceFVAsmnhRJsIDKhzF-aUgtP57I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:23:03.847029"], ["updated_at", "2015-03-01 03:23:03.847029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '457cbc64-bfc2-11e4-b32f-705681abff85' AND "clubhouse_memberships"."organization_id" = '457f229c-bfc2-11e4-8cf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "457cbc64-bfc2-11e4-b32f-705681abff85"], ["organization_id", "457f229c-bfc2-11e4-8cf6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:23:03.850974"], ["updated_at", "2015-03-01 03:23:03.850974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '457da430-bfc2-11e4-aa2d-705681abff85' AND "clubhouse_memberships"."organization_id" = '457f229c-bfc2-11e4-8cf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "457da430-bfc2-11e4-aa2d-705681abff85"], ["organization_id", "457f229c-bfc2-11e4-8cf6-705681abff85"], ["created_at", "2015-03-01 03:23:03.855505"], ["updated_at", "2015-03-01 03:23:03.855505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '457f229c-bfc2-11e4-8cf6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "457f229c-bfc2-11e4-8cf6-705681abff85"], ["created_at", "2015-03-01 03:23:03.860992"], ["updated_at", "2015-03-01 03:23:03.860992"], ["token", "hGMrMU6KuRTAH7GugU9YoVdTZeR4CnXVHG7vX1ize3g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:23:03 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$KUDMlJ9gTI4bPeHSqrk5cOAGrEPdyCyVZmJwEONyczCHJfujDS/4K"], ["created_at", "2015-03-01 03:23:03.878984"], ["updated_at", "2015-03-01 03:23:03.878984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$tm86lEZmrhsOWBBhqL/c/.lX25rvwt2Yqc56rr9km2aiHSRW6oxIq"], ["created_at", "2015-03-01 03:23:03.885720"], ["updated_at", "2015-03-01 03:23:03.885720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.887620"], ["user_id", "458407b2-bfc2-11e4-8fab-705681abff85"], ["created_at", "2015-03-01 03:23:03.888426"], ["updated_at", "2015-03-01 03:23:03.888426"], ["token", "N6hjVJukI7YEwF0FYGP9n7RVSVfRn73D4FHYxVFA1CU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.890962"], ["user_id", "45850cd4-bfc2-11e4-ab12-705681abff85"], ["created_at", "2015-03-01 03:23:03.891826"], ["updated_at", "2015-03-01 03:23:03.891826"], ["token", "uMiWZ1Ztr3DpD-txTvAoDhHdDF1LoOtgz4cxEw40iwU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:23:03.895725"], ["updated_at", "2015-03-01 03:23:03.895725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '458407b2-bfc2-11e4-8fab-705681abff85' AND "clubhouse_memberships"."organization_id" = '45868e06-bfc2-11e4-942e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "458407b2-bfc2-11e4-8fab-705681abff85"], ["organization_id", "45868e06-bfc2-11e4-942e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:23:03.900060"], ["updated_at", "2015-03-01 03:23:03.900060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45850cd4-bfc2-11e4-ab12-705681abff85' AND "clubhouse_memberships"."organization_id" = '45868e06-bfc2-11e4-942e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "45850cd4-bfc2-11e4-ab12-705681abff85"], ["organization_id", "45868e06-bfc2-11e4-942e-705681abff85"], ["created_at", "2015-03-01 03:23:03.904140"], ["updated_at", "2015-03-01 03:23:03.904140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '45868e06-bfc2-11e4-942e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "45868e06-bfc2-11e4-942e-705681abff85"], ["created_at", "2015-03-01 03:23:03.907902"], ["updated_at", "2015-03-01 03:23:03.907902"], ["token", "7olq2IvUK7SaYaO-ItN0W_GZr9xI8vvcNalAKf0chlQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:23:03 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:23:03.918211' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N6hjVJukI7YEwF0FYGP9n7RVSVfRn73D4FHYxVFA1CU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:23:03.920190"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:23:03.921428"], ["id", "45858614-bfc2-11e4-aea3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "458407b2-bfc2-11e4-8fab-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "458407b2-bfc2-11e4-8fab-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '458407b2-bfc2-11e4-8fab-705681abff85' LIMIT 1 [["organization_id", "45868e06-bfc2-11e4-942e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "45868e06-bfc2-11e4-942e-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '45868e06-bfc2-11e4-942e-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 33ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$dvIW2Otym6Oh1ytalX.xBepfQ2LAk/FpweKqASr5J1MIrv6dI5/zC"], ["created_at", "2015-03-01 03:23:03.957160"], ["updated_at", "2015-03-01 03:23:03.957160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (8.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Jd.PR4ltuXHm97mjKr5MeOAUREx7Nb88IE2rqtB9NTx9H1HqHByBS"], ["created_at", "2015-03-01 03:23:03.963336"], ["updated_at", "2015-03-01 03:23:03.963336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.973684"], ["user_id", "4590176e-bfc2-11e4-9784-705681abff85"], ["created_at", "2015-03-01 03:23:03.981389"], ["updated_at", "2015-03-01 03:23:03.981389"], ["token", "DW08Z85JsfyImwdP9dypB1WT3PESWV3MC1OZia2NZbM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:03.983312"], ["user_id", "4590e0f4-bfc2-11e4-80ba-705681abff85"], ["created_at", "2015-03-01 03:23:03.984135"], ["updated_at", "2015-03-01 03:23:03.984135"], ["token", "KeiJkPANx3KqX347V-uTR03bYvuOWCdq99RiObH9EQg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:23:03.987806"], ["updated_at", "2015-03-01 03:23:03.987806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4590176e-bfc2-11e4-9784-705681abff85' AND "clubhouse_memberships"."organization_id" = '45949fd2-bfc2-11e4-b872-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4590176e-bfc2-11e4-9784-705681abff85"], ["organization_id", "45949fd2-bfc2-11e4-b872-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:23:03.991456"], ["updated_at", "2015-03-01 03:23:03.991456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4590e0f4-bfc2-11e4-80ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '45949fd2-bfc2-11e4-b872-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4590e0f4-bfc2-11e4-80ba-705681abff85"], ["organization_id", "45949fd2-bfc2-11e4-b872-705681abff85"], ["created_at", "2015-03-01 03:23:03.994457"], ["updated_at", "2015-03-01 03:23:03.994457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '45949fd2-bfc2-11e4-b872-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "45949fd2-bfc2-11e4-b872-705681abff85"], ["created_at", "2015-03-01 03:23:03.998234"], ["updated_at", "2015-03-01 03:23:03.998234"], ["token", "KIHEijPU4yA23FAG4Y6zGs5eM6sas1Q-Z31fKs5K39M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:23:04 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:23:04.003922' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DW08Z85JsfyImwdP9dypB1WT3PESWV3MC1OZia2NZbM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:23:04.005350"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:23:04.006338"], ["id", "4593aaa0-bfc2-11e4-8d90-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4590176e-bfc2-11e4-9784-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4590176e-bfc2-11e4-9784-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4590176e-bfc2-11e4-9784-705681abff85' LIMIT 1 [["organization_id", "45949fd2-bfc2-11e4-b872-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "45949fd2-bfc2-11e4-b872-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '45949fd2-bfc2-11e4-b872-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "45949fd2-bfc2-11e4-b872-705681abff85"], ["created_at", "2015-03-01 03:23:04.015095"], ["updated_at", "2015-03-01 03:23:04.015095"], ["token", "bbCX6hZ7CaTZtYUHEhei-3t8fpdc4Jg8HDUuJzHRIRY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 26937f06-9f0f-4fcb-862a-3741b2f464f6) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4598d020-bfc2-11e4-9e0c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4598d020-bfc2-11e4-9e0c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [26937f06-9f0f-4fcb-862a-3741b2f464f6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4598d020-bfc2-11e4-9e0c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [26937f06-9f0f-4fcb-862a-3741b2f464f6] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "45949fd2-bfc2-11e4-b872-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [26937f06-9f0f-4fcb-862a-3741b2f464f6] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [26937f06-9f0f-4fcb-862a-3741b2f464f6] Clubhouse::Mailer#invitation: processed outbound mail in 205.4ms [ActiveJob] [ActionMailer::DeliveryJob] [26937f06-9f0f-4fcb-862a-3741b2f464f6] Sent mail to email@example.com (16.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [26937f06-9f0f-4fcb-862a-3741b2f464f6] Date: Sat, 28 Feb 2015 19:23:04 -0800 From: from@example.com To: email@example.com Message-ID: <54f286183e6ad_12df63fe6cd465bec49622@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/bbCX6hZ7CaTZtYUHEhei-3t8fpdc4Jg8HDUuJzHRIRY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [26937f06-9f0f-4fcb-862a-3741b2f464f6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 222.24ms Completed 201 Created in 265ms (Views: 0.6ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$Cf7XXynvy.jdA2RBOC4vT.6xlttHyhnwzdfH7u0r3VvCqsYG3ZSjS"], ["created_at", "2015-03-01 03:23:04.275860"], ["updated_at", "2015-03-01 03:23:04.275860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$F6bUfvbENZUDKVQAHyhOVu0Wj.BJvaYfy8Br0rrwmsz9c75NUgfD2"], ["created_at", "2015-03-01 03:23:04.280824"], ["updated_at", "2015-03-01 03:23:04.280824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:04.282540"], ["user_id", "45c09416-bfc2-11e4-9745-705681abff85"], ["created_at", "2015-03-01 03:23:04.283364"], ["updated_at", "2015-03-01 03:23:04.283364"], ["token", "mmKQpk6_uw7klI_y8awhFus7lzMHXpGOap6lUeKjwYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:23:04.285161"], ["user_id", "45c152f2-bfc2-11e4-990d-705681abff85"], ["created_at", "2015-03-01 03:23:04.286067"], ["updated_at", "2015-03-01 03:23:04.286067"], ["token", "dnCICfCr7cyNPheiYkaIJP4xkdujKJ7puyjmX9jeWqA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:23:04.289384"], ["updated_at", "2015-03-01 03:23:04.289384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45c09416-bfc2-11e4-9745-705681abff85' AND "clubhouse_memberships"."organization_id" = '45c29c02-bfc2-11e4-af29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45c09416-bfc2-11e4-9745-705681abff85"], ["organization_id", "45c29c02-bfc2-11e4-af29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:23:04.293029"], ["updated_at", "2015-03-01 03:23:04.293029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45c152f2-bfc2-11e4-990d-705681abff85' AND "clubhouse_memberships"."organization_id" = '45c29c02-bfc2-11e4-af29-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "45c152f2-bfc2-11e4-990d-705681abff85"], ["organization_id", "45c29c02-bfc2-11e4-af29-705681abff85"], ["created_at", "2015-03-01 03:23:04.296428"], ["updated_at", "2015-03-01 03:23:04.296428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '45c29c02-bfc2-11e4-af29-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "45c29c02-bfc2-11e4-af29-705681abff85"], ["created_at", "2015-03-01 03:23:04.301399"], ["updated_at", "2015-03-01 03:23:04.301399"], ["token", "bpHsoaLCYc4KcpHh8LogIBc11C_gHaT2sHRLfdAYuoA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:23:04 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:23:04.327370' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mmKQpk6_uw7klI_y8awhFus7lzMHXpGOap6lUeKjwYc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:23:04.330161"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:23:04.332011"], ["id", "45c1bbc0-bfc2-11e4-a79f-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45c09416-bfc2-11e4-9745-705681abff85"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "45c09416-bfc2-11e4-9745-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '45c09416-bfc2-11e4-9745-705681abff85' LIMIT 1 [["organization_id", "45c29c02-bfc2-11e4-af29-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (1.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "45c29c02-bfc2-11e4-af29-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '45c29c02-bfc2-11e4-af29-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "45c29c02-bfc2-11e4-af29-705681abff85"], ["created_at", "2015-03-01 03:23:04.350105"], ["updated_at", "2015-03-01 03:23:04.350105"], ["token", "MnvYnviIWCVOQLqrObIZDROJoJwJOSuca8kqWmn9ZIw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 974adf7b-52d1-4878-a2b9-044cd5a0b945) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/45cc0c4c-bfc2-11e4-aa5e-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "45cc0c4c-bfc2-11e4-aa5e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [974adf7b-52d1-4878-a2b9-044cd5a0b945] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/45cc0c4c-bfc2-11e4-aa5e-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [974adf7b-52d1-4878-a2b9-044cd5a0b945] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "45c29c02-bfc2-11e4-af29-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [974adf7b-52d1-4878-a2b9-044cd5a0b945] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [974adf7b-52d1-4878-a2b9-044cd5a0b945] Clubhouse::Mailer#invitation: processed outbound mail in 3.9ms [ActiveJob] [ActionMailer::DeliveryJob] [974adf7b-52d1-4878-a2b9-044cd5a0b945] Sent mail to email@example.com (4.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [974adf7b-52d1-4878-a2b9-044cd5a0b945] Date: Sat, 28 Feb 2015 19:23:04 -0800 From: from@example.com To: email@example.com Message-ID: <54f2861858be4_12df63fe6cd465bec4976b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/MnvYnviIWCVOQLqrObIZDROJoJwJOSuca8kqWmn9ZIw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [974adf7b-52d1-4878-a2b9-044cd5a0b945] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.96ms Completed 201 Created in 41ms (Views: 0.8ms | ActiveRecord: 5.7ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (10.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$z9.gjaMOadnDTCOh7Gkewe/DWYRoo3JCebyhudPo4HtFN9LMMAAKW"], ["created_at", "2015-03-01 03:28:29.596358"], ["updated_at", "2015-03-01 03:28:29.596358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$RA9beuQmATFARbmuQtkd/.HKmHve7/jNKf4yb91VT49gELGrz2Cgu"], ["created_at", "2015-03-01 03:28:29.612364"], ["updated_at", "2015-03-01 03:28:29.612364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:29.621595"], ["user_id", "07a8bb30-bfc3-11e4-a81e-705681abff85"], ["created_at", "2015-03-01 03:28:29.628678"], ["updated_at", "2015-03-01 03:28:29.628678"], ["token", "yWN8o6jWdWHcIi4g2eLsbC1LZTHjPcyCi1TKURzGP3o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:29.631173"], ["user_id", "07aafb3e-bfc3-11e4-861d-705681abff85"], ["created_at", "2015-03-01 03:28:29.631932"], ["updated_at", "2015-03-01 03:28:29.631932"], ["token", "e6HpoqYUIz-gX-KRIvAtzhgs0ifrj7DDfyzW1RlAzTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:29.648739"], ["updated_at", "2015-03-01 03:28:29.648739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07a8bb30-bfc3-11e4-a81e-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b09e86-bfc3-11e4-9489-705681abff85') LIMIT 1 SQL (8.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07a8bb30-bfc3-11e4-a81e-705681abff85"], ["organization_id", "07b09e86-bfc3-11e4-9489-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:29.693889"], ["updated_at", "2015-03-01 03:28:29.693889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07aafb3e-bfc3-11e4-861d-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b09e86-bfc3-11e4-9489-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07aafb3e-bfc3-11e4-861d-705681abff85"], ["organization_id", "07b09e86-bfc3-11e4-9489-705681abff85"], ["created_at", "2015-03-01 03:28:29.706603"], ["updated_at", "2015-03-01 03:28:29.706603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '07b09e86-bfc3-11e4-9489-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "07b09e86-bfc3-11e4-9489-705681abff85"], ["created_at", "2015-03-01 03:28:29.719179"], ["updated_at", "2015-03-01 03:28:29.719179"], ["token", "OWGw_kfHrWX4BmMdUm8VXstprcuc3DQwmZh_Ej49ZiE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:29 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$ifuxoZmIBmWDe/Vko7Geju2our179Xr.kGEpNBTN4Z6/DAaUs0pCG"], ["created_at", "2015-03-01 03:28:29.762833"], ["updated_at", "2015-03-01 03:28:29.762833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Lo.k6KHZ5VC5AyiWgbmoZOvmfofebpIPJPhf1/nUNJ6L.z8Tww3uq"], ["created_at", "2015-03-01 03:28:29.768315"], ["updated_at", "2015-03-01 03:28:29.768315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:29.770544"], ["user_id", "07c1f4ce-bfc3-11e4-80e5-705681abff85"], ["created_at", "2015-03-01 03:28:29.771413"], ["updated_at", "2015-03-01 03:28:29.771413"], ["token", "p6phK8wZ7UEaGk_3Iq8MEmZf8Jt1lpDhRsiL_8nfYm0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:29.774065"], ["user_id", "07c2ce44-bfc3-11e4-961b-705681abff85"], ["created_at", "2015-03-01 03:28:29.775098"], ["updated_at", "2015-03-01 03:28:29.775098"], ["token", "9fEtk8zkBaXTYcEEA_w8SncZ5-7h1TEr3TxI44juHC0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:29.779975"], ["updated_at", "2015-03-01 03:28:29.779975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07c1f4ce-bfc3-11e4-80e5-705681abff85' AND "clubhouse_memberships"."organization_id" = '07c4a0e8-bfc3-11e4-bd48-705681abff85') LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07c1f4ce-bfc3-11e4-80e5-705681abff85"], ["organization_id", "07c4a0e8-bfc3-11e4-bd48-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:29.786029"], ["updated_at", "2015-03-01 03:28:29.786029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07c2ce44-bfc3-11e4-961b-705681abff85' AND "clubhouse_memberships"."organization_id" = '07c4a0e8-bfc3-11e4-bd48-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07c2ce44-bfc3-11e4-961b-705681abff85"], ["organization_id", "07c4a0e8-bfc3-11e4-bd48-705681abff85"], ["created_at", "2015-03-01 03:28:29.797929"], ["updated_at", "2015-03-01 03:28:29.797929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '07c4a0e8-bfc3-11e4-bd48-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "07c4a0e8-bfc3-11e4-bd48-705681abff85"], ["created_at", "2015-03-01 03:28:29.804437"], ["updated_at", "2015-03-01 03:28:29.804437"], ["token", "v9ENlE6c7DTELuiUWa15mchvLPA-dOKXDJ_9u7o9ZCk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:29 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:28:29.812707' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p6phK8wZ7UEaGk_3Iq8MEmZf8Jt1lpDhRsiL_8nfYm0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:28:29.820928"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:28:29.822368"], ["id", "07c34a04-bfc3-11e4-acbc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07c1f4ce-bfc3-11e4-80e5-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07c1f4ce-bfc3-11e4-80e5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07c1f4ce-bfc3-11e4-80e5-705681abff85' LIMIT 1 [["organization_id", "07c4a0e8-bfc3-11e4-bd48-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "07c4a0e8-bfc3-11e4-bd48-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '07c4a0e8-bfc3-11e4-bd48-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "07c4a0e8-bfc3-11e4-bd48-705681abff85"], ["created_at", "2015-03-01 03:28:29.860012"], ["updated_at", "2015-03-01 03:28:29.860012"], ["token", "WOhui8omQaSJ-fptqeGl-Fq_GbhC4ijcO8rKwBZy5sE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9265245d-8f57-4d58-88fd-8e0cd31c12fd) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/07d0e9fc-bfc3-11e4-943a-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "07d0e9fc-bfc3-11e4-943a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9265245d-8f57-4d58-88fd-8e0cd31c12fd] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/07d0e9fc-bfc3-11e4-943a-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9265245d-8f57-4d58-88fd-8e0cd31c12fd] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "07c4a0e8-bfc3-11e4-bd48-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9265245d-8f57-4d58-88fd-8e0cd31c12fd] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [9265245d-8f57-4d58-88fd-8e0cd31c12fd] Clubhouse::Mailer#invitation: processed outbound mail in 232.7ms [ActiveJob] [ActionMailer::DeliveryJob] [9265245d-8f57-4d58-88fd-8e0cd31c12fd] Sent mail to email@example.com (18.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [9265245d-8f57-4d58-88fd-8e0cd31c12fd] Date: Sat, 28 Feb 2015 19:28:30 -0800 From: from@example.com To: email@example.com Message-ID: <54f2875e1ff00_12e213fc4d8465be0123b1@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/WOhui8omQaSJ-fptqeGl-Fq_GbhC4ijcO8rKwBZy5sE If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9265245d-8f57-4d58-88fd-8e0cd31c12fd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 251.31ms Completed 201 Created in 333ms (Views: 1.8ms | ActiveRecord: 4.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$sNEtXMdCLT4Cta3F2yu.I.w4jPjR9tz8UQAUUV6n8se6zBHYeALPG"], ["created_at", "2015-03-01 03:28:30.153634"], ["updated_at", "2015-03-01 03:28:30.153634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$q280LrAXoJ.BItMYkEIXE.IO9A0C1v/i.gSa2XUWpqZhSt989Zoa."], ["created_at", "2015-03-01 03:28:30.158026"], ["updated_at", "2015-03-01 03:28:30.158026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.159584"], ["user_id", "07fd901a-bfc3-11e4-aa1a-705681abff85"], ["created_at", "2015-03-01 03:28:30.160435"], ["updated_at", "2015-03-01 03:28:30.160435"], ["token", "OUT80O1wUrirhNHgSt53XNdgqgRK2OVc3dKOOIqPXAM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.162263"], ["user_id", "07fe39ac-bfc3-11e4-9b14-705681abff85"], ["created_at", "2015-03-01 03:28:30.162993"], ["updated_at", "2015-03-01 03:28:30.162993"], ["token", "eP3-f4k1EaIBBF_J25ilEA7w1ze_C5TdafO1MLSzBC4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.166438"], ["updated_at", "2015-03-01 03:28:30.166438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07fd901a-bfc3-11e4-aa1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '07ff8078-bfc3-11e4-b4d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07fd901a-bfc3-11e4-aa1a-705681abff85"], ["organization_id", "07ff8078-bfc3-11e4-b4d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:30.169656"], ["updated_at", "2015-03-01 03:28:30.169656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07fe39ac-bfc3-11e4-9b14-705681abff85' AND "clubhouse_memberships"."organization_id" = '07ff8078-bfc3-11e4-b4d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07fe39ac-bfc3-11e4-9b14-705681abff85"], ["organization_id", "07ff8078-bfc3-11e4-b4d9-705681abff85"], ["created_at", "2015-03-01 03:28:30.172909"], ["updated_at", "2015-03-01 03:28:30.172909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '07ff8078-bfc3-11e4-b4d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "07ff8078-bfc3-11e4-b4d9-705681abff85"], ["created_at", "2015-03-01 03:28:30.176541"], ["updated_at", "2015-03-01 03:28:30.176541"], ["token", "f0ZQE6PS-HFzJBUCpy6h1oqzKKG5AWsLPulb_ipiZS4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:28:30.182233' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OUT80O1wUrirhNHgSt53XNdgqgRK2OVc3dKOOIqPXAM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:28:30.183852"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:28:30.185114"], ["id", "07fea252-bfc3-11e4-8772-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07fd901a-bfc3-11e4-aa1a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07fd901a-bfc3-11e4-aa1a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07fd901a-bfc3-11e4-aa1a-705681abff85' LIMIT 1 [["organization_id", "07ff8078-bfc3-11e4-b4d9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "07ff8078-bfc3-11e4-b4d9-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '07ff8078-bfc3-11e4-b4d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "07ff8078-bfc3-11e4-b4d9-705681abff85"], ["created_at", "2015-03-01 03:28:30.194420"], ["updated_at", "2015-03-01 03:28:30.194420"], ["token", "M2CaYZQ6G_FaO4I9N-JKhWPbz2CcMwuXLJfSNLjaxv0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7e9a8110-ee50-4e3b-9c62-09d54c55573f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0803d718-bfc3-11e4-8463-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0803d718-bfc3-11e4-8463-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [7e9a8110-ee50-4e3b-9c62-09d54c55573f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0803d718-bfc3-11e4-8463-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [7e9a8110-ee50-4e3b-9c62-09d54c55573f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "07ff8078-bfc3-11e4-b4d9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [7e9a8110-ee50-4e3b-9c62-09d54c55573f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [7e9a8110-ee50-4e3b-9c62-09d54c55573f] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [7e9a8110-ee50-4e3b-9c62-09d54c55573f] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [7e9a8110-ee50-4e3b-9c62-09d54c55573f] Date: Sat, 28 Feb 2015 19:28:30 -0800 From: from@example.com To: email@example.com Message-ID: <54f2875e31741_12e213fc4d8465be0124c3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/M2CaYZQ6G_FaO4I9N-JKhWPbz2CcMwuXLJfSNLjaxv0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [7e9a8110-ee50-4e3b-9c62-09d54c55573f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.83ms Completed 201 Created in 22ms (Views: 0.5ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$j2yX9rE.fSQrO03D3y4JPuLIpMrMO3ioQNT4k1BbG0oU6TKmacIrS"], ["created_at", "2015-03-01 03:28:30.214113"], ["updated_at", "2015-03-01 03:28:30.214113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$/t1DR24zpC21GvX6pd5XT.hZm2EpUgf7aOb3vfpK2Sn9TfJTupIX2"], ["created_at", "2015-03-01 03:28:30.219963"], ["updated_at", "2015-03-01 03:28:30.219963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.222026"], ["user_id", "0806cbbc-bfc3-11e4-8658-705681abff85"], ["created_at", "2015-03-01 03:28:30.222838"], ["updated_at", "2015-03-01 03:28:30.222838"], ["token", "IluEN1X04ok_MuvHiWzVrOnZTs_WnDNHVCnfCDcyOsg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.224728"], ["user_id", "0807bb8a-bfc3-11e4-bc40-705681abff85"], ["created_at", "2015-03-01 03:28:30.225471"], ["updated_at", "2015-03-01 03:28:30.225471"], ["token", "TA1oRp1qL3mcqSBcAXwYsdwBKtDLRTSK47N4HKYdbLs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.229034"], ["updated_at", "2015-03-01 03:28:30.229034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0806cbbc-bfc3-11e4-8658-705681abff85' AND "clubhouse_memberships"."organization_id" = '080914e4-bfc3-11e4-b396-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0806cbbc-bfc3-11e4-8658-705681abff85"], ["organization_id", "080914e4-bfc3-11e4-b396-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:30.232894"], ["updated_at", "2015-03-01 03:28:30.232894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0807bb8a-bfc3-11e4-bc40-705681abff85' AND "clubhouse_memberships"."organization_id" = '080914e4-bfc3-11e4-b396-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0807bb8a-bfc3-11e4-bc40-705681abff85"], ["organization_id", "080914e4-bfc3-11e4-b396-705681abff85"], ["created_at", "2015-03-01 03:28:30.239175"], ["updated_at", "2015-03-01 03:28:30.239175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '080914e4-bfc3-11e4-b396-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "080914e4-bfc3-11e4-b396-705681abff85"], ["created_at", "2015-03-01 03:28:30.243158"], ["updated_at", "2015-03-01 03:28:30.243158"], ["token", "-AaE-Jle6HKSrXVkhghkoyHsplJCIhUl4k1TmMW_lhQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:28:30.251304' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IluEN1X04ok_MuvHiWzVrOnZTs_WnDNHVCnfCDcyOsg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:28:30.252912"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:28:30.254382"], ["id", "08082aac-bfc3-11e4-86b6-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0806cbbc-bfc3-11e4-8658-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0806cbbc-bfc3-11e4-8658-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0806cbbc-bfc3-11e4-8658-705681abff85' LIMIT 1 [["organization_id", "080914e4-bfc3-11e4-b396-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "080914e4-bfc3-11e4-b396-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '080914e4-bfc3-11e4-b396-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$RJrO6XBYoydh7ZhS.iQwvOrcoftj6UTqPIFSehHXp9Gr1CwD6xszq"], ["created_at", "2015-03-01 03:28:30.273059"], ["updated_at", "2015-03-01 03:28:30.273059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$k2eFACh6xF64D.CZ87zyu.Q7plhnaBRdefBD8WxktTycOkR2ywcGa"], ["created_at", "2015-03-01 03:28:30.277564"], ["updated_at", "2015-03-01 03:28:30.277564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.279078"], ["user_id", "080fc83e-bfc3-11e4-8764-705681abff85"], ["created_at", "2015-03-01 03:28:30.279875"], ["updated_at", "2015-03-01 03:28:30.279875"], ["token", "DcXJsGARo31E9hqNdLqAYjbDbqECqob52tmKif036jQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.281527"], ["user_id", "08107612-bfc3-11e4-9d64-705681abff85"], ["created_at", "2015-03-01 03:28:30.282222"], ["updated_at", "2015-03-01 03:28:30.282222"], ["token", "nT6Ioy6p_xzSAjfbpH4VmnrksZ8CEXX5Fcwvo3NbKAg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.285357"], ["updated_at", "2015-03-01 03:28:30.285357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '080fc83e-bfc3-11e4-8764-705681abff85' AND "clubhouse_memberships"."organization_id" = '0811a578-bfc3-11e4-a317-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "080fc83e-bfc3-11e4-8764-705681abff85"], ["organization_id", "0811a578-bfc3-11e4-a317-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:30.288693"], ["updated_at", "2015-03-01 03:28:30.288693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08107612-bfc3-11e4-9d64-705681abff85' AND "clubhouse_memberships"."organization_id" = '0811a578-bfc3-11e4-a317-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "08107612-bfc3-11e4-9d64-705681abff85"], ["organization_id", "0811a578-bfc3-11e4-a317-705681abff85"], ["created_at", "2015-03-01 03:28:30.291877"], ["updated_at", "2015-03-01 03:28:30.291877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '0811a578-bfc3-11e4-a317-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "0811a578-bfc3-11e4-a317-705681abff85"], ["created_at", "2015-03-01 03:28:30.295273"], ["updated_at", "2015-03-01 03:28:30.295273"], ["token", "mgQxrvCMu75U1vcm6IL6R6uIHDXxB0nIq0MwQXwEDvQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:28:30 -0800  (16.5ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$I8CbMIM3vDRZZ3CZdYqkUeMSYL6M7EwUa3cQzffZOEtx8dZ2YKNm."], ["created_at", "2015-03-01 03:28:30.326816"], ["updated_at", "2015-03-01 03:28:30.326816"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$K.4xwe9qxLpGY6b3hUw5Du4tckfejYUmYngllJowYhyjXR8VEvz0S"], ["created_at", "2015-03-01 03:28:30.334036"], ["updated_at", "2015-03-01 03:28:30.334036"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.337423"], ["user_id", "08181c46-bfc3-11e4-bfc3-705681abff85"], ["created_at", "2015-03-01 03:28:30.338772"], ["updated_at", "2015-03-01 03:28:30.338772"], ["token", "u4KalD12Y7tcH6ynaFDyqROUNIR4LnLZaFVrYluZ3Ec"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.341883"], ["user_id", "081939e6-bfc3-11e4-b84f-705681abff85"], ["created_at", "2015-03-01 03:28:30.343317"], ["updated_at", "2015-03-01 03:28:30.343317"], ["token", "hZRrEL77gJU5X5nFeySaJZ3Lnr_iGb3KZ8AN2zZwEmg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.349468"], ["updated_at", "2015-03-01 03:28:30.349468"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08181c46-bfc3-11e4-bfc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '081ba2e4-bfc3-11e4-8d19-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08181c46-bfc3-11e4-bfc3-705681abff85"], ["organization_id", "081ba2e4-bfc3-11e4-8d19-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:30.357085"], ["updated_at", "2015-03-01 03:28:30.357085"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '081939e6-bfc3-11e4-b84f-705681abff85' AND "clubhouse_memberships"."organization_id" = '081ba2e4-bfc3-11e4-8d19-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "081939e6-bfc3-11e4-b84f-705681abff85"], ["organization_id", "081ba2e4-bfc3-11e4-8d19-705681abff85"], ["created_at", "2015-03-01 03:28:30.364307"], ["updated_at", "2015-03-01 03:28:30.364307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '081ba2e4-bfc3-11e4-8d19-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "081ba2e4-bfc3-11e4-8d19-705681abff85"], ["created_at", "2015-03-01 03:28:30.370131"], ["updated_at", "2015-03-01 03:28:30.370131"], ["token", "I0-RqNnpMu1F5dEUDYkG0a12iBHCL4ocm5gD6CRlkok"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/081e9f44-bfc3-11e4-a644-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:28:30 -0800  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$VNhM3aq8/rfLy2oFSGhFQ.s5j9w7PqlH1Ij0kbtLfgQqYl8vbV7gy"], ["created_at", "2015-03-01 03:28:30.380672"], ["updated_at", "2015-03-01 03:28:30.380672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$NNKFObJ7YlDuGwXxoCeXrecofaVUNGwnLBbv.DliEyiMAMOGiDPju"], ["created_at", "2015-03-01 03:28:30.385338"], ["updated_at", "2015-03-01 03:28:30.385338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.387214"], ["user_id", "08203912-bfc3-11e4-ab39-705681abff85"], ["created_at", "2015-03-01 03:28:30.388004"], ["updated_at", "2015-03-01 03:28:30.388004"], ["token", "1nUDdLentBuHIBxV6yfZ1W5iX6a4kjaRBtxNwySHbic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.389741"], ["user_id", "0820efb0-bfc3-11e4-a7d7-705681abff85"], ["created_at", "2015-03-01 03:28:30.390440"], ["updated_at", "2015-03-01 03:28:30.390440"], ["token", "uTUtiNQKoeVgX-2AwiyHMa6it7e7FkzBZg5jxxBJZMQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.393838"], ["updated_at", "2015-03-01 03:28:30.393838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08203912-bfc3-11e4-ab39-705681abff85' AND "clubhouse_memberships"."organization_id" = '08223438-bfc3-11e4-a229-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08203912-bfc3-11e4-ab39-705681abff85"], ["organization_id", "08223438-bfc3-11e4-a229-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:30.397146"], ["updated_at", "2015-03-01 03:28:30.397146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0820efb0-bfc3-11e4-a7d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '08223438-bfc3-11e4-a229-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0820efb0-bfc3-11e4-a7d7-705681abff85"], ["organization_id", "08223438-bfc3-11e4-a229-705681abff85"], ["created_at", "2015-03-01 03:28:30.400128"], ["updated_at", "2015-03-01 03:28:30.400128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '08223438-bfc3-11e4-a229-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "08223438-bfc3-11e4-a229-705681abff85"], ["created_at", "2015-03-01 03:28:30.403277"], ["updated_at", "2015-03-01 03:28:30.403277"], ["token", "KjUKw7M1GebCSQH__q9BQiNrITZEbHBD1Ux_g2Q16ME"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/0823b06a-bfc3-11e4-8d88-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:28:30 -0800  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$HM0.juZAXuXN7ho7/yK9tOowLF/SdZlHM4Hh0MtrbJtH.dYGnV9rG"], ["created_at", "2015-03-01 03:28:30.415561"], ["updated_at", "2015-03-01 03:28:30.415561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$XzZsFOv8pPfrTP426PCQruBmihww41bGx68qKUrDVYCZqMqN81Hqi"], ["created_at", "2015-03-01 03:28:30.420033"], ["updated_at", "2015-03-01 03:28:30.420033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.421640"], ["user_id", "08258b4c-bfc3-11e4-8f00-705681abff85"], ["created_at", "2015-03-01 03:28:30.422433"], ["updated_at", "2015-03-01 03:28:30.422433"], ["token", "klMvuydCo4MdjylCbo2UKkuVhMyKO_bzwiU2JYkzBrE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.424088"], ["user_id", "082632e0-bfc3-11e4-8faa-705681abff85"], ["created_at", "2015-03-01 03:28:30.424794"], ["updated_at", "2015-03-01 03:28:30.424794"], ["token", "42wHoCw9AA5yFiCLRcncMZGMd9G4FtdVv1QdlnVKGjA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.428208"], ["updated_at", "2015-03-01 03:28:30.428208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08258b4c-bfc3-11e4-8f00-705681abff85' AND "clubhouse_memberships"."organization_id" = '082774fc-bfc3-11e4-bb25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08258b4c-bfc3-11e4-8f00-705681abff85"], ["organization_id", "082774fc-bfc3-11e4-bb25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:30.431797"], ["updated_at", "2015-03-01 03:28:30.431797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$iAbDO318cDHXLLMITBrVX.BMuKoeKEQBB.N7qC0f/k86MpiH.JA4e"], ["created_at", "2015-03-01 03:28:30.436803"], ["updated_at", "2015-03-01 03:28:30.436803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.440498"], ["updated_at", "2015-03-01 03:28:30.440498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0828cc12-bfc3-11e4-9e02-705681abff85' AND "clubhouse_memberships"."organization_id" = '0829554c-bfc3-11e4-b0c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0828cc12-bfc3-11e4-9e02-705681abff85"], ["organization_id", "0829554c-bfc3-11e4-b0c9-705681abff85"], ["created_at", "2015-03-01 03:28:30.444090"], ["updated_at", "2015-03-01 03:28:30.444090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '082774fc-bfc3-11e4-bb25-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "082774fc-bfc3-11e4-bb25-705681abff85"], ["created_at", "2015-03-01 03:28:30.449143"], ["updated_at", "2015-03-01 03:28:30.449143"], ["token", "f76MT3j8TRp0CJXUtTQMzy68k9ClD5S8txOq6OspU80"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:30 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$T9ftsQAIvJqNJHxeLurktuWqaPJ7NUpkKCmqk8b9TcZ8LCWkCqVyW"], ["created_at", "2015-03-01 03:28:30.467820"], ["updated_at", "2015-03-01 03:28:30.467820"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (2.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$rlRc0wLpuLmnLvXhA0H5f.QYLKIiNGo5evTdXzHj93bIk9h.w4p7S"], ["created_at", "2015-03-01 03:28:30.478217"], ["updated_at", "2015-03-01 03:28:30.478217"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.481444"], ["user_id", "082d924c-bfc3-11e4-91f7-705681abff85"], ["created_at", "2015-03-01 03:28:30.483386"], ["updated_at", "2015-03-01 03:28:30.483386"], ["token", "RA_CVnv8e8XriV6_jLnpJWX_LJTZvO00dzV_Nqu9IbY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.495576"], ["user_id", "082f2a58-bfc3-11e4-aec4-705681abff85"], ["created_at", "2015-03-01 03:28:30.497616"], ["updated_at", "2015-03-01 03:28:30.497616"], ["token", "W20Q-Wr334zJkIt0MfLWcTtt5BBBoUEYS_qHOGEi2zk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.501465"], ["updated_at", "2015-03-01 03:28:30.501465"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '082d924c-bfc3-11e4-91f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '0832b466-bfc3-11e4-a794-705681abff85') LIMIT 1 SQL (4.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "082d924c-bfc3-11e4-91f7-705681abff85"], ["organization_id", "0832b466-bfc3-11e4-a794-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:30.508591"], ["updated_at", "2015-03-01 03:28:30.508591"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$5ksnJXI56vIri1chJKxrpe9R4DZG219Fgj.kZsh/SRcq0hSOZqrt."], ["created_at", "2015-03-01 03:28:30.534496"], ["updated_at", "2015-03-01 03:28:30.534496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.551836"], ["updated_at", "2015-03-01 03:28:30.551836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08396a04-bfc3-11e4-8122-705681abff85' AND "clubhouse_memberships"."organization_id" = '083a5fe0-bfc3-11e4-813b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "08396a04-bfc3-11e4-8122-705681abff85"], ["organization_id", "083a5fe0-bfc3-11e4-813b-705681abff85"], ["created_at", "2015-03-01 03:28:30.556252"], ["updated_at", "2015-03-01 03:28:30.556252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '0832b466-bfc3-11e4-a794-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "0832b466-bfc3-11e4-a794-705681abff85"], ["created_at", "2015-03-01 03:28:30.560411"], ["updated_at", "2015-03-01 03:28:30.560411"], ["token", "EEMQvrdqh3iNtjUoi6cF0HyPBe8Xe4WcHLhi51hOzAQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:30 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:28:30.565896' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RA_CVnv8e8XriV6_jLnpJWX_LJTZvO00dzV_Nqu9IbY"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:28:30.568533"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:28:30.571060"], ["id", "0831509e-bfc3-11e4-bd4b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "082d924c-bfc3-11e4-91f7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "082d924c-bfc3-11e4-91f7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '082d924c-bfc3-11e4-91f7-705681abff85' LIMIT 1 [["organization_id", "0832b466-bfc3-11e4-a794-705681abff85"]] Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "0832b466-bfc3-11e4-a794-705681abff85"]] Completed 200 OK in 18ms (Views: 5.3ms | ActiveRecord: 2.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$37YIq1LeelWR370vBulNQulR.T4gkJ/YYnZ9GeIgg629UjiO1Y2lu"], ["created_at", "2015-03-01 03:28:30.595403"], ["updated_at", "2015-03-01 03:28:30.595403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$HVBcn/1m7Ug/UEPY1ToOdOLDrEe6fzXWvtKf8UrZ9f28GIya7oqB."], ["created_at", "2015-03-01 03:28:30.600725"], ["updated_at", "2015-03-01 03:28:30.600725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.602514"], ["user_id", "0840fbfc-bfc3-11e4-b6bb-705681abff85"], ["created_at", "2015-03-01 03:28:30.603334"], ["updated_at", "2015-03-01 03:28:30.603334"], ["token", "QkzMfbN8K984_8VCKhHN89dNcwbqudisVKpddMfDh2M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.605240"], ["user_id", "0841ccee-bfc3-11e4-b4c0-705681abff85"], ["created_at", "2015-03-01 03:28:30.605947"], ["updated_at", "2015-03-01 03:28:30.605947"], ["token", "5v_YJ2gtCxmEDurCm6GhAJ5ecPqhy6NohJ1S_kFcLVo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.612865"], ["updated_at", "2015-03-01 03:28:30.612865"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0840fbfc-bfc3-11e4-b6bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '0843ebbe-bfc3-11e4-b537-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0840fbfc-bfc3-11e4-b6bb-705681abff85"], ["organization_id", "0843ebbe-bfc3-11e4-b537-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:30.621635"], ["updated_at", "2015-03-01 03:28:30.621635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0841ccee-bfc3-11e4-b4c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '0843ebbe-bfc3-11e4-b537-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0841ccee-bfc3-11e4-b4c0-705681abff85"], ["organization_id", "0843ebbe-bfc3-11e4-b537-705681abff85"], ["created_at", "2015-03-01 03:28:30.626046"], ["updated_at", "2015-03-01 03:28:30.626046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '0843ebbe-bfc3-11e4-b537-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "0843ebbe-bfc3-11e4-b537-705681abff85"], ["created_at", "2015-03-01 03:28:30.632448"], ["updated_at", "2015-03-01 03:28:30.632448"], ["token", "HamEOkCMWrrH0fVbFefjIH1pK6ENZz-lGhzQ4Is1TDg"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:28:30 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$QB0QJip08SGGfWfSCpF/n.k0wgE41E1j3LBlVSYhncE6Xelqce6bC"], ["created_at", "2015-03-01 03:28:30.649082"], ["updated_at", "2015-03-01 03:28:30.649082"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$VBMNv.tHdeTnmYDFNaoek.t.Lv6VfjcgC6odsI8qYmJ.AVNMQNpk2"], ["created_at", "2015-03-01 03:28:30.659378"], ["updated_at", "2015-03-01 03:28:30.659378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.661284"], ["user_id", "08495a22-bfc3-11e4-8763-705681abff85"], ["created_at", "2015-03-01 03:28:30.662145"], ["updated_at", "2015-03-01 03:28:30.662145"], ["token", "FOqsHz2xgWnyT3iDKP6u3eLXtLbZ9935pC5BWiEET_k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:30.667585"], ["user_id", "084ac2e0-bfc3-11e4-8704-705681abff85"], ["created_at", "2015-03-01 03:28:30.668402"], ["updated_at", "2015-03-01 03:28:30.668402"], ["token", "z0ttF6UzTesTEsTAiPqe8V-PQnbHBf08z-2HODEmVRM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:30.672378"], ["updated_at", "2015-03-01 03:28:30.672378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08495a22-bfc3-11e4-8763-705681abff85' AND "clubhouse_memberships"."organization_id" = '084cfc40-bfc3-11e4-a14c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08495a22-bfc3-11e4-8763-705681abff85"], ["organization_id", "084cfc40-bfc3-11e4-a14c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:30.683120"], ["updated_at", "2015-03-01 03:28:30.683120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '084ac2e0-bfc3-11e4-8704-705681abff85' AND "clubhouse_memberships"."organization_id" = '084cfc40-bfc3-11e4-a14c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "084ac2e0-bfc3-11e4-8704-705681abff85"], ["organization_id", "084cfc40-bfc3-11e4-a14c-705681abff85"], ["created_at", "2015-03-01 03:28:30.686778"], ["updated_at", "2015-03-01 03:28:30.686778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '084cfc40-bfc3-11e4-a14c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "084cfc40-bfc3-11e4-a14c-705681abff85"], ["created_at", "2015-03-01 03:28:30.691353"], ["updated_at", "2015-03-01 03:28:30.691353"], ["token", "cEe5izU6a7TVCN0L3PuOjdLQfn0krJPQ0K_F4JJgeV4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/084fa31e-bfc3-11e4-a9bf-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:28:30 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"084fa31e-bfc3-11e4-a9bf-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:28:30.697371' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FOqsHz2xgWnyT3iDKP6u3eLXtLbZ9935pC5BWiEET_k"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:28:30.699129"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:28:30.700690"], ["id", "084b328e-bfc3-11e4-9b8f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08495a22-bfc3-11e4-8763-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08495a22-bfc3-11e4-8763-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '08495a22-bfc3-11e4-8763-705681abff85' LIMIT 1 [["organization_id", "084cfc40-bfc3-11e4-a14c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "084cfc40-bfc3-11e4-a14c-705681abff85"], ["id", "084fa31e-bfc3-11e4-a9bf-705681abff85"]] Completed 200 OK in 17ms (Views: 0.9ms | ActiveRecord: 2.8ms)  (1.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$rU9G5a2qkRzOw9SAWXss.uKl0i/Ipad/931BbInsJyGC78YHVHOYS"], ["created_at", "2015-03-01 03:28:49.076659"], ["updated_at", "2015-03-01 03:28:49.076659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$XePjGZTkKvCy58KN2CfPFOiabHsTxFS2WW1pd0R1LW4Nvv3Q/WtSy"], ["created_at", "2015-03-01 03:28:49.082885"], ["updated_at", "2015-03-01 03:28:49.082885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.093313"], ["user_id", "13452adc-bfc3-11e4-9bd4-705681abff85"], ["created_at", "2015-03-01 03:28:49.099329"], ["updated_at", "2015-03-01 03:28:49.099329"], ["token", "IWCUZtEFLQlZV8TgwVA6EA6ZQTybEHXTyrcFA3el_Mk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.101679"], ["user_id", "1345f7be-bfc3-11e4-b0c5-705681abff85"], ["created_at", "2015-03-01 03:28:49.102381"], ["updated_at", "2015-03-01 03:28:49.102381"], ["token", "rQqlBu8J2WV_4WBaeQE5oywVYozEoHOXZQWLh4jCbjc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.112263"], ["updated_at", "2015-03-01 03:28:49.112263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13452adc-bfc3-11e4-9bd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '134a741a-bfc3-11e4-bb9e-705681abff85') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "13452adc-bfc3-11e4-9bd4-705681abff85"], ["organization_id", "134a741a-bfc3-11e4-bb9e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.157238"], ["updated_at", "2015-03-01 03:28:49.157238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1345f7be-bfc3-11e4-b0c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '134a741a-bfc3-11e4-bb9e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1345f7be-bfc3-11e4-b0c5-705681abff85"], ["organization_id", "134a741a-bfc3-11e4-bb9e-705681abff85"], ["created_at", "2015-03-01 03:28:49.163457"], ["updated_at", "2015-03-01 03:28:49.163457"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '134a741a-bfc3-11e4-bb9e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "134a741a-bfc3-11e4-bb9e-705681abff85"], ["created_at", "2015-03-01 03:28:49.173902"], ["updated_at", "2015-03-01 03:28:49.173902"], ["token", "xkmFHFiFBQc4ebHsJUtGZEffEbLVlCZWHYsvLnGcIrc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$RWra3YnsdhCc5SaRcsteu.ohANRbd0cYy5yK2Y27L.WeFK1W1PN.."], ["created_at", "2015-03-01 03:28:49.191417"], ["updated_at", "2015-03-01 03:28:49.191417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (7.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$hEBNiWemCW3Jp.9mjob3neMFDKrKeTogJFhE7GI/YtcEOJLPwkw/u"], ["created_at", "2015-03-01 03:28:49.195931"], ["updated_at", "2015-03-01 03:28:49.195931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.204708"], ["user_id", "13568034-bfc3-11e4-b6e6-705681abff85"], ["created_at", "2015-03-01 03:28:49.205554"], ["updated_at", "2015-03-01 03:28:49.205554"], ["token", "TOceUqSQXU-pDtkiv5uBWSMwUVmQILbMxbl2ZuGzTrg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.207360"], ["user_id", "13572f02-bfc3-11e4-a2d2-705681abff85"], ["created_at", "2015-03-01 03:28:49.208075"], ["updated_at", "2015-03-01 03:28:49.208075"], ["token", "sE-gfS55Fq5-Wkhk32iUMU8VxrTMf-UxoIz_NBAuxQA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.211462"], ["updated_at", "2015-03-01 03:28:49.211462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13568034-bfc3-11e4-b6e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '1359936e-bfc3-11e4-8956-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "13568034-bfc3-11e4-b6e6-705681abff85"], ["organization_id", "1359936e-bfc3-11e4-8956-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.215130"], ["updated_at", "2015-03-01 03:28:49.215130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13572f02-bfc3-11e4-a2d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '1359936e-bfc3-11e4-8956-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "13572f02-bfc3-11e4-a2d2-705681abff85"], ["organization_id", "1359936e-bfc3-11e4-8956-705681abff85"], ["created_at", "2015-03-01 03:28:49.218497"], ["updated_at", "2015-03-01 03:28:49.218497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '1359936e-bfc3-11e4-8956-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "1359936e-bfc3-11e4-8956-705681abff85"], ["created_at", "2015-03-01 03:28:49.222444"], ["updated_at", "2015-03-01 03:28:49.222444"], ["token", "b44HKbk8vCVFLuNy5kmpT772MShyS5-F5bh3HVldh3o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/135b4682-bfc3-11e4-9c3c-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$jdjBAdESSADDKEDfbpUKROcg8cA5Q7f3Dxf2WU1JojhyPDRUnDWYC"], ["created_at", "2015-03-01 03:28:49.236422"], ["updated_at", "2015-03-01 03:28:49.236422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$vQmoNouH9WMDcl4V7Z0gve9h7PkF.ZlR3eUN6klxEZOJxn9RzO4Ti"], ["created_at", "2015-03-01 03:28:49.241192"], ["updated_at", "2015-03-01 03:28:49.241192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.242718"], ["user_id", "135d63ea-bfc3-11e4-9fc5-705681abff85"], ["created_at", "2015-03-01 03:28:49.243483"], ["updated_at", "2015-03-01 03:28:49.243483"], ["token", "-xgtNaE_tm3mGyOwDby1ftoGz5EM5qu2mHcJKYMdNOc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.245427"], ["user_id", "135e14d4-bfc3-11e4-9d27-705681abff85"], ["created_at", "2015-03-01 03:28:49.246176"], ["updated_at", "2015-03-01 03:28:49.246176"], ["token", "vqHDQ3eMjt4H8EUyuWDyFBj13zvChXK9PdCqs5VMXM0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.249620"], ["updated_at", "2015-03-01 03:28:49.249620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '135d63ea-bfc3-11e4-9fc5-705681abff85' AND "clubhouse_memberships"."organization_id" = '135f5e2a-bfc3-11e4-9682-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "135d63ea-bfc3-11e4-9fc5-705681abff85"], ["organization_id", "135f5e2a-bfc3-11e4-9682-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.253054"], ["updated_at", "2015-03-01 03:28:49.253054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '135e14d4-bfc3-11e4-9d27-705681abff85' AND "clubhouse_memberships"."organization_id" = '135f5e2a-bfc3-11e4-9682-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "135e14d4-bfc3-11e4-9d27-705681abff85"], ["organization_id", "135f5e2a-bfc3-11e4-9682-705681abff85"], ["created_at", "2015-03-01 03:28:49.256807"], ["updated_at", "2015-03-01 03:28:49.256807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '135f5e2a-bfc3-11e4-9682-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "135f5e2a-bfc3-11e4-9682-705681abff85"], ["created_at", "2015-03-01 03:28:49.261291"], ["updated_at", "2015-03-01 03:28:49.261291"], ["token", "IrwJUO3qDC7Q8z9gEqJI3wnWPqpupoeuoKEd-tRO7Pw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/13612b56-bfc3-11e4-951b-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$4rZ76NmLmtZVYp57CQXssug5rdJ4zzWuN9uLb1VtbtoXt0cqGIx6."], ["created_at", "2015-03-01 03:28:49.271159"], ["updated_at", "2015-03-01 03:28:49.271159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$xbJmcwL.ahIFaDxAgpErqOvk.e9AlciulxUVNpa.CM7vu7r1zAlaG"], ["created_at", "2015-03-01 03:28:49.275589"], ["updated_at", "2015-03-01 03:28:49.275589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.277220"], ["user_id", "1362aa76-bfc3-11e4-be7b-705681abff85"], ["created_at", "2015-03-01 03:28:49.278012"], ["updated_at", "2015-03-01 03:28:49.278012"], ["token", "XAYCnblI8O9b6vnwoAvupTJ9p7NtZZHtWxxjC0j0miw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.279890"], ["user_id", "1363567e-bfc3-11e4-a406-705681abff85"], ["created_at", "2015-03-01 03:28:49.280774"], ["updated_at", "2015-03-01 03:28:49.280774"], ["token", "1mnhGt48BKFKZZfCaRuompiI_ovfD1F2SmmvCGEBwJo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.285631"], ["updated_at", "2015-03-01 03:28:49.285631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1362aa76-bfc3-11e4-be7b-705681abff85' AND "clubhouse_memberships"."organization_id" = '1364ed9a-bfc3-11e4-8fcc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1362aa76-bfc3-11e4-be7b-705681abff85"], ["organization_id", "1364ed9a-bfc3-11e4-8fcc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.290282"], ["updated_at", "2015-03-01 03:28:49.290282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Pt323EnMMRM9uxOQMQ2IluqOFSoIuXv582lOl/V6HKzD6kHxyPUHe"], ["created_at", "2015-03-01 03:28:49.295130"], ["updated_at", "2015-03-01 03:28:49.295130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.298160"], ["updated_at", "2015-03-01 03:28:49.298160"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1366519e-bfc3-11e4-9df1-705681abff85' AND "clubhouse_memberships"."organization_id" = '1366cad4-bfc3-11e4-9671-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1366519e-bfc3-11e4-9df1-705681abff85"], ["organization_id", "1366cad4-bfc3-11e4-9671-705681abff85"], ["created_at", "2015-03-01 03:28:49.327976"], ["updated_at", "2015-03-01 03:28:49.327976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '1364ed9a-bfc3-11e4-8fcc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "1364ed9a-bfc3-11e4-8fcc-705681abff85"], ["created_at", "2015-03-01 03:28:49.334247"], ["updated_at", "2015-03-01 03:28:49.334247"], ["token", "s9vfltFTHYnajn2GoLEu8Kdd9-CMZq63eRgmnUegyb8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$hNIqzLtbEhzGEEpcogPAW.sPkfhyp78L7Klaq2UkhCytP1ZfGP1ua"], ["created_at", "2015-03-01 03:28:49.352232"], ["updated_at", "2015-03-01 03:28:49.352232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$12sMPhhpgj.EuoO7HGkgo.n20Hz5e/VSpcPJe3JlyNr2BaMyPP2wi"], ["created_at", "2015-03-01 03:28:49.359222"], ["updated_at", "2015-03-01 03:28:49.359222"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.362549"], ["user_id", "136f208a-bfc3-11e4-bdd0-705681abff85"], ["created_at", "2015-03-01 03:28:49.364081"], ["updated_at", "2015-03-01 03:28:49.364081"], ["token", "nMEkviYXy8N06rsPlxwHZ3stFVt7Q5J5oUKo3-u2cHE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.366112"], ["user_id", "13702af2-bfc3-11e4-86b0-705681abff85"], ["created_at", "2015-03-01 03:28:49.366860"], ["updated_at", "2015-03-01 03:28:49.366860"], ["token", "Vp12_RFslwLIy7SYBuzuleSHsXNMJYfucgD4j6yDXKM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.370372"], ["updated_at", "2015-03-01 03:28:49.370372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '136f208a-bfc3-11e4-bdd0-705681abff85' AND "clubhouse_memberships"."organization_id" = '1371d0b4-bfc3-11e4-8767-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "136f208a-bfc3-11e4-bdd0-705681abff85"], ["organization_id", "1371d0b4-bfc3-11e4-8767-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.373922"], ["updated_at", "2015-03-01 03:28:49.373922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$IU7VCQOtklsIMMv/V4KE5.Qx0nmPdZfcHeIWXTeQskJ9D9BwuY3qu"], ["created_at", "2015-03-01 03:28:49.379917"], ["updated_at", "2015-03-01 03:28:49.379917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.383199"], ["updated_at", "2015-03-01 03:28:49.383199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13734444-bfc3-11e4-b7f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '1373c266-bfc3-11e4-a128-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "13734444-bfc3-11e4-b7f0-705681abff85"], ["organization_id", "1373c266-bfc3-11e4-a128-705681abff85"], ["created_at", "2015-03-01 03:28:49.386602"], ["updated_at", "2015-03-01 03:28:49.386602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '1371d0b4-bfc3-11e4-8767-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "1371d0b4-bfc3-11e4-8767-705681abff85"], ["created_at", "2015-03-01 03:28:49.391679"], ["updated_at", "2015-03-01 03:28:49.391679"], ["token", "RKcz5QklK2bED9C0CRnwa_6LXBFbnGwBc29wwbLjqfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$8YlzzK7YganmLJK6J1GGoeLl7B7JU2kJopzrY0sfQy8FV8TVLKLHG"], ["created_at", "2015-03-01 03:28:49.403794"], ["updated_at", "2015-03-01 03:28:49.403794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$fQLm.vSkS6wxYecUvUMlv.N0N9M5SvM.36pJcWNDGVQBlgHk8eOW."], ["created_at", "2015-03-01 03:28:49.408917"], ["updated_at", "2015-03-01 03:28:49.408917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.411611"], ["user_id", "1376ede2-bfc3-11e4-bcf6-705681abff85"], ["created_at", "2015-03-01 03:28:49.412802"], ["updated_at", "2015-03-01 03:28:49.412802"], ["token", "ztcNnYzPrm-yq__uNJJUlAnCVlDan8dMSmN-ETci6aQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.414402"], ["user_id", "1377cbe0-bfc3-11e4-a2d8-705681abff85"], ["created_at", "2015-03-01 03:28:49.415089"], ["updated_at", "2015-03-01 03:28:49.415089"], ["token", "RwVZj09EUufn7CpOJ7PP04z0wbOmXjEBKgU68Ai-cZ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.418385"], ["updated_at", "2015-03-01 03:28:49.418385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1376ede2-bfc3-11e4-bcf6-705681abff85' AND "clubhouse_memberships"."organization_id" = '13792198-bfc3-11e4-9128-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1376ede2-bfc3-11e4-bcf6-705681abff85"], ["organization_id", "13792198-bfc3-11e4-9128-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.422458"], ["updated_at", "2015-03-01 03:28:49.422458"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1377cbe0-bfc3-11e4-a2d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '13792198-bfc3-11e4-9128-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1377cbe0-bfc3-11e4-a2d8-705681abff85"], ["organization_id", "13792198-bfc3-11e4-9128-705681abff85"], ["created_at", "2015-03-01 03:28:49.426641"], ["updated_at", "2015-03-01 03:28:49.426641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '13792198-bfc3-11e4-9128-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "13792198-bfc3-11e4-9128-705681abff85"], ["created_at", "2015-03-01 03:28:49.432845"], ["updated_at", "2015-03-01 03:28:49.432845"], ["token", "u8UIq8g7UC7eBattQDxbZJ2LpoHLWaaxIslvg7H-ROA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/137ba5a8-bfc3-11e4-b6a5-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$W/XAuR9iw17H9Rv.A1htJerfUJJX7Ip/g6Dmiq3ElGuj7Ixux.h1."], ["created_at", "2015-03-01 03:28:49.471945"], ["updated_at", "2015-03-01 03:28:49.471945"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$NG.KjGp7AFiJkCdh7KXmoOrPsKjjyXTRgcpM2SBHN8veO3y4RWI3m"], ["created_at", "2015-03-01 03:28:49.487898"], ["updated_at", "2015-03-01 03:28:49.487898"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.492563"], ["user_id", "1381c2ee-bfc3-11e4-a568-705681abff85"], ["created_at", "2015-03-01 03:28:49.494498"], ["updated_at", "2015-03-01 03:28:49.494498"], ["token", "SUI0doyFhw4Db9d5yS1Gzv0FjG8i0MalTkpXwNjFhpg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.498665"], ["user_id", "1383db7e-bfc3-11e4-a575-705681abff85"], ["created_at", "2015-03-01 03:28:49.501531"], ["updated_at", "2015-03-01 03:28:49.501531"], ["token", "0udx9sqy-1lbwgvnBLw9wq_U8cTfqxFBVffiAFTiDhI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.508121"], ["updated_at", "2015-03-01 03:28:49.508121"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1381c2ee-bfc3-11e4-a568-705681abff85' AND "clubhouse_memberships"."organization_id" = '1386edb4-bfc3-11e4-aade-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1381c2ee-bfc3-11e4-a568-705681abff85"], ["organization_id", "1386edb4-bfc3-11e4-aade-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.516064"], ["updated_at", "2015-03-01 03:28:49.516064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1383db7e-bfc3-11e4-a575-705681abff85' AND "clubhouse_memberships"."organization_id" = '1386edb4-bfc3-11e4-aade-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1383db7e-bfc3-11e4-a575-705681abff85"], ["organization_id", "1386edb4-bfc3-11e4-aade-705681abff85"], ["created_at", "2015-03-01 03:28:49.525980"], ["updated_at", "2015-03-01 03:28:49.525980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '1386edb4-bfc3-11e4-aade-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "1386edb4-bfc3-11e4-aade-705681abff85"], ["created_at", "2015-03-01 03:28:49.532096"], ["updated_at", "2015-03-01 03:28:49.532096"], ["token", "ekjf9N2vhHZPmpgUJoSwjftDq05fI8Qzze2dwGBoU2Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$Z4nvrsqIWAvRZ1aSbinSgOAnkmWPqPpMH1FRF/cx9ng4LgIz835GS"], ["created_at", "2015-03-01 03:28:49.543775"], ["updated_at", "2015-03-01 03:28:49.543775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$DEXktp/1sGFaCWoNdphvj.ev2kUXNIdO2F8uIST8gdknxxl8WkwxK"], ["created_at", "2015-03-01 03:28:49.548760"], ["updated_at", "2015-03-01 03:28:49.548760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.550604"], ["user_id", "138c46c4-bfc3-11e4-b692-705681abff85"], ["created_at", "2015-03-01 03:28:49.551460"], ["updated_at", "2015-03-01 03:28:49.551460"], ["token", "FHHyCtUCkXM3lgDhtOr7wQa86qlI0gJX4Pd3-Qczbl0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.553262"], ["user_id", "138d080c-bfc3-11e4-9615-705681abff85"], ["created_at", "2015-03-01 03:28:49.553970"], ["updated_at", "2015-03-01 03:28:49.553970"], ["token", "ZLyzhBA2kvcytvfBdiHeYMRFcp301-Hq4uPHKqvT14s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.557325"], ["updated_at", "2015-03-01 03:28:49.557325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '138c46c4-bfc3-11e4-b692-705681abff85' AND "clubhouse_memberships"."organization_id" = '138e536a-bfc3-11e4-8b4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "138c46c4-bfc3-11e4-b692-705681abff85"], ["organization_id", "138e536a-bfc3-11e4-8b4c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.561289"], ["updated_at", "2015-03-01 03:28:49.561289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '138d080c-bfc3-11e4-9615-705681abff85' AND "clubhouse_memberships"."organization_id" = '138e536a-bfc3-11e4-8b4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "138d080c-bfc3-11e4-9615-705681abff85"], ["organization_id", "138e536a-bfc3-11e4-8b4c-705681abff85"], ["created_at", "2015-03-01 03:28:49.564796"], ["updated_at", "2015-03-01 03:28:49.564796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '138e536a-bfc3-11e4-8b4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "138e536a-bfc3-11e4-8b4c-705681abff85"], ["created_at", "2015-03-01 03:28:49.568299"], ["updated_at", "2015-03-01 03:28:49.568299"], ["token", "2BjD7eXOqxdoF2-JsN0wPjnnjyqSfL6LimvZnkBFXOY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$ZDdNVoB0Pcx088XaFbyGueu8jJzuLAR9D6O7GP/AMqwGht6/t/H0S"], ["created_at", "2015-03-01 03:28:49.578471"], ["updated_at", "2015-03-01 03:28:49.578471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$UMLJICLFpkXVwos6pnSa6um4sSx61oIj3lDeBU5WAruMhIyhhiL4."], ["created_at", "2015-03-01 03:28:49.584603"], ["updated_at", "2015-03-01 03:28:49.584603"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.586930"], ["user_id", "13919462-bfc3-11e4-91f0-705681abff85"], ["created_at", "2015-03-01 03:28:49.587870"], ["updated_at", "2015-03-01 03:28:49.587870"], ["token", "xNHxPbIqiWn-A8mjFoDBLz6ncETVUfFSoUHwGOaj3CI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.589923"], ["user_id", "13928232-bfc3-11e4-b918-705681abff85"], ["created_at", "2015-03-01 03:28:49.590719"], ["updated_at", "2015-03-01 03:28:49.590719"], ["token", "mKl8mWZ5KhioOdaz3bWRMtWgr6rVwrhlqojoW_GL0mo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.594711"], ["updated_at", "2015-03-01 03:28:49.594711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13919462-bfc3-11e4-91f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '139410f2-bfc3-11e4-a5ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "13919462-bfc3-11e4-91f0-705681abff85"], ["organization_id", "139410f2-bfc3-11e4-a5ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.598484"], ["updated_at", "2015-03-01 03:28:49.598484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13928232-bfc3-11e4-b918-705681abff85' AND "clubhouse_memberships"."organization_id" = '139410f2-bfc3-11e4-a5ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "13928232-bfc3-11e4-b918-705681abff85"], ["organization_id", "139410f2-bfc3-11e4-a5ac-705681abff85"], ["created_at", "2015-03-01 03:28:49.601711"], ["updated_at", "2015-03-01 03:28:49.601711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '139410f2-bfc3-11e4-a5ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "139410f2-bfc3-11e4-a5ac-705681abff85"], ["created_at", "2015-03-01 03:28:49.605236"], ["updated_at", "2015-03-01 03:28:49.605236"], ["token", "6uQahaGv2SNDxTgYtor7hWBl2Ud8_JwYbd4jiItBZk4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$BC9W9GWa.F.2tXKAD6GI2uM9UZoaR3WdgP2lKmYvkaQzxPjuwdCFu"], ["created_at", "2015-03-01 03:28:49.616464"], ["updated_at", "2015-03-01 03:28:49.616464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$R0eQuEUeOk/ghaUrQ8PdGeyyDVc6xOGfBvSmZvA6EeeBusfaRIh0G"], ["created_at", "2015-03-01 03:28:49.621681"], ["updated_at", "2015-03-01 03:28:49.621681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.623460"], ["user_id", "13975b22-bfc3-11e4-9e0b-705681abff85"], ["created_at", "2015-03-01 03:28:49.624271"], ["updated_at", "2015-03-01 03:28:49.624271"], ["token", "sbtlgROn39iOD_sD99JSPHeStDklm4uM46ZYFyCMO_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.626079"], ["user_id", "13982aac-bfc3-11e4-84e3-705681abff85"], ["created_at", "2015-03-01 03:28:49.626906"], ["updated_at", "2015-03-01 03:28:49.626906"], ["token", "Qi7ABUPDoUWtBbqWQfH07nsffBta3FXAlLYE28lqQi8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.631052"], ["updated_at", "2015-03-01 03:28:49.631052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13975b22-bfc3-11e4-9e0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '13999a4a-bfc3-11e4-aaff-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "13975b22-bfc3-11e4-9e0b-705681abff85"], ["organization_id", "13999a4a-bfc3-11e4-aaff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.635471"], ["updated_at", "2015-03-01 03:28:49.635471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13982aac-bfc3-11e4-84e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '13999a4a-bfc3-11e4-aaff-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "13982aac-bfc3-11e4-84e3-705681abff85"], ["organization_id", "13999a4a-bfc3-11e4-aaff-705681abff85"], ["created_at", "2015-03-01 03:28:49.640388"], ["updated_at", "2015-03-01 03:28:49.640388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '13999a4a-bfc3-11e4-aaff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "13999a4a-bfc3-11e4-aaff-705681abff85"], ["created_at", "2015-03-01 03:28:49.644429"], ["updated_at", "2015-03-01 03:28:49.644429"], ["token", "6d1BJL-1ekIXa_pWh_8HqeDBJcLHX0G704Yck23UK0o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$tRNRdBb23tsMGupGt2ndzep7bRkEmezG785.4/yDGt0qEo7OufpwO"], ["created_at", "2015-03-01 03:28:49.663301"], ["updated_at", "2015-03-01 03:28:49.663301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$WItnArO1Ne30IwXnyaDq0eNdIqZcaCdflF.8EeRoV.0JxD8Lbl9Qm"], ["created_at", "2015-03-01 03:28:49.669172"], ["updated_at", "2015-03-01 03:28:49.669172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.671006"], ["user_id", "139e821c-bfc3-11e4-a575-705681abff85"], ["created_at", "2015-03-01 03:28:49.671801"], ["updated_at", "2015-03-01 03:28:49.671801"], ["token", "1kRq5otF4qQjRrg8GASrScmAhXaC3_AYEDFnqrar8xY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:28:49.673693"], ["user_id", "139f6d3a-bfc3-11e4-a274-705681abff85"], ["created_at", "2015-03-01 03:28:49.674420"], ["updated_at", "2015-03-01 03:28:49.674420"], ["token", "2tUmWyV7b6IPj_UC6aT13Qoyk7qpbHUmgQxLfEYDD8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:28:49.677917"], ["updated_at", "2015-03-01 03:28:49.677917"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '139e821c-bfc3-11e4-a575-705681abff85' AND "clubhouse_memberships"."organization_id" = '13a0ba14-bfc3-11e4-9843-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "139e821c-bfc3-11e4-a575-705681abff85"], ["organization_id", "13a0ba14-bfc3-11e4-9843-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:28:49.681772"], ["updated_at", "2015-03-01 03:28:49.681772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '139f6d3a-bfc3-11e4-a274-705681abff85' AND "clubhouse_memberships"."organization_id" = '13a0ba14-bfc3-11e4-9843-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "139f6d3a-bfc3-11e4-a274-705681abff85"], ["organization_id", "13a0ba14-bfc3-11e4-9843-705681abff85"], ["created_at", "2015-03-01 03:28:49.684955"], ["updated_at", "2015-03-01 03:28:49.684955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '13a0ba14-bfc3-11e4-9843-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "13a0ba14-bfc3-11e4-9843-705681abff85"], ["created_at", "2015-03-01 03:28:49.691501"], ["updated_at", "2015-03-01 03:28:49.691501"], ["token", "qgcAbetYYOLS2lENgQjxejR8bZVLF-PMAGl7Df8_8sk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:28:49 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (3.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$JK8crL58xpgdEKR5Z4.zPuQl8y6D/Zx.pAh2vnG134CdmBjrpLOhW"], ["created_at", "2015-03-01 03:29:09.298788"], ["updated_at", "2015-03-01 03:29:09.298788"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$/6UfBI5ESD./CHutlUDQ3uaA9dwcbbSTzJfBvXboFXHdyLPsBKG3q"], ["created_at", "2015-03-01 03:29:09.352950"], ["updated_at", "2015-03-01 03:29:09.352950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.361893"], ["user_id", "1f59695a-bfc3-11e4-8cf7-705681abff85"], ["created_at", "2015-03-01 03:29:09.367897"], ["updated_at", "2015-03-01 03:29:09.367897"], ["token", "y0mXOfpibEbk8JM9sqwHkSDrFRphnXQ2vgw8-aq4v48"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.370371"], ["user_id", "1f5aedfc-bfc3-11e4-bc38-705681abff85"], ["created_at", "2015-03-01 03:29:09.371161"], ["updated_at", "2015-03-01 03:29:09.371161"], ["token", "oyU7UlxRqz5khv54ezzeI3yYyqVBL7vVpGJ15wcUFks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:09.380998"], ["updated_at", "2015-03-01 03:29:09.380998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f59695a-bfc3-11e4-8cf7-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f5f400a-bfc3-11e4-a276-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1f59695a-bfc3-11e4-8cf7-705681abff85"], ["organization_id", "1f5f400a-bfc3-11e4-a276-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:09.425445"], ["updated_at", "2015-03-01 03:29:09.425445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f5aedfc-bfc3-11e4-bc38-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f5f400a-bfc3-11e4-a276-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f5aedfc-bfc3-11e4-bc38-705681abff85"], ["organization_id", "1f5f400a-bfc3-11e4-a276-705681abff85"], ["created_at", "2015-03-01 03:29:09.429425"], ["updated_at", "2015-03-01 03:29:09.429425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '1f5f400a-bfc3-11e4-a276-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "1f5f400a-bfc3-11e4-a276-705681abff85"], ["created_at", "2015-03-01 03:29:09.442126"], ["updated_at", "2015-03-01 03:29:09.442126"], ["token", "bgPhkHptoJlYQ0UQ6_nxm7GKRVMEJzFS_pwqoFkzM_A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1f689150-bfc3-11e4-be24-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:29:09 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1f689150-bfc3-11e4-be24-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:29:09.472041' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y0mXOfpibEbk8JM9sqwHkSDrFRphnXQ2vgw8-aq4v48"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:29:09.479440"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:29:09.480742"], ["id", "1f5d4804-bfc3-11e4-96d6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1f59695a-bfc3-11e4-8cf7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1f59695a-bfc3-11e4-8cf7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1f59695a-bfc3-11e4-8cf7-705681abff85' LIMIT 1 [["organization_id", "1f5f400a-bfc3-11e4-a276-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "1f5f400a-bfc3-11e4-a276-705681abff85"], ["id", "1f689150-bfc3-11e4-be24-705681abff85"]] Completed 200 OK in 39ms (Views: 2.1ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$DiTKA.YP2B64G.jY9qjO/Obs7xxnKva2zD3/EAfCq72mygc4URdsu"], ["created_at", "2015-03-01 03:29:09.520093"], ["updated_at", "2015-03-01 03:29:09.520093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$cHCrBa15R5nKb/86/sr43eSAvbK7CXeIL1X649p/4mOvXI9TKZ6z."], ["created_at", "2015-03-01 03:29:09.524708"], ["updated_at", "2015-03-01 03:29:09.524708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.526445"], ["user_id", "1f746c00-bfc3-11e4-be8b-705681abff85"], ["created_at", "2015-03-01 03:29:09.527293"], ["updated_at", "2015-03-01 03:29:09.527293"], ["token", "Lt3yEsvXLCSJ54zWviUVRxEASgmyRyQAHw5xTkCB8rE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.529214"], ["user_id", "1f751f38-bfc3-11e4-974f-705681abff85"], ["created_at", "2015-03-01 03:29:09.529998"], ["updated_at", "2015-03-01 03:29:09.529998"], ["token", "owS9ozWsKj8RBxT0Y4fo87ZHPHMgDKhQ3P9MXX_cgGM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:09.533636"], ["updated_at", "2015-03-01 03:29:09.533636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f746c00-bfc3-11e4-be8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f76781a-bfc3-11e4-a669-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1f746c00-bfc3-11e4-be8b-705681abff85"], ["organization_id", "1f76781a-bfc3-11e4-a669-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:09.537044"], ["updated_at", "2015-03-01 03:29:09.537044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f751f38-bfc3-11e4-974f-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f76781a-bfc3-11e4-a669-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f751f38-bfc3-11e4-974f-705681abff85"], ["organization_id", "1f76781a-bfc3-11e4-a669-705681abff85"], ["created_at", "2015-03-01 03:29:09.542724"], ["updated_at", "2015-03-01 03:29:09.542724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '1f76781a-bfc3-11e4-a669-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "1f76781a-bfc3-11e4-a669-705681abff85"], ["created_at", "2015-03-01 03:29:09.546334"], ["updated_at", "2015-03-01 03:29:09.546334"], ["token", "yNOATlyP94I1unolZJAV3hrByrNPnQ7mDqUjCtVFYJI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:29:09 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$77UugOeiNbOo2JWO3YAUpu4U.iqgE0FiHtlCU0OMCglkz13jgJaU6"], ["created_at", "2015-03-01 03:29:09.566634"], ["updated_at", "2015-03-01 03:29:09.566634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$cF3L3PkbvMURFMhYS9nLeO0mJvA2cR88pozE9gTYc4VKkJ4T5cNDS"], ["created_at", "2015-03-01 03:29:09.571500"], ["updated_at", "2015-03-01 03:29:09.571500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.573335"], ["user_id", "1f7b835a-bfc3-11e4-9418-705681abff85"], ["created_at", "2015-03-01 03:29:09.574218"], ["updated_at", "2015-03-01 03:29:09.574218"], ["token", "r1v8NlcSalWqfXQwqmETL-n_cWsA8C6X0EhcT-k17f8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.576614"], ["user_id", "1f7c4484-bfc3-11e4-8b64-705681abff85"], ["created_at", "2015-03-01 03:29:09.577623"], ["updated_at", "2015-03-01 03:29:09.577623"], ["token", "NS2xhmSCntraLNuY2ZCiMXlBrT7zgSWQIq-A1r3PFoU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:09.582512"], ["updated_at", "2015-03-01 03:29:09.582512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f7b835a-bfc3-11e4-9418-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f7e08e6-bfc3-11e4-9df3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1f7b835a-bfc3-11e4-9418-705681abff85"], ["organization_id", "1f7e08e6-bfc3-11e4-9df3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:09.587740"], ["updated_at", "2015-03-01 03:29:09.587740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$R2YMjF7ZWuYJnDqnk.Ois.WhHK142IThwCQ6tDcp7KHO8fN5NABP."], ["created_at", "2015-03-01 03:29:09.592561"], ["updated_at", "2015-03-01 03:29:09.592561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:09.595940"], ["updated_at", "2015-03-01 03:29:09.595940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f7f7550-bfc3-11e4-9845-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f8000b0-bfc3-11e4-81f7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f7f7550-bfc3-11e4-9845-705681abff85"], ["organization_id", "1f8000b0-bfc3-11e4-81f7-705681abff85"], ["created_at", "2015-03-01 03:29:09.600663"], ["updated_at", "2015-03-01 03:29:09.600663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '1f7e08e6-bfc3-11e4-9df3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "1f7e08e6-bfc3-11e4-9df3-705681abff85"], ["created_at", "2015-03-01 03:29:09.604404"], ["updated_at", "2015-03-01 03:29:09.604404"], ["token", "oVf86OkRl4nEYxgrAJLWw-9jdKs3_1CgJG01_7plcTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:29:09 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:29:09.610711' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r1v8NlcSalWqfXQwqmETL-n_cWsA8C6X0EhcT-k17f8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:29:09.612287"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:29:09.613513"], ["id", "1f7cb1a8-bfc3-11e4-98ac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1f7b835a-bfc3-11e4-9418-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1f7b835a-bfc3-11e4-9418-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1f7b835a-bfc3-11e4-9418-705681abff85' LIMIT 1 [["organization_id", "1f7e08e6-bfc3-11e4-9df3-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "1f7e08e6-bfc3-11e4-9df3-705681abff85"]] Completed 200 OK in 11ms (Views: 2.0ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ECP1Ml/DPsbw6peejrVIreYDshiHiybqlUEQ88bokMnvzazxqwszq"], ["created_at", "2015-03-01 03:29:09.628229"], ["updated_at", "2015-03-01 03:29:09.628229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$QSYO1.7JXtoIuytd2xPe1.LSjeqoMa4z0vMdUZuoTedYsHplTd3La"], ["created_at", "2015-03-01 03:29:09.632832"], ["updated_at", "2015-03-01 03:29:09.632832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.635140"], ["user_id", "1f84e8d2-bfc3-11e4-96bc-705681abff85"], ["created_at", "2015-03-01 03:29:09.636009"], ["updated_at", "2015-03-01 03:29:09.636009"], ["token", "A5aE3mQfwzZkpvo3nwchOVbj0c9Gij7Ll3I4fbTpm6w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.637860"], ["user_id", "1f85a704-bfc3-11e4-ac8a-705681abff85"], ["created_at", "2015-03-01 03:29:09.638692"], ["updated_at", "2015-03-01 03:29:09.638692"], ["token", "ud6IUopXSIOrZRe7oj8O-92IDv2HDng9SAiZ95m3HiQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:09.642649"], ["updated_at", "2015-03-01 03:29:09.642649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f84e8d2-bfc3-11e4-96bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f871968-bfc3-11e4-8f89-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1f84e8d2-bfc3-11e4-96bc-705681abff85"], ["organization_id", "1f871968-bfc3-11e4-8f89-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:09.646066"], ["updated_at", "2015-03-01 03:29:09.646066"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$t87ZoQIryiq9D8exOEVXmueitiZFmxtH3GHNbPXb2D/F/9L2dZbF6"], ["created_at", "2015-03-01 03:29:09.650774"], ["updated_at", "2015-03-01 03:29:09.650774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:09.653761"], ["updated_at", "2015-03-01 03:29:09.653761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f8856ac-bfc3-11e4-89c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f88cb50-bfc3-11e4-a919-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f8856ac-bfc3-11e4-89c1-705681abff85"], ["organization_id", "1f88cb50-bfc3-11e4-a919-705681abff85"], ["created_at", "2015-03-01 03:29:09.659092"], ["updated_at", "2015-03-01 03:29:09.659092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '1f871968-bfc3-11e4-8f89-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "1f871968-bfc3-11e4-8f89-705681abff85"], ["created_at", "2015-03-01 03:29:09.663399"], ["updated_at", "2015-03-01 03:29:09.663399"], ["token", "N0KYo1W1b5sPZHqm9tq6ioiYO4tH2yUw5i6dYSY6xws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:29:09 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$cVnPSFwTA1DM1jXxabPptekiJSKSPo0UMho0PG8CARosilOP3qEpC"], ["created_at", "2015-03-01 03:29:09.678417"], ["updated_at", "2015-03-01 03:29:09.678417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$NgBPRASdEfklzd7fDO82sezY9yE7s8Ua43Yg4sEwiegvF86mF.49a"], ["created_at", "2015-03-01 03:29:09.684319"], ["updated_at", "2015-03-01 03:29:09.684319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.686469"], ["user_id", "1f8c93de-bfc3-11e4-bef1-705681abff85"], ["created_at", "2015-03-01 03:29:09.687437"], ["updated_at", "2015-03-01 03:29:09.687437"], ["token", "xz-JHBT6pv0r_Y7AcmaExGeHWYxKni-79mpc6iwy848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.689481"], ["user_id", "1f8d7c5e-bfc3-11e4-9ec1-705681abff85"], ["created_at", "2015-03-01 03:29:09.690419"], ["updated_at", "2015-03-01 03:29:09.690419"], ["token", "oZL5rXzQXH_52JQTBYbwdC87T7Vp5VzoOOdgCqFOh_4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:09.694901"], ["updated_at", "2015-03-01 03:29:09.694901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f8c93de-bfc3-11e4-bef1-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f8f1820-bfc3-11e4-a28b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1f8c93de-bfc3-11e4-bef1-705681abff85"], ["organization_id", "1f8f1820-bfc3-11e4-a28b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:09.699494"], ["updated_at", "2015-03-01 03:29:09.699494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f8d7c5e-bfc3-11e4-9ec1-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f8f1820-bfc3-11e4-a28b-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f8d7c5e-bfc3-11e4-9ec1-705681abff85"], ["organization_id", "1f8f1820-bfc3-11e4-a28b-705681abff85"], ["created_at", "2015-03-01 03:29:09.704764"], ["updated_at", "2015-03-01 03:29:09.704764"]]  (3.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '1f8f1820-bfc3-11e4-a28b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "1f8f1820-bfc3-11e4-a28b-705681abff85"], ["created_at", "2015-03-01 03:29:09.716986"], ["updated_at", "2015-03-01 03:29:09.716986"], ["token", "b5Y90Fj_Ay323BHt4Oo5FM7uLC5fcBoIbDSmZg05tUc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:29:09 -0800  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$UDO7WtOjTKyZAogXa4IY/usZn0OOS.Lx2RODUbwtio9L6db7SMX0S"], ["created_at", "2015-03-01 03:29:09.760547"], ["updated_at", "2015-03-01 03:29:09.760547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$sj7Wfgy0S8YQHeXZV9ymFulTrjZAnSSzFIDoW5YzaLgtJSjcJecPu"], ["created_at", "2015-03-01 03:29:09.765933"], ["updated_at", "2015-03-01 03:29:09.765933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.767955"], ["user_id", "1f992900-bfc3-11e4-9142-705681abff85"], ["created_at", "2015-03-01 03:29:09.768846"], ["updated_at", "2015-03-01 03:29:09.768846"], ["token", "j8qKdHymAnubNtpfsmE0YA-Lz3SkKDDIu-pBPIfPSyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.771064"], ["user_id", "1f99f0ce-bfc3-11e4-8299-705681abff85"], ["created_at", "2015-03-01 03:29:09.771838"], ["updated_at", "2015-03-01 03:29:09.771838"], ["token", "RFMiMDa6VeN0SxfjTT2FcfR4bi4o2CW9OPouY0NCrjw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:09.778138"], ["updated_at", "2015-03-01 03:29:09.778138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f992900-bfc3-11e4-9142-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f9befa0-bfc3-11e4-89c7-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1f992900-bfc3-11e4-9142-705681abff85"], ["organization_id", "1f9befa0-bfc3-11e4-89c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:09.784888"], ["updated_at", "2015-03-01 03:29:09.784888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f99f0ce-bfc3-11e4-8299-705681abff85' AND "clubhouse_memberships"."organization_id" = '1f9befa0-bfc3-11e4-89c7-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1f99f0ce-bfc3-11e4-8299-705681abff85"], ["organization_id", "1f9befa0-bfc3-11e4-89c7-705681abff85"], ["created_at", "2015-03-01 03:29:09.790415"], ["updated_at", "2015-03-01 03:29:09.790415"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '1f9befa0-bfc3-11e4-89c7-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "1f9befa0-bfc3-11e4-89c7-705681abff85"], ["created_at", "2015-03-01 03:29:09.809009"], ["updated_at", "2015-03-01 03:29:09.809009"], ["token", "SwMSJyBHUcVfW3Cs3bN5YSLjioHJO900wuMC25IJv6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1fa0a068-bfc3-11e4-a3d9-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:29:09 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$JRkCQwnHq0ep4icyoqtmR.GRE6FdVrEKAE.lyKsrTP6PwnL26AB5i"], ["created_at", "2015-03-01 03:29:09.829341"], ["updated_at", "2015-03-01 03:29:09.829341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$bzeHcwruzVAeNk/DyGB21e75P25traPR0oYupvYvCBX.w9QweLkvC"], ["created_at", "2015-03-01 03:29:09.842684"], ["updated_at", "2015-03-01 03:29:09.842684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.845848"], ["user_id", "1fa3c7e8-bfc3-11e4-becd-705681abff85"], ["created_at", "2015-03-01 03:29:09.846973"], ["updated_at", "2015-03-01 03:29:09.846973"], ["token", "dRDa3_J-1Ssv1-c5U4lRUUWoZQ_izn78WhFZd1O8hwA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.849259"], ["user_id", "1fa5bfee-bfc3-11e4-b168-705681abff85"], ["created_at", "2015-03-01 03:29:09.850116"], ["updated_at", "2015-03-01 03:29:09.850116"], ["token", "iA3KEq-K7RnnkMfZo6n9FjYK3hSoShPDAI_DezpxDEw"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:09.860326"], ["updated_at", "2015-03-01 03:29:09.860326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1fa3c7e8-bfc3-11e4-becd-705681abff85' AND "clubhouse_memberships"."organization_id" = '1fa8d620-bfc3-11e4-889a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1fa3c7e8-bfc3-11e4-becd-705681abff85"], ["organization_id", "1fa8d620-bfc3-11e4-889a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:09.868647"], ["updated_at", "2015-03-01 03:29:09.868647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1fa5bfee-bfc3-11e4-b168-705681abff85' AND "clubhouse_memberships"."organization_id" = '1fa8d620-bfc3-11e4-889a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1fa5bfee-bfc3-11e4-b168-705681abff85"], ["organization_id", "1fa8d620-bfc3-11e4-889a-705681abff85"], ["created_at", "2015-03-01 03:29:09.872891"], ["updated_at", "2015-03-01 03:29:09.872891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '1fa8d620-bfc3-11e4-889a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "1fa8d620-bfc3-11e4-889a-705681abff85"], ["created_at", "2015-03-01 03:29:09.879516"], ["updated_at", "2015-03-01 03:29:09.879516"], ["token", "KusELnp6388weBD6hIpw1tgMfYGY2c_TnBQs9DZ2vTI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1fab6ef8-bfc3-11e4-ad29-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:29:09 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$f.UOpn7jbuwEVXHwP8fwnO7jrB2jZX8YBsc3YuWLUYgXSlwMfPPZG"], ["created_at", "2015-03-01 03:29:09.899978"], ["updated_at", "2015-03-01 03:29:09.899978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$IdD9PnQDevDGT9ohet0XoeIf0pLJqIbV73AyJo58BrJQWSmG/DYZW"], ["created_at", "2015-03-01 03:29:09.907157"], ["updated_at", "2015-03-01 03:29:09.907157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.908962"], ["user_id", "1fae6fd6-bfc3-11e4-860b-705681abff85"], ["created_at", "2015-03-01 03:29:09.910238"], ["updated_at", "2015-03-01 03:29:09.910238"], ["token", "qa4KXZZXFSxYBRpHepHtTdtl8CunabdYnB-bnBmaLzM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.912435"], ["user_id", "1faf7ade-bfc3-11e4-8422-705681abff85"], ["created_at", "2015-03-01 03:29:09.913217"], ["updated_at", "2015-03-01 03:29:09.913217"], ["token", "4JUhWHpj4vhiDV1g1tCDp2GkTvMF006W3dLILFcZ3io"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (21.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:09.944418"], ["updated_at", "2015-03-01 03:29:09.944418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1fae6fd6-bfc3-11e4-860b-705681abff85' AND "clubhouse_memberships"."organization_id" = '1fb596bc-bfc3-11e4-9232-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1fae6fd6-bfc3-11e4-860b-705681abff85"], ["organization_id", "1fb596bc-bfc3-11e4-9232-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:09.951562"], ["updated_at", "2015-03-01 03:29:09.951562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1faf7ade-bfc3-11e4-8422-705681abff85' AND "clubhouse_memberships"."organization_id" = '1fb596bc-bfc3-11e4-9232-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1faf7ade-bfc3-11e4-8422-705681abff85"], ["organization_id", "1fb596bc-bfc3-11e4-9232-705681abff85"], ["created_at", "2015-03-01 03:29:09.956173"], ["updated_at", "2015-03-01 03:29:09.956173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '1fb596bc-bfc3-11e4-9232-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "1fb596bc-bfc3-11e4-9232-705681abff85"], ["created_at", "2015-03-01 03:29:09.960698"], ["updated_at", "2015-03-01 03:29:09.960698"], ["token", "vMMBdH36qLWSyxW09jRc63qEGaxu0NbikISjZWGezXQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:29:09 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$C9wmo108kNHkxR7Mt1R9Bu/InI5WT/9AA9r.tDxrJWa6wdVOP.QCa"], ["created_at", "2015-03-01 03:29:09.987015"], ["updated_at", "2015-03-01 03:29:09.987015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$0uU5.q2Vw72PtJyxq7PCbuYe/yPjk4fQ4KKc70IcF1SZjvo3ArQXK"], ["created_at", "2015-03-01 03:29:09.994083"], ["updated_at", "2015-03-01 03:29:09.994083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.995971"], ["user_id", "1fbbcae6-bfc3-11e4-86a5-705681abff85"], ["created_at", "2015-03-01 03:29:09.996867"], ["updated_at", "2015-03-01 03:29:09.996867"], ["token", "A4NOE99sg0SJal42VQ68KdT5BPFBAl3elhBT2mkVEfA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:09.999779"], ["user_id", "1fbcbf96-bfc3-11e4-9b3d-705681abff85"], ["created_at", "2015-03-01 03:29:10.000879"], ["updated_at", "2015-03-01 03:29:10.000879"], ["token", "d1r3sQqi9JuUY94auu_ih_WZtxxGTxfiJnu-dmzON1A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:10.005615"], ["updated_at", "2015-03-01 03:29:10.005615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1fbbcae6-bfc3-11e4-86a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '1fbe8880-bfc3-11e4-935a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1fbbcae6-bfc3-11e4-86a5-705681abff85"], ["organization_id", "1fbe8880-bfc3-11e4-935a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:10.013253"], ["updated_at", "2015-03-01 03:29:10.013253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1fbcbf96-bfc3-11e4-9b3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '1fbe8880-bfc3-11e4-935a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1fbcbf96-bfc3-11e4-9b3d-705681abff85"], ["organization_id", "1fbe8880-bfc3-11e4-935a-705681abff85"], ["created_at", "2015-03-01 03:29:10.018507"], ["updated_at", "2015-03-01 03:29:10.018507"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '1fbe8880-bfc3-11e4-935a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "1fbe8880-bfc3-11e4-935a-705681abff85"], ["created_at", "2015-03-01 03:29:10.023416"], ["updated_at", "2015-03-01 03:29:10.023416"], ["token", "CTutdTEBsf_Q0Rct2aeRDMTmcV1ij_x2u5ckt1juOMo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:29:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:29:10.032172' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A4NOE99sg0SJal42VQ68KdT5BPFBAl3elhBT2mkVEfA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:29:10.034556"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:29:10.036015"], ["id", "1fbd402e-bfc3-11e4-9ae1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1fbbcae6-bfc3-11e4-86a5-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1fbbcae6-bfc3-11e4-86a5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1fbbcae6-bfc3-11e4-86a5-705681abff85' LIMIT 1 [["organization_id", "1fbe8880-bfc3-11e4-935a-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1fbe8880-bfc3-11e4-935a-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '1fbe8880-bfc3-11e4-935a-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 32ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$dg..J8l8.uYgYvfiYEvate3hoUuNpf1sWIg5K.lub.vXd/rUHZMhK"], ["created_at", "2015-03-01 03:29:10.071182"], ["updated_at", "2015-03-01 03:29:10.071182"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$yL4AQM/06ytB.K6hl93N.unoWhfVeERxwWueL3le3vLbC47b4eVMy"], ["created_at", "2015-03-01 03:29:10.076943"], ["updated_at", "2015-03-01 03:29:10.076943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:10.079180"], ["user_id", "1fc8872c-bfc3-11e4-8513-705681abff85"], ["created_at", "2015-03-01 03:29:10.080123"], ["updated_at", "2015-03-01 03:29:10.080123"], ["token", "Safq12d6SrW_YJMKia52chhbG8q0SoIinaBTFLXZx-w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:10.082491"], ["user_id", "1fc96f8e-bfc3-11e4-a738-705681abff85"], ["created_at", "2015-03-01 03:29:10.083719"], ["updated_at", "2015-03-01 03:29:10.083719"], ["token", "1usrcGc3Yxq9pMf1BgskFWHrzF8V0M6inbaqHjXhmdw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:10.087675"], ["updated_at", "2015-03-01 03:29:10.087675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1fc8872c-bfc3-11e4-8513-705681abff85' AND "clubhouse_memberships"."organization_id" = '1fcb051a-bfc3-11e4-8032-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1fc8872c-bfc3-11e4-8513-705681abff85"], ["organization_id", "1fcb051a-bfc3-11e4-8032-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:10.091921"], ["updated_at", "2015-03-01 03:29:10.091921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1fc96f8e-bfc3-11e4-a738-705681abff85' AND "clubhouse_memberships"."organization_id" = '1fcb051a-bfc3-11e4-8032-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1fc96f8e-bfc3-11e4-a738-705681abff85"], ["organization_id", "1fcb051a-bfc3-11e4-8032-705681abff85"], ["created_at", "2015-03-01 03:29:10.095399"], ["updated_at", "2015-03-01 03:29:10.095399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '1fcb051a-bfc3-11e4-8032-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "1fcb051a-bfc3-11e4-8032-705681abff85"], ["created_at", "2015-03-01 03:29:10.100067"], ["updated_at", "2015-03-01 03:29:10.100067"], ["token", "o7OhMby8LaRRbvh4FMCFV-JHAy6_R7wFV2wCZDryNMs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:29:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:29:10.107574' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Safq12d6SrW_YJMKia52chhbG8q0SoIinaBTFLXZx-w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:29:10.109248"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:29:10.110616"], ["id", "1fc9ef54-bfc3-11e4-af50-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1fc8872c-bfc3-11e4-8513-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1fc8872c-bfc3-11e4-8513-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1fc8872c-bfc3-11e4-8513-705681abff85' LIMIT 1 [["organization_id", "1fcb051a-bfc3-11e4-8032-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1fcb051a-bfc3-11e4-8032-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '1fcb051a-bfc3-11e4-8032-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "1fcb051a-bfc3-11e4-8032-705681abff85"], ["created_at", "2015-03-01 03:29:10.125170"], ["updated_at", "2015-03-01 03:29:10.125170"], ["token", "gcMOT3YdlAO2otQHn4NNVxhhWKsmV83PXf4u0mJR-lI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 50cb5074-0359-4b30-917c-a98552fa4703) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1fd0e624-bfc3-11e4-98d9-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1fd0e624-bfc3-11e4-98d9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [50cb5074-0359-4b30-917c-a98552fa4703] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1fd0e624-bfc3-11e4-98d9-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [50cb5074-0359-4b30-917c-a98552fa4703] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1fcb051a-bfc3-11e4-8032-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [50cb5074-0359-4b30-917c-a98552fa4703] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [50cb5074-0359-4b30-917c-a98552fa4703] Clubhouse::Mailer#invitation: processed outbound mail in 261.0ms [ActiveJob] [ActionMailer::DeliveryJob] [50cb5074-0359-4b30-917c-a98552fa4703] Sent mail to email@example.com (17.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [50cb5074-0359-4b30-917c-a98552fa4703] Date: Sat, 28 Feb 2015 19:29:10 -0800 From: from@example.com To: email@example.com Message-ID: <54f287866997b_12e2d3fedf6463bf07274d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/gcMOT3YdlAO2otQHn4NNVxhhWKsmV83PXf4u0mJR-lI If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [50cb5074-0359-4b30-917c-a98552fa4703] Performed ActionMailer::DeliveryJob from Inline(mailers) in 279.43ms Completed 201 Created in 330ms (Views: 0.6ms | ActiveRecord: 4.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$TmUvN.quYtScWZ2w1SJJ7urIxCrC/56kX/0dMXk55/Ls64CQRiBiC"], ["created_at", "2015-03-01 03:29:10.446591"], ["updated_at", "2015-03-01 03:29:10.446591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$r.QTt2pXZY9I/bKqUarjBeTa9WQ1qJuWGL/xbte.0HWsGVbXIW9kW"], ["created_at", "2015-03-01 03:29:10.451549"], ["updated_at", "2015-03-01 03:29:10.451549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:10.453407"], ["user_id", "2001cd20-bfc3-11e4-901c-705681abff85"], ["created_at", "2015-03-01 03:29:10.454287"], ["updated_at", "2015-03-01 03:29:10.454287"], ["token", "G1Pi-KczYB8pl_DszXkvGz1N9xD-jEJyzmsMSgSFeAU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:29:10.456762"], ["user_id", "20028c6a-bfc3-11e4-ab64-705681abff85"], ["created_at", "2015-03-01 03:29:10.458382"], ["updated_at", "2015-03-01 03:29:10.458382"], ["token", "Tn8OboTGnkSUSmy07cAQ__cN8hvs64FTcTky9G-64uI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:29:10.462475"], ["updated_at", "2015-03-01 03:29:10.462475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2001cd20-bfc3-11e4-901c-705681abff85' AND "clubhouse_memberships"."organization_id" = '200436c8-bfc3-11e4-8fd4-705681abff85') LIMIT 1 SQL (6.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2001cd20-bfc3-11e4-901c-705681abff85"], ["organization_id", "200436c8-bfc3-11e4-8fd4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:29:10.466028"], ["updated_at", "2015-03-01 03:29:10.466028"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20028c6a-bfc3-11e4-ab64-705681abff85' AND "clubhouse_memberships"."organization_id" = '200436c8-bfc3-11e4-8fd4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20028c6a-bfc3-11e4-ab64-705681abff85"], ["organization_id", "200436c8-bfc3-11e4-8fd4-705681abff85"], ["created_at", "2015-03-01 03:29:10.477609"], ["updated_at", "2015-03-01 03:29:10.477609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '200436c8-bfc3-11e4-8fd4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "200436c8-bfc3-11e4-8fd4-705681abff85"], ["created_at", "2015-03-01 03:29:10.481768"], ["updated_at", "2015-03-01 03:29:10.481768"], ["token", "PcT0Ydr6wy8KzfB6KRdIoRQuPRpRztoY2gRXZB5GwWY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:29:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:29:10.487428' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "G1Pi-KczYB8pl_DszXkvGz1N9xD-jEJyzmsMSgSFeAU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:29:10.488969"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:29:10.490301"], ["id", "2002fdbc-bfc3-11e4-bb5b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2001cd20-bfc3-11e4-901c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2001cd20-bfc3-11e4-901c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2001cd20-bfc3-11e4-901c-705681abff85' LIMIT 1 [["organization_id", "200436c8-bfc3-11e4-8fd4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "200436c8-bfc3-11e4-8fd4-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '200436c8-bfc3-11e4-8fd4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "200436c8-bfc3-11e4-8fd4-705681abff85"], ["created_at", "2015-03-01 03:29:10.500754"], ["updated_at", "2015-03-01 03:29:10.500754"], ["token", "n-9kVvs1XxsZI3nxIzc187Gg5IE2aYQOLFCx4bnhuC8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8a90f80c-289f-4024-b77d-9a0da7f91e3f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/200a1b2e-bfc3-11e4-aa91-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "200a1b2e-bfc3-11e4-aa91-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8a90f80c-289f-4024-b77d-9a0da7f91e3f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/200a1b2e-bfc3-11e4-aa91-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [8a90f80c-289f-4024-b77d-9a0da7f91e3f] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "200436c8-bfc3-11e4-8fd4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8a90f80c-289f-4024-b77d-9a0da7f91e3f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [8a90f80c-289f-4024-b77d-9a0da7f91e3f] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [8a90f80c-289f-4024-b77d-9a0da7f91e3f] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [8a90f80c-289f-4024-b77d-9a0da7f91e3f] Date: Sat, 28 Feb 2015 19:29:10 -0800 From: from@example.com To: email@example.com Message-ID: <54f287867c5dc_12e2d3fedf6463bf07286d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/n-9kVvs1XxsZI3nxIzc187Gg5IE2aYQOLFCx4bnhuC8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [8a90f80c-289f-4024-b77d-9a0da7f91e3f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.78ms Completed 201 Created in 24ms (Views: 0.4ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$lGdqc4xiv8CVz6fhm4F3IONCSFX2qUfMMCiMGomZHPCF6ow3XQoQK"], ["created_at", "2015-03-01 03:32:40.000794"], ["updated_at", "2015-03-01 03:32:40.000794"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$kUWMz5Dxcjow5d5T7j.hRO/kfUU1x8bufQlNZ3N0mDfo6WfQCqK36"], ["created_at", "2015-03-01 03:32:40.029281"], ["updated_at", "2015-03-01 03:32:40.029281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.037893"], ["user_id", "9ce97392-bfc3-11e4-b3d9-705681abff85"], ["created_at", "2015-03-01 03:32:40.044770"], ["updated_at", "2015-03-01 03:32:40.044770"], ["token", "_y43-3u6eMgnn8f6AfvyAfeuNHow089O6-k9mAnJnfw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.048196"], ["user_id", "9ced8e82-bfc3-11e4-ba5e-705681abff85"], ["created_at", "2015-03-01 03:32:40.049975"], ["updated_at", "2015-03-01 03:32:40.049975"], ["token", "lMDKSLu8sZ7FdMe_lD5pFRRlu-i7-XJFy0e4gXrNLQQ"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (21.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.105656"], ["updated_at", "2015-03-01 03:32:40.105656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9ce97392-bfc3-11e4-b3d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '9cf94ca4-bfc3-11e4-9044-705681abff85') LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9ce97392-bfc3-11e4-b3d9-705681abff85"], ["organization_id", "9cf94ca4-bfc3-11e4-9044-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:40.152565"], ["updated_at", "2015-03-01 03:32:40.152565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9ced8e82-bfc3-11e4-ba5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '9cf94ca4-bfc3-11e4-9044-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9ced8e82-bfc3-11e4-ba5e-705681abff85"], ["organization_id", "9cf94ca4-bfc3-11e4-9044-705681abff85"], ["created_at", "2015-03-01 03:32:40.158945"], ["updated_at", "2015-03-01 03:32:40.158945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '9cf94ca4-bfc3-11e4-9044-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "9cf94ca4-bfc3-11e4-9044-705681abff85"], ["created_at", "2015-03-01 03:32:40.169354"], ["updated_at", "2015-03-01 03:32:40.169354"], ["token", "wEUtC-a9IjOZbWW6AJUmr0Z_GHQTRPpCywy6LQN0zf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:32:40 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$.NXES.9CH4haU9y5j5vWce5nuFYXa3vYr5J7fXJtPgtPbi3hMkSy6"], ["created_at", "2015-03-01 03:32:40.207691"], ["updated_at", "2015-03-01 03:32:40.207691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$POHXamJZdobO0RWJdNM3s.6VSszHtT5/AgZETnwnuhPyh4pl3Z5Uq"], ["created_at", "2015-03-01 03:32:40.212378"], ["updated_at", "2015-03-01 03:32:40.212378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.213912"], ["user_id", "9d08d192-bfc3-11e4-ab50-705681abff85"], ["created_at", "2015-03-01 03:32:40.214738"], ["updated_at", "2015-03-01 03:32:40.214738"], ["token", "JSjk4uMBYqxVA1oce3YHS50IHAB85DMm7fI95aiXZd0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.216468"], ["user_id", "9d097d18-bfc3-11e4-9801-705681abff85"], ["created_at", "2015-03-01 03:32:40.217212"], ["updated_at", "2015-03-01 03:32:40.217212"], ["token", "U_t8bopcbKqJjRWpdmLmbhm-zSH4YbMw2UDidLcSe_A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.220648"], ["updated_at", "2015-03-01 03:32:40.220648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d08d192-bfc3-11e4-ab50-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d0ac4de-bfc3-11e4-9c76-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d08d192-bfc3-11e4-ab50-705681abff85"], ["organization_id", "9d0ac4de-bfc3-11e4-9c76-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:40.224509"], ["updated_at", "2015-03-01 03:32:40.224509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d097d18-bfc3-11e4-9801-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d0ac4de-bfc3-11e4-9c76-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d097d18-bfc3-11e4-9801-705681abff85"], ["organization_id", "9d0ac4de-bfc3-11e4-9c76-705681abff85"], ["created_at", "2015-03-01 03:32:40.228092"], ["updated_at", "2015-03-01 03:32:40.228092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '9d0ac4de-bfc3-11e4-9c76-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "9d0ac4de-bfc3-11e4-9c76-705681abff85"], ["created_at", "2015-03-01 03:32:40.231623"], ["updated_at", "2015-03-01 03:32:40.231623"], ["token", "Wa7vTQJCC0Ki2FMdcQtut5N8qYTvx3qvYBoWQMMnfM0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/9d0c71e4-bfc3-11e4-baff-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:32:40 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>nil, "organization"=>"org", "id"=>"9d0c71e4-bfc3-11e4-baff-705681abff85", "invitation"=>{"admin"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:32:40.238752' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JSjk4uMBYqxVA1oce3YHS50IHAB85DMm7fI95aiXZd0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:32:40.246512"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:32:40.247847"], ["id", "9d09e03c-bfc3-11e4-9c8b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9d08d192-bfc3-11e4-ab50-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9d08d192-bfc3-11e4-ab50-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9d08d192-bfc3-11e4-ab50-705681abff85' LIMIT 1 [["organization_id", "9d0ac4de-bfc3-11e4-9c76-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "9d0ac4de-bfc3-11e4-9c76-705681abff85"], ["id", "9d0c71e4-bfc3-11e4-baff-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9d0ac4de-bfc3-11e4-9c76-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."id" != '9d0c71e4-bfc3-11e4-baff-705681abff85' AND "clubhouse_invitations"."organization_id" = '9d0ac4de-bfc3-11e4-9c76-705681abff85') LIMIT 1 SQL (26.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", nil], ["updated_at", "2015-03-01 03:32:40.280949"], ["id", "9d0c71e4-bfc3-11e4-baff-705681abff85"]] PG::NotNullViolation: ERROR: null value in column "admin" violates not-null constraint DETAIL: Failing row contains (9d0c71e4-bfc3-11e4-baff-705681abff85, 9d0ac4de-bfc3-11e4-9c76-705681abff85, invitation-2@example.com, Wa7vTQJCC0Ki2FMdcQtut5N8qYTvx3qvYBoWQMMnfM0, null, 2015-03-01 03:32:40.231623, 2015-03-01 03:32:40.280949). : UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 71ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$1TQWWtQhcc1UOIYCuHBiEOn4zaADxxvkS4RspxrOKGeMx2wFeO8Je"], ["created_at", "2015-03-01 03:32:40.323398"], ["updated_at", "2015-03-01 03:32:40.323398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$txFCLrd02PaQl3WSkyHKausAVsFzYLRpWBrxyiXFrU50UTYbWughS"], ["created_at", "2015-03-01 03:32:40.331819"], ["updated_at", "2015-03-01 03:32:40.331819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.334969"], ["user_id", "9d1a8a40-bfc3-11e4-825a-705681abff85"], ["created_at", "2015-03-01 03:32:40.338550"], ["updated_at", "2015-03-01 03:32:40.338550"], ["token", "k97SXtudSOrm2lvFIBNT2sZd63m3NYpgEjfHv1XzJ2c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.341991"], ["user_id", "9d1bcde2-bfc3-11e4-ba9f-705681abff85"], ["created_at", "2015-03-01 03:32:40.343505"], ["updated_at", "2015-03-01 03:32:40.343505"], ["token", "ykta74opsyc-HZrmagGgdDMVXLOeRdlTqYbQbfaQghM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.349607"], ["updated_at", "2015-03-01 03:32:40.349607"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d1a8a40-bfc3-11e4-825a-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d1ea24c-bfc3-11e4-ad2f-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d1a8a40-bfc3-11e4-825a-705681abff85"], ["organization_id", "9d1ea24c-bfc3-11e4-ad2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:40.360538"], ["updated_at", "2015-03-01 03:32:40.360538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d1bcde2-bfc3-11e4-ba9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d1ea24c-bfc3-11e4-ad2f-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d1bcde2-bfc3-11e4-ba9f-705681abff85"], ["organization_id", "9d1ea24c-bfc3-11e4-ad2f-705681abff85"], ["created_at", "2015-03-01 03:32:40.366996"], ["updated_at", "2015-03-01 03:32:40.366996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '9d1ea24c-bfc3-11e4-ad2f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "9d1ea24c-bfc3-11e4-ad2f-705681abff85"], ["created_at", "2015-03-01 03:32:40.375197"], ["updated_at", "2015-03-01 03:32:40.375197"], ["token", "7G1JGoQzbE2uDxjR9LqZk3QYmTBxbuHV9fY7N3frbs0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/9d2290e6-bfc3-11e4-b104-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:32:40 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"9d2290e6-bfc3-11e4-b104-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:32:40.383792' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k97SXtudSOrm2lvFIBNT2sZd63m3NYpgEjfHv1XzJ2c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:32:40.385498"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:32:40.386699"], ["id", "9d1cf2e4-bfc3-11e4-9c39-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9d1a8a40-bfc3-11e4-825a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9d1a8a40-bfc3-11e4-825a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9d1a8a40-bfc3-11e4-825a-705681abff85' LIMIT 1 [["organization_id", "9d1ea24c-bfc3-11e4-ad2f-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "9d1ea24c-bfc3-11e4-ad2f-705681abff85"], ["id", "9d2290e6-bfc3-11e4-b104-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9d1ea24c-bfc3-11e4-ad2f-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."id" != '9d2290e6-bfc3-11e4-b104-705681abff85' AND "clubhouse_invitations"."organization_id" = '9d1ea24c-bfc3-11e4-ad2f-705681abff85') LIMIT 1 SQL (0.6ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 03:32:40.397662"], ["id", "9d2290e6-bfc3-11e4-b104-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.5ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$fDra5hBa.ItjK.p5HmrpCO7NiSRx2/SHTy5V9PLSW0l7dek4wWrQa"], ["created_at", "2015-03-01 03:32:40.409733"], ["updated_at", "2015-03-01 03:32:40.409733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$BI0dMZPciZwYmjaDQTSj3OqhW3ZJe.xDDVDrjBV2ZReaZt.cvbOH6"], ["created_at", "2015-03-01 03:32:40.414269"], ["updated_at", "2015-03-01 03:32:40.414269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.415757"], ["user_id", "9d27a374-bfc3-11e4-9eb1-705681abff85"], ["created_at", "2015-03-01 03:32:40.416665"], ["updated_at", "2015-03-01 03:32:40.416665"], ["token", "duc1EBwTB56elXAPRMjBtJLsd1mYj4Y6cePZQnzX78A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.425274"], ["user_id", "9d284a36-bfc3-11e4-acc1-705681abff85"], ["created_at", "2015-03-01 03:32:40.426051"], ["updated_at", "2015-03-01 03:32:40.426051"], ["token", "K27v5FYtVKMI0BJHtc2pkPuqhsmHu59kp6PmWhW-0oY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.429316"], ["updated_at", "2015-03-01 03:32:40.429316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d27a374-bfc3-11e4-9eb1-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d2a971e-bfc3-11e4-a5a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d27a374-bfc3-11e4-9eb1-705681abff85"], ["organization_id", "9d2a971e-bfc3-11e4-a5a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:40.432709"], ["updated_at", "2015-03-01 03:32:40.432709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$l8Xkma4egQ0fRYhMFQM1mulMZzsEDYKLmMkbl4ETfHsnAHXCIaK02"], ["created_at", "2015-03-01 03:32:40.436986"], ["updated_at", "2015-03-01 03:32:40.436986"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.441427"], ["updated_at", "2015-03-01 03:32:40.441427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d2bc29c-bfc3-11e4-92ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d2c7f16-bfc3-11e4-bbaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d2bc29c-bfc3-11e4-92ed-705681abff85"], ["organization_id", "9d2c7f16-bfc3-11e4-bbaa-705681abff85"], ["created_at", "2015-03-01 03:32:40.445293"], ["updated_at", "2015-03-01 03:32:40.445293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '9d2a971e-bfc3-11e4-a5a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "9d2a971e-bfc3-11e4-a5a5-705681abff85"], ["created_at", "2015-03-01 03:32:40.449285"], ["updated_at", "2015-03-01 03:32:40.449285"], ["token", "aZJuQvaFEblObgwfc-Q9uTZeA7hGDBrC99KTDFfFkr0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:32:40 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:32:40.455462' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "duc1EBwTB56elXAPRMjBtJLsd1mYj4Y6cePZQnzX78A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:32:40.457530"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:32:40.458738"], ["id", "9d28af94-bfc3-11e4-a348-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9d27a374-bfc3-11e4-9eb1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9d27a374-bfc3-11e4-9eb1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9d27a374-bfc3-11e4-9eb1-705681abff85' LIMIT 1 [["organization_id", "9d2a971e-bfc3-11e4-a5a5-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "9d2a971e-bfc3-11e4-a5a5-705681abff85"]] Completed 200 OK in 12ms (Views: 2.6ms | ActiveRecord: 1.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$hfTdDvcgFcFGafsqHBNPIeQLe3piyMnXaZc.iZ50ZBQsc3LreKtuG"], ["created_at", "2015-03-01 03:32:40.475363"], ["updated_at", "2015-03-01 03:32:40.475363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$st8MdHxcPt0IKcUSJp0RNe1U4F..Ev2TTu5QBY.m7nicGPRW/CMNi"], ["created_at", "2015-03-01 03:32:40.479896"], ["updated_at", "2015-03-01 03:32:40.479896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.481492"], ["user_id", "9d319f28-bfc3-11e4-a2ee-705681abff85"], ["created_at", "2015-03-01 03:32:40.482284"], ["updated_at", "2015-03-01 03:32:40.482284"], ["token", "zTM-3pDMRMNCObJN0E9rdZ4s1AEk38CsG3JGTo0dWkM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.484266"], ["user_id", "9d325026-bfc3-11e4-9d90-705681abff85"], ["created_at", "2015-03-01 03:32:40.485057"], ["updated_at", "2015-03-01 03:32:40.485057"], ["token", "Ja3ubdfo0sJBldsfEH_6qz1A8YJRfwFx3ajaj2lqVDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.488411"], ["updated_at", "2015-03-01 03:32:40.488411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d319f28-bfc3-11e4-a2ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d33a0ca-bfc3-11e4-8980-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d319f28-bfc3-11e4-a2ee-705681abff85"], ["organization_id", "9d33a0ca-bfc3-11e4-8980-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:40.492246"], ["updated_at", "2015-03-01 03:32:40.492246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$64WHyUzzMqZSOKU.nCQlNeBCU6moS//uPtRG6IC16Q06CjWdcmxRa"], ["created_at", "2015-03-01 03:32:40.496752"], ["updated_at", "2015-03-01 03:32:40.496752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.499750"], ["updated_at", "2015-03-01 03:32:40.499750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d34e2e6-bfc3-11e4-9ff5-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d355492-bfc3-11e4-8b1d-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d34e2e6-bfc3-11e4-9ff5-705681abff85"], ["organization_id", "9d355492-bfc3-11e4-8b1d-705681abff85"], ["created_at", "2015-03-01 03:32:40.503498"], ["updated_at", "2015-03-01 03:32:40.503498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '9d33a0ca-bfc3-11e4-8980-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "9d33a0ca-bfc3-11e4-8980-705681abff85"], ["created_at", "2015-03-01 03:32:40.509509"], ["updated_at", "2015-03-01 03:32:40.509509"], ["token", "lHci6KJd0oTP3oEGQQTnqmHtySuG115coUcQieKQGkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:32:40 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$vKmu7SH4WcFbhsZyA228dOS8yheJ8tKIe9b7ByoqfftlfoVi3k8cm"], ["created_at", "2015-03-01 03:32:40.522780"], ["updated_at", "2015-03-01 03:32:40.522780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$7AorFdQWHpj7vCZO4uZ91eAHmO89l70tqspHUW/qZhFl5vUm.W2X6"], ["created_at", "2015-03-01 03:32:40.528283"], ["updated_at", "2015-03-01 03:32:40.528283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.529932"], ["user_id", "9d38f3d6-bfc3-11e4-b684-705681abff85"], ["created_at", "2015-03-01 03:32:40.530717"], ["updated_at", "2015-03-01 03:32:40.530717"], ["token", "vY29pR_t-ZEle04R3KYzOUGkE6dt2NWCkbi0EtAShHs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.532514"], ["user_id", "9d39b37a-bfc3-11e4-988e-705681abff85"], ["created_at", "2015-03-01 03:32:40.533352"], ["updated_at", "2015-03-01 03:32:40.533352"], ["token", "KvtgOCn7HvQsppU0DqYNrjZ46yS6njlxc5lyIECEGZA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.537034"], ["updated_at", "2015-03-01 03:32:40.537034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d38f3d6-bfc3-11e4-b684-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d3b084c-bfc3-11e4-8ddd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d38f3d6-bfc3-11e4-b684-705681abff85"], ["organization_id", "9d3b084c-bfc3-11e4-8ddd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:40.540819"], ["updated_at", "2015-03-01 03:32:40.540819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d39b37a-bfc3-11e4-988e-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d3b084c-bfc3-11e4-8ddd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d39b37a-bfc3-11e4-988e-705681abff85"], ["organization_id", "9d3b084c-bfc3-11e4-8ddd-705681abff85"], ["created_at", "2015-03-01 03:32:40.544064"], ["updated_at", "2015-03-01 03:32:40.544064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '9d3b084c-bfc3-11e4-8ddd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "9d3b084c-bfc3-11e4-8ddd-705681abff85"], ["created_at", "2015-03-01 03:32:40.547530"], ["updated_at", "2015-03-01 03:32:40.547530"], ["token", "IgO7PpCFKmxQ96ddAaZH6NhyTTjo-z0TR9-bJawjzuo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/9d3cb7b4-bfc3-11e4-bcf8-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:32:40 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"9d3cb7b4-bfc3-11e4-bcf8-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:32:40.553493' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vY29pR_t-ZEle04R3KYzOUGkE6dt2NWCkbi0EtAShHs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:32:40.555007"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:32:40.556092"], ["id", "9d3a17f2-bfc3-11e4-80b1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9d38f3d6-bfc3-11e4-b684-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9d38f3d6-bfc3-11e4-b684-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9d38f3d6-bfc3-11e4-b684-705681abff85' LIMIT 1 [["organization_id", "9d3b084c-bfc3-11e4-8ddd-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "9d3b084c-bfc3-11e4-8ddd-705681abff85"], ["id", "9d3cb7b4-bfc3-11e4-bcf8-705681abff85"]] Completed 200 OK in 18ms (Views: 7.3ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$QehboQR7rsrF3sz37iFPGeH9b76Wbphr3VdEu4ikWmbcl.PNwnTvO"], ["created_at", "2015-03-01 03:32:40.578852"], ["updated_at", "2015-03-01 03:32:40.578852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$BqISJh2AhBk3rqZUG4FBhe8.gLluo9grrFHp48MQ7y9J3uePbmW2C"], ["created_at", "2015-03-01 03:32:40.583269"], ["updated_at", "2015-03-01 03:32:40.583269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.584965"], ["user_id", "9d416e76-bfc3-11e4-9c6d-705681abff85"], ["created_at", "2015-03-01 03:32:40.585846"], ["updated_at", "2015-03-01 03:32:40.585846"], ["token", "5mhe-kkBrdrvLogdbq0F7Zp0wfzaD1ZzRNoXj90GO6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.587569"], ["user_id", "9d4219c0-bfc3-11e4-acb5-705681abff85"], ["created_at", "2015-03-01 03:32:40.588278"], ["updated_at", "2015-03-01 03:32:40.588278"], ["token", "sFPDfMhn8K2Y7a86zIvqAVsQ749J3ZcfKrmiGKGF3cY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.591684"], ["updated_at", "2015-03-01 03:32:40.591684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d416e76-bfc3-11e4-9c6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d435d6c-bfc3-11e4-b83b-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d416e76-bfc3-11e4-9c6d-705681abff85"], ["organization_id", "9d435d6c-bfc3-11e4-b83b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:40.595153"], ["updated_at", "2015-03-01 03:32:40.595153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d4219c0-bfc3-11e4-acb5-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d435d6c-bfc3-11e4-b83b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d4219c0-bfc3-11e4-acb5-705681abff85"], ["organization_id", "9d435d6c-bfc3-11e4-b83b-705681abff85"], ["created_at", "2015-03-01 03:32:40.601179"], ["updated_at", "2015-03-01 03:32:40.601179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '9d435d6c-bfc3-11e4-b83b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "9d435d6c-bfc3-11e4-b83b-705681abff85"], ["created_at", "2015-03-01 03:32:40.604677"], ["updated_at", "2015-03-01 03:32:40.604677"], ["token", "BSOEMYmoWkVAjeTmBJHqHN3ZTYuQ8KO_un2d7yI7ZuM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:32:40 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$WLAiMoVll1PgBzMINrcNv.VN.kemuzE0fhVhjCUqbUHnguIvUN8rS"], ["created_at", "2015-03-01 03:32:40.618257"], ["updated_at", "2015-03-01 03:32:40.618257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$jsyrGbpToomb.8g1FdRHkOYZeb4ixGHSJKSwu3WKBhbYW2V.PSKQm"], ["created_at", "2015-03-01 03:32:40.622930"], ["updated_at", "2015-03-01 03:32:40.622930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.625413"], ["user_id", "9d476f60-bfc3-11e4-9416-705681abff85"], ["created_at", "2015-03-01 03:32:40.626294"], ["updated_at", "2015-03-01 03:32:40.626294"], ["token", "nbDCtzXdiad3XAYFbvEQNfn-yVtNTIfrMlLTHhN-pNM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.628135"], ["user_id", "9d482932-bfc3-11e4-abe1-705681abff85"], ["created_at", "2015-03-01 03:32:40.628856"], ["updated_at", "2015-03-01 03:32:40.628856"], ["token", "qrGNa_tFpsuc90RseNbWLlywx39NIEXMISnBPjXr3OQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.632509"], ["updated_at", "2015-03-01 03:32:40.632509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d476f60-bfc3-11e4-9416-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d499772-bfc3-11e4-b7b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d476f60-bfc3-11e4-9416-705681abff85"], ["organization_id", "9d499772-bfc3-11e4-b7b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:40.635742"], ["updated_at", "2015-03-01 03:32:40.635742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d482932-bfc3-11e4-abe1-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d499772-bfc3-11e4-b7b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d482932-bfc3-11e4-abe1-705681abff85"], ["organization_id", "9d499772-bfc3-11e4-b7b6-705681abff85"], ["created_at", "2015-03-01 03:32:40.638806"], ["updated_at", "2015-03-01 03:32:40.638806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '9d499772-bfc3-11e4-b7b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "9d499772-bfc3-11e4-b7b6-705681abff85"], ["created_at", "2015-03-01 03:32:40.642374"], ["updated_at", "2015-03-01 03:32:40.642374"], ["token", "C_bDQJ-UPokFXzZ5hHRVi4UZKIBTY6il5fYDV-SjCsc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:32:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$iZji53TPVYm9gxLo0cC6ke5lyH/GxQ2pG9l9/lG3fWoWVc1imEo1O"], ["created_at", "2015-03-01 03:32:40.655606"], ["updated_at", "2015-03-01 03:32:40.655606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$IidbAJq.E4eZiSfP3UMok.2JD2SbmcxJxX1Y8bQ32KCuSN7L9jhp."], ["created_at", "2015-03-01 03:32:40.660488"], ["updated_at", "2015-03-01 03:32:40.660488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.662232"], ["user_id", "9d4d26e4-bfc3-11e4-9d8c-705681abff85"], ["created_at", "2015-03-01 03:32:40.663028"], ["updated_at", "2015-03-01 03:32:40.663028"], ["token", "iJPVvwIiEAf6_Jzyski6nMY3dziLbtjrwiEkrOD2CBU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.664767"], ["user_id", "9d4de25a-bfc3-11e4-95b5-705681abff85"], ["created_at", "2015-03-01 03:32:40.665482"], ["updated_at", "2015-03-01 03:32:40.665482"], ["token", "7dt6J2lc9XTnQXa7mrrZBDYQh9dinrCCVLj_6XPJP2Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.668940"], ["updated_at", "2015-03-01 03:32:40.668940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d4d26e4-bfc3-11e4-9d8c-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d4f2c78-bfc3-11e4-8570-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d4d26e4-bfc3-11e4-9d8c-705681abff85"], ["organization_id", "9d4f2c78-bfc3-11e4-8570-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:40.672883"], ["updated_at", "2015-03-01 03:32:40.672883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d4de25a-bfc3-11e4-95b5-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d4f2c78-bfc3-11e4-8570-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d4de25a-bfc3-11e4-95b5-705681abff85"], ["organization_id", "9d4f2c78-bfc3-11e4-8570-705681abff85"], ["created_at", "2015-03-01 03:32:40.678455"], ["updated_at", "2015-03-01 03:32:40.678455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '9d4f2c78-bfc3-11e4-8570-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "9d4f2c78-bfc3-11e4-8570-705681abff85"], ["created_at", "2015-03-01 03:32:40.681859"], ["updated_at", "2015-03-01 03:32:40.681859"], ["token", "6_-UyVBrT9GzqnmuEUfXtViK37zzOlEbHBN5_mfjcmQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:32:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:32:40.688279' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iJPVvwIiEAf6_Jzyski6nMY3dziLbtjrwiEkrOD2CBU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:32:40.690464"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:32:40.691915"], ["id", "9d4e483a-bfc3-11e4-b2a5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9d4d26e4-bfc3-11e4-9d8c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9d4d26e4-bfc3-11e4-9d8c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9d4d26e4-bfc3-11e4-9d8c-705681abff85' LIMIT 1 [["organization_id", "9d4f2c78-bfc3-11e4-8570-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9d4f2c78-bfc3-11e4-8570-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '9d4f2c78-bfc3-11e4-8570-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 26ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$lJUyVUhQ6NvFjktXk7Bs8evNtNg/G1kgiF8.am39buvgI4cKR1HeK"], ["created_at", "2015-03-01 03:32:40.719799"], ["updated_at", "2015-03-01 03:32:40.719799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$V551uyG9yf1KyVtZjn65jeoC9pbTj4eodpZ9VcYUIkoHTdDcNyKLy"], ["created_at", "2015-03-01 03:32:40.724523"], ["updated_at", "2015-03-01 03:32:40.724523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.726113"], ["user_id", "9d56ed3c-bfc3-11e4-8f4d-705681abff85"], ["created_at", "2015-03-01 03:32:40.726908"], ["updated_at", "2015-03-01 03:32:40.726908"], ["token", "uSN0i_LyaQnpitYWhi1ba4HifHgtoxFvw3NtG0q6tVg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:40.728544"], ["user_id", "9d57a376-bfc3-11e4-ad4f-705681abff85"], ["created_at", "2015-03-01 03:32:40.729307"], ["updated_at", "2015-03-01 03:32:40.729307"], ["token", "KbLcdcXC3jGfvLsusTJDaFbxwCW7qAtwNsDKHsN6qR8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:40.732507"], ["updated_at", "2015-03-01 03:32:40.732507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d56ed3c-bfc3-11e4-8f4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d58d8c2-bfc3-11e4-adb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d56ed3c-bfc3-11e4-8f4d-705681abff85"], ["organization_id", "9d58d8c2-bfc3-11e4-adb9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:40.735922"], ["updated_at", "2015-03-01 03:32:40.735922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d57a376-bfc3-11e4-ad4f-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d58d8c2-bfc3-11e4-adb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d57a376-bfc3-11e4-ad4f-705681abff85"], ["organization_id", "9d58d8c2-bfc3-11e4-adb9-705681abff85"], ["created_at", "2015-03-01 03:32:40.739073"], ["updated_at", "2015-03-01 03:32:40.739073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '9d58d8c2-bfc3-11e4-adb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "9d58d8c2-bfc3-11e4-adb9-705681abff85"], ["created_at", "2015-03-01 03:32:40.742479"], ["updated_at", "2015-03-01 03:32:40.742479"], ["token", "t_8zHbMSPHCnazvfOIXOzDUE92YysjqMVdSrlraaB-c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:32:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:32:40.747480' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uSN0i_LyaQnpitYWhi1ba4HifHgtoxFvw3NtG0q6tVg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:32:40.748879"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:32:40.749836"], ["id", "9d58060e-bfc3-11e4-ba43-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9d56ed3c-bfc3-11e4-8f4d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9d56ed3c-bfc3-11e4-8f4d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9d56ed3c-bfc3-11e4-8f4d-705681abff85' LIMIT 1 [["organization_id", "9d58d8c2-bfc3-11e4-adb9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9d58d8c2-bfc3-11e4-adb9-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '9d58d8c2-bfc3-11e4-adb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "9d58d8c2-bfc3-11e4-adb9-705681abff85"], ["created_at", "2015-03-01 03:32:40.759802"], ["updated_at", "2015-03-01 03:32:40.759802"], ["token", "E6sKLKioycZvnl0VX95v3ANo5sCBGmeuDZlXZ_pmt4A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: eca8a7a5-22bb-47e7-938d-714fbeefbf00) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9d5d1630-bfc3-11e4-9be3-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "9d5d1630-bfc3-11e4-9be3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [eca8a7a5-22bb-47e7-938d-714fbeefbf00] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9d5d1630-bfc3-11e4-9be3-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [eca8a7a5-22bb-47e7-938d-714fbeefbf00] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9d58d8c2-bfc3-11e4-adb9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [eca8a7a5-22bb-47e7-938d-714fbeefbf00] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [eca8a7a5-22bb-47e7-938d-714fbeefbf00] Clubhouse::Mailer#invitation: processed outbound mail in 235.8ms [ActiveJob] [ActionMailer::DeliveryJob] [eca8a7a5-22bb-47e7-938d-714fbeefbf00] Sent mail to email@example.com (19.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [eca8a7a5-22bb-47e7-938d-714fbeefbf00] Date: Sat, 28 Feb 2015 19:32:41 -0800 From: from@example.com To: email@example.com Message-ID: <54f288597a9a_12e483fc028c63be473a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/E6sKLKioycZvnl0VX95v3ANo5sCBGmeuDZlXZ_pmt4A If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [eca8a7a5-22bb-47e7-938d-714fbeefbf00] Performed ActionMailer::DeliveryJob from Inline(mailers) in 256.3ms Completed 201 Created in 299ms (Views: 0.7ms | ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$2EwRaimhfo2xcXCLq3C6uengWbvZXxmZT9psmQq88MSvjHP9GCU0u"], ["created_at", "2015-03-01 03:32:41.054358"], ["updated_at", "2015-03-01 03:32:41.054358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$F0oU3gIbWLO1sNjU.yv6uubNj4o04Tgp.NjGgtABSdGhhgK.zISrC"], ["created_at", "2015-03-01 03:32:41.059214"], ["updated_at", "2015-03-01 03:32:41.059214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:41.061022"], ["user_id", "9d89fb0a-bfc3-11e4-acad-705681abff85"], ["created_at", "2015-03-01 03:32:41.061876"], ["updated_at", "2015-03-01 03:32:41.061876"], ["token", "RCkvCmiFmx7BHueFOdgt8fYcgErXb2B_UNSOCJv27QI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:32:41.063635"], ["user_id", "9d8ab900-bfc3-11e4-9aff-705681abff85"], ["created_at", "2015-03-01 03:32:41.064454"], ["updated_at", "2015-03-01 03:32:41.064454"], ["token", "yk-W7lKmfDAti9HvQ3Fs_yU-fSUEVjwNeVF4rFCx1uk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:32:41.067663"], ["updated_at", "2015-03-01 03:32:41.067663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d89fb0a-bfc3-11e4-acad-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d8bfbee-bfc3-11e4-9edc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d89fb0a-bfc3-11e4-acad-705681abff85"], ["organization_id", "9d8bfbee-bfc3-11e4-9edc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:32:41.070993"], ["updated_at", "2015-03-01 03:32:41.070993"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d8ab900-bfc3-11e4-9aff-705681abff85' AND "clubhouse_memberships"."organization_id" = '9d8bfbee-bfc3-11e4-9edc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d8ab900-bfc3-11e4-9aff-705681abff85"], ["organization_id", "9d8bfbee-bfc3-11e4-9edc-705681abff85"], ["created_at", "2015-03-01 03:32:41.074292"], ["updated_at", "2015-03-01 03:32:41.074292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '9d8bfbee-bfc3-11e4-9edc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "9d8bfbee-bfc3-11e4-9edc-705681abff85"], ["created_at", "2015-03-01 03:32:41.078281"], ["updated_at", "2015-03-01 03:32:41.078281"], ["token", "vN_kH2ULWZlMY8sfJ_capZWXZe-IXeI_TF46B_ZNA_w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:32:41 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:32:41.083941' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RCkvCmiFmx7BHueFOdgt8fYcgErXb2B_UNSOCJv27QI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:32:41.085983"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:32:41.087147"], ["id", "9d8b270a-bfc3-11e4-b5ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9d89fb0a-bfc3-11e4-acad-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9d89fb0a-bfc3-11e4-acad-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9d89fb0a-bfc3-11e4-acad-705681abff85' LIMIT 1 [["organization_id", "9d8bfbee-bfc3-11e4-9edc-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9d8bfbee-bfc3-11e4-9edc-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '9d8bfbee-bfc3-11e4-9edc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "9d8bfbee-bfc3-11e4-9edc-705681abff85"], ["created_at", "2015-03-01 03:32:41.096750"], ["updated_at", "2015-03-01 03:32:41.096750"], ["token", "llfzXtglHTH0vw80qHot5NPv8BHNovXxBquEJV_yv4s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 08d1b3f9-4a80-44fe-b2f3-95ce5cf0ea81) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9d9075e8-bfc3-11e4-b9a4-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "9d9075e8-bfc3-11e4-b9a4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [08d1b3f9-4a80-44fe-b2f3-95ce5cf0ea81] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9d9075e8-bfc3-11e4-b9a4-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [08d1b3f9-4a80-44fe-b2f3-95ce5cf0ea81] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9d8bfbee-bfc3-11e4-9edc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [08d1b3f9-4a80-44fe-b2f3-95ce5cf0ea81] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [08d1b3f9-4a80-44fe-b2f3-95ce5cf0ea81] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [08d1b3f9-4a80-44fe-b2f3-95ce5cf0ea81] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [08d1b3f9-4a80-44fe-b2f3-95ce5cf0ea81] Date: Sat, 28 Feb 2015 19:32:41 -0800 From: from@example.com To: email@example.com Message-ID: <54f28859197af_12e483fc028c63be47416@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/llfzXtglHTH0vw80qHot5NPv8BHNovXxBquEJV_yv4s If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [08d1b3f9-4a80-44fe-b2f3-95ce5cf0ea81] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.34ms Completed 201 Created in 24ms (Views: 1.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$zTgaLefWE7.m0VYhDe53CeAJa0S5DFAH.v8yuoL3UAskMlQHIBPwG"], ["created_at", "2015-03-01 03:34:29.722183"], ["updated_at", "2015-03-01 03:34:29.722183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$NA0286GtnpkcTTNqg/OOaeGGhboIAns4VVaGFl4K/aN/Zx4KfoLgC"], ["created_at", "2015-03-01 03:34:29.728511"], ["updated_at", "2015-03-01 03:34:29.728511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:29.738479"], ["user_id", "de4f97e4-bfc3-11e4-93e3-705681abff85"], ["created_at", "2015-03-01 03:34:29.745469"], ["updated_at", "2015-03-01 03:34:29.745469"], ["token", "gU9MjX_SoiHZ_mEL_tfsoHTihyYo7Gnz2YvEsAzSTc8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:29.748694"], ["user_id", "de505b5c-bfc3-11e4-91e0-705681abff85"], ["created_at", "2015-03-01 03:34:29.749653"], ["updated_at", "2015-03-01 03:34:29.749653"], ["token", "XtH_BOIeW6al9Qaod8Pj7dm03LTYorWS6qP14AwZ-Tc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (5.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:29.762019"], ["updated_at", "2015-03-01 03:34:29.762019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de4f97e4-bfc3-11e4-93e3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de558c76-bfc3-11e4-beac-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de4f97e4-bfc3-11e4-93e3-705681abff85"], ["organization_id", "de558c76-bfc3-11e4-beac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:34:29.780169"], ["updated_at", "2015-03-01 03:34:29.780169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$xq8fM0N3bzaZvRieEwOUi.ewGRLgnHbq1XU/MaoeQrRMyJAw0fjMK"], ["created_at", "2015-03-01 03:34:29.789245"], ["updated_at", "2015-03-01 03:34:29.789245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:29.792337"], ["updated_at", "2015-03-01 03:34:29.792337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de599b04-bfc3-11e4-9bea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de5a0f76-bfc3-11e4-ae7d-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de599b04-bfc3-11e4-9bea-705681abff85"], ["organization_id", "de5a0f76-bfc3-11e4-ae7d-705681abff85"], ["created_at", "2015-03-01 03:34:29.796075"], ["updated_at", "2015-03-01 03:34:29.796075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'de558c76-bfc3-11e4-beac-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "de558c76-bfc3-11e4-beac-705681abff85"], ["created_at", "2015-03-01 03:34:29.808725"], ["updated_at", "2015-03-01 03:34:29.808725"], ["token", "6nX2fBTYeZ4eFEhiQNWx4FAMdG1JQVGCEaH79nuEG6U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:34:29 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Y3bI/FV70ZR8uyIF0ttGoeo/c8T5XOe0QrU4j2HfPmM6tVq5XNtKm"], ["created_at", "2015-03-01 03:34:29.853451"], ["updated_at", "2015-03-01 03:34:29.853451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$17le7dXSv6cDZT334//WhuSzQrEFRG7hhfbmltPgZPJQvdOnMJN8K"], ["created_at", "2015-03-01 03:34:29.858980"], ["updated_at", "2015-03-01 03:34:29.858980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:29.861044"], ["user_id", "de6383a8-bfc3-11e4-9cb1-705681abff85"], ["created_at", "2015-03-01 03:34:29.861938"], ["updated_at", "2015-03-01 03:34:29.861938"], ["token", "h1t-mfUohveKldEJV089SWnWhIT4yP1SN87ccts1hh0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:29.864106"], ["user_id", "de644810-bfc3-11e4-bf36-705681abff85"], ["created_at", "2015-03-01 03:34:29.865202"], ["updated_at", "2015-03-01 03:34:29.865202"], ["token", "NJmMVCcEZvuhUWS8Jb14aWoOgvTqtliqmQoeqcx0Czg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:29.879450"], ["updated_at", "2015-03-01 03:34:29.879450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de6383a8-bfc3-11e4-9cb1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de676248-bfc3-11e4-8cc3-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de6383a8-bfc3-11e4-9cb1-705681abff85"], ["organization_id", "de676248-bfc3-11e4-8cc3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:34:29.885499"], ["updated_at", "2015-03-01 03:34:29.885499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$bVPz.PraapoJ3uzj2KrQlOMjW8V7gZtgBezNgqWt6nWHBX6bgr5da"], ["created_at", "2015-03-01 03:34:29.891402"], ["updated_at", "2015-03-01 03:34:29.891402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:29.894726"], ["updated_at", "2015-03-01 03:34:29.894726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de69376c-bfc3-11e4-8a7a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de69b0d4-bfc3-11e4-8529-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de69376c-bfc3-11e4-8a7a-705681abff85"], ["organization_id", "de69b0d4-bfc3-11e4-8529-705681abff85"], ["created_at", "2015-03-01 03:34:29.898489"], ["updated_at", "2015-03-01 03:34:29.898489"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'de676248-bfc3-11e4-8cc3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "de676248-bfc3-11e4-8cc3-705681abff85"], ["created_at", "2015-03-01 03:34:29.904197"], ["updated_at", "2015-03-01 03:34:29.904197"], ["token", "fYIKY1Gr8yRypz8lLQ__7mhuXQbdArofaOPiVflpOqY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:34:29 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:34:29.909884' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "h1t-mfUohveKldEJV089SWnWhIT4yP1SN87ccts1hh0"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:34:29.918762"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:34:29.920707"], ["id", "de64c0ce-bfc3-11e4-a001-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de6383a8-bfc3-11e4-9cb1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "de6383a8-bfc3-11e4-9cb1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de6383a8-bfc3-11e4-9cb1-705681abff85' LIMIT 1 [["organization_id", "de676248-bfc3-11e4-8cc3-705681abff85"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "de676248-bfc3-11e4-8cc3-705681abff85"]] Completed 200 OK in 44ms (Views: 3.8ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$iiVBJGUX7aV7GAqv4b/W6.QmdzBJbiVJro56/kE.HNj443NUS0rHu"], ["created_at", "2015-03-01 03:34:29.962865"], ["updated_at", "2015-03-01 03:34:29.962865"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$gPO.aubSGAOKuW9lnyVzOefeF6b5NXkXDeyFVuL26UMZbSrebcj3S"], ["created_at", "2015-03-01 03:34:29.968234"], ["updated_at", "2015-03-01 03:34:29.968234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:29.969838"], ["user_id", "de741b64-bfc3-11e4-a000-705681abff85"], ["created_at", "2015-03-01 03:34:29.970871"], ["updated_at", "2015-03-01 03:34:29.970871"], ["token", "FIQHJSklJiPdYYVR3nnT8RJboYtSU0yKx_rHRnI5Yfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:29.972655"], ["user_id", "de74e99a-bfc3-11e4-8716-705681abff85"], ["created_at", "2015-03-01 03:34:29.973352"], ["updated_at", "2015-03-01 03:34:29.973352"], ["token", "G1eq6Ee9vKP9RjnR4BAcOg_8My3KsCsNnsRkrwQtWDg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:29.977087"], ["updated_at", "2015-03-01 03:34:29.977087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de741b64-bfc3-11e4-a000-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de76443e-bfc3-11e4-8d12-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de741b64-bfc3-11e4-a000-705681abff85"], ["organization_id", "de76443e-bfc3-11e4-8d12-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:34:29.980681"], ["updated_at", "2015-03-01 03:34:29.980681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de74e99a-bfc3-11e4-8716-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de76443e-bfc3-11e4-8d12-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de74e99a-bfc3-11e4-8716-705681abff85"], ["organization_id", "de76443e-bfc3-11e4-8d12-705681abff85"], ["created_at", "2015-03-01 03:34:29.984169"], ["updated_at", "2015-03-01 03:34:29.984169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'de76443e-bfc3-11e4-8d12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "de76443e-bfc3-11e4-8d12-705681abff85"], ["created_at", "2015-03-01 03:34:29.987694"], ["updated_at", "2015-03-01 03:34:29.987694"], ["token", "fGQNLM1WS9BMppgqzVu8GI_v7I1SKA4ja8QeIA2Cl8Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:34:29 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$8SLfiAxNdo8r2M4hOX1mf.WKxVPcSBbvsNYoe49fgZlOhnXxD.9e."], ["created_at", "2015-03-01 03:34:30.002050"], ["updated_at", "2015-03-01 03:34:30.002050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$LsvjKxcvwV1rN6EZRY4kf.5XDdmu5rv/e6knjEeUaaifoaaruE1.6"], ["created_at", "2015-03-01 03:34:30.007449"], ["updated_at", "2015-03-01 03:34:30.007449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.009224"], ["user_id", "de7a130c-bfc3-11e4-99b7-705681abff85"], ["created_at", "2015-03-01 03:34:30.010054"], ["updated_at", "2015-03-01 03:34:30.010054"], ["token", "qPWohLYmVSPQfNuJaQLT9QjTMRM2xpd5k2KOK3us0zw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.011782"], ["user_id", "de7ae5fc-bfc3-11e4-bf28-705681abff85"], ["created_at", "2015-03-01 03:34:30.012639"], ["updated_at", "2015-03-01 03:34:30.012639"], ["token", "0tNeS7cJmretzJY2hopx4CCVmOrQRhdfCjoPp8hN460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:30.016273"], ["updated_at", "2015-03-01 03:34:30.016273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de7a130c-bfc3-11e4-99b7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de7c44f6-bfc3-11e4-92c2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de7a130c-bfc3-11e4-99b7-705681abff85"], ["organization_id", "de7c44f6-bfc3-11e4-92c2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:34:30.019946"], ["updated_at", "2015-03-01 03:34:30.019946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de7ae5fc-bfc3-11e4-bf28-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de7c44f6-bfc3-11e4-92c2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de7ae5fc-bfc3-11e4-bf28-705681abff85"], ["organization_id", "de7c44f6-bfc3-11e4-92c2-705681abff85"], ["created_at", "2015-03-01 03:34:30.023608"], ["updated_at", "2015-03-01 03:34:30.023608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'de7c44f6-bfc3-11e4-92c2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "de7c44f6-bfc3-11e4-92c2-705681abff85"], ["created_at", "2015-03-01 03:34:30.027420"], ["updated_at", "2015-03-01 03:34:30.027420"], ["token", "R6YpzZ9uNe4iIUy_nRSEu1Y7Y-0Pds1QfGcjw-A-wfU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/de7df7a6-bfc3-11e4-9807-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:34:30 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"de7df7a6-bfc3-11e4-9807-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:34:30.033301' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qPWohLYmVSPQfNuJaQLT9QjTMRM2xpd5k2KOK3us0zw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:34:30.035057"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:34:30.036143"], ["id", "de7b515e-bfc3-11e4-b4c0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de7a130c-bfc3-11e4-99b7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "de7a130c-bfc3-11e4-99b7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de7a130c-bfc3-11e4-99b7-705681abff85' LIMIT 1 [["organization_id", "de7c44f6-bfc3-11e4-92c2-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "de7c44f6-bfc3-11e4-92c2-705681abff85"], ["id", "de7df7a6-bfc3-11e4-9807-705681abff85"]] Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$OYmgp79MJFkgrKLh7x4Er.VFr0YUtUUlhqrlyOi4zHKQgv6y1CZ7i"], ["created_at", "2015-03-01 03:34:30.053731"], ["updated_at", "2015-03-01 03:34:30.053731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$vUMN.oUUXfyAaDP596spA.rDEFN/Gf00gV9Vy1HgTfbxDb8wv3DCW"], ["created_at", "2015-03-01 03:34:30.058410"], ["updated_at", "2015-03-01 03:34:30.058410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.060225"], ["user_id", "de81f752-bfc3-11e4-9213-705681abff85"], ["created_at", "2015-03-01 03:34:30.061050"], ["updated_at", "2015-03-01 03:34:30.061050"], ["token", "9ber5kX7fmY_iXlNlVRKcSgtodxME3UQ9FixDlyySgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.062741"], ["user_id", "de82b016-bfc3-11e4-a655-705681abff85"], ["created_at", "2015-03-01 03:34:30.063702"], ["updated_at", "2015-03-01 03:34:30.063702"], ["token", "YSpj55mx1kNkz62ZFxRsXarAiXMOOOBP7cdRjWNwV4A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:30.067213"], ["updated_at", "2015-03-01 03:34:30.067213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de81f752-bfc3-11e4-9213-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de8400ba-bfc3-11e4-b992-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de81f752-bfc3-11e4-9213-705681abff85"], ["organization_id", "de8400ba-bfc3-11e4-b992-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:34:30.070656"], ["updated_at", "2015-03-01 03:34:30.070656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de82b016-bfc3-11e4-a655-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de8400ba-bfc3-11e4-b992-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de82b016-bfc3-11e4-a655-705681abff85"], ["organization_id", "de8400ba-bfc3-11e4-b992-705681abff85"], ["created_at", "2015-03-01 03:34:30.073753"], ["updated_at", "2015-03-01 03:34:30.073753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'de8400ba-bfc3-11e4-b992-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "de8400ba-bfc3-11e4-b992-705681abff85"], ["created_at", "2015-03-01 03:34:30.077469"], ["updated_at", "2015-03-01 03:34:30.077469"], ["token", "uWbKmCNppH20OsWtW2Pvq8q5WeHOGWkmbbFCLNbAMkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:34:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$YDV3jxYptc1W76ba2VGS0.CStNzwsLJA804Usn.bzreNnyw8unJ6W"], ["created_at", "2015-03-01 03:34:30.092270"], ["updated_at", "2015-03-01 03:34:30.092270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$znPON4gT8TDKGjAFJRaqGuAgaD2z7EmQkU.IStbWBnXyzrmyvXi5O"], ["created_at", "2015-03-01 03:34:30.096970"], ["updated_at", "2015-03-01 03:34:30.096970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.098699"], ["user_id", "de87dbb8-bfc3-11e4-85a2-705681abff85"], ["created_at", "2015-03-01 03:34:30.099573"], ["updated_at", "2015-03-01 03:34:30.099573"], ["token", "nzg2zWx5CtQ1GFxMsosc2I7gvcn6NedG0qVynLNRgpE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.101458"], ["user_id", "de888e14-bfc3-11e4-9ea0-705681abff85"], ["created_at", "2015-03-01 03:34:30.102258"], ["updated_at", "2015-03-01 03:34:30.102258"], ["token", "vZx1zu76GeW2aqErwb3pAGqD674PzZ_yIWlZh5ExtF0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:30.106817"], ["updated_at", "2015-03-01 03:34:30.106817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de87dbb8-bfc3-11e4-85a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de8a38fe-bfc3-11e4-9889-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de87dbb8-bfc3-11e4-85a2-705681abff85"], ["organization_id", "de8a38fe-bfc3-11e4-9889-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:34:30.112103"], ["updated_at", "2015-03-01 03:34:30.112103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de888e14-bfc3-11e4-9ea0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de8a38fe-bfc3-11e4-9889-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de888e14-bfc3-11e4-9ea0-705681abff85"], ["organization_id", "de8a38fe-bfc3-11e4-9889-705681abff85"], ["created_at", "2015-03-01 03:34:30.115364"], ["updated_at", "2015-03-01 03:34:30.115364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'de8a38fe-bfc3-11e4-9889-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "de8a38fe-bfc3-11e4-9889-705681abff85"], ["created_at", "2015-03-01 03:34:30.118995"], ["updated_at", "2015-03-01 03:34:30.118995"], ["token", "Lc48z4zJ44XRqa_WEApB-Sy7Y1UTfD7PkXI3SVtIils"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:34:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:34:30.125381' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nzg2zWx5CtQ1GFxMsosc2I7gvcn6NedG0qVynLNRgpE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:34:30.126941"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:34:30.127956"], ["id", "de88ff2a-bfc3-11e4-addb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de87dbb8-bfc3-11e4-85a2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "de87dbb8-bfc3-11e4-85a2-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de87dbb8-bfc3-11e4-85a2-705681abff85' LIMIT 1 [["organization_id", "de8a38fe-bfc3-11e4-9889-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de8a38fe-bfc3-11e4-9889-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'de8a38fe-bfc3-11e4-9889-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "de8a38fe-bfc3-11e4-9889-705681abff85"], ["created_at", "2015-03-01 03:34:30.139083"], ["updated_at", "2015-03-01 03:34:30.139083"], ["token", "pX-H_23ORaGsVBgyK_4J0APCk9zGb-TSr1DwhnX9DJA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d7f7ff44-c2b2-4713-8aaf-30e9979fd2b8) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/de8f079e-bfc3-11e4-a040-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "de8f079e-bfc3-11e4-a040-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d7f7ff44-c2b2-4713-8aaf-30e9979fd2b8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/de8f079e-bfc3-11e4-a040-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d7f7ff44-c2b2-4713-8aaf-30e9979fd2b8] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de8a38fe-bfc3-11e4-9889-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d7f7ff44-c2b2-4713-8aaf-30e9979fd2b8] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [d7f7ff44-c2b2-4713-8aaf-30e9979fd2b8] Clubhouse::Mailer#invitation: processed outbound mail in 301.1ms [ActiveJob] [ActionMailer::DeliveryJob] [d7f7ff44-c2b2-4713-8aaf-30e9979fd2b8] Sent mail to email@example.com (15.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [d7f7ff44-c2b2-4713-8aaf-30e9979fd2b8] Date: Sat, 28 Feb 2015 19:34:30 -0800 From: from@example.com To: email@example.com Message-ID: <54f288c673d5e_12e573ff60cc63be826793@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/pX-H_23ORaGsVBgyK_4J0APCk9zGb-TSr1DwhnX9DJA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d7f7ff44-c2b2-4713-8aaf-30e9979fd2b8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 317.06ms Completed 201 Created in 361ms (Views: 0.6ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$Lg/hCcNMIZKXJUP2SmjC.OV8Crc.DLw83NPQD5T9.lviQuiM9OALW"], ["created_at", "2015-03-01 03:34:30.492934"], ["updated_at", "2015-03-01 03:34:30.492934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$4FLmqKOfMnloXrIEs2r0Vu9L4E0AyVs20I3WGW56urVnBSoqIyda6"], ["created_at", "2015-03-01 03:34:30.497419"], ["updated_at", "2015-03-01 03:34:30.497419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.499077"], ["user_id", "dec4faa2-bfc3-11e4-81ad-705681abff85"], ["created_at", "2015-03-01 03:34:30.499926"], ["updated_at", "2015-03-01 03:34:30.499926"], ["token", "I2jXgL3lelxzaw9RUYyQVbZOJpKuYmE5UQIHjzlwqWE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.501732"], ["user_id", "dec5a48e-bfc3-11e4-92fe-705681abff85"], ["created_at", "2015-03-01 03:34:30.502537"], ["updated_at", "2015-03-01 03:34:30.502537"], ["token", "AQHcqwqMmXvLwb_0AhBwleJIqkT8FxPVLz9SEGEGaGE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:30.506042"], ["updated_at", "2015-03-01 03:34:30.506042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dec4faa2-bfc3-11e4-81ad-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dec6f6c2-bfc3-11e4-abc5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dec4faa2-bfc3-11e4-81ad-705681abff85"], ["organization_id", "dec6f6c2-bfc3-11e4-abc5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:34:30.509387"], ["updated_at", "2015-03-01 03:34:30.509387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dec5a48e-bfc3-11e4-92fe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dec6f6c2-bfc3-11e4-abc5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dec5a48e-bfc3-11e4-92fe-705681abff85"], ["organization_id", "dec6f6c2-bfc3-11e4-abc5-705681abff85"], ["created_at", "2015-03-01 03:34:30.512649"], ["updated_at", "2015-03-01 03:34:30.512649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'dec6f6c2-bfc3-11e4-abc5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "dec6f6c2-bfc3-11e4-abc5-705681abff85"], ["created_at", "2015-03-01 03:34:30.516221"], ["updated_at", "2015-03-01 03:34:30.516221"], ["token", "p8wllLzOuMxRVWNQjXEKwOHW--qH6eWYq46tBcrOtzw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:34:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:34:30.521946' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "I2jXgL3lelxzaw9RUYyQVbZOJpKuYmE5UQIHjzlwqWE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:34:30.523475"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:34:30.524731"], ["id", "dec61392-bfc3-11e4-9e39-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dec4faa2-bfc3-11e4-81ad-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "dec4faa2-bfc3-11e4-81ad-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dec4faa2-bfc3-11e4-81ad-705681abff85' LIMIT 1 [["organization_id", "dec6f6c2-bfc3-11e4-abc5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dec6f6c2-bfc3-11e4-abc5-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'dec6f6c2-bfc3-11e4-abc5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "dec6f6c2-bfc3-11e4-abc5-705681abff85"], ["created_at", "2015-03-01 03:34:30.536617"], ["updated_at", "2015-03-01 03:34:30.536617"], ["token", "ONPgi1H5WenlNmVNKSDOhIwuNz6JQZRkHbLH9OCnsic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 128b6240-d358-4978-ae47-2dbd618a69ab) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/decbab2c-bfc3-11e4-88f6-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "decbab2c-bfc3-11e4-88f6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [128b6240-d358-4978-ae47-2dbd618a69ab] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/decbab2c-bfc3-11e4-88f6-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [128b6240-d358-4978-ae47-2dbd618a69ab] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dec6f6c2-bfc3-11e4-abc5-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [128b6240-d358-4978-ae47-2dbd618a69ab] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [128b6240-d358-4978-ae47-2dbd618a69ab] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [128b6240-d358-4978-ae47-2dbd618a69ab] Sent mail to email@example.com (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [128b6240-d358-4978-ae47-2dbd618a69ab] Date: Sat, 28 Feb 2015 19:34:30 -0800 From: from@example.com To: email@example.com Message-ID: <54f288c684fed_12e573ff60cc63be8268be@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/ONPgi1H5WenlNmVNKSDOhIwuNz6JQZRkHbLH9OCnsic If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [128b6240-d358-4978-ae47-2dbd618a69ab] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.87ms Completed 201 Created in 25ms (Views: 0.7ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$R/Um22OEc.Rex9YZwPumuOzZiHJUk4lAwR3dr2cx.FajwEyEI3LRS"], ["created_at", "2015-03-01 03:34:30.556022"], ["updated_at", "2015-03-01 03:34:30.556022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$pb8jtuZn79.R4BxQ.6nL7Oo27cnC8WIMF//4I9u7miUnuZy1AOQly"], ["created_at", "2015-03-01 03:34:30.561202"], ["updated_at", "2015-03-01 03:34:30.561202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.562822"], ["user_id", "decea8e0-bfc3-11e4-a9f6-705681abff85"], ["created_at", "2015-03-01 03:34:30.563645"], ["updated_at", "2015-03-01 03:34:30.563645"], ["token", "KW-kpXxPvJP4IQlPIhXZQiLCPWHWuKPtkGpZA40mbvQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.565620"], ["user_id", "decf6136-bfc3-11e4-ab23-705681abff85"], ["created_at", "2015-03-01 03:34:30.566350"], ["updated_at", "2015-03-01 03:34:30.566350"], ["token", "1aUVlYTcoUEAbIbdBnacKtJ-WNUOxCaznvtfxUQnEmU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:30.577083"], ["updated_at", "2015-03-01 03:34:30.577083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'decea8e0-bfc3-11e4-a9f6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ded1d2d6-bfc3-11e4-9390-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "decea8e0-bfc3-11e4-a9f6-705681abff85"], ["organization_id", "ded1d2d6-bfc3-11e4-9390-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:34:30.580683"], ["updated_at", "2015-03-01 03:34:30.580683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'decf6136-bfc3-11e4-ab23-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ded1d2d6-bfc3-11e4-9390-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "decf6136-bfc3-11e4-ab23-705681abff85"], ["organization_id", "ded1d2d6-bfc3-11e4-9390-705681abff85"], ["created_at", "2015-03-01 03:34:30.584740"], ["updated_at", "2015-03-01 03:34:30.584740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'ded1d2d6-bfc3-11e4-9390-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "ded1d2d6-bfc3-11e4-9390-705681abff85"], ["created_at", "2015-03-01 03:34:30.591542"], ["updated_at", "2015-03-01 03:34:30.591542"], ["token", "Hrt1lBl91ay9rRBXLJwT-PmgeW4gL4yNg4Jq0HH8ReM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:34:30 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:34:30.598960' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KW-kpXxPvJP4IQlPIhXZQiLCPWHWuKPtkGpZA40mbvQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:34:30.600461"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:34:30.601796"], ["id", "decfd4cc-bfc3-11e4-b14b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "decea8e0-bfc3-11e4-a9f6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "decea8e0-bfc3-11e4-a9f6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'decea8e0-bfc3-11e4-a9f6-705681abff85' LIMIT 1 [["organization_id", "ded1d2d6-bfc3-11e4-9390-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ded1d2d6-bfc3-11e4-9390-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'ded1d2d6-bfc3-11e4-9390-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$5IBgTgwRsELIcfZKMjzBUOuF2NsHKCTXtVpajBcebOh5c6oPVyU6i"], ["created_at", "2015-03-01 03:34:30.619061"], ["updated_at", "2015-03-01 03:34:30.619061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$PYly6eyBkxhv1SKC2e8OaO4ezYQodSD.ZwEGOALHuojsR193WKYSq"], ["created_at", "2015-03-01 03:34:30.623842"], ["updated_at", "2015-03-01 03:34:30.623842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.625389"], ["user_id", "ded83c34-bfc3-11e4-b7e0-705681abff85"], ["created_at", "2015-03-01 03:34:30.626184"], ["updated_at", "2015-03-01 03:34:30.626184"], ["token", "SIab-w_No_lFRZmYHXqIqFwpJ1U7ba_uJKU4NjSTtdQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.627820"], ["user_id", "ded8f174-bfc3-11e4-9935-705681abff85"], ["created_at", "2015-03-01 03:34:30.628523"], ["updated_at", "2015-03-01 03:34:30.628523"], ["token", "cMhxj1hNZyR0_ZEoY0Ih_s1vbsRARtjliQEBsS4JWck"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:30.632108"], ["updated_at", "2015-03-01 03:34:30.632108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ded83c34-bfc3-11e4-b7e0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deda3584-bfc3-11e4-8960-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ded83c34-bfc3-11e4-b7e0-705681abff85"], ["organization_id", "deda3584-bfc3-11e4-8960-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:34:30.635638"], ["updated_at", "2015-03-01 03:34:30.635638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ded8f174-bfc3-11e4-9935-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deda3584-bfc3-11e4-8960-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ded8f174-bfc3-11e4-9935-705681abff85"], ["organization_id", "deda3584-bfc3-11e4-8960-705681abff85"], ["created_at", "2015-03-01 03:34:30.638878"], ["updated_at", "2015-03-01 03:34:30.638878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'deda3584-bfc3-11e4-8960-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "deda3584-bfc3-11e4-8960-705681abff85"], ["created_at", "2015-03-01 03:34:30.642236"], ["updated_at", "2015-03-01 03:34:30.642236"], ["token", "RlDNAmr2iDKyM7DH_gaVl-GEkB2-pq0t2_mHUMqf1zE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:34:30 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$lFJCyaXuLw2yDjyaFzwKWerhBN4gr9G2GCu26ITInlqcZMAZqkWX2"], ["created_at", "2015-03-01 03:34:30.658051"], ["updated_at", "2015-03-01 03:34:30.658051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$9v0FDreLP9JScNf6zgSwZuUo3nmKQc63rVw5iuFTH3GXov1SfXzia"], ["created_at", "2015-03-01 03:34:30.662233"], ["updated_at", "2015-03-01 03:34:30.662233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.664024"], ["user_id", "dede2c3e-bfc3-11e4-8241-705681abff85"], ["created_at", "2015-03-01 03:34:30.664806"], ["updated_at", "2015-03-01 03:34:30.664806"], ["token", "1K2Om8rhSyNA4DDJrB9-C4jnHvSHs_P1w56mFYgAuFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:34:30.666561"], ["user_id", "deded44a-bfc3-11e4-9605-705681abff85"], ["created_at", "2015-03-01 03:34:30.667963"], ["updated_at", "2015-03-01 03:34:30.667963"], ["token", "doeiJD6X76iibdxg2JwhEmchviKh2KolZ_JLuMWYlD8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:34:30.671742"], ["updated_at", "2015-03-01 03:34:30.671742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dede2c3e-bfc3-11e4-8241-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dee04014-bfc3-11e4-9d38-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dede2c3e-bfc3-11e4-8241-705681abff85"], ["organization_id", "dee04014-bfc3-11e4-9d38-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:34:30.674982"], ["updated_at", "2015-03-01 03:34:30.674982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deded44a-bfc3-11e4-9605-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dee04014-bfc3-11e4-9d38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "deded44a-bfc3-11e4-9605-705681abff85"], ["organization_id", "dee04014-bfc3-11e4-9d38-705681abff85"], ["created_at", "2015-03-01 03:34:30.680385"], ["updated_at", "2015-03-01 03:34:30.680385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'dee04014-bfc3-11e4-9d38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "dee04014-bfc3-11e4-9d38-705681abff85"], ["created_at", "2015-03-01 03:34:30.684354"], ["updated_at", "2015-03-01 03:34:30.684354"], ["token", "v87UPtvWTPfJc7N0XHlkVPZADApzAOGrez6VvCtFzy4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/dee232fc-bfc3-11e4-bf2d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:34:30 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"dee232fc-bfc3-11e4-bf2d-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:34:30.690537' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1K2Om8rhSyNA4DDJrB9-C4jnHvSHs_P1w56mFYgAuFI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:34:30.692071"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:34:30.693092"], ["id", "dedf3a98-bfc3-11e4-916b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dede2c3e-bfc3-11e4-8241-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "dede2c3e-bfc3-11e4-8241-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dede2c3e-bfc3-11e4-8241-705681abff85' LIMIT 1 [["organization_id", "dee04014-bfc3-11e4-9d38-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "dee04014-bfc3-11e4-9d38-705681abff85"], ["id", "dee232fc-bfc3-11e4-bf2d-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dee04014-bfc3-11e4-9d38-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."id" != 'dee232fc-bfc3-11e4-bf2d-705681abff85' AND "clubhouse_invitations"."organization_id" = 'dee04014-bfc3-11e4-9d38-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 03:34:30.705507"], ["id", "dee232fc-bfc3-11e4-bf2d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ovoMqpmUY7.mF47M9fgdaOQAbhxm2h75./iiFCTNoZIi/xfLv7gSm"], ["created_at", "2015-03-01 03:35:56.435175"], ["updated_at", "2015-03-01 03:35:56.435175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$yvSKMmo2Oaxzp.XkqXgym.KgtmDzQWYlp9EGnz/iYSG.FcTQO0hMu"], ["created_at", "2015-03-01 03:35:56.441371"], ["updated_at", "2015-03-01 03:35:56.441371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.450146"], ["user_id", "11fee4f0-bfc4-11e4-99d3-705681abff85"], ["created_at", "2015-03-01 03:35:56.456373"], ["updated_at", "2015-03-01 03:35:56.456373"], ["token", "1mxES1XSAEQ9LDK0pmdxZxQs8_P_FJi2aovbRb4fxpA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.458989"], ["user_id", "11ffaa7a-bfc4-11e4-8243-705681abff85"], ["created_at", "2015-03-01 03:35:56.459810"], ["updated_at", "2015-03-01 03:35:56.459810"], ["token", "vp3GnCd-eOaWWh-siw3kvu-R7AyqWdpsGawc6CinB5I"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:56.475312"], ["updated_at", "2015-03-01 03:35:56.475312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '11fee4f0-bfc4-11e4-99d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '1204e2d8-bfc4-11e4-bdf0-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "11fee4f0-bfc4-11e4-99d3-705681abff85"], ["organization_id", "1204e2d8-bfc4-11e4-bdf0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:56.516783"], ["updated_at", "2015-03-01 03:35:56.516783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '11ffaa7a-bfc4-11e4-8243-705681abff85' AND "clubhouse_memberships"."organization_id" = '1204e2d8-bfc4-11e4-bdf0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "11ffaa7a-bfc4-11e4-8243-705681abff85"], ["organization_id", "1204e2d8-bfc4-11e4-bdf0-705681abff85"], ["created_at", "2015-03-01 03:35:56.520814"], ["updated_at", "2015-03-01 03:35:56.520814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '1204e2d8-bfc4-11e4-bdf0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "1204e2d8-bfc4-11e4-bdf0-705681abff85"], ["created_at", "2015-03-01 03:35:56.530549"], ["updated_at", "2015-03-01 03:35:56.530549"], ["token", "wLd-5Cw4qkmqy5B05xP_fycIY70GBLQBsymDFl4XODo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/120d521a-bfc4-11e4-8361-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:35:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$sk2rqs5ifbwUuedP2xv5a.bpF1SQc7Yf/zshkAngoSAw6ckgmFg/i"], ["created_at", "2015-03-01 03:35:56.546469"], ["updated_at", "2015-03-01 03:35:56.546469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$FWf09D03BDB6Z8DkHtzUieAX/pSeTGfmnXn8kUmCQtkXPIu0Ge07e"], ["created_at", "2015-03-01 03:35:56.550861"], ["updated_at", "2015-03-01 03:35:56.550861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.552410"], ["user_id", "120fb5b4-bfc4-11e4-be9c-705681abff85"], ["created_at", "2015-03-01 03:35:56.553223"], ["updated_at", "2015-03-01 03:35:56.553223"], ["token", "Y8xT6bklUpwFB7_AeBniN5biweDLrDCB10jr0qoeXlY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.556032"], ["user_id", "12105c62-bfc4-11e4-b28d-705681abff85"], ["created_at", "2015-03-01 03:35:56.556860"], ["updated_at", "2015-03-01 03:35:56.556860"], ["token", "vCLOOB30HNlnZEPhA8ZwPOEQ4Cys7L7yP0Mx-RfjB1U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (3.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:56.560385"], ["updated_at", "2015-03-01 03:35:56.560385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '120fb5b4-bfc4-11e4-be9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '1211d240-bfc4-11e4-9603-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "120fb5b4-bfc4-11e4-be9c-705681abff85"], ["organization_id", "1211d240-bfc4-11e4-9603-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:56.568145"], ["updated_at", "2015-03-01 03:35:56.568145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12105c62-bfc4-11e4-b28d-705681abff85' AND "clubhouse_memberships"."organization_id" = '1211d240-bfc4-11e4-9603-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "12105c62-bfc4-11e4-b28d-705681abff85"], ["organization_id", "1211d240-bfc4-11e4-9603-705681abff85"], ["created_at", "2015-03-01 03:35:56.572320"], ["updated_at", "2015-03-01 03:35:56.572320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '1211d240-bfc4-11e4-9603-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "1211d240-bfc4-11e4-9603-705681abff85"], ["created_at", "2015-03-01 03:35:56.576000"], ["updated_at", "2015-03-01 03:35:56.576000"], ["token", "DPEf2NXiP9cQAv7HHWUmpWXK9ca_iOWvbz_2kaFB4BY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:35:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$XVHPTzblgxiHUHCFWS4J8.0eCcmudghYQ5LMX42AsO7bHDkbaUl2y"], ["created_at", "2015-03-01 03:35:56.586997"], ["updated_at", "2015-03-01 03:35:56.586997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$4QvUvdCo/KfkkLqk4YYE4uKs2Agu1tPCtBTPVxbwjrwT1xq/Xzsl2"], ["created_at", "2015-03-01 03:35:56.592164"], ["updated_at", "2015-03-01 03:35:56.592164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.593823"], ["user_id", "1215e7b8-bfc4-11e4-8b30-705681abff85"], ["created_at", "2015-03-01 03:35:56.594631"], ["updated_at", "2015-03-01 03:35:56.594631"], ["token", "4Dl64mdtGHB0bzyeLaVoshfkOCrrbLsVjtmQ_Ic5FtY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.596321"], ["user_id", "1216ad4c-bfc4-11e4-842b-705681abff85"], ["created_at", "2015-03-01 03:35:56.597175"], ["updated_at", "2015-03-01 03:35:56.597175"], ["token", "uyN77W0e-AB7Hk8UmhOHX1w3MO_YbtP1QO9zK_9vWxY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:56.600657"], ["updated_at", "2015-03-01 03:35:56.600657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1215e7b8-bfc4-11e4-8b30-705681abff85' AND "clubhouse_memberships"."organization_id" = '1217f846-bfc4-11e4-bb03-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1215e7b8-bfc4-11e4-8b30-705681abff85"], ["organization_id", "1217f846-bfc4-11e4-bb03-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:56.604181"], ["updated_at", "2015-03-01 03:35:56.604181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1216ad4c-bfc4-11e4-842b-705681abff85' AND "clubhouse_memberships"."organization_id" = '1217f846-bfc4-11e4-bb03-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1216ad4c-bfc4-11e4-842b-705681abff85"], ["organization_id", "1217f846-bfc4-11e4-bb03-705681abff85"], ["created_at", "2015-03-01 03:35:56.607374"], ["updated_at", "2015-03-01 03:35:56.607374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '1217f846-bfc4-11e4-bb03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "1217f846-bfc4-11e4-bb03-705681abff85"], ["created_at", "2015-03-01 03:35:56.611104"], ["updated_at", "2015-03-01 03:35:56.611104"], ["token", "564-ZnhQYBxdwbsJTAPQOisCUx_7_YIOlSSASs9YUPE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1219937c-bfc4-11e4-a6fd-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:35:56 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"1219937c-bfc4-11e4-a6fd-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:35:56.631761' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4Dl64mdtGHB0bzyeLaVoshfkOCrrbLsVjtmQ_Ic5FtY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:35:56.639853"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:35:56.641757"], ["id", "12171390-bfc4-11e4-af7f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1215e7b8-bfc4-11e4-8b30-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1215e7b8-bfc4-11e4-8b30-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1215e7b8-bfc4-11e4-8b30-705681abff85' LIMIT 1 [["organization_id", "1217f846-bfc4-11e4-bb03-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "1217f846-bfc4-11e4-bb03-705681abff85"], ["id", "1219937c-bfc4-11e4-a6fd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1217f846-bfc4-11e4-bb03-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."id" != '1219937c-bfc4-11e4-a6fd-705681abff85' AND "clubhouse_invitations"."organization_id" = '1217f846-bfc4-11e4-bb03-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 03:35:56.676210"], ["id", "1219937c-bfc4-11e4-a6fd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 48ms (Views: 1.7ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$fIHCQFhIxpveoaFJKn.AJuJMfs929HjwHX46sfk0QpmuxVyrL2jgy"], ["created_at", "2015-03-01 03:35:56.688654"], ["updated_at", "2015-03-01 03:35:56.688654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$eAFO0zqk185R65mIr2taPelOjwBVztSIdTRGXIWk6TF4.3LqvreJW"], ["created_at", "2015-03-01 03:35:56.693148"], ["updated_at", "2015-03-01 03:35:56.693148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.694670"], ["user_id", "12256cc4-bfc4-11e4-9c02-705681abff85"], ["created_at", "2015-03-01 03:35:56.695472"], ["updated_at", "2015-03-01 03:35:56.695472"], ["token", "f0LwJLA0ZRwqQr2Zo5QK3A3xXj7gh_PN1QPfAIp7jIU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.697134"], ["user_id", "1226126e-bfc4-11e4-9fdf-705681abff85"], ["created_at", "2015-03-01 03:35:56.697831"], ["updated_at", "2015-03-01 03:35:56.697831"], ["token", "nNLMeEb1ZIaGzP9jeoWdL6odZfZu6i_HD_ZJWFm6xMk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:56.700956"], ["updated_at", "2015-03-01 03:35:56.700956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12256cc4-bfc4-11e4-9c02-705681abff85' AND "clubhouse_memberships"."organization_id" = '122743f0-bfc4-11e4-a679-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "12256cc4-bfc4-11e4-9c02-705681abff85"], ["organization_id", "122743f0-bfc4-11e4-a679-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:56.704702"], ["updated_at", "2015-03-01 03:35:56.704702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1226126e-bfc4-11e4-9fdf-705681abff85' AND "clubhouse_memberships"."organization_id" = '122743f0-bfc4-11e4-a679-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1226126e-bfc4-11e4-9fdf-705681abff85"], ["organization_id", "122743f0-bfc4-11e4-a679-705681abff85"], ["created_at", "2015-03-01 03:35:56.708466"], ["updated_at", "2015-03-01 03:35:56.708466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '122743f0-bfc4-11e4-a679-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "122743f0-bfc4-11e4-a679-705681abff85"], ["created_at", "2015-03-01 03:35:56.712928"], ["updated_at", "2015-03-01 03:35:56.712928"], ["token", "Le3HyUikO5h5dIZtvQFe78j2AmrPOmAWILjV3-JO5tc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:35:56 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$sgLLU22.yF5xloavoIiI6eb0pPmnUIyDTXaRgfD.hdZMkcD.i3X2G"], ["created_at", "2015-03-01 03:35:56.727801"], ["updated_at", "2015-03-01 03:35:56.727801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Fv5pvHhHB/2jTTw283jyuuDoGjqvsej9MIdLgznDoBJbvkOUQ39e6"], ["created_at", "2015-03-01 03:35:56.732435"], ["updated_at", "2015-03-01 03:35:56.732435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.736171"], ["user_id", "122b6174-bfc4-11e4-818e-705681abff85"], ["created_at", "2015-03-01 03:35:56.737025"], ["updated_at", "2015-03-01 03:35:56.737025"], ["token", "FFjf7UX5NFgaWCP1Z5VdNyR72Gv6stBf_K25Dqb2VuY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.738777"], ["user_id", "122c1ec0-bfc4-11e4-91fb-705681abff85"], ["created_at", "2015-03-01 03:35:56.739467"], ["updated_at", "2015-03-01 03:35:56.739467"], ["token", "3iaFi4w3MSem-X8pUPBmbBo1zWSZQfqcyYtyfCa6rcs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:56.743380"], ["updated_at", "2015-03-01 03:35:56.743380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '122b6174-bfc4-11e4-818e-705681abff85' AND "clubhouse_memberships"."organization_id" = '122dc068-bfc4-11e4-9557-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "122b6174-bfc4-11e4-818e-705681abff85"], ["organization_id", "122dc068-bfc4-11e4-9557-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:56.747019"], ["updated_at", "2015-03-01 03:35:56.747019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '122c1ec0-bfc4-11e4-91fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '122dc068-bfc4-11e4-9557-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "122c1ec0-bfc4-11e4-91fb-705681abff85"], ["organization_id", "122dc068-bfc4-11e4-9557-705681abff85"], ["created_at", "2015-03-01 03:35:56.750239"], ["updated_at", "2015-03-01 03:35:56.750239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '122dc068-bfc4-11e4-9557-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "122dc068-bfc4-11e4-9557-705681abff85"], ["created_at", "2015-03-01 03:35:56.754028"], ["updated_at", "2015-03-01 03:35:56.754028"], ["token", "WayS89A--rYfBGGdTLvYkhrG1tw35Y6YVbiMUkifitw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:35:56 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$lAKtEf14eDuToFnlu1lP7.YsAj7vrXGbwDnwPVOoPld8YExBrhbZO"], ["created_at", "2015-03-01 03:35:56.767714"], ["updated_at", "2015-03-01 03:35:56.767714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$.Mf5HWoAT8aoNhta5Onx0OjtxeVSsvM3SklGafD7.HwtvwOz2D1gW"], ["created_at", "2015-03-01 03:35:56.772472"], ["updated_at", "2015-03-01 03:35:56.772472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.774146"], ["user_id", "123176ea-bfc4-11e4-a567-705681abff85"], ["created_at", "2015-03-01 03:35:56.775017"], ["updated_at", "2015-03-01 03:35:56.775017"], ["token", "EgumbuOCJ-9FEo3-0REXbk3Q8IEAOAtXPRt4GENqHAM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.776934"], ["user_id", "12323198-bfc4-11e4-bc6c-705681abff85"], ["created_at", "2015-03-01 03:35:56.777673"], ["updated_at", "2015-03-01 03:35:56.777673"], ["token", "46d07mwYj-_hGoz7pbM58tWtQMNikbXWOojTHkLRLYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:56.781189"], ["updated_at", "2015-03-01 03:35:56.781189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '123176ea-bfc4-11e4-a567-705681abff85' AND "clubhouse_memberships"."organization_id" = '1233869c-bfc4-11e4-9964-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "123176ea-bfc4-11e4-a567-705681abff85"], ["organization_id", "1233869c-bfc4-11e4-9964-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:56.786073"], ["updated_at", "2015-03-01 03:35:56.786073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12323198-bfc4-11e4-bc6c-705681abff85' AND "clubhouse_memberships"."organization_id" = '1233869c-bfc4-11e4-9964-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "12323198-bfc4-11e4-bc6c-705681abff85"], ["organization_id", "1233869c-bfc4-11e4-9964-705681abff85"], ["created_at", "2015-03-01 03:35:56.790891"], ["updated_at", "2015-03-01 03:35:56.790891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '1233869c-bfc4-11e4-9964-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "1233869c-bfc4-11e4-9964-705681abff85"], ["created_at", "2015-03-01 03:35:56.795766"], ["updated_at", "2015-03-01 03:35:56.795766"], ["token", "4cZzECVoK7Bo5ZrNWfb5Uq8hIYrTVLNLbUIZLo21Ge8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:35:56 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:35:56.802371' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EgumbuOCJ-9FEo3-0REXbk3Q8IEAOAtXPRt4GENqHAM"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:35:56.803800"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:35:56.805837"], ["id", "12329c6e-bfc4-11e4-8066-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "123176ea-bfc4-11e4-a567-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "123176ea-bfc4-11e4-a567-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '123176ea-bfc4-11e4-a567-705681abff85' LIMIT 1 [["organization_id", "1233869c-bfc4-11e4-9964-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1233869c-bfc4-11e4-9964-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '1233869c-bfc4-11e4-9964-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 25ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$RfNLVSS8UG3D.KnabNnZK.EYWoIQNJc2S6nreyb94i9gm0q/iyH6."], ["created_at", "2015-03-01 03:35:56.834798"], ["updated_at", "2015-03-01 03:35:56.834798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$zYFJQuY1LwUSOWWDYjOAY.AgAcEpS0URBUs0X6GUugJjXiLMqOvga"], ["created_at", "2015-03-01 03:35:56.839558"], ["updated_at", "2015-03-01 03:35:56.839558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.841229"], ["user_id", "123bb9f2-bfc4-11e4-b493-705681abff85"], ["created_at", "2015-03-01 03:35:56.842046"], ["updated_at", "2015-03-01 03:35:56.842046"], ["token", "TND95BHpmw3gBOZLAStAxUU-ELKKKcJsUvhe2eWo_4A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:56.843808"], ["user_id", "123c6d7a-bfc4-11e4-8d0a-705681abff85"], ["created_at", "2015-03-01 03:35:56.844561"], ["updated_at", "2015-03-01 03:35:56.844561"], ["token", "gPIIS5nJyP2G1lpqNmd9hzP8MsQOtL9ZOElhx212RcY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:56.848317"], ["updated_at", "2015-03-01 03:35:56.848317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '123bb9f2-bfc4-11e4-b493-705681abff85' AND "clubhouse_memberships"."organization_id" = '123dcea4-bfc4-11e4-8857-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "123bb9f2-bfc4-11e4-b493-705681abff85"], ["organization_id", "123dcea4-bfc4-11e4-8857-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:56.852503"], ["updated_at", "2015-03-01 03:35:56.852503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '123c6d7a-bfc4-11e4-8d0a-705681abff85' AND "clubhouse_memberships"."organization_id" = '123dcea4-bfc4-11e4-8857-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "123c6d7a-bfc4-11e4-8d0a-705681abff85"], ["organization_id", "123dcea4-bfc4-11e4-8857-705681abff85"], ["created_at", "2015-03-01 03:35:56.855974"], ["updated_at", "2015-03-01 03:35:56.855974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '123dcea4-bfc4-11e4-8857-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "123dcea4-bfc4-11e4-8857-705681abff85"], ["created_at", "2015-03-01 03:35:56.859901"], ["updated_at", "2015-03-01 03:35:56.859901"], ["token", "_srw8tjwUPiRkiXEVi2xTsjl2sRvWfUqKe679SegwU4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:35:56 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:35:56.865642' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TND95BHpmw3gBOZLAStAxUU-ELKKKcJsUvhe2eWo_4A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:35:56.874996"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:35:56.875982"], ["id", "123cd4ea-bfc4-11e4-b1e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "123bb9f2-bfc4-11e4-b493-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "123bb9f2-bfc4-11e4-b493-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '123bb9f2-bfc4-11e4-b493-705681abff85' LIMIT 1 [["organization_id", "123dcea4-bfc4-11e4-8857-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "123dcea4-bfc4-11e4-8857-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '123dcea4-bfc4-11e4-8857-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "123dcea4-bfc4-11e4-8857-705681abff85"], ["created_at", "2015-03-01 03:35:56.884573"], ["updated_at", "2015-03-01 03:35:56.884573"], ["token", "ZuELeUVjiKc35rDEqUi4B4erpgUNGiJ27S-Wcx2wJK0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b9c62d6b-efb3-4dcc-b0c3-8a710eac2d2d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/124359c8-bfc4-11e4-af6c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "124359c8-bfc4-11e4-af6c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b9c62d6b-efb3-4dcc-b0c3-8a710eac2d2d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/124359c8-bfc4-11e4-af6c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [b9c62d6b-efb3-4dcc-b0c3-8a710eac2d2d] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "123dcea4-bfc4-11e4-8857-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b9c62d6b-efb3-4dcc-b0c3-8a710eac2d2d] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [b9c62d6b-efb3-4dcc-b0c3-8a710eac2d2d] Clubhouse::Mailer#invitation: processed outbound mail in 227.6ms [ActiveJob] [ActionMailer::DeliveryJob] [b9c62d6b-efb3-4dcc-b0c3-8a710eac2d2d] Sent mail to email@example.com (20.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [b9c62d6b-efb3-4dcc-b0c3-8a710eac2d2d] Date: Sat, 28 Feb 2015 19:35:57 -0800 From: from@example.com To: email@example.com Message-ID: <54f2891d247a9_12e633ff51c851be0917ea@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/ZuELeUVjiKc35rDEqUi4B4erpgUNGiJ27S-Wcx2wJK0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b9c62d6b-efb3-4dcc-b0c3-8a710eac2d2d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 248.81ms Completed 201 Created in 299ms (Views: 1.1ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$CIJIkVRDmuqIMurmjdEVL.MYRnDMGGxJu9PiO3QRLArzUt6j81Tfu"], ["created_at", "2015-03-01 03:35:57.173661"], ["updated_at", "2015-03-01 03:35:57.173661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$UwTeHsuRtI2Q70n7tYoBWupzM50T1Dl.WFxI82CD0efE3mSTZXMCa"], ["created_at", "2015-03-01 03:35:57.178211"], ["updated_at", "2015-03-01 03:35:57.178211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:57.179882"], ["user_id", "126f6e3c-bfc4-11e4-ba0d-705681abff85"], ["created_at", "2015-03-01 03:35:57.180672"], ["updated_at", "2015-03-01 03:35:57.180672"], ["token", "ko4G699QOuW1AmKjPq45ekYRgX2y3--Vc6VgcnRiLTk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:57.182380"], ["user_id", "1270167a-bfc4-11e4-a37b-705681abff85"], ["created_at", "2015-03-01 03:35:57.183441"], ["updated_at", "2015-03-01 03:35:57.183441"], ["token", "YdicYCI_gn6Zn2nN60LrZfdbS3_QPWx9YPWJZBLxs9s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:57.186849"], ["updated_at", "2015-03-01 03:35:57.186849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '126f6e3c-bfc4-11e4-ba0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '1271671e-bfc4-11e4-bca6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "126f6e3c-bfc4-11e4-ba0d-705681abff85"], ["organization_id", "1271671e-bfc4-11e4-bca6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:57.190523"], ["updated_at", "2015-03-01 03:35:57.190523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1270167a-bfc4-11e4-a37b-705681abff85' AND "clubhouse_memberships"."organization_id" = '1271671e-bfc4-11e4-bca6-705681abff85') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1270167a-bfc4-11e4-a37b-705681abff85"], ["organization_id", "1271671e-bfc4-11e4-bca6-705681abff85"], ["created_at", "2015-03-01 03:35:57.193876"], ["updated_at", "2015-03-01 03:35:57.193876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '1271671e-bfc4-11e4-bca6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "1271671e-bfc4-11e4-bca6-705681abff85"], ["created_at", "2015-03-01 03:35:57.200108"], ["updated_at", "2015-03-01 03:35:57.200108"], ["token", "ZLWF1U9w3Z-ZeLELWgdfPePLTmrxLqTpQrxTmziPKAc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:35:57 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:35:57.207525' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ko4G699QOuW1AmKjPq45ekYRgX2y3--Vc6VgcnRiLTk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:35:57.209187"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:35:57.210267"], ["id", "12707f5c-bfc4-11e4-933a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "126f6e3c-bfc4-11e4-ba0d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "126f6e3c-bfc4-11e4-ba0d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '126f6e3c-bfc4-11e4-ba0d-705681abff85' LIMIT 1 [["organization_id", "1271671e-bfc4-11e4-bca6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1271671e-bfc4-11e4-bca6-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '1271671e-bfc4-11e4-bca6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "1271671e-bfc4-11e4-bca6-705681abff85"], ["created_at", "2015-03-01 03:35:57.219689"], ["updated_at", "2015-03-01 03:35:57.219689"], ["token", "Ezd4TT8K39NTnAXUAbEnt1UD7sXGXpjh0vbksw7jsng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 44876d58-87ff-4def-8a7c-5b634901c85e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1276734e-bfc4-11e4-a1ab-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1276734e-bfc4-11e4-a1ab-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [44876d58-87ff-4def-8a7c-5b634901c85e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1276734e-bfc4-11e4-a1ab-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [44876d58-87ff-4def-8a7c-5b634901c85e] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1271671e-bfc4-11e4-bca6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [44876d58-87ff-4def-8a7c-5b634901c85e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [44876d58-87ff-4def-8a7c-5b634901c85e] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [44876d58-87ff-4def-8a7c-5b634901c85e] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [44876d58-87ff-4def-8a7c-5b634901c85e] Date: Sat, 28 Feb 2015 19:35:57 -0800 From: from@example.com To: email@example.com Message-ID: <54f2891d37835_12e633ff51c851be0918ac@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Ezd4TT8K39NTnAXUAbEnt1UD7sXGXpjh0vbksw7jsng If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [44876d58-87ff-4def-8a7c-5b634901c85e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.23ms Completed 201 Created in 23ms (Views: 0.6ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$nCvCuQmom.pdk.dn/Z6i7utDdLrezzXrv9Hvzjijd57E5WW/tsbWy"], ["created_at", "2015-03-01 03:35:57.238062"], ["updated_at", "2015-03-01 03:35:57.238062"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$YrVhLYSPcej27v/WvlXtIuu/xJe73PUIJdUB4L.Pp3otsK6T0Fd4G"], ["created_at", "2015-03-01 03:35:57.244632"], ["updated_at", "2015-03-01 03:35:57.244632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:57.246464"], ["user_id", "1279456a-bfc4-11e4-b9fa-705681abff85"], ["created_at", "2015-03-01 03:35:57.247356"], ["updated_at", "2015-03-01 03:35:57.247356"], ["token", "_EAmX-yPrIK2AIukPxyVIUZz6jJw4vjW-42nYUhP_1I"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:57.250263"], ["user_id", "127a42a8-bfc4-11e4-a2d0-705681abff85"], ["created_at", "2015-03-01 03:35:57.251094"], ["updated_at", "2015-03-01 03:35:57.251094"], ["token", "CZ3xRjqEz0eE5y4S4iw8YWaHQgblXf5K06lKVyQK3ws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:57.255421"], ["updated_at", "2015-03-01 03:35:57.255421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1279456a-bfc4-11e4-b9fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '127be8d8-bfc4-11e4-aa83-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1279456a-bfc4-11e4-b9fa-705681abff85"], ["organization_id", "127be8d8-bfc4-11e4-aa83-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:57.260552"], ["updated_at", "2015-03-01 03:35:57.260552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '127a42a8-bfc4-11e4-a2d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '127be8d8-bfc4-11e4-aa83-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "127a42a8-bfc4-11e4-a2d0-705681abff85"], ["organization_id", "127be8d8-bfc4-11e4-aa83-705681abff85"], ["created_at", "2015-03-01 03:35:57.267895"], ["updated_at", "2015-03-01 03:35:57.267895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '127be8d8-bfc4-11e4-aa83-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "127be8d8-bfc4-11e4-aa83-705681abff85"], ["created_at", "2015-03-01 03:35:57.271635"], ["updated_at", "2015-03-01 03:35:57.271635"], ["token", "c9QIxDyti-yFsD4UVZOeNPsR4OBnHT296IkNIS6tCI0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/127e5afa-bfc4-11e4-a86c-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:35:57 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"127e5afa-bfc4-11e4-a86c-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:35:57.276786' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_EAmX-yPrIK2AIukPxyVIUZz6jJw4vjW-42nYUhP_1I"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:35:57.279342"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:35:57.281354"], ["id", "127abd64-bfc4-11e4-99b6-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1279456a-bfc4-11e4-b9fa-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1279456a-bfc4-11e4-b9fa-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1279456a-bfc4-11e4-b9fa-705681abff85' LIMIT 1 [["organization_id", "127be8d8-bfc4-11e4-aa83-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "127be8d8-bfc4-11e4-aa83-705681abff85"], ["id", "127e5afa-bfc4-11e4-a86c-705681abff85"]] Completed 200 OK in 62ms (Views: 46.7ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$cBjHrm8xk73okAF2sjEl6.ZlhKX6Hgbmj01u2S2JHDDjfHXwbpEB2"], ["created_at", "2015-03-01 03:35:57.357867"], ["updated_at", "2015-03-01 03:35:57.357867"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$F2uXlkThH5TSye0u5pkJbOOtmmBxn7FoR8ZemhuSfXkSo1Dc6w6/a"], ["created_at", "2015-03-01 03:35:57.366001"], ["updated_at", "2015-03-01 03:35:57.366001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:57.367903"], ["user_id", "128ba958-bfc4-11e4-9319-705681abff85"], ["created_at", "2015-03-01 03:35:57.370084"], ["updated_at", "2015-03-01 03:35:57.370084"], ["token", "M9_82HijjYbzBoZg5kp0lkei7A-UFIyRnS_z2-2nquI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:57.374578"], ["user_id", "128cc720-bfc4-11e4-8c08-705681abff85"], ["created_at", "2015-03-01 03:35:57.375561"], ["updated_at", "2015-03-01 03:35:57.375561"], ["token", "t0smO6e2YrU-t6JZ61OcXxCn1pRAcG5iVsU9X_gKK1s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:57.382223"], ["updated_at", "2015-03-01 03:35:57.382223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '128ba958-bfc4-11e4-9319-705681abff85' AND "clubhouse_memberships"."organization_id" = '128f57ec-bfc4-11e4-865b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "128ba958-bfc4-11e4-9319-705681abff85"], ["organization_id", "128f57ec-bfc4-11e4-865b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:57.387366"], ["updated_at", "2015-03-01 03:35:57.387366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '128cc720-bfc4-11e4-8c08-705681abff85' AND "clubhouse_memberships"."organization_id" = '128f57ec-bfc4-11e4-865b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "128cc720-bfc4-11e4-8c08-705681abff85"], ["organization_id", "128f57ec-bfc4-11e4-865b-705681abff85"], ["created_at", "2015-03-01 03:35:57.394126"], ["updated_at", "2015-03-01 03:35:57.394126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '128f57ec-bfc4-11e4-865b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "128f57ec-bfc4-11e4-865b-705681abff85"], ["created_at", "2015-03-01 03:35:57.397794"], ["updated_at", "2015-03-01 03:35:57.397794"], ["token", "tPcKMKfEhCFm1m6ZmKSh7ojDRP_J5mY3VvBfvIVbj6U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:35:57 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$uBypB4L.A90witwDN9sUgO8mS6uxw14MqUJjcOBKOd/CLG8DmLG3S"], ["created_at", "2015-03-01 03:35:57.410015"], ["updated_at", "2015-03-01 03:35:57.410015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$oF1ttgVmpiyyVSle6TMWOuiLWTjQQ3IlfLFUgBILvm84tJAcBPcSm"], ["created_at", "2015-03-01 03:35:57.414491"], ["updated_at", "2015-03-01 03:35:57.414491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:57.416067"], ["user_id", "12937a66-bfc4-11e4-a3fa-705681abff85"], ["created_at", "2015-03-01 03:35:57.416814"], ["updated_at", "2015-03-01 03:35:57.416814"], ["token", "TXGiGQRjDSXYlVN83ygFBczgevDvoVWRkQNCYGpTNZU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:57.418379"], ["user_id", "129426fa-bfc4-11e4-b1dd-705681abff85"], ["created_at", "2015-03-01 03:35:57.419031"], ["updated_at", "2015-03-01 03:35:57.419031"], ["token", "NWSLT09kkLcWZFROaXb-BfeZ3YAg7RBwC6UQ_HIOryg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:57.422384"], ["updated_at", "2015-03-01 03:35:57.422384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12937a66-bfc4-11e4-a3fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '12955bc4-bfc4-11e4-abb7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "12937a66-bfc4-11e4-a3fa-705681abff85"], ["organization_id", "12955bc4-bfc4-11e4-abb7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:57.425810"], ["updated_at", "2015-03-01 03:35:57.425810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$lxjFUXQnRvPSRwHd7lUDV.ILJ8HUkBbawflLupIXjovx.qkQN1RqG"], ["created_at", "2015-03-01 03:35:57.430904"], ["updated_at", "2015-03-01 03:35:57.430904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:57.433865"], ["updated_at", "2015-03-01 03:35:57.433865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1296a61e-bfc4-11e4-b0dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '129716ee-bfc4-11e4-92b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1296a61e-bfc4-11e4-b0dc-705681abff85"], ["organization_id", "129716ee-bfc4-11e4-92b0-705681abff85"], ["created_at", "2015-03-01 03:35:57.437043"], ["updated_at", "2015-03-01 03:35:57.437043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '12955bc4-bfc4-11e4-abb7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "12955bc4-bfc4-11e4-abb7-705681abff85"], ["created_at", "2015-03-01 03:35:57.442297"], ["updated_at", "2015-03-01 03:35:57.442297"], ["token", "vF6oifdPQn6lEe67C41w2LvF7xh_y5mCQK3fAVB28W0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:35:57 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:35:57.447183' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TXGiGQRjDSXYlVN83ygFBczgevDvoVWRkQNCYGpTNZU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:35:57.448859"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:35:57.450164"], ["id", "129484b0-bfc4-11e4-821d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "12937a66-bfc4-11e4-a3fa-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "12937a66-bfc4-11e4-a3fa-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '12937a66-bfc4-11e4-a3fa-705681abff85' LIMIT 1 [["organization_id", "12955bc4-bfc4-11e4-abb7-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "12955bc4-bfc4-11e4-abb7-705681abff85"]] Completed 200 OK in 15ms (Views: 2.1ms | ActiveRecord: 5.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$sWhsU2zBfLb9I4l/HWfwCuHtKgdMs2lTnLVQDH/Fi1RzShdNMmiiO"], ["created_at", "2015-03-01 03:35:57.468600"], ["updated_at", "2015-03-01 03:35:57.468600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$5pQdNCVfwNFu0QKV4laLlel0Z1p942lb0HG/Dpx5fMh/Hcs2x4oJG"], ["created_at", "2015-03-01 03:35:57.472839"], ["updated_at", "2015-03-01 03:35:57.472839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:57.474540"], ["user_id", "129c66c6-bfc4-11e4-85aa-705681abff85"], ["created_at", "2015-03-01 03:35:57.475310"], ["updated_at", "2015-03-01 03:35:57.475310"], ["token", "-NWdG_Y0qNY9tT2ADqrv5dCTTfSHt9CBfiJ0XB2fF4o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:35:57.477075"], ["user_id", "129d10ee-bfc4-11e4-a2fe-705681abff85"], ["created_at", "2015-03-01 03:35:57.477771"], ["updated_at", "2015-03-01 03:35:57.477771"], ["token", "FJr0mIZJHfRjhHkfL4zT9T_WNS2tz_vGAhby8VjBY7k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:57.481746"], ["updated_at", "2015-03-01 03:35:57.481746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '129c66c6-bfc4-11e4-85aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '129e6c82-bfc4-11e4-b557-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "129c66c6-bfc4-11e4-85aa-705681abff85"], ["organization_id", "129e6c82-bfc4-11e4-b557-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:35:57.485593"], ["updated_at", "2015-03-01 03:35:57.485593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$9b8CGGAsnVBGlYVNGIrAyuPlr2niLUPq.5YzZjvUmuWVD1dI.ep.2"], ["created_at", "2015-03-01 03:35:57.489947"], ["updated_at", "2015-03-01 03:35:57.489947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:35:57.492811"], ["updated_at", "2015-03-01 03:35:57.492811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '129fa624-bfc4-11e4-920e-705681abff85' AND "clubhouse_memberships"."organization_id" = '12a018a2-bfc4-11e4-8410-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "129fa624-bfc4-11e4-920e-705681abff85"], ["organization_id", "12a018a2-bfc4-11e4-8410-705681abff85"], ["created_at", "2015-03-01 03:35:57.496080"], ["updated_at", "2015-03-01 03:35:57.496080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '129e6c82-bfc4-11e4-b557-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "129e6c82-bfc4-11e4-b557-705681abff85"], ["created_at", "2015-03-01 03:35:57.500208"], ["updated_at", "2015-03-01 03:35:57.500208"], ["token", "FFXT_rG_J0LskpsDf5MF8DrG4C8siES3YFGKqR3pc3A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:35:57 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$eBvLCRZvPLjUPVZS54da4ewwobNwwcSCzlSbG1i.cTeu7a4n1M.jK"], ["created_at", "2015-03-01 03:38:12.266092"], ["updated_at", "2015-03-01 03:38:12.266092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$wUohkD1U3EhCorYhyKJveu70aay4qVOPSer/yWQudM0FQajHwVMU2"], ["created_at", "2015-03-01 03:38:12.278859"], ["updated_at", "2015-03-01 03:38:12.278859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (19.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:12.288126"], ["user_id", "62f518d4-bfc4-11e4-ac27-705681abff85"], ["created_at", "2015-03-01 03:38:12.340593"], ["updated_at", "2015-03-01 03:38:12.340593"], ["token", "pP9of4kgztWAI9_IUn-Kase0pXYBGalLWiqjmp5hoHU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:12.378069"], ["user_id", "62f6d2aa-bfc4-11e4-800d-705681abff85"], ["created_at", "2015-03-01 03:38:12.379396"], ["updated_at", "2015-03-01 03:38:12.379396"], ["token", "4qclETy37aRLOaRD_jIxcmbdDuRxJDTzHjbVWTQoEkc"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:12.391539"], ["updated_at", "2015-03-01 03:38:12.391539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62f518d4-bfc4-11e4-ac27-705681abff85' AND "clubhouse_memberships"."organization_id" = '63081ede-bfc4-11e4-b07f-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62f518d4-bfc4-11e4-ac27-705681abff85"], ["organization_id", "63081ede-bfc4-11e4-b07f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:12.439845"], ["updated_at", "2015-03-01 03:38:12.439845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62f6d2aa-bfc4-11e4-800d-705681abff85' AND "clubhouse_memberships"."organization_id" = '63081ede-bfc4-11e4-b07f-705681abff85') LIMIT 1 SQL (5.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "62f6d2aa-bfc4-11e4-800d-705681abff85"], ["organization_id", "63081ede-bfc4-11e4-b07f-705681abff85"], ["created_at", "2015-03-01 03:38:12.444448"], ["updated_at", "2015-03-01 03:38:12.444448"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '63081ede-bfc4-11e4-b07f-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "63081ede-bfc4-11e4-b07f-705681abff85"], ["created_at", "2015-03-01 03:38:12.473880"], ["updated_at", "2015-03-01 03:38:12.473880"], ["token", "E9UeS2OlGzPonjE1LJeTD39Vt6hnEJoq-IeLDc3Sq9A"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:38:12 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$yeS0ZaaA0SXFGRSSnOREAeHkgtJaEJRECmym9POP7Tn32aTlYtim2"], ["created_at", "2015-03-01 03:38:12.522099"], ["updated_at", "2015-03-01 03:38:12.522099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$8sZikoK228949BOP3h4N..Tu/iFnXkKBqa6pPO4rLsdFp3Znnasr2"], ["created_at", "2015-03-01 03:38:12.527063"], ["updated_at", "2015-03-01 03:38:12.527063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:12.528969"], ["user_id", "631bf4fe-bfc4-11e4-84cf-705681abff85"], ["created_at", "2015-03-01 03:38:12.530041"], ["updated_at", "2015-03-01 03:38:12.530041"], ["token", "xcDKc44Q1FoRjF5zfY1aFGf8h6KSV-95f0aut-R91Ao"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:12.532057"], ["user_id", "631cb6d2-bfc4-11e4-a5c9-705681abff85"], ["created_at", "2015-03-01 03:38:12.532867"], ["updated_at", "2015-03-01 03:38:12.532867"], ["token", "Sq3Pfe-qMGTZbtGlS0MY9DDtGLhn3n5hDJ_Jr384kK0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:12.537003"], ["updated_at", "2015-03-01 03:38:12.537003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '631bf4fe-bfc4-11e4-84cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '631e5942-bfc4-11e4-9dec-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "631bf4fe-bfc4-11e4-84cf-705681abff85"], ["organization_id", "631e5942-bfc4-11e4-9dec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:12.542632"], ["updated_at", "2015-03-01 03:38:12.542632"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '631cb6d2-bfc4-11e4-a5c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '631e5942-bfc4-11e4-9dec-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "631cb6d2-bfc4-11e4-a5c9-705681abff85"], ["organization_id", "631e5942-bfc4-11e4-9dec-705681abff85"], ["created_at", "2015-03-01 03:38:12.548645"], ["updated_at", "2015-03-01 03:38:12.548645"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '631e5942-bfc4-11e4-9dec-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "631e5942-bfc4-11e4-9dec-705681abff85"], ["created_at", "2015-03-01 03:38:12.557441"], ["updated_at", "2015-03-01 03:38:12.557441"], ["token", "qbaDr8tMq0TobIJcYrPCiob8H46oJ3NrCK3PSWBxhwM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:38:12 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:38:12.566083' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xcDKc44Q1FoRjF5zfY1aFGf8h6KSV-95f0aut-R91Ao"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:38:12.574343"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:38:12.575717"], ["id", "631d31fc-bfc4-11e4-8a15-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "631bf4fe-bfc4-11e4-84cf-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "631bf4fe-bfc4-11e4-84cf-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '631bf4fe-bfc4-11e4-84cf-705681abff85' LIMIT 1 [["organization_id", "631e5942-bfc4-11e4-9dec-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "631e5942-bfc4-11e4-9dec-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '631e5942-bfc4-11e4-9dec-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "631e5942-bfc4-11e4-9dec-705681abff85"], ["created_at", "2015-03-01 03:38:12.610459"], ["updated_at", "2015-03-01 03:38:12.610459"], ["token", "oGa0C_zSYo-WtXWUzAP0IIZx8TV8z_bYKhjQNx0fIj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9701e02d-7c05-43b8-8cb2-02f29fd6dec7) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/63298b3c-bfc4-11e4-a046-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "63298b3c-bfc4-11e4-a046-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9701e02d-7c05-43b8-8cb2-02f29fd6dec7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/63298b3c-bfc4-11e4-a046-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9701e02d-7c05-43b8-8cb2-02f29fd6dec7] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "631e5942-bfc4-11e4-9dec-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9701e02d-7c05-43b8-8cb2-02f29fd6dec7] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [9701e02d-7c05-43b8-8cb2-02f29fd6dec7] Clubhouse::Mailer#invitation: processed outbound mail in 425.6ms [ActiveJob] [ActionMailer::DeliveryJob] [9701e02d-7c05-43b8-8cb2-02f29fd6dec7] Sent mail to email@example.com (50.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [9701e02d-7c05-43b8-8cb2-02f29fd6dec7] Date: Sat, 28 Feb 2015 19:38:13 -0800 From: from@example.com To: email@example.com Message-ID: <54f289a512e4e_12e753fe1ecc65be881520@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/oGa0C_zSYo-WtXWUzAP0IIZx8TV8z_bYKhjQNx0fIj0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9701e02d-7c05-43b8-8cb2-02f29fd6dec7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 476.17ms Completed 201 Created in 558ms (Views: 2.1ms | ActiveRecord: 3.7ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (9.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$FITG1dOB/HBlRyywEU/xPuzFyjvlh99EJqdcAziWYebixzCDaewR."], ["created_at", "2015-03-01 03:38:13.143711"], ["updated_at", "2015-03-01 03:38:13.143711"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$brw8tHxBRcVg19xmLNROzefz3qF2SixV4yzxezG79JviqTFoe8GP6"], ["created_at", "2015-03-01 03:38:13.165768"], ["updated_at", "2015-03-01 03:38:13.165768"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.170577"], ["user_id", "637af3be-bfc4-11e4-a20d-705681abff85"], ["created_at", "2015-03-01 03:38:13.172069"], ["updated_at", "2015-03-01 03:38:13.172069"], ["token", "t1aUWsSTw_KZX61sVqGr251u5AB7rL_u28ekqDahox0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.177368"], ["user_id", "637e6f08-bfc4-11e4-882d-705681abff85"], ["created_at", "2015-03-01 03:38:13.178853"], ["updated_at", "2015-03-01 03:38:13.178853"], ["token", "61U3GFztMZfQ9DguGbljnNOjR5yX8nSapyUzaK8YYnA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.185845"], ["updated_at", "2015-03-01 03:38:13.185845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '637af3be-bfc4-11e4-a20d-705681abff85' AND "clubhouse_memberships"."organization_id" = '63815038-bfc4-11e4-a752-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "637af3be-bfc4-11e4-a20d-705681abff85"], ["organization_id", "63815038-bfc4-11e4-a752-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:13.192412"], ["updated_at", "2015-03-01 03:38:13.192412"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '637e6f08-bfc4-11e4-882d-705681abff85' AND "clubhouse_memberships"."organization_id" = '63815038-bfc4-11e4-a752-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "637e6f08-bfc4-11e4-882d-705681abff85"], ["organization_id", "63815038-bfc4-11e4-a752-705681abff85"], ["created_at", "2015-03-01 03:38:13.206164"], ["updated_at", "2015-03-01 03:38:13.206164"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '63815038-bfc4-11e4-a752-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "63815038-bfc4-11e4-a752-705681abff85"], ["created_at", "2015-03-01 03:38:13.215623"], ["updated_at", "2015-03-01 03:38:13.215623"], ["token", "jd5yqHZGYvTTZ4BtYG68rxmdzraDGj1PvLbv5c1xvsA"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:38:13 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:38:13.225521' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "t1aUWsSTw_KZX61sVqGr251u5AB7rL_u28ekqDahox0"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:38:13.228130"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:38:13.229896"], ["id", "637f53aa-bfc4-11e4-8577-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "637af3be-bfc4-11e4-a20d-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "637af3be-bfc4-11e4-a20d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '637af3be-bfc4-11e4-a20d-705681abff85' LIMIT 1 [["organization_id", "63815038-bfc4-11e4-a752-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63815038-bfc4-11e4-a752-705681abff85"]] Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '63815038-bfc4-11e4-a752-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "63815038-bfc4-11e4-a752-705681abff85"], ["created_at", "2015-03-01 03:38:13.251662"], ["updated_at", "2015-03-01 03:38:13.251662"], ["token", "i0PqpHOnasr4VfdTlF3QYakwREQi5jvndb_sP3_XF5w"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 504fbfc3-e0c7-4b86-a1b5-40606bd079a2) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/638b7978-bfc4-11e4-8bbf-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.6ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "638b7978-bfc4-11e4-8bbf-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [504fbfc3-e0c7-4b86-a1b5-40606bd079a2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/638b7978-bfc4-11e4-8bbf-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [504fbfc3-e0c7-4b86-a1b5-40606bd079a2] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63815038-bfc4-11e4-a752-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [504fbfc3-e0c7-4b86-a1b5-40606bd079a2] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [504fbfc3-e0c7-4b86-a1b5-40606bd079a2] Clubhouse::Mailer#invitation: processed outbound mail in 6.3ms [ActiveJob] [ActionMailer::DeliveryJob] [504fbfc3-e0c7-4b86-a1b5-40606bd079a2] Sent mail to email@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [504fbfc3-e0c7-4b86-a1b5-40606bd079a2] Date: Sat, 28 Feb 2015 19:38:13 -0800 From: from@example.com To: email@example.com Message-ID: <54f289a541de7_12e753fe1ecc65be88165e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/i0PqpHOnasr4VfdTlF3QYakwREQi5jvndb_sP3_XF5w If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [504fbfc3-e0c7-4b86-a1b5-40606bd079a2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 10.29ms Completed 201 Created in 49ms (Views: 1.6ms | ActiveRecord: 5.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$oCydouPRIJv1Xgs5MMA6OOGVbNYn5I47/bwhO2rZi5T5kotA1wrBy"], ["created_at", "2015-03-01 03:38:13.288292"], ["updated_at", "2015-03-01 03:38:13.288292"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$v78VGm0/w7qGQXseiWV2Vu5znifJarUezLbjz2Z8HBDjc1QBibbMC"], ["created_at", "2015-03-01 03:38:13.338427"], ["updated_at", "2015-03-01 03:38:13.338427"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.343609"], ["user_id", "6390efd4-bfc4-11e4-961e-705681abff85"], ["created_at", "2015-03-01 03:38:13.345081"], ["updated_at", "2015-03-01 03:38:13.345081"], ["token", "uDnxzRk8wrmtjvEqZ1xsnPaIb83Lfp2A7DAyWNpILq4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.349360"], ["user_id", "6398d46a-bfc4-11e4-91b4-705681abff85"], ["created_at", "2015-03-01 03:38:13.350613"], ["updated_at", "2015-03-01 03:38:13.350613"], ["token", "Ho-jWwVURDvUN0DQsdbAx-fRRFqxxt_TrILR73mZskY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.364745"], ["updated_at", "2015-03-01 03:38:13.364745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6390efd4-bfc4-11e4-961e-705681abff85' AND "clubhouse_memberships"."organization_id" = '639ca2b6-bfc4-11e4-824b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6390efd4-bfc4-11e4-961e-705681abff85"], ["organization_id", "639ca2b6-bfc4-11e4-824b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:13.373890"], ["updated_at", "2015-03-01 03:38:13.373890"]]  (3.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6398d46a-bfc4-11e4-91b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '639ca2b6-bfc4-11e4-824b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6398d46a-bfc4-11e4-91b4-705681abff85"], ["organization_id", "639ca2b6-bfc4-11e4-824b-705681abff85"], ["created_at", "2015-03-01 03:38:13.391152"], ["updated_at", "2015-03-01 03:38:13.391152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '639ca2b6-bfc4-11e4-824b-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "639ca2b6-bfc4-11e4-824b-705681abff85"], ["created_at", "2015-03-01 03:38:13.400321"], ["updated_at", "2015-03-01 03:38:13.400321"], ["token", "O7EeQRB6GG9sVd0wu0SYGsG3GYIK4875tl1jXB5eh9I"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:38:13 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:38:13.413365' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uDnxzRk8wrmtjvEqZ1xsnPaIb83Lfp2A7DAyWNpILq4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:38:13.415053"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:38:13.416197"], ["id", "6399c21c-bfc4-11e4-98d2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6390efd4-bfc4-11e4-961e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6390efd4-bfc4-11e4-961e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6390efd4-bfc4-11e4-961e-705681abff85' LIMIT 1 [["organization_id", "639ca2b6-bfc4-11e4-824b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "639ca2b6-bfc4-11e4-824b-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '639ca2b6-bfc4-11e4-824b-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$GsZYDfquSQPzlJhnqtElgOPE306Vy/S7LofUCUGEHq8OV/n1xxy8i"], ["created_at", "2015-03-01 03:38:13.433962"], ["updated_at", "2015-03-01 03:38:13.433962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$4iL5ejTlj8HCDrgI4ASGSusx0fjxPF652pTri3TkUfTnkKWdpcFZK"], ["created_at", "2015-03-01 03:38:13.439096"], ["updated_at", "2015-03-01 03:38:13.439096"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.440986"], ["user_id", "63a71692-bfc4-11e4-b286-705681abff85"], ["created_at", "2015-03-01 03:38:13.441991"], ["updated_at", "2015-03-01 03:38:13.441991"], ["token", "oun-Iv5D2L2Z720cVDo_7axFXqG3mWY3eoyXA5gMqdc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.444007"], ["user_id", "63a7dee2-bfc4-11e4-a045-705681abff85"], ["created_at", "2015-03-01 03:38:13.445529"], ["updated_at", "2015-03-01 03:38:13.445529"], ["token", "X3jGcv913EHFw1M8t0yo0Sv8R59QdqiOleDiaaP-3YY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.456039"], ["updated_at", "2015-03-01 03:38:13.456039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63a71692-bfc4-11e4-b286-705681abff85' AND "clubhouse_memberships"."organization_id" = '63aa8656-bfc4-11e4-88c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63a71692-bfc4-11e4-b286-705681abff85"], ["organization_id", "63aa8656-bfc4-11e4-88c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:13.460945"], ["updated_at", "2015-03-01 03:38:13.460945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63a7dee2-bfc4-11e4-a045-705681abff85' AND "clubhouse_memberships"."organization_id" = '63aa8656-bfc4-11e4-88c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63a7dee2-bfc4-11e4-a045-705681abff85"], ["organization_id", "63aa8656-bfc4-11e4-88c6-705681abff85"], ["created_at", "2015-03-01 03:38:13.466325"], ["updated_at", "2015-03-01 03:38:13.466325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '63aa8656-bfc4-11e4-88c6-705681abff85') LIMIT 1 SQL (8.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "63aa8656-bfc4-11e4-88c6-705681abff85"], ["created_at", "2015-03-01 03:38:13.472631"], ["updated_at", "2015-03-01 03:38:13.472631"], ["token", "LK-tJmu4qujElPhbMfZB2PdpC7fDsnNTsJwXz63ZwRY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:38:13 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$3hc5XIY2U2UE6FsjCid71es02bPlsqBCfPuXMQpKl4jVSWJV/6Sp2"], ["created_at", "2015-03-01 03:38:13.497140"], ["updated_at", "2015-03-01 03:38:13.497140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$KOe36P3/Ddd2Kvzlnv.CfuxkjAVi2cP/rgsSk4UisKZ4IZgSHm7Ie"], ["created_at", "2015-03-01 03:38:13.502140"], ["updated_at", "2015-03-01 03:38:13.502140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.504294"], ["user_id", "63b0be68-bfc4-11e4-80a7-705681abff85"], ["created_at", "2015-03-01 03:38:13.505227"], ["updated_at", "2015-03-01 03:38:13.505227"], ["token", "q3kTW0RnwA3SJu71jGTNKJwS4AowK6etPO9v47rXml4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.507184"], ["user_id", "63b186f4-bfc4-11e4-b127-705681abff85"], ["created_at", "2015-03-01 03:38:13.508114"], ["updated_at", "2015-03-01 03:38:13.508114"], ["token", "bTnG0eewFC1Ij-zkv2Bloq1VpUmEDsCVeU4GiojuPYg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.512242"], ["updated_at", "2015-03-01 03:38:13.512242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63b0be68-bfc4-11e4-80a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '63b30dc6-bfc4-11e4-904d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63b0be68-bfc4-11e4-80a7-705681abff85"], ["organization_id", "63b30dc6-bfc4-11e4-904d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:13.516534"], ["updated_at", "2015-03-01 03:38:13.516534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63b186f4-bfc4-11e4-b127-705681abff85' AND "clubhouse_memberships"."organization_id" = '63b30dc6-bfc4-11e4-904d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63b186f4-bfc4-11e4-b127-705681abff85"], ["organization_id", "63b30dc6-bfc4-11e4-904d-705681abff85"], ["created_at", "2015-03-01 03:38:13.519971"], ["updated_at", "2015-03-01 03:38:13.519971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '63b30dc6-bfc4-11e4-904d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "63b30dc6-bfc4-11e4-904d-705681abff85"], ["created_at", "2015-03-01 03:38:13.524291"], ["updated_at", "2015-03-01 03:38:13.524291"], ["token", "A7JvX0S1LYo2DSz7eqbBLlf16qVRYCLFwu4F30hWM_A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/63b4e52e-bfc4-11e4-8d57-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:38:13 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"63b4e52e-bfc4-11e4-8d57-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:38:13.531439' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q3kTW0RnwA3SJu71jGTNKJwS4AowK6etPO9v47rXml4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:38:13.533177"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:38:13.534279"], ["id", "63b1fd82-bfc4-11e4-ab92-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63b0be68-bfc4-11e4-80a7-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "63b0be68-bfc4-11e4-80a7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63b0be68-bfc4-11e4-80a7-705681abff85' LIMIT 1 [["organization_id", "63b30dc6-bfc4-11e4-904d-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "63b30dc6-bfc4-11e4-904d-705681abff85"], ["id", "63b4e52e-bfc4-11e4-8d57-705681abff85"]] Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$s.cNNLAEv3m9XpOf8Zixz.p8ONL2nmPqTL6j7VcvjVhToXUAmrURm"], ["created_at", "2015-03-01 03:38:13.550795"], ["updated_at", "2015-03-01 03:38:13.550795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$NSLSyoQ1FYzVvw21WU5.R.3CMJsCemub5l7GeG8uOm3mcP2HGHU96"], ["created_at", "2015-03-01 03:38:13.555978"], ["updated_at", "2015-03-01 03:38:13.555978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.557846"], ["user_id", "63b8ef98-bfc4-11e4-9341-705681abff85"], ["created_at", "2015-03-01 03:38:13.558745"], ["updated_at", "2015-03-01 03:38:13.558745"], ["token", "TmEJMGAYiGd6gVqkaYYwyP1-ZRPKgKOwRArGYTsVkM4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.560754"], ["user_id", "63b9b536-bfc4-11e4-bac2-705681abff85"], ["created_at", "2015-03-01 03:38:13.561498"], ["updated_at", "2015-03-01 03:38:13.561498"], ["token", "cROk3AG161P7oFKCtoqF-lA3ZJyXavBA-Ps4wdQtFn4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.565793"], ["updated_at", "2015-03-01 03:38:13.565793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63b8ef98-bfc4-11e4-9341-705681abff85' AND "clubhouse_memberships"."organization_id" = '63bb3488-bfc4-11e4-8368-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63b8ef98-bfc4-11e4-9341-705681abff85"], ["organization_id", "63bb3488-bfc4-11e4-8368-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:13.571852"], ["updated_at", "2015-03-01 03:38:13.571852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$RG6nZBHohgj/nUTP7fgM3OnkDtBoKs3dUiuMNWaMM5qOiAJ1Mb3/S"], ["created_at", "2015-03-01 03:38:13.577462"], ["updated_at", "2015-03-01 03:38:13.577462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.581873"], ["updated_at", "2015-03-01 03:38:13.581873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63bcfe62-bfc4-11e4-9e54-705681abff85' AND "clubhouse_memberships"."organization_id" = '63bdaa1a-bfc4-11e4-8f3f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63bcfe62-bfc4-11e4-9e54-705681abff85"], ["organization_id", "63bdaa1a-bfc4-11e4-8f3f-705681abff85"], ["created_at", "2015-03-01 03:38:13.585866"], ["updated_at", "2015-03-01 03:38:13.585866"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '63bb3488-bfc4-11e4-8368-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "63bb3488-bfc4-11e4-8368-705681abff85"], ["created_at", "2015-03-01 03:38:13.591486"], ["updated_at", "2015-03-01 03:38:13.591486"], ["token", "fbCoLeMZhALNRxj8MHRi6TNDcBuO23-3uKQR9-ouXl4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:38:13 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$3iOYJG.SloMZZgX4y9CZN.yNN5607HwwwY3uLcq7fuJfmrzYDSUgy"], ["created_at", "2015-03-01 03:38:13.606677"], ["updated_at", "2015-03-01 03:38:13.606677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$vDrousXbCcQLi1tnzhJXv.PpcwQO/47W6vXkGrvBCxLK/z.lMBUGC"], ["created_at", "2015-03-01 03:38:13.611780"], ["updated_at", "2015-03-01 03:38:13.611780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.613952"], ["user_id", "63c1728a-bfc4-11e4-b094-705681abff85"], ["created_at", "2015-03-01 03:38:13.614833"], ["updated_at", "2015-03-01 03:38:13.614833"], ["token", "4Jpq2q-ExCDTf2c0muka-us2EOlNxG0qYPpaIQ8kA_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.616925"], ["user_id", "63c23dbe-bfc4-11e4-ab03-705681abff85"], ["created_at", "2015-03-01 03:38:13.617709"], ["updated_at", "2015-03-01 03:38:13.617709"], ["token", "7RjJRwbQKgAL-Er6Vx8jL7F73tg0gJR5Xny4zwdGG0c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.621784"], ["updated_at", "2015-03-01 03:38:13.621784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63c1728a-bfc4-11e4-b094-705681abff85' AND "clubhouse_memberships"."organization_id" = '63c3bc48-bfc4-11e4-9887-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63c1728a-bfc4-11e4-b094-705681abff85"], ["organization_id", "63c3bc48-bfc4-11e4-9887-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:13.625834"], ["updated_at", "2015-03-01 03:38:13.625834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$fAa8pQB8wu5/.Z2ziaLQA.6qUvS3q1q23nz2zB0hQHBkaxfnEzP2W"], ["created_at", "2015-03-01 03:38:13.630390"], ["updated_at", "2015-03-01 03:38:13.630390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.634035"], ["updated_at", "2015-03-01 03:38:13.634035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63c50ff8-bfc4-11e4-bbdf-705681abff85' AND "clubhouse_memberships"."organization_id" = '63c598ba-bfc4-11e4-94f8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63c50ff8-bfc4-11e4-bbdf-705681abff85"], ["organization_id", "63c598ba-bfc4-11e4-94f8-705681abff85"], ["created_at", "2015-03-01 03:38:13.637318"], ["updated_at", "2015-03-01 03:38:13.637318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '63c3bc48-bfc4-11e4-9887-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "63c3bc48-bfc4-11e4-9887-705681abff85"], ["created_at", "2015-03-01 03:38:13.641349"], ["updated_at", "2015-03-01 03:38:13.641349"], ["token", "sQZKhVBwOZis4HBUr2FjmGJk2j8TjYntlfXuuRE-d7w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:38:13 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:38:13.647061' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4Jpq2q-ExCDTf2c0muka-us2EOlNxG0qYPpaIQ8kA_s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:38:13.648825"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:38:13.649853"], ["id", "63c2ba50-bfc4-11e4-9932-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63c1728a-bfc4-11e4-b094-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "63c1728a-bfc4-11e4-b094-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63c1728a-bfc4-11e4-b094-705681abff85' LIMIT 1 [["organization_id", "63c3bc48-bfc4-11e4-9887-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "63c3bc48-bfc4-11e4-9887-705681abff85"]] Completed 200 OK in 11ms (Views: 2.4ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$D2S6wocpvUy/s/KZfxNiZ.4AAgfhjHimgI7k4IP0yxpdXF1Ue18ya"], ["created_at", "2015-03-01 03:38:13.665108"], ["updated_at", "2015-03-01 03:38:13.665108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$QJHAl2L28YhgCEiC2LuFI.xupcSQn8S3FgIQ/SsKWCYCBPhorBl2e"], ["created_at", "2015-03-01 03:38:13.669516"], ["updated_at", "2015-03-01 03:38:13.669516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.671122"], ["user_id", "63ca5738-bfc4-11e4-b2eb-705681abff85"], ["created_at", "2015-03-01 03:38:13.671914"], ["updated_at", "2015-03-01 03:38:13.671914"], ["token", "ofO_XUoRL15fQcK2hdRvkMR6IkpbBw7oXgj4Emg5a-8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.673556"], ["user_id", "63cb0340-bfc4-11e4-894a-705681abff85"], ["created_at", "2015-03-01 03:38:13.674265"], ["updated_at", "2015-03-01 03:38:13.674265"], ["token", "X2sQj679q407wSLM0zXOJp13L851joiNhmlYhgJBsHQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.677730"], ["updated_at", "2015-03-01 03:38:13.677730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63ca5738-bfc4-11e4-b2eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '63cc41ec-bfc4-11e4-852d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63ca5738-bfc4-11e4-b2eb-705681abff85"], ["organization_id", "63cc41ec-bfc4-11e4-852d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:13.681110"], ["updated_at", "2015-03-01 03:38:13.681110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63cb0340-bfc4-11e4-894a-705681abff85' AND "clubhouse_memberships"."organization_id" = '63cc41ec-bfc4-11e4-852d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63cb0340-bfc4-11e4-894a-705681abff85"], ["organization_id", "63cc41ec-bfc4-11e4-852d-705681abff85"], ["created_at", "2015-03-01 03:38:13.684310"], ["updated_at", "2015-03-01 03:38:13.684310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '63cc41ec-bfc4-11e4-852d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "63cc41ec-bfc4-11e4-852d-705681abff85"], ["created_at", "2015-03-01 03:38:13.687690"], ["updated_at", "2015-03-01 03:38:13.687690"], ["token", "Av4turJtALxtkJIK4R3x7eqgruTNpi5tpgAazD9fWj8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:38:13 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$oq4tW.1c8KUFruEVsyiyNebLp7fOP8/YJnyfCx.kZpjes7tpI/202"], ["created_at", "2015-03-01 03:38:13.701994"], ["updated_at", "2015-03-01 03:38:13.701994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$RJuo6.qTmtrKfRZON5bVY.ZPVvM4aIXaCQuZadPLK3MLe8mcT9H6K"], ["created_at", "2015-03-01 03:38:13.707699"], ["updated_at", "2015-03-01 03:38:13.707699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.709449"], ["user_id", "63cffdf0-bfc4-11e4-aa71-705681abff85"], ["created_at", "2015-03-01 03:38:13.710288"], ["updated_at", "2015-03-01 03:38:13.710288"], ["token", "zVP__mTlhhoe_pDB3CELpOf3Lrp_ca1mNEhivvdCWaU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.712151"], ["user_id", "63d0dac2-bfc4-11e4-af57-705681abff85"], ["created_at", "2015-03-01 03:38:13.712887"], ["updated_at", "2015-03-01 03:38:13.712887"], ["token", "lQeURBvKcUJv2g-GQIH-SQLjFrSfKj37XGnu1e0O6_Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.717045"], ["updated_at", "2015-03-01 03:38:13.717045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63cffdf0-bfc4-11e4-aa71-705681abff85' AND "clubhouse_memberships"."organization_id" = '63d246c8-bfc4-11e4-8bf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63cffdf0-bfc4-11e4-aa71-705681abff85"], ["organization_id", "63d246c8-bfc4-11e4-8bf3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:13.721268"], ["updated_at", "2015-03-01 03:38:13.721268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63d0dac2-bfc4-11e4-af57-705681abff85' AND "clubhouse_memberships"."organization_id" = '63d246c8-bfc4-11e4-8bf3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63d0dac2-bfc4-11e4-af57-705681abff85"], ["organization_id", "63d246c8-bfc4-11e4-8bf3-705681abff85"], ["created_at", "2015-03-01 03:38:13.725138"], ["updated_at", "2015-03-01 03:38:13.725138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '63d246c8-bfc4-11e4-8bf3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "63d246c8-bfc4-11e4-8bf3-705681abff85"], ["created_at", "2015-03-01 03:38:13.729617"], ["updated_at", "2015-03-01 03:38:13.729617"], ["token", "ggs2wBLEBKmDUo03VKe8VTsH3jsy-P_6u3JSLfGPEUs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/63d4358c-bfc4-11e4-a114-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:38:13 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"63d4358c-bfc4-11e4-a114-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:38:13.735988' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zVP__mTlhhoe_pDB3CELpOf3Lrp_ca1mNEhivvdCWaU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:38:13.737696"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:38:13.738850"], ["id", "63d1466a-bfc4-11e4-9f68-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63cffdf0-bfc4-11e4-aa71-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "63cffdf0-bfc4-11e4-aa71-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63cffdf0-bfc4-11e4-aa71-705681abff85' LIMIT 1 [["organization_id", "63d246c8-bfc4-11e4-8bf3-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "63d246c8-bfc4-11e4-8bf3-705681abff85"], ["id", "63d4358c-bfc4-11e4-a114-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (11.7ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "63d4358c-bfc4-11e4-a114-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 26ms (ActiveRecord: 13.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$LlOsauJ9AxsGQ8wh5iywz.WCXaiMCleBqsruMRVHNQIQlhp5wvsSC"], ["created_at", "2015-03-01 03:38:13.768973"], ["updated_at", "2015-03-01 03:38:13.768973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$hnJ5WfTADjJPYZWnmmqfiuStnCCqSzpL07xrTDGvOspYu3inlXb4S"], ["created_at", "2015-03-01 03:38:13.774731"], ["updated_at", "2015-03-01 03:38:13.774731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.776410"], ["user_id", "63da3914-bfc4-11e4-a883-705681abff85"], ["created_at", "2015-03-01 03:38:13.777362"], ["updated_at", "2015-03-01 03:38:13.777362"], ["token", "RPoqFmzaQltBl2lB9XFAne0Pe9PIWGn_Z1XZzX41kwI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.780138"], ["user_id", "63db13de-bfc4-11e4-bfaa-705681abff85"], ["created_at", "2015-03-01 03:38:13.781173"], ["updated_at", "2015-03-01 03:38:13.781173"], ["token", "TlVdsb1ywiW1bAhbQ0UbGJliAnuEfaMRT3ZysB0TQEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.785003"], ["updated_at", "2015-03-01 03:38:13.785003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63da3914-bfc4-11e4-a883-705681abff85' AND "clubhouse_memberships"."organization_id" = '63dcb9dc-bfc4-11e4-904a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63da3914-bfc4-11e4-a883-705681abff85"], ["organization_id", "63dcb9dc-bfc4-11e4-904a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:13.790395"], ["updated_at", "2015-03-01 03:38:13.790395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63db13de-bfc4-11e4-bfaa-705681abff85' AND "clubhouse_memberships"."organization_id" = '63dcb9dc-bfc4-11e4-904a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63db13de-bfc4-11e4-bfaa-705681abff85"], ["organization_id", "63dcb9dc-bfc4-11e4-904a-705681abff85"], ["created_at", "2015-03-01 03:38:13.794014"], ["updated_at", "2015-03-01 03:38:13.794014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '63dcb9dc-bfc4-11e4-904a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "63dcb9dc-bfc4-11e4-904a-705681abff85"], ["created_at", "2015-03-01 03:38:13.798286"], ["updated_at", "2015-03-01 03:38:13.798286"], ["token", "ahPLzJNS2GIIqgTh28hHdUs8h1ed9A3VgyxIKDPbFn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:38:13 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$Vrucei94mWXOKFlDz5ctsencJx0mTAQw958Qa.PD.84dSJ2AJorKq"], ["created_at", "2015-03-01 03:38:13.815771"], ["updated_at", "2015-03-01 03:38:13.815771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$4hzNzQa60yo9qGSlypO57eHndTvPZFf73JhKIZErOTpHDlKFSPku6"], ["created_at", "2015-03-01 03:38:13.820866"], ["updated_at", "2015-03-01 03:38:13.820866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.822914"], ["user_id", "63e15c4e-bfc4-11e4-8579-705681abff85"], ["created_at", "2015-03-01 03:38:13.823748"], ["updated_at", "2015-03-01 03:38:13.823748"], ["token", "C9k8asnG1615JGEhOA10z-Qt5IdnfKV7uNlWVegcPKA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:38:13.825730"], ["user_id", "63e22a20-bfc4-11e4-819f-705681abff85"], ["created_at", "2015-03-01 03:38:13.826475"], ["updated_at", "2015-03-01 03:38:13.826475"], ["token", "Xp8U6zkvYm9hTmzTHmwsiT3hBqcqOBe6lD6WenUWeeE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:38:13.831028"], ["updated_at", "2015-03-01 03:38:13.831028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63e15c4e-bfc4-11e4-8579-705681abff85' AND "clubhouse_memberships"."organization_id" = '63e3c0ec-bfc4-11e4-a169-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63e15c4e-bfc4-11e4-8579-705681abff85"], ["organization_id", "63e3c0ec-bfc4-11e4-a169-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:38:13.840490"], ["updated_at", "2015-03-01 03:38:13.840490"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63e22a20-bfc4-11e4-819f-705681abff85' AND "clubhouse_memberships"."organization_id" = '63e3c0ec-bfc4-11e4-a169-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63e22a20-bfc4-11e4-819f-705681abff85"], ["organization_id", "63e3c0ec-bfc4-11e4-a169-705681abff85"], ["created_at", "2015-03-01 03:38:13.847915"], ["updated_at", "2015-03-01 03:38:13.847915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '63e3c0ec-bfc4-11e4-a169-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "63e3c0ec-bfc4-11e4-a169-705681abff85"], ["created_at", "2015-03-01 03:38:13.852253"], ["updated_at", "2015-03-01 03:38:13.852253"], ["token", "rDXzwykgy_axlgr-Z7DxlCdDJpw6h_4daqGPUZfC8ZE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/63e6ead8-bfc4-11e4-b4d0-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:38:13 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"63e6ead8-bfc4-11e4-b4d0-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:38:13.860039' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "C9k8asnG1615JGEhOA10z-Qt5IdnfKV7uNlWVegcPKA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:38:13.861447"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:38:13.862385"], ["id", "63e29582-bfc4-11e4-94e6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63e15c4e-bfc4-11e4-8579-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "63e15c4e-bfc4-11e4-8579-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63e15c4e-bfc4-11e4-8579-705681abff85' LIMIT 1 [["organization_id", "63e3c0ec-bfc4-11e4-a169-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "63e3c0ec-bfc4-11e4-a169-705681abff85"], ["id", "63e6ead8-bfc4-11e4-b4d0-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63e3c0ec-bfc4-11e4-a169-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."id" != '63e6ead8-bfc4-11e4-b4d0-705681abff85' AND "clubhouse_invitations"."organization_id" = '63e3c0ec-bfc4-11e4-a169-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 03:38:13.874548"], ["id", "63e6ead8-bfc4-11e4-b4d0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.6ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$1zcRb.gTG4KXqbrjK9pjGOJnROnjEoVHqwur74.y4N/eSmJ0m1jra"], ["created_at", "2015-03-01 03:40:37.022437"], ["updated_at", "2015-03-01 03:40:37.022437"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$UgUaxmNunbJ185VeohQPNe2I7znCD/XnI2yO.8oeRfhGxB9R1L366"], ["created_at", "2015-03-01 03:40:37.028742"], ["updated_at", "2015-03-01 03:40:37.028742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.038121"], ["user_id", "b93d1caa-bfc4-11e4-881a-705681abff85"], ["created_at", "2015-03-01 03:40:37.044553"], ["updated_at", "2015-03-01 03:40:37.044553"], ["token", "VvApW_NOGo2Y5jbQdiBas60GwOYHN0qV_7cOv0rGNwA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.053349"], ["user_id", "b93de41e-bfc4-11e4-a86c-705681abff85"], ["created_at", "2015-03-01 03:40:37.054178"], ["updated_at", "2015-03-01 03:40:37.054178"], ["token", "A0jhc6wr5fBwIY5sIJepDOX766ZmD9Lygrqmcf6AXx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.062743"], ["updated_at", "2015-03-01 03:40:37.062743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b93d1caa-bfc4-11e4-881a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9432370-bfc4-11e4-9553-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b93d1caa-bfc4-11e4-881a-705681abff85"], ["organization_id", "b9432370-bfc4-11e4-9553-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:37.102974"], ["updated_at", "2015-03-01 03:40:37.102974"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b93de41e-bfc4-11e4-a86c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9432370-bfc4-11e4-9553-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b93de41e-bfc4-11e4-a86c-705681abff85"], ["organization_id", "b9432370-bfc4-11e4-9553-705681abff85"], ["created_at", "2015-03-01 03:40:37.108862"], ["updated_at", "2015-03-01 03:40:37.108862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'b9432370-bfc4-11e4-9553-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "b9432370-bfc4-11e4-9553-705681abff85"], ["created_at", "2015-03-01 03:40:37.119874"], ["updated_at", "2015-03-01 03:40:37.119874"], ["token", "VgJzMTgvnHjwsdO4E337eY8KpXsxAshXtAvqUEzDYmo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:40:37 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$WQZyrknYgZG3Pbtvfa6mpu.8rhQzEDON32l6WYqhIkG6Ghgm9MVnS"], ["created_at", "2015-03-01 03:40:37.153578"], ["updated_at", "2015-03-01 03:40:37.153578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$tvxubrl9JRoMBtB.9rczQuKvqwrZBrHAe8aPnnjWfe9cVlENSubky"], ["created_at", "2015-03-01 03:40:37.157844"], ["updated_at", "2015-03-01 03:40:37.157844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.159516"], ["user_id", "b950f450-bfc4-11e4-8604-705681abff85"], ["created_at", "2015-03-01 03:40:37.160311"], ["updated_at", "2015-03-01 03:40:37.160311"], ["token", "iTG-oLPBewKAxS5sAqIjEW_gaOXNTfDJnrWlhMac4I8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.161979"], ["user_id", "b9519cde-bfc4-11e4-8468-705681abff85"], ["created_at", "2015-03-01 03:40:37.162688"], ["updated_at", "2015-03-01 03:40:37.162688"], ["token", "zIgHnQf1fzmAWicdhIPc-wtGSx6Nv3YyW03pLGAl-oQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.178384"], ["updated_at", "2015-03-01 03:40:37.178384"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b950f450-bfc4-11e4-8604-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b954bbb2-bfc4-11e4-8a48-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b950f450-bfc4-11e4-8604-705681abff85"], ["organization_id", "b954bbb2-bfc4-11e4-8a48-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:37.182103"], ["updated_at", "2015-03-01 03:40:37.182103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9519cde-bfc4-11e4-8468-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b954bbb2-bfc4-11e4-8a48-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9519cde-bfc4-11e4-8468-705681abff85"], ["organization_id", "b954bbb2-bfc4-11e4-8a48-705681abff85"], ["created_at", "2015-03-01 03:40:37.185766"], ["updated_at", "2015-03-01 03:40:37.185766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'b954bbb2-bfc4-11e4-8a48-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "b954bbb2-bfc4-11e4-8a48-705681abff85"], ["created_at", "2015-03-01 03:40:37.190115"], ["updated_at", "2015-03-01 03:40:37.190115"], ["token", "D_yULxFSYyNhL8cj6MseTYCVwNwqf7Uxp956tj3Q4JE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/b956a648-bfc4-11e4-8c54-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:40:37 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"b956a648-bfc4-11e4-8c54-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:40:37.197382' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iTG-oLPBewKAxS5sAqIjEW_gaOXNTfDJnrWlhMac4I8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:40:37.205366"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:40:37.206598"], ["id", "b951fe86-bfc4-11e4-b24d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b950f450-bfc4-11e4-8604-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b950f450-bfc4-11e4-8604-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b950f450-bfc4-11e4-8604-705681abff85' LIMIT 1 [["organization_id", "b954bbb2-bfc4-11e4-8a48-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "b954bbb2-bfc4-11e4-8a48-705681abff85"], ["id", "b956a648-bfc4-11e4-8c54-705681abff85"]] Completed 200 OK in 44ms (Views: 1.8ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$hPtKfk5vJb/4BwDvsY.u8O9vKQFRQ2w5jG.1Tvk0eQut5RAMrtrwe"], ["created_at", "2015-03-01 03:40:37.250463"], ["updated_at", "2015-03-01 03:40:37.250463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Pmmncd00JWXGSythRfjSZenF4zIEJXYYDfY8yaNNaw1lwNMIXqRzO"], ["created_at", "2015-03-01 03:40:37.255482"], ["updated_at", "2015-03-01 03:40:37.255482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.257275"], ["user_id", "b95fc732-bfc4-11e4-acc0-705681abff85"], ["created_at", "2015-03-01 03:40:37.258164"], ["updated_at", "2015-03-01 03:40:37.258164"], ["token", "T8mdSZ88PP5zxbS6A_xzL27aPvAxdgbfW8GX6MupRhE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.259928"], ["user_id", "b9607e20-bfc4-11e4-8f26-705681abff85"], ["created_at", "2015-03-01 03:40:37.260702"], ["updated_at", "2015-03-01 03:40:37.260702"], ["token", "EqyPgUkVfjUAVDkATFNsbAVDDZnZfk-fsHIthdwVhK4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.264121"], ["updated_at", "2015-03-01 03:40:37.264121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b95fc732-bfc4-11e4-acc0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b961cf96-bfc4-11e4-a650-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b95fc732-bfc4-11e4-acc0-705681abff85"], ["organization_id", "b961cf96-bfc4-11e4-a650-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:37.267891"], ["updated_at", "2015-03-01 03:40:37.267891"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9607e20-bfc4-11e4-8f26-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b961cf96-bfc4-11e4-a650-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9607e20-bfc4-11e4-8f26-705681abff85"], ["organization_id", "b961cf96-bfc4-11e4-a650-705681abff85"], ["created_at", "2015-03-01 03:40:37.272127"], ["updated_at", "2015-03-01 03:40:37.272127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'b961cf96-bfc4-11e4-a650-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "b961cf96-bfc4-11e4-a650-705681abff85"], ["created_at", "2015-03-01 03:40:37.275861"], ["updated_at", "2015-03-01 03:40:37.275861"], ["token", "-PEBEskejJWDSg7i_5O4tTzpypVEMY5W4Za6wokrO2Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:40:37 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$s/uZYvoxg4IuXsIlNpTaSOwd.OOZdoNLCKevYtGCgWdw3DKxGUeDK"], ["created_at", "2015-03-01 03:40:37.373416"], ["updated_at", "2015-03-01 03:40:37.373416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$jg4lfPnNZJ.GeY52kIUnfeub2RvAXNn5WiIcPgoJNcBqrKVfzVDa6"], ["created_at", "2015-03-01 03:40:37.381202"], ["updated_at", "2015-03-01 03:40:37.381202"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.386930"], ["user_id", "b97299f2-bfc4-11e4-a1cf-705681abff85"], ["created_at", "2015-03-01 03:40:37.388873"], ["updated_at", "2015-03-01 03:40:37.388873"], ["token", "8_pYGRBWXh3u9Z30sGxAaqASk7FW1homtoZHARJBhmk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.400255"], ["user_id", "b973c00c-bfc4-11e4-a4fd-705681abff85"], ["created_at", "2015-03-01 03:40:37.401722"], ["updated_at", "2015-03-01 03:40:37.401722"], ["token", "Hp-XNZQ5ctEgMJ5z1rV2thIjXpFeBur-iKiUNTTcGmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.407726"], ["updated_at", "2015-03-01 03:40:37.407726"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b97299f2-bfc4-11e4-a1cf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b977ec36-bfc4-11e4-9dd1-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b97299f2-bfc4-11e4-a1cf-705681abff85"], ["organization_id", "b977ec36-bfc4-11e4-9dd1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:37.417673"], ["updated_at", "2015-03-01 03:40:37.417673"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b973c00c-bfc4-11e4-a4fd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b977ec36-bfc4-11e4-9dd1-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b973c00c-bfc4-11e4-a4fd-705681abff85"], ["organization_id", "b977ec36-bfc4-11e4-9dd1-705681abff85"], ["created_at", "2015-03-01 03:40:37.432288"], ["updated_at", "2015-03-01 03:40:37.432288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'b977ec36-bfc4-11e4-9dd1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "b977ec36-bfc4-11e4-9dd1-705681abff85"], ["created_at", "2015-03-01 03:40:37.439016"], ["updated_at", "2015-03-01 03:40:37.439016"], ["token", "qpVLsilYEwcWQfuX1mG5WiIFmfMeva2Mg18rqeTYtlM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/b97ca4d8-bfc4-11e4-8d30-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:40:37 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"b97ca4d8-bfc4-11e4-8d30-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:40:37.446512' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8_pYGRBWXh3u9Z30sGxAaqASk7FW1homtoZHARJBhmk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:40:37.447958"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:40:37.449160"], ["id", "b97509b2-bfc4-11e4-91fc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b97299f2-bfc4-11e4-a1cf-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b97299f2-bfc4-11e4-a1cf-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b97299f2-bfc4-11e4-a1cf-705681abff85' LIMIT 1 [["organization_id", "b977ec36-bfc4-11e4-9dd1-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "b977ec36-bfc4-11e4-9dd1-705681abff85"], ["id", "b97ca4d8-bfc4-11e4-8d30-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "b97ca4d8-bfc4-11e4-8d30-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$rYN/4fNBOga0Da/Sq5hg.OfHvQMJbCYUsZ3oUpOUzMXKG4pPI3ik."], ["created_at", "2015-03-01 03:40:37.466220"], ["updated_at", "2015-03-01 03:40:37.466220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$zy1O62pChqxML1qyq9AhWeemJA.CiyrQMx5TcCrfl.wDaiHm6PXqC"], ["created_at", "2015-03-01 03:40:37.471021"], ["updated_at", "2015-03-01 03:40:37.471021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.473102"], ["user_id", "b980a830-bfc4-11e4-a34c-705681abff85"], ["created_at", "2015-03-01 03:40:37.473958"], ["updated_at", "2015-03-01 03:40:37.473958"], ["token", "mapq7S15yBTDgr1_nqH7u4dzlQyxkXcUraEJlLyt7ac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.475735"], ["user_id", "b981677a-bfc4-11e4-8291-705681abff85"], ["created_at", "2015-03-01 03:40:37.476475"], ["updated_at", "2015-03-01 03:40:37.476475"], ["token", "EMvYBdNo9v63-wehwr1C3jrEfzFerP__9AA8IeR1WlQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.480646"], ["updated_at", "2015-03-01 03:40:37.480646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b980a830-bfc4-11e4-a34c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b982dd4e-bfc4-11e4-ba23-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b980a830-bfc4-11e4-a34c-705681abff85"], ["organization_id", "b982dd4e-bfc4-11e4-ba23-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:37.484326"], ["updated_at", "2015-03-01 03:40:37.484326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$tz4Ic3IhgUiyOlbhZi7fZuscQ0p2/KSwGCF/HOg6pa/yACfdE3GEm"], ["created_at", "2015-03-01 03:40:37.489555"], ["updated_at", "2015-03-01 03:40:37.489555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.493241"], ["updated_at", "2015-03-01 03:40:37.493241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b98446b6-bfc4-11e4-9dad-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b984c6d6-bfc4-11e4-9742-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b98446b6-bfc4-11e4-9dad-705681abff85"], ["organization_id", "b984c6d6-bfc4-11e4-9742-705681abff85"], ["created_at", "2015-03-01 03:40:37.497830"], ["updated_at", "2015-03-01 03:40:37.497830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'b982dd4e-bfc4-11e4-ba23-705681abff85') LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "b982dd4e-bfc4-11e4-ba23-705681abff85"], ["created_at", "2015-03-01 03:40:37.501919"], ["updated_at", "2015-03-01 03:40:37.501919"], ["token", "dsLSc-qtAljVtcRnozZ8w354Ny77v7-fXzn3niofKmA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:40:37 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$cUTTvxqKEr1bFPoJt81TgeQWXVR8N.NcXud08shM08VK.ZLzZMcDK"], ["created_at", "2015-03-01 03:40:37.517686"], ["updated_at", "2015-03-01 03:40:37.517686"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$u/dyAcZO5LNAhNxulX4TsurVYAArhyZxWXT70o/CaYSZHIsew3bFq"], ["created_at", "2015-03-01 03:40:37.525727"], ["updated_at", "2015-03-01 03:40:37.525727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.527986"], ["user_id", "b988851e-bfc4-11e4-b6b0-705681abff85"], ["created_at", "2015-03-01 03:40:37.528968"], ["updated_at", "2015-03-01 03:40:37.528968"], ["token", "JbvmkgNqitx7dSdYa0XkMxa4oapZNhPD700DJh8-7Z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.531381"], ["user_id", "b989beac-bfc4-11e4-94f4-705681abff85"], ["created_at", "2015-03-01 03:40:37.532192"], ["updated_at", "2015-03-01 03:40:37.532192"], ["token", "TbAEsj-BKPZgDj3G22T0QZ6t2HBE5DvtiSqQ2F_X5Z4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.536338"], ["updated_at", "2015-03-01 03:40:37.536338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b988851e-bfc4-11e4-b6b0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b98b5cc6-bfc4-11e4-aa13-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b988851e-bfc4-11e4-b6b0-705681abff85"], ["organization_id", "b98b5cc6-bfc4-11e4-aa13-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:37.541738"], ["updated_at", "2015-03-01 03:40:37.541738"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$U8yQhKkBiIwb/2P2Il.GCO39ATIR2m5unNqwunOx0RetwrFLzVLyG"], ["created_at", "2015-03-01 03:40:37.551348"], ["updated_at", "2015-03-01 03:40:37.551348"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.568541"], ["updated_at", "2015-03-01 03:40:37.568541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b98dc7a4-bfc4-11e4-92ed-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b99047fe-bfc4-11e4-9891-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b98dc7a4-bfc4-11e4-92ed-705681abff85"], ["organization_id", "b99047fe-bfc4-11e4-9891-705681abff85"], ["created_at", "2015-03-01 03:40:37.572716"], ["updated_at", "2015-03-01 03:40:37.572716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'b98b5cc6-bfc4-11e4-aa13-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "b98b5cc6-bfc4-11e4-aa13-705681abff85"], ["created_at", "2015-03-01 03:40:37.577505"], ["updated_at", "2015-03-01 03:40:37.577505"], ["token", "qp2JPvVTp8z1_5lJjYru7uZog8i3voBpItByEI9GRFM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:40:37 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:40:37.597362' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JbvmkgNqitx7dSdYa0XkMxa4oapZNhPD700DJh8-7Z0"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:40:37.599610"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:40:37.601625"], ["id", "b98a45b6-bfc4-11e4-9741-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b988851e-bfc4-11e4-b6b0-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b988851e-bfc4-11e4-b6b0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b988851e-bfc4-11e4-b6b0-705681abff85' LIMIT 1 [["organization_id", "b98b5cc6-bfc4-11e4-aa13-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "b98b5cc6-bfc4-11e4-aa13-705681abff85"]] Completed 200 OK in 17ms (Views: 2.9ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$EOmv6Q1Wx/kHUXFiGtZ.ge8DGsJG0hhALeA9mCsu9NqqsCP4pBYeC"], ["created_at", "2015-03-01 03:40:37.625463"], ["updated_at", "2015-03-01 03:40:37.625463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$s8hA1MOvqZWulAR61LaO1ufykHs07bgPOr/ikqJ77.PM5Lf3OEeA2"], ["created_at", "2015-03-01 03:40:37.632587"], ["updated_at", "2015-03-01 03:40:37.632587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.635487"], ["user_id", "b9990e66-bfc4-11e4-ae10-705681abff85"], ["created_at", "2015-03-01 03:40:37.636714"], ["updated_at", "2015-03-01 03:40:37.636714"], ["token", "ZkeN8NEbf57uiV9EO3zAd-J0kx2jmP6Nwdnak28MjMM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.639562"], ["user_id", "b99a24c2-bfc4-11e4-b7cc-705681abff85"], ["created_at", "2015-03-01 03:40:37.641035"], ["updated_at", "2015-03-01 03:40:37.641035"], ["token", "3YIwzKPrVEcRUX01oai5iGewuvzJ2CvHPpQvtq2caZg"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.647536"], ["updated_at", "2015-03-01 03:40:37.647536"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9990e66-bfc4-11e4-ae10-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b99c68f4-bfc4-11e4-b21a-705681abff85') LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9990e66-bfc4-11e4-ae10-705681abff85"], ["organization_id", "b99c68f4-bfc4-11e4-b21a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:37.665264"], ["updated_at", "2015-03-01 03:40:37.665264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b99a24c2-bfc4-11e4-b7cc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b99c68f4-bfc4-11e4-b21a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b99a24c2-bfc4-11e4-b7cc-705681abff85"], ["organization_id", "b99c68f4-bfc4-11e4-b21a-705681abff85"], ["created_at", "2015-03-01 03:40:37.676906"], ["updated_at", "2015-03-01 03:40:37.676906"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'b99c68f4-bfc4-11e4-b21a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "b99c68f4-bfc4-11e4-b21a-705681abff85"], ["created_at", "2015-03-01 03:40:37.683028"], ["updated_at", "2015-03-01 03:40:37.683028"], ["token", "o2sk1uuEL2W13u9-7fp30wJ_5JPfvsKt6m927CKHdXw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:40:37 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$DGGpU6e2.sMDG0tCnqQGAON0YNO8Cfgn4Igx5muCLNOyTTVbhprG2"], ["created_at", "2015-03-01 03:40:37.705072"], ["updated_at", "2015-03-01 03:40:37.705072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$o89jECJ68VC2Elhy//Dx5.plCilIofGkcavrDS1AIXCTBCO3bqLU2"], ["created_at", "2015-03-01 03:40:37.712527"], ["updated_at", "2015-03-01 03:40:37.712527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.714853"], ["user_id", "b9a5365a-bfc4-11e4-af0b-705681abff85"], ["created_at", "2015-03-01 03:40:37.715786"], ["updated_at", "2015-03-01 03:40:37.715786"], ["token", "Fxs1d4yv85jt6SOF9m_ZWld6t1vL7C4KnDb6QwkGvMs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.718121"], ["user_id", "b9a64fcc-bfc4-11e4-be93-705681abff85"], ["created_at", "2015-03-01 03:40:37.719130"], ["updated_at", "2015-03-01 03:40:37.719130"], ["token", "28nFsdGARuSofc1QNkjBsIFYEWl_Bjco708263gH_hc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.725661"], ["updated_at", "2015-03-01 03:40:37.725661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9a5365a-bfc4-11e4-af0b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9a86a82-bfc4-11e4-b8d2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9a5365a-bfc4-11e4-af0b-705681abff85"], ["organization_id", "b9a86a82-bfc4-11e4-b8d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:37.731554"], ["updated_at", "2015-03-01 03:40:37.731554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9a64fcc-bfc4-11e4-be93-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9a86a82-bfc4-11e4-b8d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9a64fcc-bfc4-11e4-be93-705681abff85"], ["organization_id", "b9a86a82-bfc4-11e4-b8d2-705681abff85"], ["created_at", "2015-03-01 03:40:37.735812"], ["updated_at", "2015-03-01 03:40:37.735812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'b9a86a82-bfc4-11e4-b8d2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "b9a86a82-bfc4-11e4-b8d2-705681abff85"], ["created_at", "2015-03-01 03:40:37.740863"], ["updated_at", "2015-03-01 03:40:37.740863"], ["token", "xWdaDaO-NmicFJZ2sGuEFSgyIAol_o4cqTBL35ALfz4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/b9aa99ba-bfc4-11e4-8f79-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:40:37 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"b9aa99ba-bfc4-11e4-8f79-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:40:37.747590' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Fxs1d4yv85jt6SOF9m_ZWld6t1vL7C4KnDb6QwkGvMs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:40:37.749302"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:40:37.750435"], ["id", "b9a6caf6-bfc4-11e4-bc54-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9a5365a-bfc4-11e4-af0b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b9a5365a-bfc4-11e4-af0b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9a5365a-bfc4-11e4-af0b-705681abff85' LIMIT 1 [["organization_id", "b9a86a82-bfc4-11e4-b8d2-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "b9a86a82-bfc4-11e4-b8d2-705681abff85"], ["id", "b9aa99ba-bfc4-11e4-8f79-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9a86a82-bfc4-11e4-b8d2-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."id" != 'b9aa99ba-bfc4-11e4-8f79-705681abff85' AND "clubhouse_invitations"."organization_id" = 'b9a86a82-bfc4-11e4-b8d2-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 03:40:37.766175"], ["id", "b9aa99ba-bfc4-11e4-8f79-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 0.7ms | ActiveRecord: 3.1ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$pGCU1yaSoQfFoU.ZdCz.xOJeMH7cSxPYrCMdFqfDsvOrinX1AwTb."], ["created_at", "2015-03-01 03:40:37.776392"], ["updated_at", "2015-03-01 03:40:37.776392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ak66fbc10HkolyfOPABD3OG.cpftu/QRB49DsfhtwdHzUlB/.LOIW"], ["created_at", "2015-03-01 03:40:37.781135"], ["updated_at", "2015-03-01 03:40:37.781135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.782787"], ["user_id", "b9b002f6-bfc4-11e4-92dd-705681abff85"], ["created_at", "2015-03-01 03:40:37.783667"], ["updated_at", "2015-03-01 03:40:37.783667"], ["token", "9ueZxlV6FyrMOHayqxPu5XucunzgCA2iOXG5Ob-mYsI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.785697"], ["user_id", "b9b0b3cc-bfc4-11e4-9486-705681abff85"], ["created_at", "2015-03-01 03:40:37.786452"], ["updated_at", "2015-03-01 03:40:37.786452"], ["token", "eNov4mx6fhu6PHN6fXb1yrcQ0YCxCdI9To_zimw6YPU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.793998"], ["updated_at", "2015-03-01 03:40:37.793998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9b002f6-bfc4-11e4-92dd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9b2b186-bfc4-11e4-8243-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9b002f6-bfc4-11e4-92dd-705681abff85"], ["organization_id", "b9b2b186-bfc4-11e4-8243-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:37.798045"], ["updated_at", "2015-03-01 03:40:37.798045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9b0b3cc-bfc4-11e4-9486-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9b2b186-bfc4-11e4-8243-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9b0b3cc-bfc4-11e4-9486-705681abff85"], ["organization_id", "b9b2b186-bfc4-11e4-8243-705681abff85"], ["created_at", "2015-03-01 03:40:37.801955"], ["updated_at", "2015-03-01 03:40:37.801955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'b9b2b186-bfc4-11e4-8243-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "b9b2b186-bfc4-11e4-8243-705681abff85"], ["created_at", "2015-03-01 03:40:37.807825"], ["updated_at", "2015-03-01 03:40:37.807825"], ["token", "EPSQ0CfDhEkcJ7LEpkoPN2zeN78Izf-Fw74xSuctIkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:40:37 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$a3Teoi93X/wPyj/NwJii0efF8xqeEsh.QEygOgRKQo9kBXvK6h2Wq"], ["created_at", "2015-03-01 03:40:37.824511"], ["updated_at", "2015-03-01 03:40:37.824511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$y2fiRk8zSjbEghBUBob25ODWCs6CiYvFTuuDf4UoDlc1eQe1l6Z/6"], ["created_at", "2015-03-01 03:40:37.830090"], ["updated_at", "2015-03-01 03:40:37.830090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.831794"], ["user_id", "b9b7589e-bfc4-11e4-953e-705681abff85"], ["created_at", "2015-03-01 03:40:37.832953"], ["updated_at", "2015-03-01 03:40:37.832953"], ["token", "ALjNzxO3d28nIGPKj4NJhfZZvmxdLTU8p3HjEhNt0Zg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:37.835007"], ["user_id", "b9b82eb8-bfc4-11e4-a093-705681abff85"], ["created_at", "2015-03-01 03:40:37.835781"], ["updated_at", "2015-03-01 03:40:37.835781"], ["token", "FY-mByTwLWzVZMuXkiGDbshlP_edo-4DF8PrYH9iC2k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:37.839610"], ["updated_at", "2015-03-01 03:40:37.839610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9b7589e-bfc4-11e4-953e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9b9aa36-bfc4-11e4-8b80-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9b7589e-bfc4-11e4-953e-705681abff85"], ["organization_id", "b9b9aa36-bfc4-11e4-8b80-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:37.843542"], ["updated_at", "2015-03-01 03:40:37.843542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9b82eb8-bfc4-11e4-a093-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9b9aa36-bfc4-11e4-8b80-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9b82eb8-bfc4-11e4-a093-705681abff85"], ["organization_id", "b9b9aa36-bfc4-11e4-8b80-705681abff85"], ["created_at", "2015-03-01 03:40:37.848275"], ["updated_at", "2015-03-01 03:40:37.848275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'b9b9aa36-bfc4-11e4-8b80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "b9b9aa36-bfc4-11e4-8b80-705681abff85"], ["created_at", "2015-03-01 03:40:37.852939"], ["updated_at", "2015-03-01 03:40:37.852939"], ["token", "3aeIdcOd26HqQV548PNHneNd95czEgGhoGwjAkH6fdw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:40:37 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:40:37.859857' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ALjNzxO3d28nIGPKj4NJhfZZvmxdLTU8p3HjEhNt0Zg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:40:37.861483"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:40:37.862568"], ["id", "b9b8ac1c-bfc4-11e4-86ee-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9b7589e-bfc4-11e4-953e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b9b7589e-bfc4-11e4-953e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9b7589e-bfc4-11e4-953e-705681abff85' LIMIT 1 [["organization_id", "b9b9aa36-bfc4-11e4-8b80-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9b9aa36-bfc4-11e4-8b80-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'b9b9aa36-bfc4-11e4-8b80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "b9b9aa36-bfc4-11e4-8b80-705681abff85"], ["created_at", "2015-03-01 03:40:37.875366"], ["updated_at", "2015-03-01 03:40:37.875366"], ["token", "AzFsB_6ZkKVa2Uo73ukzgxXV6LkpIYN3ftsDWLqL1Sk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6add2e48-2f0a-4fec-a26e-4c3b77e5f1bf) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/b9bf288a-bfc4-11e4-8ede-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "b9bf288a-bfc4-11e4-8ede-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [6add2e48-2f0a-4fec-a26e-4c3b77e5f1bf] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/b9bf288a-bfc4-11e4-8ede-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [6add2e48-2f0a-4fec-a26e-4c3b77e5f1bf] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9b9aa36-bfc4-11e4-8b80-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [6add2e48-2f0a-4fec-a26e-4c3b77e5f1bf] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [6add2e48-2f0a-4fec-a26e-4c3b77e5f1bf] Clubhouse::Mailer#invitation: processed outbound mail in 233.5ms [ActiveJob] [ActionMailer::DeliveryJob] [6add2e48-2f0a-4fec-a26e-4c3b77e5f1bf] Sent mail to email@example.com (16.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [6add2e48-2f0a-4fec-a26e-4c3b77e5f1bf] Date: Sat, 28 Feb 2015 19:40:38 -0800 From: from@example.com To: email@example.com Message-ID: <54f28a3625673_12e883fe35dc63bf02576f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/AzFsB_6ZkKVa2Uo73ukzgxXV6LkpIYN3ftsDWLqL1Sk If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [6add2e48-2f0a-4fec-a26e-4c3b77e5f1bf] Performed ActionMailer::DeliveryJob from Inline(mailers) in 250.63ms Completed 201 Created in 307ms (Views: 0.6ms | ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$qKFRq2APj1j83j18PyIqXOzNzbYMVa8S1I1McC0bPPUhKaSl1YIy."], ["created_at", "2015-03-01 03:40:38.173280"], ["updated_at", "2015-03-01 03:40:38.173280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (11.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$ugrE7brKDz.zmzxWS4dTNO3Rka/T25gJxtruU25MjV.fp3V134z.2"], ["created_at", "2015-03-01 03:40:38.178253"], ["updated_at", "2015-03-01 03:40:38.178253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:38.191411"], ["user_id", "b9ec9252-bfc4-11e4-af94-705681abff85"], ["created_at", "2015-03-01 03:40:38.192257"], ["updated_at", "2015-03-01 03:40:38.192257"], ["token", "OUzGrTcG9PeCb4ZiJzoxehYe_3LWDSgUasSmudWOuBo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:38.194220"], ["user_id", "b9ed51ec-bfc4-11e4-bbcc-705681abff85"], ["created_at", "2015-03-01 03:40:38.195080"], ["updated_at", "2015-03-01 03:40:38.195080"], ["token", "ElXtj51VvUvAgVQx6exsdjUZmcDz11QXlTfYELLMvSQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:38.198933"], ["updated_at", "2015-03-01 03:40:38.198933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ec9252-bfc4-11e4-af94-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f07426-bfc4-11e4-a1dd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9ec9252-bfc4-11e4-af94-705681abff85"], ["organization_id", "b9f07426-bfc4-11e4-a1dd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:38.202557"], ["updated_at", "2015-03-01 03:40:38.202557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ed51ec-bfc4-11e4-bbcc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f07426-bfc4-11e4-a1dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9ed51ec-bfc4-11e4-bbcc-705681abff85"], ["organization_id", "b9f07426-bfc4-11e4-a1dd-705681abff85"], ["created_at", "2015-03-01 03:40:38.206089"], ["updated_at", "2015-03-01 03:40:38.206089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'b9f07426-bfc4-11e4-a1dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "b9f07426-bfc4-11e4-a1dd-705681abff85"], ["created_at", "2015-03-01 03:40:38.210331"], ["updated_at", "2015-03-01 03:40:38.210331"], ["token", "VRf2mE3IwTNyXet0rjPyWV8xlIX5cvYzKfcw9ykXfxc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:40:38 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:40:38.215806' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OUzGrTcG9PeCb4ZiJzoxehYe_3LWDSgUasSmudWOuBo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:40:38.217337"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:40:38.218389"], ["id", "b9ef7990-bfc4-11e4-bbfd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9ec9252-bfc4-11e4-af94-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b9ec9252-bfc4-11e4-af94-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9ec9252-bfc4-11e4-af94-705681abff85' LIMIT 1 [["organization_id", "b9f07426-bfc4-11e4-a1dd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9f07426-bfc4-11e4-a1dd-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'b9f07426-bfc4-11e4-a1dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "b9f07426-bfc4-11e4-a1dd-705681abff85"], ["created_at", "2015-03-01 03:40:38.228010"], ["updated_at", "2015-03-01 03:40:38.228010"], ["token", "Ibp2SjeNwkfZjcGNlrH-eQ5uMjf30__dZZW4rfYYl78"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 484f4f1f-73c9-410b-987f-8d47a7bfaa4a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/b9f4f64a-bfc4-11e4-922f-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "b9f4f64a-bfc4-11e4-922f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [484f4f1f-73c9-410b-987f-8d47a7bfaa4a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/b9f4f64a-bfc4-11e4-922f-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [484f4f1f-73c9-410b-987f-8d47a7bfaa4a] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9f07426-bfc4-11e4-a1dd-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [484f4f1f-73c9-410b-987f-8d47a7bfaa4a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [484f4f1f-73c9-410b-987f-8d47a7bfaa4a] Clubhouse::Mailer#invitation: processed outbound mail in 2.9ms [ActiveJob] [ActionMailer::DeliveryJob] [484f4f1f-73c9-410b-987f-8d47a7bfaa4a] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [484f4f1f-73c9-410b-987f-8d47a7bfaa4a] Date: Sat, 28 Feb 2015 19:40:38 -0800 From: from@example.com To: email@example.com Message-ID: <54f28a3639c1b_12e883fe35dc63bf025891@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Ibp2SjeNwkfZjcGNlrH-eQ5uMjf30__dZZW4rfYYl78 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [484f4f1f-73c9-410b-987f-8d47a7bfaa4a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.07ms Completed 201 Created in 23ms (Views: 0.5ms | ActiveRecord: 3.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$PicXuuLNqiatlhG131bFQ.oh1sBV9hlfitF8j/i1DJ4FlxlQOLFqe"], ["created_at", "2015-03-01 03:40:38.250570"], ["updated_at", "2015-03-01 03:40:38.250570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$sh1ciWRumqGMwkUfg7kWM.QCSQjwW4kymUXB/I6WYCiXox1GSHlqS"], ["created_at", "2015-03-01 03:40:38.255203"], ["updated_at", "2015-03-01 03:40:38.255203"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:38.257366"], ["user_id", "b9f858d0-bfc4-11e4-821f-705681abff85"], ["created_at", "2015-03-01 03:40:38.258264"], ["updated_at", "2015-03-01 03:40:38.258264"], ["token", "MPzBBwvHknQQ6OQc_EJidSLx1-_gl-jh6wGfhxbYaEE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:40:38.260631"], ["user_id", "b9f911a8-bfc4-11e4-a609-705681abff85"], ["created_at", "2015-03-01 03:40:38.261553"], ["updated_at", "2015-03-01 03:40:38.261553"], ["token", "Ig5ieTnr-rVT21TOl9PWLt53rP0vDcRDO1YZigL0CX8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:40:38.265064"], ["updated_at", "2015-03-01 03:40:38.265064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f858d0-bfc4-11e4-821f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9fa88d0-bfc4-11e4-946a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9f858d0-bfc4-11e4-821f-705681abff85"], ["organization_id", "b9fa88d0-bfc4-11e4-946a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:40:38.269047"], ["updated_at", "2015-03-01 03:40:38.269047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f911a8-bfc4-11e4-a609-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9fa88d0-bfc4-11e4-946a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9f911a8-bfc4-11e4-a609-705681abff85"], ["organization_id", "b9fa88d0-bfc4-11e4-946a-705681abff85"], ["created_at", "2015-03-01 03:40:38.272515"], ["updated_at", "2015-03-01 03:40:38.272515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'b9fa88d0-bfc4-11e4-946a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "b9fa88d0-bfc4-11e4-946a-705681abff85"], ["created_at", "2015-03-01 03:40:38.279196"], ["updated_at", "2015-03-01 03:40:38.279196"], ["token", "jGpgMjbKgoBpO0UMCjl7bcsOts-euJpzrkBsgmUOyOM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:40:38 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:40:38.286861' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MPzBBwvHknQQ6OQc_EJidSLx1-_gl-jh6wGfhxbYaEE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:40:38.305147"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:40:38.307566"], ["id", "b9f98a66-bfc4-11e4-90d3-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9f858d0-bfc4-11e4-821f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b9f858d0-bfc4-11e4-821f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9f858d0-bfc4-11e4-821f-705681abff85' LIMIT 1 [["organization_id", "b9fa88d0-bfc4-11e4-946a-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (1.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9fa88d0-bfc4-11e4-946a-705681abff85"]] Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'b9fa88d0-bfc4-11e4-946a-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 47ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$bEuU3wM50tOW6YV2yANoluBjb2rxSPa3WthfmDFztLIg79.TOQ/0y"], ["created_at", "2015-03-01 03:41:44.859436"], ["updated_at", "2015-03-01 03:41:44.859436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$7iofxCdZqDsMJFOVSp2v0eZf0Rw2jEeGODhuutNnBsM6C5rLOgk7m"], ["created_at", "2015-03-01 03:41:44.866357"], ["updated_at", "2015-03-01 03:41:44.866357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:44.876002"], ["user_id", "e1ac4742-bfc4-11e4-b537-705681abff85"], ["created_at", "2015-03-01 03:41:44.882947"], ["updated_at", "2015-03-01 03:41:44.882947"], ["token", "XJBNf2JmH_p1FS9KFDa2tvULlgGLltditdnDcBc0Z-E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:44.885704"], ["user_id", "e1ad20f4-bfc4-11e4-b400-705681abff85"], ["created_at", "2015-03-01 03:41:44.886506"], ["updated_at", "2015-03-01 03:41:44.886506"], ["token", "oGkAGljG_IEce9WPbKqKO6XlTqsAsQ4By1M19PYAaWY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:44.895255"], ["updated_at", "2015-03-01 03:41:44.895255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1ac4742-bfc4-11e4-b537-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1b19698-bfc4-11e4-bf6d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1ac4742-bfc4-11e4-b537-705681abff85"], ["organization_id", "e1b19698-bfc4-11e4-bf6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:44.940404"], ["updated_at", "2015-03-01 03:41:44.940404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1ad20f4-bfc4-11e4-b400-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1b19698-bfc4-11e4-bf6d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1ad20f4-bfc4-11e4-b400-705681abff85"], ["organization_id", "e1b19698-bfc4-11e4-bf6d-705681abff85"], ["created_at", "2015-03-01 03:41:44.944660"], ["updated_at", "2015-03-01 03:41:44.944660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e1b19698-bfc4-11e4-bf6d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "e1b19698-bfc4-11e4-bf6d-705681abff85"], ["created_at", "2015-03-01 03:41:44.955680"], ["updated_at", "2015-03-01 03:41:44.955680"], ["token", "HnmqTcTfmrGcTB3AELoRqC1Vo0_00QCoK8zI0XjFbMI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:41:44 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$R0cVMSa1djVJ2w4HvbHBzeiWcfNo3pwG7Mb5yoIiKUyQSEpKLQviW"], ["created_at", "2015-03-01 03:41:44.993300"], ["updated_at", "2015-03-01 03:41:44.993300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$iHjdcvK8w0Q.1wEiq5H9Berr6qvJ47S2iimxoxVXYYVqehdPuGC4y"], ["created_at", "2015-03-01 03:41:44.998200"], ["updated_at", "2015-03-01 03:41:44.998200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.000132"], ["user_id", "e1c07ac8-bfc4-11e4-81e5-705681abff85"], ["created_at", "2015-03-01 03:41:45.001088"], ["updated_at", "2015-03-01 03:41:45.001088"], ["token", "TujrcGqii8s8-uOiZF1Bwwy6Ax3W7u9Wvg3xl-Js-xc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.014510"], ["user_id", "e1c13bac-bfc4-11e4-b1f2-705681abff85"], ["created_at", "2015-03-01 03:41:45.015532"], ["updated_at", "2015-03-01 03:41:45.015532"], ["token", "NCInD2VuuS_eN7dtIYMXJF6K75CD1sR_Rn7hel7widg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.019688"], ["updated_at", "2015-03-01 03:41:45.019688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1c07ac8-bfc4-11e4-81e5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1c47d44-bfc4-11e4-8996-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1c07ac8-bfc4-11e4-81e5-705681abff85"], ["organization_id", "e1c47d44-bfc4-11e4-8996-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:45.023315"], ["updated_at", "2015-03-01 03:41:45.023315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1c13bac-bfc4-11e4-b1f2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1c47d44-bfc4-11e4-8996-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1c13bac-bfc4-11e4-b1f2-705681abff85"], ["organization_id", "e1c47d44-bfc4-11e4-8996-705681abff85"], ["created_at", "2015-03-01 03:41:45.027407"], ["updated_at", "2015-03-01 03:41:45.027407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'e1c47d44-bfc4-11e4-8996-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "e1c47d44-bfc4-11e4-8996-705681abff85"], ["created_at", "2015-03-01 03:41:45.031249"], ["updated_at", "2015-03-01 03:41:45.031249"], ["token", "-ng9h6sr9NMCp1P_TCDXI6r9-EmsK_1pI2O5pNz4nxY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/e1c65222-bfc4-11e4-a924-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:41:45 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"e1c65222-bfc4-11e4-a924-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:45.037391' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TujrcGqii8s8-uOiZF1Bwwy6Ax3W7u9Wvg3xl-Js-xc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:45.046547"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:45.048240"], ["id", "e1c1b096-bfc4-11e4-86f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e1c07ac8-bfc4-11e4-81e5-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e1c07ac8-bfc4-11e4-81e5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e1c07ac8-bfc4-11e4-81e5-705681abff85' LIMIT 1 [["organization_id", "e1c47d44-bfc4-11e4-8996-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "e1c47d44-bfc4-11e4-8996-705681abff85"], ["id", "e1c65222-bfc4-11e4-a924-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "e1c65222-bfc4-11e4-a924-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 46ms (ActiveRecord: 3.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$O2l0/347HGBRQzOmlxiTH.uPUAlu.Fve732APPMyiC6SjkQnyDYm6"], ["created_at", "2015-03-01 03:41:45.089682"], ["updated_at", "2015-03-01 03:41:45.089682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$WdQJTfPphFuzQ92OfS9.IeT2kyIF4DjETa3Eqc.75jafGiyHJUfyS"], ["created_at", "2015-03-01 03:41:45.094242"], ["updated_at", "2015-03-01 03:41:45.094242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.095957"], ["user_id", "e1cf3298-bfc4-11e4-9983-705681abff85"], ["created_at", "2015-03-01 03:41:45.096736"], ["updated_at", "2015-03-01 03:41:45.096736"], ["token", "EDbZVmqovCejESOPt-I5B7mSTwlcogoAioKY3GwQC5A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.098815"], ["user_id", "e1cfe0bc-bfc4-11e4-b2dd-705681abff85"], ["created_at", "2015-03-01 03:41:45.099598"], ["updated_at", "2015-03-01 03:41:45.099598"], ["token", "99LU9s6vQTfeWnVLUB1eBpEeJY6x0LLtg5k2NeFVnTg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.103264"], ["updated_at", "2015-03-01 03:41:45.103264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1cf3298-bfc4-11e4-9983-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1d146a0-bfc4-11e4-8ddd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1cf3298-bfc4-11e4-9983-705681abff85"], ["organization_id", "e1d146a0-bfc4-11e4-8ddd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:45.107946"], ["updated_at", "2015-03-01 03:41:45.107946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$poZ3aTFnQ.oEgs6krlLPFOoWKXKWVf.0grfQICFGmO3VG2nL273oa"], ["created_at", "2015-03-01 03:41:45.112954"], ["updated_at", "2015-03-01 03:41:45.112954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.117075"], ["updated_at", "2015-03-01 03:41:45.117075"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1d2bd3c-bfc4-11e4-9ba3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1d37ac4-bfc4-11e4-ae8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1d2bd3c-bfc4-11e4-9ba3-705681abff85"], ["organization_id", "e1d37ac4-bfc4-11e4-ae8c-705681abff85"], ["created_at", "2015-03-01 03:41:45.122744"], ["updated_at", "2015-03-01 03:41:45.122744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'e1d146a0-bfc4-11e4-8ddd-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "e1d146a0-bfc4-11e4-8ddd-705681abff85"], ["created_at", "2015-03-01 03:41:45.126713"], ["updated_at", "2015-03-01 03:41:45.126713"], ["token", "gIoZ3cIpPItNysk6uY_OqOMo_OvE1fR2Y2uTKNjIGRM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:45 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ykrAt9RLvblFxzB/Bnc7l.C0fkxgU0y1/Xnxoow/xWJgYQWaeRKN6"], ["created_at", "2015-03-01 03:41:45.141471"], ["updated_at", "2015-03-01 03:41:45.141471"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$F1Lmmb1D7v/E3KE24gpfR.WNEmezu7APHMe2WL2iClNTZKKZVHW0O"], ["created_at", "2015-03-01 03:41:45.146363"], ["updated_at", "2015-03-01 03:41:45.146363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.149018"], ["user_id", "e1d71864-bfc4-11e4-b3ab-705681abff85"], ["created_at", "2015-03-01 03:41:45.150263"], ["updated_at", "2015-03-01 03:41:45.150263"], ["token", "FmZ3q3qNGQ1BppMc_dEPN7bXwecVanMSon5HtfNPXoc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.152324"], ["user_id", "e1d7df38-bfc4-11e4-b5f2-705681abff85"], ["created_at", "2015-03-01 03:41:45.153127"], ["updated_at", "2015-03-01 03:41:45.153127"], ["token", "7rT1mBxTlA5-d3JkmfPad_kZSKk_mihQzuPF9rvIsyM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.156793"], ["updated_at", "2015-03-01 03:41:45.156793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1d71864-bfc4-11e4-b3ab-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1d96b0a-bfc4-11e4-8f82-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1d71864-bfc4-11e4-b3ab-705681abff85"], ["organization_id", "e1d96b0a-bfc4-11e4-8f82-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:45.160369"], ["updated_at", "2015-03-01 03:41:45.160369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$uAlyjOIpuo3oKl.1n2Zx4OIbDvBVhcdaD3hI3Aem10g.vHWZgXfRW"], ["created_at", "2015-03-01 03:41:45.164809"], ["updated_at", "2015-03-01 03:41:45.164809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.167948"], ["updated_at", "2015-03-01 03:41:45.167948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1daa286-bfc4-11e4-89a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1db2030-bfc4-11e4-a1c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1daa286-bfc4-11e4-89a4-705681abff85"], ["organization_id", "e1db2030-bfc4-11e4-a1c0-705681abff85"], ["created_at", "2015-03-01 03:41:45.171303"], ["updated_at", "2015-03-01 03:41:45.171303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'e1d96b0a-bfc4-11e4-8f82-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "e1d96b0a-bfc4-11e4-8f82-705681abff85"], ["created_at", "2015-03-01 03:41:45.175481"], ["updated_at", "2015-03-01 03:41:45.175481"], ["token", "XpVA2uGCkXUPE4eloj6On3p-YaagOf3qtW0fvc0SRZo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:45 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:45.180752' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FmZ3q3qNGQ1BppMc_dEPN7bXwecVanMSon5HtfNPXoc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:45.182588"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:45.183690"], ["id", "e1d87aa6-bfc4-11e4-906d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e1d71864-bfc4-11e4-b3ab-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e1d71864-bfc4-11e4-b3ab-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e1d71864-bfc4-11e4-b3ab-705681abff85' LIMIT 1 [["organization_id", "e1d96b0a-bfc4-11e4-8f82-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "e1d96b0a-bfc4-11e4-8f82-705681abff85"]] Completed 200 OK in 13ms (Views: 3.1ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$eRPA.BL9.cz0KyeB/G.w1O5lMmm.KAAtW3ktieW4We1ZOpdZq0S92"], ["created_at", "2015-03-01 03:41:45.199839"], ["updated_at", "2015-03-01 03:41:45.199839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$qu0GVovC/3xHRzLTiWkHOu.X1HXI0xgerGOikwhfs7jxC3VGn0YvS"], ["created_at", "2015-03-01 03:41:45.205330"], ["updated_at", "2015-03-01 03:41:45.205330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.206992"], ["user_id", "e1dfff38-bfc4-11e4-a2c4-705681abff85"], ["created_at", "2015-03-01 03:41:45.207798"], ["updated_at", "2015-03-01 03:41:45.207798"], ["token", "0yGrp3PuiAOGCrV-3juYeSyz6hVk-rPTXGyiTKw-C8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.209852"], ["user_id", "e1e0d1ba-bfc4-11e4-b898-705681abff85"], ["created_at", "2015-03-01 03:41:45.210630"], ["updated_at", "2015-03-01 03:41:45.210630"], ["token", "dqIdbg3o3zPTvmGBmMqJ31IrIZOMCb9WmuA-gEuxIdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.214264"], ["updated_at", "2015-03-01 03:41:45.214264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1dfff38-bfc4-11e4-a2c4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1e22f9c-bfc4-11e4-8db1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1dfff38-bfc4-11e4-a2c4-705681abff85"], ["organization_id", "e1e22f9c-bfc4-11e4-8db1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:45.220178"], ["updated_at", "2015-03-01 03:41:45.220178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1e0d1ba-bfc4-11e4-b898-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1e22f9c-bfc4-11e4-8db1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1e0d1ba-bfc4-11e4-b898-705681abff85"], ["organization_id", "e1e22f9c-bfc4-11e4-8db1-705681abff85"], ["created_at", "2015-03-01 03:41:45.223452"], ["updated_at", "2015-03-01 03:41:45.223452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'e1e22f9c-bfc4-11e4-8db1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "e1e22f9c-bfc4-11e4-8db1-705681abff85"], ["created_at", "2015-03-01 03:41:45.226804"], ["updated_at", "2015-03-01 03:41:45.226804"], ["token", "EZFH2cjPPSXsJG-czFhDp8A7MBwJPaERoUgJJqy43aI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$1oC22IOBT7P7TJybvjzcbuevCRyJEKrCqEpRaaUoKqdCKsFZti0US"], ["created_at", "2015-03-01 03:41:45.241691"], ["updated_at", "2015-03-01 03:41:45.241691"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$MND/Hg9hi8X8/Hs/biqBcOtVCvQEBQ82yR1sz8y3O4.xOBG7RCkA2"], ["created_at", "2015-03-01 03:41:45.247218"], ["updated_at", "2015-03-01 03:41:45.247218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.249005"], ["user_id", "e1e66cc4-bfc4-11e4-8fcf-705681abff85"], ["created_at", "2015-03-01 03:41:45.249884"], ["updated_at", "2015-03-01 03:41:45.249884"], ["token", "Z8V0-SEoQuVBcCMotAxtPVzK5aQlbm28sJlo8mBFEys"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.251817"], ["user_id", "e1e737bc-bfc4-11e4-9d48-705681abff85"], ["created_at", "2015-03-01 03:41:45.252586"], ["updated_at", "2015-03-01 03:41:45.252586"], ["token", "7-jLImo9SseUZxtBi16qcONQU6AyaGe2JbNLNUwX748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.256316"], ["updated_at", "2015-03-01 03:41:45.256316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1e66cc4-bfc4-11e4-8fcf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1e89d28-bfc4-11e4-a391-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1e66cc4-bfc4-11e4-8fcf-705681abff85"], ["organization_id", "e1e89d28-bfc4-11e4-a391-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:45.259868"], ["updated_at", "2015-03-01 03:41:45.259868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1e737bc-bfc4-11e4-9d48-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1e89d28-bfc4-11e4-a391-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1e737bc-bfc4-11e4-9d48-705681abff85"], ["organization_id", "e1e89d28-bfc4-11e4-a391-705681abff85"], ["created_at", "2015-03-01 03:41:45.263437"], ["updated_at", "2015-03-01 03:41:45.263437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'e1e89d28-bfc4-11e4-a391-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "e1e89d28-bfc4-11e4-a391-705681abff85"], ["created_at", "2015-03-01 03:41:45.267462"], ["updated_at", "2015-03-01 03:41:45.267462"], ["token", "z11LGs5G2n4gltcrJpWh49Olt9R_6CxUV9A2ehE4VXo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:45.273887' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Z8V0-SEoQuVBcCMotAxtPVzK5aQlbm28sJlo8mBFEys"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:45.275630"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:45.276779"], ["id", "e1e7a710-bfc4-11e4-8f69-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e1e66cc4-bfc4-11e4-8fcf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e1e66cc4-bfc4-11e4-8fcf-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e1e66cc4-bfc4-11e4-8fcf-705681abff85' LIMIT 1 [["organization_id", "e1e89d28-bfc4-11e4-a391-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e1e89d28-bfc4-11e4-a391-705681abff85"]] Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'e1e89d28-bfc4-11e4-a391-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "e1e89d28-bfc4-11e4-a391-705681abff85"], ["created_at", "2015-03-01 03:41:45.309643"], ["updated_at", "2015-03-01 03:41:45.309643"], ["token", "ORrMQgGQ_j9RORGLsbWK6MZTGDXkUKZEvEJUMzLL3io"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e67fe40f-7010-4189-84b8-df0244c77888) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e1f101ac-bfc4-11e4-b5f9-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "e1f101ac-bfc4-11e4-b5f9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e67fe40f-7010-4189-84b8-df0244c77888] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e1f101ac-bfc4-11e4-b5f9-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [e67fe40f-7010-4189-84b8-df0244c77888] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e1e89d28-bfc4-11e4-a391-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e67fe40f-7010-4189-84b8-df0244c77888] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [e67fe40f-7010-4189-84b8-df0244c77888] Clubhouse::Mailer#invitation: processed outbound mail in 218.5ms [ActiveJob] [ActionMailer::DeliveryJob] [e67fe40f-7010-4189-84b8-df0244c77888] Sent mail to email@example.com (19.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [e67fe40f-7010-4189-84b8-df0244c77888] Date: Sat, 28 Feb 2015 19:41:45 -0800 From: from@example.com To: email@example.com Message-ID: <54f28a798d845_12e933ff61dc65be473687@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/ORrMQgGQ_j9RORGLsbWK6MZTGDXkUKZEvEJUMzLL3io If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [e67fe40f-7010-4189-84b8-df0244c77888] Performed ActionMailer::DeliveryJob from Inline(mailers) in 238.64ms Completed 201 Created in 322ms (Views: 0.6ms | ActiveRecord: 5.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$I42iqjP3pIwy2v/mgRZlY.2N1Dic0qpdpZIJfJE3j4eEPLG1FGGFS"], ["created_at", "2015-03-01 03:41:45.602509"], ["updated_at", "2015-03-01 03:41:45.602509"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$oalxdRCvKziHwml2.ZCi3uB1CtcM2eiEd7Y8fPKYDYJXLHQ2Ti0FK"], ["created_at", "2015-03-01 03:41:45.607640"], ["updated_at", "2015-03-01 03:41:45.607640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.609549"], ["user_id", "e21d71d8-bfc4-11e4-a493-705681abff85"], ["created_at", "2015-03-01 03:41:45.610327"], ["updated_at", "2015-03-01 03:41:45.610327"], ["token", "6DnbqT8TWC6ddo-1OULBVn5_6q0T352SB_TPTlX0vWg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.613652"], ["user_id", "e21e3f78-bfc4-11e4-ad19-705681abff85"], ["created_at", "2015-03-01 03:41:45.614345"], ["updated_at", "2015-03-01 03:41:45.614345"], ["token", "ocq7NZrklKQTA4RBUzYzLl3TD47_S603g4HnVwRut9c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.617746"], ["updated_at", "2015-03-01 03:41:45.617746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e21d71d8-bfc4-11e4-a493-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e21fc096-bfc4-11e4-b59c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e21d71d8-bfc4-11e4-a493-705681abff85"], ["organization_id", "e21fc096-bfc4-11e4-b59c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:45.621351"], ["updated_at", "2015-03-01 03:41:45.621351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e21e3f78-bfc4-11e4-ad19-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e21fc096-bfc4-11e4-b59c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e21e3f78-bfc4-11e4-ad19-705681abff85"], ["organization_id", "e21fc096-bfc4-11e4-b59c-705681abff85"], ["created_at", "2015-03-01 03:41:45.624642"], ["updated_at", "2015-03-01 03:41:45.624642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'e21fc096-bfc4-11e4-b59c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "e21fc096-bfc4-11e4-b59c-705681abff85"], ["created_at", "2015-03-01 03:41:45.629080"], ["updated_at", "2015-03-01 03:41:45.629080"], ["token", "t44Kdu2oJomVyLuYdiw-hXhDV59OImfY7Zj_iPay75Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:45.635860' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6DnbqT8TWC6ddo-1OULBVn5_6q0T352SB_TPTlX0vWg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:45.637916"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:45.640240"], ["id", "e21ea878-bfc4-11e4-9f55-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e21d71d8-bfc4-11e4-a493-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e21d71d8-bfc4-11e4-a493-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e21d71d8-bfc4-11e4-a493-705681abff85' LIMIT 1 [["organization_id", "e21fc096-bfc4-11e4-b59c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e21fc096-bfc4-11e4-b59c-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'e21fc096-bfc4-11e4-b59c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "e21fc096-bfc4-11e4-b59c-705681abff85"], ["created_at", "2015-03-01 03:41:45.655298"], ["updated_at", "2015-03-01 03:41:45.655298"], ["token", "UFuSiJFthHiOD-GbB9js2JA_1rAToF9XZFHOe4Bm_D8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 03918a9e-8704-45a9-befa-25942c92e4a8) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e2259f3e-bfc4-11e4-9d66-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "e2259f3e-bfc4-11e4-9d66-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [03918a9e-8704-45a9-befa-25942c92e4a8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e2259f3e-bfc4-11e4-9d66-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [03918a9e-8704-45a9-befa-25942c92e4a8] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e21fc096-bfc4-11e4-b59c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [03918a9e-8704-45a9-befa-25942c92e4a8] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [03918a9e-8704-45a9-befa-25942c92e4a8] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [03918a9e-8704-45a9-befa-25942c92e4a8] Sent mail to email@example.com (2.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [03918a9e-8704-45a9-befa-25942c92e4a8] Date: Sat, 28 Feb 2015 19:41:45 -0800 From: from@example.com To: email@example.com Message-ID: <54f28a79a290e_12e933ff61dc65be47374f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/UFuSiJFthHiOD-GbB9js2JA_1rAToF9XZFHOe4Bm_D8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [03918a9e-8704-45a9-befa-25942c92e4a8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.56ms Completed 201 Created in 33ms (Views: 0.5ms | ActiveRecord: 4.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$TaWyrfUbKDcrZBYGB7/h8.DtMgx1JJt7/HWKsxpRsdESLrOqlRQ8y"], ["created_at", "2015-03-01 03:41:45.686682"], ["updated_at", "2015-03-01 03:41:45.686682"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$7QgfMwlP/aZEtTBvfrRgEu3KjVvZNdiLsDYuE7HAwk0WvMg3mCmc."], ["created_at", "2015-03-01 03:41:45.727602"], ["updated_at", "2015-03-01 03:41:45.727602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.729508"], ["user_id", "e22abb54-bfc4-11e4-8ab6-705681abff85"], ["created_at", "2015-03-01 03:41:45.730328"], ["updated_at", "2015-03-01 03:41:45.730328"], ["token", "m4T983DFFWyF3sX6dBxhU8HloNiz3XazZSakN0mxoPU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.732510"], ["user_id", "e2308778-bfc4-11e4-a87e-705681abff85"], ["created_at", "2015-03-01 03:41:45.733400"], ["updated_at", "2015-03-01 03:41:45.733400"], ["token", "WFkFtm-x36mpXdrqTeoplEpBZb8ohlAHaDqfYqO_oDs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.738240"], ["updated_at", "2015-03-01 03:41:45.738240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e22abb54-bfc4-11e4-8ab6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e23228a8-bfc4-11e4-998a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e22abb54-bfc4-11e4-8ab6-705681abff85"], ["organization_id", "e23228a8-bfc4-11e4-998a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:45.747235"], ["updated_at", "2015-03-01 03:41:45.747235"]]  (1.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2308778-bfc4-11e4-a87e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e23228a8-bfc4-11e4-998a-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2308778-bfc4-11e4-a87e-705681abff85"], ["organization_id", "e23228a8-bfc4-11e4-998a-705681abff85"], ["created_at", "2015-03-01 03:41:45.759863"], ["updated_at", "2015-03-01 03:41:45.759863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'e23228a8-bfc4-11e4-998a-705681abff85') LIMIT 1 SQL (3.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "e23228a8-bfc4-11e4-998a-705681abff85"], ["created_at", "2015-03-01 03:41:45.777216"], ["updated_at", "2015-03-01 03:41:45.777216"], ["token", "hOVCk8Ur4rQnd3ZXVmmSdH6fnPLFZu0SB-aXium35Ak"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:45.815621' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "m4T983DFFWyF3sX6dBxhU8HloNiz3XazZSakN0mxoPU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:45.819637"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:45.820867"], ["id", "e230f5f0-bfc4-11e4-9bc9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e22abb54-bfc4-11e4-8ab6-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e22abb54-bfc4-11e4-8ab6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e22abb54-bfc4-11e4-8ab6-705681abff85' LIMIT 1 [["organization_id", "e23228a8-bfc4-11e4-998a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e23228a8-bfc4-11e4-998a-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'e23228a8-bfc4-11e4-998a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$h8klzmeGtYw7gFw4MWv4euRt0g/9i9BwZBrm7iBv/lIgFJwSj4nnq"], ["created_at", "2015-03-01 03:41:45.842072"], ["updated_at", "2015-03-01 03:41:45.842072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$qg2t/WQSaICCqsRvLkuh.up.C9ncefvdrgbUQAuInnRG/o7qEbfya"], ["created_at", "2015-03-01 03:41:45.847928"], ["updated_at", "2015-03-01 03:41:45.847928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.849693"], ["user_id", "e24219e8-bfc4-11e4-8cbf-705681abff85"], ["created_at", "2015-03-01 03:41:45.850509"], ["updated_at", "2015-03-01 03:41:45.850509"], ["token", "UdhNr095T62AoxSLZPYU8z8S6dmXhenrKBMFuJdz1HQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.852780"], ["user_id", "e242e15c-bfc4-11e4-a042-705681abff85"], ["created_at", "2015-03-01 03:41:45.853570"], ["updated_at", "2015-03-01 03:41:45.853570"], ["token", "X53GGQmwFuiU8cawJLEJsqX9kK-o2dwDa2pdbD-zlqo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.857404"], ["updated_at", "2015-03-01 03:41:45.857404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e24219e8-bfc4-11e4-8cbf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e244519a-bfc4-11e4-9afe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e24219e8-bfc4-11e4-8cbf-705681abff85"], ["organization_id", "e244519a-bfc4-11e4-9afe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:45.861366"], ["updated_at", "2015-03-01 03:41:45.861366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e242e15c-bfc4-11e4-a042-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e244519a-bfc4-11e4-9afe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e242e15c-bfc4-11e4-a042-705681abff85"], ["organization_id", "e244519a-bfc4-11e4-9afe-705681abff85"], ["created_at", "2015-03-01 03:41:45.864672"], ["updated_at", "2015-03-01 03:41:45.864672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'e244519a-bfc4-11e4-9afe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "e244519a-bfc4-11e4-9afe-705681abff85"], ["created_at", "2015-03-01 03:41:45.868906"], ["updated_at", "2015-03-01 03:41:45.868906"], ["token", "iiYq-Xu_pjdp_aYNG9rZnmd4dgoVI6mlbYKlLUW4dO4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:41:45 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$9WXaNdXzB87kRM.K71HCsOoQPNLPlvqD9CBdrzayL3BYVo.1QvaSO"], ["created_at", "2015-03-01 03:41:45.885751"], ["updated_at", "2015-03-01 03:41:45.885751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$9Wycgy9vHhN4ky1sDAvgXenghaqK5110iCE30J0Mfz1G8RywDcgnW"], ["created_at", "2015-03-01 03:41:45.891290"], ["updated_at", "2015-03-01 03:41:45.891290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.893103"], ["user_id", "e248af2e-bfc4-11e4-84fe-705681abff85"], ["created_at", "2015-03-01 03:41:45.894274"], ["updated_at", "2015-03-01 03:41:45.894274"], ["token", "MZNL-lZpwa6VXGZFi_pDG45Tm5iZ4N06-7xs3YfzBcU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.896766"], ["user_id", "e2497f30-bfc4-11e4-8f28-705681abff85"], ["created_at", "2015-03-01 03:41:45.897650"], ["updated_at", "2015-03-01 03:41:45.897650"], ["token", "YNsuJ81uVWWGG7Dw0OLHAS_6mWZ5RLrNF8-Rf3YD4HI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.901135"], ["updated_at", "2015-03-01 03:41:45.901135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e248af2e-bfc4-11e4-84fe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e24b00da-bfc4-11e4-b422-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e248af2e-bfc4-11e4-84fe-705681abff85"], ["organization_id", "e24b00da-bfc4-11e4-b422-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:45.906195"], ["updated_at", "2015-03-01 03:41:45.906195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2497f30-bfc4-11e4-8f28-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e24b00da-bfc4-11e4-b422-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2497f30-bfc4-11e4-8f28-705681abff85"], ["organization_id", "e24b00da-bfc4-11e4-b422-705681abff85"], ["created_at", "2015-03-01 03:41:45.909703"], ["updated_at", "2015-03-01 03:41:45.909703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'e24b00da-bfc4-11e4-b422-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "e24b00da-bfc4-11e4-b422-705681abff85"], ["created_at", "2015-03-01 03:41:45.914817"], ["updated_at", "2015-03-01 03:41:45.914817"], ["token", "YWmZQTzrTsNOs05DocO3GdT4DUZSDApbclzfwGpDJU4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/e24d4a8e-bfc4-11e4-8313-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:41:45 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"e24d4a8e-bfc4-11e4-8313-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:45.922387' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MZNL-lZpwa6VXGZFi_pDG45Tm5iZ4N06-7xs3YfzBcU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:45.924514"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:45.926627"], ["id", "e24a0c52-bfc4-11e4-b3e6-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e248af2e-bfc4-11e4-84fe-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e248af2e-bfc4-11e4-84fe-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e248af2e-bfc4-11e4-84fe-705681abff85' LIMIT 1 [["organization_id", "e24b00da-bfc4-11e4-b422-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "e24b00da-bfc4-11e4-b422-705681abff85"], ["id", "e24d4a8e-bfc4-11e4-8313-705681abff85"]] Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$hn78/IYSOd9wulY70nfe6u4IlchmmNCVXRe8WLMlYn/xBGDvqInee"], ["created_at", "2015-03-01 03:41:45.945693"], ["updated_at", "2015-03-01 03:41:45.945693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$.rR0270KQTcb8G6p1cJ9PO//GXdgneZ6.8loEWNRa1GWcEqVxxfVG"], ["created_at", "2015-03-01 03:41:45.951469"], ["updated_at", "2015-03-01 03:41:45.951469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.953704"], ["user_id", "e251d630-bfc4-11e4-b1bc-705681abff85"], ["created_at", "2015-03-01 03:41:45.954961"], ["updated_at", "2015-03-01 03:41:45.954961"], ["token", "Cxx6tZEEGiWYAouvaAG6Bsu6e-LzWd1VcALeCsFeYmA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.957066"], ["user_id", "e252be74-bfc4-11e4-a652-705681abff85"], ["created_at", "2015-03-01 03:41:45.957842"], ["updated_at", "2015-03-01 03:41:45.957842"], ["token", "B-t0kHSPekYWoXI7HCZhpZgKuYJFRVlMgwKi2s16GmI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:45.961945"], ["updated_at", "2015-03-01 03:41:45.961945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e251d630-bfc4-11e4-b1bc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2544708-bfc4-11e4-ae16-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e251d630-bfc4-11e4-b1bc-705681abff85"], ["organization_id", "e2544708-bfc4-11e4-ae16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:45.965691"], ["updated_at", "2015-03-01 03:41:45.965691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e252be74-bfc4-11e4-a652-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2544708-bfc4-11e4-ae16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e252be74-bfc4-11e4-a652-705681abff85"], ["organization_id", "e2544708-bfc4-11e4-ae16-705681abff85"], ["created_at", "2015-03-01 03:41:45.969411"], ["updated_at", "2015-03-01 03:41:45.969411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'e2544708-bfc4-11e4-ae16-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "e2544708-bfc4-11e4-ae16-705681abff85"], ["created_at", "2015-03-01 03:41:45.973067"], ["updated_at", "2015-03-01 03:41:45.973067"], ["token", "yV20KGgjHvx1ecKF-f5BYyvKDFU2BqCbZgLZikM9iMs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:41:45 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$j6GPzFudMQM/2SCV2UrYR.v0D4CdnNEW4vX7K.W0S0sx/YrqA38bu"], ["created_at", "2015-03-01 03:41:45.988263"], ["updated_at", "2015-03-01 03:41:45.988263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$BvPb70wvDwwQIoo54bx9uucGahTbl4SEbAIJH4YWCLlHK9mNyuHby"], ["created_at", "2015-03-01 03:41:45.993042"], ["updated_at", "2015-03-01 03:41:45.993042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.994688"], ["user_id", "e2584d58-bfc4-11e4-a247-705681abff85"], ["created_at", "2015-03-01 03:41:45.995737"], ["updated_at", "2015-03-01 03:41:45.995737"], ["token", "9aFuySJyPT3JfJbLZX6yJw67Sz7eQXzNrbenvdRwTi8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:45.998156"], ["user_id", "e25904a0-bfc4-11e4-b6e3-705681abff85"], ["created_at", "2015-03-01 03:41:45.999098"], ["updated_at", "2015-03-01 03:41:45.999098"], ["token", "r62oiWHoOKLAn3MT9ZJfmDJ8lG6J7VM5Od9QnLlPJ2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:46.002628"], ["updated_at", "2015-03-01 03:41:46.002628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2584d58-bfc4-11e4-a247-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e25a7ae2-bfc4-11e4-a0d4-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2584d58-bfc4-11e4-a247-705681abff85"], ["organization_id", "e25a7ae2-bfc4-11e4-a0d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:46.006225"], ["updated_at", "2015-03-01 03:41:46.006225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e25904a0-bfc4-11e4-b6e3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e25a7ae2-bfc4-11e4-a0d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e25904a0-bfc4-11e4-b6e3-705681abff85"], ["organization_id", "e25a7ae2-bfc4-11e4-a0d4-705681abff85"], ["created_at", "2015-03-01 03:41:46.011941"], ["updated_at", "2015-03-01 03:41:46.011941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'e25a7ae2-bfc4-11e4-a0d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "e25a7ae2-bfc4-11e4-a0d4-705681abff85"], ["created_at", "2015-03-01 03:41:46.015499"], ["updated_at", "2015-03-01 03:41:46.015499"], ["token", "96gaJe4o90gHbQIzeopDsUDHVZVzOx-Q4EG5odqiEi8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/e25c74d2-bfc4-11e4-8b60-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:41:46 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"e25c74d2-bfc4-11e4-8b60-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:46.022751' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9aFuySJyPT3JfJbLZX6yJw67Sz7eQXzNrbenvdRwTi8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:46.024302"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:46.025347"], ["id", "e259886c-bfc4-11e4-8a98-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2584d58-bfc4-11e4-a247-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e2584d58-bfc4-11e4-a247-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e2584d58-bfc4-11e4-a247-705681abff85' LIMIT 1 [["organization_id", "e25a7ae2-bfc4-11e4-a0d4-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "e25a7ae2-bfc4-11e4-a0d4-705681abff85"], ["id", "e25c74d2-bfc4-11e4-8b60-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e25a7ae2-bfc4-11e4-a0d4-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."id" != 'e25c74d2-bfc4-11e4-8b60-705681abff85' AND "clubhouse_invitations"."organization_id" = 'e25a7ae2-bfc4-11e4-a0d4-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 03:41:46.037429"], ["id", "e25c74d2-bfc4-11e4-8b60-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.6ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$JC4wHY/rzWODQ5.Spf29hOVlzFszkHiRDvxlHo4EVV.t5UWOrFa2m"], ["created_at", "2015-03-01 03:41:52.978066"], ["updated_at", "2015-03-01 03:41:52.978066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$CJOgpUigkrW0h8LbHeZlseRbI8yDedKl/BOviDCrUEf3gDYydDDG2"], ["created_at", "2015-03-01 03:41:52.983736"], ["updated_at", "2015-03-01 03:41:52.983736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:52.992080"], ["user_id", "e68303a0-bfc4-11e4-b462-705681abff85"], ["created_at", "2015-03-01 03:41:52.998347"], ["updated_at", "2015-03-01 03:41:52.998347"], ["token", "imH3C9cxtxpJ5Y6JLMjMfuNzHidKDMyIUZdZnStVFvo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.001909"], ["user_id", "e683b3ea-bfc4-11e4-a2d3-705681abff85"], ["created_at", "2015-03-01 03:41:53.002764"], ["updated_at", "2015-03-01 03:41:53.002764"], ["token", "lsreeaYhR3C8id2aX-MaY1bDa0RDO0wZn39T8Xkpx-4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.011545"], ["updated_at", "2015-03-01 03:41:53.011545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e68303a0-bfc4-11e4-b462-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e687fe32-bfc4-11e4-b003-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e68303a0-bfc4-11e4-b462-705681abff85"], ["organization_id", "e687fe32-bfc4-11e4-b003-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.061979"], ["updated_at", "2015-03-01 03:41:53.061979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$mZwHDN1LNtDpcxFSmoRm3udYXgSTeEtILHzURzcqOQiG7VMIVwcAm"], ["created_at", "2015-03-01 03:41:53.068063"], ["updated_at", "2015-03-01 03:41:53.068063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.071885"], ["updated_at", "2015-03-01 03:41:53.071885"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6909786-bfc4-11e4-b98d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6912c6e-bfc4-11e4-bb2c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e6909786-bfc4-11e4-b98d-705681abff85"], ["organization_id", "e6912c6e-bfc4-11e4-bb2c-705681abff85"], ["created_at", "2015-03-01 03:41:53.075562"], ["updated_at", "2015-03-01 03:41:53.075562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e687fe32-bfc4-11e4-b003-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "e687fe32-bfc4-11e4-b003-705681abff85"], ["created_at", "2015-03-01 03:41:53.085521"], ["updated_at", "2015-03-01 03:41:53.085521"], ["token", "1yB8kNYEUpnOfVY9ApKbfUzQmaH3bsxTthK0Pa7bgmw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:53.121561' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "imH3C9cxtxpJ5Y6JLMjMfuNzHidKDMyIUZdZnStVFvo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:53.129227"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:53.130849"], ["id", "e68614c8-bfc4-11e4-ac33-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e68303a0-bfc4-11e4-b462-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e68303a0-bfc4-11e4-b462-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e68303a0-bfc4-11e4-b462-705681abff85' LIMIT 1 [["organization_id", "e687fe32-bfc4-11e4-b003-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "e687fe32-bfc4-11e4-b003-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e687fe32-bfc4-11e4-b003-705681abff85"]] Completed 200 OK in 61ms (Views: 7.1ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$UAl0L6sowC1xHz3UpXOLmOJdfMXzUH9rITfVMtUW6gfEUTlHPwuwm"], ["created_at", "2015-03-01 03:41:53.192057"], ["updated_at", "2015-03-01 03:41:53.192057"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$HHGgL4hJTTqWyYVTY3WUlOQQEYzDGSlbI5Ym5ZTQM6fr2vMe6XcS2"], ["created_at", "2015-03-01 03:41:53.198248"], ["updated_at", "2015-03-01 03:41:53.198248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.200684"], ["user_id", "e6a3890e-bfc4-11e4-b1f8-705681abff85"], ["created_at", "2015-03-01 03:41:53.201903"], ["updated_at", "2015-03-01 03:41:53.201903"], ["token", "4uAN4MZ0mBs8-5kUGodc5od8tYxmPIFu6CGBnj9F5K4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.204208"], ["user_id", "e6a47fe4-bfc4-11e4-8812-705681abff85"], ["created_at", "2015-03-01 03:41:53.205040"], ["updated_at", "2015-03-01 03:41:53.205040"], ["token", "XLcAI85wWdunWFpqTKdT0u-gG_x4ORv4b-qkjsIg-SE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.208784"], ["updated_at", "2015-03-01 03:41:53.208784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6a3890e-bfc4-11e4-b1f8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6a60c06-bfc4-11e4-a201-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e6a3890e-bfc4-11e4-b1f8-705681abff85"], ["organization_id", "e6a60c06-bfc4-11e4-a201-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.212397"], ["updated_at", "2015-03-01 03:41:53.212397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$DMWInYSTR4ahAx0yFuXu0Ovdd2J67Bk6KidFXvtR6cjHFpV1RAFc2"], ["created_at", "2015-03-01 03:41:53.216980"], ["updated_at", "2015-03-01 03:41:53.216980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.220431"], ["updated_at", "2015-03-01 03:41:53.220431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6a74bb6-bfc4-11e4-9959-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6a7d4fa-bfc4-11e4-b12b-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e6a74bb6-bfc4-11e4-9959-705681abff85"], ["organization_id", "e6a7d4fa-bfc4-11e4-b12b-705681abff85"], ["created_at", "2015-03-01 03:41:53.224205"], ["updated_at", "2015-03-01 03:41:53.224205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'e6a60c06-bfc4-11e4-a201-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "e6a60c06-bfc4-11e4-a201-705681abff85"], ["created_at", "2015-03-01 03:41:53.229307"], ["updated_at", "2015-03-01 03:41:53.229307"], ["token", "aZSpHET4KV98_nsU7NraOQkadJV4u_akSqPCIeJhJTs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$1Z7.feHeNl6vR.siT57.JechJ88X7yMPMaIHRyAoFL1nF/zvao8Xm"], ["created_at", "2015-03-01 03:41:53.245096"], ["updated_at", "2015-03-01 03:41:53.245096"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$g1mNOehKl31OnS.IL2g0aelLTfrRGYSKvHdIYYMQZ3OgDidSjmvxG"], ["created_at", "2015-03-01 03:41:53.249760"], ["updated_at", "2015-03-01 03:41:53.249760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.251308"], ["user_id", "e6ab987e-bfc4-11e4-ade1-705681abff85"], ["created_at", "2015-03-01 03:41:53.252203"], ["updated_at", "2015-03-01 03:41:53.252203"], ["token", "N2xJLeQzOfM1SpCFlqa59--9KzWoC1Vwlbt28VCUjlc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.254001"], ["user_id", "e6ac4b5c-bfc4-11e4-be90-705681abff85"], ["created_at", "2015-03-01 03:41:53.254830"], ["updated_at", "2015-03-01 03:41:53.254830"], ["token", "JxGEpt776hQC9wh5MEIjc4njssLxrlaKGYS_WZZpGq8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.258188"], ["updated_at", "2015-03-01 03:41:53.258188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6ab987e-bfc4-11e4-ade1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6ad9534-bfc4-11e4-b8fa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e6ab987e-bfc4-11e4-ade1-705681abff85"], ["organization_id", "e6ad9534-bfc4-11e4-b8fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.262001"], ["updated_at", "2015-03-01 03:41:53.262001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6ac4b5c-bfc4-11e4-be90-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6ad9534-bfc4-11e4-b8fa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e6ac4b5c-bfc4-11e4-be90-705681abff85"], ["organization_id", "e6ad9534-bfc4-11e4-b8fa-705681abff85"], ["created_at", "2015-03-01 03:41:53.265124"], ["updated_at", "2015-03-01 03:41:53.265124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'e6ad9534-bfc4-11e4-b8fa-705681abff85') LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "e6ad9534-bfc4-11e4-b8fa-705681abff85"], ["created_at", "2015-03-01 03:41:53.269305"], ["updated_at", "2015-03-01 03:41:53.269305"], ["token", "odY140fnoMdg1HKG6tUOsMaaJn6H7tPV1ftgVKn3UD0"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/e6af4d02-bfc4-11e4-9cc8-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"e6af4d02-bfc4-11e4-9cc8-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:53.279107' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N2xJLeQzOfM1SpCFlqa59--9KzWoC1Vwlbt28VCUjlc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:53.280557"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:53.281583"], ["id", "e6acb6be-bfc4-11e4-b378-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e6ab987e-bfc4-11e4-ade1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e6ab987e-bfc4-11e4-ade1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e6ab987e-bfc4-11e4-ade1-705681abff85' LIMIT 1 [["organization_id", "e6ad9534-bfc4-11e4-b8fa-705681abff85"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "e6ad9534-bfc4-11e4-b8fa-705681abff85"], ["id", "e6af4d02-bfc4-11e4-9cc8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "e6af4d02-bfc4-11e4-9cc8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 36ms (ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$EIyF/n2MvEVcvdcFiw4yxu3A5quHApczxdsFo6Rf6Y2ssKLI2X1Py"], ["created_at", "2015-03-01 03:41:53.322440"], ["updated_at", "2015-03-01 03:41:53.322440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$1u/jBp/Nxv48tFF/a/QSOOao2sQMfwI1/QAV/b3v4MBS9QZPuOobW"], ["created_at", "2015-03-01 03:41:53.327589"], ["updated_at", "2015-03-01 03:41:53.327589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.329196"], ["user_id", "e6b76b18-bfc4-11e4-8bae-705681abff85"], ["created_at", "2015-03-01 03:41:53.330172"], ["updated_at", "2015-03-01 03:41:53.330172"], ["token", "bWksCfXQum-3FYJt10bLpiK4YN3EE_I_0oV2CfXO3L8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.333387"], ["user_id", "e6b82d78-bfc4-11e4-8ca0-705681abff85"], ["created_at", "2015-03-01 03:41:53.334196"], ["updated_at", "2015-03-01 03:41:53.334196"], ["token", "go1q2XvzDjIFC55cpHqQBE0IqTfaxSvNcUZKUM-t5_g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.338085"], ["updated_at", "2015-03-01 03:41:53.338085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6b76b18-bfc4-11e4-8bae-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6b9ce08-bfc4-11e4-8318-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e6b76b18-bfc4-11e4-8bae-705681abff85"], ["organization_id", "e6b9ce08-bfc4-11e4-8318-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.342171"], ["updated_at", "2015-03-01 03:41:53.342171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6b82d78-bfc4-11e4-8ca0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6b9ce08-bfc4-11e4-8318-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e6b82d78-bfc4-11e4-8ca0-705681abff85"], ["organization_id", "e6b9ce08-bfc4-11e4-8318-705681abff85"], ["created_at", "2015-03-01 03:41:53.345869"], ["updated_at", "2015-03-01 03:41:53.345869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'e6b9ce08-bfc4-11e4-8318-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "e6b9ce08-bfc4-11e4-8318-705681abff85"], ["created_at", "2015-03-01 03:41:53.350180"], ["updated_at", "2015-03-01 03:41:53.350180"], ["token", "XanXddsAiqwv7_OsRkNbvksk-RgYa8fRX_vug6ODjyk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$vNqkm2AzNYQAIgBcGC2/J.dUIddEM5YCZsWqgpZdiorE3tXPPlDKK"], ["created_at", "2015-03-01 03:41:53.366083"], ["updated_at", "2015-03-01 03:41:53.366083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$OmypCUivhFWBjTWn.E4OS.XZwQMjp2sCbsuJCb9bhlTSBqwEgR5mi"], ["created_at", "2015-03-01 03:41:53.370805"], ["updated_at", "2015-03-01 03:41:53.370805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.372448"], ["user_id", "e6be1116-bfc4-11e4-b32e-705681abff85"], ["created_at", "2015-03-01 03:41:53.373363"], ["updated_at", "2015-03-01 03:41:53.373363"], ["token", "682Dav9IoBrEvkiw2wGiln6ILwph8FA1UAgB-84O7dg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.375690"], ["user_id", "e6bec688-bfc4-11e4-9f6c-705681abff85"], ["created_at", "2015-03-01 03:41:53.376571"], ["updated_at", "2015-03-01 03:41:53.376571"], ["token", "-xqfqovr-hhPMBQT0ZdVuN9UyTKf5qwQ1c40Q7a9DJc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.380218"], ["updated_at", "2015-03-01 03:41:53.380218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6be1116-bfc4-11e4-b32e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6c0366c-bfc4-11e4-a403-705681abff85') LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e6be1116-bfc4-11e4-b32e-705681abff85"], ["organization_id", "e6c0366c-bfc4-11e4-a403-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.384084"], ["updated_at", "2015-03-01 03:41:53.384084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6bec688-bfc4-11e4-9f6c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6c0366c-bfc4-11e4-a403-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e6bec688-bfc4-11e4-9f6c-705681abff85"], ["organization_id", "e6c0366c-bfc4-11e4-a403-705681abff85"], ["created_at", "2015-03-01 03:41:53.391337"], ["updated_at", "2015-03-01 03:41:53.391337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'e6c0366c-bfc4-11e4-a403-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "e6c0366c-bfc4-11e4-a403-705681abff85"], ["created_at", "2015-03-01 03:41:53.395736"], ["updated_at", "2015-03-01 03:41:53.395736"], ["token", "_S_0lD97lWiYTyhuyoJO1etsa6dWSqTBglBAE0g2BT8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$WQ5w7oyXQX.efgk0KW8HU.aSwNMgYX1/.MiL62S/9z3E10UOmLnB."], ["created_at", "2015-03-01 03:41:53.410791"], ["updated_at", "2015-03-01 03:41:53.410791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$rO5/EHUg5G4AfUtD0iixG.1yui0h8KgOiM6DQDQ5k3rjAb.4jEs0."], ["created_at", "2015-03-01 03:41:53.415582"], ["updated_at", "2015-03-01 03:41:53.415582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.417384"], ["user_id", "e6c4eedc-bfc4-11e4-9f64-705681abff85"], ["created_at", "2015-03-01 03:41:53.418224"], ["updated_at", "2015-03-01 03:41:53.418224"], ["token", "uLTisFdDvB6QifrsHFU_xe7zNHF8QODxjb0Rh2wt4VU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.419978"], ["user_id", "e6c599c2-bfc4-11e4-a664-705681abff85"], ["created_at", "2015-03-01 03:41:53.420674"], ["updated_at", "2015-03-01 03:41:53.420674"], ["token", "5mF2cXsDR4BEvRkwRUadap663r-vn7yaAjv5lQpwALs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.423850"], ["updated_at", "2015-03-01 03:41:53.423850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6c4eedc-bfc4-11e4-9f64-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6c6dba2-bfc4-11e4-a5e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e6c4eedc-bfc4-11e4-9f64-705681abff85"], ["organization_id", "e6c6dba2-bfc4-11e4-a5e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.427106"], ["updated_at", "2015-03-01 03:41:53.427106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6c599c2-bfc4-11e4-a664-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6c6dba2-bfc4-11e4-a5e1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e6c599c2-bfc4-11e4-a664-705681abff85"], ["organization_id", "e6c6dba2-bfc4-11e4-a5e1-705681abff85"], ["created_at", "2015-03-01 03:41:53.430756"], ["updated_at", "2015-03-01 03:41:53.430756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'e6c6dba2-bfc4-11e4-a5e1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "e6c6dba2-bfc4-11e4-a5e1-705681abff85"], ["created_at", "2015-03-01 03:41:53.434637"], ["updated_at", "2015-03-01 03:41:53.434637"], ["token", "KQQS2Sb5o2rn1UoFdb4lyQMcEhxHxQ11kBirjwz86NI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:53.441629' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uLTisFdDvB6QifrsHFU_xe7zNHF8QODxjb0Rh2wt4VU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:53.444198"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:53.445720"], ["id", "e6c609d4-bfc4-11e4-a2b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e6c4eedc-bfc4-11e4-9f64-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e6c4eedc-bfc4-11e4-9f64-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e6c4eedc-bfc4-11e4-9f64-705681abff85' LIMIT 1 [["organization_id", "e6c6dba2-bfc4-11e4-a5e1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e6c6dba2-bfc4-11e4-a5e1-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'e6c6dba2-bfc4-11e4-a5e1-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 36ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$W6SXL8aJZdmRDgikx0tPEe3YvLxzoOf/Nj1nEE1sy.44bvxuqRqbC"], ["created_at", "2015-03-01 03:41:53.483596"], ["updated_at", "2015-03-01 03:41:53.483596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$s/HPOKdz64zlAMci5OsKrOG3qkekkR4Kd.8hJ5I3EJzRp7jeAFpsy"], ["created_at", "2015-03-01 03:41:53.489133"], ["updated_at", "2015-03-01 03:41:53.489133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.491130"], ["user_id", "e6d000d8-bfc4-11e4-b943-705681abff85"], ["created_at", "2015-03-01 03:41:53.492483"], ["updated_at", "2015-03-01 03:41:53.492483"], ["token", "ymWp3KSNNNWQO2J1BcOYx2Phlcg-iMmIrJf0wJHvNkc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.494509"], ["user_id", "e6d0d7ce-bfc4-11e4-b282-705681abff85"], ["created_at", "2015-03-01 03:41:53.495291"], ["updated_at", "2015-03-01 03:41:53.495291"], ["token", "avkkRCveXckJ44I_e3NAEiUmnyYCWPBfJwd_Hhr-r9M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.499568"], ["updated_at", "2015-03-01 03:41:53.499568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6d000d8-bfc4-11e4-b943-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6d26dfa-bfc4-11e4-b637-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e6d000d8-bfc4-11e4-b943-705681abff85"], ["organization_id", "e6d26dfa-bfc4-11e4-b637-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.505530"], ["updated_at", "2015-03-01 03:41:53.505530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6d0d7ce-bfc4-11e4-b282-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e6d26dfa-bfc4-11e4-b637-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e6d0d7ce-bfc4-11e4-b282-705681abff85"], ["organization_id", "e6d26dfa-bfc4-11e4-b637-705681abff85"], ["created_at", "2015-03-01 03:41:53.510412"], ["updated_at", "2015-03-01 03:41:53.510412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'e6d26dfa-bfc4-11e4-b637-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "e6d26dfa-bfc4-11e4-b637-705681abff85"], ["created_at", "2015-03-01 03:41:53.515679"], ["updated_at", "2015-03-01 03:41:53.515679"], ["token", "Zbiy4SEEdRDZCBFWq4xfs-6AUg6_7h3r-aVLrkbyUoc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:53.521591' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ymWp3KSNNNWQO2J1BcOYx2Phlcg-iMmIrJf0wJHvNkc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:53.523095"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:53.524175"], ["id", "e6d16414-bfc4-11e4-9fe3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e6d000d8-bfc4-11e4-b943-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e6d000d8-bfc4-11e4-b943-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e6d000d8-bfc4-11e4-b943-705681abff85' LIMIT 1 [["organization_id", "e6d26dfa-bfc4-11e4-b637-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e6d26dfa-bfc4-11e4-b637-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'e6d26dfa-bfc4-11e4-b637-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "e6d26dfa-bfc4-11e4-b637-705681abff85"], ["created_at", "2015-03-01 03:41:53.535405"], ["updated_at", "2015-03-01 03:41:53.535405"], ["token", "xIC_B_5BeaRbXXxBMemfv_LxefHGWbV7NYZ9svJCFM4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 02762409-0afe-4eaf-8b83-7fc3212bc654) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e6d7fc52-bfc4-11e4-8a97-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "e6d7fc52-bfc4-11e4-8a97-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [02762409-0afe-4eaf-8b83-7fc3212bc654] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e6d7fc52-bfc4-11e4-8a97-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [02762409-0afe-4eaf-8b83-7fc3212bc654] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e6d26dfa-bfc4-11e4-b637-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [02762409-0afe-4eaf-8b83-7fc3212bc654] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [02762409-0afe-4eaf-8b83-7fc3212bc654] Clubhouse::Mailer#invitation: processed outbound mail in 213.4ms [ActiveJob] [ActionMailer::DeliveryJob] [02762409-0afe-4eaf-8b83-7fc3212bc654] Sent mail to email@example.com (20.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [02762409-0afe-4eaf-8b83-7fc3212bc654] Date: Sat, 28 Feb 2015 19:41:53 -0800 From: from@example.com To: email@example.com Message-ID: <54f28a81bef96_12e953fd8e8865be0442af@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/xIC_B_5BeaRbXXxBMemfv_LxefHGWbV7NYZ9svJCFM4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [02762409-0afe-4eaf-8b83-7fc3212bc654] Performed ActionMailer::DeliveryJob from Inline(mailers) in 233.95ms Completed 201 Created in 278ms (Views: 1.0ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$pqHKNX3kV84nQh5RPDkOru9exA2qg1GqhHIjQqJTdm3jZnpZbzH4q"], ["created_at", "2015-03-01 03:41:53.806864"], ["updated_at", "2015-03-01 03:41:53.806864"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Yp.XZenM6jebjFo9RGliO.KmlgjUJueQMTToIXu644AZicW4jqgXi"], ["created_at", "2015-03-01 03:41:53.812302"], ["updated_at", "2015-03-01 03:41:53.812302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.813904"], ["user_id", "e70151ec-bfc4-11e4-bb90-705681abff85"], ["created_at", "2015-03-01 03:41:53.814774"], ["updated_at", "2015-03-01 03:41:53.814774"], ["token", "R22_cAVERlJAfv5fmajATFjU-HteLz81bE8tv7PfKHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.816634"], ["user_id", "e70222fc-bfc4-11e4-bdf5-705681abff85"], ["created_at", "2015-03-01 03:41:53.817531"], ["updated_at", "2015-03-01 03:41:53.817531"], ["token", "0KBkDt1j_h7nl-PK4L-cccbqikL-Par1EmD5jCfeZrI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.821026"], ["updated_at", "2015-03-01 03:41:53.821026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e70151ec-bfc4-11e4-bb90-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e703754e-bfc4-11e4-89f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e70151ec-bfc4-11e4-bb90-705681abff85"], ["organization_id", "e703754e-bfc4-11e4-89f4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.824555"], ["updated_at", "2015-03-01 03:41:53.824555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e70222fc-bfc4-11e4-bdf5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e703754e-bfc4-11e4-89f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e70222fc-bfc4-11e4-bdf5-705681abff85"], ["organization_id", "e703754e-bfc4-11e4-89f4-705681abff85"], ["created_at", "2015-03-01 03:41:53.827828"], ["updated_at", "2015-03-01 03:41:53.827828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'e703754e-bfc4-11e4-89f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "e703754e-bfc4-11e4-89f4-705681abff85"], ["created_at", "2015-03-01 03:41:53.831199"], ["updated_at", "2015-03-01 03:41:53.831199"], ["token", "DmVj3t6L-k1LIghcv7C3jX95GQqfpgKV_yoMrGNVoz4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:53.836879' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "R22_cAVERlJAfv5fmajATFjU-HteLz81bE8tv7PfKHY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:53.838523"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:53.839662"], ["id", "e7028bc0-bfc4-11e4-8ad3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e70151ec-bfc4-11e4-bb90-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e70151ec-bfc4-11e4-bb90-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e70151ec-bfc4-11e4-bb90-705681abff85' LIMIT 1 [["organization_id", "e703754e-bfc4-11e4-89f4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e703754e-bfc4-11e4-89f4-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'e703754e-bfc4-11e4-89f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "e703754e-bfc4-11e4-89f4-705681abff85"], ["created_at", "2015-03-01 03:41:53.850886"], ["updated_at", "2015-03-01 03:41:53.850886"], ["token", "rnrmtFO3OWxn-_2Gw5TGkWk0epCGYkqGEgLbSb7K8w0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1a4f86b3-a5e5-4a22-a47e-4591dea74b1c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e7080bea-bfc4-11e4-9e08-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "e7080bea-bfc4-11e4-9e08-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1a4f86b3-a5e5-4a22-a47e-4591dea74b1c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e7080bea-bfc4-11e4-9e08-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [1a4f86b3-a5e5-4a22-a47e-4591dea74b1c] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e703754e-bfc4-11e4-89f4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1a4f86b3-a5e5-4a22-a47e-4591dea74b1c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [1a4f86b3-a5e5-4a22-a47e-4591dea74b1c] Clubhouse::Mailer#invitation: processed outbound mail in 3.7ms [ActiveJob] [ActionMailer::DeliveryJob] [1a4f86b3-a5e5-4a22-a47e-4591dea74b1c] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [1a4f86b3-a5e5-4a22-a47e-4591dea74b1c] Date: Sat, 28 Feb 2015 19:41:53 -0800 From: from@example.com To: email@example.com Message-ID: <54f28a81d1ff7_12e953fd8e8865be044394@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/rnrmtFO3OWxn-_2Gw5TGkWk0epCGYkqGEgLbSb7K8w0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [1a4f86b3-a5e5-4a22-a47e-4591dea74b1c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.32ms Completed 201 Created in 26ms (Views: 0.8ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$ilbvn9S4l7cAUOdSxTXlaehQ5hzH8MKnL8n1a/9XYT76qUdEDjxgG"], ["created_at", "2015-03-01 03:41:53.870851"], ["updated_at", "2015-03-01 03:41:53.870851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$uGemWqrAqsBUwZyVNX48CemP1BEoaWKwlYtDr2NfDU9EcbkWy6lbq"], ["created_at", "2015-03-01 03:41:53.875165"], ["updated_at", "2015-03-01 03:41:53.875165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.876740"], ["user_id", "e70b1308-bfc4-11e4-a5b8-705681abff85"], ["created_at", "2015-03-01 03:41:53.877559"], ["updated_at", "2015-03-01 03:41:53.877559"], ["token", "eUxjHpgUYw1vhd7pr222kcwCD6mei3en_aqsKUykG74"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.879376"], ["user_id", "e70bb826-bfc4-11e4-a7e1-705681abff85"], ["created_at", "2015-03-01 03:41:53.880053"], ["updated_at", "2015-03-01 03:41:53.880053"], ["token", "Dh4cCwyz7DDi72rs5578YYuh1AgoT0jgx31pbLy0GPo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.883348"], ["updated_at", "2015-03-01 03:41:53.883348"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e70b1308-bfc4-11e4-a5b8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e70cfab0-bfc4-11e4-8e64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e70b1308-bfc4-11e4-a5b8-705681abff85"], ["organization_id", "e70cfab0-bfc4-11e4-8e64-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.887665"], ["updated_at", "2015-03-01 03:41:53.887665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e70bb826-bfc4-11e4-a7e1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e70cfab0-bfc4-11e4-8e64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e70bb826-bfc4-11e4-a7e1-705681abff85"], ["organization_id", "e70cfab0-bfc4-11e4-8e64-705681abff85"], ["created_at", "2015-03-01 03:41:53.891117"], ["updated_at", "2015-03-01 03:41:53.891117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'e70cfab0-bfc4-11e4-8e64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "e70cfab0-bfc4-11e4-8e64-705681abff85"], ["created_at", "2015-03-01 03:41:53.895280"], ["updated_at", "2015-03-01 03:41:53.895280"], ["token", "4sxtD1nnTB8sOMtjrI98M8NUWj_sDwFRVYqjMZ7gyp0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/e70ed290-bfc4-11e4-84d0-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"e70ed290-bfc4-11e4-84d0-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:53.900459' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eUxjHpgUYw1vhd7pr222kcwCD6mei3en_aqsKUykG74"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:53.902599"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:53.904617"], ["id", "e70c246e-bfc4-11e4-942e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e70b1308-bfc4-11e4-a5b8-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e70b1308-bfc4-11e4-a5b8-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e70b1308-bfc4-11e4-a5b8-705681abff85' LIMIT 1 [["organization_id", "e70cfab0-bfc4-11e4-8e64-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "e70cfab0-bfc4-11e4-8e64-705681abff85"], ["id", "e70ed290-bfc4-11e4-84d0-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e70cfab0-bfc4-11e4-8e64-705681abff85"]] Completed 200 OK in 14ms (Views: 1.7ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$7kYSY/fm2JtNdlkFskupRetUyrpXI9cV7lnVJIYWziGy2m9ikK2eC"], ["created_at", "2015-03-01 03:41:53.920767"], ["updated_at", "2015-03-01 03:41:53.920767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$T07lyetzkL7CMArEGDiSBuFbTcXewHMK2TEmeMYl4ucUBBSub/YIy"], ["created_at", "2015-03-01 03:41:53.924954"], ["updated_at", "2015-03-01 03:41:53.924954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.926378"], ["user_id", "e712b270-bfc4-11e4-a351-705681abff85"], ["created_at", "2015-03-01 03:41:53.927144"], ["updated_at", "2015-03-01 03:41:53.927144"], ["token", "uxz_NU7a5dlDKElE2uzPmmsS-J7R8Y3EvCYvpgBJ9LE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.929041"], ["user_id", "e7135054-bfc4-11e4-b851-705681abff85"], ["created_at", "2015-03-01 03:41:53.930276"], ["updated_at", "2015-03-01 03:41:53.930276"], ["token", "Lb9NjQ1zuXAOAJZQ8DAlCw1s9YTUKUCGYWohB6f46QI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.935504"], ["updated_at", "2015-03-01 03:41:53.935504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e712b270-bfc4-11e4-a351-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e714f706-bfc4-11e4-9cdc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e712b270-bfc4-11e4-a351-705681abff85"], ["organization_id", "e714f706-bfc4-11e4-9cdc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.939186"], ["updated_at", "2015-03-01 03:41:53.939186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e7135054-bfc4-11e4-b851-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e714f706-bfc4-11e4-9cdc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e7135054-bfc4-11e4-b851-705681abff85"], ["organization_id", "e714f706-bfc4-11e4-9cdc-705681abff85"], ["created_at", "2015-03-01 03:41:53.942468"], ["updated_at", "2015-03-01 03:41:53.942468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'e714f706-bfc4-11e4-9cdc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "e714f706-bfc4-11e4-9cdc-705681abff85"], ["created_at", "2015-03-01 03:41:53.946221"], ["updated_at", "2015-03-01 03:41:53.946221"], ["token", "C7DzH9CX_rLzzCSaNqSdPQOe_mGhU9fTGOS2ObufRn0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$.35DQ/rhBFYsEt1ZiDNNfu9n1VFhwgFWxa8tUs6i8HpMNOjJE2IVu"], ["created_at", "2015-03-01 03:41:53.959684"], ["updated_at", "2015-03-01 03:41:53.959684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$LeIMnOAggGh3z6Q2xxSOXOu0kJabrObLcQZ0AOW3J.iwM/A5OkzyG"], ["created_at", "2015-03-01 03:41:53.964943"], ["updated_at", "2015-03-01 03:41:53.964943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.966541"], ["user_id", "e718a338-bfc4-11e4-a673-705681abff85"], ["created_at", "2015-03-01 03:41:53.967263"], ["updated_at", "2015-03-01 03:41:53.967263"], ["token", "kREJYGxXRnHf2dymtgcs_bezSQFeHLMOPctvzzBzHlg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:53.968867"], ["user_id", "e7196e58-bfc4-11e4-8f50-705681abff85"], ["created_at", "2015-03-01 03:41:53.969667"], ["updated_at", "2015-03-01 03:41:53.969667"], ["token", "FBfFEMOJxPxQ2alN3e0qz6RUtz0K9SSKux1We-5ycTk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:53.972807"], ["updated_at", "2015-03-01 03:41:53.972807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e718a338-bfc4-11e4-a673-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e71a9dfa-bfc4-11e4-94aa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e718a338-bfc4-11e4-a673-705681abff85"], ["organization_id", "e71a9dfa-bfc4-11e4-94aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:53.976112"], ["updated_at", "2015-03-01 03:41:53.976112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e7196e58-bfc4-11e4-8f50-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e71a9dfa-bfc4-11e4-94aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e7196e58-bfc4-11e4-8f50-705681abff85"], ["organization_id", "e71a9dfa-bfc4-11e4-94aa-705681abff85"], ["created_at", "2015-03-01 03:41:53.979650"], ["updated_at", "2015-03-01 03:41:53.979650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'e71a9dfa-bfc4-11e4-94aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "e71a9dfa-bfc4-11e4-94aa-705681abff85"], ["created_at", "2015-03-01 03:41:53.983053"], ["updated_at", "2015-03-01 03:41:53.983053"], ["token", "dZKB3lxu1gWA5VA3VEab52ru5s2s3D6uhIx0jSSvHdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/e71c3296-bfc4-11e4-b44d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:41:53 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"e71c3296-bfc4-11e4-b44d-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:41:53.988854' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kREJYGxXRnHf2dymtgcs_bezSQFeHLMOPctvzzBzHlg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:41:53.990296"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:41:53.991407"], ["id", "e719ccd6-bfc4-11e4-a9f1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e718a338-bfc4-11e4-a673-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e718a338-bfc4-11e4-a673-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e718a338-bfc4-11e4-a673-705681abff85' LIMIT 1 [["organization_id", "e71a9dfa-bfc4-11e4-94aa-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "e71a9dfa-bfc4-11e4-94aa-705681abff85"], ["id", "e71c3296-bfc4-11e4-b44d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e71a9dfa-bfc4-11e4-94aa-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."id" != 'e71c3296-bfc4-11e4-b44d-705681abff85' AND "clubhouse_invitations"."organization_id" = 'e71a9dfa-bfc4-11e4-94aa-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 03:41:54.002638"], ["id", "e71c3296-bfc4-11e4-b44d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.8ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$muf9p8yP4P/NkW1vGI2smuV12mCVmwbpJVYYd0MAnv2rBQglINLeG"], ["created_at", "2015-03-01 03:41:54.011756"], ["updated_at", "2015-03-01 03:41:54.011756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$d7Ff52WQcQQaPctecsgM..XAznKqIhJQ3gYArCFaN.b2OD9gAmVJW"], ["created_at", "2015-03-01 03:41:54.016874"], ["updated_at", "2015-03-01 03:41:54.016874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:54.018397"], ["user_id", "e720a5ba-bfc4-11e4-a9f9-705681abff85"], ["created_at", "2015-03-01 03:41:54.019130"], ["updated_at", "2015-03-01 03:41:54.019130"], ["token", "Er6NSWo9k1_mrCVu65_QMGbbZi2CJs1pW8xyp7BMlcU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:41:54.020916"], ["user_id", "e7215870-bfc4-11e4-b1d2-705681abff85"], ["created_at", "2015-03-01 03:41:54.021854"], ["updated_at", "2015-03-01 03:41:54.021854"], ["token", "24yeZxph5wMEWxjdZI2nohJvvgaXdvEq3j31MAag3jg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:41:54.025254"], ["updated_at", "2015-03-01 03:41:54.025254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e720a5ba-bfc4-11e4-a9f9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e7229f82-bfc4-11e4-a9d4-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e720a5ba-bfc4-11e4-a9f9-705681abff85"], ["organization_id", "e7229f82-bfc4-11e4-a9d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:41:54.028658"], ["updated_at", "2015-03-01 03:41:54.028658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e7215870-bfc4-11e4-b1d2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e7229f82-bfc4-11e4-a9d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e7215870-bfc4-11e4-b1d2-705681abff85"], ["organization_id", "e7229f82-bfc4-11e4-a9d4-705681abff85"], ["created_at", "2015-03-01 03:41:54.034099"], ["updated_at", "2015-03-01 03:41:54.034099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'e7229f82-bfc4-11e4-a9d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "e7229f82-bfc4-11e4-a9d4-705681abff85"], ["created_at", "2015-03-01 03:41:54.037507"], ["updated_at", "2015-03-01 03:41:54.037507"], ["token", "LmXxZg94GQ_X6paGXXtYOaKau9AU30Bjy66f7o9x-ho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:41:54 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (13.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$.pQb6nXgYfpAxm.iqkYKyeV4VmDTsJ7G.n73hTN8JB7sJCaXCXZV6"], ["created_at", "2015-03-01 03:45:04.386521"], ["updated_at", "2015-03-01 03:45:04.386521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$8TJo0FB0zm.xsBxY4OEOzODwvoaU5MBDMkcskCptAwrpmgexwZ2cm"], ["created_at", "2015-03-01 03:45:04.411484"], ["updated_at", "2015-03-01 03:45:04.411484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$BZNDk24Ng7vsPgwmf.Yfeu9C3wvUn74UkYrC.5hFGpFPCg5sL02YK"], ["created_at", "2015-03-01 03:45:04.420551"], ["updated_at", "2015-03-01 03:45:04.420551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$nnwbNqqboeVeiA66pisNXeHQi/KXf7aNL9br3j9HoffD6GO6jf3lC"], ["created_at", "2015-03-01 03:45:04.428430"], ["updated_at", "2015-03-01 03:45:04.428430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$MqKYtNwYbabS0SL12V7s1.ac4U.zNMk9gfORSwMukZVJC6IydNo8m"], ["created_at", "2015-03-01 03:45:04.436790"], ["updated_at", "2015-03-01 03:45:04.436790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$AW5XjvocIQlQ2G6Qlu1ik.DPYhyeVNrpoI.xFPTULDHwnAK0GRcta"], ["created_at", "2015-03-01 03:45:04.446611"], ["updated_at", "2015-03-01 03:45:04.446611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Auikp0AYWuENaK6/BapeWO3YwPYql/EaVc1x5Uw58TH4WsXR29vEy"], ["created_at", "2015-03-01 03:45:04.455183"], ["updated_at", "2015-03-01 03:45:04.455183"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$RXA99UzZXezWpA.Ht/PIW.0dCLp/IIb0FtQ9o8ycRh2thSuuWMomW"], ["created_at", "2015-03-01 03:45:04.463737"], ["updated_at", "2015-03-01 03:45:04.463737"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$FyOGK5G1PjhLRgqypSrVgun0pIwC5MNksfJl42G2PiBHgAQ6HNrTK"], ["created_at", "2015-03-01 03:45:04.472575"], ["updated_at", "2015-03-01 03:45:04.472575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$DoqXJ5MyKfte5f0Ae3UmVe6LawWODovmOpY3fBcsGSVbXp.cJYnRO"], ["created_at", "2015-03-01 03:45:04.515110"], ["updated_at", "2015-03-01 03:45:04.515110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$njf0zHVmLb8/5WWuuWiV5OV0i2cv9Vo1CDoxho3sdZMHN3NeiPHBy"], ["created_at", "2015-03-01 03:45:04.523773"], ["updated_at", "2015-03-01 03:45:04.523773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$unWr7BfNGsqAjevdd.RDZuP2U//ec9cybH0in3sFXWrVlgVw99Xam"], ["created_at", "2015-03-01 03:45:04.531804"], ["updated_at", "2015-03-01 03:45:04.531804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$APY5OcQNdYjpCO9zy24YxefMj2JUYqE9jSURJ406AuwVxSIFwFMka"], ["created_at", "2015-03-01 03:45:38.654307"], ["updated_at", "2015-03-01 03:45:38.654307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:38.664090"], ["user_id", "6d067db2-bfc5-11e4-b73e-705681abff85"], ["created_at", "2015-03-01 03:45:38.671409"], ["updated_at", "2015-03-01 03:45:38.671409"], ["token", "nDofG47gorNvTw5yrcQszFEsQmB7rwE6NstHYgSom2Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (6.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:38.682181"], ["updated_at", "2015-03-01 03:45:38.682181"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d067db2-bfc5-11e4-b73e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d0a9c8a-bfc5-11e4-b1f7-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d067db2-bfc5-11e4-b73e-705681abff85"], ["organization_id", "6d0a9c8a-bfc5-11e4-b1f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:38.734760"], ["updated_at", "2015-03-01 03:45:38.734760"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6d0a9c8a-bfc5-11e4-b1f7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "6d0a9c8a-bfc5-11e4-b1f7-705681abff85"], ["created_at", "2015-03-01 03:45:38.751965"], ["updated_at", "2015-03-01 03:45:38.751965"], ["token", "LKS0XSTf95hnw97XgsLuenHhDrBR9DbfdUFmPXJDmo0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:45:38 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$BAqmPzP1LFZ4VFDyIdWWNemPcmq7vy0g3k1hvVAGopCgVcbErDUmm"], ["created_at", "2015-03-01 03:45:38.785418"], ["updated_at", "2015-03-01 03:45:38.785418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:38.787591"], ["user_id", "6d1a61b0-bfc5-11e4-8c21-705681abff85"], ["created_at", "2015-03-01 03:45:38.788431"], ["updated_at", "2015-03-01 03:45:38.788431"], ["token", "GyaM14OYeu06jEsvGT1NLYBy5L5gEFmVfmpWyIHKCNM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:38.792121"], ["updated_at", "2015-03-01 03:45:38.792121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d1a61b0-bfc5-11e4-8c21-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d1b5fc0-bfc5-11e4-9d4d-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d1a61b0-bfc5-11e4-8c21-705681abff85"], ["organization_id", "6d1b5fc0-bfc5-11e4-9d4d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:38.796683"], ["updated_at", "2015-03-01 03:45:38.796683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '6d1b5fc0-bfc5-11e4-9d4d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "6d1b5fc0-bfc5-11e4-9d4d-705681abff85"], ["created_at", "2015-03-01 03:45:38.801256"], ["updated_at", "2015-03-01 03:45:38.801256"], ["token", "NAmsEwKp6r0Bv-mLXa12SmdKTgX7M9AtC6oMPPjqLGg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:45:38 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:45:38.808554' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GyaM14OYeu06jEsvGT1NLYBy5L5gEFmVfmpWyIHKCNM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:45:38.817501"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:45:38.819131"], ["id", "6d1ace48-bfc5-11e4-bbec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d1a61b0-bfc5-11e4-8c21-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6d1a61b0-bfc5-11e4-8c21-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d1a61b0-bfc5-11e4-8c21-705681abff85' LIMIT 1 [["organization_id", "6d1b5fc0-bfc5-11e4-9d4d-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6d1b5fc0-bfc5-11e4-9d4d-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '6d1b5fc0-bfc5-11e4-9d4d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 66ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$IzvHUjLSTUUgArjNPQDN2Om04/Xr7HTs32XffvXq6w4Q2dwiF4wie"], ["created_at", "2015-03-01 03:45:38.880468"], ["updated_at", "2015-03-01 03:45:38.880468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:38.882377"], ["user_id", "6d28d8e4-bfc5-11e4-b3d6-705681abff85"], ["created_at", "2015-03-01 03:45:38.883248"], ["updated_at", "2015-03-01 03:45:38.883248"], ["token", "lT8k2tXfXcAW1Mps6xswYL7MWF5hBXK3ELOGviHwB2I"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:38.899913"], ["updated_at", "2015-03-01 03:45:38.899913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d28d8e4-bfc5-11e4-b3d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d2bd3b4-bfc5-11e4-a6de-705681abff85') LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d28d8e4-bfc5-11e4-b3d6-705681abff85"], ["organization_id", "6d2bd3b4-bfc5-11e4-a6de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:38.908030"], ["updated_at", "2015-03-01 03:45:38.908030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '6d2bd3b4-bfc5-11e4-a6de-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "6d2bd3b4-bfc5-11e4-a6de-705681abff85"], ["created_at", "2015-03-01 03:45:38.917457"], ["updated_at", "2015-03-01 03:45:38.917457"], ["token", "kx-OM42gx1J4S_UkwxhccGCMVTbrJMgpv6CeAFg2H64"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:45:38 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:45:38.926807' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lT8k2tXfXcAW1Mps6xswYL7MWF5hBXK3ELOGviHwB2I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:45:38.928320"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:45:38.929300"], ["id", "6d2947ac-bfc5-11e4-af46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d28d8e4-bfc5-11e4-b3d6-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6d28d8e4-bfc5-11e4-b3d6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d28d8e4-bfc5-11e4-b3d6-705681abff85' LIMIT 1 [["organization_id", "6d2bd3b4-bfc5-11e4-a6de-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6d2bd3b4-bfc5-11e4-a6de-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6d2bd3b4-bfc5-11e4-a6de-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "6d2bd3b4-bfc5-11e4-a6de-705681abff85"], ["created_at", "2015-03-01 03:45:38.938728"], ["updated_at", "2015-03-01 03:45:38.938728"], ["token", "VvVev4O73UwPsxxxb6mr3WQSn2R-0GH1lUJU9JmyIB4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9f0ba5ed-0b46-4e73-b398-dbae08ff2c9f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6d31c602-bfc5-11e4-a5c8-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6d31c602-bfc5-11e4-a5c8-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9f0ba5ed-0b46-4e73-b398-dbae08ff2c9f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6d31c602-bfc5-11e4-a5c8-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9f0ba5ed-0b46-4e73-b398-dbae08ff2c9f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6d2bd3b4-bfc5-11e4-a6de-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9f0ba5ed-0b46-4e73-b398-dbae08ff2c9f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [9f0ba5ed-0b46-4e73-b398-dbae08ff2c9f] Clubhouse::Mailer#invitation: processed outbound mail in 244.6ms [ActiveJob] [ActionMailer::DeliveryJob] [9f0ba5ed-0b46-4e73-b398-dbae08ff2c9f] Sent mail to email@example.com (17.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [9f0ba5ed-0b46-4e73-b398-dbae08ff2c9f] Date: Sat, 28 Feb 2015 19:45:39 -0800 From: from@example.com To: email@example.com Message-ID: <54f28b633656f_12ebd3ff6f8c5fbf082354@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/VvVev4O73UwPsxxxb6mr3WQSn2R-0GH1lUJU9JmyIB4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9f0ba5ed-0b46-4e73-b398-dbae08ff2c9f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 262.35ms Completed 201 Created in 312ms (Views: 2.9ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$idtTlSTvJvzZc1hEyrNTSe7gcQr25pI7fHlLVOW1.Q6jWmjcZthb2"], ["created_at", "2015-03-01 03:45:39.246711"], ["updated_at", "2015-03-01 03:45:39.246711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:39.248337"], ["user_id", "6d60b30e-bfc5-11e4-b4c4-705681abff85"], ["created_at", "2015-03-01 03:45:39.249107"], ["updated_at", "2015-03-01 03:45:39.249107"], ["token", "Gzzxkjun_2FYjNfj6x9zjAPclk83_krTeVn3CrSgHmg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.252678"], ["updated_at", "2015-03-01 03:45:39.252678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d60b30e-bfc5-11e4-b4c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d619d78-bfc5-11e4-b47d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d60b30e-bfc5-11e4-b4c4-705681abff85"], ["organization_id", "6d619d78-bfc5-11e4-b47d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:39.256226"], ["updated_at", "2015-03-01 03:45:39.256226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '6d619d78-bfc5-11e4-b47d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "6d619d78-bfc5-11e4-b47d-705681abff85"], ["created_at", "2015-03-01 03:45:39.259910"], ["updated_at", "2015-03-01 03:45:39.259910"], ["token", "AHt4bGJfMRlX7MJu_4Ebr9mwg1WOCSHwBH5dkeMHOl4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:45:39 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:45:39.265543' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Gzzxkjun_2FYjNfj6x9zjAPclk83_krTeVn3CrSgHmg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:45:39.267143"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:45:39.268089"], ["id", "6d6116be-bfc5-11e4-8d23-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d60b30e-bfc5-11e4-b4c4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6d60b30e-bfc5-11e4-b4c4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d60b30e-bfc5-11e4-b4c4-705681abff85' LIMIT 1 [["organization_id", "6d619d78-bfc5-11e4-b47d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6d619d78-bfc5-11e4-b47d-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6d619d78-bfc5-11e4-b47d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "6d619d78-bfc5-11e4-b47d-705681abff85"], ["created_at", "2015-03-01 03:45:39.276904"], ["updated_at", "2015-03-01 03:45:39.276904"], ["token", "WtD9YtEqPXWIx1pr-cInABO8oq3JC8clG-QStUSu5Z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d6cd59e5-bcb9-4e70-9143-c559330cd0ee) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6d655e86-bfc5-11e4-b96a-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6d655e86-bfc5-11e4-b96a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d6cd59e5-bcb9-4e70-9143-c559330cd0ee] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6d655e86-bfc5-11e4-b96a-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d6cd59e5-bcb9-4e70-9143-c559330cd0ee] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6d619d78-bfc5-11e4-b47d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d6cd59e5-bcb9-4e70-9143-c559330cd0ee] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [d6cd59e5-bcb9-4e70-9143-c559330cd0ee] Clubhouse::Mailer#invitation: processed outbound mail in 52.6ms [ActiveJob] [ActionMailer::DeliveryJob] [d6cd59e5-bcb9-4e70-9143-c559330cd0ee] Sent mail to email@example.com (4.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [d6cd59e5-bcb9-4e70-9143-c559330cd0ee] Date: Sat, 28 Feb 2015 19:45:39 -0800 From: from@example.com To: email@example.com Message-ID: <54f28b6352007_12ebd3ff6f8c5fbf082496@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/WtD9YtEqPXWIx1pr-cInABO8oq3JC8clG-QStUSu5Z0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d6cd59e5-bcb9-4e70-9143-c559330cd0ee] Performed ActionMailer::DeliveryJob from Inline(mailers) in 57.68ms Completed 201 Created in 76ms (Views: 1.6ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$fn4n.oCuJStEALXLMJ5qZeQHBZKcLyijyo4IIX5sHVVgxMQZpllqG"], ["created_at", "2015-03-01 03:45:39.350358"], ["updated_at", "2015-03-01 03:45:39.350358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:39.352511"], ["user_id", "6d708798-bfc5-11e4-b0a5-705681abff85"], ["created_at", "2015-03-01 03:45:39.353298"], ["updated_at", "2015-03-01 03:45:39.353298"], ["token", "5N84KiCXqRSQ2ErN9QTJI84DhqMaHM5vjqA_olZwA34"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.359013"], ["updated_at", "2015-03-01 03:45:39.359013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d708798-bfc5-11e4-b0a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d71e5f2-bfc5-11e4-8002-705681abff85') LIMIT 1 SQL (8.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d708798-bfc5-11e4-b0a5-705681abff85"], ["organization_id", "6d71e5f2-bfc5-11e4-8002-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:39.363430"], ["updated_at", "2015-03-01 03:45:39.363430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '6d71e5f2-bfc5-11e4-8002-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "6d71e5f2-bfc5-11e4-8002-705681abff85"], ["created_at", "2015-03-01 03:45:39.375756"], ["updated_at", "2015-03-01 03:45:39.375756"], ["token", "oNNEeNZH2aU27h__EdF03NV-2djrPrjuRALB0b94rnw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/6d74696c-bfc5-11e4-a116-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:45:39 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"6d74696c-bfc5-11e4-a116-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:45:39.382382' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5N84KiCXqRSQ2ErN9QTJI84DhqMaHM5vjqA_olZwA34"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:45:39.384360"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:45:39.385476"], ["id", "6d710880-bfc5-11e4-b78e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d708798-bfc5-11e4-b0a5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6d708798-bfc5-11e4-b0a5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d708798-bfc5-11e4-b0a5-705681abff85' LIMIT 1 [["organization_id", "6d71e5f2-bfc5-11e4-8002-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "6d71e5f2-bfc5-11e4-8002-705681abff85"], ["id", "6d74696c-bfc5-11e4-a116-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6d74696c-bfc5-11e4-a116-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 18ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$/hixSOtRnXDM9WuQ3aPQ/.T6qdgMBZGUZL9732IWj.XKPFUBtltpO"], ["created_at", "2015-03-01 03:45:39.406360"], ["updated_at", "2015-03-01 03:45:39.406360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:39.408157"], ["user_id", "6d791354-bfc5-11e4-9553-705681abff85"], ["created_at", "2015-03-01 03:45:39.408926"], ["updated_at", "2015-03-01 03:45:39.408926"], ["token", "Oh5OMV_LX-fSU0IsIqbagXGYhthQW_MA_zC5Xd-NrEs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.412181"], ["updated_at", "2015-03-01 03:45:39.412181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d791354-bfc5-11e4-9553-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d79f666-bfc5-11e4-ba15-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d791354-bfc5-11e4-9553-705681abff85"], ["organization_id", "6d79f666-bfc5-11e4-ba15-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:39.415922"], ["updated_at", "2015-03-01 03:45:39.415922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '6d79f666-bfc5-11e4-ba15-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "6d79f666-bfc5-11e4-ba15-705681abff85"], ["created_at", "2015-03-01 03:45:39.419321"], ["updated_at", "2015-03-01 03:45:39.419321"], ["token", "Ueci8EDRoH3Y__eTld6DHFoPR5su1eKM1M5RGaJRsHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:45:39 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$5jnKBjsztZ1VQT.Psg6BmuUj4NcOiL7lYeYU06nR8oTu1MRNmZJkS"], ["created_at", "2015-03-01 03:45:39.432961"], ["updated_at", "2015-03-01 03:45:39.432961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:39.434641"], ["user_id", "6d7d1fd0-bfc5-11e4-999a-705681abff85"], ["created_at", "2015-03-01 03:45:39.435445"], ["updated_at", "2015-03-01 03:45:39.435445"], ["token", "LbnuYrUfpTZWcaEXA-nWQyLKA-PvzmnQTSUycvKDWTY"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.441011"], ["updated_at", "2015-03-01 03:45:39.441011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d7d1fd0-bfc5-11e4-999a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d7e5bca-bfc5-11e4-a1bc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d7d1fd0-bfc5-11e4-999a-705681abff85"], ["organization_id", "6d7e5bca-bfc5-11e4-a1bc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:39.445223"], ["updated_at", "2015-03-01 03:45:39.445223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '6d7e5bca-bfc5-11e4-a1bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "6d7e5bca-bfc5-11e4-a1bc-705681abff85"], ["created_at", "2015-03-01 03:45:39.449957"], ["updated_at", "2015-03-01 03:45:39.449957"], ["token", "hz52DX53iOEULNu7izb0lVbJnPlksq_qEDRlLfJWw44"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/6d7fbb28-bfc5-11e4-bf63-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:45:39 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"6d7fbb28-bfc5-11e4-bf63-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:45:39.455189' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LbnuYrUfpTZWcaEXA-nWQyLKA-PvzmnQTSUycvKDWTY"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:45:39.457144"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:45:39.458520"], ["id", "6d7d9140-bfc5-11e4-b3f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d7d1fd0-bfc5-11e4-999a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6d7d1fd0-bfc5-11e4-999a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d7d1fd0-bfc5-11e4-999a-705681abff85' LIMIT 1 [["organization_id", "6d7e5bca-bfc5-11e4-a1bc-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "6d7e5bca-bfc5-11e4-a1bc-705681abff85"], ["id", "6d7fbb28-bfc5-11e4-bf63-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6d7e5bca-bfc5-11e4-a1bc-705681abff85"]] Completed 200 OK in 12ms (Views: 1.4ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$PyeCQh034P9ZCLE1wsMv1u9mGtI0xMkLZLO6XSo13DLoQKdi6lVD."], ["created_at", "2015-03-01 03:45:39.473557"], ["updated_at", "2015-03-01 03:45:39.473557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:39.475308"], ["user_id", "6d8351a2-bfc5-11e4-9da4-705681abff85"], ["created_at", "2015-03-01 03:45:39.476093"], ["updated_at", "2015-03-01 03:45:39.476093"], ["token", "drSjvMhALCX0j8YF47_UYkjyTvmhsTHkYj8MSUpXMas"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.479456"], ["updated_at", "2015-03-01 03:45:39.479456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d8351a2-bfc5-11e4-9da4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d843496-bfc5-11e4-92d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d8351a2-bfc5-11e4-9da4-705681abff85"], ["organization_id", "6d843496-bfc5-11e4-92d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:39.482871"], ["updated_at", "2015-03-01 03:45:39.482871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '6d843496-bfc5-11e4-92d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "6d843496-bfc5-11e4-92d3-705681abff85"], ["created_at", "2015-03-01 03:45:39.486477"], ["updated_at", "2015-03-01 03:45:39.486477"], ["token", "tlY7GdntVuVWmH2Nf-iscFhlUwFp_An9a8dKCB4Ho5s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:45:39 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$7UM20rPX9F5JOyx9k3hNdO2gY29WXJ1RHjdWI89qDZQMmuh.wxIoC"], ["created_at", "2015-03-01 03:45:39.499463"], ["updated_at", "2015-03-01 03:45:39.499463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:39.501104"], ["user_id", "6d874686-bfc5-11e4-bd16-705681abff85"], ["created_at", "2015-03-01 03:45:39.501864"], ["updated_at", "2015-03-01 03:45:39.501864"], ["token", "vucWKeD9OosZazjDL1B5NVYLey6WmWPcMTovMs8f_zc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.505535"], ["updated_at", "2015-03-01 03:45:39.505535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d874686-bfc5-11e4-bd16-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d88365e-bfc5-11e4-a436-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d874686-bfc5-11e4-bd16-705681abff85"], ["organization_id", "6d88365e-bfc5-11e4-a436-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:39.509118"], ["updated_at", "2015-03-01 03:45:39.509118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '6d88365e-bfc5-11e4-a436-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "6d88365e-bfc5-11e4-a436-705681abff85"], ["created_at", "2015-03-01 03:45:39.513946"], ["updated_at", "2015-03-01 03:45:39.513946"], ["token", "T86eSB7VUA16LFkeXOhsWIhc3b0rylb0nFt2j7k0o78"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/6d89809a-bfc5-11e4-894a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:45:39 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"6d89809a-bfc5-11e4-894a-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:45:39.520153' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vucWKeD9OosZazjDL1B5NVYLey6WmWPcMTovMs8f_zc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:45:39.521632"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:45:39.522622"], ["id", "6d87a82e-bfc5-11e4-a432-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d874686-bfc5-11e4-bd16-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6d874686-bfc5-11e4-bd16-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d874686-bfc5-11e4-bd16-705681abff85' LIMIT 1 [["organization_id", "6d88365e-bfc5-11e4-a436-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "6d88365e-bfc5-11e4-a436-705681abff85"], ["id", "6d89809a-bfc5-11e4-894a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6d88365e-bfc5-11e4-a436-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."id" != '6d89809a-bfc5-11e4-894a-705681abff85' AND "clubhouse_invitations"."organization_id" = '6d88365e-bfc5-11e4-a436-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 03:45:39.533861"], ["id", "6d89809a-bfc5-11e4-894a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$PlMQWHu0Fjt4GlelYTM3zeI3SicNqTISsQMO6RzSFHkEQThIEMGFi"], ["created_at", "2015-03-01 03:45:39.542148"], ["updated_at", "2015-03-01 03:45:39.542148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:39.544165"], ["user_id", "6d8dcf88-bfc5-11e4-b963-705681abff85"], ["created_at", "2015-03-01 03:45:39.544985"], ["updated_at", "2015-03-01 03:45:39.544985"], ["token", "l-QWT4A7Kstex_SnH1S7O2Wnz1CaB6Qiz1TQ8CaevLk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.550864"], ["updated_at", "2015-03-01 03:45:39.550864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d8dcf88-bfc5-11e4-b963-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d8f36e8-bfc5-11e4-9b33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d8dcf88-bfc5-11e4-b963-705681abff85"], ["organization_id", "6d8f36e8-bfc5-11e4-9b33-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:39.555764"], ["updated_at", "2015-03-01 03:45:39.555764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '6d8f36e8-bfc5-11e4-9b33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "6d8f36e8-bfc5-11e4-9b33-705681abff85"], ["created_at", "2015-03-01 03:45:39.559754"], ["updated_at", "2015-03-01 03:45:39.559754"], ["token", "QSXlCT5yagAOvmD2Dl9qdj8OxhNXaMYaqclCSSHvJoQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:45:39 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$F8iJPjDcHbVA2OPt0l5g7.w4IbOF60sTDODW5WucCSYrzWUgt.tZ."], ["created_at", "2015-03-01 03:45:39.574711"], ["updated_at", "2015-03-01 03:45:39.574711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:39.576818"], ["user_id", "6d92cc90-bfc5-11e4-b2c3-705681abff85"], ["created_at", "2015-03-01 03:45:39.577765"], ["updated_at", "2015-03-01 03:45:39.577765"], ["token", "M4kiVWsiMM9tzpvp9CJ8iMQZYPSK0qFau7QFqmSqQyw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.585798"], ["updated_at", "2015-03-01 03:45:39.585798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d92cc90-bfc5-11e4-b2c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d948d14-bfc5-11e4-b39b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d92cc90-bfc5-11e4-b2c3-705681abff85"], ["organization_id", "6d948d14-bfc5-11e4-b39b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:39.597933"], ["updated_at", "2015-03-01 03:45:39.597933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '6d948d14-bfc5-11e4-b39b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "6d948d14-bfc5-11e4-b39b-705681abff85"], ["created_at", "2015-03-01 03:45:39.603165"], ["updated_at", "2015-03-01 03:45:39.603165"], ["token", "OWRZJz2iF5G1G5U18TQWLq0vykSjC58cRvgIB6z-50M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$mIsg/ZU4v2G.6a2DG4zsJO79B0.IfefMtyXTGKze1GM1AekP9AB6G"], ["created_at", "2015-03-01 03:45:39.607512"], ["updated_at", "2015-03-01 03:45:39.607512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.611211"], ["updated_at", "2015-03-01 03:45:39.611211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d97c7fe-bfc5-11e4-863d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d98549e-bfc5-11e4-ba55-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6d97c7fe-bfc5-11e4-863d-705681abff85"], ["organization_id", "6d98549e-bfc5-11e4-ba55-705681abff85"], ["created_at", "2015-03-01 03:45:39.615446"], ["updated_at", "2015-03-01 03:45:39.615446"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:45:39 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:45:39.622075' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M4kiVWsiMM9tzpvp9CJ8iMQZYPSK0qFau7QFqmSqQyw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:45:39.623554"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:45:39.624519"], ["id", "6d9347ba-bfc5-11e4-8f73-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d92cc90-bfc5-11e4-b2c3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6d92cc90-bfc5-11e4-b2c3-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d92cc90-bfc5-11e4-b2c3-705681abff85' LIMIT 1 [["organization_id", "6d948d14-bfc5-11e4-b39b-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "6d948d14-bfc5-11e4-b39b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6d948d14-bfc5-11e4-b39b-705681abff85"]] Completed 200 OK in 11ms (Views: 2.5ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$W6DfLr1rS8VeAJMB5KGdi.8gQ/NzdsSPIInjx9e5D4d8uzGfuz2M6"], ["created_at", "2015-03-01 03:45:39.639444"], ["updated_at", "2015-03-01 03:45:39.639444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:45:39.641332"], ["user_id", "6d9ca742-bfc5-11e4-80a5-705681abff85"], ["created_at", "2015-03-01 03:45:39.642153"], ["updated_at", "2015-03-01 03:45:39.642153"], ["token", "B89SIfmm-KsJBB83PoKG2OmpPKRcH6Sotp1Mmfk95WE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.646377"], ["updated_at", "2015-03-01 03:45:39.646377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d9ca742-bfc5-11e4-80a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d9dc24e-bfc5-11e4-b567-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d9ca742-bfc5-11e4-80a5-705681abff85"], ["organization_id", "6d9dc24e-bfc5-11e4-b567-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:45:39.652108"], ["updated_at", "2015-03-01 03:45:39.652108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '6d9dc24e-bfc5-11e4-b567-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "6d9dc24e-bfc5-11e4-b567-705681abff85"], ["created_at", "2015-03-01 03:45:39.656106"], ["updated_at", "2015-03-01 03:45:39.656106"], ["token", "Uk8qEtjZz4SW6lDzyJxK-xxrNwwenzFnaQrrw5QXdlg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$s.QWDjiQvlQpzG2hWYreq.snMe2LvZqgU7IP51ypHbIve6euPNxeS"], ["created_at", "2015-03-01 03:45:39.661261"], ["updated_at", "2015-03-01 03:45:39.661261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:45:39.664441"], ["updated_at", "2015-03-01 03:45:39.664441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d9ff8fc-bfc5-11e4-9198-705681abff85' AND "clubhouse_memberships"."organization_id" = '6da06e18-bfc5-11e4-af2a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6d9ff8fc-bfc5-11e4-9198-705681abff85"], ["organization_id", "6da06e18-bfc5-11e4-af2a-705681abff85"], ["created_at", "2015-03-01 03:45:39.667570"], ["updated_at", "2015-03-01 03:45:39.667570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:45:39 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (7.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (13.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$/Nv8crpxxArprh/ZJfTaoeY7ge9zDUOGfkxDuDu.r3ANroFbAgIMe"], ["created_at", "2015-03-01 03:54:21.725727"], ["updated_at", "2015-03-01 03:54:21.725727"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:21.750242"], ["user_id", "a4cdfa4e-bfc6-11e4-9e30-705681abff85"], ["created_at", "2015-03-01 03:54:21.762998"], ["updated_at", "2015-03-01 03:54:21.762998"], ["token", "7JQ6v1H6M1Jrvt-6rBpN98WlmVjIVOceX26jitI1AB0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:21.779465"], ["updated_at", "2015-03-01 03:54:21.779465"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4cdfa4e-bfc6-11e4-9e30-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4d4ea8e-bfc6-11e4-9778-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4cdfa4e-bfc6-11e4-9e30-705681abff85"], ["organization_id", "a4d4ea8e-bfc6-11e4-9778-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:21.824623"], ["updated_at", "2015-03-01 03:54:21.824623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a4d4ea8e-bfc6-11e4-9778-705681abff85') LIMIT 1 SQL (3.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a4d4ea8e-bfc6-11e4-9778-705681abff85"], ["created_at", "2015-03-01 03:54:21.837148"], ["updated_at", "2015-03-01 03:54:21.837148"], ["token", "5SJKj2JPwqgjnEMGfyuXDW0vKS3aHlm5_gUNVWXA8l8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 19:54:21 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$pqJKQoxYrKClbju789.5rufoleH9Kj6Jz80gYtVXWHzEvc6W9pg1m"], ["created_at", "2015-03-01 03:54:21.878014"], ["updated_at", "2015-03-01 03:54:21.878014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:21.879847"], ["user_id", "a4e3ed54-bfc6-11e4-af6e-705681abff85"], ["created_at", "2015-03-01 03:54:21.880776"], ["updated_at", "2015-03-01 03:54:21.880776"], ["token", "1aFScGSjMxGKryz5B5FRoyU64jI-Bc-DodGvvFXXeKk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:21.884174"], ["updated_at", "2015-03-01 03:54:21.884174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4e3ed54-bfc6-11e4-af6e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4e4d7d2-bfc6-11e4-80d4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4e3ed54-bfc6-11e4-af6e-705681abff85"], ["organization_id", "a4e4d7d2-bfc6-11e4-80d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:21.887685"], ["updated_at", "2015-03-01 03:54:21.887685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a4e4d7d2-bfc6-11e4-80d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a4e4d7d2-bfc6-11e4-80d4-705681abff85"], ["created_at", "2015-03-01 03:54:21.891548"], ["updated_at", "2015-03-01 03:54:21.891548"], ["token", "WGdsxvfHcVJjP37DYj5yD93wpRNtqAVsPzNbpovw1QU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/a4e5fcc0-bfc6-11e4-afd8-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:54:21 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"a4e5fcc0-bfc6-11e4-afd8-705681abff85", "invitation"=>{}} Pollett::Session Load (1.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:54:21.896695' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1aFScGSjMxGKryz5B5FRoyU64jI-Bc-DodGvvFXXeKk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:54:21.907642"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:54:21.909273"], ["id", "a4e45e9c-bfc6-11e4-92f4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a4e3ed54-bfc6-11e4-af6e-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a4e3ed54-bfc6-11e4-af6e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4e3ed54-bfc6-11e4-af6e-705681abff85' LIMIT 1 [["organization_id", "a4e4d7d2-bfc6-11e4-80d4-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "a4e4d7d2-bfc6-11e4-80d4-705681abff85"], ["id", "a4e5fcc0-bfc6-11e4-afd8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a4e4d7d2-bfc6-11e4-80d4-705681abff85"]] Completed 200 OK in 46ms (Views: 4.5ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$FV9ziyQ.LZ.6kcgs.q0XhOEb5eYhd/c3DYjzD5KA3BU/RtCfVE25O"], ["created_at", "2015-03-01 03:54:21.950793"], ["updated_at", "2015-03-01 03:54:21.950793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:21.952619"], ["user_id", "a4ef0ae0-bfc6-11e4-a03b-705681abff85"], ["created_at", "2015-03-01 03:54:21.953558"], ["updated_at", "2015-03-01 03:54:21.953558"], ["token", "_r2Kz4e-XqSLwSiL140-Ck-R4JB0MbzXDF4pH4xJitQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:21.957362"], ["updated_at", "2015-03-01 03:54:21.957362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4ef0ae0-bfc6-11e4-a03b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4f003a0-bfc6-11e4-ac3f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4ef0ae0-bfc6-11e4-a03b-705681abff85"], ["organization_id", "a4f003a0-bfc6-11e4-ac3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:21.960744"], ["updated_at", "2015-03-01 03:54:21.960744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a4f003a0-bfc6-11e4-ac3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a4f003a0-bfc6-11e4-ac3f-705681abff85"], ["created_at", "2015-03-01 03:54:21.964229"], ["updated_at", "2015-03-01 03:54:21.964229"], ["token", "BPF2dkGvRo6zdPDTdowh5gOrjRhTWaaSK41fk3ruk2c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$mfIDojF0d8vthJv2dn.j7eCAt/MhDmNNBbo6OdyN8bNm7SpYx7ODi"], ["created_at", "2015-03-01 03:54:21.969307"], ["updated_at", "2015-03-01 03:54:21.969307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:21.972372"], ["updated_at", "2015-03-01 03:54:21.972372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4f1d7e8-bfc6-11e4-8c3f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4f24cc8-bfc6-11e4-9a86-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4f1d7e8-bfc6-11e4-8c3f-705681abff85"], ["organization_id", "a4f24cc8-bfc6-11e4-9a86-705681abff85"], ["created_at", "2015-03-01 03:54:21.975697"], ["updated_at", "2015-03-01 03:54:21.975697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:54:21 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$/BYfRap7i9rLF8acnDYuoeijKynsxrvXh7MI09PXrZ125iVx31y3i"], ["created_at", "2015-03-01 03:54:21.989550"], ["updated_at", "2015-03-01 03:54:21.989550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:21.993480"], ["user_id", "a4f50530-bfc6-11e4-9f50-705681abff85"], ["created_at", "2015-03-01 03:54:21.994410"], ["updated_at", "2015-03-01 03:54:21.994410"], ["token", "YrMWT76CPJNkogl5p3TCMSs7iPoP5Jj7teHcdEl7e_U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:21.998301"], ["updated_at", "2015-03-01 03:54:21.998301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4f50530-bfc6-11e4-9f50-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4f64396-bfc6-11e4-8393-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4f50530-bfc6-11e4-9f50-705681abff85"], ["organization_id", "a4f64396-bfc6-11e4-8393-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:22.001710"], ["updated_at", "2015-03-01 03:54:22.001710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a4f64396-bfc6-11e4-8393-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a4f64396-bfc6-11e4-8393-705681abff85"], ["created_at", "2015-03-01 03:54:22.005447"], ["updated_at", "2015-03-01 03:54:22.005447"], ["token", "Mn51aEgbOewZDdbY0Fl9oIZg6NMHB719BRpGX5XV6nw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$gK5W3K69FPA3ohnwSWZRNOJMjyQH9bVZoswulozY9zTN5k2sPLZhm"], ["created_at", "2015-03-01 03:54:22.010615"], ["updated_at", "2015-03-01 03:54:22.010615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:22.015702"], ["updated_at", "2015-03-01 03:54:22.015702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4f82b2a-bfc6-11e4-a3f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4f8f4f6-bfc6-11e4-ae89-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4f82b2a-bfc6-11e4-a3f4-705681abff85"], ["organization_id", "a4f8f4f6-bfc6-11e4-ae89-705681abff85"], ["created_at", "2015-03-01 03:54:22.019554"], ["updated_at", "2015-03-01 03:54:22.019554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:54:22 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:54:22.025371' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YrMWT76CPJNkogl5p3TCMSs7iPoP5Jj7teHcdEl7e_U"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:54:22.027950"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:54:22.029913"], ["id", "a4f5b76e-bfc6-11e4-880b-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a4f50530-bfc6-11e4-9f50-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a4f50530-bfc6-11e4-9f50-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4f50530-bfc6-11e4-9f50-705681abff85' LIMIT 1 [["organization_id", "a4f64396-bfc6-11e4-8393-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "a4f64396-bfc6-11e4-8393-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a4f64396-bfc6-11e4-8393-705681abff85"]] Completed 200 OK in 15ms (Views: 3.1ms | ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$k/jJ.5Mf8hNa/kQBsDfUXesS00j37nKayo4MQj/m4CDtJ6aYMdjDS"], ["created_at", "2015-03-01 03:54:22.048516"], ["updated_at", "2015-03-01 03:54:22.048516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:22.050316"], ["user_id", "a4fdedf8-bfc6-11e4-9ad4-705681abff85"], ["created_at", "2015-03-01 03:54:22.051128"], ["updated_at", "2015-03-01 03:54:22.051128"], ["token", "Hy5cSNMEJ11cjJzSTYMi2jkBHYyHGZCXEpR3NtXuCD8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:22.058684"], ["updated_at", "2015-03-01 03:54:22.058684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4fdedf8-bfc6-11e4-9ad4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4ff7ae2-bfc6-11e4-a891-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4fdedf8-bfc6-11e4-9ad4-705681abff85"], ["organization_id", "a4ff7ae2-bfc6-11e4-a891-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:22.062287"], ["updated_at", "2015-03-01 03:54:22.062287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a4ff7ae2-bfc6-11e4-a891-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a4ff7ae2-bfc6-11e4-a891-705681abff85"], ["created_at", "2015-03-01 03:54:22.065990"], ["updated_at", "2015-03-01 03:54:22.065990"], ["token", "0k3uAcAl4wBHYvv8NSkWDFS005Sd3aP-7kTOPninG90"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:54:22 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$aXVTI2tdmBVFWTMVH8OHauttUvE8k5JtA/mhFigX9xV./fAxHPrVi"], ["created_at", "2015-03-01 03:54:22.082146"], ["updated_at", "2015-03-01 03:54:22.082146"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:22.084254"], ["user_id", "a50316d4-bfc6-11e4-881c-705681abff85"], ["created_at", "2015-03-01 03:54:22.085679"], ["updated_at", "2015-03-01 03:54:22.085679"], ["token", "cncQ7bGNntIOnXH6SPkwY4JBQ0_nhWX9GBXUYaLjUHw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:22.089574"], ["updated_at", "2015-03-01 03:54:22.089574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a50316d4-bfc6-11e4-881c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5043ac8-bfc6-11e4-b73c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a50316d4-bfc6-11e4-881c-705681abff85"], ["organization_id", "a5043ac8-bfc6-11e4-b73c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:22.094508"], ["updated_at", "2015-03-01 03:54:22.094508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a5043ac8-bfc6-11e4-b73c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a5043ac8-bfc6-11e4-b73c-705681abff85"], ["created_at", "2015-03-01 03:54:22.098627"], ["updated_at", "2015-03-01 03:54:22.098627"], ["token", "kLw_N84vVFsXL0fZQcV85Sb-765ca8s5hSMZNkmskCE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:54:22 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:54:22.104374' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cncQ7bGNntIOnXH6SPkwY4JBQ0_nhWX9GBXUYaLjUHw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:54:22.105846"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:54:22.106993"], ["id", "a503a6b2-bfc6-11e4-9e18-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a50316d4-bfc6-11e4-881c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a50316d4-bfc6-11e4-881c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a50316d4-bfc6-11e4-881c-705681abff85' LIMIT 1 [["organization_id", "a5043ac8-bfc6-11e4-b73c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a5043ac8-bfc6-11e4-b73c-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a5043ac8-bfc6-11e4-b73c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a5043ac8-bfc6-11e4-b73c-705681abff85"], ["created_at", "2015-03-01 03:54:22.117853"], ["updated_at", "2015-03-01 03:54:22.117853"], ["token", "yLSxRVM3clWbj1TSwJA2QbYVUKx_FCzuCW9pmkc14mY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 20045ec4-1e10-4de7-9811-7b046a51ef9f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a50890aa-bfc6-11e4-a78b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a50890aa-bfc6-11e4-a78b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [20045ec4-1e10-4de7-9811-7b046a51ef9f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a50890aa-bfc6-11e4-a78b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [20045ec4-1e10-4de7-9811-7b046a51ef9f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a5043ac8-bfc6-11e4-b73c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [20045ec4-1e10-4de7-9811-7b046a51ef9f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [20045ec4-1e10-4de7-9811-7b046a51ef9f] Clubhouse::Mailer#invitation: processed outbound mail in 305.2ms [ActiveJob] [ActionMailer::DeliveryJob] [20045ec4-1e10-4de7-9811-7b046a51ef9f] Sent mail to email@example.com (15.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [20045ec4-1e10-4de7-9811-7b046a51ef9f] Date: Sat, 28 Feb 2015 19:54:22 -0800 From: from@example.com To: email@example.com Message-ID: <54f28d6e7033a_12f1d3ffd36065be43563f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/yLSxRVM3clWbj1TSwJA2QbYVUKx_FCzuCW9pmkc14mY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [20045ec4-1e10-4de7-9811-7b046a51ef9f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 321.36ms Completed 201 Created in 368ms (Views: 1.0ms | ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Z9rxmM/RB9vBTLadp7LueeFm9pqc0AsBMpD8UGSM0ejIf3L2F6.Jq"], ["created_at", "2015-03-01 03:54:22.478064"], ["updated_at", "2015-03-01 03:54:22.478064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:22.479861"], ["user_id", "a53f78d6-bfc6-11e4-81c4-705681abff85"], ["created_at", "2015-03-01 03:54:22.480626"], ["updated_at", "2015-03-01 03:54:22.480626"], ["token", "dUR8SRRj5lsE0cjo_Ol2hpDzZlQeL-yRVoi5M_Hj89I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:22.483975"], ["updated_at", "2015-03-01 03:54:22.483975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a53f78d6-bfc6-11e4-81c4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5405a76-bfc6-11e4-868e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a53f78d6-bfc6-11e4-81c4-705681abff85"], ["organization_id", "a5405a76-bfc6-11e4-868e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:22.487152"], ["updated_at", "2015-03-01 03:54:22.487152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'a5405a76-bfc6-11e4-868e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "a5405a76-bfc6-11e4-868e-705681abff85"], ["created_at", "2015-03-01 03:54:22.490803"], ["updated_at", "2015-03-01 03:54:22.490803"], ["token", "NYwy0_Gh97hktXS2NQgBfyeVKdR7Q3N7lLS1N0k6ob4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:54:22 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:54:22.496629' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dUR8SRRj5lsE0cjo_Ol2hpDzZlQeL-yRVoi5M_Hj89I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:54:22.498091"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:54:22.499050"], ["id", "a53fe294-bfc6-11e4-84a8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a53f78d6-bfc6-11e4-81c4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a53f78d6-bfc6-11e4-81c4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a53f78d6-bfc6-11e4-81c4-705681abff85' LIMIT 1 [["organization_id", "a5405a76-bfc6-11e4-868e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a5405a76-bfc6-11e4-868e-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a5405a76-bfc6-11e4-868e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a5405a76-bfc6-11e4-868e-705681abff85"], ["created_at", "2015-03-01 03:54:22.507853"], ["updated_at", "2015-03-01 03:54:22.507853"], ["token", "jGdUkeaiXdcOdlU0dgyT5XoCF4f3TWiEUCwkCNDhz50"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7b02a31b-3712-4422-a7a5-43fa09f3c844) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a5441a76-bfc6-11e4-b67c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a5441a76-bfc6-11e4-b67c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [7b02a31b-3712-4422-a7a5-43fa09f3c844] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a5441a76-bfc6-11e4-b67c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [7b02a31b-3712-4422-a7a5-43fa09f3c844] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a5405a76-bfc6-11e4-868e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [7b02a31b-3712-4422-a7a5-43fa09f3c844] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [7b02a31b-3712-4422-a7a5-43fa09f3c844] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [7b02a31b-3712-4422-a7a5-43fa09f3c844] Sent mail to email@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [7b02a31b-3712-4422-a7a5-43fa09f3c844] Date: Sat, 28 Feb 2015 19:54:22 -0800 From: from@example.com To: email@example.com Message-ID: <54f28d6e7e112_12f1d3ffd36065be435766@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/jGdUkeaiXdcOdlU0dgyT5XoCF4f3TWiEUCwkCNDhz50 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [7b02a31b-3712-4422-a7a5-43fa09f3c844] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.02ms Completed 201 Created in 24ms (Views: 1.1ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$8RqX5nFitBJ.tBbSTsNL6u7aJAE8XT050gq82DVyWKxTv4tEhhDii"], ["created_at", "2015-03-01 03:54:22.528893"], ["updated_at", "2015-03-01 03:54:22.528893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:22.531462"], ["user_id", "a54742be-bfc6-11e4-be16-705681abff85"], ["created_at", "2015-03-01 03:54:22.532580"], ["updated_at", "2015-03-01 03:54:22.532580"], ["token", "_74S5czCfmDWjpIwEz6l8cWuicl_a_iVkolVux_4SjY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:22.536219"], ["updated_at", "2015-03-01 03:54:22.536219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a54742be-bfc6-11e4-be16-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5485686-bfc6-11e4-8e16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a54742be-bfc6-11e4-be16-705681abff85"], ["organization_id", "a5485686-bfc6-11e4-8e16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:22.540801"], ["updated_at", "2015-03-01 03:54:22.540801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'a5485686-bfc6-11e4-8e16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "a5485686-bfc6-11e4-8e16-705681abff85"], ["created_at", "2015-03-01 03:54:22.544446"], ["updated_at", "2015-03-01 03:54:22.544446"], ["token", "tSHMKOfMPLynHBfzOtXv_Qobfyj4Y002Xk-DdweIdkE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 19:54:22 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:54:22.552134' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_74S5czCfmDWjpIwEz6l8cWuicl_a_iVkolVux_4SjY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:54:22.553759"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:54:22.554815"], ["id", "a547d0e4-bfc6-11e4-b7ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a54742be-bfc6-11e4-be16-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a54742be-bfc6-11e4-be16-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a54742be-bfc6-11e4-be16-705681abff85' LIMIT 1 [["organization_id", "a5485686-bfc6-11e4-8e16-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a5485686-bfc6-11e4-8e16-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'a5485686-bfc6-11e4-8e16-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$9d0t9mHcgVK8w6IrXiaQAeJWeG/Tw78S4PjfJO0sw/8UK2igzc5aq"], ["created_at", "2015-03-01 03:54:22.575561"], ["updated_at", "2015-03-01 03:54:22.575561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:22.578081"], ["user_id", "a54e6116-bfc6-11e4-b213-705681abff85"], ["created_at", "2015-03-01 03:54:22.579238"], ["updated_at", "2015-03-01 03:54:22.579238"], ["token", "HqVS6Rc0crg9jVd0WNwbGpQ2lKwkZIhrPCxevKt7IbM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:22.582889"], ["updated_at", "2015-03-01 03:54:22.582889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a54e6116-bfc6-11e4-b213-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a54f7434-bfc6-11e4-a356-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a54e6116-bfc6-11e4-b213-705681abff85"], ["organization_id", "a54f7434-bfc6-11e4-a356-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:22.586504"], ["updated_at", "2015-03-01 03:54:22.586504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'a54f7434-bfc6-11e4-a356-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "a54f7434-bfc6-11e4-a356-705681abff85"], ["created_at", "2015-03-01 03:54:22.589892"], ["updated_at", "2015-03-01 03:54:22.589892"], ["token", "3xANsXD1SLt2X6vS-P5noNITATAcRXiSray_FjsEqus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:54:22 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$MQu4eAYImgCyfvQDA4Oy9.T9kAML7lgoMpiqDN8zL4/vgLBsg7Xxm"], ["created_at", "2015-03-01 03:54:22.602546"], ["updated_at", "2015-03-01 03:54:22.602546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:22.604219"], ["user_id", "a5527936-bfc6-11e4-a636-705681abff85"], ["created_at", "2015-03-01 03:54:22.605029"], ["updated_at", "2015-03-01 03:54:22.605029"], ["token", "QDSy7S1vp1aN3rsvyEJZnNOfaG_gD3QBeQbkntc8DoY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:22.608636"], ["updated_at", "2015-03-01 03:54:22.608636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5527936-bfc6-11e4-a636-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a55362d8-bfc6-11e4-92a0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5527936-bfc6-11e4-a636-705681abff85"], ["organization_id", "a55362d8-bfc6-11e4-92a0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:22.612165"], ["updated_at", "2015-03-01 03:54:22.612165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'a55362d8-bfc6-11e4-92a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "a55362d8-bfc6-11e4-92a0-705681abff85"], ["created_at", "2015-03-01 03:54:22.615938"], ["updated_at", "2015-03-01 03:54:22.615938"], ["token", "Zh8fNrGYb4jySZTKQO1H9vUmOTWm3uGZTqegb0sDOhg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/a554838e-bfc6-11e4-a988-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:54:22 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"a554838e-bfc6-11e4-a988-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:54:22.622184' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QDSy7S1vp1aN3rsvyEJZnNOfaG_gD3QBeQbkntc8DoY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:54:22.624008"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:54:22.625670"], ["id", "a552dd5e-bfc6-11e4-9ca6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5527936-bfc6-11e4-a636-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a5527936-bfc6-11e4-a636-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a5527936-bfc6-11e4-a636-705681abff85' LIMIT 1 [["organization_id", "a55362d8-bfc6-11e4-92a0-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "a55362d8-bfc6-11e4-92a0-705681abff85"], ["id", "a554838e-bfc6-11e4-a988-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a55362d8-bfc6-11e4-92a0-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."id" != 'a554838e-bfc6-11e4-a988-705681abff85' AND "clubhouse_invitations"."organization_id" = 'a55362d8-bfc6-11e4-92a0-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 03:54:22.638512"], ["id", "a554838e-bfc6-11e4-a988-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.0ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$9AD4dLEKPFXACa/ttBJKSuaYsIUfj2dA8pqWkZrxy6yCiLOgj6xvy"], ["created_at", "2015-03-01 03:54:22.647555"], ["updated_at", "2015-03-01 03:54:22.647555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:22.649299"], ["user_id", "a55955b2-bfc6-11e4-8702-705681abff85"], ["created_at", "2015-03-01 03:54:22.650065"], ["updated_at", "2015-03-01 03:54:22.650065"], ["token", "VFyCAtYPa3KhjXzts5hc3lwBEPBBqLe2hjPdLrHt5H0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:22.653494"], ["updated_at", "2015-03-01 03:54:22.653494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a55955b2-bfc6-11e4-8702-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a55a4314-bfc6-11e4-9181-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a55955b2-bfc6-11e4-8702-705681abff85"], ["organization_id", "a55a4314-bfc6-11e4-9181-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:22.657357"], ["updated_at", "2015-03-01 03:54:22.657357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'a55a4314-bfc6-11e4-9181-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "a55a4314-bfc6-11e4-9181-705681abff85"], ["created_at", "2015-03-01 03:54:22.661824"], ["updated_at", "2015-03-01 03:54:22.661824"], ["token", "8jTQdOil3rgOiGO5HxSmiOXkPaigwjlaK4HXVouFwNI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 19:54:22 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$lkDwUOzg3IQJzgBSrj761uXvpSmsunQuZNfQjazEMvZbSc.inLTCC"], ["created_at", "2015-03-01 03:54:22.675556"], ["updated_at", "2015-03-01 03:54:22.675556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:22.678121"], ["user_id", "a55daa68-bfc6-11e4-8a4c-705681abff85"], ["created_at", "2015-03-01 03:54:22.679282"], ["updated_at", "2015-03-01 03:54:22.679282"], ["token", "X0MTQqHDEKioxNyh2I4LIEWIeeUdX6YXKR5P5YQHQBY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:22.683792"], ["updated_at", "2015-03-01 03:54:22.683792"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a55daa68-bfc6-11e4-8a4c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a55f01ec-bfc6-11e4-bfe3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a55daa68-bfc6-11e4-8a4c-705681abff85"], ["organization_id", "a55f01ec-bfc6-11e4-bfe3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:22.690796"], ["updated_at", "2015-03-01 03:54:22.690796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'a55f01ec-bfc6-11e4-bfe3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "a55f01ec-bfc6-11e4-bfe3-705681abff85"], ["created_at", "2015-03-01 03:54:22.699900"], ["updated_at", "2015-03-01 03:54:22.699900"], ["token", "QA-ZtFyrkwRwXAE9qqjgHAEH5-tlXEVpiYJpoMk6klo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/a5617a76-bfc6-11e4-b29a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 19:54:22 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"a5617a76-bfc6-11e4-b29a-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:54:22.709491' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X0MTQqHDEKioxNyh2I4LIEWIeeUdX6YXKR5P5YQHQBY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:54:22.711264"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:54:22.712790"], ["id", "a55e3e06-bfc6-11e4-9573-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a55daa68-bfc6-11e4-8a4c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a55daa68-bfc6-11e4-8a4c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a55daa68-bfc6-11e4-8a4c-705681abff85' LIMIT 1 [["organization_id", "a55f01ec-bfc6-11e4-bfe3-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "a55f01ec-bfc6-11e4-bfe3-705681abff85"], ["id", "a5617a76-bfc6-11e4-b29a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a5617a76-bfc6-11e4-b29a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$z98V1XbLyXSLyQRMkIwrEO2IsesJNxTyFzBYmjembUVw/6aeIQcM2"], ["created_at", "2015-03-01 03:54:28.965195"], ["updated_at", "2015-03-01 03:54:28.965195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$iMXsgc1ROFoVA/yUdk7KAu0bZoatljv1p/neHwI6AqJut/aHSwfKC"], ["created_at", "2015-03-01 03:54:28.971686"], ["updated_at", "2015-03-01 03:54:28.971686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:28.980291"], ["user_id", "a91d7fca-bfc6-11e4-a5da-705681abff85"], ["created_at", "2015-03-01 03:54:28.986232"], ["updated_at", "2015-03-01 03:54:28.986232"], ["token", "7Cxctm9zntePj7NMaJZoCdEtzKw3lgeh9m26zPReIi0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:28.996012"], ["updated_at", "2015-03-01 03:54:28.996012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a91d7fca-bfc6-11e4-a5da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9221120-bfc6-11e4-8aa0-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a91d7fca-bfc6-11e4-a5da-705681abff85"], ["organization_id", "a9221120-bfc6-11e4-8aa0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:29.037770"], ["updated_at", "2015-03-01 03:54:29.037770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a91e5116-bfc6-11e4-badb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9221120-bfc6-11e4-8aa0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a91e5116-bfc6-11e4-badb-705681abff85"], ["organization_id", "a9221120-bfc6-11e4-8aa0-705681abff85"], ["created_at", "2015-03-01 03:54:29.041753"], ["updated_at", "2015-03-01 03:54:29.041753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 19:54:29 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$gBaGppbMqt7OCly5FioAeueKRyOJ.WvYwgpIh5hAG9Tq4fwUnk44i"], ["created_at", "2015-03-01 03:54:51.456193"], ["updated_at", "2015-03-01 03:54:51.456193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$46l68pjFZRQ0AE/ffeQ47OpnuJL5gwnnmbaFCbqiyHHS03gu4i55u"], ["created_at", "2015-03-01 03:54:51.462770"], ["updated_at", "2015-03-01 03:54:51.462770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:54:51.471923"], ["user_id", "b6856600-bfc6-11e4-acba-705681abff85"], ["created_at", "2015-03-01 03:54:51.479699"], ["updated_at", "2015-03-01 03:54:51.479699"], ["token", "hgBQFk0aYGWJkj7P5sshOedE1Uvls4WOmgyqLvDxCwY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:54:51.489447"], ["updated_at", "2015-03-01 03:54:51.489447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6856600-bfc6-11e4-acba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b68a4b70-bfc6-11e4-b966-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6856600-bfc6-11e4-acba-705681abff85"], ["organization_id", "b68a4b70-bfc6-11e4-b966-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:54:51.533470"], ["updated_at", "2015-03-01 03:54:51.533470"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6862f7c-bfc6-11e4-8816-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b68a4b70-bfc6-11e4-b966-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6862f7c-bfc6-11e4-8816-705681abff85"], ["organization_id", "b68a4b70-bfc6-11e4-b966-705681abff85"], ["created_at", "2015-03-01 03:54:51.539072"], ["updated_at", "2015-03-01 03:54:51.539072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 19:54:51 -0800  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$0t2hGcRIko3jrmkGDDjkBuxTbGfugWUtxGjEKcCKO0DuuYsCohpuq"], ["created_at", "2015-03-01 03:55:04.185343"], ["updated_at", "2015-03-01 03:55:04.185343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$4iOJU5Axz9ZpVu7YRnu..OGjk5QMZZUhShO40Sgv1bZ.hcygglmzG"], ["created_at", "2015-03-01 03:55:04.193175"], ["updated_at", "2015-03-01 03:55:04.193175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:55:04.201451"], ["user_id", "be1bdcaa-bfc6-11e4-b564-705681abff85"], ["created_at", "2015-03-01 03:55:04.207993"], ["updated_at", "2015-03-01 03:55:04.207993"], ["token", "Iryzj2H13z4rJAfnuppeCwSW0QPz6qj1ZWsrq7RpcLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:55:04.217553"], ["updated_at", "2015-03-01 03:55:04.217553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be1bdcaa-bfc6-11e4-b564-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be207292-bfc6-11e4-a37e-705681abff85') LIMIT 1 SQL (4.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be1bdcaa-bfc6-11e4-b564-705681abff85"], ["organization_id", "be207292-bfc6-11e4-a37e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:55:04.264395"], ["updated_at", "2015-03-01 03:55:04.264395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (23.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be1cb666-bfc6-11e4-8149-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be207292-bfc6-11e4-a37e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be1cb666-bfc6-11e4-8149-705681abff85"], ["organization_id", "be207292-bfc6-11e4-a37e-705681abff85"], ["created_at", "2015-03-01 03:55:04.300266"], ["updated_at", "2015-03-01 03:55:04.300266"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 19:55:04 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:55:04.342798' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Iryzj2H13z4rJAfnuppeCwSW0QPz6qj1ZWsrq7RpcLQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:55:04.350461"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:55:04.351692"], ["id", "be1f0b82-bfc6-11e4-b25b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 24ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$.HTBIszI9Ekz36eeEc2yNu8Upq4B6KZSVtquZNJnhe9WztOcE.HQO"], ["created_at", "2015-03-01 03:55:27.433054"], ["updated_at", "2015-03-01 03:55:27.433054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$qiPG4ui9Ictlw7wjehAb/eO7R33AJbBAawfcPobbDQI3ROXNn1yYe"], ["created_at", "2015-03-01 03:55:27.439106"], ["updated_at", "2015-03-01 03:55:27.439106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:55:27.448187"], ["user_id", "cbf6fdbe-bfc6-11e4-8a31-705681abff85"], ["created_at", "2015-03-01 03:55:27.453996"], ["updated_at", "2015-03-01 03:55:27.453996"], ["token", "YpkgD_mDWF0lK6GiDDZs43ozVO2vB9c7-ds2XScWXsc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:55:27.464885"], ["updated_at", "2015-03-01 03:55:27.464885"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbf6fdbe-bfc6-11e4-8a31-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbfbb46c-bfc6-11e4-ac2a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbf6fdbe-bfc6-11e4-8a31-705681abff85"], ["organization_id", "cbfbb46c-bfc6-11e4-ac2a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:55:27.512219"], ["updated_at", "2015-03-01 03:55:27.512219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbf7bf9c-bfc6-11e4-a043-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbfbb46c-bfc6-11e4-ac2a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbf7bf9c-bfc6-11e4-a043-705681abff85"], ["organization_id", "cbfbb46c-bfc6-11e4-ac2a-705681abff85"], ["created_at", "2015-03-01 03:55:27.516122"], ["updated_at", "2015-03-01 03:55:27.516122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 19:55:27 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:55:27.539134' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YpkgD_mDWF0lK6GiDDZs43ozVO2vB9c7-ds2XScWXsc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:55:27.546543"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:55:27.547684"], ["id", "cbfa1922-bfc6-11e4-9949-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbf6fdbe-bfc6-11e4-8a31-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "cbf6fdbe-bfc6-11e4-8a31-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cbfbb46c-bfc6-11e4-ac2a-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbf6fdbe-bfc6-11e4-8a31-705681abff85"]] Completed 200 OK in 32ms (Views: 7.8ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$fY/xYP7C/3o3sZgzmiR1feIldgbmvy5OqJKPge/psRhrdVEPR1Z.u"], ["created_at", "2015-03-01 03:55:44.372077"], ["updated_at", "2015-03-01 03:55:44.372077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$l5Kf9xbryaKoiQ9qM0PUMeczlYOSc2OCCthupGTgUugrIWp9TZXru"], ["created_at", "2015-03-01 03:55:44.378304"], ["updated_at", "2015-03-01 03:55:44.378304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:55:44.386881"], ["user_id", "d60fad6e-bfc6-11e4-9746-705681abff85"], ["created_at", "2015-03-01 03:55:44.393043"], ["updated_at", "2015-03-01 03:55:44.393043"], ["token", "q9JyXbeENWmjM4Qol_hLALK6yGW7NVz4NXjEKZ2fBSw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:55:44.403362"], ["updated_at", "2015-03-01 03:55:44.403362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd60fad6e-bfc6-11e4-9746-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd61450da-bfc6-11e4-90e3-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d60fad6e-bfc6-11e4-9746-705681abff85"], ["organization_id", "d61450da-bfc6-11e4-90e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:55:44.446960"], ["updated_at", "2015-03-01 03:55:44.446960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6107762-bfc6-11e4-bfcc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd61450da-bfc6-11e4-90e3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d6107762-bfc6-11e4-bfcc-705681abff85"], ["organization_id", "d61450da-bfc6-11e4-90e3-705681abff85"], ["created_at", "2015-03-01 03:55:44.450813"], ["updated_at", "2015-03-01 03:55:44.450813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 19:55:44 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:55:44.474005' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q9JyXbeENWmjM4Qol_hLALK6yGW7NVz4NXjEKZ2fBSw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:55:44.481218"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:55:44.482526"], ["id", "d612da20-bfc6-11e4-8896-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d60fad6e-bfc6-11e4-9746-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "d60fad6e-bfc6-11e4-9746-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d61450da-bfc6-11e4-90e3-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d60fad6e-bfc6-11e4-9746-705681abff85"]] Completed 200 OK in 38ms (Views: 8.4ms | ActiveRecord: 7.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$eIYcvYrb/kmStEeuO0tjQumd8lKfEBBHilQ4OH7veNXQF5eXJxEcW"], ["created_at", "2015-03-01 03:57:25.806635"], ["updated_at", "2015-03-01 03:57:25.806635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ADbl3nRFI5qIL/gZX0iytu7WvV1TehZLVzRp4LoBZlc31v7.fElgG"], ["created_at", "2015-03-01 03:57:25.812772"], ["updated_at", "2015-03-01 03:57:25.812772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:57:25.820933"], ["user_id", "128562fc-bfc7-11e4-9beb-705681abff85"], ["created_at", "2015-03-01 03:57:25.827068"], ["updated_at", "2015-03-01 03:57:25.827068"], ["token", "HSCqnezdXc5s89A68-ZZg-8MOhawBXNuQlJowSopa1Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:57:25.838776"], ["updated_at", "2015-03-01 03:57:25.838776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '128562fc-bfc7-11e4-9beb-705681abff85' AND "clubhouse_memberships"."organization_id" = '128a23fa-bfc7-11e4-97b7-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "128562fc-bfc7-11e4-9beb-705681abff85"], ["organization_id", "128a23fa-bfc7-11e4-97b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:57:25.851059"], ["updated_at", "2015-03-01 03:57:25.851059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12861f44-bfc7-11e4-b83c-705681abff85' AND "clubhouse_memberships"."organization_id" = '128a23fa-bfc7-11e4-97b7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "12861f44-bfc7-11e4-b83c-705681abff85"], ["organization_id", "128a23fa-bfc7-11e4-97b7-705681abff85"], ["created_at", "2015-03-01 03:57:25.855191"], ["updated_at", "2015-03-01 03:57:25.855191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 19:57:25 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:57:25.881569' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HSCqnezdXc5s89A68-ZZg-8MOhawBXNuQlJowSopa1Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:57:25.888989"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:57:25.890229"], ["id", "12886d30-bfc7-11e4-a6a9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "128562fc-bfc7-11e4-9beb-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "128562fc-bfc7-11e4-9beb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "128a23fa-bfc7-11e4-97b7-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "128562fc-bfc7-11e4-9beb-705681abff85"]] Completed 200 OK in 35ms (Views: 9.5ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$oyqAdgvRHJE3oE61MC04fe1MFOJWEe/7TaD4wTmGJKMST0USVzVL6"], ["created_at", "2015-03-01 03:57:25.924424"], ["updated_at", "2015-03-01 03:57:25.924424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$8PFzxdSI/jqa.D.uJ.eHTu93I77EuvryEceEdv1ZSf2rJZ58iaTJm"], ["created_at", "2015-03-01 03:57:25.929878"], ["updated_at", "2015-03-01 03:57:25.929878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:57:25.941493"], ["user_id", "1297311c-bfc7-11e4-913e-705681abff85"], ["created_at", "2015-03-01 03:57:25.942284"], ["updated_at", "2015-03-01 03:57:25.942284"], ["token", "p2Y2IZLCJeLnqTpMKFbx3QrXomNRPz85IABFQsCJnc0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:57:25.946815"], ["updated_at", "2015-03-01 03:57:25.946815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1297311c-bfc7-11e4-913e-705681abff85' AND "clubhouse_memberships"."organization_id" = '129a94b0-bfc7-11e4-8709-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1297311c-bfc7-11e4-913e-705681abff85"], ["organization_id", "129a94b0-bfc7-11e4-8709-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:57:25.950697"], ["updated_at", "2015-03-01 03:57:25.950697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12997fda-bfc7-11e4-a887-705681abff85' AND "clubhouse_memberships"."organization_id" = '129a94b0-bfc7-11e4-8709-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "12997fda-bfc7-11e4-a887-705681abff85"], ["organization_id", "129a94b0-bfc7-11e4-8709-705681abff85"], ["created_at", "2015-03-01 03:57:25.954539"], ["updated_at", "2015-03-01 03:57:25.954539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 19:57:25 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:57:25.959993' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p2Y2IZLCJeLnqTpMKFbx3QrXomNRPz85IABFQsCJnc0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:57:25.961611"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:57:25.962569"], ["id", "1299f2ee-bfc7-11e4-bbcc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1297311c-bfc7-11e4-913e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "1297311c-bfc7-11e4-913e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "129a94b0-bfc7-11e4-8709-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1297311c-bfc7-11e4-913e-705681abff85"]] Completed 200 OK in 9ms (Views: 3.2ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$KV1xpA6OAHX2ZCXpfhJLGui95JmoiD3rnEjtUGNXIJATt1qiKaneq"], ["created_at", "2015-03-01 03:57:33.082798"], ["updated_at", "2015-03-01 03:57:33.082798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (11.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$0juGwlBtZGe3ytUVnUqiN.1tV3OvvN0J8Yy4nYjIgOmvX8RE5RxiS"], ["created_at", "2015-03-01 03:57:33.089290"], ["updated_at", "2015-03-01 03:57:33.089290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:57:33.109496"], ["user_id", "16dba79e-bfc7-11e4-8c0b-705681abff85"], ["created_at", "2015-03-01 03:57:33.115349"], ["updated_at", "2015-03-01 03:57:33.115349"], ["token", "GHX6sQKjkvtvx4m98z7ZYTeW4t66cs5wMjDHs6sxaZ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:57:33.129930"], ["updated_at", "2015-03-01 03:57:33.129930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16dba79e-bfc7-11e4-8c0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '16e2b03e-bfc7-11e4-8848-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16dba79e-bfc7-11e4-8c0b-705681abff85"], ["organization_id", "16e2b03e-bfc7-11e4-8848-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:57:33.147905"], ["updated_at", "2015-03-01 03:57:33.147905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16dc6f3a-bfc7-11e4-aa9d-705681abff85' AND "clubhouse_memberships"."organization_id" = '16e2b03e-bfc7-11e4-8848-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16dc6f3a-bfc7-11e4-aa9d-705681abff85"], ["organization_id", "16e2b03e-bfc7-11e4-8848-705681abff85"], ["created_at", "2015-03-01 03:57:33.152465"], ["updated_at", "2015-03-01 03:57:33.152465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 19:57:33 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:57:33.179628' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GHX6sQKjkvtvx4m98z7ZYTeW4t66cs5wMjDHs6sxaZ4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:57:33.190126"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:57:33.191565"], ["id", "16e08bc4-bfc7-11e4-ab47-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16dba79e-bfc7-11e4-8c0b-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "16dba79e-bfc7-11e4-8c0b-705681abff85"], ["name", "org"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "16e2b03e-bfc7-11e4-8848-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16e2b03e-bfc7-11e4-8848-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16dba79e-bfc7-11e4-8c0b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16e2b03e-bfc7-11e4-8848-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16dc6f3a-bfc7-11e4-aa9d-705681abff85"]] Completed 200 OK in 60ms (Views: 21.9ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$AthSVxNFOIN5bgojqlsBM.SQOZGs8B4MQVDQ28u0f.3Ap..3YntlS"], ["created_at", "2015-03-01 03:57:33.250002"], ["updated_at", "2015-03-01 03:57:33.250002"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (5.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$E9Qaf8tfob0oPzrku0qWzu4pKyEI5fKSiuK38HnNoRmMI5ThJ0fty"], ["created_at", "2015-03-01 03:57:33.256119"], ["updated_at", "2015-03-01 03:57:33.256119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:57:33.263741"], ["user_id", "16f518be-bfc7-11e4-8253-705681abff85"], ["created_at", "2015-03-01 03:57:33.264631"], ["updated_at", "2015-03-01 03:57:33.264631"], ["token", "KkYs9_tdoQLTdBub1TajXeMxtdR1R9m1P060RSyd4Ro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (42.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:57:33.268147"], ["updated_at", "2015-03-01 03:57:33.268147"]]  (4.4ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16f518be-bfc7-11e4-8253-705681abff85' AND "clubhouse_memberships"."organization_id" = '16fcd41e-bfc7-11e4-a9ba-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16f518be-bfc7-11e4-8253-705681abff85"], ["organization_id", "16fcd41e-bfc7-11e4-a9ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:57:33.323642"], ["updated_at", "2015-03-01 03:57:33.323642"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16f5e5b4-bfc7-11e4-8a96-705681abff85' AND "clubhouse_memberships"."organization_id" = '16fcd41e-bfc7-11e4-a9ba-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16f5e5b4-bfc7-11e4-8a96-705681abff85"], ["organization_id", "16fcd41e-bfc7-11e4-a9ba-705681abff85"], ["created_at", "2015-03-01 03:57:33.330830"], ["updated_at", "2015-03-01 03:57:33.330830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 19:57:33 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:57:33.350230' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KkYs9_tdoQLTdBub1TajXeMxtdR1R9m1P060RSyd4Ro"]]  (1.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:57:33.352533"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:57:33.355616"], ["id", "16f73a72-bfc7-11e4-bc1d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16f518be-bfc7-11e4-8253-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "16f518be-bfc7-11e4-8253-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "16f518be-bfc7-11e4-8253-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16fcd41e-bfc7-11e4-a9ba-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16f518be-bfc7-11e4-8253-705681abff85"]] Completed 200 OK in 16ms (Views: 3.2ms | ActiveRecord: 3.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$nLH/Cs5L1IUJeyTZSckWvOqa0UBTVX9BOGR.t6MjSKHgsQOB8i1NK"], ["created_at", "2015-03-01 03:59:23.348077"], ["updated_at", "2015-03-01 03:59:23.348077"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$khqa9JNB9fwxXwhrLINM9.ck2Czu8uVZUg5iZsob2v5E.TpN/YQTO"], ["created_at", "2015-03-01 03:59:23.364798"], ["updated_at", "2015-03-01 03:59:23.364798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:23.373435"], ["user_id", "5894d3fe-bfc7-11e4-959e-705681abff85"], ["created_at", "2015-03-01 03:59:23.379706"], ["updated_at", "2015-03-01 03:59:23.379706"], ["token", "PuSRuTcRCLy41yRGa-8O__3CdeJCi2bbIOjp5pFOhrM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:23.389963"], ["updated_at", "2015-03-01 03:59:23.389963"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5894d3fe-bfc7-11e4-959e-705681abff85' AND "clubhouse_memberships"."organization_id" = '589b0670-bfc7-11e4-9b46-705681abff85') LIMIT 1 SQL (3.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5894d3fe-bfc7-11e4-959e-705681abff85"], ["organization_id", "589b0670-bfc7-11e4-9b46-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:23.435650"], ["updated_at", "2015-03-01 03:59:23.435650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58972776-bfc7-11e4-96fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '589b0670-bfc7-11e4-9b46-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58972776-bfc7-11e4-96fa-705681abff85"], ["organization_id", "589b0670-bfc7-11e4-9b46-705681abff85"], ["created_at", "2015-03-01 03:59:23.442704"], ["updated_at", "2015-03-01 03:59:23.442704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 19:59:23 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:59:23.467042' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PuSRuTcRCLy41yRGa-8O__3CdeJCi2bbIOjp5pFOhrM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:59:23.474393"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:59:23.475841"], ["id", "589984da-bfc7-11e4-91ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5894d3fe-bfc7-11e4-959e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5894d3fe-bfc7-11e4-959e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "5894d3fe-bfc7-11e4-959e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "589b0670-bfc7-11e4-9b46-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5894d3fe-bfc7-11e4-959e-705681abff85"]] Completed 200 OK in 42ms (Views: 11.1ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$8QH.nFpOGcA2.f9K2nrubejnyB0WB.sVK/EBv0fbsJh5zA.QMJaz2"], ["created_at", "2015-03-01 03:59:23.519434"], ["updated_at", "2015-03-01 03:59:23.519434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$zWCw5GPADQfzwGMmSUxtUuFhY3i/aRaOiBQHMavdPuwIO64Ip39DW"], ["created_at", "2015-03-01 03:59:23.524576"], ["updated_at", "2015-03-01 03:59:23.524576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:23.527286"], ["user_id", "58aec160-bfc7-11e4-a9e6-705681abff85"], ["created_at", "2015-03-01 03:59:23.528424"], ["updated_at", "2015-03-01 03:59:23.528424"], ["token", "AjCmkzbi4Q9FBXXtfNe4EacQ1uM0z-CE166QyXbGcy0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:23.532910"], ["updated_at", "2015-03-01 03:59:23.532910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58aec160-bfc7-11e4-a9e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b0d2f2-bfc7-11e4-96b1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58aec160-bfc7-11e4-a9e6-705681abff85"], ["organization_id", "58b0d2f2-bfc7-11e4-96b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:23.536984"], ["updated_at", "2015-03-01 03:59:23.536984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58af9c5c-bfc7-11e4-98a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b0d2f2-bfc7-11e4-96b1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58af9c5c-bfc7-11e4-98a0-705681abff85"], ["organization_id", "58b0d2f2-bfc7-11e4-96b1-705681abff85"], ["created_at", "2015-03-01 03:59:23.540548"], ["updated_at", "2015-03-01 03:59:23.540548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 19:59:23 -0800  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$kh/MnpKphwjg40PyLwQjiOVJWdo5bLCDArf1hYJRiZFA/IoZv9uFi"], ["created_at", "2015-03-01 03:59:23.551192"], ["updated_at", "2015-03-01 03:59:23.551192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$pjZsH/Adtp.s/6IEAHNOYecJ97MPuxiLm9HCLyJReoK2naAjsAhAC"], ["created_at", "2015-03-01 03:59:23.556155"], ["updated_at", "2015-03-01 03:59:23.556155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:23.557735"], ["user_id", "58b39e4c-bfc7-11e4-8012-705681abff85"], ["created_at", "2015-03-01 03:59:23.558571"], ["updated_at", "2015-03-01 03:59:23.558571"], ["token", "bNfw6BO9xjexcAHkcC3KfzcyY0SxGw0miSVOgT0mVb4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:23.562178"], ["updated_at", "2015-03-01 03:59:23.562178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b39e4c-bfc7-11e4-8012-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b541e8-bfc7-11e4-b264-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58b39e4c-bfc7-11e4-8012-705681abff85"], ["organization_id", "58b541e8-bfc7-11e4-b264-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:23.565807"], ["updated_at", "2015-03-01 03:59:23.565807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b45634-bfc7-11e4-9cb9-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b541e8-bfc7-11e4-b264-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58b45634-bfc7-11e4-9cb9-705681abff85"], ["organization_id", "58b541e8-bfc7-11e4-b264-705681abff85"], ["created_at", "2015-03-01 03:59:23.569240"], ["updated_at", "2015-03-01 03:59:23.569240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/58b5d194-bfc7-11e4-b22f-705681abff85" for 127.0.0.1 at 2015-02-28 19:59:23 -0800  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ytxJm4oJUnD/OzemN0f1Ye/bx5p1/T4Yqo6dTdlyetXeIkZu3epz2"], ["created_at", "2015-03-01 03:59:23.580324"], ["updated_at", "2015-03-01 03:59:23.580324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$5.WBzaNG.mrH6OuRa0y1S.WX5sv9mkWsuSZrXAikEt.1hfxq9Z3pi"], ["created_at", "2015-03-01 03:59:23.584960"], ["updated_at", "2015-03-01 03:59:23.584960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:23.586611"], ["user_id", "58b80da6-bfc7-11e4-986d-705681abff85"], ["created_at", "2015-03-01 03:59:23.587449"], ["updated_at", "2015-03-01 03:59:23.587449"], ["token", "ph5b604rXN2vHKCEm-PgXBFcvfp6POBVk1qu5Y7poCg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:23.591352"], ["updated_at", "2015-03-01 03:59:23.591352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b80da6-bfc7-11e4-986d-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b9bc8c-bfc7-11e4-a3ce-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58b80da6-bfc7-11e4-986d-705681abff85"], ["organization_id", "58b9bc8c-bfc7-11e4-a3ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:23.595807"], ["updated_at", "2015-03-01 03:59:23.595807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b8bc2e-bfc7-11e4-af1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b9bc8c-bfc7-11e4-a3ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58b8bc2e-bfc7-11e4-af1e-705681abff85"], ["organization_id", "58b9bc8c-bfc7-11e4-a3ce-705681abff85"], ["created_at", "2015-03-01 03:59:23.602009"], ["updated_at", "2015-03-01 03:59:23.602009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 19:59:23 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:59:23.607643' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ph5b604rXN2vHKCEm-PgXBFcvfp6POBVk1qu5Y7poCg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:59:23.609404"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:59:23.611099"], ["id", "58b92740-bfc7-11e4-b34b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "58b80da6-bfc7-11e4-986d-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "58b80da6-bfc7-11e4-986d-705681abff85"], ["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "58b9bc8c-bfc7-11e4-a3ce-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "58b9bc8c-bfc7-11e4-a3ce-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "58b80da6-bfc7-11e4-986d-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "58b9bc8c-bfc7-11e4-a3ce-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "58b8bc2e-bfc7-11e4-af1e-705681abff85"]] Completed 200 OK in 16ms (Views: 4.8ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$A0AVKlAyD/1o9/SF03O4muwpgGv9wfwvQ5acno34QZqAf0wrFfURa"], ["created_at", "2015-03-01 03:59:29.202323"], ["updated_at", "2015-03-01 03:59:29.202323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$sHhW1vLfHk9VXEsECgaZ5.sIQGAr2t2A0KS31aTQC96bRorPWiMuG"], ["created_at", "2015-03-01 03:59:29.208600"], ["updated_at", "2015-03-01 03:59:29.208600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:29.217326"], ["user_id", "5c120d62-bfc7-11e4-945b-705681abff85"], ["created_at", "2015-03-01 03:59:29.223828"], ["updated_at", "2015-03-01 03:59:29.223828"], ["token", "XWnAGM8goITrUSUomQnBppjH2GhBRdAvtCxoyiOWbsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:29.233626"], ["updated_at", "2015-03-01 03:59:29.233626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c120d62-bfc7-11e4-945b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c16dda6-bfc7-11e4-b850-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c120d62-bfc7-11e4-945b-705681abff85"], ["organization_id", "5c16dda6-bfc7-11e4-b850-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:29.298244"], ["updated_at", "2015-03-01 03:59:29.298244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c12d742-bfc7-11e4-88c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c16dda6-bfc7-11e4-b850-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c12d742-bfc7-11e4-88c2-705681abff85"], ["organization_id", "5c16dda6-bfc7-11e4-b850-705681abff85"], ["created_at", "2015-03-01 03:59:29.308086"], ["updated_at", "2015-03-01 03:59:29.308086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 19:59:29 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:59:29.335754' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XWnAGM8goITrUSUomQnBppjH2GhBRdAvtCxoyiOWbsA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:59:29.343326"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:59:29.344478"], ["id", "5c1540f4-bfc7-11e4-9581-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c120d62-bfc7-11e4-945b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c120d62-bfc7-11e4-945b-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "5c120d62-bfc7-11e4-945b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c16dda6-bfc7-11e4-b850-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c120d62-bfc7-11e4-945b-705681abff85"]] Completed 200 OK in 40ms (Views: 8.3ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$lN2m7Q3MgW1/.L4Q7hQ06eU1GatzPTG2OJlkbgdMc0hhvcGnpH83."], ["created_at", "2015-03-01 03:59:29.384382"], ["updated_at", "2015-03-01 03:59:29.384382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ArNvgOjMaO/Z.fb214T18eQdo2x4y4shyRFApdtyXG1O.X2VGeOfK"], ["created_at", "2015-03-01 03:59:29.389692"], ["updated_at", "2015-03-01 03:59:29.389692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:29.392138"], ["user_id", "5c2dacac-bfc7-11e4-9c17-705681abff85"], ["created_at", "2015-03-01 03:59:29.393031"], ["updated_at", "2015-03-01 03:59:29.393031"], ["token", "4efNbt9EmWkFJOVj7SNWcKztPGS6Mg9v3qRDCOqiE1k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:29.397080"], ["updated_at", "2015-03-01 03:59:29.397080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c2dacac-bfc7-11e4-9c17-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c2f9814-bfc7-11e4-895b-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c2dacac-bfc7-11e4-9c17-705681abff85"], ["organization_id", "5c2f9814-bfc7-11e4-895b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:29.400574"], ["updated_at", "2015-03-01 03:59:29.400574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c2e7d76-bfc7-11e4-a81c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c2f9814-bfc7-11e4-895b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c2e7d76-bfc7-11e4-a81c-705681abff85"], ["organization_id", "5c2f9814-bfc7-11e4-895b-705681abff85"], ["created_at", "2015-03-01 03:59:29.404737"], ["updated_at", "2015-03-01 03:59:29.404737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 19:59:29 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$ODzem5k9GW7SdOHkFoWpv.47lXnm.Kc7TvaV8PtH5B8cKU5Xg07ey"], ["created_at", "2015-03-01 03:59:29.432669"], ["updated_at", "2015-03-01 03:59:29.432669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$VIaS4qcn69.wls4gwHXpM.A1k0MTm71UAC8eNBlPDwG18OJ0MPb2C"], ["created_at", "2015-03-01 03:59:29.437596"], ["updated_at", "2015-03-01 03:59:29.437596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:29.439204"], ["user_id", "5c350a06-bfc7-11e4-b882-705681abff85"], ["created_at", "2015-03-01 03:59:29.440254"], ["updated_at", "2015-03-01 03:59:29.440254"], ["token", "jK9x8Ga6GK6IRgZNG0EB7r1Q4mBqGqf9ZjdqsYOlW4w"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:29.444203"], ["updated_at", "2015-03-01 03:59:29.444203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c350a06-bfc7-11e4-b882-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c36c9ae-bfc7-11e4-9651-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c350a06-bfc7-11e4-b882-705681abff85"], ["organization_id", "5c36c9ae-bfc7-11e4-9651-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:29.447656"], ["updated_at", "2015-03-01 03:59:29.447656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c35c824-bfc7-11e4-9e2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c36c9ae-bfc7-11e4-9651-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c35c824-bfc7-11e4-9e2a-705681abff85"], ["organization_id", "5c36c9ae-bfc7-11e4-9651-705681abff85"], ["created_at", "2015-03-01 03:59:29.450770"], ["updated_at", "2015-03-01 03:59:29.450770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/5c374ece-bfc7-11e4-9786-705681abff85" for 127.0.0.1 at 2015-02-28 19:59:29 -0800  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$OqzYq8mJRZ1bj6ZJioiFReOneHj9urBZnGQAWkPJ3UmQkpmA0Uu8C"], ["created_at", "2015-03-01 03:59:29.461301"], ["updated_at", "2015-03-01 03:59:29.461301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$1ddYFV6DdLbfomLtBQlHI.NZyyGPbCH9i9HBq1MCjcJ2bsaNAjDVi"], ["created_at", "2015-03-01 03:59:29.466329"], ["updated_at", "2015-03-01 03:59:29.466329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:29.468320"], ["user_id", "5c39697a-bfc7-11e4-9ee5-705681abff85"], ["created_at", "2015-03-01 03:59:29.469186"], ["updated_at", "2015-03-01 03:59:29.469186"], ["token", "9T5zlhs9bkfOHeqpkQUC9tWgL3jZ5SQ6UFne64ZAfFA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:29.472729"], ["updated_at", "2015-03-01 03:59:29.472729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c39697a-bfc7-11e4-9ee5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c3b29e0-bfc7-11e4-9396-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c39697a-bfc7-11e4-9ee5-705681abff85"], ["organization_id", "5c3b29e0-bfc7-11e4-9396-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:29.476602"], ["updated_at", "2015-03-01 03:59:29.476602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c3a2f18-bfc7-11e4-abe4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c3b29e0-bfc7-11e4-9396-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c3a2f18-bfc7-11e4-abe4-705681abff85"], ["organization_id", "5c3b29e0-bfc7-11e4-9396-705681abff85"], ["created_at", "2015-03-01 03:59:29.479982"], ["updated_at", "2015-03-01 03:59:29.479982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 19:59:29 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:59:29.485102' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9T5zlhs9bkfOHeqpkQUC9tWgL3jZ5SQ6UFne64ZAfFA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:59:29.486536"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:59:29.487501"], ["id", "5c3aa0e2-bfc7-11e4-9013-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c39697a-bfc7-11e4-9ee5-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c39697a-bfc7-11e4-9ee5-705681abff85"], ["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "5c3b29e0-bfc7-11e4-9396-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c3b29e0-bfc7-11e4-9396-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c39697a-bfc7-11e4-9ee5-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c3b29e0-bfc7-11e4-9396-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c3a2f18-bfc7-11e4-abe4-705681abff85"]] Completed 200 OK in 15ms (Views: 6.0ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$qwLUb.cTc.MT.ccyRr5h1.0e6SijtSomQvGYHaKQCFhWZ9a1hPmA."], ["created_at", "2015-03-01 03:59:52.612901"], ["updated_at", "2015-03-01 03:59:52.612901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (6.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$.xoQ8zNxIAfbG4udAGbYXOcdl00cT7m2WUuj8WTbFsgzhgbq7hpKi"], ["created_at", "2015-03-01 03:59:52.618928"], ["updated_at", "2015-03-01 03:59:52.618928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:52.634128"], ["user_id", "6a063dc6-bfc7-11e4-a853-705681abff85"], ["created_at", "2015-03-01 03:59:52.640593"], ["updated_at", "2015-03-01 03:59:52.640593"], ["token", "qE7PhsCmP2rEGUD7el1Xj0QzehUa_s3B2mqXmc5sbCk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:52.651573"], ["updated_at", "2015-03-01 03:59:52.651573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a063dc6-bfc7-11e4-a853-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a0bfd92-bfc7-11e4-8833-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a063dc6-bfc7-11e4-a853-705681abff85"], ["organization_id", "6a0bfd92-bfc7-11e4-8833-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:52.706507"], ["updated_at", "2015-03-01 03:59:52.706507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a06f72a-bfc7-11e4-ab06-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a0bfd92-bfc7-11e4-8833-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6a06f72a-bfc7-11e4-ab06-705681abff85"], ["organization_id", "6a0bfd92-bfc7-11e4-8833-705681abff85"], ["created_at", "2015-03-01 03:59:52.713191"], ["updated_at", "2015-03-01 03:59:52.713191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 19:59:52 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:59:52.746603' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qE7PhsCmP2rEGUD7el1Xj0QzehUa_s3B2mqXmc5sbCk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:59:52.753767"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:59:52.755215"], ["id", "6a0a7878-bfc7-11e4-91bb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6a063dc6-bfc7-11e4-a853-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6a063dc6-bfc7-11e4-a853-705681abff85"], ["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "6a0bfd92-bfc7-11e4-8833-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6a0bfd92-bfc7-11e4-8833-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6a063dc6-bfc7-11e4-a853-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6a0bfd92-bfc7-11e4-8833-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6a06f72a-bfc7-11e4-ab06-705681abff85"]] Completed 200 OK in 42ms (Views: 9.5ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$fZv9GcoPn3wuumHas4BtNO8c9NzqHxSFB7twOxvQareV3YF75zMt2"], ["created_at", "2015-03-01 03:59:52.798918"], ["updated_at", "2015-03-01 03:59:52.798918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$i5Hh94JdrAWi63umwPX50e.hSwaSQSKqlMD4P2E2dJXrrAs237jHq"], ["created_at", "2015-03-01 03:59:52.803715"], ["updated_at", "2015-03-01 03:59:52.803715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:52.805316"], ["user_id", "6a2271bc-bfc7-11e4-8baa-705681abff85"], ["created_at", "2015-03-01 03:59:52.806093"], ["updated_at", "2015-03-01 03:59:52.806093"], ["token", "NZ4AZ0DSww6qdVKU-4C63yOlVwVxA3WDHT8wCETKKSk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:52.809818"], ["updated_at", "2015-03-01 03:59:52.809818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a2271bc-bfc7-11e4-8baa-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a241c7e-bfc7-11e4-86ef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a2271bc-bfc7-11e4-8baa-705681abff85"], ["organization_id", "6a241c7e-bfc7-11e4-86ef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:52.813524"], ["updated_at", "2015-03-01 03:59:52.813524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a232a9e-bfc7-11e4-9f48-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a241c7e-bfc7-11e4-86ef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6a232a9e-bfc7-11e4-9f48-705681abff85"], ["organization_id", "6a241c7e-bfc7-11e4-86ef-705681abff85"], ["created_at", "2015-03-01 03:59:52.816740"], ["updated_at", "2015-03-01 03:59:52.816740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 19:59:52 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$REUh8hT.fd7LbW4YVUuaneN0EVzuhMhPNLoESFvPaS8BfGJu/iz8a"], ["created_at", "2015-03-01 03:59:52.830985"], ["updated_at", "2015-03-01 03:59:52.830985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$TavOd8lgwtKmRhZAQvgUPOqCk6wL14SeyanDqmSyhuFXRuJ3VetbW"], ["created_at", "2015-03-01 03:59:52.835431"], ["updated_at", "2015-03-01 03:59:52.835431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:52.837601"], ["user_id", "6a2757b8-bfc7-11e4-84ad-705681abff85"], ["created_at", "2015-03-01 03:59:52.838457"], ["updated_at", "2015-03-01 03:59:52.838457"], ["token", "uGY-hCjSae5ntK9CmLy1SL65oSLcAPqF_o7G2j0uIK0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:52.841971"], ["updated_at", "2015-03-01 03:59:52.841971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a2757b8-bfc7-11e4-84ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a290464-bfc7-11e4-a99f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a2757b8-bfc7-11e4-84ad-705681abff85"], ["organization_id", "6a290464-bfc7-11e4-a99f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:52.845568"], ["updated_at", "2015-03-01 03:59:52.845568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a28137e-bfc7-11e4-a3bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a290464-bfc7-11e4-a99f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6a28137e-bfc7-11e4-a3bc-705681abff85"], ["organization_id", "6a290464-bfc7-11e4-a99f-705681abff85"], ["created_at", "2015-03-01 03:59:52.849300"], ["updated_at", "2015-03-01 03:59:52.849300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/6a298b14-bfc7-11e4-a946-705681abff85" for 127.0.0.1 at 2015-02-28 19:59:52 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"6a298b14-bfc7-11e4-a946-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:59:52.854333' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uGY-hCjSae5ntK9CmLy1SL65oSLcAPqF_o7G2j0uIK0"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:59:52.855681"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:59:52.857527"], ["id", "6a287e0e-bfc7-11e4-977d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6a2757b8-bfc7-11e4-84ad-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "6a2757b8-bfc7-11e4-84ad-705681abff85"], ["id", "6a298b14-bfc7-11e4-a946-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6a290464-bfc7-11e4-a99f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6a2757b8-bfc7-11e4-84ad-705681abff85"]] Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$DNo05htLRq2DE2drc3Gr9OFOh3DAOFP2MQcPVcMqqkjrghuAqHHtO"], ["created_at", "2015-03-01 03:59:52.872330"], ["updated_at", "2015-03-01 03:59:52.872330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$RsfxnHm1im0JGiKjI7ba1eV2T8kHF.13XHS3TBwpong.88WQZ0d9u"], ["created_at", "2015-03-01 03:59:52.876939"], ["updated_at", "2015-03-01 03:59:52.876939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 03:59:52.878573"], ["user_id", "6a2da460-bfc7-11e4-9986-705681abff85"], ["created_at", "2015-03-01 03:59:52.879366"], ["updated_at", "2015-03-01 03:59:52.879366"], ["token", "JLM-BmdbM-ABrjLHDpTMraCS2tXw36EuKJ0Gs0iQU24"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 03:59:52.882836"], ["updated_at", "2015-03-01 03:59:52.882836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a2da460-bfc7-11e4-9986-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a2f3b40-bfc7-11e4-816c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a2da460-bfc7-11e4-9986-705681abff85"], ["organization_id", "6a2f3b40-bfc7-11e4-816c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 03:59:52.886272"], ["updated_at", "2015-03-01 03:59:52.886272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a2e570c-bfc7-11e4-81e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a2f3b40-bfc7-11e4-816c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6a2e570c-bfc7-11e4-81e9-705681abff85"], ["organization_id", "6a2f3b40-bfc7-11e4-816c-705681abff85"], ["created_at", "2015-03-01 03:59:52.889716"], ["updated_at", "2015-03-01 03:59:52.889716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 19:59:52 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 03:59:52.895546' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JLM-BmdbM-ABrjLHDpTMraCS2tXw36EuKJ0Gs0iQU24"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 03:59:52.897492"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 03:59:52.898788"], ["id", "6a2ebc6a-bfc7-11e4-b15c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6a2da460-bfc7-11e4-9986-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6a2da460-bfc7-11e4-9986-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "6a2da460-bfc7-11e4-9986-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6a2f3b40-bfc7-11e4-816c-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6a2da460-bfc7-11e4-9986-705681abff85"]] Completed 200 OK in 14ms (Views: 3.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ndp36RdPS73.k/CJFswEq.pu8W.A8m3Q.L.UJbRsLv/eIf7FwHtui"], ["created_at", "2015-03-01 04:02:09.668378"], ["updated_at", "2015-03-01 04:02:09.668378"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$FRpoIEU0aMwNmC/EebHLX.A0gkFrKP5FK9vkKi8ESSNz5ZtUV/2Vm"], ["created_at", "2015-03-01 04:02:09.675015"], ["updated_at", "2015-03-01 04:02:09.675015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:02:09.685554"], ["user_id", "bbb74372-bfc7-11e4-bc32-705681abff85"], ["created_at", "2015-03-01 04:02:09.691589"], ["updated_at", "2015-03-01 04:02:09.691589"], ["token", "TAX0CCPwewNmU-zk5VJmv_07emKxgSMCOF1-vluweGQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:02:09.700814"], ["updated_at", "2015-03-01 04:02:09.700814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbb74372-bfc7-11e4-bc32-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbbc0ad8-bfc7-11e4-adcd-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbb74372-bfc7-11e4-bc32-705681abff85"], ["organization_id", "bbbc0ad8-bfc7-11e4-adcd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:02:09.741533"], ["updated_at", "2015-03-01 04:02:09.741533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbb8114e-bfc7-11e4-962f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbbc0ad8-bfc7-11e4-adcd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbb8114e-bfc7-11e4-962f-705681abff85"], ["organization_id", "bbbc0ad8-bfc7-11e4-adcd-705681abff85"], ["created_at", "2015-03-01 04:02:09.745347"], ["updated_at", "2015-03-01 04:02:09.745347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:02:09 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:02:09.773252' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TAX0CCPwewNmU-zk5VJmv_07emKxgSMCOF1-vluweGQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:02:09.780645"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:02:09.781824"], ["id", "bbbab5d4-bfc7-11e4-9544-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbb74372-bfc7-11e4-bc32-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbb74372-bfc7-11e4-bc32-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbb74372-bfc7-11e4-bc32-705681abff85' LIMIT 1 [["organization_id", "bbbc0ad8-bfc7-11e4-adcd-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "bbbc0ad8-bfc7-11e4-adcd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbbc0ad8-bfc7-11e4-adcd-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbb74372-bfc7-11e4-bc32-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbbc0ad8-bfc7-11e4-adcd-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbb8114e-bfc7-11e4-962f-705681abff85"]] Completed 200 OK in 43ms (Views: 9.9ms | ActiveRecord: 2.6ms)  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$le4nwyc3ONHi4TRCHiqE3OGWEiSUy/x09C3JzPiIkBqC3.HZmZUYW"], ["created_at", "2015-03-01 04:02:09.831663"], ["updated_at", "2015-03-01 04:02:09.831663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$AvWpdkcWlBzy4R/8XnRHs.KPwXdDWLbRMZRPLRpq1gfF5BlxdmrcW"], ["created_at", "2015-03-01 04:02:09.836366"], ["updated_at", "2015-03-01 04:02:09.836366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:02:09.837962"], ["user_id", "bbd000ec-bfc7-11e4-9870-705681abff85"], ["created_at", "2015-03-01 04:02:09.838738"], ["updated_at", "2015-03-01 04:02:09.838738"], ["token", "bNSNd_pNXqIO4ozy2Rcq1gNkqlKKXXpsxJzDhFsvSYk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:02:09.843364"], ["updated_at", "2015-03-01 04:02:09.843364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd000ec-bfc7-11e4-9870-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbd1c6fc-bfc7-11e4-957e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbd000ec-bfc7-11e4-9870-705681abff85"], ["organization_id", "bbd1c6fc-bfc7-11e4-957e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:02:09.847074"], ["updated_at", "2015-03-01 04:02:09.847074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd0aee8-bfc7-11e4-af16-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbd1c6fc-bfc7-11e4-957e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbd0aee8-bfc7-11e4-af16-705681abff85"], ["organization_id", "bbd1c6fc-bfc7-11e4-957e-705681abff85"], ["created_at", "2015-03-01 04:02:09.850426"], ["updated_at", "2015-03-01 04:02:09.850426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:02:09 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$2PtLbQzKYetElTdij1r3JOrTxoxorUMQvy.9f3mnpNG8ElL8swqcu"], ["created_at", "2015-03-01 04:02:09.863967"], ["updated_at", "2015-03-01 04:02:09.863967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$J/7GE8e1NzJnTyov.dVHueo474C76myR/RN0yWphU..7MvA.8fOkG"], ["created_at", "2015-03-01 04:02:09.868789"], ["updated_at", "2015-03-01 04:02:09.868789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:02:09.870528"], ["user_id", "bbd4ec06-bfc7-11e4-951a-705681abff85"], ["created_at", "2015-03-01 04:02:09.871359"], ["updated_at", "2015-03-01 04:02:09.871359"], ["token", "WSfyNbPRjad9vywDey7uKmDbkTYNI7HBIRP58rG08Mo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:02:09.874918"], ["updated_at", "2015-03-01 04:02:09.874918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd4ec06-bfc7-11e4-951a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbd694c0-bfc7-11e4-a016-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbd4ec06-bfc7-11e4-951a-705681abff85"], ["organization_id", "bbd694c0-bfc7-11e4-a016-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:02:09.879317"], ["updated_at", "2015-03-01 04:02:09.879317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd5a542-bfc7-11e4-b716-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbd694c0-bfc7-11e4-a016-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbd5a542-bfc7-11e4-b716-705681abff85"], ["organization_id", "bbd694c0-bfc7-11e4-a016-705681abff85"], ["created_at", "2015-03-01 04:02:09.882746"], ["updated_at", "2015-03-01 04:02:09.882746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bbd73f1a-bfc7-11e4-ac6f-705681abff85" for 127.0.0.1 at 2015-02-28 20:02:09 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"bbd73f1a-bfc7-11e4-ac6f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:02:09.887971' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WSfyNbPRjad9vywDey7uKmDbkTYNI7HBIRP58rG08Mo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:02:09.889377"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:02:09.890360"], ["id", "bbd60e7e-bfc7-11e4-8eed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbd4ec06-bfc7-11e4-951a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbd4ec06-bfc7-11e4-951a-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$QJg/50KOwpVhlDv16k1K7.rNgqclmwo1.aZs0oMCnwCdJpALCv9ey"], ["created_at", "2015-03-01 04:02:09.900429"], ["updated_at", "2015-03-01 04:02:09.900429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$r0he2yJ7GPKg6JMRa9c4hetRDnxhADGtFnKejO9U4g4vNuX2YUePq"], ["created_at", "2015-03-01 04:02:09.904913"], ["updated_at", "2015-03-01 04:02:09.904913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:02:09.906430"], ["user_id", "bbda7e0a-bfc7-11e4-96dc-705681abff85"], ["created_at", "2015-03-01 04:02:09.907216"], ["updated_at", "2015-03-01 04:02:09.907216"], ["token", "Jx9RefpxCXgb-GbbfQyUeTTYxfr5ixWDLMhAwqyuRxE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:02:09.910709"], ["updated_at", "2015-03-01 04:02:09.910709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbda7e0a-bfc7-11e4-96dc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbdc0676-bfc7-11e4-a0d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbda7e0a-bfc7-11e4-96dc-705681abff85"], ["organization_id", "bbdc0676-bfc7-11e4-a0d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:02:09.916280"], ["updated_at", "2015-03-01 04:02:09.916280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbdb24cc-bfc7-11e4-a5f1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbdc0676-bfc7-11e4-a0d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbdb24cc-bfc7-11e4-a5f1-705681abff85"], ["organization_id", "bbdc0676-bfc7-11e4-a0d2-705681abff85"], ["created_at", "2015-03-01 04:02:09.919484"], ["updated_at", "2015-03-01 04:02:09.919484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:02:09 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:02:09.924691' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Jx9RefpxCXgb-GbbfQyUeTTYxfr5ixWDLMhAwqyuRxE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:02:09.926161"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:02:09.927257"], ["id", "bbdb87d2-bfc7-11e4-8211-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbda7e0a-bfc7-11e4-96dc-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbda7e0a-bfc7-11e4-96dc-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$o8kUDzoxpAuMi.H8dOiFXett6ufT110BpGJEumqkyg/sceQ8CaF0m"], ["created_at", "2015-03-01 04:02:19.896508"], ["updated_at", "2015-03-01 04:02:19.896508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$BG82jEKsaX0kgbBTLKnyjuRADxVL3Wb2C8dEtC4Pk9rZRZ1tQDcbW"], ["created_at", "2015-03-01 04:02:19.902687"], ["updated_at", "2015-03-01 04:02:19.902687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:02:19.912064"], ["user_id", "c1cff0ce-bfc7-11e4-962c-705681abff85"], ["created_at", "2015-03-01 04:02:19.917766"], ["updated_at", "2015-03-01 04:02:19.917766"], ["token", "L6GWwHGlIqMUq8Jn1T3vXLrWUEhga1CDegofjYtVH1s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:02:19.927635"], ["updated_at", "2015-03-01 04:02:19.927635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1cff0ce-bfc7-11e4-962c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1d48ddc-bfc7-11e4-ae2e-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c1cff0ce-bfc7-11e4-962c-705681abff85"], ["organization_id", "c1d48ddc-bfc7-11e4-ae2e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:02:19.968345"], ["updated_at", "2015-03-01 04:02:19.968345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1d0afc8-bfc7-11e4-b126-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1d48ddc-bfc7-11e4-ae2e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1d0afc8-bfc7-11e4-b126-705681abff85"], ["organization_id", "c1d48ddc-bfc7-11e4-ae2e-705681abff85"], ["created_at", "2015-03-01 04:02:19.972583"], ["updated_at", "2015-03-01 04:02:19.972583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:02:19 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$VpC8l1NBZ8jxR3wkpZlvUepD/3r2./j4gjKbaKZNdS/7FaSnfNAS."], ["created_at", "2015-03-01 04:02:20.004673"], ["updated_at", "2015-03-01 04:02:20.004673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$cEEPisJWgauwlbCGm8RsSuE7w2mVazpXnbg4zIc5KDU3fie4Ye.NO"], ["created_at", "2015-03-01 04:02:20.009557"], ["updated_at", "2015-03-01 04:02:20.009557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:02:20.011271"], ["user_id", "c1e03f9c-bfc7-11e4-a212-705681abff85"], ["created_at", "2015-03-01 04:02:20.012224"], ["updated_at", "2015-03-01 04:02:20.012224"], ["token", "DANkbpoy2cQYItHTPjIPsX3pM0KaR63PZfG6nTXa8zw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:02:20.016108"], ["updated_at", "2015-03-01 04:02:20.016108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1e03f9c-bfc7-11e4-a212-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1e1fda0-bfc7-11e4-9a27-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c1e03f9c-bfc7-11e4-a212-705681abff85"], ["organization_id", "c1e1fda0-bfc7-11e4-9a27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:02:20.019473"], ["updated_at", "2015-03-01 04:02:20.019473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1e0ffd6-bfc7-11e4-94a3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1e1fda0-bfc7-11e4-9a27-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1e0ffd6-bfc7-11e4-94a3-705681abff85"], ["organization_id", "c1e1fda0-bfc7-11e4-9a27-705681abff85"], ["created_at", "2015-03-01 04:02:20.022951"], ["updated_at", "2015-03-01 04:02:20.022951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/c1e2807c-bfc7-11e4-a2b3-705681abff85" for 127.0.0.1 at 2015-02-28 20:02:20 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"c1e2807c-bfc7-11e4-a2b3-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:02:20.027933' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DANkbpoy2cQYItHTPjIPsX3pM0KaR63PZfG6nTXa8zw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (19.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:02:20.035113"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:02:20.036611"], ["id", "c1e17574-bfc7-11e4-afb4-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1e03f9c-bfc7-11e4-a212-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c1e03f9c-bfc7-11e4-a212-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "c1e03f9c-bfc7-11e4-a212-705681abff85"], ["id", "c1e2807c-bfc7-11e4-a2b3-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c1e1fda0-bfc7-11e4-9a27-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1e03f9c-bfc7-11e4-a212-705681abff85"]] Completed 200 OK in 60ms (Views: 6.5ms | ActiveRecord: 21.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$L6Cq7tSAkqo3.Pzu2zEVleoPW.MN1.zFLepwts7z0wm0sHdDshcKC"], ["created_at", "2015-03-01 04:02:20.096153"], ["updated_at", "2015-03-01 04:02:20.096153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$43ouJ9FQuNuKkQVHirhK5.txc1w3v7cnjgpJ9oXpjXusv2ou4YOZm"], ["created_at", "2015-03-01 04:02:20.100956"], ["updated_at", "2015-03-01 04:02:20.100956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:02:20.102581"], ["user_id", "c1ee3b88-bfc7-11e4-b3ee-705681abff85"], ["created_at", "2015-03-01 04:02:20.103362"], ["updated_at", "2015-03-01 04:02:20.103362"], ["token", "BZgMWvSMyNpORRzKsrLk04uQbZ5ki-PzJZZ4a61EVA4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:02:20.106834"], ["updated_at", "2015-03-01 04:02:20.106834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1ee3b88-bfc7-11e4-b3ee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1efddb2-bfc7-11e4-b738-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c1ee3b88-bfc7-11e4-b3ee-705681abff85"], ["organization_id", "c1efddb2-bfc7-11e4-b738-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:02:20.110787"], ["updated_at", "2015-03-01 04:02:20.110787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1eeefc4-bfc7-11e4-acc4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1efddb2-bfc7-11e4-b738-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1eeefc4-bfc7-11e4-acc4-705681abff85"], ["organization_id", "c1efddb2-bfc7-11e4-b738-705681abff85"], ["created_at", "2015-03-01 04:02:20.114583"], ["updated_at", "2015-03-01 04:02:20.114583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:02:20 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:02:20.119826' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BZgMWvSMyNpORRzKsrLk04uQbZ5ki-PzJZZ4a61EVA4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:02:20.121350"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:02:20.122345"], ["id", "c1ef54a0-bfc7-11e4-bd34-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1ee3b88-bfc7-11e4-b3ee-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c1ee3b88-bfc7-11e4-b3ee-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c1ee3b88-bfc7-11e4-b3ee-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c1ee3b88-bfc7-11e4-b3ee-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c1efddb2-bfc7-11e4-b738-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1ee3b88-bfc7-11e4-b3ee-705681abff85"]] Completed 200 OK in 13ms (Views: 3.9ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$zAfF1DuDoFoW.hgAfMhJQ.m.KXlSnqEkAxTMOfrATRE7drLoGgnEW"], ["created_at", "2015-03-01 04:02:20.138492"], ["updated_at", "2015-03-01 04:02:20.138492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$0JOVLjRmRPOICU88smqhiu0lg71.8rSwxqvmD7cqiiIbrlIEkKHV."], ["created_at", "2015-03-01 04:02:20.142940"], ["updated_at", "2015-03-01 04:02:20.142940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:02:20.144837"], ["user_id", "c1f4ac48-bfc7-11e4-b2c4-705681abff85"], ["created_at", "2015-03-01 04:02:20.145670"], ["updated_at", "2015-03-01 04:02:20.145670"], ["token", "8GdGmqWqM2pHZD4qfFdmsqKl75IFA35Vaq2EUkgWVOI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:02:20.149454"], ["updated_at", "2015-03-01 04:02:20.149454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1f4ac48-bfc7-11e4-b2c4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1f658ea-bfc7-11e4-b05d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c1f4ac48-bfc7-11e4-b2c4-705681abff85"], ["organization_id", "c1f658ea-bfc7-11e4-b05d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:02:20.153253"], ["updated_at", "2015-03-01 04:02:20.153253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1f55fd0-bfc7-11e4-a610-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c1f658ea-bfc7-11e4-b05d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1f55fd0-bfc7-11e4-a610-705681abff85"], ["organization_id", "c1f658ea-bfc7-11e4-b05d-705681abff85"], ["created_at", "2015-03-01 04:02:20.156431"], ["updated_at", "2015-03-01 04:02:20.156431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:02:20 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:02:20.161690' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8GdGmqWqM2pHZD4qfFdmsqKl75IFA35Vaq2EUkgWVOI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:02:20.163104"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:02:20.164279"], ["id", "c1f5ccd6-bfc7-11e4-a654-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1f4ac48-bfc7-11e4-b2c4-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c1f4ac48-bfc7-11e4-b2c4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c1f4ac48-bfc7-11e4-b2c4-705681abff85' LIMIT 1 [["organization_id", "c1f658ea-bfc7-11e4-b05d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "c1f658ea-bfc7-11e4-b05d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c1f658ea-bfc7-11e4-b05d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1f4ac48-bfc7-11e4-b2c4-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c1f658ea-bfc7-11e4-b05d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1f55fd0-bfc7-11e4-a610-705681abff85"]] Completed 200 OK in 19ms (Views: 5.2ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (12.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$MTheNSB2uc/QNbr/tXykfeJVShwA9EM5iWpEUyrIY.v9xdiJ8Vemm"], ["created_at", "2015-03-01 04:03:46.733329"], ["updated_at", "2015-03-01 04:03:46.733329"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$XaD86WjxuWZy6TVVN6LZd.e4V7UXCMXeSBxI/f86PBwMSApgiyv7a"], ["created_at", "2015-03-01 04:03:46.751582"], ["updated_at", "2015-03-01 04:03:46.751582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:03:46.759806"], ["user_id", "f5922bfc-bfc7-11e4-93c9-705681abff85"], ["created_at", "2015-03-01 04:03:46.766268"], ["updated_at", "2015-03-01 04:03:46.766268"], ["token", "NXU1motu0ygeK6kBoFtmLyDbegTFgPfVKkV4rMwmXs4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:03:46.775972"], ["updated_at", "2015-03-01 04:03:46.775972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5922bfc-bfc7-11e4-93c9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f59889ca-bfc7-11e4-aaa4-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5922bfc-bfc7-11e4-93c9-705681abff85"], ["organization_id", "f59889ca-bfc7-11e4-aaa4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:03:46.819548"], ["updated_at", "2015-03-01 04:03:46.819548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f594caa6-bfc7-11e4-a220-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f59889ca-bfc7-11e4-aaa4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f594caa6-bfc7-11e4-a220-705681abff85"], ["organization_id", "f59889ca-bfc7-11e4-aaa4-705681abff85"], ["created_at", "2015-03-01 04:03:46.823654"], ["updated_at", "2015-03-01 04:03:46.823654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/f59f3004-bfc7-11e4-bc6d-705681abff85" for 127.0.0.1 at 2015-02-28 20:03:46 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"f59f3004-bfc7-11e4-bc6d-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:03:46.849891' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NXU1motu0ygeK6kBoFtmLyDbegTFgPfVKkV4rMwmXs4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:03:46.857873"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:03:46.859148"], ["id", "f5971c34-bfc7-11e4-8cc7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5922bfc-bfc7-11e4-93c9-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "f5922bfc-bfc7-11e4-93c9-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "f5922bfc-bfc7-11e4-93c9-705681abff85"], ["id", "f59f3004-bfc7-11e4-bc6d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f59889ca-bfc7-11e4-aaa4-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5922bfc-bfc7-11e4-93c9-705681abff85"]] Completed 200 OK in 38ms (Views: 6.8ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$X6oYuPN0tZf5ODnblOB.2.IYf.P5TtwL.NZnxgSyV3BkqT2AiIGGO"], ["created_at", "2015-03-01 04:03:46.896809"], ["updated_at", "2015-03-01 04:03:46.896809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$SucXakqPB9VZ3iqnmFUQ9emxPo3S.REqmPvhNOZmLfryMztSFVOCO"], ["created_at", "2015-03-01 04:03:46.901510"], ["updated_at", "2015-03-01 04:03:46.901510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:03:46.903159"], ["user_id", "f5aaf420-bfc7-11e4-acc6-705681abff85"], ["created_at", "2015-03-01 04:03:46.903985"], ["updated_at", "2015-03-01 04:03:46.903985"], ["token", "6IixrsE8tMmA42EgTBIzR7ksgIK5uyQvnGz7jG2DCEU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:03:46.908131"], ["updated_at", "2015-03-01 04:03:46.908131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5aaf420-bfc7-11e4-acc6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f5acb116-bfc7-11e4-8911-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5aaf420-bfc7-11e4-acc6-705681abff85"], ["organization_id", "f5acb116-bfc7-11e4-8911-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:03:46.913213"], ["updated_at", "2015-03-01 04:03:46.913213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5aba73a-bfc7-11e4-a8c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f5acb116-bfc7-11e4-8911-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5aba73a-bfc7-11e4-a8c2-705681abff85"], ["organization_id", "f5acb116-bfc7-11e4-8911-705681abff85"], ["created_at", "2015-03-01 04:03:46.916943"], ["updated_at", "2015-03-01 04:03:46.916943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:03:46 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$sWjpGz3h0P6ljf5MSNUP4OAy6CTB.Qp2zqeHd4ff4CuLzcoy2w8Ne"], ["created_at", "2015-03-01 04:03:46.931814"], ["updated_at", "2015-03-01 04:03:46.931814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$OSomBSe3URTmpiGuFHDrK.TBBHn/invO6Ta.DeGM3IAH3fqp9Iqk6"], ["created_at", "2015-03-01 04:03:46.936457"], ["updated_at", "2015-03-01 04:03:46.936457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:03:46.938183"], ["user_id", "f5b04c0e-bfc7-11e4-aa53-705681abff85"], ["created_at", "2015-03-01 04:03:46.939036"], ["updated_at", "2015-03-01 04:03:46.939036"], ["token", "OTXi1sZWebovltoJEgLJ-dlVvDoQ4-3Yt0soBG-YDic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:03:46.942492"], ["updated_at", "2015-03-01 04:03:46.942492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5b04c0e-bfc7-11e4-aa53-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f5b1f32e-bfc7-11e4-81be-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5b04c0e-bfc7-11e4-aa53-705681abff85"], ["organization_id", "f5b1f32e-bfc7-11e4-81be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:03:46.946319"], ["updated_at", "2015-03-01 04:03:46.946319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5b0fbf4-bfc7-11e4-aab4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f5b1f32e-bfc7-11e4-81be-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5b0fbf4-bfc7-11e4-aab4-705681abff85"], ["organization_id", "f5b1f32e-bfc7-11e4-81be-705681abff85"], ["created_at", "2015-03-01 04:03:46.949862"], ["updated_at", "2015-03-01 04:03:46.949862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:03:46 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:03:46.955578' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OTXi1sZWebovltoJEgLJ-dlVvDoQ4-3Yt0soBG-YDic"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:03:46.957137"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:03:46.958171"], ["id", "f5b168fa-bfc7-11e4-a566-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5b04c0e-bfc7-11e4-aa53-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "f5b04c0e-bfc7-11e4-aa53-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f5b04c0e-bfc7-11e4-aa53-705681abff85' LIMIT 1 [["organization_id", "f5b1f32e-bfc7-11e4-81be-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "f5b1f32e-bfc7-11e4-81be-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f5b1f32e-bfc7-11e4-81be-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5b04c0e-bfc7-11e4-aa53-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f5b1f32e-bfc7-11e4-81be-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5b0fbf4-bfc7-11e4-aab4-705681abff85"]] Completed 200 OK in 17ms (Views: 5.8ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$j50FXYuzPza8SX0BUfC5H.meOhijZm9Cdw/ZQpzDjFnWNAdEWXLfW"], ["created_at", "2015-03-01 04:03:46.979600"], ["updated_at", "2015-03-01 04:03:46.979600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$fG7/SF0aR3FD98vX3ZzGwe.0JF88o.FhGRPUKB5Dy64iMl8J7NMgG"], ["created_at", "2015-03-01 04:03:46.984123"], ["updated_at", "2015-03-01 04:03:46.984123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:03:46.985884"], ["user_id", "f5b79216-bfc7-11e4-aa3b-705681abff85"], ["created_at", "2015-03-01 04:03:46.986721"], ["updated_at", "2015-03-01 04:03:46.986721"], ["token", "F5PJ5Pctj13YFfg2kx0AwboiVsT5bPJ0gelzF4lpHt8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:03:46.990214"], ["updated_at", "2015-03-01 04:03:46.990214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5b79216-bfc7-11e4-aa3b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f5b92f22-bfc7-11e4-bd1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5b79216-bfc7-11e4-aa3b-705681abff85"], ["organization_id", "f5b92f22-bfc7-11e4-bd1d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:03:46.993798"], ["updated_at", "2015-03-01 04:03:46.993798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5b841f2-bfc7-11e4-b9e1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f5b92f22-bfc7-11e4-bd1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5b841f2-bfc7-11e4-b9e1-705681abff85"], ["organization_id", "f5b92f22-bfc7-11e4-bd1d-705681abff85"], ["created_at", "2015-03-01 04:03:46.996973"], ["updated_at", "2015-03-01 04:03:46.996973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/f5b9bc76-bfc7-11e4-93d8-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:03:47 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"f5b9bc76-bfc7-11e4-93d8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:03:47.002503' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "F5PJ5Pctj13YFfg2kx0AwboiVsT5bPJ0gelzF4lpHt8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:03:47.004011"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:03:47.005132"], ["id", "f5b8b11e-bfc7-11e4-91c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5b79216-bfc7-11e4-aa3b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "f5b79216-bfc7-11e4-aa3b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f5b79216-bfc7-11e4-aa3b-705681abff85' LIMIT 1 [["organization_id", "f5b92f22-bfc7-11e4-bd1d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "f5b79216-bfc7-11e4-aa3b-705681abff85"], ["id", "f5b9bc76-bfc7-11e4-93d8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f5b92f22-bfc7-11e4-bd1d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5b79216-bfc7-11e4-aa3b-705681abff85"]] Completed 200 OK in 12ms (Views: 2.3ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Xo9na/GPkKUbrvodZ9KQHu9lQ9H85.3SxC/bvIHJ/yM1wHWQKEmLS"], ["created_at", "2015-03-01 04:03:47.020939"], ["updated_at", "2015-03-01 04:03:47.020939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$T06hOrfQZHoZUBFEX2VqAOwubz0wYaBIANBnvqUesTztxxGCNC5Di"], ["created_at", "2015-03-01 04:03:47.025441"], ["updated_at", "2015-03-01 04:03:47.025441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:03:47.026943"], ["user_id", "f5bde256-bfc7-11e4-af85-705681abff85"], ["created_at", "2015-03-01 04:03:47.027731"], ["updated_at", "2015-03-01 04:03:47.027731"], ["token", "yalB8CUPC-4nhAjmukqOkBMz-0OI31fYjY89fMXUnuA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:03:47.031379"], ["updated_at", "2015-03-01 04:03:47.031379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5bde256-bfc7-11e4-af85-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f5bf7666-bfc7-11e4-a110-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5bde256-bfc7-11e4-af85-705681abff85"], ["organization_id", "f5bf7666-bfc7-11e4-a110-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:03:47.034745"], ["updated_at", "2015-03-01 04:03:47.034745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5be8e04-bfc7-11e4-b0ee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f5bf7666-bfc7-11e4-a110-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5be8e04-bfc7-11e4-b0ee-705681abff85"], ["organization_id", "f5bf7666-bfc7-11e4-a110-705681abff85"], ["created_at", "2015-03-01 04:03:47.037896"], ["updated_at", "2015-03-01 04:03:47.037896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:03:47 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$OMimUY2MjecqQrCLBoD/4OlfvUc.RTDm3knmi2IVw/LMFAP5XEzTW"], ["created_at", "2015-03-01 04:03:47.051781"], ["updated_at", "2015-03-01 04:03:47.051781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$iHfyT9enQk9VKqrS1tcsKOpYBPzio/tFcTUZuRU7D4atJJ25hATsu"], ["created_at", "2015-03-01 04:03:47.057118"], ["updated_at", "2015-03-01 04:03:47.057118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:03:47.058982"], ["user_id", "f5c29f44-bfc7-11e4-b3fb-705681abff85"], ["created_at", "2015-03-01 04:03:47.059814"], ["updated_at", "2015-03-01 04:03:47.059814"], ["token", "yOIpWcwf3IS2nLURT4r7KUnzV3jUZYQCJWlbDmc2trM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:03:47.063485"], ["updated_at", "2015-03-01 04:03:47.063485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5c29f44-bfc7-11e4-b3fb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f5c45f6e-bfc7-11e4-afda-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5c29f44-bfc7-11e4-b3fb-705681abff85"], ["organization_id", "f5c45f6e-bfc7-11e4-afda-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:03:47.067106"], ["updated_at", "2015-03-01 04:03:47.067106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5c36af0-bfc7-11e4-ba59-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f5c45f6e-bfc7-11e4-afda-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5c36af0-bfc7-11e4-ba59-705681abff85"], ["organization_id", "f5c45f6e-bfc7-11e4-afda-705681abff85"], ["created_at", "2015-03-01 04:03:47.070418"], ["updated_at", "2015-03-01 04:03:47.070418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:03:47 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:03:47.075808' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yOIpWcwf3IS2nLURT4r7KUnzV3jUZYQCJWlbDmc2trM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:03:47.077291"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:03:47.078302"], ["id", "f5c3d8be-bfc7-11e4-9aef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5c29f44-bfc7-11e4-b3fb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "f5c29f44-bfc7-11e4-b3fb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "f5c29f44-bfc7-11e4-b3fb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "f5c29f44-bfc7-11e4-b3fb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f5c45f6e-bfc7-11e4-afda-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5c29f44-bfc7-11e4-b3fb-705681abff85"]] Completed 200 OK in 12ms (Views: 3.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$79w1HQfPO7biiI1rkf0WBO3.qbgvgyhF.PJbWqrei4NVlz0D5KVpW"], ["created_at", "2015-03-01 04:04:06.339427"], ["updated_at", "2015-03-01 04:04:06.339427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$DWaqGZ0/JCU99U4xcoMWAuHBnEPH8YN082JfHfPgqpCsobHfTNwtq"], ["created_at", "2015-03-01 04:04:06.352163"], ["updated_at", "2015-03-01 04:04:06.352163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:06.361332"], ["user_id", "0142c2ea-bfc8-11e4-85a0-705681abff85"], ["created_at", "2015-03-01 04:04:06.367419"], ["updated_at", "2015-03-01 04:04:06.367419"], ["token", "55xnW32IQ8YKdc0-CkQY66J8lZ3e6r2HSRKZsB55BU8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:06.377088"], ["updated_at", "2015-03-01 04:04:06.377088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0142c2ea-bfc8-11e4-85a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '01476c64-bfc8-11e4-9bf3-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0142c2ea-bfc8-11e4-85a0-705681abff85"], ["organization_id", "01476c64-bfc8-11e4-9bf3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:06.431202"], ["updated_at", "2015-03-01 04:04:06.431202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0143b0f6-bfc8-11e4-9498-705681abff85' AND "clubhouse_memberships"."organization_id" = '01476c64-bfc8-11e4-9bf3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0143b0f6-bfc8-11e4-9498-705681abff85"], ["organization_id", "01476c64-bfc8-11e4-9bf3-705681abff85"], ["created_at", "2015-03-01 04:04:06.436594"], ["updated_at", "2015-03-01 04:04:06.436594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/01508484-bfc8-11e4-bd8a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:04:06 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"01508484-bfc8-11e4-bd8a-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:04:06.474772' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "55xnW32IQ8YKdc0-CkQY66J8lZ3e6r2HSRKZsB55BU8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:04:06.482119"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:04:06.483455"], ["id", "01460ef0-bfc8-11e4-8cf3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0142c2ea-bfc8-11e4-85a0-705681abff85"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0142c2ea-bfc8-11e4-85a0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0142c2ea-bfc8-11e4-85a0-705681abff85' LIMIT 1 [["organization_id", "01476c64-bfc8-11e4-9bf3-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "0142c2ea-bfc8-11e4-85a0-705681abff85"], ["id", "01508484-bfc8-11e4-bd8a-705681abff85"]] Completed 404 Not Found in 36ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$0fOEeaohx8eGmhSfKOE1xuA/mN9/RXdR3yQtXjB.ixrfCbhB8eUfu"], ["created_at", "2015-03-01 04:04:06.516250"], ["updated_at", "2015-03-01 04:04:06.516250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$8yLqLZ.tCIZ8ZRey87RJIu7mWasx449yUiadcBci3UqvqOPzyMHtC"], ["created_at", "2015-03-01 04:04:06.521396"], ["updated_at", "2015-03-01 04:04:06.521396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:06.523228"], ["user_id", "015ca1b0-bfc8-11e4-bc6b-705681abff85"], ["created_at", "2015-03-01 04:04:06.524055"], ["updated_at", "2015-03-01 04:04:06.524055"], ["token", "xlkHr_8uGaO595s13PrbPVaUZ1u7ruhw6uTUD6eOKBQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:06.527341"], ["updated_at", "2015-03-01 04:04:06.527341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '015ca1b0-bfc8-11e4-bc6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '015e4e5c-bfc8-11e4-8ef9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "015ca1b0-bfc8-11e4-bc6b-705681abff85"], ["organization_id", "015e4e5c-bfc8-11e4-8ef9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:06.530589"], ["updated_at", "2015-03-01 04:04:06.530589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '015d6d84-bfc8-11e4-a3ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '015e4e5c-bfc8-11e4-8ef9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "015d6d84-bfc8-11e4-a3ef-705681abff85"], ["organization_id", "015e4e5c-bfc8-11e4-8ef9-705681abff85"], ["created_at", "2015-03-01 04:04:06.534053"], ["updated_at", "2015-03-01 04:04:06.534053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:04:06 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (6.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$3gZ6WglgqR0LREyVsBqR.OcCtGCHBav2pkhSu7ltxEjHcJKjseql2"], ["created_at", "2015-03-01 04:04:06.551697"], ["updated_at", "2015-03-01 04:04:06.551697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$PNSpKIRyB4guD5k7wELRA.kEofdBunoVBHdT2MAwKU4eaB6eKYRqG"], ["created_at", "2015-03-01 04:04:06.562799"], ["updated_at", "2015-03-01 04:04:06.562799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:06.564418"], ["user_id", "0162114a-bfc8-11e4-85d5-705681abff85"], ["created_at", "2015-03-01 04:04:06.565188"], ["updated_at", "2015-03-01 04:04:06.565188"], ["token", "jzcS3T7D6-ZH_1SGQHc8XHzL3lBzmpGdsMHc-QWcGuM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:06.568561"], ["updated_at", "2015-03-01 04:04:06.568561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0162114a-bfc8-11e4-85d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '01649d16-bfc8-11e4-9560-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0162114a-bfc8-11e4-85d5-705681abff85"], ["organization_id", "01649d16-bfc8-11e4-9560-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:06.571975"], ["updated_at", "2015-03-01 04:04:06.571975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0163bb12-bfc8-11e4-8037-705681abff85' AND "clubhouse_memberships"."organization_id" = '01649d16-bfc8-11e4-9560-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0163bb12-bfc8-11e4-8037-705681abff85"], ["organization_id", "01649d16-bfc8-11e4-9560-705681abff85"], ["created_at", "2015-03-01 04:04:06.575791"], ["updated_at", "2015-03-01 04:04:06.575791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/01652768-bfc8-11e4-b318-705681abff85" for 127.0.0.1 at 2015-02-28 20:04:06 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"01652768-bfc8-11e4-b318-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:04:06.581022' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jzcS3T7D6-ZH_1SGQHc8XHzL3lBzmpGdsMHc-QWcGuM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:04:06.582563"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:04:06.583541"], ["id", "01641d46-bfc8-11e4-9a86-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0162114a-bfc8-11e4-85d5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0162114a-bfc8-11e4-85d5-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "0162114a-bfc8-11e4-85d5-705681abff85"], ["id", "01652768-bfc8-11e4-b318-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "01649d16-bfc8-11e4-9560-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0162114a-bfc8-11e4-85d5-705681abff85"]] Completed 200 OK in 15ms (Views: 6.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (6.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$mjYmNv/Rp8VcNHa7/9YWFe7oJYuQuQpRNlLbiSY.b.jpZvI0JIrJq"], ["created_at", "2015-03-01 04:04:06.605466"], ["updated_at", "2015-03-01 04:04:06.605466"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$pqvD2c3Uu5.uxnO2zglwwupj3o9Y0UAWaO/ZksTEcWVb9A58aGCRa"], ["created_at", "2015-03-01 04:04:06.618355"], ["updated_at", "2015-03-01 04:04:06.618355"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:06.620635"], ["user_id", "016a4cd4-bfc8-11e4-9755-705681abff85"], ["created_at", "2015-03-01 04:04:06.622081"], ["updated_at", "2015-03-01 04:04:06.622081"], ["token", "5q4_EIexzk0Bxgw-deM9IlVjg4Vw56Y5Xuej9G3soPk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:06.626101"], ["updated_at", "2015-03-01 04:04:06.626101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '016a4cd4-bfc8-11e4-9755-705681abff85' AND "clubhouse_memberships"."organization_id" = '016d6266-bfc8-11e4-9d56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "016a4cd4-bfc8-11e4-9755-705681abff85"], ["organization_id", "016d6266-bfc8-11e4-9d56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:06.629736"], ["updated_at", "2015-03-01 04:04:06.629736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '016c35e4-bfc8-11e4-bb17-705681abff85' AND "clubhouse_memberships"."organization_id" = '016d6266-bfc8-11e4-9d56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "016c35e4-bfc8-11e4-bb17-705681abff85"], ["organization_id", "016d6266-bfc8-11e4-9d56-705681abff85"], ["created_at", "2015-03-01 04:04:06.633200"], ["updated_at", "2015-03-01 04:04:06.633200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:04:06 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$zikb9PwcK/9bXPmDrWbqaujrTh5TQzV5CgHi.o..0t9CS4fgP9o6a"], ["created_at", "2015-03-01 04:04:06.647226"], ["updated_at", "2015-03-01 04:04:06.647226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$DQ.QIO4WoVm/1ktrfCZBjOspu89MNvyul8DwlTiJggLO4cuQgkAMO"], ["created_at", "2015-03-01 04:04:06.652021"], ["updated_at", "2015-03-01 04:04:06.652021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:06.653757"], ["user_id", "01709f62-bfc8-11e4-8bc6-705681abff85"], ["created_at", "2015-03-01 04:04:06.655098"], ["updated_at", "2015-03-01 04:04:06.655098"], ["token", "ZQ76OFQrmRot1DskQoE0OSBODZe53mizqbyaD9-UeUI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:06.659679"], ["updated_at", "2015-03-01 04:04:06.659679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '01709f62-bfc8-11e4-8bc6-705681abff85' AND "clubhouse_memberships"."organization_id" = '01728cdc-bfc8-11e4-93b9-705681abff85') LIMIT 1 SQL (4.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "01709f62-bfc8-11e4-8bc6-705681abff85"], ["organization_id", "01728cdc-bfc8-11e4-93b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:06.663759"], ["updated_at", "2015-03-01 04:04:06.663759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '017158d0-bfc8-11e4-907f-705681abff85' AND "clubhouse_memberships"."organization_id" = '01728cdc-bfc8-11e4-93b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "017158d0-bfc8-11e4-907f-705681abff85"], ["organization_id", "01728cdc-bfc8-11e4-93b9-705681abff85"], ["created_at", "2015-03-01 04:04:06.671308"], ["updated_at", "2015-03-01 04:04:06.671308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:04:06 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:04:06.676634' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZQ76OFQrmRot1DskQoE0OSBODZe53mizqbyaD9-UeUI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:04:06.678118"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:04:06.679142"], ["id", "0171f4d4-bfc8-11e4-9ad7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "01709f62-bfc8-11e4-8bc6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "01709f62-bfc8-11e4-8bc6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '01709f62-bfc8-11e4-8bc6-705681abff85' LIMIT 1 [["organization_id", "01728cdc-bfc8-11e4-93b9-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "01728cdc-bfc8-11e4-93b9-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "01728cdc-bfc8-11e4-93b9-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "01709f62-bfc8-11e4-8bc6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "01728cdc-bfc8-11e4-93b9-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "017158d0-bfc8-11e4-907f-705681abff85"]] Completed 200 OK in 14ms (Views: 5.4ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$bCS4P/kMKH1CP0GiNNdKI.eGMYOUWkBbDvNrGVAdau2x7AuGBfY72"], ["created_at", "2015-03-01 04:04:06.698117"], ["updated_at", "2015-03-01 04:04:06.698117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$8xsmaBNJenAnsGFfG/pULedvPSspFYZzMzRepNmeek41sdzSN22ZW"], ["created_at", "2015-03-01 04:04:06.702578"], ["updated_at", "2015-03-01 04:04:06.702578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:06.704239"], ["user_id", "01786332-bfc8-11e4-91c8-705681abff85"], ["created_at", "2015-03-01 04:04:06.705265"], ["updated_at", "2015-03-01 04:04:06.705265"], ["token", "8N7ABy_okflErj2XlFx1-RiRdvSzWfsgVcUeqKXA6QA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:06.709858"], ["updated_at", "2015-03-01 04:04:06.709858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '01786332-bfc8-11e4-91c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '017a2c6c-bfc8-11e4-b704-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "01786332-bfc8-11e4-91c8-705681abff85"], ["organization_id", "017a2c6c-bfc8-11e4-b704-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:06.713665"], ["updated_at", "2015-03-01 04:04:06.713665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '01790ed6-bfc8-11e4-8ab3-705681abff85' AND "clubhouse_memberships"."organization_id" = '017a2c6c-bfc8-11e4-b704-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "01790ed6-bfc8-11e4-8ab3-705681abff85"], ["organization_id", "017a2c6c-bfc8-11e4-b704-705681abff85"], ["created_at", "2015-03-01 04:04:06.716911"], ["updated_at", "2015-03-01 04:04:06.716911"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:04:06 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:04:06.722155' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8N7ABy_okflErj2XlFx1-RiRdvSzWfsgVcUeqKXA6QA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:04:06.723668"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:04:06.725109"], ["id", "017995d6-bfc8-11e4-be67-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "01786332-bfc8-11e4-91c8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "01786332-bfc8-11e4-91c8-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "01786332-bfc8-11e4-91c8-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "01786332-bfc8-11e4-91c8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "017a2c6c-bfc8-11e4-b704-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "01786332-bfc8-11e4-91c8-705681abff85"]] Completed 200 OK in 13ms (Views: 3.7ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$PLcPLJ3KFz7z.OZyU1h7Vut/Mzpbjy1DoMocVNMqCvVL275PnJQv6"], ["created_at", "2015-03-01 04:04:16.768043"], ["updated_at", "2015-03-01 04:04:16.768043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$cJR/c8Y3vW7KWw8DhvXPfux9mRHtJ8dwT7qQOn4lv.55CO.udeP0q"], ["created_at", "2015-03-01 04:04:16.774404"], ["updated_at", "2015-03-01 04:04:16.774404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:16.782711"], ["user_id", "07791aec-bfc8-11e4-9762-705681abff85"], ["created_at", "2015-03-01 04:04:16.788398"], ["updated_at", "2015-03-01 04:04:16.788398"], ["token", "MURIqlSrm4tXCD1RBHuSEIeKteUc_YUWf5D7ym0ySCM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:16.798526"], ["updated_at", "2015-03-01 04:04:16.798526"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07791aec-bfc8-11e4-9762-705681abff85' AND "clubhouse_memberships"."organization_id" = '077db566-bfc8-11e4-8d12-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07791aec-bfc8-11e4-9762-705681abff85"], ["organization_id", "077db566-bfc8-11e4-8d12-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:16.844217"], ["updated_at", "2015-03-01 04:04:16.844217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0779e68e-bfc8-11e4-a8a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '077db566-bfc8-11e4-8d12-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0779e68e-bfc8-11e4-a8a6-705681abff85"], ["organization_id", "077db566-bfc8-11e4-8d12-705681abff85"], ["created_at", "2015-03-01 04:04:16.848220"], ["updated_at", "2015-03-01 04:04:16.848220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/078497c8-bfc8-11e4-b833-705681abff85" for 127.0.0.1 at 2015-02-28 20:04:16 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"078497c8-bfc8-11e4-b833-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:04:16.873615' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MURIqlSrm4tXCD1RBHuSEIeKteUc_YUWf5D7ym0ySCM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:04:16.881194"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:04:16.882548"], ["id", "077c2606-bfc8-11e4-a3d3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07791aec-bfc8-11e4-9762-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07791aec-bfc8-11e4-9762-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07791aec-bfc8-11e4-9762-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "07791aec-bfc8-11e4-9762-705681abff85"], ["id", "078497c8-bfc8-11e4-b833-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "077db566-bfc8-11e4-8d12-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07791aec-bfc8-11e4-9762-705681abff85"]] Completed 200 OK in 56ms (Views: 14.9ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$29L3nHPsbLtQHTDnsfEMP.OyMM1hhIZy5XvhsNXlflj9j2Du71wBa"], ["created_at", "2015-03-01 04:04:16.944999"], ["updated_at", "2015-03-01 04:04:16.944999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$b5xcEIfVS4.jUP5iY/MWguf2KQwSO5JuWzqlmkW1Jo/6TIlwMc4Ba"], ["created_at", "2015-03-01 04:04:16.950420"], ["updated_at", "2015-03-01 04:04:16.950420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:16.952274"], ["user_id", "0793f8a8-bfc8-11e4-a083-705681abff85"], ["created_at", "2015-03-01 04:04:16.953280"], ["updated_at", "2015-03-01 04:04:16.953280"], ["token", "nlkRESya0nQm61-0hB307U79dcUKIkryzZL4zfWzSbA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:16.957778"], ["updated_at", "2015-03-01 04:04:16.957778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0793f8a8-bfc8-11e4-a083-705681abff85' AND "clubhouse_memberships"."organization_id" = '0795e99c-bfc8-11e4-82c1-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0793f8a8-bfc8-11e4-a083-705681abff85"], ["organization_id", "0795e99c-bfc8-11e4-82c1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:16.964058"], ["updated_at", "2015-03-01 04:04:16.964058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0794c4e0-bfc8-11e4-bf39-705681abff85' AND "clubhouse_memberships"."organization_id" = '0795e99c-bfc8-11e4-82c1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0794c4e0-bfc8-11e4-bf39-705681abff85"], ["organization_id", "0795e99c-bfc8-11e4-82c1-705681abff85"], ["created_at", "2015-03-01 04:04:16.971134"], ["updated_at", "2015-03-01 04:04:16.971134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:04:16 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$fUsA1oCHJceK0Kzt.Ip5g.9avo/LcTkrnDQSGRZcEpIs6odiIa9W."], ["created_at", "2015-03-01 04:04:16.993316"], ["updated_at", "2015-03-01 04:04:16.993316"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$xGsLEFzZoWHASW8rDIli/OQx2QNla1mRujiBrHgWfyLaYaIsbIm7u"], ["created_at", "2015-03-01 04:04:16.998698"], ["updated_at", "2015-03-01 04:04:16.998698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:17.000582"], ["user_id", "079b54fe-bfc8-11e4-9182-705681abff85"], ["created_at", "2015-03-01 04:04:17.002268"], ["updated_at", "2015-03-01 04:04:17.002268"], ["token", "ATKRaPrIdJln8vEJDcpJWe2tz2LuIbu52CVsQEDGuLk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:17.013117"], ["updated_at", "2015-03-01 04:04:17.013117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '079b54fe-bfc8-11e4-9182-705681abff85' AND "clubhouse_memberships"."organization_id" = '079e6edc-bfc8-11e4-b40a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "079b54fe-bfc8-11e4-9182-705681abff85"], ["organization_id", "079e6edc-bfc8-11e4-b40a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:17.017878"], ["updated_at", "2015-03-01 04:04:17.017878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '079c2384-bfc8-11e4-8690-705681abff85' AND "clubhouse_memberships"."organization_id" = '079e6edc-bfc8-11e4-b40a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "079c2384-bfc8-11e4-8690-705681abff85"], ["organization_id", "079e6edc-bfc8-11e4-b40a-705681abff85"], ["created_at", "2015-03-01 04:04:17.021784"], ["updated_at", "2015-03-01 04:04:17.021784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/079fa6a8-bfc8-11e4-868d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:04:17 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"079fa6a8-bfc8-11e4-868d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:04:17.028076' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ATKRaPrIdJln8vEJDcpJWe2tz2LuIbu52CVsQEDGuLk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:04:17.029572"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:04:17.030626"], ["id", "079cfdcc-bfc8-11e4-935c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "079b54fe-bfc8-11e4-9182-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "079b54fe-bfc8-11e4-9182-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '079b54fe-bfc8-11e4-9182-705681abff85' LIMIT 1 [["organization_id", "079e6edc-bfc8-11e4-b40a-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "079e6edc-bfc8-11e4-b40a-705681abff85"], ["id", "079fa6a8-bfc8-11e4-868d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "079e6edc-bfc8-11e4-b40a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "079c2384-bfc8-11e4-8690-705681abff85"]] Completed 200 OK in 15ms (Views: 2.3ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$SY1TCu5Lzl3qYibwCuteXeFm/fooV5j.6oSfAVxRiNe74CtENyO06"], ["created_at", "2015-03-01 04:04:17.049127"], ["updated_at", "2015-03-01 04:04:17.049127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$P3kGYXW5PEh2kvA1fiKkk.rBephK4rAW6BVPrFWz0ceJXzyBL.uzu"], ["created_at", "2015-03-01 04:04:17.053497"], ["updated_at", "2015-03-01 04:04:17.053497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:17.055179"], ["user_id", "07a3d23c-bfc8-11e4-8c47-705681abff85"], ["created_at", "2015-03-01 04:04:17.056089"], ["updated_at", "2015-03-01 04:04:17.056089"], ["token", "tZk0pfKV8Rsx7fcEWhJHhlunveMOJ5bmGK4YqbDZCAg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:17.063325"], ["updated_at", "2015-03-01 04:04:17.063325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07a3d23c-bfc8-11e4-8c47-705681abff85' AND "clubhouse_memberships"."organization_id" = '07a5fb16-bfc8-11e4-a6cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07a3d23c-bfc8-11e4-8c47-705681abff85"], ["organization_id", "07a5fb16-bfc8-11e4-a6cf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:17.066697"], ["updated_at", "2015-03-01 04:04:17.066697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07a47836-bfc8-11e4-a2f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '07a5fb16-bfc8-11e4-a6cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07a47836-bfc8-11e4-a2f2-705681abff85"], ["organization_id", "07a5fb16-bfc8-11e4-a6cf-705681abff85"], ["created_at", "2015-03-01 04:04:17.070030"], ["updated_at", "2015-03-01 04:04:17.070030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:04:17 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$85FBjCxJGfCd12hmV358RONHa6sVp39XNw1HbgECWEseQZgVzCBL2"], ["created_at", "2015-03-01 04:04:17.083359"], ["updated_at", "2015-03-01 04:04:17.083359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ZU3IIczqDvJ6KphZBQiJU.2teFmj.Oh9I1x3WIjYtDxMGGznGilqS"], ["created_at", "2015-03-01 04:04:17.088348"], ["updated_at", "2015-03-01 04:04:17.088348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:17.090635"], ["user_id", "07a90d10-bfc8-11e4-8f4a-705681abff85"], ["created_at", "2015-03-01 04:04:17.091904"], ["updated_at", "2015-03-01 04:04:17.091904"], ["token", "MgBepc3L8eDTtu3nRgaNtjQgwXrPtP2O4hgNYis9JW4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:17.095923"], ["updated_at", "2015-03-01 04:04:17.095923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07a90d10-bfc8-11e4-8f4a-705681abff85' AND "clubhouse_memberships"."organization_id" = '07aaf47c-bfc8-11e4-a5f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07a90d10-bfc8-11e4-8f4a-705681abff85"], ["organization_id", "07aaf47c-bfc8-11e4-a5f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:17.099783"], ["updated_at", "2015-03-01 04:04:17.099783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07a9d60a-bfc8-11e4-8bbd-705681abff85' AND "clubhouse_memberships"."organization_id" = '07aaf47c-bfc8-11e4-a5f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07a9d60a-bfc8-11e4-8bbd-705681abff85"], ["organization_id", "07aaf47c-bfc8-11e4-a5f2-705681abff85"], ["created_at", "2015-03-01 04:04:17.102990"], ["updated_at", "2015-03-01 04:04:17.102990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:04:17 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:04:17.108309' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MgBepc3L8eDTtu3nRgaNtjQgwXrPtP2O4hgNYis9JW4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:04:17.109978"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:04:17.111041"], ["id", "07aa6aac-bfc8-11e4-ae23-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07a90d10-bfc8-11e4-8f4a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07a90d10-bfc8-11e4-8f4a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07a90d10-bfc8-11e4-8f4a-705681abff85' LIMIT 1 [["organization_id", "07aaf47c-bfc8-11e4-a5f2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "07aaf47c-bfc8-11e4-a5f2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "07aaf47c-bfc8-11e4-a5f2-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07a90d10-bfc8-11e4-8f4a-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "07aaf47c-bfc8-11e4-a5f2-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07a9d60a-bfc8-11e4-8bbd-705681abff85"]] Completed 200 OK in 14ms (Views: 5.1ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$9cjS0iKMh4WwMsRZ0sfyy.dJUlHYgFOiaNCLBW6bXGwqy52WJGWaq"], ["created_at", "2015-03-01 04:04:17.129236"], ["updated_at", "2015-03-01 04:04:17.129236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$DAmUJkoUXswgpASvbwBUB.71/8ZCvkm.iHoOm5S1j9rahLqCtY/Ti"], ["created_at", "2015-03-01 04:04:17.134006"], ["updated_at", "2015-03-01 04:04:17.134006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:04:17.135708"], ["user_id", "07b010f6-bfc8-11e4-bf67-705681abff85"], ["created_at", "2015-03-01 04:04:17.136702"], ["updated_at", "2015-03-01 04:04:17.136702"], ["token", "8zou6hJbEkTCsiF4TWJJu4gmeTEfCx6JWsJiVP4C70c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:04:17.140309"], ["updated_at", "2015-03-01 04:04:17.140309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07b010f6-bfc8-11e4-bf67-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b1bbf4-bfc8-11e4-ad1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07b010f6-bfc8-11e4-bf67-705681abff85"], ["organization_id", "07b1bbf4-bfc8-11e4-ad1c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:04:17.144169"], ["updated_at", "2015-03-01 04:04:17.144169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07b0c33e-bfc8-11e4-a352-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b1bbf4-bfc8-11e4-ad1c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07b0c33e-bfc8-11e4-a352-705681abff85"], ["organization_id", "07b1bbf4-bfc8-11e4-ad1c-705681abff85"], ["created_at", "2015-03-01 04:04:17.147453"], ["updated_at", "2015-03-01 04:04:17.147453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:04:17 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:04:17.152443' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8zou6hJbEkTCsiF4TWJJu4gmeTEfCx6JWsJiVP4C70c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:04:17.154145"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:04:17.155956"], ["id", "07b138c8-bfc8-11e4-a9f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07b010f6-bfc8-11e4-bf67-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07b010f6-bfc8-11e4-bf67-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07b010f6-bfc8-11e4-bf67-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "07b010f6-bfc8-11e4-bf67-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "07b1bbf4-bfc8-11e4-ad1c-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07b010f6-bfc8-11e4-bf67-705681abff85"]] Completed 200 OK in 16ms (Views: 3.5ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (8.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$2ETiGy8pI70fYWTX9X.4iufT9GQpkICrMt5cUhPRZAaSmb/Kl1sAC"], ["created_at", "2015-03-01 04:30:07.319742"], ["updated_at", "2015-03-01 04:30:07.319742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Wjrj6vLxYzgR16jQM1P8XuQlzzHvHxw78WVSbxyDu89.d3Vk0m6ba"], ["created_at", "2015-03-01 04:30:07.327656"], ["updated_at", "2015-03-01 04:30:07.327656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:07.338282"], ["user_id", "a3ac9f9e-bfcb-11e4-86e1-705681abff85"], ["created_at", "2015-03-01 04:30:07.345176"], ["updated_at", "2015-03-01 04:30:07.345176"], ["token", "q2zvbZ_PrFftrnH2OK1uyH7cflhWuQScB2NWX7iyf3c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (5.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:07.355906"], ["updated_at", "2015-03-01 04:30:07.355906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (4.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3ac9f9e-bfcb-11e4-86e1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3b1eb02-bfcb-11e4-ac69-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3ac9f9e-bfcb-11e4-86e1-705681abff85"], ["organization_id", "a3b1eb02-bfcb-11e4-ac69-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:07.424191"], ["updated_at", "2015-03-01 04:30:07.424191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3adab82-bfcb-11e4-8878-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3b1eb02-bfcb-11e4-ac69-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3adab82-bfcb-11e4-8878-705681abff85"], ["organization_id", "a3b1eb02-bfcb-11e4-ac69-705681abff85"], ["created_at", "2015-03-01 04:30:07.428886"], ["updated_at", "2015-03-01 04:30:07.428886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:30:07 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Y31sTDCw.ULDIulHI3KLMesiluQF4pfy4YD.Y.KIokrm7nAo8KvKW"], ["created_at", "2015-03-01 04:30:07.467981"], ["updated_at", "2015-03-01 04:30:07.467981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$f/8Qpo1txXYiRVE4OgNL2OIKJrZYxdSwYys1XBbVEJS9BTzf5cWz."], ["created_at", "2015-03-01 04:30:07.472973"], ["updated_at", "2015-03-01 04:30:07.472973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:07.474716"], ["user_id", "a3c2f708-bfcb-11e4-b1d5-705681abff85"], ["created_at", "2015-03-01 04:30:07.475480"], ["updated_at", "2015-03-01 04:30:07.475480"], ["token", "6kQH0knFGWLGelFUdkFn4vCTCmaDUBSNQU3cHKKdmds"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:07.479169"], ["updated_at", "2015-03-01 04:30:07.479169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3c2f708-bfcb-11e4-b1d5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3c4aed6-bfcb-11e4-9db2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3c2f708-bfcb-11e4-b1d5-705681abff85"], ["organization_id", "a3c4aed6-bfcb-11e4-9db2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:07.483043"], ["updated_at", "2015-03-01 04:30:07.483043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3c3b8d2-bfcb-11e4-b662-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3c4aed6-bfcb-11e4-9db2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3c3b8d2-bfcb-11e4-b662-705681abff85"], ["organization_id", "a3c4aed6-bfcb-11e4-9db2-705681abff85"], ["created_at", "2015-03-01 04:30:07.486188"], ["updated_at", "2015-03-01 04:30:07.486188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/a3c5b8bc-bfcb-11e4-8518-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:30:07 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"a3c5b8bc-bfcb-11e4-8518-705681abff85", "membership"=>{}} Pollett::Session Load (1.1ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:30:07.491280' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6kQH0knFGWLGelFUdkFn4vCTCmaDUBSNQU3cHKKdmds"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:30:07.500574"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:30:07.502155"], ["id", "a3c42678-bfcb-11e4-a8be-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3c2f708-bfcb-11e4-b1d5-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3c2f708-bfcb-11e4-b1d5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a3c2f708-bfcb-11e4-b1d5-705681abff85' LIMIT 1 [["organization_id", "a3c4aed6-bfcb-11e4-9db2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a3c4aed6-bfcb-11e4-9db2-705681abff85"], ["id", "a3c5b8bc-bfcb-11e4-8518-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a3c4aed6-bfcb-11e4-9db2-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3c3b8d2-bfcb-11e4-b662-705681abff85"]] Completed 200 OK in 47ms (Views: 7.6ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$nn0aXJspTplzalfG7Rq4XuEk.dislJlNEyeobbtCdjYMd6YHn8gAq"], ["created_at", "2015-03-01 04:30:07.547343"], ["updated_at", "2015-03-01 04:30:07.547343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$J4HvYSqDShmfB5Dkl8jpZ.Qc36LnR5Nv9.F4Gu.71EUqChwuIB/Fe"], ["created_at", "2015-03-01 04:30:07.551637"], ["updated_at", "2015-03-01 04:30:07.551637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:07.553381"], ["user_id", "a3cf154c-bfcb-11e4-a56d-705681abff85"], ["created_at", "2015-03-01 04:30:07.554199"], ["updated_at", "2015-03-01 04:30:07.554199"], ["token", "s31TmPJvSqMRj3Qpl9mw0tkbjluCLko5WTbcDsGJtts"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:07.557938"], ["updated_at", "2015-03-01 04:30:07.557938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3cf154c-bfcb-11e4-a56d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3d0aeb6-bfcb-11e4-ae2e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3cf154c-bfcb-11e4-a56d-705681abff85"], ["organization_id", "a3d0aeb6-bfcb-11e4-ae2e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:07.561498"], ["updated_at", "2015-03-01 04:30:07.561498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3cfbe7a-bfcb-11e4-bd5e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3d0aeb6-bfcb-11e4-ae2e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3cfbe7a-bfcb-11e4-bd5e-705681abff85"], ["organization_id", "a3d0aeb6-bfcb-11e4-ae2e-705681abff85"], ["created_at", "2015-03-01 04:30:07.564779"], ["updated_at", "2015-03-01 04:30:07.564779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:30:07 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$uMxx/0.iPjYrCeBHjFJxdOClxUIxT21XKAy37qqazVQ5SQJ.6YLDC"], ["created_at", "2015-03-01 04:30:07.578176"], ["updated_at", "2015-03-01 04:30:07.578176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$LIWaiRsQCVj3iqQAFX.XIeyQyzdafX4YJHyzq0XHdmSbKg8tSIFAy"], ["created_at", "2015-03-01 04:30:07.583105"], ["updated_at", "2015-03-01 04:30:07.583105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:07.584836"], ["user_id", "a3d3c934-bfcb-11e4-8310-705681abff85"], ["created_at", "2015-03-01 04:30:07.585824"], ["updated_at", "2015-03-01 04:30:07.585824"], ["token", "vMXlbxoy7b-t1mvIDOeMdoh3CVFU8fSmnEc21moobEU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:07.589277"], ["updated_at", "2015-03-01 04:30:07.589277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3d3c934-bfcb-11e4-8310-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3d57df6-bfcb-11e4-ac9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3d3c934-bfcb-11e4-8310-705681abff85"], ["organization_id", "a3d57df6-bfcb-11e4-ac9e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:07.593505"], ["updated_at", "2015-03-01 04:30:07.593505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3d484a0-bfcb-11e4-9eea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3d57df6-bfcb-11e4-ac9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3d484a0-bfcb-11e4-9eea-705681abff85"], ["organization_id", "a3d57df6-bfcb-11e4-ac9e-705681abff85"], ["created_at", "2015-03-01 04:30:07.596740"], ["updated_at", "2015-03-01 04:30:07.596740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/a3d61d1a-bfcb-11e4-8e00-705681abff85" for 127.0.0.1 at 2015-02-28 20:30:07 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"a3d61d1a-bfcb-11e4-8e00-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:30:07.601360' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vMXlbxoy7b-t1mvIDOeMdoh3CVFU8fSmnEc21moobEU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:30:07.602923"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:30:07.603938"], ["id", "a3d4fa48-bfcb-11e4-86fe-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3d3c934-bfcb-11e4-8310-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3d3c934-bfcb-11e4-8310-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3d3c934-bfcb-11e4-8310-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "a3d3c934-bfcb-11e4-8310-705681abff85"], ["id", "a3d61d1a-bfcb-11e4-8e00-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a3d57df6-bfcb-11e4-ac9e-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3d3c934-bfcb-11e4-8310-705681abff85"]] Completed 200 OK in 15ms (Views: 2.9ms | ActiveRecord: 4.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$a.7ShfRf12j1f54jJKDnp.gPaaJ9e0P1HKNCwiEUMaD7IA9OC20By"], ["created_at", "2015-03-01 04:30:07.623138"], ["updated_at", "2015-03-01 04:30:07.623138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$OixXmbNf8qcSMi5UfACc3.kGHMzV/SUQAF3ORjlNXH.7BauvLdTv2"], ["created_at", "2015-03-01 04:30:07.628568"], ["updated_at", "2015-03-01 04:30:07.628568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:07.630363"], ["user_id", "a3daa9ac-bfcb-11e4-896c-705681abff85"], ["created_at", "2015-03-01 04:30:07.631396"], ["updated_at", "2015-03-01 04:30:07.631396"], ["token", "_0OwYcK7C6hvmwnUbFjrs4BC7ojG1Ku4fEGO1sejxtM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:07.635230"], ["updated_at", "2015-03-01 04:30:07.635230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3daa9ac-bfcb-11e4-896c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3dc77fa-bfcb-11e4-92b4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3daa9ac-bfcb-11e4-896c-705681abff85"], ["organization_id", "a3dc77fa-bfcb-11e4-92b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:07.638335"], ["updated_at", "2015-03-01 04:30:07.638335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3db7850-bfcb-11e4-b0c7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3dc77fa-bfcb-11e4-92b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3db7850-bfcb-11e4-b0c7-705681abff85"], ["organization_id", "a3dc77fa-bfcb-11e4-92b4-705681abff85"], ["created_at", "2015-03-01 04:30:07.642521"], ["updated_at", "2015-03-01 04:30:07.642521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:30:07 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:30:07.647093' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_0OwYcK7C6hvmwnUbFjrs4BC7ojG1Ku4fEGO1sejxtM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:30:07.648931"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:30:07.650600"], ["id", "a3dbf816-bfcb-11e4-9ce3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3daa9ac-bfcb-11e4-896c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3daa9ac-bfcb-11e4-896c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a3daa9ac-bfcb-11e4-896c-705681abff85' LIMIT 1 [["organization_id", "a3dc77fa-bfcb-11e4-92b4-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "a3dc77fa-bfcb-11e4-92b4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a3dc77fa-bfcb-11e4-92b4-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3daa9ac-bfcb-11e4-896c-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a3dc77fa-bfcb-11e4-92b4-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3db7850-bfcb-11e4-b0c7-705681abff85"]] Completed 200 OK in 18ms (Views: 5.5ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$6Oz2AoR6ZuKhhZtTXAzleuyaMaydxirwRtoybnWe8tn/M.FoENcO6"], ["created_at", "2015-03-01 04:30:07.671355"], ["updated_at", "2015-03-01 04:30:07.671355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$HACXNridoDd8NZUO9008l./V/04h.FkgdH.MroAp0AJI2.5Z/.vKO"], ["created_at", "2015-03-01 04:30:07.676155"], ["updated_at", "2015-03-01 04:30:07.676155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:07.677753"], ["user_id", "a3e2083c-bfcb-11e4-a526-705681abff85"], ["created_at", "2015-03-01 04:30:07.678683"], ["updated_at", "2015-03-01 04:30:07.678683"], ["token", "H_9UvEp8vvZQOGyRFxd5psXUz6Of_3HAPFf8GC-x_rU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:07.682635"], ["updated_at", "2015-03-01 04:30:07.682635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3e2083c-bfcb-11e4-a526-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3e3c280-bfcb-11e4-b453-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3e2083c-bfcb-11e4-a526-705681abff85"], ["organization_id", "a3e3c280-bfcb-11e4-b453-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:07.686524"], ["updated_at", "2015-03-01 04:30:07.686524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3e2b926-bfcb-11e4-9ce1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3e3c280-bfcb-11e4-b453-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3e2b926-bfcb-11e4-9ce1-705681abff85"], ["organization_id", "a3e3c280-bfcb-11e4-b453-705681abff85"], ["created_at", "2015-03-01 04:30:07.690009"], ["updated_at", "2015-03-01 04:30:07.690009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:30:07 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$5PQlTlgsisnp322F6nzOuuxBoFPcSdyo/RPZXbQF8807Xlt.FiO/y"], ["created_at", "2015-03-01 04:30:07.699776"], ["updated_at", "2015-03-01 04:30:07.699776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$EyNUjBTxY7c6tDXsJ5wQfuPkizkx6odGCYaaWiq4x3iJoCSsjeltG"], ["created_at", "2015-03-01 04:30:07.704940"], ["updated_at", "2015-03-01 04:30:07.704940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:07.706688"], ["user_id", "a3e654dc-bfcb-11e4-a65d-705681abff85"], ["created_at", "2015-03-01 04:30:07.707506"], ["updated_at", "2015-03-01 04:30:07.707506"], ["token", "3LoZpnvfGwWQHBxnQwTdC7YSaywBOHoDrWrjrQCodP4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:07.712860"], ["updated_at", "2015-03-01 04:30:07.712860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3e654dc-bfcb-11e4-a65d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3e853a4-bfcb-11e4-af72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3e654dc-bfcb-11e4-a65d-705681abff85"], ["organization_id", "a3e853a4-bfcb-11e4-af72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:07.716244"], ["updated_at", "2015-03-01 04:30:07.716244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3e7211e-bfcb-11e4-8957-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3e853a4-bfcb-11e4-af72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3e7211e-bfcb-11e4-8957-705681abff85"], ["organization_id", "a3e853a4-bfcb-11e4-af72-705681abff85"], ["created_at", "2015-03-01 04:30:07.719526"], ["updated_at", "2015-03-01 04:30:07.719526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a3e954d4-bfcb-11e4-ae9d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:30:07 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$dzDEzlpjtn23xbGSAlO3LO0PVQOQo.gfTUp5pquFIl7nBDCellWAS"], ["created_at", "2015-03-01 04:30:07.730012"], ["updated_at", "2015-03-01 04:30:07.730012"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$YTSEVC4umucgEAb.WiEOGOA8JKNEVzTG6l5m6uvllo5huLYl.9VAC"], ["created_at", "2015-03-01 04:30:07.734873"], ["updated_at", "2015-03-01 04:30:07.734873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:07.736454"], ["user_id", "a3eaf640-bfcb-11e4-9b46-705681abff85"], ["created_at", "2015-03-01 04:30:07.737225"], ["updated_at", "2015-03-01 04:30:07.737225"], ["token", "yPyw7REOWYhQwnFwL9kb7_Eq7_4DWF8cCqBR69FX9XI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:07.740864"], ["updated_at", "2015-03-01 04:30:07.740864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3eaf640-bfcb-11e4-9b46-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3ec95e0-bfcb-11e4-897b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3eaf640-bfcb-11e4-9b46-705681abff85"], ["organization_id", "a3ec95e0-bfcb-11e4-897b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:07.744260"], ["updated_at", "2015-03-01 04:30:07.744260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3ebad7e-bfcb-11e4-9f05-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3ec95e0-bfcb-11e4-897b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3ebad7e-bfcb-11e4-9f05-705681abff85"], ["organization_id", "a3ec95e0-bfcb-11e4-897b-705681abff85"], ["created_at", "2015-03-01 04:30:07.747857"], ["updated_at", "2015-03-01 04:30:07.747857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a3ed1ce0-bfcb-11e4-be3d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:30:07 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$c8Vn5y5006fMaOcNzKwifuJunY/U5igRB/1IRNDPir2bLjVKG0wRC"], ["created_at", "2015-03-01 04:30:07.760697"], ["updated_at", "2015-03-01 04:30:07.760697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Fa//JuMqQfrUG8iGU4dwvOqjJeLAQogwJf6oNLLHuRHLUVcWeVey."], ["created_at", "2015-03-01 04:30:07.767151"], ["updated_at", "2015-03-01 04:30:07.767151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:07.769324"], ["user_id", "a3efa9f6-bfcb-11e4-a195-705681abff85"], ["created_at", "2015-03-01 04:30:07.770266"], ["updated_at", "2015-03-01 04:30:07.770266"], ["token", "5CqB5wiIzQR1lwHITf_QXWwqnI5WBQycdX3PiS1QpeY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:07.773957"], ["updated_at", "2015-03-01 04:30:07.773957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3efa9f6-bfcb-11e4-a195-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3f1a45e-bfcb-11e4-9372-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3efa9f6-bfcb-11e4-a195-705681abff85"], ["organization_id", "a3f1a45e-bfcb-11e4-9372-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:07.778425"], ["updated_at", "2015-03-01 04:30:07.778425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3f0ac98-bfcb-11e4-bfd6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3f1a45e-bfcb-11e4-9372-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3f0ac98-bfcb-11e4-bfd6-705681abff85"], ["organization_id", "a3f1a45e-bfcb-11e4-9372-705681abff85"], ["created_at", "2015-03-01 04:30:07.783088"], ["updated_at", "2015-03-01 04:30:07.783088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:30:07 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:30:07.795182' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5CqB5wiIzQR1lwHITf_QXWwqnI5WBQycdX3PiS1QpeY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:30:07.796828"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:30:07.797902"], ["id", "a3f121aa-bfcb-11e4-a50d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3efa9f6-bfcb-11e4-a195-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3efa9f6-bfcb-11e4-a195-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3efa9f6-bfcb-11e4-a195-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a3efa9f6-bfcb-11e4-a195-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a3f1a45e-bfcb-11e4-9372-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3efa9f6-bfcb-11e4-a195-705681abff85"]] Completed 200 OK in 21ms (Views: 3.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$WD7.0LUK1ke8MYjLJaGyuurHj.MuGLqtYs2kcUKoyhuWex9aBVmKW"], ["created_at", "2015-03-01 04:30:39.204177"], ["updated_at", "2015-03-01 04:30:39.204177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$vbfsF7gZeDbYQKiBjnZ7P.1px17n.l867h81khFtkoIJzc4cwqYlK"], ["created_at", "2015-03-01 04:30:39.210367"], ["updated_at", "2015-03-01 04:30:39.210367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:39.220248"], ["user_id", "b6adb11e-bfcb-11e4-908f-705681abff85"], ["created_at", "2015-03-01 04:30:39.226599"], ["updated_at", "2015-03-01 04:30:39.226599"], ["token", "PQ2PM1YMnDRpbMMbbCAj6TKA28YOjimw_3jtKRJm-eQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (24.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:39.265502"], ["updated_at", "2015-03-01 04:30:39.265502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6adb11e-bfcb-11e4-908f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6b7705a-bfcb-11e4-97a1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6adb11e-bfcb-11e4-908f-705681abff85"], ["organization_id", "b6b7705a-bfcb-11e4-97a1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:39.315718"], ["updated_at", "2015-03-01 04:30:39.315718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6ae763a-bfcb-11e4-a1c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6b7705a-bfcb-11e4-97a1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6ae763a-bfcb-11e4-a1c2-705681abff85"], ["organization_id", "b6b7705a-bfcb-11e4-97a1-705681abff85"], ["created_at", "2015-03-01 04:30:39.320874"], ["updated_at", "2015-03-01 04:30:39.320874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/b6be9e02-bfcb-11e4-80ff-705681abff85" for 127.0.0.1 at 2015-02-28 20:30:39 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"b6be9e02-bfcb-11e4-80ff-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:30:39.345480' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PQ2PM1YMnDRpbMMbbCAj6TKA28YOjimw_3jtKRJm-eQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:30:39.352853"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:30:39.354127"], ["id", "b6b1094a-bfcb-11e4-a645-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6adb11e-bfcb-11e4-908f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b6adb11e-bfcb-11e4-908f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b6adb11e-bfcb-11e4-908f-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "b6adb11e-bfcb-11e4-908f-705681abff85"], ["id", "b6be9e02-bfcb-11e4-80ff-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b6b7705a-bfcb-11e4-97a1-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6adb11e-bfcb-11e4-908f-705681abff85"]] Completed 200 OK in 39ms (Views: 6.5ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$VH4fSXdWQ6aSBHvtDgyEzOLzSrUMdBfaOVNuWk9G4AbozfeZUHHni"], ["created_at", "2015-03-01 04:30:39.393428"], ["updated_at", "2015-03-01 04:30:39.393428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$kEAGxD2U2B5VfwVjeMt5Z.THzAeCFiOj1n0SmQVDMtoNo1mTt4G5y"], ["created_at", "2015-03-01 04:30:39.398011"], ["updated_at", "2015-03-01 04:30:39.398011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:39.399686"], ["user_id", "b6ca693a-bfcb-11e4-84fe-705681abff85"], ["created_at", "2015-03-01 04:30:39.400738"], ["updated_at", "2015-03-01 04:30:39.400738"], ["token", "iONxEVb8GEc_SCnY5LL0Y9jC7dwzE_0jWr6PMz5PPj4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:39.404565"], ["updated_at", "2015-03-01 04:30:39.404565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6ca693a-bfcb-11e4-84fe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6cc16ea-bfcb-11e4-bc6a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6ca693a-bfcb-11e4-84fe-705681abff85"], ["organization_id", "b6cc16ea-bfcb-11e4-bc6a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:39.408417"], ["updated_at", "2015-03-01 04:30:39.408417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6cb1510-bfcb-11e4-9d05-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6cc16ea-bfcb-11e4-bc6a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6cb1510-bfcb-11e4-9d05-705681abff85"], ["organization_id", "b6cc16ea-bfcb-11e4-bc6a-705681abff85"], ["created_at", "2015-03-01 04:30:39.411930"], ["updated_at", "2015-03-01 04:30:39.411930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:30:39 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$qoMqG4vwAIKCg0ZQpn0uwezaWMsAtfaTsryyJdweV7ZBqrGGueFBS"], ["created_at", "2015-03-01 04:30:39.424392"], ["updated_at", "2015-03-01 04:30:39.424392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$TbL90DQrDZ.GkDqZRa/qF.LaIdGvMd4kWT4JLqdTOv3b2fgjCA/p2"], ["created_at", "2015-03-01 04:30:39.429227"], ["updated_at", "2015-03-01 04:30:39.429227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:39.430943"], ["user_id", "b6cf2a38-bfcb-11e4-b581-705681abff85"], ["created_at", "2015-03-01 04:30:39.431720"], ["updated_at", "2015-03-01 04:30:39.431720"], ["token", "joARng_FiZDNXOf1e1iHZnkaedSLw9PT-4pAG2-x8CY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:39.437872"], ["updated_at", "2015-03-01 04:30:39.437872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6cf2a38-bfcb-11e4-b581-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6d13102-bfcb-11e4-9ee1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6cf2a38-bfcb-11e4-b581-705681abff85"], ["organization_id", "b6d13102-bfcb-11e4-9ee1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:39.441861"], ["updated_at", "2015-03-01 04:30:39.441861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6cfdb0e-bfcb-11e4-88c9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6d13102-bfcb-11e4-9ee1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6cfdb0e-bfcb-11e4-88c9-705681abff85"], ["organization_id", "b6d13102-bfcb-11e4-9ee1-705681abff85"], ["created_at", "2015-03-01 04:30:39.446351"], ["updated_at", "2015-03-01 04:30:39.446351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:30:39 -0800  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$iSXpP4AO3ah657vp3kVCae3IspEO70L7zlmDTrWohtjCgY0Np1f6G"], ["created_at", "2015-03-01 04:30:39.476137"], ["updated_at", "2015-03-01 04:30:39.476137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$8rGvd5YDkIwpuRfBEJirO.uRl2Wmb2f2XblOX.twE4NRTXB/k2M6C"], ["created_at", "2015-03-01 04:30:39.481128"], ["updated_at", "2015-03-01 04:30:39.481128"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:39.483215"], ["user_id", "b6d7037a-bfcb-11e4-8d2f-705681abff85"], ["created_at", "2015-03-01 04:30:39.484730"], ["updated_at", "2015-03-01 04:30:39.484730"], ["token", "j8yVjmTzfHYcf_b0vovpnlXI1eelvtcyFRGP-i68YUM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:39.488404"], ["updated_at", "2015-03-01 04:30:39.488404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6d7037a-bfcb-11e4-8d2f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6d8e8ca-bfcb-11e4-991c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6d7037a-bfcb-11e4-8d2f-705681abff85"], ["organization_id", "b6d8e8ca-bfcb-11e4-991c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:39.492249"], ["updated_at", "2015-03-01 04:30:39.492249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6d7c940-bfcb-11e4-83a9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6d8e8ca-bfcb-11e4-991c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6d7c940-bfcb-11e4-83a9-705681abff85"], ["organization_id", "b6d8e8ca-bfcb-11e4-991c-705681abff85"], ["created_at", "2015-03-01 04:30:39.495585"], ["updated_at", "2015-03-01 04:30:39.495585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/b6d97ad8-bfcb-11e4-976e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:30:39 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$sNKm983MQxn67I7FFm21m.ppyIot1Lrl5j.ZQBd6auqUoj1n4IutG"], ["created_at", "2015-03-01 04:30:39.509049"], ["updated_at", "2015-03-01 04:30:39.509049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$VFwSrqvmQiKJPfO8B.XLR.0/VVXuTf.6SU6qbkX29XwGhtSZdBNXO"], ["created_at", "2015-03-01 04:30:39.513557"], ["updated_at", "2015-03-01 04:30:39.513557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:39.515277"], ["user_id", "b6dc0c08-bfcb-11e4-a920-705681abff85"], ["created_at", "2015-03-01 04:30:39.516125"], ["updated_at", "2015-03-01 04:30:39.516125"], ["token", "YXxmAYhU9C8gHSfRxaRidBlDVElfAb0VrILkknZkEJU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:39.519747"], ["updated_at", "2015-03-01 04:30:39.519747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6dc0c08-bfcb-11e4-a920-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6ddb260-bfcb-11e4-921f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6dc0c08-bfcb-11e4-a920-705681abff85"], ["organization_id", "b6ddb260-bfcb-11e4-921f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:39.523522"], ["updated_at", "2015-03-01 04:30:39.523522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6dcb68a-bfcb-11e4-ae9f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6ddb260-bfcb-11e4-921f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6dcb68a-bfcb-11e4-ae9f-705681abff85"], ["organization_id", "b6ddb260-bfcb-11e4-921f-705681abff85"], ["created_at", "2015-03-01 04:30:39.527541"], ["updated_at", "2015-03-01 04:30:39.527541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/b6deeb58-bfcb-11e4-93d3-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:30:39 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$FWXQ/WFyzZOdIc.FAYgw8uESO6mqQQz6mQHHt5uc8CP7xMtfBCCoO"], ["created_at", "2015-03-01 04:30:39.537823"], ["updated_at", "2015-03-01 04:30:39.537823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$zgYIfK6GfcO4XpNOio4XhuH51LvtJehmP6GTMffo8w.eNA8A6gwO."], ["created_at", "2015-03-01 04:30:39.542613"], ["updated_at", "2015-03-01 04:30:39.542613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:39.544322"], ["user_id", "b6e070b8-bfcb-11e4-bae0-705681abff85"], ["created_at", "2015-03-01 04:30:39.545157"], ["updated_at", "2015-03-01 04:30:39.545157"], ["token", "kSSZqTIf314p8MFck3-21n-8PPv5PQldb-MXrGQaYn0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:39.548501"], ["updated_at", "2015-03-01 04:30:39.548501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6e070b8-bfcb-11e4-bae0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6e20c5c-bfcb-11e4-bf39-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6e070b8-bfcb-11e4-bae0-705681abff85"], ["organization_id", "b6e20c5c-bfcb-11e4-bf39-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:39.552270"], ["updated_at", "2015-03-01 04:30:39.552270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6e125b2-bfcb-11e4-8ac8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6e20c5c-bfcb-11e4-bf39-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6e125b2-bfcb-11e4-8ac8-705681abff85"], ["organization_id", "b6e20c5c-bfcb-11e4-bf39-705681abff85"], ["created_at", "2015-03-01 04:30:39.555822"], ["updated_at", "2015-03-01 04:30:39.555822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/b6e32bd2-bfcb-11e4-b13b-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:30:39 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"b6e32bd2-bfcb-11e4-b13b-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:30:39.561547' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kSSZqTIf314p8MFck3-21n-8PPv5PQldb-MXrGQaYn0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:30:39.563066"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:30:39.564082"], ["id", "b6e1934e-bfcb-11e4-b1b8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6e070b8-bfcb-11e4-bae0-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b6e070b8-bfcb-11e4-bae0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b6e070b8-bfcb-11e4-bae0-705681abff85' LIMIT 1 [["organization_id", "b6e20c5c-bfcb-11e4-bf39-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b6e20c5c-bfcb-11e4-bf39-705681abff85"], ["id", "b6e32bd2-bfcb-11e4-b13b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b6e20c5c-bfcb-11e4-bf39-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6e125b2-bfcb-11e4-8ac8-705681abff85"]] Completed 200 OK in 15ms (Views: 2.7ms | ActiveRecord: 2.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ER/86b5.zxYiaNHaRpNSsujZkFeCVB9ZKNn0rMIhYzss4ql9DrV5q"], ["created_at", "2015-03-01 04:30:39.584488"], ["updated_at", "2015-03-01 04:30:39.584488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$L/dgLT0KkVEWljb0Re11heRwKCVPKeF1fJONO.i.CsDDKUum4W5Ci"], ["created_at", "2015-03-01 04:30:39.588979"], ["updated_at", "2015-03-01 04:30:39.588979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:39.590796"], ["user_id", "b6e79190-bfcb-11e4-896a-705681abff85"], ["created_at", "2015-03-01 04:30:39.591841"], ["updated_at", "2015-03-01 04:30:39.591841"], ["token", "wMBgi1JltmGPUPy-QzRGGdx8v4mmoX5sP9osQZfhtSI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:39.596874"], ["updated_at", "2015-03-01 04:30:39.596874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6e79190-bfcb-11e4-896a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6e9783e-bfcb-11e4-8d45-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6e79190-bfcb-11e4-896a-705681abff85"], ["organization_id", "b6e9783e-bfcb-11e4-8d45-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:39.601220"], ["updated_at", "2015-03-01 04:30:39.601220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6e83c08-bfcb-11e4-815e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6e9783e-bfcb-11e4-8d45-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6e83c08-bfcb-11e4-815e-705681abff85"], ["organization_id", "b6e9783e-bfcb-11e4-8d45-705681abff85"], ["created_at", "2015-03-01 04:30:39.604532"], ["updated_at", "2015-03-01 04:30:39.604532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:30:39 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$3MXpDR.Pjllc19Dgc1aYZ.x7t8lqfPfIS6PsVZ6kJzc0Hc8.YY2PG"], ["created_at", "2015-03-01 04:30:39.619841"], ["updated_at", "2015-03-01 04:30:39.619841"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$cW0VgtUEVV3d/PxGf9fUguOg7nTVd4Fp6v.3roofk/XPPMlr2orIe"], ["created_at", "2015-03-01 04:30:39.626272"], ["updated_at", "2015-03-01 04:30:39.626272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:39.628373"], ["user_id", "b6ecfe0a-bfcb-11e4-8eec-705681abff85"], ["created_at", "2015-03-01 04:30:39.629349"], ["updated_at", "2015-03-01 04:30:39.629349"], ["token", "BcuWt8u2yWarirPshuAcinNKQCb8pV1FJ0CH-qxLjQs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:39.633060"], ["updated_at", "2015-03-01 04:30:39.633060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6ecfe0a-bfcb-11e4-8eec-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6eef598-bfcb-11e4-a853-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6ecfe0a-bfcb-11e4-8eec-705681abff85"], ["organization_id", "b6eef598-bfcb-11e4-a853-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:39.636733"], ["updated_at", "2015-03-01 04:30:39.636733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6edf6de-bfcb-11e4-b671-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6eef598-bfcb-11e4-a853-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6edf6de-bfcb-11e4-b671-705681abff85"], ["organization_id", "b6eef598-bfcb-11e4-a853-705681abff85"], ["created_at", "2015-03-01 04:30:39.639857"], ["updated_at", "2015-03-01 04:30:39.639857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:30:39 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:30:39.645643' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BcuWt8u2yWarirPshuAcinNKQCb8pV1FJ0CH-qxLjQs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:30:39.647182"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:30:39.648325"], ["id", "b6ee6e16-bfcb-11e4-a404-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6ecfe0a-bfcb-11e4-8eec-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b6ecfe0a-bfcb-11e4-8eec-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b6ecfe0a-bfcb-11e4-8eec-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "b6ecfe0a-bfcb-11e4-8eec-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b6eef598-bfcb-11e4-a853-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6ecfe0a-bfcb-11e4-8eec-705681abff85"]] Completed 200 OK in 12ms (Views: 3.4ms | ActiveRecord: 1.7ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$tQ/rtp4PxKsQxVujoqreo./oWlCj.FQ/GTkJv2laRvgfV8yIP90nW"], ["created_at", "2015-03-01 04:30:39.663783"], ["updated_at", "2015-03-01 04:30:39.663783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$QDmCZUUij4k56X64gNmgBefbKVcU9CcwZcCWtg7XbuGB78IgcxfN2"], ["created_at", "2015-03-01 04:30:39.668560"], ["updated_at", "2015-03-01 04:30:39.668560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:30:39.670156"], ["user_id", "b6f3affc-bfcb-11e4-a0e0-705681abff85"], ["created_at", "2015-03-01 04:30:39.670964"], ["updated_at", "2015-03-01 04:30:39.670964"], ["token", "ZcdcQT98q2Z0r8BkImFST1uos1f1erTEUxFKUztkyRo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:30:39.674581"], ["updated_at", "2015-03-01 04:30:39.674581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6f3affc-bfcb-11e4-a0e0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6f54ee8-bfcb-11e4-942e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6f3affc-bfcb-11e4-a0e0-705681abff85"], ["organization_id", "b6f54ee8-bfcb-11e4-942e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:30:39.678551"], ["updated_at", "2015-03-01 04:30:39.678551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6f45fa6-bfcb-11e4-98a5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6f54ee8-bfcb-11e4-942e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6f45fa6-bfcb-11e4-98a5-705681abff85"], ["organization_id", "b6f54ee8-bfcb-11e4-942e-705681abff85"], ["created_at", "2015-03-01 04:30:39.682144"], ["updated_at", "2015-03-01 04:30:39.682144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:30:39 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:30:39.693754' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZcdcQT98q2Z0r8BkImFST1uos1f1erTEUxFKUztkyRo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:30:39.695458"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:30:39.696669"], ["id", "b6f4c6e4-bfcb-11e4-99f7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6f3affc-bfcb-11e4-a0e0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b6f3affc-bfcb-11e4-a0e0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b6f3affc-bfcb-11e4-a0e0-705681abff85' LIMIT 1 [["organization_id", "b6f54ee8-bfcb-11e4-942e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "b6f54ee8-bfcb-11e4-942e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b6f54ee8-bfcb-11e4-942e-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6f3affc-bfcb-11e4-a0e0-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b6f54ee8-bfcb-11e4-942e-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6f45fa6-bfcb-11e4-98a5-705681abff85"]] Completed 200 OK in 13ms (Views: 4.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Fkg409RxW2.WtPOydbxsv.YKQ0zbX63.Vx2gVNMunsrJv3OmXvw/i"], ["created_at", "2015-03-01 04:34:01.627275"], ["updated_at", "2015-03-01 04:34:01.627275"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Z4kJa.GMoxh/VFSFtNsmqOH/1VY7q6KhdlvJRICoerQ7wikEy7B9S"], ["created_at", "2015-03-01 04:34:01.640285"], ["updated_at", "2015-03-01 04:34:01.640285"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (7.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:01.650188"], ["user_id", "2f5506a8-bfcc-11e4-ab8a-705681abff85"], ["created_at", "2015-03-01 04:34:01.657217"], ["updated_at", "2015-03-01 04:34:01.657217"], ["token", "ZbU9_jpjFmJ6zoh47M8W8goM0TeY6Lago_uwJALWwhk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (5.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:01.674122"], ["updated_at", "2015-03-01 04:34:01.674122"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f5506a8-bfcc-11e4-ab8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f5c08f4-bfcc-11e4-91f9-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f5506a8-bfcc-11e4-ab8a-705681abff85"], ["organization_id", "2f5c08f4-bfcc-11e4-91f9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:01.722960"], ["updated_at", "2015-03-01 04:34:01.722960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f56e838-bfcc-11e4-add5-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f5c08f4-bfcc-11e4-91f9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f56e838-bfcc-11e4-add5-705681abff85"], ["organization_id", "2f5c08f4-bfcc-11e4-91f9-705681abff85"], ["created_at", "2015-03-01 04:34:01.727821"], ["updated_at", "2015-03-01 04:34:01.727821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:34:01 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$68upEPg.T9aMzHsNdwa3DOXP8xEfqDCziq0Hg6qFXsSUSwmVF8grm"], ["created_at", "2015-03-01 04:34:01.760386"], ["updated_at", "2015-03-01 04:34:01.760386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$u4V3JW1rNm0/tQJbe8/ZMuAKMbCVRtecpMK6SHqElj2eBWBgXKDv."], ["created_at", "2015-03-01 04:34:01.765042"], ["updated_at", "2015-03-01 04:34:01.765042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:01.766626"], ["user_id", "2f692552-bfcc-11e4-bf78-705681abff85"], ["created_at", "2015-03-01 04:34:01.767413"], ["updated_at", "2015-03-01 04:34:01.767413"], ["token", "JH_P6tVVnovwifS0gNl-e4Ku8K7Ignr9nrLnvu3krxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:01.770680"], ["updated_at", "2015-03-01 04:34:01.770680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f692552-bfcc-11e4-bf78-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f6ab4c6-bfcc-11e4-b7b3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f692552-bfcc-11e4-bf78-705681abff85"], ["organization_id", "2f6ab4c6-bfcc-11e4-b7b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:01.774265"], ["updated_at", "2015-03-01 04:34:01.774265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f69d934-bfcc-11e4-b445-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f6ab4c6-bfcc-11e4-b7b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f69d934-bfcc-11e4-b445-705681abff85"], ["organization_id", "2f6ab4c6-bfcc-11e4-b7b3-705681abff85"], ["created_at", "2015-03-01 04:34:01.777875"], ["updated_at", "2015-03-01 04:34:01.777875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/2f6bcc12-bfcc-11e4-a43b-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:34:01 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"2f6bcc12-bfcc-11e4-a43b-705681abff85", "membership"=>{}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:01.782263' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JH_P6tVVnovwifS0gNl-e4Ku8K7Ignr9nrLnvu3krxg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:01.792329"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:01.793935"], ["id", "2f6a3c26-bfcc-11e4-8bdd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f692552-bfcc-11e4-bf78-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2f692552-bfcc-11e4-bf78-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2f692552-bfcc-11e4-bf78-705681abff85' LIMIT 1 [["organization_id", "2f6ab4c6-bfcc-11e4-b7b3-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "2f6ab4c6-bfcc-11e4-b7b3-705681abff85"], ["id", "2f6bcc12-bfcc-11e4-a43b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2f6ab4c6-bfcc-11e4-b7b3-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f69d934-bfcc-11e4-b445-705681abff85"]] Completed 200 OK in 47ms (Views: 7.2ms | ActiveRecord: 3.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$kqzda50ltzlZt4sIIdR5COnWFCIwxJ0xQJMPqjYbB40iZZjGX3/6e"], ["created_at", "2015-03-01 04:34:01.841129"], ["updated_at", "2015-03-01 04:34:01.841129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$No2zS9.S43tHsiShl.WiE.9IkTrswdVkV2buLwT36YD.qQ2hwEGue"], ["created_at", "2015-03-01 04:34:01.848112"], ["updated_at", "2015-03-01 04:34:01.848112"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:01.851114"], ["user_id", "2f758d4c-bfcc-11e4-a642-705681abff85"], ["created_at", "2015-03-01 04:34:01.852451"], ["updated_at", "2015-03-01 04:34:01.852451"], ["token", "5TCs8VOt6GyrxwxxDT-9hbZY9bzGYD-XCFwDcL9zq2w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:01.858537"], ["updated_at", "2015-03-01 04:34:01.858537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f758d4c-bfcc-11e4-a642-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f783fc4-bfcc-11e4-b078-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f758d4c-bfcc-11e4-a642-705681abff85"], ["organization_id", "2f783fc4-bfcc-11e4-b078-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:01.867618"], ["updated_at", "2015-03-01 04:34:01.867618"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f76a92a-bfcc-11e4-8ee9-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f783fc4-bfcc-11e4-b078-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f76a92a-bfcc-11e4-8ee9-705681abff85"], ["organization_id", "2f783fc4-bfcc-11e4-b078-705681abff85"], ["created_at", "2015-03-01 04:34:01.872759"], ["updated_at", "2015-03-01 04:34:01.872759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:34:01 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:01.880242' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5TCs8VOt6GyrxwxxDT-9hbZY9bzGYD-XCFwDcL9zq2w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:01.882079"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:01.883108"], ["id", "2f77434e-bfcc-11e4-8d43-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f758d4c-bfcc-11e4-a642-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2f758d4c-bfcc-11e4-a642-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2f758d4c-bfcc-11e4-a642-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "2f758d4c-bfcc-11e4-a642-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2f783fc4-bfcc-11e4-b078-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f758d4c-bfcc-11e4-a642-705681abff85"]] Completed 200 OK in 14ms (Views: 3.7ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ZKXxkVXpu5/wjTTreKAYUufd4hs6ECvk1vzkUFoXs/4npohpQegPm"], ["created_at", "2015-03-01 04:34:01.901675"], ["updated_at", "2015-03-01 04:34:01.901675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$mwxjG6xjrYUxQ.6dVHukfeoaCMdSNJGKgvCPeSUTCaNnIl1qNSBs."], ["created_at", "2015-03-01 04:34:01.907264"], ["updated_at", "2015-03-01 04:34:01.907264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:01.910130"], ["user_id", "2f7eb8b8-bfcc-11e4-bed2-705681abff85"], ["created_at", "2015-03-01 04:34:01.911366"], ["updated_at", "2015-03-01 04:34:01.911366"], ["token", "MTnev1DGtL9mApa0cQFQiP_HfCLQHgG3fGAy8fjGeHs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:01.917980"], ["updated_at", "2015-03-01 04:34:01.917980"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f7eb8b8-bfcc-11e4-bed2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f81474a-bfcc-11e4-bc98-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f7eb8b8-bfcc-11e4-bed2-705681abff85"], ["organization_id", "2f81474a-bfcc-11e4-bc98-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:01.924340"], ["updated_at", "2015-03-01 04:34:01.924340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f7fa61a-bfcc-11e4-8fe0-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f81474a-bfcc-11e4-bc98-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f7fa61a-bfcc-11e4-8fe0-705681abff85"], ["organization_id", "2f81474a-bfcc-11e4-bc98-705681abff85"], ["created_at", "2015-03-01 04:34:01.932498"], ["updated_at", "2015-03-01 04:34:01.932498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:34:01 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Egn4E7rXqpJpi9rtLHxbheVVK99QlAOU9S1imnbt4yqJrpWsKPDui"], ["created_at", "2015-03-01 04:34:01.948683"], ["updated_at", "2015-03-01 04:34:01.948683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$T4oXHpFoU2xPAGvR2NltpeZQPQBuKhCIU3h1ioCfeOvDqxpU0ZDda"], ["created_at", "2015-03-01 04:34:01.953900"], ["updated_at", "2015-03-01 04:34:01.953900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:01.955750"], ["user_id", "2f85e5f2-bfcc-11e4-bcf6-705681abff85"], ["created_at", "2015-03-01 04:34:01.956796"], ["updated_at", "2015-03-01 04:34:01.956796"], ["token", "6z7e52HoFMEVHh38nGbz6rZkIuWgEjveBZLbi2s53aI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:01.962925"], ["updated_at", "2015-03-01 04:34:01.962925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f85e5f2-bfcc-11e4-bcf6-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f880f12-bfcc-11e4-9b37-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f85e5f2-bfcc-11e4-bcf6-705681abff85"], ["organization_id", "2f880f12-bfcc-11e4-9b37-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:01.966814"], ["updated_at", "2015-03-01 04:34:01.966814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f86af78-bfcc-11e4-b540-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f880f12-bfcc-11e4-9b37-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f86af78-bfcc-11e4-b540-705681abff85"], ["organization_id", "2f880f12-bfcc-11e4-9b37-705681abff85"], ["created_at", "2015-03-01 04:34:01.970758"], ["updated_at", "2015-03-01 04:34:01.970758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/2f88a99a-bfcc-11e4-8e23-705681abff85" for 127.0.0.1 at 2015-02-28 20:34:01 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"2f88a99a-bfcc-11e4-8e23-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:01.976418' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6z7e52HoFMEVHh38nGbz6rZkIuWgEjveBZLbi2s53aI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:01.978418"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:01.980031"], ["id", "2f877b1a-bfcc-11e4-a2ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f85e5f2-bfcc-11e4-bcf6-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2f85e5f2-bfcc-11e4-bcf6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2f85e5f2-bfcc-11e4-bcf6-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "2f85e5f2-bfcc-11e4-bcf6-705681abff85"], ["id", "2f88a99a-bfcc-11e4-8e23-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2f880f12-bfcc-11e4-9b37-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f85e5f2-bfcc-11e4-bcf6-705681abff85"]] Completed 200 OK in 15ms (Views: 3.3ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$2KZNrj04/M5t5a2omySsdu2wVQu0QreLk3CMvfE0U0rhzc8rKBrgq"], ["created_at", "2015-03-01 04:34:02.001709"], ["updated_at", "2015-03-01 04:34:02.001709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$lQ5KeVOGjkoMowfEE70bR.lE/U7d4QsX8E6ejkbKAKmYcG.TH8NDy"], ["created_at", "2015-03-01 04:34:02.007101"], ["updated_at", "2015-03-01 04:34:02.007101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:02.009030"], ["user_id", "2f8dfe9a-bfcc-11e4-93b9-705681abff85"], ["created_at", "2015-03-01 04:34:02.009881"], ["updated_at", "2015-03-01 04:34:02.009881"], ["token", "RhFtHNqrumSZLkAIO2PswHQbLwpCKskljxs0c6tdf-Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:02.018352"], ["updated_at", "2015-03-01 04:34:02.018352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f8dfe9a-bfcc-11e4-93b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f908692-bfcc-11e4-8e64-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f8dfe9a-bfcc-11e4-93b9-705681abff85"], ["organization_id", "2f908692-bfcc-11e4-8e64-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:02.022319"], ["updated_at", "2015-03-01 04:34:02.022319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f8ecee2-bfcc-11e4-b8b5-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f908692-bfcc-11e4-8e64-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f8ecee2-bfcc-11e4-b8b5-705681abff85"], ["organization_id", "2f908692-bfcc-11e4-8e64-705681abff85"], ["created_at", "2015-03-01 04:34:02.026861"], ["updated_at", "2015-03-01 04:34:02.026861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:34:02 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 22ms (Views: 21.5ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$85ZgMhEC.s7CQELpdkEkhuPtW1HPJtlROQOyxB4VVwnE8glgBnx3q"], ["created_at", "2015-03-01 04:34:02.083385"], ["updated_at", "2015-03-01 04:34:02.083385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$erEaJAsAOLukT0pCXwgvy.ODZax.Cyqs/ksaA44mJFFbX6ERquu4y"], ["created_at", "2015-03-01 04:34:02.089428"], ["updated_at", "2015-03-01 04:34:02.089428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:02.091243"], ["user_id", "2f9a861a-bfcc-11e4-9bdf-705681abff85"], ["created_at", "2015-03-01 04:34:02.092144"], ["updated_at", "2015-03-01 04:34:02.092144"], ["token", "C1MpcRvAKJdNtH_n_hy4EFPG4psI_S7e6fLcahT0e1Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:02.095860"], ["updated_at", "2015-03-01 04:34:02.095860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f9a861a-bfcc-11e4-9bdf-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f9c5c6a-bfcc-11e4-a1c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f9a861a-bfcc-11e4-9bdf-705681abff85"], ["organization_id", "2f9c5c6a-bfcc-11e4-a1c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:02.099760"], ["updated_at", "2015-03-01 04:34:02.099760"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f9b5c20-bfcc-11e4-a812-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f9c5c6a-bfcc-11e4-a1c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2f9b5c20-bfcc-11e4-a812-705681abff85"], ["organization_id", "2f9c5c6a-bfcc-11e4-a1c7-705681abff85"], ["created_at", "2015-03-01 04:34:02.103405"], ["updated_at", "2015-03-01 04:34:02.103405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/2f9d7c08-bfcc-11e4-a908-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:34:02 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"2f9d7c08-bfcc-11e4-a908-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:02.109020' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "C1MpcRvAKJdNtH_n_hy4EFPG4psI_S7e6fLcahT0e1Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:02.111062"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:02.112140"], ["id", "2f9bd5ba-bfcc-11e4-8daf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f9a861a-bfcc-11e4-9bdf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2f9a861a-bfcc-11e4-9bdf-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2f9a861a-bfcc-11e4-9bdf-705681abff85' LIMIT 1 [["organization_id", "2f9c5c6a-bfcc-11e4-a1c7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "2f9c5c6a-bfcc-11e4-a1c7-705681abff85"], ["id", "2f9d7c08-bfcc-11e4-a908-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f9b5c20-bfcc-11e4-a812-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2f9c5c6a-bfcc-11e4-a1c7-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f9b5c20-bfcc-11e4-a812-705681abff85' AND "clubhouse_memberships"."id" != '2f9d7c08-bfcc-11e4-a908-705681abff85' AND "clubhouse_memberships"."organization_id" = '2f9c5c6a-bfcc-11e4-a1c7-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:34:02.124642"], ["id", "2f9d7c08-bfcc-11e4-a908-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.2ms | ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$/wH2E7usaGL9EPbeQNbyPeBvUScJ0Gx1p7hn5vYrd.WljR946.Pz."], ["created_at", "2015-03-01 04:34:02.134120"], ["updated_at", "2015-03-01 04:34:02.134120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$0JpIZRnkGIwCWFL5z9Lcb.oJGRIqZXr4CAxwbEgZK7QkRqoibneXW"], ["created_at", "2015-03-01 04:34:02.138764"], ["updated_at", "2015-03-01 04:34:02.138764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:02.141084"], ["user_id", "2fa23194-bfcc-11e4-8c7d-705681abff85"], ["created_at", "2015-03-01 04:34:02.141950"], ["updated_at", "2015-03-01 04:34:02.141950"], ["token", "BCrqEWDwU0DsIqpgz1-JIbCHLuk65v6VXviBqw-pWKE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:02.146083"], ["updated_at", "2015-03-01 04:34:02.146083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fa23194-bfcc-11e4-8c7d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fa3fe8e-bfcc-11e4-83c4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2fa23194-bfcc-11e4-8c7d-705681abff85"], ["organization_id", "2fa3fe8e-bfcc-11e4-83c4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:02.149599"], ["updated_at", "2015-03-01 04:34:02.149599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fa2f250-bfcc-11e4-9fca-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fa3fe8e-bfcc-11e4-83c4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2fa2f250-bfcc-11e4-9fca-705681abff85"], ["organization_id", "2fa3fe8e-bfcc-11e4-83c4-705681abff85"], ["created_at", "2015-03-01 04:34:02.152872"], ["updated_at", "2015-03-01 04:34:02.152872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/2fa48854-bfcc-11e4-b73b-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:34:02 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"2fa48854-bfcc-11e4-b73b-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:02.166820' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BCrqEWDwU0DsIqpgz1-JIbCHLuk65v6VXviBqw-pWKE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:02.168325"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:02.169240"], ["id", "2fa3709a-bfcc-11e4-b95f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2fa23194-bfcc-11e4-8c7d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2fa23194-bfcc-11e4-8c7d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2fa23194-bfcc-11e4-8c7d-705681abff85' LIMIT 1 [["organization_id", "2fa3fe8e-bfcc-11e4-83c4-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "2fa3fe8e-bfcc-11e4-83c4-705681abff85"], ["id", "2fa48854-bfcc-11e4-b73b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2fa23194-bfcc-11e4-8c7d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2fa3fe8e-bfcc-11e4-83c4-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fa23194-bfcc-11e4-8c7d-705681abff85' AND "clubhouse_memberships"."id" != '2fa48854-bfcc-11e4-b73b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fa3fe8e-bfcc-11e4-83c4-705681abff85') LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$/J9Hj7NBXI5CP3oF51lh4uUe447tZOOy5XIvCi.RVsRcaM85X0yDW"], ["created_at", "2015-03-01 04:34:02.187507"], ["updated_at", "2015-03-01 04:34:02.187507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$PmUP6J.BEWRKq8jBoS766OQcw4Q8UEiyobQqxrWYlnDNMt2v0IIAa"], ["created_at", "2015-03-01 04:34:02.192491"], ["updated_at", "2015-03-01 04:34:02.192491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:02.194428"], ["user_id", "2faa536a-bfcc-11e4-a1f1-705681abff85"], ["created_at", "2015-03-01 04:34:02.195559"], ["updated_at", "2015-03-01 04:34:02.195559"], ["token", "Kkwg3dH0C9XScEDBpejk0Df__vV24bFf7P-Xk8aJsAk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:02.199071"], ["updated_at", "2015-03-01 04:34:02.199071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2faa536a-bfcc-11e4-a1f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fac1826-bfcc-11e4-9e33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2faa536a-bfcc-11e4-a1f1-705681abff85"], ["organization_id", "2fac1826-bfcc-11e4-9e33-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:02.202646"], ["updated_at", "2015-03-01 04:34:02.202646"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fab1aca-bfcc-11e4-8f0e-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fac1826-bfcc-11e4-9e33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2fab1aca-bfcc-11e4-8f0e-705681abff85"], ["organization_id", "2fac1826-bfcc-11e4-9e33-705681abff85"], ["created_at", "2015-03-01 04:34:02.206270"], ["updated_at", "2015-03-01 04:34:02.206270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:34:02 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:02.211702' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Kkwg3dH0C9XScEDBpejk0Df__vV24bFf7P-Xk8aJsAk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:02.213103"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:02.214093"], ["id", "2fab9338-bfcc-11e4-9f72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2faa536a-bfcc-11e4-a1f1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2faa536a-bfcc-11e4-a1f1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2faa536a-bfcc-11e4-a1f1-705681abff85' LIMIT 1 [["organization_id", "2fac1826-bfcc-11e4-9e33-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "2fac1826-bfcc-11e4-9e33-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2fac1826-bfcc-11e4-9e33-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2faa536a-bfcc-11e4-a1f1-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2fac1826-bfcc-11e4-9e33-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2fab1aca-bfcc-11e4-8f0e-705681abff85"]] Completed 200 OK in 14ms (Views: 5.3ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$gPz0iLz8XkKIUHVZvG878ue86NzNqbwEhDTspBm9mDZ6VKF3iSN4m"], ["created_at", "2015-03-01 04:34:23.337327"], ["updated_at", "2015-03-01 04:34:23.337327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$G9SwUdT9Afef49qJM7mdeOCFlrRITOqvVlTaGpKlcdBqyosx6uHQ6"], ["created_at", "2015-03-01 04:34:23.343207"], ["updated_at", "2015-03-01 04:34:23.343207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:23.351321"], ["user_id", "3c45b1a0-bfcc-11e4-ad41-705681abff85"], ["created_at", "2015-03-01 04:34:23.358577"], ["updated_at", "2015-03-01 04:34:23.358577"], ["token", "RMnM1SffvLE7ycpafgw4sD01NH_eA5_wcOaodWaTGsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:23.367633"], ["updated_at", "2015-03-01 04:34:23.367633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c45b1a0-bfcc-11e4-ad41-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c4a2dac-bfcc-11e4-a3e2-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c45b1a0-bfcc-11e4-ad41-705681abff85"], ["organization_id", "3c4a2dac-bfcc-11e4-a3e2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:23.411758"], ["updated_at", "2015-03-01 04:34:23.411758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c466a32-bfcc-11e4-ab15-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c4a2dac-bfcc-11e4-a3e2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c466a32-bfcc-11e4-ab15-705681abff85"], ["organization_id", "3c4a2dac-bfcc-11e4-a3e2-705681abff85"], ["created_at", "2015-03-01 04:34:23.415525"], ["updated_at", "2015-03-01 04:34:23.415525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:34:23 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:23.441316' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RMnM1SffvLE7ycpafgw4sD01NH_eA5_wcOaodWaTGsA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:23.451278"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:23.452591"], ["id", "3c48dcb8-bfcc-11e4-8e01-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c45b1a0-bfcc-11e4-ad41-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3c45b1a0-bfcc-11e4-ad41-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c45b1a0-bfcc-11e4-ad41-705681abff85' LIMIT 1 [["organization_id", "3c4a2dac-bfcc-11e4-a3e2-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "3c4a2dac-bfcc-11e4-a3e2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c4a2dac-bfcc-11e4-a3e2-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c45b1a0-bfcc-11e4-ad41-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c4a2dac-bfcc-11e4-a3e2-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c466a32-bfcc-11e4-ab15-705681abff85"]] Completed 200 OK in 50ms (Views: 10.6ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (18.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$VPnlUtgpeWCjYr8Mp3hVtOjZC6nQPr7tB/DKD11nD8PrskdyUh3pu"], ["created_at", "2015-03-01 04:34:23.501125"], ["updated_at", "2015-03-01 04:34:23.501125"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$T/Ity21AV7PX6ndUQwbuB.mExxs3Mi4qpbQH78Ition7WI12YpG/K"], ["created_at", "2015-03-01 04:34:23.524028"], ["updated_at", "2015-03-01 04:34:23.524028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:23.525622"], ["user_id", "3c5e8b12-bfcc-11e4-a549-705681abff85"], ["created_at", "2015-03-01 04:34:23.526435"], ["updated_at", "2015-03-01 04:34:23.526435"], ["token", "oU_yY8Z4VCcWiXN2GeDo9tF3bMyR5cv2LYvj3KJavSI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:23.529636"], ["updated_at", "2015-03-01 04:34:23.529636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c5e8b12-bfcc-11e4-a549-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c62da78-bfcc-11e4-9cca-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c5e8b12-bfcc-11e4-a549-705681abff85"], ["organization_id", "3c62da78-bfcc-11e4-9cca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:23.533614"], ["updated_at", "2015-03-01 04:34:23.533614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c6201e8-bfcc-11e4-a5b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c62da78-bfcc-11e4-9cca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c6201e8-bfcc-11e4-a5b9-705681abff85"], ["organization_id", "3c62da78-bfcc-11e4-9cca-705681abff85"], ["created_at", "2015-03-01 04:34:23.537602"], ["updated_at", "2015-03-01 04:34:23.537602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:34:23 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$FXGmWbkPi7c.BS2OwumEAuQd4LQGbdvH.qqlfU9yeDOF/jziCHoO6"], ["created_at", "2015-03-01 04:34:23.554109"], ["updated_at", "2015-03-01 04:34:23.554109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$b.kseZC3BOCmaBJpM7K6ceZlQJAGJIa92Eh6PyOcr5Dm0iydQk2kO"], ["created_at", "2015-03-01 04:34:23.558983"], ["updated_at", "2015-03-01 04:34:23.558983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:23.560554"], ["user_id", "3c66a5f4-bfcc-11e4-89a0-705681abff85"], ["created_at", "2015-03-01 04:34:23.561362"], ["updated_at", "2015-03-01 04:34:23.561362"], ["token", "bed7FKO31TySXs4Mq10TU-w8-zbLdjyhQnt6aEETsYs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:23.564582"], ["updated_at", "2015-03-01 04:34:23.564582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c66a5f4-bfcc-11e4-89a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c682f28-bfcc-11e4-b69e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c66a5f4-bfcc-11e4-89a0-705681abff85"], ["organization_id", "3c682f28-bfcc-11e4-b69e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:23.568400"], ["updated_at", "2015-03-01 04:34:23.568400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c675756-bfcc-11e4-b7d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c682f28-bfcc-11e4-b69e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c675756-bfcc-11e4-b7d7-705681abff85"], ["organization_id", "3c682f28-bfcc-11e4-b69e-705681abff85"], ["created_at", "2015-03-01 04:34:23.571694"], ["updated_at", "2015-03-01 04:34:23.571694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/3c68c8a2-bfcc-11e4-bb9d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:34:23 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"3c68c8a2-bfcc-11e4-bb9d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:23.577692' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bed7FKO31TySXs4Mq10TU-w8-zbLdjyhQnt6aEETsYs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:23.579642"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:23.581580"], ["id", "3c67b9d0-bfcc-11e4-b8f7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c66a5f4-bfcc-11e4-89a0-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3c66a5f4-bfcc-11e4-89a0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c66a5f4-bfcc-11e4-89a0-705681abff85' LIMIT 1 [["organization_id", "3c682f28-bfcc-11e4-b69e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "3c682f28-bfcc-11e4-b69e-705681abff85"], ["id", "3c68c8a2-bfcc-11e4-bb9d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c66a5f4-bfcc-11e4-89a0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c682f28-bfcc-11e4-b69e-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c66a5f4-bfcc-11e4-89a0-705681abff85' AND "clubhouse_memberships"."id" != '3c68c8a2-bfcc-11e4-bb9d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c682f28-bfcc-11e4-b69e-705681abff85') LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.1ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$fJQeTNalxPfnfVVZvxcCrOYfSJC9tBtdba42cdQOz7BUxaUV2zIui"], ["created_at", "2015-03-01 04:34:23.601282"], ["updated_at", "2015-03-01 04:34:23.601282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$c.EY8zmWAuIK0zB4vlINtORbldY1tobwXUIj587lcCC7UjcYulNTe"], ["created_at", "2015-03-01 04:34:23.606698"], ["updated_at", "2015-03-01 04:34:23.606698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:23.608326"], ["user_id", "3c6ddebe-bfcc-11e4-87be-705681abff85"], ["created_at", "2015-03-01 04:34:23.609169"], ["updated_at", "2015-03-01 04:34:23.609169"], ["token", "n6fxKaSUHNcqZBPaMNRZjfzN3ohMTYcvY4mVXAY9K8Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:23.612680"], ["updated_at", "2015-03-01 04:34:23.612680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c6ddebe-bfcc-11e4-87be-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c6f86ce-bfcc-11e4-adc0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c6ddebe-bfcc-11e4-87be-705681abff85"], ["organization_id", "3c6f86ce-bfcc-11e4-adc0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:23.615952"], ["updated_at", "2015-03-01 04:34:23.615952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c6e9dc2-bfcc-11e4-934f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c6f86ce-bfcc-11e4-adc0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c6e9dc2-bfcc-11e4-934f-705681abff85"], ["organization_id", "3c6f86ce-bfcc-11e4-adc0-705681abff85"], ["created_at", "2015-03-01 04:34:23.620100"], ["updated_at", "2015-03-01 04:34:23.620100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/3c70a87e-bfcc-11e4-9c71-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:34:23 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"3c70a87e-bfcc-11e4-9c71-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:23.624491' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n6fxKaSUHNcqZBPaMNRZjfzN3ohMTYcvY4mVXAY9K8Q"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:23.626395"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:23.627668"], ["id", "3c6f09ce-bfcc-11e4-b567-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c6ddebe-bfcc-11e4-87be-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3c6ddebe-bfcc-11e4-87be-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c6ddebe-bfcc-11e4-87be-705681abff85' LIMIT 1 [["organization_id", "3c6f86ce-bfcc-11e4-adc0-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "3c6f86ce-bfcc-11e4-adc0-705681abff85"], ["id", "3c70a87e-bfcc-11e4-9c71-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c6e9dc2-bfcc-11e4-934f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c6f86ce-bfcc-11e4-adc0-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c6e9dc2-bfcc-11e4-934f-705681abff85' AND "clubhouse_memberships"."id" != '3c70a87e-bfcc-11e4-9c71-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c6f86ce-bfcc-11e4-adc0-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:34:23.638430"], ["id", "3c70a87e-bfcc-11e4-9c71-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.0ms | ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Vjb/r8gGOsBwSw9hjHy2Z.q2W2PGo.Z1hKgZApHRabgeJXjS9xlbG"], ["created_at", "2015-03-01 04:34:23.646976"], ["updated_at", "2015-03-01 04:34:23.646976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$.2QVyArQLNjvj66Mjawu5OQcDiIqr5g25Fa7L0Ixt7F1Eubnx4/Hi"], ["created_at", "2015-03-01 04:34:23.651976"], ["updated_at", "2015-03-01 04:34:23.651976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:23.653705"], ["user_id", "3c74c44a-bfcc-11e4-9237-705681abff85"], ["created_at", "2015-03-01 04:34:23.654498"], ["updated_at", "2015-03-01 04:34:23.654498"], ["token", "4xz14dbFfsLRO0Ik8Xj3j-h_-p_PgQ11lkjYpoMSJsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:23.657988"], ["updated_at", "2015-03-01 04:34:23.657988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c74c44a-bfcc-11e4-9237-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c767466-bfcc-11e4-b5ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c74c44a-bfcc-11e4-9237-705681abff85"], ["organization_id", "3c767466-bfcc-11e4-b5ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:23.661515"], ["updated_at", "2015-03-01 04:34:23.661515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c758bdc-bfcc-11e4-9cbe-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c767466-bfcc-11e4-b5ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c758bdc-bfcc-11e4-9cbe-705681abff85"], ["organization_id", "3c767466-bfcc-11e4-b5ae-705681abff85"], ["created_at", "2015-03-01 04:34:23.664913"], ["updated_at", "2015-03-01 04:34:23.664913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/3c777fc8-bfcc-11e4-9620-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:34:23 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"3c777fc8-bfcc-11e4-9620-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:23.670009' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4xz14dbFfsLRO0Ik8Xj3j-h_-p_PgQ11lkjYpoMSJsA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:23.671518"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:23.672553"], ["id", "3c75f13a-bfcc-11e4-85dc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c74c44a-bfcc-11e4-9237-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3c74c44a-bfcc-11e4-9237-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c74c44a-bfcc-11e4-9237-705681abff85' LIMIT 1 [["organization_id", "3c767466-bfcc-11e4-b5ae-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "3c767466-bfcc-11e4-b5ae-705681abff85"], ["id", "3c777fc8-bfcc-11e4-9620-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c767466-bfcc-11e4-b5ae-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c758bdc-bfcc-11e4-9cbe-705681abff85"]] Completed 200 OK in 12ms (Views: 2.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$WW/4VB/G4IaLGuPUjS05CO1GD/HGu7AZSARKKm0HSBXpiXwFsvP4i"], ["created_at", "2015-03-01 04:34:23.689545"], ["updated_at", "2015-03-01 04:34:23.689545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$7BjtWbUwBsP1Re7TETCfC.LM.qSfv19kULHzzNlmNGfWrH5lyEF8O"], ["created_at", "2015-03-01 04:34:23.694901"], ["updated_at", "2015-03-01 04:34:23.694901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:23.697769"], ["user_id", "3c7b4590-bfcc-11e4-9706-705681abff85"], ["created_at", "2015-03-01 04:34:23.698943"], ["updated_at", "2015-03-01 04:34:23.698943"], ["token", "-bcfT5VallZt1VovHPTKBhhTzbVmGpY_qxaeUOuXEVY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:23.702599"], ["updated_at", "2015-03-01 04:34:23.702599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c7b4590-bfcc-11e4-9706-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c7d41a6-bfcc-11e4-8099-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c7b4590-bfcc-11e4-9706-705681abff85"], ["organization_id", "3c7d41a6-bfcc-11e4-8099-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:23.706201"], ["updated_at", "2015-03-01 04:34:23.706201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c7c37fc-bfcc-11e4-80bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c7d41a6-bfcc-11e4-8099-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c7c37fc-bfcc-11e4-80bc-705681abff85"], ["organization_id", "3c7d41a6-bfcc-11e4-8099-705681abff85"], ["created_at", "2015-03-01 04:34:23.709463"], ["updated_at", "2015-03-01 04:34:23.709463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:34:23 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$vdeiwG2563ZslH3949vqlOc7KXatU50Of/oduCVnGPq/pD79zrPQO"], ["created_at", "2015-03-01 04:34:23.725204"], ["updated_at", "2015-03-01 04:34:23.725204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$oGpjwGSoJT1SwkZh3v7/lOBUoBQdrevYYpqJJRwAByZKhpMihM0Ry"], ["created_at", "2015-03-01 04:34:23.729496"], ["updated_at", "2015-03-01 04:34:23.729496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:23.730979"], ["user_id", "3c80b6e2-bfcc-11e4-88b2-705681abff85"], ["created_at", "2015-03-01 04:34:23.731783"], ["updated_at", "2015-03-01 04:34:23.731783"], ["token", "D4csQjhVNs23Q2vyRWnOl1cHieN3Wa6oeMKerUnWGIs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:23.735172"], ["updated_at", "2015-03-01 04:34:23.735172"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c80b6e2-bfcc-11e4-88b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c823e0e-bfcc-11e4-9998-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c80b6e2-bfcc-11e4-88b2-705681abff85"], ["organization_id", "3c823e0e-bfcc-11e4-9998-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:23.739539"], ["updated_at", "2015-03-01 04:34:23.739539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c815962-bfcc-11e4-ad67-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c823e0e-bfcc-11e4-9998-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c815962-bfcc-11e4-ad67-705681abff85"], ["organization_id", "3c823e0e-bfcc-11e4-9998-705681abff85"], ["created_at", "2015-03-01 04:34:23.742855"], ["updated_at", "2015-03-01 04:34:23.742855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/3c82e688-bfcc-11e4-854e-705681abff85" for 127.0.0.1 at 2015-02-28 20:34:23 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"3c82e688-bfcc-11e4-854e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:23.747368' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "D4csQjhVNs23Q2vyRWnOl1cHieN3Wa6oeMKerUnWGIs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:23.748791"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:23.749730"], ["id", "3c81ba88-bfcc-11e4-8d60-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c80b6e2-bfcc-11e4-88b2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3c80b6e2-bfcc-11e4-88b2-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3c80b6e2-bfcc-11e4-88b2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "3c80b6e2-bfcc-11e4-88b2-705681abff85"], ["id", "3c82e688-bfcc-11e4-854e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c823e0e-bfcc-11e4-9998-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c80b6e2-bfcc-11e4-88b2-705681abff85"]] Completed 200 OK in 11ms (Views: 2.2ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$wOzj9JqQON/.HBR5k.GDbuS9lITW5ri.3OoJlNuk3rIeStukcgWeW"], ["created_at", "2015-03-01 04:34:23.765440"], ["updated_at", "2015-03-01 04:34:23.765440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$99bqQSgrK6as0fXFzJjjkO7euIyOKPuDHsx9H7V5/nCnOCi9DEsUG"], ["created_at", "2015-03-01 04:34:23.771246"], ["updated_at", "2015-03-01 04:34:23.771246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:23.773283"], ["user_id", "3c86f14c-bfcc-11e4-9e49-705681abff85"], ["created_at", "2015-03-01 04:34:23.774157"], ["updated_at", "2015-03-01 04:34:23.774157"], ["token", "fSUhSoGeHkPt6m0XzK8k08w1i2c-bacrAqwTRvfAh_A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:23.785518"], ["updated_at", "2015-03-01 04:34:23.785518"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c86f14c-bfcc-11e4-9e49-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c89ef96-bfcc-11e4-9602-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c86f14c-bfcc-11e4-9e49-705681abff85"], ["organization_id", "3c89ef96-bfcc-11e4-9602-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:23.790423"], ["updated_at", "2015-03-01 04:34:23.790423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c87c5a4-bfcc-11e4-8c65-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c89ef96-bfcc-11e4-9602-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c87c5a4-bfcc-11e4-8c65-705681abff85"], ["organization_id", "3c89ef96-bfcc-11e4-9602-705681abff85"], ["created_at", "2015-03-01 04:34:23.793527"], ["updated_at", "2015-03-01 04:34:23.793527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:34:23 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$yioGPgoKNsyQXCFf8s1EHeIDMzuJQQskee0mpiPYtysLUFPRbbGrC"], ["created_at", "2015-03-01 04:34:23.806344"], ["updated_at", "2015-03-01 04:34:23.806344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$dU2o/8SxU2LYopaY84.AO.wIkrC.Wo./qmeDeN2eSD84CmilCZ8WW"], ["created_at", "2015-03-01 04:34:23.811790"], ["updated_at", "2015-03-01 04:34:23.811790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:34:23.813742"], ["user_id", "3c8d16c6-bfcc-11e4-adb4-705681abff85"], ["created_at", "2015-03-01 04:34:23.814997"], ["updated_at", "2015-03-01 04:34:23.814997"], ["token", "W2d1_V5-ZfFu5rmqXpb1Re3wnvXmYf9il3-YHGAewVU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:34:23.821011"], ["updated_at", "2015-03-01 04:34:23.821011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c8d16c6-bfcc-11e4-adb4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c8f56de-bfcc-11e4-9681-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c8d16c6-bfcc-11e4-adb4-705681abff85"], ["organization_id", "3c8f56de-bfcc-11e4-9681-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:34:23.824620"], ["updated_at", "2015-03-01 04:34:23.824620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c8de8b2-bfcc-11e4-bdb4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c8f56de-bfcc-11e4-9681-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c8de8b2-bfcc-11e4-bdb4-705681abff85"], ["organization_id", "3c8f56de-bfcc-11e4-9681-705681abff85"], ["created_at", "2015-03-01 04:34:23.827984"], ["updated_at", "2015-03-01 04:34:23.827984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:34:23 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:34:23.832217' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "W2d1_V5-ZfFu5rmqXpb1Re3wnvXmYf9il3-YHGAewVU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:34:23.833646"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:34:23.834598"], ["id", "3c8e7066-bfcc-11e4-b164-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c8d16c6-bfcc-11e4-adb4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3c8d16c6-bfcc-11e4-adb4-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3c8d16c6-bfcc-11e4-adb4-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "3c8d16c6-bfcc-11e4-adb4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c8f56de-bfcc-11e4-9681-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c8d16c6-bfcc-11e4-adb4-705681abff85"]] Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$6BHpgVTy0wscWiDeTqnRjuGcI3/XPTRmAcOftKGNHkv/9KEfP0pL6"], ["created_at", "2015-03-01 04:37:55.957380"], ["updated_at", "2015-03-01 04:37:55.957380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Wrxy2zfN9/6M17z3zlDm3e1IgkNMnQN1Q6/UxxAS88PHd7H32qW8m"], ["created_at", "2015-03-01 04:37:55.963235"], ["updated_at", "2015-03-01 04:37:55.963235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (11.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:37:55.972217"], ["user_id", "bb00efdc-bfcc-11e4-be13-705681abff85"], ["created_at", "2015-03-01 04:37:55.978737"], ["updated_at", "2015-03-01 04:37:55.978737"], ["token", "r65e8zzPtwf458gjMm90megSGVh2gSPbiST8MXHwouY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:37:55.999404"], ["updated_at", "2015-03-01 04:37:55.999404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb00efdc-bfcc-11e4-be13-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb075322-bfcc-11e4-82ee-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb00efdc-bfcc-11e4-be13-705681abff85"], ["organization_id", "bb075322-bfcc-11e4-82ee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:37:56.042255"], ["updated_at", "2015-03-01 04:37:56.042255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb01a670-bfcc-11e4-8709-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb075322-bfcc-11e4-82ee-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb01a670-bfcc-11e4-8709-705681abff85"], ["organization_id", "bb075322-bfcc-11e4-82ee-705681abff85"], ["created_at", "2015-03-01 04:37:56.046133"], ["updated_at", "2015-03-01 04:37:56.046133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bb0e5230-bfcc-11e4-93f5-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:37:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$6b4E5t1VKfN/aRWGTQrCLOcOW5HAAQaCKz7ZkJ.kLq9aUCkBkvLUi"], ["created_at", "2015-03-01 04:37:56.062463"], ["updated_at", "2015-03-01 04:37:56.062463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ChKqgyfhv0U6mG2Pns.EiuQowE78sz6uXionNZfcSl1V3lRIv3NNG"], ["created_at", "2015-03-01 04:37:56.068193"], ["updated_at", "2015-03-01 04:37:56.068193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:37:56.070030"], ["user_id", "bb10d226-bfcc-11e4-9bd1-705681abff85"], ["created_at", "2015-03-01 04:37:56.070849"], ["updated_at", "2015-03-01 04:37:56.070849"], ["token", "5jRQg6oURbiLb1yONiKuc-ojIA9zOSbr8TSD5qC5PjA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:37:56.074271"], ["updated_at", "2015-03-01 04:37:56.074271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb10d226-bfcc-11e4-9bd1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1297dc-bfcc-11e4-a175-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb10d226-bfcc-11e4-9bd1-705681abff85"], ["organization_id", "bb1297dc-bfcc-11e4-a175-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:37:56.077660"], ["updated_at", "2015-03-01 04:37:56.077660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb11b25e-bfcc-11e4-804a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1297dc-bfcc-11e4-a175-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb11b25e-bfcc-11e4-804a-705681abff85"], ["organization_id", "bb1297dc-bfcc-11e4-a175-705681abff85"], ["created_at", "2015-03-01 04:37:56.080796"], ["updated_at", "2015-03-01 04:37:56.080796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:37:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$678z4F3sNcAje6/VKmCX8OzcieJgVr7/h8C0WSdy.gvvKNK2dj.dq"], ["created_at", "2015-03-01 04:37:56.094922"], ["updated_at", "2015-03-01 04:37:56.094922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$GAFiLYO9cSz6q4uL0F6FD.G2mVoP7Qx/OTgQy/AJ.pHQvmQ5HPjLC"], ["created_at", "2015-03-01 04:37:56.099634"], ["updated_at", "2015-03-01 04:37:56.099634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:37:56.101533"], ["user_id", "bb15c916-bfcc-11e4-afbb-705681abff85"], ["created_at", "2015-03-01 04:37:56.103025"], ["updated_at", "2015-03-01 04:37:56.103025"], ["token", "L0drqPtiLm0yXdGfJ6JTmvVDh4YrnJ8unmX_be7-k0U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:37:56.106815"], ["updated_at", "2015-03-01 04:37:56.106815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb15c916-bfcc-11e4-afbb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb178e54-bfcc-11e4-88fd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb15c916-bfcc-11e4-afbb-705681abff85"], ["organization_id", "bb178e54-bfcc-11e4-88fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:37:56.110067"], ["updated_at", "2015-03-01 04:37:56.110067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb167c8a-bfcc-11e4-b36a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb178e54-bfcc-11e4-88fd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb167c8a-bfcc-11e4-b36a-705681abff85"], ["organization_id", "bb178e54-bfcc-11e4-88fd-705681abff85"], ["created_at", "2015-03-01 04:37:56.113170"], ["updated_at", "2015-03-01 04:37:56.113170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:37:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$F6DA.9FLhr8DXhYR.c/Cj.puHkrq.N2hoZZ9Kgcbxxk6foimx6D9i"], ["created_at", "2015-03-01 04:37:56.122791"], ["updated_at", "2015-03-01 04:37:56.122791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$y2Bz/pajT/VFVtpi6u1yaOKD0Yix.h.cJ4EUjY7V9Npvn2edwA9Ye"], ["created_at", "2015-03-01 04:37:56.126936"], ["updated_at", "2015-03-01 04:37:56.126936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:37:56.128459"], ["user_id", "bb1a0198-bfcc-11e4-a2bb-705681abff85"], ["created_at", "2015-03-01 04:37:56.129259"], ["updated_at", "2015-03-01 04:37:56.129259"], ["token", "l92XNyQh8t65ljex6Da-eMI60n0skWMu6IKiqu6Dg-4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:37:56.132695"], ["updated_at", "2015-03-01 04:37:56.132695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1a0198-bfcc-11e4-a2bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1b8bee-bfcc-11e4-8abe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb1a0198-bfcc-11e4-a2bb-705681abff85"], ["organization_id", "bb1b8bee-bfcc-11e4-8abe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:37:56.136487"], ["updated_at", "2015-03-01 04:37:56.136487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1a9f2c-bfcc-11e4-95e9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1b8bee-bfcc-11e4-8abe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb1a9f2c-bfcc-11e4-95e9-705681abff85"], ["organization_id", "bb1b8bee-bfcc-11e4-8abe-705681abff85"], ["created_at", "2015-03-01 04:37:56.139501"], ["updated_at", "2015-03-01 04:37:56.139501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bb1c16cc-bfcc-11e4-ba87-705681abff85" for 127.0.0.1 at 2015-02-28 20:37:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$vql.1wykcSBgS/jOXDZvVe6pZhdlt/M7n/CtRPWgXM.OpmdyaEhZq"], ["created_at", "2015-03-01 04:37:56.151024"], ["updated_at", "2015-03-01 04:37:56.151024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$OlJomCQ9oJipVciueRuim.UlNgNXys8.1siIxNzBHLk77Va2r9mnO"], ["created_at", "2015-03-01 04:37:56.155677"], ["updated_at", "2015-03-01 04:37:56.155677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:37:56.157323"], ["user_id", "bb1e502c-bfcc-11e4-b342-705681abff85"], ["created_at", "2015-03-01 04:37:56.158146"], ["updated_at", "2015-03-01 04:37:56.158146"], ["token", "LEfT3WAwN24AindWjaNM85l2tGC-BxljVUtfMV1ZF8w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:37:56.161505"], ["updated_at", "2015-03-01 04:37:56.161505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1e502c-bfcc-11e4-b342-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1fe770-bfcc-11e4-80f1-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb1e502c-bfcc-11e4-b342-705681abff85"], ["organization_id", "bb1fe770-bfcc-11e4-80f1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:37:56.164707"], ["updated_at", "2015-03-01 04:37:56.164707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1f06c0-bfcc-11e4-a2db-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1fe770-bfcc-11e4-80f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb1f06c0-bfcc-11e4-a2db-705681abff85"], ["organization_id", "bb1fe770-bfcc-11e4-80f1-705681abff85"], ["created_at", "2015-03-01 04:37:56.171026"], ["updated_at", "2015-03-01 04:37:56.171026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:37:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$JyixjZ6ES5h23dA.C4rUbuC6n4/GMAORFR/6b93HfynmqGt29Xe9y"], ["created_at", "2015-03-01 04:37:56.181143"], ["updated_at", "2015-03-01 04:37:56.181143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$udbOFSyCoxhcj8Bt9OeSfewh8hjYXvzcs8dN7YZEcZckcXOeic6h6"], ["created_at", "2015-03-01 04:37:56.185429"], ["updated_at", "2015-03-01 04:37:56.185429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:37:56.186928"], ["user_id", "bb22e9f2-bfcc-11e4-bd46-705681abff85"], ["created_at", "2015-03-01 04:37:56.188147"], ["updated_at", "2015-03-01 04:37:56.188147"], ["token", "69SZdHHGOfXrHinvpXHq-2Wx6WQpvHutoIonVC87dYQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:37:56.192595"], ["updated_at", "2015-03-01 04:37:56.192595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb22e9f2-bfcc-11e4-bd46-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb24a81e-bfcc-11e4-a612-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb22e9f2-bfcc-11e4-bd46-705681abff85"], ["organization_id", "bb24a81e-bfcc-11e4-a612-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:37:56.196025"], ["updated_at", "2015-03-01 04:37:56.196025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb238c7c-bfcc-11e4-b4bc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb24a81e-bfcc-11e4-a612-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb238c7c-bfcc-11e4-b4bc-705681abff85"], ["organization_id", "bb24a81e-bfcc-11e4-a612-705681abff85"], ["created_at", "2015-03-01 04:37:56.199887"], ["updated_at", "2015-03-01 04:37:56.199887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:37:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$7tt.lvcEDf6/wxlw7RryvO81fepZmL6JPXYvldvFv80N.XmVPRi26"], ["created_at", "2015-03-01 04:37:56.210534"], ["updated_at", "2015-03-01 04:37:56.210534"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$2gmu2kA1HxXTdaxoMFjA8eWzqKcRuVP9/s57gewv422KZ6LMvOPSG"], ["created_at", "2015-03-01 04:37:56.215388"], ["updated_at", "2015-03-01 04:37:56.215388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:37:56.217035"], ["user_id", "bb2764c8-bfcc-11e4-9c84-705681abff85"], ["created_at", "2015-03-01 04:37:56.217890"], ["updated_at", "2015-03-01 04:37:56.217890"], ["token", "-Ytm6e9MGFSH9NlNsEMFq9GPdybpUjYgwbsR1_xIBoM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:37:56.222139"], ["updated_at", "2015-03-01 04:37:56.222139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb2764c8-bfcc-11e4-9c84-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb292a74-bfcc-11e4-8897-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb2764c8-bfcc-11e4-9c84-705681abff85"], ["organization_id", "bb292a74-bfcc-11e4-8897-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:37:56.225578"], ["updated_at", "2015-03-01 04:37:56.225578"]]  (10.9ms) RELEASE SAVEPOINT active_record_1  (4.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb2821a6-bfcc-11e4-9807-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb292a74-bfcc-11e4-8897-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb2821a6-bfcc-11e4-9807-705681abff85"], ["organization_id", "bb292a74-bfcc-11e4-8897-705681abff85"], ["created_at", "2015-03-01 04:37:56.246666"], ["updated_at", "2015-03-01 04:37:56.246666"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/bb29adbe-bfcc-11e4-8584-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:37:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$cZ5BgqY0ntT95uFWmWaQxOR.jJ.0GrQoJlYpH3EfS3Ryx0yHaNhc6"], ["created_at", "2015-03-01 04:37:56.276251"], ["updated_at", "2015-03-01 04:37:56.276251"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$w.KFYUqjbChYcf2Ip9QebuDVDrF4JnaHaZZ1YOIsSPE/ni26HnyoG"], ["created_at", "2015-03-01 04:37:56.284268"], ["updated_at", "2015-03-01 04:37:56.284268"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:37:56.287250"], ["user_id", "bb31a0b4-bfcc-11e4-b93e-705681abff85"], ["created_at", "2015-03-01 04:37:56.288664"], ["updated_at", "2015-03-01 04:37:56.288664"], ["token", "hXcIHWM5va_Jq597wz4OZO17xXfe5X7VxCe_ThEGKQU"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:37:56.297834"], ["updated_at", "2015-03-01 04:37:56.297834"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (4.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb31a0b4-bfcc-11e4-b93e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb34cd3e-bfcc-11e4-acca-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb31a0b4-bfcc-11e4-b93e-705681abff85"], ["organization_id", "bb34cd3e-bfcc-11e4-acca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:37:56.309663"], ["updated_at", "2015-03-01 04:37:56.309663"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb32bdb4-bfcc-11e4-98c6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb34cd3e-bfcc-11e4-acca-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb32bdb4-bfcc-11e4-98c6-705681abff85"], ["organization_id", "bb34cd3e-bfcc-11e4-acca-705681abff85"], ["created_at", "2015-03-01 04:37:56.320039"], ["updated_at", "2015-03-01 04:37:56.320039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/bb383276-bfcc-11e4-869f-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:37:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$UBoa8LtjAyjhMXiM/0.VAuXD31Ld3Wm2Kjo9lK3wXGcKAXC4qXc/u"], ["created_at", "2015-03-01 04:37:56.333384"], ["updated_at", "2015-03-01 04:37:56.333384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$OxjtEOiBrHqiXnoIhi5.JuvkgKHt9UjddzVUffoDpyqGgMkevLGme"], ["created_at", "2015-03-01 04:37:56.341760"], ["updated_at", "2015-03-01 04:37:56.341760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:37:56.343641"], ["user_id", "bb3a2bd0-bfcc-11e4-befb-705681abff85"], ["created_at", "2015-03-01 04:37:56.344436"], ["updated_at", "2015-03-01 04:37:56.344436"], ["token", "KXF4J7UeEZxwvhm_GL6LxB-eVVS6ur1aza7igh1g0Cc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:37:56.348147"], ["updated_at", "2015-03-01 04:37:56.348147"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb3a2bd0-bfcc-11e4-befb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb3c6ec2-bfcc-11e4-8c58-705681abff85') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb3a2bd0-bfcc-11e4-befb-705681abff85"], ["organization_id", "bb3c6ec2-bfcc-11e4-8c58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:37:56.355278"], ["updated_at", "2015-03-01 04:37:56.355278"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb3b71d4-bfcc-11e4-8189-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb3c6ec2-bfcc-11e4-8c58-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb3b71d4-bfcc-11e4-8189-705681abff85"], ["organization_id", "bb3c6ec2-bfcc-11e4-8c58-705681abff85"], ["created_at", "2015-03-01 04:37:56.369238"], ["updated_at", "2015-03-01 04:37:56.369238"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:37:56 -0800  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$o0sIt4PdDfkP.AIxU2Bx3O1ZUreKR6MNLVi1iDYHMlAYAJHiT6PqK"], ["created_at", "2015-03-01 04:38:31.372652"], ["updated_at", "2015-03-01 04:38:31.372652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$4xjEX.UymAdi6cgi9hc6JeZgygdplKbuYN96KOEWkMZuPB/f.BOGS"], ["created_at", "2015-03-01 04:38:31.378551"], ["updated_at", "2015-03-01 04:38:31.378551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:31.387090"], ["user_id", "d01ce240-bfcc-11e4-a5d6-705681abff85"], ["created_at", "2015-03-01 04:38:31.394088"], ["updated_at", "2015-03-01 04:38:31.394088"], ["token", "VBJSySr66aio-M6NWpqwIDs-_7sxf1OIWLssZraw-bI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:31.403499"], ["updated_at", "2015-03-01 04:38:31.403499"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd01ce240-bfcc-11e4-a5d6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd021745e-bfcc-11e4-ab4d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d01ce240-bfcc-11e4-a5d6-705681abff85"], ["organization_id", "d021745e-bfcc-11e4-ab4d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:31.451037"], ["updated_at", "2015-03-01 04:38:31.451037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd01d9da2-bfcc-11e4-8da3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd021745e-bfcc-11e4-ab4d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d01d9da2-bfcc-11e4-8da3-705681abff85"], ["organization_id", "d021745e-bfcc-11e4-ab4d-705681abff85"], ["created_at", "2015-03-01 04:38:31.455206"], ["updated_at", "2015-03-01 04:38:31.455206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:38:31 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:31.477768' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VBJSySr66aio-M6NWpqwIDs-_7sxf1OIWLssZraw-bI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:31.487972"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:31.489307"], ["id", "d02012b2-bfcc-11e4-839d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d01ce240-bfcc-11e4-a5d6-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d01ce240-bfcc-11e4-a5d6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d01ce240-bfcc-11e4-a5d6-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "d01ce240-bfcc-11e4-a5d6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d021745e-bfcc-11e4-ab4d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d01ce240-bfcc-11e4-a5d6-705681abff85"]] Completed 200 OK in 41ms (Views: 7.9ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (6.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$0lI38vzAyreIA9N8CKzGFutK3LqlRbNTo0dNK/SNTJMZqdHO3IE7a"], ["created_at", "2015-03-01 04:38:31.528639"], ["updated_at", "2015-03-01 04:38:31.528639"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$RajjGIDKQ6IVQvPN5X/MLOyGSML7jgH/W3aM/zcINGsowPd2NRCJm"], ["created_at", "2015-03-01 04:38:31.540155"], ["updated_at", "2015-03-01 04:38:31.540155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:31.541746"], ["user_id", "d0348f12-bfcc-11e4-88d7-705681abff85"], ["created_at", "2015-03-01 04:38:31.542502"], ["updated_at", "2015-03-01 04:38:31.542502"], ["token", "rOVeE8C1FIgoM781Ou97qgnDKYbnoZQbnuImwg4A4Sk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:31.545861"], ["updated_at", "2015-03-01 04:38:31.545861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0348f12-bfcc-11e4-88d7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd037365e-bfcc-11e4-8850-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0348f12-bfcc-11e4-88d7-705681abff85"], ["organization_id", "d037365e-bfcc-11e4-8850-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:31.551151"], ["updated_at", "2015-03-01 04:38:31.551151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd036444c-bfcc-11e4-b11b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd037365e-bfcc-11e4-8850-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d036444c-bfcc-11e4-b11b-705681abff85"], ["organization_id", "d037365e-bfcc-11e4-8850-705681abff85"], ["created_at", "2015-03-01 04:38:31.554943"], ["updated_at", "2015-03-01 04:38:31.554943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:38:31 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$4gQH.cZQZZOdlaDOOJSqie9vJOSyY9TksPJiqhdEOtn1bh1d4ezam"], ["created_at", "2015-03-01 04:38:31.569704"], ["updated_at", "2015-03-01 04:38:31.569704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$pSkOOxQtsTW7Zq3ZvznXW.0saAfgIi.Lmr0vv8TOKy.kNFvoOrhJa"], ["created_at", "2015-03-01 04:38:31.575804"], ["updated_at", "2015-03-01 04:38:31.575804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:31.577574"], ["user_id", "d03af8a2-bfcc-11e4-b73c-705681abff85"], ["created_at", "2015-03-01 04:38:31.578372"], ["updated_at", "2015-03-01 04:38:31.578372"], ["token", "k02ZuKIoK39AXq19-RSympu7fvyVPqSkpiQslAjyghA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:31.581718"], ["updated_at", "2015-03-01 04:38:31.581718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd03af8a2-bfcc-11e4-b73c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd03c9978-bfcc-11e4-be35-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d03af8a2-bfcc-11e4-b73c-705681abff85"], ["organization_id", "d03c9978-bfcc-11e4-be35-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:31.585602"], ["updated_at", "2015-03-01 04:38:31.585602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd03bb74c-bfcc-11e4-a08e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd03c9978-bfcc-11e4-be35-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d03bb74c-bfcc-11e4-a08e-705681abff85"], ["organization_id", "d03c9978-bfcc-11e4-be35-705681abff85"], ["created_at", "2015-03-01 04:38:31.588830"], ["updated_at", "2015-03-01 04:38:31.588830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/d03d3284-bfcc-11e4-a0f2-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:38:31 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"d03d3284-bfcc-11e4-a0f2-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:31.595331' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k02ZuKIoK39AXq19-RSympu7fvyVPqSkpiQslAjyghA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:31.596849"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:31.597897"], ["id", "d03c1e94-bfcc-11e4-ad52-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d03af8a2-bfcc-11e4-b73c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d03af8a2-bfcc-11e4-b73c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd03af8a2-bfcc-11e4-b73c-705681abff85' LIMIT 1 [["organization_id", "d03c9978-bfcc-11e4-be35-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d03c9978-bfcc-11e4-be35-705681abff85"], ["id", "d03d3284-bfcc-11e4-a0f2-705681abff85"]] Completed 500 Internal Server Error in 16ms  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$4YcSPl.5j4wdNDdCkM54mePo62rOiQCQF18xb585/0w.vAY67dAKa"], ["created_at", "2015-03-01 04:38:31.619342"], ["updated_at", "2015-03-01 04:38:31.619342"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$vT1OFrohYQCCKknf6v0DpeHl1p9yyccEbYkAy.Wpz8xG8SM2z53Su"], ["created_at", "2015-03-01 04:38:31.628459"], ["updated_at", "2015-03-01 04:38:31.628459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:31.630172"], ["user_id", "d042b43e-bfcc-11e4-a83a-705681abff85"], ["created_at", "2015-03-01 04:38:31.631199"], ["updated_at", "2015-03-01 04:38:31.631199"], ["token", "MxwXs6QLOnoVVnToMAhz1CBjsz_dayQgH7jTgHDCquU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:31.635346"], ["updated_at", "2015-03-01 04:38:31.635346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd042b43e-bfcc-11e4-a83a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd044d714-bfcc-11e4-8616-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d042b43e-bfcc-11e4-a83a-705681abff85"], ["organization_id", "d044d714-bfcc-11e4-8616-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:31.640574"], ["updated_at", "2015-03-01 04:38:31.640574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd043bf96-bfcc-11e4-8292-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd044d714-bfcc-11e4-8616-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d043bf96-bfcc-11e4-8292-705681abff85"], ["organization_id", "d044d714-bfcc-11e4-8616-705681abff85"], ["created_at", "2015-03-01 04:38:31.644360"], ["updated_at", "2015-03-01 04:38:31.644360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/d04627c2-bfcc-11e4-b98a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:38:31 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"d04627c2-bfcc-11e4-b98a-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:31.649101' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MxwXs6QLOnoVVnToMAhz1CBjsz_dayQgH7jTgHDCquU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:31.650498"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:31.651450"], ["id", "d0443bba-bfcc-11e4-aee2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d042b43e-bfcc-11e4-a83a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d042b43e-bfcc-11e4-a83a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd042b43e-bfcc-11e4-a83a-705681abff85' LIMIT 1 [["organization_id", "d044d714-bfcc-11e4-8616-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d044d714-bfcc-11e4-8616-705681abff85"], ["id", "d04627c2-bfcc-11e4-b98a-705681abff85"]]  (0.3ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d043bf96-bfcc-11e4-8292-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d044d714-bfcc-11e4-8616-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd043bf96-bfcc-11e4-8292-705681abff85' AND "clubhouse_memberships"."id" != 'd04627c2-bfcc-11e4-b98a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd044d714-bfcc-11e4-8616-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:38:31.661231"], ["id", "d04627c2-bfcc-11e4-b98a-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 1.6ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$jn4ml87IUwDidvHuM7hHxOIaUl5Jc9FITILOzx7KCJBZa3U3dE75O"], ["created_at", "2015-03-01 04:38:31.671376"], ["updated_at", "2015-03-01 04:38:31.671376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Ze9MWnhS9ZC9Vfaw3xqg2ujmVapo/HdNhZM6QjHBMPuG/podnmHle"], ["created_at", "2015-03-01 04:38:31.675945"], ["updated_at", "2015-03-01 04:38:31.675945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:31.678155"], ["user_id", "d04a48fc-bfcc-11e4-b4ff-705681abff85"], ["created_at", "2015-03-01 04:38:31.679389"], ["updated_at", "2015-03-01 04:38:31.679389"], ["token", "lbmGRKe0gnpldcbPK_6Ha0ZE8mNbCJbuKA1T-KO96H8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:31.684714"], ["updated_at", "2015-03-01 04:38:31.684714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd04a48fc-bfcc-11e4-b4ff-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd04c564c-bfcc-11e4-a863-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d04a48fc-bfcc-11e4-b4ff-705681abff85"], ["organization_id", "d04c564c-bfcc-11e4-a863-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:31.688603"], ["updated_at", "2015-03-01 04:38:31.688603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd04afc20-bfcc-11e4-86ea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd04c564c-bfcc-11e4-a863-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d04afc20-bfcc-11e4-86ea-705681abff85"], ["organization_id", "d04c564c-bfcc-11e4-a863-705681abff85"], ["created_at", "2015-03-01 04:38:31.691756"], ["updated_at", "2015-03-01 04:38:31.691756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:38:31 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:31.696734' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lbmGRKe0gnpldcbPK_6Ha0ZE8mNbCJbuKA1T-KO96H8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:31.698424"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:31.699647"], ["id", "d04bb1d8-bfcc-11e4-aaa2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d04a48fc-bfcc-11e4-b4ff-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d04a48fc-bfcc-11e4-b4ff-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd04a48fc-bfcc-11e4-b4ff-705681abff85' LIMIT 1 [["organization_id", "d04c564c-bfcc-11e4-a863-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "d04c564c-bfcc-11e4-a863-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d04c564c-bfcc-11e4-a863-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d04a48fc-bfcc-11e4-b4ff-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d04c564c-bfcc-11e4-a863-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d04afc20-bfcc-11e4-86ea-705681abff85"]] Completed 200 OK in 15ms (Views: 4.6ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$wPCe5AWDGtjD/QvAZou6tebIZb1CY0nw7bWgnibqZUUgiCfLbCSwi"], ["created_at", "2015-03-01 04:38:31.718677"], ["updated_at", "2015-03-01 04:38:31.718677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$wy1CCOOVO1YBsBX1h2gyw.vAQZYYS/lYWjFNHmc6m/S6253QkPd5m"], ["created_at", "2015-03-01 04:38:31.722949"], ["updated_at", "2015-03-01 04:38:31.722949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:31.724565"], ["user_id", "d05182e8-bfcc-11e4-b197-705681abff85"], ["created_at", "2015-03-01 04:38:31.725412"], ["updated_at", "2015-03-01 04:38:31.725412"], ["token", "aU2yqLqcPkfalgLjY2OMjM2onakFAYv3qhA7Ccf26-g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:31.728905"], ["updated_at", "2015-03-01 04:38:31.728905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd05182e8-bfcc-11e4-b197-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd05310b8-bfcc-11e4-a152-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d05182e8-bfcc-11e4-b197-705681abff85"], ["organization_id", "d05310b8-bfcc-11e4-a152-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:31.732237"], ["updated_at", "2015-03-01 04:38:31.732237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0522752-bfcc-11e4-902c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd05310b8-bfcc-11e4-a152-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d0522752-bfcc-11e4-902c-705681abff85"], ["organization_id", "d05310b8-bfcc-11e4-a152-705681abff85"], ["created_at", "2015-03-01 04:38:31.735863"], ["updated_at", "2015-03-01 04:38:31.735863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/d0542520-bfcc-11e4-8da7-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:38:31 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"d0542520-bfcc-11e4-8da7-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:31.740606' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aU2yqLqcPkfalgLjY2OMjM2onakFAYv3qhA7Ccf26-g"]]  (0.2ms) SAVEPOINT active_record_1 SQL (2.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:31.742501"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:31.744452"], ["id", "d052925a-bfcc-11e4-bfed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d05182e8-bfcc-11e4-b197-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d05182e8-bfcc-11e4-b197-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd05182e8-bfcc-11e4-b197-705681abff85' LIMIT 1 [["organization_id", "d05310b8-bfcc-11e4-a152-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d05310b8-bfcc-11e4-a152-705681abff85"], ["id", "d0542520-bfcc-11e4-8da7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d05310b8-bfcc-11e4-a152-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d0522752-bfcc-11e4-902c-705681abff85"]] Completed 200 OK in 18ms (Views: 2.4ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$UFE7Mqwa5svhXVplBHR9jeqTSuRA61FzkBOP2QsPvZD53SYQKlhN."], ["created_at", "2015-03-01 04:38:31.764635"], ["updated_at", "2015-03-01 04:38:31.764635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Bvcd/bl4wf.og91doiHXVus8vwh0BXy.UGKdAjBQ0v4MtcQyjAm1a"], ["created_at", "2015-03-01 04:38:31.770112"], ["updated_at", "2015-03-01 04:38:31.770112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:31.771754"], ["user_id", "d05887fa-bfcc-11e4-9687-705681abff85"], ["created_at", "2015-03-01 04:38:31.772538"], ["updated_at", "2015-03-01 04:38:31.772538"], ["token", "5w8zJq0JcfnxSJGc16wd2pJhaejCbo1W5pbmvFPBhf0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:31.775912"], ["updated_at", "2015-03-01 04:38:31.775912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd05887fa-bfcc-11e4-9687-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd05a3cd0-bfcc-11e4-93a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d05887fa-bfcc-11e4-9687-705681abff85"], ["organization_id", "d05a3cd0-bfcc-11e4-93a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:31.779366"], ["updated_at", "2015-03-01 04:38:31.779366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0595c7a-bfcc-11e4-aac1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd05a3cd0-bfcc-11e4-93a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d0595c7a-bfcc-11e4-aac1-705681abff85"], ["organization_id", "d05a3cd0-bfcc-11e4-93a6-705681abff85"], ["created_at", "2015-03-01 04:38:31.783489"], ["updated_at", "2015-03-01 04:38:31.783489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:38:31 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$R2lYIrMmY5sRL6zYlYUJ4OMd61PluK1I.gtRf7gTgC.dTphVN7bpq"], ["created_at", "2015-03-01 04:38:31.798948"], ["updated_at", "2015-03-01 04:38:31.798948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$IxaUnBsEuENwkiLK1ZcQ8OxSE.uytMGLAn8m/uWR0lTpATftrvC52"], ["created_at", "2015-03-01 04:38:31.804484"], ["updated_at", "2015-03-01 04:38:31.804484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:31.806200"], ["user_id", "d05dc936-bfcc-11e4-8f81-705681abff85"], ["created_at", "2015-03-01 04:38:31.807047"], ["updated_at", "2015-03-01 04:38:31.807047"], ["token", "M1r9BMOTdVh1mLz3zospYRhzr3n8mxJ01IF8X6KlQqU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:31.810502"], ["updated_at", "2015-03-01 04:38:31.810502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd05dc936-bfcc-11e4-8f81-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd05f8384-bfcc-11e4-9c22-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d05dc936-bfcc-11e4-8f81-705681abff85"], ["organization_id", "d05f8384-bfcc-11e4-9c22-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:31.822872"], ["updated_at", "2015-03-01 04:38:31.822872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd05e9c80-bfcc-11e4-9027-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd05f8384-bfcc-11e4-9c22-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d05e9c80-bfcc-11e4-9027-705681abff85"], ["organization_id", "d05f8384-bfcc-11e4-9c22-705681abff85"], ["created_at", "2015-03-01 04:38:31.826713"], ["updated_at", "2015-03-01 04:38:31.826713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/d06171a8-bfcc-11e4-805b-705681abff85" for 127.0.0.1 at 2015-02-28 20:38:31 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"d06171a8-bfcc-11e4-805b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:31.831750' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M1r9BMOTdVh1mLz3zospYRhzr3n8mxJ01IF8X6KlQqU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:31.833289"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:31.834308"], ["id", "d05f04fe-bfcc-11e4-88b1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d05dc936-bfcc-11e4-8f81-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d05dc936-bfcc-11e4-8f81-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d05dc936-bfcc-11e4-8f81-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "d05dc936-bfcc-11e4-8f81-705681abff85"], ["id", "d06171a8-bfcc-11e4-805b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d05f8384-bfcc-11e4-9c22-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d05dc936-bfcc-11e4-8f81-705681abff85"]] Completed 200 OK in 15ms (Views: 2.8ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$AO029q9ohSibdw2eLJjeRuMXW6IJDACgp41A2f8u6SfHpwF2oju0y"], ["created_at", "2015-03-01 04:38:31.862743"], ["updated_at", "2015-03-01 04:38:31.862743"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$MNmbr9Icz2Kg/t/scnhCye6AfMCucTlXyhJwrbIOSABdhwU/YonXq"], ["created_at", "2015-03-01 04:38:31.871466"], ["updated_at", "2015-03-01 04:38:31.871466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:31.873114"], ["user_id", "d067a1ae-bfcc-11e4-aee7-705681abff85"], ["created_at", "2015-03-01 04:38:31.873891"], ["updated_at", "2015-03-01 04:38:31.873891"], ["token", "2X1dOJSxBQZlAPhzTNEKeurgsAX2aGfhUXDC7tOw4hQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:31.877245"], ["updated_at", "2015-03-01 04:38:31.877245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd067a1ae-bfcc-11e4-aee7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd069b0d4-bfcc-11e4-871e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d067a1ae-bfcc-11e4-aee7-705681abff85"], ["organization_id", "d069b0d4-bfcc-11e4-871e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:31.880804"], ["updated_at", "2015-03-01 04:38:31.880804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd068d182-bfcc-11e4-a544-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd069b0d4-bfcc-11e4-871e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d068d182-bfcc-11e4-a544-705681abff85"], ["organization_id", "d069b0d4-bfcc-11e4-871e-705681abff85"], ["created_at", "2015-03-01 04:38:31.884491"], ["updated_at", "2015-03-01 04:38:31.884491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:38:31 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$KNVtsWcpfBmUkgPJymVm1uAhx66FrAC42vKTumOQDPc8XBg42.8n6"], ["created_at", "2015-03-01 04:38:46.651361"], ["updated_at", "2015-03-01 04:38:46.651361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$GAZdxBou925P/FGUqcJIIO2n.ZmRMiHX9RrE5gismrgnRepi08h1S"], ["created_at", "2015-03-01 04:38:46.658402"], ["updated_at", "2015-03-01 04:38:46.658402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:46.666713"], ["user_id", "d9385102-bfcc-11e4-bfab-705681abff85"], ["created_at", "2015-03-01 04:38:46.672508"], ["updated_at", "2015-03-01 04:38:46.672508"], ["token", "xXHjlyJo0XWN7XzeywzvWJfVNMec1k0fVAk8MSorNm8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:46.695952"], ["updated_at", "2015-03-01 04:38:46.695952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd9385102-bfcc-11e4-bfab-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd93eea9e-bfcc-11e4-9c8c-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d9385102-bfcc-11e4-bfab-705681abff85"], ["organization_id", "d93eea9e-bfcc-11e4-9c8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:46.749834"], ["updated_at", "2015-03-01 04:38:46.749834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd939260e-bfcc-11e4-b2d8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd93eea9e-bfcc-11e4-9c8c-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d939260e-bfcc-11e4-b2d8-705681abff85"], ["organization_id", "d93eea9e-bfcc-11e4-9c8c-705681abff85"], ["created_at", "2015-03-01 04:38:46.758030"], ["updated_at", "2015-03-01 04:38:46.758030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:38:46 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:46.785717' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xXHjlyJo0XWN7XzeywzvWJfVNMec1k0fVAk8MSorNm8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:46.792799"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:46.794237"], ["id", "d93bbed2-bfcc-11e4-b6b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d9385102-bfcc-11e4-bfab-705681abff85"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d9385102-bfcc-11e4-bfab-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd9385102-bfcc-11e4-bfab-705681abff85' LIMIT 1 [["organization_id", "d93eea9e-bfcc-11e4-9c8c-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "d93eea9e-bfcc-11e4-9c8c-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d93eea9e-bfcc-11e4-9c8c-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d9385102-bfcc-11e4-bfab-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d93eea9e-bfcc-11e4-9c8c-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d939260e-bfcc-11e4-b2d8-705681abff85"]] Completed 200 OK in 66ms (Views: 16.2ms | ActiveRecord: 3.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$n6bbCfNuB2mZc6emDIRLJ.xn1/dQzOr0xj0xyumz1gcFeaKD7zHd."], ["created_at", "2015-03-01 04:38:46.862165"], ["updated_at", "2015-03-01 04:38:46.862165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ob95fc8TcKnH0/P1wTLBfO.RIgzHLqsEUHND/o8AQjG3CZeq4r8X6"], ["created_at", "2015-03-01 04:38:46.867626"], ["updated_at", "2015-03-01 04:38:46.867626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:46.874400"], ["user_id", "d9583ed6-bfcc-11e4-89fd-705681abff85"], ["created_at", "2015-03-01 04:38:46.875453"], ["updated_at", "2015-03-01 04:38:46.875453"], ["token", "a_Ed-wnpbscVIBSgiB-BN7QO2-K5m-vy9krXPtuONKk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:46.880465"], ["updated_at", "2015-03-01 04:38:46.880465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd9583ed6-bfcc-11e4-89fd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd95b0918-bfcc-11e4-9454-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d9583ed6-bfcc-11e4-89fd-705681abff85"], ["organization_id", "d95b0918-bfcc-11e4-9454-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:46.884393"], ["updated_at", "2015-03-01 04:38:46.884393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd959bd4c-bfcc-11e4-b923-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd95b0918-bfcc-11e4-9454-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d959bd4c-bfcc-11e4-b923-705681abff85"], ["organization_id", "d95b0918-bfcc-11e4-9454-705681abff85"], ["created_at", "2015-03-01 04:38:46.889614"], ["updated_at", "2015-03-01 04:38:46.889614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:38:46 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:46.898428' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "a_Ed-wnpbscVIBSgiB-BN7QO2-K5m-vy9krXPtuONKk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:46.902595"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:46.903677"], ["id", "d95a4d0c-bfcc-11e4-b6fe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d9583ed6-bfcc-11e4-89fd-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d9583ed6-bfcc-11e4-89fd-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d9583ed6-bfcc-11e4-89fd-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "d9583ed6-bfcc-11e4-89fd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d95b0918-bfcc-11e4-9454-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d9583ed6-bfcc-11e4-89fd-705681abff85"]] Completed 200 OK in 16ms (Views: 4.0ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$jWa02Ah0bGY6tAeface3reYyVp096Lyte.1uZBSAA5PTH0zhrYGPO"], ["created_at", "2015-03-01 04:38:46.923721"], ["updated_at", "2015-03-01 04:38:46.923721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$OdxsBxL8gJJXLBPm8sE5zuj1/aEOGBmn8mmwD9e5/BKm.mSqjibFy"], ["created_at", "2015-03-01 04:38:46.929722"], ["updated_at", "2015-03-01 04:38:46.929722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:46.931894"], ["user_id", "d961a534-bfcc-11e4-b9c1-705681abff85"], ["created_at", "2015-03-01 04:38:46.932713"], ["updated_at", "2015-03-01 04:38:46.932713"], ["token", "QPa_S9efVmng7w3-ddulnh1-002TcCq3uEPyeQtgF50"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:46.936560"], ["updated_at", "2015-03-01 04:38:46.936560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd961a534-bfcc-11e4-b9c1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd9639934-bfcc-11e4-8714-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d961a534-bfcc-11e4-b9c1-705681abff85"], ["organization_id", "d9639934-bfcc-11e4-8714-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:46.940915"], ["updated_at", "2015-03-01 04:38:46.940915"]]  (7.3ms) RELEASE SAVEPOINT active_record_1  (3.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd9629746-bfcc-11e4-a3b4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd9639934-bfcc-11e4-8714-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d9629746-bfcc-11e4-a3b4-705681abff85"], ["organization_id", "d9639934-bfcc-11e4-8714-705681abff85"], ["created_at", "2015-03-01 04:38:46.959835"], ["updated_at", "2015-03-01 04:38:46.959835"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/d9644b04-bfcc-11e4-868d-705681abff85" for 127.0.0.1 at 2015-02-28 20:38:46 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"d9644b04-bfcc-11e4-868d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:46.967143' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QPa_S9efVmng7w3-ddulnh1-002TcCq3uEPyeQtgF50"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:46.968773"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:46.970771"], ["id", "d96307da-bfcc-11e4-99bd-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d961a534-bfcc-11e4-b9c1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d961a534-bfcc-11e4-b9c1-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d961a534-bfcc-11e4-b9c1-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "d961a534-bfcc-11e4-b9c1-705681abff85"], ["id", "d9644b04-bfcc-11e4-868d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d9639934-bfcc-11e4-8714-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d961a534-bfcc-11e4-b9c1-705681abff85"]] Completed 200 OK in 14ms (Views: 2.9ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$k5YdAALiHUjrMYfgz7MCduuCQaorEM/4AYOnIwi4wdj9AiUs6SbbW"], ["created_at", "2015-03-01 04:38:46.987909"], ["updated_at", "2015-03-01 04:38:46.987909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ali7smI9SZxVnrdyoIsY6..UrhzX/HG13he34sB7Upf9aIO2MnupC"], ["created_at", "2015-03-01 04:38:46.992063"], ["updated_at", "2015-03-01 04:38:46.992063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:46.993797"], ["user_id", "d96b6786-bfcc-11e4-abbc-705681abff85"], ["created_at", "2015-03-01 04:38:46.994625"], ["updated_at", "2015-03-01 04:38:46.994625"], ["token", "WcaditQ-u-eQa9Mp6ZfQywDGJFkjRtr2EI7V0kdUonk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:46.998982"], ["updated_at", "2015-03-01 04:38:46.998982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd96b6786-bfcc-11e4-abbc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd96d1892-bfcc-11e4-bb14-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d96b6786-bfcc-11e4-abbc-705681abff85"], ["organization_id", "d96d1892-bfcc-11e4-bb14-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:47.002317"], ["updated_at", "2015-03-01 04:38:47.002317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd96c0c4a-bfcc-11e4-bc41-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd96d1892-bfcc-11e4-bb14-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d96c0c4a-bfcc-11e4-bc41-705681abff85"], ["organization_id", "d96d1892-bfcc-11e4-bb14-705681abff85"], ["created_at", "2015-03-01 04:38:47.005283"], ["updated_at", "2015-03-01 04:38:47.005283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:38:47 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Fxepcyhh0ZGMvUje1egFNuHN9WEgq5S2YBAc8bUNnOZ9cHQXj.xxi"], ["created_at", "2015-03-01 04:38:47.017736"], ["updated_at", "2015-03-01 04:38:47.017736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$zFDCZBtYLM/KL7VmWTLF5eMheqsu1we1Bdb/hEMKWfFgBDgMWcbuS"], ["created_at", "2015-03-01 04:38:47.023102"], ["updated_at", "2015-03-01 04:38:47.023102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:47.024753"], ["user_id", "d97003b8-bfcc-11e4-8e22-705681abff85"], ["created_at", "2015-03-01 04:38:47.025535"], ["updated_at", "2015-03-01 04:38:47.025535"], ["token", "9ZE5dW4VL2xo5oGuw3X-MFtjJGY9mtgjiO_nI6gIK7o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:47.029082"], ["updated_at", "2015-03-01 04:38:47.029082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd97003b8-bfcc-11e4-8e22-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd971ae2a-bfcc-11e4-b245-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d97003b8-bfcc-11e4-8e22-705681abff85"], ["organization_id", "d971ae2a-bfcc-11e4-b245-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:47.032626"], ["updated_at", "2015-03-01 04:38:47.032626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd970c5d2-bfcc-11e4-a0c6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd971ae2a-bfcc-11e4-b245-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d970c5d2-bfcc-11e4-a0c6-705681abff85"], ["organization_id", "d971ae2a-bfcc-11e4-b245-705681abff85"], ["created_at", "2015-03-01 04:38:47.035948"], ["updated_at", "2015-03-01 04:38:47.035948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/d972bba8-bfcc-11e4-bec1-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:38:47 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"d972bba8-bfcc-11e4-bec1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:47.040581' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9ZE5dW4VL2xo5oGuw3X-MFtjJGY9mtgjiO_nI6gIK7o"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:47.042019"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:47.043209"], ["id", "d97132d8-bfcc-11e4-9913-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d97003b8-bfcc-11e4-8e22-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d97003b8-bfcc-11e4-8e22-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd97003b8-bfcc-11e4-8e22-705681abff85' LIMIT 1 [["organization_id", "d971ae2a-bfcc-11e4-b245-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d971ae2a-bfcc-11e4-b245-705681abff85"], ["id", "d972bba8-bfcc-11e4-bec1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d971ae2a-bfcc-11e4-b245-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d970c5d2-bfcc-11e4-a0c6-705681abff85"]] Completed 200 OK in 12ms (Views: 2.2ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$MYvIDcnOuXFqNvLZCYDz3.XRhgIKiSQYeTZ5J257Rf0w/N3TrC4wy"], ["created_at", "2015-03-01 04:38:47.059933"], ["updated_at", "2015-03-01 04:38:47.059933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$0Pcw/yDxezKQMID5V9GR2uWys1bXi6pX1Qn0G9fj1faUC6Fh8fgoS"], ["created_at", "2015-03-01 04:38:47.064920"], ["updated_at", "2015-03-01 04:38:47.064920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:47.066539"], ["user_id", "d9766b2c-bfcc-11e4-82de-705681abff85"], ["created_at", "2015-03-01 04:38:47.067322"], ["updated_at", "2015-03-01 04:38:47.067322"], ["token", "SB863qqmwzE-rkXnYg9ewaFlDCOC5whiVvJfPvffws4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:47.070855"], ["updated_at", "2015-03-01 04:38:47.070855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd9766b2c-bfcc-11e4-82de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd9780fcc-bfcc-11e4-923b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d9766b2c-bfcc-11e4-82de-705681abff85"], ["organization_id", "d9780fcc-bfcc-11e4-923b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:47.074239"], ["updated_at", "2015-03-01 04:38:47.074239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd9772850-bfcc-11e4-886b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd9780fcc-bfcc-11e4-923b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d9772850-bfcc-11e4-886b-705681abff85"], ["organization_id", "d9780fcc-bfcc-11e4-923b-705681abff85"], ["created_at", "2015-03-01 04:38:47.077390"], ["updated_at", "2015-03-01 04:38:47.077390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:38:47 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$unNn.m0eESvmfl4.B74PBOpwRNvyvi0ZOq8MYFHaEDcyxoZuhp4Ua"], ["created_at", "2015-03-01 04:38:47.092490"], ["updated_at", "2015-03-01 04:38:47.092490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$POlpxv7cztWvZFflWcE0qukXdlfkfjIerBnVImuGc4fm3U3z4fgeW"], ["created_at", "2015-03-01 04:38:47.097810"], ["updated_at", "2015-03-01 04:38:47.097810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:47.099483"], ["user_id", "d97b6262-bfcc-11e4-91d6-705681abff85"], ["created_at", "2015-03-01 04:38:47.100272"], ["updated_at", "2015-03-01 04:38:47.100272"], ["token", "TyFk9SFgNh5Y_T8n1SE4lK5G1PJVTp5vZegcelmGqhI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:47.103711"], ["updated_at", "2015-03-01 04:38:47.103711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd97b6262-bfcc-11e4-91d6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd97d1ab2-bfcc-11e4-87a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d97b6262-bfcc-11e4-91d6-705681abff85"], ["organization_id", "d97d1ab2-bfcc-11e4-87a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:47.107478"], ["updated_at", "2015-03-01 04:38:47.107478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd97c2ef4-bfcc-11e4-a3bd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd97d1ab2-bfcc-11e4-87a9-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d97c2ef4-bfcc-11e4-a3bd-705681abff85"], ["organization_id", "d97d1ab2-bfcc-11e4-87a9-705681abff85"], ["created_at", "2015-03-01 04:38:47.110576"], ["updated_at", "2015-03-01 04:38:47.110576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:38:47 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$PIPqpLMW9bwuxfPAn5.wGu/dKfwquCVwzkiW4d8dsJCMIDSyIW3vi"], ["created_at", "2015-03-01 04:38:47.126946"], ["updated_at", "2015-03-01 04:38:47.126946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$qVYAknBTjdP6kX7eMbxIf.QxieJ9yfQ2zdAm210vujjFwSRHleVje"], ["created_at", "2015-03-01 04:38:47.131893"], ["updated_at", "2015-03-01 04:38:47.131893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:47.133589"], ["user_id", "d980a8b2-bfcc-11e4-86dd-705681abff85"], ["created_at", "2015-03-01 04:38:47.134428"], ["updated_at", "2015-03-01 04:38:47.134428"], ["token", "EQLb3-MaVTEdFsGrgxq0hXHUDPfxsJ7Joy2zq3N1pd8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:47.137795"], ["updated_at", "2015-03-01 04:38:47.137795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd980a8b2-bfcc-11e4-86dd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd982467c-bfcc-11e4-8455-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d980a8b2-bfcc-11e4-86dd-705681abff85"], ["organization_id", "d982467c-bfcc-11e4-8455-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:47.141237"], ["updated_at", "2015-03-01 04:38:47.141237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd981616c-bfcc-11e4-8367-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd982467c-bfcc-11e4-8455-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d981616c-bfcc-11e4-8367-705681abff85"], ["organization_id", "d982467c-bfcc-11e4-8455-705681abff85"], ["created_at", "2015-03-01 04:38:47.144725"], ["updated_at", "2015-03-01 04:38:47.144725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/d982ccbe-bfcc-11e4-9c44-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:38:47 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"d982ccbe-bfcc-11e4-9c44-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:47.151946' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EQLb3-MaVTEdFsGrgxq0hXHUDPfxsJ7Joy2zq3N1pd8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:47.161265"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:47.162503"], ["id", "d981cb0c-bfcc-11e4-bece-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d980a8b2-bfcc-11e4-86dd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d980a8b2-bfcc-11e4-86dd-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd980a8b2-bfcc-11e4-86dd-705681abff85' LIMIT 1 [["organization_id", "d982467c-bfcc-11e4-8455-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d982467c-bfcc-11e4-8455-705681abff85"], ["id", "d982ccbe-bfcc-11e4-9c44-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d980a8b2-bfcc-11e4-86dd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d982467c-bfcc-11e4-8455-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd980a8b2-bfcc-11e4-86dd-705681abff85' AND "clubhouse_memberships"."id" != 'd982ccbe-bfcc-11e4-9c44-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd982467c-bfcc-11e4-8455-705681abff85') LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 23ms (Views: 1.1ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$1C6M9.b/WC/V6vfaiuKb../ayCw6IZvdlTRuo3VDgLnvy.q5fUfhS"], ["created_at", "2015-03-01 04:38:47.180141"], ["updated_at", "2015-03-01 04:38:47.180141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$9OWTwlhGS9WalinH8FQcl.rseVQWaq.fcZeh7u.tGZ2/SE9zCtGiC"], ["created_at", "2015-03-01 04:38:47.184473"], ["updated_at", "2015-03-01 04:38:47.184473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:38:47.185986"], ["user_id", "d988bcfa-bfcc-11e4-9c4f-705681abff85"], ["created_at", "2015-03-01 04:38:47.186731"], ["updated_at", "2015-03-01 04:38:47.186731"], ["token", "1vm2LvfgAXOvdBn2-DVEVEDjr2nHX-e8Cif9POYCIIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:38:47.190012"], ["updated_at", "2015-03-01 04:38:47.190012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd988bcfa-bfcc-11e4-9c4f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd98a3c9c-bfcc-11e4-b406-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d988bcfa-bfcc-11e4-9c4f-705681abff85"], ["organization_id", "d98a3c9c-bfcc-11e4-b406-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:38:47.193265"], ["updated_at", "2015-03-01 04:38:47.193265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd98962ea-bfcc-11e4-9a04-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd98a3c9c-bfcc-11e4-b406-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d98962ea-bfcc-11e4-9a04-705681abff85"], ["organization_id", "d98a3c9c-bfcc-11e4-b406-705681abff85"], ["created_at", "2015-03-01 04:38:47.196700"], ["updated_at", "2015-03-01 04:38:47.196700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/d98b4380-bfcc-11e4-a8a1-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:38:47 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"d98b4380-bfcc-11e4-a8a1-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:38:47.201459' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1vm2LvfgAXOvdBn2-DVEVEDjr2nHX-e8Cif9POYCIIM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:38:47.202878"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:38:47.203816"], ["id", "d989c3d4-bfcc-11e4-b790-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d988bcfa-bfcc-11e4-9c4f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d988bcfa-bfcc-11e4-9c4f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd988bcfa-bfcc-11e4-9c4f-705681abff85' LIMIT 1 [["organization_id", "d98a3c9c-bfcc-11e4-b406-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d98a3c9c-bfcc-11e4-b406-705681abff85"], ["id", "d98b4380-bfcc-11e4-a8a1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d98962ea-bfcc-11e4-9a04-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d98a3c9c-bfcc-11e4-b406-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd98962ea-bfcc-11e4-9a04-705681abff85' AND "clubhouse_memberships"."id" != 'd98b4380-bfcc-11e4-a8a1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd98a3c9c-bfcc-11e4-b406-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:38:47.212820"], ["id", "d98b4380-bfcc-11e4-a8a1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$SBl1mneNIsyIWJHcx/vgmu1Y.9Eltp6g7pnlBqjdDy37zYC0hcSHa"], ["created_at", "2015-03-01 04:39:04.462579"], ["updated_at", "2015-03-01 04:39:04.462579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$2bW8XPgIAI4drjUz8RmCb..1z4.SvGbKdSuiPOcfSAfxBhS3ofPfe"], ["created_at", "2015-03-01 04:39:04.468151"], ["updated_at", "2015-03-01 04:39:04.468151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:39:04.475957"], ["user_id", "e3d5fd26-bfcc-11e4-8fbe-705681abff85"], ["created_at", "2015-03-01 04:39:04.481979"], ["updated_at", "2015-03-01 04:39:04.481979"], ["token", "NKBCuW9HlcJMFHVUO-2d-zlrtskWw_im1MlObkZW_dk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:39:04.491060"], ["updated_at", "2015-03-01 04:39:04.491060"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3d5fd26-bfcc-11e4-8fbe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3da3788-bfcc-11e4-ab47-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e3d5fd26-bfcc-11e4-8fbe-705681abff85"], ["organization_id", "e3da3788-bfcc-11e4-ab47-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:39:04.536018"], ["updated_at", "2015-03-01 04:39:04.536018"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3d6ac8a-bfcc-11e4-b644-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3da3788-bfcc-11e4-ab47-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e3d6ac8a-bfcc-11e4-b644-705681abff85"], ["organization_id", "e3da3788-bfcc-11e4-ab47-705681abff85"], ["created_at", "2015-03-01 04:39:04.541150"], ["updated_at", "2015-03-01 04:39:04.541150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:39:04 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (11.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$YihsdxbzZmt8pbLK5mKJK.XeUodbpwkcQu6L5X2mBti2YfHWI5MNy"], ["created_at", "2015-03-01 04:39:04.574695"], ["updated_at", "2015-03-01 04:39:04.574695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$AvzFQmIQWquRk.I7ILMo2eiMDpRe0onky4.ImukWqoF3s57BrUthS"], ["created_at", "2015-03-01 04:39:04.590690"], ["updated_at", "2015-03-01 04:39:04.590690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:39:04.592242"], ["user_id", "e3e6f392-bfcc-11e4-8c0b-705681abff85"], ["created_at", "2015-03-01 04:39:04.593025"], ["updated_at", "2015-03-01 04:39:04.593025"], ["token", "5G3WRqH7r5QPUR1T6N19G_NiwO1bWLzjb-Qm7cEcqas"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:39:04.596231"], ["updated_at", "2015-03-01 04:39:04.596231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3e6f392-bfcc-11e4-8c0b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3ea35fc-bfcc-11e4-9440-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e3e6f392-bfcc-11e4-8c0b-705681abff85"], ["organization_id", "e3ea35fc-bfcc-11e4-9440-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:39:04.600254"], ["updated_at", "2015-03-01 04:39:04.600254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3e95f10-bfcc-11e4-9540-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3ea35fc-bfcc-11e4-9440-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e3e95f10-bfcc-11e4-9540-705681abff85"], ["organization_id", "e3ea35fc-bfcc-11e4-9440-705681abff85"], ["created_at", "2015-03-01 04:39:04.603639"], ["updated_at", "2015-03-01 04:39:04.603639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/e3ead99e-bfcc-11e4-a014-705681abff85" for 127.0.0.1 at 2015-02-28 20:39:04 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"e3ead99e-bfcc-11e4-a014-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:39:04.608869' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5G3WRqH7r5QPUR1T6N19G_NiwO1bWLzjb-Qm7cEcqas"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:39:04.616787"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:39:04.618288"], ["id", "e3e9c252-bfcc-11e4-b8df-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e3e6f392-bfcc-11e4-8c0b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e3e6f392-bfcc-11e4-8c0b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e3e6f392-bfcc-11e4-8c0b-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "e3e6f392-bfcc-11e4-8c0b-705681abff85"], ["id", "e3ead99e-bfcc-11e4-a014-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e3ea35fc-bfcc-11e4-9440-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e3e6f392-bfcc-11e4-8c0b-705681abff85"]] Completed 200 OK in 38ms (Views: 6.1ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$x/fQna8mAg8aHefXiLOIs.Ey.VlFBPWCxg/GeN1MjNF6IvFyOUu.C"], ["created_at", "2015-03-01 04:39:04.655025"], ["updated_at", "2015-03-01 04:39:04.655025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$DuogaPq2zSy6vVz6dlhvgOZ/hkzYnTHLKeexVLnKbLfTwsaSHbZh6"], ["created_at", "2015-03-01 04:39:04.659334"], ["updated_at", "2015-03-01 04:39:04.659334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:39:04.660843"], ["user_id", "e3f3340e-bfcc-11e4-be2c-705681abff85"], ["created_at", "2015-03-01 04:39:04.661619"], ["updated_at", "2015-03-01 04:39:04.661619"], ["token", "VWOuEKRHZBZi0sd9E5C6Cv78RUtvv8uD9E_tHXgAHBY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:39:04.664946"], ["updated_at", "2015-03-01 04:39:04.664946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3f3340e-bfcc-11e4-be2c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3f4b2d4-bfcc-11e4-85db-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e3f3340e-bfcc-11e4-be2c-705681abff85"], ["organization_id", "e3f4b2d4-bfcc-11e4-85db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:39:04.668222"], ["updated_at", "2015-03-01 04:39:04.668222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3f3d71a-bfcc-11e4-baa2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3f4b2d4-bfcc-11e4-85db-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e3f3d71a-bfcc-11e4-baa2-705681abff85"], ["organization_id", "e3f4b2d4-bfcc-11e4-85db-705681abff85"], ["created_at", "2015-03-01 04:39:04.671380"], ["updated_at", "2015-03-01 04:39:04.671380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:39:04 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:39:04.676645' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VWOuEKRHZBZi0sd9E5C6Cv78RUtvv8uD9E_tHXgAHBY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:39:04.678442"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:39:04.680426"], ["id", "e3f439da-bfcc-11e4-8c51-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e3f3340e-bfcc-11e4-be2c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e3f3340e-bfcc-11e4-be2c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e3f3340e-bfcc-11e4-be2c-705681abff85' LIMIT 1 [["organization_id", "e3f4b2d4-bfcc-11e4-85db-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "e3f4b2d4-bfcc-11e4-85db-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e3f4b2d4-bfcc-11e4-85db-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e3f3340e-bfcc-11e4-be2c-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e3f4b2d4-bfcc-11e4-85db-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e3f3d71a-bfcc-11e4-baa2-705681abff85"]] Completed 200 OK in 18ms (Views: 5.1ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$OHoDcwpA5rrGGmLknmaN4e3DN1Y2ZvLauWnAaFcncNFvd5khNJlvO"], ["created_at", "2015-03-01 04:39:04.702043"], ["updated_at", "2015-03-01 04:39:04.702043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$xUtlcD13S27rOA0esKlzT.zDOR7sIxl.vcmvaqRKp//.WqwZt4PRm"], ["created_at", "2015-03-01 04:39:04.707346"], ["updated_at", "2015-03-01 04:39:04.707346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:39:04.708873"], ["user_id", "e3fa7d54-bfcc-11e4-b7d0-705681abff85"], ["created_at", "2015-03-01 04:39:04.709671"], ["updated_at", "2015-03-01 04:39:04.709671"], ["token", "6xQefeiARPuJTijqgC09e2LpzkQ2XErBm81Sb5dRvm8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:39:04.712962"], ["updated_at", "2015-03-01 04:39:04.712962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3fa7d54-bfcc-11e4-b7d0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3fc0994-bfcc-11e4-840d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e3fa7d54-bfcc-11e4-b7d0-705681abff85"], ["organization_id", "e3fc0994-bfcc-11e4-840d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:39:04.716334"], ["updated_at", "2015-03-01 04:39:04.716334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3fb2aec-bfcc-11e4-8123-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3fc0994-bfcc-11e4-840d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e3fb2aec-bfcc-11e4-8123-705681abff85"], ["organization_id", "e3fc0994-bfcc-11e4-840d-705681abff85"], ["created_at", "2015-03-01 04:39:04.719557"], ["updated_at", "2015-03-01 04:39:04.719557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:39:04 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:39:04.724680' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6xQefeiARPuJTijqgC09e2LpzkQ2XErBm81Sb5dRvm8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:39:04.726457"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:39:04.728385"], ["id", "e3fb8ea6-bfcc-11e4-ba69-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e3fa7d54-bfcc-11e4-b7d0-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e3fa7d54-bfcc-11e4-b7d0-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e3fa7d54-bfcc-11e4-b7d0-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "e3fa7d54-bfcc-11e4-b7d0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e3fc0994-bfcc-11e4-840d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e3fa7d54-bfcc-11e4-b7d0-705681abff85"]] Completed 200 OK in 15ms (Views: 3.7ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$KrJk5N6GuoT5TWmO4Eig8eeGazHKuN6ShkfElbNUbuHPzCg1yAFzi"], ["created_at", "2015-03-01 04:39:04.745322"], ["updated_at", "2015-03-01 04:39:04.745322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Ws4tYgS9POYP3o/768LJg.A/XIBWBKYNIJ6HBS9UOZd8rOv5lON.a"], ["created_at", "2015-03-01 04:39:04.749471"], ["updated_at", "2015-03-01 04:39:04.749471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:39:04.751023"], ["user_id", "e400f846-bfcc-11e4-8491-705681abff85"], ["created_at", "2015-03-01 04:39:04.752009"], ["updated_at", "2015-03-01 04:39:04.752009"], ["token", "E3M0cNMOq3Eh1F7KjJ7aFSpLk232ipb36IbF-1BnkMY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:39:04.756125"], ["updated_at", "2015-03-01 04:39:04.756125"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e400f846-bfcc-11e4-8491-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e4029e26-bfcc-11e4-9f01-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e400f846-bfcc-11e4-8491-705681abff85"], ["organization_id", "e4029e26-bfcc-11e4-9f01-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:39:04.760544"], ["updated_at", "2015-03-01 04:39:04.760544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e4019936-bfcc-11e4-803b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e4029e26-bfcc-11e4-9f01-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e4019936-bfcc-11e4-803b-705681abff85"], ["organization_id", "e4029e26-bfcc-11e4-9f01-705681abff85"], ["created_at", "2015-03-01 04:39:04.764835"], ["updated_at", "2015-03-01 04:39:04.764835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:39:04 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$iANNww.rfE6m7OfAdXGPseFv4l9MmLbSILjkmmJYrEASMPbFCZWWa"], ["created_at", "2015-03-01 04:39:04.780767"], ["updated_at", "2015-03-01 04:39:04.780767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$4A/6qeFJQ9BNalR8wjboMOx6F3VyIJNNGtKpmpim7dn5tfNGEHzkK"], ["created_at", "2015-03-01 04:39:04.786261"], ["updated_at", "2015-03-01 04:39:04.786261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:39:04.788391"], ["user_id", "e4066fce-bfcc-11e4-a33a-705681abff85"], ["created_at", "2015-03-01 04:39:04.789368"], ["updated_at", "2015-03-01 04:39:04.789368"], ["token", "SP92eIAneFXs0eYkuZoI3t_DDQsY_PmoL8m-65VVDUA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:39:04.793152"], ["updated_at", "2015-03-01 04:39:04.793152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e4066fce-bfcc-11e4-a33a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e40847a4-bfcc-11e4-9fe7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e4066fce-bfcc-11e4-a33a-705681abff85"], ["organization_id", "e40847a4-bfcc-11e4-9fe7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:39:04.796819"], ["updated_at", "2015-03-01 04:39:04.796819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e4074458-bfcc-11e4-b894-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e40847a4-bfcc-11e4-9fe7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e4074458-bfcc-11e4-b894-705681abff85"], ["organization_id", "e40847a4-bfcc-11e4-9fe7-705681abff85"], ["created_at", "2015-03-01 04:39:04.800287"], ["updated_at", "2015-03-01 04:39:04.800287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/e4095c34-bfcc-11e4-866f-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:39:04 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"e4095c34-bfcc-11e4-866f-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:39:04.807132' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SP92eIAneFXs0eYkuZoI3t_DDQsY_PmoL8m-65VVDUA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:39:04.808725"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:39:04.809807"], ["id", "e407bcf8-bfcc-11e4-bc5e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e4066fce-bfcc-11e4-a33a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e4066fce-bfcc-11e4-a33a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e4066fce-bfcc-11e4-a33a-705681abff85' LIMIT 1 [["organization_id", "e40847a4-bfcc-11e4-9fe7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "e40847a4-bfcc-11e4-9fe7-705681abff85"], ["id", "e4095c34-bfcc-11e4-866f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e4074458-bfcc-11e4-b894-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e40847a4-bfcc-11e4-9fe7-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e4074458-bfcc-11e4-b894-705681abff85' AND "clubhouse_memberships"."id" != 'e4095c34-bfcc-11e4-866f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e40847a4-bfcc-11e4-9fe7-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:39:04.820913"], ["id", "e4095c34-bfcc-11e4-866f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.1ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$PvQSR7U1zeirikJC2SBxO.H2t5hKkns/0qrKX41z0GBq2MMgBeEIS"], ["created_at", "2015-03-01 04:39:04.830024"], ["updated_at", "2015-03-01 04:39:04.830024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Ge.9Wwz0JsK0HUFCX7MBC.Y/MoB6uYWi9loZoKdbL53rPYa3mHo2a"], ["created_at", "2015-03-01 04:39:04.834498"], ["updated_at", "2015-03-01 04:39:04.834498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:39:04.836205"], ["user_id", "e40de6d2-bfcc-11e4-8be4-705681abff85"], ["created_at", "2015-03-01 04:39:04.836980"], ["updated_at", "2015-03-01 04:39:04.836980"], ["token", "N5z4lZWf7-k7_yZCnir9Rs6WOFgCUE8PjZjkK2cScp0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:39:04.840355"], ["updated_at", "2015-03-01 04:39:04.840355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e40de6d2-bfcc-11e4-8be4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e40f7736-bfcc-11e4-9079-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e40de6d2-bfcc-11e4-8be4-705681abff85"], ["organization_id", "e40f7736-bfcc-11e4-9079-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:39:04.843707"], ["updated_at", "2015-03-01 04:39:04.843707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e40e9488-bfcc-11e4-80ac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e40f7736-bfcc-11e4-9079-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e40e9488-bfcc-11e4-80ac-705681abff85"], ["organization_id", "e40f7736-bfcc-11e4-9079-705681abff85"], ["created_at", "2015-03-01 04:39:04.846990"], ["updated_at", "2015-03-01 04:39:04.846990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/e40ffabc-bfcc-11e4-998e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:39:04 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"e40ffabc-bfcc-11e4-998e-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:39:04.853932' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N5z4lZWf7-k7_yZCnir9Rs6WOFgCUE8PjZjkK2cScp0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:39:04.855487"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:39:04.856548"], ["id", "e40efc34-bfcc-11e4-8338-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e40de6d2-bfcc-11e4-8be4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e40de6d2-bfcc-11e4-8be4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e40de6d2-bfcc-11e4-8be4-705681abff85' LIMIT 1 [["organization_id", "e40f7736-bfcc-11e4-9079-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "e40f7736-bfcc-11e4-9079-705681abff85"], ["id", "e40ffabc-bfcc-11e4-998e-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e40de6d2-bfcc-11e4-8be4-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$78wjULFi7OccYAhS1cBTeumz4dDG014JCtk6D28DaZpSX1oAeN12O"], ["created_at", "2015-03-01 04:39:04.870850"], ["updated_at", "2015-03-01 04:39:04.870850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$rV5z68Cysz/8gA88Ye9w/.c0zJWvecy4xhZhZsFXMAytP8QyaSvae"], ["created_at", "2015-03-01 04:39:04.875666"], ["updated_at", "2015-03-01 04:39:04.875666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:39:04.877370"], ["user_id", "e41428bc-bfcc-11e4-aa56-705681abff85"], ["created_at", "2015-03-01 04:39:04.878230"], ["updated_at", "2015-03-01 04:39:04.878230"], ["token", "xGBaYDnpxZNgiqzSPdEH5-IbKUVE0hNZkZItECa9MAE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:39:04.881883"], ["updated_at", "2015-03-01 04:39:04.881883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e41428bc-bfcc-11e4-aa56-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e415cf8c-bfcc-11e4-9fd9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e41428bc-bfcc-11e4-aa56-705681abff85"], ["organization_id", "e415cf8c-bfcc-11e4-9fd9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:39:04.885596"], ["updated_at", "2015-03-01 04:39:04.885596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e414dd52-bfcc-11e4-aa36-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e415cf8c-bfcc-11e4-9fd9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e414dd52-bfcc-11e4-aa36-705681abff85"], ["organization_id", "e415cf8c-bfcc-11e4-9fd9-705681abff85"], ["created_at", "2015-03-01 04:39:04.897853"], ["updated_at", "2015-03-01 04:39:04.897853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:39:04 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$4Sfdz2zUZimhl0OyqhkBHeOW9O7hmXAXnzIssjNK9.IhpO0wWemh2"], ["created_at", "2015-03-01 04:39:04.912056"], ["updated_at", "2015-03-01 04:39:04.912056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$3JJiGsnbIKOdv3c/AQqLeuwC35txsb9e0nhgsWszPcdsygfNvaDEm"], ["created_at", "2015-03-01 04:39:04.917706"], ["updated_at", "2015-03-01 04:39:04.917706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:39:04.919593"], ["user_id", "e41a6c36-bfcc-11e4-a1e6-705681abff85"], ["created_at", "2015-03-01 04:39:04.920865"], ["updated_at", "2015-03-01 04:39:04.920865"], ["token", "S2mfJ_hTR48hkgr3bOTUyvLwhK0vefZe0DP3gIYSeCQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:39:04.925245"], ["updated_at", "2015-03-01 04:39:04.925245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e41a6c36-bfcc-11e4-a1e6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e41c6c34-bfcc-11e4-be3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e41a6c36-bfcc-11e4-a1e6-705681abff85"], ["organization_id", "e41c6c34-bfcc-11e4-be3a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:39:04.928616"], ["updated_at", "2015-03-01 04:39:04.928616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e41b4994-bfcc-11e4-8722-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e41c6c34-bfcc-11e4-be3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e41b4994-bfcc-11e4-8722-705681abff85"], ["organization_id", "e41c6c34-bfcc-11e4-be3a-705681abff85"], ["created_at", "2015-03-01 04:39:04.931760"], ["updated_at", "2015-03-01 04:39:04.931760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/e41d6814-bfcc-11e4-aece-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:39:04 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"e41d6814-bfcc-11e4-aece-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:39:04.937032' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S2mfJ_hTR48hkgr3bOTUyvLwhK0vefZe0DP3gIYSeCQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:39:04.938595"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:39:04.939688"], ["id", "e41be3e0-bfcc-11e4-b16f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e41a6c36-bfcc-11e4-a1e6-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e41a6c36-bfcc-11e4-a1e6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e41a6c36-bfcc-11e4-a1e6-705681abff85' LIMIT 1 [["organization_id", "e41c6c34-bfcc-11e4-be3a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "e41c6c34-bfcc-11e4-be3a-705681abff85"], ["id", "e41d6814-bfcc-11e4-aece-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e41c6c34-bfcc-11e4-be3a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e41b4994-bfcc-11e4-8722-705681abff85"]] Completed 200 OK in 11ms (Views: 2.2ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (9.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$FxJb.TueCAxWOdOI906Baubmk2nrDKqr9YNkPZj03UYygC64DQL2K"], ["created_at", "2015-03-01 04:41:31.547745"], ["updated_at", "2015-03-01 04:41:31.547745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$.gP9TqhlyGfa/4vXpIT0ReIrZ/MnaJz5X42H/kBXEA8SaV/0oTtWK"], ["created_at", "2015-03-01 04:41:31.562629"], ["updated_at", "2015-03-01 04:41:31.562629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:31.571444"], ["user_id", "3b817208-bfcd-11e4-b3ee-705681abff85"], ["created_at", "2015-03-01 04:41:31.577493"], ["updated_at", "2015-03-01 04:41:31.577493"], ["token", "Fgz4eqxNMCPzHxal0jXQSLtbetsSsqcFcaUkv9etpFQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:31.587373"], ["updated_at", "2015-03-01 04:41:31.587373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b817208-bfcd-11e4-b3ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b875420-bfcd-11e4-a046-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b817208-bfcd-11e4-b3ee-705681abff85"], ["organization_id", "3b875420-bfcd-11e4-a046-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:31.632136"], ["updated_at", "2015-03-01 04:41:31.632136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b83843a-bfcd-11e4-8fff-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b875420-bfcd-11e4-a046-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b83843a-bfcd-11e4-8fff-705681abff85"], ["organization_id", "3b875420-bfcd-11e4-a046-705681abff85"], ["created_at", "2015-03-01 04:41:31.637038"], ["updated_at", "2015-03-01 04:41:31.637038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/3b8ee6d6-bfcd-11e4-9abd-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:41:31 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"3b8ee6d6-bfcd-11e4-9abd-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:41:31.664051' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Fgz4eqxNMCPzHxal0jXQSLtbetsSsqcFcaUkv9etpFQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:41:31.674716"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:41:31.676219"], ["id", "3b85e112-bfcd-11e4-9edb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b817208-bfcd-11e4-b3ee-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3b817208-bfcd-11e4-b3ee-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b817208-bfcd-11e4-b3ee-705681abff85' LIMIT 1 [["organization_id", "3b875420-bfcd-11e4-a046-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "3b875420-bfcd-11e4-a046-705681abff85"], ["id", "3b8ee6d6-bfcd-11e4-9abd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b875420-bfcd-11e4-a046-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b83843a-bfcd-11e4-8fff-705681abff85"]] Completed 200 OK in 52ms (Views: 7.2ms | ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$qvqoJpN17sl.V8AiTz68I.iaGTsWGbrRbaseLj/HHd8QCSwVVkcyy"], ["created_at", "2015-03-01 04:41:31.725214"], ["updated_at", "2015-03-01 04:41:31.725214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Z2n2tB0727UuEws3xmZOI.TuQd6sPA5M0aLWuPLL7D1wZr7RL9eJG"], ["created_at", "2015-03-01 04:41:31.729815"], ["updated_at", "2015-03-01 04:41:31.729815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:31.731916"], ["user_id", "3b9c5a6e-bfcd-11e4-894b-705681abff85"], ["created_at", "2015-03-01 04:41:31.732690"], ["updated_at", "2015-03-01 04:41:31.732690"], ["token", "qeAAaZlEHdVtSyqodbR_dLWj6XqPHmXgCjZGG6gLGCw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:31.736132"], ["updated_at", "2015-03-01 04:41:31.736132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b9c5a6e-bfcd-11e4-894b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b9e0652-bfcd-11e4-957e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b9c5a6e-bfcd-11e4-894b-705681abff85"], ["organization_id", "3b9e0652-bfcd-11e4-957e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:31.739869"], ["updated_at", "2015-03-01 04:41:31.739869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b9d129c-bfcd-11e4-918d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b9e0652-bfcd-11e4-957e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b9d129c-bfcd-11e4-918d-705681abff85"], ["organization_id", "3b9e0652-bfcd-11e4-957e-705681abff85"], ["created_at", "2015-03-01 04:41:31.743335"], ["updated_at", "2015-03-01 04:41:31.743335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:41:31 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (5.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$MAULqul/cSzRnVTQF6/IoOcm5FiTtAfuPlYBe8uE5GyJktm3fEeYW"], ["created_at", "2015-03-01 04:41:31.763088"], ["updated_at", "2015-03-01 04:41:31.763088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Z.kXglmZMdFfsGyz407MMuNPSlk/mjDMewh8MJHC3ggFmXVNSrvyO"], ["created_at", "2015-03-01 04:41:31.768586"], ["updated_at", "2015-03-01 04:41:31.768586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:31.770451"], ["user_id", "3ba22188-bfcd-11e4-8342-705681abff85"], ["created_at", "2015-03-01 04:41:31.771280"], ["updated_at", "2015-03-01 04:41:31.771280"], ["token", "UjkzxdpDruSGT7RjU_vOZ_eLV3zuH-_hF-W5TwoPrUk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:31.775218"], ["updated_at", "2015-03-01 04:41:31.775218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ba22188-bfcd-11e4-8342-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ba3fd50-bfcd-11e4-9f58-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ba22188-bfcd-11e4-8342-705681abff85"], ["organization_id", "3ba3fd50-bfcd-11e4-9f58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:31.779210"], ["updated_at", "2015-03-01 04:41:31.779210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ba2f612-bfcd-11e4-a7b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ba3fd50-bfcd-11e4-9f58-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ba2f612-bfcd-11e4-a7b4-705681abff85"], ["organization_id", "3ba3fd50-bfcd-11e4-9f58-705681abff85"], ["created_at", "2015-03-01 04:41:31.782878"], ["updated_at", "2015-03-01 04:41:31.782878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:41:31 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Rypo3cH1yKWjXsP8kgMDsObxZjLJgsVhPnCJnePDyknmoFGjcw6qC"], ["created_at", "2015-03-01 04:41:31.802412"], ["updated_at", "2015-03-01 04:41:31.802412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Mtgfp.Y.TPSOBGBJiB3PUOMMkjwSdHnukQ1vvdU3fd.8ON9baOiyO"], ["created_at", "2015-03-01 04:41:31.809303"], ["updated_at", "2015-03-01 04:41:31.809303"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:31.815374"], ["user_id", "3ba83870-bfcd-11e4-aa2f-705681abff85"], ["created_at", "2015-03-01 04:41:31.818372"], ["updated_at", "2015-03-01 04:41:31.818372"], ["token", "S-UCOcR0yBK8Vih7J9XmBm89pnfs1UpixPurxWZT8_4"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:31.830602"], ["updated_at", "2015-03-01 04:41:31.830602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ba83870-bfcd-11e4-aa2f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bac7ad4-bfcd-11e4-8202-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ba83870-bfcd-11e4-aa2f-705681abff85"], ["organization_id", "3bac7ad4-bfcd-11e4-8202-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:31.835853"], ["updated_at", "2015-03-01 04:41:31.835853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ba98fb8-bfcd-11e4-8c7e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bac7ad4-bfcd-11e4-8202-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ba98fb8-bfcd-11e4-8c7e-705681abff85"], ["organization_id", "3bac7ad4-bfcd-11e4-8202-705681abff85"], ["created_at", "2015-03-01 04:41:31.840226"], ["updated_at", "2015-03-01 04:41:31.840226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$ArKAXJsXaXWfOUc5DxO.Ne9JOJZDuedMOS0hSX.m/OplUZnII4zUi"], ["created_at", "2015-03-01 04:41:31.852832"], ["updated_at", "2015-03-01 04:41:31.852832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$hHrjoCzudl3AWhNigVd4E.7tBVEIzEPA/FxjR9ziOtb4XiTFimJnC"], ["created_at", "2015-03-01 04:41:31.857987"], ["updated_at", "2015-03-01 04:41:31.857987"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:31.859979"], ["user_id", "3bafd44a-bfcd-11e4-93b0-705681abff85"], ["created_at", "2015-03-01 04:41:31.860932"], ["updated_at", "2015-03-01 04:41:31.860932"], ["token", "a3kEZdsy6FL3UnIlWAzKw13r27Ahj4zDFm2rPVKlGvw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:31.865446"], ["updated_at", "2015-03-01 04:41:31.865446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bafd44a-bfcd-11e4-93b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bb1c7d2-bfcd-11e4-b2ad-705681abff85') LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bafd44a-bfcd-11e4-93b0-705681abff85"], ["organization_id", "3bb1c7d2-bfcd-11e4-b2ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:31.870223"], ["updated_at", "2015-03-01 04:41:31.870223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bb09998-bfcd-11e4-91b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bb1c7d2-bfcd-11e4-b2ad-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bb09998-bfcd-11e4-91b2-705681abff85"], ["organization_id", "3bb1c7d2-bfcd-11e4-b2ad-705681abff85"], ["created_at", "2015-03-01 04:41:31.878349"], ["updated_at", "2015-03-01 04:41:31.878349"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/3bb3c74e-bfcd-11e4-bbb4-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:41:31 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$N0SwlbJLKSgoyUaLtjZBo.roXA0hhaDyhZWkVRu/TlFoash5IldmS"], ["created_at", "2015-03-01 04:41:31.891882"], ["updated_at", "2015-03-01 04:41:31.891882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$E.eIQbTYkZ/ZWpenoeXIpuRDC9NRGfmV3AKu7hSk7jyE9L2Y/Dg/i"], ["created_at", "2015-03-01 04:41:31.897098"], ["updated_at", "2015-03-01 04:41:31.897098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:31.898771"], ["user_id", "3bb5ca6c-bfcd-11e4-98a7-705681abff85"], ["created_at", "2015-03-01 04:41:31.899865"], ["updated_at", "2015-03-01 04:41:31.899865"], ["token", "6-ov2Gpq7UrqpSyWA6DOD7Fi7G3TbkSaCF28DOQ6kOs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:31.903910"], ["updated_at", "2015-03-01 04:41:31.903910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bb5ca6c-bfcd-11e4-98a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bb79c2a-bfcd-11e4-98c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bb5ca6c-bfcd-11e4-98a7-705681abff85"], ["organization_id", "3bb79c2a-bfcd-11e4-98c1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:31.907667"], ["updated_at", "2015-03-01 04:41:31.907667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bb68ef2-bfcd-11e4-9feb-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bb79c2a-bfcd-11e4-98c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bb68ef2-bfcd-11e4-9feb-705681abff85"], ["organization_id", "3bb79c2a-bfcd-11e4-98c1-705681abff85"], ["created_at", "2015-03-01 04:41:31.911194"], ["updated_at", "2015-03-01 04:41:31.911194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/3bb82dfc-bfcd-11e4-b756-705681abff85" for 127.0.0.1 at 2015-02-28 20:41:31 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"3bb82dfc-bfcd-11e4-b756-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:41:31.916169' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6-ov2Gpq7UrqpSyWA6DOD7Fi7G3TbkSaCF28DOQ6kOs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:41:31.917740"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:41:31.918763"], ["id", "3bb70f8a-bfcd-11e4-be88-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bb5ca6c-bfcd-11e4-98a7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3bb5ca6c-bfcd-11e4-98a7-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3bb5ca6c-bfcd-11e4-98a7-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "3bb5ca6c-bfcd-11e4-98a7-705681abff85"], ["id", "3bb82dfc-bfcd-11e4-b756-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3bb79c2a-bfcd-11e4-98c1-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bb5ca6c-bfcd-11e4-98a7-705681abff85"]] Completed 200 OK in 13ms (Views: 2.3ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$AY2vwU7yj1y8FcdyfOIExuLknteJ13RbCX76kjEtK0VjyQwvUu1ju"], ["created_at", "2015-03-01 04:41:31.936751"], ["updated_at", "2015-03-01 04:41:31.936751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$i2mAfo.clZhaWAvMKF71iOU6gXHat16QFrhzhTLxf2Qth5z05IabK"], ["created_at", "2015-03-01 04:41:31.942850"], ["updated_at", "2015-03-01 04:41:31.942850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:31.944559"], ["user_id", "3bbcb020-bfcd-11e4-923c-705681abff85"], ["created_at", "2015-03-01 04:41:31.945339"], ["updated_at", "2015-03-01 04:41:31.945339"], ["token", "PHO3EJXVeloTya__dc_nTEpc-VFhXzYOFBkkpugk1JY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:31.948752"], ["updated_at", "2015-03-01 04:41:31.948752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bbcb020-bfcd-11e4-923c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bbe6f14-bfcd-11e4-b370-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bbcb020-bfcd-11e4-923c-705681abff85"], ["organization_id", "3bbe6f14-bfcd-11e4-b370-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:31.952468"], ["updated_at", "2015-03-01 04:41:31.952468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bbd8afe-bfcd-11e4-885d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bbe6f14-bfcd-11e4-b370-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bbd8afe-bfcd-11e4-885d-705681abff85"], ["organization_id", "3bbe6f14-bfcd-11e4-b370-705681abff85"], ["created_at", "2015-03-01 04:41:31.955756"], ["updated_at", "2015-03-01 04:41:31.955756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:41:31 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$IumIDOQ9MBh0mKYs3UIkLeCjgdSAkS7VuK1ygqITM.4.a0IsKzNEa"], ["created_at", "2015-03-01 04:41:31.970257"], ["updated_at", "2015-03-01 04:41:31.970257"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$1Gwwvux9OY9wPjJBCHOSx.E5eiq6uOVVCzfgmnJsUeMT0qPilsR.i"], ["created_at", "2015-03-01 04:41:31.977298"], ["updated_at", "2015-03-01 04:41:31.977298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:31.979645"], ["user_id", "3bc1c6dc-bfcd-11e4-a0fd-705681abff85"], ["created_at", "2015-03-01 04:41:31.980500"], ["updated_at", "2015-03-01 04:41:31.980500"], ["token", "_OwT0Hsc1ks6EQ7W2ufLZddSTER4OnoLbbML-aR8cTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:31.984037"], ["updated_at", "2015-03-01 04:41:31.984037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bc1c6dc-bfcd-11e4-a0fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bc3d774-bfcd-11e4-8eb6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bc1c6dc-bfcd-11e4-a0fd-705681abff85"], ["organization_id", "3bc3d774-bfcd-11e4-8eb6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:31.987906"], ["updated_at", "2015-03-01 04:41:31.987906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bc2d798-bfcd-11e4-ae68-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bc3d774-bfcd-11e4-8eb6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bc2d798-bfcd-11e4-ae68-705681abff85"], ["organization_id", "3bc3d774-bfcd-11e4-8eb6-705681abff85"], ["created_at", "2015-03-01 04:41:31.991624"], ["updated_at", "2015-03-01 04:41:31.991624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:41:31 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$/OZN/JJs2Jgc8XmCRS66fuL56A30iK6kYwUebT7xJ1gArLfW2q5nS"], ["created_at", "2015-03-01 04:41:32.006002"], ["updated_at", "2015-03-01 04:41:32.006002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$DMCJRfPXj9kBWKJuA7QT2OOGjLW7Bq2iUYsnTJOXFR8QJ7SzIYHlG"], ["created_at", "2015-03-01 04:41:32.012237"], ["updated_at", "2015-03-01 04:41:32.012237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:32.014086"], ["user_id", "3bc73a40-bfcd-11e4-8837-705681abff85"], ["created_at", "2015-03-01 04:41:32.014826"], ["updated_at", "2015-03-01 04:41:32.014826"], ["token", "yTssRfD17HKR7-b_1_kWEpaNsKYzAgtVYvVpZOJk42Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:32.018378"], ["updated_at", "2015-03-01 04:41:32.018378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bc73a40-bfcd-11e4-8837-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bc91090-bfcd-11e4-aa9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bc73a40-bfcd-11e4-8837-705681abff85"], ["organization_id", "3bc91090-bfcd-11e4-aa9a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:32.022003"], ["updated_at", "2015-03-01 04:41:32.022003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bc827ca-bfcd-11e4-9a42-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bc91090-bfcd-11e4-aa9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bc827ca-bfcd-11e4-9a42-705681abff85"], ["organization_id", "3bc91090-bfcd-11e4-aa9a-705681abff85"], ["created_at", "2015-03-01 04:41:32.025311"], ["updated_at", "2015-03-01 04:41:32.025311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/3bc99ac4-bfcd-11e4-b252-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:41:32 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"3bc99ac4-bfcd-11e4-b252-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:41:32.030399' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yTssRfD17HKR7-b_1_kWEpaNsKYzAgtVYvVpZOJk42Q"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:41:32.032407"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:41:32.034531"], ["id", "3bc88742-bfcd-11e4-b4ef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bc73a40-bfcd-11e4-8837-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3bc73a40-bfcd-11e4-8837-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bc73a40-bfcd-11e4-8837-705681abff85' LIMIT 1 [["organization_id", "3bc91090-bfcd-11e4-aa9a-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "3bc91090-bfcd-11e4-aa9a-705681abff85"], ["id", "3bc99ac4-bfcd-11e4-b252-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bc73a40-bfcd-11e4-8837-705681abff85"]] Completed 500 Internal Server Error in 21ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$xZjfbXNF2lDk6CNkowoay./wZixenIoFQKsvn1fEXybcdfyAG4l.a"], ["created_at", "2015-03-01 04:41:32.058178"], ["updated_at", "2015-03-01 04:41:32.058178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$tgfMx.jQAwijavIY0fkF3un9ZTsGmfXhyBnOTW5hYgDxUZtrP2q2a"], ["created_at", "2015-03-01 04:41:32.062366"], ["updated_at", "2015-03-01 04:41:32.062366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:32.064017"], ["user_id", "3bcf22fa-bfcd-11e4-a789-705681abff85"], ["created_at", "2015-03-01 04:41:32.064905"], ["updated_at", "2015-03-01 04:41:32.064905"], ["token", "FlS8f7wswZITd-66zPElB2xD8UGRxLeLM523VBQzBMQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:32.068669"], ["updated_at", "2015-03-01 04:41:32.068669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bcf22fa-bfcd-11e4-a789-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bd0bbb0-bfcd-11e4-a920-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bcf22fa-bfcd-11e4-a789-705681abff85"], ["organization_id", "3bd0bbb0-bfcd-11e4-a920-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:32.072226"], ["updated_at", "2015-03-01 04:41:32.072226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bcfc0de-bfcd-11e4-a673-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bd0bbb0-bfcd-11e4-a920-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bcfc0de-bfcd-11e4-a673-705681abff85"], ["organization_id", "3bd0bbb0-bfcd-11e4-a920-705681abff85"], ["created_at", "2015-03-01 04:41:32.075225"], ["updated_at", "2015-03-01 04:41:32.075225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/3bd1b768-bfcd-11e4-828e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:41:32 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"3bd1b768-bfcd-11e4-828e-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:41:32.079753' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FlS8f7wswZITd-66zPElB2xD8UGRxLeLM523VBQzBMQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:41:32.081478"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:41:32.082590"], ["id", "3bd031f4-bfcd-11e4-a476-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bcf22fa-bfcd-11e4-a789-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3bcf22fa-bfcd-11e4-a789-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bcf22fa-bfcd-11e4-a789-705681abff85' LIMIT 1 [["organization_id", "3bd0bbb0-bfcd-11e4-a920-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "3bd0bbb0-bfcd-11e4-a920-705681abff85"], ["id", "3bd1b768-bfcd-11e4-828e-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bcfc0de-bfcd-11e4-a673-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3bd0bbb0-bfcd-11e4-a920-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bcfc0de-bfcd-11e4-a673-705681abff85' AND "clubhouse_memberships"."id" != '3bd1b768-bfcd-11e4-828e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bd0bbb0-bfcd-11e4-a920-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:41:32.094275"], ["id", "3bd1b768-bfcd-11e4-828e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.2ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$LxZTe5AWPGMIiK37C0QwmupBLgkdRzByZPYjiBlQvkHheAz1GrAsq"], ["created_at", "2015-03-01 04:41:32.104726"], ["updated_at", "2015-03-01 04:41:32.104726"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$cx0R1uweP8ZPpg.jDo3A1Oz3O1SJMLO22r8fR82PtWJ0zuvM5qC/q"], ["created_at", "2015-03-01 04:41:32.110247"], ["updated_at", "2015-03-01 04:41:32.110247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:32.112221"], ["user_id", "3bd64102-bfcd-11e4-bdbd-705681abff85"], ["created_at", "2015-03-01 04:41:32.112991"], ["updated_at", "2015-03-01 04:41:32.112991"], ["token", "MW7jzS4JlvPDho_Gw0KsNq4wFhpOflJe5aXDo25y9ik"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:32.116235"], ["updated_at", "2015-03-01 04:41:32.116235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bd64102-bfcd-11e4-bdbd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bd7fa60-bfcd-11e4-8704-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bd64102-bfcd-11e4-bdbd-705681abff85"], ["organization_id", "3bd7fa60-bfcd-11e4-8704-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:32.119931"], ["updated_at", "2015-03-01 04:41:32.119931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bd71ed8-bfcd-11e4-9e02-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bd7fa60-bfcd-11e4-8704-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bd71ed8-bfcd-11e4-9e02-705681abff85"], ["organization_id", "3bd7fa60-bfcd-11e4-8704-705681abff85"], ["created_at", "2015-03-01 04:41:32.123139"], ["updated_at", "2015-03-01 04:41:32.123139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:41:32 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:41:32.128113' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MW7jzS4JlvPDho_Gw0KsNq4wFhpOflJe5aXDo25y9ik"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:41:32.129546"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:41:32.130483"], ["id", "3bd78436-bfcd-11e4-b16b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bd64102-bfcd-11e4-bdbd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3bd64102-bfcd-11e4-bdbd-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bd64102-bfcd-11e4-bdbd-705681abff85' LIMIT 1 [["organization_id", "3bd7fa60-bfcd-11e4-8704-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "3bd7fa60-bfcd-11e4-8704-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3bd7fa60-bfcd-11e4-8704-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bd64102-bfcd-11e4-bdbd-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3bd7fa60-bfcd-11e4-8704-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bd71ed8-bfcd-11e4-9e02-705681abff85"]] Completed 200 OK in 13ms (Views: 4.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$mPrvnyOcrFcKewESqmVLWuOow.dTnek4jUvsHNG4ugoQuQZ4IittC"], ["created_at", "2015-03-01 04:41:32.147257"], ["updated_at", "2015-03-01 04:41:32.147257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$7TVtA41ICyrqoT/pee2jzOJX4dqvIL9VBriN5v4qoqKeF8.O/lRL2"], ["created_at", "2015-03-01 04:41:32.151519"], ["updated_at", "2015-03-01 04:41:32.151519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:41:32.152998"], ["user_id", "3bdcbb54-bfcd-11e4-995f-705681abff85"], ["created_at", "2015-03-01 04:41:32.153744"], ["updated_at", "2015-03-01 04:41:32.153744"], ["token", "KmFk2UHH6Fd3F3_0Coy95B2VswQd6onP7mXpVm4iG-8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:41:32.157001"], ["updated_at", "2015-03-01 04:41:32.157001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bdcbb54-bfcd-11e4-995f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bde3272-bfcd-11e4-a234-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bdcbb54-bfcd-11e4-995f-705681abff85"], ["organization_id", "3bde3272-bfcd-11e4-a234-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:41:32.160168"], ["updated_at", "2015-03-01 04:41:32.160168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bdd5cb2-bfcd-11e4-9694-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bde3272-bfcd-11e4-a234-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bdd5cb2-bfcd-11e4-9694-705681abff85"], ["organization_id", "3bde3272-bfcd-11e4-a234-705681abff85"], ["created_at", "2015-03-01 04:41:32.163136"], ["updated_at", "2015-03-01 04:41:32.163136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:41:32 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:41:32.167508' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KmFk2UHH6Fd3F3_0Coy95B2VswQd6onP7mXpVm4iG-8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:41:32.169192"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:41:32.170232"], ["id", "3bddbb8a-bfcd-11e4-9d41-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bdcbb54-bfcd-11e4-995f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3bdcbb54-bfcd-11e4-995f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3bdcbb54-bfcd-11e4-995f-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "3bdcbb54-bfcd-11e4-995f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3bde3272-bfcd-11e4-a234-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bdcbb54-bfcd-11e4-995f-705681abff85"]] Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$dypWJMZvXHm2GtrjI.xp3udNyUS4kWztFDsKU8dgNvixZoO9jms9S"], ["created_at", "2015-03-01 04:42:11.811434"], ["updated_at", "2015-03-01 04:42:11.811434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$aahogHdMSfVifPP1yvEbI.kap93iJFriYCb5.pkP1eDukGVqWfXlC"], ["created_at", "2015-03-01 04:42:11.824510"], ["updated_at", "2015-03-01 04:42:11.824510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:11.839104"], ["user_id", "53812a6a-bfcd-11e4-8b61-705681abff85"], ["created_at", "2015-03-01 04:42:11.846261"], ["updated_at", "2015-03-01 04:42:11.846261"], ["token", "GurEJdyFC_oLxmlBIIwVDku7LXaQIraSmkPzmc06ZD0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:11.855746"], ["updated_at", "2015-03-01 04:42:11.855746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53812a6a-bfcd-11e4-8b61-705681abff85' AND "clubhouse_memberships"."organization_id" = '5387cc12-bfcd-11e4-a76b-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53812a6a-bfcd-11e4-8b61-705681abff85"], ["organization_id", "5387cc12-bfcd-11e4-a76b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:11.897435"], ["updated_at", "2015-03-01 04:42:11.897435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '538303f8-bfcd-11e4-9f7f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5387cc12-bfcd-11e4-a76b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "538303f8-bfcd-11e4-9f7f-705681abff85"], ["organization_id", "5387cc12-bfcd-11e4-a76b-705681abff85"], ["created_at", "2015-03-01 04:42:11.902847"], ["updated_at", "2015-03-01 04:42:11.902847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:42:11 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$yhmiGgY21ZL78254vEO/7u6IFA/3XLkvGZ.6AZorWlBXD3HkOzJP6"], ["created_at", "2015-03-01 04:42:11.937012"], ["updated_at", "2015-03-01 04:42:11.937012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$IEuj7PYvbjDmwnvaBWnEVefN7ZB8A52FbQlOk59yV4fQdLXIsbNvm"], ["created_at", "2015-03-01 04:42:11.941768"], ["updated_at", "2015-03-01 04:42:11.941768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:11.943305"], ["user_id", "5394357e-bfcd-11e4-a4cb-705681abff85"], ["created_at", "2015-03-01 04:42:11.944092"], ["updated_at", "2015-03-01 04:42:11.944092"], ["token", "HhcNXWx1cnRsRbLkaPVF0wpzvU86I4Ip0DckfcQ52Ig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:11.947327"], ["updated_at", "2015-03-01 04:42:11.947327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5394357e-bfcd-11e4-a4cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '5395ba5c-bfcd-11e4-b7a6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5394357e-bfcd-11e4-a4cb-705681abff85"], ["organization_id", "5395ba5c-bfcd-11e4-b7a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:11.950786"], ["updated_at", "2015-03-01 04:42:11.950786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5394e05a-bfcd-11e4-96c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '5395ba5c-bfcd-11e4-b7a6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5394e05a-bfcd-11e4-96c9-705681abff85"], ["organization_id", "5395ba5c-bfcd-11e4-b7a6-705681abff85"], ["created_at", "2015-03-01 04:42:11.954051"], ["updated_at", "2015-03-01 04:42:11.954051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/5396422e-bfcd-11e4-b672-705681abff85" for 127.0.0.1 at 2015-02-28 20:42:11 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"5396422e-bfcd-11e4-b672-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:42:11.958379' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HhcNXWx1cnRsRbLkaPVF0wpzvU86I4Ip0DckfcQ52Ig"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:42:11.965859"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:42:11.967050"], ["id", "539541d0-bfcd-11e4-af66-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5394357e-bfcd-11e4-a4cb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5394357e-bfcd-11e4-a4cb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5394357e-bfcd-11e4-a4cb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "5394357e-bfcd-11e4-a4cb-705681abff85"], ["id", "5396422e-bfcd-11e4-b672-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5395ba5c-bfcd-11e4-b7a6-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5394357e-bfcd-11e4-a4cb-705681abff85"]] Completed 200 OK in 39ms (Views: 6.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$VqY.AZQ2FffJPDhrdUzW/eUQGQ6j7BPjQjcwr7WE2qaCPYbj6.2NG"], ["created_at", "2015-03-01 04:42:12.005420"], ["updated_at", "2015-03-01 04:42:12.005420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ovnw6DSaCLyJ5eyABVTu4OyTFU6Mh1CUOjv5.euQ7RzKpeKQiTiNq"], ["created_at", "2015-03-01 04:42:12.009944"], ["updated_at", "2015-03-01 04:42:12.009944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:12.011469"], ["user_id", "539e9fc8-bfcd-11e4-b894-705681abff85"], ["created_at", "2015-03-01 04:42:12.012242"], ["updated_at", "2015-03-01 04:42:12.012242"], ["token", "U-xPzZxMlbBk5qKTveQGEj4gcpCPmRup3y9_s1cbGYo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:12.015449"], ["updated_at", "2015-03-01 04:42:12.015449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '539e9fc8-bfcd-11e4-b894-705681abff85' AND "clubhouse_memberships"."organization_id" = '53a01e20-bfcd-11e4-86ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "539e9fc8-bfcd-11e4-b894-705681abff85"], ["organization_id", "53a01e20-bfcd-11e4-86ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:12.018762"], ["updated_at", "2015-03-01 04:42:12.018762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '539f4702-bfcd-11e4-b5ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '53a01e20-bfcd-11e4-86ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "539f4702-bfcd-11e4-b5ee-705681abff85"], ["organization_id", "53a01e20-bfcd-11e4-86ab-705681abff85"], ["created_at", "2015-03-01 04:42:12.021923"], ["updated_at", "2015-03-01 04:42:12.021923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:42:12 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:42:12.026594' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U-xPzZxMlbBk5qKTveQGEj4gcpCPmRup3y9_s1cbGYo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:42:12.028044"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:42:12.029061"], ["id", "539fa846-bfcd-11e4-8cb6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "539e9fc8-bfcd-11e4-b894-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "539e9fc8-bfcd-11e4-b894-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '539e9fc8-bfcd-11e4-b894-705681abff85' LIMIT 1 [["organization_id", "53a01e20-bfcd-11e4-86ab-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "53a01e20-bfcd-11e4-86ab-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "53a01e20-bfcd-11e4-86ab-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "539e9fc8-bfcd-11e4-b894-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "53a01e20-bfcd-11e4-86ab-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "539f4702-bfcd-11e4-b5ee-705681abff85"]] Completed 200 OK in 17ms (Views: 6.7ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$SOYSroGN0cUEm9rkktI7M.QjcW.fAbEPgKPxGpo1ZIyhENPVhC8Iu"], ["created_at", "2015-03-01 04:42:12.050032"], ["updated_at", "2015-03-01 04:42:12.050032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$A5RWCOdQn4cs4Z5EqvhVt.34tV07MwwinzyPqPU0d1MQGxPmIEYHe"], ["created_at", "2015-03-01 04:42:12.054343"], ["updated_at", "2015-03-01 04:42:12.054343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:12.056057"], ["user_id", "53a56650-bfcd-11e4-ae4b-705681abff85"], ["created_at", "2015-03-01 04:42:12.057341"], ["updated_at", "2015-03-01 04:42:12.057341"], ["token", "NiAOmJgp8v8J1kLq_4V6z_u5DOoXwcm-ALSiMqDsL5w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:12.061146"], ["updated_at", "2015-03-01 04:42:12.061146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53a56650-bfcd-11e4-ae4b-705681abff85' AND "clubhouse_memberships"."organization_id" = '53a716c6-bfcd-11e4-9e4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53a56650-bfcd-11e4-ae4b-705681abff85"], ["organization_id", "53a716c6-bfcd-11e4-9e4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:12.064371"], ["updated_at", "2015-03-01 04:42:12.064371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53a60fb0-bfcd-11e4-ba4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '53a716c6-bfcd-11e4-9e4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "53a60fb0-bfcd-11e4-ba4c-705681abff85"], ["organization_id", "53a716c6-bfcd-11e4-9e4e-705681abff85"], ["created_at", "2015-03-01 04:42:12.067385"], ["updated_at", "2015-03-01 04:42:12.067385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:42:12 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$7yrOG.P0.tUwhcggSXhX8OojoWaRy43KtSc2Qg.DUthZktB73Cflq"], ["created_at", "2015-03-01 04:42:12.079406"], ["updated_at", "2015-03-01 04:42:12.079406"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$TQrSjfCskS1Z5Q/O3H0Sf.Vz.Gk53zfoJ/DuGKj/VOEpn4w20hgd2"], ["created_at", "2015-03-01 04:42:12.084382"], ["updated_at", "2015-03-01 04:42:12.084382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:12.086017"], ["user_id", "53a9e4fa-bfcd-11e4-b20c-705681abff85"], ["created_at", "2015-03-01 04:42:12.086776"], ["updated_at", "2015-03-01 04:42:12.086776"], ["token", "qj0nDptyPfT4B4s1jqRpL5EuBcUgH7ZQi9mEEF8-RM8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:12.091806"], ["updated_at", "2015-03-01 04:42:12.091806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53a9e4fa-bfcd-11e4-b20c-705681abff85' AND "clubhouse_memberships"."organization_id" = '53abc98c-bfcd-11e4-a67c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53a9e4fa-bfcd-11e4-b20c-705681abff85"], ["organization_id", "53abc98c-bfcd-11e4-a67c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:12.095229"], ["updated_at", "2015-03-01 04:42:12.095229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53aaa3fe-bfcd-11e4-a92d-705681abff85' AND "clubhouse_memberships"."organization_id" = '53abc98c-bfcd-11e4-a67c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "53aaa3fe-bfcd-11e4-a92d-705681abff85"], ["organization_id", "53abc98c-bfcd-11e4-a67c-705681abff85"], ["created_at", "2015-03-01 04:42:12.098174"], ["updated_at", "2015-03-01 04:42:12.098174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/53acbe5a-bfcd-11e4-ae3d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:42:12 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"53acbe5a-bfcd-11e4-ae3d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:42:12.102673' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qj0nDptyPfT4B4s1jqRpL5EuBcUgH7ZQi9mEEF8-RM8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:42:12.104308"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:42:12.105423"], ["id", "53ab11cc-bfcd-11e4-a21f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "53a9e4fa-bfcd-11e4-b20c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "53a9e4fa-bfcd-11e4-b20c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '53a9e4fa-bfcd-11e4-b20c-705681abff85' LIMIT 1 [["organization_id", "53abc98c-bfcd-11e4-a67c-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "53abc98c-bfcd-11e4-a67c-705681abff85"], ["id", "53acbe5a-bfcd-11e4-ae3d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "53aaa3fe-bfcd-11e4-a92d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "53abc98c-bfcd-11e4-a67c-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53aaa3fe-bfcd-11e4-a92d-705681abff85' AND "clubhouse_memberships"."id" != '53acbe5a-bfcd-11e4-ae3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '53abc98c-bfcd-11e4-a67c-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:42:12.118169"], ["id", "53acbe5a-bfcd-11e4-ae3d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.1ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$5pZhLU3EmhA.YW/OLe/bBeGbp1EDhKQazNx1zgKN7EX4hEkAfD.DK"], ["created_at", "2015-03-01 04:42:12.127496"], ["updated_at", "2015-03-01 04:42:12.127496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$s7.qUwsmxzh6YBTMWbQFA./RP2sj6aGDetspSApl7FC0EsOvwloyO"], ["created_at", "2015-03-01 04:42:12.131954"], ["updated_at", "2015-03-01 04:42:12.131954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:12.133644"], ["user_id", "53b13df4-bfcd-11e4-8797-705681abff85"], ["created_at", "2015-03-01 04:42:12.134476"], ["updated_at", "2015-03-01 04:42:12.134476"], ["token", "1R_3dyZjxNBVuNjnZxWCG3sr4nTYtD-aqMI8_JHxe-0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:12.138036"], ["updated_at", "2015-03-01 04:42:12.138036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53b13df4-bfcd-11e4-8797-705681abff85' AND "clubhouse_memberships"."organization_id" = '53b2d31c-bfcd-11e4-9b46-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53b13df4-bfcd-11e4-8797-705681abff85"], ["organization_id", "53b2d31c-bfcd-11e4-9b46-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:12.141391"], ["updated_at", "2015-03-01 04:42:12.141391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53b1e790-bfcd-11e4-bd4b-705681abff85' AND "clubhouse_memberships"."organization_id" = '53b2d31c-bfcd-11e4-9b46-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "53b1e790-bfcd-11e4-bd4b-705681abff85"], ["organization_id", "53b2d31c-bfcd-11e4-9b46-705681abff85"], ["created_at", "2015-03-01 04:42:12.144753"], ["updated_at", "2015-03-01 04:42:12.144753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/53b355e4-bfcd-11e4-88a1-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:42:12 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"53b355e4-bfcd-11e4-88a1-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:42:12.151571' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1R_3dyZjxNBVuNjnZxWCG3sr4nTYtD-aqMI8_JHxe-0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:42:12.152977"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:42:12.153953"], ["id", "53b2548c-bfcd-11e4-b2b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "53b13df4-bfcd-11e4-8797-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "53b13df4-bfcd-11e4-8797-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '53b13df4-bfcd-11e4-8797-705681abff85' LIMIT 1 [["organization_id", "53b2d31c-bfcd-11e4-9b46-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "53b2d31c-bfcd-11e4-9b46-705681abff85"], ["id", "53b355e4-bfcd-11e4-88a1-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "53b13df4-bfcd-11e4-8797-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$PX2Ebgi2Wjc7vH4Cwp3gBOfnUkPtx5qHdRUAih87t77UCKvjVRjTW"], ["created_at", "2015-03-01 04:42:12.168574"], ["updated_at", "2015-03-01 04:42:12.168574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$S.Bif.Ne8zD29wv/3lB0v.P6GUeOVrMOd4J2pZkpWqMfw5Nl/fSUe"], ["created_at", "2015-03-01 04:42:12.173063"], ["updated_at", "2015-03-01 04:42:12.173063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:12.175609"], ["user_id", "53b77e76-bfcd-11e4-a8cd-705681abff85"], ["created_at", "2015-03-01 04:42:12.176466"], ["updated_at", "2015-03-01 04:42:12.176466"], ["token", "xPDsEsYixiFJKOTXZze9jBwCQRz2Gneoz_Gf9iZJxTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:12.180063"], ["updated_at", "2015-03-01 04:42:12.180063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53b77e76-bfcd-11e4-a8cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '53b93db0-bfcd-11e4-a8d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53b77e76-bfcd-11e4-a8cd-705681abff85"], ["organization_id", "53b93db0-bfcd-11e4-a8d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:12.183552"], ["updated_at", "2015-03-01 04:42:12.183552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53b83c94-bfcd-11e4-97c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '53b93db0-bfcd-11e4-a8d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "53b83c94-bfcd-11e4-97c6-705681abff85"], ["organization_id", "53b93db0-bfcd-11e4-a8d7-705681abff85"], ["created_at", "2015-03-01 04:42:12.186821"], ["updated_at", "2015-03-01 04:42:12.186821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:42:12 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$4L7u8WlC5tvYtE7UqOLE0uv61MGVnB/0SXAkBqvidcXy15BkJreZ6"], ["created_at", "2015-03-01 04:42:12.196656"], ["updated_at", "2015-03-01 04:42:12.196656"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$ucT7swIiYpNJ0XxGdp046.0UU917aQm4TznbNmPKcQRxdUPpUycQi"], ["created_at", "2015-03-01 04:42:12.203605"], ["updated_at", "2015-03-01 04:42:12.203605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:12.205355"], ["user_id", "53bbc6c0-bfcd-11e4-bcb5-705681abff85"], ["created_at", "2015-03-01 04:42:12.206228"], ["updated_at", "2015-03-01 04:42:12.206228"], ["token", "-BbeF3VmUb4RbCBC7e56_nOBPp6VKyZiQ5Sq09oUOXg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:12.210594"], ["updated_at", "2015-03-01 04:42:12.210594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53bbc6c0-bfcd-11e4-bcb5-705681abff85' AND "clubhouse_memberships"."organization_id" = '53bde9be-bfcd-11e4-b32b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53bbc6c0-bfcd-11e4-bcb5-705681abff85"], ["organization_id", "53bde9be-bfcd-11e4-b32b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:12.216810"], ["updated_at", "2015-03-01 04:42:12.216810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53bcd812-bfcd-11e4-a917-705681abff85' AND "clubhouse_memberships"."organization_id" = '53bde9be-bfcd-11e4-b32b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "53bcd812-bfcd-11e4-a917-705681abff85"], ["organization_id", "53bde9be-bfcd-11e4-b32b-705681abff85"], ["created_at", "2015-03-01 04:42:12.220116"], ["updated_at", "2015-03-01 04:42:12.220116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/53bf58e4-bfcd-11e4-9cfc-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:42:12 -0800  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$I5bYFi4EtY/aHZVUKJ.5P.x81bwuvwirBFtFgrSeJov.qV80XqkDC"], ["created_at", "2015-03-01 04:42:12.278303"], ["updated_at", "2015-03-01 04:42:12.278303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$ItCw84GSwfC662rldRlQNetO5DlRe9hRTNRZZHxvQ8gfEoZwieR5."], ["created_at", "2015-03-01 04:42:12.297999"], ["updated_at", "2015-03-01 04:42:12.297999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:12.300350"], ["user_id", "53c8503e-bfcd-11e4-8b20-705681abff85"], ["created_at", "2015-03-01 04:42:12.301145"], ["updated_at", "2015-03-01 04:42:12.301145"], ["token", "0iyNXpToboAB0NbxAYVKnmkaZBy47t3a02JF27hMEbM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:12.304662"], ["updated_at", "2015-03-01 04:42:12.304662"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53c8503e-bfcd-11e4-8b20-705681abff85' AND "clubhouse_memberships"."organization_id" = '53cc4054-bfcd-11e4-bfb1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53c8503e-bfcd-11e4-8b20-705681abff85"], ["organization_id", "53cc4054-bfcd-11e4-bfb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:12.310430"], ["updated_at", "2015-03-01 04:42:12.310430"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53cb536a-bfcd-11e4-8373-705681abff85' AND "clubhouse_memberships"."organization_id" = '53cc4054-bfcd-11e4-bfb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "53cb536a-bfcd-11e4-8373-705681abff85"], ["organization_id", "53cc4054-bfcd-11e4-bfb1-705681abff85"], ["created_at", "2015-03-01 04:42:12.316812"], ["updated_at", "2015-03-01 04:42:12.316812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/53cd3770-bfcd-11e4-8be5-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:42:12 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$eC1i1NvoJamEvMHJHTKq.Oo.rPu6uzeVrb97CjY0cy3/IDXl5JMlm"], ["created_at", "2015-03-01 04:42:12.329525"], ["updated_at", "2015-03-01 04:42:12.329525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$rXm7/zpW9C/YrHye0/hnc.hOHgzbPSr97EoukwMb7buBgqwien3Q2"], ["created_at", "2015-03-01 04:42:12.336723"], ["updated_at", "2015-03-01 04:42:12.336723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:12.339200"], ["user_id", "53d01ce2-bfcd-11e4-a84b-705681abff85"], ["created_at", "2015-03-01 04:42:12.340595"], ["updated_at", "2015-03-01 04:42:12.340595"], ["token", "p2WoIXXzKpFMZv39Jj81VICUy3uUGhn9YFyfRdCQfbI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:12.344280"], ["updated_at", "2015-03-01 04:42:12.344280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53d01ce2-bfcd-11e4-a84b-705681abff85' AND "clubhouse_memberships"."organization_id" = '53d24e90-bfcd-11e4-85f0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53d01ce2-bfcd-11e4-a84b-705681abff85"], ["organization_id", "53d24e90-bfcd-11e4-85f0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:12.349463"], ["updated_at", "2015-03-01 04:42:12.349463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53d13820-bfcd-11e4-be9e-705681abff85' AND "clubhouse_memberships"."organization_id" = '53d24e90-bfcd-11e4-85f0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "53d13820-bfcd-11e4-be9e-705681abff85"], ["organization_id", "53d24e90-bfcd-11e4-85f0-705681abff85"], ["created_at", "2015-03-01 04:42:12.353107"], ["updated_at", "2015-03-01 04:42:12.353107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:42:12 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:42:12.358035' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p2WoIXXzKpFMZv39Jj81VICUy3uUGhn9YFyfRdCQfbI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:42:12.359748"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:42:12.360802"], ["id", "53d1c8a8-bfcd-11e4-b63b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "53d01ce2-bfcd-11e4-a84b-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "53d01ce2-bfcd-11e4-a84b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "53d01ce2-bfcd-11e4-a84b-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "53d01ce2-bfcd-11e4-a84b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "53d24e90-bfcd-11e4-85f0-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "53d01ce2-bfcd-11e4-a84b-705681abff85"]] Completed 200 OK in 24ms (Views: 12.2ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$q2wJ61neyT9DSPiboryTfOuT3QdifTi3z6dyAHl3ZFK7gXIWL.RJK"], ["created_at", "2015-03-01 04:42:12.387668"], ["updated_at", "2015-03-01 04:42:12.387668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$Ypu/kvxvooy55a6QE7g5q.DXBNd7DnH2.ekP.ulGTYnDNFArCO0WS"], ["created_at", "2015-03-01 04:42:12.394246"], ["updated_at", "2015-03-01 04:42:12.394246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:12.396887"], ["user_id", "53d8fa6a-bfcd-11e4-8320-705681abff85"], ["created_at", "2015-03-01 04:42:12.397807"], ["updated_at", "2015-03-01 04:42:12.397807"], ["token", "viY0237JPfZB_wAfelKqAlKXal0x_Y7QgaISpAJvzYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:12.401615"], ["updated_at", "2015-03-01 04:42:12.401615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53d8fa6a-bfcd-11e4-8320-705681abff85' AND "clubhouse_memberships"."organization_id" = '53db0dfa-bfcd-11e4-a502-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53d8fa6a-bfcd-11e4-8320-705681abff85"], ["organization_id", "53db0dfa-bfcd-11e4-a502-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:12.406339"], ["updated_at", "2015-03-01 04:42:12.406339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53d9f4f6-bfcd-11e4-bc40-705681abff85' AND "clubhouse_memberships"."organization_id" = '53db0dfa-bfcd-11e4-a502-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "53d9f4f6-bfcd-11e4-bc40-705681abff85"], ["organization_id", "53db0dfa-bfcd-11e4-a502-705681abff85"], ["created_at", "2015-03-01 04:42:12.410256"], ["updated_at", "2015-03-01 04:42:12.410256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:42:12 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$SEHuCX88MaLPB/2VLremGez5bsl1Tpf/p.nqLE2aY9mllWkixLIxm"], ["created_at", "2015-03-01 04:42:12.431075"], ["updated_at", "2015-03-01 04:42:12.431075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Sw9Ns/fZPmFhhs2B9zG.LORLut0v2an59dKBTuw.qxWbiw4C1Rpeu"], ["created_at", "2015-03-01 04:42:12.436042"], ["updated_at", "2015-03-01 04:42:12.436042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:12.438132"], ["user_id", "53df903c-bfcd-11e4-957a-705681abff85"], ["created_at", "2015-03-01 04:42:12.438958"], ["updated_at", "2015-03-01 04:42:12.438958"], ["token", "TBTHGYanwHFUTWNy5raBHZZ02WtFeDRk7qTsuixkUqw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:12.445351"], ["updated_at", "2015-03-01 04:42:12.445351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53df903c-bfcd-11e4-957a-705681abff85' AND "clubhouse_memberships"."organization_id" = '53e1ba60-bfcd-11e4-84cc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53df903c-bfcd-11e4-957a-705681abff85"], ["organization_id", "53e1ba60-bfcd-11e4-84cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:12.454208"], ["updated_at", "2015-03-01 04:42:12.454208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53e0503a-bfcd-11e4-8517-705681abff85' AND "clubhouse_memberships"."organization_id" = '53e1ba60-bfcd-11e4-84cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "53e0503a-bfcd-11e4-8517-705681abff85"], ["organization_id", "53e1ba60-bfcd-11e4-84cc-705681abff85"], ["created_at", "2015-03-01 04:42:12.459692"], ["updated_at", "2015-03-01 04:42:12.459692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/53e3ebdc-bfcd-11e4-b739-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:42:12 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"53e3ebdc-bfcd-11e4-b739-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:42:12.464894' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TBTHGYanwHFUTWNy5raBHZZ02WtFeDRk7qTsuixkUqw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:42:12.466437"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:42:12.467482"], ["id", "53e0d5f0-bfcd-11e4-806f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "53df903c-bfcd-11e4-957a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "53df903c-bfcd-11e4-957a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '53df903c-bfcd-11e4-957a-705681abff85' LIMIT 1 [["organization_id", "53e1ba60-bfcd-11e4-84cc-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "53e1ba60-bfcd-11e4-84cc-705681abff85"], ["id", "53e3ebdc-bfcd-11e4-b739-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "53e1ba60-bfcd-11e4-84cc-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "53e0503a-bfcd-11e4-8517-705681abff85"]] Completed 200 OK in 16ms (Views: 4.8ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (12.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$XmAEtsRFidKImOzDmXG2Je6Ia4Wk4InTM/ogNXYz1Kr2lQgXC3hXu"], ["created_at", "2015-03-01 04:42:56.715743"], ["updated_at", "2015-03-01 04:42:56.715743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$XhIph2gvsVt8Mo90YPava.StAr8lQAFGh5kYE3AOSnlUBNm8PSNge"], ["created_at", "2015-03-01 04:42:56.734708"], ["updated_at", "2015-03-01 04:42:56.734708"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:56.749844"], ["user_id", "6e450880-bfcd-11e4-bae4-705681abff85"], ["created_at", "2015-03-01 04:42:56.772734"], ["updated_at", "2015-03-01 04:42:56.772734"], ["token", "0_S_8cN0U1mmEz1D-5wlybPE73PQGZLpPoKr-gDa05I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:56.784073"], ["updated_at", "2015-03-01 04:42:56.784073"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e450880-bfcd-11e4-bae4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e4f71b2-bfcd-11e4-bec7-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e450880-bfcd-11e4-bae4-705681abff85"], ["organization_id", "6e4f71b2-bfcd-11e4-bec7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:56.841501"], ["updated_at", "2015-03-01 04:42:56.841501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e47d718-bfcd-11e4-a2aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e4f71b2-bfcd-11e4-bec7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e47d718-bfcd-11e4-a2aa-705681abff85"], ["organization_id", "6e4f71b2-bfcd-11e4-bec7-705681abff85"], ["created_at", "2015-03-01 04:42:56.847481"], ["updated_at", "2015-03-01 04:42:56.847481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:42:56 -0800  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$4J6gR049SEcuvQ/opw6RiO6WQdJlp1/XYUfYd1hyW/ya10TisjwXy"], ["created_at", "2015-03-01 04:42:56.867859"], ["updated_at", "2015-03-01 04:42:56.867859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$sdeZb1M0m0M6qKPI3DZOBOidR/8IBooB8plo3IdCEKExqCJEq/jji"], ["created_at", "2015-03-01 04:42:56.873724"], ["updated_at", "2015-03-01 04:42:56.873724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:56.875689"], ["user_id", "6e5c2a24-bfcd-11e4-915d-705681abff85"], ["created_at", "2015-03-01 04:42:56.876549"], ["updated_at", "2015-03-01 04:42:56.876549"], ["token", "zx2wsfMzz5Lq3XjmWsGayA8LHDCwKaZJxMx7kqcsBVs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:56.882823"], ["updated_at", "2015-03-01 04:42:56.882823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e5c2a24-bfcd-11e4-915d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e5e5ee8-bfcd-11e4-8854-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e5c2a24-bfcd-11e4-915d-705681abff85"], ["organization_id", "6e5e5ee8-bfcd-11e4-8854-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:56.886854"], ["updated_at", "2015-03-01 04:42:56.886854"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e5cfa80-bfcd-11e4-9e70-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e5e5ee8-bfcd-11e4-8854-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e5cfa80-bfcd-11e4-9e70-705681abff85"], ["organization_id", "6e5e5ee8-bfcd-11e4-8854-705681abff85"], ["created_at", "2015-03-01 04:42:56.890781"], ["updated_at", "2015-03-01 04:42:56.890781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/6e5ef9d4-bfcd-11e4-bc9d-705681abff85" for 127.0.0.1 at 2015-02-28 20:42:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$If3KgI/9yNuBJQLSN8eziOOvB48f3nFNAFMk4Ayrto.QK2.RyCcQ2"], ["created_at", "2015-03-01 04:42:56.902425"], ["updated_at", "2015-03-01 04:42:56.902425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$8sgUfddqSkdi11XloAgax.gLTk0nbkFHbGSI64/z/7uIYBkbIU3UK"], ["created_at", "2015-03-01 04:42:56.908010"], ["updated_at", "2015-03-01 04:42:56.908010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:56.909800"], ["user_id", "6e616200-bfcd-11e4-af73-705681abff85"], ["created_at", "2015-03-01 04:42:56.910623"], ["updated_at", "2015-03-01 04:42:56.910623"], ["token", "Xbcda0DuIcqWpBt8YQdtBN2aEGYYJpp44s1R8na9G_M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:56.914551"], ["updated_at", "2015-03-01 04:42:56.914551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e616200-bfcd-11e4-af73-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e633238-bfcd-11e4-b3e3-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e616200-bfcd-11e4-af73-705681abff85"], ["organization_id", "6e633238-bfcd-11e4-b3e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:56.918841"], ["updated_at", "2015-03-01 04:42:56.918841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e623400-bfcd-11e4-a370-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e633238-bfcd-11e4-b3e3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e623400-bfcd-11e4-a370-705681abff85"], ["organization_id", "6e633238-bfcd-11e4-b3e3-705681abff85"], ["created_at", "2015-03-01 04:42:56.924371"], ["updated_at", "2015-03-01 04:42:56.924371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:42:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$FRmBzqh0O5zSB0cdWU4q9u.jWuT2UE3nYonZFfCcZQnMExfYyjZ.6"], ["created_at", "2015-03-01 04:42:56.937017"], ["updated_at", "2015-03-01 04:42:56.937017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$LOj3PZseYjkVF.PW776wReqpwjV2IT5iEmKXIyxfGMXZSLbX/iZ.2"], ["created_at", "2015-03-01 04:42:56.942070"], ["updated_at", "2015-03-01 04:42:56.942070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:56.943801"], ["user_id", "6e66a35a-bfcd-11e4-bccd-705681abff85"], ["created_at", "2015-03-01 04:42:56.944773"], ["updated_at", "2015-03-01 04:42:56.944773"], ["token", "xUONn4z1iCPrDFh574Vqb2bfuzK58XFIwW2q4hpqmOc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:56.948606"], ["updated_at", "2015-03-01 04:42:56.948606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e66a35a-bfcd-11e4-bccd-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e6864c4-bfcd-11e4-ac49-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e66a35a-bfcd-11e4-bccd-705681abff85"], ["organization_id", "6e6864c4-bfcd-11e4-ac49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:56.953769"], ["updated_at", "2015-03-01 04:42:56.953769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e676524-bfcd-11e4-8e10-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e6864c4-bfcd-11e4-ac49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e676524-bfcd-11e4-8e10-705681abff85"], ["organization_id", "6e6864c4-bfcd-11e4-ac49-705681abff85"], ["created_at", "2015-03-01 04:42:56.958450"], ["updated_at", "2015-03-01 04:42:56.958450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:42:56 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$jqIUsj.l1PJTqGv2rUVrW.JOiAJauFT74203r2KX1k.GvV.M1umdm"], ["created_at", "2015-03-01 04:42:56.971620"], ["updated_at", "2015-03-01 04:42:56.971620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$fWkx6w/MnK7JvV7F7JR9XOY5IGQDGlUp102LtvI0onWrFVVR4osQ2"], ["created_at", "2015-03-01 04:42:56.977437"], ["updated_at", "2015-03-01 04:42:56.977437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:56.979529"], ["user_id", "6e6bec48-bfcd-11e4-959d-705681abff85"], ["created_at", "2015-03-01 04:42:56.980676"], ["updated_at", "2015-03-01 04:42:56.980676"], ["token", "Yx9qV4m4a0pcTIvkfv_yNcwI1nw8x3t9v6LmS9zJNmo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:56.986445"], ["updated_at", "2015-03-01 04:42:56.986445"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e6bec48-bfcd-11e4-959d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e6e346c-bfcd-11e4-8636-705681abff85') LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e6bec48-bfcd-11e4-959d-705681abff85"], ["organization_id", "6e6e346c-bfcd-11e4-8636-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:56.991692"], ["updated_at", "2015-03-01 04:42:56.991692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e6cd5f4-bfcd-11e4-9ac9-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e6e346c-bfcd-11e4-8636-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e6cd5f4-bfcd-11e4-9ac9-705681abff85"], ["organization_id", "6e6e346c-bfcd-11e4-8636-705681abff85"], ["created_at", "2015-03-01 04:42:56.997629"], ["updated_at", "2015-03-01 04:42:56.997629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/6e6fdf10-bfcd-11e4-84c0-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:42:57 -0800  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$UR7IIPSo/5y/YHfX9FBQte/1GCpfs2xEBfeFOPxl2NmSA3wuoBnq6"], ["created_at", "2015-03-01 04:42:57.013964"], ["updated_at", "2015-03-01 04:42:57.013964"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$HoOe5JVNhsIWEBPW9Q1FnOv6IgnjMIlS.01..hW.UWzZGTz9MQRsK"], ["created_at", "2015-03-01 04:42:57.023865"], ["updated_at", "2015-03-01 04:42:57.023865"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:57.027503"], ["user_id", "6e72720c-bfcd-11e4-b074-705681abff85"], ["created_at", "2015-03-01 04:42:57.028959"], ["updated_at", "2015-03-01 04:42:57.028959"], ["token", "ifuSrWAZ80r3Wk5zJ3WcaPtVwlQYoAaUQTC5jByZNag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:57.033115"], ["updated_at", "2015-03-01 04:42:57.033115"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e72720c-bfcd-11e4-b074-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e756cb4-bfcd-11e4-86b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e72720c-bfcd-11e4-b074-705681abff85"], ["organization_id", "6e756cb4-bfcd-11e4-86b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:57.038971"], ["updated_at", "2015-03-01 04:42:57.038971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e73fe2e-bfcd-11e4-9c59-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e756cb4-bfcd-11e4-86b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e73fe2e-bfcd-11e4-9c59-705681abff85"], ["organization_id", "6e756cb4-bfcd-11e4-86b0-705681abff85"], ["created_at", "2015-03-01 04:42:57.043101"], ["updated_at", "2015-03-01 04:42:57.043101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/6e762f50-bfcd-11e4-9882-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:42:57 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.5ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ZAGOAXc.Mw5Rtu7CZQHVlOrgq9Jr2MZN/ajWjhqdq1h6gsuWjROfm"], ["created_at", "2015-03-01 04:42:57.059926"], ["updated_at", "2015-03-01 04:42:57.059926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$tXpy2gVwECsFraCC1DGtJOZU4ewMg3.p.RlPVFaQRDBmpV6w4S.Gq"], ["created_at", "2015-03-01 04:42:57.069816"], ["updated_at", "2015-03-01 04:42:57.069816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:57.071596"], ["user_id", "6e7978cc-bfcd-11e4-bfe4-705681abff85"], ["created_at", "2015-03-01 04:42:57.072958"], ["updated_at", "2015-03-01 04:42:57.072958"], ["token", "0Jp1FaaUZOsxQ-YnNiT6OCHGpCLwyQvxdyuX1VMnXho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:57.077179"], ["updated_at", "2015-03-01 04:42:57.077179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e7978cc-bfcd-11e4-bfe4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e7c0272-bfcd-11e4-89a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e7978cc-bfcd-11e4-bfe4-705681abff85"], ["organization_id", "6e7c0272-bfcd-11e4-89a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:57.080905"], ["updated_at", "2015-03-01 04:42:57.080905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e7ae3c4-bfcd-11e4-902f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e7c0272-bfcd-11e4-89a5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e7ae3c4-bfcd-11e4-902f-705681abff85"], ["organization_id", "6e7c0272-bfcd-11e4-89a5-705681abff85"], ["created_at", "2015-03-01 04:42:57.084907"], ["updated_at", "2015-03-01 04:42:57.084907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:42:57 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$64VQKxcVTCq/FGtgy/vueOQ7ZqJJOk.Zw3bsdKZvBJerupnCfGyRu"], ["created_at", "2015-03-01 04:42:57.096107"], ["updated_at", "2015-03-01 04:42:57.096107"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$CEFBerxMa5rW8MZqf5Cd2eReWJ0C9pHhLx09Qa08V2v0Iv89ot9n2"], ["created_at", "2015-03-01 04:42:57.106127"], ["updated_at", "2015-03-01 04:42:57.106127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:57.108885"], ["user_id", "6e7ef784-bfcd-11e4-92a0-705681abff85"], ["created_at", "2015-03-01 04:42:57.109768"], ["updated_at", "2015-03-01 04:42:57.109768"], ["token", "CS7hMc_ISWBuwJEmChOfhkwDaR7iCbvYCqw8atbYmaA"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:57.115850"], ["updated_at", "2015-03-01 04:42:57.115850"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e7ef784-bfcd-11e4-92a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e81f5c4-bfcd-11e4-a568-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e7ef784-bfcd-11e4-92a0-705681abff85"], ["organization_id", "6e81f5c4-bfcd-11e4-a568-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:57.122018"], ["updated_at", "2015-03-01 04:42:57.122018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e808b12-bfcd-11e4-879d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e81f5c4-bfcd-11e4-a568-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e808b12-bfcd-11e4-879d-705681abff85"], ["organization_id", "6e81f5c4-bfcd-11e4-a568-705681abff85"], ["created_at", "2015-03-01 04:42:57.126715"], ["updated_at", "2015-03-01 04:42:57.126715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/6e839348-bfcd-11e4-8750-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:42:57 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$6beRxr7Ct7ffbXxk8RxUXegb.n/yMzCqar6hW75x94M.S9YEEa9n6"], ["created_at", "2015-03-01 04:42:57.137964"], ["updated_at", "2015-03-01 04:42:57.137964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$yI808msum/stdEVAe5qVlO6BiN4IOfCo5dxXQv331DfzgaR/1ggfO"], ["created_at", "2015-03-01 04:42:57.142842"], ["updated_at", "2015-03-01 04:42:57.142842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:57.144479"], ["user_id", "6e8550fc-bfcd-11e4-97c8-705681abff85"], ["created_at", "2015-03-01 04:42:57.145246"], ["updated_at", "2015-03-01 04:42:57.145246"], ["token", "99ENSKz110hsuUu5zkvux2aUs30koe_FABoC61sDamA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:57.148753"], ["updated_at", "2015-03-01 04:42:57.148753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e8550fc-bfcd-11e4-97c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e86e912-bfcd-11e4-87bf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e8550fc-bfcd-11e4-97c8-705681abff85"], ["organization_id", "6e86e912-bfcd-11e4-87bf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:57.152376"], ["updated_at", "2015-03-01 04:42:57.152376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e86059c-bfcd-11e4-8082-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e86e912-bfcd-11e4-87bf-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e86059c-bfcd-11e4-8082-705681abff85"], ["organization_id", "6e86e912-bfcd-11e4-87bf-705681abff85"], ["created_at", "2015-03-01 04:42:57.156122"], ["updated_at", "2015-03-01 04:42:57.156122"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:42:57 -0800  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$thql0.EzjTi/jM3MNnHJQeJtKDwsnfz5jOPc/0MdX3BF7ZgeCKPNK"], ["created_at", "2015-03-01 04:42:57.170523"], ["updated_at", "2015-03-01 04:42:57.170523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$M.QMImovX..7loywxmpvK.W/NcaXnvXdr0V.DIEfK1qD7VqSFylaO"], ["created_at", "2015-03-01 04:42:57.175621"], ["updated_at", "2015-03-01 04:42:57.175621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:57.177393"], ["user_id", "6e8a4db4-bfcd-11e4-9af7-705681abff85"], ["created_at", "2015-03-01 04:42:57.178309"], ["updated_at", "2015-03-01 04:42:57.178309"], ["token", "h1RgIuttADfLHgSMy96flUvjTjN-E9g_agbjPiU8WCw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:57.182089"], ["updated_at", "2015-03-01 04:42:57.182089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e8a4db4-bfcd-11e4-9af7-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e8bffce-bfcd-11e4-a2d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e8a4db4-bfcd-11e4-9af7-705681abff85"], ["organization_id", "6e8bffce-bfcd-11e4-a2d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:57.185655"], ["updated_at", "2015-03-01 04:42:57.185655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e8b0678-bfcd-11e4-a313-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e8bffce-bfcd-11e4-a2d2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e8b0678-bfcd-11e4-a313-705681abff85"], ["organization_id", "6e8bffce-bfcd-11e4-a2d2-705681abff85"], ["created_at", "2015-03-01 04:42:57.189270"], ["updated_at", "2015-03-01 04:42:57.189270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/6e8d1b34-bfcd-11e4-90c3-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:42:57 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$8OroUy.1qEluX0FijrAfCutJ8yXFjIZQx4PjM.LtNBE2Ea79zzXD6"], ["created_at", "2015-03-01 04:42:57.199932"], ["updated_at", "2015-03-01 04:42:57.199932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$aUgwmZilBgQgYr9gfqHiZOU6YOwKKxrNife8pcpyNBvCtteIuz2/W"], ["created_at", "2015-03-01 04:42:57.205410"], ["updated_at", "2015-03-01 04:42:57.205410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:57.207387"], ["user_id", "6e8ebef8-bfcd-11e4-b052-705681abff85"], ["created_at", "2015-03-01 04:42:57.208366"], ["updated_at", "2015-03-01 04:42:57.208366"], ["token", "dZVm9kEgH2G6ACHlAlsXXj-CFonMg9UtFHQD9fnBND0"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:57.214103"], ["updated_at", "2015-03-01 04:42:57.214103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e8ebef8-bfcd-11e4-b052-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e90e7f0-bfcd-11e4-9379-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e8ebef8-bfcd-11e4-b052-705681abff85"], ["organization_id", "6e90e7f0-bfcd-11e4-9379-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:57.217879"], ["updated_at", "2015-03-01 04:42:57.217879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e8f96de-bfcd-11e4-bb3a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e90e7f0-bfcd-11e4-9379-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e8f96de-bfcd-11e4-bb3a-705681abff85"], ["organization_id", "6e90e7f0-bfcd-11e4-9379-705681abff85"], ["created_at", "2015-03-01 04:42:57.251076"], ["updated_at", "2015-03-01 04:42:57.251076"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/6e918728-bfcd-11e4-86c4-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:42:57 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$UyD8yFK/BFd1Yh1YYysjzOv5V/XDdW5aHq3JGyIagmZjxgnd4Qo2m"], ["created_at", "2015-03-01 04:42:57.274874"], ["updated_at", "2015-03-01 04:42:57.274874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$uiGsJpC6giZ7c9GjCWiOgOr8AnHnUTHoaoXPV3f3dCmLcJur8KkHi"], ["created_at", "2015-03-01 04:42:57.282069"], ["updated_at", "2015-03-01 04:42:57.282069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:42:57.283907"], ["user_id", "6e9a4aac-bfcd-11e4-8c6d-705681abff85"], ["created_at", "2015-03-01 04:42:57.284986"], ["updated_at", "2015-03-01 04:42:57.284986"], ["token", "-5AJyKi8ycQMXP2WyB55ONnTzqPa-RdUoLElr1GKRT4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:42:57.289286"], ["updated_at", "2015-03-01 04:42:57.289286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e9a4aac-bfcd-11e4-8c6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e9c5e32-bfcd-11e4-900d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e9a4aac-bfcd-11e4-8c6d-705681abff85"], ["organization_id", "6e9c5e32-bfcd-11e4-900d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:42:57.293314"], ["updated_at", "2015-03-01 04:42:57.293314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e9b4ad8-bfcd-11e4-b61e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e9c5e32-bfcd-11e4-900d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e9b4ad8-bfcd-11e4-b61e-705681abff85"], ["organization_id", "6e9c5e32-bfcd-11e4-900d-705681abff85"], ["created_at", "2015-03-01 04:42:57.296894"], ["updated_at", "2015-03-01 04:42:57.296894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:42:57 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$juf5K/WfbTSRq4eIGMYVr.KWlIvKyrdgmGWW3RSLsRYnb3uBe9Bom"], ["created_at", "2015-03-01 04:43:27.717817"], ["updated_at", "2015-03-01 04:43:27.717817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$0.d95sx6gLHGGMlCqdvSQubwmjvVdnxEJeYUs5Dv8efYUTDXNsmd6"], ["created_at", "2015-03-01 04:43:27.723953"], ["updated_at", "2015-03-01 04:43:27.723953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:27.733186"], ["user_id", "80bf94a8-bfcd-11e4-a788-705681abff85"], ["created_at", "2015-03-01 04:43:27.742070"], ["updated_at", "2015-03-01 04:43:27.742070"], ["token", "lH03X1SrZ2DFxQFpAKLlWmtSKJU8V2FesKiQIoKfswU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:27.751590"], ["updated_at", "2015-03-01 04:43:27.751590"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80bf94a8-bfcd-11e4-a788-705681abff85' AND "clubhouse_memberships"."organization_id" = '80c4946c-bfcd-11e4-940d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80bf94a8-bfcd-11e4-a788-705681abff85"], ["organization_id", "80c4946c-bfcd-11e4-940d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:27.799132"], ["updated_at", "2015-03-01 04:43:27.799132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80c0587a-bfcd-11e4-a718-705681abff85' AND "clubhouse_memberships"."organization_id" = '80c4946c-bfcd-11e4-940d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80c0587a-bfcd-11e4-a718-705681abff85"], ["organization_id", "80c4946c-bfcd-11e4-940d-705681abff85"], ["created_at", "2015-03-01 04:43:27.802875"], ["updated_at", "2015-03-01 04:43:27.802875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/80cbd416-bfcd-11e4-8d35-705681abff85" for 127.0.0.1 at 2015-02-28 20:43:27 -0800  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$sjpuH4aKCp4HuatpSzvtp.Na//eKlZ.AKczvylpgXkoL98AlRDmG6"], ["created_at", "2015-03-01 04:43:27.820658"], ["updated_at", "2015-03-01 04:43:27.820658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Mq04m.pL5N1Dc72NxFzldOxXmfSoh8mSWpJNjZp.V5MQYyBGcPbjS"], ["created_at", "2015-03-01 04:43:27.825861"], ["updated_at", "2015-03-01 04:43:27.825861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:27.827598"], ["user_id", "80cf1784-bfcd-11e4-8e92-705681abff85"], ["created_at", "2015-03-01 04:43:27.828386"], ["updated_at", "2015-03-01 04:43:27.828386"], ["token", "FE6ZY8CYu6cWEU5P1-vpnbefRryl62gWqAUp_yPy9R4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:27.831616"], ["updated_at", "2015-03-01 04:43:27.831616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80cf1784-bfcd-11e4-8e92-705681abff85' AND "clubhouse_memberships"."organization_id" = '80d0bf8a-bfcd-11e4-b7c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80cf1784-bfcd-11e4-8e92-705681abff85"], ["organization_id", "80d0bf8a-bfcd-11e4-b7c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:27.834938"], ["updated_at", "2015-03-01 04:43:27.834938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80cfe646-bfcd-11e4-8903-705681abff85' AND "clubhouse_memberships"."organization_id" = '80d0bf8a-bfcd-11e4-b7c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80cfe646-bfcd-11e4-8903-705681abff85"], ["organization_id", "80d0bf8a-bfcd-11e4-b7c3-705681abff85"], ["created_at", "2015-03-01 04:43:27.838019"], ["updated_at", "2015-03-01 04:43:27.838019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:43:27 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Cy6zEToXIWC0Rn2A4ODbCOJEDMZM7ZvgUHit6.q6.yf3k7w.qfVWO"], ["created_at", "2015-03-01 04:43:27.847611"], ["updated_at", "2015-03-01 04:43:27.847611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$zaKnf9.rrNqXSk/I21xYWuy1p0ijHcGf7Q43cEVFj/5me0qhoSTzy"], ["created_at", "2015-03-01 04:43:27.852352"], ["updated_at", "2015-03-01 04:43:27.852352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:27.853944"], ["user_id", "80d332ce-bfcd-11e4-9a52-705681abff85"], ["created_at", "2015-03-01 04:43:27.854758"], ["updated_at", "2015-03-01 04:43:27.854758"], ["token", "cSE4y93pKTuRaMEZmc6JCTOEzzu3U9ME0kHi8WgPaI8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:27.858204"], ["updated_at", "2015-03-01 04:43:27.858204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80d332ce-bfcd-11e4-9a52-705681abff85' AND "clubhouse_memberships"."organization_id" = '80d4d890-bfcd-11e4-9d01-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80d332ce-bfcd-11e4-9a52-705681abff85"], ["organization_id", "80d4d890-bfcd-11e4-9d01-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:27.861883"], ["updated_at", "2015-03-01 04:43:27.861883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80d3ec14-bfcd-11e4-afe2-705681abff85' AND "clubhouse_memberships"."organization_id" = '80d4d890-bfcd-11e4-9d01-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80d3ec14-bfcd-11e4-afe2-705681abff85"], ["organization_id", "80d4d890-bfcd-11e4-9d01-705681abff85"], ["created_at", "2015-03-01 04:43:27.865179"], ["updated_at", "2015-03-01 04:43:27.865179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/80d5dd12-bfcd-11e4-9832-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:43:27 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$A3wLOR.H3BFkl37u7WHDe.dfs83qM7kushFunIPP64VI1a.yMD9Aq"], ["created_at", "2015-03-01 04:43:27.874279"], ["updated_at", "2015-03-01 04:43:27.874279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$DpmpUpzFgFuslZCW8Fyd3OwciRa9zSHF1.VGpj38fSoS/SyxD1Jc6"], ["created_at", "2015-03-01 04:43:27.878855"], ["updated_at", "2015-03-01 04:43:27.878855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:27.880406"], ["user_id", "80d7481e-bfcd-11e4-a51d-705681abff85"], ["created_at", "2015-03-01 04:43:27.881300"], ["updated_at", "2015-03-01 04:43:27.881300"], ["token", "cO3bzuWb-a-4lhNzD9tcFORB48YmN3yuGRVTBVkgAcY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:27.884877"], ["updated_at", "2015-03-01 04:43:27.884877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80d7481e-bfcd-11e4-a51d-705681abff85' AND "clubhouse_memberships"."organization_id" = '80d8df8a-bfcd-11e4-80e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80d7481e-bfcd-11e4-a51d-705681abff85"], ["organization_id", "80d8df8a-bfcd-11e4-80e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:27.888102"], ["updated_at", "2015-03-01 04:43:27.888102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80d7f502-bfcd-11e4-aeab-705681abff85' AND "clubhouse_memberships"."organization_id" = '80d8df8a-bfcd-11e4-80e1-705681abff85') LIMIT 1 SQL (12.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80d7f502-bfcd-11e4-aeab-705681abff85"], ["organization_id", "80d8df8a-bfcd-11e4-80e1-705681abff85"], ["created_at", "2015-03-01 04:43:27.892074"], ["updated_at", "2015-03-01 04:43:27.892074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:43:27 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$OLWXu.Bfc5GxDvotOeqeaOUB.woTiAZaw4c6iXXJ4id3kpNoyb1tW"], ["created_at", "2015-03-01 04:43:27.915494"], ["updated_at", "2015-03-01 04:43:27.915494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$JIWylrF.8dCW.bYFMhxpQu8fSlRJQV7WoQDpcfqOzkWImjg46Dfo2"], ["created_at", "2015-03-01 04:43:27.919834"], ["updated_at", "2015-03-01 04:43:27.919834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:27.921330"], ["user_id", "80dd8f44-bfcd-11e4-aa4d-705681abff85"], ["created_at", "2015-03-01 04:43:27.922147"], ["updated_at", "2015-03-01 04:43:27.922147"], ["token", "V8r11_uEcd2PPtW08ZElFnU01SHVpHhDLZjataVWzZ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:27.925741"], ["updated_at", "2015-03-01 04:43:27.925741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80dd8f44-bfcd-11e4-aa4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '80df2156-bfcd-11e4-b64b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80dd8f44-bfcd-11e4-aa4d-705681abff85"], ["organization_id", "80df2156-bfcd-11e4-b64b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:27.929222"], ["updated_at", "2015-03-01 04:43:27.929222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80de34e4-bfcd-11e4-9324-705681abff85' AND "clubhouse_memberships"."organization_id" = '80df2156-bfcd-11e4-b64b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80de34e4-bfcd-11e4-9324-705681abff85"], ["organization_id", "80df2156-bfcd-11e4-b64b-705681abff85"], ["created_at", "2015-03-01 04:43:27.932221"], ["updated_at", "2015-03-01 04:43:27.932221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:43:27 -0800  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$HR/Sh1kzrCdNcnWHvyI9z.kgoXBZwmOwwjnq6mDQoMP4gyM/RvgR6"], ["created_at", "2015-03-01 04:43:27.940907"], ["updated_at", "2015-03-01 04:43:27.940907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$VQAQ9HP2CaibQMHEIu4GVOCAWpX6/lGkyzPviZvmFoOpKfS8Vn7MW"], ["created_at", "2015-03-01 04:43:27.945647"], ["updated_at", "2015-03-01 04:43:27.945647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:27.947468"], ["user_id", "80e1706e-bfcd-11e4-8017-705681abff85"], ["created_at", "2015-03-01 04:43:27.948285"], ["updated_at", "2015-03-01 04:43:27.948285"], ["token", "5cUAwLsLHkZLDgqO97Ze0x7DM6TCc7aSavMv_uFqyEs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:27.951678"], ["updated_at", "2015-03-01 04:43:27.951678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80e1706e-bfcd-11e4-8017-705681abff85' AND "clubhouse_memberships"."organization_id" = '80e31504-bfcd-11e4-b892-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80e1706e-bfcd-11e4-8017-705681abff85"], ["organization_id", "80e31504-bfcd-11e4-b892-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:27.955412"], ["updated_at", "2015-03-01 04:43:27.955412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80e22dc4-bfcd-11e4-bee5-705681abff85' AND "clubhouse_memberships"."organization_id" = '80e31504-bfcd-11e4-b892-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80e22dc4-bfcd-11e4-bee5-705681abff85"], ["organization_id", "80e31504-bfcd-11e4-b892-705681abff85"], ["created_at", "2015-03-01 04:43:27.958727"], ["updated_at", "2015-03-01 04:43:27.958727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/80e3a3ca-bfcd-11e4-84e7-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:43:27 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$LXXf6yDC3K.qlF4WrXdKzOZn5lvy7iLS.VrJNbVjbKENWfhjj3lx6"], ["created_at", "2015-03-01 04:43:27.972526"], ["updated_at", "2015-03-01 04:43:27.972526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$UCOabQyEU.3kAIMwaMWSl.xUXuzzRBZL1vZLuvId6nWQmd/wk8y.u"], ["created_at", "2015-03-01 04:43:27.977081"], ["updated_at", "2015-03-01 04:43:27.977081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:27.978940"], ["user_id", "80e643e6-bfcd-11e4-9b71-705681abff85"], ["created_at", "2015-03-01 04:43:27.980164"], ["updated_at", "2015-03-01 04:43:27.980164"], ["token", "-pjBt4wD1Funpp8hwXtdJ-kBtc1oNClEf3WCo-P86Rs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:27.984498"], ["updated_at", "2015-03-01 04:43:27.984498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80e643e6-bfcd-11e4-9b71-705681abff85' AND "clubhouse_memberships"."organization_id" = '80e81522-bfcd-11e4-9159-705681abff85') LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80e643e6-bfcd-11e4-9b71-705681abff85"], ["organization_id", "80e81522-bfcd-11e4-9159-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:27.987884"], ["updated_at", "2015-03-01 04:43:27.987884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80e6f8f4-bfcd-11e4-ac86-705681abff85' AND "clubhouse_memberships"."organization_id" = '80e81522-bfcd-11e4-9159-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80e6f8f4-bfcd-11e4-ac86-705681abff85"], ["organization_id", "80e81522-bfcd-11e4-9159-705681abff85"], ["created_at", "2015-03-01 04:43:27.993027"], ["updated_at", "2015-03-01 04:43:27.993027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/80e962ec-bfcd-11e4-b9ef-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:43:27 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$IWJsOm7mout4RA.9hFfBAuy2rGywQmGNP.TqKJI1KGDUMgz9cIuNK"], ["created_at", "2015-03-01 04:43:28.002710"], ["updated_at", "2015-03-01 04:43:28.002710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$rBwUM7OUyzchY5/ksYbNzu9j1Cs0vSU43CWoqCF6EbU3SIogO6NOm"], ["created_at", "2015-03-01 04:43:28.007489"], ["updated_at", "2015-03-01 04:43:28.007489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:28.009294"], ["user_id", "80eae5fe-bfcd-11e4-8a90-705681abff85"], ["created_at", "2015-03-01 04:43:28.010333"], ["updated_at", "2015-03-01 04:43:28.010333"], ["token", "iaYgM_hjDOheeBGw5Sc2vqiTcj2CfGtWcvPTwlKtafE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:28.014003"], ["updated_at", "2015-03-01 04:43:28.014003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80eae5fe-bfcd-11e4-8a90-705681abff85' AND "clubhouse_memberships"."organization_id" = '80ec94d0-bfcd-11e4-87e6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80eae5fe-bfcd-11e4-8a90-705681abff85"], ["organization_id", "80ec94d0-bfcd-11e4-87e6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:28.017369"], ["updated_at", "2015-03-01 04:43:28.017369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80eb95f8-bfcd-11e4-b3be-705681abff85' AND "clubhouse_memberships"."organization_id" = '80ec94d0-bfcd-11e4-87e6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80eb95f8-bfcd-11e4-b3be-705681abff85"], ["organization_id", "80ec94d0-bfcd-11e4-87e6-705681abff85"], ["created_at", "2015-03-01 04:43:28.020413"], ["updated_at", "2015-03-01 04:43:28.020413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:43:28 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$sfLyn7FeabH/iC324JCFNuKsceCmdMzcQkVRv1IFq0biT/eS79bem"], ["created_at", "2015-03-01 04:43:28.029576"], ["updated_at", "2015-03-01 04:43:28.029576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$7JwkbVaqdHRxonxYVaw8k.MxxAEBPzq.Wi5rS9Qh8wGgL5CKW1EZ2"], ["created_at", "2015-03-01 04:43:28.033836"], ["updated_at", "2015-03-01 04:43:28.033836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:28.035328"], ["user_id", "80eef892-bfcd-11e4-ad08-705681abff85"], ["created_at", "2015-03-01 04:43:28.036080"], ["updated_at", "2015-03-01 04:43:28.036080"], ["token", "Z9joBf2ELkX7x7WjjakuhwlnnWCnk48YA8iJe87WYR8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:28.039306"], ["updated_at", "2015-03-01 04:43:28.039306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80eef892-bfcd-11e4-ad08-705681abff85' AND "clubhouse_memberships"."organization_id" = '80f06f24-bfcd-11e4-8ef4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80eef892-bfcd-11e4-ad08-705681abff85"], ["organization_id", "80f06f24-bfcd-11e4-8ef4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:28.042689"], ["updated_at", "2015-03-01 04:43:28.042689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80ef9aae-bfcd-11e4-88de-705681abff85' AND "clubhouse_memberships"."organization_id" = '80f06f24-bfcd-11e4-8ef4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80ef9aae-bfcd-11e4-88de-705681abff85"], ["organization_id", "80f06f24-bfcd-11e4-8ef4-705681abff85"], ["created_at", "2015-03-01 04:43:28.045763"], ["updated_at", "2015-03-01 04:43:28.045763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/80f0f3ae-bfcd-11e4-8870-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:43:28 -0800  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$s/y0mbtACmm3gFfgjzWwI.F6KrYNQRKKbDnjNxzeea2UAaaQ6W9P2"], ["created_at", "2015-03-01 04:43:28.057503"], ["updated_at", "2015-03-01 04:43:28.057503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$3p3Bi/ErOWo2mf/nybzoJOlInD8zUiMpZ0L.z.sdWkijiMiH.Lrxe"], ["created_at", "2015-03-01 04:43:28.063277"], ["updated_at", "2015-03-01 04:43:28.063277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:28.065034"], ["user_id", "80f34b5e-bfcd-11e4-a2d5-705681abff85"], ["created_at", "2015-03-01 04:43:28.065896"], ["updated_at", "2015-03-01 04:43:28.065896"], ["token", "xhh-9TDarJcJWDJO96mtd69EKbdfENS_v8hsLfXKiWc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:28.069440"], ["updated_at", "2015-03-01 04:43:28.069440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80f34b5e-bfcd-11e4-a2d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '80f50a16-bfcd-11e4-b113-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80f34b5e-bfcd-11e4-a2d5-705681abff85"], ["organization_id", "80f50a16-bfcd-11e4-b113-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:28.073023"], ["updated_at", "2015-03-01 04:43:28.073023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80f41e26-bfcd-11e4-9385-705681abff85' AND "clubhouse_memberships"."organization_id" = '80f50a16-bfcd-11e4-b113-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80f41e26-bfcd-11e4-9385-705681abff85"], ["organization_id", "80f50a16-bfcd-11e4-b113-705681abff85"], ["created_at", "2015-03-01 04:43:28.076833"], ["updated_at", "2015-03-01 04:43:28.076833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/80f62e6e-bfcd-11e4-aa47-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:43:28 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Q2GRYA07iNz6Nc9ioaFE9etocfWzhT0hfWu4D2n44ovIo.0UyU7Ry"], ["created_at", "2015-03-01 04:43:28.086508"], ["updated_at", "2015-03-01 04:43:28.086508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$poupdxuRG6C8Xl5M5gV90OfVuLC/qgf0mfNHEhPBYXzC5sydOO6f2"], ["created_at", "2015-03-01 04:43:28.091015"], ["updated_at", "2015-03-01 04:43:28.091015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:28.092633"], ["user_id", "80f7a7ee-bfcd-11e4-a7da-705681abff85"], ["created_at", "2015-03-01 04:43:28.093876"], ["updated_at", "2015-03-01 04:43:28.093876"], ["token", "gNtjwrmHUYHoVWntGBsRz5HwmSxJ_qw9eXNN3GDRX34"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:28.103907"], ["updated_at", "2015-03-01 04:43:28.103907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80f7a7ee-bfcd-11e4-a7da-705681abff85' AND "clubhouse_memberships"."organization_id" = '80fa4f30-bfcd-11e4-a6f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80f7a7ee-bfcd-11e4-a7da-705681abff85"], ["organization_id", "80fa4f30-bfcd-11e4-a6f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:28.107589"], ["updated_at", "2015-03-01 04:43:28.107589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80f855d6-bfcd-11e4-9046-705681abff85' AND "clubhouse_memberships"."organization_id" = '80fa4f30-bfcd-11e4-a6f7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80f855d6-bfcd-11e4-9046-705681abff85"], ["organization_id", "80fa4f30-bfcd-11e4-a6f7-705681abff85"], ["created_at", "2015-03-01 04:43:28.110983"], ["updated_at", "2015-03-01 04:43:28.110983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:43:28 -0800  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$OlJ/XgSwHlaqeTm4X/tjIOF3.tl46HiH8d5DUnf5GFV6ZrYCkF8VO"], ["created_at", "2015-03-01 04:43:28.120715"], ["updated_at", "2015-03-01 04:43:28.120715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$jSLipRYNzRFjX7EUrotu/upbVRJKQVwBhacePG92JY/y31MSUhB1C"], ["created_at", "2015-03-01 04:43:28.125135"], ["updated_at", "2015-03-01 04:43:28.125135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:28.126898"], ["user_id", "80fce0a6-bfcd-11e4-80fc-705681abff85"], ["created_at", "2015-03-01 04:43:28.127800"], ["updated_at", "2015-03-01 04:43:28.127800"], ["token", "xj1b7Ojv_xzkSw9DT5K5f2L7gaHAVXGobgih1WPyQIc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:28.131401"], ["updated_at", "2015-03-01 04:43:28.131401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80fce0a6-bfcd-11e4-80fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '80fe817c-bfcd-11e4-8648-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80fce0a6-bfcd-11e4-80fc-705681abff85"], ["organization_id", "80fe817c-bfcd-11e4-8648-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:28.135003"], ["updated_at", "2015-03-01 04:43:28.135003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80fd8e66-bfcd-11e4-ab1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '80fe817c-bfcd-11e4-8648-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80fd8e66-bfcd-11e4-ab1c-705681abff85"], ["organization_id", "80fe817c-bfcd-11e4-8648-705681abff85"], ["created_at", "2015-03-01 04:43:28.139993"], ["updated_at", "2015-03-01 04:43:28.139993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:43:28 -0800  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ihx9/YVn3EYpwuEso9MOwuZ1XLU4Vb7m3E/yg6/XsTr7LSkKXvFE2"], ["created_at", "2015-03-01 04:43:32.491491"], ["updated_at", "2015-03-01 04:43:32.491491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$8Ue0ETwTU58ENCoMbuD8R.ubVPjp7MO5JOlX3KHeybFKJMSqnvZSW"], ["created_at", "2015-03-01 04:43:32.497179"], ["updated_at", "2015-03-01 04:43:32.497179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:32.505411"], ["user_id", "8397f54e-bfcd-11e4-a884-705681abff85"], ["created_at", "2015-03-01 04:43:32.509390"], ["updated_at", "2015-03-01 04:43:32.509390"], ["token", "sCo0e2KEoEtNQjMpT0DzAq35TEOW81ww0rCNn2pWHUs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:32.518510"], ["updated_at", "2015-03-01 04:43:32.518510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8397f54e-bfcd-11e4-a884-705681abff85' AND "clubhouse_memberships"."organization_id" = '83a02d4a-bfcd-11e4-bf2c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8397f54e-bfcd-11e4-a884-705681abff85"], ["organization_id", "83a02d4a-bfcd-11e4-bf2c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:32.559459"], ["updated_at", "2015-03-01 04:43:32.559459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8398ac64-bfcd-11e4-aa2e-705681abff85' AND "clubhouse_memberships"."organization_id" = '83a02d4a-bfcd-11e4-bf2c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8398ac64-bfcd-11e4-aa2e-705681abff85"], ["organization_id", "83a02d4a-bfcd-11e4-bf2c-705681abff85"], ["created_at", "2015-03-01 04:43:32.563218"], ["updated_at", "2015-03-01 04:43:32.563218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:43:32 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:43:32.587880' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sCo0e2KEoEtNQjMpT0DzAq35TEOW81ww0rCNn2pWHUs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:43:32.596896"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:43:32.598044"], ["id", "839a9d58-bfcd-11e4-9a37-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8397f54e-bfcd-11e4-a884-705681abff85"]] Clubhouse::Organization Load (0.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8397f54e-bfcd-11e4-a884-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8397f54e-bfcd-11e4-a884-705681abff85' LIMIT 1 [["organization_id", "83a02d4a-bfcd-11e4-bf2c-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "83a02d4a-bfcd-11e4-bf2c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83a02d4a-bfcd-11e4-bf2c-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8397f54e-bfcd-11e4-a884-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83a02d4a-bfcd-11e4-bf2c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8398ac64-bfcd-11e4-aa2e-705681abff85"]] Completed 200 OK in 44ms (Views: 9.3ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$F37Mc3V19c8W5KCfWn1Xn.kBn4UTruSBJRKl0g3GWypAlHgU0IYya"], ["created_at", "2015-03-01 04:43:32.640842"], ["updated_at", "2015-03-01 04:43:32.640842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$nqxptam3EiIoSiUpdUoYMuJ9bJQhKRpFwNyJl7qdmiMfxN5sZRWCO"], ["created_at", "2015-03-01 04:43:32.645179"], ["updated_at", "2015-03-01 04:43:32.645179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:32.646866"], ["user_id", "83ae98da-bfcd-11e4-bf94-705681abff85"], ["created_at", "2015-03-01 04:43:32.647737"], ["updated_at", "2015-03-01 04:43:32.647737"], ["token", "mu-yd18lU6DwaqBNXBt5ip-hVu3nE90fCji9eVvdmQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:32.651664"], ["updated_at", "2015-03-01 04:43:32.651664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83ae98da-bfcd-11e4-bf94-705681abff85' AND "clubhouse_memberships"."organization_id" = '83b03f14-bfcd-11e4-934b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83ae98da-bfcd-11e4-bf94-705681abff85"], ["organization_id", "83b03f14-bfcd-11e4-934b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:32.655530"], ["updated_at", "2015-03-01 04:43:32.655530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83af3c36-bfcd-11e4-858d-705681abff85' AND "clubhouse_memberships"."organization_id" = '83b03f14-bfcd-11e4-934b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83af3c36-bfcd-11e4-858d-705681abff85"], ["organization_id", "83b03f14-bfcd-11e4-934b-705681abff85"], ["created_at", "2015-03-01 04:43:32.658800"], ["updated_at", "2015-03-01 04:43:32.658800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:43:32 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$awpvZ5Ezrhn02Vd2ZL1uT.7sxT8DMdba97xZdsML40VqMJBuZKI8K"], ["created_at", "2015-03-01 04:43:32.672826"], ["updated_at", "2015-03-01 04:43:32.672826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$AKkdmPuI2iCIF3//2/jyZuAEJ.FIX2GM7BcK0fxGd05ZlLVjbrnPK"], ["created_at", "2015-03-01 04:43:32.678131"], ["updated_at", "2015-03-01 04:43:32.678131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:32.679842"], ["user_id", "83b3906a-bfcd-11e4-9190-705681abff85"], ["created_at", "2015-03-01 04:43:32.680901"], ["updated_at", "2015-03-01 04:43:32.680901"], ["token", "HYRW58oAM7NGyX-XOVvy7ihBGV_tM-urLAbHQOfDoHU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:32.684835"], ["updated_at", "2015-03-01 04:43:32.684835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83b3906a-bfcd-11e4-9190-705681abff85' AND "clubhouse_memberships"."organization_id" = '83b54f90-bfcd-11e4-bcf2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83b3906a-bfcd-11e4-9190-705681abff85"], ["organization_id", "83b54f90-bfcd-11e4-bcf2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:32.688452"], ["updated_at", "2015-03-01 04:43:32.688452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83b44744-bfcd-11e4-b13c-705681abff85' AND "clubhouse_memberships"."organization_id" = '83b54f90-bfcd-11e4-bcf2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83b44744-bfcd-11e4-b13c-705681abff85"], ["organization_id", "83b54f90-bfcd-11e4-bcf2-705681abff85"], ["created_at", "2015-03-01 04:43:32.691681"], ["updated_at", "2015-03-01 04:43:32.691681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/83b5d7c6-bfcd-11e4-a155-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:43:32 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"83b5d7c6-bfcd-11e4-a155-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:43:32.697839' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HYRW58oAM7NGyX-XOVvy7ihBGV_tM-urLAbHQOfDoHU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:43:32.699436"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:43:32.700426"], ["id", "83b4bc6a-bfcd-11e4-a530-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83b3906a-bfcd-11e4-9190-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83b3906a-bfcd-11e4-9190-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83b3906a-bfcd-11e4-9190-705681abff85' LIMIT 1 [["organization_id", "83b54f90-bfcd-11e4-bcf2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "83b54f90-bfcd-11e4-bcf2-705681abff85"], ["id", "83b5d7c6-bfcd-11e4-a155-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83b3906a-bfcd-11e4-9190-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$VoN99EjAGzf5SbsYzYRX5uznjWaIFsfDGmotbLIeXntl.UsPnbXbK"], ["created_at", "2015-03-01 04:43:32.714707"], ["updated_at", "2015-03-01 04:43:32.714707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$kzyRDicg2/BCuzi8dGxN3uXYd3n2wtq5PTPwfcOyeiHoewvCvCZoe"], ["created_at", "2015-03-01 04:43:32.719167"], ["updated_at", "2015-03-01 04:43:32.719167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:32.721040"], ["user_id", "83b9dd44-bfcd-11e4-bba5-705681abff85"], ["created_at", "2015-03-01 04:43:32.722034"], ["updated_at", "2015-03-01 04:43:32.722034"], ["token", "Q6FC_oIVmIq1sjPYA4D76gqoGk0FkwEreAm_6070Mx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:32.726844"], ["updated_at", "2015-03-01 04:43:32.726844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83b9dd44-bfcd-11e4-bba5-705681abff85' AND "clubhouse_memberships"."organization_id" = '83bbbde4-bfcd-11e4-b006-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83b9dd44-bfcd-11e4-bba5-705681abff85"], ["organization_id", "83bbbde4-bfcd-11e4-b006-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:32.731102"], ["updated_at", "2015-03-01 04:43:32.731102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83ba8a28-bfcd-11e4-9e08-705681abff85' AND "clubhouse_memberships"."organization_id" = '83bbbde4-bfcd-11e4-b006-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83ba8a28-bfcd-11e4-9e08-705681abff85"], ["organization_id", "83bbbde4-bfcd-11e4-b006-705681abff85"], ["created_at", "2015-03-01 04:43:32.734662"], ["updated_at", "2015-03-01 04:43:32.734662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/83bced36-bfcd-11e4-95f1-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:43:32 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"83bced36-bfcd-11e4-95f1-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:43:32.739307' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Q6FC_oIVmIq1sjPYA4D76gqoGk0FkwEreAm_6070Mx0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:43:32.741204"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:43:32.743098"], ["id", "83bb0cb4-bfcd-11e4-93d8-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83b9dd44-bfcd-11e4-bba5-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83b9dd44-bfcd-11e4-bba5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83b9dd44-bfcd-11e4-bba5-705681abff85' LIMIT 1 [["organization_id", "83bbbde4-bfcd-11e4-b006-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "83bbbde4-bfcd-11e4-b006-705681abff85"], ["id", "83bced36-bfcd-11e4-95f1-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83ba8a28-bfcd-11e4-9e08-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83bbbde4-bfcd-11e4-b006-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83ba8a28-bfcd-11e4-9e08-705681abff85' AND "clubhouse_memberships"."id" != '83bced36-bfcd-11e4-95f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '83bbbde4-bfcd-11e4-b006-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:43:32.755367"], ["id", "83bced36-bfcd-11e4-95f1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.0ms | ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$5Gip3zhsB5xTzEZrG.c/E.ffc4GqpC/eArrAIV/oT0Dp0dSwACaOe"], ["created_at", "2015-03-01 04:43:32.763581"], ["updated_at", "2015-03-01 04:43:32.763581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$CfnNoYuDFJW2lsdd2gVxe.dzh.KQebPBXnK5A34Ryy/Wz/tnG0Vve"], ["created_at", "2015-03-01 04:43:32.768395"], ["updated_at", "2015-03-01 04:43:32.768395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:32.770328"], ["user_id", "83c15ab0-bfcd-11e4-8f60-705681abff85"], ["created_at", "2015-03-01 04:43:32.771053"], ["updated_at", "2015-03-01 04:43:32.771053"], ["token", "ilSZLfyWOaiQJZCSMHLCLEW44hEe1PEbLgD8V1U1r7E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:32.774706"], ["updated_at", "2015-03-01 04:43:32.774706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83c15ab0-bfcd-11e4-8f60-705681abff85' AND "clubhouse_memberships"."organization_id" = '83c30536-bfcd-11e4-8011-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83c15ab0-bfcd-11e4-8f60-705681abff85"], ["organization_id", "83c30536-bfcd-11e4-8011-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:32.778266"], ["updated_at", "2015-03-01 04:43:32.778266"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83c2172a-bfcd-11e4-a148-705681abff85' AND "clubhouse_memberships"."organization_id" = '83c30536-bfcd-11e4-8011-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83c2172a-bfcd-11e4-a148-705681abff85"], ["organization_id", "83c30536-bfcd-11e4-8011-705681abff85"], ["created_at", "2015-03-01 04:43:32.781840"], ["updated_at", "2015-03-01 04:43:32.781840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/83c41a3e-bfcd-11e4-a23e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:43:32 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"83c41a3e-bfcd-11e4-a23e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:43:32.787097' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ilSZLfyWOaiQJZCSMHLCLEW44hEe1PEbLgD8V1U1r7E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:43:32.788517"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:43:32.789515"], ["id", "83c27daa-bfcd-11e4-a266-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83c15ab0-bfcd-11e4-8f60-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83c15ab0-bfcd-11e4-8f60-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83c15ab0-bfcd-11e4-8f60-705681abff85' LIMIT 1 [["organization_id", "83c30536-bfcd-11e4-8011-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "83c30536-bfcd-11e4-8011-705681abff85"], ["id", "83c41a3e-bfcd-11e4-a23e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83c30536-bfcd-11e4-8011-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83c2172a-bfcd-11e4-a148-705681abff85"]] Completed 200 OK in 12ms (Views: 2.2ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$LPHB9mw83smQWiaHBxkLieSW6vD/ATEyLo9BLB91cLi/G0CT/Qg/2"], ["created_at", "2015-03-01 04:43:32.805365"], ["updated_at", "2015-03-01 04:43:32.805365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$ZgDEtZcYaWOVnr.nlwA58eL678j5zDclUE6YghFgtUmkC/rewHzwO"], ["created_at", "2015-03-01 04:43:32.812053"], ["updated_at", "2015-03-01 04:43:32.812053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:32.813731"], ["user_id", "83c7b1f8-bfcd-11e4-8442-705681abff85"], ["created_at", "2015-03-01 04:43:32.814498"], ["updated_at", "2015-03-01 04:43:32.814498"], ["token", "MkiEoZvUcBFejub1lsyvdafX1zbpxCj5HxjgeliXcY8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:32.818210"], ["updated_at", "2015-03-01 04:43:32.818210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83c7b1f8-bfcd-11e4-8442-705681abff85' AND "clubhouse_memberships"."organization_id" = '83c9a8be-bfcd-11e4-bd35-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83c7b1f8-bfcd-11e4-8442-705681abff85"], ["organization_id", "83c9a8be-bfcd-11e4-bd35-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:32.821712"], ["updated_at", "2015-03-01 04:43:32.821712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83c8b404-bfcd-11e4-a812-705681abff85' AND "clubhouse_memberships"."organization_id" = '83c9a8be-bfcd-11e4-bd35-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83c8b404-bfcd-11e4-a812-705681abff85"], ["organization_id", "83c9a8be-bfcd-11e4-bd35-705681abff85"], ["created_at", "2015-03-01 04:43:32.824782"], ["updated_at", "2015-03-01 04:43:32.824782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:43:32 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$pPC0pqKo69DVhBiwfpMa/Om2yJIILaoIi5/xjM44LsOBcv6EgosLG"], ["created_at", "2015-03-01 04:43:32.836761"], ["updated_at", "2015-03-01 04:43:32.836761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Ug7i5avF/yvoQDGhFAaEbeFKsPQx.JHSMyBNFSPf9xFfm7KtcSP.C"], ["created_at", "2015-03-01 04:43:32.841291"], ["updated_at", "2015-03-01 04:43:32.841291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:32.842863"], ["user_id", "83cc7f8a-bfcd-11e4-8b95-705681abff85"], ["created_at", "2015-03-01 04:43:32.843637"], ["updated_at", "2015-03-01 04:43:32.843637"], ["token", "fVcQ7rDfG4AoNlj3ekWMJCipXf1uzQu0cysSKejwMDk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:32.846814"], ["updated_at", "2015-03-01 04:43:32.846814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83cc7f8a-bfcd-11e4-8b95-705681abff85' AND "clubhouse_memberships"."organization_id" = '83ce0242-bfcd-11e4-80b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83cc7f8a-bfcd-11e4-8b95-705681abff85"], ["organization_id", "83ce0242-bfcd-11e4-80b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:32.850326"], ["updated_at", "2015-03-01 04:43:32.850326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83cd2be2-bfcd-11e4-8f44-705681abff85' AND "clubhouse_memberships"."organization_id" = '83ce0242-bfcd-11e4-80b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83cd2be2-bfcd-11e4-8f44-705681abff85"], ["organization_id", "83ce0242-bfcd-11e4-80b9-705681abff85"], ["created_at", "2015-03-01 04:43:32.853832"], ["updated_at", "2015-03-01 04:43:32.853832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:43:32 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$JeGS3WqECZw7j04riM7rE.H4YW7TvUHdQssigbq8.D7HHmbUooipe"], ["created_at", "2015-03-01 04:43:32.867775"], ["updated_at", "2015-03-01 04:43:32.867775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$w19LX3BYRpnJSJ/DpxsYBO.BGV6OinUYnPFcfIXILJd4PRL4YhH3m"], ["created_at", "2015-03-01 04:43:32.874084"], ["updated_at", "2015-03-01 04:43:32.874084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:32.876274"], ["user_id", "83d167d4-bfcd-11e4-8220-705681abff85"], ["created_at", "2015-03-01 04:43:32.877117"], ["updated_at", "2015-03-01 04:43:32.877117"], ["token", "UQlNlHuVCSyfACYmTjLXaVC8_QHpX8FSRHNxSXj-zF0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:32.881120"], ["updated_at", "2015-03-01 04:43:32.881120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83d167d4-bfcd-11e4-8220-705681abff85' AND "clubhouse_memberships"."organization_id" = '83d34496-bfcd-11e4-831e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83d167d4-bfcd-11e4-8220-705681abff85"], ["organization_id", "83d34496-bfcd-11e4-831e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:32.886164"], ["updated_at", "2015-03-01 04:43:32.886164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83d23d08-bfcd-11e4-9ae5-705681abff85' AND "clubhouse_memberships"."organization_id" = '83d34496-bfcd-11e4-831e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83d23d08-bfcd-11e4-9ae5-705681abff85"], ["organization_id", "83d34496-bfcd-11e4-831e-705681abff85"], ["created_at", "2015-03-01 04:43:32.889849"], ["updated_at", "2015-03-01 04:43:32.889849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/83d40b10-bfcd-11e4-99a4-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:43:32 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"83d40b10-bfcd-11e4-99a4-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:43:32.903475' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UQlNlHuVCSyfACYmTjLXaVC8_QHpX8FSRHNxSXj-zF0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:43:32.905113"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:43:32.906156"], ["id", "83d2b094-bfcd-11e4-a4d1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83d167d4-bfcd-11e4-8220-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83d167d4-bfcd-11e4-8220-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83d167d4-bfcd-11e4-8220-705681abff85' LIMIT 1 [["organization_id", "83d34496-bfcd-11e4-831e-705681abff85"]] Clubhouse::Invitation Load (7.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "83d34496-bfcd-11e4-831e-705681abff85"], ["id", "83d40b10-bfcd-11e4-99a4-705681abff85"]] Completed 404 Not Found in 25ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$MRBApKBdB6lU4A2pWkmZ6eT01.LKhJp37KkvYJPtK.XFnN6bAE8Sq"], ["created_at", "2015-03-01 04:43:32.937177"], ["updated_at", "2015-03-01 04:43:32.937177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$JiBZp6Ghkruxa2tco6U3Bunos/SZkoXlnZd92sUA/8vHF0hGjY2B."], ["created_at", "2015-03-01 04:43:32.943865"], ["updated_at", "2015-03-01 04:43:32.943865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:32.945661"], ["user_id", "83dbd2a0-bfcd-11e4-867f-705681abff85"], ["created_at", "2015-03-01 04:43:32.946477"], ["updated_at", "2015-03-01 04:43:32.946477"], ["token", "NiRVheA4CLNYuOi3x31mZ3QzWl1q7hfrsPNnkkNpL8w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:32.950371"], ["updated_at", "2015-03-01 04:43:32.950371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83dbd2a0-bfcd-11e4-867f-705681abff85' AND "clubhouse_memberships"."organization_id" = '83ddd366-bfcd-11e4-ba1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83dbd2a0-bfcd-11e4-867f-705681abff85"], ["organization_id", "83ddd366-bfcd-11e4-ba1d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:32.954011"], ["updated_at", "2015-03-01 04:43:32.954011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83dcd6fa-bfcd-11e4-aed0-705681abff85' AND "clubhouse_memberships"."organization_id" = '83ddd366-bfcd-11e4-ba1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83dcd6fa-bfcd-11e4-aed0-705681abff85"], ["organization_id", "83ddd366-bfcd-11e4-ba1d-705681abff85"], ["created_at", "2015-03-01 04:43:32.957484"], ["updated_at", "2015-03-01 04:43:32.957484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/83dee80a-bfcd-11e4-81a3-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:43:32 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"83dee80a-bfcd-11e4-81a3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:43:32.962370' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NiRVheA4CLNYuOi3x31mZ3QzWl1q7hfrsPNnkkNpL8w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:43:32.963820"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:43:32.964815"], ["id", "83dd4400-bfcd-11e4-8edc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83dbd2a0-bfcd-11e4-867f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83dbd2a0-bfcd-11e4-867f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83dbd2a0-bfcd-11e4-867f-705681abff85' LIMIT 1 [["organization_id", "83ddd366-bfcd-11e4-ba1d-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "83ddd366-bfcd-11e4-ba1d-705681abff85"], ["id", "83dee80a-bfcd-11e4-81a3-705681abff85"]] Completed 404 Not Found in 12ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$i.O1/uNTLteqTWUPjQik4ex6Ml02xtZNXO1izzgrTtEUE2qLDNRCe"], ["created_at", "2015-03-01 04:43:32.979532"], ["updated_at", "2015-03-01 04:43:32.979532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$d5rBF1yqsGCVhDpZrgs0Ku3e35HlDttZ7BpYbqKxzQ9xizpU4ntLe"], ["created_at", "2015-03-01 04:43:32.984249"], ["updated_at", "2015-03-01 04:43:32.984249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:32.986115"], ["user_id", "83e2461c-bfcd-11e4-8f16-705681abff85"], ["created_at", "2015-03-01 04:43:32.986934"], ["updated_at", "2015-03-01 04:43:32.986934"], ["token", "zT8Z90j44xDoSemTUh-1NZRs2sFoTT6TTvIQPfUlq9o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:32.990662"], ["updated_at", "2015-03-01 04:43:32.990662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83e2461c-bfcd-11e4-8f16-705681abff85' AND "clubhouse_memberships"."organization_id" = '83e3f7e6-bfcd-11e4-b6b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83e2461c-bfcd-11e4-8f16-705681abff85"], ["organization_id", "83e3f7e6-bfcd-11e4-b6b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:32.994375"], ["updated_at", "2015-03-01 04:43:32.994375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83e301a6-bfcd-11e4-95ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '83e3f7e6-bfcd-11e4-b6b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83e301a6-bfcd-11e4-95ee-705681abff85"], ["organization_id", "83e3f7e6-bfcd-11e4-b6b5-705681abff85"], ["created_at", "2015-03-01 04:43:32.998419"], ["updated_at", "2015-03-01 04:43:32.998419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/83e4883c-bfcd-11e4-88c8-705681abff85" for 127.0.0.1 at 2015-02-28 20:43:33 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"83e4883c-bfcd-11e4-88c8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:43:33.005062' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zT8Z90j44xDoSemTUh-1NZRs2sFoTT6TTvIQPfUlq9o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:43:33.006548"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:43:33.007571"], ["id", "83e37294-bfcd-11e4-aad0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83e2461c-bfcd-11e4-8f16-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83e2461c-bfcd-11e4-8f16-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83e2461c-bfcd-11e4-8f16-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "83e2461c-bfcd-11e4-8f16-705681abff85"], ["id", "83e4883c-bfcd-11e4-88c8-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83e3f7e6-bfcd-11e4-b6b5-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83e2461c-bfcd-11e4-8f16-705681abff85"]] Completed 200 OK in 17ms (Views: 3.6ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$xEMIGnpjxj1NKvK78ey4HuUYd59Qq2paWBJok.xs71p6KbqxiuH2W"], ["created_at", "2015-03-01 04:43:33.029072"], ["updated_at", "2015-03-01 04:43:33.029072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$J8NrXtgvasYw0DU5vObfOuSg7bwoycKh/mXEsRHhi0IlDpSG7MJVq"], ["created_at", "2015-03-01 04:43:33.034091"], ["updated_at", "2015-03-01 04:43:33.034091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:33.036543"], ["user_id", "83e9d7ec-bfcd-11e4-a7e1-705681abff85"], ["created_at", "2015-03-01 04:43:33.037372"], ["updated_at", "2015-03-01 04:43:33.037372"], ["token", "CwKHHYjhOl0EimLNJXqQu8Uun-_mBoWNo_bmbko33Qk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:33.041201"], ["updated_at", "2015-03-01 04:43:33.041201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83e9d7ec-bfcd-11e4-a7e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '83ebaebe-bfcd-11e4-812b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83e9d7ec-bfcd-11e4-a7e1-705681abff85"], ["organization_id", "83ebaebe-bfcd-11e4-812b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:33.044869"], ["updated_at", "2015-03-01 04:43:33.044869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83eaa276-bfcd-11e4-9488-705681abff85' AND "clubhouse_memberships"."organization_id" = '83ebaebe-bfcd-11e4-812b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83eaa276-bfcd-11e4-9488-705681abff85"], ["organization_id", "83ebaebe-bfcd-11e4-812b-705681abff85"], ["created_at", "2015-03-01 04:43:33.048298"], ["updated_at", "2015-03-01 04:43:33.048298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:43:33 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$SSgEXZFZw0fR3LkEBCfHWOMQnaBxWw/SMw5UiJpt8pCxpgiDntmde"], ["created_at", "2015-03-01 04:43:33.062723"], ["updated_at", "2015-03-01 04:43:33.062723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$bLAre8zHIQAcBOxC2nHmGemUTCGijVqU.ZOhv1HtoMyMd5NRsfk7G"], ["created_at", "2015-03-01 04:43:33.071986"], ["updated_at", "2015-03-01 04:43:33.071986"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:43:33.076053"], ["user_id", "83ef1220-bfcd-11e4-859a-705681abff85"], ["created_at", "2015-03-01 04:43:33.077980"], ["updated_at", "2015-03-01 04:43:33.077980"], ["token", "3ZE8WK_qnnP2dnJWtwB9GxQPKKW9I3s0DKF_9Vqan6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:43:33.082804"], ["updated_at", "2015-03-01 04:43:33.082804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83ef1220-bfcd-11e4-859a-705681abff85' AND "clubhouse_memberships"."organization_id" = '83f20822-bfcd-11e4-bd8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83ef1220-bfcd-11e4-859a-705681abff85"], ["organization_id", "83f20822-bfcd-11e4-bd8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:43:33.087895"], ["updated_at", "2015-03-01 04:43:33.087895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83f0895c-bfcd-11e4-96e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '83f20822-bfcd-11e4-bd8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83f0895c-bfcd-11e4-96e4-705681abff85"], ["organization_id", "83f20822-bfcd-11e4-bd8c-705681abff85"], ["created_at", "2015-03-01 04:43:33.091723"], ["updated_at", "2015-03-01 04:43:33.091723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:43:33 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:43:33.097431' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3ZE8WK_qnnP2dnJWtwB9GxQPKKW9I3s0DKF_9Vqan6A"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:43:33.099640"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:43:33.101490"], ["id", "83f17308-bfcd-11e4-b3a4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83ef1220-bfcd-11e4-859a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83ef1220-bfcd-11e4-859a-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83ef1220-bfcd-11e4-859a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "83ef1220-bfcd-11e4-859a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83f20822-bfcd-11e4-bd8c-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83ef1220-bfcd-11e4-859a-705681abff85"]] Completed 200 OK in 14ms (Views: 3.6ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$xV7DA77I3vQRJvWGeblTn.BBwqWOBsbcuN4TSvEd8jJlTrY3UtoI."], ["created_at", "2015-03-01 04:44:01.719111"], ["updated_at", "2015-03-01 04:44:01.719111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$aFL.JQ8GSeXie.ZV9vjRh.TEdrq8uWZ1SOrNxhGuJsJ0oGvDkyTC2"], ["created_at", "2015-03-01 04:44:01.724847"], ["updated_at", "2015-03-01 04:44:01.724847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:01.732765"], ["user_id", "9503bd36-bfcd-11e4-82d2-705681abff85"], ["created_at", "2015-03-01 04:44:01.741051"], ["updated_at", "2015-03-01 04:44:01.741051"], ["token", "E9Vx6nC5SILDtLd8BTVURW0zVUnRjUtf-5sBhsIi6fI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:01.750283"], ["updated_at", "2015-03-01 04:44:01.750283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9503bd36-bfcd-11e4-82d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '95085d96-bfcd-11e4-93dc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9503bd36-bfcd-11e4-82d2-705681abff85"], ["organization_id", "95085d96-bfcd-11e4-93dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:01.794489"], ["updated_at", "2015-03-01 04:44:01.794489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '950473a2-bfcd-11e4-842a-705681abff85' AND "clubhouse_memberships"."organization_id" = '95085d96-bfcd-11e4-93dc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "950473a2-bfcd-11e4-842a-705681abff85"], ["organization_id", "95085d96-bfcd-11e4-93dc-705681abff85"], ["created_at", "2015-03-01 04:44:01.798515"], ["updated_at", "2015-03-01 04:44:01.798515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:44:01 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:01.823634' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "E9Vx6nC5SILDtLd8BTVURW0zVUnRjUtf-5sBhsIi6fI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:01.830987"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:01.832374"], ["id", "950705b8-bfcd-11e4-9450-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9503bd36-bfcd-11e4-82d2-705681abff85"]] Clubhouse::Organization Load (1.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9503bd36-bfcd-11e4-82d2-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9503bd36-bfcd-11e4-82d2-705681abff85' LIMIT 1 [["organization_id", "95085d96-bfcd-11e4-93dc-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "95085d96-bfcd-11e4-93dc-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "95085d96-bfcd-11e4-93dc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9503bd36-bfcd-11e4-82d2-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "95085d96-bfcd-11e4-93dc-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "950473a2-bfcd-11e4-842a-705681abff85"]] Completed 200 OK in 44ms (Views: 9.4ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$sTZ.kmBTQ8pBPJeLkVAJ5.QPkPj4ud1MnDD51OgK6zQtcEJd9cmSa"], ["created_at", "2015-03-01 04:44:01.877389"], ["updated_at", "2015-03-01 04:44:01.877389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$saJzoQPwfDmi7JqbxeKpv.j8BTOFQYr4YzRMUci938QWEF0/fquOS"], ["created_at", "2015-03-01 04:44:01.881901"], ["updated_at", "2015-03-01 04:44:01.881901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:01.883772"], ["user_id", "951bbf58-bfcd-11e4-a0dc-705681abff85"], ["created_at", "2015-03-01 04:44:01.885043"], ["updated_at", "2015-03-01 04:44:01.885043"], ["token", "ECWFXUvwn5GXImm8K6miSr9Eo4YMAdnRGJihgbb7ym8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:01.889577"], ["updated_at", "2015-03-01 04:44:01.889577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '951bbf58-bfcd-11e4-a0dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '951d9990-bfcd-11e4-99c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "951bbf58-bfcd-11e4-a0dc-705681abff85"], ["organization_id", "951d9990-bfcd-11e4-99c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:01.893281"], ["updated_at", "2015-03-01 04:44:01.893281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '951c69da-bfcd-11e4-b6b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '951d9990-bfcd-11e4-99c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "951c69da-bfcd-11e4-b6b8-705681abff85"], ["organization_id", "951d9990-bfcd-11e4-99c3-705681abff85"], ["created_at", "2015-03-01 04:44:01.897404"], ["updated_at", "2015-03-01 04:44:01.897404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:44:01 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$ReYQgQpuBsvf9u/UCjBtcuyS/6zvDParXLrlcpw63orohPP9iiVfa"], ["created_at", "2015-03-01 04:44:01.911979"], ["updated_at", "2015-03-01 04:44:01.911979"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$gnCAbj2Gv58krD6/BpctHOBKW1DmlUN0yLpFRl6NbZnOZkjTjVhwC"], ["created_at", "2015-03-01 04:44:01.917638"], ["updated_at", "2015-03-01 04:44:01.917638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:01.919688"], ["user_id", "952106f2-bfcd-11e4-8e81-705681abff85"], ["created_at", "2015-03-01 04:44:01.920558"], ["updated_at", "2015-03-01 04:44:01.920558"], ["token", "v3zdJGJ4zcF66yGqQa-zriqxlEKRniBVzCIg_Iydv1I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:01.923955"], ["updated_at", "2015-03-01 04:44:01.923955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '952106f2-bfcd-11e4-8e81-705681abff85' AND "clubhouse_memberships"."organization_id" = '9522d298-bfcd-11e4-9c49-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "952106f2-bfcd-11e4-8e81-705681abff85"], ["organization_id", "9522d298-bfcd-11e4-9c49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:01.927168"], ["updated_at", "2015-03-01 04:44:01.927168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9521ea04-bfcd-11e4-8e5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '9522d298-bfcd-11e4-9c49-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9521ea04-bfcd-11e4-8e5d-705681abff85"], ["organization_id", "9522d298-bfcd-11e4-9c49-705681abff85"], ["created_at", "2015-03-01 04:44:01.930166"], ["updated_at", "2015-03-01 04:44:01.930166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/9523c446-bfcd-11e4-b448-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:44:01 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"9523c446-bfcd-11e4-b448-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:01.935564' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v3zdJGJ4zcF66yGqQa-zriqxlEKRniBVzCIg_Iydv1I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:01.937531"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:01.938499"], ["id", "95225728-bfcd-11e4-bf1c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "952106f2-bfcd-11e4-8e81-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "952106f2-bfcd-11e4-8e81-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '952106f2-bfcd-11e4-8e81-705681abff85' LIMIT 1 [["organization_id", "9522d298-bfcd-11e4-9c49-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "9522d298-bfcd-11e4-9c49-705681abff85"], ["id", "9523c446-bfcd-11e4-b448-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9521ea04-bfcd-11e4-8e5d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9522d298-bfcd-11e4-9c49-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9521ea04-bfcd-11e4-8e5d-705681abff85' AND "clubhouse_memberships"."id" != '9523c446-bfcd-11e4-b448-705681abff85' AND "clubhouse_memberships"."organization_id" = '9522d298-bfcd-11e4-9c49-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:44:01.950297"], ["id", "9523c446-bfcd-11e4-b448-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.3ms | ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$A7gQC51iXXdz.S01AyWZP.L8ze/5KIR1NzIWMMwdo2RIAvp4ZKIQi"], ["created_at", "2015-03-01 04:44:01.959302"], ["updated_at", "2015-03-01 04:44:01.959302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$uSev2T2NHX4IO8X7Vhq1kuAh71LD0rWwR3WygWkgB0Wh3JvGJcfSC"], ["created_at", "2015-03-01 04:44:01.963769"], ["updated_at", "2015-03-01 04:44:01.963769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:01.965374"], ["user_id", "95283c06-bfcd-11e4-8a3e-705681abff85"], ["created_at", "2015-03-01 04:44:01.966200"], ["updated_at", "2015-03-01 04:44:01.966200"], ["token", "DCzWtcM8fM9ZES6Rgc9qohBsxufcPw6zRXZcPLl7HcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:01.970450"], ["updated_at", "2015-03-01 04:44:01.970450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95283c06-bfcd-11e4-8a3e-705681abff85' AND "clubhouse_memberships"."organization_id" = '9529edb2-bfcd-11e4-8257-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95283c06-bfcd-11e4-8a3e-705681abff85"], ["organization_id", "9529edb2-bfcd-11e4-8257-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:01.973884"], ["updated_at", "2015-03-01 04:44:01.973884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9528e6e2-bfcd-11e4-ad9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '9529edb2-bfcd-11e4-8257-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9528e6e2-bfcd-11e4-ad9b-705681abff85"], ["organization_id", "9529edb2-bfcd-11e4-8257-705681abff85"], ["created_at", "2015-03-01 04:44:01.976907"], ["updated_at", "2015-03-01 04:44:01.976907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/952a717e-bfcd-11e4-9dc0-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:44:01 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"952a717e-bfcd-11e4-9dc0-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:01.984718' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DCzWtcM8fM9ZES6Rgc9qohBsxufcPw6zRXZcPLl7HcM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:01.986444"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:01.987784"], ["id", "952964be-bfcd-11e4-b1a5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "95283c06-bfcd-11e4-8a3e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "95283c06-bfcd-11e4-8a3e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95283c06-bfcd-11e4-8a3e-705681abff85' LIMIT 1 [["organization_id", "9529edb2-bfcd-11e4-8257-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "9529edb2-bfcd-11e4-8257-705681abff85"], ["id", "952a717e-bfcd-11e4-9dc0-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "95283c06-bfcd-11e4-8a3e-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$ZHVEqKf0yWIBxYcZmzTOG.Uu/MOkjBq2EY34LWFRAE9GGYPSpJjA."], ["created_at", "2015-03-01 04:44:02.002676"], ["updated_at", "2015-03-01 04:44:02.002676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Wobp1x2syOp8kcspa3sCgONLlsa0O/lI20ty48xnUhTZSFo/yz3Ma"], ["created_at", "2015-03-01 04:44:02.008928"], ["updated_at", "2015-03-01 04:44:02.008928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:02.010857"], ["user_id", "952ef01e-bfcd-11e4-9f61-705681abff85"], ["created_at", "2015-03-01 04:44:02.011692"], ["updated_at", "2015-03-01 04:44:02.011692"], ["token", "HQnXtq7ezWyLGUvHOBrqjjRJ5bgvREnzZL7SDbfBFRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:02.016021"], ["updated_at", "2015-03-01 04:44:02.016021"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '952ef01e-bfcd-11e4-9f61-705681abff85' AND "clubhouse_memberships"."organization_id" = '9530fb52-bfcd-11e4-b7e0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "952ef01e-bfcd-11e4-9f61-705681abff85"], ["organization_id", "9530fb52-bfcd-11e4-b7e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:02.021939"], ["updated_at", "2015-03-01 04:44:02.021939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '952fd33a-bfcd-11e4-82de-705681abff85' AND "clubhouse_memberships"."organization_id" = '9530fb52-bfcd-11e4-b7e0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "952fd33a-bfcd-11e4-82de-705681abff85"], ["organization_id", "9530fb52-bfcd-11e4-b7e0-705681abff85"], ["created_at", "2015-03-01 04:44:02.027099"], ["updated_at", "2015-03-01 04:44:02.027099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:44:02 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$vFMkP.QuKd.LpyUVxULBeOmMDccsUpbdzC55vR6pwUbnJbQI2FLBu"], ["created_at", "2015-03-01 04:44:02.041390"], ["updated_at", "2015-03-01 04:44:02.041390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$JQJRs2wuCtGQTsjhMaMxy.tfdQMqcFHX7ZwGnzTsPDTza9zraTIaS"], ["created_at", "2015-03-01 04:44:02.046170"], ["updated_at", "2015-03-01 04:44:02.046170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:02.047875"], ["user_id", "9534c50c-bfcd-11e4-a26c-705681abff85"], ["created_at", "2015-03-01 04:44:02.049252"], ["updated_at", "2015-03-01 04:44:02.049252"], ["token", "b_3fDDH9unQj4ckGDBY-SVzEZN5UmgV7ftK31WlLdh4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:02.053281"], ["updated_at", "2015-03-01 04:44:02.053281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9534c50c-bfcd-11e4-a26c-705681abff85' AND "clubhouse_memberships"."organization_id" = '9536a890-bfcd-11e4-9ee0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9534c50c-bfcd-11e4-a26c-705681abff85"], ["organization_id", "9536a890-bfcd-11e4-9ee0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:02.057993"], ["updated_at", "2015-03-01 04:44:02.057993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95357d3a-bfcd-11e4-8a8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '9536a890-bfcd-11e4-9ee0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95357d3a-bfcd-11e4-8a8a-705681abff85"], ["organization_id", "9536a890-bfcd-11e4-9ee0-705681abff85"], ["created_at", "2015-03-01 04:44:02.061422"], ["updated_at", "2015-03-01 04:44:02.061422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/95374d72-bfcd-11e4-8240-705681abff85" for 127.0.0.1 at 2015-02-28 20:44:02 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"95374d72-bfcd-11e4-8240-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:02.066486' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b_3fDDH9unQj4ckGDBY-SVzEZN5UmgV7ftK31WlLdh4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:02.068034"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:02.069072"], ["id", "9536076e-bfcd-11e4-994c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9534c50c-bfcd-11e4-a26c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9534c50c-bfcd-11e4-a26c-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9534c50c-bfcd-11e4-a26c-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "9534c50c-bfcd-11e4-a26c-705681abff85"], ["id", "95374d72-bfcd-11e4-8240-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9536a890-bfcd-11e4-9ee0-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9534c50c-bfcd-11e4-a26c-705681abff85"]] Completed 200 OK in 16ms (Views: 3.4ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$hX6I6NAu1y/9mDXLcBb1Pey2ZQh1fhXH3Z0sfa/QcqFRIoTtI8g.2"], ["created_at", "2015-03-01 04:44:02.093851"], ["updated_at", "2015-03-01 04:44:02.093851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$4aC6f.o9qTr53EVdwXVlSuOhcKZuBqlVO00QPYupNr5KP1Er9OlAi"], ["created_at", "2015-03-01 04:44:02.098929"], ["updated_at", "2015-03-01 04:44:02.098929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:02.100998"], ["user_id", "953cc8f6-bfcd-11e4-994d-705681abff85"], ["created_at", "2015-03-01 04:44:02.102503"], ["updated_at", "2015-03-01 04:44:02.102503"], ["token", "ZNnJVFExVmht05NboFojqJU9emG0RqXoFZIY-_vj9To"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:02.106549"], ["updated_at", "2015-03-01 04:44:02.106549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '953cc8f6-bfcd-11e4-994d-705681abff85' AND "clubhouse_memberships"."organization_id" = '953eafea-bfcd-11e4-97dc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "953cc8f6-bfcd-11e4-994d-705681abff85"], ["organization_id", "953eafea-bfcd-11e4-97dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:02.109846"], ["updated_at", "2015-03-01 04:44:02.109846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '953d8b42-bfcd-11e4-bf8f-705681abff85' AND "clubhouse_memberships"."organization_id" = '953eafea-bfcd-11e4-97dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "953d8b42-bfcd-11e4-bf8f-705681abff85"], ["organization_id", "953eafea-bfcd-11e4-97dc-705681abff85"], ["created_at", "2015-03-01 04:44:02.113488"], ["updated_at", "2015-03-01 04:44:02.113488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:44:02 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:02.117931' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZNnJVFExVmht05NboFojqJU9emG0RqXoFZIY-_vj9To"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:02.119376"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:02.120387"], ["id", "953e27f0-bfcd-11e4-9240-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "953cc8f6-bfcd-11e4-994d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "953cc8f6-bfcd-11e4-994d-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "953cc8f6-bfcd-11e4-994d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "953cc8f6-bfcd-11e4-994d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "953eafea-bfcd-11e4-97dc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "953cc8f6-bfcd-11e4-994d-705681abff85"]] Completed 200 OK in 11ms (Views: 3.3ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$focOCAqHkmmjIUOR17eqmu8WT0wLAhsYBDONpu6Lgba4d0/yVuv.2"], ["created_at", "2015-03-01 04:44:02.135021"], ["updated_at", "2015-03-01 04:44:02.135021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$.bPjNBI9ONSzXeB.I0SPluTmhteVEsj9uWkeo2ILNb6KOHdu/0iim"], ["created_at", "2015-03-01 04:44:02.140308"], ["updated_at", "2015-03-01 04:44:02.140308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:02.142013"], ["user_id", "9543133c-bfcd-11e4-a5d1-705681abff85"], ["created_at", "2015-03-01 04:44:02.142826"], ["updated_at", "2015-03-01 04:44:02.142826"], ["token", "CRpeyvk6LzzWSsAJxWRXFOaBhGO3-t9Eq_31q81F7_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:02.153973"], ["updated_at", "2015-03-01 04:44:02.153973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9543133c-bfcd-11e4-a5d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '9545f764-bfcd-11e4-9692-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9543133c-bfcd-11e4-a5d1-705681abff85"], ["organization_id", "9545f764-bfcd-11e4-9692-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:02.157813"], ["updated_at", "2015-03-01 04:44:02.157813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9543db3c-bfcd-11e4-bfab-705681abff85' AND "clubhouse_memberships"."organization_id" = '9545f764-bfcd-11e4-9692-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9543db3c-bfcd-11e4-bfab-705681abff85"], ["organization_id", "9545f764-bfcd-11e4-9692-705681abff85"], ["created_at", "2015-03-01 04:44:02.160895"], ["updated_at", "2015-03-01 04:44:02.160895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:44:02 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$xLMI7DzakchUT2dWQobrtul5cPpdDaycXsTHRhXGVyXOl2rUAR2iq"], ["created_at", "2015-03-01 04:44:02.173062"], ["updated_at", "2015-03-01 04:44:02.173062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$bvO3XGQaoH7qv/n72MQZL.2ZbYW01nChtQw9DOhnvwRoOvup6whL2"], ["created_at", "2015-03-01 04:44:02.177234"], ["updated_at", "2015-03-01 04:44:02.177234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:02.178825"], ["user_id", "9548d830-bfcd-11e4-8e52-705681abff85"], ["created_at", "2015-03-01 04:44:02.179609"], ["updated_at", "2015-03-01 04:44:02.179609"], ["token", "wZQ2IXix09s-LVnEo_z5IutcGCNw8Zgh3G_OXhIeirY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:02.183026"], ["updated_at", "2015-03-01 04:44:02.183026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9548d830-bfcd-11e4-8e52-705681abff85' AND "clubhouse_memberships"."organization_id" = '954a5f84-bfcd-11e4-9290-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9548d830-bfcd-11e4-8e52-705681abff85"], ["organization_id", "954a5f84-bfcd-11e4-9290-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:02.186769"], ["updated_at", "2015-03-01 04:44:02.186769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9549788a-bfcd-11e4-8d32-705681abff85' AND "clubhouse_memberships"."organization_id" = '954a5f84-bfcd-11e4-9290-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9549788a-bfcd-11e4-8d32-705681abff85"], ["organization_id", "954a5f84-bfcd-11e4-9290-705681abff85"], ["created_at", "2015-03-01 04:44:02.189798"], ["updated_at", "2015-03-01 04:44:02.189798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/954b615e-bfcd-11e4-9407-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:44:02 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"954b615e-bfcd-11e4-9407-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:02.194210' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wZQ2IXix09s-LVnEo_z5IutcGCNw8Zgh3G_OXhIeirY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:02.195595"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:02.196546"], ["id", "9549ddb6-bfcd-11e4-b1e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9548d830-bfcd-11e4-8e52-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9548d830-bfcd-11e4-8e52-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9548d830-bfcd-11e4-8e52-705681abff85' LIMIT 1 [["organization_id", "954a5f84-bfcd-11e4-9290-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "954a5f84-bfcd-11e4-9290-705681abff85"], ["id", "954b615e-bfcd-11e4-9407-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "954a5f84-bfcd-11e4-9290-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9549788a-bfcd-11e4-8d32-705681abff85"]] Completed 200 OK in 12ms (Views: 2.8ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$H/7.KUvpHLaZesG6mkrLf.UroI0uzGB47dKEYHEEtuHl.qeJPCZ4W"], ["created_at", "2015-03-01 04:44:02.212297"], ["updated_at", "2015-03-01 04:44:02.212297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$W7ASdDeT1siYv3xRy6sGWemflYxcE7c4Sh9R55tjCppcHL6l8Cr4."], ["created_at", "2015-03-01 04:44:02.217004"], ["updated_at", "2015-03-01 04:44:02.217004"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (10.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:02.219427"], ["user_id", "954edb2c-bfcd-11e4-b76c-705681abff85"], ["created_at", "2015-03-01 04:44:02.231993"], ["updated_at", "2015-03-01 04:44:02.231993"], ["token", "x0mLL-_kWPqNk1b44dkulNyo9i9rlQv-_w9d8ofpPH0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:02.242955"], ["updated_at", "2015-03-01 04:44:02.242955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '954edb2c-bfcd-11e4-b76c-705681abff85' AND "clubhouse_memberships"."organization_id" = '95539112-bfcd-11e4-84c4-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "954edb2c-bfcd-11e4-b76c-705681abff85"], ["organization_id", "95539112-bfcd-11e4-84c4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:02.251385"], ["updated_at", "2015-03-01 04:44:02.251385"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '954f8f86-bfcd-11e4-8794-705681abff85' AND "clubhouse_memberships"."organization_id" = '95539112-bfcd-11e4-84c4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "954f8f86-bfcd-11e4-8794-705681abff85"], ["organization_id", "95539112-bfcd-11e4-84c4-705681abff85"], ["created_at", "2015-03-01 04:44:02.258493"], ["updated_at", "2015-03-01 04:44:02.258493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:44:02 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$.A4sEE4NWphawba/mxQhyutuj7FgOHGClgW0.8/x28J4kTXiL/q9."], ["created_at", "2015-03-01 04:44:02.279776"], ["updated_at", "2015-03-01 04:44:02.279776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$lXJWthpx0mwobIZkIkb/HOF2a2PxxRFNBx0wf725C6AKhnATxHEwS"], ["created_at", "2015-03-01 04:44:02.284817"], ["updated_at", "2015-03-01 04:44:02.284817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:02.287248"], ["user_id", "955920be-bfcd-11e4-9d0d-705681abff85"], ["created_at", "2015-03-01 04:44:02.288034"], ["updated_at", "2015-03-01 04:44:02.288034"], ["token", "1yNzIgvp4Men9xXTY28sGYSHyrLbazIjmyl5EAvkrpk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:02.291357"], ["updated_at", "2015-03-01 04:44:02.291357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '955920be-bfcd-11e4-9d0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '955ae322-bfcd-11e4-a4ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "955920be-bfcd-11e4-9d0d-705681abff85"], ["organization_id", "955ae322-bfcd-11e4-a4ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:02.294525"], ["updated_at", "2015-03-01 04:44:02.294525"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '955a0150-bfcd-11e4-8dd3-705681abff85' AND "clubhouse_memberships"."organization_id" = '955ae322-bfcd-11e4-a4ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "955a0150-bfcd-11e4-8dd3-705681abff85"], ["organization_id", "955ae322-bfcd-11e4-a4ea-705681abff85"], ["created_at", "2015-03-01 04:44:02.298452"], ["updated_at", "2015-03-01 04:44:02.298452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/955bf758-bfcd-11e4-8058-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:44:02 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"955bf758-bfcd-11e4-8058-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:02.302968' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1yNzIgvp4Men9xXTY28sGYSHyrLbazIjmyl5EAvkrpk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:02.304382"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:02.305377"], ["id", "955a69a6-bfcd-11e4-95a0-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "955920be-bfcd-11e4-9d0d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "955920be-bfcd-11e4-9d0d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '955920be-bfcd-11e4-9d0d-705681abff85' LIMIT 1 [["organization_id", "955ae322-bfcd-11e4-a4ea-705681abff85"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "955ae322-bfcd-11e4-a4ea-705681abff85"], ["id", "955bf758-bfcd-11e4-8058-705681abff85"]] Completed 404 Not Found in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$Wt85RBRB1A9Bwc7wv5zzMu5Lwq0StoE/SLrBGCiSjYbmCoe7YRi96"], ["created_at", "2015-03-01 04:44:02.323781"], ["updated_at", "2015-03-01 04:44:02.323781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$78WtVINROavmint39Awga.9GJYJs2CKgvRZ1blk9WYYGhZvSvfvoS"], ["created_at", "2015-03-01 04:44:02.328044"], ["updated_at", "2015-03-01 04:44:02.328044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:02.329532"], ["user_id", "955fd83c-bfcd-11e4-a16d-705681abff85"], ["created_at", "2015-03-01 04:44:02.330300"], ["updated_at", "2015-03-01 04:44:02.330300"], ["token", "mc7gSmmb6Dr13inO_Ep8axAnlY_QYjUQVe5AkUnoTk4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:02.333737"], ["updated_at", "2015-03-01 04:44:02.333737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '955fd83c-bfcd-11e4-a16d-705681abff85' AND "clubhouse_memberships"."organization_id" = '95615e5a-bfcd-11e4-96b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "955fd83c-bfcd-11e4-a16d-705681abff85"], ["organization_id", "95615e5a-bfcd-11e4-96b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:02.337326"], ["updated_at", "2015-03-01 04:44:02.337326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95607b8e-bfcd-11e4-9013-705681abff85' AND "clubhouse_memberships"."organization_id" = '95615e5a-bfcd-11e4-96b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95607b8e-bfcd-11e4-9013-705681abff85"], ["organization_id", "95615e5a-bfcd-11e4-96b1-705681abff85"], ["created_at", "2015-03-01 04:44:02.340640"], ["updated_at", "2015-03-01 04:44:02.340640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/9561f162-bfcd-11e4-a813-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:44:02 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"9561f162-bfcd-11e4-a813-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:02.345101' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mc7gSmmb6Dr13inO_Ep8axAnlY_QYjUQVe5AkUnoTk4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:02.346504"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:02.347474"], ["id", "9560dc50-bfcd-11e4-bf06-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "955fd83c-bfcd-11e4-a16d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "955fd83c-bfcd-11e4-a16d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '955fd83c-bfcd-11e4-a16d-705681abff85' LIMIT 1 [["organization_id", "95615e5a-bfcd-11e4-96b1-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "95615e5a-bfcd-11e4-96b1-705681abff85"], ["id", "9561f162-bfcd-11e4-a813-705681abff85"]] Completed 404 Not Found in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$98xuqcYEcWMqd7pkSGxUou3coOZcOyr//HWDd9eScZwDBznDt5tgK"], ["created_at", "2015-03-01 04:44:56.825111"], ["updated_at", "2015-03-01 04:44:56.825111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Iwdnfi42Cb3/DxPUhdjKz.QgrpGUee4hKXFHmsUFnINI.7Kfo1mCi"], ["created_at", "2015-03-01 04:44:56.831138"], ["updated_at", "2015-03-01 04:44:56.831138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:56.839033"], ["user_id", "b5dc414a-bfcd-11e4-bfe4-705681abff85"], ["created_at", "2015-03-01 04:44:56.845210"], ["updated_at", "2015-03-01 04:44:56.845210"], ["token", "GJpGybyYTNec4Zc2_N29olTb3xGFuE5opJgpd4-2-6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:56.854077"], ["updated_at", "2015-03-01 04:44:56.854077"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b5dc414a-bfcd-11e4-bfe4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b5e089f8-bfcd-11e4-b573-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b5dc414a-bfcd-11e4-bfe4-705681abff85"], ["organization_id", "b5e089f8-bfcd-11e4-b573-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:56.895725"], ["updated_at", "2015-03-01 04:44:56.895725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b5dd02e2-bfcd-11e4-adab-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b5e089f8-bfcd-11e4-b573-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b5dd02e2-bfcd-11e4-adab-705681abff85"], ["organization_id", "b5e089f8-bfcd-11e4-b573-705681abff85"], ["created_at", "2015-03-01 04:44:56.901388"], ["updated_at", "2015-03-01 04:44:56.901388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:44:56 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$VyrHKpfnmGPOubSuq5RDyuHDWTvkx9JfP8IyNVW304/3dFbHtDRAq"], ["created_at", "2015-03-01 04:44:56.934920"], ["updated_at", "2015-03-01 04:44:56.934920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (5.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$bCL/ebOnjeMMVUAkrw5RiucWd3boa7iBeu4zD3YST1LPvp.Gjp5Zy"], ["created_at", "2015-03-01 04:44:56.939462"], ["updated_at", "2015-03-01 04:44:56.939462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:56.946671"], ["user_id", "b5ecda28-bfcd-11e4-9aa1-705681abff85"], ["created_at", "2015-03-01 04:44:56.947660"], ["updated_at", "2015-03-01 04:44:56.947660"], ["token", "v_601bU57gRTmhW4TepT0ECpfdrTtMaTxfbopdu-H_g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:56.951348"], ["updated_at", "2015-03-01 04:44:56.951348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b5ecda28-bfcd-11e4-9aa1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b5ef583e-bfcd-11e4-b96d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b5ecda28-bfcd-11e4-9aa1-705681abff85"], ["organization_id", "b5ef583e-bfcd-11e4-b96d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:56.954741"], ["updated_at", "2015-03-01 04:44:56.954741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b5ed8680-bfcd-11e4-9066-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b5ef583e-bfcd-11e4-b96d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b5ed8680-bfcd-11e4-9066-705681abff85"], ["organization_id", "b5ef583e-bfcd-11e4-b96d-705681abff85"], ["created_at", "2015-03-01 04:44:56.958008"], ["updated_at", "2015-03-01 04:44:56.958008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/b5f05aae-bfcd-11e4-bc40-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:44:56 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"b5f05aae-bfcd-11e4-bc40-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:56.963236' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v_601bU57gRTmhW4TepT0ECpfdrTtMaTxfbopdu-H_g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:56.970894"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:56.972242"], ["id", "b5eed6c0-bfcd-11e4-8781-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b5ecda28-bfcd-11e4-9aa1-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b5ecda28-bfcd-11e4-9aa1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b5ecda28-bfcd-11e4-9aa1-705681abff85' LIMIT 1 [["organization_id", "b5ef583e-bfcd-11e4-b96d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b5ef583e-bfcd-11e4-b96d-705681abff85"], ["id", "b5f05aae-bfcd-11e4-bc40-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b5ed8680-bfcd-11e4-9066-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b5ef583e-bfcd-11e4-b96d-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b5ed8680-bfcd-11e4-9066-705681abff85' AND "clubhouse_memberships"."id" != 'b5f05aae-bfcd-11e4-bc40-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b5ef583e-bfcd-11e4-b96d-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:44:57.005312"], ["id", "b5f05aae-bfcd-11e4-bc40-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 48ms (Views: 4.4ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$AQaPej9tDopdfcA.LyGPu.0F06t/4t4xfYVBlQpRzhbJYGXghEfru"], ["created_at", "2015-03-01 04:44:57.019276"], ["updated_at", "2015-03-01 04:44:57.019276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$5AJZoDRgUFUfOemzYsPBiO6qT99oXENjc1eAHnOGPLtNOFssR1m0O"], ["created_at", "2015-03-01 04:44:57.023800"], ["updated_at", "2015-03-01 04:44:57.023800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:57.025367"], ["user_id", "b5f9baea-bfcd-11e4-be2b-705681abff85"], ["created_at", "2015-03-01 04:44:57.026211"], ["updated_at", "2015-03-01 04:44:57.026211"], ["token", "UMWYhthHZI4itpAlpsXb1BLYYcPapXKGPxg8OwthHew"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:57.029564"], ["updated_at", "2015-03-01 04:44:57.029564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b5f9baea-bfcd-11e4-be2b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b5fb4996-bfcd-11e4-8099-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b5f9baea-bfcd-11e4-be2b-705681abff85"], ["organization_id", "b5fb4996-bfcd-11e4-8099-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:57.033088"], ["updated_at", "2015-03-01 04:44:57.033088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b5fa65c6-bfcd-11e4-9044-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b5fb4996-bfcd-11e4-8099-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b5fa65c6-bfcd-11e4-9044-705681abff85"], ["organization_id", "b5fb4996-bfcd-11e4-8099-705681abff85"], ["created_at", "2015-03-01 04:44:57.036352"], ["updated_at", "2015-03-01 04:44:57.036352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/b5fbd078-bfcd-11e4-8e66-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:44:57 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"b5fbd078-bfcd-11e4-8e66-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:57.043031' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UMWYhthHZI4itpAlpsXb1BLYYcPapXKGPxg8OwthHew"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:57.045157"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:57.046822"], ["id", "b5facb42-bfcd-11e4-ab66-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b5f9baea-bfcd-11e4-be2b-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b5f9baea-bfcd-11e4-be2b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b5f9baea-bfcd-11e4-be2b-705681abff85' LIMIT 1 [["organization_id", "b5fb4996-bfcd-11e4-8099-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b5fb4996-bfcd-11e4-8099-705681abff85"], ["id", "b5fbd078-bfcd-11e4-8e66-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b5f9baea-bfcd-11e4-be2b-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$/ufx/wGlhiPWcAvICr4wx.q2qYHTRnr2OX6v.54c87rGSow3d/RLC"], ["created_at", "2015-03-01 04:44:57.061321"], ["updated_at", "2015-03-01 04:44:57.061321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$60nqoyXW.N9c6CFB766tg.QxORJNGWg6rBDm8h4WYo7vH.02j0eMy"], ["created_at", "2015-03-01 04:44:57.066977"], ["updated_at", "2015-03-01 04:44:57.066977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:57.068919"], ["user_id", "b60027ea-bfcd-11e4-b7f4-705681abff85"], ["created_at", "2015-03-01 04:44:57.069843"], ["updated_at", "2015-03-01 04:44:57.069843"], ["token", "UckR0GkaVql64PtslFKAiWAJN2sphST9jsNMVyK_P0s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:57.073696"], ["updated_at", "2015-03-01 04:44:57.073696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b60027ea-bfcd-11e4-b7f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b602063c-bfcd-11e4-979d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b60027ea-bfcd-11e4-b7f4-705681abff85"], ["organization_id", "b602063c-bfcd-11e4-979d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:57.077613"], ["updated_at", "2015-03-01 04:44:57.077613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6010200-bfcd-11e4-a507-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b602063c-bfcd-11e4-979d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6010200-bfcd-11e4-a507-705681abff85"], ["organization_id", "b602063c-bfcd-11e4-979d-705681abff85"], ["created_at", "2015-03-01 04:44:57.080829"], ["updated_at", "2015-03-01 04:44:57.080829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:44:57 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:57.086381' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UckR0GkaVql64PtslFKAiWAJN2sphST9jsNMVyK_P0s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:57.088671"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:57.090277"], ["id", "b60179c4-bfcd-11e4-a019-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b60027ea-bfcd-11e4-b7f4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b60027ea-bfcd-11e4-b7f4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b60027ea-bfcd-11e4-b7f4-705681abff85' LIMIT 1 [["organization_id", "b602063c-bfcd-11e4-979d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "b602063c-bfcd-11e4-979d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b602063c-bfcd-11e4-979d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b60027ea-bfcd-11e4-b7f4-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b602063c-bfcd-11e4-979d-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b6010200-bfcd-11e4-a507-705681abff85"]] Completed 200 OK in 16ms (Views: 5.5ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$IsRUXfisTn22tZkLxeiACO3Tfil/ivNySAG7HHNahdw0Xviyi5Wja"], ["created_at", "2015-03-01 04:44:57.108564"], ["updated_at", "2015-03-01 04:44:57.108564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$/vYskPpSf9uD4vy.BtFZf.TM9ermCrM/fxT/8vSjLb97gb3HkOsVW"], ["created_at", "2015-03-01 04:44:57.113058"], ["updated_at", "2015-03-01 04:44:57.113058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:57.114871"], ["user_id", "b6075588-bfcd-11e4-abeb-705681abff85"], ["created_at", "2015-03-01 04:44:57.116248"], ["updated_at", "2015-03-01 04:44:57.116248"], ["token", "OWN6rWp9icvD38RV3-ZmJPKmGA-AYxq-uLpDHlEmPG0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:57.120108"], ["updated_at", "2015-03-01 04:44:57.120108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6075588-bfcd-11e4-abeb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b60919a4-bfcd-11e4-9d12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6075588-bfcd-11e4-abeb-705681abff85"], ["organization_id", "b60919a4-bfcd-11e4-9d12-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:57.123757"], ["updated_at", "2015-03-01 04:44:57.123757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6080712-bfcd-11e4-babf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b60919a4-bfcd-11e4-9d12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6080712-bfcd-11e4-babf-705681abff85"], ["organization_id", "b60919a4-bfcd-11e4-9d12-705681abff85"], ["created_at", "2015-03-01 04:44:57.126989"], ["updated_at", "2015-03-01 04:44:57.126989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:44:57 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$iJ8MA36QsbWlBCg7EKi5aO.vzWSHMswIqBtWqiFHdTTF9SxCI4aj2"], ["created_at", "2015-03-01 04:44:57.141039"], ["updated_at", "2015-03-01 04:44:57.141039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$HBUlKvBjAuBi2RQAXdyK3eE2SErc7iZeovHR45YQaR/8yXhJzAxbe"], ["created_at", "2015-03-01 04:44:57.146039"], ["updated_at", "2015-03-01 04:44:57.146039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:57.147796"], ["user_id", "b60c590c-bfcd-11e4-ac36-705681abff85"], ["created_at", "2015-03-01 04:44:57.148597"], ["updated_at", "2015-03-01 04:44:57.148597"], ["token", "pOZlte0CDhcLr_JP2OliYbRWcwQz6qCg_pKuNLn0JxE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:57.152518"], ["updated_at", "2015-03-01 04:44:57.152518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b60c590c-bfcd-11e4-ac36-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b60e0d06-bfcd-11e4-bac3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b60c590c-bfcd-11e4-ac36-705681abff85"], ["organization_id", "b60e0d06-bfcd-11e4-bac3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:57.156090"], ["updated_at", "2015-03-01 04:44:57.156090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b60d10ea-bfcd-11e4-b7c9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b60e0d06-bfcd-11e4-bac3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b60d10ea-bfcd-11e4-b7c9-705681abff85"], ["organization_id", "b60e0d06-bfcd-11e4-bac3-705681abff85"], ["created_at", "2015-03-01 04:44:57.159243"], ["updated_at", "2015-03-01 04:44:57.159243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/b60f0f94-bfcd-11e4-9227-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:44:57 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"b60f0f94-bfcd-11e4-9227-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:57.165276' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pOZlte0CDhcLr_JP2OliYbRWcwQz6qCg_pKuNLn0JxE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:57.167322"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:57.168463"], ["id", "b60d7ab2-bfcd-11e4-bd41-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b60c590c-bfcd-11e4-ac36-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b60c590c-bfcd-11e4-ac36-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b60c590c-bfcd-11e4-ac36-705681abff85' LIMIT 1 [["organization_id", "b60e0d06-bfcd-11e4-bac3-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b60e0d06-bfcd-11e4-bac3-705681abff85"], ["id", "b60f0f94-bfcd-11e4-9227-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "b60f0f94-bfcd-11e4-9227-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$4weM6tbBgNf6nPkdxsmV/Oa5LOc/y4XDrIl4C02.MwWnLyBA/A1JK"], ["created_at", "2015-03-01 04:44:57.183544"], ["updated_at", "2015-03-01 04:44:57.183544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$xLe/8iSAhpMCSLHLVRHuyenHYH3YAQNxindNeBiNvCJJOe4H7VR3W"], ["created_at", "2015-03-01 04:44:57.188404"], ["updated_at", "2015-03-01 04:44:57.188404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:57.190213"], ["user_id", "b612c788-bfcd-11e4-821e-705681abff85"], ["created_at", "2015-03-01 04:44:57.191077"], ["updated_at", "2015-03-01 04:44:57.191077"], ["token", "aIJhM_tUkCFKu14vMiZ322R2WVxmxecKS8KCA1Wea2A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:57.194460"], ["updated_at", "2015-03-01 04:44:57.194460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b612c788-bfcd-11e4-821e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6146ea8-bfcd-11e4-b2df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b612c788-bfcd-11e4-821e-705681abff85"], ["organization_id", "b6146ea8-bfcd-11e4-b2df-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:57.197921"], ["updated_at", "2015-03-01 04:44:57.197921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b61387f4-bfcd-11e4-a99b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6146ea8-bfcd-11e4-b2df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b61387f4-bfcd-11e4-a99b-705681abff85"], ["organization_id", "b6146ea8-bfcd-11e4-b2df-705681abff85"], ["created_at", "2015-03-01 04:44:57.201164"], ["updated_at", "2015-03-01 04:44:57.201164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/b614f6ca-bfcd-11e4-b371-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:44:57 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"b614f6ca-bfcd-11e4-b371-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:57.206611' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aIJhM_tUkCFKu14vMiZ322R2WVxmxecKS8KCA1Wea2A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:57.208051"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:57.209052"], ["id", "b613f4be-bfcd-11e4-9057-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b612c788-bfcd-11e4-821e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b612c788-bfcd-11e4-821e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b612c788-bfcd-11e4-821e-705681abff85' LIMIT 1 [["organization_id", "b6146ea8-bfcd-11e4-b2df-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b6146ea8-bfcd-11e4-b2df-705681abff85"], ["id", "b614f6ca-bfcd-11e4-b371-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "b614f6ca-bfcd-11e4-b371-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$DOAdu8engc8/ZD0SHUn.3Oc8MC/EjXi5z31YpUKJqDsCEWKEWxxG."], ["created_at", "2015-03-01 04:44:57.258397"], ["updated_at", "2015-03-01 04:44:57.258397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$/1F0Bp6nxyfsAkShSmQR2egYG55Euwat1E3/l5e/.1W0jw4V6yam6"], ["created_at", "2015-03-01 04:44:57.269628"], ["updated_at", "2015-03-01 04:44:57.269628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:57.272677"], ["user_id", "b61e5d6e-bfcd-11e4-a167-705681abff85"], ["created_at", "2015-03-01 04:44:57.273764"], ["updated_at", "2015-03-01 04:44:57.273764"], ["token", "Y2Vd14ppgcjdvZ_fQ6T2zp0NLABK5uKxHB9Zk8-p19E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:57.277644"], ["updated_at", "2015-03-01 04:44:57.277644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b61e5d6e-bfcd-11e4-a167-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6212544-bfcd-11e4-8772-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b61e5d6e-bfcd-11e4-a167-705681abff85"], ["organization_id", "b6212544-bfcd-11e4-8772-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:57.282349"], ["updated_at", "2015-03-01 04:44:57.282349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6200628-bfcd-11e4-a300-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b6212544-bfcd-11e4-8772-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b6200628-bfcd-11e4-a300-705681abff85"], ["organization_id", "b6212544-bfcd-11e4-8772-705681abff85"], ["created_at", "2015-03-01 04:44:57.294937"], ["updated_at", "2015-03-01 04:44:57.294937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:44:57 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$kexwYmb4LwuYoobM4pm60uDpEl/14rOKqvd0CxgNwtYKM9U/KBdES"], ["created_at", "2015-03-01 04:44:57.309681"], ["updated_at", "2015-03-01 04:44:57.309681"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$1IfRPf4h/CfC7sX768pEnesOgxafEO6tQPjzGciO6WvIu.JtkowSO"], ["created_at", "2015-03-01 04:44:57.315488"], ["updated_at", "2015-03-01 04:44:57.315488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:57.317294"], ["user_id", "b62609ec-bfcd-11e4-912c-705681abff85"], ["created_at", "2015-03-01 04:44:57.318091"], ["updated_at", "2015-03-01 04:44:57.318091"], ["token", "SprMjSzjofiS3WmnrEwNvq8QN3DJvCFPtWYqOompxIA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:57.322241"], ["updated_at", "2015-03-01 04:44:57.322241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b62609ec-bfcd-11e4-912c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b627f19e-bfcd-11e4-aea6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b62609ec-bfcd-11e4-912c-705681abff85"], ["organization_id", "b627f19e-bfcd-11e4-aea6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:57.325824"], ["updated_at", "2015-03-01 04:44:57.325824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b626ebaa-bfcd-11e4-b98f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b627f19e-bfcd-11e4-aea6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b626ebaa-bfcd-11e4-b98f-705681abff85"], ["organization_id", "b627f19e-bfcd-11e4-aea6-705681abff85"], ["created_at", "2015-03-01 04:44:57.329962"], ["updated_at", "2015-03-01 04:44:57.329962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/b6287f10-bfcd-11e4-b504-705681abff85" for 127.0.0.1 at 2015-02-28 20:44:57 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"b6287f10-bfcd-11e4-b504-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:57.335607' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SprMjSzjofiS3WmnrEwNvq8QN3DJvCFPtWYqOompxIA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:57.337038"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:57.337978"], ["id", "b6275996-bfcd-11e4-bd0b-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b62609ec-bfcd-11e4-912c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b62609ec-bfcd-11e4-912c-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b62609ec-bfcd-11e4-912c-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "b62609ec-bfcd-11e4-912c-705681abff85"], ["id", "b6287f10-bfcd-11e4-b504-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b627f19e-bfcd-11e4-aea6-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b62609ec-bfcd-11e4-912c-705681abff85"]] Completed 200 OK in 11ms (Views: 2.3ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$gfzMogV3uKQIWLOHTiA8IeI3cWM7CP.vqumBiTc79MBFrC8zSyVjm"], ["created_at", "2015-03-01 04:44:57.354781"], ["updated_at", "2015-03-01 04:44:57.354781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$xBU0zL9246f75316XrRqlOs1J6EM.9xJaVamsBQiCOOuWJFvUhCJO"], ["created_at", "2015-03-01 04:44:57.358948"], ["updated_at", "2015-03-01 04:44:57.358948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:57.360422"], ["user_id", "b62ce7d0-bfcd-11e4-9bcb-705681abff85"], ["created_at", "2015-03-01 04:44:57.361165"], ["updated_at", "2015-03-01 04:44:57.361165"], ["token", "gg4aXUhI-0kf-rfmPogexZK8DbU1CS_ebtzI18iiokE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:57.366201"], ["updated_at", "2015-03-01 04:44:57.366201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b62ce7d0-bfcd-11e4-9bcb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b62eb376-bfcd-11e4-b804-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b62ce7d0-bfcd-11e4-9bcb-705681abff85"], ["organization_id", "b62eb376-bfcd-11e4-b804-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:57.371646"], ["updated_at", "2015-03-01 04:44:57.371646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b62d882a-bfcd-11e4-b676-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b62eb376-bfcd-11e4-b804-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b62d882a-bfcd-11e4-b676-705681abff85"], ["organization_id", "b62eb376-bfcd-11e4-b804-705681abff85"], ["created_at", "2015-03-01 04:44:57.377317"], ["updated_at", "2015-03-01 04:44:57.377317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:44:57 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:57.383489' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gg4aXUhI-0kf-rfmPogexZK8DbU1CS_ebtzI18iiokE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:57.385342"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:57.386538"], ["id", "b62de7d4-bfcd-11e4-9176-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b62ce7d0-bfcd-11e4-9bcb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b62ce7d0-bfcd-11e4-9bcb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b62ce7d0-bfcd-11e4-9bcb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "b62ce7d0-bfcd-11e4-9bcb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b62eb376-bfcd-11e4-b804-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b62ce7d0-bfcd-11e4-9bcb-705681abff85"]] Completed 200 OK in 11ms (Views: 3.4ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Z//RqlAtTNrsUV0LvaZ9m.c5E74mFvdiHVevdkt.i19aYHanrM.I6"], ["created_at", "2015-03-01 04:44:57.401607"], ["updated_at", "2015-03-01 04:44:57.401607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$ah.TpKw2WEYL/9.D2Uur1OWYrEgyGkYREHILBKRWGEYpIh/jeNK0i"], ["created_at", "2015-03-01 04:44:57.405938"], ["updated_at", "2015-03-01 04:44:57.405938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:57.407888"], ["user_id", "b6340e8e-bfcd-11e4-ba12-705681abff85"], ["created_at", "2015-03-01 04:44:57.408693"], ["updated_at", "2015-03-01 04:44:57.408693"], ["token", "U8WFmfvHoaR1aYrfNCzQM6X0gjF4Gdew8yr0yyhfuMU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:57.412018"], ["updated_at", "2015-03-01 04:44:57.412018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6340e8e-bfcd-11e4-ba12-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b635a0fa-bfcd-11e4-9c59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6340e8e-bfcd-11e4-ba12-705681abff85"], ["organization_id", "b635a0fa-bfcd-11e4-9c59-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:57.415859"], ["updated_at", "2015-03-01 04:44:57.415859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b634b294-bfcd-11e4-930f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b635a0fa-bfcd-11e4-9c59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b634b294-bfcd-11e4-930f-705681abff85"], ["organization_id", "b635a0fa-bfcd-11e4-9c59-705681abff85"], ["created_at", "2015-03-01 04:44:57.419253"], ["updated_at", "2015-03-01 04:44:57.419253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:44:57 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$NOdR793NQzmhTdFoUaXJWeIOPOE/XvTnW9TPZAG1vH500MO11fomm"], ["created_at", "2015-03-01 04:44:57.431223"], ["updated_at", "2015-03-01 04:44:57.431223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$hdEwBv1sh0Tqr4PUK1JI/e7K5t3iBWwg48fFi.QQbShSZu2a07LkO"], ["created_at", "2015-03-01 04:44:57.437363"], ["updated_at", "2015-03-01 04:44:57.437363"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:44:57.440237"], ["user_id", "b63892a6-bfcd-11e4-ae56-705681abff85"], ["created_at", "2015-03-01 04:44:57.441647"], ["updated_at", "2015-03-01 04:44:57.441647"], ["token", "RwmRUvo64HJT0olX5obon8k-fyK0PXgcWyiOBfn36f0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:44:57.446725"], ["updated_at", "2015-03-01 04:44:57.446725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b63892a6-bfcd-11e4-ae56-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b63afd48-bfcd-11e4-b2e8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b63892a6-bfcd-11e4-ae56-705681abff85"], ["organization_id", "b63afd48-bfcd-11e4-b2e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:44:57.454838"], ["updated_at", "2015-03-01 04:44:57.454838"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b63993cc-bfcd-11e4-8dd4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b63afd48-bfcd-11e4-b2e8-705681abff85') LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b63993cc-bfcd-11e4-8dd4-705681abff85"], ["organization_id", "b63afd48-bfcd-11e4-b2e8-705681abff85"], ["created_at", "2015-03-01 04:44:57.459825"], ["updated_at", "2015-03-01 04:44:57.459825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/b63d5db8-bfcd-11e4-92cf-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:44:57 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"b63d5db8-bfcd-11e4-92cf-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:44:57.470072' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RwmRUvo64HJT0olX5obon8k-fyK0PXgcWyiOBfn36f0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:44:57.471675"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:44:57.473200"], ["id", "b63a4484-bfcd-11e4-a3cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b63892a6-bfcd-11e4-ae56-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b63892a6-bfcd-11e4-ae56-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b63892a6-bfcd-11e4-ae56-705681abff85' LIMIT 1 [["organization_id", "b63afd48-bfcd-11e4-b2e8-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b63afd48-bfcd-11e4-b2e8-705681abff85"], ["id", "b63d5db8-bfcd-11e4-92cf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b63afd48-bfcd-11e4-b2e8-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b63993cc-bfcd-11e4-8dd4-705681abff85"]] Completed 200 OK in 17ms (Views: 4.0ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$uCFqny5PhJ68OYJTkSnLH.G1WYuMSskNHIZTD4PLn0f1aeZxv4g.2"], ["created_at", "2015-03-01 04:45:01.000722"], ["updated_at", "2015-03-01 04:45:01.000722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$m65j.MGqj2p6nt.9i9dcYOh/AifZhl/xlypdAkNZ3RQJPJ1VkJTuG"], ["created_at", "2015-03-01 04:45:01.006331"], ["updated_at", "2015-03-01 04:45:01.006331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.016431"], ["user_id", "b85965a6-bfcd-11e4-ae6a-705681abff85"], ["created_at", "2015-03-01 04:45:01.022550"], ["updated_at", "2015-03-01 04:45:01.022550"], ["token", "Ax8QwG4K3vY3znB3TrV1QjNNfauovcPjfuae05lcP-U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.033019"], ["updated_at", "2015-03-01 04:45:01.033019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b85965a6-bfcd-11e4-ae6a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b85e3dba-bfcd-11e4-aedc-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b85965a6-bfcd-11e4-ae6a-705681abff85"], ["organization_id", "b85e3dba-bfcd-11e4-aedc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.075520"], ["updated_at", "2015-03-01 04:45:01.075520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b85a1604-bfcd-11e4-9107-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b85e3dba-bfcd-11e4-aedc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b85a1604-bfcd-11e4-9107-705681abff85"], ["organization_id", "b85e3dba-bfcd-11e4-aedc-705681abff85"], ["created_at", "2015-03-01 04:45:01.080682"], ["updated_at", "2015-03-01 04:45:01.080682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/b8657288-bfcd-11e4-824f-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"b8657288-bfcd-11e4-824f-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:01.105375' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ax8QwG4K3vY3znB3TrV1QjNNfauovcPjfuae05lcP-U"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:01.112049"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:01.113954"], ["id", "b85cc840-bfcd-11e4-b941-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b85965a6-bfcd-11e4-ae6a-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b85965a6-bfcd-11e4-ae6a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b85965a6-bfcd-11e4-ae6a-705681abff85' LIMIT 1 [["organization_id", "b85e3dba-bfcd-11e4-aedc-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b85e3dba-bfcd-11e4-aedc-705681abff85"], ["id", "b8657288-bfcd-11e4-824f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b85e3dba-bfcd-11e4-aedc-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b85a1604-bfcd-11e4-9107-705681abff85"]] Completed 200 OK in 37ms (Views: 5.0ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$BQp92JV8.bTxH9NXZNXWSuSgRS4dgoljVvjDMkzPwaQYBlfGkxX5y"], ["created_at", "2015-03-01 04:45:01.150183"], ["updated_at", "2015-03-01 04:45:01.150183"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$lfy/Z9hyi6GNDDCkbUTFXu1l/lsrGqfw.3g57rtsmIn9XhZ/zY5lK"], ["created_at", "2015-03-01 04:45:01.154715"], ["updated_at", "2015-03-01 04:45:01.154715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.156286"], ["user_id", "b8700b62-bfcd-11e4-be54-705681abff85"], ["created_at", "2015-03-01 04:45:01.157059"], ["updated_at", "2015-03-01 04:45:01.157059"], ["token", "sGUhdXJ2I9RCyGBhyPxJ8IKnYfnJHpBtlcoStB9U5JY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.160274"], ["updated_at", "2015-03-01 04:45:01.160274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8700b62-bfcd-11e4-be54-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8719126-bfcd-11e4-b8fd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8700b62-bfcd-11e4-be54-705681abff85"], ["organization_id", "b8719126-bfcd-11e4-b8fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.163524"], ["updated_at", "2015-03-01 04:45:01.163524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b870b8aa-bfcd-11e4-8a48-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8719126-bfcd-11e4-b8fd-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b870b8aa-bfcd-11e4-8a48-705681abff85"], ["organization_id", "b8719126-bfcd-11e4-b8fd-705681abff85"], ["created_at", "2015-03-01 04:45:01.166978"], ["updated_at", "2015-03-01 04:45:01.166978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$F4f/Bvtk26ehgznfhcN8ZelEMf61ghriinMKgwuoLuf7M2Wn1yfRq"], ["created_at", "2015-03-01 04:45:01.182847"], ["updated_at", "2015-03-01 04:45:01.182847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$6Jm.Cm3sDl0tZNf2griUv.A2mLK7zwVvvnXiIvAmL4trdFk2oH/sK"], ["created_at", "2015-03-01 04:45:01.188290"], ["updated_at", "2015-03-01 04:45:01.188290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.190107"], ["user_id", "b8750b8a-bfcd-11e4-b5e3-705681abff85"], ["created_at", "2015-03-01 04:45:01.191029"], ["updated_at", "2015-03-01 04:45:01.191029"], ["token", "ldZaI4GhsqNASYbiX5uUVtYwouklmGOnU2WmpJUOMh0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.194478"], ["updated_at", "2015-03-01 04:45:01.194478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8750b8a-bfcd-11e4-b5e3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b876ca38-bfcd-11e4-9d35-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8750b8a-bfcd-11e4-b5e3-705681abff85"], ["organization_id", "b876ca38-bfcd-11e4-9d35-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.197896"], ["updated_at", "2015-03-01 04:45:01.197896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b875deca-bfcd-11e4-9ce6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b876ca38-bfcd-11e4-9d35-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b875deca-bfcd-11e4-9ce6-705681abff85"], ["organization_id", "b876ca38-bfcd-11e4-9d35-705681abff85"], ["created_at", "2015-03-01 04:45:01.201229"], ["updated_at", "2015-03-01 04:45:01.201229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ME4wC5IIWO1RpmcdpkJM7eEcAqqsgiuvBh/IiQulzkyAMlb/Ggr2i"], ["created_at", "2015-03-01 04:45:01.216612"], ["updated_at", "2015-03-01 04:45:01.216612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.1ms) SAVEPOINT active_record_1 User Exists (2.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$WDYM1CJ8xRmcz/PfxPjNn.z5ye7uG4K4BQWWjCunJPX5rly/zM1V."], ["created_at", "2015-03-01 04:45:01.232186"], ["updated_at", "2015-03-01 04:45:01.232186"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.236697"], ["user_id", "b87a2f02-bfcd-11e4-be97-705681abff85"], ["created_at", "2015-03-01 04:45:01.238703"], ["updated_at", "2015-03-01 04:45:01.238703"], ["token", "ut1LnpvU3jDoasLIaPqFM3r-xH4atIxdrrJaTZer1fE"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.247047"], ["updated_at", "2015-03-01 04:45:01.247047"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b87a2f02-bfcd-11e4-be97-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b87ef44c-bfcd-11e4-838e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b87a2f02-bfcd-11e4-be97-705681abff85"], ["organization_id", "b87ef44c-bfcd-11e4-838e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.257354"], ["updated_at", "2015-03-01 04:45:01.257354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b87cb63c-bfcd-11e4-ac80-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b87ef44c-bfcd-11e4-838e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b87cb63c-bfcd-11e4-ac80-705681abff85"], ["organization_id", "b87ef44c-bfcd-11e4-838e-705681abff85"], ["created_at", "2015-03-01 04:45:01.264014"], ["updated_at", "2015-03-01 04:45:01.264014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/b88080dc-bfcd-11e4-872f-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"b88080dc-bfcd-11e4-872f-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:01.277441' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ut1LnpvU3jDoasLIaPqFM3r-xH4atIxdrrJaTZer1fE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:01.279531"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:01.280758"], ["id", "b87db942-bfcd-11e4-ba90-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b87a2f02-bfcd-11e4-be97-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b87a2f02-bfcd-11e4-be97-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b87a2f02-bfcd-11e4-be97-705681abff85' LIMIT 1 [["organization_id", "b87ef44c-bfcd-11e4-838e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b87ef44c-bfcd-11e4-838e-705681abff85"], ["id", "b88080dc-bfcd-11e4-872f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b87a2f02-bfcd-11e4-be97-705681abff85"]] Completed 500 Internal Server Error in 17ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (11.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$hG9SV0nrlt71ql5Oxg7npOybkFl80gxcyNCM2SrJjZqy1r230SDJe"], ["created_at", "2015-03-01 04:45:01.300305"], ["updated_at", "2015-03-01 04:45:01.300305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$tmaFIfqSP.7gWhgRlWZE2uLpXYPkDAuA4bL8l9Dc7Swr.JUMUZGwq"], ["created_at", "2015-03-01 04:45:01.316902"], ["updated_at", "2015-03-01 04:45:01.316902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.319485"], ["user_id", "b88700e2-bfcd-11e4-9bb0-705681abff85"], ["created_at", "2015-03-01 04:45:01.320443"], ["updated_at", "2015-03-01 04:45:01.320443"], ["token", "Y5Fe8DIeWwo_mUC4xyJMlwFpyDZ3mIWdAq3ONAui4NU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.325940"], ["updated_at", "2015-03-01 04:45:01.325940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b88700e2-bfcd-11e4-9bb0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b88adec4-bfcd-11e4-9436-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b88700e2-bfcd-11e4-9bb0-705681abff85"], ["organization_id", "b88adec4-bfcd-11e4-9436-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.330503"], ["updated_at", "2015-03-01 04:45:01.330503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b889901e-bfcd-11e4-9df9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b88adec4-bfcd-11e4-9436-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b889901e-bfcd-11e4-9df9-705681abff85"], ["organization_id", "b88adec4-bfcd-11e4-9436-705681abff85"], ["created_at", "2015-03-01 04:45:01.335385"], ["updated_at", "2015-03-01 04:45:01.335385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/b88c7680-bfcd-11e4-9c3c-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"b88c7680-bfcd-11e4-9c3c-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:01.342612' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y5Fe8DIeWwo_mUC4xyJMlwFpyDZ3mIWdAq3ONAui4NU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:01.344446"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:01.345658"], ["id", "b88a36e0-bfcd-11e4-8872-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b88700e2-bfcd-11e4-9bb0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b88700e2-bfcd-11e4-9bb0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b88700e2-bfcd-11e4-9bb0-705681abff85' LIMIT 1 [["organization_id", "b88adec4-bfcd-11e4-9436-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b88adec4-bfcd-11e4-9436-705681abff85"], ["id", "b88c7680-bfcd-11e4-9c3c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b889901e-bfcd-11e4-9df9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b88adec4-bfcd-11e4-9436-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b889901e-bfcd-11e4-9df9-705681abff85' AND "clubhouse_memberships"."id" != 'b88c7680-bfcd-11e4-9c3c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b88adec4-bfcd-11e4-9436-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:45:01.356824"], ["id", "b88c7680-bfcd-11e4-9c3c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.2ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$dE1O6hkxjkoCf17ftKeA3eNfV1.E8QV/lkEL3BIrYBEhhjEcL1hj2"], ["created_at", "2015-03-01 04:45:01.366052"], ["updated_at", "2015-03-01 04:45:01.366052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$EPZUdjZ.NsH811AZmDecleLiO1O7Q0Q2FxgOzo7R/gUN/JoTUdNh2"], ["created_at", "2015-03-01 04:45:01.370869"], ["updated_at", "2015-03-01 04:45:01.370869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.372795"], ["user_id", "b890fd04-bfcd-11e4-841f-705681abff85"], ["created_at", "2015-03-01 04:45:01.373652"], ["updated_at", "2015-03-01 04:45:01.373652"], ["token", "YF4vHxQLcoscmVSKYtmL1XKe5cocBy94rK8WRmh8UKU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.377391"], ["updated_at", "2015-03-01 04:45:01.377391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b890fd04-bfcd-11e4-841f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b892b536-bfcd-11e4-bc5d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b890fd04-bfcd-11e4-841f-705681abff85"], ["organization_id", "b892b536-bfcd-11e4-bc5d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.380893"], ["updated_at", "2015-03-01 04:45:01.380893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b891b686-bfcd-11e4-9413-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b892b536-bfcd-11e4-bc5d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b891b686-bfcd-11e4-9413-705681abff85"], ["organization_id", "b892b536-bfcd-11e4-bc5d-705681abff85"], ["created_at", "2015-03-01 04:45:01.384161"], ["updated_at", "2015-03-01 04:45:01.384161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/b8933d94-bfcd-11e4-83d5-705681abff85" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"b8933d94-bfcd-11e4-83d5-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:01.389548' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YF4vHxQLcoscmVSKYtmL1XKe5cocBy94rK8WRmh8UKU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:01.391553"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:01.393463"], ["id", "b8922d6e-bfcd-11e4-992a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b890fd04-bfcd-11e4-841f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b890fd04-bfcd-11e4-841f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b890fd04-bfcd-11e4-841f-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "b890fd04-bfcd-11e4-841f-705681abff85"], ["id", "b8933d94-bfcd-11e4-83d5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b892b536-bfcd-11e4-bc5d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b890fd04-bfcd-11e4-841f-705681abff85"]] Completed 200 OK in 18ms (Views: 3.1ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$AydzgHtPUXluU.0ZsFElmu4/N4UZffaESUbiy0MqnazzCfheMJEaK"], ["created_at", "2015-03-01 04:45:01.414324"], ["updated_at", "2015-03-01 04:45:01.414324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Oc15jDOQtg5frmZP0Qy0Se7nNHslas5QEJ7Ww7/L0SWkjLJUdk.3G"], ["created_at", "2015-03-01 04:45:01.419034"], ["updated_at", "2015-03-01 04:45:01.419034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.420669"], ["user_id", "b89858a6-bfcd-11e4-a695-705681abff85"], ["created_at", "2015-03-01 04:45:01.421441"], ["updated_at", "2015-03-01 04:45:01.421441"], ["token", "zWk6S47WoZIXP3eD6VUQNfSP1WuoZFPXjmydc1MTqKY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.424768"], ["updated_at", "2015-03-01 04:45:01.424768"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b89858a6-bfcd-11e4-a695-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b899f972-bfcd-11e4-9375-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b89858a6-bfcd-11e4-a695-705681abff85"], ["organization_id", "b899f972-bfcd-11e4-9375-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.436311"], ["updated_at", "2015-03-01 04:45:01.436311"]]  (2.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8991110-bfcd-11e4-9a59-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b899f972-bfcd-11e4-9375-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8991110-bfcd-11e4-9a59-705681abff85"], ["organization_id", "b899f972-bfcd-11e4-9375-705681abff85"], ["created_at", "2015-03-01 04:45:01.445552"], ["updated_at", "2015-03-01 04:45:01.445552"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$0ORaWJ7hc0ZWMJTDN.Z0Ouyg5a73PKXhEUnAdZXKOnY5qHn/QK59."], ["created_at", "2015-03-01 04:45:01.461441"], ["updated_at", "2015-03-01 04:45:01.461441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$wgYrO8R7JYpjt.aWviaN8erbh9lRprPa6R4aHCSMf/avxku0cvFtm"], ["created_at", "2015-03-01 04:45:01.466509"], ["updated_at", "2015-03-01 04:45:01.466509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.468467"], ["user_id", "b89f8fcc-bfcd-11e4-9a49-705681abff85"], ["created_at", "2015-03-01 04:45:01.469324"], ["updated_at", "2015-03-01 04:45:01.469324"], ["token", "YLRTGgW31Ell9EQZF9rt4-OkOkkU4UDVvLz5wLIRy00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.473603"], ["updated_at", "2015-03-01 04:45:01.473603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b89f8fcc-bfcd-11e4-9a49-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8a176ca-bfcd-11e4-b444-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b89f8fcc-bfcd-11e4-9a49-705681abff85"], ["organization_id", "b8a176ca-bfcd-11e4-b444-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.479279"], ["updated_at", "2015-03-01 04:45:01.479279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8a05448-bfcd-11e4-8872-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8a176ca-bfcd-11e4-b444-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8a05448-bfcd-11e4-8872-705681abff85"], ["organization_id", "b8a176ca-bfcd-11e4-b444-705681abff85"], ["created_at", "2015-03-01 04:45:01.485448"], ["updated_at", "2015-03-01 04:45:01.485448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:01.502546' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YLRTGgW31Ell9EQZF9rt4-OkOkkU4UDVvLz5wLIRy00"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:01.504947"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:01.506381"], ["id", "b8a0c8ce-bfcd-11e4-9f9a-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b89f8fcc-bfcd-11e4-9a49-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b89f8fcc-bfcd-11e4-9a49-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b89f8fcc-bfcd-11e4-9a49-705681abff85' LIMIT 1 [["organization_id", "b8a176ca-bfcd-11e4-b444-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "b8a176ca-bfcd-11e4-b444-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b8a176ca-bfcd-11e4-b444-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b89f8fcc-bfcd-11e4-9a49-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b8a176ca-bfcd-11e4-b444-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8a05448-bfcd-11e4-8872-705681abff85"]] Completed 200 OK in 27ms (Views: 5.0ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$rk.DF.SmVFs0BTjKu6fY/eb3aqEKS/jKBOC8ayC4NVYzFwBhWhyuK"], ["created_at", "2015-03-01 04:45:01.527328"], ["updated_at", "2015-03-01 04:45:01.527328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$/bE.23GzFrW9tgixdKbaTOezDpn.fEN1bhgU96T3pWnvDaywdEws2"], ["created_at", "2015-03-01 04:45:01.531784"], ["updated_at", "2015-03-01 04:45:01.531784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.533350"], ["user_id", "b8a99620-bfcd-11e4-8a2b-705681abff85"], ["created_at", "2015-03-01 04:45:01.534512"], ["updated_at", "2015-03-01 04:45:01.534512"], ["token", "qmqvex9xW2Lwa1dU9TTS0ApGX70uSEppWhYaWZKf0xo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.543413"], ["updated_at", "2015-03-01 04:45:01.543413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8a99620-bfcd-11e4-8a2b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8ac0b62-bfcd-11e4-9ec8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8a99620-bfcd-11e4-8a2b-705681abff85"], ["organization_id", "b8ac0b62-bfcd-11e4-9ec8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.547379"], ["updated_at", "2015-03-01 04:45:01.547379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8aa435e-bfcd-11e4-9665-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8ac0b62-bfcd-11e4-9ec8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8aa435e-bfcd-11e4-9665-705681abff85"], ["organization_id", "b8ac0b62-bfcd-11e4-9ec8-705681abff85"], ["created_at", "2015-03-01 04:45:01.550854"], ["updated_at", "2015-03-01 04:45:01.550854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$4g6xH2l1/f2jMJwJOgl5Z.QOUT4cJCAAVnLpWRM3f8NpTTs3tUeFK"], ["created_at", "2015-03-01 04:45:01.566480"], ["updated_at", "2015-03-01 04:45:01.566480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Nzxrjbr3m6MJsTSt4p32tuqIMUTmNIMQ1MTSJknE3jxirr2Bo2IHK"], ["created_at", "2015-03-01 04:45:01.571554"], ["updated_at", "2015-03-01 04:45:01.571554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.573562"], ["user_id", "b8af9412-bfcd-11e4-8221-705681abff85"], ["created_at", "2015-03-01 04:45:01.574690"], ["updated_at", "2015-03-01 04:45:01.574690"], ["token", "WpX5zf9iLERcI7bjEXXxUQWKPQCyqZNlPRzSplwPrks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.579860"], ["updated_at", "2015-03-01 04:45:01.579860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8af9412-bfcd-11e4-8221-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8b19b72-bfcd-11e4-8be6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8af9412-bfcd-11e4-8221-705681abff85"], ["organization_id", "b8b19b72-bfcd-11e4-8be6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.583694"], ["updated_at", "2015-03-01 04:45:01.583694"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8b061f8-bfcd-11e4-bdca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8b19b72-bfcd-11e4-8be6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8b061f8-bfcd-11e4-bdca-705681abff85"], ["organization_id", "b8b19b72-bfcd-11e4-8be6-705681abff85"], ["created_at", "2015-03-01 04:45:01.588731"], ["updated_at", "2015-03-01 04:45:01.588731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/b8b23172-bfcd-11e4-952d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"b8b23172-bfcd-11e4-952d-705681abff85", "membership"=>{}} Pollett::Session Load (1.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:01.595822' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WpX5zf9iLERcI7bjEXXxUQWKPQCyqZNlPRzSplwPrks"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:01.599872"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:01.601369"], ["id", "b8b1007c-bfcd-11e4-8a70-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8af9412-bfcd-11e4-8221-705681abff85"]] Clubhouse::Organization Load (0.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b8af9412-bfcd-11e4-8221-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8af9412-bfcd-11e4-8221-705681abff85' LIMIT 1 [["organization_id", "b8b19b72-bfcd-11e4-8be6-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b8b19b72-bfcd-11e4-8be6-705681abff85"], ["id", "b8b23172-bfcd-11e4-952d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "b8b23172-bfcd-11e4-952d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 24ms (ActiveRecord: 4.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$RTpBFW55K4uzjAb7LNske.ekud6hUVWDL695exRUquKZ.V8KDLuQS"], ["created_at", "2015-03-01 04:45:01.625554"], ["updated_at", "2015-03-01 04:45:01.625554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$YqhzKnjBl1/cIVDxtUMQgumB4E2Wd1bfUvoPNnWHBMncwFwpSM1tq"], ["created_at", "2015-03-01 04:45:01.630773"], ["updated_at", "2015-03-01 04:45:01.630773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.632745"], ["user_id", "b8b8956c-bfcd-11e4-8ba5-705681abff85"], ["created_at", "2015-03-01 04:45:01.633560"], ["updated_at", "2015-03-01 04:45:01.633560"], ["token", "RRaKjHmg5hj4KFCowDy7dmfSnXs7aETwQLNGjXUCCno"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.637039"], ["updated_at", "2015-03-01 04:45:01.637039"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8b8956c-bfcd-11e4-8ba5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8ba5028-bfcd-11e4-a950-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8b8956c-bfcd-11e4-8ba5-705681abff85"], ["organization_id", "b8ba5028-bfcd-11e4-a950-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.640796"], ["updated_at", "2015-03-01 04:45:01.640796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8b962a8-bfcd-11e4-af78-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8ba5028-bfcd-11e4-a950-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8b962a8-bfcd-11e4-af78-705681abff85"], ["organization_id", "b8ba5028-bfcd-11e4-a950-705681abff85"], ["created_at", "2015-03-01 04:45:01.643905"], ["updated_at", "2015-03-01 04:45:01.643905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/b8bb6008-bfcd-11e4-803a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"b8bb6008-bfcd-11e4-803a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:01.648920' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RRaKjHmg5hj4KFCowDy7dmfSnXs7aETwQLNGjXUCCno"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:01.650497"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:01.651494"], ["id", "b8b9d63e-bfcd-11e4-93d6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8b8956c-bfcd-11e4-8ba5-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b8b8956c-bfcd-11e4-8ba5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8b8956c-bfcd-11e4-8ba5-705681abff85' LIMIT 1 [["organization_id", "b8ba5028-bfcd-11e4-a950-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "b8ba5028-bfcd-11e4-a950-705681abff85"], ["id", "b8bb6008-bfcd-11e4-803a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "b8bb6008-bfcd-11e4-803a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$qgbMyU7LC8RasRRnWMjSkOiG6ta3RFSlhPbuT5wa1HRZMKo2rvTFi"], ["created_at", "2015-03-01 04:45:01.665405"], ["updated_at", "2015-03-01 04:45:01.665405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$sZ72Zav6d3vgeeOJEOoqi.BQXLRoTRYwN.0Z/4YiDro5ESlj7V3mC"], ["created_at", "2015-03-01 04:45:01.670906"], ["updated_at", "2015-03-01 04:45:01.670906"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:01.673586"], ["user_id", "b8bea7e0-bfcd-11e4-a2ee-705681abff85"], ["created_at", "2015-03-01 04:45:01.674918"], ["updated_at", "2015-03-01 04:45:01.674918"], ["token", "FMJOzNQIU729wz2vU3Alw13u3rZ2vt2TLZLNb3bkUW0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:01.679052"], ["updated_at", "2015-03-01 04:45:01.679052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8bea7e0-bfcd-11e4-a2ee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8c0c0de-bfcd-11e4-9815-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8bea7e0-bfcd-11e4-a2ee-705681abff85"], ["organization_id", "b8c0c0de-bfcd-11e4-9815-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:01.682540"], ["updated_at", "2015-03-01 04:45:01.682540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8bf947a-bfcd-11e4-9461-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8c0c0de-bfcd-11e4-9815-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8bf947a-bfcd-11e4-9461-705681abff85"], ["organization_id", "b8c0c0de-bfcd-11e4-9815-705681abff85"], ["created_at", "2015-03-01 04:45:01.685582"], ["updated_at", "2015-03-01 04:45:01.685582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:45:01 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:01.690506' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FMJOzNQIU729wz2vU3Alw13u3rZ2vt2TLZLNb3bkUW0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:01.691977"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:01.692889"], ["id", "b8c021f6-bfcd-11e4-b63a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8bea7e0-bfcd-11e4-a2ee-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b8bea7e0-bfcd-11e4-a2ee-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "b8bea7e0-bfcd-11e4-a2ee-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "b8bea7e0-bfcd-11e4-a2ee-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b8c0c0de-bfcd-11e4-9815-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8bea7e0-bfcd-11e4-a2ee-705681abff85"]] Completed 200 OK in 13ms (Views: 3.5ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$aeHRa.l12mL4myP.SL4umuVcMdvUbmyJMMXf0k86dCAiTJpq80bXa"], ["created_at", "2015-03-01 04:45:07.705211"], ["updated_at", "2015-03-01 04:45:07.705211"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$bbG2TFp8Yxs64Pw.Ji129u6sB2QhUBD/EMiqSHGG.gTU7kRjz2.8y"], ["created_at", "2015-03-01 04:45:07.723976"], ["updated_at", "2015-03-01 04:45:07.723976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:07.737163"], ["user_id", "bc5a0052-bfcd-11e4-9949-705681abff85"], ["created_at", "2015-03-01 04:45:07.743188"], ["updated_at", "2015-03-01 04:45:07.743188"], ["token", "BBnGiFyNBHe2WheDok48DtNdV2hm-rZaOgNQvvdg55w"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:07.757459"], ["updated_at", "2015-03-01 04:45:07.757459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc5a0052-bfcd-11e4-9949-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc605c54-bfcd-11e4-a593-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc5a0052-bfcd-11e4-9949-705681abff85"], ["organization_id", "bc605c54-bfcd-11e4-a593-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:07.808593"], ["updated_at", "2015-03-01 04:45:07.808593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc5b3332-bfcd-11e4-bc7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc605c54-bfcd-11e4-a593-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc5b3332-bfcd-11e4-bc7c-705681abff85"], ["organization_id", "bc605c54-bfcd-11e4-a593-705681abff85"], ["created_at", "2015-03-01 04:45:07.813082"], ["updated_at", "2015-03-01 04:45:07.813082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bc6814da-bfcd-11e4-afe4-705681abff85" for 127.0.0.1 at 2015-02-28 20:45:07 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"bc6814da-bfcd-11e4-afe4-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:07.837729' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BBnGiFyNBHe2WheDok48DtNdV2hm-rZaOgNQvvdg55w"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:07.843436"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:07.845189"], ["id", "bc5e3dca-bfcd-11e4-96c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc5a0052-bfcd-11e4-9949-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc5a0052-bfcd-11e4-9949-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc5a0052-bfcd-11e4-9949-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "bc5a0052-bfcd-11e4-9949-705681abff85"], ["id", "bc6814da-bfcd-11e4-afe4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc605c54-bfcd-11e4-a593-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc5a0052-bfcd-11e4-9949-705681abff85"]] Completed 200 OK in 36ms (Views: 6.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$rvKDms1tofUVqVaWut9wgeC8Yglu4pCg.W6nGOZh29Xic6eKygVo2"], ["created_at", "2015-03-01 04:45:07.882470"], ["updated_at", "2015-03-01 04:45:07.882470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (4.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Q00ZKiEyTviJSGcQEP3swuQtPZ6jfQRhgVbTBWCNfz.jxJqSfYPe2"], ["created_at", "2015-03-01 04:45:07.888110"], ["updated_at", "2015-03-01 04:45:07.888110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:07.895166"], ["user_id", "bc73561a-bfcd-11e4-a9e0-705681abff85"], ["created_at", "2015-03-01 04:45:07.896221"], ["updated_at", "2015-03-01 04:45:07.896221"], ["token", "1wISXc2foQpDuU4Es0peoEYibGfHrzSFLTw1NaBDFvo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:07.900385"], ["updated_at", "2015-03-01 04:45:07.900385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc73561a-bfcd-11e4-a9e0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc760f90-bfcd-11e4-abdc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc73561a-bfcd-11e4-a9e0-705681abff85"], ["organization_id", "bc760f90-bfcd-11e4-abdc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:07.905329"], ["updated_at", "2015-03-01 04:45:07.905329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc743116-bfcd-11e4-aaf3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc760f90-bfcd-11e4-abdc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc743116-bfcd-11e4-aaf3-705681abff85"], ["organization_id", "bc760f90-bfcd-11e4-abdc-705681abff85"], ["created_at", "2015-03-01 04:45:07.909347"], ["updated_at", "2015-03-01 04:45:07.909347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:45:07 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$/hKuO9QiEukLLsqQNDvlVeMHjw/F5ADSitcm7A8o2V1rTTx2oHvey"], ["created_at", "2015-03-01 04:45:07.925951"], ["updated_at", "2015-03-01 04:45:07.925951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$r5NPKQW1zYgoQl2Cr3qW6udtLRvFsSwY1k6v6ZKz93TiNWOtkT1Ly"], ["created_at", "2015-03-01 04:45:07.931449"], ["updated_at", "2015-03-01 04:45:07.931449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:07.933290"], ["user_id", "bc7a01fe-bfcd-11e4-ad39-705681abff85"], ["created_at", "2015-03-01 04:45:07.934320"], ["updated_at", "2015-03-01 04:45:07.934320"], ["token", "J-B6PmGuQL_eLXPQbyuuPiSkcjODdjhGPVjEYvZldhc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:07.938923"], ["updated_at", "2015-03-01 04:45:07.938923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7a01fe-bfcd-11e4-ad39-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc7beed8-bfcd-11e4-a96c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc7a01fe-bfcd-11e4-ad39-705681abff85"], ["organization_id", "bc7beed8-bfcd-11e4-a96c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:07.943241"], ["updated_at", "2015-03-01 04:45:07.943241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7acb5c-bfcd-11e4-bb2f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc7beed8-bfcd-11e4-a96c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc7acb5c-bfcd-11e4-bb2f-705681abff85"], ["organization_id", "bc7beed8-bfcd-11e4-a96c-705681abff85"], ["created_at", "2015-03-01 04:45:07.947329"], ["updated_at", "2015-03-01 04:45:07.947329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:45:07 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:07.953399' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "J-B6PmGuQL_eLXPQbyuuPiSkcjODdjhGPVjEYvZldhc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:07.955117"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:07.956295"], ["id", "bc7b4ac8-bfcd-11e4-87fd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7a01fe-bfcd-11e4-ad39-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc7a01fe-bfcd-11e4-ad39-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc7a01fe-bfcd-11e4-ad39-705681abff85' LIMIT 1 [["organization_id", "bc7beed8-bfcd-11e4-a96c-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "bc7beed8-bfcd-11e4-a96c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc7beed8-bfcd-11e4-a96c-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7a01fe-bfcd-11e4-ad39-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc7beed8-bfcd-11e4-a96c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7acb5c-bfcd-11e4-bb2f-705681abff85"]] Completed 200 OK in 17ms (Views: 5.1ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$.eNBdTH.V47STXRSPlXN2.s.vO0tPWXw1z53D/Sh7zfmKO9HtwNaq"], ["created_at", "2015-03-01 04:45:07.976802"], ["updated_at", "2015-03-01 04:45:07.976802"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$YvKi3IzkkFZsZifWpo2MV.PmyWVV8EjWyb3iAzk/F0HKROYJCWWpy"], ["created_at", "2015-03-01 04:45:07.981286"], ["updated_at", "2015-03-01 04:45:07.981286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:07.982888"], ["user_id", "bc81b1f6-bfcd-11e4-a83c-705681abff85"], ["created_at", "2015-03-01 04:45:07.983648"], ["updated_at", "2015-03-01 04:45:07.983648"], ["token", "xFPuZl0ZzLe6n4yMlFu1izOiQK3E1bc7AkSRSEaDrVs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:07.987750"], ["updated_at", "2015-03-01 04:45:07.987750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc81b1f6-bfcd-11e4-a83c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc836050-bfcd-11e4-bd53-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc81b1f6-bfcd-11e4-a83c-705681abff85"], ["organization_id", "bc836050-bfcd-11e4-bd53-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:07.991246"], ["updated_at", "2015-03-01 04:45:07.991246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8261d2-bfcd-11e4-a86f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc836050-bfcd-11e4-bd53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc8261d2-bfcd-11e4-a86f-705681abff85"], ["organization_id", "bc836050-bfcd-11e4-bd53-705681abff85"], ["created_at", "2015-03-01 04:45:07.995169"], ["updated_at", "2015-03-01 04:45:07.995169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bc847fc6-bfcd-11e4-806a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:45:07 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"bc847fc6-bfcd-11e4-806a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:07.999649' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xFPuZl0ZzLe6n4yMlFu1izOiQK3E1bc7AkSRSEaDrVs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:08.001354"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:08.002609"], ["id", "bc82c4ce-bfcd-11e4-bd6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc81b1f6-bfcd-11e4-a83c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc81b1f6-bfcd-11e4-a83c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc81b1f6-bfcd-11e4-a83c-705681abff85' LIMIT 1 [["organization_id", "bc836050-bfcd-11e4-bd53-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bc836050-bfcd-11e4-bd53-705681abff85"], ["id", "bc847fc6-bfcd-11e4-806a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc836050-bfcd-11e4-bd53-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc8261d2-bfcd-11e4-a86f-705681abff85"]] Completed 200 OK in 13ms (Views: 2.2ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$vqlgVVt9jfA3iijKLBnEsOArmYTgMAaBGT24mgBeRNLJsZtALZpQW"], ["created_at", "2015-03-01 04:45:08.020458"], ["updated_at", "2015-03-01 04:45:08.020458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$d5aElk20GjM37fWduNX4hO.wOIAlUG8TTpuYVyFu5VqhmIpYCAKVG"], ["created_at", "2015-03-01 04:45:08.025387"], ["updated_at", "2015-03-01 04:45:08.025387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:08.027052"], ["user_id", "bc885df8-bfcd-11e4-b890-705681abff85"], ["created_at", "2015-03-01 04:45:08.027813"], ["updated_at", "2015-03-01 04:45:08.027813"], ["token", "TsP7Qlgx5JTI45cNfUNmWPvbHgIypy5_Iukmpa-aL_I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:08.031105"], ["updated_at", "2015-03-01 04:45:08.031105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc885df8-bfcd-11e4-b890-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc89fa28-bfcd-11e4-bbf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc885df8-bfcd-11e4-b890-705681abff85"], ["organization_id", "bc89fa28-bfcd-11e4-bbf6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:08.034364"], ["updated_at", "2015-03-01 04:45:08.034364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc891d6a-bfcd-11e4-b36b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc89fa28-bfcd-11e4-bbf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc891d6a-bfcd-11e4-b36b-705681abff85"], ["organization_id", "bc89fa28-bfcd-11e4-bbf6-705681abff85"], ["created_at", "2015-03-01 04:45:08.038076"], ["updated_at", "2015-03-01 04:45:08.038076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:45:08 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$9vpw4joFtjvc8ewYeqh6XuEGD7LjI7SWuLHa0myxZMI6U4IxlqYhe"], ["created_at", "2015-03-01 04:45:08.053586"], ["updated_at", "2015-03-01 04:45:08.053586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$jaUvjcOUHs/5pJLSYT82zuWims7lZBQCOIwz69pCJW2l52WgCYZoW"], ["created_at", "2015-03-01 04:45:08.058196"], ["updated_at", "2015-03-01 04:45:08.058196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:08.059791"], ["user_id", "bc8d6e9c-bfcd-11e4-a955-705681abff85"], ["created_at", "2015-03-01 04:45:08.060622"], ["updated_at", "2015-03-01 04:45:08.060622"], ["token", "99E9IjVUumQgfHWh8oT065jiY3_e6TZ_PgqhWM0wIFk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:08.064228"], ["updated_at", "2015-03-01 04:45:08.064228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8d6e9c-bfcd-11e4-a955-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc8f0a54-bfcd-11e4-92bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc8d6e9c-bfcd-11e4-a955-705681abff85"], ["organization_id", "bc8f0a54-bfcd-11e4-92bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:08.067721"], ["updated_at", "2015-03-01 04:45:08.067721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8e1cac-bfcd-11e4-8cd7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc8f0a54-bfcd-11e4-92bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc8e1cac-bfcd-11e4-8cd7-705681abff85"], ["organization_id", "bc8f0a54-bfcd-11e4-92bd-705681abff85"], ["created_at", "2015-03-01 04:45:08.071236"], ["updated_at", "2015-03-01 04:45:08.071236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:45:08 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$9KJuF/PAOD5mrp2Jpg6RxO2OljBe6yrY7W7BPZ2DpPgOPowTH1WwK"], ["created_at", "2015-03-01 04:45:08.083545"], ["updated_at", "2015-03-01 04:45:08.083545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$s5nSfaFnyPBWsJjI7GSwreGmn.Olfp7nzGQ4w93dasjMTp6IodacW"], ["created_at", "2015-03-01 04:45:08.087754"], ["updated_at", "2015-03-01 04:45:08.087754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:08.089533"], ["user_id", "bc91fc82-bfcd-11e4-842a-705681abff85"], ["created_at", "2015-03-01 04:45:08.090450"], ["updated_at", "2015-03-01 04:45:08.090450"], ["token", "2f6jhwGU47HqBuQuPPOrPl4PxLSSUwPuAa7PuOEU6Q0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:08.094367"], ["updated_at", "2015-03-01 04:45:08.094367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc91fc82-bfcd-11e4-842a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc93a0dc-bfcd-11e4-b829-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc91fc82-bfcd-11e4-842a-705681abff85"], ["organization_id", "bc93a0dc-bfcd-11e4-b829-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:08.097635"], ["updated_at", "2015-03-01 04:45:08.097635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc929da4-bfcd-11e4-b2b9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc93a0dc-bfcd-11e4-b829-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc929da4-bfcd-11e4-b2b9-705681abff85"], ["organization_id", "bc93a0dc-bfcd-11e4-b829-705681abff85"], ["created_at", "2015-03-01 04:45:08.100722"], ["updated_at", "2015-03-01 04:45:08.100722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/bc942142-bfcd-11e4-8b1c-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:45:08 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"bc942142-bfcd-11e4-8b1c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:08.106974' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2f6jhwGU47HqBuQuPPOrPl4PxLSSUwPuAa7PuOEU6Q0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:08.108699"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:08.109722"], ["id", "bc931f9a-bfcd-11e4-b057-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc91fc82-bfcd-11e4-842a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc91fc82-bfcd-11e4-842a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc91fc82-bfcd-11e4-842a-705681abff85' LIMIT 1 [["organization_id", "bc93a0dc-bfcd-11e4-b829-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bc93a0dc-bfcd-11e4-b829-705681abff85"], ["id", "bc942142-bfcd-11e4-8b1c-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc91fc82-bfcd-11e4-842a-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$wXarO14TrQ7954c9nuyOQeoy1mp0V8mmMnwflCGKy0AA58YaTPYX2"], ["created_at", "2015-03-01 04:45:08.124029"], ["updated_at", "2015-03-01 04:45:08.124029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Ce0MB.Icpnxqi/7.cucGnePxUDIz6W7pil/YorFSwtUVDpSJVD5iW"], ["created_at", "2015-03-01 04:45:08.128956"], ["updated_at", "2015-03-01 04:45:08.128956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:08.130639"], ["user_id", "bc982b70-bfcd-11e4-9780-705681abff85"], ["created_at", "2015-03-01 04:45:08.131488"], ["updated_at", "2015-03-01 04:45:08.131488"], ["token", "8TM_MeRQASBvILWNIvLXC3xgCJcczQD4ExTznVBAGDs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:08.134934"], ["updated_at", "2015-03-01 04:45:08.134934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc982b70-bfcd-11e4-9780-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc99d51a-bfcd-11e4-a382-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc982b70-bfcd-11e4-9780-705681abff85"], ["organization_id", "bc99d51a-bfcd-11e4-a382-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:08.138664"], ["updated_at", "2015-03-01 04:45:08.138664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc98eb00-bfcd-11e4-8471-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc99d51a-bfcd-11e4-a382-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc98eb00-bfcd-11e4-8471-705681abff85"], ["organization_id", "bc99d51a-bfcd-11e4-a382-705681abff85"], ["created_at", "2015-03-01 04:45:08.142273"], ["updated_at", "2015-03-01 04:45:08.142273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/bc9b01ce-bfcd-11e4-8224-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:45:08 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"bc9b01ce-bfcd-11e4-8224-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:08.155032' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8TM_MeRQASBvILWNIvLXC3xgCJcczQD4ExTznVBAGDs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:08.157324"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:08.159311"], ["id", "bc9954f0-bfcd-11e4-bd0d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc982b70-bfcd-11e4-9780-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc982b70-bfcd-11e4-9780-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc982b70-bfcd-11e4-9780-705681abff85' LIMIT 1 [["organization_id", "bc99d51a-bfcd-11e4-a382-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bc99d51a-bfcd-11e4-a382-705681abff85"], ["id", "bc9b01ce-bfcd-11e4-8224-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc98eb00-bfcd-11e4-8471-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "bc9b01ce-bfcd-11e4-8224-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$l77wYgMDFlD2XgAyQg/l/u1YEyMwSarb9A8tq9Rn.YJJFKK7NL56i"], ["created_at", "2015-03-01 04:45:08.175510"], ["updated_at", "2015-03-01 04:45:08.175510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$VAknzj55F3.IfGID.3Z66Of8GgWSeS/w2Bg.l6lGg7YWtqDsbn7g."], ["created_at", "2015-03-01 04:45:08.179804"], ["updated_at", "2015-03-01 04:45:08.179804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:08.181412"], ["user_id", "bca0044e-bfcd-11e4-a6b8-705681abff85"], ["created_at", "2015-03-01 04:45:08.182220"], ["updated_at", "2015-03-01 04:45:08.182220"], ["token", "daKfYP7nZhmkuPBbafwY1geGIarq6uG97LZUHHBy_Zg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:08.186085"], ["updated_at", "2015-03-01 04:45:08.186085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca0044e-bfcd-11e4-a6b8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca1a416-bfcd-11e4-b406-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca0044e-bfcd-11e4-a6b8-705681abff85"], ["organization_id", "bca1a416-bfcd-11e4-b406-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:08.189707"], ["updated_at", "2015-03-01 04:45:08.189707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca0ac96-bfcd-11e4-ac69-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca1a416-bfcd-11e4-b406-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bca0ac96-bfcd-11e4-ac69-705681abff85"], ["organization_id", "bca1a416-bfcd-11e4-b406-705681abff85"], ["created_at", "2015-03-01 04:45:08.192840"], ["updated_at", "2015-03-01 04:45:08.192840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:45:08 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$GWoMOZ9cpaEHbF7o7xfIq.dOzL1fRrYTde07nJPDuCbMi1911/wGe"], ["created_at", "2015-03-01 04:45:08.204664"], ["updated_at", "2015-03-01 04:45:08.204664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$EjC2FYTkev5pDKHb1Q8e2ebe7wEGdkMo1rimU7jvEUOhx.H5ei/eq"], ["created_at", "2015-03-01 04:45:08.209502"], ["updated_at", "2015-03-01 04:45:08.209502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:08.211132"], ["user_id", "bca4798e-bfcd-11e4-9e06-705681abff85"], ["created_at", "2015-03-01 04:45:08.211942"], ["updated_at", "2015-03-01 04:45:08.211942"], ["token", "uaFaJaPjmGcYC-sfJWTqnrfPXOilHrhwRBnZxVwNDjI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:08.215207"], ["updated_at", "2015-03-01 04:45:08.215207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca4798e-bfcd-11e4-9e06-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca610b4-bfcd-11e4-83e9-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca4798e-bfcd-11e4-9e06-705681abff85"], ["organization_id", "bca610b4-bfcd-11e4-83e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:08.218406"], ["updated_at", "2015-03-01 04:45:08.218406"]]  (3.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca53432-bfcd-11e4-98ed-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca610b4-bfcd-11e4-83e9-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bca53432-bfcd-11e4-98ed-705681abff85"], ["organization_id", "bca610b4-bfcd-11e4-83e9-705681abff85"], ["created_at", "2015-03-01 04:45:08.253569"], ["updated_at", "2015-03-01 04:45:08.253569"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/bca69f98-bfcd-11e4-96e3-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:45:08 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"bca69f98-bfcd-11e4-96e3-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:08.264590' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uaFaJaPjmGcYC-sfJWTqnrfPXOilHrhwRBnZxVwNDjI"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:08.267330"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:08.269954"], ["id", "bca599e0-bfcd-11e4-8d6c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bca4798e-bfcd-11e4-9e06-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bca4798e-bfcd-11e4-9e06-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bca4798e-bfcd-11e4-9e06-705681abff85' LIMIT 1 [["organization_id", "bca610b4-bfcd-11e4-83e9-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bca610b4-bfcd-11e4-83e9-705681abff85"], ["id", "bca69f98-bfcd-11e4-96e3-705681abff85"]] CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bca4798e-bfcd-11e4-9e06-705681abff85"]] Completed 500 Internal Server Error in 22ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$lzl2ptjXNxzjrIHiWnP93edZcgM0JLJ..rSPb/kzEjA2NtI.cy0VO"], ["created_at", "2015-03-01 04:45:08.297878"], ["updated_at", "2015-03-01 04:45:08.297878"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$BIH6xWgNdeZ4o9f6KMN10.78lHQWlXpMIn4r0bLx9iiPrNt581/ce"], ["created_at", "2015-03-01 04:45:08.305638"], ["updated_at", "2015-03-01 04:45:08.305638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:08.307538"], ["user_id", "bcb2d18c-bfcd-11e4-91ce-705681abff85"], ["created_at", "2015-03-01 04:45:08.308423"], ["updated_at", "2015-03-01 04:45:08.308423"], ["token", "3CuEOPq3ZM__DXzTgCEk1Yr9-EgLAzP5VDPZ5OFWVtQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:08.312475"], ["updated_at", "2015-03-01 04:45:08.312475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcb2d18c-bfcd-11e4-91ce-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcb510d2-bfcd-11e4-bd02-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcb2d18c-bfcd-11e4-91ce-705681abff85"], ["organization_id", "bcb510d2-bfcd-11e4-bd02-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:08.317579"], ["updated_at", "2015-03-01 04:45:08.317579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcb3e3ce-bfcd-11e4-af65-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcb510d2-bfcd-11e4-bd02-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcb3e3ce-bfcd-11e4-af65-705681abff85"], ["organization_id", "bcb510d2-bfcd-11e4-bd02-705681abff85"], ["created_at", "2015-03-01 04:45:08.320920"], ["updated_at", "2015-03-01 04:45:08.320920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/bcb63714-bfcd-11e4-919d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:45:08 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"bcb63714-bfcd-11e4-919d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:08.326668' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3CuEOPq3ZM__DXzTgCEk1Yr9-EgLAzP5VDPZ5OFWVtQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:08.328276"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:08.329345"], ["id", "bcb4576e-bfcd-11e4-9127-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcb2d18c-bfcd-11e4-91ce-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bcb2d18c-bfcd-11e4-91ce-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcb2d18c-bfcd-11e4-91ce-705681abff85' LIMIT 1 [["organization_id", "bcb510d2-bfcd-11e4-bd02-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bcb510d2-bfcd-11e4-bd02-705681abff85"], ["id", "bcb63714-bfcd-11e4-919d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcb3e3ce-bfcd-11e4-af65-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bcb510d2-bfcd-11e4-bd02-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcb3e3ce-bfcd-11e4-af65-705681abff85' AND "clubhouse_memberships"."id" != 'bcb63714-bfcd-11e4-919d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcb510d2-bfcd-11e4-bd02-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:45:08.341050"], ["id", "bcb63714-bfcd-11e4-919d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.3ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (13.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$yPseUlwDYxOyiyIKcYpET.Aqe6PkNTXWIG0JQn8f4iYo6IOxy3wGu"], ["created_at", "2015-03-01 04:45:08.355757"], ["updated_at", "2015-03-01 04:45:08.355757"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$du0iNruEQ/4NGASor2s4cu/MC0LCr0.dCC.ielfWnzdhV0tKQny.."], ["created_at", "2015-03-01 04:45:08.377821"], ["updated_at", "2015-03-01 04:45:08.377821"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:45:08.390737"], ["user_id", "bcbbbab8-bfcd-11e4-a4cd-705681abff85"], ["created_at", "2015-03-01 04:45:08.391645"], ["updated_at", "2015-03-01 04:45:08.391645"], ["token", "ehdTJ1ACtexS5UOeMOlVxRo1P6L2mPyVBW5CjhULn-I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:45:08.395925"], ["updated_at", "2015-03-01 04:45:08.395925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcbbbab8-bfcd-11e4-a4cd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc1a5fe-bfcd-11e4-a07f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcbbbab8-bfcd-11e4-a4cd-705681abff85"], ["organization_id", "bcc1a5fe-bfcd-11e4-a07f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:45:08.399781"], ["updated_at", "2015-03-01 04:45:08.399781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc0434e-bfcd-11e4-b2fd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc1a5fe-bfcd-11e4-a07f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcc0434e-bfcd-11e4-b2fd-705681abff85"], ["organization_id", "bcc1a5fe-bfcd-11e4-a07f-705681abff85"], ["created_at", "2015-03-01 04:45:08.403115"], ["updated_at", "2015-03-01 04:45:08.403115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:45:08 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:45:08.410641' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ehdTJ1ACtexS5UOeMOlVxRo1P6L2mPyVBW5CjhULn-I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:45:08.412495"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:45:08.413658"], ["id", "bcc1149a-bfcd-11e4-9290-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcbbbab8-bfcd-11e4-a4cd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bcbbbab8-bfcd-11e4-a4cd-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bcbbbab8-bfcd-11e4-a4cd-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "bcbbbab8-bfcd-11e4-a4cd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bcc1a5fe-bfcd-11e4-a07f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcbbbab8-bfcd-11e4-a4cd-705681abff85"]] Completed 200 OK in 13ms (Views: 3.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (12.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$aDiEhM1eS4okRikgyM6fX.BUH7D1B9wrh5LjQyfVlWWcl7h62H0yy"], ["created_at", "2015-03-01 04:52:31.418137"], ["updated_at", "2015-03-01 04:52:31.418137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$WRlArY9eCJUaxJ/.1kuyt.jGoN7Ln5RLtNWs3sVyqLfm.P0FzlKRO"], ["created_at", "2015-03-01 04:52:31.436052"], ["updated_at", "2015-03-01 04:52:31.436052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.444176"], ["user_id", "c4d1a72a-bfce-11e4-a610-705681abff85"], ["created_at", "2015-03-01 04:52:31.450716"], ["updated_at", "2015-03-01 04:52:31.450716"], ["token", "8KrM6Le_cYSfPOnU6MFm6b7NucRNIhaspz85njEi_2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.495390"], ["updated_at", "2015-03-01 04:52:31.495390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4d1a72a-bfce-11e4-a610-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4dd5282-bfce-11e4-9d75-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4d1a72a-bfce-11e4-a610-705681abff85"], ["organization_id", "c4dd5282-bfce-11e4-9d75-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.506862"], ["updated_at", "2015-03-01 04:52:31.506862"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4d435c6-bfce-11e4-8574-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4dd5282-bfce-11e4-9d75-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c4d435c6-bfce-11e4-8574-705681abff85"], ["organization_id", "c4dd5282-bfce-11e4-9d75-705681abff85"], ["created_at", "2015-03-01 04:52:31.510850"], ["updated_at", "2015-03-01 04:52:31.510850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:52:31 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$tuz9gf8a7f5JMYmPsIkiVuN8fnksoV21XZjMApOLuPJ5cYMmrTxCS"], ["created_at", "2015-03-01 04:52:31.545244"], ["updated_at", "2015-03-01 04:52:31.545244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$4EO8TWZqNRTj8gV1m3pPI.lEjuBSa8Zr97gL0POTz1R3ipAmzFKFq"], ["created_at", "2015-03-01 04:52:31.550364"], ["updated_at", "2015-03-01 04:52:31.550364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.551959"], ["user_id", "c4e4e47a-bfce-11e4-950b-705681abff85"], ["created_at", "2015-03-01 04:52:31.552749"], ["updated_at", "2015-03-01 04:52:31.552749"], ["token", "J7L7EcrAw2eq2gObntPRK5fLyeVVicTHCprINshUNNo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.556014"], ["updated_at", "2015-03-01 04:52:31.556014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4e4e47a-bfce-11e4-950b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4e68280-bfce-11e4-8e59-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4e4e47a-bfce-11e4-950b-705681abff85"], ["organization_id", "c4e68280-bfce-11e4-8e59-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.559310"], ["updated_at", "2015-03-01 04:52:31.559310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4e5a63a-bfce-11e4-b7e7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4e68280-bfce-11e4-8e59-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c4e5a63a-bfce-11e4-b7e7-705681abff85"], ["organization_id", "c4e68280-bfce-11e4-8e59-705681abff85"], ["created_at", "2015-03-01 04:52:31.562533"], ["updated_at", "2015-03-01 04:52:31.562533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/c4e78022-bfce-11e4-a56e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:52:31 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"c4e78022-bfce-11e4-a56e-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:52:31.567181' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "J7L7EcrAw2eq2gObntPRK5fLyeVVicTHCprINshUNNo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:52:31.575989"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:52:31.577494"], ["id", "c4e60a58-bfce-11e4-bde7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4e4e47a-bfce-11e4-950b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c4e4e47a-bfce-11e4-950b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c4e4e47a-bfce-11e4-950b-705681abff85' LIMIT 1 [["organization_id", "c4e68280-bfce-11e4-8e59-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "c4e68280-bfce-11e4-8e59-705681abff85"], ["id", "c4e78022-bfce-11e4-a56e-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4e5a63a-bfce-11e4-b7e7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c4e68280-bfce-11e4-8e59-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4e5a63a-bfce-11e4-b7e7-705681abff85' AND "clubhouse_memberships"."id" != 'c4e78022-bfce-11e4-a56e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4e68280-bfce-11e4-8e59-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:52:31.608284"], ["id", "c4e78022-bfce-11e4-a56e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 47ms (Views: 4.2ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$eMhRlpm581Yzr485A80VpuFnIMzQomt72dzLUhfJ0/5TsaYG4sIxm"], ["created_at", "2015-03-01 04:52:31.621866"], ["updated_at", "2015-03-01 04:52:31.621866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$BfSqh5P/GOcA7uLASZLI2eZGs.nhdbw/n71EXH.AusH.Lef6giA3G"], ["created_at", "2015-03-01 04:52:31.626201"], ["updated_at", "2015-03-01 04:52:31.626201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.628233"], ["user_id", "c4f09356-bfce-11e4-b677-705681abff85"], ["created_at", "2015-03-01 04:52:31.629038"], ["updated_at", "2015-03-01 04:52:31.629038"], ["token", "pT1P5eos9sDU1uQc1KPpZxwZaXSTuKvOvIAio-AaQmI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.632924"], ["updated_at", "2015-03-01 04:52:31.632924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4f09356-bfce-11e4-b677-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4f240b6-bfce-11e4-8d93-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4f09356-bfce-11e4-b677-705681abff85"], ["organization_id", "c4f240b6-bfce-11e4-8d93-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.636434"], ["updated_at", "2015-03-01 04:52:31.636434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4f13d9c-bfce-11e4-9d7b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4f240b6-bfce-11e4-8d93-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c4f13d9c-bfce-11e4-9d7b-705681abff85"], ["organization_id", "c4f240b6-bfce-11e4-8d93-705681abff85"], ["created_at", "2015-03-01 04:52:31.639833"], ["updated_at", "2015-03-01 04:52:31.639833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/c4f2c73e-bfce-11e4-a462-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:52:31 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"c4f2c73e-bfce-11e4-a462-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:52:31.646367' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pT1P5eos9sDU1uQc1KPpZxwZaXSTuKvOvIAio-AaQmI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:52:31.647927"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:52:31.649062"], ["id", "c4f1b524-bfce-11e4-b32e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4f09356-bfce-11e4-b677-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c4f09356-bfce-11e4-b677-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c4f09356-bfce-11e4-b677-705681abff85' LIMIT 1 [["organization_id", "c4f240b6-bfce-11e4-8d93-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "c4f240b6-bfce-11e4-8d93-705681abff85"], ["id", "c4f2c73e-bfce-11e4-a462-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4f09356-bfce-11e4-b677-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$lxex9jnqO/iHEvgOJ5CYcO4INy1jBgK5YK9ceQ13LhO6k5p8TLATC"], ["created_at", "2015-03-01 04:52:31.662413"], ["updated_at", "2015-03-01 04:52:31.662413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$rG5rU71OGjVXLbiSB4kJSOA1BCB0pxL1IfH07wqliSA7Q8Mqck0VW"], ["created_at", "2015-03-01 04:52:31.666715"], ["updated_at", "2015-03-01 04:52:31.666715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.668241"], ["user_id", "c4f6c302-bfce-11e4-b856-705681abff85"], ["created_at", "2015-03-01 04:52:31.669019"], ["updated_at", "2015-03-01 04:52:31.669019"], ["token", "msdLXOjyElLG8utKkiLRngCssdSp5-HZlZZoJPCkwzU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.672302"], ["updated_at", "2015-03-01 04:52:31.672302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4f6c302-bfce-11e4-b856-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4f84010-bfce-11e4-b301-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4f6c302-bfce-11e4-b856-705681abff85"], ["organization_id", "c4f84010-bfce-11e4-b301-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.675588"], ["updated_at", "2015-03-01 04:52:31.675588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4f764ce-bfce-11e4-88d3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4f84010-bfce-11e4-b301-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c4f764ce-bfce-11e4-88d3-705681abff85"], ["organization_id", "c4f84010-bfce-11e4-b301-705681abff85"], ["created_at", "2015-03-01 04:52:31.679179"], ["updated_at", "2015-03-01 04:52:31.679179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:52:31 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:52:31.684416' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "msdLXOjyElLG8utKkiLRngCssdSp5-HZlZZoJPCkwzU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:52:31.686115"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:52:31.687105"], ["id", "c4f7c658-bfce-11e4-bbfc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4f6c302-bfce-11e4-b856-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c4f6c302-bfce-11e4-b856-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c4f6c302-bfce-11e4-b856-705681abff85' LIMIT 1 [["organization_id", "c4f84010-bfce-11e4-b301-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "c4f84010-bfce-11e4-b301-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c4f84010-bfce-11e4-b301-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4f6c302-bfce-11e4-b856-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c4f84010-bfce-11e4-b301-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4f764ce-bfce-11e4-88d3-705681abff85"]] Completed 200 OK in 14ms (Views: 5.3ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$HfeBfgk58W5qIybPdTA02Og/xS1W9SI0BelJScNUMJvEO0t9JoXMW"], ["created_at", "2015-03-01 04:52:31.704484"], ["updated_at", "2015-03-01 04:52:31.704484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$fxNXawvJmqYSnAs6tkGSbO94uSd9BCNK6Hlw6.ttdoJ/ahZym3fO6"], ["created_at", "2015-03-01 04:52:31.708563"], ["updated_at", "2015-03-01 04:52:31.708563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.710305"], ["user_id", "c4fd29b8-bfce-11e4-9885-705681abff85"], ["created_at", "2015-03-01 04:52:31.711190"], ["updated_at", "2015-03-01 04:52:31.711190"], ["token", "fckoSNUyaUyIoqBzAbZjulWGR_MUWTue1IAckgsNAEg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.715270"], ["updated_at", "2015-03-01 04:52:31.715270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4fd29b8-bfce-11e4-9885-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4fed4f2-bfce-11e4-88ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4fd29b8-bfce-11e4-9885-705681abff85"], ["organization_id", "c4fed4f2-bfce-11e4-88ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.718927"], ["updated_at", "2015-03-01 04:52:31.718927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4fdc76a-bfce-11e4-b6e5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4fed4f2-bfce-11e4-88ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c4fdc76a-bfce-11e4-b6e5-705681abff85"], ["organization_id", "c4fed4f2-bfce-11e4-88ac-705681abff85"], ["created_at", "2015-03-01 04:52:31.722345"], ["updated_at", "2015-03-01 04:52:31.722345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:52:31 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$X18PZWfSd6n8ddqbwSuNIOmeL3POR54XOtYN0amtv0L1/GUiKbBqa"], ["created_at", "2015-03-01 04:52:31.735529"], ["updated_at", "2015-03-01 04:52:31.735529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$8z83erq/jlGuBQRF2TGMHOokCaiF3/g/JMTXMPoTpEUaU9Pfo1mOi"], ["created_at", "2015-03-01 04:52:31.741743"], ["updated_at", "2015-03-01 04:52:31.741743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.745863"], ["user_id", "c501f0ec-bfce-11e4-acb3-705681abff85"], ["created_at", "2015-03-01 04:52:31.746705"], ["updated_at", "2015-03-01 04:52:31.746705"], ["token", "cnGjgnJN-ExjeTN0QuuU19NWwAnqA8Di8CXUFaotR1s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.750237"], ["updated_at", "2015-03-01 04:52:31.750237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c501f0ec-bfce-11e4-acb3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c504272c-bfce-11e4-a8bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c501f0ec-bfce-11e4-acb3-705681abff85"], ["organization_id", "c504272c-bfce-11e4-a8bc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.754452"], ["updated_at", "2015-03-01 04:52:31.754452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c502f406-bfce-11e4-9435-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c504272c-bfce-11e4-a8bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c502f406-bfce-11e4-9435-705681abff85"], ["organization_id", "c504272c-bfce-11e4-a8bc-705681abff85"], ["created_at", "2015-03-01 04:52:31.757705"], ["updated_at", "2015-03-01 04:52:31.757705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/c504cc9a-bfce-11e4-a475-705681abff85" for 127.0.0.1 at 2015-02-28 20:52:31 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"c504cc9a-bfce-11e4-a475-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:52:31.762750' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cnGjgnJN-ExjeTN0QuuU19NWwAnqA8Di8CXUFaotR1s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:52:31.764289"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:52:31.765579"], ["id", "c503a996-bfce-11e4-9109-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c501f0ec-bfce-11e4-acb3-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c501f0ec-bfce-11e4-acb3-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c501f0ec-bfce-11e4-acb3-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "c501f0ec-bfce-11e4-acb3-705681abff85"], ["id", "c504cc9a-bfce-11e4-a475-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c504272c-bfce-11e4-a8bc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c501f0ec-bfce-11e4-acb3-705681abff85"]] Completed 200 OK in 11ms (Views: 2.0ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$2cNGAkRd8CBMdQByaDsdlOotsDLARTlATdmfomqAEH.w14lkpnWLC"], ["created_at", "2015-03-01 04:52:31.780284"], ["updated_at", "2015-03-01 04:52:31.780284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$/2tciLMTNYlPNcmV3.C3n.sLhU2GpEg0C4elw9ftNuUWpuT4epePG"], ["created_at", "2015-03-01 04:52:31.784714"], ["updated_at", "2015-03-01 04:52:31.784714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.786336"], ["user_id", "c508c02a-bfce-11e4-b52e-705681abff85"], ["created_at", "2015-03-01 04:52:31.787257"], ["updated_at", "2015-03-01 04:52:31.787257"], ["token", "6XfXYmR3trDdGaYVVtkaEVhy896LrjhwihGlOI6q-y4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.790725"], ["updated_at", "2015-03-01 04:52:31.790725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c508c02a-bfce-11e4-b52e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c50a5354-bfce-11e4-b008-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c508c02a-bfce-11e4-b52e-705681abff85"], ["organization_id", "c50a5354-bfce-11e4-b008-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.794123"], ["updated_at", "2015-03-01 04:52:31.794123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c509664c-bfce-11e4-8675-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c50a5354-bfce-11e4-b008-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c509664c-bfce-11e4-8675-705681abff85"], ["organization_id", "c50a5354-bfce-11e4-b008-705681abff85"], ["created_at", "2015-03-01 04:52:31.797690"], ["updated_at", "2015-03-01 04:52:31.797690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$nqEoAhdQhPkhQDwR8pLEyO9AQcKbtYj.wWLkR/nsngaqpvkSQBJIO"], ["created_at", "2015-03-01 04:52:31.802715"], ["updated_at", "2015-03-01 04:52:31.802715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'c50a5354-bfce-11e4-b008-705681abff85') LIMIT 1 SQL (12.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "c50a5354-bfce-11e4-b008-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.814106"], ["updated_at", "2015-03-01 04:52:31.814106"], ["token", "cGtFnHaB_D4mb18SsGpC9drO2wge2pNGdFxAmfMw05I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 20:52:31 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$NG6kFiaT3Qyz2EIi5Z/fX.1nmbnDq8RerF/Kd.D1hFv/Gzi.YgFfO"], ["created_at", "2015-03-01 04:52:31.837763"], ["updated_at", "2015-03-01 04:52:31.837763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$T19t8s2zH2Mjsk/SAjCNR.C.inC70ZaiZ99qyBe/57ABJivtUUFje"], ["created_at", "2015-03-01 04:52:31.844656"], ["updated_at", "2015-03-01 04:52:31.844656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.853958"], ["user_id", "c5118480-bfce-11e4-9144-705681abff85"], ["created_at", "2015-03-01 04:52:31.854778"], ["updated_at", "2015-03-01 04:52:31.854778"], ["token", "2bj5Ig4v8QkjUS14mZFj256V-vwJygt7cosTY-kqcB0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.858203"], ["updated_at", "2015-03-01 04:52:31.858203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5118480-bfce-11e4-9144-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5149cd8-bfce-11e4-ac7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5118480-bfce-11e4-9144-705681abff85"], ["organization_id", "c5149cd8-bfce-11e4-ac7d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.861406"], ["updated_at", "2015-03-01 04:52:31.861406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c513ad64-bfce-11e4-9c79-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5149cd8-bfce-11e4-ac7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c513ad64-bfce-11e4-9c79-705681abff85"], ["organization_id", "c5149cd8-bfce-11e4-ac7d-705681abff85"], ["created_at", "2015-03-01 04:52:31.864633"], ["updated_at", "2015-03-01 04:52:31.864633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$4rSmPXPmDPSkzMSHApoTwOyXhaHzBlnVl.9Nt/eL/Ya61nS.cf32."], ["created_at", "2015-03-01 04:52:31.869409"], ["updated_at", "2015-03-01 04:52:31.869409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'c5149cd8-bfce-11e4-ac7d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "c5149cd8-bfce-11e4-ac7d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.873205"], ["updated_at", "2015-03-01 04:52:31.873205"], ["token", "uQ0ns-M16P6QeTYZBE-vBU_o0IptXy2gRxWnMZDmoA4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Vn.pIuqjDK6YzF0oL.UKiOFoW/z7dxWX91Ml8tApNgb51yDJZlnR2"], ["created_at", "2015-03-01 04:52:31.879964"], ["updated_at", "2015-03-01 04:52:31.879964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$qCxwToY5cIHGcv2zVD2EOOwGluS4UjMi2FnxY2/EHVlSdLhmrSLjy"], ["created_at", "2015-03-01 04:52:31.884477"], ["updated_at", "2015-03-01 04:52:31.884477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.886089"], ["user_id", "c517f2e8-bfce-11e4-978e-705681abff85"], ["created_at", "2015-03-01 04:52:31.886869"], ["updated_at", "2015-03-01 04:52:31.886869"], ["token", "M1A4hA5pX4edODqZpepEqBGaNeTfGxeAgKhcrbruQGw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.890382"], ["updated_at", "2015-03-01 04:52:31.890382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c517f2e8-bfce-11e4-978e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5198842-bfce-11e4-b188-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c517f2e8-bfce-11e4-978e-705681abff85"], ["organization_id", "c5198842-bfce-11e4-b188-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.893833"], ["updated_at", "2015-03-01 04:52:31.893833"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c518a044-bfce-11e4-9ec1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5198842-bfce-11e4-b188-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c518a044-bfce-11e4-9ec1-705681abff85"], ["organization_id", "c5198842-bfce-11e4-b188-705681abff85"], ["created_at", "2015-03-01 04:52:31.898031"], ["updated_at", "2015-03-01 04:52:31.898031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$12.73qzNRVKEFc6l884aSucqIAKiPgS0/XxzAgUUls2RLgsdM/bkO"], ["created_at", "2015-03-01 04:52:31.902472"], ["updated_at", "2015-03-01 04:52:31.902472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c5198842-bfce-11e4-b188-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c5198842-bfce-11e4-b188-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.907545"], ["updated_at", "2015-03-01 04:52:31.907545"], ["token", "Oa2eMVAtUtmFBYVw5y89p37KEd8t6GeE1muMo2g_4eg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (3.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$fxtjeaCh.EsKEHLnTyaJhug2VNpkYDNIbHyC6yZVwG0KFYYGs.MEG"], ["created_at", "2015-03-01 04:52:31.915869"], ["updated_at", "2015-03-01 04:52:31.915869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$n5Y09w1saWqo5RogDiYlH.RZoz0xVBqsZ/9Ge4tMIo9u3LClFFjqq"], ["created_at", "2015-03-01 04:52:31.924228"], ["updated_at", "2015-03-01 04:52:31.924228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.925763"], ["user_id", "c51d6f7a-bfce-11e4-8ec8-705681abff85"], ["created_at", "2015-03-01 04:52:31.926531"], ["updated_at", "2015-03-01 04:52:31.926531"], ["token", "M2p7nFFv0oGTHcaFyxUVVcGkJqCBpKqEa4-Ds5YSDos"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.929848"], ["updated_at", "2015-03-01 04:52:31.929848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c51d6f7a-bfce-11e4-8ec8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c51f8c1a-bfce-11e4-b672-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c51d6f7a-bfce-11e4-8ec8-705681abff85"], ["organization_id", "c51f8c1a-bfce-11e4-b672-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.933200"], ["updated_at", "2015-03-01 04:52:31.933200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c51eb1be-bfce-11e4-96c3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c51f8c1a-bfce-11e4-b672-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c51eb1be-bfce-11e4-96c3-705681abff85"], ["organization_id", "c51f8c1a-bfce-11e4-b672-705681abff85"], ["created_at", "2015-03-01 04:52:31.936210"], ["updated_at", "2015-03-01 04:52:31.936210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:52:31 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$MTXhAsMeKFSyl2ksAAJQtuwhcdi7o62OXBW7K5dUzbbX076P8VndO"], ["created_at", "2015-03-01 04:52:31.949773"], ["updated_at", "2015-03-01 04:52:31.949773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$CgToVEEKQtilI0lGSv1x6.v0wN1Q9gbl3oRxpywFqLIJu2NoshT5O"], ["created_at", "2015-03-01 04:52:31.954136"], ["updated_at", "2015-03-01 04:52:31.954136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.956770"], ["user_id", "c5229c48-bfce-11e4-b766-705681abff85"], ["created_at", "2015-03-01 04:52:31.958932"], ["updated_at", "2015-03-01 04:52:31.958932"], ["token", "3-Am0J5YVJlQGQwhJCIwdJUmfN3wVceBj-gGpEPAsqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:31.962732"], ["updated_at", "2015-03-01 04:52:31.962732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5229c48-bfce-11e4-b766-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5249390-bfce-11e4-a455-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5229c48-bfce-11e4-b766-705681abff85"], ["organization_id", "c5249390-bfce-11e4-a455-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:31.966307"], ["updated_at", "2015-03-01 04:52:31.966307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c52341b6-bfce-11e4-8647-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5249390-bfce-11e4-a455-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c52341b6-bfce-11e4-8647-705681abff85"], ["organization_id", "c5249390-bfce-11e4-a455-705681abff85"], ["created_at", "2015-03-01 04:52:31.969468"], ["updated_at", "2015-03-01 04:52:31.969468"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/c525966e-bfce-11e4-a5b8-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:52:31 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"c525966e-bfce-11e4-a5b8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:52:31.975056' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3-Am0J5YVJlQGQwhJCIwdJUmfN3wVceBj-gGpEPAsqM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:52:31.976850"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:52:31.977897"], ["id", "c5240c0e-bfce-11e4-9a06-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5229c48-bfce-11e4-b766-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5229c48-bfce-11e4-b766-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c5229c48-bfce-11e4-b766-705681abff85' LIMIT 1 [["organization_id", "c5249390-bfce-11e4-a455-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "c5249390-bfce-11e4-a455-705681abff85"], ["id", "c525966e-bfce-11e4-a5b8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c52341b6-bfce-11e4-8647-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "c525966e-bfce-11e4-a5b8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$C9PoftqPdO50C/mlvmMsre3ZJkVmGA20Kq3Xvwnp2u.A2YeFsKDqq"], ["created_at", "2015-03-01 04:52:31.993112"], ["updated_at", "2015-03-01 04:52:31.993112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$b.AChlWr7pPvXGaTS1zNSuO8ZcT7kIxBsah8/BnXaHpQTAsEjMT.q"], ["created_at", "2015-03-01 04:52:31.997731"], ["updated_at", "2015-03-01 04:52:31.997731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:31.999497"], ["user_id", "c5293698-bfce-11e4-ac73-705681abff85"], ["created_at", "2015-03-01 04:52:32.000326"], ["updated_at", "2015-03-01 04:52:32.000326"], ["token", "BFgWuM3j6mrOXa06VeXBEjDDwl-gCRrvwqjP1suZJ7k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:32.004085"], ["updated_at", "2015-03-01 04:52:32.004085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5293698-bfce-11e4-ac73-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c52ae0ba-bfce-11e4-ac2d-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5293698-bfce-11e4-ac73-705681abff85"], ["organization_id", "c52ae0ba-bfce-11e4-ac2d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:32.007415"], ["updated_at", "2015-03-01 04:52:32.007415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c529eb74-bfce-11e4-a663-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c52ae0ba-bfce-11e4-ac2d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c529eb74-bfce-11e4-a663-705681abff85"], ["organization_id", "c52ae0ba-bfce-11e4-ac2d-705681abff85"], ["created_at", "2015-03-01 04:52:32.012742"], ["updated_at", "2015-03-01 04:52:32.012742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/c52b61f2-bfce-11e4-87b3-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:52:32 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"c52b61f2-bfce-11e4-87b3-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:52:32.017594' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BFgWuM3j6mrOXa06VeXBEjDDwl-gCRrvwqjP1suZJ7k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:52:32.019211"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:52:32.020168"], ["id", "c52a5c80-bfce-11e4-9f6b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5293698-bfce-11e4-ac73-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5293698-bfce-11e4-ac73-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c5293698-bfce-11e4-ac73-705681abff85' LIMIT 1 [["organization_id", "c52ae0ba-bfce-11e4-ac2d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "c52ae0ba-bfce-11e4-ac2d-705681abff85"], ["id", "c52b61f2-bfce-11e4-87b3-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5293698-bfce-11e4-ac73-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$hkNMqDbIM7xouA/TNaV7jecMUbieBhIjJwZWvXM5G7yMERZF31pyO"], ["created_at", "2015-03-01 04:52:32.034584"], ["updated_at", "2015-03-01 04:52:32.034584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$UOC1WLyYpQ0L1poPaHNSv.xrUDq1AytgL4arxeTK2hjz/Sz2aKaFC"], ["created_at", "2015-03-01 04:52:32.039128"], ["updated_at", "2015-03-01 04:52:32.039128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:32.040740"], ["user_id", "c52f8c6e-bfce-11e4-a7e1-705681abff85"], ["created_at", "2015-03-01 04:52:32.041629"], ["updated_at", "2015-03-01 04:52:32.041629"], ["token", "KPgSZqCLs0CrNCTd6fGr2tlHVeEI4J0Gpxra5kBEV64"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:32.044963"], ["updated_at", "2015-03-01 04:52:32.044963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c52f8c6e-bfce-11e4-a7e1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5311d18-bfce-11e4-a2e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c52f8c6e-bfce-11e4-a7e1-705681abff85"], ["organization_id", "c5311d18-bfce-11e4-a2e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:32.048450"], ["updated_at", "2015-03-01 04:52:32.048450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5303b3c-bfce-11e4-b9d9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5311d18-bfce-11e4-a2e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5303b3c-bfce-11e4-b9d9-705681abff85"], ["organization_id", "c5311d18-bfce-11e4-a2e3-705681abff85"], ["created_at", "2015-03-01 04:52:32.051527"], ["updated_at", "2015-03-01 04:52:32.051527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:52:32 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:52:32.057094' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KPgSZqCLs0CrNCTd6fGr2tlHVeEI4J0Gpxra5kBEV64"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:52:32.058768"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:52:32.060160"], ["id", "c530a3a6-bfce-11e4-a389-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c52f8c6e-bfce-11e4-a7e1-705681abff85"]] Clubhouse::Organization Load (0.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c52f8c6e-bfce-11e4-a7e1-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c52f8c6e-bfce-11e4-a7e1-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c52f8c6e-bfce-11e4-a7e1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c5311d18-bfce-11e4-a2e3-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c52f8c6e-bfce-11e4-a7e1-705681abff85"]] Completed 200 OK in 15ms (Views: 3.6ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$7i02UApdhdRkn3SZiQM26uBJDNI8KtH.KHhc/4WzonXAeihVqwe4y"], ["created_at", "2015-03-01 04:52:32.077458"], ["updated_at", "2015-03-01 04:52:32.077458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$2uyCM50kwrnJfduZZI2zA.0Qp/LeNMHqc7ePArqIvbrCpcRaVSagK"], ["created_at", "2015-03-01 04:52:32.081743"], ["updated_at", "2015-03-01 04:52:32.081743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:32.083377"], ["user_id", "c5361548-bfce-11e4-8eb3-705681abff85"], ["created_at", "2015-03-01 04:52:32.084130"], ["updated_at", "2015-03-01 04:52:32.084130"], ["token", "4KaS4tTlc0kmvk_W2sRIsQOkyhMsxlu0SJCyXtPW9lg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:32.087412"], ["updated_at", "2015-03-01 04:52:32.087412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5361548-bfce-11e4-8eb3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c53797ce-bfce-11e4-9f61-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5361548-bfce-11e4-8eb3-705681abff85"], ["organization_id", "c53797ce-bfce-11e4-9f61-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:32.091783"], ["updated_at", "2015-03-01 04:52:32.091783"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c536b9c6-bfce-11e4-b882-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c53797ce-bfce-11e4-9f61-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c536b9c6-bfce-11e4-b882-705681abff85"], ["organization_id", "c53797ce-bfce-11e4-9f61-705681abff85"], ["created_at", "2015-03-01 04:52:32.095848"], ["updated_at", "2015-03-01 04:52:32.095848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:52:32 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$26cgP/FtonTThMuPc8BySOxnDB96M2aNuFbQzWDspTiq.yfoQ8WPe"], ["created_at", "2015-03-01 04:52:32.111190"], ["updated_at", "2015-03-01 04:52:32.111190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$PtM9rP8IJwK16ACzhnvLN.csI6l5P595WDgZFqOpDc8/dB.QYG9pK"], ["created_at", "2015-03-01 04:52:32.115713"], ["updated_at", "2015-03-01 04:52:32.115713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:52:32.117697"], ["user_id", "c53b3dfc-bfce-11e4-95ba-705681abff85"], ["created_at", "2015-03-01 04:52:32.118762"], ["updated_at", "2015-03-01 04:52:32.118762"], ["token", "j_qZ769FhcpgwDgyq9TfxQUT0FGsddV0IhlhVoO4YMo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:52:32.123394"], ["updated_at", "2015-03-01 04:52:32.123394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c53b3dfc-bfce-11e4-95ba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c53d25e0-bfce-11e4-88dc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c53b3dfc-bfce-11e4-95ba-705681abff85"], ["organization_id", "c53d25e0-bfce-11e4-88dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:52:32.139912"], ["updated_at", "2015-03-01 04:52:32.139912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c53bed92-bfce-11e4-b198-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c53d25e0-bfce-11e4-88dc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c53bed92-bfce-11e4-b198-705681abff85"], ["organization_id", "c53d25e0-bfce-11e4-88dc-705681abff85"], ["created_at", "2015-03-01 04:52:32.146050"], ["updated_at", "2015-03-01 04:52:32.146050"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/c54098c4-bfce-11e4-82cf-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:52:32 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"c54098c4-bfce-11e4-82cf-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:52:32.154767' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "j_qZ769FhcpgwDgyq9TfxQUT0FGsddV0IhlhVoO4YMo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:52:32.156275"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:52:32.157261"], ["id", "c53c6d12-bfce-11e4-8a5e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c53b3dfc-bfce-11e4-95ba-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c53b3dfc-bfce-11e4-95ba-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c53b3dfc-bfce-11e4-95ba-705681abff85' LIMIT 1 [["organization_id", "c53d25e0-bfce-11e4-88dc-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "c53d25e0-bfce-11e4-88dc-705681abff85"], ["id", "c54098c4-bfce-11e4-82cf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c53d25e0-bfce-11e4-88dc-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c53bed92-bfce-11e4-b198-705681abff85"]] Completed 200 OK in 12ms (Views: 2.3ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (6.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$RHqq/W7PBx7kJgMfC1ZgwOt9W/OLcbIgja7CICz3fmSJIJLlq1Pfe"], ["created_at", "2015-03-01 04:54:17.745516"], ["updated_at", "2015-03-01 04:54:17.745516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$hhEnSi30bFE4dNkIL2bnQezVP/LDNsAh7GcIXCzRUbCfrwNhFQt6O"], ["created_at", "2015-03-01 04:54:17.758105"], ["updated_at", "2015-03-01 04:54:17.758105"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:17.768900"], ["user_id", "0431f1ea-bfcf-11e4-9576-705681abff85"], ["created_at", "2015-03-01 04:54:17.776504"], ["updated_at", "2015-03-01 04:54:17.776504"], ["token", "ze0v0kTdRueJlTQwwWtrna_kL7rfzl_7jfLm7P2Cv30"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:17.816143"], ["updated_at", "2015-03-01 04:54:17.816143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0431f1ea-bfcf-11e4-9576-705681abff85' AND "clubhouse_memberships"."organization_id" = '043c8d62-bfcf-11e4-9b0f-705681abff85') LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0431f1ea-bfcf-11e4-9576-705681abff85"], ["organization_id", "043c8d62-bfcf-11e4-9b0f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:17.826619"], ["updated_at", "2015-03-01 04:54:17.826619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0433b318-bfcf-11e4-a589-705681abff85' AND "clubhouse_memberships"."organization_id" = '043c8d62-bfcf-11e4-9b0f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0433b318-bfcf-11e4-a589-705681abff85"], ["organization_id", "043c8d62-bfcf-11e4-9b0f-705681abff85"], ["created_at", "2015-03-01 04:54:17.833268"], ["updated_at", "2015-03-01 04:54:17.833268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/043f2734-bfcf-11e4-9d45-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:54:17 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"043f2734-bfcf-11e4-9d45-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:17.858370' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ze0v0kTdRueJlTQwwWtrna_kL7rfzl_7jfLm7P2Cv30"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:17.865035"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:17.866215"], ["id", "04369254-bfcf-11e4-9d93-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0431f1ea-bfcf-11e4-9576-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0431f1ea-bfcf-11e4-9576-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0431f1ea-bfcf-11e4-9576-705681abff85' LIMIT 1 [["organization_id", "043c8d62-bfcf-11e4-9b0f-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "043c8d62-bfcf-11e4-9b0f-705681abff85"], ["id", "043f2734-bfcf-11e4-9d45-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "043c8d62-bfcf-11e4-9b0f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0433b318-bfcf-11e4-a589-705681abff85"]] Completed 200 OK in 39ms (Views: 6.6ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$nelbKX/Y8sevBerBXdfTeO/1CC9b7rlZdL0effsZZ.FUY0LsGB7v."], ["created_at", "2015-03-01 04:54:17.908165"], ["updated_at", "2015-03-01 04:54:17.908165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$VktmLyEH3YCirUmDsW8hMeTFeXHhX7twWoFn5J9hlgpxhwbEDJx6a"], ["created_at", "2015-03-01 04:54:17.912572"], ["updated_at", "2015-03-01 04:54:17.912572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:17.914123"], ["user_id", "044a92f4-bfcf-11e4-a9ca-705681abff85"], ["created_at", "2015-03-01 04:54:17.914900"], ["updated_at", "2015-03-01 04:54:17.914900"], ["token", "pQrH2p69GVzvUyjGMftd3b3UXnQ9bNY0gTH6vs5uW-c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:17.918151"], ["updated_at", "2015-03-01 04:54:17.918151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '044a92f4-bfcf-11e4-a9ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '044c150c-bfcf-11e4-9d75-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "044a92f4-bfcf-11e4-a9ca-705681abff85"], ["organization_id", "044c150c-bfcf-11e4-9d75-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:17.921382"], ["updated_at", "2015-03-01 04:54:17.921382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '044b3aba-bfcf-11e4-b97f-705681abff85' AND "clubhouse_memberships"."organization_id" = '044c150c-bfcf-11e4-9d75-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "044b3aba-bfcf-11e4-b97f-705681abff85"], ["organization_id", "044c150c-bfcf-11e4-9d75-705681abff85"], ["created_at", "2015-03-01 04:54:17.925037"], ["updated_at", "2015-03-01 04:54:17.925037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:54:17 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$5MZ8UnmFw.2aDyxq5kqkGOl0S.9T1kLw.d6rMyJu/RrSHKmbvQrsO"], ["created_at", "2015-03-01 04:54:17.938145"], ["updated_at", "2015-03-01 04:54:17.938145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$2Uz/shfsQUCBMylJwLgPmu/xbwG1uFuGgfdYPv12GAJNJer8n31zy"], ["created_at", "2015-03-01 04:54:17.943193"], ["updated_at", "2015-03-01 04:54:17.943193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:17.944793"], ["user_id", "044f3106-bfcf-11e4-afdf-705681abff85"], ["created_at", "2015-03-01 04:54:17.945595"], ["updated_at", "2015-03-01 04:54:17.945595"], ["token", "tku5JyJSau1slUACsmaetmKAiB0eKNYU4tTeZ4nIQMo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:17.949947"], ["updated_at", "2015-03-01 04:54:17.949947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '044f3106-bfcf-11e4-afdf-705681abff85' AND "clubhouse_memberships"."organization_id" = '0450f39c-bfcf-11e4-99b5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "044f3106-bfcf-11e4-afdf-705681abff85"], ["organization_id", "0450f39c-bfcf-11e4-99b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:17.953480"], ["updated_at", "2015-03-01 04:54:17.953480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '044fe966-bfcf-11e4-a8d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '0450f39c-bfcf-11e4-99b5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "044fe966-bfcf-11e4-a8d9-705681abff85"], ["organization_id", "0450f39c-bfcf-11e4-99b5-705681abff85"], ["created_at", "2015-03-01 04:54:17.957793"], ["updated_at", "2015-03-01 04:54:17.957793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:54:17 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:17.962762' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tku5JyJSau1slUACsmaetmKAiB0eKNYU4tTeZ4nIQMo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:17.964192"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:17.965151"], ["id", "04504d5c-bfcf-11e4-afe5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "044f3106-bfcf-11e4-afdf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "044f3106-bfcf-11e4-afdf-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "044f3106-bfcf-11e4-afdf-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "044f3106-bfcf-11e4-afdf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0450f39c-bfcf-11e4-99b5-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "044f3106-bfcf-11e4-afdf-705681abff85"]] Completed 200 OK in 11ms (Views: 3.1ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$uQaZU68SxOkXZoK5u6tCs.TUPQbTUWBhmLcbm9/vIMyD6kud2yr4y"], ["created_at", "2015-03-01 04:54:17.979124"], ["updated_at", "2015-03-01 04:54:17.979124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$.JY/RRJfvu6A0z/6fkQGXOKn62SdZAWBC891lYV5ZK00B2iF02Kpe"], ["created_at", "2015-03-01 04:54:17.983266"], ["updated_at", "2015-03-01 04:54:17.983266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:17.984724"], ["user_id", "0455644a-bfcf-11e4-887b-705681abff85"], ["created_at", "2015-03-01 04:54:17.985545"], ["updated_at", "2015-03-01 04:54:17.985545"], ["token", "pL4MDgjStRfPPOXNWIlhprdVxJQI_JuyXbUgpiNGZW4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:17.988931"], ["updated_at", "2015-03-01 04:54:17.988931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0455644a-bfcf-11e4-887b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0456e504-bfcf-11e4-9cae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0455644a-bfcf-11e4-887b-705681abff85"], ["organization_id", "0456e504-bfcf-11e4-9cae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:17.992413"], ["updated_at", "2015-03-01 04:54:17.992413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04560210-bfcf-11e4-834f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0456e504-bfcf-11e4-9cae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "04560210-bfcf-11e4-834f-705681abff85"], ["organization_id", "0456e504-bfcf-11e4-9cae-705681abff85"], ["created_at", "2015-03-01 04:54:17.995472"], ["updated_at", "2015-03-01 04:54:17.995472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/04576920-bfcf-11e4-8fa4-705681abff85" for 127.0.0.1 at 2015-02-28 20:54:17 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"04576920-bfcf-11e4-8fa4-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:18.000275' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pL4MDgjStRfPPOXNWIlhprdVxJQI_JuyXbUgpiNGZW4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:18.002178"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:18.003364"], ["id", "0456652a-bfcf-11e4-80e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0455644a-bfcf-11e4-887b-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0455644a-bfcf-11e4-887b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0455644a-bfcf-11e4-887b-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "0455644a-bfcf-11e4-887b-705681abff85"], ["id", "04576920-bfcf-11e4-8fa4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0456e504-bfcf-11e4-9cae-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0455644a-bfcf-11e4-887b-705681abff85"]] Completed 200 OK in 14ms (Views: 2.3ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (2.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$zNFnFDlgjh5I8uFhTbTb9Ooxn0Bo.1dvNX7XUCTT34JlmkqlmIHvu"], ["created_at", "2015-03-01 04:54:18.023474"], ["updated_at", "2015-03-01 04:54:18.023474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$P8bY9vtOgUMqYg9pCztslef6UNA1RAl0FE0jNqnh2niY1/J0Ytljq"], ["created_at", "2015-03-01 04:54:18.032449"], ["updated_at", "2015-03-01 04:54:18.032449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.034190"], ["user_id", "045c4c2e-bfcf-11e4-8a3b-705681abff85"], ["created_at", "2015-03-01 04:54:18.035085"], ["updated_at", "2015-03-01 04:54:18.035085"], ["token", "Ov0JkRPcDiBKtKAMElHHZyj811lluPmERs4E7qk3-NE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.038835"], ["updated_at", "2015-03-01 04:54:18.038835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '045c4c2e-bfcf-11e4-8a3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '045e8430-bfcf-11e4-9e80-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "045c4c2e-bfcf-11e4-8a3b-705681abff85"], ["organization_id", "045e8430-bfcf-11e4-9e80-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.043010"], ["updated_at", "2015-03-01 04:54:18.043010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '045d89f4-bfcf-11e4-abf0-705681abff85' AND "clubhouse_memberships"."organization_id" = '045e8430-bfcf-11e4-9e80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "045d89f4-bfcf-11e4-abf0-705681abff85"], ["organization_id", "045e8430-bfcf-11e4-9e80-705681abff85"], ["created_at", "2015-03-01 04:54:18.046779"], ["updated_at", "2015-03-01 04:54:18.046779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:54:18 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$MTHRWAflAlePdoIWtO7JluSOp98co8D56jephkRKo4xa0HQgX8YwG"], ["created_at", "2015-03-01 04:54:18.063510"], ["updated_at", "2015-03-01 04:54:18.063510"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$IYlqr/tb0vKOqOlWHkmgl.pUdqOo0y1YkXDx/cbK.ey5Z3/gdi80i"], ["created_at", "2015-03-01 04:54:18.071515"], ["updated_at", "2015-03-01 04:54:18.071515"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.075257"], ["user_id", "04626906-bfcf-11e4-b362-705681abff85"], ["created_at", "2015-03-01 04:54:18.080508"], ["updated_at", "2015-03-01 04:54:18.080508"], ["token", "T45_lLkhuIdMQxbkhEsLAmGsKaEdDNN6MHQUiCud2aI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.095251"], ["updated_at", "2015-03-01 04:54:18.095251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04626906-bfcf-11e4-b362-705681abff85' AND "clubhouse_memberships"."organization_id" = '04673d0a-bfcf-11e4-a9a5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "04626906-bfcf-11e4-b362-705681abff85"], ["organization_id", "04673d0a-bfcf-11e4-a9a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.100747"], ["updated_at", "2015-03-01 04:54:18.100747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0463a582-bfcf-11e4-a471-705681abff85' AND "clubhouse_memberships"."organization_id" = '04673d0a-bfcf-11e4-a9a5-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0463a582-bfcf-11e4-a471-705681abff85"], ["organization_id", "04673d0a-bfcf-11e4-a9a5-705681abff85"], ["created_at", "2015-03-01 04:54:18.106318"], ["updated_at", "2015-03-01 04:54:18.106318"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$qmzuB.hdALQ9cZrcyESqAO1A7pmtqiviEA8F2sA94rGmXxQlmrCMO"], ["created_at", "2015-03-01 04:54:18.114783"], ["updated_at", "2015-03-01 04:54:18.114783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.117076"], ["user_id", "046a21c8-bfcf-11e4-879b-705681abff85"], ["created_at", "2015-03-01 04:54:18.118095"], ["updated_at", "2015-03-01 04:54:18.118095"], ["token", "NeNQiQrRA2Eu4UXMIapB3ntFRNfYdu66qRiiygFa0gE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '04673d0a-bfcf-11e4-a9a5-705681abff85') LIMIT 1 SQL (7.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "04673d0a-bfcf-11e4-a9a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.132048"], ["updated_at", "2015-03-01 04:54:18.132048"], ["token", "SvVa-8t3iw5Fyt_cjyYzbLRA_mPW8xjCgjdPewCyXU0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 20:54:18 -0800  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$B9EerblUYN/zZdcuH7C0MuRKwYYflVRR9dKA.euxFFvDhUx33hvk2"], ["created_at", "2015-03-01 04:54:18.153088"], ["updated_at", "2015-03-01 04:54:18.153088"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$nmlk24L4fA.waeWajP.6V.PZPkaGO7eCBgBPPc5r4Gt1E5Es0qAGO"], ["created_at", "2015-03-01 04:54:18.159862"], ["updated_at", "2015-03-01 04:54:18.159862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.162733"], ["user_id", "046ffe18-bfcf-11e4-96ad-705681abff85"], ["created_at", "2015-03-01 04:54:18.163869"], ["updated_at", "2015-03-01 04:54:18.163869"], ["token", "0pubUXnmJs1zSFJlCDEowqpN43ralmkkTTDx6eyOsfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.168944"], ["updated_at", "2015-03-01 04:54:18.168944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '046ffe18-bfcf-11e4-96ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '0472614e-bfcf-11e4-a77c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "046ffe18-bfcf-11e4-96ad-705681abff85"], ["organization_id", "0472614e-bfcf-11e4-a77c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.174834"], ["updated_at", "2015-03-01 04:54:18.174834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0471115e-bfcf-11e4-89e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0472614e-bfcf-11e4-a77c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0471115e-bfcf-11e4-89e1-705681abff85"], ["organization_id", "0472614e-bfcf-11e4-a77c-705681abff85"], ["created_at", "2015-03-01 04:54:18.179447"], ["updated_at", "2015-03-01 04:54:18.179447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Boq2ryILGoMgUKy/QU/RO./4Re69sSZHfiHElV/ZnFkcxJt3RSL2O"], ["created_at", "2015-03-01 04:54:18.186867"], ["updated_at", "2015-03-01 04:54:18.186867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.189842"], ["user_id", "04752906-bfcf-11e4-b31e-705681abff85"], ["created_at", "2015-03-01 04:54:18.191452"], ["updated_at", "2015-03-01 04:54:18.191452"], ["token", "NGYUtEqYXtX9eBFBc0xrLxnC9bjc9u2oUiHzUUyut9o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '0472614e-bfcf-11e4-a77c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "0472614e-bfcf-11e4-a77c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.197726"], ["updated_at", "2015-03-01 04:54:18.197726"], ["token", "_VcU62AfWTTCI2TYeHwMYypeWH1KWOLzgVzVjzgUJ1E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 20:54:18 -0800  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (59.7ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$foJa.HpUiE61E5pOZ6F2vuJcEunG.hIjCzZ6CccVecHxirUQpaYme"], ["created_at", "2015-03-01 04:54:18.296788"], ["updated_at", "2015-03-01 04:54:18.296788"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$1oTavuqu/gMnVDTmjBElAeOtI3/3LGuvwji1v8el5/NyvmhwYhzmC"], ["created_at", "2015-03-01 04:54:18.305384"], ["updated_at", "2015-03-01 04:54:18.305384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.308486"], ["user_id", "0485faf6-bfcf-11e4-9fce-705681abff85"], ["created_at", "2015-03-01 04:54:18.310185"], ["updated_at", "2015-03-01 04:54:18.310185"], ["token", "YbYLygmoqltiMCpXjGZQ6RJ7dAhHXQQ1yAFlhT1DIg4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.328748"], ["updated_at", "2015-03-01 04:54:18.328748"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0485faf6-bfcf-11e4-9fce-705681abff85' AND "clubhouse_memberships"."organization_id" = '048ad832-bfcf-11e4-b0af-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0485faf6-bfcf-11e4-9fce-705681abff85"], ["organization_id", "048ad832-bfcf-11e4-b0af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.337878"], ["updated_at", "2015-03-01 04:54:18.337878"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '048744f6-bfcf-11e4-b9b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '048ad832-bfcf-11e4-b0af-705681abff85') LIMIT 1 SQL (4.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "048744f6-bfcf-11e4-b9b1-705681abff85"], ["organization_id", "048ad832-bfcf-11e4-b0af-705681abff85"], ["created_at", "2015-03-01 04:54:18.344789"], ["updated_at", "2015-03-01 04:54:18.344789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$yJbHpNR4XNdtT/b7PVfeYu9lJECfQW76Wd7eD4ZFPlUEE2ZwsjQvm"], ["created_at", "2015-03-01 04:54:18.354585"], ["updated_at", "2015-03-01 04:54:18.354585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.356685"], ["user_id", "048eb380-bfcf-11e4-8c4e-705681abff85"], ["created_at", "2015-03-01 04:54:18.357969"], ["updated_at", "2015-03-01 04:54:18.357969"], ["token", "oPZe4j83CZVGCc_8-2du6x0tf8An5fsX7Cf23_LLI6Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '048ad832-bfcf-11e4-b0af-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "048ad832-bfcf-11e4-b0af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.362551"], ["updated_at", "2015-03-01 04:54:18.362551"], ["token", "OtMyDiLXnGoik6UDIQ15ut1bK54Gl2KjQ5IetcEb-Ko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 20:54:18 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$GEzYgMW3.XYwOO6k7AE5Te7viKkK0vF4bkBDsu3zQQzrtXvc.ZJam"], ["created_at", "2015-03-01 04:54:18.373561"], ["updated_at", "2015-03-01 04:54:18.373561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$zT7SNzbAl84qSPzTz/QFiupxiFExEF6pBoeYkE2fbMPwwDBZ8Qk0W"], ["created_at", "2015-03-01 04:54:18.378984"], ["updated_at", "2015-03-01 04:54:18.378984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.381050"], ["user_id", "0491a2d4-bfcf-11e4-8358-705681abff85"], ["created_at", "2015-03-01 04:54:18.381964"], ["updated_at", "2015-03-01 04:54:18.381964"], ["token", "Clf0Iuwm7uM0tr3oj-WGAiC_7huZGE7y80zJKBppEQ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.385765"], ["updated_at", "2015-03-01 04:54:18.385765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0491a2d4-bfcf-11e4-8358-705681abff85' AND "clubhouse_memberships"."organization_id" = '04937122-bfcf-11e4-9173-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0491a2d4-bfcf-11e4-8358-705681abff85"], ["organization_id", "04937122-bfcf-11e4-9173-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.389466"], ["updated_at", "2015-03-01 04:54:18.389466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0492757e-bfcf-11e4-b780-705681abff85' AND "clubhouse_memberships"."organization_id" = '04937122-bfcf-11e4-9173-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0492757e-bfcf-11e4-b780-705681abff85"], ["organization_id", "04937122-bfcf-11e4-9173-705681abff85"], ["created_at", "2015-03-01 04:54:18.393095"], ["updated_at", "2015-03-01 04:54:18.393095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:54:18 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:18.398090' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Clf0Iuwm7uM0tr3oj-WGAiC_7huZGE7y80zJKBppEQ4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:18.399739"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:18.400852"], ["id", "0492e72a-bfcf-11e4-b158-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0491a2d4-bfcf-11e4-8358-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0491a2d4-bfcf-11e4-8358-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0491a2d4-bfcf-11e4-8358-705681abff85' LIMIT 1 [["organization_id", "04937122-bfcf-11e4-9173-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "04937122-bfcf-11e4-9173-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "04937122-bfcf-11e4-9173-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0491a2d4-bfcf-11e4-8358-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "04937122-bfcf-11e4-9173-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0492757e-bfcf-11e4-b780-705681abff85"]] Completed 200 OK in 18ms (Views: 6.6ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$h/1phnU1W8jDqL/rafkWe.kUgxcgprZ8VD4S.v.0Z7ZvtniJipa4a"], ["created_at", "2015-03-01 04:54:18.422757"], ["updated_at", "2015-03-01 04:54:18.422757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$eLQSsKug6JGXuYnmXNrqhOz2xXCyJUb3BeOHYWgz7j/hlK/INP8h."], ["created_at", "2015-03-01 04:54:18.427373"], ["updated_at", "2015-03-01 04:54:18.427373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.429086"], ["user_id", "049919e2-bfcf-11e4-8790-705681abff85"], ["created_at", "2015-03-01 04:54:18.429922"], ["updated_at", "2015-03-01 04:54:18.429922"], ["token", "-DzDCP-JvoxGYwbtBxZgVC8592xKVAoHtlIPRwXvpkM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.433490"], ["updated_at", "2015-03-01 04:54:18.433490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '049919e2-bfcf-11e4-8790-705681abff85' AND "clubhouse_memberships"."organization_id" = '049ab964-bfcf-11e4-b651-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "049919e2-bfcf-11e4-8790-705681abff85"], ["organization_id", "049ab964-bfcf-11e4-b651-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.436867"], ["updated_at", "2015-03-01 04:54:18.436867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0499cb58-bfcf-11e4-bbf6-705681abff85' AND "clubhouse_memberships"."organization_id" = '049ab964-bfcf-11e4-b651-705681abff85') LIMIT 1 SQL (4.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0499cb58-bfcf-11e4-bbf6-705681abff85"], ["organization_id", "049ab964-bfcf-11e4-b651-705681abff85"], ["created_at", "2015-03-01 04:54:18.440157"], ["updated_at", "2015-03-01 04:54:18.440157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:54:18 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$vtcWviOZRwgLRf.y1RF4auTSTBIt/sHGW19QJgsXmtRbXmqOdMFpO"], ["created_at", "2015-03-01 04:54:18.459872"], ["updated_at", "2015-03-01 04:54:18.459872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$AIZqPNzxD920zrSvkuF6fuyWuCFLbPnwKrZOcLv1hX/aGGGvfh8vO"], ["created_at", "2015-03-01 04:54:18.466590"], ["updated_at", "2015-03-01 04:54:18.466590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.468371"], ["user_id", "049eed2c-bfcf-11e4-8aeb-705681abff85"], ["created_at", "2015-03-01 04:54:18.469329"], ["updated_at", "2015-03-01 04:54:18.469329"], ["token", "ea7qq5Lejy4uJ3SYJOhVwmrPgwCZqBKixmx_6tPyehE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.473330"], ["updated_at", "2015-03-01 04:54:18.473330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '049eed2c-bfcf-11e4-8aeb-705681abff85' AND "clubhouse_memberships"."organization_id" = '04a0d402-bfcf-11e4-aae3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "049eed2c-bfcf-11e4-8aeb-705681abff85"], ["organization_id", "04a0d402-bfcf-11e4-aae3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.477669"], ["updated_at", "2015-03-01 04:54:18.477669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '049fc80a-bfcf-11e4-89d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '04a0d402-bfcf-11e4-aae3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "049fc80a-bfcf-11e4-89d1-705681abff85"], ["organization_id", "04a0d402-bfcf-11e4-aae3-705681abff85"], ["created_at", "2015-03-01 04:54:18.481657"], ["updated_at", "2015-03-01 04:54:18.481657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/04a17830-bfcf-11e4-8a93-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:54:18 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"04a17830-bfcf-11e4-8a93-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:18.487380' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ea7qq5Lejy4uJ3SYJOhVwmrPgwCZqBKixmx_6tPyehE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:18.488904"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:18.489905"], ["id", "04a03d8a-bfcf-11e4-9c15-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "049eed2c-bfcf-11e4-8aeb-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "049eed2c-bfcf-11e4-8aeb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '049eed2c-bfcf-11e4-8aeb-705681abff85' LIMIT 1 [["organization_id", "04a0d402-bfcf-11e4-aae3-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "04a0d402-bfcf-11e4-aae3-705681abff85"], ["id", "04a17830-bfcf-11e4-8a93-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "049eed2c-bfcf-11e4-8aeb-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$xBlhQl2akxR3qFhAJDj4iO.4rmf0aVZCD/kQILYl7iLkkMHqvQHD."], ["created_at", "2015-03-01 04:54:18.506278"], ["updated_at", "2015-03-01 04:54:18.506278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$uHwuewZjhRGTYx64/XbW.epdhef5BoWmy.Tt3x2PKfgTgq/g/Nx9i"], ["created_at", "2015-03-01 04:54:18.511836"], ["updated_at", "2015-03-01 04:54:18.511836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.513520"], ["user_id", "04a5da56-bfcf-11e4-8e7c-705681abff85"], ["created_at", "2015-03-01 04:54:18.514388"], ["updated_at", "2015-03-01 04:54:18.514388"], ["token", "9XM-wIhsznNHNw9KRz4hYjENaQJbV0n5bBxSNRcz3Ro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.518114"], ["updated_at", "2015-03-01 04:54:18.518114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04a5da56-bfcf-11e4-8e7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '04a7a2e6-bfcf-11e4-82f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "04a5da56-bfcf-11e4-8e7c-705681abff85"], ["organization_id", "04a7a2e6-bfcf-11e4-82f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.522016"], ["updated_at", "2015-03-01 04:54:18.522016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04a6afd0-bfcf-11e4-975b-705681abff85' AND "clubhouse_memberships"."organization_id" = '04a7a2e6-bfcf-11e4-82f2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "04a6afd0-bfcf-11e4-975b-705681abff85"], ["organization_id", "04a7a2e6-bfcf-11e4-82f2-705681abff85"], ["created_at", "2015-03-01 04:54:18.525673"], ["updated_at", "2015-03-01 04:54:18.525673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/04a8cbf8-bfcf-11e4-89d5-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:54:18 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"04a8cbf8-bfcf-11e4-89d5-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:18.531691' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9XM-wIhsznNHNw9KRz4hYjENaQJbV0n5bBxSNRcz3Ro"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:18.534227"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:18.535961"], ["id", "04a71a38-bfcf-11e4-b3b1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "04a5da56-bfcf-11e4-8e7c-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "04a5da56-bfcf-11e4-8e7c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '04a5da56-bfcf-11e4-8e7c-705681abff85' LIMIT 1 [["organization_id", "04a7a2e6-bfcf-11e4-82f2-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "04a7a2e6-bfcf-11e4-82f2-705681abff85"], ["id", "04a8cbf8-bfcf-11e4-89d5-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "04a6afd0-bfcf-11e4-975b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "04a7a2e6-bfcf-11e4-82f2-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04a6afd0-bfcf-11e4-975b-705681abff85' AND "clubhouse_memberships"."id" != '04a8cbf8-bfcf-11e4-89d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '04a7a2e6-bfcf-11e4-82f2-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:54:18.549647"], ["id", "04a8cbf8-bfcf-11e4-89d5-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 1.3ms | ActiveRecord: 3.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (6.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$0f.IVDANSTfnwEIY2i0G1uB..be0qgut/jiLZnYyfZ4hzvZCBqtOS"], ["created_at", "2015-03-01 04:54:18.560814"], ["updated_at", "2015-03-01 04:54:18.560814"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$F/4zR5TUByO4nsomzq6PLOEsxr0//sdXkQ1VMDrjxUc5hHj4dlwtK"], ["created_at", "2015-03-01 04:54:18.573391"], ["updated_at", "2015-03-01 04:54:18.573391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.575468"], ["user_id", "04ae5668-bfcf-11e4-86a7-705681abff85"], ["created_at", "2015-03-01 04:54:18.576366"], ["updated_at", "2015-03-01 04:54:18.576366"], ["token", "1PhWZEbyo12NTFihc-6XPdbb0pyWkIybO3iLl3kleBc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.580263"], ["updated_at", "2015-03-01 04:54:18.580263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04ae5668-bfcf-11e4-86a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '04b11cf4-bfcf-11e4-b53a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "04ae5668-bfcf-11e4-86a7-705681abff85"], ["organization_id", "04b11cf4-bfcf-11e4-b53a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.584066"], ["updated_at", "2015-03-01 04:54:18.584066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04b01af2-bfcf-11e4-804d-705681abff85' AND "clubhouse_memberships"."organization_id" = '04b11cf4-bfcf-11e4-b53a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "04b01af2-bfcf-11e4-804d-705681abff85"], ["organization_id", "04b11cf4-bfcf-11e4-b53a-705681abff85"], ["created_at", "2015-03-01 04:54:18.587694"], ["updated_at", "2015-03-01 04:54:18.587694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:54:18 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$OiDBFFm9d6aegHFSOeO0xeBjloR3g1B5V7KtJjoL/sCA4vmGDY4he"], ["created_at", "2015-03-01 04:54:18.602207"], ["updated_at", "2015-03-01 04:54:18.602207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$Z.8YLQ0kYCmytmqN5NmK3Okj7spjw5xkB8Qh6FoDKjwY7XmGxPRC2"], ["created_at", "2015-03-01 04:54:18.606415"], ["updated_at", "2015-03-01 04:54:18.606415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.607933"], ["user_id", "04b4775a-bfcf-11e4-8dd6-705681abff85"], ["created_at", "2015-03-01 04:54:18.608923"], ["updated_at", "2015-03-01 04:54:18.608923"], ["token", "tlvxEWXiWE9iwXqRmibqeBkoGG_Mq7WmiRms3yMZW3A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.613886"], ["updated_at", "2015-03-01 04:54:18.613886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04b4775a-bfcf-11e4-8dd6-705681abff85' AND "clubhouse_memberships"."organization_id" = '04b63fea-bfcf-11e4-b1b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "04b4775a-bfcf-11e4-8dd6-705681abff85"], ["organization_id", "04b63fea-bfcf-11e4-b1b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.617505"], ["updated_at", "2015-03-01 04:54:18.617505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04b51994-bfcf-11e4-a284-705681abff85' AND "clubhouse_memberships"."organization_id" = '04b63fea-bfcf-11e4-b1b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "04b51994-bfcf-11e4-a284-705681abff85"], ["organization_id", "04b63fea-bfcf-11e4-b1b6-705681abff85"], ["created_at", "2015-03-01 04:54:18.620626"], ["updated_at", "2015-03-01 04:54:18.620626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/04b6cb72-bfcf-11e4-8589-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:54:18 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"04b6cb72-bfcf-11e4-8589-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:18.626328' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tlvxEWXiWE9iwXqRmibqeBkoGG_Mq7WmiRms3yMZW3A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:18.627816"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:18.628850"], ["id", "04b591c6-bfcf-11e4-8c71-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "04b4775a-bfcf-11e4-8dd6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "04b4775a-bfcf-11e4-8dd6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '04b4775a-bfcf-11e4-8dd6-705681abff85' LIMIT 1 [["organization_id", "04b63fea-bfcf-11e4-b1b6-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "04b63fea-bfcf-11e4-b1b6-705681abff85"], ["id", "04b6cb72-bfcf-11e4-8589-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "04b4775a-bfcf-11e4-8dd6-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$/zY/L7/0rR/p0L4VyaVq9ed6szokeyDw.WEIK3yqaMWFQ8i3QM4Ce"], ["created_at", "2015-03-01 04:54:18.642519"], ["updated_at", "2015-03-01 04:54:18.642519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$b7yN.WRxflHRPMvPc0WscOEiAMgP000kDZGmuTFtRblkSlY/acsE2"], ["created_at", "2015-03-01 04:54:18.647552"], ["updated_at", "2015-03-01 04:54:18.647552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:18.649249"], ["user_id", "04baa2d8-bfcf-11e4-b54d-705681abff85"], ["created_at", "2015-03-01 04:54:18.650076"], ["updated_at", "2015-03-01 04:54:18.650076"], ["token", "agGnylui2utRMZ9TRq8Gw7tgBn-hhTpSn34VF6mFfg8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:18.653464"], ["updated_at", "2015-03-01 04:54:18.653464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04baa2d8-bfcf-11e4-b54d-705681abff85' AND "clubhouse_memberships"."organization_id" = '04bc4700-bfcf-11e4-9d49-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "04baa2d8-bfcf-11e4-b54d-705681abff85"], ["organization_id", "04bc4700-bfcf-11e4-9d49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:18.656725"], ["updated_at", "2015-03-01 04:54:18.656725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04bb6588-bfcf-11e4-ab6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '04bc4700-bfcf-11e4-9d49-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "04bb6588-bfcf-11e4-ab6d-705681abff85"], ["organization_id", "04bc4700-bfcf-11e4-9d49-705681abff85"], ["created_at", "2015-03-01 04:54:18.660004"], ["updated_at", "2015-03-01 04:54:18.660004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/04bd4dee-bfcf-11e4-bde3-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:54:18 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"04bd4dee-bfcf-11e4-bde3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:18.666549' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "agGnylui2utRMZ9TRq8Gw7tgBn-hhTpSn34VF6mFfg8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:18.668548"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:18.670355"], ["id", "04bbcc1c-bfcf-11e4-9af1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "04baa2d8-bfcf-11e4-b54d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "04baa2d8-bfcf-11e4-b54d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '04baa2d8-bfcf-11e4-b54d-705681abff85' LIMIT 1 [["organization_id", "04bc4700-bfcf-11e4-9d49-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "04bc4700-bfcf-11e4-9d49-705681abff85"], ["id", "04bd4dee-bfcf-11e4-bde3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "04bb6588-bfcf-11e4-ab6d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "04bd4dee-bfcf-11e4-bde3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$QSpfxjMOHLxvZ94YuSC9pesEkvOaOHL08w8I7aqY0kCsPU7LstOyq"], ["created_at", "2015-03-01 04:54:32.316649"], ["updated_at", "2015-03-01 04:54:32.316649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ptGuYKETQAeEOZl4ebiYeOJlZp/RkTGi5WkMSTUB5G6I8zHCY0UvS"], ["created_at", "2015-03-01 04:54:32.323813"], ["updated_at", "2015-03-01 04:54:32.323813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.332689"], ["user_id", "0ce14778-bfcf-11e4-940b-705681abff85"], ["created_at", "2015-03-01 04:54:32.338391"], ["updated_at", "2015-03-01 04:54:32.338391"], ["token", "khVFQdaaswtTPhfnrYc9vcf9wPtNmbxrp3T6RZPCJB4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.387680"], ["updated_at", "2015-03-01 04:54:32.387680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ce14778-bfcf-11e4-940b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0cec0578-bfcf-11e4-85db-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ce14778-bfcf-11e4-940b-705681abff85"], ["organization_id", "0cec0578-bfcf-11e4-85db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.399550"], ["updated_at", "2015-03-01 04:54:32.399550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ce23c3c-bfcf-11e4-8b2b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0cec0578-bfcf-11e4-85db-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0ce23c3c-bfcf-11e4-8b2b-705681abff85"], ["organization_id", "0cec0578-bfcf-11e4-85db-705681abff85"], ["created_at", "2015-03-01 04:54:32.404202"], ["updated_at", "2015-03-01 04:54:32.404202"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$nnwYgigafCykoqxzxpyrpOgc9YIbBAZMSc1gmZuTItH1PN7hGOP/W"], ["created_at", "2015-03-01 04:54:32.451021"], ["updated_at", "2015-03-01 04:54:32.451021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$mbkUxm4O8fPDF5XutSis9OTdQX.eWyGRYSHCRXvkT7Y9KBSXWE5la"], ["created_at", "2015-03-01 04:54:32.456389"], ["updated_at", "2015-03-01 04:54:32.456389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.458142"], ["user_id", "0cf5b08c-bfcf-11e4-bd85-705681abff85"], ["created_at", "2015-03-01 04:54:32.459274"], ["updated_at", "2015-03-01 04:54:32.459274"], ["token", "Xo5spG8JD82VhG1z5aYbGe09vV6G4DFzY-KOGSFhkVw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.463403"], ["updated_at", "2015-03-01 04:54:32.463403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0cf5b08c-bfcf-11e4-bd85-705681abff85' AND "clubhouse_memberships"."organization_id" = '0cf78786-bfcf-11e4-b843-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0cf5b08c-bfcf-11e4-bd85-705681abff85"], ["organization_id", "0cf78786-bfcf-11e4-b843-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.467228"], ["updated_at", "2015-03-01 04:54:32.467228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0cf6749a-bfcf-11e4-abdf-705681abff85' AND "clubhouse_memberships"."organization_id" = '0cf78786-bfcf-11e4-b843-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0cf6749a-bfcf-11e4-abdf-705681abff85"], ["organization_id", "0cf78786-bfcf-11e4-b843-705681abff85"], ["created_at", "2015-03-01 04:54:32.470875"], ["updated_at", "2015-03-01 04:54:32.470875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/0cf81d4a-bfcf-11e4-b4fe-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"0cf81d4a-bfcf-11e4-b4fe-705681abff85", "membership"=>{}} Pollett::Session Load (20.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:32.484344' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Xo5spG8JD82VhG1z5aYbGe09vV6G4DFzY-KOGSFhkVw"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:32.520395"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:32.522312"], ["id", "0cf6fa78-bfcf-11e4-aab6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0cf5b08c-bfcf-11e4-bd85-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0cf5b08c-bfcf-11e4-bd85-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0cf5b08c-bfcf-11e4-bd85-705681abff85' LIMIT 1 [["organization_id", "0cf78786-bfcf-11e4-b843-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0cf78786-bfcf-11e4-b843-705681abff85"], ["id", "0cf81d4a-bfcf-11e4-b4fe-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0cf5b08c-bfcf-11e4-bd85-705681abff85"]] Completed 500 Internal Server Error in 69ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (13.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$kVKFk9Hst4JTGiek1MYUEePPj7v9olhVK.oSlr56nZjpEjrTbAoha"], ["created_at", "2015-03-01 04:54:32.559999"], ["updated_at", "2015-03-01 04:54:32.559999"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$dYKn/hDX6QyVFUpImXmsOuPQsqVN7WI0l0wmt/rsII5fg0iEJMOfy"], ["created_at", "2015-03-01 04:54:32.577464"], ["updated_at", "2015-03-01 04:54:32.577464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.579021"], ["user_id", "0d064334-bfcf-11e4-a751-705681abff85"], ["created_at", "2015-03-01 04:54:32.579852"], ["updated_at", "2015-03-01 04:54:32.579852"], ["token", "8Ky6odegU3El4tPdWUwSfftDgYztj83LODY2I1Tmtps"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.584832"], ["updated_at", "2015-03-01 04:54:32.584832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d064334-bfcf-11e4-a751-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d0a0d7a-bfcf-11e4-b311-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d064334-bfcf-11e4-a751-705681abff85"], ["organization_id", "0d0a0d7a-bfcf-11e4-b311-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.588549"], ["updated_at", "2015-03-01 04:54:32.588549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d08eab2-bfcf-11e4-b992-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d0a0d7a-bfcf-11e4-b311-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d08eab2-bfcf-11e4-b992-705681abff85"], ["organization_id", "0d0a0d7a-bfcf-11e4-b311-705681abff85"], ["created_at", "2015-03-01 04:54:32.591691"], ["updated_at", "2015-03-01 04:54:32.591691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/0d0b1454-bfcf-11e4-a1e3-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"0d0b1454-bfcf-11e4-a1e3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:32.596135' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8Ky6odegU3El4tPdWUwSfftDgYztj83LODY2I1Tmtps"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:32.597831"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:32.598789"], ["id", "0d09552e-bfcf-11e4-a28c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d064334-bfcf-11e4-a751-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0d064334-bfcf-11e4-a751-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0d064334-bfcf-11e4-a751-705681abff85' LIMIT 1 [["organization_id", "0d0a0d7a-bfcf-11e4-b311-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0d0a0d7a-bfcf-11e4-b311-705681abff85"], ["id", "0d0b1454-bfcf-11e4-a1e3-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d08eab2-bfcf-11e4-b992-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "0d0b1454-bfcf-11e4-a1e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ChBpfnxLnf4D9bQg7cv2LOi4P89GJQG8A82vXFn55ZGufAOEEzdXu"], ["created_at", "2015-03-01 04:54:32.611869"], ["updated_at", "2015-03-01 04:54:32.611869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Hjlg.FDX4IGIRofLBWaBi.F5/jebepyhIdO7ZT2OpwnDI8MX3X7mC"], ["created_at", "2015-03-01 04:54:32.617011"], ["updated_at", "2015-03-01 04:54:32.617011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.620268"], ["user_id", "0d0e2c02-bfcf-11e4-a9ff-705681abff85"], ["created_at", "2015-03-01 04:54:32.621423"], ["updated_at", "2015-03-01 04:54:32.621423"], ["token", "adxn45aq0xeuAPJEmgjpvqEC0uwh18CxEUYkmSRSxo8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.625390"], ["updated_at", "2015-03-01 04:54:32.625390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d0e2c02-bfcf-11e4-a9ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d103c4a-bfcf-11e4-8eb2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d0e2c02-bfcf-11e4-a9ff-705681abff85"], ["organization_id", "0d103c4a-bfcf-11e4-8eb2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.628863"], ["updated_at", "2015-03-01 04:54:32.628863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d0f1388-bfcf-11e4-8dd3-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d103c4a-bfcf-11e4-8eb2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d0f1388-bfcf-11e4-8dd3-705681abff85"], ["organization_id", "0d103c4a-bfcf-11e4-8eb2-705681abff85"], ["created_at", "2015-03-01 04:54:32.633134"], ["updated_at", "2015-03-01 04:54:32.633134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/0d117c7c-bfcf-11e4-90fd-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"0d117c7c-bfcf-11e4-90fd-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:32.640164' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "adxn45aq0xeuAPJEmgjpvqEC0uwh18CxEUYkmSRSxo8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:32.641605"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:32.642628"], ["id", "0d0fb464-bfcf-11e4-8b47-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d0e2c02-bfcf-11e4-a9ff-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0d0e2c02-bfcf-11e4-a9ff-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0d0e2c02-bfcf-11e4-a9ff-705681abff85' LIMIT 1 [["organization_id", "0d103c4a-bfcf-11e4-8eb2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0d103c4a-bfcf-11e4-8eb2-705681abff85"], ["id", "0d117c7c-bfcf-11e4-90fd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0d103c4a-bfcf-11e4-8eb2-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d0f1388-bfcf-11e4-8dd3-705681abff85"]] Completed 200 OK in 15ms (Views: 6.1ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$SuKPmuuMVmq8FQij3SFnQe4LWc99EFaXP1T1.4orcXbHfjuiIbHl."], ["created_at", "2015-03-01 04:54:32.663000"], ["updated_at", "2015-03-01 04:54:32.663000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$syJ8xftkxxQzvR9cHrSmC.GwolX4LYhbkdBw0Z4.BcU1WBr6I0YHW"], ["created_at", "2015-03-01 04:54:32.667614"], ["updated_at", "2015-03-01 04:54:32.667614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.669080"], ["user_id", "0d15ff40-bfcf-11e4-8412-705681abff85"], ["created_at", "2015-03-01 04:54:32.669820"], ["updated_at", "2015-03-01 04:54:32.669820"], ["token", "cS7G0XOjK9wajEzLsEJXpMPb4xeN6ikGunowCUIe7Og"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.679285"], ["updated_at", "2015-03-01 04:54:32.679285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d15ff40-bfcf-11e4-8412-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d187612-bfcf-11e4-afd4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d15ff40-bfcf-11e4-8412-705681abff85"], ["organization_id", "0d187612-bfcf-11e4-afd4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.682766"], ["updated_at", "2015-03-01 04:54:32.682766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d16a9ea-bfcf-11e4-911d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d187612-bfcf-11e4-afd4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d16a9ea-bfcf-11e4-911d-705681abff85"], ["organization_id", "0d187612-bfcf-11e4-afd4-705681abff85"], ["created_at", "2015-03-01 04:54:32.686038"], ["updated_at", "2015-03-01 04:54:32.686038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$oO09g59MsKJ4QH5Wj3l1x.GOkaVgtuTY4L9xIL0D4vYk2fo8LjupC"], ["created_at", "2015-03-01 04:54:32.700052"], ["updated_at", "2015-03-01 04:54:32.700052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$wmKMvXRh5/PPZIKdgzen3.SuoTidR1cRa7Lf7/pSmjeRAcje1oNpS"], ["created_at", "2015-03-01 04:54:32.705013"], ["updated_at", "2015-03-01 04:54:32.705013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.706589"], ["user_id", "0d1ba8e6-bfcf-11e4-a93e-705681abff85"], ["created_at", "2015-03-01 04:54:32.707544"], ["updated_at", "2015-03-01 04:54:32.707544"], ["token", "fHPpLVQYNQHbir9mY_xCGNJ8PkdIb7cJsqiM0EjfLEo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.711621"], ["updated_at", "2015-03-01 04:54:32.711621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d1ba8e6-bfcf-11e4-a93e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d1d660e-bfcf-11e4-bd28-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d1ba8e6-bfcf-11e4-a93e-705681abff85"], ["organization_id", "0d1d660e-bfcf-11e4-bd28-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.715441"], ["updated_at", "2015-03-01 04:54:32.715441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d1c606a-bfcf-11e4-a728-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d1d660e-bfcf-11e4-bd28-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d1c606a-bfcf-11e4-a728-705681abff85"], ["organization_id", "0d1d660e-bfcf-11e4-bd28-705681abff85"], ["created_at", "2015-03-01 04:54:32.718827"], ["updated_at", "2015-03-01 04:54:32.718827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$O6Va8rY8nm8hRjfaTZUuyOFl6y8j/3Mj4n8zKudzORIGPwMB0WXWa"], ["created_at", "2015-03-01 04:54:32.731352"], ["updated_at", "2015-03-01 04:54:32.731352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$mDtwlhx6q2UvL3FOlARGouQhJDIANXQDePYVb.t5mTEKlbhhcMUsy"], ["created_at", "2015-03-01 04:54:32.736202"], ["updated_at", "2015-03-01 04:54:32.736202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.737827"], ["user_id", "0d206692-bfcf-11e4-bac4-705681abff85"], ["created_at", "2015-03-01 04:54:32.738626"], ["updated_at", "2015-03-01 04:54:32.738626"], ["token", "GDP6s3HpGvz5RTwFdHehHbNl6gmhzVTGyDbFfQrIvTo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.742159"], ["updated_at", "2015-03-01 04:54:32.742159"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d206692-bfcf-11e4-bac4-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d220ef2-bfcf-11e4-927f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d206692-bfcf-11e4-bac4-705681abff85"], ["organization_id", "0d220ef2-bfcf-11e4-927f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.745676"], ["updated_at", "2015-03-01 04:54:32.745676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d212474-bfcf-11e4-a217-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d220ef2-bfcf-11e4-927f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d212474-bfcf-11e4-a217-705681abff85"], ["organization_id", "0d220ef2-bfcf-11e4-927f-705681abff85"], ["created_at", "2015-03-01 04:54:32.749941"], ["updated_at", "2015-03-01 04:54:32.749941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/0d229728-bfcf-11e4-92bb-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"0d229728-bfcf-11e4-92bb-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:32.754782' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GDP6s3HpGvz5RTwFdHehHbNl6gmhzVTGyDbFfQrIvTo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:32.756264"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:32.757272"], ["id", "0d218be4-bfcf-11e4-ade8-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d206692-bfcf-11e4-bac4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0d206692-bfcf-11e4-bac4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0d206692-bfcf-11e4-bac4-705681abff85' LIMIT 1 [["organization_id", "0d220ef2-bfcf-11e4-927f-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0d220ef2-bfcf-11e4-927f-705681abff85"], ["id", "0d229728-bfcf-11e4-92bb-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d206692-bfcf-11e4-bac4-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$NlpsZNntpwLu51amZp77K.7rgyLv6ITMlTWJD0lY23usJSmL9R3f2"], ["created_at", "2015-03-01 04:54:32.772699"], ["updated_at", "2015-03-01 04:54:32.772699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Gsfu8YDhTvDgfehMtnaTUekqLPH7bxX6XUnosSnoCdtWZEznXFIZS"], ["created_at", "2015-03-01 04:54:32.777702"], ["updated_at", "2015-03-01 04:54:32.777702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.779362"], ["user_id", "0d26b83a-bfcf-11e4-82af-705681abff85"], ["created_at", "2015-03-01 04:54:32.780253"], ["updated_at", "2015-03-01 04:54:32.780253"], ["token", "q6YT8WJCMYjXENzZmZ2XnV7x67XzWej5NywoRIuaOJc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.784147"], ["updated_at", "2015-03-01 04:54:32.784147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d26b83a-bfcf-11e4-82af-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d28754e-bfcf-11e4-8e80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d26b83a-bfcf-11e4-82af-705681abff85"], ["organization_id", "0d28754e-bfcf-11e4-8e80-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.787578"], ["updated_at", "2015-03-01 04:54:32.787578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d2779a0-bfcf-11e4-87e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d28754e-bfcf-11e4-8e80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d2779a0-bfcf-11e4-87e7-705681abff85"], ["organization_id", "0d28754e-bfcf-11e4-8e80-705681abff85"], ["created_at", "2015-03-01 04:54:32.791230"], ["updated_at", "2015-03-01 04:54:32.791230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/0d298bbe-bfcf-11e4-8d44-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"0d298bbe-bfcf-11e4-8d44-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:32.796404' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q6YT8WJCMYjXENzZmZ2XnV7x67XzWej5NywoRIuaOJc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:32.797956"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:32.799104"], ["id", "0d27e994-bfcf-11e4-a950-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d26b83a-bfcf-11e4-82af-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0d26b83a-bfcf-11e4-82af-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0d26b83a-bfcf-11e4-82af-705681abff85' LIMIT 1 [["organization_id", "0d28754e-bfcf-11e4-8e80-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0d28754e-bfcf-11e4-8e80-705681abff85"], ["id", "0d298bbe-bfcf-11e4-8d44-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d2779a0-bfcf-11e4-87e7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0d28754e-bfcf-11e4-8e80-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d2779a0-bfcf-11e4-87e7-705681abff85' AND "clubhouse_memberships"."id" != '0d298bbe-bfcf-11e4-8d44-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d28754e-bfcf-11e4-8e80-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 04:54:32.817952"], ["id", "0d298bbe-bfcf-11e4-8d44-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 24ms (Views: 1.0ms | ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$PNa3Ev/Ob17WgF7e3x0vg.s58LbSAveCemnKsEUvRJjD1xrtlsw.2"], ["created_at", "2015-03-01 04:54:32.826930"], ["updated_at", "2015-03-01 04:54:32.826930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$4cSPbqIZOu1z2n//.qawkeAoz44BmzT39Dl7dh3nH2.Lg91UJ6XH2"], ["created_at", "2015-03-01 04:54:32.831443"], ["updated_at", "2015-03-01 04:54:32.831443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.833015"], ["user_id", "0d2eff9a-bfcf-11e4-9c9c-705681abff85"], ["created_at", "2015-03-01 04:54:32.833838"], ["updated_at", "2015-03-01 04:54:32.833838"], ["token", "AQvyXUliBUp3DN3kndkkq3qWwfhqF2Ff3fZM5N32tdw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.837234"], ["updated_at", "2015-03-01 04:54:32.837234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d2eff9a-bfcf-11e4-9c9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d308cc0-bfcf-11e4-b905-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d2eff9a-bfcf-11e4-9c9c-705681abff85"], ["organization_id", "0d308cc0-bfcf-11e4-b905-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.840755"], ["updated_at", "2015-03-01 04:54:32.840755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d2fac1a-bfcf-11e4-82ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d308cc0-bfcf-11e4-b905-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d2fac1a-bfcf-11e4-82ea-705681abff85"], ["organization_id", "0d308cc0-bfcf-11e4-b905-705681abff85"], ["created_at", "2015-03-01 04:54:32.844142"], ["updated_at", "2015-03-01 04:54:32.844142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/0d311e74-bfcf-11e4-b079-705681abff85" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"0d311e74-bfcf-11e4-b079-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:32.849203' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AQvyXUliBUp3DN3kndkkq3qWwfhqF2Ff3fZM5N32tdw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:32.850703"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:32.851613"], ["id", "0d300f98-bfcf-11e4-af8f-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d2eff9a-bfcf-11e4-9c9c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0d2eff9a-bfcf-11e4-9c9c-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0d2eff9a-bfcf-11e4-9c9c-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "0d2eff9a-bfcf-11e4-9c9c-705681abff85"], ["id", "0d311e74-bfcf-11e4-b079-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0d308cc0-bfcf-11e4-b905-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d2eff9a-bfcf-11e4-9c9c-705681abff85"]] Completed 200 OK in 12ms (Views: 2.5ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$/UjitOeUUynPxmueSLRfnODZ.yQYInsVdnG.tHhf4xYMWvFsPcHwm"], ["created_at", "2015-03-01 04:54:32.868420"], ["updated_at", "2015-03-01 04:54:32.868420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (3.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$TMZLsY0v5qmKtq7eazU0Zuq3H3KUgaAUw4CzcmfymllYqtJDZ07he"], ["created_at", "2015-03-01 04:54:32.872793"], ["updated_at", "2015-03-01 04:54:32.872793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.877604"], ["user_id", "0d355336-bfcf-11e4-b7ee-705681abff85"], ["created_at", "2015-03-01 04:54:32.878579"], ["updated_at", "2015-03-01 04:54:32.878579"], ["token", "oVEOg-3rVl3jMWMVGpGJ9_AbXZBxbcIAZ7gfvQIWC2g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.881988"], ["updated_at", "2015-03-01 04:54:32.881988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d355336-bfcf-11e4-b7ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d3760a4-bfcf-11e4-9717-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d355336-bfcf-11e4-b7ee-705681abff85"], ["organization_id", "0d3760a4-bfcf-11e4-9717-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.885236"], ["updated_at", "2015-03-01 04:54:32.885236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d35fd9a-bfcf-11e4-9a4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d3760a4-bfcf-11e4-9717-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d35fd9a-bfcf-11e4-9a4c-705681abff85"], ["organization_id", "0d3760a4-bfcf-11e4-9717-705681abff85"], ["created_at", "2015-03-01 04:54:32.888299"], ["updated_at", "2015-03-01 04:54:32.888299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$NhrubfQnnslaTJ9HF5I1EeF99SHeCxMcMcIiP6H5GGuInD4S8kuoq"], ["created_at", "2015-03-01 04:54:32.901471"], ["updated_at", "2015-03-01 04:54:32.901471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$9YJLqPQVI2PPPtu/pvHEVOzXDSyNGhPhrnl.MeeqEW749fLcqzw7."], ["created_at", "2015-03-01 04:54:32.906464"], ["updated_at", "2015-03-01 04:54:32.906464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.907969"], ["user_id", "0d3a6e3e-bfcf-11e4-914b-705681abff85"], ["created_at", "2015-03-01 04:54:32.908749"], ["updated_at", "2015-03-01 04:54:32.908749"], ["token", "whXmo3awdYhrvSJknW5tbPZRn64IoWCxAwMA_tMjhK0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.912317"], ["updated_at", "2015-03-01 04:54:32.912317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d3a6e3e-bfcf-11e4-914b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d3c03de-bfcf-11e4-afb2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d3a6e3e-bfcf-11e4-914b-705681abff85"], ["organization_id", "0d3c03de-bfcf-11e4-afb2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.916637"], ["updated_at", "2015-03-01 04:54:32.916637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d3b1dfc-bfcf-11e4-bbde-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d3c03de-bfcf-11e4-afb2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d3b1dfc-bfcf-11e4-bbde-705681abff85"], ["organization_id", "0d3c03de-bfcf-11e4-afb2-705681abff85"], ["created_at", "2015-03-01 04:54:32.920459"], ["updated_at", "2015-03-01 04:54:32.920459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:32.924941' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "whXmo3awdYhrvSJknW5tbPZRn64IoWCxAwMA_tMjhK0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:32.926410"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:32.927318"], ["id", "0d3b7ce8-bfcf-11e4-806f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d3a6e3e-bfcf-11e4-914b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0d3a6e3e-bfcf-11e4-914b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0d3a6e3e-bfcf-11e4-914b-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "0d3a6e3e-bfcf-11e4-914b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0d3c03de-bfcf-11e4-afb2-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d3a6e3e-bfcf-11e4-914b-705681abff85"]] Completed 200 OK in 12ms (Views: 3.9ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$KRRYH6n9YxK29CORoZo/7uVDNMJFGERgP0j/j78khezPNx/XvD8um"], ["created_at", "2015-03-01 04:54:32.942793"], ["updated_at", "2015-03-01 04:54:32.942793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$GKUrCMI51twRfwDos3LDauJ8Wz.zsnvZqF4ZCO/6G7k56ORCK7RWS"], ["created_at", "2015-03-01 04:54:32.947162"], ["updated_at", "2015-03-01 04:54:32.947162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.948702"], ["user_id", "0d40aa4c-bfcf-11e4-a58b-705681abff85"], ["created_at", "2015-03-01 04:54:32.949449"], ["updated_at", "2015-03-01 04:54:32.949449"], ["token", "v3Aqv_YbeuJwJNbAEoEvIppIW393ZQzLM4o1sQ6CdUQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.953138"], ["updated_at", "2015-03-01 04:54:32.953138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d40aa4c-bfcf-11e4-a58b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d423dd0-bfcf-11e4-a0f7-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d40aa4c-bfcf-11e4-a58b-705681abff85"], ["organization_id", "0d423dd0-bfcf-11e4-a0f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:32.956649"], ["updated_at", "2015-03-01 04:54:32.956649"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d41551e-bfcf-11e4-93a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d423dd0-bfcf-11e4-a0f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d41551e-bfcf-11e4-93a1-705681abff85"], ["organization_id", "0d423dd0-bfcf-11e4-a0f7-705681abff85"], ["created_at", "2015-03-01 04:54:32.962334"], ["updated_at", "2015-03-01 04:54:32.962334"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 20:54:32 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 04:54:32.967753' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v3Aqv_YbeuJwJNbAEoEvIppIW393ZQzLM4o1sQ6CdUQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 04:54:32.969363"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 04:54:32.970299"], ["id", "0d41b5ae-bfcf-11e4-8fbf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d40aa4c-bfcf-11e4-a58b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0d40aa4c-bfcf-11e4-a58b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0d40aa4c-bfcf-11e4-a58b-705681abff85' LIMIT 1 [["organization_id", "0d423dd0-bfcf-11e4-a0f7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "0d423dd0-bfcf-11e4-a0f7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0d423dd0-bfcf-11e4-a0f7-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d40aa4c-bfcf-11e4-a58b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0d423dd0-bfcf-11e4-a0f7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d41551e-bfcf-11e4-93a1-705681abff85"]] Completed 200 OK in 13ms (Views: 4.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$1Zz7E1dkqBjw1FQkybAg7eWCDcyODAIq4IRhGiw347Wx1CwP.bO32"], ["created_at", "2015-03-01 04:54:32.988464"], ["updated_at", "2015-03-01 04:54:32.988464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$EFJzrJVynia5zbBNezQpxu4UZYIZnZE077VY6l2d9dHijl.bJgG.S"], ["created_at", "2015-03-01 04:54:32.992691"], ["updated_at", "2015-03-01 04:54:32.992691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:32.994232"], ["user_id", "0d47a20c-bfcf-11e4-9572-705681abff85"], ["created_at", "2015-03-01 04:54:32.995016"], ["updated_at", "2015-03-01 04:54:32.995016"], ["token", "4RJBZnyglJrAwgK3eog7jgJ1yI-zhMQS5ELENJYnS_M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:32.998345"], ["updated_at", "2015-03-01 04:54:32.998345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d47a20c-bfcf-11e4-9572-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d4925dc-bfcf-11e4-912f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d47a20c-bfcf-11e4-9572-705681abff85"], ["organization_id", "0d4925dc-bfcf-11e4-912f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:33.002033"], ["updated_at", "2015-03-01 04:54:33.002033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d48452c-bfcf-11e4-9360-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d4925dc-bfcf-11e4-912f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d48452c-bfcf-11e4-9360-705681abff85"], ["organization_id", "0d4925dc-bfcf-11e4-912f-705681abff85"], ["created_at", "2015-03-01 04:54:33.005129"], ["updated_at", "2015-03-01 04:54:33.005129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$c7KhkN0podmKaD5kumggI.kYqjiODQ1eSjqGeItW9fxvXBmbQzX3e"], ["created_at", "2015-03-01 04:54:33.009306"], ["updated_at", "2015-03-01 04:54:33.009306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:33.010944"], ["user_id", "0d4acde2-bfcf-11e4-a2e9-705681abff85"], ["created_at", "2015-03-01 04:54:33.011683"], ["updated_at", "2015-03-01 04:54:33.011683"], ["token", "58XBuLJFc_sqVEi6n1Q6fueknA9j2InkE3gu2qHxwos"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0d4925dc-bfcf-11e4-912f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "0d4925dc-bfcf-11e4-912f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:33.025760"], ["updated_at", "2015-03-01 04:54:33.025760"], ["token", "622LMw_7EgJMaCFE-uQ_iUTFHkdpB6KvTqtOPOBsAvA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 20:54:33 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$lSnoXgwO5I2Pj3YKcnGGx.uUk57y6xaMZZyxwBZIXtC/TumYczZ.y"], ["created_at", "2015-03-01 04:54:33.058379"], ["updated_at", "2015-03-01 04:54:33.058379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$D/dxySualuYYNVeypqrNJORgEaMJvQA4AZLHfVTCtDUdHbkpUUmXe"], ["created_at", "2015-03-01 04:54:33.062936"], ["updated_at", "2015-03-01 04:54:33.062936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:33.064534"], ["user_id", "0d524dc4-bfcf-11e4-9a25-705681abff85"], ["created_at", "2015-03-01 04:54:33.065350"], ["updated_at", "2015-03-01 04:54:33.065350"], ["token", "GSKrABxvH6un5e_Sc_aoAmIDQjhDKl9loNuATKPvIFA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:33.068828"], ["updated_at", "2015-03-01 04:54:33.068828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d524dc4-bfcf-11e4-9a25-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d53e382-bfcf-11e4-9dce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d524dc4-bfcf-11e4-9a25-705681abff85"], ["organization_id", "0d53e382-bfcf-11e4-9dce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:33.072083"], ["updated_at", "2015-03-01 04:54:33.072083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d52fe54-bfcf-11e4-aa85-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d53e382-bfcf-11e4-9dce-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d52fe54-bfcf-11e4-aa85-705681abff85"], ["organization_id", "0d53e382-bfcf-11e4-9dce-705681abff85"], ["created_at", "2015-03-01 04:54:33.075160"], ["updated_at", "2015-03-01 04:54:33.075160"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$miKadKM4Y0s5/bX9wePDVOnfO.Qlxsa2m.3xNQ1JsRq8wJ0iJe6gi"], ["created_at", "2015-03-01 04:54:33.081808"], ["updated_at", "2015-03-01 04:54:33.081808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:33.083839"], ["user_id", "0d55eca4-bfcf-11e4-a96f-705681abff85"], ["created_at", "2015-03-01 04:54:33.084658"], ["updated_at", "2015-03-01 04:54:33.084658"], ["token", "TnXl0iN69jjT2xClkAZW7B0jKuDifkMvLuVTsXL2ync"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '0d53e382-bfcf-11e4-9dce-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "0d53e382-bfcf-11e4-9dce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:33.088519"], ["updated_at", "2015-03-01 04:54:33.088519"], ["token", "RbWI4E5OwSaGVTKJAjRmHIulRoLvm75TR5ceAabcAEk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 20:54:33 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$RD8pr/DEzed.16ba6f6hjO6jr7hivbKRkBmB0AwvoL/XZSGTWdS6S"], ["created_at", "2015-03-01 04:54:33.101895"], ["updated_at", "2015-03-01 04:54:33.101895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$/3hMvySgyLTYBCHxTLK2JORWHBV6mIkdy5hxJo2vALd99F5mn6a5K"], ["created_at", "2015-03-01 04:54:33.106718"], ["updated_at", "2015-03-01 04:54:33.106718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:33.108301"], ["user_id", "0d58f7a0-bfcf-11e4-a33c-705681abff85"], ["created_at", "2015-03-01 04:54:33.109079"], ["updated_at", "2015-03-01 04:54:33.109079"], ["token", "QNkLnyfNXxErWqqCiePDA-wBu1VxbIUrdxNLq24LeIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 04:54:33.113374"], ["updated_at", "2015-03-01 04:54:33.113374"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d58f7a0-bfcf-11e4-a33c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d5ab446-bfcf-11e4-84b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d58f7a0-bfcf-11e4-a33c-705681abff85"], ["organization_id", "0d5ab446-bfcf-11e4-84b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:33.118018"], ["updated_at", "2015-03-01 04:54:33.118018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d59acd6-bfcf-11e4-960d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d5ab446-bfcf-11e4-84b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d59acd6-bfcf-11e4-960d-705681abff85"], ["organization_id", "0d5ab446-bfcf-11e4-84b4-705681abff85"], ["created_at", "2015-03-01 04:54:33.121272"], ["updated_at", "2015-03-01 04:54:33.121272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$7SdN/4IIaONBmyy2iSegPO4Mq5hq4VQiWlLmErXLMSjLHRrntgEq."], ["created_at", "2015-03-01 04:54:33.125637"], ["updated_at", "2015-03-01 04:54:33.125637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 04:54:33.127152"], ["user_id", "0d5c8f3c-bfcf-11e4-835b-705681abff85"], ["created_at", "2015-03-01 04:54:33.127903"], ["updated_at", "2015-03-01 04:54:33.127903"], ["token", "WgTUaKuk6C97rfAXgc8g9Ql9UJUJarO67JqqwNafAZ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '0d5ab446-bfcf-11e4-84b4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "0d5ab446-bfcf-11e4-84b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 04:54:33.131630"], ["updated_at", "2015-03-01 04:54:33.131630"], ["token", "jL95pZdac3gVoDeqkXASFcAx5m97svuez-wt3a97rZQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 20:54:33 -0800  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$2wJNI/TSholc.j2ZWVbVPOfyVRcP8AyD.pNCLlalpO/zMDvR6ARf2"], ["created_at", "2015-03-01 05:02:21.936509"], ["updated_at", "2015-03-01 05:02:21.936509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$p.J0OFK4W4JxqUh2RuSJCOpfVLTixbvtRmBOpnMNVIRlAU3wNTGum"], ["created_at", "2015-03-01 05:02:21.943083"], ["updated_at", "2015-03-01 05:02:21.943083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:21.951221"], ["user_id", "24cb9950-bfd0-11e4-9f40-705681abff85"], ["created_at", "2015-03-01 05:02:21.958860"], ["updated_at", "2015-03-01 05:02:21.958860"], ["token", "SfJ178JrOhJrKqw74uMoiLzfmb8EuxYecx8np7rnbag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:21.999448"], ["updated_at", "2015-03-01 05:02:21.999448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24cb9950-bfd0-11e4-9f40-705681abff85' AND "clubhouse_memberships"."organization_id" = '24d5288a-bfd0-11e4-9416-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24cb9950-bfd0-11e4-9f40-705681abff85"], ["organization_id", "24d5288a-bfd0-11e4-9416-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.015084"], ["updated_at", "2015-03-01 05:02:22.015084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24cc6da8-bfd0-11e4-9d4a-705681abff85' AND "clubhouse_memberships"."organization_id" = '24d5288a-bfd0-11e4-9416-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24cc6da8-bfd0-11e4-9d4a-705681abff85"], ["organization_id", "24d5288a-bfd0-11e4-9416-705681abff85"], ["created_at", "2015-03-01 05:02:22.018842"], ["updated_at", "2015-03-01 05:02:22.018842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$jLt9uaW4gv8uubEoTpUIweaMjBr/LmwALl3R3lduRMOMbc2fUTfce"], ["created_at", "2015-03-01 05:02:22.054841"], ["updated_at", "2015-03-01 05:02:22.054841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$l9W.2wngjoKnrNaDZzoYB..MHRTPzVABlHiKcjt7zKjNR2RN1pmc."], ["created_at", "2015-03-01 05:02:22.059459"], ["updated_at", "2015-03-01 05:02:22.059459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.061065"], ["user_id", "24dd819c-bfd0-11e4-94bb-705681abff85"], ["created_at", "2015-03-01 05:02:22.061865"], ["updated_at", "2015-03-01 05:02:22.061865"], ["token", "gLBjpx5hbsS8Y5dzKNUJk7drOY-pT5hdTPFYqXSmabg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.065099"], ["updated_at", "2015-03-01 05:02:22.065099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24dd819c-bfd0-11e4-94bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '24df0986-bfd0-11e4-809e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24dd819c-bfd0-11e4-94bb-705681abff85"], ["organization_id", "24df0986-bfd0-11e4-809e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.068253"], ["updated_at", "2015-03-01 05:02:22.068253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24de2ffc-bfd0-11e4-a094-705681abff85' AND "clubhouse_memberships"."organization_id" = '24df0986-bfd0-11e4-809e-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24de2ffc-bfd0-11e4-a094-705681abff85"], ["organization_id", "24df0986-bfd0-11e4-809e-705681abff85"], ["created_at", "2015-03-01 05:02:22.071387"], ["updated_at", "2015-03-01 05:02:22.071387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/24df860e-bfd0-11e4-8db1-705681abff85" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"24df860e-bfd0-11e4-8db1-705681abff85", "membership"=>{}} Pollett::Session Load (1.1ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:22.077253' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gLBjpx5hbsS8Y5dzKNUJk7drOY-pT5hdTPFYqXSmabg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:22.084903"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:22.086633"], ["id", "24de93fc-bfd0-11e4-9c91-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24dd819c-bfd0-11e4-94bb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "24dd819c-bfd0-11e4-94bb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "24dd819c-bfd0-11e4-94bb-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "24dd819c-bfd0-11e4-94bb-705681abff85"], ["id", "24df860e-bfd0-11e4-8db1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "24df0986-bfd0-11e4-809e-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24dd819c-bfd0-11e4-94bb-705681abff85"]] Completed 200 OK in 42ms (Views: 8.0ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$8F17K4k/EuaRBRLe8LS8Yum3g2Dbkk4HA6hwcZmMeHCWSgEKhO9zO"], ["created_at", "2015-03-01 05:02:22.127202"], ["updated_at", "2015-03-01 05:02:22.127202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$.CL5M4GzfwwQQoxnL6wsieUWYuPsfLH1.q7Mxz2W1DRiVSzHyA6BW"], ["created_at", "2015-03-01 05:02:22.131901"], ["updated_at", "2015-03-01 05:02:22.131901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.133536"], ["user_id", "24e88920-bfd0-11e4-83f0-705681abff85"], ["created_at", "2015-03-01 05:02:22.134321"], ["updated_at", "2015-03-01 05:02:22.134321"], ["token", "4F5vtOFDMHe2Lesmmyle0hu_B4XHsQ7NfB9H7cIVlaE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.137546"], ["updated_at", "2015-03-01 05:02:22.137546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24e88920-bfd0-11e4-83f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '24ea18ee-bfd0-11e4-accd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24e88920-bfd0-11e4-83f0-705681abff85"], ["organization_id", "24ea18ee-bfd0-11e4-accd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.140891"], ["updated_at", "2015-03-01 05:02:22.140891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24e93e74-bfd0-11e4-92ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '24ea18ee-bfd0-11e4-accd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24e93e74-bfd0-11e4-92ff-705681abff85"], ["organization_id", "24ea18ee-bfd0-11e4-accd-705681abff85"], ["created_at", "2015-03-01 05:02:22.144167"], ["updated_at", "2015-03-01 05:02:22.144167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$UJ8.xtiZOOLorqy7MoZJvOrbDOszE1YJgHG0jEPoelnJVqlin8kbe"], ["created_at", "2015-03-01 05:02:22.157770"], ["updated_at", "2015-03-01 05:02:22.157770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$8gD8uH/tOQjQgeTcW1qmCOAyTim78Azd9hs2uT27j0sjbKhafhVP."], ["created_at", "2015-03-01 05:02:22.163155"], ["updated_at", "2015-03-01 05:02:22.163155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.164961"], ["user_id", "24ed37d6-bfd0-11e4-819c-705681abff85"], ["created_at", "2015-03-01 05:02:22.165763"], ["updated_at", "2015-03-01 05:02:22.165763"], ["token", "cE0iX_A754tfL9meU-8nNkU3KAGFgHMoNfRz2r3XZIA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.169434"], ["updated_at", "2015-03-01 05:02:22.169434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24ed37d6-bfd0-11e4-819c-705681abff85' AND "clubhouse_memberships"."organization_id" = '24eefb52-bfd0-11e4-a784-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24ed37d6-bfd0-11e4-819c-705681abff85"], ["organization_id", "24eefb52-bfd0-11e4-a784-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.173985"], ["updated_at", "2015-03-01 05:02:22.173985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24ee072e-bfd0-11e4-9e5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '24eefb52-bfd0-11e4-a784-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24ee072e-bfd0-11e4-9e5c-705681abff85"], ["organization_id", "24eefb52-bfd0-11e4-a784-705681abff85"], ["created_at", "2015-03-01 05:02:22.178466"], ["updated_at", "2015-03-01 05:02:22.178466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/24f05c4a-bfd0-11e4-aa48-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"24f05c4a-bfd0-11e4-aa48-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:22.183687' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cE0iX_A754tfL9meU-8nNkU3KAGFgHMoNfRz2r3XZIA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:22.185247"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:22.186234"], ["id", "24ee7466-bfd0-11e4-9a51-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24ed37d6-bfd0-11e4-819c-705681abff85"]] Clubhouse::Organization Load (1.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "24ed37d6-bfd0-11e4-819c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24ed37d6-bfd0-11e4-819c-705681abff85' LIMIT 1 [["organization_id", "24eefb52-bfd0-11e4-a784-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "24eefb52-bfd0-11e4-a784-705681abff85"], ["id", "24f05c4a-bfd0-11e4-aa48-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "24eefb52-bfd0-11e4-a784-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24ee072e-bfd0-11e4-9e5c-705681abff85"]] Completed 200 OK in 16ms (Views: 2.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (1.4ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$s.rVmZuJSHx4PPWTjCJy5O80IgmvCEOHtKPqc0VSiF9s1WjD6MyDq"], ["created_at", "2015-03-01 05:02:22.239848"], ["updated_at", "2015-03-01 05:02:22.239848"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$fcu7OFRdWMzk2ACrRhahmum0CVboQH43xDquYYFsvDXRQlEnHc176"], ["created_at", "2015-03-01 05:02:22.249847"], ["updated_at", "2015-03-01 05:02:22.249847"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.254353"], ["user_id", "24f9ecc4-bfd0-11e4-9f27-705681abff85"], ["created_at", "2015-03-01 05:02:22.256491"], ["updated_at", "2015-03-01 05:02:22.256491"], ["token", "lS7hvINK4D9qN2-VWgJijPdqt_iusttzphFK4ebLWDM"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.265565"], ["updated_at", "2015-03-01 05:02:22.265565"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24f9ecc4-bfd0-11e4-9f27-705681abff85' AND "clubhouse_memberships"."organization_id" = '24fdbd22-bfd0-11e4-a684-705681abff85') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24f9ecc4-bfd0-11e4-9f27-705681abff85"], ["organization_id", "24fdbd22-bfd0-11e4-a684-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.272940"], ["updated_at", "2015-03-01 05:02:22.272940"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24fb64fa-bfd0-11e4-a05c-705681abff85' AND "clubhouse_memberships"."organization_id" = '24fdbd22-bfd0-11e4-a684-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24fb64fa-bfd0-11e4-a05c-705681abff85"], ["organization_id", "24fdbd22-bfd0-11e4-a684-705681abff85"], ["created_at", "2015-03-01 05:02:22.287923"], ["updated_at", "2015-03-01 05:02:22.287923"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:22.302463' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lS7hvINK4D9qN2-VWgJijPdqt_iusttzphFK4ebLWDM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:22.308545"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:22.311321"], ["id", "24fc7c28-bfd0-11e4-a04a-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24f9ecc4-bfd0-11e4-9f27-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "24f9ecc4-bfd0-11e4-9f27-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24f9ecc4-bfd0-11e4-9f27-705681abff85' LIMIT 1 [["organization_id", "24fdbd22-bfd0-11e4-a684-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "24fdbd22-bfd0-11e4-a684-705681abff85"]] Clubhouse::Organization Load (1.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "24fdbd22-bfd0-11e4-a684-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24f9ecc4-bfd0-11e4-9f27-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "24fdbd22-bfd0-11e4-a684-705681abff85"]] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24fb64fa-bfd0-11e4-a05c-705681abff85"]] Completed 200 OK in 36ms (Views: 13.3ms | ActiveRecord: 4.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$lLV3TwKxbE5QzVEecXSGKOgpjrLBb.IMv0MhHoWGLnSIFfUmAoMbK"], ["created_at", "2015-03-01 05:02:22.349145"], ["updated_at", "2015-03-01 05:02:22.349145"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (1.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$RAaxYwrlBhn51AEGE3c1AOmoG55aGtVWTJM0/rthxnkLoJQiIFcES"], ["created_at", "2015-03-01 05:02:22.358932"], ["updated_at", "2015-03-01 05:02:22.358932"]]  (1.9ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.365601"], ["user_id", "250a87f0-bfd0-11e4-8ebf-705681abff85"], ["created_at", "2015-03-01 05:02:22.368136"], ["updated_at", "2015-03-01 05:02:22.368136"], ["token", "iJd0t7Ulxs1f9uEgZ6zSD1bJxa81FXLOAxKWQK43Oa0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.376663"], ["updated_at", "2015-03-01 05:02:22.376663"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '250a87f0-bfd0-11e4-8ebf-705681abff85' AND "clubhouse_memberships"."organization_id" = '250eb956-bfd0-11e4-83d1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "250a87f0-bfd0-11e4-8ebf-705681abff85"], ["organization_id", "250eb956-bfd0-11e4-83d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.383543"], ["updated_at", "2015-03-01 05:02:22.383543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '250c23d0-bfd0-11e4-88ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '250eb956-bfd0-11e4-83d1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "250c23d0-bfd0-11e4-88ca-705681abff85"], ["organization_id", "250eb956-bfd0-11e4-83d1-705681abff85"], ["created_at", "2015-03-01 05:02:22.387292"], ["updated_at", "2015-03-01 05:02:22.387292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:22.393651' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iJd0t7Ulxs1f9uEgZ6zSD1bJxa81FXLOAxKWQK43Oa0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:22.395241"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:22.398536"], ["id", "250d7168-bfd0-11e4-9f4c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "250a87f0-bfd0-11e4-8ebf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "250a87f0-bfd0-11e4-8ebf-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "250a87f0-bfd0-11e4-8ebf-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "250a87f0-bfd0-11e4-8ebf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "250eb956-bfd0-11e4-83d1-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "250a87f0-bfd0-11e4-8ebf-705681abff85"]] Completed 200 OK in 17ms (Views: 4.7ms | ActiveRecord: 1.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$O51v6CrCsZ.Pj0W7WXLA5uhZRjnwhHxYnDE2sIccGgF.x1OOhojvG"], ["created_at", "2015-03-01 05:02:22.417869"], ["updated_at", "2015-03-01 05:02:22.417869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Tols4tdjRJRfPIDf9XeRz.4B6kI1yEjWKa1C221trwK81Bam3oxA6"], ["created_at", "2015-03-01 05:02:22.422132"], ["updated_at", "2015-03-01 05:02:22.422132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.423671"], ["user_id", "2514e0ce-bfd0-11e4-8392-705681abff85"], ["created_at", "2015-03-01 05:02:22.424753"], ["updated_at", "2015-03-01 05:02:22.424753"], ["token", "RokWFYsUOAuiRwANFWeoi3dHjrG__K-UL6Vo_sZm1gA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.428406"], ["updated_at", "2015-03-01 05:02:22.428406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2514e0ce-bfd0-11e4-8392-705681abff85' AND "clubhouse_memberships"."organization_id" = '251682f8-bfd0-11e4-9f56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2514e0ce-bfd0-11e4-8392-705681abff85"], ["organization_id", "251682f8-bfd0-11e4-9f56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.432155"], ["updated_at", "2015-03-01 05:02:22.432155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '251583f8-bfd0-11e4-b1c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '251682f8-bfd0-11e4-9f56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "251583f8-bfd0-11e4-b1c9-705681abff85"], ["organization_id", "251682f8-bfd0-11e4-9f56-705681abff85"], ["created_at", "2015-03-01 05:02:22.435295"], ["updated_at", "2015-03-01 05:02:22.435295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$47Jnoy6NVIdlND9RD6OfZe/OINQr3P6/g564mfRz6VZEWFe5d7p1y"], ["created_at", "2015-03-01 05:02:22.447701"], ["updated_at", "2015-03-01 05:02:22.447701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$vTiq81BMklWOqj.EBfFbJeBQjaWKvgJ3O4t17VwORKMPrqmi1/cv6"], ["created_at", "2015-03-01 05:02:22.453057"], ["updated_at", "2015-03-01 05:02:22.453057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.454976"], ["user_id", "25197800-bfd0-11e4-bb34-705681abff85"], ["created_at", "2015-03-01 05:02:22.455847"], ["updated_at", "2015-03-01 05:02:22.455847"], ["token", "p2qLAwQNNcpfCBVSdgb5ctt6doTvlETk-n4QyOhceng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.460032"], ["updated_at", "2015-03-01 05:02:22.460032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25197800-bfd0-11e4-bb34-705681abff85' AND "clubhouse_memberships"."organization_id" = '251b63e0-bfd0-11e4-b169-705681abff85') LIMIT 1 SQL (6.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25197800-bfd0-11e4-bb34-705681abff85"], ["organization_id", "251b63e0-bfd0-11e4-b169-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.464449"], ["updated_at", "2015-03-01 05:02:22.464449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '251a4794-bfd0-11e4-b14c-705681abff85' AND "clubhouse_memberships"."organization_id" = '251b63e0-bfd0-11e4-b169-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "251a4794-bfd0-11e4-b14c-705681abff85"], ["organization_id", "251b63e0-bfd0-11e4-b169-705681abff85"], ["created_at", "2015-03-01 05:02:22.481588"], ["updated_at", "2015-03-01 05:02:22.481588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/251e9a9c-bfd0-11e4-ab0b-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"251e9a9c-bfd0-11e4-ab0b-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:22.486469' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p2qLAwQNNcpfCBVSdgb5ctt6doTvlETk-n4QyOhceng"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:22.488346"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:22.490245"], ["id", "251ab65c-bfd0-11e4-90b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25197800-bfd0-11e4-bb34-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25197800-bfd0-11e4-bb34-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '25197800-bfd0-11e4-bb34-705681abff85' LIMIT 1 [["organization_id", "251b63e0-bfd0-11e4-b169-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "251b63e0-bfd0-11e4-b169-705681abff85"], ["id", "251e9a9c-bfd0-11e4-ab0b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "251a4794-bfd0-11e4-b14c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "251b63e0-bfd0-11e4-b169-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '251a4794-bfd0-11e4-b14c-705681abff85' AND "clubhouse_memberships"."id" != '251e9a9c-bfd0-11e4-ab0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '251b63e0-bfd0-11e4-b169-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:02:22.501930"], ["id", "251e9a9c-bfd0-11e4-ab0b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.2ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$pywUcgvnuOlJshFupOetDe4vhINLmDdnaBZknEXGO/sadX5jfxX5u"], ["created_at", "2015-03-01 05:02:22.513939"], ["updated_at", "2015-03-01 05:02:22.513939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$qn7SYvGSot608bIysFDiNOwhOEpsNsA7mNefxLkVTWnQY4U87YcEy"], ["created_at", "2015-03-01 05:02:22.519496"], ["updated_at", "2015-03-01 05:02:22.519496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.521096"], ["user_id", "25239236-bfd0-11e4-bc9f-705681abff85"], ["created_at", "2015-03-01 05:02:22.521839"], ["updated_at", "2015-03-01 05:02:22.521839"], ["token", "sIlpukNa4lHmvMfvS-BdDbOhBbMRtSlm6pT-W6P9oxs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.525627"], ["updated_at", "2015-03-01 05:02:22.525627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25239236-bfd0-11e4-bc9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '25255102-bfd0-11e4-bfa4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25239236-bfd0-11e4-bc9f-705681abff85"], ["organization_id", "25255102-bfd0-11e4-bfa4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.529199"], ["updated_at", "2015-03-01 05:02:22.529199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25246198-bfd0-11e4-8a1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '25255102-bfd0-11e4-bfa4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25246198-bfd0-11e4-8a1b-705681abff85"], ["organization_id", "25255102-bfd0-11e4-bfa4-705681abff85"], ["created_at", "2015-03-01 05:02:22.533061"], ["updated_at", "2015-03-01 05:02:22.533061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/2525eca2-bfd0-11e4-ad17-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"2525eca2-bfd0-11e4-ad17-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:22.539537' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sIlpukNa4lHmvMfvS-BdDbOhBbMRtSlm6pT-W6P9oxs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:22.540970"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:22.543068"], ["id", "2524c3ae-bfd0-11e4-b7e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25239236-bfd0-11e4-bc9f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25239236-bfd0-11e4-bc9f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '25239236-bfd0-11e4-bc9f-705681abff85' LIMIT 1 [["organization_id", "25255102-bfd0-11e4-bfa4-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "25255102-bfd0-11e4-bfa4-705681abff85"], ["id", "2525eca2-bfd0-11e4-ad17-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25239236-bfd0-11e4-bc9f-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$tzMzRKOQVJZsT7KYybXmK.MVDqr93rOsUp9AYUQGqBRwvQG9FHXDS"], ["created_at", "2015-03-01 05:02:22.556822"], ["updated_at", "2015-03-01 05:02:22.556822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$T6x/qF3gfEM0ESYxNZPIgOkpBMqxwMJG5akXHryZKjXxAzkRWshxq"], ["created_at", "2015-03-01 05:02:22.563502"], ["updated_at", "2015-03-01 05:02:22.563502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.566187"], ["user_id", "252a16ce-bfd0-11e4-906c-705681abff85"], ["created_at", "2015-03-01 05:02:22.567393"], ["updated_at", "2015-03-01 05:02:22.567393"], ["token", "6tFJDz9e3ebG6jEsK5Ho7b-G5eLV4RlLKIG2KYEK760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.572981"], ["updated_at", "2015-03-01 05:02:22.572981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '252a16ce-bfd0-11e4-906c-705681abff85' AND "clubhouse_memberships"."organization_id" = '252c9430-bfd0-11e4-b6b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "252a16ce-bfd0-11e4-906c-705681abff85"], ["organization_id", "252c9430-bfd0-11e4-b6b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.577515"], ["updated_at", "2015-03-01 05:02:22.577515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '252b2d02-bfd0-11e4-9f01-705681abff85' AND "clubhouse_memberships"."organization_id" = '252c9430-bfd0-11e4-b6b3-705681abff85') LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "252b2d02-bfd0-11e4-9f01-705681abff85"], ["organization_id", "252c9430-bfd0-11e4-b6b3-705681abff85"], ["created_at", "2015-03-01 05:02:22.581116"], ["updated_at", "2015-03-01 05:02:22.581116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$QW8QXjPEnfgJaLox2jbX0OKipE7GmpYqdW6bFhdd..cdEFnaksXxi"], ["created_at", "2015-03-01 05:02:22.596990"], ["updated_at", "2015-03-01 05:02:22.596990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$HhT8JlnSoi9WS0/o/XWhSuhyYwJuEUrPP3T.UIZ8onGHrePnDWVMq"], ["created_at", "2015-03-01 05:02:22.602379"], ["updated_at", "2015-03-01 05:02:22.602379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.604105"], ["user_id", "25304846-bfd0-11e4-a40f-705681abff85"], ["created_at", "2015-03-01 05:02:22.605109"], ["updated_at", "2015-03-01 05:02:22.605109"], ["token", "ik2OOL3ZLbdOGV2tIqfFD0e4dZy9em5nz__34E9KAu0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.609195"], ["updated_at", "2015-03-01 05:02:22.609195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25304846-bfd0-11e4-a40f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2532198c-bfd0-11e4-ae2f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25304846-bfd0-11e4-a40f-705681abff85"], ["organization_id", "2532198c-bfd0-11e4-ae2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.614119"], ["updated_at", "2015-03-01 05:02:22.614119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '253109e8-bfd0-11e4-9612-705681abff85' AND "clubhouse_memberships"."organization_id" = '2532198c-bfd0-11e4-ae2f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "253109e8-bfd0-11e4-9612-705681abff85"], ["organization_id", "2532198c-bfd0-11e4-ae2f-705681abff85"], ["created_at", "2015-03-01 05:02:22.617690"], ["updated_at", "2015-03-01 05:02:22.617690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/25335d4c-bfd0-11e4-a6de-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"25335d4c-bfd0-11e4-a6de-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:22.622746' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ik2OOL3ZLbdOGV2tIqfFD0e4dZy9em5nz__34E9KAu0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:22.624325"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:22.625660"], ["id", "253180bc-bfd0-11e4-97f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25304846-bfd0-11e4-a40f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25304846-bfd0-11e4-a40f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '25304846-bfd0-11e4-a40f-705681abff85' LIMIT 1 [["organization_id", "2532198c-bfd0-11e4-ae2f-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "2532198c-bfd0-11e4-ae2f-705681abff85"], ["id", "25335d4c-bfd0-11e4-a6de-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "253109e8-bfd0-11e4-9612-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "25335d4c-bfd0-11e4-a6de-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$Bo5UlD8cQeCJs/H5iOL7bel4En2mSJVbuHIm1yMFc.n23gBGzOfDG"], ["created_at", "2015-03-01 05:02:22.642127"], ["updated_at", "2015-03-01 05:02:22.642127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$8qzbtZR7Kq9qRymRokwjn.X6nCFmChxHG2mBD.opY8WyUkFNrT/D."], ["created_at", "2015-03-01 05:02:22.646767"], ["updated_at", "2015-03-01 05:02:22.646767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.648320"], ["user_id", "2537190a-bfd0-11e4-9432-705681abff85"], ["created_at", "2015-03-01 05:02:22.649104"], ["updated_at", "2015-03-01 05:02:22.649104"], ["token", "QzrerXgR-avj_RNeOTVHa6HePV4zUpEs1Eadx8uf3DM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.652487"], ["updated_at", "2015-03-01 05:02:22.652487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2537190a-bfd0-11e4-9432-705681abff85' AND "clubhouse_memberships"."organization_id" = '2538aaea-bfd0-11e4-9672-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2537190a-bfd0-11e4-9432-705681abff85"], ["organization_id", "2538aaea-bfd0-11e4-9672-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.656241"], ["updated_at", "2015-03-01 05:02:22.656241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2537cbfc-bfd0-11e4-a457-705681abff85' AND "clubhouse_memberships"."organization_id" = '2538aaea-bfd0-11e4-9672-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2537cbfc-bfd0-11e4-a457-705681abff85"], ["organization_id", "2538aaea-bfd0-11e4-9672-705681abff85"], ["created_at", "2015-03-01 05:02:22.659740"], ["updated_at", "2015-03-01 05:02:22.659740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/25394644-bfd0-11e4-857d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"25394644-bfd0-11e4-857d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:22.664894' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QzrerXgR-avj_RNeOTVHa6HePV4zUpEs1Eadx8uf3DM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:22.666395"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:22.667480"], ["id", "25382fa2-bfd0-11e4-98af-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2537190a-bfd0-11e4-9432-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2537190a-bfd0-11e4-9432-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2537190a-bfd0-11e4-9432-705681abff85' LIMIT 1 [["organization_id", "2538aaea-bfd0-11e4-9672-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "2538aaea-bfd0-11e4-9672-705681abff85"], ["id", "25394644-bfd0-11e4-857d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2537190a-bfd0-11e4-9432-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$firlIIEe/bNLxCogRV/fsuA/29WqQXp1/lM2nIdBuiiJzlBRltwrm"], ["created_at", "2015-03-01 05:02:22.682905"], ["updated_at", "2015-03-01 05:02:22.682905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (3.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$mIWm/iLNQ6kO6wdwVLKj/OHJ4mCTXqParBzITk498Etn129O9sXcm"], ["created_at", "2015-03-01 05:02:22.688061"], ["updated_at", "2015-03-01 05:02:22.688061"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.694370"], ["user_id", "253d5536-bfd0-11e4-968f-705681abff85"], ["created_at", "2015-03-01 05:02:22.695722"], ["updated_at", "2015-03-01 05:02:22.695722"], ["token", "NHtuGkr62FcAg0XOza6yQhVqipgywZ2PtCKahrG7vDI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.702481"], ["updated_at", "2015-03-01 05:02:22.702481"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '253d5536-bfd0-11e4-968f-705681abff85' AND "clubhouse_memberships"."organization_id" = '254068fc-bfd0-11e4-bdc9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "253d5536-bfd0-11e4-968f-705681abff85"], ["organization_id", "254068fc-bfd0-11e4-bdc9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.708434"], ["updated_at", "2015-03-01 05:02:22.708434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '253e1f20-bfd0-11e4-83b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '254068fc-bfd0-11e4-bdc9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "253e1f20-bfd0-11e4-83b6-705681abff85"], ["organization_id", "254068fc-bfd0-11e4-bdc9-705681abff85"], ["created_at", "2015-03-01 05:02:22.713264"], ["updated_at", "2015-03-01 05:02:22.713264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$Yjqou/HZlk5OJyp.CGgZKe6FQdMsA2vdCWHy3bhJ6y3Jt5tKaQwqS"], ["created_at", "2015-03-01 05:02:22.718776"], ["updated_at", "2015-03-01 05:02:22.718776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.720586"], ["user_id", "2542cec6-bfd0-11e4-b25b-705681abff85"], ["created_at", "2015-03-01 05:02:22.721437"], ["updated_at", "2015-03-01 05:02:22.721437"], ["token", "ybPaLcwGhKIabP4nbQoIAY_8uF2uvlVY-YKjKiPXlCs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (3.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '254068fc-bfd0-11e4-bdc9-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "254068fc-bfd0-11e4-bdc9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.736648"], ["updated_at", "2015-03-01 05:02:22.736648"], ["token", "klDzcg5SBh5_JHEFQgK-C-c4DhsEURhZg6ec1hj_-Co"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$ZtDAUtmI4ZR8VPJq5Jerm.AHTGDydTRUBYDX.E.ZUa5.LPqAvB3Va"], ["created_at", "2015-03-01 05:02:22.751350"], ["updated_at", "2015-03-01 05:02:22.751350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$PGQzwpwqtHS1JZliH3gCkeYxFqCbWqzHswzquaGEOVMQRloUqoAZG"], ["created_at", "2015-03-01 05:02:22.757420"], ["updated_at", "2015-03-01 05:02:22.757420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.759406"], ["user_id", "2547cb88-bfd0-11e4-b8bd-705681abff85"], ["created_at", "2015-03-01 05:02:22.760333"], ["updated_at", "2015-03-01 05:02:22.760333"], ["token", "Q3AKK_UfmT9OlVvdl07bGORP63mmclKvnXXyCIlhM5A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.763937"], ["updated_at", "2015-03-01 05:02:22.763937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2547cb88-bfd0-11e4-b8bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '2549ac64-bfd0-11e4-877c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2547cb88-bfd0-11e4-b8bd-705681abff85"], ["organization_id", "2549ac64-bfd0-11e4-877c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.767163"], ["updated_at", "2015-03-01 05:02:22.767163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2548b96c-bfd0-11e4-9942-705681abff85' AND "clubhouse_memberships"."organization_id" = '2549ac64-bfd0-11e4-877c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2548b96c-bfd0-11e4-9942-705681abff85"], ["organization_id", "2549ac64-bfd0-11e4-877c-705681abff85"], ["created_at", "2015-03-01 05:02:22.770226"], ["updated_at", "2015-03-01 05:02:22.770226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$L1DQCWE9aA2SmfKft9mDju9BKGoCBuP4WYZcHSTYw2GdpPdZCYLgi"], ["created_at", "2015-03-01 05:02:22.774556"], ["updated_at", "2015-03-01 05:02:22.774556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.776202"], ["user_id", "254b4cae-bfd0-11e4-b791-705681abff85"], ["created_at", "2015-03-01 05:02:22.777165"], ["updated_at", "2015-03-01 05:02:22.777165"], ["token", "Rnk5pX1HDjZbi_O0QbsIs1wxF_2tsXlNy_EGDoajxh0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '2549ac64-bfd0-11e4-877c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "2549ac64-bfd0-11e4-877c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.781401"], ["updated_at", "2015-03-01 05:02:22.781401"], ["token", "Nr8jn2wnTh-nXif8Vyun8YgD_mBgD8ZrGZIwNIHNZ8o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Nr8jn2wnTh-nXif8Vyun8YgD_mBgD8ZrGZIwNIHNZ8o", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:22.786291' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Rnk5pX1HDjZbi_O0QbsIs1wxF_2tsXlNy_EGDoajxh0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:22.788180"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:22.790080"], ["id", "254bbf0e-bfd0-11e4-a409-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "254b4cae-bfd0-11e4-b791-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "254b4cae-bfd0-11e4-b791-705681abff85"]] Completed 400 Bad Request in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$5qL0UirD1dwxdfbClrwiPexbxH7MFhUsi8TWmIEOprA6l154mkCX."], ["created_at", "2015-03-01 05:02:22.804881"], ["updated_at", "2015-03-01 05:02:22.804881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$g2R0ziZYDKrjrduYsuoXWuaKeBGxnRXUDGJ5qjbngxJDl3x9W1eJe"], ["created_at", "2015-03-01 05:02:22.809605"], ["updated_at", "2015-03-01 05:02:22.809605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.811470"], ["user_id", "254ff18c-bfd0-11e4-9e08-705681abff85"], ["created_at", "2015-03-01 05:02:22.812281"], ["updated_at", "2015-03-01 05:02:22.812281"], ["token", "3Tl7b2dk04r64BGGxc-n-Fr1hA7tdm6fa2JgUMCp65Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:22.815619"], ["updated_at", "2015-03-01 05:02:22.815619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '254ff18c-bfd0-11e4-9e08-705681abff85' AND "clubhouse_memberships"."organization_id" = '25518e84-bfd0-11e4-a426-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "254ff18c-bfd0-11e4-9e08-705681abff85"], ["organization_id", "25518e84-bfd0-11e4-a426-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.818848"], ["updated_at", "2015-03-01 05:02:22.818848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2550abae-bfd0-11e4-8e8f-705681abff85' AND "clubhouse_memberships"."organization_id" = '25518e84-bfd0-11e4-a426-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2550abae-bfd0-11e4-8e8f-705681abff85"], ["organization_id", "25518e84-bfd0-11e4-a426-705681abff85"], ["created_at", "2015-03-01 05:02:22.821888"], ["updated_at", "2015-03-01 05:02:22.821888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$o0pJZgqEgeJAN/UjBSnhF.Q8Ir82osxlPO6AWsC0oyFfcH6P6cqVi"], ["created_at", "2015-03-01 05:02:22.826148"], ["updated_at", "2015-03-01 05:02:22.826148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:22.827714"], ["user_id", "25532c8a-bfd0-11e4-83e2-705681abff85"], ["created_at", "2015-03-01 05:02:22.828477"], ["updated_at", "2015-03-01 05:02:22.828477"], ["token", "4uiRufRZMQCdGKNk8SQzDKk-TVB77DJy-4sH9aD7mIQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '25518e84-bfd0-11e4-a426-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "25518e84-bfd0-11e4-a426-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:22.832134"], ["updated_at", "2015-03-01 05:02:22.832134"], ["token", "dJ6SU2hSNqgM_43ssh1itJlUWWQeMbdvN-rWyDReRfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:02:22 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:22.837728' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4uiRufRZMQCdGKNk8SQzDKk-TVB77DJy-4sH9aD7mIQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:22.839205"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:22.840254"], ["id", "25538d56-bfd0-11e4-bb01-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25532c8a-bfd0-11e4-83e2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25532c8a-bfd0-11e4-83e2-705681abff85"]] Completed 400 Bad Request in 7ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$3dKOphjfUW9wdu7YOP0RIOMkT8RAr9wFRcAipspJPOpvGXxy3XpIO"], ["created_at", "2015-03-01 05:02:53.299511"], ["updated_at", "2015-03-01 05:02:53.299511"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$gIP8OAD36poWjZIkFYbOlevl7hqrm3rwxe5Fu7pM46etBwhsWeSQa"], ["created_at", "2015-03-01 05:02:53.312387"], ["updated_at", "2015-03-01 05:02:53.312387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.320762"], ["user_id", "377d38e2-bfd0-11e4-8f41-705681abff85"], ["created_at", "2015-03-01 05:02:53.326925"], ["updated_at", "2015-03-01 05:02:53.326925"], ["token", "wNYetyqVNcnKkx-dW6-4yaxTUPzPvji_Qa8iir1vuIU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.385721"], ["updated_at", "2015-03-01 05:02:53.385721"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '377d38e2-bfd0-11e4-8f41-705681abff85' AND "clubhouse_memberships"."organization_id" = '378a4a64-bfd0-11e4-a1e3-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "377d38e2-bfd0-11e4-8f41-705681abff85"], ["organization_id", "378a4a64-bfd0-11e4-a1e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.400977"], ["updated_at", "2015-03-01 05:02:53.400977"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '377f02d0-bfd0-11e4-9abd-705681abff85' AND "clubhouse_memberships"."organization_id" = '378a4a64-bfd0-11e4-a1e3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "377f02d0-bfd0-11e4-9abd-705681abff85"], ["organization_id", "378a4a64-bfd0-11e4-a1e3-705681abff85"], ["created_at", "2015-03-01 05:02:53.406467"], ["updated_at", "2015-03-01 05:02:53.406467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:53.433196' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wNYetyqVNcnKkx-dW6-4yaxTUPzPvji_Qa8iir1vuIU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:53.440505"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:53.441716"], ["id", "37819fb8-bfd0-11e4-9dc1-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "377d38e2-bfd0-11e4-8f41-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "377d38e2-bfd0-11e4-8f41-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "377d38e2-bfd0-11e4-8f41-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "377d38e2-bfd0-11e4-8f41-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "378a4a64-bfd0-11e4-a1e3-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "377d38e2-bfd0-11e4-8f41-705681abff85"]] Completed 200 OK in 40ms (Views: 7.9ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$ggDbFX3kNzFOAOQR06mm9uP/1i3tAAc1lEYqL.75526bs7yXo01pe"], ["created_at", "2015-03-01 05:02:53.482095"], ["updated_at", "2015-03-01 05:02:53.482095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$d5oCmRBo7M4vZlN5uSyp2OUAqCIe3k9OjO4TZwrOHhSTN7UTp0dQ."], ["created_at", "2015-03-01 05:02:53.486321"], ["updated_at", "2015-03-01 05:02:53.486321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.487864"], ["user_id", "3798e8bc-bfd0-11e4-8119-705681abff85"], ["created_at", "2015-03-01 05:02:53.488715"], ["updated_at", "2015-03-01 05:02:53.488715"], ["token", "enVVG6uJ5cHNvQ_WsYcx3CbGticVxbfPGxZmr5phwic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.492165"], ["updated_at", "2015-03-01 05:02:53.492165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3798e8bc-bfd0-11e4-8119-705681abff85' AND "clubhouse_memberships"."organization_id" = '379a6eb2-bfd0-11e4-9799-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3798e8bc-bfd0-11e4-8119-705681abff85"], ["organization_id", "379a6eb2-bfd0-11e4-9799-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.495584"], ["updated_at", "2015-03-01 05:02:53.495584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37998a06-bfd0-11e4-a694-705681abff85' AND "clubhouse_memberships"."organization_id" = '379a6eb2-bfd0-11e4-9799-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37998a06-bfd0-11e4-a694-705681abff85"], ["organization_id", "379a6eb2-bfd0-11e4-9799-705681abff85"], ["created_at", "2015-03-01 05:02:53.498786"], ["updated_at", "2015-03-01 05:02:53.498786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$iyOS6mf90RFF2lv9LxeWhe3yWTapr9Pi/AYyhqRrTBDtVO3r.FEnS"], ["created_at", "2015-03-01 05:02:53.511378"], ["updated_at", "2015-03-01 05:02:53.511378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$8SwQ62ZkiiiPGvmDQmbgC.AjXP2ppLuHkAkJiy3VseLaaZmnfd/52"], ["created_at", "2015-03-01 05:02:53.516391"], ["updated_at", "2015-03-01 05:02:53.516391"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.518960"], ["user_id", "379d620c-bfd0-11e4-8acd-705681abff85"], ["created_at", "2015-03-01 05:02:53.519879"], ["updated_at", "2015-03-01 05:02:53.519879"], ["token", "nEybuDzoFQKfV0XOQld2y_ljoOk1IDUYVf1MhQjxKRA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.523964"], ["updated_at", "2015-03-01 05:02:53.523964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '379d620c-bfd0-11e4-8acd-705681abff85' AND "clubhouse_memberships"."organization_id" = '379f4ad6-bfd0-11e4-80b1-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "379d620c-bfd0-11e4-8acd-705681abff85"], ["organization_id", "379f4ad6-bfd0-11e4-80b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.527394"], ["updated_at", "2015-03-01 05:02:53.527394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '379e2926-bfd0-11e4-a470-705681abff85' AND "clubhouse_memberships"."organization_id" = '379f4ad6-bfd0-11e4-80b1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "379e2926-bfd0-11e4-a470-705681abff85"], ["organization_id", "379f4ad6-bfd0-11e4-80b1-705681abff85"], ["created_at", "2015-03-01 05:02:53.533055"], ["updated_at", "2015-03-01 05:02:53.533055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/37a0aff2-bfd0-11e4-a8ec-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"37a0aff2-bfd0-11e4-a8ec-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:53.538899' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nEybuDzoFQKfV0XOQld2y_ljoOk1IDUYVf1MhQjxKRA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:53.540830"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:53.541918"], ["id", "379ec2aa-bfd0-11e4-87bc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "379d620c-bfd0-11e4-8acd-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "379d620c-bfd0-11e4-8acd-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '379d620c-bfd0-11e4-8acd-705681abff85' LIMIT 1 [["organization_id", "379f4ad6-bfd0-11e4-80b1-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "379f4ad6-bfd0-11e4-80b1-705681abff85"], ["id", "37a0aff2-bfd0-11e4-a8ec-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "379e2926-bfd0-11e4-a470-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "37a0aff2-bfd0-11e4-a8ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$/mSobsInZBmQefV3CH..Qe1wgeD.4WWtuoTqxZZIXz4A42MN6ftMq"], ["created_at", "2015-03-01 05:02:53.558620"], ["updated_at", "2015-03-01 05:02:53.558620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$3pO9xhCBszIx6i.bxX4q9OGsoSRqHwfGB/Rt/m5dAkEy2caIVwvPW"], ["created_at", "2015-03-01 05:02:53.562853"], ["updated_at", "2015-03-01 05:02:53.562853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.564583"], ["user_id", "37a49612-bfd0-11e4-94f5-705681abff85"], ["created_at", "2015-03-01 05:02:53.565466"], ["updated_at", "2015-03-01 05:02:53.565466"], ["token", "zFOCgvjQuXN_T1cMUuvR2d8qgIo6grH72O2vQ1K7XeQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.569451"], ["updated_at", "2015-03-01 05:02:53.569451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37a49612-bfd0-11e4-94f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '37a63ad0-bfd0-11e4-8e3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37a49612-bfd0-11e4-94f5-705681abff85"], ["organization_id", "37a63ad0-bfd0-11e4-8e3d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.572740"], ["updated_at", "2015-03-01 05:02:53.572740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37a53734-bfd0-11e4-8cdc-705681abff85' AND "clubhouse_memberships"."organization_id" = '37a63ad0-bfd0-11e4-8e3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37a53734-bfd0-11e4-8cdc-705681abff85"], ["organization_id", "37a63ad0-bfd0-11e4-8e3d-705681abff85"], ["created_at", "2015-03-01 05:02:53.575682"], ["updated_at", "2015-03-01 05:02:53.575682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/37a6bab4-bfd0-11e4-b138-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"37a6bab4-bfd0-11e4-b138-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:53.582275' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zFOCgvjQuXN_T1cMUuvR2d8qgIo6grH72O2vQ1K7XeQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:53.584074"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:53.585214"], ["id", "37a5b272-bfd0-11e4-ab5c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37a49612-bfd0-11e4-94f5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37a49612-bfd0-11e4-94f5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37a49612-bfd0-11e4-94f5-705681abff85' LIMIT 1 [["organization_id", "37a63ad0-bfd0-11e4-8e3d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "37a63ad0-bfd0-11e4-8e3d-705681abff85"], ["id", "37a6bab4-bfd0-11e4-b138-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37a49612-bfd0-11e4-94f5-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$GPTk8ZQJsMa.JVmNBHMNpuF9iMmiaQhlMDCDdrzSBk4lTNE7yDN.u"], ["created_at", "2015-03-01 05:02:53.597914"], ["updated_at", "2015-03-01 05:02:53.597914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$tobFVj6j8DL3ZSWqnPYWmeO.4jUOZQvoLp9IFB3xCWAQr56j1qBnu"], ["created_at", "2015-03-01 05:02:53.603181"], ["updated_at", "2015-03-01 05:02:53.603181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.605215"], ["user_id", "37aa954e-bfd0-11e4-a5d3-705681abff85"], ["created_at", "2015-03-01 05:02:53.606016"], ["updated_at", "2015-03-01 05:02:53.606016"], ["token", "PQFIse3CYKz84NkjW4gpmjbE7HR0GSnYrsdvo3sUJGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.609175"], ["updated_at", "2015-03-01 05:02:53.609175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37aa954e-bfd0-11e4-a5d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ac479a-bfd0-11e4-9bc4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37aa954e-bfd0-11e4-a5d3-705681abff85"], ["organization_id", "37ac479a-bfd0-11e4-9bc4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.612338"], ["updated_at", "2015-03-01 05:02:53.612338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37ab700e-bfd0-11e4-98fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ac479a-bfd0-11e4-9bc4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37ab700e-bfd0-11e4-98fd-705681abff85"], ["organization_id", "37ac479a-bfd0-11e4-9bc4-705681abff85"], ["created_at", "2015-03-01 05:02:53.615732"], ["updated_at", "2015-03-01 05:02:53.615732"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$blZ6z8sJBxfUoK96DDCqXO02sps9KkDJvHZQ0b8ZxXsuKU0JYVU/i"], ["created_at", "2015-03-01 05:02:53.632112"], ["updated_at", "2015-03-01 05:02:53.632112"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$VoMYymLofTNNnDQzRpKMYOvtQ4SqwkDbdLy.gLMyWv/eYCk//z67."], ["created_at", "2015-03-01 05:02:53.639145"], ["updated_at", "2015-03-01 05:02:53.639145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.640808"], ["user_id", "37afcd20-bfd0-11e4-9083-705681abff85"], ["created_at", "2015-03-01 05:02:53.641606"], ["updated_at", "2015-03-01 05:02:53.641606"], ["token", "_UHngBc3Ib0_kSiga-Of2MXVGehS_e3oXJlhhRuEbkg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.645254"], ["updated_at", "2015-03-01 05:02:53.645254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37afcd20-bfd0-11e4-9083-705681abff85' AND "clubhouse_memberships"."organization_id" = '37b1ce2c-bfd0-11e4-bec5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37afcd20-bfd0-11e4-9083-705681abff85"], ["organization_id", "37b1ce2c-bfd0-11e4-bec5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.648816"], ["updated_at", "2015-03-01 05:02:53.648816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37b0dee0-bfd0-11e4-a87a-705681abff85' AND "clubhouse_memberships"."organization_id" = '37b1ce2c-bfd0-11e4-bec5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37b0dee0-bfd0-11e4-a87a-705681abff85"], ["organization_id", "37b1ce2c-bfd0-11e4-bec5-705681abff85"], ["created_at", "2015-03-01 05:02:53.652649"], ["updated_at", "2015-03-01 05:02:53.652649"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/37b255f4-bfd0-11e4-a5fe-705681abff85" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"37b255f4-bfd0-11e4-a5fe-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:53.659000' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_UHngBc3Ib0_kSiga-Of2MXVGehS_e3oXJlhhRuEbkg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:53.660590"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:53.661591"], ["id", "37b147d6-bfd0-11e4-b194-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37afcd20-bfd0-11e4-9083-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37afcd20-bfd0-11e4-9083-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37afcd20-bfd0-11e4-9083-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "37afcd20-bfd0-11e4-9083-705681abff85"], ["id", "37b255f4-bfd0-11e4-a5fe-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37b1ce2c-bfd0-11e4-bec5-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37afcd20-bfd0-11e4-9083-705681abff85"]] Completed 200 OK in 15ms (Views: 3.4ms | ActiveRecord: 1.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$HAfZdXYdU1VuZKRchk7dHuQGvQxlrt9WBY21bvq8pB2NQVDaEotLC"], ["created_at", "2015-03-01 05:02:53.681045"], ["updated_at", "2015-03-01 05:02:53.681045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$TlFdmgBBr62sgOLZRhXs4ev0rhmHLqN5Wvy3DKKuBoaXO94vU785W"], ["created_at", "2015-03-01 05:02:53.686232"], ["updated_at", "2015-03-01 05:02:53.686232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.687860"], ["user_id", "37b74302-bfd0-11e4-bea7-705681abff85"], ["created_at", "2015-03-01 05:02:53.688654"], ["updated_at", "2015-03-01 05:02:53.688654"], ["token", "rGDqSJuOtS07IiENmfZgFuLcBBGNHbMYQ4LWjJZWL3I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.691973"], ["updated_at", "2015-03-01 05:02:53.691973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37b74302-bfd0-11e4-bea7-705681abff85' AND "clubhouse_memberships"."organization_id" = '37b8ea9a-bfd0-11e4-909b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37b74302-bfd0-11e4-bea7-705681abff85"], ["organization_id", "37b8ea9a-bfd0-11e4-909b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.695303"], ["updated_at", "2015-03-01 05:02:53.695303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37b80d3c-bfd0-11e4-b7a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '37b8ea9a-bfd0-11e4-909b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37b80d3c-bfd0-11e4-b7a4-705681abff85"], ["organization_id", "37b8ea9a-bfd0-11e4-909b-705681abff85"], ["created_at", "2015-03-01 05:02:53.698375"], ["updated_at", "2015-03-01 05:02:53.698375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$YWhf.PMBH7biKz9Xe0AOsuJK8Ter0BvHFRNSHyoHm.G/PPs.4RP.i"], ["created_at", "2015-03-01 05:02:53.702792"], ["updated_at", "2015-03-01 05:02:53.702792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.704364"], ["user_id", "37ba9250-bfd0-11e4-aa71-705681abff85"], ["created_at", "2015-03-01 05:02:53.705538"], ["updated_at", "2015-03-01 05:02:53.705538"], ["token", "0gzDafiwTrdZFeqQgvBK8S3VS_BhAmI5TUptA3n5enE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '37b8ea9a-bfd0-11e4-909b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "37b8ea9a-bfd0-11e4-909b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.717204"], ["updated_at", "2015-03-01 05:02:53.717204"], ["token", "OhMPqokWIHWYy88KxcFtLP5X-_fu4_TH1qRb9NeZfSs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$FGy2/hEQ7IEl4ZdgvwHBPuWaFiAqs2Uy9R7ho8nQ6TZ26YGRuSbXy"], ["created_at", "2015-03-01 05:02:53.732094"], ["updated_at", "2015-03-01 05:02:53.732094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$pHkjw/uK0PbllqcjHfgZteX7V/sfolvHi6MXC7bps9wps7bFHUrVq"], ["created_at", "2015-03-01 05:02:53.743722"], ["updated_at", "2015-03-01 05:02:53.743722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.745320"], ["user_id", "37bf10dc-bfd0-11e4-a972-705681abff85"], ["created_at", "2015-03-01 05:02:53.746104"], ["updated_at", "2015-03-01 05:02:53.746104"], ["token", "4qei_PiXE3SaZwGQ2nLJT3IQ-n7Xc_zLnQHzq-agk_E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.749341"], ["updated_at", "2015-03-01 05:02:53.749341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37bf10dc-bfd0-11e4-a972-705681abff85' AND "clubhouse_memberships"."organization_id" = '37c1ab44-bfd0-11e4-bbc9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37bf10dc-bfd0-11e4-a972-705681abff85"], ["organization_id", "37c1ab44-bfd0-11e4-bbc9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.752662"], ["updated_at", "2015-03-01 05:02:53.752662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37c0d26e-bfd0-11e4-abeb-705681abff85' AND "clubhouse_memberships"."organization_id" = '37c1ab44-bfd0-11e4-bbc9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37c0d26e-bfd0-11e4-abeb-705681abff85"], ["organization_id", "37c1ab44-bfd0-11e4-bbc9-705681abff85"], ["created_at", "2015-03-01 05:02:53.755719"], ["updated_at", "2015-03-01 05:02:53.755719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$HyhdDl.b0YQdUUlxNjYtDuUtpAyehIKl.vgfARKZ7rleNqVelM5q."], ["created_at", "2015-03-01 05:02:53.759990"], ["updated_at", "2015-03-01 05:02:53.759990"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.763994"], ["user_id", "37c34bac-bfd0-11e4-9514-705681abff85"], ["created_at", "2015-03-01 05:02:53.764843"], ["updated_at", "2015-03-01 05:02:53.764843"], ["token", "XO1JPgSmj99QTeFO5lsCTscSCdfb2xlzs6iBjTe5pPY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '37c1ab44-bfd0-11e4-bbc9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "37c1ab44-bfd0-11e4-bbc9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.770111"], ["updated_at", "2015-03-01 05:02:53.770111"], ["token", "YQKrhCoPsgVS1zVw4WDl2J9o7Mme9UBwQ8_VViLGrlc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"YQKrhCoPsgVS1zVw4WDl2J9o7Mme9UBwQ8_VViLGrlc", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:53.775157' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XO1JPgSmj99QTeFO5lsCTscSCdfb2xlzs6iBjTe5pPY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:53.776703"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:53.777631"], ["id", "37c4171c-bfd0-11e4-aba0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37c34bac-bfd0-11e4-9514-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37c34bac-bfd0-11e4-9514-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "YQKrhCoPsgVS1zVw4WDl2J9o7Mme9UBwQ8_VViLGrlc"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37c1ab44-bfd0-11e4-bbc9-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37c1ab44-bfd0-11e4-bbc9-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37c34bac-bfd0-11e4-9514-705681abff85' AND "clubhouse_memberships"."organization_id" = '37c1ab44-bfd0-11e4-bbc9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37c34bac-bfd0-11e4-9514-705681abff85"], ["organization_id", "37c1ab44-bfd0-11e4-bbc9-705681abff85"], ["created_at", "2015-03-01 05:02:53.787683"], ["updated_at", "2015-03-01 05:02:53.787683"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "37c4e43a-bfd0-11e4-83cd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$n.KjiYrDNpASzs6I.T38GeD6sixp6rvmgXxfpD8UdoE2ZN7h5K8aC"], ["created_at", "2015-03-01 05:02:53.797060"], ["updated_at", "2015-03-01 05:02:53.797060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$eKTJ7DUyyuULk904lTHIAelnUHR/cezZow6md91BPownvo1L1UPWy"], ["created_at", "2015-03-01 05:02:53.801562"], ["updated_at", "2015-03-01 05:02:53.801562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.803441"], ["user_id", "37c8f912-bfd0-11e4-95de-705681abff85"], ["created_at", "2015-03-01 05:02:53.804284"], ["updated_at", "2015-03-01 05:02:53.804284"], ["token", "TTMsy1X-DYf87-x7MvCPMkv9bbX0xuV9gkd_lP2TRIc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.807606"], ["updated_at", "2015-03-01 05:02:53.807606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37c8f912-bfd0-11e4-95de-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ca8ffc-bfd0-11e4-b3b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37c8f912-bfd0-11e4-95de-705681abff85"], ["organization_id", "37ca8ffc-bfd0-11e4-b3b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.810783"], ["updated_at", "2015-03-01 05:02:53.810783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37c9aa88-bfd0-11e4-9c5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ca8ffc-bfd0-11e4-b3b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37c9aa88-bfd0-11e4-9c5c-705681abff85"], ["organization_id", "37ca8ffc-bfd0-11e4-b3b6-705681abff85"], ["created_at", "2015-03-01 05:02:53.813729"], ["updated_at", "2015-03-01 05:02:53.813729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$3dJXU.c5r9kWsA959CCj7.oa0wpNhgPq5CzzSDl7055rCLEHCXAxK"], ["created_at", "2015-03-01 05:02:53.818011"], ["updated_at", "2015-03-01 05:02:53.818011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.819598"], ["user_id", "37cc2600-bfd0-11e4-b27f-705681abff85"], ["created_at", "2015-03-01 05:02:53.820328"], ["updated_at", "2015-03-01 05:02:53.820328"], ["token", "Z1KJKffM5fOYQ7LMvlMQvpz2TSrSczPxECtyJ8BZwlA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '37ca8ffc-bfd0-11e4-b3b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "37ca8ffc-bfd0-11e4-b3b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.824005"], ["updated_at", "2015-03-01 05:02:53.824005"], ["token", "70e82_VKX8zVKNHH-lXYdie3Ixp_Pr4-vnUuPGjQYok"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:53.829553' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Z1KJKffM5fOYQ7LMvlMQvpz2TSrSczPxECtyJ8BZwlA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:53.831168"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:53.832121"], ["id", "37cc89d8-bfd0-11e4-885d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37cc2600-bfd0-11e4-b27f-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37cc2600-bfd0-11e4-b27f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$ErSTx77/aPeRHcjFk3pTS.djPg97wsO2wdjQW67rvIC6lSKQoMOfS"], ["created_at", "2015-03-01 05:02:53.843398"], ["updated_at", "2015-03-01 05:02:53.843398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$nsW2/y/TlJoY6nTlOcyEXuTENRqtuhsDIHRGIiffQe6rmaMQql5qW"], ["created_at", "2015-03-01 05:02:53.847568"], ["updated_at", "2015-03-01 05:02:53.847568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.849129"], ["user_id", "37d007de-bfd0-11e4-a6fd-705681abff85"], ["created_at", "2015-03-01 05:02:53.850009"], ["updated_at", "2015-03-01 05:02:53.850009"], ["token", "xJ_LW-M76li5CQe54sLhMqKP38MatKVOqh7ndq5bYTU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.853718"], ["updated_at", "2015-03-01 05:02:53.853718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37d007de-bfd0-11e4-a6fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '37d19892-bfd0-11e4-9a77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37d007de-bfd0-11e4-a6fd-705681abff85"], ["organization_id", "37d19892-bfd0-11e4-9a77-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.857028"], ["updated_at", "2015-03-01 05:02:53.857028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37d0a7e8-bfd0-11e4-9924-705681abff85' AND "clubhouse_memberships"."organization_id" = '37d19892-bfd0-11e4-9a77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37d0a7e8-bfd0-11e4-9924-705681abff85"], ["organization_id", "37d19892-bfd0-11e4-9a77-705681abff85"], ["created_at", "2015-03-01 05:02:53.859994"], ["updated_at", "2015-03-01 05:02:53.859994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$naQZ1Ypgwu20lY0YjC2PL.EstVAhOaCxVsh5T/ujCl.OxwFDd0R3S"], ["created_at", "2015-03-01 05:02:53.872484"], ["updated_at", "2015-03-01 05:02:53.872484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$5sYZ/PVnr5ImVnf3gYWlOO0u.6pNpvO7gRH4jbHm1oqFEmX8m3ksa"], ["created_at", "2015-03-01 05:02:53.878726"], ["updated_at", "2015-03-01 05:02:53.878726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.880393"], ["user_id", "37d47af8-bfd0-11e4-901e-705681abff85"], ["created_at", "2015-03-01 05:02:53.881207"], ["updated_at", "2015-03-01 05:02:53.881207"], ["token", "zLLhhou9-L_wVAnUiouIUwgOZPQZqI0oXAqSVCCbT8k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.884469"], ["updated_at", "2015-03-01 05:02:53.884469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37d47af8-bfd0-11e4-901e-705681abff85' AND "clubhouse_memberships"."organization_id" = '37d64d9c-bfd0-11e4-9556-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37d47af8-bfd0-11e4-901e-705681abff85"], ["organization_id", "37d64d9c-bfd0-11e4-9556-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.888642"], ["updated_at", "2015-03-01 05:02:53.888642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37d56dbe-bfd0-11e4-93f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '37d64d9c-bfd0-11e4-9556-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37d56dbe-bfd0-11e4-93f7-705681abff85"], ["organization_id", "37d64d9c-bfd0-11e4-9556-705681abff85"], ["created_at", "2015-03-01 05:02:53.891751"], ["updated_at", "2015-03-01 05:02:53.891751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/37d778e8-bfd0-11e4-ab10-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"37d778e8-bfd0-11e4-ab10-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:53.897100' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zLLhhou9-L_wVAnUiouIUwgOZPQZqI0oXAqSVCCbT8k"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:53.899042"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:53.900672"], ["id", "37d5d362-bfd0-11e4-b4b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37d47af8-bfd0-11e4-901e-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37d47af8-bfd0-11e4-901e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37d47af8-bfd0-11e4-901e-705681abff85' LIMIT 1 [["organization_id", "37d64d9c-bfd0-11e4-9556-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "37d64d9c-bfd0-11e4-9556-705681abff85"], ["id", "37d778e8-bfd0-11e4-ab10-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37d56dbe-bfd0-11e4-93f7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37d64d9c-bfd0-11e4-9556-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37d56dbe-bfd0-11e4-93f7-705681abff85' AND "clubhouse_memberships"."id" != '37d778e8-bfd0-11e4-ab10-705681abff85' AND "clubhouse_memberships"."organization_id" = '37d64d9c-bfd0-11e4-9556-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:02:53.913478"], ["id", "37d778e8-bfd0-11e4-ab10-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.1ms | ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$sq5Pus.Td.sCtVfP40vPjuGuqG0vyXyS6nWvkUv6/eIW5yJhrq19K"], ["created_at", "2015-03-01 05:02:53.922271"], ["updated_at", "2015-03-01 05:02:53.922271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$dpido05h/FUgTqNmUhPdNuE70/2a2JIpHUAFBtV6WhIUVTAGl4tPu"], ["created_at", "2015-03-01 05:02:53.926625"], ["updated_at", "2015-03-01 05:02:53.926625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.928165"], ["user_id", "37dc1272-bfd0-11e4-b197-705681abff85"], ["created_at", "2015-03-01 05:02:53.928994"], ["updated_at", "2015-03-01 05:02:53.928994"], ["token", "2avFoxetk42sjPO1yhwyIinzp1E9zydzq1BQSOCZmt8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.933228"], ["updated_at", "2015-03-01 05:02:53.933228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37dc1272-bfd0-11e4-b197-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ddbbd6-bfd0-11e4-bcfa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37dc1272-bfd0-11e4-b197-705681abff85"], ["organization_id", "37ddbbd6-bfd0-11e4-bcfa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.936507"], ["updated_at", "2015-03-01 05:02:53.936507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37dcb9d4-bfd0-11e4-abd0-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ddbbd6-bfd0-11e4-bcfa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37dcb9d4-bfd0-11e4-abd0-705681abff85"], ["organization_id", "37ddbbd6-bfd0-11e4-bcfa-705681abff85"], ["created_at", "2015-03-01 05:02:53.939594"], ["updated_at", "2015-03-01 05:02:53.939594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/37de3b2e-bfd0-11e4-9426-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"37de3b2e-bfd0-11e4-9426-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:53.944338' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2avFoxetk42sjPO1yhwyIinzp1E9zydzq1BQSOCZmt8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:53.945921"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:53.946904"], ["id", "37dd3698-bfd0-11e4-b820-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37dc1272-bfd0-11e4-b197-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37dc1272-bfd0-11e4-b197-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37dc1272-bfd0-11e4-b197-705681abff85' LIMIT 1 [["organization_id", "37ddbbd6-bfd0-11e4-bcfa-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "37ddbbd6-bfd0-11e4-bcfa-705681abff85"], ["id", "37de3b2e-bfd0-11e4-9426-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37dc1272-bfd0-11e4-b197-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$WCqSEb3LdzfPG2v./imz3.SOgsydq.gvTIMHpfaY6f0eA.QW3r2fW"], ["created_at", "2015-03-01 05:02:53.959701"], ["updated_at", "2015-03-01 05:02:53.959701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$c7CurtHXz4kFl329sYuerOOSOHCPmQ4d/.zzzQhU6c4YTIQudxWx2"], ["created_at", "2015-03-01 05:02:53.963827"], ["updated_at", "2015-03-01 05:02:53.963827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.965774"], ["user_id", "37e1c820-bfd0-11e4-99d9-705681abff85"], ["created_at", "2015-03-01 05:02:53.967279"], ["updated_at", "2015-03-01 05:02:53.967279"], ["token", "4rTyVNgrlKET61jNuWnPXBRKaHPCyrQH2J8luBTwEgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:53.972058"], ["updated_at", "2015-03-01 05:02:53.972058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37e1c820-bfd0-11e4-99d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '37e3abf4-bfd0-11e4-a041-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37e1c820-bfd0-11e4-99d9-705681abff85"], ["organization_id", "37e3abf4-bfd0-11e4-a041-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:53.975506"], ["updated_at", "2015-03-01 05:02:53.975506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37e26622-bfd0-11e4-96ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '37e3abf4-bfd0-11e4-a041-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37e26622-bfd0-11e4-96ea-705681abff85"], ["organization_id", "37e3abf4-bfd0-11e4-a041-705681abff85"], ["created_at", "2015-03-01 05:02:53.978563"], ["updated_at", "2015-03-01 05:02:53.978563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 21:02:53 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$HMvmGUe3qb98udSQXKSwZ.MbKe6tv3lSg5F9wwxSGGJrG5OmDcGVm"], ["created_at", "2015-03-01 05:02:53.990792"], ["updated_at", "2015-03-01 05:02:53.990792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$Kkf9tYYLn3zjHWfn8pWF1u53oCNVp51tnmpHS2uqVmBa83RwATPVG"], ["created_at", "2015-03-01 05:02:53.995412"], ["updated_at", "2015-03-01 05:02:53.995412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:53.996999"], ["user_id", "37e68a7c-bfd0-11e4-94f6-705681abff85"], ["created_at", "2015-03-01 05:02:53.997860"], ["updated_at", "2015-03-01 05:02:53.997860"], ["token", "Cac7v8jQ_jyulcjqWMJ-pfw3AH5nY_f7OAJ7eKyCrBc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:54.001417"], ["updated_at", "2015-03-01 05:02:54.001417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37e68a7c-bfd0-11e4-94f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '37e82440-bfd0-11e4-81eb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37e68a7c-bfd0-11e4-94f6-705681abff85"], ["organization_id", "37e82440-bfd0-11e4-81eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:54.005002"], ["updated_at", "2015-03-01 05:02:54.005002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37e73af8-bfd0-11e4-9555-705681abff85' AND "clubhouse_memberships"."organization_id" = '37e82440-bfd0-11e4-81eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37e73af8-bfd0-11e4-9555-705681abff85"], ["organization_id", "37e82440-bfd0-11e4-81eb-705681abff85"], ["created_at", "2015-03-01 05:02:54.008861"], ["updated_at", "2015-03-01 05:02:54.008861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/37e94802-bfd0-11e4-ab2a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:02:54 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"37e94802-bfd0-11e4-ab2a-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:54.013517' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Cac7v8jQ_jyulcjqWMJ-pfw3AH5nY_f7OAJ7eKyCrBc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:54.015510"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:54.017327"], ["id", "37e7a3b2-bfd0-11e4-9857-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37e68a7c-bfd0-11e4-94f6-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37e68a7c-bfd0-11e4-94f6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37e68a7c-bfd0-11e4-94f6-705681abff85' LIMIT 1 [["organization_id", "37e82440-bfd0-11e4-81eb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "37e82440-bfd0-11e4-81eb-705681abff85"], ["id", "37e94802-bfd0-11e4-ab2a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37e82440-bfd0-11e4-81eb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37e73af8-bfd0-11e4-9555-705681abff85"]] Completed 200 OK in 14ms (Views: 2.2ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$QH3OlfQ.zWa8LYtdb82T/uPhnKSrrks/8/WKq/P1OFpj6r6iLlV56"], ["created_at", "2015-03-01 05:02:54.033326"], ["updated_at", "2015-03-01 05:02:54.033326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$VZi66gjuaT1Jb22L8Tem6ebRi3c7lBSTLTvFdZHWxJwhn1.mOXLnO"], ["created_at", "2015-03-01 05:02:54.038195"], ["updated_at", "2015-03-01 05:02:54.038195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:02:54.039814"], ["user_id", "37ed0578-bfd0-11e4-8704-705681abff85"], ["created_at", "2015-03-01 05:02:54.040597"], ["updated_at", "2015-03-01 05:02:54.040597"], ["token", "_ENJPBFMvE2j-9hae_eldbVxTqLrFT6x4rHmfJyl0GI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:02:54.043840"], ["updated_at", "2015-03-01 05:02:54.043840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37ed0578-bfd0-11e4-8704-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ee9b72-bfd0-11e4-8c0a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37ed0578-bfd0-11e4-8704-705681abff85"], ["organization_id", "37ee9b72-bfd0-11e4-8c0a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:02:54.047084"], ["updated_at", "2015-03-01 05:02:54.047084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37edc1fc-bfd0-11e4-84f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ee9b72-bfd0-11e4-8c0a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37edc1fc-bfd0-11e4-84f0-705681abff85"], ["organization_id", "37ee9b72-bfd0-11e4-8c0a-705681abff85"], ["created_at", "2015-03-01 05:02:54.050260"], ["updated_at", "2015-03-01 05:02:54.050260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 21:02:54 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:02:54.054917' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_ENJPBFMvE2j-9hae_eldbVxTqLrFT6x4rHmfJyl0GI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:02:54.056348"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:02:54.057288"], ["id", "37ee250c-bfd0-11e4-8339-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37ed0578-bfd0-11e4-8704-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37ed0578-bfd0-11e4-8704-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37ed0578-bfd0-11e4-8704-705681abff85' LIMIT 1 [["organization_id", "37ee9b72-bfd0-11e4-8c0a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "37ee9b72-bfd0-11e4-8c0a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37ee9b72-bfd0-11e4-8c0a-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37ed0578-bfd0-11e4-8704-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37ee9b72-bfd0-11e4-8c0a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37edc1fc-bfd0-11e4-84f0-705681abff85"]] Completed 200 OK in 13ms (Views: 5.1ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$7ZcicX90H9cJO0raxgSdO.KOhOkMtq8Ss7gJFHSGvoeNu47yOxgxq"], ["created_at", "2015-03-01 05:03:54.863087"], ["updated_at", "2015-03-01 05:03:54.863087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$GVu1ZgJ1UW3LsBFtRQyLheX9Hw88kDKs0.x524B5Hwa.UjywplEL2"], ["created_at", "2015-03-01 05:03:54.869416"], ["updated_at", "2015-03-01 05:03:54.869416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:54.881898"], ["user_id", "5c2f0eb8-bfd0-11e4-bab2-705681abff85"], ["created_at", "2015-03-01 05:03:54.888358"], ["updated_at", "2015-03-01 05:03:54.888358"], ["token", "gK3nt-YmPkXDF5HOOBET9jqjTdNIYplQrQbIIeH-84E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:54.931066"], ["updated_at", "2015-03-01 05:03:54.931066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c2f0eb8-bfd0-11e4-bab2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c394d88-bfd0-11e4-9163-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c2f0eb8-bfd0-11e4-bab2-705681abff85"], ["organization_id", "5c394d88-bfd0-11e4-9163-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:54.942396"], ["updated_at", "2015-03-01 05:03:54.942396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c2fe874-bfd0-11e4-9d1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c394d88-bfd0-11e4-9163-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c2fe874-bfd0-11e4-9d1e-705681abff85"], ["organization_id", "5c394d88-bfd0-11e4-9163-705681abff85"], ["created_at", "2015-03-01 05:03:54.946338"], ["updated_at", "2015-03-01 05:03:54.946338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 21:03:54 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:03:54.973409' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gK3nt-YmPkXDF5HOOBET9jqjTdNIYplQrQbIIeH-84E"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:03:54.980686"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:03:54.982301"], ["id", "5c32da16-bfd0-11e4-802c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c2f0eb8-bfd0-11e4-bab2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c2f0eb8-bfd0-11e4-bab2-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c2f0eb8-bfd0-11e4-bab2-705681abff85' LIMIT 1 [["organization_id", "5c394d88-bfd0-11e4-9163-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "5c394d88-bfd0-11e4-9163-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c394d88-bfd0-11e4-9163-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c2f0eb8-bfd0-11e4-bab2-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c394d88-bfd0-11e4-9163-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c2fe874-bfd0-11e4-9d1e-705681abff85"]] Completed 200 OK in 44ms (Views: 9.4ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$1ikxCs/GNw3oVK7s0yabGOhtPadWhd.G1/FOfJY0181AYdiU75OOm"], ["created_at", "2015-03-01 05:03:55.026574"], ["updated_at", "2015-03-01 05:03:55.026574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$u56TDaOD2v0W3y/nCJor4Oy4Z/rjB5allr1ZWmd8QMLC5W/lo2AAS"], ["created_at", "2015-03-01 05:03:55.031377"], ["updated_at", "2015-03-01 05:03:55.031377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.033794"], ["user_id", "5c47d9ca-bfd0-11e4-8213-705681abff85"], ["created_at", "2015-03-01 05:03:55.034608"], ["updated_at", "2015-03-01 05:03:55.034608"], ["token", "B6emkRKmNrNSbdU1-HcDYH2ApZWsN_F_Xz_-MQp-MY8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.038265"], ["updated_at", "2015-03-01 05:03:55.038265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c47d9ca-bfd0-11e4-8213-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c49a11a-bfd0-11e4-8a83-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c47d9ca-bfd0-11e4-8213-705681abff85"], ["organization_id", "5c49a11a-bfd0-11e4-8a83-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.041718"], ["updated_at", "2015-03-01 05:03:55.041718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c48ae36-bfd0-11e4-ac18-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c49a11a-bfd0-11e4-8a83-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c48ae36-bfd0-11e4-ac18-705681abff85"], ["organization_id", "5c49a11a-bfd0-11e4-8a83-705681abff85"], ["created_at", "2015-03-01 05:03:55.044867"], ["updated_at", "2015-03-01 05:03:55.044867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$86fruPoKNchh4oEzyBY7ouINrpsnfT14YU5a5zxh2AXcgVYAIkpmq"], ["created_at", "2015-03-01 05:03:55.057819"], ["updated_at", "2015-03-01 05:03:55.057819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$UiPdbSuAyJN70TKRxR20XeGFI04DLc/H3fxEczCKhlGU4bUZhM7rC"], ["created_at", "2015-03-01 05:03:55.062655"], ["updated_at", "2015-03-01 05:03:55.062655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.065039"], ["user_id", "5c4ca1f8-bfd0-11e4-a6db-705681abff85"], ["created_at", "2015-03-01 05:03:55.066163"], ["updated_at", "2015-03-01 05:03:55.066163"], ["token", "wpJaJkwrzgol5Z0l7oSLCFWUTFSqdTmF0A-h0bAc3cs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.069763"], ["updated_at", "2015-03-01 05:03:55.069763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c4ca1f8-bfd0-11e4-a6db-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c4e6cf4-bfd0-11e4-80e4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c4ca1f8-bfd0-11e4-a6db-705681abff85"], ["organization_id", "5c4e6cf4-bfd0-11e4-80e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.074374"], ["updated_at", "2015-03-01 05:03:55.074374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c4d6f16-bfd0-11e4-a7d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c4e6cf4-bfd0-11e4-80e4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c4d6f16-bfd0-11e4-a7d2-705681abff85"], ["organization_id", "5c4e6cf4-bfd0-11e4-80e4-705681abff85"], ["created_at", "2015-03-01 05:03:55.077674"], ["updated_at", "2015-03-01 05:03:55.077674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5c4fa29a-bfd0-11e4-b860-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"5c4fa29a-bfd0-11e4-b860-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:03:55.084422' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wpJaJkwrzgol5Z0l7oSLCFWUTFSqdTmF0A-h0bAc3cs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:03:55.085897"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:03:55.086866"], ["id", "5c4def22-bfd0-11e4-a13f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c4ca1f8-bfd0-11e4-a6db-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c4ca1f8-bfd0-11e4-a6db-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c4ca1f8-bfd0-11e4-a6db-705681abff85' LIMIT 1 [["organization_id", "5c4e6cf4-bfd0-11e4-80e4-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "5c4e6cf4-bfd0-11e4-80e4-705681abff85"], ["id", "5c4fa29a-bfd0-11e4-b860-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c4d6f16-bfd0-11e4-a7d2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "5c4fa29a-bfd0-11e4-b860-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$RE0SyweDo08ZUdBTkxj.KOSMNUm48X0Kazzl/IjJjx2oXj.PlD9qW"], ["created_at", "2015-03-01 05:03:55.102320"], ["updated_at", "2015-03-01 05:03:55.102320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$gnYe3wY63avri3Su1KYu4eU/zgz/Hp6xwaa1x6eidgrL70t0EZa7m"], ["created_at", "2015-03-01 05:03:55.106627"], ["updated_at", "2015-03-01 05:03:55.106627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.108118"], ["user_id", "5c536b50-bfd0-11e4-a596-705681abff85"], ["created_at", "2015-03-01 05:03:55.108863"], ["updated_at", "2015-03-01 05:03:55.108863"], ["token", "k_Awg5WEglqRS_VlLJToCGEM2wtX26xXZkd3eTFusLM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.112130"], ["updated_at", "2015-03-01 05:03:55.112130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c536b50-bfd0-11e4-a596-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c54e494-bfd0-11e4-a133-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c536b50-bfd0-11e4-a596-705681abff85"], ["organization_id", "5c54e494-bfd0-11e4-a133-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.115541"], ["updated_at", "2015-03-01 05:03:55.115541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c540ca4-bfd0-11e4-bcc8-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c54e494-bfd0-11e4-a133-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c540ca4-bfd0-11e4-bcc8-705681abff85"], ["organization_id", "5c54e494-bfd0-11e4-a133-705681abff85"], ["created_at", "2015-03-01 05:03:55.118865"], ["updated_at", "2015-03-01 05:03:55.118865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5c556ca2-bfd0-11e4-8915-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"5c556ca2-bfd0-11e4-8915-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:03:55.125578' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k_Awg5WEglqRS_VlLJToCGEM2wtX26xXZkd3eTFusLM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:03:55.127020"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:03:55.127997"], ["id", "5c546e2e-bfd0-11e4-9a16-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c536b50-bfd0-11e4-a596-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c536b50-bfd0-11e4-a596-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c536b50-bfd0-11e4-a596-705681abff85' LIMIT 1 [["organization_id", "5c54e494-bfd0-11e4-a133-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "5c54e494-bfd0-11e4-a133-705681abff85"], ["id", "5c556ca2-bfd0-11e4-8915-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c536b50-bfd0-11e4-a596-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$nJPbOv5gKLSeGyHMe9K/HeKANgoJAgQOe01/qhxQwM/G5n.CFJSLu"], ["created_at", "2015-03-01 05:03:55.140348"], ["updated_at", "2015-03-01 05:03:55.140348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$XxAp1a8HxPsbuf/drYlT5eTNXtAez0B9K.iBJJB815loYa0I4RTVi"], ["created_at", "2015-03-01 05:03:55.144438"], ["updated_at", "2015-03-01 05:03:55.144438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.145938"], ["user_id", "5c593314-bfd0-11e4-8c71-705681abff85"], ["created_at", "2015-03-01 05:03:55.146767"], ["updated_at", "2015-03-01 05:03:55.146767"], ["token", "Nt7Q4OOtrLbfLG4F4-AXyCgu20N0LXUT60bB3_lZeGo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.150537"], ["updated_at", "2015-03-01 05:03:55.150537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c593314-bfd0-11e4-8c71-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c5ac300-bfd0-11e4-9a28-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c593314-bfd0-11e4-8c71-705681abff85"], ["organization_id", "5c5ac300-bfd0-11e4-9a28-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.154034"], ["updated_at", "2015-03-01 05:03:55.154034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c59d08a-bfd0-11e4-82e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c5ac300-bfd0-11e4-9a28-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c59d08a-bfd0-11e4-82e6-705681abff85"], ["organization_id", "5c5ac300-bfd0-11e4-9a28-705681abff85"], ["created_at", "2015-03-01 05:03:55.157311"], ["updated_at", "2015-03-01 05:03:55.157311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:03:55.162479' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Nt7Q4OOtrLbfLG4F4-AXyCgu20N0LXUT60bB3_lZeGo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:03:55.163916"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:03:55.165250"], ["id", "5c5a3ade-bfd0-11e4-91e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c593314-bfd0-11e4-8c71-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c593314-bfd0-11e4-8c71-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c593314-bfd0-11e4-8c71-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "5c593314-bfd0-11e4-8c71-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c5ac300-bfd0-11e4-9a28-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c593314-bfd0-11e4-8c71-705681abff85"]] Completed 200 OK in 13ms (Views: 3.6ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$6.wPvxYoBfFYif/3bajEIedtTcK0XBwXkwRE2lO7paa0Qv5FzgF9y"], ["created_at", "2015-03-01 05:03:55.181077"], ["updated_at", "2015-03-01 05:03:55.181077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$R3IFTCDxmEGQdzdtCEPmDOt7Be.ZN08A4e4mg8viTuVpVwjOzyoGW"], ["created_at", "2015-03-01 05:03:55.185843"], ["updated_at", "2015-03-01 05:03:55.185843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.187440"], ["user_id", "5c5f7422-bfd0-11e4-9b7c-705681abff85"], ["created_at", "2015-03-01 05:03:55.188349"], ["updated_at", "2015-03-01 05:03:55.188349"], ["token", "v7EuQoJDHQFnd-IbMhjO1KcLbxvj5D4FhFkh8dwrFPs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.191889"], ["updated_at", "2015-03-01 05:03:55.191889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c5f7422-bfd0-11e4-9b7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c6113b8-bfd0-11e4-bf5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c5f7422-bfd0-11e4-9b7c-705681abff85"], ["organization_id", "5c6113b8-bfd0-11e4-bf5a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.195383"], ["updated_at", "2015-03-01 05:03:55.195383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c602584-bfd0-11e4-b048-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c6113b8-bfd0-11e4-bf5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c602584-bfd0-11e4-b048-705681abff85"], ["organization_id", "5c6113b8-bfd0-11e4-bf5a-705681abff85"], ["created_at", "2015-03-01 05:03:55.198504"], ["updated_at", "2015-03-01 05:03:55.198504"]]  (15.5ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$tojl2GEt4/pXLEi3KLtpt.t5ODfloGZ5g1EcQ8eulLUDQ53mvgYvG"], ["created_at", "2015-03-01 05:03:55.271263"], ["updated_at", "2015-03-01 05:03:55.271263"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$6EP83v6Dvzx7G2n3Yap13Om64AVzlqwO2ClflFwwVoB9T4H7AVw0C"], ["created_at", "2015-03-01 05:03:55.281537"], ["updated_at", "2015-03-01 05:03:55.281537"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.285565"], ["user_id", "5c6da380-bfd0-11e4-8a21-705681abff85"], ["created_at", "2015-03-01 05:03:55.287112"], ["updated_at", "2015-03-01 05:03:55.287112"], ["token", "ew2MHb4MXwysSoz-VxJQ-i6vrp9tl1fVV0Yg9Abkx5U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.294926"], ["updated_at", "2015-03-01 05:03:55.294926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c6da380-bfd0-11e4-8a21-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c70f24c-bfd0-11e4-90b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c6da380-bfd0-11e4-8a21-705681abff85"], ["organization_id", "5c70f24c-bfd0-11e4-90b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.301632"], ["updated_at", "2015-03-01 05:03:55.301632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c6ed28c-bfd0-11e4-9b01-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c70f24c-bfd0-11e4-90b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c6ed28c-bfd0-11e4-9b01-705681abff85"], ["organization_id", "5c70f24c-bfd0-11e4-90b0-705681abff85"], ["created_at", "2015-03-01 05:03:55.305785"], ["updated_at", "2015-03-01 05:03:55.305785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/5c7273ec-bfd0-11e4-af42-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"5c7273ec-bfd0-11e4-af42-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:03:55.313549' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ew2MHb4MXwysSoz-VxJQ-i6vrp9tl1fVV0Yg9Abkx5U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:03:55.315893"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:03:55.317489"], ["id", "5c6fc160-bfd0-11e4-bb1c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c6da380-bfd0-11e4-8a21-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c6da380-bfd0-11e4-8a21-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c6da380-bfd0-11e4-8a21-705681abff85' LIMIT 1 [["organization_id", "5c70f24c-bfd0-11e4-90b0-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "5c70f24c-bfd0-11e4-90b0-705681abff85"], ["id", "5c7273ec-bfd0-11e4-af42-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c70f24c-bfd0-11e4-90b0-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c6ed28c-bfd0-11e4-9b01-705681abff85"]] Completed 200 OK in 14ms (Views: 2.4ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$h1DJe94ZWXq1xk06p4/R3.0dfPLXCNtoU4uoSjcHRPnqh14svl21y"], ["created_at", "2015-03-01 05:03:55.334428"], ["updated_at", "2015-03-01 05:03:55.334428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$rLLFNkNvrnfNmzUf8.6H0uQ9uft516Cx6YTtf6z1zZzY.4Vs9d3h6"], ["created_at", "2015-03-01 05:03:55.339459"], ["updated_at", "2015-03-01 05:03:55.339459"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.341680"], ["user_id", "5c76d39c-bfd0-11e4-9062-705681abff85"], ["created_at", "2015-03-01 05:03:55.342967"], ["updated_at", "2015-03-01 05:03:55.342967"], ["token", "KbcUHctV4miJecLvGOtUJlq_RRcH1UTkuOtjXXmnxc8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.346895"], ["updated_at", "2015-03-01 05:03:55.346895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c76d39c-bfd0-11e4-9062-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c79e94c-bfd0-11e4-91cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c76d39c-bfd0-11e4-9062-705681abff85"], ["organization_id", "5c79e94c-bfd0-11e4-91cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.358494"], ["updated_at", "2015-03-01 05:03:55.358494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c779872-bfd0-11e4-9572-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c79e94c-bfd0-11e4-91cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c779872-bfd0-11e4-9572-705681abff85"], ["organization_id", "5c79e94c-bfd0-11e4-91cc-705681abff85"], ["created_at", "2015-03-01 05:03:55.361758"], ["updated_at", "2015-03-01 05:03:55.361758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$t58V.Z1xUT6ShekzFU99Au6CGAmq6pEWuJvsxySeDjSp.JBjrE1WK"], ["created_at", "2015-03-01 05:03:55.374775"], ["updated_at", "2015-03-01 05:03:55.374775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$NSG.cRrL/tOp6IXRIUEh6.G2yY1bG3F5NoXBds79OIa8Bqxfw3niW"], ["created_at", "2015-03-01 05:03:55.379270"], ["updated_at", "2015-03-01 05:03:55.379270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.381190"], ["user_id", "5c7cfa88-bfd0-11e4-98a4-705681abff85"], ["created_at", "2015-03-01 05:03:55.382002"], ["updated_at", "2015-03-01 05:03:55.382002"], ["token", "x4-CoSWXqjtdz0fbQfaCymH9dTY-VANCqXK2IVEvWNo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.386602"], ["updated_at", "2015-03-01 05:03:55.386602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c7cfa88-bfd0-11e4-98a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c7eca8e-bfd0-11e4-8409-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c7cfa88-bfd0-11e4-98a4-705681abff85"], ["organization_id", "5c7eca8e-bfd0-11e4-8409-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.390374"], ["updated_at", "2015-03-01 05:03:55.390374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c7db0ae-bfd0-11e4-9cef-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c7eca8e-bfd0-11e4-8409-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c7db0ae-bfd0-11e4-9cef-705681abff85"], ["organization_id", "5c7eca8e-bfd0-11e4-8409-705681abff85"], ["created_at", "2015-03-01 05:03:55.393947"], ["updated_at", "2015-03-01 05:03:55.393947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/5c7f5a3a-bfd0-11e4-ad07-705681abff85" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"5c7f5a3a-bfd0-11e4-ad07-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:03:55.399846' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "x4-CoSWXqjtdz0fbQfaCymH9dTY-VANCqXK2IVEvWNo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:03:55.401339"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:03:55.402436"], ["id", "5c7e2a0c-bfd0-11e4-86fd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c7cfa88-bfd0-11e4-98a4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c7cfa88-bfd0-11e4-98a4-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c7cfa88-bfd0-11e4-98a4-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "5c7cfa88-bfd0-11e4-98a4-705681abff85"], ["id", "5c7f5a3a-bfd0-11e4-ad07-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c7eca8e-bfd0-11e4-8409-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c7cfa88-bfd0-11e4-98a4-705681abff85"]] Completed 200 OK in 12ms (Views: 2.1ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$J1CXVxabWItPyJv7rvREt.Wg/ixud3OABp3K1Ctd1IA/hnhS46ePC"], ["created_at", "2015-03-01 05:03:55.418115"], ["updated_at", "2015-03-01 05:03:55.418115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ea6FYdQo2rrtCaGumI/.9upTzGxaErAKbZ6l15WHPQJUg5i60fsKa"], ["created_at", "2015-03-01 05:03:55.422368"], ["updated_at", "2015-03-01 05:03:55.422368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.423958"], ["user_id", "5c83997e-bfd0-11e4-acba-705681abff85"], ["created_at", "2015-03-01 05:03:55.424770"], ["updated_at", "2015-03-01 05:03:55.424770"], ["token", "uZX8mHZNCTmyReDnrxNL-FThu1xcgM5NnglM8H1Q4Ec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.428105"], ["updated_at", "2015-03-01 05:03:55.428105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c83997e-bfd0-11e4-acba-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c851a7e-bfd0-11e4-8426-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c83997e-bfd0-11e4-acba-705681abff85"], ["organization_id", "5c851a7e-bfd0-11e4-8426-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.431766"], ["updated_at", "2015-03-01 05:03:55.431766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c843a3c-bfd0-11e4-b0ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c851a7e-bfd0-11e4-8426-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c843a3c-bfd0-11e4-b0ef-705681abff85"], ["organization_id", "5c851a7e-bfd0-11e4-8426-705681abff85"], ["created_at", "2015-03-01 05:03:55.435435"], ["updated_at", "2015-03-01 05:03:55.435435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$mSJV/xBaJn1wUrprGcvwhOLJpMNsyA3FGmMgAQBqduVblULkOXnlm"], ["created_at", "2015-03-01 05:03:55.448666"], ["updated_at", "2015-03-01 05:03:55.448666"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$LTY6UBrOpm25O78/TwdF7uKHOXDz.DOwDlODrBK622lDEyLdblvG2"], ["created_at", "2015-03-01 05:03:55.454275"], ["updated_at", "2015-03-01 05:03:55.454275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.456030"], ["user_id", "5c88469a-bfd0-11e4-979f-705681abff85"], ["created_at", "2015-03-01 05:03:55.456888"], ["updated_at", "2015-03-01 05:03:55.456888"], ["token", "rX46nnXawdOpww9tuc4gOO22i1eSe_XL6M8LQyO9doY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.460229"], ["updated_at", "2015-03-01 05:03:55.460229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c88469a-bfd0-11e4-979f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c8a008e-bfd0-11e4-beb5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c88469a-bfd0-11e4-979f-705681abff85"], ["organization_id", "5c8a008e-bfd0-11e4-beb5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.463457"], ["updated_at", "2015-03-01 05:03:55.463457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c891ae8-bfd0-11e4-a536-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c8a008e-bfd0-11e4-beb5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c891ae8-bfd0-11e4-a536-705681abff85"], ["organization_id", "5c8a008e-bfd0-11e4-beb5-705681abff85"], ["created_at", "2015-03-01 05:03:55.467181"], ["updated_at", "2015-03-01 05:03:55.467181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/5c8b1762-bfd0-11e4-9537-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"5c8b1762-bfd0-11e4-9537-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:03:55.472645' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rX46nnXawdOpww9tuc4gOO22i1eSe_XL6M8LQyO9doY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:03:55.474082"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:03:55.475058"], ["id", "5c8989a6-bfd0-11e4-a298-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c88469a-bfd0-11e4-979f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c88469a-bfd0-11e4-979f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c88469a-bfd0-11e4-979f-705681abff85' LIMIT 1 [["organization_id", "5c8a008e-bfd0-11e4-beb5-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "5c8a008e-bfd0-11e4-beb5-705681abff85"], ["id", "5c8b1762-bfd0-11e4-9537-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c891ae8-bfd0-11e4-a536-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c8a008e-bfd0-11e4-beb5-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c891ae8-bfd0-11e4-a536-705681abff85' AND "clubhouse_memberships"."id" != '5c8b1762-bfd0-11e4-9537-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c8a008e-bfd0-11e4-beb5-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:03:55.487057"], ["id", "5c8b1762-bfd0-11e4-9537-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.1ms | ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$u5i8/Lt9Sd4NivEytRpV4urAvFM18DHrYgv1pmC0K.sEjJgPhMAyS"], ["created_at", "2015-03-01 05:03:55.495798"], ["updated_at", "2015-03-01 05:03:55.495798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$BTj3jcKYykTfXDYEs4s6kOAA1YQZdamgj1uPDMGZmfby5Lu44hb4u"], ["created_at", "2015-03-01 05:03:55.500272"], ["updated_at", "2015-03-01 05:03:55.500272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.502447"], ["user_id", "5c8f741a-bfd0-11e4-944f-705681abff85"], ["created_at", "2015-03-01 05:03:55.503316"], ["updated_at", "2015-03-01 05:03:55.503316"], ["token", "VmHoNYDGmwTPAL7bfl7s7QwtiHwt8br0rxF5dOdjAWM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.507206"], ["updated_at", "2015-03-01 05:03:55.507206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c8f741a-bfd0-11e4-944f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c912efe-bfd0-11e4-adbc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c8f741a-bfd0-11e4-944f-705681abff85"], ["organization_id", "5c912efe-bfd0-11e4-adbc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.510510"], ["updated_at", "2015-03-01 05:03:55.510510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c90228e-bfd0-11e4-8c07-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c912efe-bfd0-11e4-adbc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c90228e-bfd0-11e4-8c07-705681abff85"], ["organization_id", "5c912efe-bfd0-11e4-adbc-705681abff85"], ["created_at", "2015-03-01 05:03:55.513966"], ["updated_at", "2015-03-01 05:03:55.513966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/5c91ad8e-bfd0-11e4-8fe1-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"5c91ad8e-bfd0-11e4-8fe1-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:03:55.519441' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VmHoNYDGmwTPAL7bfl7s7QwtiHwt8br0rxF5dOdjAWM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:03:55.521095"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:03:55.522034"], ["id", "5c90a59c-bfd0-11e4-acfc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c8f741a-bfd0-11e4-944f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5c8f741a-bfd0-11e4-944f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c8f741a-bfd0-11e4-944f-705681abff85' LIMIT 1 [["organization_id", "5c912efe-bfd0-11e4-adbc-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "5c912efe-bfd0-11e4-adbc-705681abff85"], ["id", "5c91ad8e-bfd0-11e4-8fe1-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c8f741a-bfd0-11e4-944f-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.5ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$0ZVs6VhQLI1VbPyEx581v.wAlVFsD5iP.a8P6UnB07BIYb65LOvNC"], ["created_at", "2015-03-01 05:03:55.537406"], ["updated_at", "2015-03-01 05:03:55.537406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$ezDJ88dPLWnJ11o6rRoXs.FGRxDe.c3m3adX0ElS5cV6IfYmQkO4i"], ["created_at", "2015-03-01 05:03:55.542457"], ["updated_at", "2015-03-01 05:03:55.542457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.544142"], ["user_id", "5c95dd1e-bfd0-11e4-9a15-705681abff85"], ["created_at", "2015-03-01 05:03:55.544920"], ["updated_at", "2015-03-01 05:03:55.544920"], ["token", "KXE85QxCwCi00_eAC5DXhPO_HitJp3BYLUL9zheo1II"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.548757"], ["updated_at", "2015-03-01 05:03:55.548757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c95dd1e-bfd0-11e4-9a15-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c9785f6-bfd0-11e4-a2b7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c95dd1e-bfd0-11e4-9a15-705681abff85"], ["organization_id", "5c9785f6-bfd0-11e4-a2b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.552940"], ["updated_at", "2015-03-01 05:03:55.552940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c968eee-bfd0-11e4-b08a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c9785f6-bfd0-11e4-a2b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c968eee-bfd0-11e4-b08a-705681abff85"], ["organization_id", "5c9785f6-bfd0-11e4-a2b7-705681abff85"], ["created_at", "2015-03-01 05:03:55.556579"], ["updated_at", "2015-03-01 05:03:55.556579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$j/xwbD/R8iHrD7L8homf..4rmWj77x/9mQsG9ecIHbbqifEU5d8L2"], ["created_at", "2015-03-01 05:03:55.561781"], ["updated_at", "2015-03-01 05:03:55.561781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.563374"], ["user_id", "5c99831a-bfd0-11e4-b515-705681abff85"], ["created_at", "2015-03-01 05:03:55.564288"], ["updated_at", "2015-03-01 05:03:55.564288"], ["token", "adE7Sg1cCm9F6U-xq67hyyH2eAZFqFfvH5w8Bkm6Np0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5c9785f6-bfd0-11e4-a2b7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "5c9785f6-bfd0-11e4-a2b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.576126"], ["updated_at", "2015-03-01 05:03:55.576126"], ["token", "kA9Yl8_kDFU_7-GRNX9EH8qDUbBHcDiKfXrZ11T6Ozk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$P8aixEQke6fGNg6iqyn6d.md.JNNyRPDTxni9xKPjOYSCjPKmgv7O"], ["created_at", "2015-03-01 05:03:55.591095"], ["updated_at", "2015-03-01 05:03:55.591095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$jW3OXpE.Sm/NTn5MPKLyN.3fnX/K3XwZ4OvExYqOaDCm5VDWfzz7S"], ["created_at", "2015-03-01 05:03:55.595568"], ["updated_at", "2015-03-01 05:03:55.595568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.597102"], ["user_id", "5c9e0354-bfd0-11e4-bf59-705681abff85"], ["created_at", "2015-03-01 05:03:55.597872"], ["updated_at", "2015-03-01 05:03:55.597872"], ["token", "v92vMIlvZJwDdtyhOxvvPIMGIVZZlWPyQcE7_R4nL5o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.601820"], ["updated_at", "2015-03-01 05:03:55.601820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c9e0354-bfd0-11e4-bf59-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c9fa88a-bfd0-11e4-9bb0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c9e0354-bfd0-11e4-bf59-705681abff85"], ["organization_id", "5c9fa88a-bfd0-11e4-9bb0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.605845"], ["updated_at", "2015-03-01 05:03:55.605845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c9ea84a-bfd0-11e4-960b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c9fa88a-bfd0-11e4-9bb0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c9ea84a-bfd0-11e4-960b-705681abff85"], ["organization_id", "5c9fa88a-bfd0-11e4-9bb0-705681abff85"], ["created_at", "2015-03-01 05:03:55.609149"], ["updated_at", "2015-03-01 05:03:55.609149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$tj9KlhC6PGGEILxL2foTBetFVW3FMWyg1fcOUza32IlCKX8xW23ga"], ["created_at", "2015-03-01 05:03:55.613464"], ["updated_at", "2015-03-01 05:03:55.613464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.615001"], ["user_id", "5ca16364-bfd0-11e4-8f8f-705681abff85"], ["created_at", "2015-03-01 05:03:55.615878"], ["updated_at", "2015-03-01 05:03:55.615878"], ["token", "ZP285vpwkYdiunKo2bx0m1N_sDIe6dQ-KQ9PXTpuMGw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '5c9fa88a-bfd0-11e4-9bb0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "5c9fa88a-bfd0-11e4-9bb0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.620445"], ["updated_at", "2015-03-01 05:03:55.620445"], ["token", "7bhy-WBoNRy_3wm4yB4JY14i3zjSJtAX8LcTFF9e4mk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"7bhy-WBoNRy_3wm4yB4JY14i3zjSJtAX8LcTFF9e4mk", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:03:55.626102' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZP285vpwkYdiunKo2bx0m1N_sDIe6dQ-KQ9PXTpuMGw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:03:55.627612"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:03:55.628598"], ["id", "5ca1d056-bfd0-11e4-b994-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5ca16364-bfd0-11e4-8f8f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5ca16364-bfd0-11e4-8f8f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "7bhy-WBoNRy_3wm4yB4JY14i3zjSJtAX8LcTFF9e4mk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c9fa88a-bfd0-11e4-9bb0-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c9fa88a-bfd0-11e4-9bb0-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ca16364-bfd0-11e4-8f8f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c9fa88a-bfd0-11e4-9bb0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ca16364-bfd0-11e4-8f8f-705681abff85"], ["organization_id", "5c9fa88a-bfd0-11e4-9bb0-705681abff85"], ["created_at", "2015-03-01 05:03:55.639156"], ["updated_at", "2015-03-01 05:03:55.639156"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "5ca28802-bfd0-11e4-8570-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$oDZDg5wbtqOL6yYQpY0xBOnA97DHq7qK9YLcOF33QL9jBWdjdgnaC"], ["created_at", "2015-03-01 05:03:55.648787"], ["updated_at", "2015-03-01 05:03:55.648787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$7aB8yFqQ8W4KpU1fxQOg3OeNXR.ID2eAd4CVrpUfJVnoHBh1Wmld2"], ["created_at", "2015-03-01 05:03:55.653568"], ["updated_at", "2015-03-01 05:03:55.653568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.655148"], ["user_id", "5ca6caca-bfd0-11e4-a361-705681abff85"], ["created_at", "2015-03-01 05:03:55.656055"], ["updated_at", "2015-03-01 05:03:55.656055"], ["token", "uO0KBjSp6juOnvQt7X2J_646wvPQZx-KhdD250IPnw8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:03:55.659317"], ["updated_at", "2015-03-01 05:03:55.659317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ca6caca-bfd0-11e4-a361-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ca86240-bfd0-11e4-aa44-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ca6caca-bfd0-11e4-a361-705681abff85"], ["organization_id", "5ca86240-bfd0-11e4-aa44-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.662604"], ["updated_at", "2015-03-01 05:03:55.662604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ca783f2-bfd0-11e4-8001-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ca86240-bfd0-11e4-aa44-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ca783f2-bfd0-11e4-8001-705681abff85"], ["organization_id", "5ca86240-bfd0-11e4-aa44-705681abff85"], ["created_at", "2015-03-01 05:03:55.665803"], ["updated_at", "2015-03-01 05:03:55.665803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$mhWyTLBxJKjJUVEcSwgHreQiwwt.zES9SmJI0z9SgC0T4c796PZLi"], ["created_at", "2015-03-01 05:03:55.670691"], ["updated_at", "2015-03-01 05:03:55.670691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:03:55.672390"], ["user_id", "5caa217a-bfd0-11e4-8039-705681abff85"], ["created_at", "2015-03-01 05:03:55.673180"], ["updated_at", "2015-03-01 05:03:55.673180"], ["token", "P658dUNLLWtje5vC_F6t-nuSff03V4aYqYKZoyvNV7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '5ca86240-bfd0-11e4-aa44-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "5ca86240-bfd0-11e4-aa44-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:03:55.676934"], ["updated_at", "2015-03-01 05:03:55.676934"], ["token", "GQc9oJhrBWbvShlJRPIUvfdrYPJnZmvXs0gMBMZu2hU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:03:55 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:03:55.684553' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "P658dUNLLWtje5vC_F6t-nuSff03V4aYqYKZoyvNV7c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:03:55.686763"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:03:55.687912"], ["id", "5caa899e-bfd0-11e4-b060-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5caa217a-bfd0-11e4-8039-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5caa217a-bfd0-11e4-8039-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$VieWsOd1QzIbhzxdIvv6WevBBUUtyd8YQZE3wv4/jsmSzcnSRYkkK"], ["created_at", "2015-03-01 05:04:04.609473"], ["updated_at", "2015-03-01 05:04:04.609473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$fw4mvQFY.weEcAjC103UMe5/4R43MR53mNwpuU5Rt.P39G6t2zu0u"], ["created_at", "2015-03-01 05:04:04.615091"], ["updated_at", "2015-03-01 05:04:04.615091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:04.623099"], ["user_id", "61fe3b70-bfd0-11e4-bfcb-705681abff85"], ["created_at", "2015-03-01 05:04:04.629326"], ["updated_at", "2015-03-01 05:04:04.629326"], ["token", "K7MtUmxtd_9PWgwMCvvtzLqWF0flURyiLA1pbKZ5oHQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:04.667301"], ["updated_at", "2015-03-01 05:04:04.667301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61fe3b70-bfd0-11e4-bfcb-705681abff85' AND "clubhouse_memberships"."organization_id" = '6206f080-bfd0-11e4-a2e3-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "61fe3b70-bfd0-11e4-bfcb-705681abff85"], ["organization_id", "6206f080-bfd0-11e4-a2e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:04.678961"], ["updated_at", "2015-03-01 05:04:04.678961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61feed7c-bfd0-11e4-85c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '6206f080-bfd0-11e4-a2e3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "61feed7c-bfd0-11e4-85c3-705681abff85"], ["organization_id", "6206f080-bfd0-11e4-a2e3-705681abff85"], ["created_at", "2015-03-01 05:04:04.684076"], ["updated_at", "2015-03-01 05:04:04.684076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 21:04:04 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:04:04.709073' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "K7MtUmxtd_9PWgwMCvvtzLqWF0flURyiLA1pbKZ5oHQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:04:04.716063"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:04:04.717253"], ["id", "62013848-bfd0-11e4-964b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "61fe3b70-bfd0-11e4-bfcb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "61fe3b70-bfd0-11e4-bfcb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "61fe3b70-bfd0-11e4-bfcb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "61fe3b70-bfd0-11e4-bfcb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6206f080-bfd0-11e4-a2e3-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "61fe3b70-bfd0-11e4-bfcb-705681abff85"]] Completed 200 OK in 39ms (Views: 8.9ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$lo.FWQ20oblwZEvp/Zltg.hvSnQJTpSKoYrSs2ETGweU5rUOi99Li"], ["created_at", "2015-03-01 05:04:04.757063"], ["updated_at", "2015-03-01 05:04:04.757063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$2D5yE7t6ubmQXTpBugGsgOsbULqkH1ByDdW1TnvuVl8wwSlAs74q2"], ["created_at", "2015-03-01 05:04:04.762682"], ["updated_at", "2015-03-01 05:04:04.762682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:04.765276"], ["user_id", "62149b68-bfd0-11e4-88b3-705681abff85"], ["created_at", "2015-03-01 05:04:04.766073"], ["updated_at", "2015-03-01 05:04:04.766073"], ["token", "1RAz-ecGZWvIcCmMCfkc327EDX5SSiQM4-tc8ZMmNtM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:04.769479"], ["updated_at", "2015-03-01 05:04:04.769479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62149b68-bfd0-11e4-88b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '62167bcc-bfd0-11e4-8454-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62149b68-bfd0-11e4-88b3-705681abff85"], ["organization_id", "62167bcc-bfd0-11e4-8454-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:04.772840"], ["updated_at", "2015-03-01 05:04:04.772840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '621585dc-bfd0-11e4-a0b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '62167bcc-bfd0-11e4-8454-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "621585dc-bfd0-11e4-a0b0-705681abff85"], ["organization_id", "62167bcc-bfd0-11e4-8454-705681abff85"], ["created_at", "2015-03-01 05:04:04.776036"], ["updated_at", "2015-03-01 05:04:04.776036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:04:04 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$bnBaznRIXAzAkCMKbZNnsu/y6jx3c.uOJrxTk7vBAtCCp.1nfyG1m"], ["created_at", "2015-03-01 05:04:04.789812"], ["updated_at", "2015-03-01 05:04:04.789812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Wc57SWSbH9qQUC/eCtw.g.n8fxjrXHWj1sDCLM3EpwtiTUFDVV38O"], ["created_at", "2015-03-01 05:04:04.794528"], ["updated_at", "2015-03-01 05:04:04.794528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:04.796250"], ["user_id", "62199dd4-bfd0-11e4-900e-705681abff85"], ["created_at", "2015-03-01 05:04:04.797087"], ["updated_at", "2015-03-01 05:04:04.797087"], ["token", "o6hlip7jO1mIXqsYEpdEPeFbZSfNSKLMiBAt1BgryRU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:04.800464"], ["updated_at", "2015-03-01 05:04:04.800464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62199dd4-bfd0-11e4-900e-705681abff85' AND "clubhouse_memberships"."organization_id" = '621b3888-bfd0-11e4-ae3e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62199dd4-bfd0-11e4-900e-705681abff85"], ["organization_id", "621b3888-bfd0-11e4-ae3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:04.803843"], ["updated_at", "2015-03-01 05:04:04.803843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '621a526a-bfd0-11e4-add2-705681abff85' AND "clubhouse_memberships"."organization_id" = '621b3888-bfd0-11e4-ae3e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "621a526a-bfd0-11e4-add2-705681abff85"], ["organization_id", "621b3888-bfd0-11e4-ae3e-705681abff85"], ["created_at", "2015-03-01 05:04:04.807333"], ["updated_at", "2015-03-01 05:04:04.807333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/621bbb96-bfd0-11e4-8dd2-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:04:04 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"621bbb96-bfd0-11e4-8dd2-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:04:04.813902' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o6hlip7jO1mIXqsYEpdEPeFbZSfNSKLMiBAt1BgryRU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:04:04.815474"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:04:04.816831"], ["id", "621abd36-bfd0-11e4-92ba-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62199dd4-bfd0-11e4-900e-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "62199dd4-bfd0-11e4-900e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '62199dd4-bfd0-11e4-900e-705681abff85' LIMIT 1 [["organization_id", "621b3888-bfd0-11e4-ae3e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "621b3888-bfd0-11e4-ae3e-705681abff85"], ["id", "621bbb96-bfd0-11e4-8dd2-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62199dd4-bfd0-11e4-900e-705681abff85"]] Completed 500 Internal Server Error in 24ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$moI9BPYjqQXgE36ZK13YueLDpUyMzi9CiTo6v7B2ts2drqwMMShD2"], ["created_at", "2015-03-01 05:04:04.843080"], ["updated_at", "2015-03-01 05:04:04.843080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$rU2lWP0wrPMwBTUXZ7zeAOeyaAohf.8X1aCc/CCtj3hJ2pZVp/G96"], ["created_at", "2015-03-01 05:04:04.848085"], ["updated_at", "2015-03-01 05:04:04.848085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:04.849846"], ["user_id", "6221bce4-bfd0-11e4-98b8-705681abff85"], ["created_at", "2015-03-01 05:04:04.850671"], ["updated_at", "2015-03-01 05:04:04.850671"], ["token", "T6Pv6wdPw48xNAhyXVKeclg4DohcTBQMAtbQbWAAXn0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:04.854127"], ["updated_at", "2015-03-01 05:04:04.854127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6221bce4-bfd0-11e4-98b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '6223667a-bfd0-11e4-b3fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6221bce4-bfd0-11e4-98b8-705681abff85"], ["organization_id", "6223667a-bfd0-11e4-b3fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:04.858224"], ["updated_at", "2015-03-01 05:04:04.858224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '622281c4-bfd0-11e4-a950-705681abff85' AND "clubhouse_memberships"."organization_id" = '6223667a-bfd0-11e4-b3fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "622281c4-bfd0-11e4-a950-705681abff85"], ["organization_id", "6223667a-bfd0-11e4-b3fc-705681abff85"], ["created_at", "2015-03-01 05:04:04.861603"], ["updated_at", "2015-03-01 05:04:04.861603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/62248bd6-bfd0-11e4-8212-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:04:04 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"62248bd6-bfd0-11e4-8212-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:04:04.867991' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "T6Pv6wdPw48xNAhyXVKeclg4DohcTBQMAtbQbWAAXn0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:04:04.870278"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:04:04.871846"], ["id", "6222eb1e-bfd0-11e4-b52b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6221bce4-bfd0-11e4-98b8-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6221bce4-bfd0-11e4-98b8-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6221bce4-bfd0-11e4-98b8-705681abff85' LIMIT 1 [["organization_id", "6223667a-bfd0-11e4-b3fc-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "6223667a-bfd0-11e4-b3fc-705681abff85"], ["id", "62248bd6-bfd0-11e4-8212-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "622281c4-bfd0-11e4-a950-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6223667a-bfd0-11e4-b3fc-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '622281c4-bfd0-11e4-a950-705681abff85' AND "clubhouse_memberships"."id" != '62248bd6-bfd0-11e4-8212-705681abff85' AND "clubhouse_memberships"."organization_id" = '6223667a-bfd0-11e4-b3fc-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:04:04.882574"], ["id", "62248bd6-bfd0-11e4-8212-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.7ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$XMrhX4o8Y3R63.rKYG0Rm.V8pSYKaO63LNvLljownk3hvnGaCxx0G"], ["created_at", "2015-03-01 05:04:04.893858"], ["updated_at", "2015-03-01 05:04:04.893858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$TFZ9fqScmvrvgvWdlSnnB.0PKidebWJi7hcH5tBgh3JrzY3Nz6eka"], ["created_at", "2015-03-01 05:04:04.898389"], ["updated_at", "2015-03-01 05:04:04.898389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:04.900859"], ["user_id", "62297920-bfd0-11e4-a2fb-705681abff85"], ["created_at", "2015-03-01 05:04:04.902102"], ["updated_at", "2015-03-01 05:04:04.902102"], ["token", "eEZprcjWN7rdYzrj5yOtzQh9o_fiO0a-YyQ_hU6HnH4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:04.906758"], ["updated_at", "2015-03-01 05:04:04.906758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62297920-bfd0-11e4-a2fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '622b818e-bfd0-11e4-b327-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62297920-bfd0-11e4-a2fb-705681abff85"], ["organization_id", "622b818e-bfd0-11e4-b327-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:04.910856"], ["updated_at", "2015-03-01 05:04:04.910856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '622a36bc-bfd0-11e4-9269-705681abff85' AND "clubhouse_memberships"."organization_id" = '622b818e-bfd0-11e4-b327-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "622a36bc-bfd0-11e4-9269-705681abff85"], ["organization_id", "622b818e-bfd0-11e4-b327-705681abff85"], ["created_at", "2015-03-01 05:04:04.914285"], ["updated_at", "2015-03-01 05:04:04.914285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 21:04:04 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:04:04.921895' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eEZprcjWN7rdYzrj5yOtzQh9o_fiO0a-YyQ_hU6HnH4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:04:04.923523"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:04:04.925008"], ["id", "622acee2-bfd0-11e4-83d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62297920-bfd0-11e4-a2fb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "62297920-bfd0-11e4-a2fb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '62297920-bfd0-11e4-a2fb-705681abff85' LIMIT 1 [["organization_id", "622b818e-bfd0-11e4-b327-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "622b818e-bfd0-11e4-b327-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "622b818e-bfd0-11e4-b327-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62297920-bfd0-11e4-a2fb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "622b818e-bfd0-11e4-b327-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "622a36bc-bfd0-11e4-9269-705681abff85"]] Completed 200 OK in 16ms (Views: 6.6ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$BJbKJ9DnBSG5ipgfPwfCgOjRMIcOaYOafsAFKJIB43rJ/9Tg9Lr/y"], ["created_at", "2015-03-01 05:04:04.944926"], ["updated_at", "2015-03-01 05:04:04.944926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$PbFJ6K0yVbuAwYDNJoFTUuo1V.MEfq3jvtALW69v6O2n6QGv4mibG"], ["created_at", "2015-03-01 05:04:04.951141"], ["updated_at", "2015-03-01 05:04:04.951141"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:04.954141"], ["user_id", "623146fa-bfd0-11e4-8660-705681abff85"], ["created_at", "2015-03-01 05:04:04.955670"], ["updated_at", "2015-03-01 05:04:04.955670"], ["token", "bqJ62d9LisKPQgEDnjGgBlGmeeSPu1lTMeEkQ5AS1QE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:04.959678"], ["updated_at", "2015-03-01 05:04:04.959678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '623146fa-bfd0-11e4-8660-705681abff85' AND "clubhouse_memberships"."organization_id" = '62338424-bfd0-11e4-a8d0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "623146fa-bfd0-11e4-8660-705681abff85"], ["organization_id", "62338424-bfd0-11e4-a8d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:04.962991"], ["updated_at", "2015-03-01 05:04:04.962991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62324a1e-bfd0-11e4-9799-705681abff85' AND "clubhouse_memberships"."organization_id" = '62338424-bfd0-11e4-a8d0-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "62324a1e-bfd0-11e4-9799-705681abff85"], ["organization_id", "62338424-bfd0-11e4-a8d0-705681abff85"], ["created_at", "2015-03-01 05:04:04.967378"], ["updated_at", "2015-03-01 05:04:04.967378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$zUgDdpOeY8SG9bxQUkB8pOF5cSiutIkhN89mVR2EMKMVwvxvs67di"], ["created_at", "2015-03-01 05:04:04.972931"], ["updated_at", "2015-03-01 05:04:04.972931"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:04.974837"], ["user_id", "62358c60-bfd0-11e4-971b-705681abff85"], ["created_at", "2015-03-01 05:04:04.975969"], ["updated_at", "2015-03-01 05:04:04.975969"], ["token", "Ji1QHuTWWMcQXi5-_HJtEQqlyM_8u9PWFS8YBVZZbqc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '62338424-bfd0-11e4-a8d0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "62338424-bfd0-11e4-a8d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:04.988388"], ["updated_at", "2015-03-01 05:04:04.988388"], ["token", "xf8ogJkqhK4xzvml6oDeXOG8nivCUbhXs14B-7w_iqo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:04:04 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$dVL98IWPGL93JUkfK.ghM.KJ3S5igboDaLjZUQ/tm57HM0XIy4g72"], ["created_at", "2015-03-01 05:04:05.005646"], ["updated_at", "2015-03-01 05:04:05.005646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$AhCfEC7WwHAZC/dZkp2lFeww9Ncc3aie7jkYIHNjR84iJTY4xFuQ."], ["created_at", "2015-03-01 05:04:05.010461"], ["updated_at", "2015-03-01 05:04:05.010461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.012137"], ["user_id", "623a8e54-bfd0-11e4-9233-705681abff85"], ["created_at", "2015-03-01 05:04:05.012997"], ["updated_at", "2015-03-01 05:04:05.012997"], ["token", "xoAMM-xfx55g7NZn3j_IeC4LxU_RbPd_z6dKi0Cpbhc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:05.017677"], ["updated_at", "2015-03-01 05:04:05.017677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '623a8e54-bfd0-11e4-9233-705681abff85' AND "clubhouse_memberships"."organization_id" = '623c74ee-bfd0-11e4-a8e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "623a8e54-bfd0-11e4-9233-705681abff85"], ["organization_id", "623c74ee-bfd0-11e4-a8e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.023240"], ["updated_at", "2015-03-01 05:04:05.023240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '623b4466-bfd0-11e4-8086-705681abff85' AND "clubhouse_memberships"."organization_id" = '623c74ee-bfd0-11e4-a8e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "623b4466-bfd0-11e4-8086-705681abff85"], ["organization_id", "623c74ee-bfd0-11e4-a8e9-705681abff85"], ["created_at", "2015-03-01 05:04:05.026868"], ["updated_at", "2015-03-01 05:04:05.026868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$RKSeA/TRMcv1/N9m1f8KTOo3TB1HguLR4.Y9HD/Rf79TkHVnWJ7iK"], ["created_at", "2015-03-01 05:04:05.031673"], ["updated_at", "2015-03-01 05:04:05.031673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.033760"], ["user_id", "623e8086-bfd0-11e4-8495-705681abff85"], ["created_at", "2015-03-01 05:04:05.035169"], ["updated_at", "2015-03-01 05:04:05.035169"], ["token", "PVDs6HRlcLJBGC4yf69iv4xR3wk8pnHZNwOwG0ab5yw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '623c74ee-bfd0-11e4-a8e9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "623c74ee-bfd0-11e4-a8e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.048196"], ["updated_at", "2015-03-01 05:04:05.048196"], ["token", "YittPMcnTJCjnNt5wZOcLLxKZSzmbp1V3HI8mKXsj7s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:04:05 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:04:05.053742' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PVDs6HRlcLJBGC4yf69iv4xR3wk8pnHZNwOwG0ab5yw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:04:05.055250"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:04:05.056245"], ["id", "6240574e-bfd0-11e4-adf7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "623e8086-bfd0-11e4-8495-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "623e8086-bfd0-11e4-8495-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$i4VI0K3EckrMmmfhov9gkuDTXr92oVhorfwayzQIcpMNljGa30b9m"], ["created_at", "2015-03-01 05:04:05.068164"], ["updated_at", "2015-03-01 05:04:05.068164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$jO10JDPlvRJl6Tcxu3RW.esa9al495wmei/S2Y98jEhq5eNA8UYx6"], ["created_at", "2015-03-01 05:04:05.072553"], ["updated_at", "2015-03-01 05:04:05.072553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.074139"], ["user_id", "624412c6-bfd0-11e4-b788-705681abff85"], ["created_at", "2015-03-01 05:04:05.074938"], ["updated_at", "2015-03-01 05:04:05.074938"], ["token", "P_q9wIAiJnlrabsnaoGkNT6tYxBFmVGgirbEG_jXwHU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:05.078190"], ["updated_at", "2015-03-01 05:04:05.078190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '624412c6-bfd0-11e4-b788-705681abff85' AND "clubhouse_memberships"."organization_id" = '6245a6ae-bfd0-11e4-b3c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "624412c6-bfd0-11e4-b788-705681abff85"], ["organization_id", "6245a6ae-bfd0-11e4-b3c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.083301"], ["updated_at", "2015-03-01 05:04:05.083301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6244bd52-bfd0-11e4-be79-705681abff85' AND "clubhouse_memberships"."organization_id" = '6245a6ae-bfd0-11e4-b3c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6244bd52-bfd0-11e4-be79-705681abff85"], ["organization_id", "6245a6ae-bfd0-11e4-b3c6-705681abff85"], ["created_at", "2015-03-01 05:04:05.087301"], ["updated_at", "2015-03-01 05:04:05.087301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$kOS1tcPjDd70YXtb5U5lhORSscpORx8L9P3EttPibzijpseJ5zCDu"], ["created_at", "2015-03-01 05:04:05.091978"], ["updated_at", "2015-03-01 05:04:05.091978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.093493"], ["user_id", "6247b214-bfd0-11e4-afcd-705681abff85"], ["created_at", "2015-03-01 05:04:05.094277"], ["updated_at", "2015-03-01 05:04:05.094277"], ["token", "EnB-x7rEsHuox50-PzWdmbsErWCnImFbE2mBpD4a6_U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '6245a6ae-bfd0-11e4-b3c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "6245a6ae-bfd0-11e4-b3c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.098079"], ["updated_at", "2015-03-01 05:04:05.098079"], ["token", "LAy_fj9nOp_yEezLLItUyFZcQSV8Ut297SsU-jTkoZs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:04:05 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"LAy_fj9nOp_yEezLLItUyFZcQSV8Ut297SsU-jTkoZs", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:04:05.103435' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EnB-x7rEsHuox50-PzWdmbsErWCnImFbE2mBpD4a6_U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:04:05.105009"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:04:05.105946"], ["id", "624812f4-bfd0-11e4-a60c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6247b214-bfd0-11e4-afcd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6247b214-bfd0-11e4-afcd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "LAy_fj9nOp_yEezLLItUyFZcQSV8Ut297SsU-jTkoZs"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6245a6ae-bfd0-11e4-b3c6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6245a6ae-bfd0-11e4-b3c6-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6247b214-bfd0-11e4-afcd-705681abff85' AND "clubhouse_memberships"."organization_id" = '6245a6ae-bfd0-11e4-b3c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6247b214-bfd0-11e4-afcd-705681abff85"], ["admin", "t"], ["organization_id", "6245a6ae-bfd0-11e4-b3c6-705681abff85"], ["created_at", "2015-03-01 05:04:05.115971"], ["updated_at", "2015-03-01 05:04:05.115971"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6248aa70-bfd0-11e4-8840-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.4ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$quMoquRW0OIaK7dlWdgMre9rnz/jO.MbTx2VTl5X5pWXhCxPtuYPm"], ["created_at", "2015-03-01 05:04:05.126657"], ["updated_at", "2015-03-01 05:04:05.126657"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$xQsndyGjFTzbmeChEFjHJeCGGQl5Uf5vOyTcpwyS6ZONjVlaeAak6"], ["created_at", "2015-03-01 05:04:05.134330"], ["updated_at", "2015-03-01 05:04:05.134330"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.140926"], ["user_id", "624d0d7c-bfd0-11e4-b6e7-705681abff85"], ["created_at", "2015-03-01 05:04:05.142807"], ["updated_at", "2015-03-01 05:04:05.142807"], ["token", "PZLvVKBCCcp18p1N1RC54uVuRF3w3HrLtG3Fm52YbAc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:05.146900"], ["updated_at", "2015-03-01 05:04:05.146900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '624d0d7c-bfd0-11e4-b6e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '625015e4-bfd0-11e4-a287-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "624d0d7c-bfd0-11e4-b6e7-705681abff85"], ["organization_id", "625015e4-bfd0-11e4-a287-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.150695"], ["updated_at", "2015-03-01 05:04:05.150695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '624e4b24-bfd0-11e4-814c-705681abff85' AND "clubhouse_memberships"."organization_id" = '625015e4-bfd0-11e4-a287-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "624e4b24-bfd0-11e4-814c-705681abff85"], ["organization_id", "625015e4-bfd0-11e4-a287-705681abff85"], ["created_at", "2015-03-01 05:04:05.154792"], ["updated_at", "2015-03-01 05:04:05.154792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/62514ca2-bfd0-11e4-bb1a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:04:05 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"62514ca2-bfd0-11e4-bb1a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:04:05.160876' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PZLvVKBCCcp18p1N1RC54uVuRF3w3HrLtG3Fm52YbAc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:04:05.162437"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:04:05.163556"], ["id", "624f8a0c-bfd0-11e4-9a1d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "624d0d7c-bfd0-11e4-b6e7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "624d0d7c-bfd0-11e4-b6e7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '624d0d7c-bfd0-11e4-b6e7-705681abff85' LIMIT 1 [["organization_id", "625015e4-bfd0-11e4-a287-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "625015e4-bfd0-11e4-a287-705681abff85"], ["id", "62514ca2-bfd0-11e4-bb1a-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "625015e4-bfd0-11e4-a287-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "624e4b24-bfd0-11e4-814c-705681abff85"]] Completed 200 OK in 13ms (Views: 2.7ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$onl.RQKwzcJd.hr4egr64uMcsnTInU/LZWiKH4qBV31qQvor9DDmq"], ["created_at", "2015-03-01 05:04:05.181396"], ["updated_at", "2015-03-01 05:04:05.181396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$EDOeimvURnsJ5mE3DNclkueY/y0cQoFIKqMndccOXcKp6AeLi.JxO"], ["created_at", "2015-03-01 05:04:05.187786"], ["updated_at", "2015-03-01 05:04:05.187786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.191267"], ["user_id", "625569e0-bfd0-11e4-b727-705681abff85"], ["created_at", "2015-03-01 05:04:05.192659"], ["updated_at", "2015-03-01 05:04:05.192659"], ["token", "QO0enQGrISG9g_7zY7hoiSGxX_o-m1JpD3k7zad9120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:05.197028"], ["updated_at", "2015-03-01 05:04:05.197028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '625569e0-bfd0-11e4-b727-705681abff85' AND "clubhouse_memberships"."organization_id" = '6257c2a8-bfd0-11e4-8efd-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "625569e0-bfd0-11e4-b727-705681abff85"], ["organization_id", "6257c2a8-bfd0-11e4-8efd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.244181"], ["updated_at", "2015-03-01 05:04:05.244181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62568b54-bfd0-11e4-a382-705681abff85' AND "clubhouse_memberships"."organization_id" = '6257c2a8-bfd0-11e4-8efd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "62568b54-bfd0-11e4-a382-705681abff85"], ["organization_id", "6257c2a8-bfd0-11e4-8efd-705681abff85"], ["created_at", "2015-03-01 05:04:05.248688"], ["updated_at", "2015-03-01 05:04:05.248688"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 21:04:05 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$nxW5KdNMFD4jJkI/X.rIpuLVtpuWF60C/e5xTAzaSMDTxdA8pPz/O"], ["created_at", "2015-03-01 05:04:05.263336"], ["updated_at", "2015-03-01 05:04:05.263336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$8ir/zbqUOZF0w3tGG0KSGeMMFNPAWdhTUK7Oud2gJEMwXImozkdTK"], ["created_at", "2015-03-01 05:04:05.268987"], ["updated_at", "2015-03-01 05:04:05.268987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.270920"], ["user_id", "6261d8f6-bfd0-11e4-9995-705681abff85"], ["created_at", "2015-03-01 05:04:05.271686"], ["updated_at", "2015-03-01 05:04:05.271686"], ["token", "Iva-cgTazS_weU_B0h3Vk7WDOm0cmxThOnJx0UYEuf0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:05.275346"], ["updated_at", "2015-03-01 05:04:05.275346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6261d8f6-bfd0-11e4-9995-705681abff85' AND "clubhouse_memberships"."organization_id" = '6263abc2-bfd0-11e4-b683-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6261d8f6-bfd0-11e4-9995-705681abff85"], ["organization_id", "6263abc2-bfd0-11e4-b683-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.278599"], ["updated_at", "2015-03-01 05:04:05.278599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6262c284-bfd0-11e4-8f21-705681abff85' AND "clubhouse_memberships"."organization_id" = '6263abc2-bfd0-11e4-b683-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6262c284-bfd0-11e4-8f21-705681abff85"], ["organization_id", "6263abc2-bfd0-11e4-b683-705681abff85"], ["created_at", "2015-03-01 05:04:05.281834"], ["updated_at", "2015-03-01 05:04:05.281834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/62642ab6-bfd0-11e4-9065-705681abff85" for 127.0.0.1 at 2015-02-28 21:04:05 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"62642ab6-bfd0-11e4-9065-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:04:05.286935' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Iva-cgTazS_weU_B0h3Vk7WDOm0cmxThOnJx0UYEuf0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:04:05.288342"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:04:05.289361"], ["id", "62632a9e-bfd0-11e4-b697-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6261d8f6-bfd0-11e4-9995-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6261d8f6-bfd0-11e4-9995-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6261d8f6-bfd0-11e4-9995-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "6261d8f6-bfd0-11e4-9995-705681abff85"], ["id", "62642ab6-bfd0-11e4-9065-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6263abc2-bfd0-11e4-b683-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6261d8f6-bfd0-11e4-9995-705681abff85"]] Completed 200 OK in 10ms (Views: 2.0ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$FQe8BRQpp8vDpDOj3VxF0OE7v9R3r8Uhp2OGV5KGsj1YgiaJqUG2u"], ["created_at", "2015-03-01 05:04:05.303345"], ["updated_at", "2015-03-01 05:04:05.303345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$AVvgeS95iGw8eU6VJ9aK7.VBIjjDhQBgzEF.NTz5BIjZ6.I3VwGGC"], ["created_at", "2015-03-01 05:04:05.308181"], ["updated_at", "2015-03-01 05:04:05.308181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.309876"], ["user_id", "6267fbaa-bfd0-11e4-96eb-705681abff85"], ["created_at", "2015-03-01 05:04:05.310650"], ["updated_at", "2015-03-01 05:04:05.310650"], ["token", "EIo3TU0BUs-aN1DgwpyT_xs1bVqTgPvdSC5IC0jzTKY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:05.313911"], ["updated_at", "2015-03-01 05:04:05.313911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6267fbaa-bfd0-11e4-96eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '62698ede-bfd0-11e4-a38a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6267fbaa-bfd0-11e4-96eb-705681abff85"], ["organization_id", "62698ede-bfd0-11e4-a38a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.317235"], ["updated_at", "2015-03-01 05:04:05.317235"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6268b04a-bfd0-11e4-a14c-705681abff85' AND "clubhouse_memberships"."organization_id" = '62698ede-bfd0-11e4-a38a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6268b04a-bfd0-11e4-a14c-705681abff85"], ["organization_id", "62698ede-bfd0-11e4-a38a-705681abff85"], ["created_at", "2015-03-01 05:04:05.322452"], ["updated_at", "2015-03-01 05:04:05.322452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 21:04:05 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$d495ym8cToQqQtu8qQnuROSvda79mBkH0P70rsk4aLyzxQ99/G.3."], ["created_at", "2015-03-01 05:04:05.337149"], ["updated_at", "2015-03-01 05:04:05.337149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$gmrPT5tSON0RoDy5uOuEseL6k7S5LNOL65UcGQ6zAn81sCP9etvU."], ["created_at", "2015-03-01 05:04:05.341389"], ["updated_at", "2015-03-01 05:04:05.341389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.343078"], ["user_id", "626d1d56-bfd0-11e4-b952-705681abff85"], ["created_at", "2015-03-01 05:04:05.343854"], ["updated_at", "2015-03-01 05:04:05.343854"], ["token", "f2j1HlCqKv_LId_po4h_7P5BGSKHI4xskxNSBFVZaP0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:05.347185"], ["updated_at", "2015-03-01 05:04:05.347185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '626d1d56-bfd0-11e4-b952-705681abff85' AND "clubhouse_memberships"."organization_id" = '626ea324-bfd0-11e4-a60f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "626d1d56-bfd0-11e4-b952-705681abff85"], ["organization_id", "626ea324-bfd0-11e4-a60f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.350618"], ["updated_at", "2015-03-01 05:04:05.350618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '626dbfea-bfd0-11e4-a913-705681abff85' AND "clubhouse_memberships"."organization_id" = '626ea324-bfd0-11e4-a60f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "626dbfea-bfd0-11e4-a913-705681abff85"], ["organization_id", "626ea324-bfd0-11e4-a60f-705681abff85"], ["created_at", "2015-03-01 05:04:05.354029"], ["updated_at", "2015-03-01 05:04:05.354029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:04:05 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$C9QUVSMW1yjaUHis4s1wjeERjU1jFy5Ua4uM0dRBvwRTikAWOK6Oe"], ["created_at", "2015-03-01 05:04:05.367799"], ["updated_at", "2015-03-01 05:04:05.367799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$ce86EDdfZiFLHBnXC4SBMeQxzeP/PPb9VP3OSanMbG9eVkC0cTriG"], ["created_at", "2015-03-01 05:04:05.372714"], ["updated_at", "2015-03-01 05:04:05.372714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.374533"], ["user_id", "6271ce14-bfd0-11e4-8768-705681abff85"], ["created_at", "2015-03-01 05:04:05.375335"], ["updated_at", "2015-03-01 05:04:05.375335"], ["token", "eJpBuzJQb56pMeRMtkREstsbBdUqmmqKfEm6zDlk7Z8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:05.378781"], ["updated_at", "2015-03-01 05:04:05.378781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6271ce14-bfd0-11e4-8768-705681abff85' AND "clubhouse_memberships"."organization_id" = '6273762e-bfd0-11e4-91b7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6271ce14-bfd0-11e4-8768-705681abff85"], ["organization_id", "6273762e-bfd0-11e4-91b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.382123"], ["updated_at", "2015-03-01 05:04:05.382123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62728e8a-bfd0-11e4-a85c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6273762e-bfd0-11e4-91b7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "62728e8a-bfd0-11e4-a85c-705681abff85"], ["organization_id", "6273762e-bfd0-11e4-91b7-705681abff85"], ["created_at", "2015-03-01 05:04:05.386231"], ["updated_at", "2015-03-01 05:04:05.386231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/6273f69e-bfd0-11e4-ba45-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:04:05 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"6273f69e-bfd0-11e4-ba45-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:04:05.391149' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eJpBuzJQb56pMeRMtkREstsbBdUqmmqKfEm6zDlk7Z8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:04:05.392746"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:04:05.393725"], ["id", "6272f7a8-bfd0-11e4-91b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6271ce14-bfd0-11e4-8768-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6271ce14-bfd0-11e4-8768-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6271ce14-bfd0-11e4-8768-705681abff85' LIMIT 1 [["organization_id", "6273762e-bfd0-11e4-91b7-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "6273762e-bfd0-11e4-91b7-705681abff85"], ["id", "6273f69e-bfd0-11e4-ba45-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6271ce14-bfd0-11e4-8768-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$BXZejqbmYoTeg4apSrIxGej.ZFG2OB3vKpHwz/WNIXthKf0Qw.R2e"], ["created_at", "2015-03-01 05:04:05.408451"], ["updated_at", "2015-03-01 05:04:05.408451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$XdsdM/ktXmb7JTUCIrO.vuwyo6ByxE7SzSh4ti77Rsny6i0df1/Ni"], ["created_at", "2015-03-01 05:04:05.413461"], ["updated_at", "2015-03-01 05:04:05.413461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:04:05.415024"], ["user_id", "6277ffc8-bfd0-11e4-8281-705681abff85"], ["created_at", "2015-03-01 05:04:05.415854"], ["updated_at", "2015-03-01 05:04:05.415854"], ["token", "TcasTBzzORYtQVvZrchLZrxYqvPHipVHEJugcO6mCdc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:04:05.419842"], ["updated_at", "2015-03-01 05:04:05.419842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6277ffc8-bfd0-11e4-8281-705681abff85' AND "clubhouse_memberships"."organization_id" = '6279b962-bfd0-11e4-bbbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6277ffc8-bfd0-11e4-8281-705681abff85"], ["organization_id", "6279b962-bfd0-11e4-bbbe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:04:05.424693"], ["updated_at", "2015-03-01 05:04:05.424693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6278c052-bfd0-11e4-b7a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '6279b962-bfd0-11e4-bbbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6278c052-bfd0-11e4-b7a7-705681abff85"], ["organization_id", "6279b962-bfd0-11e4-bbbe-705681abff85"], ["created_at", "2015-03-01 05:04:05.428149"], ["updated_at", "2015-03-01 05:04:05.428149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/627afc5a-bfd0-11e4-93f2-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:04:05 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"627afc5a-bfd0-11e4-93f2-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:04:05.433298' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TcasTBzzORYtQVvZrchLZrxYqvPHipVHEJugcO6mCdc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:04:05.435585"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:04:05.436959"], ["id", "62792a7e-bfd0-11e4-ad4f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6277ffc8-bfd0-11e4-8281-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6277ffc8-bfd0-11e4-8281-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6277ffc8-bfd0-11e4-8281-705681abff85' LIMIT 1 [["organization_id", "6279b962-bfd0-11e4-bbbe-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "6279b962-bfd0-11e4-bbbe-705681abff85"], ["id", "627afc5a-bfd0-11e4-93f2-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6278c052-bfd0-11e4-b7a7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "627afc5a-bfd0-11e4-93f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.011218"], ["updated_at", "2015-03-01 05:05:08.011218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.024077"], ["updated_at", "2015-03-01 05:05:08.024077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.046525"], ["updated_at", "2015-03-01 05:05:08.046525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.051269"], ["updated_at", "2015-03-01 05:05:08.051269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "87ce92aa-bfd0-11e4-a3cf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.318564"], ["updated_at", "2015-03-01 05:05:08.318564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '87f75bf4-bfd0-11e4-8505-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "87f75bf4-bfd0-11e4-8505-705681abff85"], ["created_at", "2015-03-01 05:05:08.346830"], ["updated_at", "2015-03-01 05:05:08.346830"], ["token", "alw0vwv1kQ7RXf7g73NMlotCjhr98u8hW8sYjJSRuh8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.4ms) Clubhouse::Mailer#invitation: processed outbound mail in 24.6ms Sent mail to john@example.com (9.5ms) Date: Sat, 28 Feb 2015 21:05:08 -0800 From: from@example.com To: john@example.com Message-ID: <54f29e045d362_131e73fcde5465be82476d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/alw0vwv1kQ7RXf7g73NMlotCjhr98u8hW8sYjJSRuh8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.392266"], ["updated_at", "2015-03-01 05:05:08.392266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8802906e-bfd0-11e4-9486-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8802906e-bfd0-11e4-9486-705681abff85"], ["created_at", "2015-03-01 05:05:08.395937"], ["updated_at", "2015-03-01 05:05:08.395937"], ["token", "oCviR7KA_wDBL-7IvqCEQmcHYzfHtAelj6N7XhdMFHA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.8ms) Date: Sat, 28 Feb 2015 21:05:08 -0800 From: from@example.com To: john@example.com Message-ID: <54f29e04619d4_131e73fcde5465be82485d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/oCviR7KA_wDBL-7IvqCEQmcHYzfHtAelj6N7XhdMFHA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.405238"], ["updated_at", "2015-03-01 05:05:08.405238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '880489d2-bfd0-11e4-8ff9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "880489d2-bfd0-11e4-8ff9-705681abff85"], ["created_at", "2015-03-01 05:05:08.409482"], ["updated_at", "2015-03-01 05:05:08.409482"], ["token", "0RuObSI0nW7imKoand1I1cdhdllDb7px5fS_E-Rnrt0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.8ms Sent mail to john@example.com (1.9ms) Date: Sat, 28 Feb 2015 21:05:08 -0800 From: from@example.com To: john@example.com Message-ID: <54f29e0464fca_131e73fcde5465be824934@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/0RuObSI0nW7imKoand1I1cdhdllDb7px5fS_E-Rnrt0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.419549"], ["updated_at", "2015-03-01 05:05:08.419549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8806bcb6-bfd0-11e4-8f1f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8806bcb6-bfd0-11e4-8f1f-705681abff85"], ["created_at", "2015-03-01 05:05:08.423371"], ["updated_at", "2015-03-01 05:05:08.423371"], ["token", "9-TmXC7qOLwnctkRTXO3eHHOj8jK9R4x_-R85nWaatA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 21:05:08 -0800 From: from@example.com To: john@example.com Message-ID: <54f29e0468a7d_131e73fcde5465be825071@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/9-TmXC7qOLwnctkRTXO3eHHOj8jK9R4x_-R85nWaatA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$hT4WZK4uA6SZQXI8oXqOWuBHRssZxoW/HeEwcea8P.mqq64hkuvnC"], ["created_at", "2015-03-01 05:05:08.441546"], ["updated_at", "2015-03-01 05:05:08.441546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.454676"], ["user_id", "880a287e-bfd0-11e4-aea1-705681abff85"], ["created_at", "2015-03-01 05:05:08.456306"], ["updated_at", "2015-03-01 05:05:08.456306"], ["token", "91wD4sRFZ40vXDAazCF_1w04iY8cd1eD44hoXDZCe-U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.460941"], ["updated_at", "2015-03-01 05:05:08.460941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '880a287e-bfd0-11e4-aea1-705681abff85' AND "clubhouse_memberships"."organization_id" = '880d08a0-bfd0-11e4-b4bd-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "880a287e-bfd0-11e4-aea1-705681abff85"], ["organization_id", "880d08a0-bfd0-11e4-b4bd-705681abff85"], ["created_at", "2015-03-01 05:05:08.470623"], ["updated_at", "2015-03-01 05:05:08.470623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-3" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-3", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:08.498388' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "91wD4sRFZ40vXDAazCF_1w04iY8cd1eD44hoXDZCe-U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:08.500050"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:08.501108"], ["id", "880c789a-bfd0-11e4-bc6d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "880a287e-bfd0-11e4-aea1-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "880a287e-bfd0-11e4-aea1-705681abff85"], ["name", "org-3"]] Completed 200 OK in 35ms (Views: 3.3ms | ActiveRecord: 7.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$z60V6YXngQDJ8Jb8yaMj6em8LoeDIlX26JDFUCh2sdrANu/af7Hbi"], ["created_at", "2015-03-01 05:05:08.541652"], ["updated_at", "2015-03-01 05:05:08.541652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.543286"], ["user_id", "88195c4a-bfd0-11e4-865e-705681abff85"], ["created_at", "2015-03-01 05:05:08.544231"], ["updated_at", "2015-03-01 05:05:08.544231"], ["token", "J7-imRwv9-PSZw-nW03c9gQkJNdIxhr9oWnnkD0h-IM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.547475"], ["updated_at", "2015-03-01 05:05:08.547475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88195c4a-bfd0-11e4-865e-705681abff85' AND "clubhouse_memberships"."organization_id" = '881a3d5e-bfd0-11e4-b23f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88195c4a-bfd0-11e4-865e-705681abff85"], ["organization_id", "881a3d5e-bfd0-11e4-b23f-705681abff85"], ["created_at", "2015-03-01 05:05:08.550712"], ["updated_at", "2015-03-01 05:05:08.550712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$DQ/.SMpdCyJOvf0K3rhznu6uTHuG7IZBA/3dLa1bG4OLXHL.hGM6K"], ["created_at", "2015-03-01 05:05:08.563996"], ["updated_at", "2015-03-01 05:05:08.563996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.566022"], ["user_id", "881cc862-bfd0-11e4-a8fe-705681abff85"], ["created_at", "2015-03-01 05:05:08.566820"], ["updated_at", "2015-03-01 05:05:08.566820"], ["token", "PQPHkmw8FT-HM05_ruMnkkzI1CNw6fksM4pVIvL3Npk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.570337"], ["updated_at", "2015-03-01 05:05:08.570337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '881cc862-bfd0-11e4-a8fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '881dc4f6-bfd0-11e4-9dd0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "881cc862-bfd0-11e4-a8fe-705681abff85"], ["organization_id", "881dc4f6-bfd0-11e4-9dd0-705681abff85"], ["created_at", "2015-03-01 05:05:08.574902"], ["updated_at", "2015-03-01 05:05:08.574902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-5" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:08.580487' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PQPHkmw8FT-HM05_ruMnkkzI1CNw6fksM4pVIvL3Npk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:08.582076"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:08.583333"], ["id", "881d426a-bfd0-11e4-b7e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "881cc862-bfd0-11e4-a8fe-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "881cc862-bfd0-11e4-a8fe-705681abff85"], ["name", "org-5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "881dc4f6-bfd0-11e4-9dd0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$7clRvyo.r1YmyFRdNGh4Z.3cp2h4r4Zt2JLbxPZL1vB.oORQJ8H2m"], ["created_at", "2015-03-01 05:05:08.598757"], ["updated_at", "2015-03-01 05:05:08.598757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.601681"], ["user_id", "88222f46-bfd0-11e4-8440-705681abff85"], ["created_at", "2015-03-01 05:05:08.602839"], ["updated_at", "2015-03-01 05:05:08.602839"], ["token", "XqGJBh-umtzwgJGLLD2Ax4Dh4K4R-Z6llghVGJBLSvI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.606698"], ["updated_at", "2015-03-01 05:05:08.606698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88222f46-bfd0-11e4-8440-705681abff85' AND "clubhouse_memberships"."organization_id" = '882384b8-bfd0-11e4-be65-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88222f46-bfd0-11e4-8440-705681abff85"], ["organization_id", "882384b8-bfd0-11e4-be65-705681abff85"], ["created_at", "2015-03-01 05:05:08.612697"], ["updated_at", "2015-03-01 05:05:08.612697"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$/iklxaLNRIcYBjexwEFb4OLSC/Q.HzLjuxuJGSW.KZwEKQt8mIlzq"], ["created_at", "2015-03-01 05:05:08.625410"], ["updated_at", "2015-03-01 05:05:08.625410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.627279"], ["user_id", "88262bdc-bfd0-11e4-81e5-705681abff85"], ["created_at", "2015-03-01 05:05:08.628591"], ["updated_at", "2015-03-01 05:05:08.628591"], ["token", "sz3UyRpXYNTqWdSBLTnXaqs_de4niYNdAMC4NacygwU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.632817"], ["updated_at", "2015-03-01 05:05:08.632817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88262bdc-bfd0-11e4-81e5-705681abff85' AND "clubhouse_memberships"."organization_id" = '88274206-bfd0-11e4-be1d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88262bdc-bfd0-11e4-81e5-705681abff85"], ["organization_id", "88274206-bfd0-11e4-be1d-705681abff85"], ["created_at", "2015-03-01 05:05:08.636008"], ["updated_at", "2015-03-01 05:05:08.636008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$XJXS8qHigE8ah4aRv3078O1M8/FupD/Q6Ez5vs0cXE5YBcPdZwkVS"], ["created_at", "2015-03-01 05:05:08.641269"], ["updated_at", "2015-03-01 05:05:08.641269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.645152"], ["updated_at", "2015-03-01 05:05:08.645152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '882895d4-bfd0-11e4-aad5-705681abff85' AND "clubhouse_memberships"."organization_id" = '8829260c-bfd0-11e4-9291-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "882895d4-bfd0-11e4-aad5-705681abff85"], ["organization_id", "8829260c-bfd0-11e4-9291-705681abff85"], ["created_at", "2015-03-01 05:05:08.649489"], ["updated_at", "2015-03-01 05:05:08.649489"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:08.654477' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sz3UyRpXYNTqWdSBLTnXaqs_de4niYNdAMC4NacygwU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:08.656095"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:08.657122"], ["id", "8826bd4a-bfd0-11e4-97ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88262bdc-bfd0-11e4-81e5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "88262bdc-bfd0-11e4-81e5-705681abff85"]] Completed 200 OK in 9ms (Views: 2.5ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$LCTyMprREyfIuekw9Pyu.eemstm.wF7vpYDQ6YBLvW1xAI0A3Y3Pa"], ["created_at", "2015-03-01 05:05:08.670741"], ["updated_at", "2015-03-01 05:05:08.670741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.672520"], ["user_id", "882d10c8-bfd0-11e4-a1aa-705681abff85"], ["created_at", "2015-03-01 05:05:08.673347"], ["updated_at", "2015-03-01 05:05:08.673347"], ["token", "VfXvOflCW47bmQhA6Mec7-HD9-q0-_BNVZci9qI7uZ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.677703"], ["updated_at", "2015-03-01 05:05:08.677703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '882d10c8-bfd0-11e4-a1aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '882e1f40-bfd0-11e4-8f59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "882d10c8-bfd0-11e4-a1aa-705681abff85"], ["organization_id", "882e1f40-bfd0-11e4-8f59-705681abff85"], ["created_at", "2015-03-01 05:05:08.681557"], ["updated_at", "2015-03-01 05:05:08.681557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$CqcXyAylVK/8swhzCraFmeTwKQbk.f.cgeFfTLBUpOSqeO/9RE/Lm"], ["created_at", "2015-03-01 05:05:08.685972"], ["updated_at", "2015-03-01 05:05:08.685972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.691168"], ["updated_at", "2015-03-01 05:05:08.691168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '882f5d4c-bfd0-11e4-a1ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '88302dc6-bfd0-11e4-894f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "882f5d4c-bfd0-11e4-a1ff-705681abff85"], ["organization_id", "88302dc6-bfd0-11e4-894f-705681abff85"], ["created_at", "2015-03-01 05:05:08.695767"], ["updated_at", "2015-03-01 05:05:08.695767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$8IsZgYR6p1HZkz5MuitixOqZJ55lF9EkRMVDW2LTYOJ0.FdDdDzLu"], ["created_at", "2015-03-01 05:05:08.708559"], ["updated_at", "2015-03-01 05:05:08.708559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.710399"], ["user_id", "8832d6e8-bfd0-11e4-ad48-705681abff85"], ["created_at", "2015-03-01 05:05:08.711228"], ["updated_at", "2015-03-01 05:05:08.711228"], ["token", "VoNS7SqKdOw44N6NMqvaRbcryQZDjCc7dhxrqiTySbA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.716295"], ["updated_at", "2015-03-01 05:05:08.716295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8832d6e8-bfd0-11e4-ad48-705681abff85' AND "clubhouse_memberships"."organization_id" = '883406b2-bfd0-11e4-a231-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8832d6e8-bfd0-11e4-ad48-705681abff85"], ["organization_id", "883406b2-bfd0-11e4-a231-705681abff85"], ["created_at", "2015-03-01 05:05:08.720413"], ["updated_at", "2015-03-01 05:05:08.720413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$sa6Ol/0RvIYStuQDTju4C.1Q8tXTjZ40DhwnxVMT1M3MIdxt8UoH."], ["created_at", "2015-03-01 05:05:08.732670"], ["updated_at", "2015-03-01 05:05:08.732670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.734246"], ["user_id", "88368054-bfd0-11e4-8943-705681abff85"], ["created_at", "2015-03-01 05:05:08.734985"], ["updated_at", "2015-03-01 05:05:08.734985"], ["token", "29ec_-s9hnfAMiv2FQBD3LF1g4WC4gORLgYlvD4C0ck"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.738263"], ["updated_at", "2015-03-01 05:05:08.738263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88368054-bfd0-11e4-8943-705681abff85' AND "clubhouse_memberships"."organization_id" = '8837588a-bfd0-11e4-bb1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88368054-bfd0-11e4-8943-705681abff85"], ["organization_id", "8837588a-bfd0-11e4-bb1e-705681abff85"], ["created_at", "2015-03-01 05:05:08.741727"], ["updated_at", "2015-03-01 05:05:08.741727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-12" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-12", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:08.747416' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "29ec_-s9hnfAMiv2FQBD3LF1g4WC4gORLgYlvD4C0ck"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:08.749049"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:08.750148"], ["id", "8836e29c-bfd0-11e4-8d54-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88368054-bfd0-11e4-8943-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "88368054-bfd0-11e4-8943-705681abff85"], ["name", "org-12"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8837588a-bfd0-11e4-bb1e-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$86Z1jCB285SEeCsxpoJFN.4yoYSr2vu1icnGEMulDhjEkjWOFrUzm"], ["created_at", "2015-03-01 05:05:08.767305"], ["updated_at", "2015-03-01 05:05:08.767305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.769093"], ["user_id", "883bcf6e-bfd0-11e4-b57e-705681abff85"], ["created_at", "2015-03-01 05:05:08.769989"], ["updated_at", "2015-03-01 05:05:08.769989"], ["token", "KoqMAvqlwuuUOjygLIlhX_0lNNBTtjsink5N8JtTejU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.773416"], ["updated_at", "2015-03-01 05:05:08.773416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '883bcf6e-bfd0-11e4-b57e-705681abff85' AND "clubhouse_memberships"."organization_id" = '883cb726-bfd0-11e4-b68b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "883bcf6e-bfd0-11e4-b57e-705681abff85"], ["organization_id", "883cb726-bfd0-11e4-b68b-705681abff85"], ["created_at", "2015-03-01 05:05:08.776904"], ["updated_at", "2015-03-01 05:05:08.776904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-13" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-13", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:08.781881' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KoqMAvqlwuuUOjygLIlhX_0lNNBTtjsink5N8JtTejU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:08.783236"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:08.784360"], ["id", "883c38d2-bfd0-11e4-805e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "883bcf6e-bfd0-11e4-b57e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "883bcf6e-bfd0-11e4-b57e-705681abff85"], ["name", "org-13"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '883cb726-bfd0-11e4-b68b-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 05:05:08.790328"], ["id", "883cb726-bfd0-11e4-b68b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 1.1ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$7FvTCbLLD.RrhSgicZJT9uU46JH.q.IOmujx9EP.81pNC7QGbQG6S"], ["created_at", "2015-03-01 05:05:08.803620"], ["updated_at", "2015-03-01 05:05:08.803620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.805489"], ["user_id", "884159d4-bfd0-11e4-8e0c-705681abff85"], ["created_at", "2015-03-01 05:05:08.806501"], ["updated_at", "2015-03-01 05:05:08.806501"], ["token", "lvXKjnvu9mSJanfmuXviiNJQfVuipUCxSU4I0ZbzYYA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.810756"], ["updated_at", "2015-03-01 05:05:08.810756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '884159d4-bfd0-11e4-8e0c-705681abff85' AND "clubhouse_memberships"."organization_id" = '88426d92-bfd0-11e4-81cf-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "884159d4-bfd0-11e4-8e0c-705681abff85"], ["organization_id", "88426d92-bfd0-11e4-81cf-705681abff85"], ["created_at", "2015-03-01 05:05:08.815130"], ["updated_at", "2015-03-01 05:05:08.815130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$0YX4FyA20fuueElHpbCrkuwSvtowTFOX1KrF8Ti3HLoJcDJjZI79q"], ["created_at", "2015-03-01 05:05:08.833605"], ["updated_at", "2015-03-01 05:05:08.833605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.835414"], ["user_id", "8845ef9e-bfd0-11e4-8aeb-705681abff85"], ["created_at", "2015-03-01 05:05:08.836270"], ["updated_at", "2015-03-01 05:05:08.836270"], ["token", "fKO3lLelBrAEUnLM3ADhpTpyh_Ei97AtJFmwbXpNtR0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.846430"], ["updated_at", "2015-03-01 05:05:08.846430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8845ef9e-bfd0-11e4-8aeb-705681abff85' AND "clubhouse_memberships"."organization_id" = '8847daf2-bfd0-11e4-b97b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8845ef9e-bfd0-11e4-8aeb-705681abff85"], ["organization_id", "8847daf2-bfd0-11e4-b97b-705681abff85"], ["created_at", "2015-03-01 05:05:08.849829"], ["updated_at", "2015-03-01 05:05:08.849829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-15" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-15"} Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-15"]] Completed 200 OK in 1ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Ba./sMURz2Z45/d8AmhkD.Ndj6V/rt3drXls05UC9yNJ/lscU4E0m"], ["created_at", "2015-03-01 05:05:08.860740"], ["updated_at", "2015-03-01 05:05:08.860740"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.862716"], ["user_id", "884a0a98-bfd0-11e4-a75a-705681abff85"], ["created_at", "2015-03-01 05:05:08.864109"], ["updated_at", "2015-03-01 05:05:08.864109"], ["token", "24ToLxwJEq5qTnxSlAThm--DgKPn0UmFDlEvKw5fFc8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.868412"], ["updated_at", "2015-03-01 05:05:08.868412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '884a0a98-bfd0-11e4-a75a-705681abff85' AND "clubhouse_memberships"."organization_id" = '884b3396-bfd0-11e4-9f6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "884a0a98-bfd0-11e4-a75a-705681abff85"], ["organization_id", "884b3396-bfd0-11e4-9f6f-705681abff85"], ["created_at", "2015-03-01 05:05:08.871410"], ["updated_at", "2015-03-01 05:05:08.871410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/884b3396-bfd0-11e4-9f6f-705681abff85" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"884b3396-bfd0-11e4-9f6f-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:08.876045' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "24ToLxwJEq5qTnxSlAThm--DgKPn0UmFDlEvKw5fFc8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:08.877563"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:08.878581"], ["id", "884a9e04-bfd0-11e4-95df-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "884a0a98-bfd0-11e4-a75a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "884a0a98-bfd0-11e4-a75a-705681abff85"], ["id", "884b3396-bfd0-11e4-9f6f-705681abff85"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$kveWZovhlGE38vhTobL4KOlOA5TVy9Rrw6urAnRtNw4hKG0nqo.3y"], ["created_at", "2015-03-01 05:05:08.892557"], ["updated_at", "2015-03-01 05:05:08.892557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.894730"], ["user_id", "884ef184-bfd0-11e4-9119-705681abff85"], ["created_at", "2015-03-01 05:05:08.895619"], ["updated_at", "2015-03-01 05:05:08.895619"], ["token", "DJDpv1gtKDOq62UNwTtDr-f7maPzGv-9GQn456bu78A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.899413"], ["updated_at", "2015-03-01 05:05:08.899413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '884ef184-bfd0-11e4-9119-705681abff85' AND "clubhouse_memberships"."organization_id" = '884ff1b0-bfd0-11e4-a19f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "884ef184-bfd0-11e4-9119-705681abff85"], ["organization_id", "884ff1b0-bfd0-11e4-a19f-705681abff85"], ["created_at", "2015-03-01 05:05:08.902866"], ["updated_at", "2015-03-01 05:05:08.902866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$8mqC9HBDuI45pOCwJNe7B.1y8z66AmzDaDsVQEVeehMAcY5G4GH.i"], ["created_at", "2015-03-01 05:05:08.917167"], ["updated_at", "2015-03-01 05:05:08.917167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.919293"], ["user_id", "8852b1ac-bfd0-11e4-be13-705681abff85"], ["created_at", "2015-03-01 05:05:08.920396"], ["updated_at", "2015-03-01 05:05:08.920396"], ["token", "KIF20nlZOlytuEfvTrcbLxpeQSEdrthFt9KHUQEaKX4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.924327"], ["updated_at", "2015-03-01 05:05:08.924327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8852b1ac-bfd0-11e4-be13-705681abff85' AND "clubhouse_memberships"."organization_id" = '8853c740-bfd0-11e4-8e5f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8852b1ac-bfd0-11e4-be13-705681abff85"], ["organization_id", "8853c740-bfd0-11e4-8e5f-705681abff85"], ["created_at", "2015-03-01 05:05:08.929220"], ["updated_at", "2015-03-01 05:05:08.929220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$odmOvN.RLJDlvS4iAKCIvOkLkA5wCl/U8vy.d/lNEMQRSIsWvD95e"], ["created_at", "2015-03-01 05:05:08.954426"], ["updated_at", "2015-03-01 05:05:08.954426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:08.956291"], ["user_id", "88585c74-bfd0-11e4-bce0-705681abff85"], ["created_at", "2015-03-01 05:05:08.958289"], ["updated_at", "2015-03-01 05:05:08.958289"], ["token", "Zz90Int407xmJLBF6qxxQ6S7NU_pkhfcuU6BlfxQjzs"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:08.963601"], ["updated_at", "2015-03-01 05:05:08.963601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88585c74-bfd0-11e4-bce0-705681abff85' AND "clubhouse_memberships"."organization_id" = '8859defa-bfd0-11e4-bb46-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88585c74-bfd0-11e4-bce0-705681abff85"], ["organization_id", "8859defa-bfd0-11e4-bb46-705681abff85"], ["created_at", "2015-03-01 05:05:08.970857"], ["updated_at", "2015-03-01 05:05:08.970857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8859defa-bfd0-11e4-bb46-705681abff85" for 127.0.0.1 at 2015-02-28 21:05:08 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"8859defa-bfd0-11e4-bb46-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:08.977500' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Zz90Int407xmJLBF6qxxQ6S7NU_pkhfcuU6BlfxQjzs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:08.979069"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:08.983139"], ["id", "8858fed6-bfd0-11e4-8db4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88585c74-bfd0-11e4-bce0-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "88585c74-bfd0-11e4-bce0-705681abff85"], ["id", "8859defa-bfd0-11e4-bb46-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8859defa-bfd0-11e4-bb46-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$QIq4rNOnj8WoIwYieSuFO.y0uWTUOgUr7s/1GJHEQWrsbPZnlVT7a"], ["created_at", "2015-03-01 05:05:09.018986"], ["updated_at", "2015-03-01 05:05:09.018986"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.026609"], ["user_id", "8862aabc-bfd0-11e4-a152-705681abff85"], ["created_at", "2015-03-01 05:05:09.029574"], ["updated_at", "2015-03-01 05:05:09.029574"], ["token", "8hOzpT9E9SzOLC2r1_xd737G6NC4ATtzAzMuzv-95yk"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.044768"], ["updated_at", "2015-03-01 05:05:09.044768"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8862aabc-bfd0-11e4-a152-705681abff85' AND "clubhouse_memberships"."organization_id" = '8866be54-bfd0-11e4-9a3a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8862aabc-bfd0-11e4-a152-705681abff85"], ["organization_id", "8866be54-bfd0-11e4-9a3a-705681abff85"], ["created_at", "2015-03-01 05:05:09.057972"], ["updated_at", "2015-03-01 05:05:09.057972"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8866be54-bfd0-11e4-9a3a-705681abff85" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"8866be54-bfd0-11e4-9a3a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (44.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:09.072560' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8hOzpT9E9SzOLC2r1_xd737G6NC4ATtzAzMuzv-95yk"]]  (1.6ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:09.126517"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:09.130397"], ["id", "886424d2-bfd0-11e4-b4e4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8862aabc-bfd0-11e4-a152-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8862aabc-bfd0-11e4-a152-705681abff85"], ["id", "8866be54-bfd0-11e4-9a3a-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8866be54-bfd0-11e4-9a3a-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 05:05:09.141630"], ["id", "8866be54-bfd0-11e4-9a3a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 72ms (Views: 0.6ms | ActiveRecord: 49.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$s26.XhPPTH8u6oNRFF/.OOLy9JUgGsWK7P1xj2p/wsdjLxC7JvZom"], ["created_at", "2015-03-01 05:05:09.156908"], ["updated_at", "2015-03-01 05:05:09.156908"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.163158"], ["user_id", "8877c906-bfd0-11e4-9064-705681abff85"], ["created_at", "2015-03-01 05:05:09.164428"], ["updated_at", "2015-03-01 05:05:09.164428"], ["token", "bNv4QQXfgF66DO163Sc5amR7VcE9Ke35Nid4UGgdl6Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.171830"], ["updated_at", "2015-03-01 05:05:09.171830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (158.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8877c906-bfd0-11e4-9064-705681abff85' AND "clubhouse_memberships"."organization_id" = '887b23da-bfd0-11e4-bcdd-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8877c906-bfd0-11e4-9064-705681abff85"], ["organization_id", "887b23da-bfd0-11e4-bcdd-705681abff85"], ["created_at", "2015-03-01 05:05:09.350131"], ["updated_at", "2015-03-01 05:05:09.350131"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/887b23da-bfd0-11e4-bcdd-705681abff85" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"887b23da-bfd0-11e4-bcdd-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:09.364499' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bNv4QQXfgF66DO163Sc5amR7VcE9Ke35Nid4UGgdl6Q"]]  (1.8ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:09.371858"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:09.377336"], ["id", "88789476-bfd0-11e4-beb0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8877c906-bfd0-11e4-9064-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8877c906-bfd0-11e4-9064-705681abff85"], ["id", "887b23da-bfd0-11e4-bcdd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "887b23da-bfd0-11e4-bcdd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 23ms (ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Inuinc9JNH56vGDjHNlrLeyOvrQJ2eeQxePpE9t1vRhrpvnXfhYr."], ["created_at", "2015-03-01 05:05:09.396996"], ["updated_at", "2015-03-01 05:05:09.396996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.399157"], ["user_id", "889bee9e-bfd0-11e4-9c66-705681abff85"], ["created_at", "2015-03-01 05:05:09.399964"], ["updated_at", "2015-03-01 05:05:09.399964"], ["token", "LJFft91SODVOhL4UQtBoBJbRtakBOW8Nqa9ljVyrOR4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.404271"], ["updated_at", "2015-03-01 05:05:09.404271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '889bee9e-bfd0-11e4-9c66-705681abff85' AND "clubhouse_memberships"."organization_id" = '889cfed8-bfd0-11e4-abae-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "889bee9e-bfd0-11e4-9c66-705681abff85"], ["organization_id", "889cfed8-bfd0-11e4-abae-705681abff85"], ["created_at", "2015-03-01 05:05:09.412203"], ["updated_at", "2015-03-01 05:05:09.412203"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$ghGIEV5i3uVtd5sGugv.au.EUII6.OTo2ncKtDpweFW43u0kc50KG"], ["created_at", "2015-03-01 05:05:09.428456"], ["updated_at", "2015-03-01 05:05:09.428456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.430392"], ["user_id", "88a0b35c-bfd0-11e4-9f34-705681abff85"], ["created_at", "2015-03-01 05:05:09.431247"], ["updated_at", "2015-03-01 05:05:09.431247"], ["token", "WzNoUcuG9Q_6K1DbvhHpaIPbwLU0xIn3q87BC6VUsBM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.436681"], ["updated_at", "2015-03-01 05:05:09.436681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88a0b35c-bfd0-11e4-9f34-705681abff85' AND "clubhouse_memberships"."organization_id" = '88a1f10e-bfd0-11e4-9487-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88a0b35c-bfd0-11e4-9f34-705681abff85"], ["organization_id", "88a1f10e-bfd0-11e4-9487-705681abff85"], ["created_at", "2015-03-01 05:05:09.440352"], ["updated_at", "2015-03-01 05:05:09.440352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 15ms (Views: 14.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$Z1h1ESTDqhGjFj8.K0Oo3.ipRbabnunlEn9hTplFhG4Fmo6CdJFq."], ["created_at", "2015-03-01 05:05:09.473648"], ["updated_at", "2015-03-01 05:05:09.473648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.475395"], ["user_id", "88a7950a-bfd0-11e4-a703-705681abff85"], ["created_at", "2015-03-01 05:05:09.476182"], ["updated_at", "2015-03-01 05:05:09.476182"], ["token", "AX8xqxT7ezL1xGv2m36m_EVjmXjdEXt6Vs3zyc7bjDw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.480095"], ["updated_at", "2015-03-01 05:05:09.480095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88a7950a-bfd0-11e4-a703-705681abff85' AND "clubhouse_memberships"."organization_id" = '88a89f4a-bfd0-11e4-9981-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88a7950a-bfd0-11e4-a703-705681abff85"], ["organization_id", "88a89f4a-bfd0-11e4-9981-705681abff85"], ["created_at", "2015-03-01 05:05:09.484921"], ["updated_at", "2015-03-01 05:05:09.484921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:09.492299' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AX8xqxT7ezL1xGv2m36m_EVjmXjdEXt6Vs3zyc7bjDw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:09.494300"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:09.495406"], ["id", "88a7fedc-bfd0-11e4-af0e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88a7950a-bfd0-11e4-a703-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$GmvBtvp6FIeVrRgRwvO2ouo3b/vymKeb437TQk5rlfQ4W9bOURPLu"], ["created_at", "2015-03-01 05:05:09.508955"], ["updated_at", "2015-03-01 05:05:09.508955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.511268"], ["user_id", "88ad0af8-bfd0-11e4-99a0-705681abff85"], ["created_at", "2015-03-01 05:05:09.512157"], ["updated_at", "2015-03-01 05:05:09.512157"], ["token", "VhgKm8F_3Tsw1q9gYi4gdQChzpvbl9nlU563kK2OBw0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.515865"], ["updated_at", "2015-03-01 05:05:09.515865"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88ad0af8-bfd0-11e4-99a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '88ae0c82-bfd0-11e4-bb3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88ad0af8-bfd0-11e4-99a0-705681abff85"], ["organization_id", "88ae0c82-bfd0-11e4-bb3e-705681abff85"], ["created_at", "2015-03-01 05:05:09.520442"], ["updated_at", "2015-03-01 05:05:09.520442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:09.530101' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VhgKm8F_3Tsw1q9gYi4gdQChzpvbl9nlU563kK2OBw0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:09.532060"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:09.534021"], ["id", "88ad7b5a-bfd0-11e4-9181-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88ad0af8-bfd0-11e4-99a0-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.538628"], ["updated_at", "2015-03-01 05:05:09.538628"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "88b17c3c-bfd0-11e4-9a9e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88ad0af8-bfd0-11e4-99a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '88b17c3c-bfd0-11e4-9a9e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88ad0af8-bfd0-11e4-99a0-705681abff85"], ["admin", "t"], ["organization_id", "88b17c3c-bfd0-11e4-9a9e-705681abff85"], ["created_at", "2015-03-01 05:05:09.544849"], ["updated_at", "2015-03-01 05:05:09.544849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 0.7ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.572689"], ["updated_at", "2015-03-01 05:05:09.572689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '88b6bb20-bfd0-11e4-873a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "88b6bb20-bfd0-11e4-873a-705681abff85"], ["created_at", "2015-03-01 05:05:09.577785"], ["updated_at", "2015-03-01 05:05:09.577785"], ["token", "CqunX9iHMn1tFPc40343aP8p5C02AqNHF8n8bARJDiU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "88b6bb20-bfd0-11e4-873a-705681abff85"]] Clubhouse::Invitation Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '88b6bb20-bfd0-11e4-873a-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "88b6bb20-bfd0-11e4-873a-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '88b6bb20-bfd0-11e4-873a-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.592529"], ["updated_at", "2015-03-01 05:05:09.592529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '88b9b4ba-bfd0-11e4-b2ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "88b9b4ba-bfd0-11e4-b2ff-705681abff85"], ["created_at", "2015-03-01 05:05:09.595493"], ["updated_at", "2015-03-01 05:05:09.595493"], ["token", "-gJF2snVZuNICKuVQhpjjmeslD4U-j0p3xKzbstdYUA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$FpnZzhfzBBGJ/Pyxt.Sj6eUaQvZ0CTQAa4U4OuroXnjqO/Q1G.qIq"], ["created_at", "2015-03-01 05:05:09.601909"], ["updated_at", "2015-03-01 05:05:09.601909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.605730"], ["updated_at", "2015-03-01 05:05:09.605730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88bb21f6-bfd0-11e4-8350-705681abff85' AND "clubhouse_memberships"."organization_id" = '88bbbfe4-bfd0-11e4-9369-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88bb21f6-bfd0-11e4-8350-705681abff85"], ["organization_id", "88bbbfe4-bfd0-11e4-9369-705681abff85"], ["created_at", "2015-03-01 05:05:09.608761"], ["updated_at", "2015-03-01 05:05:09.608761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88bb21f6-bfd0-11e4-8350-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "88bbbfe4-bfd0-11e4-9369-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88bb21f6-bfd0-11e4-8350-705681abff85' AND "clubhouse_memberships"."organization_id" = '88bbbfe4-bfd0-11e4-9369-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "88bbbfe4-bfd0-11e4-9369-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88bb21f6-bfd0-11e4-8350-705681abff85' AND "clubhouse_memberships"."organization_id" = '88bbbfe4-bfd0-11e4-9369-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$1tzgT9x.0YD9nX/hafelO.RGcrFQ4cCwOZkUpr4bBF5Ub2Qx9I6cC"], ["created_at", "2015-03-01 05:05:09.637773"], ["updated_at", "2015-03-01 05:05:09.637773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$b37g8OjsH4gNYpZzugR2t.yMvXEsihA/w3OTWbifdpvCnMijWWz6a"], ["created_at", "2015-03-01 05:05:09.641900"], ["updated_at", "2015-03-01 05:05:09.641900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.643413"], ["user_id", "88c09ae6-bfd0-11e4-8b76-705681abff85"], ["created_at", "2015-03-01 05:05:09.644215"], ["updated_at", "2015-03-01 05:05:09.644215"], ["token", "r22G5yO52kRgAi1uH8melZWVn_mdgvWe-BwTBnoqn6o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.647484"], ["updated_at", "2015-03-01 05:05:09.647484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88c09ae6-bfd0-11e4-8b76-705681abff85' AND "clubhouse_memberships"."organization_id" = '88c21cae-bfd0-11e4-a584-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88c09ae6-bfd0-11e4-8b76-705681abff85"], ["organization_id", "88c21cae-bfd0-11e4-a584-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:09.650948"], ["updated_at", "2015-03-01 05:05:09.650948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88c139ec-bfd0-11e4-b2ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '88c21cae-bfd0-11e4-a584-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88c139ec-bfd0-11e4-b2ab-705681abff85"], ["organization_id", "88c21cae-bfd0-11e4-a584-705681abff85"], ["created_at", "2015-03-01 05:05:09.654409"], ["updated_at", "2015-03-01 05:05:09.654409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/88c3243c-bfd0-11e4-9968-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"88c3243c-bfd0-11e4-9968-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:09.685057' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r22G5yO52kRgAi1uH8melZWVn_mdgvWe-BwTBnoqn6o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:09.687027"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:09.688040"], ["id", "88c19f54-bfd0-11e4-81f0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88c09ae6-bfd0-11e4-8b76-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "88c09ae6-bfd0-11e4-8b76-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '88c09ae6-bfd0-11e4-8b76-705681abff85' LIMIT 1 [["organization_id", "88c21cae-bfd0-11e4-a584-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "88c21cae-bfd0-11e4-a584-705681abff85"], ["id", "88c3243c-bfd0-11e4-9968-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "88c21cae-bfd0-11e4-a584-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88c139ec-bfd0-11e4-b2ab-705681abff85"]] Completed 200 OK in 27ms (Views: 8.3ms | ActiveRecord: 2.8ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$A5TrJF7TeyLHJVZh5LJwKOrLLxYqXpjf9GNkeitLA44IFAjslH5/O"], ["created_at", "2015-03-01 05:05:09.722234"], ["updated_at", "2015-03-01 05:05:09.722234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$2MQiz.siVWOTEafppubuc.i/EuJLYBuDvO9ySuOOwK6BF/ubH4CbK"], ["created_at", "2015-03-01 05:05:09.728046"], ["updated_at", "2015-03-01 05:05:09.728046"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.730487"], ["user_id", "88cd87f6-bfd0-11e4-9acf-705681abff85"], ["created_at", "2015-03-01 05:05:09.731433"], ["updated_at", "2015-03-01 05:05:09.731433"], ["token", "WP4GfWT5KXGdLvaOVk3ZVAXkZlERod0IMLi3YTfAw3M"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.739774"], ["updated_at", "2015-03-01 05:05:09.739774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88cd87f6-bfd0-11e4-9acf-705681abff85' AND "clubhouse_memberships"."organization_id" = '88d083e8-bfd0-11e4-9ef4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88cd87f6-bfd0-11e4-9acf-705681abff85"], ["organization_id", "88d083e8-bfd0-11e4-9ef4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:09.746099"], ["updated_at", "2015-03-01 05:05:09.746099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88ce6c7a-bfd0-11e4-88cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '88d083e8-bfd0-11e4-9ef4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88ce6c7a-bfd0-11e4-88cd-705681abff85"], ["organization_id", "88d083e8-bfd0-11e4-9ef4-705681abff85"], ["created_at", "2015-03-01 05:05:09.749414"], ["updated_at", "2015-03-01 05:05:09.749414"]]  (1.7ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$M/i54RYjhVqIQn46Wj.xQuP9/pc03AQTjVvm/.jxw8CXMKbUiz4.u"], ["created_at", "2015-03-01 05:05:09.767781"], ["updated_at", "2015-03-01 05:05:09.767781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$SkBneqtsdaYVFX8Pg8X55.FWZZab5SZWjzhJxqnNHXNR2a8wqfWDy"], ["created_at", "2015-03-01 05:05:09.773324"], ["updated_at", "2015-03-01 05:05:09.773324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.774976"], ["user_id", "88d47a2a-bfd0-11e4-89e2-705681abff85"], ["created_at", "2015-03-01 05:05:09.775799"], ["updated_at", "2015-03-01 05:05:09.775799"], ["token", "pTwZ1REU7OLdx7jfiCSW1KlmcDEUnxJPLC1Q0_bo9oU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.779426"], ["updated_at", "2015-03-01 05:05:09.779426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88d47a2a-bfd0-11e4-89e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '88d63b6c-bfd0-11e4-9d25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88d47a2a-bfd0-11e4-89e2-705681abff85"], ["organization_id", "88d63b6c-bfd0-11e4-9d25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:09.783704"], ["updated_at", "2015-03-01 05:05:09.783704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88d54b44-bfd0-11e4-8d7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '88d63b6c-bfd0-11e4-9d25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88d54b44-bfd0-11e4-8d7c-705681abff85"], ["organization_id", "88d63b6c-bfd0-11e4-9d25-705681abff85"], ["created_at", "2015-03-01 05:05:09.786829"], ["updated_at", "2015-03-01 05:05:09.786829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:09.792343' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pTwZ1REU7OLdx7jfiCSW1KlmcDEUnxJPLC1Q0_bo9oU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:09.794434"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:09.795495"], ["id", "88d5b1c4-bfd0-11e4-9c7f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88d47a2a-bfd0-11e4-89e2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "88d47a2a-bfd0-11e4-89e2-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "88d47a2a-bfd0-11e4-89e2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "88d47a2a-bfd0-11e4-89e2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "88d63b6c-bfd0-11e4-9d25-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88d47a2a-bfd0-11e4-89e2-705681abff85"]] Completed 200 OK in 14ms (Views: 5.2ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$Pl3Ejuww44Xycx3WwwV7re3maGUngqAPKSMkuFL2bg40pTKwviAK6"], ["created_at", "2015-03-01 05:05:09.811963"], ["updated_at", "2015-03-01 05:05:09.811963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$NEutve6oUhv.3El1zKkn3OBN6bCweKMZ7eqcBVkfro5IUBwaaopq."], ["created_at", "2015-03-01 05:05:09.816752"], ["updated_at", "2015-03-01 05:05:09.816752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.818513"], ["user_id", "88db340a-bfd0-11e4-94e7-705681abff85"], ["created_at", "2015-03-01 05:05:09.819331"], ["updated_at", "2015-03-01 05:05:09.819331"], ["token", "6YNFZfxXmD0PwbGA4ucBDQdhPQ7BHXQVCNdJb9ti0Zo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (6.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.823545"], ["updated_at", "2015-03-01 05:05:09.823545"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88db340a-bfd0-11e4-94e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '88dcf5b0-bfd0-11e4-92f3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88db340a-bfd0-11e4-94e7-705681abff85"], ["organization_id", "88dcf5b0-bfd0-11e4-92f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:09.833140"], ["updated_at", "2015-03-01 05:05:09.833140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88dbef08-bfd0-11e4-a204-705681abff85' AND "clubhouse_memberships"."organization_id" = '88dcf5b0-bfd0-11e4-92f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88dbef08-bfd0-11e4-a204-705681abff85"], ["organization_id", "88dcf5b0-bfd0-11e4-92f3-705681abff85"], ["created_at", "2015-03-01 05:05:09.836220"], ["updated_at", "2015-03-01 05:05:09.836220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$o1YnnWuvvQyyNhU7lvpA0eQuZ2h29045t7WS902zX/V0hLqkwX7xq"], ["created_at", "2015-03-01 05:05:09.849975"], ["updated_at", "2015-03-01 05:05:09.849975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$ATmPboUmsb3AMaJ6l.GitOaP7Bzyozxv5/xTScAUsg2dKPvbVGXvq"], ["created_at", "2015-03-01 05:05:09.854164"], ["updated_at", "2015-03-01 05:05:09.854164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.856081"], ["user_id", "88e0fe08-bfd0-11e4-82ec-705681abff85"], ["created_at", "2015-03-01 05:05:09.856946"], ["updated_at", "2015-03-01 05:05:09.856946"], ["token", "tlrM60qRool2ErsT0rD6VowZr3QSeIv3pSk8M9DPcTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.860376"], ["updated_at", "2015-03-01 05:05:09.860376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88e0fe08-bfd0-11e4-82ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '88e292e0-bfd0-11e4-a68c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88e0fe08-bfd0-11e4-82ec-705681abff85"], ["organization_id", "88e292e0-bfd0-11e4-a68c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:09.864113"], ["updated_at", "2015-03-01 05:05:09.864113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88e19f5c-bfd0-11e4-a911-705681abff85' AND "clubhouse_memberships"."organization_id" = '88e292e0-bfd0-11e4-a68c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88e19f5c-bfd0-11e4-a911-705681abff85"], ["organization_id", "88e292e0-bfd0-11e4-a68c-705681abff85"], ["created_at", "2015-03-01 05:05:09.868062"], ["updated_at", "2015-03-01 05:05:09.868062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/88e330ec-bfd0-11e4-8227-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"88e330ec-bfd0-11e4-8227-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:09.873843' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tlrM60qRool2ErsT0rD6VowZr3QSeIv3pSk8M9DPcTM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:09.875682"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:09.876663"], ["id", "88e2161c-bfd0-11e4-b482-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88e0fe08-bfd0-11e4-82ec-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "88e0fe08-bfd0-11e4-82ec-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '88e0fe08-bfd0-11e4-82ec-705681abff85' LIMIT 1 [["organization_id", "88e292e0-bfd0-11e4-a68c-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "88e292e0-bfd0-11e4-a68c-705681abff85"], ["id", "88e330ec-bfd0-11e4-8227-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88e0fe08-bfd0-11e4-82ec-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$1g.zYom7DkQ09hqP0FHfn.xk4jQeatAWgVoRg9bcR.v6DCEGI2oJy"], ["created_at", "2015-03-01 05:05:09.891639"], ["updated_at", "2015-03-01 05:05:09.891639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$usgdUpXIjUjzT6nydpXot.IqyjtLm2YQj0i14LJhpe3vVdILsq.uu"], ["created_at", "2015-03-01 05:05:09.896187"], ["updated_at", "2015-03-01 05:05:09.896187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.897672"], ["user_id", "88e7582a-bfd0-11e4-a36e-705681abff85"], ["created_at", "2015-03-01 05:05:09.898430"], ["updated_at", "2015-03-01 05:05:09.898430"], ["token", "0rLd0AzmaW04VKF0ddVy5TTyaLBdgBgqdGdGLRJLSWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.901688"], ["updated_at", "2015-03-01 05:05:09.901688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88e7582a-bfd0-11e4-a36e-705681abff85' AND "clubhouse_memberships"."organization_id" = '88e8de5c-bfd0-11e4-99cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88e7582a-bfd0-11e4-a36e-705681abff85"], ["organization_id", "88e8de5c-bfd0-11e4-99cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:09.904802"], ["updated_at", "2015-03-01 05:05:09.904802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88e807ca-bfd0-11e4-83ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '88e8de5c-bfd0-11e4-99cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88e807ca-bfd0-11e4-83ab-705681abff85"], ["organization_id", "88e8de5c-bfd0-11e4-99cd-705681abff85"], ["created_at", "2015-03-01 05:05:09.907715"], ["updated_at", "2015-03-01 05:05:09.907715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/88e9c81c-bfd0-11e4-8fac-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"88e9c81c-bfd0-11e4-8fac-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:09.912628' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0rLd0AzmaW04VKF0ddVy5TTyaLBdgBgqdGdGLRJLSWs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:09.914068"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:09.914989"], ["id", "88e86760-bfd0-11e4-aecf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88e7582a-bfd0-11e4-a36e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "88e7582a-bfd0-11e4-a36e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '88e7582a-bfd0-11e4-a36e-705681abff85' LIMIT 1 [["organization_id", "88e8de5c-bfd0-11e4-99cd-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "88e8de5c-bfd0-11e4-99cd-705681abff85"], ["id", "88e9c81c-bfd0-11e4-8fac-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88e807ca-bfd0-11e4-83ab-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "88e9c81c-bfd0-11e4-8fac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$eCob0lp.XIxHfIXfgc6bXe1z5ybYDKF1tzIIjua1Xiq.CF5.WDSCu"], ["created_at", "2015-03-01 05:05:09.927978"], ["updated_at", "2015-03-01 05:05:09.927978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$8g6/ZmF1J0kF9Ishf7kZvuaaM2ZoVvt2AECdA0VVuD5f88IQIaPVC"], ["created_at", "2015-03-01 05:05:09.932592"], ["updated_at", "2015-03-01 05:05:09.932592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.934382"], ["user_id", "88ece556-bfd0-11e4-9af0-705681abff85"], ["created_at", "2015-03-01 05:05:09.935252"], ["updated_at", "2015-03-01 05:05:09.935252"], ["token", "J23hUKbxhxXJULs4Jk6DrzQ_gfPyHaq2pjRKLwvV_9U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.939804"], ["updated_at", "2015-03-01 05:05:09.939804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88ece556-bfd0-11e4-9af0-705681abff85' AND "clubhouse_memberships"."organization_id" = '88eeb20a-bfd0-11e4-8f7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88ece556-bfd0-11e4-9af0-705681abff85"], ["organization_id", "88eeb20a-bfd0-11e4-8f7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:09.943303"], ["updated_at", "2015-03-01 05:05:09.943303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88ed9b04-bfd0-11e4-b543-705681abff85' AND "clubhouse_memberships"."organization_id" = '88eeb20a-bfd0-11e4-8f7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88ed9b04-bfd0-11e4-b543-705681abff85"], ["organization_id", "88eeb20a-bfd0-11e4-8f7c-705681abff85"], ["created_at", "2015-03-01 05:05:09.946850"], ["updated_at", "2015-03-01 05:05:09.946850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 21:05:09 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:09.951358' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "J23hUKbxhxXJULs4Jk6DrzQ_gfPyHaq2pjRKLwvV_9U"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:09.953176"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:09.954349"], ["id", "88ee0e2c-bfd0-11e4-84dc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88ece556-bfd0-11e4-9af0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "88ece556-bfd0-11e4-9af0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '88ece556-bfd0-11e4-9af0-705681abff85' LIMIT 1 [["organization_id", "88eeb20a-bfd0-11e4-8f7c-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "88eeb20a-bfd0-11e4-8f7c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "88eeb20a-bfd0-11e4-8f7c-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88ece556-bfd0-11e4-9af0-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "88eeb20a-bfd0-11e4-8f7c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88ed9b04-bfd0-11e4-b543-705681abff85"]] Completed 200 OK in 26ms (Views: 15.5ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$Vev3Xnu1Q5Uq6hwTH3cSpus2Qmwtyp6B/nneoSGxNFGEpEdv98vdu"], ["created_at", "2015-03-01 05:05:09.983858"], ["updated_at", "2015-03-01 05:05:09.983858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$bJqZrpeOE.E8chQn4gVQIuZIxJBX5JfGedlxnpZmuelz/IyUIs6uy"], ["created_at", "2015-03-01 05:05:09.989952"], ["updated_at", "2015-03-01 05:05:09.989952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:09.992024"], ["user_id", "88f572de-bfd0-11e4-b052-705681abff85"], ["created_at", "2015-03-01 05:05:09.992827"], ["updated_at", "2015-03-01 05:05:09.992827"], ["token", "q7FIqoiVQ0e-jEQZ_G03nrdo3wb16zfksTB0Ka3Vdek"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:09.996799"], ["updated_at", "2015-03-01 05:05:09.996799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88f572de-bfd0-11e4-b052-705681abff85' AND "clubhouse_memberships"."organization_id" = '88f76490-bfd0-11e4-a6cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88f572de-bfd0-11e4-b052-705681abff85"], ["organization_id", "88f76490-bfd0-11e4-a6cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.000072"], ["updated_at", "2015-03-01 05:05:10.000072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88f65bcc-bfd0-11e4-b09f-705681abff85' AND "clubhouse_memberships"."organization_id" = '88f76490-bfd0-11e4-a6cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88f65bcc-bfd0-11e4-b09f-705681abff85"], ["organization_id", "88f76490-bfd0-11e4-a6cc-705681abff85"], ["created_at", "2015-03-01 05:05:10.003504"], ["updated_at", "2015-03-01 05:05:10.003504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/88f7e294-bfd0-11e4-96db-705681abff85" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"88f7e294-bfd0-11e4-96db-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.008357' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q7FIqoiVQ0e-jEQZ_G03nrdo3wb16zfksTB0Ka3Vdek"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.010561"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.011517"], ["id", "88f6d1e2-bfd0-11e4-b5ff-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88f572de-bfd0-11e4-b052-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "88f572de-bfd0-11e4-b052-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "88f572de-bfd0-11e4-b052-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "88f572de-bfd0-11e4-b052-705681abff85"], ["id", "88f7e294-bfd0-11e4-96db-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "88f76490-bfd0-11e4-a6cc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88f572de-bfd0-11e4-b052-705681abff85"]] Completed 200 OK in 13ms (Views: 2.3ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$fIptXpRUw2COeZZDoGsbrO2kqISYrIyLVacSpc6oON0zpNN2TR7N6"], ["created_at", "2015-03-01 05:05:10.029751"], ["updated_at", "2015-03-01 05:05:10.029751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$xOSgGDGvkz6NVc.TzXp.9uduxLqOmgtbXl1VJsV6RSXAvP03y.OIe"], ["created_at", "2015-03-01 05:05:10.034601"], ["updated_at", "2015-03-01 05:05:10.034601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.036421"], ["user_id", "88fc7386-bfd0-11e4-beac-705681abff85"], ["created_at", "2015-03-01 05:05:10.037671"], ["updated_at", "2015-03-01 05:05:10.037671"], ["token", "jgHEiF_DOowJnRqorbWLUBzO_pEUrarNqjSB88tH1-I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.042180"], ["updated_at", "2015-03-01 05:05:10.042180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88fc7386-bfd0-11e4-beac-705681abff85' AND "clubhouse_memberships"."organization_id" = '88fe50c0-bfd0-11e4-a67d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88fc7386-bfd0-11e4-beac-705681abff85"], ["organization_id", "88fe50c0-bfd0-11e4-a67d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.045489"], ["updated_at", "2015-03-01 05:05:10.045489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88fd2c54-bfd0-11e4-b778-705681abff85' AND "clubhouse_memberships"."organization_id" = '88fe50c0-bfd0-11e4-a67d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "88fd2c54-bfd0-11e4-b778-705681abff85"], ["organization_id", "88fe50c0-bfd0-11e4-a67d-705681abff85"], ["created_at", "2015-03-01 05:05:10.049122"], ["updated_at", "2015-03-01 05:05:10.049122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$rsrU6B7JBiFFZUXJMf6RQuFymm/vnw.77heJl5Vjhbic2NDuW6KAG"], ["created_at", "2015-03-01 05:05:10.063098"], ["updated_at", "2015-03-01 05:05:10.063098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$1z4d8tluzXGWqnIhgpsnzuvdec.mayg9fIwSrMN6FrPAPbzOY87b."], ["created_at", "2015-03-01 05:05:10.067897"], ["updated_at", "2015-03-01 05:05:10.067897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.069434"], ["user_id", "89018c68-bfd0-11e4-8ef7-705681abff85"], ["created_at", "2015-03-01 05:05:10.070208"], ["updated_at", "2015-03-01 05:05:10.070208"], ["token", "up9SIVAKSxyt6TU1O1pl_KZeOBrIJ7aEsn7L6sR0pvI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.074762"], ["updated_at", "2015-03-01 05:05:10.074762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89018c68-bfd0-11e4-8ef7-705681abff85' AND "clubhouse_memberships"."organization_id" = '89034cc4-bfd0-11e4-84ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "89018c68-bfd0-11e4-8ef7-705681abff85"], ["organization_id", "89034cc4-bfd0-11e4-84ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.078328"], ["updated_at", "2015-03-01 05:05:10.078328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89023c26-bfd0-11e4-a37d-705681abff85' AND "clubhouse_memberships"."organization_id" = '89034cc4-bfd0-11e4-84ad-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "89023c26-bfd0-11e4-a37d-705681abff85"], ["organization_id", "89034cc4-bfd0-11e4-84ad-705681abff85"], ["created_at", "2015-03-01 05:05:10.081957"], ["updated_at", "2015-03-01 05:05:10.081957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$iiPxsrXH6dpb76SuOWdaZuIVHYt9l7VyLK2.K9UExISggT1RaVEH2"], ["created_at", "2015-03-01 05:05:10.099070"], ["updated_at", "2015-03-01 05:05:10.099070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$upQ50bY.DbAouHFXDgOCiOsu72OopMHjhZ3YQVpqeHnWnbYhenCGC"], ["created_at", "2015-03-01 05:05:10.104200"], ["updated_at", "2015-03-01 05:05:10.104200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.106492"], ["user_id", "8907083c-bfd0-11e4-8372-705681abff85"], ["created_at", "2015-03-01 05:05:10.107256"], ["updated_at", "2015-03-01 05:05:10.107256"], ["token", "jBhtEbVz95t5vbpQPC8nAM72q3agJWNYXmV-r5OIe0M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.112416"], ["updated_at", "2015-03-01 05:05:10.112416"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8907083c-bfd0-11e4-8372-705681abff85' AND "clubhouse_memberships"."organization_id" = '89090a88-bfd0-11e4-b01a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8907083c-bfd0-11e4-8372-705681abff85"], ["organization_id", "89090a88-bfd0-11e4-b01a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.118768"], ["updated_at", "2015-03-01 05:05:10.118768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8907d0d2-bfd0-11e4-acad-705681abff85' AND "clubhouse_memberships"."organization_id" = '89090a88-bfd0-11e4-b01a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8907d0d2-bfd0-11e4-acad-705681abff85"], ["organization_id", "89090a88-bfd0-11e4-b01a-705681abff85"], ["created_at", "2015-03-01 05:05:10.124002"], ["updated_at", "2015-03-01 05:05:10.124002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/890a1fb8-bfd0-11e4-b130-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"890a1fb8-bfd0-11e4-b130-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.128922' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jBhtEbVz95t5vbpQPC8nAM72q3agJWNYXmV-r5OIe0M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.131091"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.132712"], ["id", "890846a2-bfd0-11e4-a48b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8907083c-bfd0-11e4-8372-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8907083c-bfd0-11e4-8372-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8907083c-bfd0-11e4-8372-705681abff85' LIMIT 1 [["organization_id", "89090a88-bfd0-11e4-b01a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "89090a88-bfd0-11e4-b01a-705681abff85"], ["id", "890a1fb8-bfd0-11e4-b130-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8907083c-bfd0-11e4-8372-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$1pqRGiszrLhmR4cO.q/EweDSHe2r2DaF7Vj54gUo8pzclVEVF6HIC"], ["created_at", "2015-03-01 05:05:10.146750"], ["updated_at", "2015-03-01 05:05:10.146750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$R7Y7xI0oBqkoEU7bUCkHuOFIOxI5izgPtZOyd8440xRFrFCvaRawy"], ["created_at", "2015-03-01 05:05:10.151651"], ["updated_at", "2015-03-01 05:05:10.151651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.153435"], ["user_id", "890e4e4e-bfd0-11e4-90fb-705681abff85"], ["created_at", "2015-03-01 05:05:10.154208"], ["updated_at", "2015-03-01 05:05:10.154208"], ["token", "z0RU4KRmcA-xUhQKhWyrWEOY_dcMUG6L5ioPNDLk4xY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.158502"], ["updated_at", "2015-03-01 05:05:10.158502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '890e4e4e-bfd0-11e4-90fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '891011e8-bfd0-11e4-a5c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "890e4e4e-bfd0-11e4-90fb-705681abff85"], ["organization_id", "891011e8-bfd0-11e4-a5c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.162194"], ["updated_at", "2015-03-01 05:05:10.162194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '890f0988-bfd0-11e4-b1fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '891011e8-bfd0-11e4-a5c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "890f0988-bfd0-11e4-b1fc-705681abff85"], ["organization_id", "891011e8-bfd0-11e4-a5c9-705681abff85"], ["created_at", "2015-03-01 05:05:10.165342"], ["updated_at", "2015-03-01 05:05:10.165342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/89111a70-bfd0-11e4-933a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"89111a70-bfd0-11e4-933a-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.169787' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z0RU4KRmcA-xUhQKhWyrWEOY_dcMUG6L5ioPNDLk4xY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.171266"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.172349"], ["id", "890f88cc-bfd0-11e4-b9e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "890e4e4e-bfd0-11e4-90fb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "890e4e4e-bfd0-11e4-90fb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '890e4e4e-bfd0-11e4-90fb-705681abff85' LIMIT 1 [["organization_id", "891011e8-bfd0-11e4-a5c9-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "891011e8-bfd0-11e4-a5c9-705681abff85"], ["id", "89111a70-bfd0-11e4-933a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "890f0988-bfd0-11e4-b1fc-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "891011e8-bfd0-11e4-a5c9-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '890f0988-bfd0-11e4-b1fc-705681abff85' AND "clubhouse_memberships"."id" != '89111a70-bfd0-11e4-933a-705681abff85' AND "clubhouse_memberships"."organization_id" = '891011e8-bfd0-11e4-a5c9-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:05:10.181054"], ["id", "89111a70-bfd0-11e4-933a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$/zzR28UFv2ZQxCGXpd0PGO.grdX/VAdJBdirMXTDbZ02.zqzT7u4a"], ["created_at", "2015-03-01 05:05:10.191274"], ["updated_at", "2015-03-01 05:05:10.191274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$kRuzQea1ad4tRFuSC.OXR.PFY.OHr.3yxkBcIr6KKxc49dE/N2b4S"], ["created_at", "2015-03-01 05:05:10.197406"], ["updated_at", "2015-03-01 05:05:10.197406"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.226032"], ["user_id", "89153d08-bfd0-11e4-8987-705681abff85"], ["created_at", "2015-03-01 05:05:10.229566"], ["updated_at", "2015-03-01 05:05:10.229566"], ["token", "Ia5KOZ7U37_JrMxQ1Ua6fcVhPffNTr3KzTHkj73bUNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.236894"], ["updated_at", "2015-03-01 05:05:10.236894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89153d08-bfd0-11e4-8987-705681abff85' AND "clubhouse_memberships"."organization_id" = '891c1b5a-bfd0-11e4-b0d4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "89153d08-bfd0-11e4-8987-705681abff85"], ["organization_id", "891c1b5a-bfd0-11e4-b0d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.242389"], ["updated_at", "2015-03-01 05:05:10.242389"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89160440-bfd0-11e4-9749-705681abff85' AND "clubhouse_memberships"."organization_id" = '891c1b5a-bfd0-11e4-b0d4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "89160440-bfd0-11e4-9749-705681abff85"], ["organization_id", "891c1b5a-bfd0-11e4-b0d4-705681abff85"], ["created_at", "2015-03-01 05:05:10.248957"], ["updated_at", "2015-03-01 05:05:10.248957"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$C63oeZ0/OUJ7sSFjdJaM7.MEz2eSxPSzb7v7GsJUbfg5UbPAMHioW"], ["created_at", "2015-03-01 05:05:10.256093"], ["updated_at", "2015-03-01 05:05:10.256093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.258851"], ["user_id", "891f0fae-bfd0-11e4-a1cf-705681abff85"], ["created_at", "2015-03-01 05:05:10.260161"], ["updated_at", "2015-03-01 05:05:10.260161"], ["token", "AQYjd-u0hG8MewQUS3rhO1pueHpfflgWc7P33OalsWs"]]  (4.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '891c1b5a-bfd0-11e4-b0d4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "891c1b5a-bfd0-11e4-b0d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.275202"], ["updated_at", "2015-03-01 05:05:10.275202"], ["token", "BmxQJSk4tq8BV78CS__8nSq3bEmvpiDLMX4-PZ1iR78"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$sYQCyRPN9dUHAol0R5pfd.cx9lC1aan75vkBZRslJQ0D1ZtCBqwY6"], ["created_at", "2015-03-01 05:05:10.306247"], ["updated_at", "2015-03-01 05:05:10.306247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$P1bu0CiMiM69pzLjChJoEeknGODjHDVzKAxvdAqPL46FW2ELuwz06"], ["created_at", "2015-03-01 05:05:10.310778"], ["updated_at", "2015-03-01 05:05:10.310778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.312398"], ["user_id", "89269f94-bfd0-11e4-852c-705681abff85"], ["created_at", "2015-03-01 05:05:10.313187"], ["updated_at", "2015-03-01 05:05:10.313187"], ["token", "KzpuwDsA5lJpV-pUoQVMc6EdjbqTRR378jrnoMj3I3s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.316808"], ["updated_at", "2015-03-01 05:05:10.316808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89269f94-bfd0-11e4-852c-705681abff85' AND "clubhouse_memberships"."organization_id" = '892839a8-bfd0-11e4-b9b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "89269f94-bfd0-11e4-852c-705681abff85"], ["organization_id", "892839a8-bfd0-11e4-b9b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.320653"], ["updated_at", "2015-03-01 05:05:10.320653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89274cbe-bfd0-11e4-89db-705681abff85' AND "clubhouse_memberships"."organization_id" = '892839a8-bfd0-11e4-b9b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "89274cbe-bfd0-11e4-89db-705681abff85"], ["organization_id", "892839a8-bfd0-11e4-b9b3-705681abff85"], ["created_at", "2015-03-01 05:05:10.324269"], ["updated_at", "2015-03-01 05:05:10.324269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$rZ8nibJaFFRLxmPaDhkr/.OhF9U/iVgLHR3ZmuUmRsU3hzvl3bPPC"], ["created_at", "2015-03-01 05:05:10.328800"], ["updated_at", "2015-03-01 05:05:10.328800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.330380"], ["user_id", "892a0d50-bfd0-11e4-a2b8-705681abff85"], ["created_at", "2015-03-01 05:05:10.331166"], ["updated_at", "2015-03-01 05:05:10.331166"], ["token", "t5KARZDJeWmZ2EYdaG_V8BTss-jx9WWocaZjhscAHe4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '892839a8-bfd0-11e4-b9b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "892839a8-bfd0-11e4-b9b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.335601"], ["updated_at", "2015-03-01 05:05:10.335601"], ["token", "H65QhYQ0BHSUfJQvr4z2vB-EEvsLY46KLxBLnPdZJ04"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.340920' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "t5KARZDJeWmZ2EYdaG_V8BTss-jx9WWocaZjhscAHe4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.342340"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.343294"], ["id", "892a72ae-bfd0-11e4-9a07-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "892a0d50-bfd0-11e4-a2b8-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "892a0d50-bfd0-11e4-a2b8-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$/SP09gWU0HZijGv4rRouzeQknKCLnVZ0Sux8YW7rloyVf.alWuiq2"], ["created_at", "2015-03-01 05:05:10.357210"], ["updated_at", "2015-03-01 05:05:10.357210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$96A7Weh0wtnsXna7csN19uYwTLPysNLjWteTlq5vHcojxpSqU6kwi"], ["created_at", "2015-03-01 05:05:10.361998"], ["updated_at", "2015-03-01 05:05:10.361998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.363738"], ["user_id", "892e6bfc-bfd0-11e4-b6e7-705681abff85"], ["created_at", "2015-03-01 05:05:10.364551"], ["updated_at", "2015-03-01 05:05:10.364551"], ["token", "h8LwuRIRDZ3KGGmSB9XpvEliwt9EF_S_Mr4yurjv5BM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.368152"], ["updated_at", "2015-03-01 05:05:10.368152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '892e6bfc-bfd0-11e4-b6e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '89300c82-bfd0-11e4-a5d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "892e6bfc-bfd0-11e4-b6e7-705681abff85"], ["organization_id", "89300c82-bfd0-11e4-a5d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.372062"], ["updated_at", "2015-03-01 05:05:10.372062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '892f1d18-bfd0-11e4-aee5-705681abff85' AND "clubhouse_memberships"."organization_id" = '89300c82-bfd0-11e4-a5d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "892f1d18-bfd0-11e4-aee5-705681abff85"], ["organization_id", "89300c82-bfd0-11e4-a5d2-705681abff85"], ["created_at", "2015-03-01 05:05:10.375289"], ["updated_at", "2015-03-01 05:05:10.375289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$6jAHROOwricshwD8GAzHzuhW/mO3jGc1hpBmHQe87MetrI3Yb3.T2"], ["created_at", "2015-03-01 05:05:10.379783"], ["updated_at", "2015-03-01 05:05:10.379783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.381399"], ["user_id", "8931d404-bfd0-11e4-adaf-705681abff85"], ["created_at", "2015-03-01 05:05:10.382211"], ["updated_at", "2015-03-01 05:05:10.382211"], ["token", "UcRT-bYVV9G6i8iqa1OVP5wAGd7iUqVFKCuc1j0BYB8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '89300c82-bfd0-11e4-a5d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "89300c82-bfd0-11e4-a5d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.386160"], ["updated_at", "2015-03-01 05:05:10.386160"], ["token", "TauO_bEsrBh9GVxLRjGgdCmsF1uHNm5ywJsluZntTtY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"TauO_bEsrBh9GVxLRjGgdCmsF1uHNm5ywJsluZntTtY", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.390931' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UcRT-bYVV9G6i8iqa1OVP5wAGd7iUqVFKCuc1j0BYB8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.393383"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.395166"], ["id", "89323dae-bfd0-11e4-b842-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8931d404-bfd0-11e4-adaf-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8931d404-bfd0-11e4-adaf-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "TauO_bEsrBh9GVxLRjGgdCmsF1uHNm5ywJsluZntTtY"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "89300c82-bfd0-11e4-a5d2-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "89300c82-bfd0-11e4-a5d2-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8931d404-bfd0-11e4-adaf-705681abff85' AND "clubhouse_memberships"."organization_id" = '89300c82-bfd0-11e4-a5d2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8931d404-bfd0-11e4-adaf-705681abff85"], ["admin", "t"], ["organization_id", "89300c82-bfd0-11e4-a5d2-705681abff85"], ["created_at", "2015-03-01 05:05:10.406946"], ["updated_at", "2015-03-01 05:05:10.406946"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "8932d192-bfd0-11e4-90e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 1.1ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$ggD/Z78FlNTD.T54r0bCyO393ggvLeENITuyclBV.2iO6ca0frdMC"], ["created_at", "2015-03-01 05:05:10.418399"], ["updated_at", "2015-03-01 05:05:10.418399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.420007"], ["user_id", "8937b95a-bfd0-11e4-a670-705681abff85"], ["created_at", "2015-03-01 05:05:10.421227"], ["updated_at", "2015-03-01 05:05:10.421227"], ["token", "pwr_B6p7eukVYqREoPc-p-2HNJpRJsJSME1W2hE6uVo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.426184"], ["updated_at", "2015-03-01 05:05:10.426184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8937b95a-bfd0-11e4-a670-705681abff85' AND "clubhouse_memberships"."organization_id" = '8938e67c-bfd0-11e4-ba9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8937b95a-bfd0-11e4-a670-705681abff85"], ["organization_id", "8938e67c-bfd0-11e4-ba9c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.429623"], ["updated_at", "2015-03-01 05:05:10.429623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '8938e67c-bfd0-11e4-ba9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "8938e67c-bfd0-11e4-ba9c-705681abff85"], ["created_at", "2015-03-01 05:05:10.432930"], ["updated_at", "2015-03-01 05:05:10.432930"], ["token", "XD0YR24RB0SrxQGeD0J9ocISk0Se0awi54LsZ4RYf5M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$Hll7HOGPS3g5mH9mRwMWY.TJRAiNXXJq0UiYwp/pCWs.n7gN2txrW"], ["created_at", "2015-03-01 05:05:10.437449"], ["updated_at", "2015-03-01 05:05:10.437449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.440893"], ["updated_at", "2015-03-01 05:05:10.440893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '893aa070-bfd0-11e4-8803-705681abff85' AND "clubhouse_memberships"."organization_id" = '893b2824-bfd0-11e4-9876-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "893aa070-bfd0-11e4-8803-705681abff85"], ["organization_id", "893b2824-bfd0-11e4-9876-705681abff85"], ["created_at", "2015-03-01 05:05:10.444166"], ["updated_at", "2015-03-01 05:05:10.444166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.455245' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pwr_B6p7eukVYqREoPc-p-2HNJpRJsJSME1W2hE6uVo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.456756"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.457713"], ["id", "893853c4-bfd0-11e4-afc3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8937b95a-bfd0-11e4-a670-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8937b95a-bfd0-11e4-a670-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8937b95a-bfd0-11e4-a670-705681abff85' LIMIT 1 [["organization_id", "8938e67c-bfd0-11e4-ba9c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "8938e67c-bfd0-11e4-ba9c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8938e67c-bfd0-11e4-ba9c-705681abff85"]] Completed 200 OK in 14ms (Views: 5.3ms | ActiveRecord: 1.6ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$pmYbjoZ5MdITMsnzO4FYm.m0L0M3JdpqsVMB9TbZOAS5K/RBXMN7S"], ["created_at", "2015-03-01 05:05:10.477399"], ["updated_at", "2015-03-01 05:05:10.477399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.479471"], ["user_id", "8940c978-bfd0-11e4-877d-705681abff85"], ["created_at", "2015-03-01 05:05:10.480247"], ["updated_at", "2015-03-01 05:05:10.480247"], ["token", "Ns0GJDirhwS6XBpwReuPhD-ChbQjz7rAsA-V4evwV6U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.483947"], ["updated_at", "2015-03-01 05:05:10.483947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8940c978-bfd0-11e4-877d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8941b87e-bfd0-11e4-85f9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8940c978-bfd0-11e4-877d-705681abff85"], ["organization_id", "8941b87e-bfd0-11e4-85f9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.487217"], ["updated_at", "2015-03-01 05:05:10.487217"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '8941b87e-bfd0-11e4-85f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "8941b87e-bfd0-11e4-85f9-705681abff85"], ["created_at", "2015-03-01 05:05:10.491411"], ["updated_at", "2015-03-01 05:05:10.491411"], ["token", "FNDFapLIGFBZMHeWtfjqx8iAl6sra5UVDNHnLhuCn_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$Tswp2gTU8uNxX6lTwybNS.kreL4/RDRW4mF20SHEClS5zrA4WpruS"], ["created_at", "2015-03-01 05:05:10.496301"], ["updated_at", "2015-03-01 05:05:10.496301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.500232"], ["updated_at", "2015-03-01 05:05:10.500232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8943a454-bfd0-11e4-ad47-705681abff85' AND "clubhouse_memberships"."organization_id" = '89443720-bfd0-11e4-bc22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8943a454-bfd0-11e4-ad47-705681abff85"], ["organization_id", "89443720-bfd0-11e4-bc22-705681abff85"], ["created_at", "2015-03-01 05:05:10.503585"], ["updated_at", "2015-03-01 05:05:10.503585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$S69.H2NaOpySj1wZrqCYa.xM2MIneiD.M6rwvmIZqM.GfzKgUGaGW"], ["created_at", "2015-03-01 05:05:10.517364"], ["updated_at", "2015-03-01 05:05:10.517364"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.519286"], ["user_id", "8946d912-bfd0-11e4-8e0f-705681abff85"], ["created_at", "2015-03-01 05:05:10.520191"], ["updated_at", "2015-03-01 05:05:10.520191"], ["token", "r4A49KD7jT4LUklPM_Bd7jw7yocs1T3uMpN0BI4JhC8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.524539"], ["updated_at", "2015-03-01 05:05:10.524539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8946d912-bfd0-11e4-8e0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '8947ef82-bfd0-11e4-bc27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8946d912-bfd0-11e4-8e0f-705681abff85"], ["organization_id", "8947ef82-bfd0-11e4-bc27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.528365"], ["updated_at", "2015-03-01 05:05:10.528365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '8947ef82-bfd0-11e4-bc27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "8947ef82-bfd0-11e4-bc27-705681abff85"], ["created_at", "2015-03-01 05:05:10.532031"], ["updated_at", "2015-03-01 05:05:10.532031"], ["token", "tKrqCU_dRL0CsyyRtHs1S25M67RtJ4R14QwhM1nCyrk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$Tatxf17e5hrKsJhVsjDXKunoAC7FmaCBcF0CLmf.mSL0oiLYD09KK"], ["created_at", "2015-03-01 05:05:10.544434"], ["updated_at", "2015-03-01 05:05:10.544434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.546001"], ["user_id", "894af574-bfd0-11e4-8e15-705681abff85"], ["created_at", "2015-03-01 05:05:10.546812"], ["updated_at", "2015-03-01 05:05:10.546812"], ["token", "9CY6cvcEMFfJMzIMoaj2KSdBR8gTuSG08UCA7HRr9hU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.550073"], ["updated_at", "2015-03-01 05:05:10.550073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '894af574-bfd0-11e4-8e15-705681abff85' AND "clubhouse_memberships"."organization_id" = '894bce40-bfd0-11e4-b8d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "894af574-bfd0-11e4-8e15-705681abff85"], ["organization_id", "894bce40-bfd0-11e4-b8d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.553409"], ["updated_at", "2015-03-01 05:05:10.553409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '894bce40-bfd0-11e4-b8d1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "894bce40-bfd0-11e4-b8d1-705681abff85"], ["created_at", "2015-03-01 05:05:10.556868"], ["updated_at", "2015-03-01 05:05:10.556868"], ["token", "TKXo6_yfHfVvX_j5xNcNfYNXzMvSKeZRo2oig6YQxQk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.562190' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9CY6cvcEMFfJMzIMoaj2KSdBR8gTuSG08UCA7HRr9hU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.563663"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.564845"], ["id", "894b55b4-bfd0-11e4-83c9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "894af574-bfd0-11e4-8e15-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "894af574-bfd0-11e4-8e15-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '894af574-bfd0-11e4-8e15-705681abff85' LIMIT 1 [["organization_id", "894bce40-bfd0-11e4-b8d1-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "894bce40-bfd0-11e4-b8d1-705681abff85"]] Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '894bce40-bfd0-11e4-b8d1-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$FwLRRJPlE3S245sptsomJ.NZSQp/n7LZzejSJXOa63ELVwk0BQNW2"], ["created_at", "2015-03-01 05:05:10.584678"], ["updated_at", "2015-03-01 05:05:10.584678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.586355"], ["user_id", "89511b2a-bfd0-11e4-bc95-705681abff85"], ["created_at", "2015-03-01 05:05:10.587137"], ["updated_at", "2015-03-01 05:05:10.587137"], ["token", "9wG_SpOV66SOpypP6fLhOWg2V_qTcgt2jnGcvJb9VRY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.590414"], ["updated_at", "2015-03-01 05:05:10.590414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89511b2a-bfd0-11e4-bc95-705681abff85' AND "clubhouse_memberships"."organization_id" = '8951f662-bfd0-11e4-ba52-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "89511b2a-bfd0-11e4-bc95-705681abff85"], ["organization_id", "8951f662-bfd0-11e4-ba52-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.593644"], ["updated_at", "2015-03-01 05:05:10.593644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '8951f662-bfd0-11e4-ba52-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "8951f662-bfd0-11e4-ba52-705681abff85"], ["created_at", "2015-03-01 05:05:10.596973"], ["updated_at", "2015-03-01 05:05:10.596973"], ["token", "mDZRxiJVrAqgu2XMIo1IZI46cIbi3H3b1pgGW3H_VTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.602588' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9wG_SpOV66SOpypP6fLhOWg2V_qTcgt2jnGcvJb9VRY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.604294"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.605463"], ["id", "89517f34-bfd0-11e4-a956-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "89511b2a-bfd0-11e4-bc95-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "89511b2a-bfd0-11e4-bc95-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '89511b2a-bfd0-11e4-bc95-705681abff85' LIMIT 1 [["organization_id", "8951f662-bfd0-11e4-ba52-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8951f662-bfd0-11e4-ba52-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8951f662-bfd0-11e4-ba52-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "8951f662-bfd0-11e4-ba52-705681abff85"], ["created_at", "2015-03-01 05:05:10.613831"], ["updated_at", "2015-03-01 05:05:10.613831"], ["token", "HwAsz4k4_jsJo5eXH-HPtgybeFfq8WyvmR2R-BlWnmk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f92bfebd-1c0e-46af-acc6-b7e0cdbabc72) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/89559d30-bfd0-11e4-98f7-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "89559d30-bfd0-11e4-98f7-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [f92bfebd-1c0e-46af-acc6-b7e0cdbabc72] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/89559d30-bfd0-11e4-98f7-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [f92bfebd-1c0e-46af-acc6-b7e0cdbabc72] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8951f662-bfd0-11e4-ba52-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [f92bfebd-1c0e-46af-acc6-b7e0cdbabc72] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [f92bfebd-1c0e-46af-acc6-b7e0cdbabc72] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [f92bfebd-1c0e-46af-acc6-b7e0cdbabc72] Sent mail to email@example.com (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [f92bfebd-1c0e-46af-acc6-b7e0cdbabc72] Date: Sat, 28 Feb 2015 21:05:10 -0800 From: from@example.com To: email@example.com Message-ID: <54f29e069dadc_131e73fcde5465be825170@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/HwAsz4k4_jsJo5eXH-HPtgybeFfq8WyvmR2R-BlWnmk If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [f92bfebd-1c0e-46af-acc6-b7e0cdbabc72] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.99ms Completed 201 Created in 46ms (Views: 1.0ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$1P0G255HthP9sD8VBC/3DuHJXyh2tElIi52XGTSoNq4ij01L.1F8q"], ["created_at", "2015-03-01 05:05:10.655412"], ["updated_at", "2015-03-01 05:05:10.655412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.657709"], ["user_id", "895bf482-bfd0-11e4-b47e-705681abff85"], ["created_at", "2015-03-01 05:05:10.658448"], ["updated_at", "2015-03-01 05:05:10.658448"], ["token", "LMhriiCJAcvjF-Mi2P2wxFS5kZSsCKasLa0xdLXtxo0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.661832"], ["updated_at", "2015-03-01 05:05:10.661832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '895bf482-bfd0-11e4-b47e-705681abff85' AND "clubhouse_memberships"."organization_id" = '895cdd7a-bfd0-11e4-904e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "895bf482-bfd0-11e4-b47e-705681abff85"], ["organization_id", "895cdd7a-bfd0-11e4-904e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.665224"], ["updated_at", "2015-03-01 05:05:10.665224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '895cdd7a-bfd0-11e4-904e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "895cdd7a-bfd0-11e4-904e-705681abff85"], ["created_at", "2015-03-01 05:05:10.669491"], ["updated_at", "2015-03-01 05:05:10.669491"], ["token", "Tocg91uhbyqnQh7ATGqsyDtwCGnpdaaElM73u3pd_FI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.674632' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LMhriiCJAcvjF-Mi2P2wxFS5kZSsCKasLa0xdLXtxo0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.675990"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.676917"], ["id", "895c5dbe-bfd0-11e4-abb8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "895bf482-bfd0-11e4-b47e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "895bf482-bfd0-11e4-b47e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '895bf482-bfd0-11e4-b47e-705681abff85' LIMIT 1 [["organization_id", "895cdd7a-bfd0-11e4-904e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "895cdd7a-bfd0-11e4-904e-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '895cdd7a-bfd0-11e4-904e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "895cdd7a-bfd0-11e4-904e-705681abff85"], ["created_at", "2015-03-01 05:05:10.687933"], ["updated_at", "2015-03-01 05:05:10.687933"], ["token", "EAhaItQN0AV9KSV4Qr2AMarqFNOUUnCE1r5hmgG-zAQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 52f2f35d-f72d-4f0a-a99b-cdc34ea052aa) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8960de98-bfd0-11e4-a321-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8960de98-bfd0-11e4-a321-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [52f2f35d-f72d-4f0a-a99b-cdc34ea052aa] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8960de98-bfd0-11e4-a321-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [52f2f35d-f72d-4f0a-a99b-cdc34ea052aa] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "895cdd7a-bfd0-11e4-904e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [52f2f35d-f72d-4f0a-a99b-cdc34ea052aa] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [52f2f35d-f72d-4f0a-a99b-cdc34ea052aa] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [52f2f35d-f72d-4f0a-a99b-cdc34ea052aa] Sent mail to email@example.com (2.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [52f2f35d-f72d-4f0a-a99b-cdc34ea052aa] Date: Sat, 28 Feb 2015 21:05:10 -0800 From: from@example.com To: email@example.com Message-ID: <54f29e06a9eab_131e73fcde5465be825254@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/EAhaItQN0AV9KSV4Qr2AMarqFNOUUnCE1r5hmgG-zAQ If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [52f2f35d-f72d-4f0a-a99b-cdc34ea052aa] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.53ms Completed 201 Created in 25ms (Views: 1.0ms | ActiveRecord: 4.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$Z4NLn2df5W0X2RKoGXW.ZOyno8BrrDvByZ9/RzS7RijrSaapPhSda"], ["created_at", "2015-03-01 05:05:10.706086"], ["updated_at", "2015-03-01 05:05:10.706086"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.708392"], ["user_id", "8963a18c-bfd0-11e4-af30-705681abff85"], ["created_at", "2015-03-01 05:05:10.709563"], ["updated_at", "2015-03-01 05:05:10.709563"], ["token", "BZje0qlTWBmkUCSLA9aP9Th_vPK2M-_FO8LeNEYp68Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.713519"], ["updated_at", "2015-03-01 05:05:10.713519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8963a18c-bfd0-11e4-af30-705681abff85' AND "clubhouse_memberships"."organization_id" = '8964be5a-bfd0-11e4-af58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8963a18c-bfd0-11e4-af30-705681abff85"], ["organization_id", "8964be5a-bfd0-11e4-af58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.716758"], ["updated_at", "2015-03-01 05:05:10.716758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '8964be5a-bfd0-11e4-af58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "8964be5a-bfd0-11e4-af58-705681abff85"], ["created_at", "2015-03-01 05:05:10.720167"], ["updated_at", "2015-03-01 05:05:10.720167"], ["token", "k0StM77J_NQvv1hLG4TrDJhoIMdoYul9N2bQcIo3lFM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/8965c55c-bfd0-11e4-a92e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"8965c55c-bfd0-11e4-a92e-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.724673' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BZje0qlTWBmkUCSLA9aP9Th_vPK2M-_FO8LeNEYp68Q"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.726467"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.728300"], ["id", "89643192-bfd0-11e4-a52d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8963a18c-bfd0-11e4-af30-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8963a18c-bfd0-11e4-af30-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8963a18c-bfd0-11e4-af30-705681abff85' LIMIT 1 [["organization_id", "8964be5a-bfd0-11e4-af58-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8964be5a-bfd0-11e4-af58-705681abff85"], ["id", "8965c55c-bfd0-11e4-a92e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8964be5a-bfd0-11e4-af58-705681abff85"]] Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$0Y/UQGfIO0nq/jU765wOpOMRevSgvemuH0IgYIFsnucZMrgfvErpK"], ["created_at", "2015-03-01 05:05:10.742579"], ["updated_at", "2015-03-01 05:05:10.742579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.744459"], ["user_id", "89693872-bfd0-11e4-93d0-705681abff85"], ["created_at", "2015-03-01 05:05:10.745183"], ["updated_at", "2015-03-01 05:05:10.745183"], ["token", "lzNT9_xhXkzIcayojwrAzFnF5FyGgEDxr-yDCSQ2Gx4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.748401"], ["updated_at", "2015-03-01 05:05:10.748401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89693872-bfd0-11e4-93d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '896a103a-bfd0-11e4-901e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "89693872-bfd0-11e4-93d0-705681abff85"], ["organization_id", "896a103a-bfd0-11e4-901e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.751786"], ["updated_at", "2015-03-01 05:05:10.751786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '896a103a-bfd0-11e4-901e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "896a103a-bfd0-11e4-901e-705681abff85"], ["created_at", "2015-03-01 05:05:10.755442"], ["updated_at", "2015-03-01 05:05:10.755442"], ["token", "vBTH_gaddv8UgO-JTCa4_S0LYINfB1p3IvYpAm_iJxw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$2BJbY2PDgYcXA6z6ePRPK.OtxbZN11srYJ7za1bwXiqiaTz7TgFN2"], ["created_at", "2015-03-01 05:05:10.768574"], ["updated_at", "2015-03-01 05:05:10.768574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.770138"], ["user_id", "896d287e-bfd0-11e4-abe7-705681abff85"], ["created_at", "2015-03-01 05:05:10.770900"], ["updated_at", "2015-03-01 05:05:10.770900"], ["token", "-15hriklu5AA4otnZ-gFV6ur60pU8KZx2jxVwo-Sgk8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.774022"], ["updated_at", "2015-03-01 05:05:10.774022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '896d287e-bfd0-11e4-abe7-705681abff85' AND "clubhouse_memberships"."organization_id" = '896df9de-bfd0-11e4-b0a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "896d287e-bfd0-11e4-abe7-705681abff85"], ["organization_id", "896df9de-bfd0-11e4-b0a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.777105"], ["updated_at", "2015-03-01 05:05:10.777105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '896df9de-bfd0-11e4-b0a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "896df9de-bfd0-11e4-b0a6-705681abff85"], ["created_at", "2015-03-01 05:05:10.780236"], ["updated_at", "2015-03-01 05:05:10.780236"], ["token", "OZ545Mg03S2iAsT5be99Za7m4ZM-VDIc-bY6TjiTkf8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/896eef7e-bfd0-11e4-a8af-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"896eef7e-bfd0-11e4-a8af-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.785697' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-15hriklu5AA4otnZ-gFV6ur60pU8KZx2jxVwo-Sgk8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.787609"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.788531"], ["id", "896d871a-bfd0-11e4-a721-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "896d287e-bfd0-11e4-abe7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "896d287e-bfd0-11e4-abe7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '896d287e-bfd0-11e4-abe7-705681abff85' LIMIT 1 [["organization_id", "896df9de-bfd0-11e4-b0a6-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "896df9de-bfd0-11e4-b0a6-705681abff85"], ["id", "896eef7e-bfd0-11e4-a8af-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "896df9de-bfd0-11e4-b0a6-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."id" != '896eef7e-bfd0-11e4-a8af-705681abff85' AND "clubhouse_invitations"."organization_id" = '896df9de-bfd0-11e4-b0a6-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:05:10.798354"], ["id", "896eef7e-bfd0-11e4-a8af-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.9ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$HLJv3t7HLhg9YkGlZ/B7VOXmZ9QrxyhK3KzbMEY.0LtxdSgVC5R7C"], ["created_at", "2015-03-01 05:05:10.807152"], ["updated_at", "2015-03-01 05:05:10.807152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.808815"], ["user_id", "89730af0-bfd0-11e4-a1c7-705681abff85"], ["created_at", "2015-03-01 05:05:10.809576"], ["updated_at", "2015-03-01 05:05:10.809576"], ["token", "F2fJ4WmztR6B3ii3c1sHtKjwktw5cue4ErRmTwCCLtc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.812724"], ["updated_at", "2015-03-01 05:05:10.812724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89730af0-bfd0-11e4-a1c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8973e0ba-bfd0-11e4-96e0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "89730af0-bfd0-11e4-a1c7-705681abff85"], ["organization_id", "8973e0ba-bfd0-11e4-96e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.815883"], ["updated_at", "2015-03-01 05:05:10.815883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '8973e0ba-bfd0-11e4-96e0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "8973e0ba-bfd0-11e4-96e0-705681abff85"], ["created_at", "2015-03-01 05:05:10.819539"], ["updated_at", "2015-03-01 05:05:10.819539"], ["token", "ud1s7RXHIcpUWCosqUHU2xGZCo73n8PljzHNblM9HRo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$XN8zhtqksB9OppsjvPMRveryQ5sxCZTV6ak6Lp8sBG2X66mTsIu5e"], ["created_at", "2015-03-01 05:05:10.833507"], ["updated_at", "2015-03-01 05:05:10.833507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.835228"], ["user_id", "897713e8-bfd0-11e4-a986-705681abff85"], ["created_at", "2015-03-01 05:05:10.835982"], ["updated_at", "2015-03-01 05:05:10.835982"], ["token", "obRRnAcJd1BZ3m27kmTes1pByumcWQflBF2hnrj5Psk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.839134"], ["updated_at", "2015-03-01 05:05:10.839134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '897713e8-bfd0-11e4-a986-705681abff85' AND "clubhouse_memberships"."organization_id" = '8977e84a-bfd0-11e4-89fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "897713e8-bfd0-11e4-a986-705681abff85"], ["organization_id", "8977e84a-bfd0-11e4-89fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.842243"], ["updated_at", "2015-03-01 05:05:10.842243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '8977e84a-bfd0-11e4-89fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "8977e84a-bfd0-11e4-89fd-705681abff85"], ["created_at", "2015-03-01 05:05:10.845368"], ["updated_at", "2015-03-01 05:05:10.845368"], ["token", "bqJZdGKBM74rKq3il9dzxlc9uawsDkmp_we2xdWnIf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/8978e042-bfd0-11e4-a0b6-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8978e042-bfd0-11e4-a0b6-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:05:10.850531' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "obRRnAcJd1BZ3m27kmTes1pByumcWQflBF2hnrj5Psk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:05:10.852015"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:05:10.852970"], ["id", "897775e0-bfd0-11e4-9fce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "897713e8-bfd0-11e4-a986-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "897713e8-bfd0-11e4-a986-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '897713e8-bfd0-11e4-a986-705681abff85' LIMIT 1 [["organization_id", "8977e84a-bfd0-11e4-89fd-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8977e84a-bfd0-11e4-89fd-705681abff85"], ["id", "8978e042-bfd0-11e4-a0b6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "8978e042-bfd0-11e4-a0b6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$.dvPSjQeNY44IckcSRSogOfKyesMjTS33WHdAkO0rmta.SpPugpHu"], ["created_at", "2015-03-01 05:05:10.869575"], ["updated_at", "2015-03-01 05:05:10.869575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:05:10.871321"], ["user_id", "897c94e4-bfd0-11e4-af08-705681abff85"], ["created_at", "2015-03-01 05:05:10.872158"], ["updated_at", "2015-03-01 05:05:10.872158"], ["token", "yPUGA6yMLuY1xZAemv5uLsB1wSQZxBonOgjkvReWp-o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:05:10.876691"], ["updated_at", "2015-03-01 05:05:10.876691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '897c94e4-bfd0-11e4-af08-705681abff85' AND "clubhouse_memberships"."organization_id" = '897da8b6-bfd0-11e4-9272-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "897c94e4-bfd0-11e4-af08-705681abff85"], ["organization_id", "897da8b6-bfd0-11e4-9272-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:05:10.880903"], ["updated_at", "2015-03-01 05:05:10.880903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '897da8b6-bfd0-11e4-9272-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "897da8b6-bfd0-11e4-9272-705681abff85"], ["created_at", "2015-03-01 05:05:10.884621"], ["updated_at", "2015-03-01 05:05:10.884621"], ["token", "2U4daMOaVgAGJl_Gq1r6YEx4qo3juoj1kiSlXxCDy7A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 21:05:10 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$2AZpXG2d2ViIf/nfFMtWpuYD.Ip0v95Dzzped1W5x7Bwqg88kOSUG"], ["created_at", "2015-03-01 05:12:12.320684"], ["updated_at", "2015-03-01 05:12:12.320684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.337974"], ["user_id", "84b145ee-bfd1-11e4-9aa6-705681abff85"], ["created_at", "2015-03-01 05:12:12.343974"], ["updated_at", "2015-03-01 05:12:12.343974"], ["token", "S85OTt_0E0qTMpyP2xYVLT5UaZiRu1y-tJmDEHapShI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.353557"], ["updated_at", "2015-03-01 05:12:12.353557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84b145ee-bfd1-11e4-9aa6-705681abff85' AND "clubhouse_memberships"."organization_id" = '84b5f4ae-bfd1-11e4-8dc1-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84b145ee-bfd1-11e4-9aa6-705681abff85"], ["organization_id", "84b5f4ae-bfd1-11e4-8dc1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.367349"], ["updated_at", "2015-03-01 05:12:12.367349"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '84b5f4ae-bfd1-11e4-8dc1-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "84b5f4ae-bfd1-11e4-8dc1-705681abff85"], ["created_at", "2015-03-01 05:12:12.381343"], ["updated_at", "2015-03-01 05:12:12.381343"], ["token", "o65oRlh61oa2E6ehwit1dMW3ZrgWTpEp_OhrCiyWaoM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$VPzeiNsTntA8erAQlR08/uekLKOQYtUPijaNuKk0rRU40x8RQ0Maq"], ["created_at", "2015-03-01 05:12:12.387519"], ["updated_at", "2015-03-01 05:12:12.387519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.390669"], ["updated_at", "2015-03-01 05:12:12.390669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84bb1be6-bfd1-11e4-afe9-705681abff85' AND "clubhouse_memberships"."organization_id" = '84bb92a6-bfd1-11e4-b674-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "84bb1be6-bfd1-11e4-afe9-705681abff85"], ["organization_id", "84bb92a6-bfd1-11e4-b674-705681abff85"], ["created_at", "2015-03-01 05:12:12.393945"], ["updated_at", "2015-03-01 05:12:12.393945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:12.425192' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S85OTt_0E0qTMpyP2xYVLT5UaZiRu1y-tJmDEHapShI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:12.432299"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:12.433457"], ["id", "84b48f88-bfd1-11e4-988e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$nMvXSIG2VYDdQiMBlMNbkONmadCdKaJJOkKK6K.ELBgQobYB5s8Uq"], ["created_at", "2015-03-01 05:12:12.443495"], ["updated_at", "2015-03-01 05:12:12.443495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.445186"], ["user_id", "84c3a7ac-bfd1-11e4-8570-705681abff85"], ["created_at", "2015-03-01 05:12:12.446023"], ["updated_at", "2015-03-01 05:12:12.446023"], ["token", "dLixjNh5q4l0eu5SIrOXPuHaV_de4r3xQPhJZyPx4Pk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.450117"], ["updated_at", "2015-03-01 05:12:12.450117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84c3a7ac-bfd1-11e4-8570-705681abff85' AND "clubhouse_memberships"."organization_id" = '84c4a828-bfd1-11e4-bab7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84c3a7ac-bfd1-11e4-8570-705681abff85"], ["organization_id", "84c4a828-bfd1-11e4-bab7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.453530"], ["updated_at", "2015-03-01 05:12:12.453530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '84c4a828-bfd1-11e4-bab7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "84c4a828-bfd1-11e4-bab7-705681abff85"], ["created_at", "2015-03-01 05:12:12.457002"], ["updated_at", "2015-03-01 05:12:12.457002"], ["token", "Fe5xiQ0mU-q0ydtS9XOsT1XRjxvuSuToKTwakgH8Fg0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ggKzReaW81keOhf06XUsFuFerlNjdT17KbqF9e5nSLWngxHSZw9vK"], ["created_at", "2015-03-01 05:12:12.461860"], ["updated_at", "2015-03-01 05:12:12.461860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.467249"], ["updated_at", "2015-03-01 05:12:12.467249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84c673ec-bfd1-11e4-9c98-705681abff85' AND "clubhouse_memberships"."organization_id" = '84c74380-bfd1-11e4-bc66-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "84c673ec-bfd1-11e4-9c98-705681abff85"], ["organization_id", "84c74380-bfd1-11e4-bc66-705681abff85"], ["created_at", "2015-03-01 05:12:12.470593"], ["updated_at", "2015-03-01 05:12:12.470593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$HcUuLCd1tAU7D5GvyKH5qOJT8/zlG2WVo9mt8HeVagBZl.IhNuS3K"], ["created_at", "2015-03-01 05:12:12.485915"], ["updated_at", "2015-03-01 05:12:12.485915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.487542"], ["user_id", "84ca1ef2-bfd1-11e4-9726-705681abff85"], ["created_at", "2015-03-01 05:12:12.488306"], ["updated_at", "2015-03-01 05:12:12.488306"], ["token", "46TE8irMTDegB4Xc4A1Khh7V9YSfgd07cFnLkoJlolg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.493486"], ["updated_at", "2015-03-01 05:12:12.493486"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84ca1ef2-bfd1-11e4-9726-705681abff85' AND "clubhouse_memberships"."organization_id" = '84cb6bcc-bfd1-11e4-a5cc-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84ca1ef2-bfd1-11e4-9726-705681abff85"], ["organization_id", "84cb6bcc-bfd1-11e4-a5cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.499938"], ["updated_at", "2015-03-01 05:12:12.499938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '84cb6bcc-bfd1-11e4-a5cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "84cb6bcc-bfd1-11e4-a5cc-705681abff85"], ["created_at", "2015-03-01 05:12:12.506151"], ["updated_at", "2015-03-01 05:12:12.506151"], ["token", "epLozzwDA3l-8cU87a-i9zj5ePa01gO3GgNOtLhfMW0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/84cd3998-bfd1-11e4-b774-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"84cd3998-bfd1-11e4-b774-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:12.511490' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "46TE8irMTDegB4Xc4A1Khh7V9YSfgd07cFnLkoJlolg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:12.513358"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:12.514355"], ["id", "84ca8e82-bfd1-11e4-a73f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$VrpEA9zXYxA2kdnmJrUeyO95NH21pDr.lDHdryg0/XwfX4vqeoi72"], ["created_at", "2015-03-01 05:12:12.523918"], ["updated_at", "2015-03-01 05:12:12.523918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.525543"], ["user_id", "84cfec9c-bfd1-11e4-9fad-705681abff85"], ["created_at", "2015-03-01 05:12:12.526294"], ["updated_at", "2015-03-01 05:12:12.526294"], ["token", "DzBI8sBADsmdPiUhiz8sNnWTtEgU3LF9n_-0Y8g3Nho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.529812"], ["updated_at", "2015-03-01 05:12:12.529812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84cfec9c-bfd1-11e4-9fad-705681abff85' AND "clubhouse_memberships"."organization_id" = '84d0d2ba-bfd1-11e4-af62-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84cfec9c-bfd1-11e4-9fad-705681abff85"], ["organization_id", "84d0d2ba-bfd1-11e4-af62-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.533678"], ["updated_at", "2015-03-01 05:12:12.533678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '84d0d2ba-bfd1-11e4-af62-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "84d0d2ba-bfd1-11e4-af62-705681abff85"], ["created_at", "2015-03-01 05:12:12.537673"], ["updated_at", "2015-03-01 05:12:12.537673"], ["token", "ttIfq5mcZtGxkekq6aFcWIHaJU0o-PKhhKCwXYqVkBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$uM0P2D95GpJ4snp42XSNMOAsMv84atw0Gv45jIUUpcHiYvbyFfkc."], ["created_at", "2015-03-01 05:12:12.549531"], ["updated_at", "2015-03-01 05:12:12.549531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.551281"], ["user_id", "84d3d5fa-bfd1-11e4-839d-705681abff85"], ["created_at", "2015-03-01 05:12:12.552129"], ["updated_at", "2015-03-01 05:12:12.552129"], ["token", "R8E1VnqPqLWyl04T0iuaEOp17BMCXNDzo_JgCaiDtks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.556009"], ["updated_at", "2015-03-01 05:12:12.556009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84d3d5fa-bfd1-11e4-839d-705681abff85' AND "clubhouse_memberships"."organization_id" = '84d4d3a6-bfd1-11e4-bb7f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84d3d5fa-bfd1-11e4-839d-705681abff85"], ["organization_id", "84d4d3a6-bfd1-11e4-bb7f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.562896"], ["updated_at", "2015-03-01 05:12:12.562896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '84d4d3a6-bfd1-11e4-bb7f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "84d4d3a6-bfd1-11e4-bb7f-705681abff85"], ["created_at", "2015-03-01 05:12:12.566678"], ["updated_at", "2015-03-01 05:12:12.566678"], ["token", "3AaYyLP2cHKUBuMofa8CHCktUfsQFgpw0lnlTvrQsHE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$hZ4PmwkhpsAWjOciKe1Iee9yP6gqq6likscFcOBRWoa7Qdoi6fLvS"], ["created_at", "2015-03-01 05:12:12.580018"], ["updated_at", "2015-03-01 05:12:12.580018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.581665"], ["user_id", "84d87a1a-bfd1-11e4-ae4f-705681abff85"], ["created_at", "2015-03-01 05:12:12.582436"], ["updated_at", "2015-03-01 05:12:12.582436"], ["token", "j4ETnoT_XQNek-mssVEok0j4ENmtr3h_cRjxi26bEUM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.585869"], ["updated_at", "2015-03-01 05:12:12.585869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84d87a1a-bfd1-11e4-ae4f-705681abff85' AND "clubhouse_memberships"."organization_id" = '84d95f34-bfd1-11e4-a8b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84d87a1a-bfd1-11e4-ae4f-705681abff85"], ["organization_id", "84d95f34-bfd1-11e4-a8b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.589460"], ["updated_at", "2015-03-01 05:12:12.589460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '84d95f34-bfd1-11e4-a8b9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "84d95f34-bfd1-11e4-a8b9-705681abff85"], ["created_at", "2015-03-01 05:12:12.594596"], ["updated_at", "2015-03-01 05:12:12.594596"], ["token", "cTcb0GabngIwxybq9RNjNpQkj1A_tY8PxKLrdYvM1PY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:12.602100' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "j4ETnoT_XQNek-mssVEok0j4ENmtr3h_cRjxi26bEUM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:12.603553"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:12.604453"], ["id", "84d8df8c-bfd1-11e4-9f77-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$zDxq1hr9Weecn95dHNQLs.PFN86l26en6lpu.IJrBnRsrk2KeYUVC"], ["created_at", "2015-03-01 05:12:12.616660"], ["updated_at", "2015-03-01 05:12:12.616660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.618253"], ["user_id", "84de111e-bfd1-11e4-b869-705681abff85"], ["created_at", "2015-03-01 05:12:12.619151"], ["updated_at", "2015-03-01 05:12:12.619151"], ["token", "qf3PLuC6NOtchuRmt6HML5fM6YB0qrr3wBxBFAgI_WM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.622507"], ["updated_at", "2015-03-01 05:12:12.622507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84de111e-bfd1-11e4-b869-705681abff85' AND "clubhouse_memberships"."organization_id" = '84def4d0-bfd1-11e4-8be6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84de111e-bfd1-11e4-b869-705681abff85"], ["organization_id", "84def4d0-bfd1-11e4-8be6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.626161"], ["updated_at", "2015-03-01 05:12:12.626161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '84def4d0-bfd1-11e4-8be6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "84def4d0-bfd1-11e4-8be6-705681abff85"], ["created_at", "2015-03-01 05:12:12.629640"], ["updated_at", "2015-03-01 05:12:12.629640"], ["token", "pYVFB_EXSKB4ugjvI-JjB_7mzDHDMSdmpDHG42U6S6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:12.635248' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qf3PLuC6NOtchuRmt6HML5fM6YB0qrr3wBxBFAgI_WM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:12.636732"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:12.637763"], ["id", "84de78de-bfd1-11e4-ad74-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$T89zxgtpMiz3OUjd8LQVv.bsrySaUXPxNA8x1TB1QPkkcw5Fyq5me"], ["created_at", "2015-03-01 05:12:12.646949"], ["updated_at", "2015-03-01 05:12:12.646949"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.649813"], ["user_id", "84e2b8e0-bfd1-11e4-8c06-705681abff85"], ["created_at", "2015-03-01 05:12:12.650693"], ["updated_at", "2015-03-01 05:12:12.650693"], ["token", "qT-Hf9O18ChD5E1NCaE11dAFnX_nY-hU60EEkNRqu5o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.654927"], ["updated_at", "2015-03-01 05:12:12.654927"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84e2b8e0-bfd1-11e4-8c06-705681abff85' AND "clubhouse_memberships"."organization_id" = '84e3e724-bfd1-11e4-b283-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84e2b8e0-bfd1-11e4-8c06-705681abff85"], ["organization_id", "84e3e724-bfd1-11e4-b283-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.658552"], ["updated_at", "2015-03-01 05:12:12.658552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '84e3e724-bfd1-11e4-b283-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "84e3e724-bfd1-11e4-b283-705681abff85"], ["created_at", "2015-03-01 05:12:12.671861"], ["updated_at", "2015-03-01 05:12:12.671861"], ["token", "WjKMBxFBGyoa6Zpb1hzo34PfNUdjo3Fp3LoucjhOxIU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:12.677497' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qT-Hf9O18ChD5E1NCaE11dAFnX_nY-hU60EEkNRqu5o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:12.678859"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:12.679874"], ["id", "84e353d6-bfd1-11e4-a905-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$B.b4gvsc3T5jJr3Y647/kOLDx96znmGx5BH9j9gOouNyILMdCkYPe"], ["created_at", "2015-03-01 05:12:12.693206"], ["updated_at", "2015-03-01 05:12:12.693206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.695010"], ["user_id", "84e9c194-bfd1-11e4-a315-705681abff85"], ["created_at", "2015-03-01 05:12:12.695770"], ["updated_at", "2015-03-01 05:12:12.695770"], ["token", "4dt3_If1m5bLpWOVjh3PiVrLISsUrJOl9GI3JZY5JGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.699166"], ["updated_at", "2015-03-01 05:12:12.699166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84e9c194-bfd1-11e4-a315-705681abff85' AND "clubhouse_memberships"."organization_id" = '84eacb8e-bfd1-11e4-9d1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84e9c194-bfd1-11e4-a315-705681abff85"], ["organization_id", "84eacb8e-bfd1-11e4-9d1a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.703829"], ["updated_at", "2015-03-01 05:12:12.703829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '84eacb8e-bfd1-11e4-9d1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "84eacb8e-bfd1-11e4-9d1a-705681abff85"], ["created_at", "2015-03-01 05:12:12.707298"], ["updated_at", "2015-03-01 05:12:12.707298"], ["token", "kNApDLeSEw9BoXo85Atw-4vaDTfW0sdv1f22e6wQG3M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/84ebe7b2-bfd1-11e4-ad18-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"84ebe7b2-bfd1-11e4-ad18-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:12.712450' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4dt3_If1m5bLpWOVjh3PiVrLISsUrJOl9GI3JZY5JGs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:12.713776"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:12.714697"], ["id", "84ea28e6-bfd1-11e4-ba4e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$4OUD/blQZ629/bkEuMFhHurpQgZjevJ78Xg.TrbqlJccjtmPDXl0O"], ["created_at", "2015-03-01 05:12:12.726013"], ["updated_at", "2015-03-01 05:12:12.726013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.727615"], ["user_id", "84eec180-bfd1-11e4-9cd9-705681abff85"], ["created_at", "2015-03-01 05:12:12.728361"], ["updated_at", "2015-03-01 05:12:12.728361"], ["token", "G9n33i_JFkoSErRIJSBtbnhnzr3CQ69pIhC58qHnCtg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.731607"], ["updated_at", "2015-03-01 05:12:12.731607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84eec180-bfd1-11e4-9cd9-705681abff85' AND "clubhouse_memberships"."organization_id" = '84ef9a7e-bfd1-11e4-ade8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84eec180-bfd1-11e4-9cd9-705681abff85"], ["organization_id", "84ef9a7e-bfd1-11e4-ade8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.735082"], ["updated_at", "2015-03-01 05:12:12.735082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '84ef9a7e-bfd1-11e4-ade8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "84ef9a7e-bfd1-11e4-ade8-705681abff85"], ["created_at", "2015-03-01 05:12:12.739471"], ["updated_at", "2015-03-01 05:12:12.739471"], ["token", "8nkyKyj1jsV6qxP8osSnIN9wLg20ziCQ_mtnOJzi1NQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$wklVR8EKxx4r61jB2gsMxeb1ZQgFQJCk9.JAZf6BNiccocVVkBx3O"], ["created_at", "2015-03-01 05:12:12.753094"], ["updated_at", "2015-03-01 05:12:12.753094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.754783"], ["user_id", "84f2e45e-bfd1-11e4-993d-705681abff85"], ["created_at", "2015-03-01 05:12:12.755522"], ["updated_at", "2015-03-01 05:12:12.755522"], ["token", "-cPsvUTIV6sv88KF3SXhzcu8k7iPRYj8JvrvjA1qRzY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.760746"], ["updated_at", "2015-03-01 05:12:12.760746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84f2e45e-bfd1-11e4-993d-705681abff85' AND "clubhouse_memberships"."organization_id" = '84f40b22-bfd1-11e4-acf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84f2e45e-bfd1-11e4-993d-705681abff85"], ["organization_id", "84f40b22-bfd1-11e4-acf3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.763978"], ["updated_at", "2015-03-01 05:12:12.763978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '84f40b22-bfd1-11e4-acf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "84f40b22-bfd1-11e4-acf3-705681abff85"], ["created_at", "2015-03-01 05:12:12.767446"], ["updated_at", "2015-03-01 05:12:12.767446"], ["token", "VNv0Ng0WdUSajxYIS683kfen9HBT058Pv7CmjgM_eJw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/84f518be-bfd1-11e4-89a4-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"84f518be-bfd1-11e4-89a4-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:12.772643' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-cPsvUTIV6sv88KF3SXhzcu8k7iPRYj8JvrvjA1qRzY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:12.774003"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:12.775010"], ["id", "84f35a24-bfd1-11e4-aa9b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$714yyBej1SdIvvLHZTa4COcY17sQNyJonA4WHod6V/yLWXHcpeVXe"], ["created_at", "2015-03-01 05:12:12.783515"], ["updated_at", "2015-03-01 05:12:12.783515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.785509"], ["user_id", "84f793b4-bfd1-11e4-b55e-705681abff85"], ["created_at", "2015-03-01 05:12:12.786300"], ["updated_at", "2015-03-01 05:12:12.786300"], ["token", "L0LPDiwlJXdS6TgoJt7RDYLJdAw0YiVdcFQXOP1sl2g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.789569"], ["updated_at", "2015-03-01 05:12:12.789569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84f793b4-bfd1-11e4-b55e-705681abff85' AND "clubhouse_memberships"."organization_id" = '84f871c6-bfd1-11e4-9b5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84f793b4-bfd1-11e4-b55e-705681abff85"], ["organization_id", "84f871c6-bfd1-11e4-9b5b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.792851"], ["updated_at", "2015-03-01 05:12:12.792851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '84f871c6-bfd1-11e4-9b5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "84f871c6-bfd1-11e4-9b5b-705681abff85"], ["created_at", "2015-03-01 05:12:12.796199"], ["updated_at", "2015-03-01 05:12:12.796199"], ["token", "3AWL78zYvyck8askDXkSr_iFnG1MM1qyPytMX2iEPkg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$OooxegH4LobOfoTtfxnpDuqQqWYq42ia.BP/qyHeP5zXwEhyVKd7W"], ["created_at", "2015-03-01 05:12:12.827119"], ["updated_at", "2015-03-01 05:12:12.827119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.830532"], ["updated_at", "2015-03-01 05:12:12.830532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84fe2e4a-bfd1-11e4-92c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '84feb18a-bfd1-11e4-893c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "84fe2e4a-bfd1-11e4-92c3-705681abff85"], ["organization_id", "84feb18a-bfd1-11e4-893c-705681abff85"], ["created_at", "2015-03-01 05:12:12.833573"], ["updated_at", "2015-03-01 05:12:12.833573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "84fe2e4a-bfd1-11e4-92c3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "84feb18a-bfd1-11e4-893c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84fe2e4a-bfd1-11e4-92c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '84feb18a-bfd1-11e4-893c-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "84feb18a-bfd1-11e4-893c-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84fe2e4a-bfd1-11e4-92c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '84feb18a-bfd1-11e4-893c-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$oPkL2rFZqQyPKsPbQXMk1O/syqc9bCld933a8UOTvg5QBvDssWorC"], ["created_at", "2015-03-01 05:12:12.855662"], ["updated_at", "2015-03-01 05:12:12.855662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$EbTNZGOKxbz.hyQPgr6fsurN8fR1D3WKbzsp266va8R1g/zmyne2e"], ["created_at", "2015-03-01 05:12:12.860703"], ["updated_at", "2015-03-01 05:12:12.860703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.862208"], ["user_id", "85029fb6-bfd1-11e4-a7b1-705681abff85"], ["created_at", "2015-03-01 05:12:12.863034"], ["updated_at", "2015-03-01 05:12:12.863034"], ["token", "fqiPzByOjldOr1UfzAF1hY_R-lOXY2r_m0uR4aSZM3g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.868677"], ["updated_at", "2015-03-01 05:12:12.868677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85029fb6-bfd1-11e4-a7b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '850484d4-bfd1-11e4-82fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85029fb6-bfd1-11e4-a7b1-705681abff85"], ["organization_id", "850484d4-bfd1-11e4-82fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.872268"], ["updated_at", "2015-03-01 05:12:12.872268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85034ab0-bfd1-11e4-9d68-705681abff85' AND "clubhouse_memberships"."organization_id" = '850484d4-bfd1-11e4-82fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85034ab0-bfd1-11e4-9d68-705681abff85"], ["organization_id", "850484d4-bfd1-11e4-82fd-705681abff85"], ["created_at", "2015-03-01 05:12:12.875359"], ["updated_at", "2015-03-01 05:12:12.875359"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$3RrDaYJWFxlVtx5aDS0kweAzrzMP7IaLE2LqsxEbeD1kX6orPPKRq"], ["created_at", "2015-03-01 05:12:12.879731"], ["updated_at", "2015-03-01 05:12:12.879731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.881213"], ["user_id", "85063284-bfd1-11e4-b614-705681abff85"], ["created_at", "2015-03-01 05:12:12.881948"], ["updated_at", "2015-03-01 05:12:12.881948"], ["token", "3RnhOqf7ACTkFJ5-g3Iq2aKGIpD-TMrfPg7neLhJ-z8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '850484d4-bfd1-11e4-82fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "850484d4-bfd1-11e4-82fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.885966"], ["updated_at", "2015-03-01 05:12:12.885966"], ["token", "3GCmPEgDyvYWqNVmCt-MvZVNf1fRdxkwEubXbnkwAnM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$BJ6vraZy2h.4u13qeW.EuuFrYD33n414HZZJv72Va4K65cMlYNX.2"], ["created_at", "2015-03-01 05:12:12.907182"], ["updated_at", "2015-03-01 05:12:12.907182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$gYZWOFMlQ.DlaxfDF8iqeOjTnTIqT5oaMQ8l0H9ZAm0tTcZqaj8Na"], ["created_at", "2015-03-01 05:12:12.911451"], ["updated_at", "2015-03-01 05:12:12.911451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.912974"], ["user_id", "850a67f0-bfd1-11e4-8148-705681abff85"], ["created_at", "2015-03-01 05:12:12.913741"], ["updated_at", "2015-03-01 05:12:12.913741"], ["token", "kaIFWH5BApF-9R16mhvqi-nxV97Bw3PoMZyn0Wxj5Hk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.916994"], ["updated_at", "2015-03-01 05:12:12.916994"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '850a67f0-bfd1-11e4-8148-705681abff85' AND "clubhouse_memberships"."organization_id" = '850be198-bfd1-11e4-af63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "850a67f0-bfd1-11e4-8148-705681abff85"], ["organization_id", "850be198-bfd1-11e4-af63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.920283"], ["updated_at", "2015-03-01 05:12:12.920283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '850b0a0c-bfd1-11e4-9181-705681abff85' AND "clubhouse_memberships"."organization_id" = '850be198-bfd1-11e4-af63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "850b0a0c-bfd1-11e4-9181-705681abff85"], ["organization_id", "850be198-bfd1-11e4-af63-705681abff85"], ["created_at", "2015-03-01 05:12:12.923473"], ["updated_at", "2015-03-01 05:12:12.923473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Fm07zGIVq5dkCQP4FiqZJOIY8A2XmRdPyX5g4FqZAWPsQzvfnvc82"], ["created_at", "2015-03-01 05:12:12.927831"], ["updated_at", "2015-03-01 05:12:12.927831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.929340"], ["user_id", "850d8a7a-bfd1-11e4-aa67-705681abff85"], ["created_at", "2015-03-01 05:12:12.930081"], ["updated_at", "2015-03-01 05:12:12.930081"], ["token", "8xGxOD14ZrONzPJCnqmGn_E_8gyPohMLA5muWomHMdc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '850be198-bfd1-11e4-af63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "850be198-bfd1-11e4-af63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.933670"], ["updated_at", "2015-03-01 05:12:12.933670"], ["token", "-Nbf8ANc3o-9nM0-dzUQSaJVvTZytfkadn9Wn40AChk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:12.939338' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8xGxOD14ZrONzPJCnqmGn_E_8gyPohMLA5muWomHMdc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:12.940965"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:12.942084"], ["id", "850de84e-bfd1-11e4-821a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$YUTQopnUwQAlSJ0tQ6XT2.Q8/GiSQLJVfqEvGov8L460YYcVlc/oy"], ["created_at", "2015-03-01 05:12:12.956055"], ["updated_at", "2015-03-01 05:12:12.956055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$WSSv3EdvbHcoCRim3gss1uX382o7IcxiPyXlHXTypFJRESZODxaNK"], ["created_at", "2015-03-01 05:12:12.960969"], ["updated_at", "2015-03-01 05:12:12.960969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.962673"], ["user_id", "8511e980-bfd1-11e4-87fb-705681abff85"], ["created_at", "2015-03-01 05:12:12.963442"], ["updated_at", "2015-03-01 05:12:12.963442"], ["token", "1vE0QiR0Z8aXhMeSmEZY0TaDE2Hg30xOih9Od-ppraM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:12.966704"], ["updated_at", "2015-03-01 05:12:12.966704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8511e980-bfd1-11e4-87fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '85137a20-bfd1-11e4-bd24-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8511e980-bfd1-11e4-87fb-705681abff85"], ["organization_id", "85137a20-bfd1-11e4-bd24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.971164"], ["updated_at", "2015-03-01 05:12:12.971164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85129dd0-bfd1-11e4-92e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '85137a20-bfd1-11e4-bd24-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85129dd0-bfd1-11e4-92e0-705681abff85"], ["organization_id", "85137a20-bfd1-11e4-bd24-705681abff85"], ["created_at", "2015-03-01 05:12:12.975008"], ["updated_at", "2015-03-01 05:12:12.975008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$sfxdQThYSDzUm8hiMoPdB.cNq1Z60iuSEsvMQsGYkbPx9qCdw0obK"], ["created_at", "2015-03-01 05:12:12.979525"], ["updated_at", "2015-03-01 05:12:12.979525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:12.981132"], ["user_id", "85156f42-bfd1-11e4-8e2d-705681abff85"], ["created_at", "2015-03-01 05:12:12.981932"], ["updated_at", "2015-03-01 05:12:12.981932"], ["token", "ALRuWiATKoIcea7EYHowqFrqHQbDVbTDS9E8o_tcVAk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '85137a20-bfd1-11e4-bd24-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "85137a20-bfd1-11e4-bd24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:12.986279"], ["updated_at", "2015-03-01 05:12:12.986279"], ["token", "2VdKQVUKHG_8YBGXRWfGLvMhFU_Oe3QNMzjjjy3i6u4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:12:12 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"2VdKQVUKHG_8YBGXRWfGLvMhFU_Oe3QNMzjjjy3i6u4", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.000175' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ALRuWiATKoIcea7EYHowqFrqHQbDVbTDS9E8o_tcVAk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.001632"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.002567"], ["id", "8515d3c4-bfd1-11e4-90d5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$mQGSpaKKCZTgF/AnADeZKOJcZTP/y1dwakKVjMWFm8ypUf2mejdJm"], ["created_at", "2015-03-01 05:12:13.011316"], ["updated_at", "2015-03-01 05:12:13.011316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$LnJxRC1fJF2XeyfO6QY2kuv4ZIJULdv2qm1xhSZoCH2x6LagueH7W"], ["created_at", "2015-03-01 05:12:13.015801"], ["updated_at", "2015-03-01 05:12:13.015801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.017335"], ["user_id", "851a4b20-bfd1-11e4-aab0-705681abff85"], ["created_at", "2015-03-01 05:12:13.018133"], ["updated_at", "2015-03-01 05:12:13.018133"], ["token", "P5rA5gJ_S-akGhbsRQ4ioeVhpbnvLKXDkYByo3OfkW4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.021922"], ["updated_at", "2015-03-01 05:12:13.021922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '851a4b20-bfd1-11e4-aab0-705681abff85' AND "clubhouse_memberships"."organization_id" = '851be6e2-bfd1-11e4-90e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "851a4b20-bfd1-11e4-aab0-705681abff85"], ["organization_id", "851be6e2-bfd1-11e4-90e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.025172"], ["updated_at", "2015-03-01 05:12:13.025172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '851af642-bfd1-11e4-af9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '851be6e2-bfd1-11e4-90e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "851af642-bfd1-11e4-af9b-705681abff85"], ["organization_id", "851be6e2-bfd1-11e4-90e7-705681abff85"], ["created_at", "2015-03-01 05:12:13.028106"], ["updated_at", "2015-03-01 05:12:13.028106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/851c63c4-bfd1-11e4-8875-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"851c63c4-bfd1-11e4-8875-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.032625' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "P5rA5gJ_S-akGhbsRQ4ioeVhpbnvLKXDkYByo3OfkW4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.034427"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.036212"], ["id", "851b5e7a-bfd1-11e4-833b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$BAjT8PRr4I/XV0qSrLwoMOAncn16IqRILjUy30GCHNu2mUXZujFn2"], ["created_at", "2015-03-01 05:12:13.046674"], ["updated_at", "2015-03-01 05:12:13.046674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$r.cLU9Z.EBrMzXczjN7zKehIMAHQ8ikvQnbJpZ72mhSnK0iVsEDli"], ["created_at", "2015-03-01 05:12:13.051375"], ["updated_at", "2015-03-01 05:12:13.051375"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.053278"], ["user_id", "851fae26-bfd1-11e4-b07e-705681abff85"], ["created_at", "2015-03-01 05:12:13.054421"], ["updated_at", "2015-03-01 05:12:13.054421"], ["token", "w6-jCiZbelyQjqZENiFokVp-i3Gj73HQSGXOwnOzwsU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.057896"], ["updated_at", "2015-03-01 05:12:13.057896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '851fae26-bfd1-11e4-b07e-705681abff85' AND "clubhouse_memberships"."organization_id" = '85216284-bfd1-11e4-a624-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "851fae26-bfd1-11e4-b07e-705681abff85"], ["organization_id", "85216284-bfd1-11e4-a624-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.061275"], ["updated_at", "2015-03-01 05:12:13.061275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85206974-bfd1-11e4-b9c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '85216284-bfd1-11e4-a624-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85206974-bfd1-11e4-b9c7-705681abff85"], ["organization_id", "85216284-bfd1-11e4-a624-705681abff85"], ["created_at", "2015-03-01 05:12:13.064410"], ["updated_at", "2015-03-01 05:12:13.064410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$2WntpxzNu2.XK.t/MyiTi.x5qw8btpdIx/WIvs2yvT1RXIP1dtx/e"], ["created_at", "2015-03-01 05:12:13.076289"], ["updated_at", "2015-03-01 05:12:13.076289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$.H.OTgAIxXDj32zw.nYw5uxVAobbwA.aBqYVCt4Br/tU78BcFFcO."], ["created_at", "2015-03-01 05:12:13.080815"], ["updated_at", "2015-03-01 05:12:13.080815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.082634"], ["user_id", "85243338-bfd1-11e4-9c4c-705681abff85"], ["created_at", "2015-03-01 05:12:13.083407"], ["updated_at", "2015-03-01 05:12:13.083407"], ["token", "GnP-VuhPGOZuY1Q6pIM1DyXHSE6URoWqBg39HAMc0u8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.086912"], ["updated_at", "2015-03-01 05:12:13.086912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85243338-bfd1-11e4-9c4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8525d5da-bfd1-11e4-b965-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85243338-bfd1-11e4-9c4c-705681abff85"], ["organization_id", "8525d5da-bfd1-11e4-b965-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.090794"], ["updated_at", "2015-03-01 05:12:13.090794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8524ea62-bfd1-11e4-aa46-705681abff85' AND "clubhouse_memberships"."organization_id" = '8525d5da-bfd1-11e4-b965-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8524ea62-bfd1-11e4-aa46-705681abff85"], ["organization_id", "8525d5da-bfd1-11e4-b965-705681abff85"], ["created_at", "2015-03-01 05:12:13.093822"], ["updated_at", "2015-03-01 05:12:13.093822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$zkh1vDL3MyLFYkB4HrWyS.zw4PX7weXrHMzZdy9XTbcq.n.fxP7UC"], ["created_at", "2015-03-01 05:12:13.106321"], ["updated_at", "2015-03-01 05:12:13.106321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$EN0RvhSzosMLiy.MNhzjn.0wKhMxseFsccUkosxBg0wn2aCpi6dAy"], ["created_at", "2015-03-01 05:12:13.110629"], ["updated_at", "2015-03-01 05:12:13.110629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.112100"], ["user_id", "8528ca06-bfd1-11e4-94f6-705681abff85"], ["created_at", "2015-03-01 05:12:13.112900"], ["updated_at", "2015-03-01 05:12:13.112900"], ["token", "orNVzbX-nku9Cj407UbXhCvWPWDOsPiDYcX87gpLxjk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.116200"], ["updated_at", "2015-03-01 05:12:13.116200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8528ca06-bfd1-11e4-94f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '852a4886-bfd1-11e4-99b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8528ca06-bfd1-11e4-94f6-705681abff85"], ["organization_id", "852a4886-bfd1-11e4-99b2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.119975"], ["updated_at", "2015-03-01 05:12:13.119975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85296d6c-bfd1-11e4-bc6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '852a4886-bfd1-11e4-99b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85296d6c-bfd1-11e4-bc6b-705681abff85"], ["organization_id", "852a4886-bfd1-11e4-99b2-705681abff85"], ["created_at", "2015-03-01 05:12:13.123550"], ["updated_at", "2015-03-01 05:12:13.123550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/852aea7a-bfd1-11e4-bca8-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"852aea7a-bfd1-11e4-bca8-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.128334' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "orNVzbX-nku9Cj407UbXhCvWPWDOsPiDYcX87gpLxjk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.129656"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.130598"], ["id", "8529ceba-bfd1-11e4-bcf0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$LVt2JXeea4B6EIL.Ee8gGeepGeQxmq8MfAOtfU0Dy6gJXvubGwxUK"], ["created_at", "2015-03-01 05:12:13.144471"], ["updated_at", "2015-03-01 05:12:13.144471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$05ANSM8QM8wgIIkIwBGKJeeiMJOsof0RbTYuleA9hYrmvOc3oPs4i"], ["created_at", "2015-03-01 05:12:13.149187"], ["updated_at", "2015-03-01 05:12:13.149187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.150729"], ["user_id", "852ea322-bfd1-11e4-a946-705681abff85"], ["created_at", "2015-03-01 05:12:13.151506"], ["updated_at", "2015-03-01 05:12:13.151506"], ["token", "n70AmE7Df0AgE6bDjW7iIzWawtlz_nDiuSVmJFFTl0I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.155833"], ["updated_at", "2015-03-01 05:12:13.155833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '852ea322-bfd1-11e4-a946-705681abff85' AND "clubhouse_memberships"."organization_id" = '8530550a-bfd1-11e4-91b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "852ea322-bfd1-11e4-a946-705681abff85"], ["organization_id", "8530550a-bfd1-11e4-91b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.159087"], ["updated_at", "2015-03-01 05:12:13.159087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '852f51dc-bfd1-11e4-8f68-705681abff85' AND "clubhouse_memberships"."organization_id" = '8530550a-bfd1-11e4-91b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "852f51dc-bfd1-11e4-8f68-705681abff85"], ["organization_id", "8530550a-bfd1-11e4-91b4-705681abff85"], ["created_at", "2015-03-01 05:12:13.162078"], ["updated_at", "2015-03-01 05:12:13.162078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/8531474e-bfd1-11e4-b738-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"8531474e-bfd1-11e4-b738-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.166963' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n70AmE7Df0AgE6bDjW7iIzWawtlz_nDiuSVmJFFTl0I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.168472"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.169529"], ["id", "852fc55e-bfd1-11e4-81f9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$julLHLSkdI6zE17k9uqbiOyIDCId9DxvvbT/ploWkpUfrmX58BYDy"], ["created_at", "2015-03-01 05:12:13.178821"], ["updated_at", "2015-03-01 05:12:13.178821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$BfeWEl3FhTzRgvFPS0Mdc.b64plUMmfLVJjfrb1lC4vSjICRH9UsG"], ["created_at", "2015-03-01 05:12:13.183086"], ["updated_at", "2015-03-01 05:12:13.183086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.184570"], ["user_id", "8533d86a-bfd1-11e4-8658-705681abff85"], ["created_at", "2015-03-01 05:12:13.185424"], ["updated_at", "2015-03-01 05:12:13.185424"], ["token", "czXL1W0rmMZuXJ5xPfP9im5K563PIznoRfMPHcXqT2Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.189741"], ["updated_at", "2015-03-01 05:12:13.189741"]]  (14.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8533d86a-bfd1-11e4-8658-705681abff85' AND "clubhouse_memberships"."organization_id" = '853582fa-bfd1-11e4-9217-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8533d86a-bfd1-11e4-8658-705681abff85"], ["organization_id", "853582fa-bfd1-11e4-9217-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.241951"], ["updated_at", "2015-03-01 05:12:13.241951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85347c2a-bfd1-11e4-8be2-705681abff85' AND "clubhouse_memberships"."organization_id" = '853582fa-bfd1-11e4-9217-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85347c2a-bfd1-11e4-8be2-705681abff85"], ["organization_id", "853582fa-bfd1-11e4-9217-705681abff85"], ["created_at", "2015-03-01 05:12:13.247782"], ["updated_at", "2015-03-01 05:12:13.247782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.259808' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "czXL1W0rmMZuXJ5xPfP9im5K563PIznoRfMPHcXqT2Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.262254"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.263902"], ["id", "8534e570-bfd1-11e4-8b77-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 11ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$dPexxaFpHFha.9C2UkWTou3tlmXfnAS4tiEDVLhYZxkoApPGjmfka"], ["created_at", "2015-03-01 05:12:13.278989"], ["updated_at", "2015-03-01 05:12:13.278989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$rbiCtV7gHGSDZBwzKcFh3eTWRgi1uJQJwvukUj/QgzQJPrXDBkXdK"], ["created_at", "2015-03-01 05:12:13.285315"], ["updated_at", "2015-03-01 05:12:13.285315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.287697"], ["user_id", "8543340e-bfd1-11e4-b3a7-705681abff85"], ["created_at", "2015-03-01 05:12:13.288487"], ["updated_at", "2015-03-01 05:12:13.288487"], ["token", "20bCN4beiKxvCNcw8jfR3V9DtChJq0oAA1VAyzSnUwM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.292198"], ["updated_at", "2015-03-01 05:12:13.292198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8543340e-bfd1-11e4-b3a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '85452552-bfd1-11e4-8736-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8543340e-bfd1-11e4-b3a7-705681abff85"], ["organization_id", "85452552-bfd1-11e4-8736-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.295681"], ["updated_at", "2015-03-01 05:12:13.295681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85442a80-bfd1-11e4-b865-705681abff85' AND "clubhouse_memberships"."organization_id" = '85452552-bfd1-11e4-8736-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85442a80-bfd1-11e4-b865-705681abff85"], ["organization_id", "85452552-bfd1-11e4-8736-705681abff85"], ["created_at", "2015-03-01 05:12:13.298873"], ["updated_at", "2015-03-01 05:12:13.298873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.303394' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "20bCN4beiKxvCNcw8jfR3V9DtChJq0oAA1VAyzSnUwM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.304789"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.305785"], ["id", "8544a1cc-bfd1-11e4-927d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$ni1hUJK2VQsjOhI690uGye6uRn4zCTmFBCosnut/RZsAI3CvhSRWS"], ["created_at", "2015-03-01 05:12:13.314834"], ["updated_at", "2015-03-01 05:12:13.314834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$/wL9ZjmUl7/P7PVU.hspcOcZy3flBSxNVqk28DkSqx5pq574Kz9aa"], ["created_at", "2015-03-01 05:12:13.319045"], ["updated_at", "2015-03-01 05:12:13.319045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.321013"], ["user_id", "8548991c-bfd1-11e4-a348-705681abff85"], ["created_at", "2015-03-01 05:12:13.321842"], ["updated_at", "2015-03-01 05:12:13.321842"], ["token", "N3Zll5bIKtPnMaWX1vQYUsNtQq6hi-k-L_biSnfbU4s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.325395"], ["updated_at", "2015-03-01 05:12:13.325395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8548991c-bfd1-11e4-a348-705681abff85' AND "clubhouse_memberships"."organization_id" = '854a331c-bfd1-11e4-a0e6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8548991c-bfd1-11e4-a348-705681abff85"], ["organization_id", "854a331c-bfd1-11e4-a0e6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.328662"], ["updated_at", "2015-03-01 05:12:13.328662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '854948b2-bfd1-11e4-9ba9-705681abff85' AND "clubhouse_memberships"."organization_id" = '854a331c-bfd1-11e4-a0e6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "854948b2-bfd1-11e4-9ba9-705681abff85"], ["organization_id", "854a331c-bfd1-11e4-a0e6-705681abff85"], ["created_at", "2015-03-01 05:12:13.331730"], ["updated_at", "2015-03-01 05:12:13.331730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/854b2a92-bfd1-11e4-9aae-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"854b2a92-bfd1-11e4-9aae-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.336503' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N3Zll5bIKtPnMaWX1vQYUsNtQq6hi-k-L_biSnfbU4s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.337919"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.338909"], ["id", "8549b680-bfd1-11e4-a4a7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$RwhlAdTqHGh9l/Sp3S4N9.0Olc8d8rplYkyBaHFP7IMbeiuVon8f2"], ["created_at", "2015-03-01 05:12:13.348824"], ["updated_at", "2015-03-01 05:12:13.348824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$Nkck4F6EzGJiBu2qwj0esOJcMR1CRlM./GT6MzVnxgZiNMiWrviPe"], ["created_at", "2015-03-01 05:12:13.353723"], ["updated_at", "2015-03-01 05:12:13.353723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.355469"], ["user_id", "854dcd10-bfd1-11e4-ad39-705681abff85"], ["created_at", "2015-03-01 05:12:13.356257"], ["updated_at", "2015-03-01 05:12:13.356257"], ["token", "VQ-1nZ31M3HOR6wDL0NQR4zu-adnbUpEL9pZ9bnjrI0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.359569"], ["updated_at", "2015-03-01 05:12:13.359569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '854dcd10-bfd1-11e4-ad39-705681abff85' AND "clubhouse_memberships"."organization_id" = '854f6c6a-bfd1-11e4-be45-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "854dcd10-bfd1-11e4-ad39-705681abff85"], ["organization_id", "854f6c6a-bfd1-11e4-be45-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.362971"], ["updated_at", "2015-03-01 05:12:13.362971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '854e8c14-bfd1-11e4-b52a-705681abff85' AND "clubhouse_memberships"."organization_id" = '854f6c6a-bfd1-11e4-be45-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "854e8c14-bfd1-11e4-b52a-705681abff85"], ["organization_id", "854f6c6a-bfd1-11e4-be45-705681abff85"], ["created_at", "2015-03-01 05:12:13.366112"], ["updated_at", "2015-03-01 05:12:13.366112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$i4wRkaotZmpPOUS25D05lOiRbRsgK4yRElIMg7zhDeGqD9nGnJ2Uq"], ["created_at", "2015-03-01 05:12:13.384850"], ["updated_at", "2015-03-01 05:12:13.384850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$cryMdbDbAQ/Vbhl6DhMCl.YxAbmgkDmnV1JviuZvgH5a9DgVe89oK"], ["created_at", "2015-03-01 05:12:13.389874"], ["updated_at", "2015-03-01 05:12:13.389874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.391817"], ["user_id", "855349e8-bfd1-11e4-bf02-705681abff85"], ["created_at", "2015-03-01 05:12:13.392607"], ["updated_at", "2015-03-01 05:12:13.392607"], ["token", "roWxo8FAs0PlOxzXi6X8-0Iml3fJqH64P4JXP5CVWiQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.395978"], ["updated_at", "2015-03-01 05:12:13.395978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '855349e8-bfd1-11e4-bf02-705681abff85' AND "clubhouse_memberships"."organization_id" = '8554f810-bfd1-11e4-8676-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "855349e8-bfd1-11e4-bf02-705681abff85"], ["organization_id", "8554f810-bfd1-11e4-8676-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.399174"], ["updated_at", "2015-03-01 05:12:13.399174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85540dba-bfd1-11e4-b41a-705681abff85' AND "clubhouse_memberships"."organization_id" = '8554f810-bfd1-11e4-8676-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85540dba-bfd1-11e4-b41a-705681abff85"], ["organization_id", "8554f810-bfd1-11e4-8676-705681abff85"], ["created_at", "2015-03-01 05:12:13.402284"], ["updated_at", "2015-03-01 05:12:13.402284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$uH7mQH0.QjDK1nD/Bnqgb.hopND1d7Rm/qVyKVwCPKy.nUrWorp86"], ["created_at", "2015-03-01 05:12:13.416763"], ["updated_at", "2015-03-01 05:12:13.416763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$wub.Kd2ZDq.fKR2e9p/.tOg3nEsr1jzigwvAUYUf8KUFQko6L5voa"], ["created_at", "2015-03-01 05:12:13.421532"], ["updated_at", "2015-03-01 05:12:13.421532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.423143"], ["user_id", "85582ba2-bfd1-11e4-bb40-705681abff85"], ["created_at", "2015-03-01 05:12:13.423923"], ["updated_at", "2015-03-01 05:12:13.423923"], ["token", "5BrgLkoYCV_mzawuZ2Dp2uCe5VCQH2j47u8i4tUeyLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.428477"], ["updated_at", "2015-03-01 05:12:13.428477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85582ba2-bfd1-11e4-bb40-705681abff85' AND "clubhouse_memberships"."organization_id" = '8559f2f2-bfd1-11e4-8875-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85582ba2-bfd1-11e4-bb40-705681abff85"], ["organization_id", "8559f2f2-bfd1-11e4-8875-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.431926"], ["updated_at", "2015-03-01 05:12:13.431926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8558e10a-bfd1-11e4-9c48-705681abff85' AND "clubhouse_memberships"."organization_id" = '8559f2f2-bfd1-11e4-8875-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8558e10a-bfd1-11e4-9c48-705681abff85"], ["organization_id", "8559f2f2-bfd1-11e4-8875-705681abff85"], ["created_at", "2015-03-01 05:12:13.435018"], ["updated_at", "2015-03-01 05:12:13.435018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/855a7506-bfd1-11e4-ba1f-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"855a7506-bfd1-11e4-ba1f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.440061' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5BrgLkoYCV_mzawuZ2Dp2uCe5VCQH2j47u8i4tUeyLQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.442084"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.443154"], ["id", "85594d34-bfd1-11e4-8233-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$Jij9P0kJXZY8mQydplzmxur20dUZEkbjibEhahHnElyUEGxFQG.ea"], ["created_at", "2015-03-01 05:12:13.456044"], ["updated_at", "2015-03-01 05:12:13.456044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$8acVJQSAxuN9QVi66qmy4.H040U0GpZuDTlDrSA47wWiSIn3jjlvq"], ["created_at", "2015-03-01 05:12:13.460460"], ["updated_at", "2015-03-01 05:12:13.460460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.461951"], ["user_id", "855e2ac0-bfd1-11e4-81ab-705681abff85"], ["created_at", "2015-03-01 05:12:13.462729"], ["updated_at", "2015-03-01 05:12:13.462729"], ["token", "RlkcITSZH_9thBCF2NJay8hlYWxx9rIEPGT5xbYKD6Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.465944"], ["updated_at", "2015-03-01 05:12:13.465944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '855e2ac0-bfd1-11e4-81ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '855fa436-bfd1-11e4-bc3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "855e2ac0-bfd1-11e4-81ab-705681abff85"], ["organization_id", "855fa436-bfd1-11e4-bc3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:13.469207"], ["updated_at", "2015-03-01 05:12:13.469207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '855ecec6-bfd1-11e4-b9cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '855fa436-bfd1-11e4-bc3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "855ecec6-bfd1-11e4-b9cd-705681abff85"], ["organization_id", "855fa436-bfd1-11e4-bc3f-705681abff85"], ["created_at", "2015-03-01 05:12:13.472499"], ["updated_at", "2015-03-01 05:12:13.472499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/8560acbe-bfd1-11e4-a57a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8560acbe-bfd1-11e4-a57a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.477777' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RlkcITSZH_9thBCF2NJay8hlYWxx9rIEPGT5xbYKD6Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.479153"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.480115"], ["id", "855f2e8e-bfd1-11e4-a7c7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.694705"], ["updated_at", "2015-03-01 05:12:13.694705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '85829022-bfd1-11e4-aa3c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "85829022-bfd1-11e4-aa3c-705681abff85"], ["created_at", "2015-03-01 05:12:13.698897"], ["updated_at", "2015-03-01 05:12:13.698897"], ["token", "2Y4QbDXQm_hmjQ0ltG9uNeR4Mnf2FOZ1m_bQjRmj9pE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) Clubhouse::Mailer#invitation: processed outbound mail in 18.4ms Sent mail to john@example.com (7.8ms) Date: Sat, 28 Feb 2015 21:12:13 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fadb1290_132203fd5a9c65bec419ab@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/2Y4QbDXQm_hmjQ0ltG9uNeR4Mnf2FOZ1m_bQjRmj9pE If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.734610"], ["updated_at", "2015-03-01 05:12:13.734610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8588a89a-bfd1-11e4-8a79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8588a89a-bfd1-11e4-8a79-705681abff85"], ["created_at", "2015-03-01 05:12:13.738233"], ["updated_at", "2015-03-01 05:12:13.738233"], ["token", "NMGtW1tpEfN_ZE5EinPZpGtQtV6Z9c7LeKOFNRfszyc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 21:12:13 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fadb53a2_132203fd5a9c65bec420bd@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/NMGtW1tpEfN_ZE5EinPZpGtQtV6Z9c7LeKOFNRfszyc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.748576"], ["updated_at", "2015-03-01 05:12:13.748576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '858ac8f0-bfd1-11e4-8a67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "858ac8f0-bfd1-11e4-8a67-705681abff85"], ["created_at", "2015-03-01 05:12:13.754171"], ["updated_at", "2015-03-01 05:12:13.754171"], ["token", "TOV2lXwdEzLZVHRMpSOe0dTyJbdwVarRZWoTVhj5OWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 21:12:13 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fadb8feb_132203fd5a9c65bec4218e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/TOV2lXwdEzLZVHRMpSOe0dTyJbdwVarRZWoTVhj5OWs If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.762500"], ["updated_at", "2015-03-01 05:12:13.762500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '858ce7e8-bfd1-11e4-8a41-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "858ce7e8-bfd1-11e4-8a41-705681abff85"], ["created_at", "2015-03-01 05:12:13.766549"], ["updated_at", "2015-03-01 05:12:13.766549"], ["token", "MC8VVu5qAplTuqDdI6budIecOPCbd4OgGmoTQHqdyyQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (4.6ms) Date: Sat, 28 Feb 2015 21:12:13 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fadbc41d_132203fd5a9c65bec4224a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/MC8VVu5qAplTuqDdI6budIecOPCbd4OgGmoTQHqdyyQ If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.784913"], ["updated_at", "2015-03-01 05:12:13.784913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '859051c6-bfd1-11e4-ba65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "859051c6-bfd1-11e4-ba65-705681abff85"], ["created_at", "2015-03-01 05:12:13.788162"], ["updated_at", "2015-03-01 05:12:13.788162"], ["token", "dh6IqQnyJOQpCL9bGIUkcbkKvm7m4XWateXHM70HTRA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.801289"], ["updated_at", "2015-03-01 05:12:13.801289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '8592d14e-bfd1-11e4-b354-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "8592d14e-bfd1-11e4-b354-705681abff85"], ["created_at", "2015-03-01 05:12:13.804134"], ["updated_at", "2015-03-01 05:12:13.804134"], ["token", "YYLBT21nNeGUnrJYQy3PvfzY96hNuwaZJ8KauWApHrA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8592d14e-bfd1-11e4-b354-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '8592d14e-bfd1-11e4-b354-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8592d14e-bfd1-11e4-b354-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '8592d14e-bfd1-11e4-b354-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.822567"], ["updated_at", "2015-03-01 05:12:13.822567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.831287"], ["updated_at", "2015-03-01 05:12:13.831287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.854912"], ["updated_at", "2015-03-01 05:12:13.854912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.859878"], ["updated_at", "2015-03-01 05:12:13.859878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "859bc18c-bfd1-11e4-a262-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$dov23Qmdzy0F0UKaOaGBseta688EFsD/cepM2dSqyNFJZ7PBGDALO"], ["created_at", "2015-03-01 05:12:13.866704"], ["updated_at", "2015-03-01 05:12:13.866704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.868270"], ["user_id", "859ccee2-bfd1-11e4-a0f0-705681abff85"], ["created_at", "2015-03-01 05:12:13.869036"], ["updated_at", "2015-03-01 05:12:13.869036"], ["token", "LT4UvINgEfBS8MeieEvqLPBIoUVAtMQ1BtDE9dKBbNg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.872523"], ["updated_at", "2015-03-01 05:12:13.872523"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '859ccee2-bfd1-11e4-a0f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '859db442-bfd1-11e4-ad48-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "859ccee2-bfd1-11e4-a0f0-705681abff85"], ["organization_id", "859db442-bfd1-11e4-ad48-705681abff85"], ["created_at", "2015-03-01 05:12:13.876890"], ["updated_at", "2015-03-01 05:12:13.876890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$qEvGbQB0fJqbAoGJ.7I14Obm8ntus0jnCvMctYEE8aZEVffEM0Y.q"], ["created_at", "2015-03-01 05:12:13.896364"], ["updated_at", "2015-03-01 05:12:13.896364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.897934"], ["user_id", "85a154d0-bfd1-11e4-b399-705681abff85"], ["created_at", "2015-03-01 05:12:13.898651"], ["updated_at", "2015-03-01 05:12:13.898651"], ["token", "O6EQ9kinlUih8N8y2rV36_3zc1GpnBZQXZWB_Em13rM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.901822"], ["updated_at", "2015-03-01 05:12:13.901822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85a154d0-bfd1-11e4-b399-705681abff85' AND "clubhouse_memberships"."organization_id" = '85a22694-bfd1-11e4-9a96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85a154d0-bfd1-11e4-b399-705681abff85"], ["organization_id", "85a22694-bfd1-11e4-9a96-705681abff85"], ["created_at", "2015-03-01 05:12:13.904927"], ["updated_at", "2015-03-01 05:12:13.904927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.909366' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "O6EQ9kinlUih8N8y2rV36_3zc1GpnBZQXZWB_Em13rM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.910746"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.912397"], ["id", "85a1b34e-bfd1-11e4-ab50-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85a154d0-bfd1-11e4-b399-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$lFjq0GXegQbHunYGs09pQO9X5SA.luhvcu/fDeY85xaQ3Os0pSv7G"], ["created_at", "2015-03-01 05:12:13.926062"], ["updated_at", "2015-03-01 05:12:13.926062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.927707"], ["user_id", "85a5dde8-bfd1-11e4-8955-705681abff85"], ["created_at", "2015-03-01 05:12:13.928495"], ["updated_at", "2015-03-01 05:12:13.928495"], ["token", "7UkfNgpiJHI9Fd77fEeFlN9Y7bJLTzhUnzrMQ1IYM00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.932285"], ["updated_at", "2015-03-01 05:12:13.932285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85a5dde8-bfd1-11e4-8955-705681abff85' AND "clubhouse_memberships"."organization_id" = '85a6ce1a-bfd1-11e4-a972-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85a5dde8-bfd1-11e4-8955-705681abff85"], ["organization_id", "85a6ce1a-bfd1-11e4-a972-705681abff85"], ["created_at", "2015-03-01 05:12:13.935507"], ["updated_at", "2015-03-01 05:12:13.935507"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.939782' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7UkfNgpiJHI9Fd77fEeFlN9Y7bJLTzhUnzrMQ1IYM00"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.941118"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.942045"], ["id", "85a64ac6-bfd1-11e4-9210-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85a5dde8-bfd1-11e4-8955-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.945772"], ["updated_at", "2015-03-01 05:12:13.945772"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "85a8dcdc-bfd1-11e4-9571-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85a5dde8-bfd1-11e4-8955-705681abff85' AND "clubhouse_memberships"."organization_id" = '85a8dcdc-bfd1-11e4-9571-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85a5dde8-bfd1-11e4-8955-705681abff85"], ["admin", "t"], ["organization_id", "85a8dcdc-bfd1-11e4-9571-705681abff85"], ["created_at", "2015-03-01 05:12:13.956613"], ["updated_at", "2015-03-01 05:12:13.956613"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 22ms (Views: 1.6ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$LlLQACRsG4qFSba.HkmnUen0XlwCNSI/8h2QTalC38X7ykdujHW2y"], ["created_at", "2015-03-01 05:12:13.968949"], ["updated_at", "2015-03-01 05:12:13.968949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:13.970527"], ["user_id", "85ac6942-bfd1-11e4-87a6-705681abff85"], ["created_at", "2015-03-01 05:12:13.971284"], ["updated_at", "2015-03-01 05:12:13.971284"], ["token", "WUOhJYGgEFGSIYzTlI0yTT-P7v2H7AnVKS3ooXLtUmA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:13.974551"], ["updated_at", "2015-03-01 05:12:13.974551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85ac6942-bfd1-11e4-87a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '85ad4218-bfd1-11e4-8ef0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85ac6942-bfd1-11e4-87a6-705681abff85"], ["organization_id", "85ad4218-bfd1-11e4-8ef0-705681abff85"], ["created_at", "2015-03-01 05:12:13.977988"], ["updated_at", "2015-03-01 05:12:13.977988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/85ad4218-bfd1-11e4-8ef0-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:13 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"85ad4218-bfd1-11e4-8ef0-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:13.983027' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WUOhJYGgEFGSIYzTlI0yTT-P7v2H7AnVKS3ooXLtUmA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:13.984631"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:13.985640"], ["id", "85acc7ca-bfd1-11e4-a187-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85ac6942-bfd1-11e4-87a6-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "85ac6942-bfd1-11e4-87a6-705681abff85"], ["id", "85ad4218-bfd1-11e4-8ef0-705681abff85"]] Completed 200 OK in 14ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$O2wmdw.AisWIdNcCq1eQ5eSKe7Mas8XDb23ltUQiC3yWtPA4z1OYu"], ["created_at", "2015-03-01 05:12:14.003478"], ["updated_at", "2015-03-01 05:12:14.003478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.005073"], ["user_id", "85b1ae66-bfd1-11e4-a66e-705681abff85"], ["created_at", "2015-03-01 05:12:14.005823"], ["updated_at", "2015-03-01 05:12:14.005823"], ["token", "Hz730-4bQWabBL2vWtRPxWvb0n5J5SJW5T7pkQImwmE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.009739"], ["updated_at", "2015-03-01 05:12:14.009739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85b1ae66-bfd1-11e4-a66e-705681abff85' AND "clubhouse_memberships"."organization_id" = '85b2a000-bfd1-11e4-aa2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85b1ae66-bfd1-11e4-a66e-705681abff85"], ["organization_id", "85b2a000-bfd1-11e4-aa2a-705681abff85"], ["created_at", "2015-03-01 05:12:14.012903"], ["updated_at", "2015-03-01 05:12:14.012903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$N4M8npRJDrR0Modhb/Ftf.JDhiXZd08kGSnACG/n/zHqJ9aXptxFO"], ["created_at", "2015-03-01 05:12:14.025705"], ["updated_at", "2015-03-01 05:12:14.025705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.027400"], ["user_id", "85b514b6-bfd1-11e4-ae5d-705681abff85"], ["created_at", "2015-03-01 05:12:14.028167"], ["updated_at", "2015-03-01 05:12:14.028167"], ["token", "Ynz8b6Wh4KPwR_F9gP973ouF1AKu-m9IqnDnB5Rig0A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.031402"], ["updated_at", "2015-03-01 05:12:14.031402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85b514b6-bfd1-11e4-ae5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '85b5eda0-bfd1-11e4-a9af-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85b514b6-bfd1-11e4-ae5d-705681abff85"], ["organization_id", "85b5eda0-bfd1-11e4-a9af-705681abff85"], ["created_at", "2015-03-01 05:12:14.035409"], ["updated_at", "2015-03-01 05:12:14.035409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-13" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:14.040430' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ynz8b6Wh4KPwR_F9gP973ouF1AKu-m9IqnDnB5Rig0A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:14.042155"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:14.043283"], ["id", "85b576b8-bfd1-11e4-ac5c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85b514b6-bfd1-11e4-ae5d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "85b514b6-bfd1-11e4-ae5d-705681abff85"], ["name", "org-13"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "85b5eda0-bfd1-11e4-a9af-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$/c7vtCrkmNTbtT1XeIlrFu4P7KXxafnkPgweHdrKIRBGIw2djKOQW"], ["created_at", "2015-03-01 05:12:14.057452"], ["updated_at", "2015-03-01 05:12:14.057452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.059398"], ["user_id", "85b9ef86-bfd1-11e4-be1d-705681abff85"], ["created_at", "2015-03-01 05:12:14.060201"], ["updated_at", "2015-03-01 05:12:14.060201"], ["token", "dr7nI8f6g8v2sI6tx0a2HexSBwvE6m_mQYkyXEx7gAI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.063742"], ["updated_at", "2015-03-01 05:12:14.063742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85b9ef86-bfd1-11e4-be1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '85badcd4-bfd1-11e4-bf35-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85b9ef86-bfd1-11e4-be1d-705681abff85"], ["organization_id", "85badcd4-bfd1-11e4-bf35-705681abff85"], ["created_at", "2015-03-01 05:12:14.066884"], ["updated_at", "2015-03-01 05:12:14.066884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$m2TP0cRQi5nhq.0Fm7X7xuZXa2aBWY9ctykvF7P.m5Qrj8QMvGN9W"], ["created_at", "2015-03-01 05:12:14.079169"], ["updated_at", "2015-03-01 05:12:14.079169"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.081820"], ["user_id", "85bd38d0-bfd1-11e4-b489-705681abff85"], ["created_at", "2015-03-01 05:12:14.083224"], ["updated_at", "2015-03-01 05:12:14.083224"], ["token", "3u1qFdqSLbwhOWICmYghCNx-3iql3nO4iPCb65zJJEg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.087000"], ["updated_at", "2015-03-01 05:12:14.087000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85bd38d0-bfd1-11e4-b489-705681abff85' AND "clubhouse_memberships"."organization_id" = '85be6ab6-bfd1-11e4-8f38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85bd38d0-bfd1-11e4-b489-705681abff85"], ["organization_id", "85be6ab6-bfd1-11e4-8f38-705681abff85"], ["created_at", "2015-03-01 05:12:14.090161"], ["updated_at", "2015-03-01 05:12:14.090161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$/GkzNToZeLQKqW5xmnSwxuo6YmFtYHZ3KrbpbjOsSBzae.5v52JNO"], ["created_at", "2015-03-01 05:12:14.094257"], ["updated_at", "2015-03-01 05:12:14.094257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.097048"], ["updated_at", "2015-03-01 05:12:14.097048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85bf8388-bfd1-11e4-bfc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '85bfefa8-bfd1-11e4-a54e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85bf8388-bfd1-11e4-bfc3-705681abff85"], ["organization_id", "85bfefa8-bfd1-11e4-a54e-705681abff85"], ["created_at", "2015-03-01 05:12:14.099932"], ["updated_at", "2015-03-01 05:12:14.099932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:14.104473' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3u1qFdqSLbwhOWICmYghCNx-3iql3nO4iPCb65zJJEg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:14.106390"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:14.107553"], ["id", "85bde726-bfd1-11e4-9352-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85bd38d0-bfd1-11e4-b489-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "85bd38d0-bfd1-11e4-b489-705681abff85"]] Completed 200 OK in 9ms (Views: 2.5ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$sD41vP7u45rPaLP5cdWqBuagDIMg/ABkji6aBfkDPCoK4xQUDrJMm"], ["created_at", "2015-03-01 05:12:14.119566"], ["updated_at", "2015-03-01 05:12:14.119566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.121402"], ["user_id", "85c3628c-bfd1-11e4-886b-705681abff85"], ["created_at", "2015-03-01 05:12:14.122249"], ["updated_at", "2015-03-01 05:12:14.122249"], ["token", "5zBeo-zhOJ7r8NzWVoc2rM7PFxligyEtVkE2cgK7KcI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.125621"], ["updated_at", "2015-03-01 05:12:14.125621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85c3628c-bfd1-11e4-886b-705681abff85' AND "clubhouse_memberships"."organization_id" = '85c44e72-bfd1-11e4-9417-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85c3628c-bfd1-11e4-886b-705681abff85"], ["organization_id", "85c44e72-bfd1-11e4-9417-705681abff85"], ["created_at", "2015-03-01 05:12:14.128630"], ["updated_at", "2015-03-01 05:12:14.128630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$e0OmKTW9x3DSMGTSEp3bauP/Ue//Bhq8UybgKkK6.6irNzeroTdqa"], ["created_at", "2015-03-01 05:12:14.132727"], ["updated_at", "2015-03-01 05:12:14.132727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.135609"], ["updated_at", "2015-03-01 05:12:14.135609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85c561f4-bfd1-11e4-b259-705681abff85' AND "clubhouse_memberships"."organization_id" = '85c5d288-bfd1-11e4-8a5e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85c561f4-bfd1-11e4-b259-705681abff85"], ["organization_id", "85c5d288-bfd1-11e4-8a5e-705681abff85"], ["created_at", "2015-03-01 05:12:14.138485"], ["updated_at", "2015-03-01 05:12:14.138485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$qGwMPINa.5s4NSutqIzc6eo6dN.fvnqbsgMZnAw4JH1UBOUa05Vke"], ["created_at", "2015-03-01 05:12:14.150267"], ["updated_at", "2015-03-01 05:12:14.150267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.152199"], ["user_id", "85c81660-bfd1-11e4-a937-705681abff85"], ["created_at", "2015-03-01 05:12:14.153080"], ["updated_at", "2015-03-01 05:12:14.153080"], ["token", "ZgoH6SMO3GrMX82o6LgB0v2kqHal_s8Qn9OeVdXVS_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.156363"], ["updated_at", "2015-03-01 05:12:14.156363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85c81660-bfd1-11e4-a937-705681abff85' AND "clubhouse_memberships"."organization_id" = '85c8fe40-bfd1-11e4-8520-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85c81660-bfd1-11e4-a937-705681abff85"], ["organization_id", "85c8fe40-bfd1-11e4-8520-705681abff85"], ["created_at", "2015-03-01 05:12:14.159703"], ["updated_at", "2015-03-01 05:12:14.159703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$CvS7QA43xxjGmMukni1IMuENRgeq9c0DF39hknn1p5xO3IULyGK2m"], ["created_at", "2015-03-01 05:12:14.175161"], ["updated_at", "2015-03-01 05:12:14.175161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.176713"], ["user_id", "85cbdff2-bfd1-11e4-94f7-705681abff85"], ["created_at", "2015-03-01 05:12:14.177455"], ["updated_at", "2015-03-01 05:12:14.177455"], ["token", "0Vb6L4wvgOjik8Dfjyt0eQXpdvssYMGiAB9T7WmmsSQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.180639"], ["updated_at", "2015-03-01 05:12:14.180639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85cbdff2-bfd1-11e4-94f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '85ccb148-bfd1-11e4-9525-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85cbdff2-bfd1-11e4-94f7-705681abff85"], ["organization_id", "85ccb148-bfd1-11e4-9525-705681abff85"], ["created_at", "2015-03-01 05:12:14.183752"], ["updated_at", "2015-03-01 05:12:14.183752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-20" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-20"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-20"]] Completed 200 OK in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$MlU2vQeq/Ew52CN/RSFGbOnqg/uJ8jGipQGWrm3TdvEdI5SufRCQO"], ["created_at", "2015-03-01 05:12:14.216950"], ["updated_at", "2015-03-01 05:12:14.216950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.220589"], ["user_id", "85d266ba-bfd1-11e4-a2cd-705681abff85"], ["created_at", "2015-03-01 05:12:14.222414"], ["updated_at", "2015-03-01 05:12:14.222414"], ["token", "abuer1pUXFYtk23rLUO27T4MmawoZHgUvFA25mfmNSw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.230147"], ["updated_at", "2015-03-01 05:12:14.230147"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85d266ba-bfd1-11e4-a2cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '85d48800-bfd1-11e4-addb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85d266ba-bfd1-11e4-a2cd-705681abff85"], ["organization_id", "85d48800-bfd1-11e4-addb-705681abff85"], ["created_at", "2015-03-01 05:12:14.238810"], ["updated_at", "2015-03-01 05:12:14.238810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$uahBeA99gHcEJVRWflNaNOZzffdu91liQyPEjJRAFpDCNN2O9Pmg2"], ["created_at", "2015-03-01 05:12:14.253889"], ["updated_at", "2015-03-01 05:12:14.253889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.257090"], ["user_id", "85d81380-bfd1-11e4-9a6f-705681abff85"], ["created_at", "2015-03-01 05:12:14.257906"], ["updated_at", "2015-03-01 05:12:14.257906"], ["token", "cIcJu6r05w7N9C-63MgTtpepyMj0eDwvnjaJBJIb_lo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.261322"], ["updated_at", "2015-03-01 05:12:14.261322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85d81380-bfd1-11e4-9a6f-705681abff85' AND "clubhouse_memberships"."organization_id" = '85d9015a-bfd1-11e4-90a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85d81380-bfd1-11e4-9a6f-705681abff85"], ["organization_id", "85d9015a-bfd1-11e4-90a5-705681abff85"], ["created_at", "2015-03-01 05:12:14.264356"], ["updated_at", "2015-03-01 05:12:14.264356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/85d9015a-bfd1-11e4-90a5-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"85d9015a-bfd1-11e4-90a5-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:14.268825' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cIcJu6r05w7N9C-63MgTtpepyMj0eDwvnjaJBJIb_lo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:14.270194"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:14.271081"], ["id", "85d88b4e-bfd1-11e4-af2f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85d81380-bfd1-11e4-9a6f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "85d81380-bfd1-11e4-9a6f-705681abff85"], ["id", "85d9015a-bfd1-11e4-90a5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '85d9015a-bfd1-11e4-90a5-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (11.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$KEsguV04kdvWEUlqYfbKKuQmcEaE0T5YkoOox9XWQg1j8aIwD0Gpm"], ["created_at", "2015-03-01 05:12:14.287754"], ["updated_at", "2015-03-01 05:12:14.287754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.301162"], ["user_id", "85dd1132-bfd1-11e4-98e7-705681abff85"], ["created_at", "2015-03-01 05:12:14.302042"], ["updated_at", "2015-03-01 05:12:14.302042"], ["token", "NasvH4nP44FHtvF97fkS9AKT9FxYuz0STenPTn4_odE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.305299"], ["updated_at", "2015-03-01 05:12:14.305299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85dd1132-bfd1-11e4-98e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '85dfb716-bfd1-11e4-8bf2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85dd1132-bfd1-11e4-98e7-705681abff85"], ["organization_id", "85dfb716-bfd1-11e4-8bf2-705681abff85"], ["created_at", "2015-03-01 05:12:14.308938"], ["updated_at", "2015-03-01 05:12:14.308938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/85dfb716-bfd1-11e4-8bf2-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"85dfb716-bfd1-11e4-8bf2-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:14.313545' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NasvH4nP44FHtvF97fkS9AKT9FxYuz0STenPTn4_odE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:14.314924"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:14.315812"], ["id", "85df4470-bfd1-11e4-8e3e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85dd1132-bfd1-11e4-98e7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "85dd1132-bfd1-11e4-98e7-705681abff85"], ["id", "85dfb716-bfd1-11e4-8bf2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '85dfb716-bfd1-11e4-8bf2-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 05:12:14.321030"], ["id", "85dfb716-bfd1-11e4-8bf2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$.3XwI8m.hgHbvetZ3QOi8OvOYYdndj5IygWD5M0LpDTIJLervftpS"], ["created_at", "2015-03-01 05:12:14.328655"], ["updated_at", "2015-03-01 05:12:14.328655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.330383"], ["user_id", "85e34fb6-bfd1-11e4-a02c-705681abff85"], ["created_at", "2015-03-01 05:12:14.331175"], ["updated_at", "2015-03-01 05:12:14.331175"], ["token", "ZqjPxcP8r8no0p_jbE4WLO3PLlDYjW-154WuEjKX8Sw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.334349"], ["updated_at", "2015-03-01 05:12:14.334349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85e34fb6-bfd1-11e4-a02c-705681abff85' AND "clubhouse_memberships"."organization_id" = '85e42652-bfd1-11e4-935b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85e34fb6-bfd1-11e4-a02c-705681abff85"], ["organization_id", "85e42652-bfd1-11e4-935b-705681abff85"], ["created_at", "2015-03-01 05:12:14.337579"], ["updated_at", "2015-03-01 05:12:14.337579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-24" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-24", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:14.342261' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZqjPxcP8r8no0p_jbE4WLO3PLlDYjW-154WuEjKX8Sw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:14.343803"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:14.344767"], ["id", "85e3b3ca-bfd1-11e4-9574-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85e34fb6-bfd1-11e4-a02c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "85e34fb6-bfd1-11e4-a02c-705681abff85"], ["name", "org-24"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$VymaAYOjgJWzwnHw5Unsn./J1xqMhC7Ho1eDsXK3BIe.pXbEuqpbG"], ["created_at", "2015-03-01 05:12:14.356639"], ["updated_at", "2015-03-01 05:12:14.356639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.358281"], ["user_id", "85e7933c-bfd1-11e4-81c9-705681abff85"], ["created_at", "2015-03-01 05:12:14.359136"], ["updated_at", "2015-03-01 05:12:14.359136"], ["token", "kvtY-5aohkb_yHEdIakf-_JLq6WfeyRedHkZljjCR8Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.362828"], ["updated_at", "2015-03-01 05:12:14.362828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85e7933c-bfd1-11e4-81c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '85e88224-bfd1-11e4-a4c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85e7933c-bfd1-11e4-81c9-705681abff85"], ["organization_id", "85e88224-bfd1-11e4-a4c9-705681abff85"], ["created_at", "2015-03-01 05:12:14.366032"], ["updated_at", "2015-03-01 05:12:14.366032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$AMmxWc2.ILzE1nt1bWgioe1CbZNQPE5G5exBjWfh5sDc8t9DyvWsC"], ["created_at", "2015-03-01 05:12:14.382369"], ["updated_at", "2015-03-01 05:12:14.382369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.384462"], ["user_id", "85eb8b72-bfd1-11e4-aa47-705681abff85"], ["created_at", "2015-03-01 05:12:14.385391"], ["updated_at", "2015-03-01 05:12:14.385391"], ["token", "tYqWFbJCAlyGp7BffZo6x6rdDH1bIU9gO7W0ziAdGGk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.388829"], ["updated_at", "2015-03-01 05:12:14.388829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85eb8b72-bfd1-11e4-aa47-705681abff85' AND "clubhouse_memberships"."organization_id" = '85ec774e-bfd1-11e4-b68c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85eb8b72-bfd1-11e4-aa47-705681abff85"], ["organization_id", "85ec774e-bfd1-11e4-b68c-705681abff85"], ["created_at", "2015-03-01 05:12:14.392408"], ["updated_at", "2015-03-01 05:12:14.392408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/85ec774e-bfd1-11e4-b68c-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"85ec774e-bfd1-11e4-b68c-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:14.399175' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tYqWFbJCAlyGp7BffZo6x6rdDH1bIU9gO7W0ziAdGGk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:14.400936"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:14.402052"], ["id", "85ebfcba-bfd1-11e4-b743-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85eb8b72-bfd1-11e4-aa47-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "85eb8b72-bfd1-11e4-aa47-705681abff85"], ["id", "85ec774e-bfd1-11e4-b68c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "85ec774e-bfd1-11e4-b68c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$6Jqp20r.IhfPkKDxUW4Xz.mXsV5BjP2sokGP84kj4T8Et.vFXOUrq"], ["created_at", "2015-03-01 05:12:14.412868"], ["updated_at", "2015-03-01 05:12:14.412868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.414556"], ["user_id", "85f02718-bfd1-11e4-a348-705681abff85"], ["created_at", "2015-03-01 05:12:14.415338"], ["updated_at", "2015-03-01 05:12:14.415338"], ["token", "kN5huh94Qcpj-Fqq-iYCFRCTsUS_GGIdtgobEg1aMR4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.418590"], ["updated_at", "2015-03-01 05:12:14.418590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85f02718-bfd1-11e4-a348-705681abff85' AND "clubhouse_memberships"."organization_id" = '85f101f6-bfd1-11e4-a2c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85f02718-bfd1-11e4-a348-705681abff85"], ["organization_id", "85f101f6-bfd1-11e4-a2c0-705681abff85"], ["created_at", "2015-03-01 05:12:14.421797"], ["updated_at", "2015-03-01 05:12:14.421797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$/bPioCiV2RXMd01thPv5NuWIzEBNBwXX/VB0lZe8/4X0QXwIH0l1e"], ["created_at", "2015-03-01 05:12:14.433210"], ["updated_at", "2015-03-01 05:12:14.433210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.434771"], ["user_id", "85f33e8a-bfd1-11e4-b694-705681abff85"], ["created_at", "2015-03-01 05:12:14.435529"], ["updated_at", "2015-03-01 05:12:14.435529"], ["token", "iIOuzKFrfJrUtNf0IxvbylkMTFz4UsCklkua0OKC2vc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.438635"], ["updated_at", "2015-03-01 05:12:14.438635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85f33e8a-bfd1-11e4-b694-705681abff85' AND "clubhouse_memberships"."organization_id" = '85f40f72-bfd1-11e4-83f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85f33e8a-bfd1-11e4-b694-705681abff85"], ["organization_id", "85f40f72-bfd1-11e4-83f8-705681abff85"], ["created_at", "2015-03-01 05:12:14.441645"], ["updated_at", "2015-03-01 05:12:14.441645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$beNboggR.ofVgg3elL.ZwuuReqD.l4/ZFnHJ1OeX8ZBuOxm5r9aO6"], ["created_at", "2015-03-01 05:12:14.456805"], ["updated_at", "2015-03-01 05:12:14.456805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.458613"], ["user_id", "85f6df5e-bfd1-11e4-b6dd-705681abff85"], ["created_at", "2015-03-01 05:12:14.459404"], ["updated_at", "2015-03-01 05:12:14.459404"], ["token", "LtpR34rxgZX_cnchkR7RfYBcUdxpVIvgUxcCNgFfBE0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.462674"], ["updated_at", "2015-03-01 05:12:14.462674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85f6df5e-bfd1-11e4-b6dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '85f7ba78-bfd1-11e4-8c6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85f6df5e-bfd1-11e4-b6dd-705681abff85"], ["organization_id", "85f7ba78-bfd1-11e4-8c6a-705681abff85"], ["created_at", "2015-03-01 05:12:14.465689"], ["updated_at", "2015-03-01 05:12:14.465689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-29" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-29", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:14.470048' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LtpR34rxgZX_cnchkR7RfYBcUdxpVIvgUxcCNgFfBE0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:14.471426"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:14.472381"], ["id", "85f7461a-bfd1-11e4-a366-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85f6df5e-bfd1-11e4-b6dd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "85f6df5e-bfd1-11e4-b6dd-705681abff85"], ["name", "org-29"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '85f7ba78-bfd1-11e4-8c6a-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$WbXRp9YlutR2/6ljmXdh5OiXCxNNOsJldGRpOrpgoYf/rUjGn3qfy"], ["created_at", "2015-03-01 05:12:14.486683"], ["updated_at", "2015-03-01 05:12:14.486683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:14.488498"], ["user_id", "85fb6c18-bfd1-11e4-8e5c-705681abff85"], ["created_at", "2015-03-01 05:12:14.489374"], ["updated_at", "2015-03-01 05:12:14.489374"], ["token", "yHumMJNe2PEdKRKaMui5VXPqq9eJ_fhX-mLhr2CST9o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:14.493701"], ["updated_at", "2015-03-01 05:12:14.493701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85fb6c18-bfd1-11e4-8e5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '85fc7c98-bfd1-11e4-b518-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85fb6c18-bfd1-11e4-8e5c-705681abff85"], ["organization_id", "85fc7c98-bfd1-11e4-b518-705681abff85"], ["created_at", "2015-03-01 05:12:14.497106"], ["updated_at", "2015-03-01 05:12:14.497106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-30" for 127.0.0.1 at 2015-02-28 21:12:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-30", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:14.501466' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yHumMJNe2PEdKRKaMui5VXPqq9eJ_fhX-mLhr2CST9o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:14.502859"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:14.503800"], ["id", "85fbdc02-bfd1-11e4-8a83-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85fb6c18-bfd1-11e4-8e5c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "85fb6c18-bfd1-11e4-8e5c-705681abff85"], ["name", "org-30"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '85fc7c98-bfd1-11e4-b518-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 05:12:14.509159"], ["id", "85fc7c98-bfd1-11e4-b518-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ppnQtgCpPjF.7.3aaE2/.elYfEBf3fBRgetRY0thdk3MbJhv7HEQ."], ["created_at", "2015-03-01 05:12:21.393695"], ["updated_at", "2015-03-01 05:12:21.393695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.409758"], ["updated_at", "2015-03-01 05:12:21.409758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a198b2c-bfd1-11e4-aa75-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a1bd170-bfd1-11e4-af18-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a198b2c-bfd1-11e4-aa75-705681abff85"], ["organization_id", "8a1bd170-bfd1-11e4-af18-705681abff85"], ["created_at", "2015-03-01 05:12:21.414340"], ["updated_at", "2015-03-01 05:12:21.414340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a198b2c-bfd1-11e4-aa75-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8a1bd170-bfd1-11e4-af18-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a198b2c-bfd1-11e4-aa75-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a1bd170-bfd1-11e4-af18-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8a1bd170-bfd1-11e4-af18-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a198b2c-bfd1-11e4-aa75-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a1bd170-bfd1-11e4-af18-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Sn.ELUB.RgXo0h4/XyoeSeyclZdSaWw.Iqqhl9nagPFEaxeYbe45m"], ["created_at", "2015-03-01 05:12:21.466361"], ["updated_at", "2015-03-01 05:12:21.466361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.474289"], ["user_id", "8a246d9e-bfd1-11e4-a300-705681abff85"], ["created_at", "2015-03-01 05:12:21.475374"], ["updated_at", "2015-03-01 05:12:21.475374"], ["token", "UGLvy9nqvHi_xJZW-KdG0xA-mqTLpuC7wYPRlxBKYLM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.481012"], ["updated_at", "2015-03-01 05:12:21.481012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a246d9e-bfd1-11e4-a300-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a26ab9a-bfd1-11e4-9925-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a246d9e-bfd1-11e4-a300-705681abff85"], ["organization_id", "8a26ab9a-bfd1-11e4-9925-705681abff85"], ["created_at", "2015-03-01 05:12:21.484577"], ["updated_at", "2015-03-01 05:12:21.484577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$BjmEphHrZPb.8EB1V824k.Qum6F1KEl6qXOMQlD6uecnEFIbiqaXS"], ["created_at", "2015-03-01 05:12:21.519825"], ["updated_at", "2015-03-01 05:12:21.519825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.521544"], ["user_id", "8a2c9780-bfd1-11e4-98f1-705681abff85"], ["created_at", "2015-03-01 05:12:21.522332"], ["updated_at", "2015-03-01 05:12:21.522332"], ["token", "--u6ewH0bDDHt5TRP2-llQfM_0Ko2R5nPBex96-xZZA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.526029"], ["updated_at", "2015-03-01 05:12:21.526029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a2c9780-bfd1-11e4-98f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a2d8776-bfd1-11e4-bdcf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a2c9780-bfd1-11e4-98f1-705681abff85"], ["organization_id", "8a2d8776-bfd1-11e4-bdcf-705681abff85"], ["created_at", "2015-03-01 05:12:21.529307"], ["updated_at", "2015-03-01 05:12:21.529307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8a2d8776-bfd1-11e4-bdcf-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"8a2d8776-bfd1-11e4-bdcf-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:21.536430' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "--u6ewH0bDDHt5TRP2-llQfM_0Ko2R5nPBex96-xZZA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:21.542411"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:21.543527"], ["id", "8a2cfc7a-bfd1-11e4-86fb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a2c9780-bfd1-11e4-98f1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8a2c9780-bfd1-11e4-98f1-705681abff85"], ["id", "8a2d8776-bfd1-11e4-bdcf-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8a2d8776-bfd1-11e4-bdcf-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 32ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$EqbMBg23JBL3iKjfj30FnOqvcY0SxLCssCVHpxmpea1pFrTAZSp.2"], ["created_at", "2015-03-01 05:12:21.573207"], ["updated_at", "2015-03-01 05:12:21.573207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.575149"], ["user_id", "8a34c2b6-bfd1-11e4-a71c-705681abff85"], ["created_at", "2015-03-01 05:12:21.575966"], ["updated_at", "2015-03-01 05:12:21.575966"], ["token", "JhG3jKKZausQy69iKm3_7UgbBK_7s89Sz7y0I3CrcrI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.579473"], ["updated_at", "2015-03-01 05:12:21.579473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a34c2b6-bfd1-11e4-a71c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a35b130-bfd1-11e4-819c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a34c2b6-bfd1-11e4-a71c-705681abff85"], ["organization_id", "8a35b130-bfd1-11e4-819c-705681abff85"], ["created_at", "2015-03-01 05:12:21.583125"], ["updated_at", "2015-03-01 05:12:21.583125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8a35b130-bfd1-11e4-819c-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"8a35b130-bfd1-11e4-819c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:21.588695' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JhG3jKKZausQy69iKm3_7UgbBK_7s89Sz7y0I3CrcrI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:21.590221"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:21.591400"], ["id", "8a352e22-bfd1-11e4-890d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a34c2b6-bfd1-11e4-a71c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8a34c2b6-bfd1-11e4-a71c-705681abff85"], ["id", "8a35b130-bfd1-11e4-819c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8a35b130-bfd1-11e4-819c-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 05:12:21.597741"], ["id", "8a35b130-bfd1-11e4-819c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.7ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$ba3OZJd1GQ8ire8GpYaqtueDL3sJ/jVNk8MvyCkzLzHF5./tH4rh6"], ["created_at", "2015-03-01 05:12:21.608897"], ["updated_at", "2015-03-01 05:12:21.608897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.610612"], ["user_id", "8a3a300c-bfd1-11e4-b634-705681abff85"], ["created_at", "2015-03-01 05:12:21.611467"], ["updated_at", "2015-03-01 05:12:21.611467"], ["token", "GnUIhhRXCbmxnfQ8PPOH4hoAZOfJPxGqhYXEq6TsjDg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.615802"], ["updated_at", "2015-03-01 05:12:21.615802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a3a300c-bfd1-11e4-b634-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a3b3d4e-bfd1-11e4-a17c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a3a300c-bfd1-11e4-b634-705681abff85"], ["organization_id", "8a3b3d4e-bfd1-11e4-a17c-705681abff85"], ["created_at", "2015-03-01 05:12:21.619463"], ["updated_at", "2015-03-01 05:12:21.619463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-5" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:21.624441' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GnUIhhRXCbmxnfQ8PPOH4hoAZOfJPxGqhYXEq6TsjDg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:21.625869"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:21.626785"], ["id", "8a3a98c6-bfd1-11e4-b114-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a3a300c-bfd1-11e4-b634-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8a3a300c-bfd1-11e4-b634-705681abff85"], ["name", "org-5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8a3b3d4e-bfd1-11e4-a17c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$dveDmG6Lx91qSckVTWzB4ewNmMgDIkHcMACo9mqxfxaStUO7zhmKC"], ["created_at", "2015-03-01 05:12:21.640133"], ["updated_at", "2015-03-01 05:12:21.640133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.641750"], ["user_id", "8a3ef146-bfd1-11e4-8946-705681abff85"], ["created_at", "2015-03-01 05:12:21.642638"], ["updated_at", "2015-03-01 05:12:21.642638"], ["token", "-MJnCN2YP1LVhWlIxV82zR7aTn4YdJIpDUlarHz-Dog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.646070"], ["updated_at", "2015-03-01 05:12:21.646070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a3ef146-bfd1-11e4-8946-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a3fda34-bfd1-11e4-8fa5-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a3ef146-bfd1-11e4-8946-705681abff85"], ["organization_id", "8a3fda34-bfd1-11e4-8fa5-705681abff85"], ["created_at", "2015-03-01 05:12:21.650256"], ["updated_at", "2015-03-01 05:12:21.650256"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$psuoGjLNaeOYJjgUy0t5rusdUZoXxVQ5jWkBayUzkzF3eKbXImCuu"], ["created_at", "2015-03-01 05:12:21.664670"], ["updated_at", "2015-03-01 05:12:21.664670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.666567"], ["user_id", "8a42b772-bfd1-11e4-8655-705681abff85"], ["created_at", "2015-03-01 05:12:21.667354"], ["updated_at", "2015-03-01 05:12:21.667354"], ["token", "624c05JXXJuFVDFfbCv9h5OX07CWGQidGZDO0XAlOLA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.670985"], ["updated_at", "2015-03-01 05:12:21.670985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a42b772-bfd1-11e4-8655-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a43a57e-bfd1-11e4-86ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a42b772-bfd1-11e4-8655-705681abff85"], ["organization_id", "8a43a57e-bfd1-11e4-86ab-705681abff85"], ["created_at", "2015-03-01 05:12:21.674361"], ["updated_at", "2015-03-01 05:12:21.674361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$I.3FIyuvpIlGfXTyt1XS8.hpjSI7vhJvq4zkuu9x6Ao3rfLwC5hZy"], ["created_at", "2015-03-01 05:12:21.686807"], ["updated_at", "2015-03-01 05:12:21.686807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.688475"], ["user_id", "8a4611d8-bfd1-11e4-9a7c-705681abff85"], ["created_at", "2015-03-01 05:12:21.689262"], ["updated_at", "2015-03-01 05:12:21.689262"], ["token", "JpuZBtophqOCqoqIwQIXtzGyKEkZosCQ2sZfIa61n5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.692617"], ["updated_at", "2015-03-01 05:12:21.692617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a4611d8-bfd1-11e4-9a7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a46fb5c-bfd1-11e4-b8dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a4611d8-bfd1-11e4-9a7c-705681abff85"], ["organization_id", "8a46fb5c-bfd1-11e4-b8dd-705681abff85"], ["created_at", "2015-03-01 05:12:21.696462"], ["updated_at", "2015-03-01 05:12:21.696462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-8" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-8", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:21.701984' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JpuZBtophqOCqoqIwQIXtzGyKEkZosCQ2sZfIa61n5c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:21.703596"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:21.704631"], ["id", "8a4675f6-bfd1-11e4-80a3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a4611d8-bfd1-11e4-9a7c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8a4611d8-bfd1-11e4-9a7c-705681abff85"], ["name", "org-8"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8a46fb5c-bfd1-11e4-b8dd-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$rn.7Ev9y/Swf7hGE7dKaOes.2KDvupubSyVl2Pbq1DJfoLOv9go5O"], ["created_at", "2015-03-01 05:12:21.718679"], ["updated_at", "2015-03-01 05:12:21.718679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.752019"], ["user_id", "8a4af004-bfd1-11e4-9f42-705681abff85"], ["created_at", "2015-03-01 05:12:21.752997"], ["updated_at", "2015-03-01 05:12:21.752997"], ["token", "laPvRLnxJ61_7ZvaEADxxXqJPAU_-yNcahHabRKbfzc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.757027"], ["updated_at", "2015-03-01 05:12:21.757027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a4af004-bfd1-11e4-9f42-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a50d0aa-bfd1-11e4-bfd4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a4af004-bfd1-11e4-9f42-705681abff85"], ["organization_id", "8a50d0aa-bfd1-11e4-bfd4-705681abff85"], ["created_at", "2015-03-01 05:12:21.760793"], ["updated_at", "2015-03-01 05:12:21.760793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:21.766603' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "laPvRLnxJ61_7ZvaEADxxXqJPAU_-yNcahHabRKbfzc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:21.768014"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:21.769076"], ["id", "8a50391a-bfd1-11e4-862c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a4af004-bfd1-11e4-9f42-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8a4af004-bfd1-11e4-9f42-705681abff85"], ["name", "org-9"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8a50d0aa-bfd1-11e4-bfd4-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 05:12:21.775417"], ["id", "8a50d0aa-bfd1-11e4-bfd4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ifPDwph7elkw7UPLL9nD5emdzKKfXm4fDSCaCfCkpLPapc1tNjrAu"], ["created_at", "2015-03-01 05:12:21.783328"], ["updated_at", "2015-03-01 05:12:21.783328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.784924"], ["user_id", "8a54c9da-bfd1-11e4-85e9-705681abff85"], ["created_at", "2015-03-01 05:12:21.785675"], ["updated_at", "2015-03-01 05:12:21.785675"], ["token", "1DPu-ck9EVtanw6maxOsFN-SY2NvzUP9OmBatolisJQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.788918"], ["updated_at", "2015-03-01 05:12:21.788918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a54c9da-bfd1-11e4-85e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a55ac10-bfd1-11e4-b6bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a54c9da-bfd1-11e4-85e9-705681abff85"], ["organization_id", "8a55ac10-bfd1-11e4-b6bb-705681abff85"], ["created_at", "2015-03-01 05:12:21.792620"], ["updated_at", "2015-03-01 05:12:21.792620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/8a55ac10-bfd1-11e4-b6bb-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"8a55ac10-bfd1-11e4-b6bb-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:21.797626' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1DPu-ck9EVtanw6maxOsFN-SY2NvzUP9OmBatolisJQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:21.799116"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:21.800177"], ["id", "8a552948-bfd1-11e4-974f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a54c9da-bfd1-11e4-85e9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8a54c9da-bfd1-11e4-85e9-705681abff85"], ["id", "8a55ac10-bfd1-11e4-b6bb-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$1HsiHHLebLrolCdeRMtCleXOxcxiN0c3sgCHIA7flS.uA4PJMeNAe"], ["created_at", "2015-03-01 05:12:21.810681"], ["updated_at", "2015-03-01 05:12:21.810681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.812281"], ["user_id", "8a58f686-bfd1-11e4-9c6a-705681abff85"], ["created_at", "2015-03-01 05:12:21.813316"], ["updated_at", "2015-03-01 05:12:21.813316"], ["token", "Xi5vVDz_BXBOgqlAVeQQfaVozCUVODmtzeEsPSPJIW8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.817345"], ["updated_at", "2015-03-01 05:12:21.817345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a58f686-bfd1-11e4-9c6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a59f93c-bfd1-11e4-ad0f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a58f686-bfd1-11e4-9c6a-705681abff85"], ["organization_id", "8a59f93c-bfd1-11e4-ad0f-705681abff85"], ["created_at", "2015-03-01 05:12:21.820615"], ["updated_at", "2015-03-01 05:12:21.820615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Jqg31ABMNp0hULeYHjwu6eEgV2ty/1J.vB9UnID0hNVA.nnJ6NHXO"], ["created_at", "2015-03-01 05:12:21.834067"], ["updated_at", "2015-03-01 05:12:21.834067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.835832"], ["user_id", "8a5c8c24-bfd1-11e4-8bd4-705681abff85"], ["created_at", "2015-03-01 05:12:21.836602"], ["updated_at", "2015-03-01 05:12:21.836602"], ["token", "KBJ2IKKscKzeZATzXU7GebKnlw39wpcbb4U0CYKehac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.840329"], ["updated_at", "2015-03-01 05:12:21.840329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a5c8c24-bfd1-11e4-8bd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a5d80ca-bfd1-11e4-b680-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a5c8c24-bfd1-11e4-8bd4-705681abff85"], ["organization_id", "8a5d80ca-bfd1-11e4-b680-705681abff85"], ["created_at", "2015-03-01 05:12:21.844012"], ["updated_at", "2015-03-01 05:12:21.844012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Q0xTcAVdR6vdiod4IpBrde9XwypTysBC8PThZRcat9gQSkGTO2N8K"], ["created_at", "2015-03-01 05:12:21.858942"], ["updated_at", "2015-03-01 05:12:21.858942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.860599"], ["user_id", "8a605520-bfd1-11e4-8feb-705681abff85"], ["created_at", "2015-03-01 05:12:21.861560"], ["updated_at", "2015-03-01 05:12:21.861560"], ["token", "PlWvRfy-vHYd9U5pMOm--VaoUw5ux_MvanUjESxyX9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.865093"], ["updated_at", "2015-03-01 05:12:21.865093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a605520-bfd1-11e4-8feb-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a614250-bfd1-11e4-b3e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a605520-bfd1-11e4-8feb-705681abff85"], ["organization_id", "8a614250-bfd1-11e4-b3e0-705681abff85"], ["created_at", "2015-03-01 05:12:21.868852"], ["updated_at", "2015-03-01 05:12:21.868852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-13" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-13"} Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-13"]] Completed 200 OK in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$gGPZUXOUe3pwpwZcAmlVE.IkNwuffZCH87Oz8R9zQOL2XJoeFEKIu"], ["created_at", "2015-03-01 05:12:21.879827"], ["updated_at", "2015-03-01 05:12:21.879827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.881775"], ["user_id", "8a638b0a-bfd1-11e4-b611-705681abff85"], ["created_at", "2015-03-01 05:12:21.883153"], ["updated_at", "2015-03-01 05:12:21.883153"], ["token", "kTNOiuYBy7O_na4TkRX4aAkdil8g01T24-Flda9kf8o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.886865"], ["updated_at", "2015-03-01 05:12:21.886865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a638b0a-bfd1-11e4-b611-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a6494fa-bfd1-11e4-bf09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a638b0a-bfd1-11e4-b611-705681abff85"], ["organization_id", "8a6494fa-bfd1-11e4-bf09-705681abff85"], ["created_at", "2015-03-01 05:12:21.890079"], ["updated_at", "2015-03-01 05:12:21.890079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-14" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:21.895024' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kTNOiuYBy7O_na4TkRX4aAkdil8g01T24-Flda9kf8o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:21.896543"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:21.897722"], ["id", "8a641124-bfd1-11e4-9805-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a638b0a-bfd1-11e4-b611-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8a638b0a-bfd1-11e4-b611-705681abff85"], ["name", "org-14"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$/NjhxS9ik2dTZbI0BwjNzuwIDWjNAzpCS.CjSylGa9cZobWxTmPue"], ["created_at", "2015-03-01 05:12:21.908246"], ["updated_at", "2015-03-01 05:12:21.908246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.910347"], ["user_id", "8a67dfa2-bfd1-11e4-bfaf-705681abff85"], ["created_at", "2015-03-01 05:12:21.911151"], ["updated_at", "2015-03-01 05:12:21.911151"], ["token", "3q0KM5AIYDkH6r0YPjbjKda_7hMqCvUK83J_tRUHhOg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.915031"], ["updated_at", "2015-03-01 05:12:21.915031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a67dfa2-bfd1-11e4-bfaf-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a68e302-bfd1-11e4-b27a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a67dfa2-bfd1-11e4-bfaf-705681abff85"], ["organization_id", "8a68e302-bfd1-11e4-b27a-705681abff85"], ["created_at", "2015-03-01 05:12:21.919190"], ["updated_at", "2015-03-01 05:12:21.919190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$AD3kvxtm9PTqmdkh6WtN9Oo2dTehzjqJmYbrhfORXJPO5ZTdQ2ha2"], ["created_at", "2015-03-01 05:12:21.931718"], ["updated_at", "2015-03-01 05:12:21.931718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.934216"], ["user_id", "8a6b8044-bfd1-11e4-a7c2-705681abff85"], ["created_at", "2015-03-01 05:12:21.935149"], ["updated_at", "2015-03-01 05:12:21.935149"], ["token", "EzGSagjC1Ly-ozPjhQUj0Lz6hqSQKpUTKqX7DRqHa6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.938461"], ["updated_at", "2015-03-01 05:12:21.938461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a6b8044-bfd1-11e4-a7c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a6c7382-bfd1-11e4-aff4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a6b8044-bfd1-11e4-a7c2-705681abff85"], ["organization_id", "8a6c7382-bfd1-11e4-aff4-705681abff85"], ["created_at", "2015-03-01 05:12:21.941696"], ["updated_at", "2015-03-01 05:12:21.941696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$qSUcG5Tx39Wi3ByKht4lJeFFdPaQsfllpL6w9KjJkcr43UTwwkI3W"], ["created_at", "2015-03-01 05:12:21.955178"], ["updated_at", "2015-03-01 05:12:21.955178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.957572"], ["user_id", "8a6f1858-bfd1-11e4-952e-705681abff85"], ["created_at", "2015-03-01 05:12:21.958388"], ["updated_at", "2015-03-01 05:12:21.958388"], ["token", "yF0Cmmbqwlzt3y6SugKl3oTQeJECu_V7H61ZhFaUXNw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.964154"], ["updated_at", "2015-03-01 05:12:21.964154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a6f1858-bfd1-11e4-952e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a706bcc-bfd1-11e4-a61f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a6f1858-bfd1-11e4-952e-705681abff85"], ["organization_id", "8a706bcc-bfd1-11e4-a61f-705681abff85"], ["created_at", "2015-03-01 05:12:21.968365"], ["updated_at", "2015-03-01 05:12:21.968365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:12:21 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:21.973458' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yF0Cmmbqwlzt3y6SugKl3oTQeJECu_V7H61ZhFaUXNw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:21.974963"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:21.975916"], ["id", "8a6f981e-bfd1-11e4-a78c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a6f1858-bfd1-11e4-952e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$cAzGmV/oWxwAIx8.OQgyi.Z3xLt.TzDt8SSh5oTJ9kVkLfiBTqNQa"], ["created_at", "2015-03-01 05:12:21.989772"], ["updated_at", "2015-03-01 05:12:21.989772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:21.991409"], ["user_id", "8a744c7e-bfd1-11e4-a7c8-705681abff85"], ["created_at", "2015-03-01 05:12:21.992227"], ["updated_at", "2015-03-01 05:12:21.992227"], ["token", "9dxySqzDDxpBe9X8qaTQEHU38OsNCbeJ3LwIBLYMJxA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:21.995397"], ["updated_at", "2015-03-01 05:12:21.995397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a744c7e-bfd1-11e4-a7c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a7522fc-bfd1-11e4-8134-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a744c7e-bfd1-11e4-a7c8-705681abff85"], ["organization_id", "8a7522fc-bfd1-11e4-8134-705681abff85"], ["created_at", "2015-03-01 05:12:21.999500"], ["updated_at", "2015-03-01 05:12:21.999500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.004145' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9dxySqzDDxpBe9X8qaTQEHU38OsNCbeJ3LwIBLYMJxA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.005612"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.007648"], ["id", "8a74afa2-bfd1-11e4-b70b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a744c7e-bfd1-11e4-a7c8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.013190"], ["updated_at", "2015-03-01 05:12:22.013190"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8a77e12c-bfd1-11e4-80a2-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a744c7e-bfd1-11e4-a7c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a77e12c-bfd1-11e4-80a2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8a744c7e-bfd1-11e4-a7c8-705681abff85"], ["admin", "t"], ["organization_id", "8a77e12c-bfd1-11e4-80a2-705681abff85"], ["created_at", "2015-03-01 05:12:22.018559"], ["updated_at", "2015-03-01 05:12:22.018559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.7ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$l3j.My01Rtd6Luxn5UMxX./E6auvREfSoEjrjdio6LWQ/5SRudBo2"], ["created_at", "2015-03-01 05:12:22.027458"], ["updated_at", "2015-03-01 05:12:22.027458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.029103"], ["user_id", "8a7a0bf0-bfd1-11e4-a673-705681abff85"], ["created_at", "2015-03-01 05:12:22.029977"], ["updated_at", "2015-03-01 05:12:22.029977"], ["token", "_teZ_b39NYTrGo5skManA7Cw3ed9obZrAsGX-G_PCh0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.034384"], ["updated_at", "2015-03-01 05:12:22.034384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a7a0bf0-bfd1-11e4-a673-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a7b1b58-bfd1-11e4-97b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a7a0bf0-bfd1-11e4-a673-705681abff85"], ["organization_id", "8a7b1b58-bfd1-11e4-97b3-705681abff85"], ["created_at", "2015-03-01 05:12:22.038252"], ["updated_at", "2015-03-01 05:12:22.038252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/8a7b1b58-bfd1-11e4-97b3-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"8a7b1b58-bfd1-11e4-97b3-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.043776' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_teZ_b39NYTrGo5skManA7Cw3ed9obZrAsGX-G_PCh0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.045562"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.046564"], ["id", "8a7a7978-bfd1-11e4-8496-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a7a0bf0-bfd1-11e4-a673-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8a7a0bf0-bfd1-11e4-a673-705681abff85"], ["id", "8a7b1b58-bfd1-11e4-97b3-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8a7b1b58-bfd1-11e4-97b3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$HNP86GWbQBy4tYKKocVCAORgVEn4p3LtyW8b23YeTX5foPj7IGtOa"], ["created_at", "2015-03-01 05:12:22.056727"], ["updated_at", "2015-03-01 05:12:22.056727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.058461"], ["user_id", "8a7e81c6-bfd1-11e4-afa4-705681abff85"], ["created_at", "2015-03-01 05:12:22.059236"], ["updated_at", "2015-03-01 05:12:22.059236"], ["token", "V1h27Nfq9nNA2Mk6EB1qjoFTUDnh7RU2swTbse11W2Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.062535"], ["updated_at", "2015-03-01 05:12:22.062535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a7e81c6-bfd1-11e4-afa4-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a7f6348-bfd1-11e4-84e6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a7e81c6-bfd1-11e4-afa4-705681abff85"], ["organization_id", "8a7f6348-bfd1-11e4-84e6-705681abff85"], ["created_at", "2015-03-01 05:12:22.066030"], ["updated_at", "2015-03-01 05:12:22.066030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$uFY0ykN1p8pO1QnIbCcVHOyDAEPHGG9sP2ulIPOMpr/34VdtngYRe"], ["created_at", "2015-03-01 05:12:22.079189"], ["updated_at", "2015-03-01 05:12:22.079189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.080966"], ["user_id", "8a81f0f4-bfd1-11e4-8685-705681abff85"], ["created_at", "2015-03-01 05:12:22.081835"], ["updated_at", "2015-03-01 05:12:22.081835"], ["token", "7Wg4u3ppbpBom7p-BICWVlnT9oJjoO7N8GpxL5T3AOA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.086423"], ["updated_at", "2015-03-01 05:12:22.086423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a81f0f4-bfd1-11e4-8685-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a830ba6-bfd1-11e4-bff5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a81f0f4-bfd1-11e4-8685-705681abff85"], ["organization_id", "8a830ba6-bfd1-11e4-bff5-705681abff85"], ["created_at", "2015-03-01 05:12:22.089849"], ["updated_at", "2015-03-01 05:12:22.089849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$WAQroE5lVVr03IOKPsGTjuaVQcqUQOgi.jfKo4NuGcmzs7sDhE5ou"], ["created_at", "2015-03-01 05:12:22.094278"], ["updated_at", "2015-03-01 05:12:22.094278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.097503"], ["updated_at", "2015-03-01 05:12:22.097503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a843bfc-bfd1-11e4-b075-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a84baa0-bfd1-11e4-83eb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a843bfc-bfd1-11e4-b075-705681abff85"], ["organization_id", "8a84baa0-bfd1-11e4-83eb-705681abff85"], ["created_at", "2015-03-01 05:12:22.108891"], ["updated_at", "2015-03-01 05:12:22.108891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.113928' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7Wg4u3ppbpBom7p-BICWVlnT9oJjoO7N8GpxL5T3AOA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.115837"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.117584"], ["id", "8a8266c4-bfd1-11e4-a0b5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a81f0f4-bfd1-11e4-8685-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "8a81f0f4-bfd1-11e4-8685-705681abff85"]] Completed 200 OK in 9ms (Views: 2.2ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$qO3Po3b.2L0pY.EX8D/t9.bDkhKMj8aAQ1tI/YBBlCe2nzknveXNm"], ["created_at", "2015-03-01 05:12:22.129099"], ["updated_at", "2015-03-01 05:12:22.129099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.130756"], ["user_id", "8a898c2e-bfd1-11e4-a91d-705681abff85"], ["created_at", "2015-03-01 05:12:22.131527"], ["updated_at", "2015-03-01 05:12:22.131527"], ["token", "IZN_HeMmWDJoVPdzZTN0NnDzkgv-6uxBjAps_yByG94"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.136008"], ["updated_at", "2015-03-01 05:12:22.136008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a898c2e-bfd1-11e4-a91d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a8a9baa-bfd1-11e4-bec4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a898c2e-bfd1-11e4-a91d-705681abff85"], ["organization_id", "8a8a9baa-bfd1-11e4-bec4-705681abff85"], ["created_at", "2015-03-01 05:12:22.139375"], ["updated_at", "2015-03-01 05:12:22.139375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$iGSv6ux3rGgW2f3laj.r2eY5PDG8Qk6FZhHQfi.Z9/QHsUJyn.R5G"], ["created_at", "2015-03-01 05:12:22.143748"], ["updated_at", "2015-03-01 05:12:22.143748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.146843"], ["updated_at", "2015-03-01 05:12:22.146843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a8bc6ba-bfd1-11e4-89f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a8c44d2-bfd1-11e4-99f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a8bc6ba-bfd1-11e4-89f1-705681abff85"], ["organization_id", "8a8c44d2-bfd1-11e4-99f6-705681abff85"], ["created_at", "2015-03-01 05:12:22.150537"], ["updated_at", "2015-03-01 05:12:22.150537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$1pO.7TLEV/nXrxSNr1MM2e2SqP0eMV6767PsswdhBbL.5gcg3jAha"], ["created_at", "2015-03-01 05:12:22.165549"], ["updated_at", "2015-03-01 05:12:22.165549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$MQBh5z.hv5pZBzgG1XyineNxMPjqIw4lTmWBrxcT4QkLxmKBMo.0."], ["created_at", "2015-03-01 05:12:22.170866"], ["updated_at", "2015-03-01 05:12:22.170866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.172466"], ["user_id", "8a8f2fee-bfd1-11e4-aefa-705681abff85"], ["created_at", "2015-03-01 05:12:22.173337"], ["updated_at", "2015-03-01 05:12:22.173337"], ["token", "XFwmyYyX3CVcUQIoUITeissMCwgaVn3ZRUbugJJSzrk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.176661"], ["updated_at", "2015-03-01 05:12:22.176661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a8f2fee-bfd1-11e4-aefa-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a90cb60-bfd1-11e4-9387-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8a8f2fee-bfd1-11e4-aefa-705681abff85"], ["organization_id", "8a90cb60-bfd1-11e4-9387-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.179890"], ["updated_at", "2015-03-01 05:12:22.179890"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a8febc8-bfd1-11e4-a5d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a90cb60-bfd1-11e4-9387-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a8febc8-bfd1-11e4-a5d2-705681abff85"], ["organization_id", "8a90cb60-bfd1-11e4-9387-705681abff85"], ["created_at", "2015-03-01 05:12:22.183797"], ["updated_at", "2015-03-01 05:12:22.183797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/8a914eb4-bfd1-11e4-9a4d-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"8a914eb4-bfd1-11e4-9a4d-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.207660' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XFwmyYyX3CVcUQIoUITeissMCwgaVn3ZRUbugJJSzrk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.210387"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.212300"], ["id", "8a9052ca-bfd1-11e4-ba57-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a8f2fee-bfd1-11e4-aefa-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8a8f2fee-bfd1-11e4-aefa-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8a8f2fee-bfd1-11e4-aefa-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "8a8f2fee-bfd1-11e4-aefa-705681abff85"], ["id", "8a914eb4-bfd1-11e4-9a4d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8a90cb60-bfd1-11e4-9387-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a8f2fee-bfd1-11e4-aefa-705681abff85"]] Completed 200 OK in 24ms (Views: 6.9ms | ActiveRecord: 2.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$rbC4OzVLDRqv60vYEheBFexP/JXbYtHjJ5C31RtIPPNtJl5kCxKzy"], ["created_at", "2015-03-01 05:12:22.241707"], ["updated_at", "2015-03-01 05:12:22.241707"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$Ag7Nh/3k.A/Wd2QAfcuiF.AhjI8MrYkL8hiZUjBAwB39d/TftWRgS"], ["created_at", "2015-03-01 05:12:22.248935"], ["updated_at", "2015-03-01 05:12:22.248935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.251586"], ["user_id", "8a9ae71c-bfd1-11e4-9fa9-705681abff85"], ["created_at", "2015-03-01 05:12:22.253066"], ["updated_at", "2015-03-01 05:12:22.253066"], ["token", "qFBcthiolwsA-hkIl6uuUDPx1jTYUFcvpFlXJVaPSjU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.259941"], ["updated_at", "2015-03-01 05:12:22.259941"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a9ae71c-bfd1-11e4-9fa9-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a9d99f8-bfd1-11e4-9214-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8a9ae71c-bfd1-11e4-9fa9-705681abff85"], ["organization_id", "8a9d99f8-bfd1-11e4-9214-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.267726"], ["updated_at", "2015-03-01 05:12:22.267726"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a9be734-bfd1-11e4-91b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '8a9d99f8-bfd1-11e4-9214-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8a9be734-bfd1-11e4-91b9-705681abff85"], ["organization_id", "8a9d99f8-bfd1-11e4-9214-705681abff85"], ["created_at", "2015-03-01 05:12:22.274302"], ["updated_at", "2015-03-01 05:12:22.274302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$W5dsbZFVInY0Zl2o.mJgn.hE8wx4DvWFcV8l1iQQlz3Qm16D8EvKq"], ["created_at", "2015-03-01 05:12:22.288035"], ["updated_at", "2015-03-01 05:12:22.288035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$9wLCq5YXcXv0VlH08Fan.uMfLnlslK70cQjraKvZWYxO0kRBMZ3My"], ["created_at", "2015-03-01 05:12:22.292701"], ["updated_at", "2015-03-01 05:12:22.292701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.294339"], ["user_id", "8aa1d194-bfd1-11e4-9fe0-705681abff85"], ["created_at", "2015-03-01 05:12:22.295113"], ["updated_at", "2015-03-01 05:12:22.295113"], ["token", "ilUSEeeP7mOJcwrmP7xnMU843yAWOtMYJQkdFcVle7U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.298770"], ["updated_at", "2015-03-01 05:12:22.298770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8aa1d194-bfd1-11e4-9fe0-705681abff85' AND "clubhouse_memberships"."organization_id" = '8aa375e4-bfd1-11e4-9338-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8aa1d194-bfd1-11e4-9fe0-705681abff85"], ["organization_id", "8aa375e4-bfd1-11e4-9338-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.302438"], ["updated_at", "2015-03-01 05:12:22.302438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8aa28440-bfd1-11e4-b05c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8aa375e4-bfd1-11e4-9338-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8aa28440-bfd1-11e4-b05c-705681abff85"], ["organization_id", "8aa375e4-bfd1-11e4-9338-705681abff85"], ["created_at", "2015-03-01 05:12:22.305825"], ["updated_at", "2015-03-01 05:12:22.305825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$PONDTKTA0A4FPCkS1.OamOYiRy3ox1s9fHhnZUD8v5IF61fNuFD8C"], ["created_at", "2015-03-01 05:12:22.317856"], ["updated_at", "2015-03-01 05:12:22.317856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$QP6uj00x1vnbHJQKYV95ReI3WTA5mn9qkrsVTAXKyiX.mO/AaYqua"], ["created_at", "2015-03-01 05:12:22.323016"], ["updated_at", "2015-03-01 05:12:22.323016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.324910"], ["user_id", "8aa65a98-bfd1-11e4-9ab5-705681abff85"], ["created_at", "2015-03-01 05:12:22.325726"], ["updated_at", "2015-03-01 05:12:22.325726"], ["token", "2oeaoNcBLxw8eQ0U28QHLTeuiow5LcoXyijO0_lYmYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.329157"], ["updated_at", "2015-03-01 05:12:22.329157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8aa65a98-bfd1-11e4-9ab5-705681abff85' AND "clubhouse_memberships"."organization_id" = '8aa8127a-bfd1-11e4-84c7-705681abff85') LIMIT 1 SQL (4.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8aa65a98-bfd1-11e4-9ab5-705681abff85"], ["organization_id", "8aa8127a-bfd1-11e4-84c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.332742"], ["updated_at", "2015-03-01 05:12:22.332742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8aa72a18-bfd1-11e4-b299-705681abff85' AND "clubhouse_memberships"."organization_id" = '8aa8127a-bfd1-11e4-84c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8aa72a18-bfd1-11e4-b299-705681abff85"], ["organization_id", "8aa8127a-bfd1-11e4-84c7-705681abff85"], ["created_at", "2015-03-01 05:12:22.340846"], ["updated_at", "2015-03-01 05:12:22.340846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/8aa8a5e6-bfd1-11e4-abea-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8aa8a5e6-bfd1-11e4-abea-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.345550' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2oeaoNcBLxw8eQ0U28QHLTeuiow5LcoXyijO0_lYmYc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.347088"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.348031"], ["id", "8aa79534-bfd1-11e4-8bca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8aa65a98-bfd1-11e4-9ab5-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8aa65a98-bfd1-11e4-9ab5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8aa65a98-bfd1-11e4-9ab5-705681abff85' LIMIT 1 [["organization_id", "8aa8127a-bfd1-11e4-84c7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8aa8127a-bfd1-11e4-84c7-705681abff85"], ["id", "8aa8a5e6-bfd1-11e4-abea-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8aa65a98-bfd1-11e4-9ab5-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$.DpUz94p5EsW.JO7WUxI7.lh/XAsCgg7YZrR8qRDTRjPRFY00mC/G"], ["created_at", "2015-03-01 05:12:22.363004"], ["updated_at", "2015-03-01 05:12:22.363004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$KLwQeJu9vxl/j30QeTTjCuIJcygU34g5n6lUiFf5DeVLw4inSzw/2"], ["created_at", "2015-03-01 05:12:22.367846"], ["updated_at", "2015-03-01 05:12:22.367846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.369432"], ["user_id", "8aad3eb2-bfd1-11e4-8279-705681abff85"], ["created_at", "2015-03-01 05:12:22.370256"], ["updated_at", "2015-03-01 05:12:22.370256"], ["token", "jKauFL53aUaZUd0SpAia-dY4pDmwkHU4VR3_B3wqDFc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.373578"], ["updated_at", "2015-03-01 05:12:22.373578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8aad3eb2-bfd1-11e4-8279-705681abff85' AND "clubhouse_memberships"."organization_id" = '8aaed772-bfd1-11e4-b9f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8aad3eb2-bfd1-11e4-8279-705681abff85"], ["organization_id", "8aaed772-bfd1-11e4-b9f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.376924"], ["updated_at", "2015-03-01 05:12:22.376924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8aadfaf0-bfd1-11e4-8c1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8aaed772-bfd1-11e4-b9f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8aadfaf0-bfd1-11e4-8c1d-705681abff85"], ["organization_id", "8aaed772-bfd1-11e4-b9f7-705681abff85"], ["created_at", "2015-03-01 05:12:22.380150"], ["updated_at", "2015-03-01 05:12:22.380150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/8aafd816-bfd1-11e4-b5f6-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8aafd816-bfd1-11e4-b5f6-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.385322' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jKauFL53aUaZUd0SpAia-dY4pDmwkHU4VR3_B3wqDFc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.386728"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.387689"], ["id", "8aae5f9a-bfd1-11e4-a7b4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8aad3eb2-bfd1-11e4-8279-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8aad3eb2-bfd1-11e4-8279-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8aad3eb2-bfd1-11e4-8279-705681abff85' LIMIT 1 [["organization_id", "8aaed772-bfd1-11e4-b9f7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8aaed772-bfd1-11e4-b9f7-705681abff85"], ["id", "8aafd816-bfd1-11e4-b5f6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8aadfaf0-bfd1-11e4-8c1d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "8aafd816-bfd1-11e4-b5f6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$wSkkq34UPL9/odON4gUfnO2.EBqaSZgVhpXUZUFwcESGK4ZNaoIxG"], ["created_at", "2015-03-01 05:12:22.401386"], ["updated_at", "2015-03-01 05:12:22.401386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$Zz9zHwfQ3nipeaWZvN5X7.pAGMt5oSrhgOU6wg0mVmCYwC8mWFyXu"], ["created_at", "2015-03-01 05:12:22.406580"], ["updated_at", "2015-03-01 05:12:22.406580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.408218"], ["user_id", "8ab33222-bfd1-11e4-87c0-705681abff85"], ["created_at", "2015-03-01 05:12:22.409012"], ["updated_at", "2015-03-01 05:12:22.409012"], ["token", "40i47AWaRdx4vYifTvF16KX0otWOWcw00u_f-Jq6xL8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.412738"], ["updated_at", "2015-03-01 05:12:22.412738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ab33222-bfd1-11e4-87c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ab4d33e-bfd1-11e4-bcf4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ab33222-bfd1-11e4-87c0-705681abff85"], ["organization_id", "8ab4d33e-bfd1-11e4-bcf4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.416198"], ["updated_at", "2015-03-01 05:12:22.416198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ab3e4b0-bfd1-11e4-9cbc-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ab4d33e-bfd1-11e4-bcf4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8ab3e4b0-bfd1-11e4-9cbc-705681abff85"], ["organization_id", "8ab4d33e-bfd1-11e4-bcf4-705681abff85"], ["created_at", "2015-03-01 05:12:22.419795"], ["updated_at", "2015-03-01 05:12:22.419795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$8w8vKJVoaNwKZ7Hga1Q.Ue9XtrORO950gpdCT6eTvUMP9cwYnd2Sq"], ["created_at", "2015-03-01 05:12:22.433238"], ["updated_at", "2015-03-01 05:12:22.433238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$8BcnJ7IujsZTqGHyKskDveNBQaoKe6.mjcodnGNwMSi8k5BKyyNia"], ["created_at", "2015-03-01 05:12:22.438384"], ["updated_at", "2015-03-01 05:12:22.438384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.440174"], ["user_id", "8ab7f9ba-bfd1-11e4-ad69-705681abff85"], ["created_at", "2015-03-01 05:12:22.441011"], ["updated_at", "2015-03-01 05:12:22.441011"], ["token", "e7Xh-eIMgucoOpboMv--H6Rctn2IpUu51_7jA5oPtVM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.444313"], ["updated_at", "2015-03-01 05:12:22.444313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ab7f9ba-bfd1-11e4-ad69-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ab9a3e6-bfd1-11e4-a7cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ab7f9ba-bfd1-11e4-ad69-705681abff85"], ["organization_id", "8ab9a3e6-bfd1-11e4-a7cf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.447922"], ["updated_at", "2015-03-01 05:12:22.447922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ab8c19c-bfd1-11e4-ac0a-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ab9a3e6-bfd1-11e4-a7cf-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8ab8c19c-bfd1-11e4-ac0a-705681abff85"], ["organization_id", "8ab9a3e6-bfd1-11e4-a7cf-705681abff85"], ["created_at", "2015-03-01 05:12:22.451256"], ["updated_at", "2015-03-01 05:12:22.451256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/8aba3234-bfd1-11e4-afdc-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"8aba3234-bfd1-11e4-afdc-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.456615' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "e7Xh-eIMgucoOpboMv--H6Rctn2IpUu51_7jA5oPtVM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.458122"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.459068"], ["id", "8ab92b50-bfd1-11e4-9fdc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8ab7f9ba-bfd1-11e4-ad69-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8ab7f9ba-bfd1-11e4-ad69-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8ab7f9ba-bfd1-11e4-ad69-705681abff85' LIMIT 1 [["organization_id", "8ab9a3e6-bfd1-11e4-a7cf-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8ab9a3e6-bfd1-11e4-a7cf-705681abff85"], ["id", "8aba3234-bfd1-11e4-afdc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8ab7f9ba-bfd1-11e4-ad69-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$EqsDMHlYr10Vo.kggNIT9.WQ/eerWt41LbJvTJEQZEOdiO64FCy1S"], ["created_at", "2015-03-01 05:12:22.475030"], ["updated_at", "2015-03-01 05:12:22.475030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$L.xcjFIO5c/xwcuQTf132esschFILm0uzRkiwL8bkQkT.xiCjTv5."], ["created_at", "2015-03-01 05:12:22.479473"], ["updated_at", "2015-03-01 05:12:22.479473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.481192"], ["user_id", "8abe57b0-bfd1-11e4-ae47-705681abff85"], ["created_at", "2015-03-01 05:12:22.481992"], ["updated_at", "2015-03-01 05:12:22.481992"], ["token", "99YpOYXfe_67E8DkhevKSb4oRBaUwTBI3dmqUBWMyhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.485362"], ["updated_at", "2015-03-01 05:12:22.485362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8abe57b0-bfd1-11e4-ae47-705681abff85' AND "clubhouse_memberships"."organization_id" = '8abfe67a-bfd1-11e4-8c61-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8abe57b0-bfd1-11e4-ae47-705681abff85"], ["organization_id", "8abfe67a-bfd1-11e4-8c61-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.488770"], ["updated_at", "2015-03-01 05:12:22.488770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (7.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8abf0336-bfd1-11e4-b983-705681abff85' AND "clubhouse_memberships"."organization_id" = '8abfe67a-bfd1-11e4-8c61-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8abf0336-bfd1-11e4-b983-705681abff85"], ["organization_id", "8abfe67a-bfd1-11e4-8c61-705681abff85"], ["created_at", "2015-03-01 05:12:22.498844"], ["updated_at", "2015-03-01 05:12:22.498844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/8ac1fbea-bfd1-11e4-81ad-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"8ac1fbea-bfd1-11e4-81ad-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.503878' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "99YpOYXfe_67E8DkhevKSb4oRBaUwTBI3dmqUBWMyhY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.505403"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.506558"], ["id", "8abf6e2a-bfd1-11e4-9a87-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8abe57b0-bfd1-11e4-ae47-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8abe57b0-bfd1-11e4-ae47-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8abe57b0-bfd1-11e4-ae47-705681abff85' LIMIT 1 [["organization_id", "8abfe67a-bfd1-11e4-8c61-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8abfe67a-bfd1-11e4-8c61-705681abff85"], ["id", "8ac1fbea-bfd1-11e4-81ad-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8abf0336-bfd1-11e4-b983-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8abfe67a-bfd1-11e4-8c61-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8abf0336-bfd1-11e4-b983-705681abff85' AND "clubhouse_memberships"."id" != '8ac1fbea-bfd1-11e4-81ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '8abfe67a-bfd1-11e4-8c61-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:12:22.515226"], ["id", "8ac1fbea-bfd1-11e4-81ad-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 2.2ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$aUfjjk7ONlOmFM5pTjMw5.xAJSLER6tVocpSdxdoULsMALX5jY6xe"], ["created_at", "2015-03-01 05:12:22.529123"], ["updated_at", "2015-03-01 05:12:22.529123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$0IE5tohAyAExspuKttmO9uRvJcj2NpfoNnk6BL.7QMe2kiIW8oV5u"], ["created_at", "2015-03-01 05:12:22.533959"], ["updated_at", "2015-03-01 05:12:22.533959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.535833"], ["user_id", "8ac69740-bfd1-11e4-b657-705681abff85"], ["created_at", "2015-03-01 05:12:22.536622"], ["updated_at", "2015-03-01 05:12:22.536622"], ["token", "BnjNfGKVG-n7I3EZgfJnsQKQVhwWkrh2B08eWrrDJ2U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.540223"], ["updated_at", "2015-03-01 05:12:22.540223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ac69740-bfd1-11e4-b657-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ac845ea-bfd1-11e4-9f14-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ac69740-bfd1-11e4-b657-705681abff85"], ["organization_id", "8ac845ea-bfd1-11e4-9f14-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.543555"], ["updated_at", "2015-03-01 05:12:22.543555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ac75888-bfd1-11e4-adb3-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ac845ea-bfd1-11e4-9f14-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8ac75888-bfd1-11e4-adb3-705681abff85"], ["organization_id", "8ac845ea-bfd1-11e4-9f14-705681abff85"], ["created_at", "2015-03-01 05:12:22.546687"], ["updated_at", "2015-03-01 05:12:22.546687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.551183' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BnjNfGKVG-n7I3EZgfJnsQKQVhwWkrh2B08eWrrDJ2U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.552753"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.553686"], ["id", "8ac7c322-bfd1-11e4-88bc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8ac69740-bfd1-11e4-b657-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8ac69740-bfd1-11e4-b657-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8ac69740-bfd1-11e4-b657-705681abff85' LIMIT 1 [["organization_id", "8ac845ea-bfd1-11e4-9f14-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "8ac845ea-bfd1-11e4-9f14-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8ac845ea-bfd1-11e4-9f14-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8ac69740-bfd1-11e4-b657-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8ac845ea-bfd1-11e4-9f14-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8ac75888-bfd1-11e4-adb3-705681abff85"]] Completed 200 OK in 13ms (Views: 4.8ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$sQy25LVqsmCwE0NxAZ34BuIjBIjciZzkgE0rCwWZk.VbYONehsPMu"], ["created_at", "2015-03-01 05:12:22.573447"], ["updated_at", "2015-03-01 05:12:22.573447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$q0iIxV3AzwfT7M6GZTU05eNTc/0bvWKz9gQtp4UEkrynbMaFqCr/G"], ["created_at", "2015-03-01 05:12:22.578699"], ["updated_at", "2015-03-01 05:12:22.578699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.580443"], ["user_id", "8acd63cc-bfd1-11e4-bd45-705681abff85"], ["created_at", "2015-03-01 05:12:22.581194"], ["updated_at", "2015-03-01 05:12:22.581194"], ["token", "fkzioaW3d8JHt4wv3mE4t47DA6YlI9t6GGlLg9SawbE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.584837"], ["updated_at", "2015-03-01 05:12:22.584837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8acd63cc-bfd1-11e4-bd45-705681abff85' AND "clubhouse_memberships"."organization_id" = '8acf173a-bfd1-11e4-b656-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8acd63cc-bfd1-11e4-bd45-705681abff85"], ["organization_id", "8acf173a-bfd1-11e4-b656-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.588267"], ["updated_at", "2015-03-01 05:12:22.588267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ace29ce-bfd1-11e4-ab41-705681abff85' AND "clubhouse_memberships"."organization_id" = '8acf173a-bfd1-11e4-b656-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8ace29ce-bfd1-11e4-ab41-705681abff85"], ["organization_id", "8acf173a-bfd1-11e4-b656-705681abff85"], ["created_at", "2015-03-01 05:12:22.591337"], ["updated_at", "2015-03-01 05:12:22.591337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/8ad01270-bfd1-11e4-8207-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"8ad01270-bfd1-11e4-8207-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.595804' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fkzioaW3d8JHt4wv3mE4t47DA6YlI9t6GGlLg9SawbE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.597225"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.598157"], ["id", "8ace8f2c-bfd1-11e4-b180-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8acd63cc-bfd1-11e4-bd45-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8acd63cc-bfd1-11e4-bd45-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8acd63cc-bfd1-11e4-bd45-705681abff85' LIMIT 1 [["organization_id", "8acf173a-bfd1-11e4-b656-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8acf173a-bfd1-11e4-b656-705681abff85"], ["id", "8ad01270-bfd1-11e4-8207-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8acf173a-bfd1-11e4-b656-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8ace29ce-bfd1-11e4-ab41-705681abff85"]] Completed 200 OK in 11ms (Views: 2.5ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$hUJsdzaS2O2F5kqjg.xYCu4R/VJIibC1JDueqs7eM/lmT95PTPMWS"], ["created_at", "2015-03-01 05:12:22.612709"], ["updated_at", "2015-03-01 05:12:22.612709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$B5G6zylptF9eCE9uano7seHb3wlXEN1FL5FeSZUJhFqNlQ8cDwWeq"], ["created_at", "2015-03-01 05:12:22.617235"], ["updated_at", "2015-03-01 05:12:22.617235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.619146"], ["user_id", "8ad35a02-bfd1-11e4-b392-705681abff85"], ["created_at", "2015-03-01 05:12:22.620276"], ["updated_at", "2015-03-01 05:12:22.620276"], ["token", "GimCtvKu6ZMrXIPywNFV5ZArguB5YWGPLVYJ0cq9bEI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.624052"], ["updated_at", "2015-03-01 05:12:22.624052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ad35a02-bfd1-11e4-b392-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ad510e0-bfd1-11e4-9c15-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ad35a02-bfd1-11e4-b392-705681abff85"], ["organization_id", "8ad510e0-bfd1-11e4-9c15-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.627321"], ["updated_at", "2015-03-01 05:12:22.627321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ad40a88-bfd1-11e4-8e70-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ad510e0-bfd1-11e4-9c15-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8ad40a88-bfd1-11e4-8e70-705681abff85"], ["organization_id", "8ad510e0-bfd1-11e4-9c15-705681abff85"], ["created_at", "2015-03-01 05:12:22.630759"], ["updated_at", "2015-03-01 05:12:22.630759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$vqXv4lmbdhslcWU2NImlceXZFPCNy1aX9xWfFo9XgC50UcHxW0P8m"], ["created_at", "2015-03-01 05:12:22.643073"], ["updated_at", "2015-03-01 05:12:22.643073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$znn5iCZDW6Z/IabHQsyzVuV0NxeqReeUi44TO7eOzFYiu8EOVugba"], ["created_at", "2015-03-01 05:12:22.647455"], ["updated_at", "2015-03-01 05:12:22.647455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.649057"], ["user_id", "8ad7fc1a-bfd1-11e4-81cb-705681abff85"], ["created_at", "2015-03-01 05:12:22.649845"], ["updated_at", "2015-03-01 05:12:22.649845"], ["token", "OuXiZ0buxz7g-RcZZsqBtqlQTbUnLAM3nFShpxw4oEk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.653612"], ["updated_at", "2015-03-01 05:12:22.653612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ad7fc1a-bfd1-11e4-81cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ad9a718-bfd1-11e4-8bcb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ad7fc1a-bfd1-11e4-81cb-705681abff85"], ["organization_id", "8ad9a718-bfd1-11e4-8bcb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.658986"], ["updated_at", "2015-03-01 05:12:22.658986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ad8a3f4-bfd1-11e4-ad49-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ad9a718-bfd1-11e4-8bcb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8ad8a3f4-bfd1-11e4-ad49-705681abff85"], ["organization_id", "8ad9a718-bfd1-11e4-8bcb-705681abff85"], ["created_at", "2015-03-01 05:12:22.662393"], ["updated_at", "2015-03-01 05:12:22.662393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$RIi4bf9kNkihLMfJh.0Gl.P4yVDfwW6UbPJqFLLsLqVfdHiEHvHWy"], ["created_at", "2015-03-01 05:12:22.667316"], ["updated_at", "2015-03-01 05:12:22.667316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.669435"], ["user_id", "8adbb03a-bfd1-11e4-996b-705681abff85"], ["created_at", "2015-03-01 05:12:22.670431"], ["updated_at", "2015-03-01 05:12:22.670431"], ["token", "Gk_QfVr0CozimGDfu1osFufS5HsujScBiMiyZbAbH98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8ad9a718-bfd1-11e4-8bcb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "8ad9a718-bfd1-11e4-8bcb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.680240"], ["updated_at", "2015-03-01 05:12:22.680240"], ["token", "U17yiFC1Pw0cPmEAv5HJU80g0bvnRV1uMtzqbCG3Sso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$l7x5mUj13wFByEbx2hF7muw8VaTcmw5in9oH.F9ekzlwnrLYORoSO"], ["created_at", "2015-03-01 05:12:22.694926"], ["updated_at", "2015-03-01 05:12:22.694926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$Db4la3/QQHUuOFfEetXTt.w/Fs54FY8QhSK5xmxfqW/yZlcfDtTWa"], ["created_at", "2015-03-01 05:12:22.699251"], ["updated_at", "2015-03-01 05:12:22.699251"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.701248"], ["user_id", "8adfe704-bfd1-11e4-bcab-705681abff85"], ["created_at", "2015-03-01 05:12:22.702775"], ["updated_at", "2015-03-01 05:12:22.702775"], ["token", "Pnxrqg9mj-YOi39LtsY91gWDo5q1mgE7ayg_tBAiJWM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.707255"], ["updated_at", "2015-03-01 05:12:22.707255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8adfe704-bfd1-11e4-bcab-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ae1c2fe-bfd1-11e4-975f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8adfe704-bfd1-11e4-bcab-705681abff85"], ["organization_id", "8ae1c2fe-bfd1-11e4-975f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.710485"], ["updated_at", "2015-03-01 05:12:22.710485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ae08902-bfd1-11e4-b9de-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ae1c2fe-bfd1-11e4-975f-705681abff85') LIMIT 1 SQL (4.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8ae08902-bfd1-11e4-b9de-705681abff85"], ["organization_id", "8ae1c2fe-bfd1-11e4-975f-705681abff85"], ["created_at", "2015-03-01 05:12:22.713647"], ["updated_at", "2015-03-01 05:12:22.713647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$dGaXPeSnEwPp/C8QYtJ5aeto84Q1Y.HHdkoHJ0uHIj7UqXzmmvkKW"], ["created_at", "2015-03-01 05:12:22.722443"], ["updated_at", "2015-03-01 05:12:22.722443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.724031"], ["user_id", "8ae416f8-bfd1-11e4-8967-705681abff85"], ["created_at", "2015-03-01 05:12:22.724836"], ["updated_at", "2015-03-01 05:12:22.724836"], ["token", "Hwy0raXHilko492U_z_8rtG-N9-B1CJ9Iwv8PTT-XqA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '8ae1c2fe-bfd1-11e4-975f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "8ae1c2fe-bfd1-11e4-975f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.729114"], ["updated_at", "2015-03-01 05:12:22.729114"], ["token", "jLeVpg4SZnkx8aNHJKPT46Z0oO29NO05OKDfEm3RHuI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.734391' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Hwy0raXHilko492U_z_8rtG-N9-B1CJ9Iwv8PTT-XqA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.736118"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.737345"], ["id", "8ae48390-bfd1-11e4-8d21-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8ae416f8-bfd1-11e4-8967-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8ae416f8-bfd1-11e4-8967-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$a3hKrL4e2lOQJ7g/5pz38OjmRz1T4e9Hs3wnA7KbHnmlxLGih2HNO"], ["created_at", "2015-03-01 05:12:22.750119"], ["updated_at", "2015-03-01 05:12:22.750119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$pDTgYbkF.p5Xksgasj506ecDPDAxzxda2aqH08I0UjgIWvBf93k5u"], ["created_at", "2015-03-01 05:12:22.754689"], ["updated_at", "2015-03-01 05:12:22.754689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.756236"], ["user_id", "8ae85380-bfd1-11e4-a799-705681abff85"], ["created_at", "2015-03-01 05:12:22.757004"], ["updated_at", "2015-03-01 05:12:22.757004"], ["token", "Wd6qhGkxQHD8eZgnMm3BGGlf9smo4kjLJRZ-0glli38"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.760624"], ["updated_at", "2015-03-01 05:12:22.760624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ae85380-bfd1-11e4-a799-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ae9e8bc-bfd1-11e4-a778-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ae85380-bfd1-11e4-a799-705681abff85"], ["organization_id", "8ae9e8bc-bfd1-11e4-a778-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.763994"], ["updated_at", "2015-03-01 05:12:22.763994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ae8ffc4-bfd1-11e4-bd02-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ae9e8bc-bfd1-11e4-a778-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8ae8ffc4-bfd1-11e4-bd02-705681abff85"], ["organization_id", "8ae9e8bc-bfd1-11e4-a778-705681abff85"], ["created_at", "2015-03-01 05:12:22.767259"], ["updated_at", "2015-03-01 05:12:22.767259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$3oEUbaJSliqfTNNIQht2w.jqWM9407ILmCGjwnlt19k5tb3uZoDKe"], ["created_at", "2015-03-01 05:12:22.772050"], ["updated_at", "2015-03-01 05:12:22.772050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.773609"], ["user_id", "8aeba7e2-bfd1-11e4-9a9b-705681abff85"], ["created_at", "2015-03-01 05:12:22.774391"], ["updated_at", "2015-03-01 05:12:22.774391"], ["token", "A9Vu1rMFl8XqG6ekClHwKAUltwD5oOrhF7I9UKMlZTc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '8ae9e8bc-bfd1-11e4-a778-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "8ae9e8bc-bfd1-11e4-a778-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.781033"], ["updated_at", "2015-03-01 05:12:22.781033"], ["token", "10YCA1KRwHPLZ9ZpQEnp7X5KlWLcXQKhedOPFi7yHFU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"10YCA1KRwHPLZ9ZpQEnp7X5KlWLcXQKhedOPFi7yHFU", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.787856' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A9Vu1rMFl8XqG6ekClHwKAUltwD5oOrhF7I9UKMlZTc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.789751"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.790761"], ["id", "8aec0b10-bfd1-11e4-8743-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8aeba7e2-bfd1-11e4-9a9b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8aeba7e2-bfd1-11e4-9a9b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "10YCA1KRwHPLZ9ZpQEnp7X5KlWLcXQKhedOPFi7yHFU"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8ae9e8bc-bfd1-11e4-a778-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8ae9e8bc-bfd1-11e4-a778-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8aeba7e2-bfd1-11e4-9a9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ae9e8bc-bfd1-11e4-a778-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8aeba7e2-bfd1-11e4-9a9b-705681abff85"], ["admin", "t"], ["organization_id", "8ae9e8bc-bfd1-11e4-a778-705681abff85"], ["created_at", "2015-03-01 05:12:22.798639"], ["updated_at", "2015-03-01 05:12:22.798639"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "8aed17bc-bfd1-11e4-9c72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.2ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$dz1TfA99fleUzyuE36iBduiIWOzNtC/DwDhQGD1xI1a3gaB8yyBJy"], ["created_at", "2015-03-01 05:12:22.808909"], ["updated_at", "2015-03-01 05:12:22.808909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$FgKXSENJyFCO/h0Ps.Yf8..BX5Lvh148mTJPDBo6Hs8fwm5O9VBve"], ["created_at", "2015-03-01 05:12:22.813402"], ["updated_at", "2015-03-01 05:12:22.813402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.814961"], ["user_id", "8af147a6-bfd1-11e4-a361-705681abff85"], ["created_at", "2015-03-01 05:12:22.815836"], ["updated_at", "2015-03-01 05:12:22.815836"], ["token", "PoS-Z0TukjDOXN-ral4o5xCvtCIYoZIfs6WG3CaVTK4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.819356"], ["updated_at", "2015-03-01 05:12:22.819356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8af147a6-bfd1-11e4-a361-705681abff85' AND "clubhouse_memberships"."organization_id" = '8af2de68-bfd1-11e4-8c37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8af147a6-bfd1-11e4-a361-705681abff85"], ["organization_id", "8af2de68-bfd1-11e4-8c37-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.822697"], ["updated_at", "2015-03-01 05:12:22.822697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8af1f5a2-bfd1-11e4-b18f-705681abff85' AND "clubhouse_memberships"."organization_id" = '8af2de68-bfd1-11e4-8c37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8af1f5a2-bfd1-11e4-b18f-705681abff85"], ["organization_id", "8af2de68-bfd1-11e4-8c37-705681abff85"], ["created_at", "2015-03-01 05:12:22.825962"], ["updated_at", "2015-03-01 05:12:22.825962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:22.830318' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PoS-Z0TukjDOXN-ral4o5xCvtCIYoZIfs6WG3CaVTK4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:22.831960"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:22.833030"], ["id", "8af25f42-bfd1-11e4-a98e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8af147a6-bfd1-11e4-a361-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8af147a6-bfd1-11e4-a361-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8af147a6-bfd1-11e4-a361-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "8af147a6-bfd1-11e4-a361-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8af2de68-bfd1-11e4-8c37-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8af147a6-bfd1-11e4-a361-705681abff85"]] Completed 200 OK in 19ms (Views: 3.0ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.865213"], ["updated_at", "2015-03-01 05:12:22.865213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8af9f0fe-bfd1-11e4-8cc2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "8af9f0fe-bfd1-11e4-8cc2-705681abff85"], ["created_at", "2015-03-01 05:12:22.869135"], ["updated_at", "2015-03-01 05:12:22.869135"], ["token", "bNuw77Iy9TEPoLzusrdt63mRDDwifDuycoKbI5DxDz0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.874441"], ["updated_at", "2015-03-01 05:12:22.874441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '8afb460c-bfd1-11e4-b734-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "8afb460c-bfd1-11e4-b734-705681abff85"], ["created_at", "2015-03-01 05:12:22.877349"], ["updated_at", "2015-03-01 05:12:22.877349"], ["token", "BJvEBZEUu7KS1XUx-sZkKOGRtSv5uFG-4uqfeYSALrE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8afb460c-bfd1-11e4-b734-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '8afb460c-bfd1-11e4-b734-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8afb460c-bfd1-11e4-b734-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '8afb460c-bfd1-11e4-b734-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.897011"], ["updated_at", "2015-03-01 05:12:22.897011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.901415"], ["updated_at", "2015-03-01 05:12:22.901415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.937203"], ["updated_at", "2015-03-01 05:12:22.937203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.942647"], ["updated_at", "2015-03-01 05:12:22.942647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "8b05b2e0-bfd1-11e4-8940-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$HmY5C4Up7VecqJPvOhNLne86jd3/xY6BWy7wxJZy3S0Wh7/DhuGgK"], ["created_at", "2015-03-01 05:12:22.949431"], ["updated_at", "2015-03-01 05:12:22.949431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.951035"], ["user_id", "8b06b906-bfd1-11e4-9c90-705681abff85"], ["created_at", "2015-03-01 05:12:22.951944"], ["updated_at", "2015-03-01 05:12:22.951944"], ["token", "y7biuV3c7_A-5HAvQbA-ImcbDCUWFes1-hadFbEudOs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.957089"], ["updated_at", "2015-03-01 05:12:22.957089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b06b906-bfd1-11e4-9c90-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b07e61e-bfd1-11e4-8920-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b06b906-bfd1-11e4-9c90-705681abff85"], ["organization_id", "8b07e61e-bfd1-11e4-8920-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.960645"], ["updated_at", "2015-03-01 05:12:22.960645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '8b07e61e-bfd1-11e4-8920-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "8b07e61e-bfd1-11e4-8920-705681abff85"], ["created_at", "2015-03-01 05:12:22.964238"], ["updated_at", "2015-03-01 05:12:22.964238"], ["token", "6hqsaBirdXkwxl1v26HdurQM27sVshjPMxEGbjS_lYM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:22 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$t0Cw2BjzKP4ET7oviZqMY.ziz2RC/sYKluMgwOJPjIqUO2Uz4rfBS"], ["created_at", "2015-03-01 05:12:22.986002"], ["updated_at", "2015-03-01 05:12:22.986002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:22.987827"], ["user_id", "8b0c52ee-bfd1-11e4-9f0f-705681abff85"], ["created_at", "2015-03-01 05:12:22.988611"], ["updated_at", "2015-03-01 05:12:22.988611"], ["token", "qWx0eaZ8OJWcEsdL95J-evpQpNH9Xk7D0ZD2RY2aw3o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:22.992475"], ["updated_at", "2015-03-01 05:12:22.992475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b0c52ee-bfd1-11e4-9f0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b0d4c6c-bfd1-11e4-88e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b0c52ee-bfd1-11e4-9f0f-705681abff85"], ["organization_id", "8b0d4c6c-bfd1-11e4-88e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:22.996004"], ["updated_at", "2015-03-01 05:12:22.996004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '8b0d4c6c-bfd1-11e4-88e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "8b0d4c6c-bfd1-11e4-88e9-705681abff85"], ["created_at", "2015-03-01 05:12:22.999629"], ["updated_at", "2015-03-01 05:12:22.999629"], ["token", "gLz-l3eTXIcgNpROohp9LB9kN8DtGCAp8EHqm4OozhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:23.005599' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qWx0eaZ8OJWcEsdL95J-evpQpNH9Xk7D0ZD2RY2aw3o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:23.007094"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:23.008130"], ["id", "8b0cbc0c-bfd1-11e4-9d96-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b0c52ee-bfd1-11e4-9f0f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b0c52ee-bfd1-11e4-9f0f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8b0c52ee-bfd1-11e4-9f0f-705681abff85' LIMIT 1 [["organization_id", "8b0d4c6c-bfd1-11e4-88e9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b0d4c6c-bfd1-11e4-88e9-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '8b0d4c6c-bfd1-11e4-88e9-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$hsMu3eB9.irxwqHziAKrnO8BL5LQ0DqWb89Z5KXWDaLdfPlN3jUWG"], ["created_at", "2015-03-01 05:12:23.026129"], ["updated_at", "2015-03-01 05:12:23.026129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:23.028196"], ["user_id", "8b12794e-bfd1-11e4-8d34-705681abff85"], ["created_at", "2015-03-01 05:12:23.028977"], ["updated_at", "2015-03-01 05:12:23.028977"], ["token", "W7BQHZCdU_6KS0Y6LtdeKZjGwXCY25o3Ga_YGtHBe7U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.032478"], ["updated_at", "2015-03-01 05:12:23.032478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b12794e-bfd1-11e4-8d34-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b13648a-bfd1-11e4-addd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b12794e-bfd1-11e4-8d34-705681abff85"], ["organization_id", "8b13648a-bfd1-11e4-addd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:23.036250"], ["updated_at", "2015-03-01 05:12:23.036250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '8b13648a-bfd1-11e4-addd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "8b13648a-bfd1-11e4-addd-705681abff85"], ["created_at", "2015-03-01 05:12:23.040252"], ["updated_at", "2015-03-01 05:12:23.040252"], ["token", "irHjOGhNpVfLWeJtR8VqgNglVDK4_OKCE4Bw6hsmNos"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:23.045083' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "W7BQHZCdU_6KS0Y6LtdeKZjGwXCY25o3Ga_YGtHBe7U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (4.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:23.047123"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:23.048342"], ["id", "8b12e2bc-bfd1-11e4-aea4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b12794e-bfd1-11e4-8d34-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b12794e-bfd1-11e4-8d34-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8b12794e-bfd1-11e4-8d34-705681abff85' LIMIT 1 [["organization_id", "8b13648a-bfd1-11e4-addd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b13648a-bfd1-11e4-addd-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8b13648a-bfd1-11e4-addd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "8b13648a-bfd1-11e4-addd-705681abff85"], ["created_at", "2015-03-01 05:12:23.061948"], ["updated_at", "2015-03-01 05:12:23.061948"], ["token", "Uzcd4Mi-MmtGj8KWmmTrMnnUzNQLau5clit0gGSR8gI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f37e039e-f5d6-42aa-b4f5-e59bdb91e502) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8b17f1d0-bfd1-11e4-9584-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8b17f1d0-bfd1-11e4-9584-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [f37e039e-f5d6-42aa-b4f5-e59bdb91e502] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8b17f1d0-bfd1-11e4-9584-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [f37e039e-f5d6-42aa-b4f5-e59bdb91e502] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b13648a-bfd1-11e4-addd-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [f37e039e-f5d6-42aa-b4f5-e59bdb91e502] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [f37e039e-f5d6-42aa-b4f5-e59bdb91e502] Clubhouse::Mailer#invitation: processed outbound mail in 257.0ms [ActiveJob] [ActionMailer::DeliveryJob] [f37e039e-f5d6-42aa-b4f5-e59bdb91e502] Sent mail to email@example.com (8.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [f37e039e-f5d6-42aa-b4f5-e59bdb91e502] Date: Sat, 28 Feb 2015 21:12:23 -0800 From: from@example.com To: email@example.com Message-ID: <54f29fb755419_132233ff045c13bec9199e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Uzcd4Mi-MmtGj8KWmmTrMnnUzNQLau5clit0gGSR8gI If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [f37e039e-f5d6-42aa-b4f5-e59bdb91e502] Performed ActionMailer::DeliveryJob from Inline(mailers) in 265.58ms Completed 201 Created in 310ms (Views: 2.0ms | ActiveRecord: 7.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$1P0m/Y1CCaHRodCbjbL1PerxQ5OXW.z/JdB1MJi4Z51BGFuEqRCNq"], ["created_at", "2015-03-01 05:12:23.362119"], ["updated_at", "2015-03-01 05:12:23.362119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:23.363776"], ["user_id", "8b45b2be-bfd1-11e4-90d6-705681abff85"], ["created_at", "2015-03-01 05:12:23.364571"], ["updated_at", "2015-03-01 05:12:23.364571"], ["token", "8t24yTjJXFVAm6es2m5-h-HabcElaZIDuR_Zo1FFNUU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.367881"], ["updated_at", "2015-03-01 05:12:23.367881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b45b2be-bfd1-11e4-90d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b4691fc-bfd1-11e4-90cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b45b2be-bfd1-11e4-90d6-705681abff85"], ["organization_id", "8b4691fc-bfd1-11e4-90cf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:23.371473"], ["updated_at", "2015-03-01 05:12:23.371473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '8b4691fc-bfd1-11e4-90cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "8b4691fc-bfd1-11e4-90cf-705681abff85"], ["created_at", "2015-03-01 05:12:23.375077"], ["updated_at", "2015-03-01 05:12:23.375077"], ["token", "3v_04uxBFcSa7TyHf97vv6LFNwXCZlN39AJwxFHUgvI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:23.380171' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8t24yTjJXFVAm6es2m5-h-HabcElaZIDuR_Zo1FFNUU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:23.381840"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:23.382826"], ["id", "8b461524-bfd1-11e4-95f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b45b2be-bfd1-11e4-90d6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b45b2be-bfd1-11e4-90d6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8b45b2be-bfd1-11e4-90d6-705681abff85' LIMIT 1 [["organization_id", "8b4691fc-bfd1-11e4-90cf-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b4691fc-bfd1-11e4-90cf-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8b4691fc-bfd1-11e4-90cf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "8b4691fc-bfd1-11e4-90cf-705681abff85"], ["created_at", "2015-03-01 05:12:23.391491"], ["updated_at", "2015-03-01 05:12:23.391491"], ["token", "LO_CnDbBPvQVeWW9jHlg4uwbJ1Qkw7hbq68DPlaOBKI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 050767e9-f84d-49ca-b98a-7d4948352b80) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8b4a3442-bfd1-11e4-b214-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8b4a3442-bfd1-11e4-b214-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [050767e9-f84d-49ca-b98a-7d4948352b80] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8b4a3442-bfd1-11e4-b214-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [050767e9-f84d-49ca-b98a-7d4948352b80] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b4691fc-bfd1-11e4-90cf-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [050767e9-f84d-49ca-b98a-7d4948352b80] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [050767e9-f84d-49ca-b98a-7d4948352b80] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [050767e9-f84d-49ca-b98a-7d4948352b80] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [050767e9-f84d-49ca-b98a-7d4948352b80] Date: Sat, 28 Feb 2015 21:12:23 -0800 From: from@example.com To: email@example.com Message-ID: <54f29fb761b7b_132233ff045c13bec92078@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/LO_CnDbBPvQVeWW9jHlg4uwbJ1Qkw7hbq68DPlaOBKI If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [050767e9-f84d-49ca-b98a-7d4948352b80] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.01ms Completed 201 Created in 22ms (Views: 0.9ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$TXWXB.t4PutHLFiagTPT/.Lj8pVhfVT2Q0XmlVTnIGatzYtDGFJem"], ["created_at", "2015-03-01 05:12:23.409424"], ["updated_at", "2015-03-01 05:12:23.409424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:23.410961"], ["user_id", "8b4ce818-bfd1-11e4-9055-705681abff85"], ["created_at", "2015-03-01 05:12:23.411824"], ["updated_at", "2015-03-01 05:12:23.411824"], ["token", "8Otr3StQLyk8NYkI_1uuzVfmJymyzRxeU-aqaIZSNS4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.415104"], ["updated_at", "2015-03-01 05:12:23.415104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b4ce818-bfd1-11e4-9055-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b4dc666-bfd1-11e4-b3fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b4ce818-bfd1-11e4-9055-705681abff85"], ["organization_id", "8b4dc666-bfd1-11e4-b3fe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:23.421277"], ["updated_at", "2015-03-01 05:12:23.421277"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '8b4dc666-bfd1-11e4-b3fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "8b4dc666-bfd1-11e4-b3fe-705681abff85"], ["created_at", "2015-03-01 05:12:23.425007"], ["updated_at", "2015-03-01 05:12:23.425007"], ["token", "GGGQExrDes5ki7ii-3WKGP9IfzhEEWJuRhmjFh2Fw8Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/8b4f4b62-bfd1-11e4-96cd-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"8b4f4b62-bfd1-11e4-96cd-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:23.429993' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8Otr3StQLyk8NYkI_1uuzVfmJymyzRxeU-aqaIZSNS4"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:23.431395"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:23.433268"], ["id", "8b4d4c36-bfd1-11e4-95d1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b4ce818-bfd1-11e4-9055-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b4ce818-bfd1-11e4-9055-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8b4ce818-bfd1-11e4-9055-705681abff85' LIMIT 1 [["organization_id", "8b4dc666-bfd1-11e4-b3fe-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8b4dc666-bfd1-11e4-b3fe-705681abff85"], ["id", "8b4f4b62-bfd1-11e4-96cd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b4dc666-bfd1-11e4-b3fe-705681abff85"]] Completed 200 OK in 13ms (Views: 2.0ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$bVkDBwzLDrTbVLtUl0uHSe53/xg02MVG0GrCik4DM4x/UYH9obGgG"], ["created_at", "2015-03-01 05:12:23.448945"], ["updated_at", "2015-03-01 05:12:23.448945"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:23.451058"], ["user_id", "8b52f000-bfd1-11e4-90e9-705681abff85"], ["created_at", "2015-03-01 05:12:23.452508"], ["updated_at", "2015-03-01 05:12:23.452508"], ["token", "Vx0aNhqLsQnfhYYSNXf-kIJRPRviGm8u2vjNCBFQAEA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.457408"], ["updated_at", "2015-03-01 05:12:23.457408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b52f000-bfd1-11e4-90e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b544298-bfd1-11e4-9384-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b52f000-bfd1-11e4-90e9-705681abff85"], ["organization_id", "8b544298-bfd1-11e4-9384-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:23.460994"], ["updated_at", "2015-03-01 05:12:23.460994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '8b544298-bfd1-11e4-9384-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "8b544298-bfd1-11e4-9384-705681abff85"], ["created_at", "2015-03-01 05:12:23.464194"], ["updated_at", "2015-03-01 05:12:23.464194"], ["token", "U2VOXRDnyV0M0KlYHIjdQ-ZcvjPVYOYDHD3p3NqBdNs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$KsNGudfEntt9D2Ik2haL7OsnP6FBFRpkdfK8WuzV2pLioBcAk/Fjm"], ["created_at", "2015-03-01 05:12:23.476409"], ["updated_at", "2015-03-01 05:12:23.476409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:23.477955"], ["user_id", "8b572102-bfd1-11e4-bf0f-705681abff85"], ["created_at", "2015-03-01 05:12:23.478694"], ["updated_at", "2015-03-01 05:12:23.478694"], ["token", "HVkDxYgDzPzh4zAobexPSFo04A5Rtvk_7RA4li_O0EE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.482475"], ["updated_at", "2015-03-01 05:12:23.482475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b572102-bfd1-11e4-bf0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b580c16-bfd1-11e4-8497-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b572102-bfd1-11e4-bf0f-705681abff85"], ["organization_id", "8b580c16-bfd1-11e4-8497-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:23.485652"], ["updated_at", "2015-03-01 05:12:23.485652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '8b580c16-bfd1-11e4-8497-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "8b580c16-bfd1-11e4-8497-705681abff85"], ["created_at", "2015-03-01 05:12:23.489070"], ["updated_at", "2015-03-01 05:12:23.489070"], ["token", "6YUorXBWfB_DrTxnchSdXajRWX1I_g5EvkYWlSwgX90"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/8b5912dc-bfd1-11e4-b131-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8b5912dc-bfd1-11e4-b131-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:23.494330' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HVkDxYgDzPzh4zAobexPSFo04A5Rtvk_7RA4li_O0EE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:23.495742"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:23.496850"], ["id", "8b577e2c-bfd1-11e4-bd47-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b572102-bfd1-11e4-bf0f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b572102-bfd1-11e4-bf0f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8b572102-bfd1-11e4-bf0f-705681abff85' LIMIT 1 [["organization_id", "8b580c16-bfd1-11e4-8497-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8b580c16-bfd1-11e4-8497-705681abff85"], ["id", "8b5912dc-bfd1-11e4-b131-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "8b5912dc-bfd1-11e4-b131-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$x14Pd5ZUol0U.np68lBTuu29D1XcN52tt464TXqg5n0u4g4wjTq.a"], ["created_at", "2015-03-01 05:12:23.510511"], ["updated_at", "2015-03-01 05:12:23.510511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:23.512071"], ["user_id", "8b5c55be-bfd1-11e4-aae9-705681abff85"], ["created_at", "2015-03-01 05:12:23.512835"], ["updated_at", "2015-03-01 05:12:23.512835"], ["token", "J-c1Jz6zvd1OJbyilFXu50mxyjXqMIM-iArEAuOyEzo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.516845"], ["updated_at", "2015-03-01 05:12:23.516845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b5c55be-bfd1-11e4-aae9-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b5d4b04-bfd1-11e4-b8dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b5c55be-bfd1-11e4-aae9-705681abff85"], ["organization_id", "8b5d4b04-bfd1-11e4-b8dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:23.520007"], ["updated_at", "2015-03-01 05:12:23.520007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '8b5d4b04-bfd1-11e4-b8dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "8b5d4b04-bfd1-11e4-b8dc-705681abff85"], ["created_at", "2015-03-01 05:12:23.523634"], ["updated_at", "2015-03-01 05:12:23.523634"], ["token", "reChRXcF-3I0IoumtWsPdv6E8CWVIvCYrZnSAvq3Pyg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$YEnOddmE4myThG.9ZmwCXepwkrU9VXGicUlAFLXchCxLjmO/Yal0m"], ["created_at", "2015-03-01 05:12:23.540416"], ["updated_at", "2015-03-01 05:12:23.540416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:23.544619"], ["user_id", "8b60e5a2-bfd1-11e4-b52f-705681abff85"], ["created_at", "2015-03-01 05:12:23.546410"], ["updated_at", "2015-03-01 05:12:23.546410"], ["token", "RWOfrsPEu0E9SFVIhylvEH_bpWdQB3cmQ6VoGkVZ9QQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.550294"], ["updated_at", "2015-03-01 05:12:23.550294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b60e5a2-bfd1-11e4-b52f-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b626544-bfd1-11e4-b89f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b60e5a2-bfd1-11e4-b52f-705681abff85"], ["organization_id", "8b626544-bfd1-11e4-b89f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:23.553418"], ["updated_at", "2015-03-01 05:12:23.553418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '8b626544-bfd1-11e4-b89f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "8b626544-bfd1-11e4-b89f-705681abff85"], ["created_at", "2015-03-01 05:12:23.557027"], ["updated_at", "2015-03-01 05:12:23.557027"], ["token", "nzH3oSzInCLQn002V5t5pQsZD0zYs_h7wkhZE9lkwnA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/8b63812c-bfd1-11e4-b058-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"8b63812c-bfd1-11e4-b058-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:23.563021' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RWOfrsPEu0E9SFVIhylvEH_bpWdQB3cmQ6VoGkVZ9QQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:23.564431"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:23.565372"], ["id", "8b61df84-bfd1-11e4-a556-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b60e5a2-bfd1-11e4-b52f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b60e5a2-bfd1-11e4-b52f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8b60e5a2-bfd1-11e4-b52f-705681abff85' LIMIT 1 [["organization_id", "8b626544-bfd1-11e4-b89f-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8b626544-bfd1-11e4-b89f-705681abff85"], ["id", "8b63812c-bfd1-11e4-b058-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b626544-bfd1-11e4-b89f-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."id" != '8b63812c-bfd1-11e4-b058-705681abff85' AND "clubhouse_invitations"."organization_id" = '8b626544-bfd1-11e4-b89f-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:12:23.575277"], ["id", "8b63812c-bfd1-11e4-b058-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$fswFFf6xC1m3Mk0ZrzLw/eOw06w9Sow/.Vfx261Yy7pCJob29i3o2"], ["created_at", "2015-03-01 05:12:23.583661"], ["updated_at", "2015-03-01 05:12:23.583661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:23.585500"], ["user_id", "8b6786c8-bfd1-11e4-9cdd-705681abff85"], ["created_at", "2015-03-01 05:12:23.586264"], ["updated_at", "2015-03-01 05:12:23.586264"], ["token", "Mgpsk0lmtVg63yj0HSOlvNwi27uYd5Hpv4shvvvZdu8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.589501"], ["updated_at", "2015-03-01 05:12:23.589501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b6786c8-bfd1-11e4-9cdd-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b68648a-bfd1-11e4-b476-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b6786c8-bfd1-11e4-9cdd-705681abff85"], ["organization_id", "8b68648a-bfd1-11e4-b476-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:23.592907"], ["updated_at", "2015-03-01 05:12:23.592907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '8b68648a-bfd1-11e4-b476-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "8b68648a-bfd1-11e4-b476-705681abff85"], ["created_at", "2015-03-01 05:12:23.596182"], ["updated_at", "2015-03-01 05:12:23.596182"], ["token", "IWiiVPlYE-Zjz6QWg7HX4duWkz5nWGviOkwKnUFVLnY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$/GCQ.Ed503zwEvRhwamDJ.tykDamYKKBkkoCEjUYbbV5uCtJAHn3."], ["created_at", "2015-03-01 05:12:23.608552"], ["updated_at", "2015-03-01 05:12:23.608552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:23.610151"], ["user_id", "8b6b4b82-bfd1-11e4-9275-705681abff85"], ["created_at", "2015-03-01 05:12:23.610890"], ["updated_at", "2015-03-01 05:12:23.610890"], ["token", "oOqMPkE-9Nwbta2jA0ZKCP-cioxvWBqZsVbtcmDCEjA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.614026"], ["updated_at", "2015-03-01 05:12:23.614026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b6b4b82-bfd1-11e4-9275-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b6c253e-bfd1-11e4-916c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b6b4b82-bfd1-11e4-9275-705681abff85"], ["organization_id", "8b6c253e-bfd1-11e4-916c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:23.617720"], ["updated_at", "2015-03-01 05:12:23.617720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '8b6c253e-bfd1-11e4-916c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "8b6c253e-bfd1-11e4-916c-705681abff85"], ["created_at", "2015-03-01 05:12:23.621036"], ["updated_at", "2015-03-01 05:12:23.621036"], ["token", "mdVYB_eG2NRJ8ysNIVNwq56UjLZ-7Rs-rGiOCvqV4Nw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$1v563i3QQyUN6YdeHmA9WO4jos267SdFYLZQw48xneaH2jOojTRKS"], ["created_at", "2015-03-01 05:12:23.626394"], ["updated_at", "2015-03-01 05:12:23.626394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.629361"], ["updated_at", "2015-03-01 05:12:23.629361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b6e03e0-bfd1-11e4-b0ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b6e7456-bfd1-11e4-ace7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b6e03e0-bfd1-11e4-b0ed-705681abff85"], ["organization_id", "8b6e7456-bfd1-11e4-ace7-705681abff85"], ["created_at", "2015-03-01 05:12:23.632401"], ["updated_at", "2015-03-01 05:12:23.632401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:23.636905' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oOqMPkE-9Nwbta2jA0ZKCP-cioxvWBqZsVbtcmDCEjA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:23.638454"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:23.639459"], ["id", "8b6baa3c-bfd1-11e4-b3eb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b6b4b82-bfd1-11e4-9275-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b6b4b82-bfd1-11e4-9275-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8b6b4b82-bfd1-11e4-9275-705681abff85' LIMIT 1 [["organization_id", "8b6c253e-bfd1-11e4-916c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "8b6c253e-bfd1-11e4-916c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b6c253e-bfd1-11e4-916c-705681abff85"]] Completed 200 OK in 10ms (Views: 2.4ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$8cJBXwdh0Hk7jrZM1KjW.Ov13uFQDocsBIQP08zBRcDVSiz94LlUe"], ["created_at", "2015-03-01 05:12:23.653203"], ["updated_at", "2015-03-01 05:12:23.653203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:23.654757"], ["user_id", "8b721afc-bfd1-11e4-b51d-705681abff85"], ["created_at", "2015-03-01 05:12:23.655474"], ["updated_at", "2015-03-01 05:12:23.655474"], ["token", "e0gZHF9V2-MMWSOSa0q5muoejkZN4ggA-MkghVqyuaw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.658565"], ["updated_at", "2015-03-01 05:12:23.658565"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b721afc-bfd1-11e4-b51d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b72fcc4-bfd1-11e4-9954-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b721afc-bfd1-11e4-b51d-705681abff85"], ["organization_id", "8b72fcc4-bfd1-11e4-9954-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:23.663638"], ["updated_at", "2015-03-01 05:12:23.663638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '8b72fcc4-bfd1-11e4-9954-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "8b72fcc4-bfd1-11e4-9954-705681abff85"], ["created_at", "2015-03-01 05:12:23.667386"], ["updated_at", "2015-03-01 05:12:23.667386"], ["token", "yy505MCDFwLRef_7v1W8361bT-ihjMoKRtFRhqexvzg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$3z.7bOGYJP7Lsjmpcr78muLPpwQoWukx/dzg.EVG3r3iER4tN0WHO"], ["created_at", "2015-03-01 05:12:23.674922"], ["updated_at", "2015-03-01 05:12:23.674922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.678036"], ["updated_at", "2015-03-01 05:12:23.678036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b756b3a-bfd1-11e4-97d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b75e2b8-bfd1-11e4-8f9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b756b3a-bfd1-11e4-97d9-705681abff85"], ["organization_id", "8b75e2b8-bfd1-11e4-8f9e-705681abff85"], ["created_at", "2015-03-01 05:12:23.681056"], ["updated_at", "2015-03-01 05:12:23.681056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:23 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.694534"], ["updated_at", "2015-03-01 05:12:23.694534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8b7869a2-bfd1-11e4-a62f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8b7869a2-bfd1-11e4-a62f-705681abff85"], ["created_at", "2015-03-01 05:12:23.697895"], ["updated_at", "2015-03-01 05:12:23.697895"], ["token", "EqYVhE8BjctEgFoPh4DJEukSB7iAIM_ijTfaRPhdrsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.9ms) Date: Sat, 28 Feb 2015 21:12:23 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fb7ab37d_132233ff045c13bec921bd@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/EqYVhE8BjctEgFoPh4DJEukSB7iAIM_ijTfaRPhdrsA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.706250"], ["updated_at", "2015-03-01 05:12:23.706250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8b7a3520-bfd1-11e4-82fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8b7a3520-bfd1-11e4-82fc-705681abff85"], ["created_at", "2015-03-01 05:12:23.709785"], ["updated_at", "2015-03-01 05:12:23.709785"], ["token", "yRald2lAxVIlPNUUCfYG-akvmLuRozBs6VCa5sGtQzE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.0ms Sent mail to john@example.com (1.6ms) Date: Sat, 28 Feb 2015 21:12:23 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fb7ae161_132233ff045c13bec922b4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/yRald2lAxVIlPNUUCfYG-akvmLuRozBs6VCa5sGtQzE If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.717598"], ["updated_at", "2015-03-01 05:12:23.717598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8b7bedb6-bfd1-11e4-bd1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8b7bedb6-bfd1-11e4-bd1c-705681abff85"], ["created_at", "2015-03-01 05:12:23.720782"], ["updated_at", "2015-03-01 05:12:23.720782"], ["token", "x1UuJ0VrEiOqFFPWm2w4f-IWbekRYwguvz7hT52S2ng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 21:12:23 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fb7b0db3_132233ff045c13bec9236@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/x1UuJ0VrEiOqFFPWm2w4f-IWbekRYwguvz7hT52S2ng If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:23.729469"], ["updated_at", "2015-03-01 05:12:23.729469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8b7dc06e-bfd1-11e4-9fff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8b7dc06e-bfd1-11e4-9fff-705681abff85"], ["created_at", "2015-03-01 05:12:23.732905"], ["updated_at", "2015-03-01 05:12:23.732905"], ["token", "yMfo6NFGNtabw-7uDt7v6h7YEbWNN-RW5bAxXaA6o1c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.0ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 21:12:23 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fb7b3b4b_132233ff045c13bec92496@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/yMfo6NFGNtabw-7uDt7v6h7YEbWNN-RW5bAxXaA6o1c If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (27.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$qmtopxD71RygFNmxg/pqlO6eABNUk7SK1GUSzJLc7qR5kAC9cg7lW"], ["created_at", "2015-03-01 05:12:38.173575"], ["updated_at", "2015-03-01 05:12:38.173575"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (11.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.233742"], ["updated_at", "2015-03-01 05:12:38.233742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '941ab25e-bfd1-11e4-bd84-705681abff85' AND "clubhouse_memberships"."organization_id" = '94230f8a-bfd1-11e4-9805-705681abff85') LIMIT 1 SQL (7.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "941ab25e-bfd1-11e4-bd84-705681abff85"], ["organization_id", "94230f8a-bfd1-11e4-9805-705681abff85"], ["created_at", "2015-03-01 05:12:38.250409"], ["updated_at", "2015-03-01 05:12:38.250409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "941ab25e-bfd1-11e4-bd84-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "94230f8a-bfd1-11e4-9805-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '941ab25e-bfd1-11e4-bd84-705681abff85' AND "clubhouse_memberships"."organization_id" = '94230f8a-bfd1-11e4-9805-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "94230f8a-bfd1-11e4-9805-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '941ab25e-bfd1-11e4-bd84-705681abff85' AND "clubhouse_memberships"."organization_id" = '94230f8a-bfd1-11e4-9805-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.485208"], ["updated_at", "2015-03-01 05:12:38.485208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '94494e48-bfd1-11e4-93c7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "94494e48-bfd1-11e4-93c7-705681abff85"], ["created_at", "2015-03-01 05:12:38.503183"], ["updated_at", "2015-03-01 05:12:38.503183"], ["token", "bcfEFVTE7lM7hR7_KWC4xbWJPpNCwEIp3y8BSgjGAQY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) Clubhouse::Mailer#invitation: processed outbound mail in 18.8ms Sent mail to john@example.com (8.1ms) Date: Sat, 28 Feb 2015 21:12:38 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fc6818b6_132273fe909055be0447dd@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/bcfEFVTE7lM7hR7_KWC4xbWJPpNCwEIp3y8BSgjGAQY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.540112"], ["updated_at", "2015-03-01 05:12:38.540112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '9451ab7e-bfd1-11e4-90f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "9451ab7e-bfd1-11e4-90f2-705681abff85"], ["created_at", "2015-03-01 05:12:38.543677"], ["updated_at", "2015-03-01 05:12:38.543677"], ["token", "PLyQyh4cf07YYbT-d7pE3FTYA3ac85IQs4ObwGAVXqQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.8ms) Date: Sat, 28 Feb 2015 21:12:38 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fc685a1a_132273fe909055be044853@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/PLyQyh4cf07YYbT-d7pE3FTYA3ac85IQs4ObwGAVXqQ If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.552616"], ["updated_at", "2015-03-01 05:12:38.552616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '9453920e-bfd1-11e4-a1fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "9453920e-bfd1-11e4-a1fb-705681abff85"], ["created_at", "2015-03-01 05:12:38.556222"], ["updated_at", "2015-03-01 05:12:38.556222"], ["token", "xJmP5SG13dIIH0xIra8dTsEkDUEexx5eNnqNPo7Md84"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.9ms) Date: Sat, 28 Feb 2015 21:12:38 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fc688b87_132273fe909055be044931@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/xJmP5SG13dIIH0xIra8dTsEkDUEexx5eNnqNPo7Md84 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.567680"], ["updated_at", "2015-03-01 05:12:38.567680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '9455e928-bfd1-11e4-b179-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "9455e928-bfd1-11e4-b179-705681abff85"], ["created_at", "2015-03-01 05:12:38.573632"], ["updated_at", "2015-03-01 05:12:38.573632"], ["token", "m_QKOfnHUnokL27AXre-llKR7aSX08GX63KHV9k8lho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.6ms) Date: Sat, 28 Feb 2015 21:12:38 -0800 From: from@example.com To: john@example.com Message-ID: <54f29fc68cef5_132273fe909055be04507b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/m_QKOfnHUnokL27AXre-llKR7aSX08GX63KHV9k8lho If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$A2wl1viP3bNgXA/2jsAknephj9lsN3ntzRG5Q3jkfnq81.np878e2"], ["created_at", "2015-03-01 05:12:38.584896"], ["updated_at", "2015-03-01 05:12:38.584896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.594818"], ["user_id", "94588606-bfd1-11e4-a987-705681abff85"], ["created_at", "2015-03-01 05:12:38.595905"], ["updated_at", "2015-03-01 05:12:38.595905"], ["token", "8y1TzXUVqAXwe_zzxx9-IKYnjvcBYHbIFtnIR89FO8s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.607170"], ["updated_at", "2015-03-01 05:12:38.607170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94588606-bfd1-11e4-a987-705681abff85' AND "clubhouse_memberships"."organization_id" = '945be74c-bfd1-11e4-8887-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94588606-bfd1-11e4-a987-705681abff85"], ["organization_id", "945be74c-bfd1-11e4-8887-705681abff85"], ["created_at", "2015-03-01 05:12:38.610428"], ["updated_at", "2015-03-01 05:12:38.610428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$2oFaX.Djxv/AgvwAldWqyu7QX2KGUFgKCPpBzo6/heWvEpuNxlnJa"], ["created_at", "2015-03-01 05:12:38.643933"], ["updated_at", "2015-03-01 05:12:38.643933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.645497"], ["user_id", "946183a0-bfd1-11e4-a626-705681abff85"], ["created_at", "2015-03-01 05:12:38.646240"], ["updated_at", "2015-03-01 05:12:38.646240"], ["token", "65lL6C29jeYVAswtlFVMf3G0sGV51MSnhl5txP_5hRE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.649429"], ["updated_at", "2015-03-01 05:12:38.649429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '946183a0-bfd1-11e4-a626-705681abff85' AND "clubhouse_memberships"."organization_id" = '94626022-bfd1-11e4-b397-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "946183a0-bfd1-11e4-a626-705681abff85"], ["organization_id", "94626022-bfd1-11e4-b397-705681abff85"], ["created_at", "2015-03-01 05:12:38.652977"], ["updated_at", "2015-03-01 05:12:38.652977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-3" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-3", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:38.659505' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "65lL6C29jeYVAswtlFVMf3G0sGV51MSnhl5txP_5hRE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:38.665055"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:38.666231"], ["id", "9461e110-bfd1-11e4-9a92-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "946183a0-bfd1-11e4-a626-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "946183a0-bfd1-11e4-a626-705681abff85"], ["name", "org-3"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '94626022-bfd1-11e4-b397-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 30ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$L.OWydEcOQJl7gxqSUErq.sgU3ncpl9zyqq7MTXLmPWMZ6gfRELYK"], ["created_at", "2015-03-01 05:12:38.695319"], ["updated_at", "2015-03-01 05:12:38.695319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.697653"], ["user_id", "94696b88-bfd1-11e4-895c-705681abff85"], ["created_at", "2015-03-01 05:12:38.698430"], ["updated_at", "2015-03-01 05:12:38.698430"], ["token", "J4wXV3L_1SWkU-M_67K696wPFtO-fF5F4f-CvCPjtyQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.701960"], ["updated_at", "2015-03-01 05:12:38.701960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94696b88-bfd1-11e4-895c-705681abff85' AND "clubhouse_memberships"."organization_id" = '946a5a66-bfd1-11e4-82c0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94696b88-bfd1-11e4-895c-705681abff85"], ["organization_id", "946a5a66-bfd1-11e4-82c0-705681abff85"], ["created_at", "2015-03-01 05:12:38.704982"], ["updated_at", "2015-03-01 05:12:38.704982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-4" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-4", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:38.709296' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "J4wXV3L_1SWkU-M_67K696wPFtO-fF5F4f-CvCPjtyQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:38.710671"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:38.711566"], ["id", "9469df64-bfd1-11e4-a242-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94696b88-bfd1-11e4-895c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94696b88-bfd1-11e4-895c-705681abff85"], ["name", "org-4"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '946a5a66-bfd1-11e4-82c0-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 05:12:38.717738"], ["id", "946a5a66-bfd1-11e4-82c0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 1.5ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$VRXi.U9Ux67IEAp2v13ZF.wrUFF4pes6aAcGylA0lqk2nO/4UuH7K"], ["created_at", "2015-03-01 05:12:38.728802"], ["updated_at", "2015-03-01 05:12:38.728802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.730418"], ["user_id", "946e77d6-bfd1-11e4-9156-705681abff85"], ["created_at", "2015-03-01 05:12:38.731182"], ["updated_at", "2015-03-01 05:12:38.731182"], ["token", "nviCo2XFRd1le5whN4bSlVYs9bM-qwNp0X20foA9jKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.735130"], ["updated_at", "2015-03-01 05:12:38.735130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '946e77d6-bfd1-11e4-9156-705681abff85' AND "clubhouse_memberships"."organization_id" = '946f7cee-bfd1-11e4-9ba2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "946e77d6-bfd1-11e4-9156-705681abff85"], ["organization_id", "946f7cee-bfd1-11e4-9ba2-705681abff85"], ["created_at", "2015-03-01 05:12:38.738872"], ["updated_at", "2015-03-01 05:12:38.738872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-5" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:38.743794' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nviCo2XFRd1le5whN4bSlVYs9bM-qwNp0X20foA9jKg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:38.745261"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:38.746346"], ["id", "946ed848-bfd1-11e4-8ef5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "946e77d6-bfd1-11e4-9156-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "946e77d6-bfd1-11e4-9156-705681abff85"], ["name", "org-5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "946f7cee-bfd1-11e4-9ba2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 3.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Kk2qt3D8yhXZmCdtmAloqemIjEkFqfCCE0VW4Ds4FZ3uZYZZNJZei"], ["created_at", "2015-03-01 05:12:38.761689"], ["updated_at", "2015-03-01 05:12:38.761689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.763528"], ["user_id", "947380e6-bfd1-11e4-a97c-705681abff85"], ["created_at", "2015-03-01 05:12:38.764314"], ["updated_at", "2015-03-01 05:12:38.764314"], ["token", "rGy6QkJEdCd11Hsjp7S02MKltMLyvuICS7p-bU7LxpQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.767881"], ["updated_at", "2015-03-01 05:12:38.767881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '947380e6-bfd1-11e4-a97c-705681abff85' AND "clubhouse_memberships"."organization_id" = '94746cc2-bfd1-11e4-a9a9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "947380e6-bfd1-11e4-a97c-705681abff85"], ["organization_id", "94746cc2-bfd1-11e4-a9a9-705681abff85"], ["created_at", "2015-03-01 05:12:38.771512"], ["updated_at", "2015-03-01 05:12:38.771512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$E8Gq1hDjLBSMQYSHuWxqXOIeV4zA9enZcbLL84uKcyojSBoXlfeY2"], ["created_at", "2015-03-01 05:12:38.784893"], ["updated_at", "2015-03-01 05:12:38.784893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.787109"], ["user_id", "947719a4-bfd1-11e4-bfd0-705681abff85"], ["created_at", "2015-03-01 05:12:38.787904"], ["updated_at", "2015-03-01 05:12:38.787904"], ["token", "U83wSEvOVZXQ2NME3anRCzp0CDc_G0CciURTcM1uwok"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.791204"], ["updated_at", "2015-03-01 05:12:38.791204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '947719a4-bfd1-11e4-bfd0-705681abff85' AND "clubhouse_memberships"."organization_id" = '9477f7fc-bfd1-11e4-91ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "947719a4-bfd1-11e4-bfd0-705681abff85"], ["organization_id", "9477f7fc-bfd1-11e4-91ba-705681abff85"], ["created_at", "2015-03-01 05:12:38.794190"], ["updated_at", "2015-03-01 05:12:38.794190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$lg7HZaCBpYWCoSZuJ4PlxufC5zeDK7AdJsMJiMYDxkasf2GGhAI/6"], ["created_at", "2015-03-01 05:12:38.798335"], ["updated_at", "2015-03-01 05:12:38.798335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.801512"], ["updated_at", "2015-03-01 05:12:38.801512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94791204-bfd1-11e4-9440-705681abff85' AND "clubhouse_memberships"."organization_id" = '94798c20-bfd1-11e4-9d85-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94791204-bfd1-11e4-9440-705681abff85"], ["organization_id", "94798c20-bfd1-11e4-9d85-705681abff85"], ["created_at", "2015-03-01 05:12:38.804563"], ["updated_at", "2015-03-01 05:12:38.804563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:38.808966' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U83wSEvOVZXQ2NME3anRCzp0CDc_G0CciURTcM1uwok"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:38.810470"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:38.811637"], ["id", "9477843e-bfd1-11e4-9ff3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "947719a4-bfd1-11e4-bfd0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "947719a4-bfd1-11e4-bfd0-705681abff85"]] Completed 200 OK in 8ms (Views: 2.1ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$4fmOK.41.uvLza7ufGj0KuH.qi/17sbh1a00Z0GZXsLf3KFl405lK"], ["created_at", "2015-03-01 05:12:38.823001"], ["updated_at", "2015-03-01 05:12:38.823001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.824572"], ["user_id", "947cd510-bfd1-11e4-81ad-705681abff85"], ["created_at", "2015-03-01 05:12:38.825332"], ["updated_at", "2015-03-01 05:12:38.825332"], ["token", "JNuGXzMl3hEqdGDpfI8-62kI3SUgW6aYZ2ZfmvRId3s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.828882"], ["updated_at", "2015-03-01 05:12:38.828882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '947cd510-bfd1-11e4-81ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '947db8e0-bfd1-11e4-83ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "947cd510-bfd1-11e4-81ad-705681abff85"], ["organization_id", "947db8e0-bfd1-11e4-83ee-705681abff85"], ["created_at", "2015-03-01 05:12:38.832039"], ["updated_at", "2015-03-01 05:12:38.832039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$7/DeoQOP12gnyJvgMwAFA.zphBHog/tjKwcicJX0LwIrCzGWl56iS"], ["created_at", "2015-03-01 05:12:38.837321"], ["updated_at", "2015-03-01 05:12:38.837321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.840554"], ["updated_at", "2015-03-01 05:12:38.840554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '947f057e-bfd1-11e4-b0da-705681abff85' AND "clubhouse_memberships"."organization_id" = '947f8cc4-bfd1-11e4-b5c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "947f057e-bfd1-11e4-b0da-705681abff85"], ["organization_id", "947f8cc4-bfd1-11e4-b5c1-705681abff85"], ["created_at", "2015-03-01 05:12:38.844085"], ["updated_at", "2015-03-01 05:12:38.844085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$VjLJ1FePAB5zk.53D1iicuUtZyXQDqHb.znd8MKBMRfCLif0FhPyK"], ["created_at", "2015-03-01 05:12:38.856749"], ["updated_at", "2015-03-01 05:12:38.856749"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.858365"], ["user_id", "9481fb58-bfd1-11e4-b5b4-705681abff85"], ["created_at", "2015-03-01 05:12:38.859090"], ["updated_at", "2015-03-01 05:12:38.859090"], ["token", "Sp5BOKuPU9_KSs6QQmcHSEL-Rtjx-WWxd4_fchs189A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.862437"], ["updated_at", "2015-03-01 05:12:38.862437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9481fb58-bfd1-11e4-b5b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '9482d802-bfd1-11e4-a6fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9481fb58-bfd1-11e4-b5b4-705681abff85"], ["organization_id", "9482d802-bfd1-11e4-a6fe-705681abff85"], ["created_at", "2015-03-01 05:12:38.865540"], ["updated_at", "2015-03-01 05:12:38.865540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/9482d802-bfd1-11e4-a6fe-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"9482d802-bfd1-11e4-a6fe-705681abff85", "organization"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:38.870246' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Sp5BOKuPU9_KSs6QQmcHSEL-Rtjx-WWxd4_fchs189A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:38.872271"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:38.873624"], ["id", "94825b84-bfd1-11e4-b3e7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9481fb58-bfd1-11e4-b5b4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9481fb58-bfd1-11e4-b5b4-705681abff85"], ["id", "9482d802-bfd1-11e4-a6fe-705681abff85"]] Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$VGTCt/yWMP91zsrAG6zk6en8zIKxXu9hd.bi8ouYuPkVOJYjIjHFO"], ["created_at", "2015-03-01 05:12:38.885634"], ["updated_at", "2015-03-01 05:12:38.885634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.887312"], ["user_id", "94866508-bfd1-11e4-8ee1-705681abff85"], ["created_at", "2015-03-01 05:12:38.888252"], ["updated_at", "2015-03-01 05:12:38.888252"], ["token", "3sellouOB_lwywQZXeaHqySEmdNl7AQxjDM513n4GXo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.891604"], ["updated_at", "2015-03-01 05:12:38.891604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94866508-bfd1-11e4-8ee1-705681abff85' AND "clubhouse_memberships"."organization_id" = '94874ba8-bfd1-11e4-b601-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94866508-bfd1-11e4-8ee1-705681abff85"], ["organization_id", "94874ba8-bfd1-11e4-b601-705681abff85"], ["created_at", "2015-03-01 05:12:38.894749"], ["updated_at", "2015-03-01 05:12:38.894749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$DKdSmzFt3PhLUa.7plqBaux8Cr5t39/eXsfYxCDdBYVs75yBKEYzu"], ["created_at", "2015-03-01 05:12:38.907676"], ["updated_at", "2015-03-01 05:12:38.907676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.909271"], ["user_id", "9489c126-bfd1-11e4-8350-705681abff85"], ["created_at", "2015-03-01 05:12:38.910022"], ["updated_at", "2015-03-01 05:12:38.910022"], ["token", "kT3oRqwd1WR6szzNw92p700gGeSeNvt_l-hV1KHK_Hs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.915531"], ["updated_at", "2015-03-01 05:12:38.915531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9489c126-bfd1-11e4-8350-705681abff85' AND "clubhouse_memberships"."organization_id" = '948af2f8-bfd1-11e4-a4b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9489c126-bfd1-11e4-8350-705681abff85"], ["organization_id", "948af2f8-bfd1-11e4-a4b2-705681abff85"], ["created_at", "2015-03-01 05:12:38.919520"], ["updated_at", "2015-03-01 05:12:38.919520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$rMg3FcZIcnxYOLdAAkeJfeXKrNQwO6WYuxX.GyOMPtteKRL/Yvh4m"], ["created_at", "2015-03-01 05:12:38.933805"], ["updated_at", "2015-03-01 05:12:38.933805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.935642"], ["user_id", "948dc190-bfd1-11e4-adb0-705681abff85"], ["created_at", "2015-03-01 05:12:38.936439"], ["updated_at", "2015-03-01 05:12:38.936439"], ["token", "3NiGm66CYtW9OPe2jYuKe5Fb8KUsRpgHhVhzBOXODJ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.940071"], ["updated_at", "2015-03-01 05:12:38.940071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '948dc190-bfd1-11e4-adb0-705681abff85' AND "clubhouse_memberships"."organization_id" = '948eb08c-bfd1-11e4-b341-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "948dc190-bfd1-11e4-adb0-705681abff85"], ["organization_id", "948eb08c-bfd1-11e4-b341-705681abff85"], ["created_at", "2015-03-01 05:12:38.943222"], ["updated_at", "2015-03-01 05:12:38.943222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-14" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-14"} Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-14"]] Completed 200 OK in 1ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$H2O/WPdbLIaM88CgnYoG4OZOC2n8apZJQlJgHDEsPkU1nl3fkLB5."], ["created_at", "2015-03-01 05:12:38.954819"], ["updated_at", "2015-03-01 05:12:38.954819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.956489"], ["user_id", "9490f4fa-bfd1-11e4-b7cd-705681abff85"], ["created_at", "2015-03-01 05:12:38.957273"], ["updated_at", "2015-03-01 05:12:38.957273"], ["token", "PZKYm8QvSh0_to78V6_Ywhg4U1JNyGT2gwtO1NZEiLU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.960366"], ["updated_at", "2015-03-01 05:12:38.960366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9490f4fa-bfd1-11e4-b7cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '9491c790-bfd1-11e4-814a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9490f4fa-bfd1-11e4-b7cd-705681abff85"], ["organization_id", "9491c790-bfd1-11e4-814a-705681abff85"], ["created_at", "2015-03-01 05:12:38.963401"], ["updated_at", "2015-03-01 05:12:38.963401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/9491c790-bfd1-11e4-814a-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"9491c790-bfd1-11e4-814a-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:38.968966' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PZKYm8QvSh0_to78V6_Ywhg4U1JNyGT2gwtO1NZEiLU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:38.970373"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:38.971297"], ["id", "94915788-bfd1-11e4-a81a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9490f4fa-bfd1-11e4-b7cd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9490f4fa-bfd1-11e4-b7cd-705681abff85"], ["id", "9491c790-bfd1-11e4-814a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "9491c790-bfd1-11e4-814a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$euitPrvLi2GPmFpFV/t/1eGcOM4gEy/CmRs8eEk6ekE9ewG9LIjyK"], ["created_at", "2015-03-01 05:12:38.980952"], ["updated_at", "2015-03-01 05:12:38.980952"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:38.983002"], ["user_id", "9494f050-bfd1-11e4-b472-705681abff85"], ["created_at", "2015-03-01 05:12:38.984266"], ["updated_at", "2015-03-01 05:12:38.984266"], ["token", "SQtN4-7mnx9eIPXrifKYxlU-V_uIh2Bzz16IMaFQDtQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms)[0m SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:38.988193"], ["updated_at", "2015-03-01 05:12:38.988193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9494f050-bfd1-11e4-b472-705681abff85' AND "clubhouse_memberships"."organization_id" = '94960b98-bfd1-11e4-9c7f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9494f050-bfd1-11e4-b472-705681abff85"], ["organization_id", "94960b98-bfd1-11e4-9c7f-705681abff85"], ["created_at", "2015-03-01 05:12:38.991523"], ["updated_at", "2015-03-01 05:12:38.991523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 21:12:38 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$5fFUTmzmVwTNiek0vEld2.STap7xnWw7LwtVeoNQBKVW19qEfeTCq"], ["created_at", "2015-03-01 05:12:39.003640"], ["updated_at", "2015-03-01 05:12:39.003640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.005470"], ["user_id", "94986b54-bfd1-11e4-8fe0-705681abff85"], ["created_at", "2015-03-01 05:12:39.006237"], ["updated_at", "2015-03-01 05:12:39.006237"], ["token", "qorPthVaBK0_NU_oDeEaP1EWOAv2EQTve5SJ7yh9syQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.009338"], ["updated_at", "2015-03-01 05:12:39.009338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94986b54-bfd1-11e4-8fe0-705681abff85' AND "clubhouse_memberships"."organization_id" = '9499409c-bfd1-11e4-a5c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94986b54-bfd1-11e4-8fe0-705681abff85"], ["organization_id", "9499409c-bfd1-11e4-a5c0-705681abff85"], ["created_at", "2015-03-01 05:12:39.012323"], ["updated_at", "2015-03-01 05:12:39.012323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-17" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-17", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.016979' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qorPthVaBK0_NU_oDeEaP1EWOAv2EQTve5SJ7yh9syQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.018395"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.019285"], ["id", "9498d030-bfd1-11e4-971b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94986b54-bfd1-11e4-8fe0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94986b54-bfd1-11e4-8fe0-705681abff85"], ["name", "org-17"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$vrmhqV6ELvhS9hVLoxNvMO67/QAikk4/iMkA7.PKaHKiSzbofYWdW"], ["created_at", "2015-03-01 05:12:39.029412"], ["updated_at", "2015-03-01 05:12:39.029412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.031468"], ["user_id", "949c6448-bfd1-11e4-9158-705681abff85"], ["created_at", "2015-03-01 05:12:39.032250"], ["updated_at", "2015-03-01 05:12:39.032250"], ["token", "EVz6wlL1szDsx4XRzcjhbYlXQlNemcGbIMVAILfrIvU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.035880"], ["updated_at", "2015-03-01 05:12:39.035880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '949c6448-bfd1-11e4-9158-705681abff85' AND "clubhouse_memberships"."organization_id" = '949d5042-bfd1-11e4-9ac9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "949c6448-bfd1-11e4-9158-705681abff85"], ["organization_id", "949d5042-bfd1-11e4-9ac9-705681abff85"], ["created_at", "2015-03-01 05:12:39.040056"], ["updated_at", "2015-03-01 05:12:39.040056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$/AkcojiX69evWnWSg1ETwu.bG7ooQ9eMvPglAQ/8zwF/vJ45M5Aie"], ["created_at", "2015-03-01 05:12:39.053167"], ["updated_at", "2015-03-01 05:12:39.053167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.055288"], ["user_id", "94a0047c-bfd1-11e4-9363-705681abff85"], ["created_at", "2015-03-01 05:12:39.056090"], ["updated_at", "2015-03-01 05:12:39.056090"], ["token", "M9392EyLoRZtCKMRh5wX2js3hDxLF8QYbUuZ3aTwXm8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.059228"], ["updated_at", "2015-03-01 05:12:39.059228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94a0047c-bfd1-11e4-9363-705681abff85' AND "clubhouse_memberships"."organization_id" = '94a0dd3e-bfd1-11e4-bce2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94a0047c-bfd1-11e4-9363-705681abff85"], ["organization_id", "94a0dd3e-bfd1-11e4-bce2-705681abff85"], ["created_at", "2015-03-01 05:12:39.062203"], ["updated_at", "2015-03-01 05:12:39.062203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$bGym.GyLfY/JOp/zNItIsOOHcbmicnx2h/Kp1MMVOJEyg/HtLxvz6"], ["created_at", "2015-03-01 05:12:39.074942"], ["updated_at", "2015-03-01 05:12:39.074942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.076483"], ["user_id", "94a34628-bfd1-11e4-810b-705681abff85"], ["created_at", "2015-03-01 05:12:39.077218"], ["updated_at", "2015-03-01 05:12:39.077218"], ["token", "IPYj4zTGNufS5hhy_cLoN98SKWx7ai1lRw15oV_BYS0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.080321"], ["updated_at", "2015-03-01 05:12:39.080321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94a34628-bfd1-11e4-810b-705681abff85' AND "clubhouse_memberships"."organization_id" = '94a414f4-bfd1-11e4-bed1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94a34628-bfd1-11e4-810b-705681abff85"], ["organization_id", "94a414f4-bfd1-11e4-bed1-705681abff85"], ["created_at", "2015-03-01 05:12:39.083330"], ["updated_at", "2015-03-01 05:12:39.083330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/94a414f4-bfd1-11e4-bed1-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"94a414f4-bfd1-11e4-bed1-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.088425' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IPYj4zTGNufS5hhy_cLoN98SKWx7ai1lRw15oV_BYS0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.089879"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.090853"], ["id", "94a3a3f2-bfd1-11e4-b2ba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94a34628-bfd1-11e4-810b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94a34628-bfd1-11e4-810b-705681abff85"], ["id", "94a414f4-bfd1-11e4-bed1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '94a414f4-bfd1-11e4-bed1-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$CfYU1zJxKcHLaS/iCX2IVOIm3WEOiyDEKPxIAHve05MFOp8rT.DHq"], ["created_at", "2015-03-01 05:12:39.103137"], ["updated_at", "2015-03-01 05:12:39.103137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.105769"], ["user_id", "94a7b5dc-bfd1-11e4-afe0-705681abff85"], ["created_at", "2015-03-01 05:12:39.106585"], ["updated_at", "2015-03-01 05:12:39.106585"], ["token", "n2Ja4kwQUIRRWAVHHtr2_152uxMzuB_ydiG5ojDsGjI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.109770"], ["updated_at", "2015-03-01 05:12:39.109770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94a7b5dc-bfd1-11e4-afe0-705681abff85' AND "clubhouse_memberships"."organization_id" = '94a89358-bfd1-11e4-877e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94a7b5dc-bfd1-11e4-afe0-705681abff85"], ["organization_id", "94a89358-bfd1-11e4-877e-705681abff85"], ["created_at", "2015-03-01 05:12:39.112728"], ["updated_at", "2015-03-01 05:12:39.112728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/94a89358-bfd1-11e4-877e-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"94a89358-bfd1-11e4-877e-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.117201' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n2Ja4kwQUIRRWAVHHtr2_152uxMzuB_ydiG5ojDsGjI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.118652"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.119786"], ["id", "94a82198-bfd1-11e4-a4a4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94a7b5dc-bfd1-11e4-afe0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94a7b5dc-bfd1-11e4-afe0-705681abff85"], ["id", "94a89358-bfd1-11e4-877e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '94a89358-bfd1-11e4-877e-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 05:12:39.125368"], ["id", "94a89358-bfd1-11e4-877e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$jJouyLqyCcP5xem.IlfDPOwLZFK.kW6Cv7YqvG/U7EIV8X.LPU67e"], ["created_at", "2015-03-01 05:12:39.132893"], ["updated_at", "2015-03-01 05:12:39.132893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.134440"], ["user_id", "94ac1e2e-bfd1-11e4-ac69-705681abff85"], ["created_at", "2015-03-01 05:12:39.135192"], ["updated_at", "2015-03-01 05:12:39.135192"], ["token", "lbCQ0peYHLXh-InhMZSWdgZB5My91G3fSKvCbheCq4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.138599"], ["updated_at", "2015-03-01 05:12:39.138599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94ac1e2e-bfd1-11e4-ac69-705681abff85' AND "clubhouse_memberships"."organization_id" = '94acfede-bfd1-11e4-8996-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94ac1e2e-bfd1-11e4-ac69-705681abff85"], ["organization_id", "94acfede-bfd1-11e4-8996-705681abff85"], ["created_at", "2015-03-01 05:12:39.142094"], ["updated_at", "2015-03-01 05:12:39.142094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$zXFrOg/rUG3kaBj2LB6se.KPaylBHDoBwS6uWSJvhufqbOyhujT12"], ["created_at", "2015-03-01 05:12:39.154161"], ["updated_at", "2015-03-01 05:12:39.154161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.156011"], ["user_id", "94af6520-bfd1-11e4-bcd0-705681abff85"], ["created_at", "2015-03-01 05:12:39.156783"], ["updated_at", "2015-03-01 05:12:39.156783"], ["token", "KcZntzLCPVoi08SVVvNXI_ZD4hxsPtHonNiFSIgLLoI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.160123"], ["updated_at", "2015-03-01 05:12:39.160123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94af6520-bfd1-11e4-bcd0-705681abff85' AND "clubhouse_memberships"."organization_id" = '94b04396-bfd1-11e4-9a2c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94af6520-bfd1-11e4-bcd0-705681abff85"], ["organization_id", "94b04396-bfd1-11e4-9a2c-705681abff85"], ["created_at", "2015-03-01 05:12:39.163222"], ["updated_at", "2015-03-01 05:12:39.163222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.168047' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KcZntzLCPVoi08SVVvNXI_ZD4hxsPtHonNiFSIgLLoI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.169452"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.170363"], ["id", "94afc934-bfd1-11e4-aeb6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94af6520-bfd1-11e4-bcd0-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$XcWpKknf88j4mSCGsOw4/eiqzs2u4efY1.Q3a.w/NFoK.avSYgXZS"], ["created_at", "2015-03-01 05:12:39.182691"], ["updated_at", "2015-03-01 05:12:39.182691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.184425"], ["user_id", "94b3b77e-bfd1-11e4-b60e-705681abff85"], ["created_at", "2015-03-01 05:12:39.185153"], ["updated_at", "2015-03-01 05:12:39.185153"], ["token", "VfbQswAcE0YkZ2dSSb61ILiEJgr_pGKSE9RwzB3aGMg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.188771"], ["updated_at", "2015-03-01 05:12:39.188771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94b3b77e-bfd1-11e4-b60e-705681abff85' AND "clubhouse_memberships"."organization_id" = '94b4a742-bfd1-11e4-8d93-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94b3b77e-bfd1-11e4-b60e-705681abff85"], ["organization_id", "94b4a742-bfd1-11e4-8d93-705681abff85"], ["created_at", "2015-03-01 05:12:39.210850"], ["updated_at", "2015-03-01 05:12:39.210850"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.219575' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VfbQswAcE0YkZ2dSSb61ILiEJgr_pGKSE9RwzB3aGMg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.222279"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.224018"], ["id", "94b42268-bfd1-11e4-bb81-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94b3b77e-bfd1-11e4-b60e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.231151"], ["updated_at", "2015-03-01 05:12:39.231151"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "94bb3e86-bfd1-11e4-9f25-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94b3b77e-bfd1-11e4-b60e-705681abff85' AND "clubhouse_memberships"."organization_id" = '94bb3e86-bfd1-11e4-9f25-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94b3b77e-bfd1-11e4-b60e-705681abff85"], ["admin", "t"], ["organization_id", "94bb3e86-bfd1-11e4-9f25-705681abff85"], ["created_at", "2015-03-01 05:12:39.239986"], ["updated_at", "2015-03-01 05:12:39.239986"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 0.9ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.258715"], ["updated_at", "2015-03-01 05:12:39.258715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '94bf5110-bfd1-11e4-85a8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "94bf5110-bfd1-11e4-85a8-705681abff85"], ["created_at", "2015-03-01 05:12:39.262112"], ["updated_at", "2015-03-01 05:12:39.262112"], ["token", "U3GEgIPNsHV-IhZRNjuzHg6q77u_kpzHu7mnU693-4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "94bf5110-bfd1-11e4-85a8-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '94bf5110-bfd1-11e4-85a8-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "94bf5110-bfd1-11e4-85a8-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '94bf5110-bfd1-11e4-85a8-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.284148"], ["updated_at", "2015-03-01 05:12:39.284148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '94c332d0-bfd1-11e4-a28b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "94c332d0-bfd1-11e4-a28b-705681abff85"], ["created_at", "2015-03-01 05:12:39.287456"], ["updated_at", "2015-03-01 05:12:39.287456"], ["token", "Kqiizh5f2sX51bbja9BznSP3vkb2iTbMStcwvYibuAE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.292640"], ["updated_at", "2015-03-01 05:12:39.292640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.306524"], ["updated_at", "2015-03-01 05:12:39.306524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.328576"], ["updated_at", "2015-03-01 05:12:39.328576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.333060"], ["updated_at", "2015-03-01 05:12:39.333060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "94caa7a4-bfd1-11e4-8456-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$JSsQgyU6yHi9NlamfkspfeZyBMHkGL6w4kNhq6m0PRlGP97JkUy/S"], ["created_at", "2015-03-01 05:12:39.341126"], ["updated_at", "2015-03-01 05:12:39.341126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$tqti3Vsj/qONuI0U16r6fuHmTx9b4Q9MdhB01uh5Uu9lw3ACPF1aG"], ["created_at", "2015-03-01 05:12:39.345307"], ["updated_at", "2015-03-01 05:12:39.345307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.346729"], ["user_id", "94cbe60a-bfd1-11e4-89ef-705681abff85"], ["created_at", "2015-03-01 05:12:39.347497"], ["updated_at", "2015-03-01 05:12:39.347497"], ["token", "BS0zRXu51FSLpiFYDv3WSz0iaiUbViGybLUv5Kr6I04"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.350602"], ["updated_at", "2015-03-01 05:12:39.350602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94cbe60a-bfd1-11e4-89ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '94cd533c-bfd1-11e4-a5d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94cbe60a-bfd1-11e4-89ef-705681abff85"], ["organization_id", "94cd533c-bfd1-11e4-a5d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.353877"], ["updated_at", "2015-03-01 05:12:39.353877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94cc842a-bfd1-11e4-a3ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '94cd533c-bfd1-11e4-a5d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94cc842a-bfd1-11e4-a3ae-705681abff85"], ["organization_id", "94cd533c-bfd1-11e4-a5d1-705681abff85"], ["created_at", "2015-03-01 05:12:39.356924"], ["updated_at", "2015-03-01 05:12:39.356924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/94cdd8f2-bfd1-11e4-93e1-705681abff85" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"94cdd8f2-bfd1-11e4-93e1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.368625' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BS0zRXu51FSLpiFYDv3WSz0iaiUbViGybLUv5Kr6I04"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.370345"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.371349"], ["id", "94cce208-bfd1-11e4-b28b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94cbe60a-bfd1-11e4-89ef-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94cbe60a-bfd1-11e4-89ef-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94cbe60a-bfd1-11e4-89ef-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "94cbe60a-bfd1-11e4-89ef-705681abff85"], ["id", "94cdd8f2-bfd1-11e4-93e1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "94cd533c-bfd1-11e4-a5d1-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94cbe60a-bfd1-11e4-89ef-705681abff85"]] Completed 200 OK in 15ms (Views: 4.4ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$RdJyPwCKU9EQeouKeC630u4tGrZ6YgdGfXYsh/pxx2CI1XgOX02cu"], ["created_at", "2015-03-01 05:12:39.389865"], ["updated_at", "2015-03-01 05:12:39.389865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$MvcMoxEfu9aU1aK2aM2Bse7.Vngxil17rYnpUHkA3aBYcU74k70ma"], ["created_at", "2015-03-01 05:12:39.394091"], ["updated_at", "2015-03-01 05:12:39.394091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.395518"], ["user_id", "94d35728-bfd1-11e4-8482-705681abff85"], ["created_at", "2015-03-01 05:12:39.396252"], ["updated_at", "2015-03-01 05:12:39.396252"], ["token", "0ohxSsR6YKBdCnOXSQ12BhMXJaiUgdudzClV5Er4f4o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.399312"], ["updated_at", "2015-03-01 05:12:39.399312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94d35728-bfd1-11e4-8482-705681abff85' AND "clubhouse_memberships"."organization_id" = '94d4c27a-bfd1-11e4-af96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94d35728-bfd1-11e4-8482-705681abff85"], ["organization_id", "94d4c27a-bfd1-11e4-af96-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.402418"], ["updated_at", "2015-03-01 05:12:39.402418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94d3f5e8-bfd1-11e4-ad29-705681abff85' AND "clubhouse_memberships"."organization_id" = '94d4c27a-bfd1-11e4-af96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94d3f5e8-bfd1-11e4-ad29-705681abff85"], ["organization_id", "94d4c27a-bfd1-11e4-af96-705681abff85"], ["created_at", "2015-03-01 05:12:39.405341"], ["updated_at", "2015-03-01 05:12:39.405341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$rdiL/UwVVkCBEWa34/SMOuk5wy7ovOljVI2pY0xgZ634wmHIFDZPm"], ["created_at", "2015-03-01 05:12:39.419304"], ["updated_at", "2015-03-01 05:12:39.419304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$3fgKziXNQlmfc1BbFf4z8egNcxMF3f41GtQt6ciPVDAkD80JjTdL6"], ["created_at", "2015-03-01 05:12:39.424437"], ["updated_at", "2015-03-01 05:12:39.424437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.426036"], ["user_id", "94d7d7bc-bfd1-11e4-93b8-705681abff85"], ["created_at", "2015-03-01 05:12:39.426810"], ["updated_at", "2015-03-01 05:12:39.426810"], ["token", "e_rH6y6Us_vxEV9AebQbwby3aVW10Gm4yv6p0YFVjt0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.429962"], ["updated_at", "2015-03-01 05:12:39.429962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94d7d7bc-bfd1-11e4-93b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '94d96f64-bfd1-11e4-a515-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94d7d7bc-bfd1-11e4-93b8-705681abff85"], ["organization_id", "94d96f64-bfd1-11e4-a515-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.433069"], ["updated_at", "2015-03-01 05:12:39.433069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94d89c92-bfd1-11e4-ba41-705681abff85' AND "clubhouse_memberships"."organization_id" = '94d96f64-bfd1-11e4-a515-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94d89c92-bfd1-11e4-ba41-705681abff85"], ["organization_id", "94d96f64-bfd1-11e4-a515-705681abff85"], ["created_at", "2015-03-01 05:12:39.436880"], ["updated_at", "2015-03-01 05:12:39.436880"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.442286' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "e_rH6y6Us_vxEV9AebQbwby3aVW10Gm4yv6p0YFVjt0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.443677"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.444607"], ["id", "94d8fc0a-bfd1-11e4-9f35-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94d7d7bc-bfd1-11e4-93b8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94d7d7bc-bfd1-11e4-93b8-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94d7d7bc-bfd1-11e4-93b8-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "94d7d7bc-bfd1-11e4-93b8-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "94d96f64-bfd1-11e4-a515-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94d7d7bc-bfd1-11e4-93b8-705681abff85"]] Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$6OUDOarzrDHFTMADd3phoORdVWgs/5hTkwZ.GoFgsyChWY6kRGkku"], ["created_at", "2015-03-01 05:12:39.458107"], ["updated_at", "2015-03-01 05:12:39.458107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$Za/EsQEWYnkEqpKHGf1xxuPVwJuY/UsbaeQNjIz0SdDvUhAJWyICe"], ["created_at", "2015-03-01 05:12:39.463451"], ["updated_at", "2015-03-01 05:12:39.463451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.465877"], ["user_id", "94ddbe84-bfd1-11e4-95c4-705681abff85"], ["created_at", "2015-03-01 05:12:39.466720"], ["updated_at", "2015-03-01 05:12:39.466720"], ["token", "Ruczsd-vKaQEYNuvC2a8EIS8Fbz_3sLbo6xUN-XXoLM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.469908"], ["updated_at", "2015-03-01 05:12:39.469908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94ddbe84-bfd1-11e4-95c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '94df8908-bfd1-11e4-a7d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94ddbe84-bfd1-11e4-95c4-705681abff85"], ["organization_id", "94df8908-bfd1-11e4-a7d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.473140"], ["updated_at", "2015-03-01 05:12:39.473140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94de9cb4-bfd1-11e4-bb85-705681abff85' AND "clubhouse_memberships"."organization_id" = '94df8908-bfd1-11e4-a7d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94de9cb4-bfd1-11e4-bb85-705681abff85"], ["organization_id", "94df8908-bfd1-11e4-a7d3-705681abff85"], ["created_at", "2015-03-01 05:12:39.475990"], ["updated_at", "2015-03-01 05:12:39.475990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$nJ8FBfBTO25dVc1q.slDre7vXfjqlQw5wuWTOaVp0nRM3J/r28ai2"], ["created_at", "2015-03-01 05:12:39.490189"], ["updated_at", "2015-03-01 05:12:39.490189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$XUtsznA6Nt0o52vD98271.YwZi.3WiOdqPU9PI5oOImkux8BAJnGG"], ["created_at", "2015-03-01 05:12:39.495861"], ["updated_at", "2015-03-01 05:12:39.495861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.497393"], ["user_id", "94e2b40c-bfd1-11e4-a290-705681abff85"], ["created_at", "2015-03-01 05:12:39.498156"], ["updated_at", "2015-03-01 05:12:39.498156"], ["token", "vFr6WJ8eo8mg4UosvrV5F9sCKIPXWei2UIEseF_6Vr4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.501257"], ["updated_at", "2015-03-01 05:12:39.501257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94e2b40c-bfd1-11e4-a290-705681abff85' AND "clubhouse_memberships"."organization_id" = '94e45186-bfd1-11e4-ad24-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94e2b40c-bfd1-11e4-a290-705681abff85"], ["organization_id", "94e45186-bfd1-11e4-ad24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.505209"], ["updated_at", "2015-03-01 05:12:39.505209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94e37fd6-bfd1-11e4-a901-705681abff85' AND "clubhouse_memberships"."organization_id" = '94e45186-bfd1-11e4-ad24-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94e37fd6-bfd1-11e4-a901-705681abff85"], ["organization_id", "94e45186-bfd1-11e4-ad24-705681abff85"], ["created_at", "2015-03-01 05:12:39.508828"], ["updated_at", "2015-03-01 05:12:39.508828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/94e4f8b6-bfd1-11e4-89a0-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"94e4f8b6-bfd1-11e4-89a0-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.513473' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vFr6WJ8eo8mg4UosvrV5F9sCKIPXWei2UIEseF_6Vr4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.515275"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.517102"], ["id", "94e3dec2-bfd1-11e4-877f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94e2b40c-bfd1-11e4-a290-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94e2b40c-bfd1-11e4-a290-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '94e2b40c-bfd1-11e4-a290-705681abff85' LIMIT 1 [["organization_id", "94e45186-bfd1-11e4-ad24-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "94e45186-bfd1-11e4-ad24-705681abff85"], ["id", "94e4f8b6-bfd1-11e4-89a0-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94e2b40c-bfd1-11e4-a290-705681abff85"]] Completed 500 Internal Server Error in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$6Gs4Ktvsrl01r.N2iibgf.Oap3SQpiT4cGtWj8N/PdFdV/3mI1NCO"], ["created_at", "2015-03-01 05:12:39.533826"], ["updated_at", "2015-03-01 05:12:39.533826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$ZN1Cn8pbPhl7D4og31nfyuTeELT0na1BXsKXb/imIaDfn1dY28p62"], ["created_at", "2015-03-01 05:12:39.538808"], ["updated_at", "2015-03-01 05:12:39.538808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.540863"], ["user_id", "94e94bd2-bfd1-11e4-89ca-705681abff85"], ["created_at", "2015-03-01 05:12:39.542329"], ["updated_at", "2015-03-01 05:12:39.542329"], ["token", "z0h6VnwnopW4H_0zuUMAi5-2WCceo7V5IwGBiMOuqOs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.546611"], ["updated_at", "2015-03-01 05:12:39.546611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94e94bd2-bfd1-11e4-89ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '94eb3ec4-bfd1-11e4-8080-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94e94bd2-bfd1-11e4-89ca-705681abff85"], ["organization_id", "94eb3ec4-bfd1-11e4-8080-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.549934"], ["updated_at", "2015-03-01 05:12:39.549934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94ea0fc2-bfd1-11e4-923f-705681abff85' AND "clubhouse_memberships"."organization_id" = '94eb3ec4-bfd1-11e4-8080-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94ea0fc2-bfd1-11e4-923f-705681abff85"], ["organization_id", "94eb3ec4-bfd1-11e4-8080-705681abff85"], ["created_at", "2015-03-01 05:12:39.553076"], ["updated_at", "2015-03-01 05:12:39.553076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/94ec3996-bfd1-11e4-affc-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"94ec3996-bfd1-11e4-affc-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.557720' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z0h6VnwnopW4H_0zuUMAi5-2WCceo7V5IwGBiMOuqOs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.559109"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.560054"], ["id", "94eabba2-bfd1-11e4-8c2d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94e94bd2-bfd1-11e4-89ca-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94e94bd2-bfd1-11e4-89ca-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '94e94bd2-bfd1-11e4-89ca-705681abff85' LIMIT 1 [["organization_id", "94eb3ec4-bfd1-11e4-8080-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "94eb3ec4-bfd1-11e4-8080-705681abff85"], ["id", "94ec3996-bfd1-11e4-affc-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94ea0fc2-bfd1-11e4-923f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "94ec3996-bfd1-11e4-affc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$ayG60SZeJ9MJmWwFMdDACOzLKfJxFW3j/ULFizOUR/94VCigqNNkW"], ["created_at", "2015-03-01 05:12:39.574783"], ["updated_at", "2015-03-01 05:12:39.574783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$EsaHu6qUFJryZBQJ4jv6iOqlOYWgkTxb/cdjabnaingWTKuh.EJqC"], ["created_at", "2015-03-01 05:12:39.579174"], ["updated_at", "2015-03-01 05:12:39.579174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.580670"], ["user_id", "94ef8f10-bfd1-11e4-b6eb-705681abff85"], ["created_at", "2015-03-01 05:12:39.581444"], ["updated_at", "2015-03-01 05:12:39.581444"], ["token", "ehmumdI1UhpbXBwmZDub6XOyRLr9_l5fgUfyGcjTXDY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.584516"], ["updated_at", "2015-03-01 05:12:39.584516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94ef8f10-bfd1-11e4-b6eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '94f10548-bfd1-11e4-81d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94ef8f10-bfd1-11e4-b6eb-705681abff85"], ["organization_id", "94f10548-bfd1-11e4-81d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.587654"], ["updated_at", "2015-03-01 05:12:39.587654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94f0355a-bfd1-11e4-b665-705681abff85' AND "clubhouse_memberships"."organization_id" = '94f10548-bfd1-11e4-81d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94f0355a-bfd1-11e4-b665-705681abff85"], ["organization_id", "94f10548-bfd1-11e4-81d7-705681abff85"], ["created_at", "2015-03-01 05:12:39.590664"], ["updated_at", "2015-03-01 05:12:39.590664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.595225' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ehmumdI1UhpbXBwmZDub6XOyRLr9_l5fgUfyGcjTXDY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.596907"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.597847"], ["id", "94f09568-bfd1-11e4-8c95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94ef8f10-bfd1-11e4-b6eb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94ef8f10-bfd1-11e4-b6eb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '94ef8f10-bfd1-11e4-b6eb-705681abff85' LIMIT 1 [["organization_id", "94f10548-bfd1-11e4-81d7-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "94f10548-bfd1-11e4-81d7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "94f10548-bfd1-11e4-81d7-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94ef8f10-bfd1-11e4-b6eb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "94f10548-bfd1-11e4-81d7-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94f0355a-bfd1-11e4-b665-705681abff85"]] Completed 200 OK in 21ms (Views: 12.7ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$.z32DQC.Ff8wCxwa4VgrZeXsIpHhq.a6q/byiTlIv1cW37tahiNSi"], ["created_at", "2015-03-01 05:12:39.623588"], ["updated_at", "2015-03-01 05:12:39.623588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$Xa/eTh8C00K7QyStkZlhiePFnmYGWBtZJ1odG5crU0EWF0Z0.nsU."], ["created_at", "2015-03-01 05:12:39.629727"], ["updated_at", "2015-03-01 05:12:39.629727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.631315"], ["user_id", "94f71d48-bfd1-11e4-a5d3-705681abff85"], ["created_at", "2015-03-01 05:12:39.632083"], ["updated_at", "2015-03-01 05:12:39.632083"], ["token", "GyIohG0ziCc7WTPMF491NSTl9kK8Uu7mp1f5Q9e0icc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.635376"], ["updated_at", "2015-03-01 05:12:39.635376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94f71d48-bfd1-11e4-a5d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '94f8c8d2-bfd1-11e4-a56d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94f71d48-bfd1-11e4-a5d3-705681abff85"], ["organization_id", "94f8c8d2-bfd1-11e4-a56d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.638937"], ["updated_at", "2015-03-01 05:12:39.638937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94f7ed90-bfd1-11e4-a27d-705681abff85' AND "clubhouse_memberships"."organization_id" = '94f8c8d2-bfd1-11e4-a56d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94f7ed90-bfd1-11e4-a27d-705681abff85"], ["organization_id", "94f8c8d2-bfd1-11e4-a56d-705681abff85"], ["created_at", "2015-03-01 05:12:39.642107"], ["updated_at", "2015-03-01 05:12:39.642107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/94f9cd40-bfd1-11e4-bae2-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"94f9cd40-bfd1-11e4-bae2-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.646925' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GyIohG0ziCc7WTPMF491NSTl9kK8Uu7mp1f5Q9e0icc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.648390"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.649309"], ["id", "94f84e98-bfd1-11e4-bb1d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94f71d48-bfd1-11e4-a5d3-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "94f71d48-bfd1-11e4-a5d3-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '94f71d48-bfd1-11e4-a5d3-705681abff85' LIMIT 1 [["organization_id", "94f8c8d2-bfd1-11e4-a56d-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "94f8c8d2-bfd1-11e4-a56d-705681abff85"], ["id", "94f9cd40-bfd1-11e4-bae2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "94f8c8d2-bfd1-11e4-a56d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94f7ed90-bfd1-11e4-a27d-705681abff85"]] Completed 200 OK in 15ms (Views: 4.0ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$FROd5d9/LupjjS4PXujoOu7lkC1SSJ3/jCE.gFNcLRDUiKpbyh4k6"], ["created_at", "2015-03-01 05:12:39.668900"], ["updated_at", "2015-03-01 05:12:39.668900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$oCWk4GFKesWmp13WIQBTDeLfu1isBqY2S79ooNkJzHtP0Q2ioK6EG"], ["created_at", "2015-03-01 05:12:39.674577"], ["updated_at", "2015-03-01 05:12:39.674577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.677605"], ["user_id", "94fde8e4-bfd1-11e4-895d-705681abff85"], ["created_at", "2015-03-01 05:12:39.678388"], ["updated_at", "2015-03-01 05:12:39.678388"], ["token", "WvpMchurCLTzxczRdYnUGv5hZ6z46vzmdqVagAlXnrk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.681869"], ["updated_at", "2015-03-01 05:12:39.681869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94fde8e4-bfd1-11e4-895d-705681abff85' AND "clubhouse_memberships"."organization_id" = '94ffe0d6-bfd1-11e4-8ca2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94fde8e4-bfd1-11e4-895d-705681abff85"], ["organization_id", "94ffe0d6-bfd1-11e4-8ca2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.685036"], ["updated_at", "2015-03-01 05:12:39.685036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94fede5c-bfd1-11e4-ab3f-705681abff85' AND "clubhouse_memberships"."organization_id" = '94ffe0d6-bfd1-11e4-8ca2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94fede5c-bfd1-11e4-ab3f-705681abff85"], ["organization_id", "94ffe0d6-bfd1-11e4-8ca2-705681abff85"], ["created_at", "2015-03-01 05:12:39.689236"], ["updated_at", "2015-03-01 05:12:39.689236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$2P5TpHNv1bqD8oVoW4eFtuQFSoRdtiywJpGdzcKmEVNzQDXGxUMaq"], ["created_at", "2015-03-01 05:12:39.704020"], ["updated_at", "2015-03-01 05:12:39.704020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$QKrxR4tHmf.BXesThtWZcOk1bbB5NyixqBwenPPJLLnqXAwX1NPVO"], ["created_at", "2015-03-01 05:12:39.709776"], ["updated_at", "2015-03-01 05:12:39.709776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.712029"], ["user_id", "9503511c-bfd1-11e4-987e-705681abff85"], ["created_at", "2015-03-01 05:12:39.712996"], ["updated_at", "2015-03-01 05:12:39.712996"], ["token", "uwR6VMxDsWLZ9vbh0Ggs8VwMbPmom67yjOsJmn6KwmA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.716969"], ["updated_at", "2015-03-01 05:12:39.716969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9503511c-bfd1-11e4-987e-705681abff85' AND "clubhouse_memberships"."organization_id" = '950546fc-bfd1-11e4-8468-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9503511c-bfd1-11e4-987e-705681abff85"], ["organization_id", "950546fc-bfd1-11e4-8468-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.722075"], ["updated_at", "2015-03-01 05:12:39.722075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95042f56-bfd1-11e4-9074-705681abff85' AND "clubhouse_memberships"."organization_id" = '950546fc-bfd1-11e4-8468-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95042f56-bfd1-11e4-9074-705681abff85"], ["organization_id", "950546fc-bfd1-11e4-8468-705681abff85"], ["created_at", "2015-03-01 05:12:39.727416"], ["updated_at", "2015-03-01 05:12:39.727416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$5/GePcwndol792kSY1XJD.OwjlhXP0oI8QvLpZX5rVR3UZhkBqKaW"], ["created_at", "2015-03-01 05:12:39.742537"], ["updated_at", "2015-03-01 05:12:39.742537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$DNAeEqogPJmvb2jTSjIyYuZ.IP5GpS9us/pwnoepW/2fMmvRUEgPy"], ["created_at", "2015-03-01 05:12:39.748348"], ["updated_at", "2015-03-01 05:12:39.748348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.750319"], ["user_id", "95092a7e-bfd1-11e4-9e3f-705681abff85"], ["created_at", "2015-03-01 05:12:39.751144"], ["updated_at", "2015-03-01 05:12:39.751144"], ["token", "rTVPylJcjOYiIHzI49KwFJtypTJlxMAhzkzyCytQ_00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.759747"], ["updated_at", "2015-03-01 05:12:39.759747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95092a7e-bfd1-11e4-9e3f-705681abff85' AND "clubhouse_memberships"."organization_id" = '950bc6f8-bfd1-11e4-850c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95092a7e-bfd1-11e4-9e3f-705681abff85"], ["organization_id", "950bc6f8-bfd1-11e4-850c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.766433"], ["updated_at", "2015-03-01 05:12:39.766433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '950a0d40-bfd1-11e4-b25a-705681abff85' AND "clubhouse_memberships"."organization_id" = '950bc6f8-bfd1-11e4-850c-705681abff85') LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "950a0d40-bfd1-11e4-b25a-705681abff85"], ["organization_id", "950bc6f8-bfd1-11e4-850c-705681abff85"], ["created_at", "2015-03-01 05:12:39.773755"], ["updated_at", "2015-03-01 05:12:39.773755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/950ce312-bfd1-11e4-b31b-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"950ce312-bfd1-11e4-b31b-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.785708' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rTVPylJcjOYiIHzI49KwFJtypTJlxMAhzkzyCytQ_00"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.787358"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.788951"], ["id", "950a9abc-bfd1-11e4-8d1d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "95092a7e-bfd1-11e4-9e3f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "95092a7e-bfd1-11e4-9e3f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95092a7e-bfd1-11e4-9e3f-705681abff85' LIMIT 1 [["organization_id", "950bc6f8-bfd1-11e4-850c-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "950bc6f8-bfd1-11e4-850c-705681abff85"], ["id", "950ce312-bfd1-11e4-b31b-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "95092a7e-bfd1-11e4-9e3f-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$PldqrqiWlvZUI2uLFRPWGusp/ZMfxLziNj3of9J/mRx1.qSRlxyK6"], ["created_at", "2015-03-01 05:12:39.806559"], ["updated_at", "2015-03-01 05:12:39.806559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$DpoQ28rCPlbib1blQkW2q.FT0DYmwTUoxM9YsqznRY4FIcwf2AqFi"], ["created_at", "2015-03-01 05:12:39.811329"], ["updated_at", "2015-03-01 05:12:39.811329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.812997"], ["user_id", "9512f054-bfd1-11e4-b4d5-705681abff85"], ["created_at", "2015-03-01 05:12:39.814279"], ["updated_at", "2015-03-01 05:12:39.814279"], ["token", "U-HvBaVWT-vkku2bHYWTajV0Kmijp_h9acfYqT6XdcQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.819664"], ["updated_at", "2015-03-01 05:12:39.819664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9512f054-bfd1-11e4-b4d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '9514eb16-bfd1-11e4-930e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9512f054-bfd1-11e4-b4d5-705681abff85"], ["organization_id", "9514eb16-bfd1-11e4-930e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.823303"], ["updated_at", "2015-03-01 05:12:39.823303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9513a5d0-bfd1-11e4-83c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '9514eb16-bfd1-11e4-930e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9513a5d0-bfd1-11e4-83c9-705681abff85"], ["organization_id", "9514eb16-bfd1-11e4-930e-705681abff85"], ["created_at", "2015-03-01 05:12:39.826547"], ["updated_at", "2015-03-01 05:12:39.826547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/9515f574-bfd1-11e4-910b-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"9515f574-bfd1-11e4-910b-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.832227' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U-HvBaVWT-vkku2bHYWTajV0Kmijp_h9acfYqT6XdcQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.833766"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.834853"], ["id", "9514403a-bfd1-11e4-8a8b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9512f054-bfd1-11e4-b4d5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9512f054-bfd1-11e4-b4d5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9512f054-bfd1-11e4-b4d5-705681abff85' LIMIT 1 [["organization_id", "9514eb16-bfd1-11e4-930e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "9514eb16-bfd1-11e4-930e-705681abff85"], ["id", "9515f574-bfd1-11e4-910b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9513a5d0-bfd1-11e4-83c9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9514eb16-bfd1-11e4-930e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9513a5d0-bfd1-11e4-83c9-705681abff85' AND "clubhouse_memberships"."id" != '9515f574-bfd1-11e4-910b-705681abff85' AND "clubhouse_memberships"."organization_id" = '9514eb16-bfd1-11e4-930e-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:12:39.845816"], ["id", "9515f574-bfd1-11e4-910b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.4ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$aQN/efS/OWOAxFbBE.lLGOqBMY/.cs1qF0HgDI0/IzeZAlWj.G2my"], ["created_at", "2015-03-01 05:12:39.856583"], ["updated_at", "2015-03-01 05:12:39.856583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$0HdVlkDNn1Sm/OHl4FR7eOgK4iQTY8Q4KFi3jLbK93DJhsqcefClu"], ["created_at", "2015-03-01 05:12:39.862191"], ["updated_at", "2015-03-01 05:12:39.862191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.863698"], ["user_id", "951aa8da-bfd1-11e4-bd32-705681abff85"], ["created_at", "2015-03-01 05:12:39.864470"], ["updated_at", "2015-03-01 05:12:39.864470"], ["token", "2Y76G9yShLQv8xNynrDFN22RV14xbkd_Skn5FxIgJQk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.870002"], ["updated_at", "2015-03-01 05:12:39.870002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '951aa8da-bfd1-11e4-bd32-705681abff85' AND "clubhouse_memberships"."organization_id" = '951c9758-bfd1-11e4-980a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "951aa8da-bfd1-11e4-bd32-705681abff85"], ["organization_id", "951c9758-bfd1-11e4-980a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.873556"], ["updated_at", "2015-03-01 05:12:39.873556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '951b64fa-bfd1-11e4-81d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '951c9758-bfd1-11e4-980a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "951b64fa-bfd1-11e4-81d6-705681abff85"], ["organization_id", "951c9758-bfd1-11e4-980a-705681abff85"], ["created_at", "2015-03-01 05:12:39.876865"], ["updated_at", "2015-03-01 05:12:39.876865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$LYIu5ZmvBD64.d4h7pk8guOQx26LGyM0LBl0pRyfSEB5BadlWU5hm"], ["created_at", "2015-03-01 05:12:39.881298"], ["updated_at", "2015-03-01 05:12:39.881298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.883017"], ["user_id", "951e5368-bfd1-11e4-8f3b-705681abff85"], ["created_at", "2015-03-01 05:12:39.883729"], ["updated_at", "2015-03-01 05:12:39.883729"], ["token", "8iITO8bVaDm_YFBvLwbSyp-HNcGbX0jpUjFmEeymlhU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '951c9758-bfd1-11e4-980a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "951c9758-bfd1-11e4-980a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.887490"], ["updated_at", "2015-03-01 05:12:39.887490"], ["token", "z9zCGQqXQJbY3v7np1TpqjYuPCytpoGaXhkQQNz7d4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$3NUIIL4od6ubd7qm/W2i3ul4HvXIAVA2IqQrg0vdjEhOX4200YSy6"], ["created_at", "2015-03-01 05:12:39.900328"], ["updated_at", "2015-03-01 05:12:39.900328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$GqQcBNC1Y6AQiSFTwZEszerWqna4drRHfy0JlBC6unwVe1YB96djS"], ["created_at", "2015-03-01 05:12:39.904649"], ["updated_at", "2015-03-01 05:12:39.904649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.906785"], ["user_id", "952138e4-bfd1-11e4-a092-705681abff85"], ["created_at", "2015-03-01 05:12:39.908205"], ["updated_at", "2015-03-01 05:12:39.908205"], ["token", "gEXL2O9bvw3RYED85h3eJwH8QujdmViFqk6Ne29RAsk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.912005"], ["updated_at", "2015-03-01 05:12:39.912005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '952138e4-bfd1-11e4-a092-705681abff85' AND "clubhouse_memberships"."organization_id" = '9522fe68-bfd1-11e4-a6ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "952138e4-bfd1-11e4-a092-705681abff85"], ["organization_id", "9522fe68-bfd1-11e4-a6ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.915227"], ["updated_at", "2015-03-01 05:12:39.915227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9521e49c-bfd1-11e4-9191-705681abff85' AND "clubhouse_memberships"."organization_id" = '9522fe68-bfd1-11e4-a6ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9521e49c-bfd1-11e4-9191-705681abff85"], ["organization_id", "9522fe68-bfd1-11e4-a6ea-705681abff85"], ["created_at", "2015-03-01 05:12:39.918269"], ["updated_at", "2015-03-01 05:12:39.918269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$7NQFXlMScu93091zMS7hceyE8HIbfVcZ3CD0YnM1pJx1s9KwBT7H."], ["created_at", "2015-03-01 05:12:39.922738"], ["updated_at", "2015-03-01 05:12:39.922738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.924561"], ["user_id", "9524a92a-bfd1-11e4-9b87-705681abff85"], ["created_at", "2015-03-01 05:12:39.925379"], ["updated_at", "2015-03-01 05:12:39.925379"], ["token", "j2DnfMvI4eutVt1inX7oi12AhZ7Bg1H6lRYY6_5oIiw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '9522fe68-bfd1-11e4-a6ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "9522fe68-bfd1-11e4-a6ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.928986"], ["updated_at", "2015-03-01 05:12:39.928986"], ["token", "eLjuVJ55yQ4fW6z5ryeml5AjuaVMiOrPoI1fo6t7WvI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.934019' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "j2DnfMvI4eutVt1inX7oi12AhZ7Bg1H6lRYY6_5oIiw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.935703"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.936708"], ["id", "95251108-bfd1-11e4-9c58-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9524a92a-bfd1-11e4-9b87-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9524a92a-bfd1-11e4-9b87-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$9gPDn.aefYA5.F9Y7wbwn.3KMt2BaLdCgYN0Eg0iFlSmVNTalpzP6"], ["created_at", "2015-03-01 05:12:39.952198"], ["updated_at", "2015-03-01 05:12:39.952198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$TFNmzdNviid1.akN98SRn.GlovbsryWzbHoFenLaogYHM0Z3IWdUu"], ["created_at", "2015-03-01 05:12:39.956718"], ["updated_at", "2015-03-01 05:12:39.956718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.959354"], ["user_id", "95292662-bfd1-11e4-84e4-705681abff85"], ["created_at", "2015-03-01 05:12:39.960246"], ["updated_at", "2015-03-01 05:12:39.960246"], ["token", "SNgqdGFirYNXe8ErjO7CHTZR3rvNMZNW0i-cXLYti3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:39.963770"], ["updated_at", "2015-03-01 05:12:39.963770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95292662-bfd1-11e4-84e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '952ae45c-bfd1-11e4-8617-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95292662-bfd1-11e4-84e4-705681abff85"], ["organization_id", "952ae45c-bfd1-11e4-8617-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.968000"], ["updated_at", "2015-03-01 05:12:39.968000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9529dfb2-bfd1-11e4-a40b-705681abff85' AND "clubhouse_memberships"."organization_id" = '952ae45c-bfd1-11e4-8617-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9529dfb2-bfd1-11e4-a40b-705681abff85"], ["organization_id", "952ae45c-bfd1-11e4-8617-705681abff85"], ["created_at", "2015-03-01 05:12:39.971262"], ["updated_at", "2015-03-01 05:12:39.971262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$dPkkLEqL9HBi8lDgK5ZmMOLIuy3zrICG/j52VK3efCrhl1gM3p2Ky"], ["created_at", "2015-03-01 05:12:39.975576"], ["updated_at", "2015-03-01 05:12:39.975576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:39.977080"], ["user_id", "952cb25a-bfd1-11e4-b9f8-705681abff85"], ["created_at", "2015-03-01 05:12:39.978022"], ["updated_at", "2015-03-01 05:12:39.978022"], ["token", "KUVp0z9APId9p8SdGiJdby7BqM33CRYFmwF1WTxAyS0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '952ae45c-bfd1-11e4-8617-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "952ae45c-bfd1-11e4-8617-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:39.982322"], ["updated_at", "2015-03-01 05:12:39.982322"], ["token", "anDOYpODdr6srNcn-Z1rvw5-DXW0rguqYmD8Mx90kGk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:12:39 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"anDOYpODdr6srNcn-Z1rvw5-DXW0rguqYmD8Mx90kGk", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:39.987116' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KUVp0z9APId9p8SdGiJdby7BqM33CRYFmwF1WTxAyS0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:39.988609"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:39.989650"], ["id", "952d29b0-bfd1-11e4-9048-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "952cb25a-bfd1-11e4-b9f8-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "952cb25a-bfd1-11e4-b9f8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "anDOYpODdr6srNcn-Z1rvw5-DXW0rguqYmD8Mx90kGk"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "952ae45c-bfd1-11e4-8617-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "952ae45c-bfd1-11e4-8617-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '952cb25a-bfd1-11e4-b9f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '952ae45c-bfd1-11e4-8617-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "952cb25a-bfd1-11e4-b9f8-705681abff85"], ["admin", "t"], ["organization_id", "952ae45c-bfd1-11e4-8617-705681abff85"], ["created_at", "2015-03-01 05:12:39.997594"], ["updated_at", "2015-03-01 05:12:39.997594"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "952dc00a-bfd1-11e4-88aa-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 2.1ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$EwxpVx/PdoL.eZq4U1lLGesUAK6oYkM.xc0oxqczcNLLsJLotZ/IC"], ["created_at", "2015-03-01 05:12:40.010768"], ["updated_at", "2015-03-01 05:12:40.010768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.012434"], ["user_id", "95321556-bfd1-11e4-a819-705681abff85"], ["created_at", "2015-03-01 05:12:40.013238"], ["updated_at", "2015-03-01 05:12:40.013238"], ["token", "_Hvx-0ja9lrrjoCQXOXoS7lkb0RtMi2ZkPPaX6zWMhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.016635"], ["updated_at", "2015-03-01 05:12:40.016635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95321556-bfd1-11e4-a819-705681abff85' AND "clubhouse_memberships"."organization_id" = '9532f7f0-bfd1-11e4-a683-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95321556-bfd1-11e4-a819-705681abff85"], ["organization_id", "9532f7f0-bfd1-11e4-a683-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.020096"], ["updated_at", "2015-03-01 05:12:40.020096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '9532f7f0-bfd1-11e4-a683-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "9532f7f0-bfd1-11e4-a683-705681abff85"], ["created_at", "2015-03-01 05:12:40.024088"], ["updated_at", "2015-03-01 05:12:40.024088"], ["token", "YoXPogIHp9treARGdaLlSVv51vlorIv9sHbOjvc8AQI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$CYlgCl0/o9zMMKjsLwLSqO/8ZPAmFBLzPPjYA8K3cB4MJxupFA5O6"], ["created_at", "2015-03-01 05:12:40.029331"], ["updated_at", "2015-03-01 05:12:40.029331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.032346"], ["updated_at", "2015-03-01 05:12:40.032346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9534e7fe-bfd1-11e4-a46e-705681abff85' AND "clubhouse_memberships"."organization_id" = '95355af4-bfd1-11e4-b041-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9534e7fe-bfd1-11e4-a46e-705681abff85"], ["organization_id", "95355af4-bfd1-11e4-b041-705681abff85"], ["created_at", "2015-03-01 05:12:40.035703"], ["updated_at", "2015-03-01 05:12:40.035703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:40.047294' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_Hvx-0ja9lrrjoCQXOXoS7lkb0RtMi2ZkPPaX6zWMhY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:40.049210"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:40.050405"], ["id", "95327992-bfd1-11e4-aee7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "95321556-bfd1-11e4-a819-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "95321556-bfd1-11e4-a819-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95321556-bfd1-11e4-a819-705681abff85' LIMIT 1 [["organization_id", "9532f7f0-bfd1-11e4-a683-705681abff85"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "9532f7f0-bfd1-11e4-a683-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9532f7f0-bfd1-11e4-a683-705681abff85"]] Completed 200 OK in 17ms (Views: 6.8ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$TTgJmfEjetEoFE/GCOE2Ce5htzBZ54IlUlF.bI3bJJHOQNHPeCm9i"], ["created_at", "2015-03-01 05:12:40.072349"], ["updated_at", "2015-03-01 05:12:40.072349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.074270"], ["user_id", "953b7e8e-bfd1-11e4-bd92-705681abff85"], ["created_at", "2015-03-01 05:12:40.075046"], ["updated_at", "2015-03-01 05:12:40.075046"], ["token", "mxvnOAF1KgC9W5e-ihp644hKtVFFEj8c6w8Hoeoavk8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.078542"], ["updated_at", "2015-03-01 05:12:40.078542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '953b7e8e-bfd1-11e4-bd92-705681abff85' AND "clubhouse_memberships"."organization_id" = '953c67c2-bfd1-11e4-bc21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "953b7e8e-bfd1-11e4-bd92-705681abff85"], ["organization_id", "953c67c2-bfd1-11e4-bc21-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.081724"], ["updated_at", "2015-03-01 05:12:40.081724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '953c67c2-bfd1-11e4-bc21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "953c67c2-bfd1-11e4-bc21-705681abff85"], ["created_at", "2015-03-01 05:12:40.085062"], ["updated_at", "2015-03-01 05:12:40.085062"], ["token", "kKvsbCW25vN6j9UInvSeBtzcT4ujuCQdNNaNjwW3LZ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$pRK/shBrwP.HtXP5E73D8.Qws57RqDmaetuxyoL147NreQHLzb8Xe"], ["created_at", "2015-03-01 05:12:40.089837"], ["updated_at", "2015-03-01 05:12:40.089837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.092966"], ["updated_at", "2015-03-01 05:12:40.092966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '953e2486-bfd1-11e4-9fad-705681abff85' AND "clubhouse_memberships"."organization_id" = '953eb23e-bfd1-11e4-a3a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "953e2486-bfd1-11e4-9fad-705681abff85"], ["organization_id", "953eb23e-bfd1-11e4-a3a4-705681abff85"], ["created_at", "2015-03-01 05:12:40.097306"], ["updated_at", "2015-03-01 05:12:40.097306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$J.jSWGILVauDRzGgKRowYuF473jdCCzHCmcConnE9MQ6yznF7vhj6"], ["created_at", "2015-03-01 05:12:40.110573"], ["updated_at", "2015-03-01 05:12:40.110573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.112364"], ["user_id", "95415052-bfd1-11e4-a0df-705681abff85"], ["created_at", "2015-03-01 05:12:40.113198"], ["updated_at", "2015-03-01 05:12:40.113198"], ["token", "BMitMDxGDtr0aUEoCuJ-labFhuehKQzkrVbwnDHPjZc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.116689"], ["updated_at", "2015-03-01 05:12:40.116689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95415052-bfd1-11e4-a0df-705681abff85' AND "clubhouse_memberships"."organization_id" = '95423e68-bfd1-11e4-a435-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95415052-bfd1-11e4-a0df-705681abff85"], ["organization_id", "95423e68-bfd1-11e4-a435-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.120168"], ["updated_at", "2015-03-01 05:12:40.120168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '95423e68-bfd1-11e4-a435-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "95423e68-bfd1-11e4-a435-705681abff85"], ["created_at", "2015-03-01 05:12:40.125844"], ["updated_at", "2015-03-01 05:12:40.125844"], ["token", "fZJUqzIP1HWT09ZXiYbMRe8fEhklkL_-2C9HxUgiV-E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$iA3l6FR.S3PCnUbuYfGfxun7nUEHDdnlhQl58KyGxhj2BfxptHkQK"], ["created_at", "2015-03-01 05:12:40.137937"], ["updated_at", "2015-03-01 05:12:40.137937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.139956"], ["user_id", "9545851e-bfd1-11e4-8051-705681abff85"], ["created_at", "2015-03-01 05:12:40.140858"], ["updated_at", "2015-03-01 05:12:40.140858"], ["token", "WUC4qOQxUosixkDCVPqDTKy4pc34GaBgI3pHwNJJ0iE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.144852"], ["updated_at", "2015-03-01 05:12:40.144852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9545851e-bfd1-11e4-8051-705681abff85' AND "clubhouse_memberships"."organization_id" = '95468bc6-bfd1-11e4-9b45-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9545851e-bfd1-11e4-8051-705681abff85"], ["organization_id", "95468bc6-bfd1-11e4-9b45-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.148512"], ["updated_at", "2015-03-01 05:12:40.148512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '95468bc6-bfd1-11e4-9b45-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "95468bc6-bfd1-11e4-9b45-705681abff85"], ["created_at", "2015-03-01 05:12:40.152057"], ["updated_at", "2015-03-01 05:12:40.152057"], ["token", "FK0TBdty-hRjn2kwxTSDUsZd3Ow86krUFRyu7vb6-gQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:40.157150' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WUC4qOQxUosixkDCVPqDTKy4pc34GaBgI3pHwNJJ0iE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:40.159098"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:40.160385"], ["id", "9545f68e-bfd1-11e4-bbe8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9545851e-bfd1-11e4-8051-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "9545851e-bfd1-11e4-8051-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9545851e-bfd1-11e4-8051-705681abff85' LIMIT 1 [["organization_id", "95468bc6-bfd1-11e4-9b45-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "95468bc6-bfd1-11e4-9b45-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '95468bc6-bfd1-11e4-9b45-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$/FBRCa07pinyZzU.wKnbmuurfmGX73Hs.EpGdgnTh1E1HE5/N7fAi"], ["created_at", "2015-03-01 05:12:40.180460"], ["updated_at", "2015-03-01 05:12:40.180460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.182236"], ["user_id", "954bff70-bfd1-11e4-b74d-705681abff85"], ["created_at", "2015-03-01 05:12:40.182983"], ["updated_at", "2015-03-01 05:12:40.182983"], ["token", "QgCbxc22iwCg3a-FIrYEUYj5BEu_d9LfmzLV3qlRde8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.186279"], ["updated_at", "2015-03-01 05:12:40.186279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '954bff70-bfd1-11e4-b74d-705681abff85' AND "clubhouse_memberships"."organization_id" = '954cd706-bfd1-11e4-99e1-705681abff85') LIMIT 1 SQL (3.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "954bff70-bfd1-11e4-b74d-705681abff85"], ["organization_id", "954cd706-bfd1-11e4-99e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.189621"], ["updated_at", "2015-03-01 05:12:40.189621"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '954cd706-bfd1-11e4-99e1-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "954cd706-bfd1-11e4-99e1-705681abff85"], ["created_at", "2015-03-01 05:12:40.210758"], ["updated_at", "2015-03-01 05:12:40.210758"], ["token", "Mnw9Dh-vbzV5MQG5ljc6k_nqWGhd7Q4RW_ZppHP0-3A"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:40.220453' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QgCbxc22iwCg3a-FIrYEUYj5BEu_d9LfmzLV3qlRde8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:40.222772"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:40.224531"], ["id", "954c60f0-bfd1-11e4-b5cb-705681abff85"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "954bff70-bfd1-11e4-b74d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "954bff70-bfd1-11e4-b74d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '954bff70-bfd1-11e4-b74d-705681abff85' LIMIT 1 [["organization_id", "954cd706-bfd1-11e4-99e1-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "954cd706-bfd1-11e4-99e1-705681abff85"]] Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '954cd706-bfd1-11e4-99e1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "954cd706-bfd1-11e4-99e1-705681abff85"], ["created_at", "2015-03-01 05:12:40.240554"], ["updated_at", "2015-03-01 05:12:40.240554"], ["token", "Cuj1O5B7G5U8Xu3hmh_k6r5-ETYUb4LOs_PckLduZ6A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6902d5f8-ed35-485f-b7cf-74c8bc7e0452) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/955551d8-bfd1-11e4-9457-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "955551d8-bfd1-11e4-9457-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [6902d5f8-ed35-485f-b7cf-74c8bc7e0452] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/955551d8-bfd1-11e4-9457-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [6902d5f8-ed35-485f-b7cf-74c8bc7e0452] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "954cd706-bfd1-11e4-99e1-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [6902d5f8-ed35-485f-b7cf-74c8bc7e0452] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [6902d5f8-ed35-485f-b7cf-74c8bc7e0452] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [6902d5f8-ed35-485f-b7cf-74c8bc7e0452] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [6902d5f8-ed35-485f-b7cf-74c8bc7e0452] Date: Sat, 28 Feb 2015 21:12:40 -0800 From: from@example.com To: email@example.com Message-ID: <54f29fc8443c8_132273fe909055be0451cd@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Cuj1O5B7G5U8Xu3hmh_k6r5-ETYUb4LOs_PckLduZ6A If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [6902d5f8-ed35-485f-b7cf-74c8bc7e0452] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.59ms Completed 201 Created in 62ms (Views: 0.9ms | ActiveRecord: 4.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$dsZk3lUc6bOsSpy56J2qq.o1gdXM6uA9JvcKOVaQLl6nQNRYfBKpK"], ["created_at", "2015-03-01 05:12:40.287953"], ["updated_at", "2015-03-01 05:12:40.287953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.289734"], ["user_id", "955c6162-bfd1-11e4-81b9-705681abff85"], ["created_at", "2015-03-01 05:12:40.290824"], ["updated_at", "2015-03-01 05:12:40.290824"], ["token", "zFhazv4DmQC5OHb__y-ixq97d4PSq78RRsF1rqvp4OA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.294803"], ["updated_at", "2015-03-01 05:12:40.294803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '955c6162-bfd1-11e4-81b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '955d6896-bfd1-11e4-a845-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "955c6162-bfd1-11e4-81b9-705681abff85"], ["organization_id", "955d6896-bfd1-11e4-a845-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.298271"], ["updated_at", "2015-03-01 05:12:40.298271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '955d6896-bfd1-11e4-a845-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "955d6896-bfd1-11e4-a845-705681abff85"], ["created_at", "2015-03-01 05:12:40.302108"], ["updated_at", "2015-03-01 05:12:40.302108"], ["token", "_bFAk9fFWIjxgSTUoNsq0tmw_prDQE8iTRpoJ6NuYKY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:40.307030' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zFhazv4DmQC5OHb__y-ixq97d4PSq78RRsF1rqvp4OA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:40.308448"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:40.309371"], ["id", "955ce880-bfd1-11e4-b4c0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "955c6162-bfd1-11e4-81b9-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "955c6162-bfd1-11e4-81b9-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '955c6162-bfd1-11e4-81b9-705681abff85' LIMIT 1 [["organization_id", "955d6896-bfd1-11e4-a845-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "955d6896-bfd1-11e4-a845-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '955d6896-bfd1-11e4-a845-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "955d6896-bfd1-11e4-a845-705681abff85"], ["created_at", "2015-03-01 05:12:40.316494"], ["updated_at", "2015-03-01 05:12:40.316494"], ["token", "3vcHzHbRW73WcxXiedBpOQgJI7Vq8pRYfjGuYZ_Ww5g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a78b49b6-f09c-41b1-bd0b-16033258a75a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9560bce4-bfd1-11e4-ab46-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "9560bce4-bfd1-11e4-ab46-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a78b49b6-f09c-41b1-bd0b-16033258a75a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9560bce4-bfd1-11e4-ab46-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [a78b49b6-f09c-41b1-bd0b-16033258a75a] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "955d6896-bfd1-11e4-a845-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a78b49b6-f09c-41b1-bd0b-16033258a75a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [a78b49b6-f09c-41b1-bd0b-16033258a75a] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [a78b49b6-f09c-41b1-bd0b-16033258a75a] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [a78b49b6-f09c-41b1-bd0b-16033258a75a] Date: Sat, 28 Feb 2015 21:12:40 -0800 From: from@example.com To: email@example.com Message-ID: <54f29fc84f0ae_132273fe909055be0452d0@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/3vcHzHbRW73WcxXiedBpOQgJI7Vq8pRYfjGuYZ_Ww5g If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a78b49b6-f09c-41b1-bd0b-16033258a75a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.89ms Completed 201 Created in 19ms (Views: 0.8ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$fIJyn9T2DuGLhJcNcqQCtuOQBKoXVgwl98HbOlxgv.ATtIDk9JyaK"], ["created_at", "2015-03-01 05:12:40.332708"], ["updated_at", "2015-03-01 05:12:40.332708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.334217"], ["user_id", "956330e6-bfd1-11e4-a11b-705681abff85"], ["created_at", "2015-03-01 05:12:40.334944"], ["updated_at", "2015-03-01 05:12:40.334944"], ["token", "JUfNwwo4oMyRrEa4OJEgCUomfINOSHAe8tLMTNBqx1A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.337893"], ["updated_at", "2015-03-01 05:12:40.337893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '956330e6-bfd1-11e4-a11b-705681abff85' AND "clubhouse_memberships"."organization_id" = '9563f8f0-bfd1-11e4-9f0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "956330e6-bfd1-11e4-a11b-705681abff85"], ["organization_id", "9563f8f0-bfd1-11e4-9f0f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.341158"], ["updated_at", "2015-03-01 05:12:40.341158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '9563f8f0-bfd1-11e4-9f0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "9563f8f0-bfd1-11e4-9f0f-705681abff85"], ["created_at", "2015-03-01 05:12:40.344430"], ["updated_at", "2015-03-01 05:12:40.344430"], ["token", "muF2wraIh_b_0WwAty8hudt-y9lLoGmJQRpAzkEeXAE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/9564fc78-bfd1-11e4-be0e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"9564fc78-bfd1-11e4-be0e-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:40.349116' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JUfNwwo4oMyRrEa4OJEgCUomfINOSHAe8tLMTNBqx1A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:40.350522"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:40.351482"], ["id", "95638c9e-bfd1-11e4-a712-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "956330e6-bfd1-11e4-a11b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "956330e6-bfd1-11e4-a11b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '956330e6-bfd1-11e4-a11b-705681abff85' LIMIT 1 [["organization_id", "9563f8f0-bfd1-11e4-9f0f-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "9563f8f0-bfd1-11e4-9f0f-705681abff85"], ["id", "9564fc78-bfd1-11e4-be0e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9563f8f0-bfd1-11e4-9f0f-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."id" != '9564fc78-bfd1-11e4-be0e-705681abff85' AND "clubhouse_invitations"."organization_id" = '9563f8f0-bfd1-11e4-9f0f-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:12:40.361908"], ["id", "9564fc78-bfd1-11e4-be0e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.9ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$h3pAPY93YY266q.yA5VqBuaVCePnlA2WV78OolPt9hNPkMRJ6PkKG"], ["created_at", "2015-03-01 05:12:40.369986"], ["updated_at", "2015-03-01 05:12:40.369986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.371479"], ["user_id", "9568e158-bfd1-11e4-9bab-705681abff85"], ["created_at", "2015-03-01 05:12:40.372217"], ["updated_at", "2015-03-01 05:12:40.372217"], ["token", "dr6j4nlMHjpL7ELrYR9nMHZv5RHKP-kTSWkHf762rzw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.375438"], ["updated_at", "2015-03-01 05:12:40.375438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9568e158-bfd1-11e4-9bab-705681abff85' AND "clubhouse_memberships"."organization_id" = '9569ba38-bfd1-11e4-abf9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9568e158-bfd1-11e4-9bab-705681abff85"], ["organization_id", "9569ba38-bfd1-11e4-abf9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.379826"], ["updated_at", "2015-03-01 05:12:40.379826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '9569ba38-bfd1-11e4-abf9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "9569ba38-bfd1-11e4-abf9-705681abff85"], ["created_at", "2015-03-01 05:12:40.383518"], ["updated_at", "2015-03-01 05:12:40.383518"], ["token", "A4bKfCV_7qWw9VPqLQgSbsvNqOdRwtufM6NYCSbDAMI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$2KQPGmXZyoG38m/RFWNxiuxEmBWBTk8y5QqTWAT72GG/hPPFTLnFm"], ["created_at", "2015-03-01 05:12:40.396745"], ["updated_at", "2015-03-01 05:12:40.396745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.398921"], ["user_id", "956d08c8-bfd1-11e4-a1eb-705681abff85"], ["created_at", "2015-03-01 05:12:40.399631"], ["updated_at", "2015-03-01 05:12:40.399631"], ["token", "0Soh5BVmPjuuur9sjotSLR-9CAgaQXpv23x3t3tvZ4g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.402761"], ["updated_at", "2015-03-01 05:12:40.402761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '956d08c8-bfd1-11e4-a1eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '956de50e-bfd1-11e4-852e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "956d08c8-bfd1-11e4-a1eb-705681abff85"], ["organization_id", "956de50e-bfd1-11e4-852e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.406219"], ["updated_at", "2015-03-01 05:12:40.406219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '956de50e-bfd1-11e4-852e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "956de50e-bfd1-11e4-852e-705681abff85"], ["created_at", "2015-03-01 05:12:40.409669"], ["updated_at", "2015-03-01 05:12:40.409669"], ["token", "O3iQ4-q4DdADz0IZJRPfBb4_bkLy8u7Hx63CeLZ1BoY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/956ef430-bfd1-11e4-8e3e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"956ef430-bfd1-11e4-8e3e-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:40.414823' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0Soh5BVmPjuuur9sjotSLR-9CAgaQXpv23x3t3tvZ4g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:40.416235"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:40.417138"], ["id", "956d6c96-bfd1-11e4-803f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "956d08c8-bfd1-11e4-a1eb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "956d08c8-bfd1-11e4-a1eb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '956d08c8-bfd1-11e4-a1eb-705681abff85' LIMIT 1 [["organization_id", "956de50e-bfd1-11e4-852e-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "956de50e-bfd1-11e4-852e-705681abff85"], ["id", "956ef430-bfd1-11e4-8e3e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "956de50e-bfd1-11e4-852e-705681abff85"]] Completed 200 OK in 9ms (Views: 1.3ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$EV2wOiBXTD./fCwHigV3GO5VDcsEg1JywstP0ZbpuqrEaev1fBMay"], ["created_at", "2015-03-01 05:12:40.430671"], ["updated_at", "2015-03-01 05:12:40.430671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.432245"], ["user_id", "9572256a-bfd1-11e4-9232-705681abff85"], ["created_at", "2015-03-01 05:12:40.433029"], ["updated_at", "2015-03-01 05:12:40.433029"], ["token", "EqHMBf6kfhrmDRKNIsBbkqRkgyJ9iLrEcJD8CV6xOFk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.436154"], ["updated_at", "2015-03-01 05:12:40.436154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9572256a-bfd1-11e4-9232-705681abff85' AND "clubhouse_memberships"."organization_id" = '9572f896-bfd1-11e4-9163-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9572256a-bfd1-11e4-9232-705681abff85"], ["organization_id", "9572f896-bfd1-11e4-9163-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.439170"], ["updated_at", "2015-03-01 05:12:40.439170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '9572f896-bfd1-11e4-9163-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "9572f896-bfd1-11e4-9163-705681abff85"], ["created_at", "2015-03-01 05:12:40.442721"], ["updated_at", "2015-03-01 05:12:40.442721"], ["token", "_aDuqagKUNG3A69EBWxr7hgIKwPuLnrkxxdRsj7E6vY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$zC6Aeus6G26wDVEkz8w1cujBqT0IKaobrVaPzvuJvVAZM24Hc1aZ2"], ["created_at", "2015-03-01 05:12:40.456007"], ["updated_at", "2015-03-01 05:12:40.456007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.457579"], ["user_id", "95760284-bfd1-11e4-944a-705681abff85"], ["created_at", "2015-03-01 05:12:40.458331"], ["updated_at", "2015-03-01 05:12:40.458331"], ["token", "SCiJth4HABhfstlxrh9-IxMkQlgLt3NFNlgDowLbMcU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.462188"], ["updated_at", "2015-03-01 05:12:40.462188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95760284-bfd1-11e4-944a-705681abff85' AND "clubhouse_memberships"."organization_id" = '9576f716-bfd1-11e4-9714-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95760284-bfd1-11e4-944a-705681abff85"], ["organization_id", "9576f716-bfd1-11e4-9714-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.465602"], ["updated_at", "2015-03-01 05:12:40.465602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '9576f716-bfd1-11e4-9714-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "9576f716-bfd1-11e4-9714-705681abff85"], ["created_at", "2015-03-01 05:12:40.468907"], ["updated_at", "2015-03-01 05:12:40.468907"], ["token", "avLolo5nelRqH3tOufv7qbl7NBBrbgfnaFNCxlBTT7o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/9577fcce-bfd1-11e4-8bd7-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"9577fcce-bfd1-11e4-8bd7-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:12:40.473547' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SCiJth4HABhfstlxrh9-IxMkQlgLt3NFNlgDowLbMcU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:12:40.474996"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:12:40.475956"], ["id", "9576612a-bfd1-11e4-98ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "95760284-bfd1-11e4-944a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "95760284-bfd1-11e4-944a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95760284-bfd1-11e4-944a-705681abff85' LIMIT 1 [["organization_id", "9576f716-bfd1-11e4-9714-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "9576f716-bfd1-11e4-9714-705681abff85"], ["id", "9577fcce-bfd1-11e4-8bd7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "9577fcce-bfd1-11e4-8bd7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$SZVVfPkBsg9BYbYlmJqwzeIiEwAfJSfgyvVXeUYt4d.tLkeVb5FcS"], ["created_at", "2015-03-01 05:12:40.490039"], ["updated_at", "2015-03-01 05:12:40.490039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:12:40.491702"], ["user_id", "957b33d0-bfd1-11e4-94b3-705681abff85"], ["created_at", "2015-03-01 05:12:40.492477"], ["updated_at", "2015-03-01 05:12:40.492477"], ["token", "SFDBqscggnkhsuVEzlcf8cCrh7ETguZSVCyYbQklNl8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:12:40.495530"], ["updated_at", "2015-03-01 05:12:40.495530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '957b33d0-bfd1-11e4-94b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '957c0652-bfd1-11e4-9a0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "957b33d0-bfd1-11e4-94b3-705681abff85"], ["organization_id", "957c0652-bfd1-11e4-9a0f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:12:40.498667"], ["updated_at", "2015-03-01 05:12:40.498667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '957c0652-bfd1-11e4-9a0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "957c0652-bfd1-11e4-9a0f-705681abff85"], ["created_at", "2015-03-01 05:12:40.501852"], ["updated_at", "2015-03-01 05:12:40.501852"], ["token", "BvXw7UAMcpH5dIr_JqdVH7G1GAxx6uu3LXbYAyn_H8I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 21:12:40 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.136609"], ["updated_at", "2015-03-01 05:13:44.136609"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.153078"], ["updated_at", "2015-03-01 05:13:44.153078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.158820"], ["updated_at", "2015-03-01 05:13:44.158820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb6e4bae-bfd1-11e4-be3e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.168494"], ["updated_at", "2015-03-01 05:13:44.168494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.222032"], ["updated_at", "2015-03-01 05:13:44.222032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bb78144a-bfd1-11e4-b80b-705681abff85') LIMIT 1 SQL (7.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "bb78144a-bfd1-11e4-b80b-705681abff85"], ["created_at", "2015-03-01 05:13:44.237629"], ["updated_at", "2015-03-01 05:13:44.237629"], ["token", "MZmSAlsKMs7OamQY4pPd9HWfX2_ZqSOeIreUSOpSWoE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb78144a-bfd1-11e4-b80b-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bb78144a-bfd1-11e4-b80b-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb78144a-bfd1-11e4-b80b-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bb78144a-bfd1-11e4-b80b-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.266145"], ["updated_at", "2015-03-01 05:13:44.266145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bb7ec2b8-bfd1-11e4-af72-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "bb7ec2b8-bfd1-11e4-af72-705681abff85"], ["created_at", "2015-03-01 05:13:44.270314"], ["updated_at", "2015-03-01 05:13:44.270314"], ["token", "z3nYLOQhy8GbYnZJgQCTydgjM6FkQ341kZPICLFeeYw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.517558"], ["updated_at", "2015-03-01 05:13:44.517558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bba5101c-bfd1-11e4-81cb-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bba5101c-bfd1-11e4-81cb-705681abff85"], ["created_at", "2015-03-01 05:13:44.530094"], ["updated_at", "2015-03-01 05:13:44.530094"], ["token", "XmLEIDmqfrnfXZFgqYZAYumNNMwzhyj-2LpL9PXBSA0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.3ms) Clubhouse::Mailer#invitation: processed outbound mail in 19.7ms Sent mail to john@example.com (8.0ms) Date: Sat, 28 Feb 2015 21:13:44 -0800 From: from@example.com To: john@example.com Message-ID: <54f2a008890de_132313fc2de065be05001f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/XmLEIDmqfrnfXZFgqYZAYumNNMwzhyj-2LpL9PXBSA0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.570341"], ["updated_at", "2015-03-01 05:13:44.570341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bbad1b2c-bfd1-11e4-9f75-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bbad1b2c-bfd1-11e4-9f75-705681abff85"], ["created_at", "2015-03-01 05:13:44.574342"], ["updated_at", "2015-03-01 05:13:44.574342"], ["token", "-ayykXfLXiT-aT5X_sMa6lL4yLMPZ2Xdds2_lgrlmLI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 21:13:44 -0800 From: from@example.com To: john@example.com Message-ID: <54f2a0088d491_132313fc2de065be050194@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/-ayykXfLXiT-aT5X_sMa6lL4yLMPZ2Xdds2_lgrlmLI If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.583564"], ["updated_at", "2015-03-01 05:13:44.583564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bbaf1b70-bfd1-11e4-9a56-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bbaf1b70-bfd1-11e4-9a56-705681abff85"], ["created_at", "2015-03-01 05:13:44.587980"], ["updated_at", "2015-03-01 05:13:44.587980"], ["token", "8ZlZXmseMa6_fUx2Ahnz1ej_jNcho5d5fbjwp8l84TA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (2.4ms) Date: Sat, 28 Feb 2015 21:13:44 -0800 From: from@example.com To: john@example.com Message-ID: <54f2a008908a6_132313fc2de065be0502d7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/8ZlZXmseMa6_fUx2Ahnz1ej_jNcho5d5fbjwp8l84TA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.598802"], ["updated_at", "2015-03-01 05:13:44.598802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bbb17208-bfd1-11e4-b4f8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bbb17208-bfd1-11e4-b4f8-705681abff85"], ["created_at", "2015-03-01 05:13:44.603883"], ["updated_at", "2015-03-01 05:13:44.603883"], ["token", "VEMorT78hlmMHpFVt_2B6zMAU7uQwVAyi-D66kpJBNs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms Sent mail to john@example.com (2.1ms) Date: Sat, 28 Feb 2015 21:13:44 -0800 From: from@example.com To: john@example.com Message-ID: <54f2a00894dca_132313fc2de065be050343@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/VEMorT78hlmMHpFVt_2B6zMAU7uQwVAyi-D66kpJBNs If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$xtw5W5uEoy3eh.tPBO8/D.qv1sZbEe51QZ.n98YBmETwS.mGhgEfe"], ["created_at", "2015-03-01 05:13:44.624348"], ["updated_at", "2015-03-01 05:13:44.624348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.635973"], ["user_id", "bbb56444-bfd1-11e4-b2c0-705681abff85"], ["created_at", "2015-03-01 05:13:44.637259"], ["updated_at", "2015-03-01 05:13:44.637259"], ["token", "lirjlsfbiTY3cPsl5fhQ3yxkZkA7poL4leAmUEXCqBY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.641723"], ["updated_at", "2015-03-01 05:13:44.641723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbb56444-bfd1-11e4-b2c0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbb7fc86-bfd1-11e4-a7b0-705681abff85') LIMIT 1 SQL (5.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbb56444-bfd1-11e4-b2c0-705681abff85"], ["organization_id", "bbb7fc86-bfd1-11e4-a7b0-705681abff85"], ["created_at", "2015-03-01 05:13:44.655014"], ["updated_at", "2015-03-01 05:13:44.655014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$F2jZgNnobBEPIDn.U.MN3eYFDodsThgnAFzdejquPwge/BaHsdTnu"], ["created_at", "2015-03-01 05:13:44.696401"], ["updated_at", "2015-03-01 05:13:44.696401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.697991"], ["user_id", "bbc051ba-bfd1-11e4-b672-705681abff85"], ["created_at", "2015-03-01 05:13:44.698757"], ["updated_at", "2015-03-01 05:13:44.698757"], ["token", "jtq9cIlVsmUAZmr7FlHpl5I06jl0ne12OALwb1v3TSE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.701882"], ["updated_at", "2015-03-01 05:13:44.701882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc051ba-bfd1-11e4-b672-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc126f8-bfd1-11e4-87f8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbc051ba-bfd1-11e4-b672-705681abff85"], ["organization_id", "bbc126f8-bfd1-11e4-87f8-705681abff85"], ["created_at", "2015-03-01 05:13:44.705544"], ["updated_at", "2015-03-01 05:13:44.705544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:44.709955' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jtq9cIlVsmUAZmr7FlHpl5I06jl0ne12OALwb1v3TSE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:44.712013"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:44.714120"], ["id", "bbc0b218-bfd1-11e4-a67d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbc051ba-bfd1-11e4-b672-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbc051ba-bfd1-11e4-b672-705681abff85"], ["name", "org-6"]] Completed 200 OK in 24ms (Views: 1.6ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$0dqwzZit9kSEBKk9CqYLDerwzJ/aRS..0LQRB8i7BI8zLMLpdb8PW"], ["created_at", "2015-03-01 05:13:44.742682"], ["updated_at", "2015-03-01 05:13:44.742682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.744220"], ["user_id", "bbc7616c-bfd1-11e4-b4f2-705681abff85"], ["created_at", "2015-03-01 05:13:44.745004"], ["updated_at", "2015-03-01 05:13:44.745004"], ["token", "PTpCXm44wdUmoW3Un7O87RGR_aEvbNEFXwKjxDBpYlY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.748335"], ["updated_at", "2015-03-01 05:13:44.748335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc7616c-bfd1-11e4-b4f2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc83a2e-bfd1-11e4-a21b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbc7616c-bfd1-11e4-b4f2-705681abff85"], ["organization_id", "bbc83a2e-bfd1-11e4-a21b-705681abff85"], ["created_at", "2015-03-01 05:13:44.751472"], ["updated_at", "2015-03-01 05:13:44.751472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-7" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-7"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-7"]] Completed 200 OK in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$feSx4yELVLzt9xUJ9oUcjuwv2q.Cs/ud/srNtuiqiBhFGC4IMjNYa"], ["created_at", "2015-03-01 05:13:44.765807"], ["updated_at", "2015-03-01 05:13:44.765807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.767393"], ["user_id", "bbcae864-bfd1-11e4-a9de-705681abff85"], ["created_at", "2015-03-01 05:13:44.768138"], ["updated_at", "2015-03-01 05:13:44.768138"], ["token", "WrcyAz3dZoAVJ_3JxqFUaomuIKde3PZY0AjtQq3UclE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.771256"], ["updated_at", "2015-03-01 05:13:44.771256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbcae864-bfd1-11e4-a9de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbcbb9b0-bfd1-11e4-8f2b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbcae864-bfd1-11e4-a9de-705681abff85"], ["organization_id", "bbcbb9b0-bfd1-11e4-8f2b-705681abff85"], ["created_at", "2015-03-01 05:13:44.774785"], ["updated_at", "2015-03-01 05:13:44.774785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$KUShMPuKRWzHJj0XaVshu.WiQSBm0YemTtcmUQVU5yc9racIKWI1y"], ["created_at", "2015-03-01 05:13:44.785288"], ["updated_at", "2015-03-01 05:13:44.785288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.787353"], ["user_id", "bbcde668-bfd1-11e4-8bcd-705681abff85"], ["created_at", "2015-03-01 05:13:44.789175"], ["updated_at", "2015-03-01 05:13:44.789175"], ["token", "l4iWVDiry2QWHNGXb-RDQ5-h7YV0KxldoPRJudwe7vQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.792739"], ["updated_at", "2015-03-01 05:13:44.792739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbcde668-bfd1-11e4-8bcd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbcf026e-bfd1-11e4-9643-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbcde668-bfd1-11e4-8bcd-705681abff85"], ["organization_id", "bbcf026e-bfd1-11e4-9643-705681abff85"], ["created_at", "2015-03-01 05:13:44.795921"], ["updated_at", "2015-03-01 05:13:44.795921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$wnrBHYLGCkGXpRbFTF3X7udMOPY7f4X.iV.dUKAO/tD5DhrQ0tfQu"], ["created_at", "2015-03-01 05:13:44.800216"], ["updated_at", "2015-03-01 05:13:44.800216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.803073"], ["updated_at", "2015-03-01 05:13:44.803073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd0263a-bfd1-11e4-984c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbd09458-bfd1-11e4-bebe-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbd0263a-bfd1-11e4-984c-705681abff85"], ["organization_id", "bbd09458-bfd1-11e4-bebe-705681abff85"], ["created_at", "2015-03-01 05:13:44.806046"], ["updated_at", "2015-03-01 05:13:44.806046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$6iSgEdIGZV6Q1U1RJUIUWuMNS5hAqD.zU/03BJjGc7fgZvJhtBq56"], ["created_at", "2015-03-01 05:13:44.819811"], ["updated_at", "2015-03-01 05:13:44.819811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.821552"], ["user_id", "bbd32a74-bfd1-11e4-8891-705681abff85"], ["created_at", "2015-03-01 05:13:44.822555"], ["updated_at", "2015-03-01 05:13:44.822555"], ["token", "3jFdrtXzGkH2h_4xM_LchFDgjz1U5eyRJrzecSpCN9I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.826235"], ["updated_at", "2015-03-01 05:13:44.826235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd32a74-bfd1-11e4-8891-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbd41dd0-bfd1-11e4-9d69-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbd32a74-bfd1-11e4-8891-705681abff85"], ["organization_id", "bbd41dd0-bfd1-11e4-9d69-705681abff85"], ["created_at", "2015-03-01 05:13:44.829360"], ["updated_at", "2015-03-01 05:13:44.829360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$rd7n1HZ877GO9.JuQfIIKOJFUIeXBmv4p.WNqzjwumfuvwBIGeMI2"], ["created_at", "2015-03-01 05:13:44.833486"], ["updated_at", "2015-03-01 05:13:44.833486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.836374"], ["updated_at", "2015-03-01 05:13:44.836374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd538c8-bfd1-11e4-9e9c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbd5acae-bfd1-11e4-871d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbd538c8-bfd1-11e4-9e9c-705681abff85"], ["organization_id", "bbd5acae-bfd1-11e4-871d-705681abff85"], ["created_at", "2015-03-01 05:13:44.840587"], ["updated_at", "2015-03-01 05:13:44.840587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:44.845178' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3jFdrtXzGkH2h_4xM_LchFDgjz1U5eyRJrzecSpCN9I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:44.846877"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:44.847983"], ["id", "bbd3a404-bfd1-11e4-a472-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbd32a74-bfd1-11e4-8891-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "bbd32a74-bfd1-11e4-8891-705681abff85"]] Completed 200 OK in 9ms (Views: 2.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$f4y3.1bVE7MNCTo69yoTouwAz09v3XOD5KTalkqDi4HZ6mUu7C7qa"], ["created_at", "2015-03-01 05:13:44.860003"], ["updated_at", "2015-03-01 05:13:44.860003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.861533"], ["user_id", "bbd946de-bfd1-11e4-ab61-705681abff85"], ["created_at", "2015-03-01 05:13:44.862267"], ["updated_at", "2015-03-01 05:13:44.862267"], ["token", "YPBLBiE6jYwDyC1U_2Qz_U0u0DubMuauLSDY74jIInI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.865305"], ["updated_at", "2015-03-01 05:13:44.865305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd946de-bfd1-11e4-ab61-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbda12ee-bfd1-11e4-8d7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbd946de-bfd1-11e4-ab61-705681abff85"], ["organization_id", "bbda12ee-bfd1-11e4-8d7a-705681abff85"], ["created_at", "2015-03-01 05:13:44.868292"], ["updated_at", "2015-03-01 05:13:44.868292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$fKxj/RZJHY6k.Xktqf8J8ebJG4fxcOGr/PkjNM4xWrQMrwRGmg0q6"], ["created_at", "2015-03-01 05:13:44.881801"], ["updated_at", "2015-03-01 05:13:44.881801"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.885839"], ["user_id", "bbdc9cc6-bfd1-11e4-a524-705681abff85"], ["created_at", "2015-03-01 05:13:44.886734"], ["updated_at", "2015-03-01 05:13:44.886734"], ["token", "LudxyFUERgpNCnLGb_5FNNs06x8R4RRuisiCfjddzII"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.890502"], ["updated_at", "2015-03-01 05:13:44.890502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbdc9cc6-bfd1-11e4-a524-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbddf7d8-bfd1-11e4-a22b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbdc9cc6-bfd1-11e4-a524-705681abff85"], ["organization_id", "bbddf7d8-bfd1-11e4-a22b-705681abff85"], ["created_at", "2015-03-01 05:13:44.894450"], ["updated_at", "2015-03-01 05:13:44.894450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/bbddf7d8-bfd1-11e4-a22b-705681abff85" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"bbddf7d8-bfd1-11e4-a22b-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:44.898761' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LudxyFUERgpNCnLGb_5FNNs06x8R4RRuisiCfjddzII"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:44.900635"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:44.902342"], ["id", "bbdd6638-bfd1-11e4-9545-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbdc9cc6-bfd1-11e4-a524-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbdc9cc6-bfd1-11e4-a524-705681abff85"], ["id", "bbddf7d8-bfd1-11e4-a22b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bbddf7d8-bfd1-11e4-a22b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$gfEYyoks6ULhJWdJACrym.VJgi8e9kGEWslkcu3CFDAlvBNiPGQeG"], ["created_at", "2015-03-01 05:13:44.915230"], ["updated_at", "2015-03-01 05:13:44.915230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.916800"], ["user_id", "bbe1b580-bfd1-11e4-b8b9-705681abff85"], ["created_at", "2015-03-01 05:13:44.917523"], ["updated_at", "2015-03-01 05:13:44.917523"], ["token", "0wGjs37GUe9VU-u5B1vJCoKHNs0VX-DFXc6uHYnQMsY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.920555"], ["updated_at", "2015-03-01 05:13:44.920555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbe1b580-bfd1-11e4-b8b9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbe28190-bfd1-11e4-ac5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbe1b580-bfd1-11e4-b8b9-705681abff85"], ["organization_id", "bbe28190-bfd1-11e4-ac5b-705681abff85"], ["created_at", "2015-03-01 05:13:44.923609"], ["updated_at", "2015-03-01 05:13:44.923609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$0gvwzs.qOc3ZXXXUqcepyO0tEh60f.ysPJ2DSKbYEQG56V2QfpfTa"], ["created_at", "2015-03-01 05:13:44.935052"], ["updated_at", "2015-03-01 05:13:44.935052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.936710"], ["user_id", "bbe4bc9e-bfd1-11e4-a037-705681abff85"], ["created_at", "2015-03-01 05:13:44.937503"], ["updated_at", "2015-03-01 05:13:44.937503"], ["token", "ySRf1v2R7lyVJBYlX1cRjK-1KBuFMZDHJYYy8vO8Hpg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.940902"], ["updated_at", "2015-03-01 05:13:44.940902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbe4bc9e-bfd1-11e4-a037-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbe59ec0-bfd1-11e4-87cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbe4bc9e-bfd1-11e4-a037-705681abff85"], ["organization_id", "bbe59ec0-bfd1-11e4-87cc-705681abff85"], ["created_at", "2015-03-01 05:13:44.944123"], ["updated_at", "2015-03-01 05:13:44.944123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:44.948876' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ySRf1v2R7lyVJBYlX1cRjK-1KBuFMZDHJYYy8vO8Hpg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:44.950324"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:44.951308"], ["id", "bbe52490-bfd1-11e4-9f80-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbe4bc9e-bfd1-11e4-a037-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.958248"], ["updated_at", "2015-03-01 05:13:44.958248"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbe8477e-bfd1-11e4-823f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbe4bc9e-bfd1-11e4-a037-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbe8477e-bfd1-11e4-823f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbe4bc9e-bfd1-11e4-a037-705681abff85"], ["admin", "t"], ["organization_id", "bbe8477e-bfd1-11e4-823f-705681abff85"], ["created_at", "2015-03-01 05:13:44.963743"], ["updated_at", "2015-03-01 05:13:44.963743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.5ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (7.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$mbvyJXOidjZJ7Rdg7V6IEOpXINAkxOePM0ZFywqo.nnTHwDFsV5sq"], ["created_at", "2015-03-01 05:13:44.971808"], ["updated_at", "2015-03-01 05:13:44.971808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:44.980909"], ["user_id", "bbea57ee-bfd1-11e4-8c47-705681abff85"], ["created_at", "2015-03-01 05:13:44.981753"], ["updated_at", "2015-03-01 05:13:44.981753"], ["token", "_kiH6Ak4XCH7PZ_a_eOb9xF9P1KOmzFB8jetzO_Zkkc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:44.985075"], ["updated_at", "2015-03-01 05:13:44.985075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbea57ee-bfd1-11e4-8c47-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbec5c4c-bfd1-11e4-960b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbea57ee-bfd1-11e4-8c47-705681abff85"], ["organization_id", "bbec5c4c-bfd1-11e4-960b-705681abff85"], ["created_at", "2015-03-01 05:13:44.988200"], ["updated_at", "2015-03-01 05:13:44.988200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 21:13:44 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:44.992702' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_kiH6Ak4XCH7PZ_a_eOb9xF9P1KOmzFB8jetzO_Zkkc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:44.994047"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:44.995313"], ["id", "bbebe3c0-bfd1-11e4-a250-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbea57ee-bfd1-11e4-8c47-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$REWMHm7IFg81sPn0jZCjWeDPmDRzPa8MfSYYSq806bAIm5CueYGkO"], ["created_at", "2015-03-01 05:13:45.006884"], ["updated_at", "2015-03-01 05:13:45.006884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.008510"], ["user_id", "bbefb1b2-bfd1-11e4-a5ca-705681abff85"], ["created_at", "2015-03-01 05:13:45.009276"], ["updated_at", "2015-03-01 05:13:45.009276"], ["token", "KWALA4116LoFqYCK63NrJF-xOz16alYKTaWZYz7ys_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.012387"], ["updated_at", "2015-03-01 05:13:45.012387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbefb1b2-bfd1-11e4-a5ca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbf0857e-bfd1-11e4-884b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbefb1b2-bfd1-11e4-a5ca-705681abff85"], ["organization_id", "bbf0857e-bfd1-11e4-884b-705681abff85"], ["created_at", "2015-03-01 05:13:45.015632"], ["updated_at", "2015-03-01 05:13:45.015632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$PL7aQohtVkqYEGn5mYSrG.JNyNcxaZZU1CVUnHNcYInkAmlq6qHxe"], ["created_at", "2015-03-01 05:13:45.028526"], ["updated_at", "2015-03-01 05:13:45.028526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.030140"], ["user_id", "bbf2ffca-bfd1-11e4-9e4e-705681abff85"], ["created_at", "2015-03-01 05:13:45.030885"], ["updated_at", "2015-03-01 05:13:45.030885"], ["token", "mnyMDnG5X_yom_YKLBCxWl_Dfkhr5xrgGni0QPda58U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.033960"], ["updated_at", "2015-03-01 05:13:45.033960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbf2ffca-bfd1-11e4-9e4e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbf3cf86-bfd1-11e4-8831-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbf2ffca-bfd1-11e4-9e4e-705681abff85"], ["organization_id", "bbf3cf86-bfd1-11e4-8831-705681abff85"], ["created_at", "2015-03-01 05:13:45.037076"], ["updated_at", "2015-03-01 05:13:45.037076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-19" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-19", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.041464' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mnyMDnG5X_yom_YKLBCxWl_Dfkhr5xrgGni0QPda58U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.042798"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.043707"], ["id", "bbf35e8e-bfd1-11e4-be23-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbf2ffca-bfd1-11e4-9e4e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbf2ffca-bfd1-11e4-9e4e-705681abff85"], ["name", "org-19"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bbf3cf86-bfd1-11e4-8831-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Frp3O7wWxya.db.U/q54T.yPRru4QF3rnlJwUEQDLa3AdWR0qdxDS"], ["created_at", "2015-03-01 05:13:45.053687"], ["updated_at", "2015-03-01 05:13:45.053687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.055413"], ["user_id", "bbf6d8ca-bfd1-11e4-bde3-705681abff85"], ["created_at", "2015-03-01 05:13:45.056224"], ["updated_at", "2015-03-01 05:13:45.056224"], ["token", "6QM5_wOKcTn5L1R9PxVX3D2yYBtVqRyXR2MB5tktugQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.060043"], ["updated_at", "2015-03-01 05:13:45.060043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbf6d8ca-bfd1-11e4-bde3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbf7cb04-bfd1-11e4-b61b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbf6d8ca-bfd1-11e4-bde3-705681abff85"], ["organization_id", "bbf7cb04-bfd1-11e4-b61b-705681abff85"], ["created_at", "2015-03-01 05:13:45.063132"], ["updated_at", "2015-03-01 05:13:45.063132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$UCuOzuGcvh/ar1p/oQWbnec7vTOYbUnC34jv.f7JCLsNbzyvKSQfG"], ["created_at", "2015-03-01 05:13:45.075774"], ["updated_at", "2015-03-01 05:13:45.075774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.077447"], ["user_id", "bbfa35a6-bfd1-11e4-b05e-705681abff85"], ["created_at", "2015-03-01 05:13:45.078199"], ["updated_at", "2015-03-01 05:13:45.078199"], ["token", "5BW9t1sjRc_upiPWftD1GFC4GcalrMdrzVvz8S9o7wA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.081835"], ["updated_at", "2015-03-01 05:13:45.081835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbfa35a6-bfd1-11e4-b05e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbfb2024-bfd1-11e4-8065-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbfa35a6-bfd1-11e4-b05e-705681abff85"], ["organization_id", "bbfb2024-bfd1-11e4-8065-705681abff85"], ["created_at", "2015-03-01 05:13:45.085062"], ["updated_at", "2015-03-01 05:13:45.085062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bbfb2024-bfd1-11e4-8065-705681abff85" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"bbfb2024-bfd1-11e4-8065-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.090268' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5BW9t1sjRc_upiPWftD1GFC4GcalrMdrzVvz8S9o7wA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.091662"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.092565"], ["id", "bbfa9884-bfd1-11e4-aacf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbfa35a6-bfd1-11e4-b05e-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbfa35a6-bfd1-11e4-b05e-705681abff85"], ["id", "bbfb2024-bfd1-11e4-8065-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$VtqNdhElVVSzFwRYQQ2kZ.pEALT0VWWU6xYItsgPWmR3qQqDyv2.e"], ["created_at", "2015-03-01 05:13:45.104401"], ["updated_at", "2015-03-01 05:13:45.104401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.105930"], ["user_id", "bbfe92b8-bfd1-11e4-b175-705681abff85"], ["created_at", "2015-03-01 05:13:45.106684"], ["updated_at", "2015-03-01 05:13:45.106684"], ["token", "np-Uadac6oIgy3wWjs4wqgoxmrCkp5bHOGiRYZ2Sok4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.110351"], ["updated_at", "2015-03-01 05:13:45.110351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbfe92b8-bfd1-11e4-b175-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbff7c14-bfd1-11e4-bd9d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbfe92b8-bfd1-11e4-b175-705681abff85"], ["organization_id", "bbff7c14-bfd1-11e4-bd9d-705681abff85"], ["created_at", "2015-03-01 05:13:45.113778"], ["updated_at", "2015-03-01 05:13:45.113778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$fopCDsPJz1RkuZXqIBnAjOqYLO86BBNe.bo547hu.7CaEx9XAtvbm"], ["created_at", "2015-03-01 05:13:45.126123"], ["updated_at", "2015-03-01 05:13:45.126123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.127695"], ["user_id", "bc01e378-bfd1-11e4-bba4-705681abff85"], ["created_at", "2015-03-01 05:13:45.128459"], ["updated_at", "2015-03-01 05:13:45.128459"], ["token", "a0XVmnxmLqlWSxtsYaygoTuuVio1EdIZ4mB6NGHneuQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.131530"], ["updated_at", "2015-03-01 05:13:45.131530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc01e378-bfd1-11e4-bba4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc02b4d8-bfd1-11e4-bb56-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc01e378-bfd1-11e4-bba4-705681abff85"], ["organization_id", "bc02b4d8-bfd1-11e4-bb56-705681abff85"], ["created_at", "2015-03-01 05:13:45.134718"], ["updated_at", "2015-03-01 05:13:45.134718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.139633' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "a0XVmnxmLqlWSxtsYaygoTuuVio1EdIZ4mB6NGHneuQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.141085"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.142077"], ["id", "bc02426e-bfd1-11e4-9ce6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc01e378-bfd1-11e4-bba4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc01e378-bfd1-11e4-bba4-705681abff85"], ["name", "org-23"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc02b4d8-bfd1-11e4-bb56-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 05:13:45.149746"], ["id", "bc02b4d8-bfd1-11e4-bb56-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$rYfdnRAKqr2eEcVBRg4fpOI6azzzb4J9LapnJ8PPx.KcpvFk3/deG"], ["created_at", "2015-03-01 05:13:45.157999"], ["updated_at", "2015-03-01 05:13:45.157999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.159712"], ["user_id", "bc06c528-bfd1-11e4-808b-705681abff85"], ["created_at", "2015-03-01 05:13:45.160433"], ["updated_at", "2015-03-01 05:13:45.160433"], ["token", "RIuWSJl_2c5y87ohpVZbfS5DWiG0WwX0csR8XDT2u64"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.163496"], ["updated_at", "2015-03-01 05:13:45.163496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc06c528-bfd1-11e4-808b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc079336-bfd1-11e4-ad25-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc06c528-bfd1-11e4-808b-705681abff85"], ["organization_id", "bc079336-bfd1-11e4-ad25-705681abff85"], ["created_at", "2015-03-01 05:13:45.166584"], ["updated_at", "2015-03-01 05:13:45.166584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.171208' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RIuWSJl_2c5y87ohpVZbfS5DWiG0WwX0csR8XDT2u64"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.173047"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.174136"], ["id", "bc0723d8-bfd1-11e4-833b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc06c528-bfd1-11e4-808b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc06c528-bfd1-11e4-808b-705681abff85"], ["name", "org-24"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc079336-bfd1-11e4-ad25-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (17.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$YQFIoEp7g15Hx/xxj6p7mOo.DAk81i4e3hyOYhLfnoFKg2u0TJxby"], ["created_at", "2015-03-01 05:13:45.188644"], ["updated_at", "2015-03-01 05:13:45.188644"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.208660"], ["user_id", "bc0d5f78-bfd1-11e4-90ae-705681abff85"], ["created_at", "2015-03-01 05:13:45.210561"], ["updated_at", "2015-03-01 05:13:45.210561"], ["token", "GRTlDA7HcYqDxs7O5YJv0HwRIRUVAUJF-_zxQN43NZA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.217648"], ["updated_at", "2015-03-01 05:13:45.217648"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc0d5f78-bfd1-11e4-90ae-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc100e08-bfd1-11e4-b35c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc0d5f78-bfd1-11e4-90ae-705681abff85"], ["organization_id", "bc100e08-bfd1-11e4-b35c-705681abff85"], ["created_at", "2015-03-01 05:13:45.226196"], ["updated_at", "2015-03-01 05:13:45.226196"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$4vcenFCwwbphLHs7b6lUxu6BEyb3ZHRBegRtXUNflg4uDI/Mbzr4a"], ["created_at", "2015-03-01 05:13:45.243714"], ["updated_at", "2015-03-01 05:13:45.243714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.246054"], ["user_id", "bc13dda8-bfd1-11e4-9005-705681abff85"], ["created_at", "2015-03-01 05:13:45.247098"], ["updated_at", "2015-03-01 05:13:45.247098"], ["token", "-Omy2muwjQ-YCCmv7rrYJ1VT9MMXcdnVconItWLhX8k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.250705"], ["updated_at", "2015-03-01 05:13:45.250705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc13dda8-bfd1-11e4-9005-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc14e400-bfd1-11e4-9bc5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc13dda8-bfd1-11e4-9005-705681abff85"], ["organization_id", "bc14e400-bfd1-11e4-9bc5-705681abff85"], ["created_at", "2015-03-01 05:13:45.254339"], ["updated_at", "2015-03-01 05:13:45.254339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bc14e400-bfd1-11e4-9bc5-705681abff85" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"bc14e400-bfd1-11e4-9bc5-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.259024' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-Omy2muwjQ-YCCmv7rrYJ1VT9MMXcdnVconItWLhX8k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.260407"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.261362"], ["id", "bc146192-bfd1-11e4-bb7a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc13dda8-bfd1-11e4-9005-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc13dda8-bfd1-11e4-9005-705681abff85"], ["id", "bc14e400-bfd1-11e4-9bc5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc14e400-bfd1-11e4-9bc5-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 05:13:45.266980"], ["id", "bc14e400-bfd1-11e4-9bc5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$H2CwFas3gkBlUZpKPiRLPeLRZuckuHsgBq/NvUtpqfVTBjiBFHSce"], ["created_at", "2015-03-01 05:13:45.280357"], ["updated_at", "2015-03-01 05:13:45.280357"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.284796"], ["user_id", "bc197f4c-bfd1-11e4-a609-705681abff85"], ["created_at", "2015-03-01 05:13:45.287232"], ["updated_at", "2015-03-01 05:13:45.287232"], ["token", "BWZAyJeXXvc1vHMflP9qCgrDTWRgGf716HvjBjJ-xn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.291960"], ["updated_at", "2015-03-01 05:13:45.291960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc197f4c-bfd1-11e4-a609-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc1b3206-bfd1-11e4-b95b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc197f4c-bfd1-11e4-a609-705681abff85"], ["organization_id", "bc1b3206-bfd1-11e4-b95b-705681abff85"], ["created_at", "2015-03-01 05:13:45.295285"], ["updated_at", "2015-03-01 05:13:45.295285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bc1b3206-bfd1-11e4-b95b-705681abff85" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"bc1b3206-bfd1-11e4-b95b-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.300073' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BWZAyJeXXvc1vHMflP9qCgrDTWRgGf716HvjBjJ-xn8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.301447"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.302365"], ["id", "bc1a890a-bfd1-11e4-aca9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc197f4c-bfd1-11e4-a609-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc197f4c-bfd1-11e4-a609-705681abff85"], ["id", "bc1b3206-bfd1-11e4-b95b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc1b3206-bfd1-11e4-b95b-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$3G3yHtofSDAM7GBlukob4.HjViulJJc1JuyJXUe8ZaRyAxny7vuBi"], ["created_at", "2015-03-01 05:13:45.315269"], ["updated_at", "2015-03-01 05:13:45.315269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.316957"], ["user_id", "bc1ebf02-bfd1-11e4-abc3-705681abff85"], ["created_at", "2015-03-01 05:13:45.317972"], ["updated_at", "2015-03-01 05:13:45.317972"], ["token", "jfVOS7kNq0I_Ri5OAXpXWrayAlYNMvd6kS9Q_mdoaEs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.321271"], ["updated_at", "2015-03-01 05:13:45.321271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc1ebf02-bfd1-11e4-abc3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc1fac14-bfd1-11e4-9ab1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc1ebf02-bfd1-11e4-abc3-705681abff85"], ["organization_id", "bc1fac14-bfd1-11e4-9ab1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.324825"], ["updated_at", "2015-03-01 05:13:45.324825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'bc1fac14-bfd1-11e4-9ab1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "bc1fac14-bfd1-11e4-9ab1-705681abff85"], ["created_at", "2015-03-01 05:13:45.328377"], ["updated_at", "2015-03-01 05:13:45.328377"], ["token", "d7UhZZA1TAKKlDcV8ERAgLX6x4IQrVXNWgX7GEMpxl4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$KHBeOfzGB0zxa./PUm.yUOpg03xNnLcyX.xlYvRLqnWqyOT.MONWi"], ["created_at", "2015-03-01 05:13:45.348720"], ["updated_at", "2015-03-01 05:13:45.348720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.350551"], ["user_id", "bc23ddde-bfd1-11e4-8d06-705681abff85"], ["created_at", "2015-03-01 05:13:45.351355"], ["updated_at", "2015-03-01 05:13:45.351355"], ["token", "-bHxTi8g1LNnQG71zt4P7wVDYWnqBl8fyb_PHPACf6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.354595"], ["updated_at", "2015-03-01 05:13:45.354595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc23ddde-bfd1-11e4-8d06-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc24bf38-bfd1-11e4-8c49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc23ddde-bfd1-11e4-8d06-705681abff85"], ["organization_id", "bc24bf38-bfd1-11e4-8c49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.358820"], ["updated_at", "2015-03-01 05:13:45.358820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'bc24bf38-bfd1-11e4-8c49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "bc24bf38-bfd1-11e4-8c49-705681abff85"], ["created_at", "2015-03-01 05:13:45.362460"], ["updated_at", "2015-03-01 05:13:45.362460"], ["token", "AG5MSqtqx7G5FZA0ATFjcujbsgIH_JF6kBEd5wphDsc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/bc25f484-bfd1-11e4-afb7-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"bc25f484-bfd1-11e4-afb7-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.367219' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-bHxTi8g1LNnQG71zt4P7wVDYWnqBl8fyb_PHPACf6M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.368708"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.369720"], ["id", "bc2447b0-bfd1-11e4-b346-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc23ddde-bfd1-11e4-8d06-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc23ddde-bfd1-11e4-8d06-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc23ddde-bfd1-11e4-8d06-705681abff85' LIMIT 1 [["organization_id", "bc24bf38-bfd1-11e4-8c49-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "bc24bf38-bfd1-11e4-8c49-705681abff85"], ["id", "bc25f484-bfd1-11e4-afb7-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc24bf38-bfd1-11e4-8c49-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."id" != 'bc25f484-bfd1-11e4-afb7-705681abff85' AND "clubhouse_invitations"."organization_id" = 'bc24bf38-bfd1-11e4-8c49-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:13:45.381741"], ["id", "bc25f484-bfd1-11e4-afb7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.9ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$EqaZEynAkPWcOPWF47vOyOpuHByeO2zl1T/GydsTZb79t1rYLkfSS"], ["created_at", "2015-03-01 05:13:45.391495"], ["updated_at", "2015-03-01 05:13:45.391495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.393171"], ["user_id", "bc2a61d6-bfd1-11e4-b2cb-705681abff85"], ["created_at", "2015-03-01 05:13:45.393930"], ["updated_at", "2015-03-01 05:13:45.393930"], ["token", "E9AqbziQhHIsPU2IS00futuyXNDtcYcwxHqkVs_s_kI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.397028"], ["updated_at", "2015-03-01 05:13:45.397028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc2a61d6-bfd1-11e4-b2cb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc2b3566-bfd1-11e4-98e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc2a61d6-bfd1-11e4-b2cb-705681abff85"], ["organization_id", "bc2b3566-bfd1-11e4-98e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.400111"], ["updated_at", "2015-03-01 05:13:45.400111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'bc2b3566-bfd1-11e4-98e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "bc2b3566-bfd1-11e4-98e4-705681abff85"], ["created_at", "2015-03-01 05:13:45.403342"], ["updated_at", "2015-03-01 05:13:45.403342"], ["token", "3I5BH2ZIlSvjbOS3bSAY9ovfjc1kRmqNn1joRg_ZyPY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$qe.0ble5i2sYOd/WvL1qs.BouaeaJsHpKF4tXkCjZe.Le0QLZUhr."], ["created_at", "2015-03-01 05:13:45.415542"], ["updated_at", "2015-03-01 05:13:45.415542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.417086"], ["user_id", "bc2e0bec-bfd1-11e4-bb16-705681abff85"], ["created_at", "2015-03-01 05:13:45.417846"], ["updated_at", "2015-03-01 05:13:45.417846"], ["token", "ctuKMx5M-uot27gPOjXDdo4HtJdBVRKHhB4xYvN988k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.420958"], ["updated_at", "2015-03-01 05:13:45.420958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc2e0bec-bfd1-11e4-bb16-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc2ee094-bfd1-11e4-85b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc2e0bec-bfd1-11e4-bb16-705681abff85"], ["organization_id", "bc2ee094-bfd1-11e4-85b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.424790"], ["updated_at", "2015-03-01 05:13:45.424790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'bc2ee094-bfd1-11e4-85b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "bc2ee094-bfd1-11e4-85b1-705681abff85"], ["created_at", "2015-03-01 05:13:45.428232"], ["updated_at", "2015-03-01 05:13:45.428232"], ["token", "c7DkA3twXAOw3BrWVndRoP5uDKPRM2tzz00HgpX2wPY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/bc2ffe16-bfd1-11e4-898e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"bc2ffe16-bfd1-11e4-898e-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.433159' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ctuKMx5M-uot27gPOjXDdo4HtJdBVRKHhB4xYvN988k"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.434960"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.436782"], ["id", "bc2e6a1a-bfd1-11e4-882a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc2e0bec-bfd1-11e4-bb16-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc2e0bec-bfd1-11e4-bb16-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc2e0bec-bfd1-11e4-bb16-705681abff85' LIMIT 1 [["organization_id", "bc2ee094-bfd1-11e4-85b1-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "bc2ee094-bfd1-11e4-85b1-705681abff85"], ["id", "bc2ffe16-bfd1-11e4-898e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "bc2ffe16-bfd1-11e4-898e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$/ANVNYS9frZOHtmeESg3b.b0F5cBlSEWx.8bYUpOgQXHzsD/gs1oq"], ["created_at", "2015-03-01 05:13:45.451985"], ["updated_at", "2015-03-01 05:13:45.451985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.453519"], ["user_id", "bc339b8e-bfd1-11e4-8594-705681abff85"], ["created_at", "2015-03-01 05:13:45.454268"], ["updated_at", "2015-03-01 05:13:45.454268"], ["token", "CS8l9Ol8zdO3dpnKc08hC3caum7jqJddW0lq93_98pw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.457898"], ["updated_at", "2015-03-01 05:13:45.457898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc339b8e-bfd1-11e4-8594-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc3480ee-bfd1-11e4-a057-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc339b8e-bfd1-11e4-8594-705681abff85"], ["organization_id", "bc3480ee-bfd1-11e4-a057-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.461082"], ["updated_at", "2015-03-01 05:13:45.461082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'bc3480ee-bfd1-11e4-a057-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "bc3480ee-bfd1-11e4-a057-705681abff85"], ["created_at", "2015-03-01 05:13:45.464592"], ["updated_at", "2015-03-01 05:13:45.464592"], ["token", "ADTUcwKuVS0KfGeNvOOZCrNNfUAe_7hmwiaGUkLkJBY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$R7CYou4egKFw4aZ64w/5IO00PVeF/E/NNgy3zYqpe8etTSZ6p5LBW"], ["created_at", "2015-03-01 05:13:45.468954"], ["updated_at", "2015-03-01 05:13:45.468954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.474368"], ["updated_at", "2015-03-01 05:13:45.474368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc36307e-bfd1-11e4-b9a1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc3706c0-bfd1-11e4-8fda-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc36307e-bfd1-11e4-b9a1-705681abff85"], ["organization_id", "bc3706c0-bfd1-11e4-8fda-705681abff85"], ["created_at", "2015-03-01 05:13:45.477606"], ["updated_at", "2015-03-01 05:13:45.477606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$248StVQ9HtH2hG1hSJx/wOM3lt9xlM.TyD53QjQHiG..yz2HGztRi"], ["created_at", "2015-03-01 05:13:45.491886"], ["updated_at", "2015-03-01 05:13:45.491886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.494346"], ["user_id", "bc39ce64-bfd1-11e4-8008-705681abff85"], ["created_at", "2015-03-01 05:13:45.495141"], ["updated_at", "2015-03-01 05:13:45.495141"], ["token", "h8B9slZArwxChsUKbxAg2Yhd_4R_DIYY-lCwQryGwFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.498332"], ["updated_at", "2015-03-01 05:13:45.498332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc39ce64-bfd1-11e4-8008-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc3aab0e-bfd1-11e4-9686-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc39ce64-bfd1-11e4-8008-705681abff85"], ["organization_id", "bc3aab0e-bfd1-11e4-9686-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.501578"], ["updated_at", "2015-03-01 05:13:45.501578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'bc3aab0e-bfd1-11e4-9686-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "bc3aab0e-bfd1-11e4-9686-705681abff85"], ["created_at", "2015-03-01 05:13:45.505035"], ["updated_at", "2015-03-01 05:13:45.505035"], ["token", "HpwPxcSpHt49WS2DvVWdUo-KnKWk6Kl2HFF1jHGvVLg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$hiciZjzZITnV0jJ.xGGAtO2QOwtSV15Hq0DeVTBKb9QPYvgjMHbbi"], ["created_at", "2015-03-01 05:13:45.509546"], ["updated_at", "2015-03-01 05:13:45.509546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.512390"], ["updated_at", "2015-03-01 05:13:45.512390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc3c628c-bfd1-11e4-b4c3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc3cd2f8-bfd1-11e4-9e7f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc3c628c-bfd1-11e4-b4c3-705681abff85"], ["organization_id", "bc3cd2f8-bfd1-11e4-9e7f-705681abff85"], ["created_at", "2015-03-01 05:13:45.515790"], ["updated_at", "2015-03-01 05:13:45.515790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.521202' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "h8B9slZArwxChsUKbxAg2Yhd_4R_DIYY-lCwQryGwFI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.523101"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.524093"], ["id", "bc3a3700-bfd1-11e4-ba96-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc39ce64-bfd1-11e4-8008-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc39ce64-bfd1-11e4-8008-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc39ce64-bfd1-11e4-8008-705681abff85' LIMIT 1 [["organization_id", "bc3aab0e-bfd1-11e4-9686-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "bc3aab0e-bfd1-11e4-9686-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc3aab0e-bfd1-11e4-9686-705681abff85"]] Completed 200 OK in 12ms (Views: 2.7ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$xGGVAIYOlFJDT7tJP4NUGOTbCip9kVUHsWAd1GHwcgYTkp/CUBNO2"], ["created_at", "2015-03-01 05:13:45.539218"], ["updated_at", "2015-03-01 05:13:45.539218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.541687"], ["user_id", "bc4100bc-bfd1-11e4-a942-705681abff85"], ["created_at", "2015-03-01 05:13:45.543150"], ["updated_at", "2015-03-01 05:13:45.543150"], ["token", "NuPT9SMEa9cH55YGr_xfsTht2FzDr6srmQ0e9mh1YQs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.546955"], ["updated_at", "2015-03-01 05:13:45.546955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc4100bc-bfd1-11e4-a942-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc4217ea-bfd1-11e4-b5ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc4100bc-bfd1-11e4-a942-705681abff85"], ["organization_id", "bc4217ea-bfd1-11e4-b5ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.550297"], ["updated_at", "2015-03-01 05:13:45.550297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'bc4217ea-bfd1-11e4-b5ad-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "bc4217ea-bfd1-11e4-b5ad-705681abff85"], ["created_at", "2015-03-01 05:13:45.553615"], ["updated_at", "2015-03-01 05:13:45.553615"], ["token", "JVyFgPgWBVfzzFlvaRdbQ1y6oSWgEi72jF-G97EPoNw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$ve6I6B7cfgGfN4B7Gg3SU.vepOit.AQ4sEEMTuRaVy7VH7eUtN5Vq"], ["created_at", "2015-03-01 05:13:45.567975"], ["updated_at", "2015-03-01 05:13:45.567975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.569604"], ["user_id", "bc455180-bfd1-11e4-95a8-705681abff85"], ["created_at", "2015-03-01 05:13:45.570393"], ["updated_at", "2015-03-01 05:13:45.570393"], ["token", "tLATCgPN3yNLSiMm3JvwGrCEQrnqfpueJkZsPLJbcTA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.573603"], ["updated_at", "2015-03-01 05:13:45.573603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc455180-bfd1-11e4-95a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc462a06-bfd1-11e4-83fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc455180-bfd1-11e4-95a8-705681abff85"], ["organization_id", "bc462a06-bfd1-11e4-83fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.577601"], ["updated_at", "2015-03-01 05:13:45.577601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'bc462a06-bfd1-11e4-83fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "bc462a06-bfd1-11e4-83fc-705681abff85"], ["created_at", "2015-03-01 05:13:45.581131"], ["updated_at", "2015-03-01 05:13:45.581131"], ["token", "NnJph4_NyuhQ5HUKviJ3faxcSQFbsPKIfrraOxkw9x0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/bc475264-bfd1-11e4-8139-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"bc475264-bfd1-11e4-8139-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.587043' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tLATCgPN3yNLSiMm3JvwGrCEQrnqfpueJkZsPLJbcTA"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.588415"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.589894"], ["id", "bc45b314-bfd1-11e4-a20f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc455180-bfd1-11e4-95a8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc455180-bfd1-11e4-95a8-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc455180-bfd1-11e4-95a8-705681abff85' LIMIT 1 [["organization_id", "bc462a06-bfd1-11e4-83fc-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "bc462a06-bfd1-11e4-83fc-705681abff85"], ["id", "bc475264-bfd1-11e4-8139-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc462a06-bfd1-11e4-83fc-705681abff85"]] Completed 200 OK in 12ms (Views: 1.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$E.caoGsGP/2obw4RUJTRk.2i96NSReh.J0oz8846NFU.sSThpu5.e"], ["created_at", "2015-03-01 05:13:45.605190"], ["updated_at", "2015-03-01 05:13:45.605190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.606985"], ["user_id", "bc4afd4c-bfd1-11e4-ab18-705681abff85"], ["created_at", "2015-03-01 05:13:45.607802"], ["updated_at", "2015-03-01 05:13:45.607802"], ["token", "a-O2cAYH9HaYWca6GGUCrK14RMBo32f8g2k22euVE7I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.611189"], ["updated_at", "2015-03-01 05:13:45.611189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc4afd4c-bfd1-11e4-ab18-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc4be3ce-bfd1-11e4-85e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc4afd4c-bfd1-11e4-ab18-705681abff85"], ["organization_id", "bc4be3ce-bfd1-11e4-85e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.614359"], ["updated_at", "2015-03-01 05:13:45.614359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'bc4be3ce-bfd1-11e4-85e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "bc4be3ce-bfd1-11e4-85e8-705681abff85"], ["created_at", "2015-03-01 05:13:45.617630"], ["updated_at", "2015-03-01 05:13:45.617630"], ["token", "XNRuFbA1pAj1sXNgN_gCN8kZGhJ0mUNPsW_kQxvCyc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$gataz0Obyjz0ny9DQMUXZeAtRePSBHOfPkBNL8KdYEGKNnOvtA.jG"], ["created_at", "2015-03-01 05:13:45.630477"], ["updated_at", "2015-03-01 05:13:45.630477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.632163"], ["user_id", "bc4edb1a-bfd1-11e4-bd84-705681abff85"], ["created_at", "2015-03-01 05:13:45.632959"], ["updated_at", "2015-03-01 05:13:45.632959"], ["token", "3aEO6SOzsIg_jT2kwdkPLgE1S9-Y5bLlgjv0ivb7m8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.636732"], ["updated_at", "2015-03-01 05:13:45.636732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc4edb1a-bfd1-11e4-bd84-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc4fceda-bfd1-11e4-9536-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc4edb1a-bfd1-11e4-bd84-705681abff85"], ["organization_id", "bc4fceda-bfd1-11e4-9536-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.640262"], ["updated_at", "2015-03-01 05:13:45.640262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'bc4fceda-bfd1-11e4-9536-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "bc4fceda-bfd1-11e4-9536-705681abff85"], ["created_at", "2015-03-01 05:13:45.644986"], ["updated_at", "2015-03-01 05:13:45.644986"], ["token", "cNsIZxhY3q3iS0uTSbKGcMgKtpzalpryMyTVIaR0Xx8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.651071' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3aEO6SOzsIg_jT2kwdkPLgE1S9-Y5bLlgjv0ivb7m8c"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.653002"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.654684"], ["id", "bc4f41a4-bfd1-11e4-8686-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc4edb1a-bfd1-11e4-bd84-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc4edb1a-bfd1-11e4-bd84-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc4edb1a-bfd1-11e4-bd84-705681abff85' LIMIT 1 [["organization_id", "bc4fceda-bfd1-11e4-9536-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc4fceda-bfd1-11e4-9536-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bc4fceda-bfd1-11e4-9536-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "bc4fceda-bfd1-11e4-9536-705681abff85"], ["created_at", "2015-03-01 05:13:45.665094"], ["updated_at", "2015-03-01 05:13:45.665094"], ["token", "FLaUqyqD7PfOBCJnZz9k68UEYTLa1MMPcR8ceKrcty4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5add8c2e-c3b3-4f7c-b1b5-d13841dc4cca) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc542ad4-bfd1-11e4-a37d-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc542ad4-bfd1-11e4-a37d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5add8c2e-c3b3-4f7c-b1b5-d13841dc4cca] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc542ad4-bfd1-11e4-a37d-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [5add8c2e-c3b3-4f7c-b1b5-d13841dc4cca] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc4fceda-bfd1-11e4-9536-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5add8c2e-c3b3-4f7c-b1b5-d13841dc4cca] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [5add8c2e-c3b3-4f7c-b1b5-d13841dc4cca] Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms [ActiveJob] [ActionMailer::DeliveryJob] [5add8c2e-c3b3-4f7c-b1b5-d13841dc4cca] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [5add8c2e-c3b3-4f7c-b1b5-d13841dc4cca] Date: Sat, 28 Feb 2015 21:13:45 -0800 From: from@example.com To: email@example.com Message-ID: <54f2a009ab1af_132313fc2de065be050428@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/FLaUqyqD7PfOBCJnZz9k68UEYTLa1MMPcR8ceKrcty4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5add8c2e-c3b3-4f7c-b1b5-d13841dc4cca] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.34ms Completed 201 Created in 52ms (Views: 0.9ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$4Tflo/wmSbxK/22prdgXFu5Y7Xv6vz2wPhadCjmaOABT5OHopVGq."], ["created_at", "2015-03-01 05:13:45.710100"], ["updated_at", "2015-03-01 05:13:45.710100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.711814"], ["user_id", "bc5b016a-bfd1-11e4-980e-705681abff85"], ["created_at", "2015-03-01 05:13:45.712646"], ["updated_at", "2015-03-01 05:13:45.712646"], ["token", "063wLCUPeeO_ratXa88L8I0EKbMxF-aq3Fhm8QwLS2E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.716017"], ["updated_at", "2015-03-01 05:13:45.716017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc5b016a-bfd1-11e4-980e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc5be486-bfd1-11e4-ac6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc5b016a-bfd1-11e4-980e-705681abff85"], ["organization_id", "bc5be486-bfd1-11e4-ac6f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.719354"], ["updated_at", "2015-03-01 05:13:45.719354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'bc5be486-bfd1-11e4-ac6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "bc5be486-bfd1-11e4-ac6f-705681abff85"], ["created_at", "2015-03-01 05:13:45.722858"], ["updated_at", "2015-03-01 05:13:45.722858"], ["token", "bDAmjI1GMEnDt1mmv4FK3yK9YsFu_ygHx_z_Hx2BQw8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.729150' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "063wLCUPeeO_ratXa88L8I0EKbMxF-aq3Fhm8QwLS2E"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.731621"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.734085"], ["id", "bc5b6af6-bfd1-11e4-8770-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc5b016a-bfd1-11e4-980e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc5b016a-bfd1-11e4-980e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc5b016a-bfd1-11e4-980e-705681abff85' LIMIT 1 [["organization_id", "bc5be486-bfd1-11e4-ac6f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc5be486-bfd1-11e4-ac6f-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bc5be486-bfd1-11e4-ac6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "bc5be486-bfd1-11e4-ac6f-705681abff85"], ["created_at", "2015-03-01 05:13:45.746467"], ["updated_at", "2015-03-01 05:13:45.746467"], ["token", "7z8cqzAHqT9UKglbU-1dz14wigsCnIo7CA4C_4W2eQk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: aeb7e9b6-5a98-49c0-bc2e-6271252fd5cc) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc609594-bfd1-11e4-b495-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc609594-bfd1-11e4-b495-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [aeb7e9b6-5a98-49c0-bc2e-6271252fd5cc] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc609594-bfd1-11e4-b495-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [aeb7e9b6-5a98-49c0-bc2e-6271252fd5cc] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc5be486-bfd1-11e4-ac6f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [aeb7e9b6-5a98-49c0-bc2e-6271252fd5cc] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [aeb7e9b6-5a98-49c0-bc2e-6271252fd5cc] Clubhouse::Mailer#invitation: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [aeb7e9b6-5a98-49c0-bc2e-6271252fd5cc] Sent mail to email@example.com (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [aeb7e9b6-5a98-49c0-bc2e-6271252fd5cc] Date: Sat, 28 Feb 2015 21:13:45 -0800 From: from@example.com To: email@example.com Message-ID: <54f2a009b8545_132313fc2de065be05051e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/7z8cqzAHqT9UKglbU-1dz14wigsCnIo7CA4C_4W2eQk If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [aeb7e9b6-5a98-49c0-bc2e-6271252fd5cc] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.92ms Completed 201 Created in 29ms (Views: 1.0ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$H6kr3xoHl/HMONsB.I4ObebwhZiaAs7lVI9BeynYvzMgj36MBXW4i"], ["created_at", "2015-03-01 05:13:45.764869"], ["updated_at", "2015-03-01 05:13:45.764869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.766767"], ["user_id", "bc635e14-bfd1-11e4-971d-705681abff85"], ["created_at", "2015-03-01 05:13:45.767532"], ["updated_at", "2015-03-01 05:13:45.767532"], ["token", "l44hT_HO-fS9kqxyVSxAU4RbNhcWoqQdsCCKT-02UHU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.771679"], ["updated_at", "2015-03-01 05:13:45.771679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc635e14-bfd1-11e4-971d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc646246-bfd1-11e4-9e8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc635e14-bfd1-11e4-971d-705681abff85"], ["organization_id", "bc646246-bfd1-11e4-9e8f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.774923"], ["updated_at", "2015-03-01 05:13:45.774923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'bc646246-bfd1-11e4-9e8f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "bc646246-bfd1-11e4-9e8f-705681abff85"], ["created_at", "2015-03-01 05:13:45.779815"], ["updated_at", "2015-03-01 05:13:45.779815"], ["token", "E0dOPsDOcqIdxzCInr5X21Al6v72Vg21aix1xAcdejQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.786750' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "l44hT_HO-fS9kqxyVSxAU4RbNhcWoqQdsCCKT-02UHU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.788561"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.790883"], ["id", "bc63dfec-bfd1-11e4-83c6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc635e14-bfd1-11e4-971d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc635e14-bfd1-11e4-971d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc635e14-bfd1-11e4-971d-705681abff85' LIMIT 1 [["organization_id", "bc646246-bfd1-11e4-9e8f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc646246-bfd1-11e4-9e8f-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'bc646246-bfd1-11e4-9e8f-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$6nZDbEOGJ2f5S69c.ZTCLOqD.4FbgIhjqBTctspczT.Cu3icUL4py"], ["created_at", "2015-03-01 05:13:45.813928"], ["updated_at", "2015-03-01 05:13:45.813928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.819295"], ["updated_at", "2015-03-01 05:13:45.819295"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc6ad680-bfd1-11e4-886e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc6bb6fe-bfd1-11e4-bdda-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc6ad680-bfd1-11e4-886e-705681abff85"], ["organization_id", "bc6bb6fe-bfd1-11e4-bdda-705681abff85"], ["created_at", "2015-03-01 05:13:45.823330"], ["updated_at", "2015-03-01 05:13:45.823330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc6ad680-bfd1-11e4-886e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc6bb6fe-bfd1-11e4-bdda-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc6ad680-bfd1-11e4-886e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc6bb6fe-bfd1-11e4-bdda-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc6bb6fe-bfd1-11e4-bdda-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc6ad680-bfd1-11e4-886e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc6bb6fe-bfd1-11e4-bdda-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$N5GURhj9uSuWBFMLBOXul.d3bj.apoiAiQcC9b4F9d0f68ym3V2na"], ["created_at", "2015-03-01 05:13:45.848458"], ["updated_at", "2015-03-01 05:13:45.848458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$ScWoFt3d7.N1k3nDw338FeZDttHqJq8lm33tvYliS3QWuAphKoke2"], ["created_at", "2015-03-01 05:13:45.852800"], ["updated_at", "2015-03-01 05:13:45.852800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.854387"], ["user_id", "bc701bfe-bfd1-11e4-9073-705681abff85"], ["created_at", "2015-03-01 05:13:45.855192"], ["updated_at", "2015-03-01 05:13:45.855192"], ["token", "qUH_utnjU30Cl0hzXkv19sqkHpqNqb0lDqxUwBFqJ_A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.858750"], ["updated_at", "2015-03-01 05:13:45.858750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc701bfe-bfd1-11e4-9073-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc71b054-bfd1-11e4-a9b9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc701bfe-bfd1-11e4-9073-705681abff85"], ["organization_id", "bc71b054-bfd1-11e4-a9b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.863177"], ["updated_at", "2015-03-01 05:13:45.863177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc70c3f6-bfd1-11e4-9d82-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc71b054-bfd1-11e4-a9b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc70c3f6-bfd1-11e4-9d82-705681abff85"], ["organization_id", "bc71b054-bfd1-11e4-a9b9-705681abff85"], ["created_at", "2015-03-01 05:13:45.866319"], ["updated_at", "2015-03-01 05:13:45.866319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$zOjpTVnUIzt1hchHtnnuFuFgb.fzYG3eG9NA5gPN4D5SVnYC9Vx6q"], ["created_at", "2015-03-01 05:13:45.887648"], ["updated_at", "2015-03-01 05:13:45.887648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$xCU1wLExLVBJQGYa/Rmkou0cnsOzeVL1IjPLb3zw/OITlwH1mF402"], ["created_at", "2015-03-01 05:13:45.891939"], ["updated_at", "2015-03-01 05:13:45.891939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.893729"], ["user_id", "bc761630-bfd1-11e4-895f-705681abff85"], ["created_at", "2015-03-01 05:13:45.894926"], ["updated_at", "2015-03-01 05:13:45.894926"], ["token", "Wberls5ma6Yodm9plccS9IsOt9rhBS5SMY3Y6UL7sDY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.899272"], ["updated_at", "2015-03-01 05:13:45.899272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc761630-bfd1-11e4-895f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc77db50-bfd1-11e4-856b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc761630-bfd1-11e4-895f-705681abff85"], ["organization_id", "bc77db50-bfd1-11e4-856b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.902609"], ["updated_at", "2015-03-01 05:13:45.902609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc76c1b6-bfd1-11e4-850a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc77db50-bfd1-11e4-856b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc76c1b6-bfd1-11e4-850a-705681abff85"], ["organization_id", "bc77db50-bfd1-11e4-856b-705681abff85"], ["created_at", "2015-03-01 05:13:45.905654"], ["updated_at", "2015-03-01 05:13:45.905654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bc78d26c-bfd1-11e4-bb0e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"bc78d26c-bfd1-11e4-bb0e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.910662' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Wberls5ma6Yodm9plccS9IsOt9rhBS5SMY3Y6UL7sDY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.912134"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.913146"], ["id", "bc775a7c-bfd1-11e4-8e6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc761630-bfd1-11e4-895f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc761630-bfd1-11e4-895f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc761630-bfd1-11e4-895f-705681abff85' LIMIT 1 [["organization_id", "bc77db50-bfd1-11e4-856b-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bc77db50-bfd1-11e4-856b-705681abff85"], ["id", "bc78d26c-bfd1-11e4-bb0e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc77db50-bfd1-11e4-856b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc76c1b6-bfd1-11e4-850a-705681abff85"]] Completed 200 OK in 14ms (Views: 4.4ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$KSLn6sBt3xwyZ.ZIXBG52uPSds2/e9KJLrdI/TfBjoViZ3wTbXdIS"], ["created_at", "2015-03-01 05:13:45.931422"], ["updated_at", "2015-03-01 05:13:45.931422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$geBiDutfaKl1D08BLeEAv.tL.GW7pAiGH2.GYH/aWjhEbrmQ.GEEO"], ["created_at", "2015-03-01 05:13:45.937019"], ["updated_at", "2015-03-01 05:13:45.937019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.939455"], ["user_id", "bc7cc534-bfd1-11e4-8063-705681abff85"], ["created_at", "2015-03-01 05:13:45.940357"], ["updated_at", "2015-03-01 05:13:45.940357"], ["token", "B98Y78murQWfZ0vy0xWDpzB9DjRetCXeEhqcabWFyYI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.943631"], ["updated_at", "2015-03-01 05:13:45.943631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7cc534-bfd1-11e4-8063-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc7e9e68-bfd1-11e4-890a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc7cc534-bfd1-11e4-8063-705681abff85"], ["organization_id", "bc7e9e68-bfd1-11e4-890a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.947220"], ["updated_at", "2015-03-01 05:13:45.947220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7dac4c-bfd1-11e4-9c49-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc7e9e68-bfd1-11e4-890a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc7dac4c-bfd1-11e4-9c49-705681abff85"], ["organization_id", "bc7e9e68-bfd1-11e4-890a-705681abff85"], ["created_at", "2015-03-01 05:13:45.950580"], ["updated_at", "2015-03-01 05:13:45.950580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.955093' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B98Y78murQWfZ0vy0xWDpzB9DjRetCXeEhqcabWFyYI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:45.956467"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:45.957429"], ["id", "bc7e25e6-bfd1-11e4-ac6c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7cc534-bfd1-11e4-8063-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc7cc534-bfd1-11e4-8063-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc7cc534-bfd1-11e4-8063-705681abff85' LIMIT 1 [["organization_id", "bc7e9e68-bfd1-11e4-890a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "bc7e9e68-bfd1-11e4-890a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc7e9e68-bfd1-11e4-890a-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7cc534-bfd1-11e4-8063-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc7e9e68-bfd1-11e4-890a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7dac4c-bfd1-11e4-9c49-705681abff85"]] Completed 200 OK in 15ms (Views: 6.5ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$./1oo9jBHntNLrsxOCxkpedSn22vE92kv65S9fNREmI12VRUGZZMO"], ["created_at", "2015-03-01 05:13:45.976704"], ["updated_at", "2015-03-01 05:13:45.976704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$9okW2eGL6l72/bDBAmycr.A9uyRNQAq3fOmcxH9YyWhOUdR.hPq3a"], ["created_at", "2015-03-01 05:13:45.982094"], ["updated_at", "2015-03-01 05:13:45.982094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:45.983672"], ["user_id", "bc83b4b6-bfd1-11e4-9206-705681abff85"], ["created_at", "2015-03-01 05:13:45.984421"], ["updated_at", "2015-03-01 05:13:45.984421"], ["token", "v8SV3CVeb1gXvVtC_1c3D6EuoDB2okXtawIMgl0uADo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:45.987657"], ["updated_at", "2015-03-01 05:13:45.987657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc83b4b6-bfd1-11e4-9206-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc8555d2-bfd1-11e4-bc9b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc83b4b6-bfd1-11e4-9206-705681abff85"], ["organization_id", "bc8555d2-bfd1-11e4-bc9b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:45.990796"], ["updated_at", "2015-03-01 05:13:45.990796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc847f5e-bfd1-11e4-ad2e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc8555d2-bfd1-11e4-bc9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc847f5e-bfd1-11e4-ad2e-705681abff85"], ["organization_id", "bc8555d2-bfd1-11e4-bc9b-705681abff85"], ["created_at", "2015-03-01 05:13:45.994177"], ["updated_at", "2015-03-01 05:13:45.994177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 21:13:45 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:45.998637' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v8SV3CVeb1gXvVtC_1c3D6EuoDB2okXtawIMgl0uADo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:46.000452"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:46.002354"], ["id", "bc84e1d8-bfd1-11e4-9f57-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc83b4b6-bfd1-11e4-9206-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc83b4b6-bfd1-11e4-9206-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc83b4b6-bfd1-11e4-9206-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "bc83b4b6-bfd1-11e4-9206-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc8555d2-bfd1-11e4-bc9b-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc83b4b6-bfd1-11e4-9206-705681abff85"]] Completed 200 OK in 13ms (Views: 3.0ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$RtEmClFRSAYXT71WsUBwyu5Q4yKS65olQU4wOenIaZ.BLLu4pFd0K"], ["created_at", "2015-03-01 05:13:46.017492"], ["updated_at", "2015-03-01 05:13:46.017492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$1k9TjiY6bXG5LsiacefvpunuPXJ4OQBrc4CEqo2PrkVlDEugKrd4K"], ["created_at", "2015-03-01 05:13:46.023693"], ["updated_at", "2015-03-01 05:13:46.023693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.025318"], ["user_id", "bc89e64c-bfd1-11e4-bce5-705681abff85"], ["created_at", "2015-03-01 05:13:46.026188"], ["updated_at", "2015-03-01 05:13:46.026188"], ["token", "uJn-UvmD6m4meJy8fOjvpMyfnZs3RGVwRzzNx9FC9NI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.030339"], ["updated_at", "2015-03-01 05:13:46.030339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc89e64c-bfd1-11e4-bce5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc8be55a-bfd1-11e4-9ff1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc89e64c-bfd1-11e4-bce5-705681abff85"], ["organization_id", "bc8be55a-bfd1-11e4-9ff1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.034052"], ["updated_at", "2015-03-01 05:13:46.034052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8adb24-bfd1-11e4-a35f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc8be55a-bfd1-11e4-9ff1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc8adb24-bfd1-11e4-a35f-705681abff85"], ["organization_id", "bc8be55a-bfd1-11e4-9ff1-705681abff85"], ["created_at", "2015-03-01 05:13:46.037096"], ["updated_at", "2015-03-01 05:13:46.037096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$X1o/vj2AX5aJ/IOlwX3qqulE4pA8HDmJm9BpKBlwFGHPnmobMMmIW"], ["created_at", "2015-03-01 05:13:46.049521"], ["updated_at", "2015-03-01 05:13:46.049521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$qGRxV3Io11HJs7U2OTR2xuEMffeezAUSrZuOKjM6Vw9jBQdd2zGLK"], ["created_at", "2015-03-01 05:13:46.053991"], ["updated_at", "2015-03-01 05:13:46.053991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.055498"], ["user_id", "bc8ecb76-bfd1-11e4-9031-705681abff85"], ["created_at", "2015-03-01 05:13:46.056300"], ["updated_at", "2015-03-01 05:13:46.056300"], ["token", "zKn-jN5ll5LsRFBs4QMElk-8FPS-Zer4rJ2m3wUqtZk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.059892"], ["updated_at", "2015-03-01 05:13:46.059892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8ecb76-bfd1-11e4-9031-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc906012-bfd1-11e4-ac79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc8ecb76-bfd1-11e4-9031-705681abff85"], ["organization_id", "bc906012-bfd1-11e4-ac79-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.063842"], ["updated_at", "2015-03-01 05:13:46.063842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8f76a2-bfd1-11e4-905f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc906012-bfd1-11e4-ac79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc8f76a2-bfd1-11e4-905f-705681abff85"], ["organization_id", "bc906012-bfd1-11e4-ac79-705681abff85"], ["created_at", "2015-03-01 05:13:46.067106"], ["updated_at", "2015-03-01 05:13:46.067106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/bc917574-bfd1-11e4-bd1d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"bc917574-bfd1-11e4-bd1d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:46.071649' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zKn-jN5ll5LsRFBs4QMElk-8FPS-Zer4rJ2m3wUqtZk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:46.073035"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:46.074027"], ["id", "bc8fe18c-bfd1-11e4-8c95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc8ecb76-bfd1-11e4-9031-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc8ecb76-bfd1-11e4-9031-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc8ecb76-bfd1-11e4-9031-705681abff85' LIMIT 1 [["organization_id", "bc906012-bfd1-11e4-ac79-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bc906012-bfd1-11e4-ac79-705681abff85"], ["id", "bc917574-bfd1-11e4-bd1d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc8f76a2-bfd1-11e4-905f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "bc917574-bfd1-11e4-bd1d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$LVgWVXw6ETZ2XsuxUIY6EOh5gXALxCxhbS0xTDU5vHr/KH.yUioqu"], ["created_at", "2015-03-01 05:13:46.090083"], ["updated_at", "2015-03-01 05:13:46.090083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$Bsw5GeM/dxtnbN3l3TvPg.JHwSwCN6KILsS.fCjPDNkoVIb8RHHIm"], ["created_at", "2015-03-01 05:13:46.094434"], ["updated_at", "2015-03-01 05:13:46.094434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.096004"], ["user_id", "bc94fea6-bfd1-11e4-a191-705681abff85"], ["created_at", "2015-03-01 05:13:46.096786"], ["updated_at", "2015-03-01 05:13:46.096786"], ["token", "aWIXXHvCUfRSwiDOtOO7OasO5dWq6xAnqNOEezHOS3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.100113"], ["updated_at", "2015-03-01 05:13:46.100113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc94fea6-bfd1-11e4-a191-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc968244-bfd1-11e4-9960-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc94fea6-bfd1-11e4-a191-705681abff85"], ["organization_id", "bc968244-bfd1-11e4-9960-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.103573"], ["updated_at", "2015-03-01 05:13:46.103573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc95a3c4-bfd1-11e4-bda1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc968244-bfd1-11e4-9960-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc95a3c4-bfd1-11e4-bda1-705681abff85"], ["organization_id", "bc968244-bfd1-11e4-9960-705681abff85"], ["created_at", "2015-03-01 05:13:46.106824"], ["updated_at", "2015-03-01 05:13:46.106824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/bc970944-bfd1-11e4-a202-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"bc970944-bfd1-11e4-a202-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:46.112119' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aWIXXHvCUfRSwiDOtOO7OasO5dWq6xAnqNOEezHOS3k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:46.113552"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:46.114529"], ["id", "bc9605a8-bfd1-11e4-81f0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc94fea6-bfd1-11e4-a191-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc94fea6-bfd1-11e4-a191-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc94fea6-bfd1-11e4-a191-705681abff85' LIMIT 1 [["organization_id", "bc968244-bfd1-11e4-9960-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bc968244-bfd1-11e4-9960-705681abff85"], ["id", "bc970944-bfd1-11e4-a202-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc94fea6-bfd1-11e4-a191-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$Mkxqx60JqraATUIIU.md6OW0VyOAuxcUYFVzoOw.AqEMEjdRogSxq"], ["created_at", "2015-03-01 05:13:46.126437"], ["updated_at", "2015-03-01 05:13:46.126437"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$FaSnQNt2V0flY.Plvvru6esKY85MAh0BuyCqxxav2/dByYVYMliE6"], ["created_at", "2015-03-01 05:13:46.131977"], ["updated_at", "2015-03-01 05:13:46.131977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.133529"], ["user_id", "bc9a8c04-bfd1-11e4-b497-705681abff85"], ["created_at", "2015-03-01 05:13:46.134315"], ["updated_at", "2015-03-01 05:13:46.134315"], ["token", "w3XcPx9eN2opOJOzwHu2QRIRHU4xhMOIM4P9YZ0DI7A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.137624"], ["updated_at", "2015-03-01 05:13:46.137624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9a8c04-bfd1-11e4-b497-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc9c38b0-bfd1-11e4-ba8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc9a8c04-bfd1-11e4-b497-705681abff85"], ["organization_id", "bc9c38b0-bfd1-11e4-ba8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.140902"], ["updated_at", "2015-03-01 05:13:46.140902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9b5d64-bfd1-11e4-aa10-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc9c38b0-bfd1-11e4-ba8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc9b5d64-bfd1-11e4-aa10-705681abff85"], ["organization_id", "bc9c38b0-bfd1-11e4-ba8c-705681abff85"], ["created_at", "2015-03-01 05:13:46.144287"], ["updated_at", "2015-03-01 05:13:46.144287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$yJ7QaI5GYPdlYS.F./9eEOIseXiCrur4LbrUlmHiVUw1v5l3z3BxK"], ["created_at", "2015-03-01 05:13:46.148684"], ["updated_at", "2015-03-01 05:13:46.148684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.150295"], ["user_id", "bc9de9c6-bfd1-11e4-917f-705681abff85"], ["created_at", "2015-03-01 05:13:46.151262"], ["updated_at", "2015-03-01 05:13:46.151262"], ["token", "Hn6oP1ACaeuoEufK6hmY9h2WD_0w499HNP1t_GcZefY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'bc9c38b0-bfd1-11e4-ba8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "bc9c38b0-bfd1-11e4-ba8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.155181"], ["updated_at", "2015-03-01 05:13:46.155181"], ["token", "Vw_pfvlJ7xNlx9cr4x89aL8HnsNRvqx05GT70m83CDo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$1xpdX6rEezgzHjNArOTpPeBh7YTELdYg7oEJL/LTBsjUC.qwKdEDm"], ["created_at", "2015-03-01 05:13:46.169641"], ["updated_at", "2015-03-01 05:13:46.169641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$25EfeKL2zufl3xcjrTcmU.LzRp1aTujXdTCX5pUOWz2vaUoRKMzp."], ["created_at", "2015-03-01 05:13:46.174993"], ["updated_at", "2015-03-01 05:13:46.174993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.176601"], ["user_id", "bca1341e-bfd1-11e4-ba5a-705681abff85"], ["created_at", "2015-03-01 05:13:46.177413"], ["updated_at", "2015-03-01 05:13:46.177413"], ["token", "GGIHfF3s1HHimCEa0GTmyXMEu8xTHAu8LbyRpdUHMbY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.181909"], ["updated_at", "2015-03-01 05:13:46.181909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca1341e-bfd1-11e4-ba5a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca2fc04-bfd1-11e4-82f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca1341e-bfd1-11e4-ba5a-705681abff85"], ["organization_id", "bca2fc04-bfd1-11e4-82f4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.185221"], ["updated_at", "2015-03-01 05:13:46.185221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca1ee0e-bfd1-11e4-b912-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca2fc04-bfd1-11e4-82f4-705681abff85') LIMIT 1 SQL (13.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bca1ee0e-bfd1-11e4-b912-705681abff85"], ["organization_id", "bca2fc04-bfd1-11e4-82f4-705681abff85"], ["created_at", "2015-03-01 05:13:46.188231"], ["updated_at", "2015-03-01 05:13:46.188231"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (9.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$/NHTuf6qsfdltPqMUGEiiO5YOkGbNea.Dh4J4afl2tMQ.i3fSMeHi"], ["created_at", "2015-03-01 05:13:46.208813"], ["updated_at", "2015-03-01 05:13:46.208813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.221223"], ["user_id", "bca7380a-bfd1-11e4-aef7-705681abff85"], ["created_at", "2015-03-01 05:13:46.222405"], ["updated_at", "2015-03-01 05:13:46.222405"], ["token", "STAqz3OXLCbQNB-5ZNuWJbJ5kp6EZb_703PVDlMNM1A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'bca2fc04-bfd1-11e4-82f4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "bca2fc04-bfd1-11e4-82f4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.232712"], ["updated_at", "2015-03-01 05:13:46.232712"], ["token", "o6OseiIZfKw5LKyALwCk0_vfvpMGPKw43htD22hIZTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"o6OseiIZfKw5LKyALwCk0_vfvpMGPKw43htD22hIZTY", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:46.240333' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "STAqz3OXLCbQNB-5ZNuWJbJ5kp6EZb_703PVDlMNM1A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:46.242409"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:46.244001"], ["id", "bca948d4-bfd1-11e4-8e45-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bca7380a-bfd1-11e4-aef7-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bca7380a-bfd1-11e4-aef7-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "o6OseiIZfKw5LKyALwCk0_vfvpMGPKw43htD22hIZTY"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bca2fc04-bfd1-11e4-82f4-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bca2fc04-bfd1-11e4-82f4-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca7380a-bfd1-11e4-aef7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca2fc04-bfd1-11e4-82f4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca7380a-bfd1-11e4-aef7-705681abff85"], ["admin", "t"], ["organization_id", "bca2fc04-bfd1-11e4-82f4-705681abff85"], ["created_at", "2015-03-01 05:13:46.262734"], ["updated_at", "2015-03-01 05:13:46.262734"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "bcaad988-bfd1-11e4-8e21-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 29ms (Views: 2.0ms | ActiveRecord: 4.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$cusZQErIH.tC0s6gcdTdF.J8/smE0ukMXcNkpndfRIhic/vjlmKea"], ["created_at", "2015-03-01 05:13:46.279565"], ["updated_at", "2015-03-01 05:13:46.279565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$Y7rXvn8CVDAJlRguxzODruPk2W9g07cr0EkXo4gFZ/lSX/BeNdbVO"], ["created_at", "2015-03-01 05:13:46.284320"], ["updated_at", "2015-03-01 05:13:46.284320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.286129"], ["user_id", "bcb1e8fe-bfd1-11e4-aaed-705681abff85"], ["created_at", "2015-03-01 05:13:46.286945"], ["updated_at", "2015-03-01 05:13:46.286945"], ["token", "POuSh0qnRa8gs-Y-SMBVReWI5BjTLDKvBQb9eQ00mXA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.290502"], ["updated_at", "2015-03-01 05:13:46.290502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcb1e8fe-bfd1-11e4-aaed-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcb38fec-bfd1-11e4-ba16-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcb1e8fe-bfd1-11e4-aaed-705681abff85"], ["organization_id", "bcb38fec-bfd1-11e4-ba16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.294193"], ["updated_at", "2015-03-01 05:13:46.294193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcb29f42-bfd1-11e4-9fb3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcb38fec-bfd1-11e4-ba16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcb29f42-bfd1-11e4-9fb3-705681abff85"], ["organization_id", "bcb38fec-bfd1-11e4-ba16-705681abff85"], ["created_at", "2015-03-01 05:13:46.297838"], ["updated_at", "2015-03-01 05:13:46.297838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$Sja2fkpSOAYjl6apL52VWu/Qag1dvBgJWiWgnpfdus9b3i5hdQU2q"], ["created_at", "2015-03-01 05:13:46.302332"], ["updated_at", "2015-03-01 05:13:46.302332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.303815"], ["user_id", "bcb55b42-bfd1-11e4-9196-705681abff85"], ["created_at", "2015-03-01 05:13:46.304569"], ["updated_at", "2015-03-01 05:13:46.304569"], ["token", "7iG4xbEzse7bRQfFZAExWXL8Av9tCuJ_JgPkxWZ3qXo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'bcb38fec-bfd1-11e4-ba16-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "bcb38fec-bfd1-11e4-ba16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.308168"], ["updated_at", "2015-03-01 05:13:46.308168"], ["token", "VverqIx5pys2qq6QJH4O5Yt0g54EqYM5Oy3Plc4nKXs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:46.314764' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7iG4xbEzse7bRQfFZAExWXL8Av9tCuJ_JgPkxWZ3qXo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:46.316270"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:46.317233"], ["id", "bcb5b8b2-bfd1-11e4-8edc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcb55b42-bfd1-11e4-9196-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bcb55b42-bfd1-11e4-9196-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$9g9cKZzcafTJiDMgE8mhM.RSLUD8vZWdGei0AvcRTokOQ5nos/loW"], ["created_at", "2015-03-01 05:13:46.327213"], ["updated_at", "2015-03-01 05:13:46.327213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$uafStfHCZA3f3oPVDoRznery8TZwrXKtq2.s72FmzSU3wdbMFlz9a"], ["created_at", "2015-03-01 05:13:46.333949"], ["updated_at", "2015-03-01 05:13:46.333949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.335438"], ["user_id", "bcb93046-bfd1-11e4-a1ea-705681abff85"], ["created_at", "2015-03-01 05:13:46.336195"], ["updated_at", "2015-03-01 05:13:46.336195"], ["token", "ewm-1b8sSaCGeMy8yVPxg0CKaGUDZ9SmEluFuTLJDC8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.339272"], ["updated_at", "2015-03-01 05:13:46.339272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcb93046-bfd1-11e4-a1ea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcbafbc4-bfd1-11e4-b613-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcb93046-bfd1-11e4-a1ea-705681abff85"], ["organization_id", "bcbafbc4-bfd1-11e4-b613-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.342353"], ["updated_at", "2015-03-01 05:13:46.342353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcba2e88-bfd1-11e4-ad73-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcbafbc4-bfd1-11e4-b613-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcba2e88-bfd1-11e4-ad73-705681abff85"], ["organization_id", "bcbafbc4-bfd1-11e4-b613-705681abff85"], ["created_at", "2015-03-01 05:13:46.345282"], ["updated_at", "2015-03-01 05:13:46.345282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$2q.CC/slQqqdSAe9pDe8tuFwTjz.ruoUeVFJDZeynYnkEOk37pdKu"], ["created_at", "2015-03-01 05:13:46.357476"], ["updated_at", "2015-03-01 05:13:46.357476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$4ExA5qO2dp6Apie7spQQuO/X9XCM9EwUL5JKP.njYNG9TpbrQqF/m"], ["created_at", "2015-03-01 05:13:46.362219"], ["updated_at", "2015-03-01 05:13:46.362219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.364669"], ["user_id", "bcbdcd4a-bfd1-11e4-a71b-705681abff85"], ["created_at", "2015-03-01 05:13:46.365481"], ["updated_at", "2015-03-01 05:13:46.365481"], ["token", "RQtpP7eAdbhem0w2bPfe_nu7WvG_ylufGAlJhMxLbDo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.368667"], ["updated_at", "2015-03-01 05:13:46.368667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcbdcd4a-bfd1-11e4-a71b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcbf79d8-bfd1-11e4-bd62-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcbdcd4a-bfd1-11e4-a71b-705681abff85"], ["organization_id", "bcbf79d8-bfd1-11e4-bd62-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.371801"], ["updated_at", "2015-03-01 05:13:46.371801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcbe9662-bfd1-11e4-891b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcbf79d8-bfd1-11e4-bd62-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcbe9662-bfd1-11e4-891b-705681abff85"], ["organization_id", "bcbf79d8-bfd1-11e4-bd62-705681abff85"], ["created_at", "2015-03-01 05:13:46.374844"], ["updated_at", "2015-03-01 05:13:46.374844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bcbff53e-bfd1-11e4-9d5f-705681abff85" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"bcbff53e-bfd1-11e4-9d5f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:46.379634' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RQtpP7eAdbhem0w2bPfe_nu7WvG_ylufGAlJhMxLbDo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:46.381046"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:46.381940"], ["id", "bcbf0656-bfd1-11e4-bc07-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcbdcd4a-bfd1-11e4-a71b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bcbdcd4a-bfd1-11e4-a71b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bcbdcd4a-bfd1-11e4-a71b-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "bcbdcd4a-bfd1-11e4-a71b-705681abff85"], ["id", "bcbff53e-bfd1-11e4-9d5f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bcbf79d8-bfd1-11e4-bd62-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcbdcd4a-bfd1-11e4-a71b-705681abff85"]] Completed 200 OK in 10ms (Views: 1.9ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$cTqjR9s2IqTdUc5acXYELu4mqrrTFDRtif0fMDVo673a96dix6tXK"], ["created_at", "2015-03-01 05:13:46.394969"], ["updated_at", "2015-03-01 05:13:46.394969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$3cDONXkc4eYtOcXKH2EqWe45N2k8bBHr.FJ/f5xZppTT/6E6X9ndm"], ["created_at", "2015-03-01 05:13:46.398987"], ["updated_at", "2015-03-01 05:13:46.398987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.400434"], ["user_id", "bcc37de4-bfd1-11e4-a06a-705681abff85"], ["created_at", "2015-03-01 05:13:46.401166"], ["updated_at", "2015-03-01 05:13:46.401166"], ["token", "PIQLJMak2YzspRkN1UdL9FgkVE10PZofSjnMQC0krkQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.404286"], ["updated_at", "2015-03-01 05:13:46.404286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc37de4-bfd1-11e4-a06a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc4e76a-bfd1-11e4-b66e-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcc37de4-bfd1-11e4-a06a-705681abff85"], ["organization_id", "bcc4e76a-bfd1-11e4-b66e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.407344"], ["updated_at", "2015-03-01 05:13:46.407344"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc418da-bfd1-11e4-a3ac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc4e76a-bfd1-11e4-b66e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcc418da-bfd1-11e4-a3ac-705681abff85"], ["organization_id", "bcc4e76a-bfd1-11e4-b66e-705681abff85"], ["created_at", "2015-03-01 05:13:46.413963"], ["updated_at", "2015-03-01 05:13:46.413963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$FzC2ykuAb9bcvhS1qwnlVuJkXMkqgNbb29YgsTXR1SP57hzMYcJG2"], ["created_at", "2015-03-01 05:13:46.425380"], ["updated_at", "2015-03-01 05:13:46.425380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$SNN/OzLZx3cufO6fDf7YtuQ48icGC5D8SvxCObbrzu.2wE1jEMWaO"], ["created_at", "2015-03-01 05:13:46.430119"], ["updated_at", "2015-03-01 05:13:46.430119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.431937"], ["user_id", "bcc82a1a-bfd1-11e4-9dee-705681abff85"], ["created_at", "2015-03-01 05:13:46.432758"], ["updated_at", "2015-03-01 05:13:46.432758"], ["token", "p8jQl3tuEGsAQv3gCmhaYQEVNfwOQZ-pfHH8IMoL0eI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.435877"], ["updated_at", "2015-03-01 05:13:46.435877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc82a1a-bfd1-11e4-9dee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc9baec-bfd1-11e4-8001-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcc82a1a-bfd1-11e4-9dee-705681abff85"], ["organization_id", "bcc9baec-bfd1-11e4-8001-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.438951"], ["updated_at", "2015-03-01 05:13:46.438951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc8e586-bfd1-11e4-8f3f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc9baec-bfd1-11e4-8001-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcc8e586-bfd1-11e4-8f3f-705681abff85"], ["organization_id", "bcc9baec-bfd1-11e4-8001-705681abff85"], ["created_at", "2015-03-01 05:13:46.441821"], ["updated_at", "2015-03-01 05:13:46.441821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/bccaa128-bfd1-11e4-9149-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"bccaa128-bfd1-11e4-9149-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:46.447213' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p8jQl3tuEGsAQv3gCmhaYQEVNfwOQZ-pfHH8IMoL0eI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:46.448636"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:46.449607"], ["id", "bcc9490e-bfd1-11e4-a7da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcc82a1a-bfd1-11e4-9dee-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bcc82a1a-bfd1-11e4-9dee-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcc82a1a-bfd1-11e4-9dee-705681abff85' LIMIT 1 [["organization_id", "bcc9baec-bfd1-11e4-8001-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bcc9baec-bfd1-11e4-8001-705681abff85"], ["id", "bccaa128-bfd1-11e4-9149-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcc8e586-bfd1-11e4-8f3f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bcc9baec-bfd1-11e4-8001-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc8e586-bfd1-11e4-8f3f-705681abff85' AND "clubhouse_memberships"."id" != 'bccaa128-bfd1-11e4-9149-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc9baec-bfd1-11e4-8001-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 05:13:46.459403"], ["id", "bccaa128-bfd1-11e4-9149-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.1ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$aTsSePtKn5xUjQ4lDDo9I.0McE8nv4U3.4BIfMWAZEiu5hIGRfHOW"], ["created_at", "2015-03-01 05:13:46.467956"], ["updated_at", "2015-03-01 05:13:46.467956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$YTsfrArYzVS4I5TCktx0eOVLCOq8JxDdInzvFWrNwbr5N/5G2SC9O"], ["created_at", "2015-03-01 05:13:46.472250"], ["updated_at", "2015-03-01 05:13:46.472250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 05:13:46.473694"], ["user_id", "bccea214-bfd1-11e4-9cdb-705681abff85"], ["created_at", "2015-03-01 05:13:46.474420"], ["updated_at", "2015-03-01 05:13:46.474420"], ["token", "UPNa83q_puA4jTy7F9dBYeoYG_OcqhZLmtjhc86AbM8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 05:13:46.477550"], ["updated_at", "2015-03-01 05:13:46.477550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bccea214-bfd1-11e4-9cdb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcd01aae-bfd1-11e4-8291-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bccea214-bfd1-11e4-9cdb-705681abff85"], ["organization_id", "bcd01aae-bfd1-11e4-8291-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 05:13:46.480971"], ["updated_at", "2015-03-01 05:13:46.480971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bccf47a0-bfd1-11e4-b169-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcd01aae-bfd1-11e4-8291-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bccf47a0-bfd1-11e4-b169-705681abff85"], ["organization_id", "bcd01aae-bfd1-11e4-8291-705681abff85"], ["created_at", "2015-03-01 05:13:46.483819"], ["updated_at", "2015-03-01 05:13:46.483819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/bcd09c36-bfd1-11e4-a2f4-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 21:13:46 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"bcd09c36-bfd1-11e4-a2f4-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 05:13:46.488320' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UPNa83q_puA4jTy7F9dBYeoYG_OcqhZLmtjhc86AbM8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 05:13:46.489711"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 05:13:46.490707"], ["id", "bccfa29a-bfd1-11e4-9576-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bccea214-bfd1-11e4-9cdb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bccea214-bfd1-11e4-9cdb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bccea214-bfd1-11e4-9cdb-705681abff85' LIMIT 1 [["organization_id", "bcd01aae-bfd1-11e4-8291-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bcd01aae-bfd1-11e4-8291-705681abff85"], ["id", "bcd09c36-bfd1-11e4-a2f4-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bccea214-bfd1-11e4-9cdb-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (6.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:07.961960"], ["updated_at", "2015-03-01 07:05:07.961960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4b49e558-bfe1-11e4-851e-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "4b49e558-bfe1-11e4-851e-705681abff85"], ["created_at", "2015-03-01 07:05:07.967328"], ["updated_at", "2015-03-01 07:05:07.967328"], ["token", "1-96E4HucaLSxADWWO28SmQ0eSX9mitD78rw6YjjHFg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:07.982151"], ["updated_at", "2015-03-01 07:05:07.982151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '4b4ccd40-bfe1-11e4-b3ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "4b4ccd40-bfe1-11e4-b3ae-705681abff85"], ["created_at", "2015-03-01 07:05:07.985159"], ["updated_at", "2015-03-01 07:05:07.985159"], ["token", "wf0FPMek8wr887U3fPKjcI1rrq_f9gposQ6kLL4PS8s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4b4ccd40-bfe1-11e4-b3ae-705681abff85"]] Clubhouse::Invitation Exists (21.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '4b4ccd40-bfe1-11e4-b3ae-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4b4ccd40-bfe1-11e4-b3ae-705681abff86"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '4b4ccd40-bfe1-11e4-b3ae-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$pfWEWr39Oak6SS/tCaFLJOSSfHLRLV6Tjq06aoK0Q3fKDBd4irAfG"], ["created_at", "2015-03-01 07:05:08.069081"], ["updated_at", "2015-03-01 07:05:08.069081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.078220"], ["user_id", "4b5a19dc-bfe1-11e4-b2a2-705681abff85"], ["created_at", "2015-03-01 07:05:08.079343"], ["updated_at", "2015-03-01 07:05:08.079343"], ["token", "eXH1k7Bi97102hN905NB4P34tBPrjCc0gWPSHHUVABM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.084771"], ["updated_at", "2015-03-01 07:05:08.084771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4b5a19dc-bfe1-11e4-b2a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '4b5c7812-bfe1-11e4-9050-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4b5a19dc-bfe1-11e4-b2a2-705681abff85"], ["organization_id", "4b5c7812-bfe1-11e4-9050-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.096826"], ["updated_at", "2015-03-01 07:05:08.096826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '4b5c7812-bfe1-11e4-9050-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "4b5c7812-bfe1-11e4-9050-705681abff85"], ["created_at", "2015-03-01 07:05:08.103467"], ["updated_at", "2015-03-01 07:05:08.103467"], ["token", "eK9J74vBYyJ1SHoe24dniFR1tyJCYssPWKdLpxz07qE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$IEwTUxk5ETBpNoNLQ8b3EeocG1WWWe3VldH/c85O5uQhXIDeUQ9LK"], ["created_at", "2015-03-01 07:05:08.138312"], ["updated_at", "2015-03-01 07:05:08.138312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.140070"], ["user_id", "4b64a37a-bfe1-11e4-932a-705681abff85"], ["created_at", "2015-03-01 07:05:08.141085"], ["updated_at", "2015-03-01 07:05:08.141085"], ["token", "TN1KlTnFkvQhMrBXzHtg5L76xYMeqRBLsZPpPKD4DhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.144986"], ["updated_at", "2015-03-01 07:05:08.144986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4b64a37a-bfe1-11e4-932a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4b65a234-bfe1-11e4-a9a7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4b64a37a-bfe1-11e4-932a-705681abff85"], ["organization_id", "4b65a234-bfe1-11e4-a9a7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.148935"], ["updated_at", "2015-03-01 07:05:08.148935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '4b65a234-bfe1-11e4-a9a7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "4b65a234-bfe1-11e4-a9a7-705681abff85"], ["created_at", "2015-03-01 07:05:08.152588"], ["updated_at", "2015-03-01 07:05:08.152588"], ["token", "1v2etxFuYdD4LR7pXuFiojCtiHrE7csl1FRmgtmzLPM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/4b66dc58-bfe1-11e4-a936-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"4b66dc58-bfe1-11e4-a936-705681abff85", "invitation"=>{}} Pollett::Session Load (1.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:08.158303' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TN1KlTnFkvQhMrBXzHtg5L76xYMeqRBLsZPpPKD4DhY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:08.165337"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:08.166576"], ["id", "4b65194a-bfe1-11e4-b430-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4b64a37a-bfe1-11e4-932a-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4b64a37a-bfe1-11e4-932a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4b64a37a-bfe1-11e4-932a-705681abff85' LIMIT 1 [["organization_id", "4b65a234-bfe1-11e4-a9a7-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "4b65a234-bfe1-11e4-a9a7-705681abff85"], ["id", "4b66dc58-bfe1-11e4-a936-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4b65a234-bfe1-11e4-a9a7-705681abff85"]] Completed 200 OK in 36ms (Views: 4.0ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$TLaORrMQE.pplqbM6qj.Juq.CRqEYVl1xmJXpONDu4FHM4.CV7Pq."], ["created_at", "2015-03-01 07:05:08.201420"], ["updated_at", "2015-03-01 07:05:08.201420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.203033"], ["user_id", "4b6e410a-bfe1-11e4-82e3-705681abff85"], ["created_at", "2015-03-01 07:05:08.203843"], ["updated_at", "2015-03-01 07:05:08.203843"], ["token", "3qTWK5mK_b7M9_bo0KsuIA5wQoCUSSNXHIdTHBv-LGk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.207616"], ["updated_at", "2015-03-01 07:05:08.207616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4b6e410a-bfe1-11e4-82e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '4b6f3876-bfe1-11e4-b118-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4b6e410a-bfe1-11e4-82e3-705681abff85"], ["organization_id", "4b6f3876-bfe1-11e4-b118-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.211497"], ["updated_at", "2015-03-01 07:05:08.211497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '4b6f3876-bfe1-11e4-b118-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "4b6f3876-bfe1-11e4-b118-705681abff85"], ["created_at", "2015-03-01 07:05:08.215336"], ["updated_at", "2015-03-01 07:05:08.215336"], ["token", "6kdLL5GS3D9e_mgc5wPYxMCOZmFefjheWXdt4VMP-iU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$o2sV9Gl/jvC0XDSXOgKNBe0ssKvhWZN4mIQ9V2/dBIty3rQ4ruhyq"], ["created_at", "2015-03-01 07:05:08.230231"], ["updated_at", "2015-03-01 07:05:08.230231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.232357"], ["user_id", "4b72ab3c-bfe1-11e4-8d5b-705681abff85"], ["created_at", "2015-03-01 07:05:08.233240"], ["updated_at", "2015-03-01 07:05:08.233240"], ["token", "cJJY20NR7pBI_h2_kINalJNvun-YSPat9CMbJdVB3Ic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.237001"], ["updated_at", "2015-03-01 07:05:08.237001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4b72ab3c-bfe1-11e4-8d5b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4b73ae42-bfe1-11e4-a3a8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4b72ab3c-bfe1-11e4-8d5b-705681abff85"], ["organization_id", "4b73ae42-bfe1-11e4-a3a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.240347"], ["updated_at", "2015-03-01 07:05:08.240347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '4b73ae42-bfe1-11e4-a3a8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "4b73ae42-bfe1-11e4-a3a8-705681abff85"], ["created_at", "2015-03-01 07:05:08.244686"], ["updated_at", "2015-03-01 07:05:08.244686"], ["token", "a7qB50RXQrA-Tm-WeNmwwHQq3ofWY0MnWGLf7Klg3N4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/4b74df24-bfe1-11e4-bbb7-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"4b74df24-bfe1-11e4-bbb7-705681abff85", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:08.249513' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cJJY20NR7pBI_h2_kINalJNvun-YSPat9CMbJdVB3Ic"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:08.251720"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:08.252719"], ["id", "4b73299a-bfe1-11e4-8439-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4b72ab3c-bfe1-11e4-8d5b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4b72ab3c-bfe1-11e4-8d5b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4b72ab3c-bfe1-11e4-8d5b-705681abff85' LIMIT 1 [["organization_id", "4b73ae42-bfe1-11e4-a3a8-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "4b73ae42-bfe1-11e4-a3a8-705681abff85"], ["id", "4b74df24-bfe1-11e4-bbb7-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "4b74df24-bfe1-11e4-bbb7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 15ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$o36d1vdyZYYPt9WaKauxrevXUeU8WcyADotrskjzHpljAz4qcCIju"], ["created_at", "2015-03-01 07:05:08.269634"], ["updated_at", "2015-03-01 07:05:08.269634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.271935"], ["user_id", "4b78ae56-bfe1-11e4-8ca0-705681abff85"], ["created_at", "2015-03-01 07:05:08.273286"], ["updated_at", "2015-03-01 07:05:08.273286"], ["token", "VN6wsgL_VwR-62r_5OlU-vaEgkz2451JI9V8PHgJy84"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.278241"], ["updated_at", "2015-03-01 07:05:08.278241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4b78ae56-bfe1-11e4-8ca0-705681abff85' AND "clubhouse_memberships"."organization_id" = '4b79f996-bfe1-11e4-a453-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4b78ae56-bfe1-11e4-8ca0-705681abff85"], ["organization_id", "4b79f996-bfe1-11e4-a453-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.282163"], ["updated_at", "2015-03-01 07:05:08.282163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '4b79f996-bfe1-11e4-a453-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "4b79f996-bfe1-11e4-a453-705681abff85"], ["created_at", "2015-03-01 07:05:08.286042"], ["updated_at", "2015-03-01 07:05:08.286042"], ["token", "mjbudVHWWXIXltopEMrPegX43K-6Ih7WpoY81vQ-bPY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$52jC2eyGxfiCbF6.qTV.fuFQESWqLylxG2T1zef8FFRn4.4EJhIme"], ["created_at", "2015-03-01 07:05:08.298998"], ["updated_at", "2015-03-01 07:05:08.298998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.301179"], ["user_id", "4b7d2756-bfe1-11e4-8dee-705681abff85"], ["created_at", "2015-03-01 07:05:08.302082"], ["updated_at", "2015-03-01 07:05:08.302082"], ["token", "GVAakvoIYXD0HFYugbLxZLN1d8yhrKbvl1trOwB19qw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.305867"], ["updated_at", "2015-03-01 07:05:08.305867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4b7d2756-bfe1-11e4-8dee-705681abff85' AND "clubhouse_memberships"."organization_id" = '4b7e3934-bfe1-11e4-97db-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4b7d2756-bfe1-11e4-8dee-705681abff85"], ["organization_id", "4b7e3934-bfe1-11e4-97db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.309981"], ["updated_at", "2015-03-01 07:05:08.309981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '4b7e3934-bfe1-11e4-97db-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "4b7e3934-bfe1-11e4-97db-705681abff85"], ["created_at", "2015-03-01 07:05:08.313612"], ["updated_at", "2015-03-01 07:05:08.313612"], ["token", "99XJmZ58oDgAu9C2lKQiiknYIoe79OWe-B3NJ6Wbl78"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:08.352974' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GVAakvoIYXD0HFYugbLxZLN1d8yhrKbvl1trOwB19qw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:08.354371"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:08.355332"], ["id", "4b7da726-bfe1-11e4-83da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4b7d2756-bfe1-11e4-8dee-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4b7d2756-bfe1-11e4-8dee-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4b7d2756-bfe1-11e4-8dee-705681abff85' LIMIT 1 [["organization_id", "4b7e3934-bfe1-11e4-97db-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4b7e3934-bfe1-11e4-97db-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4b7e3934-bfe1-11e4-97db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "4b7e3934-bfe1-11e4-97db-705681abff85"], ["created_at", "2015-03-01 07:05:08.366039"], ["updated_at", "2015-03-01 07:05:08.366039"], ["token", "uQinaa1uLkGdO1oL3v4XtNC-TXl71mKwhiyRKsNHgQg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1d445750-a3e4-4bb5-91d4-2ca879638169) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4b876d74-bfe1-11e4-a575-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4b876d74-bfe1-11e4-a575-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1d445750-a3e4-4bb5-91d4-2ca879638169] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4b876d74-bfe1-11e4-a575-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [1d445750-a3e4-4bb5-91d4-2ca879638169] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4b7e3934-bfe1-11e4-97db-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1d445750-a3e4-4bb5-91d4-2ca879638169] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [1d445750-a3e4-4bb5-91d4-2ca879638169] Clubhouse::Mailer#invitation: processed outbound mail in 287.0ms [ActiveJob] [ActionMailer::DeliveryJob] [1d445750-a3e4-4bb5-91d4-2ca879638169] Sent mail to email@example.com (18.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [1d445750-a3e4-4bb5-91d4-2ca879638169] Date: Sat, 28 Feb 2015 23:05:08 -0800 From: from@example.com To: email@example.com Message-ID: <54f2ba24a9485_134a03fd759063be4328bc@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/uQinaa1uLkGdO1oL3v4XtNC-TXl71mKwhiyRKsNHgQg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [1d445750-a3e4-4bb5-91d4-2ca879638169] Performed ActionMailer::DeliveryJob from Inline(mailers) in 305.6ms Completed 201 Created in 346ms (Views: 1.3ms | ActiveRecord: 3.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$FTDDEeLWOe9O7Cj8Z0uGG./ErUxvHqct4fFu36JLoT5F7Lah4i1ea"], ["created_at", "2015-03-01 07:05:08.705418"], ["updated_at", "2015-03-01 07:05:08.705418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.707104"], ["user_id", "4bbb27c2-bfe1-11e4-9b68-705681abff85"], ["created_at", "2015-03-01 07:05:08.708003"], ["updated_at", "2015-03-01 07:05:08.708003"], ["token", "x116NUZhc88ppa7DSoReSk_CMryXX4Ipo5CZzkR9ydU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.711825"], ["updated_at", "2015-03-01 07:05:08.711825"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bbb27c2-bfe1-11e4-9b68-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bbc28e8-bfe1-11e4-8734-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4bbb27c2-bfe1-11e4-9b68-705681abff85"], ["organization_id", "4bbc28e8-bfe1-11e4-8734-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.717487"], ["updated_at", "2015-03-01 07:05:08.717487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '4bbc28e8-bfe1-11e4-8734-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "4bbc28e8-bfe1-11e4-8734-705681abff85"], ["created_at", "2015-03-01 07:05:08.721493"], ["updated_at", "2015-03-01 07:05:08.721493"], ["token", "VOodo8pvUqEOjgDNvoDBq3Bb8siVQMdm4CZHzaRByzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:08.726798' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "x116NUZhc88ppa7DSoReSk_CMryXX4Ipo5CZzkR9ydU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:08.728207"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:08.729392"], ["id", "4bbb972a-bfe1-11e4-82cd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4bbb27c2-bfe1-11e4-9b68-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4bbb27c2-bfe1-11e4-9b68-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4bbb27c2-bfe1-11e4-9b68-705681abff85' LIMIT 1 [["organization_id", "4bbc28e8-bfe1-11e4-8734-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4bbc28e8-bfe1-11e4-8734-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4bbc28e8-bfe1-11e4-8734-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "4bbc28e8-bfe1-11e4-8734-705681abff85"], ["created_at", "2015-03-01 07:05:08.739062"], ["updated_at", "2015-03-01 07:05:08.739062"], ["token", "gK6JC9GRAY56bqi0gbxUYVSc8k-0_FFapKZxf7M2RTA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1d956b20-4a0b-4a4a-b656-6b63d18efd56) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4bc04ebe-bfe1-11e4-97f0-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4bc04ebe-bfe1-11e4-97f0-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1d956b20-4a0b-4a4a-b656-6b63d18efd56] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4bc04ebe-bfe1-11e4-97f0-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [1d956b20-4a0b-4a4a-b656-6b63d18efd56] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4bbc28e8-bfe1-11e4-8734-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1d956b20-4a0b-4a4a-b656-6b63d18efd56] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [1d956b20-4a0b-4a4a-b656-6b63d18efd56] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [1d956b20-4a0b-4a4a-b656-6b63d18efd56] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [1d956b20-4a0b-4a4a-b656-6b63d18efd56] Date: Sat, 28 Feb 2015 23:05:08 -0800 From: from@example.com To: email@example.com Message-ID: <54f2ba24b6613_134a03fd759063be432993@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/gK6JC9GRAY56bqi0gbxUYVSc8k-0_FFapKZxf7M2RTA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [1d956b20-4a0b-4a4a-b656-6b63d18efd56] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.28ms Completed 201 Created in 23ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$6xPFdMslxRJDfI1qcetb6OaAyHpgAcI.xUveBJf/KUe2jw5gXWJ8."], ["created_at", "2015-03-01 07:05:08.758987"], ["updated_at", "2015-03-01 07:05:08.758987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.760837"], ["user_id", "4bc35956-bfe1-11e4-ab82-705681abff85"], ["created_at", "2015-03-01 07:05:08.761616"], ["updated_at", "2015-03-01 07:05:08.761616"], ["token", "aJGWBuTJ3pI9oYD2NuWSKP4vhtV6yrsRRBlSpvJ8Ax8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.765224"], ["updated_at", "2015-03-01 07:05:08.765224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bc35956-bfe1-11e4-ab82-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bc4478a-bfe1-11e4-8c2c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4bc35956-bfe1-11e4-ab82-705681abff85"], ["organization_id", "4bc4478a-bfe1-11e4-8c2c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.768879"], ["updated_at", "2015-03-01 07:05:08.768879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '4bc4478a-bfe1-11e4-8c2c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "4bc4478a-bfe1-11e4-8c2c-705681abff85"], ["created_at", "2015-03-01 07:05:08.772640"], ["updated_at", "2015-03-01 07:05:08.772640"], ["token", "-sbQpA0oTqXSu8Uq1zjKpyBokfI6bBUAbivGu99MgXU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:08.779805' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aJGWBuTJ3pI9oYD2NuWSKP4vhtV6yrsRRBlSpvJ8Ax8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:08.781455"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:08.782563"], ["id", "4bc3c09e-bfe1-11e4-82d9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4bc35956-bfe1-11e4-ab82-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4bc35956-bfe1-11e4-ab82-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4bc35956-bfe1-11e4-ab82-705681abff85' LIMIT 1 [["organization_id", "4bc4478a-bfe1-11e4-8c2c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4bc4478a-bfe1-11e4-8c2c-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '4bc4478a-bfe1-11e4-8c2c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$cP2HCz/MJXgkS7DkoqojIe7c3oi2rszh6dIChXiGZz22z7g8Qtd.K"], ["created_at", "2015-03-01 07:05:08.801930"], ["updated_at", "2015-03-01 07:05:08.801930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.803883"], ["user_id", "4bc9e5c8-bfe1-11e4-a348-705681abff85"], ["created_at", "2015-03-01 07:05:08.804785"], ["updated_at", "2015-03-01 07:05:08.804785"], ["token", "tqnz99PufFl2BIIyWe7XFHdlA5Cc5spY-cPEclOu-MA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.807995"], ["updated_at", "2015-03-01 07:05:08.807995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bc9e5c8-bfe1-11e4-a348-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bcacaba-bfe1-11e4-a792-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4bc9e5c8-bfe1-11e4-a348-705681abff85"], ["organization_id", "4bcacaba-bfe1-11e4-a792-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.811024"], ["updated_at", "2015-03-01 07:05:08.811024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '4bcacaba-bfe1-11e4-a792-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "4bcacaba-bfe1-11e4-a792-705681abff85"], ["created_at", "2015-03-01 07:05:08.814409"], ["updated_at", "2015-03-01 07:05:08.814409"], ["token", "Mz3BLkMXKHo0miSqZoK4EEd9lm4Z7YeA86aH0LV0Yi4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$oQove2HB7j5gVusHTa/wGuoSjT15mNv2jL4Oe9EZFUxmsFuPqWGcO"], ["created_at", "2015-03-01 07:05:08.827354"], ["updated_at", "2015-03-01 07:05:08.827354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.829292"], ["user_id", "4bcdc364-bfe1-11e4-aa55-705681abff85"], ["created_at", "2015-03-01 07:05:08.830087"], ["updated_at", "2015-03-01 07:05:08.830087"], ["token", "GqfB7RhYnwsIdDKIit_aHD5WHbrq25yaFLyk6dUoRD4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.833503"], ["updated_at", "2015-03-01 07:05:08.833503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bcdc364-bfe1-11e4-aa55-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bceb468-bfe1-11e4-a875-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4bcdc364-bfe1-11e4-aa55-705681abff85"], ["organization_id", "4bceb468-bfe1-11e4-a875-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.837235"], ["updated_at", "2015-03-01 07:05:08.837235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '4bceb468-bfe1-11e4-a875-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "4bceb468-bfe1-11e4-a875-705681abff85"], ["created_at", "2015-03-01 07:05:08.840688"], ["updated_at", "2015-03-01 07:05:08.840688"], ["token", "VytplfFTq-1Tv9_vt4cux-3jBTlfLQWkSlysvdNI-IY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/4bcfcc68-bfe1-11e4-9c6d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"4bcfcc68-bfe1-11e4-9c6d-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:08.845736' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GqfB7RhYnwsIdDKIit_aHD5WHbrq25yaFLyk6dUoRD4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:08.847195"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:08.848184"], ["id", "4bce3416-bfe1-11e4-806e-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4bcdc364-bfe1-11e4-aa55-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4bcdc364-bfe1-11e4-aa55-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4bcdc364-bfe1-11e4-aa55-705681abff85' LIMIT 1 [["organization_id", "4bceb468-bfe1-11e4-a875-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "4bceb468-bfe1-11e4-a875-705681abff85"], ["id", "4bcfcc68-bfe1-11e4-9c6d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4bceb468-bfe1-11e4-a875-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."id" != '4bcfcc68-bfe1-11e4-9c6d-705681abff85' AND "clubhouse_invitations"."organization_id" = '4bceb468-bfe1-11e4-a875-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:05:08.859358"], ["id", "4bcfcc68-bfe1-11e4-9c6d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.9ms | ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$tU9Nl.3NXSsT59KOw2NDyujPmVBoNUdQeWYtZw6CcDyj3.4c7fQPK"], ["created_at", "2015-03-01 07:05:08.868099"], ["updated_at", "2015-03-01 07:05:08.868099"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.870327"], ["user_id", "4bd40242-bfe1-11e4-b91c-705681abff85"], ["created_at", "2015-03-01 07:05:08.871196"], ["updated_at", "2015-03-01 07:05:08.871196"], ["token", "bW6sfcH09doeje4lNfY7BbaoYAv-t3qtcjbd-JZdkes"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.874784"], ["updated_at", "2015-03-01 07:05:08.874784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bd40242-bfe1-11e4-b91c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bd4fcc4-bfe1-11e4-aba3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4bd40242-bfe1-11e4-b91c-705681abff85"], ["organization_id", "4bd4fcc4-bfe1-11e4-aba3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.878006"], ["updated_at", "2015-03-01 07:05:08.878006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '4bd4fcc4-bfe1-11e4-aba3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "4bd4fcc4-bfe1-11e4-aba3-705681abff85"], ["created_at", "2015-03-01 07:05:08.881311"], ["updated_at", "2015-03-01 07:05:08.881311"], ["token", "Qgi__OYWZJ1O5oquYnlvFKH7vcGK0EvM5ouC34iC0K8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$gVL/7FXqv5LCK2Ay0rYpk..fLTxirwQcoY.zf3uLDpEJxv1hyInoO"], ["created_at", "2015-03-01 07:05:08.885932"], ["updated_at", "2015-03-01 07:05:08.885932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.889738"], ["updated_at", "2015-03-01 07:05:08.889738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bd6b3ca-bfe1-11e4-83f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bd745c4-bfe1-11e4-b04b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4bd6b3ca-bfe1-11e4-83f8-705681abff85"], ["organization_id", "4bd745c4-bfe1-11e4-b04b-705681abff85"], ["created_at", "2015-03-01 07:05:08.893005"], ["updated_at", "2015-03-01 07:05:08.893005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Puwyf57eK5g0YzkVY6ZLf.kn5jWCgHJzZ/wWUPwRiw0Us4wppCyjW"], ["created_at", "2015-03-01 07:05:08.907809"], ["updated_at", "2015-03-01 07:05:08.907809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.909491"], ["user_id", "4bda0d40-bfe1-11e4-9c8e-705681abff85"], ["created_at", "2015-03-01 07:05:08.910361"], ["updated_at", "2015-03-01 07:05:08.910361"], ["token", "KtuWH18oB9weE54OwUUKx0TPpCPdXJRVBqGrdQ02gLk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.913814"], ["updated_at", "2015-03-01 07:05:08.913814"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bda0d40-bfe1-11e4-9c8e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bdaf26e-bfe1-11e4-ab28-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4bda0d40-bfe1-11e4-9c8e-705681abff85"], ["organization_id", "4bdaf26e-bfe1-11e4-ab28-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:08.918631"], ["updated_at", "2015-03-01 07:05:08.918631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '4bdaf26e-bfe1-11e4-ab28-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "4bdaf26e-bfe1-11e4-ab28-705681abff85"], ["created_at", "2015-03-01 07:05:08.922394"], ["updated_at", "2015-03-01 07:05:08.922394"], ["token", "LR164N8QwPBEwmWLuwUrNkZWzRqLB4Vr8UffAiSvxhw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$VHBSF5zzmxpTb4txOKKZqekSYJt1O.IPyXAjzrhspSMiz6dwmNAEm"], ["created_at", "2015-03-01 07:05:08.926904"], ["updated_at", "2015-03-01 07:05:08.926904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.930124"], ["updated_at", "2015-03-01 07:05:08.930124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bdcf3c0-bfe1-11e4-90aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bdd796c-bfe1-11e4-a113-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4bdcf3c0-bfe1-11e4-90aa-705681abff85"], ["organization_id", "4bdd796c-bfe1-11e4-a113-705681abff85"], ["created_at", "2015-03-01 07:05:08.934728"], ["updated_at", "2015-03-01 07:05:08.934728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:08 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:08.940729' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KtuWH18oB9weE54OwUUKx0TPpCPdXJRVBqGrdQ02gLk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:08.942124"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:08.943129"], ["id", "4bda7212-bfe1-11e4-ae69-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4bda0d40-bfe1-11e4-9c8e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4bda0d40-bfe1-11e4-9c8e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4bda0d40-bfe1-11e4-9c8e-705681abff85' LIMIT 1 [["organization_id", "4bdaf26e-bfe1-11e4-ab28-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "4bdaf26e-bfe1-11e4-ab28-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4bdaf26e-bfe1-11e4-ab28-705681abff85"]] Completed 200 OK in 11ms (Views: 2.6ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$ZHBTFi3c45MSn4m1tze.RuxCcHl6zRP7vXLV3yk98PJituKbkKjbq"], ["created_at", "2015-03-01 07:05:08.958080"], ["updated_at", "2015-03-01 07:05:08.958080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:08.961311"], ["updated_at", "2015-03-01 07:05:08.961311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4be1b4be-bfe1-11e4-9688-705681abff85' AND "clubhouse_memberships"."organization_id" = '4be236e6-bfe1-11e4-ada5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4be1b4be-bfe1-11e4-9688-705681abff85"], ["organization_id", "4be236e6-bfe1-11e4-ada5-705681abff85"], ["created_at", "2015-03-01 07:05:08.964432"], ["updated_at", "2015-03-01 07:05:08.964432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4be1b4be-bfe1-11e4-9688-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4be236e6-bfe1-11e4-ada5-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4be1b4be-bfe1-11e4-9688-705681abff85' AND "clubhouse_memberships"."organization_id" = '4be236e6-bfe1-11e4-ada5-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4be236e6-bfe1-11e4-ada5-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4be1b4be-bfe1-11e4-9688-705681abff85' AND "clubhouse_memberships"."organization_id" = '4be236e6-bfe1-11e4-ada5-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Q5hwfk0SnLGJgt6OYEHL9.0BxR.MSXy3X7CQGuG3Q2zglXovUdmk2"], ["created_at", "2015-03-01 07:05:08.990646"], ["updated_at", "2015-03-01 07:05:08.990646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$ngBpjDkMbgNeoGTgF6mSOeaq25kKxqKdppvTOxITmmFsPZq2LgT7e"], ["created_at", "2015-03-01 07:05:08.994773"], ["updated_at", "2015-03-01 07:05:08.994773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:08.996706"], ["user_id", "4be6ac94-bfe1-11e4-b018-705681abff85"], ["created_at", "2015-03-01 07:05:08.997468"], ["updated_at", "2015-03-01 07:05:08.997468"], ["token", "2hD028Oqj2eszRG1NK0O1KyD_rDDnhRBj1Jqd-F1uIs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.003905"], ["updated_at", "2015-03-01 07:05:09.003905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4be6ac94-bfe1-11e4-b018-705681abff85' AND "clubhouse_memberships"."organization_id" = '4be8ba52-bfe1-11e4-935d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4be6ac94-bfe1-11e4-b018-705681abff85"], ["organization_id", "4be8ba52-bfe1-11e4-935d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.007449"], ["updated_at", "2015-03-01 07:05:09.007449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4be74f32-bfe1-11e4-9116-705681abff85' AND "clubhouse_memberships"."organization_id" = '4be8ba52-bfe1-11e4-935d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4be74f32-bfe1-11e4-9116-705681abff85"], ["organization_id", "4be8ba52-bfe1-11e4-935d-705681abff85"], ["created_at", "2015-03-01 07:05:09.010347"], ["updated_at", "2015-03-01 07:05:09.010347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.022250' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2hD028Oqj2eszRG1NK0O1KyD_rDDnhRBj1Jqd-F1uIs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.023908"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.024885"], ["id", "4be7bf30-bfe1-11e4-986b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4be6ac94-bfe1-11e4-b018-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4be6ac94-bfe1-11e4-b018-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4be6ac94-bfe1-11e4-b018-705681abff85' LIMIT 1 [["organization_id", "4be8ba52-bfe1-11e4-935d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "4be8ba52-bfe1-11e4-935d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4be8ba52-bfe1-11e4-935d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4be6ac94-bfe1-11e4-b018-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4be8ba52-bfe1-11e4-935d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4be74f32-bfe1-11e4-9116-705681abff85"]] Completed 200 OK in 17ms (Views: 6.8ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$u9nQJQqA3u9zJmsu6t.BwOlsFxUQWLaZmNwqt5Qb1fKdapoCprMju"], ["created_at", "2015-03-01 07:05:09.044775"], ["updated_at", "2015-03-01 07:05:09.044775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$FZjxv4ym9wL6le1vKOFVKuBwNsZCkV24f17myc5NiTNuJA/hZjNAu"], ["created_at", "2015-03-01 07:05:09.049556"], ["updated_at", "2015-03-01 07:05:09.049556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.051070"], ["user_id", "4beef28c-bfe1-11e4-bb12-705681abff85"], ["created_at", "2015-03-01 07:05:09.051890"], ["updated_at", "2015-03-01 07:05:09.051890"], ["token", "CxnPqpRCm0uoYrGikWra_hehe9pcLKb3GKHydlcE4Oc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.055925"], ["updated_at", "2015-03-01 07:05:09.055925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4beef28c-bfe1-11e4-bb12-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bf0a136-bfe1-11e4-9f34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4beef28c-bfe1-11e4-bb12-705681abff85"], ["organization_id", "4bf0a136-bfe1-11e4-9f34-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.059208"], ["updated_at", "2015-03-01 07:05:09.059208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4befa998-bfe1-11e4-9141-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bf0a136-bfe1-11e4-9f34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4befa998-bfe1-11e4-9141-705681abff85"], ["organization_id", "4bf0a136-bfe1-11e4-9f34-705681abff85"], ["created_at", "2015-03-01 07:05:09.062473"], ["updated_at", "2015-03-01 07:05:09.062473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$gXocPNcZpU81c.iWj5kHbueXFOhtqLLJOy.pAcpBP79cMV3yrQudS"], ["created_at", "2015-03-01 07:05:09.067046"], ["updated_at", "2015-03-01 07:05:09.067046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.068803"], ["user_id", "4bf255e4-bfe1-11e4-acbc-705681abff85"], ["created_at", "2015-03-01 07:05:09.069591"], ["updated_at", "2015-03-01 07:05:09.069591"], ["token", "3IUKylG9zxcbrXgWkuAZWayxRD9opyFCvrh-EN45nbg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '4bf0a136-bfe1-11e4-9f34-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "4bf0a136-bfe1-11e4-9f34-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.073638"], ["updated_at", "2015-03-01 07:05:09.073638"], ["token", "bTMGlt6ccAqQgesHmsKSt0nInh-zrcFTxfSmuKWcZdg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$siF7BbfupHnQv6GPAflbDunnNkjR7WpMylbpd/WLtIAB96rKZI6/u"], ["created_at", "2015-03-01 07:05:09.087824"], ["updated_at", "2015-03-01 07:05:09.087824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$3ZGWWM2N1I145p2i7zNw1uxRzGAMxsygVcgB4iDRxHt6MN59pkp3q"], ["created_at", "2015-03-01 07:05:09.092411"], ["updated_at", "2015-03-01 07:05:09.092411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.094290"], ["user_id", "4bf581d8-bfe1-11e4-8d0f-705681abff85"], ["created_at", "2015-03-01 07:05:09.095096"], ["updated_at", "2015-03-01 07:05:09.095096"], ["token", "dU3nOOUXrXPPgprXzYEyaFblx5heTEl9BhL2-yNsFSM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.098990"], ["updated_at", "2015-03-01 07:05:09.098990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bf581d8-bfe1-11e4-8d0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bf73618-bfe1-11e4-bbdb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4bf581d8-bfe1-11e4-8d0f-705681abff85"], ["organization_id", "4bf73618-bfe1-11e4-bbdb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.102524"], ["updated_at", "2015-03-01 07:05:09.102524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bf635a6-bfe1-11e4-a2de-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bf73618-bfe1-11e4-bbdb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4bf635a6-bfe1-11e4-a2de-705681abff85"], ["organization_id", "4bf73618-bfe1-11e4-bbdb-705681abff85"], ["created_at", "2015-03-01 07:05:09.106274"], ["updated_at", "2015-03-01 07:05:09.106274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$ympZsHmSK4zVJ8IpQFDxxO0CKkCj2G6BJdd.zZJk2Vu7KH3L2SAnC"], ["created_at", "2015-03-01 07:05:09.111037"], ["updated_at", "2015-03-01 07:05:09.111037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.112604"], ["user_id", "4bf90b3c-bfe1-11e4-b1a6-705681abff85"], ["created_at", "2015-03-01 07:05:09.113614"], ["updated_at", "2015-03-01 07:05:09.113614"], ["token", "m-b_sk11URyAyjpm3YKhmgbqQEpjTOZ5x0Gv7fSqsaI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '4bf73618-bfe1-11e4-bbdb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "4bf73618-bfe1-11e4-bbdb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.119658"], ["updated_at", "2015-03-01 07:05:09.119658"], ["token", "ys1j7504OrdJ7UzLUrFWX8mln4BVBwa1_VpRetCJO_o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"ys1j7504OrdJ7UzLUrFWX8mln4BVBwa1_VpRetCJO_o", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.124812' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "m-b_sk11URyAyjpm3YKhmgbqQEpjTOZ5x0Gv7fSqsaI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.126299"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.127232"], ["id", "4bf98a3a-bfe1-11e4-9846-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4bf90b3c-bfe1-11e4-b1a6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4bf90b3c-bfe1-11e4-b1a6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "ys1j7504OrdJ7UzLUrFWX8mln4BVBwa1_VpRetCJO_o"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4bf73618-bfe1-11e4-bbdb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4bf73618-bfe1-11e4-bbdb-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bf90b3c-bfe1-11e4-b1a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '4bf73618-bfe1-11e4-bbdb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4bf90b3c-bfe1-11e4-b1a6-705681abff85"], ["admin", "t"], ["organization_id", "4bf73618-bfe1-11e4-bbdb-705681abff85"], ["created_at", "2015-03-01 07:05:09.137411"], ["updated_at", "2015-03-01 07:05:09.137411"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "4bfa6e8c-bfe1-11e4-a42f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.3ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$peHnMfslg2cNaDpoWgcByOxYx6GQbgzUEUmbrtmj6jSATLnx6MEXa"], ["created_at", "2015-03-01 07:05:09.147321"], ["updated_at", "2015-03-01 07:05:09.147321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$yk4ct73pHctv3mKMmJm0vuuHVVX2MU9Vxajur0fn2PZh38sEkwHQO"], ["created_at", "2015-03-01 07:05:09.152052"], ["updated_at", "2015-03-01 07:05:09.152052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.153611"], ["user_id", "4bfe9516-bfe1-11e4-a425-705681abff85"], ["created_at", "2015-03-01 07:05:09.154425"], ["updated_at", "2015-03-01 07:05:09.154425"], ["token", "7EluXtEu45esVJE_39RwVRDGDq5ArnXjsq_7Dj6DMRc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.157688"], ["updated_at", "2015-03-01 07:05:09.157688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bfe9516-bfe1-11e4-a425-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c002f20-bfe1-11e4-81a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4bfe9516-bfe1-11e4-a425-705681abff85"], ["organization_id", "4c002f20-bfe1-11e4-81a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.161168"], ["updated_at", "2015-03-01 07:05:09.161168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bff4e70-bfe1-11e4-9fef-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c002f20-bfe1-11e4-81a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4bff4e70-bfe1-11e4-9fef-705681abff85"], ["organization_id", "4c002f20-bfe1-11e4-81a6-705681abff85"], ["created_at", "2015-03-01 07:05:09.165256"], ["updated_at", "2015-03-01 07:05:09.165256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$jXTiJH05rOQbKUtKNpczSO.sAJm3Pxi2nAop6.bNZ6Supp58lgz4O"], ["created_at", "2015-03-01 07:05:09.169852"], ["updated_at", "2015-03-01 07:05:09.169852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.171550"], ["user_id", "4c020a5c-bfe1-11e4-a7d4-705681abff85"], ["created_at", "2015-03-01 07:05:09.172295"], ["updated_at", "2015-03-01 07:05:09.172295"], ["token", "LapuAo6IaDAz3thpmd4vzZZ_gSqyHpBeEL-Y9b2DTjs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '4c002f20-bfe1-11e4-81a6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "4c002f20-bfe1-11e4-81a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.176027"], ["updated_at", "2015-03-01 07:05:09.176027"], ["token", "5md7zue1yh1KrlFC9G9XY4nM37i5QhgnwzOLknkiWq0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.181431' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LapuAo6IaDAz3thpmd4vzZZ_gSqyHpBeEL-Y9b2DTjs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.182812"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.183742"], ["id", "4c02698e-bfe1-11e4-a3e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c020a5c-bfe1-11e4-a7d4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c020a5c-bfe1-11e4-a7d4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$ijHVyID8iiSdFuQis7Qu6O.Dicaq0te7QDiK6rdjkKGCGzEFmQuiG"], ["created_at", "2015-03-01 07:05:09.194378"], ["updated_at", "2015-03-01 07:05:09.194378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$LwsntMZPHi.xMrzaXeBSoOVH7k1X.yQIQgGF0Z2hb1CDOiJNqbHPC"], ["created_at", "2015-03-01 07:05:09.199353"], ["updated_at", "2015-03-01 07:05:09.199353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.200924"], ["user_id", "4c05c692-bfe1-11e4-9e14-705681abff85"], ["created_at", "2015-03-01 07:05:09.201800"], ["updated_at", "2015-03-01 07:05:09.201800"], ["token", "4hYZCEQbyOG3QBBrd6oauQzMe5FTpTTR0I-BDuPXTqQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.205440"], ["updated_at", "2015-03-01 07:05:09.205440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c05c692-bfe1-11e4-9e14-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c077122-bfe1-11e4-bef5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c05c692-bfe1-11e4-9e14-705681abff85"], ["organization_id", "4c077122-bfe1-11e4-bef5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.208808"], ["updated_at", "2015-03-01 07:05:09.208808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c068488-bfe1-11e4-9086-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c077122-bfe1-11e4-bef5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c068488-bfe1-11e4-9086-705681abff85"], ["organization_id", "4c077122-bfe1-11e4-bef5-705681abff85"], ["created_at", "2015-03-01 07:05:09.211954"], ["updated_at", "2015-03-01 07:05:09.211954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$ajhe1MDJ/InlGeYeAfYdH.qnACWakNvqxbYeQWC6TgMxoWfz2Hequ"], ["created_at", "2015-03-01 07:05:09.224178"], ["updated_at", "2015-03-01 07:05:09.224178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$r5x0oFVwIJVs1NskyuipsOc42VJlrzAwCwVHLeGIE2HOSCZHIi9.."], ["created_at", "2015-03-01 07:05:09.228957"], ["updated_at", "2015-03-01 07:05:09.228957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.230760"], ["user_id", "4c0a541e-bfe1-11e4-a8c2-705681abff85"], ["created_at", "2015-03-01 07:05:09.231600"], ["updated_at", "2015-03-01 07:05:09.231600"], ["token", "nIGNO9yENPtXpUs5c6vDDpyrs5yEY5R62Og4Bp5bihE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.235955"], ["updated_at", "2015-03-01 07:05:09.235955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c0a541e-bfe1-11e4-a8c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c0c26fe-bfe1-11e4-9c72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c0a541e-bfe1-11e4-a8c2-705681abff85"], ["organization_id", "4c0c26fe-bfe1-11e4-9c72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.240041"], ["updated_at", "2015-03-01 07:05:09.240041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c0b11f6-bfe1-11e4-8d27-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c0c26fe-bfe1-11e4-9c72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c0b11f6-bfe1-11e4-8d27-705681abff85"], ["organization_id", "4c0c26fe-bfe1-11e4-9c72-705681abff85"], ["created_at", "2015-03-01 07:05:09.242978"], ["updated_at", "2015-03-01 07:05:09.242978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/4c0cba88-bfe1-11e4-a433-705681abff85" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"4c0cba88-bfe1-11e4-a433-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.248912' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nIGNO9yENPtXpUs5c6vDDpyrs5yEY5R62Og4Bp5bihE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.250298"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.251374"], ["id", "4c0b7786-bfe1-11e4-a68e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c0a541e-bfe1-11e4-a8c2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c0a541e-bfe1-11e4-a8c2-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c0a541e-bfe1-11e4-a8c2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "4c0a541e-bfe1-11e4-a8c2-705681abff85"], ["id", "4c0cba88-bfe1-11e4-a433-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4c0c26fe-bfe1-11e4-9c72-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c0a541e-bfe1-11e4-a8c2-705681abff85"]] Completed 200 OK in 10ms (Views: 1.9ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$kO7S.QZBiSuF/oIp60AQUecHnBPUrhdz8P.4eMUP2zP5NwTTsJsme"], ["created_at", "2015-03-01 07:05:09.265447"], ["updated_at", "2015-03-01 07:05:09.265447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$tRYx6f3/on3sS7HRRvbq2uGoD6XGo8dpURkCZPsEfd07D51Kmy2I2"], ["created_at", "2015-03-01 07:05:09.269730"], ["updated_at", "2015-03-01 07:05:09.269730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.271232"], ["user_id", "4c109b80-bfe1-11e4-b781-705681abff85"], ["created_at", "2015-03-01 07:05:09.271965"], ["updated_at", "2015-03-01 07:05:09.271965"], ["token", "sfvC8B8RAPQU6E6BwC-GSA5ZcaoTDlqHI2vWGxmnF8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.275483"], ["updated_at", "2015-03-01 07:05:09.275483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c109b80-bfe1-11e4-b781-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c122e50-bfe1-11e4-9abd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c109b80-bfe1-11e4-b781-705681abff85"], ["organization_id", "4c122e50-bfe1-11e4-9abd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.281122"], ["updated_at", "2015-03-01 07:05:09.281122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c114260-bfe1-11e4-812b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c122e50-bfe1-11e4-9abd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c114260-bfe1-11e4-812b-705681abff85"], ["organization_id", "4c122e50-bfe1-11e4-9abd-705681abff85"], ["created_at", "2015-03-01 07:05:09.284467"], ["updated_at", "2015-03-01 07:05:09.284467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$7iWXK2QZ8zThVzQEy3pzieh5zatdSdmlP13XtZRNtwYmXnJrnDn8q"], ["created_at", "2015-03-01 07:05:09.297310"], ["updated_at", "2015-03-01 07:05:09.297310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$75qjsyBfSFNkdsVZ2b8pU.By2N6Am3aeg6TjcBhgXRFDksJMr.4zG"], ["created_at", "2015-03-01 07:05:09.301922"], ["updated_at", "2015-03-01 07:05:09.301922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.303644"], ["user_id", "4c158032-bfe1-11e4-8acb-705681abff85"], ["created_at", "2015-03-01 07:05:09.304375"], ["updated_at", "2015-03-01 07:05:09.304375"], ["token", "pSn4WmQxMlhkhfLqFHlemK9Du2W2oRPNI1v4v3xaGeg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.307593"], ["updated_at", "2015-03-01 07:05:09.307593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c158032-bfe1-11e4-8acb-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c170830-bfe1-11e4-a9b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c158032-bfe1-11e4-8acb-705681abff85"], ["organization_id", "4c170830-bfe1-11e4-a9b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.310888"], ["updated_at", "2015-03-01 07:05:09.310888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c163144-bfe1-11e4-a601-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c170830-bfe1-11e4-a9b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c163144-bfe1-11e4-a601-705681abff85"], ["organization_id", "4c170830-bfe1-11e4-a9b7-705681abff85"], ["created_at", "2015-03-01 07:05:09.314031"], ["updated_at", "2015-03-01 07:05:09.314031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/4c1803f2-bfe1-11e4-bcde-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"4c1803f2-bfe1-11e4-bcde-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.319343' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pSn4WmQxMlhkhfLqFHlemK9Du2W2oRPNI1v4v3xaGeg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.320781"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.321777"], ["id", "4c169062-bfe1-11e4-b639-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c158032-bfe1-11e4-8acb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c158032-bfe1-11e4-8acb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4c158032-bfe1-11e4-8acb-705681abff85' LIMIT 1 [["organization_id", "4c170830-bfe1-11e4-a9b7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "4c170830-bfe1-11e4-a9b7-705681abff85"], ["id", "4c1803f2-bfe1-11e4-bcde-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c163144-bfe1-11e4-a601-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4c170830-bfe1-11e4-a9b7-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c163144-bfe1-11e4-a601-705681abff85' AND "clubhouse_memberships"."id" != '4c1803f2-bfe1-11e4-bcde-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c170830-bfe1-11e4-a9b7-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:05:09.333352"], ["id", "4c1803f2-bfe1-11e4-bcde-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$gk7KhVUkOS8koaiLN4YYAuqr3NONZu80fpCBV7r0H0OyuPv4bJa0O"], ["created_at", "2015-03-01 07:05:09.342094"], ["updated_at", "2015-03-01 07:05:09.342094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$zqoW/9/wKW2zKdRECO2.2eBdlG29AEnaaWAsHvvirPe08Q8qJYwEC"], ["created_at", "2015-03-01 07:05:09.346326"], ["updated_at", "2015-03-01 07:05:09.346326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.347836"], ["user_id", "4c1c5088-bfe1-11e4-8dbd-705681abff85"], ["created_at", "2015-03-01 07:05:09.348618"], ["updated_at", "2015-03-01 07:05:09.348618"], ["token", "oas3Ehr30yNIf_UD4uObTLv6o4wrvirgZqzTVZyVuS8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.352386"], ["updated_at", "2015-03-01 07:05:09.352386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c1c5088-bfe1-11e4-8dbd-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c1def2e-bfe1-11e4-a61c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c1c5088-bfe1-11e4-8dbd-705681abff85"], ["organization_id", "4c1def2e-bfe1-11e4-a61c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.356233"], ["updated_at", "2015-03-01 07:05:09.356233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c1cf0a6-bfe1-11e4-8453-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c1def2e-bfe1-11e4-a61c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c1cf0a6-bfe1-11e4-8453-705681abff85"], ["organization_id", "4c1def2e-bfe1-11e4-a61c-705681abff85"], ["created_at", "2015-03-01 07:05:09.359364"], ["updated_at", "2015-03-01 07:05:09.359364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/4c1e739a-bfe1-11e4-a262-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"4c1e739a-bfe1-11e4-a262-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.364274' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oas3Ehr30yNIf_UD4uObTLv6o4wrvirgZqzTVZyVuS8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.365685"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.366903"], ["id", "4c1d57f8-bfe1-11e4-ad5a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c1c5088-bfe1-11e4-8dbd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c1c5088-bfe1-11e4-8dbd-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4c1c5088-bfe1-11e4-8dbd-705681abff85' LIMIT 1 [["organization_id", "4c1def2e-bfe1-11e4-a61c-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "4c1def2e-bfe1-11e4-a61c-705681abff85"], ["id", "4c1e739a-bfe1-11e4-a262-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c1c5088-bfe1-11e4-8dbd-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$OCP/xWiuzW0uNBCe2hsSvOFmpMdGHi4KkaBsq0m/p98d4Xyj6AJNS"], ["created_at", "2015-03-01 07:05:09.379649"], ["updated_at", "2015-03-01 07:05:09.379649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$F/LCf2lHfvzsi24eObjMoubITbO7Dew6CvTnHd64n.zgdyqzQNyhe"], ["created_at", "2015-03-01 07:05:09.384573"], ["updated_at", "2015-03-01 07:05:09.384573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.386174"], ["user_id", "4c220d0c-bfe1-11e4-8813-705681abff85"], ["created_at", "2015-03-01 07:05:09.386957"], ["updated_at", "2015-03-01 07:05:09.386957"], ["token", "QUb_B3FUOLre50Z9pFRk1UNffb9s7IflKp8nyDJplhU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.390096"], ["updated_at", "2015-03-01 07:05:09.390096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c220d0c-bfe1-11e4-8813-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c23a0e0-bfe1-11e4-aa2e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c220d0c-bfe1-11e4-8813-705681abff85"], ["organization_id", "4c23a0e0-bfe1-11e4-aa2e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.393309"], ["updated_at", "2015-03-01 07:05:09.393309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c22c904-bfe1-11e4-9be7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c23a0e0-bfe1-11e4-aa2e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c22c904-bfe1-11e4-9be7-705681abff85"], ["organization_id", "4c23a0e0-bfe1-11e4-aa2e-705681abff85"], ["created_at", "2015-03-01 07:05:09.396616"], ["updated_at", "2015-03-01 07:05:09.396616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$kbUb1I1/ldGV/rKclifdWO.oCRnYxJdwiay8Ss7bwHTPL0F9rcm0."], ["created_at", "2015-03-01 07:05:09.409349"], ["updated_at", "2015-03-01 07:05:09.409349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$InAKz3Q8sTO8hWDZfp7ZduD.YI9YB3x.bwRI.ktUBoVn1rY.QsMKG"], ["created_at", "2015-03-01 07:05:09.414385"], ["updated_at", "2015-03-01 07:05:09.414385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.416704"], ["user_id", "4c2691f6-bfe1-11e4-a8ec-705681abff85"], ["created_at", "2015-03-01 07:05:09.417521"], ["updated_at", "2015-03-01 07:05:09.417521"], ["token", "YLOJvoHG5Dtcbr3BG1Z-LKvPd3RN8zdzbjXcF-Y1QQE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.420992"], ["updated_at", "2015-03-01 07:05:09.420992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c2691f6-bfe1-11e4-a8ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c2854d2-bfe1-11e4-b5cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c2691f6-bfe1-11e4-a8ec-705681abff85"], ["organization_id", "4c2854d2-bfe1-11e4-b5cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.424204"], ["updated_at", "2015-03-01 07:05:09.424204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c2766b2-bfe1-11e4-a343-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c2854d2-bfe1-11e4-b5cd-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c2766b2-bfe1-11e4-a343-705681abff85"], ["organization_id", "4c2854d2-bfe1-11e4-b5cd-705681abff85"], ["created_at", "2015-03-01 07:05:09.443966"], ["updated_at", "2015-03-01 07:05:09.443966"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/4c2bf8ee-bfe1-11e4-87f4-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"4c2bf8ee-bfe1-11e4-87f4-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.454318' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YLOJvoHG5Dtcbr3BG1Z-LKvPd3RN8zdzbjXcF-Y1QQE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (2.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.456792"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.458628"], ["id", "4c27da48-bfe1-11e4-a077-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c2691f6-bfe1-11e4-a8ec-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c2691f6-bfe1-11e4-a8ec-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4c2691f6-bfe1-11e4-a8ec-705681abff85' LIMIT 1 [["organization_id", "4c2854d2-bfe1-11e4-b5cd-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "4c2854d2-bfe1-11e4-b5cd-705681abff85"], ["id", "4c2bf8ee-bfe1-11e4-87f4-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c2766b2-bfe1-11e4-a343-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "4c2bf8ee-bfe1-11e4-87f4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 23ms (ActiveRecord: 5.1ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$PtWJ2tw/fcB7.2KY/Ip9c.EXFeAty3LAvBn/cfqmbf3PhhhqtexjK"], ["created_at", "2015-03-01 07:05:09.488594"], ["updated_at", "2015-03-01 07:05:09.488594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$UHnAAAVatIFhi5Iq8n2QO.inmQzmJVjuP3MqpGxQUCe2iPrGBzvdu"], ["created_at", "2015-03-01 07:05:09.495471"], ["updated_at", "2015-03-01 07:05:09.495471"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.499252"], ["user_id", "4c32c1a6-bfe1-11e4-b65f-705681abff85"], ["created_at", "2015-03-01 07:05:09.500984"], ["updated_at", "2015-03-01 07:05:09.500984"], ["token", "ctnMEo1q9ILWgGTj4SwjUAKeooddWnZHj-dan-pVw7E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.508156"], ["updated_at", "2015-03-01 07:05:09.508156"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c32c1a6-bfe1-11e4-b65f-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c35ba82-bfe1-11e4-afcb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c32c1a6-bfe1-11e4-b65f-705681abff85"], ["organization_id", "4c35ba82-bfe1-11e4-afcb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.512996"], ["updated_at", "2015-03-01 07:05:09.512996"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c33dba4-bfe1-11e4-b2e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c35ba82-bfe1-11e4-afcb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c33dba4-bfe1-11e4-b2e6-705681abff85"], ["organization_id", "4c35ba82-bfe1-11e4-afcb-705681abff85"], ["created_at", "2015-03-01 07:05:09.517986"], ["updated_at", "2015-03-01 07:05:09.517986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/4c3662ac-bfe1-11e4-8847-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"4c3662ac-bfe1-11e4-8847-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.523052' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ctnMEo1q9ILWgGTj4SwjUAKeooddWnZHj-dan-pVw7E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.524623"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.525583"], ["id", "4c34b79a-bfe1-11e4-bf07-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c32c1a6-bfe1-11e4-b65f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c32c1a6-bfe1-11e4-b65f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4c32c1a6-bfe1-11e4-b65f-705681abff85' LIMIT 1 [["organization_id", "4c35ba82-bfe1-11e4-afcb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "4c35ba82-bfe1-11e4-afcb-705681abff85"], ["id", "4c3662ac-bfe1-11e4-8847-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c32c1a6-bfe1-11e4-b65f-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$JA0QTGbkD4GoBTvljIGwb.Z34bsgrBSbtMD3Pq7130Mpwd8/O18mC"], ["created_at", "2015-03-01 07:05:09.539193"], ["updated_at", "2015-03-01 07:05:09.539193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$KmiVCqFPNLcvG9Jhypfcw.KF28KSS7l8uR9uTSQJBbh1E18TqX0gu"], ["created_at", "2015-03-01 07:05:09.543905"], ["updated_at", "2015-03-01 07:05:09.543905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.545475"], ["user_id", "4c3a61ae-bfe1-11e4-a1ff-705681abff85"], ["created_at", "2015-03-01 07:05:09.546286"], ["updated_at", "2015-03-01 07:05:09.546286"], ["token", "UyzufTuoX3t2RZ8iBNTZVvalnZrN9WLODb3-QIBEYZw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.549587"], ["updated_at", "2015-03-01 07:05:09.549587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c3a61ae-bfe1-11e4-a1ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c3bf442-bfe1-11e4-a3f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c3a61ae-bfe1-11e4-a1ff-705681abff85"], ["organization_id", "4c3bf442-bfe1-11e4-a3f4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.552887"], ["updated_at", "2015-03-01 07:05:09.552887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c3b1860-bfe1-11e4-93bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c3bf442-bfe1-11e4-a3f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c3b1860-bfe1-11e4-93bd-705681abff85"], ["organization_id", "4c3bf442-bfe1-11e4-a3f4-705681abff85"], ["created_at", "2015-03-01 07:05:09.555982"], ["updated_at", "2015-03-01 07:05:09.555982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$DkHh2XrO/PB.E6f8PSH6EOicf4AU9PnwG7NXg95yVr1k6vB0c0Ugm"], ["created_at", "2015-03-01 07:05:09.568393"], ["updated_at", "2015-03-01 07:05:09.568393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$8UwYL88kope5Bza/XX9ase952ATxEcH.W.1T8FiSFO09RqlBClzEW"], ["created_at", "2015-03-01 07:05:09.573311"], ["updated_at", "2015-03-01 07:05:09.573311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.574973"], ["user_id", "4c3ed5ae-bfe1-11e4-84a1-705681abff85"], ["created_at", "2015-03-01 07:05:09.575772"], ["updated_at", "2015-03-01 07:05:09.575772"], ["token", "rbLmVrCw4z98wsk3phVO_FBoYU9-4FucpE1oLa3-PkI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.578993"], ["updated_at", "2015-03-01 07:05:09.578993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c3ed5ae-bfe1-11e4-84a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c40704e-bfe1-11e4-80e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c3ed5ae-bfe1-11e4-84a1-705681abff85"], ["organization_id", "4c40704e-bfe1-11e4-80e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.582718"], ["updated_at", "2015-03-01 07:05:09.582718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c3f962e-bfe1-11e4-ac0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c40704e-bfe1-11e4-80e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c3f962e-bfe1-11e4-ac0b-705681abff85"], ["organization_id", "4c40704e-bfe1-11e4-80e4-705681abff85"], ["created_at", "2015-03-01 07:05:09.586505"], ["updated_at", "2015-03-01 07:05:09.586505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/4c4196ae-bfe1-11e4-92f1-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"4c4196ae-bfe1-11e4-92f1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.591503' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rbLmVrCw4z98wsk3phVO_FBoYU9-4FucpE1oLa3-PkI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.593265"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.595018"], ["id", "4c3ffb96-bfe1-11e4-9844-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c3ed5ae-bfe1-11e4-84a1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c3ed5ae-bfe1-11e4-84a1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4c3ed5ae-bfe1-11e4-84a1-705681abff85' LIMIT 1 [["organization_id", "4c40704e-bfe1-11e4-80e4-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "4c40704e-bfe1-11e4-80e4-705681abff85"], ["id", "4c4196ae-bfe1-11e4-92f1-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4c40704e-bfe1-11e4-80e4-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c3f962e-bfe1-11e4-ac0b-705681abff85"]] Completed 200 OK in 13ms (Views: 2.2ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$fd6bRAoL3Zcf5eyuyIsw6ezl7oJZvS8kODQVeRWuQh5xDJgiRrvZS"], ["created_at", "2015-03-01 07:05:09.610289"], ["updated_at", "2015-03-01 07:05:09.610289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$GoZQzgSFJihp.TocsSOcJems4amDqfoEsZomFiw0672IL02PopJpO"], ["created_at", "2015-03-01 07:05:09.615220"], ["updated_at", "2015-03-01 07:05:09.615220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.617280"], ["user_id", "4c4539bc-bfe1-11e4-a8d7-705681abff85"], ["created_at", "2015-03-01 07:05:09.618100"], ["updated_at", "2015-03-01 07:05:09.618100"], ["token", "TQqo8O-PeYnCJX5u3DQg6VqHaH94Uh8YJ53iBRSP7Co"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.621513"], ["updated_at", "2015-03-01 07:05:09.621513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c4539bc-bfe1-11e4-a8d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c46ed20-bfe1-11e4-85ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c4539bc-bfe1-11e4-a8d7-705681abff85"], ["organization_id", "4c46ed20-bfe1-11e4-85ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:09.624698"], ["updated_at", "2015-03-01 07:05:09.624698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c46091e-bfe1-11e4-98a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c46ed20-bfe1-11e4-85ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c46091e-bfe1-11e4-98a5-705681abff85"], ["organization_id", "4c46ed20-bfe1-11e4-85ac-705681abff85"], ["created_at", "2015-03-01 07:05:09.627683"], ["updated_at", "2015-03-01 07:05:09.627683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.633190' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TQqo8O-PeYnCJX5u3DQg6VqHaH94Uh8YJ53iBRSP7Co"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.634694"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.635665"], ["id", "4c4676a6-bfe1-11e4-acf2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c4539bc-bfe1-11e4-a8d7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c4539bc-bfe1-11e4-a8d7-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c4539bc-bfe1-11e4-a8d7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "4c4539bc-bfe1-11e4-a8d7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4c46ed20-bfe1-11e4-85ac-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c4539bc-bfe1-11e4-a8d7-705681abff85"]] Completed 200 OK in 11ms (Views: 3.4ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$NFGyptIsIVDLWGNq8qAn.e9WDH58pyVdMkfEJ/HQbT3/tMRapLNkO"], ["created_at", "2015-03-01 07:05:09.650291"], ["updated_at", "2015-03-01 07:05:09.650291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.652093"], ["user_id", "4c4b596e-bfe1-11e4-96e7-705681abff85"], ["created_at", "2015-03-01 07:05:09.652889"], ["updated_at", "2015-03-01 07:05:09.652889"], ["token", "H-h0Nqk_XWT2lWOflb_5FnLp3IxZNRDBdLPKkY6u-B0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.656067"], ["updated_at", "2015-03-01 07:05:09.656067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c4b596e-bfe1-11e4-96e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c4c32c6-bfe1-11e4-95c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c4b596e-bfe1-11e4-96e7-705681abff85"], ["organization_id", "4c4c32c6-bfe1-11e4-95c7-705681abff85"], ["created_at", "2015-03-01 07:05:09.659351"], ["updated_at", "2015-03-01 07:05:09.659351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-6" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-6"} Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-6"]] Completed 200 OK in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$776vdemDMlhVUFqaJ.AIFed6/Q/N5J90maFtmpDQO/AE5dEXoiG0K"], ["created_at", "2015-03-01 07:05:09.679467"], ["updated_at", "2015-03-01 07:05:09.679467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.681361"], ["user_id", "4c4fcbde-bfe1-11e4-a481-705681abff85"], ["created_at", "2015-03-01 07:05:09.682292"], ["updated_at", "2015-03-01 07:05:09.682292"], ["token", "Fjazobk3miHuqIYGFv4kwOZFPAvkINBfk9m9Zpj5UWk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.691502"], ["updated_at", "2015-03-01 07:05:09.691502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c4fcbde-bfe1-11e4-a481-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c519d06-bfe1-11e4-b46e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c4fcbde-bfe1-11e4-a481-705681abff85"], ["organization_id", "4c519d06-bfe1-11e4-b46e-705681abff85"], ["created_at", "2015-03-01 07:05:09.694696"], ["updated_at", "2015-03-01 07:05:09.694696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$R/QuVEkGhH3vXpEULimFLeNp/RhovrDVRMSu69lgGNcadMMFdLFaS"], ["created_at", "2015-03-01 07:05:09.706498"], ["updated_at", "2015-03-01 07:05:09.706498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.708048"], ["user_id", "4c53e80e-bfe1-11e4-bdf1-705681abff85"], ["created_at", "2015-03-01 07:05:09.708894"], ["updated_at", "2015-03-01 07:05:09.708894"], ["token", "MvMmTp0Lj2LwAQzJiz-0OUD9ZO1yGIbBOTg74Op_2rY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.712156"], ["updated_at", "2015-03-01 07:05:09.712156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c53e80e-bfe1-11e4-bdf1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c54c382-bfe1-11e4-b92c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c53e80e-bfe1-11e4-bdf1-705681abff85"], ["organization_id", "4c54c382-bfe1-11e4-b92c-705681abff85"], ["created_at", "2015-03-01 07:05:09.715445"], ["updated_at", "2015-03-01 07:05:09.715445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$Hqtq0mlJrjSccymkMDn.dOIrlbvLHJwBo1CtGO4ja5PV7MNE4siB."], ["created_at", "2015-03-01 07:05:09.728965"], ["updated_at", "2015-03-01 07:05:09.728965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.730861"], ["user_id", "4c5757fa-bfe1-11e4-8cca-705681abff85"], ["created_at", "2015-03-01 07:05:09.731938"], ["updated_at", "2015-03-01 07:05:09.731938"], ["token", "ssznuYf8imwl82lRXnx2f9osZtuu7u6cPr1w84Onr3w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.735576"], ["updated_at", "2015-03-01 07:05:09.735576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c5757fa-bfe1-11e4-8cca-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c585588-bfe1-11e4-9885-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c5757fa-bfe1-11e4-8cca-705681abff85"], ["organization_id", "4c585588-bfe1-11e4-9885-705681abff85"], ["created_at", "2015-03-01 07:05:09.739197"], ["updated_at", "2015-03-01 07:05:09.739197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/4c585588-bfe1-11e4-9885-705681abff85" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"4c585588-bfe1-11e4-9885-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.745083' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ssznuYf8imwl82lRXnx2f9osZtuu7u6cPr1w84Onr3w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.746984"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.747994"], ["id", "4c57d75c-bfe1-11e4-8169-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c5757fa-bfe1-11e4-8cca-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c5757fa-bfe1-11e4-8cca-705681abff85"], ["id", "4c585588-bfe1-11e4-9885-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4c585588-bfe1-11e4-9885-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:05:09.755622"], ["id", "4c585588-bfe1-11e4-9885-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$0IK6710104e0l.PIu7bP5.5NOpkfDaUd51lVb3qqEjnTfZwo8OCOe"], ["created_at", "2015-03-01 07:05:09.763506"], ["updated_at", "2015-03-01 07:05:09.763506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.765060"], ["user_id", "4c5c9b70-bfe1-11e4-bf9a-705681abff85"], ["created_at", "2015-03-01 07:05:09.765801"], ["updated_at", "2015-03-01 07:05:09.765801"], ["token", "oHIxb0oyn6bIfsh3Ap-lymhtjEQmJuutALkWoB627-o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.769367"], ["updated_at", "2015-03-01 07:05:09.769367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c5c9b70-bfe1-11e4-bf9a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c5d7d9c-bfe1-11e4-ae9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c5c9b70-bfe1-11e4-bf9a-705681abff85"], ["organization_id", "4c5d7d9c-bfe1-11e4-ae9e-705681abff85"], ["created_at", "2015-03-01 07:05:09.772579"], ["updated_at", "2015-03-01 07:05:09.772579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/4c5d7d9c-bfe1-11e4-ae9e-705681abff85" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"4c5d7d9c-bfe1-11e4-ae9e-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.777125' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oHIxb0oyn6bIfsh3Ap-lymhtjEQmJuutALkWoB627-o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.778519"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.779632"], ["id", "4c5d0146-bfe1-11e4-9c7a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c5c9b70-bfe1-11e4-bf9a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c5c9b70-bfe1-11e4-bf9a-705681abff85"], ["id", "4c5d7d9c-bfe1-11e4-ae9e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4c5d7d9c-bfe1-11e4-ae9e-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$xckuu6lhbSo2OF/lOGj31ua.Ah/3lo9DSYp5ChxFM3yDQUyoB048e"], ["created_at", "2015-03-01 07:05:09.792497"], ["updated_at", "2015-03-01 07:05:09.792497"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.794202"], ["user_id", "4c61071e-bfe1-11e4-a5d6-705681abff85"], ["created_at", "2015-03-01 07:05:09.795126"], ["updated_at", "2015-03-01 07:05:09.795126"], ["token", "pUJifHgzrTinV65Ionh075zTEmt-PVvnz2gy0Q8k8pk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.798522"], ["updated_at", "2015-03-01 07:05:09.798522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c61071e-bfe1-11e4-a5d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c61f336-bfe1-11e4-b6a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c61071e-bfe1-11e4-a5d6-705681abff85"], ["organization_id", "4c61f336-bfe1-11e4-b6a4-705681abff85"], ["created_at", "2015-03-01 07:05:09.802071"], ["updated_at", "2015-03-01 07:05:09.802071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$DDPZ4VjP5trciymAHqNUzeQkQPmLjldgae6Ms9bXsLjsqzyWsZW4m"], ["created_at", "2015-03-01 07:05:09.813923"], ["updated_at", "2015-03-01 07:05:09.813923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.815613"], ["user_id", "4c6450ea-bfe1-11e4-8600-705681abff85"], ["created_at", "2015-03-01 07:05:09.816370"], ["updated_at", "2015-03-01 07:05:09.816370"], ["token", "A2ozubT6_yO9OZK9ADgtOYNiuwm2N8PIgRTtIKUae00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.819686"], ["updated_at", "2015-03-01 07:05:09.819686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c6450ea-bfe1-11e4-8600-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c653014-bfe1-11e4-80a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c6450ea-bfe1-11e4-8600-705681abff85"], ["organization_id", "4c653014-bfe1-11e4-80a0-705681abff85"], ["created_at", "2015-03-01 07:05:09.823005"], ["updated_at", "2015-03-01 07:05:09.823005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.827500' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A2ozubT6_yO9OZK9ADgtOYNiuwm2N8PIgRTtIKUae00"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.828894"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.829870"], ["id", "4c64b12a-bfe1-11e4-a52c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c6450ea-bfe1-11e4-8600-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.843915"], ["updated_at", "2015-03-01 07:05:09.843915"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4c68e98e-bfe1-11e4-af47-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c6450ea-bfe1-11e4-8600-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c68e98e-bfe1-11e4-af47-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c6450ea-bfe1-11e4-8600-705681abff85"], ["admin", "t"], ["organization_id", "4c68e98e-bfe1-11e4-af47-705681abff85"], ["created_at", "2015-03-01 07:05:09.848768"], ["updated_at", "2015-03-01 07:05:09.848768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 24ms (Views: 0.6ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (12.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$t3HZYDk043gzEGsIqjPjgOS.UmzWZ6yeZ4SXTQCFXOTTdSrm1zrci"], ["created_at", "2015-03-01 07:05:09.857025"], ["updated_at", "2015-03-01 07:05:09.857025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.871516"], ["user_id", "4c6adeb0-bfe1-11e4-b3df-705681abff85"], ["created_at", "2015-03-01 07:05:09.872333"], ["updated_at", "2015-03-01 07:05:09.872333"], ["token", "8v1uHmTCnBbfq3Nh-w0og808PNoL-LPyAbWPy5Lk8DY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.875847"], ["updated_at", "2015-03-01 07:05:09.875847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c6adeb0-bfe1-11e4-b3df-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c6dbd4c-bfe1-11e4-a3f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c6adeb0-bfe1-11e4-b3df-705681abff85"], ["organization_id", "4c6dbd4c-bfe1-11e4-a3f2-705681abff85"], ["created_at", "2015-03-01 07:05:09.879954"], ["updated_at", "2015-03-01 07:05:09.879954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.885572' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8v1uHmTCnBbfq3Nh-w0og808PNoL-LPyAbWPy5Lk8DY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.887166"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.888363"], ["id", "4c6d3f16-bfe1-11e4-a1b1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c6adeb0-bfe1-11e4-b3df-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$yFUlmruCbpWpE6CUHXfdY.q/BBgcSsEn8ZhGLy.1JKSzlVKWKJP7i"], ["created_at", "2015-03-01 07:05:09.904519"], ["updated_at", "2015-03-01 07:05:09.904519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.906508"], ["user_id", "4c7228f0-bfe1-11e4-abc3-705681abff85"], ["created_at", "2015-03-01 07:05:09.907269"], ["updated_at", "2015-03-01 07:05:09.907269"], ["token", "FiLd9HrFvu7G9fDi3QUKcJTEAk_taXUA7M128haf1Us"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.910669"], ["updated_at", "2015-03-01 07:05:09.910669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c7228f0-bfe1-11e4-abc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c730d10-bfe1-11e4-9271-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c7228f0-bfe1-11e4-abc3-705681abff85"], ["organization_id", "4c730d10-bfe1-11e4-9271-705681abff85"], ["created_at", "2015-03-01 07:05:09.913832"], ["updated_at", "2015-03-01 07:05:09.913832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$z..n4rzc546VrEn9KeY2gu3W1SMuhXq6Fwyqw6JSwz9cI5qERIbwW"], ["created_at", "2015-03-01 07:05:09.929851"], ["updated_at", "2015-03-01 07:05:09.929851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.932234"], ["user_id", "4c7619d8-bfe1-11e4-8ad3-705681abff85"], ["created_at", "2015-03-01 07:05:09.933152"], ["updated_at", "2015-03-01 07:05:09.933152"], ["token", "15IdaKmIdaqApojiklnCbkZwNOEqZKLycO1li83Vq2c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.937619"], ["updated_at", "2015-03-01 07:05:09.937619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c7619d8-bfe1-11e4-8ad3-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c7733e0-bfe1-11e4-b886-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c7619d8-bfe1-11e4-8ad3-705681abff85"], ["organization_id", "4c7733e0-bfe1-11e4-b886-705681abff85"], ["created_at", "2015-03-01 07:05:09.941900"], ["updated_at", "2015-03-01 07:05:09.941900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/4c7733e0-bfe1-11e4-b886-705681abff85" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"4c7733e0-bfe1-11e4-b886-705681abff85", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:09.947474' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "15IdaKmIdaqApojiklnCbkZwNOEqZKLycO1li83Vq2c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:09.950376"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:09.951693"], ["id", "4c76a498-bfe1-11e4-8673-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c7619d8-bfe1-11e4-8ad3-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c7619d8-bfe1-11e4-8ad3-705681abff85"], ["id", "4c7733e0-bfe1-11e4-b886-705681abff85"]] Completed 200 OK in 10ms (Views: 1.4ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$15gy6dO781zvWabj6PuSC.toqGkgyrBk83ZZZPG7L8nJEn8xHiGL."], ["created_at", "2015-03-01 07:05:09.965409"], ["updated_at", "2015-03-01 07:05:09.965409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.968159"], ["user_id", "4c7b768a-bfe1-11e4-9b92-705681abff85"], ["created_at", "2015-03-01 07:05:09.969136"], ["updated_at", "2015-03-01 07:05:09.969136"], ["token", "Y81_sRG78fuLmp5155W4KyyjG1NUxmdH2JVvBxCyDBc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.973206"], ["updated_at", "2015-03-01 07:05:09.973206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c7b768a-bfe1-11e4-9b92-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c7cc5e4-bfe1-11e4-a808-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c7b768a-bfe1-11e4-9b92-705681abff85"], ["organization_id", "4c7cc5e4-bfe1-11e4-a808-705681abff85"], ["created_at", "2015-03-01 07:05:09.978121"], ["updated_at", "2015-03-01 07:05:09.978121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 23:05:09 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$FFM2TNWXoqxVUivhDxklj.TqmoBK.t7SGZP4vjlhPNXOGYqFfS/2q"], ["created_at", "2015-03-01 07:05:09.991108"], ["updated_at", "2015-03-01 07:05:09.991108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:09.992772"], ["user_id", "4c7f5854-bfe1-11e4-b04a-705681abff85"], ["created_at", "2015-03-01 07:05:09.993560"], ["updated_at", "2015-03-01 07:05:09.993560"], ["token", "_AFf5k4eGMtX5o8q0b-GEef47z9YVCVS4Ue5JSb_N_Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (4.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:09.997171"], ["updated_at", "2015-03-01 07:05:09.997171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c7f5854-bfe1-11e4-b04a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c80425a-bfe1-11e4-a5d4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c7f5854-bfe1-11e4-b04a-705681abff85"], ["organization_id", "4c80425a-bfe1-11e4-a5d4-705681abff85"], ["created_at", "2015-03-01 07:05:10.005301"], ["updated_at", "2015-03-01 07:05:10.005301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-17" for 127.0.0.1 at 2015-02-28 23:05:10 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-17", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:10.010263' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_AFf5k4eGMtX5o8q0b-GEef47z9YVCVS4Ue5JSb_N_Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:10.011806"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:10.012754"], ["id", "4c7fbb96-bfe1-11e4-ac77-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c7f5854-bfe1-11e4-b04a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c7f5854-bfe1-11e4-b04a-705681abff85"], ["name", "org-17"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4c80425a-bfe1-11e4-a5d4-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:05:10.020127"], ["id", "4c80425a-bfe1-11e4-a5d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$t3ybB77INu8gogXHV2TRfeJBqkFarJ1U2l0jTLGXBYs7xHzQYaVhu"], ["created_at", "2015-03-01 07:05:10.028114"], ["updated_at", "2015-03-01 07:05:10.028114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:10.029655"], ["user_id", "4c84faa2-bfe1-11e4-b198-705681abff85"], ["created_at", "2015-03-01 07:05:10.030479"], ["updated_at", "2015-03-01 07:05:10.030479"], ["token", "YSKtMCf83pvAaScYImuEjuVvbMoAOpD3OLc8RWZP-M4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.033893"], ["updated_at", "2015-03-01 07:05:10.033893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c84faa2-bfe1-11e4-b198-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c85e0ac-bfe1-11e4-9f10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c84faa2-bfe1-11e4-b198-705681abff85"], ["organization_id", "4c85e0ac-bfe1-11e4-9f10-705681abff85"], ["created_at", "2015-03-01 07:05:10.038084"], ["updated_at", "2015-03-01 07:05:10.038084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-18" for 127.0.0.1 at 2015-02-28 23:05:10 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-18", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:10.042829' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YSKtMCf83pvAaScYImuEjuVvbMoAOpD3OLc8RWZP-M4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:10.044357"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:10.045433"], ["id", "4c855e16-bfe1-11e4-9b51-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c84faa2-bfe1-11e4-b198-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c84faa2-bfe1-11e4-b198-705681abff85"], ["name", "org-18"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4c85e0ac-bfe1-11e4-9f10-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$639/sQeCMWLz4ijq0lKsD.tqLypxErAkFSkSoXB4Ndz.3WCimEdmy"], ["created_at", "2015-03-01 07:05:10.058568"], ["updated_at", "2015-03-01 07:05:10.058568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:10.060522"], ["user_id", "4c89aa48-bfe1-11e4-aa9f-705681abff85"], ["created_at", "2015-03-01 07:05:10.061336"], ["updated_at", "2015-03-01 07:05:10.061336"], ["token", "WoILdPmuJUdOuxN_DO2j32UUKxeyweGgzX0HleEDiBw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.064831"], ["updated_at", "2015-03-01 07:05:10.064831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c89aa48-bfe1-11e4-aa9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c8a9494-bfe1-11e4-bd04-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c89aa48-bfe1-11e4-aa9f-705681abff85"], ["organization_id", "4c8a9494-bfe1-11e4-bd04-705681abff85"], ["created_at", "2015-03-01 07:05:10.068577"], ["updated_at", "2015-03-01 07:05:10.068577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 23:05:10 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$qRJ9TC2Bgz7KCPfAu0j7bO418l.4qWDeONF.RKXgkrhBwkwB2N3iW"], ["created_at", "2015-03-01 07:05:10.083010"], ["updated_at", "2015-03-01 07:05:10.083010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:10.084958"], ["user_id", "4c8d602a-bfe1-11e4-9f9b-705681abff85"], ["created_at", "2015-03-01 07:05:10.085746"], ["updated_at", "2015-03-01 07:05:10.085746"], ["token", "Y8T7JMRyQ6TCwp4mPOqsDcxk3wYl7YPm5ZxEa2IDIqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.089707"], ["updated_at", "2015-03-01 07:05:10.089707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c8d602a-bfe1-11e4-9f9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c8e61dc-bfe1-11e4-a902-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c8d602a-bfe1-11e4-9f9b-705681abff85"], ["organization_id", "4c8e61dc-bfe1-11e4-a902-705681abff85"], ["created_at", "2015-03-01 07:05:10.093265"], ["updated_at", "2015-03-01 07:05:10.093265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-20" for 127.0.0.1 at 2015-02-28 23:05:10 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:10.097872' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y8T7JMRyQ6TCwp4mPOqsDcxk3wYl7YPm5ZxEa2IDIqg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:10.099657"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:10.100672"], ["id", "4c8dd62c-bfe1-11e4-a91c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c8d602a-bfe1-11e4-9f9b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c8d602a-bfe1-11e4-9f9b-705681abff85"], ["name", "org-20"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "4c8e61dc-bfe1-11e4-a902-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$DxX8AwDmYE1YADek5pIWsOZ9AOGPPXwEZ.zO8TrPNV.IUXDSf3C6S"], ["created_at", "2015-03-01 07:05:10.113843"], ["updated_at", "2015-03-01 07:05:10.113843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:10.115755"], ["user_id", "4c9215d4-bfe1-11e4-b84a-705681abff85"], ["created_at", "2015-03-01 07:05:10.116592"], ["updated_at", "2015-03-01 07:05:10.116592"], ["token", "jHjKFYfPrGxV2VoRYKhOLHY2NsewV-ymGJ59HAsvfNk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.120337"], ["updated_at", "2015-03-01 07:05:10.120337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c9215d4-bfe1-11e4-b84a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c930c78-bfe1-11e4-a1ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c9215d4-bfe1-11e4-b84a-705681abff85"], ["organization_id", "4c930c78-bfe1-11e4-a1ac-705681abff85"], ["created_at", "2015-03-01 07:05:10.123721"], ["updated_at", "2015-03-01 07:05:10.123721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 23:05:10 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$/oXDoHyJ5D49LVAWlG2ADeYJ/1W2gTMpba3KFeqkoEoFPec2Ev3MC"], ["created_at", "2015-03-01 07:05:10.135940"], ["updated_at", "2015-03-01 07:05:10.135940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:10.137915"], ["user_id", "4c95721a-bfe1-11e4-b0a1-705681abff85"], ["created_at", "2015-03-01 07:05:10.139118"], ["updated_at", "2015-03-01 07:05:10.139118"], ["token", "ODeZX5tAQsMBD9OOBP-FeDCpYFLpomheukh6b4W9yOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.142823"], ["updated_at", "2015-03-01 07:05:10.142823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c95721a-bfe1-11e4-b0a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c967bce-bfe1-11e4-a2d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c95721a-bfe1-11e4-b0a1-705681abff85"], ["organization_id", "4c967bce-bfe1-11e4-a2d3-705681abff85"], ["created_at", "2015-03-01 07:05:10.146067"], ["updated_at", "2015-03-01 07:05:10.146067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-22" for 127.0.0.1 at 2015-02-28 23:05:10 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-22", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:10.150968' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ODeZX5tAQsMBD9OOBP-FeDCpYFLpomheukh6b4W9yOo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:10.152649"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:10.153701"], ["id", "4c95f78a-bfe1-11e4-be98-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c95721a-bfe1-11e4-b0a1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4c95721a-bfe1-11e4-b0a1-705681abff85"], ["name", "org-22"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$6ghmFvTxsD7r90deDoqiPuwLPpp3QhmxR5njEGBxey8APCIySSPsG"], ["created_at", "2015-03-01 07:05:10.163993"], ["updated_at", "2015-03-01 07:05:10.163993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:10.165590"], ["user_id", "4c99b74e-bfe1-11e4-9daa-705681abff85"], ["created_at", "2015-03-01 07:05:10.166744"], ["updated_at", "2015-03-01 07:05:10.166744"], ["token", "sfCGw0nTnaA6mzpXy04QbJQPlCbgXYVa54UEaWH6OMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.170619"], ["updated_at", "2015-03-01 07:05:10.170619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c99b74e-bfe1-11e4-9daa-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c9ab7b6-bfe1-11e4-be42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c99b74e-bfe1-11e4-9daa-705681abff85"], ["organization_id", "4c9ab7b6-bfe1-11e4-be42-705681abff85"], ["created_at", "2015-03-01 07:05:10.174361"], ["updated_at", "2015-03-01 07:05:10.174361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$aIWT1J4dPWqPBW9Lg5WiGONwV20ryR0BxqCN2VirblBYvvQQfMTmi"], ["created_at", "2015-03-01 07:05:10.178918"], ["updated_at", "2015-03-01 07:05:10.178918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.182566"], ["updated_at", "2015-03-01 07:05:10.182566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c9bff4a-bfe1-11e4-b741-705681abff85' AND "clubhouse_memberships"."organization_id" = '4c9c8e38-bfe1-11e4-929a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c9bff4a-bfe1-11e4-b741-705681abff85"], ["organization_id", "4c9c8e38-bfe1-11e4-929a-705681abff85"], ["created_at", "2015-03-01 07:05:10.188173"], ["updated_at", "2015-03-01 07:05:10.188173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:05:10 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$7zznK0OY.oxUWMOrLxR91OVJ5rbyarHxMpa6Kw3yqNKCulXvH4Gmi"], ["created_at", "2015-03-01 07:05:10.200358"], ["updated_at", "2015-03-01 07:05:10.200358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:10.202014"], ["user_id", "4c9f45ec-bfe1-11e4-a937-705681abff85"], ["created_at", "2015-03-01 07:05:10.202779"], ["updated_at", "2015-03-01 07:05:10.202779"], ["token", "03rAkqNOuw4_nPzNPqRxSqe4UQVBgBrUDwtC5-_plQU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.206160"], ["updated_at", "2015-03-01 07:05:10.206160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c9f45ec-bfe1-11e4-a937-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ca02890-bfe1-11e4-a4bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c9f45ec-bfe1-11e4-a937-705681abff85"], ["organization_id", "4ca02890-bfe1-11e4-a4bb-705681abff85"], ["created_at", "2015-03-01 07:05:10.209833"], ["updated_at", "2015-03-01 07:05:10.209833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$nLbX2aPnIcxpWi/e6sizfel5z7K0ONTdnIbos3G1Cq8DXom1M8lBC"], ["created_at", "2015-03-01 07:05:10.214305"], ["updated_at", "2015-03-01 07:05:10.214305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.217562"], ["updated_at", "2015-03-01 07:05:10.217562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ca16476-bfe1-11e4-b0eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ca1e478-bfe1-11e4-9040-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ca16476-bfe1-11e4-b0eb-705681abff85"], ["organization_id", "4ca1e478-bfe1-11e4-9040-705681abff85"], ["created_at", "2015-03-01 07:05:10.220986"], ["updated_at", "2015-03-01 07:05:10.220986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:05:10 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:10.226103' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "03rAkqNOuw4_nPzNPqRxSqe4UQVBgBrUDwtC5-_plQU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:10.227543"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:10.228529"], ["id", "4c9fa64a-bfe1-11e4-8abe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c9f45ec-bfe1-11e4-a937-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "4c9f45ec-bfe1-11e4-a937-705681abff85"]] Completed 200 OK in 9ms (Views: 2.7ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$sAzQTE.bvax6KcJOu7lKpewi2/XxPbvkVB14Ir.b/LRLBoT7N1SSO"], ["created_at", "2015-03-01 07:05:10.241516"], ["updated_at", "2015-03-01 07:05:10.241516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:10.243300"], ["user_id", "4ca58d12-bfe1-11e4-b259-705681abff85"], ["created_at", "2015-03-01 07:05:10.244080"], ["updated_at", "2015-03-01 07:05:10.244080"], ["token", "cimuzw1DA-r8NOxSzK57XI9PTcMCwtY_XLkp4sTfZqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.247444"], ["updated_at", "2015-03-01 07:05:10.247444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ca58d12-bfe1-11e4-b259-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ca6710a-bfe1-11e4-aae2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ca58d12-bfe1-11e4-b259-705681abff85"], ["organization_id", "4ca6710a-bfe1-11e4-aae2-705681abff85"], ["created_at", "2015-03-01 07:05:10.251006"], ["updated_at", "2015-03-01 07:05:10.251006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 23:05:10 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$KWKrC9BVmvLvd/td2HJpHurokyrvqL8YRXqAaDjlwiG.fJ.s8aXTW"], ["created_at", "2015-03-01 07:05:10.264462"], ["updated_at", "2015-03-01 07:05:10.264462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:10.267236"], ["user_id", "4ca929f4-bfe1-11e4-96e2-705681abff85"], ["created_at", "2015-03-01 07:05:10.268046"], ["updated_at", "2015-03-01 07:05:10.268046"], ["token", "WQ622h8uMRi-uNrYWkZrSJv8agSKZFRJiJ9EVgBLla8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.271507"], ["updated_at", "2015-03-01 07:05:10.271507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ca929f4-bfe1-11e4-96e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '4caa2872-bfe1-11e4-95b3-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ca929f4-bfe1-11e4-96e2-705681abff85"], ["organization_id", "4caa2872-bfe1-11e4-95b3-705681abff85"], ["created_at", "2015-03-01 07:05:10.275405"], ["updated_at", "2015-03-01 07:05:10.275405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/4caa2872-bfe1-11e4-95b3-705681abff85" for 127.0.0.1 at 2015-02-28 23:05:10 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"4caa2872-bfe1-11e4-95b3-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:10.284087' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WQ622h8uMRi-uNrYWkZrSJv8agSKZFRJiJ9EVgBLla8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:10.285956"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:10.287073"], ["id", "4ca9a06e-bfe1-11e4-9a25-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4ca929f4-bfe1-11e4-96e2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4ca929f4-bfe1-11e4-96e2-705681abff85"], ["id", "4caa2872-bfe1-11e4-95b3-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "4caa2872-bfe1-11e4-95b3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.305351"], ["updated_at", "2015-03-01 07:05:10.305351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.309528"], ["updated_at", "2015-03-01 07:05:10.309528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.331899"], ["updated_at", "2015-03-01 07:05:10.331899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4cb359f6-bfe1-11e4-ba30-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.337621"], ["updated_at", "2015-03-01 07:05:10.337621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.5ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.345917"], ["updated_at", "2015-03-01 07:05:10.345917"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '4cb57830-bfe1-11e4-956f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "4cb57830-bfe1-11e4-956f-705681abff85"], ["created_at", "2015-03-01 07:05:10.349476"], ["updated_at", "2015-03-01 07:05:10.349476"], ["token", "HzY6GAXgoxRK_r2VRvM4eXzu-5u1w2w4raI5iX1qNTc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.8ms) Date: Sat, 28 Feb 2015 23:05:10 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ba26563db_134a03fd759063be43303b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/HzY6GAXgoxRK_r2VRvM4eXzu-5u1w2w4raI5iX1qNTc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.358117"], ["updated_at", "2015-03-01 07:05:10.358117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '4cb75be6-bfe1-11e4-a4f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "4cb75be6-bfe1-11e4-a4f3-705681abff85"], ["created_at", "2015-03-01 07:05:10.361911"], ["updated_at", "2015-03-01 07:05:10.361911"], ["token", "c40w_24-VCSYOy8GFm22ZMXQKFrD4NiUQ0dG9DHZTdg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.8ms Sent mail to john@example.com (2.0ms) Date: Sat, 28 Feb 2015 23:05:10 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ba26597f5_134a03fd759063be43319e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/c40w_24-VCSYOy8GFm22ZMXQKFrD4NiUQ0dG9DHZTdg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.372030"], ["updated_at", "2015-03-01 07:05:10.372030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '4cb9748a-bfe1-11e4-a2cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "4cb9748a-bfe1-11e4-a2cf-705681abff85"], ["created_at", "2015-03-01 07:05:10.376916"], ["updated_at", "2015-03-01 07:05:10.376916"], ["token", "h3A4i3Wm4OVSccuyPxND3ja6Blzu0ErmGAJePqejlQM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 23:05:10 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ba265cef5_134a03fd759063be43325f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/h3A4i3Wm4OVSccuyPxND3ja6Blzu0ErmGAJePqejlQM If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:10.387743"], ["updated_at", "2015-03-01 07:05:10.387743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '4cbbec06-bfe1-11e4-ad0c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "4cbbec06-bfe1-11e4-ad0c-705681abff85"], ["created_at", "2015-03-01 07:05:10.391877"], ["updated_at", "2015-03-01 07:05:10.391877"], ["token", "u57RoO6fHAwzP5Xg-KsxDAy5d6VjxivX1YrUCX9I3Xg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 23:05:10 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ba266094b_134a03fd759063be4333ea@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/u57RoO6fHAwzP5Xg-KsxDAy5d6VjxivX1YrUCX9I3Xg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.488289"], ["updated_at", "2015-03-01 07:05:41.488289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (1.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.519070"], ["updated_at", "2015-03-01 07:05:41.519070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.544969"], ["updated_at", "2015-03-01 07:05:41.544969"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5f4e3b80-bfe1-11e4-adba-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.558927"], ["updated_at", "2015-03-01 07:05:41.558927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$pLXNHBTlamDB4.Xd8MYeCuY6p0OyLjpbQUzmfmpOYfEQVTEuphYSm"], ["created_at", "2015-03-01 07:05:41.586959"], ["updated_at", "2015-03-01 07:05:41.586959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$2wvK2VWrOb5ZfIRjJK5Ja.w7cBRjjh8EGaJZLRUaW3jSCVTfKNiRS"], ["created_at", "2015-03-01 07:05:41.594802"], ["updated_at", "2015-03-01 07:05:41.594802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:41.604762"], ["user_id", "5f549dc2-bfe1-11e4-ae6b-705681abff85"], ["created_at", "2015-03-01 07:05:41.613894"], ["updated_at", "2015-03-01 07:05:41.613894"], ["token", "SYZiUe0TAbxeUYZzzKtigOHKyKj_omZurtZEWzmiewc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.618747"], ["updated_at", "2015-03-01 07:05:41.618747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f549dc2-bfe1-11e4-ae6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f59560a-bfe1-11e4-8b5a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f549dc2-bfe1-11e4-ae6b-705681abff85"], ["organization_id", "5f59560a-bfe1-11e4-8b5a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:41.630223"], ["updated_at", "2015-03-01 07:05:41.630223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f55b7fc-bfe1-11e4-868d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f59560a-bfe1-11e4-8b5a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f55b7fc-bfe1-11e4-868d-705681abff85"], ["organization_id", "5f59560a-bfe1-11e4-8b5a-705681abff85"], ["created_at", "2015-03-01 07:05:41.634149"], ["updated_at", "2015-03-01 07:05:41.634149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 23:05:41 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$FCuVRgB1trRPnuhCIE2atOBurtJ1QqkpdwqFHeLOK5LcRCpWGMIsq"], ["created_at", "2015-03-01 07:05:41.669006"], ["updated_at", "2015-03-01 07:05:41.669006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$4Hi8f1srO3/lBxTLTsumgun.radRZrqWWWzXLibx/4pMLREdGRcj."], ["created_at", "2015-03-01 07:05:41.673779"], ["updated_at", "2015-03-01 07:05:41.673779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:41.675322"], ["user_id", "5f6101ac-bfe1-11e4-a111-705681abff85"], ["created_at", "2015-03-01 07:05:41.676247"], ["updated_at", "2015-03-01 07:05:41.676247"], ["token", "m96CBBiISAxQzMaCGwVa9AMTnHPERU_bvCXM_Yl1Xk8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.680478"], ["updated_at", "2015-03-01 07:05:41.680478"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f6101ac-bfe1-11e4-a111-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f62bff6-bfe1-11e4-9ac3-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f6101ac-bfe1-11e4-a111-705681abff85"], ["organization_id", "5f62bff6-bfe1-11e4-9ac3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:41.684523"], ["updated_at", "2015-03-01 07:05:41.684523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f61b994-bfe1-11e4-b2bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f62bff6-bfe1-11e4-9ac3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f61b994-bfe1-11e4-b2bc-705681abff85"], ["organization_id", "5f62bff6-bfe1-11e4-9ac3-705681abff85"], ["created_at", "2015-03-01 07:05:41.688415"], ["updated_at", "2015-03-01 07:05:41.688415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/5f63fc22-bfe1-11e4-ba2a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:41 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"5f63fc22-bfe1-11e4-ba2a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:41.694321' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "m96CBBiISAxQzMaCGwVa9AMTnHPERU_bvCXM_Yl1Xk8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:41.696417"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:41.697673"], ["id", "5f622816-bfe1-11e4-811a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f6101ac-bfe1-11e4-a111-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5f6101ac-bfe1-11e4-a111-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5f6101ac-bfe1-11e4-a111-705681abff85' LIMIT 1 [["organization_id", "5f62bff6-bfe1-11e4-9ac3-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "5f62bff6-bfe1-11e4-9ac3-705681abff85"], ["id", "5f63fc22-bfe1-11e4-ba2a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f62bff6-bfe1-11e4-9ac3-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f61b994-bfe1-11e4-b2bc-705681abff85"]] Completed 200 OK in 38ms (Views: 7.7ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$XWGM.5DT8N8Tr3n7Mpp55uLm9k25jmwu/I8vUnz9tMaZEoJQ4Ntca"], ["created_at", "2015-03-01 07:05:41.741263"], ["updated_at", "2015-03-01 07:05:41.741263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$L0F9WFrMPqKLIpMCMLCHkOG238YpucA.vzr5lsPOA40Au3zQWxuF6"], ["created_at", "2015-03-01 07:05:41.747202"], ["updated_at", "2015-03-01 07:05:41.747202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:41.749120"], ["user_id", "5f6c1a2e-bfe1-11e4-9453-705681abff85"], ["created_at", "2015-03-01 07:05:41.749949"], ["updated_at", "2015-03-01 07:05:41.749949"], ["token", "A5gRbwYs8Gi4TVZp3bi7rCA0BWDbs3GFFpok_Y7jlcg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.754022"], ["updated_at", "2015-03-01 07:05:41.754022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f6c1a2e-bfe1-11e4-9453-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f6e01e0-bfe1-11e4-9267-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f6c1a2e-bfe1-11e4-9453-705681abff85"], ["organization_id", "5f6e01e0-bfe1-11e4-9267-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:41.757859"], ["updated_at", "2015-03-01 07:05:41.757859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f6cf7aa-bfe1-11e4-b616-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f6e01e0-bfe1-11e4-9267-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f6cf7aa-bfe1-11e4-b616-705681abff85"], ["organization_id", "5f6e01e0-bfe1-11e4-9267-705681abff85"], ["created_at", "2015-03-01 07:05:41.761091"], ["updated_at", "2015-03-01 07:05:41.761091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:05:41 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$3WWRCKP4fus4K8FWW9zy5OSzSjeVb5AJHQS.gA7C6SgiywEjDKrp."], ["created_at", "2015-03-01 07:05:41.775066"], ["updated_at", "2015-03-01 07:05:41.775066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$WIqTljWfuJoOSP/jJB3FJOh5t5.sFh3VXynjpIEHx7RpJxvdrvPUK"], ["created_at", "2015-03-01 07:05:41.779407"], ["updated_at", "2015-03-01 07:05:41.779407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:41.781470"], ["user_id", "5f712fdc-bfe1-11e4-9ff0-705681abff85"], ["created_at", "2015-03-01 07:05:41.782333"], ["updated_at", "2015-03-01 07:05:41.782333"], ["token", "7M9gfyW125ibVOqRXV6C6xavCVikMi1wiqM8RnQHn7M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.785874"], ["updated_at", "2015-03-01 07:05:41.785874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f712fdc-bfe1-11e4-9ff0-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f72eebc-bfe1-11e4-962b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f712fdc-bfe1-11e4-9ff0-705681abff85"], ["organization_id", "5f72eebc-bfe1-11e4-962b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:41.790087"], ["updated_at", "2015-03-01 07:05:41.790087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f71de0a-bfe1-11e4-bea3-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f72eebc-bfe1-11e4-962b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f71de0a-bfe1-11e4-bea3-705681abff85"], ["organization_id", "5f72eebc-bfe1-11e4-962b-705681abff85"], ["created_at", "2015-03-01 07:05:41.793374"], ["updated_at", "2015-03-01 07:05:41.793374"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/5f73f8fc-bfe1-11e4-a8d5-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:41 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"5f73f8fc-bfe1-11e4-a8d5-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:41.798316' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7M9gfyW125ibVOqRXV6C6xavCVikMi1wiqM8RnQHn7M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:41.799736"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:41.800678"], ["id", "5f72572c-bfe1-11e4-a73a-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f712fdc-bfe1-11e4-9ff0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5f712fdc-bfe1-11e4-9ff0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5f712fdc-bfe1-11e4-9ff0-705681abff85' LIMIT 1 [["organization_id", "5f72eebc-bfe1-11e4-962b-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "5f72eebc-bfe1-11e4-962b-705681abff85"], ["id", "5f73f8fc-bfe1-11e4-a8d5-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f71de0a-bfe1-11e4-bea3-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f72eebc-bfe1-11e4-962b-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f71de0a-bfe1-11e4-bea3-705681abff85' AND "clubhouse_memberships"."id" != '5f73f8fc-bfe1-11e4-a8d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f72eebc-bfe1-11e4-962b-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:05:41.812989"], ["id", "5f73f8fc-bfe1-11e4-a8d5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.3ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$sccZpShoyR7JK/.XLGovCOHwQ.3b/9uQk4xYUhubr5dqrfSfDRfMy"], ["created_at", "2015-03-01 07:05:41.822505"], ["updated_at", "2015-03-01 07:05:41.822505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$eRWCdkeW3xLIwbAdp73YK.hOA8CE/huk5uS/GEZPFr8ujHpfx0q9i"], ["created_at", "2015-03-01 07:05:41.826790"], ["updated_at", "2015-03-01 07:05:41.826790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:41.828340"], ["user_id", "5f786e28-bfe1-11e4-ab95-705681abff85"], ["created_at", "2015-03-01 07:05:41.829392"], ["updated_at", "2015-03-01 07:05:41.829392"], ["token", "q6fuScJHYH5hQJNLLZeR__3Y6ZfBBxcRN5GjhAfzlnA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.833967"], ["updated_at", "2015-03-01 07:05:41.833967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f786e28-bfe1-11e4-ab95-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f7a2be6-bfe1-11e4-9f3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f786e28-bfe1-11e4-ab95-705681abff85"], ["organization_id", "5f7a2be6-bfe1-11e4-9f3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:41.837336"], ["updated_at", "2015-03-01 07:05:41.837336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f7910ee-bfe1-11e4-8d46-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f7a2be6-bfe1-11e4-9f3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f7910ee-bfe1-11e4-8d46-705681abff85"], ["organization_id", "5f7a2be6-bfe1-11e4-9f3e-705681abff85"], ["created_at", "2015-03-01 07:05:41.840388"], ["updated_at", "2015-03-01 07:05:41.840388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/5f7aada0-bfe1-11e4-917e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:41 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"5f7aada0-bfe1-11e4-917e-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:41.846003' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q6fuScJHYH5hQJNLLZeR__3Y6ZfBBxcRN5GjhAfzlnA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:41.847563"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:41.848557"], ["id", "5f79875e-bfe1-11e4-ad95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f786e28-bfe1-11e4-ab95-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5f786e28-bfe1-11e4-ab95-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5f786e28-bfe1-11e4-ab95-705681abff85' LIMIT 1 [["organization_id", "5f7a2be6-bfe1-11e4-9f3e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "5f7a2be6-bfe1-11e4-9f3e-705681abff85"], ["id", "5f7aada0-bfe1-11e4-917e-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f786e28-bfe1-11e4-ab95-705681abff85"]] Completed 500 Internal Server Error in 45ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$7Sht1yXgCwYpti.miedVJud0M6axhCOqFDJrapnapTv1.7aLBL9EG"], ["created_at", "2015-03-01 07:05:41.895845"], ["updated_at", "2015-03-01 07:05:41.895845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$XlSLA8RtRs8y9mqZ/bAq1ee0X4ULMaHrnu2u/9tJf0EuUYZ24vavW"], ["created_at", "2015-03-01 07:05:41.900695"], ["updated_at", "2015-03-01 07:05:41.900695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:41.902338"], ["user_id", "5f839f1e-bfe1-11e4-a895-705681abff85"], ["created_at", "2015-03-01 07:05:41.903625"], ["updated_at", "2015-03-01 07:05:41.903625"], ["token", "M5PIhYljay12ovKuqzGglqgmuuabc4kSVTFv6CmiSt8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.907151"], ["updated_at", "2015-03-01 07:05:41.907151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f839f1e-bfe1-11e4-a895-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f85557a-bfe1-11e4-b750-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f839f1e-bfe1-11e4-a895-705681abff85"], ["organization_id", "5f85557a-bfe1-11e4-b750-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:41.910453"], ["updated_at", "2015-03-01 07:05:41.910453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f845a6c-bfe1-11e4-8b8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f85557a-bfe1-11e4-b750-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f845a6c-bfe1-11e4-8b8a-705681abff85"], ["organization_id", "5f85557a-bfe1-11e4-b750-705681abff85"], ["created_at", "2015-03-01 07:05:41.913876"], ["updated_at", "2015-03-01 07:05:41.913876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$8BXcOo0XY09FnMPl/z4F6ul5prnUJQKPj20yj3nMnbS0KQCvV1N9m"], ["created_at", "2015-03-01 07:05:41.918680"], ["updated_at", "2015-03-01 07:05:41.918680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:41.920218"], ["user_id", "5f8717ca-bfe1-11e4-9f57-705681abff85"], ["created_at", "2015-03-01 07:05:41.920970"], ["updated_at", "2015-03-01 07:05:41.920970"], ["token", "VVxyirILfrTGdLsCqGZA9pgo56B6rWlAzEoXo9ex4RI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5f85557a-bfe1-11e4-b750-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "5f85557a-bfe1-11e4-b750-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:41.932043"], ["updated_at", "2015-03-01 07:05:41.932043"], ["token", "VxspX4UtRF6iqf3R54yl3WiC8z_agTq18DkMRmocGO8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:05:41 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$fnXrgb4xWTmreTinD0Vn0ObDL3jicBzBi2/VT1Eo.5Qd1conl0Agy"], ["created_at", "2015-03-01 07:05:41.945322"], ["updated_at", "2015-03-01 07:05:41.945322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$mx5Dcu3mvzRsHJ4iUKTMheSsXGud9opzYop/FGmqrhAJPgsGsV6uG"], ["created_at", "2015-03-01 07:05:41.950502"], ["updated_at", "2015-03-01 07:05:41.950502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:41.952137"], ["user_id", "5f8b312a-bfe1-11e4-a25b-705681abff85"], ["created_at", "2015-03-01 07:05:41.952967"], ["updated_at", "2015-03-01 07:05:41.952967"], ["token", "YCuotV3a0hfXsjl2tlvhwQR5U5CazNBv25QoCHOHCMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:41.956201"], ["updated_at", "2015-03-01 07:05:41.956201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f8b312a-bfe1-11e4-a25b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f8ccf9e-bfe1-11e4-85bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f8b312a-bfe1-11e4-a25b-705681abff85"], ["organization_id", "5f8ccf9e-bfe1-11e4-85bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:41.959418"], ["updated_at", "2015-03-01 07:05:41.959418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f8bf4de-bfe1-11e4-91c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f8ccf9e-bfe1-11e4-85bd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f8bf4de-bfe1-11e4-91c4-705681abff85"], ["organization_id", "5f8ccf9e-bfe1-11e4-85bd-705681abff85"], ["created_at", "2015-03-01 07:05:41.963585"], ["updated_at", "2015-03-01 07:05:41.963585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$oRck3KH7.mlP0P.laFndLeLYmIXD64nVRU5R5n5EZeUyoI6d0K80e"], ["created_at", "2015-03-01 07:05:41.968483"], ["updated_at", "2015-03-01 07:05:41.968483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:41.970057"], ["user_id", "5f8eb2a0-bfe1-11e4-a5c2-705681abff85"], ["created_at", "2015-03-01 07:05:41.970948"], ["updated_at", "2015-03-01 07:05:41.970948"], ["token", "o-sZ7lhukoHg41VdQHOhGqyusSyN-H6bYLENxT8QR-o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '5f8ccf9e-bfe1-11e4-85bd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "5f8ccf9e-bfe1-11e4-85bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:41.975048"], ["updated_at", "2015-03-01 07:05:41.975048"], ["token", "yfIYytCTojdlZuOboY4BsuYOSV08r8uO5JmB1rO7_fU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:05:41 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"yfIYytCTojdlZuOboY4BsuYOSV08r8uO5JmB1rO7_fU", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:41.980337' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o-sZ7lhukoHg41VdQHOhGqyusSyN-H6bYLENxT8QR-o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:41.981809"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:41.982760"], ["id", "5f8f188a-bfe1-11e4-bcb1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f8eb2a0-bfe1-11e4-a5c2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5f8eb2a0-bfe1-11e4-a5c2-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "yfIYytCTojdlZuOboY4BsuYOSV08r8uO5JmB1rO7_fU"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f8ccf9e-bfe1-11e4-85bd-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f8ccf9e-bfe1-11e4-85bd-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f8eb2a0-bfe1-11e4-a5c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f8ccf9e-bfe1-11e4-85bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f8eb2a0-bfe1-11e4-a5c2-705681abff85"], ["admin", "t"], ["organization_id", "5f8ccf9e-bfe1-11e4-85bd-705681abff85"], ["created_at", "2015-03-01 07:05:41.993538"], ["updated_at", "2015-03-01 07:05:41.993538"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "5f8fc50a-bfe1-11e4-9a9a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.4ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$qWymZbQ1CyqW6dGpL8vNEex3ao5aaEgmMlu61RmoyHcqUwLn6YafS"], ["created_at", "2015-03-01 07:05:42.003797"], ["updated_at", "2015-03-01 07:05:42.003797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$9hCyAmgAgTh.rSHN.IrL5eTUbsGUszwf611M5pI4OHvMk/VU/bQhy"], ["created_at", "2015-03-01 07:05:42.008347"], ["updated_at", "2015-03-01 07:05:42.008347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.009926"], ["user_id", "5f941ab0-bfe1-11e4-96b7-705681abff85"], ["created_at", "2015-03-01 07:05:42.010700"], ["updated_at", "2015-03-01 07:05:42.010700"], ["token", "qT52SOAqBToRwJUfAu1rlDsGCwNfvAgXRqOEeESQ1FM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.014322"], ["updated_at", "2015-03-01 07:05:42.014322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f941ab0-bfe1-11e4-96b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f95bdde-bfe1-11e4-b96d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f941ab0-bfe1-11e4-96b7-705681abff85"], ["organization_id", "5f95bdde-bfe1-11e4-b96d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.018167"], ["updated_at", "2015-03-01 07:05:42.018167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f94c4e2-bfe1-11e4-ad5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f95bdde-bfe1-11e4-b96d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f94c4e2-bfe1-11e4-ad5e-705681abff85"], ["organization_id", "5f95bdde-bfe1-11e4-b96d-705681abff85"], ["created_at", "2015-03-01 07:05:42.021871"], ["updated_at", "2015-03-01 07:05:42.021871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$x8CLrGiFJLjxalknTQZRneo31FSeg6L.UqH9rfFG/Eg6ewJ65EE3i"], ["created_at", "2015-03-01 07:05:42.027321"], ["updated_at", "2015-03-01 07:05:42.027321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.028914"], ["user_id", "5f97acd4-bfe1-11e4-8cbb-705681abff85"], ["created_at", "2015-03-01 07:05:42.029846"], ["updated_at", "2015-03-01 07:05:42.029846"], ["token", "vHBK93bM7DFVxSFo9pkacXeBGThJh3qUXFabBsH3p-E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '5f95bdde-bfe1-11e4-b96d-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "5f95bdde-bfe1-11e4-b96d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.033990"], ["updated_at", "2015-03-01 07:05:42.033990"], ["token", "F_JovSoJm5brc0NTO4ihYIk5isufW1K-ec0QENeXYeY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:42.039720' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vHBK93bM7DFVxSFo9pkacXeBGThJh3qUXFabBsH3p-E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:42.041166"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:42.042265"], ["id", "5f982024-bfe1-11e4-8213-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f97acd4-bfe1-11e4-8cbb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5f97acd4-bfe1-11e4-8cbb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$0OiIpZi6uD5qTl/nPCqGx.yQVU//3WbMFHl.oTQg8fWCVeQSSOfnC"], ["created_at", "2015-03-01 07:05:42.052954"], ["updated_at", "2015-03-01 07:05:42.052954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$riRI19/Pi9AinHsaxgUSOOwr7vCnjLtyghlYImqZhbw6dNS3Bxbmm"], ["created_at", "2015-03-01 07:05:42.057462"], ["updated_at", "2015-03-01 07:05:42.057462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.058975"], ["user_id", "5f9b9a2e-bfe1-11e4-822b-705681abff85"], ["created_at", "2015-03-01 07:05:42.059732"], ["updated_at", "2015-03-01 07:05:42.059732"], ["token", "InS3JJj3fO3XVCj0M2h38QcpeMA1C9HUWVrIYC9-8ek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.063130"], ["updated_at", "2015-03-01 07:05:42.063130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f9b9a2e-bfe1-11e4-822b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f9d245c-bfe1-11e4-93d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f9b9a2e-bfe1-11e4-822b-705681abff85"], ["organization_id", "5f9d245c-bfe1-11e4-93d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.066830"], ["updated_at", "2015-03-01 07:05:42.066830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f9c4460-bfe1-11e4-bb68-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f9d245c-bfe1-11e4-93d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f9c4460-bfe1-11e4-bb68-705681abff85"], ["organization_id", "5f9d245c-bfe1-11e4-93d6-705681abff85"], ["created_at", "2015-03-01 07:05:42.070353"], ["updated_at", "2015-03-01 07:05:42.070353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$CPsCfETDZxrTlKe032yr2.usETbwUlqAHjsIhUHvIrMkX0Ej99ExG"], ["created_at", "2015-03-01 07:05:42.082946"], ["updated_at", "2015-03-01 07:05:42.082946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$3oILzOMpwCp.XoYrjUUV7.FR0slOFal8oKnRs3FmOlylut2zNqABu"], ["created_at", "2015-03-01 07:05:42.088076"], ["updated_at", "2015-03-01 07:05:42.088076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.089968"], ["user_id", "5fa03322-bfe1-11e4-a0cb-705681abff85"], ["created_at", "2015-03-01 07:05:42.090806"], ["updated_at", "2015-03-01 07:05:42.090806"], ["token", "V8UqYLRjhBJP5EBq1OWXydIW3wfeYbZvOAZ8FGX_wp0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.094444"], ["updated_at", "2015-03-01 07:05:42.094444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fa03322-bfe1-11e4-a0cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fa1e82a-bfe1-11e4-b28f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fa03322-bfe1-11e4-a0cb-705681abff85"], ["organization_id", "5fa1e82a-bfe1-11e4-b28f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.097709"], ["updated_at", "2015-03-01 07:05:42.097709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fa0fa78-bfe1-11e4-9eee-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fa1e82a-bfe1-11e4-b28f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fa0fa78-bfe1-11e4-9eee-705681abff85"], ["organization_id", "5fa1e82a-bfe1-11e4-b28f-705681abff85"], ["created_at", "2015-03-01 07:05:42.100976"], ["updated_at", "2015-03-01 07:05:42.100976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/5fa26818-bfe1-11e4-9db0-705681abff85" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"5fa26818-bfe1-11e4-9db0-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:42.105824' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "V8UqYLRjhBJP5EBq1OWXydIW3wfeYbZvOAZ8FGX_wp0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:42.107313"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:42.108289"], ["id", "5fa166c0-bfe1-11e4-a8f1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fa03322-bfe1-11e4-a0cb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5fa03322-bfe1-11e4-a0cb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5fa03322-bfe1-11e4-a0cb-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "5fa03322-bfe1-11e4-a0cb-705681abff85"], ["id", "5fa26818-bfe1-11e4-9db0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5fa1e82a-bfe1-11e4-b28f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fa03322-bfe1-11e4-a0cb-705681abff85"]] Completed 200 OK in 11ms (Views: 2.3ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$SuHxdk1ZsGphUesgPy/OG.tObNJnn9MwLyWn7UokAtB.PiU7E2IE2"], ["created_at", "2015-03-01 07:05:42.122983"], ["updated_at", "2015-03-01 07:05:42.122983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$GXmI58Hl13Gd7O26PDXcTehxSupnC4r9088h9mm6tjL6sM/iqBfz."], ["created_at", "2015-03-01 07:05:42.127593"], ["updated_at", "2015-03-01 07:05:42.127593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.129270"], ["user_id", "5fa649ec-bfe1-11e4-95a0-705681abff85"], ["created_at", "2015-03-01 07:05:42.130040"], ["updated_at", "2015-03-01 07:05:42.130040"], ["token", "i8cY9lUsdKCa-gnuTi8QC3Q_8NixITT_mWkf7l_G8gE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.133642"], ["updated_at", "2015-03-01 07:05:42.133642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fa649ec-bfe1-11e4-95a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fa7e630-bfe1-11e4-9d9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fa649ec-bfe1-11e4-95a0-705681abff85"], ["organization_id", "5fa7e630-bfe1-11e4-9d9c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.137659"], ["updated_at", "2015-03-01 07:05:42.137659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fa6f9d2-bfe1-11e4-a9da-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fa7e630-bfe1-11e4-9d9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fa6f9d2-bfe1-11e4-a9da-705681abff85"], ["organization_id", "5fa7e630-bfe1-11e4-9d9c-705681abff85"], ["created_at", "2015-03-01 07:05:42.141093"], ["updated_at", "2015-03-01 07:05:42.141093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$AnIviFVn84v2yY/kgxBtEuKC2RrgiwQ2kYXkLTp96bQA6MWUx8AMy"], ["created_at", "2015-03-01 07:05:42.154590"], ["updated_at", "2015-03-01 07:05:42.154590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$J6TNyWdk5ng73DGDmo3yjuo0BT62ToJEtdJ3v.3Ur34wYeNcsK6RS"], ["created_at", "2015-03-01 07:05:42.159270"], ["updated_at", "2015-03-01 07:05:42.159270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.160881"], ["user_id", "5fab1d00-bfe1-11e4-a31b-705681abff85"], ["created_at", "2015-03-01 07:05:42.161677"], ["updated_at", "2015-03-01 07:05:42.161677"], ["token", "5hHWzMZfltYwUPRDO0v60LXbaGL_AQH1jBj3jMImUOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.165468"], ["updated_at", "2015-03-01 07:05:42.165468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fab1d00-bfe1-11e4-a31b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5facc5f6-bfe1-11e4-9963-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fab1d00-bfe1-11e4-a31b-705681abff85"], ["organization_id", "5facc5f6-bfe1-11e4-9963-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.169046"], ["updated_at", "2015-03-01 07:05:42.169046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fabcf7a-bfe1-11e4-b980-705681abff85' AND "clubhouse_memberships"."organization_id" = '5facc5f6-bfe1-11e4-9963-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fabcf7a-bfe1-11e4-b980-705681abff85"], ["organization_id", "5facc5f6-bfe1-11e4-9963-705681abff85"], ["created_at", "2015-03-01 07:05:42.172382"], ["updated_at", "2015-03-01 07:05:42.172382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5fadcd98-bfe1-11e4-8a73-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"5fadcd98-bfe1-11e4-8a73-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:42.176791' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5hHWzMZfltYwUPRDO0v60LXbaGL_AQH1jBj3jMImUOo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:42.178247"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:42.179228"], ["id", "5fac3514-bfe1-11e4-bb73-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fab1d00-bfe1-11e4-a31b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5fab1d00-bfe1-11e4-a31b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5fab1d00-bfe1-11e4-a31b-705681abff85' LIMIT 1 [["organization_id", "5facc5f6-bfe1-11e4-9963-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "5facc5f6-bfe1-11e4-9963-705681abff85"], ["id", "5fadcd98-bfe1-11e4-8a73-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fabcf7a-bfe1-11e4-b980-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "5fadcd98-bfe1-11e4-8a73-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$dfuJVYQDKtIeoGKS1BmLzuL6uVeHLnSoayjNP/FOP1Z6qizgKrmpa"], ["created_at", "2015-03-01 07:05:42.195405"], ["updated_at", "2015-03-01 07:05:42.195405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$sy/btO7nhrjitCMgYWR5cu3WCkN/zS1JfDnAzQHfrjBIfBAczRM72"], ["created_at", "2015-03-01 07:05:42.201042"], ["updated_at", "2015-03-01 07:05:42.201042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.202768"], ["user_id", "5fb16944-bfe1-11e4-8998-705681abff85"], ["created_at", "2015-03-01 07:05:42.203623"], ["updated_at", "2015-03-01 07:05:42.203623"], ["token", "KAYDGxt8kK3n1N5yVOL8I0ImGNaTWOrqF7DIF7eIOVg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.207269"], ["updated_at", "2015-03-01 07:05:42.207269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fb16944-bfe1-11e4-8998-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fb3220c-bfe1-11e4-b85c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fb16944-bfe1-11e4-8998-705681abff85"], ["organization_id", "5fb3220c-bfe1-11e4-b85c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.210929"], ["updated_at", "2015-03-01 07:05:42.210929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fb23112-bfe1-11e4-978c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fb3220c-bfe1-11e4-b85c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fb23112-bfe1-11e4-978c-705681abff85"], ["organization_id", "5fb3220c-bfe1-11e4-b85c-705681abff85"], ["created_at", "2015-03-01 07:05:42.214080"], ["updated_at", "2015-03-01 07:05:42.214080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5fb3aff6-bfe1-11e4-9ae1-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"5fb3aff6-bfe1-11e4-9ae1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:42.220875' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KAYDGxt8kK3n1N5yVOL8I0ImGNaTWOrqF7DIF7eIOVg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:42.222374"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:42.223461"], ["id", "5fb29fc6-bfe1-11e4-860c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fb16944-bfe1-11e4-8998-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5fb16944-bfe1-11e4-8998-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5fb16944-bfe1-11e4-8998-705681abff85' LIMIT 1 [["organization_id", "5fb3220c-bfe1-11e4-b85c-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "5fb3220c-bfe1-11e4-b85c-705681abff85"], ["id", "5fb3aff6-bfe1-11e4-9ae1-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fb16944-bfe1-11e4-8998-705681abff85"]] Completed 500 Internal Server Error in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$XSnkJCsUbkVnoUsesseBDeydZpQPwX2EIx402/aUTHK9r4aFQEmyO"], ["created_at", "2015-03-01 07:05:42.242771"], ["updated_at", "2015-03-01 07:05:42.242771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$Nhy3xQrPy2l1h/7MWFsfTeuiURTdUP84RuTaWZi5GENmOklAOi3C2"], ["created_at", "2015-03-01 07:05:42.247027"], ["updated_at", "2015-03-01 07:05:42.247027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.248680"], ["user_id", "5fb88c88-bfe1-11e4-9279-705681abff85"], ["created_at", "2015-03-01 07:05:42.249503"], ["updated_at", "2015-03-01 07:05:42.249503"], ["token", "bfqjGyj0tjkG1QzeIO4OwhBhn9guGo0Yix9wWlqxZOU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.253191"], ["updated_at", "2015-03-01 07:05:42.253191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fb88c88-bfe1-11e4-9279-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fba2322-bfe1-11e4-9fb7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fb88c88-bfe1-11e4-9279-705681abff85"], ["organization_id", "5fba2322-bfe1-11e4-9fb7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.256667"], ["updated_at", "2015-03-01 07:05:42.256667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fb93246-bfe1-11e4-868f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fba2322-bfe1-11e4-9fb7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fb93246-bfe1-11e4-868f-705681abff85"], ["organization_id", "5fba2322-bfe1-11e4-9fb7-705681abff85"], ["created_at", "2015-03-01 07:05:42.259845"], ["updated_at", "2015-03-01 07:05:42.259845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:42.264795' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bfqjGyj0tjkG1QzeIO4OwhBhn9guGo0Yix9wWlqxZOU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:42.266370"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:42.267400"], ["id", "5fb99ccc-bfe1-11e4-897c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fb88c88-bfe1-11e4-9279-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5fb88c88-bfe1-11e4-9279-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5fb88c88-bfe1-11e4-9279-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "5fb88c88-bfe1-11e4-9279-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('5fb88c88-bfe1-11e4-9279-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('5fba2322-bfe1-11e4-9fb7-705681abff85') Completed 200 OK in 17ms (Views: 8.5ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$d51fbz6UFBoonvOmhsolBON5yfdhB4yXF2HyoJdz1JasycVYHSjbu"], ["created_at", "2015-03-01 07:05:42.287555"], ["updated_at", "2015-03-01 07:05:42.287555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$g9PLNWsT55vqJGle7zk7/.V2kzRpJeUiyA9p9OGBRIMR.IP6fJDmy"], ["created_at", "2015-03-01 07:05:42.292617"], ["updated_at", "2015-03-01 07:05:42.292617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.294302"], ["user_id", "5fbf65bc-bfe1-11e4-be02-705681abff85"], ["created_at", "2015-03-01 07:05:42.295263"], ["updated_at", "2015-03-01 07:05:42.295263"], ["token", "J6QMZkUofZwjAYWRkVomJXAAF4yYhFBQl4VNTcH67CU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.299341"], ["updated_at", "2015-03-01 07:05:42.299341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fbf65bc-bfe1-11e4-be02-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fc12e92-bfe1-11e4-ad93-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fbf65bc-bfe1-11e4-be02-705681abff85"], ["organization_id", "5fc12e92-bfe1-11e4-ad93-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.303142"], ["updated_at", "2015-03-01 07:05:42.303142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fc029d4-bfe1-11e4-8fef-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fc12e92-bfe1-11e4-ad93-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5fc029d4-bfe1-11e4-8fef-705681abff85"], ["organization_id", "5fc12e92-bfe1-11e4-ad93-705681abff85"], ["created_at", "2015-03-01 07:05:42.306842"], ["updated_at", "2015-03-01 07:05:42.306842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:42.312529' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "J6QMZkUofZwjAYWRkVomJXAAF4yYhFBQl4VNTcH67CU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:42.314037"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:42.315016"], ["id", "5fc09a86-bfe1-11e4-9a5e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fbf65bc-bfe1-11e4-be02-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5fbf65bc-bfe1-11e4-be02-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5fbf65bc-bfe1-11e4-be02-705681abff85' LIMIT 1 [["organization_id", "5fc12e92-bfe1-11e4-ad93-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "5fc12e92-bfe1-11e4-ad93-705681abff85"]] User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('5fbf65bc-bfe1-11e4-be02-705681abff85', '5fc029d4-bfe1-11e4-8fef-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('5fc12e92-bfe1-11e4-ad93-705681abff85') Completed 200 OK in 16ms (Views: 4.2ms | ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$bBTFv9fN30i3hhWRM404MOgUpm/5hUn63ClVsRz3phTTmlALAgeWS"], ["created_at", "2015-03-01 07:05:42.335127"], ["updated_at", "2015-03-01 07:05:42.335127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.337037"], ["user_id", "5fc6ab60-bfe1-11e4-a6a3-705681abff85"], ["created_at", "2015-03-01 07:05:42.337898"], ["updated_at", "2015-03-01 07:05:42.337898"], ["token", "aWVFmzhTai8FxuruD6ClkLea--VImCeNsfv81bmpjH8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.342246"], ["updated_at", "2015-03-01 07:05:42.342246"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fc6ab60-bfe1-11e4-a6a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fc7bcda-bfe1-11e4-b0d7-705681abff85') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fc6ab60-bfe1-11e4-a6a3-705681abff85"], ["organization_id", "5fc7bcda-bfe1-11e4-b0d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.346641"], ["updated_at", "2015-03-01 07:05:42.346641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '5fc7bcda-bfe1-11e4-b0d7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "5fc7bcda-bfe1-11e4-b0d7-705681abff85"], ["created_at", "2015-03-01 07:05:42.352306"], ["updated_at", "2015-03-01 07:05:42.352306"], ["token", "LauoTNvLRROJ3gwRG0IP8t0aApCaja2eXE1aFWX15w0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$CKkiTpGXMzg2BDD7u7dIJ.Do.IA9ELmvRXQ0Kv468B1uReGXnijbC"], ["created_at", "2015-03-01 07:05:42.382454"], ["updated_at", "2015-03-01 07:05:42.382454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.384710"], ["user_id", "5fcde3f8-bfe1-11e4-87b3-705681abff85"], ["created_at", "2015-03-01 07:05:42.385622"], ["updated_at", "2015-03-01 07:05:42.385622"], ["token", "LnQF5fMU1ZqzP4V_bq27Elr2dSx_Dx52mxsS1MpEgjA"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.390533"], ["updated_at", "2015-03-01 07:05:42.390533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fcde3f8-bfe1-11e4-87b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fcf3a1e-bfe1-11e4-be93-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fcde3f8-bfe1-11e4-87b3-705681abff85"], ["organization_id", "5fcf3a1e-bfe1-11e4-be93-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.398563"], ["updated_at", "2015-03-01 07:05:42.398563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '5fcf3a1e-bfe1-11e4-be93-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "5fcf3a1e-bfe1-11e4-be93-705681abff85"], ["created_at", "2015-03-01 07:05:42.404357"], ["updated_at", "2015-03-01 07:05:42.404357"], ["token", "XFfDeCGlxf2sTqOlEAKOV83vuK70Nx2pi-f2LZ_wRUk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:42.416493' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LnQF5fMU1ZqzP4V_bq27Elr2dSx_Dx52mxsS1MpEgjA"]]  (4.5ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:42.418771"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:42.426762"], ["id", "5fce6634-bfe1-11e4-8141-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fcde3f8-bfe1-11e4-87b3-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5fcde3f8-bfe1-11e4-87b3-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5fcde3f8-bfe1-11e4-87b3-705681abff85' LIMIT 1 [["organization_id", "5fcf3a1e-bfe1-11e4-be93-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5fcf3a1e-bfe1-11e4-be93-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5fcf3a1e-bfe1-11e4-be93-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "5fcf3a1e-bfe1-11e4-be93-705681abff85"], ["created_at", "2015-03-01 07:05:42.602533"], ["updated_at", "2015-03-01 07:05:42.602533"], ["token", "edKOYGaQ7JXH6gofnxZ95aZsXRRfPtaNEhui9fHDcaw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7b126e5e-05a2-4a5c-af3f-915b2c9caf6a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5fef8238-bfe1-11e4-90fb-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5fef8238-bfe1-11e4-90fb-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [7b126e5e-05a2-4a5c-af3f-915b2c9caf6a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5fef8238-bfe1-11e4-90fb-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [7b126e5e-05a2-4a5c-af3f-915b2c9caf6a] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5fcf3a1e-bfe1-11e4-be93-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [7b126e5e-05a2-4a5c-af3f-915b2c9caf6a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [7b126e5e-05a2-4a5c-af3f-915b2c9caf6a] Clubhouse::Mailer#invitation: processed outbound mail in 219.0ms [ActiveJob] [ActionMailer::DeliveryJob] [7b126e5e-05a2-4a5c-af3f-915b2c9caf6a] Sent mail to email@example.com (8.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [7b126e5e-05a2-4a5c-af3f-915b2c9caf6a] Date: Sat, 28 Feb 2015 23:05:42 -0800 From: from@example.com To: email@example.com Message-ID: <54f2ba46cf6b2_134a63fc80644fbe811731@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/edKOYGaQ7JXH6gofnxZ95aZsXRRfPtaNEhui9fHDcaw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [7b126e5e-05a2-4a5c-af3f-915b2c9caf6a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 228.39ms Completed 201 Created in 440ms (Views: 2.1ms | ActiveRecord: 8.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$etBiviTZDFUH/6ZnPLtPyugiSUrAiXYL1X2AI6W68feFgsp4X5XQK"], ["created_at", "2015-03-01 07:05:42.862456"], ["updated_at", "2015-03-01 07:05:42.862456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.864088"], ["user_id", "60171d5c-bfe1-11e4-98fa-705681abff85"], ["created_at", "2015-03-01 07:05:42.864860"], ["updated_at", "2015-03-01 07:05:42.864860"], ["token", "UTOTsY1qoKmz5DqPQ9sZFy0IrJk4E6Yhp1eARnfr-PQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.868373"], ["updated_at", "2015-03-01 07:05:42.868373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60171d5c-bfe1-11e4-98fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '60180bc2-bfe1-11e4-90c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60171d5c-bfe1-11e4-98fa-705681abff85"], ["organization_id", "60180bc2-bfe1-11e4-90c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.872559"], ["updated_at", "2015-03-01 07:05:42.872559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '60180bc2-bfe1-11e4-90c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "60180bc2-bfe1-11e4-90c6-705681abff85"], ["created_at", "2015-03-01 07:05:42.876360"], ["updated_at", "2015-03-01 07:05:42.876360"], ["token", "s7h4_Dbl0LUReqd2TJ7pOsFeHOSyfHL0WrQqfvvBiPk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:42.881314' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UTOTsY1qoKmz5DqPQ9sZFy0IrJk4E6Yhp1eARnfr-PQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:42.882732"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:42.883642"], ["id", "601780c6-bfe1-11e4-842f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60171d5c-bfe1-11e4-98fa-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "60171d5c-bfe1-11e4-98fa-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60171d5c-bfe1-11e4-98fa-705681abff85' LIMIT 1 [["organization_id", "60180bc2-bfe1-11e4-90c6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60180bc2-bfe1-11e4-90c6-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '60180bc2-bfe1-11e4-90c6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "60180bc2-bfe1-11e4-90c6-705681abff85"], ["created_at", "2015-03-01 07:05:42.893101"], ["updated_at", "2015-03-01 07:05:42.893101"], ["token", "wYIAkTjsB5FJBMCRdc8LHLNsCpWUBaBdsF5HlHVdVDM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 21f34c3c-6084-4931-bc99-7a5fead395e2) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/601bd73e-bfe1-11e4-adc6-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "601bd73e-bfe1-11e4-adc6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [21f34c3c-6084-4931-bc99-7a5fead395e2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/601bd73e-bfe1-11e4-adc6-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [21f34c3c-6084-4931-bc99-7a5fead395e2] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60180bc2-bfe1-11e4-90c6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [21f34c3c-6084-4931-bc99-7a5fead395e2] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [21f34c3c-6084-4931-bc99-7a5fead395e2] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [21f34c3c-6084-4931-bc99-7a5fead395e2] Sent mail to email@example.com (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [21f34c3c-6084-4931-bc99-7a5fead395e2] Date: Sat, 28 Feb 2015 23:05:42 -0800 From: from@example.com To: email@example.com Message-ID: <54f2ba46dc5dd_134a63fc80644fbe811898@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/wYIAkTjsB5FJBMCRdc8LHLNsCpWUBaBdsF5HlHVdVDM If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [21f34c3c-6084-4931-bc99-7a5fead395e2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.71ms Completed 201 Created in 24ms (Views: 0.9ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$uGVjKvIZZOCuKGsh3QzCDuuXqADwYWStt18ekrt8xIDADyJ4cS1MW"], ["created_at", "2015-03-01 07:05:42.913096"], ["updated_at", "2015-03-01 07:05:42.913096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.914831"], ["user_id", "601ed81c-bfe1-11e4-bffb-705681abff85"], ["created_at", "2015-03-01 07:05:42.915598"], ["updated_at", "2015-03-01 07:05:42.915598"], ["token", "cVkmEZTS-x1lwqLgaQC6FpvepZzdAhWm2tQOedqpMck"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.919402"], ["updated_at", "2015-03-01 07:05:42.919402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '601ed81c-bfe1-11e4-bffb-705681abff85' AND "clubhouse_memberships"."organization_id" = '601fca38-bfe1-11e4-9756-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "601ed81c-bfe1-11e4-bffb-705681abff85"], ["organization_id", "601fca38-bfe1-11e4-9756-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.922801"], ["updated_at", "2015-03-01 07:05:42.922801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '601fca38-bfe1-11e4-9756-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "601fca38-bfe1-11e4-9756-705681abff85"], ["created_at", "2015-03-01 07:05:42.929254"], ["updated_at", "2015-03-01 07:05:42.929254"], ["token", "O4Yr5POx1kuFScUvzkp_yozJbVMx0jLY67aqrG5v4T8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:42.934374' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cVkmEZTS-x1lwqLgaQC6FpvepZzdAhWm2tQOedqpMck"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:42.935897"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:42.936810"], ["id", "601f3cd0-bfe1-11e4-9484-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "601ed81c-bfe1-11e4-bffb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "601ed81c-bfe1-11e4-bffb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '601ed81c-bfe1-11e4-bffb-705681abff85' LIMIT 1 [["organization_id", "601fca38-bfe1-11e4-9756-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "601fca38-bfe1-11e4-9756-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '601fca38-bfe1-11e4-9756-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$nlPizk6Dw8/39bV3nrTfHODkSoygsRqojzboDFKWOJ3tO3abCHL6S"], ["created_at", "2015-03-01 07:05:42.952758"], ["updated_at", "2015-03-01 07:05:42.952758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.954759"], ["user_id", "6024e2fc-bfe1-11e4-8f94-705681abff85"], ["created_at", "2015-03-01 07:05:42.955582"], ["updated_at", "2015-03-01 07:05:42.955582"], ["token", "B4F1ghbI24vWVuAMYvw6x4puWixZdDG8Q-hGZOACWg0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.959033"], ["updated_at", "2015-03-01 07:05:42.959033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6024e2fc-bfe1-11e4-8f94-705681abff85' AND "clubhouse_memberships"."organization_id" = '6025d4dc-bfe1-11e4-b28c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6024e2fc-bfe1-11e4-8f94-705681abff85"], ["organization_id", "6025d4dc-bfe1-11e4-b28c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.962188"], ["updated_at", "2015-03-01 07:05:42.962188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '6025d4dc-bfe1-11e4-b28c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "6025d4dc-bfe1-11e4-b28c-705681abff85"], ["created_at", "2015-03-01 07:05:42.965759"], ["updated_at", "2015-03-01 07:05:42.965759"], ["token", "8qcrZ2_KY-XHKbe4nBXuXydN6j07D6xr3-TK43ua4w0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$BHVFgher6I.DX59Iyp8lgufUV2sqmnUpVx01BnpXEGnTI1BLs/2Re"], ["created_at", "2015-03-01 07:05:42.977373"], ["updated_at", "2015-03-01 07:05:42.977373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:42.979123"], ["user_id", "6028a7d4-bfe1-11e4-b74e-705681abff85"], ["created_at", "2015-03-01 07:05:42.979869"], ["updated_at", "2015-03-01 07:05:42.979869"], ["token", "sUDZQu2mBd6XSvkHgb1784yMNXyoyA-MGmWiHEGvuT4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:42.983299"], ["updated_at", "2015-03-01 07:05:42.983299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6028a7d4-bfe1-11e4-b74e-705681abff85' AND "clubhouse_memberships"."organization_id" = '60299360-bfe1-11e4-a96b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6028a7d4-bfe1-11e4-b74e-705681abff85"], ["organization_id", "60299360-bfe1-11e4-a96b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:42.987134"], ["updated_at", "2015-03-01 07:05:42.987134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '60299360-bfe1-11e4-a96b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "60299360-bfe1-11e4-a96b-705681abff85"], ["created_at", "2015-03-01 07:05:42.990497"], ["updated_at", "2015-03-01 07:05:42.990497"], ["token", "BUau_yivk_PKce8HaFx1NfynC01yclDbM6wMEBD-Tu0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/602aa8ae-bfe1-11e4-ab7d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:42 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"602aa8ae-bfe1-11e4-ab7d-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:42.995439' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sUDZQu2mBd6XSvkHgb1784yMNXyoyA-MGmWiHEGvuT4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:42.996832"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:42.997762"], ["id", "60290a30-bfe1-11e4-b1d3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6028a7d4-bfe1-11e4-b74e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6028a7d4-bfe1-11e4-b74e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6028a7d4-bfe1-11e4-b74e-705681abff85' LIMIT 1 [["organization_id", "60299360-bfe1-11e4-a96b-705681abff85"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "60299360-bfe1-11e4-a96b-705681abff85"], ["id", "602aa8ae-bfe1-11e4-ab7d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60299360-bfe1-11e4-a96b-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."id" != '602aa8ae-bfe1-11e4-ab7d-705681abff85' AND "clubhouse_invitations"."organization_id" = '60299360-bfe1-11e4-a96b-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:05:43.009654"], ["id", "602aa8ae-bfe1-11e4-ab7d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.9ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (12.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$sKCxWwGTNTBkAzAqBMIpq.qNQEmpYrk0ekPXaayCYhF4ZiOf5hWk6"], ["created_at", "2015-03-01 07:05:43.018408"], ["updated_at", "2015-03-01 07:05:43.018408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.032071"], ["user_id", "602ee8ec-bfe1-11e4-8b75-705681abff85"], ["created_at", "2015-03-01 07:05:43.032886"], ["updated_at", "2015-03-01 07:05:43.032886"], ["token", "yQYtqLJqr5vG1CnidOscdyapc0kRVgztqRPHQkvUhyc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.036412"], ["updated_at", "2015-03-01 07:05:43.036412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '602ee8ec-bfe1-11e4-8b75-705681abff85' AND "clubhouse_memberships"."organization_id" = '6031a62c-bfe1-11e4-97e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "602ee8ec-bfe1-11e4-8b75-705681abff85"], ["organization_id", "6031a62c-bfe1-11e4-97e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:43.039635"], ["updated_at", "2015-03-01 07:05:43.039635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '6031a62c-bfe1-11e4-97e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "6031a62c-bfe1-11e4-97e9-705681abff85"], ["created_at", "2015-03-01 07:05:43.043127"], ["updated_at", "2015-03-01 07:05:43.043127"], ["token", "APLH-iEZ6WhXvUzTDSVD6UGKLOsUW6CuDxBjx_XMimE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$9xzyg035CMiecdn1hGC5FOeMFUsEqHyjk5eCIoUZ0q.6fmmDBgcje"], ["created_at", "2015-03-01 07:05:43.055596"], ["updated_at", "2015-03-01 07:05:43.055596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.057551"], ["user_id", "603498c8-bfe1-11e4-ace7-705681abff85"], ["created_at", "2015-03-01 07:05:43.058364"], ["updated_at", "2015-03-01 07:05:43.058364"], ["token", "BO8HfajVEDm7R6qE2YpL_5_J6hk_efE354EAuNjgLy4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.061646"], ["updated_at", "2015-03-01 07:05:43.061646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '603498c8-bfe1-11e4-ace7-705681abff85' AND "clubhouse_memberships"."organization_id" = '60357ca2-bfe1-11e4-b3e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "603498c8-bfe1-11e4-ace7-705681abff85"], ["organization_id", "60357ca2-bfe1-11e4-b3e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:43.065272"], ["updated_at", "2015-03-01 07:05:43.065272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '60357ca2-bfe1-11e4-b3e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "60357ca2-bfe1-11e4-b3e4-705681abff85"], ["created_at", "2015-03-01 07:05:43.068610"], ["updated_at", "2015-03-01 07:05:43.068610"], ["token", "wErRvoML4QOR4aoAwI__Xb38YRQUqp6vo9CLEZdp2D8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/60369416-bfe1-11e4-985f-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"60369416-bfe1-11e4-985f-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.074292' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BO8HfajVEDm7R6qE2YpL_5_J6hk_efE354EAuNjgLy4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.076019"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.076985"], ["id", "6035072c-bfe1-11e4-a2b0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "603498c8-bfe1-11e4-ace7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "603498c8-bfe1-11e4-ace7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '603498c8-bfe1-11e4-ace7-705681abff85' LIMIT 1 [["organization_id", "60357ca2-bfe1-11e4-b3e4-705681abff85"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "60357ca2-bfe1-11e4-b3e4-705681abff85"], ["id", "60369416-bfe1-11e4-985f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "60369416-bfe1-11e4-985f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 18ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$LyfxXzgEWqxd1xrVSTfqruo4hrE2ik4OPTrUdQCq39D9Zc3SfbqLq"], ["created_at", "2015-03-01 07:05:43.098809"], ["updated_at", "2015-03-01 07:05:43.098809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.100502"], ["user_id", "603b2eae-bfe1-11e4-86ce-705681abff85"], ["created_at", "2015-03-01 07:05:43.101436"], ["updated_at", "2015-03-01 07:05:43.101436"], ["token", "VBvFMNLspcizpzi2NOI-7OkIHmYSe31Zeok4DeEB7LE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.116318"], ["updated_at", "2015-03-01 07:05:43.116318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '603b2eae-bfe1-11e4-86ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '603dd7c6-bfe1-11e4-a430-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "603b2eae-bfe1-11e4-86ce-705681abff85"], ["organization_id", "603dd7c6-bfe1-11e4-a430-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:43.119610"], ["updated_at", "2015-03-01 07:05:43.119610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '603dd7c6-bfe1-11e4-a430-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "603dd7c6-bfe1-11e4-a430-705681abff85"], ["created_at", "2015-03-01 07:05:43.125660"], ["updated_at", "2015-03-01 07:05:43.125660"], ["token", "nHXmVMzBpi42CBn4YmwArO8Z7R1fQ1XxvJUHC1VlIYE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$yJg2pSIiBF8CS3P/jEBbW.slVJzfErt5cc6cOCVeV3zNXERYHhIIu"], ["created_at", "2015-03-01 07:05:43.131422"], ["updated_at", "2015-03-01 07:05:43.131422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.134562"], ["updated_at", "2015-03-01 07:05:43.134562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '604024c2-bfe1-11e4-8bc7-705681abff85' AND "clubhouse_memberships"."organization_id" = '60409d4e-bfe1-11e4-ad9b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "604024c2-bfe1-11e4-8bc7-705681abff85"], ["organization_id", "60409d4e-bfe1-11e4-ad9b-705681abff85"], ["created_at", "2015-03-01 07:05:43.138417"], ["updated_at", "2015-03-01 07:05:43.138417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$7IRO/neBifj8xwpIRzfLEehsXsuDz4ccV8pNYlpQEsYd5DZJbKR2m"], ["created_at", "2015-03-01 07:05:43.150804"], ["updated_at", "2015-03-01 07:05:43.150804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.152522"], ["user_id", "604319f2-bfe1-11e4-96a0-705681abff85"], ["created_at", "2015-03-01 07:05:43.153403"], ["updated_at", "2015-03-01 07:05:43.153403"], ["token", "1kQD4v6Nptwe6IIZRnfAUXEFlZkjY1o7nV87XQM26NU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.157274"], ["updated_at", "2015-03-01 07:05:43.157274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '604319f2-bfe1-11e4-96a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '60441afa-bfe1-11e4-98dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "604319f2-bfe1-11e4-96a0-705681abff85"], ["organization_id", "60441afa-bfe1-11e4-98dd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:43.160868"], ["updated_at", "2015-03-01 07:05:43.160868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '60441afa-bfe1-11e4-98dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "60441afa-bfe1-11e4-98dd-705681abff85"], ["created_at", "2015-03-01 07:05:43.164063"], ["updated_at", "2015-03-01 07:05:43.164063"], ["token", "QMU_zCc316Zjv9WwaKL27Itb8UhMCv6vsKMepaVmRrI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$43xZ2esJ7ERyixlRpa1qeew9yh52zhGdtUadJmNWiQxN.FyzcPBde"], ["created_at", "2015-03-01 07:05:43.168852"], ["updated_at", "2015-03-01 07:05:43.168852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.171844"], ["updated_at", "2015-03-01 07:05:43.171844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6045d994-bfe1-11e4-9e6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '60465306-bfe1-11e4-8d9f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6045d994-bfe1-11e4-9e6d-705681abff85"], ["organization_id", "60465306-bfe1-11e4-8d9f-705681abff85"], ["created_at", "2015-03-01 07:05:43.175151"], ["updated_at", "2015-03-01 07:05:43.175151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.179718' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1kQD4v6Nptwe6IIZRnfAUXEFlZkjY1o7nV87XQM26NU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.183915"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.185847"], ["id", "60438752-bfe1-11e4-84e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "604319f2-bfe1-11e4-96a0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "604319f2-bfe1-11e4-96a0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '604319f2-bfe1-11e4-96a0-705681abff85' LIMIT 1 [["organization_id", "60441afa-bfe1-11e4-98dd-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "60441afa-bfe1-11e4-98dd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('60441afa-bfe1-11e4-98dd-705681abff85') Completed 200 OK in 18ms (Views: 2.4ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$SJYA/LmaQihRcWBCQC4lpu9FGZllH7h3QzdvBP9uE/etpoNdA0NJW"], ["created_at", "2015-03-01 07:05:43.204191"], ["updated_at", "2015-03-01 07:05:43.204191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.205895"], ["user_id", "604b421c-bfe1-11e4-b6ad-705681abff85"], ["created_at", "2015-03-01 07:05:43.206692"], ["updated_at", "2015-03-01 07:05:43.206692"], ["token", "5x3mqI1QebFQ1MgGVmWyaCxXaz4MTy-M9wpSeot8LjM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.210367"], ["updated_at", "2015-03-01 07:05:43.210367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '604b421c-bfe1-11e4-b6ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '604c2f38-bfe1-11e4-b425-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "604b421c-bfe1-11e4-b6ad-705681abff85"], ["organization_id", "604c2f38-bfe1-11e4-b425-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:43.213565"], ["updated_at", "2015-03-01 07:05:43.213565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '604c2f38-bfe1-11e4-b425-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "604c2f38-bfe1-11e4-b425-705681abff85"], ["created_at", "2015-03-01 07:05:43.217478"], ["updated_at", "2015-03-01 07:05:43.217478"], ["token", "mUwmqRwLymE-nN4ETboqSi_HuZb8cJz6hwCBxeILC-A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$j/hphygxUoFnudsN1ZaNgele2yQtHqK2sEQkFf.A1tQ7bif9plo1e"], ["created_at", "2015-03-01 07:05:43.232520"], ["updated_at", "2015-03-01 07:05:43.232520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.234225"], ["user_id", "604f920e-bfe1-11e4-b5af-705681abff85"], ["created_at", "2015-03-01 07:05:43.235206"], ["updated_at", "2015-03-01 07:05:43.235206"], ["token", "Xh-0g_SjCa5slXdjHUakLaV4FGmEXq7fK1X-9LtrM3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.239194"], ["updated_at", "2015-03-01 07:05:43.239194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '604f920e-bfe1-11e4-b5af-705681abff85' AND "clubhouse_memberships"."organization_id" = '60509686-bfe1-11e4-95a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "604f920e-bfe1-11e4-b5af-705681abff85"], ["organization_id", "60509686-bfe1-11e4-95a7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:05:43.242541"], ["updated_at", "2015-03-01 07:05:43.242541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '60509686-bfe1-11e4-95a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "60509686-bfe1-11e4-95a7-705681abff85"], ["created_at", "2015-03-01 07:05:43.245988"], ["updated_at", "2015-03-01 07:05:43.245988"], ["token", "jmdMYuIVY-BnAtF3WG581ncyXknWyUv4zxeETTp_EkE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/6051a242-bfe1-11e4-84ce-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"6051a242-bfe1-11e4-84ce-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.250672' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Xh-0g_SjCa5slXdjHUakLaV4FGmEXq7fK1X-9LtrM3k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.252083"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.253081"], ["id", "60500838-bfe1-11e4-a657-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "604f920e-bfe1-11e4-b5af-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "604f920e-bfe1-11e4-b5af-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '604f920e-bfe1-11e4-b5af-705681abff85' LIMIT 1 [["organization_id", "60509686-bfe1-11e4-95a7-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "60509686-bfe1-11e4-95a7-705681abff85"], ["id", "6051a242-bfe1-11e4-84ce-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60509686-bfe1-11e4-95a7-705681abff85"]] Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$agnx7YSjbBAdP6TiiOfUIOP1J1tQm.aO0oCuwngfqLQiNbn6d8XOu"], ["created_at", "2015-03-01 07:05:43.268477"], ["updated_at", "2015-03-01 07:05:43.268477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.272155"], ["updated_at", "2015-03-01 07:05:43.272155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60551832-bfe1-11e4-b359-705681abff85' AND "clubhouse_memberships"."organization_id" = '6055a73e-bfe1-11e4-beb5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60551832-bfe1-11e4-b359-705681abff85"], ["organization_id", "6055a73e-bfe1-11e4-beb5-705681abff85"], ["created_at", "2015-03-01 07:05:43.275220"], ["updated_at", "2015-03-01 07:05:43.275220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60551832-bfe1-11e4-b359-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6055a73e-bfe1-11e4-beb5-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60551832-bfe1-11e4-b359-705681abff85' AND "clubhouse_memberships"."organization_id" = '6055a73e-bfe1-11e4-beb5-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6055a73e-bfe1-11e4-beb5-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60551832-bfe1-11e4-b359-705681abff85' AND "clubhouse_memberships"."organization_id" = '6055a73e-bfe1-11e4-beb5-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$NMldAdzOYTxhp5kmjaAqie546VpftIwrm4t8UwHQvodZZ15uGm6F6"], ["created_at", "2015-03-01 07:05:43.300272"], ["updated_at", "2015-03-01 07:05:43.300272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.301919"], ["user_id", "6059e86c-bfe1-11e4-879c-705681abff85"], ["created_at", "2015-03-01 07:05:43.302930"], ["updated_at", "2015-03-01 07:05:43.302930"], ["token", "b8rc6rjUIQtXw6VFw0wrUfE5ssFympiNO3dnwUZARQY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.306506"], ["updated_at", "2015-03-01 07:05:43.306506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6059e86c-bfe1-11e4-879c-705681abff85' AND "clubhouse_memberships"."organization_id" = '605ada74-bfe1-11e4-b6db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6059e86c-bfe1-11e4-879c-705681abff85"], ["organization_id", "605ada74-bfe1-11e4-b6db-705681abff85"], ["created_at", "2015-03-01 07:05:43.309757"], ["updated_at", "2015-03-01 07:05:43.309757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$1O.IW0VTNR9Z6GeV.Goz5eYJFRbfDbAaFqyGybDMTZVW1Ka3hAZgi"], ["created_at", "2015-03-01 07:05:43.328650"], ["updated_at", "2015-03-01 07:05:43.328650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.331236"], ["user_id", "605e503c-bfe1-11e4-a8e4-705681abff85"], ["created_at", "2015-03-01 07:05:43.332113"], ["updated_at", "2015-03-01 07:05:43.332113"], ["token", "c0hxMuol3NHypu9O1orvUpy_VnUa2nIxBlCY1_oJlvU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.335421"], ["updated_at", "2015-03-01 07:05:43.335421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '605e503c-bfe1-11e4-a8e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '605f447e-bfe1-11e4-a57f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "605e503c-bfe1-11e4-a8e4-705681abff85"], ["organization_id", "605f447e-bfe1-11e4-a57f-705681abff85"], ["created_at", "2015-03-01 07:05:43.338976"], ["updated_at", "2015-03-01 07:05:43.338976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-7" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.346148' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "c0hxMuol3NHypu9O1orvUpy_VnUa2nIxBlCY1_oJlvU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.347716"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.348659"], ["id", "605ecb52-bfe1-11e4-ab46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "605e503c-bfe1-11e4-a8e4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "605e503c-bfe1-11e4-a8e4-705681abff85"], ["name", "org-7"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$Dh802E3N68.MPgoQxGznKe4XTK1k8vLvPQXE8C8txNT1Ckm.jdZ52"], ["created_at", "2015-03-01 07:05:43.359803"], ["updated_at", "2015-03-01 07:05:43.359803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.361687"], ["user_id", "6063067c-bfe1-11e4-9c51-705681abff85"], ["created_at", "2015-03-01 07:05:43.362474"], ["updated_at", "2015-03-01 07:05:43.362474"], ["token", "uRz_fq9Zb6FZicZOZ6qYzyxQydLppRxqfRgKlHNAePo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.366192"], ["updated_at", "2015-03-01 07:05:43.366192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6063067c-bfe1-11e4-9c51-705681abff85' AND "clubhouse_memberships"."organization_id" = '6063f6b8-bfe1-11e4-bffa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6063067c-bfe1-11e4-9c51-705681abff85"], ["organization_id", "6063f6b8-bfe1-11e4-bffa-705681abff85"], ["created_at", "2015-03-01 07:05:43.369680"], ["updated_at", "2015-03-01 07:05:43.369680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$nDz7NkCanY.Ah4atXv/JA.7KdIyShl.Dw5kBoRr0xnPXcr/GmDfI6"], ["created_at", "2015-03-01 07:05:43.381441"], ["updated_at", "2015-03-01 07:05:43.381441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.382980"], ["user_id", "60664b98-bfe1-11e4-9953-705681abff85"], ["created_at", "2015-03-01 07:05:43.383812"], ["updated_at", "2015-03-01 07:05:43.383812"], ["token", "bw0BbY5GeFvJ3LGqIpTcmYY9Kw0I8X99pu4PP7RZ2MI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.387595"], ["updated_at", "2015-03-01 07:05:43.387595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60664b98-bfe1-11e4-9953-705681abff85' AND "clubhouse_memberships"."organization_id" = '606740f2-bfe1-11e4-b19f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60664b98-bfe1-11e4-9953-705681abff85"], ["organization_id", "606740f2-bfe1-11e4-b19f-705681abff85"], ["created_at", "2015-03-01 07:05:43.391543"], ["updated_at", "2015-03-01 07:05:43.391543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.396384' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bw0BbY5GeFvJ3LGqIpTcmYY9Kw0I8X99pu4PP7RZ2MI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.397811"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.398813"], ["id", "6066b2d6-bfe1-11e4-920a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60664b98-bfe1-11e4-9953-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "60664b98-bfe1-11e4-9953-705681abff85"], ["name", "org-9"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '606740f2-bfe1-11e4-b19f-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:05:43.405515"], ["id", "606740f2-bfe1-11e4-b19f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$DPzT0DHjzstFaFbVhtXJO.XgSLIIMllOdttBya/w5QVUXKiAIgwi6"], ["created_at", "2015-03-01 07:05:43.414106"], ["updated_at", "2015-03-01 07:05:43.414106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.415755"], ["user_id", "606b4a58-bfe1-11e4-a8ba-705681abff85"], ["created_at", "2015-03-01 07:05:43.416525"], ["updated_at", "2015-03-01 07:05:43.416525"], ["token", "tn0Cmw2zAsNvmiO_tnjOmL0v_AUtbsgJO2dAtLBRQ5E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.419780"], ["updated_at", "2015-03-01 07:05:43.419780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '606b4a58-bfe1-11e4-a8ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '606c2388-bfe1-11e4-b4cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "606b4a58-bfe1-11e4-a8ba-705681abff85"], ["organization_id", "606c2388-bfe1-11e4-b4cf-705681abff85"], ["created_at", "2015-03-01 07:05:43.423106"], ["updated_at", "2015-03-01 07:05:43.423106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.511904' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tn0Cmw2zAsNvmiO_tnjOmL0v_AUtbsgJO2dAtLBRQ5E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.513996"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.515939"], ["id", "606bab74-bfe1-11e4-b4cf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "606b4a58-bfe1-11e4-a8ba-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "606b4a58-bfe1-11e4-a8ba-705681abff85"], ["name", "org-10"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '606c2388-bfe1-11e4-b4cf-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$6ykvGir4A5k7Bom4PlktIuPAoo6PAyvzi8SahSlN5xP5fzjGVJIpW"], ["created_at", "2015-03-01 07:05:43.533111"], ["updated_at", "2015-03-01 07:05:43.533111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.534849"], ["user_id", "607d732c-bfe1-11e4-bf3d-705681abff85"], ["created_at", "2015-03-01 07:05:43.535646"], ["updated_at", "2015-03-01 07:05:43.535646"], ["token", "52JiIkP8hQQJAPRws8shgNYe6J1LH_JpC7FXt9rClDM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.539954"], ["updated_at", "2015-03-01 07:05:43.539954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '607d732c-bfe1-11e4-bf3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '607e9220-bfe1-11e4-b21c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "607d732c-bfe1-11e4-bf3d-705681abff85"], ["organization_id", "607e9220-bfe1-11e4-b21c-705681abff85"], ["created_at", "2015-03-01 07:05:43.544549"], ["updated_at", "2015-03-01 07:05:43.544549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$wAD1B26OcImgxsdMCS0vJuH1MkKooSNLF9cERdePgfz1Me9Dp/CP."], ["created_at", "2015-03-01 07:05:43.559326"], ["updated_at", "2015-03-01 07:05:43.559326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.561419"], ["user_id", "60817c9c-bfe1-11e4-a96c-705681abff85"], ["created_at", "2015-03-01 07:05:43.562460"], ["updated_at", "2015-03-01 07:05:43.562460"], ["token", "0pCOfQWwX-734RaSpBii31bUTUWzlSgBHTqOMrWyFMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.567142"], ["updated_at", "2015-03-01 07:05:43.567142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60817c9c-bfe1-11e4-a96c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6082a5ae-bfe1-11e4-b7e6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60817c9c-bfe1-11e4-a96c-705681abff85"], ["organization_id", "6082a5ae-bfe1-11e4-b7e6-705681abff85"], ["created_at", "2015-03-01 07:05:43.570603"], ["updated_at", "2015-03-01 07:05:43.570603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.576409' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0pCOfQWwX-734RaSpBii31bUTUWzlSgBHTqOMrWyFMc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.578035"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.579097"], ["id", "60820d06-bfe1-11e4-89e4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60817c9c-bfe1-11e4-a96c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.584755"], ["updated_at", "2015-03-01 07:05:43.584755"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60855c9a-bfe1-11e4-a059-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60817c9c-bfe1-11e4-a96c-705681abff85' AND "clubhouse_memberships"."organization_id" = '60855c9a-bfe1-11e4-a059-705681abff85') LIMIT 1 SQL (8.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60817c9c-bfe1-11e4-a96c-705681abff85"], ["admin", "t"], ["organization_id", "60855c9a-bfe1-11e4-a059-705681abff85"], ["created_at", "2015-03-01 07:05:43.589833"], ["updated_at", "2015-03-01 07:05:43.589833"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 0.8ms | ActiveRecord: 10.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$OPIiTUjvX6V58mXs2PqoGulQCf9RUTknYyxfqqB5ttmpZ5ljtcoVG"], ["created_at", "2015-03-01 07:05:43.608776"], ["updated_at", "2015-03-01 07:05:43.608776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.611199"], ["user_id", "60890854-bfe1-11e4-996e-705681abff85"], ["created_at", "2015-03-01 07:05:43.612192"], ["updated_at", "2015-03-01 07:05:43.612192"], ["token", "tLfOqVatgAbhQn_Dr4FMECixfiULhsXXyBXIYnVJ7zE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.616278"], ["updated_at", "2015-03-01 07:05:43.616278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60890854-bfe1-11e4-996e-705681abff85' AND "clubhouse_memberships"."organization_id" = '608a2504-bfe1-11e4-a41c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60890854-bfe1-11e4-996e-705681abff85"], ["organization_id", "608a2504-bfe1-11e4-a41c-705681abff85"], ["created_at", "2015-03-01 07:05:43.619836"], ["updated_at", "2015-03-01 07:05:43.619836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.625898' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tLfOqVatgAbhQn_Dr4FMECixfiULhsXXyBXIYnVJ7zE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.627407"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.628518"], ["id", "60899c92-bfe1-11e4-bc39-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60890854-bfe1-11e4-996e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$wk3ZDgNUbv1pCbqqfgdh1ux7AyxL8B1204fx59z9XWn.44RNlyI.O"], ["created_at", "2015-03-01 07:05:43.641672"], ["updated_at", "2015-03-01 07:05:43.641672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.643534"], ["user_id", "608e0624-bfe1-11e4-8548-705681abff85"], ["created_at", "2015-03-01 07:05:43.644513"], ["updated_at", "2015-03-01 07:05:43.644513"], ["token", "09mxzRlolOHwodmw7emLZAeDhbQliHoSaSuIIfX--bI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.648308"], ["updated_at", "2015-03-01 07:05:43.648308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '608e0624-bfe1-11e4-8548-705681abff85' AND "clubhouse_memberships"."organization_id" = '608f0696-bfe1-11e4-adb4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "608e0624-bfe1-11e4-8548-705681abff85"], ["organization_id", "608f0696-bfe1-11e4-adb4-705681abff85"], ["created_at", "2015-03-01 07:05:43.651862"], ["updated_at", "2015-03-01 07:05:43.651862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$0ZvYN66/7R0TvOOeNNyYJuJF8LLReIUZ.NNjzXsEe/ICLvCb.AC0K"], ["created_at", "2015-03-01 07:05:43.665144"], ["updated_at", "2015-03-01 07:05:43.665144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.667000"], ["user_id", "60919b90-bfe1-11e4-8e2c-705681abff85"], ["created_at", "2015-03-01 07:05:43.668288"], ["updated_at", "2015-03-01 07:05:43.668288"], ["token", "xWl8Ho6iL3nhpFduw69QKGyfp_9BDwc_6GxZKM8ZKfY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.674161"], ["updated_at", "2015-03-01 07:05:43.674161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60919b90-bfe1-11e4-8e2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6092fc4c-bfe1-11e4-a8fe-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60919b90-bfe1-11e4-8e2c-705681abff85"], ["organization_id", "6092fc4c-bfe1-11e4-a8fe-705681abff85"], ["created_at", "2015-03-01 07:05:43.677929"], ["updated_at", "2015-03-01 07:05:43.677929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/6092fc4c-bfe1-11e4-a8fe-705681abff85" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"6092fc4c-bfe1-11e4-a8fe-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.682942' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xWl8Ho6iL3nhpFduw69QKGyfp_9BDwc_6GxZKM8ZKfY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.684313"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.685298"], ["id", "60922b28-bfe1-11e4-a168-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60919b90-bfe1-11e4-8e2c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "60919b90-bfe1-11e4-8e2c-705681abff85"], ["id", "6092fc4c-bfe1-11e4-a8fe-705681abff85"]] Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$jHB6KkthWacHBCFGu2pgxOL7tww4iBqltC8aFGpfIotkbpspkq1zK"], ["created_at", "2015-03-01 07:05:43.698219"], ["updated_at", "2015-03-01 07:05:43.698219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.699968"], ["user_id", "6096a3c4-bfe1-11e4-a202-705681abff85"], ["created_at", "2015-03-01 07:05:43.700928"], ["updated_at", "2015-03-01 07:05:43.700928"], ["token", "OqbYQJrTD_tLzjHe4O-gv1bdQEgW5t0FpYbS4GTrR3Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.704837"], ["updated_at", "2015-03-01 07:05:43.704837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6096a3c4-bfe1-11e4-a202-705681abff85' AND "clubhouse_memberships"."organization_id" = '6097a602-bfe1-11e4-a188-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6096a3c4-bfe1-11e4-a202-705681abff85"], ["organization_id", "6097a602-bfe1-11e4-a188-705681abff85"], ["created_at", "2015-03-01 07:05:43.708644"], ["updated_at", "2015-03-01 07:05:43.708644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$GeqU1KztuM95d4tMXKFlzu64aeJxDOJ.spxgOFuBgTocly1uPsKCe"], ["created_at", "2015-03-01 07:05:43.714006"], ["updated_at", "2015-03-01 07:05:43.714006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.717511"], ["updated_at", "2015-03-01 07:05:43.717511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60990cfe-bfe1-11e4-8731-705681abff85' AND "clubhouse_memberships"."organization_id" = '6099a25e-bfe1-11e4-abd1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60990cfe-bfe1-11e4-8731-705681abff85"], ["organization_id", "6099a25e-bfe1-11e4-abd1-705681abff85"], ["created_at", "2015-03-01 07:05:43.721701"], ["updated_at", "2015-03-01 07:05:43.721701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$bhkzFYN5cyBcig/FFWzpku2FlbP3p8a3GMUYrst4ZevH.NDo/Rm.C"], ["created_at", "2015-03-01 07:05:43.736180"], ["updated_at", "2015-03-01 07:05:43.736180"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.738916"], ["user_id", "609c7cf4-bfe1-11e4-9414-705681abff85"], ["created_at", "2015-03-01 07:05:43.739871"], ["updated_at", "2015-03-01 07:05:43.739871"], ["token", "5Nbo8z0MKOGEfAI-0tDLdIS6uQSFI8iXhSTeWY_Mtr0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.744022"], ["updated_at", "2015-03-01 07:05:43.744022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '609c7cf4-bfe1-11e4-9414-705681abff85' AND "clubhouse_memberships"."organization_id" = '609da318-bfe1-11e4-9e40-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "609c7cf4-bfe1-11e4-9414-705681abff85"], ["organization_id", "609da318-bfe1-11e4-9e40-705681abff85"], ["created_at", "2015-03-01 07:05:43.747963"], ["updated_at", "2015-03-01 07:05:43.747963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$BZYUbi3i7a6jfaNZp/FTeet6I3u4SioxSjfZvnRpn.j1ztgqT48Uq"], ["created_at", "2015-03-01 07:05:43.753263"], ["updated_at", "2015-03-01 07:05:43.753263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.757439"], ["updated_at", "2015-03-01 07:05:43.757439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '609f12ac-bfe1-11e4-b9e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '609fad2a-bfe1-11e4-bdf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "609f12ac-bfe1-11e4-b9e6-705681abff85"], ["organization_id", "609fad2a-bfe1-11e4-bdf6-705681abff85"], ["created_at", "2015-03-01 07:05:43.761379"], ["updated_at", "2015-03-01 07:05:43.761379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.767676' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5Nbo8z0MKOGEfAI-0tDLdIS6uQSFI8iXhSTeWY_Mtr0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.769512"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.770649"], ["id", "609d06f6-bfe1-11e4-8079-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "609c7cf4-bfe1-11e4-9414-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "609c7cf4-bfe1-11e4-9414-705681abff85"]] Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$Nj4vEXGDagbvJwJT4tLLqOSLEB42qRenTpYdRaWBoWiA0cr7L2qSu"], ["created_at", "2015-03-01 07:05:43.783853"], ["updated_at", "2015-03-01 07:05:43.783853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.785858"], ["user_id", "60a3bcbc-bfe1-11e4-95c7-705681abff85"], ["created_at", "2015-03-01 07:05:43.786806"], ["updated_at", "2015-03-01 07:05:43.786806"], ["token", "i9nR3m5xi3tJe-lKROvyMhXIyWjDuAVmnyUdkYFOglM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.791623"], ["updated_at", "2015-03-01 07:05:43.791623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60a3bcbc-bfe1-11e4-95c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '60a4e4e8-bfe1-11e4-80a2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60a3bcbc-bfe1-11e4-95c7-705681abff85"], ["organization_id", "60a4e4e8-bfe1-11e4-80a2-705681abff85"], ["created_at", "2015-03-01 07:05:43.795856"], ["updated_at", "2015-03-01 07:05:43.795856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$CMR4VT3Pmwb2IqnOd0FghOwXpTbxhc7x.qLaIQAnf/0uIRRTph7Ky"], ["created_at", "2015-03-01 07:05:43.811203"], ["updated_at", "2015-03-01 07:05:43.811203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.813317"], ["user_id", "60a7e562-bfe1-11e4-9689-705681abff85"], ["created_at", "2015-03-01 07:05:43.814835"], ["updated_at", "2015-03-01 07:05:43.814835"], ["token", "sWxF-B0YEcDg_GtdPPH31P3KhsUxXleFu6J7NGDz470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.819270"], ["updated_at", "2015-03-01 07:05:43.819270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60a7e562-bfe1-11e4-9689-705681abff85' AND "clubhouse_memberships"."organization_id" = '60a922b0-bfe1-11e4-b5e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60a7e562-bfe1-11e4-9689-705681abff85"], ["organization_id", "60a922b0-bfe1-11e4-b5e3-705681abff85"], ["created_at", "2015-03-01 07:05:43.823505"], ["updated_at", "2015-03-01 07:05:43.823505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/60a922b0-bfe1-11e4-b5e3-705681abff85" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"60a922b0-bfe1-11e4-b5e3-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.829285' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sWxF-B0YEcDg_GtdPPH31P3KhsUxXleFu6J7NGDz470"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.831150"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.832352"], ["id", "60a88008-bfe1-11e4-9841-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60a7e562-bfe1-11e4-9689-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "60a7e562-bfe1-11e4-9689-705681abff85"], ["id", "60a922b0-bfe1-11e4-b5e3-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '60a922b0-bfe1-11e4-b5e3-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:05:43.839307"], ["id", "60a922b0-bfe1-11e4-b5e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.8ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$oHq9isleT6SuwTu/mVSJoO4yzZVtZiAp280DZq9XlLxadB23tvp/S"], ["created_at", "2015-03-01 07:05:43.849456"], ["updated_at", "2015-03-01 07:05:43.849456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.851600"], ["user_id", "60adba32-bfe1-11e4-b9cc-705681abff85"], ["created_at", "2015-03-01 07:05:43.852599"], ["updated_at", "2015-03-01 07:05:43.852599"], ["token", "UCQegkfAi6Nv_XA0RQJ9RF9no43I_V1mVK7WgYzNrms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.856937"], ["updated_at", "2015-03-01 07:05:43.856937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60adba32-bfe1-11e4-b9cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '60aedb24-bfe1-11e4-8086-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60adba32-bfe1-11e4-b9cc-705681abff85"], ["organization_id", "60aedb24-bfe1-11e4-8086-705681abff85"], ["created_at", "2015-03-01 07:05:43.860986"], ["updated_at", "2015-03-01 07:05:43.860986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/60aedb24-bfe1-11e4-8086-705681abff85" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"60aedb24-bfe1-11e4-8086-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.867237' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UCQegkfAi6Nv_XA0RQJ9RF9no43I_V1mVK7WgYzNrms"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.869051"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.870313"], ["id", "60ae4934-bfe1-11e4-91ef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60adba32-bfe1-11e4-b9cc-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "60adba32-bfe1-11e4-b9cc-705681abff85"], ["id", "60aedb24-bfe1-11e4-8086-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '60aedb24-bfe1-11e4-8086-705681abff85') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$Hq3bzNz/sIdvXaxEmdeIwOMCjYNZvfcJ5Bz7roLP1nQlUPFNTQkkG"], ["created_at", "2015-03-01 07:05:43.886340"], ["updated_at", "2015-03-01 07:05:43.886340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.888826"], ["user_id", "60b36450-bfe1-11e4-9885-705681abff85"], ["created_at", "2015-03-01 07:05:43.890001"], ["updated_at", "2015-03-01 07:05:43.890001"], ["token", "EKDxX0VGM2URhRPBiMx8YyBjv0J8AoCmnZG_jjP3STY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.894691"], ["updated_at", "2015-03-01 07:05:43.894691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60b36450-bfe1-11e4-9885-705681abff85' AND "clubhouse_memberships"."organization_id" = '60b4a2fc-bfe1-11e4-8503-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60b36450-bfe1-11e4-9885-705681abff85"], ["organization_id", "60b4a2fc-bfe1-11e4-8503-705681abff85"], ["created_at", "2015-03-01 07:05:43.898718"], ["updated_at", "2015-03-01 07:05:43.898718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-23" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-23"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-23"]] Completed 200 OK in 2ms (ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$/xzncYX2oeSZmflMctFngu8OiEVRrRkMsHGq5a.TN.xMECvxHPSFm"], ["created_at", "2015-03-01 07:05:43.915946"], ["updated_at", "2015-03-01 07:05:43.915946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.918887"], ["user_id", "60b7eda4-bfe1-11e4-81ea-705681abff85"], ["created_at", "2015-03-01 07:05:43.919782"], ["updated_at", "2015-03-01 07:05:43.919782"], ["token", "Z0vls8GDwTWQ_D6g2Z6VQRoosyOEUPo3YypdBaT5dR8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.923719"], ["updated_at", "2015-03-01 07:05:43.923719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60b7eda4-bfe1-11e4-81ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '60b90fae-bfe1-11e4-b66e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60b7eda4-bfe1-11e4-81ea-705681abff85"], ["organization_id", "60b90fae-bfe1-11e4-b66e-705681abff85"], ["created_at", "2015-03-01 07:05:43.927209"], ["updated_at", "2015-03-01 07:05:43.927209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$x6THUgJAXnqx34q9Q5/BWObsbmKuDZnvBUqACrIuX3W7ezYuOqmbm"], ["created_at", "2015-03-01 07:05:43.940470"], ["updated_at", "2015-03-01 07:05:43.940470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.942610"], ["user_id", "60bba368-bfe1-11e4-8da8-705681abff85"], ["created_at", "2015-03-01 07:05:43.943532"], ["updated_at", "2015-03-01 07:05:43.943532"], ["token", "dhKVdRqOKm5Tvv0w8p9B1_Xx-nu6R4e7w7NwSeD7Ppk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.948107"], ["updated_at", "2015-03-01 07:05:43.948107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60bba368-bfe1-11e4-8da8-705681abff85' AND "clubhouse_memberships"."organization_id" = '60bccbc6-bfe1-11e4-98cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60bba368-bfe1-11e4-8da8-705681abff85"], ["organization_id", "60bccbc6-bfe1-11e4-98cf-705681abff85"], ["created_at", "2015-03-01 07:05:43.952220"], ["updated_at", "2015-03-01 07:05:43.952220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$YvD0kDBmppk.WstWKdoO1uKAmr6Xl33nk1MvpG8vIQV40yJPrSF5y"], ["created_at", "2015-03-01 07:05:43.966676"], ["updated_at", "2015-03-01 07:05:43.966676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.968595"], ["user_id", "60bfa0f8-bfe1-11e4-b23d-705681abff85"], ["created_at", "2015-03-01 07:05:43.969801"], ["updated_at", "2015-03-01 07:05:43.969801"], ["token", "ZWOn7TJvDsYCCS1eMsuhnJrazMdmnEmvPtmKxB7qOA0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:43.973742"], ["updated_at", "2015-03-01 07:05:43.973742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60bfa0f8-bfe1-11e4-b23d-705681abff85' AND "clubhouse_memberships"."organization_id" = '60c0adfe-bfe1-11e4-9570-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60bfa0f8-bfe1-11e4-b23d-705681abff85"], ["organization_id", "60c0adfe-bfe1-11e4-9570-705681abff85"], ["created_at", "2015-03-01 07:05:43.977057"], ["updated_at", "2015-03-01 07:05:43.977057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/60c0adfe-bfe1-11e4-9570-705681abff85" for 127.0.0.1 at 2015-02-28 23:05:43 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"60c0adfe-bfe1-11e4-9570-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:43.982189' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZWOn7TJvDsYCCS1eMsuhnJrazMdmnEmvPtmKxB7qOA0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:43.983710"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:43.984664"], ["id", "60c0235c-bfe1-11e4-a51c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60bfa0f8-bfe1-11e4-b23d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "60bfa0f8-bfe1-11e4-b23d-705681abff85"], ["id", "60c0adfe-bfe1-11e4-9570-705681abff85"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "60c0adfe-bfe1-11e4-9570-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$3qgBwkv0Bkl30/RXcv4EX.DjZXDCWBngblGk14rfiDhTRyV.mE3jm"], ["created_at", "2015-03-01 07:05:43.997405"], ["updated_at", "2015-03-01 07:05:43.997405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (12.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:43.999247"], ["user_id", "60c4518e-bfe1-11e4-9888-705681abff85"], ["created_at", "2015-03-01 07:05:44.000033"], ["updated_at", "2015-03-01 07:05:44.000033"], ["token", "9RKE36ZvcywPObOMQ8M0tTbhYskOGXFbv_ubN7tmxfk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:44.016920"], ["updated_at", "2015-03-01 07:05:44.016920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60c4518e-bfe1-11e4-9888-705681abff85' AND "clubhouse_memberships"."organization_id" = '60c745c4-bfe1-11e4-b97c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60c4518e-bfe1-11e4-9888-705681abff85"], ["organization_id", "60c745c4-bfe1-11e4-b97c-705681abff85"], ["created_at", "2015-03-01 07:05:44.020375"], ["updated_at", "2015-03-01 07:05:44.020375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 23:05:44 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$0IMtLohLHqrpa4JARyZuye0sy5i4IMMhSiDauD45WLuKamjxK2FA2"], ["created_at", "2015-03-01 07:05:44.033220"], ["updated_at", "2015-03-01 07:05:44.033220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:05:44.035031"], ["user_id", "60c9c7ae-bfe1-11e4-8539-705681abff85"], ["created_at", "2015-03-01 07:05:44.035791"], ["updated_at", "2015-03-01 07:05:44.035791"], ["token", "FYn1dMBRdkMhQVcZqYe1GULp40Y-j0dhn7YUhMKBPK8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:44.039253"], ["updated_at", "2015-03-01 07:05:44.039253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60c9c7ae-bfe1-11e4-8539-705681abff85' AND "clubhouse_memberships"."organization_id" = '60caaa52-bfe1-11e4-b823-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60c9c7ae-bfe1-11e4-8539-705681abff85"], ["organization_id", "60caaa52-bfe1-11e4-b823-705681abff85"], ["created_at", "2015-03-01 07:05:44.042376"], ["updated_at", "2015-03-01 07:05:44.042376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-28" for 127.0.0.1 at 2015-02-28 23:05:44 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-28", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:05:44.046987' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FYn1dMBRdkMhQVcZqYe1GULp40Y-j0dhn7YUhMKBPK8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:05:44.048469"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:05:44.049544"], ["id", "60ca2bcc-bfe1-11e4-831b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60c9c7ae-bfe1-11e4-8539-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "60c9c7ae-bfe1-11e4-8539-705681abff85"], ["name", "org-28"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "60caaa52-bfe1-11e4-b823-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:44.059157"], ["updated_at", "2015-03-01 07:05:44.059157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '60cdb634-bfe1-11e4-b491-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "60cdb634-bfe1-11e4-b491-705681abff85"], ["created_at", "2015-03-01 07:05:44.063172"], ["updated_at", "2015-03-01 07:05:44.063172"], ["token", "Sn29eVB-l6SYg-TvIjsy2U0LMxI6B1Hs9BUfAbtJG0w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 23:05:44 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ba4810650_134a63fc80644fbe811995@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Sn29eVB-l6SYg-TvIjsy2U0LMxI6B1Hs9BUfAbtJG0w If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:44.071631"], ["updated_at", "2015-03-01 07:05:44.071631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '60cf9b2a-bfe1-11e4-bb61-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "60cf9b2a-bfe1-11e4-bb61-705681abff85"], ["created_at", "2015-03-01 07:05:44.075231"], ["updated_at", "2015-03-01 07:05:44.075231"], ["token", "FyiRDw-xE6Qw5z8Wr3ZFhesjh7CbUPmhE6TCInb7PEA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 23:05:44 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ba481361a_134a63fc80644fbe81209f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/FyiRDw-xE6Qw5z8Wr3ZFhesjh7CbUPmhE6TCInb7PEA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:44.084107"], ["updated_at", "2015-03-01 07:05:44.084107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '60d1825a-bfe1-11e4-9959-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "60d1825a-bfe1-11e4-9959-705681abff85"], ["created_at", "2015-03-01 07:05:44.087569"], ["updated_at", "2015-03-01 07:05:44.087569"], ["token", "pa3agAzXrtrnpxrLbBKtrDOcKvR6I4nI6Wrqm4l2ORQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.6ms) Date: Sat, 28 Feb 2015 23:05:44 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ba481634d_134a63fc80644fbe8121f3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/pa3agAzXrtrnpxrLbBKtrDOcKvR6I4nI6Wrqm4l2ORQ If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:44.095948"], ["updated_at", "2015-03-01 07:05:44.095948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '60d350f8-bfe1-11e4-bdf2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "60d350f8-bfe1-11e4-bdf2-705681abff85"], ["created_at", "2015-03-01 07:05:44.099273"], ["updated_at", "2015-03-01 07:05:44.099273"], ["token", "9nfGNrvM_NDjPGIhJtBRpIW6Aappf_5ny_eKslQ2Wes"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 23:05:44 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ba48191ef_134a63fc80644fbe8122fc@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/9nfGNrvM_NDjPGIhJtBRpIW6Aappf_5ny_eKslQ2Wes If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:44.111644"], ["updated_at", "2015-03-01 07:05:44.111644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '60d5b622-bfe1-11e4-ab69-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "60d5b622-bfe1-11e4-ab69-705681abff85"], ["created_at", "2015-03-01 07:05:44.122984"], ["updated_at", "2015-03-01 07:05:44.122984"], ["token", "IFbaNAEE5hTkPjZJrUAjCwlN0qwbpJ5JwZIP_IOpJig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60d5b622-bfe1-11e4-ab69-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '60d5b622-bfe1-11e4-ab69-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60d5b622-bfe1-11e4-ab69-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '60d5b622-bfe1-11e4-ab69-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:05:44.140246"], ["updated_at", "2015-03-01 07:05:44.140246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '60da1a5a-bfe1-11e4-a70d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "60da1a5a-bfe1-11e4-a70d-705681abff85"], ["created_at", "2015-03-01 07:05:44.143642"], ["updated_at", "2015-03-01 07:05:44.143642"], ["token", "y_9bU4SNzL3YDLo0FpXYkBuGM-gO2jzeUahEPnQmgY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) BEGIN Clubhouse::Organization Exists (12.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:34:26.816375"], ["updated_at", "2015-03-01 07:34:26.816375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:34:26.853219"], ["updated_at", "2015-03-01 07:34:26.853219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:34:26.873713"], ["updated_at", "2015-03-01 07:34:26.873713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:34:26.878733"], ["updated_at", "2015-03-01 07:34:26.878733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63af1cea-bfe5-11e4-b7a1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (5.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:40:15.306973"], ["updated_at", "2015-03-01 07:40:15.306973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:40:15.352410"], ["updated_at", "2015-03-01 07:40:15.352410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:40:15.382364"], ["updated_at", "2015-03-01 07:40:15.382364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (15.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:40:15.405273"], ["updated_at", "2015-03-01 07:40:15.405273"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "336c2c5c-bfe6-11e4-b694-705681abff85"]]  (0.5ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:42:21.564396"], ["updated_at", "2015-03-01 07:42:21.564396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:42:21.629499"], ["updated_at", "2015-03-01 07:42:21.629499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n A m E' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:42:21.658310"], ["updated_at", "2015-03-01 07:42:21.658310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:42:21.666144"], ["updated_at", "2015-03-01 07:42:21.666144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7eae01fe-bfe6-11e4-a5be-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (6.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:43:12.149073"], ["updated_at", "2015-03-01 07:43:12.149073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:43:12.157305"], ["updated_at", "2015-03-01 07:43:12.157305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:43:12.161687"], ["updated_at", "2015-03-01 07:43:12.161687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:43:12.247893"], ["updated_at", "2015-03-01 07:43:12.247893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:43:12.253327"], ["updated_at", "2015-03-01 07:43:12.253327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "9cd4eddc-bfe6-11e4-a6a9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (6.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$uwpzwjqCj0Hb0zo8PbJ1We75lmFHB4go0jFhUXVchOfvl1Q4V/gZW"], ["created_at", "2015-03-01 07:47:28.977626"], ["updated_at", "2015-03-01 07:47:28.977626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$VR5cm1pEqruLybVb/g2ljei2eTyQ8F1whVse121jFtR7DaIhSoRri"], ["created_at", "2015-03-01 07:47:28.985152"], ["updated_at", "2015-03-01 07:47:28.985152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:28.993834"], ["user_id", "35da3ba4-bfe7-11e4-8a7e-705681abff85"], ["created_at", "2015-03-01 07:47:29.000481"], ["updated_at", "2015-03-01 07:47:29.000481"], ["token", "A1j0Bl2eSmYxI6cCC6kuQVH9uuFhiaJKmk1xV5rJ3n8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.011270"], ["updated_at", "2015-03-01 07:47:29.011270"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35da3ba4-bfe7-11e4-8a7e-705681abff85' AND "clubhouse_memberships"."organization_id" = '35df1dc2-bfe7-11e4-a3ae-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35da3ba4-bfe7-11e4-8a7e-705681abff85"], ["organization_id", "35df1dc2-bfe7-11e4-a3ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.030226"], ["updated_at", "2015-03-01 07:47:29.030226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35db16aa-bfe7-11e4-a971-705681abff85' AND "clubhouse_memberships"."organization_id" = '35df1dc2-bfe7-11e4-a3ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35db16aa-bfe7-11e4-a971-705681abff85"], ["organization_id", "35df1dc2-bfe7-11e4-a3ae-705681abff85"], ["created_at", "2015-03-01 07:47:29.034993"], ["updated_at", "2015-03-01 07:47:29.034993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$2UIc7g9RXEO2au/HYhpHzOdoEXBVV3GTyy1oDmCUkzS3WtHpgYuwa"], ["created_at", "2015-03-01 07:47:29.072741"], ["updated_at", "2015-03-01 07:47:29.072741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$qhZiodjC8uQ8G32Ad6SBrem.9a3As9JEjfRT1UxAfOkYxSoca5jEq"], ["created_at", "2015-03-01 07:47:29.077330"], ["updated_at", "2015-03-01 07:47:29.077330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.078995"], ["user_id", "35e87674-bfe7-11e4-ae3c-705681abff85"], ["created_at", "2015-03-01 07:47:29.080185"], ["updated_at", "2015-03-01 07:47:29.080185"], ["token", "mczIEX1tClfMEEs50wVdNSEL1SyMouAUXwiU6tfkSG0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.084486"], ["updated_at", "2015-03-01 07:47:29.084486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35e87674-bfe7-11e4-ae3c-705681abff85' AND "clubhouse_memberships"."organization_id" = '35ea48d2-bfe7-11e4-bb10-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35e87674-bfe7-11e4-ae3c-705681abff85"], ["organization_id", "35ea48d2-bfe7-11e4-bb10-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.088995"], ["updated_at", "2015-03-01 07:47:29.088995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35e927a4-bfe7-11e4-ae6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '35ea48d2-bfe7-11e4-bb10-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35e927a4-bfe7-11e4-ae6b-705681abff85"], ["organization_id", "35ea48d2-bfe7-11e4-bb10-705681abff85"], ["created_at", "2015-03-01 07:47:29.093071"], ["updated_at", "2015-03-01 07:47:29.093071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/35eaf548-bfe7-11e4-bbf7-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"35eaf548-bfe7-11e4-bbf7-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.101184' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mczIEX1tClfMEEs50wVdNSEL1SyMouAUXwiU6tfkSG0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.109299"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.110702"], ["id", "35e9af62-bfe7-11e4-9999-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35e87674-bfe7-11e4-ae3c-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "35e87674-bfe7-11e4-ae3c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '35e87674-bfe7-11e4-ae3c-705681abff85' LIMIT 1 [["organization_id", "35ea48d2-bfe7-11e4-bb10-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "35ea48d2-bfe7-11e4-bb10-705681abff85"], ["id", "35eaf548-bfe7-11e4-bbf7-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35e87674-bfe7-11e4-ae3c-705681abff85"]] Completed 500 Internal Server Error in 42ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$nbE12SOPQXgbMsmp0bQVGOrsPAaN7Z4tkYD8/5b4eGA2Ij4Tg0X6e"], ["created_at", "2015-03-01 07:47:29.149153"], ["updated_at", "2015-03-01 07:47:29.149153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$oRDTDhUag1y.hCj3WenWgOOZ0hqKyrHXiGk2Qdc4TdegAPk0KNkyG"], ["created_at", "2015-03-01 07:47:29.154162"], ["updated_at", "2015-03-01 07:47:29.154162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.155785"], ["user_id", "35f4244c-bfe7-11e4-b62e-705681abff85"], ["created_at", "2015-03-01 07:47:29.156718"], ["updated_at", "2015-03-01 07:47:29.156718"], ["token", "P7q0POCr_66xTZ8qft2nCKc4y0iFKerZ8UEkybrLEsU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.160677"], ["updated_at", "2015-03-01 07:47:29.160677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35f4244c-bfe7-11e4-b62e-705681abff85' AND "clubhouse_memberships"."organization_id" = '35f5e052-bfe7-11e4-b46d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35f4244c-bfe7-11e4-b62e-705681abff85"], ["organization_id", "35f5e052-bfe7-11e4-b46d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.164761"], ["updated_at", "2015-03-01 07:47:29.164761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35f4e044-bfe7-11e4-971c-705681abff85' AND "clubhouse_memberships"."organization_id" = '35f5e052-bfe7-11e4-b46d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35f4e044-bfe7-11e4-971c-705681abff85"], ["organization_id", "35f5e052-bfe7-11e4-b46d-705681abff85"], ["created_at", "2015-03-01 07:47:29.168429"], ["updated_at", "2015-03-01 07:47:29.168429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/35f70dce-bfe7-11e4-b7f6-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"35f70dce-bfe7-11e4-b7f6-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.173844' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "P7q0POCr_66xTZ8qft2nCKc4y0iFKerZ8UEkybrLEsU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.175232"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.176252"], ["id", "35f54b9c-bfe7-11e4-b47c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35f4244c-bfe7-11e4-b62e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "35f4244c-bfe7-11e4-b62e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '35f4244c-bfe7-11e4-b62e-705681abff85' LIMIT 1 [["organization_id", "35f5e052-bfe7-11e4-b46d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "35f5e052-bfe7-11e4-b46d-705681abff85"], ["id", "35f70dce-bfe7-11e4-b7f6-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35f4e044-bfe7-11e4-971c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35f5e052-bfe7-11e4-b46d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35f4e044-bfe7-11e4-971c-705681abff85' AND "clubhouse_memberships"."id" != '35f70dce-bfe7-11e4-b7f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '35f5e052-bfe7-11e4-b46d-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:47:29.187517"], ["id", "35f70dce-bfe7-11e4-b7f6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 4.5ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$6hY5eSd/w56kAcOqaNPzc.0sx8hkIjM8Ou0HrrfI8SPtfSofL2c3u"], ["created_at", "2015-03-01 07:47:29.202334"], ["updated_at", "2015-03-01 07:47:29.202334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$vWOYhFsd1VF9LIqYgbb3uOQUhXEn/sucUkJ0aXVfXPV0WhNJz/92S"], ["created_at", "2015-03-01 07:47:29.207106"], ["updated_at", "2015-03-01 07:47:29.207106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.208920"], ["user_id", "35fc3e66-bfe7-11e4-8567-705681abff85"], ["created_at", "2015-03-01 07:47:29.209752"], ["updated_at", "2015-03-01 07:47:29.209752"], ["token", "VNMorB5ycQQO_gPX8ozsrgDpq1P_p1ob1A8ZYN481as"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.213461"], ["updated_at", "2015-03-01 07:47:29.213461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35fc3e66-bfe7-11e4-8567-705681abff85' AND "clubhouse_memberships"."organization_id" = '35fdec3e-bfe7-11e4-a4cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35fc3e66-bfe7-11e4-8567-705681abff85"], ["organization_id", "35fdec3e-bfe7-11e4-a4cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.216928"], ["updated_at", "2015-03-01 07:47:29.216928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35fcf7ac-bfe7-11e4-aab4-705681abff85' AND "clubhouse_memberships"."organization_id" = '35fdec3e-bfe7-11e4-a4cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35fcf7ac-bfe7-11e4-aab4-705681abff85"], ["organization_id", "35fdec3e-bfe7-11e4-a4cc-705681abff85"], ["created_at", "2015-03-01 07:47:29.220728"], ["updated_at", "2015-03-01 07:47:29.220728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/35fe820c-bfe7-11e4-9915-705681abff85" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"35fe820c-bfe7-11e4-9915-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.226347' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VNMorB5ycQQO_gPX8ozsrgDpq1P_p1ob1A8ZYN481as"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.227910"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.228937"], ["id", "35fd64b2-bfe7-11e4-9024-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35fc3e66-bfe7-11e4-8567-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "35fc3e66-bfe7-11e4-8567-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "35fc3e66-bfe7-11e4-8567-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "35fc3e66-bfe7-11e4-8567-705681abff85"], ["id", "35fe820c-bfe7-11e4-9915-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35fdec3e-bfe7-11e4-a4cc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35fc3e66-bfe7-11e4-8567-705681abff85"]] Completed 200 OK in 14ms (Views: 3.9ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$MkW5qjOCY.RhPojnnm7Gqeg.SqjzCtJRcHwFHhXPC.t62eAhHbqx6"], ["created_at", "2015-03-01 07:47:29.247749"], ["updated_at", "2015-03-01 07:47:29.247749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$zSWVLdCfxmzRdR/WaorCZOTpDsfCRt3dZcYcO00IMbOPxe.uCZ8hi"], ["created_at", "2015-03-01 07:47:29.252767"], ["updated_at", "2015-03-01 07:47:29.252767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.255170"], ["user_id", "36032a28-bfe7-11e4-aa9b-705681abff85"], ["created_at", "2015-03-01 07:47:29.256067"], ["updated_at", "2015-03-01 07:47:29.256067"], ["token", "wwNFLV1zlVJM-wPwiO8Elz7XYDdo3PDsgtMD-9C-6gc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.259756"], ["updated_at", "2015-03-01 07:47:29.259756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36032a28-bfe7-11e4-aa9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3604fd9e-bfe7-11e4-a13c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "36032a28-bfe7-11e4-aa9b-705681abff85"], ["organization_id", "3604fd9e-bfe7-11e4-a13c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.263251"], ["updated_at", "2015-03-01 07:47:29.263251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3603ff2a-bfe7-11e4-98f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3604fd9e-bfe7-11e4-a13c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3603ff2a-bfe7-11e4-98f3-705681abff85"], ["organization_id", "3604fd9e-bfe7-11e4-a13c-705681abff85"], ["created_at", "2015-03-01 07:47:29.266707"], ["updated_at", "2015-03-01 07:47:29.266707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$/Kshb9GsTCPsEqmwXDEInO2SKH2GUjxiAfkI5i7GS5D/68A8fdo9W"], ["created_at", "2015-03-01 07:47:29.281052"], ["updated_at", "2015-03-01 07:47:29.281052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$/WYAdDWgeFgYfQreJLLd7eNijFXUYc7BBQt/2rXLzcXvrRcvFX1sy"], ["created_at", "2015-03-01 07:47:29.286009"], ["updated_at", "2015-03-01 07:47:29.286009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.287725"], ["user_id", "36084076-bfe7-11e4-981e-705681abff85"], ["created_at", "2015-03-01 07:47:29.288675"], ["updated_at", "2015-03-01 07:47:29.288675"], ["token", "0jTyRIRnwC3a9Ganv2IoUHcbT1Cyw3tWA8ua0ADs_Is"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.292205"], ["updated_at", "2015-03-01 07:47:29.292205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36084076-bfe7-11e4-981e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3609f10a-bfe7-11e4-941f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "36084076-bfe7-11e4-981e-705681abff85"], ["organization_id", "3609f10a-bfe7-11e4-941f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.295806"], ["updated_at", "2015-03-01 07:47:29.295806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3608ff84-bfe7-11e4-8092-705681abff85' AND "clubhouse_memberships"."organization_id" = '3609f10a-bfe7-11e4-941f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3608ff84-bfe7-11e4-8092-705681abff85"], ["organization_id", "3609f10a-bfe7-11e4-941f-705681abff85"], ["created_at", "2015-03-01 07:47:29.300953"], ["updated_at", "2015-03-01 07:47:29.300953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$2oYLUmPHdbDeZcMlYhGw.OfDG/pdcPXZHuJ8RY6YCRNBgeaoW2MOO"], ["created_at", "2015-03-01 07:47:29.316447"], ["updated_at", "2015-03-01 07:47:29.316447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Xlz6Frv134LTgx1s9HIJ4OXnow.IKyD5NfghuRMFR85gbnmsG1Vgm"], ["created_at", "2015-03-01 07:47:29.331329"], ["updated_at", "2015-03-01 07:47:29.331329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.333211"], ["user_id", "360da890-bfe7-11e4-8144-705681abff85"], ["created_at", "2015-03-01 07:47:29.334070"], ["updated_at", "2015-03-01 07:47:29.334070"], ["token", "UGgXFcNIL7tfVriejQXUcns4EQQiaIaSJoBF8JRKgk8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.338626"], ["updated_at", "2015-03-01 07:47:29.338626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '360da890-bfe7-11e4-8144-705681abff85' AND "clubhouse_memberships"."organization_id" = '36110580-bfe7-11e4-b914-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "360da890-bfe7-11e4-8144-705681abff85"], ["organization_id", "36110580-bfe7-11e4-b914-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.342111"], ["updated_at", "2015-03-01 07:47:29.342111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '360fed6c-bfe7-11e4-9cab-705681abff85' AND "clubhouse_memberships"."organization_id" = '36110580-bfe7-11e4-b914-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "360fed6c-bfe7-11e4-9cab-705681abff85"], ["organization_id", "36110580-bfe7-11e4-b914-705681abff85"], ["created_at", "2015-03-01 07:47:29.345419"], ["updated_at", "2015-03-01 07:47:29.345419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/36118f28-bfe7-11e4-a042-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"36118f28-bfe7-11e4-a042-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.352140' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UGgXFcNIL7tfVriejQXUcns4EQQiaIaSJoBF8JRKgk8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.353852"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.354859"], ["id", "361061c0-bfe7-11e4-9f12-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "360da890-bfe7-11e4-8144-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "360da890-bfe7-11e4-8144-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '360da890-bfe7-11e4-8144-705681abff85' LIMIT 1 [["organization_id", "36110580-bfe7-11e4-b914-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "36110580-bfe7-11e4-b914-705681abff85"], ["id", "36118f28-bfe7-11e4-a042-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "360da890-bfe7-11e4-8144-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$UmNK2.TuRyQ.Ox1lpVgQRedCejBOYU/3GeBT/yLaUnHrHX89V4ByG"], ["created_at", "2015-03-01 07:47:29.369027"], ["updated_at", "2015-03-01 07:47:29.369027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$7FX5Qrrjr58s227qKbjDpu2yRkDljDK67GkGTNrpRH0pe.SNjnv1G"], ["created_at", "2015-03-01 07:47:29.373972"], ["updated_at", "2015-03-01 07:47:29.373972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.375548"], ["user_id", "3615ba62-bfe7-11e4-94f3-705681abff85"], ["created_at", "2015-03-01 07:47:29.376332"], ["updated_at", "2015-03-01 07:47:29.376332"], ["token", "7xx-_jZm8PCy2mQh8ZODVxfn31T8G_jjVCk8dtMkJ5Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.380332"], ["updated_at", "2015-03-01 07:47:29.380332"]]  (22.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3615ba62-bfe7-11e4-94f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '361763bc-bfe7-11e4-8d59-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3615ba62-bfe7-11e4-94f3-705681abff85"], ["organization_id", "361763bc-bfe7-11e4-8d59-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.418689"], ["updated_at", "2015-03-01 07:47:29.418689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36166886-bfe7-11e4-b2a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '361763bc-bfe7-11e4-8d59-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36166886-bfe7-11e4-b2a8-705681abff85"], ["organization_id", "361763bc-bfe7-11e4-8d59-705681abff85"], ["created_at", "2015-03-01 07:47:29.424861"], ["updated_at", "2015-03-01 07:47:29.424861"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/361e4542-bfe7-11e4-9878-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"361e4542-bfe7-11e4-9878-705681abff85", "membership"=>{}} Pollett::Session Load (1.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.433604' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7xx-_jZm8PCy2mQh8ZODVxfn31T8G_jjVCk8dtMkJ5Q"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.437640"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.440014"], ["id", "3616d0a0-bfe7-11e4-9df1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3615ba62-bfe7-11e4-94f3-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3615ba62-bfe7-11e4-94f3-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3615ba62-bfe7-11e4-94f3-705681abff85' LIMIT 1 [["organization_id", "361763bc-bfe7-11e4-8d59-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "361763bc-bfe7-11e4-8d59-705681abff85"], ["id", "361e4542-bfe7-11e4-9878-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36166886-bfe7-11e4-b2a8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "361e4542-bfe7-11e4-9878-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 17ms (ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$bK8Jn9hXnQVZjCrUqXgVO./6aoRyUR0flyZ47So0bIQYWbKPGOAzq"], ["created_at", "2015-03-01 07:47:29.457179"], ["updated_at", "2015-03-01 07:47:29.457179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$/1SqLDhQnzoRjlZC0D3L7./pRMSaB7u9axkz3txF3ar28WCHRouUq"], ["created_at", "2015-03-01 07:47:29.462775"], ["updated_at", "2015-03-01 07:47:29.462775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.465169"], ["user_id", "36231d4c-bfe7-11e4-8cc5-705681abff85"], ["created_at", "2015-03-01 07:47:29.465970"], ["updated_at", "2015-03-01 07:47:29.465970"], ["token", "r-XrxgD8Oey0yx04nVfk5o1pRlzJxsk_0kps6hSk9JU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.469975"], ["updated_at", "2015-03-01 07:47:29.469975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36231d4c-bfe7-11e4-8cc5-705681abff85' AND "clubhouse_memberships"."organization_id" = '362512f0-bfe7-11e4-b317-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "36231d4c-bfe7-11e4-8cc5-705681abff85"], ["organization_id", "362512f0-bfe7-11e4-b317-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.473633"], ["updated_at", "2015-03-01 07:47:29.473633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '362410bc-bfe7-11e4-afb2-705681abff85' AND "clubhouse_memberships"."organization_id" = '362512f0-bfe7-11e4-b317-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "362410bc-bfe7-11e4-afb2-705681abff85"], ["organization_id", "362512f0-bfe7-11e4-b317-705681abff85"], ["created_at", "2015-03-01 07:47:29.477022"], ["updated_at", "2015-03-01 07:47:29.477022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.481786' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r-XrxgD8Oey0yx04nVfk5o1pRlzJxsk_0kps6hSk9JU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.483540"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.484521"], ["id", "36248466-bfe7-11e4-b66c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36231d4c-bfe7-11e4-8cc5-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36231d4c-bfe7-11e4-8cc5-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36231d4c-bfe7-11e4-8cc5-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "36231d4c-bfe7-11e4-8cc5-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('36231d4c-bfe7-11e4-8cc5-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('362512f0-bfe7-11e4-b317-705681abff85') Completed 200 OK in 18ms (Views: 8.2ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$.qjP1/QTpE8ueAWZW5kq/O0MYuZ4Enna5AaInermqswJ3zasVTsrO"], ["created_at", "2015-03-01 07:47:29.505725"], ["updated_at", "2015-03-01 07:47:29.505725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$zjhIEiFc8v9pmwq2uoGoBu31OAO39ShJ43xxpDRC1iCrdatL/BJkC"], ["created_at", "2015-03-01 07:47:29.510489"], ["updated_at", "2015-03-01 07:47:29.510489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.512115"], ["user_id", "362a83fc-bfe7-11e4-a4a5-705681abff85"], ["created_at", "2015-03-01 07:47:29.513220"], ["updated_at", "2015-03-01 07:47:29.513220"], ["token", "87cqW53szhiRTD-3FFpcsKjBC6N1c_gf4yb8byiWbVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.516749"], ["updated_at", "2015-03-01 07:47:29.516749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '362a83fc-bfe7-11e4-a4a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '362c2ffe-bfe7-11e4-9444-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "362a83fc-bfe7-11e4-a4a5-705681abff85"], ["organization_id", "362c2ffe-bfe7-11e4-9444-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.520177"], ["updated_at", "2015-03-01 07:47:29.520177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '362b3f04-bfe7-11e4-b471-705681abff85' AND "clubhouse_memberships"."organization_id" = '362c2ffe-bfe7-11e4-9444-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "362b3f04-bfe7-11e4-b471-705681abff85"], ["organization_id", "362c2ffe-bfe7-11e4-9444-705681abff85"], ["created_at", "2015-03-01 07:47:29.523404"], ["updated_at", "2015-03-01 07:47:29.523404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/362d328c-bfe7-11e4-9fb2-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"362d328c-bfe7-11e4-9fb2-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.528765' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "87cqW53szhiRTD-3FFpcsKjBC6N1c_gf4yb8byiWbVI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.530235"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.531202"], ["id", "362bb2e0-bfe7-11e4-acf5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "362a83fc-bfe7-11e4-a4a5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "362a83fc-bfe7-11e4-a4a5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '362a83fc-bfe7-11e4-a4a5-705681abff85' LIMIT 1 [["organization_id", "362c2ffe-bfe7-11e4-9444-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "362c2ffe-bfe7-11e4-9444-705681abff85"], ["id", "362d328c-bfe7-11e4-9fb2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "362c2ffe-bfe7-11e4-9444-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "362b3f04-bfe7-11e4-b471-705681abff85"]] Completed 200 OK in 12ms (Views: 2.1ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$zEY//j6ChR92qmHtGNM7teSdQkYx4zaTSMKvdoHELm7yXB/QK65DC"], ["created_at", "2015-03-01 07:47:29.546970"], ["updated_at", "2015-03-01 07:47:29.546970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$VLTEzPaj/9lPY8SpHVtzEOEXEf8b8iV2QS3H7kZsIxtQ69IoQj9Wa"], ["created_at", "2015-03-01 07:47:29.551904"], ["updated_at", "2015-03-01 07:47:29.551904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.553529"], ["user_id", "3630d8d8-bfe7-11e4-a6e3-705681abff85"], ["created_at", "2015-03-01 07:47:29.554303"], ["updated_at", "2015-03-01 07:47:29.554303"], ["token", "GF2sOvP-TEm4JmMSfLnFuYFvr9Cttuo_3vek1mVVTjQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.557914"], ["updated_at", "2015-03-01 07:47:29.557914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3630d8d8-bfe7-11e4-a6e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '363277b0-bfe7-11e4-b4a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3630d8d8-bfe7-11e4-a6e3-705681abff85"], ["organization_id", "363277b0-bfe7-11e4-b4a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.561261"], ["updated_at", "2015-03-01 07:47:29.561261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36319106-bfe7-11e4-8969-705681abff85' AND "clubhouse_memberships"."organization_id" = '363277b0-bfe7-11e4-b4a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36319106-bfe7-11e4-8969-705681abff85"], ["organization_id", "363277b0-bfe7-11e4-b4a9-705681abff85"], ["created_at", "2015-03-01 07:47:29.564481"], ["updated_at", "2015-03-01 07:47:29.564481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$HvFgpA1h4rhPw6RrsOuu1uyDZ5yCswK/k9fYGFJcxH37pDslT9KNG"], ["created_at", "2015-03-01 07:47:29.577233"], ["updated_at", "2015-03-01 07:47:29.577233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$p0IPlsExac2UJkjJyYkscOVBUhNI0Kp53xSSZfEvGHuizvL6ZRlL2"], ["created_at", "2015-03-01 07:47:29.582412"], ["updated_at", "2015-03-01 07:47:29.582412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.583935"], ["user_id", "363579d8-bfe7-11e4-a049-705681abff85"], ["created_at", "2015-03-01 07:47:29.584696"], ["updated_at", "2015-03-01 07:47:29.584696"], ["token", "FF4WBEKnRPvK48T4VXjHqInVDoBErMs12cTjB0HAKg4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.588235"], ["updated_at", "2015-03-01 07:47:29.588235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '363579d8-bfe7-11e4-a049-705681abff85' AND "clubhouse_memberships"."organization_id" = '36371810-bfe7-11e4-8245-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "363579d8-bfe7-11e4-a049-705681abff85"], ["organization_id", "36371810-bfe7-11e4-8245-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.591601"], ["updated_at", "2015-03-01 07:47:29.591601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36363666-bfe7-11e4-97dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '36371810-bfe7-11e4-8245-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36363666-bfe7-11e4-97dc-705681abff85"], ["organization_id", "36371810-bfe7-11e4-8245-705681abff85"], ["created_at", "2015-03-01 07:47:29.594647"], ["updated_at", "2015-03-01 07:47:29.594647"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.601364' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FF4WBEKnRPvK48T4VXjHqInVDoBErMs12cTjB0HAKg4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.602954"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.604087"], ["id", "36369764-bfe7-11e4-b20b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "363579d8-bfe7-11e4-a049-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "363579d8-bfe7-11e4-a049-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '363579d8-bfe7-11e4-a049-705681abff85' LIMIT 1 [["organization_id", "36371810-bfe7-11e4-8245-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "36371810-bfe7-11e4-8245-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('363579d8-bfe7-11e4-a049-705681abff85', '36363666-bfe7-11e4-97dc-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('36371810-bfe7-11e4-8245-705681abff85') Completed 200 OK in 14ms (Views: 4.7ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$iNoYXc4LuT1uYMeCxUzBCeiapMmcTam2YMXTyVgD3KFcpjldkXFO2"], ["created_at", "2015-03-01 07:47:29.622997"], ["updated_at", "2015-03-01 07:47:29.622997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$xLyImk7euV8ceWRpTstr6Op.IU8rGStjYNRkAdXYbF0JlKPKKsmXm"], ["created_at", "2015-03-01 07:47:29.627420"], ["updated_at", "2015-03-01 07:47:29.627420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.629126"], ["user_id", "363c6a40-bfe7-11e4-b352-705681abff85"], ["created_at", "2015-03-01 07:47:29.629953"], ["updated_at", "2015-03-01 07:47:29.629953"], ["token", "87EkZiH5fxbiLpivYzGvIRnJ5Oq_J1oQIcCXBWkmjWQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.633340"], ["updated_at", "2015-03-01 07:47:29.633340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '363c6a40-bfe7-11e4-b352-705681abff85' AND "clubhouse_memberships"."organization_id" = '363dfa9a-bfe7-11e4-bd7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "363c6a40-bfe7-11e4-b352-705681abff85"], ["organization_id", "363dfa9a-bfe7-11e4-bd7a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.636751"], ["updated_at", "2015-03-01 07:47:29.636751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '363d17f6-bfe7-11e4-ad03-705681abff85' AND "clubhouse_memberships"."organization_id" = '363dfa9a-bfe7-11e4-bd7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "363d17f6-bfe7-11e4-ad03-705681abff85"], ["organization_id", "363dfa9a-bfe7-11e4-bd7a-705681abff85"], ["created_at", "2015-03-01 07:47:29.640003"], ["updated_at", "2015-03-01 07:47:29.640003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (3.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$vwPuOdTbAlUDE0Bx1WpkjuaAKDqUbteWx5dU5OnFNod9AJzeh5HxG"], ["created_at", "2015-03-01 07:47:29.644685"], ["updated_at", "2015-03-01 07:47:29.644685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.650038"], ["user_id", "363fb8a8-bfe7-11e4-8bb7-705681abff85"], ["created_at", "2015-03-01 07:47:29.650860"], ["updated_at", "2015-03-01 07:47:29.650860"], ["token", "qgKKmry4N7YOJgnu1cmaOD-K_g8HM2n0q8kJvd_bT9g"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '363dfa9a-bfe7-11e4-bd7a-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "363dfa9a-bfe7-11e4-bd7a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.663824"], ["updated_at", "2015-03-01 07:47:29.663824"], ["token", "RdP52ro7t8UoRYA741jQLeu1E8STnIQwOsnakiSHy8A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$CsB5HWmL92dWFkla8h8o0O2wlphHi8qsofxfQ6ySVR5XxZsOXz87i"], ["created_at", "2015-03-01 07:47:29.681093"], ["updated_at", "2015-03-01 07:47:29.681093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$6EzT7qIHPHcN95.UgKkk1e1z2V.dP.f9HE318.QAn4yIzQySgGlXW"], ["created_at", "2015-03-01 07:47:29.685722"], ["updated_at", "2015-03-01 07:47:29.685722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.687430"], ["user_id", "364547dc-bfe7-11e4-8a0f-705681abff85"], ["created_at", "2015-03-01 07:47:29.688283"], ["updated_at", "2015-03-01 07:47:29.688283"], ["token", "EDE9YwnY7k_CylizW0lu-0_WgQT_xDJF1Dg9M9znUBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.693677"], ["updated_at", "2015-03-01 07:47:29.693677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '364547dc-bfe7-11e4-8a0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '364732e0-bfe7-11e4-9479-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "364547dc-bfe7-11e4-8a0f-705681abff85"], ["organization_id", "364732e0-bfe7-11e4-9479-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.697296"], ["updated_at", "2015-03-01 07:47:29.697296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3645fe3e-bfe7-11e4-8282-705681abff85' AND "clubhouse_memberships"."organization_id" = '364732e0-bfe7-11e4-9479-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3645fe3e-bfe7-11e4-8282-705681abff85"], ["organization_id", "364732e0-bfe7-11e4-9479-705681abff85"], ["created_at", "2015-03-01 07:47:29.700706"], ["updated_at", "2015-03-01 07:47:29.700706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$SVSgd8zLYdazrg0WZIM2PO4N4F.IZhCGJPYoUyaj3DCUOhcgC9ZOK"], ["created_at", "2015-03-01 07:47:29.705357"], ["updated_at", "2015-03-01 07:47:29.705357"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.709112"], ["user_id", "3648f95e-bfe7-11e4-b74b-705681abff85"], ["created_at", "2015-03-01 07:47:29.709907"], ["updated_at", "2015-03-01 07:47:29.709907"], ["token", "DXDEV3M0XldrbzXs8PhbHSXrhGsDmKe_gx_pOOReVnE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '364732e0-bfe7-11e4-9479-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "364732e0-bfe7-11e4-9479-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.714127"], ["updated_at", "2015-03-01 07:47:29.714127"], ["token", "uVKNojDsTJUwugQhJdaOJ-DkMzBdvGnTuZI6SelF-dE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.720191' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DXDEV3M0XldrbzXs8PhbHSXrhGsDmKe_gx_pOOReVnE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.721925"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.730886"], ["id", "3649b4b6-bfe7-11e4-aa77-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3648f95e-bfe7-11e4-b74b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3648f95e-bfe7-11e4-b74b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$hIvURnmenxSYQw/0ZsaiRujuHrqlV367Lld3MFuN6.Iffx9yiBGBu"], ["created_at", "2015-03-01 07:47:29.744268"], ["updated_at", "2015-03-01 07:47:29.744268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$/LR9bBLmF27cjZqF.XFri.h7hLQ.z8cg47SJtI01HFlkLkkXzfdgq"], ["created_at", "2015-03-01 07:47:29.748709"], ["updated_at", "2015-03-01 07:47:29.748709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.750457"], ["user_id", "364ef020-bfe7-11e4-ae06-705681abff85"], ["created_at", "2015-03-01 07:47:29.751641"], ["updated_at", "2015-03-01 07:47:29.751641"], ["token", "fF-XBq8gWnADGwj5FDpX86A5O3_as0a4E4UnhvpfoBs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.756104"], ["updated_at", "2015-03-01 07:47:29.756104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '364ef020-bfe7-11e4-ae06-705681abff85' AND "clubhouse_memberships"."organization_id" = '3650b6d0-bfe7-11e4-a743-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "364ef020-bfe7-11e4-ae06-705681abff85"], ["organization_id", "3650b6d0-bfe7-11e4-a743-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.759680"], ["updated_at", "2015-03-01 07:47:29.759680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '364f9ac0-bfe7-11e4-a217-705681abff85' AND "clubhouse_memberships"."organization_id" = '3650b6d0-bfe7-11e4-a743-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "364f9ac0-bfe7-11e4-a217-705681abff85"], ["organization_id", "3650b6d0-bfe7-11e4-a743-705681abff85"], ["created_at", "2015-03-01 07:47:29.763299"], ["updated_at", "2015-03-01 07:47:29.763299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$qSRKwQYpLBpyc56HLZuQ1.Q6IhGYte84VWBe3kARIvDtLUM33Suk2"], ["created_at", "2015-03-01 07:47:29.767909"], ["updated_at", "2015-03-01 07:47:29.767909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.769611"], ["user_id", "365286a4-bfe7-11e4-8c72-705681abff85"], ["created_at", "2015-03-01 07:47:29.770360"], ["updated_at", "2015-03-01 07:47:29.770360"], ["token", "KJicrkn3RHZHF7XqCev7NTiuoR2YkT7BvM9OKB6Guf0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '3650b6d0-bfe7-11e4-a743-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "3650b6d0-bfe7-11e4-a743-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:29.774183"], ["updated_at", "2015-03-01 07:47:29.774183"], ["token", "ZGhHAqXAxMgMq1EGYzvhXO1xn2UWn3qSPPTnRSZ-5cM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"ZGhHAqXAxMgMq1EGYzvhXO1xn2UWn3qSPPTnRSZ-5cM", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.780466' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KJicrkn3RHZHF7XqCev7NTiuoR2YkT7BvM9OKB6Guf0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.782098"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.783189"], ["id", "3652eb9e-bfe7-11e4-b237-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "365286a4-bfe7-11e4-8c72-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "365286a4-bfe7-11e4-8c72-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "ZGhHAqXAxMgMq1EGYzvhXO1xn2UWn3qSPPTnRSZ-5cM"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3650b6d0-bfe7-11e4-a743-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3650b6d0-bfe7-11e4-a743-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '365286a4-bfe7-11e4-8c72-705681abff85' AND "clubhouse_memberships"."organization_id" = '3650b6d0-bfe7-11e4-a743-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "365286a4-bfe7-11e4-8c72-705681abff85"], ["admin", "t"], ["organization_id", "3650b6d0-bfe7-11e4-a743-705681abff85"], ["created_at", "2015-03-01 07:47:29.791903"], ["updated_at", "2015-03-01 07:47:29.791903"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "36538932-bfe7-11e4-8cd6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.2ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$n000b/iwfoPEUNPFhdG.A.RmI.NG9GwW2V4XrX8KX4Y2THoeYY0du"], ["created_at", "2015-03-01 07:47:29.802797"], ["updated_at", "2015-03-01 07:47:29.802797"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.811640"], ["updated_at", "2015-03-01 07:47:29.811640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36580b10-bfe7-11e4-b210-705681abff85' AND "clubhouse_memberships"."organization_id" = '3659376a-bfe7-11e4-80f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36580b10-bfe7-11e4-b210-705681abff85"], ["organization_id", "3659376a-bfe7-11e4-80f1-705681abff85"], ["created_at", "2015-03-01 07:47:29.817415"], ["updated_at", "2015-03-01 07:47:29.817415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36580b10-bfe7-11e4-b210-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3659376a-bfe7-11e4-80f1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36580b10-bfe7-11e4-b210-705681abff85' AND "clubhouse_memberships"."organization_id" = '3659376a-bfe7-11e4-80f1-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3659376a-bfe7-11e4-80f1-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36580b10-bfe7-11e4-b210-705681abff85' AND "clubhouse_memberships"."organization_id" = '3659376a-bfe7-11e4-80f1-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$EiGXZHC/EQ6FDoXDuDzQCOx30SDtIiCXReLIZ6/Ng3B3bOWIpRxFO"], ["created_at", "2015-03-01 07:47:29.854046"], ["updated_at", "2015-03-01 07:47:29.854046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.855788"], ["user_id", "365faf32-bfe7-11e4-9c55-705681abff85"], ["created_at", "2015-03-01 07:47:29.856595"], ["updated_at", "2015-03-01 07:47:29.856595"], ["token", "2A3-TCl3CsRlhog_LvYhRxQ_DX6OnCExCS1I13BO6p4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.861509"], ["updated_at", "2015-03-01 07:47:29.861509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '365faf32-bfe7-11e4-9c55-705681abff85' AND "clubhouse_memberships"."organization_id" = '3660e136-bfe7-11e4-90d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "365faf32-bfe7-11e4-9c55-705681abff85"], ["organization_id", "3660e136-bfe7-11e4-90d4-705681abff85"], ["created_at", "2015-03-01 07:47:29.866172"], ["updated_at", "2015-03-01 07:47:29.866172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/3660e136-bfe7-11e4-90d4-705681abff85" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"3660e136-bfe7-11e4-90d4-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.882077' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2A3-TCl3CsRlhog_LvYhRxQ_DX6OnCExCS1I13BO6p4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.883674"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.884785"], ["id", "36602976-bfe7-11e4-9da1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "365faf32-bfe7-11e4-9c55-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "365faf32-bfe7-11e4-9c55-705681abff85"], ["id", "3660e136-bfe7-11e4-90d4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "3660e136-bfe7-11e4-90d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$DG0zUiTd4kMXtqeaVpkvjuCq.2WKktYah3F7PfBzsu1eyayBOXcMC"], ["created_at", "2015-03-01 07:47:29.899118"], ["updated_at", "2015-03-01 07:47:29.899118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.901079"], ["user_id", "36668ed8-bfe7-11e4-b658-705681abff85"], ["created_at", "2015-03-01 07:47:29.901873"], ["updated_at", "2015-03-01 07:47:29.901873"], ["token", "aO1vlo1EhQPxbyUuJLw3SsfVclcYcEE_OhS2mfCRKQI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.908394"], ["updated_at", "2015-03-01 07:47:29.908394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36668ed8-bfe7-11e4-b658-705681abff85' AND "clubhouse_memberships"."organization_id" = '3667f7e6-bfe7-11e4-befe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36668ed8-bfe7-11e4-b658-705681abff85"], ["organization_id", "3667f7e6-bfe7-11e4-befe-705681abff85"], ["created_at", "2015-03-01 07:47:29.912779"], ["updated_at", "2015-03-01 07:47:29.912779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$o0mvpSZoQbMjUZMIjTVBWu6.1Vb4q3vb91qew9E55ZVYh1LtPUpFW"], ["created_at", "2015-03-01 07:47:29.929057"], ["updated_at", "2015-03-01 07:47:29.929057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.931856"], ["user_id", "366b3780-bfe7-11e4-9474-705681abff85"], ["created_at", "2015-03-01 07:47:29.932795"], ["updated_at", "2015-03-01 07:47:29.932795"], ["token", "iCTOyqCEAva-Od1UY7lriIwOe_g90pcPkjuxWqfFEVs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.936878"], ["updated_at", "2015-03-01 07:47:29.936878"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '366b3780-bfe7-11e4-9474-705681abff85' AND "clubhouse_memberships"."organization_id" = '366c5d4a-bfe7-11e4-95f5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "366b3780-bfe7-11e4-9474-705681abff85"], ["organization_id", "366c5d4a-bfe7-11e4-95f5-705681abff85"], ["created_at", "2015-03-01 07:47:29.943030"], ["updated_at", "2015-03-01 07:47:29.943030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/366c5d4a-bfe7-11e4-95f5-705681abff85" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"366c5d4a-bfe7-11e4-95f5-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:29.949628' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iCTOyqCEAva-Od1UY7lriIwOe_g90pcPkjuxWqfFEVs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:29.951940"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:29.953546"], ["id", "366bc0ce-bfe7-11e4-8561-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "366b3780-bfe7-11e4-9474-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "366b3780-bfe7-11e4-9474-705681abff85"], ["id", "366c5d4a-bfe7-11e4-95f5-705681abff85"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$ECTOrjq6689Fhefci/7UD.7t9EeFe6V8I6QuFz7vugKIsgCkoL.5S"], ["created_at", "2015-03-01 07:47:29.965774"], ["updated_at", "2015-03-01 07:47:29.965774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.967384"], ["user_id", "3670b732-bfe7-11e4-a7b7-705681abff85"], ["created_at", "2015-03-01 07:47:29.968170"], ["updated_at", "2015-03-01 07:47:29.968170"], ["token", "H4ZaEuH3p5bR2UbMHamxuJN5xKtvjOA3PDXd75MzTso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.971467"], ["updated_at", "2015-03-01 07:47:29.971467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3670b732-bfe7-11e4-a7b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '367192a6-bfe7-11e4-8ba7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3670b732-bfe7-11e4-a7b7-705681abff85"], ["organization_id", "367192a6-bfe7-11e4-8ba7-705681abff85"], ["created_at", "2015-03-01 07:47:29.975949"], ["updated_at", "2015-03-01 07:47:29.975949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 23:47:29 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$Nd7DwwLhkq26dj7tUgTE1eAEFDDugwH9ctvWwokZyH9Y1oIWXDjay"], ["created_at", "2015-03-01 07:47:29.989610"], ["updated_at", "2015-03-01 07:47:29.989610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:29.991666"], ["user_id", "36746170-bfe7-11e4-a9fc-705681abff85"], ["created_at", "2015-03-01 07:47:29.992531"], ["updated_at", "2015-03-01 07:47:29.992531"], ["token", "Qs9aTznggECfDq12JMsPNHsQHwhKrB5rbkA5OT5ZXLc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:29.997002"], ["updated_at", "2015-03-01 07:47:29.997002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36746170-bfe7-11e4-a9fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '36758280-bfe7-11e4-b417-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36746170-bfe7-11e4-a9fc-705681abff85"], ["organization_id", "36758280-bfe7-11e4-b417-705681abff85"], ["created_at", "2015-03-01 07:47:30.000888"], ["updated_at", "2015-03-01 07:47:30.000888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$KVTJnuyKH0QE3WIJAktereswQn4wtcpDlM8Pv2tlGNx3V5PuWd9ZG"], ["created_at", "2015-03-01 07:47:30.005869"], ["updated_at", "2015-03-01 07:47:30.005869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.010221"], ["updated_at", "2015-03-01 07:47:30.010221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3676d5fe-bfe7-11e4-8827-705681abff85' AND "clubhouse_memberships"."organization_id" = '367784a4-bfe7-11e4-94b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3676d5fe-bfe7-11e4-8827-705681abff85"], ["organization_id", "367784a4-bfe7-11e4-94b9-705681abff85"], ["created_at", "2015-03-01 07:47:30.014271"], ["updated_at", "2015-03-01 07:47:30.014271"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:30.022254' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Qs9aTznggECfDq12JMsPNHsQHwhKrB5rbkA5OT5ZXLc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:30.023942"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:30.025077"], ["id", "3674de98-bfe7-11e4-8cea-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36746170-bfe7-11e4-a9fc-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "36746170-bfe7-11e4-a9fc-705681abff85"]] Completed 200 OK in 9ms (Views: 2.5ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$8r5ENTXZ9gKIn7vba4xAQOYAZh7fXCk2Vp76taNrQdKySl8xD7iB2"], ["created_at", "2015-03-01 07:47:30.038639"], ["updated_at", "2015-03-01 07:47:30.038639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.040376"], ["user_id", "367bd77a-bfe7-11e4-8ce1-705681abff85"], ["created_at", "2015-03-01 07:47:30.041206"], ["updated_at", "2015-03-01 07:47:30.041206"], ["token", "Qj38GSbg5nyeiBgZvwOmsm0_TQa468eNuouXRQTR_nA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.044999"], ["updated_at", "2015-03-01 07:47:30.044999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '367bd77a-bfe7-11e4-8ce1-705681abff85' AND "clubhouse_memberships"."organization_id" = '367ccb58-bfe7-11e4-abb3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "367bd77a-bfe7-11e4-8ce1-705681abff85"], ["organization_id", "367ccb58-bfe7-11e4-abb3-705681abff85"], ["created_at", "2015-03-01 07:47:30.048503"], ["updated_at", "2015-03-01 07:47:30.048503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$60eGqU9w5do8wiq4YCzWcup6uEWzSeFG5D0cGg2sI0xOYk7OWXP9K"], ["created_at", "2015-03-01 07:47:30.053436"], ["updated_at", "2015-03-01 07:47:30.053436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.056943"], ["updated_at", "2015-03-01 07:47:30.056943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '367e16de-bfe7-11e4-a5a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '367ea11c-bfe7-11e4-aa3b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "367e16de-bfe7-11e4-a5a2-705681abff85"], ["organization_id", "367ea11c-bfe7-11e4-aa3b-705681abff85"], ["created_at", "2015-03-01 07:47:30.060318"], ["updated_at", "2015-03-01 07:47:30.060318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$KkcpuOCtwmI9txN.pklvzeCdTMmbH9wfAsln3BpKf7Rl1TF8KyBre"], ["created_at", "2015-03-01 07:47:30.074807"], ["updated_at", "2015-03-01 07:47:30.074807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.076620"], ["user_id", "36815dda-bfe7-11e4-987a-705681abff85"], ["created_at", "2015-03-01 07:47:30.077443"], ["updated_at", "2015-03-01 07:47:30.077443"], ["token", "RVyoL1ffUxeCBeJxgMrcvmyuaTA0bhMKIxkbuuDsBPs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.081344"], ["updated_at", "2015-03-01 07:47:30.081344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36815dda-bfe7-11e4-987a-705681abff85' AND "clubhouse_memberships"."organization_id" = '368257d0-bfe7-11e4-a30d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36815dda-bfe7-11e4-987a-705681abff85"], ["organization_id", "368257d0-bfe7-11e4-a30d-705681abff85"], ["created_at", "2015-03-01 07:47:30.084638"], ["updated_at", "2015-03-01 07:47:30.084638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$k3iiw7DjTakaaGA6XTc1uuXNiQGvNk.CiRN6OCNicdL41GTaNG032"], ["created_at", "2015-03-01 07:47:30.105813"], ["updated_at", "2015-03-01 07:47:30.105813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.107750"], ["user_id", "36861a96-bfe7-11e4-9ca5-705681abff85"], ["created_at", "2015-03-01 07:47:30.108718"], ["updated_at", "2015-03-01 07:47:30.108718"], ["token", "B27L0vVLAUipoAvM0dKcotF7SACyPt7FuhYtPwiXWJI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.112373"], ["updated_at", "2015-03-01 07:47:30.112373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36861a96-bfe7-11e4-9ca5-705681abff85' AND "clubhouse_memberships"."organization_id" = '36871978-bfe7-11e4-a29d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36861a96-bfe7-11e4-9ca5-705681abff85"], ["organization_id", "36871978-bfe7-11e4-a29d-705681abff85"], ["created_at", "2015-03-01 07:47:30.115891"], ["updated_at", "2015-03-01 07:47:30.115891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-11" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-11", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:30.121402' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B27L0vVLAUipoAvM0dKcotF7SACyPt7FuhYtPwiXWJI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:30.122951"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:30.124035"], ["id", "36869098-bfe7-11e4-960f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36861a96-bfe7-11e4-9ca5-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36861a96-bfe7-11e4-9ca5-705681abff85"], ["name", "org-11"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '36871978-bfe7-11e4-a29d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$/BTzxtfLOskER/rUQShu2.iXbO6GgFwsDOJvbqTTj1CyHZrgjfQ0a"], ["created_at", "2015-03-01 07:47:30.140378"], ["updated_at", "2015-03-01 07:47:30.140378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.142550"], ["user_id", "368b6834-bfe7-11e4-a273-705681abff85"], ["created_at", "2015-03-01 07:47:30.143412"], ["updated_at", "2015-03-01 07:47:30.143412"], ["token", "mgMgVTONXhuqDq3Z7WcdQXqVLyG0BL5u1OmjNJusScY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.146922"], ["updated_at", "2015-03-01 07:47:30.146922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '368b6834-bfe7-11e4-a273-705681abff85' AND "clubhouse_memberships"."organization_id" = '368c604a-bfe7-11e4-8f65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "368b6834-bfe7-11e4-a273-705681abff85"], ["organization_id", "368c604a-bfe7-11e4-8f65-705681abff85"], ["created_at", "2015-03-01 07:47:30.150644"], ["updated_at", "2015-03-01 07:47:30.150644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-12" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-12", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:30.156675' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mgMgVTONXhuqDq3Z7WcdQXqVLyG0BL5u1OmjNJusScY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:30.158416"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:30.159866"], ["id", "368bd9cc-bfe7-11e4-886e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "368b6834-bfe7-11e4-a273-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "368b6834-bfe7-11e4-a273-705681abff85"], ["name", "org-12"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '368c604a-bfe7-11e4-8f65-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:47:30.165864"], ["id", "368c604a-bfe7-11e4-8f65-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$OjvCLDdJQnhCFDX8IubhoeIIcXETdLlsVsS.5JmQU.bOsymDjcASm"], ["created_at", "2015-03-01 07:47:30.176044"], ["updated_at", "2015-03-01 07:47:30.176044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.177748"], ["user_id", "3690cf54-bfe7-11e4-9b2c-705681abff85"], ["created_at", "2015-03-01 07:47:30.178568"], ["updated_at", "2015-03-01 07:47:30.178568"], ["token", "_ZHovFO0G8LrSeG0T0sNZ1CvHbdCVqpOCWJkB8sNwfY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.182324"], ["updated_at", "2015-03-01 07:47:30.182324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3690cf54-bfe7-11e4-9b2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3691c508-bfe7-11e4-8887-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3690cf54-bfe7-11e4-9b2c-705681abff85"], ["organization_id", "3691c508-bfe7-11e4-8887-705681abff85"], ["created_at", "2015-03-01 07:47:30.185757"], ["updated_at", "2015-03-01 07:47:30.185757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-13" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:30.191023' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_ZHovFO0G8LrSeG0T0sNZ1CvHbdCVqpOCWJkB8sNwfY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:30.192631"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:30.194271"], ["id", "36913638-bfe7-11e4-bd0b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3690cf54-bfe7-11e4-9b2c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3690cf54-bfe7-11e4-9b2c-705681abff85"], ["name", "org-13"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "3691c508-bfe7-11e4-8887-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$yotJ1xpx4Jxc1OoST4qHQ.sjXIr3ObwiNpoOiFXlW61uBjnVrLxbG"], ["created_at", "2015-03-01 07:47:30.206959"], ["updated_at", "2015-03-01 07:47:30.206959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.208910"], ["user_id", "36958cf6-bfe7-11e4-a35b-705681abff85"], ["created_at", "2015-03-01 07:47:30.209773"], ["updated_at", "2015-03-01 07:47:30.209773"], ["token", "jhuYA6TcO4XxkIJOvLNQ5NSg7eSOtyjLr-_1jM-7f_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.213511"], ["updated_at", "2015-03-01 07:47:30.213511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36958cf6-bfe7-11e4-a35b-705681abff85' AND "clubhouse_memberships"."organization_id" = '36968156-bfe7-11e4-97ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36958cf6-bfe7-11e4-a35b-705681abff85"], ["organization_id", "36968156-bfe7-11e4-97ce-705681abff85"], ["created_at", "2015-03-01 07:47:30.217017"], ["updated_at", "2015-03-01 07:47:30.217017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$alRUhPY.jh4DkhzO5HbUk.xmJGaGt9GDYtstzaSl/AYAtF06EgPuK"], ["created_at", "2015-03-01 07:47:30.229994"], ["updated_at", "2015-03-01 07:47:30.229994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.231638"], ["user_id", "36990944-bfe7-11e4-b092-705681abff85"], ["created_at", "2015-03-01 07:47:30.232428"], ["updated_at", "2015-03-01 07:47:30.232428"], ["token", "Qu7EhCkaB9zP-yASFiHNd_OOZGpqPsozlf086wximMA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.235818"], ["updated_at", "2015-03-01 07:47:30.235818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36990944-bfe7-11e4-b092-705681abff85' AND "clubhouse_memberships"."organization_id" = '3699e92c-bfe7-11e4-83c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36990944-bfe7-11e4-b092-705681abff85"], ["organization_id", "3699e92c-bfe7-11e4-83c3-705681abff85"], ["created_at", "2015-03-01 07:47:30.239260"], ["updated_at", "2015-03-01 07:47:30.239260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-15" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-15", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:30.244520' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Qu7EhCkaB9zP-yASFiHNd_OOZGpqPsozlf086wximMA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:30.245936"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:30.246901"], ["id", "36996c36-bfe7-11e4-8809-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36990944-bfe7-11e4-b092-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36990944-bfe7-11e4-b092-705681abff85"], ["name", "org-15"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$VRAshCXj4JjAIjg0kNaQAuw7weJwt30gIXk6VdQRjMxDQvR/9aXJK"], ["created_at", "2015-03-01 07:47:30.257481"], ["updated_at", "2015-03-01 07:47:30.257481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.259237"], ["user_id", "369d3dd4-bfe7-11e4-8aaa-705681abff85"], ["created_at", "2015-03-01 07:47:30.260119"], ["updated_at", "2015-03-01 07:47:30.260119"], ["token", "xZ4GDQ0suTJR5NCQsipbuHflfaEz5r9n4d4KGn94uqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.264154"], ["updated_at", "2015-03-01 07:47:30.264154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '369d3dd4-bfe7-11e4-8aaa-705681abff85' AND "clubhouse_memberships"."organization_id" = '369e3f04-bfe7-11e4-b92a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "369d3dd4-bfe7-11e4-8aaa-705681abff85"], ["organization_id", "369e3f04-bfe7-11e4-b92a-705681abff85"], ["created_at", "2015-03-01 07:47:30.267672"], ["updated_at", "2015-03-01 07:47:30.267672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$TcgBCSi9DIn3lGOMIlS3AO4i9GfNn22xmhVeqDCwqOCaAEC0Mo8Ki"], ["created_at", "2015-03-01 07:47:30.281424"], ["updated_at", "2015-03-01 07:47:30.281424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.283557"], ["user_id", "36a0ed44-bfe7-11e4-a52a-705681abff85"], ["created_at", "2015-03-01 07:47:30.284694"], ["updated_at", "2015-03-01 07:47:30.284694"], ["token", "FfaVEneXnB4rWrRfbsvtqWCKAsDDz87_5fmajzc280c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.288392"], ["updated_at", "2015-03-01 07:47:30.288392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36a0ed44-bfe7-11e4-a52a-705681abff85' AND "clubhouse_memberships"."organization_id" = '36a1ee1a-bfe7-11e4-99b9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36a0ed44-bfe7-11e4-a52a-705681abff85"], ["organization_id", "36a1ee1a-bfe7-11e4-99b9-705681abff85"], ["created_at", "2015-03-01 07:47:30.291553"], ["updated_at", "2015-03-01 07:47:30.291553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$3bdsjVGg1Ly8iXjYzLPMM.yo5SlHHAoUQbSIRrnAZnU3gqELw8.Sq"], ["created_at", "2015-03-01 07:47:30.305609"], ["updated_at", "2015-03-01 07:47:30.305609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.307330"], ["user_id", "36a49480-bfe7-11e4-8ad4-705681abff85"], ["created_at", "2015-03-01 07:47:30.308165"], ["updated_at", "2015-03-01 07:47:30.308165"], ["token", "qa0mv-zGVyvA58W_MVBWI5xNsj7WNppRkwFEqo9GoIE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.312272"], ["updated_at", "2015-03-01 07:47:30.312272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36a49480-bfe7-11e4-8ad4-705681abff85' AND "clubhouse_memberships"."organization_id" = '36a5a2a8-bfe7-11e4-a53e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36a49480-bfe7-11e4-8ad4-705681abff85"], ["organization_id", "36a5a2a8-bfe7-11e4-a53e-705681abff85"], ["created_at", "2015-03-01 07:47:30.316371"], ["updated_at", "2015-03-01 07:47:30.316371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/36a5a2a8-bfe7-11e4-a53e-705681abff85" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"36a5a2a8-bfe7-11e4-a53e-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:30.321727' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qa0mv-zGVyvA58W_MVBWI5xNsj7WNppRkwFEqo9GoIE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:30.323762"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:30.325806"], ["id", "36a4fc54-bfe7-11e4-b7f9-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36a49480-bfe7-11e4-8ad4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36a49480-bfe7-11e4-8ad4-705681abff85"], ["id", "36a5a2a8-bfe7-11e4-a53e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '36a5a2a8-bfe7-11e4-a53e-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$J.dFgrqe8RL450tu.72j9es1gsXa5FrEprP/gY.urT9VGDfnCwxQO"], ["created_at", "2015-03-01 07:47:30.340654"], ["updated_at", "2015-03-01 07:47:30.340654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.342360"], ["user_id", "36a9ed0e-bfe7-11e4-85cd-705681abff85"], ["created_at", "2015-03-01 07:47:30.343229"], ["updated_at", "2015-03-01 07:47:30.343229"], ["token", "R5y6gF2wUXYN9oGKUWuzCaVhc7j3RnRjLeZCzS7PFHM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.347248"], ["updated_at", "2015-03-01 07:47:30.347248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36a9ed0e-bfe7-11e4-85cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '36aaed9e-bfe7-11e4-895c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36a9ed0e-bfe7-11e4-85cd-705681abff85"], ["organization_id", "36aaed9e-bfe7-11e4-895c-705681abff85"], ["created_at", "2015-03-01 07:47:30.351098"], ["updated_at", "2015-03-01 07:47:30.351098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/36aaed9e-bfe7-11e4-895c-705681abff85" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"36aaed9e-bfe7-11e4-895c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:30.356817' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "R5y6gF2wUXYN9oGKUWuzCaVhc7j3RnRjLeZCzS7PFHM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:30.358285"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:30.359331"], ["id", "36aa5f8c-bfe7-11e4-a22d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36a9ed0e-bfe7-11e4-85cd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36a9ed0e-bfe7-11e4-85cd-705681abff85"], ["id", "36aaed9e-bfe7-11e4-895c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '36aaed9e-bfe7-11e4-895c-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:47:30.365373"], ["id", "36aaed9e-bfe7-11e4-895c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$8wqSWR1LLKjtiIBBG.mn.e358DsJGn4gvwN/nXS5tGt6kBW/fV/jK"], ["created_at", "2015-03-01 07:47:30.373920"], ["updated_at", "2015-03-01 07:47:30.373920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.375614"], ["user_id", "36aeffa6-bfe7-11e4-b53f-705681abff85"], ["created_at", "2015-03-01 07:47:30.376409"], ["updated_at", "2015-03-01 07:47:30.376409"], ["token", "OFq9OPs09v23dP5YOHcPQxtvzMsTCqwfIoC-XDCDZuQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.380287"], ["updated_at", "2015-03-01 07:47:30.380287"]]  (15.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36aeffa6-bfe7-11e4-b53f-705681abff85' AND "clubhouse_memberships"."organization_id" = '36aff848-bfe7-11e4-ad55-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36aeffa6-bfe7-11e4-b53f-705681abff85"], ["organization_id", "36aff848-bfe7-11e4-ad55-705681abff85"], ["created_at", "2015-03-01 07:47:30.403135"], ["updated_at", "2015-03-01 07:47:30.403135"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 3ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$DKfg6DiZeqmETpxYt6WQPuRAAYZ5cOqWLWB29v9UeG.e.tpS9Fu1S"], ["created_at", "2015-03-01 07:47:30.430705"], ["updated_at", "2015-03-01 07:47:30.430705"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.436063"], ["user_id", "36b7bf4c-bfe7-11e4-89f8-705681abff85"], ["created_at", "2015-03-01 07:47:30.437264"], ["updated_at", "2015-03-01 07:47:30.437264"], ["token", "e7IhIRP7KSXb9So5WQCrwefIomSwhcR8x1FpdhEk3kQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.444004"], ["updated_at", "2015-03-01 07:47:30.444004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36b7bf4c-bfe7-11e4-89f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '36b9c378-bfe7-11e4-8740-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36b7bf4c-bfe7-11e4-89f8-705681abff85"], ["organization_id", "36b9c378-bfe7-11e4-8740-705681abff85"], ["created_at", "2015-03-01 07:47:30.451927"], ["updated_at", "2015-03-01 07:47:30.451927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-21" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-21"} Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-21"]] Completed 200 OK in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$IWgxieVKTNtt8YrDyKRAjuVAUwxysQD10zGDCfh2S2r9RlglUcbra"], ["created_at", "2015-03-01 07:47:30.469880"], ["updated_at", "2015-03-01 07:47:30.469880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.471987"], ["user_id", "36bdafa6-bfe7-11e4-8a5b-705681abff85"], ["created_at", "2015-03-01 07:47:30.473064"], ["updated_at", "2015-03-01 07:47:30.473064"], ["token", "GM70pnXBzAT-PZ79wW0y4t9jUQ4QbVlRw6eMJwzOUOI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.476644"], ["updated_at", "2015-03-01 07:47:30.476644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36bdafa6-bfe7-11e4-8a5b-705681abff85' AND "clubhouse_memberships"."organization_id" = '36beabfe-bfe7-11e4-adb7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36bdafa6-bfe7-11e4-8a5b-705681abff85"], ["organization_id", "36beabfe-bfe7-11e4-adb7-705681abff85"], ["created_at", "2015-03-01 07:47:30.480540"], ["updated_at", "2015-03-01 07:47:30.480540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 10ms (Views: 10.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$Rylwb4Wv05l2hTgLQL.aRe/YD1PuioXsL90QO2yH4EkslQw9K9YK."], ["created_at", "2015-03-01 07:47:30.503725"], ["updated_at", "2015-03-01 07:47:30.503725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.505614"], ["user_id", "36c2ce46-bfe7-11e4-b7a7-705681abff85"], ["created_at", "2015-03-01 07:47:30.506378"], ["updated_at", "2015-03-01 07:47:30.506378"], ["token", "vXs8gxQDqau6AgsdjETmB3Y27L09yclCQn17TvIzMF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.510052"], ["updated_at", "2015-03-01 07:47:30.510052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36c2ce46-bfe7-11e4-b7a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '36c3c170-bfe7-11e4-9828-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36c2ce46-bfe7-11e4-b7a7-705681abff85"], ["organization_id", "36c3c170-bfe7-11e4-9828-705681abff85"], ["created_at", "2015-03-01 07:47:30.513774"], ["updated_at", "2015-03-01 07:47:30.513774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:30.520920' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vXs8gxQDqau6AgsdjETmB3Y27L09yclCQn17TvIzMF8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:30.522617"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:30.523572"], ["id", "36c33bba-bfe7-11e4-9e6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36c2ce46-bfe7-11e4-b7a7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$9IPSb.QFBJUGyH0dYJbU2uY6ulUDyHNWN4qY1BoFXYwuwDVWT1ceO"], ["created_at", "2015-03-01 07:47:30.536863"], ["updated_at", "2015-03-01 07:47:30.536863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:30.538655"], ["user_id", "36c7e0fc-bfe7-11e4-b21f-705681abff85"], ["created_at", "2015-03-01 07:47:30.539444"], ["updated_at", "2015-03-01 07:47:30.539444"], ["token", "YHmbaW6Z8kMFxOUPJ2Fexf2FlqASY8f6dLr8xUHaWmA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.543221"], ["updated_at", "2015-03-01 07:47:30.543221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36c7e0fc-bfe7-11e4-b21f-705681abff85' AND "clubhouse_memberships"."organization_id" = '36c8d73c-bfe7-11e4-bf81-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36c7e0fc-bfe7-11e4-b21f-705681abff85"], ["organization_id", "36c8d73c-bfe7-11e4-bf81-705681abff85"], ["created_at", "2015-03-01 07:47:30.546834"], ["updated_at", "2015-03-01 07:47:30.546834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:47:30 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:30.552265' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YHmbaW6Z8kMFxOUPJ2Fexf2FlqASY8f6dLr8xUHaWmA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:30.554556"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:30.556224"], ["id", "36c845f6-bfe7-11e4-baaa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36c7e0fc-bfe7-11e4-b21f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.560785"], ["updated_at", "2015-03-01 07:47:30.560785"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "36cb82e8-bfe7-11e4-9808-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36c7e0fc-bfe7-11e4-b21f-705681abff85' AND "clubhouse_memberships"."organization_id" = '36cb82e8-bfe7-11e4-9808-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "36c7e0fc-bfe7-11e4-b21f-705681abff85"], ["admin", "t"], ["organization_id", "36cb82e8-bfe7-11e4-9808-705681abff85"], ["created_at", "2015-03-01 07:47:30.565202"], ["updated_at", "2015-03-01 07:47:30.565202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.7ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.783516"], ["updated_at", "2015-03-01 07:47:30.783516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '36ed82bc-bfe7-11e4-8115-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "36ed82bc-bfe7-11e4-8115-705681abff85"], ["created_at", "2015-03-01 07:47:30.788063"], ["updated_at", "2015-03-01 07:47:30.788063"], ["token", "LPpq7wnBnMoXnKKIuoYx5tykqFWQd5sIeXhmevOq0Pc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 26.0ms Sent mail to john@example.com (11.1ms) Date: Sat, 28 Feb 2015 23:47:30 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c412c9851_135f53fe9f8865bec6333b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/LPpq7wnBnMoXnKKIuoYx5tykqFWQd5sIeXhmevOq0Pc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.836905"], ["updated_at", "2015-03-01 07:47:30.836905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '36f5b46e-bfe7-11e4-bbca-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "36f5b46e-bfe7-11e4-bbca-705681abff85"], ["created_at", "2015-03-01 07:47:30.842499"], ["updated_at", "2015-03-01 07:47:30.842499"], ["token", "DwubwcwWR3ON3m944xan4Rwb_ZYNsDm4gYoMDjrn-U8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.8ms Sent mail to john@example.com (2.2ms) Date: Sat, 28 Feb 2015 23:47:30 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c412cf353_135f53fe9f8865bec634db@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/DwubwcwWR3ON3m944xan4Rwb_ZYNsDm4gYoMDjrn-U8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.854291"], ["updated_at", "2015-03-01 07:47:30.854291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '36f88e0a-bfe7-11e4-bb15-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "36f88e0a-bfe7-11e4-bb15-705681abff85"], ["created_at", "2015-03-01 07:47:30.859644"], ["updated_at", "2015-03-01 07:47:30.859644"], ["token", "v8IFZqFhmPbfwPnFU0H1anC8GBVw9BYF58nSGVZ_ZRA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.7ms Sent mail to john@example.com (2.3ms) Date: Sat, 28 Feb 2015 23:47:30 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c412d2f42_135f53fe9f8865bec63598@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/v8IFZqFhmPbfwPnFU0H1anC8GBVw9BYF58nSGVZ_ZRA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.873001"], ["updated_at", "2015-03-01 07:47:30.873001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '36fb2cd2-bfe7-11e4-ab59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "36fb2cd2-bfe7-11e4-ab59-705681abff85"], ["created_at", "2015-03-01 07:47:30.877401"], ["updated_at", "2015-03-01 07:47:30.877401"], ["token", "N2AWJQ_n54Rl6WQac58lgYRtfhXKi8CNbrmpxCuapoU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 23:47:30 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c412d7b84_135f53fe9f8865bec63619@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/N2AWJQ_n54Rl6WQac58lgYRtfhXKi8CNbrmpxCuapoU If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.897377"], ["updated_at", "2015-03-01 07:47:30.897377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.913569"], ["updated_at", "2015-03-01 07:47:30.913569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.925612"], ["updated_at", "2015-03-01 07:47:30.925612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.944694"], ["updated_at", "2015-03-01 07:47:30.944694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.949806"], ["updated_at", "2015-03-01 07:47:30.949806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3706ddb6-bfe7-11e4-90f9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.965325"], ["updated_at", "2015-03-01 07:47:30.965325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '37093db8-bfe7-11e4-9247-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "37093db8-bfe7-11e4-9247-705681abff85"], ["created_at", "2015-03-01 07:47:30.968497"], ["updated_at", "2015-03-01 07:47:30.968497"], ["token", "iEQA9Mgp8bP-d4hJknALqD-NtytnLdj3-50Ir3eMv3o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37093db8-bfe7-11e4-9247-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '37093db8-bfe7-11e4-9247-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37093db8-bfe7-11e4-9247-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '37093db8-bfe7-11e4-9247-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:30.989899"], ["updated_at", "2015-03-01 07:47:30.989899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '370cfab6-bfe7-11e4-9ba8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "370cfab6-bfe7-11e4-9ba8-705681abff85"], ["created_at", "2015-03-01 07:47:30.993023"], ["updated_at", "2015-03-01 07:47:30.993023"], ["token", "TXJQV9jvoRWC2iXx0zU8gdzpcsQKD7VTZljw1L6CmMI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$vqAzJASdJ9lQHg5MVJ9VRuZOJhKFx07AzQCj0hKxjoqAnRHAKyrEm"], ["created_at", "2015-03-01 07:47:30.999441"], ["updated_at", "2015-03-01 07:47:30.999441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.001656"], ["user_id", "370e7e4a-bfe7-11e4-832a-705681abff85"], ["created_at", "2015-03-01 07:47:31.002457"], ["updated_at", "2015-03-01 07:47:31.002457"], ["token", "xlBdbhLR2svNDwrbuh2JyXcE85keWCnfCWw3PsGrmFU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.006281"], ["updated_at", "2015-03-01 07:47:31.006281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '370e7e4a-bfe7-11e4-832a-705681abff85' AND "clubhouse_memberships"."organization_id" = '370f8556-bfe7-11e4-b7e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "370e7e4a-bfe7-11e4-832a-705681abff85"], ["organization_id", "370f8556-bfe7-11e4-b7e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.010042"], ["updated_at", "2015-03-01 07:47:31.010042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '370f8556-bfe7-11e4-b7e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "370f8556-bfe7-11e4-b7e7-705681abff85"], ["created_at", "2015-03-01 07:47:31.013444"], ["updated_at", "2015-03-01 07:47:31.013444"], ["token", "pww7BvJxDIFfF4S4YF2MA6bSz20gu9CuqUfoyqysxa8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$ZZfqSYFqWnBuCvf2.MPsLuOH66VJ7FppqW5WKcTQcXRdijgRZhZ.e"], ["created_at", "2015-03-01 07:47:31.018178"], ["updated_at", "2015-03-01 07:47:31.018178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.022273"], ["updated_at", "2015-03-01 07:47:31.022273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37114f44-bfe7-11e4-ad6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3711f1ec-bfe7-11e4-bb31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37114f44-bfe7-11e4-ad6e-705681abff85"], ["organization_id", "3711f1ec-bfe7-11e4-bb31-705681abff85"], ["created_at", "2015-03-01 07:47:31.025974"], ["updated_at", "2015-03-01 07:47:31.025974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:31.038356' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xlBdbhLR2svNDwrbuh2JyXcE85keWCnfCWw3PsGrmFU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:31.039884"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:31.040883"], ["id", "370eed30-bfe7-11e4-abd8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "370e7e4a-bfe7-11e4-832a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "370e7e4a-bfe7-11e4-832a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '370e7e4a-bfe7-11e4-832a-705681abff85' LIMIT 1 [["organization_id", "370f8556-bfe7-11e4-b7e7-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "370f8556-bfe7-11e4-b7e7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('370f8556-bfe7-11e4-b7e7-705681abff85') Completed 200 OK in 13ms (Views: 3.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$b1V/AtorQunOLbvigEChbOQ5vHs03wk7gyTCynw65RqYCJhvkBeGi"], ["created_at", "2015-03-01 07:47:31.058666"], ["updated_at", "2015-03-01 07:47:31.058666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.060575"], ["user_id", "371783dc-bfe7-11e4-a17b-705681abff85"], ["created_at", "2015-03-01 07:47:31.061489"], ["updated_at", "2015-03-01 07:47:31.061489"], ["token", "cIJ3gJ0N1Xjzm4X58tr6pfDE7edPwMfxJD_lBWnAsx8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.065225"], ["updated_at", "2015-03-01 07:47:31.065225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '371783dc-bfe7-11e4-a17b-705681abff85' AND "clubhouse_memberships"."organization_id" = '37187d6e-bfe7-11e4-a878-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "371783dc-bfe7-11e4-a17b-705681abff85"], ["organization_id", "37187d6e-bfe7-11e4-a878-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.068799"], ["updated_at", "2015-03-01 07:47:31.068799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '37187d6e-bfe7-11e4-a878-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "37187d6e-bfe7-11e4-a878-705681abff85"], ["created_at", "2015-03-01 07:47:31.072108"], ["updated_at", "2015-03-01 07:47:31.072108"], ["token", "ccsGmtvHISLxkSM_6LbzyFnHfc1PiiMLhmYVNKtnTsE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$BQrcPxD1z.XUHESyqV6JfuRJ0ue4yBWjs7fT.3lnlQKd0NKzSscwq"], ["created_at", "2015-03-01 07:47:31.077076"], ["updated_at", "2015-03-01 07:47:31.077076"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.080463"], ["updated_at", "2015-03-01 07:47:31.080463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '371a4978-bfe7-11e4-bb42-705681abff85' AND "clubhouse_memberships"."organization_id" = '371acbd2-bfe7-11e4-8b37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "371a4978-bfe7-11e4-bb42-705681abff85"], ["organization_id", "371acbd2-bfe7-11e4-8b37-705681abff85"], ["created_at", "2015-03-01 07:47:31.084279"], ["updated_at", "2015-03-01 07:47:31.084279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$.8k9i7X2XHvx4LlVtFCYReQDX4jO1LHC1T.LDCF8hLzeMEdPZ8XZW"], ["created_at", "2015-03-01 07:47:31.098227"], ["updated_at", "2015-03-01 07:47:31.098227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.099989"], ["user_id", "371d8566-bfe7-11e4-a569-705681abff85"], ["created_at", "2015-03-01 07:47:31.100798"], ["updated_at", "2015-03-01 07:47:31.100798"], ["token", "O6PKDkOh5DqGbKHcLsY8w7-QzV5PRaJZxHVnf5NLgZ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.104237"], ["updated_at", "2015-03-01 07:47:31.104237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '371d8566-bfe7-11e4-a569-705681abff85' AND "clubhouse_memberships"."organization_id" = '371e79c6-bfe7-11e4-a049-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "371d8566-bfe7-11e4-a569-705681abff85"], ["organization_id", "371e79c6-bfe7-11e4-a049-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.108467"], ["updated_at", "2015-03-01 07:47:31.108467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '371e79c6-bfe7-11e4-a049-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "371e79c6-bfe7-11e4-a049-705681abff85"], ["created_at", "2015-03-01 07:47:31.112854"], ["updated_at", "2015-03-01 07:47:31.112854"], ["token", "bJVUFABQ3Fgx38b7ovpvUwaSLe-3i78-MfljgTCLkt0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$at.3PXzpbFdWroWwRxbn3OjevBpuGoW0vc0.qQO8wjWsk7T1zhDxy"], ["created_at", "2015-03-01 07:47:31.125827"], ["updated_at", "2015-03-01 07:47:31.125827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.127496"], ["user_id", "3721bb40-bfe7-11e4-9333-705681abff85"], ["created_at", "2015-03-01 07:47:31.128293"], ["updated_at", "2015-03-01 07:47:31.128293"], ["token", "XS0PbbLNBEm6x8QS9BHLDOK9-DtzvYqRqO_EorwBn8I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.131633"], ["updated_at", "2015-03-01 07:47:31.131633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3721bb40-bfe7-11e4-9333-705681abff85' AND "clubhouse_memberships"."organization_id" = '37229a24-bfe7-11e4-afa9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3721bb40-bfe7-11e4-9333-705681abff85"], ["organization_id", "37229a24-bfe7-11e4-afa9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.135485"], ["updated_at", "2015-03-01 07:47:31.135485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '37229a24-bfe7-11e4-afa9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "37229a24-bfe7-11e4-afa9-705681abff85"], ["created_at", "2015-03-01 07:47:31.139396"], ["updated_at", "2015-03-01 07:47:31.139396"], ["token", "HOnD47ybJc_8zJdqBIrB6yguiJcyc8jk_U2AuIT7RKE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:31.145284' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XS0PbbLNBEm6x8QS9BHLDOK9-DtzvYqRqO_EorwBn8I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:31.146901"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:31.148196"], ["id", "37221fe0-bfe7-11e4-94cf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3721bb40-bfe7-11e4-9333-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3721bb40-bfe7-11e4-9333-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3721bb40-bfe7-11e4-9333-705681abff85' LIMIT 1 [["organization_id", "37229a24-bfe7-11e4-afa9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37229a24-bfe7-11e4-afa9-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '37229a24-bfe7-11e4-afa9-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$pTUOVSbxcWATBQrMzx3Pmu8MtEwIr8ZBebUpi8bgN0tA7bEzjFVdi"], ["created_at", "2015-03-01 07:47:31.171111"], ["updated_at", "2015-03-01 07:47:31.171111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.172950"], ["user_id", "3728a82e-bfe7-11e4-91c2-705681abff85"], ["created_at", "2015-03-01 07:47:31.173841"], ["updated_at", "2015-03-01 07:47:31.173841"], ["token", "j4CEnR6GDAam7T2K1k-IKCOoE8WC61PNGYhHwvCvFag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.177569"], ["updated_at", "2015-03-01 07:47:31.177569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3728a82e-bfe7-11e4-91c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '37299d6a-bfe7-11e4-91d2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3728a82e-bfe7-11e4-91c2-705681abff85"], ["organization_id", "37299d6a-bfe7-11e4-91d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.181267"], ["updated_at", "2015-03-01 07:47:31.181267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '37299d6a-bfe7-11e4-91d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "37299d6a-bfe7-11e4-91d2-705681abff85"], ["created_at", "2015-03-01 07:47:31.185606"], ["updated_at", "2015-03-01 07:47:31.185606"], ["token", "CjUaZQndqXLf0ho8xMBXjHDyBKp1qccDTMBzW1VTTHc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:31.191340' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "j4CEnR6GDAam7T2K1k-IKCOoE8WC61PNGYhHwvCvFag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:31.193260"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:31.194320"], ["id", "37291c46-bfe7-11e4-9860-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3728a82e-bfe7-11e4-91c2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3728a82e-bfe7-11e4-91c2-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3728a82e-bfe7-11e4-91c2-705681abff85' LIMIT 1 [["organization_id", "37299d6a-bfe7-11e4-91d2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37299d6a-bfe7-11e4-91d2-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '37299d6a-bfe7-11e4-91d2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "37299d6a-bfe7-11e4-91d2-705681abff85"], ["created_at", "2015-03-01 07:47:31.202432"], ["updated_at", "2015-03-01 07:47:31.202432"], ["token", "CmoAiTQcmkmaPtdwCWv_y29U7wwe5EzWEN0PDEDSvRk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2d37fef5-84cd-4405-b4e0-7bddad9e3b25) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/372d7bf6-bfe7-11e4-97b5-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "372d7bf6-bfe7-11e4-97b5-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2d37fef5-84cd-4405-b4e0-7bddad9e3b25] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/372d7bf6-bfe7-11e4-97b5-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [2d37fef5-84cd-4405-b4e0-7bddad9e3b25] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37299d6a-bfe7-11e4-91d2-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2d37fef5-84cd-4405-b4e0-7bddad9e3b25] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2d37fef5-84cd-4405-b4e0-7bddad9e3b25] Clubhouse::Mailer#invitation: processed outbound mail in 3.1ms [ActiveJob] [ActionMailer::DeliveryJob] [2d37fef5-84cd-4405-b4e0-7bddad9e3b25] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [2d37fef5-84cd-4405-b4e0-7bddad9e3b25] Date: Sat, 28 Feb 2015 23:47:31 -0800 From: from@example.com To: email@example.com Message-ID: <54f2c413393a7_135f53fe9f8865bec637b2@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/CmoAiTQcmkmaPtdwCWv_y29U7wwe5EzWEN0PDEDSvRk If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [2d37fef5-84cd-4405-b4e0-7bddad9e3b25] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.69ms Completed 201 Created in 46ms (Views: 1.2ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$.13dyn.8Ont0W7x0bh2gW.pVEJBXxkU0ZF4/wwzJrsAPnOSMxtGvm"], ["created_at", "2015-03-01 07:47:31.243799"], ["updated_at", "2015-03-01 07:47:31.243799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.245581"], ["user_id", "3733bc5a-bfe7-11e4-b252-705681abff85"], ["created_at", "2015-03-01 07:47:31.246375"], ["updated_at", "2015-03-01 07:47:31.246375"], ["token", "JDBuGKp3CzV2X4aRPr3c9TaPwNrg-IuvjnOEewSzBcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.250016"], ["updated_at", "2015-03-01 07:47:31.250016"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3733bc5a-bfe7-11e4-b252-705681abff85' AND "clubhouse_memberships"."organization_id" = '3734cf00-bfe7-11e4-a5ac-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3733bc5a-bfe7-11e4-b252-705681abff85"], ["organization_id", "3734cf00-bfe7-11e4-a5ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.256039"], ["updated_at", "2015-03-01 07:47:31.256039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '3734cf00-bfe7-11e4-a5ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "3734cf00-bfe7-11e4-a5ac-705681abff85"], ["created_at", "2015-03-01 07:47:31.259856"], ["updated_at", "2015-03-01 07:47:31.259856"], ["token", "Bz4EvmkyhsEv8NdWHo3V7mrYZpOkdCFCH-_pqUwGfmI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:31.266136' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JDBuGKp3CzV2X4aRPr3c9TaPwNrg-IuvjnOEewSzBcM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:31.268415"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:31.269498"], ["id", "37342744-bfe7-11e4-a77d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3733bc5a-bfe7-11e4-b252-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3733bc5a-bfe7-11e4-b252-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3733bc5a-bfe7-11e4-b252-705681abff85' LIMIT 1 [["organization_id", "3734cf00-bfe7-11e4-a5ac-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3734cf00-bfe7-11e4-a5ac-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3734cf00-bfe7-11e4-a5ac-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "3734cf00-bfe7-11e4-a5ac-705681abff85"], ["created_at", "2015-03-01 07:47:31.286583"], ["updated_at", "2015-03-01 07:47:31.286583"], ["token", "WJRsaQSex35vvMungLDwB1G8p6hcxBDj7kAvq-4CKZ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4129bb93-4a42-4c97-8505-bb9630ee4101) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/373a5f88-bfe7-11e4-b7ab-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "373a5f88-bfe7-11e4-b7ab-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4129bb93-4a42-4c97-8505-bb9630ee4101] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/373a5f88-bfe7-11e4-b7ab-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [4129bb93-4a42-4c97-8505-bb9630ee4101] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3734cf00-bfe7-11e4-a5ac-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4129bb93-4a42-4c97-8505-bb9630ee4101] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4129bb93-4a42-4c97-8505-bb9630ee4101] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [4129bb93-4a42-4c97-8505-bb9630ee4101] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [4129bb93-4a42-4c97-8505-bb9630ee4101] Date: Sat, 28 Feb 2015 23:47:31 -0800 From: from@example.com To: email@example.com Message-ID: <54f2c413484c6_135f53fe9f8865bec6382@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/WJRsaQSex35vvMungLDwB1G8p6hcxBDj7kAvq-4CKZ0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4129bb93-4a42-4c97-8505-bb9630ee4101] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.9ms Completed 201 Created in 33ms (Views: 0.9ms | ActiveRecord: 9.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$bOSMDck5SzA9mr/vCJwqPOhwma6eSqgRrCqe6B5y0qyL0ZcX2pNSC"], ["created_at", "2015-03-01 07:47:31.305722"], ["updated_at", "2015-03-01 07:47:31.305722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.307452"], ["user_id", "373d2f38-bfe7-11e4-9aa7-705681abff85"], ["created_at", "2015-03-01 07:47:31.308326"], ["updated_at", "2015-03-01 07:47:31.308326"], ["token", "euMOvoEDJxTjyBf-MhqH9cCq9d3UkIEhyvQPVeUfaEw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.312086"], ["updated_at", "2015-03-01 07:47:31.312086"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '373d2f38-bfe7-11e4-9aa7-705681abff85' AND "clubhouse_memberships"."organization_id" = '373e2528-bfe7-11e4-b385-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "373d2f38-bfe7-11e4-9aa7-705681abff85"], ["organization_id", "373e2528-bfe7-11e4-b385-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.316479"], ["updated_at", "2015-03-01 07:47:31.316479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '373e2528-bfe7-11e4-b385-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "373e2528-bfe7-11e4-b385-705681abff85"], ["created_at", "2015-03-01 07:47:31.321754"], ["updated_at", "2015-03-01 07:47:31.321754"], ["token", "9a5DRh7QMEnlUqC_b7KraPrcUqgAvYOFSJgEM0MKDsQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/373fbc62-bfe7-11e4-b3dd-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"373fbc62-bfe7-11e4-b3dd-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:31.328031' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "euMOvoEDJxTjyBf-MhqH9cCq9d3UkIEhyvQPVeUfaEw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:31.329475"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:31.330529"], ["id", "373d9f2c-bfe7-11e4-bc10-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "373d2f38-bfe7-11e4-9aa7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "373d2f38-bfe7-11e4-9aa7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '373d2f38-bfe7-11e4-9aa7-705681abff85' LIMIT 1 [["organization_id", "373e2528-bfe7-11e4-b385-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "373e2528-bfe7-11e4-b385-705681abff85"], ["id", "373fbc62-bfe7-11e4-b3dd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "373e2528-bfe7-11e4-b385-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."id" != '373fbc62-bfe7-11e4-b3dd-705681abff85' AND "clubhouse_invitations"."organization_id" = '373e2528-bfe7-11e4-b385-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:47:31.343204"], ["id", "373fbc62-bfe7-11e4-b3dd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$.GX7/b9vu2wR4dIO7PGOv.GszdKf7aw8RrJ6yq9mpnIo8yKNKoG5i"], ["created_at", "2015-03-01 07:47:31.353327"], ["updated_at", "2015-03-01 07:47:31.353327"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.356201"], ["user_id", "37447e6e-bfe7-11e4-9607-705681abff85"], ["created_at", "2015-03-01 07:47:31.357530"], ["updated_at", "2015-03-01 07:47:31.357530"], ["token", "Dj_lFJC6AcfuBqEWQXjUcyxbMX-WEp3xUheaRMn9zHw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.361201"], ["updated_at", "2015-03-01 07:47:31.361201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37447e6e-bfe7-11e4-9607-705681abff85' AND "clubhouse_memberships"."organization_id" = '3745a55a-bfe7-11e4-919d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37447e6e-bfe7-11e4-9607-705681abff85"], ["organization_id", "3745a55a-bfe7-11e4-919d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.364768"], ["updated_at", "2015-03-01 07:47:31.364768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '3745a55a-bfe7-11e4-919d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "3745a55a-bfe7-11e4-919d-705681abff85"], ["created_at", "2015-03-01 07:47:31.368569"], ["updated_at", "2015-03-01 07:47:31.368569"], ["token", "pmryT9xv-ioJ29IFJiUHPHZQDXgBLnCCSD3tVvxeKkc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (4.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$.wD6GKq8pgwUwTa5B2Avje.Ub74lUhYqlFvYbglK.J4ZVFKNl1yPe"], ["created_at", "2015-03-01 07:47:31.382276"], ["updated_at", "2015-03-01 07:47:31.382276"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.401665"], ["user_id", "374b578e-bfe7-11e4-8d5c-705681abff85"], ["created_at", "2015-03-01 07:47:31.403249"], ["updated_at", "2015-03-01 07:47:31.403249"], ["token", "0aJkpu5nE2u6SLDXBkShxzl14BbBCXhSWxhOgOqdLUU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.411700"], ["updated_at", "2015-03-01 07:47:31.411700"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '374b578e-bfe7-11e4-8d5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '374d77f8-bfe7-11e4-9ff9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "374b578e-bfe7-11e4-8d5c-705681abff85"], ["organization_id", "374d77f8-bfe7-11e4-9ff9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.418857"], ["updated_at", "2015-03-01 07:47:31.418857"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '374d77f8-bfe7-11e4-9ff9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "374d77f8-bfe7-11e4-9ff9-705681abff85"], ["created_at", "2015-03-01 07:47:31.425099"], ["updated_at", "2015-03-01 07:47:31.425099"], ["token", "o-fzhpA6Sh_nkUQpDYgpDiXtWwxdiYNzdgRZNZIKX5o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/374f8174-bfe7-11e4-ba30-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"374f8174-bfe7-11e4-ba30-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:31.433662' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0aJkpu5nE2u6SLDXBkShxzl14BbBCXhSWxhOgOqdLUU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:31.435845"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:31.437454"], ["id", "374c5616-bfe7-11e4-b252-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "374b578e-bfe7-11e4-8d5c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "374b578e-bfe7-11e4-8d5c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '374b578e-bfe7-11e4-8d5c-705681abff85' LIMIT 1 [["organization_id", "374d77f8-bfe7-11e4-9ff9-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "374d77f8-bfe7-11e4-9ff9-705681abff85"], ["id", "374f8174-bfe7-11e4-ba30-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "374d77f8-bfe7-11e4-9ff9-705681abff85"]] Completed 200 OK in 19ms (Views: 2.6ms | ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$u410WyCkvdrIbiptfhicgu7MhJzVEdWhJMVnADbrW4PnSqE7aAnz6"], ["created_at", "2015-03-01 07:47:31.461694"], ["updated_at", "2015-03-01 07:47:31.461694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.463489"], ["user_id", "3754fd48-bfe7-11e4-b52a-705681abff85"], ["created_at", "2015-03-01 07:47:31.464252"], ["updated_at", "2015-03-01 07:47:31.464252"], ["token", "GXtrusaBZeJdN1H-WtSFQgrEVH1-AmvFozz98OmkcMs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.467745"], ["updated_at", "2015-03-01 07:47:31.467745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3754fd48-bfe7-11e4-b52a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3755e758-bfe7-11e4-b2ee-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3754fd48-bfe7-11e4-b52a-705681abff85"], ["organization_id", "3755e758-bfe7-11e4-b2ee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.471309"], ["updated_at", "2015-03-01 07:47:31.471309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '3755e758-bfe7-11e4-b2ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "3755e758-bfe7-11e4-b2ee-705681abff85"], ["created_at", "2015-03-01 07:47:31.475129"], ["updated_at", "2015-03-01 07:47:31.475129"], ["token", "y9_qcke1Hc9nNSNNrnDn4KI9-IIzY7rOHLOfesxcAXI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$C4vpteGCXhfnA7wY4LiTy.FijAhM19hmnvtajL9ok2gIWQrGNp786"], ["created_at", "2015-03-01 07:47:31.488827"], ["updated_at", "2015-03-01 07:47:31.488827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.490770"], ["user_id", "37591e14-bfe7-11e4-9ed3-705681abff85"], ["created_at", "2015-03-01 07:47:31.491781"], ["updated_at", "2015-03-01 07:47:31.491781"], ["token", "1RL61pDbKhb7iUkds7uJebA3B44UowmmwSw8CPLQFGg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.495335"], ["updated_at", "2015-03-01 07:47:31.495335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37591e14-bfe7-11e4-9ed3-705681abff85' AND "clubhouse_memberships"."organization_id" = '375a1b5c-bfe7-11e4-b7c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37591e14-bfe7-11e4-9ed3-705681abff85"], ["organization_id", "375a1b5c-bfe7-11e4-b7c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.499152"], ["updated_at", "2015-03-01 07:47:31.499152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '375a1b5c-bfe7-11e4-b7c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "375a1b5c-bfe7-11e4-b7c3-705681abff85"], ["created_at", "2015-03-01 07:47:31.502746"], ["updated_at", "2015-03-01 07:47:31.502746"], ["token", "NUJcIdedJj3xZnGfZ_fP4-AhSyT4QX1-6rdt0peCXG4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/375b4086-bfe7-11e4-a462-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"375b4086-bfe7-11e4-a462-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:47:31.508627' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1RL61pDbKhb7iUkds7uJebA3B44UowmmwSw8CPLQFGg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:47:31.510095"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:47:31.511001"], ["id", "37599984-bfe7-11e4-b969-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37591e14-bfe7-11e4-9ed3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "37591e14-bfe7-11e4-9ed3-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37591e14-bfe7-11e4-9ed3-705681abff85' LIMIT 1 [["organization_id", "375a1b5c-bfe7-11e4-b7c3-705681abff85"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "375a1b5c-bfe7-11e4-b7c3-705681abff85"], ["id", "375b4086-bfe7-11e4-a462-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "375b4086-bfe7-11e4-a462-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$u/3Th1GsID5Uj9i068UTy.4E5pHDbByZ7NsMa2IQYVWAAPveavFaK"], ["created_at", "2015-03-01 07:47:31.525165"], ["updated_at", "2015-03-01 07:47:31.525165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:47:31.526731"], ["user_id", "375ea7a8-bfe7-11e4-aa1e-705681abff85"], ["created_at", "2015-03-01 07:47:31.527488"], ["updated_at", "2015-03-01 07:47:31.527488"], ["token", "-J2Zi_ud4e64mOyTRsOy18sQE-0Wxhc6vNJ7SoBYfI0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:47:31.531203"], ["updated_at", "2015-03-01 07:47:31.531203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '375ea7a8-bfe7-11e4-aa1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '375f91fe-bfe7-11e4-a5f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "375ea7a8-bfe7-11e4-aa1e-705681abff85"], ["organization_id", "375f91fe-bfe7-11e4-a5f9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:47:31.534387"], ["updated_at", "2015-03-01 07:47:31.534387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '375f91fe-bfe7-11e4-a5f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "375f91fe-bfe7-11e4-a5f9-705681abff85"], ["created_at", "2015-03-01 07:47:31.537763"], ["updated_at", "2015-03-01 07:47:31.537763"], ["token", "s5cbzmiIHok_9cyyzwtB47CWJkMlJcWYgUI3Hh1vJtY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:47:31 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (7.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:12.963489"], ["updated_at", "2015-03-01 07:53:12.963489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '02e2361a-bfe8-11e4-af25-705681abff85') LIMIT 1 SQL (6.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "02e2361a-bfe8-11e4-af25-705681abff85"], ["created_at", "2015-03-01 07:53:12.987617"], ["updated_at", "2015-03-01 07:53:12.987617"], ["token", "x20WgxhZO9E7p-1KWP9ugJe5atBYEq16oqov-fBOGKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.4ms) Clubhouse::Mailer#invitation: processed outbound mail in 29.2ms Sent mail to john@example.com (9.2ms) Date: Sat, 28 Feb 2015 23:53:13 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c5697dd7_136213fd8d9863bec26016@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/x20WgxhZO9E7p-1KWP9ugJe5atBYEq16oqov-fBOGKg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.042188"], ["updated_at", "2015-03-01 07:53:13.042188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '02ee05b2-bfe8-11e4-a075-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "02ee05b2-bfe8-11e4-a075-705681abff85"], ["created_at", "2015-03-01 07:53:13.046108"], ["updated_at", "2015-03-01 07:53:13.046108"], ["token", "w8ZE0DYLvQV-otBeL3OaPiQpTo04daSDhao3tl8SzI8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (2.1ms) Date: Sat, 28 Feb 2015 23:53:13 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c569c23c_136213fd8d9863bec26118@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/w8ZE0DYLvQV-otBeL3OaPiQpTo04daSDhao3tl8SzI8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.059152"], ["updated_at", "2015-03-01 07:53:13.059152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '02f09e3a-bfe8-11e4-bf8d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "02f09e3a-bfe8-11e4-bf8d-705681abff85"], ["created_at", "2015-03-01 07:53:13.062594"], ["updated_at", "2015-03-01 07:53:13.062594"], ["token", "YyhTJFZYvod0bkNtUJEQC-YiBoR5Nzdy3ZOTO-Ru3zk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.9ms) Date: Sat, 28 Feb 2015 23:53:13 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c56910415_136213fd8d9863bec26239@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/YyhTJFZYvod0bkNtUJEQC-YiBoR5Nzdy3ZOTO-Ru3zk If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.071281"], ["updated_at", "2015-03-01 07:53:13.071281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '02f273d6-bfe8-11e4-840a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "02f273d6-bfe8-11e4-840a-705681abff85"], ["created_at", "2015-03-01 07:53:13.075277"], ["updated_at", "2015-03-01 07:53:13.075277"], ["token", "7vMKlRlgv7rV1WhrcAQkJD_euNCn4bA7R3ZKhSTHQCs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.6ms) Date: Sat, 28 Feb 2015 23:53:13 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c56913416_136213fd8d9863bec26311@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/7vMKlRlgv7rV1WhrcAQkJD_euNCn4bA7R3ZKhSTHQCs If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$CcaxMpKs6qi1o0hhsfzQIO0m6vtpTiGx0yodPx2BgrWXxQHtFpQUK"], ["created_at", "2015-03-01 07:53:13.091048"], ["updated_at", "2015-03-01 07:53:13.091048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$sFe3vyuWgZOwnBrjaeiEMuHjiejpcp/tonp2lyNHf9bk/2L1GxUY6"], ["created_at", "2015-03-01 07:53:13.096147"], ["updated_at", "2015-03-01 07:53:13.096147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.103909"], ["user_id", "02f57ffe-bfe8-11e4-9d73-705681abff85"], ["created_at", "2015-03-01 07:53:13.105273"], ["updated_at", "2015-03-01 07:53:13.105273"], ["token", "VKt1M1dUbKtOYpsopPCg1fraYogAH-tDb3rrLbz6w9w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.109390"], ["updated_at", "2015-03-01 07:53:13.109390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02f57ffe-bfe8-11e4-9d73-705681abff85' AND "clubhouse_memberships"."organization_id" = '02f843ec-bfe8-11e4-a945-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02f57ffe-bfe8-11e4-9d73-705681abff85"], ["organization_id", "02f843ec-bfe8-11e4-a945-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.120120"], ["updated_at", "2015-03-01 07:53:13.120120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02f640d8-bfe8-11e4-a019-705681abff85' AND "clubhouse_memberships"."organization_id" = '02f843ec-bfe8-11e4-a945-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02f640d8-bfe8-11e4-a019-705681abff85"], ["organization_id", "02f843ec-bfe8-11e4-a945-705681abff85"], ["created_at", "2015-03-01 07:53:13.124056"], ["updated_at", "2015-03-01 07:53:13.124056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:13.149829' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VKt1M1dUbKtOYpsopPCg1fraYogAH-tDb3rrLbz6w9w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:13.156659"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:13.157813"], ["id", "02f7ba94-bfe8-11e4-9333-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "02f57ffe-bfe8-11e4-9d73-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "02f57ffe-bfe8-11e4-9d73-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "02f57ffe-bfe8-11e4-9d73-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "02f57ffe-bfe8-11e4-9d73-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('02f57ffe-bfe8-11e4-9d73-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('02f843ec-bfe8-11e4-a945-705681abff85') Completed 200 OK in 42ms (Views: 10.3ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$FZnGx1PQB9th9O42ap0F3OA3.TsPBOPgmj3Q0RFuTMW61.eCpzXXW"], ["created_at", "2015-03-01 07:53:13.199947"], ["updated_at", "2015-03-01 07:53:13.199947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$zRNZd8EXcuKo0CS1as5BcOrW7xmeO5DXlOzcI.3TyLqEbw0NhO9Y."], ["created_at", "2015-03-01 07:53:13.204543"], ["updated_at", "2015-03-01 07:53:13.204543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.206961"], ["user_id", "030617c4-bfe8-11e4-8913-705681abff85"], ["created_at", "2015-03-01 07:53:13.208051"], ["updated_at", "2015-03-01 07:53:13.208051"], ["token", "3iColjaezefZI1Pcw4TJCy2ZSB4v1VqxKpqsXPGAPY8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.212754"], ["updated_at", "2015-03-01 07:53:13.212754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '030617c4-bfe8-11e4-8913-705681abff85' AND "clubhouse_memberships"."organization_id" = '03080f2a-bfe8-11e4-8b20-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "030617c4-bfe8-11e4-8913-705681abff85"], ["organization_id", "03080f2a-bfe8-11e4-8b20-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.216886"], ["updated_at", "2015-03-01 07:53:13.216886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0306cdf4-bfe8-11e4-a5be-705681abff85' AND "clubhouse_memberships"."organization_id" = '03080f2a-bfe8-11e4-8b20-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0306cdf4-bfe8-11e4-a5be-705681abff85"], ["organization_id", "03080f2a-bfe8-11e4-8b20-705681abff85"], ["created_at", "2015-03-01 07:53:13.220231"], ["updated_at", "2015-03-01 07:53:13.220231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$c5VAeCd/CLx8PXWMNwy8AuOQSA9YNEAlv4vqyq9GtRtqkK5XD4vwG"], ["created_at", "2015-03-01 07:53:13.233400"], ["updated_at", "2015-03-01 07:53:13.233400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$qtSzwr.RGF2Z.jKQuBaE4OuoSNd0g2yf6IRtKcWZFBcKMRCXBAmtu"], ["created_at", "2015-03-01 07:53:13.237754"], ["updated_at", "2015-03-01 07:53:13.237754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.240867"], ["user_id", "030b36aa-bfe8-11e4-a774-705681abff85"], ["created_at", "2015-03-01 07:53:13.242049"], ["updated_at", "2015-03-01 07:53:13.242049"], ["token", "CG0iu2is7BZ5sCnrvTCnGLvoyAcNOkHrAZDAxG_QS5o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.247949"], ["updated_at", "2015-03-01 07:53:13.247949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '030b36aa-bfe8-11e4-a774-705681abff85' AND "clubhouse_memberships"."organization_id" = '030d76c2-bfe8-11e4-93de-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "030b36aa-bfe8-11e4-a774-705681abff85"], ["organization_id", "030d76c2-bfe8-11e4-93de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.252009"], ["updated_at", "2015-03-01 07:53:13.252009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '030bf478-bfe8-11e4-9543-705681abff85' AND "clubhouse_memberships"."organization_id" = '030d76c2-bfe8-11e4-93de-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "030bf478-bfe8-11e4-9543-705681abff85"], ["organization_id", "030d76c2-bfe8-11e4-93de-705681abff85"], ["created_at", "2015-03-01 07:53:13.255328"], ["updated_at", "2015-03-01 07:53:13.255328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/030e87f6-bfe8-11e4-9d6f-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"030e87f6-bfe8-11e4-9d6f-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:13.259947' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CG0iu2is7BZ5sCnrvTCnGLvoyAcNOkHrAZDAxG_QS5o"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:13.261810"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:13.263783"], ["id", "030c9cde-bfe8-11e4-abe1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "030b36aa-bfe8-11e4-a774-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "030b36aa-bfe8-11e4-a774-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '030b36aa-bfe8-11e4-a774-705681abff85' LIMIT 1 [["organization_id", "030d76c2-bfe8-11e4-93de-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "030d76c2-bfe8-11e4-93de-705681abff85"], ["id", "030e87f6-bfe8-11e4-9d6f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "030bf478-bfe8-11e4-9543-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "030d76c2-bfe8-11e4-93de-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '030bf478-bfe8-11e4-9543-705681abff85' AND "clubhouse_memberships"."id" != '030e87f6-bfe8-11e4-9d6f-705681abff85' AND "clubhouse_memberships"."organization_id" = '030d76c2-bfe8-11e4-93de-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:53:13.278646"], ["id", "030e87f6-bfe8-11e4-9d6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 1.1ms | ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$4j30dVi5KY5C5K23EE5RfOEB5ZApjekzdmKVWrBNVtUaregXqMo62"], ["created_at", "2015-03-01 07:53:13.287249"], ["updated_at", "2015-03-01 07:53:13.287249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$tVz1u9IIL.FkMe3mm4CoG.roZkvy5hCJqxIOnFIMDrxSF6rUCTXfq"], ["created_at", "2015-03-01 07:53:13.291526"], ["updated_at", "2015-03-01 07:53:13.291526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.293249"], ["user_id", "03136d52-bfe8-11e4-b1a8-705681abff85"], ["created_at", "2015-03-01 07:53:13.294133"], ["updated_at", "2015-03-01 07:53:13.294133"], ["token", "yQJlOPzP2-W0KVRYEP6uC1t-ol_vXtFRByF1P7Q4KKc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.297638"], ["updated_at", "2015-03-01 07:53:13.297638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03136d52-bfe8-11e4-b1a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0314fdb6-bfe8-11e4-8eb7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "03136d52-bfe8-11e4-b1a8-705681abff85"], ["organization_id", "0314fdb6-bfe8-11e4-8eb7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.300828"], ["updated_at", "2015-03-01 07:53:13.300828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03140ce4-bfe8-11e4-a70e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0314fdb6-bfe8-11e4-8eb7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03140ce4-bfe8-11e4-a70e-705681abff85"], ["organization_id", "0314fdb6-bfe8-11e4-8eb7-705681abff85"], ["created_at", "2015-03-01 07:53:13.303772"], ["updated_at", "2015-03-01 07:53:13.303772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/031578ae-bfe8-11e4-a773-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"031578ae-bfe8-11e4-a773-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:13.310567' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yQJlOPzP2-W0KVRYEP6uC1t-ol_vXtFRByF1P7Q4KKc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:13.312007"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:13.313124"], ["id", "03147eae-bfe8-11e4-b842-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03136d52-bfe8-11e4-b1a8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03136d52-bfe8-11e4-b1a8-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '03136d52-bfe8-11e4-b1a8-705681abff85' LIMIT 1 [["organization_id", "0314fdb6-bfe8-11e4-8eb7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0314fdb6-bfe8-11e4-8eb7-705681abff85"], ["id", "031578ae-bfe8-11e4-a773-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03136d52-bfe8-11e4-b1a8-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$OZMywbpaiQi.umVX7xyYYOsceNm23fVNS1Ucrii0KlZHi/5psWuG6"], ["created_at", "2015-03-01 07:53:13.326331"], ["updated_at", "2015-03-01 07:53:13.326331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$w5oKFZrWkV5K3XZXmSVEquw3dtAeETYgI9c6ZvHz7vmTSXGqq/HO2"], ["created_at", "2015-03-01 07:53:13.330631"], ["updated_at", "2015-03-01 07:53:13.330631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.332214"], ["user_id", "031961e4-bfe8-11e4-ab6e-705681abff85"], ["created_at", "2015-03-01 07:53:13.333013"], ["updated_at", "2015-03-01 07:53:13.333013"], ["token", "yGgFpAXdYA0CM53vwuZmk3SKtKu1Ya9SK5GCFAHWMI0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.336549"], ["updated_at", "2015-03-01 07:53:13.336549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '031961e4-bfe8-11e4-ab6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '031aecda-bfe8-11e4-be55-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "031961e4-bfe8-11e4-ab6e-705681abff85"], ["organization_id", "031aecda-bfe8-11e4-be55-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.340080"], ["updated_at", "2015-03-01 07:53:13.340080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '031a0590-bfe8-11e4-9015-705681abff85' AND "clubhouse_memberships"."organization_id" = '031aecda-bfe8-11e4-be55-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "031a0590-bfe8-11e4-9015-705681abff85"], ["organization_id", "031aecda-bfe8-11e4-be55-705681abff85"], ["created_at", "2015-03-01 07:53:13.343260"], ["updated_at", "2015-03-01 07:53:13.343260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:13.349007' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yGgFpAXdYA0CM53vwuZmk3SKtKu1Ya9SK5GCFAHWMI0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:13.350675"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:13.351688"], ["id", "031a6bde-bfe8-11e4-b7bd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "031961e4-bfe8-11e4-ab6e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "031961e4-bfe8-11e4-ab6e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '031961e4-bfe8-11e4-ab6e-705681abff85' LIMIT 1 [["organization_id", "031aecda-bfe8-11e4-be55-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "031aecda-bfe8-11e4-be55-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('031961e4-bfe8-11e4-ab6e-705681abff85', '031a0590-bfe8-11e4-9015-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('031aecda-bfe8-11e4-be55-705681abff85') Completed 200 OK in 14ms (Views: 4.2ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$/Lm9gBsBekHB7sXY44t4YOcW7UV8FfttIPlMd6Vr0R2wPWwfmZfTW"], ["created_at", "2015-03-01 07:53:13.368792"], ["updated_at", "2015-03-01 07:53:13.368792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$vFu5gHCIbzpXX0nfzmz4o.5GLdognoD2ccP.YSRapH/hwc8ll1TLC"], ["created_at", "2015-03-01 07:53:13.373242"], ["updated_at", "2015-03-01 07:53:13.373242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (9.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.374808"], ["user_id", "031fdbd2-bfe8-11e4-a693-705681abff85"], ["created_at", "2015-03-01 07:53:13.375579"], ["updated_at", "2015-03-01 07:53:13.375579"], ["token", "igSZfAKMe6KRVrdzm_uY4Do8MOJsLzGs6rL9OzgEEoc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.391308"], ["updated_at", "2015-03-01 07:53:13.391308"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '031fdbd2-bfe8-11e4-a693-705681abff85' AND "clubhouse_memberships"."organization_id" = '0323669e-bfe8-11e4-ac89-705681abff85') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "031fdbd2-bfe8-11e4-a693-705681abff85"], ["organization_id", "0323669e-bfe8-11e4-ac89-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.397952"], ["updated_at", "2015-03-01 07:53:13.397952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '032086a4-bfe8-11e4-9b71-705681abff85' AND "clubhouse_memberships"."organization_id" = '0323669e-bfe8-11e4-ac89-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "032086a4-bfe8-11e4-9b71-705681abff85"], ["organization_id", "0323669e-bfe8-11e4-ac89-705681abff85"], ["created_at", "2015-03-01 07:53:13.410249"], ["updated_at", "2015-03-01 07:53:13.410249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$tIkbbWehxOPnDpKeD0pLee5LHdgWds1XRHKWJnafBDxKyuDeHvx0K"], ["created_at", "2015-03-01 07:53:13.431919"], ["updated_at", "2015-03-01 07:53:13.431919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$0iYfmDgF1YasJ4EWOnwbo.hZZoNB3k5bykTzsXGA7fOTrJssuU5B6"], ["created_at", "2015-03-01 07:53:13.436918"], ["updated_at", "2015-03-01 07:53:13.436918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.438949"], ["user_id", "03298380-bfe8-11e4-86bb-705681abff85"], ["created_at", "2015-03-01 07:53:13.439807"], ["updated_at", "2015-03-01 07:53:13.439807"], ["token", "ZDBODUuitShowxc1F7745Qxvn4MmCxRv9n26Pe8I7bw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.445264"], ["updated_at", "2015-03-01 07:53:13.445264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03298380-bfe8-11e4-86bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '032b85cc-bfe8-11e4-85cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "03298380-bfe8-11e4-86bb-705681abff85"], ["organization_id", "032b85cc-bfe8-11e4-85cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.448649"], ["updated_at", "2015-03-01 07:53:13.448649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '032a48ec-bfe8-11e4-bec5-705681abff85' AND "clubhouse_memberships"."organization_id" = '032b85cc-bfe8-11e4-85cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "032a48ec-bfe8-11e4-bec5-705681abff85"], ["organization_id", "032b85cc-bfe8-11e4-85cb-705681abff85"], ["created_at", "2015-03-01 07:53:13.452036"], ["updated_at", "2015-03-01 07:53:13.452036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/032c8b20-bfe8-11e4-aef3-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"032c8b20-bfe8-11e4-aef3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:13.457083' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZDBODUuitShowxc1F7745Qxvn4MmCxRv9n26Pe8I7bw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:13.458564"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:13.459524"], ["id", "032ab818-bfe8-11e4-a6fe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03298380-bfe8-11e4-86bb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03298380-bfe8-11e4-86bb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '03298380-bfe8-11e4-86bb-705681abff85' LIMIT 1 [["organization_id", "032b85cc-bfe8-11e4-85cb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "032b85cc-bfe8-11e4-85cb-705681abff85"], ["id", "032c8b20-bfe8-11e4-aef3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "032b85cc-bfe8-11e4-85cb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "032a48ec-bfe8-11e4-bec5-705681abff85"]] Completed 200 OK in 12ms (Views: 2.2ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$qDjN9zZM74i.Xz5Y06XNQ.5st06QxizsEdfblVswSvKmYgVZIX2Xa"], ["created_at", "2015-03-01 07:53:13.476518"], ["updated_at", "2015-03-01 07:53:13.476518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$H0N0LEgGmEo1sgQQ.Z1Lb.xiA8Nsr6i2rRY/TasMS0UD1zCxIXHZe"], ["created_at", "2015-03-01 07:53:13.481684"], ["updated_at", "2015-03-01 07:53:13.481684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.483578"], ["user_id", "03304c06-bfe8-11e4-bac4-705681abff85"], ["created_at", "2015-03-01 07:53:13.484446"], ["updated_at", "2015-03-01 07:53:13.484446"], ["token", "V0tGYiN02sva7GqaS-IZnlsl1hUVUZ3aRo1GRZHObXI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.488035"], ["updated_at", "2015-03-01 07:53:13.488035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03304c06-bfe8-11e4-bac4-705681abff85' AND "clubhouse_memberships"."organization_id" = '03320bcc-bfe8-11e4-a2b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "03304c06-bfe8-11e4-bac4-705681abff85"], ["organization_id", "03320bcc-bfe8-11e4-a2b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.491336"], ["updated_at", "2015-03-01 07:53:13.491336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03311410-bfe8-11e4-ae71-705681abff85' AND "clubhouse_memberships"."organization_id" = '03320bcc-bfe8-11e4-a2b4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03311410-bfe8-11e4-ae71-705681abff85"], ["organization_id", "03320bcc-bfe8-11e4-a2b4-705681abff85"], ["created_at", "2015-03-01 07:53:13.494241"], ["updated_at", "2015-03-01 07:53:13.494241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$XBSpAIrysGao0QD/VJ/LfOgo0M6wFerezwQo/1X71G9JOsl8H4IRe"], ["created_at", "2015-03-01 07:53:13.507836"], ["updated_at", "2015-03-01 07:53:13.507836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$v9vhk00e1VNZpiXLwt0hWO35cnanh1ZSEln9JZAPx0mymRW75gP0u"], ["created_at", "2015-03-01 07:53:13.512363"], ["updated_at", "2015-03-01 07:53:13.512363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.514091"], ["user_id", "03351560-bfe8-11e4-a2af-705681abff85"], ["created_at", "2015-03-01 07:53:13.515004"], ["updated_at", "2015-03-01 07:53:13.515004"], ["token", "aoK8KdDkjJ0TW8Khw68n3sF-z4VHcZp0vh65Ee-ggUE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.523135"], ["updated_at", "2015-03-01 07:53:13.523135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03351560-bfe8-11e4-a2af-705681abff85' AND "clubhouse_memberships"."organization_id" = '03377c92-bfe8-11e4-9623-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "03351560-bfe8-11e4-a2af-705681abff85"], ["organization_id", "03377c92-bfe8-11e4-9623-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.527398"], ["updated_at", "2015-03-01 07:53:13.527398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0335c622-bfe8-11e4-8bd9-705681abff85' AND "clubhouse_memberships"."organization_id" = '03377c92-bfe8-11e4-9623-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0335c622-bfe8-11e4-8bd9-705681abff85"], ["organization_id", "03377c92-bfe8-11e4-9623-705681abff85"], ["created_at", "2015-03-01 07:53:13.530791"], ["updated_at", "2015-03-01 07:53:13.530791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/03389cf8-bfe8-11e4-af15-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"03389cf8-bfe8-11e4-af15-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:13.536882' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aoK8KdDkjJ0TW8Khw68n3sF-z4VHcZp0vh65Ee-ggUE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:13.538321"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:13.539281"], ["id", "033634b8-bfe8-11e4-83fb-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03351560-bfe8-11e4-a2af-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03351560-bfe8-11e4-a2af-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '03351560-bfe8-11e4-a2af-705681abff85' LIMIT 1 [["organization_id", "03377c92-bfe8-11e4-9623-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "03377c92-bfe8-11e4-9623-705681abff85"], ["id", "03389cf8-bfe8-11e4-af15-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0335c622-bfe8-11e4-8bd9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "03389cf8-bfe8-11e4-af15-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$ENIrmhdrJ9CFgndlwvAw8.PhJzHgsNOY9G83rVmm0FEmc2Jgecghm"], ["created_at", "2015-03-01 07:53:13.556929"], ["updated_at", "2015-03-01 07:53:13.556929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$WPhb8OijJM40ob3CMOJgu.tdS4e/O6ENfIJEyv82DRfXKSIFqcola"], ["created_at", "2015-03-01 07:53:13.561186"], ["updated_at", "2015-03-01 07:53:13.561186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.562689"], ["user_id", "033c920e-bfe8-11e4-9bc2-705681abff85"], ["created_at", "2015-03-01 07:53:13.563444"], ["updated_at", "2015-03-01 07:53:13.563444"], ["token", "vfVl3ZGtOsrSn1-8JyqVUcrTIgeJ4eTS2svcOO1RcqI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.567111"], ["updated_at", "2015-03-01 07:53:13.567111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '033c920e-bfe8-11e4-9bc2-705681abff85' AND "clubhouse_memberships"."organization_id" = '033e272c-bfe8-11e4-aa3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "033c920e-bfe8-11e4-9bc2-705681abff85"], ["organization_id", "033e272c-bfe8-11e4-aa3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.570957"], ["updated_at", "2015-03-01 07:53:13.570957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '033d3416-bfe8-11e4-8ad7-705681abff85' AND "clubhouse_memberships"."organization_id" = '033e272c-bfe8-11e4-aa3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "033d3416-bfe8-11e4-8ad7-705681abff85"], ["organization_id", "033e272c-bfe8-11e4-aa3f-705681abff85"], ["created_at", "2015-03-01 07:53:13.574129"], ["updated_at", "2015-03-01 07:53:13.574129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/033eb2d2-bfe8-11e4-bb5d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"033eb2d2-bfe8-11e4-bb5d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:13.579310' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vfVl3ZGtOsrSn1-8JyqVUcrTIgeJ4eTS2svcOO1RcqI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:13.580718"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:13.581824"], ["id", "033d9208-bfe8-11e4-b472-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "033c920e-bfe8-11e4-9bc2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "033c920e-bfe8-11e4-9bc2-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '033c920e-bfe8-11e4-9bc2-705681abff85' LIMIT 1 [["organization_id", "033e272c-bfe8-11e4-aa3f-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "033e272c-bfe8-11e4-aa3f-705681abff85"], ["id", "033eb2d2-bfe8-11e4-bb5d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "033c920e-bfe8-11e4-9bc2-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$SxY67zKG90OayRgq2puFvuQ3KD6/wNlE3uF72a2FkXq0nEJ4S0fCu"], ["created_at", "2015-03-01 07:53:13.593905"], ["updated_at", "2015-03-01 07:53:13.593905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$1un07stoJorByVjMZ22lfOKzr5X1LmckPHkzpj0BcvTiQR25OJSe."], ["created_at", "2015-03-01 07:53:13.598209"], ["updated_at", "2015-03-01 07:53:13.598209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.599775"], ["user_id", "0342334e-bfe8-11e4-9b67-705681abff85"], ["created_at", "2015-03-01 07:53:13.600554"], ["updated_at", "2015-03-01 07:53:13.600554"], ["token", "9Izh4X8h04gYVCqopNxt5R9ZFo-ffxz_qQmucdy9aiM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.604187"], ["updated_at", "2015-03-01 07:53:13.604187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0342334e-bfe8-11e4-9b67-705681abff85' AND "clubhouse_memberships"."organization_id" = '0343c600-bfe8-11e4-959e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0342334e-bfe8-11e4-9b67-705681abff85"], ["organization_id", "0343c600-bfe8-11e4-959e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.607563"], ["updated_at", "2015-03-01 07:53:13.607563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0342daec-bfe8-11e4-9948-705681abff85' AND "clubhouse_memberships"."organization_id" = '0343c600-bfe8-11e4-959e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0342daec-bfe8-11e4-9948-705681abff85"], ["organization_id", "0343c600-bfe8-11e4-959e-705681abff85"], ["created_at", "2015-03-01 07:53:13.610561"], ["updated_at", "2015-03-01 07:53:13.610561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$aK7TsqmU1mnrQsWfqtmXp.FgWZ3WzDqcSApiQ.QM5NMyOJhc90zgC"], ["created_at", "2015-03-01 07:53:13.622634"], ["updated_at", "2015-03-01 07:53:13.622634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$v9/fLEIS.dxzbDoQpVBUeO9CR9LIlUx.ONedfT0TZwQ7u0c2ww0.u"], ["created_at", "2015-03-01 07:53:13.627422"], ["updated_at", "2015-03-01 07:53:13.627422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.629014"], ["user_id", "034697a4-bfe8-11e4-852b-705681abff85"], ["created_at", "2015-03-01 07:53:13.629762"], ["updated_at", "2015-03-01 07:53:13.629762"], ["token", "a59CIziYdEdEjwZtgD7DxyK80qaQvkkML6Pmtb8btMk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.633062"], ["updated_at", "2015-03-01 07:53:13.633062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '034697a4-bfe8-11e4-852b-705681abff85' AND "clubhouse_memberships"."organization_id" = '03482a60-bfe8-11e4-8b03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "034697a4-bfe8-11e4-852b-705681abff85"], ["organization_id", "03482a60-bfe8-11e4-8b03-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.636426"], ["updated_at", "2015-03-01 07:53:13.636426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03475220-bfe8-11e4-8783-705681abff85' AND "clubhouse_memberships"."organization_id" = '03482a60-bfe8-11e4-8b03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03475220-bfe8-11e4-8783-705681abff85"], ["organization_id", "03482a60-bfe8-11e4-8b03-705681abff85"], ["created_at", "2015-03-01 07:53:13.639780"], ["updated_at", "2015-03-01 07:53:13.639780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/0348b4b2-bfe8-11e4-a3b4-705681abff85" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"0348b4b2-bfe8-11e4-a3b4-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:13.644510' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "a59CIziYdEdEjwZtgD7DxyK80qaQvkkML6Pmtb8btMk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:13.646259"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:13.647197"], ["id", "0347b0ee-bfe8-11e4-9c72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "034697a4-bfe8-11e4-852b-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "034697a4-bfe8-11e4-852b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "034697a4-bfe8-11e4-852b-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "034697a4-bfe8-11e4-852b-705681abff85"], ["id", "0348b4b2-bfe8-11e4-a3b4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "03482a60-bfe8-11e4-8b03-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "034697a4-bfe8-11e4-852b-705681abff85"]] Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$PlAHKDDNRtQ.sAzteaQ0letIcGLRa1JBs74O21eSsKzLRY0/KZgD6"], ["created_at", "2015-03-01 07:53:13.661442"], ["updated_at", "2015-03-01 07:53:13.661442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$oVvdlJ6S37nHGWeSQJlZaut7zyT66qDDcWiMWIwTc9EMQm6pZNRjK"], ["created_at", "2015-03-01 07:53:13.665652"], ["updated_at", "2015-03-01 07:53:13.665652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.667136"], ["user_id", "034c8178-bfe8-11e4-98b0-705681abff85"], ["created_at", "2015-03-01 07:53:13.667928"], ["updated_at", "2015-03-01 07:53:13.667928"], ["token", "NZyDP1x3rXnXIJxmD_vTiTzuNHd34A2okdjYspqxJ9c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.671690"], ["updated_at", "2015-03-01 07:53:13.671690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '034c8178-bfe8-11e4-98b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '034e1088-bfe8-11e4-a064-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "034c8178-bfe8-11e4-98b0-705681abff85"], ["organization_id", "034e1088-bfe8-11e4-a064-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.674861"], ["updated_at", "2015-03-01 07:53:13.674861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '034d240c-bfe8-11e4-af36-705681abff85' AND "clubhouse_memberships"."organization_id" = '034e1088-bfe8-11e4-a064-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "034d240c-bfe8-11e4-af36-705681abff85"], ["organization_id", "034e1088-bfe8-11e4-a064-705681abff85"], ["created_at", "2015-03-01 07:53:13.677674"], ["updated_at", "2015-03-01 07:53:13.677674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$BXFjIQH6GUIihJcbACdoS.hJ.8IR1FMV7KK0L/4pSN.gnw817TYfO"], ["created_at", "2015-03-01 07:53:13.681913"], ["updated_at", "2015-03-01 07:53:13.681913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.684011"], ["user_id", "034fa3e4-bfe8-11e4-a572-705681abff85"], ["created_at", "2015-03-01 07:53:13.684814"], ["updated_at", "2015-03-01 07:53:13.684814"], ["token", "bdjZIXma8PCS7_S1AxEOVTFDosv26WZrjmI1blliT3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '034e1088-bfe8-11e4-a064-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "034e1088-bfe8-11e4-a064-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.688917"], ["updated_at", "2015-03-01 07:53:13.688917"], ["token", "v_Zikig6RXWUAemcO2IkOR1qF68ZfgVj85RMokFXVL0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$RaubYsflmJuAvgeFn/2mP.pYYsq9QPPHzl5td2T698DF.LB1FWIpS"], ["created_at", "2015-03-01 07:53:13.702256"], ["updated_at", "2015-03-01 07:53:13.702256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$wpiLZjAWse1.94uN9qkRGeOIpGrLeVUpdyqwvKNGeiSd6uKygIOea"], ["created_at", "2015-03-01 07:53:13.706573"], ["updated_at", "2015-03-01 07:53:13.706573"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.710146"], ["user_id", "0352bda4-bfe8-11e4-8eba-705681abff85"], ["created_at", "2015-03-01 07:53:13.710933"], ["updated_at", "2015-03-01 07:53:13.710933"], ["token", "Ve2ONwyzAhwhdD4k9I-Tm3krdXsoLjjs5UbBA8Qo128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.714299"], ["updated_at", "2015-03-01 07:53:13.714299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0352bda4-bfe8-11e4-8eba-705681abff85' AND "clubhouse_memberships"."organization_id" = '03549066-bfe8-11e4-ade0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0352bda4-bfe8-11e4-8eba-705681abff85"], ["organization_id", "03549066-bfe8-11e4-ade0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.717978"], ["updated_at", "2015-03-01 07:53:13.717978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '035361e6-bfe8-11e4-96ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '03549066-bfe8-11e4-ade0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "035361e6-bfe8-11e4-96ca-705681abff85"], ["organization_id", "03549066-bfe8-11e4-ade0-705681abff85"], ["created_at", "2015-03-01 07:53:13.721374"], ["updated_at", "2015-03-01 07:53:13.721374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$JAJ4RuTVC30yHeLMWerBsOD8RDA.c5OPh.Z0JEsJ.74hR2mXT6yB2"], ["created_at", "2015-03-01 07:53:13.725869"], ["updated_at", "2015-03-01 07:53:13.725869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.727531"], ["user_id", "03565630-bfe8-11e4-9f1a-705681abff85"], ["created_at", "2015-03-01 07:53:13.728362"], ["updated_at", "2015-03-01 07:53:13.728362"], ["token", "V3nsBBu9YIcw_k7PL_JwwZgdkQEQUoYpXZelQgpaQCE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '03549066-bfe8-11e4-ade0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "03549066-bfe8-11e4-ade0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.732101"], ["updated_at", "2015-03-01 07:53:13.732101"], ["token", "h5BGyC9HjYIgQPweSpyMyneckuek7g6Qeu5uqWLoyfs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"h5BGyC9HjYIgQPweSpyMyneckuek7g6Qeu5uqWLoyfs", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:13.737193' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "V3nsBBu9YIcw_k7PL_JwwZgdkQEQUoYpXZelQgpaQCE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:13.738722"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:13.739668"], ["id", "0356beea-bfe8-11e4-a611-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03565630-bfe8-11e4-9f1a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03565630-bfe8-11e4-9f1a-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "h5BGyC9HjYIgQPweSpyMyneckuek7g6Qeu5uqWLoyfs"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "03549066-bfe8-11e4-ade0-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "03549066-bfe8-11e4-ade0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03565630-bfe8-11e4-9f1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '03549066-bfe8-11e4-ade0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "03565630-bfe8-11e4-9f1a-705681abff85"], ["admin", "t"], ["organization_id", "03549066-bfe8-11e4-ade0-705681abff85"], ["created_at", "2015-03-01 07:53:13.749497"], ["updated_at", "2015-03-01 07:53:13.749497"]] SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "035752f6-bfe8-11e4-9806-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.1ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$dlqo56XwROIQ1aamJ/2T0u0ZbC3ujJaJCavojimr/nnKSxqGQHqKy"], ["created_at", "2015-03-01 07:53:13.760074"], ["updated_at", "2015-03-01 07:53:13.760074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$VxjNziU4OVeUp/33PmsoueOXoVYLALh.YwyhbkH.skvGx2BjAaSca"], ["created_at", "2015-03-01 07:53:13.764449"], ["updated_at", "2015-03-01 07:53:13.764449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.766129"], ["user_id", "035b90a0-bfe8-11e4-ae1e-705681abff85"], ["created_at", "2015-03-01 07:53:13.766945"], ["updated_at", "2015-03-01 07:53:13.766945"], ["token", "v-L1WxIWod1niYeAYfhoVsSa12XsMeXJ5wMrZJVUjo4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.770616"], ["updated_at", "2015-03-01 07:53:13.770616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '035b90a0-bfe8-11e4-ae1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '035d2c26-bfe8-11e4-a8f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "035b90a0-bfe8-11e4-ae1e-705681abff85"], ["organization_id", "035d2c26-bfe8-11e4-a8f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.773988"], ["updated_at", "2015-03-01 07:53:13.773988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '035c3794-bfe8-11e4-a615-705681abff85' AND "clubhouse_memberships"."organization_id" = '035d2c26-bfe8-11e4-a8f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "035c3794-bfe8-11e4-a615-705681abff85"], ["organization_id", "035d2c26-bfe8-11e4-a8f5-705681abff85"], ["created_at", "2015-03-01 07:53:13.776879"], ["updated_at", "2015-03-01 07:53:13.776879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$8atLO4QcXV0YNSr4.g0nReRmk0Em4ja/utzOdwDZrdQRPY.1WQ7fC"], ["created_at", "2015-03-01 07:53:13.781402"], ["updated_at", "2015-03-01 07:53:13.781402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.782935"], ["user_id", "035eced2-bfe8-11e4-8b6e-705681abff85"], ["created_at", "2015-03-01 07:53:13.783678"], ["updated_at", "2015-03-01 07:53:13.783678"], ["token", "eY0t-jBiACADAptPtGfNj2S3mjfD_2KF1N4g8dwMZtc"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '035d2c26-bfe8-11e4-a8f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "035d2c26-bfe8-11e4-a8f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:13.787724"], ["updated_at", "2015-03-01 07:53:13.787724"], ["token", "uHR8rgKJTij1ylnm59EKtOT376daCOZWwSOc0f-Je3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:53:13 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:13.792894' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eY0t-jBiACADAptPtGfNj2S3mjfD_2KF1N4g8dwMZtc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:13.794340"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:13.800449"], ["id", "035f2c42-bfe8-11e4-993f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "035eced2-bfe8-11e4-8b6e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "035eced2-bfe8-11e4-8b6e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.813095"], ["updated_at", "2015-03-01 07:53:13.813095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '0363a808-bfe8-11e4-9d33-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "0363a808-bfe8-11e4-9d33-705681abff85"], ["created_at", "2015-03-01 07:53:13.816584"], ["updated_at", "2015-03-01 07:53:13.816584"], ["token", "Bks4bkL6PaB_Ghl424ywFO8WPAoCfao5TQjC9RitLBE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0363a808-bfe8-11e4-9d33-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '0363a808-bfe8-11e4-9d33-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0363a808-bfe8-11e4-9d33-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '0363a808-bfe8-11e4-9d33-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.858814"], ["updated_at", "2015-03-01 07:53:13.858814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '036ab166-bfe8-11e4-8053-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "036ab166-bfe8-11e4-8053-705681abff85"], ["created_at", "2015-03-01 07:53:13.863804"], ["updated_at", "2015-03-01 07:53:13.863804"], ["token", "rfl_ulgwfBmYvUqmWTi8EZMPdflrn5P9-bzDNUy4WX8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.913673"], ["updated_at", "2015-03-01 07:53:13.913673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.920293"], ["updated_at", "2015-03-01 07:53:13.920293"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.940068"], ["updated_at", "2015-03-01 07:53:13.940068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.950443"], ["updated_at", "2015-03-01 07:53:13.950443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0378c706-bfe8-11e4-9fec-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.958756"], ["updated_at", "2015-03-01 07:53:13.958756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$d6Nisfwcct25.ZdHEAkRv.UAe8GVevklN/X0yVvd/51JYumGLvR6O"], ["created_at", "2015-03-01 07:53:13.972169"], ["updated_at", "2015-03-01 07:53:13.972169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:13.974886"], ["user_id", "037c0736-bfe8-11e4-aabf-705681abff85"], ["created_at", "2015-03-01 07:53:13.976079"], ["updated_at", "2015-03-01 07:53:13.976079"], ["token", "5X6-KvwWLyR_GATV8OorQK2n60myD7ySVpPwBFC7sq8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.981181"], ["updated_at", "2015-03-01 07:53:13.981181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '037c0736-bfe8-11e4-aabf-705681abff85' AND "clubhouse_memberships"."organization_id" = '037d6220-bfe8-11e4-a37a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "037c0736-bfe8-11e4-aabf-705681abff85"], ["organization_id", "037d6220-bfe8-11e4-a37a-705681abff85"], ["created_at", "2015-03-01 07:53:13.987168"], ["updated_at", "2015-03-01 07:53:13.987168"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$T.KiBF81GQ2Iq0xErKwZ/umWNsf6muQLnWCCWkC6E0baJNcRK7FS."], ["created_at", "2015-03-01 07:53:13.994094"], ["updated_at", "2015-03-01 07:53:13.994094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:13.999735"], ["updated_at", "2015-03-01 07:53:13.999735"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '037f58be-bfe8-11e4-90e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '038040c6-bfe8-11e4-89bd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "037f58be-bfe8-11e4-90e2-705681abff85"], ["organization_id", "038040c6-bfe8-11e4-89bd-705681abff85"], ["created_at", "2015-03-01 07:53:14.006003"], ["updated_at", "2015-03-01 07:53:14.006003"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$xBMKRyIigjtElgxImfcu7OFVpl4zzb4VsDtyr/W/S.QqgTa1jlCTy"], ["created_at", "2015-03-01 07:53:14.026814"], ["updated_at", "2015-03-01 07:53:14.026814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.028633"], ["user_id", "03844644-bfe8-11e4-836f-705681abff85"], ["created_at", "2015-03-01 07:53:14.029670"], ["updated_at", "2015-03-01 07:53:14.029670"], ["token", "Rt6m4I7h45_525RqQbq8y1K0gd0_ZBhbGbIe9uGZJdc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.033125"], ["updated_at", "2015-03-01 07:53:14.033125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03844644-bfe8-11e4-836f-705681abff85' AND "clubhouse_memberships"."organization_id" = '03853914-bfe8-11e4-9b25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03844644-bfe8-11e4-836f-705681abff85"], ["organization_id", "03853914-bfe8-11e4-9b25-705681abff85"], ["created_at", "2015-03-01 07:53:14.037014"], ["updated_at", "2015-03-01 07:53:14.037014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$AmDzgEUeApX3g/ByEPnyaeCcmZHOxKaGzbEZTXj./p8XphHeq9BgS"], ["created_at", "2015-03-01 07:53:14.041836"], ["updated_at", "2015-03-01 07:53:14.041836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.045500"], ["updated_at", "2015-03-01 07:53:14.045500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '038693cc-bfe8-11e4-89fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '03872378-bfe8-11e4-b685-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "038693cc-bfe8-11e4-89fb-705681abff85"], ["organization_id", "03872378-bfe8-11e4-b685-705681abff85"], ["created_at", "2015-03-01 07:53:14.049254"], ["updated_at", "2015-03-01 07:53:14.049254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.055600' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Rt6m4I7h45_525RqQbq8y1K0gd0_ZBhbGbIe9uGZJdc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.057614"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.058850"], ["id", "0384bb92-bfe8-11e4-a754-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03844644-bfe8-11e4-836f-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "03844644-bfe8-11e4-836f-705681abff85"]] Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$DjChjpL5VHKcrdpqV2ykmeSaBt6OvaVpJP3GU3DjliglafPTpUu0S"], ["created_at", "2015-03-01 07:53:14.072961"], ["updated_at", "2015-03-01 07:53:14.072961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.074903"], ["user_id", "038b5416-bfe8-11e4-9eb6-705681abff85"], ["created_at", "2015-03-01 07:53:14.075995"], ["updated_at", "2015-03-01 07:53:14.075995"], ["token", "1kafW1bez2DBv-Zxjy4tL-dEkn-FbF8zLlP79YkFdtU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.079957"], ["updated_at", "2015-03-01 07:53:14.079957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '038b5416-bfe8-11e4-9eb6-705681abff85' AND "clubhouse_memberships"."organization_id" = '038c62e8-bfe8-11e4-9387-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "038b5416-bfe8-11e4-9eb6-705681abff85"], ["organization_id", "038c62e8-bfe8-11e4-9387-705681abff85"], ["created_at", "2015-03-01 07:53:14.084179"], ["updated_at", "2015-03-01 07:53:14.084179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$9gt20gkgfED/zSHJTeJGnO2lJSQD4ATqJw7j9suCrV.tR1f08j3sa"], ["created_at", "2015-03-01 07:53:14.098399"], ["updated_at", "2015-03-01 07:53:14.098399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.100525"], ["user_id", "038f39dc-bfe8-11e4-b6e5-705681abff85"], ["created_at", "2015-03-01 07:53:14.101600"], ["updated_at", "2015-03-01 07:53:14.101600"], ["token", "IUEKZB06zfE_Iu20Up6mSvAdqtpWlGkp1cYU29eFio8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.106973"], ["updated_at", "2015-03-01 07:53:14.106973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '038f39dc-bfe8-11e4-b6e5-705681abff85' AND "clubhouse_memberships"."organization_id" = '03907f54-bfe8-11e4-9e3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "038f39dc-bfe8-11e4-b6e5-705681abff85"], ["organization_id", "03907f54-bfe8-11e4-9e3a-705681abff85"], ["created_at", "2015-03-01 07:53:14.111639"], ["updated_at", "2015-03-01 07:53:14.111639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/03907f54-bfe8-11e4-9e3a-705681abff85" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"03907f54-bfe8-11e4-9e3a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.117974' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IUEKZB06zfE_Iu20Up6mSvAdqtpWlGkp1cYU29eFio8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.120112"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.121281"], ["id", "038fe256-bfe8-11e4-9238-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "038f39dc-bfe8-11e4-b6e5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "038f39dc-bfe8-11e4-b6e5-705681abff85"], ["id", "03907f54-bfe8-11e4-9e3a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '03907f54-bfe8-11e4-9e3a-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:53:14.130132"], ["id", "03907f54-bfe8-11e4-9e3a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$fFuQg3jsK9/6AEDdAMLIZ.Bur0DdcUVe2FpXToQ75PH1hXjg7104a"], ["created_at", "2015-03-01 07:53:14.140865"], ["updated_at", "2015-03-01 07:53:14.140865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.142608"], ["user_id", "0395ad30-bfe8-11e4-a672-705681abff85"], ["created_at", "2015-03-01 07:53:14.143433"], ["updated_at", "2015-03-01 07:53:14.143433"], ["token", "w3WftmMH0EDLAG7gRU_ablbQKIIUgeoHmbb0RshHbV8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.157349"], ["updated_at", "2015-03-01 07:53:14.157349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0395ad30-bfe8-11e4-a672-705681abff85' AND "clubhouse_memberships"."organization_id" = '03983a50-bfe8-11e4-8e5d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0395ad30-bfe8-11e4-a672-705681abff85"], ["organization_id", "03983a50-bfe8-11e4-8e5d-705681abff85"], ["created_at", "2015-03-01 07:53:14.161668"], ["updated_at", "2015-03-01 07:53:14.161668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/03983a50-bfe8-11e4-8e5d-705681abff85" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"03983a50-bfe8-11e4-8e5d-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.167549' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "w3WftmMH0EDLAG7gRU_ablbQKIIUgeoHmbb0RshHbV8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.169682"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.171561"], ["id", "039614be-bfe8-11e4-bf76-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0395ad30-bfe8-11e4-a672-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0395ad30-bfe8-11e4-a672-705681abff85"], ["id", "03983a50-bfe8-11e4-8e5d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '03983a50-bfe8-11e4-8e5d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$2biw7XMAV0lxVc.hJAO7vu1Psdq7gNIR0nK8muMAVZ0NMJEOwzA3i"], ["created_at", "2015-03-01 07:53:14.187556"], ["updated_at", "2015-03-01 07:53:14.187556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.190156"], ["user_id", "039cd4ca-bfe8-11e4-b81d-705681abff85"], ["created_at", "2015-03-01 07:53:14.191170"], ["updated_at", "2015-03-01 07:53:14.191170"], ["token", "2HCrClEqdXM8FULcyHdYROO7jm2uQA6DrN0l9XmjFzE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.195565"], ["updated_at", "2015-03-01 07:53:14.195565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '039cd4ca-bfe8-11e4-b81d-705681abff85' AND "clubhouse_memberships"."organization_id" = '039e273a-bfe8-11e4-8b70-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "039cd4ca-bfe8-11e4-b81d-705681abff85"], ["organization_id", "039e273a-bfe8-11e4-8b70-705681abff85"], ["created_at", "2015-03-01 07:53:14.200943"], ["updated_at", "2015-03-01 07:53:14.200943"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-12" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-12"} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-12"]] Completed 200 OK in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$5wKCaa3Mm2gVKDNBrBYxce7YGlVHl9RGokRsuJUeWWphfZzd8O2N2"], ["created_at", "2015-03-01 07:53:14.219406"], ["updated_at", "2015-03-01 07:53:14.219406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.221727"], ["user_id", "03a1b670-bfe8-11e4-9067-705681abff85"], ["created_at", "2015-03-01 07:53:14.222502"], ["updated_at", "2015-03-01 07:53:14.222502"], ["token", "ZyDYpYM0URrLHFHVrkCPR-7VDjLiZUxuz-c6nDe5lNo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.226438"], ["updated_at", "2015-03-01 07:53:14.226438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03a1b670-bfe8-11e4-9067-705681abff85' AND "clubhouse_memberships"."organization_id" = '03a2c07e-bfe8-11e4-9f8d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03a1b670-bfe8-11e4-9067-705681abff85"], ["organization_id", "03a2c07e-bfe8-11e4-9f8d-705681abff85"], ["created_at", "2015-03-01 07:53:14.229950"], ["updated_at", "2015-03-01 07:53:14.229950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available"} Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$Sy/CWNcbaL2VDJqZ5gYMseBbXe6y.RGC.05IFADBI5Uzi/KqL4Rd."], ["created_at", "2015-03-01 07:53:14.243400"], ["updated_at", "2015-03-01 07:53:14.243400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.245233"], ["user_id", "03a551a4-bfe8-11e4-b6cf-705681abff85"], ["created_at", "2015-03-01 07:53:14.246471"], ["updated_at", "2015-03-01 07:53:14.246471"], ["token", "vGYeft0xzBt21UO14kmYShHGjCYlvKS-Gp0OVNt9b54"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.251233"], ["updated_at", "2015-03-01 07:53:14.251233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03a551a4-bfe8-11e4-b6cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '03a68984-bfe8-11e4-833a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03a551a4-bfe8-11e4-b6cf-705681abff85"], ["organization_id", "03a68984-bfe8-11e4-833a-705681abff85"], ["created_at", "2015-03-01 07:53:14.256323"], ["updated_at", "2015-03-01 07:53:14.256323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$/xfWDj.LwVmd4SNNQ6QDJOpbdahcWacgysKJsIVmntYtgkQjNDiyC"], ["created_at", "2015-03-01 07:53:14.273957"], ["updated_at", "2015-03-01 07:53:14.273957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.277672"], ["user_id", "03aa328c-bfe8-11e4-95ca-705681abff85"], ["created_at", "2015-03-01 07:53:14.278589"], ["updated_at", "2015-03-01 07:53:14.278589"], ["token", "MlEXi_51sY5f1TB-A4PO0sK6r9Ee97QrCFWrSAbmXOA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.283724"], ["updated_at", "2015-03-01 07:53:14.283724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03aa328c-bfe8-11e4-95ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '03ab7eee-bfe8-11e4-80c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03aa328c-bfe8-11e4-95ca-705681abff85"], ["organization_id", "03ab7eee-bfe8-11e4-80c6-705681abff85"], ["created_at", "2015-03-01 07:53:14.288670"], ["updated_at", "2015-03-01 07:53:14.288670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-15" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-15", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.295623' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MlEXi_51sY5f1TB-A4PO0sK6r9Ee97QrCFWrSAbmXOA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.298121"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.299187"], ["id", "03aac0f8-bfe8-11e4-9b8d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03aa328c-bfe8-11e4-95ca-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03aa328c-bfe8-11e4-95ca-705681abff85"], ["name", "org-15"]] Completed 200 OK in 9ms (Views: 1.4ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$X9aRTxDrnvrLAwdbTrZ.ruOpW9DEXBfNvS/ER6h5a6zcOiVAFxoee"], ["created_at", "2015-03-01 07:53:14.312306"], ["updated_at", "2015-03-01 07:53:14.312306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.314450"], ["user_id", "03afdf20-bfe8-11e4-b579-705681abff85"], ["created_at", "2015-03-01 07:53:14.316371"], ["updated_at", "2015-03-01 07:53:14.316371"], ["token", "DSzB7aVw7NhLd8qALayMdkn_-TslvwQWcC_cNQHxFWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.320708"], ["updated_at", "2015-03-01 07:53:14.320708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03afdf20-bfe8-11e4-b579-705681abff85' AND "clubhouse_memberships"."organization_id" = '03b11a48-bfe8-11e4-89d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03afdf20-bfe8-11e4-b579-705681abff85"], ["organization_id", "03b11a48-bfe8-11e4-89d8-705681abff85"], ["created_at", "2015-03-01 07:53:14.324134"], ["updated_at", "2015-03-01 07:53:14.324134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$tXqI9MLi.3MKkLZk2Ewnce9z4Go5LEO8lkj1eMrJE96OOM89jYEFi"], ["created_at", "2015-03-01 07:53:14.337717"], ["updated_at", "2015-03-01 07:53:14.337717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.339570"], ["user_id", "03b3b94c-bfe8-11e4-9f51-705681abff85"], ["created_at", "2015-03-01 07:53:14.340357"], ["updated_at", "2015-03-01 07:53:14.340357"], ["token", "t9NlP5BL34sotdMCtS-bwKJUoOs-_RElkzZ_N97Fz6k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.344353"], ["updated_at", "2015-03-01 07:53:14.344353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03b3b94c-bfe8-11e4-9f51-705681abff85' AND "clubhouse_memberships"."organization_id" = '03b4b680-bfe8-11e4-8654-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03b3b94c-bfe8-11e4-9f51-705681abff85"], ["organization_id", "03b4b680-bfe8-11e4-8654-705681abff85"], ["created_at", "2015-03-01 07:53:14.347934"], ["updated_at", "2015-03-01 07:53:14.347934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-17" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-17", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.353433' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "t9NlP5BL34sotdMCtS-bwKJUoOs-_RElkzZ_N97Fz6k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.354987"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.356028"], ["id", "03b4292c-bfe8-11e4-b1fb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03b3b94c-bfe8-11e4-9f51-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03b3b94c-bfe8-11e4-9f51-705681abff85"], ["name", "org-17"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '03b4b680-bfe8-11e4-8654-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:53:14.361713"], ["id", "03b4b680-bfe8-11e4-8654-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$HZDzWpOzJUXhdyo7BMqKhea1CLXporG1POpBWIrJqTydMnF9pprUS"], ["created_at", "2015-03-01 07:53:14.369480"], ["updated_at", "2015-03-01 07:53:14.369480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.371202"], ["user_id", "03b88f1c-bfe8-11e4-bca3-705681abff85"], ["created_at", "2015-03-01 07:53:14.371986"], ["updated_at", "2015-03-01 07:53:14.371986"], ["token", "jXGsDLjRnqzge5D77jUrpkEBZWWyw-j6X9O_-xYpyjw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.375246"], ["updated_at", "2015-03-01 07:53:14.375246"]]  (16.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03b88f1c-bfe8-11e4-bca3-705681abff85' AND "clubhouse_memberships"."organization_id" = '03b96b08-bfe8-11e4-9eef-705681abff85') LIMIT 1 SQL (3.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03b88f1c-bfe8-11e4-bca3-705681abff85"], ["organization_id", "03b96b08-bfe8-11e4-9eef-705681abff85"], ["created_at", "2015-03-01 07:53:14.398317"], ["updated_at", "2015-03-01 07:53:14.398317"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-18" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-18", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.411329' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jXGsDLjRnqzge5D77jUrpkEBZWWyw-j6X9O_-xYpyjw"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.414364"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.416551"], ["id", "03b8f2f4-bfe8-11e4-8fb3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03b88f1c-bfe8-11e4-bca3-705681abff85"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03b88f1c-bfe8-11e4-bca3-705681abff85"], ["name", "org-18"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '03b96b08-bfe8-11e4-9eef-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$/pUrspZ0pE233el7EgovruWn/NGWIQ8Az4B7YHC1AF1ux4H5oD8Eq"], ["created_at", "2015-03-01 07:53:14.436697"], ["updated_at", "2015-03-01 07:53:14.436697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.438454"], ["user_id", "03c2d1c0-bfe8-11e4-8329-705681abff85"], ["created_at", "2015-03-01 07:53:14.439218"], ["updated_at", "2015-03-01 07:53:14.439218"], ["token", "1NSL-aYaf8Fsk9tjMqD0WuxFLiNxmLF0m26tqvhfxOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.443016"], ["updated_at", "2015-03-01 07:53:14.443016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03c2d1c0-bfe8-11e4-8329-705681abff85' AND "clubhouse_memberships"."organization_id" = '03c3c436-bfe8-11e4-86b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03c2d1c0-bfe8-11e4-8329-705681abff85"], ["organization_id", "03c3c436-bfe8-11e4-86b0-705681abff85"], ["created_at", "2015-03-01 07:53:14.446280"], ["updated_at", "2015-03-01 07:53:14.446280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$k4slPNVFpVQ1Is57TXA2/.jUEXMkXW6ojbr4oKmgEGsPXLM2pxVAy"], ["created_at", "2015-03-01 07:53:14.459329"], ["updated_at", "2015-03-01 07:53:14.459329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.461065"], ["user_id", "03c64422-bfe8-11e4-81b4-705681abff85"], ["created_at", "2015-03-01 07:53:14.462196"], ["updated_at", "2015-03-01 07:53:14.462196"], ["token", "0LIfSuka3bmfTGoKMqbHVKuoE4vStcFhjvsw8a26JnM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.465784"], ["updated_at", "2015-03-01 07:53:14.465784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03c64422-bfe8-11e4-81b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '03c75858-bfe8-11e4-850a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03c64422-bfe8-11e4-81b4-705681abff85"], ["organization_id", "03c75858-bfe8-11e4-850a-705681abff85"], ["created_at", "2015-03-01 07:53:14.470534"], ["updated_at", "2015-03-01 07:53:14.470534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/03c75858-bfe8-11e4-850a-705681abff85" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"03c75858-bfe8-11e4-850a-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.475438' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0LIfSuka3bmfTGoKMqbHVKuoE4vStcFhjvsw8a26JnM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.476995"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.478055"], ["id", "03c6bd1c-bfe8-11e4-986c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03c64422-bfe8-11e4-81b4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03c64422-bfe8-11e4-81b4-705681abff85"], ["id", "03c75858-bfe8-11e4-850a-705681abff85"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$0MPXoXcliz9jFB3Mp03M2em5n/y7ZCsJkN7WSehv/DBFj3c84WnJa"], ["created_at", "2015-03-01 07:53:14.490454"], ["updated_at", "2015-03-01 07:53:14.490454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.494233"], ["user_id", "03cb01c4-bfe8-11e4-9e31-705681abff85"], ["created_at", "2015-03-01 07:53:14.495010"], ["updated_at", "2015-03-01 07:53:14.495010"], ["token", "g0S2BL7LeyH3ygLeMH-fOhEBcIipLmJOxc9Y_ndvUVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.498673"], ["updated_at", "2015-03-01 07:53:14.498673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03cb01c4-bfe8-11e4-9e31-705681abff85' AND "clubhouse_memberships"."organization_id" = '03cc43ea-bfe8-11e4-bf53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03cb01c4-bfe8-11e4-9e31-705681abff85"], ["organization_id", "03cc43ea-bfe8-11e4-bf53-705681abff85"], ["created_at", "2015-03-01 07:53:14.502152"], ["updated_at", "2015-03-01 07:53:14.502152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$HUuHLV9wimUhRYhJBy/yn.dAjwqEI5bFlJwsCf5031CGYXJOWHCMe"], ["created_at", "2015-03-01 07:53:14.514705"], ["updated_at", "2015-03-01 07:53:14.514705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.516711"], ["user_id", "03ceb76a-bfe8-11e4-9a63-705681abff85"], ["created_at", "2015-03-01 07:53:14.517752"], ["updated_at", "2015-03-01 07:53:14.517752"], ["token", "-osWoibjOjUOG0yKQCO1aX8PY8FCnKTBijGxncSsEjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.522205"], ["updated_at", "2015-03-01 07:53:14.522205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03ceb76a-bfe8-11e4-9a63-705681abff85' AND "clubhouse_memberships"."organization_id" = '03cfe090-bfe8-11e4-b477-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03ceb76a-bfe8-11e4-9a63-705681abff85"], ["organization_id", "03cfe090-bfe8-11e4-b477-705681abff85"], ["created_at", "2015-03-01 07:53:14.525931"], ["updated_at", "2015-03-01 07:53:14.525931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.530737' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-osWoibjOjUOG0yKQCO1aX8PY8FCnKTBijGxncSsEjE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.532221"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.533338"], ["id", "03cf3712-bfe8-11e4-af03-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03ceb76a-bfe8-11e4-9a63-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.539293"], ["updated_at", "2015-03-01 07:53:14.539293"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "03d279d6-bfe8-11e4-9a72-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03ceb76a-bfe8-11e4-9a63-705681abff85' AND "clubhouse_memberships"."organization_id" = '03d279d6-bfe8-11e4-9a72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "03ceb76a-bfe8-11e4-9a63-705681abff85"], ["admin", "t"], ["organization_id", "03d279d6-bfe8-11e4-9a72-705681abff85"], ["created_at", "2015-03-01 07:53:14.543672"], ["updated_at", "2015-03-01 07:53:14.543672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$Pot89.jxkAVrnjyw0uno0OIOvI8Vyei97vgxHVwVNMRAtnIpYZeTK"], ["created_at", "2015-03-01 07:53:14.553087"], ["updated_at", "2015-03-01 07:53:14.553087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.555335"], ["user_id", "03d49a68-bfe8-11e4-aedb-705681abff85"], ["created_at", "2015-03-01 07:53:14.556151"], ["updated_at", "2015-03-01 07:53:14.556151"], ["token", "8ocldADtya6AlNiWqqgtA0aj6OYdNvoWTda0QdYzVNw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.559609"], ["updated_at", "2015-03-01 07:53:14.559609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03d49a68-bfe8-11e4-aedb-705681abff85' AND "clubhouse_memberships"."organization_id" = '03d58b44-bfe8-11e4-8d19-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03d49a68-bfe8-11e4-aedb-705681abff85"], ["organization_id", "03d58b44-bfe8-11e4-8d19-705681abff85"], ["created_at", "2015-03-01 07:53:14.562772"], ["updated_at", "2015-03-01 07:53:14.562772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.567928' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8ocldADtya6AlNiWqqgtA0aj6OYdNvoWTda0QdYzVNw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.569462"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.570481"], ["id", "03d51344-bfe8-11e4-9bac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03d49a68-bfe8-11e4-aedb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$8hp5Y05VsxAlzZVZq/Uj1uZN28uiVBYdBuL3utdHn5GugixVxCelu"], ["created_at", "2015-03-01 07:53:14.582104"], ["updated_at", "2015-03-01 07:53:14.582104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.584235"], ["user_id", "03d90922-bfe8-11e4-930a-705681abff85"], ["created_at", "2015-03-01 07:53:14.585120"], ["updated_at", "2015-03-01 07:53:14.585120"], ["token", "k_I8Ly-d_4A9sFqiPPjtVHfSZKk5Y16nUH4bt_v3Sfg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.588893"], ["updated_at", "2015-03-01 07:53:14.588893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03d90922-bfe8-11e4-930a-705681abff85' AND "clubhouse_memberships"."organization_id" = '03da0534-bfe8-11e4-be1f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03d90922-bfe8-11e4-930a-705681abff85"], ["organization_id", "03da0534-bfe8-11e4-be1f-705681abff85"], ["created_at", "2015-03-01 07:53:14.592003"], ["updated_at", "2015-03-01 07:53:14.592003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$vtNxcGY1YrLaY3QndRy99OzXf9kqTaXwYV8.k.I0d7D1tYlV5mvcq"], ["created_at", "2015-03-01 07:53:14.604713"], ["updated_at", "2015-03-01 07:53:14.604713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.606735"], ["user_id", "03dc7d64-bfe8-11e4-a33b-705681abff85"], ["created_at", "2015-03-01 07:53:14.607560"], ["updated_at", "2015-03-01 07:53:14.607560"], ["token", "TM3d0S2KripRkG0j3O4mVgI1tOgmibZ4ncPOFEc_O_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.611369"], ["updated_at", "2015-03-01 07:53:14.611369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03dc7d64-bfe8-11e4-a33b-705681abff85' AND "clubhouse_memberships"."organization_id" = '03dd750c-bfe8-11e4-9136-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03dc7d64-bfe8-11e4-a33b-705681abff85"], ["organization_id", "03dd750c-bfe8-11e4-9136-705681abff85"], ["created_at", "2015-03-01 07:53:14.614869"], ["updated_at", "2015-03-01 07:53:14.614869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-25" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-25", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.619355' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TM3d0S2KripRkG0j3O4mVgI1tOgmibZ4ncPOFEc_O_c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.621574"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.622627"], ["id", "03dce682-bfe8-11e4-bc29-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03dc7d64-bfe8-11e4-a33b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03dc7d64-bfe8-11e4-a33b-705681abff85"], ["name", "org-25"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "03dd750c-bfe8-11e4-9136-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$P/IAzgrzgFVc1IQPdakL0eqJ/870ljt3mpQ7MAyV8zssaMX4eEVIy"], ["created_at", "2015-03-01 07:53:14.634976"], ["updated_at", "2015-03-01 07:53:14.634976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.637209"], ["user_id", "03e11f54-bfe8-11e4-be98-705681abff85"], ["created_at", "2015-03-01 07:53:14.638354"], ["updated_at", "2015-03-01 07:53:14.638354"], ["token", "Agp7C5DiM7Q0xSIvMEaLzBMIHcnUqDH-eWn-bIlgGWc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.642290"], ["updated_at", "2015-03-01 07:53:14.642290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03e11f54-bfe8-11e4-be98-705681abff85' AND "clubhouse_memberships"."organization_id" = '03e22cf0-bfe8-11e4-9a2c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03e11f54-bfe8-11e4-be98-705681abff85"], ["organization_id", "03e22cf0-bfe8-11e4-9a2c-705681abff85"], ["created_at", "2015-03-01 07:53:14.645854"], ["updated_at", "2015-03-01 07:53:14.645854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$/QpfQuUpRAZtrH5tRBJoDO0lqzLff9u3dnl2VHwH2X4Va5fxZRyHq"], ["created_at", "2015-03-01 07:53:14.659526"], ["updated_at", "2015-03-01 07:53:14.659526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.661764"], ["user_id", "03e4e0a8-bfe8-11e4-b7e8-705681abff85"], ["created_at", "2015-03-01 07:53:14.662537"], ["updated_at", "2015-03-01 07:53:14.662537"], ["token", "dNkwfQ5O-6sX-yFN0e9SUqvzOIJDPRHtgsWCTasvXn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.666263"], ["updated_at", "2015-03-01 07:53:14.666263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03e4e0a8-bfe8-11e4-b7e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '03e5d60c-bfe8-11e4-86b2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03e4e0a8-bfe8-11e4-b7e8-705681abff85"], ["organization_id", "03e5d60c-bfe8-11e4-86b2-705681abff85"], ["created_at", "2015-03-01 07:53:14.669682"], ["updated_at", "2015-03-01 07:53:14.669682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/03e5d60c-bfe8-11e4-86b2-705681abff85" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"03e5d60c-bfe8-11e4-86b2-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.674965' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dNkwfQ5O-6sX-yFN0e9SUqvzOIJDPRHtgsWCTasvXn8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.676341"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.677293"], ["id", "03e54958-bfe8-11e4-99cf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03e4e0a8-bfe8-11e4-b7e8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03e4e0a8-bfe8-11e4-b7e8-705681abff85"], ["id", "03e5d60c-bfe8-11e4-86b2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "03e5d60c-bfe8-11e4-86b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$uPHzZ66uvh2ogWblDEhxN.mdAvXdZd3tDqxYuoyV.Cq26LPoRDTQO"], ["created_at", "2015-03-01 07:53:14.694267"], ["updated_at", "2015-03-01 07:53:14.694267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.697612"], ["updated_at", "2015-03-01 07:53:14.697612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03ea1b54-bfe8-11e4-8b0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '03ea9cdc-bfe8-11e4-bc38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03ea1b54-bfe8-11e4-8b0d-705681abff85"], ["organization_id", "03ea9cdc-bfe8-11e4-bc38-705681abff85"], ["created_at", "2015-03-01 07:53:14.700505"], ["updated_at", "2015-03-01 07:53:14.700505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03ea1b54-bfe8-11e4-8b0d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "03ea9cdc-bfe8-11e4-bc38-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03ea1b54-bfe8-11e4-8b0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '03ea9cdc-bfe8-11e4-bc38-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "03ea9cdc-bfe8-11e4-bc38-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03ea1b54-bfe8-11e4-8b0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '03ea9cdc-bfe8-11e4-bc38-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$P1cRxjB1kPGfWjg6R.IJp.b//3zKWPd3OOOftFX1Dlpvw5Ya.V2.q"], ["created_at", "2015-03-01 07:53:14.720527"], ["updated_at", "2015-03-01 07:53:14.720527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.722396"], ["user_id", "03ee241a-bfe8-11e4-a35e-705681abff85"], ["created_at", "2015-03-01 07:53:14.723186"], ["updated_at", "2015-03-01 07:53:14.723186"], ["token", "SmVnmb1dd13fnQUXHdz1SQi0pR2Hr_7YQw9UNJS9LsU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.727406"], ["updated_at", "2015-03-01 07:53:14.727406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03ee241a-bfe8-11e4-a35e-705681abff85' AND "clubhouse_memberships"."organization_id" = '03ef2ac2-bfe8-11e4-b1c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "03ee241a-bfe8-11e4-a35e-705681abff85"], ["organization_id", "03ef2ac2-bfe8-11e4-b1c1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:14.731118"], ["updated_at", "2015-03-01 07:53:14.731118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '03ef2ac2-bfe8-11e4-b1c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "03ef2ac2-bfe8-11e4-b1c1-705681abff85"], ["created_at", "2015-03-01 07:53:14.734595"], ["updated_at", "2015-03-01 07:53:14.734595"], ["token", "gslBHoSSu8w52NzlUxnP9ml1a9JYHRvEqGuWh-ZZfqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$Goh3JE4BghDmO1PcXAORiO/9GYFe4LErRWfR/jZhuSonIAMh27wFy"], ["created_at", "2015-03-01 07:53:14.752518"], ["updated_at", "2015-03-01 07:53:14.752518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.754140"], ["user_id", "03f2fed6-bfe8-11e4-9a10-705681abff85"], ["created_at", "2015-03-01 07:53:14.754934"], ["updated_at", "2015-03-01 07:53:14.754934"], ["token", "VbHTUHnQBn5ZQ3rNFbkl-nuv8mllL-SHIaLkKJouc6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.759482"], ["updated_at", "2015-03-01 07:53:14.759482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03f2fed6-bfe8-11e4-9a10-705681abff85' AND "clubhouse_memberships"."organization_id" = '03f4101e-bfe8-11e4-824d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "03f2fed6-bfe8-11e4-9a10-705681abff85"], ["organization_id", "03f4101e-bfe8-11e4-824d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:14.763175"], ["updated_at", "2015-03-01 07:53:14.763175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '03f4101e-bfe8-11e4-824d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "03f4101e-bfe8-11e4-824d-705681abff85"], ["created_at", "2015-03-01 07:53:14.767228"], ["updated_at", "2015-03-01 07:53:14.767228"], ["token", "Dr7uCqGXKNSnpR2T5nfrACZ4BBSYIr07xwN4IWhyrYU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/03f542cc-bfe8-11e4-b097-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"03f542cc-bfe8-11e4-b097-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.772126' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VbHTUHnQBn5ZQ3rNFbkl-nuv8mllL-SHIaLkKJouc6s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.773708"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.774765"], ["id", "03f364f2-bfe8-11e4-ab33-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03f2fed6-bfe8-11e4-9a10-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03f2fed6-bfe8-11e4-9a10-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '03f2fed6-bfe8-11e4-9a10-705681abff85' LIMIT 1 [["organization_id", "03f4101e-bfe8-11e4-824d-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "03f4101e-bfe8-11e4-824d-705681abff85"], ["id", "03f542cc-bfe8-11e4-b097-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "03f4101e-bfe8-11e4-824d-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."id" != '03f542cc-bfe8-11e4-b097-705681abff85' AND "clubhouse_invitations"."organization_id" = '03f4101e-bfe8-11e4-824d-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:53:14.785879"], ["id", "03f542cc-bfe8-11e4-b097-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.9ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$A3ihrLjxkQEMs6JlH3NmSeq6X/veEA4xilHE/MCfKSy7RyphFaoCq"], ["created_at", "2015-03-01 07:53:14.795600"], ["updated_at", "2015-03-01 07:53:14.795600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.797215"], ["user_id", "03f992b4-bfe8-11e4-9d6a-705681abff85"], ["created_at", "2015-03-01 07:53:14.797980"], ["updated_at", "2015-03-01 07:53:14.797980"], ["token", "Q0YHuNNPSUk0FG607zpbvJ-qQaEXs7xTeHyccy9Nud4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.801523"], ["updated_at", "2015-03-01 07:53:14.801523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03f992b4-bfe8-11e4-9d6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '03fa7666-bfe8-11e4-b7c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "03f992b4-bfe8-11e4-9d6a-705681abff85"], ["organization_id", "03fa7666-bfe8-11e4-b7c0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:14.804650"], ["updated_at", "2015-03-01 07:53:14.804650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '03fa7666-bfe8-11e4-b7c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "03fa7666-bfe8-11e4-b7c0-705681abff85"], ["created_at", "2015-03-01 07:53:14.807985"], ["updated_at", "2015-03-01 07:53:14.807985"], ["token", "ZgB0kQs03jSLBKEzDjuIZ9jWYlkKdOQsFiviHK_3tUQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$NEUt5iQQG/0HsDAc2DVVc.sPNyra.z8P1HsbMpXBm3v1uH8v60FG6"], ["created_at", "2015-03-01 07:53:14.819367"], ["updated_at", "2015-03-01 07:53:14.819367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.820966"], ["user_id", "03fd3108-bfe8-11e4-8596-705681abff85"], ["created_at", "2015-03-01 07:53:14.821941"], ["updated_at", "2015-03-01 07:53:14.821941"], ["token", "clAzrc23gQRhvhIhj5d5eZKf_XK-bdow_tCkyfZ43JQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.825363"], ["updated_at", "2015-03-01 07:53:14.825363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03fd3108-bfe8-11e4-8596-705681abff85' AND "clubhouse_memberships"."organization_id" = '03fe1834-bfe8-11e4-970c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "03fd3108-bfe8-11e4-8596-705681abff85"], ["organization_id", "03fe1834-bfe8-11e4-970c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:14.828894"], ["updated_at", "2015-03-01 07:53:14.828894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '03fe1834-bfe8-11e4-970c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "03fe1834-bfe8-11e4-970c-705681abff85"], ["created_at", "2015-03-01 07:53:14.832701"], ["updated_at", "2015-03-01 07:53:14.832701"], ["token", "7H5ggvO1D3JoRQS1CB5u6_uxmMWDEV1lEPw8DnQ9zg0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/03ff3d68-bfe8-11e4-ba6a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"03ff3d68-bfe8-11e4-ba6a-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.837700' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "clAzrc23gQRhvhIhj5d5eZKf_XK-bdow_tCkyfZ43JQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.839219"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.840252"], ["id", "03fd9e54-bfe8-11e4-8c03-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "03fd3108-bfe8-11e4-8596-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "03fd3108-bfe8-11e4-8596-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '03fd3108-bfe8-11e4-8596-705681abff85' LIMIT 1 [["organization_id", "03fe1834-bfe8-11e4-970c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "03fe1834-bfe8-11e4-970c-705681abff85"], ["id", "03ff3d68-bfe8-11e4-ba6a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "03fe1834-bfe8-11e4-970c-705681abff85"]] Completed 200 OK in 10ms (Views: 1.3ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$HEGgdl1lnivIlRmNaOf5bOtWhDkpdj1BpwuP5m8HharhYMh6kAKWi"], ["created_at", "2015-03-01 07:53:14.853451"], ["updated_at", "2015-03-01 07:53:14.853451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.855020"], ["user_id", "040264de-bfe8-11e4-93e5-705681abff85"], ["created_at", "2015-03-01 07:53:14.855838"], ["updated_at", "2015-03-01 07:53:14.855838"], ["token", "ZuyNttK3wbPqQNs7mL2E4lg3cLXpXmUIyHDAd38PDf8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.859449"], ["updated_at", "2015-03-01 07:53:14.859449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '040264de-bfe8-11e4-93e5-705681abff85' AND "clubhouse_memberships"."organization_id" = '04034d86-bfe8-11e4-accd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "040264de-bfe8-11e4-93e5-705681abff85"], ["organization_id", "04034d86-bfe8-11e4-accd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:14.862578"], ["updated_at", "2015-03-01 07:53:14.862578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '04034d86-bfe8-11e4-accd-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "04034d86-bfe8-11e4-accd-705681abff85"], ["created_at", "2015-03-01 07:53:14.865940"], ["updated_at", "2015-03-01 07:53:14.865940"], ["token", "izASxMkjSGa4BH6got3w6wCupveRlUR4i5egIGAivSs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$RSuS6FSEK0qu2XXswlF4UOLdj7MSHUttEZvp/Wd90nIuMZdNgbwh6"], ["created_at", "2015-03-01 07:53:14.872646"], ["updated_at", "2015-03-01 07:53:14.872646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.875905"], ["updated_at", "2015-03-01 07:53:14.875905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '040553ec-bfe8-11e4-9ae0-705681abff85' AND "clubhouse_memberships"."organization_id" = '0405d45c-bfe8-11e4-92e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "040553ec-bfe8-11e4-9ae0-705681abff85"], ["organization_id", "0405d45c-bfe8-11e4-92e9-705681abff85"], ["created_at", "2015-03-01 07:53:14.879082"], ["updated_at", "2015-03-01 07:53:14.879082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$1Xus0oNZXDZRCOd6PIU.JOzTi9RoJG6wyUh7kdHp66v.1CUi/jRXe"], ["created_at", "2015-03-01 07:53:14.891362"], ["updated_at", "2015-03-01 07:53:14.891362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.892871"], ["user_id", "04082d38-bfe8-11e4-896c-705681abff85"], ["created_at", "2015-03-01 07:53:14.893613"], ["updated_at", "2015-03-01 07:53:14.893613"], ["token", "bxpYzBRLHc-7UCJ498z8cjmiap1-zlJt_BxIqIT2WFU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.896725"], ["updated_at", "2015-03-01 07:53:14.896725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04082d38-bfe8-11e4-896c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0408fbe6-bfe8-11e4-b02f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "04082d38-bfe8-11e4-896c-705681abff85"], ["organization_id", "0408fbe6-bfe8-11e4-b02f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:14.900008"], ["updated_at", "2015-03-01 07:53:14.900008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '0408fbe6-bfe8-11e4-b02f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "0408fbe6-bfe8-11e4-b02f-705681abff85"], ["created_at", "2015-03-01 07:53:14.903343"], ["updated_at", "2015-03-01 07:53:14.903343"], ["token", "D8X_8EgaNAYqbe-uCLBfZNq7sSK_kiXbxsoNdCV2aao"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$jRakp/1S1qPeTGxYiJEHhuci3vKU570i0swkX4nWNqKVsdogWwK4W"], ["created_at", "2015-03-01 07:53:14.907742"], ["updated_at", "2015-03-01 07:53:14.907742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.910850"], ["updated_at", "2015-03-01 07:53:14.910850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '040aab6c-bfe8-11e4-8282-705681abff85' AND "clubhouse_memberships"."organization_id" = '040b2696-bfe8-11e4-930e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "040aab6c-bfe8-11e4-8282-705681abff85"], ["organization_id", "040b2696-bfe8-11e4-930e-705681abff85"], ["created_at", "2015-03-01 07:53:14.914004"], ["updated_at", "2015-03-01 07:53:14.914004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.918492' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bxpYzBRLHc-7UCJ498z8cjmiap1-zlJt_BxIqIT2WFU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.920069"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.921866"], ["id", "04088922-bfe8-11e4-9d39-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "04082d38-bfe8-11e4-896c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "04082d38-bfe8-11e4-896c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '04082d38-bfe8-11e4-896c-705681abff85' LIMIT 1 [["organization_id", "0408fbe6-bfe8-11e4-b02f-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "0408fbe6-bfe8-11e4-b02f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('0408fbe6-bfe8-11e4-b02f-705681abff85') Completed 200 OK in 12ms (Views: 2.3ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$7RuR/K8U3VhYEZwlyKBvwu3J.qu/NdcQqSO4UytA91Q.GadzkjWre"], ["created_at", "2015-03-01 07:53:14.936910"], ["updated_at", "2015-03-01 07:53:14.936910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.938594"], ["user_id", "040f202a-bfe8-11e4-92c7-705681abff85"], ["created_at", "2015-03-01 07:53:14.939423"], ["updated_at", "2015-03-01 07:53:14.939423"], ["token", "_g3p3mq7LyWv2gmlFJ95sW3hh-tEu9aMzej6M6eQD_M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.942745"], ["updated_at", "2015-03-01 07:53:14.942745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '040f202a-bfe8-11e4-92c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '041000c6-bfe8-11e4-a645-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "040f202a-bfe8-11e4-92c7-705681abff85"], ["organization_id", "041000c6-bfe8-11e4-a645-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:14.945795"], ["updated_at", "2015-03-01 07:53:14.945795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '041000c6-bfe8-11e4-a645-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "041000c6-bfe8-11e4-a645-705681abff85"], ["created_at", "2015-03-01 07:53:14.949347"], ["updated_at", "2015-03-01 07:53:14.949347"], ["token", "8jGILZtl_84EKGfIxl-LWfQoAHYNhAU-ZWPhgM7eEmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$UTUTPyFiAGBTLJZADeUaOurQ6.DCUMSvuK6WXcbE44Aep9/I2onLi"], ["created_at", "2015-03-01 07:53:14.962132"], ["updated_at", "2015-03-01 07:53:14.962132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:14.963711"], ["user_id", "0412fbaa-bfe8-11e4-a737-705681abff85"], ["created_at", "2015-03-01 07:53:14.964484"], ["updated_at", "2015-03-01 07:53:14.964484"], ["token", "A7GRUt4vlqb01ZXECpl7i0QmZ7_iNG-TmHc6uJFKWlY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:14.968127"], ["updated_at", "2015-03-01 07:53:14.968127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0412fbaa-bfe8-11e4-a737-705681abff85' AND "clubhouse_memberships"."organization_id" = '0413e52e-bfe8-11e4-a698-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0412fbaa-bfe8-11e4-a737-705681abff85"], ["organization_id", "0413e52e-bfe8-11e4-a698-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:14.971840"], ["updated_at", "2015-03-01 07:53:14.971840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '0413e52e-bfe8-11e4-a698-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "0413e52e-bfe8-11e4-a698-705681abff85"], ["created_at", "2015-03-01 07:53:14.975290"], ["updated_at", "2015-03-01 07:53:14.975290"], ["token", "mLW1ogxY8-bL87hNHgHnhT8aVw_z4Jz2Iumht_QXx_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:53:14 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:14.980494' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A7GRUt4vlqb01ZXECpl7i0QmZ7_iNG-TmHc6uJFKWlY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:14.982027"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:14.982974"], ["id", "04135ae6-bfe8-11e4-adeb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0412fbaa-bfe8-11e4-a737-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0412fbaa-bfe8-11e4-a737-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0412fbaa-bfe8-11e4-a737-705681abff85' LIMIT 1 [["organization_id", "0413e52e-bfe8-11e4-a698-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0413e52e-bfe8-11e4-a698-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0413e52e-bfe8-11e4-a698-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "0413e52e-bfe8-11e4-a698-705681abff85"], ["created_at", "2015-03-01 07:53:14.992304"], ["updated_at", "2015-03-01 07:53:14.992304"], ["token", "ZZ2GrSG1LYd_nxIuas3MJBu4NgIa40PvkZnTzMAXfJ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3cef4e8b-c086-4b08-8590-2f7032c30482) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0417a4f2-bfe8-11e4-8db5-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0417a4f2-bfe8-11e4-8db5-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3cef4e8b-c086-4b08-8590-2f7032c30482] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0417a4f2-bfe8-11e4-8db5-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [3cef4e8b-c086-4b08-8590-2f7032c30482] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0413e52e-bfe8-11e4-a698-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3cef4e8b-c086-4b08-8590-2f7032c30482] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [3cef4e8b-c086-4b08-8590-2f7032c30482] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [3cef4e8b-c086-4b08-8590-2f7032c30482] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [3cef4e8b-c086-4b08-8590-2f7032c30482] Date: Sat, 28 Feb 2015 23:53:15 -0800 From: from@example.com To: email@example.com Message-ID: <54f2c56b4308_136213fd8d9863bec26477@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/ZZ2GrSG1LYd_nxIuas3MJBu4NgIa40PvkZnTzMAXfJ8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [3cef4e8b-c086-4b08-8590-2f7032c30482] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.55ms Completed 201 Created in 39ms (Views: 0.9ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$YYvmVjLGhmxwSOENI.Mqh.V5UrgZMvD.G5ULDTjqXYkPQEj9Uw6SW"], ["created_at", "2015-03-01 07:53:15.025583"], ["updated_at", "2015-03-01 07:53:15.025583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:15.027335"], ["user_id", "041cab5a-bfe8-11e4-b056-705681abff85"], ["created_at", "2015-03-01 07:53:15.028127"], ["updated_at", "2015-03-01 07:53:15.028127"], ["token", "Oy57exCBAT1RigSlw-lEywuf9Jiqx6TK5m3VKN-IniA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:15.031521"], ["updated_at", "2015-03-01 07:53:15.031521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '041cab5a-bfe8-11e4-b056-705681abff85' AND "clubhouse_memberships"."organization_id" = '041d942a-bfe8-11e4-b1b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "041cab5a-bfe8-11e4-b056-705681abff85"], ["organization_id", "041d942a-bfe8-11e4-b1b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:15.035262"], ["updated_at", "2015-03-01 07:53:15.035262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '041d942a-bfe8-11e4-b1b9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "041d942a-bfe8-11e4-b1b9-705681abff85"], ["created_at", "2015-03-01 07:53:15.038512"], ["updated_at", "2015-03-01 07:53:15.038512"], ["token", "1JL2WWavoclvImq3hJ40YwG7wLF1SOb3ztTc_e46WOg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:53:15 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:15.044583' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Oy57exCBAT1RigSlw-lEywuf9Jiqx6TK5m3VKN-IniA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:15.046174"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:15.048026"], ["id", "041d12d4-bfe8-11e4-b0fd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "041cab5a-bfe8-11e4-b056-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "041cab5a-bfe8-11e4-b056-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '041cab5a-bfe8-11e4-b056-705681abff85' LIMIT 1 [["organization_id", "041d942a-bfe8-11e4-b1b9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "041d942a-bfe8-11e4-b1b9-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '041d942a-bfe8-11e4-b1b9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "041d942a-bfe8-11e4-b1b9-705681abff85"], ["created_at", "2015-03-01 07:53:15.057510"], ["updated_at", "2015-03-01 07:53:15.057510"], ["token", "KXWAa6nWmP86Mrf3p5iFVXm0vvFbCj8T8Wn-qF0K_I0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1795151d-4dc6-43d6-b5c4-12adf6fe0997) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/04219764-bfe8-11e4-9dac-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "04219764-bfe8-11e4-9dac-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1795151d-4dc6-43d6-b5c4-12adf6fe0997] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/04219764-bfe8-11e4-9dac-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [1795151d-4dc6-43d6-b5c4-12adf6fe0997] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "041d942a-bfe8-11e4-b1b9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1795151d-4dc6-43d6-b5c4-12adf6fe0997] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [1795151d-4dc6-43d6-b5c4-12adf6fe0997] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [1795151d-4dc6-43d6-b5c4-12adf6fe0997] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [1795151d-4dc6-43d6-b5c4-12adf6fe0997] Date: Sat, 28 Feb 2015 23:53:15 -0800 From: from@example.com To: email@example.com Message-ID: <54f2c56bfd78_136213fd8d9863bec265fa@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/KXWAa6nWmP86Mrf3p5iFVXm0vvFbCj8T8Wn-qF0K_I0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [1795151d-4dc6-43d6-b5c4-12adf6fe0997] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.06ms Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$d5.olgZaSg5qU9C/z2Z63uOJN8Ie8BjIiR2Z/OhWXrDMLMyqLMnXa"], ["created_at", "2015-03-01 07:53:15.072568"], ["updated_at", "2015-03-01 07:53:15.072568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:15.074334"], ["user_id", "0423d420-bfe8-11e4-bf3f-705681abff85"], ["created_at", "2015-03-01 07:53:15.075125"], ["updated_at", "2015-03-01 07:53:15.075125"], ["token", "0U8uB_0VM_KGQtqMcxq4ANbkYhV_pFyED0_53Wmn-Lc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:15.078537"], ["updated_at", "2015-03-01 07:53:15.078537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0423d420-bfe8-11e4-bf3f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0424bc0a-bfe8-11e4-8304-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0423d420-bfe8-11e4-bf3f-705681abff85"], ["organization_id", "0424bc0a-bfe8-11e4-8304-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:15.081677"], ["updated_at", "2015-03-01 07:53:15.081677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '0424bc0a-bfe8-11e4-8304-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "0424bc0a-bfe8-11e4-8304-705681abff85"], ["created_at", "2015-03-01 07:53:15.086021"], ["updated_at", "2015-03-01 07:53:15.086021"], ["token", "HztPtphDrcO9ERnZReRxOG_Qsy79-f0MTQ_dtKDwQLw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:53:15 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:15.091084' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0U8uB_0VM_KGQtqMcxq4ANbkYhV_pFyED0_53Wmn-Lc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:15.092578"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:15.093568"], ["id", "04243df2-bfe8-11e4-888c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0423d420-bfe8-11e4-bf3f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0423d420-bfe8-11e4-bf3f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0423d420-bfe8-11e4-bf3f-705681abff85' LIMIT 1 [["organization_id", "0424bc0a-bfe8-11e4-8304-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0424bc0a-bfe8-11e4-8304-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '0424bc0a-bfe8-11e4-8304-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$qsNpzgfbQR0HE3ew8nzaBeaAGrtMjMQ/dYcTG2GmBD6CRYfTJQRfO"], ["created_at", "2015-03-01 07:53:15.109160"], ["updated_at", "2015-03-01 07:53:15.109160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:15.110715"], ["user_id", "042969ee-bfe8-11e4-b16b-705681abff85"], ["created_at", "2015-03-01 07:53:15.111456"], ["updated_at", "2015-03-01 07:53:15.111456"], ["token", "AlvURQOuV1Yjo0SEYD4gfLvbd9l9-IndyxwUHL4qYY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:15.114829"], ["updated_at", "2015-03-01 07:53:15.114829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '042969ee-bfe8-11e4-b16b-705681abff85' AND "clubhouse_memberships"."organization_id" = '042a458a-bfe8-11e4-9086-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "042969ee-bfe8-11e4-b16b-705681abff85"], ["organization_id", "042a458a-bfe8-11e4-9086-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:15.118660"], ["updated_at", "2015-03-01 07:53:15.118660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '042a458a-bfe8-11e4-9086-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "042a458a-bfe8-11e4-9086-705681abff85"], ["created_at", "2015-03-01 07:53:15.122233"], ["updated_at", "2015-03-01 07:53:15.122233"], ["token", "J_yAus3oG-tx-oY_vq_sV8mrVgNIVt3Ev6Buv5_vTg4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:53:15 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$aV3KDWtYkTJ3vbwl0uTn.eH0yUiCInOih3zdFDXu..dmJlg7.75aW"], ["created_at", "2015-03-01 07:53:15.137214"], ["updated_at", "2015-03-01 07:53:15.137214"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:53:15.140102"], ["user_id", "042dc4b2-bfe8-11e4-9cda-705681abff85"], ["created_at", "2015-03-01 07:53:15.141506"], ["updated_at", "2015-03-01 07:53:15.141506"], ["token", "ftpB_k0FK0-t4IFBUTRNCmYgC7O2bk-IWOqhJ0lXTWY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:53:15.145545"], ["updated_at", "2015-03-01 07:53:15.145545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '042dc4b2-bfe8-11e4-9cda-705681abff85' AND "clubhouse_memberships"."organization_id" = '042ef77e-bfe8-11e4-9b85-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "042dc4b2-bfe8-11e4-9cda-705681abff85"], ["organization_id", "042ef77e-bfe8-11e4-9b85-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:53:15.149078"], ["updated_at", "2015-03-01 07:53:15.149078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '042ef77e-bfe8-11e4-9b85-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "042ef77e-bfe8-11e4-9b85-705681abff85"], ["created_at", "2015-03-01 07:53:15.152774"], ["updated_at", "2015-03-01 07:53:15.152774"], ["token", "5C8AtbWuxiJTQiK0-EFJ9u-aZXFmbJl1WdeL_fRDyrA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/043014f6-bfe8-11e4-b772-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:53:15 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"043014f6-bfe8-11e4-b772-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:53:15.157999' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ftpB_k0FK0-t4IFBUTRNCmYgC7O2bk-IWOqhJ0lXTWY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:53:15.159473"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:53:15.160406"], ["id", "042e6aac-bfe8-11e4-8c35-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "042dc4b2-bfe8-11e4-9cda-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "042dc4b2-bfe8-11e4-9cda-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '042dc4b2-bfe8-11e4-9cda-705681abff85' LIMIT 1 [["organization_id", "042ef77e-bfe8-11e4-9b85-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "042ef77e-bfe8-11e4-9b85-705681abff85"], ["id", "043014f6-bfe8-11e4-b772-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "043014f6-bfe8-11e4-b772-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (8.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.069120"], ["updated_at", "2015-03-01 07:56:47.069120"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '82803070-bfe8-11e4-bd38-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "82803070-bfe8-11e4-bd38-705681abff85"], ["created_at", "2015-03-01 07:56:47.100067"], ["updated_at", "2015-03-01 07:56:47.100067"], ["token", "89chWbRgGyi5KnxsZRKEEyTL51fXRVQm37nus1njumA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.7ms) Clubhouse::Mailer#invitation: processed outbound mail in 30.9ms Sent mail to john@example.com (9.8ms) Date: Sat, 28 Feb 2015 23:56:47 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c63f22896_1363d3fe54d457be018862@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/89chWbRgGyi5KnxsZRKEEyTL51fXRVQm37nus1njumA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.151027"], ["updated_at", "2015-03-01 07:56:47.151027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '828c7e2a-bfe8-11e4-82d7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "828c7e2a-bfe8-11e4-82d7-705681abff85"], ["created_at", "2015-03-01 07:56:47.155257"], ["updated_at", "2015-03-01 07:56:47.155257"], ["token", "Rr21sLzSmNP-QoEWXkguGeQbmUbbQ6JEoezqFbUTfnw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.7ms) Date: Sat, 28 Feb 2015 23:56:47 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c63f26e2e_1363d3fe54d457be018926@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Rr21sLzSmNP-QoEWXkguGeQbmUbbQ6JEoezqFbUTfnw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.166505"], ["updated_at", "2015-03-01 07:56:47.166505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '828ecdb0-bfe8-11e4-a73c-705681abff85') LIMIT 1 SQL (10.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "828ecdb0-bfe8-11e4-a73c-705681abff85"], ["created_at", "2015-03-01 07:56:47.170851"], ["updated_at", "2015-03-01 07:56:47.170851"], ["token", "KOudcHqk8Nrl1AZC5C6YLRd0XHtGBv4OEnCcxnO5g1k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (2.0ms) Date: Sat, 28 Feb 2015 23:56:47 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c63f2dc61_1363d3fe54d457be019064@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/KOudcHqk8Nrl1AZC5C6YLRd0XHtGBv4OEnCcxnO5g1k If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.193983"], ["updated_at", "2015-03-01 07:56:47.193983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '82930f88-bfe8-11e4-a713-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "82930f88-bfe8-11e4-a713-705681abff85"], ["created_at", "2015-03-01 07:56:47.199863"], ["updated_at", "2015-03-01 07:56:47.199863"], ["token", "gTGQgLGkN6jjh62bOKyP1NTSUGMZuMhI6mBUC79Wmaw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms Sent mail to john@example.com (2.3ms) Date: Sat, 28 Feb 2015 23:56:47 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c63f3234e_1363d3fe54d457be019171@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/gTGQgLGkN6jjh62bOKyP1NTSUGMZuMhI6mBUC79Wmaw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.216650"], ["updated_at", "2015-03-01 07:56:47.216650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.244769"], ["updated_at", "2015-03-01 07:56:47.244769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.259596"], ["updated_at", "2015-03-01 07:56:47.259596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.264406"], ["updated_at", "2015-03-01 07:56:47.264406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "829dba82-bfe8-11e4-a61d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.273882"], ["updated_at", "2015-03-01 07:56:47.273882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$dqt0iHNPHsA0O0GDQNzyF.Bgfl9/qAvwo6taC5Pu8Lj77ULWkm9TG"], ["created_at", "2015-03-01 07:56:47.289557"], ["updated_at", "2015-03-01 07:56:47.289557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.304132"], ["user_id", "82a19a6c-bfe8-11e4-a8ae-705681abff85"], ["created_at", "2015-03-01 07:56:47.305451"], ["updated_at", "2015-03-01 07:56:47.305451"], ["token", "yR1Cmuoo0UXrpHgu7pz2DNg-UTNgL7u5sAVdSOaTZ_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.309675"], ["updated_at", "2015-03-01 07:56:47.309675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82a19a6c-bfe8-11e4-a8ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '82a4a180-bfe8-11e4-a4e3-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82a19a6c-bfe8-11e4-a8ae-705681abff85"], ["organization_id", "82a4a180-bfe8-11e4-a4e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.319591"], ["updated_at", "2015-03-01 07:56:47.319591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '82a4a180-bfe8-11e4-a4e3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "82a4a180-bfe8-11e4-a4e3-705681abff85"], ["created_at", "2015-03-01 07:56:47.324410"], ["updated_at", "2015-03-01 07:56:47.324410"], ["token", "g2eTRlGUKdeZC0YGHz6YBj73Py2XSw6i-fzokgHnDCU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$j7cYMGHQMeDziBARXshDI.dOfxXEkXeHmoCiq0FwFTLKwWLw.VExy"], ["created_at", "2015-03-01 07:56:47.329309"], ["updated_at", "2015-03-01 07:56:47.329309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.332471"], ["updated_at", "2015-03-01 07:56:47.332471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82a7a4ac-bfe8-11e4-86d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '82a81b6c-bfe8-11e4-a5ea-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "82a7a4ac-bfe8-11e4-86d2-705681abff85"], ["organization_id", "82a81b6c-bfe8-11e4-a5ea-705681abff85"], ["created_at", "2015-03-01 07:56:47.335982"], ["updated_at", "2015-03-01 07:56:47.335982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$uPkGXikmgD12rop/SqrcTOu1MrCkiop3UXVb6JwVOxdn5XRFQPbmC"], ["created_at", "2015-03-01 07:56:47.368975"], ["updated_at", "2015-03-01 07:56:47.368975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (16.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.370674"], ["user_id", "82adb1f8-bfe8-11e4-82b8-705681abff85"], ["created_at", "2015-03-01 07:56:47.371410"], ["updated_at", "2015-03-01 07:56:47.371410"], ["token", "HeuUz84Jy7bi8C85I1FFJpwyIoMwRZksAOUWxmZSXm8"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.394103"], ["updated_at", "2015-03-01 07:56:47.394103"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82adb1f8-bfe8-11e4-82b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '82b19f8e-bfe8-11e4-9a5c-705681abff85') LIMIT 1 SQL (6.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82adb1f8-bfe8-11e4-82b8-705681abff85"], ["organization_id", "82b19f8e-bfe8-11e4-9a5c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.405443"], ["updated_at", "2015-03-01 07:56:47.405443"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '82b19f8e-bfe8-11e4-9a5c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "82b19f8e-bfe8-11e4-9a5c-705681abff85"], ["created_at", "2015-03-01 07:56:47.418863"], ["updated_at", "2015-03-01 07:56:47.418863"], ["token", "F7db4P9HVil2VA4WGXDTmTRktYmNUyzMdQx-dGvVSIc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$bgPOkBViy7Gpqn.FIVTK.O5mFKJkkSA9C03vIVjlsSpTVX09hlkda"], ["created_at", "2015-03-01 07:56:47.426794"], ["updated_at", "2015-03-01 07:56:47.426794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.430633"], ["updated_at", "2015-03-01 07:56:47.430633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82b686b6-bfe8-11e4-ab31-705681abff85' AND "clubhouse_memberships"."organization_id" = '82b71be4-bfe8-11e4-8ec1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "82b686b6-bfe8-11e4-ab31-705681abff85"], ["organization_id", "82b71be4-bfe8-11e4-8ec1-705681abff85"], ["created_at", "2015-03-01 07:56:47.434110"], ["updated_at", "2015-03-01 07:56:47.434110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:47.438974' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HeuUz84Jy7bi8C85I1FFJpwyIoMwRZksAOUWxmZSXm8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:47.440966"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:47.442065"], ["id", "82ae19e0-bfe8-11e4-a19a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "82adb1f8-bfe8-11e4-82b8-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "82adb1f8-bfe8-11e4-82b8-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '82adb1f8-bfe8-11e4-82b8-705681abff85' LIMIT 1 [["organization_id", "82b19f8e-bfe8-11e4-9a5c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "82b19f8e-bfe8-11e4-9a5c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('82b19f8e-bfe8-11e4-9a5c-705681abff85') Completed 200 OK in 38ms (Views: 10.1ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$uIlZTBST6oNmlpNzzSwEi.d0kXpUwpeyDu5sbnbjGKSet4.vgu14q"], ["created_at", "2015-03-01 07:56:47.485288"], ["updated_at", "2015-03-01 07:56:47.485288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.487192"], ["user_id", "82bf79f6-bfe8-11e4-9e5d-705681abff85"], ["created_at", "2015-03-01 07:56:47.487986"], ["updated_at", "2015-03-01 07:56:47.487986"], ["token", "HGi2ryPIZ0WLGDMypqK8Fe11vC3DwD161cMqArt5tXg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.492011"], ["updated_at", "2015-03-01 07:56:47.492011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82bf79f6-bfe8-11e4-9e5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '82c082ce-bfe8-11e4-8ddf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82bf79f6-bfe8-11e4-9e5d-705681abff85"], ["organization_id", "82c082ce-bfe8-11e4-8ddf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.495811"], ["updated_at", "2015-03-01 07:56:47.495811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '82c082ce-bfe8-11e4-8ddf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "82c082ce-bfe8-11e4-8ddf-705681abff85"], ["created_at", "2015-03-01 07:56:47.499937"], ["updated_at", "2015-03-01 07:56:47.499937"], ["token", "ZyShuXNOsQj8c-9ZRwlhbnMr6W5RH7AryZfPataWtOc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$g3tRZvVNWXWSCxW8/pEhF.xmu8uH5VRpK76BR3TmoCATYPE8kXQhi"], ["created_at", "2015-03-01 07:56:47.513171"], ["updated_at", "2015-03-01 07:56:47.513171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.514987"], ["user_id", "82c3b1ce-bfe8-11e4-a2c3-705681abff85"], ["created_at", "2015-03-01 07:56:47.515922"], ["updated_at", "2015-03-01 07:56:47.515922"], ["token", "EzUcy1cdfkyJ_LAK7eTv61Jzd5h3hzXRIkFvqospSJk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.519501"], ["updated_at", "2015-03-01 07:56:47.519501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82c3b1ce-bfe8-11e4-a2c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '82c4a606-bfe8-11e4-b2ce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82c3b1ce-bfe8-11e4-a2c3-705681abff85"], ["organization_id", "82c4a606-bfe8-11e4-b2ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.523311"], ["updated_at", "2015-03-01 07:56:47.523311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '82c4a606-bfe8-11e4-b2ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "82c4a606-bfe8-11e4-b2ce-705681abff85"], ["created_at", "2015-03-01 07:56:47.526738"], ["updated_at", "2015-03-01 07:56:47.526738"], ["token", "B07vYgC1qMj9-l4GFwKl32Xp2idolU2Fhk7VSzVMksc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/82c5c554-bfe8-11e4-af2d-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"82c5c554-bfe8-11e4-af2d-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:47.531344' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EzUcy1cdfkyJ_LAK7eTv61Jzd5h3hzXRIkFvqospSJk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:47.532889"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:47.533863"], ["id", "82c4282a-bfe8-11e4-b526-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "82c3b1ce-bfe8-11e4-a2c3-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "82c3b1ce-bfe8-11e4-a2c3-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '82c3b1ce-bfe8-11e4-a2c3-705681abff85' LIMIT 1 [["organization_id", "82c4a606-bfe8-11e4-b2ce-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "82c4a606-bfe8-11e4-b2ce-705681abff85"], ["id", "82c5c554-bfe8-11e4-af2d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82c4a606-bfe8-11e4-b2ce-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."id" != '82c5c554-bfe8-11e4-af2d-705681abff85' AND "clubhouse_invitations"."organization_id" = '82c4a606-bfe8-11e4-b2ce-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:56:47.545601"], ["id", "82c5c554-bfe8-11e4-af2d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$nwi8K39at.kYhqRbVtWtXeHfw4xDVg9fuLA6Zt2Ki85OkBgiYDpFO"], ["created_at", "2015-03-01 07:56:47.553875"], ["updated_at", "2015-03-01 07:56:47.553875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.555431"], ["user_id", "82c9e7a6-bfe8-11e4-8779-705681abff85"], ["created_at", "2015-03-01 07:56:47.556333"], ["updated_at", "2015-03-01 07:56:47.556333"], ["token", "dXQEcggIlHHNYwvcgRf56eQmkVoDJJv6FlKuhrUNFvs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.559937"], ["updated_at", "2015-03-01 07:56:47.559937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82c9e7a6-bfe8-11e4-8779-705681abff85' AND "clubhouse_memberships"."organization_id" = '82cad422-bfe8-11e4-9232-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82c9e7a6-bfe8-11e4-8779-705681abff85"], ["organization_id", "82cad422-bfe8-11e4-9232-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.563224"], ["updated_at", "2015-03-01 07:56:47.563224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '82cad422-bfe8-11e4-9232-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "82cad422-bfe8-11e4-9232-705681abff85"], ["created_at", "2015-03-01 07:56:47.566986"], ["updated_at", "2015-03-01 07:56:47.566986"], ["token", "EYpwPgb0Gcto1LeY-dlee1RvtWoGr3Zkw1pUuVFNx3I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$h5IWA8.kHDvtz/8tryvDm.56sYN3JUcx2P4nj8TdtFpix0zPx5dYm"], ["created_at", "2015-03-01 07:56:47.579058"], ["updated_at", "2015-03-01 07:56:47.579058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.580902"], ["user_id", "82cdc1f0-bfe8-11e4-a1ef-705681abff85"], ["created_at", "2015-03-01 07:56:47.581723"], ["updated_at", "2015-03-01 07:56:47.581723"], ["token", "3NRMwBFRjpjdqoqzxXvf2gmc0EbKjExP_1gejx-pZV0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.585626"], ["updated_at", "2015-03-01 07:56:47.585626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82cdc1f0-bfe8-11e4-a1ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '82cec028-bfe8-11e4-ab58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82cdc1f0-bfe8-11e4-a1ef-705681abff85"], ["organization_id", "82cec028-bfe8-11e4-ab58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.589188"], ["updated_at", "2015-03-01 07:56:47.589188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '82cec028-bfe8-11e4-ab58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "82cec028-bfe8-11e4-ab58-705681abff85"], ["created_at", "2015-03-01 07:56:47.593229"], ["updated_at", "2015-03-01 07:56:47.593229"], ["token", "zCKqkbd1Qg5uQwcPRRrDrNdW-mgumYnNPrApV1eYDCU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/82cff024-bfe8-11e4-9238-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"82cff024-bfe8-11e4-9238-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:47.598047' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3NRMwBFRjpjdqoqzxXvf2gmc0EbKjExP_1gejx-pZV0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:47.599501"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:47.600488"], ["id", "82ce2eec-bfe8-11e4-b0d3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "82cdc1f0-bfe8-11e4-a1ef-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "82cdc1f0-bfe8-11e4-a1ef-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '82cdc1f0-bfe8-11e4-a1ef-705681abff85' LIMIT 1 [["organization_id", "82cec028-bfe8-11e4-ab58-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "82cec028-bfe8-11e4-ab58-705681abff85"], ["id", "82cff024-bfe8-11e4-9238-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "82cff024-bfe8-11e4-9238-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$A8TtW6fZA2/cCjfEBPCPueReuH3cy483NjnQzaMKk9WS1qEKxL6um"], ["created_at", "2015-03-01 07:56:47.614630"], ["updated_at", "2015-03-01 07:56:47.614630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.616297"], ["user_id", "82d32c44-bfe8-11e4-b59b-705681abff85"], ["created_at", "2015-03-01 07:56:47.617084"], ["updated_at", "2015-03-01 07:56:47.617084"], ["token", "FUNHbRxr8y5apusS01BEjDDIizItZaILTbgB5Sv86fY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.620450"], ["updated_at", "2015-03-01 07:56:47.620450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82d32c44-bfe8-11e4-b59b-705681abff85' AND "clubhouse_memberships"."organization_id" = '82d40d30-bfe8-11e4-b464-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82d32c44-bfe8-11e4-b59b-705681abff85"], ["organization_id", "82d40d30-bfe8-11e4-b464-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.623951"], ["updated_at", "2015-03-01 07:56:47.623951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '82d40d30-bfe8-11e4-b464-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "82d40d30-bfe8-11e4-b464-705681abff85"], ["created_at", "2015-03-01 07:56:47.627589"], ["updated_at", "2015-03-01 07:56:47.627589"], ["token", "C3DkesjV5FGomhLjTEhKhEV4JnwO_QxaTe5z7XAQvjA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$LH2u6Pj5WBK.kNt.nCxQuO9FVADGTTtf073MQJ0BPFdM88g4CUhpm"], ["created_at", "2015-03-01 07:56:47.640640"], ["updated_at", "2015-03-01 07:56:47.640640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.642279"], ["user_id", "82d727c2-bfe8-11e4-bb7a-705681abff85"], ["created_at", "2015-03-01 07:56:47.643021"], ["updated_at", "2015-03-01 07:56:47.643021"], ["token", "USu-E-KiRNeInyIkmqmibJRo0adjVBhhN51vAgvB5pA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.646601"], ["updated_at", "2015-03-01 07:56:47.646601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82d727c2-bfe8-11e4-bb7a-705681abff85' AND "clubhouse_memberships"."organization_id" = '82d811f0-bfe8-11e4-bd94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82d727c2-bfe8-11e4-bb7a-705681abff85"], ["organization_id", "82d811f0-bfe8-11e4-bd94-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.650536"], ["updated_at", "2015-03-01 07:56:47.650536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '82d811f0-bfe8-11e4-bd94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "82d811f0-bfe8-11e4-bd94-705681abff85"], ["created_at", "2015-03-01 07:56:47.654043"], ["updated_at", "2015-03-01 07:56:47.654043"], ["token", "zMPLu6soEpV582A4tXUHuJZZhr60sWCGz0DNAL3emsQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:47.659315' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "USu-E-KiRNeInyIkmqmibJRo0adjVBhhN51vAgvB5pA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:47.660766"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:47.661718"], ["id", "82d785aa-bfe8-11e4-bce2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "82d727c2-bfe8-11e4-bb7a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "82d727c2-bfe8-11e4-bb7a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '82d727c2-bfe8-11e4-bb7a-705681abff85' LIMIT 1 [["organization_id", "82d811f0-bfe8-11e4-bd94-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82d811f0-bfe8-11e4-bd94-705681abff85"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '82d811f0-bfe8-11e4-bd94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "82d811f0-bfe8-11e4-bd94-705681abff85"], ["created_at", "2015-03-01 07:56:47.671130"], ["updated_at", "2015-03-01 07:56:47.671130"], ["token", "PPAvG8k7U-PgplNksyjXZMDuwmjeeRtZnPQYO38ddno"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 93cf3587-d818-4d31-8d5c-2699082a37bf) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/82dbd97a-bfe8-11e4-a3fe-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "82dbd97a-bfe8-11e4-a3fe-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [93cf3587-d818-4d31-8d5c-2699082a37bf] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/82dbd97a-bfe8-11e4-a3fe-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [93cf3587-d818-4d31-8d5c-2699082a37bf] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82d811f0-bfe8-11e4-bd94-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [93cf3587-d818-4d31-8d5c-2699082a37bf] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [93cf3587-d818-4d31-8d5c-2699082a37bf] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [93cf3587-d818-4d31-8d5c-2699082a37bf] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [93cf3587-d818-4d31-8d5c-2699082a37bf] Date: Sat, 28 Feb 2015 23:56:47 -0800 From: from@example.com To: email@example.com Message-ID: <54f2c63faa20b_1363d3fe54d457be019236@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/PPAvG8k7U-PgplNksyjXZMDuwmjeeRtZnPQYO38ddno If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [93cf3587-d818-4d31-8d5c-2699082a37bf] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.61ms Completed 201 Created in 40ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$v1Fi8gdVZEdUvfek1ltQx.mT7/jthWaJPd1XZyqPRd0shFGCN9URm"], ["created_at", "2015-03-01 07:56:47.705035"], ["updated_at", "2015-03-01 07:56:47.705035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.706800"], ["user_id", "82e0f806-bfe8-11e4-9984-705681abff85"], ["created_at", "2015-03-01 07:56:47.707966"], ["updated_at", "2015-03-01 07:56:47.707966"], ["token", "QiIP87g4YjtTQ5zvvIdLExTq2iDePjY4nlCt_K_ZWds"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.711378"], ["updated_at", "2015-03-01 07:56:47.711378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82e0f806-bfe8-11e4-9984-705681abff85' AND "clubhouse_memberships"."organization_id" = '82e1f24c-bfe8-11e4-89ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82e0f806-bfe8-11e4-9984-705681abff85"], ["organization_id", "82e1f24c-bfe8-11e4-89ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.714756"], ["updated_at", "2015-03-01 07:56:47.714756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '82e1f24c-bfe8-11e4-89ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "82e1f24c-bfe8-11e4-89ba-705681abff85"], ["created_at", "2015-03-01 07:56:47.718089"], ["updated_at", "2015-03-01 07:56:47.718089"], ["token", "Nx-PBkckIzpUF3Ydwv5zWeVO9rmeVvVtZ_1g1HF_2uw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:47.723536' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QiIP87g4YjtTQ5zvvIdLExTq2iDePjY4nlCt_K_ZWds"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:47.726220"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:47.727878"], ["id", "82e17236-bfe8-11e4-9255-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "82e0f806-bfe8-11e4-9984-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "82e0f806-bfe8-11e4-9984-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '82e0f806-bfe8-11e4-9984-705681abff85' LIMIT 1 [["organization_id", "82e1f24c-bfe8-11e4-89ba-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82e1f24c-bfe8-11e4-89ba-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '82e1f24c-bfe8-11e4-89ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "82e1f24c-bfe8-11e4-89ba-705681abff85"], ["created_at", "2015-03-01 07:56:47.739294"], ["updated_at", "2015-03-01 07:56:47.739294"], ["token", "5s9ABMJMsOZEA6VdSxY2ryUxVE-mGlC5q_09U8LGZCY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8d28a129-f365-4d96-b723-7f9b389fbf63) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/82e63906-bfe8-11e4-afbf-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "82e63906-bfe8-11e4-afbf-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8d28a129-f365-4d96-b723-7f9b389fbf63] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/82e63906-bfe8-11e4-afbf-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [8d28a129-f365-4d96-b723-7f9b389fbf63] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82e1f24c-bfe8-11e4-89ba-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8d28a129-f365-4d96-b723-7f9b389fbf63] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [8d28a129-f365-4d96-b723-7f9b389fbf63] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [8d28a129-f365-4d96-b723-7f9b389fbf63] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [8d28a129-f365-4d96-b723-7f9b389fbf63] Date: Sat, 28 Feb 2015 23:56:47 -0800 From: from@example.com To: email@example.com Message-ID: <54f2c63fb647b_1363d3fe54d457be019364@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/5s9ABMJMsOZEA6VdSxY2ryUxVE-mGlC5q_09U8LGZCY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [8d28a129-f365-4d96-b723-7f9b389fbf63] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.95ms Completed 201 Created in 25ms (Views: 0.7ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$8Ww3YE7HDqN/kyVwGW7D0O5v6mQ7S6ZPADTfPfs/wVS.TXlhywdua"], ["created_at", "2015-03-01 07:56:47.755448"], ["updated_at", "2015-03-01 07:56:47.755448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.757299"], ["user_id", "82e8ac7c-bfe8-11e4-80a7-705681abff85"], ["created_at", "2015-03-01 07:56:47.758088"], ["updated_at", "2015-03-01 07:56:47.758088"], ["token", "m7ElXGfSid_lWdUyYFlmmTewxThv39Wd6F5_G1axHiI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.762187"], ["updated_at", "2015-03-01 07:56:47.762187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82e8ac7c-bfe8-11e4-80a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '82e9bd2e-bfe8-11e4-9770-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82e8ac7c-bfe8-11e4-80a7-705681abff85"], ["organization_id", "82e9bd2e-bfe8-11e4-9770-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.766620"], ["updated_at", "2015-03-01 07:56:47.766620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '82e9bd2e-bfe8-11e4-9770-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "82e9bd2e-bfe8-11e4-9770-705681abff85"], ["created_at", "2015-03-01 07:56:47.770737"], ["updated_at", "2015-03-01 07:56:47.770737"], ["token", "4Ey35WyJWMs96UKQFvPfAvGbFbkPn_14D_CNsOszDMs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:47.775558' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "m7ElXGfSid_lWdUyYFlmmTewxThv39Wd6F5_G1axHiI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:47.777203"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:47.778181"], ["id", "82e919be-bfe8-11e4-9107-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "82e8ac7c-bfe8-11e4-80a7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "82e8ac7c-bfe8-11e4-80a7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '82e8ac7c-bfe8-11e4-80a7-705681abff85' LIMIT 1 [["organization_id", "82e9bd2e-bfe8-11e4-9770-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82e9bd2e-bfe8-11e4-9770-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '82e9bd2e-bfe8-11e4-9770-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$CoVunw3Rc5gIvwX8M.eiMe0CbWn/76Ts/FYUlfLkadl/fF9YETj8e"], ["created_at", "2015-03-01 07:56:47.795168"], ["updated_at", "2015-03-01 07:56:47.795168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.796717"], ["user_id", "82eeb7e8-bfe8-11e4-bf06-705681abff85"], ["created_at", "2015-03-01 07:56:47.797456"], ["updated_at", "2015-03-01 07:56:47.797456"], ["token", "UAKGnJ79AUSjikMwp1SRO0saYmOCmmUiKx2z7t4O9Rs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.801617"], ["updated_at", "2015-03-01 07:56:47.801617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82eeb7e8-bfe8-11e4-bf06-705681abff85' AND "clubhouse_memberships"."organization_id" = '82efba6c-bfe8-11e4-9a9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82eeb7e8-bfe8-11e4-bf06-705681abff85"], ["organization_id", "82efba6c-bfe8-11e4-9a9c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.805174"], ["updated_at", "2015-03-01 07:56:47.805174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '82efba6c-bfe8-11e4-9a9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "82efba6c-bfe8-11e4-9a9c-705681abff85"], ["created_at", "2015-03-01 07:56:47.808513"], ["updated_at", "2015-03-01 07:56:47.808513"], ["token", "AbYBO6WWCPDYs5i5WxiG-O3PHz5wkmlaG851Jx21q_E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$c5UVyF8.FM/tQF3ZBCoPm.EXDa2bSHpbjYhHZRVEobBa4ccCJuISG"], ["created_at", "2015-03-01 07:56:47.820635"], ["updated_at", "2015-03-01 07:56:47.820635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.822452"], ["user_id", "82f2a18c-bfe8-11e4-ae4e-705681abff85"], ["created_at", "2015-03-01 07:56:47.823359"], ["updated_at", "2015-03-01 07:56:47.823359"], ["token", "74p8NePVwZkWLoQ37RVNhoRHH9OhZP7nHxcUsRMus8w"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.827307"], ["updated_at", "2015-03-01 07:56:47.827307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82f2a18c-bfe8-11e4-ae4e-705681abff85' AND "clubhouse_memberships"."organization_id" = '82f3a154-bfe8-11e4-a431-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82f2a18c-bfe8-11e4-ae4e-705681abff85"], ["organization_id", "82f3a154-bfe8-11e4-a431-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:47.830734"], ["updated_at", "2015-03-01 07:56:47.830734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '82f3a154-bfe8-11e4-a431-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "82f3a154-bfe8-11e4-a431-705681abff85"], ["created_at", "2015-03-01 07:56:47.834096"], ["updated_at", "2015-03-01 07:56:47.834096"], ["token", "VU7kkRzTyVcN8Z0bnGIfceb5R5e3R4o3FDa0OMnod2Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/82f4b468-bfe8-11e4-a62e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"82f4b468-bfe8-11e4-a62e-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:47.841775' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "74p8NePVwZkWLoQ37RVNhoRHH9OhZP7nHxcUsRMus8w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:47.843573"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:47.844539"], ["id", "82f30c6c-bfe8-11e4-b5e4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "82f2a18c-bfe8-11e4-ae4e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "82f2a18c-bfe8-11e4-ae4e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '82f2a18c-bfe8-11e4-ae4e-705681abff85' LIMIT 1 [["organization_id", "82f3a154-bfe8-11e4-a431-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "82f3a154-bfe8-11e4-a431-705681abff85"], ["id", "82f4b468-bfe8-11e4-a62e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82f3a154-bfe8-11e4-a431-705681abff85"]] Completed 200 OK in 11ms (Views: 1.4ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$RNCf/9eVk7aG6doUrj8EI.b/zhRbCTmY5qgcCiBccZwO7/hSXOcH2"], ["created_at", "2015-03-01 07:56:47.867439"], ["updated_at", "2015-03-01 07:56:47.867439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.871231"], ["updated_at", "2015-03-01 07:56:47.871231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82f9bf76-bfe8-11e4-9f66-705681abff85' AND "clubhouse_memberships"."organization_id" = '82fa53c8-bfe8-11e4-a1dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "82f9bf76-bfe8-11e4-9f66-705681abff85"], ["organization_id", "82fa53c8-bfe8-11e4-a1dd-705681abff85"], ["created_at", "2015-03-01 07:56:47.874202"], ["updated_at", "2015-03-01 07:56:47.874202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "82f9bf76-bfe8-11e4-9f66-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82fa53c8-bfe8-11e4-a1dd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82f9bf76-bfe8-11e4-9f66-705681abff85' AND "clubhouse_memberships"."organization_id" = '82fa53c8-bfe8-11e4-a1dd-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82fa53c8-bfe8-11e4-a1dd-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82f9bf76-bfe8-11e4-9f66-705681abff85' AND "clubhouse_memberships"."organization_id" = '82fa53c8-bfe8-11e4-a1dd-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.898560"], ["updated_at", "2015-03-01 07:56:47.898560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '82fe8240-bfe8-11e4-b68e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "82fe8240-bfe8-11e4-b68e-705681abff85"], ["created_at", "2015-03-01 07:56:47.901641"], ["updated_at", "2015-03-01 07:56:47.901641"], ["token", "X4c6PFsBPY8cl0NmaBej2UoODGjyM8ZOQA8mk0eKuEA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82fe8240-bfe8-11e4-b68e-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '82fe8240-bfe8-11e4-b68e-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "82fe8240-bfe8-11e4-b68e-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '82fe8240-bfe8-11e4-b68e-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.915265"], ["updated_at", "2015-03-01 07:56:47.915265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '83011550-bfe8-11e4-910c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "83011550-bfe8-11e4-910c-705681abff85"], ["created_at", "2015-03-01 07:56:47.918505"], ["updated_at", "2015-03-01 07:56:47.918505"], ["token", "WpACaeVbsdHL-DxHBJmP4FlbgTbDAg62TduRBQCl1bk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$7.R4HfIf55YeOnJ5A86qV.WUmUo3QrcS1rtWYiD8LLPO0UrMoIgke"], ["created_at", "2015-03-01 07:56:47.933560"], ["updated_at", "2015-03-01 07:56:47.933560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.935300"], ["user_id", "8303d72c-bfe8-11e4-bc3c-705681abff85"], ["created_at", "2015-03-01 07:56:47.936079"], ["updated_at", "2015-03-01 07:56:47.936079"], ["token", "bAcIesBLOevyDDGgAMncu6H_F8DNO5JJi1WCc4HYleM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.939482"], ["updated_at", "2015-03-01 07:56:47.939482"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8303d72c-bfe8-11e4-bc3c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8304bd5e-bfe8-11e4-8b28-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8303d72c-bfe8-11e4-bc3c-705681abff85"], ["organization_id", "8304bd5e-bfe8-11e4-8b28-705681abff85"], ["created_at", "2015-03-01 07:56:47.943222"], ["updated_at", "2015-03-01 07:56:47.943222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$QEyFOwjrO1qLFb3VYisIFOaxCWzZHWzXTts1YwSf9l7TlMCD0FeSK"], ["created_at", "2015-03-01 07:56:47.964254"], ["updated_at", "2015-03-01 07:56:47.964254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.966167"], ["user_id", "83089046-bfe8-11e4-8b6c-705681abff85"], ["created_at", "2015-03-01 07:56:47.966912"], ["updated_at", "2015-03-01 07:56:47.966912"], ["token", "kdaqKvkmbxI1XykQzPYcymuf934s72e8-96LU0FLyNg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:47.970086"], ["updated_at", "2015-03-01 07:56:47.970086"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83089046-bfe8-11e4-8b6c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8309661a-bfe8-11e4-80b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83089046-bfe8-11e4-8b6c-705681abff85"], ["organization_id", "8309661a-bfe8-11e4-80b4-705681abff85"], ["created_at", "2015-03-01 07:56:47.973813"], ["updated_at", "2015-03-01 07:56:47.973813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-02-28 23:56:47 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:47.978541' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kdaqKvkmbxI1XykQzPYcymuf934s72e8-96LU0FLyNg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:47.979957"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:47.980851"], ["id", "8308f2e8-bfe8-11e4-ac5d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83089046-bfe8-11e4-8b6c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83089046-bfe8-11e4-8b6c-705681abff85"], ["name", "org-9"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8309661a-bfe8-11e4-80b4-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:56:47.988571"], ["id", "8309661a-bfe8-11e4-80b4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$aqv.TSrZd5.//MWcpyD.SeT9gwpaTvNDXn1t5Y6z5QzKMFj1qmYl2"], ["created_at", "2015-03-01 07:56:47.997030"], ["updated_at", "2015-03-01 07:56:47.997030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:47.998605"], ["user_id", "830d863c-bfe8-11e4-883b-705681abff85"], ["created_at", "2015-03-01 07:56:47.999601"], ["updated_at", "2015-03-01 07:56:47.999601"], ["token", "hN8LnbCbrn52CJpkG1He61uT1HlhxV8diyD_90mTY7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.003087"], ["updated_at", "2015-03-01 07:56:48.003087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '830d863c-bfe8-11e4-883b-705681abff85' AND "clubhouse_memberships"."organization_id" = '830e6f3e-bfe8-11e4-85cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "830d863c-bfe8-11e4-883b-705681abff85"], ["organization_id", "830e6f3e-bfe8-11e4-85cb-705681abff85"], ["created_at", "2015-03-01 07:56:48.006146"], ["updated_at", "2015-03-01 07:56:48.006146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.010841' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hN8LnbCbrn52CJpkG1He61uT1HlhxV8diyD_90mTY7c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.012221"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.013116"], ["id", "830df522-bfe8-11e4-a75b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "830d863c-bfe8-11e4-883b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "830d863c-bfe8-11e4-883b-705681abff85"], ["name", "org-10"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '830e6f3e-bfe8-11e4-85cb-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$oRLZoNfModqbqzBlLpzli.k2EZoo8rYQVcd3XeufEzhtWtjskSAnC"], ["created_at", "2015-03-01 07:56:48.025970"], ["updated_at", "2015-03-01 07:56:48.025970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.028505"], ["user_id", "83120176-bfe8-11e4-847b-705681abff85"], ["created_at", "2015-03-01 07:56:48.029396"], ["updated_at", "2015-03-01 07:56:48.029396"], ["token", "hJNw4_uGgbR9gKn7tMVBTUnUMijMXGWwlDrzb5yINAc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.033196"], ["updated_at", "2015-03-01 07:56:48.033196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83120176-bfe8-11e4-847b-705681abff85' AND "clubhouse_memberships"."organization_id" = '83130c6a-bfe8-11e4-bc48-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83120176-bfe8-11e4-847b-705681abff85"], ["organization_id", "83130c6a-bfe8-11e4-bc48-705681abff85"], ["created_at", "2015-03-01 07:56:48.036459"], ["updated_at", "2015-03-01 07:56:48.036459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$OqXhLWF9h4h3XoZlSO4jsORgEcdIls/9qm2j789.d9u38.k64t5em"], ["created_at", "2015-03-01 07:56:48.048961"], ["updated_at", "2015-03-01 07:56:48.048961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.050711"], ["user_id", "83157482-bfe8-11e4-a0ec-705681abff85"], ["created_at", "2015-03-01 07:56:48.051466"], ["updated_at", "2015-03-01 07:56:48.051466"], ["token", "tOe_IXTf5KouPLxeuiiP2T8nFij4fiV8Sl4UNK4gxY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.054608"], ["updated_at", "2015-03-01 07:56:48.054608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83157482-bfe8-11e4-a0ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '83165348-bfe8-11e4-992c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83157482-bfe8-11e4-a0ec-705681abff85"], ["organization_id", "83165348-bfe8-11e4-992c-705681abff85"], ["created_at", "2015-03-01 07:56:48.058083"], ["updated_at", "2015-03-01 07:56:48.058083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/83165348-bfe8-11e4-992c-705681abff85" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"83165348-bfe8-11e4-992c-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.064113' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tOe_IXTf5KouPLxeuiiP2T8nFij4fiV8Sl4UNK4gxY0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.066059"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.067313"], ["id", "8315d8c8-bfe8-11e4-86ff-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83157482-bfe8-11e4-a0ec-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83157482-bfe8-11e4-a0ec-705681abff85"], ["id", "83165348-bfe8-11e4-992c-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (2.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$DFobehb/p88XWvDvcwiz2OFYbaKpHCA8GS3iDIKFULuw2O5/3aoFu"], ["created_at", "2015-03-01 07:56:48.078443"], ["updated_at", "2015-03-01 07:56:48.078443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.083518"], ["user_id", "831a1398-bfe8-11e4-8381-705681abff85"], ["created_at", "2015-03-01 07:56:48.084514"], ["updated_at", "2015-03-01 07:56:48.084514"], ["token", "XFUllCSXloFEX3NJ_d9K5qaocKVm2G9XPLthzu1F4RU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.088141"], ["updated_at", "2015-03-01 07:56:48.088141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '831a1398-bfe8-11e4-8381-705681abff85' AND "clubhouse_memberships"."organization_id" = '831b6ae0-bfe8-11e4-822e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "831a1398-bfe8-11e4-8381-705681abff85"], ["organization_id", "831b6ae0-bfe8-11e4-822e-705681abff85"], ["created_at", "2015-03-01 07:56:48.092470"], ["updated_at", "2015-03-01 07:56:48.092470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$d22U0pSypwFZ5DoPoyIibeSpoUEd9DQbmssrGlfvoi3kP43w6QBwe"], ["created_at", "2015-03-01 07:56:48.105697"], ["updated_at", "2015-03-01 07:56:48.105697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.107246"], ["user_id", "831e1a7e-bfe8-11e4-a4be-705681abff85"], ["created_at", "2015-03-01 07:56:48.107987"], ["updated_at", "2015-03-01 07:56:48.107987"], ["token", "I9229J44PpAqLiy0a5uSgvQL_tOXCs3GFhX8eLd04bs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.111764"], ["updated_at", "2015-03-01 07:56:48.111764"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '831e1a7e-bfe8-11e4-a4be-705681abff85' AND "clubhouse_memberships"."organization_id" = '831f04fc-bfe8-11e4-84f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "831e1a7e-bfe8-11e4-a4be-705681abff85"], ["organization_id", "831f04fc-bfe8-11e4-84f1-705681abff85"], ["created_at", "2015-03-01 07:56:48.115035"], ["updated_at", "2015-03-01 07:56:48.115035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/831f04fc-bfe8-11e4-84f1-705681abff85" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"831f04fc-bfe8-11e4-84f1-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.119788' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "I9229J44PpAqLiy0a5uSgvQL_tOXCs3GFhX8eLd04bs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.121609"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.123423"], ["id", "831e8a04-bfe8-11e4-a9a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "831e1a7e-bfe8-11e4-a4be-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "831e1a7e-bfe8-11e4-a4be-705681abff85"], ["id", "831f04fc-bfe8-11e4-84f1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "831f04fc-bfe8-11e4-84f1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$A.qC8Aq.mQa9q25joXByVexVrRt2aLtp6B7Bgd5xmC4QPdMko6wI6"], ["created_at", "2015-03-01 07:56:48.136162"], ["updated_at", "2015-03-01 07:56:48.136162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.138169"], ["user_id", "8322c9ac-bfe8-11e4-b5fc-705681abff85"], ["created_at", "2015-03-01 07:56:48.138973"], ["updated_at", "2015-03-01 07:56:48.138973"], ["token", "qRjJeH9vZ3xfu5JDR4sf3VDnxe7U-7DiuZH21tEkdgE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.142752"], ["updated_at", "2015-03-01 07:56:48.142752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8322c9ac-bfe8-11e4-b5fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '8323c30c-bfe8-11e4-acf9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8322c9ac-bfe8-11e4-b5fc-705681abff85"], ["organization_id", "8323c30c-bfe8-11e4-acf9-705681abff85"], ["created_at", "2015-03-01 07:56:48.146244"], ["updated_at", "2015-03-01 07:56:48.146244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$nfAj.d3fgyLujsMd4E6xx.s91ZFcnWVKqpBTVEdGOYmQMalmIbgn."], ["created_at", "2015-03-01 07:56:48.158011"], ["updated_at", "2015-03-01 07:56:48.158011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.159732"], ["user_id", "83261602-bfe8-11e4-ac78-705681abff85"], ["created_at", "2015-03-01 07:56:48.160550"], ["updated_at", "2015-03-01 07:56:48.160550"], ["token", "dlfZRo0frSGSDcE2oIAZei2myx54fXNp16uImTJHEBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.163879"], ["updated_at", "2015-03-01 07:56:48.163879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83261602-bfe8-11e4-ac78-705681abff85' AND "clubhouse_memberships"."organization_id" = '83285750-bfe8-11e4-b916-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83261602-bfe8-11e4-ac78-705681abff85"], ["organization_id", "83285750-bfe8-11e4-b916-705681abff85"], ["created_at", "2015-03-01 07:56:48.176670"], ["updated_at", "2015-03-01 07:56:48.176670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/83285750-bfe8-11e4-b916-705681abff85" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"83285750-bfe8-11e4-b916-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.183440' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dlfZRo0frSGSDcE2oIAZei2myx54fXNp16uImTJHEBk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.184892"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.185965"], ["id", "832680c4-bfe8-11e4-abba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83261602-bfe8-11e4-ac78-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83261602-bfe8-11e4-ac78-705681abff85"], ["id", "83285750-bfe8-11e4-b916-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '83285750-bfe8-11e4-b916-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:56:48.192815"], ["id", "83285750-bfe8-11e4-b916-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$jHgmu/EpOl1S7PRkF8.peuESovKGoZTB6.EWGfEsyuExDrT.B1N2i"], ["created_at", "2015-03-01 07:56:48.202393"], ["updated_at", "2015-03-01 07:56:48.202393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.204101"], ["user_id", "832cdc94-bfe8-11e4-9cfc-705681abff85"], ["created_at", "2015-03-01 07:56:48.205080"], ["updated_at", "2015-03-01 07:56:48.205080"], ["token", "B6szEtMAwHJ5_AT3PQRlE-X1CxCTD712OsqK6iNCIeI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.210381"], ["updated_at", "2015-03-01 07:56:48.210381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '832cdc94-bfe8-11e4-9cfc-705681abff85' AND "clubhouse_memberships"."organization_id" = '832e185c-bfe8-11e4-8357-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "832cdc94-bfe8-11e4-9cfc-705681abff85"], ["organization_id", "832e185c-bfe8-11e4-8357-705681abff85"], ["created_at", "2015-03-01 07:56:48.215222"], ["updated_at", "2015-03-01 07:56:48.215222"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/832e185c-bfe8-11e4-8357-705681abff85" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"832e185c-bfe8-11e4-8357-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.221856' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B6szEtMAwHJ5_AT3PQRlE-X1CxCTD712OsqK6iNCIeI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.223291"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.224234"], ["id", "832d51e2-bfe8-11e4-aef5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "832cdc94-bfe8-11e4-9cfc-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "832cdc94-bfe8-11e4-9cfc-705681abff85"], ["id", "832e185c-bfe8-11e4-8357-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '832e185c-bfe8-11e4-8357-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$IjLISNq22ho95Sva1BFEmes8sOWZtR3foghxrddJbA8LE6fgd1b7."], ["created_at", "2015-03-01 07:56:48.238626"], ["updated_at", "2015-03-01 07:56:48.238626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.240387"], ["user_id", "8332688a-bfe8-11e4-8812-705681abff85"], ["created_at", "2015-03-01 07:56:48.241222"], ["updated_at", "2015-03-01 07:56:48.241222"], ["token", "6AC1qyMoB1ee70a1mThXEbKa20RtkL2kML2t4EoIwP0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.244840"], ["updated_at", "2015-03-01 07:56:48.244840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8332688a-bfe8-11e4-8812-705681abff85' AND "clubhouse_memberships"."organization_id" = '833352ea-bfe8-11e4-ab90-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8332688a-bfe8-11e4-8812-705681abff85"], ["organization_id", "833352ea-bfe8-11e4-ab90-705681abff85"], ["created_at", "2015-03-01 07:56:48.248138"], ["updated_at", "2015-03-01 07:56:48.248138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$HqUMo5PFaKobO1UEdv8uw.bJrxI7K7FCS3AMQHD33XOUMdAIS4DVW"], ["created_at", "2015-03-01 07:56:48.253032"], ["updated_at", "2015-03-01 07:56:48.253032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.256333"], ["updated_at", "2015-03-01 07:56:48.256333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83349b32-bfe8-11e4-a1d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '83351bb6-bfe8-11e4-8e50-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83349b32-bfe8-11e4-a1d8-705681abff85"], ["organization_id", "83351bb6-bfe8-11e4-8e50-705681abff85"], ["created_at", "2015-03-01 07:56:48.261211"], ["updated_at", "2015-03-01 07:56:48.261211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$KIXZcluSqM.bn9YK7d2TouTrBWwlBmM3gpgzRiQiE.HThz9RHbbQW"], ["created_at", "2015-03-01 07:56:48.275330"], ["updated_at", "2015-03-01 07:56:48.275330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.277195"], ["user_id", "833803da-bfe8-11e4-bfeb-705681abff85"], ["created_at", "2015-03-01 07:56:48.278189"], ["updated_at", "2015-03-01 07:56:48.278189"], ["token", "gi944vyrEUzbWCp2VFdx5FlZRNyqkQFVUy6zYw8NwgA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.281778"], ["updated_at", "2015-03-01 07:56:48.281778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '833803da-bfe8-11e4-bfeb-705681abff85' AND "clubhouse_memberships"."organization_id" = '8338fd9e-bfe8-11e4-8b30-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "833803da-bfe8-11e4-bfeb-705681abff85"], ["organization_id", "8338fd9e-bfe8-11e4-8b30-705681abff85"], ["created_at", "2015-03-01 07:56:48.288291"], ["updated_at", "2015-03-01 07:56:48.288291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$MGvFCJ6WmE4/07ruvmV/d.YbcV2lFXpcwp1eLCAX26LMd40.u3MQy"], ["created_at", "2015-03-01 07:56:48.292893"], ["updated_at", "2015-03-01 07:56:48.292893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.296308"], ["updated_at", "2015-03-01 07:56:48.296308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '833ab166-bfe8-11e4-9626-705681abff85' AND "clubhouse_memberships"."organization_id" = '833b2ee8-bfe8-11e4-a1b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "833ab166-bfe8-11e4-9626-705681abff85"], ["organization_id", "833b2ee8-bfe8-11e4-a1b8-705681abff85"], ["created_at", "2015-03-01 07:56:48.299559"], ["updated_at", "2015-03-01 07:56:48.299559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.304056' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gi944vyrEUzbWCp2VFdx5FlZRNyqkQFVUy6zYw8NwgA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.306123"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.307302"], ["id", "8338750e-bfe8-11e4-b832-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "833803da-bfe8-11e4-bfeb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "833803da-bfe8-11e4-bfeb-705681abff85"]] Completed 200 OK in 9ms (Views: 2.2ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$lRqHGqixF1PukVgPu4nCd.c68d5wEVaI0bx7u9cmYwpWCOgKZLFTC"], ["created_at", "2015-03-01 07:56:48.319647"], ["updated_at", "2015-03-01 07:56:48.319647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.321986"], ["user_id", "833ec166-bfe8-11e4-9c16-705681abff85"], ["created_at", "2015-03-01 07:56:48.322948"], ["updated_at", "2015-03-01 07:56:48.322948"], ["token", "ESRuZVMTu7_AvqmnmxjUUd8dU6p34Way3JdXe_OSkQ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.326933"], ["updated_at", "2015-03-01 07:56:48.326933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '833ec166-bfe8-11e4-9c16-705681abff85' AND "clubhouse_memberships"."organization_id" = '833fdfec-bfe8-11e4-a897-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "833ec166-bfe8-11e4-9c16-705681abff85"], ["organization_id", "833fdfec-bfe8-11e4-a897-705681abff85"], ["created_at", "2015-03-01 07:56:48.330512"], ["updated_at", "2015-03-01 07:56:48.330512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$9ougSoPdGsWe3NRH7U7Qju85l9R6FDiUnJvc8GHNOALwr4EkguLUe"], ["created_at", "2015-03-01 07:56:48.344285"], ["updated_at", "2015-03-01 07:56:48.344285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.346104"], ["user_id", "83428512-bfe8-11e4-9ed2-705681abff85"], ["created_at", "2015-03-01 07:56:48.346904"], ["updated_at", "2015-03-01 07:56:48.346904"], ["token", "ZfpeDYHbLi-SUdz61iVd3Gt7xxG_ZpD7-CTmOnyomBs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.351726"], ["updated_at", "2015-03-01 07:56:48.351726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83428512-bfe8-11e4-9ed2-705681abff85' AND "clubhouse_memberships"."organization_id" = '8343a802-bfe8-11e4-a57c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83428512-bfe8-11e4-9ed2-705681abff85"], ["organization_id", "8343a802-bfe8-11e4-a57c-705681abff85"], ["created_at", "2015-03-01 07:56:48.355045"], ["updated_at", "2015-03-01 07:56:48.355045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.359769' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZfpeDYHbLi-SUdz61iVd3Gt7xxG_ZpD7-CTmOnyomBs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.361320"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.362682"], ["id", "8342f178-bfe8-11e4-ad2d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83428512-bfe8-11e4-9ed2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.368624"], ["updated_at", "2015-03-01 07:56:48.368624"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83463c3e-bfe8-11e4-b966-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83428512-bfe8-11e4-9ed2-705681abff85' AND "clubhouse_memberships"."organization_id" = '83463c3e-bfe8-11e4-b966-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83428512-bfe8-11e4-9ed2-705681abff85"], ["admin", "t"], ["organization_id", "83463c3e-bfe8-11e4-b966-705681abff85"], ["created_at", "2015-03-01 07:56:48.389478"], ["updated_at", "2015-03-01 07:56:48.389478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 40ms (Views: 1.8ms | ActiveRecord: 2.8ms)  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$T/4U.vp5Bsd8LsMjrq6r2OzckJyHJySdWVVoXttKUqAPJ4gvV6E0e"], ["created_at", "2015-03-01 07:56:48.414432"], ["updated_at", "2015-03-01 07:56:48.414432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.417166"], ["user_id", "834d5050-bfe8-11e4-8585-705681abff85"], ["created_at", "2015-03-01 07:56:48.418629"], ["updated_at", "2015-03-01 07:56:48.418629"], ["token", "0aC1jPDm0ylzq8SeMeG4dwYL5Nne30GCvRZ9JUa_ja0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.424822"], ["updated_at", "2015-03-01 07:56:48.424822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '834d5050-bfe8-11e4-8585-705681abff85' AND "clubhouse_memberships"."organization_id" = '834eddc6-bfe8-11e4-b83b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "834d5050-bfe8-11e4-8585-705681abff85"], ["organization_id", "834eddc6-bfe8-11e4-b83b-705681abff85"], ["created_at", "2015-03-01 07:56:48.430439"], ["updated_at", "2015-03-01 07:56:48.430439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.443596' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0aC1jPDm0ylzq8SeMeG4dwYL5Nne30GCvRZ9JUa_ja0"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.446389"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.448761"], ["id", "834df866-bfe8-11e4-86d1-705681abff85"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "834d5050-bfe8-11e4-8585-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$izxvbG4yjVCUK0QMw8hIuuEGVjNAvzRUSYQOZUKlGtd27UGhO25HW"], ["created_at", "2015-03-01 07:56:48.462259"], ["updated_at", "2015-03-01 07:56:48.462259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.463943"], ["user_id", "835485a0-bfe8-11e4-bf4c-705681abff85"], ["created_at", "2015-03-01 07:56:48.464896"], ["updated_at", "2015-03-01 07:56:48.464896"], ["token", "BvmRTzfjIHg2Qx-djxtVBbRO5JSKZ4AOVutZ_4HqLzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.468573"], ["updated_at", "2015-03-01 07:56:48.468573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '835485a0-bfe8-11e4-bf4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '83557a5a-bfe8-11e4-bc55-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "835485a0-bfe8-11e4-bf4c-705681abff85"], ["organization_id", "83557a5a-bfe8-11e4-bc55-705681abff85"], ["created_at", "2015-03-01 07:56:48.471953"], ["updated_at", "2015-03-01 07:56:48.471953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$FsPm6H9NFbUEqxVlwNk/cOovPWlxwkG/rT5BD.IX0NO6MrhflVjgq"], ["created_at", "2015-03-01 07:56:48.484661"], ["updated_at", "2015-03-01 07:56:48.484661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.486715"], ["user_id", "8357fae6-bfe8-11e4-8ee7-705681abff85"], ["created_at", "2015-03-01 07:56:48.487612"], ["updated_at", "2015-03-01 07:56:48.487612"], ["token", "ajDbEyvEHAL0U0L5josU5m3rxSz1NGOLiOG4QCmybsE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.490976"], ["updated_at", "2015-03-01 07:56:48.490976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8357fae6-bfe8-11e4-8ee7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8358e352-bfe8-11e4-8d92-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8357fae6-bfe8-11e4-8ee7-705681abff85"], ["organization_id", "8358e352-bfe8-11e4-8d92-705681abff85"], ["created_at", "2015-03-01 07:56:48.494947"], ["updated_at", "2015-03-01 07:56:48.494947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-26" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-26", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.499659' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ajDbEyvEHAL0U0L5josU5m3rxSz1NGOLiOG4QCmybsE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.501250"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.502414"], ["id", "83586a6c-bfe8-11e4-9307-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8357fae6-bfe8-11e4-8ee7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8357fae6-bfe8-11e4-8ee7-705681abff85"], ["name", "org-26"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8358e352-bfe8-11e4-8d92-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$G4dMmkXlYVMugHqP60YWSOUQ9K7yCMkGjQTnfNX33LajttMXU9Mce"], ["created_at", "2015-03-01 07:56:48.514127"], ["updated_at", "2015-03-01 07:56:48.514127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.515995"], ["user_id", "835c71d4-bfe8-11e4-8722-705681abff85"], ["created_at", "2015-03-01 07:56:48.516844"], ["updated_at", "2015-03-01 07:56:48.516844"], ["token", "uXxVSQI19Jn0oF7YeKrwk2lvxHhD8L6DFQ56FKbKab4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.526948"], ["updated_at", "2015-03-01 07:56:48.526948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '835c71d4-bfe8-11e4-8722-705681abff85' AND "clubhouse_memberships"."organization_id" = '835e65e8-bfe8-11e4-8eab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "835c71d4-bfe8-11e4-8722-705681abff85"], ["organization_id", "835e65e8-bfe8-11e4-8eab-705681abff85"], ["created_at", "2015-03-01 07:56:48.530424"], ["updated_at", "2015-03-01 07:56:48.530424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$cuRJpyUdH793FWmh5Z/w7uSOyW6qie2Imm4uv/25z8.GjIJ32ejC."], ["created_at", "2015-03-01 07:56:48.545646"], ["updated_at", "2015-03-01 07:56:48.545646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.547741"], ["user_id", "83614a38-bfe8-11e4-893c-705681abff85"], ["created_at", "2015-03-01 07:56:48.548582"], ["updated_at", "2015-03-01 07:56:48.548582"], ["token", "CAlqQVxTyXhQll5tAMvWQ8gKZVmdWxN2SEBpUcSDM2U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.552016"], ["updated_at", "2015-03-01 07:56:48.552016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83614a38-bfe8-11e4-893c-705681abff85' AND "clubhouse_memberships"."organization_id" = '83623e98-bfe8-11e4-923f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83614a38-bfe8-11e4-893c-705681abff85"], ["organization_id", "83623e98-bfe8-11e4-923f-705681abff85"], ["created_at", "2015-03-01 07:56:48.555807"], ["updated_at", "2015-03-01 07:56:48.555807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$dBUJnz9FRQ.yTu72GxIWo.O.CADjxcpdhfA8eiqnctEffCrjCvbD2"], ["created_at", "2015-03-01 07:56:48.564878"], ["updated_at", "2015-03-01 07:56:48.564878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.567021"], ["user_id", "83642f0a-bfe8-11e4-8f36-705681abff85"], ["created_at", "2015-03-01 07:56:48.567871"], ["updated_at", "2015-03-01 07:56:48.567871"], ["token", "ct1gcisFg6rFZAGx7_wRRBdCFyzLF5RNo10pa5SwxHU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.571473"], ["updated_at", "2015-03-01 07:56:48.571473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83642f0a-bfe8-11e4-8f36-705681abff85' AND "clubhouse_memberships"."organization_id" = '83652d7e-bfe8-11e4-82ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83642f0a-bfe8-11e4-8f36-705681abff85"], ["organization_id", "83652d7e-bfe8-11e4-82ae-705681abff85"], ["created_at", "2015-03-01 07:56:48.574787"], ["updated_at", "2015-03-01 07:56:48.574787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$zJe2rGnRpvu3ODRDC8ZiteUIeW7DWUreAgdj6oBoIsVk6sFf2wJ7e"], ["created_at", "2015-03-01 07:56:48.583160"], ["updated_at", "2015-03-01 07:56:48.583160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.584726"], ["user_id", "8366f654-bfe8-11e4-abee-705681abff85"], ["created_at", "2015-03-01 07:56:48.585512"], ["updated_at", "2015-03-01 07:56:48.585512"], ["token", "7C4R7r8qFpVEgI6MLUmRQFpLJ5XKfuL-jSCbH5FJpKA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.589182"], ["updated_at", "2015-03-01 07:56:48.589182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8366f654-bfe8-11e4-abee-705681abff85' AND "clubhouse_memberships"."organization_id" = '8367e118-bfe8-11e4-8f8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8366f654-bfe8-11e4-abee-705681abff85"], ["organization_id", "8367e118-bfe8-11e4-8f8c-705681abff85"], ["created_at", "2015-03-01 07:56:48.592415"], ["updated_at", "2015-03-01 07:56:48.592415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$8p4Puoaf28Vjq19Hu2zyleTuFfaBp3G2CKypfehUOYo88aNKg0iye"], ["created_at", "2015-03-01 07:56:48.606078"], ["updated_at", "2015-03-01 07:56:48.606078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.607659"], ["user_id", "836a74d2-bfe8-11e4-9a1e-705681abff85"], ["created_at", "2015-03-01 07:56:48.608461"], ["updated_at", "2015-03-01 07:56:48.608461"], ["token", "luW-TmWU4ZtSEC05nrfK9-HRXCAZSw3rQ1prn9lctdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.612127"], ["updated_at", "2015-03-01 07:56:48.612127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '836a74d2-bfe8-11e4-9a1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '836b6e46-bfe8-11e4-8661-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "836a74d2-bfe8-11e4-9a1e-705681abff85"], ["organization_id", "836b6e46-bfe8-11e4-8661-705681abff85"], ["created_at", "2015-03-01 07:56:48.617339"], ["updated_at", "2015-03-01 07:56:48.617339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-31" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-31", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.623550' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "luW-TmWU4ZtSEC05nrfK9-HRXCAZSw3rQ1prn9lctdY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.625258"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.626280"], ["id", "836ad8f0-bfe8-11e4-8b00-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "836a74d2-bfe8-11e4-9a1e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "836a74d2-bfe8-11e4-9a1e-705681abff85"], ["name", "org-31"]] Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$DLlcCa/bCiZFSE53kbB37e51Ul/qeAcR4VCenapVSFjGsWADSwZim"], ["created_at", "2015-03-01 07:56:48.639056"], ["updated_at", "2015-03-01 07:56:48.639056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$jkq2IZHsOmuLQCyYPiTlIOsEmyF1dqEnvDORtJu5pMSpvP7BOZITu"], ["created_at", "2015-03-01 07:56:48.643464"], ["updated_at", "2015-03-01 07:56:48.643464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.645080"], ["user_id", "836f8292-bfe8-11e4-88f2-705681abff85"], ["created_at", "2015-03-01 07:56:48.645912"], ["updated_at", "2015-03-01 07:56:48.645912"], ["token", "PnmxaBwn6mLbAjSAk58-7pycpPChQgxeZOWSp6WOVb0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.649866"], ["updated_at", "2015-03-01 07:56:48.649866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '836f8292-bfe8-11e4-88f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '837121ba-bfe8-11e4-9585-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "836f8292-bfe8-11e4-88f2-705681abff85"], ["organization_id", "837121ba-bfe8-11e4-9585-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.653194"], ["updated_at", "2015-03-01 07:56:48.653194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '837028c8-bfe8-11e4-870f-705681abff85' AND "clubhouse_memberships"."organization_id" = '837121ba-bfe8-11e4-9585-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "837028c8-bfe8-11e4-870f-705681abff85"], ["organization_id", "837121ba-bfe8-11e4-9585-705681abff85"], ["created_at", "2015-03-01 07:56:48.656481"], ["updated_at", "2015-03-01 07:56:48.656481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.667127' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PnmxaBwn6mLbAjSAk58-7pycpPChQgxeZOWSp6WOVb0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.668638"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.669655"], ["id", "83709efc-bfe8-11e4-9237-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "836f8292-bfe8-11e4-88f2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "836f8292-bfe8-11e4-88f2-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "836f8292-bfe8-11e4-88f2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "836f8292-bfe8-11e4-88f2-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('836f8292-bfe8-11e4-88f2-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('837121ba-bfe8-11e4-9585-705681abff85') Completed 200 OK in 14ms (Views: 5.7ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$4/9gp5sTHCfX4ELwHiOUf.8W4/JWH6FzGRvri5luk7wyhm.faL6pG"], ["created_at", "2015-03-01 07:56:48.687387"], ["updated_at", "2015-03-01 07:56:48.687387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$YgGDgF9IBro.4WOfsm5xIeYA4Rr.dvg1.YCYO.nXxhTDfOJtF1UyG"], ["created_at", "2015-03-01 07:56:48.691735"], ["updated_at", "2015-03-01 07:56:48.691735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.693298"], ["user_id", "8376de20-bfe8-11e4-82a9-705681abff85"], ["created_at", "2015-03-01 07:56:48.694269"], ["updated_at", "2015-03-01 07:56:48.694269"], ["token", "DW-TDFYePJh-e8wxLOI1iP9MR4lBCThB7-i8owaPHjA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.697884"], ["updated_at", "2015-03-01 07:56:48.697884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8376de20-bfe8-11e4-82a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '8378760e-bfe8-11e4-be92-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8376de20-bfe8-11e4-82a9-705681abff85"], ["organization_id", "8378760e-bfe8-11e4-be92-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.701146"], ["updated_at", "2015-03-01 07:56:48.701146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '837785be-bfe8-11e4-8e6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '8378760e-bfe8-11e4-be92-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "837785be-bfe8-11e4-8e6a-705681abff85"], ["organization_id", "8378760e-bfe8-11e4-be92-705681abff85"], ["created_at", "2015-03-01 07:56:48.704266"], ["updated_at", "2015-03-01 07:56:48.704266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$hw9Zin7M4QlhJlhpSOvvu.F6ZmhXO0RnZSJdHXbRbLU8UxH7MGDmS"], ["created_at", "2015-03-01 07:56:48.719239"], ["updated_at", "2015-03-01 07:56:48.719239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$hwSq5/GG1XIo1GePSQ5KKe5pZpBiYmTxNE6AAphCKLdTljRMPmV1a"], ["created_at", "2015-03-01 07:56:48.724219"], ["updated_at", "2015-03-01 07:56:48.724219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.725860"], ["user_id", "837bc69c-bfe8-11e4-bf61-705681abff85"], ["created_at", "2015-03-01 07:56:48.726652"], ["updated_at", "2015-03-01 07:56:48.726652"], ["token", "_JcnaV77mrMPoOzXY-BIWA_tgn_Dam3h4tGJVUmSLBY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.730205"], ["updated_at", "2015-03-01 07:56:48.730205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '837bc69c-bfe8-11e4-bf61-705681abff85' AND "clubhouse_memberships"."organization_id" = '837d64a2-bfe8-11e4-b5bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "837bc69c-bfe8-11e4-bf61-705681abff85"], ["organization_id", "837d64a2-bfe8-11e4-b5bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.733774"], ["updated_at", "2015-03-01 07:56:48.733774"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '837c7bdc-bfe8-11e4-89bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '837d64a2-bfe8-11e4-b5bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "837c7bdc-bfe8-11e4-89bc-705681abff85"], ["organization_id", "837d64a2-bfe8-11e4-b5bd-705681abff85"], ["created_at", "2015-03-01 07:56:48.737472"], ["updated_at", "2015-03-01 07:56:48.737472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/837e810c-bfe8-11e4-a1bd-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"837e810c-bfe8-11e4-a1bd-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.742653' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_JcnaV77mrMPoOzXY-BIWA_tgn_Dam3h4tGJVUmSLBY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.744063"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.745051"], ["id", "837ce068-bfe8-11e4-8549-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "837bc69c-bfe8-11e4-bf61-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "837bc69c-bfe8-11e4-bf61-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '837bc69c-bfe8-11e4-bf61-705681abff85' LIMIT 1 [["organization_id", "837d64a2-bfe8-11e4-b5bd-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "837d64a2-bfe8-11e4-b5bd-705681abff85"], ["id", "837e810c-bfe8-11e4-a1bd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "837d64a2-bfe8-11e4-b5bd-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "837c7bdc-bfe8-11e4-89bc-705681abff85"]] Completed 200 OK in 16ms (Views: 4.0ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$G9bjZ8aQBVJdWH2tTJ0R5ePOiXeshZjknoOBwC3wv5wuUeH7n2mgO"], ["created_at", "2015-03-01 07:56:48.764283"], ["updated_at", "2015-03-01 07:56:48.764283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$MSRoyoz1nD7IWpQv3c4l2uKhopQiTmge87FuYCqIEV3Q9Of0Dr0AK"], ["created_at", "2015-03-01 07:56:48.768502"], ["updated_at", "2015-03-01 07:56:48.768502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.770015"], ["user_id", "838299f4-bfe8-11e4-9e7d-705681abff85"], ["created_at", "2015-03-01 07:56:48.770891"], ["updated_at", "2015-03-01 07:56:48.770891"], ["token", "peAt2Cwta2Fg4hHtYNT3KnpBwqyUhEZbaVY2k7pzwIo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.774995"], ["updated_at", "2015-03-01 07:56:48.774995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '838299f4-bfe8-11e4-9e7d-705681abff85' AND "clubhouse_memberships"."organization_id" = '83843cc8-bfe8-11e4-bdd2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "838299f4-bfe8-11e4-9e7d-705681abff85"], ["organization_id", "83843cc8-bfe8-11e4-bdd2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.778833"], ["updated_at", "2015-03-01 07:56:48.778833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83833b98-bfe8-11e4-8b50-705681abff85' AND "clubhouse_memberships"."organization_id" = '83843cc8-bfe8-11e4-bdd2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83833b98-bfe8-11e4-8b50-705681abff85"], ["organization_id", "83843cc8-bfe8-11e4-bdd2-705681abff85"], ["created_at", "2015-03-01 07:56:48.782147"], ["updated_at", "2015-03-01 07:56:48.782147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$T5SA7bF0aYUF6l5TPAc2bOCQ4ZKqa8AKImw1aeq4yOZxV.9km4mbK"], ["created_at", "2015-03-01 07:56:48.786645"], ["updated_at", "2015-03-01 07:56:48.786645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.788291"], ["user_id", "83860440-bfe8-11e4-a146-705681abff85"], ["created_at", "2015-03-01 07:56:48.789074"], ["updated_at", "2015-03-01 07:56:48.789074"], ["token", "EGRuLaktnwo6xEkdAHC_tBFNlW5pmS_gFd1brmKXKvU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '83843cc8-bfe8-11e4-bdd2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "83843cc8-bfe8-11e4-bdd2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.792670"], ["updated_at", "2015-03-01 07:56:48.792670"], ["token", "rqpUUQX5HEDwkTAniGF4fFju6OQA5LIXgpGIvXzxafY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$zNmalT/UyDvh9zzPPV923.S0zmMS4eOIus06toEhPu9Gfzb48zna2"], ["created_at", "2015-03-01 07:56:48.807537"], ["updated_at", "2015-03-01 07:56:48.807537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$v9L4yDNAqdvRfU7/NO1bp.9HWBt/IVLQiWw/q0uWPExxCWUvHPZSO"], ["created_at", "2015-03-01 07:56:48.812241"], ["updated_at", "2015-03-01 07:56:48.812241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.814352"], ["user_id", "83893782-bfe8-11e4-9d88-705681abff85"], ["created_at", "2015-03-01 07:56:48.816123"], ["updated_at", "2015-03-01 07:56:48.816123"], ["token", "f_-97y48fM8SgYCLKqxtCe2zNl5v-6rT9khKlLyak4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.820955"], ["updated_at", "2015-03-01 07:56:48.820955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83893782-bfe8-11e4-9d88-705681abff85' AND "clubhouse_memberships"."organization_id" = '838b5242-bfe8-11e4-a00e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83893782-bfe8-11e4-9d88-705681abff85"], ["organization_id", "838b5242-bfe8-11e4-a00e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.825003"], ["updated_at", "2015-03-01 07:56:48.825003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8389f5be-bfe8-11e4-ac23-705681abff85' AND "clubhouse_memberships"."organization_id" = '838b5242-bfe8-11e4-a00e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8389f5be-bfe8-11e4-ac23-705681abff85"], ["organization_id", "838b5242-bfe8-11e4-a00e-705681abff85"], ["created_at", "2015-03-01 07:56:48.828181"], ["updated_at", "2015-03-01 07:56:48.828181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$iUlLuEsNR6.ukN2MJWb8NuWkEHHekzVzd2yurRFVdstb4qCu9sO0u"], ["created_at", "2015-03-01 07:56:48.833744"], ["updated_at", "2015-03-01 07:56:48.833744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.835539"], ["user_id", "838d34b8-bfe8-11e4-b746-705681abff85"], ["created_at", "2015-03-01 07:56:48.836323"], ["updated_at", "2015-03-01 07:56:48.836323"], ["token", "2ywgCNO4Fe7B35IFOwwhN6FmoX93LEpdyIQwUaSqnro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '838b5242-bfe8-11e4-a00e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "838b5242-bfe8-11e4-a00e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.841094"], ["updated_at", "2015-03-01 07:56:48.841094"], ["token", "c8V5q1vKdJmVp-gjbariYBepMsra5DOIVUbjHPvxql0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"c8V5q1vKdJmVp-gjbariYBepMsra5DOIVUbjHPvxql0", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.846235' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2ywgCNO4Fe7B35IFOwwhN6FmoX93LEpdyIQwUaSqnro"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.847821"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.848772"], ["id", "838d9f2a-bfe8-11e4-9b27-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "838d34b8-bfe8-11e4-b746-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "838d34b8-bfe8-11e4-b746-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "c8V5q1vKdJmVp-gjbariYBepMsra5DOIVUbjHPvxql0"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "838b5242-bfe8-11e4-a00e-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "838b5242-bfe8-11e4-a00e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '838d34b8-bfe8-11e4-b746-705681abff85' AND "clubhouse_memberships"."organization_id" = '838b5242-bfe8-11e4-a00e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "838d34b8-bfe8-11e4-b746-705681abff85"], ["admin", "t"], ["organization_id", "838b5242-bfe8-11e4-a00e-705681abff85"], ["created_at", "2015-03-01 07:56:48.858987"], ["updated_at", "2015-03-01 07:56:48.858987"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "838e5b86-bfe8-11e4-ac66-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.0ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$AAxcXVPB/8AAlIMPAf6T0OiK.JARycYGPqVfgdxdWGPn20XmdzvB2"], ["created_at", "2015-03-01 07:56:48.868600"], ["updated_at", "2015-03-01 07:56:48.868600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$kc57WJEdwLWDbq0KSatUO.1Q6Jib.6P7i.MvQajd6CYIgu7hMbLqa"], ["created_at", "2015-03-01 07:56:48.873051"], ["updated_at", "2015-03-01 07:56:48.873051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.874526"], ["user_id", "83928710-bfe8-11e4-8898-705681abff85"], ["created_at", "2015-03-01 07:56:48.875352"], ["updated_at", "2015-03-01 07:56:48.875352"], ["token", "DRG_vN3-9R9RxmIeiwCeZUEvvBn5UZM8WthH5sc-2XA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.878515"], ["updated_at", "2015-03-01 07:56:48.878515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83928710-bfe8-11e4-8898-705681abff85' AND "clubhouse_memberships"."organization_id" = '839407e8-bfe8-11e4-94b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83928710-bfe8-11e4-8898-705681abff85"], ["organization_id", "839407e8-bfe8-11e4-94b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.881895"], ["updated_at", "2015-03-01 07:56:48.881895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83932e90-bfe8-11e4-a09d-705681abff85' AND "clubhouse_memberships"."organization_id" = '839407e8-bfe8-11e4-94b3-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83932e90-bfe8-11e4-a09d-705681abff85"], ["organization_id", "839407e8-bfe8-11e4-94b3-705681abff85"], ["created_at", "2015-03-01 07:56:48.884963"], ["updated_at", "2015-03-01 07:56:48.884963"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$rlmLQodf7qTrTMoBChwbkOVw/kxY8E9tZC9KjxxnDEKvujOPvzT9S"], ["created_at", "2015-03-01 07:56:48.891994"], ["updated_at", "2015-03-01 07:56:48.891994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.893639"], ["user_id", "83961aba-bfe8-11e4-bd21-705681abff85"], ["created_at", "2015-03-01 07:56:48.894407"], ["updated_at", "2015-03-01 07:56:48.894407"], ["token", "T7TCO5Grzao8fkx_T_N9VS_Ag-Ttz2isgcAjz51oXy0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '839407e8-bfe8-11e4-94b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "839407e8-bfe8-11e4-94b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.898106"], ["updated_at", "2015-03-01 07:56:48.898106"], ["token", "oos8yJu4mmOhxF0I9qBrlrmy-u6XGIb2V0h3PCWDthA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.903459' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "T7TCO5Grzao8fkx_T_N9VS_Ag-Ttz2isgcAjz51oXy0"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.904869"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.906141"], ["id", "83967852-bfe8-11e4-bf6c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83961aba-bfe8-11e4-bd21-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83961aba-bfe8-11e4-bd21-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$l4NZsJiC8hyW0DtX4TFF2eYmeALgaRo/DZhsLJAUfnD1/.1GdnRhi"], ["created_at", "2015-03-01 07:56:48.916293"], ["updated_at", "2015-03-01 07:56:48.916293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$MMp2A6R8qiM9lwwjDlX9lOn9i27Bfp1rQ3mX5Vo0YBdrwQlFpxv12"], ["created_at", "2015-03-01 07:56:48.921551"], ["updated_at", "2015-03-01 07:56:48.921551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.923930"], ["user_id", "8399cab6-bfe8-11e4-a596-705681abff85"], ["created_at", "2015-03-01 07:56:48.925267"], ["updated_at", "2015-03-01 07:56:48.925267"], ["token", "c35cb5HAP14vwqBvDpshsQAk1V5M6tU_NuAUsxjgvIM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.931371"], ["updated_at", "2015-03-01 07:56:48.931371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8399cab6-bfe8-11e4-a596-705681abff85' AND "clubhouse_memberships"."organization_id" = '839c1636-bfe8-11e4-8ee6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8399cab6-bfe8-11e4-a596-705681abff85"], ["organization_id", "839c1636-bfe8-11e4-8ee6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.934562"], ["updated_at", "2015-03-01 07:56:48.934562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '839a98d8-bfe8-11e4-97ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '839c1636-bfe8-11e4-8ee6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "839a98d8-bfe8-11e4-97ea-705681abff85"], ["organization_id", "839c1636-bfe8-11e4-8ee6-705681abff85"], ["created_at", "2015-03-01 07:56:48.937996"], ["updated_at", "2015-03-01 07:56:48.937996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$s58zJNz.JIM7m7bppqwFeuwZK7VVbCqslWCtxljsiDBK2OJNG1y.W"], ["created_at", "2015-03-01 07:56:48.951724"], ["updated_at", "2015-03-01 07:56:48.951724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$QjTns3AMMlFGh4t8WrIiGewrijetFh3sakUHUAtE4WS3xECQ6jNi2"], ["created_at", "2015-03-01 07:56:48.956047"], ["updated_at", "2015-03-01 07:56:48.956047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.957521"], ["user_id", "839f3816-bfe8-11e4-b383-705681abff85"], ["created_at", "2015-03-01 07:56:48.958285"], ["updated_at", "2015-03-01 07:56:48.958285"], ["token", "UapGS5RvW7oxrXOqHk5sQpJvLj9QN3ob53eHME57N-Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:48.962013"], ["updated_at", "2015-03-01 07:56:48.962013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '839f3816-bfe8-11e4-b383-705681abff85' AND "clubhouse_memberships"."organization_id" = '83a0c366-bfe8-11e4-a668-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "839f3816-bfe8-11e4-b383-705681abff85"], ["organization_id", "83a0c366-bfe8-11e4-a668-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:48.965235"], ["updated_at", "2015-03-01 07:56:48.965235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '839fd7ee-bfe8-11e4-86a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '83a0c366-bfe8-11e4-a668-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "839fd7ee-bfe8-11e4-86a3-705681abff85"], ["organization_id", "83a0c366-bfe8-11e4-a668-705681abff85"], ["created_at", "2015-03-01 07:56:48.968002"], ["updated_at", "2015-03-01 07:56:48.968002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/83a13efe-bfe8-11e4-b302-705681abff85" for 127.0.0.1 at 2015-02-28 23:56:48 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"83a13efe-bfe8-11e4-b302-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:48.972690' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UapGS5RvW7oxrXOqHk5sQpJvLj9QN3ob53eHME57N-Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:48.974146"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:48.975099"], ["id", "83a0377a-bfe8-11e4-ae41-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "839f3816-bfe8-11e4-b383-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "839f3816-bfe8-11e4-b383-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "839f3816-bfe8-11e4-b383-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "839f3816-bfe8-11e4-b383-705681abff85"], ["id", "83a13efe-bfe8-11e4-b302-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83a0c366-bfe8-11e4-a668-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "839f3816-bfe8-11e4-b383-705681abff85"]] Completed 200 OK in 12ms (Views: 3.1ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$uVJs.SUxm85cLkDngSItGuxRbrsH5.Ar0SiC2/PUzLz/RbTd8EjPu"], ["created_at", "2015-03-01 07:56:48.991828"], ["updated_at", "2015-03-01 07:56:48.991828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$i6mMEpPoHZL2lUvmSYZyUuEpdg3Su.fkQY4GVGhwTdFZqghPGHgom"], ["created_at", "2015-03-01 07:56:48.996321"], ["updated_at", "2015-03-01 07:56:48.996321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:48.998356"], ["user_id", "83a551f6-bfe8-11e4-8937-705681abff85"], ["created_at", "2015-03-01 07:56:48.999146"], ["updated_at", "2015-03-01 07:56:48.999146"], ["token", "bpYJHMpzrAIrsJZE2BIgukjCzOWHmllgarIg9husanw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:49.002683"], ["updated_at", "2015-03-01 07:56:49.002683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83a551f6-bfe8-11e4-8937-705681abff85' AND "clubhouse_memberships"."organization_id" = '83a6fa2e-bfe8-11e4-947e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83a551f6-bfe8-11e4-8937-705681abff85"], ["organization_id", "83a6fa2e-bfe8-11e4-947e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:49.006518"], ["updated_at", "2015-03-01 07:56:49.006518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83a60236-bfe8-11e4-8396-705681abff85' AND "clubhouse_memberships"."organization_id" = '83a6fa2e-bfe8-11e4-947e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83a60236-bfe8-11e4-8396-705681abff85"], ["organization_id", "83a6fa2e-bfe8-11e4-947e-705681abff85"], ["created_at", "2015-03-01 07:56:49.009853"], ["updated_at", "2015-03-01 07:56:49.009853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 23:56:49 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:49.014518' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bpYJHMpzrAIrsJZE2BIgukjCzOWHmllgarIg9husanw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:49.016264"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:49.017228"], ["id", "83a679f0-bfe8-11e4-9338-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83a551f6-bfe8-11e4-8937-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83a551f6-bfe8-11e4-8937-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83a551f6-bfe8-11e4-8937-705681abff85' LIMIT 1 [["organization_id", "83a6fa2e-bfe8-11e4-947e-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "83a6fa2e-bfe8-11e4-947e-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('83a551f6-bfe8-11e4-8937-705681abff85', '83a60236-bfe8-11e4-8396-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('83a6fa2e-bfe8-11e4-947e-705681abff85') Completed 200 OK in 12ms (Views: 4.0ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$hHcTyv2C2Qr7FcAcARlm9eyHhzgHpTsKLL3DBdTFm7h7aK2TIoOqa"], ["created_at", "2015-03-01 07:56:49.033453"], ["updated_at", "2015-03-01 07:56:49.033453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$6ZLCfz9QiPxZSvHHj2qmM.zqBB2ufXkUqq5CXW4BbgCiTrx//iQaq"], ["created_at", "2015-03-01 07:56:49.038364"], ["updated_at", "2015-03-01 07:56:49.038364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:49.039899"], ["user_id", "83abb12c-bfe8-11e4-a2c0-705681abff85"], ["created_at", "2015-03-01 07:56:49.040644"], ["updated_at", "2015-03-01 07:56:49.040644"], ["token", "hlyCCLOtLn_0Zc_XYb4ilLTlkhGN2LRJAMKizs_16VY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:49.043989"], ["updated_at", "2015-03-01 07:56:49.043989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83abb12c-bfe8-11e4-a2c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '83ad43b6-bfe8-11e4-879c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83abb12c-bfe8-11e4-a2c0-705681abff85"], ["organization_id", "83ad43b6-bfe8-11e4-879c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:49.047372"], ["updated_at", "2015-03-01 07:56:49.047372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83ac6a36-bfe8-11e4-9228-705681abff85' AND "clubhouse_memberships"."organization_id" = '83ad43b6-bfe8-11e4-879c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83ac6a36-bfe8-11e4-9228-705681abff85"], ["organization_id", "83ad43b6-bfe8-11e4-879c-705681abff85"], ["created_at", "2015-03-01 07:56:49.050600"], ["updated_at", "2015-03-01 07:56:49.050600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:56:49 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$aPivm2REa1iWvbwIalyp5evhvsbGfJaaTK778EXXdQ6fsHIkT2bcu"], ["created_at", "2015-03-01 07:56:49.062690"], ["updated_at", "2015-03-01 07:56:49.062690"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$NzPKR1Mg6SELenvmSh.VHeoE/Q9Uu6I/TwQltwASGbrAImeNG/7Yq"], ["created_at", "2015-03-01 07:56:49.068671"], ["updated_at", "2015-03-01 07:56:49.068671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:49.070213"], ["user_id", "83b03206-bfe8-11e4-9f27-705681abff85"], ["created_at", "2015-03-01 07:56:49.070999"], ["updated_at", "2015-03-01 07:56:49.070999"], ["token", "UCI21osumyoW2aSdCIL5wjyWqqneWhqFC0JfiFWZoKU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:49.074659"], ["updated_at", "2015-03-01 07:56:49.074659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83b03206-bfe8-11e4-9f27-705681abff85' AND "clubhouse_memberships"."organization_id" = '83b1f3d4-bfe8-11e4-a0a1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83b03206-bfe8-11e4-9f27-705681abff85"], ["organization_id", "83b1f3d4-bfe8-11e4-a0a1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:49.077886"], ["updated_at", "2015-03-01 07:56:49.077886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83b1099c-bfe8-11e4-8f0c-705681abff85' AND "clubhouse_memberships"."organization_id" = '83b1f3d4-bfe8-11e4-a0a1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83b1099c-bfe8-11e4-8f0c-705681abff85"], ["organization_id", "83b1f3d4-bfe8-11e4-a0a1-705681abff85"], ["created_at", "2015-03-01 07:56:49.081013"], ["updated_at", "2015-03-01 07:56:49.081013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/83b2eb18-bfe8-11e4-bad2-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:56:49 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"83b2eb18-bfe8-11e4-bad2-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:49.085877' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UCI21osumyoW2aSdCIL5wjyWqqneWhqFC0JfiFWZoKU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:49.087266"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:49.088328"], ["id", "83b16cfc-bfe8-11e4-8d3b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83b03206-bfe8-11e4-9f27-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83b03206-bfe8-11e4-9f27-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83b03206-bfe8-11e4-9f27-705681abff85' LIMIT 1 [["organization_id", "83b1f3d4-bfe8-11e4-a0a1-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "83b1f3d4-bfe8-11e4-a0a1-705681abff85"], ["id", "83b2eb18-bfe8-11e4-bad2-705681abff85"]] User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83b1099c-bfe8-11e4-8f0c-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "83b2eb18-bfe8-11e4-bad2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 18ms (ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$dX5yZnqmwpRl2kDf7Pr6wO5lCzVUx1wQxyaWnMnLQ069GhM/hI7X2"], ["created_at", "2015-03-01 07:56:49.110629"], ["updated_at", "2015-03-01 07:56:49.110629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$DNSe9fy.XRVH.SUjpukoBO9Mj6kiCOpWA0C4qHLqnktl8DhJiAxB2"], ["created_at", "2015-03-01 07:56:49.115236"], ["updated_at", "2015-03-01 07:56:49.115236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:49.116975"], ["user_id", "83b77462-bfe8-11e4-bbeb-705681abff85"], ["created_at", "2015-03-01 07:56:49.117764"], ["updated_at", "2015-03-01 07:56:49.117764"], ["token", "GSPlBwJoUfX19sx9d265ldisUcgTDNZjKP7iVog8_bo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:49.121070"], ["updated_at", "2015-03-01 07:56:49.121070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83b77462-bfe8-11e4-bbeb-705681abff85' AND "clubhouse_memberships"."organization_id" = '83b90f02-bfe8-11e4-add1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83b77462-bfe8-11e4-bbeb-705681abff85"], ["organization_id", "83b90f02-bfe8-11e4-add1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:49.124783"], ["updated_at", "2015-03-01 07:56:49.124783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83b82736-bfe8-11e4-a5b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '83b90f02-bfe8-11e4-add1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83b82736-bfe8-11e4-a5b8-705681abff85"], ["organization_id", "83b90f02-bfe8-11e4-add1-705681abff85"], ["created_at", "2015-03-01 07:56:49.127741"], ["updated_at", "2015-03-01 07:56:49.127741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/83b9997c-bfe8-11e4-8e98-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:56:49 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"83b9997c-bfe8-11e4-8e98-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:49.133008' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GSPlBwJoUfX19sx9d265ldisUcgTDNZjKP7iVog8_bo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:49.134476"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:49.135593"], ["id", "83b88dfc-bfe8-11e4-8d0b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83b77462-bfe8-11e4-bbeb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83b77462-bfe8-11e4-bbeb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83b77462-bfe8-11e4-bbeb-705681abff85' LIMIT 1 [["organization_id", "83b90f02-bfe8-11e4-add1-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "83b90f02-bfe8-11e4-add1-705681abff85"], ["id", "83b9997c-bfe8-11e4-8e98-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83b77462-bfe8-11e4-bbeb-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$kWg05eo2MntmEFPmBt80UuMkwF0splD4y7dqMROv6rogYTJ/vCMTu"], ["created_at", "2015-03-01 07:56:49.147810"], ["updated_at", "2015-03-01 07:56:49.147810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$ZUhqFCxA5yfXPPBnWv1e9eAkEo4914cn9weUvumQBnl/P2Q1AtlVS"], ["created_at", "2015-03-01 07:56:49.152290"], ["updated_at", "2015-03-01 07:56:49.152290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:49.153685"], ["user_id", "83bd2902-bfe8-11e4-897c-705681abff85"], ["created_at", "2015-03-01 07:56:49.154596"], ["updated_at", "2015-03-01 07:56:49.154596"], ["token", "cCqzeZHRCG1H1jNrC51Cijq_lstowuwBJc-VsXmV_Zc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:49.157969"], ["updated_at", "2015-03-01 07:56:49.157969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83bd2902-bfe8-11e4-897c-705681abff85' AND "clubhouse_memberships"."organization_id" = '83beaa34-bfe8-11e4-adcb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83bd2902-bfe8-11e4-897c-705681abff85"], ["organization_id", "83beaa34-bfe8-11e4-adcb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:49.161347"], ["updated_at", "2015-03-01 07:56:49.161347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83bdc9b6-bfe8-11e4-bfe2-705681abff85' AND "clubhouse_memberships"."organization_id" = '83beaa34-bfe8-11e4-adcb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83bdc9b6-bfe8-11e4-bfe2-705681abff85"], ["organization_id", "83beaa34-bfe8-11e4-adcb-705681abff85"], ["created_at", "2015-03-01 07:56:49.164344"], ["updated_at", "2015-03-01 07:56:49.164344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:56:49 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$CnfYsjQtk.Ml5UZtDAe62uoZKNrChtTsdXY4r8DhWO79f9du6il9e"], ["created_at", "2015-03-01 07:56:49.176277"], ["updated_at", "2015-03-01 07:56:49.176277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$JNSoqbjGWlpnoySMfwtiMukZUxHkaOIcU8OUNS0ZbXwImsTiUhl3O"], ["created_at", "2015-03-01 07:56:49.180857"], ["updated_at", "2015-03-01 07:56:49.180857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:49.182818"], ["user_id", "83c17610-bfe8-11e4-a3fd-705681abff85"], ["created_at", "2015-03-01 07:56:49.183607"], ["updated_at", "2015-03-01 07:56:49.183607"], ["token", "EAYwz8MLtLMeZ5BXg0Sj7J0sigciZPXzInsiqoYaaTQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:49.186834"], ["updated_at", "2015-03-01 07:56:49.186834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83c17610-bfe8-11e4-a3fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '83c30eda-bfe8-11e4-a71d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83c17610-bfe8-11e4-a3fd-705681abff85"], ["organization_id", "83c30eda-bfe8-11e4-a71d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:49.189952"], ["updated_at", "2015-03-01 07:56:49.189952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83c23492-bfe8-11e4-951d-705681abff85' AND "clubhouse_memberships"."organization_id" = '83c30eda-bfe8-11e4-a71d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83c23492-bfe8-11e4-951d-705681abff85"], ["organization_id", "83c30eda-bfe8-11e4-a71d-705681abff85"], ["created_at", "2015-03-01 07:56:49.193174"], ["updated_at", "2015-03-01 07:56:49.193174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/83c40722-bfe8-11e4-b92e-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:56:49 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"83c40722-bfe8-11e4-b92e-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:49.198089' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EAYwz8MLtLMeZ5BXg0Sj7J0sigciZPXzInsiqoYaaTQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:49.199512"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:49.200452"], ["id", "83c29b26-bfe8-11e4-ae90-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83c17610-bfe8-11e4-a3fd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83c17610-bfe8-11e4-a3fd-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83c17610-bfe8-11e4-a3fd-705681abff85' LIMIT 1 [["organization_id", "83c30eda-bfe8-11e4-a71d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "83c30eda-bfe8-11e4-a71d-705681abff85"], ["id", "83c40722-bfe8-11e4-b92e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83c23492-bfe8-11e4-951d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83c30eda-bfe8-11e4-a71d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83c23492-bfe8-11e4-951d-705681abff85' AND "clubhouse_memberships"."id" != '83c40722-bfe8-11e4-b92e-705681abff85' AND "clubhouse_memberships"."organization_id" = '83c30eda-bfe8-11e4-a71d-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:56:49.210685"], ["id", "83c40722-bfe8-11e4-b92e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.1ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$.hD1XB/hEp1YYkvtymlrZup5W1waNbjVNO1Qr7ZtBJmL/YXdgNfGa"], ["created_at", "2015-03-01 07:56:49.219644"], ["updated_at", "2015-03-01 07:56:49.219644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$ko0ZzomrAOV6akymxOq9q.n6JD9fP8SjxD28S5QWkKUGzq29Yp.zW"], ["created_at", "2015-03-01 07:56:49.224066"], ["updated_at", "2015-03-01 07:56:49.224066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:56:49.225531"], ["user_id", "83c813c6-bfe8-11e4-81cf-705681abff85"], ["created_at", "2015-03-01 07:56:49.226298"], ["updated_at", "2015-03-01 07:56:49.226298"], ["token", "54L3D89proNSedxLD9fyUGZpecpD46tEBqLLztuta40"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:56:49.229587"], ["updated_at", "2015-03-01 07:56:49.229587"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83c813c6-bfe8-11e4-81cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '83c99570-bfe8-11e4-8dba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83c813c6-bfe8-11e4-81cf-705681abff85"], ["organization_id", "83c99570-bfe8-11e4-8dba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:56:49.232874"], ["updated_at", "2015-03-01 07:56:49.232874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83c8bf42-bfe8-11e4-9b5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '83c99570-bfe8-11e4-8dba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83c8bf42-bfe8-11e4-9b5c-705681abff85"], ["organization_id", "83c99570-bfe8-11e4-8dba-705681abff85"], ["created_at", "2015-03-01 07:56:49.235984"], ["updated_at", "2015-03-01 07:56:49.235984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/83ca16ee-bfe8-11e4-b058-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:56:49 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"83ca16ee-bfe8-11e4-b058-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:56:49.240850' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "54L3D89proNSedxLD9fyUGZpecpD46tEBqLLztuta40"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:56:49.242346"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:56:49.243594"], ["id", "83c91c58-bfe8-11e4-a6a4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83c813c6-bfe8-11e4-81cf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "83c813c6-bfe8-11e4-81cf-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83c813c6-bfe8-11e4-81cf-705681abff85' LIMIT 1 [["organization_id", "83c99570-bfe8-11e4-8dba-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "83c99570-bfe8-11e4-8dba-705681abff85"], ["id", "83ca16ee-bfe8-11e4-b058-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83c813c6-bfe8-11e4-81cf-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$u3dY17Qj13p33mwjwvu/u.MaTnt4hPGQE8HRtK59VZEHHAjHZlwmy"], ["created_at", "2015-03-01 07:57:01.354449"], ["updated_at", "2015-03-01 07:57:01.354449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.364398"], ["updated_at", "2015-03-01 07:57:01.364398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b03e0a2-bfe8-11e4-bb45-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b054118-bfe8-11e4-b79b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b03e0a2-bfe8-11e4-bb45-705681abff85"], ["organization_id", "8b054118-bfe8-11e4-b79b-705681abff85"], ["created_at", "2015-03-01 07:57:01.367886"], ["updated_at", "2015-03-01 07:57:01.367886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b03e0a2-bfe8-11e4-bb45-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b054118-bfe8-11e4-b79b-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b03e0a2-bfe8-11e4-bb45-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b054118-bfe8-11e4-b79b-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b054118-bfe8-11e4-b79b-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b03e0a2-bfe8-11e4-bb45-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b054118-bfe8-11e4-b79b-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.447642"], ["updated_at", "2015-03-01 07:57:01.447642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8b11edb4-bfe8-11e4-9292-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "8b11edb4-bfe8-11e4-9292-705681abff85"], ["created_at", "2015-03-01 07:57:01.451128"], ["updated_at", "2015-03-01 07:57:01.451128"], ["token", "oPxiR5DhLGyyMRuceQdzwvUdp5zDeva6PZMX05OxgGc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b11edb4-bfe8-11e4-9292-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8b11edb4-bfe8-11e4-9292-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8b11edb4-bfe8-11e4-9292-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8b11edb4-bfe8-11e4-9292-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.478400"], ["updated_at", "2015-03-01 07:57:01.478400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8b169ff8-bfe8-11e4-b211-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "8b169ff8-bfe8-11e4-b211-705681abff85"], ["created_at", "2015-03-01 07:57:01.481559"], ["updated_at", "2015-03-01 07:57:01.481559"], ["token", "5LExB-8GzEQ6kAUccTS2lUjZkTLguPo49uYSsmIX-RI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.675716"], ["updated_at", "2015-03-01 07:57:01.675716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8b34bb32-bfe8-11e4-b929-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8b34bb32-bfe8-11e4-b929-705681abff85"], ["created_at", "2015-03-01 07:57:01.679860"], ["updated_at", "2015-03-01 07:57:01.679860"], ["token", "YZYQCZ1uJNtuqFnU92FqPJw04F550QuZKkn0nfTzJVE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.3ms) Clubhouse::Mailer#invitation: processed outbound mail in 19.2ms Sent mail to john@example.com (8.1ms) Date: Sat, 28 Feb 2015 23:57:01 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c64dacc08_136413fce45025be028330@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/YZYQCZ1uJNtuqFnU92FqPJw04F550QuZKkn0nfTzJVE If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.716985"], ["updated_at", "2015-03-01 07:57:01.716985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8b3b0ba4-bfe8-11e4-8650-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8b3b0ba4-bfe8-11e4-8650-705681abff85"], ["created_at", "2015-03-01 07:57:01.721056"], ["updated_at", "2015-03-01 07:57:01.721056"], ["token", "jheRQK7dRreVM6X2L56PyJSxw6ygqjMdtUUE3cVpDYo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.7ms Sent mail to john@example.com (1.9ms) Date: Sat, 28 Feb 2015 23:57:01 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c64db1237_136413fce45025be028420@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/jheRQK7dRreVM6X2L56PyJSxw6ygqjMdtUUE3cVpDYo If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.733017"], ["updated_at", "2015-03-01 07:57:01.733017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8b3d7a06-bfe8-11e4-ae68-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8b3d7a06-bfe8-11e4-ae68-705681abff85"], ["created_at", "2015-03-01 07:57:01.736541"], ["updated_at", "2015-03-01 07:57:01.736541"], ["token", "Fv1aXBFe1VNojh2ET-1zgU2SZvk6XJIRwqC6J5w0l7U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.0ms Sent mail to john@example.com (1.9ms) Date: Sat, 28 Feb 2015 23:57:01 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c64db4b6d_136413fce45025be02850@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Fv1aXBFe1VNojh2ET-1zgU2SZvk6XJIRwqC6J5w0l7U If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.745197"], ["updated_at", "2015-03-01 07:57:01.745197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '8b3f53ee-bfe8-11e4-91cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "8b3f53ee-bfe8-11e4-91cc-705681abff85"], ["created_at", "2015-03-01 07:57:01.749374"], ["updated_at", "2015-03-01 07:57:01.749374"], ["token", "T9wfoMX02kg4WCH2A1JCW6EO0pFWe2Qvj7WsT57ZvE8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.4ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (5.0ms) Date: Sat, 28 Feb 2015 23:57:01 -0800 From: from@example.com To: john@example.com Message-ID: <54f2c64db8c74_136413fce45025be02866e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/T9wfoMX02kg4WCH2A1JCW6EO0pFWe2Qvj7WsT57ZvE8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$rqW0XmUXxSNIBMizI6.zPeaeoUNsV0pWoNu3sbadHTh70/bRqsgRe"], ["created_at", "2015-03-01 07:57:01.763920"], ["updated_at", "2015-03-01 07:57:01.763920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:01.771649"], ["user_id", "8b4231a4-bfe8-11e4-8777-705681abff85"], ["created_at", "2015-03-01 07:57:01.772765"], ["updated_at", "2015-03-01 07:57:01.772765"], ["token", "9gxODEX-_mEWJLSYk0o6WI-tdrwbOOLzWNFGpi-Xjoc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.780051"], ["updated_at", "2015-03-01 07:57:01.780051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b4231a4-bfe8-11e4-8777-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b44a5ec-bfe8-11e4-9e8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b4231a4-bfe8-11e4-8777-705681abff85"], ["organization_id", "8b44a5ec-bfe8-11e4-9e8c-705681abff85"], ["created_at", "2015-03-01 07:57:01.783607"], ["updated_at", "2015-03-01 07:57:01.783607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/8b44a5ec-bfe8-11e4-9e8c-705681abff85" for 127.0.0.1 at 2015-02-28 23:57:01 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"8b44a5ec-bfe8-11e4-9e8c-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:01.810864' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9gxODEX-_mEWJLSYk0o6WI-tdrwbOOLzWNFGpi-Xjoc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:01.816307"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:01.817600"], ["id", "8b43a714-bfe8-11e4-93c3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b4231a4-bfe8-11e4-8777-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b4231a4-bfe8-11e4-8777-705681abff85"], ["id", "8b44a5ec-bfe8-11e4-9e8c-705681abff85"]] Completed 200 OK in 26ms (Views: 2.0ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$4uonuqieq3ZQt663bzCIZeFOnREMfOvSV8n2nvYV16s5VI94ZLWgS"], ["created_at", "2015-03-01 07:57:01.844931"], ["updated_at", "2015-03-01 07:57:01.844931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:01.846828"], ["user_id", "8b4e95ca-bfe8-11e4-86bd-705681abff85"], ["created_at", "2015-03-01 07:57:01.847705"], ["updated_at", "2015-03-01 07:57:01.847705"], ["token", "UgmyQsR1CKNWLdvBbXtC-Xbl07H-sFQN0zTYPbqYxTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.851138"], ["updated_at", "2015-03-01 07:57:01.851138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b4e95ca-bfe8-11e4-86bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b4f841c-bfe8-11e4-9e8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b4e95ca-bfe8-11e4-86bd-705681abff85"], ["organization_id", "8b4f841c-bfe8-11e4-9e8c-705681abff85"], ["created_at", "2015-03-01 07:57:01.854587"], ["updated_at", "2015-03-01 07:57:01.854587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-02-28 23:57:01 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$joAGTPQeMBji.c7bkq7wQ.sMYSH3BasXUXtOkQfAxdLtBAdWXifB."], ["created_at", "2015-03-01 07:57:01.869697"], ["updated_at", "2015-03-01 07:57:01.869697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:01.871397"], ["user_id", "8b5255ca-bfe8-11e4-be1d-705681abff85"], ["created_at", "2015-03-01 07:57:01.872150"], ["updated_at", "2015-03-01 07:57:01.872150"], ["token", "GL9gpWbmj-wBfpZVHA05n0voaih1l7XAiAcP3GNbhOE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.876193"], ["updated_at", "2015-03-01 07:57:01.876193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b5255ca-bfe8-11e4-be1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b535542-bfe8-11e4-9585-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b5255ca-bfe8-11e4-be1d-705681abff85"], ["organization_id", "8b535542-bfe8-11e4-9585-705681abff85"], ["created_at", "2015-03-01 07:57:01.879810"], ["updated_at", "2015-03-01 07:57:01.879810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-02-28 23:57:01 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$UJYl1awd.Wq8Uk3s0FQVy.YdDZ5aKBxJpJ0i6PGZ3JfjxFTXvvvqy"], ["created_at", "2015-03-01 07:57:01.892703"], ["updated_at", "2015-03-01 07:57:01.892703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:01.894850"], ["user_id", "8b55e122-bfe8-11e4-ad84-705681abff85"], ["created_at", "2015-03-01 07:57:01.895681"], ["updated_at", "2015-03-01 07:57:01.895681"], ["token", "si2XUA6WYsSWEdvr8hcAGuOCqySOYoWTjEE04gVBndk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.899311"], ["updated_at", "2015-03-01 07:57:01.899311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b55e122-bfe8-11e4-ad84-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b56dc8a-bfe8-11e4-8f4f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b55e122-bfe8-11e4-ad84-705681abff85"], ["organization_id", "8b56dc8a-bfe8-11e4-8f4f-705681abff85"], ["created_at", "2015-03-01 07:57:01.903067"], ["updated_at", "2015-03-01 07:57:01.903067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$6k3ntHloRS3K0OttasNSh.sOQyThbLvNYSl5Udcnl2oUqjFycsage"], ["created_at", "2015-03-01 07:57:01.912275"], ["updated_at", "2015-03-01 07:57:01.912275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:01.913960"], ["user_id", "8b58d454-bfe8-11e4-8ead-705681abff85"], ["created_at", "2015-03-01 07:57:01.914733"], ["updated_at", "2015-03-01 07:57:01.914733"], ["token", "VD1RxlHBKX7axqIZIhaIaPWCTqTaKKvhPxvQGCy5TS4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.925626"], ["updated_at", "2015-03-01 07:57:01.925626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b58d454-bfe8-11e4-8ead-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b5af1da-bfe8-11e4-8f8f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b58d454-bfe8-11e4-8ead-705681abff85"], ["organization_id", "8b5af1da-bfe8-11e4-8f8f-705681abff85"], ["created_at", "2015-03-01 07:57:01.930627"], ["updated_at", "2015-03-01 07:57:01.930627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$NbXAUhCQpJelQElQCVecdOnYRxcLXfbVV5S1OIt0With9Ibx9qFMa"], ["created_at", "2015-03-01 07:57:01.940377"], ["updated_at", "2015-03-01 07:57:01.940377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:01.942178"], ["user_id", "8b5d2126-bfe8-11e4-bb48-705681abff85"], ["created_at", "2015-03-01 07:57:01.942967"], ["updated_at", "2015-03-01 07:57:01.942967"], ["token", "T1EVzLFef2NnmSrXimttb5gEYAgCOOJJuFR6kQacQe4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.947119"], ["updated_at", "2015-03-01 07:57:01.947119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b5d2126-bfe8-11e4-bb48-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b5e2a9e-bfe8-11e4-8478-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b5d2126-bfe8-11e4-bb48-705681abff85"], ["organization_id", "8b5e2a9e-bfe8-11e4-8478-705681abff85"], ["created_at", "2015-03-01 07:57:01.950690"], ["updated_at", "2015-03-01 07:57:01.950690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-9" for 127.0.0.1 at 2015-02-28 23:57:01 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-9", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:01.956925' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "T1EVzLFef2NnmSrXimttb5gEYAgCOOJJuFR6kQacQe4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:01.958375"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:01.959325"], ["id", "8b5d886e-bfe8-11e4-901b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b5d2126-bfe8-11e4-bb48-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b5d2126-bfe8-11e4-bb48-705681abff85"], ["name", "org-9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8b5e2a9e-bfe8-11e4-8478-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$f68MHXEmYGegS2OKJnmmIekqvOI7Hzjf/WJWS6iZeRsTexg7Yjscq"], ["created_at", "2015-03-01 07:57:01.973429"], ["updated_at", "2015-03-01 07:57:01.973429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:01.975350"], ["user_id", "8b622b44-bfe8-11e4-9581-705681abff85"], ["created_at", "2015-03-01 07:57:01.976255"], ["updated_at", "2015-03-01 07:57:01.976255"], ["token", "BRWlATZVAMzR91k3dyyvQlh-DgfvAq8IvIADBaVPsTA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:01.979874"], ["updated_at", "2015-03-01 07:57:01.979874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b622b44-bfe8-11e4-9581-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b632f62-bfe8-11e4-8a22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b622b44-bfe8-11e4-9581-705681abff85"], ["organization_id", "8b632f62-bfe8-11e4-8a22-705681abff85"], ["created_at", "2015-03-01 07:57:01.983888"], ["updated_at", "2015-03-01 07:57:01.983888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-02-28 23:57:01 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Jl7B.x2KjZL7pR4DQ8CmruMO1ZVPKSTA6e6eSjh12npf5qiNK4znK"], ["created_at", "2015-03-01 07:57:01.998036"], ["updated_at", "2015-03-01 07:57:01.998036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:01.999933"], ["user_id", "8b65f24c-bfe8-11e4-aca2-705681abff85"], ["created_at", "2015-03-01 07:57:02.000731"], ["updated_at", "2015-03-01 07:57:02.000731"], ["token", "EUSjODY4dYD-HLpMzpQnAjQ7iYgdVJT9tE-wbfXuVFM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.004529"], ["updated_at", "2015-03-01 07:57:02.004529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b65f24c-bfe8-11e4-aca2-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b66e6e8-bfe8-11e4-9b3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b65f24c-bfe8-11e4-aca2-705681abff85"], ["organization_id", "8b66e6e8-bfe8-11e4-9b3f-705681abff85"], ["created_at", "2015-03-01 07:57:02.007844"], ["updated_at", "2015-03-01 07:57:02.007844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$RxqWrvBB9hJ2LyrMZ.AvaOxBKA9z/.up180lE3.ItqyVE.Ky8ML3a"], ["created_at", "2015-03-01 07:57:02.012552"], ["updated_at", "2015-03-01 07:57:02.012552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.018038"], ["updated_at", "2015-03-01 07:57:02.018038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b682526-bfe8-11e4-b1a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b68f4e2-bfe8-11e4-a0a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b682526-bfe8-11e4-b1a5-705681abff85"], ["organization_id", "8b68f4e2-bfe8-11e4-a0a5-705681abff85"], ["created_at", "2015-03-01 07:57:02.021631"], ["updated_at", "2015-03-01 07:57:02.021631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.026987' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EUSjODY4dYD-HLpMzpQnAjQ7iYgdVJT9tE-wbfXuVFM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.029195"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.030577"], ["id", "8b665b88-bfe8-11e4-8be8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b65f24c-bfe8-11e4-aca2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "8b65f24c-bfe8-11e4-aca2-705681abff85"]] Completed 200 OK in 10ms (Views: 2.5ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$KeaHiSop3yYW76wE5GNrXeeFL/u8PNnIFpZK5BtfWxyUQKmpFID1O"], ["created_at", "2015-03-01 07:57:02.043163"], ["updated_at", "2015-03-01 07:57:02.043163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.045522"], ["user_id", "8b6ce480-bfe8-11e4-a47d-705681abff85"], ["created_at", "2015-03-01 07:57:02.046378"], ["updated_at", "2015-03-01 07:57:02.046378"], ["token", "4GA-TGvUmSwzUpTAH-zuyUT4RUBKM6JR_VuA4zbgjPE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.050290"], ["updated_at", "2015-03-01 07:57:02.050290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b6ce480-bfe8-11e4-a47d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b6ddffc-bfe8-11e4-9c7b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b6ce480-bfe8-11e4-a47d-705681abff85"], ["organization_id", "8b6ddffc-bfe8-11e4-9c7b-705681abff85"], ["created_at", "2015-03-01 07:57:02.053943"], ["updated_at", "2015-03-01 07:57:02.053943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$8T5tsscryd.RIvD7mwNtH.5ltzEXk6CynHe6BKqacyv69SfcOXJz."], ["created_at", "2015-03-01 07:57:02.058500"], ["updated_at", "2015-03-01 07:57:02.058500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.061693"], ["updated_at", "2015-03-01 07:57:02.061693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b6f20ba-bfe8-11e4-8e52-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b6f9c8e-bfe8-11e4-afe3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b6f20ba-bfe8-11e4-8e52-705681abff85"], ["organization_id", "8b6f9c8e-bfe8-11e4-afe3-705681abff85"], ["created_at", "2015-03-01 07:57:02.065195"], ["updated_at", "2015-03-01 07:57:02.065195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$rNuOZbelLbksJUMXpXOcreCKHCxkfGW2re9oqH21uFypBbuKHgB9S"], ["created_at", "2015-03-01 07:57:02.078872"], ["updated_at", "2015-03-01 07:57:02.078872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.080758"], ["user_id", "8b724592-bfe8-11e4-a610-705681abff85"], ["created_at", "2015-03-01 07:57:02.081704"], ["updated_at", "2015-03-01 07:57:02.081704"], ["token", "5AxmDCGide1fGZQZmaQ_NsaUWThM3zTpUCrRXTKhaBY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.085468"], ["updated_at", "2015-03-01 07:57:02.085468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b724592-bfe8-11e4-a610-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b733f56-bfe8-11e4-9f66-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b724592-bfe8-11e4-a610-705681abff85"], ["organization_id", "8b733f56-bfe8-11e4-9f66-705681abff85"], ["created_at", "2015-03-01 07:57:02.088761"], ["updated_at", "2015-03-01 07:57:02.088761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/8b733f56-bfe8-11e4-9f66-705681abff85" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"8b733f56-bfe8-11e4-9f66-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.094355' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5AxmDCGide1fGZQZmaQ_NsaUWThM3zTpUCrRXTKhaBY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.095766"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.096799"], ["id", "8b72b630-bfe8-11e4-9b46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b724592-bfe8-11e4-a610-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b724592-bfe8-11e4-a610-705681abff85"], ["id", "8b733f56-bfe8-11e4-9f66-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8b733f56-bfe8-11e4-9f66-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.1ms)  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$oDs9Pcaznq5Y6e9Cl/kV6Om7RFpJRAhNr9mlo2Odf84qvvOzEJKje"], ["created_at", "2015-03-01 07:57:02.113089"], ["updated_at", "2015-03-01 07:57:02.113089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.115267"], ["user_id", "8b777bac-bfe8-11e4-ad16-705681abff85"], ["created_at", "2015-03-01 07:57:02.116552"], ["updated_at", "2015-03-01 07:57:02.116552"], ["token", "ReMGo1H5SsvhImzijhGqwdb9qc5HeaITcy-iWbnABIE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.120840"], ["updated_at", "2015-03-01 07:57:02.120840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b777bac-bfe8-11e4-ad16-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b78a6a8-bfe8-11e4-bd9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b777bac-bfe8-11e4-ad16-705681abff85"], ["organization_id", "8b78a6a8-bfe8-11e4-bd9c-705681abff85"], ["created_at", "2015-03-01 07:57:02.124488"], ["updated_at", "2015-03-01 07:57:02.124488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$2GuXPWon1FP/8XZGuSswb.H3ySuJAkBlTl2SaCIYgAoRCaqYopFqK"], ["created_at", "2015-03-01 07:57:02.138131"], ["updated_at", "2015-03-01 07:57:02.138131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.140022"], ["user_id", "8b7b4d54-bfe8-11e4-9411-705681abff85"], ["created_at", "2015-03-01 07:57:02.140832"], ["updated_at", "2015-03-01 07:57:02.140832"], ["token", "TKGvShO_K6Y_7VYC7b1xRN9hzPyZfc2hPpqSbyF_fEY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.144231"], ["updated_at", "2015-03-01 07:57:02.144231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b7b4d54-bfe8-11e4-9411-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b7c353e-bfe8-11e4-952b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b7b4d54-bfe8-11e4-9411-705681abff85"], ["organization_id", "8b7c353e-bfe8-11e4-952b-705681abff85"], ["created_at", "2015-03-01 07:57:02.147717"], ["updated_at", "2015-03-01 07:57:02.147717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-17" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-17", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.152967' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TKGvShO_K6Y_7VYC7b1xRN9hzPyZfc2hPpqSbyF_fEY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.154455"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.155564"], ["id", "8b7bb910-bfe8-11e4-98f0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b7b4d54-bfe8-11e4-9411-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b7b4d54-bfe8-11e4-9411-705681abff85"], ["name", "org-17"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$FTxsSY.iVcJv.z5iff.91eDV9ghZ3fGj86G/QbYWabwYq2TPTrbkS"], ["created_at", "2015-03-01 07:57:02.168296"], ["updated_at", "2015-03-01 07:57:02.168296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.170662"], ["user_id", "8b7ffa98-bfe8-11e4-86b4-705681abff85"], ["created_at", "2015-03-01 07:57:02.171616"], ["updated_at", "2015-03-01 07:57:02.171616"], ["token", "j8XH9R_Uasf2KwGMzKUSwdR-1aorhRaXdf_tNGR705o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.175148"], ["updated_at", "2015-03-01 07:57:02.175148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b7ffa98-bfe8-11e4-86b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b80ecc8-bfe8-11e4-b48e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b7ffa98-bfe8-11e4-86b4-705681abff85"], ["organization_id", "8b80ecc8-bfe8-11e4-b48e-705681abff85"], ["created_at", "2015-03-01 07:57:02.178369"], ["updated_at", "2015-03-01 07:57:02.178369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$K6eiBgcqJXn8FNtd9W1ite9SB4ZWJZfduhzOw3yGlNcQf7CQ5Za.6"], ["created_at", "2015-03-01 07:57:02.193206"], ["updated_at", "2015-03-01 07:57:02.193206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.195349"], ["user_id", "8b83b494-bfe8-11e4-9f16-705681abff85"], ["created_at", "2015-03-01 07:57:02.196427"], ["updated_at", "2015-03-01 07:57:02.196427"], ["token", "smh5R2Zo9sSuJ2cKbrcP9h2yLeTHywTCpCHyIEl5-y4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.200208"], ["updated_at", "2015-03-01 07:57:02.200208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b83b494-bfe8-11e4-9f16-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b84bf42-bfe8-11e4-8fd8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b83b494-bfe8-11e4-9f16-705681abff85"], ["organization_id", "8b84bf42-bfe8-11e4-8fd8-705681abff85"], ["created_at", "2015-03-01 07:57:02.204013"], ["updated_at", "2015-03-01 07:57:02.204013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$e7VreRrMUTgHKbONOSFHm.comIczW3R9TJiyE5ZSIiS.g3qQKieZ2"], ["created_at", "2015-03-01 07:57:02.216982"], ["updated_at", "2015-03-01 07:57:02.216982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.218602"], ["user_id", "8b8752b6-bfe8-11e4-9b8c-705681abff85"], ["created_at", "2015-03-01 07:57:02.219667"], ["updated_at", "2015-03-01 07:57:02.219667"], ["token", "KMQEHGUtIo7ySLcTY32a5by6ddIpODbPXn6x8tHCzMc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.224019"], ["updated_at", "2015-03-01 07:57:02.224019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b8752b6-bfe8-11e4-9b8c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b8867d2-bfe8-11e4-be47-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b8752b6-bfe8-11e4-9b8c-705681abff85"], ["organization_id", "8b8867d2-bfe8-11e4-be47-705681abff85"], ["created_at", "2015-03-01 07:57:02.227874"], ["updated_at", "2015-03-01 07:57:02.227874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8b8867d2-bfe8-11e4-be47-705681abff85" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"8b8867d2-bfe8-11e4-be47-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.234927' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KMQEHGUtIo7ySLcTY32a5by6ddIpODbPXn6x8tHCzMc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.236798"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.237822"], ["id", "8b87caca-bfe8-11e4-8a1c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b8752b6-bfe8-11e4-9b8c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b8752b6-bfe8-11e4-9b8c-705681abff85"], ["id", "8b8867d2-bfe8-11e4-be47-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8b8867d2-bfe8-11e4-be47-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$HsYJgFmUBihAgxCHeirYpuZZDJo96qv4B/XyS5k8ECLPBKQOIaARC"], ["created_at", "2015-03-01 07:57:02.254444"], ["updated_at", "2015-03-01 07:57:02.254444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.256148"], ["user_id", "8b8d0bb6-bfe8-11e4-84dc-705681abff85"], ["created_at", "2015-03-01 07:57:02.256963"], ["updated_at", "2015-03-01 07:57:02.256963"], ["token", "QQY3te3Ggt4h3pXFZXLmj4CnsxnT2k7G0AFRMs-hB6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.260522"], ["updated_at", "2015-03-01 07:57:02.260522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b8d0bb6-bfe8-11e4-84dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b8df382-bfe8-11e4-a823-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b8d0bb6-bfe8-11e4-84dc-705681abff85"], ["organization_id", "8b8df382-bfe8-11e4-a823-705681abff85"], ["created_at", "2015-03-01 07:57:02.263793"], ["updated_at", "2015-03-01 07:57:02.263793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8b8df382-bfe8-11e4-a823-705681abff85" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"8b8df382-bfe8-11e4-a823-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.269961' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QQY3te3Ggt4h3pXFZXLmj4CnsxnT2k7G0AFRMs-hB6A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.271512"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.272528"], ["id", "8b8d70a6-bfe8-11e4-a81e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b8d0bb6-bfe8-11e4-84dc-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b8d0bb6-bfe8-11e4-84dc-705681abff85"], ["id", "8b8df382-bfe8-11e4-a823-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8b8df382-bfe8-11e4-a823-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:57:02.278851"], ["id", "8b8df382-bfe8-11e4-a823-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$zxen/gKkQ0mZNxPFriEFB.Ww3wZvbZvyKm8zN2wOqyIf8v957ZHS."], ["created_at", "2015-03-01 07:57:02.287741"], ["updated_at", "2015-03-01 07:57:02.287741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.289530"], ["user_id", "8b92222c-bfe8-11e4-a1c5-705681abff85"], ["created_at", "2015-03-01 07:57:02.290361"], ["updated_at", "2015-03-01 07:57:02.290361"], ["token", "gqipTXZIQ9rgOcHjZllsCwCLDPqWqq02QCZovdKiJwI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.293964"], ["updated_at", "2015-03-01 07:57:02.293964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b92222c-bfe8-11e4-a1c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b930dea-bfe8-11e4-9e0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b92222c-bfe8-11e4-a1c5-705681abff85"], ["organization_id", "8b930dea-bfe8-11e4-9e0d-705681abff85"], ["created_at", "2015-03-01 07:57:02.297258"], ["updated_at", "2015-03-01 07:57:02.297258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$/IQ9BqHlOlAv5KMLonwAbeZPP.o6E6dynP5oiIWF0GYmtFEIPFH.C"], ["created_at", "2015-03-01 07:57:02.311910"], ["updated_at", "2015-03-01 07:57:02.311910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.313638"], ["user_id", "8b95d002-bfe8-11e4-8eb8-705681abff85"], ["created_at", "2015-03-01 07:57:02.314425"], ["updated_at", "2015-03-01 07:57:02.314425"], ["token", "8Uyv7oTQ4VO929FxDcb1ghDvAfhY9IRJSTue2l_BNa4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (1.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.318874"], ["updated_at", "2015-03-01 07:57:02.318874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b95d002-bfe8-11e4-8eb8-705681abff85' AND "clubhouse_memberships"."organization_id" = '8b973424-bfe8-11e4-9bcc-705681abff85') LIMIT 1 SQL (2.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b95d002-bfe8-11e4-8eb8-705681abff85"], ["organization_id", "8b973424-bfe8-11e4-9bcc-705681abff85"], ["created_at", "2015-03-01 07:57:02.329668"], ["updated_at", "2015-03-01 07:57:02.329668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.340022' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8Uyv7oTQ4VO929FxDcb1ghDvAfhY9IRJSTue2l_BNa4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.342090"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.343399"], ["id", "8b9641b8-bfe8-11e4-b475-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b95d002-bfe8-11e4-8eb8-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b95d002-bfe8-11e4-8eb8-705681abff85"], ["name", "org-23"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8b973424-bfe8-11e4-9bcc-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$Sks9eCcufwp4GKaXjIttUOnzEn6a4cnK/FHhINnTlq7nLSLq/.5Di"], ["created_at", "2015-03-01 07:57:02.363594"], ["updated_at", "2015-03-01 07:57:02.363594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.366133"], ["user_id", "8b9dbf56-bfe8-11e4-bfb0-705681abff85"], ["created_at", "2015-03-01 07:57:02.367035"], ["updated_at", "2015-03-01 07:57:02.367035"], ["token", "npY1eEufxEnhfFZNwYyTVcvOktJa91_NJg5pQmHjke0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (56.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.428145"], ["updated_at", "2015-03-01 07:57:02.428145"]]  (1.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b9dbf56-bfe8-11e4-bfb0-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ba7d950-bfe8-11e4-b18b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b9dbf56-bfe8-11e4-bfb0-705681abff85"], ["organization_id", "8ba7d950-bfe8-11e4-b18b-705681abff85"], ["created_at", "2015-03-01 07:57:02.440632"], ["updated_at", "2015-03-01 07:57:02.440632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.447634' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "npY1eEufxEnhfFZNwYyTVcvOktJa91_NJg5pQmHjke0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.449813"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.450889"], ["id", "8b9e47be-bfe8-11e4-bcf0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b9dbf56-bfe8-11e4-bfb0-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8b9dbf56-bfe8-11e4-bfb0-705681abff85"], ["name", "org-24"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8ba7d950-bfe8-11e4-b18b-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 07:57:02.461356"], ["id", "8ba7d950-bfe8-11e4-b18b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$FqXeg7x8gjQV7k0nYBNSvetzCTD6iY60snj.oEJ0V5CKbpG6dGdNy"], ["created_at", "2015-03-01 07:57:02.472414"], ["updated_at", "2015-03-01 07:57:02.472414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.474343"], ["user_id", "8bae4f1a-bfe8-11e4-a7ca-705681abff85"], ["created_at", "2015-03-01 07:57:02.475714"], ["updated_at", "2015-03-01 07:57:02.475714"], ["token", "L3BnE4lgMKI7CsfPlKlnUlkL3ZhyNe10_ffR9VbX9Bc"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.483639"], ["updated_at", "2015-03-01 07:57:02.483639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bae4f1a-bfe8-11e4-a7ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bb00418-bfe8-11e4-bb75-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bae4f1a-bfe8-11e4-a7ca-705681abff85"], ["organization_id", "8bb00418-bfe8-11e4-bb75-705681abff85"], ["created_at", "2015-03-01 07:57:02.489166"], ["updated_at", "2015-03-01 07:57:02.489166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$JDpQ.vzpxy0507d9962yHutQNMf5pRC.CI5ZnlZxZHaHBO1v0Lzfi"], ["created_at", "2015-03-01 07:57:02.508063"], ["updated_at", "2015-03-01 07:57:02.508063"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.511218"], ["user_id", "8bb3bf72-bfe8-11e4-a42e-705681abff85"], ["created_at", "2015-03-01 07:57:02.513938"], ["updated_at", "2015-03-01 07:57:02.513938"], ["token", "2qMI6YNg14h3DJh6QTIO5CY7n7l-JfMc_re0hf3RZ1k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.523883"], ["updated_at", "2015-03-01 07:57:02.523883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bb3bf72-bfe8-11e4-a42e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bb63a40-bfe8-11e4-83ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bb3bf72-bfe8-11e4-a42e-705681abff85"], ["organization_id", "8bb63a40-bfe8-11e4-83ae-705681abff85"], ["created_at", "2015-03-01 07:57:02.528481"], ["updated_at", "2015-03-01 07:57:02.528481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.533694' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2qMI6YNg14h3DJh6QTIO5CY7n7l-JfMc_re0hf3RZ1k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.535282"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.536284"], ["id", "8bb523e4-bfe8-11e4-a78b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bb3bf72-bfe8-11e4-a42e-705681abff85"]]  (1.0ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$m5gPSB0/4iasyjbGLa9gqurAGEZ.zxnYJs0rtuKkNDcMGLCQzggGm"], ["created_at", "2015-03-01 07:57:02.555302"], ["updated_at", "2015-03-01 07:57:02.555302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.557368"], ["user_id", "8bbafdd2-bfe8-11e4-be09-705681abff85"], ["created_at", "2015-03-01 07:57:02.558212"], ["updated_at", "2015-03-01 07:57:02.558212"], ["token", "mKd8k6druIxDTluEsxAsOeuLvSkClYG5qYNzYDiJYHw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.562276"], ["updated_at", "2015-03-01 07:57:02.562276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bbafdd2-bfe8-11e4-be09-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bbc0272-bfe8-11e4-a482-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bbafdd2-bfe8-11e4-be09-705681abff85"], ["organization_id", "8bbc0272-bfe8-11e4-a482-705681abff85"], ["created_at", "2015-03-01 07:57:02.566350"], ["updated_at", "2015-03-01 07:57:02.566350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.572230' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mKd8k6druIxDTluEsxAsOeuLvSkClYG5qYNzYDiJYHw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.573786"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.574781"], ["id", "8bbb6bc8-bfe8-11e4-acab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bbafdd2-bfe8-11e4-be09-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.579588"], ["updated_at", "2015-03-01 07:57:02.579588"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8bbeb7d8-bfe8-11e4-9639-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bbafdd2-bfe8-11e4-be09-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bbeb7d8-bfe8-11e4-9639-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bbafdd2-bfe8-11e4-be09-705681abff85"], ["admin", "t"], ["organization_id", "8bbeb7d8-bfe8-11e4-9639-705681abff85"], ["created_at", "2015-03-01 07:57:02.588899"], ["updated_at", "2015-03-01 07:57:02.588899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.598075"], ["updated_at", "2015-03-01 07:57:02.598075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.614848"], ["updated_at", "2015-03-01 07:57:02.614848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.619391"], ["updated_at", "2015-03-01 07:57:02.619391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.652915"], ["updated_at", "2015-03-01 07:57:02.652915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.658720"], ["updated_at", "2015-03-01 07:57:02.658720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "8bcad63a-bfe8-11e4-81d8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$dM8NihbrTTunK9Mnu3jKS.wWjSNgVQOAIjx5W/tcnPXSN.cvYL8kG"], ["created_at", "2015-03-01 07:57:02.669535"], ["updated_at", "2015-03-01 07:57:02.669535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$/WmPjbOJfySqioe5AmAnFO/yVhIgpcOMu3RZKqaXdzK5bbjEu8sKC"], ["created_at", "2015-03-01 07:57:02.674314"], ["updated_at", "2015-03-01 07:57:02.674314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.676148"], ["user_id", "8bcc6414-bfe8-11e4-b8d5-705681abff85"], ["created_at", "2015-03-01 07:57:02.676930"], ["updated_at", "2015-03-01 07:57:02.676930"], ["token", "uuXB7AZIs5I5k2EcvG7UJPyovqeosGEKX6PbQvbT_k4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.685089"], ["updated_at", "2015-03-01 07:57:02.685089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bcc6414-bfe8-11e4-b8d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bced2da-bfe8-11e4-a84f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bcc6414-bfe8-11e4-b8d5-705681abff85"], ["organization_id", "8bced2da-bfe8-11e4-a84f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:02.689410"], ["updated_at", "2015-03-01 07:57:02.689410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bcd1922-bfe8-11e4-a3c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bced2da-bfe8-11e4-a84f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bcd1922-bfe8-11e4-a3c6-705681abff85"], ["organization_id", "8bced2da-bfe8-11e4-a84f-705681abff85"], ["created_at", "2015-03-01 07:57:02.692619"], ["updated_at", "2015-03-01 07:57:02.692619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/8bcf6c36-bfe8-11e4-9c9d-705681abff85" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"8bcf6c36-bfe8-11e4-9c9d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.704723' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uuXB7AZIs5I5k2EcvG7UJPyovqeosGEKX6PbQvbT_k4"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.706185"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.707670"], ["id", "8bcd8c90-bfe8-11e4-ae1f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bcc6414-bfe8-11e4-b8d5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8bcc6414-bfe8-11e4-b8d5-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8bcc6414-bfe8-11e4-b8d5-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "8bcc6414-bfe8-11e4-b8d5-705681abff85"], ["id", "8bcf6c36-bfe8-11e4-9c9d-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8bced2da-bfe8-11e4-a84f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bcc6414-bfe8-11e4-b8d5-705681abff85"]] Completed 200 OK in 15ms (Views: 5.0ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$TUxshLDz/G9rhE9MzFerCu7Eu9QZGpo1StKycagKf2PbGMgUVBZni"], ["created_at", "2015-03-01 07:57:02.725727"], ["updated_at", "2015-03-01 07:57:02.725727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$4gMDa4V6ONGvALF8VnO3D.1Jz.Zm3mTpudoRVe8WJJF.OWdy6RSna"], ["created_at", "2015-03-01 07:57:02.730191"], ["updated_at", "2015-03-01 07:57:02.730191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.731866"], ["user_id", "8bd4f598-bfe8-11e4-a1a0-705681abff85"], ["created_at", "2015-03-01 07:57:02.732803"], ["updated_at", "2015-03-01 07:57:02.732803"], ["token", "F7QkXZNT0iaNoPBdKXaxnIybkG0cInpL2nfnGRZBJSI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.736815"], ["updated_at", "2015-03-01 07:57:02.736815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bd4f598-bfe8-11e4-a1a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bd6a154-bfe8-11e4-9be2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bd4f598-bfe8-11e4-a1a0-705681abff85"], ["organization_id", "8bd6a154-bfe8-11e4-9be2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:02.740076"], ["updated_at", "2015-03-01 07:57:02.740076"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bd5a24a-bfe8-11e4-976c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bd6a154-bfe8-11e4-9be2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bd5a24a-bfe8-11e4-976c-705681abff85"], ["organization_id", "8bd6a154-bfe8-11e4-9be2-705681abff85"], ["created_at", "2015-03-01 07:57:02.743323"], ["updated_at", "2015-03-01 07:57:02.743323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$qudO3MXCisIp1.dK3YtuHeADvqQYKVJEIlvA79KpB1HqQIYXqhG8W"], ["created_at", "2015-03-01 07:57:02.758665"], ["updated_at", "2015-03-01 07:57:02.758665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$OlvhP9FoULVuBf.qe2I6ZeRDLKbMhTMkCOr4EbhSZzSENYcxPYA0u"], ["created_at", "2015-03-01 07:57:02.763159"], ["updated_at", "2015-03-01 07:57:02.763159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.764769"], ["user_id", "8bd9fa48-bfe8-11e4-8b65-705681abff85"], ["created_at", "2015-03-01 07:57:02.765730"], ["updated_at", "2015-03-01 07:57:02.765730"], ["token", "OQe4ZzZYDoy8QthqLjRq8c-tsVAch3Hg8FciGkcQXwA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.769961"], ["updated_at", "2015-03-01 07:57:02.769961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bd9fa48-bfe8-11e4-8b65-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bdbb252-bfe8-11e4-87c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bd9fa48-bfe8-11e4-8b65-705681abff85"], ["organization_id", "8bdbb252-bfe8-11e4-87c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:02.773692"], ["updated_at", "2015-03-01 07:57:02.773692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bdaa556-bfe8-11e4-abc1-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bdbb252-bfe8-11e4-87c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bdaa556-bfe8-11e4-abc1-705681abff85"], ["organization_id", "8bdbb252-bfe8-11e4-87c6-705681abff85"], ["created_at", "2015-03-01 07:57:02.776998"], ["updated_at", "2015-03-01 07:57:02.776998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.782375' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OQe4ZzZYDoy8QthqLjRq8c-tsVAch3Hg8FciGkcQXwA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.783972"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.785367"], ["id", "8bdb2120-bfe8-11e4-961f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bd9fa48-bfe8-11e4-8b65-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8bd9fa48-bfe8-11e4-8b65-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bd9fa48-bfe8-11e4-8b65-705681abff85' LIMIT 1 [["organization_id", "8bdbb252-bfe8-11e4-87c6-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "8bdbb252-bfe8-11e4-87c6-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('8bd9fa48-bfe8-11e4-8b65-705681abff85', '8bdaa556-bfe8-11e4-abc1-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('8bdbb252-bfe8-11e4-87c6-705681abff85') Completed 200 OK in 21ms (Views: 9.9ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$FdUapgKXDeNVMB2Web/W/OezBdI6oCvScVCmWPOjVNbQiWfhb1ima"], ["created_at", "2015-03-01 07:57:02.810109"], ["updated_at", "2015-03-01 07:57:02.810109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$dWUP7iHmsZOWKhXiTNdRc.9vH6adi84jRg5N5i5r/K6Falt4249bK"], ["created_at", "2015-03-01 07:57:02.815094"], ["updated_at", "2015-03-01 07:57:02.815094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.816877"], ["user_id", "8be1db3c-bfe8-11e4-a802-705681abff85"], ["created_at", "2015-03-01 07:57:02.818160"], ["updated_at", "2015-03-01 07:57:02.818160"], ["token", "ff4p3ne1zuCPIshZgFtH7CrJdqS29vSBGU6n0WPYBZw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.822222"], ["updated_at", "2015-03-01 07:57:02.822222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8be1db3c-bfe8-11e4-a802-705681abff85' AND "clubhouse_memberships"."organization_id" = '8be3c0fa-bfe8-11e4-a438-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8be1db3c-bfe8-11e4-a802-705681abff85"], ["organization_id", "8be3c0fa-bfe8-11e4-a438-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:02.826301"], ["updated_at", "2015-03-01 07:57:02.826301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8be29748-bfe8-11e4-b996-705681abff85' AND "clubhouse_memberships"."organization_id" = '8be3c0fa-bfe8-11e4-a438-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8be29748-bfe8-11e4-b996-705681abff85"], ["organization_id", "8be3c0fa-bfe8-11e4-a438-705681abff85"], ["created_at", "2015-03-01 07:57:02.829548"], ["updated_at", "2015-03-01 07:57:02.829548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.834956' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ff4p3ne1zuCPIshZgFtH7CrJdqS29vSBGU6n0WPYBZw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.836830"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.838023"], ["id", "8be31fec-bfe8-11e4-9fa3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8be1db3c-bfe8-11e4-a802-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8be1db3c-bfe8-11e4-a802-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8be1db3c-bfe8-11e4-a802-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "8be1db3c-bfe8-11e4-a802-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('8be1db3c-bfe8-11e4-a802-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('8be3c0fa-bfe8-11e4-a438-705681abff85') Completed 200 OK in 13ms (Views: 3.6ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$VNn4a57DKt3IzhinPbj1CeNQG949pTclYP.X0Ho2JBu4tJWgZNxZm"], ["created_at", "2015-03-01 07:57:02.854285"], ["updated_at", "2015-03-01 07:57:02.854285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$RQe.mx2uA1ZMEa2R/55wbu3XwxrgHQWK2BOU4jQPW7w8t7cCAZZee"], ["created_at", "2015-03-01 07:57:02.858877"], ["updated_at", "2015-03-01 07:57:02.858877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.860371"], ["user_id", "8be8918e-bfe8-11e4-b5e7-705681abff85"], ["created_at", "2015-03-01 07:57:02.861162"], ["updated_at", "2015-03-01 07:57:02.861162"], ["token", "eUh9BGqWTbAyjV5QYrf3_QfeEa5Mf_SK6VRORObMJOI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.865009"], ["updated_at", "2015-03-01 07:57:02.865009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8be8918e-bfe8-11e4-b5e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bea2f94-bfe8-11e4-84cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8be8918e-bfe8-11e4-b5e7-705681abff85"], ["organization_id", "8bea2f94-bfe8-11e4-84cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:02.868662"], ["updated_at", "2015-03-01 07:57:02.868662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8be940ca-bfe8-11e4-bd18-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bea2f94-bfe8-11e4-84cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8be940ca-bfe8-11e4-bd18-705681abff85"], ["organization_id", "8bea2f94-bfe8-11e4-84cc-705681abff85"], ["created_at", "2015-03-01 07:57:02.872648"], ["updated_at", "2015-03-01 07:57:02.872648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$PYPMoUWjvYfsLPrY7HD7a.Is/MiNph/RasnSMIutx35NGykgzG6TK"], ["created_at", "2015-03-01 07:57:02.886573"], ["updated_at", "2015-03-01 07:57:02.886573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$B4zzXOv/ndafztvwjVmvteKdR3SYJ09HscwH0TbGYkbwWvyulprhS"], ["created_at", "2015-03-01 07:57:02.891694"], ["updated_at", "2015-03-01 07:57:02.891694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.893876"], ["user_id", "8bed8856-bfe8-11e4-b0f3-705681abff85"], ["created_at", "2015-03-01 07:57:02.894742"], ["updated_at", "2015-03-01 07:57:02.894742"], ["token", "uNRJaTnFBTSOwB9AVLkenAVAYS0bYvRbXe1SraU3X0g"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.898409"], ["updated_at", "2015-03-01 07:57:02.898409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bed8856-bfe8-11e4-b0f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bef493e-bfe8-11e4-92f0-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bed8856-bfe8-11e4-b0f3-705681abff85"], ["organization_id", "8bef493e-bfe8-11e4-92f0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:02.902264"], ["updated_at", "2015-03-01 07:57:02.902264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bee4c3c-bfe8-11e4-a43d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bef493e-bfe8-11e4-92f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bee4c3c-bfe8-11e4-a43d-705681abff85"], ["organization_id", "8bef493e-bfe8-11e4-92f0-705681abff85"], ["created_at", "2015-03-01 07:57:02.907140"], ["updated_at", "2015-03-01 07:57:02.907140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/8bf00c84-bfe8-11e4-b85a-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8bf00c84-bfe8-11e4-b85a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.912812' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uNRJaTnFBTSOwB9AVLkenAVAYS0bYvRbXe1SraU3X0g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.914260"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.915268"], ["id", "8beec4c8-bfe8-11e4-bffe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bed8856-bfe8-11e4-b0f3-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8bed8856-bfe8-11e4-b0f3-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bed8856-bfe8-11e4-b0f3-705681abff85' LIMIT 1 [["organization_id", "8bef493e-bfe8-11e4-92f0-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8bef493e-bfe8-11e4-92f0-705681abff85"], ["id", "8bf00c84-bfe8-11e4-b85a-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bed8856-bfe8-11e4-b0f3-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$vOBDHXxJcbY5KGMX3DAA4uvnfr7e4hUVTdD05UuWUMhWE7rQiPDdS"], ["created_at", "2015-03-01 07:57:02.930659"], ["updated_at", "2015-03-01 07:57:02.930659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$AB6BZEuakWlmYshg2ecm4uk3U1wLuAF5iDWMTD5NpEudMNkwaKfMu"], ["created_at", "2015-03-01 07:57:02.935287"], ["updated_at", "2015-03-01 07:57:02.935287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.937200"], ["user_id", "8bf43958-bfe8-11e4-8394-705681abff85"], ["created_at", "2015-03-01 07:57:02.938021"], ["updated_at", "2015-03-01 07:57:02.938021"], ["token", "RzbNIO524oZcuPk5uBrK8NaP1Q5tMcB1rWGQBInYPOk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.941864"], ["updated_at", "2015-03-01 07:57:02.941864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bf43958-bfe8-11e4-8394-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bf5eabe-bfe8-11e4-ac09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bf43958-bfe8-11e4-8394-705681abff85"], ["organization_id", "8bf5eabe-bfe8-11e4-ac09-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:02.945180"], ["updated_at", "2015-03-01 07:57:02.945180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bf4ed4e-bfe8-11e4-acfa-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bf5eabe-bfe8-11e4-ac09-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bf4ed4e-bfe8-11e4-acfa-705681abff85"], ["organization_id", "8bf5eabe-bfe8-11e4-ac09-705681abff85"], ["created_at", "2015-03-01 07:57:02.948635"], ["updated_at", "2015-03-01 07:57:02.948635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/8bf6f4fe-bfe8-11e4-92eb-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:57:02 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8bf6f4fe-bfe8-11e4-92eb-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:02.954442' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RzbNIO524oZcuPk5uBrK8NaP1Q5tMcB1rWGQBInYPOk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:02.955935"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:02.956905"], ["id", "8bf5659e-bfe8-11e4-a581-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bf43958-bfe8-11e4-8394-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8bf43958-bfe8-11e4-8394-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bf43958-bfe8-11e4-8394-705681abff85' LIMIT 1 [["organization_id", "8bf5eabe-bfe8-11e4-ac09-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8bf5eabe-bfe8-11e4-ac09-705681abff85"], ["id", "8bf6f4fe-bfe8-11e4-92eb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bf4ed4e-bfe8-11e4-acfa-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "8bf6f4fe-bfe8-11e4-92eb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 21ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$1YMyJd1TItnIG8iu/.WFsughs0bO963NO1Id0z208O9UTzR5R4jVi"], ["created_at", "2015-03-01 07:57:02.981038"], ["updated_at", "2015-03-01 07:57:02.981038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$.1lLb5JARbckQc4Kcg5Z3eANp0OQFPg8TmPcMwkSzArtdShYEskTW"], ["created_at", "2015-03-01 07:57:02.985734"], ["updated_at", "2015-03-01 07:57:02.985734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:02.987328"], ["user_id", "8bfbeb12-bfe8-11e4-8f8b-705681abff85"], ["created_at", "2015-03-01 07:57:02.988116"], ["updated_at", "2015-03-01 07:57:02.988116"], ["token", "QbF1sNjCho0F1ftDOsMa04oI1sDTXeheAqONJThKj7w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:02.991789"], ["updated_at", "2015-03-01 07:57:02.991789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bfbeb12-bfe8-11e4-8f8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bfd89cc-bfe8-11e4-834d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bfbeb12-bfe8-11e4-8f8b-705681abff85"], ["organization_id", "8bfd89cc-bfe8-11e4-834d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:02.995019"], ["updated_at", "2015-03-01 07:57:02.995019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bfc9dc8-bfe8-11e4-8bdf-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bfd89cc-bfe8-11e4-834d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bfc9dc8-bfe8-11e4-8bdf-705681abff85"], ["organization_id", "8bfd89cc-bfe8-11e4-834d-705681abff85"], ["created_at", "2015-03-01 07:57:02.998598"], ["updated_at", "2015-03-01 07:57:02.998598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/8bfe9416-bfe8-11e4-aeee-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"8bfe9416-bfe8-11e4-aeee-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.003729' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QbF1sNjCho0F1ftDOsMa04oI1sDTXeheAqONJThKj7w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.005835"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.007501"], ["id", "8bfd01b4-bfe8-11e4-91ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bfbeb12-bfe8-11e4-8f8b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8bfbeb12-bfe8-11e4-8f8b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bfbeb12-bfe8-11e4-8f8b-705681abff85' LIMIT 1 [["organization_id", "8bfd89cc-bfe8-11e4-834d-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8bfd89cc-bfe8-11e4-834d-705681abff85"], ["id", "8bfe9416-bfe8-11e4-aeee-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8bfd89cc-bfe8-11e4-834d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bfc9dc8-bfe8-11e4-8bdf-705681abff85"]] Completed 200 OK in 17ms (Views: 3.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$LEAj/di8yY.p1k9ZmNh0duI5uZmdZPhOS40M3zA.dkXrhOelNqj1K"], ["created_at", "2015-03-01 07:57:03.027775"], ["updated_at", "2015-03-01 07:57:03.027775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$ggif0ygnZ75RWN.ErAb9q.yx0VL11gQIapIApptQGPvyAcuhewIJC"], ["created_at", "2015-03-01 07:57:03.032901"], ["updated_at", "2015-03-01 07:57:03.032901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.035462"], ["user_id", "8c0311a8-bfe8-11e4-a9ff-705681abff85"], ["created_at", "2015-03-01 07:57:03.037160"], ["updated_at", "2015-03-01 07:57:03.037160"], ["token", "rsxSyl57leC78G7caettWncqUy2-IeFszBuBs6zZJp8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.040854"], ["updated_at", "2015-03-01 07:57:03.040854"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c0311a8-bfe8-11e4-a9ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c050aa8-bfe8-11e4-918a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c0311a8-bfe8-11e4-a9ff-705681abff85"], ["organization_id", "8c050aa8-bfe8-11e4-918a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.044584"], ["updated_at", "2015-03-01 07:57:03.044584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c03ef56-bfe8-11e4-bab7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c050aa8-bfe8-11e4-918a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c03ef56-bfe8-11e4-bab7-705681abff85"], ["organization_id", "8c050aa8-bfe8-11e4-918a-705681abff85"], ["created_at", "2015-03-01 07:57:03.047928"], ["updated_at", "2015-03-01 07:57:03.047928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$cUzvsBxhboU6nVHGAJyJ6uo8vlfGtHsTlVYtcaHdX7FN4wSV1ymfW"], ["created_at", "2015-03-01 07:57:03.062607"], ["updated_at", "2015-03-01 07:57:03.062607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$/PO3F.hjydHD9xpthITzdeaaaCiSLUZ5Kpben6Pfn1W.Q7kzXL50."], ["created_at", "2015-03-01 07:57:03.067620"], ["updated_at", "2015-03-01 07:57:03.067620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.069473"], ["user_id", "8c085b40-bfe8-11e4-bb0d-705681abff85"], ["created_at", "2015-03-01 07:57:03.070391"], ["updated_at", "2015-03-01 07:57:03.070391"], ["token", "5mhO71b8PhuDhuTguIRc8oNh64vyix7phUQBs_WxFyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.074337"], ["updated_at", "2015-03-01 07:57:03.074337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c085b40-bfe8-11e4-bb0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c0a209c-bfe8-11e4-9adf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c085b40-bfe8-11e4-bb0d-705681abff85"], ["organization_id", "8c0a209c-bfe8-11e4-9adf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.078004"], ["updated_at", "2015-03-01 07:57:03.078004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c09230e-bfe8-11e4-9fb1-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c0a209c-bfe8-11e4-9adf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c09230e-bfe8-11e4-9fb1-705681abff85"], ["organization_id", "8c0a209c-bfe8-11e4-9adf-705681abff85"], ["created_at", "2015-03-01 07:57:03.081511"], ["updated_at", "2015-03-01 07:57:03.081511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$sZN8MmJq9UwCXJzg6njB8uHkIKHhKz.BOmg3uTOtui71v.YNBvi3O"], ["created_at", "2015-03-01 07:57:03.099041"], ["updated_at", "2015-03-01 07:57:03.099041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$1MQ4uYicUtd.yKdaCmX/v.UbIdp69QIAhpUoWP9UfC1.LzNqikGgm"], ["created_at", "2015-03-01 07:57:03.104688"], ["updated_at", "2015-03-01 07:57:03.104688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.106789"], ["user_id", "8c0df000-bfe8-11e4-94d7-705681abff85"], ["created_at", "2015-03-01 07:57:03.107689"], ["updated_at", "2015-03-01 07:57:03.107689"], ["token", "aY5ao-Z8NNWFjUqkkiv7Rh_uTG4i1RYC2eGeAy5LkQw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.112420"], ["updated_at", "2015-03-01 07:57:03.112420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c0df000-bfe8-11e4-94d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c10160a-bfe8-11e4-b8e9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c0df000-bfe8-11e4-94d7-705681abff85"], ["organization_id", "8c10160a-bfe8-11e4-b8e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.118140"], ["updated_at", "2015-03-01 07:57:03.118140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c0ec610-bfe8-11e4-bee8-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c10160a-bfe8-11e4-b8e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c0ec610-bfe8-11e4-bee8-705681abff85"], ["organization_id", "8c10160a-bfe8-11e4-b8e9-705681abff85"], ["created_at", "2015-03-01 07:57:03.121690"], ["updated_at", "2015-03-01 07:57:03.121690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/8c10d612-bfe8-11e4-8e28-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"8c10d612-bfe8-11e4-8e28-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.127910' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aY5ao-Z8NNWFjUqkkiv7Rh_uTG4i1RYC2eGeAy5LkQw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.129798"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.131330"], ["id", "8c0f594a-bfe8-11e4-b082-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c0df000-bfe8-11e4-94d7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c0df000-bfe8-11e4-94d7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c0df000-bfe8-11e4-94d7-705681abff85' LIMIT 1 [["organization_id", "8c10160a-bfe8-11e4-b8e9-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8c10160a-bfe8-11e4-b8e9-705681abff85"], ["id", "8c10d612-bfe8-11e4-8e28-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c0df000-bfe8-11e4-94d7-705681abff85"]] Completed 500 Internal Server Error in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$.I8/e/cUGzNESvCpMk8tvegGfRZotNIsLdNx785S7mnwqO9CmFAne"], ["created_at", "2015-03-01 07:57:03.150050"], ["updated_at", "2015-03-01 07:57:03.150050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$EPdcEfNOmCpLm2U3MTuS1OroqvubfQf5o19QV3gTEp3RC8/hRFF7K"], ["created_at", "2015-03-01 07:57:03.155033"], ["updated_at", "2015-03-01 07:57:03.155033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.156701"], ["user_id", "8c15c2c6-bfe8-11e4-8527-705681abff85"], ["created_at", "2015-03-01 07:57:03.157668"], ["updated_at", "2015-03-01 07:57:03.157668"], ["token", "zym96DPKsQKyhhBMWUoFCaVQSer7NTzkRptNmcnrcQ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.161547"], ["updated_at", "2015-03-01 07:57:03.161547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c15c2c6-bfe8-11e4-8527-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c177382-bfe8-11e4-8c1d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c15c2c6-bfe8-11e4-8527-705681abff85"], ["organization_id", "8c177382-bfe8-11e4-8c1d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.165103"], ["updated_at", "2015-03-01 07:57:03.165103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c167504-bfe8-11e4-9428-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c177382-bfe8-11e4-8c1d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c167504-bfe8-11e4-9428-705681abff85"], ["organization_id", "8c177382-bfe8-11e4-8c1d-705681abff85"], ["created_at", "2015-03-01 07:57:03.169262"], ["updated_at", "2015-03-01 07:57:03.169262"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/8c18a45a-bfe8-11e4-a431-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"8c18a45a-bfe8-11e4-a431-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.175180' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zym96DPKsQKyhhBMWUoFCaVQSer7NTzkRptNmcnrcQ8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.176717"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.177715"], ["id", "8c16e5fc-bfe8-11e4-97c6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c15c2c6-bfe8-11e4-8527-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c15c2c6-bfe8-11e4-8527-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c15c2c6-bfe8-11e4-8527-705681abff85' LIMIT 1 [["organization_id", "8c177382-bfe8-11e4-8c1d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8c177382-bfe8-11e4-8c1d-705681abff85"], ["id", "8c18a45a-bfe8-11e4-a431-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c167504-bfe8-11e4-9428-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c177382-bfe8-11e4-8c1d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c167504-bfe8-11e4-9428-705681abff85' AND "clubhouse_memberships"."id" != '8c18a45a-bfe8-11e4-a431-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c177382-bfe8-11e4-8c1d-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:57:03.187936"], ["id", "8c18a45a-bfe8-11e4-a431-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 1.4ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$GgWtPBZCKOfGXo0781sA2uDKiUXq2js.A7olp.CLk/dfu1gJ5Mfoe"], ["created_at", "2015-03-01 07:57:03.199002"], ["updated_at", "2015-03-01 07:57:03.199002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$GzInbLCmL6VTvilBk2t/pOA5ximBmtcr18U9z3k29m8NNCi58PPrq"], ["created_at", "2015-03-01 07:57:03.204261"], ["updated_at", "2015-03-01 07:57:03.204261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.206136"], ["user_id", "8c1d35ba-bfe8-11e4-915e-705681abff85"], ["created_at", "2015-03-01 07:57:03.207052"], ["updated_at", "2015-03-01 07:57:03.207052"], ["token", "w-Xm1uyhAL61vRfv7rxj647fzx8MOcnw_PqCaQpeI38"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.211130"], ["updated_at", "2015-03-01 07:57:03.211130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c1d35ba-bfe8-11e4-915e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c1f0106-bfe8-11e4-9251-705681abff85') LIMIT 1 SQL (3.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c1d35ba-bfe8-11e4-915e-705681abff85"], ["organization_id", "8c1f0106-bfe8-11e4-9251-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.214577"], ["updated_at", "2015-03-01 07:57:03.214577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c1df7de-bfe8-11e4-b5aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c1f0106-bfe8-11e4-9251-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c1df7de-bfe8-11e4-b5aa-705681abff85"], ["organization_id", "8c1f0106-bfe8-11e4-9251-705681abff85"], ["created_at", "2015-03-01 07:57:03.222084"], ["updated_at", "2015-03-01 07:57:03.222084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$eWSiV6ge4lz5qdgTg9uwqOZLBb3VCcgXoVUfO69qsktNwXINLhsc."], ["created_at", "2015-03-01 07:57:03.227034"], ["updated_at", "2015-03-01 07:57:03.227034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.228861"], ["user_id", "8c217242-bfe8-11e4-8f2b-705681abff85"], ["created_at", "2015-03-01 07:57:03.230039"], ["updated_at", "2015-03-01 07:57:03.230039"], ["token", "OapklQffC_uGmAiczCkBkmHjmqq1sPxM3mYws8yMt1A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '8c1f0106-bfe8-11e4-9251-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "8c1f0106-bfe8-11e4-9251-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.234690"], ["updated_at", "2015-03-01 07:57:03.234690"], ["token", "SYBMeVaJmO7BMMADa9G7Q0bqnAI5Q1-XMIVUyCoULSE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$Vj8bvOZLxF06gzELwA1TaeItCJrThGv63iKEX.fKKYdhWXBg7pLL2"], ["created_at", "2015-03-01 07:57:03.250522"], ["updated_at", "2015-03-01 07:57:03.250522"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$CTYlKoGJk2n04/.4q/SucOG4/AjUDets4WqUFaZ1pkb.ahjjNQOA2"], ["created_at", "2015-03-01 07:57:03.256171"], ["updated_at", "2015-03-01 07:57:03.256171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.257939"], ["user_id", "8c2513c0-bfe8-11e4-9ff1-705681abff85"], ["created_at", "2015-03-01 07:57:03.258777"], ["updated_at", "2015-03-01 07:57:03.258777"], ["token", "orFVkJYvhq11uA80ttl_tumgAMfswZ512ZTRdGrgvg4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.262627"], ["updated_at", "2015-03-01 07:57:03.262627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c2513c0-bfe8-11e4-9ff1-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c26ddd6-bfe8-11e4-8cf7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c2513c0-bfe8-11e4-9ff1-705681abff85"], ["organization_id", "8c26ddd6-bfe8-11e4-8cf7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.266223"], ["updated_at", "2015-03-01 07:57:03.266223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c25e520-bfe8-11e4-b5cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c26ddd6-bfe8-11e4-8cf7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c25e520-bfe8-11e4-b5cc-705681abff85"], ["organization_id", "8c26ddd6-bfe8-11e4-8cf7-705681abff85"], ["created_at", "2015-03-01 07:57:03.270180"], ["updated_at", "2015-03-01 07:57:03.270180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$LLZyv5mvbDbQ6In8E6KVAOTZBblzwI6PG0rbtebmnxANtRJPkJNK."], ["created_at", "2015-03-01 07:57:03.275058"], ["updated_at", "2015-03-01 07:57:03.275058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.276812"], ["user_id", "8c28c93e-bfe8-11e4-917b-705681abff85"], ["created_at", "2015-03-01 07:57:03.277861"], ["updated_at", "2015-03-01 07:57:03.277861"], ["token", "d5Wt53ImVU6oErX4aG6vVGvBYMESLkQSytg5okvfIxk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '8c26ddd6-bfe8-11e4-8cf7-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "8c26ddd6-bfe8-11e4-8cf7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.282591"], ["updated_at", "2015-03-01 07:57:03.282591"], ["token", "8yyYARIu96t0qsimafnhFCxcTHHYLN7MBikmvPuHgFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.290199' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "d5Wt53ImVU6oErX4aG6vVGvBYMESLkQSytg5okvfIxk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.292218"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.293936"], ["id", "8c293d74-bfe8-11e4-bdcb-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c28c93e-bfe8-11e4-917b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c28c93e-bfe8-11e4-917b-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$fy13rODsJFoR6zthZU7U6uA5M0lPhBOolFOB.vqaz.QxXKMytH2aC"], ["created_at", "2015-03-01 07:57:03.310278"], ["updated_at", "2015-03-01 07:57:03.310278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$cZhLUr.OomDZkZ9YV3wI6ef.bO7GjrjFjIPQHcUGRULLfPLG.bf/C"], ["created_at", "2015-03-01 07:57:03.315500"], ["updated_at", "2015-03-01 07:57:03.315500"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.319944"], ["user_id", "8c2e2e60-bfe8-11e4-8592-705681abff85"], ["created_at", "2015-03-01 07:57:03.321121"], ["updated_at", "2015-03-01 07:57:03.321121"], ["token", "X41jY0iCvzXBiqZVqzE5E_7rVLk4J_ipKoULrjK-BO8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.325595"], ["updated_at", "2015-03-01 07:57:03.325595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c2e2e60-bfe8-11e4-8592-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c3081b0-bfe8-11e4-9aa1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c2e2e60-bfe8-11e4-8592-705681abff85"], ["organization_id", "8c3081b0-bfe8-11e4-9aa1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.331139"], ["updated_at", "2015-03-01 07:57:03.331139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c2f1f8c-bfe8-11e4-952c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c3081b0-bfe8-11e4-9aa1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c2f1f8c-bfe8-11e4-952c-705681abff85"], ["organization_id", "8c3081b0-bfe8-11e4-9aa1-705681abff85"], ["created_at", "2015-03-01 07:57:03.340879"], ["updated_at", "2015-03-01 07:57:03.340879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$v4hHs7uz81qEQBurKR34lOaH.Q9/rfUXYtEQHV2GWmK7GOO6uD4.G"], ["created_at", "2015-03-01 07:57:03.347163"], ["updated_at", "2015-03-01 07:57:03.347163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.349182"], ["user_id", "8c33cb04-bfe8-11e4-917e-705681abff85"], ["created_at", "2015-03-01 07:57:03.350614"], ["updated_at", "2015-03-01 07:57:03.350614"], ["token", "8e4gGBFTF9ZC_UIwZdk2baHhdr8pLHB5LstVeeD2IwQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '8c3081b0-bfe8-11e4-9aa1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "8c3081b0-bfe8-11e4-9aa1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.357454"], ["updated_at", "2015-03-01 07:57:03.357454"], ["token", "jxV2GwvPiez46859jA2rIvgYHyYVn2oRx-PFRi_cKno"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"jxV2GwvPiez46859jA2rIvgYHyYVn2oRx-PFRi_cKno", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.364236' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8e4gGBFTF9ZC_UIwZdk2baHhdr8pLHB5LstVeeD2IwQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.365907"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.366994"], ["id", "8c3471b2-bfe8-11e4-8252-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c33cb04-bfe8-11e4-917e-705681abff85"]] Clubhouse::Organization Load (21.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c33cb04-bfe8-11e4-917e-705681abff85"]]  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "jxV2GwvPiez46859jA2rIvgYHyYVn2oRx-PFRi_cKno"]] Clubhouse::Organization Load (8.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c3081b0-bfe8-11e4-9aa1-705681abff85"]] CACHE (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c3081b0-bfe8-11e4-9aa1-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c33cb04-bfe8-11e4-917e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c3081b0-bfe8-11e4-9aa1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c33cb04-bfe8-11e4-917e-705681abff85"], ["admin", "t"], ["organization_id", "8c3081b0-bfe8-11e4-9aa1-705681abff85"], ["created_at", "2015-03-01 07:57:03.476078"], ["updated_at", "2015-03-01 07:57:03.476078"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "8c357134-bfe8-11e4-bac7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 118ms (Views: 1.8ms | ActiveRecord: 34.4ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$GIzGADjYZw8LRFn2O5cy6.giSvcaGAqGxeqkMsE95DDwttRBsYbxW"], ["created_at", "2015-03-01 07:57:03.491687"], ["updated_at", "2015-03-01 07:57:03.491687"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.495253"], ["user_id", "8c49dd9a-bfe8-11e4-a62c-705681abff85"], ["created_at", "2015-03-01 07:57:03.496613"], ["updated_at", "2015-03-01 07:57:03.496613"], ["token", "qGuEOuAPt2vzsQpM_SWSleAEYnuRsscp0skcyVakKLA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.502739"], ["updated_at", "2015-03-01 07:57:03.502739"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c49dd9a-bfe8-11e4-a62c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c4c9166-bfe8-11e4-861c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c49dd9a-bfe8-11e4-a62c-705681abff85"], ["organization_id", "8c4c9166-bfe8-11e4-861c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.516590"], ["updated_at", "2015-03-01 07:57:03.516590"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '8c4c9166-bfe8-11e4-861c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "8c4c9166-bfe8-11e4-861c-705681abff85"], ["created_at", "2015-03-01 07:57:03.524425"], ["updated_at", "2015-03-01 07:57:03.524425"], ["token", "tgsrIPLvTSsT8nhWJkd_EsmafaKjVv8kI6-3BajqkJc"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$50yJIisq9dE71nk5RJshv.VQeoSGtPFIh9H.JogAQ/9VnWHHtzmEu"], ["created_at", "2015-03-01 07:57:03.534144"], ["updated_at", "2015-03-01 07:57:03.534144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.538767"], ["updated_at", "2015-03-01 07:57:03.538767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c505f1c-bfe8-11e4-8d70-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c51057a-bfe8-11e4-ab04-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c505f1c-bfe8-11e4-8d70-705681abff85"], ["organization_id", "8c51057a-bfe8-11e4-ab04-705681abff85"], ["created_at", "2015-03-01 07:57:03.542886"], ["updated_at", "2015-03-01 07:57:03.542886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.557798' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qGuEOuAPt2vzsQpM_SWSleAEYnuRsscp0skcyVakKLA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.559751"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.560832"], ["id", "8c4ab51c-bfe8-11e4-9311-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c49dd9a-bfe8-11e4-a62c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c49dd9a-bfe8-11e4-a62c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c49dd9a-bfe8-11e4-a62c-705681abff85' LIMIT 1 [["organization_id", "8c4c9166-bfe8-11e4-861c-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "8c4c9166-bfe8-11e4-861c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('8c4c9166-bfe8-11e4-861c-705681abff85') Completed 200 OK in 17ms (Views: 4.6ms | ActiveRecord: 1.9ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$zlTLgJ6uxevnJX6Aur37BOIkTqhiwxlbPL37RQ7rVzw1dgOovpG5W"], ["created_at", "2015-03-01 07:57:03.585324"], ["updated_at", "2015-03-01 07:57:03.585324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.587238"], ["user_id", "8c582008-bfe8-11e4-8d5a-705681abff85"], ["created_at", "2015-03-01 07:57:03.588554"], ["updated_at", "2015-03-01 07:57:03.588554"], ["token", "SL7fF5hXdXCNUNA5-nxWOuS4JKmVYBaS8HG451onbWA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.593044"], ["updated_at", "2015-03-01 07:57:03.593044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c582008-bfe8-11e4-8d5a-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c59b35a-bfe8-11e4-8dda-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c582008-bfe8-11e4-8d5a-705681abff85"], ["organization_id", "8c59b35a-bfe8-11e4-8dda-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.600987"], ["updated_at", "2015-03-01 07:57:03.600987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '8c59b35a-bfe8-11e4-8dda-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "8c59b35a-bfe8-11e4-8dda-705681abff85"], ["created_at", "2015-03-01 07:57:03.605898"], ["updated_at", "2015-03-01 07:57:03.605898"], ["token", "eYXQfxKd3b_wOGFTykY38PUmBZ6XzC6CuMpONEpU1Vg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$GdOe2yGi4icyYRyGuS7kIepJTl5wZ66B84EbPES9VnVsl28FTa7AK"], ["created_at", "2015-03-01 07:57:03.613226"], ["updated_at", "2015-03-01 07:57:03.613226"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.619934"], ["updated_at", "2015-03-01 07:57:03.619934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c5c8b7a-bfe8-11e4-a863-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c5d8430-bfe8-11e4-a5da-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c5c8b7a-bfe8-11e4-a863-705681abff85"], ["organization_id", "8c5d8430-bfe8-11e4-a5da-705681abff85"], ["created_at", "2015-03-01 07:57:03.625147"], ["updated_at", "2015-03-01 07:57:03.625147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$ARjw9ZSNiCGmi2FujVOXHeEWexnX.wbNRr8tzQU0.60XJaTnnPRRm"], ["created_at", "2015-03-01 07:57:03.643086"], ["updated_at", "2015-03-01 07:57:03.643086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.646595"], ["user_id", "8c6106d2-bfe8-11e4-9591-705681abff85"], ["created_at", "2015-03-01 07:57:03.647660"], ["updated_at", "2015-03-01 07:57:03.647660"], ["token", "sB6tGne2yVxBGU7Ht8bCQZ78YIB4JfP5KDCCxUpgysQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.651423"], ["updated_at", "2015-03-01 07:57:03.651423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c6106d2-bfe8-11e4-9591-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c6230a2-bfe8-11e4-a236-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c6106d2-bfe8-11e4-9591-705681abff85"], ["organization_id", "8c6230a2-bfe8-11e4-a236-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.655083"], ["updated_at", "2015-03-01 07:57:03.655083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '8c6230a2-bfe8-11e4-a236-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "8c6230a2-bfe8-11e4-a236-705681abff85"], ["created_at", "2015-03-01 07:57:03.658956"], ["updated_at", "2015-03-01 07:57:03.658956"], ["token", "Dg0Iam5bOok9BRRHVr9SgM8K1JiXfx5pF9JQ9EGoiCE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/8c636058-bfe8-11e4-abab-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"8c636058-bfe8-11e4-abab-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.664973' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sB6tGne2yVxBGU7Ht8bCQZ78YIB4JfP5KDCCxUpgysQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.666438"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.667385"], ["id", "8c61aa4c-bfe8-11e4-8bf9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c6106d2-bfe8-11e4-9591-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c6106d2-bfe8-11e4-9591-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c6106d2-bfe8-11e4-9591-705681abff85' LIMIT 1 [["organization_id", "8c6230a2-bfe8-11e4-a236-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8c6230a2-bfe8-11e4-a236-705681abff85"], ["id", "8c636058-bfe8-11e4-abab-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c6230a2-bfe8-11e4-a236-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."id" != '8c636058-bfe8-11e4-abab-705681abff85' AND "clubhouse_invitations"."organization_id" = '8c6230a2-bfe8-11e4-a236-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 07:57:03.679509"], ["id", "8c636058-bfe8-11e4-abab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.4ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$RpygQp8nYJ8qrLdbKtcEk.FxYVBK4HReaJZz1yp5QiPYiU989t44S"], ["created_at", "2015-03-01 07:57:03.690373"], ["updated_at", "2015-03-01 07:57:03.690373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.692192"], ["user_id", "8c682890-bfe8-11e4-8f05-705681abff85"], ["created_at", "2015-03-01 07:57:03.693036"], ["updated_at", "2015-03-01 07:57:03.693036"], ["token", "V0bUefFYOxKORyR_13D9BD32WGtqyYytaX9Q_XBRZ4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.697071"], ["updated_at", "2015-03-01 07:57:03.697071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c682890-bfe8-11e4-8f05-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c6928bc-bfe8-11e4-8352-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c682890-bfe8-11e4-8f05-705681abff85"], ["organization_id", "8c6928bc-bfe8-11e4-8352-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.700572"], ["updated_at", "2015-03-01 07:57:03.700572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '8c6928bc-bfe8-11e4-8352-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "8c6928bc-bfe8-11e4-8352-705681abff85"], ["created_at", "2015-03-01 07:57:03.705297"], ["updated_at", "2015-03-01 07:57:03.705297"], ["token", "mau34gtXnkit4CAXlaV1jxxi-SPoUWTKwkcShvsgny8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$xShAt.PYR9QiIfCblnVneOV3bfKy1HKMUe/RLqMGAsspuhKfH.qHW"], ["created_at", "2015-03-01 07:57:03.720272"], ["updated_at", "2015-03-01 07:57:03.720272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.722368"], ["user_id", "8c6cbdec-bfe8-11e4-bcaa-705681abff85"], ["created_at", "2015-03-01 07:57:03.723779"], ["updated_at", "2015-03-01 07:57:03.723779"], ["token", "9nMt_p8gqCYztajO8T6KQhgIgkI8HTasjvoe3_Px5xk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.727730"], ["updated_at", "2015-03-01 07:57:03.727730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c6cbdec-bfe8-11e4-bcaa-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c6ddf88-bfe8-11e4-9222-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c6cbdec-bfe8-11e4-bcaa-705681abff85"], ["organization_id", "8c6ddf88-bfe8-11e4-9222-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.731576"], ["updated_at", "2015-03-01 07:57:03.731576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '8c6ddf88-bfe8-11e4-9222-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "8c6ddf88-bfe8-11e4-9222-705681abff85"], ["created_at", "2015-03-01 07:57:03.735650"], ["updated_at", "2015-03-01 07:57:03.735650"], ["token", "aU6-aSqTitEWeulxnNqg_XQoIgRr9So-yeHy0kyrV94"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/8c6f12ea-bfe8-11e4-b276-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"8c6f12ea-bfe8-11e4-b276-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.742611' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9nMt_p8gqCYztajO8T6KQhgIgkI8HTasjvoe3_Px5xk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.744147"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.745132"], ["id", "8c6d4a28-bfe8-11e4-ac95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c6cbdec-bfe8-11e4-bcaa-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c6cbdec-bfe8-11e4-bcaa-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c6cbdec-bfe8-11e4-bcaa-705681abff85' LIMIT 1 [["organization_id", "8c6ddf88-bfe8-11e4-9222-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8c6ddf88-bfe8-11e4-9222-705681abff85"], ["id", "8c6f12ea-bfe8-11e4-b276-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c6ddf88-bfe8-11e4-9222-705681abff85"]] Completed 200 OK in 11ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$cfV3VDRLVcUJI6tlTN/RMuBBAjLAGKWQ5GZjshS5dxcgvTzT8Tblu"], ["created_at", "2015-03-01 07:57:03.760251"], ["updated_at", "2015-03-01 07:57:03.760251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.762066"], ["user_id", "8c72cf3e-bfe8-11e4-a3bf-705681abff85"], ["created_at", "2015-03-01 07:57:03.763074"], ["updated_at", "2015-03-01 07:57:03.763074"], ["token", "fXkIyVe3B8kDYtrnsA0Oe829s5il2CGyb00BTjnh0oo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.766974"], ["updated_at", "2015-03-01 07:57:03.766974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c72cf3e-bfe8-11e4-a3bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c73d4e2-bfe8-11e4-b51e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c72cf3e-bfe8-11e4-a3bf-705681abff85"], ["organization_id", "8c73d4e2-bfe8-11e4-b51e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.770612"], ["updated_at", "2015-03-01 07:57:03.770612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '8c73d4e2-bfe8-11e4-b51e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "8c73d4e2-bfe8-11e4-b51e-705681abff85"], ["created_at", "2015-03-01 07:57:03.774858"], ["updated_at", "2015-03-01 07:57:03.774858"], ["token", "DQ6Qw88XkAKqzOlTm_Nn_nyqBK97geSItbBVn9i2vGk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$/archNMM4W12ZnoeuxAMH.A./i0spm/WgQ9qBzV7KbGQYugvOX3IC"], ["created_at", "2015-03-01 07:57:03.788334"], ["updated_at", "2015-03-01 07:57:03.788334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.790803"], ["user_id", "8c7719b8-bfe8-11e4-af0f-705681abff85"], ["created_at", "2015-03-01 07:57:03.791794"], ["updated_at", "2015-03-01 07:57:03.791794"], ["token", "lPx9cLwyqLdvJztcxS4EAxX8bDT8e5mFeE7_Yr7RCtk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.795531"], ["updated_at", "2015-03-01 07:57:03.795531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c7719b8-bfe8-11e4-af0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c782ce0-bfe8-11e4-99ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c7719b8-bfe8-11e4-af0f-705681abff85"], ["organization_id", "8c782ce0-bfe8-11e4-99ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.799076"], ["updated_at", "2015-03-01 07:57:03.799076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '8c782ce0-bfe8-11e4-99ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "8c782ce0-bfe8-11e4-99ac-705681abff85"], ["created_at", "2015-03-01 07:57:03.802445"], ["updated_at", "2015-03-01 07:57:03.802445"], ["token", "AxIyIzZVSVWIGcJaBieR1ADM4pInYi5W-24piBMH218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$t5zQVGQHKc4kl5lye0q8ku8GCiyO37ZJh00ElSlvS8/6GrwJTl.Dy"], ["created_at", "2015-03-01 07:57:03.816221"], ["updated_at", "2015-03-01 07:57:03.816221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.817849"], ["user_id", "8c7b58ca-bfe8-11e4-b00b-705681abff85"], ["created_at", "2015-03-01 07:57:03.818737"], ["updated_at", "2015-03-01 07:57:03.818737"], ["token", "jLb6ipjYfY1NwbgxsJe3m9JLxwUhLAQqhpEpXU-DZtk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.823061"], ["updated_at", "2015-03-01 07:57:03.823061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c7b58ca-bfe8-11e4-b00b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c7c6cba-bfe8-11e4-ae31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c7b58ca-bfe8-11e4-b00b-705681abff85"], ["organization_id", "8c7c6cba-bfe8-11e4-ae31-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.826918"], ["updated_at", "2015-03-01 07:57:03.826918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '8c7c6cba-bfe8-11e4-ae31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "8c7c6cba-bfe8-11e4-ae31-705681abff85"], ["created_at", "2015-03-01 07:57:03.830864"], ["updated_at", "2015-03-01 07:57:03.830864"], ["token", "eJp9nWh0481ct1UPXLUjRkTEqZJq4WbL9dcDbHOKkZE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.836336' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jLb6ipjYfY1NwbgxsJe3m9JLxwUhLAQqhpEpXU-DZtk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.837856"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.838894"], ["id", "8c7bc1c0-bfe8-11e4-8569-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c7b58ca-bfe8-11e4-b00b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c7b58ca-bfe8-11e4-b00b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c7b58ca-bfe8-11e4-b00b-705681abff85' LIMIT 1 [["organization_id", "8c7c6cba-bfe8-11e4-ae31-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c7c6cba-bfe8-11e4-ae31-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '8c7c6cba-bfe8-11e4-ae31-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$XBMKFiKv5KfauOprFejMDeVQ7Y0SBVlvuhfsuowvOAnIAbQaLLGSK"], ["created_at", "2015-03-01 07:57:03.862161"], ["updated_at", "2015-03-01 07:57:03.862161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.864402"], ["user_id", "8c825cc4-bfe8-11e4-b1a7-705681abff85"], ["created_at", "2015-03-01 07:57:03.865211"], ["updated_at", "2015-03-01 07:57:03.865211"], ["token", "mAy0svAl9R7auZgp_djuUm2Q26i1ah6WZlai1Dq72D8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.868840"], ["updated_at", "2015-03-01 07:57:03.868840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c825cc4-bfe8-11e4-b1a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c83661e-bfe8-11e4-a83a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c825cc4-bfe8-11e4-b1a7-705681abff85"], ["organization_id", "8c83661e-bfe8-11e4-a83a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.872438"], ["updated_at", "2015-03-01 07:57:03.872438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '8c83661e-bfe8-11e4-a83a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "8c83661e-bfe8-11e4-a83a-705681abff85"], ["created_at", "2015-03-01 07:57:03.876137"], ["updated_at", "2015-03-01 07:57:03.876137"], ["token", "9mleJPOjvsBLwqstQI89H9z5NDD4UxR1hg5-rYssGxc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.882114' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mAy0svAl9R7auZgp_djuUm2Q26i1ah6WZlai1Dq72D8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.883603"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.884745"], ["id", "8c82d88e-bfe8-11e4-a849-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c825cc4-bfe8-11e4-b1a7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c825cc4-bfe8-11e4-b1a7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c825cc4-bfe8-11e4-b1a7-705681abff85' LIMIT 1 [["organization_id", "8c83661e-bfe8-11e4-a83a-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c83661e-bfe8-11e4-a83a-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8c83661e-bfe8-11e4-a83a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "8c83661e-bfe8-11e4-a83a-705681abff85"], ["created_at", "2015-03-01 07:57:03.896018"], ["updated_at", "2015-03-01 07:57:03.896018"], ["token", "tUDv1aJwrSpuQ4v09qfUKRzyhuU8MdVyrVx8qdwWBZc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0e7ec416-e47e-4fc4-9138-3f95a55250a8) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c879248-bfe8-11e4-bdfa-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8c879248-bfe8-11e4-bdfa-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0e7ec416-e47e-4fc4-9138-3f95a55250a8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c879248-bfe8-11e4-bdfa-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [0e7ec416-e47e-4fc4-9138-3f95a55250a8] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c83661e-bfe8-11e4-a83a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0e7ec416-e47e-4fc4-9138-3f95a55250a8] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [0e7ec416-e47e-4fc4-9138-3f95a55250a8] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [0e7ec416-e47e-4fc4-9138-3f95a55250a8] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [0e7ec416-e47e-4fc4-9138-3f95a55250a8] Date: Sat, 28 Feb 2015 23:57:03 -0800 From: from@example.com To: email@example.com Message-ID: <54f2c64fe134d_136413fce45025be028780@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/tUDv1aJwrSpuQ4v09qfUKRzyhuU8MdVyrVx8qdwWBZc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0e7ec416-e47e-4fc4-9138-3f95a55250a8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.51ms Completed 201 Created in 43ms (Views: 1.3ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$f0uyOJQq7v1lLUksf7AUhePE/oDnBj2KBeWKQDRu2l/aaKayvsbHu"], ["created_at", "2015-03-01 07:57:03.931142"], ["updated_at", "2015-03-01 07:57:03.931142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.932986"], ["user_id", "8c8ce84c-bfe8-11e4-ae1e-705681abff85"], ["created_at", "2015-03-01 07:57:03.933835"], ["updated_at", "2015-03-01 07:57:03.933835"], ["token", "xvH3_2XdnuMfnjV2E28FYqdnZSLXvOFiAE9NtmFWGos"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.937436"], ["updated_at", "2015-03-01 07:57:03.937436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c8ce84c-bfe8-11e4-ae1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c8dd590-bfe8-11e4-b959-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c8ce84c-bfe8-11e4-ae1e-705681abff85"], ["organization_id", "8c8dd590-bfe8-11e4-b959-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.940917"], ["updated_at", "2015-03-01 07:57:03.940917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '8c8dd590-bfe8-11e4-b959-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "8c8dd590-bfe8-11e4-b959-705681abff85"], ["created_at", "2015-03-01 07:57:03.944646"], ["updated_at", "2015-03-01 07:57:03.944646"], ["token", "5gsxA0Cw8DLjGyanu27SQRNuNSKS-CGxQu5f2Wb7unw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-02-28 23:57:03 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:03.950063' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xvH3_2XdnuMfnjV2E28FYqdnZSLXvOFiAE9NtmFWGos"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:03.951683"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:03.952686"], ["id", "8c8d51ce-bfe8-11e4-b06b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c8ce84c-bfe8-11e4-ae1e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c8ce84c-bfe8-11e4-ae1e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c8ce84c-bfe8-11e4-ae1e-705681abff85' LIMIT 1 [["organization_id", "8c8dd590-bfe8-11e4-b959-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c8dd590-bfe8-11e4-b959-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8c8dd590-bfe8-11e4-b959-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "8c8dd590-bfe8-11e4-b959-705681abff85"], ["created_at", "2015-03-01 07:57:03.965343"], ["updated_at", "2015-03-01 07:57:03.965343"], ["token", "G_b_9T0EfWEZnvHzdcLyj-0KYgIzULYXWd03vszhHT4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4238e535-f1b7-4945-98b7-2877b768ead2) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c922f64-bfe8-11e4-bd3a-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8c922f64-bfe8-11e4-bd3a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4238e535-f1b7-4945-98b7-2877b768ead2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c922f64-bfe8-11e4-bd3a-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [4238e535-f1b7-4945-98b7-2877b768ead2] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c8dd590-bfe8-11e4-b959-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4238e535-f1b7-4945-98b7-2877b768ead2] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4238e535-f1b7-4945-98b7-2877b768ead2] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [4238e535-f1b7-4945-98b7-2877b768ead2] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [4238e535-f1b7-4945-98b7-2877b768ead2] Date: Sat, 28 Feb 2015 23:57:03 -0800 From: from@example.com To: email@example.com Message-ID: <54f2c64fedaf8_136413fce45025be028844@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/G_b_9T0EfWEZnvHzdcLyj-0KYgIzULYXWd03vszhHT4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4238e535-f1b7-4945-98b7-2877b768ead2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.65ms Completed 201 Created in 26ms (Views: 1.0ms | ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$u0OYUVjo7GbBfhZE5C/CNeSDlvqtJ266gHTRHUFG9U2caoc/mSOim"], ["created_at", "2015-03-01 07:57:03.982179"], ["updated_at", "2015-03-01 07:57:03.982179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:03.984386"], ["user_id", "8c94b004-bfe8-11e4-85b2-705681abff85"], ["created_at", "2015-03-01 07:57:03.985190"], ["updated_at", "2015-03-01 07:57:03.985190"], ["token", "V2aaSuHxckIg7azbbsetNHuOwXQlScCSkwFFdXLuoVo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:03.988891"], ["updated_at", "2015-03-01 07:57:03.988891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c94b004-bfe8-11e4-85b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c95be86-bfe8-11e4-922a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c94b004-bfe8-11e4-85b2-705681abff85"], ["organization_id", "8c95be86-bfe8-11e4-922a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:03.992918"], ["updated_at", "2015-03-01 07:57:03.992918"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '8c95be86-bfe8-11e4-922a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "8c95be86-bfe8-11e4-922a-705681abff85"], ["created_at", "2015-03-01 07:57:03.996690"], ["updated_at", "2015-03-01 07:57:03.996690"], ["token", "HYPA4x43bOEYErSFKG4jnD-gy99PDKcvMxkaiH2Uacg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/8c96e446-bfe8-11e4-8f13-705681abff85?organization=org" for 127.0.0.1 at 2015-02-28 23:57:04 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8c96e446-bfe8-11e4-8f13-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 07:57:04.002454' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "V2aaSuHxckIg7azbbsetNHuOwXQlScCSkwFFdXLuoVo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 07:57:04.003911"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 07:57:04.004876"], ["id", "8c9527f0-bfe8-11e4-975d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c94b004-bfe8-11e4-85b2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8c94b004-bfe8-11e4-85b2-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c94b004-bfe8-11e4-85b2-705681abff85' LIMIT 1 [["organization_id", "8c95be86-bfe8-11e4-922a-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8c95be86-bfe8-11e4-922a-705681abff85"], ["id", "8c96e446-bfe8-11e4-8f13-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "8c96e446-bfe8-11e4-8f13-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$bWZNSYl5D9Zu9rIupAyGFOwHRRORsEevg5rFi5D/KiB/m1/5u5fra"], ["created_at", "2015-03-01 07:57:04.020161"], ["updated_at", "2015-03-01 07:57:04.020161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 07:57:04.021806"], ["user_id", "8c9a775a-bfe8-11e4-9a4c-705681abff85"], ["created_at", "2015-03-01 07:57:04.022609"], ["updated_at", "2015-03-01 07:57:04.022609"], ["token", "ZRu3A4Q9ESjmws-cjrE1WjUk1-tpAMHjYC3rEbOiX6o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 07:57:04.026197"], ["updated_at", "2015-03-01 07:57:04.026197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c9a775a-bfe8-11e4-9a4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c9b5ee0-bfe8-11e4-9256-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c9a775a-bfe8-11e4-9a4c-705681abff85"], ["organization_id", "8c9b5ee0-bfe8-11e4-9256-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 07:57:04.029377"], ["updated_at", "2015-03-01 07:57:04.029377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '8c9b5ee0-bfe8-11e4-9256-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "8c9b5ee0-bfe8-11e4-9256-705681abff85"], ["created_at", "2015-03-01 07:57:04.032619"], ["updated_at", "2015-03-01 07:57:04.032619"], ["token", "iZFfc0JzgB5DS4SuYRFtktpxhEKJPc7xhs_pOhOXPu4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-02-28 23:57:04 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$2UKniVpD1OUEjdNMaO0dy.gD5emzL2as/W8p8BWHy9Mxj8xqgqfNu"], ["created_at", "2015-03-01 08:24:29.058156"], ["updated_at", "2015-03-01 08:24:29.058156"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (611f842c-bfec-11e4-95b2-705681abff85, null, user.1@example.com, $2a$04$2UKniVpD1OUEjdNMaO0dy.gD5emzL2as/W8p8BWHy9Mxj8xqgqfNu, null, 2015-03-01 08:24:29.058156, 2015-03-01 08:24:29.058156). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$jONRZ689tsB.Ry9nRnt5cOWJhZGgZwBdvGI8Ys5elZGZ56gNfKBrS"], ["created_at", "2015-03-01 08:24:29.087264"], ["updated_at", "2015-03-01 08:24:29.087264"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6123cb40-bfec-11e4-a86a-705681abff85, null, user.2@example.com, $2a$04$jONRZ689tsB.Ry9nRnt5cOWJhZGgZwBdvGI8Ys5elZGZ56gNfKBrS, null, 2015-03-01 08:24:29.087264, 2015-03-01 08:24:29.087264). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$wUOHhz.pmDOY8.oJ8CRYTeN4hBSff0YiNDnSWE1yR0679ZZ0ZkFmq"], ["created_at", "2015-03-01 08:24:29.093397"], ["updated_at", "2015-03-01 08:24:29.093397"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6124b640-bfec-11e4-8b63-705681abff85, null, user.3@example.com, $2a$04$wUOHhz.pmDOY8.oJ8CRYTeN4hBSff0YiNDnSWE1yR0679ZZ0ZkFmq, null, 2015-03-01 08:24:29.093397, 2015-03-01 08:24:29.093397). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$b1khASM86AcR74UHhoP4WepLz5ET9FzGuaiit2X2ZmCnjP7AK9j26"], ["created_at", "2015-03-01 08:24:29.099163"], ["updated_at", "2015-03-01 08:24:29.099163"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6125974a-bfec-11e4-aeac-705681abff85, null, user.4@example.com, $2a$04$b1khASM86AcR74UHhoP4WepLz5ET9FzGuaiit2X2ZmCnjP7AK9j26, null, 2015-03-01 08:24:29.099163, 2015-03-01 08:24:29.099163). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$8eug41t1BQ8R5NRZ9s2vu.IfjCZhfvthpeTmGnscvUlsq1vFWxRFC"], ["created_at", "2015-03-01 08:24:29.105191"], ["updated_at", "2015-03-01 08:24:29.105191"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (61268344-bfec-11e4-ac91-705681abff85, null, user.5@example.com, $2a$04$8eug41t1BQ8R5NRZ9s2vu.IfjCZhfvthpeTmGnscvUlsq1vFWxRFC, null, 2015-03-01 08:24:29.105191, 2015-03-01 08:24:29.105191). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$4nbfeBBE8T0EiMiIcgGrkOOp5LtRGcrjYOAOiSQHVi9xdlEiBw.D2"], ["created_at", "2015-03-01 08:24:29.110792"], ["updated_at", "2015-03-01 08:24:29.110792"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (61275db4-bfec-11e4-9863-705681abff85, null, user.6@example.com, $2a$04$4nbfeBBE8T0EiMiIcgGrkOOp5LtRGcrjYOAOiSQHVi9xdlEiBw.D2, null, 2015-03-01 08:24:29.110792, 2015-03-01 08:24:29.110792). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$uJqTfxY0G8m17WgHsf9VG.xOpHs8QKVGnO.f1.Jb/aDCZXgp2y8Ci"], ["created_at", "2015-03-01 08:24:29.116682"], ["updated_at", "2015-03-01 08:24:29.116682"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6128548a-bfec-11e4-8f44-705681abff85, null, user.7@example.com, $2a$04$uJqTfxY0G8m17WgHsf9VG.xOpHs8QKVGnO.f1.Jb/aDCZXgp2y8Ci, null, 2015-03-01 08:24:29.116682, 2015-03-01 08:24:29.116682). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$CQKdVwVLBmIGkLvx0GeDtuAJPLZzgk6XVVwTeVyhnsNf2sbOtqxEC"], ["created_at", "2015-03-01 08:24:29.124147"], ["updated_at", "2015-03-01 08:24:29.124147"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (61296802-bfec-11e4-a740-705681abff85, null, user.8@example.com, $2a$04$CQKdVwVLBmIGkLvx0GeDtuAJPLZzgk6XVVwTeVyhnsNf2sbOtqxEC, null, 2015-03-01 08:24:29.124147, 2015-03-01 08:24:29.124147). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$1vfXMPRUNcItfNglI6DId.z9YAdXmUoTXPQxzV1Mb46iIXCe8MCNK"], ["created_at", "2015-03-01 08:24:29.130292"], ["updated_at", "2015-03-01 08:24:29.130292"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (612a5762-bfec-11e4-aaca-705681abff85, null, user.9@example.com, $2a$04$1vfXMPRUNcItfNglI6DId.z9YAdXmUoTXPQxzV1Mb46iIXCe8MCNK, null, 2015-03-01 08:24:29.130292, 2015-03-01 08:24:29.130292). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$jKFO.scfhnJin8nd.oeyuOuXI040FWPIcRMap83WJrkZ86IiXTtXW"], ["created_at", "2015-03-01 08:24:29.136154"], ["updated_at", "2015-03-01 08:24:29.136154"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (612b3cc2-bfec-11e4-9cb1-705681abff85, null, user.10@example.com, $2a$04$jKFO.scfhnJin8nd.oeyuOuXI040FWPIcRMap83WJrkZ86IiXTtXW, null, 2015-03-01 08:24:29.136154, 2015-03-01 08:24:29.136154). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$a1z9gffmmc.ZnxPjCwpt3OgXYcdVLIngC5WpnMqtkx/fWAl8Ksoh."], ["created_at", "2015-03-01 08:24:29.143384"], ["updated_at", "2015-03-01 08:24:29.143384"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (612c56fc-bfec-11e4-9128-705681abff85, null, user.11@example.com, $2a$04$a1z9gffmmc.ZnxPjCwpt3OgXYcdVLIngC5WpnMqtkx/fWAl8Ksoh., null, 2015-03-01 08:24:29.143384, 2015-03-01 08:24:29.143384). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$XwaJxzuEEQrKU0UfnW9Zo.Z7hzVaLWvdMdAZTZQ9ecvWtWAGTdSYO"], ["created_at", "2015-03-01 08:24:29.150009"], ["updated_at", "2015-03-01 08:24:29.150009"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (612d58d6-bfec-11e4-83f5-705681abff85, null, user.12@example.com, $2a$04$XwaJxzuEEQrKU0UfnW9Zo.Z7hzVaLWvdMdAZTZQ9ecvWtWAGTdSYO, null, 2015-03-01 08:24:29.150009, 2015-03-01 08:24:29.150009). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_memberships" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_memberships"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_memberships"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_memberships" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_memberships"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_memberships"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_memberships" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_memberships"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_memberships"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$V0dkRPj.SZB/sKwag7IF7ux4c8wL9MvJTrXIaM4yvTyEGfZ5V2HXS"], ["created_at", "2015-03-01 08:24:29.196042"], ["updated_at", "2015-03-01 08:24:29.196042"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (613460ea-bfec-11e4-b195-705681abff85, null, user.13@example.com, $2a$04$V0dkRPj.SZB/sKwag7IF7ux4c8wL9MvJTrXIaM4yvTyEGfZ5V2HXS, null, 2015-03-01 08:24:29.196042, 2015-03-01 08:24:29.196042). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$WOucjfvvnI3kxUR0.m2HoettCxQo6v/VA9bRg7FUMk/1OH.Ak7l5a"], ["created_at", "2015-03-01 08:24:29.201851"], ["updated_at", "2015-03-01 08:24:29.201851"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (613542c6-bfec-11e4-8c0b-705681abff85, null, user.14@example.com, $2a$04$WOucjfvvnI3kxUR0.m2HoettCxQo6v/VA9bRg7FUMk/1OH.Ak7l5a, null, 2015-03-01 08:24:29.201851, 2015-03-01 08:24:29.201851). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$cUhZkaY/abzyxay85D./Oe/67xVnfe5b5R8tmTXmfqO7lRJgNKEdy"], ["created_at", "2015-03-01 08:24:29.208327"], ["updated_at", "2015-03-01 08:24:29.208327"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (61364c70-bfec-11e4-b1d1-705681abff85, null, user.15@example.com, $2a$04$cUhZkaY/abzyxay85D./Oe/67xVnfe5b5R8tmTXmfqO7lRJgNKEdy, null, 2015-03-01 08:24:29.208327, 2015-03-01 08:24:29.208327). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Q37xFMiaDlNwUkLFsFtYw.ZX/vv2VYISCW3oPqJFqvK4YH/BwKRuC"], ["created_at", "2015-03-01 08:24:29.214381"], ["updated_at", "2015-03-01 08:24:29.214381"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (61372af0-bfec-11e4-b2b4-705681abff85, null, user.16@example.com, $2a$04$Q37xFMiaDlNwUkLFsFtYw.ZX/vv2VYISCW3oPqJFqvK4YH/BwKRuC, null, 2015-03-01 08:24:29.214381, 2015-03-01 08:24:29.214381). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$mRCzldtNM7rUwaHg1p1FMuJVS38wTOVZE6sHT333zr75pt0VhGYTa"], ["created_at", "2015-03-01 08:24:29.221418"], ["updated_at", "2015-03-01 08:24:29.221418"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (613860fa-bfec-11e4-a895-705681abff85, null, user.17@example.com, $2a$04$mRCzldtNM7rUwaHg1p1FMuJVS38wTOVZE6sHT333zr75pt0VhGYTa, null, 2015-03-01 08:24:29.221418, 2015-03-01 08:24:29.221418). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$YEY0mqcwRUS1dWhIU1ZuteXMan4.Qy6ac8CPJgeX/jodU8zj2hoF2"], ["created_at", "2015-03-01 08:24:29.228927"], ["updated_at", "2015-03-01 08:24:29.228927"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6139652c-bfec-11e4-9382-705681abff85, null, user.18@example.com, $2a$04$YEY0mqcwRUS1dWhIU1ZuteXMan4.Qy6ac8CPJgeX/jodU8zj2hoF2, null, 2015-03-01 08:24:29.228927, 2015-03-01 08:24:29.228927). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$58J/PAfIdkLznDFjPhkByurULH4Pu2X2soN44v90B9DqvstCFRL.m"], ["created_at", "2015-03-01 08:24:29.234895"], ["updated_at", "2015-03-01 08:24:29.234895"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (613a5306-bfec-11e4-aaed-705681abff85, null, user.19@example.com, $2a$04$58J/PAfIdkLznDFjPhkByurULH4Pu2X2soN44v90B9DqvstCFRL.m, null, 2015-03-01 08:24:29.234895, 2015-03-01 08:24:29.234895). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$NA4XAwxv.xsXQbxGNUDdd.7NIUS.R9J/iI21aAZT9XUDWHnyO/ruO"], ["created_at", "2015-03-01 08:24:29.241129"], ["updated_at", "2015-03-01 08:24:29.241129"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (613b40f4-bfec-11e4-91b3-705681abff85, null, user.20@example.com, $2a$04$NA4XAwxv.xsXQbxGNUDdd.7NIUS.R9J/iI21aAZT9XUDWHnyO/ruO, null, 2015-03-01 08:24:29.241129, 2015-03-01 08:24:29.241129). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$bnD26YwLexNcI8k644oT6.A3veyKg74ShKEWLwAaaMEkTYjcR0mdO"], ["created_at", "2015-03-01 08:24:29.246846"], ["updated_at", "2015-03-01 08:24:29.246846"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (613c1f2e-bfec-11e4-b309-705681abff85, null, user.21@example.com, $2a$04$bnD26YwLexNcI8k644oT6.A3veyKg74ShKEWLwAaaMEkTYjcR0mdO, null, 2015-03-01 08:24:29.246846, 2015-03-01 08:24:29.246846). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$SkD5RB34r3w84nfgrB0YE.QF3UO17scZ6KF8KUXTdNoW1/FD0OrOW"], ["created_at", "2015-03-01 08:24:29.252598"], ["updated_at", "2015-03-01 08:24:29.252598"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (613d001a-bfec-11e4-9e58-705681abff85, null, user.22@example.com, $2a$04$SkD5RB34r3w84nfgrB0YE.QF3UO17scZ6KF8KUXTdNoW1/FD0OrOW, null, 2015-03-01 08:24:29.252598, 2015-03-01 08:24:29.252598). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$xn2CM6O.Hty/ts50ciU23ufMMmzHLq2qipIvZGuxijIfnl67cbsmm"], ["created_at", "2015-03-01 08:24:29.258730"], ["updated_at", "2015-03-01 08:24:29.258730"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (613df0c4-bfec-11e4-b956-705681abff85, null, user.23@example.com, $2a$04$xn2CM6O.Hty/ts50ciU23ufMMmzHLq2qipIvZGuxijIfnl67cbsmm, null, 2015-03-01 08:24:29.25873, 2015-03-01 08:24:29.25873). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$gUg7hCiqReOZvI8.vLtnrue3HKj0YD2B/CPetxDBh14VwjUZ3fqxi"], ["created_at", "2015-03-01 08:24:29.264450"], ["updated_at", "2015-03-01 08:24:29.264450"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (613ecff8-bfec-11e4-9c69-705681abff85, null, user.24@example.com, $2a$04$gUg7hCiqReOZvI8.vLtnrue3HKj0YD2B/CPetxDBh14VwjUZ3fqxi, null, 2015-03-01 08:24:29.26445, 2015-03-01 08:24:29.26445). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$u2odGCsXlASnuGL45rNZGO/mctW2fTTuJzijH8jTsjO3OcIOLvMKO"], ["created_at", "2015-03-01 08:24:29.271147"], ["updated_at", "2015-03-01 08:24:29.271147"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (613ff50e-bfec-11e4-b424-705681abff85, null, user.25@example.com, $2a$04$u2odGCsXlASnuGL45rNZGO/mctW2fTTuJzijH8jTsjO3OcIOLvMKO, null, 2015-03-01 08:24:29.271147, 2015-03-01 08:24:29.271147). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$IRYwFUHS1jnKHGSPi5RWa.ptQSkZnnZpZ9jAiMyperXiS9lwj4h8m"], ["created_at", "2015-03-01 08:24:29.277944"], ["updated_at", "2015-03-01 08:24:29.277944"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6140de92-bfec-11e4-8fd4-705681abff85, null, user.26@example.com, $2a$04$IRYwFUHS1jnKHGSPi5RWa.ptQSkZnnZpZ9jAiMyperXiS9lwj4h8m, null, 2015-03-01 08:24:29.277944, 2015-03-01 08:24:29.277944). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$zjXXRXZu3cLiH5E9jTHT9uFrRXYHYr.lMSGPEr1IeJ2k/cg0d2SnG"], ["created_at", "2015-03-01 08:24:29.283724"], ["updated_at", "2015-03-01 08:24:29.283724"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6141c0dc-bfec-11e4-a072-705681abff85, null, user.27@example.com, $2a$04$zjXXRXZu3cLiH5E9jTHT9uFrRXYHYr.lMSGPEr1IeJ2k/cg0d2SnG, null, 2015-03-01 08:24:29.283724, 2015-03-01 08:24:29.283724). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$IIXH.qvdhDi8vY/2UoCYP.bcLZTvKK0/R0SfBmOFfu8JlpWye/YI6"], ["created_at", "2015-03-01 08:24:29.289735"], ["updated_at", "2015-03-01 08:24:29.289735"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6142abd2-bfec-11e4-989d-705681abff85, null, user.28@example.com, $2a$04$IIXH.qvdhDi8vY/2UoCYP.bcLZTvKK0/R0SfBmOFfu8JlpWye/YI6, null, 2015-03-01 08:24:29.289735, 2015-03-01 08:24:29.289735). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$ngHH1WpsSa7THrWmjRSaMOTpHmWxASf6QEWEPqsW2QBB/z4kfH4X2"], ["created_at", "2015-03-01 08:24:29.296423"], ["updated_at", "2015-03-01 08:24:29.296423"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6143b2ca-bfec-11e4-943c-705681abff85, null, user.29@example.com, $2a$04$ngHH1WpsSa7THrWmjRSaMOTpHmWxASf6QEWEPqsW2QBB/z4kfH4X2, null, 2015-03-01 08:24:29.296423, 2015-03-01 08:24:29.296423). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$YffdOsxkLnyMZ6RmvVDHOOCgsRznjaFXJvHKGz8jtfEEqbunYV/Fq"], ["created_at", "2015-03-01 08:24:29.302323"], ["updated_at", "2015-03-01 08:24:29.302323"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (61449b5e-bfec-11e4-9689-705681abff85, null, user.30@example.com, $2a$04$YffdOsxkLnyMZ6RmvVDHOOCgsRznjaFXJvHKGz8jtfEEqbunYV/Fq, null, 2015-03-01 08:24:29.302323, 2015-03-01 08:24:29.302323). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$RxbXcPpFdXJPlIaUQeSkv.UMg4w6wVpEP2Qw6zTC499ZOegNEdoJa"], ["created_at", "2015-03-01 08:24:29.308773"], ["updated_at", "2015-03-01 08:24:29.308773"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (614593b0-bfec-11e4-a8d2-705681abff85, null, user.31@example.com, $2a$04$RxbXcPpFdXJPlIaUQeSkv.UMg4w6wVpEP2Qw6zTC499ZOegNEdoJa, null, 2015-03-01 08:24:29.308773, 2015-03-01 08:24:29.308773). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$eSsp1UEOl49QuWExHsALXuo23e9tDSjCAyXUJPbQqG8wA5iY2XV7."], ["created_at", "2015-03-01 08:24:29.314490"], ["updated_at", "2015-03-01 08:24:29.314490"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (614671ea-bfec-11e4-9ee1-705681abff85, null, user.32@example.com, $2a$04$eSsp1UEOl49QuWExHsALXuo23e9tDSjCAyXUJPbQqG8wA5iY2XV7., null, 2015-03-01 08:24:29.31449, 2015-03-01 08:24:29.31449). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$frV.wnTdVHSwipzaMc7iEeoZJ.gpcJttRyk2ICC65B2LktEdd7Ece"], ["created_at", "2015-03-01 08:24:29.320978"], ["updated_at", "2015-03-01 08:24:29.320978"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (61478922-bfec-11e4-80ac-705681abff85, null, user.33@example.com, $2a$04$frV.wnTdVHSwipzaMc7iEeoZJ.gpcJttRyk2ICC65B2LktEdd7Ece, null, 2015-03-01 08:24:29.320978, 2015-03-01 08:24:29.320978). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$m/xCwsOGPhWsE/uR0jT43O3T3VVqTJyPTQs7cKC/jmnmj.JHZA0Z6"], ["created_at", "2015-03-01 08:24:29.327578"], ["updated_at", "2015-03-01 08:24:29.327578"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6148771a-bfec-11e4-965c-705681abff85, null, user.34@example.com, $2a$04$m/xCwsOGPhWsE/uR0jT43O3T3VVqTJyPTQs7cKC/jmnmj.JHZA0Z6, null, 2015-03-01 08:24:29.327578, 2015-03-01 08:24:29.327578). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$dwK2kinaZQ8RBJp1BdwlQuQtnPTligYpI3eelLr5bRQ8ygqcIpTcy"], ["created_at", "2015-03-01 08:24:29.333698"], ["updated_at", "2015-03-01 08:24:29.333698"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (614960f8-bfec-11e4-9d47-705681abff85, null, user.35@example.com, $2a$04$dwK2kinaZQ8RBJp1BdwlQuQtnPTligYpI3eelLr5bRQ8ygqcIpTcy, null, 2015-03-01 08:24:29.333698, 2015-03-01 08:24:29.333698). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (7.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$nzbok4CJf.pWWBsrJbrjtuJFzIJWECktlCh5lmaaGRB/rwTABePtG"], ["created_at", "2015-03-01 08:24:29.340801"], ["updated_at", "2015-03-01 08:24:29.340801"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (614d99f2-bfec-11e4-b2bb-705681abff85, null, user.36@example.com, $2a$04$nzbok4CJf.pWWBsrJbrjtuJFzIJWECktlCh5lmaaGRB/rwTABePtG, null, 2015-03-01 08:24:29.340801, 2015-03-01 08:24:29.340801). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$n.w22PArdVmkrjpN9Du9De/5F/uz9NdCCE3Z0.wmsy9Xzt7DUCSHS"], ["created_at", "2015-03-01 08:24:29.375496"], ["updated_at", "2015-03-01 08:24:29.375496"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (614fec48-bfec-11e4-a628-705681abff85, null, user.37@example.com, $2a$04$n.w22PArdVmkrjpN9Du9De/5F/uz9NdCCE3Z0.wmsy9Xzt7DUCSHS, null, 2015-03-01 08:24:29.375496, 2015-03-01 08:24:29.375496). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$f9mYCONht6paxNfvbhY1YuQ4ETO1rL7dD2IkEzb4umvP3NRnBd6Sq"], ["created_at", "2015-03-01 08:24:29.388817"], ["updated_at", "2015-03-01 08:24:29.388817"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6151e19c-bfec-11e4-ab5f-705681abff85, null, user.38@example.com, $2a$04$f9mYCONht6paxNfvbhY1YuQ4ETO1rL7dD2IkEzb4umvP3NRnBd6Sq, null, 2015-03-01 08:24:29.388817, 2015-03-01 08:24:29.388817). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$BkpDBql9IwPVyuPubacoruY8RtYvLvifvG2n4ZvcB16AGUeV5aGp2"], ["created_at", "2015-03-01 08:24:29.398341"], ["updated_at", "2015-03-01 08:24:29.398341"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (61535e00-bfec-11e4-b32a-705681abff85, null, user.39@example.com, $2a$04$BkpDBql9IwPVyuPubacoruY8RtYvLvifvG2n4ZvcB16AGUeV5aGp2, null, 2015-03-01 08:24:29.398341, 2015-03-01 08:24:29.398341). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$leGfuf8Doi8liyAlgqw8/O6VaynRGaaR28xd7022xiSzh2tq5tNtC"], ["created_at", "2015-03-01 08:24:29.406897"], ["updated_at", "2015-03-01 08:24:29.406897"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6154d4ec-bfec-11e4-be65-705681abff85, null, user.40@example.com, $2a$04$leGfuf8Doi8liyAlgqw8/O6VaynRGaaR28xd7022xiSzh2tq5tNtC, null, 2015-03-01 08:24:29.406897, 2015-03-01 08:24:29.406897). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$8mzddDV0Ddq7BRDl5UC0xOoRA0q2wChBz8JU8QlXuIlWHMBeToqf."], ["created_at", "2015-03-01 08:24:29.415347"], ["updated_at", "2015-03-01 08:24:29.415347"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6155d716-bfec-11e4-bca6-705681abff85, null, user.41@example.com, $2a$04$8mzddDV0Ddq7BRDl5UC0xOoRA0q2wChBz8JU8QlXuIlWHMBeToqf., null, 2015-03-01 08:24:29.415347, 2015-03-01 08:24:29.415347). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$JFbmz4aEzI50ZZcWAjfbY.6jTRV0B4duGTA0CCq1lo8zU/GUNcXFm"], ["created_at", "2015-03-01 08:24:29.422713"], ["updated_at", "2015-03-01 08:24:29.422713"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (61571496-bfec-11e4-aa82-705681abff85, null, user.42@example.com, $2a$04$JFbmz4aEzI50ZZcWAjfbY.6jTRV0B4duGTA0CCq1lo8zU/GUNcXFm, null, 2015-03-01 08:24:29.422713, 2015-03-01 08:24:29.422713). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$OqKmSZoIG2GYI1qIBJtS7Ot/WBlGyb23eVBfcl/GYyATWGsnVFox6"], ["created_at", "2015-03-01 08:24:29.430029"], ["updated_at", "2015-03-01 08:24:29.430029"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (61581620-bfec-11e4-8e46-705681abff85, null, user.43@example.com, $2a$04$OqKmSZoIG2GYI1qIBJtS7Ot/WBlGyb23eVBfcl/GYyATWGsnVFox6, null, 2015-03-01 08:24:29.430029, 2015-03-01 08:24:29.430029). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$BUxXNPWBsffuTfit8IpwYO5wi8DDSTu9.MkPdHQzpQ7qwpjZ.D1ka"], ["created_at", "2015-03-01 08:24:29.436133"], ["updated_at", "2015-03-01 08:24:29.436133"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6159056c-bfec-11e4-91ac-705681abff85, null, user.44@example.com, $2a$04$BUxXNPWBsffuTfit8IpwYO5wi8DDSTu9.MkPdHQzpQ7qwpjZ.D1ka, null, 2015-03-01 08:24:29.436133, 2015-03-01 08:24:29.436133). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$A8kcTvLB0YlS0zB3VlMTfeXmuLXp/lE2k.80/k0XiGqt5qoD61BUe"], ["created_at", "2015-03-01 08:24:29.442439"], ["updated_at", "2015-03-01 08:24:29.442439"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (6159f9d6-bfec-11e4-9f90-705681abff85, null, user.45@example.com, $2a$04$A8kcTvLB0YlS0zB3VlMTfeXmuLXp/lE2k.80/k0XiGqt5qoD61BUe, null, 2015-03-01 08:24:29.442439, 2015-03-01 08:24:29.442439). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$HG/jvKLszobjoGmYcd4aiedzi2GRHNfjXi1ktd8jg98oEh9A/HpAC"], ["created_at", "2015-03-01 08:24:29.448478"], ["updated_at", "2015-03-01 08:24:29.448478"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (615ae65c-bfec-11e4-9f46-705681abff85, null, user.46@example.com, $2a$04$HG/jvKLszobjoGmYcd4aiedzi2GRHNfjXi1ktd8jg98oEh9A/HpAC, null, 2015-03-01 08:24:29.448478, 2015-03-01 08:24:29.448478). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$D9CyFTZdM6mXdIVZFubPf.DJ5g6qwEQZQcep9nM8gBJQEGUgksX9C"], ["created_at", "2015-03-01 08:24:29.454543"], ["updated_at", "2015-03-01 08:24:29.454543"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (615bd3b4-bfec-11e4-a2d2-705681abff85, null, user.47@example.com, $2a$04$D9CyFTZdM6mXdIVZFubPf.DJ5g6qwEQZQcep9nM8gBJQEGUgksX9C, null, 2015-03-01 08:24:29.454543, 2015-03-01 08:24:29.454543). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$7WLsEcvMDHkJ8hrW2ptPF.uHg.OrR3PfuwKOHQEO03epnBwvRwPEO"], ["created_at", "2015-03-01 08:24:29.460710"], ["updated_at", "2015-03-01 08:24:29.460710"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (615cc1e8-bfec-11e4-8c68-705681abff85, null, user.48@example.com, $2a$04$7WLsEcvMDHkJ8hrW2ptPF.uHg.OrR3PfuwKOHQEO03epnBwvRwPEO, null, 2015-03-01 08:24:29.46071, 2015-03-01 08:24:29.46071). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$PJwoItbVUNyrQAobcOzmoeFvRRrGwY2VuHqKM2HnEytbUT6zLRmtO"], ["created_at", "2015-03-01 08:24:29.466378"], ["updated_at", "2015-03-01 08:24:29.466378"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (615da0ea-bfec-11e4-a8ad-705681abff85, null, user.49@example.com, $2a$04$PJwoItbVUNyrQAobcOzmoeFvRRrGwY2VuHqKM2HnEytbUT6zLRmtO, null, 2015-03-01 08:24:29.466378, 2015-03-01 08:24:29.466378). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (6.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:04.917879"], ["updated_at", "2015-03-01 08:25:04.917879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:04.932643"], ["updated_at", "2015-03-01 08:25:04.932643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:04.958848"], ["updated_at", "2015-03-01 08:25:04.958848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:04.975118"], ["updated_at", "2015-03-01 08:25:04.975118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7687d68e-bfec-11e4-b677-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:04.984894"], ["updated_at", "2015-03-01 08:25:04.984894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (11.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$mIQm2ko97RIM9BgKUGlxPOUO4lcWxDvx.ds2bkNa2NHUVSCc6L3My"], ["created_at", "2015-03-01 08:25:05.002336"], ["updated_at", "2015-03-01 08:25:05.002336"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (23.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.023448"], ["user_id", "768c1bb8-bfec-11e4-8860-705681abff85"], ["created_at", "2015-03-01 08:25:05.029664"], ["updated_at", "2015-03-01 08:25:05.029664"], ["token", "zR0vdmdU1g6xP2rLvAPctgcEaaCttQqJB5vQwaCIHqE"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.058699"], ["updated_at", "2015-03-01 08:25:05.058699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '768c1bb8-bfec-11e4-8860-705681abff85' AND "clubhouse_memberships"."organization_id" = '769495f4-bfec-11e4-af3b-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "768c1bb8-bfec-11e4-8860-705681abff85"], ["organization_id", "769495f4-bfec-11e4-af3b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.069750"], ["updated_at", "2015-03-01 08:25:05.069750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '769495f4-bfec-11e4-af3b-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "769495f4-bfec-11e4-af3b-705681abff85"], ["created_at", "2015-03-01 08:25:05.079941"], ["updated_at", "2015-03-01 08:25:05.079941"], ["token", "wSdU-bWBhHJjne4rxeZyqjl1dASg-RhBLE6h5kAMs1M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$r6fDq/GR1zL5cXXW3BD5PuNMQuPXzrW80nn.yhvBvYSOrdjQcWbem"], ["created_at", "2015-03-01 08:25:05.115501"], ["updated_at", "2015-03-01 08:25:05.115501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.117443"], ["user_id", "769d4afa-bfec-11e4-be5e-705681abff85"], ["created_at", "2015-03-01 08:25:05.118281"], ["updated_at", "2015-03-01 08:25:05.118281"], ["token", "FpgGFrvjejivOHEhlE0OGFj-W-47Pp8KNIVJuGN8Bwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.122239"], ["updated_at", "2015-03-01 08:25:05.122239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '769d4afa-bfec-11e4-be5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '769e46ee-bfec-11e4-9bc4-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "769d4afa-bfec-11e4-be5e-705681abff85"], ["organization_id", "769e46ee-bfec-11e4-9bc4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.125735"], ["updated_at", "2015-03-01 08:25:05.125735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '769e46ee-bfec-11e4-9bc4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "769e46ee-bfec-11e4-9bc4-705681abff85"], ["created_at", "2015-03-01 08:25:05.129978"], ["updated_at", "2015-03-01 08:25:05.129978"], ["token", "DyamtSSK0w1B9BGf8O8AmYoyOPhN-4B0Ulpa4NkhtxY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$tV.liV.vHtc6/Ij9WGgSwOOyuqQ1GcdyQHdoFSjh86ZPhltrPmlCy"], ["created_at", "2015-03-01 08:25:05.141322"], ["updated_at", "2015-03-01 08:25:05.141322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.143504"], ["user_id", "76a144de-bfec-11e4-a10a-705681abff85"], ["created_at", "2015-03-01 08:25:05.144322"], ["updated_at", "2015-03-01 08:25:05.144322"], ["token", "RQrcT91yYT7on5bQJIjKZ5jz-8u8vnbs25oZp-NugsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.148597"], ["updated_at", "2015-03-01 08:25:05.148597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76a144de-bfec-11e4-a10a-705681abff85' AND "clubhouse_memberships"."organization_id" = '76a250cc-bfec-11e4-bbf5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76a144de-bfec-11e4-a10a-705681abff85"], ["organization_id", "76a250cc-bfec-11e4-bbf5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.152187"], ["updated_at", "2015-03-01 08:25:05.152187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '76a250cc-bfec-11e4-bbf5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "76a250cc-bfec-11e4-bbf5-705681abff85"], ["created_at", "2015-03-01 08:25:05.156790"], ["updated_at", "2015-03-01 08:25:05.156790"], ["token", "7PeRyQT_Kt6-Eg5sxcl94G-SHj3GOBFmCpYTAVYlc_Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ye6oHlDKxMAaJkQut3hbCOuVJmTGeQwf44fne.W2Yy20rh2vI9WHe"], ["created_at", "2015-03-01 08:25:05.167999"], ["updated_at", "2015-03-01 08:25:05.167999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.170331"], ["user_id", "76a55920-bfec-11e4-919f-705681abff85"], ["created_at", "2015-03-01 08:25:05.171105"], ["updated_at", "2015-03-01 08:25:05.171105"], ["token", "m6gx-Cg05lNhblAB3ZghIufBG58FTZL35FFJKj4VnS4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.174597"], ["updated_at", "2015-03-01 08:25:05.174597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76a55920-bfec-11e4-919f-705681abff85' AND "clubhouse_memberships"."organization_id" = '76a64b82-bfec-11e4-9545-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76a55920-bfec-11e4-919f-705681abff85"], ["organization_id", "76a64b82-bfec-11e4-9545-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.178346"], ["updated_at", "2015-03-01 08:25:05.178346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '76a64b82-bfec-11e4-9545-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "76a64b82-bfec-11e4-9545-705681abff85"], ["created_at", "2015-03-01 08:25:05.181933"], ["updated_at", "2015-03-01 08:25:05.181933"], ["token", "1lFhKAfsGXvkIvlAmZZW2iMVC9kIBQevbqXs88WaPfc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$jJK5I44lwMSy4WLQvDQ4e.w3UcGE0pO7I4L6kETvNC4cXvGi0YLRS"], ["created_at", "2015-03-01 08:25:05.195122"], ["updated_at", "2015-03-01 08:25:05.195122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.196776"], ["user_id", "76a9679a-bfec-11e4-b99b-705681abff85"], ["created_at", "2015-03-01 08:25:05.197555"], ["updated_at", "2015-03-01 08:25:05.197555"], ["token", "RkMKkS90Rsq6DAiklfKdE-9PuSLtGzRw4A_YhArUIbU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.200855"], ["updated_at", "2015-03-01 08:25:05.200855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76a9679a-bfec-11e4-b99b-705681abff85' AND "clubhouse_memberships"."organization_id" = '76aa52fe-bfec-11e4-afd7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76a9679a-bfec-11e4-b99b-705681abff85"], ["organization_id", "76aa52fe-bfec-11e4-afd7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.205119"], ["updated_at", "2015-03-01 08:25:05.205119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '76aa52fe-bfec-11e4-afd7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "76aa52fe-bfec-11e4-afd7-705681abff85"], ["created_at", "2015-03-01 08:25:05.210058"], ["updated_at", "2015-03-01 08:25:05.210058"], ["token", "OjJ7QAxKdzObaRdYZYH1qaUQ1iO2H1B4fS-wWkDDfbM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$XcudEfSFWzST.MLg3Ro8NeHa4JnKm3FaAp6GlAZYylwFSUrk8cTSi"], ["created_at", "2015-03-01 08:25:05.220397"], ["updated_at", "2015-03-01 08:25:05.220397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.222990"], ["user_id", "76ad4766-bfec-11e4-a801-705681abff85"], ["created_at", "2015-03-01 08:25:05.224113"], ["updated_at", "2015-03-01 08:25:05.224113"], ["token", "otBgShfcSL-1hDg27QmYxEAK8IcT85BlnhFz_t-GqsI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.228163"], ["updated_at", "2015-03-01 08:25:05.228163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76ad4766-bfec-11e4-a801-705681abff85' AND "clubhouse_memberships"."organization_id" = '76ae6fba-bfec-11e4-84f8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76ad4766-bfec-11e4-a801-705681abff85"], ["organization_id", "76ae6fba-bfec-11e4-84f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.231451"], ["updated_at", "2015-03-01 08:25:05.231451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '76ae6fba-bfec-11e4-84f8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "76ae6fba-bfec-11e4-84f8-705681abff85"], ["created_at", "2015-03-01 08:25:05.235008"], ["updated_at", "2015-03-01 08:25:05.235008"], ["token", "WhyB2JYe_ZEm_ITwHLshinM6wYeDXh22Z9_G2xznr5E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/76af826a-bfec-11e4-8f34-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"76af826a-bfec-11e4-8f34-705681abff85", "invitation"=>{"admin"=>true}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$G7JPPQB35sZVIKwUF4Z5Seuzl/qatv2msQSBKdW23ShHgrQAYz.yu"], ["created_at", "2015-03-01 08:25:05.246818"], ["updated_at", "2015-03-01 08:25:05.246818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.248412"], ["user_id", "76b14a3c-bfec-11e4-82ee-705681abff85"], ["created_at", "2015-03-01 08:25:05.249189"], ["updated_at", "2015-03-01 08:25:05.249189"], ["token", "y4LtTJrMYHzupIy63cn8I-eyU0D1dWC34p_WS8ITWQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.252841"], ["updated_at", "2015-03-01 08:25:05.252841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76b14a3c-bfec-11e4-82ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '76b2371c-bfec-11e4-a14f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76b14a3c-bfec-11e4-82ee-705681abff85"], ["organization_id", "76b2371c-bfec-11e4-a14f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.256405"], ["updated_at", "2015-03-01 08:25:05.256405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '76b2371c-bfec-11e4-a14f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "76b2371c-bfec-11e4-a14f-705681abff85"], ["created_at", "2015-03-01 08:25:05.259789"], ["updated_at", "2015-03-01 08:25:05.259789"], ["token", "4vsbb6NANXES21NIlD9pjkYIGPW7_Q0ZnjHiTkZTsxk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$dJmphvM3wT/UEmWqSexJLenCj6ldao7/cDFpwosaVEkm1xHFCSV5S"], ["created_at", "2015-03-01 08:25:05.269694"], ["updated_at", "2015-03-01 08:25:05.269694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.272097"], ["user_id", "76b4d652-bfec-11e4-822a-705681abff85"], ["created_at", "2015-03-01 08:25:05.273053"], ["updated_at", "2015-03-01 08:25:05.273053"], ["token", "EqNPAcb3wtJG4efuerZKK64JtcLGk8ib1qR34n-N3kU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.276928"], ["updated_at", "2015-03-01 08:25:05.276928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76b4d652-bfec-11e4-822a-705681abff85' AND "clubhouse_memberships"."organization_id" = '76b5ea9c-bfec-11e4-819b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76b4d652-bfec-11e4-822a-705681abff85"], ["organization_id", "76b5ea9c-bfec-11e4-819b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.280717"], ["updated_at", "2015-03-01 08:25:05.280717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '76b5ea9c-bfec-11e4-819b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "76b5ea9c-bfec-11e4-819b-705681abff85"], ["created_at", "2015-03-01 08:25:05.284175"], ["updated_at", "2015-03-01 08:25:05.284175"], ["token", "u0TsBmiW1AV3J86Y_xKyb-xNJR5B5-K9JtGT3lwYaxQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/76b700e4-bfec-11e4-830e-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"76b700e4-bfec-11e4-830e-705681abff85", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$XW75jq/EKTfeI1Zg7wGOjeT4c2OVWid2I2cIcKMYhKbsPYM/4Agu2"], ["created_at", "2015-03-01 08:25:05.331614"], ["updated_at", "2015-03-01 08:25:05.331614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.333286"], ["user_id", "76be3b20-bfec-11e4-9450-705681abff85"], ["created_at", "2015-03-01 08:25:05.334066"], ["updated_at", "2015-03-01 08:25:05.334066"], ["token", "I7yePo7Fnxpl5h0auHsq0tvZyVlKV9I3Ko_ARcNKuXk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.337614"], ["updated_at", "2015-03-01 08:25:05.337614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76be3b20-bfec-11e4-9450-705681abff85' AND "clubhouse_memberships"."organization_id" = '76bf2382-bfec-11e4-9dee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76be3b20-bfec-11e4-9450-705681abff85"], ["organization_id", "76bf2382-bfec-11e4-9dee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.340912"], ["updated_at", "2015-03-01 08:25:05.340912"]]  (23.3ms) RELEASE SAVEPOINT active_record_1  (4.5ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '76bf2382-bfec-11e4-9dee-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "76bf2382-bfec-11e4-9dee-705681abff85"], ["created_at", "2015-03-01 08:25:05.375616"], ["updated_at", "2015-03-01 08:25:05.375616"], ["token", "j8AFu64-c8hAxASLkyygCdCdcfGkMJ6NW7UhsywF45Y"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Ge/c6aSuqVR6xof1YyBJ6e5gv3/hIqBCGCzy2b5S/KExByf0eQ9Fu"], ["created_at", "2015-03-01 08:25:05.384923"], ["updated_at", "2015-03-01 08:25:05.384923"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.392284"], ["updated_at", "2015-03-01 08:25:05.392284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76c69ba8-bfec-11e4-837e-705681abff85' AND "clubhouse_memberships"."organization_id" = '76c78eb4-bfec-11e4-9de2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76c69ba8-bfec-11e4-837e-705681abff85"], ["organization_id", "76c78eb4-bfec-11e4-9de2-705681abff85"], ["created_at", "2015-03-01 08:25:05.400831"], ["updated_at", "2015-03-01 08:25:05.400831"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Bg7TYwa4LB2fVi4Nm90v5unXXYV/Hxd3erHQLu580gMLLKoiFY07C"], ["created_at", "2015-03-01 08:25:05.417162"], ["updated_at", "2015-03-01 08:25:05.417162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.419144"], ["user_id", "76cb518e-bfec-11e4-be0b-705681abff85"], ["created_at", "2015-03-01 08:25:05.419988"], ["updated_at", "2015-03-01 08:25:05.419988"], ["token", "llMLJrQQH7IsOuD0GpS_NdpkR7YwWfQL5BzV2JRdFnA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.424665"], ["updated_at", "2015-03-01 08:25:05.424665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76cb518e-bfec-11e4-be0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '76cc6db2-bfec-11e4-8d16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76cb518e-bfec-11e4-be0b-705681abff85"], ["organization_id", "76cc6db2-bfec-11e4-8d16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.428398"], ["updated_at", "2015-03-01 08:25:05.428398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '76cc6db2-bfec-11e4-8d16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "76cc6db2-bfec-11e4-8d16-705681abff85"], ["created_at", "2015-03-01 08:25:05.431896"], ["updated_at", "2015-03-01 08:25:05.431896"], ["token", "PjV40uX1LquK05bouwQhcImA0qEtH5NCETFizkE01D4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$gvIws21.Nhx.eXx9jk/uxOj7Xdar1anxNU9/jsN.dAb0CktFAaWwy"], ["created_at", "2015-03-01 08:25:05.436550"], ["updated_at", "2015-03-01 08:25:05.436550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.439710"], ["updated_at", "2015-03-01 08:25:05.439710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76ce3e1c-bfec-11e4-8c9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '76ceb87e-bfec-11e4-8be2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76ce3e1c-bfec-11e4-8c9f-705681abff85"], ["organization_id", "76ceb87e-bfec-11e4-8be2-705681abff85"], ["created_at", "2015-03-01 08:25:05.443082"], ["updated_at", "2015-03-01 08:25:05.443082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$dzfvpWHqbIeh8CAnhq2DceL4scJsLrnlmogkpd85IdUtXqVHlfvU2"], ["created_at", "2015-03-01 08:25:05.454517"], ["updated_at", "2015-03-01 08:25:05.454517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.457118"], ["user_id", "76d1082c-bfec-11e4-94c0-705681abff85"], ["created_at", "2015-03-01 08:25:05.457929"], ["updated_at", "2015-03-01 08:25:05.457929"], ["token", "tSkadOUIfkkTXto6d6Av3eTn-fBgea6-lGSiU3w0IkI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.461400"], ["updated_at", "2015-03-01 08:25:05.461400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76d1082c-bfec-11e4-94c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '76d20704-bfec-11e4-bb93-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76d1082c-bfec-11e4-94c0-705681abff85"], ["organization_id", "76d20704-bfec-11e4-bb93-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.464878"], ["updated_at", "2015-03-01 08:25:05.464878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '76d20704-bfec-11e4-bb93-705681abff85') LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "76d20704-bfec-11e4-bb93-705681abff85"], ["created_at", "2015-03-01 08:25:05.468225"], ["updated_at", "2015-03-01 08:25:05.468225"], ["token", "LePYVa5-eEDIkKuOnzx-iQYV3t1fvfl08IgfWc_uVi0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$HKUidul2SE7xzmyXKAyEkOlE4YDi/HEH2U298NTibG.5vlrX29prS"], ["created_at", "2015-03-01 08:25:05.479798"], ["updated_at", "2015-03-01 08:25:05.479798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.481363"], ["user_id", "76d4d718-bfec-11e4-bb5c-705681abff85"], ["created_at", "2015-03-01 08:25:05.482134"], ["updated_at", "2015-03-01 08:25:05.482134"], ["token", "nXwXR3drkjvil339ixxvcUqJHCiRTPlRvKHRBNo1Y5Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.485409"], ["updated_at", "2015-03-01 08:25:05.485409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76d4d718-bfec-11e4-bb5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '76d5af76-bfec-11e4-bbf7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76d4d718-bfec-11e4-bb5c-705681abff85"], ["organization_id", "76d5af76-bfec-11e4-bbf7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:05.488891"], ["updated_at", "2015-03-01 08:25:05.488891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '76d5af76-bfec-11e4-bbf7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "76d5af76-bfec-11e4-bbf7-705681abff85"], ["created_at", "2015-03-01 08:25:05.493109"], ["updated_at", "2015-03-01 08:25:05.493109"], ["token", "gqrujVaHM7P8-HwJgFpKXWNlPvm1f2XAyv_TpSS4nio"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/76d6e382-bfec-11e4-a0d8-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"76d6e382-bfec-11e4-a0d8-705681abff85", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$8EqYzwj89NRDbMKSY4SCAepXi9rfRDgoYa2MwezxmbCH7kNFpRqlC"], ["created_at", "2015-03-01 08:25:05.511925"], ["updated_at", "2015-03-01 08:25:05.511925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.515429"], ["updated_at", "2015-03-01 08:25:05.515429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76d9c156-bfec-11e4-b5c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '76da455e-bfec-11e4-bed0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76d9c156-bfec-11e4-b5c2-705681abff85"], ["organization_id", "76da455e-bfec-11e4-bed0-705681abff85"], ["created_at", "2015-03-01 08:25:05.518190"], ["updated_at", "2015-03-01 08:25:05.518190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "76d9c156-bfec-11e4-b5c2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "76da455e-bfec-11e4-bed0-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76d9c156-bfec-11e4-b5c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '76da455e-bfec-11e4-bed0-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "76da455e-bfec-11e4-bed0-705681abff86"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76d9c156-bfec-11e4-b5c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '76da455e-bfec-11e4-bed0-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$A5Cxj2P9b.LVfaiWheO6y.SzhhP7XZNTpxHE2mpvOeZivBt3pUZ/S"], ["created_at", "2015-03-01 08:25:05.551801"], ["updated_at", "2015-03-01 08:25:05.551801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.554083"], ["user_id", "76dfe5cc-bfec-11e4-b195-705681abff85"], ["created_at", "2015-03-01 08:25:05.554961"], ["updated_at", "2015-03-01 08:25:05.554961"], ["token", "1Ll5uRl_pDHf1S4qPSujsgaRkRpKwefviLIBBRTUrTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.560325"], ["updated_at", "2015-03-01 08:25:05.560325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76dfe5cc-bfec-11e4-b195-705681abff85' AND "clubhouse_memberships"."organization_id" = '76e12bc6-bfec-11e4-9949-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76dfe5cc-bfec-11e4-b195-705681abff85"], ["organization_id", "76e12bc6-bfec-11e4-9949-705681abff85"], ["created_at", "2015-03-01 08:25:05.565584"], ["updated_at", "2015-03-01 08:25:05.565584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$J3AjS8nBNDoQqWXbaBZnWeAwW9fzc..7zexIprQ8lOXUJb6.6Q9Dq"], ["created_at", "2015-03-01 08:25:05.587490"], ["updated_at", "2015-03-01 08:25:05.587490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.589816"], ["user_id", "76e55a52-bfec-11e4-95c6-705681abff85"], ["created_at", "2015-03-01 08:25:05.590896"], ["updated_at", "2015-03-01 08:25:05.590896"], ["token", "_lHLKBUzlDbvljEnl9h9aMAJ3ruReMsdrWCop7evZ10"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.597897"], ["updated_at", "2015-03-01 08:25:05.597897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76e55a52-bfec-11e4-95c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '76e6e656-bfec-11e4-9467-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76e55a52-bfec-11e4-95c6-705681abff85"], ["organization_id", "76e6e656-bfec-11e4-9467-705681abff85"], ["created_at", "2015-03-01 08:25:05.602347"], ["updated_at", "2015-03-01 08:25:05.602347"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-7" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$3.Pz3e0zAJOww3efnNqr2uZP1QkluyKPAthpXt7D4FNukvbLbZPkC"], ["created_at", "2015-03-01 08:25:05.617044"], ["updated_at", "2015-03-01 08:25:05.617044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.619503"], ["user_id", "76e9d83e-bfec-11e4-b25e-705681abff85"], ["created_at", "2015-03-01 08:25:05.620663"], ["updated_at", "2015-03-01 08:25:05.620663"], ["token", "dPWyKajHuSKIyKCFjw7rGTpESNBlhm4h-3dXX45lG8A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.626228"], ["updated_at", "2015-03-01 08:25:05.626228"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76e9d83e-bfec-11e4-b25e-705681abff85' AND "clubhouse_memberships"."organization_id" = '76eb4192-bfec-11e4-a909-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76e9d83e-bfec-11e4-b25e-705681abff85"], ["organization_id", "76eb4192-bfec-11e4-a909-705681abff85"], ["created_at", "2015-03-01 08:25:05.631024"], ["updated_at", "2015-03-01 08:25:05.631024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 400 Bad Request in 2ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$7HHUDT2Sm19Jj9tMqVWPP.taUfdDG1M3GiTQGZ0nUDRuO1Yyjwghy"], ["created_at", "2015-03-01 08:25:05.643423"], ["updated_at", "2015-03-01 08:25:05.643423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.645494"], ["user_id", "76edd498-bfec-11e4-80dc-705681abff85"], ["created_at", "2015-03-01 08:25:05.646409"], ["updated_at", "2015-03-01 08:25:05.646409"], ["token", "rYWbJy__UzRsNrbgdJRvGX41UoyEIER6PlPCp48IYC4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.649925"], ["updated_at", "2015-03-01 08:25:05.649925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76edd498-bfec-11e4-80dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '76eecae2-bfec-11e4-ae6a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76edd498-bfec-11e4-80dc-705681abff85"], ["organization_id", "76eecae2-bfec-11e4-ae6a-705681abff85"], ["created_at", "2015-03-01 08:25:05.653169"], ["updated_at", "2015-03-01 08:25:05.653169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}}  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.663936"], ["updated_at", "2015-03-01 08:25:05.663936"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "76f0f1c8-bfec-11e4-85cf-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" = '76f0f1c8-bfec-11e4-85cf-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$maLkkuubFvELglAvX4CZ0.9zogMeoiXcQ6o5eM3CcUJrjFtWvvqb6"], ["created_at", "2015-03-01 08:25:05.682362"], ["updated_at", "2015-03-01 08:25:05.682362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.684391"], ["user_id", "76f3c1aa-bfec-11e4-919f-705681abff85"], ["created_at", "2015-03-01 08:25:05.685885"], ["updated_at", "2015-03-01 08:25:05.685885"], ["token", "7D3Es5MCXEngY1LTcGcl2U6svFhfYL310cGsm_mpufk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.690327"], ["updated_at", "2015-03-01 08:25:05.690327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76f3c1aa-bfec-11e4-919f-705681abff85' AND "clubhouse_memberships"."organization_id" = '76f4f8f4-bfec-11e4-bfa1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76f3c1aa-bfec-11e4-919f-705681abff85"], ["organization_id", "76f4f8f4-bfec-11e4-bfa1-705681abff85"], ["created_at", "2015-03-01 08:25:05.693885"], ["updated_at", "2015-03-01 08:25:05.693885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}}  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 4ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Aro60c9wtKjz850mv/G50eKWer..NLbVITjSM0WhGccAzYAXpW6He"], ["created_at", "2015-03-01 08:25:05.707427"], ["updated_at", "2015-03-01 08:25:05.707427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.709056"], ["user_id", "76f7938e-bfec-11e4-b6ec-705681abff85"], ["created_at", "2015-03-01 08:25:05.709844"], ["updated_at", "2015-03-01 08:25:05.709844"], ["token", "ygtr3vkhH1swLMj41VpnUNPw5QImwxXp4ytVOfuXyrs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.713383"], ["updated_at", "2015-03-01 08:25:05.713383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76f7938e-bfec-11e4-b6ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '76f88500-bfec-11e4-84c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76f7938e-bfec-11e4-b6ec-705681abff85"], ["organization_id", "76f88500-bfec-11e4-84c9-705681abff85"], ["created_at", "2015-03-01 08:25:05.717265"], ["updated_at", "2015-03-01 08:25:05.717265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$estyuC3moW5eZZ0CWy0lieknsBiOCg/YP7mbshp6vbPSVMFFvftpS"], ["created_at", "2015-03-01 08:25:05.728275"], ["updated_at", "2015-03-01 08:25:05.728275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.729954"], ["user_id", "76fac2de-bfec-11e4-8555-705681abff85"], ["created_at", "2015-03-01 08:25:05.730773"], ["updated_at", "2015-03-01 08:25:05.730773"], ["token", "3KSemmryO4tsfK8o9dZDiPRsEByI8mrBSQacMXpCppc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.734239"], ["updated_at", "2015-03-01 08:25:05.734239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76fac2de-bfec-11e4-8555-705681abff85' AND "clubhouse_memberships"."organization_id" = '76fba9e2-bfec-11e4-bee3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76fac2de-bfec-11e4-8555-705681abff85"], ["organization_id", "76fba9e2-bfec-11e4-bee3-705681abff85"], ["created_at", "2015-03-01 08:25:05.737609"], ["updated_at", "2015-03-01 08:25:05.737609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/76fba9e2-bfec-11e4-bee3-705681abff85" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"76fba9e2-bfec-11e4-bee3-705681abff85", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$hUsNij.6SgAmNDLyyDaTDunI52vaVrp9LjjyaQqPC.awZxYthL1ly"], ["created_at", "2015-03-01 08:25:05.747876"], ["updated_at", "2015-03-01 08:25:05.747876"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.757073"], ["user_id", "76fdc11e-bfec-11e4-aa20-705681abff85"], ["created_at", "2015-03-01 08:25:05.758072"], ["updated_at", "2015-03-01 08:25:05.758072"], ["token", "G8mQh8VBo5LBSJ0vwZJKX5lkODd0b6oFf-IE7v35C1I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.762389"], ["updated_at", "2015-03-01 08:25:05.762389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76fdc11e-bfec-11e4-aa20-705681abff85' AND "clubhouse_memberships"."organization_id" = '76fff812-bfec-11e4-8a4d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76fdc11e-bfec-11e4-aa20-705681abff85"], ["organization_id", "76fff812-bfec-11e4-8a4d-705681abff85"], ["created_at", "2015-03-01 08:25:05.765922"], ["updated_at", "2015-03-01 08:25:05.765922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$ZCkI40QAkfiBm2ZFGoWlh.Uf3nEkYGUVw6aHOV7FGDI3yx53F.d.m"], ["created_at", "2015-03-01 08:25:05.778392"], ["updated_at", "2015-03-01 08:25:05.778392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.780080"], ["user_id", "770268f4-bfec-11e4-b0c1-705681abff85"], ["created_at", "2015-03-01 08:25:05.781305"], ["updated_at", "2015-03-01 08:25:05.781305"], ["token", "vcrQ20TrKqhB1I5Ior3CZC018UERae8F0zV3qOpdSD0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.785635"], ["updated_at", "2015-03-01 08:25:05.785635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '770268f4-bfec-11e4-b0c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '77037fdc-bfec-11e4-9947-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "770268f4-bfec-11e4-b0c1-705681abff85"], ["organization_id", "77037fdc-bfec-11e4-9947-705681abff85"], ["created_at", "2015-03-01 08:25:05.788836"], ["updated_at", "2015-03-01 08:25:05.788836"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-14" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$UzbMY09F.1tyqwfVvc9tTOvpR3drAUQ6.M.awPPSo.IDZNYGmee42"], ["created_at", "2015-03-01 08:25:05.799132"], ["updated_at", "2015-03-01 08:25:05.799132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.801031"], ["user_id", "7705924a-bfec-11e4-a74c-705681abff85"], ["created_at", "2015-03-01 08:25:05.802268"], ["updated_at", "2015-03-01 08:25:05.802268"], ["token", "Siits_bdXdlvVHgnhO9k-5sE4_MCbFH2CVP9GpgnlIo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.806764"], ["updated_at", "2015-03-01 08:25:05.806764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7705924a-bfec-11e4-a74c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7706c76e-bfec-11e4-86b1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7705924a-bfec-11e4-a74c-705681abff85"], ["organization_id", "7706c76e-bfec-11e4-86b1-705681abff85"], ["created_at", "2015-03-01 08:25:05.810857"], ["updated_at", "2015-03-01 08:25:05.810857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$plAZkfBmmvUNysbZY.p65.BcAiVkN/c9OXg28JQYjOhNEuYuH/F8a"], ["created_at", "2015-03-01 08:25:05.815655"], ["updated_at", "2015-03-01 08:25:05.815655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.818946"], ["updated_at", "2015-03-01 08:25:05.818946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '770815b0-bfec-11e4-8962-705681abff85' AND "clubhouse_memberships"."organization_id" = '77089562-bfec-11e4-ac16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "770815b0-bfec-11e4-8962-705681abff85"], ["organization_id", "77089562-bfec-11e4-ac16-705681abff85"], ["created_at", "2015-03-01 08:25:05.822199"], ["updated_at", "2015-03-01 08:25:05.822199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$a3NrXibS/iLLu.m0bInpO.DGa1IbauiAmPvDYWvwelhGLBms7f2D."], ["created_at", "2015-03-01 08:25:05.833719"], ["updated_at", "2015-03-01 08:25:05.833719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.835388"], ["user_id", "770ada52-bfec-11e4-ba5e-705681abff85"], ["created_at", "2015-03-01 08:25:05.836213"], ["updated_at", "2015-03-01 08:25:05.836213"], ["token", "RQheIzxVZsU5ye5jpEkqxuHQyIQyzr_gomcLDeTQ_gc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.839629"], ["updated_at", "2015-03-01 08:25:05.839629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '770ada52-bfec-11e4-ba5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '770bbf6c-bfec-11e4-95c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "770ada52-bfec-11e4-ba5e-705681abff85"], ["organization_id", "770bbf6c-bfec-11e4-95c7-705681abff85"], ["created_at", "2015-03-01 08:25:05.843099"], ["updated_at", "2015-03-01 08:25:05.843099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$0ciKGmHeaeo2Z3zAbvOgc.tvwUsr0KeUXwO0zmYhX2y56sbHDcWui"], ["created_at", "2015-03-01 08:25:05.847273"], ["updated_at", "2015-03-01 08:25:05.847273"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.852080"], ["updated_at", "2015-03-01 08:25:05.852080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '770ce6f8-bfec-11e4-bec6-705681abff85' AND "clubhouse_memberships"."organization_id" = '770da3f4-bfec-11e4-a3b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "770ce6f8-bfec-11e4-bec6-705681abff85"], ["organization_id", "770da3f4-bfec-11e4-a3b7-705681abff85"], ["created_at", "2015-03-01 08:25:05.855237"], ["updated_at", "2015-03-01 08:25:05.855237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$KTeHFF771YfOMj.DXCfF0O9d828tz.PRBjuI9bzsCAOEbrxauQ0uy"], ["created_at", "2015-03-01 08:25:05.865666"], ["updated_at", "2015-03-01 08:25:05.865666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.867655"], ["user_id", "770fc08a-bfec-11e4-948c-705681abff85"], ["created_at", "2015-03-01 08:25:05.868505"], ["updated_at", "2015-03-01 08:25:05.868505"], ["token", "zoeS3VHBNF_qX1lFKvWiwDo1UGeNzw4x6QDFRXyqAYY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.872021"], ["updated_at", "2015-03-01 08:25:05.872021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '770fc08a-bfec-11e4-948c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7710afe0-bfec-11e4-98eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "770fc08a-bfec-11e4-948c-705681abff85"], ["organization_id", "7710afe0-bfec-11e4-98eb-705681abff85"], ["created_at", "2015-03-01 08:25:05.876285"], ["updated_at", "2015-03-01 08:25:05.876285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "name"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$.ba9VV4Tfn89V0H8sl/.eOXYvXiFKgy5a.BOsD/BN3.o/zvjhH3H."], ["created_at", "2015-03-01 08:25:05.890498"], ["updated_at", "2015-03-01 08:25:05.890498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.892627"], ["user_id", "77139598-bfec-11e4-bd85-705681abff85"], ["created_at", "2015-03-01 08:25:05.893494"], ["updated_at", "2015-03-01 08:25:05.893494"], ["token", "mlr7kug1SENtQB5PxQ9mmT2_RGapHpuzO0_X2Nmp0A4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.896901"], ["updated_at", "2015-03-01 08:25:05.896901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77139598-bfec-11e4-bd85-705681abff85' AND "clubhouse_memberships"."organization_id" = '77147b8e-bfec-11e4-9b96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77139598-bfec-11e4-bd85-705681abff85"], ["organization_id", "77147b8e-bfec-11e4-9b96-705681abff85"], ["created_at", "2015-03-01 08:25:05.900119"], ["updated_at", "2015-03-01 08:25:05.900119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$f50LvvjYJjxBYcmNwfjqCu3ob7S3/8czAQ8RS5t1eHnhij.Xma3xG"], ["created_at", "2015-03-01 08:25:05.908953"], ["updated_at", "2015-03-01 08:25:05.908953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.910592"], ["user_id", "7716544a-bfec-11e4-8895-705681abff85"], ["created_at", "2015-03-01 08:25:05.911427"], ["updated_at", "2015-03-01 08:25:05.911427"], ["token", "z0t97xllfbzo6RjV9TLXD7-zJab_ZuEBAnQorWYt2_M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.914763"], ["updated_at", "2015-03-01 08:25:05.914763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7716544a-bfec-11e4-8895-705681abff85' AND "clubhouse_memberships"."organization_id" = '7717337e-bfec-11e4-a10c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7716544a-bfec-11e4-8895-705681abff85"], ["organization_id", "7717337e-bfec-11e4-a10c-705681abff85"], ["created_at", "2015-03-01 08:25:05.918014"], ["updated_at", "2015-03-01 08:25:05.918014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$J7lDVH76ax3K2K7jlv.JVeuwT4Cv2MSI3qZVTMvAA7ngaWOFltPGK"], ["created_at", "2015-03-01 08:25:05.927434"], ["updated_at", "2015-03-01 08:25:05.927434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.929130"], ["user_id", "7719277e-bfec-11e4-b336-705681abff85"], ["created_at", "2015-03-01 08:25:05.929938"], ["updated_at", "2015-03-01 08:25:05.929938"], ["token", "a9QtO1gQ0RpsHIxdlELYBNFGr2EqX6RPfxCd76BJE-U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.933301"], ["updated_at", "2015-03-01 08:25:05.933301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7719277e-bfec-11e4-b336-705681abff85' AND "clubhouse_memberships"."organization_id" = '771a091e-bfec-11e4-a2d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7719277e-bfec-11e4-b336-705681abff85"], ["organization_id", "771a091e-bfec-11e4-a2d6-705681abff85"], ["created_at", "2015-03-01 08:25:05.936492"], ["updated_at", "2015-03-01 08:25:05.936492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 400 Bad Request in 2ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$J43PUA53ygeL/2Utq95WE.dXPZS9AVItzmyv3AOS9rwLAXMnqXOWC"], ["created_at", "2015-03-01 08:25:05.949316"], ["updated_at", "2015-03-01 08:25:05.949316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.951001"], ["user_id", "771c7d8e-bfec-11e4-9abc-705681abff85"], ["created_at", "2015-03-01 08:25:05.951798"], ["updated_at", "2015-03-01 08:25:05.951798"], ["token", "63m8QtscXtl5CKn_3Koh-0-uNnkPqaBUbUdVvoPTpz4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.955256"], ["updated_at", "2015-03-01 08:25:05.955256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '771c7d8e-bfec-11e4-9abc-705681abff85' AND "clubhouse_memberships"."organization_id" = '771d6320-bfec-11e4-a90e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "771c7d8e-bfec-11e4-9abc-705681abff85"], ["organization_id", "771d6320-bfec-11e4-a90e-705681abff85"], ["created_at", "2015-03-01 08:25:05.958967"], ["updated_at", "2015-03-01 08:25:05.958967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$sOr9VMQZdefYY1Y36xC3veUkVihEUgXTDa4cmyb0JO/MrJKZmh6my"], ["created_at", "2015-03-01 08:25:05.969534"], ["updated_at", "2015-03-01 08:25:05.969534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.971219"], ["user_id", "771f93ac-bfec-11e4-af76-705681abff85"], ["created_at", "2015-03-01 08:25:05.972014"], ["updated_at", "2015-03-01 08:25:05.972014"], ["token", "n0ftHqIra2d7CuBJNoOTWhKoh1ikTi9iFzkkf7ReFto"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.975529"], ["updated_at", "2015-03-01 08:25:05.975529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '771f93ac-bfec-11e4-af76-705681abff85' AND "clubhouse_memberships"."organization_id" = '772083f2-bfec-11e4-9ba2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "771f93ac-bfec-11e4-af76-705681abff85"], ["organization_id", "772083f2-bfec-11e4-9ba2-705681abff85"], ["created_at", "2015-03-01 08:25:05.979548"], ["updated_at", "2015-03-01 08:25:05.979548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-03-01 00:25:05 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>nil}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$C4oeNmY4vLSa.w8f/vmfk.BavMfJIhHN.D9PbrclRuNhh0s/Diqiy"], ["created_at", "2015-03-01 08:25:05.992429"], ["updated_at", "2015-03-01 08:25:05.992429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:05.994377"], ["user_id", "772319be-bfec-11e4-9ab9-705681abff85"], ["created_at", "2015-03-01 08:25:05.995165"], ["updated_at", "2015-03-01 08:25:05.995165"], ["token", "bUzZQxwzkF8Muda7ZU_EUw3vePgb8y4nINQJKjXpEUE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:05.998453"], ["updated_at", "2015-03-01 08:25:05.998453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '772319be-bfec-11e4-9ab9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7723f8c0-bfec-11e4-b3bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "772319be-bfec-11e4-9ab9-705681abff85"], ["organization_id", "7723f8c0-bfec-11e4-b3bc-705681abff85"], ["created_at", "2015-03-01 08:25:06.001801"], ["updated_at", "2015-03-01 08:25:06.001801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$dtteC58oDheHtVy5p31Vg.5DZ2UDOVJPNIktvPX7gz.cTTg8ZTPe2"], ["created_at", "2015-03-01 08:25:06.011503"], ["updated_at", "2015-03-01 08:25:06.011503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.013151"], ["user_id", "7725f882-bfec-11e4-b888-705681abff85"], ["created_at", "2015-03-01 08:25:06.013932"], ["updated_at", "2015-03-01 08:25:06.013932"], ["token", "aeW4Mv9bGzeIEgP9hBseiYjcXW-xWFityE2cqO1R6us"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.017224"], ["updated_at", "2015-03-01 08:25:06.017224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7725f882-bfec-11e4-b888-705681abff85' AND "clubhouse_memberships"."organization_id" = '7726d4b4-bfec-11e4-89fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7725f882-bfec-11e4-b888-705681abff85"], ["organization_id", "7726d4b4-bfec-11e4-89fb-705681abff85"], ["created_at", "2015-03-01 08:25:06.020540"], ["updated_at", "2015-03-01 08:25:06.020540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/7726d4b4-bfec-11e4-89fb-705681abff85" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"7726d4b4-bfec-11e4-89fb-705681abff85", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$4njK8xvup2hv7Sn22QZGX.BUq55yxomAuekjj/rH8meKxdFr3qWqa"], ["created_at", "2015-03-01 08:25:06.031181"], ["updated_at", "2015-03-01 08:25:06.031181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.032768"], ["user_id", "7728fa0a-bfec-11e4-881f-705681abff85"], ["created_at", "2015-03-01 08:25:06.033549"], ["updated_at", "2015-03-01 08:25:06.033549"], ["token", "nEtXRXntjBOyvgQYK25gz7gFYO0JyqsbBpdURITgMgU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.036842"], ["updated_at", "2015-03-01 08:25:06.036842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7728fa0a-bfec-11e4-881f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7729d740-bfec-11e4-911a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7728fa0a-bfec-11e4-881f-705681abff85"], ["organization_id", "7729d740-bfec-11e4-911a-705681abff85"], ["created_at", "2015-03-01 08:25:06.040246"], ["updated_at", "2015-03-01 08:25:06.040246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 400 Bad Request in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$LkcDhSHe.jgBgzL1L8j50ePvjW46ZIGYftgNqhNi4prRJWLlCnLwO"], ["created_at", "2015-03-01 08:25:06.051313"], ["updated_at", "2015-03-01 08:25:06.051313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.052903"], ["user_id", "772c0cae-bfec-11e4-96b1-705681abff85"], ["created_at", "2015-03-01 08:25:06.053685"], ["updated_at", "2015-03-01 08:25:06.053685"], ["token", "T7iiZ_RLmFZlLtDqFYjuZzJa5SIXjCr6Fgay2pXAPkQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.057241"], ["updated_at", "2015-03-01 08:25:06.057241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '772c0cae-bfec-11e4-96b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '772cf704-bfec-11e4-a88f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "772c0cae-bfec-11e4-96b1-705681abff85"], ["organization_id", "772cf704-bfec-11e4-a88f-705681abff85"], ["created_at", "2015-03-01 08:25:06.060852"], ["updated_at", "2015-03-01 08:25:06.060852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/772cf704-bfec-11e4-a88f-705681abff85" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"772cf704-bfec-11e4-a88f-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$kgYeqhEHIAD8m61KWQRKgOnUDhakt/bRX9Arhz5FyM0mIaCTjjOjG"], ["created_at", "2015-03-01 08:25:06.072192"], ["updated_at", "2015-03-01 08:25:06.072192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.074703"], ["user_id", "772f51c0-bfec-11e4-882e-705681abff85"], ["created_at", "2015-03-01 08:25:06.075499"], ["updated_at", "2015-03-01 08:25:06.075499"], ["token", "HPY2vOf2cqtZ6sOQki4oaS5wVspJ4xx8Kb0VHMbK0sM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.081190"], ["updated_at", "2015-03-01 08:25:06.081190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '772f51c0-bfec-11e4-882e-705681abff85' AND "clubhouse_memberships"."organization_id" = '77309bde-bfec-11e4-a9c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "772f51c0-bfec-11e4-882e-705681abff85"], ["organization_id", "77309bde-bfec-11e4-a9c1-705681abff85"], ["created_at", "2015-03-01 08:25:06.084539"], ["updated_at", "2015-03-01 08:25:06.084539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/77309bde-bfec-11e4-a9c1-705681abff85" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"77309bde-bfec-11e4-a9c1-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.308183"], ["updated_at", "2015-03-01 08:25:06.308183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '77533d42-bfec-11e4-84ce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "77533d42-bfec-11e4-84ce-705681abff85"], ["created_at", "2015-03-01 08:25:06.312390"], ["updated_at", "2015-03-01 08:25:06.312390"], ["token", "CvrREJVTsIpySy4f3lbtH-yFpHcSIl7wqdVS1L7HaTE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) Clubhouse::Mailer#invitation: processed outbound mail in 21.8ms Sent mail to john@example.com (33.8ms) Date: Sun, 01 Mar 2015 00:25:06 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cce2589b5_137ae3fc3ed057be82775c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/CvrREJVTsIpySy4f3lbtH-yFpHcSIl7wqdVS1L7HaTE If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.389087"], ["updated_at", "2015-03-01 08:25:06.389087"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '775fb612-bfec-11e4-8e7a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "775fb612-bfec-11e4-8e7a-705681abff85"], ["created_at", "2015-03-01 08:25:06.396333"], ["updated_at", "2015-03-01 08:25:06.396333"], ["token", "iT8ZsB12Ls-wJvW5SpUqSiTpTR0pxwveiYHx-ChqNU0"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms Sent mail to john@example.com (3.4ms) Date: Sun, 01 Mar 2015 00:25:06 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cce262740_137ae3fc3ed057be8278bd@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/iT8ZsB12Ls-wJvW5SpUqSiTpTR0pxwveiYHx-ChqNU0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.421582"], ["updated_at", "2015-03-01 08:25:06.421582"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7764a42e-bfec-11e4-9973-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7764a42e-bfec-11e4-9973-705681abff85"], ["created_at", "2015-03-01 08:25:06.432159"], ["updated_at", "2015-03-01 08:25:06.432159"], ["token", "4PChH_yAn8qFb1NV5EpSDWsEZrtlGSZWeHuTY-9z--I"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms Sent mail to john@example.com (3.0ms) Date: Sun, 01 Mar 2015 00:25:06 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cce26b0e8_137ae3fc3ed057be827927@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/4PChH_yAn8qFb1NV5EpSDWsEZrtlGSZWeHuTY-9z--I If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.447131"], ["updated_at", "2015-03-01 08:25:06.447131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7768868e-bfec-11e4-84ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7768868e-bfec-11e4-84ba-705681abff85"], ["created_at", "2015-03-01 08:25:06.453258"], ["updated_at", "2015-03-01 08:25:06.453258"], ["token", "wcNWHLrD4ZU0l9-ellO32R1LjS5Vx0Qv9oZJvvKVx4k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.9ms) Date: Sun, 01 Mar 2015 00:25:06 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cce26f8b0_137ae3fc3ed057be828029@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/wcNWHLrD4ZU0l9-ellO32R1LjS5Vx0Qv9oZJvvKVx4k If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.467889"], ["updated_at", "2015-03-01 08:25:06.467889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '776ba260-bfec-11e4-95e7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "776ba260-bfec-11e4-95e7-705681abff85"], ["created_at", "2015-03-01 08:25:06.472347"], ["updated_at", "2015-03-01 08:25:06.472347"], ["token", "49j4dKpGmbwwsGbnW2BqJX77Pd4tuftkOUAm0EmATVw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "776ba260-bfec-11e4-95e7-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '776ba260-bfec-11e4-95e7-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "776ba260-bfec-11e4-95e7-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '776ba260-bfec-11e4-95e7-705681abff86') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.493933"], ["updated_at", "2015-03-01 08:25:06.493933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '776f9550-bfec-11e4-87f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "776f9550-bfec-11e4-87f5-705681abff85"], ["created_at", "2015-03-01 08:25:06.496866"], ["updated_at", "2015-03-01 08:25:06.496866"], ["token", "EaTXnVOtjpekDz9Xt6lIag68prpUIBlK7hBzVMqIhAA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$AWB324DcdqMULwXDYTqc1..I8kH2MTqscjRHh0CHCdYfQdGbgJWum"], ["created_at", "2015-03-01 08:25:06.514259"], ["updated_at", "2015-03-01 08:25:06.514259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$FEr9CB7H8SYP2jxNQAyxte1UHDfcqGewK6TXEOU6O8G9feEhTO50e"], ["created_at", "2015-03-01 08:25:06.518377"], ["updated_at", "2015-03-01 08:25:06.518377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.519838"], ["user_id", "7772ae8e-bfec-11e4-989f-705681abff85"], ["created_at", "2015-03-01 08:25:06.520587"], ["updated_at", "2015-03-01 08:25:06.520587"], ["token", "WRCDvltONA1nZj2mGh27nm4o-_LPz7xScp_7C1eMchU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.523870"], ["updated_at", "2015-03-01 08:25:06.523870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7772ae8e-bfec-11e4-989f-705681abff85' AND "clubhouse_memberships"."organization_id" = '77742336-bfec-11e4-88b7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7772ae8e-bfec-11e4-989f-705681abff85"], ["organization_id", "77742336-bfec-11e4-88b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.527395"], ["updated_at", "2015-03-01 08:25:06.527395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77734cf4-bfec-11e4-83f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '77742336-bfec-11e4-88b7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77734cf4-bfec-11e4-83f5-705681abff85"], ["organization_id", "77742336-bfec-11e4-88b7-705681abff85"], ["created_at", "2015-03-01 08:25:06.531392"], ["updated_at", "2015-03-01 08:25:06.531392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$YkLY.5i0Ll0FxH/E2TqcHO.yMDg1GjkM7htDJ6pOUzNQHBBpv02RG"], ["created_at", "2015-03-01 08:25:06.548274"], ["updated_at", "2015-03-01 08:25:06.548274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$eAeBnSv3PIPUj3/HWMYR2.J/VAsUG55qZgWCsJZomY3drxaoliAQC"], ["created_at", "2015-03-01 08:25:06.552816"], ["updated_at", "2015-03-01 08:25:06.552816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.554333"], ["user_id", "7777e76e-bfec-11e4-895b-705681abff85"], ["created_at", "2015-03-01 08:25:06.555113"], ["updated_at", "2015-03-01 08:25:06.555113"], ["token", "OlIJQWlSUjz0Dxq-fEqG_0ukPW7JKvQzOPf5eoO4N_E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.558326"], ["updated_at", "2015-03-01 08:25:06.558326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7777e76e-bfec-11e4-895b-705681abff85' AND "clubhouse_memberships"."organization_id" = '777964cc-bfec-11e4-a8da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7777e76e-bfec-11e4-895b-705681abff85"], ["organization_id", "777964cc-bfec-11e4-a8da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.561889"], ["updated_at", "2015-03-01 08:25:06.561889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77789024-bfec-11e4-8f1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '777964cc-bfec-11e4-a8da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77789024-bfec-11e4-8f1d-705681abff85"], ["organization_id", "777964cc-bfec-11e4-a8da-705681abff85"], ["created_at", "2015-03-01 08:25:06.564884"], ["updated_at", "2015-03-01 08:25:06.564884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/777a6a7a-bfec-11e4-ac1a-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"777a6a7a-bfec-11e4-ac1a-705681abff85", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$VDbVuGvSpfNf1S0DISTyqO9XtFtFGzuuap4i8rRYJAc/F53VYdg1m"], ["created_at", "2015-03-01 08:25:06.574419"], ["updated_at", "2015-03-01 08:25:06.574419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$cZ5SYMeG7HxFnehlbLituOEm4sij60MHVEHpu0IAsf/TtoNRa48KK"], ["created_at", "2015-03-01 08:25:06.578459"], ["updated_at", "2015-03-01 08:25:06.578459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.579956"], ["user_id", "777bdd06-bfec-11e4-8f2e-705681abff85"], ["created_at", "2015-03-01 08:25:06.580756"], ["updated_at", "2015-03-01 08:25:06.580756"], ["token", "V0GiOSeiPD6DhFVKBUp6tlVNWhHs6Mhb7h0CLOQqMvg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.585646"], ["updated_at", "2015-03-01 08:25:06.585646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '777bdd06-bfec-11e4-8f2e-705681abff85' AND "clubhouse_memberships"."organization_id" = '777d9240-bfec-11e4-9652-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "777bdd06-bfec-11e4-8f2e-705681abff85"], ["organization_id", "777d9240-bfec-11e4-9652-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.588781"], ["updated_at", "2015-03-01 08:25:06.588781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '777c7702-bfec-11e4-b3dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '777d9240-bfec-11e4-9652-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "777c7702-bfec-11e4-b3dd-705681abff85"], ["organization_id", "777d9240-bfec-11e4-9652-705681abff85"], ["created_at", "2015-03-01 08:25:06.591861"], ["updated_at", "2015-03-01 08:25:06.591861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$Xf0b03lRfNN7Pr8uqktmoOht3rqQFUXmJco4rd0L3qxwLCAAFCpE."], ["created_at", "2015-03-01 08:25:06.601391"], ["updated_at", "2015-03-01 08:25:06.601391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.604179"], ["user_id", "77801114-bfec-11e4-ae99-705681abff85"], ["created_at", "2015-03-01 08:25:06.605148"], ["updated_at", "2015-03-01 08:25:06.605148"], ["token", "oPNOlBtn_JhtPOJlEKtRuLuojwqiC-YjGJRVFRB9tUo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '777d9240-bfec-11e4-9652-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "777d9240-bfec-11e4-9652-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.608774"], ["updated_at", "2015-03-01 08:25:06.608774"], ["token", "uDSWAz-atG_aE7ngExfg-JSjotHMAqm8e4WXSOalYik"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$Md.9jkwhRejdHwFDuWKLqeygQ9ahfVoSOkNx16JL/8lPnOYXP4tE."], ["created_at", "2015-03-01 08:25:06.619326"], ["updated_at", "2015-03-01 08:25:06.619326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$RAk/9v9o7IL9nVeTYok1HeZRGQxo19uqoBdLmIE4A.qMtpkEOeODC"], ["created_at", "2015-03-01 08:25:06.623478"], ["updated_at", "2015-03-01 08:25:06.623478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.624880"], ["user_id", "7782b7ac-bfec-11e4-858b-705681abff85"], ["created_at", "2015-03-01 08:25:06.625615"], ["updated_at", "2015-03-01 08:25:06.625615"], ["token", "0YIVygjZ2veTHqXB6mFoZ8ikzbauFtIYrADu8Y2zh5s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.629140"], ["updated_at", "2015-03-01 08:25:06.629140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7782b7ac-bfec-11e4-858b-705681abff85' AND "clubhouse_memberships"."organization_id" = '778434e2-bfec-11e4-bd74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7782b7ac-bfec-11e4-858b-705681abff85"], ["organization_id", "778434e2-bfec-11e4-bd74-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.632330"], ["updated_at", "2015-03-01 08:25:06.632330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77835608-bfec-11e4-aeeb-705681abff85' AND "clubhouse_memberships"."organization_id" = '778434e2-bfec-11e4-bd74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77835608-bfec-11e4-aeeb-705681abff85"], ["organization_id", "778434e2-bfec-11e4-bd74-705681abff85"], ["created_at", "2015-03-01 08:25:06.635351"], ["updated_at", "2015-03-01 08:25:06.635351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$QKbnPKbSBxe33C20c7sl/e.xCa4gJkkNblg6P/5Su7gSkIt6Rhn1C"], ["created_at", "2015-03-01 08:25:06.639568"], ["updated_at", "2015-03-01 08:25:06.639568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.641001"], ["user_id", "7785cb36-bfec-11e4-aad1-705681abff85"], ["created_at", "2015-03-01 08:25:06.641717"], ["updated_at", "2015-03-01 08:25:06.641717"], ["token", "gzk4VaZ7v3BgxcAKl2CRsTURm7Cm_XmjvK18Afde32A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '778434e2-bfec-11e4-bd74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "778434e2-bfec-11e4-bd74-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.646276"], ["updated_at", "2015-03-01 08:25:06.646276"], ["token", "l2UyrJyo0FLrX1VVK7J50JqqG85xDZhppxKoMnC5IBA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"l2UyrJyo0FLrX1VVK7J50JqqG85xDZhppxKoMnC5IBA", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$0/v46zRLc0PhmuinbmnRC.x0zB10/J.XxCV.5u8txTkcnVBNCaR0q"], ["created_at", "2015-03-01 08:25:06.657408"], ["updated_at", "2015-03-01 08:25:06.657408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$PlEoJcUHQYTnmDdXgYMEoOa6XmH0VUVAV1mdyvZQ2R2KqDHFwhLKa"], ["created_at", "2015-03-01 08:25:06.661596"], ["updated_at", "2015-03-01 08:25:06.661596"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.663696"], ["user_id", "7788868c-bfec-11e4-8f34-705681abff85"], ["created_at", "2015-03-01 08:25:06.664515"], ["updated_at", "2015-03-01 08:25:06.664515"], ["token", "F_BBfOozum65xLes468MutRG2fvwEWNjZSIjLkQjU0s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.667849"], ["updated_at", "2015-03-01 08:25:06.667849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7788868c-bfec-11e4-8f34-705681abff85' AND "clubhouse_memberships"."organization_id" = '778a1b32-bfec-11e4-9198-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7788868c-bfec-11e4-8f34-705681abff85"], ["organization_id", "778a1b32-bfec-11e4-9198-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.670865"], ["updated_at", "2015-03-01 08:25:06.670865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77892e20-bfec-11e4-bb4b-705681abff85' AND "clubhouse_memberships"."organization_id" = '778a1b32-bfec-11e4-9198-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77892e20-bfec-11e4-bb4b-705681abff85"], ["organization_id", "778a1b32-bfec-11e4-9198-705681abff85"], ["created_at", "2015-03-01 08:25:06.673667"], ["updated_at", "2015-03-01 08:25:06.673667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$gm0iYLTW8tnxuC08k2ksweQQSrzj9gQUnmLOAhH/pjJokxOzaE4fq"], ["created_at", "2015-03-01 08:25:06.678119"], ["updated_at", "2015-03-01 08:25:06.678119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.679709"], ["user_id", "778bb0be-bfec-11e4-a9c5-705681abff85"], ["created_at", "2015-03-01 08:25:06.680470"], ["updated_at", "2015-03-01 08:25:06.680470"], ["token", "JAPo0_64iJjwWl80V4Efb5lQKFW5LgRvd6UeF7dg2fo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '778a1b32-bfec-11e4-9198-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "778a1b32-bfec-11e4-9198-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.683908"], ["updated_at", "2015-03-01 08:25:06.683908"], ["token", "CyH7g9x2Yb8Nr8oG6m8eA-hT75yysnUJBVCrfnEcg0s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$fA3lpftsNIFa4uDvxPn0rOT2V.B.n/sjkhn3PWdJmyq4CuyJ/4Qye"], ["created_at", "2015-03-01 08:25:06.697291"], ["updated_at", "2015-03-01 08:25:06.697291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$Q9xyH3gjqLiLQYYEXmwltee.2I7EhFwyOBVX7Av55IFn5PQb7NPzm"], ["created_at", "2015-03-01 08:25:06.702275"], ["updated_at", "2015-03-01 08:25:06.702275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.703857"], ["user_id", "778ea27e-bfec-11e4-ad1a-705681abff85"], ["created_at", "2015-03-01 08:25:06.704610"], ["updated_at", "2015-03-01 08:25:06.704610"], ["token", "4JcsUdW1Z6IQs7ekpjrv4HkzAoilotYKI92Aya8wXxc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.707896"], ["updated_at", "2015-03-01 08:25:06.707896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '778ea27e-bfec-11e4-ad1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '77903846-bfec-11e4-b8cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "778ea27e-bfec-11e4-ad1a-705681abff85"], ["organization_id", "77903846-bfec-11e4-b8cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.711104"], ["updated_at", "2015-03-01 08:25:06.711104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '778f5e80-bfec-11e4-a086-705681abff85' AND "clubhouse_memberships"."organization_id" = '77903846-bfec-11e4-b8cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "778f5e80-bfec-11e4-a086-705681abff85"], ["organization_id", "77903846-bfec-11e4-b8cb-705681abff85"], ["created_at", "2015-03-01 08:25:06.715099"], ["updated_at", "2015-03-01 08:25:06.715099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$PrQsOz4r22gwtMdne0UFLubcWLURLGTRuVHE6TFda0U0DsqDBsFm2"], ["created_at", "2015-03-01 08:25:06.724552"], ["updated_at", "2015-03-01 08:25:06.724552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$UrwOXbOtxNJq1kYhYHXZ9evjseG67FyzZr187KVCvcX7J9ZEZ9V.q"], ["created_at", "2015-03-01 08:25:06.729130"], ["updated_at", "2015-03-01 08:25:06.729130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.731705"], ["user_id", "7792c5b6-bfec-11e4-86e6-705681abff85"], ["created_at", "2015-03-01 08:25:06.732555"], ["updated_at", "2015-03-01 08:25:06.732555"], ["token", "A9I1fMaWjJykITPIoWu0OxFn18gXXq10XDtFmW0hXfU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.736042"], ["updated_at", "2015-03-01 08:25:06.736042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7792c5b6-bfec-11e4-86e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '77948388-bfec-11e4-bdef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7792c5b6-bfec-11e4-86e6-705681abff85"], ["organization_id", "77948388-bfec-11e4-bdef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.739138"], ["updated_at", "2015-03-01 08:25:06.739138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77938c6c-bfec-11e4-a632-705681abff85' AND "clubhouse_memberships"."organization_id" = '77948388-bfec-11e4-bdef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77938c6c-bfec-11e4-a632-705681abff85"], ["organization_id", "77948388-bfec-11e4-bdef-705681abff85"], ["created_at", "2015-03-01 08:25:06.742127"], ["updated_at", "2015-03-01 08:25:06.742127"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/7794fc32-bfec-11e4-a8f0-705681abff85" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"7794fc32-bfec-11e4-a8f0-705681abff85", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$oV2llj0PZfIduUTAd2tWNe73u1PvPVPfnUCGTHrKMW1/YDeCkJAZe"], ["created_at", "2015-03-01 08:25:06.751908"], ["updated_at", "2015-03-01 08:25:06.751908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$9cu66Perae5/H5VZzwKB.OD4Wj/GPl4d9pyCbnxobmkjJ51Yj2yWK"], ["created_at", "2015-03-01 08:25:06.756238"], ["updated_at", "2015-03-01 08:25:06.756238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.758048"], ["user_id", "7796f212-bfec-11e4-a212-705681abff85"], ["created_at", "2015-03-01 08:25:06.758866"], ["updated_at", "2015-03-01 08:25:06.758866"], ["token", "-ldxFRsp1fvm2jHP55HjPfD2JCk-j9iw3h9_PJTfJ8U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.762839"], ["updated_at", "2015-03-01 08:25:06.762839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7796f212-bfec-11e4-a212-705681abff85' AND "clubhouse_memberships"."organization_id" = '7798a846-bfec-11e4-b897-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7796f212-bfec-11e4-a212-705681abff85"], ["organization_id", "7798a846-bfec-11e4-b897-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.766643"], ["updated_at", "2015-03-01 08:25:06.766643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77979c9e-bfec-11e4-8e0a-705681abff85' AND "clubhouse_memberships"."organization_id" = '7798a846-bfec-11e4-b897-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77979c9e-bfec-11e4-8e0a-705681abff85"], ["organization_id", "7798a846-bfec-11e4-b897-705681abff85"], ["created_at", "2015-03-01 08:25:06.769578"], ["updated_at", "2015-03-01 08:25:06.769578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$XcZXP6tZ7sZ2DJnCGTNyaOA72pqeko6Mg/qGcWWjYUEMkxTc0mGAu"], ["created_at", "2015-03-01 08:25:06.779483"], ["updated_at", "2015-03-01 08:25:06.779483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$Y6IvU7l6MpFLEyGfbBWae.ckb4KosaHApv4r4dj24KClEBNF3sEDG"], ["created_at", "2015-03-01 08:25:06.784916"], ["updated_at", "2015-03-01 08:25:06.784916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.787176"], ["user_id", "779b28a0-bfec-11e4-846c-705681abff85"], ["created_at", "2015-03-01 08:25:06.788344"], ["updated_at", "2015-03-01 08:25:06.788344"], ["token", "1hTfPOiFH_fZRDqeypqjDkmrJMuwToApakIgDAVfC7w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.791537"], ["updated_at", "2015-03-01 08:25:06.791537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '779b28a0-bfec-11e4-846c-705681abff85' AND "clubhouse_memberships"."organization_id" = '779cfc2a-bfec-11e4-bf1b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "779b28a0-bfec-11e4-846c-705681abff85"], ["organization_id", "779cfc2a-bfec-11e4-bf1b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.794717"], ["updated_at", "2015-03-01 08:25:06.794717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '779c0bb2-bfec-11e4-8352-705681abff85' AND "clubhouse_memberships"."organization_id" = '779cfc2a-bfec-11e4-bf1b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "779c0bb2-bfec-11e4-8352-705681abff85"], ["organization_id", "779cfc2a-bfec-11e4-bf1b-705681abff85"], ["created_at", "2015-03-01 08:25:06.798125"], ["updated_at", "2015-03-01 08:25:06.798125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/779dfc88-bfec-11e4-baf0-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"779dfc88-bfec-11e4-baf0-705681abff85", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$JFJ17nF/E6Cx6E7X9HECQOOqubzQf/Rd8f0Yu.mkFaGErEuBZBknK"], ["created_at", "2015-03-01 08:25:06.807537"], ["updated_at", "2015-03-01 08:25:06.807537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$g/HB1SfJ.L8KyF7v3x/K9OeH6Ml/.oyJtRUI/jgbCaWh3jpYSDVAq"], ["created_at", "2015-03-01 08:25:06.812290"], ["updated_at", "2015-03-01 08:25:06.812290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.814281"], ["user_id", "779f6f28-bfec-11e4-bf18-705681abff85"], ["created_at", "2015-03-01 08:25:06.815104"], ["updated_at", "2015-03-01 08:25:06.815104"], ["token", "xq_7X9mNb__c1Qs4h_LO7FUJTbEz9EKsx6YACZc0ZGY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.818538"], ["updated_at", "2015-03-01 08:25:06.818538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '779f6f28-bfec-11e4-bf18-705681abff85' AND "clubhouse_memberships"."organization_id" = '77a11a08-bfec-11e4-b41a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "779f6f28-bfec-11e4-bf18-705681abff85"], ["organization_id", "77a11a08-bfec-11e4-b41a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.821627"], ["updated_at", "2015-03-01 08:25:06.821627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77a0332c-bfec-11e4-8721-705681abff85' AND "clubhouse_memberships"."organization_id" = '77a11a08-bfec-11e4-b41a-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77a0332c-bfec-11e4-8721-705681abff85"], ["organization_id", "77a11a08-bfec-11e4-b41a-705681abff85"], ["created_at", "2015-03-01 08:25:06.824629"], ["updated_at", "2015-03-01 08:25:06.824629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/77a1930c-bfec-11e4-a033-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"77a1930c-bfec-11e4-a033-705681abff85", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$2lnBRu5IGHcFS2afQpYUie8Ii47excDP6dY55rsNg13oDoZ4HtI32"], ["created_at", "2015-03-01 08:25:06.839462"], ["updated_at", "2015-03-01 08:25:06.839462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$/nKokwFYmV8GwpyDBCuP.elrZHSoL6lox/5Iwlh5y3rPCoMy2Dbe."], ["created_at", "2015-03-01 08:25:06.843569"], ["updated_at", "2015-03-01 08:25:06.843569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.845026"], ["user_id", "77a44e26-bfec-11e4-a4d7-705681abff85"], ["created_at", "2015-03-01 08:25:06.845811"], ["updated_at", "2015-03-01 08:25:06.845811"], ["token", "wofB50cpOUDUTg48sb-pR6iR5ahlVPIJqonASSeWPNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.849612"], ["updated_at", "2015-03-01 08:25:06.849612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77a44e26-bfec-11e4-a4d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '77a5d8f4-bfec-11e4-8427-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77a44e26-bfec-11e4-a4d7-705681abff85"], ["organization_id", "77a5d8f4-bfec-11e4-8427-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.852827"], ["updated_at", "2015-03-01 08:25:06.852827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77a4ec5a-bfec-11e4-b8d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '77a5d8f4-bfec-11e4-8427-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77a4ec5a-bfec-11e4-b8d0-705681abff85"], ["organization_id", "77a5d8f4-bfec-11e4-8427-705681abff85"], ["created_at", "2015-03-01 08:25:06.856119"], ["updated_at", "2015-03-01 08:25:06.856119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$xGrXq8COQxW0LXq7sBCMgeqalHtxxkO0SMrpUo6jEoe.sR..iBoyC"], ["created_at", "2015-03-01 08:25:06.867081"], ["updated_at", "2015-03-01 08:25:06.867081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$i1u4bvPBcHDp6igH8yKHeeggK64Mg7XA9emXRRU/Q.XvGbxBB29Fa"], ["created_at", "2015-03-01 08:25:06.871634"], ["updated_at", "2015-03-01 08:25:06.871634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.873557"], ["user_id", "77a8869e-bfec-11e4-8151-705681abff85"], ["created_at", "2015-03-01 08:25:06.874398"], ["updated_at", "2015-03-01 08:25:06.874398"], ["token", "uA1x3fTHPifS5-sAyNSR9ifvdtCvNHIWVO9-ho2oEsY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.877689"], ["updated_at", "2015-03-01 08:25:06.877689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77a8869e-bfec-11e4-8151-705681abff85' AND "clubhouse_memberships"."organization_id" = '77aa2102-bfec-11e4-b3b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77a8869e-bfec-11e4-8151-705681abff85"], ["organization_id", "77aa2102-bfec-11e4-b3b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.881604"], ["updated_at", "2015-03-01 08:25:06.881604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77a93ddc-bfec-11e4-b66d-705681abff85' AND "clubhouse_memberships"."organization_id" = '77aa2102-bfec-11e4-b3b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77a93ddc-bfec-11e4-b66d-705681abff85"], ["organization_id", "77aa2102-bfec-11e4-b3b3-705681abff85"], ["created_at", "2015-03-01 08:25:06.884908"], ["updated_at", "2015-03-01 08:25:06.884908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$4ifbpJhICMnzuQ8piF4cn.tKpkZi1rwyKooY5v5iL7UjTEiXamtQy"], ["created_at", "2015-03-01 08:25:06.894696"], ["updated_at", "2015-03-01 08:25:06.894696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$mdxux97JVBjlGWaZjxUmr.yCpNIZSvZ2rnxtR5HrO4Iz1JsAikV7W"], ["created_at", "2015-03-01 08:25:06.899207"], ["updated_at", "2015-03-01 08:25:06.899207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.900654"], ["user_id", "77acc056-bfec-11e4-9caf-705681abff85"], ["created_at", "2015-03-01 08:25:06.901416"], ["updated_at", "2015-03-01 08:25:06.901416"], ["token", "HtHmamgdKcalwql7ZTewtxnV7NFehoB7kPulGlDSfmo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.904517"], ["updated_at", "2015-03-01 08:25:06.904517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77acc056-bfec-11e4-9caf-705681abff85' AND "clubhouse_memberships"."organization_id" = '77ae381e-bfec-11e4-8594-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77acc056-bfec-11e4-9caf-705681abff85"], ["organization_id", "77ae381e-bfec-11e4-8594-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.907945"], ["updated_at", "2015-03-01 08:25:06.907945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77ad69e8-bfec-11e4-a164-705681abff85' AND "clubhouse_memberships"."organization_id" = '77ae381e-bfec-11e4-8594-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77ad69e8-bfec-11e4-a164-705681abff85"], ["organization_id", "77ae381e-bfec-11e4-8594-705681abff85"], ["created_at", "2015-03-01 08:25:06.913203"], ["updated_at", "2015-03-01 08:25:06.913203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$8TIgRx8oOhFCjj9v8VfVD.4sZPsoZ5Ekslj8tScbhQ53HuCokWKqi"], ["created_at", "2015-03-01 08:25:06.923340"], ["updated_at", "2015-03-01 08:25:06.923340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$mY/dCsUFfYW97TACzLc3g.7RyTDp57utlKWixoWeGD3zj5H4peT8i"], ["created_at", "2015-03-01 08:25:06.927947"], ["updated_at", "2015-03-01 08:25:06.927947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.929843"], ["user_id", "77b11aac-bfec-11e4-a231-705681abff85"], ["created_at", "2015-03-01 08:25:06.930712"], ["updated_at", "2015-03-01 08:25:06.930712"], ["token", "OKmaCCv-z8whjC3YteGe8f-tAt3BvR4zRcNzPOPEbRA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.934273"], ["updated_at", "2015-03-01 08:25:06.934273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77b11aac-bfec-11e4-a231-705681abff85' AND "clubhouse_memberships"."organization_id" = '77b2c3d4-bfec-11e4-87af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77b11aac-bfec-11e4-a231-705681abff85"], ["organization_id", "77b2c3d4-bfec-11e4-87af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.937522"], ["updated_at", "2015-03-01 08:25:06.937522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77b1d230-bfec-11e4-b418-705681abff85' AND "clubhouse_memberships"."organization_id" = '77b2c3d4-bfec-11e4-87af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77b1d230-bfec-11e4-b418-705681abff85"], ["organization_id", "77b2c3d4-bfec-11e4-87af-705681abff85"], ["created_at", "2015-03-01 08:25:06.941268"], ["updated_at", "2015-03-01 08:25:06.941268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/77b3e8e0-bfec-11e4-a475-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"77b3e8e0-bfec-11e4-a475-705681abff85", "membership"=>{"admin"=>true}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$e1cheEi/c0M..1Xh35uiIeBc/mqtxDnU4NLgKlU2xC9YrHSOpHt4O"], ["created_at", "2015-03-01 08:25:06.952426"], ["updated_at", "2015-03-01 08:25:06.952426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$mDdGwB8wjFWixe9Ob87o2.3I66vawudZq0tYFSlLwaQFyxJI.0d7."], ["created_at", "2015-03-01 08:25:06.957720"], ["updated_at", "2015-03-01 08:25:06.957720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:06.959994"], ["user_id", "77b58b32-bfec-11e4-82b0-705681abff85"], ["created_at", "2015-03-01 08:25:06.960809"], ["updated_at", "2015-03-01 08:25:06.960809"], ["token", "gSLpyQqL482KXi4ZdffFpbD7Oz3aBLkcRrRatUnnqfk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:06.964363"], ["updated_at", "2015-03-01 08:25:06.964363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77b58b32-bfec-11e4-82b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '77b75d2c-bfec-11e4-88dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77b58b32-bfec-11e4-82b0-705681abff85"], ["organization_id", "77b75d2c-bfec-11e4-88dd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:06.967628"], ["updated_at", "2015-03-01 08:25:06.967628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77b668d6-bfec-11e4-9058-705681abff85' AND "clubhouse_memberships"."organization_id" = '77b75d2c-bfec-11e4-88dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77b668d6-bfec-11e4-9058-705681abff85"], ["organization_id", "77b75d2c-bfec-11e4-88dd-705681abff85"], ["created_at", "2015-03-01 08:25:06.970499"], ["updated_at", "2015-03-01 08:25:06.970499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/77b7d996-bfec-11e4-850b-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:06 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"77b7d996-bfec-11e4-850b-705681abff85", "membership"=>{"admin"=>true}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (11.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:45.724919"], ["updated_at", "2015-03-01 08:25:45.724919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:45.758041"], ["updated_at", "2015-03-01 08:25:45.758041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:45.776524"], ["updated_at", "2015-03-01 08:25:45.776524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:45.818579"], ["updated_at", "2015-03-01 08:25:45.818579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:45.823460"], ["updated_at", "2015-03-01 08:25:45.823460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "8ee0cb32-bfec-11e4-b5cf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:45.836362"], ["updated_at", "2015-03-01 08:25:45.836362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8ee2c522-bfec-11e4-9c2a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "8ee2c522-bfec-11e4-9c2a-705681abff85"], ["created_at", "2015-03-01 08:25:45.846427"], ["updated_at", "2015-03-01 08:25:45.846427"], ["token", "hDTBjuGHAUlVZtADjMopfzGz1K2WdO3o4sbidS240Vk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8ee2c522-bfec-11e4-9c2a-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8ee2c522-bfec-11e4-9c2a-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8ee2c522-bfec-11e4-9c2a-705681abff86"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8ee2c522-bfec-11e4-9c2a-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:45.872599"], ["updated_at", "2015-03-01 08:25:45.872599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8ee84c04-bfec-11e4-8cf9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "8ee84c04-bfec-11e4-8cf9-705681abff85"], ["created_at", "2015-03-01 08:25:45.875587"], ["updated_at", "2015-03-01 08:25:45.875587"], ["token", "G-lbEN4chaP5LrFqcHm8411OhNv0e8QASCKwo8FwdOk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$YbIEBqxR9ENiq9bzr/5hm.fPY3i0GxNURgCvTEfKkeSvGDpma9fBu"], ["created_at", "2015-03-01 08:25:45.895673"], ["updated_at", "2015-03-01 08:25:45.895673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:45.906274"], ["user_id", "8eebd87e-bfec-11e4-a3bc-705681abff85"], ["created_at", "2015-03-01 08:25:45.907291"], ["updated_at", "2015-03-01 08:25:45.907291"], ["token", "A0105-BwZrdjYaHwJ-KiwevzlOJjoNeRC3m-I1-u-R0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:45.913070"], ["updated_at", "2015-03-01 08:25:45.913070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8eebd87e-bfec-11e4-a3bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '8eee80c4-bfec-11e4-a3e1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8eebd87e-bfec-11e4-a3bc-705681abff85"], ["organization_id", "8eee80c4-bfec-11e4-a3e1-705681abff85"], ["created_at", "2015-03-01 08:25:45.923323"], ["updated_at", "2015-03-01 08:25:45.923323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-5" for 127.0.0.1 at 2015-03-01 00:25:45 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Session Load (0.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:45.948921' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A0105-BwZrdjYaHwJ-KiwevzlOJjoNeRC3m-I1-u-R0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:45.959407"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:45.961406"], ["id", "8eedab9a-bfec-11e4-99bc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8eebd87e-bfec-11e4-a3bc-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8eebd87e-bfec-11e4-a3bc-705681abff85"], ["name", "org-5"]] Completed 200 OK in 33ms (Views: 1.7ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$teq9wGIN9aUwYgOEMA3pJu6pPYjLll3VV0J/hK8eMsRHmKRJ7PgsS"], ["created_at", "2015-03-01 08:25:45.988877"], ["updated_at", "2015-03-01 08:25:45.988877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:45.990534"], ["user_id", "8efa0a52-bfec-11e4-81b2-705681abff85"], ["created_at", "2015-03-01 08:25:45.991689"], ["updated_at", "2015-03-01 08:25:45.991689"], ["token", "wBDu5D-w4_CeN5Wsdw9zqBRlhXVftsPz5Bs4fOyOcvo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:45.995960"], ["updated_at", "2015-03-01 08:25:45.995960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8efa0a52-bfec-11e4-81b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '8efb1aaa-bfec-11e4-9137-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8efa0a52-bfec-11e4-81b2-705681abff85"], ["organization_id", "8efb1aaa-bfec-11e4-9137-705681abff85"], ["created_at", "2015-03-01 08:25:45.999174"], ["updated_at", "2015-03-01 08:25:45.999174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$G4C/UUBbf4nbOtP2kxXvsOaksoeFINnuwCEzeqS3XFV5GnOpSnFhK"], ["created_at", "2015-03-01 08:25:46.011582"], ["updated_at", "2015-03-01 08:25:46.011582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.013335"], ["user_id", "8efd863c-bfec-11e4-a5e9-705681abff85"], ["created_at", "2015-03-01 08:25:46.014085"], ["updated_at", "2015-03-01 08:25:46.014085"], ["token", "QT4n3fEmXUmzRrQF4OCAUu2TmPWazGExCAqH-5TsF_I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.017395"], ["updated_at", "2015-03-01 08:25:46.017395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8efd863c-bfec-11e4-a5e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '8efe6052-bfec-11e4-b88a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8efd863c-bfec-11e4-a5e9-705681abff85"], ["organization_id", "8efe6052-bfec-11e4-b88a-705681abff85"], ["created_at", "2015-03-01 08:25:46.021225"], ["updated_at", "2015-03-01 08:25:46.021225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$.H.E2aab.fDuyD2H0ze9i.jsdc44g2fqLLeAP8YaWJhtSsV5m7ky."], ["created_at", "2015-03-01 08:25:46.034403"], ["updated_at", "2015-03-01 08:25:46.034403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.036064"], ["user_id", "8f00fd6c-bfec-11e4-bc58-705681abff85"], ["created_at", "2015-03-01 08:25:46.036843"], ["updated_at", "2015-03-01 08:25:46.036843"], ["token", "GlxTYM-14RVeJBWLM0g2W1CkzG0S4tM3EjP9fVjoJ1c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.040121"], ["updated_at", "2015-03-01 08:25:46.040121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f00fd6c-bfec-11e4-bc58-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f01d71e-bfec-11e4-9248-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f00fd6c-bfec-11e4-bc58-705681abff85"], ["organization_id", "8f01d71e-bfec-11e4-9248-705681abff85"], ["created_at", "2015-03-01 08:25:46.043787"], ["updated_at", "2015-03-01 08:25:46.043787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Bfsx3Wd3KDQ6tm2qzuKNz.X8TqL9HLNCp8oMxWEaoYLtyY.JCXZBm"], ["created_at", "2015-03-01 08:25:46.052563"], ["updated_at", "2015-03-01 08:25:46.052563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.054253"], ["user_id", "8f03c358-bfec-11e4-b215-705681abff85"], ["created_at", "2015-03-01 08:25:46.055058"], ["updated_at", "2015-03-01 08:25:46.055058"], ["token", "vOEALpfIMdLNyBE9kEZ23z0G_CCQKLy9FsP81Z4eTkg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.094200"], ["updated_at", "2015-03-01 08:25:46.094200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f03c358-bfec-11e4-b215-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f0a2112-bfec-11e4-a0a8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f03c358-bfec-11e4-b215-705681abff85"], ["organization_id", "8f0a2112-bfec-11e4-a0a8-705681abff85"], ["created_at", "2015-03-01 08:25:46.098899"], ["updated_at", "2015-03-01 08:25:46.098899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (4.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ypvT3W5nPEZPZ63OxPgin.tmZ.pSMe3MZp5NgYP/5kbMVf36J60K2"], ["created_at", "2015-03-01 08:25:46.107559"], ["updated_at", "2015-03-01 08:25:46.107559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.114684"], ["user_id", "8f0c25a2-bfec-11e4-842c-705681abff85"], ["created_at", "2015-03-01 08:25:46.116036"], ["updated_at", "2015-03-01 08:25:46.116036"], ["token", "eiK-wUX1DJ5gZvFdqCjMICZFIjYal8AYLsAuDfrEPOs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.120165"], ["updated_at", "2015-03-01 08:25:46.120165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f0c25a2-bfec-11e4-842c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f0e0ff2-bfec-11e4-96c9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f0c25a2-bfec-11e4-842c-705681abff85"], ["organization_id", "8f0e0ff2-bfec-11e4-96c9-705681abff85"], ["created_at", "2015-03-01 08:25:46.123291"], ["updated_at", "2015-03-01 08:25:46.123291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/8f0e0ff2-bfec-11e4-96c9-705681abff85" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"8f0e0ff2-bfec-11e4-96c9-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.128188' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eiK-wUX1DJ5gZvFdqCjMICZFIjYal8AYLsAuDfrEPOs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.129656"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.130592"], ["id", "8f0d8db6-bfec-11e4-9dfa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f0c25a2-bfec-11e4-842c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f0c25a2-bfec-11e4-842c-705681abff85"], ["id", "8f0e0ff2-bfec-11e4-96c9-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$J3AWflforCNliA3L9vEXXeJP9/MeI.RMp8CnJF8Sh4LSNjnrV8HFG"], ["created_at", "2015-03-01 08:25:46.141129"], ["updated_at", "2015-03-01 08:25:46.141129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.142738"], ["user_id", "8f1144d8-bfec-11e4-8971-705681abff85"], ["created_at", "2015-03-01 08:25:46.143515"], ["updated_at", "2015-03-01 08:25:46.143515"], ["token", "_wme2eXtClUYu5ZkQD0hDlpX2A10uGxK5lcbaTdxMuo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.147770"], ["updated_at", "2015-03-01 08:25:46.147770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f1144d8-bfec-11e4-8971-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f12496e-bfec-11e4-910b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f1144d8-bfec-11e4-8971-705681abff85"], ["organization_id", "8f12496e-bfec-11e4-910b-705681abff85"], ["created_at", "2015-03-01 08:25:46.151167"], ["updated_at", "2015-03-01 08:25:46.151167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$xQ8TGNH6gOVZFQwCW5jjnu60JiTkppPcnEWXsT6urYik/qyzbO1rW"], ["created_at", "2015-03-01 08:25:46.163246"], ["updated_at", "2015-03-01 08:25:46.163246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.164891"], ["user_id", "8f14a6d2-bfec-11e4-8e8b-705681abff85"], ["created_at", "2015-03-01 08:25:46.165650"], ["updated_at", "2015-03-01 08:25:46.165650"], ["token", "83hmab3wxva3XvYncECU0_2NXDQvE5R0YijKmTfmNfE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.168929"], ["updated_at", "2015-03-01 08:25:46.168929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f14a6d2-bfec-11e4-8e8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f157f4e-bfec-11e4-89aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f14a6d2-bfec-11e4-8e8b-705681abff85"], ["organization_id", "8f157f4e-bfec-11e4-89aa-705681abff85"], ["created_at", "2015-03-01 08:25:46.172107"], ["updated_at", "2015-03-01 08:25:46.172107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-12" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-12", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.176866' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "83hmab3wxva3XvYncECU0_2NXDQvE5R0YijKmTfmNfE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.178959"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.180803"], ["id", "8f15080c-bfec-11e4-8d5c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f14a6d2-bfec-11e4-8e8b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f14a6d2-bfec-11e4-8e8b-705681abff85"], ["name", "org-12"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8f157f4e-bfec-11e4-89aa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$ZWcLz0eMYmwJTGnCe5xgze3t7uji4fg3bQJc25EUbPi4SVLr6dwfq"], ["created_at", "2015-03-01 08:25:46.193689"], ["updated_at", "2015-03-01 08:25:46.193689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.195678"], ["user_id", "8f194f0c-bfec-11e4-bf1d-705681abff85"], ["created_at", "2015-03-01 08:25:46.196619"], ["updated_at", "2015-03-01 08:25:46.196619"], ["token", "EEsf1G5Qv78x8-q1y7lkxGk0VrcBiauxjAsiCgKfJaU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.200304"], ["updated_at", "2015-03-01 08:25:46.200304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f194f0c-bfec-11e4-bf1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f1a4b46-bfec-11e4-870a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f194f0c-bfec-11e4-bf1d-705681abff85"], ["organization_id", "8f1a4b46-bfec-11e4-870a-705681abff85"], ["created_at", "2015-03-01 08:25:46.203632"], ["updated_at", "2015-03-01 08:25:46.203632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$//UslA7XDWU4/BDrKuYCAOsrrKUWvDrZhWJkf9GxxCY8ThkptOKZm"], ["created_at", "2015-03-01 08:25:46.216616"], ["updated_at", "2015-03-01 08:25:46.216616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.218285"], ["user_id", "8f1ccb0a-bfec-11e4-9613-705681abff85"], ["created_at", "2015-03-01 08:25:46.219066"], ["updated_at", "2015-03-01 08:25:46.219066"], ["token", "gVYKX9ve5LcqI65G5vtxJyfPoN34OlU1cOQHZ100vTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.222370"], ["updated_at", "2015-03-01 08:25:46.222370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f1ccb0a-bfec-11e4-9613-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f1daa5c-bfec-11e4-aeb6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f1ccb0a-bfec-11e4-9613-705681abff85"], ["organization_id", "8f1daa5c-bfec-11e4-aeb6-705681abff85"], ["created_at", "2015-03-01 08:25:46.225652"], ["updated_at", "2015-03-01 08:25:46.225652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$2Gkj2smFL8g8JQCSSg3KAOT/frAM.aFyEoxyNr63ZcLFUQ0rZlGrG"], ["created_at", "2015-03-01 08:25:46.240224"], ["updated_at", "2015-03-01 08:25:46.240224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.241869"], ["user_id", "8f20645e-bfec-11e4-9517-705681abff85"], ["created_at", "2015-03-01 08:25:46.242661"], ["updated_at", "2015-03-01 08:25:46.242661"], ["token", "vBUwydfWg9_u10OVeo8pYIp3CqjXxNFXlpOcqzYyFwg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.246081"], ["updated_at", "2015-03-01 08:25:46.246081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f20645e-bfec-11e4-9517-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f214ac2-bfec-11e4-8c7e-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f20645e-bfec-11e4-9517-705681abff85"], ["organization_id", "8f214ac2-bfec-11e4-8c7e-705681abff85"], ["created_at", "2015-03-01 08:25:46.249939"], ["updated_at", "2015-03-01 08:25:46.249939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.257060' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vBUwydfWg9_u10OVeo8pYIp3CqjXxNFXlpOcqzYyFwg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.258536"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.259579"], ["id", "8f20c7dc-bfec-11e4-9f17-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f20645e-bfec-11e4-9517-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Q1v14TzlZ653Ntala.5Fm.U7Idu3dt0WQSPQNZ6v2sCYBjpOxjcmW"], ["created_at", "2015-03-01 08:25:46.273367"], ["updated_at", "2015-03-01 08:25:46.273367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.275071"], ["user_id", "8f25753e-bfec-11e4-a982-705681abff85"], ["created_at", "2015-03-01 08:25:46.275860"], ["updated_at", "2015-03-01 08:25:46.275860"], ["token", "Mmyi3DW6psGFBXRgrc_XlQQ8xVR0S99S-_eHIS--y7I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.279492"], ["updated_at", "2015-03-01 08:25:46.279492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f25753e-bfec-11e4-a982-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f2664f8-bfec-11e4-b493-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f25753e-bfec-11e4-a982-705681abff85"], ["organization_id", "8f2664f8-bfec-11e4-b493-705681abff85"], ["created_at", "2015-03-01 08:25:46.282932"], ["updated_at", "2015-03-01 08:25:46.282932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.287318' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Mmyi3DW6psGFBXRgrc_XlQQ8xVR0S99S-_eHIS--y7I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.288723"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.289719"], ["id", "8f25d934-bfec-11e4-9232-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f25753e-bfec-11e4-a982-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.293635"], ["updated_at", "2015-03-01 08:25:46.293635"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8f2887f6-bfec-11e4-8bbb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f25753e-bfec-11e4-a982-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f2887f6-bfec-11e4-8bbb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f25753e-bfec-11e4-a982-705681abff85"], ["admin", "t"], ["organization_id", "8f2887f6-bfec-11e4-8bbb-705681abff85"], ["created_at", "2015-03-01 08:25:46.298649"], ["updated_at", "2015-03-01 08:25:46.298649"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.0ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ibTyzhvjH.U3k16.OsNsuOIUZv.Fo9C2UY4ST6dBdomTXPpe3oLxq"], ["created_at", "2015-03-01 08:25:46.309142"], ["updated_at", "2015-03-01 08:25:46.309142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.310788"], ["user_id", "8f2ae690-bfec-11e4-8d07-705681abff85"], ["created_at", "2015-03-01 08:25:46.311614"], ["updated_at", "2015-03-01 08:25:46.311614"], ["token", "UdMbehaZFzusrixEm_X5S4ZYFf4wg38kwyUNgjwDuGg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.315840"], ["updated_at", "2015-03-01 08:25:46.315840"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f2ae690-bfec-11e4-8d07-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f2beeaa-bfec-11e4-bbb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f2ae690-bfec-11e4-8d07-705681abff85"], ["organization_id", "8f2beeaa-bfec-11e4-bbb1-705681abff85"], ["created_at", "2015-03-01 08:25:46.319502"], ["updated_at", "2015-03-01 08:25:46.319502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/8f2beeaa-bfec-11e4-bbb1-705681abff85" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"8f2beeaa-bfec-11e4-bbb1-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.324010' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UdMbehaZFzusrixEm_X5S4ZYFf4wg38kwyUNgjwDuGg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.325429"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.326354"], ["id", "8f2b5274-bfec-11e4-a36d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f2ae690-bfec-11e4-8d07-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f2ae690-bfec-11e4-8d07-705681abff85"], ["id", "8f2beeaa-bfec-11e4-bbb1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8f2beeaa-bfec-11e4-bbb1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$4gvgv9vxNigPb7cYSytNdOb0xv0WZyN/M0CRIJ6F9YqRt8uyAnQdO"], ["created_at", "2015-03-01 08:25:46.336585"], ["updated_at", "2015-03-01 08:25:46.336585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.338178"], ["user_id", "8f2f1792-bfec-11e4-bb1b-705681abff85"], ["created_at", "2015-03-01 08:25:46.338938"], ["updated_at", "2015-03-01 08:25:46.338938"], ["token", "3jUOAZQv65KHvVqoEqnWmeCxoLWsU8jAJPApNk9kyiM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (11.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.357500"], ["updated_at", "2015-03-01 08:25:46.357500"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f2f1792-bfec-11e4-bb1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f327914-bfec-11e4-9cf6-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f2f1792-bfec-11e4-bb1b-705681abff85"], ["organization_id", "8f327914-bfec-11e4-9cf6-705681abff85"], ["created_at", "2015-03-01 08:25:46.366124"], ["updated_at", "2015-03-01 08:25:46.366124"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$cEz9DPzcNp85svEP578.0euG1IzAahSuNR646XAJ0WqCxiA8Adjri"], ["created_at", "2015-03-01 08:25:46.389947"], ["updated_at", "2015-03-01 08:25:46.389947"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.393100"], ["user_id", "8f375664-bfec-11e4-b755-705681abff85"], ["created_at", "2015-03-01 08:25:46.394676"], ["updated_at", "2015-03-01 08:25:46.394676"], ["token", "1eAd_pS5oUc25pyWADlMFje6p6RxGi5uo9kL6-HgYoY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.400437"], ["updated_at", "2015-03-01 08:25:46.400437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f375664-bfec-11e4-b755-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f38e682-bfec-11e4-b198-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f375664-bfec-11e4-b755-705681abff85"], ["organization_id", "8f38e682-bfec-11e4-b198-705681abff85"], ["created_at", "2015-03-01 08:25:46.404767"], ["updated_at", "2015-03-01 08:25:46.404767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$M7gIkWeA6g.ppAq15uq6y.b26DgHSewnZS2J7tkFvWZWPEq99jBsy"], ["created_at", "2015-03-01 08:25:46.418749"], ["updated_at", "2015-03-01 08:25:46.418749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.420809"], ["user_id", "8f3baa3e-bfec-11e4-9c9c-705681abff85"], ["created_at", "2015-03-01 08:25:46.421621"], ["updated_at", "2015-03-01 08:25:46.421621"], ["token", "QYzA6J236UGvq_WLtCSjnCSqKsa7nZ3dlLJPS9dySS4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.424964"], ["updated_at", "2015-03-01 08:25:46.424964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f3baa3e-bfec-11e4-9c9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f3c9124-bfec-11e4-9546-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f3baa3e-bfec-11e4-9c9c-705681abff85"], ["organization_id", "8f3c9124-bfec-11e4-9546-705681abff85"], ["created_at", "2015-03-01 08:25:46.428602"], ["updated_at", "2015-03-01 08:25:46.428602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8f3c9124-bfec-11e4-9546-705681abff85" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"8f3c9124-bfec-11e4-9546-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.435865' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QYzA6J236UGvq_WLtCSjnCSqKsa7nZ3dlLJPS9dySS4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.437639"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.439053"], ["id", "8f3c18d4-bfec-11e4-84c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f3baa3e-bfec-11e4-9c9c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f3baa3e-bfec-11e4-9c9c-705681abff85"], ["id", "8f3c9124-bfec-11e4-9546-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8f3c9124-bfec-11e4-9546-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$FG6jkmqiPeLNsHIqglbZn.S64gg/OlzgAabRO35iXzacCgSc2swAq"], ["created_at", "2015-03-01 08:25:46.454401"], ["updated_at", "2015-03-01 08:25:46.454401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.456079"], ["user_id", "8f4113a2-bfec-11e4-a917-705681abff85"], ["created_at", "2015-03-01 08:25:46.456902"], ["updated_at", "2015-03-01 08:25:46.456902"], ["token", "c0JAEcHB4LCy26LVUw7n2rGV9mR9JE9cNh5qqoa5dV0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.460392"], ["updated_at", "2015-03-01 08:25:46.460392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f4113a2-bfec-11e4-a917-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f41fb28-bfec-11e4-aa10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f4113a2-bfec-11e4-a917-705681abff85"], ["organization_id", "8f41fb28-bfec-11e4-aa10-705681abff85"], ["created_at", "2015-03-01 08:25:46.463913"], ["updated_at", "2015-03-01 08:25:46.463913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8f41fb28-bfec-11e4-aa10-705681abff85" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"8f41fb28-bfec-11e4-aa10-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.468932' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "c0JAEcHB4LCy26LVUw7n2rGV9mR9JE9cNh5qqoa5dV0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.470917"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.480346"], ["id", "8f417b76-bfec-11e4-96ca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f4113a2-bfec-11e4-a917-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f4113a2-bfec-11e4-a917-705681abff85"], ["id", "8f41fb28-bfec-11e4-aa10-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8f41fb28-bfec-11e4-aa10-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:25:46.486451"], ["id", "8f41fb28-bfec-11e4-aa10-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$hVBDHqPlu4we.Cs5hIY2Cu/d6LX4A3baUUFBXrSrzm3h6C0qQAjsi"], ["created_at", "2015-03-01 08:25:46.494235"], ["updated_at", "2015-03-01 08:25:46.494235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.495833"], ["user_id", "8f4726b6-bfec-11e4-9d2e-705681abff85"], ["created_at", "2015-03-01 08:25:46.496658"], ["updated_at", "2015-03-01 08:25:46.496658"], ["token", "CB-DLF25kDpqN_dWukxQx-FMmB4a-oSC_NbLpMSV6vw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.501269"], ["updated_at", "2015-03-01 08:25:46.501269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f4726b6-bfec-11e4-9d2e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f483a2e-bfec-11e4-ae11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f4726b6-bfec-11e4-9d2e-705681abff85"], ["organization_id", "8f483a2e-bfec-11e4-ae11-705681abff85"], ["created_at", "2015-03-01 08:25:46.504674"], ["updated_at", "2015-03-01 08:25:46.504674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$60LAY44X0nvL3HsopxQaO.KLdDtZS/5/30yjystSzdRWQr7WhIPyG"], ["created_at", "2015-03-01 08:25:46.518498"], ["updated_at", "2015-03-01 08:25:46.518498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.520797"], ["user_id", "8f4ae328-bfec-11e4-a39b-705681abff85"], ["created_at", "2015-03-01 08:25:46.521820"], ["updated_at", "2015-03-01 08:25:46.521820"], ["token", "oBVRFQIwN0fR6Htx2Fhh2JBiUoGo2za8Ms6VKO0kw-A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.525725"], ["updated_at", "2015-03-01 08:25:46.525725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f4ae328-bfec-11e4-a39b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f4bf2e0-bfec-11e4-9897-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f4ae328-bfec-11e4-a39b-705681abff85"], ["organization_id", "8f4bf2e0-bfec-11e4-9897-705681abff85"], ["created_at", "2015-03-01 08:25:46.529057"], ["updated_at", "2015-03-01 08:25:46.529057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.534338' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oBVRFQIwN0fR6Htx2Fhh2JBiUoGo2za8Ms6VKO0kw-A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.535893"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.536845"], ["id", "8f4b6a8c-bfec-11e4-9677-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f4ae328-bfec-11e4-a39b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f4ae328-bfec-11e4-a39b-705681abff85"], ["name", "org-23"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8f4bf2e0-bfec-11e4-9897-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$6YKvXUy78yrjsK1OEAoQE.rrSWCsB2sygFjEaMSCvSeE87Jy9V7Ce"], ["created_at", "2015-03-01 08:25:46.550564"], ["updated_at", "2015-03-01 08:25:46.550564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.552264"], ["user_id", "8f4fc1f4-bfec-11e4-b194-705681abff85"], ["created_at", "2015-03-01 08:25:46.553099"], ["updated_at", "2015-03-01 08:25:46.553099"], ["token", "qSlv9Xu8RjsnSx5751ubIQgUOPp772SGG3Rh05vWL5s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.556475"], ["updated_at", "2015-03-01 08:25:46.556475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f4fc1f4-bfec-11e4-b194-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f50a844-bfec-11e4-b651-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f4fc1f4-bfec-11e4-b194-705681abff85"], ["organization_id", "8f50a844-bfec-11e4-b651-705681abff85"], ["created_at", "2015-03-01 08:25:46.559869"], ["updated_at", "2015-03-01 08:25:46.559869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.564322' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qSlv9Xu8RjsnSx5751ubIQgUOPp772SGG3Rh05vWL5s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.565709"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.566675"], ["id", "8f502716-bfec-11e4-8974-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f4fc1f4-bfec-11e4-b194-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f4fc1f4-bfec-11e4-b194-705681abff85"], ["name", "org-24"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8f50a844-bfec-11e4-b651-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:25:46.572477"], ["id", "8f50a844-bfec-11e4-b651-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$AIYlVMwbZYVR7rFa/xtVLONbMdY3kkaBtkRx24ZmJ5hj/UcU4/XVW"], ["created_at", "2015-03-01 08:25:46.579866"], ["updated_at", "2015-03-01 08:25:46.579866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.581583"], ["user_id", "8f54372a-bfec-11e4-8c97-705681abff85"], ["created_at", "2015-03-01 08:25:46.582427"], ["updated_at", "2015-03-01 08:25:46.582427"], ["token", "lL9rUqnlyhNmiZpq8h_ehIGWV9uVg_54Cfj_BlC0KQQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.586356"], ["updated_at", "2015-03-01 08:25:46.586356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f54372a-bfec-11e4-8c97-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f5533a0-bfec-11e4-832c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f54372a-bfec-11e4-8c97-705681abff85"], ["organization_id", "8f5533a0-bfec-11e4-832c-705681abff85"], ["created_at", "2015-03-01 08:25:46.589640"], ["updated_at", "2015-03-01 08:25:46.589640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$mwWr7KjPZporVpi4MhSX.ui.fbI5AiXMPuHPSBe1IUJarWFy/Unw2"], ["created_at", "2015-03-01 08:25:46.593878"], ["updated_at", "2015-03-01 08:25:46.593878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.597124"], ["updated_at", "2015-03-01 08:25:46.597124"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f5659e2-bfec-11e4-8d1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f56ea6a-bfec-11e4-8433-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f5659e2-bfec-11e4-8d1c-705681abff85"], ["organization_id", "8f56ea6a-bfec-11e4-8433-705681abff85"], ["created_at", "2015-03-01 08:25:46.602797"], ["updated_at", "2015-03-01 08:25:46.602797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.607576' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lL9rUqnlyhNmiZpq8h_ehIGWV9uVg_54Cfj_BlC0KQQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.609030"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.610021"], ["id", "8f54a8c2-bfec-11e4-8a9a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f54372a-bfec-11e4-8c97-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "8f54372a-bfec-11e4-8c97-705681abff85"]] Completed 200 OK in 8ms (Views: 2.4ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$hZesaF.7ITWtNQARbbFq6eMEsueY8LzFepbPNdWtFShGKz.Hu4KCy"], ["created_at", "2015-03-01 08:25:46.621791"], ["updated_at", "2015-03-01 08:25:46.621791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.624252"], ["user_id", "8f5aaf56-bfec-11e4-8734-705681abff85"], ["created_at", "2015-03-01 08:25:46.625169"], ["updated_at", "2015-03-01 08:25:46.625169"], ["token", "kHgBYjSmhpEIsU4_6CwD4F2e7ACF7-XUCmimt3MqCOA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.628887"], ["updated_at", "2015-03-01 08:25:46.628887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f5aaf56-bfec-11e4-8734-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f5bb0cc-bfec-11e4-8d77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f5aaf56-bfec-11e4-8734-705681abff85"], ["organization_id", "8f5bb0cc-bfec-11e4-8d77-705681abff85"], ["created_at", "2015-03-01 08:25:46.632327"], ["updated_at", "2015-03-01 08:25:46.632327"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$te1L/6CJd2OJjOdnKWLip.IoCeLLGEzdS5CaaARCShQCbzdcN0Y8C"], ["created_at", "2015-03-01 08:25:46.636787"], ["updated_at", "2015-03-01 08:25:46.636787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.640601"], ["updated_at", "2015-03-01 08:25:46.640601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f5ce51e-bfec-11e4-837d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f5d7bbe-bfec-11e4-8c73-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f5ce51e-bfec-11e4-837d-705681abff85"], ["organization_id", "8f5d7bbe-bfec-11e4-8c73-705681abff85"], ["created_at", "2015-03-01 08:25:46.643934"], ["updated_at", "2015-03-01 08:25:46.643934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$LBE.Nsw7ZEVSwCrqe8fqveM5kAusF0jctleQHO5EriL4yYK00V81e"], ["created_at", "2015-03-01 08:25:46.656358"], ["updated_at", "2015-03-01 08:25:46.656358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$0FyboCI9Tp89nOajNs9cwucW2VZ02zvKdMduBwFL7lO1IAOiL4lVm"], ["created_at", "2015-03-01 08:25:46.660614"], ["updated_at", "2015-03-01 08:25:46.660614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.662122"], ["user_id", "8f5fe516-bfec-11e4-aa78-705681abff85"], ["created_at", "2015-03-01 08:25:46.662923"], ["updated_at", "2015-03-01 08:25:46.662923"], ["token", "jjhpxRRc9ha9-58XBVb6hW4k1hokIGKcltugCaZBnHk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.667132"], ["updated_at", "2015-03-01 08:25:46.667132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f5fe516-bfec-11e4-aa78-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f618fe2-bfec-11e4-b6af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f5fe516-bfec-11e4-aa78-705681abff85"], ["organization_id", "8f618fe2-bfec-11e4-b6af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:46.670831"], ["updated_at", "2015-03-01 08:25:46.670831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f6086ec-bfec-11e4-bb4f-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f618fe2-bfec-11e4-b6af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f6086ec-bfec-11e4-bb4f-705681abff85"], ["organization_id", "8f618fe2-bfec-11e4-b6af-705681abff85"], ["created_at", "2015-03-01 08:25:46.674024"], ["updated_at", "2015-03-01 08:25:46.674024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/8f6290e0-bfec-11e4-ac87-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"8f6290e0-bfec-11e4-ac87-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.684548' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jjhpxRRc9ha9-58XBVb6hW4k1hokIGKcltugCaZBnHk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.686422"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.688355"], ["id", "8f60ea56-bfec-11e4-b12e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f5fe516-bfec-11e4-aa78-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f5fe516-bfec-11e4-aa78-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8f5fe516-bfec-11e4-aa78-705681abff85' LIMIT 1 [["organization_id", "8f618fe2-bfec-11e4-b6af-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8f618fe2-bfec-11e4-b6af-705681abff85"], ["id", "8f6290e0-bfec-11e4-ac87-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8f618fe2-bfec-11e4-b6af-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f6086ec-bfec-11e4-bb4f-705681abff85"]] Completed 200 OK in 18ms (Views: 5.2ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$3By6Xg7aIDIegno9417jVOXllf7evZJuq5tZSg00fjt7FeAZHmFCe"], ["created_at", "2015-03-01 08:25:46.708677"], ["updated_at", "2015-03-01 08:25:46.708677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$ktdqohlDn2ymdYA9oDmaxOoZhbNXQjggzm1NAHFYxPl4oqzSuNo7u"], ["created_at", "2015-03-01 08:25:46.712864"], ["updated_at", "2015-03-01 08:25:46.712864"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.714918"], ["user_id", "8f67df82-bfec-11e4-8376-705681abff85"], ["created_at", "2015-03-01 08:25:46.715854"], ["updated_at", "2015-03-01 08:25:46.715854"], ["token", "MuSxlE2BI2ivs7P2Kn7e98V4LMpWG8aajUGE4slCS4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.719499"], ["updated_at", "2015-03-01 08:25:46.719499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f67df82-bfec-11e4-8376-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f69827e-bfec-11e4-a7cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f67df82-bfec-11e4-8376-705681abff85"], ["organization_id", "8f69827e-bfec-11e4-a7cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:46.722920"], ["updated_at", "2015-03-01 08:25:46.722920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f687faa-bfec-11e4-99b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f69827e-bfec-11e4-a7cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f687faa-bfec-11e4-99b4-705681abff85"], ["organization_id", "8f69827e-bfec-11e4-a7cc-705681abff85"], ["created_at", "2015-03-01 08:25:46.726084"], ["updated_at", "2015-03-01 08:25:46.726084"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$lM58kvQsifpT0Jp9Hbr8fuW2FKO3vX8z4lYptFPp3UFDFYwZUxv86"], ["created_at", "2015-03-01 08:25:46.744979"], ["updated_at", "2015-03-01 08:25:46.744979"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$z8vAqMPIznUdgGyG.pU1u.wtEN8poyrxi2vvAQxXtBKq3J7YUPcr."], ["created_at", "2015-03-01 08:25:46.750020"], ["updated_at", "2015-03-01 08:25:46.750020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.752324"], ["user_id", "8f6d6c04-bfec-11e4-97ce-705681abff85"], ["created_at", "2015-03-01 08:25:46.753096"], ["updated_at", "2015-03-01 08:25:46.753096"], ["token", "AN6wxQzi-moZCaAPdNal9RoAa9T4hefN1yTQ8xkr3y0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.756558"], ["updated_at", "2015-03-01 08:25:46.756558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f6d6c04-bfec-11e4-97ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f6f2b34-bfec-11e4-864e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f6d6c04-bfec-11e4-97ce-705681abff85"], ["organization_id", "8f6f2b34-bfec-11e4-864e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:46.759837"], ["updated_at", "2015-03-01 08:25:46.759837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f6e4034-bfec-11e4-832d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f6f2b34-bfec-11e4-864e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f6e4034-bfec-11e4-832d-705681abff85"], ["organization_id", "8f6f2b34-bfec-11e4-864e-705681abff85"], ["created_at", "2015-03-01 08:25:46.762913"], ["updated_at", "2015-03-01 08:25:46.762913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.767911' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AN6wxQzi-moZCaAPdNal9RoAa9T4hefN1yTQ8xkr3y0"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.769335"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.771289"], ["id", "8f6eac54-bfec-11e4-920f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f6d6c04-bfec-11e4-97ce-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f6d6c04-bfec-11e4-97ce-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8f6d6c04-bfec-11e4-97ce-705681abff85' LIMIT 1 [["organization_id", "8f6f2b34-bfec-11e4-864e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "8f6f2b34-bfec-11e4-864e-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('8f6d6c04-bfec-11e4-97ce-705681abff85', '8f6e4034-bfec-11e4-832d-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('8f6f2b34-bfec-11e4-864e-705681abff85') Completed 200 OK in 20ms (Views: 8.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$WCc19omuXoZDqAnbcuUjEO5dqbOtvI91JRpiLaNvYiDHtUbt.x8wC"], ["created_at", "2015-03-01 08:25:46.794020"], ["updated_at", "2015-03-01 08:25:46.794020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$T9ulkrZVR0XzDb9R/Hmzl.cIH9kSwZmxOK78JkcLQVefHK/mDiCbK"], ["created_at", "2015-03-01 08:25:46.798752"], ["updated_at", "2015-03-01 08:25:46.798752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.801034"], ["user_id", "8f74e628-bfec-11e4-bde9-705681abff85"], ["created_at", "2015-03-01 08:25:46.802278"], ["updated_at", "2015-03-01 08:25:46.802278"], ["token", "y5R9fGZoGEsPBAra0aUQwy4VpAejE0YskheYah7vDew"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.806184"], ["updated_at", "2015-03-01 08:25:46.806184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f74e628-bfec-11e4-bde9-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f76c218-bfec-11e4-92c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f74e628-bfec-11e4-bde9-705681abff85"], ["organization_id", "8f76c218-bfec-11e4-92c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:46.809698"], ["updated_at", "2015-03-01 08:25:46.809698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f75ad42-bfec-11e4-b095-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f76c218-bfec-11e4-92c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f75ad42-bfec-11e4-b095-705681abff85"], ["organization_id", "8f76c218-bfec-11e4-92c8-705681abff85"], ["created_at", "2015-03-01 08:25:46.812880"], ["updated_at", "2015-03-01 08:25:46.812880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$15IH9RFY.nr3ftMuFVIm0e06PY4PnzotXD6SX4Ya.z8GB2ZkfSZWe"], ["created_at", "2015-03-01 08:25:46.834262"], ["updated_at", "2015-03-01 08:25:46.834262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$h/WEayV81Z0q7W2u8y.18eJg2aMcgOQy8NcS2A0FkcGMWpdq2Mwe."], ["created_at", "2015-03-01 08:25:46.839314"], ["updated_at", "2015-03-01 08:25:46.839314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.840936"], ["user_id", "8f7b0aee-bfec-11e4-99bd-705681abff85"], ["created_at", "2015-03-01 08:25:46.841728"], ["updated_at", "2015-03-01 08:25:46.841728"], ["token", "_RR__llvVLOjV2l9mU88QrRC1son3ffgytrgY_w0KFc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.845130"], ["updated_at", "2015-03-01 08:25:46.845130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f7b0aee-bfec-11e4-99bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f7cad7c-bfec-11e4-9937-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f7b0aee-bfec-11e4-99bd-705681abff85"], ["organization_id", "8f7cad7c-bfec-11e4-9937-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:46.848451"], ["updated_at", "2015-03-01 08:25:46.848451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f7bcd94-bfec-11e4-845b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f7cad7c-bfec-11e4-9937-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f7bcd94-bfec-11e4-845b-705681abff85"], ["organization_id", "8f7cad7c-bfec-11e4-9937-705681abff85"], ["created_at", "2015-03-01 08:25:46.852724"], ["updated_at", "2015-03-01 08:25:46.852724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/8f7d3576-bfec-11e4-a210-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8f7d3576-bfec-11e4-a210-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.857324' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_RR__llvVLOjV2l9mU88QrRC1son3ffgytrgY_w0KFc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.859837"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.861622"], ["id", "8f7c3374-bfec-11e4-80de-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f7b0aee-bfec-11e4-99bd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f7b0aee-bfec-11e4-99bd-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8f7b0aee-bfec-11e4-99bd-705681abff85' LIMIT 1 [["organization_id", "8f7cad7c-bfec-11e4-9937-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8f7cad7c-bfec-11e4-9937-705681abff85"], ["id", "8f7d3576-bfec-11e4-a210-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f7b0aee-bfec-11e4-99bd-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$7nxvQXkiPTRMWMVokAcSW.hvZ9U.Zad/Vm5ouXdonuV83Oy2WqsVy"], ["created_at", "2015-03-01 08:25:46.875673"], ["updated_at", "2015-03-01 08:25:46.875673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$LOt19w1WS2Pr212dyf8TeOnEy0eNPBif8EVx/6W9wTLu3BfQcuVkG"], ["created_at", "2015-03-01 08:25:46.879921"], ["updated_at", "2015-03-01 08:25:46.879921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.881497"], ["user_id", "8f815976-bfec-11e4-a1ef-705681abff85"], ["created_at", "2015-03-01 08:25:46.882235"], ["updated_at", "2015-03-01 08:25:46.882235"], ["token", "TzeCH6FJ54ncQAJ-fgU7Epe8v30XcCL-4c0vAWGM_as"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.886213"], ["updated_at", "2015-03-01 08:25:46.886213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f815976-bfec-11e4-a1ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f82f420-bfec-11e4-b041-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f815976-bfec-11e4-a1ef-705681abff85"], ["organization_id", "8f82f420-bfec-11e4-b041-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:46.889555"], ["updated_at", "2015-03-01 08:25:46.889555"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f81fdfe-bfec-11e4-bef7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f82f420-bfec-11e4-b041-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f81fdfe-bfec-11e4-bef7-705681abff85"], ["organization_id", "8f82f420-bfec-11e4-b041-705681abff85"], ["created_at", "2015-03-01 08:25:46.892599"], ["updated_at", "2015-03-01 08:25:46.892599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/8f83ec5e-bfec-11e4-b9e0-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8f83ec5e-bfec-11e4-b9e0-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.897760' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TzeCH6FJ54ncQAJ-fgU7Epe8v30XcCL-4c0vAWGM_as"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.899891"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.901565"], ["id", "8f826ed8-bfec-11e4-bc6e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f815976-bfec-11e4-a1ef-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f815976-bfec-11e4-a1ef-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8f815976-bfec-11e4-a1ef-705681abff85' LIMIT 1 [["organization_id", "8f82f420-bfec-11e4-b041-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8f82f420-bfec-11e4-b041-705681abff85"], ["id", "8f83ec5e-bfec-11e4-b9e0-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f81fdfe-bfec-11e4-bef7-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "8f83ec5e-bfec-11e4-b9e0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$JoW8ocWtl5gZqJf77oAcR.FJW.rcCo6wfdWHPUvO3UrXFyKSvn0ee"], ["created_at", "2015-03-01 08:25:46.918759"], ["updated_at", "2015-03-01 08:25:46.918759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$Zv.M3baRypSgR2MF/Sot1u3mO8l9sFVg/NC/cLHK9EXrNNpR4dcK2"], ["created_at", "2015-03-01 08:25:46.923293"], ["updated_at", "2015-03-01 08:25:46.923293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.924784"], ["user_id", "8f87f506-bfec-11e4-820b-705681abff85"], ["created_at", "2015-03-01 08:25:46.925561"], ["updated_at", "2015-03-01 08:25:46.925561"], ["token", "ED1BWRd5ETkvt92s9cH7xQAzou98W1NjHWZWnWu0j5Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.928792"], ["updated_at", "2015-03-01 08:25:46.928792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f87f506-bfec-11e4-820b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f897160-bfec-11e4-bfc6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f87f506-bfec-11e4-820b-705681abff85"], ["organization_id", "8f897160-bfec-11e4-bfc6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:46.932044"], ["updated_at", "2015-03-01 08:25:46.932044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f889b1e-bfec-11e4-ad69-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f897160-bfec-11e4-bfc6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f889b1e-bfec-11e4-ad69-705681abff85"], ["organization_id", "8f897160-bfec-11e4-bfc6-705681abff85"], ["created_at", "2015-03-01 08:25:46.935081"], ["updated_at", "2015-03-01 08:25:46.935081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$vg5veuB8ACKNpIX/XcarJuSyFAgYGMXJys8IS55XhudjUettil77K"], ["created_at", "2015-03-01 08:25:46.946926"], ["updated_at", "2015-03-01 08:25:46.946926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$hniVtXju2QFxtI7TyMXxS.IKLCIra4JjCUUKzVDzuKzC9/7yFM.Kq"], ["created_at", "2015-03-01 08:25:46.951753"], ["updated_at", "2015-03-01 08:25:46.951753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.953651"], ["user_id", "8f8c3bfc-bfec-11e4-ba18-705681abff85"], ["created_at", "2015-03-01 08:25:46.954557"], ["updated_at", "2015-03-01 08:25:46.954557"], ["token", "OMAPtIHt8cpBue6m2TzoylbB3x_5401NWzRWft1qn9Y"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.958265"], ["updated_at", "2015-03-01 08:25:46.958265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f8c3bfc-bfec-11e4-ba18-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f8df1c2-bfec-11e4-9ae7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f8c3bfc-bfec-11e4-ba18-705681abff85"], ["organization_id", "8f8df1c2-bfec-11e4-9ae7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:46.961507"], ["updated_at", "2015-03-01 08:25:46.961507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f8cf8bc-bfec-11e4-b3b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f8df1c2-bfec-11e4-9ae7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f8cf8bc-bfec-11e4-b3b8-705681abff85"], ["organization_id", "8f8df1c2-bfec-11e4-9ae7-705681abff85"], ["created_at", "2015-03-01 08:25:46.964728"], ["updated_at", "2015-03-01 08:25:46.964728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/8f8e7160-bfec-11e4-995d-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:46 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"8f8e7160-bfec-11e4-995d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:46.970647' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OMAPtIHt8cpBue6m2TzoylbB3x_5401NWzRWft1qn9Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:46.972144"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:46.973129"], ["id", "8f8d6f72-bfec-11e4-b710-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f8c3bfc-bfec-11e4-ba18-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f8c3bfc-bfec-11e4-ba18-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8f8c3bfc-bfec-11e4-ba18-705681abff85' LIMIT 1 [["organization_id", "8f8df1c2-bfec-11e4-9ae7-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8f8df1c2-bfec-11e4-9ae7-705681abff85"], ["id", "8f8e7160-bfec-11e4-995d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f8c3bfc-bfec-11e4-ba18-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$xf4jZbgPH8s/AM6G1A/wzuH55BPCb9eQbt5cZB09BBbwZPKx0wo7C"], ["created_at", "2015-03-01 08:25:46.986673"], ["updated_at", "2015-03-01 08:25:46.986673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$f6nwj0K0afdfLhcFOoI27uiKf/yYQEfezVOOK0kP5n/DSpDW5Nkwu"], ["created_at", "2015-03-01 08:25:46.990914"], ["updated_at", "2015-03-01 08:25:46.990914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:46.992409"], ["user_id", "8f924b00-bfec-11e4-8185-705681abff85"], ["created_at", "2015-03-01 08:25:46.993152"], ["updated_at", "2015-03-01 08:25:46.993152"], ["token", "eAgEsWX3vMQYfUyCiSziA4GIVuuvzQzFBNs4S1K4mts"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:46.996496"], ["updated_at", "2015-03-01 08:25:46.996496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f924b00-bfec-11e4-8185-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f93c8e0-bfec-11e4-90b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f924b00-bfec-11e4-8185-705681abff85"], ["organization_id", "8f93c8e0-bfec-11e4-90b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.000271"], ["updated_at", "2015-03-01 08:25:47.000271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f92ec22-bfec-11e4-85b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f93c8e0-bfec-11e4-90b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f92ec22-bfec-11e4-85b7-705681abff85"], ["organization_id", "8f93c8e0-bfec-11e4-90b6-705681abff85"], ["created_at", "2015-03-01 08:25:47.003611"], ["updated_at", "2015-03-01 08:25:47.003611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/8f94dc08-bfec-11e4-925d-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"8f94dc08-bfec-11e4-925d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.008439' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eAgEsWX3vMQYfUyCiSziA4GIVuuvzQzFBNs4S1K4mts"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.010287"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.012147"], ["id", "8f934bc2-bfec-11e4-93fb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f924b00-bfec-11e4-8185-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8f924b00-bfec-11e4-8185-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8f924b00-bfec-11e4-8185-705681abff85' LIMIT 1 [["organization_id", "8f93c8e0-bfec-11e4-90b6-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "8f93c8e0-bfec-11e4-90b6-705681abff85"], ["id", "8f94dc08-bfec-11e4-925d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f92ec22-bfec-11e4-85b7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8f93c8e0-bfec-11e4-90b6-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f92ec22-bfec-11e4-85b7-705681abff85' AND "clubhouse_memberships"."id" != '8f94dc08-bfec-11e4-925d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f93c8e0-bfec-11e4-90b6-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 08:25:47.022042"], ["id", "8f94dc08-bfec-11e4-925d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 1.1ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$WDyUig./GJuzmJ4gvQH0XekzKec.j/k9w0MTyna.yLVIol.zcTXKu"], ["created_at", "2015-03-01 08:25:47.031322"], ["updated_at", "2015-03-01 08:25:47.031322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$srPrSRNaR1wajKELT/xP.e.sgi5Ku/ZY2rS4pBieca9TmZj3u5VSm"], ["created_at", "2015-03-01 08:25:47.036923"], ["updated_at", "2015-03-01 08:25:47.036923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.038674"], ["user_id", "8f9922fe-bfec-11e4-a257-705681abff85"], ["created_at", "2015-03-01 08:25:47.039464"], ["updated_at", "2015-03-01 08:25:47.039464"], ["token", "rEzokylz2s0-sbzbV0nNPhz_lbg8oVzYoqACJUimsmo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.042872"], ["updated_at", "2015-03-01 08:25:47.042872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f9922fe-bfec-11e4-a257-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f9adc0c-bfec-11e4-9f0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f9922fe-bfec-11e4-a257-705681abff85"], ["organization_id", "8f9adc0c-bfec-11e4-9f0e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.046284"], ["updated_at", "2015-03-01 08:25:47.046284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f99f7d8-bfec-11e4-9b02-705681abff85' AND "clubhouse_memberships"."organization_id" = '8f9adc0c-bfec-11e4-9f0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f99f7d8-bfec-11e4-9b02-705681abff85"], ["organization_id", "8f9adc0c-bfec-11e4-9f0e-705681abff85"], ["created_at", "2015-03-01 08:25:47.049558"], ["updated_at", "2015-03-01 08:25:47.049558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$M8mnPr/0XtBCRs7iHit2K.J1VzjM04J6yytG2bL1Mw1b98wSIX1FG"], ["created_at", "2015-03-01 08:25:47.053910"], ["updated_at", "2015-03-01 08:25:47.053910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.055416"], ["user_id", "8f9c894e-bfec-11e4-8998-705681abff85"], ["created_at", "2015-03-01 08:25:47.056160"], ["updated_at", "2015-03-01 08:25:47.056160"], ["token", "kEu-ThGONZ32Ww-byGx6HNwg6R90lPdgdPgoMwy0ADQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '8f9adc0c-bfec-11e4-9f0e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "8f9adc0c-bfec-11e4-9f0e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.059946"], ["updated_at", "2015-03-01 08:25:47.059946"], ["token", "97Kx7OMQ2_eaFp-08tImf3QNAlCTQBUVHe7y4HOm8Yk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$C3VambJMNYcbcCCPMo3vhu1dbPpMOiPT/BJo4osTWLWBRUeTyWV9S"], ["created_at", "2015-03-01 08:25:47.074424"], ["updated_at", "2015-03-01 08:25:47.074424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$ltF4ObYQMngsc9COn.z9WeQcRj3ab8BUprEKjxreGoSY5rNcGmhBy"], ["created_at", "2015-03-01 08:25:47.079198"], ["updated_at", "2015-03-01 08:25:47.079198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.080759"], ["user_id", "8f9fafde-bfec-11e4-94c6-705681abff85"], ["created_at", "2015-03-01 08:25:47.081584"], ["updated_at", "2015-03-01 08:25:47.081584"], ["token", "kDIkdWUowvNJmJDaogtV8ywiL4t3-KwKxJKh_z4EU7s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.086010"], ["updated_at", "2015-03-01 08:25:47.086010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f9fafde-bfec-11e4-94c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fa18016-bfec-11e4-83e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f9fafde-bfec-11e4-94c6-705681abff85"], ["organization_id", "8fa18016-bfec-11e4-83e2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.090887"], ["updated_at", "2015-03-01 08:25:47.090887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fa066c2-bfec-11e4-aa7a-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fa18016-bfec-11e4-83e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8fa066c2-bfec-11e4-aa7a-705681abff85"], ["organization_id", "8fa18016-bfec-11e4-83e2-705681abff85"], ["created_at", "2015-03-01 08:25:47.094477"], ["updated_at", "2015-03-01 08:25:47.094477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$CpSiY/PA2Xmn9TA7GnjFr.aJlhEta3bLNLlTigAeEeHx3uVZGUnii"], ["created_at", "2015-03-01 08:25:47.099174"], ["updated_at", "2015-03-01 08:25:47.099174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.101431"], ["user_id", "8fa37dda-bfec-11e4-84ba-705681abff85"], ["created_at", "2015-03-01 08:25:47.102412"], ["updated_at", "2015-03-01 08:25:47.102412"], ["token", "c2lxHgwATCfjNdW-73oPKRbBItsBWvVNyGrUcVnZK7A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '8fa18016-bfec-11e4-83e2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "8fa18016-bfec-11e4-83e2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.106731"], ["updated_at", "2015-03-01 08:25:47.106731"], ["token", "ys8oUynM7C_M3mP2NqDdN1lqOL1d6goTR4Z9qV1B57I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.112678' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "c2lxHgwATCfjNdW-73oPKRbBItsBWvVNyGrUcVnZK7A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.114330"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.115445"], ["id", "8fa3ff44-bfec-11e4-9d8e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8fa37dda-bfec-11e4-84ba-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8fa37dda-bfec-11e4-84ba-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$bvDqXRvTwTjw2v97qkeEeuBdErlInw2.T/2LOxEg3p/tmNzSroZEu"], ["created_at", "2015-03-01 08:25:47.131064"], ["updated_at", "2015-03-01 08:25:47.131064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$D69hpmKugsxPCQa.hfqMcOgoXUwMPwcmeKzTN2xVKE9.5PpViYI5m"], ["created_at", "2015-03-01 08:25:47.137318"], ["updated_at", "2015-03-01 08:25:47.137318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.139244"], ["user_id", "8fa857ba-bfec-11e4-8495-705681abff85"], ["created_at", "2015-03-01 08:25:47.140083"], ["updated_at", "2015-03-01 08:25:47.140083"], ["token", "4BWa3z62qgruCYy99pLtcqAOsVUDQVcBr7ZBUPTiaw4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.144200"], ["updated_at", "2015-03-01 08:25:47.144200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fa857ba-bfec-11e4-8495-705681abff85' AND "clubhouse_memberships"."organization_id" = '8faa60b4-bfec-11e4-a570-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fa857ba-bfec-11e4-8495-705681abff85"], ["organization_id", "8faa60b4-bfec-11e4-a570-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.149092"], ["updated_at", "2015-03-01 08:25:47.149092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fa94daa-bfec-11e4-9d61-705681abff85' AND "clubhouse_memberships"."organization_id" = '8faa60b4-bfec-11e4-a570-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8fa94daa-bfec-11e4-9d61-705681abff85"], ["organization_id", "8faa60b4-bfec-11e4-a570-705681abff85"], ["created_at", "2015-03-01 08:25:47.155356"], ["updated_at", "2015-03-01 08:25:47.155356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$LwISp.YkIGAZZCMQ8bqdweswXv8l4EB5GjLlCot22.ga7kR7EEFne"], ["created_at", "2015-03-01 08:25:47.159773"], ["updated_at", "2015-03-01 08:25:47.159773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.161338"], ["user_id", "8facb260-bfec-11e4-a890-705681abff85"], ["created_at", "2015-03-01 08:25:47.162123"], ["updated_at", "2015-03-01 08:25:47.162123"], ["token", "CR6DZbNzhac0_KzXCPJ06olAQtZGFSfObI3-SJE1HWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '8faa60b4-bfec-11e4-a570-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "8faa60b4-bfec-11e4-a570-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.173505"], ["updated_at", "2015-03-01 08:25:47.173505"], ["token", "deRjAzKtUWQV6bv4XheutL2dufbEHibzraXLthglk2M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"deRjAzKtUWQV6bv4XheutL2dufbEHibzraXLthglk2M", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.178423' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CR6DZbNzhac0_KzXCPJ06olAQtZGFSfObI3-SJE1HWw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.179873"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.180829"], ["id", "8fae2820-bfec-11e4-b3e0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8facb260-bfec-11e4-a890-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8facb260-bfec-11e4-a890-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "deRjAzKtUWQV6bv4XheutL2dufbEHibzraXLthglk2M"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8faa60b4-bfec-11e4-a570-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8faa60b4-bfec-11e4-a570-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8facb260-bfec-11e4-a890-705681abff85' AND "clubhouse_memberships"."organization_id" = '8faa60b4-bfec-11e4-a570-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8facb260-bfec-11e4-a890-705681abff85"], ["admin", "t"], ["organization_id", "8faa60b4-bfec-11e4-a570-705681abff85"], ["created_at", "2015-03-01 08:25:47.189479"], ["updated_at", "2015-03-01 08:25:47.189479"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "8faed11c-bfec-11e4-9532-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.1ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$rLSRtyIR2n/5EHB7TRwuAubS.5UuFeLfXx.PbLOCs4UDZbaEBVJNO"], ["created_at", "2015-03-01 08:25:47.199090"], ["updated_at", "2015-03-01 08:25:47.199090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$gfpVoUcwq.GIHHXzwQP0I.fOAWrNRqRI/migVT1Z3780jeCKs45y6"], ["created_at", "2015-03-01 08:25:47.203451"], ["updated_at", "2015-03-01 08:25:47.203451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.204989"], ["user_id", "8fb2b6a6-bfec-11e4-a6ff-705681abff85"], ["created_at", "2015-03-01 08:25:47.205951"], ["updated_at", "2015-03-01 08:25:47.205951"], ["token", "Sc9TdlWJudtQdLIS5vfFT4HDfyKg9_U8xd8zkFnpjwQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.211663"], ["updated_at", "2015-03-01 08:25:47.211663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fb2b6a6-bfec-11e4-a6ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fb49cbe-bfec-11e4-85e3-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fb2b6a6-bfec-11e4-a6ff-705681abff85"], ["organization_id", "8fb49cbe-bfec-11e4-85e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.215003"], ["updated_at", "2015-03-01 08:25:47.215003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fb35b42-bfec-11e4-bad7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fb49cbe-bfec-11e4-85e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8fb35b42-bfec-11e4-bad7-705681abff85"], ["organization_id", "8fb49cbe-bfec-11e4-85e3-705681abff85"], ["created_at", "2015-03-01 08:25:47.218607"], ["updated_at", "2015-03-01 08:25:47.218607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.223430' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Sc9TdlWJudtQdLIS5vfFT4HDfyKg9_U8xd8zkFnpjwQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.225293"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.227143"], ["id", "8fb3f3d6-bfec-11e4-834f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8fb2b6a6-bfec-11e4-a6ff-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8fb2b6a6-bfec-11e4-a6ff-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8fb2b6a6-bfec-11e4-a6ff-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "8fb2b6a6-bfec-11e4-a6ff-705681abff85"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('8fb2b6a6-bfec-11e4-a6ff-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('8fb49cbe-bfec-11e4-85e3-705681abff85') Completed 200 OK in 16ms (Views: 4.5ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$ic.wd15qdpeNhHMfwASRbOpxGtyXWlePJ4iYZTNTaOpuxBbBpSkua"], ["created_at", "2015-03-01 08:25:47.245099"], ["updated_at", "2015-03-01 08:25:47.245099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$zV/EYfinYsROtyAoUnJ5XOtDW3yvaQybF.X3kZJpMmDtKVwhwmf3q"], ["created_at", "2015-03-01 08:25:47.249440"], ["updated_at", "2015-03-01 08:25:47.249440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.251288"], ["user_id", "8fb9bb18-bfec-11e4-9be7-705681abff85"], ["created_at", "2015-03-01 08:25:47.252560"], ["updated_at", "2015-03-01 08:25:47.252560"], ["token", "AiFpFltOjsUYbOjvj04t-V1GlbAW1Okt1uUfAAPCFI0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.256004"], ["updated_at", "2015-03-01 08:25:47.256004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fb9bb18-bfec-11e4-9be7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fbb5f36-bfec-11e4-9822-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fb9bb18-bfec-11e4-9be7-705681abff85"], ["organization_id", "8fbb5f36-bfec-11e4-9822-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.259236"], ["updated_at", "2015-03-01 08:25:47.259236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fba63d8-bfec-11e4-a950-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fbb5f36-bfec-11e4-9822-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8fba63d8-bfec-11e4-a950-705681abff85"], ["organization_id", "8fbb5f36-bfec-11e4-9822-705681abff85"], ["created_at", "2015-03-01 08:25:47.262252"], ["updated_at", "2015-03-01 08:25:47.262252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/8fbbdd4e-bfec-11e4-a6a3-705681abff85" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"8fbbdd4e-bfec-11e4-a6a3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.266705' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AiFpFltOjsUYbOjvj04t-V1GlbAW1Okt1uUfAAPCFI0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.268400"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.269404"], ["id", "8fbae470-bfec-11e4-a907-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8fb9bb18-bfec-11e4-9be7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8fb9bb18-bfec-11e4-9be7-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8fb9bb18-bfec-11e4-9be7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "8fb9bb18-bfec-11e4-9be7-705681abff85"], ["id", "8fbbdd4e-bfec-11e4-a6a3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8fbb5f36-bfec-11e4-9822-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8fb9bb18-bfec-11e4-9be7-705681abff85"]] Completed 200 OK in 12ms (Views: 2.8ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$yYn4OsW.D5zQdBCc/MQKUOUfTnQoQc7o9uUfT.GTKEGKGEyPq9pyO"], ["created_at", "2015-03-01 08:25:47.284584"], ["updated_at", "2015-03-01 08:25:47.284584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$zAa97mS/DUnxY/tkiSl/POvonvtiRfUiQXG8WDCU5zXQk.VFgOZXm"], ["created_at", "2015-03-01 08:25:47.291664"], ["updated_at", "2015-03-01 08:25:47.291664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.293416"], ["user_id", "8fbfc63e-bfec-11e4-828f-705681abff85"], ["created_at", "2015-03-01 08:25:47.294220"], ["updated_at", "2015-03-01 08:25:47.294220"], ["token", "XQrZWqHXijgoOfjfN9j1JP_oWK3BpalohXuWGRwVyNg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.297700"], ["updated_at", "2015-03-01 08:25:47.297700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fbfc63e-bfec-11e4-828f-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fc1bfa2-bfec-11e4-986c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fbfc63e-bfec-11e4-828f-705681abff85"], ["organization_id", "8fc1bfa2-bfec-11e4-986c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.301401"], ["updated_at", "2015-03-01 08:25:47.301401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fc0d81c-bfec-11e4-91f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fc1bfa2-bfec-11e4-986c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8fc0d81c-bfec-11e4-91f8-705681abff85"], ["organization_id", "8fc1bfa2-bfec-11e4-986c-705681abff85"], ["created_at", "2015-03-01 08:25:47.304866"], ["updated_at", "2015-03-01 08:25:47.304866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$WH518Ld8BUovlubpauUpOOL8dk7IItsCdBdKBO6vYbseGyibIPzpa"], ["created_at", "2015-03-01 08:25:47.319340"], ["updated_at", "2015-03-01 08:25:47.319340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.321016"], ["user_id", "8fc50e96-bfec-11e4-a85e-705681abff85"], ["created_at", "2015-03-01 08:25:47.322428"], ["updated_at", "2015-03-01 08:25:47.322428"], ["token", "Gu0uj6JyFlwHLOdZ8wsvU-2itmPQ5GHE17tepHo6nmo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.326409"], ["updated_at", "2015-03-01 08:25:47.326409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fc50e96-bfec-11e4-a85e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fc61dae-bfec-11e4-85ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fc50e96-bfec-11e4-a85e-705681abff85"], ["organization_id", "8fc61dae-bfec-11e4-85ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.329642"], ["updated_at", "2015-03-01 08:25:47.329642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '8fc61dae-bfec-11e4-85ff-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "8fc61dae-bfec-11e4-85ff-705681abff85"], ["created_at", "2015-03-01 08:25:47.333201"], ["updated_at", "2015-03-01 08:25:47.333201"], ["token", "tWC9lfgVrPJQCjdLNLwTGQ2Z460YH9P1FVcQzzniruc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/8fc7447c-bfec-11e4-8f05-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"8fc7447c-bfec-11e4-8f05-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.374329' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Gu0uj6JyFlwHLOdZ8wsvU-2itmPQ5GHE17tepHo6nmo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.377141"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.378894"], ["id", "8fc59cb2-bfec-11e4-a373-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8fc50e96-bfec-11e4-a85e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8fc50e96-bfec-11e4-a85e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8fc50e96-bfec-11e4-a85e-705681abff85' LIMIT 1 [["organization_id", "8fc61dae-bfec-11e4-85ff-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8fc61dae-bfec-11e4-85ff-705681abff85"], ["id", "8fc7447c-bfec-11e4-8f05-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8fc61dae-bfec-11e4-85ff-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."id" != '8fc7447c-bfec-11e4-8f05-705681abff85' AND "clubhouse_invitations"."organization_id" = '8fc61dae-bfec-11e4-85ff-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 08:25:47.395423"], ["id", "8fc7447c-bfec-11e4-8f05-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 25ms (Views: 1.9ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$DBWFveSJzXRc/V6TIardieU6uHMHhcw/Uq5Cplp1sYTcTV4/epG66"], ["created_at", "2015-03-01 08:25:47.405687"], ["updated_at", "2015-03-01 08:25:47.405687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.407651"], ["user_id", "8fd24458-bfec-11e4-bf96-705681abff85"], ["created_at", "2015-03-01 08:25:47.408418"], ["updated_at", "2015-03-01 08:25:47.408418"], ["token", "4Dk-A_rWozZjCL_e9L69Vjx828cA26C6lQlkdi4Xpa4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.412070"], ["updated_at", "2015-03-01 08:25:47.412070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fd24458-bfec-11e4-bf96-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fd334da-bfec-11e4-b27a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fd24458-bfec-11e4-bf96-705681abff85"], ["organization_id", "8fd334da-bfec-11e4-b27a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.415645"], ["updated_at", "2015-03-01 08:25:47.415645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '8fd334da-bfec-11e4-b27a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "8fd334da-bfec-11e4-b27a-705681abff85"], ["created_at", "2015-03-01 08:25:47.420331"], ["updated_at", "2015-03-01 08:25:47.420331"], ["token", "IstZh-DsNG5e9fbjE6O5EXzrfL-TABdlEDghrziHQFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$k5RhobicAfJB37ULqVwzM.uEXqXjl4CmDw1bTFLyLmx.n7sgcKnny"], ["created_at", "2015-03-01 08:25:47.433226"], ["updated_at", "2015-03-01 08:25:47.433226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.435085"], ["user_id", "8fd670dc-bfec-11e4-a302-705681abff85"], ["created_at", "2015-03-01 08:25:47.435855"], ["updated_at", "2015-03-01 08:25:47.435855"], ["token", "bkp_PNwDUl6Ef0WVqY3PLFsKBIfB6jXtWvOTKBV9wjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.439979"], ["updated_at", "2015-03-01 08:25:47.439979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fd670dc-bfec-11e4-a302-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fd773d8-bfec-11e4-8cb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fd670dc-bfec-11e4-a302-705681abff85"], ["organization_id", "8fd773d8-bfec-11e4-8cb9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.443459"], ["updated_at", "2015-03-01 08:25:47.443459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '8fd773d8-bfec-11e4-8cb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "8fd773d8-bfec-11e4-8cb9-705681abff85"], ["created_at", "2015-03-01 08:25:47.446912"], ["updated_at", "2015-03-01 08:25:47.446912"], ["token", "uWBH3w2siBglMIXU5FdcwluI4TA-hjJ-H2I6VHBCd68"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/8fd88688-bfec-11e4-93d0-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"8fd88688-bfec-11e4-93d0-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.452591' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bkp_PNwDUl6Ef0WVqY3PLFsKBIfB6jXtWvOTKBV9wjE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.454434"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.455745"], ["id", "8fd6df04-bfec-11e4-9cd6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8fd670dc-bfec-11e4-a302-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8fd670dc-bfec-11e4-a302-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8fd670dc-bfec-11e4-a302-705681abff85' LIMIT 1 [["organization_id", "8fd773d8-bfec-11e4-8cb9-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8fd773d8-bfec-11e4-8cb9-705681abff85"], ["id", "8fd88688-bfec-11e4-93d0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8fd773d8-bfec-11e4-8cb9-705681abff85"]] Completed 200 OK in 14ms (Views: 2.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$FyzK7pQdbvS4KQCHSel5neXpvrt4so9cCqtS0fYwUqHxCBuFTZN/u"], ["created_at", "2015-03-01 08:25:47.472577"], ["updated_at", "2015-03-01 08:25:47.472577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.474210"], ["user_id", "8fdc6ffa-bfec-11e4-947f-705681abff85"], ["created_at", "2015-03-01 08:25:47.474979"], ["updated_at", "2015-03-01 08:25:47.474979"], ["token", "g9tFBXhiJpqksvACrMTCMgOlPd-UDjjkHYkA3S-qebk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.478300"], ["updated_at", "2015-03-01 08:25:47.478300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fdc6ffa-bfec-11e4-947f-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fdd4ac4-bfec-11e4-bd57-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fdc6ffa-bfec-11e4-947f-705681abff85"], ["organization_id", "8fdd4ac4-bfec-11e4-bd57-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.481587"], ["updated_at", "2015-03-01 08:25:47.481587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '8fdd4ac4-bfec-11e4-bd57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "8fdd4ac4-bfec-11e4-bd57-705681abff85"], ["created_at", "2015-03-01 08:25:47.487582"], ["updated_at", "2015-03-01 08:25:47.487582"], ["token", "T7p3poENMcnP_-vmJPN606cXcKFzik80ZLslN0Pehmw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$XzsHAovzu1Anmla.j6oTvulBnZZGXka6qGf4AwufPAgKdJRu4qj/G"], ["created_at", "2015-03-01 08:25:47.501130"], ["updated_at", "2015-03-01 08:25:47.501130"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.503497"], ["user_id", "8fe0ca28-bfec-11e4-b2b3-705681abff85"], ["created_at", "2015-03-01 08:25:47.504437"], ["updated_at", "2015-03-01 08:25:47.504437"], ["token", "NL0UPokcSlF3fetJcpC2qK4Ld5EbLGQWl6aBji2kqPQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.508239"], ["updated_at", "2015-03-01 08:25:47.508239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fe0ca28-bfec-11e4-b2b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fe1ddb4-bfec-11e4-a367-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fe0ca28-bfec-11e4-b2b3-705681abff85"], ["organization_id", "8fe1ddb4-bfec-11e4-a367-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.511533"], ["updated_at", "2015-03-01 08:25:47.511533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '8fe1ddb4-bfec-11e4-a367-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "8fe1ddb4-bfec-11e4-a367-705681abff85"], ["created_at", "2015-03-01 08:25:47.514949"], ["updated_at", "2015-03-01 08:25:47.514949"], ["token", "UB1ZpAC1xzOzT_CfRr0mKVBBDvJD0Xxjgv7CdVm4SGk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/8fe2e812-bfec-11e4-b742-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"8fe2e812-bfec-11e4-b742-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.520627' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NL0UPokcSlF3fetJcpC2qK4Ld5EbLGQWl6aBji2kqPQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.522450"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.523479"], ["id", "8fe15c18-bfec-11e4-a306-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8fe0ca28-bfec-11e4-b2b3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8fe0ca28-bfec-11e4-b2b3-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8fe0ca28-bfec-11e4-b2b3-705681abff85' LIMIT 1 [["organization_id", "8fe1ddb4-bfec-11e4-a367-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "8fe1ddb4-bfec-11e4-a367-705681abff85"], ["id", "8fe2e812-bfec-11e4-b742-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "8fe2e812-bfec-11e4-b742-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 19ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$qYCQB054sPqNr9/eV2.He.9T.iu10o98KkCgshBKr8vc3kMcv1ocG"], ["created_at", "2015-03-01 08:25:47.545027"], ["updated_at", "2015-03-01 08:25:47.545027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.546843"], ["user_id", "8fe78110-bfec-11e4-b89e-705681abff85"], ["created_at", "2015-03-01 08:25:47.547640"], ["updated_at", "2015-03-01 08:25:47.547640"], ["token", "XbJARVhzOsnOCYWelW1HRhR2xAhP-6STKrw4UyNmI-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.551135"], ["updated_at", "2015-03-01 08:25:47.551135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fe78110-bfec-11e4-b89e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fe86a58-bfec-11e4-8aac-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fe78110-bfec-11e4-b89e-705681abff85"], ["organization_id", "8fe86a58-bfec-11e4-8aac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.554387"], ["updated_at", "2015-03-01 08:25:47.554387"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '8fe86a58-bfec-11e4-8aac-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "8fe86a58-bfec-11e4-8aac-705681abff85"], ["created_at", "2015-03-01 08:25:47.562697"], ["updated_at", "2015-03-01 08:25:47.562697"], ["token", "vIXt3TC-ofJURB7KJpLqp0YDpfb4mH6BcazeyLpEw9c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$J37VhlAXbccoryG6Px579e9jj4cEeUUvuYQ/dl6JUh0pc4Or87eBe"], ["created_at", "2015-03-01 08:25:47.576413"], ["updated_at", "2015-03-01 08:25:47.576413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.578306"], ["user_id", "8fec4cd6-bfec-11e4-9021-705681abff85"], ["created_at", "2015-03-01 08:25:47.579114"], ["updated_at", "2015-03-01 08:25:47.579114"], ["token", "N6RsVb0ZRJ26olsJT3h4k-W8xfE2umtfzchrpI_Px8M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.582452"], ["updated_at", "2015-03-01 08:25:47.582452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fec4cd6-bfec-11e4-9021-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fed30ba-bfec-11e4-ace2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fec4cd6-bfec-11e4-9021-705681abff85"], ["organization_id", "8fed30ba-bfec-11e4-ace2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.585836"], ["updated_at", "2015-03-01 08:25:47.585836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '8fed30ba-bfec-11e4-ace2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "8fed30ba-bfec-11e4-ace2-705681abff85"], ["created_at", "2015-03-01 08:25:47.590450"], ["updated_at", "2015-03-01 08:25:47.590450"], ["token", "ityIhg-ZsmNFGP96JX70y_p-s-oSfUA7v5AWoalDbpg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$s.j56PoY9zIlf64Fq0tIr.lJ6gMbaxjDa5TRxddQv.GNNORpr4/GG"], ["created_at", "2015-03-01 08:25:47.595078"], ["updated_at", "2015-03-01 08:25:47.595078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.598088"], ["updated_at", "2015-03-01 08:25:47.598088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fef1d1c-bfec-11e4-960e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fef91de-bfec-11e4-81f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8fef1d1c-bfec-11e4-960e-705681abff85"], ["organization_id", "8fef91de-bfec-11e4-81f9-705681abff85"], ["created_at", "2015-03-01 08:25:47.601174"], ["updated_at", "2015-03-01 08:25:47.601174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.607020' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N6RsVb0ZRJ26olsJT3h4k-W8xfE2umtfzchrpI_Px8M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.608463"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.609476"], ["id", "8fecb752-bfec-11e4-92a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8fec4cd6-bfec-11e4-9021-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8fec4cd6-bfec-11e4-9021-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8fec4cd6-bfec-11e4-9021-705681abff85' LIMIT 1 [["organization_id", "8fed30ba-bfec-11e4-ace2-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "8fed30ba-bfec-11e4-ace2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('8fed30ba-bfec-11e4-ace2-705681abff85') Completed 200 OK in 10ms (Views: 2.4ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$/Xq47yBzk6MSPu2v.2WhKuYxxkDhTMdoo8DzAg1oVySpUcxS75bDm"], ["created_at", "2015-03-01 08:25:47.623581"], ["updated_at", "2015-03-01 08:25:47.623581"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.626439"], ["user_id", "8ff37b3c-bfec-11e4-8ad8-705681abff85"], ["created_at", "2015-03-01 08:25:47.627560"], ["updated_at", "2015-03-01 08:25:47.627560"], ["token", "ZqwSCCuWoQdNyovroxyd8na8xylAp5TD4Hi7HXgLEE0"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.635327"], ["updated_at", "2015-03-01 08:25:47.635327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ff37b3c-bfec-11e4-8ad8-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ff558c6-bfec-11e4-88f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ff37b3c-bfec-11e4-8ad8-705681abff85"], ["organization_id", "8ff558c6-bfec-11e4-88f6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.639595"], ["updated_at", "2015-03-01 08:25:47.639595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '8ff558c6-bfec-11e4-88f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "8ff558c6-bfec-11e4-88f6-705681abff85"], ["created_at", "2015-03-01 08:25:47.643348"], ["updated_at", "2015-03-01 08:25:47.643348"], ["token", "IdCnwhux3osjhYCmTZ9q-t34BCg_qlNNLvlkEiuSZdM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$rnQozoH.ooGX/3SOayTxrOsvUtb.jeoADB.XarJVhCHM48IOHagri"], ["created_at", "2015-03-01 08:25:47.647954"], ["updated_at", "2015-03-01 08:25:47.647954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.650952"], ["updated_at", "2015-03-01 08:25:47.650952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ff72eda-bfec-11e4-a64f-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ff7a40a-bfec-11e4-ae5f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8ff72eda-bfec-11e4-a64f-705681abff85"], ["organization_id", "8ff7a40a-bfec-11e4-ae5f-705681abff85"], ["created_at", "2015-03-01 08:25:47.654964"], ["updated_at", "2015-03-01 08:25:47.654964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$IZ56g73nln4LFuVv2d1AJ.TOTshh6h9z85zEi69pGAAJNg3a4D1HW"], ["created_at", "2015-03-01 08:25:47.667143"], ["updated_at", "2015-03-01 08:25:47.667143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.668865"], ["user_id", "8ffa1f28-bfec-11e4-8236-705681abff85"], ["created_at", "2015-03-01 08:25:47.670013"], ["updated_at", "2015-03-01 08:25:47.670013"], ["token", "3uHchl31E6G_XkZT_wByr_RAnNUlvBH09XXvLE545sY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.674295"], ["updated_at", "2015-03-01 08:25:47.674295"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ffa1f28-bfec-11e4-8236-705681abff85' AND "clubhouse_memberships"."organization_id" = '8ffb3606-bfec-11e4-9f5e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ffa1f28-bfec-11e4-8236-705681abff85"], ["organization_id", "8ffb3606-bfec-11e4-9f5e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.680098"], ["updated_at", "2015-03-01 08:25:47.680098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '8ffb3606-bfec-11e4-9f5e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "8ffb3606-bfec-11e4-9f5e-705681abff85"], ["created_at", "2015-03-01 08:25:47.683838"], ["updated_at", "2015-03-01 08:25:47.683838"], ["token", "3-zde5Pk_hdLH7SoDD33w5XBfYA9g6iftSGBrUk-UoQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$rDqS/.WsdjSSPwJgLriY3uiWNp1ijyHmX4nE9N4ZrO5hYdya9u75m"], ["created_at", "2015-03-01 08:25:47.697054"], ["updated_at", "2015-03-01 08:25:47.697054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.698683"], ["user_id", "8ffeb024-bfec-11e4-95aa-705681abff85"], ["created_at", "2015-03-01 08:25:47.699472"], ["updated_at", "2015-03-01 08:25:47.699472"], ["token", "QbyEmeoIWaOvZ_pn9NKsqFmSTpcnv5W7u7jM1zdcrvM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.702976"], ["updated_at", "2015-03-01 08:25:47.702976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ffeb024-bfec-11e4-95aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '8fff93c2-bfec-11e4-95ca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ffeb024-bfec-11e4-95aa-705681abff85"], ["organization_id", "8fff93c2-bfec-11e4-95ca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.706992"], ["updated_at", "2015-03-01 08:25:47.706992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '8fff93c2-bfec-11e4-95ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "8fff93c2-bfec-11e4-95ca-705681abff85"], ["created_at", "2015-03-01 08:25:47.710803"], ["updated_at", "2015-03-01 08:25:47.710803"], ["token", "Z2eiQ4HcyyUOISNnmfw4LT7cfnR07IQCGhale8pqGDw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.716337' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QbyEmeoIWaOvZ_pn9NKsqFmSTpcnv5W7u7jM1zdcrvM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.717768"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.718817"], ["id", "8fff1320-bfec-11e4-8fc8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8ffeb024-bfec-11e4-95aa-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "8ffeb024-bfec-11e4-95aa-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8ffeb024-bfec-11e4-95aa-705681abff85' LIMIT 1 [["organization_id", "8fff93c2-bfec-11e4-95ca-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8fff93c2-bfec-11e4-95ca-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '8fff93c2-bfec-11e4-95ca-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$c4oD.RbrUuYjo8ZEBqvPIeos.YBqoU3DFIxxGPomTmxql1vxisUz."], ["created_at", "2015-03-01 08:25:47.738589"], ["updated_at", "2015-03-01 08:25:47.738589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:47.740318"], ["user_id", "900508b6-bfec-11e4-b9be-705681abff85"], ["created_at", "2015-03-01 08:25:47.741142"], ["updated_at", "2015-03-01 08:25:47.741142"], ["token", "-GqzwccDv57d2ik7FsgnTZ0YVmzXGK9l_ipO6_VYRi0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:47.744753"], ["updated_at", "2015-03-01 08:25:47.744753"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '900508b6-bfec-11e4-b9be-705681abff85' AND "clubhouse_memberships"."organization_id" = '9005f618-bfec-11e4-a97d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "900508b6-bfec-11e4-b9be-705681abff85"], ["organization_id", "9005f618-bfec-11e4-a97d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:47.748984"], ["updated_at", "2015-03-01 08:25:47.748984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '9005f618-bfec-11e4-a97d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "9005f618-bfec-11e4-a97d-705681abff85"], ["created_at", "2015-03-01 08:25:47.752732"], ["updated_at", "2015-03-01 08:25:47.752732"], ["token", "AVZijt7Me1dEb0ytO-GSFBVtuyBdu7KBHToIZT_33z8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:47 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:47.758192' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-GqzwccDv57d2ik7FsgnTZ0YVmzXGK9l_ipO6_VYRi0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:47.759787"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:47.760752"], ["id", "900572ce-bfec-11e4-8522-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "900508b6-bfec-11e4-b9be-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "900508b6-bfec-11e4-b9be-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '900508b6-bfec-11e4-b9be-705681abff85' LIMIT 1 [["organization_id", "9005f618-bfec-11e4-a97d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9005f618-bfec-11e4-a97d-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '9005f618-bfec-11e4-a97d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "9005f618-bfec-11e4-a97d-705681abff85"], ["created_at", "2015-03-01 08:25:47.768383"], ["updated_at", "2015-03-01 08:25:47.768383"], ["token", "agQ5IGwe-phkjkhTcHCGVfVjyt7IsEc8FGOVLeKRBOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c38ee393-5412-47f7-a012-116bed76318d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9009ab96-bfec-11e4-980b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "9009ab96-bfec-11e4-980b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c38ee393-5412-47f7-a012-116bed76318d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9009ab96-bfec-11e4-980b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [c38ee393-5412-47f7-a012-116bed76318d] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9005f618-bfec-11e4-a97d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c38ee393-5412-47f7-a012-116bed76318d] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [c38ee393-5412-47f7-a012-116bed76318d] Clubhouse::Mailer#invitation: processed outbound mail in 231.5ms [ActiveJob] [ActionMailer::DeliveryJob] [c38ee393-5412-47f7-a012-116bed76318d] Sent mail to email@example.com (7.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [c38ee393-5412-47f7-a012-116bed76318d] Date: Sun, 01 Mar 2015 00:25:48 -0800 From: from@example.com To: email@example.com Message-ID: <54f2cd0c84c9_137c23fdeb8c65be8303ad@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/agQ5IGwe-phkjkhTcHCGVfVjyt7IsEc8FGOVLeKRBOo If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [c38ee393-5412-47f7-a012-116bed76318d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 239.98ms Completed 201 Created in 281ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$gFvRuctsh5GbVExy64iBX.VtH/b3P170isDcQtWXY5m8TzwWSJ512"], ["created_at", "2015-03-01 08:25:48.047247"], ["updated_at", "2015-03-01 08:25:48.047247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:25:48.049233"], ["user_id", "903429de-bfec-11e4-b0fe-705681abff85"], ["created_at", "2015-03-01 08:25:48.050083"], ["updated_at", "2015-03-01 08:25:48.050083"], ["token", "eP8ZzCRU01lhViTYiMEiI-Ddi7czlHPB96E8TlduP_g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:48.053926"], ["updated_at", "2015-03-01 08:25:48.053926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '903429de-bfec-11e4-b0fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '903521fe-bfec-11e4-98a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "903429de-bfec-11e4-b0fe-705681abff85"], ["organization_id", "903521fe-bfec-11e4-98a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:25:48.057754"], ["updated_at", "2015-03-01 08:25:48.057754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '903521fe-bfec-11e4-98a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "903521fe-bfec-11e4-98a4-705681abff85"], ["created_at", "2015-03-01 08:25:48.061788"], ["updated_at", "2015-03-01 08:25:48.061788"], ["token", "i8ZI-6joJRSO2uylKED-n5RH2bYlr_Z52gL0ine8IWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:25:48 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:25:48.069042' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eP8ZzCRU01lhViTYiMEiI-Ddi7czlHPB96E8TlduP_g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:25:48.070705"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:25:48.071911"], ["id", "90349900-bfec-11e4-aa5f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "903429de-bfec-11e4-b0fe-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "903429de-bfec-11e4-b0fe-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '903429de-bfec-11e4-b0fe-705681abff85' LIMIT 1 [["organization_id", "903521fe-bfec-11e4-98a4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "903521fe-bfec-11e4-98a4-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '903521fe-bfec-11e4-98a4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "903521fe-bfec-11e4-98a4-705681abff85"], ["created_at", "2015-03-01 08:25:48.082154"], ["updated_at", "2015-03-01 08:25:48.082154"], ["token", "hPRUosl34xyXIq1-vlsYofzOKZmEJJqYu52FoWzkjlM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9f3866d4-daef-465b-8f86-728058436519) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9039899c-bfec-11e4-93d4-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "9039899c-bfec-11e4-93d4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9f3866d4-daef-465b-8f86-728058436519] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9039899c-bfec-11e4-93d4-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9f3866d4-daef-465b-8f86-728058436519] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "903521fe-bfec-11e4-98a4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9f3866d4-daef-465b-8f86-728058436519] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [9f3866d4-daef-465b-8f86-728058436519] Clubhouse::Mailer#invitation: processed outbound mail in 4.0ms [ActiveJob] [ActionMailer::DeliveryJob] [9f3866d4-daef-465b-8f86-728058436519] Sent mail to email@example.com (6.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [9f3866d4-daef-465b-8f86-728058436519] Date: Sun, 01 Mar 2015 00:25:48 -0800 From: from@example.com To: email@example.com Message-ID: <54f2cd0c16c40_137c23fdeb8c65be83048d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/hPRUosl34xyXIq1-vlsYofzOKZmEJJqYu52FoWzkjlM If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9f3866d4-daef-465b-8f86-728058436519] Performed ActionMailer::DeliveryJob from Inline(mailers) in 11.41ms Completed 201 Created in 32ms (Views: 1.3ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:48.106696"], ["updated_at", "2015-03-01 08:25:48.106696"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '903d32ae-bfec-11e4-880f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "903d32ae-bfec-11e4-880f-705681abff85"], ["created_at", "2015-03-01 08:25:48.110768"], ["updated_at", "2015-03-01 08:25:48.110768"], ["token", "yLcI32BLK6fI38SqgPg3Z7qoOTuspwmPYQ5lvuvtcNg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Sun, 01 Mar 2015 00:25:48 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cd0c1bef8_137c23fdeb8c65be83053a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/yLcI32BLK6fI38SqgPg3Z7qoOTuspwmPYQ5lvuvtcNg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:48.119846"], ["updated_at", "2015-03-01 08:25:48.119846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '903f32ca-bfec-11e4-8cbf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "903f32ca-bfec-11e4-8cbf-705681abff85"], ["created_at", "2015-03-01 08:25:48.123416"], ["updated_at", "2015-03-01 08:25:48.123416"], ["token", "-yKogKJ4xcBVhRnExqf8a4jyv3ktheZFs0C0pa79Jeg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.8ms) Date: Sun, 01 Mar 2015 00:25:48 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cd0c1f1a6_137c23fdeb8c65be8306f4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/-yKogKJ4xcBVhRnExqf8a4jyv3ktheZFs0C0pa79Jeg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:48.138453"], ["updated_at", "2015-03-01 08:25:48.138453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '90422f66-bfec-11e4-9c1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "90422f66-bfec-11e4-9c1d-705681abff85"], ["created_at", "2015-03-01 08:25:48.143425"], ["updated_at", "2015-03-01 08:25:48.143425"], ["token", "udNrAtJgU24XE4L1HpcgWilDJHmfd7gQPU3ddMulHSg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (2.2ms) Date: Sun, 01 Mar 2015 00:25:48 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cd0c23e55_137c23fdeb8c65be830751@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/udNrAtJgU24XE4L1HpcgWilDJHmfd7gQPU3ddMulHSg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:48.152611"], ["updated_at", "2015-03-01 08:25:48.152611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '904432de-bfec-11e4-b03b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "904432de-bfec-11e4-b03b-705681abff85"], ["created_at", "2015-03-01 08:25:48.156680"], ["updated_at", "2015-03-01 08:25:48.156680"], ["token", "4igcCNhWp3_qpvinEhOwBwQyhv_FGHleCAgW44nzPWw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (4.0ms) Date: Sun, 01 Mar 2015 00:25:48 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cd0c27f74_137c23fdeb8c65be830827@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/4igcCNhWp3_qpvinEhOwBwQyhv_FGHleCAgW44nzPWw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$qqSYDvUw9LTZ06tGSy1VFu4Dc1ZY.PA2xPRUt/52W1tfDeb/mNEca"], ["created_at", "2015-03-01 08:25:48.183096"], ["updated_at", "2015-03-01 08:25:48.183096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:25:48.188812"], ["updated_at", "2015-03-01 08:25:48.188812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '90491330-bfec-11e4-a5fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '9049ba24-bfec-11e4-a668-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "90491330-bfec-11e4-a5fc-705681abff85"], ["organization_id", "9049ba24-bfec-11e4-a668-705681abff85"], ["created_at", "2015-03-01 08:25:48.191914"], ["updated_at", "2015-03-01 08:25:48.191914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "90491330-bfec-11e4-a5fc-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9049ba24-bfec-11e4-a668-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '90491330-bfec-11e4-a5fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '9049ba24-bfec-11e4-a668-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9049ba24-bfec-11e4-a668-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '90491330-bfec-11e4-a5fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '9049ba24-bfec-11e4-a668-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (2.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$35.uvnehoIonXSoxqCbBc.cPJoThMWpti3ao0zhrIW98Wp99Lyore"], ["created_at", "2015-03-01 08:29:09.723579"], ["updated_at", "2015-03-01 08:29:09.723579"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (25.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:09.754216"], ["user_id", "0869ac08-bfed-11e4-be9c-705681abff85"], ["created_at", "2015-03-01 08:29:09.760473"], ["updated_at", "2015-03-01 08:29:09.760473"], ["token", "hzeuVYyDmn_BR3U0ahj-jj5eaEMozv1q3jdhAvBEWuY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:09.796803"], ["updated_at", "2015-03-01 08:29:09.796803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0869ac08-bfed-11e4-be9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0874fa0e-bfed-11e4-b6d4-705681abff85') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0869ac08-bfed-11e4-be9c-705681abff85"], ["organization_id", "0874fa0e-bfed-11e4-b6d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:09.810794"], ["updated_at", "2015-03-01 08:29:09.810794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0874fa0e-bfed-11e4-b6d4-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "0874fa0e-bfed-11e4-b6d4-705681abff85"], ["created_at", "2015-03-01 08:29:09.822102"], ["updated_at", "2015-03-01 08:29:09.822102"], ["token", "rZq6lExXAd4xXEAo6c-aC4UnoS8oq9cggkUzlUOO_2Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/08789452-bfed-11e4-8482-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:09 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"08789452-bfed-11e4-8482-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (1.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:09.861908' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hzeuVYyDmn_BR3U0ahj-jj5eaEMozv1q3jdhAvBEWuY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:09.886003"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:09.887358"], ["id", "086f36be-bfed-11e4-8e26-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0869ac08-bfed-11e4-be9c-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0869ac08-bfed-11e4-be9c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0869ac08-bfed-11e4-be9c-705681abff85' LIMIT 1 [["organization_id", "0874fa0e-bfed-11e4-b6d4-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "0874fa0e-bfed-11e4-b6d4-705681abff85"], ["id", "08789452-bfed-11e4-8482-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0874fa0e-bfed-11e4-b6d4-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."id" != '08789452-bfed-11e4-8482-705681abff85' AND "clubhouse_invitations"."organization_id" = '0874fa0e-bfed-11e4-b6d4-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 08:29:09.921370"], ["id", "08789452-bfed-11e4-8482-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 64ms (Views: 2.9ms | ActiveRecord: 3.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$HMCpVl8Mm9mlVAyYj6LJ4eT1QQQPwj/yiyWEErmn632FDjF0W49fS"], ["created_at", "2015-03-01 08:29:09.936053"], ["updated_at", "2015-03-01 08:29:09.936053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:09.937779"], ["user_id", "0889eb44-bfed-11e4-a384-705681abff85"], ["created_at", "2015-03-01 08:29:09.938570"], ["updated_at", "2015-03-01 08:29:09.938570"], ["token", "DlyMYGKFE01xTd2Vq7vTeKFwSnHwm9zwIcWPYuGm6Os"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:09.942163"], ["updated_at", "2015-03-01 08:29:09.942163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0889eb44-bfed-11e4-a384-705681abff85' AND "clubhouse_memberships"."organization_id" = '088ad496-bfed-11e4-a51c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0889eb44-bfed-11e4-a384-705681abff85"], ["organization_id", "088ad496-bfed-11e4-a51c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:09.945590"], ["updated_at", "2015-03-01 08:29:09.945590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '088ad496-bfed-11e4-a51c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "088ad496-bfed-11e4-a51c-705681abff85"], ["created_at", "2015-03-01 08:29:09.949634"], ["updated_at", "2015-03-01 08:29:09.949634"], ["token", "QOh6kBpi6VKfhO3U3sDKimxVCz7FlDgdob3FPwBkXkY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:29:09 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$qGyoLe07NiKwaSvrzHXFs.o2AAL2Tdm0KYZQ7CsYlBUKNWIcdpMxm"], ["created_at", "2015-03-01 08:29:09.964341"], ["updated_at", "2015-03-01 08:29:09.964341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:09.965956"], ["user_id", "088e3b18-bfed-11e4-88cb-705681abff85"], ["created_at", "2015-03-01 08:29:09.966801"], ["updated_at", "2015-03-01 08:29:09.966801"], ["token", "EHugPx_abvHitJZeWKQLSmLBohD-FhjT5Yqi-ZQYJh4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:09.970707"], ["updated_at", "2015-03-01 08:29:09.970707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '088e3b18-bfed-11e4-88cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '088f30a4-bfed-11e4-9aca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "088e3b18-bfed-11e4-88cb-705681abff85"], ["organization_id", "088f30a4-bfed-11e4-9aca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:09.973989"], ["updated_at", "2015-03-01 08:29:09.973989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '088f30a4-bfed-11e4-9aca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "088f30a4-bfed-11e4-9aca-705681abff85"], ["created_at", "2015-03-01 08:29:09.977399"], ["updated_at", "2015-03-01 08:29:09.977399"], ["token", "zFTRh7rVGg3D55YudRU95a6dKYS-9UU7mV9XAVTkHNs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ntI5S4jqzcQr2pZCDicfreKajbp2feLhFQ/TQkpfZFN/P89fozA7S"], ["created_at", "2015-03-01 08:29:09.981888"], ["updated_at", "2015-03-01 08:29:09.981888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:09.985041"], ["updated_at", "2015-03-01 08:29:09.985041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0890e516-bfed-11e4-8888-705681abff85' AND "clubhouse_memberships"."organization_id" = '089165ae-bfed-11e4-a1a6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0890e516-bfed-11e4-8888-705681abff85"], ["organization_id", "089165ae-bfed-11e4-a1a6-705681abff85"], ["created_at", "2015-03-01 08:29:09.989775"], ["updated_at", "2015-03-01 08:29:09.989775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:09 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:09.995539' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EHugPx_abvHitJZeWKQLSmLBohD-FhjT5Yqi-ZQYJh4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:09.997422"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:09.999388"], ["id", "088ea9ea-bfed-11e4-b34e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "088e3b18-bfed-11e4-88cb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "088e3b18-bfed-11e4-88cb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '088e3b18-bfed-11e4-88cb-705681abff85' LIMIT 1 [["organization_id", "088f30a4-bfed-11e4-9aca-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "088f30a4-bfed-11e4-9aca-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('088f30a4-bfed-11e4-9aca-705681abff85') Completed 200 OK in 21ms (Views: 10.0ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$B7V8OMk/1YtV/v7hXUB0X.i/k0l.AfBUhCiKj2vKupJ6QKJ/fH.lG"], ["created_at", "2015-03-01 08:29:10.024466"], ["updated_at", "2015-03-01 08:29:10.024466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.026143"], ["user_id", "08976774-bfed-11e4-92d6-705681abff85"], ["created_at", "2015-03-01 08:29:10.026921"], ["updated_at", "2015-03-01 08:29:10.026921"], ["token", "JJNS07uSn5ZUE9Q-PhGlZh6lYgZpWX6pO4yCX7lwQ18"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.030293"], ["updated_at", "2015-03-01 08:29:10.030293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08976774-bfed-11e4-92d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '08984752-bfed-11e4-b06b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08976774-bfed-11e4-92d6-705681abff85"], ["organization_id", "08984752-bfed-11e4-b06b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.033585"], ["updated_at", "2015-03-01 08:29:10.033585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '08984752-bfed-11e4-b06b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "08984752-bfed-11e4-b06b-705681abff85"], ["created_at", "2015-03-01 08:29:10.037293"], ["updated_at", "2015-03-01 08:29:10.037293"], ["token", "80SjDSsNEeAD_Dxqb-IGeSyAVDPLA20nnM9XCVX_Uy8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$OMZrdKLAUAb3iWWJ3smfmu8JQjAp1nJHdRkXzs5CbboZwm8dNaicG"], ["created_at", "2015-03-01 08:29:10.041840"], ["updated_at", "2015-03-01 08:29:10.041840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.044901"], ["updated_at", "2015-03-01 08:29:10.044901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '089a0b32-bfed-11e4-9f64-705681abff85' AND "clubhouse_memberships"."organization_id" = '089a8170-bfed-11e4-b76f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "089a0b32-bfed-11e4-9f64-705681abff85"], ["organization_id", "089a8170-bfed-11e4-b76f-705681abff85"], ["created_at", "2015-03-01 08:29:10.048007"], ["updated_at", "2015-03-01 08:29:10.048007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$BjyEaDuB7LBDlHVXUvrrCOPzm94UHggJwFl7xm.pzPKV64MHraiaq"], ["created_at", "2015-03-01 08:29:10.064110"], ["updated_at", "2015-03-01 08:29:10.064110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.065770"], ["user_id", "089d733a-bfed-11e4-85e1-705681abff85"], ["created_at", "2015-03-01 08:29:10.066718"], ["updated_at", "2015-03-01 08:29:10.066718"], ["token", "sROKGVCsmnPVsZGC8Mn-2k_ACAbmg_IxDmcTFPdFPEU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.071118"], ["updated_at", "2015-03-01 08:29:10.071118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '089d733a-bfed-11e4-85e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '089e8d6a-bfed-11e4-bab3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "089d733a-bfed-11e4-85e1-705681abff85"], ["organization_id", "089e8d6a-bfed-11e4-bab3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.075286"], ["updated_at", "2015-03-01 08:29:10.075286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '089e8d6a-bfed-11e4-bab3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "089e8d6a-bfed-11e4-bab3-705681abff85"], ["created_at", "2015-03-01 08:29:10.079376"], ["updated_at", "2015-03-01 08:29:10.079376"], ["token", "F8SOU8pkHKTbME1WeeJEHTHyLXFa-rji0PxcZ2Io6CA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/089fcb30-bfed-11e4-b514-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"089fcb30-bfed-11e4-b514-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:10.085012' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sROKGVCsmnPVsZGC8Mn-2k_ACAbmg_IxDmcTFPdFPEU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:10.086381"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:10.087373"], ["id", "089de1bc-bfed-11e4-932d-705681abff85"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "089d733a-bfed-11e4-85e1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "089d733a-bfed-11e4-85e1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '089d733a-bfed-11e4-85e1-705681abff85' LIMIT 1 [["organization_id", "089e8d6a-bfed-11e4-bab3-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "089e8d6a-bfed-11e4-bab3-705681abff85"], ["id", "089fcb30-bfed-11e4-b514-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "089fcb30-bfed-11e4-b514-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$XBKO3WwQohaHrO0v0UmVqOj.gVakbfGApQcfeS0XQ7szpRkHmQ6sG"], ["created_at", "2015-03-01 08:29:10.102771"], ["updated_at", "2015-03-01 08:29:10.102771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.105229"], ["user_id", "08a35ea8-bfed-11e4-b784-705681abff85"], ["created_at", "2015-03-01 08:29:10.106878"], ["updated_at", "2015-03-01 08:29:10.106878"], ["token", "8wBpAYBNVQu4_9r7jshaxUWtjCiqgxt9KLff3_mCIdc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.111673"], ["updated_at", "2015-03-01 08:29:10.111673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08a35ea8-bfed-11e4-b784-705681abff85' AND "clubhouse_memberships"."organization_id" = '08a4c3b0-bfed-11e4-b846-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08a35ea8-bfed-11e4-b784-705681abff85"], ["organization_id", "08a4c3b0-bfed-11e4-b846-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.115784"], ["updated_at", "2015-03-01 08:29:10.115784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '08a4c3b0-bfed-11e4-b846-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "08a4c3b0-bfed-11e4-b846-705681abff85"], ["created_at", "2015-03-01 08:29:10.119440"], ["updated_at", "2015-03-01 08:29:10.119440"], ["token", "ugGrg9tneLHuYHVckT9rViW_Tj1GmWpLYRoHti7L0PQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$M1AGV7iSCQ.G2hVnASTBCugqbqZ/vX62BRNdn2PXooGvkT1Mzgluy"], ["created_at", "2015-03-01 08:29:10.165438"], ["updated_at", "2015-03-01 08:29:10.165438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.167229"], ["user_id", "08acedb0-bfed-11e4-8dfe-705681abff85"], ["created_at", "2015-03-01 08:29:10.168032"], ["updated_at", "2015-03-01 08:29:10.168032"], ["token", "ufOthrvgAFKvLMe_HV3K01fOQaJVVCghRmrlll6Uve0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.172497"], ["updated_at", "2015-03-01 08:29:10.172497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08acedb0-bfed-11e4-8dfe-705681abff85' AND "clubhouse_memberships"."organization_id" = '08adfbec-bfed-11e4-970f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08acedb0-bfed-11e4-8dfe-705681abff85"], ["organization_id", "08adfbec-bfed-11e4-970f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.175783"], ["updated_at", "2015-03-01 08:29:10.175783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '08adfbec-bfed-11e4-970f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "08adfbec-bfed-11e4-970f-705681abff85"], ["created_at", "2015-03-01 08:29:10.179016"], ["updated_at", "2015-03-01 08:29:10.179016"], ["token", "GtndJeTT9eIz9iMp1NIK2-XNxo096JO4JaK2C-6IFYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/08aefad8-bfed-11e4-8cad-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"08aefad8-bfed-11e4-8cad-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:10.184711' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ufOthrvgAFKvLMe_HV3K01fOQaJVVCghRmrlll6Uve0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:10.186234"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:10.187254"], ["id", "08ad5872-bfed-11e4-a9dc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08acedb0-bfed-11e4-8dfe-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08acedb0-bfed-11e4-8dfe-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '08acedb0-bfed-11e4-8dfe-705681abff85' LIMIT 1 [["organization_id", "08adfbec-bfed-11e4-970f-705681abff85"]] Clubhouse::Invitation Load (1.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "08adfbec-bfed-11e4-970f-705681abff85"], ["id", "08aefad8-bfed-11e4-8cad-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08adfbec-bfed-11e4-970f-705681abff85"]] Completed 200 OK in 15ms (Views: 3.2ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$1V8UdtAT8Y4dterdd0dpTONVihNRYNKGt74fUIE9Ecf/9WCLICly."], ["created_at", "2015-03-01 08:29:10.205296"], ["updated_at", "2015-03-01 08:29:10.205296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.206884"], ["user_id", "08b2fd2c-bfed-11e4-abf6-705681abff85"], ["created_at", "2015-03-01 08:29:10.207670"], ["updated_at", "2015-03-01 08:29:10.207670"], ["token", "-z6_XWUa1mzXDdGGUobI4EHgmin6t0PAbpA2ubg5ZaU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.211094"], ["updated_at", "2015-03-01 08:29:10.211094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08b2fd2c-bfed-11e4-abf6-705681abff85' AND "clubhouse_memberships"."organization_id" = '08b3dc92-bfed-11e4-b501-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08b2fd2c-bfed-11e4-abf6-705681abff85"], ["organization_id", "08b3dc92-bfed-11e4-b501-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.214268"], ["updated_at", "2015-03-01 08:29:10.214268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '08b3dc92-bfed-11e4-b501-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "08b3dc92-bfed-11e4-b501-705681abff85"], ["created_at", "2015-03-01 08:29:10.217703"], ["updated_at", "2015-03-01 08:29:10.217703"], ["token", "njWOnsocigfTUkRJeUB9wfmWQUrHLp_BDALr2hns2Is"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$eQU/S7FIh1ybdCQ7icql.uRy7fnv21XamXyJPMAecAcZ5J0R3EBC."], ["created_at", "2015-03-01 08:29:10.230711"], ["updated_at", "2015-03-01 08:29:10.230711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.232317"], ["user_id", "08b6ddfc-bfed-11e4-8db9-705681abff85"], ["created_at", "2015-03-01 08:29:10.233101"], ["updated_at", "2015-03-01 08:29:10.233101"], ["token", "Hbp6Mt8UlMr-GvIUPmjwEcc_AD4CKakyy6XwEt6E5B0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.236868"], ["updated_at", "2015-03-01 08:29:10.236868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08b6ddfc-bfed-11e4-8db9-705681abff85' AND "clubhouse_memberships"."organization_id" = '08b7d1d0-bfed-11e4-b6ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08b6ddfc-bfed-11e4-8db9-705681abff85"], ["organization_id", "08b7d1d0-bfed-11e4-b6ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.240469"], ["updated_at", "2015-03-01 08:29:10.240469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '08b7d1d0-bfed-11e4-b6ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "08b7d1d0-bfed-11e4-b6ce-705681abff85"], ["created_at", "2015-03-01 08:29:10.243875"], ["updated_at", "2015-03-01 08:29:10.243875"], ["token", "Hd2D46-ZLDh8pbbxWMCORjpLF9xbStYEpd2LO3NDdhI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$G85Yaey8Cxz1sru7/K7DguoGHGECc5N0Uim7SReMspIVFpKocFgx2"], ["created_at", "2015-03-01 08:29:10.258302"], ["updated_at", "2015-03-01 08:29:10.258302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.260031"], ["user_id", "08bb1598-bfed-11e4-b8ce-705681abff85"], ["created_at", "2015-03-01 08:29:10.261336"], ["updated_at", "2015-03-01 08:29:10.261336"], ["token", "7yks1_VBAL0RSh223jY7Ei6eQUr3FYCAQJvw5BSRf9g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.266606"], ["updated_at", "2015-03-01 08:29:10.266606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08bb1598-bfed-11e4-b8ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '08bc553e-bfed-11e4-838c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08bb1598-bfed-11e4-b8ce-705681abff85"], ["organization_id", "08bc553e-bfed-11e4-838c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.269944"], ["updated_at", "2015-03-01 08:29:10.269944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '08bc553e-bfed-11e4-838c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "08bc553e-bfed-11e4-838c-705681abff85"], ["created_at", "2015-03-01 08:29:10.273225"], ["updated_at", "2015-03-01 08:29:10.273225"], ["token", "hNxqboVUVlpLs2UVFbHxQy4JVXP7ahN95zXxQ8SpYDg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:10.280403' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7yks1_VBAL0RSh223jY7Ei6eQUr3FYCAQJvw5BSRf9g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:10.281931"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:10.283003"], ["id", "08bbb2be-bfed-11e4-9d1c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08bb1598-bfed-11e4-b8ce-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08bb1598-bfed-11e4-b8ce-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '08bb1598-bfed-11e4-b8ce-705681abff85' LIMIT 1 [["organization_id", "08bc553e-bfed-11e4-838c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08bc553e-bfed-11e4-838c-705681abff85"]] Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '08bc553e-bfed-11e4-838c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 26ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$qF7o6iL5mqO/h1IZj2GJk.dY0aM/8g5Jr7B9X5MRPUHgxVQD92jv2"], ["created_at", "2015-03-01 08:29:10.311627"], ["updated_at", "2015-03-01 08:29:10.311627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.313295"], ["user_id", "08c3378c-bfed-11e4-ba0b-705681abff85"], ["created_at", "2015-03-01 08:29:10.314097"], ["updated_at", "2015-03-01 08:29:10.314097"], ["token", "A6cfZzxbWM2opuLtCj_BlXfPL_CuNmzx4p1_En694Rw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.317541"], ["updated_at", "2015-03-01 08:29:10.317541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08c3378c-bfed-11e4-ba0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '08c41cce-bfed-11e4-b6e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08c3378c-bfed-11e4-ba0b-705681abff85"], ["organization_id", "08c41cce-bfed-11e4-b6e2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.320805"], ["updated_at", "2015-03-01 08:29:10.320805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '08c41cce-bfed-11e4-b6e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "08c41cce-bfed-11e4-b6e2-705681abff85"], ["created_at", "2015-03-01 08:29:10.324088"], ["updated_at", "2015-03-01 08:29:10.324088"], ["token", "5s-appOYPbsFZOYyhYBbxntz7VpZiEyaJJsu9FiAl-w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:10.329129' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A6cfZzxbWM2opuLtCj_BlXfPL_CuNmzx4p1_En694Rw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:10.330938"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:10.331960"], ["id", "08c39bd2-bfed-11e4-bb25-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08c3378c-bfed-11e4-ba0b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08c3378c-bfed-11e4-ba0b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '08c3378c-bfed-11e4-ba0b-705681abff85' LIMIT 1 [["organization_id", "08c41cce-bfed-11e4-b6e2-705681abff85"]]  (14.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08c41cce-bfed-11e4-b6e2-705681abff85"]] Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '08c41cce-bfed-11e4-b6e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "08c41cce-bfed-11e4-b6e2-705681abff85"], ["created_at", "2015-03-01 08:29:10.371552"], ["updated_at", "2015-03-01 08:29:10.371552"], ["token", "F5E2QwU8putJVX-4meDwKoe1fUF0dit2PdhxT2QU_24"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 47ed777e-3d4e-4d66-a12e-9b9e9b5f83cf) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/08cc6c1c-bfed-11e4-847a-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "08cc6c1c-bfed-11e4-847a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [47ed777e-3d4e-4d66-a12e-9b9e9b5f83cf] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/08cc6c1c-bfed-11e4-847a-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [47ed777e-3d4e-4d66-a12e-9b9e9b5f83cf] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08c41cce-bfed-11e4-b6e2-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [47ed777e-3d4e-4d66-a12e-9b9e9b5f83cf] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [47ed777e-3d4e-4d66-a12e-9b9e9b5f83cf] Clubhouse::Mailer#invitation: processed outbound mail in 248.1ms [ActiveJob] [ActionMailer::DeliveryJob] [47ed777e-3d4e-4d66-a12e-9b9e9b5f83cf] Sent mail to email@example.com (9.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [47ed777e-3d4e-4d66-a12e-9b9e9b5f83cf] Date: Sun, 01 Mar 2015 00:29:10 -0800 From: from@example.com To: email@example.com Message-ID: <54f2cdd6a0235_138403fcfd9065bec687c6@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/F5E2QwU8putJVX-4meDwKoe1fUF0dit2PdhxT2QU_24 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [47ed777e-3d4e-4d66-a12e-9b9e9b5f83cf] Performed ActionMailer::DeliveryJob from Inline(mailers) in 258.3ms Completed 201 Created in 332ms (Views: 0.9ms | ActiveRecord: 18.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$SwbEaVI/D/BuYVh.9xuC7ubtqEvJ4o/yyEQ4OSHMOqhqplGvzA9r6"], ["created_at", "2015-03-01 08:29:10.668712"], ["updated_at", "2015-03-01 08:29:10.668712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.670644"], ["user_id", "08f9b5d2-bfed-11e4-9d7d-705681abff85"], ["created_at", "2015-03-01 08:29:10.671731"], ["updated_at", "2015-03-01 08:29:10.671731"], ["token", "eQodVXEwUqRr6iC0O6xIdYUl7d-NZ8jDwBTJ5wX74QY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.675253"], ["updated_at", "2015-03-01 08:29:10.675253"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08f9b5d2-bfed-11e4-9d7d-705681abff85' AND "clubhouse_memberships"."organization_id" = '08faaef6-bfed-11e4-86f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08f9b5d2-bfed-11e4-9d7d-705681abff85"], ["organization_id", "08faaef6-bfed-11e4-86f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.679013"], ["updated_at", "2015-03-01 08:29:10.679013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '08faaef6-bfed-11e4-86f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "08faaef6-bfed-11e4-86f2-705681abff85"], ["created_at", "2015-03-01 08:29:10.682320"], ["updated_at", "2015-03-01 08:29:10.682320"], ["token", "zjOkAAh9DSOrj1h233d9AZ7-eTcRJ3a-7QMQR2lbEhQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:10.687851' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eQodVXEwUqRr6iC0O6xIdYUl7d-NZ8jDwBTJ5wX74QY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:10.689376"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:10.690383"], ["id", "08fa3502-bfed-11e4-8890-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08f9b5d2-bfed-11e4-9d7d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08f9b5d2-bfed-11e4-9d7d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '08f9b5d2-bfed-11e4-9d7d-705681abff85' LIMIT 1 [["organization_id", "08faaef6-bfed-11e4-86f2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08faaef6-bfed-11e4-86f2-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '08faaef6-bfed-11e4-86f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "08faaef6-bfed-11e4-86f2-705681abff85"], ["created_at", "2015-03-01 08:29:10.700907"], ["updated_at", "2015-03-01 08:29:10.700907"], ["token", "PDpcJIEUschbrGnhUlQqQ6tZ8paB5iGJJMJxH0UZgaw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 68b36431-6eef-489c-a978-ccfd5385e1f3) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/08fea876-bfed-11e4-8112-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "08fea876-bfed-11e4-8112-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [68b36431-6eef-489c-a978-ccfd5385e1f3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/08fea876-bfed-11e4-8112-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [68b36431-6eef-489c-a978-ccfd5385e1f3] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08faaef6-bfed-11e4-86f2-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [68b36431-6eef-489c-a978-ccfd5385e1f3] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [68b36431-6eef-489c-a978-ccfd5385e1f3] Clubhouse::Mailer#invitation: processed outbound mail in 2.5ms [ActiveJob] [ActionMailer::DeliveryJob] [68b36431-6eef-489c-a978-ccfd5385e1f3] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [68b36431-6eef-489c-a978-ccfd5385e1f3] Date: Sun, 01 Mar 2015 00:29:10 -0800 From: from@example.com To: email@example.com Message-ID: <54f2cdd6ad347_138403fcfd9065bec6889a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/PDpcJIEUschbrGnhUlQqQ6tZ8paB5iGJJMJxH0UZgaw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [68b36431-6eef-489c-a978-ccfd5385e1f3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.96ms Completed 201 Created in 24ms (Views: 1.0ms | ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.748389"], ["updated_at", "2015-03-01 08:29:10.748389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.752631"], ["updated_at", "2015-03-01 08:29:10.752631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.764514"], ["updated_at", "2015-03-01 08:29:10.764514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.776644"], ["updated_at", "2015-03-01 08:29:10.776644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.782222"], ["updated_at", "2015-03-01 08:29:10.782222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "090b03d2-bfed-11e4-a77a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.787686"], ["updated_at", "2015-03-01 08:29:10.787686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '090bd9b0-bfed-11e4-b585-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "090bd9b0-bfed-11e4-b585-705681abff85"], ["created_at", "2015-03-01 08:29:10.790713"], ["updated_at", "2015-03-01 08:29:10.790713"], ["token", "Nx51KrYzvO41XjdXuq_fCSlLBlKzXxnfgf4jk7VXXI4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "090bd9b0-bfed-11e4-b585-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '090bd9b0-bfed-11e4-b585-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "090bd9b0-bfed-11e4-b585-705681abff86"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '090bd9b0-bfed-11e4-b585-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.813925"], ["updated_at", "2015-03-01 08:29:10.813925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '090fdb96-bfed-11e4-9b31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "090fdb96-bfed-11e4-9b31-705681abff85"], ["created_at", "2015-03-01 08:29:10.816838"], ["updated_at", "2015-03-01 08:29:10.816838"], ["token", "z7cd-Lu9Xv63cHj3jiG6cJWdCIyajX_UbNpFBDq8cuM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.830104"], ["updated_at", "2015-03-01 08:29:10.830104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0912524a-bfed-11e4-b7e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0912524a-bfed-11e4-b7e0-705681abff85"], ["created_at", "2015-03-01 08:29:10.833357"], ["updated_at", "2015-03-01 08:29:10.833357"], ["token", "sFSJL8SuWyh_AIcyOh0b7VaH77y_lFeLG16Jj-gifQ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Sun, 01 Mar 2015 00:29:10 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cdd6cc4db_138403fcfd9065bec6898f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/sFSJL8SuWyh_AIcyOh0b7VaH77y_lFeLG16Jj-gifQ4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.841882"], ["updated_at", "2015-03-01 08:29:10.841882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '09142156-bfed-11e4-98f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "09142156-bfed-11e4-98f8-705681abff85"], ["created_at", "2015-03-01 08:29:10.845384"], ["updated_at", "2015-03-01 08:29:10.845384"], ["token", "NA9IVU-77RH2kcEA57E-5saC0L4-GASS2F5_12hPNpw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.6ms) Date: Sun, 01 Mar 2015 00:29:10 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cdd6cf339_138403fcfd9065bec69057@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/NA9IVU-77RH2kcEA57E-5saC0L4-GASS2F5_12hPNpw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.853192"], ["updated_at", "2015-03-01 08:29:10.853192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0915d794-bfed-11e4-9996-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0915d794-bfed-11e4-9996-705681abff85"], ["created_at", "2015-03-01 08:29:10.857310"], ["updated_at", "2015-03-01 08:29:10.857310"], ["token", "OXDoi0GVuQA29ssmRlUsHeyr_bhMIs8QnKv3W6m69X4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.6ms) Date: Sun, 01 Mar 2015 00:29:10 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cdd6d240b_138403fcfd9065bec691c0@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/OXDoi0GVuQA29ssmRlUsHeyr_bhMIs8QnKv3W6m69X4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.867230"], ["updated_at", "2015-03-01 08:29:10.867230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '09180d3e-bfed-11e4-b295-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "09180d3e-bfed-11e4-b295-705681abff85"], ["created_at", "2015-03-01 08:29:10.871329"], ["updated_at", "2015-03-01 08:29:10.871329"], ["token", "OxEV3JprCwOePBerU9NF5SfYwQSXxK1jYUMbdnRupuI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.6ms) Date: Sun, 01 Mar 2015 00:29:10 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cdd6d59b1_138403fcfd9065bec69278@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/OxEV3JprCwOePBerU9NF5SfYwQSXxK1jYUMbdnRupuI If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$sWC/YEDEfeEv3snWhRrF3uHxnicrOPnZa.wmOsWeCByK5MygInvWW"], ["created_at", "2015-03-01 08:29:10.880836"], ["updated_at", "2015-03-01 08:29:10.880836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$fW1WdASBXRCLfpDtkKU0M.E5mwJcKxD10wgj38ShSAivSAPBIR9Jq"], ["created_at", "2015-03-01 08:29:10.884910"], ["updated_at", "2015-03-01 08:29:10.884910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.886346"], ["user_id", "091a1048-bfed-11e4-9332-705681abff85"], ["created_at", "2015-03-01 08:29:10.887099"], ["updated_at", "2015-03-01 08:29:10.887099"], ["token", "HUeFb9kpfHFE6ktK0T6Y4x0lxBWjeIlD9ZY1yugt79k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.890267"], ["updated_at", "2015-03-01 08:29:10.890267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '091a1048-bfed-11e4-9332-705681abff85' AND "clubhouse_memberships"."organization_id" = '091b7de8-bfed-11e4-81ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "091a1048-bfed-11e4-9332-705681abff85"], ["organization_id", "091b7de8-bfed-11e4-81ee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.893855"], ["updated_at", "2015-03-01 08:29:10.893855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '091aaca6-bfed-11e4-b3ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '091b7de8-bfed-11e4-81ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "091aaca6-bfed-11e4-b3ca-705681abff85"], ["organization_id", "091b7de8-bfed-11e4-81ee-705681abff85"], ["created_at", "2015-03-01 08:29:10.896874"], ["updated_at", "2015-03-01 08:29:10.896874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$NxoOQSFEl9wRtJ2JvfNBNOBzNzND0CA7HTZ2JmKnTomWIg3eUpaMu"], ["created_at", "2015-03-01 08:29:10.901197"], ["updated_at", "2015-03-01 08:29:10.901197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.902700"], ["user_id", "091d29cc-bfed-11e4-9149-705681abff85"], ["created_at", "2015-03-01 08:29:10.903425"], ["updated_at", "2015-03-01 08:29:10.903425"], ["token", "VZahCLz4a4UpTG3RQZcYzGfeOWp3t4uxbuxV-OS5e7k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '091b7de8-bfed-11e4-81ee-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "091b7de8-bfed-11e4-81ee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.907866"], ["updated_at", "2015-03-01 08:29:10.907866"], ["token", "Eur9mxYXVrqAv_JI86vIYNPAyeexh34cCexdRu3-0yU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$ZMVCVj4seSa8EsxqCOlHPucfBxtHuBjScPueGYR1iKNXKaUgkzpCG"], ["created_at", "2015-03-01 08:29:10.930323"], ["updated_at", "2015-03-01 08:29:10.930323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$FrFQQUCdPsfO3vV6kxf2..oESphVZbwlCaeTQfohUfYkAWczJ7AYi"], ["created_at", "2015-03-01 08:29:10.934528"], ["updated_at", "2015-03-01 08:29:10.934528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.936293"], ["user_id", "0921a09c-bfed-11e4-888a-705681abff85"], ["created_at", "2015-03-01 08:29:10.937042"], ["updated_at", "2015-03-01 08:29:10.937042"], ["token", "wKDHL5eKqSAo1wrtwThn_obhtvsC6WA6r3RLxZkbTbg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.941110"], ["updated_at", "2015-03-01 08:29:10.941110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0921a09c-bfed-11e4-888a-705681abff85' AND "clubhouse_memberships"."organization_id" = '09234186-bfed-11e4-90cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0921a09c-bfed-11e4-888a-705681abff85"], ["organization_id", "09234186-bfed-11e4-90cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.944887"], ["updated_at", "2015-03-01 08:29:10.944887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09224c04-bfed-11e4-ae1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '09234186-bfed-11e4-90cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09224c04-bfed-11e4-ae1d-705681abff85"], ["organization_id", "09234186-bfed-11e4-90cd-705681abff85"], ["created_at", "2015-03-01 08:29:10.948008"], ["updated_at", "2015-03-01 08:29:10.948008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$F.cMBo90cLtxpFoit/53e.f2irOUwafy9jBX24klHvv3tv57na3j."], ["created_at", "2015-03-01 08:29:10.952263"], ["updated_at", "2015-03-01 08:29:10.952263"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.954019"], ["user_id", "0924f44a-bfed-11e4-bf84-705681abff85"], ["created_at", "2015-03-01 08:29:10.954973"], ["updated_at", "2015-03-01 08:29:10.954973"], ["token", "ha55s7Enn7ioClhjfXSIlPDVGd5kOfs62hwNZBTa-mY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '09234186-bfed-11e4-90cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "09234186-bfed-11e4-90cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.958573"], ["updated_at", "2015-03-01 08:29:10.958573"], ["token", "SJpL2ou2MJ-l2q7MKYzzRmjkCsMNRY3c61JmUzIZr6Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:29:10 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:10.964350' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ha55s7Enn7ioClhjfXSIlPDVGd5kOfs62hwNZBTa-mY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:10.965900"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:10.966965"], ["id", "092566aa-bfed-11e4-a26c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0924f44a-bfed-11e4-bf84-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0924f44a-bfed-11e4-bf84-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$veGHyINoZ.haax.EUN38ruHWgM/gkwX9Q2f7QDkWOCJjFIKVSVVZu"], ["created_at", "2015-03-01 08:29:10.980297"], ["updated_at", "2015-03-01 08:29:10.980297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$.T6OStPIrNLy7r35ya8nJ.Qez1PCW.KqOr6zgOfO1yFD.avMPLJtu"], ["created_at", "2015-03-01 08:29:10.985999"], ["updated_at", "2015-03-01 08:29:10.985999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:10.988471"], ["user_id", "09293f8c-bfed-11e4-a749-705681abff85"], ["created_at", "2015-03-01 08:29:10.989247"], ["updated_at", "2015-03-01 08:29:10.989247"], ["token", "OXo5EfvnYGcWb-GJNUVGIKkSkmpPz1W5voYje5pDn1g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:10.992798"], ["updated_at", "2015-03-01 08:29:10.992798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09293f8c-bfed-11e4-a749-705681abff85' AND "clubhouse_memberships"."organization_id" = '092b2522-bfed-11e4-adbb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "09293f8c-bfed-11e4-a749-705681abff85"], ["organization_id", "092b2522-bfed-11e4-adbb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:10.996057"], ["updated_at", "2015-03-01 08:29:10.996057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '092a2bb8-bfed-11e4-a346-705681abff85' AND "clubhouse_memberships"."organization_id" = '092b2522-bfed-11e4-adbb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "092a2bb8-bfed-11e4-a346-705681abff85"], ["organization_id", "092b2522-bfed-11e4-adbb-705681abff85"], ["created_at", "2015-03-01 08:29:10.999001"], ["updated_at", "2015-03-01 08:29:10.999001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$sYVvI1sng7JkcftPnunTEOYYD8Fzc1vHuRIQ6KAgeyhv4aztd1mP."], ["created_at", "2015-03-01 08:29:11.003170"], ["updated_at", "2015-03-01 08:29:11.003170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.004575"], ["user_id", "092cb8b0-bfed-11e4-add6-705681abff85"], ["created_at", "2015-03-01 08:29:11.005268"], ["updated_at", "2015-03-01 08:29:11.005268"], ["token", "3C1g43sF8Op_3rdYzgQsLiF1IBYajhgeXNgf1rf4Ibw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '092b2522-bfed-11e4-adbb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "092b2522-bfed-11e4-adbb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.008807"], ["updated_at", "2015-03-01 08:29:11.008807"], ["token", "_pR7Sj0pjJd3EqOBWRDow-gG7XZ2OR2nEiJngyS0A0Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"_pR7Sj0pjJd3EqOBWRDow-gG7XZ2OR2nEiJngyS0A0Y", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.014646' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3C1g43sF8Op_3rdYzgQsLiF1IBYajhgeXNgf1rf4Ibw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.016840"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.018608"], ["id", "092d130a-bfed-11e4-822d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "092cb8b0-bfed-11e4-add6-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "092cb8b0-bfed-11e4-add6-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "_pR7Sj0pjJd3EqOBWRDow-gG7XZ2OR2nEiJngyS0A0Y"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "092b2522-bfed-11e4-adbb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "092b2522-bfed-11e4-adbb-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '092cb8b0-bfed-11e4-add6-705681abff85' AND "clubhouse_memberships"."organization_id" = '092b2522-bfed-11e4-adbb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "092cb8b0-bfed-11e4-add6-705681abff85"], ["admin", "t"], ["organization_id", "092b2522-bfed-11e4-adbb-705681abff85"], ["created_at", "2015-03-01 08:29:11.031103"], ["updated_at", "2015-03-01 08:29:11.031103"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "092d9a0a-bfed-11e4-b98b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 22ms (Views: 3.3ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$iWnZOaa24tPcQyaSIhyHIudadv4iYX52f3ltRUO1Db2X/4Mh5GGBi"], ["created_at", "2015-03-01 08:29:11.043025"], ["updated_at", "2015-03-01 08:29:11.043025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$vUWKLFEot8vKGwELXV8ZruEswZ9KqNXcOAzboZejCAj3OdblcTf.q"], ["created_at", "2015-03-01 08:29:11.047137"], ["updated_at", "2015-03-01 08:29:11.047137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.048538"], ["user_id", "0932d010-bfed-11e4-9258-705681abff85"], ["created_at", "2015-03-01 08:29:11.049271"], ["updated_at", "2015-03-01 08:29:11.049271"], ["token", "aCJYmrjtBAA3jIicRaMrt-HK7KEx694NOHGZdS94fSQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.052949"], ["updated_at", "2015-03-01 08:29:11.052949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0932d010-bfed-11e4-9258-705681abff85' AND "clubhouse_memberships"."organization_id" = '09345444-bfed-11e4-9250-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0932d010-bfed-11e4-9258-705681abff85"], ["organization_id", "09345444-bfed-11e4-9250-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.056371"], ["updated_at", "2015-03-01 08:29:11.056371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09336d18-bfed-11e4-8d02-705681abff85' AND "clubhouse_memberships"."organization_id" = '09345444-bfed-11e4-9250-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09336d18-bfed-11e4-8d02-705681abff85"], ["organization_id", "09345444-bfed-11e4-9250-705681abff85"], ["created_at", "2015-03-01 08:29:11.059543"], ["updated_at", "2015-03-01 08:29:11.059543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/0935522c-bfed-11e4-8ef8-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"0935522c-bfed-11e4-8ef8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.064464' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aCJYmrjtBAA3jIicRaMrt-HK7KEx694NOHGZdS94fSQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.065894"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.066851"], ["id", "0933c81c-bfed-11e4-b786-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0932d010-bfed-11e4-9258-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0932d010-bfed-11e4-9258-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0932d010-bfed-11e4-9258-705681abff85' LIMIT 1 [["organization_id", "09345444-bfed-11e4-9250-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "09345444-bfed-11e4-9250-705681abff85"], ["id", "0935522c-bfed-11e4-8ef8-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "09345444-bfed-11e4-9250-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09336d18-bfed-11e4-8d02-705681abff85"]] Completed 200 OK in 13ms (Views: 3.9ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$Q5aLVEAwhsAR/MM0pfjQEOyiKHYRND7V.nYs0UzYG7kezrD04uRMW"], ["created_at", "2015-03-01 08:29:11.083861"], ["updated_at", "2015-03-01 08:29:11.083861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$WeMMSnkVbGVZmwqtuQb4weLD5TPaeQ0CZ8gf2/5kNU6J2bqXVhCmO"], ["created_at", "2015-03-01 08:29:11.088395"], ["updated_at", "2015-03-01 08:29:11.088395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.090293"], ["user_id", "09390e44-bfed-11e4-8031-705681abff85"], ["created_at", "2015-03-01 08:29:11.091501"], ["updated_at", "2015-03-01 08:29:11.091501"], ["token", "xgVUbHJaIVzfU_Bdm6PVCIu3JoKmeRSGF-FqPT27y-Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.095499"], ["updated_at", "2015-03-01 08:29:11.095499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09390e44-bfed-11e4-8031-705681abff85' AND "clubhouse_memberships"."organization_id" = '093ad15c-bfed-11e4-a939-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "09390e44-bfed-11e4-8031-705681abff85"], ["organization_id", "093ad15c-bfed-11e4-a939-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.098805"], ["updated_at", "2015-03-01 08:29:11.098805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0939c686-bfed-11e4-9bbd-705681abff85' AND "clubhouse_memberships"."organization_id" = '093ad15c-bfed-11e4-a939-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0939c686-bfed-11e4-9bbd-705681abff85"], ["organization_id", "093ad15c-bfed-11e4-a939-705681abff85"], ["created_at", "2015-03-01 08:29:11.101681"], ["updated_at", "2015-03-01 08:29:11.101681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$nKTwpfDZH0Uqy5oc.VeETuD2DSmTpdFYSkoAxPoLrfnZlpaF1e9gS"], ["created_at", "2015-03-01 08:29:11.116344"], ["updated_at", "2015-03-01 08:29:11.116344"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$uAd7s6MiLeEVgeh4B6XCLOnGwsR.DVP5f5BZaB00wT5Lnd6xZvGoG"], ["created_at", "2015-03-01 08:29:11.121484"], ["updated_at", "2015-03-01 08:29:11.121484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.123032"], ["user_id", "093e098a-bfed-11e4-883b-705681abff85"], ["created_at", "2015-03-01 08:29:11.123807"], ["updated_at", "2015-03-01 08:29:11.123807"], ["token", "0JwHYsK9RPbY__nBf3_7_5RbJD4pMDRMhp_1GVefw14"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.127515"], ["updated_at", "2015-03-01 08:29:11.127515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '093e098a-bfed-11e4-883b-705681abff85' AND "clubhouse_memberships"."organization_id" = '093fb5be-bfed-11e4-9b10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "093e098a-bfed-11e4-883b-705681abff85"], ["organization_id", "093fb5be-bfed-11e4-9b10-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.131429"], ["updated_at", "2015-03-01 08:29:11.131429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '093ec79e-bfed-11e4-a43a-705681abff85' AND "clubhouse_memberships"."organization_id" = '093fb5be-bfed-11e4-9b10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "093ec79e-bfed-11e4-a43a-705681abff85"], ["organization_id", "093fb5be-bfed-11e4-9b10-705681abff85"], ["created_at", "2015-03-01 08:29:11.134789"], ["updated_at", "2015-03-01 08:29:11.134789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.140206' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0JwHYsK9RPbY__nBf3_7_5RbJD4pMDRMhp_1GVefw14"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.142717"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.143752"], ["id", "093f2982-bfed-11e4-8d2e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "093e098a-bfed-11e4-883b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "093e098a-bfed-11e4-883b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '093e098a-bfed-11e4-883b-705681abff85' LIMIT 1 [["organization_id", "093fb5be-bfed-11e4-9b10-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "093fb5be-bfed-11e4-9b10-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('093e098a-bfed-11e4-883b-705681abff85', '093ec79e-bfed-11e4-a43a-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('093fb5be-bfed-11e4-9b10-705681abff85') Completed 200 OK in 14ms (Views: 5.0ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$xI.gKnfbaKvXXiMPCcQNtOfv66M52JQUE8Z8M4bW7bgyNY5v/kUE."], ["created_at", "2015-03-01 08:29:11.160759"], ["updated_at", "2015-03-01 08:29:11.160759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$ketuPwiKpVbSkBaDwIN4IuloOQ5Gjw.MBEbhRiNytK8Z3QSZtP.hq"], ["created_at", "2015-03-01 08:29:11.165102"], ["updated_at", "2015-03-01 08:29:11.165102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.166818"], ["user_id", "0944c6f8-bfed-11e4-907d-705681abff85"], ["created_at", "2015-03-01 08:29:11.167595"], ["updated_at", "2015-03-01 08:29:11.167595"], ["token", "XRyJ-lvgk2t27OntWFM4iBvw_6eHuD_JFOce1fO7354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.171098"], ["updated_at", "2015-03-01 08:29:11.171098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0944c6f8-bfed-11e4-907d-705681abff85' AND "clubhouse_memberships"."organization_id" = '09465a90-bfed-11e4-b74a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0944c6f8-bfed-11e4-907d-705681abff85"], ["organization_id", "09465a90-bfed-11e4-b74a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.174429"], ["updated_at", "2015-03-01 08:29:11.174429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09456e64-bfed-11e4-bc8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '09465a90-bfed-11e4-b74a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09456e64-bfed-11e4-bc8b-705681abff85"], ["organization_id", "09465a90-bfed-11e4-b74a-705681abff85"], ["created_at", "2015-03-01 08:29:11.177566"], ["updated_at", "2015-03-01 08:29:11.177566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.182905' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XRyJ-lvgk2t27OntWFM4iBvw_6eHuD_JFOce1fO7354"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.184244"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.185191"], ["id", "0945d7d2-bfed-11e4-94c9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0944c6f8-bfed-11e4-907d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0944c6f8-bfed-11e4-907d-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0944c6f8-bfed-11e4-907d-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "0944c6f8-bfed-11e4-907d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('0944c6f8-bfed-11e4-907d-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('09465a90-bfed-11e4-b74a-705681abff85') Completed 200 OK in 12ms (Views: 3.6ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$1/hPSH95ApzuEMdZ1UcsTul4JGyr/yOFhKliKzF73Rcbgn6hq/gQq"], ["created_at", "2015-03-01 08:29:11.201010"], ["updated_at", "2015-03-01 08:29:11.201010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$QgnNCRRl0dohxwJMjTikr.GOh3a6yYtTvFokAjJkZLnAQAN/sQOEi"], ["created_at", "2015-03-01 08:29:11.205306"], ["updated_at", "2015-03-01 08:29:11.205306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.206976"], ["user_id", "094aed58-bfed-11e4-9d1a-705681abff85"], ["created_at", "2015-03-01 08:29:11.208141"], ["updated_at", "2015-03-01 08:29:11.208141"], ["token", "t6D86qOApfhJQgtdg1oang4qJnHNhk8cQ0gdw2CYVfk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.216118"], ["updated_at", "2015-03-01 08:29:11.216118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '094aed58-bfed-11e4-9d1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '094d3d60-bfed-11e4-9058-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "094aed58-bfed-11e4-9d1a-705681abff85"], ["organization_id", "094d3d60-bfed-11e4-9058-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.219666"], ["updated_at", "2015-03-01 08:29:11.219666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '094b9668-bfed-11e4-b2e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '094d3d60-bfed-11e4-9058-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "094b9668-bfed-11e4-b2e4-705681abff85"], ["organization_id", "094d3d60-bfed-11e4-9058-705681abff85"], ["created_at", "2015-03-01 08:29:11.222648"], ["updated_at", "2015-03-01 08:29:11.222648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$vrjeI2tC6L8YUbxcDaK/2OHa7502GkP5FZ0i9mbiBLfumzSyRWdey"], ["created_at", "2015-03-01 08:29:11.235085"], ["updated_at", "2015-03-01 08:29:11.235085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$wbV0NEnwNohOD7VwJnYgnOGZ2ItbRAJIHSTNXkqO1Jl2mNNz7hrVq"], ["created_at", "2015-03-01 08:29:11.239340"], ["updated_at", "2015-03-01 08:29:11.239340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.240942"], ["user_id", "09501fbc-bfed-11e4-95e1-705681abff85"], ["created_at", "2015-03-01 08:29:11.241707"], ["updated_at", "2015-03-01 08:29:11.241707"], ["token", "3brP9Xg4h-8z3cmymWtgiIFltrPbnJkYaEbXdK5lpF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.245396"], ["updated_at", "2015-03-01 08:29:11.245396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09501fbc-bfed-11e4-95e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0951b138-bfed-11e4-b3fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "09501fbc-bfed-11e4-95e1-705681abff85"], ["organization_id", "0951b138-bfed-11e4-b3fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.248683"], ["updated_at", "2015-03-01 08:29:11.248683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0950c53e-bfed-11e4-9eea-705681abff85' AND "clubhouse_memberships"."organization_id" = '0951b138-bfed-11e4-b3fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0950c53e-bfed-11e4-9eea-705681abff85"], ["organization_id", "0951b138-bfed-11e4-b3fa-705681abff85"], ["created_at", "2015-03-01 08:29:11.251607"], ["updated_at", "2015-03-01 08:29:11.251607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/09522f46-bfed-11e4-9561-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"09522f46-bfed-11e4-9561-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.256664' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3brP9Xg4h-8z3cmymWtgiIFltrPbnJkYaEbXdK5lpF8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.258139"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.259690"], ["id", "095126c8-bfed-11e4-bb7d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09501fbc-bfed-11e4-95e1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "09501fbc-bfed-11e4-95e1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '09501fbc-bfed-11e4-95e1-705681abff85' LIMIT 1 [["organization_id", "0951b138-bfed-11e4-b3fa-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0951b138-bfed-11e4-b3fa-705681abff85"], ["id", "09522f46-bfed-11e4-9561-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09501fbc-bfed-11e4-95e1-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$ukezWwkzJ17mW44SHLAXw.3E1UhIISGVmOXU25Dkdyp/QgQShw/JG"], ["created_at", "2015-03-01 08:29:11.273883"], ["updated_at", "2015-03-01 08:29:11.273883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$gPBuBthn3xdRrSsUyCxms.yQ78IKrBqdKmyuUVUZwgWLo4ZyywHIe"], ["created_at", "2015-03-01 08:29:11.278735"], ["updated_at", "2015-03-01 08:29:11.278735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.280474"], ["user_id", "09561e58-bfed-11e4-868d-705681abff85"], ["created_at", "2015-03-01 08:29:11.281264"], ["updated_at", "2015-03-01 08:29:11.281264"], ["token", "GEfPBF09WGHy-Lh06Xoxo6pow7Y0hIoAdxWC_FQp_5k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.284539"], ["updated_at", "2015-03-01 08:29:11.284539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09561e58-bfed-11e4-868d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0957a868-bfed-11e4-a189-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "09561e58-bfed-11e4-868d-705681abff85"], ["organization_id", "0957a868-bfed-11e4-a189-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.287713"], ["updated_at", "2015-03-01 08:29:11.287713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0956c79a-bfed-11e4-8c29-705681abff85' AND "clubhouse_memberships"."organization_id" = '0957a868-bfed-11e4-a189-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0956c79a-bfed-11e4-8c29-705681abff85"], ["organization_id", "0957a868-bfed-11e4-a189-705681abff85"], ["created_at", "2015-03-01 08:29:11.291043"], ["updated_at", "2015-03-01 08:29:11.291043"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/0958a696-bfed-11e4-8d5c-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"0958a696-bfed-11e4-8d5c-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.296369' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GEfPBF09WGHy-Lh06Xoxo6pow7Y0hIoAdxWC_FQp_5k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.297776"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.298703"], ["id", "095730cc-bfed-11e4-a47d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09561e58-bfed-11e4-868d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "09561e58-bfed-11e4-868d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '09561e58-bfed-11e4-868d-705681abff85' LIMIT 1 [["organization_id", "0957a868-bfed-11e4-a189-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0957a868-bfed-11e4-a189-705681abff85"], ["id", "0958a696-bfed-11e4-8d5c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0956c79a-bfed-11e4-8c29-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0957a868-bfed-11e4-a189-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0956c79a-bfed-11e4-8c29-705681abff85' AND "clubhouse_memberships"."id" != '0958a696-bfed-11e4-8d5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0957a868-bfed-11e4-a189-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 08:29:11.307286"], ["id", "0958a696-bfed-11e4-8d5c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 2.0ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$JwjB23u.hUlUMHBOPTpT9ufI.LWmNxszTKrJZeRBE.bwfIN5p4wI."], ["created_at", "2015-03-01 08:29:11.317141"], ["updated_at", "2015-03-01 08:29:11.317141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$1G/.xUPhQ1FCnYl1sbKjJuZHYGQa546Zs5ORWCMs1pEqEH1N.ZXE6"], ["created_at", "2015-03-01 08:29:11.321803"], ["updated_at", "2015-03-01 08:29:11.321803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.323365"], ["user_id", "095cab7e-bfed-11e4-ad0f-705681abff85"], ["created_at", "2015-03-01 08:29:11.324653"], ["updated_at", "2015-03-01 08:29:11.324653"], ["token", "g6Nl96j-FFxouURYwFvCxohs0mANl4ozX8t9iJl7aoo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.334141"], ["updated_at", "2015-03-01 08:29:11.334141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '095cab7e-bfed-11e4-ad0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '095f3fb0-bfed-11e4-9e79-705681abff85') LIMIT 1 SQL (5.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "095cab7e-bfed-11e4-ad0f-705681abff85"], ["organization_id", "095f3fb0-bfed-11e4-9e79-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.337672"], ["updated_at", "2015-03-01 08:29:11.337672"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '095d583a-bfed-11e4-b23f-705681abff85' AND "clubhouse_memberships"."organization_id" = '095f3fb0-bfed-11e4-9e79-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "095d583a-bfed-11e4-b23f-705681abff85"], ["organization_id", "095f3fb0-bfed-11e4-9e79-705681abff85"], ["created_at", "2015-03-01 08:29:11.378802"], ["updated_at", "2015-03-01 08:29:11.378802"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/0965009e-bfed-11e4-92f1-705681abff85" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"0965009e-bfed-11e4-92f1-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.387700' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "g6Nl96j-FFxouURYwFvCxohs0mANl4ozX8t9iJl7aoo"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.390296"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.392142"], ["id", "095e0e38-bfed-11e4-a5b3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "095cab7e-bfed-11e4-ad0f-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "095cab7e-bfed-11e4-ad0f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "095cab7e-bfed-11e4-ad0f-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "095cab7e-bfed-11e4-ad0f-705681abff85"], ["id", "0965009e-bfed-11e4-92f1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "095f3fb0-bfed-11e4-9e79-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "095cab7e-bfed-11e4-ad0f-705681abff85"]] Completed 200 OK in 19ms (Views: 3.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$KnoXDgXQamtjr6oIEGj2Mu69VMD1lejK9YU7l2iFGeJrl6meS/JAW"], ["created_at", "2015-03-01 08:29:11.414085"], ["updated_at", "2015-03-01 08:29:11.414085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$WYtmVam3oyyKMpp1eVKWwuAePTB0QcFYBpw/LvKYv1NCxPyp6oyTO"], ["created_at", "2015-03-01 08:29:11.418845"], ["updated_at", "2015-03-01 08:29:11.418845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.420709"], ["user_id", "096b7b4a-bfed-11e4-a172-705681abff85"], ["created_at", "2015-03-01 08:29:11.421460"], ["updated_at", "2015-03-01 08:29:11.421460"], ["token", "a42m4F_Kt66yBSuBfBHX1O5s9ZLVxVLk3j9mNJGgcdo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.425349"], ["updated_at", "2015-03-01 08:29:11.425349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '096b7b4a-bfed-11e4-a172-705681abff85' AND "clubhouse_memberships"."organization_id" = '096d32be-bfed-11e4-a59b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "096b7b4a-bfed-11e4-a172-705681abff85"], ["organization_id", "096d32be-bfed-11e4-a59b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.429299"], ["updated_at", "2015-03-01 08:29:11.429299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '096c2a9a-bfed-11e4-b88b-705681abff85' AND "clubhouse_memberships"."organization_id" = '096d32be-bfed-11e4-a59b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "096c2a9a-bfed-11e4-b88b-705681abff85"], ["organization_id", "096d32be-bfed-11e4-a59b-705681abff85"], ["created_at", "2015-03-01 08:29:11.432468"], ["updated_at", "2015-03-01 08:29:11.432468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$dWb5nrjGBUMJj.4Y9WG.5eePQnWQcWtsKsq96kr0vUoDMV4r2saqC"], ["created_at", "2015-03-01 08:29:11.446161"], ["updated_at", "2015-03-01 08:29:11.446161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$nQ9SDAs3TmDj/e.74JfFme1AsrkLXUq9WWv4n3hO2jDT0klQxqZpK"], ["created_at", "2015-03-01 08:29:11.451085"], ["updated_at", "2015-03-01 08:29:11.451085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.452758"], ["user_id", "097056ec-bfed-11e4-8ff2-705681abff85"], ["created_at", "2015-03-01 08:29:11.453523"], ["updated_at", "2015-03-01 08:29:11.453523"], ["token", "SqpW73hBkIqJf-c5XdU1nFNjYZTAoMtfsORgPvyZxIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.456785"], ["updated_at", "2015-03-01 08:29:11.456785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '097056ec-bfed-11e4-8ff2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0971faa6-bfed-11e4-bef2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "097056ec-bfed-11e4-8ff2-705681abff85"], ["organization_id", "0971faa6-bfed-11e4-bef2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.461625"], ["updated_at", "2015-03-01 08:29:11.461625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09711578-bfed-11e4-89fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '0971faa6-bfed-11e4-bef2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09711578-bfed-11e4-89fd-705681abff85"], ["organization_id", "0971faa6-bfed-11e4-bef2-705681abff85"], ["created_at", "2015-03-01 08:29:11.465693"], ["updated_at", "2015-03-01 08:29:11.465693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$KN52qUKkx5lMiP2TNMenCOqfmyQ4U9Mdb4KFfNdGGejLOiSmjOP3e"], ["created_at", "2015-03-01 08:29:11.480102"], ["updated_at", "2015-03-01 08:29:11.480102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$g9kD4RbzOb46A5X98IlOTesLuLsw.PEsohq96CzphOeuVLID.bujW"], ["created_at", "2015-03-01 08:29:11.484331"], ["updated_at", "2015-03-01 08:29:11.484331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.485844"], ["user_id", "09758216-bfed-11e4-beee-705681abff85"], ["created_at", "2015-03-01 08:29:11.486587"], ["updated_at", "2015-03-01 08:29:11.486587"], ["token", "VALWz9uJavrWHmBGZvO2ph4eAt9lSeV65cyTAdyyxw0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.489728"], ["updated_at", "2015-03-01 08:29:11.489728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09758216-bfed-11e4-beee-705681abff85' AND "clubhouse_memberships"."organization_id" = '0976f600-bfed-11e4-a1af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "09758216-bfed-11e4-beee-705681abff85"], ["organization_id", "0976f600-bfed-11e4-a1af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.492920"], ["updated_at", "2015-03-01 08:29:11.492920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '097625fe-bfed-11e4-9827-705681abff85' AND "clubhouse_memberships"."organization_id" = '0976f600-bfed-11e4-a1af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "097625fe-bfed-11e4-9827-705681abff85"], ["organization_id", "0976f600-bfed-11e4-a1af-705681abff85"], ["created_at", "2015-03-01 08:29:11.496021"], ["updated_at", "2015-03-01 08:29:11.496021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/097773a0-bfed-11e4-b8c1-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"097773a0-bfed-11e4-b8c1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.500928' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VALWz9uJavrWHmBGZvO2ph4eAt9lSeV65cyTAdyyxw0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.502299"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.503202"], ["id", "097682d8-bfed-11e4-a7ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09758216-bfed-11e4-beee-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "09758216-bfed-11e4-beee-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '09758216-bfed-11e4-beee-705681abff85' LIMIT 1 [["organization_id", "0976f600-bfed-11e4-a1af-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0976f600-bfed-11e4-a1af-705681abff85"], ["id", "097773a0-bfed-11e4-b8c1-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09758216-bfed-11e4-beee-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$O/IPvIbtjS8fhGlO8ObtIOP7oVM.FBWpe32LaN6vwuJLgWOye/Zfu"], ["created_at", "2015-03-01 08:29:11.516318"], ["updated_at", "2015-03-01 08:29:11.516318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$TYlajHgHX3C9WcP2PCzTJuBizIVwTsrNvFxlluHJC.dg6SqCcWJ6m"], ["created_at", "2015-03-01 08:29:11.520749"], ["updated_at", "2015-03-01 08:29:11.520749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.522240"], ["user_id", "097b0c5e-bfed-11e4-9f8d-705681abff85"], ["created_at", "2015-03-01 08:29:11.522994"], ["updated_at", "2015-03-01 08:29:11.522994"], ["token", "aIoyFyy0vyADb32BX6D66K2bZMZIR_8ym9sKNDkyJ38"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.531962"], ["updated_at", "2015-03-01 08:29:11.531962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '097b0c5e-bfed-11e4-9f8d-705681abff85' AND "clubhouse_memberships"."organization_id" = '097d80d8-bfed-11e4-af33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "097b0c5e-bfed-11e4-9f8d-705681abff85"], ["organization_id", "097d80d8-bfed-11e4-af33-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:11.536442"], ["updated_at", "2015-03-01 08:29:11.536442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '097bb3ca-bfed-11e4-9ddf-705681abff85' AND "clubhouse_memberships"."organization_id" = '097d80d8-bfed-11e4-af33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "097bb3ca-bfed-11e4-9ddf-705681abff85"], ["organization_id", "097d80d8-bfed-11e4-af33-705681abff85"], ["created_at", "2015-03-01 08:29:11.539491"], ["updated_at", "2015-03-01 08:29:11.539491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/097e8e06-bfed-11e4-be26-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"097e8e06-bfed-11e4-be26-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.544578' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aIoyFyy0vyADb32BX6D66K2bZMZIR_8ym9sKNDkyJ38"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.545966"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.546905"], ["id", "097c1428-bfed-11e4-a6e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "097b0c5e-bfed-11e4-9f8d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "097b0c5e-bfed-11e4-9f8d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '097b0c5e-bfed-11e4-9f8d-705681abff85' LIMIT 1 [["organization_id", "097d80d8-bfed-11e4-af33-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "097d80d8-bfed-11e4-af33-705681abff85"], ["id", "097e8e06-bfed-11e4-be26-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "097bb3ca-bfed-11e4-9ddf-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "097e8e06-bfed-11e4-be26-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$avW0FHtLHY1x4Zqd4QX9xuyvfAEfTKB/4kslIt2nqZWkM..wE5cr2"], ["created_at", "2015-03-01 08:29:11.569725"], ["updated_at", "2015-03-01 08:29:11.569725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.574775"], ["updated_at", "2015-03-01 08:29:11.574775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09832ef2-bfed-11e4-add8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0983f53a-bfed-11e4-b244-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09832ef2-bfed-11e4-add8-705681abff85"], ["organization_id", "0983f53a-bfed-11e4-b244-705681abff85"], ["created_at", "2015-03-01 08:29:11.578353"], ["updated_at", "2015-03-01 08:29:11.578353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09832ef2-bfed-11e4-add8-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0983f53a-bfed-11e4-b244-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09832ef2-bfed-11e4-add8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0983f53a-bfed-11e4-b244-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0983f53a-bfed-11e4-b244-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09832ef2-bfed-11e4-add8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0983f53a-bfed-11e4-b244-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$V6DleeUlGYZE/pTOD2qtZ.vJw9CmsVAqAyaf2F7FEmTRCJIt7D.gG"], ["created_at", "2015-03-01 08:29:11.594750"], ["updated_at", "2015-03-01 08:29:11.594750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.596339"], ["user_id", "0986fff0-bfed-11e4-ae75-705681abff85"], ["created_at", "2015-03-01 08:29:11.597116"], ["updated_at", "2015-03-01 08:29:11.597116"], ["token", "HYERvuZd0yr3dugRRoBnRDnKrHJdY1OW7e_LKHp-ly8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.600315"], ["updated_at", "2015-03-01 08:29:11.600315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0986fff0-bfed-11e4-ae75-705681abff85' AND "clubhouse_memberships"."organization_id" = '0987d628-bfed-11e4-b84a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0986fff0-bfed-11e4-ae75-705681abff85"], ["organization_id", "0987d628-bfed-11e4-b84a-705681abff85"], ["created_at", "2015-03-01 08:29:11.603539"], ["updated_at", "2015-03-01 08:29:11.603539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-8" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-8", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.614466' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HYERvuZd0yr3dugRRoBnRDnKrHJdY1OW7e_LKHp-ly8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.615941"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.616941"], ["id", "0987617a-bfed-11e4-a8b8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0986fff0-bfed-11e4-ae75-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0986fff0-bfed-11e4-ae75-705681abff85"], ["name", "org-8"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$tlvU9/1wlhtDk2ZSoSLOUe5qcZRSQ3XafeyTmGeShStRKv5tnV7qq"], ["created_at", "2015-03-01 08:29:11.627606"], ["updated_at", "2015-03-01 08:29:11.627606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.629577"], ["user_id", "098c0d42-bfed-11e4-907e-705681abff85"], ["created_at", "2015-03-01 08:29:11.630391"], ["updated_at", "2015-03-01 08:29:11.630391"], ["token", "Bl4ZHPsS_I4IESdAHGK5vLYLE0_npqUKePzSRJFvQ4o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.633679"], ["updated_at", "2015-03-01 08:29:11.633679"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '098c0d42-bfed-11e4-907e-705681abff85' AND "clubhouse_memberships"."organization_id" = '098cedfc-bfed-11e4-9561-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "098c0d42-bfed-11e4-907e-705681abff85"], ["organization_id", "098cedfc-bfed-11e4-9561-705681abff85"], ["created_at", "2015-03-01 08:29:11.637182"], ["updated_at", "2015-03-01 08:29:11.637182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$cjfttyW6lAnV1kN2noI/TepELWyskg6SAtwH/vZbHtsph5oXo5BFO"], ["created_at", "2015-03-01 08:29:11.650477"], ["updated_at", "2015-03-01 08:29:11.650477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.652077"], ["user_id", "098f826a-bfed-11e4-913a-705681abff85"], ["created_at", "2015-03-01 08:29:11.652835"], ["updated_at", "2015-03-01 08:29:11.652835"], ["token", "uGa6-V-th7a0zvZdKS-cYgD68QV5p8CT3YjCnklgUAA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.655966"], ["updated_at", "2015-03-01 08:29:11.655966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '098f826a-bfed-11e4-913a-705681abff85' AND "clubhouse_memberships"."organization_id" = '099053e8-bfed-11e4-9533-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "098f826a-bfed-11e4-913a-705681abff85"], ["organization_id", "099053e8-bfed-11e4-9533-705681abff85"], ["created_at", "2015-03-01 08:29:11.659326"], ["updated_at", "2015-03-01 08:29:11.659326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$egdJqM/HgbA1LkEm0bEuvu/ElXxjbEzScrD9VvdjgOWBsJPTxr/c."], ["created_at", "2015-03-01 08:29:11.671644"], ["updated_at", "2015-03-01 08:29:11.671644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.673233"], ["user_id", "0992bcc8-bfed-11e4-98b4-705681abff85"], ["created_at", "2015-03-01 08:29:11.674002"], ["updated_at", "2015-03-01 08:29:11.674002"], ["token", "B1KDwQ25LUZL0J5pwXj3DmvQ9SlUiPF3LaHtScIeV6o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.677786"], ["updated_at", "2015-03-01 08:29:11.677786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0992bcc8-bfed-11e4-98b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '0993c2bc-bfed-11e4-b913-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0992bcc8-bfed-11e4-98b4-705681abff85"], ["organization_id", "0993c2bc-bfed-11e4-b913-705681abff85"], ["created_at", "2015-03-01 08:29:11.681950"], ["updated_at", "2015-03-01 08:29:11.681950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.686691' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B1KDwQ25LUZL0J5pwXj3DmvQ9SlUiPF3LaHtScIeV6o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.688381"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.689314"], ["id", "09931ccc-bfed-11e4-8c9f-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0992bcc8-bfed-11e4-98b4-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$qCNvTCB9MN3/bW45U7AGNOY055a9FrC2PxndTVBzavMIOtmgJ6.rG"], ["created_at", "2015-03-01 08:29:11.703450"], ["updated_at", "2015-03-01 08:29:11.703450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.705013"], ["user_id", "0997966c-bfed-11e4-985d-705681abff85"], ["created_at", "2015-03-01 08:29:11.705751"], ["updated_at", "2015-03-01 08:29:11.705751"], ["token", "avS5XCIBbGWKVXTBTrIbFRmcKOpxP8My-MPtDjcmyY4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.709023"], ["updated_at", "2015-03-01 08:29:11.709023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0997966c-bfed-11e4-985d-705681abff85' AND "clubhouse_memberships"."organization_id" = '09986eac-bfed-11e4-82be-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0997966c-bfed-11e4-985d-705681abff85"], ["organization_id", "09986eac-bfed-11e4-82be-705681abff85"], ["created_at", "2015-03-01 08:29:11.712909"], ["updated_at", "2015-03-01 08:29:11.712909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.718284' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "avS5XCIBbGWKVXTBTrIbFRmcKOpxP8My-MPtDjcmyY4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.720128"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.721992"], ["id", "0997f4f4-bfed-11e4-9f96-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0997966c-bfed-11e4-985d-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.727432"], ["updated_at", "2015-03-01 08:29:11.727432"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "099b460e-bfed-11e4-adf2-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0997966c-bfed-11e4-985d-705681abff85' AND "clubhouse_memberships"."organization_id" = '099b460e-bfed-11e4-adf2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0997966c-bfed-11e4-985d-705681abff85"], ["admin", "t"], ["organization_id", "099b460e-bfed-11e4-adf2-705681abff85"], ["created_at", "2015-03-01 08:29:11.732304"], ["updated_at", "2015-03-01 08:29:11.732304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.5ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$2kP0udQ/2.pxFDrvOayeYOBAW6GMknqenzgc75nRNLdwbXLQPTvQK"], ["created_at", "2015-03-01 08:29:11.740318"], ["updated_at", "2015-03-01 08:29:11.740318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.742247"], ["user_id", "099d39be-bfed-11e4-94b9-705681abff85"], ["created_at", "2015-03-01 08:29:11.743091"], ["updated_at", "2015-03-01 08:29:11.743091"], ["token", "7SA2XucKOUgmVXk_w14LH2ad8JtNEaSd22CXhMGZ4Tc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.746551"], ["updated_at", "2015-03-01 08:29:11.746551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '099d39be-bfed-11e4-94b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '099e2720-bfed-11e4-90fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "099d39be-bfed-11e4-94b9-705681abff85"], ["organization_id", "099e2720-bfed-11e4-90fc-705681abff85"], ["created_at", "2015-03-01 08:29:11.749653"], ["updated_at", "2015-03-01 08:29:11.749653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/099e2720-bfed-11e4-90fc-705681abff85" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"099e2720-bfed-11e4-90fc-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.754255' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7SA2XucKOUgmVXk_w14LH2ad8JtNEaSd22CXhMGZ4Tc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.756043"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.757995"], ["id", "099dad72-bfed-11e4-bcd1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "099d39be-bfed-11e4-94b9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "099d39be-bfed-11e4-94b9-705681abff85"], ["id", "099e2720-bfed-11e4-90fc-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "099e2720-bfed-11e4-90fc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$mdnHRET.i8nt42bTT/ouYOAZZLqXqE3yIKnpIP31mMrKiczI1irZ6"], ["created_at", "2015-03-01 08:29:11.778908"], ["updated_at", "2015-03-01 08:29:11.778908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.780955"], ["user_id", "09a32522-bfed-11e4-8fbe-705681abff85"], ["created_at", "2015-03-01 08:29:11.781893"], ["updated_at", "2015-03-01 08:29:11.781893"], ["token", "If4IGeXnLQL6QNBu7s5-OuQk0qcvWiKv5l4iGBW9VxA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.785404"], ["updated_at", "2015-03-01 08:29:11.785404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09a32522-bfed-11e4-8fbe-705681abff85' AND "clubhouse_memberships"."organization_id" = '09a4148c-bfed-11e4-8382-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09a32522-bfed-11e4-8fbe-705681abff85"], ["organization_id", "09a4148c-bfed-11e4-8382-705681abff85"], ["created_at", "2015-03-01 08:29:11.788565"], ["updated_at", "2015-03-01 08:29:11.788565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$sUL9znRbRU.nzJf1nBNZYeSk3eTzr3t5PUA5Sr486.jaRGYHLzoom"], ["created_at", "2015-03-01 08:29:11.801381"], ["updated_at", "2015-03-01 08:29:11.801381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.804211"], ["user_id", "09a69b8a-bfed-11e4-a24e-705681abff85"], ["created_at", "2015-03-01 08:29:11.805065"], ["updated_at", "2015-03-01 08:29:11.805065"], ["token", "hvD5c2Ca9bUqM_-6AVSgpkQ5p_m7CsUIdCGwmvns1GU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.809863"], ["updated_at", "2015-03-01 08:29:11.809863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09a69b8a-bfed-11e4-a24e-705681abff85' AND "clubhouse_memberships"."organization_id" = '09a7ee54-bfed-11e4-b199-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09a69b8a-bfed-11e4-a24e-705681abff85"], ["organization_id", "09a7ee54-bfed-11e4-b199-705681abff85"], ["created_at", "2015-03-01 08:29:11.814297"], ["updated_at", "2015-03-01 08:29:11.814297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$HjO5eZcwT/MljG/3.VCK9ekgjYDSR1j1UuH3MSWuPoPZl388BECd2"], ["created_at", "2015-03-01 08:29:11.828739"], ["updated_at", "2015-03-01 08:29:11.828739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.830336"], ["user_id", "09aab6a2-bfed-11e4-ab4d-705681abff85"], ["created_at", "2015-03-01 08:29:11.831165"], ["updated_at", "2015-03-01 08:29:11.831165"], ["token", "RHqYRCZZRcStI3AaRuaaiIDL9REa8ZJiCCw5tOlQThs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.835942"], ["updated_at", "2015-03-01 08:29:11.835942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09aab6a2-bfed-11e4-ab4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '09abcc04-bfed-11e4-b529-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09aab6a2-bfed-11e4-ab4d-705681abff85"], ["organization_id", "09abcc04-bfed-11e4-b529-705681abff85"], ["created_at", "2015-03-01 08:29:11.839304"], ["updated_at", "2015-03-01 08:29:11.839304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$Bj0IWdfJ7Bg6Bdymhn85Oe6ZdzMv1C/Xq.5gp2OBk.cKQ7.YiwRM2"], ["created_at", "2015-03-01 08:29:11.847970"], ["updated_at", "2015-03-01 08:29:11.847970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.850600"], ["user_id", "09adc518-bfed-11e4-a108-705681abff85"], ["created_at", "2015-03-01 08:29:11.851600"], ["updated_at", "2015-03-01 08:29:11.851600"], ["token", "6hELnonfyNa0zf34n3jpXODmJPqHKrjDLXPuNfUGHjU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.855815"], ["updated_at", "2015-03-01 08:29:11.855815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09adc518-bfed-11e4-a108-705681abff85' AND "clubhouse_memberships"."organization_id" = '09aeda34-bfed-11e4-b0d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09adc518-bfed-11e4-a108-705681abff85"], ["organization_id", "09aeda34-bfed-11e4-b0d9-705681abff85"], ["created_at", "2015-03-01 08:29:11.860541"], ["updated_at", "2015-03-01 08:29:11.860541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$frUipJC.T1eP/3Xw7mM4t.7/KSQjRrL4Jb9wcgmRpa7UBPZ5kMPrG"], ["created_at", "2015-03-01 08:29:11.867849"], ["updated_at", "2015-03-01 08:29:11.867849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.869766"], ["user_id", "09b0ad14-bfed-11e4-a5eb-705681abff85"], ["created_at", "2015-03-01 08:29:11.871192"], ["updated_at", "2015-03-01 08:29:11.871192"], ["token", "EMGBxcH2gH3Z2BAW5FuENsv4qFFIP0oYR5zYGU5-wzI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.875567"], ["updated_at", "2015-03-01 08:29:11.875567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09b0ad14-bfed-11e4-a5eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '09b1e238-bfed-11e4-baf4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09b0ad14-bfed-11e4-a5eb-705681abff85"], ["organization_id", "09b1e238-bfed-11e4-baf4-705681abff85"], ["created_at", "2015-03-01 08:29:11.879422"], ["updated_at", "2015-03-01 08:29:11.879422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$qcvIMZ7gBA2ck9BJZamlXOx.P/VpJVpeJR9gaVeZqpRCHVigN1r1W"], ["created_at", "2015-03-01 08:29:11.886215"], ["updated_at", "2015-03-01 08:29:11.886215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.889709"], ["updated_at", "2015-03-01 08:29:11.889709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09b379f4-bfed-11e4-82ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '09b400fe-bfed-11e4-b4f1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09b379f4-bfed-11e4-82ad-705681abff85"], ["organization_id", "09b400fe-bfed-11e4-b4f1-705681abff85"], ["created_at", "2015-03-01 08:29:11.893605"], ["updated_at", "2015-03-01 08:29:11.893605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.900133' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EMGBxcH2gH3Z2BAW5FuENsv4qFFIP0oYR5zYGU5-wzI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.901794"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.902822"], ["id", "09b13a2c-bfed-11e4-a26b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09b0ad14-bfed-11e4-a5eb-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "09b0ad14-bfed-11e4-a5eb-705681abff85"]] Completed 200 OK in 11ms (Views: 3.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$RYYzFEVSIJuJ6xrUKFWBvu1MHfbIjLiKCrRnTlAp8I4oEEjg18yjS"], ["created_at", "2015-03-01 08:29:11.916822"], ["updated_at", "2015-03-01 08:29:11.916822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.918469"], ["user_id", "09b82742-bfed-11e4-b5d8-705681abff85"], ["created_at", "2015-03-01 08:29:11.919343"], ["updated_at", "2015-03-01 08:29:11.919343"], ["token", "uf2mpjxkqGyfsO_93hs9LJulPtfu5xP6fFjq9RPPOXU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.923596"], ["updated_at", "2015-03-01 08:29:11.923596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09b82742-bfed-11e4-b5d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '09b9318c-bfed-11e4-b0df-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09b82742-bfed-11e4-b5d8-705681abff85"], ["organization_id", "09b9318c-bfed-11e4-b0df-705681abff85"], ["created_at", "2015-03-01 08:29:11.927157"], ["updated_at", "2015-03-01 08:29:11.927157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$yk/kitiHC34kSdoOfZk7K.Sq/LLzko8/NPwLIMHxYICAvg0pK2CB6"], ["created_at", "2015-03-01 08:29:11.932331"], ["updated_at", "2015-03-01 08:29:11.932331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.935627"], ["updated_at", "2015-03-01 08:29:11.935627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09ba84ba-bfed-11e4-a031-705681abff85' AND "clubhouse_memberships"."organization_id" = '09bb066a-bfed-11e4-8aea-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09ba84ba-bfed-11e4-a031-705681abff85"], ["organization_id", "09bb066a-bfed-11e4-8aea-705681abff85"], ["created_at", "2015-03-01 08:29:11.939744"], ["updated_at", "2015-03-01 08:29:11.939744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$.xfGNVoTv8ly.K8ELgZW0.1OcN6uvadkxDJ22j7/4cTDlfiVO31SS"], ["created_at", "2015-03-01 08:29:11.955452"], ["updated_at", "2015-03-01 08:29:11.955452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.957169"], ["user_id", "09be0e1e-bfed-11e4-8499-705681abff85"], ["created_at", "2015-03-01 08:29:11.957942"], ["updated_at", "2015-03-01 08:29:11.957942"], ["token", "CfYF0YwXaWQp0-o-_MnCIr2uuzO-waMUfAHMormwMGM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.961976"], ["updated_at", "2015-03-01 08:29:11.961976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09be0e1e-bfed-11e4-8499-705681abff85' AND "clubhouse_memberships"."organization_id" = '09bf0b5c-bfed-11e4-9388-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09be0e1e-bfed-11e4-8499-705681abff85"], ["organization_id", "09bf0b5c-bfed-11e4-9388-705681abff85"], ["created_at", "2015-03-01 08:29:11.969327"], ["updated_at", "2015-03-01 08:29:11.969327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-22" for 127.0.0.1 at 2015-03-01 00:29:11 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-22", "organization"=>{}} Pollett::Session Load (1.1ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:11.977620' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CfYF0YwXaWQp0-o-_MnCIr2uuzO-waMUfAHMormwMGM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:11.980473"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:11.981518"], ["id", "09be7458-bfed-11e4-ba71-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09be0e1e-bfed-11e4-8499-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "09be0e1e-bfed-11e4-8499-705681abff85"], ["name", "org-22"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "09bf0b5c-bfed-11e4-9388-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$mipGhuPPswFR5./JS3mRUu1eFOvCBmDF/SFU1d3wxL3ylbFfjdbVe"], ["created_at", "2015-03-01 08:29:11.992116"], ["updated_at", "2015-03-01 08:29:11.992116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:11.993971"], ["user_id", "09c3a748-bfed-11e4-b1a2-705681abff85"], ["created_at", "2015-03-01 08:29:11.994812"], ["updated_at", "2015-03-01 08:29:11.994812"], ["token", "vvvxdMNrrwC8FHZ_8sylYfmRLacIORhjTSwvCUnm0RE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:11.998869"], ["updated_at", "2015-03-01 08:29:11.998869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09c3a748-bfed-11e4-b1a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '09c4ac9c-bfed-11e4-ad0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09c3a748-bfed-11e4-b1a2-705681abff85"], ["organization_id", "09c4ac9c-bfed-11e4-ad0d-705681abff85"], ["created_at", "2015-03-01 08:29:12.003208"], ["updated_at", "2015-03-01 08:29:12.003208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 00:29:12 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$Q5S9iJNZ6/jTqfOBGcu.YeJMH8nbdT9XWMq90i9OLBflnIxwXy1fy"], ["created_at", "2015-03-01 08:29:12.021252"], ["updated_at", "2015-03-01 08:29:12.021252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:12.023034"], ["user_id", "09c818b4-bfed-11e4-b1cb-705681abff85"], ["created_at", "2015-03-01 08:29:12.023818"], ["updated_at", "2015-03-01 08:29:12.023818"], ["token", "hBYYDDNJBfI8F60zsXdbO6vMyoQMH0ZRhMtbNAgcG6c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:12.027536"], ["updated_at", "2015-03-01 08:29:12.027536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09c818b4-bfed-11e4-b1cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '09c909d6-bfed-11e4-8e4f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09c818b4-bfed-11e4-b1cb-705681abff85"], ["organization_id", "09c909d6-bfed-11e4-8e4f-705681abff85"], ["created_at", "2015-03-01 08:29:12.031318"], ["updated_at", "2015-03-01 08:29:12.031318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 00:29:12 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$l7ZtF5lnPVFkriPDpxw4a.RkAtvyOqCvWcW9bm7vOqJnDWhrmqAfy"], ["created_at", "2015-03-01 08:29:12.045628"], ["updated_at", "2015-03-01 08:29:12.045628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:12.047540"], ["user_id", "09cbd3a0-bfed-11e4-8ecc-705681abff85"], ["created_at", "2015-03-01 08:29:12.048342"], ["updated_at", "2015-03-01 08:29:12.048342"], ["token", "Cb0pudvqfUBSAoAcM4zDL-vEMRg2F6ISH4iXjgdWuDA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:12.052650"], ["updated_at", "2015-03-01 08:29:12.052650"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09cbd3a0-bfed-11e4-8ecc-705681abff85' AND "clubhouse_memberships"."organization_id" = '09ccf0c8-bfed-11e4-8f68-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09cbd3a0-bfed-11e4-8ecc-705681abff85"], ["organization_id", "09ccf0c8-bfed-11e4-8f68-705681abff85"], ["created_at", "2015-03-01 08:29:12.057861"], ["updated_at", "2015-03-01 08:29:12.057861"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-25" for 127.0.0.1 at 2015-03-01 00:29:12 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-25", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:12.065656' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Cb0pudvqfUBSAoAcM4zDL-vEMRg2F6ISH4iXjgdWuDA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:12.067961"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:12.069616"], ["id", "09cc4114-bfed-11e4-ba48-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09cbd3a0-bfed-11e4-8ecc-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "09cbd3a0-bfed-11e4-8ecc-705681abff85"], ["name", "org-25"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '09ccf0c8-bfed-11e4-8f68-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$ep9vrtpkHbOJMqj4nIgoUuF28aeamwq9EQRNzFcOy7S2BGDThUlie"], ["created_at", "2015-03-01 08:29:12.088236"], ["updated_at", "2015-03-01 08:29:12.088236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:12.089853"], ["user_id", "09d24d20-bfed-11e4-b029-705681abff85"], ["created_at", "2015-03-01 08:29:12.090817"], ["updated_at", "2015-03-01 08:29:12.090817"], ["token", "d97AaygQdb2bmnLNs6Nc9CY9xnw0hLIzyE91dhf6JjA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:12.098190"], ["updated_at", "2015-03-01 08:29:12.098190"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09d24d20-bfed-11e4-b029-705681abff85' AND "clubhouse_memberships"."organization_id" = '09d3f6d4-bfed-11e4-a929-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09d24d20-bfed-11e4-b029-705681abff85"], ["organization_id", "09d3f6d4-bfed-11e4-a929-705681abff85"], ["created_at", "2015-03-01 08:29:12.104999"], ["updated_at", "2015-03-01 08:29:12.104999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-26" for 127.0.0.1 at 2015-03-01 00:29:12 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-26", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:12.117015' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "d97AaygQdb2bmnLNs6Nc9CY9xnw0hLIzyE91dhf6JjA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:12.122033"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:12.123742"], ["id", "09d2d614-bfed-11e4-ab0c-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09d24d20-bfed-11e4-b029-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "09d24d20-bfed-11e4-b029-705681abff85"], ["name", "org-26"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '09d3f6d4-bfed-11e4-a929-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:29:12.140313"], ["id", "09d3f6d4-bfed-11e4-a929-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 29ms (Views: 1.6ms | ActiveRecord: 3.0ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$EFgwuig3khLl2p5yqcGjhu7CU9fK0RSNXMEPPZqRZieVmbXhWMTqO"], ["created_at", "2015-03-01 08:29:12.157048"], ["updated_at", "2015-03-01 08:29:12.157048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:12.160033"], ["user_id", "09dced34-bfed-11e4-92e3-705681abff85"], ["created_at", "2015-03-01 08:29:12.160924"], ["updated_at", "2015-03-01 08:29:12.160924"], ["token", "PvI-i657tgmPTrHb0d4BhmXutrIQQiskxvqk8s4WcBo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:12.165499"], ["updated_at", "2015-03-01 08:29:12.165499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09dced34-bfed-11e4-92e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '09de174a-bfed-11e4-a9a9-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09dced34-bfed-11e4-92e3-705681abff85"], ["organization_id", "09de174a-bfed-11e4-a9a9-705681abff85"], ["created_at", "2015-03-01 08:29:12.170019"], ["updated_at", "2015-03-01 08:29:12.170019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 00:29:12 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$fsXFDuC.vfFNN86vmRJ7LO9asQEkedYHqGE.XcEAyatuV7tTPNV5S"], ["created_at", "2015-03-01 08:29:12.199527"], ["updated_at", "2015-03-01 08:29:12.199527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:12.203936"], ["user_id", "09e396a2-bfed-11e4-968c-705681abff85"], ["created_at", "2015-03-01 08:29:12.205426"], ["updated_at", "2015-03-01 08:29:12.205426"], ["token", "x44pbkvvClVN4JNHsWMzdWuffGU7t5-MTKlOYzQ0v3I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:12.212170"], ["updated_at", "2015-03-01 08:29:12.212170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09e396a2-bfed-11e4-968c-705681abff85' AND "clubhouse_memberships"."organization_id" = '09e553d4-bfed-11e4-9fd3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09e396a2-bfed-11e4-968c-705681abff85"], ["organization_id", "09e553d4-bfed-11e4-9fd3-705681abff85"], ["created_at", "2015-03-01 08:29:12.219543"], ["updated_at", "2015-03-01 08:29:12.219543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/09e553d4-bfed-11e4-9fd3-705681abff85" for 127.0.0.1 at 2015-03-01 00:29:12 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"09e553d4-bfed-11e4-9fd3-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:12.229100' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "x44pbkvvClVN4JNHsWMzdWuffGU7t5-MTKlOYzQ0v3I"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:12.233717"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:12.239105"], ["id", "09e4551a-bfed-11e4-9673-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09e396a2-bfed-11e4-968c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "09e396a2-bfed-11e4-968c-705681abff85"], ["id", "09e553d4-bfed-11e4-9fd3-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '09e553d4-bfed-11e4-9fd3-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$aiB50vq64TVgtCTMkdkdmOcg7MwMJhoe.dLnVhejRYFIFBd8Y6tn6"], ["created_at", "2015-03-01 08:29:12.260355"], ["updated_at", "2015-03-01 08:29:12.260355"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:12.263198"], ["user_id", "09ecad64-bfed-11e4-ba8b-705681abff85"], ["created_at", "2015-03-01 08:29:12.264066"], ["updated_at", "2015-03-01 08:29:12.264066"], ["token", "kswJnzQPNtVbLaDJFef35AMwl0eX2wDW0Ln_LDqhaco"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:12.267700"], ["updated_at", "2015-03-01 08:29:12.267700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09ecad64-bfed-11e4-ba8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '09edaed0-bfed-11e4-994e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09ecad64-bfed-11e4-ba8b-705681abff85"], ["organization_id", "09edaed0-bfed-11e4-994e-705681abff85"], ["created_at", "2015-03-01 08:29:12.271062"], ["updated_at", "2015-03-01 08:29:12.271062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/09edaed0-bfed-11e4-994e-705681abff85" for 127.0.0.1 at 2015-03-01 00:29:12 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"09edaed0-bfed-11e4-994e-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:12.276480' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kswJnzQPNtVbLaDJFef35AMwl0eX2wDW0Ln_LDqhaco"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:12.278131"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:12.279385"], ["id", "09ed2d5c-bfed-11e4-8fbf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09ecad64-bfed-11e4-ba8b-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "09ecad64-bfed-11e4-ba8b-705681abff85"], ["id", "09edaed0-bfed-11e4-994e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '09edaed0-bfed-11e4-994e-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:29:12.288970"], ["id", "09edaed0-bfed-11e4-994e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.9ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$jyOkXA7ArplFeju.RAobPuihI5.0YfOSjwtc7XoztZlex21hdlIfi"], ["created_at", "2015-03-01 08:29:12.307710"], ["updated_at", "2015-03-01 08:29:12.307710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:12.309899"], ["user_id", "09f3d94a-bfed-11e4-aceb-705681abff85"], ["created_at", "2015-03-01 08:29:12.310745"], ["updated_at", "2015-03-01 08:29:12.310745"], ["token", "qXsR1Mke6wf131KtbbrDHttC18Vdd7TcvG8ZEzl40-8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:12.315193"], ["updated_at", "2015-03-01 08:29:12.315193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09f3d94a-bfed-11e4-aceb-705681abff85' AND "clubhouse_memberships"."organization_id" = '09f4f3a2-bfed-11e4-af42-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09f3d94a-bfed-11e4-aceb-705681abff85"], ["organization_id", "09f4f3a2-bfed-11e4-af42-705681abff85"], ["created_at", "2015-03-01 08:29:12.320264"], ["updated_at", "2015-03-01 08:29:12.320264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/09f4f3a2-bfed-11e4-af42-705681abff85" for 127.0.0.1 at 2015-03-01 00:29:12 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"09f4f3a2-bfed-11e4-af42-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:12.329282' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qXsR1Mke6wf131KtbbrDHttC18Vdd7TcvG8ZEzl40-8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:12.331542"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:12.333209"], ["id", "09f44f24-bfed-11e4-98ad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09f3d94a-bfed-11e4-aceb-705681abff85"]] Clubhouse::Organization Load (2.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "09f3d94a-bfed-11e4-aceb-705681abff85"], ["id", "09f4f3a2-bfed-11e4-af42-705681abff85"]] Completed 200 OK in 28ms (Views: 1.4ms | ActiveRecord: 4.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$GTY2yugLrocZDA.x.uft..h40P4Mlml3f84GITl8.RYHtgL/iePmq"], ["created_at", "2015-03-01 08:29:12.369247"], ["updated_at", "2015-03-01 08:29:12.369247"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:12.372715"], ["user_id", "09fd4f16-bfed-11e4-823f-705681abff85"], ["created_at", "2015-03-01 08:29:12.374270"], ["updated_at", "2015-03-01 08:29:12.374270"], ["token", "JAVabo9eCWygO3UUmgQzd8B69_iFLo9FRDZWm6yEw-8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:12.382902"], ["updated_at", "2015-03-01 08:29:12.382902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09fd4f16-bfed-11e4-823f-705681abff85' AND "clubhouse_memberships"."organization_id" = '09ff58ec-bfed-11e4-98c5-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09fd4f16-bfed-11e4-823f-705681abff85"], ["organization_id", "09ff58ec-bfed-11e4-98c5-705681abff85"], ["created_at", "2015-03-01 08:29:12.388509"], ["updated_at", "2015-03-01 08:29:12.388509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 00:29:12 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (6.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Z4dS8YR7lGmPxFVRcOD.c.f9Cx02XbhKWu.LxGwZgFF5Eflt2.vGW"], ["created_at", "2015-03-01 08:29:58.062790"], ["updated_at", "2015-03-01 08:29:58.062790"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$M4njvysKMi2zdlPC8VVuTu/cjKhu02nQ8w51DjdyiXdJrjgBkf/We"], ["created_at", "2015-03-01 08:29:58.076798"], ["updated_at", "2015-03-01 08:29:58.076798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.084595"], ["user_id", "2539aa18-bfed-11e4-871c-705681abff85"], ["created_at", "2015-03-01 08:29:58.090406"], ["updated_at", "2015-03-01 08:29:58.090406"], ["token", "y_fotQvCX2Nl6D01zaF1hu4oQhUrhpvv_cSPvdZqo_w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.099451"], ["updated_at", "2015-03-01 08:29:58.099451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2539aa18-bfed-11e4-871c-705681abff85' AND "clubhouse_memberships"."organization_id" = '253f1606-bfed-11e4-bc19-705681abff85') LIMIT 1 SQL (5.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2539aa18-bfed-11e4-871c-705681abff85"], ["organization_id", "253f1606-bfed-11e4-bc19-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.109753"], ["updated_at", "2015-03-01 08:29:58.109753"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '253b9972-bfed-11e4-9053-705681abff85' AND "clubhouse_memberships"."organization_id" = '253f1606-bfed-11e4-bc19-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "253b9972-bfed-11e4-9053-705681abff85"], ["organization_id", "253f1606-bfed-11e4-bc19-705681abff85"], ["created_at", "2015-03-01 08:29:58.119366"], ["updated_at", "2015-03-01 08:29:58.119366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$o4DsDHgJCMLvcu7dUoaFeOteJLQwsY28BHiRPNu9wPlNbE257y2QO"], ["created_at", "2015-03-01 08:29:58.155237"], ["updated_at", "2015-03-01 08:29:58.155237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$em.20i/A7J5Nc.5nzpeyPO0kSOrBrL7yQuGxzvFkd8UeJeeXMxTU."], ["created_at", "2015-03-01 08:29:58.159540"], ["updated_at", "2015-03-01 08:29:58.159540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.161029"], ["user_id", "254793a8-bfed-11e4-9078-705681abff85"], ["created_at", "2015-03-01 08:29:58.161834"], ["updated_at", "2015-03-01 08:29:58.161834"], ["token", "f3aDYUUSSwih33r181u5EQing_ZN5mQY_0IrTDjIw24"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (5.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.165583"], ["updated_at", "2015-03-01 08:29:58.165583"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '254793a8-bfed-11e4-9078-705681abff85' AND "clubhouse_memberships"."organization_id" = '254924ca-bfed-11e4-971a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "254793a8-bfed-11e4-9078-705681abff85"], ["organization_id", "254924ca-bfed-11e4-971a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.175072"], ["updated_at", "2015-03-01 08:29:58.175072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25483704-bfed-11e4-a8ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '254924ca-bfed-11e4-971a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25483704-bfed-11e4-a8ad-705681abff85"], ["organization_id", "254924ca-bfed-11e4-971a-705681abff85"], ["created_at", "2015-03-01 08:29:58.178216"], ["updated_at", "2015-03-01 08:29:58.178216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/254b1122-bfed-11e4-b47b-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"254b1122-bfed-11e4-b47b-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.183231' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "f3aDYUUSSwih33r181u5EQing_ZN5mQY_0IrTDjIw24"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.190192"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.191353"], ["id", "25489b7c-bfed-11e4-aa27-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "254793a8-bfed-11e4-9078-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "254793a8-bfed-11e4-9078-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '254793a8-bfed-11e4-9078-705681abff85' LIMIT 1 [["organization_id", "254924ca-bfed-11e4-971a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "254924ca-bfed-11e4-971a-705681abff85"], ["id", "254b1122-bfed-11e4-b47b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25483704-bfed-11e4-a8ad-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "254924ca-bfed-11e4-971a-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25483704-bfed-11e4-a8ad-705681abff85' AND "clubhouse_memberships"."id" != '254b1122-bfed-11e4-b47b-705681abff85' AND "clubhouse_memberships"."organization_id" = '254924ca-bfed-11e4-971a-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 08:29:58.222731"], ["id", "254b1122-bfed-11e4-b47b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 45ms (Views: 4.0ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$WT8fYA8doZFr/i4smnprN.iMplg7Cefn3qFBasVIpGZyIi7i257n2"], ["created_at", "2015-03-01 08:29:58.235940"], ["updated_at", "2015-03-01 08:29:58.235940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$NSils8ihb5AaLdyxIwpoZ.B.UWjJ9roCoJCNHUMHLQmA3xdpnMkYO"], ["created_at", "2015-03-01 08:29:58.240368"], ["updated_at", "2015-03-01 08:29:58.240368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.241912"], ["user_id", "2553e4f0-bfed-11e4-9420-705681abff85"], ["created_at", "2015-03-01 08:29:58.242668"], ["updated_at", "2015-03-01 08:29:58.242668"], ["token", "_pvV0OfU4ibBtOQggfVBAXx5XP_b713jQG4xc5l37ts"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.246171"], ["updated_at", "2015-03-01 08:29:58.246171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2553e4f0-bfed-11e4-9420-705681abff85' AND "clubhouse_memberships"."organization_id" = '25557aea-bfed-11e4-8edb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2553e4f0-bfed-11e4-9420-705681abff85"], ["organization_id", "25557aea-bfed-11e4-8edb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.250080"], ["updated_at", "2015-03-01 08:29:58.250080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25548d74-bfed-11e4-8599-705681abff85' AND "clubhouse_memberships"."organization_id" = '25557aea-bfed-11e4-8edb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25548d74-bfed-11e4-8599-705681abff85"], ["organization_id", "25557aea-bfed-11e4-8edb-705681abff85"], ["created_at", "2015-03-01 08:29:58.253343"], ["updated_at", "2015-03-01 08:29:58.253343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/25560aa0-bfed-11e4-9fac-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"25560aa0-bfed-11e4-9fac-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.259921' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_pvV0OfU4ibBtOQggfVBAXx5XP_b713jQG4xc5l37ts"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.261369"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.262307"], ["id", "2554ee22-bfed-11e4-b56e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2553e4f0-bfed-11e4-9420-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2553e4f0-bfed-11e4-9420-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2553e4f0-bfed-11e4-9420-705681abff85' LIMIT 1 [["organization_id", "25557aea-bfed-11e4-8edb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "25557aea-bfed-11e4-8edb-705681abff85"], ["id", "25560aa0-bfed-11e4-9fac-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2553e4f0-bfed-11e4-9420-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$oIlJsFhPGMAvI6co3hrV/OgP8Yyww1iG.h4pNO2SUGNB4rT6UcdLO"], ["created_at", "2015-03-01 08:29:58.274918"], ["updated_at", "2015-03-01 08:29:58.274918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$3CnIciKYqc9k2Y0pjhqQae6eTwhw5WMEXjouhCr1kEyikTOa74t0u"], ["created_at", "2015-03-01 08:29:58.280080"], ["updated_at", "2015-03-01 08:29:58.280080"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.282535"], ["user_id", "2559d50e-bfed-11e4-ba06-705681abff85"], ["created_at", "2015-03-01 08:29:58.283926"], ["updated_at", "2015-03-01 08:29:58.283926"], ["token", "TLhtDRCuTCUrpBhxcKR6UhQB7a1DroUIaKffy-nhHBg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.287787"], ["updated_at", "2015-03-01 08:29:58.287787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2559d50e-bfed-11e4-ba06-705681abff85' AND "clubhouse_memberships"."organization_id" = '255bcc06-bfed-11e4-8cb0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2559d50e-bfed-11e4-ba06-705681abff85"], ["organization_id", "255bcc06-bfed-11e4-8cb0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.291447"], ["updated_at", "2015-03-01 08:29:58.291447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '255aa42a-bfed-11e4-813c-705681abff85' AND "clubhouse_memberships"."organization_id" = '255bcc06-bfed-11e4-8cb0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "255aa42a-bfed-11e4-813c-705681abff85"], ["organization_id", "255bcc06-bfed-11e4-8cb0-705681abff85"], ["created_at", "2015-03-01 08:29:58.294684"], ["updated_at", "2015-03-01 08:29:58.294684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$y94turaQnP.7Tkj69ho/Su03zyMz/TRSb/wPJ76FaebO.sfh502ba"], ["created_at", "2015-03-01 08:29:58.308849"], ["updated_at", "2015-03-01 08:29:58.308849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$XmcKLpJjY8Edx1w9SGrp6.SYX07RNXOFNuOYY6hfWkMmBrQ027idG"], ["created_at", "2015-03-01 08:29:58.313176"], ["updated_at", "2015-03-01 08:29:58.313176"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.315239"], ["user_id", "255f038a-bfed-11e4-8606-705681abff85"], ["created_at", "2015-03-01 08:29:58.316476"], ["updated_at", "2015-03-01 08:29:58.316476"], ["token", "te_7YUEzLwTvvcIWcu4htASZAe5gyL2vstWGS6Ri_Rc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.321624"], ["updated_at", "2015-03-01 08:29:58.321624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '255f038a-bfed-11e4-8606-705681abff85' AND "clubhouse_memberships"."organization_id" = '2560f618-bfed-11e4-a0d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "255f038a-bfed-11e4-8606-705681abff85"], ["organization_id", "2560f618-bfed-11e4-a0d5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.325063"], ["updated_at", "2015-03-01 08:29:58.325063"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '255fb00a-bfed-11e4-9de5-705681abff85' AND "clubhouse_memberships"."organization_id" = '2560f618-bfed-11e4-a0d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "255fb00a-bfed-11e4-9de5-705681abff85"], ["organization_id", "2560f618-bfed-11e4-a0d5-705681abff85"], ["created_at", "2015-03-01 08:29:58.328915"], ["updated_at", "2015-03-01 08:29:58.328915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/25620fa8-bfed-11e4-a1e3-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"25620fa8-bfed-11e4-a1e3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.334302' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "te_7YUEzLwTvvcIWcu4htASZAe5gyL2vstWGS6Ri_Rc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.335771"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.336662"], ["id", "25605280-bfed-11e4-9ce4-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "255f038a-bfed-11e4-8606-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "255f038a-bfed-11e4-8606-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '255f038a-bfed-11e4-8606-705681abff85' LIMIT 1 [["organization_id", "2560f618-bfed-11e4-a0d5-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "2560f618-bfed-11e4-a0d5-705681abff85"], ["id", "25620fa8-bfed-11e4-a1e3-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "255fb00a-bfed-11e4-9de5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "25620fa8-bfed-11e4-a1e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 36ms (ActiveRecord: 7.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$xoOBtxDAqNPJT3kK.1DlJuoR6cV1Fu1j7aLYA5BDetqIw7GNu.ni."], ["created_at", "2015-03-01 08:29:58.379503"], ["updated_at", "2015-03-01 08:29:58.379503"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$I6XLCJjSu5bmoNpe6eHJNecBo6xs6VYmxmkKZzg4WZ32LyZXNIubW"], ["created_at", "2015-03-01 08:29:58.386427"], ["updated_at", "2015-03-01 08:29:58.386427"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.388481"], ["user_id", "2569e4da-bfed-11e4-a786-705681abff85"], ["created_at", "2015-03-01 08:29:58.389367"], ["updated_at", "2015-03-01 08:29:58.389367"], ["token", "I6XXNvbF0kpYoeWbhSFw5IQ4YZWaYU0cnRuAGjdcvEk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.393988"], ["updated_at", "2015-03-01 08:29:58.393988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2569e4da-bfed-11e4-a786-705681abff85' AND "clubhouse_memberships"."organization_id" = '256c107a-bfed-11e4-afde-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2569e4da-bfed-11e4-a786-705681abff85"], ["organization_id", "256c107a-bfed-11e4-afde-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.398352"], ["updated_at", "2015-03-01 08:29:58.398352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '256adfde-bfed-11e4-94db-705681abff85' AND "clubhouse_memberships"."organization_id" = '256c107a-bfed-11e4-afde-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "256adfde-bfed-11e4-94db-705681abff85"], ["organization_id", "256c107a-bfed-11e4-afde-705681abff85"], ["created_at", "2015-03-01 08:29:58.401893"], ["updated_at", "2015-03-01 08:29:58.401893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/256caf1c-bfed-11e4-af13-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"256caf1c-bfed-11e4-af13-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.410072' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "I6XXNvbF0kpYoeWbhSFw5IQ4YZWaYU0cnRuAGjdcvEk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.411702"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.412876"], ["id", "256b56a8-bfed-11e4-aa06-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2569e4da-bfed-11e4-a786-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2569e4da-bfed-11e4-a786-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2569e4da-bfed-11e4-a786-705681abff85' LIMIT 1 [["organization_id", "256c107a-bfed-11e4-afde-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "256c107a-bfed-11e4-afde-705681abff85"], ["id", "256caf1c-bfed-11e4-af13-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2569e4da-bfed-11e4-a786-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$LLxisA8ooNdq0qO65HyngOo7UjLchRC2FZImOpd5gRI.TGNZgqv4W"], ["created_at", "2015-03-01 08:29:58.435310"], ["updated_at", "2015-03-01 08:29:58.435310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Eg5krW4Y4tiYd/MI.XUI/uyFU0/wOHWEI.egGr6aV7fL5Qq0Cabju"], ["created_at", "2015-03-01 08:29:58.439595"], ["updated_at", "2015-03-01 08:29:58.439595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.441130"], ["user_id", "25724db4-bfed-11e4-a76c-705681abff85"], ["created_at", "2015-03-01 08:29:58.441891"], ["updated_at", "2015-03-01 08:29:58.441891"], ["token", "H52DMx8waBbFRucH3XQNbd2BDNxFLCXNvEv-A119Ii8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.445245"], ["updated_at", "2015-03-01 08:29:58.445245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25724db4-bfed-11e4-a76c-705681abff85' AND "clubhouse_memberships"."organization_id" = '2573d1c0-bfed-11e4-9742-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25724db4-bfed-11e4-a76c-705681abff85"], ["organization_id", "2573d1c0-bfed-11e4-9742-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.448586"], ["updated_at", "2015-03-01 08:29:58.448586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2572f2a0-bfed-11e4-9279-705681abff85' AND "clubhouse_memberships"."organization_id" = '2573d1c0-bfed-11e4-9742-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2572f2a0-bfed-11e4-9279-705681abff85"], ["organization_id", "2573d1c0-bfed-11e4-9742-705681abff85"], ["created_at", "2015-03-01 08:29:58.451679"], ["updated_at", "2015-03-01 08:29:58.451679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$FerqHpc2nwbWkDBiIwrzHe1wTIWqOV2uYOTFF4KwdgIKt6ImlPnGq"], ["created_at", "2015-03-01 08:29:58.455961"], ["updated_at", "2015-03-01 08:29:58.455961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.457631"], ["user_id", "257572dc-bfed-11e4-a4b0-705681abff85"], ["created_at", "2015-03-01 08:29:58.458602"], ["updated_at", "2015-03-01 08:29:58.458602"], ["token", "X_OYo03nk5PWEJVXAMpfYZYjhQIFWHZ-MmzRkTPSCwk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2573d1c0-bfed-11e4-9742-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "2573d1c0-bfed-11e4-9742-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.469754"], ["updated_at", "2015-03-01 08:29:58.469754"], ["token", "FyiTWTOP8sA0XL-kiU0OUpc-1uRaa5MsehpwMKL_9c4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$xrh0j5Oa/LGsjSF3z3DkFeswWKfi98dlwL1CP7.4GK/YEq38fGxHq"], ["created_at", "2015-03-01 08:29:58.483963"], ["updated_at", "2015-03-01 08:29:58.483963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$OAtfSk9xdPKMNXHxfvUxU.u.0.NELKolaRvZAI00axIPuk0mJaFxS"], ["created_at", "2015-03-01 08:29:58.489558"], ["updated_at", "2015-03-01 08:29:58.489558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.492165"], ["user_id", "2579bbd0-bfed-11e4-93d8-705681abff85"], ["created_at", "2015-03-01 08:29:58.492965"], ["updated_at", "2015-03-01 08:29:58.492965"], ["token", "lfQcvwi5ydZ2UHb0sGMjmP5eeSSJOxNP6tCqv8PPkCY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.496324"], ["updated_at", "2015-03-01 08:29:58.496324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2579bbd0-bfed-11e4-93d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '257b998c-bfed-11e4-b8d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2579bbd0-bfed-11e4-93d8-705681abff85"], ["organization_id", "257b998c-bfed-11e4-b8d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.499519"], ["updated_at", "2015-03-01 08:29:58.499519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '257aa4c8-bfed-11e4-aea5-705681abff85' AND "clubhouse_memberships"."organization_id" = '257b998c-bfed-11e4-b8d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "257aa4c8-bfed-11e4-aea5-705681abff85"], ["organization_id", "257b998c-bfed-11e4-b8d0-705681abff85"], ["created_at", "2015-03-01 08:29:58.502554"], ["updated_at", "2015-03-01 08:29:58.502554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$qEHXqtyt8KgfzlBfjXgnDO.JQosOZcPhfv9akFTo7jEQ3Dtjsas6C"], ["created_at", "2015-03-01 08:29:58.507451"], ["updated_at", "2015-03-01 08:29:58.507451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.509898"], ["user_id", "257d60e6-bfed-11e4-9d58-705681abff85"], ["created_at", "2015-03-01 08:29:58.510756"], ["updated_at", "2015-03-01 08:29:58.510756"], ["token", "n8ecuqnI5ek90dWZkxpKNv1xetw2HK0pkbHazHpNuT8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '257b998c-bfed-11e4-b8d0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "257b998c-bfed-11e4-b8d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.516704"], ["updated_at", "2015-03-01 08:29:58.516704"], ["token", "8y8iLMOqijiejrJw56ATfrKEG9DnL7wqgkA64-5FQwE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"8y8iLMOqijiejrJw56ATfrKEG9DnL7wqgkA64-5FQwE", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.521500' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n8ecuqnI5ek90dWZkxpKNv1xetw2HK0pkbHazHpNuT8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.523367"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.525252"], ["id", "257ddcf6-bfed-11e4-954a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "257d60e6-bfed-11e4-9d58-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "257d60e6-bfed-11e4-9d58-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "8y8iLMOqijiejrJw56ATfrKEG9DnL7wqgkA64-5FQwE"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "257b998c-bfed-11e4-b8d0-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "257b998c-bfed-11e4-b8d0-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '257d60e6-bfed-11e4-9d58-705681abff85' AND "clubhouse_memberships"."organization_id" = '257b998c-bfed-11e4-b8d0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "257d60e6-bfed-11e4-9d58-705681abff85"], ["admin", "t"], ["organization_id", "257b998c-bfed-11e4-b8d0-705681abff85"], ["created_at", "2015-03-01 08:29:58.537673"], ["updated_at", "2015-03-01 08:29:58.537673"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "257ec3b4-bfed-11e4-a851-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 1.1ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$yZkpapLQPGrx5acXBJX0UeMQbLZtReAu7uBLmWNCz/tebyLH/sgDS"], ["created_at", "2015-03-01 08:29:58.547609"], ["updated_at", "2015-03-01 08:29:58.547609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ADdCiUjkwBFmJX3Y87O5z.uiD5dD.7A3VFo9M.qdGj8ju2N9IpkhO"], ["created_at", "2015-03-01 08:29:58.552237"], ["updated_at", "2015-03-01 08:29:58.552237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.553743"], ["user_id", "258379c2-bfed-11e4-ab4d-705681abff85"], ["created_at", "2015-03-01 08:29:58.554487"], ["updated_at", "2015-03-01 08:29:58.554487"], ["token", "LKlo6lJs3PaSMS_nGjACS61mn0a2wXMmpNqME19Rynw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.557730"], ["updated_at", "2015-03-01 08:29:58.557730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '258379c2-bfed-11e4-ab4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2584f964-bfed-11e4-84aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "258379c2-bfed-11e4-ab4d-705681abff85"], ["organization_id", "2584f964-bfed-11e4-84aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.560927"], ["updated_at", "2015-03-01 08:29:58.560927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2584235e-bfed-11e4-98ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '2584f964-bfed-11e4-84aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2584235e-bfed-11e4-98ad-705681abff85"], ["organization_id", "2584f964-bfed-11e4-84aa-705681abff85"], ["created_at", "2015-03-01 08:29:58.563926"], ["updated_at", "2015-03-01 08:29:58.563926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$U45VYP85yQy1XR2T4NQR/Oj/r0eSz5o5Hd/oYyo4jsklxcdBOa8C2"], ["created_at", "2015-03-01 08:29:58.568194"], ["updated_at", "2015-03-01 08:29:58.568194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.569725"], ["user_id", "2586926a-bfed-11e4-9b4d-705681abff85"], ["created_at", "2015-03-01 08:29:58.570448"], ["updated_at", "2015-03-01 08:29:58.570448"], ["token", "AuwwKH48UEIuhqCBcCitoX3yecBxhSjCPNvoyxlZVHc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '2584f964-bfed-11e4-84aa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "2584f964-bfed-11e4-84aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.573923"], ["updated_at", "2015-03-01 08:29:58.573923"], ["token", "VHrdJDGM5b2mnL_wTfwsKrLdI8sqLDsAZDIi_ZuzwL0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.578877' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AuwwKH48UEIuhqCBcCitoX3yecBxhSjCPNvoyxlZVHc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.580469"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.581516"], ["id", "2586f14c-bfed-11e4-b8b6-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2586926a-bfed-11e4-9b4d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2586926a-bfed-11e4-9b4d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$IQbqOfH3P4vsz4jnyT4rIu1Q5EeD9N.sYZXbj3DP1Ny.wWxSHWBQi"], ["created_at", "2015-03-01 08:29:58.592703"], ["updated_at", "2015-03-01 08:29:58.592703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$9S/SVi8J3mjey7Y20Jhk3.vL6ErgUKn7R.kROh02/Pfl8BL3V98dy"], ["created_at", "2015-03-01 08:29:58.597015"], ["updated_at", "2015-03-01 08:29:58.597015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.598572"], ["user_id", "258a51b6-bfed-11e4-9fc5-705681abff85"], ["created_at", "2015-03-01 08:29:58.599395"], ["updated_at", "2015-03-01 08:29:58.599395"], ["token", "RLmQQDy_Coo3fbU1dpNGxws1Bnd2imwE-QPh_2w77Hw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.602898"], ["updated_at", "2015-03-01 08:29:58.602898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '258a51b6-bfed-11e4-9fc5-705681abff85' AND "clubhouse_memberships"."organization_id" = '258be012-bfed-11e4-8156-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "258a51b6-bfed-11e4-9fc5-705681abff85"], ["organization_id", "258be012-bfed-11e4-8156-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.608239"], ["updated_at", "2015-03-01 08:29:58.608239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '258afb20-bfed-11e4-96a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '258be012-bfed-11e4-8156-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "258afb20-bfed-11e4-96a3-705681abff85"], ["organization_id", "258be012-bfed-11e4-8156-705681abff85"], ["created_at", "2015-03-01 08:29:58.611326"], ["updated_at", "2015-03-01 08:29:58.611326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$XCqjZcpRU2FiR0CipIoW7uyNLk5yYQvboz3d4sZPtUF2/W5K0ZmMa"], ["created_at", "2015-03-01 08:29:58.624118"], ["updated_at", "2015-03-01 08:29:58.624118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$UdNlfUBiR/8rAa8wAv4U7.OgjPxZ13/f7W9BirzgWO92FJ0viIxju"], ["created_at", "2015-03-01 08:29:58.628672"], ["updated_at", "2015-03-01 08:29:58.628672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.630260"], ["user_id", "258f216e-bfed-11e4-9aac-705681abff85"], ["created_at", "2015-03-01 08:29:58.631113"], ["updated_at", "2015-03-01 08:29:58.631113"], ["token", "78jB40G7wYuwObm1urStaIQ6FTSrlqcFM57GfNO2H6Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.635505"], ["updated_at", "2015-03-01 08:29:58.635505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '258f216e-bfed-11e4-9aac-705681abff85' AND "clubhouse_memberships"."organization_id" = '2590e152-bfed-11e4-931d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "258f216e-bfed-11e4-9aac-705681abff85"], ["organization_id", "2590e152-bfed-11e4-931d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.639201"], ["updated_at", "2015-03-01 08:29:58.639201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '258fce98-bfed-11e4-ad4e-705681abff85' AND "clubhouse_memberships"."organization_id" = '2590e152-bfed-11e4-931d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "258fce98-bfed-11e4-ad4e-705681abff85"], ["organization_id", "2590e152-bfed-11e4-931d-705681abff85"], ["created_at", "2015-03-01 08:29:58.642211"], ["updated_at", "2015-03-01 08:29:58.642211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/25916938-bfed-11e4-926f-705681abff85" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"25916938-bfed-11e4-926f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.647402' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "78jB40G7wYuwObm1urStaIQ6FTSrlqcFM57GfNO2H6Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.648903"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.649931"], ["id", "25903400-bfed-11e4-aba5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "258f216e-bfed-11e4-9aac-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "258f216e-bfed-11e4-9aac-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "258f216e-bfed-11e4-9aac-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "258f216e-bfed-11e4-9aac-705681abff85"], ["id", "25916938-bfed-11e4-926f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2590e152-bfed-11e4-931d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "258f216e-bfed-11e4-9aac-705681abff85"]] Completed 200 OK in 11ms (Views: 2.2ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$43ijSdiWaiRKOqXw01gkZOKRITGZQ7eIG5kVtrlIsFA9G9DJGsaKC"], ["created_at", "2015-03-01 08:29:58.664405"], ["updated_at", "2015-03-01 08:29:58.664405"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$S0Sq1LUHMcnBKX.WWNMB9ezPg3r2duguWnG0IZkWD97ahgaC3Xg1e"], ["created_at", "2015-03-01 08:29:58.669331"], ["updated_at", "2015-03-01 08:29:58.669331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.670954"], ["user_id", "25954710-bfed-11e4-9cc3-705681abff85"], ["created_at", "2015-03-01 08:29:58.671696"], ["updated_at", "2015-03-01 08:29:58.671696"], ["token", "tvGhyKaoRwaA904cX2jHeiY07_bPSDxwLLX2Lpwb39c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.675092"], ["updated_at", "2015-03-01 08:29:58.675092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25954710-bfed-11e4-9cc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '2596e192-bfed-11e4-ac1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25954710-bfed-11e4-9cc3-705681abff85"], ["organization_id", "2596e192-bfed-11e4-ac1c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.678344"], ["updated_at", "2015-03-01 08:29:58.678344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '259602d6-bfed-11e4-bec9-705681abff85' AND "clubhouse_memberships"."organization_id" = '2596e192-bfed-11e4-ac1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "259602d6-bfed-11e4-bec9-705681abff85"], ["organization_id", "2596e192-bfed-11e4-ac1c-705681abff85"], ["created_at", "2015-03-01 08:29:58.681392"], ["updated_at", "2015-03-01 08:29:58.681392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.685974' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tvGhyKaoRwaA904cX2jHeiY07_bPSDxwLLX2Lpwb39c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.687379"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.688363"], ["id", "25966636-bfed-11e4-bdc7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25954710-bfed-11e4-9cc3-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25954710-bfed-11e4-9cc3-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25954710-bfed-11e4-9cc3-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "25954710-bfed-11e4-9cc3-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('25954710-bfed-11e4-9cc3-705681abff85') Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('2596e192-bfed-11e4-ac1c-705681abff85') Completed 200 OK in 17ms (Views: 8.3ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$kelIdoVaRWTIcqDT99S7meUquVAzBZI2smfBV0lBsLLCmIQaccgGW"], ["created_at", "2015-03-01 08:29:58.708567"], ["updated_at", "2015-03-01 08:29:58.708567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$gEvba6HlW131g0eZaCWuKe5Uff.YZ8bM8f78aIJat8F4TNySxwN6i"], ["created_at", "2015-03-01 08:29:58.712839"], ["updated_at", "2015-03-01 08:29:58.712839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.714323"], ["user_id", "259c00fa-bfed-11e4-82eb-705681abff85"], ["created_at", "2015-03-01 08:29:58.715121"], ["updated_at", "2015-03-01 08:29:58.715121"], ["token", "cSrfi1I6azf5k6y8pg-j7j-vbbUBLw9T-0ZTPVJqktY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.718361"], ["updated_at", "2015-03-01 08:29:58.718361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '259c00fa-bfed-11e4-82eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '259d7c28-bfed-11e4-be4a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "259c00fa-bfed-11e4-82eb-705681abff85"], ["organization_id", "259d7c28-bfed-11e4-be4a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.721683"], ["updated_at", "2015-03-01 08:29:58.721683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '259ca492-bfed-11e4-a67f-705681abff85' AND "clubhouse_memberships"."organization_id" = '259d7c28-bfed-11e4-be4a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "259ca492-bfed-11e4-a67f-705681abff85"], ["organization_id", "259d7c28-bfed-11e4-be4a-705681abff85"], ["created_at", "2015-03-01 08:29:58.724687"], ["updated_at", "2015-03-01 08:29:58.724687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.729103' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cSrfi1I6azf5k6y8pg-j7j-vbbUBLw9T-0ZTPVJqktY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.730516"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.731460"], ["id", "259d0478-bfed-11e4-b5b6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "259c00fa-bfed-11e4-82eb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "259c00fa-bfed-11e4-82eb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '259c00fa-bfed-11e4-82eb-705681abff85' LIMIT 1 [["organization_id", "259d7c28-bfed-11e4-be4a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "259d7c28-bfed-11e4-be4a-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('259c00fa-bfed-11e4-82eb-705681abff85', '259ca492-bfed-11e4-a67f-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('259d7c28-bfed-11e4-be4a-705681abff85') Completed 200 OK in 13ms (Views: 4.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$7QyQw.Dfw6DNUIABMD9s7eS1GGL7cnrY0SWGV7W9DniRlBnZP5k9a"], ["created_at", "2015-03-01 08:29:58.748473"], ["updated_at", "2015-03-01 08:29:58.748473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$uyApCceQLWuSv7/FUgbga.nPwKQZ3mCPLK8Wv68BqesHFPlyYiilS"], ["created_at", "2015-03-01 08:29:58.753734"], ["updated_at", "2015-03-01 08:29:58.753734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.755376"], ["user_id", "25a21a4e-bfed-11e4-a967-705681abff85"], ["created_at", "2015-03-01 08:29:58.756159"], ["updated_at", "2015-03-01 08:29:58.756159"], ["token", "hyy71h9l3QbzSZOP4AzviAPKhHvg8h2-snCcrmsoE-A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.770145"], ["updated_at", "2015-03-01 08:29:58.770145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25a21a4e-bfed-11e4-a967-705681abff85' AND "clubhouse_memberships"."organization_id" = '25a564ec-bfed-11e4-94db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25a21a4e-bfed-11e4-a967-705681abff85"], ["organization_id", "25a564ec-bfed-11e4-94db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.773462"], ["updated_at", "2015-03-01 08:29:58.773462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25a2e4f6-bfed-11e4-b05e-705681abff85' AND "clubhouse_memberships"."organization_id" = '25a564ec-bfed-11e4-94db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25a2e4f6-bfed-11e4-b05e-705681abff85"], ["organization_id", "25a564ec-bfed-11e4-94db-705681abff85"], ["created_at", "2015-03-01 08:29:58.776436"], ["updated_at", "2015-03-01 08:29:58.776436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$bqhEdYzP3iZohoP5wd9OVOOgeuTtAODr1i698YUdtq50B30u.Htmu"], ["created_at", "2015-03-01 08:29:58.788894"], ["updated_at", "2015-03-01 08:29:58.788894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$j57/63ByS3Pj1sd3bBDK0ejqEZmU0sqKcSjGAmbVWZfS.3hme6ha2"], ["created_at", "2015-03-01 08:29:58.793587"], ["updated_at", "2015-03-01 08:29:58.793587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.795259"], ["user_id", "25a842a2-bfed-11e4-ae2d-705681abff85"], ["created_at", "2015-03-01 08:29:58.796043"], ["updated_at", "2015-03-01 08:29:58.796043"], ["token", "YDmPz4dN8VJI1a8Q1hXJj3omU9Vm9MrApobsE0DIT9A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.799512"], ["updated_at", "2015-03-01 08:29:58.799512"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25a842a2-bfed-11e4-ae2d-705681abff85' AND "clubhouse_memberships"."organization_id" = '25a9e274-bfed-11e4-8d1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25a842a2-bfed-11e4-ae2d-705681abff85"], ["organization_id", "25a9e274-bfed-11e4-8d1e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:58.804101"], ["updated_at", "2015-03-01 08:29:58.804101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25a8fb7a-bfed-11e4-b9ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '25a9e274-bfed-11e4-8d1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25a8fb7a-bfed-11e4-b9ec-705681abff85"], ["organization_id", "25a9e274-bfed-11e4-8d1e-705681abff85"], ["created_at", "2015-03-01 08:29:58.807602"], ["updated_at", "2015-03-01 08:29:58.807602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/25ab20e4-bfed-11e4-a58b-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"25ab20e4-bfed-11e4-a58b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.812429' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YDmPz4dN8VJI1a8Q1hXJj3omU9Vm9MrApobsE0DIT9A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.813896"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.814865"], ["id", "25a95f34-bfed-11e4-b8e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25a842a2-bfed-11e4-ae2d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25a842a2-bfed-11e4-ae2d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '25a842a2-bfed-11e4-ae2d-705681abff85' LIMIT 1 [["organization_id", "25a9e274-bfed-11e4-8d1e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "25a9e274-bfed-11e4-8d1e-705681abff85"], ["id", "25ab20e4-bfed-11e4-a58b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "25a9e274-bfed-11e4-8d1e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25a8fb7a-bfed-11e4-b9ec-705681abff85"]] Completed 200 OK in 12ms (Views: 2.0ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$WVPHq/Nf8OdIw/8jbCFZ0.nymvJinZvb5BWWSmszYyKYfGhZf88y6"], ["created_at", "2015-03-01 08:29:58.830248"], ["updated_at", "2015-03-01 08:29:58.830248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.831817"], ["user_id", "25ae910c-bfed-11e4-9c34-705681abff85"], ["created_at", "2015-03-01 08:29:58.832583"], ["updated_at", "2015-03-01 08:29:58.832583"], ["token", "ABA7SZYw0wZwADYai-u5MG9MUpTSSCP4WJN1d5oXNzU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.835751"], ["updated_at", "2015-03-01 08:29:58.835751"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25ae910c-bfed-11e4-9c34-705681abff85' AND "clubhouse_memberships"."organization_id" = '25af651e-bfed-11e4-959d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25ae910c-bfed-11e4-9c34-705681abff85"], ["organization_id", "25af651e-bfed-11e4-959d-705681abff85"], ["created_at", "2015-03-01 08:29:58.839092"], ["updated_at", "2015-03-01 08:29:58.839092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$g1nG9G3BcUq/ecP4kK4FY..a/x2PiV9jCJvDVnRa0f6DOkpSYJKUi"], ["created_at", "2015-03-01 08:29:58.855912"], ["updated_at", "2015-03-01 08:29:58.855912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.857486"], ["user_id", "25b27b8c-bfed-11e4-ad81-705681abff85"], ["created_at", "2015-03-01 08:29:58.858292"], ["updated_at", "2015-03-01 08:29:58.858292"], ["token", "sAqvE1P0fck01UKjKKUKOtoZ6m8YVHCPd9I1wOHZg94"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.862068"], ["updated_at", "2015-03-01 08:29:58.862068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25b27b8c-bfed-11e4-ad81-705681abff85' AND "clubhouse_memberships"."organization_id" = '25b36b82-bfed-11e4-aaa1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25b27b8c-bfed-11e4-ad81-705681abff85"], ["organization_id", "25b36b82-bfed-11e4-aaa1-705681abff85"], ["created_at", "2015-03-01 08:29:58.865377"], ["updated_at", "2015-03-01 08:29:58.865377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-2" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.871482' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sAqvE1P0fck01UKjKKUKOtoZ6m8YVHCPd9I1wOHZg94"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.872937"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.873886"], ["id", "25b2dd70-bfed-11e4-9941-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25b27b8c-bfed-11e4-ad81-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25b27b8c-bfed-11e4-ad81-705681abff85"], ["name", "org-2"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$wDt0PCXnOzH3j/m1SwcvKuzSi5TmVt0rho9wuHuPK7llmxI.foQ8a"], ["created_at", "2015-03-01 08:29:58.885799"], ["updated_at", "2015-03-01 08:29:58.885799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.887396"], ["user_id", "25b70b8e-bfed-11e4-a8cc-705681abff85"], ["created_at", "2015-03-01 08:29:58.888425"], ["updated_at", "2015-03-01 08:29:58.888425"], ["token", "J0oXFgxweKi4Xv4bzbgdYpm-XrU6ELQFuQW-q9v4_gQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.892277"], ["updated_at", "2015-03-01 08:29:58.892277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25b70b8e-bfed-11e4-a8cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '25b8070a-bfed-11e4-9ce8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25b70b8e-bfed-11e4-a8cc-705681abff85"], ["organization_id", "25b8070a-bfed-11e4-9ce8-705681abff85"], ["created_at", "2015-03-01 08:29:58.895497"], ["updated_at", "2015-03-01 08:29:58.895497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$U4UORPlciqILh/OKZIqCFOQE3dkV1NBVdRSDQjPRh9b9SRZlyelvq"], ["created_at", "2015-03-01 08:29:58.907556"], ["updated_at", "2015-03-01 08:29:58.907556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.909124"], ["user_id", "25ba5d2a-bfed-11e4-8353-705681abff85"], ["created_at", "2015-03-01 08:29:58.909883"], ["updated_at", "2015-03-01 08:29:58.909883"], ["token", "AevO7N8-idBsu76kUhLizjO3s32hdNGqQf4OH7PJ4Z4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.913209"], ["updated_at", "2015-03-01 08:29:58.913209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25ba5d2a-bfed-11e4-8353-705681abff85' AND "clubhouse_memberships"."organization_id" = '25bb3650-bfed-11e4-a723-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25ba5d2a-bfed-11e4-8353-705681abff85"], ["organization_id", "25bb3650-bfed-11e4-a723-705681abff85"], ["created_at", "2015-03-01 08:29:58.916759"], ["updated_at", "2015-03-01 08:29:58.916759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/25bb3650-bfed-11e4-a723-705681abff85" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"25bb3650-bfed-11e4-a723-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.921289' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AevO7N8-idBsu76kUhLizjO3s32hdNGqQf4OH7PJ4Z4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.923159"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.925195"], ["id", "25babe0a-bfed-11e4-b264-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25ba5d2a-bfed-11e4-8353-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25ba5d2a-bfed-11e4-8353-705681abff85"], ["id", "25bb3650-bfed-11e4-a723-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '25bb3650-bfed-11e4-a723-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:29:58.932598"], ["id", "25bb3650-bfed-11e4-a723-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$ZgKY24PnAWCCmG2I7B5ei.lWgBkx7WZT9UYshmayDW1F0apyoAVuy"], ["created_at", "2015-03-01 08:29:58.941419"], ["updated_at", "2015-03-01 08:29:58.941419"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.943087"], ["user_id", "25bf887c-bfed-11e4-a72d-705681abff85"], ["created_at", "2015-03-01 08:29:58.943841"], ["updated_at", "2015-03-01 08:29:58.943841"], ["token", "gJWS4mt9sqoN2efKxInUWvk5ak_t6drfgKvl5uHan4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.947258"], ["updated_at", "2015-03-01 08:29:58.947258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25bf887c-bfed-11e4-a72d-705681abff85' AND "clubhouse_memberships"."organization_id" = '25c06940-bfed-11e4-8121-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25bf887c-bfed-11e4-a72d-705681abff85"], ["organization_id", "25c06940-bfed-11e4-8121-705681abff85"], ["created_at", "2015-03-01 08:29:58.950586"], ["updated_at", "2015-03-01 08:29:58.950586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/25c06940-bfed-11e4-8121-705681abff85" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"25c06940-bfed-11e4-8121-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:58.955177' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gJWS4mt9sqoN2efKxInUWvk5ak_t6drfgKvl5uHan4Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:58.956611"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:58.957614"], ["id", "25bfebb4-bfed-11e4-b405-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25bf887c-bfed-11e4-a72d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25bf887c-bfed-11e4-a72d-705681abff85"], ["id", "25c06940-bfed-11e4-8121-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '25c06940-bfed-11e4-8121-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$SmVZc8y0fpPPGmQ1wHzl3OwrBLYyxgB75s5h/mgEV5gRJBVd2Yuaa"], ["created_at", "2015-03-01 08:29:58.979190"], ["updated_at", "2015-03-01 08:29:58.979190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:58.980847"], ["user_id", "25c54c8a-bfed-11e4-96f1-705681abff85"], ["created_at", "2015-03-01 08:29:58.981632"], ["updated_at", "2015-03-01 08:29:58.981632"], ["token", "G3pBRh4ebpjRkeanAWCPVTNdxrSjBPXWsL9-PiWh3BI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:58.985342"], ["updated_at", "2015-03-01 08:29:58.985342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25c54c8a-bfed-11e4-96f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '25c65a08-bfed-11e4-a135-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25c54c8a-bfed-11e4-96f1-705681abff85"], ["organization_id", "25c65a08-bfed-11e4-a135-705681abff85"], ["created_at", "2015-03-01 08:29:58.989667"], ["updated_at", "2015-03-01 08:29:58.989667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 00:29:58 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$1z4LA2KLWfQqSh/nFSZWUOsxkXtH72LvxrLI12CKBMT2aiwvllQRq"], ["created_at", "2015-03-01 08:29:59.004193"], ["updated_at", "2015-03-01 08:29:59.004193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.005888"], ["user_id", "25c91d74-bfed-11e4-8076-705681abff85"], ["created_at", "2015-03-01 08:29:59.006638"], ["updated_at", "2015-03-01 08:29:59.006638"], ["token", "Bc51s-lrghubk9FJOp-y4z0uY4w3LsgJ2xYPOzMK-Eg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.010266"], ["updated_at", "2015-03-01 08:29:59.010266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25c91d74-bfed-11e4-8076-705681abff85' AND "clubhouse_memberships"."organization_id" = '25ca0694-bfed-11e4-969a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25c91d74-bfed-11e4-8076-705681abff85"], ["organization_id", "25ca0694-bfed-11e4-969a-705681abff85"], ["created_at", "2015-03-01 08:29:59.013604"], ["updated_at", "2015-03-01 08:29:59.013604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-7" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-7", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.018129' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Bc51s-lrghubk9FJOp-y4z0uY4w3LsgJ2xYPOzMK-Eg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.019875"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.021261"], ["id", "25c983cc-bfed-11e4-9e4c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-7"]] Completed 200 OK in 6ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$I4u5m6IPVNvgASj4q7AQ/uN3Tnpc3u5TfiAbsDhoEO6Umo8p2qWla"], ["created_at", "2015-03-01 08:29:59.029561"], ["updated_at", "2015-03-01 08:29:59.029561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.031183"], ["user_id", "25ccfc78-bfed-11e4-b6d3-705681abff85"], ["created_at", "2015-03-01 08:29:59.031950"], ["updated_at", "2015-03-01 08:29:59.031950"], ["token", "3p3sHjjRmO_fENvNNW3q4_BApOh86o-uQMab_IiD_3Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.036061"], ["updated_at", "2015-03-01 08:29:59.036061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25ccfc78-bfed-11e4-b6d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '25ce0ae6-bfed-11e4-86f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25ccfc78-bfed-11e4-b6d3-705681abff85"], ["organization_id", "25ce0ae6-bfed-11e4-86f6-705681abff85"], ["created_at", "2015-03-01 08:29:59.039917"], ["updated_at", "2015-03-01 08:29:59.039917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.044564' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3p3sHjjRmO_fENvNNW3q4_BApOh86o-uQMab_IiD_3Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.046018"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.047022"], ["id", "25cd5d1c-bfed-11e4-99e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$CP6PTGFZpefLFhYutYcQc.wDwsV.78KtKX95vJ3xzwjQVTqqDoGpS"], ["created_at", "2015-03-01 08:29:59.054975"], ["updated_at", "2015-03-01 08:29:59.054975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.056579"], ["user_id", "25d0db72-bfed-11e4-b376-705681abff85"], ["created_at", "2015-03-01 08:29:59.057341"], ["updated_at", "2015-03-01 08:29:59.057341"], ["token", "FouUvbTaWdJwTOYYHqkH0z1WZHKQPB6zGNA2OXweK6E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.060630"], ["updated_at", "2015-03-01 08:29:59.060630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25d0db72-bfed-11e4-b376-705681abff85' AND "clubhouse_memberships"."organization_id" = '25d1b628-bfed-11e4-a0e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25d0db72-bfed-11e4-b376-705681abff85"], ["organization_id", "25d1b628-bfed-11e4-a0e8-705681abff85"], ["created_at", "2015-03-01 08:29:59.063871"], ["updated_at", "2015-03-01 08:29:59.063871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$URZwW4ndJS7vinX/kxKTEubC8xfDjY1VPhHKdnAnDiQzXTdHUl7de"], ["created_at", "2015-03-01 08:29:59.077960"], ["updated_at", "2015-03-01 08:29:59.077960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.079726"], ["user_id", "25d461ca-bfed-11e4-8117-705681abff85"], ["created_at", "2015-03-01 08:29:59.080526"], ["updated_at", "2015-03-01 08:29:59.080526"], ["token", "1ZqvZuhOyb5Q-RHGvOu3qzEMDQcfzwDkEAV7MA2A00s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.091750"], ["updated_at", "2015-03-01 08:29:59.091750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25d461ca-bfed-11e4-8117-705681abff85' AND "clubhouse_memberships"."organization_id" = '25d67b90-bfed-11e4-87c5-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25d461ca-bfed-11e4-8117-705681abff85"], ["organization_id", "25d67b90-bfed-11e4-87c5-705681abff85"], ["created_at", "2015-03-01 08:29:59.095277"], ["updated_at", "2015-03-01 08:29:59.095277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-10" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.101940' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1ZqvZuhOyb5Q-RHGvOu3qzEMDQcfzwDkEAV7MA2A00s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.103353"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.104321"], ["id", "25d4c7f0-bfed-11e4-826f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25d461ca-bfed-11e4-8117-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25d461ca-bfed-11e4-8117-705681abff85"], ["name", "org-10"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "25d67b90-bfed-11e4-87c5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$hlnTRAipBeoC8K7xjW9ZfO6UDk5jON.EqQkQxRZegrzvO./l3Lwv."], ["created_at", "2015-03-01 08:29:59.116285"], ["updated_at", "2015-03-01 08:29:59.116285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.118026"], ["user_id", "25da3992-bfed-11e4-a850-705681abff85"], ["created_at", "2015-03-01 08:29:59.118918"], ["updated_at", "2015-03-01 08:29:59.118918"], ["token", "6jX9dT-aSUByJPIfSpJ7lgPDx_InTNogy6-CjDbeWX0"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.123304"], ["updated_at", "2015-03-01 08:29:59.123304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25da3992-bfed-11e4-a850-705681abff85' AND "clubhouse_memberships"."organization_id" = '25db47c4-bfed-11e4-aaef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25da3992-bfed-11e4-a850-705681abff85"], ["organization_id", "25db47c4-bfed-11e4-aaef-705681abff85"], ["created_at", "2015-03-01 08:29:59.126594"], ["updated_at", "2015-03-01 08:29:59.126594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$buqBh1l441QR45WHudr3B.i5zTo3V8dF7SkebmHJ5wJiL1wADNwyW"], ["created_at", "2015-03-01 08:29:59.139398"], ["updated_at", "2015-03-01 08:29:59.139398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.141039"], ["user_id", "25ddbe64-bfed-11e4-bdfe-705681abff85"], ["created_at", "2015-03-01 08:29:59.141797"], ["updated_at", "2015-03-01 08:29:59.141797"], ["token", "BOh6XGT_btUix0zGJ0S4p7bg9t7-jHYl_zWS7-WTukA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.145047"], ["updated_at", "2015-03-01 08:29:59.145047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25ddbe64-bfed-11e4-bdfe-705681abff85' AND "clubhouse_memberships"."organization_id" = '25de9776-bfed-11e4-8209-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25ddbe64-bfed-11e4-bdfe-705681abff85"], ["organization_id", "25de9776-bfed-11e4-8209-705681abff85"], ["created_at", "2015-03-01 08:29:59.148156"], ["updated_at", "2015-03-01 08:29:59.148156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.153349' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BOh6XGT_btUix0zGJ0S4p7bg9t7-jHYl_zWS7-WTukA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.154793"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.155735"], ["id", "25de1f76-bfed-11e4-a0eb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25ddbe64-bfed-11e4-bdfe-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.161298"], ["updated_at", "2015-03-01 08:29:59.161298"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "25e11550-bfed-11e4-a8c3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25ddbe64-bfed-11e4-bdfe-705681abff85' AND "clubhouse_memberships"."organization_id" = '25e11550-bfed-11e4-a8c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25ddbe64-bfed-11e4-bdfe-705681abff85"], ["admin", "t"], ["organization_id", "25e11550-bfed-11e4-a8c3-705681abff85"], ["created_at", "2015-03-01 08:29:59.165105"], ["updated_at", "2015-03-01 08:29:59.165105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$SPsJLTtKOtLdAWylemmWVuFEKmR2FIGujjv/XndCc7C7LPBr811Ke"], ["created_at", "2015-03-01 08:29:59.173238"], ["updated_at", "2015-03-01 08:29:59.173238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.174904"], ["user_id", "25e2e8b2-bfed-11e4-be55-705681abff85"], ["created_at", "2015-03-01 08:29:59.175677"], ["updated_at", "2015-03-01 08:29:59.175677"], ["token", "D9hOxrA4M1xC8PjXnO0to0bNFEa8ADpVVGS4t8NWJXU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.178906"], ["updated_at", "2015-03-01 08:29:59.178906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25e2e8b2-bfed-11e4-be55-705681abff85' AND "clubhouse_memberships"."organization_id" = '25e3c1b0-bfed-11e4-9833-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25e2e8b2-bfed-11e4-be55-705681abff85"], ["organization_id", "25e3c1b0-bfed-11e4-9833-705681abff85"], ["created_at", "2015-03-01 08:29:59.182253"], ["updated_at", "2015-03-01 08:29:59.182253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.187748' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "D9hOxrA4M1xC8PjXnO0to0bNFEa8ADpVVGS4t8NWJXU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.189311"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.190230"], ["id", "25e34b40-bfed-11e4-8c89-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25e2e8b2-bfed-11e4-be55-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$VfK/cy.5PlqJG147OSeukeaosvJYvdSCj5yJiwaxbzd34UbArhyRy"], ["created_at", "2015-03-01 08:29:59.201323"], ["updated_at", "2015-03-01 08:29:59.201323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.203271"], ["user_id", "25e73386-bfed-11e4-8de7-705681abff85"], ["created_at", "2015-03-01 08:29:59.204032"], ["updated_at", "2015-03-01 08:29:59.204032"], ["token", "AC7fOgtxbFROd3Xda--LYVVaDFUHBr7M0MNqlghtbQs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.207385"], ["updated_at", "2015-03-01 08:29:59.207385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25e73386-bfed-11e4-8de7-705681abff85' AND "clubhouse_memberships"."organization_id" = '25e81a1c-bfed-11e4-8227-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25e73386-bfed-11e4-8de7-705681abff85"], ["organization_id", "25e81a1c-bfed-11e4-8227-705681abff85"], ["created_at", "2015-03-01 08:29:59.210526"], ["updated_at", "2015-03-01 08:29:59.210526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$tsFIu/e/tmZL8cVmLC9YJeJkcWBWlrHshXWgq45GsYbWdGdpPwk8i"], ["created_at", "2015-03-01 08:29:59.222195"], ["updated_at", "2015-03-01 08:29:59.222195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.223813"], ["user_id", "25ea6114-bfed-11e4-9bd9-705681abff85"], ["created_at", "2015-03-01 08:29:59.224583"], ["updated_at", "2015-03-01 08:29:59.224583"], ["token", "v2d8xJ6-KfvoZt88FDzrR-57IUmvO2cw2RCp8hstPPM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.227841"], ["updated_at", "2015-03-01 08:29:59.227841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25ea6114-bfed-11e4-9bd9-705681abff85' AND "clubhouse_memberships"."organization_id" = '25eb3a6c-bfed-11e4-ab25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25ea6114-bfed-11e4-9bd9-705681abff85"], ["organization_id", "25eb3a6c-bfed-11e4-ab25-705681abff85"], ["created_at", "2015-03-01 08:29:59.231058"], ["updated_at", "2015-03-01 08:29:59.231058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/25eb3a6c-bfed-11e4-ab25-705681abff85" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"25eb3a6c-bfed-11e4-ab25-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.236089' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v2d8xJ6-KfvoZt88FDzrR-57IUmvO2cw2RCp8hstPPM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.238152"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.239283"], ["id", "25eac17c-bfed-11e4-af04-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25ea6114-bfed-11e4-9bd9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "25ea6114-bfed-11e4-9bd9-705681abff85"], ["id", "25eb3a6c-bfed-11e4-ab25-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$RFvMQVhiWGeL6SYuXLjnVOdl40/9IGmb1iVTk3Qb0B8OVw4XYu23C"], ["created_at", "2015-03-01 08:29:59.249611"], ["updated_at", "2015-03-01 08:29:59.249611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.251244"], ["user_id", "25ee8f78-bfed-11e4-902e-705681abff85"], ["created_at", "2015-03-01 08:29:59.252203"], ["updated_at", "2015-03-01 08:29:59.252203"], ["token", "e92rTzj7neqRFhcSFDLaQOlF-K4-CShrAKclvZbcwQs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.255681"], ["updated_at", "2015-03-01 08:29:59.255681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25ee8f78-bfed-11e4-902e-705681abff85' AND "clubhouse_memberships"."organization_id" = '25ef7848-bfed-11e4-a03d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25ee8f78-bfed-11e4-902e-705681abff85"], ["organization_id", "25ef7848-bfed-11e4-a03d-705681abff85"], ["created_at", "2015-03-01 08:29:59.258900"], ["updated_at", "2015-03-01 08:29:59.258900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$wz6RG5.1j83gVnunCg2tpeY7bpQEqq0ADS8CSE0NHSFtxEm8nYsLe"], ["created_at", "2015-03-01 08:29:59.263269"], ["updated_at", "2015-03-01 08:29:59.263269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.266323"], ["updated_at", "2015-03-01 08:29:59.266323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25f0a1d2-bfed-11e4-9d30-705681abff85' AND "clubhouse_memberships"."organization_id" = '25f117b6-bfed-11e4-86f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25f0a1d2-bfed-11e4-9d30-705681abff85"], ["organization_id", "25f117b6-bfed-11e4-86f9-705681abff85"], ["created_at", "2015-03-01 08:29:59.269750"], ["updated_at", "2015-03-01 08:29:59.269750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$sUr0JquEwxMDuQQdbgf9DOiHlqCmqU6fLlgE0RtdyhHQ3H5ZCPwFm"], ["created_at", "2015-03-01 08:29:59.285312"], ["updated_at", "2015-03-01 08:29:59.285312"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.288263"], ["user_id", "25f4076e-bfed-11e4-b7b7-705681abff85"], ["created_at", "2015-03-01 08:29:59.289124"], ["updated_at", "2015-03-01 08:29:59.289124"], ["token", "FcOF0PXbggRGdQIYkzbG1sgA3_jqI9MveZZ9EtcbIRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.292629"], ["updated_at", "2015-03-01 08:29:59.292629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25f4076e-bfed-11e4-b7b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '25f51c1c-bfed-11e4-8e83-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25f4076e-bfed-11e4-b7b7-705681abff85"], ["organization_id", "25f51c1c-bfed-11e4-8e83-705681abff85"], ["created_at", "2015-03-01 08:29:59.296156"], ["updated_at", "2015-03-01 08:29:59.296156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$ELpfBkloEKadK.hibRPL3OX9SrLPQ3NytcSRs.ZEBqcxpopRqyf22"], ["created_at", "2015-03-01 08:29:59.301704"], ["updated_at", "2015-03-01 08:29:59.301704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.306055"], ["updated_at", "2015-03-01 08:29:59.306055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25f6873c-bfed-11e4-876b-705681abff85' AND "clubhouse_memberships"."organization_id" = '25f72bd8-bfed-11e4-866e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25f6873c-bfed-11e4-876b-705681abff85"], ["organization_id", "25f72bd8-bfed-11e4-866e-705681abff85"], ["created_at", "2015-03-01 08:29:59.309384"], ["updated_at", "2015-03-01 08:29:59.309384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.314246' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FcOF0PXbggRGdQIYkzbG1sgA3_jqI9MveZZ9EtcbIRg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.315682"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.316666"], ["id", "25f4a084-bfed-11e4-8775-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25f4076e-bfed-11e4-b7b7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "25f4076e-bfed-11e4-b7b7-705681abff85"]] Completed 200 OK in 8ms (Views: 2.4ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$k9e7Xa7wxEsBSQONCNNQ/OpS0G3m.1rR3jSovE2fQwZ4hWRV2DD32"], ["created_at", "2015-03-01 08:29:59.328531"], ["updated_at", "2015-03-01 08:29:59.328531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.330098"], ["user_id", "25fa991c-bfed-11e4-bdbb-705681abff85"], ["created_at", "2015-03-01 08:29:59.330862"], ["updated_at", "2015-03-01 08:29:59.330862"], ["token", "xMztp7FGSTBBfivLSrKwGqHuX2MltvS4Z2TREEwOZRc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.334192"], ["updated_at", "2015-03-01 08:29:59.334192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25fa991c-bfed-11e4-bdbb-705681abff85' AND "clubhouse_memberships"."organization_id" = '25fb7d3c-bfed-11e4-a3c7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25fa991c-bfed-11e4-bdbb-705681abff85"], ["organization_id", "25fb7d3c-bfed-11e4-a3c7-705681abff85"], ["created_at", "2015-03-01 08:29:59.362197"], ["updated_at", "2015-03-01 08:29:59.362197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$DBjHaOmqJaG8C01RoJxGE.AlX8Ks9JlorPLU.uCxN7.c2w6Msx25K"], ["created_at", "2015-03-01 08:29:59.388315"], ["updated_at", "2015-03-01 08:29:59.388315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.391288"], ["user_id", "2603d338-bfed-11e4-b030-705681abff85"], ["created_at", "2015-03-01 08:29:59.392706"], ["updated_at", "2015-03-01 08:29:59.392706"], ["token", "-08LagqrOvQMg1nghBZe_mZwreyCFA1Hth-uxGddfUc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.396914"], ["updated_at", "2015-03-01 08:29:59.396914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2603d338-bfed-11e4-b030-705681abff85' AND "clubhouse_memberships"."organization_id" = '2605080c-bfed-11e4-92ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2603d338-bfed-11e4-b030-705681abff85"], ["organization_id", "2605080c-bfed-11e4-92ca-705681abff85"], ["created_at", "2015-03-01 08:29:59.402142"], ["updated_at", "2015-03-01 08:29:59.402142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/2605080c-bfed-11e4-92ca-705681abff85" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"2605080c-bfed-11e4-92ca-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.406776' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-08LagqrOvQMg1nghBZe_mZwreyCFA1Hth-uxGddfUc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.408224"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.409232"], ["id", "26048044-bfed-11e4-ab81-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2603d338-bfed-11e4-b030-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2603d338-bfed-11e4-b030-705681abff85"], ["id", "2605080c-bfed-11e4-92ca-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "2605080c-bfed-11e4-92ca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$9nL.a0ba1O/oPt5sAaslHeijvb1J0H9qXgH0jVPvqIfZN5Bccc98q"], ["created_at", "2015-03-01 08:29:59.422093"], ["updated_at", "2015-03-01 08:29:59.422093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.424152"], ["user_id", "2608edc8-bfed-11e4-be87-705681abff85"], ["created_at", "2015-03-01 08:29:59.424935"], ["updated_at", "2015-03-01 08:29:59.424935"], ["token", "UtDBjv-95BYzrbhAQdGKA8P8c0_cmJpQzYz9zpZnxrU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.429454"], ["updated_at", "2015-03-01 08:29:59.429454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2608edc8-bfed-11e4-be87-705681abff85' AND "clubhouse_memberships"."organization_id" = '260a2562-bfed-11e4-bac5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2608edc8-bfed-11e4-be87-705681abff85"], ["organization_id", "260a2562-bfed-11e4-bac5-705681abff85"], ["created_at", "2015-03-01 08:29:59.433991"], ["updated_at", "2015-03-01 08:29:59.433991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$GoVTVDg4FqyBgd1fwTphxu9pjkg5PCkrRnqPg5C3rhvEpatfFwYy2"], ["created_at", "2015-03-01 08:29:59.448855"], ["updated_at", "2015-03-01 08:29:59.448855"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.451085"], ["user_id", "260cf7f6-bfed-11e4-bcbf-705681abff85"], ["created_at", "2015-03-01 08:29:59.451871"], ["updated_at", "2015-03-01 08:29:59.451871"], ["token", "GQPH09gKWI9EAq27SZGLtKZb87ruin7nff69jR-fvkE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.456272"], ["updated_at", "2015-03-01 08:29:59.456272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '260cf7f6-bfed-11e4-bcbf-705681abff85' AND "clubhouse_memberships"."organization_id" = '260e1dca-bfed-11e4-847c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "260cf7f6-bfed-11e4-bcbf-705681abff85"], ["organization_id", "260e1dca-bfed-11e4-847c-705681abff85"], ["created_at", "2015-03-01 08:29:59.465715"], ["updated_at", "2015-03-01 08:29:59.465715"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.472700' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GQPH09gKWI9EAq27SZGLtKZb87ruin7nff69jR-fvkE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.474580"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.475587"], ["id", "260d77c6-bfed-11e4-a75c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "260cf7f6-bfed-11e4-bcbf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "260cf7f6-bfed-11e4-bcbf-705681abff85"], ["name", "org-23"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '260e1dca-bfed-11e4-847c-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:29:59.481783"], ["id", "260e1dca-bfed-11e4-847c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$Jokqbi9Qo7X3.77vrSLpqeWNdiIQPdb/yObjp4u00q.t/MVTfKMGC"], ["created_at", "2015-03-01 08:29:59.490344"], ["updated_at", "2015-03-01 08:29:59.490344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.492119"], ["user_id", "26134e9e-bfed-11e4-aed4-705681abff85"], ["created_at", "2015-03-01 08:29:59.492893"], ["updated_at", "2015-03-01 08:29:59.492893"], ["token", "i3r398CPjrJDx7ydGFoCXRBLKlFGa3y19U48KS71xIU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.496174"], ["updated_at", "2015-03-01 08:29:59.496174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '26134e9e-bfed-11e4-aed4-705681abff85' AND "clubhouse_memberships"."organization_id" = '26142ac6-bfed-11e4-b83e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "26134e9e-bfed-11e4-aed4-705681abff85"], ["organization_id", "26142ac6-bfed-11e4-b83e-705681abff85"], ["created_at", "2015-03-01 08:29:59.499524"], ["updated_at", "2015-03-01 08:29:59.499524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.504488' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "i3r398CPjrJDx7ydGFoCXRBLKlFGa3y19U48KS71xIU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.505960"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.506900"], ["id", "2613b3fc-bfed-11e4-82b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "26134e9e-bfed-11e4-aed4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "26134e9e-bfed-11e4-aed4-705681abff85"], ["name", "org-24"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '26142ac6-bfed-11e4-b83e-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$cKco49c7wUUa8KhTMRp5FuWfU3Oz463aEDW3OE28AMAaB4qUDRG.O"], ["created_at", "2015-03-01 08:29:59.528525"], ["updated_at", "2015-03-01 08:29:59.528525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.530234"], ["user_id", "26191fe0-bfed-11e4-9497-705681abff85"], ["created_at", "2015-03-01 08:29:59.530970"], ["updated_at", "2015-03-01 08:29:59.530970"], ["token", "QwDGGwv_OlW7IUDdKeuch6hj2CMnvWne8LkdmvoaZcw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.534419"], ["updated_at", "2015-03-01 08:29:59.534419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '26191fe0-bfed-11e4-9497-705681abff85' AND "clubhouse_memberships"."organization_id" = '261a022a-bfed-11e4-9992-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "26191fe0-bfed-11e4-9497-705681abff85"], ["organization_id", "261a022a-bfed-11e4-9992-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:59.538469"], ["updated_at", "2015-03-01 08:29:59.538469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '261a022a-bfed-11e4-9992-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "261a022a-bfed-11e4-9992-705681abff85"], ["created_at", "2015-03-01 08:29:59.542672"], ["updated_at", "2015-03-01 08:29:59.542672"], ["token", "c6lVf-nBtB0LUvLdBGwQ6J6W0cgmSXmcqWIo_25hF3A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$3ecNHAeK26Oe56GM1xmCMuUgGt4OZRjOMJ8ceGtahu5qBYtbVhdSG"], ["created_at", "2015-03-01 08:29:59.560491"], ["updated_at", "2015-03-01 08:29:59.560491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.562104"], ["user_id", "261dfe7a-bfed-11e4-bc11-705681abff85"], ["created_at", "2015-03-01 08:29:59.562823"], ["updated_at", "2015-03-01 08:29:59.562823"], ["token", "XSrVuISJ9ZhvDQapBx-m24oGGXlylfpCbYN5cZSU3cI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.566125"], ["updated_at", "2015-03-01 08:29:59.566125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '261dfe7a-bfed-11e4-bc11-705681abff85' AND "clubhouse_memberships"."organization_id" = '261ed818-bfed-11e4-a12e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "261dfe7a-bfed-11e4-bc11-705681abff85"], ["organization_id", "261ed818-bfed-11e4-a12e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:59.569412"], ["updated_at", "2015-03-01 08:29:59.569412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '261ed818-bfed-11e4-a12e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "261ed818-bfed-11e4-a12e-705681abff85"], ["created_at", "2015-03-01 08:29:59.573118"], ["updated_at", "2015-03-01 08:29:59.573118"], ["token", "xzQB1mxLc_QSHAgSAbXcv9YGnBQ5Pyg350wCcw3q46s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.579170' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XSrVuISJ9ZhvDQapBx-m24oGGXlylfpCbYN5cZSU3cI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.581581"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.583620"], ["id", "261e5ee2-bfed-11e4-93f0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "261dfe7a-bfed-11e4-bc11-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "261dfe7a-bfed-11e4-bc11-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '261dfe7a-bfed-11e4-bc11-705681abff85' LIMIT 1 [["organization_id", "261ed818-bfed-11e4-a12e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "261ed818-bfed-11e4-a12e-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '261ed818-bfed-11e4-a12e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "261ed818-bfed-11e4-a12e-705681abff85"], ["created_at", "2015-03-01 08:29:59.594641"], ["updated_at", "2015-03-01 08:29:59.594641"], ["token", "yGmihii9LLiAaxcfx8JDi4g5XeLZtFAa-wiikw-NuXw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 28de2075-d26e-4d88-b86a-da4fc9f33102) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/26233f84-bfed-11e4-89dc-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "26233f84-bfed-11e4-89dc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [28de2075-d26e-4d88-b86a-da4fc9f33102] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/26233f84-bfed-11e4-89dc-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [28de2075-d26e-4d88-b86a-da4fc9f33102] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "261ed818-bfed-11e4-a12e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [28de2075-d26e-4d88-b86a-da4fc9f33102] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [28de2075-d26e-4d88-b86a-da4fc9f33102] Clubhouse::Mailer#invitation: processed outbound mail in 227.1ms [ActiveJob] [ActionMailer::DeliveryJob] [28de2075-d26e-4d88-b86a-da4fc9f33102] Sent mail to email@example.com (8.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [28de2075-d26e-4d88-b86a-da4fc9f33102] Date: Sun, 01 Mar 2015 00:29:59 -0800 From: from@example.com To: email@example.com Message-ID: <54f2ce07cf876_138473fc501065be8327cf@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/yGmihii9LLiAaxcfx8JDi4g5XeLZtFAa-wiikw-NuXw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [28de2075-d26e-4d88-b86a-da4fc9f33102] Performed ActionMailer::DeliveryJob from Inline(mailers) in 235.93ms Completed 201 Created in 277ms (Views: 2.0ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$fYJs7pP.mXUrijK.j/Q2QOX11cUm1wv/Txip6aqcq9zqQcmjDUd1."], ["created_at", "2015-03-01 08:29:59.862318"], ["updated_at", "2015-03-01 08:29:59.862318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.863911"], ["user_id", "264c0c8e-bfed-11e4-a12b-705681abff85"], ["created_at", "2015-03-01 08:29:59.865147"], ["updated_at", "2015-03-01 08:29:59.865147"], ["token", "q3fDHwZ8DCpGrD0bjx2WXlMMhN8AKHlyI_rwmN0PdL8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (6.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.871228"], ["updated_at", "2015-03-01 08:29:59.871228"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '264c0c8e-bfed-11e4-a12b-705681abff85' AND "clubhouse_memberships"."organization_id" = '264d6be2-bfed-11e4-9476-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "264c0c8e-bfed-11e4-a12b-705681abff85"], ["organization_id", "264d6be2-bfed-11e4-9476-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:59.881549"], ["updated_at", "2015-03-01 08:29:59.881549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '264d6be2-bfed-11e4-9476-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "264d6be2-bfed-11e4-9476-705681abff85"], ["created_at", "2015-03-01 08:29:59.884951"], ["updated_at", "2015-03-01 08:29:59.884951"], ["token", "aYRA20QGKspIBgQPt1dyq5w6LPKd2Hi6lwyfYD2JvYY"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.890136' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q3fDHwZ8DCpGrD0bjx2WXlMMhN8AKHlyI_rwmN0PdL8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.891557"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.892679"], ["id", "264cc340-bfed-11e4-a115-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "264c0c8e-bfed-11e4-a12b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "264c0c8e-bfed-11e4-a12b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '264c0c8e-bfed-11e4-a12b-705681abff85' LIMIT 1 [["organization_id", "264d6be2-bfed-11e4-9476-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "264d6be2-bfed-11e4-9476-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '264d6be2-bfed-11e4-9476-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "264d6be2-bfed-11e4-9476-705681abff85"], ["created_at", "2015-03-01 08:29:59.903018"], ["updated_at", "2015-03-01 08:29:59.903018"], ["token", "ZvZkiZ7WkwA7pLMR8RNxZmFUpH0kBBteTwj-nrkBCCc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d235f9fe-21a5-497b-a59b-54f665d09468) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/265248b0-bfed-11e4-a40c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "265248b0-bfed-11e4-a40c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d235f9fe-21a5-497b-a59b-54f665d09468] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/265248b0-bfed-11e4-a40c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d235f9fe-21a5-497b-a59b-54f665d09468] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "264d6be2-bfed-11e4-9476-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d235f9fe-21a5-497b-a59b-54f665d09468] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [d235f9fe-21a5-497b-a59b-54f665d09468] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [d235f9fe-21a5-497b-a59b-54f665d09468] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [d235f9fe-21a5-497b-a59b-54f665d09468] Date: Sun, 01 Mar 2015 00:29:59 -0800 From: from@example.com To: email@example.com Message-ID: <54f2ce07de695_138473fc501065be83285f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/ZvZkiZ7WkwA7pLMR8RNxZmFUpH0kBBteTwj-nrkBCCc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d235f9fe-21a5-497b-a59b-54f665d09468] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.24ms Completed 201 Created in 23ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$t8zVWZTdZdtDypiETXc9p.2sTFd0tSE5r/JmNlOJo3gcPeb7rjOFK"], ["created_at", "2015-03-01 08:29:59.925416"], ["updated_at", "2015-03-01 08:29:59.925416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.926963"], ["user_id", "2655acda-bfed-11e4-b63d-705681abff85"], ["created_at", "2015-03-01 08:29:59.927715"], ["updated_at", "2015-03-01 08:29:59.927715"], ["token", "uL9ahNdFcpP5ECPdtPovXLjXTlXXNCCYqJ9MfLj2mJo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.931081"], ["updated_at", "2015-03-01 08:29:59.931081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2655acda-bfed-11e4-b63d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2656874a-bfed-11e4-aa76-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2655acda-bfed-11e4-b63d-705681abff85"], ["organization_id", "2656874a-bfed-11e4-aa76-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:59.934242"], ["updated_at", "2015-03-01 08:29:59.934242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '2656874a-bfed-11e4-aa76-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "2656874a-bfed-11e4-aa76-705681abff85"], ["created_at", "2015-03-01 08:29:59.937566"], ["updated_at", "2015-03-01 08:29:59.937566"], ["token", "CK1lE2DM0OuYl8y99DecsJmTQ9lo1JIs4DDc4TRutBw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:29:59.942093' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uL9ahNdFcpP5ECPdtPovXLjXTlXXNCCYqJ9MfLj2mJo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:29:59.943504"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:29:59.944444"], ["id", "26560ac2-bfed-11e4-aff2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2655acda-bfed-11e4-b63d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2655acda-bfed-11e4-b63d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2655acda-bfed-11e4-b63d-705681abff85' LIMIT 1 [["organization_id", "2656874a-bfed-11e4-aa76-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2656874a-bfed-11e4-aa76-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '2656874a-bfed-11e4-aa76-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$S2ED8AsC7kzxjDifLES31.7qsTcMonlk/qm6x16jdv08vLc58IMhy"], ["created_at", "2015-03-01 08:29:59.961774"], ["updated_at", "2015-03-01 08:29:59.961774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:29:59.963299"], ["user_id", "265b388a-bfed-11e4-b97b-705681abff85"], ["created_at", "2015-03-01 08:29:59.964498"], ["updated_at", "2015-03-01 08:29:59.964498"], ["token", "VVB5rCzcmcMSU8GcOYyLtpxYNmcNJ-k1dg_zfS-KbUI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.968429"], ["updated_at", "2015-03-01 08:29:59.968429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '265b388a-bfed-11e4-b97b-705681abff85' AND "clubhouse_memberships"."organization_id" = '265c3960-bfed-11e4-93cd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "265b388a-bfed-11e4-b97b-705681abff85"], ["organization_id", "265c3960-bfed-11e4-93cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:29:59.971503"], ["updated_at", "2015-03-01 08:29:59.971503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '265c3960-bfed-11e4-93cd-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "265c3960-bfed-11e4-93cd-705681abff85"], ["created_at", "2015-03-01 08:29:59.975986"], ["updated_at", "2015-03-01 08:29:59.975986"], ["token", "zoqC4nuodIGjVwC0GMouWcoYysb5DGpSMrkGsSaQyfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$22D225ScTMSDv7SMts1GZuJI3PFPklM2BwJf/bVFHu5vQSIZHP4Li"], ["created_at", "2015-03-01 08:29:59.983267"], ["updated_at", "2015-03-01 08:29:59.983267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:29:59.986467"], ["updated_at", "2015-03-01 08:29:59.986467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '265e81a2-bfed-11e4-b1aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '265efab0-bfed-11e4-bef5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "265e81a2-bfed-11e4-b1aa-705681abff85"], ["organization_id", "265efab0-bfed-11e4-bef5-705681abff85"], ["created_at", "2015-03-01 08:29:59.989895"], ["updated_at", "2015-03-01 08:29:59.989895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:29:59 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$jDjeVtvAMUM2FuC0FP27j.G21nXSKWvkQrcH4ZDaTgqdoFeeQAxZG"], ["created_at", "2015-03-01 08:30:00.002306"], ["updated_at", "2015-03-01 08:30:00.002306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:30:00.003979"], ["user_id", "26616b10-bfed-11e4-bfb0-705681abff85"], ["created_at", "2015-03-01 08:30:00.004973"], ["updated_at", "2015-03-01 08:30:00.004973"], ["token", "Kx9-0OPzYFSxt93WbZN7NEcILFCqx1mutyVNqva0M7w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.009055"], ["updated_at", "2015-03-01 08:30:00.009055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '26616b10-bfed-11e4-bfb0-705681abff85' AND "clubhouse_memberships"."organization_id" = '26627316-bfed-11e4-8817-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "26616b10-bfed-11e4-bfb0-705681abff85"], ["organization_id", "26627316-bfed-11e4-8817-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:30:00.012776"], ["updated_at", "2015-03-01 08:30:00.012776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '26627316-bfed-11e4-8817-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "26627316-bfed-11e4-8817-705681abff85"], ["created_at", "2015-03-01 08:30:00.016648"], ["updated_at", "2015-03-01 08:30:00.016648"], ["token", "g8qKjvDQapzezhspHxjRy25qh-VOdW79zy_p5v56Tmc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$buGTEtv0dHox8wEXSqmOoepiS8rxc28fDEm4Exc8tBVThwlTnqptq"], ["created_at", "2015-03-01 08:30:00.021961"], ["updated_at", "2015-03-01 08:30:00.021961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.026368"], ["updated_at", "2015-03-01 08:30:00.026368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '26646c66-bfed-11e4-8b82-705681abff85' AND "clubhouse_memberships"."organization_id" = '26651382-bfed-11e4-8101-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "26646c66-bfed-11e4-8b82-705681abff85"], ["organization_id", "26651382-bfed-11e4-8101-705681abff85"], ["created_at", "2015-03-01 08:30:00.029498"], ["updated_at", "2015-03-01 08:30:00.029498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:30:00 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:30:00.034814' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Kx9-0OPzYFSxt93WbZN7NEcILFCqx1mutyVNqva0M7w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:30:00.036246"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:30:00.037177"], ["id", "2661dd70-bfed-11e4-ae33-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "26616b10-bfed-11e4-bfb0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "26616b10-bfed-11e4-bfb0-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '26616b10-bfed-11e4-bfb0-705681abff85' LIMIT 1 [["organization_id", "26627316-bfed-11e4-8817-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "26627316-bfed-11e4-8817-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('26627316-bfed-11e4-8817-705681abff85') Completed 200 OK in 11ms (Views: 2.4ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$/pltR01x7/AOajcUusYeIO5mOddrmQ751nCdYPJo.iCIwobAp8e9q"], ["created_at", "2015-03-01 08:30:00.051371"], ["updated_at", "2015-03-01 08:30:00.051371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:30:00.053054"], ["user_id", "2668e764-bfed-11e4-af88-705681abff85"], ["created_at", "2015-03-01 08:30:00.053828"], ["updated_at", "2015-03-01 08:30:00.053828"], ["token", "x80FEeLJC41Z2_luKUcl1aSUVgteJrule01G2aCg0xM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.057188"], ["updated_at", "2015-03-01 08:30:00.057188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2668e764-bfed-11e4-af88-705681abff85' AND "clubhouse_memberships"."organization_id" = '2669c648-bfed-11e4-a565-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2668e764-bfed-11e4-af88-705681abff85"], ["organization_id", "2669c648-bfed-11e4-a565-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:30:00.062129"], ["updated_at", "2015-03-01 08:30:00.062129"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '2669c648-bfed-11e4-a565-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "2669c648-bfed-11e4-a565-705681abff85"], ["created_at", "2015-03-01 08:30:00.072076"], ["updated_at", "2015-03-01 08:30:00.072076"], ["token", "KiAgMnm_JkDkC108KBe4hRUBFegkX5Rf1MOmI__YKbE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:30:00 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$wSPgSWyiYuy8bw9uhq.Q0OvYChClApOAQJAM1jEckCDLnHaRZCQvS"], ["created_at", "2015-03-01 08:30:00.086969"], ["updated_at", "2015-03-01 08:30:00.086969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:30:00.088801"], ["user_id", "266e54d8-bfed-11e4-ae7a-705681abff85"], ["created_at", "2015-03-01 08:30:00.089645"], ["updated_at", "2015-03-01 08:30:00.089645"], ["token", "bbIJSK9HNG3tyemWJo2XJp-eyvhmQ1j6jPluDUmsfwk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.093862"], ["updated_at", "2015-03-01 08:30:00.093862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '266e54d8-bfed-11e4-ae7a-705681abff85' AND "clubhouse_memberships"."organization_id" = '266f6634-bfed-11e4-a464-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "266e54d8-bfed-11e4-ae7a-705681abff85"], ["organization_id", "266f6634-bfed-11e4-a464-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:30:00.097810"], ["updated_at", "2015-03-01 08:30:00.097810"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '266f6634-bfed-11e4-a464-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "266f6634-bfed-11e4-a464-705681abff85"], ["created_at", "2015-03-01 08:30:00.101432"], ["updated_at", "2015-03-01 08:30:00.101432"], ["token", "P2a6d1MByyKp-lkVb8VPrmSWoxe8wHJNkNDNTlvQm6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/26708a64-bfed-11e4-ae80-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:30:00 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"26708a64-bfed-11e4-ae80-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:30:00.106259' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bbIJSK9HNG3tyemWJo2XJp-eyvhmQ1j6jPluDUmsfwk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:30:00.107708"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:30:00.108616"], ["id", "266eccb0-bfed-11e4-b0d9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "266e54d8-bfed-11e4-ae7a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "266e54d8-bfed-11e4-ae7a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '266e54d8-bfed-11e4-ae7a-705681abff85' LIMIT 1 [["organization_id", "266f6634-bfed-11e4-a464-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "266f6634-bfed-11e4-a464-705681abff85"], ["id", "26708a64-bfed-11e4-ae80-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "26708a64-bfed-11e4-ae80-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$FIOHHPvJev9VayaxKfO1VOn4.UJE5Hd.BH8daBhKIrAxtVjfHRPwS"], ["created_at", "2015-03-01 08:30:00.122000"], ["updated_at", "2015-03-01 08:30:00.122000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:30:00.124124"], ["user_id", "2673b1da-bfed-11e4-bab7-705681abff85"], ["created_at", "2015-03-01 08:30:00.124960"], ["updated_at", "2015-03-01 08:30:00.124960"], ["token", "prLaowAakPrbH9K_zBoZAPRMEw1phhmmeRxS2f6H9ng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.128340"], ["updated_at", "2015-03-01 08:30:00.128340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2673b1da-bfed-11e4-bab7-705681abff85' AND "clubhouse_memberships"."organization_id" = '2674a02c-bfed-11e4-96ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2673b1da-bfed-11e4-bab7-705681abff85"], ["organization_id", "2674a02c-bfed-11e4-96ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:30:00.131482"], ["updated_at", "2015-03-01 08:30:00.131482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '2674a02c-bfed-11e4-96ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "2674a02c-bfed-11e4-96ba-705681abff85"], ["created_at", "2015-03-01 08:30:00.134651"], ["updated_at", "2015-03-01 08:30:00.134651"], ["token", "kq8DNc_u2gj-HhXhlCS9x2zzCc6svpAQTVWvELETJLY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 00:30:00 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$mULHvWZSNR/e/AIx2EQP.eThkhnjgWgYeZZWzBfCeNrBOVpkyg6oG"], ["created_at", "2015-03-01 08:30:00.146711"], ["updated_at", "2015-03-01 08:30:00.146711"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:30:00.148698"], ["user_id", "267770c2-bfed-11e4-b7ff-705681abff85"], ["created_at", "2015-03-01 08:30:00.150084"], ["updated_at", "2015-03-01 08:30:00.150084"], ["token", "63N6vtoyx4Wn0_ImEOUzajncc6C8GGP9BL6ksy7nfcU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.154319"], ["updated_at", "2015-03-01 08:30:00.154319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '267770c2-bfed-11e4-b7ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '26789b8c-bfed-11e4-a186-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "267770c2-bfed-11e4-b7ff-705681abff85"], ["organization_id", "26789b8c-bfed-11e4-a186-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:30:00.158076"], ["updated_at", "2015-03-01 08:30:00.158076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '26789b8c-bfed-11e4-a186-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "26789b8c-bfed-11e4-a186-705681abff85"], ["created_at", "2015-03-01 08:30:00.162298"], ["updated_at", "2015-03-01 08:30:00.162298"], ["token", "R3wzUqNy47kFj-9ZsFAGt4csOYdlb3t1lm8dCuOMOqA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/2679d402-bfed-11e4-8915-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:30:00 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"2679d402-bfed-11e4-8915-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:30:00.166890' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "63N6vtoyx4Wn0_ImEOUzajncc6C8GGP9BL6ksy7nfcU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:30:00.168699"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:30:00.169846"], ["id", "2677fa6a-bfed-11e4-8a60-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "267770c2-bfed-11e4-b7ff-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "267770c2-bfed-11e4-b7ff-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '267770c2-bfed-11e4-b7ff-705681abff85' LIMIT 1 [["organization_id", "26789b8c-bfed-11e4-a186-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "26789b8c-bfed-11e4-a186-705681abff85"], ["id", "2679d402-bfed-11e4-8915-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "26789b8c-bfed-11e4-a186-705681abff85"]] Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$cNd8yxaBWLX3Mha8zbUHhuj81V7Lp.utMK/TClPEPe3RH/PUbPzwW"], ["created_at", "2015-03-01 08:30:00.184499"], ["updated_at", "2015-03-01 08:30:00.184499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:30:00.186043"], ["user_id", "267d34da-bfed-11e4-ab91-705681abff85"], ["created_at", "2015-03-01 08:30:00.186766"], ["updated_at", "2015-03-01 08:30:00.186766"], ["token", "CUxhMSRsC1Ecc5lWiDNW33lU7VUnzSYx1tgbVyI4_PM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.190069"], ["updated_at", "2015-03-01 08:30:00.190069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '267d34da-bfed-11e4-ab91-705681abff85' AND "clubhouse_memberships"."organization_id" = '267e12ec-bfed-11e4-873b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "267d34da-bfed-11e4-ab91-705681abff85"], ["organization_id", "267e12ec-bfed-11e4-873b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:30:00.193540"], ["updated_at", "2015-03-01 08:30:00.193540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '267e12ec-bfed-11e4-873b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "267e12ec-bfed-11e4-873b-705681abff85"], ["created_at", "2015-03-01 08:30:00.196839"], ["updated_at", "2015-03-01 08:30:00.196839"], ["token", "S7LLsySTxTjefZQWOP6ncRxRamXXRwNh-gWZbK9xfeQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:30:00 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$g9Qte0VmhNrPTvdE2n7fD.BZKXnqRA37kn2jwf7sCg008rVY.ras6"], ["created_at", "2015-03-01 08:30:00.209109"], ["updated_at", "2015-03-01 08:30:00.209109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:30:00.210677"], ["user_id", "2680f6f6-bfed-11e4-a1af-705681abff85"], ["created_at", "2015-03-01 08:30:00.211422"], ["updated_at", "2015-03-01 08:30:00.211422"], ["token", "2ppeKRc3SaohSQD8tHiEg3GEBp1qgMc9BmAyYplye-o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.214663"], ["updated_at", "2015-03-01 08:30:00.214663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2680f6f6-bfed-11e4-a1af-705681abff85' AND "clubhouse_memberships"."organization_id" = '2681d7c4-bfed-11e4-a833-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2680f6f6-bfed-11e4-a1af-705681abff85"], ["organization_id", "2681d7c4-bfed-11e4-a833-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:30:00.218428"], ["updated_at", "2015-03-01 08:30:00.218428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '2681d7c4-bfed-11e4-a833-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "2681d7c4-bfed-11e4-a833-705681abff85"], ["created_at", "2015-03-01 08:30:00.221714"], ["updated_at", "2015-03-01 08:30:00.221714"], ["token", "uRrYPk1MbYFMoC_Ddh8TPKNkmvoy82aLKxVvK02s4hk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/2682e65a-bfed-11e4-8054-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:30:00 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"2682e65a-bfed-11e4-8054-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:30:00.227490' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2ppeKRc3SaohSQD8tHiEg3GEBp1qgMc9BmAyYplye-o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:30:00.228918"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:30:00.229874"], ["id", "26815538-bfed-11e4-b0fa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2680f6f6-bfed-11e4-a1af-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "2680f6f6-bfed-11e4-a1af-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2680f6f6-bfed-11e4-a1af-705681abff85' LIMIT 1 [["organization_id", "2681d7c4-bfed-11e4-a833-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "2681d7c4-bfed-11e4-a833-705681abff85"], ["id", "2682e65a-bfed-11e4-8054-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2681d7c4-bfed-11e4-a833-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."id" != '2682e65a-bfed-11e4-8054-705681abff85' AND "clubhouse_invitations"."organization_id" = '2681d7c4-bfed-11e4-a833-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 08:30:00.239233"], ["id", "2682e65a-bfed-11e4-8054-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$Ipy2eYWJNBlFXh7PQ7lSae7q3O9jOIyw/Z8sbapLE5laGgPYBtdy6"], ["created_at", "2015-03-01 08:30:00.252790"], ["updated_at", "2015-03-01 08:30:00.252790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.256325"], ["updated_at", "2015-03-01 08:30:00.256325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2687a67c-bfed-11e4-aa46-705681abff85' AND "clubhouse_memberships"."organization_id" = '26882b92-bfed-11e4-a7b0-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2687a67c-bfed-11e4-aa46-705681abff85"], ["organization_id", "26882b92-bfed-11e4-a7b0-705681abff85"], ["created_at", "2015-03-01 08:30:00.259314"], ["updated_at", "2015-03-01 08:30:00.259314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2687a67c-bfed-11e4-aa46-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "26882b92-bfed-11e4-a7b0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2687a67c-bfed-11e4-aa46-705681abff85' AND "clubhouse_memberships"."organization_id" = '26882b92-bfed-11e4-a7b0-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "26882b92-bfed-11e4-a7b0-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2687a67c-bfed-11e4-aa46-705681abff85' AND "clubhouse_memberships"."organization_id" = '26882b92-bfed-11e4-a7b0-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.281835"], ["updated_at", "2015-03-01 08:30:00.281835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '268c114e-bfed-11e4-9011-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "268c114e-bfed-11e4-9011-705681abff85"], ["created_at", "2015-03-01 08:30:00.285356"], ["updated_at", "2015-03-01 08:30:00.285356"], ["token", "0vFpg-XF-XwIPOSNfg3MAvkuj7PVpGDQUChvZcGLGIA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.9ms) Date: Sun, 01 Mar 2015 00:30:00 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ce08468bd_138473fc501065be832924@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/0vFpg-XF-XwIPOSNfg3MAvkuj7PVpGDQUChvZcGLGIA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.295055"], ["updated_at", "2015-03-01 08:30:00.295055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '268e12f0-bfed-11e4-85b8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "268e12f0-bfed-11e4-85b8-705681abff85"], ["created_at", "2015-03-01 08:30:00.298811"], ["updated_at", "2015-03-01 08:30:00.298811"], ["token", "8xtvRS8QVWUd2A--HfjYPjM27CJtSDcQsg8vDNbdlT0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.6ms) Date: Sun, 01 Mar 2015 00:30:00 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ce084a55e_138473fc501065be833073@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/8xtvRS8QVWUd2A--HfjYPjM27CJtSDcQsg8vDNbdlT0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.309176"], ["updated_at", "2015-03-01 08:30:00.309176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '26903a8a-bfed-11e4-8a6b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "26903a8a-bfed-11e4-8a6b-705681abff85"], ["created_at", "2015-03-01 08:30:00.312483"], ["updated_at", "2015-03-01 08:30:00.312483"], ["token", "TEczuvBocum9OYjyggKz06VKo4WiT3VPdYSTIcRiPb4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.4ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.8ms Sent mail to john@example.com (1.6ms) Date: Sun, 01 Mar 2015 00:30:00 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ce084d682_138473fc501065be8331c8@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/TEczuvBocum9OYjyggKz06VKo4WiT3VPdYSTIcRiPb4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.321706"], ["updated_at", "2015-03-01 08:30:00.321706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '2692232c-bfed-11e4-a6f3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "2692232c-bfed-11e4-a6f3-705681abff85"], ["created_at", "2015-03-01 08:30:00.325391"], ["updated_at", "2015-03-01 08:30:00.325391"], ["token", "EQHhOCeffgM22ahCsRTnYbklFXk25dcnKqH7REgLEN4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Sun, 01 Mar 2015 00:30:00 -0800 From: from@example.com To: john@example.com Message-ID: <54f2ce0850819_138473fc501065be833228@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/EQHhOCeffgM22ahCsRTnYbklFXk25dcnKqH7REgLEN4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.376885"], ["updated_at", "2015-03-01 08:30:00.376885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '269aa056-bfed-11e4-b419-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "269aa056-bfed-11e4-b419-705681abff85"], ["created_at", "2015-03-01 08:30:00.384088"], ["updated_at", "2015-03-01 08:30:00.384088"], ["token", "EVxKiG8VZlhfruq-PNB7kE_j1QHz9P1fl_TjZHR_4ZA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.402580"], ["updated_at", "2015-03-01 08:30:00.402580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '269e9134-bfed-11e4-b64a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "269e9134-bfed-11e4-b64a-705681abff85"], ["created_at", "2015-03-01 08:30:00.408126"], ["updated_at", "2015-03-01 08:30:00.408126"], ["token", "Eog4yqZXMP3PPy-D3_hgNAo0VaHWfQgq4HpyPh682Yg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "269e9134-bfed-11e4-b64a-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '269e9134-bfed-11e4-b64a-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "269e9134-bfed-11e4-b64a-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '269e9134-bfed-11e4-b64a-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.447593"], ["updated_at", "2015-03-01 08:30:00.447593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.455167"], ["updated_at", "2015-03-01 08:30:00.455167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.475854"], ["updated_at", "2015-03-01 08:30:00.475854"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.480678"], ["updated_at", "2015-03-01 08:30:00.480678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "26aa65a4-bfed-11e4-9fcc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:30:00.485394"], ["updated_at", "2015-03-01 08:30:00.485394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$62nnvgYFFRSc9HO9vjygBu2LqO2ginJ2SCY3fzx1bVtRUKp9NA4h2"], ["created_at", "2015-03-01 08:34:26.496611"], ["updated_at", "2015-03-01 08:34:26.496611"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:26.508482"], ["user_id", "c5396b84-bfed-11e4-bbfb-705681abff85"], ["created_at", "2015-03-01 08:34:26.514230"], ["updated_at", "2015-03-01 08:34:26.514230"], ["token", "O8FSb2TtGENf1GB9qJcQqytZrW7VPfucJLWjITWKLCk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:26.523593"], ["updated_at", "2015-03-01 08:34:26.523593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5396b84-bfed-11e4-bbfb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c53d5cd0-bfed-11e4-bd10-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5396b84-bfed-11e4-bbfb-705681abff85"], ["organization_id", "c53d5cd0-bfed-11e4-bd10-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:26.534622"], ["updated_at", "2015-03-01 08:34:26.534622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'c53d5cd0-bfed-11e4-bd10-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "c53d5cd0-bfed-11e4-bd10-705681abff85"], ["created_at", "2015-03-01 08:34:26.552064"], ["updated_at", "2015-03-01 08:34:26.552064"], ["token", "ZpQbGRS4ubwJxLvme1_Y5ItM73D9k0ITkbLFETTtih8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/c541d7f6-bfed-11e4-9448-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:26 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"c541d7f6-bfed-11e4-9448-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:26.581482' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "O8FSb2TtGENf1GB9qJcQqytZrW7VPfucJLWjITWKLCk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:26.588692"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:26.589924"], ["id", "c53bff34-bfed-11e4-a6b6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5396b84-bfed-11e4-bbfb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5396b84-bfed-11e4-bbfb-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c5396b84-bfed-11e4-bbfb-705681abff85' LIMIT 1 [["organization_id", "c53d5cd0-bfed-11e4-bd10-705681abff85"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "c53d5cd0-bfed-11e4-bd10-705681abff85"], ["id", "c541d7f6-bfed-11e4-9448-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "c541d7f6-bfed-11e4-9448-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 40ms (ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$c6OG86B4Bx4yBsrzXeiNz.ZaG2nOaB8mP4AbX1U9Wj1Lu4EjNcbcW"], ["created_at", "2015-03-01 08:34:26.629123"], ["updated_at", "2015-03-01 08:34:26.629123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:26.631434"], ["user_id", "c54d70fc-bfed-11e4-b061-705681abff85"], ["created_at", "2015-03-01 08:34:26.632452"], ["updated_at", "2015-03-01 08:34:26.632452"], ["token", "-VvG6ga7qlmfdAvSHNH9sM1FIZs_FcmjGBegDqXVD5U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:26.636227"], ["updated_at", "2015-03-01 08:34:26.636227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c54d70fc-bfed-11e4-b061-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c54e838e-bfed-11e4-8bbc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c54d70fc-bfed-11e4-b061-705681abff85"], ["organization_id", "c54e838e-bfed-11e4-8bbc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:26.639537"], ["updated_at", "2015-03-01 08:34:26.639537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'c54e838e-bfed-11e4-8bbc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "c54e838e-bfed-11e4-8bbc-705681abff85"], ["created_at", "2015-03-01 08:34:26.643315"], ["updated_at", "2015-03-01 08:34:26.643315"], ["token", "QaZr6laNcuPAeWCZ-Gd23--jbYnq5U2iUdVn4YzzHxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:26 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Ta9yihghfAW7GDotyDLx3eEEFvmB8iqppKQGCT7984haeb9cODwei"], ["created_at", "2015-03-01 08:34:26.656185"], ["updated_at", "2015-03-01 08:34:26.656185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:26.658077"], ["user_id", "c5519ab0-bfed-11e4-98a5-705681abff85"], ["created_at", "2015-03-01 08:34:26.658840"], ["updated_at", "2015-03-01 08:34:26.658840"], ["token", "WYiROuOYMP7Hzy_bhjbncgymdtDdhg-T_7xkAcXQ_VY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:26.662801"], ["updated_at", "2015-03-01 08:34:26.662801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5519ab0-bfed-11e4-98a5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5529168-bfed-11e4-8770-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5519ab0-bfed-11e4-98a5-705681abff85"], ["organization_id", "c5529168-bfed-11e4-8770-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:26.666401"], ["updated_at", "2015-03-01 08:34:26.666401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c5529168-bfed-11e4-8770-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c5529168-bfed-11e4-8770-705681abff85"], ["created_at", "2015-03-01 08:34:26.670417"], ["updated_at", "2015-03-01 08:34:26.670417"], ["token", "OFAdiixKfQC7KHkMPcB2KMtoXpz_Nkg_JDCVkY-LbSI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:26 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$bNvTLoIYyIWfUuMhigJ8WO0v0eos1YCd2.4n9iNa1JxEZ6rxUr9rK"], ["created_at", "2015-03-01 08:34:26.686076"], ["updated_at", "2015-03-01 08:34:26.686076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:26.688163"], ["user_id", "c5563214-bfed-11e4-baec-705681abff85"], ["created_at", "2015-03-01 08:34:26.689345"], ["updated_at", "2015-03-01 08:34:26.689345"], ["token", "qMdTaDiBxCS-czxJimbGAttan5_vS0XNdvd6eydFUEU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:26.693700"], ["updated_at", "2015-03-01 08:34:26.693700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5563214-bfed-11e4-baec-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c557494c-bfed-11e4-ab33-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5563214-bfed-11e4-baec-705681abff85"], ["organization_id", "c557494c-bfed-11e4-ab33-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:26.697322"], ["updated_at", "2015-03-01 08:34:26.697322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'c557494c-bfed-11e4-ab33-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "c557494c-bfed-11e4-ab33-705681abff85"], ["created_at", "2015-03-01 08:34:26.702092"], ["updated_at", "2015-03-01 08:34:26.702092"], ["token", "GgXYATJ450pLGCJG327U3Ts6N7-oUpP3yKL3hImffO8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:26 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:26.710009' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qMdTaDiBxCS-czxJimbGAttan5_vS0XNdvd6eydFUEU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:26.711554"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:26.712729"], ["id", "c556b3e2-bfed-11e4-9617-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5563214-bfed-11e4-baec-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5563214-bfed-11e4-baec-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c5563214-bfed-11e4-baec-705681abff85' LIMIT 1 [["organization_id", "c557494c-bfed-11e4-ab33-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c557494c-bfed-11e4-ab33-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'c557494c-bfed-11e4-ab33-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 27ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$WTKgHqrcBhVN/8t67NAmFO05w4novVvG/Nk8RqaxxH0mH3q4a290C"], ["created_at", "2015-03-01 08:34:26.741766"], ["updated_at", "2015-03-01 08:34:26.741766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:26.743474"], ["user_id", "c55ea160-bfed-11e4-9a3c-705681abff85"], ["created_at", "2015-03-01 08:34:26.744484"], ["updated_at", "2015-03-01 08:34:26.744484"], ["token", "-frmQ7hYO51bXEfoS0NRbNvFJKnjFT4eHA7xSc6vMmk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:26.748391"], ["updated_at", "2015-03-01 08:34:26.748391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c55ea160-bfed-11e4-9a3c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c55fa754-bfed-11e4-80ff-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c55ea160-bfed-11e4-9a3c-705681abff85"], ["organization_id", "c55fa754-bfed-11e4-80ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:26.752211"], ["updated_at", "2015-03-01 08:34:26.752211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'c55fa754-bfed-11e4-80ff-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "c55fa754-bfed-11e4-80ff-705681abff85"], ["created_at", "2015-03-01 08:34:26.756069"], ["updated_at", "2015-03-01 08:34:26.756069"], ["token", "9zvq1vxzkRzq6hDdpVAMZrk3yvFH5l7ZuzLRL9O_9cU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:26 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:26.760631' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-frmQ7hYO51bXEfoS0NRbNvFJKnjFT4eHA7xSc6vMmk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:26.762489"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:26.764374"], ["id", "c55f146a-bfed-11e4-9e90-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c55ea160-bfed-11e4-9a3c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c55ea160-bfed-11e4-9a3c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c55ea160-bfed-11e4-9a3c-705681abff85' LIMIT 1 [["organization_id", "c55fa754-bfed-11e4-80ff-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c55fa754-bfed-11e4-80ff-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'c55fa754-bfed-11e4-80ff-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "c55fa754-bfed-11e4-80ff-705681abff85"], ["created_at", "2015-03-01 08:34:26.773533"], ["updated_at", "2015-03-01 08:34:26.773533"], ["token", "10XxRCLa7SCkTuIkLofCS3Lcf_qUGhM_c72eZXT9GNQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 98c9fe48-ba92-45c9-b400-4f479175fc78) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c5638888-bfed-11e4-9105-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c5638888-bfed-11e4-9105-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [98c9fe48-ba92-45c9-b400-4f479175fc78] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c5638888-bfed-11e4-9105-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [98c9fe48-ba92-45c9-b400-4f479175fc78] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c55fa754-bfed-11e4-80ff-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [98c9fe48-ba92-45c9-b400-4f479175fc78] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [98c9fe48-ba92-45c9-b400-4f479175fc78] Clubhouse::Mailer#invitation: processed outbound mail in 239.3ms [ActiveJob] [ActionMailer::DeliveryJob] [98c9fe48-ba92-45c9-b400-4f479175fc78] Sent mail to email@example.com (7.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [98c9fe48-ba92-45c9-b400-4f479175fc78] Date: Sun, 01 Mar 2015 00:34:27 -0800 From: from@example.com To: email@example.com Message-ID: <54f2cf13ab73_1386e3fe114865be87733b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/10XxRCLa7SCkTuIkLofCS3Lcf_qUGhM_c72eZXT9GNQ If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [98c9fe48-ba92-45c9-b400-4f479175fc78] Performed ActionMailer::DeliveryJob from Inline(mailers) in 247.73ms Completed 201 Created in 290ms (Views: 2.9ms | ActiveRecord: 3.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$aLqmkm7Sh0sloVqgIZwVROTiAkaUd4Fwgk1n.Uv9gLCkQWGl.0OJy"], ["created_at", "2015-03-01 08:34:27.058058"], ["updated_at", "2015-03-01 08:34:27.058058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.059766"], ["user_id", "c58ee5f0-bfed-11e4-a00b-705681abff85"], ["created_at", "2015-03-01 08:34:27.060550"], ["updated_at", "2015-03-01 08:34:27.060550"], ["token", "Rol2uqLieyjXU3wG-3GbrfC7gBW2d4FYhuXzpWj9RRI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.064741"], ["updated_at", "2015-03-01 08:34:27.064741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c58ee5f0-bfed-11e4-a00b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c58fe69e-bfed-11e4-9ad3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c58ee5f0-bfed-11e4-a00b-705681abff85"], ["organization_id", "c58fe69e-bfed-11e4-9ad3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:27.068844"], ["updated_at", "2015-03-01 08:34:27.068844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'c58fe69e-bfed-11e4-9ad3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "c58fe69e-bfed-11e4-9ad3-705681abff85"], ["created_at", "2015-03-01 08:34:27.072579"], ["updated_at", "2015-03-01 08:34:27.072579"], ["token", "3XBFsLyVFg1yn2NMe0PrKbwM2ZnMyXdNfDm5bh6rqFY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.078489' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Rol2uqLieyjXU3wG-3GbrfC7gBW2d4FYhuXzpWj9RRI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.080409"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.082300"], ["id", "c58f4928-bfed-11e4-8a48-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c58ee5f0-bfed-11e4-a00b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c58ee5f0-bfed-11e4-a00b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c58ee5f0-bfed-11e4-a00b-705681abff85' LIMIT 1 [["organization_id", "c58fe69e-bfed-11e4-9ad3-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c58fe69e-bfed-11e4-9ad3-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'c58fe69e-bfed-11e4-9ad3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "c58fe69e-bfed-11e4-9ad3-705681abff85"], ["created_at", "2015-03-01 08:34:27.093593"], ["updated_at", "2015-03-01 08:34:27.093593"], ["token", "4FcY-dh5nSTxU-tw0WAkouTkNi99NPdcz9kHVlJweu0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2af9e4e0-dc30-489b-9535-8414a7062e9f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c59454c2-bfed-11e4-8c2c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c59454c2-bfed-11e4-8c2c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2af9e4e0-dc30-489b-9535-8414a7062e9f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c59454c2-bfed-11e4-8c2c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [2af9e4e0-dc30-489b-9535-8414a7062e9f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c58fe69e-bfed-11e4-9ad3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2af9e4e0-dc30-489b-9535-8414a7062e9f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2af9e4e0-dc30-489b-9535-8414a7062e9f] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [2af9e4e0-dc30-489b-9535-8414a7062e9f] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [2af9e4e0-dc30-489b-9535-8414a7062e9f] Date: Sun, 01 Mar 2015 00:34:27 -0800 From: from@example.com To: email@example.com Message-ID: <54f2cf13189be_1386e3fe114865be877434@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/4FcY-dh5nSTxU-tw0WAkouTkNi99NPdcz9kHVlJweu0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [2af9e4e0-dc30-489b-9535-8414a7062e9f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.29ms Completed 201 Created in 25ms (Views: 1.0ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$hY4TY5wmymqIi4BPVNOKLe4ZXBwIM258ShhaDluQXhqMA9BRY7Usi"], ["created_at", "2015-03-01 08:34:27.110958"], ["updated_at", "2015-03-01 08:34:27.110958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.114821"], ["user_id", "c596f97a-bfed-11e4-926c-705681abff85"], ["created_at", "2015-03-01 08:34:27.115752"], ["updated_at", "2015-03-01 08:34:27.115752"], ["token", "NvWz2Z0wexJ_TSSDmFK8hPHlKJ62LZNrAFm0rr6m9iM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.120463"], ["updated_at", "2015-03-01 08:34:27.120463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c596f97a-bfed-11e4-926c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5986508-bfed-11e4-98d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c596f97a-bfed-11e4-926c-705681abff85"], ["organization_id", "c5986508-bfed-11e4-98d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:27.124666"], ["updated_at", "2015-03-01 08:34:27.124666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'c5986508-bfed-11e4-98d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "c5986508-bfed-11e4-98d8-705681abff85"], ["created_at", "2015-03-01 08:34:27.128087"], ["updated_at", "2015-03-01 08:34:27.128087"], ["token", "hJFCiqdEFJu4AHKgLlhWj6HXiLyRHpd9nTiB86q3nuE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/c59991da-bfed-11e4-ac74-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"c59991da-bfed-11e4-ac74-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.133379' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NvWz2Z0wexJ_TSSDmFK8hPHlKJ62LZNrAFm0rr6m9iM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.135163"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.136310"], ["id", "c597b93c-bfed-11e4-8df9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c596f97a-bfed-11e4-926c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c596f97a-bfed-11e4-926c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c596f97a-bfed-11e4-926c-705681abff85' LIMIT 1 [["organization_id", "c5986508-bfed-11e4-98d8-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "c5986508-bfed-11e4-98d8-705681abff85"], ["id", "c59991da-bfed-11e4-ac74-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c5986508-bfed-11e4-98d8-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."id" != 'c59991da-bfed-11e4-ac74-705681abff85' AND "clubhouse_invitations"."organization_id" = 'c5986508-bfed-11e4-98d8-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 08:34:27.147053"], ["id", "c59991da-bfed-11e4-ac74-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$azntoXARP9RAAcsMo.Yblec6nkcLSJ4KL/k7O.WAgAXCZInfruVHy"], ["created_at", "2015-03-01 08:34:27.156809"], ["updated_at", "2015-03-01 08:34:27.156809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.158815"], ["user_id", "c59e04ea-bfed-11e4-b89a-705681abff85"], ["created_at", "2015-03-01 08:34:27.159679"], ["updated_at", "2015-03-01 08:34:27.159679"], ["token", "PrTCsHn38NBDEJJaTo0s6zjIQAHaYqwGM-tpOJoy6oM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.162958"], ["updated_at", "2015-03-01 08:34:27.162958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c59e04ea-bfed-11e4-b89a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c59edf96-bfed-11e4-b26c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c59e04ea-bfed-11e4-b89a-705681abff85"], ["organization_id", "c59edf96-bfed-11e4-b26c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:27.166019"], ["updated_at", "2015-03-01 08:34:27.166019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'c59edf96-bfed-11e4-b26c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "c59edf96-bfed-11e4-b26c-705681abff85"], ["created_at", "2015-03-01 08:34:27.169558"], ["updated_at", "2015-03-01 08:34:27.169558"], ["token", "n7brjDNfaIj_ArE8JEkLlp6Tivw2bXKYhW7SchbuyxU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$bx5YWtV4vA9WwcuGuGxL2uJxq0q2gaVdP2bAthiw2oW60HyT3ros."], ["created_at", "2015-03-01 08:34:27.183351"], ["updated_at", "2015-03-01 08:34:27.183351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.185115"], ["user_id", "c5a2020c-bfed-11e4-bec5-705681abff85"], ["created_at", "2015-03-01 08:34:27.185905"], ["updated_at", "2015-03-01 08:34:27.185905"], ["token", "6JoD-WJYs6DTiqmMUi0HNivvDhvNbrOvM-Q6TB8ixvc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.190002"], ["updated_at", "2015-03-01 08:34:27.190002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5a2020c-bfed-11e4-bec5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5a3015c-bfed-11e4-a2e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5a2020c-bfed-11e4-bec5-705681abff85"], ["organization_id", "c5a3015c-bfed-11e4-a2e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:27.193087"], ["updated_at", "2015-03-01 08:34:27.193087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'c5a3015c-bfed-11e4-a2e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "c5a3015c-bfed-11e4-a2e9-705681abff85"], ["created_at", "2015-03-01 08:34:27.196279"], ["updated_at", "2015-03-01 08:34:27.196279"], ["token", "YwtgISojY66ATARBVIP6LILCLArZP1E5czKVx3-BeKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/c5a3f99a-bfed-11e4-ae7d-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"c5a3f99a-bfed-11e4-ae7d-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.200976' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6JoD-WJYs6DTiqmMUi0HNivvDhvNbrOvM-Q6TB8ixvc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.202591"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.203517"], ["id", "c5a27da4-bfed-11e4-ae38-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5a2020c-bfed-11e4-bec5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5a2020c-bfed-11e4-bec5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c5a2020c-bfed-11e4-bec5-705681abff85' LIMIT 1 [["organization_id", "c5a3015c-bfed-11e4-a2e9-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "c5a3015c-bfed-11e4-a2e9-705681abff85"], ["id", "c5a3f99a-bfed-11e4-ae7d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c5a3015c-bfed-11e4-a2e9-705681abff85"]] Completed 200 OK in 10ms (Views: 1.3ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$rNOuwpLROAPt.VbPZHo3.u/nnvU5ei7jNgIE90RF39euK6w3fyy6q"], ["created_at", "2015-03-01 08:34:27.217505"], ["updated_at", "2015-03-01 08:34:27.217505"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.219930"], ["user_id", "c5a739e8-bfed-11e4-aa75-705681abff85"], ["created_at", "2015-03-01 08:34:27.221114"], ["updated_at", "2015-03-01 08:34:27.221114"], ["token", "uui10glydR1DgAGs6CIVoH4e-GICSFG_A1Ut0tPao1g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.224434"], ["updated_at", "2015-03-01 08:34:27.224434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5a739e8-bfed-11e4-aa75-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5a84162-bfed-11e4-8125-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5a739e8-bfed-11e4-aa75-705681abff85"], ["organization_id", "c5a84162-bfed-11e4-8125-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:27.227513"], ["updated_at", "2015-03-01 08:34:27.227513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'c5a84162-bfed-11e4-8125-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "c5a84162-bfed-11e4-8125-705681abff85"], ["created_at", "2015-03-01 08:34:27.230720"], ["updated_at", "2015-03-01 08:34:27.230720"], ["token", "a4uyyKv3ypV5UtmwPhYsEywdrrUEn0pjOr5RAuI2llY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$DHwZOgrvY1azICWgqiTjMee.yvAqwaAtPs7U2vg2m9p5Sa3fvpf.S"], ["created_at", "2015-03-01 08:34:27.243430"], ["updated_at", "2015-03-01 08:34:27.243430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.245012"], ["user_id", "c5ab2b5c-bfed-11e4-bdc9-705681abff85"], ["created_at", "2015-03-01 08:34:27.245777"], ["updated_at", "2015-03-01 08:34:27.245777"], ["token", "JpKrfRTmbC37N3tfDLSiJI5PxZnfYcVWGSSEJMkXm8g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.249528"], ["updated_at", "2015-03-01 08:34:27.249528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5ab2b5c-bfed-11e4-bdc9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5ac1c06-bfed-11e4-956f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5ab2b5c-bfed-11e4-bdc9-705681abff85"], ["organization_id", "c5ac1c06-bfed-11e4-956f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:27.253696"], ["updated_at", "2015-03-01 08:34:27.253696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'c5ac1c06-bfed-11e4-956f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "c5ac1c06-bfed-11e4-956f-705681abff85"], ["created_at", "2015-03-01 08:34:27.257188"], ["updated_at", "2015-03-01 08:34:27.257188"], ["token", "mJEOQvJZR-KoBT1DErZ5-S1on5YLQUTIS0QErq882ZM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$JcQf4RcoclBcwE3p0w3V5./HLz415BzXRzVIRKtvz4OIf0r97Jmfe"], ["created_at", "2015-03-01 08:34:27.261519"], ["updated_at", "2015-03-01 08:34:27.261519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.264480"], ["updated_at", "2015-03-01 08:34:27.264480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5adeb08-bfed-11e4-933a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5ae5d72-bfed-11e4-a432-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5adeb08-bfed-11e4-933a-705681abff85"], ["organization_id", "c5ae5d72-bfed-11e4-a432-705681abff85"], ["created_at", "2015-03-01 08:34:27.267752"], ["updated_at", "2015-03-01 08:34:27.267752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.272946' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JpKrfRTmbC37N3tfDLSiJI5PxZnfYcVWGSSEJMkXm8g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.274503"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.275439"], ["id", "c5ab8b88-bfed-11e4-a12b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5ab2b5c-bfed-11e4-bdc9-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5ab2b5c-bfed-11e4-bdc9-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c5ab2b5c-bfed-11e4-bdc9-705681abff85' LIMIT 1 [["organization_id", "c5ac1c06-bfed-11e4-956f-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "c5ac1c06-bfed-11e4-956f-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('c5ac1c06-bfed-11e4-956f-705681abff85') Completed 200 OK in 15ms (Views: 6.4ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$4lWUTRSv5cAWw76ti5GnEeyPXnT.L51fKckCbL0aXPt61L9nM3crC"], ["created_at", "2015-03-01 08:34:27.293721"], ["updated_at", "2015-03-01 08:34:27.293721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.295293"], ["user_id", "c5b2d7ee-bfed-11e4-a6be-705681abff85"], ["created_at", "2015-03-01 08:34:27.296043"], ["updated_at", "2015-03-01 08:34:27.296043"], ["token", "5isDs3ta8BpslHnF6k-d2HnfHO47VtJwn5pczCu47o4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.299279"], ["updated_at", "2015-03-01 08:34:27.299279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5b2d7ee-bfed-11e4-a6be-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5b3ac6e-bfed-11e4-8c4d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5b2d7ee-bfed-11e4-a6be-705681abff85"], ["organization_id", "c5b3ac6e-bfed-11e4-8c4d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:27.302860"], ["updated_at", "2015-03-01 08:34:27.302860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'c5b3ac6e-bfed-11e4-8c4d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "c5b3ac6e-bfed-11e4-8c4d-705681abff85"], ["created_at", "2015-03-01 08:34:27.306226"], ["updated_at", "2015-03-01 08:34:27.306226"], ["token", "gcSpzM6KcHkdngqEawIugBFQ6YUKjUzLoUIlFdQy8hY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$kapGwAEasLdc24MAiHIvjOHMpzX5Bx.eOzcJ4lDvQwERWW1i/UZqK"], ["created_at", "2015-03-01 08:34:27.310510"], ["updated_at", "2015-03-01 08:34:27.310510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.313523"], ["updated_at", "2015-03-01 08:34:27.313523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5b563a6-bfed-11e4-b31d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5b5d99e-bfed-11e4-be3c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5b563a6-bfed-11e4-b31d-705681abff85"], ["organization_id", "c5b5d99e-bfed-11e4-be3c-705681abff85"], ["created_at", "2015-03-01 08:34:27.316569"], ["updated_at", "2015-03-01 08:34:27.316569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (3.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.331878"], ["updated_at", "2015-03-01 08:34:27.331878"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'c5bad610-bfed-11e4-ae5d-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "c5bad610-bfed-11e4-ae5d-705681abff85"], ["created_at", "2015-03-01 08:34:27.352646"], ["updated_at", "2015-03-01 08:34:27.352646"], ["token", "sd52z0c56SQo6Ybd3e6i0PewCJCMkePGxqHUta3dUD4"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.4ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.9ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.373203"], ["updated_at", "2015-03-01 08:34:27.373203"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'c5bf109a-bfed-11e4-aa1f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "c5bf109a-bfed-11e4-aa1f-705681abff85"], ["created_at", "2015-03-01 08:34:27.379687"], ["updated_at", "2015-03-01 08:34:27.379687"], ["token", "KisJjEH86kfpy4ZqDnz2fldmyZ0mV-x-LEG7aMjI1bE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c5bf109a-bfed-11e4-aa1f-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'c5bf109a-bfed-11e4-aa1f-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c5bf109a-bfed-11e4-aa1f-705681abff86"]] Clubhouse::Invitation Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'c5bf109a-bfed-11e4-aa1f-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$GWgpmoxqmMNNj2dzLvgxfesruRXfKsp3ouBlyZl.yKGez7QvMBH5S"], ["created_at", "2015-03-01 08:34:27.421259"], ["updated_at", "2015-03-01 08:34:27.421259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.422896"], ["user_id", "c5c64eaa-bfed-11e4-b680-705681abff85"], ["created_at", "2015-03-01 08:34:27.423936"], ["updated_at", "2015-03-01 08:34:27.423936"], ["token", "mMtFqpj2klAGyaK38m41zw4asyzX5jBD_jFxjljcih4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.427443"], ["updated_at", "2015-03-01 08:34:27.427443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5c64eaa-bfed-11e4-b680-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5c74102-bfed-11e4-9cad-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5c64eaa-bfed-11e4-b680-705681abff85"], ["organization_id", "c5c74102-bfed-11e4-9cad-705681abff85"], ["created_at", "2015-03-01 08:34:27.431226"], ["updated_at", "2015-03-01 08:34:27.431226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Yg.7TjEfWK7zJfz0BlmTf.fyt8qEvPgUyiPoaaCIFlTw0iFJDRH.6"], ["created_at", "2015-03-01 08:34:27.452642"], ["updated_at", "2015-03-01 08:34:27.452642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.454445"], ["user_id", "c5cb1c46-bfed-11e4-8582-705681abff85"], ["created_at", "2015-03-01 08:34:27.455205"], ["updated_at", "2015-03-01 08:34:27.455205"], ["token", "Jgy2k5sdvKjjCr99MbT-PphkYqvd02JmocnB72QppbQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.458648"], ["updated_at", "2015-03-01 08:34:27.458648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5cb1c46-bfed-11e4-8582-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5cc011a-bfed-11e4-838a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5cb1c46-bfed-11e4-8582-705681abff85"], ["organization_id", "c5cc011a-bfed-11e4-838a-705681abff85"], ["created_at", "2015-03-01 08:34:27.461855"], ["updated_at", "2015-03-01 08:34:27.461855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.466833' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Jgy2k5sdvKjjCr99MbT-PphkYqvd02JmocnB72QppbQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.468307"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.469431"], ["id", "c5cb833e-bfed-11e4-852a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5cb1c46-bfed-11e4-8582-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$e74K0zgTd3nv2FZlqG968uJy94bsHlodgrMW6PNnoDag8/YDHY0TC"], ["created_at", "2015-03-01 08:34:27.482807"], ["updated_at", "2015-03-01 08:34:27.482807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.484859"], ["user_id", "c5cfb6d4-bfed-11e4-9f8f-705681abff85"], ["created_at", "2015-03-01 08:34:27.485726"], ["updated_at", "2015-03-01 08:34:27.485726"], ["token", "ZED36i2DAQJa7HdGrhsa31TDxGnBaPkKnB5-saczWqI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.489253"], ["updated_at", "2015-03-01 08:34:27.489253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5cfb6d4-bfed-11e4-9f8f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5d0aa08-bfed-11e4-8c8b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5cfb6d4-bfed-11e4-9f8f-705681abff85"], ["organization_id", "c5d0aa08-bfed-11e4-8c8b-705681abff85"], ["created_at", "2015-03-01 08:34:27.492349"], ["updated_at", "2015-03-01 08:34:27.492349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.497441' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZED36i2DAQJa7HdGrhsa31TDxGnBaPkKnB5-saczWqI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.498832"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.499781"], ["id", "c5d02f1a-bfed-11e4-9168-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5cfb6d4-bfed-11e4-9f8f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.503800"], ["updated_at", "2015-03-01 08:34:27.503800"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c5d2e444-bfed-11e4-832a-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5cfb6d4-bfed-11e4-9f8f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5d2e444-bfed-11e4-832a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5cfb6d4-bfed-11e4-9f8f-705681abff85"], ["admin", "t"], ["organization_id", "c5d2e444-bfed-11e4-832a-705681abff85"], ["created_at", "2015-03-01 08:34:27.508711"], ["updated_at", "2015-03-01 08:34:27.508711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$SBbbQnneDs9dXoYk9fmAWu21fjh3vb/tzkNUZuUw5Pxn5DFyjjJUm"], ["created_at", "2015-03-01 08:34:27.519412"], ["updated_at", "2015-03-01 08:34:27.519412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.521153"], ["user_id", "c5d54bbc-bfed-11e4-b3b0-705681abff85"], ["created_at", "2015-03-01 08:34:27.521921"], ["updated_at", "2015-03-01 08:34:27.521921"], ["token", "rjNYSj6se1Q7UwLUWxFXpoISHQAcN19YMSDzBbQZnhA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.525101"], ["updated_at", "2015-03-01 08:34:27.525101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5d54bbc-bfed-11e4-b3b0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5d62186-bfed-11e4-b555-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5d54bbc-bfed-11e4-b3b0-705681abff85"], ["organization_id", "c5d62186-bfed-11e4-b555-705681abff85"], ["created_at", "2015-03-01 08:34:27.528064"], ["updated_at", "2015-03-01 08:34:27.528064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Py44OGrLRLXRksElBE.jN.yf0Iee5fSzvHFgyp01FA7l/Hujs/R36"], ["created_at", "2015-03-01 08:34:27.540272"], ["updated_at", "2015-03-01 08:34:27.540272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.541861"], ["user_id", "c5d877c4-bfed-11e4-9c54-705681abff85"], ["created_at", "2015-03-01 08:34:27.542584"], ["updated_at", "2015-03-01 08:34:27.542584"], ["token", "7h6WgkccRegJE8YQBBsnyFXzdA_iDraNlL3Jy19zxio"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.545937"], ["updated_at", "2015-03-01 08:34:27.545937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5d877c4-bfed-11e4-9c54-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5d9504a-bfed-11e4-ae18-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5d877c4-bfed-11e4-9c54-705681abff85"], ["organization_id", "c5d9504a-bfed-11e4-ae18-705681abff85"], ["created_at", "2015-03-01 08:34:27.549022"], ["updated_at", "2015-03-01 08:34:27.549022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.554679' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7h6WgkccRegJE8YQBBsnyFXzdA_iDraNlL3Jy19zxio"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.556121"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.557062"], ["id", "c5d8d6c4-bfed-11e4-82f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5d877c4-bfed-11e4-9c54-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5d877c4-bfed-11e4-9c54-705681abff85"], ["name", "org-9"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c5d9504a-bfed-11e4-ae18-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$u37v.nYXEA0plJBxEwBIq.Ocvo9Df2CwcKVvAnygbD3xUZNZ9uoyu"], ["created_at", "2015-03-01 08:34:27.571478"], ["updated_at", "2015-03-01 08:34:27.571478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.573332"], ["user_id", "c5dd3ffc-bfed-11e4-8b4d-705681abff85"], ["created_at", "2015-03-01 08:34:27.574088"], ["updated_at", "2015-03-01 08:34:27.574088"], ["token", "ntkNysXA7HabRGPOlFk49qTc3dD5D3qlrb3mZoB1NDQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.577374"], ["updated_at", "2015-03-01 08:34:27.577374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5dd3ffc-bfed-11e4-8b4d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5de1c4c-bfed-11e4-846f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5dd3ffc-bfed-11e4-8b4d-705681abff85"], ["organization_id", "c5de1c4c-bfed-11e4-846f-705681abff85"], ["created_at", "2015-03-01 08:34:27.580424"], ["updated_at", "2015-03-01 08:34:27.580424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.585010' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ntkNysXA7HabRGPOlFk49qTc3dD5D3qlrb3mZoB1NDQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.586600"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.587577"], ["id", "c5dda3f2-bfed-11e4-bb8f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5dd3ffc-bfed-11e4-8b4d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5dd3ffc-bfed-11e4-8b4d-705681abff85"], ["name", "org-10"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c5de1c4c-bfed-11e4-846f-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:34:27.592920"], ["id", "c5de1c4c-bfed-11e4-846f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$2ADp5npI/ccht4LPtHIyLuOFgTn/MKG59eK0qJ0DUGfbiNeOj8zBy"], ["created_at", "2015-03-01 08:34:27.601103"], ["updated_at", "2015-03-01 08:34:27.601103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.603016"], ["user_id", "c5e1bfe6-bfed-11e4-864b-705681abff85"], ["created_at", "2015-03-01 08:34:27.603887"], ["updated_at", "2015-03-01 08:34:27.603887"], ["token", "YIaDqI2t0KJi1AHQW6w_GWZUsjTO3iIZDVOgYFg6Imo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.607859"], ["updated_at", "2015-03-01 08:34:27.607859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5e1bfe6-bfed-11e4-864b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5e2d318-bfed-11e4-9cda-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5e1bfe6-bfed-11e4-864b-705681abff85"], ["organization_id", "c5e2d318-bfed-11e4-9cda-705681abff85"], ["created_at", "2015-03-01 08:34:27.612389"], ["updated_at", "2015-03-01 08:34:27.612389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$G5y2cnHE/DeKZB1GQxxuCejhDMcbfzGxCGckmkRbsR5NgHgnJyIvS"], ["created_at", "2015-03-01 08:34:27.624957"], ["updated_at", "2015-03-01 08:34:27.624957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.626797"], ["user_id", "c5e566fa-bfed-11e4-9f85-705681abff85"], ["created_at", "2015-03-01 08:34:27.627651"], ["updated_at", "2015-03-01 08:34:27.627651"], ["token", "fBTCQArOpmhPSj-cg1JhBVClh6vlWcH4ltYnMfqpris"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.631594"], ["updated_at", "2015-03-01 08:34:27.631594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5e566fa-bfed-11e4-9f85-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5e668f2-bfed-11e4-bc0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5e566fa-bfed-11e4-9f85-705681abff85"], ["organization_id", "c5e668f2-bfed-11e4-bc0f-705681abff85"], ["created_at", "2015-03-01 08:34:27.635205"], ["updated_at", "2015-03-01 08:34:27.635205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.641801' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fBTCQArOpmhPSj-cg1JhBVClh6vlWcH4ltYnMfqpris"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.643523"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.644677"], ["id", "c5e5d554-bfed-11e4-9b63-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 8ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$Y2ISYigklY3ab9BZF0kiN.U4I12UnVDZ.8Sc8sHlvuNKPJXMZE45u"], ["created_at", "2015-03-01 08:34:27.657136"], ["updated_at", "2015-03-01 08:34:27.657136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.659258"], ["user_id", "c5ea5c28-bfed-11e4-bbe3-705681abff85"], ["created_at", "2015-03-01 08:34:27.660054"], ["updated_at", "2015-03-01 08:34:27.660054"], ["token", "2pdPTvOXfh0fr5LZjUGS9Bgalp7G98mlWmPrz1SEpKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.663412"], ["updated_at", "2015-03-01 08:34:27.663412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5ea5c28-bfed-11e4-bbe3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5eb3d96-bfed-11e4-b503-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5ea5c28-bfed-11e4-bbe3-705681abff85"], ["organization_id", "c5eb3d96-bfed-11e4-b503-705681abff85"], ["created_at", "2015-03-01 08:34:27.666527"], ["updated_at", "2015-03-01 08:34:27.666527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-13" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-13", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.671416' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2pdPTvOXfh0fr5LZjUGS9Bgalp7G98mlWmPrz1SEpKg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.672940"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.673891"], ["id", "c5eac352-bfed-11e4-9751-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-13"]] Completed 200 OK in 5ms (ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Cscavc2TGrRweZvxrqrA0OCOY6RKP6SUUEqEYuRTzupXqPsOmMlCW"], ["created_at", "2015-03-01 08:34:27.681198"], ["updated_at", "2015-03-01 08:34:27.681198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.682712"], ["user_id", "c5edf69e-bfed-11e4-89d5-705681abff85"], ["created_at", "2015-03-01 08:34:27.683503"], ["updated_at", "2015-03-01 08:34:27.683503"], ["token", "glzQ9m8m2KjUAK5rOqWxLn2zd5ZoYZKuk9TYh0GS0PA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.686771"], ["updated_at", "2015-03-01 08:34:27.686771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5edf69e-bfed-11e4-89d5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5eecd62-bfed-11e4-8225-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5edf69e-bfed-11e4-89d5-705681abff85"], ["organization_id", "c5eecd62-bfed-11e4-8225-705681abff85"], ["created_at", "2015-03-01 08:34:27.690076"], ["updated_at", "2015-03-01 08:34:27.690076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-14" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.695488' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "glzQ9m8m2KjUAK5rOqWxLn2zd5ZoYZKuk9TYh0GS0PA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.696884"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.697826"], ["id", "c5ee565c-bfed-11e4-9695-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5edf69e-bfed-11e4-89d5-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5edf69e-bfed-11e4-89d5-705681abff85"], ["name", "org-14"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "c5eecd62-bfed-11e4-8225-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$.SPi49ueK0dlp6W8dCyMC.Jy79Bt/NPnL5ODgC8bPwlGBIe/h2IXa"], ["created_at", "2015-03-01 08:34:27.709849"], ["updated_at", "2015-03-01 08:34:27.709849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.711604"], ["user_id", "c5f256b2-bfed-11e4-85ba-705681abff85"], ["created_at", "2015-03-01 08:34:27.712981"], ["updated_at", "2015-03-01 08:34:27.712981"], ["token", "b7Oo1UbeTMFcXKHUII7WFECG__usX9HJfHC6g3Crmug"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.716849"], ["updated_at", "2015-03-01 08:34:27.716849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5f256b2-bfed-11e4-85ba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5f3675a-bfed-11e4-b07c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5f256b2-bfed-11e4-85ba-705681abff85"], ["organization_id", "c5f3675a-bfed-11e4-b07c-705681abff85"], ["created_at", "2015-03-01 08:34:27.720251"], ["updated_at", "2015-03-01 08:34:27.720251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$8Vigr3sIuhbwfdeLdAFnjukA7xQAuiSGCutQwHpHVvBBNNhe65GDG"], ["created_at", "2015-03-01 08:34:27.734298"], ["updated_at", "2015-03-01 08:34:27.734298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.736229"], ["user_id", "c5f6182e-bfed-11e4-9cc4-705681abff85"], ["created_at", "2015-03-01 08:34:27.737088"], ["updated_at", "2015-03-01 08:34:27.737088"], ["token", "ym3JnMibQeFkHz9xNGIDcC3igJVYmsuOXrop6teBuLo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.740864"], ["updated_at", "2015-03-01 08:34:27.740864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5f6182e-bfed-11e4-9cc4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5f71512-bfed-11e4-b5f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5f6182e-bfed-11e4-9cc4-705681abff85"], ["organization_id", "c5f71512-bfed-11e4-b5f2-705681abff85"], ["created_at", "2015-03-01 08:34:27.744571"], ["updated_at", "2015-03-01 08:34:27.744571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c5f71512-bfed-11e4-b5f2-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"c5f71512-bfed-11e4-b5f2-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.750067' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ym3JnMibQeFkHz9xNGIDcC3igJVYmsuOXrop6teBuLo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.751827"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.753081"], ["id", "c5f6875a-bfed-11e4-a3b3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5f6182e-bfed-11e4-9cc4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5f6182e-bfed-11e4-9cc4-705681abff85"], ["id", "c5f71512-bfed-11e4-b5f2-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$2gwA1fUZIsgISrd8gXU9NO3h/81aeSIMpfqaWltaI0BGrREUF24De"], ["created_at", "2015-03-01 08:34:27.764088"], ["updated_at", "2015-03-01 08:34:27.764088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.766237"], ["user_id", "c5faa20e-bfed-11e4-b0a0-705681abff85"], ["created_at", "2015-03-01 08:34:27.767102"], ["updated_at", "2015-03-01 08:34:27.767102"], ["token", "CcfVvDoqVq2pow2rCteZZySPBFOkPYB2Xzy62yQ39rQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.770875"], ["updated_at", "2015-03-01 08:34:27.770875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5faa20e-bfed-11e4-b0a0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5fba6c2-bfed-11e4-9b2d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5faa20e-bfed-11e4-b0a0-705681abff85"], ["organization_id", "c5fba6c2-bfed-11e4-9b2d-705681abff85"], ["created_at", "2015-03-01 08:34:27.774300"], ["updated_at", "2015-03-01 08:34:27.774300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$wHBxxk7iolqi9v7QGHRv.ulTNzudVpVTbIQKX.JJqN39QhKMQdMiu"], ["created_at", "2015-03-01 08:34:27.787894"], ["updated_at", "2015-03-01 08:34:27.787894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.789591"], ["user_id", "c5fe427e-bfed-11e4-b074-705681abff85"], ["created_at", "2015-03-01 08:34:27.790378"], ["updated_at", "2015-03-01 08:34:27.790378"], ["token", "aNoPvPMu-og101y-UG1pOOdkVO9MKCPe5T2gJvdxpok"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.793733"], ["updated_at", "2015-03-01 08:34:27.793733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5fe427e-bfed-11e4-b074-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5ff1fe6-bfed-11e4-bb3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c5fe427e-bfed-11e4-b074-705681abff85"], ["organization_id", "c5ff1fe6-bfed-11e4-bb3a-705681abff85"], ["created_at", "2015-03-01 08:34:27.796839"], ["updated_at", "2015-03-01 08:34:27.796839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-18" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.802017' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aNoPvPMu-og101y-UG1pOOdkVO9MKCPe5T2gJvdxpok"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.803584"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.805352"], ["id", "c5fea642-bfed-11e4-bde2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5fe427e-bfed-11e4-b074-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c5fe427e-bfed-11e4-b074-705681abff85"], ["name", "org-18"]] Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$JNxpnE5.RM7GsQoRTBSXwOjdRB9LXxiMKnFY9AANszS8y5DZt6Qlm"], ["created_at", "2015-03-01 08:34:27.816290"], ["updated_at", "2015-03-01 08:34:27.816290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.818446"], ["user_id", "c6029cde-bfed-11e4-9fe2-705681abff85"], ["created_at", "2015-03-01 08:34:27.819415"], ["updated_at", "2015-03-01 08:34:27.819415"], ["token", "krp9UxBED_F5_zmBwDPAG-3RNukmyS9FViru4yQ7PBo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.823905"], ["updated_at", "2015-03-01 08:34:27.823905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6029cde-bfed-11e4-9fe2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c603c0be-bfed-11e4-8a06-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6029cde-bfed-11e4-9fe2-705681abff85"], ["organization_id", "c603c0be-bfed-11e4-8a06-705681abff85"], ["created_at", "2015-03-01 08:34:27.827485"], ["updated_at", "2015-03-01 08:34:27.827485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$Xt0zByqewWpnFfuiwfEZKebBTF8EOd6181v8Iq2wcYmAwOHdensXq"], ["created_at", "2015-03-01 08:34:27.840038"], ["updated_at", "2015-03-01 08:34:27.840038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.841693"], ["user_id", "c606359c-bfed-11e4-bb35-705681abff85"], ["created_at", "2015-03-01 08:34:27.842472"], ["updated_at", "2015-03-01 08:34:27.842472"], ["token", "nJkudi2CVraP7LhLyUZ4NQ8tpMp1utvDcG4thrTz0Ys"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.845759"], ["updated_at", "2015-03-01 08:34:27.845759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c606359c-bfed-11e4-bb35-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c607108e-bfed-11e4-921d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c606359c-bfed-11e4-bb35-705681abff85"], ["organization_id", "c607108e-bfed-11e4-921d-705681abff85"], ["created_at", "2015-03-01 08:34:27.849046"], ["updated_at", "2015-03-01 08:34:27.849046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/c607108e-bfed-11e4-921d-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"c607108e-bfed-11e4-921d-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.854085' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nJkudi2CVraP7LhLyUZ4NQ8tpMp1utvDcG4thrTz0Ys"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.855518"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.856451"], ["id", "c6069848-bfed-11e4-8619-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c606359c-bfed-11e4-bb35-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c606359c-bfed-11e4-bb35-705681abff85"], ["id", "c607108e-bfed-11e4-921d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "c607108e-bfed-11e4-921d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$fOh5ifURzea9vgojFDLwj.dZLMElAbtYExyiPL.tTomUUM0msZ1wW"], ["created_at", "2015-03-01 08:34:27.866637"], ["updated_at", "2015-03-01 08:34:27.866637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.868165"], ["user_id", "c60a427c-bfed-11e4-b537-705681abff85"], ["created_at", "2015-03-01 08:34:27.868894"], ["updated_at", "2015-03-01 08:34:27.868894"], ["token", "53-mnuHX8ArMFqInrl1SEnjZs2rgGxO5pn6JJSFy-Fc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.872564"], ["updated_at", "2015-03-01 08:34:27.872564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c60a427c-bfed-11e4-b537-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c60b29d0-bfed-11e4-bf21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c60a427c-bfed-11e4-b537-705681abff85"], ["organization_id", "c60b29d0-bfed-11e4-bf21-705681abff85"], ["created_at", "2015-03-01 08:34:27.875845"], ["updated_at", "2015-03-01 08:34:27.875845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$1l8UU58K.b6xq.Pky4s3Q.sfWY/BbyNd2pq/kJ1/P4fCDIqHyyiqq"], ["created_at", "2015-03-01 08:34:27.889440"], ["updated_at", "2015-03-01 08:34:27.889440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.891839"], ["user_id", "c60dcfaa-bfed-11e4-94aa-705681abff85"], ["created_at", "2015-03-01 08:34:27.892779"], ["updated_at", "2015-03-01 08:34:27.892779"], ["token", "H0McPJdBqHVH9pG-u6bWdBH1Nz3YqwzVfVa8t-0e-rU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.896280"], ["updated_at", "2015-03-01 08:34:27.896280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c60dcfaa-bfed-11e4-94aa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c60ec61c-bfed-11e4-96c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c60dcfaa-bfed-11e4-94aa-705681abff85"], ["organization_id", "c60ec61c-bfed-11e4-96c7-705681abff85"], ["created_at", "2015-03-01 08:34:27.900086"], ["updated_at", "2015-03-01 08:34:27.900086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$t97GFe10rPNngbQbF4nwd.lBw0T3tHScd6XQ3HlMLz/6hs6JTo2Ja"], ["created_at", "2015-03-01 08:34:27.912622"], ["updated_at", "2015-03-01 08:34:27.912622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.914182"], ["user_id", "c6114766-bfed-11e4-ad00-705681abff85"], ["created_at", "2015-03-01 08:34:27.915041"], ["updated_at", "2015-03-01 08:34:27.915041"], ["token", "V7eRRkAQi8OmJ0FXt2ZURmrkKZRFNep6v5TCi64SAo4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.918414"], ["updated_at", "2015-03-01 08:34:27.918414"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6114766-bfed-11e4-ad00-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6125822-bfed-11e4-b95a-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6114766-bfed-11e4-ad00-705681abff85"], ["organization_id", "c6125822-bfed-11e4-b95a-705681abff85"], ["created_at", "2015-03-01 08:34:27.926785"], ["updated_at", "2015-03-01 08:34:27.926785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c6125822-bfed-11e4-b95a-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"c6125822-bfed-11e4-b95a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.934320' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "V7eRRkAQi8OmJ0FXt2ZURmrkKZRFNep6v5TCi64SAo4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.935761"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.936840"], ["id", "c611aa76-bfed-11e4-9447-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6114766-bfed-11e4-ad00-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6114766-bfed-11e4-ad00-705681abff85"], ["id", "c6125822-bfed-11e4-b95a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c6125822-bfed-11e4-b95a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$Ymhvdoq/IuXAy6XDx12nZucGgCin6NukcsGT1F4KnKPt6gxNzeCcO"], ["created_at", "2015-03-01 08:34:27.949675"], ["updated_at", "2015-03-01 08:34:27.949675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.951265"], ["user_id", "c616efcc-bfed-11e4-b2e9-705681abff85"], ["created_at", "2015-03-01 08:34:27.952041"], ["updated_at", "2015-03-01 08:34:27.952041"], ["token", "4CgJZZ6LKERBrhhYlR8fAld2TaF6u7A5J1IDY7JMnlk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.955335"], ["updated_at", "2015-03-01 08:34:27.955335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c616efcc-bfed-11e4-b2e9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c617c884-bfed-11e4-8930-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c616efcc-bfed-11e4-b2e9-705681abff85"], ["organization_id", "c617c884-bfed-11e4-8930-705681abff85"], ["created_at", "2015-03-01 08:34:27.958433"], ["updated_at", "2015-03-01 08:34:27.958433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c617c884-bfed-11e4-8930-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:27 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"c617c884-bfed-11e4-8930-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:27.963059' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4CgJZZ6LKERBrhhYlR8fAld2TaF6u7A5J1IDY7JMnlk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:27.964449"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:27.965633"], ["id", "c6174f44-bfed-11e4-ba90-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c616efcc-bfed-11e4-b2e9-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c616efcc-bfed-11e4-b2e9-705681abff85"], ["id", "c617c884-bfed-11e4-8930-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c617c884-bfed-11e4-8930-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:34:27.973489"], ["id", "c617c884-bfed-11e4-8930-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$OMy4kO9QLbVXxlQIB.6ubOLKKaq3fGJRJofEeSVgtZuN0Np9jolue"], ["created_at", "2015-03-01 08:34:27.981319"], ["updated_at", "2015-03-01 08:34:27.981319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:27.983007"], ["user_id", "c61bc4de-bfed-11e4-8e6a-705681abff85"], ["created_at", "2015-03-01 08:34:27.983807"], ["updated_at", "2015-03-01 08:34:27.983807"], ["token", "5wWcQl-_szQmRH9VkQ0a9FZnTm_u-KAkwZD_nkXlV3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:27.987051"], ["updated_at", "2015-03-01 08:34:27.987051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c61bc4de-bfed-11e4-8e6a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c61c9f94-bfed-11e4-b2eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c61bc4de-bfed-11e4-8e6a-705681abff85"], ["organization_id", "c61c9f94-bfed-11e4-b2eb-705681abff85"], ["created_at", "2015-03-01 08:34:27.990537"], ["updated_at", "2015-03-01 08:34:27.990537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$eEHZuLDGAglwM6qNqxgT.u09UNQIhwNnDxCn8d3ld.5Pby/1qmCc."], ["created_at", "2015-03-01 08:34:27.996207"], ["updated_at", "2015-03-01 08:34:27.996207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.000837"], ["updated_at", "2015-03-01 08:34:28.000837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c61e13c4-bfed-11e4-8d30-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c61ebcc0-bfed-11e4-9b9f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c61e13c4-bfed-11e4-8d30-705681abff85"], ["organization_id", "c61ebcc0-bfed-11e4-9b9f-705681abff85"], ["created_at", "2015-03-01 08:34:28.004151"], ["updated_at", "2015-03-01 08:34:28.004151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.009258' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5wWcQl-_szQmRH9VkQ0a9FZnTm_u-KAkwZD_nkXlV3U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.011078"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.012011"], ["id", "c61c28e8-bfed-11e4-91ad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c61bc4de-bfed-11e4-8e6a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c61bc4de-bfed-11e4-8e6a-705681abff85"]] Completed 200 OK in 8ms (Views: 2.1ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$YvDAGHghzH.2e5.nTMxcPugaFCosos7LCss.MFXqMtsxsUjAzEvfq"], ["created_at", "2015-03-01 08:34:28.023182"], ["updated_at", "2015-03-01 08:34:28.023182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.024812"], ["user_id", "c6222630-bfed-11e4-a2af-705681abff85"], ["created_at", "2015-03-01 08:34:28.025570"], ["updated_at", "2015-03-01 08:34:28.025570"], ["token", "g7fNB4TNwrSuLojP5PXxCLT4NUpTx7uymluusXAMMqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.028894"], ["updated_at", "2015-03-01 08:34:28.028894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6222630-bfed-11e4-a2af-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6230d66-bfed-11e4-8f6b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6222630-bfed-11e4-a2af-705681abff85"], ["organization_id", "c6230d66-bfed-11e4-8f6b-705681abff85"], ["created_at", "2015-03-01 08:34:28.032372"], ["updated_at", "2015-03-01 08:34:28.032372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$GE6j/EjvPDQHqMxxVVt8eeyxMlL5SrUan0ChlEspDdlWgrGYKpatm"], ["created_at", "2015-03-01 08:34:28.036540"], ["updated_at", "2015-03-01 08:34:28.036540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.040406"], ["updated_at", "2015-03-01 08:34:28.040406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c624329a-bfed-11e4-801b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c624c6d8-bfed-11e4-b8b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c624329a-bfed-11e4-801b-705681abff85"], ["organization_id", "c624c6d8-bfed-11e4-b8b1-705681abff85"], ["created_at", "2015-03-01 08:34:28.043642"], ["updated_at", "2015-03-01 08:34:28.043642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$O6weQ08QKDeVvBCspH/UiuwJJgzsgNtaVDIX2rLW.ACqUgLmefzMe"], ["created_at", "2015-03-01 08:34:28.056352"], ["updated_at", "2015-03-01 08:34:28.056352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.060208"], ["updated_at", "2015-03-01 08:34:28.060208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6273f6c-bfed-11e4-8ae7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c627cb80-bfed-11e4-9f57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6273f6c-bfed-11e4-8ae7-705681abff85"], ["organization_id", "c627cb80-bfed-11e4-9f57-705681abff85"], ["created_at", "2015-03-01 08:34:28.062982"], ["updated_at", "2015-03-01 08:34:28.062982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6273f6c-bfed-11e4-8ae7-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c627cb80-bfed-11e4-9f57-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6273f6c-bfed-11e4-8ae7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c627cb80-bfed-11e4-9f57-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c627cb80-bfed-11e4-9f57-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6273f6c-bfed-11e4-8ae7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c627cb80-bfed-11e4-9f57-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.098559"], ["updated_at", "2015-03-01 08:34:28.098559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.112537"], ["updated_at", "2015-03-01 08:34:28.112537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.117026"], ["updated_at", "2015-03-01 08:34:28.117026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.142450"], ["updated_at", "2015-03-01 08:34:28.142450"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (7.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.156732"], ["updated_at", "2015-03-01 08:34:28.156732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c6368738-bfed-11e4-b7eb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$UKpe4QXvqFHRdlXFdMcVFeqvam5QB2BL.leUgKs5PsgEpY87ilcty"], ["created_at", "2015-03-01 08:34:28.163956"], ["updated_at", "2015-03-01 08:34:28.163956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$/TMbq8ubguAbNjUlwhMoBuCfiolNlhZFXSkgK7Oycocqh6Rj1xP9u"], ["created_at", "2015-03-01 08:34:28.169551"], ["updated_at", "2015-03-01 08:34:28.169551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.171251"], ["user_id", "c637aa3c-bfed-11e4-a387-705681abff85"], ["created_at", "2015-03-01 08:34:28.172023"], ["updated_at", "2015-03-01 08:34:28.172023"], ["token", "3pMEHdVY18algazahC9oKg42ocFHQQzmp4BqX6YVro8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.175916"], ["updated_at", "2015-03-01 08:34:28.175916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c637aa3c-bfed-11e4-a387-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c63970b0-bfed-11e4-b35a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c637aa3c-bfed-11e4-a387-705681abff85"], ["organization_id", "c63970b0-bfed-11e4-b35a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.179261"], ["updated_at", "2015-03-01 08:34:28.179261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6387d4a-bfed-11e4-9663-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c63970b0-bfed-11e4-b35a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6387d4a-bfed-11e4-9663-705681abff85"], ["organization_id", "c63970b0-bfed-11e4-b35a-705681abff85"], ["created_at", "2015-03-01 08:34:28.183017"], ["updated_at", "2015-03-01 08:34:28.183017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$H6FsE3xQ4hVDn/70uT49..Fm5GO99w4Mu2YqhSg497Tke25lRWJVu"], ["created_at", "2015-03-01 08:34:28.187501"], ["updated_at", "2015-03-01 08:34:28.187501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.189505"], ["user_id", "c63b423c-bfed-11e4-91a4-705681abff85"], ["created_at", "2015-03-01 08:34:28.190284"], ["updated_at", "2015-03-01 08:34:28.190284"], ["token", "yn3yEjOxGnMTzL1FcHAyCBAfAaJ5Kc9RDWnf6kyv4gc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'c63970b0-bfed-11e4-b35a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "c63970b0-bfed-11e4-b35a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.194160"], ["updated_at", "2015-03-01 08:34:28.194160"], ["token", "gbXq1j7KIQCD8IvGCxYxPVKj5dGbpSF6Tz2B1gudYD0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$8..6huvDhrThxWyGt5Stne83b72Jb4mWhUyJ..9LZNHIsw/Bptax6"], ["created_at", "2015-03-01 08:34:28.222115"], ["updated_at", "2015-03-01 08:34:28.222115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$xXbzSPCZ0ovxyWgR7R5lq.Qkd2C4nVK3vYlwi4gu.aN3EWgVKLDB2"], ["created_at", "2015-03-01 08:34:28.229720"], ["updated_at", "2015-03-01 08:34:28.229720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.232034"], ["user_id", "c6408328-bfed-11e4-914a-705681abff85"], ["created_at", "2015-03-01 08:34:28.233521"], ["updated_at", "2015-03-01 08:34:28.233521"], ["token", "TxdZBZOZW3o6D7AuP2d6darD2Xl9iOVH-DpW0sqJGuY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.238732"], ["updated_at", "2015-03-01 08:34:28.238732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6408328-bfed-11e4-914a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c64326f0-bfed-11e4-af9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6408328-bfed-11e4-914a-705681abff85"], ["organization_id", "c64326f0-bfed-11e4-af9b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.244230"], ["updated_at", "2015-03-01 08:34:28.244230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c641ba72-bfed-11e4-b44a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c64326f0-bfed-11e4-af9b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c641ba72-bfed-11e4-b44a-705681abff85"], ["organization_id", "c64326f0-bfed-11e4-af9b-705681abff85"], ["created_at", "2015-03-01 08:34:28.248044"], ["updated_at", "2015-03-01 08:34:28.248044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$WVQiuUXaiPw.x8UmRsZTOeFIM.6/pv9vrME1MI.xMxglsDtoIb0Wy"], ["created_at", "2015-03-01 08:34:28.255022"], ["updated_at", "2015-03-01 08:34:28.255022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.256713"], ["user_id", "c64586f2-bfed-11e4-8219-705681abff85"], ["created_at", "2015-03-01 08:34:28.257609"], ["updated_at", "2015-03-01 08:34:28.257609"], ["token", "MxMQNT9zBwvf-eN_kzLuLAZkIXVlh8dwKhcPy3XGVgw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'c64326f0-bfed-11e4-af9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "c64326f0-bfed-11e4-af9b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.263060"], ["updated_at", "2015-03-01 08:34:28.263060"], ["token", "w_IzMBPf0ip1W16EcgoXbxPuMYgFnAp0bHv71uZIFiI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.268745' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MxMQNT9zBwvf-eN_kzLuLAZkIXVlh8dwKhcPy3XGVgw"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.271674"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.273970"], ["id", "c6460514-bfed-11e4-99c7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c64586f2-bfed-11e4-8219-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c64586f2-bfed-11e4-8219-705681abff85"]]  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$ehzsaoPeDyiyFSXottog..wqFIehjyVtW6CpyvPpl.xaYsQEu3AZe"], ["created_at", "2015-03-01 08:34:28.292244"], ["updated_at", "2015-03-01 08:34:28.292244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$QPsk8gXOQvrlPTwdAhp9aes6wKWdr6.jVTDfUKZUsfn4PgAYkrttm"], ["created_at", "2015-03-01 08:34:28.297104"], ["updated_at", "2015-03-01 08:34:28.297104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.299481"], ["user_id", "c64b3778-bfed-11e4-b8dd-705681abff85"], ["created_at", "2015-03-01 08:34:28.300303"], ["updated_at", "2015-03-01 08:34:28.300303"], ["token", "Qy_jnfsdihDmRDfmFejth7q9Df5fIcSjMdC_onYCoX8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.303926"], ["updated_at", "2015-03-01 08:34:28.303926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c64b3778-bfed-11e4-b8dd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c64cfa90-bfed-11e4-8a03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c64b3778-bfed-11e4-b8dd-705681abff85"], ["organization_id", "c64cfa90-bfed-11e4-8a03-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.307398"], ["updated_at", "2015-03-01 08:34:28.307398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c64c0d1a-bfed-11e4-99ee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c64cfa90-bfed-11e4-8a03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c64c0d1a-bfed-11e4-99ee-705681abff85"], ["organization_id", "c64cfa90-bfed-11e4-8a03-705681abff85"], ["created_at", "2015-03-01 08:34:28.310632"], ["updated_at", "2015-03-01 08:34:28.310632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$8RNfb69P2Hs71yQpBng6DudGLKKJccg4qmBEHaqfqmUZ8Xfv3Cc.e"], ["created_at", "2015-03-01 08:34:28.316258"], ["updated_at", "2015-03-01 08:34:28.316258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.318789"], ["user_id", "c64eee90-bfed-11e4-a3ec-705681abff85"], ["created_at", "2015-03-01 08:34:28.319697"], ["updated_at", "2015-03-01 08:34:28.319697"], ["token", "qm6pToiTbgxRmleT_3lBt1X6vG-AfbGjL0H9yAmJzm4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'c64cfa90-bfed-11e4-8a03-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "c64cfa90-bfed-11e4-8a03-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.323888"], ["updated_at", "2015-03-01 08:34:28.323888"], ["token", "WerQV3GC8-wZmdUKrdmIPlHUijCKHp0XJzTLwtOlbeo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"WerQV3GC8-wZmdUKrdmIPlHUijCKHp0XJzTLwtOlbeo", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.329267' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qm6pToiTbgxRmleT_3lBt1X6vG-AfbGjL0H9yAmJzm4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (12.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.330672"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.331638"], ["id", "c64f6a6e-bfed-11e4-bcd0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c64eee90-bfed-11e4-a3ec-705681abff85"]] Clubhouse::Organization Load (0.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c64eee90-bfed-11e4-a3ec-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "WerQV3GC8-wZmdUKrdmIPlHUijCKHp0XJzTLwtOlbeo"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c64cfa90-bfed-11e4-8a03-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c64cfa90-bfed-11e4-8a03-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c64eee90-bfed-11e4-a3ec-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c64cfa90-bfed-11e4-8a03-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c64eee90-bfed-11e4-a3ec-705681abff85"], ["admin", "t"], ["organization_id", "c64cfa90-bfed-11e4-8a03-705681abff85"], ["created_at", "2015-03-01 08:34:28.362954"], ["updated_at", "2015-03-01 08:34:28.362954"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "c6500e7e-bfed-11e4-80c0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 45ms (Views: 7.6ms | ActiveRecord: 15.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$ShOZ6BeYv8FPC8NFeduwpeKrcMMlBzSUFDQ.ENp0xok8NpjvB0Nye"], ["created_at", "2015-03-01 08:34:28.383776"], ["updated_at", "2015-03-01 08:34:28.383776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$Ol3J8v5slcbsZCpS42RbHu8fJve.ERq2l9YkMyb3XZYY71tS0m5m6"], ["created_at", "2015-03-01 08:34:28.389272"], ["updated_at", "2015-03-01 08:34:28.389272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.391234"], ["user_id", "c65946ec-bfed-11e4-8154-705681abff85"], ["created_at", "2015-03-01 08:34:28.392312"], ["updated_at", "2015-03-01 08:34:28.392312"], ["token", "AE8UgUgz6mO7HKvKZDuaeNoFsDOCUgWI4Rpw__qMlcQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.396181"], ["updated_at", "2015-03-01 08:34:28.396181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c65946ec-bfed-11e4-8154-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c65b0f18-bfed-11e4-a3db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c65946ec-bfed-11e4-8154-705681abff85"], ["organization_id", "c65b0f18-bfed-11e4-a3db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.399632"], ["updated_at", "2015-03-01 08:34:28.399632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c65a0aaa-bfed-11e4-afcd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c65b0f18-bfed-11e4-a3db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c65a0aaa-bfed-11e4-afcd-705681abff85"], ["organization_id", "c65b0f18-bfed-11e4-a3db-705681abff85"], ["created_at", "2015-03-01 08:34:28.402683"], ["updated_at", "2015-03-01 08:34:28.402683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.407976' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AE8UgUgz6mO7HKvKZDuaeNoFsDOCUgWI4Rpw__qMlcQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.409371"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.410358"], ["id", "c65a8566-bfed-11e4-a588-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c65946ec-bfed-11e4-8154-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c65946ec-bfed-11e4-8154-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c65946ec-bfed-11e4-8154-705681abff85' LIMIT 1 [["organization_id", "c65b0f18-bfed-11e4-a3db-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "c65b0f18-bfed-11e4-a3db-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('c65946ec-bfed-11e4-8154-705681abff85', 'c65a0aaa-bfed-11e4-afcd-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('c65b0f18-bfed-11e4-a3db-705681abff85') Completed 200 OK in 13ms (Views: 4.4ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$qceW1pkd9NMqmWaXP5m/EegtyRAvdB4Fkv47LIIdZy1eCdTemUPH2"], ["created_at", "2015-03-01 08:34:28.428503"], ["updated_at", "2015-03-01 08:34:28.428503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$xn1sNueGnZfQ7zWNlsUboeM7p6.mnW6TFaif2X4aqkE0wLf.dv/QG"], ["created_at", "2015-03-01 08:34:28.434089"], ["updated_at", "2015-03-01 08:34:28.434089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.436011"], ["user_id", "c660000e-bfed-11e4-8275-705681abff85"], ["created_at", "2015-03-01 08:34:28.437275"], ["updated_at", "2015-03-01 08:34:28.437275"], ["token", "lRgZQodtle9x_c1W2kwL33psPU9ALR8QFIZX7Ni_mb0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.441577"], ["updated_at", "2015-03-01 08:34:28.441577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c660000e-bfed-11e4-8275-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6620afc-bfed-11e4-b2af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c660000e-bfed-11e4-8275-705681abff85"], ["organization_id", "c6620afc-bfed-11e4-b2af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.445430"], ["updated_at", "2015-03-01 08:34:28.445430"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c660dc7c-bfed-11e4-89ae-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6620afc-bfed-11e4-b2af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c660dc7c-bfed-11e4-89ae-705681abff85"], ["organization_id", "c6620afc-bfed-11e4-b2af-705681abff85"], ["created_at", "2015-03-01 08:34:28.448731"], ["updated_at", "2015-03-01 08:34:28.448731"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$SqESA1h4T56tim/i1WtRseBbhtILzVJLbU70zu4EML..o7yHMXqPm"], ["created_at", "2015-03-01 08:34:28.464564"], ["updated_at", "2015-03-01 08:34:28.464564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$XmQrXOVE2qv5RMkJQvFn9u2/Mv.pWmvfrlUefur8gDsVut3xoRkme"], ["created_at", "2015-03-01 08:34:28.469361"], ["updated_at", "2015-03-01 08:34:28.469361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.471807"], ["user_id", "c66591ea-bfed-11e4-9aba-705681abff85"], ["created_at", "2015-03-01 08:34:28.472931"], ["updated_at", "2015-03-01 08:34:28.472931"], ["token", "PKuvJU5EIb_U3Q6lwZTYmI89kCFoSDCftBGfO-EsNZs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.477432"], ["updated_at", "2015-03-01 08:34:28.477432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c66591ea-bfed-11e4-9aba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c66775f0-bfed-11e4-aa8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c66591ea-bfed-11e4-9aba-705681abff85"], ["organization_id", "c66775f0-bfed-11e4-aa8f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.480839"], ["updated_at", "2015-03-01 08:34:28.480839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c66639b0-bfed-11e4-af0d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c66775f0-bfed-11e4-aa8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c66639b0-bfed-11e4-af0d-705681abff85"], ["organization_id", "c66775f0-bfed-11e4-aa8f-705681abff85"], ["created_at", "2015-03-01 08:34:28.483991"], ["updated_at", "2015-03-01 08:34:28.483991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/c667f9bc-bfed-11e4-bf78-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"c667f9bc-bfed-11e4-bf78-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.488688' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PKuvJU5EIb_U3Q6lwZTYmI89kCFoSDCftBGfO-EsNZs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.490378"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.491415"], ["id", "c666dbf4-bfed-11e4-a6f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c66591ea-bfed-11e4-9aba-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c66591ea-bfed-11e4-9aba-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c66591ea-bfed-11e4-9aba-705681abff85' LIMIT 1 [["organization_id", "c66775f0-bfed-11e4-aa8f-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "c66775f0-bfed-11e4-aa8f-705681abff85"], ["id", "c667f9bc-bfed-11e4-bf78-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c66591ea-bfed-11e4-9aba-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$5YNfSjXhHAiCGQX2wOkX4uIgiZuH5m9uNj8WNyJ9541tgN4dh2ncy"], ["created_at", "2015-03-01 08:34:28.506906"], ["updated_at", "2015-03-01 08:34:28.506906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$ICEXzNQyKa/10vd6Qz8jXOmm6F1i4qNs0Hwvpu3.TryBz4Ek9tfuO"], ["created_at", "2015-03-01 08:34:28.511551"], ["updated_at", "2015-03-01 08:34:28.511551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.513283"], ["user_id", "c66bfa76-bfed-11e4-b350-705681abff85"], ["created_at", "2015-03-01 08:34:28.514104"], ["updated_at", "2015-03-01 08:34:28.514104"], ["token", "q-ZPNHBmBvMM-vpmcgsla7cH95uV_x37eGnuDQaJU4A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.519699"], ["updated_at", "2015-03-01 08:34:28.519699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c66bfa76-bfed-11e4-b350-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c66deb10-bfed-11e4-827d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c66bfa76-bfed-11e4-b350-705681abff85"], ["organization_id", "c66deb10-bfed-11e4-827d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.523447"], ["updated_at", "2015-03-01 08:34:28.523447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c66ca9da-bfed-11e4-8f28-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c66deb10-bfed-11e4-827d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c66ca9da-bfed-11e4-8f28-705681abff85"], ["organization_id", "c66deb10-bfed-11e4-827d-705681abff85"], ["created_at", "2015-03-01 08:34:28.526747"], ["updated_at", "2015-03-01 08:34:28.526747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/c66ef992-bfed-11e4-89ce-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"c66ef992-bfed-11e4-89ce-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.531448' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q-ZPNHBmBvMM-vpmcgsla7cH95uV_x37eGnuDQaJU4A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.532900"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.533830"], ["id", "c66d2fea-bfed-11e4-bc47-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c66bfa76-bfed-11e4-b350-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c66bfa76-bfed-11e4-b350-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c66bfa76-bfed-11e4-b350-705681abff85' LIMIT 1 [["organization_id", "c66deb10-bfed-11e4-827d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "c66deb10-bfed-11e4-827d-705681abff85"], ["id", "c66ef992-bfed-11e4-89ce-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c66ca9da-bfed-11e4-8f28-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "c66ef992-bfed-11e4-89ce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$sneZ7rLF9JgQjo7SYPkQz.02UXfak2aJ7q6v8ItBlNIc4BIUyq/V."], ["created_at", "2015-03-01 08:34:28.548783"], ["updated_at", "2015-03-01 08:34:28.548783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$qWP6zdRbGA.ibZAVLzllS.ZRCXq8plm/Dg9P2YAEicXicThd9B3.i"], ["created_at", "2015-03-01 08:34:28.552998"], ["updated_at", "2015-03-01 08:34:28.552998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.554633"], ["user_id", "c6725902-bfed-11e4-898e-705681abff85"], ["created_at", "2015-03-01 08:34:28.555430"], ["updated_at", "2015-03-01 08:34:28.555430"], ["token", "_StF1KvxWUdJ23bYPvj6usz6jHh0532IcmFfGyrkgvk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.558820"], ["updated_at", "2015-03-01 08:34:28.558820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6725902-bfed-11e4-898e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c673e038-bfed-11e4-9197-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6725902-bfed-11e4-898e-705681abff85"], ["organization_id", "c673e038-bfed-11e4-9197-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.562073"], ["updated_at", "2015-03-01 08:34:28.562073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c672fb46-bfed-11e4-aff2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c673e038-bfed-11e4-9197-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c672fb46-bfed-11e4-aff2-705681abff85"], ["organization_id", "c673e038-bfed-11e4-9197-705681abff85"], ["created_at", "2015-03-01 08:34:28.565298"], ["updated_at", "2015-03-01 08:34:28.565298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/c6746350-bfed-11e4-a018-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"c6746350-bfed-11e4-a018-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.569759' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_StF1KvxWUdJ23bYPvj6usz6jHh0532IcmFfGyrkgvk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.571150"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.572104"], ["id", "c6736428-bfed-11e4-a951-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6725902-bfed-11e4-898e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6725902-bfed-11e4-898e-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6725902-bfed-11e4-898e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "c6725902-bfed-11e4-898e-705681abff85"], ["id", "c6746350-bfed-11e4-a018-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c673e038-bfed-11e4-9197-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6725902-bfed-11e4-898e-705681abff85"]] Completed 200 OK in 12ms (Views: 2.6ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$a3oIi7COdsLE7LzO0bOpZ.MDkTHPdCwMC9wUb3KhKEY/sAJ83c1xS"], ["created_at", "2015-03-01 08:34:28.587246"], ["updated_at", "2015-03-01 08:34:28.587246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$nMvz9t7Ep/F/HZhFN3gZl.qhac.SkuJU9Pv6jaGcDvjK6NoyrUV7C"], ["created_at", "2015-03-01 08:34:28.591915"], ["updated_at", "2015-03-01 08:34:28.591915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.593466"], ["user_id", "c67839bc-bfed-11e4-a733-705681abff85"], ["created_at", "2015-03-01 08:34:28.594221"], ["updated_at", "2015-03-01 08:34:28.594221"], ["token", "w4TJZCz_d6xhRpepTsHyV-6QR3GsV8SvnKeIvMPBZ98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.597575"], ["updated_at", "2015-03-01 08:34:28.597575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c67839bc-bfed-11e4-a733-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c679c822-bfed-11e4-8d2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c67839bc-bfed-11e4-a733-705681abff85"], ["organization_id", "c679c822-bfed-11e4-8d2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.600745"], ["updated_at", "2015-03-01 08:34:28.600745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c678ec22-bfed-11e4-aeda-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c679c822-bfed-11e4-8d2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c678ec22-bfed-11e4-aeda-705681abff85"], ["organization_id", "c679c822-bfed-11e4-8d2f-705681abff85"], ["created_at", "2015-03-01 08:34:28.603756"], ["updated_at", "2015-03-01 08:34:28.603756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$gX2ubDGu2Mcy4kvczY/jU.elY0spWJfsg7knwAk4hUBQzmRLCgU0q"], ["created_at", "2015-03-01 08:34:28.619043"], ["updated_at", "2015-03-01 08:34:28.619043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$WLzZU9pgY6I3nHbpPPJDs.GX2ldMjMEdZGNov8e3GsXyR.YryWEsy"], ["created_at", "2015-03-01 08:34:28.623763"], ["updated_at", "2015-03-01 08:34:28.623763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.625393"], ["user_id", "c67d1bd0-bfed-11e4-a035-705681abff85"], ["created_at", "2015-03-01 08:34:28.626179"], ["updated_at", "2015-03-01 08:34:28.626179"], ["token", "ZTsaOKHjh9UH1Sf__o4FC4adjobC3stb-ItzLAQ9L3w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.629908"], ["updated_at", "2015-03-01 08:34:28.629908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c67d1bd0-bfed-11e4-a035-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c67eb936-bfed-11e4-a3ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c67d1bd0-bfed-11e4-a035-705681abff85"], ["organization_id", "c67eb936-bfed-11e4-a3ca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.633254"], ["updated_at", "2015-03-01 08:34:28.633254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c67dca76-bfed-11e4-b59e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c67eb936-bfed-11e4-a3ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c67dca76-bfed-11e4-b59e-705681abff85"], ["organization_id", "c67eb936-bfed-11e4-a3ca-705681abff85"], ["created_at", "2015-03-01 08:34:28.636284"], ["updated_at", "2015-03-01 08:34:28.636284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/c67fb002-bfed-11e4-9912-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"c67fb002-bfed-11e4-9912-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.641877' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZTsaOKHjh9UH1Sf__o4FC4adjobC3stb-ItzLAQ9L3w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.643542"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.644613"], ["id", "c67e31d2-bfed-11e4-b8ee-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c67d1bd0-bfed-11e4-a035-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c67d1bd0-bfed-11e4-a035-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c67d1bd0-bfed-11e4-a035-705681abff85' LIMIT 1 [["organization_id", "c67eb936-bfed-11e4-a3ca-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "c67eb936-bfed-11e4-a3ca-705681abff85"], ["id", "c67fb002-bfed-11e4-9912-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c67eb936-bfed-11e4-a3ca-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c67dca76-bfed-11e4-b59e-705681abff85"]] Completed 200 OK in 12ms (Views: 2.2ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$bW4veuWfwKzlEyQsgfjuSe/HrXbH.IKVi4PuaFo6bieYqrHiyTMWe"], ["created_at", "2015-03-01 08:34:28.659904"], ["updated_at", "2015-03-01 08:34:28.659904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$qqBhUJBKEJxW5k3uHGHh.e0CoC6Kp0pGyxQjN00BbiQmlh4pu1Ely"], ["created_at", "2015-03-01 08:34:28.664183"], ["updated_at", "2015-03-01 08:34:28.664183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.665721"], ["user_id", "c6834f14-bfed-11e4-809d-705681abff85"], ["created_at", "2015-03-01 08:34:28.666516"], ["updated_at", "2015-03-01 08:34:28.666516"], ["token", "yq8ZXeqLBKhAhihafwPVzTeX9wSJPpuLHZRxe2ruyX0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.669857"], ["updated_at", "2015-03-01 08:34:28.669857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6834f14-bfed-11e4-809d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c684d172-bfed-11e4-91e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6834f14-bfed-11e4-809d-705681abff85"], ["organization_id", "c684d172-bfed-11e4-91e5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.673179"], ["updated_at", "2015-03-01 08:34:28.673179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c683f2a2-bfed-11e4-9118-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c684d172-bfed-11e4-91e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c683f2a2-bfed-11e4-9118-705681abff85"], ["organization_id", "c684d172-bfed-11e4-91e5-705681abff85"], ["created_at", "2015-03-01 08:34:28.676335"], ["updated_at", "2015-03-01 08:34:28.676335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$D1p/HSzThzZnhjV6NLIUe.hySVC3Oh2R2pJNM.K8ejs0Bi2eSHUny"], ["created_at", "2015-03-01 08:34:28.691623"], ["updated_at", "2015-03-01 08:34:28.691623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$CP4/YuYLf0m6LdXyG2tbHe3y5.JDgkDBkOlgd8OH8q1vAsMcGM48e"], ["created_at", "2015-03-01 08:34:28.696892"], ["updated_at", "2015-03-01 08:34:28.696892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.698591"], ["user_id", "c6882f34-bfed-11e4-ae97-705681abff85"], ["created_at", "2015-03-01 08:34:28.699398"], ["updated_at", "2015-03-01 08:34:28.699398"], ["token", "JXA_7bBEHA8CWSlT5KBSdu-s5WPwjBBzk4m-CBxNoTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.702870"], ["updated_at", "2015-03-01 08:34:28.702870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6882f34-bfed-11e4-ae97-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c689da00-bfed-11e4-9bd6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6882f34-bfed-11e4-ae97-705681abff85"], ["organization_id", "c689da00-bfed-11e4-9bd6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.706169"], ["updated_at", "2015-03-01 08:34:28.706169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c688f400-bfed-11e4-b6b3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c689da00-bfed-11e4-9bd6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c688f400-bfed-11e4-b6b3-705681abff85"], ["organization_id", "c689da00-bfed-11e4-9bd6-705681abff85"], ["created_at", "2015-03-01 08:34:28.709295"], ["updated_at", "2015-03-01 08:34:28.709295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$0tF20tyLuGSYBS7c0AccCe/7tKOryBvqtkbktr0rmL/5WP9UOhHD6"], ["created_at", "2015-03-01 08:34:28.723468"], ["updated_at", "2015-03-01 08:34:28.723468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$T3rtgWgwNy2AqRzNzNS3y.DS13tzzPIdP6GHAZb/rG8Qv57zvItsO"], ["created_at", "2015-03-01 08:34:28.728094"], ["updated_at", "2015-03-01 08:34:28.728094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.729722"], ["user_id", "c68d0360-bfed-11e4-a6ce-705681abff85"], ["created_at", "2015-03-01 08:34:28.730538"], ["updated_at", "2015-03-01 08:34:28.730538"], ["token", "dCuY6WkuxQyd0_oVrymrUu0Cj6vpFljXX3IVjzGw82w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.734013"], ["updated_at", "2015-03-01 08:34:28.734013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c68d0360-bfed-11e4-a6ce-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c68e9b4e-bfed-11e4-9410-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c68d0360-bfed-11e4-a6ce-705681abff85"], ["organization_id", "c68e9b4e-bfed-11e4-9410-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.737518"], ["updated_at", "2015-03-01 08:34:28.737518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c68db634-bfed-11e4-a628-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c68e9b4e-bfed-11e4-9410-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c68db634-bfed-11e4-a628-705681abff85"], ["organization_id", "c68e9b4e-bfed-11e4-9410-705681abff85"], ["created_at", "2015-03-01 08:34:28.740803"], ["updated_at", "2015-03-01 08:34:28.740803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/c68f2988-bfed-11e4-a120-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"c68f2988-bfed-11e4-a120-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.745746' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dCuY6WkuxQyd0_oVrymrUu0Cj6vpFljXX3IVjzGw82w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.747049"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.748107"], ["id", "c68e1c78-bfed-11e4-a5c2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c68d0360-bfed-11e4-a6ce-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c68d0360-bfed-11e4-a6ce-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c68d0360-bfed-11e4-a6ce-705681abff85' LIMIT 1 [["organization_id", "c68e9b4e-bfed-11e4-9410-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "c68e9b4e-bfed-11e4-9410-705681abff85"], ["id", "c68f2988-bfed-11e4-a120-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c68d0360-bfed-11e4-a6ce-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$qcDMux2GAh7YIcs84r0fYO0x1YM3K.WxV/n8LEAMy2y3lp964v5UC"], ["created_at", "2015-03-01 08:34:28.761891"], ["updated_at", "2015-03-01 08:34:28.761891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$44umKwYHTw.ux5xSBdjZrumFIjxi6eBWR7JEFnHNKJKzoAFR0ARXC"], ["created_at", "2015-03-01 08:34:28.766203"], ["updated_at", "2015-03-01 08:34:28.766203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.767674"], ["user_id", "c692df42-bfed-11e4-8f63-705681abff85"], ["created_at", "2015-03-01 08:34:28.768462"], ["updated_at", "2015-03-01 08:34:28.768462"], ["token", "9PNk00RLz7XRzRogEYNer22WiYFkyxJidpfLBe3Qf6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.771701"], ["updated_at", "2015-03-01 08:34:28.771701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c692df42-bfed-11e4-8f63-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c69459bc-bfed-11e4-ad6d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c692df42-bfed-11e4-8f63-705681abff85"], ["organization_id", "c69459bc-bfed-11e4-ad6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.774903"], ["updated_at", "2015-03-01 08:34:28.774903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c693841a-bfed-11e4-abdb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c69459bc-bfed-11e4-ad6d-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c693841a-bfed-11e4-abdb-705681abff85"], ["organization_id", "c69459bc-bfed-11e4-ad6d-705681abff85"], ["created_at", "2015-03-01 08:34:28.777942"], ["updated_at", "2015-03-01 08:34:28.777942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/c6954d18-bfed-11e4-8020-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"c6954d18-bfed-11e4-8020-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.784980' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9PNk00RLz7XRzRogEYNer22WiYFkyxJidpfLBe3Qf6A"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.786967"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.788845"], ["id", "c693e2ca-bfed-11e4-a112-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c692df42-bfed-11e4-8f63-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c692df42-bfed-11e4-8f63-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c692df42-bfed-11e4-8f63-705681abff85' LIMIT 1 [["organization_id", "c69459bc-bfed-11e4-ad6d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "c69459bc-bfed-11e4-ad6d-705681abff85"], ["id", "c6954d18-bfed-11e4-8020-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c693841a-bfed-11e4-abdb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c69459bc-bfed-11e4-ad6d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c693841a-bfed-11e4-abdb-705681abff85' AND "clubhouse_memberships"."id" != 'c6954d18-bfed-11e4-8020-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c69459bc-bfed-11e4-ad6d-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 08:34:28.798785"], ["id", "c6954d18-bfed-11e4-8020-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 1.1ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$tsnEE15GGO2lY/MLjs.lDuhOnVr0v.FFAGQJinCvWCJMnLsu40dG6"], ["created_at", "2015-03-01 08:34:28.807441"], ["updated_at", "2015-03-01 08:34:28.807441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$9tz1MDOaXglRf5qFEuQQf.HXTtr9LdLRwuQMJGHShOBNhkZxoAUqW"], ["created_at", "2015-03-01 08:34:28.811861"], ["updated_at", "2015-03-01 08:34:28.811861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:28.813370"], ["user_id", "c699d568-bfed-11e4-a213-705681abff85"], ["created_at", "2015-03-01 08:34:28.814136"], ["updated_at", "2015-03-01 08:34:28.814136"], ["token", "A0BLu2XkIC9tr8WJ6dSlOViPv58qJvl0wetFoSpLHLU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.817358"], ["updated_at", "2015-03-01 08:34:28.817358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c699d568-bfed-11e4-a213-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c69b50be-bfed-11e4-9b6b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c699d568-bfed-11e4-a213-705681abff85"], ["organization_id", "c69b50be-bfed-11e4-9b6b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:28.820690"], ["updated_at", "2015-03-01 08:34:28.820690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c69a7b8a-bfed-11e4-98ca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c69b50be-bfed-11e4-9b6b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c69a7b8a-bfed-11e4-98ca-705681abff85"], ["organization_id", "c69b50be-bfed-11e4-9b6b-705681abff85"], ["created_at", "2015-03-01 08:34:28.824071"], ["updated_at", "2015-03-01 08:34:28.824071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 00:34:28 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:28.828954' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A0BLu2XkIC9tr8WJ6dSlOViPv58qJvl0wetFoSpLHLU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:28.831028"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:28.832811"], ["id", "c69adb02-bfed-11e4-a532-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c699d568-bfed-11e4-a213-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c699d568-bfed-11e4-a213-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c699d568-bfed-11e4-a213-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c699d568-bfed-11e4-a213-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('c699d568-bfed-11e4-a213-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('c69b50be-bfed-11e4-9b6b-705681abff85') Completed 200 OK in 14ms (Views: 3.6ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.848184"], ["updated_at", "2015-03-01 08:34:28.848184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'c6a007e4-bfed-11e4-836b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "c6a007e4-bfed-11e4-836b-705681abff85"], ["created_at", "2015-03-01 08:34:28.851536"], ["updated_at", "2015-03-01 08:34:28.851536"], ["token", "AnWetGp_uNgBYw-ImMg-7wtFxSTlbutpHFxwkbmo9pc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.6ms) Date: Sun, 01 Mar 2015 00:34:28 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf14d0c10_1386e3fe114865be877530@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/AnWetGp_uNgBYw-ImMg-7wtFxSTlbutpHFxwkbmo9pc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.859504"], ["updated_at", "2015-03-01 08:34:28.859504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'c6a1c200-bfed-11e4-846e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "c6a1c200-bfed-11e4-846e-705681abff85"], ["created_at", "2015-03-01 08:34:28.862746"], ["updated_at", "2015-03-01 08:34:28.862746"], ["token", "o2mLepqL52oBPMm4B1Z_l2NQ-M8wK_0lL5XiRLvC10A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.6ms) Date: Sun, 01 Mar 2015 00:34:28 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf14d37f8_1386e3fe114865be8776eb@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/o2mLepqL52oBPMm4B1Z_l2NQ-M8wK_0lL5XiRLvC10A If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.870821"], ["updated_at", "2015-03-01 08:34:28.870821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'c6a37bae-bfed-11e4-81eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "c6a37bae-bfed-11e4-81eb-705681abff85"], ["created_at", "2015-03-01 08:34:28.874104"], ["updated_at", "2015-03-01 08:34:28.874104"], ["token", "kw0SQj7354Gf881fsbbJk6kLjG5GWN3aknKXZ605GXA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Sun, 01 Mar 2015 00:34:28 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf14d63f0_1386e3fe114865be8777a7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/kw0SQj7354Gf881fsbbJk6kLjG5GWN3aknKXZ605GXA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:28.882561"], ["updated_at", "2015-03-01 08:34:28.882561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'c6a5475e-bfed-11e4-8773-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "c6a5475e-bfed-11e4-8773-705681abff85"], ["created_at", "2015-03-01 08:34:28.885996"], ["updated_at", "2015-03-01 08:34:28.885996"], ["token", "4IQTFy0YUvSZSW2qlilBSU8LohA2HYMMZGit0IsNhEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.9ms) Date: Sun, 01 Mar 2015 00:34:28 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf14d93ff_1386e3fe114865be877866@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/4IQTFy0YUvSZSW2qlilBSU8LohA2HYMMZGit0IsNhEE If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.461050"], ["updated_at", "2015-03-01 08:34:49.461050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.500920"], ["updated_at", "2015-03-01 08:34:49.500920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.511429"], ["updated_at", "2015-03-01 08:34:49.511429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.531711"], ["updated_at", "2015-03-01 08:34:49.531711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.537150"], ["updated_at", "2015-03-01 08:34:49.537150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d2f502ec-bfed-11e4-8ca9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$YPEo4nWt1SDWoswIlEjleOvSEfQGSZk2fQPeDVjZosZcJsocLxKnO"], ["created_at", "2015-03-01 08:34:49.551577"], ["updated_at", "2015-03-01 08:34:49.551577"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$rFf3LpEElFqhdp/DiIcHuu4TR.G624xoxHfejp7V2v7XNVDv1uEyK"], ["created_at", "2015-03-01 08:34:49.556846"], ["updated_at", "2015-03-01 08:34:49.556846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:49.564681"], ["user_id", "d2f727de-bfed-11e4-8a27-705681abff85"], ["created_at", "2015-03-01 08:34:49.570561"], ["updated_at", "2015-03-01 08:34:49.570561"], ["token", "onmWzSC8BBMhy8hMDs0ta74Ttf8XjEzciXr2OL55Oxc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.579449"], ["updated_at", "2015-03-01 08:34:49.579449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd2f727de-bfed-11e4-8a27-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd2fb654c-bfed-11e4-b78c-705681abff85') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d2f727de-bfed-11e4-8a27-705681abff85"], ["organization_id", "d2fb654c-bfed-11e4-b78c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:49.592580"], ["updated_at", "2015-03-01 08:34:49.592580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd2f7ebe2-bfed-11e4-ad12-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd2fb654c-bfed-11e4-b78c-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d2f7ebe2-bfed-11e4-ad12-705681abff85"], ["organization_id", "d2fb654c-bfed-11e4-b78c-705681abff85"], ["created_at", "2015-03-01 08:34:49.601654"], ["updated_at", "2015-03-01 08:34:49.601654"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/d2ff4bee-bfed-11e4-9e3d-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:49 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"d2ff4bee-bfed-11e4-9e3d-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:49.633801' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "onmWzSC8BBMhy8hMDs0ta74Ttf8XjEzciXr2OL55Oxc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:49.635881"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:49.637117"], ["id", "d2fa26b4-bfed-11e4-a4ce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$6F5LLfcsboUb4bcH3R7upOeE7FMh/9z3prNYjoAXMih19ScpVTM2a"], ["created_at", "2015-03-01 08:34:49.648287"], ["updated_at", "2015-03-01 08:34:49.648287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$7kJNWWTNd3CC0cb57DAZeOTI5NEU49bqaRoXWgwrg7/jOAeDermHe"], ["created_at", "2015-03-01 08:34:49.655286"], ["updated_at", "2015-03-01 08:34:49.655286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:49.658126"], ["user_id", "d305eb2a-bfed-11e4-8001-705681abff85"], ["created_at", "2015-03-01 08:34:49.659059"], ["updated_at", "2015-03-01 08:34:49.659059"], ["token", "137oBhBEkkQmTnGLFoEJAIjXfTeQSTOmgGhUHYb7GAE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.663801"], ["updated_at", "2015-03-01 08:34:49.663801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd305eb2a-bfed-11e4-8001-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd30841b8-bfed-11e4-85c7-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d305eb2a-bfed-11e4-8001-705681abff85"], ["organization_id", "d30841b8-bfed-11e4-85c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:49.669616"], ["updated_at", "2015-03-01 08:34:49.669616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd30708ca-bfed-11e4-9ba7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd30841b8-bfed-11e4-85c7-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d30708ca-bfed-11e4-9ba7-705681abff85"], ["organization_id", "d30841b8-bfed-11e4-85c7-705681abff85"], ["created_at", "2015-03-01 08:34:49.675305"], ["updated_at", "2015-03-01 08:34:49.675305"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 00:34:49 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$u9Ws6833/pA/JobiWtFg6.PsnSY/RgrJsUWE4TZxKDJDk.J9xjMAK"], ["created_at", "2015-03-01 08:34:49.691379"], ["updated_at", "2015-03-01 08:34:49.691379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$SbB5GGwicieWMrUgqDZRN.LjgZuhhYYqLirAqcADIb3UsYla.7n3C"], ["created_at", "2015-03-01 08:34:49.697701"], ["updated_at", "2015-03-01 08:34:49.697701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:49.699772"], ["user_id", "d30c8b38-bfed-11e4-8e8a-705681abff85"], ["created_at", "2015-03-01 08:34:49.700665"], ["updated_at", "2015-03-01 08:34:49.700665"], ["token", "OtcSIpg9buo0huYuZkSjAQewzR-1WgkSd-VclWRRzj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.705594"], ["updated_at", "2015-03-01 08:34:49.705594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd30c8b38-bfed-11e4-8e8a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd30eaf58-bfed-11e4-8912-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d30c8b38-bfed-11e4-8e8a-705681abff85"], ["organization_id", "d30eaf58-bfed-11e4-8912-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:49.709628"], ["updated_at", "2015-03-01 08:34:49.709628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd30d7408-bfed-11e4-a8aa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd30eaf58-bfed-11e4-8912-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d30d7408-bfed-11e4-a8aa-705681abff85"], ["organization_id", "d30eaf58-bfed-11e4-8912-705681abff85"], ["created_at", "2015-03-01 08:34:49.712912"], ["updated_at", "2015-03-01 08:34:49.712912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:49 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$g2mcN/rnrpj.egzSbJYcmeI8Y7QMe/5dJ2dQQ2fryr3oYp08Vr5S6"], ["created_at", "2015-03-01 08:34:49.726662"], ["updated_at", "2015-03-01 08:34:49.726662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Kl6NaUmseVPlzZWKjeoNm.AxbbK8uCeUsza5pq7FGvkM.PBtYLYTK"], ["created_at", "2015-03-01 08:34:49.732413"], ["updated_at", "2015-03-01 08:34:49.732413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:49.734956"], ["user_id", "d311d80e-bfed-11e4-8b94-705681abff85"], ["created_at", "2015-03-01 08:34:49.735771"], ["updated_at", "2015-03-01 08:34:49.735771"], ["token", "kpxDg0htpnrVPHbsIU-WNii9dhHvDStj-GsazoOIj6k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.739241"], ["updated_at", "2015-03-01 08:34:49.739241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd311d80e-bfed-11e4-8b94-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd313bfe8-bfed-11e4-ae1f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d311d80e-bfed-11e4-8b94-705681abff85"], ["organization_id", "d313bfe8-bfed-11e4-ae1f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:49.743508"], ["updated_at", "2015-03-01 08:34:49.743508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd312c6e2-bfed-11e4-bd74-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd313bfe8-bfed-11e4-ae1f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d312c6e2-bfed-11e4-bd74-705681abff85"], ["organization_id", "d313bfe8-bfed-11e4-ae1f-705681abff85"], ["created_at", "2015-03-01 08:34:49.747347"], ["updated_at", "2015-03-01 08:34:49.747347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/d3146e8e-bfed-11e4-84bb-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:49 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"d3146e8e-bfed-11e4-84bb-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:49.754111' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kpxDg0htpnrVPHbsIU-WNii9dhHvDStj-GsazoOIj6k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:49.756146"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:49.757228"], ["id", "d3134220-bfed-11e4-b8eb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$JoLH.jX2tL5EVRnD04r5N.Lk5Xd1z2lQ9m5KmVmqfmTuiRWHgKz5m"], ["created_at", "2015-03-01 08:34:49.769702"], ["updated_at", "2015-03-01 08:34:49.769702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$FhOJmxQpW7TVRjV.Mh/eKOisRtpEBTzOM.zZUgHW/aQqaat4iCVLi"], ["created_at", "2015-03-01 08:34:49.774050"], ["updated_at", "2015-03-01 08:34:49.774050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:49.775612"], ["user_id", "d3186926-bfed-11e4-bb58-705681abff85"], ["created_at", "2015-03-01 08:34:49.776367"], ["updated_at", "2015-03-01 08:34:49.776367"], ["token", "_uSaLnMX9jXt8whF9ISGLN5iosyt6ybf0hTIL7lvhWE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.779899"], ["updated_at", "2015-03-01 08:34:49.779899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3186926-bfed-11e4-bb58-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd319f4c6-bfed-11e4-bc52-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d3186926-bfed-11e4-bb58-705681abff85"], ["organization_id", "d319f4c6-bfed-11e4-bc52-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:49.783686"], ["updated_at", "2015-03-01 08:34:49.783686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd31910b0-bfed-11e4-adc3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd319f4c6-bfed-11e4-bc52-705681abff85') LIMIT 1 SQL (5.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d31910b0-bfed-11e4-adc3-705681abff85"], ["organization_id", "d319f4c6-bfed-11e4-bc52-705681abff85"], ["created_at", "2015-03-01 08:34:49.787093"], ["updated_at", "2015-03-01 08:34:49.787093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/d31b0e10-bfed-11e4-becd-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:49 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"d31b0e10-bfed-11e4-becd-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:49.797625' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_uSaLnMX9jXt8whF9ISGLN5iosyt6ybf0hTIL7lvhWE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:49.799480"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:49.800763"], ["id", "d3197424-bfed-11e4-855e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$gfhIkQfxIaSK/LmtIfd5du2r/k25wTvG2UqmOSL0DskLERb4GKFmm"], ["created_at", "2015-03-01 08:34:49.819478"], ["updated_at", "2015-03-01 08:34:49.819478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$sHQLh9dy2WWTC3IVh13bsuWR/i6yNhmQY6OaK8vlZwoZibXECQhFW"], ["created_at", "2015-03-01 08:34:49.824156"], ["updated_at", "2015-03-01 08:34:49.824156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:49.825661"], ["user_id", "d3200906-bfed-11e4-a8fb-705681abff85"], ["created_at", "2015-03-01 08:34:49.826495"], ["updated_at", "2015-03-01 08:34:49.826495"], ["token", "AZDL4c2fnvhLK5YvcVDouzb8sqBGPfw7w0FJE3i4K5k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.829896"], ["updated_at", "2015-03-01 08:34:49.829896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3200906-bfed-11e4-a8fb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3219442-bfed-11e4-a8fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d3200906-bfed-11e4-a8fb-705681abff85"], ["organization_id", "d3219442-bfed-11e4-a8fe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:49.833246"], ["updated_at", "2015-03-01 08:34:49.833246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd320b3b0-bfed-11e4-ba49-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3219442-bfed-11e4-a8fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d320b3b0-bfed-11e4-ba49-705681abff85"], ["organization_id", "d3219442-bfed-11e4-a8fe-705681abff85"], ["created_at", "2015-03-01 08:34:49.836341"], ["updated_at", "2015-03-01 08:34:49.836341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 00:34:49 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:49.840792' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AZDL4c2fnvhLK5YvcVDouzb8sqBGPfw7w0FJE3i4K5k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:49.842215"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:49.843253"], ["id", "d321199a-bfed-11e4-9bdf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$bOXseu0Ra9jGriI9XPpTIOg7fst.o.YFbareStUTQ1k9EgXIG4IW6"], ["created_at", "2015-03-01 08:34:49.851764"], ["updated_at", "2015-03-01 08:34:49.851764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$g3vnNbiwl50E/ddH62rWkuwjjC5YObm5klm7T0k31tcRj8z6pNXlK"], ["created_at", "2015-03-01 08:34:49.857244"], ["updated_at", "2015-03-01 08:34:49.857244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:49.858852"], ["user_id", "d324f11e-bfed-11e4-8c6b-705681abff85"], ["created_at", "2015-03-01 08:34:49.859616"], ["updated_at", "2015-03-01 08:34:49.859616"], ["token", "qDsVxJJM4aFjiY9UULsPPThaGR4vpESRgjyTMgKP9qU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.862878"], ["updated_at", "2015-03-01 08:34:49.862878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd324f11e-bfed-11e4-8c6b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3269ed8-bfed-11e4-82fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d324f11e-bfed-11e4-8c6b-705681abff85"], ["organization_id", "d3269ed8-bfed-11e4-82fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:49.866341"], ["updated_at", "2015-03-01 08:34:49.866341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd325c2ba-bfed-11e4-9174-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3269ed8-bfed-11e4-82fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d325c2ba-bfed-11e4-9174-705681abff85"], ["organization_id", "d3269ed8-bfed-11e4-82fd-705681abff85"], ["created_at", "2015-03-01 08:34:49.870760"], ["updated_at", "2015-03-01 08:34:49.870760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 00:34:49 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:49.876279' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qDsVxJJM4aFjiY9UULsPPThaGR4vpESRgjyTMgKP9qU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:49.878149"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:49.879124"], ["id", "d3262426-bfed-11e4-9115-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$HgzGpDAJMTCg6wN9dXGMOeD8DyUTaX.z3qBGUy.Hmo4t5QS3cDYXq"], ["created_at", "2015-03-01 08:34:49.887671"], ["updated_at", "2015-03-01 08:34:49.887671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$0bIOJmwuDsTfy/3MJULsXe7soNBasvbfBedEJg66pm3Y8iKb0O7.2"], ["created_at", "2015-03-01 08:34:49.892034"], ["updated_at", "2015-03-01 08:34:49.892034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:49.893609"], ["user_id", "d32a69dc-bfed-11e4-acd3-705681abff85"], ["created_at", "2015-03-01 08:34:49.894356"], ["updated_at", "2015-03-01 08:34:49.894356"], ["token", "B-3SG2zRHwzOjqOVQVEjt_4Z783E4xYAsUcJk3ZJAn4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.897605"], ["updated_at", "2015-03-01 08:34:49.897605"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd32a69dc-bfed-11e4-acd3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd32be7bc-bfed-11e4-aa58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d32a69dc-bfed-11e4-acd3-705681abff85"], ["organization_id", "d32be7bc-bfed-11e4-aa58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:49.901729"], ["updated_at", "2015-03-01 08:34:49.901729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd32b127e-bfed-11e4-b851-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd32be7bc-bfed-11e4-aa58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d32b127e-bfed-11e4-b851-705681abff85"], ["organization_id", "d32be7bc-bfed-11e4-aa58-705681abff85"], ["created_at", "2015-03-01 08:34:49.905225"], ["updated_at", "2015-03-01 08:34:49.905225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:49 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$27HSK3YgWRD5XBBFAvLZBePVkOHBzl.HxD5RVIVY0.jAaOYZdWhjS"], ["created_at", "2015-03-01 08:34:49.924026"], ["updated_at", "2015-03-01 08:34:49.924026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$ZC2lA2Un/K2wHb/q9UMWReCqFrRvSB.WLCUEitNMgp/7gEeiJs/Ga"], ["created_at", "2015-03-01 08:34:49.929135"], ["updated_at", "2015-03-01 08:34:49.929135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:49.930685"], ["user_id", "d3300a72-bfed-11e4-be34-705681abff85"], ["created_at", "2015-03-01 08:34:49.931457"], ["updated_at", "2015-03-01 08:34:49.931457"], ["token", "OGGCIgl7MsJQnBUOIh7a6oaHiWiM59u3fntqWF13AOU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.935473"], ["updated_at", "2015-03-01 08:34:49.935473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3300a72-bfed-11e4-be34-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd331c470-bfed-11e4-920b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d3300a72-bfed-11e4-be34-705681abff85"], ["organization_id", "d331c470-bfed-11e4-920b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:49.939418"], ["updated_at", "2015-03-01 08:34:49.939418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd330ba30-bfed-11e4-bfd7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd331c470-bfed-11e4-920b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d330ba30-bfed-11e4-bfd7-705681abff85"], ["organization_id", "d331c470-bfed-11e4-920b-705681abff85"], ["created_at", "2015-03-01 08:34:49.942440"], ["updated_at", "2015-03-01 08:34:49.942440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/d33249fe-bfed-11e4-8e8a-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:49 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"d33249fe-bfed-11e4-8e8a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:49.946991' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OGGCIgl7MsJQnBUOIh7a6oaHiWiM59u3fntqWF13AOU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:49.948817"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:49.950023"], ["id", "d3311bba-bfed-11e4-8905-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$qtbR6VL8EuMnLIBWA9hp6uR7wPn1SCmVn5.d01YpPPOCmgxRJmnAq"], ["created_at", "2015-03-01 08:34:49.962118"], ["updated_at", "2015-03-01 08:34:49.962118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$RraldlII19oeW.PW1D1oouZGDAQygpB6sVj3PiIUxPExlZNmMB1Ym"], ["created_at", "2015-03-01 08:34:49.966666"], ["updated_at", "2015-03-01 08:34:49.966666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:49.968498"], ["user_id", "d335c7a0-bfed-11e4-9313-705681abff85"], ["created_at", "2015-03-01 08:34:49.969291"], ["updated_at", "2015-03-01 08:34:49.969291"], ["token", "46M-PqFUjRKgJAxgbqqqHwZ3Fkeg4Dy5i9tt3GuU4us"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:49.972782"], ["updated_at", "2015-03-01 08:34:49.972782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd335c7a0-bfed-11e4-9313-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3376312-bfed-11e4-a637-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d335c7a0-bfed-11e4-9313-705681abff85"], ["organization_id", "d3376312-bfed-11e4-a637-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:49.976010"], ["updated_at", "2015-03-01 08:34:49.976010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd33679fc-bfed-11e4-8398-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3376312-bfed-11e4-a637-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d33679fc-bfed-11e4-8398-705681abff85"], ["organization_id", "d3376312-bfed-11e4-a637-705681abff85"], ["created_at", "2015-03-01 08:34:49.978984"], ["updated_at", "2015-03-01 08:34:49.978984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/d33852fe-bfed-11e4-afbe-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:49 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"d33852fe-bfed-11e4-afbe-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:49.983665' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "46M-PqFUjRKgJAxgbqqqHwZ3Fkeg4Dy5i9tt3GuU4us"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:49.985078"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:49.986242"], ["id", "d336e34c-bfed-11e4-a0e0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$maoEq7EkgZ5GxfnB68EueO8j3am5dqMDDwOhQQvsnWOxPf4zHXtdS"], ["created_at", "2015-03-01 08:34:49.995614"], ["updated_at", "2015-03-01 08:34:49.995614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$BDGt0WQ7vszbv6HfHf9xDupTxmKmiEGUq/WfN8VEN3vguYrSXpjNO"], ["created_at", "2015-03-01 08:34:50.000074"], ["updated_at", "2015-03-01 08:34:50.000074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.001815"], ["user_id", "d33ae096-bfed-11e4-96d3-705681abff85"], ["created_at", "2015-03-01 08:34:50.003203"], ["updated_at", "2015-03-01 08:34:50.003203"], ["token", "xXuBOsE_1YzoaDxYNW60lwgGoFOR9jOjlJtDP-rzziQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.007170"], ["updated_at", "2015-03-01 08:34:50.007170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd33ae096-bfed-11e4-96d3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd33ca0de-bfed-11e4-a2e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d33ae096-bfed-11e4-96d3-705681abff85"], ["organization_id", "d33ca0de-bfed-11e4-a2e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:50.010380"], ["updated_at", "2015-03-01 08:34:50.010380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd33b907c-bfed-11e4-9cc6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd33ca0de-bfed-11e4-a2e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d33b907c-bfed-11e4-9cc6-705681abff85"], ["organization_id", "d33ca0de-bfed-11e4-a2e0-705681abff85"], ["created_at", "2015-03-01 08:34:50.013508"], ["updated_at", "2015-03-01 08:34:50.013508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$pF0345r2JRRnheSA5x/odODtMOwDyqPiWuFOwU1D.AZR2O42ZGMJm"], ["created_at", "2015-03-01 08:34:50.018079"], ["updated_at", "2015-03-01 08:34:50.018079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.019693"], ["user_id", "d33e4df8-bfed-11e4-90d5-705681abff85"], ["created_at", "2015-03-01 08:34:50.020473"], ["updated_at", "2015-03-01 08:34:50.020473"], ["token", "2VNfYEHOmPivEeza6ESvssI4Z8xuE0lJLJZa3JkkaxU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'd33ca0de-bfed-11e4-a2e0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "d33ca0de-bfed-11e4-a2e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:50.029977"], ["updated_at", "2015-03-01 08:34:50.029977"], ["token", "7HNIyCDTyK7z-VTGssiTIaTf-rq_nyNvdnBzYU0F2OM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$mePoagPnwCoIeyE8/BaY6OCVHHJmpj/La7/kKL07b3NYSd9rE8vCe"], ["created_at", "2015-03-01 08:34:50.045298"], ["updated_at", "2015-03-01 08:34:50.045298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$YJHNp3h/xQPh8Sm9lp5/..PNbxCJrDy9VKraiw9gJYn/8rFiGx/TS"], ["created_at", "2015-03-01 08:34:50.050414"], ["updated_at", "2015-03-01 08:34:50.050414"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.052697"], ["user_id", "d342757c-bfed-11e4-b238-705681abff85"], ["created_at", "2015-03-01 08:34:50.053754"], ["updated_at", "2015-03-01 08:34:50.053754"], ["token", "1468cI6AemQO1QxVQ5HR2pC9dh6ljXu3S9YELUsiVIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.057426"], ["updated_at", "2015-03-01 08:34:50.057426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd342757c-bfed-11e4-b238-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3444faa-bfed-11e4-994e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d342757c-bfed-11e4-b238-705681abff85"], ["organization_id", "d3444faa-bfed-11e4-994e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:50.060905"], ["updated_at", "2015-03-01 08:34:50.060905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd343410a-bfed-11e4-9ade-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3444faa-bfed-11e4-994e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d343410a-bfed-11e4-9ade-705681abff85"], ["organization_id", "d3444faa-bfed-11e4-994e-705681abff85"], ["created_at", "2015-03-01 08:34:50.063988"], ["updated_at", "2015-03-01 08:34:50.063988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$ODckl8qtV57.BnNTFW1u/.IRNntL5TP2qkAvDOZIjaOshwnd8u9yS"], ["created_at", "2015-03-01 08:34:50.068340"], ["updated_at", "2015-03-01 08:34:50.068340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.069926"], ["user_id", "d345f8be-bfed-11e4-91d3-705681abff85"], ["created_at", "2015-03-01 08:34:50.070676"], ["updated_at", "2015-03-01 08:34:50.070676"], ["token", "4L-E7bOEH43jMPrT8miwNPYMDH3okHNamnPDQU8ExmY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'd3444faa-bfed-11e4-994e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "d3444faa-bfed-11e4-994e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:50.074413"], ["updated_at", "2015-03-01 08:34:50.074413"], ["token", "FwvMiEfu4MShODrI6iZi3m_ObrZvRc52XdUNTRd1O8U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.079049' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4L-E7bOEH43jMPrT8miwNPYMDH3okHNamnPDQU8ExmY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.080892"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.082861"], ["id", "d346593a-bfed-11e4-9130-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$WzAqtn2U9fvzCucSwCVl4.lKyQGzmbcHJ.VzU82/Gm72d0J2qdo8S"], ["created_at", "2015-03-01 08:34:50.095825"], ["updated_at", "2015-03-01 08:34:50.095825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$/v/Zjxh/L/amg1lj5GJ3/ehXaDoVt.C9.x8mHOSRMMAC4HRs9eS82"], ["created_at", "2015-03-01 08:34:50.100080"], ["updated_at", "2015-03-01 08:34:50.100080"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.101952"], ["user_id", "d34a2ac4-bfed-11e4-b610-705681abff85"], ["created_at", "2015-03-01 08:34:50.103377"], ["updated_at", "2015-03-01 08:34:50.103377"], ["token", "45eztjuDzN7tCHDz4a8HVZk1wN6KYD7bzhJMIK2CDJ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.107501"], ["updated_at", "2015-03-01 08:34:50.107501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd34a2ac4-bfed-11e4-b610-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd34bf098-bfed-11e4-ad3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d34a2ac4-bfed-11e4-b610-705681abff85"], ["organization_id", "d34bf098-bfed-11e4-ad3d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:50.110777"], ["updated_at", "2015-03-01 08:34:50.110777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd34ad212-bfed-11e4-811a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd34bf098-bfed-11e4-ad3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d34ad212-bfed-11e4-811a-705681abff85"], ["organization_id", "d34bf098-bfed-11e4-ad3d-705681abff85"], ["created_at", "2015-03-01 08:34:50.113808"], ["updated_at", "2015-03-01 08:34:50.113808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$Hl3m.gKagU3tUE7YJ9qeveCUsW7DH2njHZd7HHcurkYYY8QJbdHf."], ["created_at", "2015-03-01 08:34:50.118282"], ["updated_at", "2015-03-01 08:34:50.118282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.120004"], ["user_id", "d34d9984-bfed-11e4-b8ed-705681abff85"], ["created_at", "2015-03-01 08:34:50.120896"], ["updated_at", "2015-03-01 08:34:50.120896"], ["token", "xilqQrzKz0cQAhl8TDoscppDXvl4qDl4BRAt6BYcwFM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'd34bf098-bfed-11e4-ad3d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "d34bf098-bfed-11e4-ad3d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:50.124953"], ["updated_at", "2015-03-01 08:34:50.124953"], ["token", "bNEDkP4Xu6wnv4coejUs-f1CxWAeWkIn7sexJXoHvRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"bNEDkP4Xu6wnv4coejUs-f1CxWAeWkIn7sexJXoHvRg", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.129913' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xilqQrzKz0cQAhl8TDoscppDXvl4qDl4BRAt6BYcwFM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.131749"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.141276"], ["id", "d34e0612-bfed-11e4-a562-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$uG8Uir5l1mgN/4BSWk96aOBGrbir.edzTL4RiFrRV9NoBmorP1EKq"], ["created_at", "2015-03-01 08:34:50.150194"], ["updated_at", "2015-03-01 08:34:50.150194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$QizkLkmYZerSGIFqQRaF4ureExgvtBnqTRSOd/Ug2mMmOcDM20K3e"], ["created_at", "2015-03-01 08:34:50.155779"], ["updated_at", "2015-03-01 08:34:50.155779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.157433"], ["user_id", "d3528412-bfed-11e4-8163-705681abff85"], ["created_at", "2015-03-01 08:34:50.158204"], ["updated_at", "2015-03-01 08:34:50.158204"], ["token", "vx_cSk1WxgppzV_jdpbOhguMbpXI-Wv7xLjSkD1odE8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.161493"], ["updated_at", "2015-03-01 08:34:50.161493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3528412-bfed-11e4-8163-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3542c5e-bfed-11e4-8356-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d3528412-bfed-11e4-8163-705681abff85"], ["organization_id", "d3542c5e-bfed-11e4-8356-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:50.165098"], ["updated_at", "2015-03-01 08:34:50.165098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3535158-bfed-11e4-8d92-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3542c5e-bfed-11e4-8356-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3535158-bfed-11e4-8d92-705681abff85"], ["organization_id", "d3542c5e-bfed-11e4-8356-705681abff85"], ["created_at", "2015-03-01 08:34:50.168543"], ["updated_at", "2015-03-01 08:34:50.168543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/d354bb92-bfed-11e4-b92c-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"d354bb92-bfed-11e4-b92c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.173099' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vx_cSk1WxgppzV_jdpbOhguMbpXI-Wv7xLjSkD1odE8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.174871"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.176835"], ["id", "d353b3d2-bfed-11e4-a0ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$cXxnYm0n3Xq5mAepyD8QOek7r3l2CMgDVWK2lnS5mbz8ogwUwBCpe"], ["created_at", "2015-03-01 08:34:50.186097"], ["updated_at", "2015-03-01 08:34:50.186097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$wzlxCW7Q3CfrsRJt01YKrepUYpDm1am6S02WL2DIvKLq1XiRlS2P."], ["created_at", "2015-03-01 08:34:50.190991"], ["updated_at", "2015-03-01 08:34:50.190991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.192785"], ["user_id", "d357f1f4-bfed-11e4-85da-705681abff85"], ["created_at", "2015-03-01 08:34:50.194291"], ["updated_at", "2015-03-01 08:34:50.194291"], ["token", "TzXJx0W-ROgVWfnZjL_jZReIxaFWtzFRbMXZVVzYBeg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.198737"], ["updated_at", "2015-03-01 08:34:50.198737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd357f1f4-bfed-11e4-85da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd359dd84-bfed-11e4-84dd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d357f1f4-bfed-11e4-85da-705681abff85"], ["organization_id", "d359dd84-bfed-11e4-84dd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:50.202248"], ["updated_at", "2015-03-01 08:34:50.202248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd358b1e8-bfed-11e4-90a6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd359dd84-bfed-11e4-84dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d358b1e8-bfed-11e4-90a6-705681abff85"], ["organization_id", "d359dd84-bfed-11e4-84dd-705681abff85"], ["created_at", "2015-03-01 08:34:50.206428"], ["updated_at", "2015-03-01 08:34:50.206428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.219664"], ["updated_at", "2015-03-01 08:34:50.219664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'd35d19ae-bfed-11e4-bf1b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "d35d19ae-bfed-11e4-bf1b-705681abff85"], ["created_at", "2015-03-01 08:34:50.222910"], ["updated_at", "2015-03-01 08:34:50.222910"], ["token", "P7V19KjWZtDpMlegh7yQMENlWsGg7DVI5IpH4zzV5-U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.240603"], ["updated_at", "2015-03-01 08:34:50.240603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'd3604192-bfed-11e4-b994-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "d3604192-bfed-11e4-b994-705681abff85"], ["created_at", "2015-03-01 08:34:50.243711"], ["updated_at", "2015-03-01 08:34:50.243711"], ["token", "741hU0ruSAL4HQ-bsN46LlZSOTo_ZnqxQqtyq3SKT2M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d3604192-bfed-11e4-b994-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'd3604192-bfed-11e4-b994-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d3604192-bfed-11e4-b994-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'd3604192-bfed-11e4-b994-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.3ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.546844"], ["updated_at", "2015-03-01 08:34:50.546844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd38efc08-bfed-11e4-8e53-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d38efc08-bfed-11e4-8e53-705681abff85"], ["created_at", "2015-03-01 08:34:50.550382"], ["updated_at", "2015-03-01 08:34:50.550382"], ["token", "flVOty4EBNtfh19dttXn5IJh55mjc7laQU-FTkO3sVc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.6ms) Clubhouse::Mailer#invitation: processed outbound mail in 17.6ms Sent mail to john@example.com (9.4ms) Date: Sun, 01 Mar 2015 00:34:50 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf2a8cc88_138723fca49465bec86646@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/flVOty4EBNtfh19dttXn5IJh55mjc7laQU-FTkO3sVc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.586608"], ["updated_at", "2015-03-01 08:34:50.586608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd39512fa-bfed-11e4-bdcb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d39512fa-bfed-11e4-bdcb-705681abff85"], ["created_at", "2015-03-01 08:34:50.590393"], ["updated_at", "2015-03-01 08:34:50.590393"], ["token", "BJZSWzsY9um_hd0X24y6SastpsrcWhFr_ycwlbCLD0A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (2.8ms) Date: Sun, 01 Mar 2015 00:34:50 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf2a9117f_138723fca49465bec86758@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/BJZSWzsY9um_hd0X24y6SastpsrcWhFr_ycwlbCLD0A If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.600388"], ["updated_at", "2015-03-01 08:34:50.600388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd3972f9a-bfed-11e4-90c2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d3972f9a-bfed-11e4-90c2-705681abff85"], ["created_at", "2015-03-01 08:34:50.604036"], ["updated_at", "2015-03-01 08:34:50.604036"], ["token", "xi6bhK3MpanVFuNzmiIsUDQZUNAy6xJhs-uVS9vpRw8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.8ms) Date: Sun, 01 Mar 2015 00:34:50 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf2a94635_138723fca49465bec86868@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/xi6bhK3MpanVFuNzmiIsUDQZUNAy6xJhs-uVS9vpRw8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.614095"], ["updated_at", "2015-03-01 08:34:50.614095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd399540a-bfed-11e4-a3c1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d399540a-bfed-11e4-a3c1-705681abff85"], ["created_at", "2015-03-01 08:34:50.621380"], ["updated_at", "2015-03-01 08:34:50.621380"], ["token", "DA7huZWqUJcamY_ScirazLiCXBNWOFU1ZMvd7HXnmzc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.5ms) Date: Sun, 01 Mar 2015 00:34:50 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf2a98ab9_138723fca49465bec869be@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/DA7huZWqUJcamY_ScirazLiCXBNWOFU1ZMvd7HXnmzc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$P.dRTQok1DANfsW./onD0OIXTeUZWictojrIppYLde74i66vRyZgO"], ["created_at", "2015-03-01 08:34:50.631192"], ["updated_at", "2015-03-01 08:34:50.631192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.632729"], ["user_id", "d39bda36-bfed-11e4-a4fd-705681abff85"], ["created_at", "2015-03-01 08:34:50.633476"], ["updated_at", "2015-03-01 08:34:50.633476"], ["token", "8wFWPhWTeyrukxDEzjHdtTLTBqWj4M3eZIFGluIAOHA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.636652"], ["updated_at", "2015-03-01 08:34:50.636652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd39bda36-bfed-11e4-a4fd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd39cb0c8-bfed-11e4-97ef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d39bda36-bfed-11e4-a4fd-705681abff85"], ["organization_id", "d39cb0c8-bfed-11e4-97ef-705681abff85"], ["created_at", "2015-03-01 08:34:50.640919"], ["updated_at", "2015-03-01 08:34:50.640919"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-5" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.650344' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8wFWPhWTeyrukxDEzjHdtTLTBqWj4M3eZIFGluIAOHA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.652444"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.654189"], ["id", "d39c3832-bfed-11e4-a438-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d39bda36-bfed-11e4-a4fd-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d39bda36-bfed-11e4-a4fd-705681abff85"], ["name", "org-5"]] Completed 200 OK in 22ms (Views: 2.0ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$b9X0onsd2KQyihWoqBs3jOuKdT41.yqYoqYMxReET4xTU.HmkMFiC"], ["created_at", "2015-03-01 08:34:50.681711"], ["updated_at", "2015-03-01 08:34:50.681711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.683428"], ["user_id", "d3a395d2-bfed-11e4-80d4-705681abff85"], ["created_at", "2015-03-01 08:34:50.684205"], ["updated_at", "2015-03-01 08:34:50.684205"], ["token", "wG1-89PTIBJPVRJwDs7EwsRQ2hlpvUYUxo2ZbmISFmI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.687702"], ["updated_at", "2015-03-01 08:34:50.687702"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3a395d2-bfed-11e4-80d4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3a48564-bfed-11e4-95f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3a395d2-bfed-11e4-80d4-705681abff85"], ["organization_id", "d3a48564-bfed-11e4-95f6-705681abff85"], ["created_at", "2015-03-01 08:34:50.692412"], ["updated_at", "2015-03-01 08:34:50.692412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$mT9HJIHxJR.IV.ovRLWYYOfYwbxQbLWeLTduNPAMzPc34UoaZOEEO"], ["created_at", "2015-03-01 08:34:50.704020"], ["updated_at", "2015-03-01 08:34:50.704020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.705872"], ["user_id", "d3a6fff6-bfed-11e4-abbc-705681abff85"], ["created_at", "2015-03-01 08:34:50.706612"], ["updated_at", "2015-03-01 08:34:50.706612"], ["token", "X3EcVesVIirtvmwVY65vrSNZ2MgasclWJDM1VofZIyI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.709824"], ["updated_at", "2015-03-01 08:34:50.709824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3a6fff6-bfed-11e4-abbc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3a7d76e-bfed-11e4-beb7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3a6fff6-bfed-11e4-abbc-705681abff85"], ["organization_id", "d3a7d76e-bfed-11e4-beb7-705681abff85"], ["created_at", "2015-03-01 08:34:50.712954"], ["updated_at", "2015-03-01 08:34:50.712954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$adnWwJyeV2Rm1RtfWzVVVu.AVlsT7MsqsrYBzPSVncjV329Nc1vPy"], ["created_at", "2015-03-01 08:34:50.726226"], ["updated_at", "2015-03-01 08:34:50.726226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.728029"], ["user_id", "d3aa625e-bfed-11e4-8e14-705681abff85"], ["created_at", "2015-03-01 08:34:50.728819"], ["updated_at", "2015-03-01 08:34:50.728819"], ["token", "3E3m1rokByc8AYSLLNk8qYM1bKFDFsNE0PbDFaxQ0yM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.732079"], ["updated_at", "2015-03-01 08:34:50.732079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3aa625e-bfed-11e4-8e14-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3ab3d00-bfed-11e4-bd54-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3aa625e-bfed-11e4-8e14-705681abff85"], ["organization_id", "d3ab3d00-bfed-11e4-bd54-705681abff85"], ["created_at", "2015-03-01 08:34:50.735084"], ["updated_at", "2015-03-01 08:34:50.735084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-8" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-8", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.740388' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3E3m1rokByc8AYSLLNk8qYM1bKFDFsNE0PbDFaxQ0yM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.742033"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.743020"], ["id", "d3aac686-bfed-11e4-a26c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d3aa625e-bfed-11e4-8e14-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d3aa625e-bfed-11e4-8e14-705681abff85"], ["name", "org-8"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd3ab3d00-bfed-11e4-bd54-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$rUUy7VyRd8RjjuQM86Jg8OKRQ/wSIH1LzFzY1KEgxQV6k2LfIlOdu"], ["created_at", "2015-03-01 08:34:50.757778"], ["updated_at", "2015-03-01 08:34:50.757778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.759321"], ["user_id", "d3af2b7c-bfed-11e4-9ed0-705681abff85"], ["created_at", "2015-03-01 08:34:50.760061"], ["updated_at", "2015-03-01 08:34:50.760061"], ["token", "X5TMWaa_YIkcScnSk6lPdOsRzjHK0nKWHwscZr-irKE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.763210"], ["updated_at", "2015-03-01 08:34:50.763210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3af2b7c-bfed-11e4-9ed0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3affcbe-bfed-11e4-acdd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3af2b7c-bfed-11e4-9ed0-705681abff85"], ["organization_id", "d3affcbe-bfed-11e4-acdd-705681abff85"], ["created_at", "2015-03-01 08:34:50.766401"], ["updated_at", "2015-03-01 08:34:50.766401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.770898' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X5TMWaa_YIkcScnSk6lPdOsRzjHK0nKWHwscZr-irKE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.772402"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.773411"], ["id", "d3af88d8-bfed-11e4-a8bb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d3af2b7c-bfed-11e4-9ed0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d3af2b7c-bfed-11e4-9ed0-705681abff85"], ["name", "org-9"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd3affcbe-bfed-11e4-acdd-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:34:50.778811"], ["id", "d3affcbe-bfed-11e4-acdd-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$.rAerIQtvGWN4XWgmyHuMuE26Treo7I4wP2xzD2E1B5LogpAwFDhy"], ["created_at", "2015-03-01 08:34:50.788261"], ["updated_at", "2015-03-01 08:34:50.788261"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.790586"], ["user_id", "d3b3ded8-bfed-11e4-9d0f-705681abff85"], ["created_at", "2015-03-01 08:34:50.791496"], ["updated_at", "2015-03-01 08:34:50.791496"], ["token", "IdQK_SoQrHtHg1J-CyNFPZpxXqUyPYHQHDw338GMSPI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.794881"], ["updated_at", "2015-03-01 08:34:50.794881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3b3ded8-bfed-11e4-9d0f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3b4d252-bfed-11e4-874b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3b3ded8-bfed-11e4-9d0f-705681abff85"], ["organization_id", "d3b4d252-bfed-11e4-874b-705681abff85"], ["created_at", "2015-03-01 08:34:50.798053"], ["updated_at", "2015-03-01 08:34:50.798053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$XZm0zpDEA1nFSl/zPw7Tle6O/rfNnFKyq9FVOhotUkWieU1B/pTMS"], ["created_at", "2015-03-01 08:34:50.810804"], ["updated_at", "2015-03-01 08:34:50.810804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.812380"], ["user_id", "d3b743ac-bfed-11e4-9074-705681abff85"], ["created_at", "2015-03-01 08:34:50.813126"], ["updated_at", "2015-03-01 08:34:50.813126"], ["token", "aZBSEl1odsXGRWnTeHYVtyZX1D4cgtuzrMyas_aRv-8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.816229"], ["updated_at", "2015-03-01 08:34:50.816229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3b743ac-bfed-11e4-9074-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3b81304-bfed-11e4-850f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3b743ac-bfed-11e4-9074-705681abff85"], ["organization_id", "d3b81304-bfed-11e4-850f-705681abff85"], ["created_at", "2015-03-01 08:34:50.819262"], ["updated_at", "2015-03-01 08:34:50.819262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/d3b81304-bfed-11e4-850f-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"d3b81304-bfed-11e4-850f-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.823543' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aZBSEl1odsXGRWnTeHYVtyZX1D4cgtuzrMyas_aRv-8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.824991"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.825987"], ["id", "d3b7a1f8-bfed-11e4-a054-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d3b743ac-bfed-11e4-9074-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d3b743ac-bfed-11e4-9074-705681abff85"], ["id", "d3b81304-bfed-11e4-850f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd3b81304-bfed-11e4-850f-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$HNTZX.6GNbKFLu6YI.7bl.EWKsxEgDuNUYuuwIPeWsCMFiI1sf7R2"], ["created_at", "2015-03-01 08:34:50.838340"], ["updated_at", "2015-03-01 08:34:50.838340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.839999"], ["user_id", "d3bb7878-bfed-11e4-8293-705681abff85"], ["created_at", "2015-03-01 08:34:50.840847"], ["updated_at", "2015-03-01 08:34:50.840847"], ["token", "9TBRdXntrjaGcHayMdWTO1xWx9K8DF7zSS6rU5L9_-g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.844662"], ["updated_at", "2015-03-01 08:34:50.844662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3bb7878-bfed-11e4-8293-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3bc6be8-bfed-11e4-8916-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3bb7878-bfed-11e4-8293-705681abff85"], ["organization_id", "d3bc6be8-bfed-11e4-8916-705681abff85"], ["created_at", "2015-03-01 08:34:50.847776"], ["updated_at", "2015-03-01 08:34:50.847776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/d3bc6be8-bfed-11e4-8916-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"d3bc6be8-bfed-11e4-8916-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.852407' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9TBRdXntrjaGcHayMdWTO1xWx9K8DF7zSS6rU5L9_-g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.853822"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.854812"], ["id", "d3bbe736-bfed-11e4-9cba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d3bb7878-bfed-11e4-8293-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d3bb7878-bfed-11e4-8293-705681abff85"], ["id", "d3bc6be8-bfed-11e4-8916-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd3bc6be8-bfed-11e4-8916-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:34:50.861200"], ["id", "d3bc6be8-bfed-11e4-8916-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$c1C4XS97jCV17zk652N.bOZP5liIZFI6pYsTdzAbubin27hhMLm3K"], ["created_at", "2015-03-01 08:34:50.868521"], ["updated_at", "2015-03-01 08:34:50.868521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.870069"], ["user_id", "d3c011bc-bfed-11e4-82b8-705681abff85"], ["created_at", "2015-03-01 08:34:50.870853"], ["updated_at", "2015-03-01 08:34:50.870853"], ["token", "J_6TijjCiicnAXQvSd8KhuHhPxWNkTRz6kb_SxUgZc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.874027"], ["updated_at", "2015-03-01 08:34:50.874027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3c011bc-bfed-11e4-82b8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3c0e4c0-bfed-11e4-b5e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3c011bc-bfed-11e4-82b8-705681abff85"], ["organization_id", "d3c0e4c0-bfed-11e4-b5e8-705681abff85"], ["created_at", "2015-03-01 08:34:50.877069"], ["updated_at", "2015-03-01 08:34:50.877069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$O0wQ4S6hUigZs3v8sHh1K.YnEmtLLPXYi5OHP.4oU262Q8qBpDxOG"], ["created_at", "2015-03-01 08:34:50.889186"], ["updated_at", "2015-03-01 08:34:50.889186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.890789"], ["user_id", "d3c33a9a-bfed-11e4-84f0-705681abff85"], ["created_at", "2015-03-01 08:34:50.891510"], ["updated_at", "2015-03-01 08:34:50.891510"], ["token", "lLGonqn4oS28xhdGd-OtTXQjrm7JYu8YZqKHpbTu6-8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.894744"], ["updated_at", "2015-03-01 08:34:50.894744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3c33a9a-bfed-11e4-84f0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3c40ef2-bfed-11e4-bd4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3c33a9a-bfed-11e4-84f0-705681abff85"], ["organization_id", "d3c40ef2-bfed-11e4-bd4b-705681abff85"], ["created_at", "2015-03-01 08:34:50.897768"], ["updated_at", "2015-03-01 08:34:50.897768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.902663' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lLGonqn4oS28xhdGd-OtTXQjrm7JYu8YZqKHpbTu6-8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.904230"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.905256"], ["id", "d3c398a0-bfed-11e4-8340-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$x7mO/OVHAA1LkAOnSvqkD.0DMIrg5k7K8S/wYrM3O3qb.nw/wiKyO"], ["created_at", "2015-03-01 08:34:50.914344"], ["updated_at", "2015-03-01 08:34:50.914344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.915925"], ["user_id", "d3c70f58-bfed-11e4-9eb8-705681abff85"], ["created_at", "2015-03-01 08:34:50.916677"], ["updated_at", "2015-03-01 08:34:50.916677"], ["token", "xBKHRxmixkCpf7e1RAZ_bENt49Hn8q1Udix30Cepjk8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.920006"], ["updated_at", "2015-03-01 08:34:50.920006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3c70f58-bfed-11e4-9eb8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3c7eac2-bfed-11e4-ae51-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3c70f58-bfed-11e4-9eb8-705681abff85"], ["organization_id", "d3c7eac2-bfed-11e4-ae51-705681abff85"], ["created_at", "2015-03-01 08:34:50.923672"], ["updated_at", "2015-03-01 08:34:50.923672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-15" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-15", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.927937' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xBKHRxmixkCpf7e1RAZ_bENt49Hn8q1Udix30Cepjk8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.929324"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.930251"], ["id", "d3c76f8e-bfed-11e4-a4dc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-15"]] Completed 200 OK in 4ms (ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$4ERzkNCcyMr5j6oTFbob7e2bwHXP1X.lVyUeCZX8QF3aMT9vWNIpa"], ["created_at", "2015-03-01 08:34:50.937233"], ["updated_at", "2015-03-01 08:34:50.937233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.941199"], ["user_id", "d3ca8d04-bfed-11e4-b2cc-705681abff85"], ["created_at", "2015-03-01 08:34:50.941972"], ["updated_at", "2015-03-01 08:34:50.941972"], ["token", "_jf5uOcuVkR2IKwRrbs1jelh2If0QfNGdG8XoDZfdv0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.945552"], ["updated_at", "2015-03-01 08:34:50.945552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3ca8d04-bfed-11e4-b2cc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3cbd934-bfed-11e4-bf68-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3ca8d04-bfed-11e4-b2cc-705681abff85"], ["organization_id", "d3cbd934-bfed-11e4-bf68-705681abff85"], ["created_at", "2015-03-01 08:34:50.949107"], ["updated_at", "2015-03-01 08:34:50.949107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$wmqXRiybvho4myid2XpEqOHwEb9v/h6QBcPMbI3xfP3lPEUZJaVhi"], ["created_at", "2015-03-01 08:34:50.953250"], ["updated_at", "2015-03-01 08:34:50.953250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.956331"], ["updated_at", "2015-03-01 08:34:50.956331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3ccfc56-bfed-11e4-b916-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3cd7a96-bfed-11e4-a8ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3ccfc56-bfed-11e4-b916-705681abff85"], ["organization_id", "d3cd7a96-bfed-11e4-a8ac-705681abff85"], ["created_at", "2015-03-01 08:34:50.960509"], ["updated_at", "2015-03-01 08:34:50.960509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:50.964884' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_jf5uOcuVkR2IKwRrbs1jelh2If0QfNGdG8XoDZfdv0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:50.966253"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:50.967220"], ["id", "d3cb4ea6-bfed-11e4-bccc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d3ca8d04-bfed-11e4-b2cc-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$yWA5rtPyY9EyTpALvR9NLO9P18fUQ6tXPmjbS/f43jEpdj2LyLkV6"], ["created_at", "2015-03-01 08:34:50.976464"], ["updated_at", "2015-03-01 08:34:50.976464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:50.978017"], ["user_id", "d3d08a10-bfed-11e4-a9b4-705681abff85"], ["created_at", "2015-03-01 08:34:50.978807"], ["updated_at", "2015-03-01 08:34:50.978807"], ["token", "8kh6RbJet0lDh_h1HRfMGZTLbChWkgEPLLoqMh7k3eo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.982085"], ["updated_at", "2015-03-01 08:34:50.982085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3d08a10-bfed-11e4-a9b4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3d162b4-bfed-11e4-a53d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3d08a10-bfed-11e4-a9b4-705681abff85"], ["organization_id", "d3d162b4-bfed-11e4-a53d-705681abff85"], ["created_at", "2015-03-01 08:34:50.985101"], ["updated_at", "2015-03-01 08:34:50.985101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$WQDmnY.xdscGetdf4SmMregBtTtCQzQ3KOYLF0a/GHQnTn2Efdcqq"], ["created_at", "2015-03-01 08:34:50.989444"], ["updated_at", "2015-03-01 08:34:50.989444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:50.992495"], ["updated_at", "2015-03-01 08:34:50.992495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3d28568-bfed-11e4-adfc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3d2f91c-bfed-11e4-9bfb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3d28568-bfed-11e4-adfc-705681abff85"], ["organization_id", "d3d2f91c-bfed-11e4-9bfb-705681abff85"], ["created_at", "2015-03-01 08:34:50.995557"], ["updated_at", "2015-03-01 08:34:50.995557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:34:50 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$b0PLcAbwld.z/xzkbaByyOKEMYrZ4GzHuzLsUDrzep9.VuOyN5ql."], ["created_at", "2015-03-01 08:34:51.008740"], ["updated_at", "2015-03-01 08:34:51.008740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.011024"], ["user_id", "d3d58196-bfed-11e4-a39f-705681abff85"], ["created_at", "2015-03-01 08:34:51.011890"], ["updated_at", "2015-03-01 08:34:51.011890"], ["token", "zVYP0DImhe_WRW0uyOK2qdUBCvyvlMOKfACF0qPjJWE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.016778"], ["updated_at", "2015-03-01 08:34:51.016778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3d58196-bfed-11e4-a39f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3d6b14c-bfed-11e4-b471-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3d58196-bfed-11e4-a39f-705681abff85"], ["organization_id", "d3d6b14c-bfed-11e4-b471-705681abff85"], ["created_at", "2015-03-01 08:34:51.020126"], ["updated_at", "2015-03-01 08:34:51.020126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-20" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.025855' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zVYP0DImhe_WRW0uyOK2qdUBCvyvlMOKfACF0qPjJWE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.027268"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.028196"], ["id", "d3d5f892-bfed-11e4-b2e6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d3d58196-bfed-11e4-a39f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d3d58196-bfed-11e4-a39f-705681abff85"], ["name", "org-20"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d3d6b14c-bfed-11e4-b471-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$scrM2qZL7yXedDxxylz/5epV58Okwa3b0v8QNXyQULeHxYFnS7Sby"], ["created_at", "2015-03-01 08:34:51.039924"], ["updated_at", "2015-03-01 08:34:51.039924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.041643"], ["user_id", "d3da3d62-bfed-11e4-b080-705681abff85"], ["created_at", "2015-03-01 08:34:51.042407"], ["updated_at", "2015-03-01 08:34:51.042407"], ["token", "botau1Y287TcykUYL_lzfhFcmPWsmTyb8JhKnR41N4U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.045586"], ["updated_at", "2015-03-01 08:34:51.045586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3da3d62-bfed-11e4-b080-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3db16d8-bfed-11e4-978b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3da3d62-bfed-11e4-b080-705681abff85"], ["organization_id", "d3db16d8-bfed-11e4-978b-705681abff85"], ["created_at", "2015-03-01 08:34:51.048763"], ["updated_at", "2015-03-01 08:34:51.048763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$StBXz45wGrV1.ELbtBuOEOYhCNn5aGLV/ZtFouaypOSPSxZX3c6DG"], ["created_at", "2015-03-01 08:34:51.062295"], ["updated_at", "2015-03-01 08:34:51.062295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.063937"], ["user_id", "d3dda5ce-bfed-11e4-9607-705681abff85"], ["created_at", "2015-03-01 08:34:51.064679"], ["updated_at", "2015-03-01 08:34:51.064679"], ["token", "jtXzlGro8fcCmgstinDR6XiHU5jLanADwrYlCHaOnIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.067838"], ["updated_at", "2015-03-01 08:34:51.067838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3dda5ce-bfed-11e4-9607-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3de77c4-bfed-11e4-a36b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3dda5ce-bfed-11e4-9607-705681abff85"], ["organization_id", "d3de77c4-bfed-11e4-a36b-705681abff85"], ["created_at", "2015-03-01 08:34:51.070981"], ["updated_at", "2015-03-01 08:34:51.070981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$AkJx/Nv1pfMd5Hg8hHChb.0WQrwq2FPsXBW4KvjcHP1J7mF.ZIZ/u"], ["created_at", "2015-03-01 08:34:51.082974"], ["updated_at", "2015-03-01 08:34:51.082974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.084515"], ["user_id", "d3e0ca56-bfed-11e4-874f-705681abff85"], ["created_at", "2015-03-01 08:34:51.085250"], ["updated_at", "2015-03-01 08:34:51.085250"], ["token", "8I6-6QMs-UMmfiZtdrgNk9MCcDDMLGYLQuawv6zIq9c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.094205"], ["updated_at", "2015-03-01 08:34:51.094205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3e0ca56-bfed-11e4-874f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3e2860c-bfed-11e4-98e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3e0ca56-bfed-11e4-874f-705681abff85"], ["organization_id", "d3e2860c-bfed-11e4-98e0-705681abff85"], ["created_at", "2015-03-01 08:34:51.097543"], ["updated_at", "2015-03-01 08:34:51.097543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.102371' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8I6-6QMs-UMmfiZtdrgNk9MCcDDMLGYLQuawv6zIq9c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.103846"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.104778"], ["id", "d3e1273a-bfed-11e4-9a0e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d3e0ca56-bfed-11e4-874f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$b52ZOSA20kkuyeCr9VFgc.qHoXkaXc7HHpX1fklYFLsX6pnIIwxly"], ["created_at", "2015-03-01 08:34:51.117497"], ["updated_at", "2015-03-01 08:34:51.117497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.119080"], ["user_id", "d3e60ff2-bfed-11e4-a91b-705681abff85"], ["created_at", "2015-03-01 08:34:51.119793"], ["updated_at", "2015-03-01 08:34:51.119793"], ["token", "HeFFa1XXOrEss8kaQ0CiB0dw_cQFZViQT28yIGB1jS4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.123033"], ["updated_at", "2015-03-01 08:34:51.123033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3e60ff2-bfed-11e4-a91b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3e6e45e-bfed-11e4-a64b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3e60ff2-bfed-11e4-a91b-705681abff85"], ["organization_id", "d3e6e45e-bfed-11e4-a64b-705681abff85"], ["created_at", "2015-03-01 08:34:51.126045"], ["updated_at", "2015-03-01 08:34:51.126045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.131555' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HeFFa1XXOrEss8kaQ0CiB0dw_cQFZViQT28yIGB1jS4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.133362"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.134301"], ["id", "d3e66eac-bfed-11e4-b729-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d3e60ff2-bfed-11e4-a91b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.138042"], ["updated_at", "2015-03-01 08:34:51.138042"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d3e9325e-bfed-11e4-a99a-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3e60ff2-bfed-11e4-a91b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3e9325e-bfed-11e4-a99a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d3e60ff2-bfed-11e4-a91b-705681abff85"], ["admin", "t"], ["organization_id", "d3e9325e-bfed-11e4-a99a-705681abff85"], ["created_at", "2015-03-01 08:34:51.144283"], ["updated_at", "2015-03-01 08:34:51.144283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$o1inJccK9SAVXMShYZHukOMZci0aqlh/MIjyjq68XygxUNjs0F8y."], ["created_at", "2015-03-01 08:34:51.152054"], ["updated_at", "2015-03-01 08:34:51.152054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.153714"], ["user_id", "d3eb562e-bfed-11e4-a402-705681abff85"], ["created_at", "2015-03-01 08:34:51.154444"], ["updated_at", "2015-03-01 08:34:51.154444"], ["token", "2gv5pH3-vaLabWiW0XhKqzU8fVQLeP8xktfwOuuOiMw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.158401"], ["updated_at", "2015-03-01 08:34:51.158401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3eb562e-bfed-11e4-a402-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3ec4dd6-bfed-11e4-bb10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3eb562e-bfed-11e4-a402-705681abff85"], ["organization_id", "d3ec4dd6-bfed-11e4-bb10-705681abff85"], ["created_at", "2015-03-01 08:34:51.161651"], ["updated_at", "2015-03-01 08:34:51.161651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/d3ec4dd6-bfed-11e4-bb10-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"d3ec4dd6-bfed-11e4-bb10-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.166202' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2gv5pH3-vaLabWiW0XhKqzU8fVQLeP8xktfwOuuOiMw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.167626"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.168615"], ["id", "d3ebb74a-bfed-11e4-af58-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d3eb562e-bfed-11e4-a402-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d3eb562e-bfed-11e4-a402-705681abff85"], ["id", "d3ec4dd6-bfed-11e4-bb10-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d3ec4dd6-bfed-11e4-bb10-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$uoU.gCKMYbMDjXGl89dv0.d2Hx6DCtV6qNArtVjX9M9klWDsdHZb2"], ["created_at", "2015-03-01 08:34:51.178493"], ["updated_at", "2015-03-01 08:34:51.178493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.180043"], ["user_id", "d3ef5e9a-bfed-11e4-86ad-705681abff85"], ["created_at", "2015-03-01 08:34:51.180804"], ["updated_at", "2015-03-01 08:34:51.180804"], ["token", "lK5TLPlGAZTEMR1FpJ0hnIQ9KgZ2GAJXqW-fblgAe98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.184644"], ["updated_at", "2015-03-01 08:34:51.184644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3ef5e9a-bfed-11e4-86ad-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3f04f9e-bfed-11e4-bdca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3ef5e9a-bfed-11e4-86ad-705681abff85"], ["organization_id", "d3f04f9e-bfed-11e4-bdca-705681abff85"], ["created_at", "2015-03-01 08:34:51.187938"], ["updated_at", "2015-03-01 08:34:51.187938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$2csAehwIDXROrNAq/9O2BuE6esp6kpRu9HRV3X2reU0S/m9oOSVi2"], ["created_at", "2015-03-01 08:34:51.200690"], ["updated_at", "2015-03-01 08:34:51.200690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.202271"], ["user_id", "d3f2c148-bfed-11e4-bf45-705681abff85"], ["created_at", "2015-03-01 08:34:51.203011"], ["updated_at", "2015-03-01 08:34:51.203011"], ["token", "PBoUM9h7gzye6Y5Nj3rZCcrL1CT_L_xrKPVfAubcr_U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.206212"], ["updated_at", "2015-03-01 08:34:51.206212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3f2c148-bfed-11e4-bf45-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3f39532-bfed-11e4-8aad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3f2c148-bfed-11e4-bf45-705681abff85"], ["organization_id", "d3f39532-bfed-11e4-8aad-705681abff85"], ["created_at", "2015-03-01 08:34:51.209463"], ["updated_at", "2015-03-01 08:34:51.209463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/d3f39532-bfed-11e4-8aad-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"d3f39532-bfed-11e4-8aad-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.213848' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PBoUM9h7gzye6Y5Nj3rZCcrL1CT_L_xrKPVfAubcr_U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.215254"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.216155"], ["id", "d3f31fc6-bfed-11e4-9870-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d3f2c148-bfed-11e4-bf45-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d3f2c148-bfed-11e4-bf45-705681abff85"], ["id", "d3f39532-bfed-11e4-8aad-705681abff85"]] Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$foMBepY2hfDcpZff4pZoXeapjDnIhK.wNRVV9t4Roc.Tav0itAT/6"], ["created_at", "2015-03-01 08:34:51.226569"], ["updated_at", "2015-03-01 08:34:51.226569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.228146"], ["user_id", "d3f6b3fc-bfed-11e4-bf0a-705681abff85"], ["created_at", "2015-03-01 08:34:51.228894"], ["updated_at", "2015-03-01 08:34:51.228894"], ["token", "UDA0Ds1nhcsEUtytxK3OP3qQSMFeA3SwqFpFzbX0E1s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.232361"], ["updated_at", "2015-03-01 08:34:51.232361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3f6b3fc-bfed-11e4-bf0a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3f79ae2-bfed-11e4-b1f7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3f6b3fc-bfed-11e4-bf0a-705681abff85"], ["organization_id", "d3f79ae2-bfed-11e4-b1f7-705681abff85"], ["created_at", "2015-03-01 08:34:51.235794"], ["updated_at", "2015-03-01 08:34:51.235794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$4zLnyArr56o9e.syzziG8uyggRWDKF/D2gDqzx7JargR9hNqvnD56"], ["created_at", "2015-03-01 08:34:51.249207"], ["updated_at", "2015-03-01 08:34:51.249207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.250815"], ["user_id", "d3fa2898-bfed-11e4-8431-705681abff85"], ["created_at", "2015-03-01 08:34:51.251564"], ["updated_at", "2015-03-01 08:34:51.251564"], ["token", "IzEE3EDQyl4NeaBYh9YZjnrKC9eH3tQSFSeoNGeV51w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.255962"], ["updated_at", "2015-03-01 08:34:51.255962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3fa2898-bfed-11e4-8431-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd3fb3382-bfed-11e4-bf9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d3fa2898-bfed-11e4-8431-705681abff85"], ["organization_id", "d3fb3382-bfed-11e4-bf9c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.259542"], ["updated_at", "2015-03-01 08:34:51.259542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'd3fb3382-bfed-11e4-bf9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "d3fb3382-bfed-11e4-bf9c-705681abff85"], ["created_at", "2015-03-01 08:34:51.263288"], ["updated_at", "2015-03-01 08:34:51.263288"], ["token", "_6R0kH7ghgnX9DrReB_U7Jed3AsOS1qxYNDZynkaVeY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/d3fc506e-bfed-11e4-b030-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"d3fc506e-bfed-11e4-b030-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.274666' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IzEE3EDQyl4NeaBYh9YZjnrKC9eH3tQSFSeoNGeV51w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (5.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.276141"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.277097"], ["id", "d3fa88ba-bfed-11e4-8e89-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$Aah1nzIEuwt41RBr0/1ldeXlC1ePnwXMuVQniLayOT4.1GlSQtISG"], ["created_at", "2015-03-01 08:34:51.291047"], ["updated_at", "2015-03-01 08:34:51.291047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.293725"], ["user_id", "d400a7f4-bfed-11e4-bd78-705681abff85"], ["created_at", "2015-03-01 08:34:51.294536"], ["updated_at", "2015-03-01 08:34:51.294536"], ["token", "6nww_qHEaiRnDgQWME3mfuEOnauv4RSQjD8Gn7aqUdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.297954"], ["updated_at", "2015-03-01 08:34:51.297954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd400a7f4-bfed-11e4-bd78-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd40195c4-bfed-11e4-9c2d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d400a7f4-bfed-11e4-bd78-705681abff85"], ["organization_id", "d40195c4-bfed-11e4-9c2d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.301052"], ["updated_at", "2015-03-01 08:34:51.301052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'd40195c4-bfed-11e4-9c2d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "d40195c4-bfed-11e4-9c2d-705681abff85"], ["created_at", "2015-03-01 08:34:51.304663"], ["updated_at", "2015-03-01 08:34:51.304663"], ["token", "usG56Nt4GuEJztGtqz73TDWn7Y7ixpvkM7AB7coGhyY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$mDdi9oMsjm97BKcOyjKHX.hoP07EGroUtryPSWokjIuc7WmoxSp7."], ["created_at", "2015-03-01 08:34:51.320908"], ["updated_at", "2015-03-01 08:34:51.320908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.322501"], ["user_id", "d40518c0-bfed-11e4-b5bb-705681abff85"], ["created_at", "2015-03-01 08:34:51.323253"], ["updated_at", "2015-03-01 08:34:51.323253"], ["token", "c3TK6YcgZ-G-qEzT31-tfO5uizfRkus2DA0Uce-LYh8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.326544"], ["updated_at", "2015-03-01 08:34:51.326544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd40518c0-bfed-11e4-b5bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd405fbe6-bfed-11e4-bb5b-705681abff85') LIMIT 1 SQL (13.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d40518c0-bfed-11e4-b5bb-705681abff85"], ["organization_id", "d405fbe6-bfed-11e4-bb5b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.330509"], ["updated_at", "2015-03-01 08:34:51.330509"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'd405fbe6-bfed-11e4-bb5b-705681abff85') LIMIT 1 SQL (2.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "d405fbe6-bfed-11e4-bb5b-705681abff85"], ["created_at", "2015-03-01 08:34:51.367600"], ["updated_at", "2015-03-01 08:34:51.367600"], ["token", "KYQnXA1Fq-5rgULx4n9pNZGF6DlinnCJG_7eIKyoF9c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/d40ca73e-bfed-11e4-a29d-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"d40ca73e-bfed-11e4-a29d-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.380688' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "c3TK6YcgZ-G-qEzT31-tfO5uizfRkus2DA0Uce-LYh8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (13.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.383111"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.385107"], ["id", "d40579aa-bfed-11e4-849c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 24ms  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (8.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$Cci31WXUvkphNBcvROdM/eIqdPOd8HJR7tBBHWL3gQf4hxcJp5Vkm"], ["created_at", "2015-03-01 08:34:51.423166"], ["updated_at", "2015-03-01 08:34:51.423166"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.428404"], ["user_id", "d414f3f8-bfed-11e4-9815-705681abff85"], ["created_at", "2015-03-01 08:34:51.430866"], ["updated_at", "2015-03-01 08:34:51.430866"], ["token", "DneJectO5y9yHYBNTJpVWdjWa_lx5koyT2h81xHVZ6w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.438222"], ["updated_at", "2015-03-01 08:34:51.438222"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd414f3f8-bfed-11e4-9815-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd417185e-bfed-11e4-84ef-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d414f3f8-bfed-11e4-9815-705681abff85"], ["organization_id", "d417185e-bfed-11e4-84ef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.456595"], ["updated_at", "2015-03-01 08:34:51.456595"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'd417185e-bfed-11e4-84ef-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "d417185e-bfed-11e4-84ef-705681abff85"], ["created_at", "2015-03-01 08:34:51.470844"], ["updated_at", "2015-03-01 08:34:51.470844"], ["token", "q6WJ8RGd0hjLelh2F3Conqp86Hjqry5bHPCJfM-H6xY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$EsS7ypGIFOCBjgqLt.gp.u5kFzg73G30p867UDCV8kVfrTwXQfhuO"], ["created_at", "2015-03-01 08:34:51.536582"], ["updated_at", "2015-03-01 08:34:51.536582"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.539565"], ["user_id", "d4261d40-bfed-11e4-abc7-705681abff85"], ["created_at", "2015-03-01 08:34:51.541025"], ["updated_at", "2015-03-01 08:34:51.541025"], ["token", "t-IPQIciFzBzqaUGVXk3xQZQDp0u66F_bDrc4M9M5ZU"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.557141"], ["updated_at", "2015-03-01 08:34:51.557141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4261d40-bfed-11e4-abc7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4297864-bfed-11e4-86a2-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4261d40-bfed-11e4-abc7-705681abff85"], ["organization_id", "d4297864-bfed-11e4-86a2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.565368"], ["updated_at", "2015-03-01 08:34:51.565368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'd4297864-bfed-11e4-86a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "d4297864-bfed-11e4-86a2-705681abff85"], ["created_at", "2015-03-01 08:34:51.571008"], ["updated_at", "2015-03-01 08:34:51.571008"], ["token", "W0tIAzmXMBJyeKiTDDRbi-UryoLqkvdY4qk_r_ISpHw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$SYyIsGOY34.P23UCzzH99eDPU9I3qOU1cCLkPYJbVuRe27hhwuDk2"], ["created_at", "2015-03-01 08:34:51.576622"], ["updated_at", "2015-03-01 08:34:51.576622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.580767"], ["updated_at", "2015-03-01 08:34:51.580767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd42c2f3c-bfed-11e4-93db-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd42cc30c-bfed-11e4-a7df-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d42c2f3c-bfed-11e4-93db-705681abff85"], ["organization_id", "d42cc30c-bfed-11e4-a7df-705681abff85"], ["created_at", "2015-03-01 08:34:51.589793"], ["updated_at", "2015-03-01 08:34:51.589793"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.600908' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "t-IPQIciFzBzqaUGVXk3xQZQDp0u66F_bDrc4M9M5ZU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.603174"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.604559"], ["id", "d426dcb2-bfed-11e4-992e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 9ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$2BXbS1Gn/6TvJmdl2NoMqeMjgs51riPy81kIW5jHuZz2Yf5moR/La"], ["created_at", "2015-03-01 08:34:51.615792"], ["updated_at", "2015-03-01 08:34:51.615792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.618642"], ["user_id", "d43237a6-bfed-11e4-b9fb-705681abff85"], ["created_at", "2015-03-01 08:34:51.619866"], ["updated_at", "2015-03-01 08:34:51.619866"], ["token", "4th9ksGsKkWhSGPliJX_S58tRDN3iK1NOcnuz4VxjfU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.624739"], ["updated_at", "2015-03-01 08:34:51.624739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd43237a6-bfed-11e4-b9fb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4337846-bfed-11e4-95c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d43237a6-bfed-11e4-b9fb-705681abff85"], ["organization_id", "d4337846-bfed-11e4-95c5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.628339"], ["updated_at", "2015-03-01 08:34:51.628339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'd4337846-bfed-11e4-95c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "d4337846-bfed-11e4-95c5-705681abff85"], ["created_at", "2015-03-01 08:34:51.631844"], ["updated_at", "2015-03-01 08:34:51.631844"], ["token", "V2kYYENBK5NT1lbxrFKsrrNkItfdx8_KJRYzi3Qdr5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$RoT5qmFz52C7tlP7dlAdXe18Idn5p3RGTGXVRyyhAkR6yXtKVuj.C"], ["created_at", "2015-03-01 08:34:51.636674"], ["updated_at", "2015-03-01 08:34:51.636674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.639769"], ["updated_at", "2015-03-01 08:34:51.639769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd435481a-bfed-11e4-8559-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd435bf0c-bfed-11e4-b7d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d435481a-bfed-11e4-8559-705681abff85"], ["organization_id", "d435bf0c-bfed-11e4-b7d0-705681abff85"], ["created_at", "2015-03-01 08:34:51.643037"], ["updated_at", "2015-03-01 08:34:51.643037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$ZJPl2vzdrvTws0INBRRL8enkU7mQlX3QN3W9TwvWIqSBoCVGlsw0."], ["created_at", "2015-03-01 08:34:51.658696"], ["updated_at", "2015-03-01 08:34:51.658696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.660398"], ["user_id", "d438a5f0-bfed-11e4-b921-705681abff85"], ["created_at", "2015-03-01 08:34:51.661404"], ["updated_at", "2015-03-01 08:34:51.661404"], ["token", "otbQb2o1rM3DPh8FIdA13vPpbPAJzUbhWpZIi-c6LCI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.665076"], ["updated_at", "2015-03-01 08:34:51.665076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd438a5f0-bfed-11e4-b921-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4399a32-bfed-11e4-9434-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d438a5f0-bfed-11e4-b921-705681abff85"], ["organization_id", "d4399a32-bfed-11e4-9434-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.668104"], ["updated_at", "2015-03-01 08:34:51.668104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'd4399a32-bfed-11e4-9434-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "d4399a32-bfed-11e4-9434-705681abff85"], ["created_at", "2015-03-01 08:34:51.671567"], ["updated_at", "2015-03-01 08:34:51.671567"], ["token", "bxKTkUb2OcKvJaXxUsFb-3yZd0lzlBFHOepdfQt6RYY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/d43aa454-bfed-11e4-b887-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"d43aa454-bfed-11e4-b887-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.679501' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "otbQb2o1rM3DPh8FIdA13vPpbPAJzUbhWpZIi-c6LCI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.682544"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.683744"], ["id", "d4391bf2-bfed-11e4-a1ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$ktIrBAkQsnQDU47LVvFtVe0QBG/E5miG3Yh./ILnrORRvbaIr.UqO"], ["created_at", "2015-03-01 08:34:51.694276"], ["updated_at", "2015-03-01 08:34:51.694276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.696086"], ["user_id", "d43e17a6-bfed-11e4-bbb8-705681abff85"], ["created_at", "2015-03-01 08:34:51.697040"], ["updated_at", "2015-03-01 08:34:51.697040"], ["token", "5Fcq3FA7BYLcpkbTbqhptfvFOvyuthBNXz1LZD_9Rq0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.700377"], ["updated_at", "2015-03-01 08:34:51.700377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd43e17a6-bfed-11e4-bbb8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd43efd24-bfed-11e4-a90f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d43e17a6-bfed-11e4-bbb8-705681abff85"], ["organization_id", "d43efd24-bfed-11e4-a90f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.704468"], ["updated_at", "2015-03-01 08:34:51.704468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'd43efd24-bfed-11e4-a90f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "d43efd24-bfed-11e4-a90f-705681abff85"], ["created_at", "2015-03-01 08:34:51.707747"], ["updated_at", "2015-03-01 08:34:51.707747"], ["token", "WcpDcIlg4yVaW5ZrafmtY9-h_hlVTBQtWEzhSmYLm4k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$K1cZdsGd0tEGDm80ehOzRuvcu7nQL0igprtRCzGqa41DVaeEfL.uy"], ["created_at", "2015-03-01 08:34:51.720327"], ["updated_at", "2015-03-01 08:34:51.720327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.721957"], ["user_id", "d4420c9e-bfed-11e4-a4dd-705681abff85"], ["created_at", "2015-03-01 08:34:51.722815"], ["updated_at", "2015-03-01 08:34:51.722815"], ["token", "vmDJux5uykK4xJE_5-QZMCMlMH_9Y3i7gz6Obd7MnVA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.726277"], ["updated_at", "2015-03-01 08:34:51.726277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4420c9e-bfed-11e4-a4dd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd442f816-bfed-11e4-9711-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4420c9e-bfed-11e4-a4dd-705681abff85"], ["organization_id", "d442f816-bfed-11e4-9711-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.730371"], ["updated_at", "2015-03-01 08:34:51.730371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'd442f816-bfed-11e4-9711-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "d442f816-bfed-11e4-9711-705681abff85"], ["created_at", "2015-03-01 08:34:51.734293"], ["updated_at", "2015-03-01 08:34:51.734293"], ["token", "ofA1KzLiuP2r_LXXZteTc61BOERti98b7BaHudHi4vk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$A5/ONQUH0L6DXFfYz6fj9.aCHf2guURtws84FXzoCsHzPeYXRMI/S"], ["created_at", "2015-03-01 08:34:51.746694"], ["updated_at", "2015-03-01 08:34:51.746694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.748581"], ["user_id", "d4461136-bfed-11e4-88f1-705681abff85"], ["created_at", "2015-03-01 08:34:51.750011"], ["updated_at", "2015-03-01 08:34:51.750011"], ["token", "hiiE6MQb4Ohv6-2AJ3hG4C5D-M7jH41_GewUyA-3SnU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.754201"], ["updated_at", "2015-03-01 08:34:51.754201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4461136-bfed-11e4-88f1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd44733b8-bfed-11e4-a8c4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4461136-bfed-11e4-88f1-705681abff85"], ["organization_id", "d44733b8-bfed-11e4-a8c4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.757376"], ["updated_at", "2015-03-01 08:34:51.757376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'd44733b8-bfed-11e4-a8c4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "d44733b8-bfed-11e4-a8c4-705681abff85"], ["created_at", "2015-03-01 08:34:51.761070"], ["updated_at", "2015-03-01 08:34:51.761070"], ["token", "uKyrgE7fzZPRtpcna4I-qaoPxBBZyFG11AhBR0s1K6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.765832' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hiiE6MQb4Ohv6-2AJ3hG4C5D-M7jH41_GewUyA-3SnU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.767240"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.768166"], ["id", "d446ad44-bfed-11e4-93eb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$Qt2VMpNCTacZX3dZ5XfVzuIlbZ/EX8HRrWoRo6ZajRvm2erfUUtZq"], ["created_at", "2015-03-01 08:34:51.781353"], ["updated_at", "2015-03-01 08:34:51.781353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.791068"], ["user_id", "d44c9204-bfed-11e4-8503-705681abff85"], ["created_at", "2015-03-01 08:34:51.791860"], ["updated_at", "2015-03-01 08:34:51.791860"], ["token", "IqyReHkE0BWZUQm3Jd0OB9Yf8ZQZ6waEYT810D8aDbM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.796414"], ["updated_at", "2015-03-01 08:34:51.796414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd44c9204-bfed-11e4-8503-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd44da5e0-bfed-11e4-83e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d44c9204-bfed-11e4-8503-705681abff85"], ["organization_id", "d44da5e0-bfed-11e4-83e2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.799646"], ["updated_at", "2015-03-01 08:34:51.799646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'd44da5e0-bfed-11e4-83e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "d44da5e0-bfed-11e4-83e2-705681abff85"], ["created_at", "2015-03-01 08:34:51.803101"], ["updated_at", "2015-03-01 08:34:51.803101"], ["token", "DabPF_k86b-M2if0dN548S2a9NHwKj26KnVaLyiUFf8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.807960' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IqyReHkE0BWZUQm3Jd0OB9Yf8ZQZ6waEYT810D8aDbM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.810122"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.812370"], ["id", "d44cffb4-bfed-11e4-807b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$o7Aw10YnbM151zhoX4JnWupMps8bTx/9D2JKSC/HevWYsRHfW.vJW"], ["created_at", "2015-03-01 08:34:51.821865"], ["updated_at", "2015-03-01 08:34:51.821865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:51.823968"], ["user_id", "d4518c14-bfed-11e4-b134-705681abff85"], ["created_at", "2015-03-01 08:34:51.825814"], ["updated_at", "2015-03-01 08:34:51.825814"], ["token", "uAz9emq6-ElK-3BJm8sZb3cLDUk0U4yrC3qSyhwl4p8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.830027"], ["updated_at", "2015-03-01 08:34:51.830027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4518c14-bfed-11e4-b134-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd452c886-bfed-11e4-ac85-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4518c14-bfed-11e4-b134-705681abff85"], ["organization_id", "d452c886-bfed-11e4-ac85-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:51.833352"], ["updated_at", "2015-03-01 08:34:51.833352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'd452c886-bfed-11e4-ac85-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "d452c886-bfed-11e4-ac85-705681abff85"], ["created_at", "2015-03-01 08:34:51.838353"], ["updated_at", "2015-03-01 08:34:51.838353"], ["token", "Cc-eysn4SEToP3ObVGXSV0a9RuJ1yeBRbIuPnB1ctIQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:51.843176' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uAz9emq6-ElK-3BJm8sZb3cLDUk0U4yrC3qSyhwl4p8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:51.844565"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:51.845972"], ["id", "d4523290-bfed-11e4-aa12-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$tkjpIxNKAjAYdyNaSlp3UuIQcfSZCcKXHZFVrb9E3KaHniuxH6CFC"], ["created_at", "2015-03-01 08:34:51.873026"], ["updated_at", "2015-03-01 08:34:51.873026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:51.876818"], ["updated_at", "2015-03-01 08:34:51.876818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4595782-bfed-11e4-8c20-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd459f67e-bfed-11e4-a5d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d4595782-bfed-11e4-8c20-705681abff85"], ["organization_id", "d459f67e-bfed-11e4-a5d1-705681abff85"], ["created_at", "2015-03-01 08:34:51.880552"], ["updated_at", "2015-03-01 08:34:51.880552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d4595782-bfed-11e4-8c20-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d459f67e-bfed-11e4-a5d1-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4595782-bfed-11e4-8c20-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd459f67e-bfed-11e4-a5d1-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d459f67e-bfed-11e4-a5d1-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4595782-bfed-11e4-8c20-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd459f67e-bfed-11e4-a5d1-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$XkQ.PGDUPy1v6qZ4YW1Lwuy8Lv3GoByOGQzJdqqNGXouo9XKFlHf6"], ["created_at", "2015-03-01 08:34:56.790963"], ["updated_at", "2015-03-01 08:34:56.790963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:56.800317"], ["updated_at", "2015-03-01 08:34:56.800317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd747e936-bfed-11e4-a6d3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7494308-bfed-11e4-9c54-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d747e936-bfed-11e4-a6d3-705681abff85"], ["organization_id", "d7494308-bfed-11e4-9c54-705681abff85"], ["created_at", "2015-03-01 08:34:56.804537"], ["updated_at", "2015-03-01 08:34:56.804537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d747e936-bfed-11e4-a6d3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d7494308-bfed-11e4-9c54-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd747e936-bfed-11e4-a6d3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7494308-bfed-11e4-9c54-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d7494308-bfed-11e4-9c54-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd747e936-bfed-11e4-a6d3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7494308-bfed-11e4-9c54-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$sdsI2MDqQCuRDbVwJwH2uubXhNXDIFGe/KPulmGnNr4IRflNtUmku"], ["created_at", "2015-03-01 08:34:56.831385"], ["updated_at", "2015-03-01 08:34:56.831385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:56.839920"], ["user_id", "d74def16-bfed-11e4-b816-705681abff85"], ["created_at", "2015-03-01 08:34:56.841054"], ["updated_at", "2015-03-01 08:34:56.841054"], ["token", "17dSuen23UmfomIS9sTTjpZ_CzI81xeqvyeyb6S-NkI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:56.845055"], ["updated_at", "2015-03-01 08:34:56.845055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd74def16-bfed-11e4-b816-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7500256-bfed-11e4-b05a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d74def16-bfed-11e4-b816-705681abff85"], ["organization_id", "d7500256-bfed-11e4-b05a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:56.848356"], ["updated_at", "2015-03-01 08:34:56.848356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'd7500256-bfed-11e4-b05a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "d7500256-bfed-11e4-b05a-705681abff85"], ["created_at", "2015-03-01 08:34:56.859834"], ["updated_at", "2015-03-01 08:34:56.859834"], ["token", "b8aKVOlAvskBuFcFb6eEntaml8JVCrZpN8YyBIUdFRc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:56 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$pMSijh1OfUxqdAE6C1pEvu5OXXdsDtfVUikFmx4IXUyKnDxr..HlG"], ["created_at", "2015-03-01 08:34:56.893818"], ["updated_at", "2015-03-01 08:34:56.893818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:56.895460"], ["user_id", "d7577702-bfed-11e4-9734-705681abff85"], ["created_at", "2015-03-01 08:34:56.896297"], ["updated_at", "2015-03-01 08:34:56.896297"], ["token", "dOfSqOBgoQHOKmE3ktJXzeJLYIXZpGnJZ0I60a5LPRA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:56.899879"], ["updated_at", "2015-03-01 08:34:56.899879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7577702-bfed-11e4-9734-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd75860d6-bfed-11e4-b0dc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d7577702-bfed-11e4-9734-705681abff85"], ["organization_id", "d75860d6-bfed-11e4-b0dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:56.903314"], ["updated_at", "2015-03-01 08:34:56.903314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'd75860d6-bfed-11e4-b0dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "d75860d6-bfed-11e4-b0dc-705681abff85"], ["created_at", "2015-03-01 08:34:56.906758"], ["updated_at", "2015-03-01 08:34:56.906758"], ["token", "iMwS_znRTGXULQ3i5Q1pzmnBK6kdKbcl4WFeTAdGANY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:56 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:56.911795' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dOfSqOBgoQHOKmE3ktJXzeJLYIXZpGnJZ0I60a5LPRA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:56.917234"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:56.918967"], ["id", "d757de0e-bfed-11e4-84e6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d7577702-bfed-11e4-9734-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d7577702-bfed-11e4-9734-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd7577702-bfed-11e4-9734-705681abff85' LIMIT 1 [["organization_id", "d75860d6-bfed-11e4-b0dc-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d75860d6-bfed-11e4-b0dc-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'd75860d6-bfed-11e4-b0dc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "d75860d6-bfed-11e4-b0dc-705681abff85"], ["created_at", "2015-03-01 08:34:56.946091"], ["updated_at", "2015-03-01 08:34:56.946091"], ["token", "7l4TuTJAeE5Kr0-sBGY4f3_FR7eZz6cKN_4P3O9XYto"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a13a04bf-a768-4700-90ce-ac39d70a9bcd) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d75f7b46-bfed-11e4-b8b1-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d75f7b46-bfed-11e4-b8b1-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a13a04bf-a768-4700-90ce-ac39d70a9bcd] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d75f7b46-bfed-11e4-b8b1-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [a13a04bf-a768-4700-90ce-ac39d70a9bcd] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d75860d6-bfed-11e4-b0dc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a13a04bf-a768-4700-90ce-ac39d70a9bcd] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [a13a04bf-a768-4700-90ce-ac39d70a9bcd] Clubhouse::Mailer#invitation: processed outbound mail in 232.7ms [ActiveJob] [ActionMailer::DeliveryJob] [a13a04bf-a768-4700-90ce-ac39d70a9bcd] Sent mail to email@example.com (7.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [a13a04bf-a768-4700-90ce-ac39d70a9bcd] Date: Sun, 01 Mar 2015 00:34:57 -0800 From: from@example.com To: email@example.com Message-ID: <54f2cf3133130_138753ff74e039be0903e9@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/7l4TuTJAeE5Kr0-sBGY4f3_FR7eZz6cKN_4P3O9XYto If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a13a04bf-a768-4700-90ce-ac39d70a9bcd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 241.0ms Completed 201 Created in 304ms (Views: 3.1ms | ActiveRecord: 3.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$w4FT5HbFk1JK8jjscBu2Iu5RP54XJrU8bxv82DPbJZqYyEpP9LOBy"], ["created_at", "2015-03-01 08:34:57.224968"], ["updated_at", "2015-03-01 08:34:57.224968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.226698"], ["user_id", "d789ffec-bfed-11e4-97d2-705681abff85"], ["created_at", "2015-03-01 08:34:57.227518"], ["updated_at", "2015-03-01 08:34:57.227518"], ["token", "Jq23pOYQDCCyYHerVP-tsczfLVLnG4pOxoM3hIRxj-g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.230937"], ["updated_at", "2015-03-01 08:34:57.230937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd789ffec-bfed-11e4-97d2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd78ae6aa-bfed-11e4-8ea6-705681abff85') LIMIT 1 SQL (8.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d789ffec-bfed-11e4-97d2-705681abff85"], ["organization_id", "d78ae6aa-bfed-11e4-8ea6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:57.234898"], ["updated_at", "2015-03-01 08:34:57.234898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'd78ae6aa-bfed-11e4-8ea6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "d78ae6aa-bfed-11e4-8ea6-705681abff85"], ["created_at", "2015-03-01 08:34:57.247102"], ["updated_at", "2015-03-01 08:34:57.247102"], ["token", "X2BWly26xnENZf5DHrdQs4QptjuFJ03-owDce1mCiTA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:57.251929' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Jq23pOYQDCCyYHerVP-tsczfLVLnG4pOxoM3hIRxj-g"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:57.253951"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:57.255540"], ["id", "d78a67c0-bfed-11e4-9d6b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d789ffec-bfed-11e4-97d2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d789ffec-bfed-11e4-97d2-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd789ffec-bfed-11e4-97d2-705681abff85' LIMIT 1 [["organization_id", "d78ae6aa-bfed-11e4-8ea6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d78ae6aa-bfed-11e4-8ea6-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'd78ae6aa-bfed-11e4-8ea6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "d78ae6aa-bfed-11e4-8ea6-705681abff85"], ["created_at", "2015-03-01 08:34:57.265955"], ["updated_at", "2015-03-01 08:34:57.265955"], ["token", "bTHz4FCophj_5qb-830szUETMbGG2AoY7pWNMnEE0qU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6ee1d982-da93-41ae-af98-699a0ce85232) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d790441a-bfed-11e4-8bb2-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d790441a-bfed-11e4-8bb2-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [6ee1d982-da93-41ae-af98-699a0ce85232] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d790441a-bfed-11e4-8bb2-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [6ee1d982-da93-41ae-af98-699a0ce85232] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d78ae6aa-bfed-11e4-8ea6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [6ee1d982-da93-41ae-af98-699a0ce85232] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [6ee1d982-da93-41ae-af98-699a0ce85232] Clubhouse::Mailer#invitation: processed outbound mail in 2.9ms [ActiveJob] [ActionMailer::DeliveryJob] [6ee1d982-da93-41ae-af98-699a0ce85232] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [6ee1d982-da93-41ae-af98-699a0ce85232] Date: Sun, 01 Mar 2015 00:34:57 -0800 From: from@example.com To: email@example.com Message-ID: <54f2cf3142f4e_138753ff74e039be0904e5@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/bTHz4FCophj_5qb-830szUETMbGG2AoY7pWNMnEE0qU If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [6ee1d982-da93-41ae-af98-699a0ce85232] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.19ms Completed 201 Created in 25ms (Views: 0.8ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Gt7xjiQDRNAvdphw7e6HjuWvPkZVSvNkFmeF0VcPpoj1JSFIMbusy"], ["created_at", "2015-03-01 08:34:57.284330"], ["updated_at", "2015-03-01 08:34:57.284330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.288824"], ["user_id", "d79374d2-bfed-11e4-a04f-705681abff85"], ["created_at", "2015-03-01 08:34:57.289604"], ["updated_at", "2015-03-01 08:34:57.289604"], ["token", "_0ucGbui4QDT0J-WO5R-McEaKSgTBFtN3k5LkU6T7EU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.292884"], ["updated_at", "2015-03-01 08:34:57.292884"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd79374d2-bfed-11e4-a04f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7945668-bfed-11e4-a720-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d79374d2-bfed-11e4-a04f-705681abff85"], ["organization_id", "d7945668-bfed-11e4-a720-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:57.296452"], ["updated_at", "2015-03-01 08:34:57.296452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'd7945668-bfed-11e4-a720-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "d7945668-bfed-11e4-a720-705681abff85"], ["created_at", "2015-03-01 08:34:57.299822"], ["updated_at", "2015-03-01 08:34:57.299822"], ["token", "2GeRIgY_mA4R1J6QEcYQKmGPN65o9x8XarSq-_NOOB8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:57.307281' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_0ucGbui4QDT0J-WO5R-McEaKSgTBFtN3k5LkU6T7EU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:57.308746"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:57.309660"], ["id", "d793e0c0-bfed-11e4-a89d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d79374d2-bfed-11e4-a04f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d79374d2-bfed-11e4-a04f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd79374d2-bfed-11e4-a04f-705681abff85' LIMIT 1 [["organization_id", "d7945668-bfed-11e4-a720-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d7945668-bfed-11e4-a720-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'd7945668-bfed-11e4-a720-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$QP9h.By2mbOsZ6U2yNkTre0YQV6PjuLoBu1Sa5dhsMO2bmV.LUxRW"], ["created_at", "2015-03-01 08:34:57.327175"], ["updated_at", "2015-03-01 08:34:57.327175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.328799"], ["user_id", "d79995a6-bfed-11e4-8b56-705681abff85"], ["created_at", "2015-03-01 08:34:57.329553"], ["updated_at", "2015-03-01 08:34:57.329553"], ["token", "qrOf1xM-QPltQo611daB8MXUhPYwYl-NhbeBzEiXyOw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.349646"], ["updated_at", "2015-03-01 08:34:57.349646"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd79995a6-bfed-11e4-8b56-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd79db2d0-bfed-11e4-8ef4-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d79995a6-bfed-11e4-8b56-705681abff85"], ["organization_id", "d79db2d0-bfed-11e4-8ef4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:57.364489"], ["updated_at", "2015-03-01 08:34:57.364489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'd79db2d0-bfed-11e4-8ef4-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "d79db2d0-bfed-11e4-8ef4-705681abff85"], ["created_at", "2015-03-01 08:34:57.372114"], ["updated_at", "2015-03-01 08:34:57.372114"], ["token", "Jg6tEAMtHmvb4uQl-Hdy3c4uHrCliaN5tuwvTpRC86w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$pBEyvDFeXlBsfGldZKxYaeyeFo5UrfeiC3MKh3xS58olOGFF0kgaC"], ["created_at", "2015-03-01 08:34:57.392882"], ["updated_at", "2015-03-01 08:34:57.392882"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.395581"], ["user_id", "d7a3ac94-bfed-11e4-a88f-705681abff85"], ["created_at", "2015-03-01 08:34:57.396889"], ["updated_at", "2015-03-01 08:34:57.396889"], ["token", "AydLRC9wiKQ_VhNYAc2d9eVm9YLLccRcRpYHyqZn6NA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.404073"], ["updated_at", "2015-03-01 08:34:57.404073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7a3ac94-bfed-11e4-a88f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7a5779a-bfed-11e4-b2a6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d7a3ac94-bfed-11e4-a88f-705681abff85"], ["organization_id", "d7a5779a-bfed-11e4-b2a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:57.410507"], ["updated_at", "2015-03-01 08:34:57.410507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'd7a5779a-bfed-11e4-b2a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "d7a5779a-bfed-11e4-b2a6-705681abff85"], ["created_at", "2015-03-01 08:34:57.414264"], ["updated_at", "2015-03-01 08:34:57.414264"], ["token", "7h1IV6cgMrBU_TsSj62C_IuCNOJmDxJS1SIweFVCsjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/d7a6e38c-bfed-11e4-bbfe-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"d7a6e38c-bfed-11e4-bbfe-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:57.419027' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AydLRC9wiKQ_VhNYAc2d9eVm9YLLccRcRpYHyqZn6NA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:57.420541"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:57.421502"], ["id", "d7a4762e-bfed-11e4-bbd0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d7a3ac94-bfed-11e4-a88f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d7a3ac94-bfed-11e4-a88f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd7a3ac94-bfed-11e4-a88f-705681abff85' LIMIT 1 [["organization_id", "d7a5779a-bfed-11e4-b2a6-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "d7a5779a-bfed-11e4-b2a6-705681abff85"], ["id", "d7a6e38c-bfed-11e4-bbfe-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "d7a6e38c-bfed-11e4-bbfe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$KZfdDZnClZgi17pkn5CG/uF3ZL2y2OiEnRh8P0bfEeqs9EzxV1c2y"], ["created_at", "2015-03-01 08:34:57.436760"], ["updated_at", "2015-03-01 08:34:57.436760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.439056"], ["user_id", "d7aa53e6-bfed-11e4-9bc1-705681abff85"], ["created_at", "2015-03-01 08:34:57.439936"], ["updated_at", "2015-03-01 08:34:57.439936"], ["token", "xvuH6LFkCZzn_0fjGW5zYfwK_lxEmNxCsh_Q-VzK5R4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.443472"], ["updated_at", "2015-03-01 08:34:57.443472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7aa53e6-bfed-11e4-9bc1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7ab52c8-bfed-11e4-b325-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d7aa53e6-bfed-11e4-9bc1-705681abff85"], ["organization_id", "d7ab52c8-bfed-11e4-b325-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:57.446764"], ["updated_at", "2015-03-01 08:34:57.446764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'd7ab52c8-bfed-11e4-b325-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "d7ab52c8-bfed-11e4-b325-705681abff85"], ["created_at", "2015-03-01 08:34:57.450157"], ["updated_at", "2015-03-01 08:34:57.450157"], ["token", "IZwvPUXw9lbb_SBLGMmwz75zMc3-97T6qzea_wSN5pI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$.b50aLe0GT81FXJrChFexeg0mASzQTGIeRlYxyF2acLN79.5Shkqa"], ["created_at", "2015-03-01 08:34:57.463116"], ["updated_at", "2015-03-01 08:34:57.463116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.464669"], ["user_id", "d7ae5310-bfed-11e4-9f0c-705681abff85"], ["created_at", "2015-03-01 08:34:57.465711"], ["updated_at", "2015-03-01 08:34:57.465711"], ["token", "c6ow2030M_LfXB22x3c8IF_A0zDaV4CeyGPcH64WYoo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.470334"], ["updated_at", "2015-03-01 08:34:57.470334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7ae5310-bfed-11e4-9f0c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7af6aca-bfed-11e4-863e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d7ae5310-bfed-11e4-9f0c-705681abff85"], ["organization_id", "d7af6aca-bfed-11e4-863e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:57.473473"], ["updated_at", "2015-03-01 08:34:57.473473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'd7af6aca-bfed-11e4-863e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "d7af6aca-bfed-11e4-863e-705681abff85"], ["created_at", "2015-03-01 08:34:57.476683"], ["updated_at", "2015-03-01 08:34:57.476683"], ["token", "7ER6C5gEtuPurV_MA9YIJVaf9Zso6DdhCL4pMeHZjJM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/d7b065d8-bfed-11e4-864e-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"d7b065d8-bfed-11e4-864e-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:57.481501' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "c6ow2030M_LfXB22x3c8IF_A0zDaV4CeyGPcH64WYoo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:57.482919"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:57.483913"], ["id", "d7aeeabe-bfed-11e4-9a8c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d7ae5310-bfed-11e4-9f0c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d7ae5310-bfed-11e4-9f0c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd7ae5310-bfed-11e4-9f0c-705681abff85' LIMIT 1 [["organization_id", "d7af6aca-bfed-11e4-863e-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "d7af6aca-bfed-11e4-863e-705681abff85"], ["id", "d7b065d8-bfed-11e4-864e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d7af6aca-bfed-11e4-863e-705681abff85"]] Completed 200 OK in 15ms (Views: 2.6ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$cVDbclBXFb2bgCHrZgxvjOOnARW1dNRnH.rsdpyYhzWCcnnlM7s9W"], ["created_at", "2015-03-01 08:34:57.503533"], ["updated_at", "2015-03-01 08:34:57.503533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.505213"], ["user_id", "d7b4808c-bfed-11e4-86a3-705681abff85"], ["created_at", "2015-03-01 08:34:57.505995"], ["updated_at", "2015-03-01 08:34:57.505995"], ["token", "Vf_CBpJFw7shuD-CweGxE80JyAW3lDCO8DRu9CbzNr4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.509616"], ["updated_at", "2015-03-01 08:34:57.509616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7b4808c-bfed-11e4-86a3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7b56c18-bfed-11e4-8903-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d7b4808c-bfed-11e4-86a3-705681abff85"], ["organization_id", "d7b56c18-bfed-11e4-8903-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:57.515414"], ["updated_at", "2015-03-01 08:34:57.515414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'd7b56c18-bfed-11e4-8903-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "d7b56c18-bfed-11e4-8903-705681abff85"], ["created_at", "2015-03-01 08:34:57.521308"], ["updated_at", "2015-03-01 08:34:57.521308"], ["token", "xmr9q9GaqZNfqVvIng3qF0Jp4QmnVlZ4Jq43uS7N5Kk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$lVSFcXRn5xaC59vIFmxxYO.JSle4l3Q5TBUgcQjfmLSkkt9ipy.mO"], ["created_at", "2015-03-01 08:34:57.526930"], ["updated_at", "2015-03-01 08:34:57.526930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.530368"], ["updated_at", "2015-03-01 08:34:57.530368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7b81350-bfed-11e4-9b48-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7b8964a-bfed-11e4-a2a7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d7b81350-bfed-11e4-9b48-705681abff85"], ["organization_id", "d7b8964a-bfed-11e4-a2a7-705681abff85"], ["created_at", "2015-03-01 08:34:57.533736"], ["updated_at", "2015-03-01 08:34:57.533736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$ZtzcObNenmG9RJ6zqeJgnepLU/Vu6wgCZGrB2s252ejrCCWREPe/W"], ["created_at", "2015-03-01 08:34:57.548095"], ["updated_at", "2015-03-01 08:34:57.548095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.549658"], ["user_id", "d7bb4b6a-bfed-11e4-a2d5-705681abff85"], ["created_at", "2015-03-01 08:34:57.550430"], ["updated_at", "2015-03-01 08:34:57.550430"], ["token", "IzTXj8oXc1LtkcMfJKjDEXUVw0WqqODvKGMO3E_rIUw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.553698"], ["updated_at", "2015-03-01 08:34:57.553698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7bb4b6a-bfed-11e4-a2d5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7bc2274-bfed-11e4-8966-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d7bb4b6a-bfed-11e4-a2d5-705681abff85"], ["organization_id", "d7bc2274-bfed-11e4-8966-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:57.557153"], ["updated_at", "2015-03-01 08:34:57.557153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'd7bc2274-bfed-11e4-8966-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "d7bc2274-bfed-11e4-8966-705681abff85"], ["created_at", "2015-03-01 08:34:57.560882"], ["updated_at", "2015-03-01 08:34:57.560882"], ["token", "OeH5mzkEhGWYN3AFpR931iqjJhUbk_TDRlIeONwt56M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$98JnjKBbFy1aqyz8yDWjYO8Tvc1bw5iIyRpbUibyXiz0l1Wl6YB6a"], ["created_at", "2015-03-01 08:34:57.565489"], ["updated_at", "2015-03-01 08:34:57.565489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.568685"], ["updated_at", "2015-03-01 08:34:57.568685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7bdf248-bfed-11e4-b66b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7be7574-bfed-11e4-9018-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d7bdf248-bfed-11e4-b66b-705681abff85"], ["organization_id", "d7be7574-bfed-11e4-9018-705681abff85"], ["created_at", "2015-03-01 08:34:57.572206"], ["updated_at", "2015-03-01 08:34:57.572206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:57.577169' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IzTXj8oXc1LtkcMfJKjDEXUVw0WqqODvKGMO3E_rIUw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:57.578783"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:57.579713"], ["id", "d7bbaa38-bfed-11e4-9877-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d7bb4b6a-bfed-11e4-a2d5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d7bb4b6a-bfed-11e4-a2d5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd7bb4b6a-bfed-11e4-a2d5-705681abff85' LIMIT 1 [["organization_id", "d7bc2274-bfed-11e4-8966-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "d7bc2274-bfed-11e4-8966-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('d7bc2274-bfed-11e4-8966-705681abff85') Completed 200 OK in 15ms (Views: 6.9ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$nCbjTDEDX7wfm4YmFSFNrOH9rlsT9xnGDbuLPOb6WUr0P1WdPYvky"], ["created_at", "2015-03-01 08:34:57.598583"], ["updated_at", "2015-03-01 08:34:57.598583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.600183"], ["user_id", "d7c2fef0-bfed-11e4-8f1e-705681abff85"], ["created_at", "2015-03-01 08:34:57.600930"], ["updated_at", "2015-03-01 08:34:57.600930"], ["token", "ILSErtaVBFqlCgDByl6Vgctk2deF6_PBDF7UomejtuA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.604200"], ["updated_at", "2015-03-01 08:34:57.604200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7c2fef0-bfed-11e4-8f1e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7c3d870-bfed-11e4-90cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d7c2fef0-bfed-11e4-8f1e-705681abff85"], ["organization_id", "d7c3d870-bfed-11e4-90cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:57.607607"], ["updated_at", "2015-03-01 08:34:57.607607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'd7c3d870-bfed-11e4-90cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "d7c3d870-bfed-11e4-90cc-705681abff85"], ["created_at", "2015-03-01 08:34:57.610927"], ["updated_at", "2015-03-01 08:34:57.610927"], ["token", "ng66w1YBFr4fpsQ0gGYt_bZMGtBNcOGI1DHTmvV04FA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$hcycficXcKHJk5Z/qjbaTuwZVk5rbqqBywRFImFFFoPinpF4gFmDG"], ["created_at", "2015-03-01 08:34:57.622572"], ["updated_at", "2015-03-01 08:34:57.622572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.624221"], ["user_id", "d7c6a866-bfed-11e4-a15c-705681abff85"], ["created_at", "2015-03-01 08:34:57.625000"], ["updated_at", "2015-03-01 08:34:57.625000"], ["token", "icI4XDF3lvOTRbPrirKqHb21vMKkFyTnwJn18DWMNGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.628306"], ["updated_at", "2015-03-01 08:34:57.628306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7c6a866-bfed-11e4-a15c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7c7854c-bfed-11e4-80c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d7c6a866-bfed-11e4-a15c-705681abff85"], ["organization_id", "d7c7854c-bfed-11e4-80c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:57.632196"], ["updated_at", "2015-03-01 08:34:57.632196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'd7c7854c-bfed-11e4-80c7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "d7c7854c-bfed-11e4-80c7-705681abff85"], ["created_at", "2015-03-01 08:34:57.635629"], ["updated_at", "2015-03-01 08:34:57.635629"], ["token", "12ounVR8tCcZ3XctSM6uGeHv4WtD6BtOsFIZX-CBPUM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/d7c8ae72-bfed-11e4-8f7f-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"d7c8ae72-bfed-11e4-8f7f-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:57.640906' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "icI4XDF3lvOTRbPrirKqHb21vMKkFyTnwJn18DWMNGs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:57.642924"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:57.643898"], ["id", "d7c70dc4-bfed-11e4-add4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d7c6a866-bfed-11e4-a15c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d7c6a866-bfed-11e4-a15c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd7c6a866-bfed-11e4-a15c-705681abff85' LIMIT 1 [["organization_id", "d7c7854c-bfed-11e4-80c7-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "d7c7854c-bfed-11e4-80c7-705681abff85"], ["id", "d7c8ae72-bfed-11e4-8f7f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d7c7854c-bfed-11e4-80c7-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."id" != 'd7c8ae72-bfed-11e4-8f7f-705681abff85' AND "clubhouse_invitations"."organization_id" = 'd7c7854c-bfed-11e4-80c7-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 08:34:57.654437"], ["id", "d7c8ae72-bfed-11e4-8f7f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.8ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.664717"], ["updated_at", "2015-03-01 08:34:57.664717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'd7cd14f8-bfed-11e4-934c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "d7cd14f8-bfed-11e4-934c-705681abff85"], ["created_at", "2015-03-01 08:34:57.667595"], ["updated_at", "2015-03-01 08:34:57.667595"], ["token", "lwblOlgKZviXZi7qz6gW-WLDh0rWybVeHksf8g4jja4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.683810"], ["updated_at", "2015-03-01 08:34:57.683810"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'd7d0008c-bfed-11e4-89ee-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "d7d0008c-bfed-11e4-89ee-705681abff85"], ["created_at", "2015-03-01 08:34:57.687899"], ["updated_at", "2015-03-01 08:34:57.687899"], ["token", "VuIZ4c2RhE-6LYicUPgEOqFOERP0RlCN1iZ-FgthoXQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d7d0008c-bfed-11e4-89ee-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'd7d0008c-bfed-11e4-89ee-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d7d0008c-bfed-11e4-89ee-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'd7d0008c-bfed-11e4-89ee-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.712227"], ["updated_at", "2015-03-01 08:34:57.712227"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd7d4cb26-bfed-11e4-8343-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d7d4cb26-bfed-11e4-8343-705681abff85"], ["created_at", "2015-03-01 08:34:57.724121"], ["updated_at", "2015-03-01 08:34:57.724121"], ["token", "G5muMe4nfABVkeo4SbdiHxi_rM1mmC8Jy_HbxLZSLKI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms Sent mail to john@example.com (2.5ms) Date: Sun, 01 Mar 2015 00:34:57 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf31b2578_138753ff74e039be090526@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/G5muMe4nfABVkeo4SbdiHxi_rM1mmC8Jy_HbxLZSLKI If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.739303"], ["updated_at", "2015-03-01 08:34:57.739303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd7d890da-bfed-11e4-a4c4-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d7d890da-bfed-11e4-a4c4-705681abff85"], ["created_at", "2015-03-01 08:34:57.745894"], ["updated_at", "2015-03-01 08:34:57.745894"], ["token", "ljW6-EYhHVmn9F_Qb_uABOxJWGl24oXWJiewcRqEnhc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (2.6ms) Date: Sun, 01 Mar 2015 00:34:57 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf31b76d6_138753ff74e039be09063e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/ljW6-EYhHVmn9F_Qb_uABOxJWGl24oXWJiewcRqEnhc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.758452"], ["updated_at", "2015-03-01 08:34:57.758452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd7db6b84-bfed-11e4-ada8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d7db6b84-bfed-11e4-ada8-705681abff85"], ["created_at", "2015-03-01 08:34:57.763532"], ["updated_at", "2015-03-01 08:34:57.763532"], ["token", "lzcNfWTAyFxGV4U41Lb8coMA4Nl_vJvyhVb9OrOg1jw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.5ms Sent mail to john@example.com (3.7ms) Date: Sun, 01 Mar 2015 00:34:57 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf31bbb88_138753ff74e039be0907bf@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/lzcNfWTAyFxGV4U41Lb8coMA4Nl_vJvyhVb9OrOg1jw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.776473"], ["updated_at", "2015-03-01 08:34:57.776473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd7de24fa-bfed-11e4-9a34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d7de24fa-bfed-11e4-9a34-705681abff85"], ["created_at", "2015-03-01 08:34:57.780288"], ["updated_at", "2015-03-01 08:34:57.780288"], ["token", "N7-Ui4N3G9NhdmAuqAbYu90Tt0fUDuyCrmHiJ9nCaHc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (2.0ms) Date: Sun, 01 Mar 2015 00:34:57 -0800 From: from@example.com To: john@example.com Message-ID: <54f2cf31bf78e_138753ff74e039be0908cc@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/N7-Ui4N3G9NhdmAuqAbYu90Tt0fUDuyCrmHiJ9nCaHc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.789408"], ["updated_at", "2015-03-01 08:34:57.789408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.801157"], ["updated_at", "2015-03-01 08:34:57.801157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.815696"], ["updated_at", "2015-03-01 08:34:57.815696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.845418"], ["updated_at", "2015-03-01 08:34:57.845418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d7e8ad30-bfed-11e4-8c24-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.851517"], ["updated_at", "2015-03-01 08:34:57.851517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$e5B8s7WALLKK7fI42uc0N.qmrrlIQTjLDRWOu/ZBaRc6DiaaQ8Jvm"], ["created_at", "2015-03-01 08:34:57.861669"], ["updated_at", "2015-03-01 08:34:57.861669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.863332"], ["user_id", "d7eb24de-bfed-11e4-8617-705681abff85"], ["created_at", "2015-03-01 08:34:57.864234"], ["updated_at", "2015-03-01 08:34:57.864234"], ["token", "mR9qA3SAAvcmj6oZnVip9E6OIXcy5mwE99izW3pXYAM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.868130"], ["updated_at", "2015-03-01 08:34:57.868130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7eb24de-bfed-11e4-8617-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7ec200a-bfed-11e4-8537-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d7eb24de-bfed-11e4-8617-705681abff85"], ["organization_id", "d7ec200a-bfed-11e4-8537-705681abff85"], ["created_at", "2015-03-01 08:34:57.871647"], ["updated_at", "2015-03-01 08:34:57.871647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$jqGV3gFKZ.8yiE4/nv9nZu1R7GgKJT6wNbbwOnogb11gyP/xOQxFi"], ["created_at", "2015-03-01 08:34:57.891381"], ["updated_at", "2015-03-01 08:34:57.891381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.893126"], ["user_id", "d7efb12a-bfed-11e4-9629-705681abff85"], ["created_at", "2015-03-01 08:34:57.893936"], ["updated_at", "2015-03-01 08:34:57.893936"], ["token", "BR7j5XMS0uKC7TzOxo4BTbmqwGQ4_xc-y-XV8fRX7kI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.897599"], ["updated_at", "2015-03-01 08:34:57.897599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7efb12a-bfed-11e4-9629-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7f09d38-bfed-11e4-a91d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d7efb12a-bfed-11e4-9629-705681abff85"], ["organization_id", "d7f09d38-bfed-11e4-a91d-705681abff85"], ["created_at", "2015-03-01 08:34:57.901012"], ["updated_at", "2015-03-01 08:34:57.901012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/d7f09d38-bfed-11e4-a91d-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"d7f09d38-bfed-11e4-a91d-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:57.905397' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BR7j5XMS0uKC7TzOxo4BTbmqwGQ4_xc-y-XV8fRX7kI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:57.907017"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:57.908303"], ["id", "d7f0204c-bfed-11e4-97ff-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d7efb12a-bfed-11e4-9629-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d7efb12a-bfed-11e4-9629-705681abff85"], ["id", "d7f09d38-bfed-11e4-a91d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d7f09d38-bfed-11e4-a91d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$xfWScOyITI0aofEIGcu.yOkf0iPVF7X6Zq6MD6hUEjBuyhRVII2/m"], ["created_at", "2015-03-01 08:34:57.921919"], ["updated_at", "2015-03-01 08:34:57.921919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.923711"], ["user_id", "d7f45874-bfed-11e4-a1d9-705681abff85"], ["created_at", "2015-03-01 08:34:57.924599"], ["updated_at", "2015-03-01 08:34:57.924599"], ["token", "ef02RQlkDvtOV1w2zAqLLLc0I7PMNe5zOrmazEiYWBo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.928082"], ["updated_at", "2015-03-01 08:34:57.928082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7f45874-bfed-11e4-a1d9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7f545fe-bfed-11e4-95f7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d7f45874-bfed-11e4-a1d9-705681abff85"], ["organization_id", "d7f545fe-bfed-11e4-95f7-705681abff85"], ["created_at", "2015-03-01 08:34:57.931795"], ["updated_at", "2015-03-01 08:34:57.931795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$1zxnVnxFHs5LRde7BrjxYOxKGswtWSvhnPtH9gGmDWb350qoTSX.C"], ["created_at", "2015-03-01 08:34:57.944500"], ["updated_at", "2015-03-01 08:34:57.944500"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.946452"], ["user_id", "d7f7cd9c-bfed-11e4-b431-705681abff85"], ["created_at", "2015-03-01 08:34:57.947327"], ["updated_at", "2015-03-01 08:34:57.947327"], ["token", "GCFuX7_L56MSNQunGv8-X1IAlKYJQFDKMNkZ6Ea_F5E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.950946"], ["updated_at", "2015-03-01 08:34:57.950946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7f7cd9c-bfed-11e4-b431-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7f8c30a-bfed-11e4-80f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d7f7cd9c-bfed-11e4-b431-705681abff85"], ["organization_id", "d7f8c30a-bfed-11e4-80f1-705681abff85"], ["created_at", "2015-03-01 08:34:57.954574"], ["updated_at", "2015-03-01 08:34:57.954574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/d7f8c30a-bfed-11e4-80f1-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"d7f8c30a-bfed-11e4-80f1-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:57.959305' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GCFuX7_L56MSNQunGv8-X1IAlKYJQFDKMNkZ6Ea_F5E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:57.960710"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:57.961593"], ["id", "d7f83dfe-bfed-11e4-9c3c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d7f7cd9c-bfed-11e4-b431-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d7f7cd9c-bfed-11e4-b431-705681abff85"], ["id", "d7f8c30a-bfed-11e4-80f1-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$.VROag0XTbAMsYTL9gDP4umJnkNK4vmQG80UNDcDZdv27H/ZLjIvu"], ["created_at", "2015-03-01 08:34:57.972554"], ["updated_at", "2015-03-01 08:34:57.972554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:57.974689"], ["user_id", "d7fc1370-bfed-11e4-8af3-705681abff85"], ["created_at", "2015-03-01 08:34:57.975572"], ["updated_at", "2015-03-01 08:34:57.975572"], ["token", "rscxMgX37BfKvT8CDlrgjdAm6-YZwjgA4dbQXdW4tjg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.979836"], ["updated_at", "2015-03-01 08:34:57.979836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7fc1370-bfed-11e4-8af3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7fd2918-bfed-11e4-aeff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d7fc1370-bfed-11e4-8af3-705681abff85"], ["organization_id", "d7fd2918-bfed-11e4-aeff-705681abff85"], ["created_at", "2015-03-01 08:34:57.982953"], ["updated_at", "2015-03-01 08:34:57.982953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$8UZJZQBWu988LIiUUkJt3.Zl6RMyArkcvOXmPMEGy0wpvsEFBnJ9u"], ["created_at", "2015-03-01 08:34:57.987372"], ["updated_at", "2015-03-01 08:34:57.987372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:57.990443"], ["updated_at", "2015-03-01 08:34:57.990443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7fe5018-bfed-11e4-a3e5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd7fec818-bfed-11e4-8542-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d7fe5018-bfed-11e4-a3e5-705681abff85"], ["organization_id", "d7fec818-bfed-11e4-8542-705681abff85"], ["created_at", "2015-03-01 08:34:57.993498"], ["updated_at", "2015-03-01 08:34:57.993498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:34:57 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$r1BQHdEAvh.Cgwwdz/RayOV236HLC6bzidOcJlRviBZ4kSVmQtSmy"], ["created_at", "2015-03-01 08:34:58.007266"], ["updated_at", "2015-03-01 08:34:58.007266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.009188"], ["user_id", "d8015db2-bfed-11e4-beaa-705681abff85"], ["created_at", "2015-03-01 08:34:58.010042"], ["updated_at", "2015-03-01 08:34:58.010042"], ["token", "CjWov29sqQMxl2NPdP1ff3H_bzUGP7kf-ziUrtrvE7s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.013541"], ["updated_at", "2015-03-01 08:34:58.013541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8015db2-bfed-11e4-beaa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8024d80-bfed-11e4-a221-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8015db2-bfed-11e4-beaa-705681abff85"], ["organization_id", "d8024d80-bfed-11e4-a221-705681abff85"], ["created_at", "2015-03-01 08:34:58.016693"], ["updated_at", "2015-03-01 08:34:58.016693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$EyK/VE56q4FNJwed5IdqgOOebv3akVRHZbXXiBQ7UCS7rbX5KnPxy"], ["created_at", "2015-03-01 08:34:58.020931"], ["updated_at", "2015-03-01 08:34:58.020931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.023884"], ["updated_at", "2015-03-01 08:34:58.023884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8036db4-bfed-11e4-abd5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd803e1b8-bfed-11e4-ba51-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8036db4-bfed-11e4-abd5-705681abff85"], ["organization_id", "d803e1b8-bfed-11e4-ba51-705681abff85"], ["created_at", "2015-03-01 08:34:58.027115"], ["updated_at", "2015-03-01 08:34:58.027115"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.031563' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CjWov29sqQMxl2NPdP1ff3H_bzUGP7kf-ziUrtrvE7s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.032970"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.033880"], ["id", "d801d166-bfed-11e4-b466-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8015db2-bfed-11e4-beaa-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "d8015db2-bfed-11e4-beaa-705681abff85"]] Completed 200 OK in 8ms (Views: 2.2ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Gtd2D4.ILeSumSsdCV87BePrQM5fS3FSROayc6cDgCcFDNxL3FQbS"], ["created_at", "2015-03-01 08:34:58.045087"], ["updated_at", "2015-03-01 08:34:58.045087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.046800"], ["user_id", "d80725da-bfed-11e4-9be2-705681abff85"], ["created_at", "2015-03-01 08:34:58.047547"], ["updated_at", "2015-03-01 08:34:58.047547"], ["token", "wxdH-gcw9RfJYUCh5nCvkaIytUPUgBuxCrm-YKt7wrA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.050731"], ["updated_at", "2015-03-01 08:34:58.050731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd80725da-bfed-11e4-9be2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd807f8d4-bfed-11e4-abcd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d80725da-bfed-11e4-9be2-705681abff85"], ["organization_id", "d807f8d4-bfed-11e4-abcd-705681abff85"], ["created_at", "2015-03-01 08:34:58.053763"], ["updated_at", "2015-03-01 08:34:58.053763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$aEKLdze44pU4HSTc65rzjOwjvrStle0J6Kj7.c00mAMUkVfinNwTa"], ["created_at", "2015-03-01 08:34:58.066033"], ["updated_at", "2015-03-01 08:34:58.066033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.067600"], ["user_id", "d80a52b4-bfed-11e4-946e-705681abff85"], ["created_at", "2015-03-01 08:34:58.068375"], ["updated_at", "2015-03-01 08:34:58.068375"], ["token", "rz2gdYx4BI3Bq6p_mLzregKb4Hq314syeeuJLSS9Azg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.071557"], ["updated_at", "2015-03-01 08:34:58.071557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd80a52b4-bfed-11e4-946e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd80b2658-bfed-11e4-b894-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d80a52b4-bfed-11e4-946e-705681abff85"], ["organization_id", "d80b2658-bfed-11e4-b894-705681abff85"], ["created_at", "2015-03-01 08:34:58.074582"], ["updated_at", "2015-03-01 08:34:58.074582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-17" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-17", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.080213' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rz2gdYx4BI3Bq6p_mLzregKb4Hq314syeeuJLSS9Azg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.081691"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.082628"], ["id", "d80ab254-bfed-11e4-b1d2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-17"]] Completed 200 OK in 5ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$uDPpSefZtH.bQ1I5XDFkvuXF1KrX0UhlmrZpyPS.5db5jNBh8rjuO"], ["created_at", "2015-03-01 08:34:58.090674"], ["updated_at", "2015-03-01 08:34:58.090674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.092356"], ["user_id", "d80e1656-bfed-11e4-a25c-705681abff85"], ["created_at", "2015-03-01 08:34:58.093171"], ["updated_at", "2015-03-01 08:34:58.093171"], ["token", "ENrxbw7H8rulNuHmz9kiPXqUY-_0yquGt5R2LDSUnMU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.096834"], ["updated_at", "2015-03-01 08:34:58.096834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd80e1656-bfed-11e4-a25c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd80f03c2-bfed-11e4-8490-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d80e1656-bfed-11e4-a25c-705681abff85"], ["organization_id", "d80f03c2-bfed-11e4-8490-705681abff85"], ["created_at", "2015-03-01 08:34:58.099985"], ["updated_at", "2015-03-01 08:34:58.099985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.104256' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ENrxbw7H8rulNuHmz9kiPXqUY-_0yquGt5R2LDSUnMU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.105628"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.106529"], ["id", "d80e7fd8-bfed-11e4-9869-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 4ms (ActiveRecord: 0.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$4seDmN5IYN/fz42mw2E/V.k0svFizTxFf7Az4BMoQb96uxAW7RXly"], ["created_at", "2015-03-01 08:34:58.114010"], ["updated_at", "2015-03-01 08:34:58.114010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.115558"], ["user_id", "d811a488-bfed-11e4-8f6b-705681abff85"], ["created_at", "2015-03-01 08:34:58.116329"], ["updated_at", "2015-03-01 08:34:58.116329"], ["token", "A9enqGjiD5aVOpjonn93Q_SSYnSHJC9JGTnOdegyqpo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.119525"], ["updated_at", "2015-03-01 08:34:58.119525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd811a488-bfed-11e4-8f6b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8127840-bfed-11e4-a512-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d811a488-bfed-11e4-8f6b-705681abff85"], ["organization_id", "d8127840-bfed-11e4-a512-705681abff85"], ["created_at", "2015-03-01 08:34:58.123033"], ["updated_at", "2015-03-01 08:34:58.123033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$lfOWaJ1eJ12vUJ1AAG.sxedbr42vXs5dicis8gTuvwbXEeHpYtj8y"], ["created_at", "2015-03-01 08:34:58.135676"], ["updated_at", "2015-03-01 08:34:58.135676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.137254"], ["user_id", "d814f2e6-bfed-11e4-b0d7-705681abff85"], ["created_at", "2015-03-01 08:34:58.138013"], ["updated_at", "2015-03-01 08:34:58.138013"], ["token", "JlMJ_31pqIHxggmsromm2qKiDkpFcLXCMtEuaGzUGcs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.141239"], ["updated_at", "2015-03-01 08:34:58.141239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd814f2e6-bfed-11e4-b0d7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd815cc84-bfed-11e4-bf2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d814f2e6-bfed-11e4-b0d7-705681abff85"], ["organization_id", "d815cc84-bfed-11e4-bf2f-705681abff85"], ["created_at", "2015-03-01 08:34:58.144875"], ["updated_at", "2015-03-01 08:34:58.144875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.149563' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JlMJ_31pqIHxggmsromm2qKiDkpFcLXCMtEuaGzUGcs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.150956"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.151926"], ["id", "d81552f4-bfed-11e4-b2e9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d814f2e6-bfed-11e4-b0d7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.158029"], ["updated_at", "2015-03-01 08:34:58.158029"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d8185eea-bfed-11e4-9095-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd814f2e6-bfed-11e4-b0d7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8185eea-bfed-11e4-9095-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d814f2e6-bfed-11e4-b0d7-705681abff85"], ["admin", "t"], ["organization_id", "d8185eea-bfed-11e4-9095-705681abff85"], ["created_at", "2015-03-01 08:34:58.162566"], ["updated_at", "2015-03-01 08:34:58.162566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.7ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$whE1sRCI.88iTL/Swm5/IuCY8/KmFHI0ytdtBzSdEp2RNAl4uUZFe"], ["created_at", "2015-03-01 08:34:58.172100"], ["updated_at", "2015-03-01 08:34:58.172100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.173709"], ["user_id", "d81a82ba-bfed-11e4-a24a-705681abff85"], ["created_at", "2015-03-01 08:34:58.174563"], ["updated_at", "2015-03-01 08:34:58.174563"], ["token", "1evhecp5y-ojMp9Ag0bZgWJ0_7SC0Uz9g9NL0bOmL-k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.178407"], ["updated_at", "2015-03-01 08:34:58.178407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd81a82ba-bfed-11e4-a24a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd81b7990-bfed-11e4-9405-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d81a82ba-bfed-11e4-a24a-705681abff85"], ["organization_id", "d81b7990-bfed-11e4-9405-705681abff85"], ["created_at", "2015-03-01 08:34:58.181927"], ["updated_at", "2015-03-01 08:34:58.181927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.186377' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1evhecp5y-ojMp9Ag0bZgWJ0_7SC0Uz9g9NL0bOmL-k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.187822"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.188766"], ["id", "d81aea52-bfed-11e4-8efc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d81a82ba-bfed-11e4-a24a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$36MjQf2e9EKsRQnBjJzJcuGqzjb6lWwt5yulRqnWB5hwks4rBY/NW"], ["created_at", "2015-03-01 08:34:58.200274"], ["updated_at", "2015-03-01 08:34:58.200274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.201860"], ["user_id", "d81ecfc8-bfed-11e4-93be-705681abff85"], ["created_at", "2015-03-01 08:34:58.202653"], ["updated_at", "2015-03-01 08:34:58.202653"], ["token", "Exl2m7LiGoRp5wrl5y46Qixw1r2h_Ul6ZQeSkn6tzWg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.206361"], ["updated_at", "2015-03-01 08:34:58.206361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd81ecfc8-bfed-11e4-93be-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd81fb960-bfed-11e4-9870-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d81ecfc8-bfed-11e4-93be-705681abff85"], ["organization_id", "d81fb960-bfed-11e4-9870-705681abff85"], ["created_at", "2015-03-01 08:34:58.209678"], ["updated_at", "2015-03-01 08:34:58.209678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$9yVCRS.NWKnLSG1G7SR3QesOQ3NCBtlTr.SybK.9MMECszn1fwXQi"], ["created_at", "2015-03-01 08:34:58.221589"], ["updated_at", "2015-03-01 08:34:58.221589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.223182"], ["user_id", "d8220ec2-bfed-11e4-88c1-705681abff85"], ["created_at", "2015-03-01 08:34:58.223945"], ["updated_at", "2015-03-01 08:34:58.223945"], ["token", "CxQN8JZx2Lrw2Hk3FUb41xSNlthRmNqDhuKc-Hj-r9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.227516"], ["updated_at", "2015-03-01 08:34:58.227516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8220ec2-bfed-11e4-88c1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd822f6c0-bfed-11e4-8ec4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8220ec2-bfed-11e4-88c1-705681abff85"], ["organization_id", "d822f6c0-bfed-11e4-8ec4-705681abff85"], ["created_at", "2015-03-01 08:34:58.230984"], ["updated_at", "2015-03-01 08:34:58.230984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-23" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-23", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.235557' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CxQN8JZx2Lrw2Hk3FUb41xSNlthRmNqDhuKc-Hj-r9Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.236936"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.237866"], ["id", "d8226f16-bfed-11e4-ac68-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8220ec2-bfed-11e4-88c1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d8220ec2-bfed-11e4-88c1-705681abff85"], ["name", "org-23"]] Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 1.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$hx3DjlPozfSQ7bFlsp1rWuYMg9LpyKjoncUtMUxJP.Vtqgx6WazVS"], ["created_at", "2015-03-01 08:34:58.248421"], ["updated_at", "2015-03-01 08:34:58.248421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.250354"], ["user_id", "d82632cc-bfed-11e4-a07e-705681abff85"], ["created_at", "2015-03-01 08:34:58.251152"], ["updated_at", "2015-03-01 08:34:58.251152"], ["token", "xXKozYmZgDNdEFAGzQXp4LXNuc4sak98Ro8SV_4c-s4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.254945"], ["updated_at", "2015-03-01 08:34:58.254945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd82632cc-bfed-11e4-a07e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8272542-bfed-11e4-ab92-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d82632cc-bfed-11e4-a07e-705681abff85"], ["organization_id", "d8272542-bfed-11e4-ab92-705681abff85"], ["created_at", "2015-03-01 08:34:58.258237"], ["updated_at", "2015-03-01 08:34:58.258237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$hrm/gR5rK9JaFNcOtG73DO7m.CIu.B/Tp9kqVbF0Bq1I1UNLXl8da"], ["created_at", "2015-03-01 08:34:58.270141"], ["updated_at", "2015-03-01 08:34:58.270141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.271673"], ["user_id", "d8297798-bfed-11e4-ad13-705681abff85"], ["created_at", "2015-03-01 08:34:58.272454"], ["updated_at", "2015-03-01 08:34:58.272454"], ["token", "vrJXpkkihUzsNteMk3LRIEkvNKs5ir5FfhLevMB6J3E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.276408"], ["updated_at", "2015-03-01 08:34:58.276408"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8297798-bfed-11e4-ad13-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd82a6d38-bfed-11e4-aa9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8297798-bfed-11e4-ad13-705681abff85"], ["organization_id", "d82a6d38-bfed-11e4-aa9b-705681abff85"], ["created_at", "2015-03-01 08:34:58.280567"], ["updated_at", "2015-03-01 08:34:58.280567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-25" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-25", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.284940' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vrJXpkkihUzsNteMk3LRIEkvNKs5ir5FfhLevMB6J3E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.286348"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.287240"], ["id", "d829d63e-bfed-11e4-9501-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8297798-bfed-11e4-ad13-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d8297798-bfed-11e4-ad13-705681abff85"], ["name", "org-25"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd82a6d38-bfed-11e4-aa9b-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:34:58.294092"], ["id", "d82a6d38-bfed-11e4-aa9b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$uJI7vLkNzsCxq0WBHCBAKuoLwkvu65ejns0rmajO5jY0OQzg9zZZS"], ["created_at", "2015-03-01 08:34:58.301687"], ["updated_at", "2015-03-01 08:34:58.301687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.303374"], ["user_id", "d82e4a98-bfed-11e4-ae0f-705681abff85"], ["created_at", "2015-03-01 08:34:58.304164"], ["updated_at", "2015-03-01 08:34:58.304164"], ["token", "mcF41JxZ9dbqIJrR3ICdYhF_Lf23UEM0ISHslpcOiQ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.307361"], ["updated_at", "2015-03-01 08:34:58.307361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd82e4a98-bfed-11e4-ae0f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd82f2184-bfed-11e4-97ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d82e4a98-bfed-11e4-ae0f-705681abff85"], ["organization_id", "d82f2184-bfed-11e4-97ac-705681abff85"], ["created_at", "2015-03-01 08:34:58.310818"], ["updated_at", "2015-03-01 08:34:58.310818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-26" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-26", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.315286' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mcF41JxZ9dbqIJrR3ICdYhF_Lf23UEM0ISHslpcOiQ0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.317073"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.318967"], ["id", "d82eadd0-bfed-11e4-80ad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d82e4a98-bfed-11e4-ae0f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d82e4a98-bfed-11e4-ae0f-705681abff85"], ["name", "org-26"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd82f2184-bfed-11e4-97ac-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$fJ8YHh1dCMDXTYVzUjHdgOiGNAK69HHrExOPF3qn94wpKSWL6aQIi"], ["created_at", "2015-03-01 08:34:58.341201"], ["updated_at", "2015-03-01 08:34:58.341201"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.344904"], ["user_id", "d8347dbe-bfed-11e4-91ad-705681abff85"], ["created_at", "2015-03-01 08:34:58.357670"], ["updated_at", "2015-03-01 08:34:58.357670"], ["token", "Z2PGWou3jJlHVlrmBbCsulNFEgRYssnVuYLA7tGOj4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.366404"], ["updated_at", "2015-03-01 08:34:58.366404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8347dbe-bfed-11e4-91ad-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd83840e8-bfed-11e4-a694-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8347dbe-bfed-11e4-91ad-705681abff85"], ["organization_id", "d83840e8-bfed-11e4-a694-705681abff85"], ["created_at", "2015-03-01 08:34:58.371944"], ["updated_at", "2015-03-01 08:34:58.371944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 401 Unauthorized in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$Uj/9g2/LL7iK3i15ct0vWOiLcmcYQ.5JFlvWHPocvntvBwSH8qX5u"], ["created_at", "2015-03-01 08:34:58.387280"], ["updated_at", "2015-03-01 08:34:58.387280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.389747"], ["user_id", "d83b653e-bfed-11e4-a0bf-705681abff85"], ["created_at", "2015-03-01 08:34:58.390525"], ["updated_at", "2015-03-01 08:34:58.390525"], ["token", "FyXlNWkLYnZ7tQSDEiUwm2haoebe9210O-N_BwkKynM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.395873"], ["updated_at", "2015-03-01 08:34:58.395873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd83b653e-bfed-11e4-a0bf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd83ca944-bfed-11e4-a5c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d83b653e-bfed-11e4-a0bf-705681abff85"], ["organization_id", "d83ca944-bfed-11e4-a5c5-705681abff85"], ["created_at", "2015-03-01 08:34:58.399431"], ["updated_at", "2015-03-01 08:34:58.399431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-28" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-28", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.404646' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FyXlNWkLYnZ7tQSDEiUwm2haoebe9210O-N_BwkKynM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.406457"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.409028"], ["id", "d83bf8dc-bfed-11e4-9fb2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d83b653e-bfed-11e4-a0bf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d83b653e-bfed-11e4-a0bf-705681abff85"], ["name", "org-28"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d83ca944-bfed-11e4-a5c5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$mz/RKqNPyaLm7T6cSlYtMOyIIge4dgzNKDOUTi5rifN.e0.V8Xgpm"], ["created_at", "2015-03-01 08:34:58.421889"], ["updated_at", "2015-03-01 08:34:58.421889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.423510"], ["user_id", "d8409ffe-bfed-11e4-b94b-705681abff85"], ["created_at", "2015-03-01 08:34:58.424249"], ["updated_at", "2015-03-01 08:34:58.424249"], ["token", "ic5PnTt0QVzyjpc5Pn_ZbEPTPqYFPyz6chDmpd8cYmQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.428768"], ["updated_at", "2015-03-01 08:34:58.428768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8409ffe-bfed-11e4-b94b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd841aa66-bfed-11e4-b64c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8409ffe-bfed-11e4-b94b-705681abff85"], ["organization_id", "d841aa66-bfed-11e4-b64c-705681abff85"], ["created_at", "2015-03-01 08:34:58.433940"], ["updated_at", "2015-03-01 08:34:58.433940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 401 Unauthorized in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$1N.qu9lKPsRR.ZF0e17hT.D6vHcCZHSiXqG5dWsz9T/D1gmp1aZ3y"], ["created_at", "2015-03-01 08:34:58.447709"], ["updated_at", "2015-03-01 08:34:58.447709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.449383"], ["user_id", "d844926c-bfed-11e4-89a7-705681abff85"], ["created_at", "2015-03-01 08:34:58.450174"], ["updated_at", "2015-03-01 08:34:58.450174"], ["token", "p56ZZC5GPs7evB2VID20U74lG_FkAOE6KGkHphcoo04"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.454713"], ["updated_at", "2015-03-01 08:34:58.454713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd844926c-bfed-11e4-89a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd845a18e-bfed-11e4-9dac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d844926c-bfed-11e4-89a7-705681abff85"], ["organization_id", "d845a18e-bfed-11e4-9dac-705681abff85"], ["created_at", "2015-03-01 08:34:58.458227"], ["updated_at", "2015-03-01 08:34:58.458227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/d845a18e-bfed-11e4-9dac-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"d845a18e-bfed-11e4-9dac-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.463783' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p56ZZC5GPs7evB2VID20U74lG_FkAOE6KGkHphcoo04"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.465491"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.466580"], ["id", "d8450792-bfed-11e4-bf5c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d844926c-bfed-11e4-89a7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d844926c-bfed-11e4-89a7-705681abff85"], ["id", "d845a18e-bfed-11e4-9dac-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd845a18e-bfed-11e4-9dac-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-01 08:34:58.472465"], ["id", "d845a18e-bfed-11e4-9dac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$QVW3pcjL74bnT0ABjd8qhe3M2aLuMX2ICcUxRI1S4pinF4RMXbEii"], ["created_at", "2015-03-01 08:34:58.480199"], ["updated_at", "2015-03-01 08:34:58.480199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.482643"], ["user_id", "d8498dda-bfed-11e4-ad5c-705681abff85"], ["created_at", "2015-03-01 08:34:58.484057"], ["updated_at", "2015-03-01 08:34:58.484057"], ["token", "dTbOJime9qsr-yqjRhfYruaiXLsD6jBCnXXv_gRjaac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.488711"], ["updated_at", "2015-03-01 08:34:58.488711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8498dda-bfed-11e4-ad5c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd84ad118-bfed-11e4-914b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8498dda-bfed-11e4-ad5c-705681abff85"], ["organization_id", "d84ad118-bfed-11e4-914b-705681abff85"], ["created_at", "2015-03-01 08:34:58.492708"], ["updated_at", "2015-03-01 08:34:58.492708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/d84ad118-bfed-11e4-914b-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"d84ad118-bfed-11e4-914b-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.497912' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dTbOJime9qsr-yqjRhfYruaiXLsD6jBCnXXv_gRjaac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.499325"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.500266"], ["id", "d84a33e8-bfed-11e4-9740-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8498dda-bfed-11e4-ad5c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d8498dda-bfed-11e4-ad5c-705681abff85"], ["id", "d84ad118-bfed-11e4-914b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd84ad118-bfed-11e4-914b-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$NO3PHy6FCeiTdj5awrmYuuIfa76OMcQ9KMT82rC6WxiQBUAhvWdqm"], ["created_at", "2015-03-01 08:34:58.513720"], ["updated_at", "2015-03-01 08:34:58.513720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$qiMUI97FB2y8b6guGnBl0uL0yAv//X/60vWYK2RC/WuGfK.J33fA6"], ["created_at", "2015-03-01 08:34:58.518147"], ["updated_at", "2015-03-01 08:34:58.518147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.519724"], ["user_id", "d84ea4f0-bfed-11e4-bbc8-705681abff85"], ["created_at", "2015-03-01 08:34:58.520494"], ["updated_at", "2015-03-01 08:34:58.520494"], ["token", "lp3vU7HkNP47GPpdU4cm21WGEZc1-hztyVZqZS28j_Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.523754"], ["updated_at", "2015-03-01 08:34:58.523754"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd84ea4f0-bfed-11e4-bbc8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8502636-bfed-11e4-9074-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d84ea4f0-bfed-11e4-bbc8-705681abff85"], ["organization_id", "d8502636-bfed-11e4-9074-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.527837"], ["updated_at", "2015-03-01 08:34:58.527837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd84f4e32-bfed-11e4-a223-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8502636-bfed-11e4-9074-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d84f4e32-bfed-11e4-a223-705681abff85"], ["organization_id", "d8502636-bfed-11e4-9074-705681abff85"], ["created_at", "2015-03-01 08:34:58.532336"], ["updated_at", "2015-03-01 08:34:58.532336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$wuGIL9jod/UtYCzkNPAbzODnifyVPYdMWei8mV8EC1WIbCndGnjue"], ["created_at", "2015-03-01 08:34:58.550735"], ["updated_at", "2015-03-01 08:34:58.550735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$q4thOo1/AdCS1YcRnfdiv.jEN3HNg8evxBS61XfeWkm3BzSvsXyZ."], ["created_at", "2015-03-01 08:34:58.555074"], ["updated_at", "2015-03-01 08:34:58.555074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.556560"], ["user_id", "d8544c48-bfed-11e4-bfcb-705681abff85"], ["created_at", "2015-03-01 08:34:58.557773"], ["updated_at", "2015-03-01 08:34:58.557773"], ["token", "z52-qRIFZVKPC2rf452MdSJUZD69wa03wpeu7WdeQfc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.561980"], ["updated_at", "2015-03-01 08:34:58.561980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8544c48-bfed-11e4-bfcb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd855fd72-bfed-11e4-a67f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d8544c48-bfed-11e4-bfcb-705681abff85"], ["organization_id", "d855fd72-bfed-11e4-a67f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.565243"], ["updated_at", "2015-03-01 08:34:58.565243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd854ef90-bfed-11e4-b0b8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd855fd72-bfed-11e4-a67f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d854ef90-bfed-11e4-b0b8-705681abff85"], ["organization_id", "d855fd72-bfed-11e4-a67f-705681abff85"], ["created_at", "2015-03-01 08:34:58.568466"], ["updated_at", "2015-03-01 08:34:58.568466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/d8567e6e-bfed-11e4-b86d-705681abff85" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"d8567e6e-bfed-11e4-b86d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.572962' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z52-qRIFZVKPC2rf452MdSJUZD69wa03wpeu7WdeQfc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.574387"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.575365"], ["id", "d8558130-bfed-11e4-bcab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8544c48-bfed-11e4-bfcb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d8544c48-bfed-11e4-bfcb-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d8544c48-bfed-11e4-bfcb-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "d8544c48-bfed-11e4-bfcb-705681abff85"], ["id", "d8567e6e-bfed-11e4-b86d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d855fd72-bfed-11e4-a67f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8544c48-bfed-11e4-bfcb-705681abff85"]] Completed 200 OK in 14ms (Views: 4.5ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$fVdJrS6qg.tHNXemAzjpVe.fpg5nc3VpxD2yHQ/SGLgci9liaQ74i"], ["created_at", "2015-03-01 08:34:58.592826"], ["updated_at", "2015-03-01 08:34:58.592826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$/wtr1tSxV1WLt2o5Xj2YN.iVBeoPMdsB6w6Qe4Ivp2PBrIDBsGFpq"], ["created_at", "2015-03-01 08:34:58.597658"], ["updated_at", "2015-03-01 08:34:58.597658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.599366"], ["user_id", "d85ab664-bfed-11e4-8066-705681abff85"], ["created_at", "2015-03-01 08:34:58.600280"], ["updated_at", "2015-03-01 08:34:58.600280"], ["token", "XoiCOqEgP4CozdZkEW6qL4SJEBdqMrOGzm9ukxubSuU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.603809"], ["updated_at", "2015-03-01 08:34:58.603809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd85ab664-bfed-11e4-8066-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd85c5f50-bfed-11e4-86aa-705681abff85') LIMIT 1 SQL (5.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d85ab664-bfed-11e4-8066-705681abff85"], ["organization_id", "d85c5f50-bfed-11e4-86aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.606995"], ["updated_at", "2015-03-01 08:34:58.606995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd85b716c-bfed-11e4-99fd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd85c5f50-bfed-11e4-86aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d85b716c-bfed-11e4-99fd-705681abff85"], ["organization_id", "d85c5f50-bfed-11e4-86aa-705681abff85"], ["created_at", "2015-03-01 08:34:58.615817"], ["updated_at", "2015-03-01 08:34:58.615817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$B3ZpDM1WhmG5v2NEOahVO.m.GfCaiRtEcuZWGUZtdSHPZXrCpDsZ6"], ["created_at", "2015-03-01 08:34:58.620545"], ["updated_at", "2015-03-01 08:34:58.620545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.622098"], ["user_id", "d85eee00-bfed-11e4-86ba-705681abff85"], ["created_at", "2015-03-01 08:34:58.622903"], ["updated_at", "2015-03-01 08:34:58.622903"], ["token", "lIRTNxL48VT0AAxyzMNG30uLdQoXelKnHNhbKHQwjVk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'd85c5f50-bfed-11e4-86aa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "d85c5f50-bfed-11e4-86aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.627168"], ["updated_at", "2015-03-01 08:34:58.627168"], ["token", "74xBg0x36_7izoPhlLxtbLT99dVSkFJUP16NSfYeMWA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$bPPuUnOL220OxGpjtI.KR.1T5DSUo/zNpla33AaXfvjVAT4tTEd1S"], ["created_at", "2015-03-01 08:34:58.640248"], ["updated_at", "2015-03-01 08:34:58.640248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$ZfsDX9pycthUgdhEn5m1LOfMHQ.xaQuT6QlHtcwfar0CATSInmT9a"], ["created_at", "2015-03-01 08:34:58.644554"], ["updated_at", "2015-03-01 08:34:58.644554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.646720"], ["user_id", "d861f1fe-bfed-11e4-aa14-705681abff85"], ["created_at", "2015-03-01 08:34:58.647645"], ["updated_at", "2015-03-01 08:34:58.647645"], ["token", "DXpRh1ET1jSvQvB4jI7cKGm0af4uHN80bsLoefuObIA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.651222"], ["updated_at", "2015-03-01 08:34:58.651222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd861f1fe-bfed-11e4-aa14-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8639b94-bfed-11e4-bb25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d861f1fe-bfed-11e4-aa14-705681abff85"], ["organization_id", "d8639b94-bfed-11e4-bb25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.654642"], ["updated_at", "2015-03-01 08:34:58.654642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8629c30-bfed-11e4-a703-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8639b94-bfed-11e4-bb25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8629c30-bfed-11e4-a703-705681abff85"], ["organization_id", "d8639b94-bfed-11e4-bb25-705681abff85"], ["created_at", "2015-03-01 08:34:58.657721"], ["updated_at", "2015-03-01 08:34:58.657721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$nNlSblM8gdRQz10yb.IZue3Loa1iPl9tRlna/N9J4ZpnhAbPzUCQ6"], ["created_at", "2015-03-01 08:34:58.662904"], ["updated_at", "2015-03-01 08:34:58.662904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.665194"], ["user_id", "d8657450-bfed-11e4-9726-705681abff85"], ["created_at", "2015-03-01 08:34:58.666194"], ["updated_at", "2015-03-01 08:34:58.666194"], ["token", "gXMBFDSVtJfIMYqBgTMx7H1AKWEfWHbiWuVOlvYQpHQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'd8639b94-bfed-11e4-bb25-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "d8639b94-bfed-11e4-bb25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.671318"], ["updated_at", "2015-03-01 08:34:58.671318"], ["token", "tdwZesZQZ4MmrWASKnapNKPv3dOMWvI1zNUFGpH2Nq4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"tdwZesZQZ4MmrWASKnapNKPv3dOMWvI1zNUFGpH2Nq4", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.677250' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gXMBFDSVtJfIMYqBgTMx7H1AKWEfWHbiWuVOlvYQpHQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.678826"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.679880"], ["id", "d865f8c6-bfed-11e4-84d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8657450-bfed-11e4-9726-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d8657450-bfed-11e4-9726-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "tdwZesZQZ4MmrWASKnapNKPv3dOMWvI1zNUFGpH2Nq4"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d8639b94-bfed-11e4-bb25-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d8639b94-bfed-11e4-bb25-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8657450-bfed-11e4-9726-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8639b94-bfed-11e4-bb25-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d8657450-bfed-11e4-9726-705681abff85"], ["admin", "t"], ["organization_id", "d8639b94-bfed-11e4-bb25-705681abff85"], ["created_at", "2015-03-01 08:34:58.690039"], ["updated_at", "2015-03-01 08:34:58.690039"]] SQL (0.5ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "d866cbac-bfed-11e4-9ffa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 1.2ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$N4Zd9zkxEHDRMi0EE7YSDustLIb3euIiYBrAA.7SiO0wZrXv0gO6O"], ["created_at", "2015-03-01 08:34:58.703317"], ["updated_at", "2015-03-01 08:34:58.703317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$ZUlRA0LrFYIB9Nst3uijcu5oOOSGnCA4E4HzIDlJgUpM3csRZT7a."], ["created_at", "2015-03-01 08:34:58.707702"], ["updated_at", "2015-03-01 08:34:58.707702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.709283"], ["user_id", "d86b9222-bfed-11e4-8b51-705681abff85"], ["created_at", "2015-03-01 08:34:58.710092"], ["updated_at", "2015-03-01 08:34:58.710092"], ["token", "P1bWNjoWzM6aoaNa7S-ntiJqNrdfc7V38zoj7ecOxuI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.713965"], ["updated_at", "2015-03-01 08:34:58.713965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd86b9222-bfed-11e4-8b51-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd86d350a-bfed-11e4-9a8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d86b9222-bfed-11e4-8b51-705681abff85"], ["organization_id", "d86d350a-bfed-11e4-9a8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.717924"], ["updated_at", "2015-03-01 08:34:58.717924"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd86c3a24-bfed-11e4-aec7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd86d350a-bfed-11e4-9a8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d86c3a24-bfed-11e4-aec7-705681abff85"], ["organization_id", "d86d350a-bfed-11e4-9a8c-705681abff85"], ["created_at", "2015-03-01 08:34:58.723056"], ["updated_at", "2015-03-01 08:34:58.723056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$iti64wDUkXW7qyPYUMOAke8CRXQrk/aDuHymEWvU7r61zKyhGp2Pi"], ["created_at", "2015-03-01 08:34:58.728807"], ["updated_at", "2015-03-01 08:34:58.728807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.730736"], ["user_id", "d86f7b1c-bfed-11e4-bc9d-705681abff85"], ["created_at", "2015-03-01 08:34:58.731592"], ["updated_at", "2015-03-01 08:34:58.731592"], ["token", "EeX2odxr9Wr_tztxyLXCT7msRwX-LH5FXAemGmKr8_o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'd86d350a-bfed-11e4-9a8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "d86d350a-bfed-11e4-9a8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.736626"], ["updated_at", "2015-03-01 08:34:58.736626"], ["token", "qTf59q7c1nUn3jG_L0TEYK9PYHFvibnnouS1PrqpitA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.743167' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EeX2odxr9Wr_tztxyLXCT7msRwX-LH5FXAemGmKr8_o"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.746002"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.747251"], ["id", "d86ff95c-bfed-11e4-94dd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d86f7b1c-bfed-11e4-bc9d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d86f7b1c-bfed-11e4-bc9d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$FyUwORRLPZzzwwhdn79wxuZe4.pBMOjp9Lr.CI7J8tQpSQxSAYsbu"], ["created_at", "2015-03-01 08:34:58.758668"], ["updated_at", "2015-03-01 08:34:58.758668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$P7VbmkCA3XlDRpFqQwDM7elLwlmd0KpfBy5ia2vXgrwJT34KfZV2G"], ["created_at", "2015-03-01 08:34:58.763136"], ["updated_at", "2015-03-01 08:34:58.763136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.765524"], ["user_id", "d87402a4-bfed-11e4-8c07-705681abff85"], ["created_at", "2015-03-01 08:34:58.766390"], ["updated_at", "2015-03-01 08:34:58.766390"], ["token", "HPIh_KTRPgICruU-gPFHOkK6mXnp20vIZlQBmwI9KlA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.770633"], ["updated_at", "2015-03-01 08:34:58.770633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd87402a4-bfed-11e4-8c07-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd875d6f6-bfed-11e4-9470-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d87402a4-bfed-11e4-8c07-705681abff85"], ["organization_id", "d875d6f6-bfed-11e4-9470-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.774335"], ["updated_at", "2015-03-01 08:34:58.774335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd874bf28-bfed-11e4-838b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd875d6f6-bfed-11e4-9470-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d874bf28-bfed-11e4-838b-705681abff85"], ["organization_id", "d875d6f6-bfed-11e4-9470-705681abff85"], ["created_at", "2015-03-01 08:34:58.777810"], ["updated_at", "2015-03-01 08:34:58.777810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.783701' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HPIh_KTRPgICruU-gPFHOkK6mXnp20vIZlQBmwI9KlA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.785565"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.786587"], ["id", "d875461e-bfed-11e4-8ea0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d87402a4-bfed-11e4-8c07-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d87402a4-bfed-11e4-8c07-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd87402a4-bfed-11e4-8c07-705681abff85' LIMIT 1 [["organization_id", "d875d6f6-bfed-11e4-9470-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "d875d6f6-bfed-11e4-9470-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('d87402a4-bfed-11e4-8c07-705681abff85', 'd874bf28-bfed-11e4-838b-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('d875d6f6-bfed-11e4-9470-705681abff85') Completed 200 OK in 14ms (Views: 4.3ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$pY.ddvgl11ArS6.UnEdNHuvb/vW1YMh39tsu2.uTiDifAlM/c4OSa"], ["created_at", "2015-03-01 08:34:58.805301"], ["updated_at", "2015-03-01 08:34:58.805301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$aq5uPD1EA26lKqATssrUAelSo.DSgRG7si1w7Ay7SAL6ph5CchiG2"], ["created_at", "2015-03-01 08:34:58.809872"], ["updated_at", "2015-03-01 08:34:58.809872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.813426"], ["user_id", "d87b25ca-bfed-11e4-a246-705681abff85"], ["created_at", "2015-03-01 08:34:58.814247"], ["updated_at", "2015-03-01 08:34:58.814247"], ["token", "gtcXV5ofLhQX2zhURNIJ97iDIY2EFL9iwHuBIECzBWk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.818080"], ["updated_at", "2015-03-01 08:34:58.818080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd87b25ca-bfed-11e4-a246-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd87d1754-bfed-11e4-87fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d87b25ca-bfed-11e4-a246-705681abff85"], ["organization_id", "d87d1754-bfed-11e4-87fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.821897"], ["updated_at", "2015-03-01 08:34:58.821897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd87bd218-bfed-11e4-bf4e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd87d1754-bfed-11e4-87fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d87bd218-bfed-11e4-bf4e-705681abff85"], ["organization_id", "d87d1754-bfed-11e4-87fd-705681abff85"], ["created_at", "2015-03-01 08:34:58.825456"], ["updated_at", "2015-03-01 08:34:58.825456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.830738' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gtcXV5ofLhQX2zhURNIJ97iDIY2EFL9iwHuBIECzBWk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.832314"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.833332"], ["id", "d87c89ec-bfed-11e4-923c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d87b25ca-bfed-11e4-a246-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d87b25ca-bfed-11e4-a246-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d87b25ca-bfed-11e4-a246-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "d87b25ca-bfed-11e4-a246-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('d87b25ca-bfed-11e4-a246-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('d87d1754-bfed-11e4-87fd-705681abff85') Completed 200 OK in 14ms (Views: 4.3ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$djMYry4XQ4mmf/bwOOK9H.sikybgte7u8wcf1PtdOiZnHezaAdzBS"], ["created_at", "2015-03-01 08:34:58.852002"], ["updated_at", "2015-03-01 08:34:58.852002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$aN0bV2ttcUzzzfF02ZDWt.3F.JJqSXGASA696xTmekBgEso27hO1u"], ["created_at", "2015-03-01 08:34:58.856240"], ["updated_at", "2015-03-01 08:34:58.856240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.858013"], ["user_id", "d8824256-bfed-11e4-b08c-705681abff85"], ["created_at", "2015-03-01 08:34:58.858769"], ["updated_at", "2015-03-01 08:34:58.858769"], ["token", "BuRLSDxl-8K0IriETx45kPhxGYdw14SyvxjsJBuT7W4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.862621"], ["updated_at", "2015-03-01 08:34:58.862621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8824256-bfed-11e4-b08c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd883e3b8-bfed-11e4-a8b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d8824256-bfed-11e4-b08c-705681abff85"], ["organization_id", "d883e3b8-bfed-11e4-a8b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.866451"], ["updated_at", "2015-03-01 08:34:58.866451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd882e30a-bfed-11e4-8460-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd883e3b8-bfed-11e4-a8b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d882e30a-bfed-11e4-8460-705681abff85"], ["organization_id", "d883e3b8-bfed-11e4-a8b9-705681abff85"], ["created_at", "2015-03-01 08:34:58.869747"], ["updated_at", "2015-03-01 08:34:58.869747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$z01ltRxy3KhL3AdH27.AaemRVoglYEc/59.gBpRSfihKEiQTCe0Ay"], ["created_at", "2015-03-01 08:34:58.883340"], ["updated_at", "2015-03-01 08:34:58.883340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$9xOEBkBOYppVnA/yjLAosOXbeNdHychOhp1f8FnihHSrpYzpcV.oG"], ["created_at", "2015-03-01 08:34:58.888100"], ["updated_at", "2015-03-01 08:34:58.888100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.889801"], ["user_id", "d8870c5a-bfed-11e4-bab1-705681abff85"], ["created_at", "2015-03-01 08:34:58.890572"], ["updated_at", "2015-03-01 08:34:58.890572"], ["token", "XrIXx34kUeJ8UOlAgH3fU31LbZEgrC83ow9PQfqx-1Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.894177"], ["updated_at", "2015-03-01 08:34:58.894177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8870c5a-bfed-11e4-bab1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd888b1f4-bfed-11e4-be3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d8870c5a-bfed-11e4-bab1-705681abff85"], ["organization_id", "d888b1f4-bfed-11e4-be3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.898481"], ["updated_at", "2015-03-01 08:34:58.898481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd887c42e-bfed-11e4-b981-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd888b1f4-bfed-11e4-be3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d887c42e-bfed-11e4-b981-705681abff85"], ["organization_id", "d888b1f4-bfed-11e4-be3f-705681abff85"], ["created_at", "2015-03-01 08:34:58.901764"], ["updated_at", "2015-03-01 08:34:58.901764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/d889d87c-bfed-11e4-a11a-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"d889d87c-bfed-11e4-a11a-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.906305' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XrIXx34kUeJ8UOlAgH3fU31LbZEgrC83ow9PQfqx-1Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.908593"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.910310"], ["id", "d8882928-bfed-11e4-8ac7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8870c5a-bfed-11e4-bab1-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d8870c5a-bfed-11e4-bab1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd8870c5a-bfed-11e4-bab1-705681abff85' LIMIT 1 [["organization_id", "d888b1f4-bfed-11e4-be3f-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d888b1f4-bfed-11e4-be3f-705681abff85"], ["id", "d889d87c-bfed-11e4-a11a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d888b1f4-bfed-11e4-be3f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d887c42e-bfed-11e4-b981-705681abff85"]] Completed 200 OK in 14ms (Views: 2.1ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$LrmKsRxaagNwDEI5nomPjeWKoWs8OcVMtGrqZqGO8MMhAebNKbanG"], ["created_at", "2015-03-01 08:34:58.926770"], ["updated_at", "2015-03-01 08:34:58.926770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$3uSSGo4KLyOa6TT7KrnGwef1k577l9Q/AiBfI.EQpNLzv4FNtr5Ni"], ["created_at", "2015-03-01 08:34:58.931326"], ["updated_at", "2015-03-01 08:34:58.931326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.932935"], ["user_id", "d88daa4c-bfed-11e4-a179-705681abff85"], ["created_at", "2015-03-01 08:34:58.933698"], ["updated_at", "2015-03-01 08:34:58.933698"], ["token", "g1dAzXZ2D6Lv3pEovrT2zgZV9bhfND_dR5fHbE1JgA8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.936922"], ["updated_at", "2015-03-01 08:34:58.936922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd88daa4c-bfed-11e4-a179-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd88f315a-bfed-11e4-893d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d88daa4c-bfed-11e4-a179-705681abff85"], ["organization_id", "d88f315a-bfed-11e4-893d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.940740"], ["updated_at", "2015-03-01 08:34:58.940740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd88e5bf4-bfed-11e4-859d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd88f315a-bfed-11e4-893d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d88e5bf4-bfed-11e4-859d-705681abff85"], ["organization_id", "d88f315a-bfed-11e4-893d-705681abff85"], ["created_at", "2015-03-01 08:34:58.943797"], ["updated_at", "2015-03-01 08:34:58.943797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$W1jWByQ6q4gLBuMtoeSlR.s.VJFsdc.lqc83JEi7mD75rsRtN0zWa"], ["created_at", "2015-03-01 08:34:58.958693"], ["updated_at", "2015-03-01 08:34:58.958693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$Jtxq4CtX0aibBiu5ZoiX4esxhjoNWtQwhREaQSCJ5HRPjTHKtpZZS"], ["created_at", "2015-03-01 08:34:58.963183"], ["updated_at", "2015-03-01 08:34:58.963183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:58.965038"], ["user_id", "d8928a62-bfed-11e4-b91d-705681abff85"], ["created_at", "2015-03-01 08:34:58.965848"], ["updated_at", "2015-03-01 08:34:58.965848"], ["token", "RaMdq5FEfY-6-zWOeaoCHQPIqYQ3OiNdQ5IjrFAhnkw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:58.969133"], ["updated_at", "2015-03-01 08:34:58.969133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8928a62-bfed-11e4-b91d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8941bd4-bfed-11e4-b68c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d8928a62-bfed-11e4-b91d-705681abff85"], ["organization_id", "d8941bd4-bfed-11e4-b68c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:58.972236"], ["updated_at", "2015-03-01 08:34:58.972236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8933ae8-bfed-11e4-8fc2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8941bd4-bfed-11e4-b68c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8933ae8-bfed-11e4-8fc2-705681abff85"], ["organization_id", "d8941bd4-bfed-11e4-b68c-705681abff85"], ["created_at", "2015-03-01 08:34:58.975187"], ["updated_at", "2015-03-01 08:34:58.975187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/d8950b16-bfed-11e4-a9a3-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:58 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"d8950b16-bfed-11e4-a9a3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:58.979595' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RaMdq5FEfY-6-zWOeaoCHQPIqYQ3OiNdQ5IjrFAhnkw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:58.980978"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:58.981863"], ["id", "d893a6fe-bfed-11e4-aa9b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8928a62-bfed-11e4-b91d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d8928a62-bfed-11e4-b91d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd8928a62-bfed-11e4-b91d-705681abff85' LIMIT 1 [["organization_id", "d8941bd4-bfed-11e4-b68c-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d8941bd4-bfed-11e4-b68c-705681abff85"], ["id", "d8950b16-bfed-11e4-a9a3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8933ae8-bfed-11e4-8fc2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "d8950b16-bfed-11e4-a9a3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$BQR7eIWGTuxoDOaMXS5wVOiASrYr8hQqHNfbZA.Ld9FZIohsputzC"], ["created_at", "2015-03-01 08:34:58.995654"], ["updated_at", "2015-03-01 08:34:58.995654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$ZMRoe2iJfHfooAVdNuDyV.XcKUIp5C1VzbLHCDNTQRUwiFQjYR5hW"], ["created_at", "2015-03-01 08:34:59.000209"], ["updated_at", "2015-03-01 08:34:59.000209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:59.001650"], ["user_id", "d89830c0-bfed-11e4-9ef8-705681abff85"], ["created_at", "2015-03-01 08:34:59.002381"], ["updated_at", "2015-03-01 08:34:59.002381"], ["token", "nU_Cfpv9lZS5VN5Os0wPWSo_oZ9bayzrOdgrM2MpxAc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:59.005531"], ["updated_at", "2015-03-01 08:34:59.005531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd89830c0-bfed-11e4-9ef8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd899a9be-bfed-11e4-b0ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d89830c0-bfed-11e4-9ef8-705681abff85"], ["organization_id", "d899a9be-bfed-11e4-b0ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:59.008898"], ["updated_at", "2015-03-01 08:34:59.008898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd898db1a-bfed-11e4-9298-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd899a9be-bfed-11e4-b0ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d898db1a-bfed-11e4-9298-705681abff85"], ["organization_id", "d899a9be-bfed-11e4-b0ec-705681abff85"], ["created_at", "2015-03-01 08:34:59.011836"], ["updated_at", "2015-03-01 08:34:59.011836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/d89a2e7a-bfed-11e4-aefc-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:59 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"d89a2e7a-bfed-11e4-aefc-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:59.016092' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nU_Cfpv9lZS5VN5Os0wPWSo_oZ9bayzrOdgrM2MpxAc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:59.017467"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:59.018381"], ["id", "d8993678-bfed-11e4-bd43-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d89830c0-bfed-11e4-9ef8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d89830c0-bfed-11e4-9ef8-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd89830c0-bfed-11e4-9ef8-705681abff85' LIMIT 1 [["organization_id", "d899a9be-bfed-11e4-b0ec-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d899a9be-bfed-11e4-b0ec-705681abff85"], ["id", "d89a2e7a-bfed-11e4-aefc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d89830c0-bfed-11e4-9ef8-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$CvjDoeQR953kPDw0B/37R.z5K.8EkwCFe9RQHPN/zFhqnqK4LPoOO"], ["created_at", "2015-03-01 08:34:59.029745"], ["updated_at", "2015-03-01 08:34:59.029745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$gIdScDFpYA1ZYHS3TzVK4O8Xu3UNqb7pzDJarBubI37qnvzWeZ6VW"], ["created_at", "2015-03-01 08:34:59.034146"], ["updated_at", "2015-03-01 08:34:59.034146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:59.035597"], ["user_id", "d89d6310-bfed-11e4-b0ee-705681abff85"], ["created_at", "2015-03-01 08:34:59.036322"], ["updated_at", "2015-03-01 08:34:59.036322"], ["token", "DXGvM3c7lAeseKG1ppCXG6Cch7QjE7i64qbISGqSCo8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:59.039437"], ["updated_at", "2015-03-01 08:34:59.039437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd89d6310-bfed-11e4-b0ee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd89ed5f6-bfed-11e4-91d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d89d6310-bfed-11e4-b0ee-705681abff85"], ["organization_id", "d89ed5f6-bfed-11e4-91d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:59.042915"], ["updated_at", "2015-03-01 08:34:59.042915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd89e0932-bfed-11e4-844d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd89ed5f6-bfed-11e4-91d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d89e0932-bfed-11e4-844d-705681abff85"], ["organization_id", "d89ed5f6-bfed-11e4-91d1-705681abff85"], ["created_at", "2015-03-01 08:34:59.046008"], ["updated_at", "2015-03-01 08:34:59.046008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 00:34:59 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 401 Unauthorized in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$4CDZw7EYqOY54DDuAbHDl.1WzKK5KkdJfb0EAuR6x1rnrbrJ.BdaC"], ["created_at", "2015-03-01 08:34:59.060740"], ["updated_at", "2015-03-01 08:34:59.060740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$ABhFwyptbKQR0iUtIRG29OiScDpStvszlwi8TTd46wUhqY0acXf7u"], ["created_at", "2015-03-01 08:34:59.065174"], ["updated_at", "2015-03-01 08:34:59.065174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:59.066674"], ["user_id", "d8a219c8-bfed-11e4-9abc-705681abff85"], ["created_at", "2015-03-01 08:34:59.067408"], ["updated_at", "2015-03-01 08:34:59.067408"], ["token", "1CkdeIWXSFm0smNaeWfz7k752wKs6cyffcCVxEP791M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:59.070626"], ["updated_at", "2015-03-01 08:34:59.070626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8a219c8-bfed-11e4-9abc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8a39870-bfed-11e4-8d57-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d8a219c8-bfed-11e4-9abc-705681abff85"], ["organization_id", "d8a39870-bfed-11e4-8d57-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:59.075106"], ["updated_at", "2015-03-01 08:34:59.075106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8a2c508-bfed-11e4-bebe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8a39870-bfed-11e4-8d57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8a2c508-bfed-11e4-bebe-705681abff85"], ["organization_id", "d8a39870-bfed-11e4-8d57-705681abff85"], ["created_at", "2015-03-01 08:34:59.080686"], ["updated_at", "2015-03-01 08:34:59.080686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/d8a525e6-bfed-11e4-8bdd-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:59 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"d8a525e6-bfed-11e4-8bdd-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:59.085582' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1CkdeIWXSFm0smNaeWfz7k752wKs6cyffcCVxEP791M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:59.086980"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:59.087864"], ["id", "d8a322aa-bfed-11e4-8c6c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8a219c8-bfed-11e4-9abc-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d8a219c8-bfed-11e4-9abc-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd8a219c8-bfed-11e4-9abc-705681abff85' LIMIT 1 [["organization_id", "d8a39870-bfed-11e4-8d57-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d8a39870-bfed-11e4-8d57-705681abff85"], ["id", "d8a525e6-bfed-11e4-8bdd-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8a2c508-bfed-11e4-bebe-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d8a39870-bfed-11e4-8d57-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8a2c508-bfed-11e4-bebe-705681abff85' AND "clubhouse_memberships"."id" != 'd8a525e6-bfed-11e4-8bdd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8a39870-bfed-11e4-8d57-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-01 08:34:59.099386"], ["id", "d8a525e6-bfed-11e4-8bdd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.3ms | ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$uAuWkVNuvzdkyx5Jfv6EAeAmbui.RmH33etp5OdJm7OUHn9fWLFWi"], ["created_at", "2015-03-01 08:34:59.108149"], ["updated_at", "2015-03-01 08:34:59.108149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$ERDgd3mpgP3t6VxynLIX8uyyqfBQQTst.W5acY/ocekdXnrF1KWE6"], ["created_at", "2015-03-01 08:34:59.112648"], ["updated_at", "2015-03-01 08:34:59.112648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-01 08:34:59.114253"], ["user_id", "d8a95684-bfed-11e4-b67e-705681abff85"], ["created_at", "2015-03-01 08:34:59.115214"], ["updated_at", "2015-03-01 08:34:59.115214"], ["token", "A-xeY6r2xq0Bj57tViZrzouFzuy6sIeHB7eXazsduNs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-01 08:34:59.118579"], ["updated_at", "2015-03-01 08:34:59.118579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8a95684-bfed-11e4-b67e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8aae986-bfed-11e4-b5c9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d8a95684-bfed-11e4-b67e-705681abff85"], ["organization_id", "d8aae986-bfed-11e4-b5c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-01 08:34:59.121563"], ["updated_at", "2015-03-01 08:34:59.121563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8aa0516-bfed-11e4-9b8d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd8aae986-bfed-11e4-b5c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8aa0516-bfed-11e4-9b8d-705681abff85"], ["organization_id", "d8aae986-bfed-11e4-b5c9-705681abff85"], ["created_at", "2015-03-01 08:34:59.125195"], ["updated_at", "2015-03-01 08:34:59.125195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/d8ab6406-bfed-11e4-8cec-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 00:34:59 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"d8ab6406-bfed-11e4-8cec-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-15 08:34:59.129682' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A-xeY6r2xq0Bj57tViZrzouFzuy6sIeHB7eXazsduNs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-01 08:34:59.131146"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-01 08:34:59.132310"], ["id", "d8aa71a4-bfed-11e4-aeb8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8a95684-bfed-11e4-b67e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "d8a95684-bfed-11e4-b67e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd8a95684-bfed-11e4-b67e-705681abff85' LIMIT 1 [["organization_id", "d8aae986-bfed-11e4-b5c9-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "d8aae986-bfed-11e4-b5c9-705681abff85"], ["id", "d8ab6406-bfed-11e4-8cec-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8a95684-bfed-11e4-b67e-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$SOL7Vsy4A/ekoyaUdStWbOsv6UkwAFKW0kp87KDlJkTjKAKYhzZRO"], ["created_at", "2015-03-02 05:07:02.764985"], ["updated_at", "2015-03-02 05:07:02.764985"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f69b7102-c099-11e4-b299-705681abff85, null, user.1@example.com, $2a$04$SOL7Vsy4A/ekoyaUdStWbOsv6UkwAFKW0kp87KDlJkTjKAKYhzZRO, null, 2015-03-02 05:07:02.764985, 2015-03-02 05:07:02.764985). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$j0IfD2R8rxT77ti6LvzFa.Zs6kj2trxAzP53jbu2W1JEKiQJ0ZWNO"], ["created_at", "2015-03-02 05:07:02.796280"], ["updated_at", "2015-03-02 05:07:02.796280"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f69cfcde-c099-11e4-97c9-705681abff85, null, user.2@example.com, $2a$04$j0IfD2R8rxT77ti6LvzFa.Zs6kj2trxAzP53jbu2W1JEKiQJ0ZWNO, null, 2015-03-02 05:07:02.79628, 2015-03-02 05:07:02.79628). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$xwzlk7AsMIa6eBC.3OAl8OK.s6lkSMFJVpmnHLKOFy2PrJrXyX3cS"], ["created_at", "2015-03-02 05:07:02.802811"], ["updated_at", "2015-03-02 05:07:02.802811"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f69e000c-c099-11e4-b629-705681abff85, null, user.3@example.com, $2a$04$xwzlk7AsMIa6eBC.3OAl8OK.s6lkSMFJVpmnHLKOFy2PrJrXyX3cS, null, 2015-03-02 05:07:02.802811, 2015-03-02 05:07:02.802811). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$AG7r7jofSwhCdVCqOVFHle2Hqiu.WqFC2R5dud1X1CKv2bvouGSX6"], ["created_at", "2015-03-02 05:07:02.810662"], ["updated_at", "2015-03-02 05:07:02.810662"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f69f48ea-c099-11e4-bae2-705681abff85, null, user.4@example.com, $2a$04$AG7r7jofSwhCdVCqOVFHle2Hqiu.WqFC2R5dud1X1CKv2bvouGSX6, null, 2015-03-02 05:07:02.810662, 2015-03-02 05:07:02.810662). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$6X.Ehyk0YJL77kA2bj..tOldSTNuIdrEwZXCdIFaXXIr8SdN7ayA2"], ["created_at", "2015-03-02 05:07:02.819739"], ["updated_at", "2015-03-02 05:07:02.819739"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6a0a172-c099-11e4-94bb-705681abff85, null, user.5@example.com, $2a$04$6X.Ehyk0YJL77kA2bj..tOldSTNuIdrEwZXCdIFaXXIr8SdN7ayA2, null, 2015-03-02 05:07:02.819739, 2015-03-02 05:07:02.819739). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$utvzHTvjM8wQacYUrFKTdO0qmv4Mp0pvQLv08ASrk2Zd1GKgHSqvK"], ["created_at", "2015-03-02 05:07:02.834799"], ["updated_at", "2015-03-02 05:07:02.834799"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6a2e112-c099-11e4-94af-705681abff85, null, user.6@example.com, $2a$04$utvzHTvjM8wQacYUrFKTdO0qmv4Mp0pvQLv08ASrk2Zd1GKgHSqvK, null, 2015-03-02 05:07:02.834799, 2015-03-02 05:07:02.834799). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$iMm17AVqtriP/cX1SvargubbgyIb8M3Dw2hh1QALYXxW/9yHcoBx6"], ["created_at", "2015-03-02 05:07:02.843477"], ["updated_at", "2015-03-02 05:07:02.843477"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6a430e4-c099-11e4-926a-705681abff85, null, user.7@example.com, $2a$04$iMm17AVqtriP/cX1SvargubbgyIb8M3Dw2hh1QALYXxW/9yHcoBx6, null, 2015-03-02 05:07:02.843477, 2015-03-02 05:07:02.843477). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$DoFmcUdcM9ptrNIKOM0rieOouYxwQOa7OpwoEW5k7vvbcCqBazOn."], ["created_at", "2015-03-02 05:07:02.850229"], ["updated_at", "2015-03-02 05:07:02.850229"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6a54650-c099-11e4-b9ce-705681abff85, null, user.8@example.com, $2a$04$DoFmcUdcM9ptrNIKOM0rieOouYxwQOa7OpwoEW5k7vvbcCqBazOn., null, 2015-03-02 05:07:02.850229, 2015-03-02 05:07:02.850229). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$X1nYpiu/JS/dTD97hsm9U.lXa7sjKTaukSuAC/wgZ/fv9V03QAPZW"], ["created_at", "2015-03-02 05:07:02.857994"], ["updated_at", "2015-03-02 05:07:02.857994"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6a668f0-c099-11e4-8c54-705681abff85, null, user.9@example.com, $2a$04$X1nYpiu/JS/dTD97hsm9U.lXa7sjKTaukSuAC/wgZ/fv9V03QAPZW, null, 2015-03-02 05:07:02.857994, 2015-03-02 05:07:02.857994). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$XRzme2Pr6QxJLkb946m8IeFdTngrHyeq2kt/SliZpV6BihzCJ1dCq"], ["created_at", "2015-03-02 05:07:02.864817"], ["updated_at", "2015-03-02 05:07:02.864817"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6a78b4a-c099-11e4-b500-705681abff85, null, user.10@example.com, $2a$04$XRzme2Pr6QxJLkb946m8IeFdTngrHyeq2kt/SliZpV6BihzCJ1dCq, null, 2015-03-02 05:07:02.864817, 2015-03-02 05:07:02.864817). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$PagvoUzSPx2lmhZlo1ox4utFTEHDn2xLveb1LkMwm9upyiEPfwYaS"], ["created_at", "2015-03-02 05:07:02.872519"], ["updated_at", "2015-03-02 05:07:02.872519"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6a8a2b4-c099-11e4-a26f-705681abff85, null, user.11@example.com, $2a$04$PagvoUzSPx2lmhZlo1ox4utFTEHDn2xLveb1LkMwm9upyiEPfwYaS, null, 2015-03-02 05:07:02.872519, 2015-03-02 05:07:02.872519). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$d6BF1m6qN0XuObZINY7p1ep/9aJPhiwVuzSeHTvsbQpWojKOwg/62"], ["created_at", "2015-03-02 05:07:02.880348"], ["updated_at", "2015-03-02 05:07:02.880348"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6a9d260-c099-11e4-9fb5-705681abff85, null, user.12@example.com, $2a$04$d6BF1m6qN0XuObZINY7p1ep/9aJPhiwVuzSeHTvsbQpWojKOwg/62, null, 2015-03-02 05:07:02.880348, 2015-03-02 05:07:02.880348). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_invitations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_invitations"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_invitations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$oyEN7IgAzSbxtozCXXyzvOJdZBx.A1QL8U7zWTRMXYn606POFumxe"], ["created_at", "2015-03-02 05:07:03.113779"], ["updated_at", "2015-03-02 05:07:03.113779"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6cd704e-c099-11e4-9d41-705681abff85, null, user.13@example.com, $2a$04$oyEN7IgAzSbxtozCXXyzvOJdZBx.A1QL8U7zWTRMXYn606POFumxe, null, 2015-03-02 05:07:03.113779, 2015-03-02 05:07:03.113779). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$IdBCpVhKXzZIY03bVfKKUem0t9x/2vtXJLpo.AJk1iG4Qp4uiXLme"], ["created_at", "2015-03-02 05:07:03.120018"], ["updated_at", "2015-03-02 05:07:03.120018"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6ce6508-c099-11e4-830f-705681abff85, null, user.14@example.com, $2a$04$IdBCpVhKXzZIY03bVfKKUem0t9x/2vtXJLpo.AJk1iG4Qp4uiXLme, null, 2015-03-02 05:07:03.120018, 2015-03-02 05:07:03.120018). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$8ZA4LbRZcoOYsMxkMVLgt.NibfgBgeSmyOAyhH1Y1FHZhISf41KbO"], ["created_at", "2015-03-02 05:07:03.127332"], ["updated_at", "2015-03-02 05:07:03.127332"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6cf8046-c099-11e4-b5d5-705681abff85, null, user.15@example.com, $2a$04$8ZA4LbRZcoOYsMxkMVLgt.NibfgBgeSmyOAyhH1Y1FHZhISf41KbO, null, 2015-03-02 05:07:03.127332, 2015-03-02 05:07:03.127332). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Bm25kqdBnOYCb0k12s25Ve1/2NFjdKV8udM3tAqv2wqKaWSyiqzIG"], ["created_at", "2015-03-02 05:07:03.133616"], ["updated_at", "2015-03-02 05:07:03.133616"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6d07b54-c099-11e4-8f8b-705681abff85, null, user.16@example.com, $2a$04$Bm25kqdBnOYCb0k12s25Ve1/2NFjdKV8udM3tAqv2wqKaWSyiqzIG, null, 2015-03-02 05:07:03.133616, 2015-03-02 05:07:03.133616). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$cZ/BjKfktC4xFvOGC/IOOe9vS1XJfaBqvdaJRKZFeKruhSLK7cLSS"], ["created_at", "2015-03-02 05:07:03.141043"], ["updated_at", "2015-03-02 05:07:03.141043"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6d1a89e-c099-11e4-82da-705681abff85, null, user.17@example.com, $2a$04$cZ/BjKfktC4xFvOGC/IOOe9vS1XJfaBqvdaJRKZFeKruhSLK7cLSS, null, 2015-03-02 05:07:03.141043, 2015-03-02 05:07:03.141043). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$tDAhzKhuefIjkvftIXKWkOQ/3iyuVELvrLPgVMyS2Y7ZGpRip3N96"], ["created_at", "2015-03-02 05:07:03.148055"], ["updated_at", "2015-03-02 05:07:03.148055"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6d2a8ca-c099-11e4-b240-705681abff85, null, user.18@example.com, $2a$04$tDAhzKhuefIjkvftIXKWkOQ/3iyuVELvrLPgVMyS2Y7ZGpRip3N96, null, 2015-03-02 05:07:03.148055, 2015-03-02 05:07:03.148055). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$MtBr4Bkywj79unCgqcbqNexs3TgDzCmYflyVR2Tt2FWla.gvEsWV2"], ["created_at", "2015-03-02 05:07:03.154268"], ["updated_at", "2015-03-02 05:07:03.154268"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6d39b90-c099-11e4-a87d-705681abff85, null, user.19@example.com, $2a$04$MtBr4Bkywj79unCgqcbqNexs3TgDzCmYflyVR2Tt2FWla.gvEsWV2, null, 2015-03-02 05:07:03.154268, 2015-03-02 05:07:03.154268). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$HA.9SJnqBxLHZfA8hX0A8Os2xkgA0i44qdU1LwvgQ0JcLZA1iCpja"], ["created_at", "2015-03-02 05:07:03.161765"], ["updated_at", "2015-03-02 05:07:03.161765"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6d4cd94-c099-11e4-9cd6-705681abff85, null, user.20@example.com, $2a$04$HA.9SJnqBxLHZfA8hX0A8Os2xkgA0i44qdU1LwvgQ0JcLZA1iCpja, null, 2015-03-02 05:07:03.161765, 2015-03-02 05:07:03.161765). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$BkhmI7DhM4B8N4VdMxo.sOOjv.73EdT3MieWbcR2jow.LOdbLgJpS"], ["created_at", "2015-03-02 05:07:03.168764"], ["updated_at", "2015-03-02 05:07:03.168764"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6d5e4fe-c099-11e4-92f6-705681abff85, null, user.21@example.com, $2a$04$BkhmI7DhM4B8N4VdMxo.sOOjv.73EdT3MieWbcR2jow.LOdbLgJpS, null, 2015-03-02 05:07:03.168764, 2015-03-02 05:07:03.168764). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$7fyZLvGZp/JBQHqC/AnSMuZbPrfq9mutK7wChjSGF.Mql68A3tabW"], ["created_at", "2015-03-02 05:07:03.175618"], ["updated_at", "2015-03-02 05:07:03.175618"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6d6e7fa-c099-11e4-99c4-705681abff85, null, user.22@example.com, $2a$04$7fyZLvGZp/JBQHqC/AnSMuZbPrfq9mutK7wChjSGF.Mql68A3tabW, null, 2015-03-02 05:07:03.175618, 2015-03-02 05:07:03.175618). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$wLbBeyNIS0ZlVuQzrC26vOuM17imCO1rVgoz/cTyaQsXo5/dl7lXu"], ["created_at", "2015-03-02 05:07:03.182497"], ["updated_at", "2015-03-02 05:07:03.182497"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6d7ea60-c099-11e4-aaeb-705681abff85, null, user.23@example.com, $2a$04$wLbBeyNIS0ZlVuQzrC26vOuM17imCO1rVgoz/cTyaQsXo5/dl7lXu, null, 2015-03-02 05:07:03.182497, 2015-03-02 05:07:03.182497). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$OuAzLI4frvP1iEmMN/slwuRuO4Z3laN7Go5Tc8sgXmSJbS1NODHEq"], ["created_at", "2015-03-02 05:07:03.189562"], ["updated_at", "2015-03-02 05:07:03.189562"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6d91b10-c099-11e4-8e70-705681abff85, null, user.24@example.com, $2a$04$OuAzLI4frvP1iEmMN/slwuRuO4Z3laN7Go5Tc8sgXmSJbS1NODHEq, null, 2015-03-02 05:07:03.189562, 2015-03-02 05:07:03.189562). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$EUO1e0zHqS.WClj.otknIOknTodK4FH.wcU0oJyfkku.ySQfkunwe"], ["created_at", "2015-03-02 05:07:03.197207"], ["updated_at", "2015-03-02 05:07:03.197207"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6da282a-c099-11e4-ac77-705681abff85, null, user.25@example.com, $2a$04$EUO1e0zHqS.WClj.otknIOknTodK4FH.wcU0oJyfkku.ySQfkunwe, null, 2015-03-02 05:07:03.197207, 2015-03-02 05:07:03.197207). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$olvZOyj6T29fBUUlhDCHeuZfXJKef0SCZJpKCNOQsSvq6iRo5p9S."], ["created_at", "2015-03-02 05:07:03.204809"], ["updated_at", "2015-03-02 05:07:03.204809"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6db5272-c099-11e4-bd13-705681abff85, null, user.26@example.com, $2a$04$olvZOyj6T29fBUUlhDCHeuZfXJKef0SCZJpKCNOQsSvq6iRo5p9S., null, 2015-03-02 05:07:03.204809, 2015-03-02 05:07:03.204809). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$Xkn1jQRcnXTtu9NCGYfG3eOA0NJPu/jx2ZYI5XjwIJ40bb.EZlYP6"], ["created_at", "2015-03-02 05:07:03.210823"], ["updated_at", "2015-03-02 05:07:03.210823"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6dc3b7e-c099-11e4-bcf4-705681abff85, null, user.27@example.com, $2a$04$Xkn1jQRcnXTtu9NCGYfG3eOA0NJPu/jx2ZYI5XjwIJ40bb.EZlYP6, null, 2015-03-02 05:07:03.210823, 2015-03-02 05:07:03.210823). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$OuB99rR3bo1FBoXzG2qDiuAKkHXbqGfyU5bH8pHKdGlj7GwNc.Ai2"], ["created_at", "2015-03-02 05:07:03.217054"], ["updated_at", "2015-03-02 05:07:03.217054"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6dd342a-c099-11e4-935f-705681abff85, null, user.28@example.com, $2a$04$OuB99rR3bo1FBoXzG2qDiuAKkHXbqGfyU5bH8pHKdGlj7GwNc.Ai2, null, 2015-03-02 05:07:03.217054, 2015-03-02 05:07:03.217054). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$EWx9n1tnFIXvsUsbUDooceJ/Hf..ExrR6oPSNQMIl.QwTW/6sZE9u"], ["created_at", "2015-03-02 05:07:03.223330"], ["updated_at", "2015-03-02 05:07:03.223330"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6de2498-c099-11e4-926d-705681abff85, null, user.29@example.com, $2a$04$EWx9n1tnFIXvsUsbUDooceJ/Hf..ExrR6oPSNQMIl.QwTW/6sZE9u, null, 2015-03-02 05:07:03.22333, 2015-03-02 05:07:03.22333). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$em8oT5Ls727cUZmN8eR3TeKCygAUbiBCt41dLaoIpPwgBJB7ZuZFq"], ["created_at", "2015-03-02 05:07:03.230329"], ["updated_at", "2015-03-02 05:07:03.230329"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6df408a-c099-11e4-b537-705681abff85, null, user.30@example.com, $2a$04$em8oT5Ls727cUZmN8eR3TeKCygAUbiBCt41dLaoIpPwgBJB7ZuZFq, null, 2015-03-02 05:07:03.230329, 2015-03-02 05:07:03.230329). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (3.0ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$qTz6gyyb1EKOMTb/OaMBSecJhIjo3MqaPZWkBNER5ZYSDHi2uEuFC"], ["created_at", "2015-03-02 05:07:03.252280"], ["updated_at", "2015-03-02 05:07:03.252280"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6e343ce-c099-11e4-a24e-705681abff85, null, user.31@example.com, $2a$04$qTz6gyyb1EKOMTb/OaMBSecJhIjo3MqaPZWkBNER5ZYSDHi2uEuFC, null, 2015-03-02 05:07:03.25228, 2015-03-02 05:07:03.25228). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$V4VRL.V1iQ3vsfFgGMtBGucN.9kLoF1yaHphVDVBVofcy/T3tswhG"], ["created_at", "2015-03-02 05:07:03.266893"], ["updated_at", "2015-03-02 05:07:03.266893"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6e4e846-c099-11e4-89a4-705681abff85, null, user.32@example.com, $2a$04$V4VRL.V1iQ3vsfFgGMtBGucN.9kLoF1yaHphVDVBVofcy/T3tswhG, null, 2015-03-02 05:07:03.266893, 2015-03-02 05:07:03.266893). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$wxgmIfGHqetqQZ5SdFPQlu4TDyGGEYCQLavuUJFlIEuywO6z/hZcq"], ["created_at", "2015-03-02 05:07:03.278327"], ["updated_at", "2015-03-02 05:07:03.278327"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6e68cf0-c099-11e4-a8e8-705681abff85, null, user.33@example.com, $2a$04$wxgmIfGHqetqQZ5SdFPQlu4TDyGGEYCQLavuUJFlIEuywO6z/hZcq, null, 2015-03-02 05:07:03.278327, 2015-03-02 05:07:03.278327). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$./o/CviwwEBV4h.0NSRvT.IVgH3pP1beeHi/p0wCeDPIAwiv.B00y"], ["created_at", "2015-03-02 05:07:03.284366"], ["updated_at", "2015-03-02 05:07:03.284366"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6e77322-c099-11e4-9f1b-705681abff85, null, user.34@example.com, $2a$04$./o/CviwwEBV4h.0NSRvT.IVgH3pP1beeHi/p0wCeDPIAwiv.B00y, null, 2015-03-02 05:07:03.284366, 2015-03-02 05:07:03.284366). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_memberships" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_memberships"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_memberships"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_memberships" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_memberships"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_memberships"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_memberships" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_memberships"':... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_memberships"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$z6Ejet06VK53WiTn.PtPaOtfsG3fD0H8YzNVnZu9yuV5sH3TaSw0u"], ["created_at", "2015-03-02 05:07:03.296267"], ["updated_at", "2015-03-02 05:07:03.296267"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6e94e36-c099-11e4-9702-705681abff85, null, user.35@example.com, $2a$04$z6Ejet06VK53WiTn.PtPaOtfsG3fD0H8YzNVnZu9yuV5sH3TaSw0u, null, 2015-03-02 05:07:03.296267, 2015-03-02 05:07:03.296267). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$I3AViuo7d19G1GuZKNGRGOzKfPNgH6o1zZPgKq4rdbZ8sZOekROI6"], ["created_at", "2015-03-02 05:07:03.302573"], ["updated_at", "2015-03-02 05:07:03.302573"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6ea3af8-c099-11e4-bbff-705681abff85, null, user.36@example.com, $2a$04$I3AViuo7d19G1GuZKNGRGOzKfPNgH6o1zZPgKq4rdbZ8sZOekROI6, null, 2015-03-02 05:07:03.302573, 2015-03-02 05:07:03.302573). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$A.FAmGbyQtmKZP2estkA2uVuXVbUJ1ZOMLwT8gWjHJXheJWBaVmTi"], ["created_at", "2015-03-02 05:07:03.308913"], ["updated_at", "2015-03-02 05:07:03.308913"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6eb35c0-c099-11e4-88ac-705681abff85, null, user.37@example.com, $2a$04$A.FAmGbyQtmKZP2estkA2uVuXVbUJ1ZOMLwT8gWjHJXheJWBaVmTi, null, 2015-03-02 05:07:03.308913, 2015-03-02 05:07:03.308913). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$laiwn7YAZ1lt4abVn1oBqua1cI8Vi2085Fq.n0WStTR9cOs9k/pPa"], ["created_at", "2015-03-02 05:07:03.315012"], ["updated_at", "2015-03-02 05:07:03.315012"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6ec296c-c099-11e4-a4ab-705681abff85, null, user.38@example.com, $2a$04$laiwn7YAZ1lt4abVn1oBqua1cI8Vi2085Fq.n0WStTR9cOs9k/pPa, null, 2015-03-02 05:07:03.315012, 2015-03-02 05:07:03.315012). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$tml.VkjJQQUS4cFg.4v9uOVcwwwIhHQ0rr6wSkPxd4huFhmOT/d8W"], ["created_at", "2015-03-02 05:07:03.321646"], ["updated_at", "2015-03-02 05:07:03.321646"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6ed2dd0-c099-11e4-a76f-705681abff85, null, user.39@example.com, $2a$04$tml.VkjJQQUS4cFg.4v9uOVcwwwIhHQ0rr6wSkPxd4huFhmOT/d8W, null, 2015-03-02 05:07:03.321646, 2015-03-02 05:07:03.321646). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$0pZojLdmLQRiYElgSeL.LukCcbbSA/sxXZ/MqP3KqXd52hOx2T.FC"], ["created_at", "2015-03-02 05:07:03.328358"], ["updated_at", "2015-03-02 05:07:03.328358"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6ee2d70-c099-11e4-9054-705681abff85, null, user.40@example.com, $2a$04$0pZojLdmLQRiYElgSeL.LukCcbbSA/sxXZ/MqP3KqXd52hOx2T.FC, null, 2015-03-02 05:07:03.328358, 2015-03-02 05:07:03.328358). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$xo1SbzfdXgp3Zim4lwIHB.mJ9/FwjgqMRywFyLwr.yjkU6/3IOwC6"], ["created_at", "2015-03-02 05:07:03.335004"], ["updated_at", "2015-03-02 05:07:03.335004"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6ef2eaa-c099-11e4-bbf3-705681abff85, null, user.41@example.com, $2a$04$xo1SbzfdXgp3Zim4lwIHB.mJ9/FwjgqMRywFyLwr.yjkU6/3IOwC6, null, 2015-03-02 05:07:03.335004, 2015-03-02 05:07:03.335004). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$v.U6iIw.OF0tXlMKDSK8b.uJVD1f9Op3AG8ZKBq12FKs3bAAMNW8."], ["created_at", "2015-03-02 05:07:03.342152"], ["updated_at", "2015-03-02 05:07:03.342152"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6f04c86-c099-11e4-8228-705681abff85, null, user.42@example.com, $2a$04$v.U6iIw.OF0tXlMKDSK8b.uJVD1f9Op3AG8ZKBq12FKs3bAAMNW8., null, 2015-03-02 05:07:03.342152, 2015-03-02 05:07:03.342152). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$urutiA4B2m/ZX8IfwNLXjOWuOHPXy.JWQ2neL6SFd0rcjP97bWh3a"], ["created_at", "2015-03-02 05:07:03.348639"], ["updated_at", "2015-03-02 05:07:03.348639"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6f142bc-c099-11e4-b7ec-705681abff85, null, user.43@example.com, $2a$04$urutiA4B2m/ZX8IfwNLXjOWuOHPXy.JWQ2neL6SFd0rcjP97bWh3a, null, 2015-03-02 05:07:03.348639, 2015-03-02 05:07:03.348639). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$uLyxGoQ5BBDhnGRbU4n56ezK0vV.UCZ74skylM2v6uKUgqizYBWXO"], ["created_at", "2015-03-02 05:07:03.354464"], ["updated_at", "2015-03-02 05:07:03.354464"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6f2259c-c099-11e4-a13b-705681abff85, null, user.44@example.com, $2a$04$uLyxGoQ5BBDhnGRbU4n56ezK0vV.UCZ74skylM2v6uKUgqizYBWXO, null, 2015-03-02 05:07:03.354464, 2015-03-02 05:07:03.354464). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$fY2zrsTphyBouZrE5m0CyeBI7U5FhhOfvfP2tw2aXu4svTjdWAd2G"], ["created_at", "2015-03-02 05:07:03.360579"], ["updated_at", "2015-03-02 05:07:03.360579"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6f315d8-c099-11e4-88a7-705681abff85, null, user.45@example.com, $2a$04$fY2zrsTphyBouZrE5m0CyeBI7U5FhhOfvfP2tw2aXu4svTjdWAd2G, null, 2015-03-02 05:07:03.360579, 2015-03-02 05:07:03.360579). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$lD8IWLpjxE69ExHaMx9OXeINzQlWixijvEdjcDEo3z8OGkoZGh8uq"], ["created_at", "2015-03-02 05:07:03.366945"], ["updated_at", "2015-03-02 05:07:03.366945"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6f411c2-c099-11e4-ae0e-705681abff85, null, user.46@example.com, $2a$04$lD8IWLpjxE69ExHaMx9OXeINzQlWixijvEdjcDEo3z8OGkoZGh8uq, null, 2015-03-02 05:07:03.366945, 2015-03-02 05:07:03.366945). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$BteEttGPP6TCtXVtNRtFWOoGXwrGj/kJSiTBT1NTIbs77ogmskSYG"], ["created_at", "2015-03-02 05:07:03.373113"], ["updated_at", "2015-03-02 05:07:03.373113"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6f50528-c099-11e4-99e9-705681abff85, null, user.47@example.com, $2a$04$BteEttGPP6TCtXVtNRtFWOoGXwrGj/kJSiTBT1NTIbs77ogmskSYG, null, 2015-03-02 05:07:03.373113, 2015-03-02 05:07:03.373113). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$lmtRUPdSaTNj/eBTpeEyEeylKCJzTSiQTNpALvQO5HuXlPkMUT1UW"], ["created_at", "2015-03-02 05:07:03.379768"], ["updated_at", "2015-03-02 05:07:03.379768"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6f603d8-c099-11e4-b457-705681abff85, null, user.48@example.com, $2a$04$lmtRUPdSaTNj/eBTpeEyEeylKCJzTSiQTNpALvQO5HuXlPkMUT1UW, null, 2015-03-02 05:07:03.379768, 2015-03-02 05:07:03.379768). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$8y3arHO7ej0jyXHTfpn3peQmMq7Ft8N8DdtQ6kIQySorOJ9GMBJiG"], ["created_at", "2015-03-02 05:07:03.385549"], ["updated_at", "2015-03-02 05:07:03.385549"]] PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint DETAIL: Failing row contains (f6f6e492-c099-11e4-a211-705681abff85, null, user.49@example.com, $2a$04$8y3arHO7ej0jyXHTfpn3peQmMq7Ft8N8DdtQ6kIQySorOJ9GMBJiG, null, 2015-03-02 05:07:03.385549, 2015-03-02 05:07:03.385549). : INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN PG::UndefinedTable: ERROR: relation "clubhouse_organizations" does not exist LINE 5: WHERE a.attrelid = '"clubhouse_organizations"... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"clubhouse_organizations"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (9.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (5.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:36.743325"], ["updated_at", "2015-03-02 05:07:36.743325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0adbd4fe-c09a-11e4-a83e-705681abff85') LIMIT 1 SQL (21.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "0adbd4fe-c09a-11e4-a83e-705681abff85"], ["created_at", "2015-03-02 05:07:36.780688"], ["updated_at", "2015-03-02 05:07:36.780688"], ["token", "GbTX_VIS2NfrBBcFtKQ19USlCUmKYOYOb8Z4g67WNvs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.9ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0adbd4fe-c09a-11e4-a83e-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0adbd4fe-c09a-11e4-a83e-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0adbd4fe-c09a-11e4-a83e-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0adbd4fe-c09a-11e4-a83e-705681abff86') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:36.846329"], ["updated_at", "2015-03-02 05:07:36.846329"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0ae8bb88-c09a-11e4-a0b9-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "0ae8bb88-c09a-11e4-a0b9-705681abff85"], ["created_at", "2015-03-02 05:07:36.853478"], ["updated_at", "2015-03-02 05:07:36.853478"], ["token", "50Wx8u9bI9vJj5mrrlmmpGGHJYSg9lSO6tjwcPeePKA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (2.3ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$8boPgwVzaagVK/IN.BEGrORZiZaA/1Ditd/CFzun51hoQxamSM91q"], ["created_at", "2015-03-02 05:07:36.935752"], ["updated_at", "2015-03-02 05:07:36.935752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:36.942342"], ["updated_at", "2015-03-02 05:07:36.942342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0af666b6-c09a-11e4-b35f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0af74c20-c09a-11e4-9729-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0af666b6-c09a-11e4-b35f-705681abff85"], ["organization_id", "0af74c20-c09a-11e4-9729-705681abff85"], ["created_at", "2015-03-02 05:07:36.947656"], ["updated_at", "2015-03-02 05:07:36.947656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.6ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0af666b6-c09a-11e4-b35f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0af74c20-c09a-11e4-9729-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0af666b6-c09a-11e4-b35f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0af74c20-c09a-11e4-9729-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.5ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0af74c20-c09a-11e4-9729-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0af666b6-c09a-11e4-b35f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0af74c20-c09a-11e4-9729-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$w15niEr2XyGSjV6aNrrDGuDLnUQub6HQLV.xcwlYQL1i5XJxXnWw."], ["created_at", "2015-03-02 05:07:36.969983"], ["updated_at", "2015-03-02 05:07:36.969983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$.HnT9MBEbLti3EYbAQ54t.smfrt1.12mXU/EDaKaksAyD4vkN28ru"], ["created_at", "2015-03-02 05:07:36.975673"], ["updated_at", "2015-03-02 05:07:36.975673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (5.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:36.985398"], ["user_id", "0afb8628-c09a-11e4-b009-705681abff85"], ["created_at", "2015-03-02 05:07:36.986857"], ["updated_at", "2015-03-02 05:07:36.986857"], ["token", "OD4veHwd8jv2MZAFqoJFRgsS3M8AfejvzHY0a4MF-GM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:36.997492"], ["updated_at", "2015-03-02 05:07:36.997492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0afb8628-c09a-11e4-b009-705681abff85' AND "clubhouse_memberships"."organization_id" = '0affb8a6-c09a-11e4-b8d2-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0afb8628-c09a-11e4-b009-705681abff85"], ["organization_id", "0affb8a6-c09a-11e4-b8d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.003235"], ["updated_at", "2015-03-02 05:07:37.003235"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0afc5e90-c09a-11e4-a962-705681abff85' AND "clubhouse_memberships"."organization_id" = '0affb8a6-c09a-11e4-b8d2-705681abff85') LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0afc5e90-c09a-11e4-a962-705681abff85"], ["organization_id", "0affb8a6-c09a-11e4-b8d2-705681abff85"], ["created_at", "2015-03-02 05:07:37.008712"], ["updated_at", "2015-03-02 05:07:37.008712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.047741' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OD4veHwd8jv2MZAFqoJFRgsS3M8AfejvzHY0a4MF-GM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.076902"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.078222"], ["id", "0afe2982-c09a-11e4-9282-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0afb8628-c09a-11e4-b009-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0afb8628-c09a-11e4-b009-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0afb8628-c09a-11e4-b009-705681abff85' LIMIT 1 [["organization_id", "0affb8a6-c09a-11e4-b8d2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "0affb8a6-c09a-11e4-b8d2-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('0afb8628-c09a-11e4-b009-705681abff85', '0afc5e90-c09a-11e4-a962-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('0affb8a6-c09a-11e4-b8d2-705681abff85') Completed 200 OK in 76ms (Views: 15.7ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$g1EsNyrXbIe6ejJjpz6X2uu6x.X0ITHwCKQvA3/Sdvp8SVurllDdG"], ["created_at", "2015-03-02 05:07:37.132785"], ["updated_at", "2015-03-02 05:07:37.132785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$zkrdLsLqSZ.Q6UJxVvjv1eF0SV19n3S3G3HdKiCr3nJj6iEy1f9Cq"], ["created_at", "2015-03-02 05:07:37.137989"], ["updated_at", "2015-03-02 05:07:37.137989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.139735"], ["user_id", "0b146076-c09a-11e4-b4ba-705681abff85"], ["created_at", "2015-03-02 05:07:37.140552"], ["updated_at", "2015-03-02 05:07:37.140552"], ["token", "PokRIgzsqlXzQu7jZrr2EO2dF79AOBVtU_1L7gpxn88"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.144865"], ["updated_at", "2015-03-02 05:07:37.144865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b146076-c09a-11e4-b4ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b16357c-c09a-11e4-bb6d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b146076-c09a-11e4-b4ba-705681abff85"], ["organization_id", "0b16357c-c09a-11e4-bb6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.149921"], ["updated_at", "2015-03-02 05:07:37.149921"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b152060-c09a-11e4-8673-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b16357c-c09a-11e4-bb6d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b152060-c09a-11e4-8673-705681abff85"], ["organization_id", "0b16357c-c09a-11e4-bb6d-705681abff85"], ["created_at", "2015-03-02 05:07:37.154938"], ["updated_at", "2015-03-02 05:07:37.154938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/0b16f16a-c09a-11e4-9eb7-705681abff85" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"0b16f16a-c09a-11e4-9eb7-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.162647' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PokRIgzsqlXzQu7jZrr2EO2dF79AOBVtU_1L7gpxn88"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.165252"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.166857"], ["id", "0b15909a-c09a-11e4-8f4d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b146076-c09a-11e4-b4ba-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b146076-c09a-11e4-b4ba-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b146076-c09a-11e4-b4ba-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "0b146076-c09a-11e4-b4ba-705681abff85"], ["id", "0b16f16a-c09a-11e4-9eb7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0b16357c-c09a-11e4-bb6d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b146076-c09a-11e4-b4ba-705681abff85"]] Completed 200 OK in 17ms (Views: 3.3ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$giq.U6yPNofUA1QZq6en9eimeiISVTjiB0OWxMUukKvq4LscjzhVK"], ["created_at", "2015-03-02 05:07:37.188824"], ["updated_at", "2015-03-02 05:07:37.188824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$g/G65A00o4UTAsS.3w3DZeYm7yIT/w9N43ns3BF/YZMoep17Bl41O"], ["created_at", "2015-03-02 05:07:37.194356"], ["updated_at", "2015-03-02 05:07:37.194356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.196563"], ["user_id", "0b1cebce-c09a-11e4-8588-705681abff85"], ["created_at", "2015-03-02 05:07:37.197606"], ["updated_at", "2015-03-02 05:07:37.197606"], ["token", "cMWS10iyPGNrv8MNV1q8urrmVrdpowY2bK4VpwK0y6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.202599"], ["updated_at", "2015-03-02 05:07:37.202599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b1cebce-c09a-11e4-8588-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b1f006c-c09a-11e4-9477-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b1cebce-c09a-11e4-8588-705681abff85"], ["organization_id", "0b1f006c-c09a-11e4-9477-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.207070"], ["updated_at", "2015-03-02 05:07:37.207070"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b1dc1e8-c09a-11e4-b357-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b1f006c-c09a-11e4-9477-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b1dc1e8-c09a-11e4-b357-705681abff85"], ["organization_id", "0b1f006c-c09a-11e4-9477-705681abff85"], ["created_at", "2015-03-02 05:07:37.221237"], ["updated_at", "2015-03-02 05:07:37.221237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (30.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$GGpb3hdU6lK07/hamEEWGeUBZULAaYo5WGqzScjqePMQl9FHRPNsi"], ["created_at", "2015-03-02 05:07:37.266305"], ["updated_at", "2015-03-02 05:07:37.266305"]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 User Exists (1.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Im3efZL7T2A42qZiKwrvaOs8fWouoYg4ADTCZ5zgJCsFpM27zfZJa"], ["created_at", "2015-03-02 05:07:37.284063"], ["updated_at", "2015-03-02 05:07:37.284063"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.288563"], ["user_id", "0b295e36-c09a-11e4-8ca4-705681abff85"], ["created_at", "2015-03-02 05:07:37.290196"], ["updated_at", "2015-03-02 05:07:37.290196"], ["token", "-q6heMAj_SZAMzXSbx0MnnWhD0P-mTKfMW8Mli5tN-Q"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.299308"], ["updated_at", "2015-03-02 05:07:37.299308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b295e36-c09a-11e4-8ca4-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b2e18b8-c09a-11e4-8556-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b295e36-c09a-11e4-8ca4-705681abff85"], ["organization_id", "0b2e18b8-c09a-11e4-8556-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.307689"], ["updated_at", "2015-03-02 05:07:37.307689"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b2b9232-c09a-11e4-9b6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b2e18b8-c09a-11e4-8556-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b2b9232-c09a-11e4-9b6d-705681abff85"], ["organization_id", "0b2e18b8-c09a-11e4-8556-705681abff85"], ["created_at", "2015-03-02 05:07:37.314050"], ["updated_at", "2015-03-02 05:07:37.314050"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$biV0VF8etABQSo3AEBkeSep2teTQ5Qp6O7p8j9KnE0bHmsVz7ysNG"], ["created_at", "2015-03-02 05:07:37.336549"], ["updated_at", "2015-03-02 05:07:37.336549"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$8oxx2IUGXsc4CPGD2o9TC.T4GRsISuFPM8SL5JOKXkB/6YVbjUWLm"], ["created_at", "2015-03-02 05:07:37.345087"], ["updated_at", "2015-03-02 05:07:37.345087"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.347320"], ["user_id", "0b3384d8-c09a-11e4-ab82-705681abff85"], ["created_at", "2015-03-02 05:07:37.348260"], ["updated_at", "2015-03-02 05:07:37.348260"], ["token", "oeSZUonz4630sASDECiWJUX_U9aDBcpc_twPOS0ibs8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.352017"], ["updated_at", "2015-03-02 05:07:37.352017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b3384d8-c09a-11e4-ab82-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b35c3c4-c09a-11e4-877e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b3384d8-c09a-11e4-ab82-705681abff85"], ["organization_id", "0b35c3c4-c09a-11e4-877e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.355772"], ["updated_at", "2015-03-02 05:07:37.355772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b34bcb8-c09a-11e4-a11c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b35c3c4-c09a-11e4-877e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b34bcb8-c09a-11e4-a11c-705681abff85"], ["organization_id", "0b35c3c4-c09a-11e4-877e-705681abff85"], ["created_at", "2015-03-02 05:07:37.359382"], ["updated_at", "2015-03-02 05:07:37.359382"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/0b365906-c09a-11e4-85da-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"0b365906-c09a-11e4-85da-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.368486' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oeSZUonz4630sASDECiWJUX_U9aDBcpc_twPOS0ibs8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.370143"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.371214"], ["id", "0b353b48-c09a-11e4-817a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b3384d8-c09a-11e4-ab82-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b3384d8-c09a-11e4-ab82-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0b3384d8-c09a-11e4-ab82-705681abff85' LIMIT 1 [["organization_id", "0b35c3c4-c09a-11e4-877e-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0b35c3c4-c09a-11e4-877e-705681abff85"], ["id", "0b365906-c09a-11e4-85da-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b3384d8-c09a-11e4-ab82-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$J2X6yTnJ2QWxB6YQTlUy7ObWekQ19WvbY4nOR3w/RBbam0aXXgcBS"], ["created_at", "2015-03-02 05:07:37.386857"], ["updated_at", "2015-03-02 05:07:37.386857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$E6JzLSjxbbMNK1ymZVYBC.wiOe/gKIgMwiXcBA2zLRWF0SimCYgGi"], ["created_at", "2015-03-02 05:07:37.391611"], ["updated_at", "2015-03-02 05:07:37.391611"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.393735"], ["user_id", "0b3b1f40-c09a-11e4-ac9f-705681abff85"], ["created_at", "2015-03-02 05:07:37.394611"], ["updated_at", "2015-03-02 05:07:37.394611"], ["token", "GG5vBdjzYt0OL8-uozOUP5Er5qkNBzJ07i2dUkE-S5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.398499"], ["updated_at", "2015-03-02 05:07:37.398499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b3b1f40-c09a-11e4-ac9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b3cda9c-c09a-11e4-9cb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b3b1f40-c09a-11e4-ac9f-705681abff85"], ["organization_id", "0b3cda9c-c09a-11e4-9cb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.402158"], ["updated_at", "2015-03-02 05:07:37.402158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b3bd5c0-c09a-11e4-990e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b3cda9c-c09a-11e4-9cb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b3bd5c0-c09a-11e4-990e-705681abff85"], ["organization_id", "0b3cda9c-c09a-11e4-9cb1-705681abff85"], ["created_at", "2015-03-02 05:07:37.405683"], ["updated_at", "2015-03-02 05:07:37.405683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/0b3df6e8-c09a-11e4-b005-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"0b3df6e8-c09a-11e4-b005-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.410926' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GG5vBdjzYt0OL8-uozOUP5Er5qkNBzJ07i2dUkE-S5c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.412530"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.413653"], ["id", "0b3c4d8e-c09a-11e4-864d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b3b1f40-c09a-11e4-ac9f-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b3b1f40-c09a-11e4-ac9f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0b3b1f40-c09a-11e4-ac9f-705681abff85' LIMIT 1 [["organization_id", "0b3cda9c-c09a-11e4-9cb1-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0b3cda9c-c09a-11e4-9cb1-705681abff85"], ["id", "0b3df6e8-c09a-11e4-b005-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b3bd5c0-c09a-11e4-990e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0b3cda9c-c09a-11e4-9cb1-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b3bd5c0-c09a-11e4-990e-705681abff85' AND "clubhouse_memberships"."id" != '0b3df6e8-c09a-11e4-b005-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b3cda9c-c09a-11e4-9cb1-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:07:37.426678"], ["id", "0b3df6e8-c09a-11e4-b005-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.3ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$hPiTsKplVbfzUKSX6Z8RUOQcxxxegDRoLIOiHE94Sn8fnI.UDG7bm"], ["created_at", "2015-03-02 05:07:37.437711"], ["updated_at", "2015-03-02 05:07:37.437711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$ih2DIt8ixWI2bJg8PPIzL.oJQ1078A2I3n/nqi75ksWdxkH4qmjrC"], ["created_at", "2015-03-02 05:07:37.442849"], ["updated_at", "2015-03-02 05:07:37.442849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.444556"], ["user_id", "0b42e734-c09a-11e4-8771-705681abff85"], ["created_at", "2015-03-02 05:07:37.445408"], ["updated_at", "2015-03-02 05:07:37.445408"], ["token", "-UlSdMEFlr90-buuXJml76r19zdUv2_rFbPgxXbgZ5k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.449519"], ["updated_at", "2015-03-02 05:07:37.449519"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b42e734-c09a-11e4-8771-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b44abd2-c09a-11e4-ab09-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b42e734-c09a-11e4-8771-705681abff85"], ["organization_id", "0b44abd2-c09a-11e4-ab09-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.453555"], ["updated_at", "2015-03-02 05:07:37.453555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b43a020-c09a-11e4-8018-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b44abd2-c09a-11e4-ab09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b43a020-c09a-11e4-8018-705681abff85"], ["organization_id", "0b44abd2-c09a-11e4-ab09-705681abff85"], ["created_at", "2015-03-02 05:07:37.457029"], ["updated_at", "2015-03-02 05:07:37.457029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/0b45c918-c09a-11e4-b832-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"0b45c918-c09a-11e4-b832-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.462312' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-UlSdMEFlr90-buuXJml76r19zdUv2_rFbPgxXbgZ5k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.464227"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.465354"], ["id", "0b440e84-c09a-11e4-9ff9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b42e734-c09a-11e4-8771-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b42e734-c09a-11e4-8771-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0b42e734-c09a-11e4-8771-705681abff85' LIMIT 1 [["organization_id", "0b44abd2-c09a-11e4-ab09-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0b44abd2-c09a-11e4-ab09-705681abff85"], ["id", "0b45c918-c09a-11e4-b832-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0b44abd2-c09a-11e4-ab09-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b43a020-c09a-11e4-8018-705681abff85"]] Completed 200 OK in 16ms (Views: 2.7ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$EQq0HHV1gHYLVwS2RXeU3.C0ogQ1w.vjbXOQE1unMppT6iAsPjEa2"], ["created_at", "2015-03-02 05:07:37.485899"], ["updated_at", "2015-03-02 05:07:37.485899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$5AjrmaIRC0QOE8/beJ3kGOIMdFNZ22Q8tWPfOhkaJew0nL2U2BGv."], ["created_at", "2015-03-02 05:07:37.490489"], ["updated_at", "2015-03-02 05:07:37.490489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.492507"], ["user_id", "0b4a373c-c09a-11e4-bf14-705681abff85"], ["created_at", "2015-03-02 05:07:37.493403"], ["updated_at", "2015-03-02 05:07:37.493403"], ["token", "4v4gHlIOpiShYvDZoh4PWZPey5BuOEuezB8N-vjY6wk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.497422"], ["updated_at", "2015-03-02 05:07:37.497422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b4a373c-c09a-11e4-bf14-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b4bfea0-c09a-11e4-8fa6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b4a373c-c09a-11e4-bf14-705681abff85"], ["organization_id", "0b4bfea0-c09a-11e4-8fa6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.501475"], ["updated_at", "2015-03-02 05:07:37.501475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b4aeaf6-c09a-11e4-8b77-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b4bfea0-c09a-11e4-8fa6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b4aeaf6-c09a-11e4-8b77-705681abff85"], ["organization_id", "0b4bfea0-c09a-11e4-8fa6-705681abff85"], ["created_at", "2015-03-02 05:07:37.504671"], ["updated_at", "2015-03-02 05:07:37.504671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$aypf/2u//ksolPSdt8j4N.dp70hIPs66KW5HHn2jm2otST4m2GLcu"], ["created_at", "2015-03-02 05:07:37.517487"], ["updated_at", "2015-03-02 05:07:37.517487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$ZwTVyHEDgIVjpCK2MPhyNuA9aKEJ9xRQEI7VYM9aPi/s85XL7TFiy"], ["created_at", "2015-03-02 05:07:37.522769"], ["updated_at", "2015-03-02 05:07:37.522769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.524488"], ["user_id", "0b4f12ca-c09a-11e4-ae51-705681abff85"], ["created_at", "2015-03-02 05:07:37.525270"], ["updated_at", "2015-03-02 05:07:37.525270"], ["token", "25XW1KxRwSJcQaGQqgrZhcKWdfhBiTk9Gkrl0aRuxSo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.528798"], ["updated_at", "2015-03-02 05:07:37.528798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b4f12ca-c09a-11e4-ae51-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b50bd0a-c09a-11e4-97ba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b4f12ca-c09a-11e4-ae51-705681abff85"], ["organization_id", "0b50bd0a-c09a-11e4-97ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.533365"], ["updated_at", "2015-03-02 05:07:37.533365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b4fd372-c09a-11e4-ae00-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b50bd0a-c09a-11e4-97ba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b4fd372-c09a-11e4-ae00-705681abff85"], ["organization_id", "0b50bd0a-c09a-11e4-97ba-705681abff85"], ["created_at", "2015-03-02 05:07:37.537179"], ["updated_at", "2015-03-02 05:07:37.537179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$6lRm1vTqEMfmu6x7QFCkkeVBJcezcq8b5fvkhB/KDIPSCdwoq.dJG"], ["created_at", "2015-03-02 05:07:37.542104"], ["updated_at", "2015-03-02 05:07:37.542104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.544305"], ["user_id", "0b52d464-c09a-11e4-a6de-705681abff85"], ["created_at", "2015-03-02 05:07:37.545887"], ["updated_at", "2015-03-02 05:07:37.545887"], ["token", "en4LWzMXvS2UODaDM10Iah-maJjs_b8tDWuoJBmMjFE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '0b50bd0a-c09a-11e4-97ba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "0b50bd0a-c09a-11e4-97ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.550360"], ["updated_at", "2015-03-02 05:07:37.550360"], ["token", "dAyECNUNQSdRGdnqrnq9C-tmBCzabt2gBJVSx3vigTI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Mmyg5evnxBA88Esp.zH.OuvkLQ5HpBPzxu7VksklR7VbStskrVM9O"], ["created_at", "2015-03-02 05:07:37.562356"], ["updated_at", "2015-03-02 05:07:37.562356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$IuTCuyt2h1t/Ts6yZKDOIuOPbHv.7mTZS/ULjHAP0mBbrnbPnF.9G"], ["created_at", "2015-03-02 05:07:37.566971"], ["updated_at", "2015-03-02 05:07:37.566971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.568933"], ["user_id", "0b55e0fa-c09a-11e4-a9eb-705681abff85"], ["created_at", "2015-03-02 05:07:37.569751"], ["updated_at", "2015-03-02 05:07:37.569751"], ["token", "KtgFobo9Bl6xVhUXGa99oByAse-OwEdoh2oCi5xoktE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.573645"], ["updated_at", "2015-03-02 05:07:37.573645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b55e0fa-c09a-11e4-a9eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b579490-c09a-11e4-a74e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b55e0fa-c09a-11e4-a9eb-705681abff85"], ["organization_id", "0b579490-c09a-11e4-a74e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.577251"], ["updated_at", "2015-03-02 05:07:37.577251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b569d24-c09a-11e4-8c58-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b579490-c09a-11e4-a74e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b569d24-c09a-11e4-8c58-705681abff85"], ["organization_id", "0b579490-c09a-11e4-a74e-705681abff85"], ["created_at", "2015-03-02 05:07:37.580843"], ["updated_at", "2015-03-02 05:07:37.580843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$edvoqOaNkXmEBhuoTT7nqu3fQrGtciHVy7J/Y4Nw6Ue/DbUWovU9i"], ["created_at", "2015-03-02 05:07:37.585334"], ["updated_at", "2015-03-02 05:07:37.585334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.586984"], ["user_id", "0b595eec-c09a-11e4-8280-705681abff85"], ["created_at", "2015-03-02 05:07:37.587778"], ["updated_at", "2015-03-02 05:07:37.587778"], ["token", "_mKnDyMmN9sddCRce8Fumh3m7eAkp1FyGwkI0zL2W0U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '0b579490-c09a-11e4-a74e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "0b579490-c09a-11e4-a74e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.591988"], ["updated_at", "2015-03-02 05:07:37.591988"], ["token", "w0qRxnL240aIkzwZP8abUtbAXoR66_YLl27178OvqhA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.598241' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_mKnDyMmN9sddCRce8Fumh3m7eAkp1FyGwkI0zL2W0U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.600465"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.601813"], ["id", "0b59c3aa-c09a-11e4-ab70-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b595eec-c09a-11e4-8280-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b595eec-c09a-11e4-8280-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Blfq8lYKSDIq6CTv0oYln.q4j..4CkCgIELkzqvDpdZMwO/15OCEu"], ["created_at", "2015-03-02 05:07:37.615800"], ["updated_at", "2015-03-02 05:07:37.615800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$VF.gZdvWNjYT6gFfpjK1uObSqvHKmnmjFb/vjMxDkrM/ZOUXc3axC"], ["created_at", "2015-03-02 05:07:37.620463"], ["updated_at", "2015-03-02 05:07:37.620463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.622123"], ["user_id", "0b5e0c76-c09a-11e4-88fc-705681abff85"], ["created_at", "2015-03-02 05:07:37.623062"], ["updated_at", "2015-03-02 05:07:37.623062"], ["token", "WdMfdQAzhtAFFR1LmFj9j2WveiqGoz1qGdyKb6mPolw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.627086"], ["updated_at", "2015-03-02 05:07:37.627086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b5e0c76-c09a-11e4-88fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b5fbe36-c09a-11e4-a0c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b5e0c76-c09a-11e4-88fc-705681abff85"], ["organization_id", "0b5fbe36-c09a-11e4-a0c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.630759"], ["updated_at", "2015-03-02 05:07:37.630759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b5eb93c-c09a-11e4-a616-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b5fbe36-c09a-11e4-a0c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b5eb93c-c09a-11e4-a616-705681abff85"], ["organization_id", "0b5fbe36-c09a-11e4-a0c6-705681abff85"], ["created_at", "2015-03-02 05:07:37.634225"], ["updated_at", "2015-03-02 05:07:37.634225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$Bm4y3qCFuN.kBLXdkPyBaejj1lFqAuwm0xmH.zXKqpE0KFF3Db/xy"], ["created_at", "2015-03-02 05:07:37.640232"], ["updated_at", "2015-03-02 05:07:37.640232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.642920"], ["user_id", "0b61d572-c09a-11e4-b780-705681abff85"], ["created_at", "2015-03-02 05:07:37.643817"], ["updated_at", "2015-03-02 05:07:37.643817"], ["token", "o6zQrTRl4J2DpaECLY7FW61Ck1pEJGvST8tK8i_8mfw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '0b5fbe36-c09a-11e4-a0c6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "0b5fbe36-c09a-11e4-a0c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.650268"], ["updated_at", "2015-03-02 05:07:37.650268"], ["token", "tyAlAWYX6dEswf4Wtw-SIIQQWw5rlIN6G1pvk2tDjdo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"tyAlAWYX6dEswf4Wtw-SIIQQWw5rlIN6G1pvk2tDjdo", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.656705' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o6zQrTRl4J2DpaECLY7FW61Ck1pEJGvST8tK8i_8mfw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.658225"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.659300"], ["id", "0b625696-c09a-11e4-9406-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b61d572-c09a-11e4-b780-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b61d572-c09a-11e4-b780-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "tyAlAWYX6dEswf4Wtw-SIIQQWw5rlIN6G1pvk2tDjdo"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0b5fbe36-c09a-11e4-a0c6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0b5fbe36-c09a-11e4-a0c6-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b61d572-c09a-11e4-b780-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b5fbe36-c09a-11e4-a0c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b61d572-c09a-11e4-b780-705681abff85"], ["admin", "t"], ["organization_id", "0b5fbe36-c09a-11e4-a0c6-705681abff85"], ["created_at", "2015-03-02 05:07:37.669078"], ["updated_at", "2015-03-02 05:07:37.669078"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "0b6365cc-c09a-11e4-945f-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.2ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$HaLyxqezMqqho7eFW4FNDOggPjmc8tlUyXeqUJ/4/iPF/DJyA5lcC"], ["created_at", "2015-03-02 05:07:37.688184"], ["updated_at", "2015-03-02 05:07:37.688184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$5jG7hYsCrmcwLcZkKSE.SOKZ21k6QiJOQvJ9cgguxdrlApQK143jO"], ["created_at", "2015-03-02 05:07:37.692779"], ["updated_at", "2015-03-02 05:07:37.692779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.694455"], ["user_id", "0b6911fc-c09a-11e4-95c0-705681abff85"], ["created_at", "2015-03-02 05:07:37.695426"], ["updated_at", "2015-03-02 05:07:37.695426"], ["token", "MhPxDZnEpcV88Hr2JEaAFagCKgokQCJ2DcBTt_TbYHc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.699213"], ["updated_at", "2015-03-02 05:07:37.699213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b6911fc-c09a-11e4-95c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b6abd54-c09a-11e4-878b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b6911fc-c09a-11e4-95c0-705681abff85"], ["organization_id", "0b6abd54-c09a-11e4-878b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.703012"], ["updated_at", "2015-03-02 05:07:37.703012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b69c3a4-c09a-11e4-affc-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b6abd54-c09a-11e4-878b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b69c3a4-c09a-11e4-affc-705681abff85"], ["organization_id", "0b6abd54-c09a-11e4-878b-705681abff85"], ["created_at", "2015-03-02 05:07:37.706602"], ["updated_at", "2015-03-02 05:07:37.706602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.712377' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MhPxDZnEpcV88Hr2JEaAFagCKgokQCJ2DcBTt_TbYHc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.713835"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.714999"], ["id", "0b6a364a-c09a-11e4-b22f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b6911fc-c09a-11e4-95c0-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b6911fc-c09a-11e4-95c0-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b6911fc-c09a-11e4-95c0-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "0b6911fc-c09a-11e4-95c0-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('0b6911fc-c09a-11e4-95c0-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('0b6abd54-c09a-11e4-878b-705681abff85') Completed 200 OK in 14ms (Views: 4.2ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$3KDCBxA/FMFfuf9OdahzY.xTd95uCEhaY.DtOz15kCsfhTTIm/SPW"], ["created_at", "2015-03-02 05:07:37.732475"], ["updated_at", "2015-03-02 05:07:37.732475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$zm7MpvsifKH0.bgzfTe.heXZ5plIHb6Y9tWYKN796/AJcdDiPJrzC"], ["created_at", "2015-03-02 05:07:37.737998"], ["updated_at", "2015-03-02 05:07:37.737998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.739825"], ["user_id", "0b6fe4c8-c09a-11e4-a0ca-705681abff85"], ["created_at", "2015-03-02 05:07:37.740666"], ["updated_at", "2015-03-02 05:07:37.740666"], ["token", "C8sqc1_RKCC7YxzwmBU_HPtyW7PqGfH8bhfBh0op_fU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.744685"], ["updated_at", "2015-03-02 05:07:37.744685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b6fe4c8-c09a-11e4-a0ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b71ae84-c09a-11e4-bb28-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b6fe4c8-c09a-11e4-a0ca-705681abff85"], ["organization_id", "0b71ae84-c09a-11e4-bb28-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.748376"], ["updated_at", "2015-03-02 05:07:37.748376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b70ad4a-c09a-11e4-a6d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b71ae84-c09a-11e4-bb28-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b70ad4a-c09a-11e4-a6d2-705681abff85"], ["organization_id", "0b71ae84-c09a-11e4-bb28-705681abff85"], ["created_at", "2015-03-02 05:07:37.751967"], ["updated_at", "2015-03-02 05:07:37.751967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$vSnaDOcKaacKDx51kipkleBQ9D8/FkQJUggLd6/T5YiwxUJD8s7oa"], ["created_at", "2015-03-02 05:07:37.763410"], ["updated_at", "2015-03-02 05:07:37.763410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$nbRDdySJfI6SjLwW4NBlduzPwhl6Ej0GMSlMujb8fAj3G51BGgqby"], ["created_at", "2015-03-02 05:07:37.768834"], ["updated_at", "2015-03-02 05:07:37.768834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.770719"], ["user_id", "0b7491f8-c09a-11e4-96f5-705681abff85"], ["created_at", "2015-03-02 05:07:37.771574"], ["updated_at", "2015-03-02 05:07:37.771574"], ["token", "Ec0kFyuz0AHkbWwVA_ajK2AZFBJjrCIJmrfNHfRnA-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.775137"], ["updated_at", "2015-03-02 05:07:37.775137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b7491f8-c09a-11e4-96f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b7656aa-c09a-11e4-9426-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b7491f8-c09a-11e4-96f5-705681abff85"], ["organization_id", "0b7656aa-c09a-11e4-9426-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.778915"], ["updated_at", "2015-03-02 05:07:37.778915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b756484-c09a-11e4-98f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b7656aa-c09a-11e4-9426-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b756484-c09a-11e4-98f5-705681abff85"], ["organization_id", "0b7656aa-c09a-11e4-9426-705681abff85"], ["created_at", "2015-03-02 05:07:37.782540"], ["updated_at", "2015-03-02 05:07:37.782540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/0b76e99e-c09a-11e4-b449-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"0b76e99e-c09a-11e4-b449-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.788615' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ec0kFyuz0AHkbWwVA_ajK2AZFBJjrCIJmrfNHfRnA-s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.790274"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.791285"], ["id", "0b75cff0-c09a-11e4-8021-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b7491f8-c09a-11e4-96f5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b7491f8-c09a-11e4-96f5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0b7491f8-c09a-11e4-96f5-705681abff85' LIMIT 1 [["organization_id", "0b7656aa-c09a-11e4-9426-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0b7656aa-c09a-11e4-9426-705681abff85"], ["id", "0b76e99e-c09a-11e4-b449-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b7491f8-c09a-11e4-96f5-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$q/ER11I97/yrVO37AJVHE.fdol05U2CxT6hPsxuc.vsEps.FWpnRW"], ["created_at", "2015-03-02 05:07:37.806509"], ["updated_at", "2015-03-02 05:07:37.806509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$zalxTbEz3KB045YkvFWxxORP86ZEwVu83lrzwW.LSM08UowM4khlK"], ["created_at", "2015-03-02 05:07:37.811029"], ["updated_at", "2015-03-02 05:07:37.811029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.813180"], ["user_id", "0b7b21da-c09a-11e4-8c57-705681abff85"], ["created_at", "2015-03-02 05:07:37.814107"], ["updated_at", "2015-03-02 05:07:37.814107"], ["token", "4sNLg3OJbtpK-Q5pd_yzQpTHMgqh7tiBTuY4OMqfnKY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.817999"], ["updated_at", "2015-03-02 05:07:37.817999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b7b21da-c09a-11e4-8c57-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b7cdde0-c09a-11e4-b296-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b7b21da-c09a-11e4-8c57-705681abff85"], ["organization_id", "0b7cdde0-c09a-11e4-b296-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.821980"], ["updated_at", "2015-03-02 05:07:37.821980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b7bd24c-c09a-11e4-9f9d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b7cdde0-c09a-11e4-b296-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0b7bd24c-c09a-11e4-9f9d-705681abff85"], ["organization_id", "0b7cdde0-c09a-11e4-b296-705681abff85"], ["created_at", "2015-03-02 05:07:37.825616"], ["updated_at", "2015-03-02 05:07:37.825616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/0b7e08c8-c09a-11e4-9015-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"0b7e08c8-c09a-11e4-9015-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.831015' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4sNLg3OJbtpK-Q5pd_yzQpTHMgqh7tiBTuY4OMqfnKY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.832539"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.833733"], ["id", "0b7c54ce-c09a-11e4-af52-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b7b21da-c09a-11e4-8c57-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b7b21da-c09a-11e4-8c57-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0b7b21da-c09a-11e4-8c57-705681abff85' LIMIT 1 [["organization_id", "0b7cdde0-c09a-11e4-b296-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0b7cdde0-c09a-11e4-b296-705681abff85"], ["id", "0b7e08c8-c09a-11e4-9015-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b7bd24c-c09a-11e4-9f9d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "0b7e08c8-c09a-11e4-9015-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.865201"], ["updated_at", "2015-03-02 05:07:37.865201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.889644"], ["updated_at", "2015-03-02 05:07:37.889644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.894664"], ["updated_at", "2015-03-02 05:07:37.894664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.906296"], ["updated_at", "2015-03-02 05:07:37.906296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.911399"], ["updated_at", "2015-03-02 05:07:37.911399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0b8b1f0e-c09a-11e4-ac92-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$H3h1Lc/iG/D3hY6dzLingO5nhDI1LmNY2rrftxARTH26wYCkdhAWa"], ["created_at", "2015-03-02 05:07:37.918653"], ["updated_at", "2015-03-02 05:07:37.918653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.920369"], ["user_id", "0b8c3b46-c09a-11e4-a8a4-705681abff85"], ["created_at", "2015-03-02 05:07:37.921182"], ["updated_at", "2015-03-02 05:07:37.921182"], ["token", "ZNfojqjFBtEW2aDyeZzT-5vao76D3tWOsDubCrH89RA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.925356"], ["updated_at", "2015-03-02 05:07:37.925356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b8c3b46-c09a-11e4-a8a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b8d40ea-c09a-11e4-8140-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b8c3b46-c09a-11e4-a8a4-705681abff85"], ["organization_id", "0b8d40ea-c09a-11e4-8140-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.929590"], ["updated_at", "2015-03-02 05:07:37.929590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '0b8d40ea-c09a-11e4-8140-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "0b8d40ea-c09a-11e4-8140-705681abff85"], ["created_at", "2015-03-02 05:07:37.934368"], ["updated_at", "2015-03-02 05:07:37.934368"], ["token", "D6B6M6VUBGJcuom3PjRT0JdxW2DP8OhS8hOkm6bqTd4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/0b8ea5a2-c09a-11e4-9f82-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"0b8ea5a2-c09a-11e4-9f82-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:37.947258' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZNfojqjFBtEW2aDyeZzT-5vao76D3tWOsDubCrH89RA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:37.948867"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:37.950192"], ["id", "0b8ca87e-c09a-11e4-9004-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b8c3b46-c09a-11e4-a8a4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b8c3b46-c09a-11e4-a8a4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0b8c3b46-c09a-11e4-a8a4-705681abff85' LIMIT 1 [["organization_id", "0b8d40ea-c09a-11e4-8140-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "0b8d40ea-c09a-11e4-8140-705681abff85"], ["id", "0b8ea5a2-c09a-11e4-9f82-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0b8d40ea-c09a-11e4-8140-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."id" != '0b8ea5a2-c09a-11e4-9f82-705681abff85' AND "clubhouse_invitations"."organization_id" = '0b8d40ea-c09a-11e4-8140-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:07:37.964518"], ["id", "0b8ea5a2-c09a-11e4-9f82-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 2.2ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$5S/JI3sarHkYSsI8z9GHkOF8xXm9LH65JMur9qcyvY4KTj0RwB6iO"], ["created_at", "2015-03-02 05:07:37.975419"], ["updated_at", "2015-03-02 05:07:37.975419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:37.977382"], ["user_id", "0b94e96c-c09a-11e4-91b1-705681abff85"], ["created_at", "2015-03-02 05:07:37.978240"], ["updated_at", "2015-03-02 05:07:37.978240"], ["token", "i3cJQUZH4dq2AKPasKbc1ZEYiAT9ujBEonO4jA7ivs4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:37.981972"], ["updated_at", "2015-03-02 05:07:37.981972"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b94e96c-c09a-11e4-91b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b95eb3c-c09a-11e4-af03-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b94e96c-c09a-11e4-91b1-705681abff85"], ["organization_id", "0b95eb3c-c09a-11e4-af03-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:37.987872"], ["updated_at", "2015-03-02 05:07:37.987872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '0b95eb3c-c09a-11e4-af03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "0b95eb3c-c09a-11e4-af03-705681abff85"], ["created_at", "2015-03-02 05:07:37.992004"], ["updated_at", "2015-03-02 05:07:37.992004"], ["token", "Hoa2t3MoO8RgLgx0O10BiqikpzrNkfb80x6rWBBoDeM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:07:37 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$jU/M6YA/14tTkTFaiN6xnebdTkXOiGPl4o4AOju2LBpRyeZLNi2Fe"], ["created_at", "2015-03-02 05:07:38.003305"], ["updated_at", "2015-03-02 05:07:38.003305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.005178"], ["user_id", "0b992a9a-c09a-11e4-bc4e-705681abff85"], ["created_at", "2015-03-02 05:07:38.006228"], ["updated_at", "2015-03-02 05:07:38.006228"], ["token", "vemXx_c-yqjM5poJATsRCcexNdnG-4MVzEIGj4tgjJQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.010360"], ["updated_at", "2015-03-02 05:07:38.010360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b992a9a-c09a-11e4-bc4e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0b9a38ae-c09a-11e4-bc88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b992a9a-c09a-11e4-bc4e-705681abff85"], ["organization_id", "0b9a38ae-c09a-11e4-bc88-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:38.014023"], ["updated_at", "2015-03-02 05:07:38.014023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '0b9a38ae-c09a-11e4-bc88-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "0b9a38ae-c09a-11e4-bc88-705681abff85"], ["created_at", "2015-03-02 05:07:38.018345"], ["updated_at", "2015-03-02 05:07:38.018345"], ["token", "01lP3N0d5zADLsbugQTDGeAo3YvFIRhDwhSnK5PqY1M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/0b9b9b5e-c09a-11e4-9bee-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"0b9b9b5e-c09a-11e4-9bee-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:38.025297' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vemXx_c-yqjM5poJATsRCcexNdnG-4MVzEIGj4tgjJQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:38.027175"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:38.029159"], ["id", "0b99a38a-c09a-11e4-a732-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b992a9a-c09a-11e4-bc4e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0b992a9a-c09a-11e4-bc4e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0b992a9a-c09a-11e4-bc4e-705681abff85' LIMIT 1 [["organization_id", "0b9a38ae-c09a-11e4-bc88-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "0b9a38ae-c09a-11e4-bc88-705681abff85"], ["id", "0b9b9b5e-c09a-11e4-9bee-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0b9a38ae-c09a-11e4-bc88-705681abff85"]] Completed 200 OK in 21ms (Views: 1.9ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$8KiYkYGnsulNBWGv.ilnROITC5NKKSlN/5gQkuzkrqqLjhnnBVoii"], ["created_at", "2015-03-02 05:07:38.053883"], ["updated_at", "2015-03-02 05:07:38.053883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.055840"], ["user_id", "0ba0e14a-c09a-11e4-bc32-705681abff85"], ["created_at", "2015-03-02 05:07:38.056676"], ["updated_at", "2015-03-02 05:07:38.056676"], ["token", "NHMTJxElWVl6qfvoMlb4i-JdFYK6JINah5j2qBp9wpY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.060598"], ["updated_at", "2015-03-02 05:07:38.060598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ba0e14a-c09a-11e4-bc32-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ba1e16c-c09a-11e4-9b57-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ba0e14a-c09a-11e4-bc32-705681abff85"], ["organization_id", "0ba1e16c-c09a-11e4-9b57-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:38.064057"], ["updated_at", "2015-03-02 05:07:38.064057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '0ba1e16c-c09a-11e4-9b57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "0ba1e16c-c09a-11e4-9b57-705681abff85"], ["created_at", "2015-03-02 05:07:38.070410"], ["updated_at", "2015-03-02 05:07:38.070410"], ["token", "vrvHeeCbvx65rMW4RlgCLcybK4vA724ZVARYcz69hFk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$G3VujgNT.0H4w0MqCL4jqexrqjLZ5Wp98NOpeVlzfuRklv0tY1kU2"], ["created_at", "2015-03-02 05:07:38.081775"], ["updated_at", "2015-03-02 05:07:38.081775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.084140"], ["user_id", "0ba5282c-c09a-11e4-a605-705681abff85"], ["created_at", "2015-03-02 05:07:38.085578"], ["updated_at", "2015-03-02 05:07:38.085578"], ["token", "C-F28fT1ecgBqpRNjC0CRCcfrcVlRwNb1tCeMot_pKU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.089621"], ["updated_at", "2015-03-02 05:07:38.089621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ba5282c-c09a-11e4-a605-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ba65620-c09a-11e4-8304-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ba5282c-c09a-11e4-a605-705681abff85"], ["organization_id", "0ba65620-c09a-11e4-8304-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:38.093372"], ["updated_at", "2015-03-02 05:07:38.093372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '0ba65620-c09a-11e4-8304-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "0ba65620-c09a-11e4-8304-705681abff85"], ["created_at", "2015-03-02 05:07:38.097646"], ["updated_at", "2015-03-02 05:07:38.097646"], ["token", "lNJY_8oIaIJT18_pp1jLpV51FyVkqByQUv3oGYYYUYY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/0ba790e4-c09a-11e4-bab9-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"0ba790e4-c09a-11e4-bab9-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:38.104385' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "C-F28fT1ecgBqpRNjC0CRCcfrcVlRwNb1tCeMot_pKU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:38.105981"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:38.107223"], ["id", "0ba5bdd2-c09a-11e4-8f72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ba5282c-c09a-11e4-a605-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0ba5282c-c09a-11e4-a605-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0ba5282c-c09a-11e4-a605-705681abff85' LIMIT 1 [["organization_id", "0ba65620-c09a-11e4-8304-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "0ba65620-c09a-11e4-8304-705681abff85"], ["id", "0ba790e4-c09a-11e4-bab9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "0ba790e4-c09a-11e4-bab9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$j9A.pWhxSiFE/TGoxF2m3.0/FVGw5gRnaOhWFOhEfO5DGhsOph9C."], ["created_at", "2015-03-02 05:07:38.122521"], ["updated_at", "2015-03-02 05:07:38.122521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.124529"], ["user_id", "0bab5f80-c09a-11e4-aea3-705681abff85"], ["created_at", "2015-03-02 05:07:38.125422"], ["updated_at", "2015-03-02 05:07:38.125422"], ["token", "U0CVI59HmA8nQsoNy2VSL9H0fMFsr3Si7UsDmTPeyL0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.129386"], ["updated_at", "2015-03-02 05:07:38.129386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0bab5f80-c09a-11e4-aea3-705681abff85' AND "clubhouse_memberships"."organization_id" = '0bac64e8-c09a-11e4-a916-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0bab5f80-c09a-11e4-aea3-705681abff85"], ["organization_id", "0bac64e8-c09a-11e4-a916-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:38.133036"], ["updated_at", "2015-03-02 05:07:38.133036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '0bac64e8-c09a-11e4-a916-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "0bac64e8-c09a-11e4-a916-705681abff85"], ["created_at", "2015-03-02 05:07:38.136892"], ["updated_at", "2015-03-02 05:07:38.136892"], ["token", "BRnaiFEr6UxUSEo1p5Rp2HTR3qDuO-n8xivoK046h2A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$BWjkR31JWTsoMAmnNutuoeI31pSMJno1xKlBr4ciP29bmN5G1lHDO"], ["created_at", "2015-03-02 05:07:38.150869"], ["updated_at", "2015-03-02 05:07:38.150869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.152704"], ["user_id", "0bafad60-c09a-11e4-a1a6-705681abff85"], ["created_at", "2015-03-02 05:07:38.153960"], ["updated_at", "2015-03-02 05:07:38.153960"], ["token", "1Np90orOlvsrncArZluevF5gxpz9_5E12vY_-D48K_E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.158452"], ["updated_at", "2015-03-02 05:07:38.158452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0bafad60-c09a-11e4-a1a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '0bb0d848-c09a-11e4-b5ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0bafad60-c09a-11e4-a1a6-705681abff85"], ["organization_id", "0bb0d848-c09a-11e4-b5ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:38.162617"], ["updated_at", "2015-03-02 05:07:38.162617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '0bb0d848-c09a-11e4-b5ad-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "0bb0d848-c09a-11e4-b5ad-705681abff85"], ["created_at", "2015-03-02 05:07:38.166260"], ["updated_at", "2015-03-02 05:07:38.166260"], ["token", "Qcdidu3zkIMK7OlIgfd1rXE8mdQiu2dDAArKDFM14AU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$sbpdXsrq.F5Gx0r3SevnKOMqSv27MQyHklTdYYlqMaf63oALcpXEi"], ["created_at", "2015-03-02 05:07:38.178990"], ["updated_at", "2015-03-02 05:07:38.178990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.180884"], ["user_id", "0bb3f690-c09a-11e4-b4ef-705681abff85"], ["created_at", "2015-03-02 05:07:38.181771"], ["updated_at", "2015-03-02 05:07:38.181771"], ["token", "CpT6jte_kO5dd9TspKZUsTKsERtZnVjzSJ01mXtvswM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.185618"], ["updated_at", "2015-03-02 05:07:38.185618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0bb3f690-c09a-11e4-b4ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '0bb4f7ac-c09a-11e4-aede-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0bb3f690-c09a-11e4-b4ef-705681abff85"], ["organization_id", "0bb4f7ac-c09a-11e4-aede-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:38.189234"], ["updated_at", "2015-03-02 05:07:38.189234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '0bb4f7ac-c09a-11e4-aede-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "0bb4f7ac-c09a-11e4-aede-705681abff85"], ["created_at", "2015-03-02 05:07:38.192784"], ["updated_at", "2015-03-02 05:07:38.192784"], ["token", "HwPnx_IHRg4nG5a3Z4tBay9goFnfDQ9EPNP7oC0vJlg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:38.198285' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CpT6jte_kO5dd9TspKZUsTKsERtZnVjzSJ01mXtvswM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:38.199719"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:38.200795"], ["id", "0bb46d32-c09a-11e4-9070-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0bb3f690-c09a-11e4-b4ef-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0bb3f690-c09a-11e4-b4ef-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0bb3f690-c09a-11e4-b4ef-705681abff85' LIMIT 1 [["organization_id", "0bb4f7ac-c09a-11e4-aede-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0bb4f7ac-c09a-11e4-aede-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '0bb4f7ac-c09a-11e4-aede-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$4iD9Hd.mnLxYd1/iujN1AeP/Axgd1xzmnlh5xQ53P9/pcq1ha1yEa"], ["created_at", "2015-03-02 05:07:38.221638"], ["updated_at", "2015-03-02 05:07:38.221638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.223643"], ["user_id", "0bba7bdc-c09a-11e4-a9f6-705681abff85"], ["created_at", "2015-03-02 05:07:38.224435"], ["updated_at", "2015-03-02 05:07:38.224435"], ["token", "n7wZs5GPRUi-ajHJP3DrXVT11DY9Hxi_OImv2FZ4ftA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.228347"], ["updated_at", "2015-03-02 05:07:38.228347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0bba7bdc-c09a-11e4-a9f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '0bbb8022-c09a-11e4-96ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0bba7bdc-c09a-11e4-a9f6-705681abff85"], ["organization_id", "0bbb8022-c09a-11e4-96ca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:38.232018"], ["updated_at", "2015-03-02 05:07:38.232018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (4.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '0bbb8022-c09a-11e4-96ca-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "0bbb8022-c09a-11e4-96ca-705681abff85"], ["created_at", "2015-03-02 05:07:38.253234"], ["updated_at", "2015-03-02 05:07:38.253234"], ["token", "2xzoaxmn6t9BYo3rnVHijwCofVg7Af7ZjzRaLneCBEY"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:38.264971' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n7wZs5GPRUi-ajHJP3DrXVT11DY9Hxi_OImv2FZ4ftA"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:38.267827"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:38.270825"], ["id", "0bbaeb26-c09a-11e4-801c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0bba7bdc-c09a-11e4-a9f6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0bba7bdc-c09a-11e4-a9f6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0bba7bdc-c09a-11e4-a9f6-705681abff85' LIMIT 1 [["organization_id", "0bbb8022-c09a-11e4-96ca-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0bbb8022-c09a-11e4-96ca-705681abff85"]] Clubhouse::Invitation Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0bbb8022-c09a-11e4-96ca-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "0bbb8022-c09a-11e4-96ca-705681abff85"], ["created_at", "2015-03-02 05:07:38.291257"], ["updated_at", "2015-03-02 05:07:38.291257"], ["token", "KPtALeGZJEbG8u8qFG8qKBLloUxut5zEgZ75OAORmm4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 64da6af7-cef4-4739-91c1-65dfdd45866b) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0bc54bca-c09a-11e4-bb16-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0bc54bca-c09a-11e4-bb16-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [64da6af7-cef4-4739-91c1-65dfdd45866b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0bc54bca-c09a-11e4-bb16-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [64da6af7-cef4-4739-91c1-65dfdd45866b] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0bbb8022-c09a-11e4-96ca-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [64da6af7-cef4-4739-91c1-65dfdd45866b] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [64da6af7-cef4-4739-91c1-65dfdd45866b] Clubhouse::Mailer#invitation: processed outbound mail in 221.0ms [ActiveJob] [ActionMailer::DeliveryJob] [64da6af7-cef4-4739-91c1-65dfdd45866b] Sent mail to email@example.com (8.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [64da6af7-cef4-4739-91c1-65dfdd45866b] Date: Sun, 01 Mar 2015 21:07:38 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f01a88c11_148843ff668865be89335e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/KPtALeGZJEbG8u8qFG8qKBLloUxut5zEgZ75OAORmm4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [64da6af7-cef4-4739-91c1-65dfdd45866b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 230.52ms Completed 201 Created in 301ms (Views: 1.0ms | ActiveRecord: 5.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$8zysCEOW8ImUhYba8y84ke4OhW7kLMX5GZHt2TbxKET7teWlerz0C"], ["created_at", "2015-03-02 05:07:38.573049"], ["updated_at", "2015-03-02 05:07:38.573049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.574851"], ["user_id", "0bf0181e-c09a-11e4-a85d-705681abff85"], ["created_at", "2015-03-02 05:07:38.575671"], ["updated_at", "2015-03-02 05:07:38.575671"], ["token", "Y_AEw0uVThQw24dwhFyvq-8Zj4uJ8eYLLvS6bhTXixk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.580587"], ["updated_at", "2015-03-02 05:07:38.580587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0bf0181e-c09a-11e4-a85d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0bf13ca8-c09a-11e4-93bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0bf0181e-c09a-11e4-a85d-705681abff85"], ["organization_id", "0bf13ca8-c09a-11e4-93bc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:38.584151"], ["updated_at", "2015-03-02 05:07:38.584151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '0bf13ca8-c09a-11e4-93bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "0bf13ca8-c09a-11e4-93bc-705681abff85"], ["created_at", "2015-03-02 05:07:38.588082"], ["updated_at", "2015-03-02 05:07:38.588082"], ["token", "-hCbOnTfB5W9-DH_cuK2CKEcmTI3cO00H7uACc5L82g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:38.595942' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y_AEw0uVThQw24dwhFyvq-8Zj4uJ8eYLLvS6bhTXixk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:38.597486"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:38.598614"], ["id", "0bf08632-c09a-11e4-91c2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0bf0181e-c09a-11e4-a85d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0bf0181e-c09a-11e4-a85d-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0bf0181e-c09a-11e4-a85d-705681abff85' LIMIT 1 [["organization_id", "0bf13ca8-c09a-11e4-93bc-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0bf13ca8-c09a-11e4-93bc-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0bf13ca8-c09a-11e4-93bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "0bf13ca8-c09a-11e4-93bc-705681abff85"], ["created_at", "2015-03-02 05:07:38.609217"], ["updated_at", "2015-03-02 05:07:38.609217"], ["token", "FVvSwwnhFn91fT-EvlGEhWLu9CuLVkpteH-ZfwPDLeQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e2b82497-b6c8-491a-b462-0e8dec0cf4e4) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0bf5a6a8-c09a-11e4-8530-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0bf5a6a8-c09a-11e4-8530-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e2b82497-b6c8-491a-b462-0e8dec0cf4e4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0bf5a6a8-c09a-11e4-8530-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [e2b82497-b6c8-491a-b462-0e8dec0cf4e4] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0bf13ca8-c09a-11e4-93bc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e2b82497-b6c8-491a-b462-0e8dec0cf4e4] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [e2b82497-b6c8-491a-b462-0e8dec0cf4e4] Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms [ActiveJob] [ActionMailer::DeliveryJob] [e2b82497-b6c8-491a-b462-0e8dec0cf4e4] Sent mail to email@example.com (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [e2b82497-b6c8-491a-b462-0e8dec0cf4e4] Date: Sun, 01 Mar 2015 21:07:38 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f01a96a89_148843ff668865be8934e3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/FVvSwwnhFn91fT-EvlGEhWLu9CuLVkpteH-ZfwPDLeQ If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [e2b82497-b6c8-491a-b462-0e8dec0cf4e4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.93ms Completed 201 Created in 24ms (Views: 1.0ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$3zGqlCji9icFEofFIUJwc.4W4OAOsAXdhHh2P9YAo4U/h.E9o0enm"], ["created_at", "2015-03-02 05:07:38.630558"], ["updated_at", "2015-03-02 05:07:38.630558"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.632927"], ["user_id", "0bf8e340-c09a-11e4-8740-705681abff85"], ["created_at", "2015-03-02 05:07:38.634299"], ["updated_at", "2015-03-02 05:07:38.634299"], ["token", "NgxOS05hX7iSr3LbUYSAk3lRjIdJeJwvx0qlPLFVBQA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.638234"], ["updated_at", "2015-03-02 05:07:38.638234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0bf8e340-c09a-11e4-8740-705681abff85' AND "clubhouse_memberships"."organization_id" = '0bfa08f6-c09a-11e4-ac4b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0bf8e340-c09a-11e4-8740-705681abff85"], ["organization_id", "0bfa08f6-c09a-11e4-ac4b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:38.641676"], ["updated_at", "2015-03-02 05:07:38.641676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '0bfa08f6-c09a-11e4-ac4b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "0bfa08f6-c09a-11e4-ac4b-705681abff85"], ["created_at", "2015-03-02 05:07:38.646753"], ["updated_at", "2015-03-02 05:07:38.646753"], ["token", "N87_jt57Qa8HPUHghakksLjf0hfs353nCDE65InqNmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$tC/Gnn9BItMjC5s/lCzpJO7Q7JrXuT9L6Mxiaap58/Wy3.mWFJrWu"], ["created_at", "2015-03-02 05:07:38.654044"], ["updated_at", "2015-03-02 05:07:38.654044"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.660554"], ["updated_at", "2015-03-02 05:07:38.660554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0bfc8a7c-c09a-11e4-ac45-705681abff85' AND "clubhouse_memberships"."organization_id" = '0bfd8792-c09a-11e4-a386-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0bfc8a7c-c09a-11e4-ac45-705681abff85"], ["organization_id", "0bfd8792-c09a-11e4-a386-705681abff85"], ["created_at", "2015-03-02 05:07:38.664935"], ["updated_at", "2015-03-02 05:07:38.664935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:38.675100' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NgxOS05hX7iSr3LbUYSAk3lRjIdJeJwvx0qlPLFVBQA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:38.676966"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:38.678123"], ["id", "0bf97472-c09a-11e4-92e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0bf8e340-c09a-11e4-8740-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0bf8e340-c09a-11e4-8740-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0bf8e340-c09a-11e4-8740-705681abff85' LIMIT 1 [["organization_id", "0bfa08f6-c09a-11e4-ac4b-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "0bfa08f6-c09a-11e4-ac4b-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('0bfa08f6-c09a-11e4-ac4b-705681abff85') Completed 200 OK in 18ms (Views: 4.5ms | ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$qOAumMSkfubpR69vitXQe.AxYlM8yss3I21eOr.Ov4p0C1Lj7uHpW"], ["created_at", "2015-03-02 05:07:38.703153"], ["updated_at", "2015-03-02 05:07:38.703153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.706356"], ["user_id", "0c041120-c09a-11e4-9b06-705681abff85"], ["created_at", "2015-03-02 05:07:38.707610"], ["updated_at", "2015-03-02 05:07:38.707610"], ["token", "tYFVw_aEc3plbH22Vbec4_DVmXj_G7e0yDYDqXpZ5xI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.714038"], ["updated_at", "2015-03-02 05:07:38.714038"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c041120-c09a-11e4-9b06-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c05b0f2-c09a-11e4-8d33-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0c041120-c09a-11e4-9b06-705681abff85"], ["organization_id", "0c05b0f2-c09a-11e4-8d33-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:07:38.720560"], ["updated_at", "2015-03-02 05:07:38.720560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '0c05b0f2-c09a-11e4-8d33-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "0c05b0f2-c09a-11e4-8d33-705681abff85"], ["created_at", "2015-03-02 05:07:38.725124"], ["updated_at", "2015-03-02 05:07:38.725124"], ["token", "IAkXWyA0kZF9KPu_rPZopCCt_DejqpCr9JPwuWsNk2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$PhBec33CXNbw9ydrft4loO9/gPt3.BSd6Eroe6jrubqeX1jaVCEMW"], ["created_at", "2015-03-02 05:07:38.730851"], ["updated_at", "2015-03-02 05:07:38.730851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.735183"], ["updated_at", "2015-03-02 05:07:38.735183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c083c3c-c09a-11e4-825d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c08df0c-c09a-11e4-9011-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c083c3c-c09a-11e4-825d-705681abff85"], ["organization_id", "0c08df0c-c09a-11e4-9011-705681abff85"], ["created_at", "2015-03-02 05:07:38.741469"], ["updated_at", "2015-03-02 05:07:38.741469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.753640"], ["updated_at", "2015-03-02 05:07:38.753640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0c0bab9c-c09a-11e4-b27f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0c0bab9c-c09a-11e4-b27f-705681abff85"], ["created_at", "2015-03-02 05:07:38.758220"], ["updated_at", "2015-03-02 05:07:38.758220"], ["token", "epEWXr8LRTfZmp-gcZ5Ax3vIImvWxK-e9A2X2FYuey0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (2.0ms) Date: Sun, 01 Mar 2015 21:07:38 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f01aba2c5_148843ff668865be89359f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/epEWXr8LRTfZmp-gcZ5Ax3vIImvWxK-e9A2X2FYuey0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.768384"], ["updated_at", "2015-03-02 05:07:38.768384"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0c0de8d0-c09a-11e4-a4e9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0c0de8d0-c09a-11e4-a4e9-705681abff85"], ["created_at", "2015-03-02 05:07:38.773516"], ["updated_at", "2015-03-02 05:07:38.773516"], ["token", "QjPZDaYgidpdb8wEKhyQENLS0F9FQQjsWi9qJ5ws8zA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.9ms) Date: Sun, 01 Mar 2015 21:07:38 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f01abdfb0_148843ff668865be893665@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/QjPZDaYgidpdb8wEKhyQENLS0F9FQQjsWi9qJ5ws8zA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.783666"], ["updated_at", "2015-03-02 05:07:38.783666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0c105264-c09a-11e4-a882-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0c105264-c09a-11e4-a882-705681abff85"], ["created_at", "2015-03-02 05:07:38.789150"], ["updated_at", "2015-03-02 05:07:38.789150"], ["token", "m6AgRRz9ZdlQ0Yd0GytVOhCqRnmHpfMFcnwEJA4VpYg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.9ms) Date: Sun, 01 Mar 2015 21:07:38 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f01ac1f3a_148843ff668865be8937a2@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/m6AgRRz9ZdlQ0Yd0GytVOhCqRnmHpfMFcnwEJA4VpYg If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.800828"], ["updated_at", "2015-03-02 05:07:38.800828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0c12e984-c09a-11e4-b893-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0c12e984-c09a-11e4-b893-705681abff85"], ["created_at", "2015-03-02 05:07:38.806279"], ["updated_at", "2015-03-02 05:07:38.806279"], ["token", "UXml3LVWpHRBqPj96mXwiFN5KdhRIh_wAmYFS_w_D7s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.5ms Sent mail to john@example.com (1.7ms) Date: Sun, 01 Mar 2015 21:07:38 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f01ac5dbd_148843ff668865be893889@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/UXml3LVWpHRBqPj96mXwiFN5KdhRIh_wAmYFS_w_D7s If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$bgXEC3eUjns1O5P7Z6Z/QeFFKwoTvUdMJEM9hiTUu92e6jjbqTxum"], ["created_at", "2015-03-02 05:07:38.816754"], ["updated_at", "2015-03-02 05:07:38.816754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.818439"], ["user_id", "0c1546e8-c09a-11e4-b807-705681abff85"], ["created_at", "2015-03-02 05:07:38.819272"], ["updated_at", "2015-03-02 05:07:38.819272"], ["token", "O7mjpUsSwCxTTdqWPU5GS2mR4MQa_6WsWj3ypzVgKqc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.824345"], ["updated_at", "2015-03-02 05:07:38.824345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c1546e8-c09a-11e4-b807-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c166f0a-c09a-11e4-9b4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c1546e8-c09a-11e4-b807-705681abff85"], ["organization_id", "0c166f0a-c09a-11e4-9b4b-705681abff85"], ["created_at", "2015-03-02 05:07:38.828083"], ["updated_at", "2015-03-02 05:07:38.828083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$PWlFXRkDz/vT4jDWvKH8veT.xraBfAEWUMI2eSRHORN6AgZp2ya4S"], ["created_at", "2015-03-02 05:07:38.847114"], ["updated_at", "2015-03-02 05:07:38.847114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.848858"], ["user_id", "0c19ebbc-c09a-11e4-80b6-705681abff85"], ["created_at", "2015-03-02 05:07:38.849682"], ["updated_at", "2015-03-02 05:07:38.849682"], ["token", "MpNuSyReuOyLbVStBJIMKoeJ_tmni9NS0HcOldi_mbA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.853719"], ["updated_at", "2015-03-02 05:07:38.853719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c19ebbc-c09a-11e4-80b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c1aed46-c09a-11e4-a338-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c19ebbc-c09a-11e4-80b6-705681abff85"], ["organization_id", "0c1aed46-c09a-11e4-a338-705681abff85"], ["created_at", "2015-03-02 05:07:38.857509"], ["updated_at", "2015-03-02 05:07:38.857509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:38.863362' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MpNuSyReuOyLbVStBJIMKoeJ_tmni9NS0HcOldi_mbA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:38.865400"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:38.866402"], ["id", "0c1a519c-c09a-11e4-af24-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 7ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$NV4yF/iiBTtNpXZhALdLTem/Kr0pji.OLoYP89jOrA332JP7e0EzC"], ["created_at", "2015-03-02 05:07:38.875296"], ["updated_at", "2015-03-02 05:07:38.875296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.877041"], ["user_id", "0c1e3320-c09a-11e4-bc10-705681abff85"], ["created_at", "2015-03-02 05:07:38.878204"], ["updated_at", "2015-03-02 05:07:38.878204"], ["token", "4oFEnqA-TVWyUtdQNIrXVqnvLxtPrKlye0P90kbJ_Ek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.881901"], ["updated_at", "2015-03-02 05:07:38.881901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c1e3320-c09a-11e4-bc10-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c1f3644-c09a-11e4-8e48-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c1e3320-c09a-11e4-bc10-705681abff85"], ["organization_id", "0c1f3644-c09a-11e4-8e48-705681abff85"], ["created_at", "2015-03-02 05:07:38.886175"], ["updated_at", "2015-03-02 05:07:38.886175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-10" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-10", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:38.892506' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4oFEnqA-TVWyUtdQNIrXVqnvLxtPrKlye0P90kbJ_Ek"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:38.894058"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:38.895092"], ["id", "0c1eb142-c09a-11e4-9eb6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-10"]] Completed 200 OK in 5ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$0W3aztTMVb/L/jzn2fCVNOwR.L5RuXmv/9wQatdkkXOZdvqYU.Xhq"], ["created_at", "2015-03-02 05:07:38.903062"], ["updated_at", "2015-03-02 05:07:38.903062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.904763"], ["user_id", "0c227264-c09a-11e4-a485-705681abff85"], ["created_at", "2015-03-02 05:07:38.905567"], ["updated_at", "2015-03-02 05:07:38.905567"], ["token", "H1izY_RPLXApTr7Yxw6WHzkUQsi_VgAQ89hSgSTLvZM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.909070"], ["updated_at", "2015-03-02 05:07:38.909070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c227264-c09a-11e4-a485-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c235c06-c09a-11e4-8a04-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c227264-c09a-11e4-a485-705681abff85"], ["organization_id", "0c235c06-c09a-11e4-8a04-705681abff85"], ["created_at", "2015-03-02 05:07:38.912716"], ["updated_at", "2015-03-02 05:07:38.912716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-11" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-11", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:38.919767' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "H1izY_RPLXApTr7Yxw6WHzkUQsi_VgAQ89hSgSTLvZM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:38.922643"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:38.924228"], ["id", "0c22d8a8-c09a-11e4-b849-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c227264-c09a-11e4-a485-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0c227264-c09a-11e4-a485-705681abff85"], ["name", "org-11"]] Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$YXPGdZZqAuPRuosPP1oIFuSSCnlcHjWQnFx0lwlo4EJ..AaP5tTyi"], ["created_at", "2015-03-02 05:07:38.936300"], ["updated_at", "2015-03-02 05:07:38.936300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.938579"], ["user_id", "0c279118-c09a-11e4-b40b-705681abff85"], ["created_at", "2015-03-02 05:07:38.940364"], ["updated_at", "2015-03-02 05:07:38.940364"], ["token", "MOk92vsLCASKBH8S5vPyzMH6hJnTryFCtLONyGwh9G8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.945496"], ["updated_at", "2015-03-02 05:07:38.945496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c279118-c09a-11e4-b40b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c28e964-c09a-11e4-a45e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c279118-c09a-11e4-b40b-705681abff85"], ["organization_id", "0c28e964-c09a-11e4-a45e-705681abff85"], ["created_at", "2015-03-02 05:07:38.949020"], ["updated_at", "2015-03-02 05:07:38.949020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$9fBuSvl0tvz16.KweV2PI.nEQDcrCxZWhOOq6IgSPi4zKXi04twe2"], ["created_at", "2015-03-02 05:07:38.960978"], ["updated_at", "2015-03-02 05:07:38.960978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.962648"], ["user_id", "0c2b4862-c09a-11e4-badc-705681abff85"], ["created_at", "2015-03-02 05:07:38.963457"], ["updated_at", "2015-03-02 05:07:38.963457"], ["token", "nlGy0Wv9H2lqAWzgfs_QougwYxhgp2yxs_olcMX3X0I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:38.969056"], ["updated_at", "2015-03-02 05:07:38.969056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c2b4862-c09a-11e4-badc-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c2c9726-c09a-11e4-886f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c2b4862-c09a-11e4-badc-705681abff85"], ["organization_id", "0c2c9726-c09a-11e4-886f-705681abff85"], ["created_at", "2015-03-02 05:07:38.974704"], ["updated_at", "2015-03-02 05:07:38.974704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/0c2c9726-c09a-11e4-886f-705681abff85" for 127.0.0.1 at 2015-03-01 21:07:38 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"0c2c9726-c09a-11e4-886f-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:38.980305' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nlGy0Wv9H2lqAWzgfs_QougwYxhgp2yxs_olcMX3X0I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:38.981945"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:38.982930"], ["id", "0c2baf3c-c09a-11e4-9ac6-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c2b4862-c09a-11e4-badc-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0c2b4862-c09a-11e4-badc-705681abff85"], ["id", "0c2c9726-c09a-11e4-886f-705681abff85"]] Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$MQIwKTczia/T4K8Zc0NnauGVIk14NwSj3T15/2YdxllVbKNlMM1X6"], ["created_at", "2015-03-02 05:07:38.997681"], ["updated_at", "2015-03-02 05:07:38.997681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:38.999384"], ["user_id", "0c30e1aa-c09a-11e4-9d92-705681abff85"], ["created_at", "2015-03-02 05:07:39.000229"], ["updated_at", "2015-03-02 05:07:39.000229"], ["token", "vGj-cGmVBOW5R2l3Tbc2I-EEMGVb7NaFDT1DLV4Uzk8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.004033"], ["updated_at", "2015-03-02 05:07:39.004033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c30e1aa-c09a-11e4-9d92-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c31da56-c09a-11e4-ab21-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c30e1aa-c09a-11e4-9d92-705681abff85"], ["organization_id", "0c31da56-c09a-11e4-ab21-705681abff85"], ["created_at", "2015-03-02 05:07:39.008613"], ["updated_at", "2015-03-02 05:07:39.008613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (4.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$auYzmbv9rCuH/D0SuKg.HuG.eZYfxs5dFBTJoHiT0Z1nAj5kBjZu6"], ["created_at", "2015-03-02 05:07:39.020635"], ["updated_at", "2015-03-02 05:07:39.020635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.027158"], ["user_id", "0c3475a4-c09a-11e4-b64e-705681abff85"], ["created_at", "2015-03-02 05:07:39.028120"], ["updated_at", "2015-03-02 05:07:39.028120"], ["token", "tjHe7fEMih1uT_8OwqxqAVJV70gY3fGk6vrk_KbpnZM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.032119"], ["updated_at", "2015-03-02 05:07:39.032119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c3475a4-c09a-11e4-b64e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c362336-c09a-11e4-a3b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c3475a4-c09a-11e4-b64e-705681abff85"], ["organization_id", "0c362336-c09a-11e4-a3b0-705681abff85"], ["created_at", "2015-03-02 05:07:39.035977"], ["updated_at", "2015-03-02 05:07:39.035977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$k9.ElekNbJ2fm5g9YdS41eNo62M/l6hR4H8FiZrdMSLvUcoSAuEzu"], ["created_at", "2015-03-02 05:07:39.047440"], ["updated_at", "2015-03-02 05:07:39.047440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.049070"], ["user_id", "0c3878f2-c09a-11e4-9572-705681abff85"], ["created_at", "2015-03-02 05:07:39.049897"], ["updated_at", "2015-03-02 05:07:39.049897"], ["token", "-dtEbwhBqz1-xZhz4UjdwwkXcrsdzmiLeUNIO_RcfWo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.053706"], ["updated_at", "2015-03-02 05:07:39.053706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c3878f2-c09a-11e4-9572-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c396bae-c09a-11e4-a510-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c3878f2-c09a-11e4-9572-705681abff85"], ["organization_id", "0c396bae-c09a-11e4-a510-705681abff85"], ["created_at", "2015-03-02 05:07:39.058201"], ["updated_at", "2015-03-02 05:07:39.058201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/0c396bae-c09a-11e4-a510-705681abff85" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"0c396bae-c09a-11e4-a510-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:39.063814' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-dtEbwhBqz1-xZhz4UjdwwkXcrsdzmiLeUNIO_RcfWo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:39.065421"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:39.066448"], ["id", "0c38e210-c09a-11e4-a1fb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c3878f2-c09a-11e4-9572-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0c3878f2-c09a-11e4-9572-705681abff85"], ["id", "0c396bae-c09a-11e4-a510-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '0c396bae-c09a-11e4-a510-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$8cXjYs8k0BmChILLMHrDiuyOD8mRHANH0wdfdO54LNzxt2mcdnR8W"], ["created_at", "2015-03-02 05:07:39.081801"], ["updated_at", "2015-03-02 05:07:39.081801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.083526"], ["user_id", "0c3db8b2-c09a-11e4-a71d-705681abff85"], ["created_at", "2015-03-02 05:07:39.084308"], ["updated_at", "2015-03-02 05:07:39.084308"], ["token", "Yp3Defq4Pkh6GuQF2oLDG8mvfHrm9YtiRNk2CxwSGGM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.087713"], ["updated_at", "2015-03-02 05:07:39.087713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c3db8b2-c09a-11e4-a71d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c3e9fde-c09a-11e4-b3a1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c3db8b2-c09a-11e4-a71d-705681abff85"], ["organization_id", "0c3e9fde-c09a-11e4-b3a1-705681abff85"], ["created_at", "2015-03-02 05:07:39.091585"], ["updated_at", "2015-03-02 05:07:39.091585"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/0c3e9fde-c09a-11e4-b3a1-705681abff85" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"0c3e9fde-c09a-11e4-b3a1-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:39.097565' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Yp3Defq4Pkh6GuQF2oLDG8mvfHrm9YtiRNk2CxwSGGM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:39.099150"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:39.100528"], ["id", "0c3e1dd4-c09a-11e4-9199-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c3db8b2-c09a-11e4-a71d-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0c3db8b2-c09a-11e4-a71d-705681abff85"], ["id", "0c3e9fde-c09a-11e4-b3a1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '0c3e9fde-c09a-11e4-b3a1-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:07:39.107800"], ["id", "0c3e9fde-c09a-11e4-b3a1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$LMGN4b4fMAww1csFjwPZAevVUAsokAYPRqK0fU/BrwJq/dqXlShRG"], ["created_at", "2015-03-02 05:07:39.116139"], ["updated_at", "2015-03-02 05:07:39.116139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.117967"], ["user_id", "0c42faac-c09a-11e4-9d67-705681abff85"], ["created_at", "2015-03-02 05:07:39.118828"], ["updated_at", "2015-03-02 05:07:39.118828"], ["token", "yJ4J6nijyzQPb1NTNrH9cLvgfcXuJdjtF4l-sfLxDUA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.122626"], ["updated_at", "2015-03-02 05:07:39.122626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c42faac-c09a-11e4-9d67-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c43f4b6-c09a-11e4-90e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c42faac-c09a-11e4-9d67-705681abff85"], ["organization_id", "0c43f4b6-c09a-11e4-90e5-705681abff85"], ["created_at", "2015-03-02 05:07:39.126366"], ["updated_at", "2015-03-02 05:07:39.126366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/0c43f4b6-c09a-11e4-90e5-705681abff85" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"0c43f4b6-c09a-11e4-90e5-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:39.131938' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yJ4J6nijyzQPb1NTNrH9cLvgfcXuJdjtF4l-sfLxDUA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:39.133540"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:39.134833"], ["id", "0c436456-c09a-11e4-9ad5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c42faac-c09a-11e4-9d67-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0c42faac-c09a-11e4-9d67-705681abff85"], ["id", "0c43f4b6-c09a-11e4-90e5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "0c43f4b6-c09a-11e4-90e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$9.2KfeB3jzrxpOxkqV8j5eCB7K5a24Rs/qdlaHqgYPBNQnpWCTNqq"], ["created_at", "2015-03-02 05:07:39.148077"], ["updated_at", "2015-03-02 05:07:39.148077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.150062"], ["user_id", "0c47db3a-c09a-11e4-98c8-705681abff85"], ["created_at", "2015-03-02 05:07:39.150933"], ["updated_at", "2015-03-02 05:07:39.150933"], ["token", "T3wgOJ8ePOAlMIT_lDBzGDOa9hc7LPvAH07SHIJjwaQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.154465"], ["updated_at", "2015-03-02 05:07:39.154465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c47db3a-c09a-11e4-98c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c48d116-c09a-11e4-8ec2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c47db3a-c09a-11e4-98c8-705681abff85"], ["organization_id", "0c48d116-c09a-11e4-8ec2-705681abff85"], ["created_at", "2015-03-02 05:07:39.158772"], ["updated_at", "2015-03-02 05:07:39.158772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$y2t8HcXCipW0cmteq5sCt.AAJEBFtMvzJMAvi.iiH83u8XTEVIR.O"], ["created_at", "2015-03-02 05:07:39.169886"], ["updated_at", "2015-03-02 05:07:39.169886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.171572"], ["user_id", "0c4b2790-c09a-11e4-ab1b-705681abff85"], ["created_at", "2015-03-02 05:07:39.172318"], ["updated_at", "2015-03-02 05:07:39.172318"], ["token", "eM8jHd57ihR94oVoAqdCK22spnxzbI64ckwVSmjiPS4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.175999"], ["updated_at", "2015-03-02 05:07:39.175999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c4b2790-c09a-11e4-ab1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c4c1588-c09a-11e4-a1a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c4b2790-c09a-11e4-ab1b-705681abff85"], ["organization_id", "0c4c1588-c09a-11e4-a1a3-705681abff85"], ["created_at", "2015-03-02 05:07:39.179344"], ["updated_at", "2015-03-02 05:07:39.179344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$5Xsp8Nws1Td0amU1d2fxoeAmBwIJL93nHYMhShdwidj8gLTZ3vr/a"], ["created_at", "2015-03-02 05:07:39.190742"], ["updated_at", "2015-03-02 05:07:39.190742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.192591"], ["user_id", "0c4e58d4-c09a-11e4-8708-705681abff85"], ["created_at", "2015-03-02 05:07:39.193476"], ["updated_at", "2015-03-02 05:07:39.193476"], ["token", "fgI0xC34uF_xU0OgW7w1YPBzZId2nLNuuh9bLVQB2Wo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.197152"], ["updated_at", "2015-03-02 05:07:39.197152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c4e58d4-c09a-11e4-8708-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c4f4f1e-c09a-11e4-8910-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c4e58d4-c09a-11e4-8708-705681abff85"], ["organization_id", "0c4f4f1e-c09a-11e4-8910-705681abff85"], ["created_at", "2015-03-02 05:07:39.200837"], ["updated_at", "2015-03-02 05:07:39.200837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:39.206721' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fgI0xC34uF_xU0OgW7w1YPBzZId2nLNuuh9bLVQB2Wo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:39.208636"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:39.209856"], ["id", "0c4ec8a0-c09a-11e4-8130-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c4e58d4-c09a-11e4-8708-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$TV9keHNGoi0gm43gJKxP7OWW/8aaq7QOLWj6W/WR1d1lxK710Wwhq"], ["created_at", "2015-03-02 05:07:39.223581"], ["updated_at", "2015-03-02 05:07:39.223581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.225279"], ["user_id", "0c535ac8-c09a-11e4-9b4d-705681abff85"], ["created_at", "2015-03-02 05:07:39.226092"], ["updated_at", "2015-03-02 05:07:39.226092"], ["token", "VcKPdd3s6aCp4hVwJCQMOnSIbsbpBnf_ax7K_lgip5U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.229790"], ["updated_at", "2015-03-02 05:07:39.229790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c535ac8-c09a-11e4-9b4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c5449ba-c09a-11e4-bce9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c535ac8-c09a-11e4-9b4d-705681abff85"], ["organization_id", "0c5449ba-c09a-11e4-bce9-705681abff85"], ["created_at", "2015-03-02 05:07:39.233391"], ["updated_at", "2015-03-02 05:07:39.233391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:39.251930' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VcKPdd3s6aCp4hVwJCQMOnSIbsbpBnf_ax7K_lgip5U"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:39.254748"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:39.256694"], ["id", "0c53c4b8-c09a-11e4-8eb9-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c535ac8-c09a-11e4-9b4d-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.266350"], ["updated_at", "2015-03-02 05:07:39.266350"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0c59f914-c09a-11e4-a4c3-705681abff85"]] Clubhouse::Membership Exists (1.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c535ac8-c09a-11e4-9b4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c59f914-c09a-11e4-a4c3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0c535ac8-c09a-11e4-9b4d-705681abff85"], ["admin", "t"], ["organization_id", "0c59f914-c09a-11e4-a4c3-705681abff85"], ["created_at", "2015-03-02 05:07:39.275453"], ["updated_at", "2015-03-02 05:07:39.275453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 27ms (Views: 0.6ms | ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$SREYCRh.F9M.kI6shBJiOOZuOJgjVy9Z32emIhTCJe4xEcGv5v.52"], ["created_at", "2015-03-02 05:07:39.286168"], ["updated_at", "2015-03-02 05:07:39.286168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.287811"], ["user_id", "0c5ce5b6-c09a-11e4-bc23-705681abff85"], ["created_at", "2015-03-02 05:07:39.288561"], ["updated_at", "2015-03-02 05:07:39.288561"], ["token", "ZF6muC4k_3goaxpJ7L_2D_Nk73rrSG3Uu-d4ONDnOmw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.292149"], ["updated_at", "2015-03-02 05:07:39.292149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c5ce5b6-c09a-11e4-bc23-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c5dcfbc-c09a-11e4-a5cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c5ce5b6-c09a-11e4-bc23-705681abff85"], ["organization_id", "0c5dcfbc-c09a-11e4-a5cb-705681abff85"], ["created_at", "2015-03-02 05:07:39.295520"], ["updated_at", "2015-03-02 05:07:39.295520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-23" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-23", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:39.300467' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZF6muC4k_3goaxpJ7L_2D_Nk73rrSG3Uu-d4ONDnOmw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:39.301969"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:39.302947"], ["id", "0c5d4c5e-c09a-11e4-80d8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c5ce5b6-c09a-11e4-bc23-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0c5ce5b6-c09a-11e4-bc23-705681abff85"], ["name", "org-23"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "0c5dcfbc-c09a-11e4-a5cb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$uEZLnybeFlzZjAgwrTfeEOPjbqPk9.bwkzMHaLhUg.3vpzjafG/wm"], ["created_at", "2015-03-02 05:07:39.313792"], ["updated_at", "2015-03-02 05:07:39.313792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.315566"], ["user_id", "0c611ce4-c09a-11e4-86bc-705681abff85"], ["created_at", "2015-03-02 05:07:39.316436"], ["updated_at", "2015-03-02 05:07:39.316436"], ["token", "cGouaMFH7NW66X8L1kBi9qVjppdT7_W2IXG8ybDeLQ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.320501"], ["updated_at", "2015-03-02 05:07:39.320501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c611ce4-c09a-11e4-86bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c6222a6-c09a-11e4-afe8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c611ce4-c09a-11e4-86bc-705681abff85"], ["organization_id", "0c6222a6-c09a-11e4-afe8-705681abff85"], ["created_at", "2015-03-02 05:07:39.324170"], ["updated_at", "2015-03-02 05:07:39.324170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$BdfnIAe.4cpiLhQgxp.GiOP1VuhRfmHSFX017f9vji3qnZqJL5rZu"], ["created_at", "2015-03-02 05:07:39.335764"], ["updated_at", "2015-03-02 05:07:39.335764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.337461"], ["user_id", "0c64786c-c09a-11e4-8691-705681abff85"], ["created_at", "2015-03-02 05:07:39.338296"], ["updated_at", "2015-03-02 05:07:39.338296"], ["token", "UhAQ0Jt5WgLwRb6CNqpOLIqO5PJ83CZbPxJnOzTbsU0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.342296"], ["updated_at", "2015-03-02 05:07:39.342296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c64786c-c09a-11e4-8691-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c657398-c09a-11e4-b04a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c64786c-c09a-11e4-8691-705681abff85"], ["organization_id", "0c657398-c09a-11e4-b04a-705681abff85"], ["created_at", "2015-03-02 05:07:39.345952"], ["updated_at", "2015-03-02 05:07:39.345952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$x1NunYrAeNPjXgcRfSiMRu/x7rK3tNeEFbJGn66cAHpa98JmOpvxa"], ["created_at", "2015-03-02 05:07:39.350590"], ["updated_at", "2015-03-02 05:07:39.350590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.353977"], ["updated_at", "2015-03-02 05:07:39.353977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c66b820-c09a-11e4-a13c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c673bc4-c09a-11e4-9128-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c66b820-c09a-11e4-a13c-705681abff85"], ["organization_id", "0c673bc4-c09a-11e4-9128-705681abff85"], ["created_at", "2015-03-02 05:07:39.357301"], ["updated_at", "2015-03-02 05:07:39.357301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:39.362694' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UhAQ0Jt5WgLwRb6CNqpOLIqO5PJ83CZbPxJnOzTbsU0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:39.364134"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:39.365073"], ["id", "0c64ebe4-c09a-11e4-8210-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c64786c-c09a-11e4-8691-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "0c64786c-c09a-11e4-8691-705681abff85"]] Completed 200 OK in 8ms (Views: 2.2ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$11zfImanvV2DT2Ndfm0Ojes1LZlMLkCuGPzgUtavqcvzyi4hxgdLe"], ["created_at", "2015-03-02 05:07:39.378191"], ["updated_at", "2015-03-02 05:07:39.378191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.380229"], ["user_id", "0c6afa98-c09a-11e4-bb2e-705681abff85"], ["created_at", "2015-03-02 05:07:39.381062"], ["updated_at", "2015-03-02 05:07:39.381062"], ["token", "4CKmVh88686lsoANoxCsHwLH9YrcDy8jGywnNt-RjdI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.384615"], ["updated_at", "2015-03-02 05:07:39.384615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c6afa98-c09a-11e4-bb2e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c6be76e-c09a-11e4-9a3c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c6afa98-c09a-11e4-bb2e-705681abff85"], ["organization_id", "0c6be76e-c09a-11e4-9a3c-705681abff85"], ["created_at", "2015-03-02 05:07:39.387997"], ["updated_at", "2015-03-02 05:07:39.387997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$AO5r6Pcx5Au2qgZ1.F11ZOj8JmAHkw.U7Do5OriPiLefHkoQrbyNW"], ["created_at", "2015-03-02 05:07:39.393027"], ["updated_at", "2015-03-02 05:07:39.393027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.396217"], ["updated_at", "2015-03-02 05:07:39.396217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c6d3290-c09a-11e4-9844-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c6dad24-c09a-11e4-b92e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c6d3290-c09a-11e4-9844-705681abff85"], ["organization_id", "0c6dad24-c09a-11e4-b92e-705681abff85"], ["created_at", "2015-03-02 05:07:39.399321"], ["updated_at", "2015-03-02 05:07:39.399321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$u.baOHgbA1SDI7m202y.jO3znxCVoTBS6VD8TmszJeK.iljyeIjFq"], ["created_at", "2015-03-02 05:07:39.410090"], ["updated_at", "2015-03-02 05:07:39.410090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.412067"], ["user_id", "0c6fd86a-c09a-11e4-b0a7-705681abff85"], ["created_at", "2015-03-02 05:07:39.412911"], ["updated_at", "2015-03-02 05:07:39.412911"], ["token", "oXPUPCdyQRxW4dfgYpCdzYFOtvOhsSn5gpjQ7TnBh4M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.417279"], ["updated_at", "2015-03-02 05:07:39.417279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c6fd86a-c09a-11e4-b0a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c70e688-c09a-11e4-bb49-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c6fd86a-c09a-11e4-b0a7-705681abff85"], ["organization_id", "0c70e688-c09a-11e4-bb49-705681abff85"], ["created_at", "2015-03-02 05:07:39.420816"], ["updated_at", "2015-03-02 05:07:39.420816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$m/9i7wYGGBKa4JJI1tTQ/eMsL0sjp6boyIQ/d1.n00217SnjNL4HS"], ["created_at", "2015-03-02 05:07:39.432667"], ["updated_at", "2015-03-02 05:07:39.432667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.434364"], ["user_id", "0c73422a-c09a-11e4-9f5c-705681abff85"], ["created_at", "2015-03-02 05:07:39.435165"], ["updated_at", "2015-03-02 05:07:39.435165"], ["token", "tYfjWgFtnRpgYdJm9gWJjGJdYOCCPx2mL7es4nMMWYg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.439922"], ["updated_at", "2015-03-02 05:07:39.439922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c73422a-c09a-11e4-9f5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c7471c2-c09a-11e4-9706-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c73422a-c09a-11e4-9f5c-705681abff85"], ["organization_id", "0c7471c2-c09a-11e4-9706-705681abff85"], ["created_at", "2015-03-02 05:07:39.444658"], ["updated_at", "2015-03-02 05:07:39.444658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-30" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-30", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:39.451626' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tYfjWgFtnRpgYdJm9gWJjGJdYOCCPx2mL7es4nMMWYg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:39.453574"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:39.454640"], ["id", "0c73a95e-c09a-11e4-8442-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c73422a-c09a-11e4-9f5c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0c73422a-c09a-11e4-9f5c-705681abff85"], ["name", "org-30"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '0c7471c2-c09a-11e4-9706-705681abff85') LIMIT 1  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$eWEECj5yncw2aqWZQ73mmucGLG0C9zP2PK7M1T1J5UmPrB4KwksEi"], ["created_at", "2015-03-02 05:07:39.474269"], ["updated_at", "2015-03-02 05:07:39.474269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:07:39.476661"], ["user_id", "0c79a598-c09a-11e4-a223-705681abff85"], ["created_at", "2015-03-02 05:07:39.477620"], ["updated_at", "2015-03-02 05:07:39.477620"], ["token", "LzKh9n0PstEw6Bf2cCChcMiSQiXr5uLRtMhwZ8oEvmw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:07:39.484329"], ["updated_at", "2015-03-02 05:07:39.484329"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c79a598-c09a-11e4-a223-705681abff85' AND "clubhouse_memberships"."organization_id" = '0c7b8d36-c09a-11e4-87a1-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0c79a598-c09a-11e4-a223-705681abff85"], ["organization_id", "0c7b8d36-c09a-11e4-87a1-705681abff85"], ["created_at", "2015-03-02 05:07:39.496392"], ["updated_at", "2015-03-02 05:07:39.496392"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-31" for 127.0.0.1 at 2015-03-01 21:07:39 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-31", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:07:39.516082' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LzKh9n0PstEw6Bf2cCChcMiSQiXr5uLRtMhwZ8oEvmw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:07:39.528859"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:07:39.530069"], ["id", "0c7a25d6-c09a-11e4-87c0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c79a598-c09a-11e4-a223-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0c79a598-c09a-11e4-a223-705681abff85"], ["name", "org-31"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '0c7b8d36-c09a-11e4-87a1-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:07:39.535742"], ["id", "0c7b8d36-c09a-11e4-87a1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 23ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (23.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$sPhBYEo8SpgPrxY4tmy3ZerjgDL3Y/gAbpYM2jFjSgQg.8j69s3Hy"], ["created_at", "2015-03-02 05:10:11.640161"], ["updated_at", "2015-03-02 05:10:11.640161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$sSpNk4Hr3z3ZM.7nMmFeCef4rxG.IExHotd6hH1guw31/NZNHXIgK"], ["created_at", "2015-03-02 05:10:11.669240"], ["updated_at", "2015-03-02 05:10:11.669240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (12.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:11.677750"], ["user_id", "672fe6e6-c09a-11e4-af49-705681abff85"], ["created_at", "2015-03-02 05:10:11.683446"], ["updated_at", "2015-03-02 05:10:11.683446"], ["token", "UH5hHcafbgXMjMpQ1Q-sIxRBBHixHfcvMQ8JE498y0o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:11.706664"], ["updated_at", "2015-03-02 05:10:11.706664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '672fe6e6-c09a-11e4-af49-705681abff85' AND "clubhouse_memberships"."organization_id" = '6736736c-c09a-11e4-9815-705681abff85') LIMIT 1 SQL (4.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "672fe6e6-c09a-11e4-af49-705681abff85"], ["organization_id", "6736736c-c09a-11e4-9815-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:11.720114"], ["updated_at", "2015-03-02 05:10:11.720114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6730b7d8-c09a-11e4-88d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '6736736c-c09a-11e4-9815-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6730b7d8-c09a-11e4-88d5-705681abff85"], ["organization_id", "6736736c-c09a-11e4-9815-705681abff85"], ["created_at", "2015-03-02 05:10:11.727820"], ["updated_at", "2015-03-02 05:10:11.727820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:10:11 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$eOw3UVsAuUi59eLwGKnHgeEyBlSbSmx6yxzeWkdau6tUqjWFSkyqq"], ["created_at", "2015-03-02 05:10:11.761307"], ["updated_at", "2015-03-02 05:10:11.761307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$DCuuXprrMshrr8KahnoGf.tZno7MV/bNFzRRt1bh05mCm8tAYMLUy"], ["created_at", "2015-03-02 05:10:11.765805"], ["updated_at", "2015-03-02 05:10:11.765805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:11.767522"], ["user_id", "673ec6b6-c09a-11e4-9c8b-705681abff85"], ["created_at", "2015-03-02 05:10:11.768398"], ["updated_at", "2015-03-02 05:10:11.768398"], ["token", "rcmklY-9J0wCnEjjKfyQ2mOsbOUcH8TE-9rsbXzKp4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:11.772555"], ["updated_at", "2015-03-02 05:10:11.772555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '673ec6b6-c09a-11e4-9c8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '674076a0-c09a-11e4-80ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "673ec6b6-c09a-11e4-9c8b-705681abff85"], ["organization_id", "674076a0-c09a-11e4-80ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:11.775942"], ["updated_at", "2015-03-02 05:10:11.775942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '673f70ca-c09a-11e4-86bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '674076a0-c09a-11e4-80ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "673f70ca-c09a-11e4-86bd-705681abff85"], ["organization_id", "674076a0-c09a-11e4-80ab-705681abff85"], ["created_at", "2015-03-02 05:10:11.779381"], ["updated_at", "2015-03-02 05:10:11.779381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/674187b6-c09a-11e4-8073-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:10:11 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"674187b6-c09a-11e4-8073-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:11.784993' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rcmklY-9J0wCnEjjKfyQ2mOsbOUcH8TE-9rsbXzKp4Y"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:11.792521"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:11.794215"], ["id", "673fe8c0-c09a-11e4-b445-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "673ec6b6-c09a-11e4-9c8b-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "673ec6b6-c09a-11e4-9c8b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '673ec6b6-c09a-11e4-9c8b-705681abff85' LIMIT 1 [["organization_id", "674076a0-c09a-11e4-80ab-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "674076a0-c09a-11e4-80ab-705681abff85"], ["id", "674187b6-c09a-11e4-8073-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "673f70ca-c09a-11e4-86bd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "674076a0-c09a-11e4-80ab-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '673f70ca-c09a-11e4-86bd-705681abff85' AND "clubhouse_memberships"."id" != '674187b6-c09a-11e4-8073-705681abff85' AND "clubhouse_memberships"."organization_id" = '674076a0-c09a-11e4-80ab-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:10:11.826739"], ["id", "674187b6-c09a-11e4-8073-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 48ms (Views: 4.0ms | ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$HulDUb9WmRloF7Vzp9RRAe.ce.wmtRHc8pPGhvYFdKITxftKglLOK"], ["created_at", "2015-03-02 05:10:11.841555"], ["updated_at", "2015-03-02 05:10:11.841555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$EbONq30edwI1o1xQ49ikNeE9MSy75m0Rne7xdwNwPxDT3Txxykk8m"], ["created_at", "2015-03-02 05:10:11.846660"], ["updated_at", "2015-03-02 05:10:11.846660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:11.848350"], ["user_id", "674b020a-c09a-11e4-83a1-705681abff85"], ["created_at", "2015-03-02 05:10:11.849156"], ["updated_at", "2015-03-02 05:10:11.849156"], ["token", "37R1MUoukVCM-NcVKfvNVJUUeN7d5pokKvWvCKmjOZ8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:11.855341"], ["updated_at", "2015-03-02 05:10:11.855341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '674b020a-c09a-11e4-83a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '674d1f4a-c09a-11e4-b91f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "674b020a-c09a-11e4-83a1-705681abff85"], ["organization_id", "674d1f4a-c09a-11e4-b91f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:11.859192"], ["updated_at", "2015-03-02 05:10:11.859192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '674bc69a-c09a-11e4-99bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '674d1f4a-c09a-11e4-b91f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "674bc69a-c09a-11e4-99bb-705681abff85"], ["organization_id", "674d1f4a-c09a-11e4-b91f-705681abff85"], ["created_at", "2015-03-02 05:10:11.862630"], ["updated_at", "2015-03-02 05:10:11.862630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/674db1a8-c09a-11e4-b8b0-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:10:11 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"674db1a8-c09a-11e4-b8b0-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:11.869199' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "37R1MUoukVCM-NcVKfvNVJUUeN7d5pokKvWvCKmjOZ8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:11.870636"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:11.872000"], ["id", "674c6398-c09a-11e4-9102-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "674b020a-c09a-11e4-83a1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "674b020a-c09a-11e4-83a1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '674b020a-c09a-11e4-83a1-705681abff85' LIMIT 1 [["organization_id", "674d1f4a-c09a-11e4-b91f-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "674d1f4a-c09a-11e4-b91f-705681abff85"], ["id", "674db1a8-c09a-11e4-b8b0-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "674b020a-c09a-11e4-83a1-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ftjcpFyHmYzJT1g0EmG3yO0V7B6knpim/A0KhwgGGpfJ5ea3rVa3i"], ["created_at", "2015-03-02 05:10:11.885772"], ["updated_at", "2015-03-02 05:10:11.885772"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Xd3avzrJBHzzGEfFd6Wy.eIJSTmBuUlr1J/mpOwxNYvG1Vbdk8OGW"], ["created_at", "2015-03-02 05:10:11.892941"], ["updated_at", "2015-03-02 05:10:11.892941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:11.894593"], ["user_id", "6751e7c8-c09a-11e4-be06-705681abff85"], ["created_at", "2015-03-02 05:10:11.895617"], ["updated_at", "2015-03-02 05:10:11.895617"], ["token", "qzSShA2NmMpw5n_ngezYKSxf7Yze53kYNpq0EX9_MuQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:11.899565"], ["updated_at", "2015-03-02 05:10:11.899565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6751e7c8-c09a-11e4-be06-705681abff85' AND "clubhouse_memberships"."organization_id" = '6753dfe2-c09a-11e4-94d0-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6751e7c8-c09a-11e4-be06-705681abff85"], ["organization_id", "6753dfe2-c09a-11e4-94d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:11.903342"], ["updated_at", "2015-03-02 05:10:11.903342"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6752d7a0-c09a-11e4-a6d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6753dfe2-c09a-11e4-94d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6752d7a0-c09a-11e4-a6d6-705681abff85"], ["organization_id", "6753dfe2-c09a-11e4-94d0-705681abff85"], ["created_at", "2015-03-02 05:10:11.907051"], ["updated_at", "2015-03-02 05:10:11.907051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 21:10:11 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$dTOyrlVhUzRhUXkGzJ/0HeUd/4H2s4w5PQCz7BAGiww4BTbvHHQdq"], ["created_at", "2015-03-02 05:10:11.917364"], ["updated_at", "2015-03-02 05:10:11.917364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$MYO.fFWHJ9pbwB78kXoEaewi.r6D35LLVZCHs8h2XBT5CAU7m.v1i"], ["created_at", "2015-03-02 05:10:11.922627"], ["updated_at", "2015-03-02 05:10:11.922627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:11.924648"], ["user_id", "6756a6d2-c09a-11e4-b04c-705681abff85"], ["created_at", "2015-03-02 05:10:11.925599"], ["updated_at", "2015-03-02 05:10:11.925599"], ["token", "AnqSAvWoo-aCUXgtp4AJxudkC_Kj3tMbfeA1smFognQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:11.929602"], ["updated_at", "2015-03-02 05:10:11.929602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6756a6d2-c09a-11e4-b04c-705681abff85' AND "clubhouse_memberships"."organization_id" = '67586f26-c09a-11e4-b894-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6756a6d2-c09a-11e4-b04c-705681abff85"], ["organization_id", "67586f26-c09a-11e4-b894-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:11.933660"], ["updated_at", "2015-03-02 05:10:11.933660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '675766b2-c09a-11e4-bb94-705681abff85' AND "clubhouse_memberships"."organization_id" = '67586f26-c09a-11e4-b894-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "675766b2-c09a-11e4-bb94-705681abff85"], ["organization_id", "67586f26-c09a-11e4-b894-705681abff85"], ["created_at", "2015-03-02 05:10:11.937823"], ["updated_at", "2015-03-02 05:10:11.937823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/6759b2c8-c09a-11e4-872f-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:10:11 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"6759b2c8-c09a-11e4-872f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:11.943619' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AnqSAvWoo-aCUXgtp4AJxudkC_Kj3tMbfeA1smFognQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:11.945161"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:11.946430"], ["id", "6757dcf0-c09a-11e4-9a50-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6756a6d2-c09a-11e4-b04c-705681abff85"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6756a6d2-c09a-11e4-b04c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6756a6d2-c09a-11e4-b04c-705681abff85' LIMIT 1 [["organization_id", "67586f26-c09a-11e4-b894-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "67586f26-c09a-11e4-b894-705681abff85"], ["id", "6759b2c8-c09a-11e4-872f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "67586f26-c09a-11e4-b894-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "675766b2-c09a-11e4-bb94-705681abff85"]] Completed 200 OK in 14ms (Views: 2.8ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$OVGdJh6e/Cz60KH12M/Ao.rJvYJ0FaBhZ1XyoLdCrtBx4XJvACvpi"], ["created_at", "2015-03-02 05:10:11.963692"], ["updated_at", "2015-03-02 05:10:11.963692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$qDiVJ/9Y07vIs8VBmV3Vze09a8qBuuPqPHQoow9NOax66tro5b4jO"], ["created_at", "2015-03-02 05:10:11.968734"], ["updated_at", "2015-03-02 05:10:11.968734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:11.970675"], ["user_id", "675da5ae-c09a-11e4-bfb1-705681abff85"], ["created_at", "2015-03-02 05:10:11.971611"], ["updated_at", "2015-03-02 05:10:11.971611"], ["token", "OC5W6DS1m88UqRL2kGrF8eivq5_Jart10gGVru4jGWc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:11.978006"], ["updated_at", "2015-03-02 05:10:11.978006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '675da5ae-c09a-11e4-bfb1-705681abff85' AND "clubhouse_memberships"."organization_id" = '675ffcaa-c09a-11e4-bde9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "675da5ae-c09a-11e4-bfb1-705681abff85"], ["organization_id", "675ffcaa-c09a-11e4-bde9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:11.984886"], ["updated_at", "2015-03-02 05:10:11.984886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '675e6f84-c09a-11e4-b403-705681abff85' AND "clubhouse_memberships"."organization_id" = '675ffcaa-c09a-11e4-bde9-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "675e6f84-c09a-11e4-b403-705681abff85"], ["organization_id", "675ffcaa-c09a-11e4-bde9-705681abff85"], ["created_at", "2015-03-02 05:10:11.992209"], ["updated_at", "2015-03-02 05:10:11.992209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 21:10:11 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Q1r1N7CGpJsgCIms6Qf3tuuf5p9ZvXtwqiahH4fyf4ZwGLZjx4du6"], ["created_at", "2015-03-02 05:10:12.004185"], ["updated_at", "2015-03-02 05:10:12.004185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$c2BlE9hJV22PgMa8lR9ebOIccL7csdX0UpteX0ys7FMk/NlUzU3ve"], ["created_at", "2015-03-02 05:10:12.011073"], ["updated_at", "2015-03-02 05:10:12.011073"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.016809"], ["user_id", "6763df0a-c09a-11e4-b378-705681abff85"], ["created_at", "2015-03-02 05:10:12.018752"], ["updated_at", "2015-03-02 05:10:12.018752"], ["token", "UlJifp0gKjV4JlrDEH70KbzP4MZEn46a6n2oGf2b3C4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.030604"], ["updated_at", "2015-03-02 05:10:12.030604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6763df0a-c09a-11e4-b378-705681abff85' AND "clubhouse_memberships"."organization_id" = '6767e226-c09a-11e4-ae9a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6763df0a-c09a-11e4-b378-705681abff85"], ["organization_id", "6767e226-c09a-11e4-ae9a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.034634"], ["updated_at", "2015-03-02 05:10:12.034634"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67652a2c-c09a-11e4-a078-705681abff85' AND "clubhouse_memberships"."organization_id" = '6767e226-c09a-11e4-ae9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "67652a2c-c09a-11e4-a078-705681abff85"], ["organization_id", "6767e226-c09a-11e4-ae9a-705681abff85"], ["created_at", "2015-03-02 05:10:12.040034"], ["updated_at", "2015-03-02 05:10:12.040034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/676881fe-c09a-11e4-ae80-705681abff85" for 127.0.0.1 at 2015-03-01 21:10:12 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"676881fe-c09a-11e4-ae80-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:12.044615' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UlJifp0gKjV4JlrDEH70KbzP4MZEn46a6n2oGf2b3C4"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:12.045997"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:12.048037"], ["id", "67661be4-c09a-11e4-9134-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6763df0a-c09a-11e4-b378-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6763df0a-c09a-11e4-b378-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6763df0a-c09a-11e4-b378-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "6763df0a-c09a-11e4-b378-705681abff85"], ["id", "676881fe-c09a-11e4-ae80-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6767e226-c09a-11e4-ae9a-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6763df0a-c09a-11e4-b378-705681abff85"]] Completed 200 OK in 12ms (Views: 2.0ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$briO0zq1CoiraOBYYm8BVOI1rnhswECY1mMRzmbDt0xZpsUUde1ly"], ["created_at", "2015-03-02 05:10:12.063276"], ["updated_at", "2015-03-02 05:10:12.063276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$hNRTiaI.8xnXgfinRCj7VOAW4RF0jL9F8O1.eFnWprlSjkznXaNZi"], ["created_at", "2015-03-02 05:10:12.067764"], ["updated_at", "2015-03-02 05:10:12.067764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.069769"], ["user_id", "676cd61e-c09a-11e4-bc51-705681abff85"], ["created_at", "2015-03-02 05:10:12.071084"], ["updated_at", "2015-03-02 05:10:12.071084"], ["token", "KwupUuDkXV_CQthQrfnYts18q3V0CLZZf8gpBrzpWtA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.074813"], ["updated_at", "2015-03-02 05:10:12.074813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '676cd61e-c09a-11e4-bc51-705681abff85' AND "clubhouse_memberships"."organization_id" = '676e97ba-c09a-11e4-b7ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "676cd61e-c09a-11e4-bc51-705681abff85"], ["organization_id", "676e97ba-c09a-11e4-b7ca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.078142"], ["updated_at", "2015-03-02 05:10:12.078142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '676d8640-c09a-11e4-9185-705681abff85' AND "clubhouse_memberships"."organization_id" = '676e97ba-c09a-11e4-b7ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "676d8640-c09a-11e4-9185-705681abff85"], ["organization_id", "676e97ba-c09a-11e4-b7ca-705681abff85"], ["created_at", "2015-03-02 05:10:12.081258"], ["updated_at", "2015-03-02 05:10:12.081258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 21:10:12 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:12.086401' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KwupUuDkXV_CQthQrfnYts18q3V0CLZZf8gpBrzpWtA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:12.087892"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:12.089123"], ["id", "676e0ec6-c09a-11e4-83c4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "676cd61e-c09a-11e4-bc51-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "676cd61e-c09a-11e4-bc51-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "676cd61e-c09a-11e4-bc51-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "676cd61e-c09a-11e4-bc51-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('676cd61e-c09a-11e4-bc51-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('676e97ba-c09a-11e4-b7ca-705681abff85') Completed 200 OK in 18ms (Views: 9.0ms | ActiveRecord: 2.0ms)  (6.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$070BBj.c88WKw0KmCkds5u9k6R9SlILRfBnHe10dJQktdkOqQSY.y"], ["created_at", "2015-03-02 05:10:12.119024"], ["updated_at", "2015-03-02 05:10:12.119024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$YffqDwtzg33FZPc7ymZ96uojywwrpXHQWFnmQ9aTNWOxrbMvIoNxO"], ["created_at", "2015-03-02 05:10:12.125574"], ["updated_at", "2015-03-02 05:10:12.125574"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.128417"], ["user_id", "67756216-c09a-11e4-9b85-705681abff85"], ["created_at", "2015-03-02 05:10:12.129567"], ["updated_at", "2015-03-02 05:10:12.129567"], ["token", "2NprRlS3PsswtYgbGI4ccxzyYjaz1_Mv3ghiPGsq7J0"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.135424"], ["updated_at", "2015-03-02 05:10:12.135424"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67756216-c09a-11e4-9b85-705681abff85' AND "clubhouse_memberships"."organization_id" = '67782abe-c09a-11e4-83c2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "67756216-c09a-11e4-9b85-705681abff85"], ["organization_id", "67782abe-c09a-11e4-83c2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.143718"], ["updated_at", "2015-03-02 05:10:12.143718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67765eb4-c09a-11e4-96f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '67782abe-c09a-11e4-83c2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "67765eb4-c09a-11e4-96f2-705681abff85"], ["organization_id", "67782abe-c09a-11e4-83c2-705681abff85"], ["created_at", "2015-03-02 05:10:12.146996"], ["updated_at", "2015-03-02 05:10:12.146996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$wNO4CAiYQa0ZFYCtjAGste0VnfSde1LlJHwIJX4T/MNlClcDQBaY6"], ["created_at", "2015-03-02 05:10:12.152401"], ["updated_at", "2015-03-02 05:10:12.152401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.154838"], ["user_id", "677a7dd2-c09a-11e4-87c4-705681abff85"], ["created_at", "2015-03-02 05:10:12.156160"], ["updated_at", "2015-03-02 05:10:12.156160"], ["token", "9_57i3gkfHmZemeAwKppw-SK3Gf0KeHaniu-c-WnRi0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '67782abe-c09a-11e4-83c2-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "67782abe-c09a-11e4-83c2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.168523"], ["updated_at", "2015-03-02 05:10:12.168523"], ["token", "0d-DMepQ_ECJBu8xPWAhHBUlwGpMYrOWOqwV3G0EI9U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:10:12 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$bUyKOGXVHslZS39HoFauf.GsAbAgtAajsNxzidJRak2.2fezqYRre"], ["created_at", "2015-03-02 05:10:12.181303"], ["updated_at", "2015-03-02 05:10:12.181303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$gysTvIYCXH9DMgmya9HJ1OWJsXGK3Lu2jrHo7BOw0eLksPaWtUF2C"], ["created_at", "2015-03-02 05:10:12.188030"], ["updated_at", "2015-03-02 05:10:12.188030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.190406"], ["user_id", "677ef75e-c09a-11e4-925d-705681abff85"], ["created_at", "2015-03-02 05:10:12.191235"], ["updated_at", "2015-03-02 05:10:12.191235"], ["token", "Ygc-wpc94mXucaFr8k-UhPakW8AltQC-YU6OHoFkLzE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.195089"], ["updated_at", "2015-03-02 05:10:12.195089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '677ef75e-c09a-11e4-925d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6780f07c-c09a-11e4-bc94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "677ef75e-c09a-11e4-925d-705681abff85"], ["organization_id", "6780f07c-c09a-11e4-bc94-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.198883"], ["updated_at", "2015-03-02 05:10:12.198883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '677ff2a8-c09a-11e4-98b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '6780f07c-c09a-11e4-bc94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "677ff2a8-c09a-11e4-98b0-705681abff85"], ["organization_id", "6780f07c-c09a-11e4-bc94-705681abff85"], ["created_at", "2015-03-02 05:10:12.202063"], ["updated_at", "2015-03-02 05:10:12.202063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$n06Iq8pLEupzYDuYGcQ1FukgpwPkRhdVR7I3lY9XyedvUtJOiVVdS"], ["created_at", "2015-03-02 05:10:12.206433"], ["updated_at", "2015-03-02 05:10:12.206433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.208264"], ["user_id", "6782ae94-c09a-11e4-b9a2-705681abff85"], ["created_at", "2015-03-02 05:10:12.209079"], ["updated_at", "2015-03-02 05:10:12.209079"], ["token", "7aw1s2TXyd-SeZqsiQkhk9oWQQ_Ayk21n5Y3bIFy1mU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '6780f07c-c09a-11e4-bc94-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "6780f07c-c09a-11e4-bc94-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.213404"], ["updated_at", "2015-03-02 05:10:12.213404"], ["token", "5Ks-Jk6mrSJYgo6tZhj8eh7br-uodKccqKc8ZTOizL0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:10:12 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"5Ks-Jk6mrSJYgo6tZhj8eh7br-uodKccqKc8ZTOizL0", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:12.220775' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7aw1s2TXyd-SeZqsiQkhk9oWQQ_Ayk21n5Y3bIFy1mU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:12.222638"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:12.223815"], ["id", "67832540-c09a-11e4-9b24-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6782ae94-c09a-11e4-b9a2-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6782ae94-c09a-11e4-b9a2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "5Ks-Jk6mrSJYgo6tZhj8eh7br-uodKccqKc8ZTOizL0"]] Clubhouse::Organization Load (1.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6780f07c-c09a-11e4-bc94-705681abff85"]] CACHE (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6780f07c-c09a-11e4-bc94-705681abff85"]] Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6782ae94-c09a-11e4-b9a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '6780f07c-c09a-11e4-bc94-705681abff85') LIMIT 1 SQL (5.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6782ae94-c09a-11e4-b9a2-705681abff85"], ["admin", "t"], ["organization_id", "6780f07c-c09a-11e4-bc94-705681abff85"], ["created_at", "2015-03-02 05:10:12.286220"], ["updated_at", "2015-03-02 05:10:12.286220"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6783c1b2-c09a-11e4-988f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 85ms (Views: 3.8ms | ActiveRecord: 10.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$DYfBrlWfLg6bjyYCgr9qgOqemTzrCVtkATeJaHRPb6PbYpVT5teeu"], ["created_at", "2015-03-02 05:10:12.338480"], ["updated_at", "2015-03-02 05:10:12.338480"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$tsqH0dE6HZgMAnN8.u9pQuU0ue5Tb1b5moioSEJETygjWd9ZUv2uW"], ["created_at", "2015-03-02 05:10:12.344737"], ["updated_at", "2015-03-02 05:10:12.344737"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.347158"], ["user_id", "6796d928-c09a-11e4-ac4e-705681abff85"], ["created_at", "2015-03-02 05:10:12.348277"], ["updated_at", "2015-03-02 05:10:12.348277"], ["token", "_REhYgLWDjhsLgUgE9WxmnntTZZEPg5hNijcvO8b1Fo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.358502"], ["updated_at", "2015-03-02 05:10:12.358502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6796d928-c09a-11e4-ac4e-705681abff85' AND "clubhouse_memberships"."organization_id" = '679a169c-c09a-11e4-a7b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6796d928-c09a-11e4-ac4e-705681abff85"], ["organization_id", "679a169c-c09a-11e4-a7b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.365735"], ["updated_at", "2015-03-02 05:10:12.365735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6797ceb4-c09a-11e4-9a38-705681abff85' AND "clubhouse_memberships"."organization_id" = '679a169c-c09a-11e4-a7b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6797ceb4-c09a-11e4-9a38-705681abff85"], ["organization_id", "679a169c-c09a-11e4-a7b0-705681abff85"], ["created_at", "2015-03-02 05:10:12.369297"], ["updated_at", "2015-03-02 05:10:12.369297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$V1jUW1ADKfOJgBkv0mA60.Nw7g2MMbb4vp3c3FioWG.556Pt/.aoy"], ["created_at", "2015-03-02 05:10:12.381791"], ["updated_at", "2015-03-02 05:10:12.381791"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.386172"], ["user_id", "679d9d58-c09a-11e4-a8c5-705681abff85"], ["created_at", "2015-03-02 05:10:12.387192"], ["updated_at", "2015-03-02 05:10:12.387192"], ["token", "HC-oluBkyBzwY4GgkdLYjaJxOkjtZheb9Ed7mzXoal4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '679a169c-c09a-11e4-a7b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "679a169c-c09a-11e4-a7b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.391218"], ["updated_at", "2015-03-02 05:10:12.391218"], ["token", "ClfvZW1SCacL3G20JbxGPhLQflsLpcgxDHMk-dwsilU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:10:12 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:12.396561' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HC-oluBkyBzwY4GgkdLYjaJxOkjtZheb9Ed7mzXoal4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:12.397988"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:12.398908"], ["id", "679e4d16-c09a-11e4-9008-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "679d9d58-c09a-11e4-a8c5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "679d9d58-c09a-11e4-a8c5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$SeUOjdkyPVC.5JOgu5wAUOEAFT/RT5u3oxI20eCQ/7l1M0Oo.2EGW"], ["created_at", "2015-03-02 05:10:12.410898"], ["updated_at", "2015-03-02 05:10:12.410898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$i.xspIOVsPoW8s9gi7wnh.8f6gf2VkCO/qkytGsppdERNv3ztO89K"], ["created_at", "2015-03-02 05:10:12.415315"], ["updated_at", "2015-03-02 05:10:12.415315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.416939"], ["user_id", "67a1e1b0-c09a-11e4-aefc-705681abff85"], ["created_at", "2015-03-02 05:10:12.417704"], ["updated_at", "2015-03-02 05:10:12.417704"], ["token", "ojsrnUeRxOV0E1l4Ny6j6NygRmRHMi34dI51DSMcqSY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.421878"], ["updated_at", "2015-03-02 05:10:12.421878"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67a1e1b0-c09a-11e4-aefc-705681abff85' AND "clubhouse_memberships"."organization_id" = '67a38baa-c09a-11e4-80b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "67a1e1b0-c09a-11e4-aefc-705681abff85"], ["organization_id", "67a38baa-c09a-11e4-80b8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.425820"], ["updated_at", "2015-03-02 05:10:12.425820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67a28b42-c09a-11e4-9ee3-705681abff85' AND "clubhouse_memberships"."organization_id" = '67a38baa-c09a-11e4-80b8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "67a28b42-c09a-11e4-9ee3-705681abff85"], ["organization_id", "67a38baa-c09a-11e4-80b8-705681abff85"], ["created_at", "2015-03-02 05:10:12.429139"], ["updated_at", "2015-03-02 05:10:12.429139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:10:12 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$P7n2lEoBvqLaXtIjqKMiiO1KF70UTht/hQlb97iVXus1u.e6Log4a"], ["created_at", "2015-03-02 05:10:12.443009"], ["updated_at", "2015-03-02 05:10:12.443009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$JeE5nyA2Dx2xT88jSVVvTuTbPVIk.ilvQnqVVkE5qGj.rGVbZslI2"], ["created_at", "2015-03-02 05:10:12.448032"], ["updated_at", "2015-03-02 05:10:12.448032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.449757"], ["user_id", "67a6ca72-c09a-11e4-80b2-705681abff85"], ["created_at", "2015-03-02 05:10:12.450568"], ["updated_at", "2015-03-02 05:10:12.450568"], ["token", "WZyr8M90L5QVDZ_ScVGVFhKZRcbUo0-tya_J0nVu_ZE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.454794"], ["updated_at", "2015-03-02 05:10:12.454794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67a6ca72-c09a-11e4-80b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '67a8a5d6-c09a-11e4-b725-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "67a6ca72-c09a-11e4-80b2-705681abff85"], ["organization_id", "67a8a5d6-c09a-11e4-b725-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.459050"], ["updated_at", "2015-03-02 05:10:12.459050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67a78c00-c09a-11e4-8dee-705681abff85' AND "clubhouse_memberships"."organization_id" = '67a8a5d6-c09a-11e4-b725-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "67a78c00-c09a-11e4-8dee-705681abff85"], ["organization_id", "67a8a5d6-c09a-11e4-b725-705681abff85"], ["created_at", "2015-03-02 05:10:12.462522"], ["updated_at", "2015-03-02 05:10:12.462522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/67a9be6c-c09a-11e4-acc4-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:10:12 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"67a9be6c-c09a-11e4-acc4-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:12.467971' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WZyr8M90L5QVDZ_ScVGVFhKZRcbUo0-tya_J0nVu_ZE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:12.469639"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:12.470742"], ["id", "67a7f47e-c09a-11e4-88bf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "67a6ca72-c09a-11e4-80b2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "67a6ca72-c09a-11e4-80b2-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '67a6ca72-c09a-11e4-80b2-705681abff85' LIMIT 1 [["organization_id", "67a8a5d6-c09a-11e4-b725-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "67a8a5d6-c09a-11e4-b725-705681abff85"], ["id", "67a9be6c-c09a-11e4-acc4-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "67a78c00-c09a-11e4-8dee-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "67a9be6c-c09a-11e4-acc4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$3uhlNUu6NBvhZsCoi7pY/ugZj8qxaB.N1aJY9U.OOLPN5qXpdOkGO"], ["created_at", "2015-03-02 05:10:12.486756"], ["updated_at", "2015-03-02 05:10:12.486756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$iMWJ/5OkuWlyVxRp8wJMUO8LUicRoooyxxsrg9qbWLfM/Qm0MTixa"], ["created_at", "2015-03-02 05:10:12.491568"], ["updated_at", "2015-03-02 05:10:12.491568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.493187"], ["user_id", "67ad77f0-c09a-11e4-9eff-705681abff85"], ["created_at", "2015-03-02 05:10:12.494055"], ["updated_at", "2015-03-02 05:10:12.494055"], ["token", "f1AftsnZYfJwep-DX0iv1AnkHDmucf6ojmperhO7TVs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.498112"], ["updated_at", "2015-03-02 05:10:12.498112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67ad77f0-c09a-11e4-9eff-705681abff85' AND "clubhouse_memberships"."organization_id" = '67af2e4c-c09a-11e4-9761-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "67ad77f0-c09a-11e4-9eff-705681abff85"], ["organization_id", "67af2e4c-c09a-11e4-9761-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.501656"], ["updated_at", "2015-03-02 05:10:12.501656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67ae2e0c-c09a-11e4-8287-705681abff85' AND "clubhouse_memberships"."organization_id" = '67af2e4c-c09a-11e4-9761-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "67ae2e0c-c09a-11e4-8287-705681abff85"], ["organization_id", "67af2e4c-c09a-11e4-9761-705681abff85"], ["created_at", "2015-03-02 05:10:12.505226"], ["updated_at", "2015-03-02 05:10:12.505226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/67afbe98-c09a-11e4-a27c-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:10:12 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"67afbe98-c09a-11e4-a27c-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:12.510374' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "f1AftsnZYfJwep-DX0iv1AnkHDmucf6ojmperhO7TVs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:12.512064"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:12.513228"], ["id", "67ae97e8-c09a-11e4-9225-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "67ad77f0-c09a-11e4-9eff-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "67ad77f0-c09a-11e4-9eff-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '67ad77f0-c09a-11e4-9eff-705681abff85' LIMIT 1 [["organization_id", "67af2e4c-c09a-11e4-9761-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "67af2e4c-c09a-11e4-9761-705681abff85"], ["id", "67afbe98-c09a-11e4-a27c-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "67ad77f0-c09a-11e4-9eff-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$0/oHRHk4K7tNwOCEoRIKCu6AYcSp3X8c5RsQkjw0wV5JHgN.Aj9Me"], ["created_at", "2015-03-02 05:10:12.535818"], ["updated_at", "2015-03-02 05:10:12.535818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$3y05iPA6K6dw.keBnKmUoOn3r/Q5EzX9mt8IqWyxSMPZI0sCOUnu2"], ["created_at", "2015-03-02 05:10:12.540683"], ["updated_at", "2015-03-02 05:10:12.540683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:12.542445"], ["user_id", "67b4f69c-c09a-11e4-bd29-705681abff85"], ["created_at", "2015-03-02 05:10:12.543325"], ["updated_at", "2015-03-02 05:10:12.543325"], ["token", "LBhZ0B4_8gqf8PGukuLmEoeiiG0tmIZ1ytPRHKrV5Xc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (3.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.547248"], ["updated_at", "2015-03-02 05:10:12.547248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67b4f69c-c09a-11e4-bd29-705681abff85' AND "clubhouse_memberships"."organization_id" = '67b6af46-c09a-11e4-97ff-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "67b4f69c-c09a-11e4-bd29-705681abff85"], ["organization_id", "67b6af46-c09a-11e4-97ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:12.554734"], ["updated_at", "2015-03-02 05:10:12.554734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67b5b0f0-c09a-11e4-94e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '67b6af46-c09a-11e4-97ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "67b5b0f0-c09a-11e4-94e6-705681abff85"], ["organization_id", "67b6af46-c09a-11e4-97ff-705681abff85"], ["created_at", "2015-03-02 05:10:12.558384"], ["updated_at", "2015-03-02 05:10:12.558384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 21:10:12 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:12.563851' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LBhZ0B4_8gqf8PGukuLmEoeiiG0tmIZ1ytPRHKrV5Xc"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:12.565528"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:12.567019"], ["id", "67b61d1a-c09a-11e4-913b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "67b4f69c-c09a-11e4-bd29-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "67b4f69c-c09a-11e4-bd29-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '67b4f69c-c09a-11e4-bd29-705681abff85' LIMIT 1 [["organization_id", "67b6af46-c09a-11e4-97ff-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "67b6af46-c09a-11e4-97ff-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('67b4f69c-c09a-11e4-bd29-705681abff85', '67b5b0f0-c09a-11e4-94e6-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('67b6af46-c09a-11e4-97ff-705681abff85') Completed 200 OK in 16ms (Views: 5.0ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.615913"], ["updated_at", "2015-03-02 05:10:12.615913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.652592"], ["updated_at", "2015-03-02 05:10:12.652592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.657282"], ["updated_at", "2015-03-02 05:10:12.657282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.661606"], ["updated_at", "2015-03-02 05:10:12.661606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "67c829c4-c09a-11e4-81a3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.667043"], ["updated_at", "2015-03-02 05:10:12.667043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$6NCm18FE2.bcGiWb.Yd5MeBSNghn.hTTINfnz2TcY.XnYzeRZm7hG"], ["created_at", "2015-03-02 05:10:12.682889"], ["updated_at", "2015-03-02 05:10:12.682889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.686901"], ["updated_at", "2015-03-02 05:10:12.686901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67cb663e-c09a-11e4-aca2-705681abff85' AND "clubhouse_memberships"."organization_id" = '67cc09f4-c09a-11e4-a60e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "67cb663e-c09a-11e4-aca2-705681abff85"], ["organization_id", "67cc09f4-c09a-11e4-a60e-705681abff85"], ["created_at", "2015-03-02 05:10:12.690876"], ["updated_at", "2015-03-02 05:10:12.690876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "67cb663e-c09a-11e4-aca2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "67cc09f4-c09a-11e4-a60e-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67cb663e-c09a-11e4-aca2-705681abff85' AND "clubhouse_memberships"."organization_id" = '67cc09f4-c09a-11e4-a60e-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "67cc09f4-c09a-11e4-a60e-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67cb663e-c09a-11e4-aca2-705681abff85' AND "clubhouse_memberships"."organization_id" = '67cc09f4-c09a-11e4-a60e-705681abff86') LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.936619"], ["updated_at", "2015-03-02 05:10:12.936619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '67f217de-c09a-11e4-886c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "67f217de-c09a-11e4-886c-705681abff85"], ["created_at", "2015-03-02 05:10:12.940415"], ["updated_at", "2015-03-02 05:10:12.940415"], ["token", "GPitK1NLDnGjmsjfnYFvkM9b2reLv_AyNT21ePxVkQE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) Clubhouse::Mailer#invitation: processed outbound mail in 18.6ms Sent mail to john@example.com (8.2ms) Date: Sun, 01 Mar 2015 21:10:12 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f0b4ec4d2_1489e3ff2a4465bf051752@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/GPitK1NLDnGjmsjfnYFvkM9b2reLv_AyNT21ePxVkQE If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.977764"], ["updated_at", "2015-03-02 05:10:12.977764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '67f862ba-c09a-11e4-a63e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "67f862ba-c09a-11e4-a63e-705681abff85"], ["created_at", "2015-03-02 05:10:12.981560"], ["updated_at", "2015-03-02 05:10:12.981560"], ["token", "WytuNRXVwvWOjvbPuinqrVPaLo0fp_g8ThFmLdjwG_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (2.5ms) Date: Sun, 01 Mar 2015 21:10:12 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f0b4f0bf9_1489e3ff2a4465bf05183c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/WytuNRXVwvWOjvbPuinqrVPaLo0fp_g8ThFmLdjwG_Y If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:12.991943"], ["updated_at", "2015-03-02 05:10:12.991943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '67fa8a0e-c09a-11e4-accf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "67fa8a0e-c09a-11e4-accf-705681abff85"], ["created_at", "2015-03-02 05:10:12.996888"], ["updated_at", "2015-03-02 05:10:12.996888"], ["token", "ydzP9kT4KqiOj5q3nlOea9Ttm8oX5oEF6vbwHQ8g_iw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms Sent mail to john@example.com (3.1ms) Date: Sun, 01 Mar 2015 21:10:13 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f0b5a45_1489e3ff2a4465bf0519c5@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/ydzP9kT4KqiOj5q3nlOea9Ttm8oX5oEF6vbwHQ8g_iw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.008477"], ["updated_at", "2015-03-02 05:10:13.008477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '67fd1be8-c09a-11e4-b9f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "67fd1be8-c09a-11e4-b9f7-705681abff85"], ["created_at", "2015-03-02 05:10:13.013173"], ["updated_at", "2015-03-02 05:10:13.013173"], ["token", "E18ZqoyQsQ3bmFlywq4jmfaQYQYEj2ZpE9OdU_JTboo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (4.4ms) Date: Sun, 01 Mar 2015 21:10:13 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f0b5436b_1489e3ff2a4465bf0520cd@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/E18ZqoyQsQ3bmFlywq4jmfaQYQYEj2ZpE9OdU_JTboo If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$yef5xSKzAmL.tic.xbLaKuQclQY.lgChxhhGWrCV.St3dyGDFvvky"], ["created_at", "2015-03-02 05:10:13.027167"], ["updated_at", "2015-03-02 05:10:13.027167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.029023"], ["user_id", "67ffece2-c09a-11e4-b4d1-705681abff85"], ["created_at", "2015-03-02 05:10:13.029805"], ["updated_at", "2015-03-02 05:10:13.029805"], ["token", "ZxW7WY6AWF-7y9lLSzrfaA34zf3JkyoDVfHLIGOQevU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.033228"], ["updated_at", "2015-03-02 05:10:13.033228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67ffece2-c09a-11e4-b4d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '6800e3a4-c09a-11e4-9cb4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "67ffece2-c09a-11e4-b4d1-705681abff85"], ["organization_id", "6800e3a4-c09a-11e4-9cb4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.038659"], ["updated_at", "2015-03-02 05:10:13.038659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '6800e3a4-c09a-11e4-9cb4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "6800e3a4-c09a-11e4-9cb4-705681abff85"], ["created_at", "2015-03-02 05:10:13.042730"], ["updated_at", "2015-03-02 05:10:13.042730"], ["token", "Qegl5RkzGcuZPCjqRwaN8kRGQRknlDKnW1d0Fi2Qsqo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$7lQPSWwPUfZFmN2x6EXmKe/C2R3CFNWv/Vvr56lGAV9UOn.N53/vW"], ["created_at", "2015-03-02 05:10:13.059861"], ["updated_at", "2015-03-02 05:10:13.059861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.062107"], ["user_id", "6804f462-c09a-11e4-86ed-705681abff85"], ["created_at", "2015-03-02 05:10:13.062937"], ["updated_at", "2015-03-02 05:10:13.062937"], ["token", "amNVJAZDqxcdfdYGe_d3izq1NZBebO2gCn9iSB8jmNc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.066706"], ["updated_at", "2015-03-02 05:10:13.066706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6804f462-c09a-11e4-86ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '6805ee76-c09a-11e4-9c38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6804f462-c09a-11e4-86ed-705681abff85"], ["organization_id", "6805ee76-c09a-11e4-9c38-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.070374"], ["updated_at", "2015-03-02 05:10:13.070374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '6805ee76-c09a-11e4-9c38-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "6805ee76-c09a-11e4-9c38-705681abff85"], ["created_at", "2015-03-02 05:10:13.073865"], ["updated_at", "2015-03-02 05:10:13.073865"], ["token", "rrUvK6neo5Yx5SOHI27YZdHKTlkEV7mdv1IG7UJUaiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/680726d8-c09a-11e4-8197-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"680726d8-c09a-11e4-8197-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.079685' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "amNVJAZDqxcdfdYGe_d3izq1NZBebO2gCn9iSB8jmNc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.081298"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.082222"], ["id", "68056564-c09a-11e4-994d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6804f462-c09a-11e4-86ed-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6804f462-c09a-11e4-86ed-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6804f462-c09a-11e4-86ed-705681abff85' LIMIT 1 [["organization_id", "6805ee76-c09a-11e4-9c38-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "6805ee76-c09a-11e4-9c38-705681abff85"], ["id", "680726d8-c09a-11e4-8197-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6805ee76-c09a-11e4-9c38-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."id" != '680726d8-c09a-11e4-8197-705681abff85' AND "clubhouse_invitations"."organization_id" = '6805ee76-c09a-11e4-9c38-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:10:13.093766"], ["id", "680726d8-c09a-11e4-8197-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.9ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$f/81URgUV4MgSX6bJ/lh.u4v1cpIKKLra5jNUIwhKufQmtbWiioRm"], ["created_at", "2015-03-02 05:10:13.103968"], ["updated_at", "2015-03-02 05:10:13.103968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.105711"], ["user_id", "680ba53c-c09a-11e4-9e01-705681abff85"], ["created_at", "2015-03-02 05:10:13.106689"], ["updated_at", "2015-03-02 05:10:13.106689"], ["token", "XLbqDvpMdIBm8AMCvXDWPGEBMg5LD6M5LOYGy6Q51x0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.110945"], ["updated_at", "2015-03-02 05:10:13.110945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '680ba53c-c09a-11e4-9e01-705681abff85' AND "clubhouse_memberships"."organization_id" = '680cb10c-c09a-11e4-a700-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "680ba53c-c09a-11e4-9e01-705681abff85"], ["organization_id", "680cb10c-c09a-11e4-a700-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.114383"], ["updated_at", "2015-03-02 05:10:13.114383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '680cb10c-c09a-11e4-a700-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "680cb10c-c09a-11e4-a700-705681abff85"], ["created_at", "2015-03-02 05:10:13.117912"], ["updated_at", "2015-03-02 05:10:13.117912"], ["token", "QG_3fLVrEgp6wl3HgslqPRLYdiSMhyz6RmXcvOmcxWE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$vZDDrl1p7D.EgZPd2s6GPeGIMHTY2ZgJProSxZCrTOJnLJM6F2Nh2"], ["created_at", "2015-03-02 05:10:13.129081"], ["updated_at", "2015-03-02 05:10:13.129081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.130746"], ["user_id", "680f7662-c09a-11e4-b6ab-705681abff85"], ["created_at", "2015-03-02 05:10:13.131571"], ["updated_at", "2015-03-02 05:10:13.131571"], ["token", "jwXuVtR04WF5wDz5lOjbko6TQvYa5z9_Ajr9yCHQYRs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.135861"], ["updated_at", "2015-03-02 05:10:13.135861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '680f7662-c09a-11e4-b6ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '68107f44-c09a-11e4-8212-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "680f7662-c09a-11e4-b6ab-705681abff85"], ["organization_id", "68107f44-c09a-11e4-8212-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.139688"], ["updated_at", "2015-03-02 05:10:13.139688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '68107f44-c09a-11e4-8212-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "68107f44-c09a-11e4-8212-705681abff85"], ["created_at", "2015-03-02 05:10:13.143903"], ["updated_at", "2015-03-02 05:10:13.143903"], ["token", "A-A2G1E9t1vdBvjdMih87oDSKOYhu9ZdCpEuGWqxJlI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.150058' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jwXuVtR04WF5wDz5lOjbko6TQvYa5z9_Ajr9yCHQYRs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.151555"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.152577"], ["id", "680fdd78-c09a-11e4-a967-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "680f7662-c09a-11e4-b6ab-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "680f7662-c09a-11e4-b6ab-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '680f7662-c09a-11e4-b6ab-705681abff85' LIMIT 1 [["organization_id", "68107f44-c09a-11e4-8212-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68107f44-c09a-11e4-8212-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '68107f44-c09a-11e4-8212-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "68107f44-c09a-11e4-8212-705681abff85"], ["created_at", "2015-03-02 05:10:13.162565"], ["updated_at", "2015-03-02 05:10:13.162565"], ["token", "qg33aazsY6uyCIs2lY3lHHKN4Z9cgFVIEEfff47PPKo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 73f931ab-c39f-4cf7-b248-2cfc62f996eb) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6814a088-c09a-11e4-bf1f-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6814a088-c09a-11e4-bf1f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [73f931ab-c39f-4cf7-b248-2cfc62f996eb] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6814a088-c09a-11e4-bf1f-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [73f931ab-c39f-4cf7-b248-2cfc62f996eb] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68107f44-c09a-11e4-8212-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [73f931ab-c39f-4cf7-b248-2cfc62f996eb] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [73f931ab-c39f-4cf7-b248-2cfc62f996eb] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [73f931ab-c39f-4cf7-b248-2cfc62f996eb] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [73f931ab-c39f-4cf7-b248-2cfc62f996eb] Date: Sun, 01 Mar 2015 21:10:13 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f0b52de83_1489e3ff2a4465bf0521bf@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/qg33aazsY6uyCIs2lY3lHHKN4Z9cgFVIEEfff47PPKo If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [73f931ab-c39f-4cf7-b248-2cfc62f996eb] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.9ms Completed 201 Created in 41ms (Views: 1.5ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$BSwJ7xsa5V3./9.a7dYV/eosSG1szOZR6bfe.q2FumwyB5uZEmOmG"], ["created_at", "2015-03-02 05:10:13.197646"], ["updated_at", "2015-03-02 05:10:13.197646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.199290"], ["user_id", "6819ed2c-c09a-11e4-acd4-705681abff85"], ["created_at", "2015-03-02 05:10:13.200106"], ["updated_at", "2015-03-02 05:10:13.200106"], ["token", "DUgjbYIKcPitq4cBSuRi5A9COhSAvj_Y3R0xr9qlsgU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.210287"], ["updated_at", "2015-03-02 05:10:13.210287"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6819ed2c-c09a-11e4-acd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '681be898-c09a-11e4-88d1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6819ed2c-c09a-11e4-acd4-705681abff85"], ["organization_id", "681be898-c09a-11e4-88d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.216780"], ["updated_at", "2015-03-02 05:10:13.216780"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '681be898-c09a-11e4-88d1-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "681be898-c09a-11e4-88d1-705681abff85"], ["created_at", "2015-03-02 05:10:13.222907"], ["updated_at", "2015-03-02 05:10:13.222907"], ["token", "lipQuosGvXGvYmj02jLQPfkKCWxHMAPoJWYkz3VKF6M"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.298101' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DUgjbYIKcPitq4cBSuRi5A9COhSAvj_Y3R0xr9qlsgU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.301068"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.303281"], ["id", "681a5316-c09a-11e4-b3bc-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6819ed2c-c09a-11e4-acd4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6819ed2c-c09a-11e4-acd4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6819ed2c-c09a-11e4-acd4-705681abff85' LIMIT 1 [["organization_id", "681be898-c09a-11e4-88d1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "681be898-c09a-11e4-88d1-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '681be898-c09a-11e4-88d1-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "681be898-c09a-11e4-88d1-705681abff85"], ["created_at", "2015-03-02 05:10:13.321291"], ["updated_at", "2015-03-02 05:10:13.321291"], ["token", "L3PNnrA8Yn_oj-ddVq0EovkYtjluVV4S0LkJZ6jrBHA"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 61e58d36-d917-431a-a846-875ef7799829) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/682ced6e-c09a-11e4-8d6e-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "682ced6e-c09a-11e4-8d6e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [61e58d36-d917-431a-a846-875ef7799829] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/682ced6e-c09a-11e4-8d6e-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [61e58d36-d917-431a-a846-875ef7799829] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "681be898-c09a-11e4-88d1-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [61e58d36-d917-431a-a846-875ef7799829] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [61e58d36-d917-431a-a846-875ef7799829] Clubhouse::Mailer#invitation: processed outbound mail in 3.0ms [ActiveJob] [ActionMailer::DeliveryJob] [61e58d36-d917-431a-a846-875ef7799829] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [61e58d36-d917-431a-a846-875ef7799829] Date: Sun, 01 Mar 2015 21:10:13 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f0b5523b8_1489e3ff2a4465bf05224a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/L3PNnrA8Yn_oj-ddVq0EovkYtjluVV4S0LkJZ6jrBHA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [61e58d36-d917-431a-a846-875ef7799829] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.33ms Completed 201 Created in 41ms (Views: 0.8ms | ActiveRecord: 5.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$Q5s83u/A8CnwmJS4OmzbpuZpde2jUjxVA4XLTSL9znq89eaiAOi/a"], ["created_at", "2015-03-02 05:10:13.346264"], ["updated_at", "2015-03-02 05:10:13.346264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.348004"], ["user_id", "6830996e-c09a-11e4-bee1-705681abff85"], ["created_at", "2015-03-02 05:10:13.348935"], ["updated_at", "2015-03-02 05:10:13.348935"], ["token", "RRGJfkQOMdQ6mnWoAnPVJZ2nvc2m9LUc4KHAmTANn4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.352557"], ["updated_at", "2015-03-02 05:10:13.352557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6830996e-c09a-11e4-bee1-705681abff85' AND "clubhouse_memberships"."organization_id" = '68318d6a-c09a-11e4-b992-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6830996e-c09a-11e4-bee1-705681abff85"], ["organization_id", "68318d6a-c09a-11e4-b992-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.356218"], ["updated_at", "2015-03-02 05:10:13.356218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '68318d6a-c09a-11e4-b992-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "68318d6a-c09a-11e4-b992-705681abff85"], ["created_at", "2015-03-02 05:10:13.362115"], ["updated_at", "2015-03-02 05:10:13.362115"], ["token", "VxcaLmtjlAiv2H9jWnhPCaO5gl3ke_e78zMjQsy7_Qw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.370589' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RRGJfkQOMdQ6mnWoAnPVJZ2nvc2m9LUc4KHAmTANn4Y"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.372443"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.374225"], ["id", "68310d18-c09a-11e4-89c2-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6830996e-c09a-11e4-bee1-705681abff85"]] Clubhouse::Organization Load (2.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6830996e-c09a-11e4-bee1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6830996e-c09a-11e4-bee1-705681abff85' LIMIT 1 [["organization_id", "68318d6a-c09a-11e4-b992-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68318d6a-c09a-11e4-b992-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '68318d6a-c09a-11e4-b992-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$twptjCLwRZlH.c6OacCv..dzLnBeJFIwhNRJyX97Pl20hcxVktkJi"], ["created_at", "2015-03-02 05:10:13.400077"], ["updated_at", "2015-03-02 05:10:13.400077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.402239"], ["user_id", "6838d5f2-c09a-11e4-8880-705681abff85"], ["created_at", "2015-03-02 05:10:13.403941"], ["updated_at", "2015-03-02 05:10:13.403941"], ["token", "3dVh4iGX5KgCs9lPj9h5Ss1Hf6og2c5nXvDz2nGSZx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.409107"], ["updated_at", "2015-03-02 05:10:13.409107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6838d5f2-c09a-11e4-8880-705681abff85' AND "clubhouse_memberships"."organization_id" = '683a3348-c09a-11e4-aed3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6838d5f2-c09a-11e4-8880-705681abff85"], ["organization_id", "683a3348-c09a-11e4-aed3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.413092"], ["updated_at", "2015-03-02 05:10:13.413092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '683a3348-c09a-11e4-aed3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "683a3348-c09a-11e4-aed3-705681abff85"], ["created_at", "2015-03-02 05:10:13.416629"], ["updated_at", "2015-03-02 05:10:13.416629"], ["token", "6rG2Sxb09DiQNBQ6KwQ1G-g7fXjhuZiHYQCqFgc2je8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$cex09bGwVfQrGuxEbN7.xu1Frr6HR/KqtK33ls6IP5k/DWXPfC1wm"], ["created_at", "2015-03-02 05:10:13.421676"], ["updated_at", "2015-03-02 05:10:13.421676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.424873"], ["updated_at", "2015-03-02 05:10:13.424873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '683c1c76-c09a-11e4-90d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '683c93f4-c09a-11e4-88c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "683c1c76-c09a-11e4-90d3-705681abff85"], ["organization_id", "683c93f4-c09a-11e4-88c6-705681abff85"], ["created_at", "2015-03-02 05:10:13.428301"], ["updated_at", "2015-03-02 05:10:13.428301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$xGh1WqoaCqESdW4sV7UFQulcYQ4DPJTYzGCd0rEjv.qpwcEHAEtlm"], ["created_at", "2015-03-02 05:10:13.442580"], ["updated_at", "2015-03-02 05:10:13.442580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.451368"], ["user_id", "683f6b7e-c09a-11e4-8307-705681abff85"], ["created_at", "2015-03-02 05:10:13.452447"], ["updated_at", "2015-03-02 05:10:13.452447"], ["token", "lciofEatGhY9mEE5TzO9j32QVRcOdn3-c0obY8NmYCw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.456192"], ["updated_at", "2015-03-02 05:10:13.456192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '683f6b7e-c09a-11e4-8307-705681abff85' AND "clubhouse_memberships"."organization_id" = '68415cfe-c09a-11e4-a955-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "683f6b7e-c09a-11e4-8307-705681abff85"], ["organization_id", "68415cfe-c09a-11e4-a955-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.459630"], ["updated_at", "2015-03-02 05:10:13.459630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '68415cfe-c09a-11e4-a955-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "68415cfe-c09a-11e4-a955-705681abff85"], ["created_at", "2015-03-02 05:10:13.463076"], ["updated_at", "2015-03-02 05:10:13.463076"], ["token", "lsycv_wYCThaQRRHz0OoUXi2C50myYx-5Pfk-yzQSrE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$7QX/fLwVmpxuCXclczGHI.r/plURXwoi.unHxIHQoW8W/b7V1soX2"], ["created_at", "2015-03-02 05:10:13.467900"], ["updated_at", "2015-03-02 05:10:13.467900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.471634"], ["updated_at", "2015-03-02 05:10:13.471634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68432d86-c09a-11e4-ab40-705681abff85' AND "clubhouse_memberships"."organization_id" = '6843babc-c09a-11e4-a6c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68432d86-c09a-11e4-ab40-705681abff85"], ["organization_id", "6843babc-c09a-11e4-a6c6-705681abff85"], ["created_at", "2015-03-02 05:10:13.475357"], ["updated_at", "2015-03-02 05:10:13.475357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.480863' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lciofEatGhY9mEE5TzO9j32QVRcOdn3-c0obY8NmYCw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.482398"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.483552"], ["id", "6840d63a-c09a-11e4-a151-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "683f6b7e-c09a-11e4-8307-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "683f6b7e-c09a-11e4-8307-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '683f6b7e-c09a-11e4-8307-705681abff85' LIMIT 1 [["organization_id", "68415cfe-c09a-11e4-a955-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "68415cfe-c09a-11e4-a955-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('68415cfe-c09a-11e4-a955-705681abff85') Completed 200 OK in 11ms (Views: 2.5ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$/C8WYTMxYueU/IrzF7cF4.DCm2e3gqd7uka3qsRJxcjXgWohDM9nG"], ["created_at", "2015-03-02 05:10:13.498557"], ["updated_at", "2015-03-02 05:10:13.498557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.500337"], ["user_id", "6847da7a-c09a-11e4-a015-705681abff85"], ["created_at", "2015-03-02 05:10:13.501094"], ["updated_at", "2015-03-02 05:10:13.501094"], ["token", "P8svspIGR4p0CftopBo_J4mT8DoFNtWR2rdiKaKptAY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.504734"], ["updated_at", "2015-03-02 05:10:13.504734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6847da7a-c09a-11e4-a015-705681abff85' AND "clubhouse_memberships"."organization_id" = '6848c412-c09a-11e4-894b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6847da7a-c09a-11e4-a015-705681abff85"], ["organization_id", "6848c412-c09a-11e4-894b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.508086"], ["updated_at", "2015-03-02 05:10:13.508086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '6848c412-c09a-11e4-894b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "6848c412-c09a-11e4-894b-705681abff85"], ["created_at", "2015-03-02 05:10:13.511937"], ["updated_at", "2015-03-02 05:10:13.511937"], ["token", "drUJnqbEb18A0apQf3QDDvfeDkceCUTbVvA1x9iRqog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$Kv5kFF/mhmuNPlhL/oMaBOAUsL.3tMEQ21uenGhIl1fry9vynutnG"], ["created_at", "2015-03-02 05:10:13.523260"], ["updated_at", "2015-03-02 05:10:13.523260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.525079"], ["user_id", "684b9dc2-c09a-11e4-a8c2-705681abff85"], ["created_at", "2015-03-02 05:10:13.525906"], ["updated_at", "2015-03-02 05:10:13.525906"], ["token", "LFlTNLnWpsEHbDQF5QwpPUoc0Qywm8O2TvCR0zbVmWI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.529960"], ["updated_at", "2015-03-02 05:10:13.529960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '684b9dc2-c09a-11e4-a8c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '684caa5a-c09a-11e4-9516-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "684b9dc2-c09a-11e4-a8c2-705681abff85"], ["organization_id", "684caa5a-c09a-11e4-9516-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.534341"], ["updated_at", "2015-03-02 05:10:13.534341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '684caa5a-c09a-11e4-9516-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "684caa5a-c09a-11e4-9516-705681abff85"], ["created_at", "2015-03-02 05:10:13.538152"], ["updated_at", "2015-03-02 05:10:13.538152"], ["token", "8ICVSzAruy9xLPMHKZQAv072OVZHMzWR_hHTPYRJTLI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/684de4c4-c09a-11e4-88fc-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"684de4c4-c09a-11e4-88fc-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.545143' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LFlTNLnWpsEHbDQF5QwpPUoc0Qywm8O2TvCR0zbVmWI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.547027"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.548052"], ["id", "684c0c26-c09a-11e4-ad6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "684b9dc2-c09a-11e4-a8c2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "684b9dc2-c09a-11e4-a8c2-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '684b9dc2-c09a-11e4-a8c2-705681abff85' LIMIT 1 [["organization_id", "684caa5a-c09a-11e4-9516-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "684caa5a-c09a-11e4-9516-705681abff85"], ["id", "684de4c4-c09a-11e4-88fc-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "684de4c4-c09a-11e4-88fc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$xIct85RqFZLeydY51g13dOVmfW.SEKFbwLjR9edOAe7WV2xGvJAey"], ["created_at", "2015-03-02 05:10:13.563726"], ["updated_at", "2015-03-02 05:10:13.563726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.565508"], ["user_id", "6851c94a-c09a-11e4-bdb5-705681abff85"], ["created_at", "2015-03-02 05:10:13.566345"], ["updated_at", "2015-03-02 05:10:13.566345"], ["token", "T2MAnGUmB8ILfm_MH_AmXIgyhPlEl_Zm6TMDpL-Tpl8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.570104"], ["updated_at", "2015-03-02 05:10:13.570104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6851c94a-c09a-11e4-bdb5-705681abff85' AND "clubhouse_memberships"."organization_id" = '6852be4a-c09a-11e4-b7b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6851c94a-c09a-11e4-bdb5-705681abff85"], ["organization_id", "6852be4a-c09a-11e4-b7b2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.573713"], ["updated_at", "2015-03-02 05:10:13.573713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '6852be4a-c09a-11e4-b7b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "6852be4a-c09a-11e4-b7b2-705681abff85"], ["created_at", "2015-03-02 05:10:13.577036"], ["updated_at", "2015-03-02 05:10:13.577036"], ["token", "RxYdMZlwZovQpzk53CVyvROCbR8s5GECOwrJjtQiUcA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$b.XpT6HBTSQgug2I1lk5OuVoVw6kfIl1osKTiM7xpqqF5jGBPRrdm"], ["created_at", "2015-03-02 05:10:13.587835"], ["updated_at", "2015-03-02 05:10:13.587835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.589501"], ["user_id", "6855770c-c09a-11e4-9af1-705681abff85"], ["created_at", "2015-03-02 05:10:13.590244"], ["updated_at", "2015-03-02 05:10:13.590244"], ["token", "ADJfFMmHTsiyTxBKmPZ6LGJOUVj1Xpavz9v_z4tM-eA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.594274"], ["updated_at", "2015-03-02 05:10:13.594274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6855770c-c09a-11e4-9af1-705681abff85' AND "clubhouse_memberships"."organization_id" = '68567832-c09a-11e4-921e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6855770c-c09a-11e4-9af1-705681abff85"], ["organization_id", "68567832-c09a-11e4-921e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:10:13.597995"], ["updated_at", "2015-03-02 05:10:13.597995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '68567832-c09a-11e4-921e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "68567832-c09a-11e4-921e-705681abff85"], ["created_at", "2015-03-02 05:10:13.601667"], ["updated_at", "2015-03-02 05:10:13.601667"], ["token", "BvZ53QsXQ9u_9B9zsaXMjvEsshL7kX7md7iKQbCrfOg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/68579622-c09a-11e4-88e2-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"68579622-c09a-11e4-88e2-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.607380' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ADJfFMmHTsiyTxBKmPZ6LGJOUVj1Xpavz9v_z4tM-eA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.609163"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.610262"], ["id", "6855ddd2-c09a-11e4-9ed8-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6855770c-c09a-11e4-9af1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6855770c-c09a-11e4-9af1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6855770c-c09a-11e4-9af1-705681abff85' LIMIT 1 [["organization_id", "68567832-c09a-11e4-921e-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "68567832-c09a-11e4-921e-705681abff85"], ["id", "68579622-c09a-11e4-88e2-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68567832-c09a-11e4-921e-705681abff85"]] Completed 200 OK in 12ms (Views: 1.6ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$blUmigil7NoRlnmm51uemOZPFP8wTObNDnc0iJdZqXkE/ecCoheau"], ["created_at", "2015-03-02 05:10:13.626575"], ["updated_at", "2015-03-02 05:10:13.626575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.628512"], ["user_id", "685b6662-c09a-11e4-a265-705681abff85"], ["created_at", "2015-03-02 05:10:13.629313"], ["updated_at", "2015-03-02 05:10:13.629313"], ["token", "ocXiNVlu35RrVNePtn0TFcrB1eIdBwMzlpEQmwC5nLA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.632766"], ["updated_at", "2015-03-02 05:10:13.632766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '685b6662-c09a-11e4-a265-705681abff85' AND "clubhouse_memberships"."organization_id" = '685c4f14-c09a-11e4-8e88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "685b6662-c09a-11e4-a265-705681abff85"], ["organization_id", "685c4f14-c09a-11e4-8e88-705681abff85"], ["created_at", "2015-03-02 05:10:13.635973"], ["updated_at", "2015-03-02 05:10:13.635973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$tobh6WVwWav./DY5/pcsc.zSzeNL2pPdZzjsfbAkHuvHiuhKFLriq"], ["created_at", "2015-03-02 05:10:13.652784"], ["updated_at", "2015-03-02 05:10:13.652784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.654418"], ["user_id", "685f5fce-c09a-11e4-b2c9-705681abff85"], ["created_at", "2015-03-02 05:10:13.655238"], ["updated_at", "2015-03-02 05:10:13.655238"], ["token", "v5bM2LL80a7M6_QKkhQTqo-doRTABJZmkOCtJnzU2_A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.659510"], ["updated_at", "2015-03-02 05:10:13.659510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '685f5fce-c09a-11e4-b2c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '68606dba-c09a-11e4-ac6c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "685f5fce-c09a-11e4-b2c9-705681abff85"], ["organization_id", "68606dba-c09a-11e4-ac6c-705681abff85"], ["created_at", "2015-03-02 05:10:13.663656"], ["updated_at", "2015-03-02 05:10:13.663656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.668649' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v5bM2LL80a7M6_QKkhQTqo-doRTABJZmkOCtJnzU2_A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.669994"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.671767"], ["id", "685fd08a-c09a-11e4-ac92-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "685f5fce-c09a-11e4-b2c9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.678861"], ["updated_at", "2015-03-02 05:10:13.678861"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68635be2-c09a-11e4-8ccf-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '685f5fce-c09a-11e4-b2c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '68635be2-c09a-11e4-8ccf-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "685f5fce-c09a-11e4-b2c9-705681abff85"], ["admin", "t"], ["organization_id", "68635be2-c09a-11e4-8ccf-705681abff85"], ["created_at", "2015-03-02 05:10:13.683083"], ["updated_at", "2015-03-02 05:10:13.683083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.5ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$/Ym8NvecxyMwohmG.fSa6OUAS5sV.3rNgOcCYghsT/cxTXsEZfEAi"], ["created_at", "2015-03-02 05:10:13.691276"], ["updated_at", "2015-03-02 05:10:13.691276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.692892"], ["user_id", "68653dea-c09a-11e4-8a5f-705681abff85"], ["created_at", "2015-03-02 05:10:13.693699"], ["updated_at", "2015-03-02 05:10:13.693699"], ["token", "zurUDdbbxdv8fnrruH0ZrwHavfHLmFEgBSAXaXnDSuI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.697783"], ["updated_at", "2015-03-02 05:10:13.697783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68653dea-c09a-11e4-8a5f-705681abff85' AND "clubhouse_memberships"."organization_id" = '68663ba0-c09a-11e4-949c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68653dea-c09a-11e4-8a5f-705681abff85"], ["organization_id", "68663ba0-c09a-11e4-949c-705681abff85"], ["created_at", "2015-03-02 05:10:13.702017"], ["updated_at", "2015-03-02 05:10:13.702017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.709322' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zurUDdbbxdv8fnrruH0ZrwHavfHLmFEgBSAXaXnDSuI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.711282"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.712647"], ["id", "6865a334-c09a-11e4-81cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68653dea-c09a-11e4-8a5f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$1H8AkNrEMr9J6EE3XSHHfuaeGLQpuIDXvlyBa3GlpROdLG1oLW38q"], ["created_at", "2015-03-02 05:10:13.725842"], ["updated_at", "2015-03-02 05:10:13.725842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.727583"], ["user_id", "686a867e-c09a-11e4-ace2-705681abff85"], ["created_at", "2015-03-02 05:10:13.728419"], ["updated_at", "2015-03-02 05:10:13.728419"], ["token", "WfUbZMYnmYwBzlutPhmj7nNlXeFkFBgREdfj3jpoWLg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.734127"], ["updated_at", "2015-03-02 05:10:13.734127"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '686a867e-c09a-11e4-ace2-705681abff85' AND "clubhouse_memberships"."organization_id" = '686bcb56-c09a-11e4-97de-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "686a867e-c09a-11e4-ace2-705681abff85"], ["organization_id", "686bcb56-c09a-11e4-97de-705681abff85"], ["created_at", "2015-03-02 05:10:13.740242"], ["updated_at", "2015-03-02 05:10:13.740242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$q5Y2XSbktdO2hVKY/Jb4xuqm9RVv3lv/NGVs0Q0sZ3B4ren2JreI2"], ["created_at", "2015-03-02 05:10:13.756663"], ["updated_at", "2015-03-02 05:10:13.756663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.758409"], ["user_id", "686f37e6-c09a-11e4-b39c-705681abff85"], ["created_at", "2015-03-02 05:10:13.759177"], ["updated_at", "2015-03-02 05:10:13.759177"], ["token", "32blmFwGeSA9gAJ-DF6hzf2rrxvi3w5CMZrqxiPUPr0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.763018"], ["updated_at", "2015-03-02 05:10:13.763018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '686f37e6-c09a-11e4-b39c-705681abff85' AND "clubhouse_memberships"."organization_id" = '68703402-c09a-11e4-a2e4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "686f37e6-c09a-11e4-b39c-705681abff85"], ["organization_id", "68703402-c09a-11e4-a2e4-705681abff85"], ["created_at", "2015-03-02 05:10:13.767909"], ["updated_at", "2015-03-02 05:10:13.767909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/68703402-c09a-11e4-a2e4-705681abff85" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"68703402-c09a-11e4-a2e4-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.772739' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "32blmFwGeSA9gAJ-DF6hzf2rrxvi3w5CMZrqxiPUPr0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.774280"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.775268"], ["id", "686fa78a-c09a-11e4-9136-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "686f37e6-c09a-11e4-b39c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "686f37e6-c09a-11e4-b39c-705681abff85"], ["id", "68703402-c09a-11e4-a2e4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "68703402-c09a-11e4-a2e4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$tpT8DwZGKxRoQfQwfOQzwOsvKLN0ta7b011EnvcjpMXuU7Y7TeVbq"], ["created_at", "2015-03-02 05:10:13.788130"], ["updated_at", "2015-03-02 05:10:13.788130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.790081"], ["user_id", "68740f46-c09a-11e4-abc7-705681abff85"], ["created_at", "2015-03-02 05:10:13.790873"], ["updated_at", "2015-03-02 05:10:13.790873"], ["token", "0vLvJtpGcOTHiSou7aBRkjl2GDQuxdDYRga_T98uJoE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.795034"], ["updated_at", "2015-03-02 05:10:13.795034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68740f46-c09a-11e4-abc7-705681abff85' AND "clubhouse_memberships"."organization_id" = '68752c6e-c09a-11e4-83d0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68740f46-c09a-11e4-abc7-705681abff85"], ["organization_id", "68752c6e-c09a-11e4-83d0-705681abff85"], ["created_at", "2015-03-02 05:10:13.799280"], ["updated_at", "2015-03-02 05:10:13.799280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$XgKRiGBAM0SOZv8Y2qmWqOFMgCJoHdSXF7rj0GrsSx0IDIeI.YVI."], ["created_at", "2015-03-02 05:10:13.809366"], ["updated_at", "2015-03-02 05:10:13.809366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.811803"], ["user_id", "687748d2-c09a-11e4-8e35-705681abff85"], ["created_at", "2015-03-02 05:10:13.812624"], ["updated_at", "2015-03-02 05:10:13.812624"], ["token", "c0JvkCISExifVv2fIYSoQDpvMuVsQTBjGodkixLmjRI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.816199"], ["updated_at", "2015-03-02 05:10:13.816199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '687748d2-c09a-11e4-8e35-705681abff85' AND "clubhouse_memberships"."organization_id" = '68784b06-c09a-11e4-91a1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "687748d2-c09a-11e4-8e35-705681abff85"], ["organization_id", "68784b06-c09a-11e4-91a1-705681abff85"], ["created_at", "2015-03-02 05:10:13.819540"], ["updated_at", "2015-03-02 05:10:13.819540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-12" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-12", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.825919' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "c0JvkCISExifVv2fIYSoQDpvMuVsQTBjGodkixLmjRI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.827576"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.828619"], ["id", "6877cb18-c09a-11e4-a52f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-12"]] Completed 200 OK in 7ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$8zlMo.zAs.vWmB.yOYUdJOXPbExVUUb5TfbmxRZKfxTzkJCU8nffW"], ["created_at", "2015-03-02 05:10:13.837899"], ["updated_at", "2015-03-02 05:10:13.837899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.841859"], ["user_id", "687b9e46-c09a-11e4-b62e-705681abff85"], ["created_at", "2015-03-02 05:10:13.842638"], ["updated_at", "2015-03-02 05:10:13.842638"], ["token", "aU92k6qCzQKUOUhWBzpDFK_YCFdsMjRzfF1sa57LVyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.847210"], ["updated_at", "2015-03-02 05:10:13.847210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '687b9e46-c09a-11e4-b62e-705681abff85' AND "clubhouse_memberships"."organization_id" = '687d11cc-c09a-11e4-aba2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "687b9e46-c09a-11e4-b62e-705681abff85"], ["organization_id", "687d11cc-c09a-11e4-aba2-705681abff85"], ["created_at", "2015-03-02 05:10:13.850993"], ["updated_at", "2015-03-02 05:10:13.850993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.856192' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aU92k6qCzQKUOUhWBzpDFK_YCFdsMjRzfF1sa57LVyo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.857560"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.858638"], ["id", "687c642a-c09a-11e4-9275-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$U/hdNK76DbaeOIIEiPtkquG1q/NMhcyBtlu6fDOIZwTBJtWklXZVe"], ["created_at", "2015-03-02 05:10:13.867363"], ["updated_at", "2015-03-02 05:10:13.867363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.869147"], ["user_id", "68801ec6-c09a-11e4-9569-705681abff85"], ["created_at", "2015-03-02 05:10:13.870053"], ["updated_at", "2015-03-02 05:10:13.870053"], ["token", "GKukF0yj55gk082PWLZEiPFC34g3xqZ8O8yhFaEeMKw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.873855"], ["updated_at", "2015-03-02 05:10:13.873855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68801ec6-c09a-11e4-9569-705681abff85' AND "clubhouse_memberships"."organization_id" = '68811984-c09a-11e4-afcb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68801ec6-c09a-11e4-9569-705681abff85"], ["organization_id", "68811984-c09a-11e4-afcb-705681abff85"], ["created_at", "2015-03-02 05:10:13.877797"], ["updated_at", "2015-03-02 05:10:13.877797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$n3ARdV/5qFRvoI0ZH3U4eeTip.Tzt3z/vmpBHxaFWtDKQC5wz3.j6"], ["created_at", "2015-03-02 05:10:13.888940"], ["updated_at", "2015-03-02 05:10:13.888940"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.891406"], ["user_id", "688368d8-c09a-11e4-8eef-705681abff85"], ["created_at", "2015-03-02 05:10:13.893018"], ["updated_at", "2015-03-02 05:10:13.893018"], ["token", "dT7phIQeVRo7MdSPOmS1eKfyWOw2o0eWXgNY0z9BRCo"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.898803"], ["updated_at", "2015-03-02 05:10:13.898803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '688368d8-c09a-11e4-8eef-705681abff85' AND "clubhouse_memberships"."organization_id" = '6884fdce-c09a-11e4-b74f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "688368d8-c09a-11e4-8eef-705681abff85"], ["organization_id", "6884fdce-c09a-11e4-b74f-705681abff85"], ["created_at", "2015-03-02 05:10:13.903102"], ["updated_at", "2015-03-02 05:10:13.903102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-15" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-15", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.908580' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dT7phIQeVRo7MdSPOmS1eKfyWOw2o0eWXgNY0z9BRCo"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.910233"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.911564"], ["id", "68841666-c09a-11e4-a666-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "688368d8-c09a-11e4-8eef-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "688368d8-c09a-11e4-8eef-705681abff85"], ["name", "org-15"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$0vq3Fp9bx6Q.bzMsYq294edEhiiJIk5y/X2Lg5N1WtwLPlfcNM52e"], ["created_at", "2015-03-02 05:10:13.924272"], ["updated_at", "2015-03-02 05:10:13.924272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.926196"], ["user_id", "6888d1a6-c09a-11e4-9056-705681abff85"], ["created_at", "2015-03-02 05:10:13.927257"], ["updated_at", "2015-03-02 05:10:13.927257"], ["token", "65dsd_QnNdzJwh9Y_YVCp0o6KJx7d87Cgl5bvpjGuD0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.931651"], ["updated_at", "2015-03-02 05:10:13.931651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6888d1a6-c09a-11e4-9056-705681abff85' AND "clubhouse_memberships"."organization_id" = '6889f234-c09a-11e4-a1ed-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6888d1a6-c09a-11e4-9056-705681abff85"], ["organization_id", "6889f234-c09a-11e4-a1ed-705681abff85"], ["created_at", "2015-03-02 05:10:13.936020"], ["updated_at", "2015-03-02 05:10:13.936020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$1OGokTgEuEcOJ8MZ9E3b8OIJinei8AD8FPSZVebQRhyYnBaMxrpSy"], ["created_at", "2015-03-02 05:10:13.950449"], ["updated_at", "2015-03-02 05:10:13.950449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.952181"], ["user_id", "688ccf0e-c09a-11e4-b052-705681abff85"], ["created_at", "2015-03-02 05:10:13.952954"], ["updated_at", "2015-03-02 05:10:13.952954"], ["token", "Fq3LjLfAFvEtB77WCwV5TiolVTivI_hqRxD0SCrmEyY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.956277"], ["updated_at", "2015-03-02 05:10:13.956277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '688ccf0e-c09a-11e4-b052-705681abff85' AND "clubhouse_memberships"."organization_id" = '688dab2c-c09a-11e4-bb3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "688ccf0e-c09a-11e4-b052-705681abff85"], ["organization_id", "688dab2c-c09a-11e4-bb3e-705681abff85"], ["created_at", "2015-03-02 05:10:13.959474"], ["updated_at", "2015-03-02 05:10:13.959474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/688dab2c-c09a-11e4-bb3e-705681abff85" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"688dab2c-c09a-11e4-bb3e-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:13.964670' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Fq3LjLfAFvEtB77WCwV5TiolVTivI_hqRxD0SCrmEyY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:13.966062"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:13.967029"], ["id", "688d314c-c09a-11e4-8894-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "688ccf0e-c09a-11e4-b052-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "688ccf0e-c09a-11e4-b052-705681abff85"], ["id", "688dab2c-c09a-11e4-bb3e-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$ITQrswTWppWhTvOIwZm0peBqVCKg1gud4E1b/StgrQitcnPgj/W9G"], ["created_at", "2015-03-02 05:10:13.977628"], ["updated_at", "2015-03-02 05:10:13.977628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:13.979423"], ["user_id", "6890f4a8-c09a-11e4-9539-705681abff85"], ["created_at", "2015-03-02 05:10:13.980221"], ["updated_at", "2015-03-02 05:10:13.980221"], ["token", "RR-svQPuJeNz-G6NqYf0sSjgohLvufxHbYJA8UTlsq8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:13.984098"], ["updated_at", "2015-03-02 05:10:13.984098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6890f4a8-c09a-11e4-9539-705681abff85' AND "clubhouse_memberships"."organization_id" = '6891ea98-c09a-11e4-8016-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6890f4a8-c09a-11e4-9539-705681abff85"], ["organization_id", "6891ea98-c09a-11e4-8016-705681abff85"], ["created_at", "2015-03-02 05:10:13.987664"], ["updated_at", "2015-03-02 05:10:13.987664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 21:10:13 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$4pcblC0cbzqVtPnKxxxoiOMfgq4aTIpzJ42r60taY.fD8UbgzRc/y"], ["created_at", "2015-03-02 05:10:13.998497"], ["updated_at", "2015-03-02 05:10:13.998497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:14.000186"], ["user_id", "6894202e-c09a-11e4-b1e6-705681abff85"], ["created_at", "2015-03-02 05:10:14.000923"], ["updated_at", "2015-03-02 05:10:14.000923"], ["token", "UwLh-A3jUipqVa7Ifi4hsAI7wL-AbQe6emMCc1z7CMA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.004188"], ["updated_at", "2015-03-02 05:10:14.004188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6894202e-c09a-11e4-b1e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6894fd28-c09a-11e4-b37f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6894202e-c09a-11e4-b1e6-705681abff85"], ["organization_id", "6894fd28-c09a-11e4-b37f-705681abff85"], ["created_at", "2015-03-02 05:10:14.007613"], ["updated_at", "2015-03-02 05:10:14.007613"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/6894fd28-c09a-11e4-b37f-705681abff85" for 127.0.0.1 at 2015-03-01 21:10:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"6894fd28-c09a-11e4-b37f-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:14.013107' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UwLh-A3jUipqVa7Ifi4hsAI7wL-AbQe6emMCc1z7CMA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:14.015364"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:14.016654"], ["id", "689481f4-c09a-11e4-9ebc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6894202e-c09a-11e4-b1e6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6894202e-c09a-11e4-b1e6-705681abff85"], ["id", "6894fd28-c09a-11e4-b37f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6894fd28-c09a-11e4-b37f-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:10:14.025532"], ["id", "6894fd28-c09a-11e4-b37f-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$gXMxVrejfnWbimuD1gQcPuZtqBUSmWFz8z/e8oFzRxz4qcGAjmhA6"], ["created_at", "2015-03-02 05:10:14.033978"], ["updated_at", "2015-03-02 05:10:14.033978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:14.035778"], ["user_id", "68998dc0-c09a-11e4-8cc9-705681abff85"], ["created_at", "2015-03-02 05:10:14.036547"], ["updated_at", "2015-03-02 05:10:14.036547"], ["token", "LX2PRuESMJeF2cwdzPcZByU47lLAFt7Qws3f9-EmPWo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.039859"], ["updated_at", "2015-03-02 05:10:14.039859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68998dc0-c09a-11e4-8cc9-705681abff85' AND "clubhouse_memberships"."organization_id" = '689a6c68-c09a-11e4-9187-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68998dc0-c09a-11e4-8cc9-705681abff85"], ["organization_id", "689a6c68-c09a-11e4-9187-705681abff85"], ["created_at", "2015-03-02 05:10:14.043009"], ["updated_at", "2015-03-02 05:10:14.043009"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/689a6c68-c09a-11e4-9187-705681abff85" for 127.0.0.1 at 2015-03-01 21:10:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"689a6c68-c09a-11e4-9187-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:14.049527' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LX2PRuESMJeF2cwdzPcZByU47lLAFt7Qws3f9-EmPWo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:14.051518"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:14.052892"], ["id", "6899f24c-c09a-11e4-ba6a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68998dc0-c09a-11e4-8cc9-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "68998dc0-c09a-11e4-8cc9-705681abff85"], ["id", "689a6c68-c09a-11e4-9187-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '689a6c68-c09a-11e4-9187-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$g6B8OtIobrg0nhKbczgCbuqAlv/AvXNitK84DH0G498QvygliNp.6"], ["created_at", "2015-03-02 05:10:14.066293"], ["updated_at", "2015-03-02 05:10:14.066293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:14.068017"], ["user_id", "689e7b3c-c09a-11e4-8b03-705681abff85"], ["created_at", "2015-03-02 05:10:14.068793"], ["updated_at", "2015-03-02 05:10:14.068793"], ["token", "0Iedweb4Mj3HH70uRceDVPAkHkcLGgqDMaGMqmP5Qq4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.072055"], ["updated_at", "2015-03-02 05:10:14.072055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '689e7b3c-c09a-11e4-8b03-705681abff85' AND "clubhouse_memberships"."organization_id" = '689f55fc-c09a-11e4-af57-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "689e7b3c-c09a-11e4-8b03-705681abff85"], ["organization_id", "689f55fc-c09a-11e4-af57-705681abff85"], ["created_at", "2015-03-02 05:10:14.075312"], ["updated_at", "2015-03-02 05:10:14.075312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$pTULFR4LgBKlk8Wh9TdA/uhjBS6s4w80rPZlRPMiENM9KBWfquiaC"], ["created_at", "2015-03-02 05:10:14.080780"], ["updated_at", "2015-03-02 05:10:14.080780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.084041"], ["updated_at", "2015-03-02 05:10:14.084041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68a0ae98-c09a-11e4-8dd5-705681abff85' AND "clubhouse_memberships"."organization_id" = '68a129cc-c09a-11e4-a63b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68a0ae98-c09a-11e4-8dd5-705681abff85"], ["organization_id", "68a129cc-c09a-11e4-a63b-705681abff85"], ["created_at", "2015-03-02 05:10:14.087452"], ["updated_at", "2015-03-02 05:10:14.087452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:10:14 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$HdNxzk8wlSU38CgYChRW0eOEqMOcCiZ3MgiJ/V6ZVPiJMxVQbSiw2"], ["created_at", "2015-03-02 05:10:14.098128"], ["updated_at", "2015-03-02 05:10:14.098128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:14.099926"], ["user_id", "68a3553a-c09a-11e4-af6d-705681abff85"], ["created_at", "2015-03-02 05:10:14.100782"], ["updated_at", "2015-03-02 05:10:14.100782"], ["token", "J9uQgoFmaorIdt22Ne-lonZLAAVN7caLzbNilBOALs4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.104507"], ["updated_at", "2015-03-02 05:10:14.104507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68a3553a-c09a-11e4-af6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '68a44a26-c09a-11e4-97ac-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68a3553a-c09a-11e4-af6d-705681abff85"], ["organization_id", "68a44a26-c09a-11e4-97ac-705681abff85"], ["created_at", "2015-03-02 05:10:14.107723"], ["updated_at", "2015-03-02 05:10:14.107723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$Pa5tnnQSmJo9jVjddNSdYOzR/w94DzHqZjtviUKQB9BQfCrkJiI72"], ["created_at", "2015-03-02 05:10:14.112608"], ["updated_at", "2015-03-02 05:10:14.112608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.117454"], ["updated_at", "2015-03-02 05:10:14.117454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68a5935e-c09a-11e4-9904-705681abff85' AND "clubhouse_memberships"."organization_id" = '68a66400-c09a-11e4-a197-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68a5935e-c09a-11e4-9904-705681abff85"], ["organization_id", "68a66400-c09a-11e4-a197-705681abff85"], ["created_at", "2015-03-02 05:10:14.121934"], ["updated_at", "2015-03-02 05:10:14.121934"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:10:14 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:14.129946' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "J9uQgoFmaorIdt22Ne-lonZLAAVN7caLzbNilBOALs4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:14.133307"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:14.134914"], ["id", "68a3c290-c09a-11e4-ba08-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68a3553a-c09a-11e4-af6d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "68a3553a-c09a-11e4-af6d-705681abff85"]] Completed 200 OK in 11ms (Views: 2.2ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$OOQ49GSkBvOwTBbY7S77RO70cZjgkezbHyja6bPUdXuY6a7Anplv."], ["created_at", "2015-03-02 05:10:14.147073"], ["updated_at", "2015-03-02 05:10:14.147073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:14.148810"], ["user_id", "68aacc7a-c09a-11e4-94e0-705681abff85"], ["created_at", "2015-03-02 05:10:14.149607"], ["updated_at", "2015-03-02 05:10:14.149607"], ["token", "jvGkfvx8U-kpHnWI7bpYp8QAummkgcnE73yKSBvOsJY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.153157"], ["updated_at", "2015-03-02 05:10:14.153157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68aacc7a-c09a-11e4-94e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '68abb9dc-c09a-11e4-bc39-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68aacc7a-c09a-11e4-94e0-705681abff85"], ["organization_id", "68abb9dc-c09a-11e4-bc39-705681abff85"], ["created_at", "2015-03-02 05:10:14.156590"], ["updated_at", "2015-03-02 05:10:14.156590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 21:10:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$7TeJN4oAs7Vr.jhvq7.G6uamA0/mPHtS3J/w2rvlkh8/SLGxN9u6C"], ["created_at", "2015-03-02 05:10:14.167971"], ["updated_at", "2015-03-02 05:10:14.167971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:14.169538"], ["user_id", "68adfa94-c09a-11e4-a590-705681abff85"], ["created_at", "2015-03-02 05:10:14.170289"], ["updated_at", "2015-03-02 05:10:14.170289"], ["token", "HS6VmZoAsTMLsOQsqHt3ACquZ3g7VHGPfrcUpY838XM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.173835"], ["updated_at", "2015-03-02 05:10:14.173835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68adfa94-c09a-11e4-a590-705681abff85' AND "clubhouse_memberships"."organization_id" = '68aedcd4-c09a-11e4-8212-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68adfa94-c09a-11e4-a590-705681abff85"], ["organization_id", "68aedcd4-c09a-11e4-8212-705681abff85"], ["created_at", "2015-03-02 05:10:14.178083"], ["updated_at", "2015-03-02 05:10:14.178083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-26" for 127.0.0.1 at 2015-03-01 21:10:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-26", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:14.183911' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HS6VmZoAsTMLsOQsqHt3ACquZ3g7VHGPfrcUpY838XM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:14.185340"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:14.186370"], ["id", "68ae5ade-c09a-11e4-a152-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68adfa94-c09a-11e4-a590-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "68adfa94-c09a-11e4-a590-705681abff85"], ["name", "org-26"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '68aedcd4-c09a-11e4-8212-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:10:14.192050"], ["id", "68aedcd4-c09a-11e4-8212-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$i2.aSZy2K/0GzQnZK1BIQu/p2NQJYy689nveFLkZHJUucQ7kjkCA."], ["created_at", "2015-03-02 05:10:14.201211"], ["updated_at", "2015-03-02 05:10:14.201211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:14.203023"], ["user_id", "68b310ba-c09a-11e4-847c-705681abff85"], ["created_at", "2015-03-02 05:10:14.203848"], ["updated_at", "2015-03-02 05:10:14.203848"], ["token", "C7weGeVY8vQEd7hCqtf-_yRDfv4Vrd3tcHnpNoUn9bE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.207486"], ["updated_at", "2015-03-02 05:10:14.207486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68b310ba-c09a-11e4-847c-705681abff85' AND "clubhouse_memberships"."organization_id" = '68b3ffa2-c09a-11e4-bb93-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68b310ba-c09a-11e4-847c-705681abff85"], ["organization_id", "68b3ffa2-c09a-11e4-bb93-705681abff85"], ["created_at", "2015-03-02 05:10:14.210818"], ["updated_at", "2015-03-02 05:10:14.210818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-27" for 127.0.0.1 at 2015-03-01 21:10:14 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-27", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:14.215984' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "C7weGeVY8vQEd7hCqtf-_yRDfv4Vrd3tcHnpNoUn9bE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:14.217462"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:14.218580"], ["id", "68b37ca8-c09a-11e4-a2c5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68b310ba-c09a-11e4-847c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "68b310ba-c09a-11e4-847c-705681abff85"], ["name", "org-27"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '68b3ffa2-c09a-11e4-bb93-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$BcK1ApMeCe366JBoUPMLD.RdNv1nyHxfLZvOaSDd5geNiLtTi4gd."], ["created_at", "2015-03-02 05:10:14.248283"], ["updated_at", "2015-03-02 05:10:14.248283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:14.254649"], ["user_id", "68bab9fa-c09a-11e4-a933-705681abff85"], ["created_at", "2015-03-02 05:10:14.257576"], ["updated_at", "2015-03-02 05:10:14.257576"], ["token", "7v1JnXBh-UMxUsAWe3Mgfs8A6OMjF3B_1gPeJg3-ORY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.265610"], ["updated_at", "2015-03-02 05:10:14.265610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68bab9fa-c09a-11e4-a933-705681abff85' AND "clubhouse_memberships"."organization_id" = '68bd0f66-c09a-11e4-b895-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68bab9fa-c09a-11e4-a933-705681abff85"], ["organization_id", "68bd0f66-c09a-11e4-b895-705681abff85"], ["created_at", "2015-03-02 05:10:14.272456"], ["updated_at", "2015-03-02 05:10:14.272456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 21:10:14 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (13.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$HhYfD15MxSOoDCYvCrqNzu2kJcoUyNevYHPxDvth1bmreitd3zZia"], ["created_at", "2015-03-02 05:10:14.326650"], ["updated_at", "2015-03-02 05:10:14.326650"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:10:14.332995"], ["user_id", "68c6b502-c09a-11e4-b7b4-705681abff85"], ["created_at", "2015-03-02 05:10:14.334969"], ["updated_at", "2015-03-02 05:10:14.334969"], ["token", "PlCnfK0u3b2Mf16K6bQ4_s7Il_s4iYePPmnxvViGhs4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.344290"], ["updated_at", "2015-03-02 05:10:14.344290"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68c6b502-c09a-11e4-b7b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '68c8f57e-c09a-11e4-8738-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68c6b502-c09a-11e4-b7b4-705681abff85"], ["organization_id", "68c8f57e-c09a-11e4-8738-705681abff85"], ["created_at", "2015-03-02 05:10:14.352855"], ["updated_at", "2015-03-02 05:10:14.352855"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-29" for 127.0.0.1 at 2015-03-01 21:10:14 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-29", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:10:14.377574' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PlCnfK0u3b2Mf16K6bQ4_s7Il_s4iYePPmnxvViGhs4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:10:14.379815"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:10:14.381885"], ["id", "68c7aa2a-c09a-11e4-86a7-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68c6b502-c09a-11e4-b7b4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "68c6b502-c09a-11e4-b7b4-705681abff85"], ["name", "org-29"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "68c8f57e-c09a-11e4-8738-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.400099"], ["updated_at", "2015-03-02 05:10:14.400099"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '68d18022-c09a-11e4-95fb-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "68d18022-c09a-11e4-95fb-705681abff85"], ["created_at", "2015-03-02 05:10:14.408167"], ["updated_at", "2015-03-02 05:10:14.408167"], ["token", "6POqhf-tRrovXMNWdXdbS6NG8s6ilXGfbfdiLaYa9fI"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.6ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68d18022-c09a-11e4-95fb-705681abff85"]] Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '68d18022-c09a-11e4-95fb-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68d18022-c09a-11e4-95fb-705681abff86"]] Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '68d18022-c09a-11e4-95fb-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:10:14.453992"], ["updated_at", "2015-03-02 05:10:14.453992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '68d9aef0-c09a-11e4-b313-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "68d9aef0-c09a-11e4-b313-705681abff85"], ["created_at", "2015-03-02 05:10:14.458259"], ["updated_at", "2015-03-02 05:10:14.458259"], ["token", "XEKcWuFeljLc49mk-Ufb4BhlCOTmdVR8RWe03612JpY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$31Ndl9HkFGwD30AOdP9D3.5ER./UEMy1NQrrY90tdKLReAE/aVNR."], ["created_at", "2015-03-02 05:11:50.061486"], ["updated_at", "2015-03-02 05:11:50.061486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (7.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.096097"], ["user_id", "a1d9f26e-c09a-11e4-8547-705681abff85"], ["created_at", "2015-03-02 05:11:50.102492"], ["updated_at", "2015-03-02 05:11:50.102492"], ["token", "UGHTTLpPcj3pwQgUirB5eiKNLgcx1hujThcPSdtUAfM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.120016"], ["updated_at", "2015-03-02 05:11:50.120016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1d9f26e-c09a-11e4-8547-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1df2900-c09a-11e4-93a3-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1d9f26e-c09a-11e4-8547-705681abff85"], ["organization_id", "a1df2900-c09a-11e4-93a3-705681abff85"], ["created_at", "2015-03-02 05:11:50.131826"], ["updated_at", "2015-03-02 05:11:50.131826"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$NzMFErAxd8kxwD/NyBBsdusz5zjlqhdrrVqFdWGJpWM7XQA8FKTIW"], ["created_at", "2015-03-02 05:11:50.165693"], ["updated_at", "2015-03-02 05:11:50.165693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.167636"], ["user_id", "a1e6172e-c09a-11e4-9fc8-705681abff85"], ["created_at", "2015-03-02 05:11:50.168567"], ["updated_at", "2015-03-02 05:11:50.168567"], ["token", "nRzRvAPBk6alhB1Nr1hL3MBaNnefbCMqgP9mLLlmKdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.172634"], ["updated_at", "2015-03-02 05:11:50.172634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1e6172e-c09a-11e4-9fc8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1e7224a-c09a-11e4-9ef9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1e6172e-c09a-11e4-9fc8-705681abff85"], ["organization_id", "a1e7224a-c09a-11e4-9ef9-705681abff85"], ["created_at", "2015-03-02 05:11:50.176146"], ["updated_at", "2015-03-02 05:11:50.176146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-2" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.181839' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nRzRvAPBk6alhB1Nr1hL3MBaNnefbCMqgP9mLLlmKdA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.189858"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.191408"], ["id", "a1e68e84-c09a-11e4-9e5f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1e6172e-c09a-11e4-9fc8-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a1e6172e-c09a-11e4-9fc8-705681abff85"], ["name", "org-2"]] Completed 200 OK in 34ms (Views: 1.7ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$mhKIyqVCWXdw3.VL9ZYz7eKbWukNI2miPm64a0XBPGNeNbEQCSq06"], ["created_at", "2015-03-02 05:11:50.229113"], ["updated_at", "2015-03-02 05:11:50.229113"]]  (2.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.247859"], ["user_id", "a1efd764-c09a-11e4-bfa2-705681abff85"], ["created_at", "2015-03-02 05:11:50.249599"], ["updated_at", "2015-03-02 05:11:50.249599"], ["token", "3Y4QINJJRLwiovW6l6n9oNcm6LZiwZKSSC7pAfCa1PE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.258202"], ["updated_at", "2015-03-02 05:11:50.258202"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1efd764-c09a-11e4-bfa2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1f44b82-c09a-11e4-a3d5-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1efd764-c09a-11e4-bfa2-705681abff85"], ["organization_id", "a1f44b82-c09a-11e4-a3d5-705681abff85"], ["created_at", "2015-03-02 05:11:50.265685"], ["updated_at", "2015-03-02 05:11:50.265685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$siOqraSVr2VwHEkm.DRG5.nfTUHwvq4PQQnhS0Zm/OhCBZPOUMY8q"], ["created_at", "2015-03-02 05:11:50.273262"], ["updated_at", "2015-03-02 05:11:50.273262"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.278933"], ["updated_at", "2015-03-02 05:11:50.278933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1f68d52-c09a-11e4-86d6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1f78662-c09a-11e4-8b62-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1f68d52-c09a-11e4-86d6-705681abff85"], ["organization_id", "a1f78662-c09a-11e4-8b62-705681abff85"], ["created_at", "2015-03-02 05:11:50.289350"], ["updated_at", "2015-03-02 05:11:50.289350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$z9LwONeVfpHJ3nteXA7IFeTo4Sl4.6VtjYs/ycYhvwZ5d1zIgtfJK"], ["created_at", "2015-03-02 05:11:50.307413"], ["updated_at", "2015-03-02 05:11:50.307413"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.310694"], ["user_id", "a1fbcfa6-c09a-11e4-ab9b-705681abff85"], ["created_at", "2015-03-02 05:11:50.312138"], ["updated_at", "2015-03-02 05:11:50.312138"], ["token", "cy56_fVbLHCOr-rt-cfLpI83cr0dGoSQGCGAxpZXTH0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.318746"], ["updated_at", "2015-03-02 05:11:50.318746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1fbcfa6-c09a-11e4-ab9b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1fd912e-c09a-11e4-aa20-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1fbcfa6-c09a-11e4-ab9b-705681abff85"], ["organization_id", "a1fd912e-c09a-11e4-aa20-705681abff85"], ["created_at", "2015-03-02 05:11:50.323603"], ["updated_at", "2015-03-02 05:11:50.323603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$sy5lktK58ItRCVmgknb.ZON9yL22q9jRsN43ecqgJdk5rIe2YVLXG"], ["created_at", "2015-03-02 05:11:50.329333"], ["updated_at", "2015-03-02 05:11:50.329333"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.333646"], ["updated_at", "2015-03-02 05:11:50.333646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1ff13aa-c09a-11e4-b67b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1ffb652-c09a-11e4-a79f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1ff13aa-c09a-11e4-b67b-705681abff85"], ["organization_id", "a1ffb652-c09a-11e4-a79f-705681abff85"], ["created_at", "2015-03-02 05:11:50.338855"], ["updated_at", "2015-03-02 05:11:50.338855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.344663' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cy56_fVbLHCOr-rt-cfLpI83cr0dGoSQGCGAxpZXTH0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.346172"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.347318"], ["id", "a1fc9c7e-c09a-11e4-9c22-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1fbcfa6-c09a-11e4-ab9b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a1fbcfa6-c09a-11e4-ab9b-705681abff85"]] Completed 200 OK in 9ms (Views: 2.4ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$t9ZrAdU00nbxauIbBfTNF.iiOtQc92Ft1sgpFiHv9OtTr67BUFfEG"], ["created_at", "2015-03-02 05:11:50.359712"], ["updated_at", "2015-03-02 05:11:50.359712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.361647"], ["user_id", "a203b0ea-c09a-11e4-825b-705681abff85"], ["created_at", "2015-03-02 05:11:50.362563"], ["updated_at", "2015-03-02 05:11:50.362563"], ["token", "AjeogzDDd_8Co4zUstsnknk5fG8Cng2SkTK1DW03Y6o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.366471"], ["updated_at", "2015-03-02 05:11:50.366471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a203b0ea-c09a-11e4-825b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a204b526-c09a-11e4-8db3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a203b0ea-c09a-11e4-825b-705681abff85"], ["organization_id", "a204b526-c09a-11e4-8db3-705681abff85"], ["created_at", "2015-03-02 05:11:50.370749"], ["updated_at", "2015-03-02 05:11:50.370749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ORyD6b9tE5iYFZeltdhImetex1tN1.3ebJTOoNXDI6yDX6L.NuIUS"], ["created_at", "2015-03-02 05:11:50.381943"], ["updated_at", "2015-03-02 05:11:50.381943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.383786"], ["user_id", "a2071460-c09a-11e4-8932-705681abff85"], ["created_at", "2015-03-02 05:11:50.384687"], ["updated_at", "2015-03-02 05:11:50.384687"], ["token", "lv3LBEmbkdBV8TMdQgHTjLg4ybbq164fe4GLp7WZiGU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.388342"], ["updated_at", "2015-03-02 05:11:50.388342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2071460-c09a-11e4-8932-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2081414-c09a-11e4-9d94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2071460-c09a-11e4-8932-705681abff85"], ["organization_id", "a2081414-c09a-11e4-9d94-705681abff85"], ["created_at", "2015-03-02 05:11:50.392752"], ["updated_at", "2015-03-02 05:11:50.392752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-8" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-8", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.398249' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lv3LBEmbkdBV8TMdQgHTjLg4ybbq164fe4GLp7WZiGU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.399958"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.401088"], ["id", "a20787c4-c09a-11e4-9367-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-8"]] Completed 200 OK in 7ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$axk53tKnZkArOnqJ7JerAON4lUtDVbWj31TpvbRRvqq7fIYTcbFzS"], ["created_at", "2015-03-02 05:11:50.411014"], ["updated_at", "2015-03-02 05:11:50.411014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.412842"], ["user_id", "a20b864e-c09a-11e4-b8fe-705681abff85"], ["created_at", "2015-03-02 05:11:50.413672"], ["updated_at", "2015-03-02 05:11:50.413672"], ["token", "UPxjW-mjhDBb9IgSIQOSed1i9L3JNj1n9vIZl-_uMK8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.417544"], ["updated_at", "2015-03-02 05:11:50.417544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a20b864e-c09a-11e4-b8fe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a20c8238-c09a-11e4-b93e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a20b864e-c09a-11e4-b8fe-705681abff85"], ["organization_id", "a20c8238-c09a-11e4-b93e-705681abff85"], ["created_at", "2015-03-02 05:11:50.421149"], ["updated_at", "2015-03-02 05:11:50.421149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.426503' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UPxjW-mjhDBb9IgSIQOSed1i9L3JNj1n9vIZl-_uMK8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.427909"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.428906"], ["id", "a20bf17e-c09a-11e4-bf68-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$HhOt8n6frRLScE.kOPtE4uhSPQ9civ4h/Pu2YdQeIxWf7Dwojy7Pa"], ["created_at", "2015-03-02 05:11:50.437132"], ["updated_at", "2015-03-02 05:11:50.437132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.439074"], ["user_id", "a20f82d0-c09a-11e4-ab55-705681abff85"], ["created_at", "2015-03-02 05:11:50.439896"], ["updated_at", "2015-03-02 05:11:50.439896"], ["token", "GHG8bxhmV-3DeXolUNXjAoXDDpOG8kO6YiDTfmrywzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.444229"], ["updated_at", "2015-03-02 05:11:50.444229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a20f82d0-c09a-11e4-ab55-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a21092ce-c09a-11e4-b51b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a20f82d0-c09a-11e4-ab55-705681abff85"], ["organization_id", "a21092ce-c09a-11e4-b51b-705681abff85"], ["created_at", "2015-03-02 05:11:50.448252"], ["updated_at", "2015-03-02 05:11:50.448252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$vdDxvypgxIArygBQpeblWeXieHQig./AUNcQBoUuNUHuLEINZB46S"], ["created_at", "2015-03-02 05:11:50.460220"], ["updated_at", "2015-03-02 05:11:50.460220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.461972"], ["user_id", "a2130766-c09a-11e4-8fc5-705681abff85"], ["created_at", "2015-03-02 05:11:50.462858"], ["updated_at", "2015-03-02 05:11:50.462858"], ["token", "Q9_bH-hT7zK4ZKzqTqOPPRJ36Gg_-4H3QEtqz4Av-ek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.467176"], ["updated_at", "2015-03-02 05:11:50.467176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2130766-c09a-11e4-8fc5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2141548-c09a-11e4-ba6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2130766-c09a-11e4-8fc5-705681abff85"], ["organization_id", "a2141548-c09a-11e4-ba6f-705681abff85"], ["created_at", "2015-03-02 05:11:50.471204"], ["updated_at", "2015-03-02 05:11:50.471204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.476701' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Q9_bH-hT7zK4ZKzqTqOPPRJ36Gg_-4H3QEtqz4Av-ek"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.478252"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.479393"], ["id", "a2137a16-c09a-11e4-ac17-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2130766-c09a-11e4-8fc5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.487273"], ["updated_at", "2015-03-02 05:11:50.487273"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2188a6a-c09a-11e4-b413-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2130766-c09a-11e4-8fc5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2188a6a-c09a-11e4-b413-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2130766-c09a-11e4-8fc5-705681abff85"], ["admin", "t"], ["organization_id", "a2188a6a-c09a-11e4-b413-705681abff85"], ["created_at", "2015-03-02 05:11:50.503848"], ["updated_at", "2015-03-02 05:11:50.503848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 30ms (Views: 0.5ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$vu7aAV/Ev.Kn1vlrUE6yUO3W/TVFtD7JDBf8ZAqcAtZAc3Pxshe6W"], ["created_at", "2015-03-02 05:11:50.513238"], ["updated_at", "2015-03-02 05:11:50.513238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.515099"], ["user_id", "a21b1f8c-c09a-11e4-b3b0-705681abff85"], ["created_at", "2015-03-02 05:11:50.515910"], ["updated_at", "2015-03-02 05:11:50.515910"], ["token", "5EMI1erjJD5_RNix6gMx6cIXdwAiUtuq2p2IuQkpzFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.519690"], ["updated_at", "2015-03-02 05:11:50.519690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a21b1f8c-c09a-11e4-b3b0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a21c1f86-c09a-11e4-8cbf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a21b1f8c-c09a-11e4-b3b0-705681abff85"], ["organization_id", "a21c1f86-c09a-11e4-8cbf-705681abff85"], ["created_at", "2015-03-02 05:11:50.525545"], ["updated_at", "2015-03-02 05:11:50.525545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.532969' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5EMI1erjJD5_RNix6gMx6cIXdwAiUtuq2p2IuQkpzFI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.534562"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.535835"], ["id", "a21b89e0-c09a-11e4-ac4a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a21b1f8c-c09a-11e4-b3b0-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$KmZmrkSPTblPDyv57l1.iOjIn4PgH9YkjYpsMSXkKivES4b1SltoW"], ["created_at", "2015-03-02 05:11:50.557579"], ["updated_at", "2015-03-02 05:11:50.557579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.559374"], ["user_id", "a221e344-c09a-11e4-8f44-705681abff85"], ["created_at", "2015-03-02 05:11:50.560322"], ["updated_at", "2015-03-02 05:11:50.560322"], ["token", "tfPdoDed2ODgyU_q78nWQXZ11l9RhG21hq7CelV7vrc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.563950"], ["updated_at", "2015-03-02 05:11:50.563950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a221e344-c09a-11e4-8f44-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a222da60-c09a-11e4-a65a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a221e344-c09a-11e4-8f44-705681abff85"], ["organization_id", "a222da60-c09a-11e4-a65a-705681abff85"], ["created_at", "2015-03-02 05:11:50.567924"], ["updated_at", "2015-03-02 05:11:50.567924"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$0sMRt.cShlCCcGEeoo8V5uCKWAMNPCCY2NqOK9ymWaXMGQtVDTl1G"], ["created_at", "2015-03-02 05:11:50.581187"], ["updated_at", "2015-03-02 05:11:50.581187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.583087"], ["user_id", "a2257f04-c09a-11e4-b04a-705681abff85"], ["created_at", "2015-03-02 05:11:50.583873"], ["updated_at", "2015-03-02 05:11:50.583873"], ["token", "MLvDdOc8L59ZO_21Jx8C5I3k34JfVDl13JMGmWXaYWg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.588191"], ["updated_at", "2015-03-02 05:11:50.588191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2257f04-c09a-11e4-b04a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a22698d0-c09a-11e4-9176-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2257f04-c09a-11e4-b04a-705681abff85"], ["organization_id", "a22698d0-c09a-11e4-9176-705681abff85"], ["created_at", "2015-03-02 05:11:50.592333"], ["updated_at", "2015-03-02 05:11:50.592333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-14" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.598199' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MLvDdOc8L59ZO_21Jx8C5I3k34JfVDl13JMGmWXaYWg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.599901"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.600974"], ["id", "a225e8ae-c09a-11e4-8b81-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2257f04-c09a-11e4-b04a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2257f04-c09a-11e4-b04a-705681abff85"], ["name", "org-14"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a22698d0-c09a-11e4-9176-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$be6GAbXIEzqZ4q1BF2J0lunlrHc.8aJ0ptSBc9MuutnVvhYbQjMRe"], ["created_at", "2015-03-02 05:11:50.614792"], ["updated_at", "2015-03-02 05:11:50.614792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.616690"], ["user_id", "a22a9b1a-c09a-11e4-a41e-705681abff85"], ["created_at", "2015-03-02 05:11:50.617551"], ["updated_at", "2015-03-02 05:11:50.617551"], ["token", "B-GXQpqRbOBrHW3CN2gDNOaQgBbSjDt8SKBozrCydAQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.621596"], ["updated_at", "2015-03-02 05:11:50.621596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a22a9b1a-c09a-11e4-a41e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a22ba302-c09a-11e4-a850-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a22a9b1a-c09a-11e4-a41e-705681abff85"], ["organization_id", "a22ba302-c09a-11e4-a850-705681abff85"], ["created_at", "2015-03-02 05:11:50.625339"], ["updated_at", "2015-03-02 05:11:50.625339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$4oGgptBweoRFEbsgQNPgHeoHWsXMCRVoJDW12UuhzfH2hgamrMhNG"], ["created_at", "2015-03-02 05:11:50.635833"], ["updated_at", "2015-03-02 05:11:50.635833"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.639861"], ["user_id", "a22dd334-c09a-11e4-8387-705681abff85"], ["created_at", "2015-03-02 05:11:50.640688"], ["updated_at", "2015-03-02 05:11:50.640688"], ["token", "aVN3YXjoIHqyrYSH0Y3mqezllPmFhKGWENN-K05x-tc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.644366"], ["updated_at", "2015-03-02 05:11:50.644366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a22dd334-c09a-11e4-8387-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a22f1f6e-c09a-11e4-82b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a22dd334-c09a-11e4-8387-705681abff85"], ["organization_id", "a22f1f6e-c09a-11e4-82b5-705681abff85"], ["created_at", "2015-03-02 05:11:50.648326"], ["updated_at", "2015-03-02 05:11:50.648326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/a22f1f6e-c09a-11e4-82b5-705681abff85" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"a22f1f6e-c09a-11e4-82b5-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.653459' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aVN3YXjoIHqyrYSH0Y3mqezllPmFhKGWENN-K05x-tc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.654921"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.655916"], ["id", "a22e981e-c09a-11e4-b19e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a22dd334-c09a-11e4-8387-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a22dd334-c09a-11e4-8387-705681abff85"], ["id", "a22f1f6e-c09a-11e4-82b5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a22f1f6e-c09a-11e4-82b5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$UlqqwSWHiKN0SMK/JtxjAuNfl0JqujmMYX8g74d9TipWArwQH7IgG"], ["created_at", "2015-03-02 05:11:50.666912"], ["updated_at", "2015-03-02 05:11:50.666912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.668617"], ["user_id", "a2328eec-c09a-11e4-a403-705681abff85"], ["created_at", "2015-03-02 05:11:50.669490"], ["updated_at", "2015-03-02 05:11:50.669490"], ["token", "DP5wBb-XpwwOenh1B9pKW8bifRhNVcmfIvCRGm_0S_U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.673968"], ["updated_at", "2015-03-02 05:11:50.673968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2328eec-c09a-11e4-a403-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a233a340-c09a-11e4-9d9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2328eec-c09a-11e4-a403-705681abff85"], ["organization_id", "a233a340-c09a-11e4-9d9e-705681abff85"], ["created_at", "2015-03-02 05:11:50.677535"], ["updated_at", "2015-03-02 05:11:50.677535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$tQiChdIyxKp7MuhYvwYLxOymhy3gPxeWa4bUkZ6qK58K1n4cfGCQC"], ["created_at", "2015-03-02 05:11:50.687762"], ["updated_at", "2015-03-02 05:11:50.687762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.689425"], ["user_id", "a235bd10-c09a-11e4-92bd-705681abff85"], ["created_at", "2015-03-02 05:11:50.690377"], ["updated_at", "2015-03-02 05:11:50.690377"], ["token", "dUdP5Gao6Ztj9LJ-Hb5TBhRtPWfGOGML0KNrxEAKP-g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.694134"], ["updated_at", "2015-03-02 05:11:50.694134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a235bd10-c09a-11e4-92bd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a236bc24-c09a-11e4-a65a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a235bd10-c09a-11e4-92bd-705681abff85"], ["organization_id", "a236bc24-c09a-11e4-a65a-705681abff85"], ["created_at", "2015-03-02 05:11:50.698410"], ["updated_at", "2015-03-02 05:11:50.698410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a236bc24-c09a-11e4-a65a-705681abff85" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"a236bc24-c09a-11e4-a65a-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.703900' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dUdP5Gao6Ztj9LJ-Hb5TBhRtPWfGOGML0KNrxEAKP-g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.706192"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.707301"], ["id", "a2362c6e-c09a-11e4-abda-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a235bd10-c09a-11e4-92bd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a235bd10-c09a-11e4-92bd-705681abff85"], ["id", "a236bc24-c09a-11e4-a65a-705681abff85"]] Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$qdXYDXBQxErUG6jMWzBpxuDQiMYmXREycaueqq8.J.QKdcgKmWcCS"], ["created_at", "2015-03-02 05:11:50.718986"], ["updated_at", "2015-03-02 05:11:50.718986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.720799"], ["user_id", "a23a8188-c09a-11e4-a528-705681abff85"], ["created_at", "2015-03-02 05:11:50.721671"], ["updated_at", "2015-03-02 05:11:50.721671"], ["token", "Nd3JJZ793arxh_oeeW6lcfVCLO4Lm9VswdVqmE5G7Ls"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.727501"], ["updated_at", "2015-03-02 05:11:50.727501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a23a8188-c09a-11e4-a528-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a23bcc32-c09a-11e4-8890-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a23a8188-c09a-11e4-a528-705681abff85"], ["organization_id", "a23bcc32-c09a-11e4-8890-705681abff85"], ["created_at", "2015-03-02 05:11:50.730885"], ["updated_at", "2015-03-02 05:11:50.730885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$3ogwTlUHX53OjJeATtMZNOD0vMPsjteRONswfUYXhsOzJbdA9Ghe."], ["created_at", "2015-03-02 05:11:50.741960"], ["updated_at", "2015-03-02 05:11:50.741960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.743698"], ["user_id", "a23e03bc-c09a-11e4-95d1-705681abff85"], ["created_at", "2015-03-02 05:11:50.744538"], ["updated_at", "2015-03-02 05:11:50.744538"], ["token", "LGnKnJ6NoLFKJmPpKuVInBHaU3XD5WFu7td_cNAk_pA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.748589"], ["updated_at", "2015-03-02 05:11:50.748589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a23e03bc-c09a-11e4-95d1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a23f0762-c09a-11e4-93e6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a23e03bc-c09a-11e4-95d1-705681abff85"], ["organization_id", "a23f0762-c09a-11e4-93e6-705681abff85"], ["created_at", "2015-03-02 05:11:50.752916"], ["updated_at", "2015-03-02 05:11:50.752916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a23f0762-c09a-11e4-93e6-705681abff85" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"a23f0762-c09a-11e4-93e6-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.758878' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LGnKnJ6NoLFKJmPpKuVInBHaU3XD5WFu7td_cNAk_pA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.760414"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.761491"], ["id", "a23e6b54-c09a-11e4-9751-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a23e03bc-c09a-11e4-95d1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a23e03bc-c09a-11e4-95d1-705681abff85"], ["id", "a23f0762-c09a-11e4-93e6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a23f0762-c09a-11e4-93e6-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:11:50.771174"], ["id", "a23f0762-c09a-11e4-93e6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.6ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$b9AWeNeioXdS4GEnqH/nh.8XCIe7fASQSZZUQU3x8UIO.y.EZGpT6"], ["created_at", "2015-03-02 05:11:50.781671"], ["updated_at", "2015-03-02 05:11:50.781671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.783715"], ["user_id", "a2441b4e-c09a-11e4-bc47-705681abff85"], ["created_at", "2015-03-02 05:11:50.784560"], ["updated_at", "2015-03-02 05:11:50.784560"], ["token", "oWow2pJd0dw782YGV3g-3dBCGeyrWW16OmD5SR-WHsE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.788656"], ["updated_at", "2015-03-02 05:11:50.788656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2441b4e-c09a-11e4-bc47-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2453786-c09a-11e4-833e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2441b4e-c09a-11e4-bc47-705681abff85"], ["organization_id", "a2453786-c09a-11e4-833e-705681abff85"], ["created_at", "2015-03-02 05:11:50.792823"], ["updated_at", "2015-03-02 05:11:50.792823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a2453786-c09a-11e4-833e-705681abff85" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"a2453786-c09a-11e4-833e-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.799512' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oWow2pJd0dw782YGV3g-3dBCGeyrWW16OmD5SR-WHsE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.801373"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.802468"], ["id", "a24488ea-c09a-11e4-818e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2441b4e-c09a-11e4-bc47-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2441b4e-c09a-11e4-bc47-705681abff85"], ["id", "a2453786-c09a-11e4-833e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a2453786-c09a-11e4-833e-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$oXJnWu7tkETb3Oq1Z.yZa.VYt3FmMYGqho938.gtxYFH2jIgIkOU6"], ["created_at", "2015-03-02 05:11:50.816172"], ["updated_at", "2015-03-02 05:11:50.816172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.817903"], ["user_id", "a2495550-c09a-11e4-8998-705681abff85"], ["created_at", "2015-03-02 05:11:50.818787"], ["updated_at", "2015-03-02 05:11:50.818787"], ["token", "WXM1jGdjuKCu8L2-RRLRbqje000F7a0omL4ZwWCr7DA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.822953"], ["updated_at", "2015-03-02 05:11:50.822953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2495550-c09a-11e4-8998-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a24a5d56-c09a-11e4-b5e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2495550-c09a-11e4-8998-705681abff85"], ["organization_id", "a24a5d56-c09a-11e4-b5e7-705681abff85"], ["created_at", "2015-03-02 05:11:50.826522"], ["updated_at", "2015-03-02 05:11:50.826522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$89twuBvobATQ1gRZTBT19.YfS0gHhyl816AaAHakAQjszoLuzcOey"], ["created_at", "2015-03-02 05:11:50.837866"], ["updated_at", "2015-03-02 05:11:50.837866"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.840071"], ["user_id", "a24ca840-c09a-11e4-a05c-705681abff85"], ["created_at", "2015-03-02 05:11:50.841515"], ["updated_at", "2015-03-02 05:11:50.841515"], ["token", "_9LI7inwFSmqsvLjZ00o45RTZ1gHggIVd-rPrE7O3XU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.847782"], ["updated_at", "2015-03-02 05:11:50.847782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a24ca840-c09a-11e4-a05c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a24e2be8-c09a-11e4-b5af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a24ca840-c09a-11e4-a05c-705681abff85"], ["organization_id", "a24e2be8-c09a-11e4-b5af-705681abff85"], ["created_at", "2015-03-02 05:11:50.851926"], ["updated_at", "2015-03-02 05:11:50.851926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.857714' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_9LI7inwFSmqsvLjZ00o45RTZ1gHggIVd-rPrE7O3XU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.859258"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.860445"], ["id", "a24d5a88-c09a-11e4-9a98-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a24ca840-c09a-11e4-a05c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a24ca840-c09a-11e4-a05c-705681abff85"], ["name", "org-23"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a24e2be8-c09a-11e4-b5af-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:11:50.866780"], ["id", "a24e2be8-c09a-11e4-b5af-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$WwYv0FAUVpULtVa9WRPioe4ESeBWIub1ncb09DawJ.jDCSI2pubZm"], ["created_at", "2015-03-02 05:11:50.874900"], ["updated_at", "2015-03-02 05:11:50.874900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:50.876766"], ["user_id", "a2524d40-c09a-11e4-b18d-705681abff85"], ["created_at", "2015-03-02 05:11:50.877945"], ["updated_at", "2015-03-02 05:11:50.877945"], ["token", "IfZy0z4gNWzQXU9hbMoZ_vlZVfrmIqGgPrKxAYy6TIk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:50.889109"], ["updated_at", "2015-03-02 05:11:50.889109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2524d40-c09a-11e4-b18d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2548984-c09a-11e4-83ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2524d40-c09a-11e4-b18d-705681abff85"], ["organization_id", "a2548984-c09a-11e4-83ca-705681abff85"], ["created_at", "2015-03-02 05:11:50.893734"], ["updated_at", "2015-03-02 05:11:50.893734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-03-01 21:11:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:50.899082' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IfZy0z4gNWzQXU9hbMoZ_vlZVfrmIqGgPrKxAYy6TIk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:50.900537"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:50.901658"], ["id", "a252cffe-c09a-11e4-a837-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2524d40-c09a-11e4-b18d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2524d40-c09a-11e4-b18d-705681abff85"], ["name", "org-24"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a2548984-c09a-11e4-83ca-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.144459"], ["updated_at", "2015-03-02 05:11:51.144459"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a27b870a-c09a-11e4-b904-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a27b870a-c09a-11e4-b904-705681abff85"], ["created_at", "2015-03-02 05:11:51.204685"], ["updated_at", "2015-03-02 05:11:51.204685"], ["token", "6VL_L6gwqZvsWsmoK5_Dbbx-uMU7fAIPJtIVX8ZHZw4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 51.5ms Sent mail to john@example.com (8.5ms) Date: Sun, 01 Mar 2015 21:11:51 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f11740dbc_148c93fd5c8c57be04835@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/6VL_L6gwqZvsWsmoK5_Dbbx-uMU7fAIPJtIVX8ZHZw4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.274326"], ["updated_at", "2015-03-02 05:11:51.274326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a28f4286-c09a-11e4-a297-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a28f4286-c09a-11e4-a297-705681abff85"], ["created_at", "2015-03-02 05:11:51.278434"], ["updated_at", "2015-03-02 05:11:51.278434"], ["token", "eBAXlvDLcYEG70iMcTxinRXaotzxA4VLMdvSIX4_Frk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.8ms) Date: Sun, 01 Mar 2015 21:11:51 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f11744f45_148c93fd5c8c57be0484d7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/eBAXlvDLcYEG70iMcTxinRXaotzxA4VLMdvSIX4_Frk If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.288712"], ["updated_at", "2015-03-02 05:11:51.288712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a2916eda-c09a-11e4-a1cf-705681abff85') LIMIT 1 SQL (5.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a2916eda-c09a-11e4-a1cf-705681abff85"], ["created_at", "2015-03-02 05:11:51.292287"], ["updated_at", "2015-03-02 05:11:51.292287"], ["token", "WByoNnVxh_V_OY8o7HRnlKQmT-Az1yCvSBf0BXlh07M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (2.0ms) Date: Sun, 01 Mar 2015 21:11:51 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f11749dce_148c93fd5c8c57be04857b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/WByoNnVxh_V_OY8o7HRnlKQmT-Az1yCvSBf0BXlh07M If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.311566"], ["updated_at", "2015-03-02 05:11:51.311566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a294fcee-c09a-11e4-a94e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a294fcee-c09a-11e4-a94e-705681abff85"], ["created_at", "2015-03-02 05:11:51.319122"], ["updated_at", "2015-03-02 05:11:51.319122"], ["token", "XVCwMZlkG-aWGcui_ntQ9aVM--B9njNLqDU2kHBsz-8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.5ms Sent mail to john@example.com (1.8ms) Date: Sun, 01 Mar 2015 21:11:51 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f1174efe2_148c93fd5c8c57be0486c6@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/XVCwMZlkG-aWGcui_ntQ9aVM--B9njNLqDU2kHBsz-8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$GFnSTKQgODEp2gaC.XwHgeq3HN1EtJUQK5PgO8M4SrNRLb.hR7.Qm"], ["created_at", "2015-03-02 05:11:51.330152"], ["updated_at", "2015-03-02 05:11:51.330152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.331972"], ["user_id", "a297c53c-c09a-11e4-923b-705681abff85"], ["created_at", "2015-03-02 05:11:51.332866"], ["updated_at", "2015-03-02 05:11:51.332866"], ["token", "LiYDSAeB1psdeipfS3ElUOpH__AO2SdaLgMP9kI2YGI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.336669"], ["updated_at", "2015-03-02 05:11:51.336669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a297c53c-c09a-11e4-923b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a298be1a-c09a-11e4-b3cd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a297c53c-c09a-11e4-923b-705681abff85"], ["organization_id", "a298be1a-c09a-11e4-b3cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.340138"], ["updated_at", "2015-03-02 05:11:51.340138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a298be1a-c09a-11e4-b3cd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a298be1a-c09a-11e4-b3cd-705681abff85"], ["created_at", "2015-03-02 05:11:51.344351"], ["updated_at", "2015-03-02 05:11:51.344351"], ["token", "U8mCm0ha0sGeVwLgbvD7IhwQzrEHUuMn3_k14EDiOyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$DF3ZN4kW/vKXuWp3d1CPgewQ7oqjeP1nKo4LDUIyRrMg2yzmFaEQa"], ["created_at", "2015-03-02 05:11:51.362376"], ["updated_at", "2015-03-02 05:11:51.362376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.364533"], ["user_id", "a29cb81c-c09a-11e4-a9c1-705681abff85"], ["created_at", "2015-03-02 05:11:51.365375"], ["updated_at", "2015-03-02 05:11:51.365375"], ["token", "B_jLLUsvV7e-gjO4-_3bmGmVNGOO-dK-WIrLrNERMTE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.368916"], ["updated_at", "2015-03-02 05:11:51.368916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a29cb81c-c09a-11e4-a9c1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a29da8f8-c09a-11e4-8283-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a29cb81c-c09a-11e4-a9c1-705681abff85"], ["organization_id", "a29da8f8-c09a-11e4-8283-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.372173"], ["updated_at", "2015-03-02 05:11:51.372173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a29da8f8-c09a-11e4-8283-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a29da8f8-c09a-11e4-8283-705681abff85"], ["created_at", "2015-03-02 05:11:51.375642"], ["updated_at", "2015-03-02 05:11:51.375642"], ["token", "jSnLa_K93pgNCNQSHAu4q2oaEQJ-7HFJDD_0pmKZokQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/a29eb392-c09a-11e4-8152-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"a29eb392-c09a-11e4-8152-705681abff85", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:51.381663' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B_jLLUsvV7e-gjO4-_3bmGmVNGOO-dK-WIrLrNERMTE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:51.383916"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:51.384895"], ["id", "a29d286a-c09a-11e4-bd40-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a29cb81c-c09a-11e4-a9c1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a29cb81c-c09a-11e4-a9c1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a29cb81c-c09a-11e4-a9c1-705681abff85' LIMIT 1 [["organization_id", "a29da8f8-c09a-11e4-8283-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "a29da8f8-c09a-11e4-8283-705681abff85"], ["id", "a29eb392-c09a-11e4-8152-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a29eb392-c09a-11e4-8152-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 17ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$SGceogXOsJTccJ1shS8XjOndqtonVYctRkcsdaak9fJXwFo9YK1r."], ["created_at", "2015-03-02 05:11:51.403893"], ["updated_at", "2015-03-02 05:11:51.403893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.405693"], ["user_id", "a2a30672-c09a-11e4-a6b3-705681abff85"], ["created_at", "2015-03-02 05:11:51.406523"], ["updated_at", "2015-03-02 05:11:51.406523"], ["token", "E1YfNVat7YxzJxVcYcEp6gVSmLqXsOW85yBcmWDhKN0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.410625"], ["updated_at", "2015-03-02 05:11:51.410625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2a30672-c09a-11e4-a6b3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2a40900-c09a-11e4-aa5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2a30672-c09a-11e4-a6b3-705681abff85"], ["organization_id", "a2a40900-c09a-11e4-aa5a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.414240"], ["updated_at", "2015-03-02 05:11:51.414240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a2a40900-c09a-11e4-aa5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a2a40900-c09a-11e4-aa5a-705681abff85"], ["created_at", "2015-03-02 05:11:51.417734"], ["updated_at", "2015-03-02 05:11:51.417734"], ["token", "792fZSap7h-MNmZ2p20EjTH3VK_BU3wFnafMfdTSP9Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$XtI5g27duCu8pnm5rQMdWuz2yZOtYu48HchRyZRbkUZIxmpMIRxAO"], ["created_at", "2015-03-02 05:11:51.422411"], ["updated_at", "2015-03-02 05:11:51.422411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.425861"], ["updated_at", "2015-03-02 05:11:51.425861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2a5d550-c09a-11e4-b28b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2a659a8-c09a-11e4-bdec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2a5d550-c09a-11e4-b28b-705681abff85"], ["organization_id", "a2a659a8-c09a-11e4-bdec-705681abff85"], ["created_at", "2015-03-02 05:11:51.429076"], ["updated_at", "2015-03-02 05:11:51.429076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$837zIPpwuT9B5z3xDVsUgungxYxW43/0fWhK94rXR.OT1iVKzORfm"], ["created_at", "2015-03-02 05:11:51.440426"], ["updated_at", "2015-03-02 05:11:51.440426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.442315"], ["user_id", "a2a895d8-c09a-11e4-a851-705681abff85"], ["created_at", "2015-03-02 05:11:51.443116"], ["updated_at", "2015-03-02 05:11:51.443116"], ["token", "_in4l8Z_rMVIb4W__vHmeP7Fl_6uNGEFnHRwFO0OfME"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.447219"], ["updated_at", "2015-03-02 05:11:51.447219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2a895d8-c09a-11e4-a851-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2a99ff0-c09a-11e4-866a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2a895d8-c09a-11e4-a851-705681abff85"], ["organization_id", "a2a99ff0-c09a-11e4-866a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.451084"], ["updated_at", "2015-03-02 05:11:51.451084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a2a99ff0-c09a-11e4-866a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a2a99ff0-c09a-11e4-866a-705681abff85"], ["created_at", "2015-03-02 05:11:51.455277"], ["updated_at", "2015-03-02 05:11:51.455277"], ["token", "3gdKZ2D-1VWnWLD2kcjWKyzaDw7yBlyikvcXM_J-fLs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$VdgkvhQIXJbiZlo/kTBQUOKcsq8SaVXqT6FDfTUca31FnHlEnm3I2"], ["created_at", "2015-03-02 05:11:51.460753"], ["updated_at", "2015-03-02 05:11:51.460753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.464254"], ["updated_at", "2015-03-02 05:11:51.464254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2abb18c-c09a-11e4-b242-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2ac35d0-c09a-11e4-aeb2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2abb18c-c09a-11e4-b242-705681abff85"], ["organization_id", "a2ac35d0-c09a-11e4-aeb2-705681abff85"], ["created_at", "2015-03-02 05:11:51.467569"], ["updated_at", "2015-03-02 05:11:51.467569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:51.473393' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_in4l8Z_rMVIb4W__vHmeP7Fl_6uNGEFnHRwFO0OfME"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:51.475459"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:51.476578"], ["id", "a2a9036a-c09a-11e4-a180-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2a895d8-c09a-11e4-a851-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2a895d8-c09a-11e4-a851-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a2a895d8-c09a-11e4-a851-705681abff85' LIMIT 1 [["organization_id", "a2a99ff0-c09a-11e4-866a-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "a2a99ff0-c09a-11e4-866a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a2a99ff0-c09a-11e4-866a-705681abff85') Completed 200 OK in 18ms (Views: 7.8ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$4AKCZLFMTMHyCDxAsy2Ct.ITvD2okBOcCl8aJHExmfcAo8iOdOHsC"], ["created_at", "2015-03-02 05:11:51.497745"], ["updated_at", "2015-03-02 05:11:51.497745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.499529"], ["user_id", "a2b15650-c09a-11e4-b3ef-705681abff85"], ["created_at", "2015-03-02 05:11:51.500340"], ["updated_at", "2015-03-02 05:11:51.500340"], ["token", "_LJgE6reKWfirmhYqaewAuvkGbOiuaaEI55w7KI3IqE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.511005"], ["updated_at", "2015-03-02 05:11:51.511005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2b15650-c09a-11e4-b3ef-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2b3615c-c09a-11e4-b44d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2b15650-c09a-11e4-b3ef-705681abff85"], ["organization_id", "a2b3615c-c09a-11e4-b44d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.514978"], ["updated_at", "2015-03-02 05:11:51.514978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a2b3615c-c09a-11e4-b44d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a2b3615c-c09a-11e4-b44d-705681abff85"], ["created_at", "2015-03-02 05:11:51.518483"], ["updated_at", "2015-03-02 05:11:51.518483"], ["token", "vcYCPpEwx5O-_dEvKb2Y7mT5_bKbf0HTCfH883xYuts"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$iwa2usNrHLZZg8lLZKJmW.fGPY5jumulNKX70EsAvWoI/5A/eyMea"], ["created_at", "2015-03-02 05:11:51.530977"], ["updated_at", "2015-03-02 05:11:51.530977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.532689"], ["user_id", "a2b66758-c09a-11e4-9236-705681abff85"], ["created_at", "2015-03-02 05:11:51.533739"], ["updated_at", "2015-03-02 05:11:51.533739"], ["token", "VZL9DViKZZ_H5oBIYg2sMCvO6ye0PMiy3SoXjwo8svI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.538211"], ["updated_at", "2015-03-02 05:11:51.538211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2b66758-c09a-11e4-9236-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2b77fee-c09a-11e4-9365-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2b66758-c09a-11e4-9236-705681abff85"], ["organization_id", "a2b77fee-c09a-11e4-9365-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.541725"], ["updated_at", "2015-03-02 05:11:51.541725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a2b77fee-c09a-11e4-9365-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a2b77fee-c09a-11e4-9365-705681abff85"], ["created_at", "2015-03-02 05:11:51.545868"], ["updated_at", "2015-03-02 05:11:51.545868"], ["token", "qJEZUsFzhiJZ_LsufAc5UJDPeWlV7QL6HbDQ2ioob6g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/a2b8b18e-c09a-11e4-b71f-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"a2b8b18e-c09a-11e4-b71f-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:51.551226' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VZL9DViKZZ_H5oBIYg2sMCvO6ye0PMiy3SoXjwo8svI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:51.553402"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:51.554667"], ["id", "a2b6e840-c09a-11e4-bdf9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2b66758-c09a-11e4-9236-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2b66758-c09a-11e4-9236-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a2b66758-c09a-11e4-9236-705681abff85' LIMIT 1 [["organization_id", "a2b77fee-c09a-11e4-9365-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "a2b77fee-c09a-11e4-9365-705681abff85"], ["id", "a2b8b18e-c09a-11e4-b71f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2b77fee-c09a-11e4-9365-705681abff85"]] Completed 200 OK in 12ms (Views: 1.9ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$Sk8FeUJm5foAzX/FG5LJf.vep0fE4Qff9AKxY9Fl7TzLR6Y/RMBFa"], ["created_at", "2015-03-02 05:11:51.570176"], ["updated_at", "2015-03-02 05:11:51.570176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.571914"], ["user_id", "a2bc61bc-c09a-11e4-8e87-705681abff85"], ["created_at", "2015-03-02 05:11:51.572723"], ["updated_at", "2015-03-02 05:11:51.572723"], ["token", "OvheGqrusCN13Suk4Hf2_leknEvVil-JPKmPamG0CxM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.576328"], ["updated_at", "2015-03-02 05:11:51.576328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2bc61bc-c09a-11e4-8e87-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2bd5720-c09a-11e4-82f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2bc61bc-c09a-11e4-8e87-705681abff85"], ["organization_id", "a2bd5720-c09a-11e4-82f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.579883"], ["updated_at", "2015-03-02 05:11:51.579883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'a2bd5720-c09a-11e4-82f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "a2bd5720-c09a-11e4-82f3-705681abff85"], ["created_at", "2015-03-02 05:11:51.583481"], ["updated_at", "2015-03-02 05:11:51.583481"], ["token", "OHtVznC5zkaSZ7UKXVwN7fVof3rywGP_BqSb7GrEbfs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$JO2KUWL45uAKAwJmMND7mOdClbdyAAm2Z8/rTrDEeeHuYAanj8iRC"], ["created_at", "2015-03-02 05:11:51.594327"], ["updated_at", "2015-03-02 05:11:51.594327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.596250"], ["user_id", "a2c010e6-c09a-11e4-9f66-705681abff85"], ["created_at", "2015-03-02 05:11:51.597024"], ["updated_at", "2015-03-02 05:11:51.597024"], ["token", "0070V7eRWDffLDzFDUOLWua3EiQ2-mEuK05PVumIbkc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.601127"], ["updated_at", "2015-03-02 05:11:51.601127"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2c010e6-c09a-11e4-9f66-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2c1295e-c09a-11e4-aad0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2c010e6-c09a-11e4-9f66-705681abff85"], ["organization_id", "a2c1295e-c09a-11e4-aad0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.605545"], ["updated_at", "2015-03-02 05:11:51.605545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'a2c1295e-c09a-11e4-aad0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "a2c1295e-c09a-11e4-aad0-705681abff85"], ["created_at", "2015-03-02 05:11:51.609541"], ["updated_at", "2015-03-02 05:11:51.609541"], ["token", "x7VH1XZqBbfKXgGLV7AqxLSSMxMUpx9p9KQ-2RNxPaI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:51.616155' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0070V7eRWDffLDzFDUOLWua3EiQ2-mEuK05PVumIbkc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:51.617900"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:51.618904"], ["id", "a2c07f0e-c09a-11e4-8ce7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2c010e6-c09a-11e4-9f66-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2c010e6-c09a-11e4-9f66-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a2c010e6-c09a-11e4-9f66-705681abff85' LIMIT 1 [["organization_id", "a2c1295e-c09a-11e4-aad0-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2c1295e-c09a-11e4-aad0-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a2c1295e-c09a-11e4-aad0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a2c1295e-c09a-11e4-aad0-705681abff85"], ["created_at", "2015-03-02 05:11:51.631111"], ["updated_at", "2015-03-02 05:11:51.631111"], ["token", "t5X7c2exURIMkZz-_HhlhMt3X1HpOVxMf0ysJusgFkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c3408a69-0c20-4244-b706-8082aa19f6ab) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a2c5caea-c09a-11e4-b44b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a2c5caea-c09a-11e4-b44b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c3408a69-0c20-4244-b706-8082aa19f6ab] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a2c5caea-c09a-11e4-b44b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [c3408a69-0c20-4244-b706-8082aa19f6ab] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2c1295e-c09a-11e4-aad0-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c3408a69-0c20-4244-b706-8082aa19f6ab] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [c3408a69-0c20-4244-b706-8082aa19f6ab] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [c3408a69-0c20-4244-b706-8082aa19f6ab] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [c3408a69-0c20-4244-b706-8082aa19f6ab] Date: Sun, 01 Mar 2015 21:11:51 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f117a0c1b_148c93fd5c8c57be0487f4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/t5X7c2exURIMkZz-_HhlhMt3X1HpOVxMf0ysJusgFkA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [c3408a69-0c20-4244-b706-8082aa19f6ab] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.63ms Completed 201 Created in 45ms (Views: 0.9ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$LvBvQgETWxHHFX1FUYTkhOexNgaUxBWCrptoNOk3.zrol7n9HD/bu"], ["created_at", "2015-03-02 05:11:51.667779"], ["updated_at", "2015-03-02 05:11:51.667779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.669566"], ["user_id", "a2cb4970-c09a-11e4-8705-705681abff85"], ["created_at", "2015-03-02 05:11:51.670383"], ["updated_at", "2015-03-02 05:11:51.670383"], ["token", "L8KrvO9WCnP5E2i4QGUb9g65e5RlDXJ2wNqsmzgq4f4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.673971"], ["updated_at", "2015-03-02 05:11:51.673971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2cb4970-c09a-11e4-8705-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2cc3858-c09a-11e4-ac40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2cb4970-c09a-11e4-8705-705681abff85"], ["organization_id", "a2cc3858-c09a-11e4-ac40-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.677466"], ["updated_at", "2015-03-02 05:11:51.677466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'a2cc3858-c09a-11e4-ac40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "a2cc3858-c09a-11e4-ac40-705681abff85"], ["created_at", "2015-03-02 05:11:51.680880"], ["updated_at", "2015-03-02 05:11:51.680880"], ["token", "BRN-KZKNJhj_SLyXuY_0RVMNN1hPSJuc0fNJoK_FdC4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:51.686362' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "L8KrvO9WCnP5E2i4QGUb9g65e5RlDXJ2wNqsmzgq4f4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:51.688052"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:51.689202"], ["id", "a2cbb3ba-c09a-11e4-81b1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2cb4970-c09a-11e4-8705-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2cb4970-c09a-11e4-8705-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a2cb4970-c09a-11e4-8705-705681abff85' LIMIT 1 [["organization_id", "a2cc3858-c09a-11e4-ac40-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2cc3858-c09a-11e4-ac40-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a2cc3858-c09a-11e4-ac40-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a2cc3858-c09a-11e4-ac40-705681abff85"], ["created_at", "2015-03-02 05:11:51.698713"], ["updated_at", "2015-03-02 05:11:51.698713"], ["token", "oi-nWpwCbGa6SuSyHXfWSOgvrscbIvW0o3nB4ois1dM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 43f84ec2-dd3d-4e23-b38c-013a665737e2) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a2d010d6-c09a-11e4-8863-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a2d010d6-c09a-11e4-8863-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [43f84ec2-dd3d-4e23-b38c-013a665737e2] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a2d010d6-c09a-11e4-8863-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [43f84ec2-dd3d-4e23-b38c-013a665737e2] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2cc3858-c09a-11e4-ac40-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [43f84ec2-dd3d-4e23-b38c-013a665737e2] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [43f84ec2-dd3d-4e23-b38c-013a665737e2] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [43f84ec2-dd3d-4e23-b38c-013a665737e2] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [43f84ec2-dd3d-4e23-b38c-013a665737e2] Date: Sun, 01 Mar 2015 21:11:51 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f117acbc3_148c93fd5c8c57be048880@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/oi-nWpwCbGa6SuSyHXfWSOgvrscbIvW0o3nB4ois1dM If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [43f84ec2-dd3d-4e23-b38c-013a665737e2] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.48ms Completed 201 Created in 24ms (Views: 1.1ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$PusDnTPY4Y3Mude3J4tuD.RbAldTK6yhLhWcY4dVavQbeBJ7DEU/i"], ["created_at", "2015-03-02 05:11:51.716473"], ["updated_at", "2015-03-02 05:11:51.716473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.718105"], ["user_id", "a2d2b444-c09a-11e4-8ca8-705681abff85"], ["created_at", "2015-03-02 05:11:51.718905"], ["updated_at", "2015-03-02 05:11:51.718905"], ["token", "zXOcClAQSqxPiiZMJkIy3IMe8rqiv15_qPeiXoW35Hg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.722391"], ["updated_at", "2015-03-02 05:11:51.722391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2d2b444-c09a-11e4-8ca8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2d39814-c09a-11e4-afac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2d2b444-c09a-11e4-8ca8-705681abff85"], ["organization_id", "a2d39814-c09a-11e4-afac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.725939"], ["updated_at", "2015-03-02 05:11:51.725939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'a2d39814-c09a-11e4-afac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "a2d39814-c09a-11e4-afac-705681abff85"], ["created_at", "2015-03-02 05:11:51.729620"], ["updated_at", "2015-03-02 05:11:51.729620"], ["token", "zc93wHtcpLxkaZVhKjMatI_K_AX7WdkitmhaTCKKHWE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:51.735714' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zXOcClAQSqxPiiZMJkIy3IMe8rqiv15_qPeiXoW35Hg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:51.737213"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:51.738187"], ["id", "a2d3192a-c09a-11e4-886c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2d2b444-c09a-11e4-8ca8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2d2b444-c09a-11e4-8ca8-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a2d2b444-c09a-11e4-8ca8-705681abff85' LIMIT 1 [["organization_id", "a2d39814-c09a-11e4-afac-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2d39814-c09a-11e4-afac-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'a2d39814-c09a-11e4-afac-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$KWcg9XzYqVg2OBLqoz.1COn6p48V5w5pA9hnBgTOXGnWkrZu18F3K"], ["created_at", "2015-03-02 05:11:51.755786"], ["updated_at", "2015-03-02 05:11:51.755786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.757435"], ["user_id", "a2d8b402-c09a-11e4-89d9-705681abff85"], ["created_at", "2015-03-02 05:11:51.758420"], ["updated_at", "2015-03-02 05:11:51.758420"], ["token", "rpMOtkBhKnTqHUJyLgKdUfQIR2FtJhiJj5c7uv8Qu_g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.762368"], ["updated_at", "2015-03-02 05:11:51.762368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2d8b402-c09a-11e4-89d9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2d9b398-c09a-11e4-95bf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2d8b402-c09a-11e4-89d9-705681abff85"], ["organization_id", "a2d9b398-c09a-11e4-95bf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.765800"], ["updated_at", "2015-03-02 05:11:51.765800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'a2d9b398-c09a-11e4-95bf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "a2d9b398-c09a-11e4-95bf-705681abff85"], ["created_at", "2015-03-02 05:11:51.769330"], ["updated_at", "2015-03-02 05:11:51.769330"], ["token", "-LdqnEIGAJUItuALBw8vMlGmpRdgIOeSi3bAVTjljxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$h9EiThqcwnH2DflPuBHpG.6OuxY3daoB5gyt5QZfRBp2v4tLpgTYm"], ["created_at", "2015-03-02 05:11:51.782740"], ["updated_at", "2015-03-02 05:11:51.782740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.784622"], ["user_id", "a2dcd5e6-c09a-11e4-a2a7-705681abff85"], ["created_at", "2015-03-02 05:11:51.785935"], ["updated_at", "2015-03-02 05:11:51.785935"], ["token", "FmHQaVL5GfNJ4E4Sm643lDcd9LIm79Z9czMh_fTXXzg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.790784"], ["updated_at", "2015-03-02 05:11:51.790784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2dcd5e6-c09a-11e4-a2a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2de0b96-c09a-11e4-b6ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2dcd5e6-c09a-11e4-a2a7-705681abff85"], ["organization_id", "a2de0b96-c09a-11e4-b6ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.794348"], ["updated_at", "2015-03-02 05:11:51.794348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'a2de0b96-c09a-11e4-b6ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "a2de0b96-c09a-11e4-b6ba-705681abff85"], ["created_at", "2015-03-02 05:11:51.798141"], ["updated_at", "2015-03-02 05:11:51.798141"], ["token", "2IJ0Nza_hzeYAeHFdjnwd-PASsX59NUOrI1-iOoc09Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/a2df2f58-c09a-11e4-9662-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"a2df2f58-c09a-11e4-9662-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:51.804979' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FmHQaVL5GfNJ4E4Sm643lDcd9LIm79Z9czMh_fTXXzg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:51.806468"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:51.807437"], ["id", "a2dd7096-c09a-11e4-8a3f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2dcd5e6-c09a-11e4-a2a7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2dcd5e6-c09a-11e4-a2a7-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a2dcd5e6-c09a-11e4-a2a7-705681abff85' LIMIT 1 [["organization_id", "a2de0b96-c09a-11e4-b6ba-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "a2de0b96-c09a-11e4-b6ba-705681abff85"], ["id", "a2df2f58-c09a-11e4-9662-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2de0b96-c09a-11e4-b6ba-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."id" != 'a2df2f58-c09a-11e4-9662-705681abff85' AND "clubhouse_invitations"."organization_id" = 'a2de0b96-c09a-11e4-b6ba-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:11:51.820916"], ["id", "a2df2f58-c09a-11e4-9662-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.4ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.839053"], ["updated_at", "2015-03-02 05:11:51.839053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a2e56a76-c09a-11e4-8055-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "a2e56a76-c09a-11e4-8055-705681abff85"], ["created_at", "2015-03-02 05:11:51.842224"], ["updated_at", "2015-03-02 05:11:51.842224"], ["token", "9tQu0qFmQFTrkOy8vKSlStXvvL5XsJwvLLgX9tIZEVU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.861588"], ["updated_at", "2015-03-02 05:11:51.861588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'a2e8e278-c09a-11e4-90a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "a2e8e278-c09a-11e4-90a7-705681abff85"], ["created_at", "2015-03-02 05:11:51.865324"], ["updated_at", "2015-03-02 05:11:51.865324"], ["token", "C3K2TWdWJs9J538ISt35eUn0ugc3DF0kTeRZZF2WxNQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2e8e278-c09a-11e4-90a7-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'a2e8e278-c09a-11e4-90a7-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2e8e278-c09a-11e4-90a7-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'a2e8e278-c09a-11e4-90a7-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$xajyOn.1pfeQTKqO2UtJE.7Uz07y1AkNPAWGjMl3K4DOFUTAfOj.m"], ["created_at", "2015-03-02 05:11:51.892251"], ["updated_at", "2015-03-02 05:11:51.892251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.896172"], ["updated_at", "2015-03-02 05:11:51.896172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2ed86e8-c09a-11e4-8deb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2ee1efa-c09a-11e4-8701-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2ed86e8-c09a-11e4-8deb-705681abff85"], ["organization_id", "a2ee1efa-c09a-11e4-8701-705681abff85"], ["created_at", "2015-03-02 05:11:51.899068"], ["updated_at", "2015-03-02 05:11:51.899068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2ed86e8-c09a-11e4-8deb-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2ee1efa-c09a-11e4-8701-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2ed86e8-c09a-11e4-8deb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2ee1efa-c09a-11e4-8701-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2ee1efa-c09a-11e4-8701-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2ed86e8-c09a-11e4-8deb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2ee1efa-c09a-11e4-8701-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$8TkSUSJJgzh3FZ9Jn0kEjundNRe3ESARCt39qCTLglfxdW.6XFMwG"], ["created_at", "2015-03-02 05:11:51.916210"], ["updated_at", "2015-03-02 05:11:51.916210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$UVM1cKjlLoHZt6Yckip0kuOFwvUMkzr4mvJwA552kywoAFVz0OZEi"], ["created_at", "2015-03-02 05:11:51.920769"], ["updated_at", "2015-03-02 05:11:51.920769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.922608"], ["user_id", "a2f12ff0-c09a-11e4-8237-705681abff85"], ["created_at", "2015-03-02 05:11:51.923576"], ["updated_at", "2015-03-02 05:11:51.923576"], ["token", "Twhj2mWgMiBxmajCo3EF_dk49PKK_-m3Npg-li7c8To"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.927434"], ["updated_at", "2015-03-02 05:11:51.927434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2f12ff0-c09a-11e4-8237-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2f2ef66-c09a-11e4-86fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2f12ff0-c09a-11e4-8237-705681abff85"], ["organization_id", "a2f2ef66-c09a-11e4-86fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.931192"], ["updated_at", "2015-03-02 05:11:51.931192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2f1dfc2-c09a-11e4-a414-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2f2ef66-c09a-11e4-86fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2f1dfc2-c09a-11e4-a414-705681abff85"], ["organization_id", "a2f2ef66-c09a-11e4-86fc-705681abff85"], ["created_at", "2015-03-02 05:11:51.934670"], ["updated_at", "2015-03-02 05:11:51.934670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$juPcxIBsGORl8ABrYIU5qe6MNWZ0LpYUZEcjmBKH.x53JeCBIIxyi"], ["created_at", "2015-03-02 05:11:51.952944"], ["updated_at", "2015-03-02 05:11:51.952944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$fxGfidFvkJC.vTPT87ahPuR1uYjI2JubjPBCbAtQZjTgG7hjwfbIW"], ["created_at", "2015-03-02 05:11:51.957409"], ["updated_at", "2015-03-02 05:11:51.957409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:51.958986"], ["user_id", "a2f6ca96-c09a-11e4-92aa-705681abff85"], ["created_at", "2015-03-02 05:11:51.959909"], ["updated_at", "2015-03-02 05:11:51.959909"], ["token", "1G_5DfzBH2qUnp6VrAlrRnoghEn4xEL57GHvl86QjPA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:51.964062"], ["updated_at", "2015-03-02 05:11:51.964062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2f6ca96-c09a-11e4-92aa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2f879a4-c09a-11e4-81ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2f6ca96-c09a-11e4-92aa-705681abff85"], ["organization_id", "a2f879a4-c09a-11e4-81ee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:51.967614"], ["updated_at", "2015-03-02 05:11:51.967614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2f774f0-c09a-11e4-87b6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2f879a4-c09a-11e4-81ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2f774f0-c09a-11e4-87b6-705681abff85"], ["organization_id", "a2f879a4-c09a-11e4-81ee-705681abff85"], ["created_at", "2015-03-02 05:11:51.970701"], ["updated_at", "2015-03-02 05:11:51.970701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/a2f97a7a-c09a-11e4-9fbb-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:11:51 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"a2f97a7a-c09a-11e4-9fbb-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:51.975951' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1G_5DfzBH2qUnp6VrAlrRnoghEn4xEL57GHvl86QjPA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:51.977427"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:51.978416"], ["id", "a2f7e3ea-c09a-11e4-a6dc-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2f6ca96-c09a-11e4-92aa-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2f6ca96-c09a-11e4-92aa-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a2f6ca96-c09a-11e4-92aa-705681abff85' LIMIT 1 [["organization_id", "a2f879a4-c09a-11e4-81ee-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a2f879a4-c09a-11e4-81ee-705681abff85"], ["id", "a2f97a7a-c09a-11e4-9fbb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2f774f0-c09a-11e4-87b6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "a2f97a7a-c09a-11e4-9fbb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 15ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$7HIpEc4PHXLAx2oCpRZms.ebLyPJ/CArbXqkNENQoa9qaevZKr8E."], ["created_at", "2015-03-02 05:11:51.997422"], ["updated_at", "2015-03-02 05:11:51.997422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$/JJh6fi5HkyaBmMlw1B/eecntMgrBaauXYYtTENLoIJYkd/1WgeDS"], ["created_at", "2015-03-02 05:11:52.002054"], ["updated_at", "2015-03-02 05:11:52.002054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.003641"], ["user_id", "a2fd9588-c09a-11e4-9afd-705681abff85"], ["created_at", "2015-03-02 05:11:52.004457"], ["updated_at", "2015-03-02 05:11:52.004457"], ["token", "X9Wba2uuhj2aFjeg3fgz6qAjo_zfwg4-o-T_9k1TSc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.008079"], ["updated_at", "2015-03-02 05:11:52.008079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2fd9588-c09a-11e4-9afd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2ff3082-c09a-11e4-9dde-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2fd9588-c09a-11e4-9afd-705681abff85"], ["organization_id", "a2ff3082-c09a-11e4-9dde-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.011610"], ["updated_at", "2015-03-02 05:11:52.011610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2fe45a0-c09a-11e4-a55a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2ff3082-c09a-11e4-9dde-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2fe45a0-c09a-11e4-a55a-705681abff85"], ["organization_id", "a2ff3082-c09a-11e4-9dde-705681abff85"], ["created_at", "2015-03-02 05:11:52.014805"], ["updated_at", "2015-03-02 05:11:52.014805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/a2ffbbf6-c09a-11e4-a5d5-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"a2ffbbf6-c09a-11e4-a5d5-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:52.019815' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X9Wba2uuhj2aFjeg3fgz6qAjo_zfwg4-o-T_9k1TSc4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:52.021232"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:52.022213"], ["id", "a2feae96-c09a-11e4-8110-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2fd9588-c09a-11e4-9afd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a2fd9588-c09a-11e4-9afd-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a2fd9588-c09a-11e4-9afd-705681abff85' LIMIT 1 [["organization_id", "a2ff3082-c09a-11e4-9dde-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a2ff3082-c09a-11e4-9dde-705681abff85"], ["id", "a2ffbbf6-c09a-11e4-a5d5-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2fd9588-c09a-11e4-9afd-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$0AX6cA2FRqjMTFyDsb0PEuLVr5gIDshiIA1j8pxQ2txhJBdxJ1hR."], ["created_at", "2015-03-02 05:11:52.036966"], ["updated_at", "2015-03-02 05:11:52.036966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$e5ahV5yh28k3ZX7umWQb6eGehkZqnSuji9aO5PCqd5Slnb2vU97ze"], ["created_at", "2015-03-02 05:11:52.041578"], ["updated_at", "2015-03-02 05:11:52.041578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.043334"], ["user_id", "a3039d98-c09a-11e4-8a42-705681abff85"], ["created_at", "2015-03-02 05:11:52.044160"], ["updated_at", "2015-03-02 05:11:52.044160"], ["token", "2T5sZ8rnSS5EoYY5eKhMax33CxC966R_RfyIGIRS-TE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.048347"], ["updated_at", "2015-03-02 05:11:52.048347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3039d98-c09a-11e4-8a42-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a305580e-c09a-11e4-8f93-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3039d98-c09a-11e4-8a42-705681abff85"], ["organization_id", "a305580e-c09a-11e4-8f93-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.051885"], ["updated_at", "2015-03-02 05:11:52.051885"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3044f90-c09a-11e4-abf6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a305580e-c09a-11e4-8f93-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3044f90-c09a-11e4-abf6-705681abff85"], ["organization_id", "a305580e-c09a-11e4-8f93-705681abff85"], ["created_at", "2015-03-02 05:11:52.055607"], ["updated_at", "2015-03-02 05:11:52.055607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:52.061353' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2T5sZ8rnSS5EoYY5eKhMax33CxC966R_RfyIGIRS-TE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:52.062775"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:52.063855"], ["id", "a304bbe2-c09a-11e4-840b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3039d98-c09a-11e4-8a42-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3039d98-c09a-11e4-8a42-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3039d98-c09a-11e4-8a42-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a3039d98-c09a-11e4-8a42-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('a3039d98-c09a-11e4-8a42-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a305580e-c09a-11e4-8f93-705681abff85') Completed 200 OK in 16ms (Views: 6.7ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$CYOgTDcZEkieY1FDjC2a3e6aBx.G.hECKGbFVbAcHWlfd0/MO3yqe"], ["created_at", "2015-03-02 05:11:52.083623"], ["updated_at", "2015-03-02 05:11:52.083623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$OjQiHmqKetJDCh1mlQHVW.J9b1uJf5Ab8nWwfTBWCScPV94IAoUqK"], ["created_at", "2015-03-02 05:11:52.088301"], ["updated_at", "2015-03-02 05:11:52.088301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.089905"], ["user_id", "a30abdbc-c09a-11e4-bec3-705681abff85"], ["created_at", "2015-03-02 05:11:52.090694"], ["updated_at", "2015-03-02 05:11:52.090694"], ["token", "Wi4EQbgD5-bAm42fVBEqqqRUy4_N137g-nt0vb6bA5Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.094220"], ["updated_at", "2015-03-02 05:11:52.094220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a30abdbc-c09a-11e4-bec3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a30c56a4-c09a-11e4-ab41-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a30abdbc-c09a-11e4-bec3-705681abff85"], ["organization_id", "a30c56a4-c09a-11e4-ab41-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.098249"], ["updated_at", "2015-03-02 05:11:52.098249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a30b6fdc-c09a-11e4-8c08-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a30c56a4-c09a-11e4-ab41-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a30b6fdc-c09a-11e4-8c08-705681abff85"], ["organization_id", "a30c56a4-c09a-11e4-ab41-705681abff85"], ["created_at", "2015-03-02 05:11:52.101558"], ["updated_at", "2015-03-02 05:11:52.101558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$oPYw8cx9LUNFsSBpf2mrn.J8Y58QdHESn/edzLmPypAht/DMUNajq"], ["created_at", "2015-03-02 05:11:52.106269"], ["updated_at", "2015-03-02 05:11:52.106269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.107890"], ["user_id", "a30e2e0c-c09a-11e4-b38c-705681abff85"], ["created_at", "2015-03-02 05:11:52.108672"], ["updated_at", "2015-03-02 05:11:52.108672"], ["token", "dKMWqTvOAX-mDnxMrxl_d34MY2uCDOo8aCk4SycQdKM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'a30c56a4-c09a-11e4-ab41-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "a30c56a4-c09a-11e4-ab41-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.112786"], ["updated_at", "2015-03-02 05:11:52.112786"], ["token", "6AzK-yspA5W16yGPMKg5GCeMamx1vYBiQB4ucVuVJGI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (4.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$iEBSLevfTQCUNRXggAleVe/DzjLbCKhULCeu3lqcw60VDnlfq3MSq"], ["created_at", "2015-03-02 05:11:52.129139"], ["updated_at", "2015-03-02 05:11:52.129139"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$hRa8xj7Up1cv3Cqdj31n1Oej7pMFRR4atz4Bm9etINIQ8ew3WUd8K"], ["created_at", "2015-03-02 05:11:52.141870"], ["updated_at", "2015-03-02 05:11:52.141870"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.144136"], ["user_id", "a312629c-c09a-11e4-87e1-705681abff85"], ["created_at", "2015-03-02 05:11:52.145583"], ["updated_at", "2015-03-02 05:11:52.145583"], ["token", "S1wOKSMBFRxMeTrSaevKS1JeeFjJjlJzZECGxwt6HKM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.150139"], ["updated_at", "2015-03-02 05:11:52.150139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a312629c-c09a-11e4-87e1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a314e10c-c09a-11e4-9197-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a312629c-c09a-11e4-87e1-705681abff85"], ["organization_id", "a314e10c-c09a-11e4-9197-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.153701"], ["updated_at", "2015-03-02 05:11:52.153701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a313a152-c09a-11e4-9e7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a314e10c-c09a-11e4-9197-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a313a152-c09a-11e4-9e7c-705681abff85"], ["organization_id", "a314e10c-c09a-11e4-9197-705681abff85"], ["created_at", "2015-03-02 05:11:52.156834"], ["updated_at", "2015-03-02 05:11:52.156834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$ilITMLKrsbMxFFCcLVlP2./SB12d0ULS4armINXLIui5MK0KxXsFm"], ["created_at", "2015-03-02 05:11:52.161313"], ["updated_at", "2015-03-02 05:11:52.161313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.163272"], ["user_id", "a3169ff6-c09a-11e4-93ff-705681abff85"], ["created_at", "2015-03-02 05:11:52.164042"], ["updated_at", "2015-03-02 05:11:52.164042"], ["token", "A89o9n9c1Hhii4Xfd4Vk6mENXWMpOwXIgZYKE1qL6po"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'a314e10c-c09a-11e4-9197-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "a314e10c-c09a-11e4-9197-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.167837"], ["updated_at", "2015-03-02 05:11:52.167837"], ["token", "UQUtJs73bzK0xrIX8-iN0_CCJU-x4_2s5s1TW7Ickvg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"UQUtJs73bzK0xrIX8-iN0_CCJU-x4_2s5s1TW7Ickvg", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:52.173579' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A89o9n9c1Hhii4Xfd4Vk6mENXWMpOwXIgZYKE1qL6po"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:52.175102"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:52.176170"], ["id", "a3170342-c09a-11e4-a7f9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3169ff6-c09a-11e4-93ff-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3169ff6-c09a-11e4-93ff-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "UQUtJs73bzK0xrIX8-iN0_CCJU-x4_2s5s1TW7Ickvg"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a314e10c-c09a-11e4-9197-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a314e10c-c09a-11e4-9197-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3169ff6-c09a-11e4-93ff-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a314e10c-c09a-11e4-9197-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3169ff6-c09a-11e4-93ff-705681abff85"], ["admin", "t"], ["organization_id", "a314e10c-c09a-11e4-9197-705681abff85"], ["created_at", "2015-03-02 05:11:52.188004"], ["updated_at", "2015-03-02 05:11:52.188004"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a31795be-c09a-11e4-95ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 1.1ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$EHN4.uucOg7yz6.vP0Lad.61OLLdNVNohI4uJW4eSDCC4zOEnX.0u"], ["created_at", "2015-03-02 05:11:52.197836"], ["updated_at", "2015-03-02 05:11:52.197836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$8eG4hzix59xFq.ZEPTRtu.5oql2vL2zG3NQ0te.s/k5Yh0YnluleS"], ["created_at", "2015-03-02 05:11:52.202281"], ["updated_at", "2015-03-02 05:11:52.202281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.203885"], ["user_id", "a31c2a84-c09a-11e4-aaec-705681abff85"], ["created_at", "2015-03-02 05:11:52.204697"], ["updated_at", "2015-03-02 05:11:52.204697"], ["token", "TB7UwoDvqKUyyPLPemLHC2apOKTZuvk_AvPtXCtYXug"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.208200"], ["updated_at", "2015-03-02 05:11:52.208200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a31c2a84-c09a-11e4-aaec-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a31dbc32-c09a-11e4-9761-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a31c2a84-c09a-11e4-aaec-705681abff85"], ["organization_id", "a31dbc32-c09a-11e4-9761-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.211629"], ["updated_at", "2015-03-02 05:11:52.211629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a31cd218-c09a-11e4-aecc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a31dbc32-c09a-11e4-9761-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a31cd218-c09a-11e4-aecc-705681abff85"], ["organization_id", "a31dbc32-c09a-11e4-9761-705681abff85"], ["created_at", "2015-03-02 05:11:52.214882"], ["updated_at", "2015-03-02 05:11:52.214882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$FEZDlowy67w3hOHJA05nUeNn6Sg6VoUVnIHYx6GldsjL6cXKYqNoG"], ["created_at", "2015-03-02 05:11:52.219301"], ["updated_at", "2015-03-02 05:11:52.219301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.220959"], ["user_id", "a31f6b18-c09a-11e4-b7eb-705681abff85"], ["created_at", "2015-03-02 05:11:52.221760"], ["updated_at", "2015-03-02 05:11:52.221760"], ["token", "F29bfvxiMYpZ34JWHbXNgU8UxIVMkcauWq8GHvDo6yI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'a31dbc32-c09a-11e4-9761-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "a31dbc32-c09a-11e4-9761-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.225415"], ["updated_at", "2015-03-02 05:11:52.225415"], ["token", "TnouSoVZPBUAKC9XJjSfYlPF9eYfhl8jhFDt_Ooa9b4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:52.245970' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "F29bfvxiMYpZ34JWHbXNgU8UxIVMkcauWq8GHvDo6yI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:52.253028"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:52.255141"], ["id", "a31fd2c4-c09a-11e4-95b5-705681abff85"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a31f6b18-c09a-11e4-b7eb-705681abff85"]] Clubhouse::Organization Load (29.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a31f6b18-c09a-11e4-b7eb-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 49ms  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$TaTTcRo8dzX.cObOWy8oTeEqKCut.ldidi8SKoRZlMHCNjE44KDZi"], ["created_at", "2015-03-02 05:11:52.305189"], ["updated_at", "2015-03-02 05:11:52.305189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$J33ubOJOd8ZPhYq9iRbKf.yPCALHRj12v0CXZdQzWkA0WjQ5uD72u"], ["created_at", "2015-03-02 05:11:52.312843"], ["updated_at", "2015-03-02 05:11:52.312843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.315595"], ["user_id", "a32c9dba-c09a-11e4-92c4-705681abff85"], ["created_at", "2015-03-02 05:11:52.317269"], ["updated_at", "2015-03-02 05:11:52.317269"], ["token", "FXo3MNeVsv58klc7ajnbhJQGcDjes2D09m092hwPqtE"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.324407"], ["updated_at", "2015-03-02 05:11:52.324407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a32c9dba-c09a-11e4-92c4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a32f898a-c09a-11e4-a7ef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a32c9dba-c09a-11e4-92c4-705681abff85"], ["organization_id", "a32f898a-c09a-11e4-a7ef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.329681"], ["updated_at", "2015-03-02 05:11:52.329681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a32dc7d0-c09a-11e4-a8f3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a32f898a-c09a-11e4-a7ef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a32dc7d0-c09a-11e4-a8f3-705681abff85"], ["organization_id", "a32f898a-c09a-11e4-a7ef-705681abff85"], ["created_at", "2015-03-02 05:11:52.334125"], ["updated_at", "2015-03-02 05:11:52.334125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:52.339649' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FXo3MNeVsv58klc7ajnbhJQGcDjes2D09m092hwPqtE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:52.341412"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:52.342668"], ["id", "a32e8008-c09a-11e4-887d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a32c9dba-c09a-11e4-92c4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a32c9dba-c09a-11e4-92c4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a32c9dba-c09a-11e4-92c4-705681abff85' LIMIT 1 [["organization_id", "a32f898a-c09a-11e4-a7ef-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "a32f898a-c09a-11e4-a7ef-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('a32c9dba-c09a-11e4-92c4-705681abff85', 'a32dc7d0-c09a-11e4-a8f3-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a32f898a-c09a-11e4-a7ef-705681abff85') Completed 200 OK in 15ms (Views: 4.4ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$RY42nklD9Rzp5QdBbTMYd.kgb38jXIgd./ZkKf05JX2PSxbg2RHu6"], ["created_at", "2015-03-02 05:11:52.360875"], ["updated_at", "2015-03-02 05:11:52.360875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$UDJfbJj0iNlsZ4lAYD6I2.6Vbi.44UIZGztxMYdBa2gb96xQPRCga"], ["created_at", "2015-03-02 05:11:52.365635"], ["updated_at", "2015-03-02 05:11:52.365635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.367188"], ["user_id", "a33508ec-c09a-11e4-8d38-705681abff85"], ["created_at", "2015-03-02 05:11:52.367965"], ["updated_at", "2015-03-02 05:11:52.367965"], ["token", "ltSgwURQLEKmXNfKMPkHohA1yIAwEpajInhibC1hsxc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.371559"], ["updated_at", "2015-03-02 05:11:52.371559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a33508ec-c09a-11e4-8d38-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a336a62a-c09a-11e4-b7da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a33508ec-c09a-11e4-8d38-705681abff85"], ["organization_id", "a336a62a-c09a-11e4-b7da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.374850"], ["updated_at", "2015-03-02 05:11:52.374850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a335bfbc-c09a-11e4-9692-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a336a62a-c09a-11e4-b7da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a335bfbc-c09a-11e4-9692-705681abff85"], ["organization_id", "a336a62a-c09a-11e4-b7da-705681abff85"], ["created_at", "2015-03-02 05:11:52.377987"], ["updated_at", "2015-03-02 05:11:52.377987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$9j9W9.mqOzZcf8O/tgt8yOXGi1QZedgh3ecWlj36yYocmDAOXvS0C"], ["created_at", "2015-03-02 05:11:52.388525"], ["updated_at", "2015-03-02 05:11:52.388525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$e1pLXrKIWzuKjxumNruITe3mnfU8OXo2zPeImuGY2pNXUWTua7dX."], ["created_at", "2015-03-02 05:11:52.393352"], ["updated_at", "2015-03-02 05:11:52.393352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.395049"], ["user_id", "a33940d8-c09a-11e4-9616-705681abff85"], ["created_at", "2015-03-02 05:11:52.395862"], ["updated_at", "2015-03-02 05:11:52.395862"], ["token", "zvXmR1-y6dHI5hVBtEqx29iIZWn2s5TCU3-mc9TI_8s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.399776"], ["updated_at", "2015-03-02 05:11:52.399776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a33940d8-c09a-11e4-9616-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a33af662-c09a-11e4-aeb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a33940d8-c09a-11e4-9616-705681abff85"], ["organization_id", "a33af662-c09a-11e4-aeb9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.403290"], ["updated_at", "2015-03-02 05:11:52.403290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a339fbf4-c09a-11e4-a232-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a33af662-c09a-11e4-aeb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a339fbf4-c09a-11e4-a232-705681abff85"], ["organization_id", "a33af662-c09a-11e4-aeb9-705681abff85"], ["created_at", "2015-03-02 05:11:52.406616"], ["updated_at", "2015-03-02 05:11:52.406616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/a33b7f2e-c09a-11e4-850d-705681abff85" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"a33b7f2e-c09a-11e4-850d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:52.411602' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zvXmR1-y6dHI5hVBtEqx29iIZWn2s5TCU3-mc9TI_8s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:52.413310"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:52.414740"], ["id", "a33a6620-c09a-11e4-b022-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a33940d8-c09a-11e4-9616-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a33940d8-c09a-11e4-9616-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a33940d8-c09a-11e4-9616-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "a33940d8-c09a-11e4-9616-705681abff85"], ["id", "a33b7f2e-c09a-11e4-850d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a33af662-c09a-11e4-aeb9-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a33940d8-c09a-11e4-9616-705681abff85"]] Completed 200 OK in 12ms (Views: 2.1ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$F6pIrIf1HYxqoMhhz7zdvu.R1aZ97RlstCUK/Y2c1/R83VvCgbCfC"], ["created_at", "2015-03-02 05:11:52.430022"], ["updated_at", "2015-03-02 05:11:52.430022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$1pTR7SQh/b/syy5tvQ1PKOAI4DJGm43.9/EWk.8nD3EWUaPdMEEyK"], ["created_at", "2015-03-02 05:11:52.434529"], ["updated_at", "2015-03-02 05:11:52.434529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.436063"], ["user_id", "a33f9758-c09a-11e4-a9e6-705681abff85"], ["created_at", "2015-03-02 05:11:52.436855"], ["updated_at", "2015-03-02 05:11:52.436855"], ["token", "llG-YgnSFK3nqMzaCEm1REylpVgET2XSLMufZ3I-_sg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.440519"], ["updated_at", "2015-03-02 05:11:52.440519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a33f9758-c09a-11e4-a9e6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3412b68-c09a-11e4-afc4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a33f9758-c09a-11e4-a9e6-705681abff85"], ["organization_id", "a3412b68-c09a-11e4-afc4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.443896"], ["updated_at", "2015-03-02 05:11:52.443896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a34042e8-c09a-11e4-911f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3412b68-c09a-11e4-afc4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a34042e8-c09a-11e4-911f-705681abff85"], ["organization_id", "a3412b68-c09a-11e4-afc4-705681abff85"], ["created_at", "2015-03-02 05:11:52.447741"], ["updated_at", "2015-03-02 05:11:52.447741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$GvbFnRkdPL.1Phf3CpOYFuGTBgBhBMjACjeMsRt.SNYivYIAATilK"], ["created_at", "2015-03-02 05:11:52.458907"], ["updated_at", "2015-03-02 05:11:52.458907"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$fCZ7S4k3/veq3PGqVUGIJO66s28mQmd4d6laZvJpfpYcBo8yN8YVW"], ["created_at", "2015-03-02 05:11:52.464516"], ["updated_at", "2015-03-02 05:11:52.464516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.466833"], ["user_id", "a34400cc-c09a-11e4-9676-705681abff85"], ["created_at", "2015-03-02 05:11:52.467673"], ["updated_at", "2015-03-02 05:11:52.467673"], ["token", "uAq1Fcz7vTriw5mtL00sUDhxhqWhx9L2lOhpuI5Pc5s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.472459"], ["updated_at", "2015-03-02 05:11:52.472459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a34400cc-c09a-11e4-9676-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3461150-c09a-11e4-a786-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a34400cc-c09a-11e4-9676-705681abff85"], ["organization_id", "a3461150-c09a-11e4-a786-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.476930"], ["updated_at", "2015-03-02 05:11:52.476930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a344ee6a-c09a-11e4-a1c9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3461150-c09a-11e4-a786-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a344ee6a-c09a-11e4-a1c9-705681abff85"], ["organization_id", "a3461150-c09a-11e4-a786-705681abff85"], ["created_at", "2015-03-02 05:11:52.480836"], ["updated_at", "2015-03-02 05:11:52.480836"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a34756a0-c09a-11e4-93ab-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"a34756a0-c09a-11e4-93ab-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:52.495362' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uAq1Fcz7vTriw5mtL00sUDhxhqWhx9L2lOhpuI5Pc5s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:52.496922"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:52.498871"], ["id", "a345617e-c09a-11e4-a2c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a34400cc-c09a-11e4-9676-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a34400cc-c09a-11e4-9676-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a34400cc-c09a-11e4-9676-705681abff85' LIMIT 1 [["organization_id", "a3461150-c09a-11e4-a786-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a3461150-c09a-11e4-a786-705681abff85"], ["id", "a34756a0-c09a-11e4-93ab-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a344ee6a-c09a-11e4-a1c9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a3461150-c09a-11e4-a786-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a344ee6a-c09a-11e4-a1c9-705681abff85' AND "clubhouse_memberships"."id" != 'a34756a0-c09a-11e4-93ab-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3461150-c09a-11e4-a786-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:11:52.510328"], ["id", "a34756a0-c09a-11e4-93ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.2ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$qvu9jwnps1740aFn1xMcwOjxOEC6eibunL09myZGZnGSzRUDmfB1a"], ["created_at", "2015-03-02 05:11:52.520969"], ["updated_at", "2015-03-02 05:11:52.520969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$22.ZPMukh9g6eMD0XxKnyuCz38mxR.QuInoKMML4MrfcBvVP95tCS"], ["created_at", "2015-03-02 05:11:52.526398"], ["updated_at", "2015-03-02 05:11:52.526398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.528761"], ["user_id", "a34d9524-c09a-11e4-8e27-705681abff85"], ["created_at", "2015-03-02 05:11:52.529744"], ["updated_at", "2015-03-02 05:11:52.529744"], ["token", "VSKkNWfrfyXz-2_gGAbigZMRIVgkvYMW68K9ZN6fmNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.534824"], ["updated_at", "2015-03-02 05:11:52.534824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a34d9524-c09a-11e4-8e27-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a34f9220-c09a-11e4-aa89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a34d9524-c09a-11e4-8e27-705681abff85"], ["organization_id", "a34f9220-c09a-11e4-aa89-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.539523"], ["updated_at", "2015-03-02 05:11:52.539523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a34e64d6-c09a-11e4-8ef0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a34f9220-c09a-11e4-aa89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a34e64d6-c09a-11e4-8ef0-705681abff85"], ["organization_id", "a34f9220-c09a-11e4-aa89-705681abff85"], ["created_at", "2015-03-02 05:11:52.543113"], ["updated_at", "2015-03-02 05:11:52.543113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a350537c-c09a-11e4-9c61-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"a350537c-c09a-11e4-9c61-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:52.550279' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VSKkNWfrfyXz-2_gGAbigZMRIVgkvYMW68K9ZN6fmNY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:52.552977"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:52.554159"], ["id", "a34edee8-c09a-11e4-84e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a34d9524-c09a-11e4-8e27-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a34d9524-c09a-11e4-8e27-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a34d9524-c09a-11e4-8e27-705681abff85' LIMIT 1 [["organization_id", "a34f9220-c09a-11e4-aa89-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a34f9220-c09a-11e4-aa89-705681abff85"], ["id", "a350537c-c09a-11e4-9c61-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a34d9524-c09a-11e4-8e27-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$bzGTCSYoeVfC4IbNxzKDauMF0A7jA/.ujEIup/3ocSsnGx.140ur2"], ["created_at", "2015-03-02 05:11:52.568782"], ["updated_at", "2015-03-02 05:11:52.568782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$tEk13fVNA7jhcQrwox6RUOeRdnH3gLLhWpF3rvaNe72uhijfkepDu"], ["created_at", "2015-03-02 05:11:52.574416"], ["updated_at", "2015-03-02 05:11:52.574416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.576035"], ["user_id", "a354cc9a-c09a-11e4-b6e1-705681abff85"], ["created_at", "2015-03-02 05:11:52.576826"], ["updated_at", "2015-03-02 05:11:52.576826"], ["token", "RjC5TESOS9zYOnesNIbvkyv5-V9T4kYe6vHEghLAxbQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.580640"], ["updated_at", "2015-03-02 05:11:52.580640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a354cc9a-c09a-11e4-b6e1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a356bf50-c09a-11e4-bacc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a354cc9a-c09a-11e4-b6e1-705681abff85"], ["organization_id", "a356bf50-c09a-11e4-bacc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.585628"], ["updated_at", "2015-03-02 05:11:52.585628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3559c38-c09a-11e4-8741-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a356bf50-c09a-11e4-bacc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3559c38-c09a-11e4-8741-705681abff85"], ["organization_id", "a356bf50-c09a-11e4-bacc-705681abff85"], ["created_at", "2015-03-02 05:11:52.589769"], ["updated_at", "2015-03-02 05:11:52.589769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$EJ838SrZ/9PONQYN1TdMPe1LVPCWNssJXTwNzo4gvseEVSbPFufaK"], ["created_at", "2015-03-02 05:11:52.602311"], ["updated_at", "2015-03-02 05:11:52.602311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$5g50JQ00ZeRg2WvmQj6rr.yWjj0hqZiTjJTjsD92/SH9MB0/8Finq"], ["created_at", "2015-03-02 05:11:52.606939"], ["updated_at", "2015-03-02 05:11:52.606939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:11:52.608528"], ["user_id", "a359e2e8-c09a-11e4-9cc6-705681abff85"], ["created_at", "2015-03-02 05:11:52.609292"], ["updated_at", "2015-03-02 05:11:52.609292"], ["token", "EkLPKZ28W7ijWNlcwB0tmpcvkyOJlC-Cldf9inbnQf0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.613584"], ["updated_at", "2015-03-02 05:11:52.613584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a359e2e8-c09a-11e4-9cc6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a35b9aca-c09a-11e4-8f49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a359e2e8-c09a-11e4-9cc6-705681abff85"], ["organization_id", "a35b9aca-c09a-11e4-8f49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:11:52.617976"], ["updated_at", "2015-03-02 05:11:52.617976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a35a9256-c09a-11e4-815c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a35b9aca-c09a-11e4-8f49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a35a9256-c09a-11e4-815c-705681abff85"], ["organization_id", "a35b9aca-c09a-11e4-8f49-705681abff85"], ["created_at", "2015-03-02 05:11:52.621679"], ["updated_at", "2015-03-02 05:11:52.621679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/a35cd5ac-c09a-11e4-8d78-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:11:52 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"a35cd5ac-c09a-11e4-8d78-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:11:52.627399' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EkLPKZ28W7ijWNlcwB0tmpcvkyOJlC-Cldf9inbnQf0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:11:52.628849"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:11:52.629999"], ["id", "a35b0966-c09a-11e4-8e08-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a359e2e8-c09a-11e4-9cc6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a359e2e8-c09a-11e4-9cc6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a359e2e8-c09a-11e4-9cc6-705681abff85' LIMIT 1 [["organization_id", "a35b9aca-c09a-11e4-8f49-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a35b9aca-c09a-11e4-8f49-705681abff85"], ["id", "a35cd5ac-c09a-11e4-8d78-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a35b9aca-c09a-11e4-8f49-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a35a9256-c09a-11e4-815c-705681abff85"]] Completed 200 OK in 13ms (Views: 2.5ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.672628"], ["updated_at", "2015-03-02 05:11:52.672628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.677384"], ["updated_at", "2015-03-02 05:11:52.677384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.686224"], ["updated_at", "2015-03-02 05:11:52.686224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.700464"], ["updated_at", "2015-03-02 05:11:52.700464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a368dafa-c09a-11e4-9ed2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:11:52.705910"], ["updated_at", "2015-03-02 05:11:52.705910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (10.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:01.882916"], ["updated_at", "2015-03-02 05:19:01.882916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a33a763c-c09b-11e4-943b-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a33a763c-c09b-11e4-943b-705681abff85"], ["created_at", "2015-03-02 05:19:01.897608"], ["updated_at", "2015-03-02 05:19:01.897608"], ["token", "zzfdS-2ZGWCEvQyF86RU0-ce1UEV3KlXs0HENK0bNPQ"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a33a763c-c09b-11e4-943b-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a33a763c-c09b-11e4-943b-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a33a763c-c09b-11e4-943b-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a33a763c-c09b-11e4-943b-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:01.925974"], ["updated_at", "2015-03-02 05:19:01.925974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a33f78ee-c09b-11e4-b6b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "a33f78ee-c09b-11e4-b6b9-705681abff85"], ["created_at", "2015-03-02 05:19:01.929364"], ["updated_at", "2015-03-02 05:19:01.929364"], ["token", "Kzmx-fEdqf5iSKquAQOCvSc1pKb3y1ZBVf-fXXom_6g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$.MpqwefaSOqOVxMygwxNFuP4k6f3zuEd0awfpoZi/J7qfOLGnBhXe"], ["created_at", "2015-03-02 05:19:01.954447"], ["updated_at", "2015-03-02 05:19:01.954447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:01.963830"], ["user_id", "a343d88a-c09b-11e4-807c-705681abff85"], ["created_at", "2015-03-02 05:19:01.964993"], ["updated_at", "2015-03-02 05:19:01.964993"], ["token", "m7SsAPvFufE456RpV_H9YfdSdWXJdP_7v_qnv-pD8rg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:01.969917"], ["updated_at", "2015-03-02 05:19:01.969917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a343d88a-c09b-11e4-807c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a346353a-c09b-11e4-ad61-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a343d88a-c09b-11e4-807c-705681abff85"], ["organization_id", "a346353a-c09b-11e4-ad61-705681abff85"], ["created_at", "2015-03-02 05:19:01.985516"], ["updated_at", "2015-03-02 05:19:01.985516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$gKPA9KGxan5lHjWLd8M4o.8ECm7jM5i2NewoKjfPZwxrvrNGZyuL."], ["created_at", "2015-03-02 05:19:01.990947"], ["updated_at", "2015-03-02 05:19:01.990947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:01.994340"], ["updated_at", "2015-03-02 05:19:01.994340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3496386-c09b-11e4-800c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a349ea68-c09b-11e4-8d8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3496386-c09b-11e4-800c-705681abff85"], ["organization_id", "a349ea68-c09b-11e4-8d8c-705681abff85"], ["created_at", "2015-03-02 05:19:01.997837"], ["updated_at", "2015-03-02 05:19:01.997837"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.032375' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "m7SsAPvFufE456RpV_H9YfdSdWXJdP_7v_qnv-pD8rg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.038401"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.039702"], ["id", "a3458a54-c09b-11e4-8da7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a343d88a-c09b-11e4-807c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a343d88a-c09b-11e4-807c-705681abff85"]] Completed 200 OK in 27ms (Views: 4.2ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (6.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$jYZaYX/xb7pRoGKTNTgSNevsDj2V69BLalhI8Wj8qO/SwA5RAMj4C"], ["created_at", "2015-03-02 05:19:02.067508"], ["updated_at", "2015-03-02 05:19:02.067508"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.076221"], ["user_id", "a3551d2a-c09b-11e4-aef7-705681abff85"], ["created_at", "2015-03-02 05:19:02.077054"], ["updated_at", "2015-03-02 05:19:02.077054"], ["token", "eCjxC5gH_WrWbZr7CZJSiY64qJt11Ks9t2ZxdBDn7vc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.080840"], ["updated_at", "2015-03-02 05:19:02.080840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3551d2a-c09b-11e4-aef7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a35717ba-c09b-11e4-a7e3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3551d2a-c09b-11e4-aef7-705681abff85"], ["organization_id", "a35717ba-c09b-11e4-a7e3-705681abff85"], ["created_at", "2015-03-02 05:19:02.084657"], ["updated_at", "2015-03-02 05:19:02.084657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$QgA3HKJvhAREjyiOdNWHa.nzLVHHLnAXVKNe7.Yq7A7SnWidc9cK."], ["created_at", "2015-03-02 05:19:02.089783"], ["updated_at", "2015-03-02 05:19:02.089783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.093116"], ["updated_at", "2015-03-02 05:19:02.093116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a358774a-c09b-11e4-ae8c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a358f990-c09b-11e4-ae60-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a358774a-c09b-11e4-ae8c-705681abff85"], ["organization_id", "a358f990-c09b-11e4-ae60-705681abff85"], ["created_at", "2015-03-02 05:19:02.096633"], ["updated_at", "2015-03-02 05:19:02.096633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$thwnPv2XJBSq0hx9x8QdxeKsiMmKXn4EeStzGdF.8/H8/TCWhXoWq"], ["created_at", "2015-03-02 05:19:02.109669"], ["updated_at", "2015-03-02 05:19:02.109669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.111552"], ["user_id", "a35b8426-c09b-11e4-9673-705681abff85"], ["created_at", "2015-03-02 05:19:02.112377"], ["updated_at", "2015-03-02 05:19:02.112377"], ["token", "tId783tQwuYIK8URt-8klmEtn5JS52hQL3p92U7QP1U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.115937"], ["updated_at", "2015-03-02 05:19:02.115937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a35b8426-c09b-11e4-9673-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a35c7070-c09b-11e4-916e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a35b8426-c09b-11e4-9673-705681abff85"], ["organization_id", "a35c7070-c09b-11e4-916e-705681abff85"], ["created_at", "2015-03-02 05:19:02.119647"], ["updated_at", "2015-03-02 05:19:02.119647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-7" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.125284' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tId783tQwuYIK8URt-8klmEtn5JS52hQL3p92U7QP1U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.126797"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.127903"], ["id", "a35befc4-c09b-11e4-bd1d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a35b8426-c09b-11e4-9673-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a35b8426-c09b-11e4-9673-705681abff85"], ["name", "org-7"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$O5R/iBCFdF8EHZHCWM1Beeid60qpEKUL.jgA.rOspgMU79NEAKTOC"], ["created_at", "2015-03-02 05:19:02.140589"], ["updated_at", "2015-03-02 05:19:02.140589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.142811"], ["user_id", "a3604326-c09b-11e4-92a7-705681abff85"], ["created_at", "2015-03-02 05:19:02.143752"], ["updated_at", "2015-03-02 05:19:02.143752"], ["token", "x2KV07vXix9bJZzF2TXN-a80k6LG6ea7n9uj5yiBM6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.148120"], ["updated_at", "2015-03-02 05:19:02.148120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3604326-c09b-11e4-92a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3616332-c09b-11e4-90ad-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3604326-c09b-11e4-92a7-705681abff85"], ["organization_id", "a3616332-c09b-11e4-90ad-705681abff85"], ["created_at", "2015-03-02 05:19:02.151975"], ["updated_at", "2015-03-02 05:19:02.151975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$g6l9qPTT6fUHx9uIP0DvE.vNenPexUPUoOwW5MPcNAeWqUTh1ZqY."], ["created_at", "2015-03-02 05:19:02.163554"], ["updated_at", "2015-03-02 05:19:02.163554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.165350"], ["user_id", "a363ba56-c09b-11e4-a729-705681abff85"], ["created_at", "2015-03-02 05:19:02.166295"], ["updated_at", "2015-03-02 05:19:02.166295"], ["token", "u-NP-xwrhw1oDWEHY9lQUHE7qf8W4lw7ejy8KWSMfrM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.172636"], ["updated_at", "2015-03-02 05:19:02.172636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a363ba56-c09b-11e4-a729-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3651a40-c09b-11e4-9b50-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a363ba56-c09b-11e4-a729-705681abff85"], ["organization_id", "a3651a40-c09b-11e4-9b50-705681abff85"], ["created_at", "2015-03-02 05:19:02.176125"], ["updated_at", "2015-03-02 05:19:02.176125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$IV6c8BnqfU0jIEs1uYhxue2PKIbqtv/V8VIWtXdQCKpRvT/H3M.3O"], ["created_at", "2015-03-02 05:19:02.187987"], ["updated_at", "2015-03-02 05:19:02.187987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.190503"], ["user_id", "a3677a92-c09b-11e4-91a8-705681abff85"], ["created_at", "2015-03-02 05:19:02.191525"], ["updated_at", "2015-03-02 05:19:02.191525"], ["token", "y9B68rWGwUSVpqMTz9d0BEzIdpS1StNuT1_7-LpM9zs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.195654"], ["updated_at", "2015-03-02 05:19:02.195654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3677a92-c09b-11e4-91a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a368a084-c09b-11e4-85fc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3677a92-c09b-11e4-91a8-705681abff85"], ["organization_id", "a368a084-c09b-11e4-85fc-705681abff85"], ["created_at", "2015-03-02 05:19:02.199460"], ["updated_at", "2015-03-02 05:19:02.199460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.206962' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y9B68rWGwUSVpqMTz9d0BEzIdpS1StNuT1_7-LpM9zs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.208493"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.218293"], ["id", "a36806b0-c09b-11e4-8008-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3677a92-c09b-11e4-91a8-705681abff85"]] Clubhouse::Organization Load (10.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3677a92-c09b-11e4-91a8-705681abff85"], ["name", "org-10"]]  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a368a084-c09b-11e4-85fc-705681abff85') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 47ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$uJHYkxxGJsNwq9S6zp8WEO1ylQ691GFaCJVCSPEGhZzBgRwexw0Ny"], ["created_at", "2015-03-02 05:19:02.263231"], ["updated_at", "2015-03-02 05:19:02.263231"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.267681"], ["user_id", "a37338fa-c09b-11e4-8a13-705681abff85"], ["created_at", "2015-03-02 05:19:02.269408"], ["updated_at", "2015-03-02 05:19:02.269408"], ["token", "Pf0Kyrb2MzbW4FQvkBpABfR7DnXBupqc12iEMGQFJ-Y"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.282997"], ["updated_at", "2015-03-02 05:19:02.282997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a37338fa-c09b-11e4-8a13-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a37601b6-c09b-11e4-85b4-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a37338fa-c09b-11e4-8a13-705681abff85"], ["organization_id", "a37601b6-c09b-11e4-85b4-705681abff85"], ["created_at", "2015-03-02 05:19:02.297301"], ["updated_at", "2015-03-02 05:19:02.297301"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-11" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-11", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.307709' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Pf0Kyrb2MzbW4FQvkBpABfR7DnXBupqc12iEMGQFJ-Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.310021"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.311809"], ["id", "a374ba0e-c09b-11e4-ad0d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a37338fa-c09b-11e4-8a13-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a37338fa-c09b-11e4-8a13-705681abff85"], ["name", "org-11"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a37601b6-c09b-11e4-85b4-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:19:02.321303"], ["id", "a37601b6-c09b-11e4-85b4-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.7ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$uyGMwhxIyOlYFWElut0SaOQKmE2sQMhL7jexpMGnMFLEKoY65547O"], ["created_at", "2015-03-02 05:19:02.330990"], ["updated_at", "2015-03-02 05:19:02.330990"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.333068"], ["user_id", "a37d452a-c09b-11e4-b506-705681abff85"], ["created_at", "2015-03-02 05:19:02.333876"], ["updated_at", "2015-03-02 05:19:02.333876"], ["token", "yUoE8-hx_FyGdK2PuddhnmsqK9_6ZBwH_Ioj2K5_bFs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.338863"], ["updated_at", "2015-03-02 05:19:02.338863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a37d452a-c09b-11e4-b506-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a37e7846-c09b-11e4-ae68-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a37d452a-c09b-11e4-b506-705681abff85"], ["organization_id", "a37e7846-c09b-11e4-ae68-705681abff85"], ["created_at", "2015-03-02 05:19:02.342857"], ["updated_at", "2015-03-02 05:19:02.342857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$gLsl3V3V0pmy6pmAok2Ojepo55VLt70flXbKY0sfhqbWN8CpBOpVK"], ["created_at", "2015-03-02 05:19:02.353610"], ["updated_at", "2015-03-02 05:19:02.353610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.355415"], ["user_id", "a380b8f4-c09b-11e4-a6ae-705681abff85"], ["created_at", "2015-03-02 05:19:02.356509"], ["updated_at", "2015-03-02 05:19:02.356509"], ["token", "7vaPCk0TGAC9ejrNREqtcljmoawL_PhnVu0j7DDrqOE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.360063"], ["updated_at", "2015-03-02 05:19:02.360063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a380b8f4-c09b-11e4-a6ae-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a381bbf0-c09b-11e4-a8d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a380b8f4-c09b-11e4-a6ae-705681abff85"], ["organization_id", "a381bbf0-c09b-11e4-a8d5-705681abff85"], ["created_at", "2015-03-02 05:19:02.364163"], ["updated_at", "2015-03-02 05:19:02.364163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a381bbf0-c09b-11e4-a8d5-705681abff85" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"a381bbf0-c09b-11e4-a8d5-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.369797' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7vaPCk0TGAC9ejrNREqtcljmoawL_PhnVu0j7DDrqOE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.371681"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.372906"], ["id", "a3813112-c09b-11e4-bfba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a380b8f4-c09b-11e4-a6ae-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a380b8f4-c09b-11e4-a6ae-705681abff85"], ["id", "a381bbf0-c09b-11e4-a8d5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a381bbf0-c09b-11e4-a8d5-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$WCS22nVrpqmqu7Dc/TGuzOvv5Pyv7BR9/JDGTcnsqfGpYNcWfIdVW"], ["created_at", "2015-03-02 05:19:02.387581"], ["updated_at", "2015-03-02 05:19:02.387581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.389646"], ["user_id", "a385ea0e-c09b-11e4-92f8-705681abff85"], ["created_at", "2015-03-02 05:19:02.390773"], ["updated_at", "2015-03-02 05:19:02.390773"], ["token", "X51xRnJVmHbS8aBjxCVYg_Qo6vegzL-VtfsICJ0ajNM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.395013"], ["updated_at", "2015-03-02 05:19:02.395013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a385ea0e-c09b-11e4-92f8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a387090c-c09b-11e4-8107-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a385ea0e-c09b-11e4-92f8-705681abff85"], ["organization_id", "a387090c-c09b-11e4-8107-705681abff85"], ["created_at", "2015-03-02 05:19:02.398756"], ["updated_at", "2015-03-02 05:19:02.398756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a387090c-c09b-11e4-8107-705681abff85" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"a387090c-c09b-11e4-8107-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.404350' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X51xRnJVmHbS8aBjxCVYg_Qo6vegzL-VtfsICJ0ajNM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.405819"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.406819"], ["id", "a3866b3c-c09b-11e4-abc5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a385ea0e-c09b-11e4-92f8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a385ea0e-c09b-11e4-92f8-705681abff85"], ["id", "a387090c-c09b-11e4-8107-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a387090c-c09b-11e4-8107-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:19:02.413381"], ["id", "a387090c-c09b-11e4-8107-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Rp0maM9wnwnPWB.OUIrNiumbfMqRPCseYnvYWxBy147kYQRuCNjEG"], ["created_at", "2015-03-02 05:19:02.422397"], ["updated_at", "2015-03-02 05:19:02.422397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.424349"], ["user_id", "a38b3ea0-c09b-11e4-b724-705681abff85"], ["created_at", "2015-03-02 05:19:02.425232"], ["updated_at", "2015-03-02 05:19:02.425232"], ["token", "GCfG2uyX7xe_0msOMJ6dIGzL7XvDFIVGaZ56bDrE_Ug"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.428768"], ["updated_at", "2015-03-02 05:19:02.428768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a38b3ea0-c09b-11e4-b724-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a38c2d92-c09b-11e4-91f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a38b3ea0-c09b-11e4-b724-705681abff85"], ["organization_id", "a38c2d92-c09b-11e4-91f4-705681abff85"], ["created_at", "2015-03-02 05:19:02.432290"], ["updated_at", "2015-03-02 05:19:02.432290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (2.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$KjpH.T/Mg0KJyMdjRspJHuF5Me/fkg.NE1xUUdzq6aB7cKv9tGEWG"], ["created_at", "2015-03-02 05:19:02.443358"], ["updated_at", "2015-03-02 05:19:02.443358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.447627"], ["user_id", "a38e6f44-c09b-11e4-bdc8-705681abff85"], ["created_at", "2015-03-02 05:19:02.448471"], ["updated_at", "2015-03-02 05:19:02.448471"], ["token", "M9-j3leQN6L2Orcx57vVk2yIZuWc3lr-fyVqaazirDU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.452447"], ["updated_at", "2015-03-02 05:19:02.452447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a38e6f44-c09b-11e4-bdc8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a38fcc72-c09b-11e4-a14b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a38e6f44-c09b-11e4-bdc8-705681abff85"], ["organization_id", "a38fcc72-c09b-11e4-a14b-705681abff85"], ["created_at", "2015-03-02 05:19:02.456610"], ["updated_at", "2015-03-02 05:19:02.456610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.462408' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M9-j3leQN6L2Orcx57vVk2yIZuWc3lr-fyVqaazirDU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.463948"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.465002"], ["id", "a38f3b04-c09b-11e4-b610-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$..MBG3NrIzE5uEeGx1jLz.Ct0x/8MRyzJg07sYDSd5iYxlcNnrJpS"], ["created_at", "2015-03-02 05:19:02.474078"], ["updated_at", "2015-03-02 05:19:02.474078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.475734"], ["user_id", "a39319ae-c09b-11e4-a03b-705681abff85"], ["created_at", "2015-03-02 05:19:02.476524"], ["updated_at", "2015-03-02 05:19:02.476524"], ["token", "U26CCLNYsjGALo5ZvtKCLumpIpb99gL8D-O2Z9lbgag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.480343"], ["updated_at", "2015-03-02 05:19:02.480343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a39319ae-c09b-11e4-a03b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3940c38-c09b-11e4-b422-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a39319ae-c09b-11e4-a03b-705681abff85"], ["organization_id", "a3940c38-c09b-11e4-b422-705681abff85"], ["created_at", "2015-03-02 05:19:02.483652"], ["updated_at", "2015-03-02 05:19:02.483652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-17" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-17", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.489671' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U26CCLNYsjGALo5ZvtKCLumpIpb99gL8D-O2Z9lbgag"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.491478"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.492557"], ["id", "a3937fa2-c09b-11e4-b6d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-17"]] Completed 200 OK in 6ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$0cw92paKyIKv4Xl.jvuMJOREYQn9CUSiCyLS69uiz4Fwbouo35gci"], ["created_at", "2015-03-02 05:19:02.500755"], ["updated_at", "2015-03-02 05:19:02.500755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.502875"], ["user_id", "a3972ad0-c09b-11e4-a9ef-705681abff85"], ["created_at", "2015-03-02 05:19:02.503686"], ["updated_at", "2015-03-02 05:19:02.503686"], ["token", "QUEaLN2gGqXiu11_A6R5cIzSeLWrSOF83SrF4ZqMbG0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.508274"], ["updated_at", "2015-03-02 05:19:02.508274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3972ad0-c09b-11e4-a9ef-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a39853c4-c09b-11e4-b3ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3972ad0-c09b-11e4-a9ef-705681abff85"], ["organization_id", "a39853c4-c09b-11e4-b3ff-705681abff85"], ["created_at", "2015-03-02 05:19:02.512051"], ["updated_at", "2015-03-02 05:19:02.512051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/a39853c4-c09b-11e4-b3ff-705681abff85" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"a39853c4-c09b-11e4-b3ff-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.517744' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QUEaLN2gGqXiu11_A6R5cIzSeLWrSOF83SrF4ZqMbG0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.519500"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.520630"], ["id", "a397b202-c09b-11e4-8f1b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3972ad0-c09b-11e4-a9ef-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3972ad0-c09b-11e4-a9ef-705681abff85"], ["id", "a39853c4-c09b-11e4-b3ff-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a39853c4-c09b-11e4-b3ff-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$XK5YAeXw0.xNICkpX29TiuYc0HhM1y9.QBgzC4V/qCZ1aNckyXw7."], ["created_at", "2015-03-02 05:19:02.534003"], ["updated_at", "2015-03-02 05:19:02.534003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.535840"], ["user_id", "a39c40d8-c09b-11e4-a21d-705681abff85"], ["created_at", "2015-03-02 05:19:02.536673"], ["updated_at", "2015-03-02 05:19:02.536673"], ["token", "U8jZ_ZeBuWxc_nhvAHr-8jvSd0Fry0fO5JhjNg_I8Zs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.540916"], ["updated_at", "2015-03-02 05:19:02.540916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a39c40d8-c09b-11e4-a21d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a39d4b68-c09b-11e4-9b06-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a39c40d8-c09b-11e4-a21d-705681abff85"], ["organization_id", "a39d4b68-c09b-11e4-9b06-705681abff85"], ["created_at", "2015-03-02 05:19:02.544516"], ["updated_at", "2015-03-02 05:19:02.544516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$fS7Ii5LYli.Z7moOltni.egzYJqGgpc25yp6K/7Qch8ppsj4.05Xi"], ["created_at", "2015-03-02 05:19:02.555457"], ["updated_at", "2015-03-02 05:19:02.555457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.557204"], ["user_id", "a39f86d0-c09b-11e4-b412-705681abff85"], ["created_at", "2015-03-02 05:19:02.558026"], ["updated_at", "2015-03-02 05:19:02.558026"], ["token", "fOmqjj-4CzvdtGkzB6WB5gGNEO1cxX9lBlQyTbmmvgI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.561653"], ["updated_at", "2015-03-02 05:19:02.561653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a39f86d0-c09b-11e4-b412-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3a072b6-c09b-11e4-8240-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a39f86d0-c09b-11e4-b412-705681abff85"], ["organization_id", "a3a072b6-c09b-11e4-8240-705681abff85"], ["created_at", "2015-03-02 05:19:02.565160"], ["updated_at", "2015-03-02 05:19:02.565160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$7/d8ppCuvvjyyImkkuOQnuUB/dP.QgIExZ6ioMRigxocDCB9BvfWi"], ["created_at", "2015-03-02 05:19:02.576669"], ["updated_at", "2015-03-02 05:19:02.576669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.578558"], ["user_id", "a3a2c408-c09b-11e4-8d6c-705681abff85"], ["created_at", "2015-03-02 05:19:02.579397"], ["updated_at", "2015-03-02 05:19:02.579397"], ["token", "iIB2ZFMuO_YcwHMoXwCcyAeuCcF6f5q9Uyk-VbGFS6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.584318"], ["updated_at", "2015-03-02 05:19:02.584318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3a2c408-c09b-11e4-8d6c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3a3ecd4-c09b-11e4-9c7b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3a2c408-c09b-11e4-8d6c-705681abff85"], ["organization_id", "a3a3ecd4-c09b-11e4-9c7b-705681abff85"], ["created_at", "2015-03-02 05:19:02.588002"], ["updated_at", "2015-03-02 05:19:02.588002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.593297' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iIB2ZFMuO_YcwHMoXwCcyAeuCcF6f5q9Uyk-VbGFS6M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.594801"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.595943"], ["id", "a3a35166-c09b-11e4-aa31-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3a2c408-c09b-11e4-8d6c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$rvJstSqb6bKyABV3QaHRz.EGI3llpb2PIRgG6NTD0DkXAFi/mC3T2"], ["created_at", "2015-03-02 05:19:02.610195"], ["updated_at", "2015-03-02 05:19:02.610195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.612107"], ["user_id", "a3a7e5dc-c09b-11e4-a6a4-705681abff85"], ["created_at", "2015-03-02 05:19:02.612947"], ["updated_at", "2015-03-02 05:19:02.612947"], ["token", "yLC8JVVrKAaGpf_e3Wc4MzKpko1zKvYBRLD3RJrbKpE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.616589"], ["updated_at", "2015-03-02 05:19:02.616589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3a7e5dc-c09b-11e4-a6a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3a8d618-c09b-11e4-a27a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3a7e5dc-c09b-11e4-a6a4-705681abff85"], ["organization_id", "a3a8d618-c09b-11e4-a27a-705681abff85"], ["created_at", "2015-03-02 05:19:02.620296"], ["updated_at", "2015-03-02 05:19:02.620296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.626546' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yLC8JVVrKAaGpf_e3Wc4MzKpko1zKvYBRLD3RJrbKpE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.628112"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.629213"], ["id", "a3a84f04-c09b-11e4-ae8c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3a7e5dc-c09b-11e4-a6a4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.635940"], ["updated_at", "2015-03-02 05:19:02.635940"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a3abccb0-c09b-11e4-a99c-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3a7e5dc-c09b-11e4-a6a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3abccb0-c09b-11e4-a99c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3a7e5dc-c09b-11e4-a6a4-705681abff85"], ["admin", "t"], ["organization_id", "a3abccb0-c09b-11e4-a99c-705681abff85"], ["created_at", "2015-03-02 05:19:02.642042"], ["updated_at", "2015-03-02 05:19:02.642042"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 0.7ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$MDEkJARlacVV5EFRLr2XSez7GqOyNfkmpPEapP5Zgh.yUnNkj38wm"], ["created_at", "2015-03-02 05:19:02.651680"], ["updated_at", "2015-03-02 05:19:02.651680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.653741"], ["user_id", "a3ae34fa-c09b-11e4-a190-705681abff85"], ["created_at", "2015-03-02 05:19:02.654844"], ["updated_at", "2015-03-02 05:19:02.654844"], ["token", "vKuWe5Ka_IyxhOYzFBtzx3kzgBvoflieyFe4M6XNeBg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.666958"], ["updated_at", "2015-03-02 05:19:02.666958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3ae34fa-c09b-11e4-a190-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3b0884a-c09b-11e4-b77b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3ae34fa-c09b-11e4-a190-705681abff85"], ["organization_id", "a3b0884a-c09b-11e4-b77b-705681abff85"], ["created_at", "2015-03-02 05:19:02.670747"], ["updated_at", "2015-03-02 05:19:02.670747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a3b0884a-c09b-11e4-b77b-705681abff85" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"a3b0884a-c09b-11e4-b77b-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.676894' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vKuWe5Ka_IyxhOYzFBtzx3kzgBvoflieyFe4M6XNeBg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.678495"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.679536"], ["id", "a3afeb9c-c09b-11e4-a334-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3ae34fa-c09b-11e4-a190-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3ae34fa-c09b-11e4-a190-705681abff85"], ["id", "a3b0884a-c09b-11e4-b77b-705681abff85"]] Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$zucR6RMwk/JaAmaT9rKv9uam2XRxMwNVO5ljFrDq9oWdw5fEXz0aK"], ["created_at", "2015-03-02 05:19:02.692024"], ["updated_at", "2015-03-02 05:19:02.692024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.693848"], ["user_id", "a3b45f92-c09b-11e4-b60c-705681abff85"], ["created_at", "2015-03-02 05:19:02.694686"], ["updated_at", "2015-03-02 05:19:02.694686"], ["token", "5qSIwMxk7bPViyBGKyNKZ7ReswzM7cD_qxYuUQkBzG8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.698235"], ["updated_at", "2015-03-02 05:19:02.698235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3b45f92-c09b-11e4-b60c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3b54bbe-c09b-11e4-96e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3b45f92-c09b-11e4-b60c-705681abff85"], ["organization_id", "a3b54bbe-c09b-11e4-96e7-705681abff85"], ["created_at", "2015-03-02 05:19:02.702019"], ["updated_at", "2015-03-02 05:19:02.702019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$M94sXvFyIxVOSZQ5aN5UxuCPDj8aXkd5cJmPuEivJW2bchLmiSEBm"], ["created_at", "2015-03-02 05:19:02.713159"], ["updated_at", "2015-03-02 05:19:02.713159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.715131"], ["user_id", "a3b79c8e-c09b-11e4-b3d7-705681abff85"], ["created_at", "2015-03-02 05:19:02.715930"], ["updated_at", "2015-03-02 05:19:02.715930"], ["token", "3pbkVdPLqMhmGjV6MdC0R-XhxM164zBiJgL__gB9RT0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.719959"], ["updated_at", "2015-03-02 05:19:02.719959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3b79c8e-c09b-11e4-b3d7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3b89c38-c09b-11e4-90c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3b79c8e-c09b-11e4-b3d7-705681abff85"], ["organization_id", "a3b89c38-c09b-11e4-90c0-705681abff85"], ["created_at", "2015-03-02 05:19:02.724469"], ["updated_at", "2015-03-02 05:19:02.724469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-25" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-25", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.729988' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3pbkVdPLqMhmGjV6MdC0R-XhxM164zBiJgL__gB9RT0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.731458"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.732518"], ["id", "a3b80962-c09b-11e4-9408-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3b79c8e-c09b-11e4-b3d7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3b79c8e-c09b-11e4-b3d7-705681abff85"], ["name", "org-25"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a3b89c38-c09b-11e4-90c0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$QujzI6i3JQjM3GZoLRI7Sel43kZQrhRPd1NVFtjSqBg87h/1xVspa"], ["created_at", "2015-03-02 05:19:02.744606"], ["updated_at", "2015-03-02 05:19:02.744606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.746763"], ["user_id", "a3bc68c2-c09b-11e4-bdfd-705681abff85"], ["created_at", "2015-03-02 05:19:02.747625"], ["updated_at", "2015-03-02 05:19:02.747625"], ["token", "Q_btINOGdAEd_Yx5uNq2PpP8Uww_6SFgGA-mC0DT0EY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.751381"], ["updated_at", "2015-03-02 05:19:02.751381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3bc68c2-c09b-11e4-bdfd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3bd67ae-c09b-11e4-af81-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3bc68c2-c09b-11e4-bdfd-705681abff85"], ["organization_id", "a3bd67ae-c09b-11e4-af81-705681abff85"], ["created_at", "2015-03-02 05:19:02.754849"], ["updated_at", "2015-03-02 05:19:02.754849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.770856"], ["updated_at", "2015-03-02 05:19:02.770856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.797014"], ["updated_at", "2015-03-02 05:19:02.797014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.815154"], ["updated_at", "2015-03-02 05:19:02.815154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.822570"], ["updated_at", "2015-03-02 05:19:02.822570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.828403"], ["updated_at", "2015-03-02 05:19:02.828403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a3c92a76-c09b-11e4-977d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$zivJddcU9KPcyA6KGwAXguUikw8Nyllg1iddEcPtrEg/4ZYvL8Chy"], ["created_at", "2015-03-02 05:19:02.836449"], ["updated_at", "2015-03-02 05:19:02.836449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$YFGMRG07BuP4JLR5xCh/QOPvgXIflz5OELZFtrDtr.5OBbWHRLpDe"], ["created_at", "2015-03-02 05:19:02.842520"], ["updated_at", "2015-03-02 05:19:02.842520"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.845088"], ["user_id", "a3ca7534-c09b-11e4-bd54-705681abff85"], ["created_at", "2015-03-02 05:19:02.846274"], ["updated_at", "2015-03-02 05:19:02.846274"], ["token", "3vellzJDUyQwdSJ6ePmT8pc2_ruK41k-HvQaTQS3cTE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.850238"], ["updated_at", "2015-03-02 05:19:02.850238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3ca7534-c09b-11e4-bd54-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3cc86da-c09b-11e4-9351-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3ca7534-c09b-11e4-bd54-705681abff85"], ["organization_id", "a3cc86da-c09b-11e4-9351-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:02.854197"], ["updated_at", "2015-03-02 05:19:02.854197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3cb5620-c09b-11e4-befc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3cc86da-c09b-11e4-9351-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3cb5620-c09b-11e4-befc-705681abff85"], ["organization_id", "a3cc86da-c09b-11e4-9351-705681abff85"], ["created_at", "2015-03-02 05:19:02.857781"], ["updated_at", "2015-03-02 05:19:02.857781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.870948' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3vellzJDUyQwdSJ6ePmT8pc2_ruK41k-HvQaTQS3cTE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.872665"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.873867"], ["id", "a3cbf03a-c09b-11e4-a9e9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3ca7534-c09b-11e4-bd54-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3ca7534-c09b-11e4-bd54-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a3ca7534-c09b-11e4-bd54-705681abff85' LIMIT 1 [["organization_id", "a3cc86da-c09b-11e4-9351-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "a3cc86da-c09b-11e4-9351-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('a3ca7534-c09b-11e4-bd54-705681abff85', 'a3cb5620-c09b-11e4-befc-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a3cc86da-c09b-11e4-9351-705681abff85') Completed 200 OK in 22ms (Views: 11.1ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$MEBq/C.SNK7w9mEgnvzZL.JHPBkaZ2jV9lRWkGD4/DtqfaBskX2yO"], ["created_at", "2015-03-02 05:19:02.899960"], ["updated_at", "2015-03-02 05:19:02.899960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$rQ8g2xMAdCOJo4V9Kj.0NuF1HwJnNRnNPNPsVHmEgOt/DVQfwq4P6"], ["created_at", "2015-03-02 05:19:02.904738"], ["updated_at", "2015-03-02 05:19:02.904738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.906786"], ["user_id", "a3d41c06-c09b-11e4-ae2e-705681abff85"], ["created_at", "2015-03-02 05:19:02.907709"], ["updated_at", "2015-03-02 05:19:02.907709"], ["token", "wZWwze79stljGf6p_PPdRAi2hVwIn6Zny8_iVyG4Meo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.912310"], ["updated_at", "2015-03-02 05:19:02.912310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3d41c06-c09b-11e4-ae2e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3d607dc-c09b-11e4-b88f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3d41c06-c09b-11e4-ae2e-705681abff85"], ["organization_id", "a3d607dc-c09b-11e4-b88f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:02.918006"], ["updated_at", "2015-03-02 05:19:02.918006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3d4d6d2-c09b-11e4-b0a6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3d607dc-c09b-11e4-b88f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3d4d6d2-c09b-11e4-b0a6-705681abff85"], ["organization_id", "a3d607dc-c09b-11e4-b88f-705681abff85"], ["created_at", "2015-03-02 05:19:02.922511"], ["updated_at", "2015-03-02 05:19:02.922511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$2TDfGrR7RsvG6172iIE40.4Tieyjpup8S8i.t4WmQjjHT/.kbgZaa"], ["created_at", "2015-03-02 05:19:02.935001"], ["updated_at", "2015-03-02 05:19:02.935001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$TVLAi8wvVmSlaBWeO0ycsuhyNCmI9BKEN6pmdjN1w0tL.U/ynXgs6"], ["created_at", "2015-03-02 05:19:02.940238"], ["updated_at", "2015-03-02 05:19:02.940238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.942128"], ["user_id", "a3d970ca-c09b-11e4-ba10-705681abff85"], ["created_at", "2015-03-02 05:19:02.943034"], ["updated_at", "2015-03-02 05:19:02.943034"], ["token", "Yy9NVEDrRDUMfjBq0p02B3QNuD5O45UHLjAWnapebWc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.947116"], ["updated_at", "2015-03-02 05:19:02.947116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3d970ca-c09b-11e4-ba10-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3db479c-c09b-11e4-a1ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3d970ca-c09b-11e4-ba10-705681abff85"], ["organization_id", "a3db479c-c09b-11e4-a1ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:02.950836"], ["updated_at", "2015-03-02 05:19:02.950836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3da3fd2-c09b-11e4-a7f0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3db479c-c09b-11e4-a1ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3da3fd2-c09b-11e4-a7f0-705681abff85"], ["organization_id", "a3db479c-c09b-11e4-a1ae-705681abff85"], ["created_at", "2015-03-02 05:19:02.954345"], ["updated_at", "2015-03-02 05:19:02.954345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/a3dbd89c-c09b-11e4-b46a-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:19:02 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"a3dbd89c-c09b-11e4-b46a-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:02.960059' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Yy9NVEDrRDUMfjBq0p02B3QNuD5O45UHLjAWnapebWc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:02.961744"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:02.962811"], ["id", "a3daba3e-c09b-11e4-af3c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3d970ca-c09b-11e4-ba10-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3d970ca-c09b-11e4-ba10-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a3d970ca-c09b-11e4-ba10-705681abff85' LIMIT 1 [["organization_id", "a3db479c-c09b-11e4-a1ae-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a3db479c-c09b-11e4-a1ae-705681abff85"], ["id", "a3dbd89c-c09b-11e4-b46a-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3d970ca-c09b-11e4-ba10-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$8l58aoEAgWbk6XrsMNSShuB.j.HB..yQT.IIhb7QmJTPL99dqmwRS"], ["created_at", "2015-03-02 05:19:02.979155"], ["updated_at", "2015-03-02 05:19:02.979155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$dHJervRGT5xgeNDpnQYvBe3rUELjE/TQIxOoR.T4BIHszONWjWeC."], ["created_at", "2015-03-02 05:19:02.983854"], ["updated_at", "2015-03-02 05:19:02.983854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:02.985686"], ["user_id", "a3e0305e-c09b-11e4-9b2e-705681abff85"], ["created_at", "2015-03-02 05:19:02.986530"], ["updated_at", "2015-03-02 05:19:02.986530"], ["token", "nX6C688sNZICK_i5XCgbLWRMvlZD3knckZyPZj7XOmc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:02.990686"], ["updated_at", "2015-03-02 05:19:02.990686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3e0305e-c09b-11e4-9b2e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3e1ee80-c09b-11e4-b31d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3e0305e-c09b-11e4-9b2e-705681abff85"], ["organization_id", "a3e1ee80-c09b-11e4-b31d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:02.994418"], ["updated_at", "2015-03-02 05:19:02.994418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3e0e832-c09b-11e4-93cc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3e1ee80-c09b-11e4-b31d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3e0e832-c09b-11e4-93cc-705681abff85"], ["organization_id", "a3e1ee80-c09b-11e4-b31d-705681abff85"], ["created_at", "2015-03-02 05:19:02.997689"], ["updated_at", "2015-03-02 05:19:02.997689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/a3e2fed8-c09b-11e4-982c-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"a3e2fed8-c09b-11e4-982c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.003031' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nX6C688sNZICK_i5XCgbLWRMvlZD3knckZyPZj7XOmc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.004741"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.005738"], ["id", "a3e150e2-c09b-11e4-9bf0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3e0305e-c09b-11e4-9b2e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3e0305e-c09b-11e4-9b2e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a3e0305e-c09b-11e4-9b2e-705681abff85' LIMIT 1 [["organization_id", "a3e1ee80-c09b-11e4-b31d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a3e1ee80-c09b-11e4-b31d-705681abff85"], ["id", "a3e2fed8-c09b-11e4-982c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3e0e832-c09b-11e4-93cc-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "a3e2fed8-c09b-11e4-982c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$5.e/WM5BQ2WPJuWbLxkWx.ITugvkWNoaJX4y7rBtcdM9sri6G/YUa"], ["created_at", "2015-03-02 05:19:03.029401"], ["updated_at", "2015-03-02 05:19:03.029401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$m3fkflaGLzon3yJzY25xlOjI2T9IRftEfClMaxL3AWldCoab5dkY."], ["created_at", "2015-03-02 05:19:03.034783"], ["updated_at", "2015-03-02 05:19:03.034783"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.036702"], ["user_id", "a3e7de94-c09b-11e4-a34c-705681abff85"], ["created_at", "2015-03-02 05:19:03.037566"], ["updated_at", "2015-03-02 05:19:03.037566"], ["token", "B7s8BI0xZ9NH-XJvXd4WaQt4NvRbLk07ufiRDnvqDcs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.041436"], ["updated_at", "2015-03-02 05:19:03.041436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3e7de94-c09b-11e4-a34c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3e9ab48-c09b-11e4-bb86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3e7de94-c09b-11e4-a34c-705681abff85"], ["organization_id", "a3e9ab48-c09b-11e4-bb86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.045054"], ["updated_at", "2015-03-02 05:19:03.045054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3e8abb2-c09b-11e4-8dd7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3e9ab48-c09b-11e4-bb86-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3e8abb2-c09b-11e4-8dd7-705681abff85"], ["organization_id", "a3e9ab48-c09b-11e4-bb86-705681abff85"], ["created_at", "2015-03-02 05:19:03.048475"], ["updated_at", "2015-03-02 05:19:03.048475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/a3eabfe2-c09b-11e4-8734-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"a3eabfe2-c09b-11e4-8734-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.054514' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B7s8BI0xZ9NH-XJvXd4WaQt4NvRbLk07ufiRDnvqDcs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.056053"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.057140"], ["id", "a3e91c0a-c09b-11e4-8d19-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3e7de94-c09b-11e4-a34c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3e7de94-c09b-11e4-a34c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a3e7de94-c09b-11e4-a34c-705681abff85' LIMIT 1 [["organization_id", "a3e9ab48-c09b-11e4-bb86-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a3e9ab48-c09b-11e4-bb86-705681abff85"], ["id", "a3eabfe2-c09b-11e4-8734-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a3e9ab48-c09b-11e4-bb86-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3e8abb2-c09b-11e4-8dd7-705681abff85"]] Completed 200 OK in 12ms (Views: 2.3ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$44yqyOYFbhbsg0XuvyYON.3pTsgnKKqa4p5lP0UmTUDx.R2kWiyEG"], ["created_at", "2015-03-02 05:19:03.073082"], ["updated_at", "2015-03-02 05:19:03.073082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$C0CuImWACjqVCSq49mLTKOhHG1Rj0ZRkyCkh4MlqZOGo/VcYO3AUm"], ["created_at", "2015-03-02 05:19:03.077707"], ["updated_at", "2015-03-02 05:19:03.077707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.079292"], ["user_id", "a3ee8456-c09b-11e4-95cc-705681abff85"], ["created_at", "2015-03-02 05:19:03.080116"], ["updated_at", "2015-03-02 05:19:03.080116"], ["token", "kbgS_KDf-rNH-Q9Z4Yo2ndCs4W4a9jVPkf7m_iC9Y2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.083761"], ["updated_at", "2015-03-02 05:19:03.083761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3ee8456-c09b-11e4-95cc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3f02360-c09b-11e4-a711-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3ee8456-c09b-11e4-95cc-705681abff85"], ["organization_id", "a3f02360-c09b-11e4-a711-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.087265"], ["updated_at", "2015-03-02 05:19:03.087265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3ef340a-c09b-11e4-87a3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3f02360-c09b-11e4-a711-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3ef340a-c09b-11e4-87a3-705681abff85"], ["organization_id", "a3f02360-c09b-11e4-a711-705681abff85"], ["created_at", "2015-03-02 05:19:03.090450"], ["updated_at", "2015-03-02 05:19:03.090450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$WTNwj72NFD6oOrR5ovMz5OII0GWeEcLQa6LxOBBu/d5WXqvwUGdmC"], ["created_at", "2015-03-02 05:19:03.102079"], ["updated_at", "2015-03-02 05:19:03.102079"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$eck/YE38tmuz9OgHTYDUwu7TyFl8yxnRdxcnGxk1IArag6whgWF6a"], ["created_at", "2015-03-02 05:19:03.107261"], ["updated_at", "2015-03-02 05:19:03.107261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.109287"], ["user_id", "a3f2ef46-c09b-11e4-a5a8-705681abff85"], ["created_at", "2015-03-02 05:19:03.110373"], ["updated_at", "2015-03-02 05:19:03.110373"], ["token", "OGN4RYTIk5Iwbqob4JHw2E8DAqbJSsSw9AN6F76oUp0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.114042"], ["updated_at", "2015-03-02 05:19:03.114042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3f2ef46-c09b-11e4-a5a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3f4bd94-c09b-11e4-b779-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3f2ef46-c09b-11e4-a5a8-705681abff85"], ["organization_id", "a3f4bd94-c09b-11e4-b779-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.117509"], ["updated_at", "2015-03-02 05:19:03.117509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3f3c268-c09b-11e4-9b80-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3f4bd94-c09b-11e4-b779-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3f3c268-c09b-11e4-9b80-705681abff85"], ["organization_id", "a3f4bd94-c09b-11e4-b779-705681abff85"], ["created_at", "2015-03-02 05:19:03.121138"], ["updated_at", "2015-03-02 05:19:03.121138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$3YPCAqd62/OUSt6e4jFof.eMNIyo4Rp5g4y9PaXuvnwtau4JHjMta"], ["created_at", "2015-03-02 05:19:03.132488"], ["updated_at", "2015-03-02 05:19:03.132488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$9Q.r50aShQ1mSiyGIROVoueJrddYPiaAv8fmaE8hX2./5TeZI5sOO"], ["created_at", "2015-03-02 05:19:03.137172"], ["updated_at", "2015-03-02 05:19:03.137172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.138824"], ["user_id", "a3f79500-c09b-11e4-a778-705681abff85"], ["created_at", "2015-03-02 05:19:03.139626"], ["updated_at", "2015-03-02 05:19:03.139626"], ["token", "kHrhADjgj1WFn2NcMUc-6gPWmvT3jtEDnGwET__eVhE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.143633"], ["updated_at", "2015-03-02 05:19:03.143633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3f79500-c09b-11e4-a778-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3f944b8-c09b-11e4-be69-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3f79500-c09b-11e4-a778-705681abff85"], ["organization_id", "a3f944b8-c09b-11e4-be69-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.147183"], ["updated_at", "2015-03-02 05:19:03.147183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3f8470c-c09b-11e4-8225-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3f944b8-c09b-11e4-be69-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3f8470c-c09b-11e4-8225-705681abff85"], ["organization_id", "a3f944b8-c09b-11e4-be69-705681abff85"], ["created_at", "2015-03-02 05:19:03.150918"], ["updated_at", "2015-03-02 05:19:03.150918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a3f9d7c0-c09b-11e4-92aa-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"a3f9d7c0-c09b-11e4-92aa-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.156433' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kHrhADjgj1WFn2NcMUc-6gPWmvT3jtEDnGwET__eVhE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.158009"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.159016"], ["id", "a3f8ac6a-c09b-11e4-b0d8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3f79500-c09b-11e4-a778-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3f79500-c09b-11e4-a778-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a3f79500-c09b-11e4-a778-705681abff85' LIMIT 1 [["organization_id", "a3f944b8-c09b-11e4-be69-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a3f944b8-c09b-11e4-be69-705681abff85"], ["id", "a3f9d7c0-c09b-11e4-92aa-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3f79500-c09b-11e4-a778-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$hwTG5N3gaLaV3V977IRDdOZBDkfRUmNQ4oE6S8OhQWljtRvWfqhoq"], ["created_at", "2015-03-02 05:19:03.173827"], ["updated_at", "2015-03-02 05:19:03.173827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$l.KTOOPj1xlMrfSlwGSAx.qrglR7EUwWWR4Q6pq8jU7agvZUnmOj2"], ["created_at", "2015-03-02 05:19:03.178579"], ["updated_at", "2015-03-02 05:19:03.178579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.180212"], ["user_id", "a3fde04a-c09b-11e4-9a8b-705681abff85"], ["created_at", "2015-03-02 05:19:03.181060"], ["updated_at", "2015-03-02 05:19:03.181060"], ["token", "IeGoPy2vrlQih2rGO7jyWhuGbPVGds2Aj-fM50bXt9A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.184675"], ["updated_at", "2015-03-02 05:19:03.184675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3fde04a-c09b-11e4-9a8b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3ff856c-c09b-11e4-830f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a3fde04a-c09b-11e4-9a8b-705681abff85"], ["organization_id", "a3ff856c-c09b-11e4-830f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.188257"], ["updated_at", "2015-03-02 05:19:03.188257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3fe977e-c09b-11e4-bf5b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3ff856c-c09b-11e4-830f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3fe977e-c09b-11e4-bf5b-705681abff85"], ["organization_id", "a3ff856c-c09b-11e4-830f-705681abff85"], ["created_at", "2015-03-02 05:19:03.192838"], ["updated_at", "2015-03-02 05:19:03.192838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a400c710-c09b-11e4-ac40-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"a400c710-c09b-11e4-ac40-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.198896' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IeGoPy2vrlQih2rGO7jyWhuGbPVGds2Aj-fM50bXt9A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.200643"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.201725"], ["id", "a3feffa2-c09b-11e4-9c87-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3fde04a-c09b-11e4-9a8b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a3fde04a-c09b-11e4-9a8b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a3fde04a-c09b-11e4-9a8b-705681abff85' LIMIT 1 [["organization_id", "a3ff856c-c09b-11e4-830f-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "a3ff856c-c09b-11e4-830f-705681abff85"], ["id", "a400c710-c09b-11e4-ac40-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a3fe977e-c09b-11e4-bf5b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a3ff856c-c09b-11e4-830f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3fe977e-c09b-11e4-bf5b-705681abff85' AND "clubhouse_memberships"."id" != 'a400c710-c09b-11e4-ac40-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a3ff856c-c09b-11e4-830f-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:19:03.212767"], ["id", "a400c710-c09b-11e4-ac40-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.2ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$LuHG.2Fef3Co22zobU6vWu/hIl4moMNiEuOlcjb/0b5m2dCv12l1."], ["created_at", "2015-03-02 05:19:03.222435"], ["updated_at", "2015-03-02 05:19:03.222435"]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$6v9Kc1IePUiKOj0eYbGJRuBUzZEgu6t1olt.wJKqUYjwq.O.kK7ca"], ["created_at", "2015-03-02 05:19:03.239260"], ["updated_at", "2015-03-02 05:19:03.239260"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.246974"], ["user_id", "a4054ccc-c09b-11e4-b757-705681abff85"], ["created_at", "2015-03-02 05:19:03.248660"], ["updated_at", "2015-03-02 05:19:03.248660"], ["token", "m52prqOzNRtDEiYNPYUU0KBFAPrurbFNS8FFICBa590"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.255847"], ["updated_at", "2015-03-02 05:19:03.255847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4054ccc-c09b-11e4-b757-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a40a663a-c09b-11e4-99b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4054ccc-c09b-11e4-b757-705681abff85"], ["organization_id", "a40a663a-c09b-11e4-99b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.260507"], ["updated_at", "2015-03-02 05:19:03.260507"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4087320-c09b-11e4-a32e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a40a663a-c09b-11e4-99b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4087320-c09b-11e4-a32e-705681abff85"], ["organization_id", "a40a663a-c09b-11e4-99b1-705681abff85"], ["created_at", "2015-03-02 05:19:03.264381"], ["updated_at", "2015-03-02 05:19:03.264381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$crQN.12nfYhyiP57L3WHbuhZTJKAPiity0WvW3Oz5yzO/0nW6mdym"], ["created_at", "2015-03-02 05:19:03.269456"], ["updated_at", "2015-03-02 05:19:03.269456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.271517"], ["user_id", "a40c7718-c09b-11e4-8860-705681abff85"], ["created_at", "2015-03-02 05:19:03.272461"], ["updated_at", "2015-03-02 05:19:03.272461"], ["token", "l64K3ln2l2EDAQnFdp0BAxEmTdbDbv6cwjAkvZPacM8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a40a663a-c09b-11e4-99b1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a40a663a-c09b-11e4-99b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.276726"], ["updated_at", "2015-03-02 05:19:03.276726"], ["token", "Q3i6lkqN8D1VK8X2mVJk9nACJwW17sDV9itvgbebni0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$PPnmeofufhWJTBraYTyo1ORapEmuK.1i8m8ASY5RrINuffx.TYo6m"], ["created_at", "2015-03-02 05:19:03.289488"], ["updated_at", "2015-03-02 05:19:03.289488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$fW7U7YY0GHBM/uOhBjeWquNT5sEii6tIZPZONRcm6E1aa2xAbkDzu"], ["created_at", "2015-03-02 05:19:03.294708"], ["updated_at", "2015-03-02 05:19:03.294708"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.296820"], ["user_id", "a40f89f8-c09b-11e4-871f-705681abff85"], ["created_at", "2015-03-02 05:19:03.297719"], ["updated_at", "2015-03-02 05:19:03.297719"], ["token", "lIDi3LO9DQKQw2uF2AQGpEEcbEgnSXCwX1nio5bRUxM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.302310"], ["updated_at", "2015-03-02 05:19:03.302310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a40f89f8-c09b-11e4-871f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4117c54-c09b-11e4-95b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a40f89f8-c09b-11e4-871f-705681abff85"], ["organization_id", "a4117c54-c09b-11e4-95b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.308543"], ["updated_at", "2015-03-02 05:19:03.308543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4105b62-c09b-11e4-b9cb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4117c54-c09b-11e4-95b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4105b62-c09b-11e4-b9cb-705681abff85"], ["organization_id", "a4117c54-c09b-11e4-95b6-705681abff85"], ["created_at", "2015-03-02 05:19:03.312367"], ["updated_at", "2015-03-02 05:19:03.312367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$AL3.MmGVaYZOauCu3eKYHudoI/UcBTbOVxk4LjUbyHWv3AcoLyiz2"], ["created_at", "2015-03-02 05:19:03.317162"], ["updated_at", "2015-03-02 05:19:03.317162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.318863"], ["user_id", "a413bd7a-c09b-11e4-9dca-705681abff85"], ["created_at", "2015-03-02 05:19:03.319896"], ["updated_at", "2015-03-02 05:19:03.319896"], ["token", "fMUirQ-uRBeS_u491guD_59X-BmDFZ1FoM8ZC_e5zNM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a4117c54-c09b-11e4-95b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a4117c54-c09b-11e4-95b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.324946"], ["updated_at", "2015-03-02 05:19:03.324946"], ["token", "nijFKH9-8i5jRJMGMfB2-lZdW8GveLf4A75ORZWlVUQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.331250' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fMUirQ-uRBeS_u491guD_59X-BmDFZ1FoM8ZC_e5zNM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.332894"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.333930"], ["id", "a41442f4-c09b-11e4-9f97-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a413bd7a-c09b-11e4-9dca-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a413bd7a-c09b-11e4-9dca-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$QcLx5NL5/CBuQzAe5T5tFeyL0b7CCi9QKBFKoJpqgO/9oJ44DGwAW"], ["created_at", "2015-03-02 05:19:03.349038"], ["updated_at", "2015-03-02 05:19:03.349038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$4.HjzQxgx.AuN.Z5B3SiJesL7IykHc.uLaLogmht.OvV1NUAp2onq"], ["created_at", "2015-03-02 05:19:03.353804"], ["updated_at", "2015-03-02 05:19:03.353804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.355411"], ["user_id", "a418a2fe-c09b-11e4-b5cb-705681abff85"], ["created_at", "2015-03-02 05:19:03.356217"], ["updated_at", "2015-03-02 05:19:03.356217"], ["token", "ORVomykYQbT-w43PU0o5mHhK4D99WbX-H3Hix2RJFLs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.360084"], ["updated_at", "2015-03-02 05:19:03.360084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a418a2fe-c09b-11e4-b5cb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a41a4b72-c09b-11e4-920d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a418a2fe-c09b-11e4-b5cb-705681abff85"], ["organization_id", "a41a4b72-c09b-11e4-920d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.363905"], ["updated_at", "2015-03-02 05:19:03.363905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a41954ce-c09b-11e4-81a9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a41a4b72-c09b-11e4-920d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a41954ce-c09b-11e4-81a9-705681abff85"], ["organization_id", "a41a4b72-c09b-11e4-920d-705681abff85"], ["created_at", "2015-03-02 05:19:03.367388"], ["updated_at", "2015-03-02 05:19:03.367388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$mDTKvT4Dbqhdbl.isQXGluLFiD47RBNph9mjtdU3AbaSh9LUTbFYm"], ["created_at", "2015-03-02 05:19:03.372145"], ["updated_at", "2015-03-02 05:19:03.372145"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.374200"], ["user_id", "a41c20f0-c09b-11e4-ba12-705681abff85"], ["created_at", "2015-03-02 05:19:03.375038"], ["updated_at", "2015-03-02 05:19:03.375038"], ["token", "CXJjY7lu1_LeL3m6K4HrBLdmw01C9X5kN-e5UsGCvPo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a41a4b72-c09b-11e4-920d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a41a4b72-c09b-11e4-920d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.380226"], ["updated_at", "2015-03-02 05:19:03.380226"], ["token", "zuwRC-YebwM8yoCJZWdOnieOwDHmcBlQ8TzSkrZVWI8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"zuwRC-YebwM8yoCJZWdOnieOwDHmcBlQ8TzSkrZVWI8", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.385995' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CXJjY7lu1_LeL3m6K4HrBLdmw01C9X5kN-e5UsGCvPo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.387780"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.388972"], ["id", "a41c9c74-c09b-11e4-9bd3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a41c20f0-c09b-11e4-ba12-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a41c20f0-c09b-11e4-ba12-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "zuwRC-YebwM8yoCJZWdOnieOwDHmcBlQ8TzSkrZVWI8"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a41a4b72-c09b-11e4-920d-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a41a4b72-c09b-11e4-920d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a41c20f0-c09b-11e4-ba12-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a41a4b72-c09b-11e4-920d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a41c20f0-c09b-11e4-ba12-705681abff85"], ["admin", "t"], ["organization_id", "a41a4b72-c09b-11e4-920d-705681abff85"], ["created_at", "2015-03-02 05:19:03.398931"], ["updated_at", "2015-03-02 05:19:03.398931"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a41d6672-c09b-11e4-a948-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.2ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$fKwg1yz7g4Zl3XhLF.Lceegrs6.QhSQbuc2bFQOnq9ixxe5hcNsua"], ["created_at", "2015-03-02 05:19:03.409484"], ["updated_at", "2015-03-02 05:19:03.409484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$mKua01VYZQcmYwfvCFluQeo.5ELhPYUD5UIIBG9JEW72YcvK1oFuC"], ["created_at", "2015-03-02 05:19:03.422515"], ["updated_at", "2015-03-02 05:19:03.422515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.424515"], ["user_id", "a421ef94-c09b-11e4-9042-705681abff85"], ["created_at", "2015-03-02 05:19:03.425434"], ["updated_at", "2015-03-02 05:19:03.425434"], ["token", "8ztS-z2k4-G0fenrXRyT257LI3ROdDYmCQuYl3QbOTI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.429323"], ["updated_at", "2015-03-02 05:19:03.429323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a421ef94-c09b-11e4-9042-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a424dace-c09b-11e4-9d61-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a421ef94-c09b-11e4-9042-705681abff85"], ["organization_id", "a424dace-c09b-11e4-9d61-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.432736"], ["updated_at", "2015-03-02 05:19:03.432736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a423d624-c09b-11e4-a8e0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a424dace-c09b-11e4-9d61-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a423d624-c09b-11e4-a8e0-705681abff85"], ["organization_id", "a424dace-c09b-11e4-9d61-705681abff85"], ["created_at", "2015-03-02 05:19:03.436056"], ["updated_at", "2015-03-02 05:19:03.436056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/a4255f08-c09b-11e4-ad79-705681abff85" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"a4255f08-c09b-11e4-ad79-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.441809' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8ztS-z2k4-G0fenrXRyT257LI3ROdDYmCQuYl3QbOTI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.443836"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.445025"], ["id", "a4244bae-c09b-11e4-8c42-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a421ef94-c09b-11e4-9042-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a421ef94-c09b-11e4-9042-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a421ef94-c09b-11e4-9042-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "a421ef94-c09b-11e4-9042-705681abff85"], ["id", "a4255f08-c09b-11e4-ad79-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a424dace-c09b-11e4-9d61-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a421ef94-c09b-11e4-9042-705681abff85"]] Completed 200 OK in 12ms (Views: 2.3ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$egyNBP.ET9hdtaUegqnoEeRuGUHsT9QeAtNVsCcrJ.ifpfLIt5k0G"], ["created_at", "2015-03-02 05:19:03.460603"], ["updated_at", "2015-03-02 05:19:03.460603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$WuKUVMhAMT4hx0VXmWLZMOhrOw7.wqBMgZNjURK6Ntnf7.YxilMwq"], ["created_at", "2015-03-02 05:19:03.465062"], ["updated_at", "2015-03-02 05:19:03.465062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.466877"], ["user_id", "a429a34c-c09b-11e4-ba33-705681abff85"], ["created_at", "2015-03-02 05:19:03.467875"], ["updated_at", "2015-03-02 05:19:03.467875"], ["token", "UTHp7Ga68WGYhIP_JpeG87jmWFifcsNSjpXSZZRsR5g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.471803"], ["updated_at", "2015-03-02 05:19:03.471803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a429a34c-c09b-11e4-ba33-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a42b59e4-c09b-11e4-b2a3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a429a34c-c09b-11e4-ba33-705681abff85"], ["organization_id", "a42b59e4-c09b-11e4-b2a3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.476141"], ["updated_at", "2015-03-02 05:19:03.476141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a42a4e3c-c09b-11e4-844b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a42b59e4-c09b-11e4-b2a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a42a4e3c-c09b-11e4-844b-705681abff85"], ["organization_id", "a42b59e4-c09b-11e4-b2a3-705681abff85"], ["created_at", "2015-03-02 05:19:03.480087"], ["updated_at", "2015-03-02 05:19:03.480087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$kYs.9ZzgNvVfQTQ3DKW4TewUrs5KSXDtfPnTNwJUJ8nBSV4Tuwt/G"], ["created_at", "2015-03-02 05:19:03.491862"], ["updated_at", "2015-03-02 05:19:03.491862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$5b4ARudI5lqs8fpE.8dKfOCRjzUJFnf3Ps3.uqj4l4zF2QwVinL0i"], ["created_at", "2015-03-02 05:19:03.497070"], ["updated_at", "2015-03-02 05:19:03.497070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.498879"], ["user_id", "a42e70f2-c09b-11e4-99f3-705681abff85"], ["created_at", "2015-03-02 05:19:03.499845"], ["updated_at", "2015-03-02 05:19:03.499845"], ["token", "Y5-NMCIyW8eLaJIzcdVLOHl0dLzvx-7tv8viaxI6bJU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.503763"], ["updated_at", "2015-03-02 05:19:03.503763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a42e70f2-c09b-11e4-99f3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a43034aa-c09b-11e4-ba9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a42e70f2-c09b-11e4-99f3-705681abff85"], ["organization_id", "a43034aa-c09b-11e4-ba9a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.507415"], ["updated_at", "2015-03-02 05:19:03.507415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a42f31ae-c09b-11e4-b6ce-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a43034aa-c09b-11e4-ba9a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a42f31ae-c09b-11e4-b6ce-705681abff85"], ["organization_id", "a43034aa-c09b-11e4-ba9a-705681abff85"], ["created_at", "2015-03-02 05:19:03.510812"], ["updated_at", "2015-03-02 05:19:03.510812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.516870' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y5-NMCIyW8eLaJIzcdVLOHl0dLzvx-7tv8viaxI6bJU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.518635"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.519899"], ["id", "a42faa94-c09b-11e4-966f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a42e70f2-c09b-11e4-99f3-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a42e70f2-c09b-11e4-99f3-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a42e70f2-c09b-11e4-99f3-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a42e70f2-c09b-11e4-99f3-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('a42e70f2-c09b-11e4-99f3-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a43034aa-c09b-11e4-ba9a-705681abff85') Completed 200 OK in 14ms (Views: 4.4ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$xsvwJFuY6xborUSla4evAeqXqXm6vBqVNpATON9w7ugQ8ubiuoVW."], ["created_at", "2015-03-02 05:19:03.537692"], ["updated_at", "2015-03-02 05:19:03.537692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.539840"], ["user_id", "a43570dc-c09b-11e4-8a27-705681abff85"], ["created_at", "2015-03-02 05:19:03.540682"], ["updated_at", "2015-03-02 05:19:03.540682"], ["token", "mQDCBNBbwIZsQiHfseK-t0dLcAofCpdKV9U9u5W6bE0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.544386"], ["updated_at", "2015-03-02 05:19:03.544386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a43570dc-c09b-11e4-8a27-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4366898-c09b-11e4-8e5c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a43570dc-c09b-11e4-8a27-705681abff85"], ["organization_id", "a4366898-c09b-11e4-8e5c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.548261"], ["updated_at", "2015-03-02 05:19:03.548261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a4366898-c09b-11e4-8e5c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a4366898-c09b-11e4-8e5c-705681abff85"], ["created_at", "2015-03-02 05:19:03.552036"], ["updated_at", "2015-03-02 05:19:03.552036"], ["token", "Q6BWl5zHm-JbeJ4DcbvYn3B4pSn2KrSh3PoYBSpTnC0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/a4379fec-c09b-11e4-8964-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"a4379fec-c09b-11e4-8964-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.565197' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mQDCBNBbwIZsQiHfseK-t0dLcAofCpdKV9U9u5W6bE0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.566815"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.568389"], ["id", "a435e1a2-c09b-11e4-9e95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a43570dc-c09b-11e4-8a27-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a43570dc-c09b-11e4-8a27-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a43570dc-c09b-11e4-8a27-705681abff85' LIMIT 1 [["organization_id", "a4366898-c09b-11e4-8e5c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "a4366898-c09b-11e4-8e5c-705681abff85"], ["id", "a4379fec-c09b-11e4-8964-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a4366898-c09b-11e4-8e5c-705681abff85"]] Completed 200 OK in 15ms (Views: 2.9ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$R6fTmm8VDCLV0g2RT/bDhegUpyIQosIhzEiD3xiOiYgZLXcb.SW4u"], ["created_at", "2015-03-02 05:19:03.587340"], ["updated_at", "2015-03-02 05:19:03.587340"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.589499"], ["user_id", "a43cfe06-c09b-11e4-be44-705681abff85"], ["created_at", "2015-03-02 05:19:03.590473"], ["updated_at", "2015-03-02 05:19:03.590473"], ["token", "Ao2PFRDsDBYnlOK4Z4pWy98s_r1gUC036xXGARicr8M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.595006"], ["updated_at", "2015-03-02 05:19:03.595006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a43cfe06-c09b-11e4-be44-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a43e2858-c09b-11e4-b640-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a43cfe06-c09b-11e4-be44-705681abff85"], ["organization_id", "a43e2858-c09b-11e4-b640-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.599303"], ["updated_at", "2015-03-02 05:19:03.599303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a43e2858-c09b-11e4-b640-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a43e2858-c09b-11e4-b640-705681abff85"], ["created_at", "2015-03-02 05:19:03.603441"], ["updated_at", "2015-03-02 05:19:03.603441"], ["token", "29bzuTHT5JDkDL6XID1zAgonvDbdC_z7--htoY36s0U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$8c28DPV8eFDyvUR8BpqKu.H1.1E8cMSircA8fBVyKQAlN3O2Iwvva"], ["created_at", "2015-03-02 05:19:03.615023"], ["updated_at", "2015-03-02 05:19:03.615023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.616930"], ["user_id", "a4413606-c09b-11e4-bf38-705681abff85"], ["created_at", "2015-03-02 05:19:03.618181"], ["updated_at", "2015-03-02 05:19:03.618181"], ["token", "3ZG6cPLF6hznk-H-7FYXDqzb1QTxkBQMw25SQUgyPlY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.623237"], ["updated_at", "2015-03-02 05:19:03.623237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4413606-c09b-11e4-bf38-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a442735e-c09b-11e4-86fa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4413606-c09b-11e4-bf38-705681abff85"], ["organization_id", "a442735e-c09b-11e4-86fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.626966"], ["updated_at", "2015-03-02 05:19:03.626966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'a442735e-c09b-11e4-86fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "a442735e-c09b-11e4-86fa-705681abff85"], ["created_at", "2015-03-02 05:19:03.631782"], ["updated_at", "2015-03-02 05:19:03.631782"], ["token", "-qku7eM0qLHZurVfk3bEgoks2nl6CP_kN0ghHsETGgA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/a443d000-c09b-11e4-bdc2-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"a443d000-c09b-11e4-bdc2-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.638086' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3ZG6cPLF6hznk-H-7FYXDqzb1QTxkBQMw25SQUgyPlY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.639647"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.640762"], ["id", "a441d174-c09b-11e4-878d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a4413606-c09b-11e4-bf38-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a4413606-c09b-11e4-bf38-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4413606-c09b-11e4-bf38-705681abff85' LIMIT 1 [["organization_id", "a442735e-c09b-11e4-86fa-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "a442735e-c09b-11e4-86fa-705681abff85"], ["id", "a443d000-c09b-11e4-bdc2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a442735e-c09b-11e4-86fa-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."id" != 'a443d000-c09b-11e4-bdc2-705681abff85' AND "clubhouse_invitations"."organization_id" = 'a442735e-c09b-11e4-86fa-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:19:03.652097"], ["id", "a443d000-c09b-11e4-bdc2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.2ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$KlWUPptGbxSok7pg9teT1O38jCFYfTGEfIEG0bSYkIaE57uX1WIHO"], ["created_at", "2015-03-02 05:19:03.662438"], ["updated_at", "2015-03-02 05:19:03.662438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.664675"], ["user_id", "a4487f06-c09b-11e4-b758-705681abff85"], ["created_at", "2015-03-02 05:19:03.665626"], ["updated_at", "2015-03-02 05:19:03.665626"], ["token", "tZIPIbT4qIVw1aKDgYsOMC_DtH2FxBGUm5OAOz0Nwn4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.669563"], ["updated_at", "2015-03-02 05:19:03.669563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4487f06-c09b-11e4-b758-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4498b8a-c09b-11e4-b14d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4487f06-c09b-11e4-b758-705681abff85"], ["organization_id", "a4498b8a-c09b-11e4-b14d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.673573"], ["updated_at", "2015-03-02 05:19:03.673573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'a4498b8a-c09b-11e4-b14d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "a4498b8a-c09b-11e4-b14d-705681abff85"], ["created_at", "2015-03-02 05:19:03.677634"], ["updated_at", "2015-03-02 05:19:03.677634"], ["token", "oAjioL4hdIxuvVzafudbE7VzcPFPUFEP1YZOXbgn9-4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$8kHGmqmi1z5HSoW8PS/sYe6nFLoc6ElddLz2yYOSzdqpFiD9wbGnC"], ["created_at", "2015-03-02 05:19:03.689692"], ["updated_at", "2015-03-02 05:19:03.689692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.691849"], ["user_id", "a44c9e56-c09b-11e4-859e-705681abff85"], ["created_at", "2015-03-02 05:19:03.692906"], ["updated_at", "2015-03-02 05:19:03.692906"], ["token", "_IRM-bPmXsbQ1CWi62IGoep8yaXNTo9Tze7j_P0xttw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.697430"], ["updated_at", "2015-03-02 05:19:03.697430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a44c9e56-c09b-11e4-859e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a44dcc86-c09b-11e4-a625-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a44c9e56-c09b-11e4-859e-705681abff85"], ["organization_id", "a44dcc86-c09b-11e4-a625-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.701575"], ["updated_at", "2015-03-02 05:19:03.701575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'a44dcc86-c09b-11e4-a625-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "a44dcc86-c09b-11e4-a625-705681abff85"], ["created_at", "2015-03-02 05:19:03.705599"], ["updated_at", "2015-03-02 05:19:03.705599"], ["token", "-BFZmj58GVOrjTFRi5BdjQtruDQOK2RjLFM3yGL89As"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/a44f0e84-c09b-11e4-a3a3-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"a44f0e84-c09b-11e4-a3a3-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.711920' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_IRM-bPmXsbQ1CWi62IGoep8yaXNTo9Tze7j_P0xttw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.713815"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.715057"], ["id", "a44d290c-c09b-11e4-b0fd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a44c9e56-c09b-11e4-859e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a44c9e56-c09b-11e4-859e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a44c9e56-c09b-11e4-859e-705681abff85' LIMIT 1 [["organization_id", "a44dcc86-c09b-11e4-a625-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "a44dcc86-c09b-11e4-a625-705681abff85"], ["id", "a44f0e84-c09b-11e4-a3a3-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a44f0e84-c09b-11e4-a3a3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$WNrg5fa9DEjneqIcGGFyV./Kq4iiULIuQrjgGDVEuzHXn3mzcz5e."], ["created_at", "2015-03-02 05:19:03.732122"], ["updated_at", "2015-03-02 05:19:03.732122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.734055"], ["user_id", "a453161e-c09b-11e4-ad74-705681abff85"], ["created_at", "2015-03-02 05:19:03.734922"], ["updated_at", "2015-03-02 05:19:03.734922"], ["token", "z7duZNlOPh76R-me0xRmx8G0HaCz7jnjGPj7A1O_mBs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.739140"], ["updated_at", "2015-03-02 05:19:03.739140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a453161e-c09b-11e4-ad74-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4542158-c09b-11e4-94cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a453161e-c09b-11e4-ad74-705681abff85"], ["organization_id", "a4542158-c09b-11e4-94cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.742894"], ["updated_at", "2015-03-02 05:19:03.742894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'a4542158-c09b-11e4-94cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "a4542158-c09b-11e4-94cb-705681abff85"], ["created_at", "2015-03-02 05:19:03.747368"], ["updated_at", "2015-03-02 05:19:03.747368"], ["token", "sFypwjq3z3duL5YI87CS4Q-m7pH5KNSoIDULSC8RUzg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$R3ZOLh4dyeDNQByIMOo0vOCC8nU0/FC80wFTaYGKNWtoFDPN/3Lru"], ["created_at", "2015-03-02 05:19:03.758987"], ["updated_at", "2015-03-02 05:19:03.758987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.761177"], ["user_id", "a45734b0-c09b-11e4-9a0a-705681abff85"], ["created_at", "2015-03-02 05:19:03.762239"], ["updated_at", "2015-03-02 05:19:03.762239"], ["token", "-fyDvVXyCNOw_uXqA3ItGOxFVezEKRQhDXCtOV4SdtE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.766265"], ["updated_at", "2015-03-02 05:19:03.766265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a45734b0-c09b-11e4-9a0a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4584b3e-c09b-11e4-ad14-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a45734b0-c09b-11e4-9a0a-705681abff85"], ["organization_id", "a4584b3e-c09b-11e4-ad14-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.770354"], ["updated_at", "2015-03-02 05:19:03.770354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'a4584b3e-c09b-11e4-ad14-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "a4584b3e-c09b-11e4-ad14-705681abff85"], ["created_at", "2015-03-02 05:19:03.774411"], ["updated_at", "2015-03-02 05:19:03.774411"], ["token", "_SJAautq80D6Ph8fDJYxIAPHaiYNSt66_b5u7y6Vgd0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$SkiG1pqxyoTUzL.x7rkNwuDm0Mq1Ca/wrIlivdwhuNbQHocjN/bCG"], ["created_at", "2015-03-02 05:19:03.793973"], ["updated_at", "2015-03-02 05:19:03.793973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.796042"], ["user_id", "a45c8cda-c09b-11e4-8a7a-705681abff85"], ["created_at", "2015-03-02 05:19:03.796936"], ["updated_at", "2015-03-02 05:19:03.796936"], ["token", "tX2GPeePBsnOjdkG3ktpvPdqZxBW8kw6wD8U-doSEqo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.801075"], ["updated_at", "2015-03-02 05:19:03.801075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a45c8cda-c09b-11e4-8a7a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a45d93f0-c09b-11e4-8db5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a45c8cda-c09b-11e4-8a7a-705681abff85"], ["organization_id", "a45d93f0-c09b-11e4-8db5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.804765"], ["updated_at", "2015-03-02 05:19:03.804765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'a45d93f0-c09b-11e4-8db5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "a45d93f0-c09b-11e4-8db5-705681abff85"], ["created_at", "2015-03-02 05:19:03.808371"], ["updated_at", "2015-03-02 05:19:03.808371"], ["token", "4RBk1CqALcDYqnU9F_Y-Mb3nRvptVa2z3h507WBjb-k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.814217' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tX2GPeePBsnOjdkG3ktpvPdqZxBW8kw6wD8U-doSEqo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.815754"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.817057"], ["id", "a45d0462-c09b-11e4-b425-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a45c8cda-c09b-11e4-8a7a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a45c8cda-c09b-11e4-8a7a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a45c8cda-c09b-11e4-8a7a-705681abff85' LIMIT 1 [["organization_id", "a45d93f0-c09b-11e4-8db5-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a45d93f0-c09b-11e4-8db5-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'a45d93f0-c09b-11e4-8db5-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$eKTBnPfCPgyR55.r5bRV8eSJsURaG8zEiAgI7wyRV0JbinsWtZtp6"], ["created_at", "2015-03-02 05:19:03.838448"], ["updated_at", "2015-03-02 05:19:03.838448"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:03.845549"], ["user_id", "a463feac-c09b-11e4-9aba-705681abff85"], ["created_at", "2015-03-02 05:19:03.846506"], ["updated_at", "2015-03-02 05:19:03.846506"], ["token", "qUkDHbL-f8I9o8qXXwO-Co2C_61mMtOs3-DgZxFFkZs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:03.850735"], ["updated_at", "2015-03-02 05:19:03.850735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a463feac-c09b-11e4-9aba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4652980-c09b-11e4-be0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a463feac-c09b-11e4-9aba-705681abff85"], ["organization_id", "a4652980-c09b-11e4-be0d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:03.854532"], ["updated_at", "2015-03-02 05:19:03.854532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'a4652980-c09b-11e4-be0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "a4652980-c09b-11e4-be0d-705681abff85"], ["created_at", "2015-03-02 05:19:03.858334"], ["updated_at", "2015-03-02 05:19:03.858334"], ["token", "brMKUqDNhYRyn_FLRT3giVyfyqpdOnCpWIs1CwvtEeY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:19:03 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:03.864679' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qUkDHbL-f8I9o8qXXwO-Co2C_61mMtOs3-DgZxFFkZs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:03.866204"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:03.867498"], ["id", "a4648c46-c09b-11e4-afa6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a463feac-c09b-11e4-9aba-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a463feac-c09b-11e4-9aba-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a463feac-c09b-11e4-9aba-705681abff85' LIMIT 1 [["organization_id", "a4652980-c09b-11e4-be0d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a4652980-c09b-11e4-be0d-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a4652980-c09b-11e4-be0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a4652980-c09b-11e4-be0d-705681abff85"], ["created_at", "2015-03-02 05:19:03.877127"], ["updated_at", "2015-03-02 05:19:03.877127"], ["token", "ZHfV_2XZRYkIRDT_02wMXN6gq3GUfoXwsUDNAUqUPi0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: bbbb9202-ab41-446a-ab36-bbd2e13e6bbb) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a4693fca-c09b-11e4-8785-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a4693fca-c09b-11e4-8785-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [bbbb9202-ab41-446a-ab36-bbd2e13e6bbb] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a4693fca-c09b-11e4-8785-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [bbbb9202-ab41-446a-ab36-bbd2e13e6bbb] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a4652980-c09b-11e4-be0d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [bbbb9202-ab41-446a-ab36-bbd2e13e6bbb] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [bbbb9202-ab41-446a-ab36-bbd2e13e6bbb] Clubhouse::Mailer#invitation: processed outbound mail in 243.6ms [ActiveJob] [ActionMailer::DeliveryJob] [bbbb9202-ab41-446a-ab36-bbd2e13e6bbb] Sent mail to email@example.com (7.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [bbbb9202-ab41-446a-ab36-bbd2e13e6bbb] Date: Sun, 01 Mar 2015 21:19:04 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f2c8251e9_149153fdf45065be480938@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/ZHfV_2XZRYkIRDT_02wMXN6gq3GUfoXwsUDNAUqUPi0 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [bbbb9202-ab41-446a-ab36-bbd2e13e6bbb] Performed ActionMailer::DeliveryJob from Inline(mailers) in 251.92ms Completed 201 Created in 292ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$ur34J/m5jA4Ze1m.8b4Rl.wAjXHJnm0.95my6Xb9VbYsfd6TUbBG6"], ["created_at", "2015-03-02 05:19:04.164728"], ["updated_at", "2015-03-02 05:19:04.164728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:04.166678"], ["user_id", "a4951abe-c09b-11e4-9d0e-705681abff85"], ["created_at", "2015-03-02 05:19:04.168041"], ["updated_at", "2015-03-02 05:19:04.168041"], ["token", "VU6zaLbj6Lb3RIWM1JsUU_HvdaSyKaC6GxnfX7mlXVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:04.171838"], ["updated_at", "2015-03-02 05:19:04.171838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4951abe-c09b-11e4-9d0e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a496277e-c09b-11e4-9a9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4951abe-c09b-11e4-9d0e-705681abff85"], ["organization_id", "a496277e-c09b-11e4-9a9c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:04.175533"], ["updated_at", "2015-03-02 05:19:04.175533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'a496277e-c09b-11e4-9a9c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "a496277e-c09b-11e4-9a9c-705681abff85"], ["created_at", "2015-03-02 05:19:04.179675"], ["updated_at", "2015-03-02 05:19:04.179675"], ["token", "gjTwubrZ7IiqEmrJ9vd34o5zkjoxO9Oepighzx3VTtw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:19:04 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:04.185704' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VU6zaLbj6Lb3RIWM1JsUU_HvdaSyKaC6GxnfX7mlXVI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:04.187546"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:04.188772"], ["id", "a495a02e-c09b-11e4-b7de-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a4951abe-c09b-11e4-9d0e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a4951abe-c09b-11e4-9d0e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4951abe-c09b-11e4-9d0e-705681abff85' LIMIT 1 [["organization_id", "a496277e-c09b-11e4-9a9c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a496277e-c09b-11e4-9a9c-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a496277e-c09b-11e4-9a9c-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "a496277e-c09b-11e4-9a9c-705681abff85"], ["created_at", "2015-03-02 05:19:04.200249"], ["updated_at", "2015-03-02 05:19:04.200249"], ["token", "rVo3bdpSv-jU8dNpstPdGvGo-RuP7mTlr01cb6WOp9c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2d3cb441-57a2-4f6f-bd8e-19ee519a0b89) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a49a962e-c09b-11e4-9d60-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a49a962e-c09b-11e4-9d60-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2d3cb441-57a2-4f6f-bd8e-19ee519a0b89] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a49a962e-c09b-11e4-9d60-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [2d3cb441-57a2-4f6f-bd8e-19ee519a0b89] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a496277e-c09b-11e4-9a9c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2d3cb441-57a2-4f6f-bd8e-19ee519a0b89] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2d3cb441-57a2-4f6f-bd8e-19ee519a0b89] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [2d3cb441-57a2-4f6f-bd8e-19ee519a0b89] Sent mail to email@example.com (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [2d3cb441-57a2-4f6f-bd8e-19ee519a0b89] Date: Sun, 01 Mar 2015 21:19:04 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f2c83332a_149153fdf45065be4810ae@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/rVo3bdpSv-jU8dNpstPdGvGo-RuP7mTlr01cb6WOp9c If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [2d3cb441-57a2-4f6f-bd8e-19ee519a0b89] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.13ms Completed 201 Created in 27ms (Views: 0.9ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (33.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$AxDTsG4jCj4di5J7HSS2L.16.2Aca4UCmwwVWci/zjWKk1SlDWIOm"], ["created_at", "2015-03-02 05:19:04.222401"], ["updated_at", "2015-03-02 05:19:04.222401"]]  (1.9ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:04.260280"], ["user_id", "a4a03c78-c09b-11e4-ae31-705681abff85"], ["created_at", "2015-03-02 05:19:04.262136"], ["updated_at", "2015-03-02 05:19:04.262136"], ["token", "saYzUgYueuH8w4sv9fPizeECwbZpjlNOZA6zTh1ltjw"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:04.274131"], ["updated_at", "2015-03-02 05:19:04.274131"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4a03c78-c09b-11e4-ae31-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4a62d9a-c09b-11e4-85e8-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4a03c78-c09b-11e4-ae31-705681abff85"], ["organization_id", "a4a62d9a-c09b-11e4-85e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:04.284540"], ["updated_at", "2015-03-02 05:19:04.284540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'a4a62d9a-c09b-11e4-85e8-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "a4a62d9a-c09b-11e4-85e8-705681abff85"], ["created_at", "2015-03-02 05:19:04.291937"], ["updated_at", "2015-03-02 05:19:04.291937"], ["token", "9XoXfcHLNHVycWTsFK7yUyJAwcnADgtMEnIQVrUj9w0"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$C7FDBP/3BkMwZKVq1mM8zO68tsvU2oYL5x/.lbBMpIAHg.1h9qOM."], ["created_at", "2015-03-02 05:19:04.303477"], ["updated_at", "2015-03-02 05:19:04.303477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:04.310895"], ["updated_at", "2015-03-02 05:19:04.310895"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4aa726a-c09b-11e4-b047-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4ab70c0-c09b-11e4-ab16-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4aa726a-c09b-11e4-b047-705681abff85"], ["organization_id", "a4ab70c0-c09b-11e4-ab16-705681abff85"], ["created_at", "2015-03-02 05:19:04.319300"], ["updated_at", "2015-03-02 05:19:04.319300"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:19:04 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:19:04.342538' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "saYzUgYueuH8w4sv9fPizeECwbZpjlNOZA6zTh1ltjw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:19:04.344151"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:19:04.345323"], ["id", "a4a41fa0-c09b-11e4-94b6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a4a03c78-c09b-11e4-ae31-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a4a03c78-c09b-11e4-ae31-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4a03c78-c09b-11e4-ae31-705681abff85' LIMIT 1 [["organization_id", "a4a62d9a-c09b-11e4-85e8-705681abff85"]] Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "a4a62d9a-c09b-11e4-85e8-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a4a62d9a-c09b-11e4-85e8-705681abff85') Completed 200 OK in 14ms (Views: 3.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$zqRXEzvinD.6MYjDJ36vRu82op3zKR1otbdw/J4OngAiY7C4NLp9e"], ["created_at", "2015-03-02 05:19:04.362559"], ["updated_at", "2015-03-02 05:19:04.362559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:19:04.364256"], ["user_id", "a4b340fc-c09b-11e4-9242-705681abff85"], ["created_at", "2015-03-02 05:19:04.365117"], ["updated_at", "2015-03-02 05:19:04.365117"], ["token", "P_znIkrftROtKL8MCH4h563tKPG8OxNZUuAMtS8GHUk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:04.368756"], ["updated_at", "2015-03-02 05:19:04.368756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4b340fc-c09b-11e4-9242-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4b43606-c09b-11e4-a542-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4b340fc-c09b-11e4-9242-705681abff85"], ["organization_id", "a4b43606-c09b-11e4-a542-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:19:04.372308"], ["updated_at", "2015-03-02 05:19:04.372308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'a4b43606-c09b-11e4-a542-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "a4b43606-c09b-11e4-a542-705681abff85"], ["created_at", "2015-03-02 05:19:04.375892"], ["updated_at", "2015-03-02 05:19:04.375892"], ["token", "ja9saVuwh5R4kYMjnkvnTTNjnqJp7Y9bgh94iQPaBxI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$iQAQWAh6j1KEWy5XBMrbOOuXEZjkA.ua2F3.uPFuSgsXM8XLhpe.u"], ["created_at", "2015-03-02 05:19:04.380317"], ["updated_at", "2015-03-02 05:19:04.380317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:04.383977"], ["updated_at", "2015-03-02 05:19:04.383977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4b5fc3e-c09b-11e4-983e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4b68da2-c09b-11e4-b017-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4b5fc3e-c09b-11e4-983e-705681abff85"], ["organization_id", "a4b68da2-c09b-11e4-b017-705681abff85"], ["created_at", "2015-03-02 05:19:04.388047"], ["updated_at", "2015-03-02 05:19:04.388047"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:19:04 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$MJiVDGo5EfyaB7x.phJC..BJRNEcFTrjg9Z1.ch72li8IjrwDMVvq"], ["created_at", "2015-03-02 05:19:04.407235"], ["updated_at", "2015-03-02 05:19:04.407235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:04.411188"], ["updated_at", "2015-03-02 05:19:04.411188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4ba162a-c09b-11e4-8099-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4baaea0-c09b-11e4-a63d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4ba162a-c09b-11e4-8099-705681abff85"], ["organization_id", "a4baaea0-c09b-11e4-a63d-705681abff85"], ["created_at", "2015-03-02 05:19:04.414300"], ["updated_at", "2015-03-02 05:19:04.414300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a4ba162a-c09b-11e4-8099-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a4baaea0-c09b-11e4-a63d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4ba162a-c09b-11e4-8099-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4baaea0-c09b-11e4-a63d-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a4baaea0-c09b-11e4-a63d-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4ba162a-c09b-11e4-8099-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a4baaea0-c09b-11e4-a63d-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:04.435619"], ["updated_at", "2015-03-02 05:19:04.435619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a4be6748-c09b-11e4-b046-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a4be6748-c09b-11e4-b046-705681abff85"], ["created_at", "2015-03-02 05:19:04.439272"], ["updated_at", "2015-03-02 05:19:04.439272"], ["token", "u9KcGEyUA6O9AnPhzh_TzM7fRPiLBcvNeLzvwJd9UiI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.4ms) Clubhouse::Mailer#invitation: processed outbound mail in 3.1ms Sent mail to john@example.com (1.8ms) Date: Sun, 01 Mar 2015 21:19:04 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f2c86c9e3_149153fdf45065be48117f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/u9KcGEyUA6O9AnPhzh_TzM7fRPiLBcvNeLzvwJd9UiI If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:04.450131"], ["updated_at", "2015-03-02 05:19:04.450131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a4c09dba-c09b-11e4-8bff-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a4c09dba-c09b-11e4-8bff-705681abff85"], ["created_at", "2015-03-02 05:19:04.453970"], ["updated_at", "2015-03-02 05:19:04.453970"], ["token", "xGfky87RP7divITxA5iHpdD-zautM53XIbLH8UgekiY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Sun, 01 Mar 2015 21:19:04 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f2c86fc5b_149153fdf45065be481284@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/xGfky87RP7divITxA5iHpdD-zautM53XIbLH8UgekiY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:04.462719"], ["updated_at", "2015-03-02 05:19:04.462719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a4c28a12-c09b-11e4-aa00-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a4c28a12-c09b-11e4-aa00-705681abff85"], ["created_at", "2015-03-02 05:19:04.467284"], ["updated_at", "2015-03-02 05:19:04.467284"], ["token", "ldzItSAn5nWDrpMV7ferNZVoRTAySyIdPw-xzADyMhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.7ms) Date: Sun, 01 Mar 2015 21:19:04 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f2c8731d5_149153fdf45065be481330@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/ldzItSAn5nWDrpMV7ferNZVoRTAySyIdPw-xzADyMhY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:19:04.476544"], ["updated_at", "2015-03-02 05:19:04.476544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a4c4a720-c09b-11e4-afb4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a4c4a720-c09b-11e4-afb4-705681abff85"], ["created_at", "2015-03-02 05:19:04.480391"], ["updated_at", "2015-03-02 05:19:04.480391"], ["token", "WArfdkG-zWdPJvaCR49TM2Cj_eTxuAYqWN8bANe8k24"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (2.4ms) Date: Sun, 01 Mar 2015 21:19:04 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f2c87643b_149153fdf45065be481419@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/WArfdkG-zWdPJvaCR49TM2Cj_eTxuAYqWN8bANe8k24 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$pBWzthk5GCEZa5nCEzSwY.LYKijoevpAP.UDi/Yi5./7zNxwwH8Cm"], ["created_at", "2015-03-02 05:21:48.793932"], ["updated_at", "2015-03-02 05:21:48.793932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (6.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:48.835590"], ["updated_at", "2015-03-02 05:21:48.835590"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06b95a2a-c09c-11e4-8a02-705681abff85' AND "clubhouse_memberships"."organization_id" = '06bbe79a-c09c-11e4-b539-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06b95a2a-c09c-11e4-8a02-705681abff85"], ["organization_id", "06bbe79a-c09c-11e4-b539-705681abff85"], ["created_at", "2015-03-02 05:21:48.846388"], ["updated_at", "2015-03-02 05:21:48.846388"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.6ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "06b95a2a-c09c-11e4-8a02-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "06bbe79a-c09c-11e4-b539-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06b95a2a-c09c-11e4-8a02-705681abff85' AND "clubhouse_memberships"."organization_id" = '06bbe79a-c09c-11e4-b539-705681abff85') LIMIT 1 Clubhouse::Membership Load (1.8ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "06bbe79a-c09c-11e4-b539-705681abff86"]] Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06b95a2a-c09c-11e4-8a02-705681abff85' AND "clubhouse_memberships"."organization_id" = '06bbe79a-c09c-11e4-b539-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$7KaJb051dPMefDTItaDDmeZb7uHstmi3RKsYs.9GktS/w.LwYiVBW"], ["created_at", "2015-03-02 05:21:48.907238"], ["updated_at", "2015-03-02 05:21:48.907238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$WC9NANiEIbv8FvTzUmbvhuxXZPm0HveWMLvIv.AqIVyG1LU7/X0hG"], ["created_at", "2015-03-02 05:21:48.912817"], ["updated_at", "2015-03-02 05:21:48.912817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:48.921598"], ["user_id", "06c6d98e-c09c-11e4-aeb0-705681abff85"], ["created_at", "2015-03-02 05:21:48.922826"], ["updated_at", "2015-03-02 05:21:48.922826"], ["token", "H0UgtNtLlOxbmfw-mxs3Bl3fws4B4wbZWDhYrEOJwQw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:48.935340"], ["updated_at", "2015-03-02 05:21:48.935340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (6.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06c6d98e-c09c-11e4-aeb0-705681abff85' AND "clubhouse_memberships"."organization_id" = '06cb836c-c09c-11e4-82dc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "06c6d98e-c09c-11e4-aeb0-705681abff85"], ["organization_id", "06cb836c-c09c-11e4-82dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:48.969046"], ["updated_at", "2015-03-02 05:21:48.969046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06c7a4b8-c09c-11e4-9538-705681abff85' AND "clubhouse_memberships"."organization_id" = '06cb836c-c09c-11e4-82dc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06c7a4b8-c09c-11e4-9538-705681abff85"], ["organization_id", "06cb836c-c09c-11e4-82dc-705681abff85"], ["created_at", "2015-03-02 05:21:48.974800"], ["updated_at", "2015-03-02 05:21:48.974800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/06d0811e-c09c-11e4-84e6-705681abff85" for 127.0.0.1 at 2015-03-01 21:21:48 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"06d0811e-c09c-11e4-84e6-705681abff85", "membership"=>{}} Pollett::Session Load (1.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:49.011882' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "H0UgtNtLlOxbmfw-mxs3Bl3fws4B4wbZWDhYrEOJwQw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:49.024782"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:49.026385"], ["id", "06c94020-c09c-11e4-9c9f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "06c6d98e-c09c-11e4-aeb0-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "06c6d98e-c09c-11e4-aeb0-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "06c6d98e-c09c-11e4-aeb0-705681abff85"]] Clubhouse::Membership Load (0.7ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "06c6d98e-c09c-11e4-aeb0-705681abff85"], ["id", "06d0811e-c09c-11e4-84e6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "06cb836c-c09c-11e4-82dc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "06c6d98e-c09c-11e4-aeb0-705681abff85"]] Completed 200 OK in 55ms (Views: 5.9ms | ActiveRecord: 3.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$lRmJmtWeSvX18EIc5WB.FOAJCx7qAYA4nYdnvUaeoOYS6SlNXI/tS"], ["created_at", "2015-03-02 05:21:49.087364"], ["updated_at", "2015-03-02 05:21:49.087364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$cQvFJG7w29JyniOc8sXexubXuzKnfpLGrvGZ90xMRhpLAaToiBOOK"], ["created_at", "2015-03-02 05:21:49.097067"], ["updated_at", "2015-03-02 05:21:49.097067"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.101240"], ["user_id", "06e24c8c-c09c-11e4-b823-705681abff85"], ["created_at", "2015-03-02 05:21:49.102689"], ["updated_at", "2015-03-02 05:21:49.102689"], ["token", "jLzBwN6cXGclIVk6vuuSAMXi-CqM6Mc_YHGCMrpVZvA"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.117262"], ["updated_at", "2015-03-02 05:21:49.117262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06e24c8c-c09c-11e4-b823-705681abff85' AND "clubhouse_memberships"."organization_id" = '06e6ea8a-c09c-11e4-af0c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "06e24c8c-c09c-11e4-b823-705681abff85"], ["organization_id", "06e6ea8a-c09c-11e4-af0c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.121522"], ["updated_at", "2015-03-02 05:21:49.121522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06e3f7da-c09c-11e4-85b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '06e6ea8a-c09c-11e4-af0c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06e3f7da-c09c-11e4-85b1-705681abff85"], ["organization_id", "06e6ea8a-c09c-11e4-af0c-705681abff85"], ["created_at", "2015-03-02 05:21:49.125182"], ["updated_at", "2015-03-02 05:21:49.125182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Pix/LKaIwQZ8Q5UbgIZ2tOnf0aik6wX.BJ1XiG2J.HfRRD8A6Yz7C"], ["created_at", "2015-03-02 05:21:49.136952"], ["updated_at", "2015-03-02 05:21:49.136952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$bvGofcPYgWBjpF6u9qtNPuEwexyTUgGbHjY9hnkx0ghgLFrP7qeg6"], ["created_at", "2015-03-02 05:21:49.142023"], ["updated_at", "2015-03-02 05:21:49.142023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.143722"], ["user_id", "06e9dec0-c09c-11e4-97c9-705681abff85"], ["created_at", "2015-03-02 05:21:49.144490"], ["updated_at", "2015-03-02 05:21:49.144490"], ["token", "vs2yoUN098F__JOkV7aceVVYTxEE5fZg3Lk3kzibr9s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.147981"], ["updated_at", "2015-03-02 05:21:49.147981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06e9dec0-c09c-11e4-97c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '06eb8518-c09c-11e4-b74c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "06e9dec0-c09c-11e4-97c9-705681abff85"], ["organization_id", "06eb8518-c09c-11e4-b74c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.151695"], ["updated_at", "2015-03-02 05:21:49.151695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06ea9a22-c09c-11e4-bfd2-705681abff85' AND "clubhouse_memberships"."organization_id" = '06eb8518-c09c-11e4-b74c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06ea9a22-c09c-11e4-bfd2-705681abff85"], ["organization_id", "06eb8518-c09c-11e4-b74c-705681abff85"], ["created_at", "2015-03-02 05:21:49.155652"], ["updated_at", "2015-03-02 05:21:49.155652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$x.uoJcIDoygzOZZhF0KHxuI4mRN6nj4AtabI6S8jRtuYfqRI5Uame"], ["created_at", "2015-03-02 05:21:49.166653"], ["updated_at", "2015-03-02 05:21:49.166653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$WQ4N6DDrGvE6NEqgFJTJY.sH2uV3kDLCf5w9j.2qXtWezI5tcNwxe"], ["created_at", "2015-03-02 05:21:49.172258"], ["updated_at", "2015-03-02 05:21:49.172258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.174068"], ["user_id", "06ee7ae8-c09c-11e4-9c1f-705681abff85"], ["created_at", "2015-03-02 05:21:49.174883"], ["updated_at", "2015-03-02 05:21:49.174883"], ["token", "mSAEpfvEARvDDpFBsAi2--c6jSg_WPq3u_wkutGCZ6I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.178927"], ["updated_at", "2015-03-02 05:21:49.178927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06ee7ae8-c09c-11e4-9c1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '06f03e5a-c09c-11e4-9774-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "06ee7ae8-c09c-11e4-9c1f-705681abff85"], ["organization_id", "06f03e5a-c09c-11e4-9774-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.182934"], ["updated_at", "2015-03-02 05:21:49.182934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06ef3cd0-c09c-11e4-b557-705681abff85' AND "clubhouse_memberships"."organization_id" = '06f03e5a-c09c-11e4-9774-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06ef3cd0-c09c-11e4-b557-705681abff85"], ["organization_id", "06f03e5a-c09c-11e4-9774-705681abff85"], ["created_at", "2015-03-02 05:21:49.186771"], ["updated_at", "2015-03-02 05:21:49.186771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/06f0e062-c09c-11e4-b0c7-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"06f0e062-c09c-11e4-b0c7-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:49.194957' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mSAEpfvEARvDDpFBsAi2--c6jSg_WPq3u_wkutGCZ6I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:49.196862"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:49.197972"], ["id", "06efaac6-c09c-11e4-9b79-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "06ee7ae8-c09c-11e4-9c1f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "06ee7ae8-c09c-11e4-9c1f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '06ee7ae8-c09c-11e4-9c1f-705681abff85' LIMIT 1 [["organization_id", "06f03e5a-c09c-11e4-9774-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "06f03e5a-c09c-11e4-9774-705681abff85"], ["id", "06f0e062-c09c-11e4-b0c7-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "06ee7ae8-c09c-11e4-9c1f-705681abff85"]] Completed 500 Internal Server Error in 17ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$QrqhgXQoQpu8//chHvnxXOpYLpZsZbC49RnjWVljCwL7Ok72WzSrq"], ["created_at", "2015-03-02 05:21:49.217710"], ["updated_at", "2015-03-02 05:21:49.217710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$2jLo7ktNspugb1SQUWGMKeDDjN7XVkFP6AbJZmtiY9QsHm72dQk/2"], ["created_at", "2015-03-02 05:21:49.271767"], ["updated_at", "2015-03-02 05:21:49.271767"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.276506"], ["user_id", "06f630a8-c09c-11e4-ace5-705681abff85"], ["created_at", "2015-03-02 05:21:49.291882"], ["updated_at", "2015-03-02 05:21:49.291882"], ["token", "3O_jo8veBEKqnMFs2fGZjhBQ2gu09WZ0JkQuFdZzEWg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.300865"], ["updated_at", "2015-03-02 05:21:49.300865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06f630a8-c09c-11e4-ace5-705681abff85' AND "clubhouse_memberships"."organization_id" = '0704c866-c09c-11e4-91e5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "06f630a8-c09c-11e4-ace5-705681abff85"], ["organization_id", "0704c866-c09c-11e4-91e5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.318980"], ["updated_at", "2015-03-02 05:21:49.318980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06feaeae-c09c-11e4-bdc2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0704c866-c09c-11e4-91e5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06feaeae-c09c-11e4-bdc2-705681abff85"], ["organization_id", "0704c866-c09c-11e4-91e5-705681abff85"], ["created_at", "2015-03-02 05:21:49.322774"], ["updated_at", "2015-03-02 05:21:49.322774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/070668ce-c09c-11e4-a147-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"070668ce-c09c-11e4-a147-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:49.332783' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3O_jo8veBEKqnMFs2fGZjhBQ2gu09WZ0JkQuFdZzEWg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:49.334443"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:49.335587"], ["id", "0701bd9c-c09c-11e4-bb6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "06f630a8-c09c-11e4-ace5-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "06f630a8-c09c-11e4-ace5-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '06f630a8-c09c-11e4-ace5-705681abff85' LIMIT 1 [["organization_id", "0704c866-c09c-11e4-91e5-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "0704c866-c09c-11e4-91e5-705681abff85"], ["id", "070668ce-c09c-11e4-a147-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "06feaeae-c09c-11e4-bdc2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0704c866-c09c-11e4-91e5-705681abff85"]] Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06feaeae-c09c-11e4-bdc2-705681abff85' AND "clubhouse_memberships"."id" != '070668ce-c09c-11e4-a147-705681abff85' AND "clubhouse_memberships"."organization_id" = '0704c866-c09c-11e4-91e5-705681abff85') LIMIT 1 SQL (1.6ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:21:49.362150"], ["id", "070668ce-c09c-11e4-a147-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 37ms (Views: 2.0ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$B4V2m9IzDx9yqa0f5pHjyOJiZ2SE5Dn53W9vnjhsjT0WoIp0gk1.O"], ["created_at", "2015-03-02 05:21:49.383319"], ["updated_at", "2015-03-02 05:21:49.383319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$VKRERX5OGiwk1kcS2gxBOe34kJPnduZXsYA8N4.upegmf4Q1PyFgK"], ["created_at", "2015-03-02 05:21:49.396872"], ["updated_at", "2015-03-02 05:21:49.396872"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.410127"], ["user_id", "070f7978-c09c-11e4-9b6a-705681abff85"], ["created_at", "2015-03-02 05:21:49.413183"], ["updated_at", "2015-03-02 05:21:49.413183"], ["token", "Ml3tvlcl6-HJ_Ui8rN-mTwVNS7XLlSfSQTQRhcBDkT0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.417850"], ["updated_at", "2015-03-02 05:21:49.417850"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '070f7978-c09c-11e4-9b6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '0714c126-c09c-11e4-9993-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "070f7978-c09c-11e4-9b6a-705681abff85"], ["organization_id", "0714c126-c09c-11e4-9993-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.424613"], ["updated_at", "2015-03-02 05:21:49.424613"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0711c7aa-c09c-11e4-a2a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0714c126-c09c-11e4-9993-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0711c7aa-c09c-11e4-a2a2-705681abff85"], ["organization_id", "0714c126-c09c-11e4-9993-705681abff85"], ["created_at", "2015-03-02 05:21:49.433805"], ["updated_at", "2015-03-02 05:21:49.433805"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$TaMu99RPN60YZvJI5H7XdOK.qnqrgG.W0TDdKZN1.cfRBlBNPBV6S"], ["created_at", "2015-03-02 05:21:49.449005"], ["updated_at", "2015-03-02 05:21:49.449005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$tX/qoqQA0kDYmcJl9MDK1ey7HrjawB6qLg478U3chESFXMeCkGenW"], ["created_at", "2015-03-02 05:21:49.457731"], ["updated_at", "2015-03-02 05:21:49.457731"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.461529"], ["user_id", "0719c77a-c09c-11e4-84cc-705681abff85"], ["created_at", "2015-03-02 05:21:49.462742"], ["updated_at", "2015-03-02 05:21:49.462742"], ["token", "gz3daFu5eVuDXvRSKzcvdqzY_JZmQoCm4-dA_c7BDD0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.469672"], ["updated_at", "2015-03-02 05:21:49.469672"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0719c77a-c09c-11e4-84cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '071ca742-c09c-11e4-b2db-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0719c77a-c09c-11e4-84cc-705681abff85"], ["organization_id", "071ca742-c09c-11e4-b2db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.479283"], ["updated_at", "2015-03-02 05:21:49.479283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '071adf7a-c09c-11e4-9b6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '071ca742-c09c-11e4-b2db-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "071adf7a-c09c-11e4-9b6b-705681abff85"], ["organization_id", "071ca742-c09c-11e4-b2db-705681abff85"], ["created_at", "2015-03-02 05:21:49.484222"], ["updated_at", "2015-03-02 05:21:49.484222"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/071e2bc6-c09c-11e4-b3bc-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"071e2bc6-c09c-11e4-b3bc-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:49.493095' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gz3daFu5eVuDXvRSKzcvdqzY_JZmQoCm4-dA_c7BDD0"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:49.495645"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:49.498021"], ["id", "071ba7a2-c09c-11e4-873f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0719c77a-c09c-11e4-84cc-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0719c77a-c09c-11e4-84cc-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0719c77a-c09c-11e4-84cc-705681abff85' LIMIT 1 [["organization_id", "071ca742-c09c-11e4-b2db-705681abff85"]] Clubhouse::Membership Load (0.7ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "071ca742-c09c-11e4-b2db-705681abff85"], ["id", "071e2bc6-c09c-11e4-b3bc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0719c77a-c09c-11e4-84cc-705681abff85"]] Completed 500 Internal Server Error in 19ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$K3v8.PpF8g8Jn3bRFgBpZ.x5cl.BeJRtTNyJ9QAEU1wdSCpbabSbC"], ["created_at", "2015-03-02 05:21:49.521187"], ["updated_at", "2015-03-02 05:21:49.521187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$GbIKMhBZ7MlyiDV/LtiXsuGgebUZtExYl8AH3XTHPnddG16lYsvOi"], ["created_at", "2015-03-02 05:21:49.527985"], ["updated_at", "2015-03-02 05:21:49.527985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.531058"], ["user_id", "072486c4-c09c-11e4-9bd4-705681abff85"], ["created_at", "2015-03-02 05:21:49.532254"], ["updated_at", "2015-03-02 05:21:49.532254"], ["token", "wUlaqtFrz9cpxpElXpBtmpxHKcKkIxcVCyK9qiGtYGY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.538219"], ["updated_at", "2015-03-02 05:21:49.538219"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '072486c4-c09c-11e4-9bd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '07272028-c09c-11e4-8c11-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "072486c4-c09c-11e4-9bd4-705681abff85"], ["organization_id", "07272028-c09c-11e4-8c11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.547636"], ["updated_at", "2015-03-02 05:21:49.547636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '072598f2-c09c-11e4-a0d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '07272028-c09c-11e4-8c11-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "072598f2-c09c-11e4-a0d1-705681abff85"], ["organization_id", "07272028-c09c-11e4-8c11-705681abff85"], ["created_at", "2015-03-02 05:21:49.552806"], ["updated_at", "2015-03-02 05:21:49.552806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/072950aa-c09c-11e4-93e5-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"072950aa-c09c-11e4-93e5-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:49.560947' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wUlaqtFrz9cpxpElXpBtmpxHKcKkIxcVCyK9qiGtYGY"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:49.564084"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:49.565642"], ["id", "072637b2-c09c-11e4-9eb5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "072486c4-c09c-11e4-9bd4-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "072486c4-c09c-11e4-9bd4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '072486c4-c09c-11e4-9bd4-705681abff85' LIMIT 1 [["organization_id", "07272028-c09c-11e4-8c11-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "07272028-c09c-11e4-8c11-705681abff85"], ["id", "072950aa-c09c-11e4-93e5-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "072598f2-c09c-11e4-a0d1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "072950aa-c09c-11e4-93e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 20ms (ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$lIO5QUyK0iX1hM3tg/fBQeJ7SahEhEQP4sVUVZC2PP/uG9STpXgTC"], ["created_at", "2015-03-02 05:21:49.587855"], ["updated_at", "2015-03-02 05:21:49.587855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$y86Rq7Gdqqzf0hpdiXbWt.OAf2SK3EUbxGXh/Mwa0PJ9tNR5/6xTa"], ["created_at", "2015-03-02 05:21:49.594073"], ["updated_at", "2015-03-02 05:21:49.594073"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.597627"], ["user_id", "072eacbc-c09c-11e4-91a4-705681abff85"], ["created_at", "2015-03-02 05:21:49.599249"], ["updated_at", "2015-03-02 05:21:49.599249"], ["token", "2uwPvtp7VHDXMJ4QobOdaaDyp1MC4ZLRUOnP6hWOxQA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.604266"], ["updated_at", "2015-03-02 05:21:49.604266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '072eacbc-c09c-11e4-91a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '073126ea-c09c-11e4-af25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "072eacbc-c09c-11e4-91a4-705681abff85"], ["organization_id", "073126ea-c09c-11e4-af25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.608109"], ["updated_at", "2015-03-02 05:21:49.608109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '072faacc-c09c-11e4-be67-705681abff85' AND "clubhouse_memberships"."organization_id" = '073126ea-c09c-11e4-af25-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "072faacc-c09c-11e4-be67-705681abff85"], ["organization_id", "073126ea-c09c-11e4-af25-705681abff85"], ["created_at", "2015-03-02 05:21:49.614216"], ["updated_at", "2015-03-02 05:21:49.614216"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$bze18i8c.6F54QavAyK1F.Jp849EV8O8VyYNB9.RtMGTe3Ph7mpuu"], ["created_at", "2015-03-02 05:21:49.622679"], ["updated_at", "2015-03-02 05:21:49.622679"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.624948"], ["user_id", "0733ff32-c09c-11e4-858c-705681abff85"], ["created_at", "2015-03-02 05:21:49.626235"], ["updated_at", "2015-03-02 05:21:49.626235"], ["token", "jlMqFY5erJO3kG4_DSFs5bjZF6mvX5mSR18w-J9foSQ"]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '073126ea-c09c-11e4-af25-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "073126ea-c09c-11e4-af25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.651114"], ["updated_at", "2015-03-02 05:21:49.651114"], ["token", "10gmKjbGkWlLBqu6cAxJcERtxEBdabb8Jp1vhbfDbeA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$5rozbgnGJILj7QbWLrvxHuPUT1PbR9HngZ.pFMs7Giq5EKIe.HfNC"], ["created_at", "2015-03-02 05:21:49.696073"], ["updated_at", "2015-03-02 05:21:49.696073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$Cd7QRknK6veTAmwwMpi77.vGWaqjhSmwqCXIHtuGWY8PAxSzy97ka"], ["created_at", "2015-03-02 05:21:49.771243"], ["updated_at", "2015-03-02 05:21:49.771243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.773209"], ["user_id", "073f43ce-c09c-11e4-8927-705681abff85"], ["created_at", "2015-03-02 05:21:49.775382"], ["updated_at", "2015-03-02 05:21:49.775382"], ["token", "lEllVGxUye_FOk4ZxUSzHMxgOEsvkhKJXH0H2RsevQs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.780312"], ["updated_at", "2015-03-02 05:21:49.780312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '073f43ce-c09c-11e4-8927-705681abff85' AND "clubhouse_memberships"."organization_id" = '074c09ce-c09c-11e4-8453-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "073f43ce-c09c-11e4-8927-705681abff85"], ["organization_id", "074c09ce-c09c-11e4-8453-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.784469"], ["updated_at", "2015-03-02 05:21:49.784469"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '074aa606-c09c-11e4-8109-705681abff85' AND "clubhouse_memberships"."organization_id" = '074c09ce-c09c-11e4-8453-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "074aa606-c09c-11e4-8109-705681abff85"], ["organization_id", "074c09ce-c09c-11e4-8453-705681abff85"], ["created_at", "2015-03-02 05:21:49.789334"], ["updated_at", "2015-03-02 05:21:49.789334"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$K6rmId9A26IBkOeFtg2OWe.CqEFfCXRCbM73GsHII3NvosAiCqn8O"], ["created_at", "2015-03-02 05:21:49.796830"], ["updated_at", "2015-03-02 05:21:49.796830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.798613"], ["user_id", "074e887a-c09c-11e4-9f5c-705681abff85"], ["created_at", "2015-03-02 05:21:49.799521"], ["updated_at", "2015-03-02 05:21:49.799521"], ["token", "tBL5Jpj_QWG5siIuNPryJw3jqR9a3w9GRX-lUjwaRwk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '074c09ce-c09c-11e4-8453-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "074c09ce-c09c-11e4-8453-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.803594"], ["updated_at", "2015-03-02 05:21:49.803594"], ["token", "pQ7RHJUVNno6hoo-6Fg0ZraCxvc-WojZrkEzk2b_-OY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:49.808826' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tBL5Jpj_QWG5siIuNPryJw3jqR9a3w9GRX-lUjwaRwk"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:49.811344"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:49.816711"], ["id", "074ef576-c09c-11e4-838b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "074e887a-c09c-11e4-9f5c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "074e887a-c09c-11e4-9f5c-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 18ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$pEGlmYv5mjGeRtOhDFBxoO71m8E7l.Q2ypM4dgzq17L.NmatLcERm"], ["created_at", "2015-03-02 05:21:49.835055"], ["updated_at", "2015-03-02 05:21:49.835055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$C1mO1qsmMhx3mkr2argXMOIdZu36DTZPk5EPMaJ02UBYwq12WaJU."], ["created_at", "2015-03-02 05:21:49.839881"], ["updated_at", "2015-03-02 05:21:49.839881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.841634"], ["user_id", "07546772-c09c-11e4-9ab3-705681abff85"], ["created_at", "2015-03-02 05:21:49.842876"], ["updated_at", "2015-03-02 05:21:49.842876"], ["token", "Ioz3s196GDFmwP3VyJprE2QNC3NO1UYX45D0nnZIIx8"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.851463"], ["updated_at", "2015-03-02 05:21:49.851463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07546772-c09c-11e4-9ab3-705681abff85' AND "clubhouse_memberships"."organization_id" = '0756e8ee-c09c-11e4-9891-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07546772-c09c-11e4-9ab3-705681abff85"], ["organization_id", "0756e8ee-c09c-11e4-9891-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.855876"], ["updated_at", "2015-03-02 05:21:49.855876"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0755188e-c09c-11e4-9dcb-705681abff85' AND "clubhouse_memberships"."organization_id" = '0756e8ee-c09c-11e4-9891-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0755188e-c09c-11e4-9dcb-705681abff85"], ["organization_id", "0756e8ee-c09c-11e4-9891-705681abff85"], ["created_at", "2015-03-02 05:21:49.861121"], ["updated_at", "2015-03-02 05:21:49.861121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$pRw5QsZAs.1wdxrWFIExbeLLwe/DuOihH.lajb8XDnocXdlE7a/4O"], ["created_at", "2015-03-02 05:21:49.868364"], ["updated_at", "2015-03-02 05:21:49.868364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.870495"], ["user_id", "075975fa-c09c-11e4-9681-705681abff85"], ["created_at", "2015-03-02 05:21:49.871513"], ["updated_at", "2015-03-02 05:21:49.871513"], ["token", "zqSRR0UrSYTtZKKOLJRTx2rbdB96qQ8q5ymxDDgbow4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '0756e8ee-c09c-11e4-9891-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "0756e8ee-c09c-11e4-9891-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.875598"], ["updated_at", "2015-03-02 05:21:49.875598"], ["token", "p7Mqez_321Q59WeEgwxndniWZdIkSOB7aAOuPac6nWk"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"p7Mqez_321Q59WeEgwxndniWZdIkSOB7aAOuPac6nWk", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:49.886311' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zqSRR0UrSYTtZKKOLJRTx2rbdB96qQ8q5ymxDDgbow4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:49.887908"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:49.889004"], ["id", "0759f53e-c09c-11e4-9a54-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "075975fa-c09c-11e4-9681-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "075975fa-c09c-11e4-9681-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "p7Mqez_321Q59WeEgwxndniWZdIkSOB7aAOuPac6nWk"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0756e8ee-c09c-11e4-9891-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0756e8ee-c09c-11e4-9891-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '075975fa-c09c-11e4-9681-705681abff85' AND "clubhouse_memberships"."organization_id" = '0756e8ee-c09c-11e4-9891-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "075975fa-c09c-11e4-9681-705681abff85"], ["admin", "t"], ["organization_id", "0756e8ee-c09c-11e4-9891-705681abff85"], ["created_at", "2015-03-02 05:21:49.901908"], ["updated_at", "2015-03-02 05:21:49.901908"]] SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "075aa5a6-c09c-11e4-b6f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 22ms (Views: 1.2ms | ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$JkFqkZliiEpu2KYYGBuNqu8oQcxR2jWHVVwl5IsIkXBpXe7bNGY/."], ["created_at", "2015-03-02 05:21:49.916280"], ["updated_at", "2015-03-02 05:21:49.916280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$chTLrg2bxaIJLzGJ7voJRuxXdCePOiD5s104EkqmrKYNZ/sZnPl9."], ["created_at", "2015-03-02 05:21:49.924746"], ["updated_at", "2015-03-02 05:21:49.924746"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:49.929711"], ["user_id", "0760c90e-c09c-11e4-bd0b-705681abff85"], ["created_at", "2015-03-02 05:21:49.930891"], ["updated_at", "2015-03-02 05:21:49.930891"], ["token", "YkkhtLCfW0ltKgfU377XaX73qLJq0s07fvHmJGYh2bg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:49.936059"], ["updated_at", "2015-03-02 05:21:49.936059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0760c90e-c09c-11e4-bd0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0763dd24-c09c-11e4-a45a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0760c90e-c09c-11e4-bd0b-705681abff85"], ["organization_id", "0763dd24-c09c-11e4-a45a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:49.942846"], ["updated_at", "2015-03-02 05:21:49.942846"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07622f6a-c09c-11e4-b064-705681abff85' AND "clubhouse_memberships"."organization_id" = '0763dd24-c09c-11e4-a45a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07622f6a-c09c-11e4-b064-705681abff85"], ["organization_id", "0763dd24-c09c-11e4-a45a-705681abff85"], ["created_at", "2015-03-02 05:21:49.950752"], ["updated_at", "2015-03-02 05:21:49.950752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 21:21:49 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:49.957100' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YkkhtLCfW0ltKgfU377XaX73qLJq0s07fvHmJGYh2bg"]]  (2.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:49.959098"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:49.970146"], ["id", "07630f02-c09c-11e4-a1f0-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0760c90e-c09c-11e4-bd0b-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0760c90e-c09c-11e4-bd0b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0760c90e-c09c-11e4-bd0b-705681abff85' LIMIT 1 [["organization_id", "0763dd24-c09c-11e4-a45a-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "0763dd24-c09c-11e4-a45a-705681abff85"]] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('0760c90e-c09c-11e4-bd0b-705681abff85', '07622f6a-c09c-11e4-b064-705681abff85') Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('0763dd24-c09c-11e4-a45a-705681abff85') Completed 200 OK in 43ms (Views: 15.7ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$8/WasvNdb8cVgygbYvQBLOp6mMFGc8oRFFeY1iDxsGahJenYoiqKK"], ["created_at", "2015-03-02 05:21:50.010587"], ["updated_at", "2015-03-02 05:21:50.010587"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$lQZPVCOwCpFvxf9KYEtcXepOPvdTIH35GPr/cpYkqDDjHB/TsAon2"], ["created_at", "2015-03-02 05:21:50.016831"], ["updated_at", "2015-03-02 05:21:50.016831"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.018769"], ["user_id", "076f2d00-c09c-11e4-ab45-705681abff85"], ["created_at", "2015-03-02 05:21:50.020064"], ["updated_at", "2015-03-02 05:21:50.020064"], ["token", "CsvdKkIxp-dyNBjIGxY-jRDOptQhnerycKjCN0qNAJw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.024735"], ["updated_at", "2015-03-02 05:21:50.024735"]]  (9.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '076f2d00-c09c-11e4-ab45-705681abff85' AND "clubhouse_memberships"."organization_id" = '077166c4-c09c-11e4-b575-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "076f2d00-c09c-11e4-ab45-705681abff85"], ["organization_id", "077166c4-c09c-11e4-b575-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:50.039674"], ["updated_at", "2015-03-02 05:21:50.039674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07701d14-c09c-11e4-b5c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '077166c4-c09c-11e4-b575-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07701d14-c09c-11e4-b5c2-705681abff85"], ["organization_id", "077166c4-c09c-11e4-b575-705681abff85"], ["created_at", "2015-03-02 05:21:50.045034"], ["updated_at", "2015-03-02 05:21:50.045034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/07746d74-c09c-11e4-8c94-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"07746d74-c09c-11e4-8c94-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.050931' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CsvdKkIxp-dyNBjIGxY-jRDOptQhnerycKjCN0qNAJw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.052466"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.053525"], ["id", "0770ab94-c09c-11e4-ac6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "076f2d00-c09c-11e4-ab45-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "076f2d00-c09c-11e4-ab45-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '076f2d00-c09c-11e4-ab45-705681abff85' LIMIT 1 [["organization_id", "077166c4-c09c-11e4-b575-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "077166c4-c09c-11e4-b575-705681abff85"], ["id", "07746d74-c09c-11e4-8c94-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "077166c4-c09c-11e4-b575-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07701d14-c09c-11e4-b5c2-705681abff85"]] Completed 200 OK in 13ms (Views: 3.7ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$EUX51Ni9xG6C6FNTm.i.VexSB3Q4aX.ZZIZ6.HFhHo5I8P/Yb5ira"], ["created_at", "2015-03-02 05:21:50.071056"], ["updated_at", "2015-03-02 05:21:50.071056"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$Wdz9kJHH4OqE.jGrhiPTYOhRlBYx9lGVmO7qJW2IPXTAHRecnfaCO"], ["created_at", "2015-03-02 05:21:50.081761"], ["updated_at", "2015-03-02 05:21:50.081761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.083524"], ["user_id", "07788d64-c09c-11e4-86ed-705681abff85"], ["created_at", "2015-03-02 05:21:50.084344"], ["updated_at", "2015-03-02 05:21:50.084344"], ["token", "JzCJnp-zm5RCDUnP_rMaqmU9gPiYDfb8U6CObU3aeWg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.088503"], ["updated_at", "2015-03-02 05:21:50.088503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07788d64-c09c-11e4-86ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '077b0616-c09c-11e4-b575-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07788d64-c09c-11e4-86ed-705681abff85"], ["organization_id", "077b0616-c09c-11e4-b575-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:50.092083"], ["updated_at", "2015-03-02 05:21:50.092083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '077a04f0-c09c-11e4-a6a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '077b0616-c09c-11e4-b575-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "077a04f0-c09c-11e4-a6a9-705681abff85"], ["organization_id", "077b0616-c09c-11e4-b575-705681abff85"], ["created_at", "2015-03-02 05:21:50.096334"], ["updated_at", "2015-03-02 05:21:50.096334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$DnNvJsqeaRyd926jU1upcO4PepB7NcpMn9a8aVE2Zo74BhcZt6Z9u"], ["created_at", "2015-03-02 05:21:50.116839"], ["updated_at", "2015-03-02 05:21:50.116839"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (3.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$TBrtVGepZDe6xVNnEInVsutT7agVpUUBs8baXamzYGsm7GEsBFCgq"], ["created_at", "2015-03-02 05:21:50.124887"], ["updated_at", "2015-03-02 05:21:50.124887"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.130540"], ["user_id", "077f9f32-c09c-11e4-806e-705681abff85"], ["created_at", "2015-03-02 05:21:50.132567"], ["updated_at", "2015-03-02 05:21:50.132567"], ["token", "iURdCVL3eJfTUH87C_fpSBfBD-MXv6S8ziIHpncbY0Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.138587"], ["updated_at", "2015-03-02 05:21:50.138587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '077f9f32-c09c-11e4-806e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0782bb86-c09c-11e4-8e3e-705681abff85') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "077f9f32-c09c-11e4-806e-705681abff85"], ["organization_id", "0782bb86-c09c-11e4-8e3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:50.145797"], ["updated_at", "2015-03-02 05:21:50.145797"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0780ad14-c09c-11e4-b739-705681abff85' AND "clubhouse_memberships"."organization_id" = '0782bb86-c09c-11e4-8e3e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0780ad14-c09c-11e4-b739-705681abff85"], ["organization_id", "0782bb86-c09c-11e4-8e3e-705681abff85"], ["created_at", "2015-03-02 05:21:50.152633"], ["updated_at", "2015-03-02 05:21:50.152633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (1.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.161998' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iURdCVL3eJfTUH87C_fpSBfBD-MXv6S8ziIHpncbY0Q"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.165477"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.167313"], ["id", "0781dd24-c09c-11e4-835f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "077f9f32-c09c-11e4-806e-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "077f9f32-c09c-11e4-806e-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "077f9f32-c09c-11e4-806e-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "077f9f32-c09c-11e4-806e-705681abff85"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('077f9f32-c09c-11e4-806e-705681abff85') Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('0782bb86-c09c-11e4-8e3e-705681abff85') Completed 200 OK in 23ms (Views: 9.3ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$KZKxWWOn3rDK3fZHGh7nfu4KbCj2QsIks.VuFMjuiyl/e7NEi5PPu"], ["created_at", "2015-03-02 05:21:50.192401"], ["updated_at", "2015-03-02 05:21:50.192401"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.197932"], ["user_id", "078af86e-c09c-11e4-ae0e-705681abff85"], ["created_at", "2015-03-02 05:21:50.199289"], ["updated_at", "2015-03-02 05:21:50.199289"], ["token", "CzP6JwIdLbmSViHlgc3Q7MBVlDUCnT7wev9he3z5B8Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.206100"], ["updated_at", "2015-03-02 05:21:50.206100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '078af86e-c09c-11e4-ae0e-705681abff85' AND "clubhouse_memberships"."organization_id" = '078cfee8-c09c-11e4-bf1d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "078af86e-c09c-11e4-ae0e-705681abff85"], ["organization_id", "078cfee8-c09c-11e4-bf1d-705681abff85"], ["created_at", "2015-03-02 05:21:50.211293"], ["updated_at", "2015-03-02 05:21:50.211293"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-2" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Session Load (1.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.315107' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CzP6JwIdLbmSViHlgc3Q7MBVlDUCnT7wev9he3z5B8Q"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.321884"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.324851"], ["id", "078c09ac-c09c-11e4-92e2-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "078af86e-c09c-11e4-ae0e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "078af86e-c09c-11e4-ae0e-705681abff85"], ["name", "org-2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "078cfee8-c09c-11e4-bf1d-705681abff85"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 86ms (ActiveRecord: 4.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$Yop4LiDeAk1qqveIYT9f9up3ntz8kYLhZYLgqFu1JZaWeiMvw76H."], ["created_at", "2015-03-02 05:21:50.358750"], ["updated_at", "2015-03-02 05:21:50.358750"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.362126"], ["user_id", "07a45ba6-c09c-11e4-80ef-705681abff85"], ["created_at", "2015-03-02 05:21:50.363408"], ["updated_at", "2015-03-02 05:21:50.363408"], ["token", "DzhuPN7kB8VtM3aDVqEuAIniT_36sftUATywgK2aH_c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.369427"], ["updated_at", "2015-03-02 05:21:50.369427"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07a45ba6-c09c-11e4-80ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '07a60438-c09c-11e4-98ea-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07a45ba6-c09c-11e4-80ef-705681abff85"], ["organization_id", "07a60438-c09c-11e4-98ea-705681abff85"], ["created_at", "2015-03-02 05:21:50.375596"], ["updated_at", "2015-03-02 05:21:50.375596"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$QkLXqwkjk1CDVoEBb6N6Z.Mb/Kfk6upt4V36EQvdSLhxj0GKV7Gce"], ["created_at", "2015-03-02 05:21:50.395117"], ["updated_at", "2015-03-02 05:21:50.395117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.397534"], ["user_id", "07a9e27e-c09c-11e4-ae35-705681abff85"], ["created_at", "2015-03-02 05:21:50.398395"], ["updated_at", "2015-03-02 05:21:50.398395"], ["token", "GjanUA_zNHeYnyOd0UJb4vybvvhOE6V4HVHQCXjWgf0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.402504"], ["updated_at", "2015-03-02 05:21:50.402504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07a9e27e-c09c-11e4-ae35-705681abff85' AND "clubhouse_memberships"."organization_id" = '07aafa1a-c09c-11e4-8a90-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07a9e27e-c09c-11e4-ae35-705681abff85"], ["organization_id", "07aafa1a-c09c-11e4-8a90-705681abff85"], ["created_at", "2015-03-02 05:21:50.406302"], ["updated_at", "2015-03-02 05:21:50.406302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/07aafa1a-c09c-11e4-8a90-705681abff85" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"07aafa1a-c09c-11e4-8a90-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.410808' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GjanUA_zNHeYnyOd0UJb4vybvvhOE6V4HVHQCXjWgf0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.412260"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.413288"], ["id", "07aa5c2c-c09c-11e4-b53c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07a9e27e-c09c-11e4-ae35-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07a9e27e-c09c-11e4-ae35-705681abff85"], ["id", "07aafa1a-c09c-11e4-8a90-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "07aafa1a-c09c-11e4-8a90-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$/l4B/MIQU/5DfxFEwf/UoeMqgmcWCls4fq8BU1bxApogsIjRHeAVK"], ["created_at", "2015-03-02 05:21:50.424997"], ["updated_at", "2015-03-02 05:21:50.424997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.426836"], ["user_id", "07ae62c2-c09c-11e4-992c-705681abff85"], ["created_at", "2015-03-02 05:21:50.427699"], ["updated_at", "2015-03-02 05:21:50.427699"], ["token", "bKsJCyzzExKmOG3BGzTjr2L1k3R6sZ_he7-FUxyrA_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.431926"], ["updated_at", "2015-03-02 05:21:50.431926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07ae62c2-c09c-11e4-992c-705681abff85' AND "clubhouse_memberships"."organization_id" = '07af6da2-c09c-11e4-9df8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07ae62c2-c09c-11e4-992c-705681abff85"], ["organization_id", "07af6da2-c09c-11e4-9df8-705681abff85"], ["created_at", "2015-03-02 05:21:50.435307"], ["updated_at", "2015-03-02 05:21:50.435307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$yTa5PvMKJ2drhaoL6Rvt9.rVQvFnTI8wTN1pX7BAkC/I5zjHFCw06"], ["created_at", "2015-03-02 05:21:50.446475"], ["updated_at", "2015-03-02 05:21:50.446475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.448393"], ["user_id", "07b1adc4-c09c-11e4-8a29-705681abff85"], ["created_at", "2015-03-02 05:21:50.449459"], ["updated_at", "2015-03-02 05:21:50.449459"], ["token", "okQgH8UCh55Hpc-QG3EB47xnmVTmBz0i1Wut9mHdufw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.453020"], ["updated_at", "2015-03-02 05:21:50.453020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07b1adc4-c09c-11e4-8a29-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b2a88c-c09c-11e4-8215-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07b1adc4-c09c-11e4-8a29-705681abff85"], ["organization_id", "07b2a88c-c09c-11e4-8215-705681abff85"], ["created_at", "2015-03-02 05:21:50.456532"], ["updated_at", "2015-03-02 05:21:50.456532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/07b2a88c-c09c-11e4-8215-705681abff85" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"07b2a88c-c09c-11e4-8215-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.462085' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "okQgH8UCh55Hpc-QG3EB47xnmVTmBz0i1Wut9mHdufw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.463532"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.464562"], ["id", "07b22290-c09c-11e4-a410-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07b1adc4-c09c-11e4-8a29-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07b1adc4-c09c-11e4-8a29-705681abff85"], ["id", "07b2a88c-c09c-11e4-8215-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$VgyIuH0xrSsycDPhuDE6cehhYuxaZfl5gfT2KVhhWXztGEGHQ7RkG"], ["created_at", "2015-03-02 05:21:50.475741"], ["updated_at", "2015-03-02 05:21:50.475741"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.481134"], ["user_id", "07b6316e-c09c-11e4-80df-705681abff85"], ["created_at", "2015-03-02 05:21:50.482696"], ["updated_at", "2015-03-02 05:21:50.482696"], ["token", "adXZy3GZGEzJo_o0IGjra75aJDxjmcCW6JyQXG4kWwI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.487841"], ["updated_at", "2015-03-02 05:21:50.487841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07b6316e-c09c-11e4-80df-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b7f76a-c09c-11e4-8e19-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07b6316e-c09c-11e4-80df-705681abff85"], ["organization_id", "07b7f76a-c09c-11e4-8e19-705681abff85"], ["created_at", "2015-03-02 05:21:50.491847"], ["updated_at", "2015-03-02 05:21:50.491847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$5ekD289Dzrmzl1htYHH00eonTt592GnTvmWvx1YvSQ4F5oc41cL6K"], ["created_at", "2015-03-02 05:21:50.504900"], ["updated_at", "2015-03-02 05:21:50.504900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.506733"], ["user_id", "07ba968c-c09c-11e4-a334-705681abff85"], ["created_at", "2015-03-02 05:21:50.507925"], ["updated_at", "2015-03-02 05:21:50.507925"], ["token", "uiJUBKDKQHZksus2QxYjoUlw55A0SXfMPnn1LxC4i_Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.512676"], ["updated_at", "2015-03-02 05:21:50.512676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07ba968c-c09c-11e4-a334-705681abff85' AND "clubhouse_memberships"."organization_id" = '07bbda4c-c09c-11e4-bba5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07ba968c-c09c-11e4-a334-705681abff85"], ["organization_id", "07bbda4c-c09c-11e4-bba5-705681abff85"], ["created_at", "2015-03-02 05:21:50.517418"], ["updated_at", "2015-03-02 05:21:50.517418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$5xmdyRlofy3EKyqzHDdHhund9qY8pt2m8Eibff93p.WHnQmMq9OcK"], ["created_at", "2015-03-02 05:21:50.529305"], ["updated_at", "2015-03-02 05:21:50.529305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.531496"], ["user_id", "07be54a2-c09c-11e4-b033-705681abff85"], ["created_at", "2015-03-02 05:21:50.532397"], ["updated_at", "2015-03-02 05:21:50.532397"], ["token", "UJuGfy6cpHzZIE44faxJIqaevaZ4XY2aMZvjba3tzgo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.537049"], ["updated_at", "2015-03-02 05:21:50.537049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07be54a2-c09c-11e4-b033-705681abff85' AND "clubhouse_memberships"."organization_id" = '07bf7cba-c09c-11e4-8021-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07be54a2-c09c-11e4-b033-705681abff85"], ["organization_id", "07bf7cba-c09c-11e4-8021-705681abff85"], ["created_at", "2015-03-02 05:21:50.540706"], ["updated_at", "2015-03-02 05:21:50.540706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.546512' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UJuGfy6cpHzZIE44faxJIqaevaZ4XY2aMZvjba3tzgo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.548112"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.549076"], ["id", "07becfc2-c09c-11e4-9fb4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07be54a2-c09c-11e4-b033-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07be54a2-c09c-11e4-b033-705681abff85"], ["name", "org-9"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '07bf7cba-c09c-11e4-8021-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$zry4FBVUZCFr3Z9YerG4duh5Wb.60BWBalTWG8nvcNxs0oDnZsV9S"], ["created_at", "2015-03-02 05:21:50.565596"], ["updated_at", "2015-03-02 05:21:50.565596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.567308"], ["user_id", "07c3d56c-c09c-11e4-b31f-705681abff85"], ["created_at", "2015-03-02 05:21:50.568733"], ["updated_at", "2015-03-02 05:21:50.568733"], ["token", "Dkai1y219WssVawchK4-DEnURyXZM6Rwpl6iFvfcyAI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.572745"], ["updated_at", "2015-03-02 05:21:50.572745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07c3d56c-c09c-11e4-b31f-705681abff85' AND "clubhouse_memberships"."organization_id" = '07c4ea74-c09c-11e4-ab71-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07c3d56c-c09c-11e4-b31f-705681abff85"], ["organization_id", "07c4ea74-c09c-11e4-ab71-705681abff85"], ["created_at", "2015-03-02 05:21:50.576483"], ["updated_at", "2015-03-02 05:21:50.576483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.582499' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Dkai1y219WssVawchK4-DEnURyXZM6Rwpl6iFvfcyAI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.584039"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.585086"], ["id", "07c46496-c09c-11e4-bbdd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07c3d56c-c09c-11e4-b31f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07c3d56c-c09c-11e4-b31f-705681abff85"], ["name", "org-10"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '07c4ea74-c09c-11e4-ab71-705681abff85') LIMIT 1 SQL (1.7ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:21:50.591602"], ["id", "07c4ea74-c09c-11e4-ab71-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$t7nSDbk2xhDTmmS2OQkGBuLZ0BlJbxWcNiz7SVhSQ6qOqbUBbojAK"], ["created_at", "2015-03-02 05:21:50.611039"], ["updated_at", "2015-03-02 05:21:50.611039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.613519"], ["user_id", "07cad8f8-c09c-11e4-87de-705681abff85"], ["created_at", "2015-03-02 05:21:50.614536"], ["updated_at", "2015-03-02 05:21:50.614536"], ["token", "WAAouxrRRhuZuuY3__L1pWTrYycCQp1De6xwamhYKZU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.618408"], ["updated_at", "2015-03-02 05:21:50.618408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07cad8f8-c09c-11e4-87de-705681abff85' AND "clubhouse_memberships"."organization_id" = '07cbe5cc-c09c-11e4-86b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07cad8f8-c09c-11e4-87de-705681abff85"], ["organization_id", "07cbe5cc-c09c-11e4-86b8-705681abff85"], ["created_at", "2015-03-02 05:21:50.622263"], ["updated_at", "2015-03-02 05:21:50.622263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$n9VTXZgLpwpnXbJdOZA0cOuSj9xUMK/mCfVqa2Iyt7dQajCysxT1C"], ["created_at", "2015-03-02 05:21:50.634804"], ["updated_at", "2015-03-02 05:21:50.634804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.637206"], ["user_id", "07ce72ce-c09c-11e4-8e88-705681abff85"], ["created_at", "2015-03-02 05:21:50.638001"], ["updated_at", "2015-03-02 05:21:50.638001"], ["token", "10LJB4-R1G_3O1yZYPXWpcQneqf3DOZAUE8m9ZDDbZk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.641692"], ["updated_at", "2015-03-02 05:21:50.641692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07ce72ce-c09c-11e4-8e88-705681abff85' AND "clubhouse_memberships"."organization_id" = '07cf6f44-c09c-11e4-9fb3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07ce72ce-c09c-11e4-8e88-705681abff85"], ["organization_id", "07cf6f44-c09c-11e4-9fb3-705681abff85"], ["created_at", "2015-03-02 05:21:50.645264"], ["updated_at", "2015-03-02 05:21:50.645264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.650599' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "10LJB4-R1G_3O1yZYPXWpcQneqf3DOZAUE8m9ZDDbZk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.652067"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.653000"], ["id", "07cee7ae-c09c-11e4-a06a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07ce72ce-c09c-11e4-8e88-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$JSKmwhV1LyqmB4l010nDX.RUemSHjnmR0eCfuZ.l7i4KLYbHSzmYq"], ["created_at", "2015-03-02 05:21:50.667578"], ["updated_at", "2015-03-02 05:21:50.667578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.669641"], ["user_id", "07d36b26-c09c-11e4-a528-705681abff85"], ["created_at", "2015-03-02 05:21:50.671051"], ["updated_at", "2015-03-02 05:21:50.671051"], ["token", "2f09iMAgFGE2AIyO4mYWwckfU5hRHNNt6JizWsInYMs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.674902"], ["updated_at", "2015-03-02 05:21:50.674902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07d36b26-c09c-11e4-a528-705681abff85' AND "clubhouse_memberships"."organization_id" = '07d48704-c09c-11e4-ada8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07d36b26-c09c-11e4-a528-705681abff85"], ["organization_id", "07d48704-c09c-11e4-ada8-705681abff85"], ["created_at", "2015-03-02 05:21:50.678470"], ["updated_at", "2015-03-02 05:21:50.678470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.683474' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2f09iMAgFGE2AIyO4mYWwckfU5hRHNNt6JizWsInYMs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.684841"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.685859"], ["id", "07d3f9ba-c09c-11e4-85c4-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07d36b26-c09c-11e4-a528-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.690412"], ["updated_at", "2015-03-02 05:21:50.690412"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "07d6e4e0-c09c-11e4-8636-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07d36b26-c09c-11e4-a528-705681abff85' AND "clubhouse_memberships"."organization_id" = '07d6e4e0-c09c-11e4-8636-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07d36b26-c09c-11e4-a528-705681abff85"], ["admin", "t"], ["organization_id", "07d6e4e0-c09c-11e4-8636-705681abff85"], ["created_at", "2015-03-02 05:21:50.694874"], ["updated_at", "2015-03-02 05:21:50.694874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (3.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$kathbHMYqGlmwt6h7toKZu3so72tTFmevGMyRSB5UQsZGPsN.o3FG"], ["created_at", "2015-03-02 05:21:50.705666"], ["updated_at", "2015-03-02 05:21:50.705666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.711330"], ["user_id", "07d9357e-c09c-11e4-b04c-705681abff85"], ["created_at", "2015-03-02 05:21:50.712347"], ["updated_at", "2015-03-02 05:21:50.712347"], ["token", "Ua8h5gDttVW4oRhQYoBQ2-VlVKta9PSp1mvFOmp-TZM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.717221"], ["updated_at", "2015-03-02 05:21:50.717221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07d9357e-c09c-11e4-b04c-705681abff85' AND "clubhouse_memberships"."organization_id" = '07daf620-c09c-11e4-834a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07d9357e-c09c-11e4-b04c-705681abff85"], ["organization_id", "07daf620-c09c-11e4-834a-705681abff85"], ["created_at", "2015-03-02 05:21:50.721002"], ["updated_at", "2015-03-02 05:21:50.721002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$f2j/7X3vlasEeCPB4DeON.jKzBxORQ54v6HoqedP/jGh5LpiUPDwa"], ["created_at", "2015-03-02 05:21:50.731846"], ["updated_at", "2015-03-02 05:21:50.731846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.733746"], ["user_id", "07dd3a5c-c09c-11e4-bf7f-705681abff85"], ["created_at", "2015-03-02 05:21:50.734585"], ["updated_at", "2015-03-02 05:21:50.734585"], ["token", "3UuoZSwFLe9pp2LgUD1V94O7SMBgyqchJx6nuKzm5Cs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.738926"], ["updated_at", "2015-03-02 05:21:50.738926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07dd3a5c-c09c-11e4-bf7f-705681abff85' AND "clubhouse_memberships"."organization_id" = '07de4762-c09c-11e4-ab8a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07dd3a5c-c09c-11e4-bf7f-705681abff85"], ["organization_id", "07de4762-c09c-11e4-ab8a-705681abff85"], ["created_at", "2015-03-02 05:21:50.742785"], ["updated_at", "2015-03-02 05:21:50.742785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/07de4762-c09c-11e4-ab8a-705681abff85" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"07de4762-c09c-11e4-ab8a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.748187' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3UuoZSwFLe9pp2LgUD1V94O7SMBgyqchJx6nuKzm5Cs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.749659"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.750684"], ["id", "07ddb586-c09c-11e4-9f0d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07dd3a5c-c09c-11e4-bf7f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07dd3a5c-c09c-11e4-bf7f-705681abff85"], ["id", "07de4762-c09c-11e4-ab8a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '07de4762-c09c-11e4-ab8a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$cPKBJ.rZ.YorYPdB4nDZ9ufhfzlx8KIh.P/xtc2SqmPFUfLI2fyU6"], ["created_at", "2015-03-02 05:21:50.764631"], ["updated_at", "2015-03-02 05:21:50.764631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.766704"], ["user_id", "07e23e80-c09c-11e4-9402-705681abff85"], ["created_at", "2015-03-02 05:21:50.767599"], ["updated_at", "2015-03-02 05:21:50.767599"], ["token", "Zj5AARazCrM7dJ677YcGnH-5MXsJ2P6UDDCAU8ssuig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.771279"], ["updated_at", "2015-03-02 05:21:50.771279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07e23e80-c09c-11e4-9402-705681abff85' AND "clubhouse_memberships"."organization_id" = '07e3366e-c09c-11e4-af9d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07e23e80-c09c-11e4-9402-705681abff85"], ["organization_id", "07e3366e-c09c-11e4-af9d-705681abff85"], ["created_at", "2015-03-02 05:21:50.774829"], ["updated_at", "2015-03-02 05:21:50.774829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/07e3366e-c09c-11e4-af9d-705681abff85" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"07e3366e-c09c-11e4-af9d-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.780771' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Zj5AARazCrM7dJ677YcGnH-5MXsJ2P6UDDCAU8ssuig"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.782314"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.783308"], ["id", "07e2ae9c-c09c-11e4-b563-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07e23e80-c09c-11e4-9402-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07e23e80-c09c-11e4-9402-705681abff85"], ["id", "07e3366e-c09c-11e4-af9d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '07e3366e-c09c-11e4-af9d-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:21:50.789879"], ["id", "07e3366e-c09c-11e4-af9d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$SIfbYrihMyAuveXJkSVXQ.TR4nsLV3jhu/C7YnKTjXldB33GbOmOe"], ["created_at", "2015-03-02 05:21:50.798537"], ["updated_at", "2015-03-02 05:21:50.798537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.800890"], ["user_id", "07e76c98-c09c-11e4-8374-705681abff85"], ["created_at", "2015-03-02 05:21:50.801705"], ["updated_at", "2015-03-02 05:21:50.801705"], ["token", "zNtVtmWVC12zZTyqNZ_ZxOQ5lw0I9DRD7UEw8HRpKFQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.805340"], ["updated_at", "2015-03-02 05:21:50.805340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07e76c98-c09c-11e4-8374-705681abff85' AND "clubhouse_memberships"."organization_id" = '07e8660c-c09c-11e4-8e97-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07e76c98-c09c-11e4-8374-705681abff85"], ["organization_id", "07e8660c-c09c-11e4-8e97-705681abff85"], ["created_at", "2015-03-02 05:21:50.809238"], ["updated_at", "2015-03-02 05:21:50.809238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$LUz9Gto4Tyxu5Pf0pcKfV.GobWJLRa.Icf/DfygulGve.oc/yoznS"], ["created_at", "2015-03-02 05:21:50.821012"], ["updated_at", "2015-03-02 05:21:50.821012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.822893"], ["user_id", "07ead43c-c09c-11e4-8741-705681abff85"], ["created_at", "2015-03-02 05:21:50.823854"], ["updated_at", "2015-03-02 05:21:50.823854"], ["token", "ycbYFZWOgpX6Q2Qy6UfulSLEraZGVYqfmEWhTxPlc9s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.827629"], ["updated_at", "2015-03-02 05:21:50.827629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07ead43c-c09c-11e4-8741-705681abff85' AND "clubhouse_memberships"."organization_id" = '07ebcf68-c09c-11e4-a7d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07ead43c-c09c-11e4-8741-705681abff85"], ["organization_id", "07ebcf68-c09c-11e4-a7d5-705681abff85"], ["created_at", "2015-03-02 05:21:50.831087"], ["updated_at", "2015-03-02 05:21:50.831087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.836727' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ycbYFZWOgpX6Q2Qy6UfulSLEraZGVYqfmEWhTxPlc9s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.838212"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.839232"], ["id", "07eb4958-c09c-11e4-b04b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$YYzxqEl7u7ezZrOxIo8.DuC0oh7sYpvodM2hgCbz6BZgGkAM2IZUW"], ["created_at", "2015-03-02 05:21:50.848354"], ["updated_at", "2015-03-02 05:21:50.848354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.850252"], ["user_id", "07eefe2c-c09c-11e4-9b3d-705681abff85"], ["created_at", "2015-03-02 05:21:50.851174"], ["updated_at", "2015-03-02 05:21:50.851174"], ["token", "Y3D48x2DL2Hz-zpVOByZWKCOCDPeda4lgzYZtFovENA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.855361"], ["updated_at", "2015-03-02 05:21:50.855361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07eefe2c-c09c-11e4-9b3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '07f01334-c09c-11e4-adff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07eefe2c-c09c-11e4-9b3d-705681abff85"], ["organization_id", "07f01334-c09c-11e4-adff-705681abff85"], ["created_at", "2015-03-02 05:21:50.859029"], ["updated_at", "2015-03-02 05:21:50.859029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-19" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-19", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.864599' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y3D48x2DL2Hz-zpVOByZWKCOCDPeda4lgzYZtFovENA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.866113"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.867318"], ["id", "07ef7c12-c09c-11e4-a6b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-19"]] Completed 200 OK in 5ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$0AB0eFv7pI1E.Qi6bkoOk.k/Sdk0GV3sJqkxpPHN0tqmod0iIEcgu"], ["created_at", "2015-03-02 05:21:50.875545"], ["updated_at", "2015-03-02 05:21:50.875545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.877255"], ["user_id", "07f32146-c09c-11e4-8d5d-705681abff85"], ["created_at", "2015-03-02 05:21:50.878134"], ["updated_at", "2015-03-02 05:21:50.878134"], ["token", "4hizwqRkaG9JlELm_fUg5LpF9OqWmNtAACJwGyCbZ-w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.882502"], ["updated_at", "2015-03-02 05:21:50.882502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07f32146-c09c-11e4-8d5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '07f431f8-c09c-11e4-8833-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07f32146-c09c-11e4-8d5d-705681abff85"], ["organization_id", "07f431f8-c09c-11e4-8833-705681abff85"], ["created_at", "2015-03-02 05:21:50.886127"], ["updated_at", "2015-03-02 05:21:50.886127"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-20" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.891508' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4hizwqRkaG9JlELm_fUg5LpF9OqWmNtAACJwGyCbZ-w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.892990"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.894045"], ["id", "07f394be-c09c-11e4-b721-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07f32146-c09c-11e4-8d5d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "07f32146-c09c-11e4-8d5d-705681abff85"], ["name", "org-20"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$2Q3Z6m1EZVL6Y5xaJnwvJ.A1w8mk90itQWO7JmjQc7xmyq7q7FHOu"], ["created_at", "2015-03-02 05:21:50.905943"], ["updated_at", "2015-03-02 05:21:50.905943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.908059"], ["user_id", "07f7d0ce-c09c-11e4-ac67-705681abff85"], ["created_at", "2015-03-02 05:21:50.908950"], ["updated_at", "2015-03-02 05:21:50.908950"], ["token", "r7FVAUZ2YA4ezOi1SjJTDm4d1CXibERu01hFFRcobPY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.912971"], ["updated_at", "2015-03-02 05:21:50.912971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07f7d0ce-c09c-11e4-ac67-705681abff85' AND "clubhouse_memberships"."organization_id" = '07f8da3c-c09c-11e4-92d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07f7d0ce-c09c-11e4-ac67-705681abff85"], ["organization_id", "07f8da3c-c09c-11e4-92d1-705681abff85"], ["created_at", "2015-03-02 05:21:50.916950"], ["updated_at", "2015-03-02 05:21:50.916950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$Ww1VvEjLgrqJSn7Z.1qygu8rMwHFy8FrkduexrFdAK7vPu4Zq8aCy"], ["created_at", "2015-03-02 05:21:50.928266"], ["updated_at", "2015-03-02 05:21:50.928266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:50.930094"], ["user_id", "07fb3098-c09c-11e4-aabc-705681abff85"], ["created_at", "2015-03-02 05:21:50.930987"], ["updated_at", "2015-03-02 05:21:50.930987"], ["token", "QnSz2pmRppqAsfZ2P88SEP7pS-NH9YY6Ocf27EOu1nI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.935302"], ["updated_at", "2015-03-02 05:21:50.935302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07fb3098-c09c-11e4-aabc-705681abff85' AND "clubhouse_memberships"."organization_id" = '07fc4604-c09c-11e4-9279-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07fb3098-c09c-11e4-aabc-705681abff85"], ["organization_id", "07fc4604-c09c-11e4-9279-705681abff85"], ["created_at", "2015-03-02 05:21:50.940926"], ["updated_at", "2015-03-02 05:21:50.940926"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$5TwVZXLxPsf8mPS3Js9Aaet5rDp9ZqlNXY1ZGMsg0z9BSSTNeyEyC"], ["created_at", "2015-03-02 05:21:50.948485"], ["updated_at", "2015-03-02 05:21:50.948485"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:50.957092"], ["updated_at", "2015-03-02 05:21:50.957092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07fe4bf2-c09c-11e4-a7d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '07ffb58c-c09c-11e4-92a1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07fe4bf2-c09c-11e4-a7d2-705681abff85"], ["organization_id", "07ffb58c-c09c-11e4-92a1-705681abff85"], ["created_at", "2015-03-02 05:21:50.964027"], ["updated_at", "2015-03-02 05:21:50.964027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:21:50 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:50.983347' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QnSz2pmRppqAsfZ2P88SEP7pS-NH9YY6Ocf27EOu1nI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:50.988632"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:50.990311"], ["id", "07fba37a-c09c-11e4-a086-705681abff85"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07fb3098-c09c-11e4-aabc-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "07fb3098-c09c-11e4-aabc-705681abff85"]] Completed 200 OK in 15ms (Views: 3.3ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$cHv7uyVpY1tzbwqEF7Widuq1LPh/RqWkJe7KmpV1eF84gNjuH1bHm"], ["created_at", "2015-03-02 05:21:51.008591"], ["updated_at", "2015-03-02 05:21:51.008591"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.011296"], ["user_id", "080784a6-c09c-11e4-a234-705681abff85"], ["created_at", "2015-03-02 05:21:51.012208"], ["updated_at", "2015-03-02 05:21:51.012208"], ["token", "KqUaT2I5tFPUCWkGDWsFD2NfJQhZSC_9ysmxHCAz_30"]]  (3.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.033943"], ["updated_at", "2015-03-02 05:21:51.033943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '080784a6-c09c-11e4-a234-705681abff85' AND "clubhouse_memberships"."organization_id" = '080b5c84-c09c-11e4-b5cf-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "080784a6-c09c-11e4-a234-705681abff85"], ["organization_id", "080b5c84-c09c-11e4-b5cf-705681abff85"], ["created_at", "2015-03-02 05:21:51.040199"], ["updated_at", "2015-03-02 05:21:51.040199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$Hfj4J6gpueJHzS5ryb10kORENGj7StTYr4aDyJYDPWsorRNZYvUki"], ["created_at", "2015-03-02 05:21:51.049590"], ["updated_at", "2015-03-02 05:21:51.049590"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.055720"], ["updated_at", "2015-03-02 05:21:51.055720"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '080de54e-c09c-11e4-9a1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '080ea0b0-c09c-11e4-bc8f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "080de54e-c09c-11e4-9a1f-705681abff85"], ["organization_id", "080ea0b0-c09c-11e4-bc8f-705681abff85"], ["created_at", "2015-03-02 05:21:51.060429"], ["updated_at", "2015-03-02 05:21:51.060429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$MzScj41oPrBc14wxGtQGkuL/rvEforwv2XvN.THfGZ.dmnKGXJijG"], ["created_at", "2015-03-02 05:21:51.075741"], ["updated_at", "2015-03-02 05:21:51.075741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.8ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.078182"], ["user_id", "0811c4ca-c09c-11e4-9036-705681abff85"], ["created_at", "2015-03-02 05:21:51.088156"], ["updated_at", "2015-03-02 05:21:51.088156"], ["token", "HJuhooDqbF403wQCsnQa_GC6rr9T2C2lx8Qwmdi44kk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.095358"], ["updated_at", "2015-03-02 05:21:51.095358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0811c4ca-c09c-11e4-9036-705681abff85' AND "clubhouse_memberships"."organization_id" = '0814bb9e-c09c-11e4-9e0b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0811c4ca-c09c-11e4-9036-705681abff85"], ["organization_id", "0814bb9e-c09c-11e4-9e0b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.102170"], ["updated_at", "2015-03-02 05:21:51.102170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '0814bb9e-c09c-11e4-9e0b-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "0814bb9e-c09c-11e4-9e0b-705681abff85"], ["created_at", "2015-03-02 05:21:51.108849"], ["updated_at", "2015-03-02 05:21:51.108849"], ["token", "sUfsEqtHSUf-GhMTKB0zVlhWGYNHUKDuhlTiVTtj9_M"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/081821a8-c09c-11e4-81c1-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"081821a8-c09c-11e4-81c1-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:51.133859' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HJuhooDqbF403wQCsnQa_GC6rr9T2C2lx8Qwmdi44kk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:51.135928"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:51.137082"], ["id", "0813cfcc-c09c-11e4-a1db-705681abff85"]]  (2.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0811c4ca-c09c-11e4-9036-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0811c4ca-c09c-11e4-9036-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0811c4ca-c09c-11e4-9036-705681abff85' LIMIT 1 [["organization_id", "0814bb9e-c09c-11e4-9e0b-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "0814bb9e-c09c-11e4-9e0b-705681abff85"], ["id", "081821a8-c09c-11e4-81c1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "081821a8-c09c-11e4-81c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 25ms (ActiveRecord: 4.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$sRuAmyiipEyeVqDcxLLUcuenwfC/cXXlr4yYV.GEOpcVFdM5EU56."], ["created_at", "2015-03-02 05:21:51.168192"], ["updated_at", "2015-03-02 05:21:51.168192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.171718"], ["user_id", "08200346-c09c-11e4-9d20-705681abff85"], ["created_at", "2015-03-02 05:21:51.172673"], ["updated_at", "2015-03-02 05:21:51.172673"], ["token", "OH5t5VK6dSVDScme1eaPGxPzZ_QC9SOYAyBdg1W_t_4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.177550"], ["updated_at", "2015-03-02 05:21:51.177550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08200346-c09c-11e4-9d20-705681abff85' AND "clubhouse_memberships"."organization_id" = '0821549e-c09c-11e4-a931-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08200346-c09c-11e4-9d20-705681abff85"], ["organization_id", "0821549e-c09c-11e4-a931-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.184845"], ["updated_at", "2015-03-02 05:21:51.184845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '0821549e-c09c-11e4-a931-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "0821549e-c09c-11e4-a931-705681abff85"], ["created_at", "2015-03-02 05:21:51.189771"], ["updated_at", "2015-03-02 05:21:51.189771"], ["token", "wFummZjtKwI3tmLYuZtJFhhSMNUzsRAqgtBZI1svBNk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$L2RD3V.j5WgEyRFTwWmCPeUdNHhxfQkzKgVjZ8C.cLd1Y5Lw02SZS"], ["created_at", "2015-03-02 05:21:51.206661"], ["updated_at", "2015-03-02 05:21:51.206661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.209065"], ["user_id", "0825b73c-c09c-11e4-be3a-705681abff85"], ["created_at", "2015-03-02 05:21:51.209955"], ["updated_at", "2015-03-02 05:21:51.209955"], ["token", "wUs-amClnuW9zHcsLvDBwu9izXi41rDLACHaet8Rnsg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.214444"], ["updated_at", "2015-03-02 05:21:51.214444"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0825b73c-c09c-11e4-be3a-705681abff85' AND "clubhouse_memberships"."organization_id" = '08273db4-c09c-11e4-bece-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0825b73c-c09c-11e4-be3a-705681abff85"], ["organization_id", "08273db4-c09c-11e4-bece-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.253459"], ["updated_at", "2015-03-02 05:21:51.253459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '08273db4-c09c-11e4-bece-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "08273db4-c09c-11e4-bece-705681abff85"], ["created_at", "2015-03-02 05:21:51.258544"], ["updated_at", "2015-03-02 05:21:51.258544"], ["token", "UDACNLaPGS8_PmvLOm4ivnlgmaey3Rgjhu5Rz8dL7iE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$nn0esDPPwQ/DcBBI25TIQeCY5x3VFb9M6RLsxOsnvCDjuTxzmeYc."], ["created_at", "2015-03-02 05:21:51.269464"], ["updated_at", "2015-03-02 05:21:51.269464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.271235"], ["user_id", "082f3d20-c09c-11e4-bda1-705681abff85"], ["created_at", "2015-03-02 05:21:51.272125"], ["updated_at", "2015-03-02 05:21:51.272125"], ["token", "DPdBevjnBgu2P0f7bYzPYbSgk4W8ZkMqNJjsQ3aHfEo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.275916"], ["updated_at", "2015-03-02 05:21:51.275916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '082f3d20-c09c-11e4-bda1-705681abff85' AND "clubhouse_memberships"."organization_id" = '08303450-c09c-11e4-98af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "082f3d20-c09c-11e4-bda1-705681abff85"], ["organization_id", "08303450-c09c-11e4-98af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.279340"], ["updated_at", "2015-03-02 05:21:51.279340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '08303450-c09c-11e4-98af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "08303450-c09c-11e4-98af-705681abff85"], ["created_at", "2015-03-02 05:21:51.283000"], ["updated_at", "2015-03-02 05:21:51.283000"], ["token", "8CysVFsiERcXBTfXOpRrki_nzE_ybA8aAO6iLFz5FK0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:51.288362' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DPdBevjnBgu2P0f7bYzPYbSgk4W8ZkMqNJjsQ3aHfEo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:51.289857"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:51.290891"], ["id", "082fa94a-c09c-11e4-8b9e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "082f3d20-c09c-11e4-bda1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "082f3d20-c09c-11e4-bda1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '082f3d20-c09c-11e4-bda1-705681abff85' LIMIT 1 [["organization_id", "08303450-c09c-11e4-98af-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08303450-c09c-11e4-98af-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '08303450-c09c-11e4-98af-705681abff85') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$cxCMJ0OXC3QOZ.cAbdqzHODlL0EefXc6WTh4OCh.LLmkJ/os54o7S"], ["created_at", "2015-03-02 05:21:51.310921"], ["updated_at", "2015-03-02 05:21:51.310921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.312772"], ["user_id", "083594ea-c09c-11e4-897e-705681abff85"], ["created_at", "2015-03-02 05:21:51.313491"], ["updated_at", "2015-03-02 05:21:51.313491"], ["token", "4XfKJ2xaO1ge99cjQQ34zesPUkPYwoMCX6mIfkIcRnw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.317696"], ["updated_at", "2015-03-02 05:21:51.317696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '083594ea-c09c-11e4-897e-705681abff85' AND "clubhouse_memberships"."organization_id" = '08369782-c09c-11e4-b157-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "083594ea-c09c-11e4-897e-705681abff85"], ["organization_id", "08369782-c09c-11e4-b157-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.321673"], ["updated_at", "2015-03-02 05:21:51.321673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '08369782-c09c-11e4-b157-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "08369782-c09c-11e4-b157-705681abff85"], ["created_at", "2015-03-02 05:21:51.325863"], ["updated_at", "2015-03-02 05:21:51.325863"], ["token", "7yu1KK9LsuDhyTzAgaAphC98AYSZ5VODUwVhcarG6lQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:51.332067' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4XfKJ2xaO1ge99cjQQ34zesPUkPYwoMCX6mIfkIcRnw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (4.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:51.333591"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:51.334813"], ["id", "0835f87c-c09c-11e4-8188-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "083594ea-c09c-11e4-897e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "083594ea-c09c-11e4-897e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '083594ea-c09c-11e4-897e-705681abff85' LIMIT 1 [["organization_id", "08369782-c09c-11e4-b157-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08369782-c09c-11e4-b157-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '08369782-c09c-11e4-b157-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "08369782-c09c-11e4-b157-705681abff85"], ["created_at", "2015-03-02 05:21:51.348458"], ["updated_at", "2015-03-02 05:21:51.348458"], ["token", "qSATupM80WnhEbD6OBtJ6Qco5nQo3wNEy6cH6tDZxx8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 72803db0-bee5-45d9-916f-0f9002b13fd3) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/083b5e70-c09c-11e4-b803-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "083b5e70-c09c-11e4-b803-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [72803db0-bee5-45d9-916f-0f9002b13fd3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/083b5e70-c09c-11e4-b803-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [72803db0-bee5-45d9-916f-0f9002b13fd3] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "08369782-c09c-11e4-b157-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [72803db0-bee5-45d9-916f-0f9002b13fd3] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [72803db0-bee5-45d9-916f-0f9002b13fd3] Clubhouse::Mailer#invitation: processed outbound mail in 238.4ms [ActiveJob] [ActionMailer::DeliveryJob] [72803db0-bee5-45d9-916f-0f9002b13fd3] Sent mail to email@example.com (8.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [72803db0-bee5-45d9-916f-0f9002b13fd3] Date: Sun, 01 Mar 2015 21:21:51 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f36f966fa_1492e3fcf95c65be8163f0@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/qSATupM80WnhEbD6OBtJ6Qco5nQo3wNEy6cH6tDZxx8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [72803db0-bee5-45d9-916f-0f9002b13fd3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 247.48ms Completed 201 Created in 291ms (Views: 2.4ms | ActiveRecord: 6.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$PuSOV5ZQIQBwzzDKXmZufOdDww7xjkLWfNWKopioMAT00Nmk1jFFy"], ["created_at", "2015-03-02 05:21:51.630994"], ["updated_at", "2015-03-02 05:21:51.630994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.632762"], ["user_id", "08666912-c09c-11e4-b9f6-705681abff85"], ["created_at", "2015-03-02 05:21:51.633808"], ["updated_at", "2015-03-02 05:21:51.633808"], ["token", "7U8xiXbWGvBa9BA9-8B5Z6dqkFa886_KpOntiJc2pUs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.638362"], ["updated_at", "2015-03-02 05:21:51.638362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08666912-c09c-11e4-b9f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '086796b6-c09c-11e4-b175-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08666912-c09c-11e4-b9f6-705681abff85"], ["organization_id", "086796b6-c09c-11e4-b175-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.642697"], ["updated_at", "2015-03-02 05:21:51.642697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '086796b6-c09c-11e4-b175-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "086796b6-c09c-11e4-b175-705681abff85"], ["created_at", "2015-03-02 05:21:51.646744"], ["updated_at", "2015-03-02 05:21:51.646744"], ["token", "CCt-MWiYc6NG5priNna__8WPgJRpAKtXXf-Axna6Wb0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:51.653184' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7U8xiXbWGvBa9BA9-8B5Z6dqkFa886_KpOntiJc2pUs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:51.654695"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:51.655736"], ["id", "0866f24c-c09c-11e4-b881-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08666912-c09c-11e4-b9f6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08666912-c09c-11e4-b9f6-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '08666912-c09c-11e4-b9f6-705681abff85' LIMIT 1 [["organization_id", "086796b6-c09c-11e4-b175-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "086796b6-c09c-11e4-b175-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '086796b6-c09c-11e4-b175-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "086796b6-c09c-11e4-b175-705681abff85"], ["created_at", "2015-03-02 05:21:51.667300"], ["updated_at", "2015-03-02 05:21:51.667300"], ["token", "cwI0zB_urek2IoZsN7YwhwLX87ahe2t0y-0Moe7I9vY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d1165d65-c1d3-4f4a-b512-04d90d1a4aba) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/086c0520-c09c-11e4-9165-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "086c0520-c09c-11e4-9165-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d1165d65-c1d3-4f4a-b512-04d90d1a4aba] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/086c0520-c09c-11e4-9165-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d1165d65-c1d3-4f4a-b512-04d90d1a4aba] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "086796b6-c09c-11e4-b175-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d1165d65-c1d3-4f4a-b512-04d90d1a4aba] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [d1165d65-c1d3-4f4a-b512-04d90d1a4aba] Clubhouse::Mailer#invitation: processed outbound mail in 3.2ms [ActiveJob] [ActionMailer::DeliveryJob] [d1165d65-c1d3-4f4a-b512-04d90d1a4aba] Sent mail to email@example.com (2.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [d1165d65-c1d3-4f4a-b512-04d90d1a4aba] Date: Sun, 01 Mar 2015 21:21:51 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f36fa52f6_1492e3fcf95c65be8164b3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/cwI0zB_urek2IoZsN7YwhwLX87ahe2t0y-0Moe7I9vY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d1165d65-c1d3-4f4a-b512-04d90d1a4aba] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.61ms Completed 201 Created in 28ms (Views: 2.1ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (2.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$X4hjNJTI4lqJntcWBfs8TO0zg2UdhZLS.zv9uCK/Y/EdpduuxbwxO"], ["created_at", "2015-03-02 05:21:51.695716"], ["updated_at", "2015-03-02 05:21:51.695716"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.708566"], ["user_id", "0870bc3c-c09c-11e4-9fa8-705681abff85"], ["created_at", "2015-03-02 05:21:51.710246"], ["updated_at", "2015-03-02 05:21:51.710246"], ["token", "GxJjUR5DICsGVwAxcQhtms0sIRo9cJlCZgXU-jaJzRY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.715296"], ["updated_at", "2015-03-02 05:21:51.715296"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0870bc3c-c09c-11e4-9fa8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0873616c-c09c-11e4-acba-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0870bc3c-c09c-11e4-9fa8-705681abff85"], ["organization_id", "0873616c-c09c-11e4-acba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.724363"], ["updated_at", "2015-03-02 05:21:51.724363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '0873616c-c09c-11e4-acba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "0873616c-c09c-11e4-acba-705681abff85"], ["created_at", "2015-03-02 05:21:51.729650"], ["updated_at", "2015-03-02 05:21:51.729650"], ["token", "uz_2An_1IUXdqQop8gJluLXdvtN2wCvswOF42r4Ojfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/08758500-c09c-11e4-8bf9-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"08758500-c09c-11e4-8bf9-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:51.739066' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GxJjUR5DICsGVwAxcQhtms0sIRo9cJlCZgXU-jaJzRY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:51.742309"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:51.743619"], ["id", "0872a0d8-c09c-11e4-879c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0870bc3c-c09c-11e4-9fa8-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0870bc3c-c09c-11e4-9fa8-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0870bc3c-c09c-11e4-9fa8-705681abff85' LIMIT 1 [["organization_id", "0873616c-c09c-11e4-acba-705681abff85"]] Clubhouse::Invitation Load (1.0ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "0873616c-c09c-11e4-acba-705681abff85"], ["id", "08758500-c09c-11e4-8bf9-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0873616c-c09c-11e4-acba-705681abff85"]] Completed 200 OK in 21ms (Views: 1.7ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$McZ/Q/xVkCFgSqccBkbR1e1e.VKl9yDO98p5f1zT4fjoNOoQGWKZy"], ["created_at", "2015-03-02 05:21:51.767626"], ["updated_at", "2015-03-02 05:21:51.767626"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.773663"], ["user_id", "087b606a-c09c-11e4-819b-705681abff85"], ["created_at", "2015-03-02 05:21:51.775418"], ["updated_at", "2015-03-02 05:21:51.775418"], ["token", "hajm2vF0jDZL17WPQEEL4OrI-h95JkhS4N9mOuhCZO8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.780240"], ["updated_at", "2015-03-02 05:21:51.780240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '087b606a-c09c-11e4-819b-705681abff85' AND "clubhouse_memberships"."organization_id" = '087d2bde-c09c-11e4-83ae-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "087b606a-c09c-11e4-819b-705681abff85"], ["organization_id", "087d2bde-c09c-11e4-83ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.785249"], ["updated_at", "2015-03-02 05:21:51.785249"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '087d2bde-c09c-11e4-83ae-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "087d2bde-c09c-11e4-83ae-705681abff85"], ["created_at", "2015-03-02 05:21:51.792002"], ["updated_at", "2015-03-02 05:21:51.792002"], ["token", "v0_UFbO6V2Ktn3q92La_VBHRkX4af5OYvjCWpdiEb98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$uVBxa70IbyhDpUXsgifpROWkeUKOnkM0bc9d/qVI.JYyik8TtoIFO"], ["created_at", "2015-03-02 05:21:51.812398"], ["updated_at", "2015-03-02 05:21:51.812398"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.814866"], ["user_id", "0882217a-c09c-11e4-94be-705681abff85"], ["created_at", "2015-03-02 05:21:51.815941"], ["updated_at", "2015-03-02 05:21:51.815941"], ["token", "3Yd4LlKmpp9O4t38Q6NgDGxoqyz-rtLP0lRPDAQNk88"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.821613"], ["updated_at", "2015-03-02 05:21:51.821613"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0882217a-c09c-11e4-94be-705681abff85' AND "clubhouse_memberships"."organization_id" = '088388f8-c09c-11e4-8b6a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0882217a-c09c-11e4-94be-705681abff85"], ["organization_id", "088388f8-c09c-11e4-8b6a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.827477"], ["updated_at", "2015-03-02 05:21:51.827477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '088388f8-c09c-11e4-8b6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "088388f8-c09c-11e4-8b6a-705681abff85"], ["created_at", "2015-03-02 05:21:51.832928"], ["updated_at", "2015-03-02 05:21:51.832928"], ["token", "dx7EHsxxOP9PW-i6v2qwENnmbJ50boVopeMzHYL2eWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/08853a7c-c09c-11e4-88e8-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"08853a7c-c09c-11e4-88e8-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:51.839621' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3Yd4LlKmpp9O4t38Q6NgDGxoqyz-rtLP0lRPDAQNk88"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:51.841436"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:51.842578"], ["id", "0882ad2a-c09c-11e4-a523-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0882217a-c09c-11e4-94be-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0882217a-c09c-11e4-94be-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0882217a-c09c-11e4-94be-705681abff85' LIMIT 1 [["organization_id", "088388f8-c09c-11e4-8b6a-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "088388f8-c09c-11e4-8b6a-705681abff85"], ["id", "08853a7c-c09c-11e4-88e8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "088388f8-c09c-11e4-8b6a-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."id" != '08853a7c-c09c-11e4-88e8-705681abff85' AND "clubhouse_invitations"."organization_id" = '088388f8-c09c-11e4-8b6a-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:21:51.852815"], ["id", "08853a7c-c09c-11e4-88e8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.9ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$.KlWA4LRPR1zAjxmYa14FOYQ58fiTM9.gfmGOqo8n8SE//gYxMqZ6"], ["created_at", "2015-03-02 05:21:51.861471"], ["updated_at", "2015-03-02 05:21:51.861471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.863251"], ["user_id", "0889955e-c09c-11e4-ba01-705681abff85"], ["created_at", "2015-03-02 05:21:51.864014"], ["updated_at", "2015-03-02 05:21:51.864014"], ["token", "zMS1B5Y0eW_MSlDT4h_9szd3owjq4kwCE8iKXB88LQI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.867854"], ["updated_at", "2015-03-02 05:21:51.867854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0889955e-c09c-11e4-ba01-705681abff85' AND "clubhouse_memberships"."organization_id" = '088a8bee-c09c-11e4-91a1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0889955e-c09c-11e4-ba01-705681abff85"], ["organization_id", "088a8bee-c09c-11e4-91a1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.871395"], ["updated_at", "2015-03-02 05:21:51.871395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '088a8bee-c09c-11e4-91a1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "088a8bee-c09c-11e4-91a1-705681abff85"], ["created_at", "2015-03-02 05:21:51.874940"], ["updated_at", "2015-03-02 05:21:51.874940"], ["token", "aZ2lyV5wPOyH8gHjXPy1MlFcYEUdaX1sdtfkS2wNXLw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$3sZcPt58/AgICoDe34RMwu6seN8xW9MTXiyFsm5cvXNYYqQvv.UOi"], ["created_at", "2015-03-02 05:21:51.886041"], ["updated_at", "2015-03-02 05:21:51.886041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.887884"], ["user_id", "088d53ba-c09c-11e4-943b-705681abff85"], ["created_at", "2015-03-02 05:21:51.888852"], ["updated_at", "2015-03-02 05:21:51.888852"], ["token", "9ZiytUtBOtH3_bqukGY2sGiDEHdBCo3h_4O-VBhtrLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.893165"], ["updated_at", "2015-03-02 05:21:51.893165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '088d53ba-c09c-11e4-943b-705681abff85' AND "clubhouse_memberships"."organization_id" = '088e6746-c09c-11e4-a20a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "088d53ba-c09c-11e4-943b-705681abff85"], ["organization_id", "088e6746-c09c-11e4-a20a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.897034"], ["updated_at", "2015-03-02 05:21:51.897034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '088e6746-c09c-11e4-a20a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "088e6746-c09c-11e4-a20a-705681abff85"], ["created_at", "2015-03-02 05:21:51.900670"], ["updated_at", "2015-03-02 05:21:51.900670"], ["token", "a0ziyycLHnGnWkYjnwQXFA_7UUSMmhjnan-uiliCr1E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$gMvitjQeqAj7omhM5EZQxuwTNs8zP2xbJW.UxRCtgeAd/HK6grFYW"], ["created_at", "2015-03-02 05:21:51.905256"], ["updated_at", "2015-03-02 05:21:51.905256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.908484"], ["updated_at", "2015-03-02 05:21:51.908484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08904052-c09c-11e4-af6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '0890bad2-c09c-11e4-b85a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "08904052-c09c-11e4-af6a-705681abff85"], ["organization_id", "0890bad2-c09c-11e4-b85a-705681abff85"], ["created_at", "2015-03-02 05:21:51.911606"], ["updated_at", "2015-03-02 05:21:51.911606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:21:51.917602' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9ZiytUtBOtH3_bqukGY2sGiDEHdBCo3h_4O-VBhtrLQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:21:51.919156"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:21:51.920354"], ["id", "088dc700-c09c-11e4-9480-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "088d53ba-c09c-11e4-943b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "088d53ba-c09c-11e4-943b-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '088d53ba-c09c-11e4-943b-705681abff85' LIMIT 1 [["organization_id", "088e6746-c09c-11e4-a20a-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "088e6746-c09c-11e4-a20a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('088e6746-c09c-11e4-a20a-705681abff85') Completed 200 OK in 12ms (Views: 2.7ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$XG0w7t.2w/.Wh8qgKBc7feCAzipCHk/9I3BOYlgsX7rSZoYua4uqq"], ["created_at", "2015-03-02 05:21:51.936819"], ["updated_at", "2015-03-02 05:21:51.936819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:21:51.938568"], ["user_id", "089513fc-c09c-11e4-b092-705681abff85"], ["created_at", "2015-03-02 05:21:51.939722"], ["updated_at", "2015-03-02 05:21:51.939722"], ["token", "lnPsy_Vk-EH8-uhhX7oqhzrUz4LU3FNKa89cr6ucxd4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.943732"], ["updated_at", "2015-03-02 05:21:51.943732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '089513fc-c09c-11e4-b092-705681abff85' AND "clubhouse_memberships"."organization_id" = '08961b4e-c09c-11e4-8ff5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "089513fc-c09c-11e4-b092-705681abff85"], ["organization_id", "08961b4e-c09c-11e4-8ff5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:21:51.947436"], ["updated_at", "2015-03-02 05:21:51.947436"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '08961b4e-c09c-11e4-8ff5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "08961b4e-c09c-11e4-8ff5-705681abff85"], ["created_at", "2015-03-02 05:21:51.951612"], ["updated_at", "2015-03-02 05:21:51.951612"], ["token", "8Am1mRBKgnoNZSNY5tbXYOqzYhLbvgIQblUZDd5usyg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$1Sw0sWxQqo55vkgwUI3qhuWv9PWm7y8gxFS6Am3YyN3S6epq02zyK"], ["created_at", "2015-03-02 05:21:51.956717"], ["updated_at", "2015-03-02 05:21:51.956717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.960128"], ["updated_at", "2015-03-02 05:21:51.960128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08981908-c09c-11e4-bd8c-705681abff85' AND "clubhouse_memberships"."organization_id" = '08989cde-c09c-11e4-81f3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "08981908-c09c-11e4-bd8c-705681abff85"], ["organization_id", "08989cde-c09c-11e4-81f3-705681abff85"], ["created_at", "2015-03-02 05:21:51.963386"], ["updated_at", "2015-03-02 05:21:51.963386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:21:51 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.974661"], ["updated_at", "2015-03-02 05:21:51.974661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '089ad80a-c09c-11e4-954e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "089ad80a-c09c-11e4-954e-705681abff85"], ["created_at", "2015-03-02 05:21:51.980023"], ["updated_at", "2015-03-02 05:21:51.980023"], ["token", "VCXNhu_KhzEfQUta690xsJYM7GTtQjBlnT8zXhGAk9A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:51.994247"], ["updated_at", "2015-03-02 05:21:51.994247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '089dd37a-c09c-11e4-ae7f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "089dd37a-c09c-11e4-ae7f-705681abff85"], ["created_at", "2015-03-02 05:21:51.998014"], ["updated_at", "2015-03-02 05:21:51.998014"], ["token", "_w026-Sfy-CvYiWAGa4nq_LwW9V86YVBnX6IyO9rGJw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "089dd37a-c09c-11e4-ae7f-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '089dd37a-c09c-11e4-ae7f-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "089dd37a-c09c-11e4-ae7f-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '089dd37a-c09c-11e4-ae7f-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:52.018803"], ["updated_at", "2015-03-02 05:21:52.018803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:52.030140"], ["updated_at", "2015-03-02 05:21:52.030140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:52.042773"], ["updated_at", "2015-03-02 05:21:52.042773"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:52.087779"], ["updated_at", "2015-03-02 05:21:52.087779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:52.095691"], ["updated_at", "2015-03-02 05:21:52.095691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "08ad90b2-c09c-11e4-93e6-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:52.106459"], ["updated_at", "2015-03-02 05:21:52.106459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '08aef218-c09c-11e4-ba24-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "08aef218-c09c-11e4-ba24-705681abff85"], ["created_at", "2015-03-02 05:21:52.110748"], ["updated_at", "2015-03-02 05:21:52.110748"], ["token", "yJG0LsIgiOeEbacJXHk46GRWW5lQb8qvmK7zivN3d4Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (1.9ms) Date: Sun, 01 Mar 2015 21:21:52 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f3701c12a_1492e3fcf95c65be816512@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/yJG0LsIgiOeEbacJXHk46GRWW5lQb8qvmK7zivN3d4Q If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:52.149265"], ["updated_at", "2015-03-02 05:21:52.149265"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '08b57c96-c09c-11e4-8e78-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "08b57c96-c09c-11e4-8e78-705681abff85"], ["created_at", "2015-03-02 05:21:52.155564"], ["updated_at", "2015-03-02 05:21:52.155564"], ["token", "k0dst0bXYLSoKrHjEEKR9O-D_bMNI2LJvftIhUdP_lY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms Sent mail to john@example.com (14.3ms) Date: Sun, 01 Mar 2015 21:21:52 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f370276de_1492e3fcf95c65be81668f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/k0dst0bXYLSoKrHjEEKR9O-D_bMNI2LJvftIhUdP_lY If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:52.179105"], ["updated_at", "2015-03-02 05:21:52.179105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '08ba0edc-c09c-11e4-8842-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "08ba0edc-c09c-11e4-8842-705681abff85"], ["created_at", "2015-03-02 05:21:52.182842"], ["updated_at", "2015-03-02 05:21:52.182842"], ["token", "fLCNypp3Qdft_DqdbgSKt04ubBg8AcQl3stjqfZ3Rgw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (2.1ms) Date: Sun, 01 Mar 2015 21:21:52 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f3702d9a8_1492e3fcf95c65be8167d3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/fLCNypp3Qdft_DqdbgSKt04ubBg8AcQl3stjqfZ3Rgw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:21:52.192149"], ["updated_at", "2015-03-02 05:21:52.192149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '08bc0642-c09c-11e4-8f70-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "08bc0642-c09c-11e4-8f70-705681abff85"], ["created_at", "2015-03-02 05:21:52.195763"], ["updated_at", "2015-03-02 05:21:52.195763"], ["token", "jCu8FIMVVSrVAM8CAOwPMZe-jKdvdLsm0BNYDuwh8_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.8ms) Date: Sun, 01 Mar 2015 21:21:52 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f37030a6d_1492e3fcf95c65be81689b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/jCu8FIMVVSrVAM8CAOwPMZe-jKdvdLsm0BNYDuwh8_s If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (20.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:57.582216"], ["updated_at", "2015-03-02 05:24:57.582216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:57.614945"], ["updated_at", "2015-03-02 05:24:57.614945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:57.660055"], ["updated_at", "2015-03-02 05:24:57.660055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:57.677743"], ["updated_at", "2015-03-02 05:24:57.677743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "774adfe8-c09c-11e4-89c7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:57.688149"], ["updated_at", "2015-03-02 05:24:57.688149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (67.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (5.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$oVkzOgq/g9KfRI4qtO06jOn34mroc2Buv.H568A0hxcVH2/CCx.s2"], ["created_at", "2015-03-02 05:24:57.872350"], ["updated_at", "2015-03-02 05:24:57.872350"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:57.919816"], ["updated_at", "2015-03-02 05:24:57.919816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7769cae8-c09c-11e4-9d00-705681abff85' AND "clubhouse_memberships"."organization_id" = '776fdcda-c09c-11e4-992a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7769cae8-c09c-11e4-9d00-705681abff85"], ["organization_id", "776fdcda-c09c-11e4-992a-705681abff85"], ["created_at", "2015-03-02 05:24:57.924899"], ["updated_at", "2015-03-02 05:24:57.924899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7769cae8-c09c-11e4-9d00-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "776fdcda-c09c-11e4-992a-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7769cae8-c09c-11e4-9d00-705681abff85' AND "clubhouse_memberships"."organization_id" = '776fdcda-c09c-11e4-992a-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "776fdcda-c09c-11e4-992a-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7769cae8-c09c-11e4-9d00-705681abff85' AND "clubhouse_memberships"."organization_id" = '776fdcda-c09c-11e4-992a-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$10P/wa39afUU0Iaf8hj8deCZ.JoIHEG/5kedKNM/foYbWPUAZ/l3i"], ["created_at", "2015-03-02 05:24:57.959980"], ["updated_at", "2015-03-02 05:24:57.959980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:57.968157"], ["user_id", "7775f1c4-c09c-11e4-b598-705681abff85"], ["created_at", "2015-03-02 05:24:57.969251"], ["updated_at", "2015-03-02 05:24:57.969251"], ["token", "bNBJTpsn4c9j_vGeQXVica_McNOruBH-9n7rHWQErco"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:57.975970"], ["updated_at", "2015-03-02 05:24:57.975970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7775f1c4-c09c-11e4-b598-705681abff85' AND "clubhouse_memberships"."organization_id" = '7778697c-c09c-11e4-b96c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7775f1c4-c09c-11e4-b598-705681abff85"], ["organization_id", "7778697c-c09c-11e4-b96c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:57.979779"], ["updated_at", "2015-03-02 05:24:57.979779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '7778697c-c09c-11e4-b96c-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "7778697c-c09c-11e4-b96c-705681abff85"], ["created_at", "2015-03-02 05:24:57.990553"], ["updated_at", "2015-03-02 05:24:57.990553"], ["token", "0K0-akkbvaTGP9-O84sUi5yRm8i1C0cH-B2TvCzRQBs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$XwdAKTTzi8tMIkGhI57UKucc2qopvi.tVIBxTC0SA0D5UqAOvuYA6"], ["created_at", "2015-03-02 05:24:58.029338"], ["updated_at", "2015-03-02 05:24:58.029338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.031264"], ["user_id", "77808eb8-c09c-11e4-bd5e-705681abff85"], ["created_at", "2015-03-02 05:24:58.032178"], ["updated_at", "2015-03-02 05:24:58.032178"], ["token", "-xAzdC8GzldeBqbw10YuFo3_1xzFGcUH4IpSaGfNDNQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.036215"], ["updated_at", "2015-03-02 05:24:58.036215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77808eb8-c09c-11e4-bd5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '778194e8-c09c-11e4-9290-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77808eb8-c09c-11e4-bd5e-705681abff85"], ["organization_id", "778194e8-c09c-11e4-9290-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.039947"], ["updated_at", "2015-03-02 05:24:58.039947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '778194e8-c09c-11e4-9290-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "778194e8-c09c-11e4-9290-705681abff85"], ["created_at", "2015-03-02 05:24:58.043763"], ["updated_at", "2015-03-02 05:24:58.043763"], ["token", "V7mQW6R_Vf7VtZdKIGJIqYbJH6MBWRJE8h3dErotSVw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:58.049558' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-xAzdC8GzldeBqbw10YuFo3_1xzFGcUH4IpSaGfNDNQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:58.051405"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:58.052716"], ["id", "778100c8-c09c-11e4-8397-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "77808eb8-c09c-11e4-bd5e-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "77808eb8-c09c-11e4-bd5e-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '77808eb8-c09c-11e4-bd5e-705681abff85' LIMIT 1 [["organization_id", "778194e8-c09c-11e4-9290-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "778194e8-c09c-11e4-9290-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '778194e8-c09c-11e4-9290-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "778194e8-c09c-11e4-9290-705681abff85"], ["created_at", "2015-03-02 05:24:58.081398"], ["updated_at", "2015-03-02 05:24:58.081398"], ["token", "nNeNV3TMykmLsDk2IAunB7yr9f9Rapx3ZkHshS6b_8o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d4e5678c-0b1f-40e0-ac05-0517eeac294f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7788882a-c09c-11e4-ae4a-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7788882a-c09c-11e4-ae4a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d4e5678c-0b1f-40e0-ac05-0517eeac294f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7788882a-c09c-11e4-ae4a-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d4e5678c-0b1f-40e0-ac05-0517eeac294f] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "778194e8-c09c-11e4-9290-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d4e5678c-0b1f-40e0-ac05-0517eeac294f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d4e5678c-0b1f-40e0-ac05-0517eeac294f] Clubhouse::Mailer#invitation: processed outbound mail in 334.0ms [ActiveJob] [ActionMailer::DeliveryJob] [d4e5678c-0b1f-40e0-ac05-0517eeac294f] Sent mail to email@example.com (7.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [d4e5678c-0b1f-40e0-ac05-0517eeac294f] Date: Sun, 01 Mar 2015 21:24:58 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f42a6fecb_149603fca31c63bf48366@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/nNeNV3TMykmLsDk2IAunB7yr9f9Rapx3ZkHshS6b_8o If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d4e5678c-0b1f-40e0-ac05-0517eeac294f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 342.78ms Completed 201 Created in 417ms (Views: 4.1ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$9WDbNPP9rcALj1J7neB.Yu87GzSLBIcSg07FK8pXjY3jopT7CXp7S"], ["created_at", "2015-03-02 05:24:58.477208"], ["updated_at", "2015-03-02 05:24:58.477208"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.480281"], ["user_id", "77c4ea04-c09c-11e4-8b34-705681abff85"], ["created_at", "2015-03-02 05:24:58.481432"], ["updated_at", "2015-03-02 05:24:58.481432"], ["token", "6IE3eEVtC85n8g5Cvl7gcSMfqANNQhaBxcvfva5RCt0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.486132"], ["updated_at", "2015-03-02 05:24:58.486132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77c4ea04-c09c-11e4-8b34-705681abff85' AND "clubhouse_memberships"."organization_id" = '77c64c3c-c09c-11e4-aae9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77c4ea04-c09c-11e4-8b34-705681abff85"], ["organization_id", "77c64c3c-c09c-11e4-aae9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.491435"], ["updated_at", "2015-03-02 05:24:58.491435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '77c64c3c-c09c-11e4-aae9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "77c64c3c-c09c-11e4-aae9-705681abff85"], ["created_at", "2015-03-02 05:24:58.496072"], ["updated_at", "2015-03-02 05:24:58.496072"], ["token", "PA-T5eJMDE9trAqo_GgyyFAH9ysHCEqaZ8O-eNWJZKU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:58.502153' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6IE3eEVtC85n8g5Cvl7gcSMfqANNQhaBxcvfva5RCt0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:58.503698"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:58.505404"], ["id", "77c59166-c09c-11e4-bc22-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "77c4ea04-c09c-11e4-8b34-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "77c4ea04-c09c-11e4-8b34-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '77c4ea04-c09c-11e4-8b34-705681abff85' LIMIT 1 [["organization_id", "77c64c3c-c09c-11e4-aae9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "77c64c3c-c09c-11e4-aae9-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '77c64c3c-c09c-11e4-aae9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "77c64c3c-c09c-11e4-aae9-705681abff85"], ["created_at", "2015-03-02 05:24:58.516860"], ["updated_at", "2015-03-02 05:24:58.516860"], ["token", "5U4heJYoDnMTcLz9TD5c7mdydAdX8qJD8d-k8IXXkv4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 53c0af6b-b067-4bab-b3d8-fb68d53d9d21) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/77caf0ac-c09c-11e4-b549-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "77caf0ac-c09c-11e4-b549-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [53c0af6b-b067-4bab-b3d8-fb68d53d9d21] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/77caf0ac-c09c-11e4-b549-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [53c0af6b-b067-4bab-b3d8-fb68d53d9d21] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "77c64c3c-c09c-11e4-aae9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [53c0af6b-b067-4bab-b3d8-fb68d53d9d21] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [53c0af6b-b067-4bab-b3d8-fb68d53d9d21] Clubhouse::Mailer#invitation: processed outbound mail in 3.0ms [ActiveJob] [ActionMailer::DeliveryJob] [53c0af6b-b067-4bab-b3d8-fb68d53d9d21] Sent mail to email@example.com (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [53c0af6b-b067-4bab-b3d8-fb68d53d9d21] Date: Sun, 01 Mar 2015 21:24:58 -0800 From: from@example.com To: email@example.com Message-ID: <54f3f42a8079b_149603fca31c63bf48482@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/5U4heJYoDnMTcLz9TD5c7mdydAdX8qJD8d-k8IXXkv4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [53c0af6b-b067-4bab-b3d8-fb68d53d9d21] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.32ms Completed 201 Created in 27ms (Views: 1.0ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (6.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$ISHDF032yxQ0AP.X4h7aYOCa0YylCqOJbq08POLvwVqllnM.lGn92"], ["created_at", "2015-03-02 05:24:58.537419"], ["updated_at", "2015-03-02 05:24:58.537419"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.548267"], ["user_id", "77ce1aa2-c09c-11e4-9d62-705681abff85"], ["created_at", "2015-03-02 05:24:58.549225"], ["updated_at", "2015-03-02 05:24:58.549225"], ["token", "P7fkrItDmViaOfxT8ktZE-GV_4u1ovFTtzqNpfAZ8Rs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.553760"], ["updated_at", "2015-03-02 05:24:58.553760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77ce1aa2-c09c-11e4-9d62-705681abff85' AND "clubhouse_memberships"."organization_id" = '77d08d8c-c09c-11e4-965a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77ce1aa2-c09c-11e4-9d62-705681abff85"], ["organization_id", "77d08d8c-c09c-11e4-965a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.557701"], ["updated_at", "2015-03-02 05:24:58.557701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '77d08d8c-c09c-11e4-965a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "77d08d8c-c09c-11e4-965a-705681abff85"], ["created_at", "2015-03-02 05:24:58.561381"], ["updated_at", "2015-03-02 05:24:58.561381"], ["token", "n7Wey1YLAnge0BKyoyVWApo3emflG_hFvNEIQUY08Io"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:58.567503' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "P7fkrItDmViaOfxT8ktZE-GV_4u1ovFTtzqNpfAZ8Rs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:58.569675"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:58.571525"], ["id", "77cfe508-c09c-11e4-98ce-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "77ce1aa2-c09c-11e4-9d62-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "77ce1aa2-c09c-11e4-9d62-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '77ce1aa2-c09c-11e4-9d62-705681abff85' LIMIT 1 [["organization_id", "77d08d8c-c09c-11e4-965a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "77d08d8c-c09c-11e4-965a-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '77d08d8c-c09c-11e4-965a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ogmXDVdbcRoGknp4PeazO.IYtPYG6kJASv9.UMC7l94bpTjJp6ZYC"], ["created_at", "2015-03-02 05:24:58.592805"], ["updated_at", "2015-03-02 05:24:58.592805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.594790"], ["user_id", "77d688a4-c09c-11e4-a277-705681abff85"], ["created_at", "2015-03-02 05:24:58.595877"], ["updated_at", "2015-03-02 05:24:58.595877"], ["token", "yZYlFakHvcuFbbFFcNCYmcRX8qX5PQjxcBd2ZfIliVQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.599855"], ["updated_at", "2015-03-02 05:24:58.599855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77d688a4-c09c-11e4-a277-705681abff85' AND "clubhouse_memberships"."organization_id" = '77d7928a-c09c-11e4-b56a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77d688a4-c09c-11e4-a277-705681abff85"], ["organization_id", "77d7928a-c09c-11e4-b56a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.603489"], ["updated_at", "2015-03-02 05:24:58.603489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '77d7928a-c09c-11e4-b56a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "77d7928a-c09c-11e4-b56a-705681abff85"], ["created_at", "2015-03-02 05:24:58.607377"], ["updated_at", "2015-03-02 05:24:58.607377"], ["token", "m9qap4csPtMzclN_JFfEpdD-vb8RVoSBMrpVyAqr-Uw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$mzumXmNeV0uwPVOGgxLRxeDwnqvqLzz8OjE/SbhSIxamCD8GdmSL2"], ["created_at", "2015-03-02 05:24:58.618604"], ["updated_at", "2015-03-02 05:24:58.618604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.620302"], ["user_id", "77da70a4-c09c-11e4-9f77-705681abff85"], ["created_at", "2015-03-02 05:24:58.621113"], ["updated_at", "2015-03-02 05:24:58.621113"], ["token", "WXPv2SKKOTSQFbCqKxGZLhoTJgHrNZBvPtecS3Pmw4U"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.625888"], ["updated_at", "2015-03-02 05:24:58.625888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77da70a4-c09c-11e4-9f77-705681abff85' AND "clubhouse_memberships"."organization_id" = '77db8ee4-c09c-11e4-8712-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77da70a4-c09c-11e4-9f77-705681abff85"], ["organization_id", "77db8ee4-c09c-11e4-8712-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.629480"], ["updated_at", "2015-03-02 05:24:58.629480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '77db8ee4-c09c-11e4-8712-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "77db8ee4-c09c-11e4-8712-705681abff85"], ["created_at", "2015-03-02 05:24:58.633218"], ["updated_at", "2015-03-02 05:24:58.633218"], ["token", "-ScMoPz00qkMaPvQqNf766pWuAmuiiId3jKBsZ0VLpQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/77dcae46-c09c-11e4-8159-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"77dcae46-c09c-11e4-8159-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:58.638828' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WXPv2SKKOTSQFbCqKxGZLhoTJgHrNZBvPtecS3Pmw4U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:58.640970"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:58.642147"], ["id", "77dae084-c09c-11e4-9b17-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "77da70a4-c09c-11e4-9f77-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "77da70a4-c09c-11e4-9f77-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '77da70a4-c09c-11e4-9f77-705681abff85' LIMIT 1 [["organization_id", "77db8ee4-c09c-11e4-8712-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "77db8ee4-c09c-11e4-8712-705681abff85"], ["id", "77dcae46-c09c-11e4-8159-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "77db8ee4-c09c-11e4-8712-705681abff85"]] Completed 200 OK in 14ms (Views: 1.5ms | ActiveRecord: 3.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ffb4oTjYxwYGDD5g4r6rPOr6oL..OgLgNtDxJHC/L0XYsSqfCdEqi"], ["created_at", "2015-03-02 05:24:58.659262"], ["updated_at", "2015-03-02 05:24:58.659262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.660935"], ["user_id", "77e0a596-c09c-11e4-8828-705681abff85"], ["created_at", "2015-03-02 05:24:58.661734"], ["updated_at", "2015-03-02 05:24:58.661734"], ["token", "ag6WWgetTUnR5t-AacYa6Fxs0MSLLUA6zGh-b-nlS-c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.665208"], ["updated_at", "2015-03-02 05:24:58.665208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77e0a596-c09c-11e4-8828-705681abff85' AND "clubhouse_memberships"."organization_id" = '77e18b1e-c09c-11e4-bfb2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77e0a596-c09c-11e4-8828-705681abff85"], ["organization_id", "77e18b1e-c09c-11e4-bfb2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.669010"], ["updated_at", "2015-03-02 05:24:58.669010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '77e18b1e-c09c-11e4-bfb2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "77e18b1e-c09c-11e4-bfb2-705681abff85"], ["created_at", "2015-03-02 05:24:58.672847"], ["updated_at", "2015-03-02 05:24:58.672847"], ["token", "2r9IGbuzSbNBzD82d6TsED5csSgn8S-7OmAbzuZ7Qbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$gw8Tf8FDzteGtVpyNdmGH.QqLHbkg18kcYugHf2mLUl5bYos7ch8K"], ["created_at", "2015-03-02 05:24:58.684674"], ["updated_at", "2015-03-02 05:24:58.684674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.686389"], ["user_id", "77e487c4-c09c-11e4-ae6a-705681abff85"], ["created_at", "2015-03-02 05:24:58.687180"], ["updated_at", "2015-03-02 05:24:58.687180"], ["token", "CfnE7szQ1UjRQ05-vCm4m8Sq-2ahg7dq7-NYIP2uJ34"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.691361"], ["updated_at", "2015-03-02 05:24:58.691361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77e487c4-c09c-11e4-ae6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '77e58958-c09c-11e4-9324-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77e487c4-c09c-11e4-ae6a-705681abff85"], ["organization_id", "77e58958-c09c-11e4-9324-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.694820"], ["updated_at", "2015-03-02 05:24:58.694820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '77e58958-c09c-11e4-9324-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "77e58958-c09c-11e4-9324-705681abff85"], ["created_at", "2015-03-02 05:24:58.698483"], ["updated_at", "2015-03-02 05:24:58.698483"], ["token", "GrXdNW1h29l9HaxgmgnujuWZSlwfSS2r_2y9QIGmSLk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/77e6a342-c09c-11e4-99d5-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"77e6a342-c09c-11e4-99d5-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:58.704000' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CfnE7szQ1UjRQ05-vCm4m8Sq-2ahg7dq7-NYIP2uJ34"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:58.705665"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:58.707498"], ["id", "77e4f394-c09c-11e4-9ea2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "77e487c4-c09c-11e4-ae6a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "77e487c4-c09c-11e4-ae6a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '77e487c4-c09c-11e4-ae6a-705681abff85' LIMIT 1 [["organization_id", "77e58958-c09c-11e4-9324-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "77e58958-c09c-11e4-9324-705681abff85"], ["id", "77e6a342-c09c-11e4-99d5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "77e6a342-c09c-11e4-99d5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$hf0Gw29Lj..6x/aaHNSCXuYrM4VTZ0Nn5pFk9xbyUbWZ5Je9by1iS"], ["created_at", "2015-03-02 05:24:58.723049"], ["updated_at", "2015-03-02 05:24:58.723049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.724849"], ["user_id", "77ea6284-c09c-11e4-86a3-705681abff85"], ["created_at", "2015-03-02 05:24:58.725899"], ["updated_at", "2015-03-02 05:24:58.725899"], ["token", "cUz5fOU9ClOGTUiwIxDIHayQLXrs925CWd0EummzmvU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.729385"], ["updated_at", "2015-03-02 05:24:58.729385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77ea6284-c09c-11e4-86a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '77eb5644-c09c-11e4-94ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77ea6284-c09c-11e4-86a3-705681abff85"], ["organization_id", "77eb5644-c09c-11e4-94ca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.732762"], ["updated_at", "2015-03-02 05:24:58.732762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '77eb5644-c09c-11e4-94ca-705681abff85') LIMIT 1 SQL (5.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "77eb5644-c09c-11e4-94ca-705681abff85"], ["created_at", "2015-03-02 05:24:58.736152"], ["updated_at", "2015-03-02 05:24:58.736152"], ["token", "xcWfrAXamHuVNbFoqPoyatZJrR717lMIVr7GDJHDq2Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$YUfbM/P4Yv5DiKsN94sROO1wF1tFh0x//VYCjkbiwx8O6o01/Bjiq"], ["created_at", "2015-03-02 05:24:58.752009"], ["updated_at", "2015-03-02 05:24:58.752009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.753960"], ["user_id", "77eece64-c09c-11e4-b99f-705681abff85"], ["created_at", "2015-03-02 05:24:58.754985"], ["updated_at", "2015-03-02 05:24:58.754985"], ["token", "rM08HcpSemfkVlfa8p_BwaS402-46InpEM_obDqMHvo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.758932"], ["updated_at", "2015-03-02 05:24:58.758932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77eece64-c09c-11e4-b99f-705681abff85' AND "clubhouse_memberships"."organization_id" = '77efdcbe-c09c-11e4-8e2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77eece64-c09c-11e4-b99f-705681abff85"], ["organization_id", "77efdcbe-c09c-11e4-8e2a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.762646"], ["updated_at", "2015-03-02 05:24:58.762646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '77efdcbe-c09c-11e4-8e2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "77efdcbe-c09c-11e4-8e2a-705681abff85"], ["created_at", "2015-03-02 05:24:58.765965"], ["updated_at", "2015-03-02 05:24:58.765965"], ["token", "X-ITnBQNlUH8lHhSGs43q5aFiuPs3tynWkWIzY9hUfA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/77f0ed48-c09c-11e4-8e8b-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"77f0ed48-c09c-11e4-8e8b-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:58.772076' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rM08HcpSemfkVlfa8p_BwaS402-46InpEM_obDqMHvo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:58.774328"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:58.775598"], ["id", "77ef51f4-c09c-11e4-b84b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "77eece64-c09c-11e4-b99f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "77eece64-c09c-11e4-b99f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '77eece64-c09c-11e4-b99f-705681abff85' LIMIT 1 [["organization_id", "77efdcbe-c09c-11e4-8e2a-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "77efdcbe-c09c-11e4-8e2a-705681abff85"], ["id", "77f0ed48-c09c-11e4-8e8b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "77efdcbe-c09c-11e4-8e2a-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."id" != '77f0ed48-c09c-11e4-8e8b-705681abff85' AND "clubhouse_invitations"."organization_id" = '77efdcbe-c09c-11e4-8e2a-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:24:58.787457"], ["id", "77f0ed48-c09c-11e4-8e8b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 0.8ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$ptqQ3I6wMxKCNI6vfsRtTeZMv6OcnqIXbrQyEVa9I.KhW6WVHBAYC"], ["created_at", "2015-03-02 05:24:58.796355"], ["updated_at", "2015-03-02 05:24:58.796355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.798356"], ["user_id", "77f59370-c09c-11e4-a881-705681abff85"], ["created_at", "2015-03-02 05:24:58.799187"], ["updated_at", "2015-03-02 05:24:58.799187"], ["token", "ywkFx1CmfiqqqOotfTQ4S-6oqA2MC4WchusxHMAJd-c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.803177"], ["updated_at", "2015-03-02 05:24:58.803177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77f59370-c09c-11e4-a881-705681abff85' AND "clubhouse_memberships"."organization_id" = '77f69874-c09c-11e4-8ae2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77f59370-c09c-11e4-a881-705681abff85"], ["organization_id", "77f69874-c09c-11e4-8ae2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.806755"], ["updated_at", "2015-03-02 05:24:58.806755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '77f69874-c09c-11e4-8ae2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "77f69874-c09c-11e4-8ae2-705681abff85"], ["created_at", "2015-03-02 05:24:58.810205"], ["updated_at", "2015-03-02 05:24:58.810205"], ["token", "RCp1yNt3cebkUwNMX7jj1O5Vks4efA8WH-Rx6UNBc18"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$4ieZypq8iTgtiebaCaD4ougU3MVSLCQmAL8bOJBYZpGzMp0r0.FMK"], ["created_at", "2015-03-02 05:24:58.815030"], ["updated_at", "2015-03-02 05:24:58.815030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.818494"], ["updated_at", "2015-03-02 05:24:58.818494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77f86b5e-c09c-11e4-aa12-705681abff85' AND "clubhouse_memberships"."organization_id" = '77f8ef3e-c09c-11e4-b39b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77f86b5e-c09c-11e4-aa12-705681abff85"], ["organization_id", "77f8ef3e-c09c-11e4-b39b-705681abff85"], ["created_at", "2015-03-02 05:24:58.821799"], ["updated_at", "2015-03-02 05:24:58.821799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$jml8dAgXS7Yren4NR0PHEOYTMSMX.YhavtWcvtIXkRO5Ox70MZ0yO"], ["created_at", "2015-03-02 05:24:58.833577"], ["updated_at", "2015-03-02 05:24:58.833577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.835257"], ["user_id", "77fb3eec-c09c-11e4-9b30-705681abff85"], ["created_at", "2015-03-02 05:24:58.836053"], ["updated_at", "2015-03-02 05:24:58.836053"], ["token", "xGF9n70DVhEoR3CglRSIaWnF580yGpeLnq3_OI-2DMA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.840236"], ["updated_at", "2015-03-02 05:24:58.840236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77fb3eec-c09c-11e4-9b30-705681abff85' AND "clubhouse_memberships"."organization_id" = '77fc5b24-c09c-11e4-993c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77fb3eec-c09c-11e4-9b30-705681abff85"], ["organization_id", "77fc5b24-c09c-11e4-993c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:58.844851"], ["updated_at", "2015-03-02 05:24:58.844851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '77fc5b24-c09c-11e4-993c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "77fc5b24-c09c-11e4-993c-705681abff85"], ["created_at", "2015-03-02 05:24:58.848585"], ["updated_at", "2015-03-02 05:24:58.848585"], ["token", "ZbyI3r5huw8hsBEqCRFdLa6FMDL-6QoQq5TLwmAj3gE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$d5AXR9blziEnH8N0hncZdeEj2nb/lVQ/BUav7ZHT10bxhJVr4u4EK"], ["created_at", "2015-03-02 05:24:58.853539"], ["updated_at", "2015-03-02 05:24:58.853539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.857058"], ["updated_at", "2015-03-02 05:24:58.857058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77fe4b28-c09c-11e4-bcbe-705681abff85' AND "clubhouse_memberships"."organization_id" = '77fed7b4-c09c-11e4-bfdd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "77fe4b28-c09c-11e4-bcbe-705681abff85"], ["organization_id", "77fed7b4-c09c-11e4-bfdd-705681abff85"], ["created_at", "2015-03-02 05:24:58.860608"], ["updated_at", "2015-03-02 05:24:58.860608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:58.866155' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xGF9n70DVhEoR3CglRSIaWnF580yGpeLnq3_OI-2DMA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:58.867659"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:58.868687"], ["id", "77fba328-c09c-11e4-af83-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "77fb3eec-c09c-11e4-9b30-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "77fb3eec-c09c-11e4-9b30-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '77fb3eec-c09c-11e4-9b30-705681abff85' LIMIT 1 [["organization_id", "77fc5b24-c09c-11e4-993c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "77fc5b24-c09c-11e4-993c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('77fc5b24-c09c-11e4-993c-705681abff85') Completed 200 OK in 17ms (Views: 7.5ms | ActiveRecord: 1.8ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.901758"], ["updated_at", "2015-03-02 05:24:58.901758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7805a68e-c09c-11e4-afa2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "7805a68e-c09c-11e4-afa2-705681abff85"], ["created_at", "2015-03-02 05:24:58.905078"], ["updated_at", "2015-03-02 05:24:58.905078"], ["token", "B4nXty2xPUTtkGLQH8uG6UQ7sd62J4sY0gDNtCEBDWk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.910240"], ["updated_at", "2015-03-02 05:24:58.910240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '7806f66a-c09c-11e4-9786-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "7806f66a-c09c-11e4-9786-705681abff85"], ["created_at", "2015-03-02 05:24:58.913532"], ["updated_at", "2015-03-02 05:24:58.913532"], ["token", "pL9A7qPzle2B-qLVqnT2zz4jWW6wRmPifevYIb8Mu64"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7806f66a-c09c-11e4-9786-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '7806f66a-c09c-11e4-9786-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7806f66a-c09c-11e4-9786-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '7806f66a-c09c-11e4-9786-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$6yQeA.zwUF105INVFNk9FOofEPeCxM.15M2h9MFcO83tOfgNkCgdC"], ["created_at", "2015-03-02 05:24:58.935094"], ["updated_at", "2015-03-02 05:24:58.935094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.936913"], ["user_id", "780abcf0-c09c-11e4-8dc6-705681abff85"], ["created_at", "2015-03-02 05:24:58.937733"], ["updated_at", "2015-03-02 05:24:58.937733"], ["token", "XiuH8ol45oUHI0bA38oapeROZuumioARKz807UbeT4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.942581"], ["updated_at", "2015-03-02 05:24:58.942581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '780abcf0-c09c-11e4-8dc6-705681abff85' AND "clubhouse_memberships"."organization_id" = '780bea6c-c09c-11e4-9d68-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "780abcf0-c09c-11e4-8dc6-705681abff85"], ["organization_id", "780bea6c-c09c-11e4-9d68-705681abff85"], ["created_at", "2015-03-02 05:24:58.946873"], ["updated_at", "2015-03-02 05:24:58.946873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (6.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$HP/15LrjgKi83B4ltKxoROrL6mx6h54TREF3Knmjtgr3B0WE1zBgS"], ["created_at", "2015-03-02 05:24:58.963875"], ["updated_at", "2015-03-02 05:24:58.963875"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:58.972391"], ["user_id", "780f2222-c09c-11e4-9aa0-705681abff85"], ["created_at", "2015-03-02 05:24:58.973324"], ["updated_at", "2015-03-02 05:24:58.973324"], ["token", "IASQdcUbr8fyx3PLKmUqNXAESgF-O5x3USnu8rmPhwo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:58.977352"], ["updated_at", "2015-03-02 05:24:58.977352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '780f2222-c09c-11e4-9aa0-705681abff85' AND "clubhouse_memberships"."organization_id" = '78112edc-c09c-11e4-a657-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "780f2222-c09c-11e4-9aa0-705681abff85"], ["organization_id", "78112edc-c09c-11e4-a657-705681abff85"], ["created_at", "2015-03-02 05:24:58.980973"], ["updated_at", "2015-03-02 05:24:58.980973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-9" for 127.0.0.1 at 2015-03-01 21:24:58 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-9", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:58.986522' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IASQdcUbr8fyx3PLKmUqNXAESgF-O5x3USnu8rmPhwo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:58.987876"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:58.988848"], ["id", "78109c06-c09c-11e4-93f6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "780f2222-c09c-11e4-9aa0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "780f2222-c09c-11e4-9aa0-705681abff85"], ["name", "org-9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "78112edc-c09c-11e4-a657-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$QjGyFvRfT7ufiLehtpDuAOd9UElH1IjTnQECkGAwcIn6HykCJHRg."], ["created_at", "2015-03-02 05:24:59.003417"], ["updated_at", "2015-03-02 05:24:59.003417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.005330"], ["user_id", "78153018-c09c-11e4-aa71-705681abff85"], ["created_at", "2015-03-02 05:24:59.006155"], ["updated_at", "2015-03-02 05:24:59.006155"], ["token", "pQKy3zpSgYZ8liOjeVHf0VozPbjtYSVUtjcrMJEAP3M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.009749"], ["updated_at", "2015-03-02 05:24:59.009749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78153018-c09c-11e4-aa71-705681abff85' AND "clubhouse_memberships"."organization_id" = '78161ca8-c09c-11e4-9b7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78153018-c09c-11e4-aa71-705681abff85"], ["organization_id", "78161ca8-c09c-11e4-9b7a-705681abff85"], ["created_at", "2015-03-02 05:24:59.012912"], ["updated_at", "2015-03-02 05:24:59.012912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$nJQ04QiklrxTw6OGTITcxO3tAx0nan3.1/AvSDL.5TnjacYBWem7O"], ["created_at", "2015-03-02 05:24:59.023977"], ["updated_at", "2015-03-02 05:24:59.023977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.025796"], ["user_id", "78185202-c09c-11e4-83b6-705681abff85"], ["created_at", "2015-03-02 05:24:59.026683"], ["updated_at", "2015-03-02 05:24:59.026683"], ["token", "gh8sPLeybs2wzmoYJ-km7fhEajz80wWeaCMHVK_HRko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.030257"], ["updated_at", "2015-03-02 05:24:59.030257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78185202-c09c-11e4-83b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '78193d48-c09c-11e4-af9b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78185202-c09c-11e4-83b6-705681abff85"], ["organization_id", "78193d48-c09c-11e4-af9b-705681abff85"], ["created_at", "2015-03-02 05:24:59.034120"], ["updated_at", "2015-03-02 05:24:59.034120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/78193d48-c09c-11e4-af9b-705681abff85" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"78193d48-c09c-11e4-af9b-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.040546' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gh8sPLeybs2wzmoYJ-km7fhEajz80wWeaCMHVK_HRko"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.043004"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.044248"], ["id", "7818bfda-c09c-11e4-b535-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78185202-c09c-11e4-83b6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78185202-c09c-11e4-83b6-705681abff85"], ["id", "78193d48-c09c-11e4-af9b-705681abff85"]] Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$vU3cR6.QO4hdEBbDS672fewJAGlFhLMAMp79Cu/VNeZnfO5mirztq"], ["created_at", "2015-03-02 05:24:59.057662"], ["updated_at", "2015-03-02 05:24:59.057662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.059544"], ["user_id", "781d74e4-c09c-11e4-8aa0-705681abff85"], ["created_at", "2015-03-02 05:24:59.060446"], ["updated_at", "2015-03-02 05:24:59.060446"], ["token", "TAO7cC5QMHnkdvudceePBM8t45-XoxOIBl9wa6umkd0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.064886"], ["updated_at", "2015-03-02 05:24:59.064886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '781d74e4-c09c-11e4-8aa0-705681abff85' AND "clubhouse_memberships"."organization_id" = '781e9d74-c09c-11e4-b10a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "781d74e4-c09c-11e4-8aa0-705681abff85"], ["organization_id", "781e9d74-c09c-11e4-b10a-705681abff85"], ["created_at", "2015-03-02 05:24:59.069009"], ["updated_at", "2015-03-02 05:24:59.069009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$BAybrLkO.Hi12o7q7NCgs.6lFpM5bfA88kSgOCdhqrjZl5ESH5PBa"], ["created_at", "2015-03-02 05:24:59.081554"], ["updated_at", "2015-03-02 05:24:59.081554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.083505"], ["user_id", "78211dd8-c09c-11e4-8743-705681abff85"], ["created_at", "2015-03-02 05:24:59.084314"], ["updated_at", "2015-03-02 05:24:59.084314"], ["token", "7Cyk9gceIM4k6MrRTttBQBSPhc34QeHP6uGfKVyeG1k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.089412"], ["updated_at", "2015-03-02 05:24:59.089412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78211dd8-c09c-11e4-8743-705681abff85' AND "clubhouse_memberships"."organization_id" = '78225e00-c09c-11e4-864d-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78211dd8-c09c-11e4-8743-705681abff85"], ["organization_id", "78225e00-c09c-11e4-864d-705681abff85"], ["created_at", "2015-03-02 05:24:59.093954"], ["updated_at", "2015-03-02 05:24:59.093954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-13" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.100127' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7Cyk9gceIM4k6MrRTttBQBSPhc34QeHP6uGfKVyeG1k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.102219"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.103333"], ["id", "78218e6c-c09c-11e4-a85b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78211dd8-c09c-11e4-8743-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78211dd8-c09c-11e4-8743-705681abff85"], ["name", "org-13"]] Completed 200 OK in 10ms (Views: 1.1ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$HKcCI4AMy0QIvn03BO0YoOq.7.lYlxvQBd0cuvAOQfUz/SF3joeCS"], ["created_at", "2015-03-02 05:24:59.116020"], ["updated_at", "2015-03-02 05:24:59.116020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.117586"], ["user_id", "78265618-c09c-11e4-a4f8-705681abff85"], ["created_at", "2015-03-02 05:24:59.118487"], ["updated_at", "2015-03-02 05:24:59.118487"], ["token", "moLBI4nBmmIC0qbvmB1AHJ7-H45bp2etvAh06OtJiBE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.122206"], ["updated_at", "2015-03-02 05:24:59.122206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78265618-c09c-11e4-a4f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '78274a96-c09c-11e4-9846-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78265618-c09c-11e4-a4f8-705681abff85"], ["organization_id", "78274a96-c09c-11e4-9846-705681abff85"], ["created_at", "2015-03-02 05:24:59.126052"], ["updated_at", "2015-03-02 05:24:59.126052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$gIbh/agVd.3BVzqtbMGqvOND2tg0SsdHVxWvrWrcDU6i08bPt8Yuu"], ["created_at", "2015-03-02 05:24:59.137150"], ["updated_at", "2015-03-02 05:24:59.137150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.138844"], ["user_id", "78299274-c09c-11e4-a58c-705681abff85"], ["created_at", "2015-03-02 05:24:59.139781"], ["updated_at", "2015-03-02 05:24:59.139781"], ["token", "qdEp-1hDDJpCewTWL-zAIeBlsYBjRKRn-hbNhWJAveg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.143573"], ["updated_at", "2015-03-02 05:24:59.143573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78299274-c09c-11e4-a58c-705681abff85' AND "clubhouse_memberships"."organization_id" = '782a8af8-c09c-11e4-8a46-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78299274-c09c-11e4-a58c-705681abff85"], ["organization_id", "782a8af8-c09c-11e4-8a46-705681abff85"], ["created_at", "2015-03-02 05:24:59.147328"], ["updated_at", "2015-03-02 05:24:59.147328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-15" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-15", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.152713' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qdEp-1hDDJpCewTWL-zAIeBlsYBjRKRn-hbNhWJAveg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.154161"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.155209"], ["id", "7829fe58-c09c-11e4-b40a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78299274-c09c-11e4-a58c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78299274-c09c-11e4-a58c-705681abff85"], ["name", "org-15"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '782a8af8-c09c-11e4-8a46-705681abff85') LIMIT 1 SQL (6.6ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:24:59.164084"], ["id", "782a8af8-c09c-11e4-8a46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 0.6ms | ActiveRecord: 8.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$SSM2Bz/8zS1mMtIKL2BuYumgnbbxLdKlr82CAqmaGES3keprJoXza"], ["created_at", "2015-03-02 05:24:59.179419"], ["updated_at", "2015-03-02 05:24:59.179419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.181205"], ["user_id", "783006b8-c09c-11e4-bb70-705681abff85"], ["created_at", "2015-03-02 05:24:59.182048"], ["updated_at", "2015-03-02 05:24:59.182048"], ["token", "wkzmFuEXL3oDFJS_o8rzWGteGL_kcFBWTFRwKcfb_XM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.185540"], ["updated_at", "2015-03-02 05:24:59.185540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '783006b8-c09c-11e4-bb70-705681abff85' AND "clubhouse_memberships"."organization_id" = '7830f000-c09c-11e4-865b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "783006b8-c09c-11e4-bb70-705681abff85"], ["organization_id", "7830f000-c09c-11e4-865b-705681abff85"], ["created_at", "2015-03-02 05:24:59.188732"], ["updated_at", "2015-03-02 05:24:59.188732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-16" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-16", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.194162' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wkzmFuEXL3oDFJS_o8rzWGteGL_kcFBWTFRwKcfb_XM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.195590"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.196564"], ["id", "78307166-c09c-11e4-9d3b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "783006b8-c09c-11e4-bb70-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "783006b8-c09c-11e4-bb70-705681abff85"], ["name", "org-16"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7830f000-c09c-11e4-865b-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$xq65cmV4cZyYrJ4nIgmEhO5gnzC8KtcLKnYNdehpdnCuyx6fDJIXK"], ["created_at", "2015-03-02 05:24:59.210519"], ["updated_at", "2015-03-02 05:24:59.210519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.212404"], ["user_id", "7834c662-c09c-11e4-8999-705681abff85"], ["created_at", "2015-03-02 05:24:59.213232"], ["updated_at", "2015-03-02 05:24:59.213232"], ["token", "-GXAHVxJD_cQ6SqNHib6c0JTqYaq_pNWUcvdtfsiiig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (15.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.231679"], ["updated_at", "2015-03-02 05:24:59.231679"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (3.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7834c662-c09c-11e4-8999-705681abff85' AND "clubhouse_memberships"."organization_id" = '783874d8-c09c-11e4-99a6-705681abff85') LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7834c662-c09c-11e4-8999-705681abff85"], ["organization_id", "783874d8-c09c-11e4-99a6-705681abff85"], ["created_at", "2015-03-02 05:24:59.255746"], ["updated_at", "2015-03-02 05:24:59.255746"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$AsT93dEcT61/6mdBkUu17e6zRRIWGCYL5QIWXeKK5p0HRkQrC45S."], ["created_at", "2015-03-02 05:24:59.298833"], ["updated_at", "2015-03-02 05:24:59.298833"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.301585"], ["user_id", "78424f12-c09c-11e4-9d99-705681abff85"], ["created_at", "2015-03-02 05:24:59.303940"], ["updated_at", "2015-03-02 05:24:59.303940"], ["token", "0R3fAsF46N-8XzEGdxzJbMyM0oWq5R9B36nh6ji3iKw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.312795"], ["updated_at", "2015-03-02 05:24:59.312795"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78424f12-c09c-11e4-9d99-705681abff85' AND "clubhouse_memberships"."organization_id" = '78447cb0-c09c-11e4-8a39-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78424f12-c09c-11e4-9d99-705681abff85"], ["organization_id", "78447cb0-c09c-11e4-8a39-705681abff85"], ["created_at", "2015-03-02 05:24:59.320217"], ["updated_at", "2015-03-02 05:24:59.320217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.328137' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0R3fAsF46N-8XzEGdxzJbMyM0oWq5R9B36nh6ji3iKw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.329771"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.330977"], ["id", "78438468-c09c-11e4-920a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78424f12-c09c-11e4-9d99-705681abff85"]]  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.337099"], ["updated_at", "2015-03-02 05:24:59.337099"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "784812c6-c09c-11e4-9a40-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78424f12-c09c-11e4-9d99-705681abff85' AND "clubhouse_memberships"."organization_id" = '784812c6-c09c-11e4-9a40-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78424f12-c09c-11e4-9d99-705681abff85"], ["admin", "t"], ["organization_id", "784812c6-c09c-11e4-9a40-705681abff85"], ["created_at", "2015-03-02 05:24:59.341894"], ["updated_at", "2015-03-02 05:24:59.341894"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.5ms | ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$EwMHN8.9opCtlRLm0PIyte0oJ1vy5tplcypu8Q6bn6ga9u1u3cH6W"], ["created_at", "2015-03-02 05:24:59.351242"], ["updated_at", "2015-03-02 05:24:59.351242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.353053"], ["user_id", "784a4014-c09c-11e4-b438-705681abff85"], ["created_at", "2015-03-02 05:24:59.353914"], ["updated_at", "2015-03-02 05:24:59.353914"], ["token", "HPZR-RcxFiFUszEJBc1EkSVPHp7iUrqD3MNCEk6azO8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.357843"], ["updated_at", "2015-03-02 05:24:59.357843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '784a4014-c09c-11e4-b438-705681abff85' AND "clubhouse_memberships"."organization_id" = '784b445a-c09c-11e4-b313-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "784a4014-c09c-11e4-b438-705681abff85"], ["organization_id", "784b445a-c09c-11e4-b313-705681abff85"], ["created_at", "2015-03-02 05:24:59.361368"], ["updated_at", "2015-03-02 05:24:59.361368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.370140' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HPZR-RcxFiFUszEJBc1EkSVPHp7iUrqD3MNCEk6azO8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.372599"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.374183"], ["id", "784aa8a6-c09c-11e4-a12e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "784a4014-c09c-11e4-b438-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$hdiC8l8rB6xYxBFCfNLfkeXVXKgWrjcAtM4YxU4qy6qGiPHLUHkYC"], ["created_at", "2015-03-02 05:24:59.386852"], ["updated_at", "2015-03-02 05:24:59.386852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.388663"], ["user_id", "784fa9e6-c09c-11e4-bb92-705681abff85"], ["created_at", "2015-03-02 05:24:59.389423"], ["updated_at", "2015-03-02 05:24:59.389423"], ["token", "GUt4KQpuVOMk2mahCYdCLPcXOe_dgV1WO-JUXBSM314"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.394748"], ["updated_at", "2015-03-02 05:24:59.394748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '784fa9e6-c09c-11e4-bb92-705681abff85' AND "clubhouse_memberships"."organization_id" = '7850dfe6-c09c-11e4-8adc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "784fa9e6-c09c-11e4-bb92-705681abff85"], ["organization_id", "7850dfe6-c09c-11e4-8adc-705681abff85"], ["created_at", "2015-03-02 05:24:59.398391"], ["updated_at", "2015-03-02 05:24:59.398391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$Xjy9vzg4yBiGT77ZyX8hC.ayOQVqjpwqjqY6tDFktfmHx62AVPPwy"], ["created_at", "2015-03-02 05:24:59.409199"], ["updated_at", "2015-03-02 05:24:59.409199"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.411343"], ["user_id", "78531ffe-c09c-11e4-af21-705681abff85"], ["created_at", "2015-03-02 05:24:59.412165"], ["updated_at", "2015-03-02 05:24:59.412165"], ["token", "ylyoAdyxGKiDnjPGY_ljh13ixFYcK9b2HIoRVtephjA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.415767"], ["updated_at", "2015-03-02 05:24:59.415767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78531ffe-c09c-11e4-af21-705681abff85' AND "clubhouse_memberships"."organization_id" = '785410b2-c09c-11e4-a4d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78531ffe-c09c-11e4-af21-705681abff85"], ["organization_id", "785410b2-c09c-11e4-a4d0-705681abff85"], ["created_at", "2015-03-02 05:24:59.418919"], ["updated_at", "2015-03-02 05:24:59.418919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-21" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-21", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.424885' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ylyoAdyxGKiDnjPGY_ljh13ixFYcK9b2HIoRVtephjA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.426476"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.427708"], ["id", "78538d0e-c09c-11e4-8f25-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-21"]] Completed 200 OK in 7ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$jOWWOjaZ3Bpz2zfJC41w3e7B4ydts3wdUCl8AyRGWUqoh6KIKjrZO"], ["created_at", "2015-03-02 05:24:59.436674"], ["updated_at", "2015-03-02 05:24:59.436674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.438254"], ["user_id", "7857435e-c09c-11e4-9387-705681abff85"], ["created_at", "2015-03-02 05:24:59.439486"], ["updated_at", "2015-03-02 05:24:59.439486"], ["token", "rD6T-323i2YOMRgXmN2sGLp6hS1JljItibn3IZpwrcs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.446435"], ["updated_at", "2015-03-02 05:24:59.446435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7857435e-c09c-11e4-9387-705681abff85' AND "clubhouse_memberships"."organization_id" = '7858c1d4-c09c-11e4-ad0c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7857435e-c09c-11e4-9387-705681abff85"], ["organization_id", "7858c1d4-c09c-11e4-ad0c-705681abff85"], ["created_at", "2015-03-02 05:24:59.450189"], ["updated_at", "2015-03-02 05:24:59.450189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.455825' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rD6T-323i2YOMRgXmN2sGLp6hS1JljItibn3IZpwrcs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.457463"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.458512"], ["id", "7857bca8-c09c-11e4-b3ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$1KwAWdIfUKnUoxDMo6/xwe48/a10y0B0Wcj9.zOeDlMakCp3fCEde"], ["created_at", "2015-03-02 05:24:59.466499"], ["updated_at", "2015-03-02 05:24:59.466499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.468598"], ["user_id", "785bd55e-c09c-11e4-b637-705681abff85"], ["created_at", "2015-03-02 05:24:59.469440"], ["updated_at", "2015-03-02 05:24:59.469440"], ["token", "UkPQ4keEZJcfJiAr76a7NcjgqIO_fRwv8Aib9zqTyPU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.473056"], ["updated_at", "2015-03-02 05:24:59.473056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '785bd55e-c09c-11e4-b637-705681abff85' AND "clubhouse_memberships"."organization_id" = '785cce5a-c09c-11e4-8ac1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "785bd55e-c09c-11e4-b637-705681abff85"], ["organization_id", "785cce5a-c09c-11e4-8ac1-705681abff85"], ["created_at", "2015-03-02 05:24:59.476475"], ["updated_at", "2015-03-02 05:24:59.476475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$SpMgB.n/359X6jBmg89S5OOCdkysQXyo6eD.1HRPPC62i261w7Sx2"], ["created_at", "2015-03-02 05:24:59.489295"], ["updated_at", "2015-03-02 05:24:59.489295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.491208"], ["user_id", "785f4eb4-c09c-11e4-92ea-705681abff85"], ["created_at", "2015-03-02 05:24:59.492078"], ["updated_at", "2015-03-02 05:24:59.492078"], ["token", "iHZM0xRfyTPjJtoAHgFoc9DtNT7cbDnouSzT5a3KJUg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.496800"], ["updated_at", "2015-03-02 05:24:59.496800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '785f4eb4-c09c-11e4-92ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '78607186-c09c-11e4-9c1b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "785f4eb4-c09c-11e4-92ea-705681abff85"], ["organization_id", "78607186-c09c-11e4-9c1b-705681abff85"], ["created_at", "2015-03-02 05:24:59.500464"], ["updated_at", "2015-03-02 05:24:59.500464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/78607186-c09c-11e4-9c1b-705681abff85" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"78607186-c09c-11e4-9c1b-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.505631' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iHZM0xRfyTPjJtoAHgFoc9DtNT7cbDnouSzT5a3KJUg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.506978"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.508221"], ["id", "785fc18c-c09c-11e4-b6ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "785f4eb4-c09c-11e4-92ea-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "785f4eb4-c09c-11e4-92ea-705681abff85"], ["id", "78607186-c09c-11e4-9c1b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "78607186-c09c-11e4-9c1b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$ipAf1wSYkaQpk3N.BDUc1.GdneLCBB7lWLL3jW4Cv7hnGpUhHGvkm"], ["created_at", "2015-03-02 05:24:59.519078"], ["updated_at", "2015-03-02 05:24:59.519078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.520647"], ["user_id", "7863d6a0-c09c-11e4-b708-705681abff85"], ["created_at", "2015-03-02 05:24:59.521504"], ["updated_at", "2015-03-02 05:24:59.521504"], ["token", "wXpELSWTprg7N496Y8x2GgcdlpbOIWdXpFbUkI_PnKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.524971"], ["updated_at", "2015-03-02 05:24:59.524971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7863d6a0-c09c-11e4-b708-705681abff85' AND "clubhouse_memberships"."organization_id" = '7864b9d0-c09c-11e4-97b9-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7863d6a0-c09c-11e4-b708-705681abff85"], ["organization_id", "7864b9d0-c09c-11e4-97b9-705681abff85"], ["created_at", "2015-03-02 05:24:59.528797"], ["updated_at", "2015-03-02 05:24:59.528797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$JhB0MJNkFeP2qTMdRIJzFupDEPmaklfPgmmGhCL33FrJNnLE7Jm9K"], ["created_at", "2015-03-02 05:24:59.535521"], ["updated_at", "2015-03-02 05:24:59.535521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.538997"], ["updated_at", "2015-03-02 05:24:59.538997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78665a42-c09c-11e4-810c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7866e106-c09c-11e4-b4c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78665a42-c09c-11e4-810c-705681abff85"], ["organization_id", "7866e106-c09c-11e4-b4c1-705681abff85"], ["created_at", "2015-03-02 05:24:59.542371"], ["updated_at", "2015-03-02 05:24:59.542371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$X3cqtR.CAFKJLpeGaqg8DeGNg.9MLuhsabC0daWiSc3SSYJjOkc8K"], ["created_at", "2015-03-02 05:24:59.554679"], ["updated_at", "2015-03-02 05:24:59.554679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.556472"], ["user_id", "786949f0-c09c-11e4-8344-705681abff85"], ["created_at", "2015-03-02 05:24:59.557278"], ["updated_at", "2015-03-02 05:24:59.557278"], ["token", "m8MYInz2fw4lDfzJ-YALQb-3Aolgjn_BojP1G8AVJpY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.560927"], ["updated_at", "2015-03-02 05:24:59.560927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '786949f0-c09c-11e4-8344-705681abff85' AND "clubhouse_memberships"."organization_id" = '786a37de-c09c-11e4-b4cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "786949f0-c09c-11e4-8344-705681abff85"], ["organization_id", "786a37de-c09c-11e4-b4cc-705681abff85"], ["created_at", "2015-03-02 05:24:59.564141"], ["updated_at", "2015-03-02 05:24:59.564141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$jpGXM3fpRZXscX8bGTQ.7.cwgevxGLh4n/6M421U.MsElxy3RFoYu"], ["created_at", "2015-03-02 05:24:59.568387"], ["updated_at", "2015-03-02 05:24:59.568387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.571784"], ["updated_at", "2015-03-02 05:24:59.571784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '786b63fc-c09c-11e4-8f71-705681abff85' AND "clubhouse_memberships"."organization_id" = '786be3d6-c09c-11e4-b117-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "786b63fc-c09c-11e4-8f71-705681abff85"], ["organization_id", "786be3d6-c09c-11e4-b117-705681abff85"], ["created_at", "2015-03-02 05:24:59.575918"], ["updated_at", "2015-03-02 05:24:59.575918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.586746' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "m8MYInz2fw4lDfzJ-YALQb-3Aolgjn_BojP1G8AVJpY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.588611"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.589735"], ["id", "7869b282-c09c-11e4-96cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "786949f0-c09c-11e4-8344-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "786949f0-c09c-11e4-8344-705681abff85"]] Completed 200 OK in 11ms (Views: 4.1ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$HpgWgeFRelUj.LbgDUhehu8R0RxAD2TP2sftfVDDLxQ4UKaWRMLwC"], ["created_at", "2015-03-02 05:24:59.604639"], ["updated_at", "2015-03-02 05:24:59.604639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.606322"], ["user_id", "7870e67e-c09c-11e4-866c-705681abff85"], ["created_at", "2015-03-02 05:24:59.607279"], ["updated_at", "2015-03-02 05:24:59.607279"], ["token", "Ow-_7UGFf4m7_G8eFXYDTPeMMbVySkCk5Dp6yQUkOvA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.611033"], ["updated_at", "2015-03-02 05:24:59.611033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7870e67e-c09c-11e4-866c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7871dd9a-c09c-11e4-8560-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7870e67e-c09c-11e4-866c-705681abff85"], ["organization_id", "7871dd9a-c09c-11e4-8560-705681abff85"], ["created_at", "2015-03-02 05:24:59.614639"], ["updated_at", "2015-03-02 05:24:59.614639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$E5OschOz8N0XFnZ/yXF7uuCqUdbNuS4Vf5NLeFFeQQ9ierneOci7S"], ["created_at", "2015-03-02 05:24:59.625258"], ["updated_at", "2015-03-02 05:24:59.625258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.627126"], ["user_id", "7874124a-c09c-11e4-b0fd-705681abff85"], ["created_at", "2015-03-02 05:24:59.627917"], ["updated_at", "2015-03-02 05:24:59.627917"], ["token", "pVZphPlKDjJW0mo17HBTxN4a4rD-NwM0pFpcDAWg08o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.631645"], ["updated_at", "2015-03-02 05:24:59.631645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7874124a-c09c-11e4-b0fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '787506e6-c09c-11e4-b446-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7874124a-c09c-11e4-b0fd-705681abff85"], ["organization_id", "787506e6-c09c-11e4-b446-705681abff85"], ["created_at", "2015-03-02 05:24:59.635598"], ["updated_at", "2015-03-02 05:24:59.635598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/787506e6-c09c-11e4-b446-705681abff85" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"787506e6-c09c-11e4-b446-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.641374' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pVZphPlKDjJW0mo17HBTxN4a4rD-NwM0pFpcDAWg08o"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.643179"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.645274"], ["id", "787477bc-c09c-11e4-977e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7874124a-c09c-11e4-b0fd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7874124a-c09c-11e4-b0fd-705681abff85"], ["id", "787506e6-c09c-11e4-b446-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '787506e6-c09c-11e4-b446-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-02 05:24:59.651647"], ["id", "787506e6-c09c-11e4-b446-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$Tqcq45ELJ6JNa4URQll2BuIB8JtNRVlVdhFt/PLRsv61GmRqMUHIW"], ["created_at", "2015-03-02 05:24:59.660344"], ["updated_at", "2015-03-02 05:24:59.660344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.662108"], ["user_id", "787968f8-c09c-11e4-bbe0-705681abff85"], ["created_at", "2015-03-02 05:24:59.662957"], ["updated_at", "2015-03-02 05:24:59.662957"], ["token", "0GcMx0S8Ddb3v9IDaGiFlAmmgkmgzzVe40kCePryS9I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.666512"], ["updated_at", "2015-03-02 05:24:59.666512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '787968f8-c09c-11e4-bbe0-705681abff85' AND "clubhouse_memberships"."organization_id" = '787a5d6c-c09c-11e4-aa09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "787968f8-c09c-11e4-bbe0-705681abff85"], ["organization_id", "787a5d6c-c09c-11e4-aa09-705681abff85"], ["created_at", "2015-03-02 05:24:59.670228"], ["updated_at", "2015-03-02 05:24:59.670228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/787a5d6c-c09c-11e4-aa09-705681abff85" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"787a5d6c-c09c-11e4-aa09-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.677549' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0GcMx0S8Ddb3v9IDaGiFlAmmgkmgzzVe40kCePryS9I"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.679094"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.680668"], ["id", "7879cffa-c09c-11e4-b61b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "787968f8-c09c-11e4-bbe0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "787968f8-c09c-11e4-bbe0-705681abff85"], ["id", "787a5d6c-c09c-11e4-aa09-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '787a5d6c-c09c-11e4-aa09-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.694529"], ["updated_at", "2015-03-02 05:24:59.694529"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '787ea822-c09c-11e4-80b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "787ea822-c09c-11e4-80b3-705681abff85"], ["created_at", "2015-03-02 05:24:59.698867"], ["updated_at", "2015-03-02 05:24:59.698867"], ["token", "nPE7nJikUktiPhBCX_-GxdwbQ3i04-xrePusB6FeZlk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.7ms) Date: Sun, 01 Mar 2015 21:24:59 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f42bab9d2_149603fca31c63bf4855e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/nPE7nJikUktiPhBCX_-GxdwbQ3i04-xrePusB6FeZlk If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.707807"], ["updated_at", "2015-03-02 05:24:59.707807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7880a21c-c09c-11e4-a1c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7880a21c-c09c-11e4-a1c3-705681abff85"], ["created_at", "2015-03-02 05:24:59.712403"], ["updated_at", "2015-03-02 05:24:59.712403"], ["token", "Wf9b2eMbTT1hHO5Ain5TbPZnv3t-EK2YS_VLDg-YEEc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.6ms) Date: Sun, 01 Mar 2015 21:24:59 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f42baef0e_149603fca31c63bf486dc@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Wf9b2eMbTT1hHO5Ain5TbPZnv3t-EK2YS_VLDg-YEEc If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.721443"], ["updated_at", "2015-03-02 05:24:59.721443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7882ba48-c09c-11e4-94c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7882ba48-c09c-11e4-94c6-705681abff85"], ["created_at", "2015-03-02 05:24:59.725454"], ["updated_at", "2015-03-02 05:24:59.725454"], ["token", "9m-WetdNxHFNYbqc7KPwyfyiY2NvY2LZtFl8lh0OChw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.7ms) Date: Sun, 01 Mar 2015 21:24:59 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f42bb214e_149603fca31c63bf487a1@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/9m-WetdNxHFNYbqc7KPwyfyiY2NvY2LZtFl8lh0OChw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.734497"], ["updated_at", "2015-03-02 05:24:59.734497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7884ba5a-c09c-11e4-9625-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7884ba5a-c09c-11e4-9625-705681abff85"], ["created_at", "2015-03-02 05:24:59.738098"], ["updated_at", "2015-03-02 05:24:59.738098"], ["token", "K0E5i9EY7DSfd5E-gPEEZ2XwjPNwzkc1WG-r1ioq0c8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.5ms Sent mail to john@example.com (1.7ms) Date: Sun, 01 Mar 2015 21:24:59 -0800 From: from@example.com To: john@example.com Message-ID: <54f3f42bb5c38_149603fca31c63bf48817@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/K0E5i9EY7DSfd5E-gPEEZ2XwjPNwzkc1WG-r1ioq0c8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$jqrWCIHlfzGipbpOokz3ZeIA.o1g26DUxQ0A.q3ckP8rF9/rgO8M."], ["created_at", "2015-03-02 05:24:59.751544"], ["updated_at", "2015-03-02 05:24:59.751544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$apRQolhYpGgTuFpUvI9NIuTU.jLLuoShpQJ2KlSSHHEUjsuYGrk4O"], ["created_at", "2015-03-02 05:24:59.755879"], ["updated_at", "2015-03-02 05:24:59.755879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.757617"], ["user_id", "788751d4-c09c-11e4-8361-705681abff85"], ["created_at", "2015-03-02 05:24:59.758687"], ["updated_at", "2015-03-02 05:24:59.758687"], ["token", "ohKSc_0PB9kJqmzKZO4C6zKMut7sE2SD1py-gnMRcQQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.763249"], ["updated_at", "2015-03-02 05:24:59.763249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '788751d4-c09c-11e4-8361-705681abff85' AND "clubhouse_memberships"."organization_id" = '78891c80-c09c-11e4-ba82-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "788751d4-c09c-11e4-8361-705681abff85"], ["organization_id", "78891c80-c09c-11e4-ba82-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:59.766879"], ["updated_at", "2015-03-02 05:24:59.766879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7887f788-c09c-11e4-93f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '78891c80-c09c-11e4-ba82-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7887f788-c09c-11e4-93f3-705681abff85"], ["organization_id", "78891c80-c09c-11e4-ba82-705681abff85"], ["created_at", "2015-03-02 05:24:59.769997"], ["updated_at", "2015-03-02 05:24:59.769997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$knHCOVJAw3nvKFoh4P.XueGsIq8meLsp7C3FYOPLKT201SXzKzaXi"], ["created_at", "2015-03-02 05:24:59.795314"], ["updated_at", "2015-03-02 05:24:59.795314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$ZqtXpRNt.8Ccpb9IblorNeMSSoa8NcWQtGDJK0NlGKeHCAI7Bvo0G"], ["created_at", "2015-03-02 05:24:59.800394"], ["updated_at", "2015-03-02 05:24:59.800394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.802051"], ["user_id", "788e00d8-c09c-11e4-8f3a-705681abff85"], ["created_at", "2015-03-02 05:24:59.802868"], ["updated_at", "2015-03-02 05:24:59.802868"], ["token", "r_i03LCF3oL-qsCkHUYi-onLx4nfqkieS8u9jqbl0VQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.806481"], ["updated_at", "2015-03-02 05:24:59.806481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '788e00d8-c09c-11e4-8f3a-705681abff85' AND "clubhouse_memberships"."organization_id" = '788fb202-c09c-11e4-90e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "788e00d8-c09c-11e4-8f3a-705681abff85"], ["organization_id", "788fb202-c09c-11e4-90e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:59.810030"], ["updated_at", "2015-03-02 05:24:59.810030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '788ec3ce-c09c-11e4-802f-705681abff85' AND "clubhouse_memberships"."organization_id" = '788fb202-c09c-11e4-90e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "788ec3ce-c09c-11e4-802f-705681abff85"], ["organization_id", "788fb202-c09c-11e4-90e3-705681abff85"], ["created_at", "2015-03-02 05:24:59.814979"], ["updated_at", "2015-03-02 05:24:59.814979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/7890fd38-c09c-11e4-8b2e-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"7890fd38-c09c-11e4-8b2e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.820043' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r_i03LCF3oL-qsCkHUYi-onLx4nfqkieS8u9jqbl0VQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.821764"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.823165"], ["id", "788f2a4e-c09c-11e4-a940-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "788e00d8-c09c-11e4-8f3a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "788e00d8-c09c-11e4-8f3a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '788e00d8-c09c-11e4-8f3a-705681abff85' LIMIT 1 [["organization_id", "788fb202-c09c-11e4-90e3-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "788fb202-c09c-11e4-90e3-705681abff85"], ["id", "7890fd38-c09c-11e4-8b2e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "788fb202-c09c-11e4-90e3-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "788ec3ce-c09c-11e4-802f-705681abff85"]] Completed 200 OK in 19ms (Views: 5.7ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$z..TdmYwbZGEPTcRdoRG9Oonh7E66.JFGXuMzMKKBxf5eBjTo4qXa"], ["created_at", "2015-03-02 05:24:59.847356"], ["updated_at", "2015-03-02 05:24:59.847356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$C1UJNIUwoJ2WlKyaTTpFjekSnA4l8vBhGn7b6f5wRq09P8ioY08/G"], ["created_at", "2015-03-02 05:24:59.852550"], ["updated_at", "2015-03-02 05:24:59.852550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.854264"], ["user_id", "7895f11c-c09c-11e4-ac1b-705681abff85"], ["created_at", "2015-03-02 05:24:59.855132"], ["updated_at", "2015-03-02 05:24:59.855132"], ["token", "vV9rWoaupVis_44TTbu3OQZEDA4qrEe82ui_0FGGYDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.859907"], ["updated_at", "2015-03-02 05:24:59.859907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7895f11c-c09c-11e4-ac1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '7897ec9c-c09c-11e4-841c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7895f11c-c09c-11e4-ac1b-705681abff85"], ["organization_id", "7897ec9c-c09c-11e4-841c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:59.864705"], ["updated_at", "2015-03-02 05:24:59.864705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7896bc5a-c09c-11e4-8435-705681abff85' AND "clubhouse_memberships"."organization_id" = '7897ec9c-c09c-11e4-841c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7896bc5a-c09c-11e4-8435-705681abff85"], ["organization_id", "7897ec9c-c09c-11e4-841c-705681abff85"], ["created_at", "2015-03-02 05:24:59.868189"], ["updated_at", "2015-03-02 05:24:59.868189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$TG3WQa/kF834t1V2cMH8b.NEKKYGh/P7EBgA1n1MOT696SXxn3po6"], ["created_at", "2015-03-02 05:24:59.880851"], ["updated_at", "2015-03-02 05:24:59.880851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$lSbH60ROW9jJiWa5TJJ2N.gRzFaEsXBPonQtjNYIrkto3gEgr29Pu"], ["created_at", "2015-03-02 05:24:59.885748"], ["updated_at", "2015-03-02 05:24:59.885748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.887625"], ["user_id", "789b0d96-c09c-11e4-a6c7-705681abff85"], ["created_at", "2015-03-02 05:24:59.889085"], ["updated_at", "2015-03-02 05:24:59.889085"], ["token", "WFWsNlKswDObV3nnEHnIC1PkHPOy4jIntdDDZqdhngg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.894326"], ["updated_at", "2015-03-02 05:24:59.894326"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '789b0d96-c09c-11e4-a6c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '789d2144-c09c-11e4-b246-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "789b0d96-c09c-11e4-a6c7-705681abff85"], ["organization_id", "789d2144-c09c-11e4-b246-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:59.900400"], ["updated_at", "2015-03-02 05:24:59.900400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '789bcf06-c09c-11e4-a6c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '789d2144-c09c-11e4-b246-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "789bcf06-c09c-11e4-a6c8-705681abff85"], ["organization_id", "789d2144-c09c-11e4-b246-705681abff85"], ["created_at", "2015-03-02 05:24:59.904588"], ["updated_at", "2015-03-02 05:24:59.904588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/789e19aa-c09c-11e4-907b-705681abff85" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"789e19aa-c09c-11e4-907b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:24:59.911919' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WFWsNlKswDObV3nnEHnIC1PkHPOy4jIntdDDZqdhngg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:24:59.913479"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:24:59.914506"], ["id", "789c5b2e-c09c-11e4-9743-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "789b0d96-c09c-11e4-a6c7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "789b0d96-c09c-11e4-a6c7-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "789b0d96-c09c-11e4-a6c7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "789b0d96-c09c-11e4-a6c7-705681abff85"], ["id", "789e19aa-c09c-11e4-907b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "789d2144-c09c-11e4-b246-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "789b0d96-c09c-11e4-a6c7-705681abff85"]] Completed 200 OK in 13ms (Views: 2.5ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$u4UQXfh5c39BkaOIf35WYOzCMX0OgDjutuuTg1h3CEzdfLq3Hpwlu"], ["created_at", "2015-03-02 05:24:59.932478"], ["updated_at", "2015-03-02 05:24:59.932478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$OvFWNOxDfHw69YPfSG.PUeyEZQx0XE8TmXMxriKaAgVBixVZna.3S"], ["created_at", "2015-03-02 05:24:59.937221"], ["updated_at", "2015-03-02 05:24:59.937221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.938794"], ["user_id", "78a2f39e-c09c-11e4-a0e5-705681abff85"], ["created_at", "2015-03-02 05:24:59.939582"], ["updated_at", "2015-03-02 05:24:59.939582"], ["token", "jEYxy6g3UBI0t8pXxj9pg04QzO2tAXtY5SOHI3b1GV8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.943378"], ["updated_at", "2015-03-02 05:24:59.943378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78a2f39e-c09c-11e4-a0e5-705681abff85' AND "clubhouse_memberships"."organization_id" = '78a4a310-c09c-11e4-8a4e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78a2f39e-c09c-11e4-a0e5-705681abff85"], ["organization_id", "78a4a310-c09c-11e4-8a4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:59.948373"], ["updated_at", "2015-03-02 05:24:59.948373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78a3a3b6-c09c-11e4-bf09-705681abff85' AND "clubhouse_memberships"."organization_id" = '78a4a310-c09c-11e4-8a4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78a3a3b6-c09c-11e4-bf09-705681abff85"], ["organization_id", "78a4a310-c09c-11e4-8a4e-705681abff85"], ["created_at", "2015-03-02 05:24:59.951930"], ["updated_at", "2015-03-02 05:24:59.951930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$S75aToWWVg4WZjLhxyoZ6OmNFl0jOcq/ptxF/hduujGvLxpJsUl/6"], ["created_at", "2015-03-02 05:24:59.956883"], ["updated_at", "2015-03-02 05:24:59.956883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.958553"], ["user_id", "78a6a340-c09c-11e4-b3b1-705681abff85"], ["created_at", "2015-03-02 05:24:59.959719"], ["updated_at", "2015-03-02 05:24:59.959719"], ["token", "15cZQVFp5xnG2uRPAYFzlA13g0US00xDqVxImanQ9Oc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '78a4a310-c09c-11e4-8a4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "78a4a310-c09c-11e4-8a4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:59.964017"], ["updated_at", "2015-03-02 05:24:59.964017"], ["token", "w_sPBmHCauXCAQLUBCUELfid9p8GHg6a-1NhIeiZWv0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:24:59 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$kWtX.WH8SxOc4t19L1EnCeHhsCXd72GyqSqTEu6VxgvoY8eJuJgtm"], ["created_at", "2015-03-02 05:24:59.975871"], ["updated_at", "2015-03-02 05:24:59.975871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$I51uvv1YibSPVIgNcOEa5ubL/8a9lGS6nJkfEFn9wpSHZDss/8pk6"], ["created_at", "2015-03-02 05:24:59.980472"], ["updated_at", "2015-03-02 05:24:59.980472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.982160"], ["user_id", "78a98b64-c09c-11e4-9f4a-705681abff85"], ["created_at", "2015-03-02 05:24:59.983035"], ["updated_at", "2015-03-02 05:24:59.983035"], ["token", "RwhWT9BZDrjggeZSTDg3OuyJbJ4VRIOuyk_j4kn5zQ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:24:59.986563"], ["updated_at", "2015-03-02 05:24:59.986563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78a98b64-c09c-11e4-9f4a-705681abff85' AND "clubhouse_memberships"."organization_id" = '78ab2906-c09c-11e4-aa2c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78a98b64-c09c-11e4-9f4a-705681abff85"], ["organization_id", "78ab2906-c09c-11e4-aa2c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:24:59.989947"], ["updated_at", "2015-03-02 05:24:59.989947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78aa3dd4-c09c-11e4-81d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '78ab2906-c09c-11e4-aa2c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78aa3dd4-c09c-11e4-81d7-705681abff85"], ["organization_id", "78ab2906-c09c-11e4-aa2c-705681abff85"], ["created_at", "2015-03-02 05:24:59.993625"], ["updated_at", "2015-03-02 05:24:59.993625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$wfAv8jbdOoorx8TUyeJZc.El96CNL03H1034dthBMpZiwudAgLBs6"], ["created_at", "2015-03-02 05:24:59.998189"], ["updated_at", "2015-03-02 05:24:59.998189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:24:59.999781"], ["user_id", "78acf150-c09c-11e4-849a-705681abff85"], ["created_at", "2015-03-02 05:25:00.000563"], ["updated_at", "2015-03-02 05:25:00.000563"], ["token", "txltFjqdlNTGqdZcWo_7hoIE0RxkBx70d2YxPI-DPaI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '78ab2906-c09c-11e4-aa2c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "78ab2906-c09c-11e4-aa2c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.005533"], ["updated_at", "2015-03-02 05:25:00.005533"], ["token", "NsJHs0AnWTteeMEdhDPpmh332NaiXPdR1HnS-PKV8C8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:25:00 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"NsJHs0AnWTteeMEdhDPpmh332NaiXPdR1HnS-PKV8C8", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:25:00.012210' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "txltFjqdlNTGqdZcWo_7hoIE0RxkBx70d2YxPI-DPaI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:25:00.014211"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:25:00.015404"], ["id", "78ad756c-c09c-11e4-bd49-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78acf150-c09c-11e4-849a-705681abff85"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78acf150-c09c-11e4-849a-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "NsJHs0AnWTteeMEdhDPpmh332NaiXPdR1HnS-PKV8C8"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "78ab2906-c09c-11e4-aa2c-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "78ab2906-c09c-11e4-aa2c-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78acf150-c09c-11e4-849a-705681abff85' AND "clubhouse_memberships"."organization_id" = '78ab2906-c09c-11e4-aa2c-705681abff85') LIMIT 1 SQL (83.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78acf150-c09c-11e4-849a-705681abff85"], ["admin", "t"], ["organization_id", "78ab2906-c09c-11e4-aa2c-705681abff85"], ["created_at", "2015-03-02 05:25:00.045226"], ["updated_at", "2015-03-02 05:25:00.045226"]] SQL (0.8ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "78ae21a6-c09c-11e4-bfb0-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 127ms (Views: 2.4ms | ActiveRecord: 87.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$lm0hixDR.812EWLq.Om/u.x6dEd/tdH2QO4L6EPA5ja3FSODFoOr6"], ["created_at", "2015-03-02 05:25:00.150892"], ["updated_at", "2015-03-02 05:25:00.150892"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$FIR/cvNaCe/FQJxrDlnWMeHnXvEAgrKblsCJZZ2feHffwbzPQlp0a"], ["created_at", "2015-03-02 05:25:00.160667"], ["updated_at", "2015-03-02 05:25:00.160667"]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:25:00.167483"], ["user_id", "78c47942-c09c-11e4-8dd7-705681abff85"], ["created_at", "2015-03-02 05:25:00.170674"], ["updated_at", "2015-03-02 05:25:00.170674"], ["token", "1fj0WWCiLPscyMx4Wc3praw8TZoChwDp--WR5e84LzM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:25:00.175423"], ["updated_at", "2015-03-02 05:25:00.175423"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78c47942-c09c-11e4-8dd7-705681abff85' AND "clubhouse_memberships"."organization_id" = '78c804d6-c09c-11e4-8110-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78c47942-c09c-11e4-8dd7-705681abff85"], ["organization_id", "78c804d6-c09c-11e4-8110-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.181288"], ["updated_at", "2015-03-02 05:25:00.181288"]]  (2.8ms) RELEASE SAVEPOINT active_record_1  (2.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78c5d972-c09c-11e4-852d-705681abff85' AND "clubhouse_memberships"."organization_id" = '78c804d6-c09c-11e4-8110-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78c5d972-c09c-11e4-852d-705681abff85"], ["organization_id", "78c804d6-c09c-11e4-8110-705681abff85"], ["created_at", "2015-03-02 05:25:00.196380"], ["updated_at", "2015-03-02 05:25:00.196380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$./42Vs44ee.nCN753U943.51.Moqd4fp0jpXFBH.C.S0/ZNGZW2YW"], ["created_at", "2015-03-02 05:25:00.201151"], ["updated_at", "2015-03-02 05:25:00.201151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:25:00.203421"], ["user_id", "78cbf1b8-c09c-11e4-8fdb-705681abff85"], ["created_at", "2015-03-02 05:25:00.204337"], ["updated_at", "2015-03-02 05:25:00.204337"], ["token", "4kRkzeFsf3Werrm0cgRVfxtq4POq6P7bOUuEt3XKcqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '78c804d6-c09c-11e4-8110-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "78c804d6-c09c-11e4-8110-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.209079"], ["updated_at", "2015-03-02 05:25:00.209079"], ["token", "J3P5R-wFQgUl-7NHyuO41zO3Bt0CcoTu1Av24fsSBbQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-01 21:25:00 -0800 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:25:00.216338' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4kRkzeFsf3Werrm0cgRVfxtq4POq6P7bOUuEt3XKcqk"]]  (0.9ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:25:00.261634"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:25:00.263591"], ["id", "78cc6f94-c09c-11e4-bdf1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78cbf1b8-c09c-11e4-8fdb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78cbf1b8-c09c-11e4-8fdb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 53ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (1.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$3WdPO2uZEl8OsYxoOZ2MaePrcD8v0tHvWPi.tnekYi6BcKNIQyeKC"], ["created_at", "2015-03-02 05:25:00.276093"], ["updated_at", "2015-03-02 05:25:00.276093"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$cLjnyHbGZN9r/sBgDnKVTO7IJ0fR3R9MIZHp5N7lu0ZQJewWPLIo2"], ["created_at", "2015-03-02 05:25:00.286907"], ["updated_at", "2015-03-02 05:25:00.286907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:25:00.289174"], ["user_id", "78d7c3ee-c09c-11e4-9082-705681abff85"], ["created_at", "2015-03-02 05:25:00.289972"], ["updated_at", "2015-03-02 05:25:00.289972"], ["token", "mXzmJEp2Z2aPYCCso1ZzPjL0209prrwNsb6XdZ9dKao"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:25:00.294176"], ["updated_at", "2015-03-02 05:25:00.294176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78d7c3ee-c09c-11e4-9082-705681abff85' AND "clubhouse_memberships"."organization_id" = '78da1cd4-c09c-11e4-a4eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78d7c3ee-c09c-11e4-9082-705681abff85"], ["organization_id", "78da1cd4-c09c-11e4-a4eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.297894"], ["updated_at", "2015-03-02 05:25:00.297894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78d913f2-c09c-11e4-a15c-705681abff85' AND "clubhouse_memberships"."organization_id" = '78da1cd4-c09c-11e4-a4eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78d913f2-c09c-11e4-a15c-705681abff85"], ["organization_id", "78da1cd4-c09c-11e4-a4eb-705681abff85"], ["created_at", "2015-03-02 05:25:00.301474"], ["updated_at", "2015-03-02 05:25:00.301474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-01 21:25:00 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:25:00.307733' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mXzmJEp2Z2aPYCCso1ZzPjL0209prrwNsb6XdZ9dKao"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:25:00.309380"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:25:00.310518"], ["id", "78d9808a-c09c-11e4-b17f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78d7c3ee-c09c-11e4-9082-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78d7c3ee-c09c-11e4-9082-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '78d7c3ee-c09c-11e4-9082-705681abff85' LIMIT 1 [["organization_id", "78da1cd4-c09c-11e4-a4eb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "78da1cd4-c09c-11e4-a4eb-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('78d7c3ee-c09c-11e4-9082-705681abff85', '78d913f2-c09c-11e4-a15c-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('78da1cd4-c09c-11e4-a4eb-705681abff85') Completed 200 OK in 16ms (Views: 4.2ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$MJ5BjwG9nJK.eTsTsyXPV.iNERj.YzaHDXgMUTTWaVuSI.x0bW2OW"], ["created_at", "2015-03-02 05:25:00.330848"], ["updated_at", "2015-03-02 05:25:00.330848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$F8o6GvmdsSefOzCsI/vr6u6mEpCdc.Odqwi9G3zF9CLPqnOpf9Ype"], ["created_at", "2015-03-02 05:25:00.337440"], ["updated_at", "2015-03-02 05:25:00.337440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:25:00.339661"], ["user_id", "78dfb4c8-c09c-11e4-8683-705681abff85"], ["created_at", "2015-03-02 05:25:00.340479"], ["updated_at", "2015-03-02 05:25:00.340479"], ["token", "xOJMZaUTuLB-TAfVdxr585BKbLjx7llYEA4FJfKlXLg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:25:00.344307"], ["updated_at", "2015-03-02 05:25:00.344307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78dfb4c8-c09c-11e4-8683-705681abff85' AND "clubhouse_memberships"."organization_id" = '78e1c1f0-c09c-11e4-ba9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78dfb4c8-c09c-11e4-8683-705681abff85"], ["organization_id", "78e1c1f0-c09c-11e4-ba9a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.348058"], ["updated_at", "2015-03-02 05:25:00.348058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78e0c098-c09c-11e4-826b-705681abff85' AND "clubhouse_memberships"."organization_id" = '78e1c1f0-c09c-11e4-ba9a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78e0c098-c09c-11e4-826b-705681abff85"], ["organization_id", "78e1c1f0-c09c-11e4-ba9a-705681abff85"], ["created_at", "2015-03-02 05:25:00.351512"], ["updated_at", "2015-03-02 05:25:00.351512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:25:00 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$I7C0T94F1VNgP7pWb1dAkOvAF/TFGGMpMJV333bOe/n26sJagdJSu"], ["created_at", "2015-03-02 05:25:00.362563"], ["updated_at", "2015-03-02 05:25:00.362563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$bJMIUmVkCC7L0GAEGvd1GevnXC42jnW0Lngtix75KYR85EDG3zsi2"], ["created_at", "2015-03-02 05:25:00.367175"], ["updated_at", "2015-03-02 05:25:00.367175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:25:00.368883"], ["user_id", "78e48fc0-c09c-11e4-ab53-705681abff85"], ["created_at", "2015-03-02 05:25:00.369784"], ["updated_at", "2015-03-02 05:25:00.369784"], ["token", "nEKTNVLRvX7v9jMa2YEyISAZUhL6SX3vUA-AVItKXro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:25:00.373233"], ["updated_at", "2015-03-02 05:25:00.373233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78e48fc0-c09c-11e4-ab53-705681abff85' AND "clubhouse_memberships"."organization_id" = '78e63c30-c09c-11e4-8b47-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78e48fc0-c09c-11e4-ab53-705681abff85"], ["organization_id", "78e63c30-c09c-11e4-8b47-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.377150"], ["updated_at", "2015-03-02 05:25:00.377150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78e5430c-c09c-11e4-ba87-705681abff85' AND "clubhouse_memberships"."organization_id" = '78e63c30-c09c-11e4-8b47-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78e5430c-c09c-11e4-ba87-705681abff85"], ["organization_id", "78e63c30-c09c-11e4-8b47-705681abff85"], ["created_at", "2015-03-02 05:25:00.381576"], ["updated_at", "2015-03-02 05:25:00.381576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/78e77b04-c09c-11e4-980c-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:25:00 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"78e77b04-c09c-11e4-980c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:25:00.387301' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nEKTNVLRvX7v9jMa2YEyISAZUhL6SX3vUA-AVItKXro"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:25:00.388706"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:25:00.389662"], ["id", "78e5aaf4-c09c-11e4-9ac8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78e48fc0-c09c-11e4-ab53-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78e48fc0-c09c-11e4-ab53-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '78e48fc0-c09c-11e4-ab53-705681abff85' LIMIT 1 [["organization_id", "78e63c30-c09c-11e4-8b47-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "78e63c30-c09c-11e4-8b47-705681abff85"], ["id", "78e77b04-c09c-11e4-980c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78e5430c-c09c-11e4-ba87-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "78e77b04-c09c-11e4-980c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$f0l5accO0NkPqlFdrtJ8i.M2x5956DFGU/D6xeVjyNwt4/5mTGjze"], ["created_at", "2015-03-02 05:25:00.404725"], ["updated_at", "2015-03-02 05:25:00.404725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$28hyhjYvtkzOXEL6mcGMI.V.IMOoLmsPQvZYh/Ln1i6YP5RxB7VVO"], ["created_at", "2015-03-02 05:25:00.409186"], ["updated_at", "2015-03-02 05:25:00.409186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:25:00.410892"], ["user_id", "78eafc20-c09c-11e4-b26f-705681abff85"], ["created_at", "2015-03-02 05:25:00.411674"], ["updated_at", "2015-03-02 05:25:00.411674"], ["token", "HSa5T4FMSiE-l19KwRofjCKxFE8IwmTtcEO443As83U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:25:00.415674"], ["updated_at", "2015-03-02 05:25:00.415674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78eafc20-c09c-11e4-b26f-705681abff85' AND "clubhouse_memberships"."organization_id" = '78eca62e-c09c-11e4-aa26-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78eafc20-c09c-11e4-b26f-705681abff85"], ["organization_id", "78eca62e-c09c-11e4-aa26-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.419457"], ["updated_at", "2015-03-02 05:25:00.419457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78ebab70-c09c-11e4-bb07-705681abff85' AND "clubhouse_memberships"."organization_id" = '78eca62e-c09c-11e4-aa26-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78ebab70-c09c-11e4-bb07-705681abff85"], ["organization_id", "78eca62e-c09c-11e4-aa26-705681abff85"], ["created_at", "2015-03-02 05:25:00.423079"], ["updated_at", "2015-03-02 05:25:00.423079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/78ed4778-c09c-11e4-936f-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:25:00 -0800 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"78ed4778-c09c-11e4-936f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:25:00.428503' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HSa5T4FMSiE-l19KwRofjCKxFE8IwmTtcEO443As83U"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:25:00.430064"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:25:00.431578"], ["id", "78ec0fd4-c09c-11e4-b5bf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78eafc20-c09c-11e4-b26f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78eafc20-c09c-11e4-b26f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '78eafc20-c09c-11e4-b26f-705681abff85' LIMIT 1 [["organization_id", "78eca62e-c09c-11e4-aa26-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "78eca62e-c09c-11e4-aa26-705681abff85"], ["id", "78ed4778-c09c-11e4-936f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78eafc20-c09c-11e4-b26f-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$L84DvpxhaItzMUmL0CQWNuuNrBTDk45GE1IhGqHYo3wdFNptUYECS"], ["created_at", "2015-03-02 05:25:00.444711"], ["updated_at", "2015-03-02 05:25:00.444711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$JzKAYNRmsCPRzLzTQCcH9ub8hBwIQWaQcdbZD45SDfhJoiy.wzc2K"], ["created_at", "2015-03-02 05:25:00.450405"], ["updated_at", "2015-03-02 05:25:00.450405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:25:00.452110"], ["user_id", "78f11722-c09c-11e4-ba3f-705681abff85"], ["created_at", "2015-03-02 05:25:00.452883"], ["updated_at", "2015-03-02 05:25:00.452883"], ["token", "RKJ36qES1C40UB2JcQtEvt2B8Ub2uERFDG59rptf3zs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:25:00.457299"], ["updated_at", "2015-03-02 05:25:00.457299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78f11722-c09c-11e4-ba3f-705681abff85' AND "clubhouse_memberships"."organization_id" = '78f300dc-c09c-11e4-aaea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78f11722-c09c-11e4-ba3f-705681abff85"], ["organization_id", "78f300dc-c09c-11e4-aaea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.460784"], ["updated_at", "2015-03-02 05:25:00.460784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78f1f4e4-c09c-11e4-a76c-705681abff85' AND "clubhouse_memberships"."organization_id" = '78f300dc-c09c-11e4-aaea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78f1f4e4-c09c-11e4-a76c-705681abff85"], ["organization_id", "78f300dc-c09c-11e4-aaea-705681abff85"], ["created_at", "2015-03-02 05:25:00.464855"], ["updated_at", "2015-03-02 05:25:00.464855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-01 21:25:00 -0800 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:25:00.469776' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RKJ36qES1C40UB2JcQtEvt2B8Ub2uERFDG59rptf3zs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:25:00.471216"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:25:00.472158"], ["id", "78f258bc-c09c-11e4-9b3e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78f11722-c09c-11e4-ba3f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78f11722-c09c-11e4-ba3f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78f11722-c09c-11e4-ba3f-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "78f11722-c09c-11e4-ba3f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('78f11722-c09c-11e4-ba3f-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('78f300dc-c09c-11e4-aaea-705681abff85') Completed 200 OK in 12ms (Views: 3.7ms | ActiveRecord: 2.0ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$yCic02IfcEdOzfqXm3vmeesa1XIETOMZRQPDkC3ksn24QH.IAQjT."], ["created_at", "2015-03-02 05:25:00.489971"], ["updated_at", "2015-03-02 05:25:00.489971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$RFfLqGV4qh9466jnP52CMu0SaywIxz1ENB1S6/w0mR9rmxfIlTRwG"], ["created_at", "2015-03-02 05:25:00.494908"], ["updated_at", "2015-03-02 05:25:00.494908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:25:00.496782"], ["user_id", "78f802b2-c09c-11e4-b458-705681abff85"], ["created_at", "2015-03-02 05:25:00.497755"], ["updated_at", "2015-03-02 05:25:00.497755"], ["token", "uTN8g_Nu5l3DzsVVlgwz22HfY6Qs7lOueBaxGpgZ7gM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:25:00.502587"], ["updated_at", "2015-03-02 05:25:00.502587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78f802b2-c09c-11e4-b458-705681abff85' AND "clubhouse_memberships"."organization_id" = '78f9ec8a-c09c-11e4-bb56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78f802b2-c09c-11e4-b458-705681abff85"], ["organization_id", "78f9ec8a-c09c-11e4-bb56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.506246"], ["updated_at", "2015-03-02 05:25:00.506246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78f8bc70-c09c-11e4-b016-705681abff85' AND "clubhouse_memberships"."organization_id" = '78f9ec8a-c09c-11e4-bb56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78f8bc70-c09c-11e4-b016-705681abff85"], ["organization_id", "78f9ec8a-c09c-11e4-bb56-705681abff85"], ["created_at", "2015-03-02 05:25:00.509548"], ["updated_at", "2015-03-02 05:25:00.509548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-01 21:25:00 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$IV9OtTvdEXSvWnE7.ouBLO/R.nag2uE2UVODVrBQnNSIWfsMj1Qfa"], ["created_at", "2015-03-02 05:25:00.520021"], ["updated_at", "2015-03-02 05:25:00.520021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$1nnvn75tgNap8Pcf.i3JBearED9ut11ss.4DorJPCyFMk/RW/gXEO"], ["created_at", "2015-03-02 05:25:00.524589"], ["updated_at", "2015-03-02 05:25:00.524589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:25:00.526247"], ["user_id", "78fc9476-c09c-11e4-aedd-705681abff85"], ["created_at", "2015-03-02 05:25:00.527030"], ["updated_at", "2015-03-02 05:25:00.527030"], ["token", "NRQfnmZoh7kwQLpi14hHi05u0S4xZUTRcnP7z9-jXL8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:25:00.530597"], ["updated_at", "2015-03-02 05:25:00.530597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78fc9476-c09c-11e4-aedd-705681abff85' AND "clubhouse_memberships"."organization_id" = '78fe2fb6-c09c-11e4-b87b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78fc9476-c09c-11e4-aedd-705681abff85"], ["organization_id", "78fe2fb6-c09c-11e4-b87b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.534702"], ["updated_at", "2015-03-02 05:25:00.534702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78fd4632-c09c-11e4-a88e-705681abff85' AND "clubhouse_memberships"."organization_id" = '78fe2fb6-c09c-11e4-b87b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78fd4632-c09c-11e4-a88e-705681abff85"], ["organization_id", "78fe2fb6-c09c-11e4-b87b-705681abff85"], ["created_at", "2015-03-02 05:25:00.538048"], ["updated_at", "2015-03-02 05:25:00.538048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/78ff5062-c09c-11e4-83c8-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:25:00 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"78ff5062-c09c-11e4-83c8-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:25:00.542937' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NRQfnmZoh7kwQLpi14hHi05u0S4xZUTRcnP7z9-jXL8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:25:00.544416"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:25:00.545359"], ["id", "78fda8b6-c09c-11e4-ae95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78fc9476-c09c-11e4-aedd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "78fc9476-c09c-11e4-aedd-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '78fc9476-c09c-11e4-aedd-705681abff85' LIMIT 1 [["organization_id", "78fe2fb6-c09c-11e4-b87b-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "78fe2fb6-c09c-11e4-b87b-705681abff85"], ["id", "78ff5062-c09c-11e4-83c8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78fd4632-c09c-11e4-a88e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "78fe2fb6-c09c-11e4-b87b-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78fd4632-c09c-11e4-a88e-705681abff85' AND "clubhouse_memberships"."id" != '78ff5062-c09c-11e4-83c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '78fe2fb6-c09c-11e4-b87b-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-02 05:25:00.558375"], ["id", "78ff5062-c09c-11e4-83c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.1ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$s6n.39xHJqyehE9G39pZ5OZ99Oh6PqAbJQTqPKc//9EZg70aiN93q"], ["created_at", "2015-03-02 05:25:00.567236"], ["updated_at", "2015-03-02 05:25:00.567236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$OY414NAfu4Olcf78t3PSouXNLj5Dm54gsl/XwJs1.FdcroXbugYx."], ["created_at", "2015-03-02 05:25:00.571671"], ["updated_at", "2015-03-02 05:25:00.571671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-02 05:25:00.573164"], ["user_id", "7903c75a-c09c-11e4-ac7a-705681abff85"], ["created_at", "2015-03-02 05:25:00.573921"], ["updated_at", "2015-03-02 05:25:00.573921"], ["token", "9-crvvFWD55hYSpz7Pu9yIvvRfhFqPgQVx5EZP6Wzo8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-02 05:25:00.577139"], ["updated_at", "2015-03-02 05:25:00.577139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7903c75a-c09c-11e4-ac7a-705681abff85' AND "clubhouse_memberships"."organization_id" = '79054576-c09c-11e4-82f1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7903c75a-c09c-11e4-ac7a-705681abff85"], ["organization_id", "79054576-c09c-11e4-82f1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-02 05:25:00.580531"], ["updated_at", "2015-03-02 05:25:00.580531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '790471f0-c09c-11e4-9716-705681abff85' AND "clubhouse_memberships"."organization_id" = '79054576-c09c-11e4-82f1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "790471f0-c09c-11e4-9716-705681abff85"], ["organization_id", "79054576-c09c-11e4-82f1-705681abff85"], ["created_at", "2015-03-02 05:25:00.584378"], ["updated_at", "2015-03-02 05:25:00.584378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/7905d0a4-c09c-11e4-b10d-705681abff85?organization=org" for 127.0.0.1 at 2015-03-01 21:25:00 -0800 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"7905d0a4-c09c-11e4-b10d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-02-16 05:25:00.600358' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9-crvvFWD55hYSpz7Pu9yIvvRfhFqPgQVx5EZP6Wzo8"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-02 05:25:00.601868"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-02 05:25:00.603713"], ["id", "7904ce02-c09c-11e4-b9a0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7903c75a-c09c-11e4-ac7a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7903c75a-c09c-11e4-ac7a-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7903c75a-c09c-11e4-ac7a-705681abff85' LIMIT 1 [["organization_id", "79054576-c09c-11e4-82f1-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "79054576-c09c-11e4-82f1-705681abff85"], ["id", "7905d0a4-c09c-11e4-b10d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7903c75a-c09c-11e4-ac7a-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (29.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (3.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:06.728719"], ["updated_at", "2015-03-17 04:26:06.728719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bae19d42-cc5d-11e4-9905-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "bae19d42-cc5d-11e4-9905-705681abff85"], ["created_at", "2015-03-17 04:26:06.738066"], ["updated_at", "2015-03-17 04:26:06.738066"], ["token", "hDKxifDjniKM3nOy_fFhx7PpvIgFEfIJfW1dsaWHs3Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (1.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bae19d42-cc5d-11e4-9905-705681abff85"]] Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bae19d42-cc5d-11e4-9905-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bae19d42-cc5d-11e4-9905-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bae19d42-cc5d-11e4-9905-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:06.775982"], ["updated_at", "2015-03-17 04:26:06.775982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bae850e2-cc5d-11e4-a3a9-705681abff85') LIMIT 1 SQL (5.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "bae850e2-cc5d-11e4-a3a9-705681abff85"], ["created_at", "2015-03-17 04:26:06.779743"], ["updated_at", "2015-03-17 04:26:06.779743"], ["token", "-050_ohicm1VXVpv9mw2ePWmG7HcfF5vDRz8BTCy9v4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (19.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (5.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$FFxXzEzKx0/iGY9aBAy/fuieDe7dyQC1j/KIj1Z1nuq43eBj6SF/."], ["created_at", "2015-03-17 04:26:06.829685"], ["updated_at", "2015-03-17 04:26:06.829685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ngDuMmzyHY/t4tqpEKqus.E8n2jfQXVJh8ZDJKCO49qPNGFo8.l/q"], ["created_at", "2015-03-17 04:26:06.839629"], ["updated_at", "2015-03-17 04:26:06.839629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (5.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:06.847907"], ["user_id", "baf0871c-cc5d-11e4-a062-705681abff85"], ["created_at", "2015-03-17 04:26:06.849847"], ["updated_at", "2015-03-17 04:26:06.849847"], ["token", "yQ1MYfVWCO1ywAEhqgK4NE8bRl6t8QLV0HR9cbNTx0I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:06.859980"], ["updated_at", "2015-03-17 04:26:06.859980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (26.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baf0871c-cc5d-11e4-a062-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baf51c82-cc5d-11e4-b64c-705681abff85') LIMIT 1 SQL (16.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "baf0871c-cc5d-11e4-a062-705681abff85"], ["organization_id", "baf51c82-cc5d-11e4-b64c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:06.897505"], ["updated_at", "2015-03-17 04:26:06.897505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baf1fc96-cc5d-11e4-829c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baf51c82-cc5d-11e4-b64c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "baf1fc96-cc5d-11e4-829c-705681abff85"], ["organization_id", "baf51c82-cc5d-11e4-b64c-705681abff85"], ["created_at", "2015-03-17 04:26:06.917830"], ["updated_at", "2015-03-17 04:26:06.917830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships?organization=org" for 127.0.0.1 at 2015-03-16 21:26:06 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:06.943896' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yQ1MYfVWCO1ywAEhqgK4NE8bRl6t8QLV0HR9cbNTx0I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:06.956501"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:06.957747"], ["id", "baf3b0ea-cc5d-11e4-b5cb-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "baf0871c-cc5d-11e4-a062-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "baf0871c-cc5d-11e4-a062-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'baf0871c-cc5d-11e4-a062-705681abff85' LIMIT 1 [["organization_id", "baf51c82-cc5d-11e4-b64c-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "baf51c82-cc5d-11e4-b64c-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('baf0871c-cc5d-11e4-a062-705681abff85', 'baf1fc96-cc5d-11e4-829c-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('baf51c82-cc5d-11e4-b64c-705681abff85') Completed 200 OK in 51ms (Views: 14.7ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$7minC4O8cN3NMwvwysljbOAKAoCQy6YgUraQSL1fjmfS5sGqn04Uu"], ["created_at", "2015-03-17 04:26:07.003955"], ["updated_at", "2015-03-17 04:26:07.003955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$4ePL0MjxT/xbcq1JgH82TeqlCxleMF8X7ujmCd8cw6u5aoOQy/XD6"], ["created_at", "2015-03-17 04:26:07.008446"], ["updated_at", "2015-03-17 04:26:07.008446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.010065"], ["user_id", "bb0b1186-cc5d-11e4-a776-705681abff85"], ["created_at", "2015-03-17 04:26:07.011178"], ["updated_at", "2015-03-17 04:26:07.011178"], ["token", "yuov8W6e9bIuXPV2AjpklLWlPbFMFSzrEcp1uS9pfns"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.015402"], ["updated_at", "2015-03-17 04:26:07.015402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0b1186-cc5d-11e4-a776-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0ccd50-cc5d-11e4-a105-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb0b1186-cc5d-11e4-a776-705681abff85"], ["organization_id", "bb0ccd50-cc5d-11e4-a105-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.019268"], ["updated_at", "2015-03-17 04:26:07.019268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0bbd16-cc5d-11e4-886b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0ccd50-cc5d-11e4-a105-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb0bbd16-cc5d-11e4-886b-705681abff85"], ["organization_id", "bb0ccd50-cc5d-11e4-a105-705681abff85"], ["created_at", "2015-03-17 04:26:07.022799"], ["updated_at", "2015-03-17 04:26:07.022799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$AQw/Movo90CFJ7f3ANB6OO7FP2Riuodw3/Arpo1whtzQq2j6EYpAW"], ["created_at", "2015-03-17 04:26:07.035504"], ["updated_at", "2015-03-17 04:26:07.035504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$bdkd7UDO6SC3IRbqJiIRzu1GHnYoTZUjwSlMBC0DD7N8hhirARdoe"], ["created_at", "2015-03-17 04:26:07.040447"], ["updated_at", "2015-03-17 04:26:07.040447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.044238"], ["user_id", "bb0fe6de-cc5d-11e4-b155-705681abff85"], ["created_at", "2015-03-17 04:26:07.045106"], ["updated_at", "2015-03-17 04:26:07.045106"], ["token", "S-m1Hy04D5YuTzcjc1zM7dMXFgOA5UkdNSkDrAZqYDU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.048961"], ["updated_at", "2015-03-17 04:26:07.048961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0fe6de-cc5d-11e4-b155-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb11ebdc-cc5d-11e4-9508-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb0fe6de-cc5d-11e4-b155-705681abff85"], ["organization_id", "bb11ebdc-cc5d-11e4-9508-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.052406"], ["updated_at", "2015-03-17 04:26:07.052406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb10a6aa-cc5d-11e4-89d0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb11ebdc-cc5d-11e4-9508-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb10a6aa-cc5d-11e4-89d0-705681abff85"], ["organization_id", "bb11ebdc-cc5d-11e4-9508-705681abff85"], ["created_at", "2015-03-17 04:26:07.056261"], ["updated_at", "2015-03-17 04:26:07.056261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/bb13081e-cc5d-11e4-a4ca-705681abff85?organization=org" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"bb13081e-cc5d-11e4-a4ca-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:07.061513' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S-m1Hy04D5YuTzcjc1zM7dMXFgOA5UkdNSkDrAZqYDU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:07.063225"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:07.064368"], ["id", "bb1167b6-cc5d-11e4-abcb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb0fe6de-cc5d-11e4-b155-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb0fe6de-cc5d-11e4-b155-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb0fe6de-cc5d-11e4-b155-705681abff85' LIMIT 1 [["organization_id", "bb11ebdc-cc5d-11e4-9508-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bb11ebdc-cc5d-11e4-9508-705681abff85"], ["id", "bb13081e-cc5d-11e4-a4ca-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb10a6aa-cc5d-11e4-89d0-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb11ebdc-cc5d-11e4-9508-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb10a6aa-cc5d-11e4-89d0-705681abff85' AND "clubhouse_memberships"."id" != 'bb13081e-cc5d-11e4-a4ca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb11ebdc-cc5d-11e4-9508-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-17 04:26:07.114989"], ["id", "bb13081e-cc5d-11e4-a4ca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 57ms (Views: 1.2ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$mKiDVfBQnT6K0XXuGZHuge9xAO15myTdDPShw5aAAtq.hkGPYnhFS"], ["created_at", "2015-03-17 04:26:07.124971"], ["updated_at", "2015-03-17 04:26:07.124971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$WDiOhPHMzcWGbqFjfo50uur1Arnq5seKMZtSGj7TvSwFG3gFuJhVq"], ["created_at", "2015-03-17 04:26:07.129298"], ["updated_at", "2015-03-17 04:26:07.129298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.130913"], ["user_id", "bb1d8a8c-cc5d-11e4-8771-705681abff85"], ["created_at", "2015-03-17 04:26:07.131730"], ["updated_at", "2015-03-17 04:26:07.131730"], ["token", "7Iik-QZENhXA2939578XA9sDIszLsKR4EomF7VTrtgE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.135385"], ["updated_at", "2015-03-17 04:26:07.135385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1d8a8c-cc5d-11e4-8771-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1f1b86-cc5d-11e4-88ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb1d8a8c-cc5d-11e4-8771-705681abff85"], ["organization_id", "bb1f1b86-cc5d-11e4-88ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.138684"], ["updated_at", "2015-03-17 04:26:07.138684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1e2eba-cc5d-11e4-b8c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1f1b86-cc5d-11e4-88ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb1e2eba-cc5d-11e4-b8c2-705681abff85"], ["organization_id", "bb1f1b86-cc5d-11e4-88ae-705681abff85"], ["created_at", "2015-03-17 04:26:07.141907"], ["updated_at", "2015-03-17 04:26:07.141907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/bb1f9b4c-cc5d-11e4-9d0f-705681abff85?organization=org" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"bb1f9b4c-cc5d-11e4-9d0f-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:07.149731' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7Iik-QZENhXA2939578XA9sDIszLsKR4EomF7VTrtgE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:07.151399"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:07.152645"], ["id", "bb1e945e-cc5d-11e4-beb6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb1d8a8c-cc5d-11e4-8771-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb1d8a8c-cc5d-11e4-8771-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb1d8a8c-cc5d-11e4-8771-705681abff85' LIMIT 1 [["organization_id", "bb1f1b86-cc5d-11e4-88ae-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bb1f1b86-cc5d-11e4-88ae-705681abff85"], ["id", "bb1f9b4c-cc5d-11e4-9d0f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb1d8a8c-cc5d-11e4-8771-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$A44C4Mws7PJqrQRmRoZszeG1AUELPjNJ9jIR3xrX5pBKuPxrmatGa"], ["created_at", "2015-03-17 04:26:07.166800"], ["updated_at", "2015-03-17 04:26:07.166800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$mOwoj1Op4ltEz3cYvBcRsOzAwJ1HjnrkXKRPM6tk1AL18xBlTSD5q"], ["created_at", "2015-03-17 04:26:07.171868"], ["updated_at", "2015-03-17 04:26:07.171868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.173517"], ["user_id", "bb23ea9e-cc5d-11e4-ada4-705681abff85"], ["created_at", "2015-03-17 04:26:07.174340"], ["updated_at", "2015-03-17 04:26:07.174340"], ["token", "sef61V-8Cg_47Pq7O8XhKK7pMMpfhcNfztpwbfKzcqs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.178020"], ["updated_at", "2015-03-17 04:26:07.178020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb23ea9e-cc5d-11e4-ada4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb25a4ba-cc5d-11e4-80f1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb23ea9e-cc5d-11e4-ada4-705681abff85"], ["organization_id", "bb25a4ba-cc5d-11e4-80f1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.182508"], ["updated_at", "2015-03-17 04:26:07.182508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb24ad6c-cc5d-11e4-a74b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb25a4ba-cc5d-11e4-80f1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb24ad6c-cc5d-11e4-a74b-705681abff85"], ["organization_id", "bb25a4ba-cc5d-11e4-80f1-705681abff85"], ["created_at", "2015-03-17 04:26:07.186980"], ["updated_at", "2015-03-17 04:26:07.186980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:07.193043' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sef61V-8Cg_47Pq7O8XhKK7pMMpfhcNfztpwbfKzcqs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:07.195219"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:07.196415"], ["id", "bb251482-cc5d-11e4-8ac8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb23ea9e-cc5d-11e4-ada4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb23ea9e-cc5d-11e4-ada4-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb23ea9e-cc5d-11e4-ada4-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "bb23ea9e-cc5d-11e4-ada4-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('bb23ea9e-cc5d-11e4-ada4-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('bb25a4ba-cc5d-11e4-80f1-705681abff85') Completed 200 OK in 16ms (Views: 4.0ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$c9TrGUWRWSBevSYqwtnFuuhzeV2asriYMBA9PcgWjrxyPrReMZani"], ["created_at", "2015-03-17 04:26:07.215793"], ["updated_at", "2015-03-17 04:26:07.215793"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$bsZyeW.CTj3A932CzQfrfuarAQYQFzJGVykWH9F.oauJL3ke7Ojqu"], ["created_at", "2015-03-17 04:26:07.221326"], ["updated_at", "2015-03-17 04:26:07.221326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.223048"], ["user_id", "bb2b6724-cc5d-11e4-a4b7-705681abff85"], ["created_at", "2015-03-17 04:26:07.224088"], ["updated_at", "2015-03-17 04:26:07.224088"], ["token", "0us8lxeBVR0-yQnCPZchHOBz8i0mZ_GUclSwuQrhpfg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.228218"], ["updated_at", "2015-03-17 04:26:07.228218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb2b6724-cc5d-11e4-a4b7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb2d4986-cc5d-11e4-96ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb2b6724-cc5d-11e4-a4b7-705681abff85"], ["organization_id", "bb2d4986-cc5d-11e4-96ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.231811"], ["updated_at", "2015-03-17 04:26:07.231811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb2c3d5c-cc5d-11e4-a599-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb2d4986-cc5d-11e4-96ce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb2c3d5c-cc5d-11e4-a599-705681abff85"], ["organization_id", "bb2d4986-cc5d-11e4-96ce-705681abff85"], ["created_at", "2015-03-17 04:26:07.235154"], ["updated_at", "2015-03-17 04:26:07.235154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1?organization=org" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$eh7/IQ23EtUfSiEXtO2yJOI9zrLcVUqJj7eYK3oZsqu15hbMg/Vt."], ["created_at", "2015-03-17 04:26:07.246209"], ["updated_at", "2015-03-17 04:26:07.246209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$mbC4p/vxPRTqh51FgYS0buywLEVFlPwZ3NOPbhy5KzLl0RqfgQkci"], ["created_at", "2015-03-17 04:26:07.251449"], ["updated_at", "2015-03-17 04:26:07.251449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.253224"], ["user_id", "bb301288-cc5d-11e4-8c94-705681abff85"], ["created_at", "2015-03-17 04:26:07.254263"], ["updated_at", "2015-03-17 04:26:07.254263"], ["token", "FS6M2NhDYSqlcGR8eSv02panYY9arZkrYdCzdNCASi8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.258085"], ["updated_at", "2015-03-17 04:26:07.258085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb301288-cc5d-11e4-8c94-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb31dbe0-cc5d-11e4-bad7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb301288-cc5d-11e4-8c94-705681abff85"], ["organization_id", "bb31dbe0-cc5d-11e4-bad7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.261945"], ["updated_at", "2015-03-17 04:26:07.261945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb30d2cc-cc5d-11e4-8daa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb31dbe0-cc5d-11e4-bad7-705681abff85') LIMIT 1 SQL (69.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb30d2cc-cc5d-11e4-8daa-705681abff85"], ["organization_id", "bb31dbe0-cc5d-11e4-bad7-705681abff85"], ["created_at", "2015-03-17 04:26:07.265095"], ["updated_at", "2015-03-17 04:26:07.265095"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bb3c6204-cc5d-11e4-aedb-705681abff85?organization=org" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"organization"=>"org", "id"=>"bb3c6204-cc5d-11e4-aedb-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:07.344199' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FS6M2NhDYSqlcGR8eSv02panYY9arZkrYdCzdNCASi8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:07.346648"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:07.347890"], ["id", "bb3149c8-cc5d-11e4-ae46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb301288-cc5d-11e4-8c94-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb301288-cc5d-11e4-8c94-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb301288-cc5d-11e4-8c94-705681abff85' LIMIT 1 [["organization_id", "bb31dbe0-cc5d-11e4-bad7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bb31dbe0-cc5d-11e4-bad7-705681abff85"], ["id", "bb3c6204-cc5d-11e4-aedb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb31dbe0-cc5d-11e4-bad7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb30d2cc-cc5d-11e4-8daa-705681abff85"]] Completed 200 OK in 15ms (Views: 3.1ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$XjCahY3IDDg4ZPjuqhObeePh9OhvhTdK8viTi6R55nNaUEJYBkFm2"], ["created_at", "2015-03-17 04:26:07.366167"], ["updated_at", "2015-03-17 04:26:07.366167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$V91X3UbffHEVPsZ16U.HE.3TPtZD0gUPrTQOCBN3XS5udVXnLK4/G"], ["created_at", "2015-03-17 04:26:07.371213"], ["updated_at", "2015-03-17 04:26:07.371213"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.374140"], ["user_id", "bb425c2c-cc5d-11e4-888d-705681abff85"], ["created_at", "2015-03-17 04:26:07.375652"], ["updated_at", "2015-03-17 04:26:07.375652"], ["token", "TOP_cJAa6ADhzZgELj8bye0GdY4lPwL6styth-9rq_U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.386124"], ["updated_at", "2015-03-17 04:26:07.386124"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb425c2c-cc5d-11e4-888d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb45b3cc-cc5d-11e4-af15-705681abff85') LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb425c2c-cc5d-11e4-888d-705681abff85"], ["organization_id", "bb45b3cc-cc5d-11e4-af15-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.400220"], ["updated_at", "2015-03-17 04:26:07.400220"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb4329ea-cc5d-11e4-8be2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb45b3cc-cc5d-11e4-af15-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb4329ea-cc5d-11e4-8be2-705681abff85"], ["organization_id", "bb45b3cc-cc5d-11e4-af15-705681abff85"], ["created_at", "2015-03-17 04:26:07.411346"], ["updated_at", "2015-03-17 04:26:07.411346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$iBp3qRnRx0aS/edc15X51eBr.aDiBrvvaNiU4mEtqLOW8e.an1ErW"], ["created_at", "2015-03-17 04:26:07.421914"], ["updated_at", "2015-03-17 04:26:07.421914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$vxEaTC6j8mSNmU68tyTe7e7SXFaO03jZLWPaivVaJtJRtzXJD1Pd2"], ["created_at", "2015-03-17 04:26:07.426687"], ["updated_at", "2015-03-17 04:26:07.426687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.428360"], ["user_id", "bb4adbfe-cc5d-11e4-9f4d-705681abff85"], ["created_at", "2015-03-17 04:26:07.429215"], ["updated_at", "2015-03-17 04:26:07.429215"], ["token", "dGyuKXWytN9jvFYOr8k5bliF-AzrMBmvECWvsFYtm_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.432834"], ["updated_at", "2015-03-17 04:26:07.432834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb4adbfe-cc5d-11e4-9f4d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb4c7cf2-cc5d-11e4-9bce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb4adbfe-cc5d-11e4-9f4d-705681abff85"], ["organization_id", "bb4c7cf2-cc5d-11e4-9bce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.436575"], ["updated_at", "2015-03-17 04:26:07.436575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb4b9044-cc5d-11e4-a36a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb4c7cf2-cc5d-11e4-9bce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb4b9044-cc5d-11e4-a36a-705681abff85"], ["organization_id", "bb4c7cf2-cc5d-11e4-9bce-705681abff85"], ["created_at", "2015-03-17 04:26:07.440239"], ["updated_at", "2015-03-17 04:26:07.440239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bb4d14a0-cc5d-11e4-9d2f-705681abff85" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"bb4d14a0-cc5d-11e4-9d2f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:07.445894' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dGyuKXWytN9jvFYOr8k5bliF-AzrMBmvECWvsFYtm_c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:07.447545"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:07.449159"], ["id", "bb4bfb06-cc5d-11e4-a35b-705681abff85"]]  (1.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb4adbfe-cc5d-11e4-9f4d-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb4adbfe-cc5d-11e4-9f4d-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb4adbfe-cc5d-11e4-9f4d-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "bb4adbfe-cc5d-11e4-9f4d-705681abff85"], ["id", "bb4d14a0-cc5d-11e4-9d2f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb4c7cf2-cc5d-11e4-9bce-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb4adbfe-cc5d-11e4-9f4d-705681abff85"]] Completed 200 OK in 19ms (Views: 2.3ms | ActiveRecord: 4.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$/7HEOgx75ppbjxcd3TnA/.mks5fJu/FS/DEaF707OPohW6K7SYGsy"], ["created_at", "2015-03-17 04:26:07.474762"], ["updated_at", "2015-03-17 04:26:07.474762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$83ijb1k4ui4o50iuVhsefO8aITCwzXXPjHCZeW6.2ZKJdznQ0G.2m"], ["created_at", "2015-03-17 04:26:07.479434"], ["updated_at", "2015-03-17 04:26:07.479434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.481203"], ["user_id", "bb52ec54-cc5d-11e4-979c-705681abff85"], ["created_at", "2015-03-17 04:26:07.482081"], ["updated_at", "2015-03-17 04:26:07.482081"], ["token", "79IPia-KLnNyo5GInz6bK1V7io4lObuKzC60y_V03CM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.486313"], ["updated_at", "2015-03-17 04:26:07.486313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb52ec54-cc5d-11e4-979c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb54ac88-cc5d-11e4-8a99-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb52ec54-cc5d-11e4-979c-705681abff85"], ["organization_id", "bb54ac88-cc5d-11e4-8a99-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.489980"], ["updated_at", "2015-03-17 04:26:07.489980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb539b7c-cc5d-11e4-8210-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb54ac88-cc5d-11e4-8a99-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb539b7c-cc5d-11e4-8210-705681abff85"], ["organization_id", "bb54ac88-cc5d-11e4-8a99-705681abff85"], ["created_at", "2015-03-17 04:26:07.493559"], ["updated_at", "2015-03-17 04:26:07.493559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$NzmWxnV65zY764TEkahKX.Ks1KRd.D/fLCsTItd5hHLTqx2GuCX/S"], ["created_at", "2015-03-17 04:26:07.498414"], ["updated_at", "2015-03-17 04:26:07.498414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.500755"], ["user_id", "bb568b5c-cc5d-11e4-aa49-705681abff85"], ["created_at", "2015-03-17 04:26:07.501662"], ["updated_at", "2015-03-17 04:26:07.501662"], ["token", "H8Bu1smwBpHZ0mj0mwdZBZcXRRxRgXpgo6S3uFtFnvo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'bb54ac88-cc5d-11e4-8a99-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "bb54ac88-cc5d-11e4-8a99-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.507425"], ["updated_at", "2015-03-17 04:26:07.507425"], ["token", "w4zUgzchm9r89cuOwgj81L39-dGuKbsnAD_77xfwRvw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$N1Byo2XDCu9LcKbYmpLJoOxfb1fWSvr9P4.QEL1Hr5D/FFlrbmbuy"], ["created_at", "2015-03-17 04:26:07.520272"], ["updated_at", "2015-03-17 04:26:07.520272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$wUlDIx1ONzF6E2KojLl8IOlmBYddkZE9NcN86wMrGImYalXofsh1C"], ["created_at", "2015-03-17 04:26:07.525111"], ["updated_at", "2015-03-17 04:26:07.525111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.527032"], ["user_id", "bb59dbe0-cc5d-11e4-b3cd-705681abff85"], ["created_at", "2015-03-17 04:26:07.527929"], ["updated_at", "2015-03-17 04:26:07.527929"], ["token", "numPm9H9DK08fXiPUfp19_AlT8TkNNr5NmhmgAvKQpM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.532815"], ["updated_at", "2015-03-17 04:26:07.532815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb59dbe0-cc5d-11e4-b3cd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb5bc892-cc5d-11e4-8c17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb59dbe0-cc5d-11e4-b3cd-705681abff85"], ["organization_id", "bb5bc892-cc5d-11e4-8c17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.537094"], ["updated_at", "2015-03-17 04:26:07.537094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb5a942c-cc5d-11e4-b113-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb5bc892-cc5d-11e4-8c17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb5a942c-cc5d-11e4-b113-705681abff85"], ["organization_id", "bb5bc892-cc5d-11e4-8c17-705681abff85"], ["created_at", "2015-03-17 04:26:07.540769"], ["updated_at", "2015-03-17 04:26:07.540769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$MfFkFHItpFlYnNoN7W7cae795uQGlegd7juIdargAa7n6d6GlulAi"], ["created_at", "2015-03-17 04:26:07.545465"], ["updated_at", "2015-03-17 04:26:07.545465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.547190"], ["user_id", "bb5daefa-cc5d-11e4-bc39-705681abff85"], ["created_at", "2015-03-17 04:26:07.548063"], ["updated_at", "2015-03-17 04:26:07.548063"], ["token", "OxKAfj_a1EQ8F4rkheP-IF4DoJAYs6KBgXbSfuBOz6E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'bb5bc892-cc5d-11e4-8c17-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "bb5bc892-cc5d-11e4-8c17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.552704"], ["updated_at", "2015-03-17 04:26:07.552704"], ["token", "8i691_WoCBucnPkCpPpMi4921yCPUuX2-b5NzBZz_mA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"8i691_WoCBucnPkCpPpMi4921yCPUuX2-b5NzBZz_mA", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:07.558877' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OxKAfj_a1EQ8F4rkheP-IF4DoJAYs6KBgXbSfuBOz6E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:07.560963"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:07.562182"], ["id", "bb5e1e58-cc5d-11e4-8d7d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb5daefa-cc5d-11e4-bc39-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb5daefa-cc5d-11e4-bc39-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "8i691_WoCBucnPkCpPpMi4921yCPUuX2-b5NzBZz_mA"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb5bc892-cc5d-11e4-8c17-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb5bc892-cc5d-11e4-8c17-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb5daefa-cc5d-11e4-bc39-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb5bc892-cc5d-11e4-8c17-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb5daefa-cc5d-11e4-bc39-705681abff85"], ["admin", "t"], ["organization_id", "bb5bc892-cc5d-11e4-8c17-705681abff85"], ["created_at", "2015-03-17 04:26:07.583348"], ["updated_at", "2015-03-17 04:26:07.583348"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "bb5ed1d6-cc5d-11e4-bbda-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 29ms (Views: 1.5ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$UpoPE5MNG7FEOVwM9H3BxusxXxGhVYXYfUfGyaBIp70q93mlvtZZK"], ["created_at", "2015-03-17 04:26:07.595850"], ["updated_at", "2015-03-17 04:26:07.595850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$bYTb6vWeXPb2hu5sMQoyK.pTanFPvjGWwKEIdRFEeyw4cx.1.5Y6O"], ["created_at", "2015-03-17 04:26:07.600615"], ["updated_at", "2015-03-17 04:26:07.600615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.602477"], ["user_id", "bb656578-cc5d-11e4-a7c4-705681abff85"], ["created_at", "2015-03-17 04:26:07.603375"], ["updated_at", "2015-03-17 04:26:07.603375"], ["token", "QOpsJNzMi-N_Znj5NXocWXCXFkXs5h1v5jBOe59GZzg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.613496"], ["updated_at", "2015-03-17 04:26:07.613496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb656578-cc5d-11e4-a7c4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb682df8-cc5d-11e4-b28c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb656578-cc5d-11e4-a7c4-705681abff85"], ["organization_id", "bb682df8-cc5d-11e4-b28c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.621094"], ["updated_at", "2015-03-17 04:26:07.621094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb661b9e-cc5d-11e4-9209-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb682df8-cc5d-11e4-b28c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb661b9e-cc5d-11e4-9209-705681abff85"], ["organization_id", "bb682df8-cc5d-11e4-b28c-705681abff85"], ["created_at", "2015-03-17 04:26:07.628751"], ["updated_at", "2015-03-17 04:26:07.628751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$V9yAfL3aLiBydoSOHeqzKeUUWrgWUkNvGc3laCv9O5kaDTXtv8NAe"], ["created_at", "2015-03-17 04:26:07.639047"], ["updated_at", "2015-03-17 04:26:07.639047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.641980"], ["user_id", "bb6c0cfc-cc5d-11e4-81ae-705681abff85"], ["created_at", "2015-03-17 04:26:07.643532"], ["updated_at", "2015-03-17 04:26:07.643532"], ["token", "6YLSsDOvpkggsHVWqgl155NYJiOvfwNaxphLY3TnC0g"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'bb682df8-cc5d-11e4-b28c-705681abff85') LIMIT 1 SQL (4.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "bb682df8-cc5d-11e4-b28c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.657039"], ["updated_at", "2015-03-17 04:26:07.657039"], ["token", "qFvEaUYtVGCbwAcw_QysB5eD4J4d8hTCZn4Zspl1UjY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/memberships" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:07.666997' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6YLSsDOvpkggsHVWqgl155NYJiOvfwNaxphLY3TnC0g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:07.668713"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:07.669863"], ["id", "bb6cc9da-cc5d-11e4-b123-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb6c0cfc-cc5d-11e4-81ae-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb6c0cfc-cc5d-11e4-81ae-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$EQRX7xD1CRtFCyQ2ctXbfOnHbU59Rnl9ivkXnL0n38SXckvZt02ly"], ["created_at", "2015-03-17 04:26:07.682542"], ["updated_at", "2015-03-17 04:26:07.682542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$k9.NZGFOcEl4LNMlqjiJ1uS.2AahRwtGSCo96ynAvo./qlsNmhR3W"], ["created_at", "2015-03-17 04:26:07.687682"], ["updated_at", "2015-03-17 04:26:07.687682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.689440"], ["user_id", "bb72a558-cc5d-11e4-8270-705681abff85"], ["created_at", "2015-03-17 04:26:07.690476"], ["updated_at", "2015-03-17 04:26:07.690476"], ["token", "CnF3L0KaN85GZZw6UbFxdexRK-Jr67PeEf7Cgvls1hM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.694390"], ["updated_at", "2015-03-17 04:26:07.694390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb72a558-cc5d-11e4-8270-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb7467ee-cc5d-11e4-9d88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb72a558-cc5d-11e4-8270-705681abff85"], ["organization_id", "bb7467ee-cc5d-11e4-9d88-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.697879"], ["updated_at", "2015-03-17 04:26:07.697879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb73645c-cc5d-11e4-b048-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb7467ee-cc5d-11e4-9d88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb73645c-cc5d-11e4-b048-705681abff85"], ["organization_id", "bb7467ee-cc5d-11e4-9d88-705681abff85"], ["created_at", "2015-03-17 04:26:07.701187"], ["updated_at", "2015-03-17 04:26:07.701187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1?organization=name" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$enGf9CC39iD2QQb6LEETA.SolHrkvVbH7ngfk22BaHDX5oUAUmoby"], ["created_at", "2015-03-17 04:26:07.713142"], ["updated_at", "2015-03-17 04:26:07.713142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$bVxPFRESGUSttpcSKyn4V.NuqUszW3nP4bgPBKNhD.MkInGKINz1O"], ["created_at", "2015-03-17 04:26:07.718113"], ["updated_at", "2015-03-17 04:26:07.718113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.719863"], ["user_id", "bb77512a-cc5d-11e4-83bd-705681abff85"], ["created_at", "2015-03-17 04:26:07.720662"], ["updated_at", "2015-03-17 04:26:07.720662"], ["token", "Ozmv2DJ4uPemD2YSLUVM7PVEkr1AwVcGpQGFt2f9t38"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.724311"], ["updated_at", "2015-03-17 04:26:07.724311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb77512a-cc5d-11e4-83bd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb78f822-cc5d-11e4-9fd2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb77512a-cc5d-11e4-83bd-705681abff85"], ["organization_id", "bb78f822-cc5d-11e4-9fd2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.727830"], ["updated_at", "2015-03-17 04:26:07.727830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb7806ec-cc5d-11e4-ad91-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb78f822-cc5d-11e4-9fd2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb7806ec-cc5d-11e4-ad91-705681abff85"], ["organization_id", "bb78f822-cc5d-11e4-9fd2-705681abff85"], ["created_at", "2015-03-17 04:26:07.731808"], ["updated_at", "2015-03-17 04:26:07.731808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/bb7a1e1e-cc5d-11e4-9a36-705681abff85?organization=org" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"bb7a1e1e-cc5d-11e4-9a36-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:07.736999' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ozmv2DJ4uPemD2YSLUVM7PVEkr1AwVcGpQGFt2f9t38"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:07.738518"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:07.739571"], ["id", "bb787230-cc5d-11e4-bc56-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb77512a-cc5d-11e4-83bd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb77512a-cc5d-11e4-83bd-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb77512a-cc5d-11e4-83bd-705681abff85' LIMIT 1 [["organization_id", "bb78f822-cc5d-11e4-9fd2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bb78f822-cc5d-11e4-9fd2-705681abff85"], ["id", "bb7a1e1e-cc5d-11e4-9a36-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb7806ec-cc5d-11e4-ad91-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "bb7a1e1e-cc5d-11e4-9a36-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$s9jxeyMejJe71Jo1vSIobOm6EzzkIdbTIY1fMdDZk6l7pbFWs4EI2"], ["created_at", "2015-03-17 04:26:07.755062"], ["updated_at", "2015-03-17 04:26:07.755062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$76Td6N4XXTKcqbga6SnWaeoKzHZ/UtL8EPoRvUbsDEa08VN.F/uTm"], ["created_at", "2015-03-17 04:26:07.760149"], ["updated_at", "2015-03-17 04:26:07.760149"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:07.763310"], ["user_id", "bb7dabd8-cc5d-11e4-b68f-705681abff85"], ["created_at", "2015-03-17 04:26:07.764852"], ["updated_at", "2015-03-17 04:26:07.764852"], ["token", "4Q9TtZ6mpdUXcUBr4MehbBi7GSKAlHoF7GnRwP_SAlU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:07.769925"], ["updated_at", "2015-03-17 04:26:07.769925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb7dabd8-cc5d-11e4-b68f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb7fefc4-cc5d-11e4-8f4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb7dabd8-cc5d-11e4-b68f-705681abff85"], ["organization_id", "bb7fefc4-cc5d-11e4-8f4c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:07.773583"], ["updated_at", "2015-03-17 04:26:07.773583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb7e8a26-cc5d-11e4-99e3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb7fefc4-cc5d-11e4-8f4c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb7e8a26-cc5d-11e4-99e3-705681abff85"], ["organization_id", "bb7fefc4-cc5d-11e4-8f4c-705681abff85"], ["created_at", "2015-03-17 04:26:07.776707"], ["updated_at", "2015-03-17 04:26:07.776707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/bb807e94-cc5d-11e4-a93e-705681abff85?organization=org" for 127.0.0.1 at 2015-03-16 21:26:07 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"bb807e94-cc5d-11e4-a93e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:07.781879' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4Q9TtZ6mpdUXcUBr4MehbBi7GSKAlHoF7GnRwP_SAlU"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:07.783745"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:07.785774"], ["id", "bb7f4268-cc5d-11e4-8224-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb7dabd8-cc5d-11e4-b68f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bb7dabd8-cc5d-11e4-b68f-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb7dabd8-cc5d-11e4-b68f-705681abff85' LIMIT 1 [["organization_id", "bb7fefc4-cc5d-11e4-8f4c-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["organization_id", "bb7fefc4-cc5d-11e4-8f4c-705681abff85"], ["id", "bb807e94-cc5d-11e4-a93e-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb7dabd8-cc5d-11e4-b68f-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.037479"], ["updated_at", "2015-03-17 04:26:08.037479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bba8cb74-cc5d-11e4-82ca-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bba8cb74-cc5d-11e4-82ca-705681abff85"], ["created_at", "2015-03-17 04:26:08.042145"], ["updated_at", "2015-03-17 04:26:08.042145"], ["token", "SjstXSlwyYxCS4g87tWFMqjhy30lS4zdHFhQdvYNgjA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.6ms) Clubhouse::Mailer#invitation: processed outbound mail in 22.3ms Sent mail to john@example.com (11.6ms) Date: Mon, 16 Mar 2015 21:26:08 -0700 From: from@example.com To: john@example.com Message-ID: <5507ace012b02_b2ef3fe8d9465be87797@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/SjstXSlwyYxCS4g87tWFMqjhy30lS4zdHFhQdvYNgjA If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.085742"], ["updated_at", "2015-03-17 04:26:08.085742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bbb035da-cc5d-11e4-bd9a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bbb035da-cc5d-11e4-bd9a-705681abff85"], ["created_at", "2015-03-17 04:26:08.090484"], ["updated_at", "2015-03-17 04:26:08.090484"], ["token", "q0Lfl5SwvpFR3uJWcdRonxUOo47YnUvYZO1FqolBU70"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.8ms) Date: Mon, 16 Mar 2015 21:26:08 -0700 From: from@example.com To: john@example.com Message-ID: <5507ace017622_b2ef3fe8d9465be878a2@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/q0Lfl5SwvpFR3uJWcdRonxUOo47YnUvYZO1FqolBU70 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.101196"], ["updated_at", "2015-03-17 04:26:08.101196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bbb27c14-cc5d-11e4-8c55-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bbb27c14-cc5d-11e4-8c55-705681abff85"], ["created_at", "2015-03-17 04:26:08.105730"], ["updated_at", "2015-03-17 04:26:08.105730"], ["token", "7OfwNSOKHaDUvWAw1fm6yTxd4GgTT7CddN1kvL93jzo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.7ms Sent mail to john@example.com (1.9ms) Date: Mon, 16 Mar 2015 21:26:08 -0700 From: from@example.com To: john@example.com Message-ID: <5507ace01aea1_b2ef3fe8d9465be879e8@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/7OfwNSOKHaDUvWAw1fm6yTxd4GgTT7CddN1kvL93jzo If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.120904"], ["updated_at", "2015-03-17 04:26:08.120904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bbb5810c-cc5d-11e4-8666-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bbb5810c-cc5d-11e4-8666-705681abff85"], ["created_at", "2015-03-17 04:26:08.124697"], ["updated_at", "2015-03-17 04:26:08.124697"], ["token", "bDx9Nzk5jfjKDAzN1djhqCn0rug-ia0IAiG__vECTr8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Mon, 16 Mar 2015 21:26:08 -0700 From: from@example.com To: john@example.com Message-ID: <5507ace01f627_b2ef3fe8d9465be88063@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/bDx9Nzk5jfjKDAzN1djhqCn0rug-ia0IAiG__vECTr8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.133486"], ["updated_at", "2015-03-17 04:26:08.133486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.148523"], ["updated_at", "2015-03-17 04:26:08.148523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.167899"], ["updated_at", "2015-03-17 04:26:08.167899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.184806"], ["updated_at", "2015-03-17 04:26:08.184806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bbbf3d96-cc5d-11e4-8773-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.190161"], ["updated_at", "2015-03-17 04:26:08.190161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$NOjawe.2GoFldMjohtUImuotdLpEuYD22ZYawztNZf/U79e2OUK1q"], ["created_at", "2015-03-17 04:26:08.212857"], ["updated_at", "2015-03-17 04:26:08.212857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.216928"], ["updated_at", "2015-03-17 04:26:08.216928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc39666-cc5d-11e4-b00a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc42b8a-cc5d-11e4-9180-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbc39666-cc5d-11e4-b00a-705681abff85"], ["organization_id", "bbc42b8a-cc5d-11e4-9180-705681abff85"], ["created_at", "2015-03-17 04:26:08.220179"], ["updated_at", "2015-03-17 04:26:08.220179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbc39666-cc5d-11e4-b00a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbc42b8a-cc5d-11e4-9180-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc39666-cc5d-11e4-b00a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc42b8a-cc5d-11e4-9180-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbc42b8a-cc5d-11e4-9180-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc39666-cc5d-11e4-b00a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc42b8a-cc5d-11e4-9180-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$n6ZmBSWascf0Oj/p3kFzWOg1l9NzJjAFnKTD6kiXBznBnVYzx3CMi"], ["created_at", "2015-03-17 04:26:08.235929"], ["updated_at", "2015-03-17 04:26:08.235929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.238090"], ["user_id", "bbc712d2-cc5d-11e4-a324-705681abff85"], ["created_at", "2015-03-17 04:26:08.238919"], ["updated_at", "2015-03-17 04:26:08.238919"], ["token", "U6jVtNeYr0q-tpT2_Wn-sdbSmQ7YftjZBvlK5Fgr1wo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.242411"], ["updated_at", "2015-03-17 04:26:08.242411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc712d2-cc5d-11e4-a324-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc80584-cc5d-11e4-a005-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbc712d2-cc5d-11e4-a324-705681abff85"], ["organization_id", "bbc80584-cc5d-11e4-a005-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.245874"], ["updated_at", "2015-03-17 04:26:08.245874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'bbc80584-cc5d-11e4-a005-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "bbc80584-cc5d-11e4-a005-705681abff85"], ["created_at", "2015-03-17 04:26:08.249340"], ["updated_at", "2015-03-17 04:26:08.249340"], ["token", "-xOMmOdPny_IL-ZVKSaNKOGT2673mXuHxEUhSd4lgZ4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1?organization=org" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (4.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$9r5Mu2z6DWWrRzsgXG8UEusnS3HPQFgsi8fPrWPw/y0/.XNMHqzxe"], ["created_at", "2015-03-17 04:26:08.291174"], ["updated_at", "2015-03-17 04:26:08.291174"]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.300161"], ["user_id", "bbd011a2-cc5d-11e4-8c8c-705681abff85"], ["created_at", "2015-03-17 04:26:08.302094"], ["updated_at", "2015-03-17 04:26:08.302094"], ["token", "wj_kRiT1BXybealhLWa0tXBRifue7VP3ksR0muIRUKQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.311748"], ["updated_at", "2015-03-17 04:26:08.311748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd011a2-cc5d-11e4-8c8c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbd2cc3a-cc5d-11e4-93c0-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbd011a2-cc5d-11e4-8c8c-705681abff85"], ["organization_id", "bbd2cc3a-cc5d-11e4-93c0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.318821"], ["updated_at", "2015-03-17 04:26:08.318821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'bbd2cc3a-cc5d-11e4-93c0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "bbd2cc3a-cc5d-11e4-93c0-705681abff85"], ["created_at", "2015-03-17 04:26:08.326348"], ["updated_at", "2015-03-17 04:26:08.326348"], ["token", "so98xvaF8PMQKEomjRNn_IFcQoeVHCK4v9niyrM0aCc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/bbd4edc6-cc5d-11e4-a50a-705681abff85?organization=org" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"organization"=>"org", "id"=>"bbd4edc6-cc5d-11e4-a50a-705681abff85", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.335920' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wj_kRiT1BXybealhLWa0tXBRifue7VP3ksR0muIRUKQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.338710"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.341128"], ["id", "bbd1422a-cc5d-11e4-b8ff-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbd011a2-cc5d-11e4-8c8c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbd011a2-cc5d-11e4-8c8c-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbd011a2-cc5d-11e4-8c8c-705681abff85' LIMIT 1 [["organization_id", "bbd2cc3a-cc5d-11e4-93c0-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "bbd2cc3a-cc5d-11e4-93c0-705681abff85"], ["id", "bbd4edc6-cc5d-11e4-a50a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbd2cc3a-cc5d-11e4-93c0-705681abff85"]] Completed 200 OK in 23ms (Views: 3.8ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$z9fzYbCifU4qwB/Cq9CEmu2p9gKFJeCfra5G2PXlB4E56aH6dzB32"], ["created_at", "2015-03-17 04:26:08.364556"], ["updated_at", "2015-03-17 04:26:08.364556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.366419"], ["user_id", "bbdab1fc-cc5d-11e4-9404-705681abff85"], ["created_at", "2015-03-17 04:26:08.367194"], ["updated_at", "2015-03-17 04:26:08.367194"], ["token", "ophi_SFsSpNObS7JHQm0M--_AmUGzqe9u3u8SILg0D4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.370584"], ["updated_at", "2015-03-17 04:26:08.370584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbdab1fc-cc5d-11e4-9404-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbdb937e-cc5d-11e4-98d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbdab1fc-cc5d-11e4-9404-705681abff85"], ["organization_id", "bbdb937e-cc5d-11e4-98d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.374040"], ["updated_at", "2015-03-17 04:26:08.374040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'bbdb937e-cc5d-11e4-98d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "bbdb937e-cc5d-11e4-98d1-705681abff85"], ["created_at", "2015-03-17 04:26:08.377678"], ["updated_at", "2015-03-17 04:26:08.377678"], ["token", "TCa90u-hTjy14NrBL0X6D4V1rhMQRkNuW8hHr90QBhA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$M26rKqYgV3N1Rt.bDVUfpOj3u/s.URgMQ2KmeGpp0am8GjCE0zyGW"], ["created_at", "2015-03-17 04:26:08.388615"], ["updated_at", "2015-03-17 04:26:08.388615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.390533"], ["user_id", "bbde5faa-cc5d-11e4-b4c4-705681abff85"], ["created_at", "2015-03-17 04:26:08.391362"], ["updated_at", "2015-03-17 04:26:08.391362"], ["token", "g-_uLKmNfQ13sjwfw53dhEtS_oryuQnffNmRJ3R5F2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.394883"], ["updated_at", "2015-03-17 04:26:08.394883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbde5faa-cc5d-11e4-b4c4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbdf4f28-cc5d-11e4-a1eb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbde5faa-cc5d-11e4-b4c4-705681abff85"], ["organization_id", "bbdf4f28-cc5d-11e4-a1eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.398874"], ["updated_at", "2015-03-17 04:26:08.398874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'bbdf4f28-cc5d-11e4-a1eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "bbdf4f28-cc5d-11e4-a1eb-705681abff85"], ["created_at", "2015-03-17 04:26:08.402566"], ["updated_at", "2015-03-17 04:26:08.402566"], ["token", "qDO3_TxH-MQvvtit9xuDg5hRy2dli7cl7Rqz-GSoauo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/bbe079b6-cc5d-11e4-b61b-705681abff85?organization=org" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "organization"=>"org", "id"=>"bbe079b6-cc5d-11e4-b61b-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.407910' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "g-_uLKmNfQ13sjwfw53dhEtS_oryuQnffNmRJ3R5F2s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.409440"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.410446"], ["id", "bbdec8c8-cc5d-11e4-be1c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbde5faa-cc5d-11e4-b4c4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbde5faa-cc5d-11e4-b4c4-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbde5faa-cc5d-11e4-b4c4-705681abff85' LIMIT 1 [["organization_id", "bbdf4f28-cc5d-11e4-a1eb-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "bbdf4f28-cc5d-11e4-a1eb-705681abff85"], ["id", "bbe079b6-cc5d-11e4-b61b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbdf4f28-cc5d-11e4-a1eb-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."id" != 'bbe079b6-cc5d-11e4-b61b-705681abff85' AND "clubhouse_invitations"."organization_id" = 'bbdf4f28-cc5d-11e4-a1eb-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-17 04:26:08.422101"], ["id", "bbe079b6-cc5d-11e4-b61b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$Ztl7sSl1hnCsq5D/mB52c.Arklfz04IDzI9AfRB1oupdlHiKpcGaK"], ["created_at", "2015-03-17 04:26:08.431099"], ["updated_at", "2015-03-17 04:26:08.431099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.432871"], ["user_id", "bbe4d79a-cc5d-11e4-959b-705681abff85"], ["created_at", "2015-03-17 04:26:08.433645"], ["updated_at", "2015-03-17 04:26:08.433645"], ["token", "g5720anPy3BUNdQUyByICW2HfcJoC1YocNhvUKTHi1Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.437256"], ["updated_at", "2015-03-17 04:26:08.437256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbe4d79a-cc5d-11e4-959b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbe5c2ea-cc5d-11e4-af27-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbe4d79a-cc5d-11e4-959b-705681abff85"], ["organization_id", "bbe5c2ea-cc5d-11e4-af27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.440562"], ["updated_at", "2015-03-17 04:26:08.440562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'bbe5c2ea-cc5d-11e4-af27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "bbe5c2ea-cc5d-11e4-af27-705681abff85"], ["created_at", "2015-03-17 04:26:08.444078"], ["updated_at", "2015-03-17 04:26:08.444078"], ["token", "fe_54z1cAORN1hu19C-tY-euosESTRjUSJfrXgStrgM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$CL94TkmbH9nY0mauqpoSdu88DjqWCNF1lVjhIvx2BNTxvp6duSNci"], ["created_at", "2015-03-17 04:26:08.448911"], ["updated_at", "2015-03-17 04:26:08.448911"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.453826"], ["updated_at", "2015-03-17 04:26:08.453826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbe788f0-cc5d-11e4-9400-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbe8594c-cc5d-11e4-bb3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbe788f0-cc5d-11e4-9400-705681abff85"], ["organization_id", "bbe8594c-cc5d-11e4-bb3d-705681abff85"], ["created_at", "2015-03-17 04:26:08.458517"], ["updated_at", "2015-03-17 04:26:08.458517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$kLeUcpV9iVdbbeFtW2mBquOx9M0d/8u5QkfquvkDxVmdIyBdtbR/."], ["created_at", "2015-03-17 04:26:08.470264"], ["updated_at", "2015-03-17 04:26:08.470264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.472014"], ["user_id", "bbead050-cc5d-11e4-a5d1-705681abff85"], ["created_at", "2015-03-17 04:26:08.472974"], ["updated_at", "2015-03-17 04:26:08.472974"], ["token", "hySv0rZNseTaCM7g_HDhKFxy-XITxJK7mNDn0EQ94wI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.476850"], ["updated_at", "2015-03-17 04:26:08.476850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbead050-cc5d-11e4-a5d1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbebcbfe-cc5d-11e4-b4ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbead050-cc5d-11e4-a5d1-705681abff85"], ["organization_id", "bbebcbfe-cc5d-11e4-b4ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.480177"], ["updated_at", "2015-03-17 04:26:08.480177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'bbebcbfe-cc5d-11e4-b4ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "bbebcbfe-cc5d-11e4-b4ba-705681abff85"], ["created_at", "2015-03-17 04:26:08.483792"], ["updated_at", "2015-03-17 04:26:08.483792"], ["token", "VNMld00SWEuvBehzCCb8oF8qMEwsdoLMojBZVsJEuI8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$4VQ8k8KoTnBZXu1y1qfRIO.7xiyxlqUErbjvCe6nzkk7G31OUnuue"], ["created_at", "2015-03-17 04:26:08.488282"], ["updated_at", "2015-03-17 04:26:08.488282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.491541"], ["updated_at", "2015-03-17 04:26:08.491541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbed8e94-cc5d-11e4-87e5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbee082e-cc5d-11e4-becb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbed8e94-cc5d-11e4-87e5-705681abff85"], ["organization_id", "bbee082e-cc5d-11e4-becb-705681abff85"], ["created_at", "2015-03-17 04:26:08.494758"], ["updated_at", "2015-03-17 04:26:08.494758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations?organization=org" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.499587' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hySv0rZNseTaCM7g_HDhKFxy-XITxJK7mNDn0EQ94wI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.501165"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.502409"], ["id", "bbeb3d2e-cc5d-11e4-8cb5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbead050-cc5d-11e4-a5d1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbead050-cc5d-11e4-a5d1-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbead050-cc5d-11e4-a5d1-705681abff85' LIMIT 1 [["organization_id", "bbebcbfe-cc5d-11e4-b4ba-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "bbebcbfe-cc5d-11e4-b4ba-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('bbebcbfe-cc5d-11e4-b4ba-705681abff85') Completed 200 OK in 12ms (Views: 2.7ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$q9oRmeigpB.N2hmh9GgJ..ndlBLdFZUK61pFRWLDW1Mc0Nf4abH6S"], ["created_at", "2015-03-17 04:26:08.517895"], ["updated_at", "2015-03-17 04:26:08.517895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.519819"], ["user_id", "bbf219b4-cc5d-11e4-b248-705681abff85"], ["created_at", "2015-03-17 04:26:08.520637"], ["updated_at", "2015-03-17 04:26:08.520637"], ["token", "cHA1CJbH3BC9-oDpEmjxz1BPSYwougaQuRV-L1VOKbg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.524004"], ["updated_at", "2015-03-17 04:26:08.524004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbf219b4-cc5d-11e4-b248-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbf30fb8-cc5d-11e4-a959-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbf219b4-cc5d-11e4-b248-705681abff85"], ["organization_id", "bbf30fb8-cc5d-11e4-a959-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.528105"], ["updated_at", "2015-03-17 04:26:08.528105"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'bbf30fb8-cc5d-11e4-a959-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "bbf30fb8-cc5d-11e4-a959-705681abff85"], ["created_at", "2015-03-17 04:26:08.531732"], ["updated_at", "2015-03-17 04:26:08.531732"], ["token", "-L3EIUasyAFtaKRlMwRwVXBwxNUVzfDdmR_OiHhovnE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization"=>"org", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$Xc0OsD/n3LMEoPGU3ZzYb.56luLAH6q79ZF9GiVX2hM8Ndl1GkEzK"], ["created_at", "2015-03-17 04:26:08.542254"], ["updated_at", "2015-03-17 04:26:08.542254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.544092"], ["user_id", "bbf5d20c-cc5d-11e4-a8ae-705681abff85"], ["created_at", "2015-03-17 04:26:08.544852"], ["updated_at", "2015-03-17 04:26:08.544852"], ["token", "RtWybqirGtIceDxA3q0fwV2QNsqnx9i9uDYpwUfZ1yg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.548460"], ["updated_at", "2015-03-17 04:26:08.548460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbf5d20c-cc5d-11e4-a8ae-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbf6c310-cc5d-11e4-aeff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbf5d20c-cc5d-11e4-a8ae-705681abff85"], ["organization_id", "bbf6c310-cc5d-11e4-aeff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.552540"], ["updated_at", "2015-03-17 04:26:08.552540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'bbf6c310-cc5d-11e4-aeff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "bbf6c310-cc5d-11e4-aeff-705681abff85"], ["created_at", "2015-03-17 04:26:08.556005"], ["updated_at", "2015-03-17 04:26:08.556005"], ["token", "Hqy1VvWa_oyj-2Q_lkkld6Hdm3TV3GFcjyY-NAnpvas"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.561308' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RtWybqirGtIceDxA3q0fwV2QNsqnx9i9uDYpwUfZ1yg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.562813"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.563818"], ["id", "bbf63396-cc5d-11e4-885e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbf5d20c-cc5d-11e4-a8ae-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bbf5d20c-cc5d-11e4-a8ae-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbf5d20c-cc5d-11e4-a8ae-705681abff85' LIMIT 1 [["organization_id", "bbf6c310-cc5d-11e4-aeff-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbf6c310-cc5d-11e4-aeff-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bbf6c310-cc5d-11e4-aeff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "bbf6c310-cc5d-11e4-aeff-705681abff85"], ["created_at", "2015-03-17 04:26:08.573137"], ["updated_at", "2015-03-17 04:26:08.573137"], ["token", "_jPpap5wIbsz1CPUqqTFdUjoTCsJT0R00xzMOxlnmGw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4720805e-59ab-42fb-baa8-d0c7f20cb89b) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bbfa9b7a-cc5d-11e4-a566-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bbfa9b7a-cc5d-11e4-a566-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4720805e-59ab-42fb-baa8-d0c7f20cb89b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bbfa9b7a-cc5d-11e4-a566-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [4720805e-59ab-42fb-baa8-d0c7f20cb89b] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbf6c310-cc5d-11e4-aeff-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4720805e-59ab-42fb-baa8-d0c7f20cb89b] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4720805e-59ab-42fb-baa8-d0c7f20cb89b] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [4720805e-59ab-42fb-baa8-d0c7f20cb89b] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [4720805e-59ab-42fb-baa8-d0c7f20cb89b] Date: Mon, 16 Mar 2015 21:26:08 -0700 From: from@example.com To: email@example.com Message-ID: <5507ace0928fb_b2ef3fe8d9465be88134@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/_jPpap5wIbsz1CPUqqTFdUjoTCsJT0R00xzMOxlnmGw If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4720805e-59ab-42fb-baa8-d0c7f20cb89b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.3ms Completed 201 Created in 41ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$753Nf6RqVZqJeIL0la3VjOp4ow8hXGF0hsIBZ7T5KDU8kGvoMrPN6"], ["created_at", "2015-03-17 04:26:08.610857"], ["updated_at", "2015-03-17 04:26:08.610857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.612532"], ["user_id", "bc004232-cc5d-11e4-8967-705681abff85"], ["created_at", "2015-03-17 04:26:08.613313"], ["updated_at", "2015-03-17 04:26:08.613313"], ["token", "sqyJaNxo87HLQyv--PB1dVpEXf_H5H3McOMhM6oLMdU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.616946"], ["updated_at", "2015-03-17 04:26:08.616946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc004232-cc5d-11e4-8967-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc012bd4-cc5d-11e4-a164-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc004232-cc5d-11e4-8967-705681abff85"], ["organization_id", "bc012bd4-cc5d-11e4-a164-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.620490"], ["updated_at", "2015-03-17 04:26:08.620490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'bc012bd4-cc5d-11e4-a164-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "bc012bd4-cc5d-11e4-a164-705681abff85"], ["created_at", "2015-03-17 04:26:08.624036"], ["updated_at", "2015-03-17 04:26:08.624036"], ["token", "e4h2c02DDp6ZIlhBf3CfmjLxT84J_TABJ3n9fP7lLhs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.629586' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sqyJaNxo87HLQyv--PB1dVpEXf_H5H3McOMhM6oLMdU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.631074"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.632239"], ["id", "bc00a632-cc5d-11e4-9226-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc004232-cc5d-11e4-8967-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc004232-cc5d-11e4-8967-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc004232-cc5d-11e4-8967-705681abff85' LIMIT 1 [["organization_id", "bc012bd4-cc5d-11e4-a164-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc012bd4-cc5d-11e4-a164-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bc012bd4-cc5d-11e4-a164-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "admin", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "email@example.com"], ["admin", "t"], ["organization_id", "bc012bd4-cc5d-11e4-a164-705681abff85"], ["created_at", "2015-03-17 04:26:08.640536"], ["updated_at", "2015-03-17 04:26:08.640536"], ["token", "RgQNbyQuuBxLYXEuRtRE1u6IUlesV7sJNhqntJgaiYU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e11feccf-a67a-4f18-9645-b283218c0e40) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc04d8b0-cc5d-11e4-a8a4-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc04d8b0-cc5d-11e4-a8a4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e11feccf-a67a-4f18-9645-b283218c0e40] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc04d8b0-cc5d-11e4-a8a4-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [e11feccf-a67a-4f18-9645-b283218c0e40] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc012bd4-cc5d-11e4-a164-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e11feccf-a67a-4f18-9645-b283218c0e40] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [e11feccf-a67a-4f18-9645-b283218c0e40] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [e11feccf-a67a-4f18-9645-b283218c0e40] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [e11feccf-a67a-4f18-9645-b283218c0e40] Date: Mon, 16 Mar 2015 21:26:08 -0700 From: from@example.com To: email@example.com Message-ID: <5507ace09e3de_b2ef3fe8d9465be8824c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/RgQNbyQuuBxLYXEuRtRE1u6IUlesV7sJNhqntJgaiYU If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [e11feccf-a67a-4f18-9645-b283218c0e40] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.98ms Completed 201 Created in 21ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$Pk0btbyRAPRFzv.cIlIcQeieFXw5jt5ulCQERO43uM0OmKtJYaAFC"], ["created_at", "2015-03-17 04:26:08.656455"], ["updated_at", "2015-03-17 04:26:08.656455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.658086"], ["user_id", "bc0736be-cc5d-11e4-8b90-705681abff85"], ["created_at", "2015-03-17 04:26:08.658896"], ["updated_at", "2015-03-17 04:26:08.658896"], ["token", "r0DEVP3YSaLM0Y6m3yJJh-gZckzcfuwy-QK-eLb-Ogg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.662280"], ["updated_at", "2015-03-17 04:26:08.662280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc0736be-cc5d-11e4-8b90-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc0815c0-cc5d-11e4-bacb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc0736be-cc5d-11e4-8b90-705681abff85"], ["organization_id", "bc0815c0-cc5d-11e4-bacb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.665783"], ["updated_at", "2015-03-17 04:26:08.665783"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'bc0815c0-cc5d-11e4-bacb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "bc0815c0-cc5d-11e4-bacb-705681abff85"], ["created_at", "2015-03-17 04:26:08.669507"], ["updated_at", "2015-03-17 04:26:08.669507"], ["token", "ADBCbOJAq3z6gI7Nl0-9sLHrdlw59E_B7fKOL1gdCf0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/invitations?organization=org" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.675034' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r0DEVP3YSaLM0Y6m3yJJh-gZckzcfuwy-QK-eLb-Ogg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.676387"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.677354"], ["id", "bc0799f6-cc5d-11e4-9877-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc0736be-cc5d-11e4-8b90-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc0736be-cc5d-11e4-8b90-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc0736be-cc5d-11e4-8b90-705681abff85' LIMIT 1 [["organization_id", "bc0815c0-cc5d-11e4-bacb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc0815c0-cc5d-11e4-bacb-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'bc0815c0-cc5d-11e4-bacb-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$HrkM2syAgDs0g14Q7OZ8jug.0YMu0YKVw20wsC5guHjDp4PAwqPMS"], ["created_at", "2015-03-17 04:26:08.693596"], ["updated_at", "2015-03-17 04:26:08.693596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.695516"], ["user_id", "bc0ce6d6-cc5d-11e4-85ab-705681abff85"], ["created_at", "2015-03-17 04:26:08.696335"], ["updated_at", "2015-03-17 04:26:08.696335"], ["token", "lCAfou23rYqPN36oPEGDjEe8viLqQSzb7rJGhKThjPs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.699772"], ["updated_at", "2015-03-17 04:26:08.699772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc0ce6d6-cc5d-11e4-85ab-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc0dcf9c-cc5d-11e4-a64d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc0ce6d6-cc5d-11e4-85ab-705681abff85"], ["organization_id", "bc0dcf9c-cc5d-11e4-a64d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.703202"], ["updated_at", "2015-03-17 04:26:08.703202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'bc0dcf9c-cc5d-11e4-a64d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "bc0dcf9c-cc5d-11e4-a64d-705681abff85"], ["created_at", "2015-03-17 04:26:08.706655"], ["updated_at", "2015-03-17 04:26:08.706655"], ["token", "rK8g1quYOjxMSEF9x8n3m-1Bs7E5Z8fF2hujuoFBFJE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1?organization=name" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"name", "id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$q.E5C4R.IjNU7rR1w1viR.86eHZ74WGTC1r46UjdP7D7UBFAG09u2"], ["created_at", "2015-03-17 04:26:08.718723"], ["updated_at", "2015-03-17 04:26:08.718723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.720441"], ["user_id", "bc10b8f6-cc5d-11e4-85db-705681abff85"], ["created_at", "2015-03-17 04:26:08.721424"], ["updated_at", "2015-03-17 04:26:08.721424"], ["token", "37TmPlbDjgxl0Wn1qBKqrWFjzN6Vtoa3msILdj_PDbM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.725580"], ["updated_at", "2015-03-17 04:26:08.725580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc10b8f6-cc5d-11e4-85db-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc11c1d8-cc5d-11e4-80ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc10b8f6-cc5d-11e4-85db-705681abff85"], ["organization_id", "bc11c1d8-cc5d-11e4-80ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:26:08.729051"], ["updated_at", "2015-03-17 04:26:08.729051"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'bc11c1d8-cc5d-11e4-80ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "bc11c1d8-cc5d-11e4-80ae-705681abff85"], ["created_at", "2015-03-17 04:26:08.732902"], ["updated_at", "2015-03-17 04:26:08.732902"], ["token", "VyruB_bcA114u6v7I5je6AWK1HiMSDq7ViHayNe60tk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/bc12e464-cc5d-11e4-bfa0-705681abff85?organization=org" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"organization"=>"org", "id"=>"bc12e464-cc5d-11e4-bfa0-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.738855' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "37TmPlbDjgxl0Wn1qBKqrWFjzN6Vtoa3msILdj_PDbM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.740327"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.741300"], ["id", "bc1128a4-cc5d-11e4-a0ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc10b8f6-cc5d-11e4-85db-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc10b8f6-cc5d-11e4-85db-705681abff85"], ["name", "org"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc10b8f6-cc5d-11e4-85db-705681abff85' LIMIT 1 [["organization_id", "bc11c1d8-cc5d-11e4-80ae-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 AND "clubhouse_invitations"."id" = $2 LIMIT 1 [["organization_id", "bc11c1d8-cc5d-11e4-80ae-705681abff85"], ["id", "bc12e464-cc5d-11e4-bfa0-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "bc12e464-cc5d-11e4-bfa0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$skvyfVcmeDkMd1rly2DZbOXpISj4dQbUNzV1kIrSdO2vnf3RgfwU2"], ["created_at", "2015-03-17 04:26:08.755502"], ["updated_at", "2015-03-17 04:26:08.755502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.757080"], ["user_id", "bc16528e-cc5d-11e4-a6ed-705681abff85"], ["created_at", "2015-03-17 04:26:08.757861"], ["updated_at", "2015-03-17 04:26:08.757861"], ["token", "cCKMqUYY3jChlWG7ngG4bQGvSjp0DcZqfawHiN41i_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.761703"], ["updated_at", "2015-03-17 04:26:08.761703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc16528e-cc5d-11e4-a6ed-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc17437e-cc5d-11e4-9462-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc16528e-cc5d-11e4-a6ed-705681abff85"], ["organization_id", "bc17437e-cc5d-11e4-9462-705681abff85"], ["created_at", "2015-03-17 04:26:08.765024"], ["updated_at", "2015-03-17 04:26:08.765024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$lW0d8XAokSl/Rkz06ixEtudh5AD/4w2DpU46Vi4l6OSqWKV4wZzYe"], ["created_at", "2015-03-17 04:26:08.783646"], ["updated_at", "2015-03-17 04:26:08.783646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.785439"], ["user_id", "bc1aa10e-cc5d-11e4-997d-705681abff85"], ["created_at", "2015-03-17 04:26:08.786456"], ["updated_at", "2015-03-17 04:26:08.786456"], ["token", "ZY7n9O1mSmZin9XrwIRwPHntSHKToCnP4WEL_gF9xrw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.790156"], ["updated_at", "2015-03-17 04:26:08.790156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc1aa10e-cc5d-11e4-997d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc1b99d8-cc5d-11e4-892b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc1aa10e-cc5d-11e4-997d-705681abff85"], ["organization_id", "bc1b99d8-cc5d-11e4-892b-705681abff85"], ["created_at", "2015-03-17 04:26:08.793354"], ["updated_at", "2015-03-17 04:26:08.793354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-9" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-9", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.799433' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZY7n9O1mSmZin9XrwIRwPHntSHKToCnP4WEL_gF9xrw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.801220"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.802289"], ["id", "bc1b17ce-cc5d-11e4-ae49-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "org-9"]] Completed 200 OK in 6ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$hOcdglgvFkiJT.v8oEOUGeRIIkQyLXBrTHn95n6yosmtwZStpj3Ya"], ["created_at", "2015-03-17 04:26:08.810901"], ["updated_at", "2015-03-17 04:26:08.810901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.812462"], ["user_id", "bc1ec680-cc5d-11e4-9481-705681abff85"], ["created_at", "2015-03-17 04:26:08.813685"], ["updated_at", "2015-03-17 04:26:08.813685"], ["token", "tF1a4uEN9VNmlAtKb_gqDmUA6FG28_OBFBV2PEjpzTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.818754"], ["updated_at", "2015-03-17 04:26:08.818754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc1ec680-cc5d-11e4-9481-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc1ff6e0-cc5d-11e4-9f29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc1ec680-cc5d-11e4-9481-705681abff85"], ["organization_id", "bc1ff6e0-cc5d-11e4-9f29-705681abff85"], ["created_at", "2015-03-17 04:26:08.822441"], ["updated_at", "2015-03-17 04:26:08.822441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.827613' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tF1a4uEN9VNmlAtKb_gqDmUA6FG28_OBFBV2PEjpzTY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.829105"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.830438"], ["id", "bc1f5bae-cc5d-11e4-a414-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$rNWQtLjNeTg/q8NrjvGGa.jmrPQt.DKhk1owufwpDSu5jQjkakyG6"], ["created_at", "2015-03-17 04:26:08.838855"], ["updated_at", "2015-03-17 04:26:08.838855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.840471"], ["user_id", "bc230bc8-cc5d-11e4-9d11-705681abff85"], ["created_at", "2015-03-17 04:26:08.841840"], ["updated_at", "2015-03-17 04:26:08.841840"], ["token", "ZyByMXus1jNsvRbgDPXiIVmnBVVdg4Zhf13Gdsrt6nM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.845812"], ["updated_at", "2015-03-17 04:26:08.845812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc230bc8-cc5d-11e4-9d11-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc2418f6-cc5d-11e4-9bb6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc230bc8-cc5d-11e4-9d11-705681abff85"], ["organization_id", "bc2418f6-cc5d-11e4-9bb6-705681abff85"], ["created_at", "2015-03-17 04:26:08.848953"], ["updated_at", "2015-03-17 04:26:08.848953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$Ph0Iqi4TBFKZPdbfbF6ZX.pZskUIHP1mcyhgGV/eX3Fx6aI4hy0Ra"], ["created_at", "2015-03-17 04:26:08.859692"], ["updated_at", "2015-03-17 04:26:08.859692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.861310"], ["user_id", "bc26397e-cc5d-11e4-9414-705681abff85"], ["created_at", "2015-03-17 04:26:08.862096"], ["updated_at", "2015-03-17 04:26:08.862096"], ["token", "4vX78vuyv53ZSwAQAq1J9PKtbYqElVFhycjInurXjWo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.865625"], ["updated_at", "2015-03-17 04:26:08.865625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc26397e-cc5d-11e4-9414-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc271e3e-cc5d-11e4-bb66-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc26397e-cc5d-11e4-9414-705681abff85"], ["organization_id", "bc271e3e-cc5d-11e4-bb66-705681abff85"], ["created_at", "2015-03-17 04:26:08.868737"], ["updated_at", "2015-03-17 04:26:08.868737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bc271e3e-cc5d-11e4-bb66-705681abff85" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"bc271e3e-cc5d-11e4-bb66-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.873888' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4vX78vuyv53ZSwAQAq1J9PKtbYqElVFhycjInurXjWo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.875214"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.876389"], ["id", "bc269b58-cc5d-11e4-bba8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc26397e-cc5d-11e4-9414-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc26397e-cc5d-11e4-9414-705681abff85"], ["id", "bc271e3e-cc5d-11e4-bb66-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc271e3e-cc5d-11e4-bb66-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-17 04:26:08.884178"], ["id", "bc271e3e-cc5d-11e4-bb66-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.2ms | ActiveRecord: 2.1ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$R/qNTRJRKkks8zNr2HB.2OfH19YNOVXgH09g/VZyumJVwre0R3FES"], ["created_at", "2015-03-17 04:26:08.897457"], ["updated_at", "2015-03-17 04:26:08.897457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.899788"], ["user_id", "bc2c0610-cc5d-11e4-8b7f-705681abff85"], ["created_at", "2015-03-17 04:26:08.900632"], ["updated_at", "2015-03-17 04:26:08.900632"], ["token", "pl6VifWYJV15ifWJnUGGw7gtFUgWWjhfFs6eH-1r2WY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.904687"], ["updated_at", "2015-03-17 04:26:08.904687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc2c0610-cc5d-11e4-8b7f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc2d153c-cc5d-11e4-9aeb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc2c0610-cc5d-11e4-8b7f-705681abff85"], ["organization_id", "bc2d153c-cc5d-11e4-9aeb-705681abff85"], ["created_at", "2015-03-17 04:26:08.907961"], ["updated_at", "2015-03-17 04:26:08.907961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bc2d153c-cc5d-11e4-9aeb-705681abff85" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"bc2d153c-cc5d-11e4-9aeb-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.913336' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pl6VifWYJV15ifWJnUGGw7gtFUgWWjhfFs6eH-1r2WY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.914887"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.915858"], ["id", "bc2c8234-cc5d-11e4-a316-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc2c0610-cc5d-11e4-8b7f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc2c0610-cc5d-11e4-8b7f-705681abff85"], ["id", "bc2d153c-cc5d-11e4-9aeb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc2d153c-cc5d-11e4-9aeb-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$UBZRxVidDj6igkiu2jBqu.brq55gHXpScWf8WfUn1P/siAhwH8FJO"], ["created_at", "2015-03-17 04:26:08.928713"], ["updated_at", "2015-03-17 04:26:08.928713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.930465"], ["user_id", "bc30c57e-cc5d-11e4-b063-705681abff85"], ["created_at", "2015-03-17 04:26:08.931283"], ["updated_at", "2015-03-17 04:26:08.931283"], ["token", "gkEELKpAHSpRouyrTzBbAAnLCPFACt4Pfv2qSYSXt4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.934874"], ["updated_at", "2015-03-17 04:26:08.934874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc30c57e-cc5d-11e4-b063-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc31ae94-cc5d-11e4-acbd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc30c57e-cc5d-11e4-b063-705681abff85"], ["organization_id", "bc31ae94-cc5d-11e4-acbd-705681abff85"], ["created_at", "2015-03-17 04:26:08.938207"], ["updated_at", "2015-03-17 04:26:08.938207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$.xT67yheOEixtKeSCH6pPejR4E5Lbx61oSUI7oqfap9d1rjFsTKii"], ["created_at", "2015-03-17 04:26:08.942648"], ["updated_at", "2015-03-17 04:26:08.942648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.946220"], ["updated_at", "2015-03-17 04:26:08.946220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc32dfb2-cc5d-11e4-b677-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc336af4-cc5d-11e4-83be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc32dfb2-cc5d-11e4-b677-705681abff85"], ["organization_id", "bc336af4-cc5d-11e4-83be-705681abff85"], ["created_at", "2015-03-17 04:26:08.949375"], ["updated_at", "2015-03-17 04:26:08.949375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$04OkanZa0ZzNpa2.ErKGe.oui23Q0sAxwm1e6aylAt7l6xEvIRUEy"], ["created_at", "2015-03-17 04:26:08.960249"], ["updated_at", "2015-03-17 04:26:08.960249"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:08.962222"], ["user_id", "bc3594be-cc5d-11e4-8889-705681abff85"], ["created_at", "2015-03-17 04:26:08.963053"], ["updated_at", "2015-03-17 04:26:08.963053"], ["token", "WUCjhguLuhEB7WJhNYZ9CyhyLOV9IYonzXIyoEBjHFU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.966537"], ["updated_at", "2015-03-17 04:26:08.966537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc3594be-cc5d-11e4-8889-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc368356-cc5d-11e4-b9aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc3594be-cc5d-11e4-8889-705681abff85"], ["organization_id", "bc368356-cc5d-11e4-b9aa-705681abff85"], ["created_at", "2015-03-17 04:26:08.969960"], ["updated_at", "2015-03-17 04:26:08.969960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (6.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$jkeS4J3a1ZrzEjRB9xisouDpZD8mE5168Vkn3dr8LrVqT/xSTxi0G"], ["created_at", "2015-03-17 04:26:08.974627"], ["updated_at", "2015-03-17 04:26:08.974627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:08.984775"], ["updated_at", "2015-03-17 04:26:08.984775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc37c34c-cc5d-11e4-b751-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc39514e-cc5d-11e4-890f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc37c34c-cc5d-11e4-b751-705681abff85"], ["organization_id", "bc39514e-cc5d-11e4-890f-705681abff85"], ["created_at", "2015-03-17 04:26:08.988730"], ["updated_at", "2015-03-17 04:26:08.988730"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-16 21:26:08 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:08.994955' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WUCjhguLuhEB7WJhNYZ9CyhyLOV9IYonzXIyoEBjHFU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:08.996457"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:08.997587"], ["id", "bc3604da-cc5d-11e4-8e63-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc3594be-cc5d-11e4-8889-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "bc3594be-cc5d-11e4-8889-705681abff85"]] Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$lxL35EJshhTfpL1YnDYki.gUvmANlrWsDp8Jp5hagw8eViNESBrwG"], ["created_at", "2015-03-17 04:26:09.011493"], ["updated_at", "2015-03-17 04:26:09.011493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.013370"], ["user_id", "bc3d69dc-cc5d-11e4-b1f2-705681abff85"], ["created_at", "2015-03-17 04:26:09.014140"], ["updated_at", "2015-03-17 04:26:09.014140"], ["token", "FIbSSL_u3T2-gr8wNLGvYUSvy-AOHOHjHtcXYsITZOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.018100"], ["updated_at", "2015-03-17 04:26:09.018100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc3d69dc-cc5d-11e4-b1f2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc3e6436-cc5d-11e4-bd2d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc3d69dc-cc5d-11e4-b1f2-705681abff85"], ["organization_id", "bc3e6436-cc5d-11e4-bd2d-705681abff85"], ["created_at", "2015-03-17 04:26:09.022350"], ["updated_at", "2015-03-17 04:26:09.022350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$u7lPeafh.ZKIDZk83sk32.QLiLpbvtOtvP2vmCPfHHtIeu/ETvP7S"], ["created_at", "2015-03-17 04:26:09.064251"], ["updated_at", "2015-03-17 04:26:09.064251"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (86.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.071460"], ["user_id", "bc45d1f8-cc5d-11e4-9cab-705681abff85"], ["created_at", "2015-03-17 04:26:09.075723"], ["updated_at", "2015-03-17 04:26:09.075723"], ["token", "QXqPkGJllRvRdfP-8-xXQ5vsBboC9IqaZ54jCLsZdJA"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.171412"], ["updated_at", "2015-03-17 04:26:09.171412"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc45d1f8-cc5d-11e4-9cab-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc55e412-cc5d-11e4-ab5e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc45d1f8-cc5d-11e4-9cab-705681abff85"], ["organization_id", "bc55e412-cc5d-11e4-ab5e-705681abff85"], ["created_at", "2015-03-17 04:26:09.177138"], ["updated_at", "2015-03-17 04:26:09.177138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-19" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-19", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:09.183759' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QXqPkGJllRvRdfP-8-xXQ5vsBboC9IqaZ54jCLsZdJA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:09.185270"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:09.186321"], ["id", "bc478fa2-cc5d-11e4-badb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc45d1f8-cc5d-11e4-9cab-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc45d1f8-cc5d-11e4-9cab-705681abff85"], ["name", "org-19"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bc55e412-cc5d-11e4-ab5e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$a4VsMGLU0pFoOmPlcTP7UOMqGtQAX.d0XdE7CGY1g3G03fqsL8crq"], ["created_at", "2015-03-17 04:26:09.199963"], ["updated_at", "2015-03-17 04:26:09.199963"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.205823"], ["user_id", "bc5a430e-cc5d-11e4-b466-705681abff85"], ["created_at", "2015-03-17 04:26:09.207887"], ["updated_at", "2015-03-17 04:26:09.207887"], ["token", "g5Fjv1n289Mp66jUqRBepoCg-mqw8yYQpBJIS2-l5V8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.214943"], ["updated_at", "2015-03-17 04:26:09.214943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc5a430e-cc5d-11e4-b466-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc5c7084-cc5d-11e4-a852-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc5a430e-cc5d-11e4-b466-705681abff85"], ["organization_id", "bc5c7084-cc5d-11e4-a852-705681abff85"], ["created_at", "2015-03-17 04:26:09.218568"], ["updated_at", "2015-03-17 04:26:09.218568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$qT3QZBvtGc2Na44jpy9pCegEXt06nL8wGjOhNUxTzfXzVrm1ZtgDa"], ["created_at", "2015-03-17 04:26:09.232029"], ["updated_at", "2015-03-17 04:26:09.232029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.234004"], ["user_id", "bc5f0e70-cc5d-11e4-9c03-705681abff85"], ["created_at", "2015-03-17 04:26:09.234875"], ["updated_at", "2015-03-17 04:26:09.234875"], ["token", "WWS7rI7Inoq49BVOdWU0JEauHo9G2YUhHynW5B1S3Ko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.238942"], ["updated_at", "2015-03-17 04:26:09.238942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc5f0e70-cc5d-11e4-9c03-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc60169e-cc5d-11e4-a46d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc5f0e70-cc5d-11e4-9c03-705681abff85"], ["organization_id", "bc60169e-cc5d-11e4-a46d-705681abff85"], ["created_at", "2015-03-17 04:26:09.242728"], ["updated_at", "2015-03-17 04:26:09.242728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-21" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-21", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:09.250463' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WWS7rI7Inoq49BVOdWU0JEauHo9G2YUhHynW5B1S3Ko"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:09.252118"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:09.253145"], ["id", "bc5f91ec-cc5d-11e4-88ce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc5f0e70-cc5d-11e4-9c03-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc5f0e70-cc5d-11e4-9c03-705681abff85"], ["name", "org-21"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (15.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$.mjvses4Th2z5L6byb74r.btiMJQWZ2sskod3R.6v/6oqY1d6OUYu"], ["created_at", "2015-03-17 04:26:09.264601"], ["updated_at", "2015-03-17 04:26:09.264601"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.282653"], ["user_id", "bc65caee-cc5d-11e4-a6e6-705681abff85"], ["created_at", "2015-03-17 04:26:09.286527"], ["updated_at", "2015-03-17 04:26:09.286527"], ["token", "ngpEdPaL5qCCgyDn0pl48PuPti_2R_9ZxreGoj_0nto"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.292776"], ["updated_at", "2015-03-17 04:26:09.292776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc65caee-cc5d-11e4-a6e6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc68532c-cc5d-11e4-8db2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc65caee-cc5d-11e4-a6e6-705681abff85"], ["organization_id", "bc68532c-cc5d-11e4-8db2-705681abff85"], ["created_at", "2015-03-17 04:26:09.297597"], ["updated_at", "2015-03-17 04:26:09.297597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$VkrOI/yroHiWCvSYgNVK8eOUf18PXx8IsSA2RL.1HBFGEdpfvco7K"], ["created_at", "2015-03-17 04:26:09.308216"], ["updated_at", "2015-03-17 04:26:09.308216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.309900"], ["user_id", "bc6aaabe-cc5d-11e4-8595-705681abff85"], ["created_at", "2015-03-17 04:26:09.310655"], ["updated_at", "2015-03-17 04:26:09.310655"], ["token", "OVD8S54g5YOoqkZQp_v26AznP41VPE455_lKzdKx1s0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.314318"], ["updated_at", "2015-03-17 04:26:09.314318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc6aaabe-cc5d-11e4-8595-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc6b95aa-cc5d-11e4-b4a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc6aaabe-cc5d-11e4-8595-705681abff85"], ["organization_id", "bc6b95aa-cc5d-11e4-b4a3-705681abff85"], ["created_at", "2015-03-17 04:26:09.318103"], ["updated_at", "2015-03-17 04:26:09.318103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bc6b95aa-cc5d-11e4-b4a3-705681abff85" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"bc6b95aa-cc5d-11e4-b4a3-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:09.322933' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OVD8S54g5YOoqkZQp_v26AznP41VPE455_lKzdKx1s0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:09.324658"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:09.325656"], ["id", "bc6b0dba-cc5d-11e4-a17f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc6aaabe-cc5d-11e4-8595-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc6aaabe-cc5d-11e4-8595-705681abff85"], ["id", "bc6b95aa-cc5d-11e4-b4a3-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$x3HDyvMHNtjQasfw3NKUr.SvP1IG7mIu3Gg48Zg9X4IfdnI.jFYIa"], ["created_at", "2015-03-17 04:26:09.336314"], ["updated_at", "2015-03-17 04:26:09.336314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.338158"], ["user_id", "bc6ef376-cc5d-11e4-86c0-705681abff85"], ["created_at", "2015-03-17 04:26:09.339117"], ["updated_at", "2015-03-17 04:26:09.339117"], ["token", "x-DnMoqmaC8GTJMYCL3OaloiTFM7OlDmBdX6CJtEyFA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.343513"], ["updated_at", "2015-03-17 04:26:09.343513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc6ef376-cc5d-11e4-86c0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc700bd0-cc5d-11e4-a1ab-705681abff85') LIMIT 1 SQL (3.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc6ef376-cc5d-11e4-86c0-705681abff85"], ["organization_id", "bc700bd0-cc5d-11e4-a1ab-705681abff85"], ["created_at", "2015-03-17 04:26:09.348013"], ["updated_at", "2015-03-17 04:26:09.348013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$gJ3ydSUBq//OW0k.SeV8/.O1Jyq4V3ngQPd080763VJOIE3T2geq."], ["created_at", "2015-03-17 04:26:09.366421"], ["updated_at", "2015-03-17 04:26:09.366421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.368426"], ["user_id", "bc738ea4-cc5d-11e4-9f6b-705681abff85"], ["created_at", "2015-03-17 04:26:09.369226"], ["updated_at", "2015-03-17 04:26:09.369226"], ["token", "rN-xMSlqu-F3Wk8mGdnBqcFApnZ5Rrn4WavdusXbbP4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.372657"], ["updated_at", "2015-03-17 04:26:09.372657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc738ea4-cc5d-11e4-9f6b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc747a44-cc5d-11e4-99b1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc738ea4-cc5d-11e4-9f6b-705681abff85"], ["organization_id", "bc747a44-cc5d-11e4-99b1-705681abff85"], ["created_at", "2015-03-17 04:26:09.376195"], ["updated_at", "2015-03-17 04:26:09.376195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:09.381333' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rN-xMSlqu-F3Wk8mGdnBqcFApnZ5Rrn4WavdusXbbP4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:09.382781"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:09.383727"], ["id", "bc73ff42-cc5d-11e4-a0ac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc738ea4-cc5d-11e4-9f6b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.389734"], ["updated_at", "2015-03-17 04:26:09.389734"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc771cfe-cc5d-11e4-a9c3-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc738ea4-cc5d-11e4-9f6b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc771cfe-cc5d-11e4-a9c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc738ea4-cc5d-11e4-9f6b-705681abff85"], ["admin", "t"], ["organization_id", "bc771cfe-cc5d-11e4-a9c3-705681abff85"], ["created_at", "2015-03-17 04:26:09.393945"], ["updated_at", "2015-03-17 04:26:09.393945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.6ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$8yrVVSN1klyCe89zHkIe6OmSQjTVi3b7AtdXw19Sq/iKey9bFjTNO"], ["created_at", "2015-03-17 04:26:09.402743"], ["updated_at", "2015-03-17 04:26:09.402743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.404402"], ["user_id", "bc7916f8-cc5d-11e4-bfaa-705681abff85"], ["created_at", "2015-03-17 04:26:09.405201"], ["updated_at", "2015-03-17 04:26:09.405201"], ["token", "ARiLFfg0p30x-sYdvbv7M1W9qo15eF4nn8ww_-sLwBA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.408541"], ["updated_at", "2015-03-17 04:26:09.408541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7916f8-cc5d-11e4-bfaa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc7b837a-cc5d-11e4-95c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc7916f8-cc5d-11e4-bfaa-705681abff85"], ["organization_id", "bc7b837a-cc5d-11e4-95c9-705681abff85"], ["created_at", "2015-03-17 04:26:09.422769"], ["updated_at", "2015-03-17 04:26:09.422769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:09.428834' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ARiLFfg0p30x-sYdvbv7M1W9qo15eF4nn8ww_-sLwBA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:09.430457"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:09.431696"], ["id", "bc797a3a-cc5d-11e4-aaf3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7916f8-cc5d-11e4-bfaa-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$OZt.QyofsO3IzWZzTrlbk.6FFlb9TGQfHH0YgCKYCRcfCXLNgnvTS"], ["created_at", "2015-03-17 04:26:09.445089"], ["updated_at", "2015-03-17 04:26:09.445089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.447684"], ["user_id", "bc7f8f4c-cc5d-11e4-8a64-705681abff85"], ["created_at", "2015-03-17 04:26:09.448620"], ["updated_at", "2015-03-17 04:26:09.448620"], ["token", "EOh3674KjHYw8-41pVqr7WnKV7UjI5TzNWS898Ki2VY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.453387"], ["updated_at", "2015-03-17 04:26:09.453387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7f8f4c-cc5d-11e4-8a64-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc80eb1c-cc5d-11e4-8bcd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc7f8f4c-cc5d-11e4-8a64-705681abff85"], ["organization_id", "bc80eb1c-cc5d-11e4-8bcd-705681abff85"], ["created_at", "2015-03-17 04:26:09.458499"], ["updated_at", "2015-03-17 04:26:09.458499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$ZFcZJkYUty8YCgsP.12ng.7AbQ79.jjfqL6DcxI2cAN.t53Y8APky"], ["created_at", "2015-03-17 04:26:09.470674"], ["updated_at", "2015-03-17 04:26:09.470674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.472943"], ["user_id", "bc8387c8-cc5d-11e4-ae6b-705681abff85"], ["created_at", "2015-03-17 04:26:09.473918"], ["updated_at", "2015-03-17 04:26:09.473918"], ["token", "BimI3FkwkEx94ag9fApfZuHNWkySz74NBOa89SZh6mM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.478861"], ["updated_at", "2015-03-17 04:26:09.478861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8387c8-cc5d-11e4-ae6b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc84b83c-cc5d-11e4-9f64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc8387c8-cc5d-11e4-ae6b-705681abff85"], ["organization_id", "bc84b83c-cc5d-11e4-9f64-705681abff85"], ["created_at", "2015-03-17 04:26:09.484157"], ["updated_at", "2015-03-17 04:26:09.484157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-28" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-28", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:09.490096' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BimI3FkwkEx94ag9fApfZuHNWkySz74NBOa89SZh6mM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:09.492207"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:09.494182"], ["id", "bc83f910-cc5d-11e4-829c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc8387c8-cc5d-11e4-ae6b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc8387c8-cc5d-11e4-ae6b-705681abff85"], ["name", "org-28"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc84b83c-cc5d-11e4-9f64-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-17 04:26:09.502017"], ["id", "bc84b83c-cc5d-11e4-9f64-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$uVlgRsPG2t5NblfCCvzwnusQ416cEqFxW7a0/POeXxv/G1.snNjD2"], ["created_at", "2015-03-17 04:26:09.511137"], ["updated_at", "2015-03-17 04:26:09.511137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.512835"], ["user_id", "bc89a176-cc5d-11e4-a1f1-705681abff85"], ["created_at", "2015-03-17 04:26:09.513670"], ["updated_at", "2015-03-17 04:26:09.513670"], ["token", "go8W1Vl5XosRl65a377VLqVVYl1ZGZAAwjV-2e380mc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.518278"], ["updated_at", "2015-03-17 04:26:09.518278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc89a176-cc5d-11e4-a1f1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc8abbf6-cc5d-11e4-922c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc89a176-cc5d-11e4-a1f1-705681abff85"], ["organization_id", "bc8abbf6-cc5d-11e4-922c-705681abff85"], ["created_at", "2015-03-17 04:26:09.522851"], ["updated_at", "2015-03-17 04:26:09.522851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-29" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-29", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:09.529165' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "go8W1Vl5XosRl65a377VLqVVYl1ZGZAAwjV-2e380mc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:09.531303"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:09.533067"], ["id", "bc8a1778-cc5d-11e4-bd83-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc89a176-cc5d-11e4-a1f1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc89a176-cc5d-11e4-a1f1-705681abff85"], ["name", "org-29"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bc8abbf6-cc5d-11e4-922c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$tDZENG9MMK1g7DPgcWxTjexNQEm6jhLNKAwwuAQEWTeDdN5eVhcLm"], ["created_at", "2015-03-17 04:26:09.548638"], ["updated_at", "2015-03-17 04:26:09.548638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.550750"], ["user_id", "bc8f6598-cc5d-11e4-97a8-705681abff85"], ["created_at", "2015-03-17 04:26:09.551565"], ["updated_at", "2015-03-17 04:26:09.551565"], ["token", "VnXs9-quwO4jg0PWm4H25ZzW4JcgdGlCO0VVYaNrzdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.555208"], ["updated_at", "2015-03-17 04:26:09.555208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8f6598-cc5d-11e4-97a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc905af2-cc5d-11e4-a068-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc8f6598-cc5d-11e4-97a8-705681abff85"], ["organization_id", "bc905af2-cc5d-11e4-a068-705681abff85"], ["created_at", "2015-03-17 04:26:09.558628"], ["updated_at", "2015-03-17 04:26:09.558628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$IASWLf5jz9ZT4YgbiyiLsu5np3Bnda2M7LvcSughX2G9hzxVqO2Zy"], ["created_at", "2015-03-17 04:26:09.571247"], ["updated_at", "2015-03-17 04:26:09.571247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:26:09.573237"], ["user_id", "bc92ccc4-cc5d-11e4-b3e4-705681abff85"], ["created_at", "2015-03-17 04:26:09.574107"], ["updated_at", "2015-03-17 04:26:09.574107"], ["token", "yYA_uWMxHchbEGc0Hw8AvVcf5aSGkkc0BUZw6bsjw6Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:26:09.578375"], ["updated_at", "2015-03-17 04:26:09.578375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc92ccc4-cc5d-11e4-b3e4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc93e1a4-cc5d-11e4-b948-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc92ccc4-cc5d-11e4-b3e4-705681abff85"], ["organization_id", "bc93e1a4-cc5d-11e4-b948-705681abff85"], ["created_at", "2015-03-17 04:26:09.583160"], ["updated_at", "2015-03-17 04:26:09.583160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/bc93e1a4-cc5d-11e4-b948-705681abff85" for 127.0.0.1 at 2015-03-16 21:26:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"bc93e1a4-cc5d-11e4-b948-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:26:09.588503' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yYA_uWMxHchbEGc0Hw8AvVcf5aSGkkc0BUZw6bsjw6Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:26:09.589915"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:26:09.590974"], ["id", "bc935a54-cc5d-11e4-ac37-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc92ccc4-cc5d-11e4-b3e4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bc92ccc4-cc5d-11e4-b3e4-705681abff85"], ["id", "bc93e1a4-cc5d-11e4-b948-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bc93e1a4-cc5d-11e4-b948-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$7gJEw4f7odLf.euhJIvhOOqCONlY7Vwzgkf9TEQ7DxMzpLZoWf0LW"], ["created_at", "2015-03-17 04:33:22.516874"], ["updated_at", "2015-03-17 04:33:22.516874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:22.551432"], ["user_id", "bea490e6-cc5e-11e4-82b2-705681abff85"], ["created_at", "2015-03-17 04:33:22.558321"], ["updated_at", "2015-03-17 04:33:22.558321"], ["token", "w72G4SQahfOca22cEaeOAL0ZeAcXpQzKd6KuCq9ITno"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.570770"], ["updated_at", "2015-03-17 04:33:22.570770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bea490e6-cc5e-11e4-82b2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bea95d4c-cc5e-11e4-ba63-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bea490e6-cc5e-11e4-82b2-705681abff85"], ["organization_id", "bea95d4c-cc5e-11e4-ba63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:22.584985"], ["updated_at", "2015-03-17 04:33:22.584985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bea95d4c-cc5e-11e4-ba63-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "bea95d4c-cc5e-11e4-ba63-705681abff85"], ["created_at", "2015-03-17 04:33:22.608845"], ["updated_at", "2015-03-17 04:33:22.608845"], ["token", "aHWHMgT1064xode3DeXD8N6SKc9uH6RnP5Fyu-nY2Fs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$mmXhF1X3VFP01KwLokV.1uwdtFsZcsTc/KJA3Yi3lHL28tJSD4DPe"], ["created_at", "2015-03-17 04:33:22.617055"], ["updated_at", "2015-03-17 04:33:22.617055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.621098"], ["updated_at", "2015-03-17 04:33:22.621098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'beb05b9c-cc5e-11e4-af67-705681abff85' AND "clubhouse_memberships"."organization_id" = 'beb0faca-cc5e-11e4-bcf2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "beb05b9c-cc5e-11e4-af67-705681abff85"], ["organization_id", "beb0faca-cc5e-11e4-bcf2-705681abff85"], ["created_at", "2015-03-17 04:33:22.625243"], ["updated_at", "2015-03-17 04:33:22.625243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bea95d4c-cc5e-11e4-ba63-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:33:22 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$63p7W8YPfyN.L5ExjXSPIesGSaTeMn.eQPYVJpxltOq70i0Pv/ZcW"], ["created_at", "2015-03-17 04:33:22.644529"], ["updated_at", "2015-03-17 04:33:22.644529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:22.646436"], ["user_id", "beb48dfc-cc5e-11e4-972b-705681abff85"], ["created_at", "2015-03-17 04:33:22.647239"], ["updated_at", "2015-03-17 04:33:22.647239"], ["token", "hLUuhlal3mrR9dl9_8GSjWizJ0iYZroYWTJtPjHeGeA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.651799"], ["updated_at", "2015-03-17 04:33:22.651799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'beb48dfc-cc5e-11e4-972b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'beb5a714-cc5e-11e4-b020-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "beb48dfc-cc5e-11e4-972b-705681abff85"], ["organization_id", "beb5a714-cc5e-11e4-b020-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:22.656535"], ["updated_at", "2015-03-17 04:33:22.656535"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'beb5a714-cc5e-11e4-b020-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "beb5a714-cc5e-11e4-b020-705681abff85"], ["created_at", "2015-03-17 04:33:22.663652"], ["updated_at", "2015-03-17 04:33:22.663652"], ["token", "UeSgRXz_Mi6jtygD_XXLVhm6kTZqeiZafKi2rCsWX20"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Z8POkc6Q.AFL6Js9bqn3S.r0TFnn8AQy5ogCih.h3Da6tESOOQ5t."], ["created_at", "2015-03-17 04:33:22.675329"], ["updated_at", "2015-03-17 04:33:22.675329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.685312"], ["updated_at", "2015-03-17 04:33:22.685312"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'beb9d3c0-cc5e-11e4-b965-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bebae1b6-cc5e-11e4-a008-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "beb9d3c0-cc5e-11e4-b965-705681abff85"], ["organization_id", "bebae1b6-cc5e-11e4-a008-705681abff85"], ["created_at", "2015-03-17 04:33:22.693106"], ["updated_at", "2015-03-17 04:33:22.693106"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-16 21:33:22 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$gCiCg8J1OxKmaIRdygBWneDD0Te9AW0dD/LET/nc76iPPAnKTcF3u"], ["created_at", "2015-03-17 04:33:22.713546"], ["updated_at", "2015-03-17 04:33:22.713546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:22.716032"], ["user_id", "bebf276c-cc5e-11e4-abe7-705681abff85"], ["created_at", "2015-03-17 04:33:22.716955"], ["updated_at", "2015-03-17 04:33:22.716955"], ["token", "gTtbzFFMRJt-BYCjf1oPsWEfrtD_kE1_bSMohi8R_Mg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.721061"], ["updated_at", "2015-03-17 04:33:22.721061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bebf276c-cc5e-11e4-abe7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bec0397c-cc5e-11e4-910e-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bebf276c-cc5e-11e4-abe7-705681abff85"], ["organization_id", "bec0397c-cc5e-11e4-910e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:22.724957"], ["updated_at", "2015-03-17 04:33:22.724957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'bec0397c-cc5e-11e4-910e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "bec0397c-cc5e-11e4-910e-705681abff85"], ["created_at", "2015-03-17 04:33:22.729775"], ["updated_at", "2015-03-17 04:33:22.729775"], ["token", "gEg1mymde5ncnIMPI1hdoX11Z0V7uemKmIh7-7XXw24"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$cc.uQS/EDu64jippUQoj/u/BarqvbaK0kiexLc84Owocp7kZMS0ee"], ["created_at", "2015-03-17 04:33:22.734534"], ["updated_at", "2015-03-17 04:33:22.734534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.738161"], ["updated_at", "2015-03-17 04:33:22.738161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bec24622-cc5e-11e4-b979-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bec2d29a-cc5e-11e4-9d2c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bec24622-cc5e-11e4-b979-705681abff85"], ["organization_id", "bec2d29a-cc5e-11e4-9d2c-705681abff85"], ["created_at", "2015-03-17 04:33:22.741920"], ["updated_at", "2015-03-17 04:33:22.741920"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:33:22 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$PnR50fWdCq6QEmOJxfBE3.4iXuoD2ZfrcCildVz5NZRWdaLjgpaES"], ["created_at", "2015-03-17 04:33:22.752609"], ["updated_at", "2015-03-17 04:33:22.752609"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:22.754932"], ["user_id", "bec51014-cc5e-11e4-afde-705681abff85"], ["created_at", "2015-03-17 04:33:22.755986"], ["updated_at", "2015-03-17 04:33:22.755986"], ["token", "wJKUBF-Mugzcc6RYQpNzyNjc9lBOSps9p7xR1serRbs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.760661"], ["updated_at", "2015-03-17 04:33:22.760661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bec51014-cc5e-11e4-afde-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bec64c72-cc5e-11e4-b4f9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bec51014-cc5e-11e4-afde-705681abff85"], ["organization_id", "bec64c72-cc5e-11e4-b4f9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:22.765716"], ["updated_at", "2015-03-17 04:33:22.765716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'bec64c72-cc5e-11e4-b4f9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "bec64c72-cc5e-11e4-b4f9-705681abff85"], ["created_at", "2015-03-17 04:33:22.769633"], ["updated_at", "2015-03-17 04:33:22.769633"], ["token", "rJgzm1dnjff4w2NWh-7bFQv-ayou5czaJQrOg_AzC-4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$4T7WEDKpUGKR0wUlz76knuQQ9wNvgAywSYs28XdJXTDxUCk7MgXRO"], ["created_at", "2015-03-17 04:33:22.774428"], ["updated_at", "2015-03-17 04:33:22.774428"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.778734"], ["updated_at", "2015-03-17 04:33:22.778734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bec85a58-cc5e-11e4-9b65-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bec905de-cc5e-11e4-93cd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bec85a58-cc5e-11e4-9b65-705681abff85"], ["organization_id", "bec905de-cc5e-11e4-93cd-705681abff85"], ["created_at", "2015-03-17 04:33:22.782353"], ["updated_at", "2015-03-17 04:33:22.782353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:33:22 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$hh6NHwOebsxkSs/Of33iFOn6IgWMG3iLU0aQAI58PLp42A5NfjkDO"], ["created_at", "2015-03-17 04:33:22.793336"], ["updated_at", "2015-03-17 04:33:22.793336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:22.795880"], ["user_id", "becb4e20-cc5e-11e4-b2f6-705681abff85"], ["created_at", "2015-03-17 04:33:22.796707"], ["updated_at", "2015-03-17 04:33:22.796707"], ["token", "yMvQifkscEvuM5BehtN8lTPvCb-UhKqjIqi11Vdd8Q8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.800582"], ["updated_at", "2015-03-17 04:33:22.800582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'becb4e20-cc5e-11e4-b2f6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'becc5810-cc5e-11e4-949a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "becb4e20-cc5e-11e4-b2f6-705681abff85"], ["organization_id", "becc5810-cc5e-11e4-949a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:22.804587"], ["updated_at", "2015-03-17 04:33:22.804587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'becc5810-cc5e-11e4-949a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "becc5810-cc5e-11e4-949a-705681abff85"], ["created_at", "2015-03-17 04:33:22.808750"], ["updated_at", "2015-03-17 04:33:22.808750"], ["token", "Od8W-wAGr2JWSt2K8gq75jJV8wuV9P-RH937yKsQQN0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/becd9f68-cc5e-11e4-825a-705681abff85" for 127.0.0.1 at 2015-03-16 21:33:22 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"becd9f68-cc5e-11e4-825a-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:22.832666' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yMvQifkscEvuM5BehtN8lTPvCb-UhKqjIqi11Vdd8Q8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:22.840624"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:22.841904"], ["id", "becbc9ea-cc5e-11e4-bffc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "becb4e20-cc5e-11e4-b2f6-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "becb4e20-cc5e-11e4-b2f6-705681abff85"]] Completed 500 Internal Server Error in 35ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$5VfD3soZMBkE4e4QiIuqYu9qGfQTsW2fdHIOHvKX8gPRlpFPTADN6"], ["created_at", "2015-03-17 04:33:22.872907"], ["updated_at", "2015-03-17 04:33:22.872907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:22.874646"], ["user_id", "bed765ca-cc5e-11e4-989a-705681abff85"], ["created_at", "2015-03-17 04:33:22.876531"], ["updated_at", "2015-03-17 04:33:22.876531"], ["token", "CDXS8A2W7bkZIFiwjwAx9E_ysYvPRa2j_wcOAil1U3c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.881657"], ["updated_at", "2015-03-17 04:33:22.881657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bed765ca-cc5e-11e4-989a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bed8b826-cc5e-11e4-86d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bed765ca-cc5e-11e4-989a-705681abff85"], ["organization_id", "bed8b826-cc5e-11e4-86d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:22.885088"], ["updated_at", "2015-03-17 04:33:22.885088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'bed8b826-cc5e-11e4-86d1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "bed8b826-cc5e-11e4-86d1-705681abff85"], ["created_at", "2015-03-17 04:33:22.889240"], ["updated_at", "2015-03-17 04:33:22.889240"], ["token", "xJ6b_uJ63jIYGWnFM-hkITyynbpC8b8cCH93wivK5AM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-16 21:33:22 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Xp/enzGKm47quDcakCHKEuI7HAB3hJGQAMDMS90ORJ8iJVPB8ZI1y"], ["created_at", "2015-03-17 04:33:22.901149"], ["updated_at", "2015-03-17 04:33:22.901149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:22.902762"], ["user_id", "bedbb22e-cc5e-11e4-94fb-705681abff85"], ["created_at", "2015-03-17 04:33:22.903747"], ["updated_at", "2015-03-17 04:33:22.903747"], ["token", "Aj4LpIg1Z53381uEYmzEXQWLOr5vQnpB7jdUh6Lpk5g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.907898"], ["updated_at", "2015-03-17 04:33:22.907898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bedbb22e-cc5e-11e4-94fb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bedcbd04-cc5e-11e4-98dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bedbb22e-cc5e-11e4-94fb-705681abff85"], ["organization_id", "bedcbd04-cc5e-11e4-98dd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:22.912137"], ["updated_at", "2015-03-17 04:33:22.912137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'bedcbd04-cc5e-11e4-98dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "bedcbd04-cc5e-11e4-98dd-705681abff85"], ["created_at", "2015-03-17 04:33:22.916344"], ["updated_at", "2015-03-17 04:33:22.916344"], ["token", "GtKuhbP-3XdZ2L7be5bb6We5McgZLrkTsSp4O-IYHn0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/bede0b3c-cc5e-11e4-9b0a-705681abff85" for 127.0.0.1 at 2015-03-16 21:33:22 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"bede0b3c-cc5e-11e4-9b0a-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:22.921611' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Aj4LpIg1Z53381uEYmzEXQWLOr5vQnpB7jdUh6Lpk5g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:22.923133"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:22.924349"], ["id", "bedc2628-cc5e-11e4-9926-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bedbb22e-cc5e-11e4-94fb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bedbb22e-cc5e-11e4-94fb-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$mrG.68mZleNZPARrCsce5eChMUFqe3AsqapBs7aLG5BayPOxz1IBu"], ["created_at", "2015-03-17 04:33:22.935463"], ["updated_at", "2015-03-17 04:33:22.935463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:22.970296"], ["user_id", "bee5fb80-cc5e-11e4-9074-705681abff85"], ["created_at", "2015-03-17 04:33:22.971103"], ["updated_at", "2015-03-17 04:33:22.971103"], ["token", "b4MDY1KZza0nlpU6779hf1baK6crFYmpjVDK9-oVFPg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.974504"], ["updated_at", "2015-03-17 04:33:22.974504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bee5fb80-cc5e-11e4-9074-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bee6e086-cc5e-11e4-83b4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bee5fb80-cc5e-11e4-9074-705681abff85"], ["organization_id", "bee6e086-cc5e-11e4-83b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:22.978280"], ["updated_at", "2015-03-17 04:33:22.978280"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'bee6e086-cc5e-11e4-83b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "bee6e086-cc5e-11e4-83b4-705681abff85"], ["created_at", "2015-03-17 04:33:22.982413"], ["updated_at", "2015-03-17 04:33:22.982413"], ["token", "PZFEHU2yBN3ZhjS11VNRXBwUUKqoQHDkqghU7Ft_qjQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-16 21:33:22 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$aQeDoJVt4Kx0eiKxPH8O9ODssMizFCPzfWzxwaQlTrWx8/zc9GpQq"], ["created_at", "2015-03-17 04:33:22.992971"], ["updated_at", "2015-03-17 04:33:22.992971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:22.995031"], ["user_id", "bee9bf90-cc5e-11e4-ac68-705681abff85"], ["created_at", "2015-03-17 04:33:22.996015"], ["updated_at", "2015-03-17 04:33:22.996015"], ["token", "h5vmNWLVX389oPtm18DzM8hL5sgMWoT594biPyikwbQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:22.999808"], ["updated_at", "2015-03-17 04:33:22.999808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bee9bf90-cc5e-11e4-ac68-705681abff85' AND "clubhouse_memberships"."organization_id" = 'beeac016-cc5e-11e4-9130-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bee9bf90-cc5e-11e4-ac68-705681abff85"], ["organization_id", "beeac016-cc5e-11e4-9130-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:23.004095"], ["updated_at", "2015-03-17 04:33:23.004095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'beeac016-cc5e-11e4-9130-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "beeac016-cc5e-11e4-9130-705681abff85"], ["created_at", "2015-03-17 04:33:23.007879"], ["updated_at", "2015-03-17 04:33:23.007879"], ["token", "ZBds8nnqA06YnHXq59c5frELzq5doWLPtXPeJAx4euM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/beebfb5c-cc5e-11e4-b145-705681abff85" for 127.0.0.1 at 2015-03-16 21:33:23 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"beebfb5c-cc5e-11e4-b145-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:23.013644' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "h5vmNWLVX389oPtm18DzM8hL5sgMWoT594biPyikwbQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:23.015313"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:23.016500"], ["id", "beea39f2-cc5e-11e4-873f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bee9bf90-cc5e-11e4-ac68-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "bee9bf90-cc5e-11e4-ac68-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$P/4gu5mS2FRtecV0foSVkee6MUTFmoJzxJA/PfkyMR3CedalZkt6i"], ["created_at", "2015-03-17 04:33:23.026336"], ["updated_at", "2015-03-17 04:33:23.026336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:23.028347"], ["user_id", "beeed084-cc5e-11e4-95b5-705681abff85"], ["created_at", "2015-03-17 04:33:23.029350"], ["updated_at", "2015-03-17 04:33:23.029350"], ["token", "xaKzd9hZ7QV1MHINYGHaGeC7OBz9R9kD1VBJkJvbqvQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:23.034136"], ["updated_at", "2015-03-17 04:33:23.034136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'beeed084-cc5e-11e4-95b5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'beeffa72-cc5e-11e4-86c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "beeed084-cc5e-11e4-95b5-705681abff85"], ["organization_id", "beeffa72-cc5e-11e4-86c5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:23.037657"], ["updated_at", "2015-03-17 04:33:23.037657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'beeffa72-cc5e-11e4-86c5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "beeffa72-cc5e-11e4-86c5-705681abff85"], ["created_at", "2015-03-17 04:33:23.041302"], ["updated_at", "2015-03-17 04:33:23.041302"], ["token", "kseUA49FPMuAMkw_OTAE0f0hSuWlmezcnRNcvbKXUUI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-16 21:33:23 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$XaXeS3Q2n6T8ZvXq1fbVOeoU6xuX41Bq/UVermzowlIts6k/6idgK"], ["created_at", "2015-03-17 04:33:23.053258"], ["updated_at", "2015-03-17 04:33:23.053258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:23.054834"], ["user_id", "bef2e570-cc5e-11e4-b8ff-705681abff85"], ["created_at", "2015-03-17 04:33:23.055756"], ["updated_at", "2015-03-17 04:33:23.055756"], ["token", "dyA7xi9YkhKKpY4IUFpw1SbpRCtBJ2-v6ch6P6KuZ5M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:23.059391"], ["updated_at", "2015-03-17 04:33:23.059391"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bef2e570-cc5e-11e4-b8ff-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bef3d7b4-cc5e-11e4-8457-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bef2e570-cc5e-11e4-b8ff-705681abff85"], ["organization_id", "bef3d7b4-cc5e-11e4-8457-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:23.064005"], ["updated_at", "2015-03-17 04:33:23.064005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'bef3d7b4-cc5e-11e4-8457-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "bef3d7b4-cc5e-11e4-8457-705681abff85"], ["created_at", "2015-03-17 04:33:23.067781"], ["updated_at", "2015-03-17 04:33:23.067781"], ["token", "-TOzlb1TN2WWtP2A79ci40BazhBql4t3bhM6rcqFVyU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:33:23 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Ir0eWcobjVaC3Ge/IF7zE.rvCei2wzByo/4uvEsQ1eecxocAB0JmC"], ["created_at", "2015-03-17 04:33:23.078185"], ["updated_at", "2015-03-17 04:33:23.078185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:23.080255"], ["user_id", "bef6ba7e-cc5e-11e4-aaff-705681abff85"], ["created_at", "2015-03-17 04:33:23.081016"], ["updated_at", "2015-03-17 04:33:23.081016"], ["token", "tGV37vEa59OirChGwjbWUBD8eoTk4kEZP80eLgu2RWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:23.084973"], ["updated_at", "2015-03-17 04:33:23.084973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bef6ba7e-cc5e-11e4-aaff-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bef7c55e-cc5e-11e4-8ba2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bef6ba7e-cc5e-11e4-aaff-705681abff85"], ["organization_id", "bef7c55e-cc5e-11e4-8ba2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:23.089323"], ["updated_at", "2015-03-17 04:33:23.089323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'bef7c55e-cc5e-11e4-8ba2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "bef7c55e-cc5e-11e4-8ba2-705681abff85"], ["created_at", "2015-03-17 04:33:23.093098"], ["updated_at", "2015-03-17 04:33:23.093098"], ["token", "iHHAsR3cz1HgZhFBCTzIVS0RaRjaLGnlMf3Dms1HmHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:33:23 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$IC48oNvVI4SEOCw8C3QNFeaA/AWlKfUg2c1aVpLe8323b.VLNNwsS"], ["created_at", "2015-03-17 04:33:23.107880"], ["updated_at", "2015-03-17 04:33:23.107880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:23.109656"], ["user_id", "befb3fea-cc5e-11e4-a6fa-705681abff85"], ["created_at", "2015-03-17 04:33:23.110636"], ["updated_at", "2015-03-17 04:33:23.110636"], ["token", "iGTw-KWgZJ05_LqAgJ_RMBS1rbws_Fe-dyedcwFLK8I"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:23.115081"], ["updated_at", "2015-03-17 04:33:23.115081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'befb3fea-cc5e-11e4-a6fa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'befc53e4-cc5e-11e4-8886-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "befb3fea-cc5e-11e4-a6fa-705681abff85"], ["organization_id", "befc53e4-cc5e-11e4-8886-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:23.118658"], ["updated_at", "2015-03-17 04:33:23.118658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'befc53e4-cc5e-11e4-8886-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "befc53e4-cc5e-11e4-8886-705681abff85"], ["created_at", "2015-03-17 04:33:23.122766"], ["updated_at", "2015-03-17 04:33:23.122766"], ["token", "9rXRlOotTIx8L2Op-7RCDha9GWGoW-b5LJZnLnvG9Tw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:33:23 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Ba9D6wojwilBiVyWKE8soOxTQt6KYvbNCTk1Dcpxf.fExdD1lfTNi"], ["created_at", "2015-03-17 04:33:23.133555"], ["updated_at", "2015-03-17 04:33:23.133555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:23.135329"], ["user_id", "beff2a88-cc5e-11e4-90a5-705681abff85"], ["created_at", "2015-03-17 04:33:23.136420"], ["updated_at", "2015-03-17 04:33:23.136420"], ["token", "nQjop1B7P9n-fP73z1X4svgatOniqwHVKCGAtZ1FR_A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:23.140593"], ["updated_at", "2015-03-17 04:33:23.140593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'beff2a88-cc5e-11e4-90a5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bf003cac-cc5e-11e4-be08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "beff2a88-cc5e-11e4-90a5-705681abff85"], ["organization_id", "bf003cac-cc5e-11e4-be08-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:23.144775"], ["updated_at", "2015-03-17 04:33:23.144775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'bf003cac-cc5e-11e4-be08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "bf003cac-cc5e-11e4-be08-705681abff85"], ["created_at", "2015-03-17 04:33:23.148754"], ["updated_at", "2015-03-17 04:33:23.148754"], ["token", "Q0zh0sfXNXlhDKNZzqLx-XBWke6hsBjh7bxpUM17dg0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:33:23 -0700  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$x8WspqWZs8HwGQcwIzrlsu1YElQHcp9L2CNoxIgc4auv1.KdgtLVC"], ["created_at", "2015-03-17 04:33:23.160158"], ["updated_at", "2015-03-17 04:33:23.160158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:23.163325"], ["user_id", "bf035450-cc5e-11e4-8ef7-705681abff85"], ["created_at", "2015-03-17 04:33:23.164280"], ["updated_at", "2015-03-17 04:33:23.164280"], ["token", "sSu8_2K8m83LGSiOVq0On65w6hlyNQ45oKSayEtHdeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:23.168538"], ["updated_at", "2015-03-17 04:33:23.168538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bf035450-cc5e-11e4-8ef7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bf047d6c-cc5e-11e4-8cfb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bf035450-cc5e-11e4-8ef7-705681abff85"], ["organization_id", "bf047d6c-cc5e-11e4-8cfb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:23.172202"], ["updated_at", "2015-03-17 04:33:23.172202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'bf047d6c-cc5e-11e4-8cfb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "bf047d6c-cc5e-11e4-8cfb-705681abff85"], ["created_at", "2015-03-17 04:33:23.176173"], ["updated_at", "2015-03-17 04:33:23.176173"], ["token", "8bEKbM2kw5uLcipeCofHS2peUCgmUr7Zh_CY0MVbNqU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-16 21:33:23 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$38KznNxZrJV5kBr6nx.Rauk/Vpo8KYqQ03NPZ6.FeNhP5XlF3jcZi"], ["created_at", "2015-03-17 04:33:23.186795"], ["updated_at", "2015-03-17 04:33:23.186795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:23.188494"], ["user_id", "bf07470e-cc5e-11e4-a62c-705681abff85"], ["created_at", "2015-03-17 04:33:23.189396"], ["updated_at", "2015-03-17 04:33:23.189396"], ["token", "W7ThLL_FUzG-tHDpZaR-UMcegRC0EkXY26jUcVvX7NY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:23.194289"], ["updated_at", "2015-03-17 04:33:23.194289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bf07470e-cc5e-11e4-a62c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bf086bd4-cc5e-11e4-a2ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bf07470e-cc5e-11e4-a62c-705681abff85"], ["organization_id", "bf086bd4-cc5e-11e4-a2ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:23.197726"], ["updated_at", "2015-03-17 04:33:23.197726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'bf086bd4-cc5e-11e4-a2ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "bf086bd4-cc5e-11e4-a2ec-705681abff85"], ["created_at", "2015-03-17 04:33:23.201251"], ["updated_at", "2015-03-17 04:33:23.201251"], ["token", "M4qHbAqpDuVej51igMu5AxiYnlOjrj9vVnvW00O9HkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bf086bd4-cc5e-11e4-a2ec-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:33:23 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$j5AUeW.oCbvUN.f1gdZig.p2e6fbS5K9.ZhMrtb9zv1KMEEDngKsu"], ["created_at", "2015-03-17 04:33:23.212461"], ["updated_at", "2015-03-17 04:33:23.212461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:23.214055"], ["user_id", "bf0b31d4-cc5e-11e4-bac5-705681abff85"], ["created_at", "2015-03-17 04:33:23.214844"], ["updated_at", "2015-03-17 04:33:23.214844"], ["token", "X8wBv6YbqATj4t5PlV_5vudJuaR_bmrP0j1X8-QN6Qw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:23.218566"], ["updated_at", "2015-03-17 04:33:23.218566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bf0b31d4-cc5e-11e4-bac5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bf0c1d2e-cc5e-11e4-9df2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bf0b31d4-cc5e-11e4-bac5-705681abff85"], ["organization_id", "bf0c1d2e-cc5e-11e4-9df2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:23.222005"], ["updated_at", "2015-03-17 04:33:23.222005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'bf0c1d2e-cc5e-11e4-9df2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "bf0c1d2e-cc5e-11e4-9df2-705681abff85"], ["created_at", "2015-03-17 04:33:23.225702"], ["updated_at", "2015-03-17 04:33:23.225702"], ["token", "sOKBKm9oG46UOc4RU6APQjRPYENprVuWNX0SMo9CQY8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bf0c1d2e-cc5e-11e4-9df2-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:33:23 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$mdCt2M0pVcFNP5MSwLQLJ./aVqbIwkH3D57MGdmczWImsGR09bE.y"], ["created_at", "2015-03-17 04:33:23.234915"], ["updated_at", "2015-03-17 04:33:23.234915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:23.236973"], ["user_id", "bf0ea74c-cc5e-11e4-a738-705681abff85"], ["created_at", "2015-03-17 04:33:23.237780"], ["updated_at", "2015-03-17 04:33:23.237780"], ["token", "3kM5xo2EHdU-eHi2xrn1A5poPR9_cR4f10s7zH8ZVEM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:23.241402"], ["updated_at", "2015-03-17 04:33:23.241402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bf0ea74c-cc5e-11e4-a738-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bf0f99ea-cc5e-11e4-9434-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bf0ea74c-cc5e-11e4-a738-705681abff85"], ["organization_id", "bf0f99ea-cc5e-11e4-9434-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:23.245567"], ["updated_at", "2015-03-17 04:33:23.245567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'bf0f99ea-cc5e-11e4-9434-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "bf0f99ea-cc5e-11e4-9434-705681abff85"], ["created_at", "2015-03-17 04:33:23.249711"], ["updated_at", "2015-03-17 04:33:23.249711"], ["token", "EGlTdNCWO8Qg5m_cr4CSQlf0meIcQ5EFa04F_MDrTU8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bf0f99ea-cc5e-11e4-9434-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:33:23 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (23.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$i5mQ/BLe4u6XnTXo3Djjqesom9ZREYB60vHbqnPM5n1SiZ7fEZway"], ["created_at", "2015-03-17 04:33:35.919082"], ["updated_at", "2015-03-17 04:33:35.919082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:35.951958"], ["user_id", "c6a1b22e-cc5e-11e4-b2a2-705681abff85"], ["created_at", "2015-03-17 04:33:35.957662"], ["updated_at", "2015-03-17 04:33:35.957662"], ["token", "6D6h5eaw7FRbtIcEjo07bMU0qaCUFuAIwuVprkHhGuI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:35.967067"], ["updated_at", "2015-03-17 04:33:35.967067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6a1b22e-cc5e-11e4-b2a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6a56f18-cc5e-11e4-8ba7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6a1b22e-cc5e-11e4-b2a2-705681abff85"], ["organization_id", "c6a56f18-cc5e-11e4-8ba7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:35.978813"], ["updated_at", "2015-03-17 04:33:35.978813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'c6a56f18-cc5e-11e4-8ba7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "c6a56f18-cc5e-11e4-8ba7-705681abff85"], ["created_at", "2015-03-17 04:33:36.008404"], ["updated_at", "2015-03-17 04:33:36.008404"], ["token", "4GAUaK7edRS4UW5xTjsjZhLubsx51BvB8NhwF7dYWPo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$zkUabA3SVkwoWahjA7Syg.FTZLaprsJsNUx8t2LsyubomRafVhqLy"], ["created_at", "2015-03-17 04:33:36.041131"], ["updated_at", "2015-03-17 04:33:36.041131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.043691"], ["user_id", "c6b0c958-cc5e-11e4-a9db-705681abff85"], ["created_at", "2015-03-17 04:33:36.044540"], ["updated_at", "2015-03-17 04:33:36.044540"], ["token", "sIm0GQpZH2EGHFEDRhdoJBtzw5X9jk03zpbzwTiGrlg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.048168"], ["updated_at", "2015-03-17 04:33:36.048168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6b0c958-cc5e-11e4-a9db-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6b1c254-cc5e-11e4-9f48-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6b0c958-cc5e-11e4-a9db-705681abff85"], ["organization_id", "c6b1c254-cc5e-11e4-9f48-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.051659"], ["updated_at", "2015-03-17 04:33:36.051659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'c6b1c254-cc5e-11e4-9f48-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "c6b1c254-cc5e-11e4-9f48-705681abff85"], ["created_at", "2015-03-17 04:33:36.055525"], ["updated_at", "2015-03-17 04:33:36.055525"], ["token", "MpWvfM4lddwtNXp6XOJtIZuCVjVSMdC2Sg5wh6iB-b0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.063446' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sIm0GQpZH2EGHFEDRhdoJBtzw5X9jk03zpbzwTiGrlg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.071325"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.072696"], ["id", "c6b1409a-cc5e-11e4-8ee8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6b0c958-cc5e-11e4-a9db-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6b0c958-cc5e-11e4-a9db-705681abff85"]] Completed 500 Internal Server Error in 30ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$7WAPXRZ4HUopOy1jGcUSdOlUDaSAREBUnaD9Y4Ay1yt/dY66ID/ZK"], ["created_at", "2015-03-17 04:33:36.100094"], ["updated_at", "2015-03-17 04:33:36.100094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.101813"], ["user_id", "c6b9b414-cc5e-11e4-a1b5-705681abff85"], ["created_at", "2015-03-17 04:33:36.102621"], ["updated_at", "2015-03-17 04:33:36.102621"], ["token", "-wOo0vqOWMXTYt3a2dCkRRJs3FCq0VI-O54nalPilRY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.106037"], ["updated_at", "2015-03-17 04:33:36.106037"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6b9b414-cc5e-11e4-a1b5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6ba967c-cc5e-11e4-be15-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6b9b414-cc5e-11e4-a1b5-705681abff85"], ["organization_id", "c6ba967c-cc5e-11e4-be15-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.111034"], ["updated_at", "2015-03-17 04:33:36.111034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c6ba967c-cc5e-11e4-be15-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c6ba967c-cc5e-11e4-be15-705681abff85"], ["created_at", "2015-03-17 04:33:36.114967"], ["updated_at", "2015-03-17 04:33:36.114967"], ["token", "xs0wSb53G7C6-ynbf3hJ3scT8lNP7HnXvkDEp-KiRrw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.120225' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-wOo0vqOWMXTYt3a2dCkRRJs3FCq0VI-O54nalPilRY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.121596"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.122684"], ["id", "c6ba192c-cc5e-11e4-b959-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6b9b414-cc5e-11e4-a1b5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6b9b414-cc5e-11e4-a1b5-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$hKDpGJOrr/G6iWNN/AizPuaZxChYYYV1KKzHsBYWLDhlZIW/Z6FQi"], ["created_at", "2015-03-17 04:33:36.133292"], ["updated_at", "2015-03-17 04:33:36.133292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.135167"], ["user_id", "c6bec9c2-cc5e-11e4-a7d1-705681abff85"], ["created_at", "2015-03-17 04:33:36.135974"], ["updated_at", "2015-03-17 04:33:36.135974"], ["token", "mCRhT0zZmRSoVwuULF-_AC3vjXrC4vkcrGbV9DAXic4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.139493"], ["updated_at", "2015-03-17 04:33:36.139493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6bec9c2-cc5e-11e4-a7d1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6bfb1fc-cc5e-11e4-ac66-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6bec9c2-cc5e-11e4-a7d1-705681abff85"], ["organization_id", "c6bfb1fc-cc5e-11e4-ac66-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.143572"], ["updated_at", "2015-03-17 04:33:36.143572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'c6bfb1fc-cc5e-11e4-ac66-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "c6bfb1fc-cc5e-11e4-ac66-705681abff85"], ["created_at", "2015-03-17 04:33:36.147549"], ["updated_at", "2015-03-17 04:33:36.147549"], ["token", "Xnl9mhb8z8bugFdLztJZjXuxReHknEDloAsQm1uqB_4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.152858' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mCRhT0zZmRSoVwuULF-_AC3vjXrC4vkcrGbV9DAXic4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.154437"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.155869"], ["id", "c6bf32fe-cc5e-11e4-b911-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6bec9c2-cc5e-11e4-a7d1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6bec9c2-cc5e-11e4-a7d1-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$j9jPdUmzIqhKtES.5OKefeM1YfF.Yx6otEqh1BMFTaZkaHJtYDIXu"], ["created_at", "2015-03-17 04:33:36.166501"], ["updated_at", "2015-03-17 04:33:36.166501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.168186"], ["user_id", "c6c3d458-cc5e-11e4-800e-705681abff85"], ["created_at", "2015-03-17 04:33:36.169014"], ["updated_at", "2015-03-17 04:33:36.169014"], ["token", "M82X0ntg5UwIJ4J6CGHe0aQyYmKG0kFBZ-KJJ4t2BUk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.172764"], ["updated_at", "2015-03-17 04:33:36.172764"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6c3d458-cc5e-11e4-800e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6c4dfb0-cc5e-11e4-9542-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6c3d458-cc5e-11e4-800e-705681abff85"], ["organization_id", "c6c4dfb0-cc5e-11e4-9542-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.182670"], ["updated_at", "2015-03-17 04:33:36.182670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'c6c4dfb0-cc5e-11e4-9542-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "c6c4dfb0-cc5e-11e4-9542-705681abff85"], ["created_at", "2015-03-17 04:33:36.187836"], ["updated_at", "2015-03-17 04:33:36.187836"], ["token", "lqOzr8eVUiSBu9zLxAzweChCKm1RXOrqoZYEsrOT8qA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/c6c71e24-cc5e-11e4-a731-705681abff85" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"c6c71e24-cc5e-11e4-a731-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.193087' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M82X0ntg5UwIJ4J6CGHe0aQyYmKG0kFBZ-KJJ4t2BUk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.194501"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.195624"], ["id", "c6c43f42-cc5e-11e4-9140-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6c3d458-cc5e-11e4-800e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6c3d458-cc5e-11e4-800e-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$XKo3QbFwOLCgMw4bTKvLhONFW.4yDHbbQCbxkTWPT9i1kPbXAsoeG"], ["created_at", "2015-03-17 04:33:36.206192"], ["updated_at", "2015-03-17 04:33:36.206192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.207780"], ["user_id", "c6c9e186-cc5e-11e4-8169-705681abff85"], ["created_at", "2015-03-17 04:33:36.208555"], ["updated_at", "2015-03-17 04:33:36.208555"], ["token", "Znnm27N7vAckFjRTHnKEQRbWf1x9EjNo7ozIHkeYibw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.213147"], ["updated_at", "2015-03-17 04:33:36.213147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6c9e186-cc5e-11e4-8169-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6caf2e2-cc5e-11e4-95dc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6c9e186-cc5e-11e4-8169-705681abff85"], ["organization_id", "c6caf2e2-cc5e-11e4-95dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.217526"], ["updated_at", "2015-03-17 04:33:36.217526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'c6caf2e2-cc5e-11e4-95dc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "c6caf2e2-cc5e-11e4-95dc-705681abff85"], ["created_at", "2015-03-17 04:33:36.221135"], ["updated_at", "2015-03-17 04:33:36.221135"], ["token", "nCrTCRsxFDjAoqMBExL7waZ4VH1lT2Jf8nVMFpX6pdc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$VPuqC.iGDm44myz.hnYAWuVyf7zIowRLXLSmVt9qgvgibXd11/ARi"], ["created_at", "2015-03-17 04:33:36.231146"], ["updated_at", "2015-03-17 04:33:36.231146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.232743"], ["user_id", "c6cdb0c2-cc5e-11e4-9241-705681abff85"], ["created_at", "2015-03-17 04:33:36.233677"], ["updated_at", "2015-03-17 04:33:36.233677"], ["token", "pbXNs9Hr3hqeRMJ5qtkdA0j9kImME_zRRmYgOgbD8IY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.237645"], ["updated_at", "2015-03-17 04:33:36.237645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6cdb0c2-cc5e-11e4-9241-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6ceb5f8-cc5e-11e4-995f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6cdb0c2-cc5e-11e4-9241-705681abff85"], ["organization_id", "c6ceb5f8-cc5e-11e4-995f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.241996"], ["updated_at", "2015-03-17 04:33:36.241996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'c6ceb5f8-cc5e-11e4-995f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "c6ceb5f8-cc5e-11e4-995f-705681abff85"], ["created_at", "2015-03-17 04:33:36.245921"], ["updated_at", "2015-03-17 04:33:36.245921"], ["token", "4oSuNhnY65d6Xpj-0Edr-7O8IUaY_Ft0jI7gb9Ry-9Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$k.09KjBom6OUVpMyfIcxcu3bAIuw2MNoPmOIeYPB72vj/AR964V3C"], ["created_at", "2015-03-17 04:33:36.251816"], ["updated_at", "2015-03-17 04:33:36.251816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.255483"], ["updated_at", "2015-03-17 04:33:36.255483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6d0dedc-cc5e-11e4-8e26-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6d1650a-cc5e-11e4-88c1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6d0dedc-cc5e-11e4-8e26-705681abff85"], ["organization_id", "c6d1650a-cc5e-11e4-88c1-705681abff85"], ["created_at", "2015-03-17 04:33:36.258733"], ["updated_at", "2015-03-17 04:33:36.258733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.278641' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pbXNs9Hr3hqeRMJ5qtkdA0j9kImME_zRRmYgOgbD8IY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.282056"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.284208"], ["id", "c6ce179c-cc5e-11e4-9c80-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6cdb0c2-cc5e-11e4-9241-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6cdb0c2-cc5e-11e4-9241-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$gJrs9A2aTDESxAX1iljNTOTJLJwcZhmIENTiTLYOolfEBdSTJwi7."], ["created_at", "2015-03-17 04:33:36.299873"], ["updated_at", "2015-03-17 04:33:36.299873"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.343881"], ["user_id", "c6d83a06-cc5e-11e4-9866-705681abff85"], ["created_at", "2015-03-17 04:33:36.344638"], ["updated_at", "2015-03-17 04:33:36.344638"], ["token", "JntJDi4XdO3xH237N5OIB1Jr3ZnEUVgFdqV1dJB_dIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.348528"], ["updated_at", "2015-03-17 04:33:36.348528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6d83a06-cc5e-11e4-9866-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6df9954-cc5e-11e4-8a22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6d83a06-cc5e-11e4-9866-705681abff85"], ["organization_id", "c6df9954-cc5e-11e4-8a22-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.352032"], ["updated_at", "2015-03-17 04:33:36.352032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'c6df9954-cc5e-11e4-8a22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "c6df9954-cc5e-11e4-8a22-705681abff85"], ["created_at", "2015-03-17 04:33:36.355697"], ["updated_at", "2015-03-17 04:33:36.355697"], ["token", "7kWaWfIRFGFjZ81bAg88ZwpBprclWrye6--Fz4HSC00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Z4ZDqrKODM7wXZONKKWpr.QRrPoHS8xqLT.uEjD9ZslOoy8uh.gQu"], ["created_at", "2015-03-17 04:33:36.361628"], ["updated_at", "2015-03-17 04:33:36.361628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.366343"], ["updated_at", "2015-03-17 04:33:36.366343"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6e1a5e6-cc5e-11e4-8749-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6e25d2e-cc5e-11e4-901a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6e1a5e6-cc5e-11e4-8749-705681abff85"], ["organization_id", "c6e25d2e-cc5e-11e4-901a-705681abff85"], ["created_at", "2015-03-17 04:33:36.373483"], ["updated_at", "2015-03-17 04:33:36.373483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$zEX4ylgnKiAtxmOQVWqy7Omu4EfDVWDsliQzFgXFYmTxM0Ukfs2G."], ["created_at", "2015-03-17 04:33:36.385092"], ["updated_at", "2015-03-17 04:33:36.385092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.387001"], ["user_id", "c6e53576-cc5e-11e4-8d4a-705681abff85"], ["created_at", "2015-03-17 04:33:36.387826"], ["updated_at", "2015-03-17 04:33:36.387826"], ["token", "uEQuF3thf6iW_4uax-UX5BwbT9Ng2oJ7Zj5p7r-zBK8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.391518"], ["updated_at", "2015-03-17 04:33:36.391518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6e53576-cc5e-11e4-8d4a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6e626d4-cc5e-11e4-a052-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6e53576-cc5e-11e4-8d4a-705681abff85"], ["organization_id", "c6e626d4-cc5e-11e4-a052-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.394924"], ["updated_at", "2015-03-17 04:33:36.394924"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'c6e626d4-cc5e-11e4-a052-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "c6e626d4-cc5e-11e4-a052-705681abff85"], ["created_at", "2015-03-17 04:33:36.407105"], ["updated_at", "2015-03-17 04:33:36.407105"], ["token", "VlD8uxR5QHFBxFaaFExo7O5-PITPs68c6XaXM1JD3os"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/c6e8a4ea-cc5e-11e4-b046-705681abff85" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"c6e8a4ea-cc5e-11e4-b046-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.414571' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uEQuF3thf6iW_4uax-UX5BwbT9Ng2oJ7Zj5p7r-zBK8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.416212"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.417162"], ["id", "c6e59cc8-cc5e-11e4-983a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6e53576-cc5e-11e4-8d4a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6e53576-cc5e-11e4-8d4a-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$A1Mr12oFoQk7P22gsLcKvOmiY7Wy1B2zCFLTTjhHbbmIuUciA3Txi"], ["created_at", "2015-03-17 04:33:36.426197"], ["updated_at", "2015-03-17 04:33:36.426197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.427872"], ["user_id", "c6eb72ba-cc5e-11e4-a19c-705681abff85"], ["created_at", "2015-03-17 04:33:36.428672"], ["updated_at", "2015-03-17 04:33:36.428672"], ["token", "J3narKY8yzpQNYe0GQQQCFSSDXNWjavJg_2sQdRRkjw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.432160"], ["updated_at", "2015-03-17 04:33:36.432160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6eb72ba-cc5e-11e4-a19c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6ec589c-cc5e-11e4-94bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6eb72ba-cc5e-11e4-a19c-705681abff85"], ["organization_id", "c6ec589c-cc5e-11e4-94bc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.435388"], ["updated_at", "2015-03-17 04:33:36.435388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'c6ec589c-cc5e-11e4-94bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "c6ec589c-cc5e-11e4-94bc-705681abff85"], ["created_at", "2015-03-17 04:33:36.439046"], ["updated_at", "2015-03-17 04:33:36.439046"], ["token", "njlPjADWkvgG43pM6OF6F2Z2Lgn05Pgi7hHGVrwuGto"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$CSSXEtWkZ0MB4GoFLO3YR.vsYarPoOefNULHOdvIfyqroVFnkU7BW"], ["created_at", "2015-03-17 04:33:36.449136"], ["updated_at", "2015-03-17 04:33:36.449136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.450736"], ["user_id", "c6eef3d6-cc5e-11e4-bf00-705681abff85"], ["created_at", "2015-03-17 04:33:36.451523"], ["updated_at", "2015-03-17 04:33:36.451523"], ["token", "hmfWMVDosV5YSWvXfLP7c1saWbOmzNZnnJ3nWWYSv4s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.454893"], ["updated_at", "2015-03-17 04:33:36.454893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6eef3d6-cc5e-11e4-bf00-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6efd008-cc5e-11e4-871f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6eef3d6-cc5e-11e4-bf00-705681abff85"], ["organization_id", "c6efd008-cc5e-11e4-871f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.459582"], ["updated_at", "2015-03-17 04:33:36.459582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'c6efd008-cc5e-11e4-871f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "c6efd008-cc5e-11e4-871f-705681abff85"], ["created_at", "2015-03-17 04:33:36.463165"], ["updated_at", "2015-03-17 04:33:36.463165"], ["token", "VZ1eOsJzGvf_j9WOpYqDmqQrluTUcmIq3dcZ_-pGyCg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/c6f118a0-cc5e-11e4-903c-705681abff85" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"c6f118a0-cc5e-11e4-903c-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.467720' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hmfWMVDosV5YSWvXfLP7c1saWbOmzNZnnJ3nWWYSv4s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.469291"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.470436"], ["id", "c6ef5646-cc5e-11e4-aaba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6eef3d6-cc5e-11e4-bf00-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6eef3d6-cc5e-11e4-bf00-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Tc/GGHYY17pVoyIL7ckcW.5qcSpKXXr/yyrWqHJLNGHB0DEMI0zRy"], ["created_at", "2015-03-17 04:33:36.478877"], ["updated_at", "2015-03-17 04:33:36.478877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.480448"], ["user_id", "c6f37c58-cc5e-11e4-bff7-705681abff85"], ["created_at", "2015-03-17 04:33:36.481180"], ["updated_at", "2015-03-17 04:33:36.481180"], ["token", "g31JCoKPlWW8_MKZtE-VU9izOx8qSznpyDiR0pLtWD8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.484662"], ["updated_at", "2015-03-17 04:33:36.484662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6f37c58-cc5e-11e4-bff7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6f45c7c-cc5e-11e4-aefc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6f37c58-cc5e-11e4-bff7-705681abff85"], ["organization_id", "c6f45c7c-cc5e-11e4-aefc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.488271"], ["updated_at", "2015-03-17 04:33:36.488271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'c6f45c7c-cc5e-11e4-aefc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "c6f45c7c-cc5e-11e4-aefc-705681abff85"], ["created_at", "2015-03-17 04:33:36.491726"], ["updated_at", "2015-03-17 04:33:36.491726"], ["token", "kU_m2Ra7Pj4EPpTmbBlWT77B-uudmbbbvXx6i6zqPLs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$dQsLiZ1IGk.uWr.uaQu7juE3K16v7A7LkTGFewIzmoyryenDodgi."], ["created_at", "2015-03-17 04:33:36.502337"], ["updated_at", "2015-03-17 04:33:36.502337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.504020"], ["user_id", "c6f71232-cc5e-11e4-8eea-705681abff85"], ["created_at", "2015-03-17 04:33:36.504796"], ["updated_at", "2015-03-17 04:33:36.504796"], ["token", "nZTZb05pnxdqVnesSThFq-R0nytD8QG787foJ0w0uvk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.508253"], ["updated_at", "2015-03-17 04:33:36.508253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6f71232-cc5e-11e4-8eea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6f7f53a-cc5e-11e4-aaaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6f71232-cc5e-11e4-8eea-705681abff85"], ["organization_id", "c6f7f53a-cc5e-11e4-aaaa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.512223"], ["updated_at", "2015-03-17 04:33:36.512223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'c6f7f53a-cc5e-11e4-aaaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "c6f7f53a-cc5e-11e4-aaaa-705681abff85"], ["created_at", "2015-03-17 04:33:36.515936"], ["updated_at", "2015-03-17 04:33:36.515936"], ["token", "OYXr1pjFR2WwWqkss0HuxRL6soE3tCeHQtXXgD8XOBI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$xtxQiB9AAT0JnDZhbqFWL.5O5q1ZNigOaXO1vFjAiBQtBKrBvwB9C"], ["created_at", "2015-03-17 04:33:36.527197"], ["updated_at", "2015-03-17 04:33:36.527197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.529543"], ["user_id", "c6faf4ba-cc5e-11e4-8197-705681abff85"], ["created_at", "2015-03-17 04:33:36.530505"], ["updated_at", "2015-03-17 04:33:36.530505"], ["token", "GeS_qy_f8LGQgiTXQf_jrMFKW2w3L1wY6_UUcpcY004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.534213"], ["updated_at", "2015-03-17 04:33:36.534213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6faf4ba-cc5e-11e4-8197-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6fbeb04-cc5e-11e4-98c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6faf4ba-cc5e-11e4-8197-705681abff85"], ["organization_id", "c6fbeb04-cc5e-11e4-98c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.537445"], ["updated_at", "2015-03-17 04:33:36.537445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'c6fbeb04-cc5e-11e4-98c9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "c6fbeb04-cc5e-11e4-98c9-705681abff85"], ["created_at", "2015-03-17 04:33:36.541180"], ["updated_at", "2015-03-17 04:33:36.541180"], ["token", "KKh7rsIvrV7pPESqJT5Tun6FBWyjRNFhAPEVj4zoVNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c6fbeb04-cc5e-11e4-98c9-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"c6fbeb04-cc5e-11e4-98c9-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.546281' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GeS_qy_f8LGQgiTXQf_jrMFKW2w3L1wY6_UUcpcY004"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.547742"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.548712"], ["id", "c6fb6846-cc5e-11e4-9f9c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6faf4ba-cc5e-11e4-8197-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6faf4ba-cc5e-11e4-8197-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$HmzjQxKk2iRAYewCQknkqeWd7FXMXxXELt7ciOALgCY6RDplFTJmG"], ["created_at", "2015-03-17 04:33:36.559411"], ["updated_at", "2015-03-17 04:33:36.559411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.561086"], ["user_id", "c6ffc648-cc5e-11e4-80a1-705681abff85"], ["created_at", "2015-03-17 04:33:36.561901"], ["updated_at", "2015-03-17 04:33:36.561901"], ["token", "bAEuE-FYZttvqEEN7nzVjBbhpe-xKVlj691uKcrAoG4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.565455"], ["updated_at", "2015-03-17 04:33:36.565455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6ffc648-cc5e-11e4-80a1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c700afc2-cc5e-11e4-bfed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6ffc648-cc5e-11e4-80a1-705681abff85"], ["organization_id", "c700afc2-cc5e-11e4-bfed-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.568651"], ["updated_at", "2015-03-17 04:33:36.568651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'c700afc2-cc5e-11e4-bfed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "c700afc2-cc5e-11e4-bfed-705681abff85"], ["created_at", "2015-03-17 04:33:36.572039"], ["updated_at", "2015-03-17 04:33:36.572039"], ["token", "PI9ty2YHc8Me_E-xcZXz7oCpYcrXs2vHRPCwq8qRt98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c700afc2-cc5e-11e4-bfed-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"c700afc2-cc5e-11e4-bfed-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.576970' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bAEuE-FYZttvqEEN7nzVjBbhpe-xKVlj691uKcrAoG4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.578374"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.579351"], ["id", "c7002ea8-cc5e-11e4-8fc9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6ffc648-cc5e-11e4-80a1-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6ffc648-cc5e-11e4-80a1-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Q4NxUn8ysIjRSaiNK.3dgeATYJUtkxzCWP9ZWb4mAn.jA6IGpUMe6"], ["created_at", "2015-03-17 04:33:36.588117"], ["updated_at", "2015-03-17 04:33:36.588117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.589989"], ["user_id", "c7042fb2-cc5e-11e4-952a-705681abff85"], ["created_at", "2015-03-17 04:33:36.590791"], ["updated_at", "2015-03-17 04:33:36.590791"], ["token", "YC290NXVLh0GkigLZfcky-_-I1uuhJvVqoRK6A9G5-A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.594565"], ["updated_at", "2015-03-17 04:33:36.594565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7042fb2-cc5e-11e4-952a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c7052386-cc5e-11e4-afeb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7042fb2-cc5e-11e4-952a-705681abff85"], ["organization_id", "c7052386-cc5e-11e4-afeb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.598129"], ["updated_at", "2015-03-17 04:33:36.598129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'c7052386-cc5e-11e4-afeb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "c7052386-cc5e-11e4-afeb-705681abff85"], ["created_at", "2015-03-17 04:33:36.602728"], ["updated_at", "2015-03-17 04:33:36.602728"], ["token", "fD6TnfYZjh3Nr4hxyW1i8TXLynRYEWNpwF0ulymCgRs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c7052386-cc5e-11e4-afeb-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"c7052386-cc5e-11e4-afeb-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.608574' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YC290NXVLh0GkigLZfcky-_-I1uuhJvVqoRK6A9G5-A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.610584"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.611686"], ["id", "c70496f0-cc5e-11e4-92cd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c7042fb2-cc5e-11e4-952a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c7042fb2-cc5e-11e4-952a-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$EsnuS6vBnSYyn/vyJnO0teIlbdxWMGg8GWxZXCbxyAlT5SoLU320q"], ["created_at", "2015-03-17 04:33:36.623661"], ["updated_at", "2015-03-17 04:33:36.623661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.625557"], ["user_id", "c7099be6-cc5e-11e4-99b7-705681abff85"], ["created_at", "2015-03-17 04:33:36.626377"], ["updated_at", "2015-03-17 04:33:36.626377"], ["token", "FoqQzTp6jF2v1q3Qe5ouXqHAQjoNy2k5tnGw3iBf1TQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.630247"], ["updated_at", "2015-03-17 04:33:36.630247"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7099be6-cc5e-11e4-99b7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c70aa87e-cc5e-11e4-b277-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7099be6-cc5e-11e4-99b7-705681abff85"], ["organization_id", "c70aa87e-cc5e-11e4-b277-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.639994"], ["updated_at", "2015-03-17 04:33:36.639994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'c70aa87e-cc5e-11e4-b277-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "c70aa87e-cc5e-11e4-b277-705681abff85"], ["created_at", "2015-03-17 04:33:36.643843"], ["updated_at", "2015-03-17 04:33:36.643843"], ["token", "lJXz-C648X4OTfkndkLBw9z5q3fRfCtUAV3MDOxZqpM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$njjzEk5Nj0vKMizopnOL3OrHUesxNmjDkqD/y.QEreSUq1GWI4Nqe"], ["created_at", "2015-03-17 04:33:36.649301"], ["updated_at", "2015-03-17 04:33:36.649301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.652513"], ["updated_at", "2015-03-17 04:33:36.652513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c70d7d88-cc5e-11e4-9a40-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c70df948-cc5e-11e4-992c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c70d7d88-cc5e-11e4-9a40-705681abff85"], ["organization_id", "c70df948-cc5e-11e4-992c-705681abff85"], ["created_at", "2015-03-17 04:33:36.656022"], ["updated_at", "2015-03-17 04:33:36.656022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c70aa87e-cc5e-11e4-b277-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"c70aa87e-cc5e-11e4-b277-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:33:36.661075' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FoqQzTp6jF2v1q3Qe5ouXqHAQjoNy2k5tnGw3iBf1TQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:33:36.662625"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:33:36.663687"], ["id", "c70a0644-cc5e-11e4-9976-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c7099be6-cc5e-11e4-99b7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c7099be6-cc5e-11e4-99b7-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$xMoaA2bI6ts5i4KNtOtiyOSZ.gk.TfZUXZSObLbrFOPf9pCSmxI7q"], ["created_at", "2015-03-17 04:33:36.672966"], ["updated_at", "2015-03-17 04:33:36.672966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:33:36.674621"], ["user_id", "c7111c54-cc5e-11e4-960b-705681abff85"], ["created_at", "2015-03-17 04:33:36.675408"], ["updated_at", "2015-03-17 04:33:36.675408"], ["token", "WNKOZM9jt7mMViqpR7t67teVn398Yr1ahTVvjgiDzqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.678817"], ["updated_at", "2015-03-17 04:33:36.678817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7111c54-cc5e-11e4-960b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c711ff8e-cc5e-11e4-92df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7111c54-cc5e-11e4-960b-705681abff85"], ["organization_id", "c711ff8e-cc5e-11e4-92df-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:33:36.682223"], ["updated_at", "2015-03-17 04:33:36.682223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'c711ff8e-cc5e-11e4-92df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "c711ff8e-cc5e-11e4-92df-705681abff85"], ["created_at", "2015-03-17 04:33:36.685817"], ["updated_at", "2015-03-17 04:33:36.685817"], ["token", "gOjgz7k29alSMWJiBWe1AteO-vfDD_EIt8jnPn4EBC4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$xVGKd7RjA3O6gG9/h/S9pu7YvQFQDGFFPn6lgS3clq0YQXYHuWRVG"], ["created_at", "2015-03-17 04:33:36.692316"], ["updated_at", "2015-03-17 04:33:36.692316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:33:36.696105"], ["updated_at", "2015-03-17 04:33:36.696105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c714158a-cc5e-11e4-a334-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c714a590-cc5e-11e4-82fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c714158a-cc5e-11e4-a334-705681abff85"], ["organization_id", "c714a590-cc5e-11e4-82fc-705681abff85"], ["created_at", "2015-03-17 04:33:36.700190"], ["updated_at", "2015-03-17 04:33:36.700190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-16 21:33:36 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (10.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$UiqEbJlRj..YaeKVaDQV9.nI55PyBbmIYsAXpkdihzezrnIdydst2"], ["created_at", "2015-03-17 04:35:26.595055"], ["updated_at", "2015-03-17 04:35:26.595055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:26.623669"], ["user_id", "0898ea12-cc5f-11e4-874a-705681abff85"], ["created_at", "2015-03-17 04:35:26.629209"], ["updated_at", "2015-03-17 04:35:26.629209"], ["token", "YPl8KO2chwRWyjtJq2L5dBpnp5N2MsDf5zo4a1a8bgM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:26.638849"], ["updated_at", "2015-03-17 04:35:26.638849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0898ea12-cc5f-11e4-874a-705681abff85' AND "clubhouse_memberships"."organization_id" = '089c9bb2-cc5f-11e4-a990-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0898ea12-cc5f-11e4-874a-705681abff85"], ["organization_id", "089c9bb2-cc5f-11e4-a990-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:26.650076"], ["updated_at", "2015-03-17 04:35:26.650076"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '089c9bb2-cc5f-11e4-a990-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "089c9bb2-cc5f-11e4-a990-705681abff85"], ["created_at", "2015-03-17 04:35:26.672751"], ["updated_at", "2015-03-17 04:35:26.672751"], ["token", "MHe4QYi7mXP_vA-67Kb5GTreZR7glERIkIpTlBz8bFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/08a1c9ca-cc5f-11e4-b0d1-705681abff85" for 127.0.0.1 at 2015-03-16 21:35:26 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"08a1c9ca-cc5f-11e4-b0d1-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:26.700576' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YPl8KO2chwRWyjtJq2L5dBpnp5N2MsDf5zo4a1a8bgM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:26.709686"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:26.710864"], ["id", "089b2fca-cc5f-11e4-9d67-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0898ea12-cc5f-11e4-874a-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0898ea12-cc5f-11e4-874a-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "08a1c9ca-cc5f-11e4-b0d1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "089c9bb2-cc5f-11e4-a990-705681abff85"]] Completed 200 OK in 37ms (Views: 4.3ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$L48UXwclUNIcROMyaBqk2exCpJQ4EkbXCoMj33fAZ1Mg67AjFNAzO"], ["created_at", "2015-03-17 04:35:26.748400"], ["updated_at", "2015-03-17 04:35:26.748400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:26.750187"], ["user_id", "08ad4b56-cc5f-11e4-a8a2-705681abff85"], ["created_at", "2015-03-17 04:35:26.751102"], ["updated_at", "2015-03-17 04:35:26.751102"], ["token", "pn9W5dVEXM_E3FgPEuOWLWutghPLw17wFO8o05i6_BA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:26.754972"], ["updated_at", "2015-03-17 04:35:26.754972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08ad4b56-cc5f-11e4-a8a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '08ae4ab0-cc5f-11e4-9ff7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08ad4b56-cc5f-11e4-a8a2-705681abff85"], ["organization_id", "08ae4ab0-cc5f-11e4-9ff7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:26.758469"], ["updated_at", "2015-03-17 04:35:26.758469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '08ae4ab0-cc5f-11e4-9ff7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "08ae4ab0-cc5f-11e4-9ff7-705681abff85"], ["created_at", "2015-03-17 04:35:26.763397"], ["updated_at", "2015-03-17 04:35:26.763397"], ["token", "N464FQGEig5fKd1EE8wGCoJWlT1HeF41DvmL6vQnmxk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-16 21:35:26 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$9rTGywqDKs0vN6m3/Frj6eMdNu9HTAUK2kWf61j5PoGGTcS3D0qPG"], ["created_at", "2015-03-17 04:35:26.775968"], ["updated_at", "2015-03-17 04:35:26.775968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:26.777633"], ["user_id", "08b17f50-cc5f-11e4-9de9-705681abff85"], ["created_at", "2015-03-17 04:35:26.778642"], ["updated_at", "2015-03-17 04:35:26.778642"], ["token", "mLbkhqfGo1jk8piOM-a_-JH7Y3tT4yq9zRTW_qWJrRM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:26.782731"], ["updated_at", "2015-03-17 04:35:26.782731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08b17f50-cc5f-11e4-9de9-705681abff85' AND "clubhouse_memberships"."organization_id" = '08b283f0-cc5f-11e4-859d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08b17f50-cc5f-11e4-9de9-705681abff85"], ["organization_id", "08b283f0-cc5f-11e4-859d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:26.786140"], ["updated_at", "2015-03-17 04:35:26.786140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '08b283f0-cc5f-11e4-859d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "08b283f0-cc5f-11e4-859d-705681abff85"], ["created_at", "2015-03-17 04:35:26.789753"], ["updated_at", "2015-03-17 04:35:26.789753"], ["token", "WIEnI-tIB_u48zpG1ntQlBiDsrIxzGcbdwvbtWhngu4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:35:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$y8WchJ08qeWK.DGLawnnIOHBohSIon.Mt304fGhIofxGu.fEd6V8C"], ["created_at", "2015-03-17 04:35:26.800685"], ["updated_at", "2015-03-17 04:35:26.800685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:26.802395"], ["user_id", "08b54518-cc5f-11e4-b87e-705681abff85"], ["created_at", "2015-03-17 04:35:26.803223"], ["updated_at", "2015-03-17 04:35:26.803223"], ["token", "x_sijkG3ILSxXQhx_vGl65ERjbgb-YmN5Lgs-czOMao"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:26.806699"], ["updated_at", "2015-03-17 04:35:26.806699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08b54518-cc5f-11e4-b87e-705681abff85' AND "clubhouse_memberships"."organization_id" = '08b62b90-cc5f-11e4-b551-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08b54518-cc5f-11e4-b87e-705681abff85"], ["organization_id", "08b62b90-cc5f-11e4-b551-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:26.810230"], ["updated_at", "2015-03-17 04:35:26.810230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '08b62b90-cc5f-11e4-b551-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "08b62b90-cc5f-11e4-b551-705681abff85"], ["created_at", "2015-03-17 04:35:26.813674"], ["updated_at", "2015-03-17 04:35:26.813674"], ["token", "1K81RMOCydHypcxT9HjuMMeJZCUWuJHPdbLies85NcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:35:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:26.823049' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "x_sijkG3ILSxXQhx_vGl65ERjbgb-YmN5Lgs-czOMao"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:26.824574"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:26.825596"], ["id", "08b5aaf8-cc5f-11e4-b7ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08b54518-cc5f-11e4-b87e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08b54518-cc5f-11e4-b87e-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08b54518-cc5f-11e4-b87e-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$YN4BkpTL6PXTwnHI4qvQIu3r1uHKfgaMUgAqqfUxUg5pUlf2PrVxu"], ["created_at", "2015-03-17 04:35:26.839863"], ["updated_at", "2015-03-17 04:35:26.839863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:26.841894"], ["user_id", "08bb4332-cc5f-11e4-adab-705681abff85"], ["created_at", "2015-03-17 04:35:26.842831"], ["updated_at", "2015-03-17 04:35:26.842831"], ["token", "4Yn11FGAv93yEeAZrKhoRIrTVVfva83UrHS4sJEhKgE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:26.846737"], ["updated_at", "2015-03-17 04:35:26.846737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08bb4332-cc5f-11e4-adab-705681abff85' AND "clubhouse_memberships"."organization_id" = '08bc4908-cc5f-11e4-997a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08bb4332-cc5f-11e4-adab-705681abff85"], ["organization_id", "08bc4908-cc5f-11e4-997a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:26.850163"], ["updated_at", "2015-03-17 04:35:26.850163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '08bc4908-cc5f-11e4-997a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "08bc4908-cc5f-11e4-997a-705681abff85"], ["created_at", "2015-03-17 04:35:26.853850"], ["updated_at", "2015-03-17 04:35:26.853850"], ["token", "hZE5tqd6ziTyMFqYbahVoOE2aH-mSKGWbszyxwn9kRI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:35:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:26.859006' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4Yn11FGAv93yEeAZrKhoRIrTVVfva83UrHS4sJEhKgE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:26.860426"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:26.861443"], ["id", "08bbbc4a-cc5f-11e4-b27c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08bb4332-cc5f-11e4-adab-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08bb4332-cc5f-11e4-adab-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08bb4332-cc5f-11e4-adab-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$uG7jOkBbNXWEl1PS2vb6COlBnIKosXB18Bz3GwAr2ZWqzABfyEEom"], ["created_at", "2015-03-17 04:35:26.872207"], ["updated_at", "2015-03-17 04:35:26.872207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:26.873990"], ["user_id", "08c03158-cc5f-11e4-ac8d-705681abff85"], ["created_at", "2015-03-17 04:35:26.874916"], ["updated_at", "2015-03-17 04:35:26.874916"], ["token", "1RPSoHDH666jXRRMsCc5MBLYxsbxxuD7txMDq5xYe0A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:26.878524"], ["updated_at", "2015-03-17 04:35:26.878524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08c03158-cc5f-11e4-ac8d-705681abff85' AND "clubhouse_memberships"."organization_id" = '08c12176-cc5f-11e4-b08c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08c03158-cc5f-11e4-ac8d-705681abff85"], ["organization_id", "08c12176-cc5f-11e4-b08c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:26.882047"], ["updated_at", "2015-03-17 04:35:26.882047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '08c12176-cc5f-11e4-b08c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "08c12176-cc5f-11e4-b08c-705681abff85"], ["created_at", "2015-03-17 04:35:26.885485"], ["updated_at", "2015-03-17 04:35:26.885485"], ["token", "6qGg1k9R1Sk8o94cK6PGzFxJxNcdrXkrZJPDu4BpaXI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:35:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:26.890669' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1RPSoHDH666jXRRMsCc5MBLYxsbxxuD7txMDq5xYe0A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:26.892216"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:26.893194"], ["id", "08c09e72-cc5f-11e4-80ce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08c03158-cc5f-11e4-ac8d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08c03158-cc5f-11e4-ac8d-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08c03158-cc5f-11e4-ac8d-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$8l04mU2ke/TnOxpp5rrUGuoFOZ3DjYdtDw4F8L0OfMYie7s3RXwx6"], ["created_at", "2015-03-17 04:35:26.904296"], ["updated_at", "2015-03-17 04:35:26.904296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:26.906010"], ["user_id", "08c514de-cc5f-11e4-8197-705681abff85"], ["created_at", "2015-03-17 04:35:26.906811"], ["updated_at", "2015-03-17 04:35:26.906811"], ["token", "31bz3MgCvfO6FTjDNpluMDkDAjCsEELC7jBSl-WAa3o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:26.914763"], ["updated_at", "2015-03-17 04:35:26.914763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08c514de-cc5f-11e4-8197-705681abff85' AND "clubhouse_memberships"."organization_id" = '08c6ac4a-cc5f-11e4-9fd5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08c514de-cc5f-11e4-8197-705681abff85"], ["organization_id", "08c6ac4a-cc5f-11e4-9fd5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:26.918296"], ["updated_at", "2015-03-17 04:35:26.918296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '08c6ac4a-cc5f-11e4-9fd5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "08c6ac4a-cc5f-11e4-9fd5-705681abff85"], ["created_at", "2015-03-17 04:35:26.921718"], ["updated_at", "2015-03-17 04:35:26.921718"], ["token", "o66dd1sD2boSTN4uZHwFMj14XCH-xs08RmCO5Owij-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/08c7c5bc-cc5f-11e4-857d-705681abff85" for 127.0.0.1 at 2015-03-16 21:35:26 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"08c7c5bc-cc5f-11e4-857d-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:26.927073' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "31bz3MgCvfO6FTjDNpluMDkDAjCsEELC7jBSl-WAa3o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:26.928585"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:26.929731"], ["id", "08c57e7e-cc5f-11e4-8aad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08c514de-cc5f-11e4-8197-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08c514de-cc5f-11e4-8197-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08c514de-cc5f-11e4-8197-705681abff85"]] Completed 500 Internal Server Error in 42ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$i5l3VUl0vcUpK1n91GoTluZ.33JhLOJIucfU/PsX04yuOdOWpUZLK"], ["created_at", "2015-03-17 04:35:26.974266"], ["updated_at", "2015-03-17 04:35:26.974266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:26.975920"], ["user_id", "08cfc0a0-cc5f-11e4-9780-705681abff85"], ["created_at", "2015-03-17 04:35:26.976700"], ["updated_at", "2015-03-17 04:35:26.976700"], ["token", "CbrXzEnCv2bxsZv1L8IgdLmuw7TYSyvw4qjwGyEZWIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:26.980156"], ["updated_at", "2015-03-17 04:35:26.980156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08cfc0a0-cc5f-11e4-9780-705681abff85' AND "clubhouse_memberships"."organization_id" = '08d0a52e-cc5f-11e4-aaaa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08cfc0a0-cc5f-11e4-9780-705681abff85"], ["organization_id", "08d0a52e-cc5f-11e4-aaaa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:26.983538"], ["updated_at", "2015-03-17 04:35:26.983538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '08d0a52e-cc5f-11e4-aaaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "08d0a52e-cc5f-11e4-aaaa-705681abff85"], ["created_at", "2015-03-17 04:35:26.986989"], ["updated_at", "2015-03-17 04:35:26.986989"], ["token", "nk5oMvUdU7IC3-_WZyA1rvbEAoUD28EJdyaAWWvMiso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-16 21:35:26 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$6ApHWOVVUz3rrVw4cX4woeJmyneEwwsDonLgxg6kPRQtt/o3RQK4."], ["created_at", "2015-03-17 04:35:26.997456"], ["updated_at", "2015-03-17 04:35:26.997456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:26.999315"], ["user_id", "08d34fc2-cc5f-11e4-b566-705681abff85"], ["created_at", "2015-03-17 04:35:27.000154"], ["updated_at", "2015-03-17 04:35:27.000154"], ["token", "865YfNJ5DyAOGz2_LW5HlnbGlRFvszGhUwDN5U9gt2I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.003489"], ["updated_at", "2015-03-17 04:35:27.003489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08d34fc2-cc5f-11e4-b566-705681abff85' AND "clubhouse_memberships"."organization_id" = '08d4316c-cc5f-11e4-bb54-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08d34fc2-cc5f-11e4-b566-705681abff85"], ["organization_id", "08d4316c-cc5f-11e4-bb54-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:27.007359"], ["updated_at", "2015-03-17 04:35:27.007359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '08d4316c-cc5f-11e4-bb54-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "08d4316c-cc5f-11e4-bb54-705681abff85"], ["created_at", "2015-03-17 04:35:27.011482"], ["updated_at", "2015-03-17 04:35:27.011482"], ["token", "a6tHV3o3vggMYTtGfpFoPxSZHdlPCDWWXNk4TYSwpf8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-16 21:35:27 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$qcTe/fUQp7QiRNRCHt6XVOQ9LewIR0tNEvMSzdREcBgcBUr4Ubf5S"], ["created_at", "2015-03-17 04:35:27.021988"], ["updated_at", "2015-03-17 04:35:27.021988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:27.023666"], ["user_id", "08d70a86-cc5f-11e4-af2b-705681abff85"], ["created_at", "2015-03-17 04:35:27.024792"], ["updated_at", "2015-03-17 04:35:27.024792"], ["token", "pjf9sBpDEI2rqMq1X7_UGk6y9-St384pT41vIiyfuhM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.028775"], ["updated_at", "2015-03-17 04:35:27.028775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08d70a86-cc5f-11e4-af2b-705681abff85' AND "clubhouse_memberships"."organization_id" = '08d81020-cc5f-11e4-8a89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08d70a86-cc5f-11e4-af2b-705681abff85"], ["organization_id", "08d81020-cc5f-11e4-8a89-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:27.032610"], ["updated_at", "2015-03-17 04:35:27.032610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '08d81020-cc5f-11e4-8a89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "08d81020-cc5f-11e4-8a89-705681abff85"], ["created_at", "2015-03-17 04:35:27.036707"], ["updated_at", "2015-03-17 04:35:27.036707"], ["token", "ELHSzp82Hc4epjR3a4g3xZYq1-cBP97MkL_kKWYms5A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/08d81020-cc5f-11e4-8a89-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:35:27 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"08d81020-cc5f-11e4-8a89-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:27.041492' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pjf9sBpDEI2rqMq1X7_UGk6y9-St384pT41vIiyfuhM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:27.043357"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:27.044346"], ["id", "08d782b8-cc5f-11e4-a0e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08d70a86-cc5f-11e4-af2b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08d70a86-cc5f-11e4-af2b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08d70a86-cc5f-11e4-af2b-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$57PD2lKAUcLjfBJ54v7frOsss0HMwxpNccq4NS.PuNPqJRxeP8Qtq"], ["created_at", "2015-03-17 04:35:27.057132"], ["updated_at", "2015-03-17 04:35:27.057132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:27.058851"], ["user_id", "08dc65a8-cc5f-11e4-b1ce-705681abff85"], ["created_at", "2015-03-17 04:35:27.059672"], ["updated_at", "2015-03-17 04:35:27.059672"], ["token", "IcXfUChCz7vW_IT7LPJSOqN2DpbDAyWe9O21qAKQHqc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.063334"], ["updated_at", "2015-03-17 04:35:27.063334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08dc65a8-cc5f-11e4-b1ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '08dd5378-cc5f-11e4-aba7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08dc65a8-cc5f-11e4-b1ce-705681abff85"], ["organization_id", "08dd5378-cc5f-11e4-aba7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:27.066713"], ["updated_at", "2015-03-17 04:35:27.066713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '08dd5378-cc5f-11e4-aba7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "08dd5378-cc5f-11e4-aba7-705681abff85"], ["created_at", "2015-03-17 04:35:27.070736"], ["updated_at", "2015-03-17 04:35:27.070736"], ["token", "hAjVOuJOVmoaREZW80fl2NXQqeFAZ5CSGDlBwerrL5k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/08dd5378-cc5f-11e4-aba7-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:35:27 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"08dd5378-cc5f-11e4-aba7-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:27.075462' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IcXfUChCz7vW_IT7LPJSOqN2DpbDAyWe9O21qAKQHqc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:27.077023"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:27.078170"], ["id", "08dcd038-cc5f-11e4-b9c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08dc65a8-cc5f-11e4-b1ce-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08dc65a8-cc5f-11e4-b1ce-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08dc65a8-cc5f-11e4-b1ce-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$xsHGaWU3iY0Dm.zALegN.OJuqHHSpSas/3oC.f2vK6DqcGUm0PTe6"], ["created_at", "2015-03-17 04:35:27.087505"], ["updated_at", "2015-03-17 04:35:27.087505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:27.089633"], ["user_id", "08e10bbc-cc5f-11e4-ab3f-705681abff85"], ["created_at", "2015-03-17 04:35:27.090584"], ["updated_at", "2015-03-17 04:35:27.090584"], ["token", "CGFLclXxYzEsXweN_vgbp1lnO4v9Zpg64wq1E7KyHbo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.095065"], ["updated_at", "2015-03-17 04:35:27.095065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08e10bbc-cc5f-11e4-ab3f-705681abff85' AND "clubhouse_memberships"."organization_id" = '08e22ce0-cc5f-11e4-a707-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08e10bbc-cc5f-11e4-ab3f-705681abff85"], ["organization_id", "08e22ce0-cc5f-11e4-a707-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:27.098531"], ["updated_at", "2015-03-17 04:35:27.098531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '08e22ce0-cc5f-11e4-a707-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "08e22ce0-cc5f-11e4-a707-705681abff85"], ["created_at", "2015-03-17 04:35:27.102188"], ["updated_at", "2015-03-17 04:35:27.102188"], ["token", "BBIo-pOW80_2uO8NjSdU1gVBtQURkdvIFgg272wzU4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/08e22ce0-cc5f-11e4-a707-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:35:27 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"08e22ce0-cc5f-11e4-a707-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:27.108280' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CGFLclXxYzEsXweN_vgbp1lnO4v9Zpg64wq1E7KyHbo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:27.109896"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:27.111010"], ["id", "08e18902-cc5f-11e4-90da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08e10bbc-cc5f-11e4-ab3f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08e10bbc-cc5f-11e4-ab3f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08e10bbc-cc5f-11e4-ab3f-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$tvdIgMccocWexXmGKkaudeU/hqbAFscZeQ1B0/YEm4q0d/lRJrW5K"], ["created_at", "2015-03-17 04:35:27.123250"], ["updated_at", "2015-03-17 04:35:27.123250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:27.125217"], ["user_id", "08e682cc-cc5f-11e4-ad76-705681abff85"], ["created_at", "2015-03-17 04:35:27.126075"], ["updated_at", "2015-03-17 04:35:27.126075"], ["token", "PZ__h09T4cvxAsFnZ_3cXi7uv8ZRl4LaMFdUYfFQxwo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.129900"], ["updated_at", "2015-03-17 04:35:27.129900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08e682cc-cc5f-11e4-ad76-705681abff85' AND "clubhouse_memberships"."organization_id" = '08e77f74-cc5f-11e4-9f2f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08e682cc-cc5f-11e4-ad76-705681abff85"], ["organization_id", "08e77f74-cc5f-11e4-9f2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:27.133482"], ["updated_at", "2015-03-17 04:35:27.133482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '08e77f74-cc5f-11e4-9f2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "08e77f74-cc5f-11e4-9f2f-705681abff85"], ["created_at", "2015-03-17 04:35:27.137429"], ["updated_at", "2015-03-17 04:35:27.137429"], ["token", "0qdLwZyGMJjwRvf-kcSEfd2IYT4v-iS9ygBCTHShsuI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/08e8a6ce-cc5f-11e4-ac5e-705681abff85" for 127.0.0.1 at 2015-03-16 21:35:27 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"08e8a6ce-cc5f-11e4-ac5e-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:27.142207' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PZ__h09T4cvxAsFnZ_3cXi7uv8ZRl4LaMFdUYfFQxwo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:27.143770"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:27.144739"], ["id", "08e6f3f6-cc5f-11e4-a23b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08e682cc-cc5f-11e4-ad76-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08e682cc-cc5f-11e4-ad76-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08e682cc-cc5f-11e4-ad76-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$oHc.Sn5yPE7AAhh7WZdma.GouNSH6h97QYEq6vN9SdnRtbW.xU7CS"], ["created_at", "2015-03-17 04:35:27.156105"], ["updated_at", "2015-03-17 04:35:27.156105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:27.157920"], ["user_id", "08eb8538-cc5f-11e4-b89c-705681abff85"], ["created_at", "2015-03-17 04:35:27.158698"], ["updated_at", "2015-03-17 04:35:27.158698"], ["token", "4HqFX-k6UzWY20x1x848MDFYH--Nnf-ob9B2Cp_S2Ng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.163913"], ["updated_at", "2015-03-17 04:35:27.163913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08eb8538-cc5f-11e4-b89c-705681abff85' AND "clubhouse_memberships"."organization_id" = '08eccaf6-cc5f-11e4-83c0-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08eb8538-cc5f-11e4-b89c-705681abff85"], ["organization_id", "08eccaf6-cc5f-11e4-83c0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:27.173146"], ["updated_at", "2015-03-17 04:35:27.173146"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '08eccaf6-cc5f-11e4-83c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "08eccaf6-cc5f-11e4-83c0-705681abff85"], ["created_at", "2015-03-17 04:35:27.178877"], ["updated_at", "2015-03-17 04:35:27.178877"], ["token", "QuGZUryMfd60AcbUatnW4w2lV16d9qpBG8yKAh3Mo6k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-16 21:35:27 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$M9c5zqRmltfke8JOC7Z0de.7F5kIMGaWxgRowAuTxWEMreMRyD8QS"], ["created_at", "2015-03-17 04:35:27.188928"], ["updated_at", "2015-03-17 04:35:27.188928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:27.190542"], ["user_id", "08f08088-cc5f-11e4-b88c-705681abff85"], ["created_at", "2015-03-17 04:35:27.191548"], ["updated_at", "2015-03-17 04:35:27.191548"], ["token", "Kn0Y1pruaYq7QVLtC8e2fRVHkos8pU2atBxjbylTv00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.196491"], ["updated_at", "2015-03-17 04:35:27.196491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08f08088-cc5f-11e4-b88c-705681abff85' AND "clubhouse_memberships"."organization_id" = '08f1b796-cc5f-11e4-96be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08f08088-cc5f-11e4-b88c-705681abff85"], ["organization_id", "08f1b796-cc5f-11e4-96be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:27.200699"], ["updated_at", "2015-03-17 04:35:27.200699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '08f1b796-cc5f-11e4-96be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "08f1b796-cc5f-11e4-96be-705681abff85"], ["created_at", "2015-03-17 04:35:27.204243"], ["updated_at", "2015-03-17 04:35:27.204243"], ["token", "NX9wbWabJDLCLcN-ysi0Rpy6zfzGk6fcMqA00mIBu-8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$leuIKx.yv3yQxB0KZAjNcOGwCWtaCm5fUGirraJcN.tmCQC6E7mtG"], ["created_at", "2015-03-17 04:35:27.208973"], ["updated_at", "2015-03-17 04:35:27.208973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.212107"], ["updated_at", "2015-03-17 04:35:27.212107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08f38ea4-cc5f-11e4-957e-705681abff85' AND "clubhouse_memberships"."organization_id" = '08f408de-cc5f-11e4-9b7f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "08f38ea4-cc5f-11e4-957e-705681abff85"], ["organization_id", "08f408de-cc5f-11e4-9b7f-705681abff85"], ["created_at", "2015-03-17 04:35:27.215402"], ["updated_at", "2015-03-17 04:35:27.215402"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:35:27 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:27.221909' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Kn0Y1pruaYq7QVLtC8e2fRVHkos8pU2atBxjbylTv00"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:27.223466"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:27.224528"], ["id", "08f0ef5a-cc5f-11e4-b35b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08f08088-cc5f-11e4-b88c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "08f08088-cc5f-11e4-b88c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "08f1b796-cc5f-11e4-96be-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('08f1b796-cc5f-11e4-96be-705681abff85') Completed 200 OK in 18ms (Views: 8.2ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$xJ70uZsvkokSHYtc.Yp/2ewJTKFDhEP9tzmKC.cfutneSEy8xNYCm"], ["created_at", "2015-03-17 04:35:27.248636"], ["updated_at", "2015-03-17 04:35:27.248636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:27.251923"], ["user_id", "08f9b874-cc5f-11e4-8f52-705681abff85"], ["created_at", "2015-03-17 04:35:27.253121"], ["updated_at", "2015-03-17 04:35:27.253121"], ["token", "CRjbXTOuY481wkMQz-2atIPRZrdUIy46KsBA6Qvwe_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.257070"], ["updated_at", "2015-03-17 04:35:27.257070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08f9b874-cc5f-11e4-8f52-705681abff85' AND "clubhouse_memberships"."organization_id" = '08fae654-cc5f-11e4-ace6-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08f9b874-cc5f-11e4-8f52-705681abff85"], ["organization_id", "08fae654-cc5f-11e4-ace6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:27.280109"], ["updated_at", "2015-03-17 04:35:27.280109"]]  (10.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '08fae654-cc5f-11e4-ace6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "08fae654-cc5f-11e4-ace6-705681abff85"], ["created_at", "2015-03-17 04:35:27.305379"], ["updated_at", "2015-03-17 04:35:27.305379"], ["token", "fptMHuX-uo1X8XJkzylVOZYv7itcurcsMmktuFj7IdA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$FkmGOcTfRJjlxpGZpR/j8uWhiokK7.Mj6INB9ybfFrM6aWucsQGEe"], ["created_at", "2015-03-17 04:35:27.313477"], ["updated_at", "2015-03-17 04:35:27.313477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.317498"], ["updated_at", "2015-03-17 04:35:27.317498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09038886-cc5f-11e4-83fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '09042278-cc5f-11e4-885a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09038886-cc5f-11e4-83fa-705681abff85"], ["organization_id", "09042278-cc5f-11e4-885a-705681abff85"], ["created_at", "2015-03-17 04:35:27.321250"], ["updated_at", "2015-03-17 04:35:27.321250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:35:27 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$sY/56U1SJfH63dLVjNMunOR/bGqdxLdCaQXXffFWAGhYYhTDSDpbO"], ["created_at", "2015-03-17 04:35:27.331235"], ["updated_at", "2015-03-17 04:35:27.331235"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:27.332946"], ["user_id", "0906377a-cc5f-11e4-89fe-705681abff85"], ["created_at", "2015-03-17 04:35:27.333736"], ["updated_at", "2015-03-17 04:35:27.333736"], ["token", "q7J8a-PykcPc2_I7FfEm7m4X512FCHIrMWBNsFVDscg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.337385"], ["updated_at", "2015-03-17 04:35:27.337385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0906377a-cc5f-11e4-89fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '09072c84-cc5f-11e4-a505-705681abff85') LIMIT 1 SQL (6.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0906377a-cc5f-11e4-89fe-705681abff85"], ["organization_id", "09072c84-cc5f-11e4-a505-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:27.341196"], ["updated_at", "2015-03-17 04:35:27.341196"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '09072c84-cc5f-11e4-a505-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "09072c84-cc5f-11e4-a505-705681abff85"], ["created_at", "2015-03-17 04:35:27.351792"], ["updated_at", "2015-03-17 04:35:27.351792"], ["token", "6aNW9jZN-OTdBTh53Ib6trGs2m3tewvyheCZa9Qw8EM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$PW.KQ4caB9VeeNqRyowk6e.KYTGEi4KLdL7suCPXJBJdgsNof1vQq"], ["created_at", "2015-03-17 04:35:27.356764"], ["updated_at", "2015-03-17 04:35:27.356764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.360388"], ["updated_at", "2015-03-17 04:35:27.360388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '090a1f2a-cc5f-11e4-9771-705681abff85' AND "clubhouse_memberships"."organization_id" = '090aaa08-cc5f-11e4-9ef0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "090a1f2a-cc5f-11e4-9771-705681abff85"], ["organization_id", "090aaa08-cc5f-11e4-9ef0-705681abff85"], ["created_at", "2015-03-17 04:35:27.364395"], ["updated_at", "2015-03-17 04:35:27.364395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/09072c84-cc5f-11e4-a505-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:35:27 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"09072c84-cc5f-11e4-a505-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:35:27.369379' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q7J8a-PykcPc2_I7FfEm7m4X512FCHIrMWBNsFVDscg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:35:27.370924"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:35:27.371960"], ["id", "09069e7c-cc5f-11e4-ab04-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0906377a-cc5f-11e4-89fe-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0906377a-cc5f-11e4-89fe-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "09072c84-cc5f-11e4-a505-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "09072c84-cc5f-11e4-a505-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('09072c84-cc5f-11e4-a505-705681abff85') Completed 200 OK in 18ms (Views: 2.2ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$QxCFCtW0IQ89CAzYmbvdjuaswHBq8Egavq5mjduDoBXjbo0KyC9Fu"], ["created_at", "2015-03-17 04:35:27.393321"], ["updated_at", "2015-03-17 04:35:27.393321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:35:27.395157"], ["user_id", "090fb8e0-cc5f-11e4-ab36-705681abff85"], ["created_at", "2015-03-17 04:35:27.395891"], ["updated_at", "2015-03-17 04:35:27.395891"], ["token", "SwDp_I3jQz30fN-zf_oW8MJ9lbEuVVkhrFlloWKjU_o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.399192"], ["updated_at", "2015-03-17 04:35:27.399192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '090fb8e0-cc5f-11e4-ab36-705681abff85' AND "clubhouse_memberships"."organization_id" = '091091ca-cc5f-11e4-8f09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "090fb8e0-cc5f-11e4-ab36-705681abff85"], ["organization_id", "091091ca-cc5f-11e4-8f09-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:35:27.402705"], ["updated_at", "2015-03-17 04:35:27.402705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '091091ca-cc5f-11e4-8f09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "091091ca-cc5f-11e4-8f09-705681abff85"], ["created_at", "2015-03-17 04:35:27.406369"], ["updated_at", "2015-03-17 04:35:27.406369"], ["token", "hJcT-XpOVVqhybOtXRzhLNfrWtMWOqEoZA6yB5_y5Gk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$a.zZspz7H3ro/DP5BqcmpuFsFwVJ3Lv98eeZVRww4Qs95nhwzxTie"], ["created_at", "2015-03-17 04:35:27.411568"], ["updated_at", "2015-03-17 04:35:27.411568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:35:27.415168"], ["updated_at", "2015-03-17 04:35:27.415168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09127d3c-cc5f-11e4-ad47-705681abff85' AND "clubhouse_memberships"."organization_id" = '091303e2-cc5f-11e4-98d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "09127d3c-cc5f-11e4-ad47-705681abff85"], ["organization_id", "091303e2-cc5f-11e4-98d1-705681abff85"], ["created_at", "2015-03-17 04:35:27.418617"], ["updated_at", "2015-03-17 04:35:27.418617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-16 21:35:27 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (35.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$NXMXgneR6XX1wqOaAMePMuA0at5fwvSZ0oNn8HFHCn/PHmGlQfruy"], ["created_at", "2015-03-17 04:39:53.026659"], ["updated_at", "2015-03-17 04:39:53.026659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.071212"], ["user_id", "a7696a54-cc5f-11e4-bdb2-705681abff85"], ["created_at", "2015-03-17 04:39:53.077834"], ["updated_at", "2015-03-17 04:39:53.077834"], ["token", "GuG1PdEtV8fFyoYg3wy2QKKQ7UwdRIcPy9s_-eOnvVo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.097495"], ["updated_at", "2015-03-17 04:39:53.097495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7696a54-cc5f-11e4-bdb2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a76f0612-cc5f-11e4-8fbd-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7696a54-cc5f-11e4-bdb2-705681abff85"], ["organization_id", "a76f0612-cc5f-11e4-8fbd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.110544"], ["updated_at", "2015-03-17 04:39:53.110544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a76f0612-cc5f-11e4-8fbd-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a76f0612-cc5f-11e4-8fbd-705681abff85"], ["created_at", "2015-03-17 04:39:53.130100"], ["updated_at", "2015-03-17 04:39:53.130100"], ["token", "v4g_mcHxoib6H4RWEnaG9YYxeKweT1hNqxT2J37XbUo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$OgJqpbyafwF3khaLzg7jm.kPMAoIfgAWyZI/AsS7uZGawvMyqyqEq"], ["created_at", "2015-03-17 04:39:53.165945"], ["updated_at", "2015-03-17 04:39:53.165945"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.168861"], ["user_id", "a77973ae-cc5f-11e4-9b2f-705681abff85"], ["created_at", "2015-03-17 04:39:53.169751"], ["updated_at", "2015-03-17 04:39:53.169751"], ["token", "yFBA7jmlx3cuqw_m464GM2KLOohFvLAAbobFcW67nFc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.174584"], ["updated_at", "2015-03-17 04:39:53.174584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a77973ae-cc5f-11e4-9b2f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a77acc54-cc5f-11e4-9f5b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a77973ae-cc5f-11e4-9b2f-705681abff85"], ["organization_id", "a77acc54-cc5f-11e4-9f5b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.180570"], ["updated_at", "2015-03-17 04:39:53.180570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a77acc54-cc5f-11e4-9f5b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a77acc54-cc5f-11e4-9f5b-705681abff85"], ["created_at", "2015-03-17 04:39:53.184815"], ["updated_at", "2015-03-17 04:39:53.184815"], ["token", "nCbg8FBciSX9vh3g3NfHZS4l43ySDW6kxwDi5Ck8a7o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.191874' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yFBA7jmlx3cuqw_m464GM2KLOohFvLAAbobFcW67nFc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.199739"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.201569"], ["id", "a779fe78-cc5f-11e4-95f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a77973ae-cc5f-11e4-9b2f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a77973ae-cc5f-11e4-9b2f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a77973ae-cc5f-11e4-9b2f-705681abff85"]] Completed 500 Internal Server Error in 35ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$s0zSp0ypYMX1FjxllsP.jOpUS6RiswHM/FWX6olTsLPP3dCKCFycG"], ["created_at", "2015-03-17 04:39:53.233865"], ["updated_at", "2015-03-17 04:39:53.233865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.235967"], ["user_id", "a783c3f4-cc5f-11e4-9038-705681abff85"], ["created_at", "2015-03-17 04:39:53.236902"], ["updated_at", "2015-03-17 04:39:53.236902"], ["token", "tHBNj2dW0fMhCrvYEUCgLf8CN82cJNIozIyYUb49DFU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.241206"], ["updated_at", "2015-03-17 04:39:53.241206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a783c3f4-cc5f-11e4-9038-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a784d99c-cc5f-11e4-8548-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a783c3f4-cc5f-11e4-9038-705681abff85"], ["organization_id", "a784d99c-cc5f-11e4-8548-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.244476"], ["updated_at", "2015-03-17 04:39:53.244476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a784d99c-cc5f-11e4-8548-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a784d99c-cc5f-11e4-8548-705681abff85"], ["created_at", "2015-03-17 04:39:53.248547"], ["updated_at", "2015-03-17 04:39:53.248547"], ["token", "K1Icv5K5Bo-XFX2PcHnQOZ0vzK49pQaX1yzq5LPVLZQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.254094' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tHBNj2dW0fMhCrvYEUCgLf8CN82cJNIozIyYUb49DFU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.255536"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.342698"], ["id", "a7844afe-cc5f-11e4-a451-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a783c3f4-cc5f-11e4-9038-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a783c3f4-cc5f-11e4-9038-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a783c3f4-cc5f-11e4-9038-705681abff85"]] Completed 500 Internal Server Error in 97ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$IsICRor/8humn5hlshf5FeXVprMCZPctrQc3dDvp9qQf.zU9E8Tuy"], ["created_at", "2015-03-17 04:39:53.357660"], ["updated_at", "2015-03-17 04:39:53.357660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.359478"], ["user_id", "a796a41a-cc5f-11e4-b3ce-705681abff85"], ["created_at", "2015-03-17 04:39:53.360346"], ["updated_at", "2015-03-17 04:39:53.360346"], ["token", "aA6Qn7DFbc0OHXX8tbzKzwJjU4MIqAEV57zttKbqOq0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.364415"], ["updated_at", "2015-03-17 04:39:53.364415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a796a41a-cc5f-11e4-b3ce-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a797a72a-cc5f-11e4-a8cb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a796a41a-cc5f-11e4-b3ce-705681abff85"], ["organization_id", "a797a72a-cc5f-11e4-a8cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.368282"], ["updated_at", "2015-03-17 04:39:53.368282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a797a72a-cc5f-11e4-a8cb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a797a72a-cc5f-11e4-a8cb-705681abff85"], ["created_at", "2015-03-17 04:39:53.372105"], ["updated_at", "2015-03-17 04:39:53.372105"], ["token", "M3DoteeCibv8kUv_dRyFzeUaG3YNJCe-q_rJUZv-lFY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.378338' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aA6Qn7DFbc0OHXX8tbzKzwJjU4MIqAEV57zttKbqOq0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.380052"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.381148"], ["id", "a7971a76-cc5f-11e4-b42b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a796a41a-cc5f-11e4-b3ce-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a796a41a-cc5f-11e4-b3ce-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a796a41a-cc5f-11e4-b3ce-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$reOfbj0/oN.0CFXCoRValuIJJhwXYtHtPhMXmH1zSRTzx1rNcf6x2"], ["created_at", "2015-03-17 04:39:53.395108"], ["updated_at", "2015-03-17 04:39:53.395108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.397265"], ["user_id", "a79c6710-cc5f-11e4-af7c-705681abff85"], ["created_at", "2015-03-17 04:39:53.398221"], ["updated_at", "2015-03-17 04:39:53.398221"], ["token", "_mcceOpHKy2zifMh2l97PgwnMy2h6yqVYfN29AtGjbA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.403267"], ["updated_at", "2015-03-17 04:39:53.403267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a79c6710-cc5f-11e4-af7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a79dad1e-cc5f-11e4-b26d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a79c6710-cc5f-11e4-af7c-705681abff85"], ["organization_id", "a79dad1e-cc5f-11e4-b26d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.408302"], ["updated_at", "2015-03-17 04:39:53.408302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a79dad1e-cc5f-11e4-b26d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a79dad1e-cc5f-11e4-b26d-705681abff85"], ["created_at", "2015-03-17 04:39:53.412550"], ["updated_at", "2015-03-17 04:39:53.412550"], ["token", "ipszZ6wFOwpS5-Thea5S4zQw2-pa2BTtpRmC1XKYiXo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ynaTWiLhw7nHJmEAXhIC2.XD3ON3tOoHvm0A6BOwf6oQhlxdrnEnW"], ["created_at", "2015-03-17 04:39:53.419172"], ["updated_at", "2015-03-17 04:39:53.419172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.424062"], ["updated_at", "2015-03-17 04:39:53.424062"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7a01ebe-cc5f-11e4-a657-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7a0c382-cc5f-11e4-9a9e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a7a01ebe-cc5f-11e4-a657-705681abff85"], ["organization_id", "a7a0c382-cc5f-11e4-9a9e-705681abff85"], ["created_at", "2015-03-17 04:39:53.428571"], ["updated_at", "2015-03-17 04:39:53.428571"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a79dad1e-cc5f-11e4-b26d-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"a79dad1e-cc5f-11e4-b26d-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.434809' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_mcceOpHKy2zifMh2l97PgwnMy2h6yqVYfN29AtGjbA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.436490"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.437849"], ["id", "a79cec94-cc5f-11e4-a7c9-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a79c6710-cc5f-11e4-af7c-705681abff85"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a79c6710-cc5f-11e4-af7c-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a79dad1e-cc5f-11e4-b26d-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "a79dad1e-cc5f-11e4-b26d-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a79dad1e-cc5f-11e4-b26d-705681abff85') Completed 200 OK in 27ms (Views: 9.9ms | ActiveRecord: 3.6ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$wdlqWFxfWUlWx09mfwjQveSoo72549pr0niGNRR6iH21anEAij2o2"], ["created_at", "2015-03-17 04:39:53.471884"], ["updated_at", "2015-03-17 04:39:53.471884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.474468"], ["user_id", "a7a81aa6-cc5f-11e4-9c7b-705681abff85"], ["created_at", "2015-03-17 04:39:53.475349"], ["updated_at", "2015-03-17 04:39:53.475349"], ["token", "KGSvPG-GvK-CmFMNX9An_bqQSdPIfvmYSr2uTcLqloM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.479917"], ["updated_at", "2015-03-17 04:39:53.479917"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7a81aa6-cc5f-11e4-9c7b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7a94c3c-cc5f-11e4-9f62-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7a81aa6-cc5f-11e4-9c7b-705681abff85"], ["organization_id", "a7a94c3c-cc5f-11e4-9f62-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.484189"], ["updated_at", "2015-03-17 04:39:53.484189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a7a94c3c-cc5f-11e4-9f62-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a7a94c3c-cc5f-11e4-9f62-705681abff85"], ["created_at", "2015-03-17 04:39:53.489246"], ["updated_at", "2015-03-17 04:39:53.489246"], ["token", "63zIWyFBPo1khu7rA0Ltzi4fL8OJQsiZ4yvbET2x2H0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$2rWg0UJ/UtZoTMZhUngm7ezMPAF6w.aXbsyyLwu623ZqTnz0SIhg6"], ["created_at", "2015-03-17 04:39:53.495232"], ["updated_at", "2015-03-17 04:39:53.495232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.499716"], ["updated_at", "2015-03-17 04:39:53.499716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7abaf72-cc5f-11e4-9162-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7ac590e-cc5f-11e4-ad0f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a7abaf72-cc5f-11e4-9162-705681abff85"], ["organization_id", "a7ac590e-cc5f-11e4-ad0f-705681abff85"], ["created_at", "2015-03-17 04:39:53.504774"], ["updated_at", "2015-03-17 04:39:53.504774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$7ZWrG57B6nrWqB2ZSy1dLuwSwZ8OZAKrktzNaQ7I/VhxnzYuv7Mry"], ["created_at", "2015-03-17 04:39:53.552960"], ["updated_at", "2015-03-17 04:39:53.552960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.555622"], ["user_id", "a7b488a4-cc5f-11e4-80b3-705681abff85"], ["created_at", "2015-03-17 04:39:53.556816"], ["updated_at", "2015-03-17 04:39:53.556816"], ["token", "f5EPBjuWwPwkfqI5nZ7Qz7cswTAGGICJX1jZJFCY5n8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.561842"], ["updated_at", "2015-03-17 04:39:53.561842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7b488a4-cc5f-11e4-80b3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7b5def2-cc5f-11e4-9fb4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7b488a4-cc5f-11e4-80b3-705681abff85"], ["organization_id", "a7b5def2-cc5f-11e4-9fb4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.566603"], ["updated_at", "2015-03-17 04:39:53.566603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'a7b5def2-cc5f-11e4-9fb4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "a7b5def2-cc5f-11e4-9fb4-705681abff85"], ["created_at", "2015-03-17 04:39:53.570986"], ["updated_at", "2015-03-17 04:39:53.570986"], ["token", "KtS46Uw7ZlDZX4-NE4Ppqafi_4aBm0PL4CMmztCdpq0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/a7b742ec-cc5f-11e4-b1bd-705681abff85" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"a7b742ec-cc5f-11e4-b1bd-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.576761' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "f5EPBjuWwPwkfqI5nZ7Qz7cswTAGGICJX1jZJFCY5n8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.578769"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.579945"], ["id", "a7b51e4a-cc5f-11e4-97e7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7b488a4-cc5f-11e4-80b3-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7b488a4-cc5f-11e4-80b3-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a7b742ec-cc5f-11e4-b1bd-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$vcc0Ud9gRKbSmuzgQStVXOsYcHF9DFRRHYIKyiVYI82Fq4Obt66D6"], ["created_at", "2015-03-17 04:39:53.595634"], ["updated_at", "2015-03-17 04:39:53.595634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.597891"], ["user_id", "a7baf9dc-cc5f-11e4-90a9-705681abff85"], ["created_at", "2015-03-17 04:39:53.598847"], ["updated_at", "2015-03-17 04:39:53.598847"], ["token", "FCpdm1m5IuMKdSXyQZtGG1hoXmo_QFPkAYDPx9VczTg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.603138"], ["updated_at", "2015-03-17 04:39:53.603138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7baf9dc-cc5f-11e4-90a9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7bc1a1a-cc5f-11e4-8e1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7baf9dc-cc5f-11e4-90a9-705681abff85"], ["organization_id", "a7bc1a1a-cc5f-11e4-8e1e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.608117"], ["updated_at", "2015-03-17 04:39:53.608117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'a7bc1a1a-cc5f-11e4-8e1e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "a7bc1a1a-cc5f-11e4-8e1e-705681abff85"], ["created_at", "2015-03-17 04:39:53.612110"], ["updated_at", "2015-03-17 04:39:53.612110"], ["token", "zihLWRLlPSL1zSTX2P9jIWM21S8alkhseHyqmredFoo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Q4pC4MXOXsZlQppcEYoXqewWO1eVgZhicdJgbdE0Yg39FUUx.oGWu"], ["created_at", "2015-03-17 04:39:53.624558"], ["updated_at", "2015-03-17 04:39:53.624558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.627378"], ["user_id", "a7bf7cbe-cc5f-11e4-b20a-705681abff85"], ["created_at", "2015-03-17 04:39:53.628443"], ["updated_at", "2015-03-17 04:39:53.628443"], ["token", "jSNMcxKVqd1hAqkj_adQE6rCNr9qx8YAj_4_oDOFcSc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.632358"], ["updated_at", "2015-03-17 04:39:53.632358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7bf7cbe-cc5f-11e4-b20a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7c0887a-cc5f-11e4-ae58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7bf7cbe-cc5f-11e4-b20a-705681abff85"], ["organization_id", "a7c0887a-cc5f-11e4-ae58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.636135"], ["updated_at", "2015-03-17 04:39:53.636135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'a7c0887a-cc5f-11e4-ae58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "a7c0887a-cc5f-11e4-ae58-705681abff85"], ["created_at", "2015-03-17 04:39:53.639773"], ["updated_at", "2015-03-17 04:39:53.639773"], ["token", "AAddD753DA8b6xxJnKhMN_WAe3OY3mOfwyO1qwD8XcY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$48A1LqFusHchFWfB8KuZsugYUCClJrp289LR5LrObM/4F.GoFxpDC"], ["created_at", "2015-03-17 04:39:53.644663"], ["updated_at", "2015-03-17 04:39:53.644663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.647967"], ["updated_at", "2015-03-17 04:39:53.647967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7c26d34-cc5f-11e4-ad5c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7c2ed68-cc5f-11e4-9f3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a7c26d34-cc5f-11e4-ad5c-705681abff85"], ["organization_id", "a7c2ed68-cc5f-11e4-9f3a-705681abff85"], ["created_at", "2015-03-17 04:39:53.652336"], ["updated_at", "2015-03-17 04:39:53.652336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.656861' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jSNMcxKVqd1hAqkj_adQE6rCNr9qx8YAj_4_oDOFcSc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.658531"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.659556"], ["id", "a7bffad6-cc5f-11e4-a4e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7bf7cbe-cc5f-11e4-b20a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7bf7cbe-cc5f-11e4-b20a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "a7c0887a-cc5f-11e4-ae58-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a7c0887a-cc5f-11e4-ae58-705681abff85') Completed 200 OK in 11ms (Views: 2.7ms | ActiveRecord: 2.1ms)  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$xq8RnwKK0Rb8rAkuFPkjjuRIXfl2ikU2c7wHJFV8.a5QqLZe9UUta"], ["created_at", "2015-03-17 04:39:53.680715"], ["updated_at", "2015-03-17 04:39:53.680715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.683055"], ["user_id", "a7c7fff6-cc5f-11e4-94eb-705681abff85"], ["created_at", "2015-03-17 04:39:53.683849"], ["updated_at", "2015-03-17 04:39:53.683849"], ["token", "YejgnLKdLYZHvhIQV71-ybmBzZj3S7kxHdT-D6JAtUQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.688367"], ["updated_at", "2015-03-17 04:39:53.688367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7c7fff6-cc5f-11e4-94eb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7c919b8-cc5f-11e4-8b19-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7c7fff6-cc5f-11e4-94eb-705681abff85"], ["organization_id", "a7c919b8-cc5f-11e4-8b19-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.692143"], ["updated_at", "2015-03-17 04:39:53.692143"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'a7c919b8-cc5f-11e4-8b19-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "a7c919b8-cc5f-11e4-8b19-705681abff85"], ["created_at", "2015-03-17 04:39:53.695752"], ["updated_at", "2015-03-17 04:39:53.695752"], ["token", "oQVW8VRXBg6NdrIzzgRsmxt1TlilyinWHKTh7tooewM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$4fROeJ7Ljh.t0YRkAAXF.ujD6KgwR0Z8aua0Vg5O.WQjHeT3Zqmu2"], ["created_at", "2015-03-17 04:39:53.700741"], ["updated_at", "2015-03-17 04:39:53.700741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.704169"], ["updated_at", "2015-03-17 04:39:53.704169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7caf864-cc5f-11e4-ad7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7cb7d7a-cc5f-11e4-a56f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a7caf864-cc5f-11e4-ad7c-705681abff85"], ["organization_id", "a7cb7d7a-cc5f-11e4-a56f-705681abff85"], ["created_at", "2015-03-17 04:39:53.707806"], ["updated_at", "2015-03-17 04:39:53.707806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$dcg2EQWlWeVaT4I5qJjCZuBOVRJ0c1jE3qtkyMto87nEQRTpydBrS"], ["created_at", "2015-03-17 04:39:53.719062"], ["updated_at", "2015-03-17 04:39:53.719062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.720986"], ["user_id", "a7cdc706-cc5f-11e4-bf09-705681abff85"], ["created_at", "2015-03-17 04:39:53.722065"], ["updated_at", "2015-03-17 04:39:53.722065"], ["token", "9vcDzsyITm40r8caxX7mjEtnWxJ2MTfHVAhekKAY2S8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.725975"], ["updated_at", "2015-03-17 04:39:53.725975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7cdc706-cc5f-11e4-bf09-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7ced3da-cc5f-11e4-8c3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7cdc706-cc5f-11e4-bf09-705681abff85"], ["organization_id", "a7ced3da-cc5f-11e4-8c3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.730140"], ["updated_at", "2015-03-17 04:39:53.730140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'a7ced3da-cc5f-11e4-8c3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "a7ced3da-cc5f-11e4-8c3e-705681abff85"], ["created_at", "2015-03-17 04:39:53.734416"], ["updated_at", "2015-03-17 04:39:53.734416"], ["token", "I212h7r4jJiu4HouaqtuIWSynvS1PUBAJ36D7DoEFOk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$JIy.oC14C09gpyZTT5MkguVXId5xc.l4yEqNeDbxDVRpjWA4RM39K"], ["created_at", "2015-03-17 04:39:53.746390"], ["updated_at", "2015-03-17 04:39:53.746390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.748344"], ["user_id", "a7d1f2d6-cc5f-11e4-bd9f-705681abff85"], ["created_at", "2015-03-17 04:39:53.749272"], ["updated_at", "2015-03-17 04:39:53.749272"], ["token", "eZLkOUfpeaIZRtqOqWOCUuOLvfKp6urJecLTOEzSDWY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.753676"], ["updated_at", "2015-03-17 04:39:53.753676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7d1f2d6-cc5f-11e4-bd9f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7d31abc-cc5f-11e4-844e-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7d1f2d6-cc5f-11e4-bd9f-705681abff85"], ["organization_id", "a7d31abc-cc5f-11e4-844e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.757611"], ["updated_at", "2015-03-17 04:39:53.757611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'a7d31abc-cc5f-11e4-844e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "a7d31abc-cc5f-11e4-844e-705681abff85"], ["created_at", "2015-03-17 04:39:53.763507"], ["updated_at", "2015-03-17 04:39:53.763507"], ["token", "KV0d1C_2wyTkR3Lw383cm4-LU2g4tpj8AO2hCunofVs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a7d31abc-cc5f-11e4-844e-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"a7d31abc-cc5f-11e4-844e-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.768666' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eZLkOUfpeaIZRtqOqWOCUuOLvfKp6urJecLTOEzSDWY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.770485"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.771611"], ["id", "a7d2756c-cc5f-11e4-9bd6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7d1f2d6-cc5f-11e4-bd9f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7d1f2d6-cc5f-11e4-bd9f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7d1f2d6-cc5f-11e4-bd9f-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$VCccTdwW1aLW.6/U0x0Ye.Awcz0Nh6ya7vFAPWuub2ANaR06K8wDm"], ["created_at", "2015-03-17 04:39:53.786222"], ["updated_at", "2015-03-17 04:39:53.786222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.789178"], ["user_id", "a7d8244e-cc5f-11e4-a967-705681abff85"], ["created_at", "2015-03-17 04:39:53.790034"], ["updated_at", "2015-03-17 04:39:53.790034"], ["token", "Mj3cKJLyN4RofrctjbVE_gWvkatIR8hYEr9LiB4UxNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.794500"], ["updated_at", "2015-03-17 04:39:53.794500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7d8244e-cc5f-11e4-a967-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7d94d7e-cc5f-11e4-9308-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7d8244e-cc5f-11e4-a967-705681abff85"], ["organization_id", "a7d94d7e-cc5f-11e4-9308-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.798918"], ["updated_at", "2015-03-17 04:39:53.798918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'a7d94d7e-cc5f-11e4-9308-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "a7d94d7e-cc5f-11e4-9308-705681abff85"], ["created_at", "2015-03-17 04:39:53.803281"], ["updated_at", "2015-03-17 04:39:53.803281"], ["token", "YUdoMuHoXz6VfiO4o4vjAuNrAtQz_4cltBieizq6G1A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a7d94d7e-cc5f-11e4-9308-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"a7d94d7e-cc5f-11e4-9308-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.808337' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Mj3cKJLyN4RofrctjbVE_gWvkatIR8hYEr9LiB4UxNc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.810597"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.812466"], ["id", "a7d8b06c-cc5f-11e4-aac1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7d8244e-cc5f-11e4-a967-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7d8244e-cc5f-11e4-a967-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7d8244e-cc5f-11e4-a967-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$ekNN.1rlUoDuEDmSwJOmW.ZycXHahPTV47T2YJ/X.nYE5fEjtYe9O"], ["created_at", "2015-03-17 04:39:53.825645"], ["updated_at", "2015-03-17 04:39:53.825645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.827509"], ["user_id", "a7de0f9e-cc5f-11e4-ae78-705681abff85"], ["created_at", "2015-03-17 04:39:53.828329"], ["updated_at", "2015-03-17 04:39:53.828329"], ["token", "y07GXVjJxU2nLEFUVN7SQez9y-qbe9KinfJsX-CvsD8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.831698"], ["updated_at", "2015-03-17 04:39:53.831698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7de0f9e-cc5f-11e4-ae78-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7def332-cc5f-11e4-885b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7de0f9e-cc5f-11e4-ae78-705681abff85"], ["organization_id", "a7def332-cc5f-11e4-885b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.835768"], ["updated_at", "2015-03-17 04:39:53.835768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'a7def332-cc5f-11e4-885b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "a7def332-cc5f-11e4-885b-705681abff85"], ["created_at", "2015-03-17 04:39:53.839585"], ["updated_at", "2015-03-17 04:39:53.839585"], ["token", "1ePcQ34Dkg61smuSI0mf5tkt1GQHbU_wLvCH-vJigK4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a7def332-cc5f-11e4-885b-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"a7def332-cc5f-11e4-885b-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.844598' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y07GXVjJxU2nLEFUVN7SQez9y-qbe9KinfJsX-CvsD8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.846360"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.847595"], ["id", "a7de78ee-cc5f-11e4-8426-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7de0f9e-cc5f-11e4-ae78-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7de0f9e-cc5f-11e4-ae78-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7de0f9e-cc5f-11e4-ae78-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$T6GPCo.ezE29EaAXOVLvrup1Cbwpdl0hht4kMErN8uyZ2sDXiT7YS"], ["created_at", "2015-03-17 04:39:53.859669"], ["updated_at", "2015-03-17 04:39:53.859669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.861506"], ["user_id", "a7e341f8-cc5f-11e4-a975-705681abff85"], ["created_at", "2015-03-17 04:39:53.862296"], ["updated_at", "2015-03-17 04:39:53.862296"], ["token", "Y4aeUUsjTjQ5q1gLACGXy7Oy-l9gaT3YgFVONq3RuXI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.870573"], ["updated_at", "2015-03-17 04:39:53.870573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7e341f8-cc5f-11e4-a975-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7e4e8d2-cc5f-11e4-bad8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7e341f8-cc5f-11e4-a975-705681abff85"], ["organization_id", "a7e4e8d2-cc5f-11e4-bad8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.874872"], ["updated_at", "2015-03-17 04:39:53.874872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'a7e4e8d2-cc5f-11e4-bad8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "a7e4e8d2-cc5f-11e4-bad8-705681abff85"], ["created_at", "2015-03-17 04:39:53.879053"], ["updated_at", "2015-03-17 04:39:53.879053"], ["token", "2n_S_UNd68DmepSH23hhL1GFg7xfNyG03wC8LMH9_TI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/a7e63692-cc5f-11e4-b3c6-705681abff85" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"a7e63692-cc5f-11e4-b3c6-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.885830' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y4aeUUsjTjQ5q1gLACGXy7Oy-l9gaT3YgFVONq3RuXI"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.890889"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.893176"], ["id", "a7e3a620-cc5f-11e4-8883-705681abff85"]]  (1.8ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7e341f8-cc5f-11e4-a975-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7e341f8-cc5f-11e4-a975-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a7e63692-cc5f-11e4-b3c6-705681abff85"]] Completed 500 Internal Server Error in 19ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$3K2vVhd7HjJjUuCgrRF20uQPiuiXYPDEW1SGM8.4LwkajCkTzyG9i"], ["created_at", "2015-03-17 04:39:53.914666"], ["updated_at", "2015-03-17 04:39:53.914666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.917505"], ["user_id", "a7ebbb26-cc5f-11e4-bdd1-705681abff85"], ["created_at", "2015-03-17 04:39:53.918432"], ["updated_at", "2015-03-17 04:39:53.918432"], ["token", "bpedJs9oZzqK7AzZ7_WPkiOxLB4060vm5XQoVWL86f0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.922744"], ["updated_at", "2015-03-17 04:39:53.922744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7ebbb26-cc5f-11e4-bdd1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7ecddb2-cc5f-11e4-867b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7ebbb26-cc5f-11e4-bdd1-705681abff85"], ["organization_id", "a7ecddb2-cc5f-11e4-867b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.927230"], ["updated_at", "2015-03-17 04:39:53.927230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'a7ecddb2-cc5f-11e4-867b-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "a7ecddb2-cc5f-11e4-867b-705681abff85"], ["created_at", "2015-03-17 04:39:53.931838"], ["updated_at", "2015-03-17 04:39:53.931838"], ["token", "xu3hwYBLKJspe2o9oXIJ7h4nOikzbBz0iXSuXBKhXtA"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$rqRzdtPQCaJhOJ63m6ZZcOY7OO6c4SR0mBc4AOmP8OCDMCWYwqFxK"], ["created_at", "2015-03-17 04:39:53.953970"], ["updated_at", "2015-03-17 04:39:53.953970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:53.956261"], ["user_id", "a7f1a428-cc5f-11e4-a5ae-705681abff85"], ["created_at", "2015-03-17 04:39:53.957356"], ["updated_at", "2015-03-17 04:39:53.957356"], ["token", "huaxn7vo-4Eb_IhKIq0YsM1NkYYYIXvMG4Jy8KZoa5U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:53.964486"], ["updated_at", "2015-03-17 04:39:53.964486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7f1a428-cc5f-11e4-a5ae-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7f35b2e-cc5f-11e4-a073-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7f1a428-cc5f-11e4-a5ae-705681abff85"], ["organization_id", "a7f35b2e-cc5f-11e4-a073-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:53.976518"], ["updated_at", "2015-03-17 04:39:53.976518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'a7f35b2e-cc5f-11e4-a073-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "a7f35b2e-cc5f-11e4-a073-705681abff85"], ["created_at", "2015-03-17 04:39:53.980642"], ["updated_at", "2015-03-17 04:39:53.980642"], ["token", "BGQjaW3RlotN9TBL-3zl5BeKHWFHiKCC98LxgcB5QpE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/a7f5bf22-cc5f-11e4-88ad-705681abff85" for 127.0.0.1 at 2015-03-16 21:39:53 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"a7f5bf22-cc5f-11e4-88ad-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:39:53.987338' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "huaxn7vo-4Eb_IhKIq0YsM1NkYYYIXvMG4Jy8KZoa5U"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:39:53.989440"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:39:53.990482"], ["id", "a7f231a4-cc5f-11e4-a3ca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7f1a428-cc5f-11e4-a5ae-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a7f1a428-cc5f-11e4-a5ae-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a7f5bf22-cc5f-11e4-88ad-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a7f35b2e-cc5f-11e4-a073-705681abff85"]] Completed 200 OK in 15ms (Views: 3.7ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$UMlqgRtbsoD.EZAAmPCtRe6LHn5Tv5Rj7FSghpSgufbthClfQoZkW"], ["created_at", "2015-03-17 04:39:54.009180"], ["updated_at", "2015-03-17 04:39:54.009180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:39:54.011132"], ["user_id", "a7fa0ea6-cc5f-11e4-b827-705681abff85"], ["created_at", "2015-03-17 04:39:54.011973"], ["updated_at", "2015-03-17 04:39:54.011973"], ["token", "qOmFo_b_X6dxepWPpgsd7TDVN2fmQV16u31fWsVqi4U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:39:54.016184"], ["updated_at", "2015-03-17 04:39:54.016184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7fa0ea6-cc5f-11e4-b827-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a7fb2566-cc5f-11e4-ad9c-705681abff85') LIMIT 1 SQL (3.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7fa0ea6-cc5f-11e4-b827-705681abff85"], ["organization_id", "a7fb2566-cc5f-11e4-ad9c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:39:54.021869"], ["updated_at", "2015-03-17 04:39:54.021869"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'a7fb2566-cc5f-11e4-ad9c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "a7fb2566-cc5f-11e4-ad9c-705681abff85"], ["created_at", "2015-03-17 04:39:54.031842"], ["updated_at", "2015-03-17 04:39:54.031842"], ["token", "eQKfneIZRTadLAc_6HlftFP_YKC04Rjm4HZEatxxP_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-16 21:39:54 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (32.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$IY3/vwa0qWxMhaNFIrJyUeYOXJhrchBBALd00RhwjuAGDDcDv2LV."], ["created_at", "2015-03-17 04:41:31.988605"], ["updated_at", "2015-03-17 04:41:31.988605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (9.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.034831"], ["user_id", "e2646a1e-cc5f-11e4-b9c7-705681abff85"], ["created_at", "2015-03-17 04:41:32.040850"], ["updated_at", "2015-03-17 04:41:32.040850"], ["token", "bRORoY_Llua1pnlzBKm0JkliQ3odK4Gb4Pd77y0sCcc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.061232"], ["updated_at", "2015-03-17 04:41:32.061232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2646a1e-cc5f-11e4-b9c7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e26bad2e-cc5f-11e4-a22e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2646a1e-cc5f-11e4-b9c7-705681abff85"], ["organization_id", "e26bad2e-cc5f-11e4-a22e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.076878"], ["updated_at", "2015-03-17 04:41:32.076878"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e26bad2e-cc5f-11e4-a22e-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "e26bad2e-cc5f-11e4-a22e-705681abff85"], ["created_at", "2015-03-17 04:41:32.096978"], ["updated_at", "2015-03-17 04:41:32.096978"], ["token", "bQmfj9cpbVFLzCOgurPSp3tmzUQ3lWxn4gHLyq0Vzo8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$X1j8uJk0T/lOCm6TYW5Jje21Ga8Wdfi9DHo/wuPDQZJ96f0e6Dio."], ["created_at", "2015-03-17 04:41:32.131266"], ["updated_at", "2015-03-17 04:41:32.131266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.133175"], ["user_id", "e27651de-cc5f-11e4-8ecd-705681abff85"], ["created_at", "2015-03-17 04:41:32.133977"], ["updated_at", "2015-03-17 04:41:32.133977"], ["token", "C1peXuJeN7_liZ4gJUFehIj-sYGMzM8Rq8Tnxlw-rso"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.145485"], ["updated_at", "2015-03-17 04:41:32.145485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e27651de-cc5f-11e4-8ecd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2787a68-cc5f-11e4-8f47-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e27651de-cc5f-11e4-8ecd-705681abff85"], ["organization_id", "e2787a68-cc5f-11e4-8f47-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.149343"], ["updated_at", "2015-03-17 04:41:32.149343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'e2787a68-cc5f-11e4-8f47-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "e2787a68-cc5f-11e4-8f47-705681abff85"], ["created_at", "2015-03-17 04:41:32.153964"], ["updated_at", "2015-03-17 04:41:32.153964"], ["token", "ThBt8cBKTxpIs0GIkID1Qe4dk6PL6raiG361Rw1exX0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/e279c7ba-cc5f-11e4-b07f-705681abff85" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"e279c7ba-cc5f-11e4-b07f-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.159189' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "C1peXuJeN7_liZ4gJUFehIj-sYGMzM8Rq8Tnxlw-rso"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.166744"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.167965"], ["id", "e276b7a0-cc5f-11e4-a12e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e27651de-cc5f-11e4-8ecd-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e27651de-cc5f-11e4-8ecd-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "e279c7ba-cc5f-11e4-b07f-705681abff85"]] Completed 500 Internal Server Error in 34ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$vtWEntSFRM.jfqK6mZgQBeEWVrX/ltQgRuhhPL1Rzz2FZuSfZVc82"], ["created_at", "2015-03-17 04:41:32.198691"], ["updated_at", "2015-03-17 04:41:32.198691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.200718"], ["user_id", "e28099fa-cc5f-11e4-957f-705681abff85"], ["created_at", "2015-03-17 04:41:32.201592"], ["updated_at", "2015-03-17 04:41:32.201592"], ["token", "mKFcghrBpsthfq502dPX0_xbwQsNTQipfIyIIMrtTXI"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.208494"], ["updated_at", "2015-03-17 04:41:32.208494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e28099fa-cc5f-11e4-957f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2822126-cc5f-11e4-8a37-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e28099fa-cc5f-11e4-957f-705681abff85"], ["organization_id", "e2822126-cc5f-11e4-8a37-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.213534"], ["updated_at", "2015-03-17 04:41:32.213534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'e2822126-cc5f-11e4-8a37-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "e2822126-cc5f-11e4-8a37-705681abff85"], ["created_at", "2015-03-17 04:41:32.218283"], ["updated_at", "2015-03-17 04:41:32.218283"], ["token", "oNxHiDhNsjwX7esox4pegbw27ymlvevUuHwxd0WPPb8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$RqzFR.4TfgvtUVcca9T/Cusq3nG55MJ7Xv1wv2uHjMNa1u4P4kb7."], ["created_at", "2015-03-17 04:41:32.223937"], ["updated_at", "2015-03-17 04:41:32.223937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.227984"], ["updated_at", "2015-03-17 04:41:32.227984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2847836-cc5f-11e4-88e1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2850e0e-cc5f-11e4-bfea-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2847836-cc5f-11e4-88e1-705681abff85"], ["organization_id", "e2850e0e-cc5f-11e4-bfea-705681abff85"], ["created_at", "2015-03-17 04:41:32.232067"], ["updated_at", "2015-03-17 04:41:32.232067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Pc.T2L4cRVgmgMkPS5UivuDBfd50DL7gxcaFYOtwjFqy9BzbbpPPe"], ["created_at", "2015-03-17 04:41:32.244612"], ["updated_at", "2015-03-17 04:41:32.244612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.246305"], ["user_id", "e28795c0-cc5f-11e4-b279-705681abff85"], ["created_at", "2015-03-17 04:41:32.247113"], ["updated_at", "2015-03-17 04:41:32.247113"], ["token", "jDIf0L4_rqPBf9G0i40KxbvL024bIBUCH6oTb8iPmrk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.251043"], ["updated_at", "2015-03-17 04:41:32.251043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e28795c0-cc5f-11e4-b279-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2888d7c-cc5f-11e4-8817-705681abff85') LIMIT 1 SQL (16.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e28795c0-cc5f-11e4-b279-705681abff85"], ["organization_id", "e2888d7c-cc5f-11e4-8817-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.254656"], ["updated_at", "2015-03-17 04:41:32.254656"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'e2888d7c-cc5f-11e4-8817-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "e2888d7c-cc5f-11e4-8817-705681abff85"], ["created_at", "2015-03-17 04:41:32.295027"], ["updated_at", "2015-03-17 04:41:32.295027"], ["token", "SlMXBJM_O3OJXSzNTlxvuwyGj3hNQuXGE20WCfcJdPw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$5cl5kclkwve.w/JJm9VaSekNSwPzLg/66W8NtAZvVXRxjNiHcmuVW"], ["created_at", "2015-03-17 04:41:32.303469"], ["updated_at", "2015-03-17 04:41:32.303469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.310229"], ["updated_at", "2015-03-17 04:41:32.310229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e290b0d8-cc5f-11e4-b2e6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e291a948-cc5f-11e4-8245-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e290b0d8-cc5f-11e4-b2e6-705681abff85"], ["organization_id", "e291a948-cc5f-11e4-8245-705681abff85"], ["created_at", "2015-03-17 04:41:32.316953"], ["updated_at", "2015-03-17 04:41:32.316953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.328972' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jDIf0L4_rqPBf9G0i40KxbvL024bIBUCH6oTb8iPmrk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.331940"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.333474"], ["id", "e287fd26-cc5f-11e4-a7be-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e28795c0-cc5f-11e4-b279-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e28795c0-cc5f-11e4-b279-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "e2888d7c-cc5f-11e4-8817-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('e2888d7c-cc5f-11e4-8817-705681abff85') Completed 200 OK in 30ms (Views: 12.2ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$NNPYLPlQ8nuRjy9dkkKqeOO1ksg4.z6.dEZ.roxsZ9B3m/zsf7lcu"], ["created_at", "2015-03-17 04:41:32.368607"], ["updated_at", "2015-03-17 04:41:32.368607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.370502"], ["user_id", "e29a8112-cc5f-11e4-b99a-705681abff85"], ["created_at", "2015-03-17 04:41:32.371285"], ["updated_at", "2015-03-17 04:41:32.371285"], ["token", "81gwDfGda7kh44go4wcCueHU659orP5movvpMVU2hUA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.375267"], ["updated_at", "2015-03-17 04:41:32.375267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e29a8112-cc5f-11e4-b99a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e29b8602-cc5f-11e4-8a43-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e29a8112-cc5f-11e4-b99a-705681abff85"], ["organization_id", "e29b8602-cc5f-11e4-8a43-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.378810"], ["updated_at", "2015-03-17 04:41:32.378810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'e29b8602-cc5f-11e4-8a43-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "e29b8602-cc5f-11e4-8a43-705681abff85"], ["created_at", "2015-03-17 04:41:32.382926"], ["updated_at", "2015-03-17 04:41:32.382926"], ["token", "1P9iE2fc-V2HvYn2nM5mN6UL0yVnk6ZX4N_2RJfu6Ww"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$5LO3J8aYyFzbZ27W8/jZ6.MYAz9I6/CYWcpaQ4XojSv/FjYtnlsXO"], ["created_at", "2015-03-17 04:41:32.395045"], ["updated_at", "2015-03-17 04:41:32.395045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.396924"], ["user_id", "e29e88f2-cc5f-11e4-b444-705681abff85"], ["created_at", "2015-03-17 04:41:32.398106"], ["updated_at", "2015-03-17 04:41:32.398106"], ["token", "BA-qkVDcfUbnk4xHLQ_njh41KYfNyqVqwuqptDjVmSU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.402563"], ["updated_at", "2015-03-17 04:41:32.402563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e29e88f2-cc5f-11e4-b444-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e29faebc-cc5f-11e4-8a7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e29e88f2-cc5f-11e4-b444-705681abff85"], ["organization_id", "e29faebc-cc5f-11e4-8a7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.406058"], ["updated_at", "2015-03-17 04:41:32.406058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'e29faebc-cc5f-11e4-8a7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "e29faebc-cc5f-11e4-8a7c-705681abff85"], ["created_at", "2015-03-17 04:41:32.409606"], ["updated_at", "2015-03-17 04:41:32.409606"], ["token", "CQia1NDxE-E3nswK1zdSr6moo8Xo0hMJoWchn5ACanE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.414441' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BA-qkVDcfUbnk4xHLQ_njh41KYfNyqVqwuqptDjVmSU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.416743"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.417920"], ["id", "e29f17d6-cc5f-11e4-b6c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e29e88f2-cc5f-11e4-b444-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e29e88f2-cc5f-11e4-b444-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$8j.rViaCMlMsNCqQsNCsZOG141foD53BP8VBHMyUll2Xw9.H5nuUm"], ["created_at", "2015-03-17 04:41:32.432958"], ["updated_at", "2015-03-17 04:41:32.432958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.434790"], ["user_id", "e2a457aa-cc5f-11e4-a5c5-705681abff85"], ["created_at", "2015-03-17 04:41:32.435627"], ["updated_at", "2015-03-17 04:41:32.435627"], ["token", "hmwXuZtolti9uSAfHTAGa6H10Ae6zGMY5eGa2aU38OQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.471611"], ["updated_at", "2015-03-17 04:41:32.471611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2a457aa-cc5f-11e4-a5c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2aa39cc-cc5f-11e4-99d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2a457aa-cc5f-11e4-a5c5-705681abff85"], ["organization_id", "e2aa39cc-cc5f-11e4-99d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.475565"], ["updated_at", "2015-03-17 04:41:32.475565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'e2aa39cc-cc5f-11e4-99d2-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "e2aa39cc-cc5f-11e4-99d2-705681abff85"], ["created_at", "2015-03-17 04:41:32.479395"], ["updated_at", "2015-03-17 04:41:32.479395"], ["token", "Oxbu1zL0k4bqL8EHz1ZnHkdFqLVU2eKR-nqazBxiikk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.484767' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hmwXuZtolti9uSAfHTAGa6H10Ae6zGMY5eGa2aU38OQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.486399"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.487359"], ["id", "e2a4c032-cc5f-11e4-b581-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2a457aa-cc5f-11e4-a5c5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e2a457aa-cc5f-11e4-a5c5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$udBpWSgwAq4yJKtl59oyQeylO3VKV5rkKFrO2oSijsLv7bQ.N21vi"], ["created_at", "2015-03-17 04:41:32.499019"], ["updated_at", "2015-03-17 04:41:32.499019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.500602"], ["user_id", "e2ae6574-cc5f-11e4-a725-705681abff85"], ["created_at", "2015-03-17 04:41:32.501362"], ["updated_at", "2015-03-17 04:41:32.501362"], ["token", "X2wRnFZ1Wny0YvHmgYP29CV_Ocuy-P3xh9LhFNmuIMo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.505291"], ["updated_at", "2015-03-17 04:41:32.505291"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2ae6574-cc5f-11e4-a725-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2af5ea2-cc5f-11e4-a527-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2ae6574-cc5f-11e4-a725-705681abff85"], ["organization_id", "e2af5ea2-cc5f-11e4-a527-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.509318"], ["updated_at", "2015-03-17 04:41:32.509318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'e2af5ea2-cc5f-11e4-a527-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "e2af5ea2-cc5f-11e4-a527-705681abff85"], ["created_at", "2015-03-17 04:41:32.512978"], ["updated_at", "2015-03-17 04:41:32.512978"], ["token", "m4v27cmxdvbOvTkx_3U8HPcoN0SVKm0LeocMSTZ2mpc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.519510' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X2wRnFZ1Wny0YvHmgYP29CV_Ocuy-P3xh9LhFNmuIMo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.521140"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.522164"], ["id", "e2aec69a-cc5f-11e4-b993-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2ae6574-cc5f-11e4-a725-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e2ae6574-cc5f-11e4-a725-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$IyRHGWNPbK5DKn5NnOJiJOYYfTH837ggfdkjC2TuDQNPcoDiOAR5e"], ["created_at", "2015-03-17 04:41:32.535768"], ["updated_at", "2015-03-17 04:41:32.535768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.537459"], ["user_id", "e2b40466-cc5f-11e4-a4da-705681abff85"], ["created_at", "2015-03-17 04:41:32.538342"], ["updated_at", "2015-03-17 04:41:32.538342"], ["token", "JmQtsonPC_uwh9hRfPPPXSgM5HYJscoF1Zr9jVnSs6w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.541776"], ["updated_at", "2015-03-17 04:41:32.541776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2b40466-cc5f-11e4-a4da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2b4e926-cc5f-11e4-a847-705681abff85') LIMIT 1 SQL (11.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2b40466-cc5f-11e4-a4da-705681abff85"], ["organization_id", "e2b4e926-cc5f-11e4-a847-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.545303"], ["updated_at", "2015-03-17 04:41:32.545303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'e2b4e926-cc5f-11e4-a847-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "e2b4e926-cc5f-11e4-a847-705681abff85"], ["created_at", "2015-03-17 04:41:32.561034"], ["updated_at", "2015-03-17 04:41:32.561034"], ["token", "T8G-kgPaEYXCWIhbfGpbMF_jYkkJzxGRfwM8MlmExV8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$0WwZ6upgLn0QM1b/Ebx3G.3V45Tx0DOgOe8Ykcz7ncOR41qD22yMO"], ["created_at", "2015-03-17 04:41:32.571875"], ["updated_at", "2015-03-17 04:41:32.571875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.573425"], ["user_id", "e2b982ce-cc5f-11e4-bd30-705681abff85"], ["created_at", "2015-03-17 04:41:32.574398"], ["updated_at", "2015-03-17 04:41:32.574398"], ["token", "DVjgtQf6WlNyaXSotXZEgUXtX8Gs-JEW0dZ_D9INOT8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.578048"], ["updated_at", "2015-03-17 04:41:32.578048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2b982ce-cc5f-11e4-bd30-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2ba77f6-cc5f-11e4-ab10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2b982ce-cc5f-11e4-bd30-705681abff85"], ["organization_id", "e2ba77f6-cc5f-11e4-ab10-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.581427"], ["updated_at", "2015-03-17 04:41:32.581427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'e2ba77f6-cc5f-11e4-ab10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "e2ba77f6-cc5f-11e4-ab10-705681abff85"], ["created_at", "2015-03-17 04:41:32.585134"], ["updated_at", "2015-03-17 04:41:32.585134"], ["token", "1IXPgzWnzUMeVr7Nl7JD54NdY5bcZfZWz0D1F5OZ7Xg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/e2bb8e2a-cc5f-11e4-bde9-705681abff85" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"e2bb8e2a-cc5f-11e4-bde9-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.589768' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DVjgtQf6WlNyaXSotXZEgUXtX8Gs-JEW0dZ_D9INOT8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.591524"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.592621"], ["id", "e2b9ef5c-cc5f-11e4-bf90-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2b982ce-cc5f-11e4-bd30-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e2b982ce-cc5f-11e4-bd30-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "e2bb8e2a-cc5f-11e4-bde9-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e2ba77f6-cc5f-11e4-ab10-705681abff85"]] Completed 200 OK in 10ms (Views: 2.2ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$bYwlxi0oKCVx///pk3bVAOZAWTIySbM/3oTPR1BC7Ntq9VOYRKD.C"], ["created_at", "2015-03-17 04:41:32.607078"], ["updated_at", "2015-03-17 04:41:32.607078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.608966"], ["user_id", "e2bee2a0-cc5f-11e4-8490-705681abff85"], ["created_at", "2015-03-17 04:41:32.609825"], ["updated_at", "2015-03-17 04:41:32.609825"], ["token", "xcA6p8hwhJ2vpq_09GOGA6RU24U8fR38U6Ecr2uKfVY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.613603"], ["updated_at", "2015-03-17 04:41:32.613603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2bee2a0-cc5f-11e4-8490-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2bffbf4-cc5f-11e4-9b63-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2bee2a0-cc5f-11e4-8490-705681abff85"], ["organization_id", "e2bffbf4-cc5f-11e4-9b63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.619170"], ["updated_at", "2015-03-17 04:41:32.619170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'e2bffbf4-cc5f-11e4-9b63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "e2bffbf4-cc5f-11e4-9b63-705681abff85"], ["created_at", "2015-03-17 04:41:32.623118"], ["updated_at", "2015-03-17 04:41:32.623118"], ["token", "0FGHKC8ZgTdzJd3zelt0ZH3KfoqKCJVWmpbz5ZJ8zvQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$sCEDcRDWbucnonAMWEtl6.EnLRl/a5KYMG/WUYhMJq.zfWy1DeY9G"], ["created_at", "2015-03-17 04:41:32.633518"], ["updated_at", "2015-03-17 04:41:32.633518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.635740"], ["user_id", "e2c2f2fa-cc5f-11e4-bfec-705681abff85"], ["created_at", "2015-03-17 04:41:32.636683"], ["updated_at", "2015-03-17 04:41:32.636683"], ["token", "UFbjdC2zbMBnIKeF4h7-w9iH-pMpToBiSxaMi-o0n78"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.640779"], ["updated_at", "2015-03-17 04:41:32.640779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2c2f2fa-cc5f-11e4-bfec-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2c4080c-cc5f-11e4-acdc-705681abff85') LIMIT 1 SQL (12.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2c2f2fa-cc5f-11e4-bfec-705681abff85"], ["organization_id", "e2c4080c-cc5f-11e4-acdc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.644179"], ["updated_at", "2015-03-17 04:41:32.644179"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'e2c4080c-cc5f-11e4-acdc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "e2c4080c-cc5f-11e4-acdc-705681abff85"], ["created_at", "2015-03-17 04:41:32.660193"], ["updated_at", "2015-03-17 04:41:32.660193"], ["token", "33Vjigur8jBqK1J299NOXoeUx1CO0KBSMdiLav-MKuI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/e2c70192-cc5f-11e4-b6b4-705681abff85" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"e2c70192-cc5f-11e4-b6b4-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.665346' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UFbjdC2zbMBnIKeF4h7-w9iH-pMpToBiSxaMi-o0n78"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.666758"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.667717"], ["id", "e2c37086-cc5f-11e4-8ef7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2c2f2fa-cc5f-11e4-bfec-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e2c2f2fa-cc5f-11e4-bfec-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "e2c70192-cc5f-11e4-b6b4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e2c4080c-cc5f-11e4-acdc-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."id" != 'e2c70192-cc5f-11e4-b6b4-705681abff85' AND "clubhouse_invitations"."organization_id" = 'e2c4080c-cc5f-11e4-acdc-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-17 04:41:32.674918"], ["id", "e2c70192-cc5f-11e4-b6b4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$UOz2oJbzl2O9rRvD17TFoesaanc7SpIr/PiWDJ31m/jipn2XUNHu6"], ["created_at", "2015-03-17 04:41:32.683534"], ["updated_at", "2015-03-17 04:41:32.683534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.685171"], ["user_id", "e2ca8f42-cc5f-11e4-abc6-705681abff85"], ["created_at", "2015-03-17 04:41:32.685934"], ["updated_at", "2015-03-17 04:41:32.685934"], ["token", "yrrbnsuDIev7ZvTlnLVJQif__k_AEc2y_N1m8TVLsmU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.689784"], ["updated_at", "2015-03-17 04:41:32.689784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2ca8f42-cc5f-11e4-abc6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2cb86fe-cc5f-11e4-b425-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2ca8f42-cc5f-11e4-abc6-705681abff85"], ["organization_id", "e2cb86fe-cc5f-11e4-b425-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.693462"], ["updated_at", "2015-03-17 04:41:32.693462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'e2cb86fe-cc5f-11e4-b425-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "e2cb86fe-cc5f-11e4-b425-705681abff85"], ["created_at", "2015-03-17 04:41:32.697129"], ["updated_at", "2015-03-17 04:41:32.697129"], ["token", "YUky0Pat0-ztyAFu3ATDJoDqO0rxrj1tktb-CfGvXNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$EKnaWlI624qbpmVZS55kAeRjLapfR.YjsCFwJB4xTudK35qdE0BZe"], ["created_at", "2015-03-17 04:41:32.709793"], ["updated_at", "2015-03-17 04:41:32.709793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.711443"], ["user_id", "e2ce90e2-cc5f-11e4-853e-705681abff85"], ["created_at", "2015-03-17 04:41:32.712242"], ["updated_at", "2015-03-17 04:41:32.712242"], ["token", "oX651zHC_oh2R6D5AAcLRAUlYkZd_6OQI3tGc1fJNXY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.716808"], ["updated_at", "2015-03-17 04:41:32.716808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2ce90e2-cc5f-11e4-853e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2cfa16c-cc5f-11e4-9fd4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2ce90e2-cc5f-11e4-853e-705681abff85"], ["organization_id", "e2cfa16c-cc5f-11e4-9fd4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.720692"], ["updated_at", "2015-03-17 04:41:32.720692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'e2cfa16c-cc5f-11e4-9fd4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "e2cfa16c-cc5f-11e4-9fd4-705681abff85"], ["created_at", "2015-03-17 04:41:32.724124"], ["updated_at", "2015-03-17 04:41:32.724124"], ["token", "RqyhBz5oTGHuVWtU_21epxrhSf40Gg6IczSQ8YAUxOA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e2cfa16c-cc5f-11e4-9fd4-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"e2cfa16c-cc5f-11e4-9fd4-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.728865' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oX651zHC_oh2R6D5AAcLRAUlYkZd_6OQI3tGc1fJNXY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.730339"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.731419"], ["id", "e2cef4ec-cc5f-11e4-a09f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2ce90e2-cc5f-11e4-853e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e2ce90e2-cc5f-11e4-853e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e2cfa16c-cc5f-11e4-9fd4-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$XjG49EA3la4wMO.kU3XbCeB0U1jG4Nr3Cxh//yjaRNjYf/3AFgH/W"], ["created_at", "2015-03-17 04:41:32.742820"], ["updated_at", "2015-03-17 04:41:32.742820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.744559"], ["user_id", "e2d39d30-cc5f-11e4-8d4b-705681abff85"], ["created_at", "2015-03-17 04:41:32.745377"], ["updated_at", "2015-03-17 04:41:32.745377"], ["token", "TznBAZG9sTzRgtRo1XGbvBcIHUONDQ1Edsn76HaIy9o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.748812"], ["updated_at", "2015-03-17 04:41:32.748812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2d39d30-cc5f-11e4-8d4b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2d481f0-cc5f-11e4-824e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2d39d30-cc5f-11e4-8d4b-705681abff85"], ["organization_id", "e2d481f0-cc5f-11e4-824e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.752443"], ["updated_at", "2015-03-17 04:41:32.752443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'e2d481f0-cc5f-11e4-824e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "e2d481f0-cc5f-11e4-824e-705681abff85"], ["created_at", "2015-03-17 04:41:32.756477"], ["updated_at", "2015-03-17 04:41:32.756477"], ["token", "b58rMl_hnvffHFCl3RjiLNa7TF7U8ief0cMdVUmLRlo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e2d481f0-cc5f-11e4-824e-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"e2d481f0-cc5f-11e4-824e-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.761768' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TznBAZG9sTzRgtRo1XGbvBcIHUONDQ1Edsn76HaIy9o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.763759"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.765304"], ["id", "e2d4039c-cc5f-11e4-84fa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2d39d30-cc5f-11e4-8d4b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e2d39d30-cc5f-11e4-8d4b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e2d481f0-cc5f-11e4-824e-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$EY0dE9kTvT2G6M/h3Fu0tO4cdQPIO/7V9fRpCjXvl0eKL9AO3ob6m"], ["created_at", "2015-03-17 04:41:32.777003"], ["updated_at", "2015-03-17 04:41:32.777003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.778699"], ["user_id", "e2d8d2d2-cc5f-11e4-93d6-705681abff85"], ["created_at", "2015-03-17 04:41:32.779614"], ["updated_at", "2015-03-17 04:41:32.779614"], ["token", "q2QnIMsnlG90nuXcw-uWJ3sXqwPSUb0qFMPy7Yo_JzE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.783373"], ["updated_at", "2015-03-17 04:41:32.783373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2d8d2d2-cc5f-11e4-93d6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2d9caca-cc5f-11e4-a708-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2d8d2d2-cc5f-11e4-93d6-705681abff85"], ["organization_id", "e2d9caca-cc5f-11e4-a708-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.787005"], ["updated_at", "2015-03-17 04:41:32.787005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'e2d9caca-cc5f-11e4-a708-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "e2d9caca-cc5f-11e4-a708-705681abff85"], ["created_at", "2015-03-17 04:41:32.790693"], ["updated_at", "2015-03-17 04:41:32.790693"], ["token", "rupTHlDk7Vcn1e5BzVQ7yXsf5g0Laj3r7ooMvjY5eNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e2d9caca-cc5f-11e4-a708-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"e2d9caca-cc5f-11e4-a708-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.796149' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q2QnIMsnlG90nuXcw-uWJ3sXqwPSUb0qFMPy7Yo_JzE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.797621"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.798747"], ["id", "e2d941d6-cc5f-11e4-8ff9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2d8d2d2-cc5f-11e4-93d6-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e2d8d2d2-cc5f-11e4-93d6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e2d9caca-cc5f-11e4-a708-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$TTjA16d2NrWMo6wW6z55PudKcgerT1DOR5nJolCtrnMW.6TiqBB7W"], ["created_at", "2015-03-17 04:41:32.811620"], ["updated_at", "2015-03-17 04:41:32.811620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.813343"], ["user_id", "e2de1c2e-cc5f-11e4-9a28-705681abff85"], ["created_at", "2015-03-17 04:41:32.814173"], ["updated_at", "2015-03-17 04:41:32.814173"], ["token", "JUHso3lTIuoRIMUZmDIT6iKEhyigiX6yollNxbp_LUI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.817847"], ["updated_at", "2015-03-17 04:41:32.817847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2de1c2e-cc5f-11e4-9a28-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2df0a80-cc5f-11e4-a501-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2de1c2e-cc5f-11e4-9a28-705681abff85"], ["organization_id", "e2df0a80-cc5f-11e4-a501-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.821209"], ["updated_at", "2015-03-17 04:41:32.821209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'e2df0a80-cc5f-11e4-a501-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "e2df0a80-cc5f-11e4-a501-705681abff85"], ["created_at", "2015-03-17 04:41:32.825268"], ["updated_at", "2015-03-17 04:41:32.825268"], ["token", "fBbOwUYf4vcAIFxVBhOd4g7FUFGSFhbDM0N5ArstSLU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$mwKRixLq/ODZlzvkNzO7wuEXe88YkyaioDyHsN7bmKXxCS0sCq/dK"], ["created_at", "2015-03-17 04:41:32.830780"], ["updated_at", "2015-03-17 04:41:32.830780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.837103"], ["updated_at", "2015-03-17 04:41:32.837103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2e10c72-cc5f-11e4-8dfe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2e2501e-cc5f-11e4-a98b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2e10c72-cc5f-11e4-8dfe-705681abff85"], ["organization_id", "e2e2501e-cc5f-11e4-a98b-705681abff85"], ["created_at", "2015-03-17 04:41:32.845147"], ["updated_at", "2015-03-17 04:41:32.845147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$bY5TRRhf32E2Nmaq8XC9Ou4i37Fg74zpxLYr/LIXd.l9Sj73fde0G"], ["created_at", "2015-03-17 04:41:32.865141"], ["updated_at", "2015-03-17 04:41:32.865141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:41:32.866910"], ["user_id", "e2e6484a-cc5f-11e4-a476-705681abff85"], ["created_at", "2015-03-17 04:41:32.867709"], ["updated_at", "2015-03-17 04:41:32.867709"], ["token", "nMe96oyA1CX1Qg5jZplJiZ8st1TGeLF7MVJYGsOBDPs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.871378"], ["updated_at", "2015-03-17 04:41:32.871378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2e6484a-cc5f-11e4-a476-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2e73642-cc5f-11e4-b000-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2e6484a-cc5f-11e4-a476-705681abff85"], ["organization_id", "e2e73642-cc5f-11e4-b000-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:41:32.875396"], ["updated_at", "2015-03-17 04:41:32.875396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'e2e73642-cc5f-11e4-b000-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "e2e73642-cc5f-11e4-b000-705681abff85"], ["created_at", "2015-03-17 04:41:32.881238"], ["updated_at", "2015-03-17 04:41:32.881238"], ["token", "UA4ORiUq6Q8V7Az1HaGEjKui9Yh4o0XvHyw67WxbeHM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$c1FvDQaJhc62d9J2Z/oxHOYAwnuCb.z7L5FfZN.1OAxw0xizTOvei"], ["created_at", "2015-03-17 04:41:32.886413"], ["updated_at", "2015-03-17 04:41:32.886413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:41:32.889926"], ["updated_at", "2015-03-17 04:41:32.889926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2e9858c-cc5f-11e4-bd8e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2ea0a84-cc5f-11e4-b37a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2e9858c-cc5f-11e4-bd8e-705681abff85"], ["organization_id", "e2ea0a84-cc5f-11e4-b37a-705681abff85"], ["created_at", "2015-03-17 04:41:32.893495"], ["updated_at", "2015-03-17 04:41:32.893495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/e2e73642-cc5f-11e4-b000-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:41:32 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"e2e73642-cc5f-11e4-b000-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:41:32.899313' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nMe96oyA1CX1Qg5jZplJiZ8st1TGeLF7MVJYGsOBDPs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:41:32.901183"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:41:32.902223"], ["id", "e2e6b00a-cc5f-11e4-b7b1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2e6484a-cc5f-11e4-a476-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "e2e6484a-cc5f-11e4-a476-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e2e73642-cc5f-11e4-b000-705681abff85"]] Clubhouse::Invitation Load (0.6ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "e2e73642-cc5f-11e4-b000-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('e2e73642-cc5f-11e4-b000-705681abff85') Completed 200 OK in 14ms (Views: 4.0ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$CVO6jVH/DxRvUht1Byi7/Ow/K0H3nh8YBsG6Q/t3e40XSybk9z.YC"], ["created_at", "2015-03-17 04:44:00.013064"], ["updated_at", "2015-03-17 04:44:00.013064"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.053585"], ["user_id", "3a9fa96e-cc60-11e4-a7be-705681abff85"], ["created_at", "2015-03-17 04:44:00.059130"], ["updated_at", "2015-03-17 04:44:00.059130"], ["token", "52qCVjVF2HJuswTsaC9ey6YvFioiRksoKIjKtTAbOnw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.078509"], ["updated_at", "2015-03-17 04:44:00.078509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a9fa96e-cc60-11e4-a7be-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aa56750-cc60-11e4-853f-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a9fa96e-cc60-11e4-a7be-705681abff85"], ["organization_id", "3aa56750-cc60-11e4-853f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.092971"], ["updated_at", "2015-03-17 04:44:00.092971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '3aa56750-cc60-11e4-853f-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "3aa56750-cc60-11e4-853f-705681abff85"], ["created_at", "2015-03-17 04:44:00.113796"], ["updated_at", "2015-03-17 04:44:00.113796"], ["token", "MaTVSg0eODQAa0oPVnj9RuecyuEiBRKMutDaBWSIGfw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$tZk06Lxhmd/u/vc0pucYEeDFJ5RxsfgWTE1MqpQD7.37xu7F3iCx."], ["created_at", "2015-03-17 04:44:00.148887"], ["updated_at", "2015-03-17 04:44:00.148887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.150596"], ["user_id", "3aaffd8c-cc60-11e4-99eb-705681abff85"], ["created_at", "2015-03-17 04:44:00.151516"], ["updated_at", "2015-03-17 04:44:00.151516"], ["token", "NQdQVWfKs91O24ViKbgFJO-hYh4pxeU3gFXf_cm2wGI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.155152"], ["updated_at", "2015-03-17 04:44:00.155152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aaffd8c-cc60-11e4-99eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ab0ecb0-cc60-11e4-ab43-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aaffd8c-cc60-11e4-99eb-705681abff85"], ["organization_id", "3ab0ecb0-cc60-11e4-ab43-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.158503"], ["updated_at", "2015-03-17 04:44:00.158503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '3ab0ecb0-cc60-11e4-ab43-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "3ab0ecb0-cc60-11e4-ab43-705681abff85"], ["created_at", "2015-03-17 04:44:00.162332"], ["updated_at", "2015-03-17 04:44:00.162332"], ["token", "vrf49kv4efZmOXswxIDTJuvNJU2CfzLL6pZ-_Zrbcrg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/3ab20faa-cc60-11e4-b973-705681abff85" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"3ab20faa-cc60-11e4-b973-705681abff85", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:00.167728' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NQdQVWfKs91O24ViKbgFJO-hYh4pxeU3gFXf_cm2wGI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:00.175396"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:00.176656"], ["id", "3ab06b50-cc60-11e4-926d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3aaffd8c-cc60-11e4-99eb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3aaffd8c-cc60-11e4-99eb-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3ab20faa-cc60-11e4-b973-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ab0ecb0-cc60-11e4-ab43-705681abff85"]] Completed 200 OK in 37ms (Views: 4.2ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$ZEbx6oNnjIfz2avqUV2JUOLJEkI85dhomNqIysQY3xr/n.xmeqGu6"], ["created_at", "2015-03-17 04:44:00.213340"], ["updated_at", "2015-03-17 04:44:00.213340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.215009"], ["user_id", "3ab9d316-cc60-11e4-aad3-705681abff85"], ["created_at", "2015-03-17 04:44:00.215856"], ["updated_at", "2015-03-17 04:44:00.215856"], ["token", "kJNHjQN6VrXLPphN_aoLWyxTvPFv1QlDHQsIzb3VO34"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.219605"], ["updated_at", "2015-03-17 04:44:00.219605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ab9d316-cc60-11e4-aad3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3abac352-cc60-11e4-b677-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ab9d316-cc60-11e4-aad3-705681abff85"], ["organization_id", "3abac352-cc60-11e4-b677-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.223055"], ["updated_at", "2015-03-17 04:44:00.223055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '3abac352-cc60-11e4-b677-705681abff85') LIMIT 1 SQL (6.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "3abac352-cc60-11e4-b677-705681abff85"], ["created_at", "2015-03-17 04:44:00.226665"], ["updated_at", "2015-03-17 04:44:00.226665"], ["token", "xiTchGGOdU8kaawbgPGR7l6lM2VtcZHJFxFWjoDqH_o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$bpJdqDEqPllHnYs8y0VnT.2F.rygZe1hnYEng5FaPR4P4oMwo5R0e"], ["created_at", "2015-03-17 04:44:00.242672"], ["updated_at", "2015-03-17 04:44:00.242672"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.244870"], ["user_id", "3abe4c0c-cc60-11e4-8534-705681abff85"], ["created_at", "2015-03-17 04:44:00.245743"], ["updated_at", "2015-03-17 04:44:00.245743"], ["token", "YEzarK3hKXNQutdUSO22MQwwZTAccbFAZxHXjU5nm_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.249352"], ["updated_at", "2015-03-17 04:44:00.249352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3abe4c0c-cc60-11e4-8534-705681abff85' AND "clubhouse_memberships"."organization_id" = '3abf4e18-cc60-11e4-95d6-705681abff85') LIMIT 1 SQL (12.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3abe4c0c-cc60-11e4-8534-705681abff85"], ["organization_id", "3abf4e18-cc60-11e4-95d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.252615"], ["updated_at", "2015-03-17 04:44:00.252615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '3abf4e18-cc60-11e4-95d6-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "3abf4e18-cc60-11e4-95d6-705681abff85"], ["created_at", "2015-03-17 04:44:00.271586"], ["updated_at", "2015-03-17 04:44:00.271586"], ["token", "d1ou7fTAOqXa4YUN3RAgyLB7duvGDfnDSOSxoMrhZj4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3abf4e18-cc60-11e4-95d6-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"3abf4e18-cc60-11e4-95d6-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:00.279428' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YEzarK3hKXNQutdUSO22MQwwZTAccbFAZxHXjU5nm_c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:00.280955"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:00.282016"], ["id", "3abecb5a-cc60-11e4-94c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3abe4c0c-cc60-11e4-8534-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3abe4c0c-cc60-11e4-8534-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3abf4e18-cc60-11e4-95d6-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3abf4e18-cc60-11e4-95d6-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3abf4e18-cc60-11e4-95d6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3abf4e18-cc60-11e4-95d6-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.293572"], ["updated_at", "2015-03-17 04:44:00.293572"], ["token", "1OkP1dRTxEY0eJ2IYH7SCjFT6IS3qjCAf-tVzyGGo2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a638de1a-3eed-4594-8360-297e63550741) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3ac618ce-cc60-11e4-aa3b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3ac618ce-cc60-11e4-aa3b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a638de1a-3eed-4594-8360-297e63550741] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3ac618ce-cc60-11e4-aa3b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [a638de1a-3eed-4594-8360-297e63550741] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3abf4e18-cc60-11e4-95d6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a638de1a-3eed-4594-8360-297e63550741] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [a638de1a-3eed-4594-8360-297e63550741] Clubhouse::Mailer#invitation: processed outbound mail in 282.2ms [ActiveJob] [ActionMailer::DeliveryJob] [a638de1a-3eed-4594-8360-297e63550741] Sent mail to email@example.com (8.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [a638de1a-3eed-4594-8360-297e63550741] Date: Mon, 16 Mar 2015 21:44:00 -0700 From: from@example.com To: email@example.com Message-ID: <5507b11096346_b3653fe6d0c65bf0506cb@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/1OkP1dRTxEY0eJ2IYH7SCjFT6IS3qjCAf-tVzyGGo2s If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a638de1a-3eed-4594-8360-297e63550741] Performed ActionMailer::DeliveryJob from Inline(mailers) in 291.75ms Completed 201 Created in 341ms (Views: 1.0ms | ActiveRecord: 3.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$yyn.3QaxwsIArgia5sx/uus7O/ccazx3fbzKGCs47Qwn7kxYBQGvy"], ["created_at", "2015-03-17 04:44:00.627662"], ["updated_at", "2015-03-17 04:44:00.627662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.629703"], ["user_id", "3af90ad6-cc60-11e4-98fb-705681abff85"], ["created_at", "2015-03-17 04:44:00.630605"], ["updated_at", "2015-03-17 04:44:00.630605"], ["token", "W2j-CJEGFRUh7NA1BJnJmucCJwXN5rsP2bzlKIW8TZs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.635426"], ["updated_at", "2015-03-17 04:44:00.635426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3af90ad6-cc60-11e4-98fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '3afa3c1c-cc60-11e4-acfc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3af90ad6-cc60-11e4-98fb-705681abff85"], ["organization_id", "3afa3c1c-cc60-11e4-acfc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.639599"], ["updated_at", "2015-03-17 04:44:00.639599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '3afa3c1c-cc60-11e4-acfc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "3afa3c1c-cc60-11e4-acfc-705681abff85"], ["created_at", "2015-03-17 04:44:00.643497"], ["updated_at", "2015-03-17 04:44:00.643497"], ["token", "AOwFezlphVQclmt_EQv4A-T8JXdFzFPFhDibD_cbspo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3afa3c1c-cc60-11e4-acfc-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"3afa3c1c-cc60-11e4-acfc-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:00.648866' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "W2j-CJEGFRUh7NA1BJnJmucCJwXN5rsP2bzlKIW8TZs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:00.650395"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:00.652201"], ["id", "3af9906e-cc60-11e4-8fb6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3af90ad6-cc60-11e4-98fb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3af90ad6-cc60-11e4-98fb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3afa3c1c-cc60-11e4-acfc-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3afa3c1c-cc60-11e4-acfc-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3afa3c1c-cc60-11e4-acfc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3afa3c1c-cc60-11e4-acfc-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.661503"], ["updated_at", "2015-03-17 04:44:00.661503"], ["token", "pwes_AOg8j34s77K5OQHg70VtpYHLgulfIwEYr5CUGU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 46e66314-19a4-40d3-a8f9-764816d7cd67) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3afe4488-cc60-11e4-aa81-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3afe4488-cc60-11e4-aa81-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [46e66314-19a4-40d3-a8f9-764816d7cd67] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3afe4488-cc60-11e4-aa81-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [46e66314-19a4-40d3-a8f9-764816d7cd67] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3afa3c1c-cc60-11e4-acfc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [46e66314-19a4-40d3-a8f9-764816d7cd67] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [46e66314-19a4-40d3-a8f9-764816d7cd67] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [46e66314-19a4-40d3-a8f9-764816d7cd67] Sent mail to email@example.com (4.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [46e66314-19a4-40d3-a8f9-764816d7cd67] Date: Mon, 16 Mar 2015 21:44:00 -0700 From: from@example.com To: email@example.com Message-ID: <5507b110a3e38_b3653fe6d0c65bf0507f5@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/pwes_AOg8j34s77K5OQHg70VtpYHLgulfIwEYr5CUGU If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [46e66314-19a4-40d3-a8f9-764816d7cd67] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.38ms Completed 201 Created in 26ms (Views: 1.0ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$HediVTnJG7PhcMIQH7YkneEtZB4OFj.YkRrKrfkzdsWuo0Xmp6o4e"], ["created_at", "2015-03-17 04:44:00.683040"], ["updated_at", "2015-03-17 04:44:00.683040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.685003"], ["user_id", "3b017ffe-cc60-11e4-b328-705681abff85"], ["created_at", "2015-03-17 04:44:00.685958"], ["updated_at", "2015-03-17 04:44:00.685958"], ["token", "lX2ZzDXPvUxWAJ-vYA9_wQUJjtXjkO2qXyH_6kVG_i8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.696259"], ["updated_at", "2015-03-17 04:44:00.696259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b017ffe-cc60-11e4-b328-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b038722-cc60-11e4-9f49-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b017ffe-cc60-11e4-b328-705681abff85"], ["organization_id", "3b038722-cc60-11e4-9f49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.700064"], ["updated_at", "2015-03-17 04:44:00.700064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '3b038722-cc60-11e4-9f49-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "3b038722-cc60-11e4-9f49-705681abff85"], ["created_at", "2015-03-17 04:44:00.704183"], ["updated_at", "2015-03-17 04:44:00.704183"], ["token", "1vqfOrxyh561E7a9qyS8W9LbYcdzFgTSiEvgGBBRh6U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3b038722-cc60-11e4-9f49-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"3b038722-cc60-11e4-9f49-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:00.713001' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lX2ZzDXPvUxWAJ-vYA9_wQUJjtXjkO2qXyH_6kVG_i8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:00.714736"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:00.715692"], ["id", "3b01f678-cc60-11e4-92bf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b017ffe-cc60-11e4-b328-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3b017ffe-cc60-11e4-b328-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3b038722-cc60-11e4-9f49-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b038722-cc60-11e4-9f49-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '3b038722-cc60-11e4-9f49-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$S8YWcr6wyu4VRIyqQFVfmOWOtSEpm/K/TmeuxC.pmqwDKjWR38ohS"], ["created_at", "2015-03-17 04:44:00.734244"], ["updated_at", "2015-03-17 04:44:00.734244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.735887"], ["user_id", "3b094da6-cc60-11e4-9307-705681abff85"], ["created_at", "2015-03-17 04:44:00.736736"], ["updated_at", "2015-03-17 04:44:00.736736"], ["token", "M0eE4_fCCQ0DjWGspee1qOY4rJDwSCxu2WxJFR6hOjA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.740039"], ["updated_at", "2015-03-17 04:44:00.740039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b094da6-cc60-11e4-9307-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b0a3090-cc60-11e4-acf1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b094da6-cc60-11e4-9307-705681abff85"], ["organization_id", "3b0a3090-cc60-11e4-acf1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.744206"], ["updated_at", "2015-03-17 04:44:00.744206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '3b0a3090-cc60-11e4-acf1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "3b0a3090-cc60-11e4-acf1-705681abff85"], ["created_at", "2015-03-17 04:44:00.747857"], ["updated_at", "2015-03-17 04:44:00.747857"], ["token", "wiOw8fhanSGDKYIKzXIdQB9-AnRdR8VQoaAi5ST8IEU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$irExFSxtbHbXDmmtoYhxN.9b6rUVzmaITDTSkV5BG9k4XGcbONgmy"], ["created_at", "2015-03-17 04:44:00.758056"], ["updated_at", "2015-03-17 04:44:00.758056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.759874"], ["user_id", "3b0cf140-cc60-11e4-80c8-705681abff85"], ["created_at", "2015-03-17 04:44:00.760692"], ["updated_at", "2015-03-17 04:44:00.760692"], ["token", "jnaALKzuU2SBQZvMSneOZQcAzEd-MGKAcCbNHcbbqK8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.764095"], ["updated_at", "2015-03-17 04:44:00.764095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b0cf140-cc60-11e4-80c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b0de0e6-cc60-11e4-8334-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b0cf140-cc60-11e4-80c8-705681abff85"], ["organization_id", "3b0de0e6-cc60-11e4-8334-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.767870"], ["updated_at", "2015-03-17 04:44:00.767870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '3b0de0e6-cc60-11e4-8334-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "3b0de0e6-cc60-11e4-8334-705681abff85"], ["created_at", "2015-03-17 04:44:00.771301"], ["updated_at", "2015-03-17 04:44:00.771301"], ["token", "qfQvIivCynzwNWripPtD6XFN9ct0pIAWNyN7vh_kP2w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/3b0ef530-cc60-11e4-8d46-705681abff85" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"3b0ef530-cc60-11e4-8d46-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:00.775840' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jnaALKzuU2SBQZvMSneOZQcAzEd-MGKAcCbNHcbbqK8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:00.777354"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:00.778433"], ["id", "3b0d5b44-cc60-11e4-9fa2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b0cf140-cc60-11e4-80c8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3b0cf140-cc60-11e4-80c8-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3b0ef530-cc60-11e4-8d46-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b0de0e6-cc60-11e4-8334-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."id" != '3b0ef530-cc60-11e4-8d46-705681abff85' AND "clubhouse_invitations"."organization_id" = '3b0de0e6-cc60-11e4-8334-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-17 04:44:00.785405"], ["id", "3b0ef530-cc60-11e4-8d46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$oqY9g3K0s8srRJAc48hnKe1K7IaK8hsVJ1rNUOoZ6RbBCp.zSQfCW"], ["created_at", "2015-03-17 04:44:00.793717"], ["updated_at", "2015-03-17 04:44:00.793717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.795245"], ["user_id", "3b125e1e-cc60-11e4-a0b3-705681abff85"], ["created_at", "2015-03-17 04:44:00.795982"], ["updated_at", "2015-03-17 04:44:00.795982"], ["token", "NnoHJ4JPo1NSr_l1Brvj2YcPNWw_NFYj01PX1Wn_wjg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.799473"], ["updated_at", "2015-03-17 04:44:00.799473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b125e1e-cc60-11e4-a0b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b133cbc-cc60-11e4-acf7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b125e1e-cc60-11e4-a0b3-705681abff85"], ["organization_id", "3b133cbc-cc60-11e4-acf7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.802870"], ["updated_at", "2015-03-17 04:44:00.802870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '3b133cbc-cc60-11e4-acf7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "3b133cbc-cc60-11e4-acf7-705681abff85"], ["created_at", "2015-03-17 04:44:00.806450"], ["updated_at", "2015-03-17 04:44:00.806450"], ["token", "IM9CddtZy4c0eMv5tOS_IWKZ66PvA9WyZFqDJeQukks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$1OWKEPhJeHMLWeR/UWCVW.It2AEBB2PS207yPn//lo.VWbOvnJ9zi"], ["created_at", "2015-03-17 04:44:00.818171"], ["updated_at", "2015-03-17 04:44:00.818171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.819868"], ["user_id", "3b161e64-cc60-11e4-80cb-705681abff85"], ["created_at", "2015-03-17 04:44:00.820639"], ["updated_at", "2015-03-17 04:44:00.820639"], ["token", "Rd97GrRL_qrTRDVpzX35mr356G7ISmUVP-Blzh885tE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.823898"], ["updated_at", "2015-03-17 04:44:00.823898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b161e64-cc60-11e4-80cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b16fbd6-cc60-11e4-a0ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b161e64-cc60-11e4-80cb-705681abff85"], ["organization_id", "3b16fbd6-cc60-11e4-a0ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.827616"], ["updated_at", "2015-03-17 04:44:00.827616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '3b16fbd6-cc60-11e4-a0ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "3b16fbd6-cc60-11e4-a0ae-705681abff85"], ["created_at", "2015-03-17 04:44:00.830997"], ["updated_at", "2015-03-17 04:44:00.830997"], ["token", "W7cxI0P0CQTFDlu3u6jW-TlYxrCn05eW04HYG3TxS8w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/3b181070-cc60-11e4-b708-705681abff85" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"3b181070-cc60-11e4-b708-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:00.835780' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Rd97GrRL_qrTRDVpzX35mr356G7ISmUVP-Blzh885tE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:00.837368"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:00.838287"], ["id", "3b167ecc-cc60-11e4-b57f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b161e64-cc60-11e4-80cb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3b161e64-cc60-11e4-80cb-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3b181070-cc60-11e4-b708-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$8wtfpMYoCwSXWlSrL4JtxenIfSchTT1q70e2QjgNYKChHv6Y.wYoi"], ["created_at", "2015-03-17 04:44:00.851422"], ["updated_at", "2015-03-17 04:44:00.851422"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.854153"], ["user_id", "3b1b3e08-cc60-11e4-a06f-705681abff85"], ["created_at", "2015-03-17 04:44:00.855116"], ["updated_at", "2015-03-17 04:44:00.855116"], ["token", "ZASK81cy0DV7KmzCtI-sSEL5ozQG06xcf-PdZze2vAc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.858797"], ["updated_at", "2015-03-17 04:44:00.858797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b1b3e08-cc60-11e4-a06f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b1c5126-cc60-11e4-9924-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b1b3e08-cc60-11e4-a06f-705681abff85"], ["organization_id", "3b1c5126-cc60-11e4-9924-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.862415"], ["updated_at", "2015-03-17 04:44:00.862415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '3b1c5126-cc60-11e4-9924-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "3b1c5126-cc60-11e4-9924-705681abff85"], ["created_at", "2015-03-17 04:44:00.865932"], ["updated_at", "2015-03-17 04:44:00.865932"], ["token", "I8LYBw5MWzLDoDtN7W9WjuDxh1dg8br5wFHukJ80gOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$f1nSp34CBURxnpsWWzrBkO2s8uRO0SoMcue80eUa15DjKdmkaRwqm"], ["created_at", "2015-03-17 04:44:00.872958"], ["updated_at", "2015-03-17 04:44:00.872958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.875959"], ["updated_at", "2015-03-17 04:44:00.875959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b1e75be-cc60-11e4-aea4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b1ee77e-cc60-11e4-b54e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b1e75be-cc60-11e4-aea4-705681abff85"], ["organization_id", "3b1ee77e-cc60-11e4-b54e-705681abff85"], ["created_at", "2015-03-17 04:44:00.879251"], ["updated_at", "2015-03-17 04:44:00.879251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$4Zk81I8KdQmpj4gZyoOq3.d2WP7RQfQdQ6Of/eDwp1b34UnT6i49u"], ["created_at", "2015-03-17 04:44:00.890025"], ["updated_at", "2015-03-17 04:44:00.890025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.892599"], ["user_id", "3b2111de-cc60-11e4-ad1e-705681abff85"], ["created_at", "2015-03-17 04:44:00.893708"], ["updated_at", "2015-03-17 04:44:00.893708"], ["token", "8J-FduIhXOg9H8aP6lh7u_7yizhOs9-ndB1Dz1AG7LI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.897284"], ["updated_at", "2015-03-17 04:44:00.897284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b2111de-cc60-11e4-ad1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b222920-cc60-11e4-85c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b2111de-cc60-11e4-ad1e-705681abff85"], ["organization_id", "3b222920-cc60-11e4-85c0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.900432"], ["updated_at", "2015-03-17 04:44:00.900432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '3b222920-cc60-11e4-85c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "3b222920-cc60-11e4-85c0-705681abff85"], ["created_at", "2015-03-17 04:44:00.903634"], ["updated_at", "2015-03-17 04:44:00.903634"], ["token", "iVgpNpR6642ibI2S25UInOaN1QlwmLUBHzsKRtSu_Is"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$TzB2KBcds44fZjU8g3Be1ep7r8DoVR6tWxSbUs9Mg0c4L/4yKrvLS"], ["created_at", "2015-03-17 04:44:00.908231"], ["updated_at", "2015-03-17 04:44:00.908231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.911203"], ["updated_at", "2015-03-17 04:44:00.911203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b23d644-cc60-11e4-9a96-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b244836-cc60-11e4-a260-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b23d644-cc60-11e4-9a96-705681abff85"], ["organization_id", "3b244836-cc60-11e4-a260-705681abff85"], ["created_at", "2015-03-17 04:44:00.914474"], ["updated_at", "2015-03-17 04:44:00.914474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/3b222920-cc60-11e4-85c0-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"3b222920-cc60-11e4-85c0-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:00.919063' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8J-FduIhXOg9H8aP6lh7u_7yizhOs9-ndB1Dz1AG7LI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:00.920563"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:00.922058"], ["id", "3b21ad92-cc60-11e4-b8ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b2111de-cc60-11e4-ad1e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3b2111de-cc60-11e4-ad1e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3b222920-cc60-11e4-85c0-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "3b222920-cc60-11e4-85c0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('3b222920-cc60-11e4-85c0-705681abff85') Completed 200 OK in 16ms (Views: 8.1ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$QtELz4VB1CuasC3aNp7tYOqExl9lpYVJQa69j8aPx1yBPvb3OuxQ2"], ["created_at", "2015-03-17 04:44:00.941904"], ["updated_at", "2015-03-17 04:44:00.941904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.943532"], ["user_id", "3b28fbe2-cc60-11e4-8b6c-705681abff85"], ["created_at", "2015-03-17 04:44:00.944404"], ["updated_at", "2015-03-17 04:44:00.944404"], ["token", "yZ1D3RhktB-QUL5JXl_fQYFTUYCUOuSnOXpz5y77AH8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.947675"], ["updated_at", "2015-03-17 04:44:00.947675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b28fbe2-cc60-11e4-8b6c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b29dabc-cc60-11e4-bc46-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b28fbe2-cc60-11e4-8b6c-705681abff85"], ["organization_id", "3b29dabc-cc60-11e4-bc46-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.950938"], ["updated_at", "2015-03-17 04:44:00.950938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '3b29dabc-cc60-11e4-bc46-705681abff85') LIMIT 1 SQL (6.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "3b29dabc-cc60-11e4-bc46-705681abff85"], ["created_at", "2015-03-17 04:44:00.954559"], ["updated_at", "2015-03-17 04:44:00.954559"], ["token", "2xYqlLCGJKbdImGJeYghvgPeOCXxS0cp8RkOIk7ZsHI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$wI7h6RxTr6dDOyoxTlF8o.mtAh07V89tJmvRpLmhFgC93VYJk1LGK"], ["created_at", "2015-03-17 04:44:00.971795"], ["updated_at", "2015-03-17 04:44:00.971795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:00.974251"], ["user_id", "3b2da0fc-cc60-11e4-b144-705681abff85"], ["created_at", "2015-03-17 04:44:00.975081"], ["updated_at", "2015-03-17 04:44:00.975081"], ["token", "aVIAEiQ2Db5vsfIQ1S_dpHXwBNVF8SDI3NZWbw1cd_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:00.978737"], ["updated_at", "2015-03-17 04:44:00.978737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b2da0fc-cc60-11e4-b144-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b2e99ee-cc60-11e4-ab7f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b2da0fc-cc60-11e4-b144-705681abff85"], ["organization_id", "3b2e99ee-cc60-11e4-ab7f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:00.982086"], ["updated_at", "2015-03-17 04:44:00.982086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '3b2e99ee-cc60-11e4-ab7f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "3b2e99ee-cc60-11e4-ab7f-705681abff85"], ["created_at", "2015-03-17 04:44:00.986044"], ["updated_at", "2015-03-17 04:44:00.986044"], ["token", "YqmWY0kp6IBcslYCImaI_8su_Iqqr9OPNwjqba-60LQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:44:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:00.991125' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aVIAEiQ2Db5vsfIQ1S_dpHXwBNVF8SDI3NZWbw1cd_0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:00.992516"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:00.993515"], ["id", "3b2e1780-cc60-11e4-99ad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b2da0fc-cc60-11e4-b144-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3b2da0fc-cc60-11e4-b144-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b2e99ee-cc60-11e4-ab7f-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3b2e99ee-cc60-11e4-ab7f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3b2e99ee-cc60-11e4-ab7f-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-17 04:44:01.000925"], ["updated_at", "2015-03-17 04:44:01.000925"], ["token", "lgbdhqpzQfxnLkjCRbksYMoqDQwXxOyHyTCVGr5qzfI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0ff45169-3424-4c18-88dc-e5a266b4b2a5) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3b320c3c-cc60-11e4-ad41-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3b320c3c-cc60-11e4-ad41-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0ff45169-3424-4c18-88dc-e5a266b4b2a5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3b320c3c-cc60-11e4-ad41-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [0ff45169-3424-4c18-88dc-e5a266b4b2a5] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b2e99ee-cc60-11e4-ab7f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0ff45169-3424-4c18-88dc-e5a266b4b2a5] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [0ff45169-3424-4c18-88dc-e5a266b4b2a5] Clubhouse::Mailer#invitation: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [0ff45169-3424-4c18-88dc-e5a266b4b2a5] Sent mail to email@example.com (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [0ff45169-3424-4c18-88dc-e5a266b4b2a5] Date: Mon, 16 Mar 2015 21:44:01 -0700 From: from@example.com To: email@example.com Message-ID: <5507b11125d1_b3653fe6d0c65bf050812@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/lgbdhqpzQfxnLkjCRbksYMoqDQwXxOyHyTCVGr5qzfI If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0ff45169-3424-4c18-88dc-e5a266b4b2a5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.1ms Completed 201 Created in 21ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$nLm58trE8KXaXCjFJJpQx.iJTbMDO2zw1gMqz3MrlGEcRX6rOO2j6"], ["created_at", "2015-03-17 04:44:01.019306"], ["updated_at", "2015-03-17 04:44:01.019306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:01.020896"], ["user_id", "3b34cb16-cc60-11e4-8569-705681abff85"], ["created_at", "2015-03-17 04:44:01.021681"], ["updated_at", "2015-03-17 04:44:01.021681"], ["token", "6yv45VI3AAt6rPIOnn7lBFcNFUyxrFEwilNymo3DH28"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:01.025975"], ["updated_at", "2015-03-17 04:44:01.025975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b34cb16-cc60-11e4-8569-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b35cdfe-cc60-11e4-b52e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b34cb16-cc60-11e4-8569-705681abff85"], ["organization_id", "3b35cdfe-cc60-11e4-b52e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:01.029164"], ["updated_at", "2015-03-17 04:44:01.029164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '3b35cdfe-cc60-11e4-b52e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "3b35cdfe-cc60-11e4-b52e-705681abff85"], ["created_at", "2015-03-17 04:44:01.032696"], ["updated_at", "2015-03-17 04:44:01.032696"], ["token", "IcTRBaSTCkbo5vpt38FoxoJTC6HtjvCMtZ83gO2maPk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:44:01 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:01.038063' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6yv45VI3AAt6rPIOnn7lBFcNFUyxrFEwilNymo3DH28"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:01.039655"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:01.040573"], ["id", "3b354032-cc60-11e4-8e62-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b34cb16-cc60-11e4-8569-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3b34cb16-cc60-11e4-8569-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b35cdfe-cc60-11e4-b52e-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3b35cdfe-cc60-11e4-b52e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3b35cdfe-cc60-11e4-b52e-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-17 04:44:01.047521"], ["updated_at", "2015-03-17 04:44:01.047521"], ["token", "Of-anfIrItAJiUDP57LgndW1GQ5XLoY4DpTBInZZdk4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 245654d4-1322-40b8-b2b6-3b1d2bef92fd) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3b391d74-cc60-11e4-bb04-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3b391d74-cc60-11e4-bb04-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [245654d4-1322-40b8-b2b6-3b1d2bef92fd] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3b391d74-cc60-11e4-bb04-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [245654d4-1322-40b8-b2b6-3b1d2bef92fd] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b35cdfe-cc60-11e4-b52e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [245654d4-1322-40b8-b2b6-3b1d2bef92fd] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [245654d4-1322-40b8-b2b6-3b1d2bef92fd] Clubhouse::Mailer#invitation: processed outbound mail in 1.8ms [ActiveJob] [ActionMailer::DeliveryJob] [245654d4-1322-40b8-b2b6-3b1d2bef92fd] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [245654d4-1322-40b8-b2b6-3b1d2bef92fd] Date: Mon, 16 Mar 2015 21:44:01 -0700 From: from@example.com To: email@example.com Message-ID: <5507b111d617_b3653fe6d0c65bf05099b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Of-anfIrItAJiUDP57LgndW1GQ5XLoY4DpTBInZZdk4 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [245654d4-1322-40b8-b2b6-3b1d2bef92fd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.93ms Completed 201 Created in 20ms (Views: 1.2ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Y3HUucRF9Rorc1dwat2xFOR1m0ZOqlkiAeQYfACETZgoJ/7eqNEzC"], ["created_at", "2015-03-17 04:44:01.063771"], ["updated_at", "2015-03-17 04:44:01.063771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:01.065406"], ["user_id", "3b3b943c-cc60-11e4-8838-705681abff85"], ["created_at", "2015-03-17 04:44:01.066265"], ["updated_at", "2015-03-17 04:44:01.066265"], ["token", "zz2QgYu9Ndz1wujGC4MesmXR6B5cZgqLBiXIt5g1uqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:01.070199"], ["updated_at", "2015-03-17 04:44:01.070199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b3b943c-cc60-11e4-8838-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b3c8cde-cc60-11e4-a940-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b3b943c-cc60-11e4-8838-705681abff85"], ["organization_id", "3b3c8cde-cc60-11e4-a940-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:01.073730"], ["updated_at", "2015-03-17 04:44:01.073730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '3b3c8cde-cc60-11e4-a940-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "3b3c8cde-cc60-11e4-a940-705681abff85"], ["created_at", "2015-03-17 04:44:01.077146"], ["updated_at", "2015-03-17 04:44:01.077146"], ["token", "14SDwbIixXi9ozoG_ofr72GhqTe6qunQ-6t8YsAwzgY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:44:01 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:01.082273' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zz2QgYu9Ndz1wujGC4MesmXR6B5cZgqLBiXIt5g1uqM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:01.083993"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:01.084974"], ["id", "3b3c00a2-cc60-11e4-b5da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b3b943c-cc60-11e4-8838-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3b3b943c-cc60-11e4-8838-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b3c8cde-cc60-11e4-a940-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '3b3c8cde-cc60-11e4-a940-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$l73yBR3dKTPfyZVMDGpbxuWVMqqng25gdQyH9pKm1m..goieDgUNy"], ["created_at", "2015-03-17 04:44:01.102628"], ["updated_at", "2015-03-17 04:44:01.102628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:01.104497"], ["user_id", "3b418950-cc60-11e4-8954-705681abff85"], ["created_at", "2015-03-17 04:44:01.105310"], ["updated_at", "2015-03-17 04:44:01.105310"], ["token", "RyO_RXwdjbHMb14iDauJtVo2YFqmjp3iR387Bx4dPxI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:01.109491"], ["updated_at", "2015-03-17 04:44:01.109491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b418950-cc60-11e4-8954-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b428d46-cc60-11e4-a667-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b418950-cc60-11e4-8954-705681abff85"], ["organization_id", "3b428d46-cc60-11e4-a667-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:01.112776"], ["updated_at", "2015-03-17 04:44:01.112776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '3b428d46-cc60-11e4-a667-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "3b428d46-cc60-11e4-a667-705681abff85"], ["created_at", "2015-03-17 04:44:01.116420"], ["updated_at", "2015-03-17 04:44:01.116420"], ["token", "hQDwBA4WOUZNFC_LLr59Ia7sYa5tJpjJ0Dkz2bPbmm4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$9I.iw76Rc1OkjYTDU71JDO0rNs7pEVmD0KH48l/iXdfA1Z70KAABS"], ["created_at", "2015-03-17 04:44:01.121131"], ["updated_at", "2015-03-17 04:44:01.121131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:01.124629"], ["updated_at", "2015-03-17 04:44:01.124629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b44519e-cc60-11e4-8880-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b44de20-cc60-11e4-a8ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b44519e-cc60-11e4-8880-705681abff85"], ["organization_id", "3b44de20-cc60-11e4-a8ea-705681abff85"], ["created_at", "2015-03-17 04:44:01.128151"], ["updated_at", "2015-03-17 04:44:01.128151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:44:01 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$C6hxka5QIKor5tzZQeKym.zQVntxJgV01LN2NSVPetP0tLFdWadlm"], ["created_at", "2015-03-17 04:44:01.139697"], ["updated_at", "2015-03-17 04:44:01.139697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:01.141501"], ["user_id", "3b473148-cc60-11e4-911a-705681abff85"], ["created_at", "2015-03-17 04:44:01.142416"], ["updated_at", "2015-03-17 04:44:01.142416"], ["token", "1oSJPXKNr52zOCT5MNrQSsyV6mn_zdtbbRt2xgjTWT0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:01.146055"], ["updated_at", "2015-03-17 04:44:01.146055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b473148-cc60-11e4-911a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b48221a-cc60-11e4-8e64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b473148-cc60-11e4-911a-705681abff85"], ["organization_id", "3b48221a-cc60-11e4-8e64-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:01.149405"], ["updated_at", "2015-03-17 04:44:01.149405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '3b48221a-cc60-11e4-8e64-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "3b48221a-cc60-11e4-8e64-705681abff85"], ["created_at", "2015-03-17 04:44:01.152994"], ["updated_at", "2015-03-17 04:44:01.152994"], ["token", "DVcSrvA-HlFNYovHhtMjgYbeaCK_OGLpPIw21JAPRJo"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$sSXruHdL0pAesrGLMZ9Co.4xFoXq6wuB9rGP9rTvpvoulUtjQzl.6"], ["created_at", "2015-03-17 04:44:01.168772"], ["updated_at", "2015-03-17 04:44:01.168772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:01.172637"], ["updated_at", "2015-03-17 04:44:01.172637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b4b9ef4-cc60-11e4-ad84-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b4c46ce-cc60-11e4-bd33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b4b9ef4-cc60-11e4-ad84-705681abff85"], ["organization_id", "3b4c46ce-cc60-11e4-bd33-705681abff85"], ["created_at", "2015-03-17 04:44:01.177121"], ["updated_at", "2015-03-17 04:44:01.177121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:44:01 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:01.181614' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1oSJPXKNr52zOCT5MNrQSsyV6mn_zdtbbRt2xgjTWT0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:01.183273"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:01.185254"], ["id", "3b479b4c-cc60-11e4-ae4b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b473148-cc60-11e4-911a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3b473148-cc60-11e4-911a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "3b48221a-cc60-11e4-8e64-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('3b48221a-cc60-11e4-8e64-705681abff85') Completed 200 OK in 14ms (Views: 4.1ms | ActiveRecord: 2.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (27.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$0J2QZ.j13XdB1Z6Z/.vXzOOhLoEoQrqJGZL88gUol9aP6lG4PUuXC"], ["created_at", "2015-03-17 04:44:19.359938"], ["updated_at", "2015-03-17 04:44:19.359938"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.411639"], ["user_id", "46277c94-cc60-11e4-80ee-705681abff85"], ["created_at", "2015-03-17 04:44:19.417797"], ["updated_at", "2015-03-17 04:44:19.417797"], ["token", "QPXUo2T01vta_i0-TSY5QaV8BrWUO_oAP92svtb6xSc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.427840"], ["updated_at", "2015-03-17 04:44:19.427840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46277c94-cc60-11e4-80ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '462dc11c-cc60-11e4-b979-705681abff85') LIMIT 1 SQL (4.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46277c94-cc60-11e4-80ee-705681abff85"], ["organization_id", "462dc11c-cc60-11e4-b979-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.440014"], ["updated_at", "2015-03-17 04:44:19.440014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '462dc11c-cc60-11e4-b979-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "462dc11c-cc60-11e4-b979-705681abff85"], ["created_at", "2015-03-17 04:44:19.465070"], ["updated_at", "2015-03-17 04:44:19.465070"], ["token", "CjGhdMdbGRxIQSmuwLiljlCgETb_afL50TqTZxFRl6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$39NtBBD6taTeZNtdecKksOxE7e.x88w/.YYenpWR44ucIUCBy8LRW"], ["created_at", "2015-03-17 04:44:19.470281"], ["updated_at", "2015-03-17 04:44:19.470281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.473357"], ["updated_at", "2015-03-17 04:44:19.473357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4634309c-cc60-11e4-b2ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '4634a612-cc60-11e4-9536-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4634309c-cc60-11e4-b2ff-705681abff85"], ["organization_id", "4634a612-cc60-11e4-9536-705681abff85"], ["created_at", "2015-03-17 04:44:19.476601"], ["updated_at", "2015-03-17 04:44:19.476601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:19.501884' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QPXUo2T01vta_i0-TSY5QaV8BrWUO_oAP92svtb6xSc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:19.509800"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:19.511078"], ["id", "462c46e8-cc60-11e4-84b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46277c94-cc60-11e4-80ee-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "46277c94-cc60-11e4-80ee-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "462dc11c-cc60-11e4-b979-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('462dc11c-cc60-11e4-b979-705681abff85') Completed 200 OK in 41ms (Views: 8.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$kWGiP3B2sBy2qsRPk9a.YO0XhMspPRehbKuOaar1vXGewwzCpAZ22"], ["created_at", "2015-03-17 04:44:19.552149"], ["updated_at", "2015-03-17 04:44:19.552149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.553861"], ["user_id", "4640b1be-cc60-11e4-98f9-705681abff85"], ["created_at", "2015-03-17 04:44:19.554692"], ["updated_at", "2015-03-17 04:44:19.554692"], ["token", "648XMzln1T9lpdS2_feFw-kvQ7bu0E7pHj2Hgq7k-Tg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.558475"], ["updated_at", "2015-03-17 04:44:19.558475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4640b1be-cc60-11e4-98f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '4641a434-cc60-11e4-8d16-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4640b1be-cc60-11e4-98f9-705681abff85"], ["organization_id", "4641a434-cc60-11e4-8d16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.561817"], ["updated_at", "2015-03-17 04:44:19.561817"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '4641a434-cc60-11e4-8d16-705681abff85') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "4641a434-cc60-11e4-8d16-705681abff85"], ["created_at", "2015-03-17 04:44:19.565970"], ["updated_at", "2015-03-17 04:44:19.565970"], ["token", "j_2v9SX6JbIKQSPR4YSf1RuoK9W8IgUlhLu8oaMNW1g"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$BM3hxk6ZdHUKE9qhhw0yWOQ2J0JhnQlVR7IlMk45dbxX7i8txtvgO"], ["created_at", "2015-03-17 04:44:19.575206"], ["updated_at", "2015-03-17 04:44:19.575206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.578774"], ["updated_at", "2015-03-17 04:44:19.578774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46443a00-cc60-11e4-82ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '4644bcdc-cc60-11e4-9e2a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46443a00-cc60-11e4-82ad-705681abff85"], ["organization_id", "4644bcdc-cc60-11e4-9e2a-705681abff85"], ["created_at", "2015-03-17 04:44:19.581963"], ["updated_at", "2015-03-17 04:44:19.581963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$JXs01F4iNa7L/qDQWnfdReiSa2zPz8lO7jWNYYfhRp.T7Eczg09gW"], ["created_at", "2015-03-17 04:44:19.595807"], ["updated_at", "2015-03-17 04:44:19.595807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.597537"], ["user_id", "46475bcc-cc60-11e4-8d00-705681abff85"], ["created_at", "2015-03-17 04:44:19.598538"], ["updated_at", "2015-03-17 04:44:19.598538"], ["token", "cJyt2650k6SPL9tC9G8177URJsA5QcaYHt2aD5ITfPs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.602307"], ["updated_at", "2015-03-17 04:44:19.602307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46475bcc-cc60-11e4-8d00-705681abff85' AND "clubhouse_memberships"."organization_id" = '46485bda-cc60-11e4-9001-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46475bcc-cc60-11e4-8d00-705681abff85"], ["organization_id", "46485bda-cc60-11e4-9001-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.605919"], ["updated_at", "2015-03-17 04:44:19.605919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '46485bda-cc60-11e4-9001-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "46485bda-cc60-11e4-9001-705681abff85"], ["created_at", "2015-03-17 04:44:19.609862"], ["updated_at", "2015-03-17 04:44:19.609862"], ["token", "glAKmis-JQN39wcbMAeN1sNlVx3wqbmQlZ8SCXVc0ps"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$TIz4jfYQQSUGDkmLU5eu4uMWn97AoPvMsEhn6jrPETfEfWx13bTNi"], ["created_at", "2015-03-17 04:44:19.614710"], ["updated_at", "2015-03-17 04:44:19.614710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.617790"], ["updated_at", "2015-03-17 04:44:19.617790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '464a395a-cc60-11e4-9d22-705681abff85' AND "clubhouse_memberships"."organization_id" = '464ab592-cc60-11e4-a961-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "464a395a-cc60-11e4-9d22-705681abff85"], ["organization_id", "464ab592-cc60-11e4-a961-705681abff85"], ["created_at", "2015-03-17 04:44:19.621284"], ["updated_at", "2015-03-17 04:44:19.621284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/46485bda-cc60-11e4-9001-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"46485bda-cc60-11e4-9001-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:19.625793' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cJyt2650k6SPL9tC9G8177URJsA5QcaYHt2aD5ITfPs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:19.627221"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:19.628453"], ["id", "4647cf30-cc60-11e4-9242-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46475bcc-cc60-11e4-8d00-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "46475bcc-cc60-11e4-8d00-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "46485bda-cc60-11e4-9001-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "46485bda-cc60-11e4-9001-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('46485bda-cc60-11e4-9001-705681abff85') Completed 200 OK in 12ms (Views: 2.1ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$lbgmBlo5GAuxnDDwvZPbG.3FxkTFQbxZsMKuuHzqu/fg2I1JXFQti"], ["created_at", "2015-03-17 04:44:19.643873"], ["updated_at", "2015-03-17 04:44:19.643873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.646322"], ["user_id", "464ec45c-cc60-11e4-801c-705681abff85"], ["created_at", "2015-03-17 04:44:19.648004"], ["updated_at", "2015-03-17 04:44:19.648004"], ["token", "o2Hn0anWaDOey6e51-BhCE194pI8IHuoGYhrUVPpMJg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.651745"], ["updated_at", "2015-03-17 04:44:19.651745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '464ec45c-cc60-11e4-801c-705681abff85' AND "clubhouse_memberships"."organization_id" = '464fdf7c-cc60-11e4-aee8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "464ec45c-cc60-11e4-801c-705681abff85"], ["organization_id", "464fdf7c-cc60-11e4-aee8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.655085"], ["updated_at", "2015-03-17 04:44:19.655085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '464fdf7c-cc60-11e4-aee8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "464fdf7c-cc60-11e4-aee8-705681abff85"], ["created_at", "2015-03-17 04:44:19.659090"], ["updated_at", "2015-03-17 04:44:19.659090"], ["token", "wWGYtPWyLYwLqcYCaMcLPLkoSshYySgMZSmmfr1KVHA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$QY/D7BuNT8Qdsf5jwvR3tOcR/H5/PLyAPtNkTp3XVlrW2Y2i1JnUG"], ["created_at", "2015-03-17 04:44:19.664117"], ["updated_at", "2015-03-17 04:44:19.664117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.667512"], ["updated_at", "2015-03-17 04:44:19.667512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4651c6c0-cc60-11e4-b0f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '4652497e-cc60-11e4-b883-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4651c6c0-cc60-11e4-b0f8-705681abff85"], ["organization_id", "4652497e-cc60-11e4-b883-705681abff85"], ["created_at", "2015-03-17 04:44:19.670863"], ["updated_at", "2015-03-17 04:44:19.670863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$mfB5KITuCxmVjVI6GAhUN.n7GWV8OpWpM71aKUSjbyfBrZBx9TTBu"], ["created_at", "2015-03-17 04:44:19.682576"], ["updated_at", "2015-03-17 04:44:19.682576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.684406"], ["user_id", "46549af8-cc60-11e4-a99e-705681abff85"], ["created_at", "2015-03-17 04:44:19.685360"], ["updated_at", "2015-03-17 04:44:19.685360"], ["token", "Rh0JJceGeNtz9alv32a6woASzVnPsqDUGzCSIrfisDM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.689821"], ["updated_at", "2015-03-17 04:44:19.689821"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46549af8-cc60-11e4-a99e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4655af1a-cc60-11e4-a012-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46549af8-cc60-11e4-a99e-705681abff85"], ["organization_id", "4655af1a-cc60-11e4-a012-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.693847"], ["updated_at", "2015-03-17 04:44:19.693847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '4655af1a-cc60-11e4-a012-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "4655af1a-cc60-11e4-a012-705681abff85"], ["created_at", "2015-03-17 04:44:19.699649"], ["updated_at", "2015-03-17 04:44:19.699649"], ["token", "sFn-KnnVHrSX2MXk1KkXTPeeipiI_aBqVtDAn8bDOv8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/46573588-cc60-11e4-8836-705681abff85" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"46573588-cc60-11e4-8836-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:19.705001' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Rh0JJceGeNtz9alv32a6woASzVnPsqDUGzCSIrfisDM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:19.706500"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:19.707461"], ["id", "4655100a-cc60-11e4-bb89-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46549af8-cc60-11e4-a99e-705681abff85"]] Clubhouse::Organization Load (1.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "46549af8-cc60-11e4-a99e-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "46573588-cc60-11e4-8836-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "46573588-cc60-11e4-8836-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$OE6X/23zqemdcjioL4ut1e6yWEigmjvO3eHtqgB9LWVR/STnF.E6K"], ["created_at", "2015-03-17 04:44:19.722835"], ["updated_at", "2015-03-17 04:44:19.722835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.724441"], ["user_id", "465aba00-cc60-11e4-adf4-705681abff85"], ["created_at", "2015-03-17 04:44:19.725228"], ["updated_at", "2015-03-17 04:44:19.725228"], ["token", "UgksCA4Z5s0tFkk6EhyJ2L-gwxiqqWeCY1-twtMfW8M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.729124"], ["updated_at", "2015-03-17 04:44:19.729124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '465aba00-cc60-11e4-adf4-705681abff85' AND "clubhouse_memberships"."organization_id" = '465baf1e-cc60-11e4-98a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "465aba00-cc60-11e4-adf4-705681abff85"], ["organization_id", "465baf1e-cc60-11e4-98a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.766705"], ["updated_at", "2015-03-17 04:44:19.766705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '465baf1e-cc60-11e4-98a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "465baf1e-cc60-11e4-98a4-705681abff85"], ["created_at", "2015-03-17 04:44:19.770179"], ["updated_at", "2015-03-17 04:44:19.770179"], ["token", "SvKZc9_CJawgwrvGx-yFvhX13fpJNhcqUMh4NCkBqps"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$rTWB48mzud0BRgs4utCAeuob0vRe2g19QwgZoU3eChRU5yiMoEdWu"], ["created_at", "2015-03-17 04:44:19.781109"], ["updated_at", "2015-03-17 04:44:19.781109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.782833"], ["user_id", "4663a188-cc60-11e4-ac6a-705681abff85"], ["created_at", "2015-03-17 04:44:19.783706"], ["updated_at", "2015-03-17 04:44:19.783706"], ["token", "BlQwD6mVzOGqihRnJhg2--_91ZXcs9Tzrat_Nhrk-Vw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.787364"], ["updated_at", "2015-03-17 04:44:19.787364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4663a188-cc60-11e4-ac6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '466490f2-cc60-11e4-9336-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4663a188-cc60-11e4-ac6a-705681abff85"], ["organization_id", "466490f2-cc60-11e4-9336-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.790646"], ["updated_at", "2015-03-17 04:44:19.790646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '466490f2-cc60-11e4-9336-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "466490f2-cc60-11e4-9336-705681abff85"], ["created_at", "2015-03-17 04:44:19.794109"], ["updated_at", "2015-03-17 04:44:19.794109"], ["token", "dqV4GmZr4sgeJh8OkkPudAjHL0vTtGiI_J87siNqyic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/46659c4a-cc60-11e4-b9c1-705681abff85" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"46659c4a-cc60-11e4-b9c1-705681abff85", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:19.798845' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BlQwD6mVzOGqihRnJhg2--_91ZXcs9Tzrat_Nhrk-Vw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:19.800872"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:19.801912"], ["id", "466409a2-cc60-11e4-bf43-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4663a188-cc60-11e4-ac6a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4663a188-cc60-11e4-ac6a-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "46659c4a-cc60-11e4-b9c1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "466490f2-cc60-11e4-9336-705681abff85"]] Completed 200 OK in 12ms (Views: 3.5ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$5.RhOXUCSQwbzMgK/0Ob5euVGvLqa7ermMlyaHatJxXVD5B6mzz1K"], ["created_at", "2015-03-17 04:44:19.817872"], ["updated_at", "2015-03-17 04:44:19.817872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.819684"], ["user_id", "46694156-cc60-11e4-a6d4-705681abff85"], ["created_at", "2015-03-17 04:44:19.820483"], ["updated_at", "2015-03-17 04:44:19.820483"], ["token", "15CkEFzWf1rrdjYlvJwx59cIVUFe36d3aW3CcAsgbvM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.831783"], ["updated_at", "2015-03-17 04:44:19.831783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46694156-cc60-11e4-a6d4-705681abff85' AND "clubhouse_memberships"."organization_id" = '466b5e96-cc60-11e4-b788-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46694156-cc60-11e4-a6d4-705681abff85"], ["organization_id", "466b5e96-cc60-11e4-b788-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.835397"], ["updated_at", "2015-03-17 04:44:19.835397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '466b5e96-cc60-11e4-b788-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "466b5e96-cc60-11e4-b788-705681abff85"], ["created_at", "2015-03-17 04:44:19.839129"], ["updated_at", "2015-03-17 04:44:19.839129"], ["token", "HlWZ0YO4D0b4W1WsdYjXj7sUfzjBnbjQFj_unb45kVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$fZAXPdPhOM99dUuQZmIL0Omr7BZ8LY/gGM.sXnfBNcYUGOsCq65C."], ["created_at", "2015-03-17 04:44:19.850781"], ["updated_at", "2015-03-17 04:44:19.850781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.852335"], ["user_id", "466e3f3a-cc60-11e4-9689-705681abff85"], ["created_at", "2015-03-17 04:44:19.853372"], ["updated_at", "2015-03-17 04:44:19.853372"], ["token", "9_mPe-WTlMmZtQtefMsvadyJgy3iXuV08zWbXy42ACM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.858680"], ["updated_at", "2015-03-17 04:44:19.858680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '466e3f3a-cc60-11e4-9689-705681abff85' AND "clubhouse_memberships"."organization_id" = '466f7918-cc60-11e4-828b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "466e3f3a-cc60-11e4-9689-705681abff85"], ["organization_id", "466f7918-cc60-11e4-828b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.862360"], ["updated_at", "2015-03-17 04:44:19.862360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '466f7918-cc60-11e4-828b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "466f7918-cc60-11e4-828b-705681abff85"], ["created_at", "2015-03-17 04:44:19.866427"], ["updated_at", "2015-03-17 04:44:19.866427"], ["token", "s4Jo2NJeU2ZAcmNp57jfNwVLP28ci8qqH8ozVghU3FY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$V614FK5Txsi3piUCsPpah.WtTy1uKmWogkq08W2t2dEcraVaeBhn2"], ["created_at", "2015-03-17 04:44:19.876202"], ["updated_at", "2015-03-17 04:44:19.876202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.878007"], ["user_id", "467227c6-cc60-11e4-8b70-705681abff85"], ["created_at", "2015-03-17 04:44:19.879167"], ["updated_at", "2015-03-17 04:44:19.879167"], ["token", "ITNlatcSJvtxuerULzVYSvNy7tqH24Y_pEwzugoKaEs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.883258"], ["updated_at", "2015-03-17 04:44:19.883258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '467227c6-cc60-11e4-8b70-705681abff85' AND "clubhouse_memberships"."organization_id" = '467331ac-cc60-11e4-9c4a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "467227c6-cc60-11e4-8b70-705681abff85"], ["organization_id", "467331ac-cc60-11e4-9c4a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.886474"], ["updated_at", "2015-03-17 04:44:19.886474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '467331ac-cc60-11e4-9c4a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "467331ac-cc60-11e4-9c4a-705681abff85"], ["created_at", "2015-03-17 04:44:19.890310"], ["updated_at", "2015-03-17 04:44:19.890310"], ["token", "m3G6qKAr9hxTpuPAoOA9BGwltuhI87ZzNcVEuOuACBM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:19.896518' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ITNlatcSJvtxuerULzVYSvNy7tqH24Y_pEwzugoKaEs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:19.897958"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:19.898921"], ["id", "4672abce-cc60-11e4-91b4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "467227c6-cc60-11e4-8b70-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "467227c6-cc60-11e4-8b70-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "467331ac-cc60-11e4-9c4a-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '467331ac-cc60-11e4-9c4a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 23ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$/G4Udky.e8vOgOsouEqBtOZkh000q2mtxqDFyOv33KMND995BZuj2"], ["created_at", "2015-03-17 04:44:19.925708"], ["updated_at", "2015-03-17 04:44:19.925708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:19.928272"], ["user_id", "4679cac6-cc60-11e4-afa2-705681abff85"], ["created_at", "2015-03-17 04:44:19.929364"], ["updated_at", "2015-03-17 04:44:19.929364"], ["token", "68adNfFd_9n2sy9XTA8hgkw_PW_n5J4lwHHOI4Gyubc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:19.940301"], ["updated_at", "2015-03-17 04:44:19.940301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4679cac6-cc60-11e4-afa2-705681abff85' AND "clubhouse_memberships"."organization_id" = '467be6ee-cc60-11e4-a1c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4679cac6-cc60-11e4-afa2-705681abff85"], ["organization_id", "467be6ee-cc60-11e4-a1c0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.943709"], ["updated_at", "2015-03-17 04:44:19.943709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '467be6ee-cc60-11e4-a1c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "467be6ee-cc60-11e4-a1c0-705681abff85"], ["created_at", "2015-03-17 04:44:19.947515"], ["updated_at", "2015-03-17 04:44:19.947515"], ["token", "KuU2ICCo8vk05fao_dhW4nm_geJ4aHbW3fw63jiyalE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:44:19 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:19.952068' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "68adNfFd_9n2sy9XTA8hgkw_PW_n5J4lwHHOI4Gyubc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:19.953659"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:19.955091"], ["id", "467a57ac-cc60-11e4-be42-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4679cac6-cc60-11e4-afa2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "4679cac6-cc60-11e4-afa2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "467be6ee-cc60-11e4-a1c0-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '467be6ee-cc60-11e4-a1c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "467be6ee-cc60-11e4-a1c0-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-17 04:44:19.963635"], ["updated_at", "2015-03-17 04:44:19.963635"], ["token", "Gt8gFc98232WpdNJ8KgBr8YgmGg5M_4mm541sz6pxEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 797eca7e-8b4c-4d24-80d6-124876ab6d81) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/467f8c72-cc60-11e4-9e8b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "467f8c72-cc60-11e4-9e8b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [797eca7e-8b4c-4d24-80d6-124876ab6d81] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/467f8c72-cc60-11e4-9e8b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [797eca7e-8b4c-4d24-80d6-124876ab6d81] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "467be6ee-cc60-11e4-a1c0-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [797eca7e-8b4c-4d24-80d6-124876ab6d81] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [797eca7e-8b4c-4d24-80d6-124876ab6d81] Clubhouse::Mailer#invitation: processed outbound mail in 227.7ms [ActiveJob] [ActionMailer::DeliveryJob] [797eca7e-8b4c-4d24-80d6-124876ab6d81] Sent mail to email@example.com (8.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [797eca7e-8b4c-4d24-80d6-124876ab6d81] Date: Mon, 16 Mar 2015 21:44:20 -0700 From: from@example.com To: email@example.com Message-ID: <5507b124377cf_b3683fd529465be857766@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/Gt8gFc98232WpdNJ8KgBr8YgmGg5M_4mm541sz6pxEQ If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [797eca7e-8b4c-4d24-80d6-124876ab6d81] Performed ActionMailer::DeliveryJob from Inline(mailers) in 236.79ms Completed 201 Created in 280ms (Views: 1.0ms | ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$qufjdM8uqBuUpvPPxgFqSuQ4yoWcmU5HhxH9UBWRDaJ.20x1zG/CG"], ["created_at", "2015-03-17 04:44:20.239313"], ["updated_at", "2015-03-17 04:44:20.239313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:20.240935"], ["user_id", "46a988e2-cc60-11e4-931c-705681abff85"], ["created_at", "2015-03-17 04:44:20.241789"], ["updated_at", "2015-03-17 04:44:20.241789"], ["token", "r6uYgji4IYUYOVUFQZrIv4i7CrfjQ8mrL43s4rEshp0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:20.245182"], ["updated_at", "2015-03-17 04:44:20.245182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46a988e2-cc60-11e4-931c-705681abff85' AND "clubhouse_memberships"."organization_id" = '46aa6d70-cc60-11e4-8dcc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46a988e2-cc60-11e4-931c-705681abff85"], ["organization_id", "46aa6d70-cc60-11e4-8dcc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:20.248765"], ["updated_at", "2015-03-17 04:44:20.248765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '46aa6d70-cc60-11e4-8dcc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "46aa6d70-cc60-11e4-8dcc-705681abff85"], ["created_at", "2015-03-17 04:44:20.252411"], ["updated_at", "2015-03-17 04:44:20.252411"], ["token", "iMQxUNXdDfb-RXABol_VGWDicDFbiT7K0sWisNOlpwQ"]]  (2.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-16 21:44:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:20.275529' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r6uYgji4IYUYOVUFQZrIv4i7CrfjQ8mrL43s4rEshp0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:20.278002"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:20.279648"], ["id", "46a9ee18-cc60-11e4-a8e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46a988e2-cc60-11e4-931c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "46a988e2-cc60-11e4-931c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46aa6d70-cc60-11e4-8dcc-705681abff85"]] Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '46aa6d70-cc60-11e4-8dcc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "46aa6d70-cc60-11e4-8dcc-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-17 04:44:20.296748"], ["updated_at", "2015-03-17 04:44:20.296748"], ["token", "anDJou8vEAniiMBb3UhKChZubiq_Wgpshlbz7_TT6s8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2d4e6eb6-d75c-4610-84c8-cfc6d3588438) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/46b26d86-cc60-11e4-af87-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "46b26d86-cc60-11e4-af87-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2d4e6eb6-d75c-4610-84c8-cfc6d3588438] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/46b26d86-cc60-11e4-af87-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [2d4e6eb6-d75c-4610-84c8-cfc6d3588438] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46aa6d70-cc60-11e4-8dcc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2d4e6eb6-d75c-4610-84c8-cfc6d3588438] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2d4e6eb6-d75c-4610-84c8-cfc6d3588438] Clubhouse::Mailer#invitation: processed outbound mail in 3.6ms [ActiveJob] [ActionMailer::DeliveryJob] [2d4e6eb6-d75c-4610-84c8-cfc6d3588438] Sent mail to email@example.com (7.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [2d4e6eb6-d75c-4610-84c8-cfc6d3588438] Date: Mon, 16 Mar 2015 21:44:20 -0700 From: from@example.com To: email@example.com Message-ID: <5507b1244bf5a_b3683fd529465be85781c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/anDJou8vEAniiMBb3UhKChZubiq_Wgpshlbz7_TT6s8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [2d4e6eb6-d75c-4610-84c8-cfc6d3588438] Performed ActionMailer::DeliveryJob from Inline(mailers) in 11.73ms Completed 201 Created in 42ms (Views: 1.5ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$PA1bH0N0nNfJb8IeGdf.Y.jMgPqOl.BHndDaloZZgGNKLNEtSx/LS"], ["created_at", "2015-03-17 04:44:20.328553"], ["updated_at", "2015-03-17 04:44:20.328553"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:20.333324"], ["user_id", "46b76304-cc60-11e4-bf5d-705681abff85"], ["created_at", "2015-03-17 04:44:20.334825"], ["updated_at", "2015-03-17 04:44:20.334825"], ["token", "cq1k10c67Xw5qtNkcTzM9-pn3jtJ33id6EN-nle5Uus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:20.342533"], ["updated_at", "2015-03-17 04:44:20.342533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46b76304-cc60-11e4-bf5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '46b96032-cc60-11e4-ad24-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46b76304-cc60-11e4-bf5d-705681abff85"], ["organization_id", "46b96032-cc60-11e4-ad24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:20.348447"], ["updated_at", "2015-03-17 04:44:20.348447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '46b96032-cc60-11e4-ad24-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "46b96032-cc60-11e4-ad24-705681abff85"], ["created_at", "2015-03-17 04:44:20.352760"], ["updated_at", "2015-03-17 04:44:20.352760"], ["token", "rEqZxcs598RkJiPyJSImcNT2SFvrdrjpsLsjWMWhyt0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/46bb48fc-cc60-11e4-84ae-705681abff85" for 127.0.0.1 at 2015-03-16 21:44:20 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"46bb48fc-cc60-11e4-84ae-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:20.360458' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cq1k10c67Xw5qtNkcTzM9-pn3jtJ33id6EN-nle5Uus"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:20.362308"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:20.364257"], ["id", "46b85476-cc60-11e4-b894-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46b76304-cc60-11e4-bf5d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "46b76304-cc60-11e4-bf5d-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "46bb48fc-cc60-11e4-84ae-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46b96032-cc60-11e4-ad24-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."id" != '46bb48fc-cc60-11e4-84ae-705681abff85' AND "clubhouse_invitations"."organization_id" = '46b96032-cc60-11e4-ad24-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-17 04:44:20.372136"], ["id", "46bb48fc-cc60-11e4-84ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$cKBTGlFHoyPF80tArO80Mu5kNCqo58G9WDQ8KYYPoyYWA5QvKw58S"], ["created_at", "2015-03-17 04:44:20.385792"], ["updated_at", "2015-03-17 04:44:20.385792"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:20.387920"], ["user_id", "46bfea2e-cc60-11e4-ac65-705681abff85"], ["created_at", "2015-03-17 04:44:20.388774"], ["updated_at", "2015-03-17 04:44:20.388774"], ["token", "70KnrQCyqIe8Ge2ETK-nNoHNFcQDkDVEXqym4jT6tKs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:20.392295"], ["updated_at", "2015-03-17 04:44:20.392295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46bfea2e-cc60-11e4-ac65-705681abff85' AND "clubhouse_memberships"."organization_id" = '46c0e492-cc60-11e4-807f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46bfea2e-cc60-11e4-ac65-705681abff85"], ["organization_id", "46c0e492-cc60-11e4-807f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:20.395838"], ["updated_at", "2015-03-17 04:44:20.395838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '46c0e492-cc60-11e4-807f-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "46c0e492-cc60-11e4-807f-705681abff85"], ["created_at", "2015-03-17 04:44:20.399883"], ["updated_at", "2015-03-17 04:44:20.399883"], ["token", "mKVw9gAZJM1svGkCMH4eof-tthbtTsW-oMz9kpQeZ4M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-16 21:44:20 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$y.eHHCnAMX20Bfa7WWHDj.B1z7pPnpTA.LAh1LkMr1bI5QeDDgeYO"], ["created_at", "2015-03-17 04:44:20.421450"], ["updated_at", "2015-03-17 04:44:20.421450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:20.423069"], ["user_id", "46c55586-cc60-11e4-b5bc-705681abff85"], ["created_at", "2015-03-17 04:44:20.423818"], ["updated_at", "2015-03-17 04:44:20.423818"], ["token", "mQ8jUupFXOzd0f6NaCoY_e88yEWsQjwVT2d7kz6HMEA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:20.427216"], ["updated_at", "2015-03-17 04:44:20.427216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46c55586-cc60-11e4-b5bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '46c631a4-cc60-11e4-9ef6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46c55586-cc60-11e4-b5bc-705681abff85"], ["organization_id", "46c631a4-cc60-11e4-9ef6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:20.430444"], ["updated_at", "2015-03-17 04:44:20.430444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '46c631a4-cc60-11e4-9ef6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "46c631a4-cc60-11e4-9ef6-705681abff85"], ["created_at", "2015-03-17 04:44:20.434332"], ["updated_at", "2015-03-17 04:44:20.434332"], ["token", "UnuqtXYLjSbBlV5tMKAJVnuKOikVBAD6xPDUQh1YSmU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-16 21:44:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$O1//FaaMMm6er4kMdw6beO4741oce4/c856e83O7R1Z9DRtjx9eR6"], ["created_at", "2015-03-17 04:44:20.444734"], ["updated_at", "2015-03-17 04:44:20.444734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:20.446489"], ["user_id", "46c8e6c4-cc60-11e4-8cc8-705681abff85"], ["created_at", "2015-03-17 04:44:20.447267"], ["updated_at", "2015-03-17 04:44:20.447267"], ["token", "abHbJ57ErFG4SJykybStDSy5k8kAQE7F7OiZF9AUV-I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:20.450509"], ["updated_at", "2015-03-17 04:44:20.450509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46c8e6c4-cc60-11e4-8cc8-705681abff85' AND "clubhouse_memberships"."organization_id" = '46c9be14-cc60-11e4-8199-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46c8e6c4-cc60-11e4-8cc8-705681abff85"], ["organization_id", "46c9be14-cc60-11e4-8199-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:20.454355"], ["updated_at", "2015-03-17 04:44:20.454355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '46c9be14-cc60-11e4-8199-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "46c9be14-cc60-11e4-8199-705681abff85"], ["created_at", "2015-03-17 04:44:20.458021"], ["updated_at", "2015-03-17 04:44:20.458021"], ["token", "2tXS37ZfJSF_TTuJJALDDhHEA8zhriEAjGq09fL8fTk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/46c9be14-cc60-11e4-8199-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:44:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"46c9be14-cc60-11e4-8199-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:20.462976' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "abHbJ57ErFG4SJykybStDSy5k8kAQE7F7OiZF9AUV-I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:20.464594"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:20.465560"], ["id", "46c94970-cc60-11e4-90f4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46c8e6c4-cc60-11e4-8cc8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "46c8e6c4-cc60-11e4-8cc8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "46c9be14-cc60-11e4-8199-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46c9be14-cc60-11e4-8199-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '46c9be14-cc60-11e4-8199-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Ttmf5m2y.LxUJXPnM9ZvK.hXgs.gpc0jJlZqrT4Wk88QlV4f9CsOC"], ["created_at", "2015-03-17 04:44:20.480821"], ["updated_at", "2015-03-17 04:44:20.480821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:20.482529"], ["user_id", "46ce65ea-cc60-11e4-8eda-705681abff85"], ["created_at", "2015-03-17 04:44:20.483306"], ["updated_at", "2015-03-17 04:44:20.483306"], ["token", "OPAt5nNjLKpCFsm8XtWvHKFq4tGEUxSk38PThCffvdg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:20.487955"], ["updated_at", "2015-03-17 04:44:20.487955"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46ce65ea-cc60-11e4-8eda-705681abff85' AND "clubhouse_memberships"."organization_id" = '46cf8f74-cc60-11e4-bc65-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46ce65ea-cc60-11e4-8eda-705681abff85"], ["organization_id", "46cf8f74-cc60-11e4-bc65-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:20.494102"], ["updated_at", "2015-03-17 04:44:20.494102"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '46cf8f74-cc60-11e4-bc65-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "46cf8f74-cc60-11e4-bc65-705681abff85"], ["created_at", "2015-03-17 04:44:20.498980"], ["updated_at", "2015-03-17 04:44:20.498980"], ["token", "GmkxSQ66HENUhNVwimZU_pdGXyI50Oy9i3JwErvLDu0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/46cf8f74-cc60-11e4-bc65-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:44:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"46cf8f74-cc60-11e4-bc65-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:20.504679' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OPAt5nNjLKpCFsm8XtWvHKFq4tGEUxSk38PThCffvdg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:20.506041"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:20.507080"], ["id", "46cec882-cc60-11e4-8efd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46ce65ea-cc60-11e4-8eda-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "46ce65ea-cc60-11e4-8eda-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "46cf8f74-cc60-11e4-bc65-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46cf8f74-cc60-11e4-bc65-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '46cf8f74-cc60-11e4-bc65-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "46cf8f74-cc60-11e4-bc65-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-17 04:44:20.514771"], ["updated_at", "2015-03-17 04:44:20.514771"], ["token", "gBjOFFlL2AdLOEvJVYTyFPUbQWPsHTbyCK0ugjVomM8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5d13f5ca-6bef-4ea0-9355-ac44a4c81aea) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/46d3a08c-cc60-11e4-a932-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "46d3a08c-cc60-11e4-a932-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5d13f5ca-6bef-4ea0-9355-ac44a4c81aea] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/46d3a08c-cc60-11e4-a932-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [5d13f5ca-6bef-4ea0-9355-ac44a4c81aea] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46cf8f74-cc60-11e4-bc65-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5d13f5ca-6bef-4ea0-9355-ac44a4c81aea] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [5d13f5ca-6bef-4ea0-9355-ac44a4c81aea] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [5d13f5ca-6bef-4ea0-9355-ac44a4c81aea] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [5d13f5ca-6bef-4ea0-9355-ac44a4c81aea] Date: Mon, 16 Mar 2015 21:44:20 -0700 From: from@example.com To: email@example.com Message-ID: <5507b1247fa6e_b3683fd529465be8579ac@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/gBjOFFlL2AdLOEvJVYTyFPUbQWPsHTbyCK0ugjVomM8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5d13f5ca-6bef-4ea0-9355-ac44a4c81aea] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.06ms Completed 201 Created in 21ms (Views: 0.9ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$c7wjV7Q7COdq1j/m4xzMK./PJ3cxkbAhtFdCOk4Wkoa.q7VBSnnDi"], ["created_at", "2015-03-17 04:44:20.531576"], ["updated_at", "2015-03-17 04:44:20.531576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 04:44:20.533595"], ["user_id", "46d623f2-cc60-11e4-9f0b-705681abff85"], ["created_at", "2015-03-17 04:44:20.534673"], ["updated_at", "2015-03-17 04:44:20.534673"], ["token", "pH0NOqNT-RwGd3S_JJIgi4UHdQrXuSx85va6CD9oHjg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 04:44:20.538486"], ["updated_at", "2015-03-17 04:44:20.538486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46d623f2-cc60-11e4-9f0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '46d72dba-cc60-11e4-9ebb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46d623f2-cc60-11e4-9f0b-705681abff85"], ["organization_id", "46d72dba-cc60-11e4-9ebb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 04:44:20.542052"], ["updated_at", "2015-03-17 04:44:20.542052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '46d72dba-cc60-11e4-9ebb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "46d72dba-cc60-11e4-9ebb-705681abff85"], ["created_at", "2015-03-17 04:44:20.545409"], ["updated_at", "2015-03-17 04:44:20.545409"], ["token", "1HAMG51GbYJsLwbXFqptMu_b9DsheDFleSERlAgBrhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/46d72dba-cc60-11e4-9ebb-705681abff85/invitations" for 127.0.0.1 at 2015-03-16 21:44:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"46d72dba-cc60-11e4-9ebb-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 04:44:20.550120' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pH0NOqNT-RwGd3S_JJIgi4UHdQrXuSx85va6CD9oHjg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (5.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 04:44:20.551602"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 04:44:20.552546"], ["id", "46d6a660-cc60-11e4-ba82-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46d623f2-cc60-11e4-9f0b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "46d623f2-cc60-11e4-9f0b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "46d72dba-cc60-11e4-9ebb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46d72dba-cc60-11e4-9ebb-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '46d72dba-cc60-11e4-9ebb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "46d72dba-cc60-11e4-9ebb-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-17 04:44:20.566037"], ["updated_at", "2015-03-17 04:44:20.566037"], ["token", "ECDGPyk9OI2itXRCqoJ6fw5V6bpH2qBLztFaLbCKHN8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 10fb4c9b-6ca2-4b27-9545-98f17cab1d5c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/46db7d84-cc60-11e4-84bf-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "46db7d84-cc60-11e4-84bf-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [10fb4c9b-6ca2-4b27-9545-98f17cab1d5c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/46db7d84-cc60-11e4-84bf-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [10fb4c9b-6ca2-4b27-9545-98f17cab1d5c] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46d72dba-cc60-11e4-9ebb-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [10fb4c9b-6ca2-4b27-9545-98f17cab1d5c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [10fb4c9b-6ca2-4b27-9545-98f17cab1d5c] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [10fb4c9b-6ca2-4b27-9545-98f17cab1d5c] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [10fb4c9b-6ca2-4b27-9545-98f17cab1d5c] Date: Mon, 16 Mar 2015 21:44:20 -0700 From: from@example.com To: email@example.com Message-ID: <5507b1248c15a_b3683fd529465be8580e6@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/invitation/ECDGPyk9OI2itXRCqoJ6fw5V6bpH2qBLztFaLbCKHN8 If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [10fb4c9b-6ca2-4b27-9545-98f17cab1d5c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.0ms Completed 201 Created in 26ms (Views: 0.7ms | ActiveRecord: 8.3ms)  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (24.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (34.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$a73kxL12RifcoczlzNkqsO7Cl0gKj12O3JxP7ECwybAhJhGaGpsYO"], ["created_at", "2015-03-17 06:39:30.983969"], ["updated_at", "2015-03-17 06:39:30.983969"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$uky9l5jE5qzmtlQQTa2Nq.WLLsrbPg7DjRmMTauvjiFvFFk8ftYai"], ["created_at", "2015-03-17 06:39:31.024529"], ["updated_at", "2015-03-17 06:39:31.024529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (29.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.032438"], ["user_id", "5dce2ebe-cc70-11e4-9603-705681abff85"], ["created_at", "2015-03-17 06:39:31.041379"], ["updated_at", "2015-03-17 06:39:31.041379"], ["token", "y5AQDdIjhraGMVnkE6EFetq2ZKfm-_0-eVSQ65IWtVY"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.081661"], ["updated_at", "2015-03-17 06:39:31.081661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dce2ebe-cc70-11e4-9603-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dd86d3e-cc70-11e4-86e1-705681abff85') LIMIT 1 SQL (4.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dce2ebe-cc70-11e4-9603-705681abff85"], ["organization_id", "5dd86d3e-cc70-11e4-86e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.093413"], ["updated_at", "2015-03-17 06:39:31.093413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dcfadde-cc70-11e4-8215-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dd86d3e-cc70-11e4-86e1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5dcfadde-cc70-11e4-8215-705681abff85"], ["organization_id", "5dd86d3e-cc70-11e4-86e1-705681abff85"], ["created_at", "2015-03-17 06:39:31.101162"], ["updated_at", "2015-03-17 06:39:31.101162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-16 23:39:31 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$AgV7jf.pnZ5ve5nWYlgyaOziOzKjG1HcqR..B/U1K1wgald3dtIWG"], ["created_at", "2015-03-17 06:39:31.118250"], ["updated_at", "2015-03-17 06:39:31.118250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$XpQWGcPnPttbruAvAkpZtOvwPqSOpYUWIAn/.ibv74eO6edLuzP0a"], ["created_at", "2015-03-17 06:39:31.123090"], ["updated_at", "2015-03-17 06:39:31.123090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.124713"], ["user_id", "5dddfd80-cc70-11e4-b821-705681abff85"], ["created_at", "2015-03-17 06:39:31.125529"], ["updated_at", "2015-03-17 06:39:31.125529"], ["token", "ZNq-5ZgzbFy2fWGtTlY7ZB0M9kJ7xHXxRpxOzLkQpYw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.137222"], ["updated_at", "2015-03-17 06:39:31.137222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dddfd80-cc70-11e4-b821-705681abff85' AND "clubhouse_memberships"."organization_id" = '5de0e090-cc70-11e4-8acd-705681abff85') LIMIT 1 SQL (7.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dddfd80-cc70-11e4-b821-705681abff85"], ["organization_id", "5de0e090-cc70-11e4-8acd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.141703"], ["updated_at", "2015-03-17 06:39:31.141703"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ddeb748-cc70-11e4-9ba4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5de0e090-cc70-11e4-8acd-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ddeb748-cc70-11e4-9ba4-705681abff85"], ["organization_id", "5de0e090-cc70-11e4-8acd-705681abff85"], ["created_at", "2015-03-17 06:39:31.153664"], ["updated_at", "2015-03-17 06:39:31.153664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5de0e090-cc70-11e4-8acd-705681abff85/memberships" for 127.0.0.1 at 2015-03-16 23:39:31 -0700  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$IIGUtzTyhvKkYKw7jrUfQ.frhaJIEZHh86d9gyoHRscsXxJkhv5sa"], ["created_at", "2015-03-17 06:39:31.174643"], ["updated_at", "2015-03-17 06:39:31.174643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$1nvZtUrao2fYRt0zaOQpkufICJMLxFZFCt2qsdfKa/uAWQ/qbS1hy"], ["created_at", "2015-03-17 06:39:31.265743"], ["updated_at", "2015-03-17 06:39:31.265743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.268567"], ["user_id", "5de696d4-cc70-11e4-bce3-705681abff85"], ["created_at", "2015-03-17 06:39:31.269992"], ["updated_at", "2015-03-17 06:39:31.269992"], ["token", "XeU4Z3eR6ydrXe2kgdu00t65K5WhdnLdJFMojjGGt9k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.275916"], ["updated_at", "2015-03-17 06:39:31.275916"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5de696d4-cc70-11e4-bce3-705681abff85' AND "clubhouse_memberships"."organization_id" = '5df61c30-cc70-11e4-8def-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5de696d4-cc70-11e4-bce3-705681abff85"], ["organization_id", "5df61c30-cc70-11e4-8def-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.283940"], ["updated_at", "2015-03-17 06:39:31.283940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5df49252-cc70-11e4-9063-705681abff85' AND "clubhouse_memberships"."organization_id" = '5df61c30-cc70-11e4-8def-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5df49252-cc70-11e4-9063-705681abff85"], ["organization_id", "5df61c30-cc70-11e4-8def-705681abff85"], ["created_at", "2015-03-17 06:39:31.288898"], ["updated_at", "2015-03-17 06:39:31.288898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-16 23:39:31 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$S6t2S4hH7yXoj2NoJ8tN.OtYIGX.jW/.SCwvA4BFi0kVMYj1LBS2m"], ["created_at", "2015-03-17 06:39:31.316528"], ["updated_at", "2015-03-17 06:39:31.316528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$V4L.FHEu.n2o0lu.1eh3aeZqVMiU76Usn4vtU1pHiGyWF6QYu9WWm"], ["created_at", "2015-03-17 06:39:31.321344"], ["updated_at", "2015-03-17 06:39:31.321344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.322913"], ["user_id", "5dfc40f6-cc70-11e4-b745-705681abff85"], ["created_at", "2015-03-17 06:39:31.323666"], ["updated_at", "2015-03-17 06:39:31.323666"], ["token", "Hs_eVHu0iHWoczUm2fNqF4PYKPViAWBVp--TRFujvEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.327733"], ["updated_at", "2015-03-17 06:39:31.327733"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dfc40f6-cc70-11e4-b745-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dfdee88-cc70-11e4-983f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dfc40f6-cc70-11e4-b745-705681abff85"], ["organization_id", "5dfdee88-cc70-11e4-983f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.331424"], ["updated_at", "2015-03-17 06:39:31.331424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dfcf672-cc70-11e4-beee-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dfdee88-cc70-11e4-983f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5dfcf672-cc70-11e4-beee-705681abff85"], ["organization_id", "5dfdee88-cc70-11e4-983f-705681abff85"], ["created_at", "2015-03-17 06:39:31.334508"], ["updated_at", "2015-03-17 06:39:31.334508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5dfef6fc-cc70-11e4-a573-705681abff85" for 127.0.0.1 at 2015-03-16 23:39:31 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"5dfef6fc-cc70-11e4-a573-705681abff85", "membership"=>{}} Pollett::Session Load (1.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:31.339108' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Hs_eVHu0iHWoczUm2fNqF4PYKPViAWBVp--TRFujvEE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (6.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:31.350539"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:31.352099"], ["id", "5dfd5996-cc70-11e4-99a6-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5dfc40f6-cc70-11e4-b745-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5dfc40f6-cc70-11e4-b745-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5dfc40f6-cc70-11e4-b745-705681abff85"]] Completed 500 Internal Server Error in 58ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$kbKCrXBa3OeTgmt95p6jI.4ygpKPMnl/mI64F0sOmvps1qDcdin06"], ["created_at", "2015-03-17 06:39:31.402440"], ["updated_at", "2015-03-17 06:39:31.402440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$qCShpA15f7DoJ.CNDFUoWOT/thEkNAkixEr1awk9NObXPeAjpuWVe"], ["created_at", "2015-03-17 06:39:31.406795"], ["updated_at", "2015-03-17 06:39:31.406795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.408305"], ["user_id", "5e095638-cc70-11e4-b0b6-705681abff85"], ["created_at", "2015-03-17 06:39:31.409582"], ["updated_at", "2015-03-17 06:39:31.409582"], ["token", "Hzi7JtWky2rluU0firyaE-KJeW2IUCr7c5RvxSEnSsk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.414232"], ["updated_at", "2015-03-17 06:39:31.414232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e095638-cc70-11e4-b0b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e0b2cc4-cc70-11e4-a722-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e095638-cc70-11e4-b0b6-705681abff85"], ["organization_id", "5e0b2cc4-cc70-11e4-a722-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.418199"], ["updated_at", "2015-03-17 06:39:31.418199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e09fe8a-cc70-11e4-be90-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e0b2cc4-cc70-11e4-a722-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e09fe8a-cc70-11e4-be90-705681abff85"], ["organization_id", "5e0b2cc4-cc70-11e4-a722-705681abff85"], ["created_at", "2015-03-17 06:39:31.421618"], ["updated_at", "2015-03-17 06:39:31.421618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5e0bc15c-cc70-11e4-af02-705681abff85" for 127.0.0.1 at 2015-03-16 23:39:31 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"5e0bc15c-cc70-11e4-af02-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:31.428273' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Hzi7JtWky2rluU0firyaE-KJeW2IUCr7c5RvxSEnSsk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:31.429760"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:31.430795"], ["id", "5e0a8ce2-cc70-11e4-8b57-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e095638-cc70-11e4-b0b6-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5e095638-cc70-11e4-b0b6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5e095638-cc70-11e4-b0b6-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$ctYhFH/YLMMvagPaZ9E9peci4aGCuEdgZbhd5f4O9oDdLt8Z7zOgC"], ["created_at", "2015-03-17 06:39:31.447162"], ["updated_at", "2015-03-17 06:39:31.447162"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$/fzekLStkrDWW5gNj8ViV.whyVRC/MT449oBS9CkQxijUybb2EVvm"], ["created_at", "2015-03-17 06:39:31.454654"], ["updated_at", "2015-03-17 06:39:31.454654"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.457894"], ["user_id", "5e103ffc-cc70-11e4-80fd-705681abff85"], ["created_at", "2015-03-17 06:39:31.458846"], ["updated_at", "2015-03-17 06:39:31.458846"], ["token", "ABLQ6eNUdeO3TwL1kwDBIso8FLzuSJYD-6VU31bumyM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.462444"], ["updated_at", "2015-03-17 06:39:31.462444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e103ffc-cc70-11e4-80fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e127d58-cc70-11e4-857e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e103ffc-cc70-11e4-80fd-705681abff85"], ["organization_id", "5e127d58-cc70-11e4-857e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.466104"], ["updated_at", "2015-03-17 06:39:31.466104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e1155fe-cc70-11e4-aeab-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e127d58-cc70-11e4-857e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e1155fe-cc70-11e4-aeab-705681abff85"], ["organization_id", "5e127d58-cc70-11e4-857e-705681abff85"], ["created_at", "2015-03-17 06:39:31.469114"], ["updated_at", "2015-03-17 06:39:31.469114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$IA3AX1kmN1914kUdoTmPo.yPgMHFeE65cjbDyqJR9J8HdKK0zgwMi"], ["created_at", "2015-03-17 06:39:31.473372"], ["updated_at", "2015-03-17 06:39:31.473372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.474881"], ["user_id", "5e1426a8-cc70-11e4-ae54-705681abff85"], ["created_at", "2015-03-17 06:39:31.475909"], ["updated_at", "2015-03-17 06:39:31.475909"], ["token", "btEJNhzd9OHHnpnqwNjtui0bOdtuyPRBRJmZensLNgA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5e127d58-cc70-11e4-857e-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "5e127d58-cc70-11e4-857e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.491041"], ["updated_at", "2015-03-17 06:39:31.491041"], ["token", "9ukVRFuAkTZMsSI3ndeL1pEZEl6u62GmeLjE4HQpM3o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-16 23:39:31 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$r.PQWgnJeMDPrb/oiEROTuoDj6duWasLpWA2xMIxEQx1lvYl/qGKe"], ["created_at", "2015-03-17 06:39:31.503700"], ["updated_at", "2015-03-17 06:39:31.503700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$6DWu87y6PIvWoHK0kkZe3.a2JfOP5doTBesaRXRS9LZ97.ZDHhTDa"], ["created_at", "2015-03-17 06:39:31.509304"], ["updated_at", "2015-03-17 06:39:31.509304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.512458"], ["user_id", "5e18ce2e-cc70-11e4-b213-705681abff85"], ["created_at", "2015-03-17 06:39:31.513522"], ["updated_at", "2015-03-17 06:39:31.513522"], ["token", "28-bSCSfqLDR7TKx5V0IwGqZ9f0dFcx3hs2U31lU_2g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.518086"], ["updated_at", "2015-03-17 06:39:31.518086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e18ce2e-cc70-11e4-b213-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e1afe4c-cc70-11e4-b7a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e18ce2e-cc70-11e4-b213-705681abff85"], ["organization_id", "5e1afe4c-cc70-11e4-b7a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.522356"], ["updated_at", "2015-03-17 06:39:31.522356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e19be6a-cc70-11e4-b21d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e1afe4c-cc70-11e4-b7a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e19be6a-cc70-11e4-b21d-705681abff85"], ["organization_id", "5e1afe4c-cc70-11e4-b7a9-705681abff85"], ["created_at", "2015-03-17 06:39:31.526385"], ["updated_at", "2015-03-17 06:39:31.526385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$idSheTC0OwZnFdZItwHLx.LkGwvEBhjWEZNlJFZj4f2eqviQo5jsi"], ["created_at", "2015-03-17 06:39:31.531803"], ["updated_at", "2015-03-17 06:39:31.531803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.533871"], ["user_id", "5e1d1cfe-cc70-11e4-8916-705681abff85"], ["created_at", "2015-03-17 06:39:31.534798"], ["updated_at", "2015-03-17 06:39:31.534798"], ["token", "qAPp8pcux-_ECT7QO3B77Uu5lJjRrYQ5J6Q_9lmXvhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '5e1afe4c-cc70-11e4-b7a9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "5e1afe4c-cc70-11e4-b7a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.538999"], ["updated_at", "2015-03-17 06:39:31.538999"], ["token", "uSC_2uRDrNvA4EijfocXpM6YV140fAWI64Z2LE9UvBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-16 23:39:31 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (6.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$y2aA1LjUQDwZV5UIyJoRf.FbuiBnuY.P/6wPxeHOHRPeoaPupUhS2"], ["created_at", "2015-03-17 06:39:31.563900"], ["updated_at", "2015-03-17 06:39:31.563900"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$VTETlPtxPJxbkoIoF.ZmkuhXy1nSFICIPYZGE77GYZf/jJL2S3G0."], ["created_at", "2015-03-17 06:39:31.576372"], ["updated_at", "2015-03-17 06:39:31.576372"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.578394"], ["user_id", "5e22e774-cc70-11e4-a461-705681abff85"], ["created_at", "2015-03-17 06:39:31.579367"], ["updated_at", "2015-03-17 06:39:31.579367"], ["token", "GH0EkDxkMKunmmkqU54SVlplDQd3JI90Hydssr3tlgs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.585544"], ["updated_at", "2015-03-17 06:39:31.585544"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e22e774-cc70-11e4-a461-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e2549ba-cc70-11e4-9ea0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e22e774-cc70-11e4-a461-705681abff85"], ["organization_id", "5e2549ba-cc70-11e4-9ea0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.591681"], ["updated_at", "2015-03-17 06:39:31.591681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e23e354-cc70-11e4-adbc-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e2549ba-cc70-11e4-9ea0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e23e354-cc70-11e4-adbc-705681abff85"], ["organization_id", "5e2549ba-cc70-11e4-9ea0-705681abff85"], ["created_at", "2015-03-17 06:39:31.595246"], ["updated_at", "2015-03-17 06:39:31.595246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$2TOGktGfZv3/5prdYx779e/E4kd40YM4xp1w0vyaHrMn6oWfhxwom"], ["created_at", "2015-03-17 06:39:31.600428"], ["updated_at", "2015-03-17 06:39:31.600428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.602502"], ["user_id", "5e2793be-cc70-11e4-9206-705681abff85"], ["created_at", "2015-03-17 06:39:31.603929"], ["updated_at", "2015-03-17 06:39:31.603929"], ["token", "NxM7JZ1S-X-i4ACg58SUdDMkYisHhufZcO1uLnVN6mo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '5e2549ba-cc70-11e4-9ea0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "5e2549ba-cc70-11e4-9ea0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.611845"], ["updated_at", "2015-03-17 06:39:31.611845"], ["token", "lJiWyN2ZWMABwvXqx3WOG61tRlIGG1H0A7-ERX7Q7Xs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-16 23:39:31 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$JXCpPPj69wSmcpjqEUc7..ERBVgUB8XJJLsvqq64Wv4Q0D5/.hXi6"], ["created_at", "2015-03-17 06:39:31.626587"], ["updated_at", "2015-03-17 06:39:31.626587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Y09YUV24NnJ/YM5OuQNEBuSAkRF7grgElBTs6zD2L6mEGPltICV8m"], ["created_at", "2015-03-17 06:39:31.632259"], ["updated_at", "2015-03-17 06:39:31.632259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.635263"], ["user_id", "5e2b91e4-cc70-11e4-97bc-705681abff85"], ["created_at", "2015-03-17 06:39:31.636162"], ["updated_at", "2015-03-17 06:39:31.636162"], ["token", "qkQYCCom1zeqvkB3hV7zfh_6XCQNPoy_xhUKjsWP3Uk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.641233"], ["updated_at", "2015-03-17 06:39:31.641233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e2b91e4-cc70-11e4-97bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e2dd044-cc70-11e4-ad52-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e2b91e4-cc70-11e4-97bc-705681abff85"], ["organization_id", "5e2dd044-cc70-11e4-ad52-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.645906"], ["updated_at", "2015-03-17 06:39:31.645906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e2c7e6a-cc70-11e4-93fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e2dd044-cc70-11e4-ad52-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e2c7e6a-cc70-11e4-93fc-705681abff85"], ["organization_id", "5e2dd044-cc70-11e4-ad52-705681abff85"], ["created_at", "2015-03-17 06:39:31.650211"], ["updated_at", "2015-03-17 06:39:31.650211"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-16 23:39:31 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$2l94lYdZeeoXfPkpKYK.T.YEYUieFydWWnRYPOpMMiTm31nYo6zvy"], ["created_at", "2015-03-17 06:39:31.664676"], ["updated_at", "2015-03-17 06:39:31.664676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$awMyL5meI3RsxnLYKxhX8u4F/AhRc1Oks6JEmOI5P6Rb3t9BKk0vm"], ["created_at", "2015-03-17 06:39:31.669349"], ["updated_at", "2015-03-17 06:39:31.669349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.671678"], ["user_id", "5e316614-cc70-11e4-b9df-705681abff85"], ["created_at", "2015-03-17 06:39:31.672647"], ["updated_at", "2015-03-17 06:39:31.672647"], ["token", "10jGJ04J5wzQylkd7n4MKGU9GewVY8KYkVS16F8jrlc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (9.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.678393"], ["updated_at", "2015-03-17 06:39:31.678393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e316614-cc70-11e4-b9df-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e337a76-cc70-11e4-aee0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e316614-cc70-11e4-b9df-705681abff85"], ["organization_id", "5e337a76-cc70-11e4-aee0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.691727"], ["updated_at", "2015-03-17 06:39:31.691727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e321c8a-cc70-11e4-adee-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e337a76-cc70-11e4-aee0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e321c8a-cc70-11e4-adee-705681abff85"], ["organization_id", "5e337a76-cc70-11e4-aee0-705681abff85"], ["created_at", "2015-03-17 06:39:31.695516"], ["updated_at", "2015-03-17 06:39:31.695516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/5e357c5e-cc70-11e4-9df4-705681abff85" for 127.0.0.1 at 2015-03-16 23:39:31 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"5e357c5e-cc70-11e4-9df4-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:31.701462' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "10jGJ04J5wzQylkd7n4MKGU9GewVY8KYkVS16F8jrlc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:31.703793"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:31.705150"], ["id", "5e32c360-cc70-11e4-92ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e316614-cc70-11e4-b9df-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5e316614-cc70-11e4-b9df-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5e316614-cc70-11e4-b9df-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "5e316614-cc70-11e4-b9df-705681abff85"], ["id", "5e357c5e-cc70-11e4-9df4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e337a76-cc70-11e4-aee0-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e316614-cc70-11e4-b9df-705681abff85"]] Completed 200 OK in 24ms (Views: 8.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$qKFKp3YfyHpsWavFPS.rJuGX/ytuY2yuo12GmtJDEjlA4JFTwGTSS"], ["created_at", "2015-03-17 06:39:31.737631"], ["updated_at", "2015-03-17 06:39:31.737631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$EpG35UXvU/IqtaRC6Cff2u3t90Tnc0tDAv1nFXPC.RjTpLu7MWgMu"], ["created_at", "2015-03-17 06:39:31.742041"], ["updated_at", "2015-03-17 06:39:31.742041"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.745723"], ["user_id", "5e3c7d88-cc70-11e4-a04b-705681abff85"], ["created_at", "2015-03-17 06:39:31.746712"], ["updated_at", "2015-03-17 06:39:31.746712"], ["token", "G_klQ_wEz15l1nYkz_OBH0JJ8RieX28CPc8xBaFGG84"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.751194"], ["updated_at", "2015-03-17 06:39:31.751194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e3c7d88-cc70-11e4-a04b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e3e8e52-cc70-11e4-8a53-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e3c7d88-cc70-11e4-a04b-705681abff85"], ["organization_id", "5e3e8e52-cc70-11e4-8a53-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.754901"], ["updated_at", "2015-03-17 06:39:31.754901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e3d38c2-cc70-11e4-bf6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e3e8e52-cc70-11e4-8a53-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e3d38c2-cc70-11e4-bf6a-705681abff85"], ["organization_id", "5e3e8e52-cc70-11e4-8a53-705681abff85"], ["created_at", "2015-03-17 06:39:31.758957"], ["updated_at", "2015-03-17 06:39:31.758957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-16 23:39:31 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$3rMqEdSjRCCodyjACziwfu6pzPByihKUBbY/szoDHFFm4vc.kyTle"], ["created_at", "2015-03-17 06:39:31.771543"], ["updated_at", "2015-03-17 06:39:31.771543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$TsoeFDNCSlZ27xdLFLyEqO/5rqJogWlcv0GbEeJxST9RKqtP2ky9G"], ["created_at", "2015-03-17 06:39:31.777410"], ["updated_at", "2015-03-17 06:39:31.777410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.779253"], ["user_id", "5e41af38-cc70-11e4-9a07-705681abff85"], ["created_at", "2015-03-17 06:39:31.780087"], ["updated_at", "2015-03-17 06:39:31.780087"], ["token", "hGF8rPCaefLgcUC9dlqydkGaTKo-8AGzCWK0JPzpXNA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.784419"], ["updated_at", "2015-03-17 06:39:31.784419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e41af38-cc70-11e4-9a07-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e43a432-cc70-11e4-bf5a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e41af38-cc70-11e4-9a07-705681abff85"], ["organization_id", "5e43a432-cc70-11e4-bf5a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.788239"], ["updated_at", "2015-03-17 06:39:31.788239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e428ebc-cc70-11e4-81f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e43a432-cc70-11e4-bf5a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e428ebc-cc70-11e4-81f8-705681abff85"], ["organization_id", "5e43a432-cc70-11e4-bf5a-705681abff85"], ["created_at", "2015-03-17 06:39:31.792721"], ["updated_at", "2015-03-17 06:39:31.792721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/5e44ec84-cc70-11e4-b155-705681abff85" for 127.0.0.1 at 2015-03-16 23:39:31 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"5e44ec84-cc70-11e4-b155-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:31.798507' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hGF8rPCaefLgcUC9dlqydkGaTKo-8AGzCWK0JPzpXNA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:31.800118"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:31.801498"], ["id", "5e43032e-cc70-11e4-8204-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e41af38-cc70-11e4-9a07-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5e41af38-cc70-11e4-9a07-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$OrEjm8XtPNMDyjPJGBpbAOanNGyJcjGKE616IYDNw8aMjMHPrNS2C"], ["created_at", "2015-03-17 06:39:31.813130"], ["updated_at", "2015-03-17 06:39:31.813130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$thv16nghRBw2lyOFF3tXOO.uawTJzkUjr8k8FSttorFVQWWecW8Mm"], ["created_at", "2015-03-17 06:39:31.818330"], ["updated_at", "2015-03-17 06:39:31.818330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.820218"], ["user_id", "5e480978-cc70-11e4-90aa-705681abff85"], ["created_at", "2015-03-17 06:39:31.821137"], ["updated_at", "2015-03-17 06:39:31.821137"], ["token", "GgPemPHMhswUrxuTab9xztGmU4EuVNh-QCf-a4nENcg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.824797"], ["updated_at", "2015-03-17 06:39:31.824797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e480978-cc70-11e4-90aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e49c790-cc70-11e4-a236-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e480978-cc70-11e4-90aa-705681abff85"], ["organization_id", "5e49c790-cc70-11e4-a236-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.828461"], ["updated_at", "2015-03-17 06:39:31.828461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e48d52e-cc70-11e4-af76-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e49c790-cc70-11e4-a236-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e48d52e-cc70-11e4-af76-705681abff85"], ["organization_id", "5e49c790-cc70-11e4-a236-705681abff85"], ["created_at", "2015-03-17 06:39:31.831876"], ["updated_at", "2015-03-17 06:39:31.831876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/5e4a56ec-cc70-11e4-94d7-705681abff85" for 127.0.0.1 at 2015-03-16 23:39:31 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"5e4a56ec-cc70-11e4-94d7-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:31.837851' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GgPemPHMhswUrxuTab9xztGmU4EuVNh-QCf-a4nENcg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:31.839535"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:31.840574"], ["id", "5e494342-cc70-11e4-8e78-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e480978-cc70-11e4-90aa-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5e480978-cc70-11e4-90aa-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$D7/WePWmz6yyIMznystN0OLjrgBDSx5SL9.pjjG.2N6E1SSo4azUi"], ["created_at", "2015-03-17 06:39:31.856491"], ["updated_at", "2015-03-17 06:39:31.856491"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$r0XL3A1raGvOy138ZFjIk.ahAY38FnfblPhRVHqqxyKCtkY1EZ7CW"], ["created_at", "2015-03-17 06:39:31.862157"], ["updated_at", "2015-03-17 06:39:31.862157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.863888"], ["user_id", "5e4ea3be-cc70-11e4-b4bb-705681abff85"], ["created_at", "2015-03-17 06:39:31.864693"], ["updated_at", "2015-03-17 06:39:31.864693"], ["token", "HewXyyZTJjn9u2PhFmLL6jXr412L1X1cj0LF-7uPYgk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.868275"], ["updated_at", "2015-03-17 06:39:31.868275"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e4ea3be-cc70-11e4-b4bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e50682a-cc70-11e4-b38f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e4ea3be-cc70-11e4-b4bb-705681abff85"], ["organization_id", "5e50682a-cc70-11e4-b38f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.872594"], ["updated_at", "2015-03-17 06:39:31.872594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e4f7f32-cc70-11e4-be5b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e50682a-cc70-11e4-b38f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e4f7f32-cc70-11e4-be5b-705681abff85"], ["organization_id", "5e50682a-cc70-11e4-b38f-705681abff85"], ["created_at", "2015-03-17 06:39:31.876527"], ["updated_at", "2015-03-17 06:39:31.876527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$hWq79nzum8SLf36Vq4/gK.uCY.gZFbNChlZN4LAh8BHbgV/5lJLrG"], ["created_at", "2015-03-17 06:39:31.882125"], ["updated_at", "2015-03-17 06:39:31.882125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.883984"], ["user_id", "5e528ee8-cc70-11e4-9940-705681abff85"], ["created_at", "2015-03-17 06:39:31.884781"], ["updated_at", "2015-03-17 06:39:31.884781"], ["token", "Evg5pX5sVSEiF8tAZZe2LIfj8MHVI5mD3Ox1Lv_W_aw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '5e50682a-cc70-11e4-b38f-705681abff85') LIMIT 1 SQL (8.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "5e50682a-cc70-11e4-b38f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.888997"], ["updated_at", "2015-03-17 06:39:31.888997"], ["token", "bvPPvIvTds9Aub1QXtNmOn975E1X-OXQXOoCQLSf5FE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-16 23:39:31 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$foZa.k5AHWitV2IyHZ.T8u/PxTZWEUi2rK5QmDl60K/4woONQjtSO"], ["created_at", "2015-03-17 06:39:31.907992"], ["updated_at", "2015-03-17 06:39:31.907992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$5ivRhI3LQ3SAnsknSrsTheup/IBpx0HBT3ce8.cq3baLY/UvhAoGK"], ["created_at", "2015-03-17 06:39:31.914569"], ["updated_at", "2015-03-17 06:39:31.914569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.917187"], ["user_id", "5e569664-cc70-11e4-a3c5-705681abff85"], ["created_at", "2015-03-17 06:39:31.918203"], ["updated_at", "2015-03-17 06:39:31.918203"], ["token", "tfApx6OwDglJplHuMKaEbb-s6PV2sc8xVUf3v4wONbo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.921955"], ["updated_at", "2015-03-17 06:39:31.921955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e569664-cc70-11e4-a3c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e589b12-cc70-11e4-b6f8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e569664-cc70-11e4-a3c5-705681abff85"], ["organization_id", "5e589b12-cc70-11e4-b6f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.926747"], ["updated_at", "2015-03-17 06:39:31.926747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e579622-cc70-11e4-84a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e589b12-cc70-11e4-b6f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e579622-cc70-11e4-84a1-705681abff85"], ["organization_id", "5e589b12-cc70-11e4-b6f8-705681abff85"], ["created_at", "2015-03-17 06:39:31.933645"], ["updated_at", "2015-03-17 06:39:31.933645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$MIqrhJKEJz/TonUfrc5iC.xDaeNoIlwpesD7oQGQZobk5S7qphq1u"], ["created_at", "2015-03-17 06:39:31.938043"], ["updated_at", "2015-03-17 06:39:31.938043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.941688"], ["user_id", "5e5b0f32-cc70-11e4-ac05-705681abff85"], ["created_at", "2015-03-17 06:39:31.942838"], ["updated_at", "2015-03-17 06:39:31.942838"], ["token", "wgMFPGglRQ_oi7ylnE9i3ird3DyF8EIBpn3Kx0ZmroQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '5e589b12-cc70-11e4-b6f8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "5e589b12-cc70-11e4-b6f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.947730"], ["updated_at", "2015-03-17 06:39:31.947730"], ["token", "jUv1vdrv3-_ww5eskFwCt-OOf_MgU495D3MestfNkJw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5e589b12-cc70-11e4-b6f8-705681abff85/memberships" for 127.0.0.1 at 2015-03-16 23:39:31 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$2DdkhKdjB4LxP7tiUC9R0.A9Ex.k1v7IP/H1A4fajSmPmd7RYWUnW"], ["created_at", "2015-03-17 06:39:31.961709"], ["updated_at", "2015-03-17 06:39:31.961709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$gyu/ZkR/M8rJUE22Nc4E6OSjnJlKc4js/qvCLiLdl0gXNXn1FJlyW"], ["created_at", "2015-03-17 06:39:31.965981"], ["updated_at", "2015-03-17 06:39:31.965981"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.969713"], ["user_id", "5e5eae9e-cc70-11e4-8008-705681abff85"], ["created_at", "2015-03-17 06:39:31.970531"], ["updated_at", "2015-03-17 06:39:31.970531"], ["token", "TEighnev_ABXZgW6zUbTrhlKMcjxpkVm9ylYYbYIhg8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:31.975058"], ["updated_at", "2015-03-17 06:39:31.975058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e5eae9e-cc70-11e4-8008-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e60be46-cc70-11e4-a18d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e5eae9e-cc70-11e4-8008-705681abff85"], ["organization_id", "5e60be46-cc70-11e4-a18d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.979306"], ["updated_at", "2015-03-17 06:39:31.979306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e5f50ce-cc70-11e4-996f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e60be46-cc70-11e4-a18d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e5f50ce-cc70-11e4-996f-705681abff85"], ["organization_id", "5e60be46-cc70-11e4-a18d-705681abff85"], ["created_at", "2015-03-17 06:39:31.982844"], ["updated_at", "2015-03-17 06:39:31.982844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$HyAnQ8VrzRTyHMdccaySkuE8U9cQtTZIBlc0a7eTSskExiEZGCvAm"], ["created_at", "2015-03-17 06:39:31.987191"], ["updated_at", "2015-03-17 06:39:31.987191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:31.988684"], ["user_id", "5e628e60-cc70-11e4-987f-705681abff85"], ["created_at", "2015-03-17 06:39:31.989473"], ["updated_at", "2015-03-17 06:39:31.989473"], ["token", "y8fYnztKymvY_iA9LZNzi1MWfefdDZbI0D4omtoH2pE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '5e60be46-cc70-11e4-a18d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "5e60be46-cc70-11e4-a18d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:31.993247"], ["updated_at", "2015-03-17 06:39:31.993247"], ["token", "sp4gJZGdcuN-tDJxMPeJENBR6WsgMrNmBAVGN22-tOA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5e60be46-cc70-11e4-a18d-705681abff85/memberships" for 127.0.0.1 at 2015-03-16 23:39:31 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$YK4e/36C6kSiJvxcvACE2.NOi3a6K9r29HzH3G9BAXudNZPU5qt/y"], ["created_at", "2015-03-17 06:39:32.006725"], ["updated_at", "2015-03-17 06:39:32.006725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$aVh5jsYMmfEFrc.xg91/VuoEmUgWVHxyaiWhQCZmedGiXK9ef3lEy"], ["created_at", "2015-03-17 06:39:32.013724"], ["updated_at", "2015-03-17 06:39:32.013724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:32.015436"], ["user_id", "5e659574-cc70-11e4-b6cd-705681abff85"], ["created_at", "2015-03-17 06:39:32.016259"], ["updated_at", "2015-03-17 06:39:32.016259"], ["token", "zR3ath06Wpw7UhJR96Vaquf8mcZWJtEsXWEI-MI2UDg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:32.019674"], ["updated_at", "2015-03-17 06:39:32.019674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e659574-cc70-11e4-b6cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e678302-cc70-11e4-882f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e659574-cc70-11e4-b6cd-705681abff85"], ["organization_id", "5e678302-cc70-11e4-882f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:32.029975"], ["updated_at", "2015-03-17 06:39:32.029975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e669ff0-cc70-11e4-a03b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e678302-cc70-11e4-882f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e669ff0-cc70-11e4-a03b-705681abff85"], ["organization_id", "5e678302-cc70-11e4-882f-705681abff85"], ["created_at", "2015-03-17 06:39:32.032994"], ["updated_at", "2015-03-17 06:39:32.032994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-16 23:39:32 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$hbQr7DaLCXunq73qGglE1OzwRxkjaPZuwaPDgbQ/oPjW2gJUef2l."], ["created_at", "2015-03-17 06:39:32.042611"], ["updated_at", "2015-03-17 06:39:32.042611"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$z0XCBBQSM.NyV33WDQip7uuaFafdcmctnITZZ9IvYYRtdVlqxtDlC"], ["created_at", "2015-03-17 06:39:32.048545"], ["updated_at", "2015-03-17 06:39:32.048545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:32.050746"], ["user_id", "5e6b0ab8-cc70-11e4-bdd5-705681abff85"], ["created_at", "2015-03-17 06:39:32.051637"], ["updated_at", "2015-03-17 06:39:32.051637"], ["token", "RF9zZoDQLzMm7HWuk6Lej8Vhw6hM05REjKhvBpN-0Vk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:32.055902"], ["updated_at", "2015-03-17 06:39:32.055902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e6b0ab8-cc70-11e4-bdd5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e6d0caa-cc70-11e4-8577-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e6b0ab8-cc70-11e4-bdd5-705681abff85"], ["organization_id", "5e6d0caa-cc70-11e4-8577-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:32.059534"], ["updated_at", "2015-03-17 06:39:32.059534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e6bf9be-cc70-11e4-91fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e6d0caa-cc70-11e4-8577-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e6bf9be-cc70-11e4-91fe-705681abff85"], ["organization_id", "5e6d0caa-cc70-11e4-8577-705681abff85"], ["created_at", "2015-03-17 06:39:32.063620"], ["updated_at", "2015-03-17 06:39:32.063620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-16 23:39:32 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (23.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$xKtHQDn.1EcgpUB1SZUxJuI2FCFwpUpE9bn0CPWutx3UHlyptk18u"], ["created_at", "2015-03-17 06:39:50.151924"], ["updated_at", "2015-03-17 06:39:50.151924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ApE4FDwVSPx0lqsmiZeG7.gNAwJBc4wGBo9NuG4Saedr/72g6pEWu"], ["created_at", "2015-03-17 06:39:50.197416"], ["updated_at", "2015-03-17 06:39:50.197416"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (16.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.218523"], ["user_id", "6939ee00-cc70-11e4-a7ae-705681abff85"], ["created_at", "2015-03-17 06:39:50.235056"], ["updated_at", "2015-03-17 06:39:50.235056"], ["token", "gqr0hi8id9QZDMymLCpuJxZwiTmxfkDD5W1P6UgJWG0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.266191"], ["updated_at", "2015-03-17 06:39:50.266191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6939ee00-cc70-11e4-a7ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '6947dac4-cc70-11e4-be39-705681abff85') LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6939ee00-cc70-11e4-a7ae-705681abff85"], ["organization_id", "6947dac4-cc70-11e4-be39-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.282297"], ["updated_at", "2015-03-17 06:39:50.282297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '693d83c6-cc70-11e4-a5e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '6947dac4-cc70-11e4-be39-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "693d83c6-cc70-11e4-a5e2-705681abff85"], ["organization_id", "6947dac4-cc70-11e4-be39-705681abff85"], ["created_at", "2015-03-17 06:39:50.288927"], ["updated_at", "2015-03-17 06:39:50.288927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$zkPpdlQGBa1EebfGccz0dOGjKaX.W1194sKhHfr8V1Y.yrRGkeTDK"], ["created_at", "2015-03-17 06:39:50.322088"], ["updated_at", "2015-03-17 06:39:50.322088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$mXqt/DYR14xNqBGB6dkZpuQ0LblZnc0g7RX70I5zuGRJ3wERYwXhm"], ["created_at", "2015-03-17 06:39:50.327596"], ["updated_at", "2015-03-17 06:39:50.327596"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.329962"], ["user_id", "69503ff2-cc70-11e4-856d-705681abff85"], ["created_at", "2015-03-17 06:39:50.330988"], ["updated_at", "2015-03-17 06:39:50.330988"], ["token", "AymaLxR1A18fbihEfAJi40Utkk48w32kLruldHUEx8g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.336249"], ["updated_at", "2015-03-17 06:39:50.336249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69503ff2-cc70-11e4-856d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6952795c-cc70-11e4-9da4-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69503ff2-cc70-11e4-856d-705681abff85"], ["organization_id", "6952795c-cc70-11e4-9da4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.340638"], ["updated_at", "2015-03-17 06:39:50.340638"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '695122c8-cc70-11e4-8b31-705681abff85' AND "clubhouse_memberships"."organization_id" = '6952795c-cc70-11e4-9da4-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "695122c8-cc70-11e4-8b31-705681abff85"], ["organization_id", "6952795c-cc70-11e4-9da4-705681abff85"], ["created_at", "2015-03-17 06:39:50.346604"], ["updated_at", "2015-03-17 06:39:50.346604"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/69531858-cc70-11e4-83c1-705681abff85" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"69531858-cc70-11e4-83c1-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:50.358200' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AymaLxR1A18fbihEfAJi40Utkk48w32kLruldHUEx8g"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:50.366561"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:50.368057"], ["id", "6951b5b2-cc70-11e4-aa47-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69503ff2-cc70-11e4-856d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "69503ff2-cc70-11e4-856d-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "69503ff2-cc70-11e4-856d-705681abff85"]] Completed 500 Internal Server Error in 35ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$iP2r852Hy0XUxvi9qegSg./E/J02ozSr6MeLQxyV41p./TKLodOr2"], ["created_at", "2015-03-17 06:39:50.400621"], ["updated_at", "2015-03-17 06:39:50.400621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$3Up9W6MZ2Ht3pbX7JbhrEexu1EtalbUYbFPhUYKi9dujuTY8Ojdle"], ["created_at", "2015-03-17 06:39:50.405289"], ["updated_at", "2015-03-17 06:39:50.405289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.407164"], ["user_id", "695c3f0a-cc70-11e4-b441-705681abff85"], ["created_at", "2015-03-17 06:39:50.408121"], ["updated_at", "2015-03-17 06:39:50.408121"], ["token", "E9J74sfIp1L7O-I92BWmNanuCVtUGD5bDzU8DMIUK6Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.412429"], ["updated_at", "2015-03-17 06:39:50.412429"]]  (2.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '695c3f0a-cc70-11e4-b441-705681abff85' AND "clubhouse_memberships"."organization_id" = '695e0cd6-cc70-11e4-9366-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "695c3f0a-cc70-11e4-b441-705681abff85"], ["organization_id", "695e0cd6-cc70-11e4-9366-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.419070"], ["updated_at", "2015-03-17 06:39:50.419070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '695cf5e4-cc70-11e4-be1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '695e0cd6-cc70-11e4-9366-705681abff85') LIMIT 1 SQL (3.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "695cf5e4-cc70-11e4-be1d-705681abff85"], ["organization_id", "695e0cd6-cc70-11e4-9366-705681abff85"], ["created_at", "2015-03-17 06:39:50.422533"], ["updated_at", "2015-03-17 06:39:50.422533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/695f9236-cc70-11e4-a28c-705681abff85" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"695f9236-cc70-11e4-a28c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:50.431256' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "E9J74sfIp1L7O-I92BWmNanuCVtUGD5bDzU8DMIUK6Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:50.432870"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:50.434034"], ["id", "695d6d62-cc70-11e4-8e89-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "695c3f0a-cc70-11e4-b441-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "695c3f0a-cc70-11e4-b441-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "695c3f0a-cc70-11e4-b441-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$4hsWiizFuuy0NZtOtBKUwePk6.EjkJF8U5ENu4ll76dK2CP9cHQsi"], ["created_at", "2015-03-17 06:39:50.446465"], ["updated_at", "2015-03-17 06:39:50.446465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$20m3.W0LKgZ326iCIwQyxO5fNjs8/ndErPMtDU3A8KaqMnZ3xRNCC"], ["created_at", "2015-03-17 06:39:50.451142"], ["updated_at", "2015-03-17 06:39:50.451142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.452741"], ["user_id", "6963403e-cc70-11e4-bb6e-705681abff85"], ["created_at", "2015-03-17 06:39:50.453535"], ["updated_at", "2015-03-17 06:39:50.453535"], ["token", "-EWNEHPwo9iv9S2lgprBqTcbg2i-jdvI9YpbxeE2v6g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.457288"], ["updated_at", "2015-03-17 06:39:50.457288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6963403e-cc70-11e4-bb6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6964e998-cc70-11e4-b6e3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6963403e-cc70-11e4-bb6e-705681abff85"], ["organization_id", "6964e998-cc70-11e4-b6e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.461187"], ["updated_at", "2015-03-17 06:39:50.461187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6963eebc-cc70-11e4-969b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6964e998-cc70-11e4-b6e3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6963eebc-cc70-11e4-969b-705681abff85"], ["organization_id", "6964e998-cc70-11e4-b6e3-705681abff85"], ["created_at", "2015-03-17 06:39:50.464591"], ["updated_at", "2015-03-17 06:39:50.464591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/6964e998-cc70-11e4-b6e3-705681abff85/memberships" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"6964e998-cc70-11e4-b6e3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:50.469556' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-EWNEHPwo9iv9S2lgprBqTcbg2i-jdvI9YpbxeE2v6g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:50.471894"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:50.473578"], ["id", "69645e42-cc70-11e4-ba39-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6963403e-cc70-11e4-bb6e-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6963403e-cc70-11e4-bb6e-705681abff85"]] CACHE (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6963403e-cc70-11e4-bb6e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "6963403e-cc70-11e4-bb6e-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('6963403e-cc70-11e4-bb6e-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('6964e998-cc70-11e4-b6e3-705681abff85') Completed 200 OK in 28ms (Views: 12.2ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$nZo0iui8CTROUAR7Iqc4KOY7g2NVeXDj86bQyj1QiMBhYsf0Va5NG"], ["created_at", "2015-03-17 06:39:50.508170"], ["updated_at", "2015-03-17 06:39:50.508170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$jFo08CeZ0oHsuJMXMoMikOtHpVpizXpAlelrRGKYwj9fGRTwbYSP2"], ["created_at", "2015-03-17 06:39:50.514605"], ["updated_at", "2015-03-17 06:39:50.514605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.516401"], ["user_id", "696cd95a-cc70-11e4-a8cf-705681abff85"], ["created_at", "2015-03-17 06:39:50.517249"], ["updated_at", "2015-03-17 06:39:50.517249"], ["token", "2A9-t3YipGj4WENyDcFZwlQ4xTIzoVogNM4NpYrSPmk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.521299"], ["updated_at", "2015-03-17 06:39:50.521299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '696cd95a-cc70-11e4-a8cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '696ea5f0-cc70-11e4-bb29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "696cd95a-cc70-11e4-a8cf-705681abff85"], ["organization_id", "696ea5f0-cc70-11e4-bb29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.524668"], ["updated_at", "2015-03-17 06:39:50.524668"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '696da47a-cc70-11e4-a8cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '696ea5f0-cc70-11e4-bb29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "696da47a-cc70-11e4-a8cf-705681abff85"], ["organization_id", "696ea5f0-cc70-11e4-bb29-705681abff85"], ["created_at", "2015-03-17 06:39:50.528301"], ["updated_at", "2015-03-17 06:39:50.528301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$peplEDK.ehpiwtq51yGMM.IXP5H37Stt0t/6d7UtFV7pY2mG5srge"], ["created_at", "2015-03-17 06:39:50.539767"], ["updated_at", "2015-03-17 06:39:50.539767"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$bNJkWjLTr4MuA7jkICcMt.JEsbDuW/6./b8dvAEyiyHzkfMnrYZ1K"], ["created_at", "2015-03-17 06:39:50.546893"], ["updated_at", "2015-03-17 06:39:50.546893"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.550207"], ["user_id", "697194f4-cc70-11e4-9efd-705681abff85"], ["created_at", "2015-03-17 06:39:50.551849"], ["updated_at", "2015-03-17 06:39:50.551849"], ["token", "-egzYny5omws7ixPVwmImVLMWVnSvDKZkiaEMdxTuUE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.559819"], ["updated_at", "2015-03-17 06:39:50.559819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '697194f4-cc70-11e4-9efd-705681abff85' AND "clubhouse_memberships"."organization_id" = '69748b64-cc70-11e4-8700-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "697194f4-cc70-11e4-9efd-705681abff85"], ["organization_id", "69748b64-cc70-11e4-8700-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.563996"], ["updated_at", "2015-03-17 06:39:50.563996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6972aa6a-cc70-11e4-8517-705681abff85' AND "clubhouse_memberships"."organization_id" = '69748b64-cc70-11e4-8700-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6972aa6a-cc70-11e4-8517-705681abff85"], ["organization_id", "69748b64-cc70-11e4-8700-705681abff85"], ["created_at", "2015-03-17 06:39:50.567596"], ["updated_at", "2015-03-17 06:39:50.567596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/69752a42-cc70-11e4-a6be-705681abff85" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"69752a42-cc70-11e4-a6be-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:50.572826' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-egzYny5omws7ixPVwmImVLMWVnSvDKZkiaEMdxTuUE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:50.575005"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:50.576114"], ["id", "69735f46-cc70-11e4-a0f0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "697194f4-cc70-11e4-9efd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "697194f4-cc70-11e4-9efd-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "697194f4-cc70-11e4-9efd-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "697194f4-cc70-11e4-9efd-705681abff85"], ["id", "69752a42-cc70-11e4-a6be-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "69748b64-cc70-11e4-8700-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "697194f4-cc70-11e4-9efd-705681abff85"]] Completed 200 OK in 14ms (Views: 3.0ms | ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$VP5IcaY5r8OhNqs1IZJPb.OMjSpj4bMQ5ek2xYfBCis9ZOQ7/Esm."], ["created_at", "2015-03-17 06:39:50.594577"], ["updated_at", "2015-03-17 06:39:50.594577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$3jxYx.oWkx3XAZsUgqAO9eA/l1HZ7FjN98GySFGxSx7gPKd6btZwe"], ["created_at", "2015-03-17 06:39:50.600018"], ["updated_at", "2015-03-17 06:39:50.600018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.601857"], ["user_id", "6979df1a-cc70-11e4-9110-705681abff85"], ["created_at", "2015-03-17 06:39:50.602793"], ["updated_at", "2015-03-17 06:39:50.602793"], ["token", "J7GMFfM5vBfC9Yj6F3y5nua2DUGbm6QxK6_rBQBG0Lk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.615044"], ["updated_at", "2015-03-17 06:39:50.615044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6979df1a-cc70-11e4-9110-705681abff85' AND "clubhouse_memberships"."organization_id" = '697cfd3a-cc70-11e4-ad08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6979df1a-cc70-11e4-9110-705681abff85"], ["organization_id", "697cfd3a-cc70-11e4-ad08-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.619139"], ["updated_at", "2015-03-17 06:39:50.619139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '697aac38-cc70-11e4-8817-705681abff85' AND "clubhouse_memberships"."organization_id" = '697cfd3a-cc70-11e4-ad08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "697aac38-cc70-11e4-8817-705681abff85"], ["organization_id", "697cfd3a-cc70-11e4-ad08-705681abff85"], ["created_at", "2015-03-17 06:39:50.622823"], ["updated_at", "2015-03-17 06:39:50.622823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$SGCFbOzGsw9.QgsnRGUVdOTRpIxmFe4PSlgX1WZliBdv7z0CWkqBu"], ["created_at", "2015-03-17 06:39:50.635049"], ["updated_at", "2015-03-17 06:39:50.635049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$JTq3f.1pqYCt.JyNaFowZOgGgu9YqRsLNNmgDm3USQArhe2eiv.Vi"], ["created_at", "2015-03-17 06:39:50.639464"], ["updated_at", "2015-03-17 06:39:50.639464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.641599"], ["user_id", "69800098-cc70-11e4-873d-705681abff85"], ["created_at", "2015-03-17 06:39:50.642506"], ["updated_at", "2015-03-17 06:39:50.642506"], ["token", "12wZ9US9x5hJcSKuHqWeUd1xNZjbgzl6Du4SlUnNd5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.647891"], ["updated_at", "2015-03-17 06:39:50.647891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69800098-cc70-11e4-873d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6981fdb2-cc70-11e4-bced-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69800098-cc70-11e4-873d-705681abff85"], ["organization_id", "6981fdb2-cc70-11e4-bced-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.651562"], ["updated_at", "2015-03-17 06:39:50.651562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6980b70e-cc70-11e4-a6b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '6981fdb2-cc70-11e4-bced-705681abff85') LIMIT 1 SQL (12.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6980b70e-cc70-11e4-a6b2-705681abff85"], ["organization_id", "6981fdb2-cc70-11e4-bced-705681abff85"], ["created_at", "2015-03-17 06:39:50.654832"], ["updated_at", "2015-03-17 06:39:50.654832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:50.673238' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "12wZ9US9x5hJcSKuHqWeUd1xNZjbgzl6Du4SlUnNd5c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:50.674793"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:50.675839"], ["id", "69813f08-cc70-11e4-b794-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69800098-cc70-11e4-873d-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "69800098-cc70-11e4-873d-705681abff85"]] CACHE (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "69800098-cc70-11e4-873d-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "69800098-cc70-11e4-873d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('69800098-cc70-11e4-873d-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('6981fdb2-cc70-11e4-bced-705681abff85') Completed 200 OK in 13ms (Views: 3.2ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$NCRXlpdoeHPsJj0jOTMTQehXMW43ox.zfD.c3bxz/BcqumiMBo7ZK"], ["created_at", "2015-03-17 06:39:50.693103"], ["updated_at", "2015-03-17 06:39:50.693103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$huujMde2z0lpaq/9u2x9L.Wli6Z2uO1wU6jJIAFlcJwtIvB1UpYm2"], ["created_at", "2015-03-17 06:39:50.697553"], ["updated_at", "2015-03-17 06:39:50.697553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.699351"], ["user_id", "6988de7a-cc70-11e4-bf28-705681abff85"], ["created_at", "2015-03-17 06:39:50.700173"], ["updated_at", "2015-03-17 06:39:50.700173"], ["token", "mpwLaTTZQ88ZYJ9kiD4k2uRImvUOBcwVVcn0Z5PeW2M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.704439"], ["updated_at", "2015-03-17 06:39:50.704439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6988de7a-cc70-11e4-bf28-705681abff85' AND "clubhouse_memberships"."organization_id" = '698a9c7e-cc70-11e4-8120-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6988de7a-cc70-11e4-bf28-705681abff85"], ["organization_id", "698a9c7e-cc70-11e4-8120-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.708194"], ["updated_at", "2015-03-17 06:39:50.708194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6989887a-cc70-11e4-8841-705681abff85' AND "clubhouse_memberships"."organization_id" = '698a9c7e-cc70-11e4-8120-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6989887a-cc70-11e4-8841-705681abff85"], ["organization_id", "698a9c7e-cc70-11e4-8120-705681abff85"], ["created_at", "2015-03-17 06:39:50.711498"], ["updated_at", "2015-03-17 06:39:50.711498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Rm5/qGwCT8T5XSB6wFO7nOtGbtCKZPjPQKn7kKcGqhKs5j9VMUrZm"], ["created_at", "2015-03-17 06:39:50.721496"], ["updated_at", "2015-03-17 06:39:50.721496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ORqfmhEoGSa0jQJXn9t3rOLyXpv55dMmBpNPD.qslqsXOQfy80HYm"], ["created_at", "2015-03-17 06:39:50.726492"], ["updated_at", "2015-03-17 06:39:50.726492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.728433"], ["user_id", "698d329a-cc70-11e4-9a7f-705681abff85"], ["created_at", "2015-03-17 06:39:50.729425"], ["updated_at", "2015-03-17 06:39:50.729425"], ["token", "oJKqNRCge82eW86ywbrVY5SVqKE4iwIxdJ-j7iFAxbY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.733994"], ["updated_at", "2015-03-17 06:39:50.733994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '698d329a-cc70-11e4-9a7f-705681abff85' AND "clubhouse_memberships"."organization_id" = '698f1b00-cc70-11e4-8c9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "698d329a-cc70-11e4-9a7f-705681abff85"], ["organization_id", "698f1b00-cc70-11e4-8c9c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.737667"], ["updated_at", "2015-03-17 06:39:50.737667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '698dfa72-cc70-11e4-b64a-705681abff85' AND "clubhouse_memberships"."organization_id" = '698f1b00-cc70-11e4-8c9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "698dfa72-cc70-11e4-b64a-705681abff85"], ["organization_id", "698f1b00-cc70-11e4-8c9c-705681abff85"], ["created_at", "2015-03-17 06:39:50.740729"], ["updated_at", "2015-03-17 06:39:50.740729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$CXQrIh509K.wHrGvcKLIMOQ/rjerWrtNtFTPpgaaNIoxC8QF/5cZ2"], ["created_at", "2015-03-17 06:39:50.745246"], ["updated_at", "2015-03-17 06:39:50.745246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.747195"], ["user_id", "6990d616-cc70-11e4-9dae-705681abff85"], ["created_at", "2015-03-17 06:39:50.748316"], ["updated_at", "2015-03-17 06:39:50.748316"], ["token", "QseI4A5CB1ed_r4K7o4kvSPE0qJeiv9JWBy7cnYMUig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '698f1b00-cc70-11e4-8c9c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "698f1b00-cc70-11e4-8c9c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.759779"], ["updated_at", "2015-03-17 06:39:50.759779"], ["token", "oixe3okut5PcJRLkLG50ztd8ALd6BdlnFsCoGn2PViQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$4XPHN0G8j.PuHT2BIcyBAOfBqPjajECEIa00H.RNnQuYhPSycAU.e"], ["created_at", "2015-03-17 06:39:50.770771"], ["updated_at", "2015-03-17 06:39:50.770771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$p//epH30pj9iiVlLrVZg/uz6I0IWHgKhArA7pVjeKx.AhPePl54fK"], ["created_at", "2015-03-17 06:39:50.775360"], ["updated_at", "2015-03-17 06:39:50.775360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.776894"], ["user_id", "6994b89e-cc70-11e4-99e6-705681abff85"], ["created_at", "2015-03-17 06:39:50.777723"], ["updated_at", "2015-03-17 06:39:50.777723"], ["token", "RIP-uuAR1eLdQfJXmCtWA6fT_cZLb780LNV8GUdd_ks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.781543"], ["updated_at", "2015-03-17 06:39:50.781543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6994b89e-cc70-11e4-99e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '699664d2-cc70-11e4-9b6e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6994b89e-cc70-11e4-99e6-705681abff85"], ["organization_id", "699664d2-cc70-11e4-9b6e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.785636"], ["updated_at", "2015-03-17 06:39:50.785636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6995678a-cc70-11e4-b086-705681abff85' AND "clubhouse_memberships"."organization_id" = '699664d2-cc70-11e4-9b6e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6995678a-cc70-11e4-b086-705681abff85"], ["organization_id", "699664d2-cc70-11e4-9b6e-705681abff85"], ["created_at", "2015-03-17 06:39:50.789036"], ["updated_at", "2015-03-17 06:39:50.789036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Dy9/w0FeV8CEQUeLbHiagO5nCoCuSoAHXreYjOhX5nvCDf7f/Xs2W"], ["created_at", "2015-03-17 06:39:50.793766"], ["updated_at", "2015-03-17 06:39:50.793766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.795768"], ["user_id", "69984004-cc70-11e4-a919-705681abff85"], ["created_at", "2015-03-17 06:39:50.796562"], ["updated_at", "2015-03-17 06:39:50.796562"], ["token", "cBxrX_VGQC5XLhUctQCwUGy-4t39QurseSoPDd0g130"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '699664d2-cc70-11e4-9b6e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "699664d2-cc70-11e4-9b6e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.800540"], ["updated_at", "2015-03-17 06:39:50.800540"], ["token", "u3034hKmfSbaphxUrAsTDKLdsMQLuRSuNLnauEfFnlo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:50.806481' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cBxrX_VGQC5XLhUctQCwUGy-4t39QurseSoPDd0g130"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:50.808267"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:50.809500"], ["id", "6998ab20-cc70-11e4-8005-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69984004-cc70-11e4-a919-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "69984004-cc70-11e4-a919-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (11.7ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 24ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$6XeIuvzneKuTc0TB9HP4rOXXM8mmwYqLUGrosRhfL8Rh.aHRo.tD6"], ["created_at", "2015-03-17 06:39:50.838183"], ["updated_at", "2015-03-17 06:39:50.838183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$wDniVCZhBLA.n749EKwllOvuBhUS9Q80CjY2N9h3Qw7VgCLhDfTNW"], ["created_at", "2015-03-17 06:39:50.842490"], ["updated_at", "2015-03-17 06:39:50.842490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.843943"], ["user_id", "699f0290-cc70-11e4-a22e-705681abff85"], ["created_at", "2015-03-17 06:39:50.845020"], ["updated_at", "2015-03-17 06:39:50.845020"], ["token", "fe_3CLGXVIdzKpR2yYbUHvMDVHeFKP4YuvjWPpMGSc8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.849646"], ["updated_at", "2015-03-17 06:39:50.849646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '699f0290-cc70-11e4-a22e-705681abff85' AND "clubhouse_memberships"."organization_id" = '69a0c8d2-cc70-11e4-ad38-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "699f0290-cc70-11e4-a22e-705681abff85"], ["organization_id", "69a0c8d2-cc70-11e4-ad38-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.854863"], ["updated_at", "2015-03-17 06:39:50.854863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '699fa3bc-cc70-11e4-ba0c-705681abff85' AND "clubhouse_memberships"."organization_id" = '69a0c8d2-cc70-11e4-ad38-705681abff85') LIMIT 1 SQL (12.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "699fa3bc-cc70-11e4-ba0c-705681abff85"], ["organization_id", "69a0c8d2-cc70-11e4-ad38-705681abff85"], ["created_at", "2015-03-17 06:39:50.858999"], ["updated_at", "2015-03-17 06:39:50.858999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$Xl.JW0J/anh9ivn/t0KQoO4QqKqGaTfNZPQKBpxWLklvuYAs2hy9S"], ["created_at", "2015-03-17 06:39:50.876974"], ["updated_at", "2015-03-17 06:39:50.876974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.879070"], ["user_id", "69a4f13c-cc70-11e4-b3bf-705681abff85"], ["created_at", "2015-03-17 06:39:50.879912"], ["updated_at", "2015-03-17 06:39:50.879912"], ["token", "lH2IyvptDt-AFrdWKxaGRgIhD1A04kk6mys-cLu10hw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '69a0c8d2-cc70-11e4-ad38-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "69a0c8d2-cc70-11e4-ad38-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.884284"], ["updated_at", "2015-03-17 06:39:50.884284"], ["token", "rB4LySlI57bIkm_dUbliXQG0dz_dlSF4Uu2lJe3eeCI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"rB4LySlI57bIkm_dUbliXQG0dz_dlSF4Uu2lJe3eeCI", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:50.890575' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lH2IyvptDt-AFrdWKxaGRgIhD1A04kk6mys-cLu10hw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:50.892809"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:50.894509"], ["id", "69a57198-cc70-11e4-a5ff-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69a4f13c-cc70-11e4-b3bf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "69a4f13c-cc70-11e4-b3bf-705681abff85"]]  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "rB4LySlI57bIkm_dUbliXQG0dz_dlSF4Uu2lJe3eeCI"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "69a0c8d2-cc70-11e4-ad38-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "69a0c8d2-cc70-11e4-ad38-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69a4f13c-cc70-11e4-b3bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '69a0c8d2-cc70-11e4-ad38-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69a4f13c-cc70-11e4-b3bf-705681abff85"], ["admin", "t"], ["organization_id", "69a0c8d2-cc70-11e4-ad38-705681abff85"], ["created_at", "2015-03-17 06:39:50.908065"], ["updated_at", "2015-03-17 06:39:50.908065"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "69a6138c-cc70-11e4-88f5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 23ms (Views: 1.5ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$dEqtyUY9rc5InBS7FLtulOI8ZyYN20ewB6KWQeUOUqXB4Btf19Y0i"], ["created_at", "2015-03-17 06:39:50.920550"], ["updated_at", "2015-03-17 06:39:50.920550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$VS9/LSiy0Svb3/PVDPKKve7SyVXVS1IVViGYHtuRMHzdEyf/ryN4W"], ["created_at", "2015-03-17 06:39:50.926090"], ["updated_at", "2015-03-17 06:39:50.926090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.927821"], ["user_id", "69ab9898-cc70-11e4-829d-705681abff85"], ["created_at", "2015-03-17 06:39:50.928596"], ["updated_at", "2015-03-17 06:39:50.928596"], ["token", "vRe5r428VKu7WZPH7mglwwBz-kuI_cYGU9YV5XHbLZo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.932226"], ["updated_at", "2015-03-17 06:39:50.932226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69ab9898-cc70-11e4-829d-705681abff85' AND "clubhouse_memberships"."organization_id" = '69ad566a-cc70-11e4-a552-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69ab9898-cc70-11e4-829d-705681abff85"], ["organization_id", "69ad566a-cc70-11e4-a552-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.935783"], ["updated_at", "2015-03-17 06:39:50.935783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69ac6a16-cc70-11e4-b482-705681abff85' AND "clubhouse_memberships"."organization_id" = '69ad566a-cc70-11e4-a552-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "69ac6a16-cc70-11e4-b482-705681abff85"], ["organization_id", "69ad566a-cc70-11e4-a552-705681abff85"], ["created_at", "2015-03-17 06:39:50.939005"], ["updated_at", "2015-03-17 06:39:50.939005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$6g3hmcaMH4i1BSgv5E1vFel4IU4xmnFdV7jJ4i60J4uJitMBHhlhm"], ["created_at", "2015-03-17 06:39:50.950518"], ["updated_at", "2015-03-17 06:39:50.950518"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$fZ3ECG.sDRmfzHT9NiaGA.xholonpK3CvV3JgEEZlphqAyYBdi3Em"], ["created_at", "2015-03-17 06:39:50.958171"], ["updated_at", "2015-03-17 06:39:50.958171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.960422"], ["user_id", "69b04118-cc70-11e4-bcc4-705681abff85"], ["created_at", "2015-03-17 06:39:50.961308"], ["updated_at", "2015-03-17 06:39:50.961308"], ["token", "fBoEqhy4dRYU7Je1eMI_U3jAEGMKZQ7gXupFDHT-pRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:50.964867"], ["updated_at", "2015-03-17 06:39:50.964867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69b04118-cc70-11e4-bcc4-705681abff85' AND "clubhouse_memberships"."organization_id" = '69b250d4-cc70-11e4-a8da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69b04118-cc70-11e4-bcc4-705681abff85"], ["organization_id", "69b250d4-cc70-11e4-a8da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:50.968287"], ["updated_at", "2015-03-17 06:39:50.968287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69b15a58-cc70-11e4-8971-705681abff85' AND "clubhouse_memberships"."organization_id" = '69b250d4-cc70-11e4-a8da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "69b15a58-cc70-11e4-8971-705681abff85"], ["organization_id", "69b250d4-cc70-11e4-a8da-705681abff85"], ["created_at", "2015-03-17 06:39:50.971940"], ["updated_at", "2015-03-17 06:39:50.971940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/69b2ddba-cc70-11e4-a15b-705681abff85" for 127.0.0.1 at 2015-03-16 23:39:50 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"69b2ddba-cc70-11e4-a15b-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:50.976774' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fBoEqhy4dRYU7Je1eMI_U3jAEGMKZQ7gXupFDHT-pRg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:50.978795"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:50.980164"], ["id", "69b1d230-cc70-11e4-9e60-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69b04118-cc70-11e4-bcc4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "69b04118-cc70-11e4-bcc4-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$6Lp0ya9MZOW15lMiQAeT/.PATLHRMTKdxYTO51BYiDAZ3DNE7/UXa"], ["created_at", "2015-03-17 06:39:50.992743"], ["updated_at", "2015-03-17 06:39:50.992743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$xv1QOLaMjToK9p46uJkquOv.g3fnmeKxeZxeXwi9KnG6XkzDL6Nle"], ["created_at", "2015-03-17 06:39:50.997045"], ["updated_at", "2015-03-17 06:39:50.997045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:50.998926"], ["user_id", "69b69608-cc70-11e4-a2f5-705681abff85"], ["created_at", "2015-03-17 06:39:50.999755"], ["updated_at", "2015-03-17 06:39:50.999755"], ["token", "um40spaNJepPjt1vAdyWK8WRTqXJzlG6Wb5mUISuuF0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:51.003318"], ["updated_at", "2015-03-17 06:39:51.003318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69b69608-cc70-11e4-a2f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '69b83738-cc70-11e4-9ce1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69b69608-cc70-11e4-a2f5-705681abff85"], ["organization_id", "69b83738-cc70-11e4-9ce1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:51.007400"], ["updated_at", "2015-03-17 06:39:51.007400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69b7398c-cc70-11e4-b2cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '69b83738-cc70-11e4-9ce1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "69b7398c-cc70-11e4-b2cf-705681abff85"], ["organization_id", "69b83738-cc70-11e4-9ce1-705681abff85"], ["created_at", "2015-03-17 06:39:51.011144"], ["updated_at", "2015-03-17 06:39:51.011144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/69b96aae-cc70-11e4-9499-705681abff85" for 127.0.0.1 at 2015-03-16 23:39:51 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"69b96aae-cc70-11e4-9499-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:51.016858' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "um40spaNJepPjt1vAdyWK8WRTqXJzlG6Wb5mUISuuF0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:51.018331"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:51.019349"], ["id", "69b7aec6-cc70-11e4-b0e8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69b69608-cc70-11e4-a2f5-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "69b69608-cc70-11e4-a2f5-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$YOwThNQ/Tt.QinwsalVl9uTq9UbVuoUOL..A.bz7xMRvQ8oRXLE0K"], ["created_at", "2015-03-17 06:39:51.036517"], ["updated_at", "2015-03-17 06:39:51.036517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$9LiHqUoQpN549WvuRBUoweAJRL1V4Sfwm7.e1H4fES1usbAdDjiC2"], ["created_at", "2015-03-17 06:39:51.041844"], ["updated_at", "2015-03-17 06:39:51.041844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:51.043710"], ["user_id", "69bd4444-cc70-11e4-b019-705681abff85"], ["created_at", "2015-03-17 06:39:51.044510"], ["updated_at", "2015-03-17 06:39:51.044510"], ["token", "lfzplZo0lb8NILviTmnv58nGDKTinf0Ls8IkwfATC_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:51.049554"], ["updated_at", "2015-03-17 06:39:51.049554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69bd4444-cc70-11e4-b019-705681abff85' AND "clubhouse_memberships"."organization_id" = '69bf4f1e-cc70-11e4-b51f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69bd4444-cc70-11e4-b019-705681abff85"], ["organization_id", "69bf4f1e-cc70-11e4-b51f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:51.054153"], ["updated_at", "2015-03-17 06:39:51.054153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69be1860-cc70-11e4-bd93-705681abff85' AND "clubhouse_memberships"."organization_id" = '69bf4f1e-cc70-11e4-b51f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "69be1860-cc70-11e4-bd93-705681abff85"], ["organization_id", "69bf4f1e-cc70-11e4-b51f-705681abff85"], ["created_at", "2015-03-17 06:39:51.057922"], ["updated_at", "2015-03-17 06:39:51.057922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (5.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$LdftoRR6W6yPWm2lRX5JdOeu2R02vcGeaNLcveRl2aljWh.4fgWXy"], ["created_at", "2015-03-17 06:39:51.062902"], ["updated_at", "2015-03-17 06:39:51.062902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:51.071621"], ["user_id", "69c14b20-cc70-11e4-86f4-705681abff85"], ["created_at", "2015-03-17 06:39:51.073105"], ["updated_at", "2015-03-17 06:39:51.073105"], ["token", "PBYmx3tkGUf0IvBZ0XSsgu8EImDAT6ePYV6rOi9yJAg"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '69bf4f1e-cc70-11e4-b51f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "69bf4f1e-cc70-11e4-b51f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:51.092802"], ["updated_at", "2015-03-17 06:39:51.092802"], ["token", "XQFTNukM3hulysDmHY0rYCUxP8oiz7FggSm_nUntvEI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-16 23:39:51 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$KmdbUrM0qIVd.VYPIHKIO.1NKJIg46m8gQ2uKN.UB1z41C99YQxXy"], ["created_at", "2015-03-17 06:39:51.106200"], ["updated_at", "2015-03-17 06:39:51.106200"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$LpdCkmB5qkS5aIFXIK8qB.hvHBW7QkoIambmqd8jfKy0Env5NCtI."], ["created_at", "2015-03-17 06:39:51.113728"], ["updated_at", "2015-03-17 06:39:51.113728"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:51.116831"], ["user_id", "69c7fe48-cc70-11e4-ad5d-705681abff85"], ["created_at", "2015-03-17 06:39:51.118771"], ["updated_at", "2015-03-17 06:39:51.118771"], ["token", "Zsn7tR9MBkoTlCBEpwgeZ3Qf3RmQqGCVogx08LxxlqE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:51.126119"], ["updated_at", "2015-03-17 06:39:51.126119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69c7fe48-cc70-11e4-ad5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '69caf1f2-cc70-11e4-bfd9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69c7fe48-cc70-11e4-ad5d-705681abff85"], ["organization_id", "69caf1f2-cc70-11e4-bfd9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:51.129734"], ["updated_at", "2015-03-17 06:39:51.129734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69c92606-cc70-11e4-9703-705681abff85' AND "clubhouse_memberships"."organization_id" = '69caf1f2-cc70-11e4-bfd9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "69c92606-cc70-11e4-9703-705681abff85"], ["organization_id", "69caf1f2-cc70-11e4-bfd9-705681abff85"], ["created_at", "2015-03-17 06:39:51.133261"], ["updated_at", "2015-03-17 06:39:51.133261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$KCMjRGfi17K0hz9vU8t0Gu.vq1C5WFRMKEDbajOfOc927/9kGDB4C"], ["created_at", "2015-03-17 06:39:51.138677"], ["updated_at", "2015-03-17 06:39:51.138677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:51.140724"], ["user_id", "69ccddc8-cc70-11e4-b086-705681abff85"], ["created_at", "2015-03-17 06:39:51.141707"], ["updated_at", "2015-03-17 06:39:51.141707"], ["token", "WjuR6cBOksZ5Mdlavu-6nGT5b2gQAvUxl-KGolcFV7w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '69caf1f2-cc70-11e4-bfd9-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "69caf1f2-cc70-11e4-bfd9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:51.146562"], ["updated_at", "2015-03-17 06:39:51.146562"], ["token", "WpvF_s8xA4j-D5Fhrs3qN74gH9zEr2lU4-zFDSYHVZE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/69caf1f2-cc70-11e4-bfd9-705681abff85/memberships" for 127.0.0.1 at 2015-03-16 23:39:51 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"69caf1f2-cc70-11e4-bfd9-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:51.154316' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WjuR6cBOksZ5Mdlavu-6nGT5b2gQAvUxl-KGolcFV7w"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:51.156011"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:51.157268"], ["id", "69cd63e2-cc70-11e4-a297-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69ccddc8-cc70-11e4-b086-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "69ccddc8-cc70-11e4-b086-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$UaqQVV/049CMK8oRn12gQuyjNYu.g70N1bNxc29KlKh4RfxiZOOS2"], ["created_at", "2015-03-17 06:39:51.167649"], ["updated_at", "2015-03-17 06:39:51.167649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$es82l3TVWynJg21oz2z/UOZ60DuTJZEKXiIdBaseiHmiBge/dNrC6"], ["created_at", "2015-03-17 06:39:51.172203"], ["updated_at", "2015-03-17 06:39:51.172203"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:51.174688"], ["user_id", "69d14520-cc70-11e4-85cb-705681abff85"], ["created_at", "2015-03-17 06:39:51.175583"], ["updated_at", "2015-03-17 06:39:51.175583"], ["token", "s43_by_aErQYM2L8I2nv82ds-fmH4w2q8QtTNk2ul1o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:39:51.248119"], ["updated_at", "2015-03-17 06:39:51.248119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69d14520-cc70-11e4-85cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '69dda22a-cc70-11e4-a14b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69d14520-cc70-11e4-85cb-705681abff85"], ["organization_id", "69dda22a-cc70-11e4-a14b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:51.252433"], ["updated_at", "2015-03-17 06:39:51.252433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69d1fc7c-cc70-11e4-acee-705681abff85' AND "clubhouse_memberships"."organization_id" = '69dda22a-cc70-11e4-a14b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "69d1fc7c-cc70-11e4-acee-705681abff85"], ["organization_id", "69dda22a-cc70-11e4-a14b-705681abff85"], ["created_at", "2015-03-17 06:39:51.255760"], ["updated_at", "2015-03-17 06:39:51.255760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$Y9T30xE1QK1B5T7NzEm2uu/pd2pKNpvBynk8LZQW..2vL5OXQB6.a"], ["created_at", "2015-03-17 06:39:51.260496"], ["updated_at", "2015-03-17 06:39:51.260496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:39:51.262498"], ["user_id", "69df746a-cc70-11e4-afb3-705681abff85"], ["created_at", "2015-03-17 06:39:51.263429"], ["updated_at", "2015-03-17 06:39:51.263429"], ["token", "zjNVhmK1UbN0r2CqPRZwthdGbHnz-rZVLndIpuH7Ivw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '69dda22a-cc70-11e4-a14b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "69dda22a-cc70-11e4-a14b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:39:51.267445"], ["updated_at", "2015-03-17 06:39:51.267445"], ["token", "pkWCxN1meR9WQev6oHEqIoPE2DIGVEx1-rrucHj4cCk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/69dda22a-cc70-11e4-a14b-705681abff85/memberships" for 127.0.0.1 at 2015-03-16 23:39:51 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"pkWCxN1meR9WQev6oHEqIoPE2DIGVEx1-rrucHj4cCk", "organization_id"=>"69dda22a-cc70-11e4-a14b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:39:51.273498' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zjNVhmK1UbN0r2CqPRZwthdGbHnz-rZVLndIpuH7Ivw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:39:51.275081"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:39:51.276084"], ["id", "69dfed50-cc70-11e4-867d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69df746a-cc70-11e4-afb3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "69df746a-cc70-11e4-afb3-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "pkWCxN1meR9WQev6oHEqIoPE2DIGVEx1-rrucHj4cCk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "69dda22a-cc70-11e4-a14b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "69dda22a-cc70-11e4-a14b-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69df746a-cc70-11e4-afb3-705681abff85' AND "clubhouse_memberships"."organization_id" = '69dda22a-cc70-11e4-a14b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69df746a-cc70-11e4-afb3-705681abff85"], ["admin", "t"], ["organization_id", "69dda22a-cc70-11e4-a14b-705681abff85"], ["created_at", "2015-03-17 06:39:51.284028"], ["updated_at", "2015-03-17 06:39:51.284028"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "69e0831e-cc70-11e4-a25f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.1ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$1Xuc3/tOFm4ajcTkZz.v8.JyMAaXkjLLQ1RCGdBZ6xZ2srY6iw5g."], ["created_at", "2015-03-17 06:40:20.330169"], ["updated_at", "2015-03-17 06:40:20.330169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$5eAI/K35EK0yijpV02MgT.X2Gx.twtWEjPSo6jKb7YA2dJbM/Fnb2"], ["created_at", "2015-03-17 06:40:20.359930"], ["updated_at", "2015-03-17 06:40:20.359930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.369660"], ["user_id", "7b36df0a-cc70-11e4-ba9f-705681abff85"], ["created_at", "2015-03-17 06:40:20.375740"], ["updated_at", "2015-03-17 06:40:20.375740"], ["token", "xfBnTRScP1jWRbkyFi1j1Zg6QzCQk2rstdMq2KcZkzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.385188"], ["updated_at", "2015-03-17 06:40:20.385188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b36df0a-cc70-11e4-ba9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b3b8f78-cc70-11e4-9d49-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b36df0a-cc70-11e4-ba9f-705681abff85"], ["organization_id", "7b3b8f78-cc70-11e4-9d49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.396718"], ["updated_at", "2015-03-17 06:40:20.396718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b37a944-cc70-11e4-b4f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b3b8f78-cc70-11e4-9d49-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b37a944-cc70-11e4-b4f8-705681abff85"], ["organization_id", "7b3b8f78-cc70-11e4-9d49-705681abff85"], ["created_at", "2015-03-17 06:40:20.401151"], ["updated_at", "2015-03-17 06:40:20.401151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-16 23:40:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:20.426350' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xfBnTRScP1jWRbkyFi1j1Zg6QzCQk2rstdMq2KcZkzA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:20.433986"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:20.435511"], ["id", "7b3a2dd6-cc70-11e4-9e5e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b36df0a-cc70-11e4-ba9f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b36df0a-cc70-11e4-ba9f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "7b3b8f78-cc70-11e4-9d49-705681abff85"]] User Load (6.7ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('7b36df0a-cc70-11e4-ba9f-705681abff85', '7b37a944-cc70-11e4-b4f8-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('7b3b8f78-cc70-11e4-9d49-705681abff85') Completed 200 OK in 52ms (Views: 12.2ms | ActiveRecord: 9.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$5p/ANt8xKVtRKFZ6EBi5Bu/92ctvnUCTpH/0n262/XtuypUH25pf2"], ["created_at", "2015-03-17 06:40:20.488027"], ["updated_at", "2015-03-17 06:40:20.488027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$figIKGS6GaZFONi2Xm3YFOQf2z4DjYDrMsLJ1gYGI0iSSxByvbFM."], ["created_at", "2015-03-17 06:40:20.493612"], ["updated_at", "2015-03-17 06:40:20.493612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.495341"], ["user_id", "7b4b4242-cc70-11e4-880e-705681abff85"], ["created_at", "2015-03-17 06:40:20.496379"], ["updated_at", "2015-03-17 06:40:20.496379"], ["token", "pJq0EsUQlaMohdavm4qe0YeReuRu9j44qjWMlxMZ134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.500208"], ["updated_at", "2015-03-17 06:40:20.500208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b4b4242-cc70-11e4-880e-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b4d0e60-cc70-11e4-8e6d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b4b4242-cc70-11e4-880e-705681abff85"], ["organization_id", "7b4d0e60-cc70-11e4-8e6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.503570"], ["updated_at", "2015-03-17 06:40:20.503570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b4c11ae-cc70-11e4-8508-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b4d0e60-cc70-11e4-8e6d-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b4c11ae-cc70-11e4-8508-705681abff85"], ["organization_id", "7b4d0e60-cc70-11e4-8e6d-705681abff85"], ["created_at", "2015-03-17 06:40:20.508661"], ["updated_at", "2015-03-17 06:40:20.508661"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-16 23:40:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$llYnC9aODtYq7BGuCL7qg.Ba5QyZXsYWYhymP7TV5zq0X3dpEO7jm"], ["created_at", "2015-03-17 06:40:20.540390"], ["updated_at", "2015-03-17 06:40:20.540390"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$FKFN7PYlfYHCMBvOEb2JQeEW4MD/F8oDMcDRNu1iPEXN7KhkQo/d."], ["created_at", "2015-03-17 06:40:20.550206"], ["updated_at", "2015-03-17 06:40:20.550206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.555995"], ["user_id", "7b536026-cc70-11e4-bf12-705681abff85"], ["created_at", "2015-03-17 06:40:20.557558"], ["updated_at", "2015-03-17 06:40:20.557558"], ["token", "WHz2dLtR4qXMdLOQPbzuq7-dbeglUJWsKeyrP1S3KrU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.571785"], ["updated_at", "2015-03-17 06:40:20.571785"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b536026-cc70-11e4-bf12-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b581710-cc70-11e4-a5f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b536026-cc70-11e4-bf12-705681abff85"], ["organization_id", "7b581710-cc70-11e4-a5f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.577227"], ["updated_at", "2015-03-17 06:40:20.577227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b54d6c2-cc70-11e4-bb5f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b581710-cc70-11e4-a5f2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b54d6c2-cc70-11e4-bb5f-705681abff85"], ["organization_id", "7b581710-cc70-11e4-a5f2-705681abff85"], ["created_at", "2015-03-17 06:40:20.581932"], ["updated_at", "2015-03-17 06:40:20.581932"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7b581710-cc70-11e4-a5f2-705681abff85/memberships" for 127.0.0.1 at 2015-03-16 23:40:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"7b581710-cc70-11e4-a5f2-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:20.588001' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WHz2dLtR4qXMdLOQPbzuq7-dbeglUJWsKeyrP1S3KrU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:20.589472"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:20.590453"], ["id", "7b567dc4-cc70-11e4-96a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b536026-cc70-11e4-bf12-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b536026-cc70-11e4-bf12-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7b581710-cc70-11e4-a5f2-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "7b581710-cc70-11e4-a5f2-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('7b536026-cc70-11e4-bf12-705681abff85', '7b54d6c2-cc70-11e4-bb5f-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('7b581710-cc70-11e4-a5f2-705681abff85') Completed 200 OK in 13ms (Views: 4.4ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Qz5/eUw.Vkh5sKOBXTDC2eXAMI2uYRwzAAUUjW2KK0zlYQk2G2aI2"], ["created_at", "2015-03-17 06:40:20.617166"], ["updated_at", "2015-03-17 06:40:20.617166"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$OF5yDtYQty77DhGgjDrtxu5/2KhIBLbOF3.eQ6cgd27sNbTc7n.hO"], ["created_at", "2015-03-17 06:40:20.634635"], ["updated_at", "2015-03-17 06:40:20.634635"]]  (3.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.644635"], ["user_id", "7b5f6984-cc70-11e4-88f9-705681abff85"], ["created_at", "2015-03-17 06:40:20.645605"], ["updated_at", "2015-03-17 06:40:20.645605"], ["token", "k2h8T0eAXF95YQxy-uHOGKuQDpBNPHHL6M9nCDpIroA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.650475"], ["updated_at", "2015-03-17 06:40:20.650475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b5f6984-cc70-11e4-88f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b641952-cc70-11e4-9f7c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b5f6984-cc70-11e4-88f9-705681abff85"], ["organization_id", "7b641952-cc70-11e4-9f7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.655776"], ["updated_at", "2015-03-17 06:40:20.655776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b623150-cc70-11e4-bfa8-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b641952-cc70-11e4-9f7c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b623150-cc70-11e4-bfa8-705681abff85"], ["organization_id", "7b641952-cc70-11e4-9f7c-705681abff85"], ["created_at", "2015-03-17 06:40:20.662657"], ["updated_at", "2015-03-17 06:40:20.662657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-16 23:40:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$kU4TkzQFnwmVifvt9KP9QuZvhUw26pZkIa18.qlPng1sQsq47bvw6"], ["created_at", "2015-03-17 06:40:20.677192"], ["updated_at", "2015-03-17 06:40:20.677192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ydNwljo4dUzSX69GIpEkVO/6FTvYZYPITuz8DM.5dIZEKcSc7TNki"], ["created_at", "2015-03-17 06:40:20.682326"], ["updated_at", "2015-03-17 06:40:20.682326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.684214"], ["user_id", "7b681cdc-cc70-11e4-81ac-705681abff85"], ["created_at", "2015-03-17 06:40:20.685403"], ["updated_at", "2015-03-17 06:40:20.685403"], ["token", "29FESd5phQsHBwrZ8gkLEH7XWIWD1lPRVxpQjMTOSAU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.693494"], ["updated_at", "2015-03-17 06:40:20.693494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b681cdc-cc70-11e4-81ac-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b6aa4d4-cc70-11e4-82b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b681cdc-cc70-11e4-81ac-705681abff85"], ["organization_id", "7b6aa4d4-cc70-11e4-82b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.698007"], ["updated_at", "2015-03-17 06:40:20.698007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b68ddca-cc70-11e4-84c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b6aa4d4-cc70-11e4-82b7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b68ddca-cc70-11e4-84c9-705681abff85"], ["organization_id", "7b6aa4d4-cc70-11e4-82b7-705681abff85"], ["created_at", "2015-03-17 06:40:20.702946"], ["updated_at", "2015-03-17 06:40:20.702946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$DfWSH21J/neBSwkj.BUJAuzrGhxzKLFQ99iaTs8LnZHs5/XGoAkuy"], ["created_at", "2015-03-17 06:40:20.710969"], ["updated_at", "2015-03-17 06:40:20.710969"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.714553"], ["user_id", "7b6d4ce8-cc70-11e4-b9c1-705681abff85"], ["created_at", "2015-03-17 06:40:20.717186"], ["updated_at", "2015-03-17 06:40:20.717186"], ["token", "HkuwdJsAxKey1tcErOH70kHxu_ccNcuRZFTgKbBGxgc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '7b6aa4d4-cc70-11e4-82b7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "7b6aa4d4-cc70-11e4-82b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.734300"], ["updated_at", "2015-03-17 06:40:20.734300"], ["token", "lmAndBpuHcjYjIDSpRX5L5UCwIWiSlMuuWAWekB4lrk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-16 23:40:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$7XkwK8cwvC1InhdZDk5MieplDkwr9AVK7ReqdDOjZjmQkozXHyP8K"], ["created_at", "2015-03-17 06:40:20.746852"], ["updated_at", "2015-03-17 06:40:20.746852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$pAAmQq8JF4DySdwvaLdqZuTjwEy/SQ0Bb5umZKj/CGcesU9b5BH7e"], ["created_at", "2015-03-17 06:40:20.751226"], ["updated_at", "2015-03-17 06:40:20.751226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.752814"], ["user_id", "7b72b476-cc70-11e4-91e2-705681abff85"], ["created_at", "2015-03-17 06:40:20.753586"], ["updated_at", "2015-03-17 06:40:20.753586"], ["token", "4hSbwiPL3k7LFwMynoAkOR5JiDB7iNfGjng-AsZIqUI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.757232"], ["updated_at", "2015-03-17 06:40:20.757232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b72b476-cc70-11e4-91e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b74498a-cc70-11e4-b18c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b72b476-cc70-11e4-91e2-705681abff85"], ["organization_id", "7b74498a-cc70-11e4-b18c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.760969"], ["updated_at", "2015-03-17 06:40:20.760969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b735cbe-cc70-11e4-b175-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b74498a-cc70-11e4-b18c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b735cbe-cc70-11e4-b175-705681abff85"], ["organization_id", "7b74498a-cc70-11e4-b18c-705681abff85"], ["created_at", "2015-03-17 06:40:20.764336"], ["updated_at", "2015-03-17 06:40:20.764336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$28M01FDIrFtfZdSDsg2RG.x/Qwa2Gf9CJ3J4VdFxJSgy7lXGzY4Uu"], ["created_at", "2015-03-17 06:40:20.769366"], ["updated_at", "2015-03-17 06:40:20.769366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.771310"], ["user_id", "7b76293a-cc70-11e4-ab93-705681abff85"], ["created_at", "2015-03-17 06:40:20.772140"], ["updated_at", "2015-03-17 06:40:20.772140"], ["token", "P_Fuz4FYlQTxMI8cFZE0iks881fnJpTCF4DS2x9UEbc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '7b74498a-cc70-11e4-b18c-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "7b74498a-cc70-11e4-b18c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.776389"], ["updated_at", "2015-03-17 06:40:20.776389"], ["token", "oYTg86ZuBOy0zMF8Nq8AFgmcdf4oQwq2qAAnqYTEV3E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-16 23:40:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:20.794011' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "P_Fuz4FYlQTxMI8cFZE0iks881fnJpTCF4DS2x9UEbc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:20.796061"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:20.797921"], ["id", "7b769f50-cc70-11e4-b5d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b76293a-cc70-11e4-ab93-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b76293a-cc70-11e4-ab93-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$w.uXKWz9icZBw9ATF7BUxeJ7XksZfXFgksW2MY0Vmlqr8dx5AH.im"], ["created_at", "2015-03-17 06:40:20.812538"], ["updated_at", "2015-03-17 06:40:20.812538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$wxWKzJoF0FlXFf6Zt0Bq1eDXxaY4ibSDcC9NtfM2e1qIXzN3EDIOG"], ["created_at", "2015-03-17 06:40:20.816736"], ["updated_at", "2015-03-17 06:40:20.816736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.818239"], ["user_id", "7b7cba70-cc70-11e4-aff5-705681abff85"], ["created_at", "2015-03-17 06:40:20.819009"], ["updated_at", "2015-03-17 06:40:20.819009"], ["token", "2kn37ZUiN4tLZrXmBtss27306FoDQT0HyEwu91UpWDM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.822395"], ["updated_at", "2015-03-17 06:40:20.822395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b7cba70-cc70-11e4-aff5-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b7e3832-cc70-11e4-a692-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b7cba70-cc70-11e4-aff5-705681abff85"], ["organization_id", "7b7e3832-cc70-11e4-a692-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.825676"], ["updated_at", "2015-03-17 06:40:20.825676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b7d598a-cc70-11e4-96f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b7e3832-cc70-11e4-a692-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b7d598a-cc70-11e4-96f6-705681abff85"], ["organization_id", "7b7e3832-cc70-11e4-a692-705681abff85"], ["created_at", "2015-03-17 06:40:20.828762"], ["updated_at", "2015-03-17 06:40:20.828762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$K7JVPu9ljMW3z/bUoKSotuqAsL3jYeAEUtRYYViTerG8cGEdZxcYu"], ["created_at", "2015-03-17 06:40:20.833513"], ["updated_at", "2015-03-17 06:40:20.833513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.835792"], ["user_id", "7b7fffaa-cc70-11e4-82be-705681abff85"], ["created_at", "2015-03-17 06:40:20.836635"], ["updated_at", "2015-03-17 06:40:20.836635"], ["token", "LHbYd116jgtOXKJOrbNPovQgzYI7oC8LckRoRJcqKsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '7b7e3832-cc70-11e4-a692-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "7b7e3832-cc70-11e4-a692-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.841824"], ["updated_at", "2015-03-17 06:40:20.841824"], ["token", "ZVMmBaneEe6oLKoPt1O0OOb_tQEXY-decRWoBTvXs6Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-16 23:40:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"ZVMmBaneEe6oLKoPt1O0OOb_tQEXY-decRWoBTvXs6Q", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:20.849129' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LHbYd116jgtOXKJOrbNPovQgzYI7oC8LckRoRJcqKsA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:20.850776"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:20.851733"], ["id", "7b807250-cc70-11e4-a386-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b7fffaa-cc70-11e4-82be-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b7fffaa-cc70-11e4-82be-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "ZVMmBaneEe6oLKoPt1O0OOb_tQEXY-decRWoBTvXs6Q"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7b7e3832-cc70-11e4-a692-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7b7e3832-cc70-11e4-a692-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b7fffaa-cc70-11e4-82be-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b7e3832-cc70-11e4-a692-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b7fffaa-cc70-11e4-82be-705681abff85"], ["admin", "t"], ["organization_id", "7b7e3832-cc70-11e4-a692-705681abff85"], ["created_at", "2015-03-17 06:40:20.860423"], ["updated_at", "2015-03-17 06:40:20.860423"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7b813a1e-cc70-11e4-8201-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$6I3/J849/MDHtjni7CJ5ceSqN3su817SMy5sIH8QqgsHDBRp.lLaG"], ["created_at", "2015-03-17 06:40:20.871045"], ["updated_at", "2015-03-17 06:40:20.871045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$nOUKPS2nMPBdKoRVCymfnuN0V1N5Tjyb2/gJ753WzkKNCQboSxjI2"], ["created_at", "2015-03-17 06:40:20.875772"], ["updated_at", "2015-03-17 06:40:20.875772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.877584"], ["user_id", "7b85a950-cc70-11e4-b9a4-705681abff85"], ["created_at", "2015-03-17 06:40:20.878597"], ["updated_at", "2015-03-17 06:40:20.878597"], ["token", "rfgc_vu4YxSaQxRDYPjmtyGy_GlMsxTDgsrm9tnJiZo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.882297"], ["updated_at", "2015-03-17 06:40:20.882297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b85a950-cc70-11e4-b9a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b875ba6-cc70-11e4-8e58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b85a950-cc70-11e4-b9a4-705681abff85"], ["organization_id", "7b875ba6-cc70-11e4-8e58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.885513"], ["updated_at", "2015-03-17 06:40:20.885513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b865dd2-cc70-11e4-b5bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b875ba6-cc70-11e4-8e58-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b865dd2-cc70-11e4-b5bc-705681abff85"], ["organization_id", "7b875ba6-cc70-11e4-8e58-705681abff85"], ["created_at", "2015-03-17 06:40:20.888458"], ["updated_at", "2015-03-17 06:40:20.888458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-16 23:40:20 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$RZXqHBLEBaUVHSBB7ra3fOwAmzYJrG4jBbuHKev4yeyS/uTEu3NrS"], ["created_at", "2015-03-17 06:40:20.900404"], ["updated_at", "2015-03-17 06:40:20.900404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$JoX9xNNcVcMftzbPGvl9BOtbcNgfbMWfU2f.gr9l8USgsMeWBC7ja"], ["created_at", "2015-03-17 06:40:20.906430"], ["updated_at", "2015-03-17 06:40:20.906430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.908218"], ["user_id", "7b8a4046-cc70-11e4-a5ee-705681abff85"], ["created_at", "2015-03-17 06:40:20.909018"], ["updated_at", "2015-03-17 06:40:20.909018"], ["token", "OSuXlN7n7FJdgqj4grhOqwo2crlmvFxiEKmFRlIMjK0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.912541"], ["updated_at", "2015-03-17 06:40:20.912541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b8a4046-cc70-11e4-a5ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b8bf92c-cc70-11e4-b69d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b8a4046-cc70-11e4-a5ee-705681abff85"], ["organization_id", "7b8bf92c-cc70-11e4-b69d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.915706"], ["updated_at", "2015-03-17 06:40:20.915706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b8b0f8a-cc70-11e4-97ac-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b8bf92c-cc70-11e4-b69d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b8b0f8a-cc70-11e4-97ac-705681abff85"], ["organization_id", "7b8bf92c-cc70-11e4-b69d-705681abff85"], ["created_at", "2015-03-17 06:40:20.918825"], ["updated_at", "2015-03-17 06:40:20.918825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/7b8c73a2-cc70-11e4-affe-705681abff85" for 127.0.0.1 at 2015-03-16 23:40:20 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"7b8c73a2-cc70-11e4-affe-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:20.923721' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OSuXlN7n7FJdgqj4grhOqwo2crlmvFxiEKmFRlIMjK0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:20.925166"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:20.926218"], ["id", "7b8b7858-cc70-11e4-a921-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b8a4046-cc70-11e4-a5ee-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b8a4046-cc70-11e4-a5ee-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b8a4046-cc70-11e4-a5ee-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$ud10A7ICRL9oHOfDtFqt8uoxwd.1F5o9WTXapTgRLOHTwRrf5beoG"], ["created_at", "2015-03-17 06:40:20.940387"], ["updated_at", "2015-03-17 06:40:20.940387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$zbnhVmWbU/ADbCcr5e9qgOaFGEL4pA6QEGuXBxXf7ahQbnO66FOA2"], ["created_at", "2015-03-17 06:40:20.945230"], ["updated_at", "2015-03-17 06:40:20.945230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.947041"], ["user_id", "7b903fd2-cc70-11e4-bb89-705681abff85"], ["created_at", "2015-03-17 06:40:20.948015"], ["updated_at", "2015-03-17 06:40:20.948015"], ["token", "OS1f0lYz2EHkU4abdU-zGOMCkb1bISOXJ8Aq2jFv1Tg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.951649"], ["updated_at", "2015-03-17 06:40:20.951649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b903fd2-cc70-11e4-bb89-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b91f08e-cc70-11e4-ab06-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b903fd2-cc70-11e4-bb89-705681abff85"], ["organization_id", "7b91f08e-cc70-11e4-ab06-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.954819"], ["updated_at", "2015-03-17 06:40:20.954819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b90f99a-cc70-11e4-a761-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b91f08e-cc70-11e4-ab06-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b90f99a-cc70-11e4-a761-705681abff85"], ["organization_id", "7b91f08e-cc70-11e4-ab06-705681abff85"], ["created_at", "2015-03-17 06:40:20.958016"], ["updated_at", "2015-03-17 06:40:20.958016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/7b92e8d6-cc70-11e4-aada-705681abff85" for 127.0.0.1 at 2015-03-16 23:40:20 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"7b92e8d6-cc70-11e4-aada-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:20.962649' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OS1f0lYz2EHkU4abdU-zGOMCkb1bISOXJ8Aq2jFv1Tg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (5.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:20.964559"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:20.966420"], ["id", "7b9171c2-cc70-11e4-b85c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b903fd2-cc70-11e4-bb89-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b903fd2-cc70-11e4-bb89-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b903fd2-cc70-11e4-bb89-705681abff85"]] Completed 500 Internal Server Error in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$TCkol4c/Lt9TANl3bcCjDeonApoGm7A2wqNqnbxRyJJVX5YYmtBVi"], ["created_at", "2015-03-17 06:40:20.983796"], ["updated_at", "2015-03-17 06:40:20.983796"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$Cw7Jox1lrvl/2b7559l2Nuc4B7cqNDCtJ2fYlLkYQTullqqUTvOnq"], ["created_at", "2015-03-17 06:40:20.990456"], ["updated_at", "2015-03-17 06:40:20.990456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:20.992228"], ["user_id", "7b96d914-cc70-11e4-bee2-705681abff85"], ["created_at", "2015-03-17 06:40:20.993062"], ["updated_at", "2015-03-17 06:40:20.993062"], ["token", "ts7ANJzy4m2_M4YHtlpTeNT1KVI1kNROqKBQ0RP05WM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:20.996488"], ["updated_at", "2015-03-17 06:40:20.996488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b96d914-cc70-11e4-bee2-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b98c83c-cc70-11e4-8649-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b96d914-cc70-11e4-bee2-705681abff85"], ["organization_id", "7b98c83c-cc70-11e4-8649-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:20.999689"], ["updated_at", "2015-03-17 06:40:20.999689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b97dbca-cc70-11e4-ad7d-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b98c83c-cc70-11e4-8649-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b97dbca-cc70-11e4-ad7d-705681abff85"], ["organization_id", "7b98c83c-cc70-11e4-8649-705681abff85"], ["created_at", "2015-03-17 06:40:21.003055"], ["updated_at", "2015-03-17 06:40:21.003055"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-16 23:40:21 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$5wODICRBehcmDfmkLgwwQuowiKHQGK7hLLB8N9ldwJZj5yZLatQIi"], ["created_at", "2015-03-17 06:40:21.015230"], ["updated_at", "2015-03-17 06:40:21.015230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$UFLbH0lGpl3lZuP0fUBpzOVtMDcH/w.Uf9m2pXYdIotZ.BIHctj1O"], ["created_at", "2015-03-17 06:40:21.020674"], ["updated_at", "2015-03-17 06:40:21.020674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:21.022568"], ["user_id", "7b9bb038-cc70-11e4-8f40-705681abff85"], ["created_at", "2015-03-17 06:40:21.023389"], ["updated_at", "2015-03-17 06:40:21.023389"], ["token", "LlLzOqr5vnHw2NXU1PT4g6beX4kLlFswz-b_ZbN4_E8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:21.026978"], ["updated_at", "2015-03-17 06:40:21.026978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b9bb038-cc70-11e4-8f40-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b9d777e-cc70-11e4-aef1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b9bb038-cc70-11e4-8f40-705681abff85"], ["organization_id", "7b9d777e-cc70-11e4-aef1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:21.032015"], ["updated_at", "2015-03-17 06:40:21.032015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b9c826a-cc70-11e4-ae86-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b9d777e-cc70-11e4-aef1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b9c826a-cc70-11e4-ae86-705681abff85"], ["organization_id", "7b9d777e-cc70-11e4-aef1-705681abff85"], ["created_at", "2015-03-17 06:40:21.036567"], ["updated_at", "2015-03-17 06:40:21.036567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7b9e46d6-cc70-11e4-81e9-705681abff85" for 127.0.0.1 at 2015-03-16 23:40:21 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7b9e46d6-cc70-11e4-81e9-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:21.041897' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LlLzOqr5vnHw2NXU1PT4g6beX4kLlFswz-b_ZbN4_E8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:21.043349"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:21.044317"], ["id", "7b9ced40-cc70-11e4-b51a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b9bb038-cc70-11e4-8f40-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b9bb038-cc70-11e4-8f40-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7b9bb038-cc70-11e4-8f40-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$CzaAU5JEB35XGvXtUaO5PObcY9TOJVQ3g./FNf7eCmwaRN.exz7zy"], ["created_at", "2015-03-17 06:40:21.057329"], ["updated_at", "2015-03-17 06:40:21.057329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$5Wu4MDxWvzK8Rz/XM96P3uIptg1.38GzS3rHLGuy8k12bfetkBjB6"], ["created_at", "2015-03-17 06:40:21.061606"], ["updated_at", "2015-03-17 06:40:21.061606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:21.063130"], ["user_id", "7ba2127a-cc70-11e4-a273-705681abff85"], ["created_at", "2015-03-17 06:40:21.063926"], ["updated_at", "2015-03-17 06:40:21.063926"], ["token", "wYzCbXf37bJbSJKBdANIhG6ajNaxTYFtKd7o3DTwYOk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:21.079456"], ["updated_at", "2015-03-17 06:40:21.079456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ba2127a-cc70-11e4-a273-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ba573c0-cc70-11e4-bcc2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ba2127a-cc70-11e4-a273-705681abff85"], ["organization_id", "7ba573c0-cc70-11e4-bcc2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:21.083064"], ["updated_at", "2015-03-17 06:40:21.083064"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ba2b806-cc70-11e4-90bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ba573c0-cc70-11e4-bcc2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ba2b806-cc70-11e4-90bf-705681abff85"], ["organization_id", "7ba573c0-cc70-11e4-bcc2-705681abff85"], ["created_at", "2015-03-17 06:40:21.086634"], ["updated_at", "2015-03-17 06:40:21.086634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7ba68b2a-cc70-11e4-a3df-705681abff85" for 127.0.0.1 at 2015-03-16 23:40:21 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7ba68b2a-cc70-11e4-a3df-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:21.092079' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wYzCbXf37bJbSJKBdANIhG6ajNaxTYFtKd7o3DTwYOk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:21.093786"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:21.094947"], ["id", "7ba31a26-cc70-11e4-8c56-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7ba2127a-cc70-11e4-a273-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7ba2127a-cc70-11e4-a273-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7ba2127a-cc70-11e4-a273-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$kATTDtEIqoactkV1WYesQ.2ZdzruWhViKuoBRdkmsGq1.KQF2Otom"], ["created_at", "2015-03-17 06:40:21.106434"], ["updated_at", "2015-03-17 06:40:21.106434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$flVtrnoVRMXKtio8G9biye90i9TVR08ky1R94rS1tIbi.sde9oa7."], ["created_at", "2015-03-17 06:40:21.111605"], ["updated_at", "2015-03-17 06:40:21.111605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:21.113145"], ["user_id", "7ba9aa08-cc70-11e4-9280-705681abff85"], ["created_at", "2015-03-17 06:40:21.113930"], ["updated_at", "2015-03-17 06:40:21.113930"], ["token", "uybjv29MzKW41gSQBfOvippF16MwA5Cw2NHwDkWrvK4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:21.117330"], ["updated_at", "2015-03-17 06:40:21.117330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ba9aa08-cc70-11e4-9280-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bab386e-cc70-11e4-861a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ba9aa08-cc70-11e4-9280-705681abff85"], ["organization_id", "7bab386e-cc70-11e4-861a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:21.120741"], ["updated_at", "2015-03-17 06:40:21.120741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7baa59da-cc70-11e4-bc65-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bab386e-cc70-11e4-861a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7baa59da-cc70-11e4-bc65-705681abff85"], ["organization_id", "7bab386e-cc70-11e4-861a-705681abff85"], ["created_at", "2015-03-17 06:40:21.124106"], ["updated_at", "2015-03-17 06:40:21.124106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/7babc2b6-cc70-11e4-bd6b-705681abff85" for 127.0.0.1 at 2015-03-16 23:40:21 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"7babc2b6-cc70-11e4-bd6b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:21.128746' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uybjv29MzKW41gSQBfOvippF16MwA5Cw2NHwDkWrvK4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:21.130660"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:21.131992"], ["id", "7baaba1a-cc70-11e4-9dec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7ba9aa08-cc70-11e4-9280-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7ba9aa08-cc70-11e4-9280-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7ba9aa08-cc70-11e4-9280-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "7ba9aa08-cc70-11e4-9280-705681abff85"], ["id", "7babc2b6-cc70-11e4-bd6b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7bab386e-cc70-11e4-861a-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7ba9aa08-cc70-11e4-9280-705681abff85"]] Completed 200 OK in 14ms (Views: 3.3ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$gmSBXlTUXNAEQsvLvzGyZe6hXEy9CqWphaYOjdrkOKlRp0O2CsOcm"], ["created_at", "2015-03-17 06:40:21.149232"], ["updated_at", "2015-03-17 06:40:21.149232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$6uOeZcEucVg71EwYwXIKGuzJOpKemqNfVbBq6H2raxjhyzjq/NDdO"], ["created_at", "2015-03-17 06:40:21.154746"], ["updated_at", "2015-03-17 06:40:21.154746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:21.156529"], ["user_id", "7bb01dac-cc70-11e4-b16a-705681abff85"], ["created_at", "2015-03-17 06:40:21.157346"], ["updated_at", "2015-03-17 06:40:21.157346"], ["token", "s8QAJ9-kJCBqd9HbAX2AYAZp8DMLnTOoPLxg99ZCAho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:21.161196"], ["updated_at", "2015-03-17 06:40:21.161196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bb01dac-cc70-11e4-b16a-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bb1edbc-cc70-11e4-8fc9-705681abff85') LIMIT 1 SQL (3.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bb01dac-cc70-11e4-b16a-705681abff85"], ["organization_id", "7bb1edbc-cc70-11e4-8fc9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:21.165522"], ["updated_at", "2015-03-17 06:40:21.165522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (10.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bb0f47a-cc70-11e4-b629-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bb1edbc-cc70-11e4-8fc9-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7bb0f47a-cc70-11e4-b629-705681abff85"], ["organization_id", "7bb1edbc-cc70-11e4-8fc9-705681abff85"], ["created_at", "2015-03-17 06:40:21.214525"], ["updated_at", "2015-03-17 06:40:21.214525"]]  (3.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-16 23:40:21 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (1.2ms) ROLLBACK  (1.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$xi6vuG9sET3CUtp5a4ac..451g8hLBfRqOAB.nXxBDKQztItiUodG"], ["created_at", "2015-03-17 06:40:21.249551"], ["updated_at", "2015-03-17 06:40:21.249551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$sWbLi3vw4Os6fW/NEjxDF.nMQrHCyNpWHW3Id/BMS.sshgXLGJgV2"], ["created_at", "2015-03-17 06:40:21.259796"], ["updated_at", "2015-03-17 06:40:21.259796"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:21.263508"], ["user_id", "7bbfa54c-cc70-11e4-a0e7-705681abff85"], ["created_at", "2015-03-17 06:40:21.265014"], ["updated_at", "2015-03-17 06:40:21.265014"], ["token", "vNrsWSfgx-zYFh65J9sajfInORH97ODb15mgHkjozvI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:21.272961"], ["updated_at", "2015-03-17 06:40:21.272961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bbfa54c-cc70-11e4-a0e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bc34fe4-cc70-11e4-8c26-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bbfa54c-cc70-11e4-a0e7-705681abff85"], ["organization_id", "7bc34fe4-cc70-11e4-8c26-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:21.317333"], ["updated_at", "2015-03-17 06:40:21.317333"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bc11dc8-cc70-11e4-bd34-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bc34fe4-cc70-11e4-8c26-705681abff85') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7bc11dc8-cc70-11e4-bd34-705681abff85"], ["organization_id", "7bc34fe4-cc70-11e4-8c26-705681abff85"], ["created_at", "2015-03-17 06:40:21.327498"], ["updated_at", "2015-03-17 06:40:21.327498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$iY/HP78Jct13TDyJ32pMXul2SXCXd1UgD3KCBfC3jxMLZJ8jcW3C."], ["created_at", "2015-03-17 06:40:21.342110"], ["updated_at", "2015-03-17 06:40:21.342110"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:21.346411"], ["user_id", "7bcdb740-cc70-11e4-83bd-705681abff85"], ["created_at", "2015-03-17 06:40:21.348208"], ["updated_at", "2015-03-17 06:40:21.348208"], ["token", "6SMHVzX1EMGilHB9uwvJrkdNkMVt6BIzEdsllbjQLDs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '7bc34fe4-cc70-11e4-8c26-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "7bc34fe4-cc70-11e4-8c26-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:21.355000"], ["updated_at", "2015-03-17 06:40:21.355000"], ["token", "IpyCk7G5QbgNzR5naa0ObossF249Z1uBirwyhsFdhns"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-16 23:40:21 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$KvV3i9htBZZn160G5KSP1.gEoXG3zf4kg2XioXXCKnvFSlOJAlsqm"], ["created_at", "2015-03-17 06:40:21.370132"], ["updated_at", "2015-03-17 06:40:21.370132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$bihUTjkEm5BTGOmNBJhfG.1WtT2Ixo8Hnhf19vkMKKqSmSIyoZt.u"], ["created_at", "2015-03-17 06:40:21.375954"], ["updated_at", "2015-03-17 06:40:21.375954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:21.378065"], ["user_id", "7bd1d604-cc70-11e4-9c32-705681abff85"], ["created_at", "2015-03-17 06:40:21.378888"], ["updated_at", "2015-03-17 06:40:21.378888"], ["token", "3QHmcltbi_0fnGhHQSv3-ctwj_Ckm-nNdZAVLm3PdU0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:21.383072"], ["updated_at", "2015-03-17 06:40:21.383072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bd1d604-cc70-11e4-9c32-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bd3c900-cc70-11e4-90e7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bd1d604-cc70-11e4-9c32-705681abff85"], ["organization_id", "7bd3c900-cc70-11e4-90e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:21.388236"], ["updated_at", "2015-03-17 06:40:21.388236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bd2bff6-cc70-11e4-be1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bd3c900-cc70-11e4-90e7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7bd2bff6-cc70-11e4-be1b-705681abff85"], ["organization_id", "7bd3c900-cc70-11e4-90e7-705681abff85"], ["created_at", "2015-03-17 06:40:21.393266"], ["updated_at", "2015-03-17 06:40:21.393266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (5.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$h.LcbWc2zAIjVqerz0B5Guo9Ey/AojDb.ei9cFGMhez1qssF0dnfO"], ["created_at", "2015-03-17 06:40:21.399903"], ["updated_at", "2015-03-17 06:40:21.399903"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:21.411355"], ["user_id", "7bd66e12-cc70-11e4-99d4-705681abff85"], ["created_at", "2015-03-17 06:40:21.413633"], ["updated_at", "2015-03-17 06:40:21.413633"], ["token", "o4-RA8gmUFxDPUF3koN0XrUtZxPUNC7KNsJpIXxjc-g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '7bd3c900-cc70-11e4-90e7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "7bd3c900-cc70-11e4-90e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:21.419076"], ["updated_at", "2015-03-17 06:40:21.419076"], ["token", "83jsJWPVYpmWU9qD7YqhIP1fXR_-I77rxE86h8ptNE0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7bd3c900-cc70-11e4-90e7-705681abff85/memberships" for 127.0.0.1 at 2015-03-16 23:40:21 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"7bd3c900-cc70-11e4-90e7-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:21.426152' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o4-RA8gmUFxDPUF3koN0XrUtZxPUNC7KNsJpIXxjc-g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:21.427869"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:21.429109"], ["id", "7bd886f2-cc70-11e4-b7a3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7bd66e12-cc70-11e4-99d4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7bd66e12-cc70-11e4-99d4-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$jOyYpZCPRJw21AKmJPxMDO.pHAZwa5em0g/0AZgHILqAA2urxBLKK"], ["created_at", "2015-03-17 06:40:21.445941"], ["updated_at", "2015-03-17 06:40:21.445941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$3WP9A96KRMPxfeils.N5b.M/fun2oFKJ7F/BpLvQ9QbFtzmhCE1Li"], ["created_at", "2015-03-17 06:40:21.451839"], ["updated_at", "2015-03-17 06:40:21.451839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:21.454621"], ["user_id", "7bdd6e9c-cc70-11e4-88d9-705681abff85"], ["created_at", "2015-03-17 06:40:21.456129"], ["updated_at", "2015-03-17 06:40:21.456129"], ["token", "OoXiq6joPUpCF1jO7Sf3e0llyIhIbRTSnGWyedM1Ce4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-17 06:40:21.461074"], ["updated_at", "2015-03-17 06:40:21.461074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bdd6e9c-cc70-11e4-88d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bdfbe40-cc70-11e4-b2e4-705681abff85') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bdd6e9c-cc70-11e4-88d9-705681abff85"], ["organization_id", "7bdfbe40-cc70-11e4-b2e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:21.467386"], ["updated_at", "2015-03-17 06:40:21.467386"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bde519a-cc70-11e4-8d98-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bdfbe40-cc70-11e4-b2e4-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7bde519a-cc70-11e4-8d98-705681abff85"], ["organization_id", "7bdfbe40-cc70-11e4-b2e4-705681abff85"], ["created_at", "2015-03-17 06:40:21.477651"], ["updated_at", "2015-03-17 06:40:21.477651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$cWpIGk.Oa5R/EtgX7NceIur8J3O67149uBZkBn5uUDVbS5BueumBu"], ["created_at", "2015-03-17 06:40:21.485771"], ["updated_at", "2015-03-17 06:40:21.485771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-17 06:40:21.489035"], ["user_id", "7be3a60e-cc70-11e4-86b5-705681abff85"], ["created_at", "2015-03-17 06:40:21.489956"], ["updated_at", "2015-03-17 06:40:21.489956"], ["token", "6OQIfScVyWDffKG-wg3-lH2xHDdU7qNaHrc6MS_Kd9Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '7bdfbe40-cc70-11e4-b2e4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "7bdfbe40-cc70-11e4-b2e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-17 06:40:21.494437"], ["updated_at", "2015-03-17 06:40:21.494437"], ["token", "8bx8lZw5wouQllJ7R7jLU7bxTG2Uqhaecg9Ezv4w6LY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7bdfbe40-cc70-11e4-b2e4-705681abff85/memberships" for 127.0.0.1 at 2015-03-16 23:40:21 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"8bx8lZw5wouQllJ7R7jLU7bxTG2Uqhaecg9Ezv4w6LY", "organization_id"=>"7bdfbe40-cc70-11e4-b2e4-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-03 06:40:21.499941' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6OQIfScVyWDffKG-wg3-lH2xHDdU7qNaHrc6MS_Kd9Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-17 06:40:21.501383"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-17 06:40:21.502766"], ["id", "7be423b8-cc70-11e4-9309-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7be3a60e-cc70-11e4-86b5-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7be3a60e-cc70-11e4-86b5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "8bx8lZw5wouQllJ7R7jLU7bxTG2Uqhaecg9Ezv4w6LY"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7bdfbe40-cc70-11e4-b2e4-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7bdfbe40-cc70-11e4-b2e4-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7be3a60e-cc70-11e4-86b5-705681abff85' AND "clubhouse_memberships"."organization_id" = '7bdfbe40-cc70-11e4-b2e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7be3a60e-cc70-11e4-86b5-705681abff85"], ["admin", "t"], ["organization_id", "7bdfbe40-cc70-11e4-b2e4-705681abff85"], ["created_at", "2015-03-17 06:40:21.512746"], ["updated_at", "2015-03-17 06:40:21.512746"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7be4d330-cc70-11e4-92bd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.2ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (19.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (12.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$8imt4MXlLgwISqvF3Sm/7ed/h/aefnJxtq5ZswTyHlyYnEB5X7sni"], ["created_at", "2015-03-18 01:45:22.909992"], ["updated_at", "2015-03-18 01:45:22.909992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$.ZemnJv6.HXfOMMsFxKppOi5Cy.uIuNvfyOyiSvd08BZiBNo5V4di"], ["created_at", "2015-03-18 01:45:22.927793"], ["updated_at", "2015-03-18 01:45:22.927793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (29.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:22.941379"], ["user_id", "7122128c-cd10-11e4-ac36-705681abff85"], ["created_at", "2015-03-18 01:45:22.947924"], ["updated_at", "2015-03-18 01:45:22.947924"], ["token", "hkmLw5GNuIkjdMudFJdbZdw07NNULzt53g0E5q0RwHc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:22.987673"], ["updated_at", "2015-03-18 01:45:22.987673"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7122128c-cd10-11e4-ac36-705681abff85' AND "clubhouse_memberships"."organization_id" = '712cc11e-cd10-11e4-86e8-705681abff85') LIMIT 1 SQL (4.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7122128c-cd10-11e4-ac36-705681abff85"], ["organization_id", "712cc11e-cd10-11e4-86e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.011878"], ["updated_at", "2015-03-18 01:45:23.011878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '712390a8-cd10-11e4-b3a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '712cc11e-cd10-11e4-86e8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "712390a8-cd10-11e4-b3a7-705681abff85"], ["organization_id", "712cc11e-cd10-11e4-86e8-705681abff85"], ["created_at", "2015-03-18 01:45:23.020025"], ["updated_at", "2015-03-18 01:45:23.020025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-17 18:45:23 -0700  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Yr02nXgr2FiLEFAZU75t0.iugVZD3s29eBGjFHUUBnElciGkXlWIW"], ["created_at", "2015-03-18 01:45:23.051662"], ["updated_at", "2015-03-18 01:45:23.051662"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$BxqF8LXCH2NnSiJgvOB1VurKAATPdbL3o3a8t2ZPGz49xHoLwsZma"], ["created_at", "2015-03-18 01:45:23.057714"], ["updated_at", "2015-03-18 01:45:23.057714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.059312"], ["user_id", "71368e10-cd10-11e4-b7b8-705681abff85"], ["created_at", "2015-03-18 01:45:23.060092"], ["updated_at", "2015-03-18 01:45:23.060092"], ["token", "kXSIz82mHLwJmAL2me8BmuSMMeQmWStjIFkAxA1CcWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.063512"], ["updated_at", "2015-03-18 01:45:23.063512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71368e10-cd10-11e4-b7b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '713844e4-cd10-11e4-a409-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71368e10-cd10-11e4-b7b8-705681abff85"], ["organization_id", "713844e4-cd10-11e4-a409-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.066682"], ["updated_at", "2015-03-18 01:45:23.066682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7137639e-cd10-11e4-b47c-705681abff85' AND "clubhouse_memberships"."organization_id" = '713844e4-cd10-11e4-a409-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7137639e-cd10-11e4-b47c-705681abff85"], ["organization_id", "713844e4-cd10-11e4-a409-705681abff85"], ["created_at", "2015-03-18 01:45:23.069740"], ["updated_at", "2015-03-18 01:45:23.069740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$kX9XGEkTV5HLgR9FI3uXsOYhcxtj2dDl0jRXg1gpjUuafk83EPcoq"], ["created_at", "2015-03-18 01:45:23.085966"], ["updated_at", "2015-03-18 01:45:23.085966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$v0NypyKXY3vC4ElFdAVMF.jV.r9LMrImS3MwZyu77ktOEk9mnrQPi"], ["created_at", "2015-03-18 01:45:23.090406"], ["updated_at", "2015-03-18 01:45:23.090406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.091915"], ["user_id", "713bb82c-cd10-11e4-876c-705681abff85"], ["created_at", "2015-03-18 01:45:23.092719"], ["updated_at", "2015-03-18 01:45:23.092719"], ["token", "-iZC463cIhVbWUxUQtmTB-2GU0fmnYsHWJNkx2DdAfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.096258"], ["updated_at", "2015-03-18 01:45:23.096258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '713bb82c-cd10-11e4-876c-705681abff85' AND "clubhouse_memberships"."organization_id" = '713d4494-cd10-11e4-8a1a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "713bb82c-cd10-11e4-876c-705681abff85"], ["organization_id", "713d4494-cd10-11e4-8a1a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.099662"], ["updated_at", "2015-03-18 01:45:23.099662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '713c5fde-cd10-11e4-a33b-705681abff85' AND "clubhouse_memberships"."organization_id" = '713d4494-cd10-11e4-8a1a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "713c5fde-cd10-11e4-a33b-705681abff85"], ["organization_id", "713d4494-cd10-11e4-8a1a-705681abff85"], ["created_at", "2015-03-18 01:45:23.102893"], ["updated_at", "2015-03-18 01:45:23.102893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (1.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$/lMeN4fGh2xP.jk0/jZIW.bYX2YGy/4WIl.dKnRgtfxxdgu09haT."], ["created_at", "2015-03-18 01:45:23.114502"], ["updated_at", "2015-03-18 01:45:23.114502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$NOti6k/Tr58GPLkmthq8WeljcQz30.8WwkNWhHQuZke7Qjl7UiTrS"], ["created_at", "2015-03-18 01:45:23.121723"], ["updated_at", "2015-03-18 01:45:23.121723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.123454"], ["user_id", "71401142-cd10-11e4-a228-705681abff85"], ["created_at", "2015-03-18 01:45:23.124227"], ["updated_at", "2015-03-18 01:45:23.124227"], ["token", "WCLPa97QCvnTC_-tfBTF01deQkfy1CkWhxzs_D4QmyY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.127826"], ["updated_at", "2015-03-18 01:45:23.127826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71401142-cd10-11e4-a228-705681abff85' AND "clubhouse_memberships"."organization_id" = '714218f2-cd10-11e4-87fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71401142-cd10-11e4-a228-705681abff85"], ["organization_id", "714218f2-cd10-11e4-87fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.131460"], ["updated_at", "2015-03-18 01:45:23.131460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71412af0-cd10-11e4-939d-705681abff85' AND "clubhouse_memberships"."organization_id" = '714218f2-cd10-11e4-87fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71412af0-cd10-11e4-939d-705681abff85"], ["organization_id", "714218f2-cd10-11e4-87fb-705681abff85"], ["created_at", "2015-03-18 01:45:23.134654"], ["updated_at", "2015-03-18 01:45:23.134654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7142a3ee-cd10-11e4-8db1-705681abff85" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7142a3ee-cd10-11e4-8db1-705681abff85", "membership"=>{}} Pollett::Session Load (12.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 01:45:23.140959' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WCLPa97QCvnTC_-tfBTF01deQkfy1CkWhxzs_D4QmyY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 01:45:23.169489"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 01:45:23.170929"], ["id", "7141924c-cd10-11e4-8f41-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71401142-cd10-11e4-a228-705681abff85"]] Clubhouse::Organization Load (16.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71401142-cd10-11e4-a228-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71401142-cd10-11e4-a228-705681abff85"]] Completed 500 Internal Server Error in 73ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$QX/DV90OVfi.vcmWqyWzTeYTzZvD25GEt8gRp4Cypg.2RGAcxM0Xa"], ["created_at", "2015-03-18 01:45:23.221762"], ["updated_at", "2015-03-18 01:45:23.221762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$gGs6EjWCN/fDhYlM00G3GOaiTJVytAp58FmiHwXwknYllwiKY6Qn2"], ["created_at", "2015-03-18 01:45:23.226040"], ["updated_at", "2015-03-18 01:45:23.226040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.227568"], ["user_id", "71506d26-cd10-11e4-bcf7-705681abff85"], ["created_at", "2015-03-18 01:45:23.228331"], ["updated_at", "2015-03-18 01:45:23.228331"], ["token", "xuGa7j19uSlUJ-MLT0QBuLSUDFDCLM8PNnZNgF0issw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.231722"], ["updated_at", "2015-03-18 01:45:23.231722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71506d26-cd10-11e4-bcf7-705681abff85' AND "clubhouse_memberships"."organization_id" = '7151eeda-cd10-11e4-81a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71506d26-cd10-11e4-bcf7-705681abff85"], ["organization_id", "7151eeda-cd10-11e4-81a2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.234956"], ["updated_at", "2015-03-18 01:45:23.234956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71511172-cd10-11e4-bddc-705681abff85' AND "clubhouse_memberships"."organization_id" = '7151eeda-cd10-11e4-81a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71511172-cd10-11e4-bddc-705681abff85"], ["organization_id", "7151eeda-cd10-11e4-81a2-705681abff85"], ["created_at", "2015-03-18 01:45:23.238008"], ["updated_at", "2015-03-18 01:45:23.238008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7152e5ce-cd10-11e4-af84-705681abff85" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7152e5ce-cd10-11e4-af84-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 01:45:23.242742' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xuGa7j19uSlUJ-MLT0QBuLSUDFDCLM8PNnZNgF0issw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 01:45:23.244135"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 01:45:23.245173"], ["id", "715172ac-cd10-11e4-a1ac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71506d26-cd10-11e4-bcf7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71506d26-cd10-11e4-bcf7-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71506d26-cd10-11e4-bcf7-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$FzZxpEeroy6FPPSwpmlllerZQxk56Fw0yzCaCopmiymZj1cnGFzOe"], ["created_at", "2015-03-18 01:45:23.254914"], ["updated_at", "2015-03-18 01:45:23.254914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$ZW8o3noR/OSM5fB7GeiZq.lhX6hUZwYF33WLGrIAHTRDfqJyN/4vG"], ["created_at", "2015-03-18 01:45:23.259402"], ["updated_at", "2015-03-18 01:45:23.259402"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.262365"], ["user_id", "71557bfe-cd10-11e4-bd40-705681abff85"], ["created_at", "2015-03-18 01:45:23.263710"], ["updated_at", "2015-03-18 01:45:23.263710"], ["token", "We9_6hDLlGqZQp_7Deho9podNE9PbKhmei79lCkSLM8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.275923"], ["updated_at", "2015-03-18 01:45:23.275923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71557bfe-cd10-11e4-bd40-705681abff85' AND "clubhouse_memberships"."organization_id" = '7158c0c0-cd10-11e4-8e68-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71557bfe-cd10-11e4-bd40-705681abff85"], ["organization_id", "7158c0c0-cd10-11e4-8e68-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.280376"], ["updated_at", "2015-03-18 01:45:23.280376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71563828-cd10-11e4-a9e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '7158c0c0-cd10-11e4-8e68-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71563828-cd10-11e4-a9e2-705681abff85"], ["organization_id", "7158c0c0-cd10-11e4-8e68-705681abff85"], ["created_at", "2015-03-18 01:45:23.284195"], ["updated_at", "2015-03-18 01:45:23.284195"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$NOEiA55aAYrrrnemUun7l./4HeU3.Topw/c5MrSJW9p91/V.ZNGEC"], ["created_at", "2015-03-18 01:45:23.298493"], ["updated_at", "2015-03-18 01:45:23.298493"]]  (1.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.305997"], ["user_id", "715c8c14-cd10-11e4-8b28-705681abff85"], ["created_at", "2015-03-18 01:45:23.307357"], ["updated_at", "2015-03-18 01:45:23.307357"], ["token", "KkkNk2xyCmtC77EBPCetrtNTtc7LQ1jdIVoZT3ADf6Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (6.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '7158c0c0-cd10-11e4-8e68-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "7158c0c0-cd10-11e4-8e68-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.325783"], ["updated_at", "2015-03-18 01:45:23.325783"], ["token", "4upT2b0JHOLMFW2-RxXtk2md77i-HUsAEsE_PoJgvRA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$0omQoM5WPXVCedspB8xjiuTy15PxZxMrePrfdNXEkHfVmcHIXxeGu"], ["created_at", "2015-03-18 01:45:23.343746"], ["updated_at", "2015-03-18 01:45:23.343746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$H8/a6ajnzb4tZs/xDXoCMO9FJvBNbbQTn.sOn3KB/IUXP5aQfEGki"], ["created_at", "2015-03-18 01:45:23.348549"], ["updated_at", "2015-03-18 01:45:23.348549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.350418"], ["user_id", "71630eae-cd10-11e4-a80c-705681abff85"], ["created_at", "2015-03-18 01:45:23.351437"], ["updated_at", "2015-03-18 01:45:23.351437"], ["token", "tC1EKJHvqknhWOsfZnvA0srgR6W0-ARrlv39tiraNV8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.436641"], ["updated_at", "2015-03-18 01:45:23.436641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71630eae-cd10-11e4-a80c-705681abff85' AND "clubhouse_memberships"."organization_id" = '71715090-cd10-11e4-93de-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71630eae-cd10-11e4-a80c-705681abff85"], ["organization_id", "71715090-cd10-11e4-93de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.442811"], ["updated_at", "2015-03-18 01:45:23.442811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7163c646-cd10-11e4-829c-705681abff85' AND "clubhouse_memberships"."organization_id" = '71715090-cd10-11e4-93de-705681abff85') LIMIT 1 SQL (14.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7163c646-cd10-11e4-829c-705681abff85"], ["organization_id", "71715090-cd10-11e4-93de-705681abff85"], ["created_at", "2015-03-18 01:45:23.450436"], ["updated_at", "2015-03-18 01:45:23.450436"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$YK1mqz0K3dnbUXAgCuA1d.i9cL/6l8GIf6S/7TOPujpFvKxq9jI.a"], ["created_at", "2015-03-18 01:45:23.490945"], ["updated_at", "2015-03-18 01:45:23.490945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.492844"], ["user_id", "717985ee-cd10-11e4-8e74-705681abff85"], ["created_at", "2015-03-18 01:45:23.493862"], ["updated_at", "2015-03-18 01:45:23.493862"], ["token", "5H6avUAP4h5btSrXwWU_po5edSSicOll8mN1Zb_99iY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '71715090-cd10-11e4-93de-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "71715090-cd10-11e4-93de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.498014"], ["updated_at", "2015-03-18 01:45:23.498014"], ["token", "bsCESqooN-jmsbpdI7Y0XwDCC9WJz-jV5-COXxnhAp8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 01:45:23.504226' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5H6avUAP4h5btSrXwWU_po5edSSicOll8mN1Zb_99iY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 01:45:23.505759"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 01:45:23.506761"], ["id", "7179fa38-cd10-11e4-83a6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "717985ee-cd10-11e4-8e74-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "717985ee-cd10-11e4-8e74-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (12.6ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 25ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$9bM39Y/FRkeXtAMQP.K.jeYHZLkNMaCrTltWBX8cGi9UJeS/vcf6C"], ["created_at", "2015-03-18 01:45:23.537384"], ["updated_at", "2015-03-18 01:45:23.537384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$6F3b0MS7hsJ6eMmFK7nY9.SQz9w7fId7365r5rLrPLFxN3TP9S90m"], ["created_at", "2015-03-18 01:45:23.542675"], ["updated_at", "2015-03-18 01:45:23.542675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.544601"], ["user_id", "71809ce4-cd10-11e4-be00-705681abff85"], ["created_at", "2015-03-18 01:45:23.545442"], ["updated_at", "2015-03-18 01:45:23.545442"], ["token", "DY768hdooJxKQy7psoWWx84CcShDaWURez2Yptmwpoo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.549114"], ["updated_at", "2015-03-18 01:45:23.549114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71809ce4-cd10-11e4-be00-705681abff85' AND "clubhouse_memberships"."organization_id" = '71826128-cd10-11e4-95d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71809ce4-cd10-11e4-be00-705681abff85"], ["organization_id", "71826128-cd10-11e4-95d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.553067"], ["updated_at", "2015-03-18 01:45:23.553067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '718164a8-cd10-11e4-a24c-705681abff85' AND "clubhouse_memberships"."organization_id" = '71826128-cd10-11e4-95d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "718164a8-cd10-11e4-a24c-705681abff85"], ["organization_id", "71826128-cd10-11e4-95d6-705681abff85"], ["created_at", "2015-03-18 01:45:23.556905"], ["updated_at", "2015-03-18 01:45:23.556905"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$o5ptd2nSn5gw34usYj1Ux.uYryRPaR0FQNSzIR1OV1ufbEgSvxKFO"], ["created_at", "2015-03-18 01:45:23.562192"], ["updated_at", "2015-03-18 01:45:23.562192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.563863"], ["user_id", "71846054-cd10-11e4-9f8a-705681abff85"], ["created_at", "2015-03-18 01:45:23.564614"], ["updated_at", "2015-03-18 01:45:23.564614"], ["token", "X4UTCYaCAz2PNEnpmSbhwbDhcFHrA7DtF3-i5GKNGtA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '71826128-cd10-11e4-95d6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "71826128-cd10-11e4-95d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.568918"], ["updated_at", "2015-03-18 01:45:23.568918"], ["token", "gj6WyRMbmxN5OQACq-uMUCf-6-vCOqaninSfDqSuQRo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"gj6WyRMbmxN5OQACq-uMUCf-6-vCOqaninSfDqSuQRo", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 01:45:23.575923' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X4UTCYaCAz2PNEnpmSbhwbDhcFHrA7DtF3-i5GKNGtA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 01:45:23.585022"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 01:45:23.587690"], ["id", "7184c530-cd10-11e4-8ec1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71846054-cd10-11e4-9f8a-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71846054-cd10-11e4-9f8a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (1.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "gj6WyRMbmxN5OQACq-uMUCf-6-vCOqaninSfDqSuQRo"]] Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "71826128-cd10-11e4-95d6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "71826128-cd10-11e4-95d6-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71846054-cd10-11e4-9f8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '71826128-cd10-11e4-95d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71846054-cd10-11e4-9f8a-705681abff85"], ["admin", "t"], ["organization_id", "71826128-cd10-11e4-95d6-705681abff85"], ["created_at", "2015-03-18 01:45:23.612179"], ["updated_at", "2015-03-18 01:45:23.612179"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "718572c8-cd10-11e4-8087-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 43ms (Views: 4.2ms | ActiveRecord: 5.8ms)  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$EiA2B44mvS6a/9w.mJofr./FcPrQJIfodbIy1YndHGQqM/0yH6dcS"], ["created_at", "2015-03-18 01:45:23.639749"], ["updated_at", "2015-03-18 01:45:23.639749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (1.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$/vNc7d0sEWIcu4m/rcajN.rH8Ty8.xhvttGWNMYIzt/hZSnC5Ww02"], ["created_at", "2015-03-18 01:45:23.645379"], ["updated_at", "2015-03-18 01:45:23.645379"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.656579"], ["user_id", "71904464-cd10-11e4-8707-705681abff85"], ["created_at", "2015-03-18 01:45:23.658466"], ["updated_at", "2015-03-18 01:45:23.658466"], ["token", "9JZDAF0Wu-lMRXSEmXFbRxqrSfIjusgG10_be1xmAWI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.663017"], ["updated_at", "2015-03-18 01:45:23.663017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71904464-cd10-11e4-8707-705681abff85' AND "clubhouse_memberships"."organization_id" = '7193c882-cd10-11e4-b464-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71904464-cd10-11e4-8707-705681abff85"], ["organization_id", "7193c882-cd10-11e4-b464-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.666785"], ["updated_at", "2015-03-18 01:45:23.666785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7191a962-cd10-11e4-b368-705681abff85' AND "clubhouse_memberships"."organization_id" = '7193c882-cd10-11e4-b464-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7191a962-cd10-11e4-b368-705681abff85"], ["organization_id", "7193c882-cd10-11e4-b464-705681abff85"], ["created_at", "2015-03-18 01:45:23.670703"], ["updated_at", "2015-03-18 01:45:23.670703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/719454aa-cd10-11e4-8ca7-705681abff85" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"719454aa-cd10-11e4-8ca7-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 01:45:23.676265' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9JZDAF0Wu-lMRXSEmXFbRxqrSfIjusgG10_be1xmAWI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 01:45:23.678060"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 01:45:23.679186"], ["id", "71932440-cd10-11e4-8a6b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71904464-cd10-11e4-8707-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71904464-cd10-11e4-8707-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71904464-cd10-11e4-8707-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "71904464-cd10-11e4-8707-705681abff85"], ["id", "719454aa-cd10-11e4-8ca7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7193c882-cd10-11e4-b464-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71904464-cd10-11e4-8707-705681abff85"]] Completed 200 OK in 13ms (Views: 2.9ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$gQG14tnaKJ1W9gbGNnGpj.XhEZA/Vo2Cf1JyrKQTVjMydkZztlwdm"], ["created_at", "2015-03-18 01:45:23.696136"], ["updated_at", "2015-03-18 01:45:23.696136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$AICUjo5wMj5H8QSOJe0Njubzaso8lvIOL4Nlccmd41COowuuwu9K."], ["created_at", "2015-03-18 01:45:23.701465"], ["updated_at", "2015-03-18 01:45:23.701465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.703181"], ["user_id", "7198d12e-cd10-11e4-b729-705681abff85"], ["created_at", "2015-03-18 01:45:23.703958"], ["updated_at", "2015-03-18 01:45:23.703958"], ["token", "tzeG5r4purxhfD5BxblPyp0pVjCXoF6dcuf38FQnuYw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.708028"], ["updated_at", "2015-03-18 01:45:23.708028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7198d12e-cd10-11e4-b729-705681abff85' AND "clubhouse_memberships"."organization_id" = '719a9e32-cd10-11e4-bd0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7198d12e-cd10-11e4-b729-705681abff85"], ["organization_id", "719a9e32-cd10-11e4-bd0e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.711369"], ["updated_at", "2015-03-18 01:45:23.711369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71999fa0-cd10-11e4-899e-705681abff85' AND "clubhouse_memberships"."organization_id" = '719a9e32-cd10-11e4-bd0e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71999fa0-cd10-11e4-899e-705681abff85"], ["organization_id", "719a9e32-cd10-11e4-bd0e-705681abff85"], ["created_at", "2015-03-18 01:45:23.714994"], ["updated_at", "2015-03-18 01:45:23.714994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$VMzdwh//G9yBP0ZIlB.Pf.Nv74TnNxH1qTwE1rUxmtZC18jMMFNSi"], ["created_at", "2015-03-18 01:45:23.726343"], ["updated_at", "2015-03-18 01:45:23.726343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$Xsc5DVkx0a3UcE8yUQEVguoyAOdld4KYpY/ATFqvhMIfxQcjwMhEG"], ["created_at", "2015-03-18 01:45:23.731707"], ["updated_at", "2015-03-18 01:45:23.731707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.733386"], ["user_id", "719d6edc-cd10-11e4-bdbd-705681abff85"], ["created_at", "2015-03-18 01:45:23.734145"], ["updated_at", "2015-03-18 01:45:23.734145"], ["token", "ssFldu8cc5OaN0v22W8qm6B37XzRwfRDjtRyXfH3F7M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.738530"], ["updated_at", "2015-03-18 01:45:23.738530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '719d6edc-cd10-11e4-bdbd-705681abff85' AND "clubhouse_memberships"."organization_id" = '719f4734-cd10-11e4-8522-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "719d6edc-cd10-11e4-bdbd-705681abff85"], ["organization_id", "719f4734-cd10-11e4-8522-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.743897"], ["updated_at", "2015-03-18 01:45:23.743897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '719e3d12-cd10-11e4-b420-705681abff85' AND "clubhouse_memberships"."organization_id" = '719f4734-cd10-11e4-8522-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "719e3d12-cd10-11e4-b420-705681abff85"], ["organization_id", "719f4734-cd10-11e4-8522-705681abff85"], ["created_at", "2015-03-18 01:45:23.748149"], ["updated_at", "2015-03-18 01:45:23.748149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/719f4734-cd10-11e4-8522-705681abff85/memberships" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"719f4734-cd10-11e4-8522-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 01:45:23.753350' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ssFldu8cc5OaN0v22W8qm6B37XzRwfRDjtRyXfH3F7M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 01:45:23.754766"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 01:45:23.755721"], ["id", "719ea5e0-cd10-11e4-ac59-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "719d6edc-cd10-11e4-bdbd-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "719d6edc-cd10-11e4-bdbd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "719f4734-cd10-11e4-8522-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "719f4734-cd10-11e4-8522-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('719d6edc-cd10-11e4-bdbd-705681abff85', '719e3d12-cd10-11e4-b420-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('719f4734-cd10-11e4-8522-705681abff85') Completed 200 OK in 18ms (Views: 8.5ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$aD0wTlHUDgFb5N4yBWIEAO1vopWju0.e7fheTIiEDOh.1zOjwx7x2"], ["created_at", "2015-03-18 01:45:23.777993"], ["updated_at", "2015-03-18 01:45:23.777993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$s0KDTSHMHM432fn/tpRLauam3IFWrxzrtULk.0ZKCPC05jIoP7thi"], ["created_at", "2015-03-18 01:45:23.782883"], ["updated_at", "2015-03-18 01:45:23.782883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.784529"], ["user_id", "71a54f94-cd10-11e4-ae53-705681abff85"], ["created_at", "2015-03-18 01:45:23.785290"], ["updated_at", "2015-03-18 01:45:23.785290"], ["token", "gaBwgKALRrb69-P29YRnq1-Qwxy9vBU4jQhuwSZut0M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.789186"], ["updated_at", "2015-03-18 01:45:23.789186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71a54f94-cd10-11e4-ae53-705681abff85' AND "clubhouse_memberships"."organization_id" = '71a70654-cd10-11e4-ad08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71a54f94-cd10-11e4-ae53-705681abff85"], ["organization_id", "71a70654-cd10-11e4-ad08-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.793135"], ["updated_at", "2015-03-18 01:45:23.793135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71a60b6e-cd10-11e4-9b7f-705681abff85' AND "clubhouse_memberships"."organization_id" = '71a70654-cd10-11e4-ad08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71a60b6e-cd10-11e4-9b7f-705681abff85"], ["organization_id", "71a70654-cd10-11e4-ad08-705681abff85"], ["created_at", "2015-03-18 01:45:23.796462"], ["updated_at", "2015-03-18 01:45:23.796462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$46klvWO0PutB0oE2qkFWv.DGB6PoE1D6m7ll12F2NzW8s4/.76EuG"], ["created_at", "2015-03-18 01:45:23.807136"], ["updated_at", "2015-03-18 01:45:23.807136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$ydsyi.7ly2vm0ajYtobDMeOvWEX2pRpgfOnEMJGTXriBl05INyfnq"], ["created_at", "2015-03-18 01:45:23.812162"], ["updated_at", "2015-03-18 01:45:23.812162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.814068"], ["user_id", "71a9c1aa-cd10-11e4-a1de-705681abff85"], ["created_at", "2015-03-18 01:45:23.814856"], ["updated_at", "2015-03-18 01:45:23.814856"], ["token", "zsJhRhbnL4jE24CZ_N1IEMHJshB0Plv_nTsCT8ppdKU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.819003"], ["updated_at", "2015-03-18 01:45:23.819003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71a9c1aa-cd10-11e4-a1de-705681abff85' AND "clubhouse_memberships"."organization_id" = '71ab8f44-cd10-11e4-84e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71a9c1aa-cd10-11e4-a1de-705681abff85"], ["organization_id", "71ab8f44-cd10-11e4-84e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.822695"], ["updated_at", "2015-03-18 01:45:23.822695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71aa89f0-cd10-11e4-b906-705681abff85' AND "clubhouse_memberships"."organization_id" = '71ab8f44-cd10-11e4-84e0-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71aa89f0-cd10-11e4-b906-705681abff85"], ["organization_id", "71ab8f44-cd10-11e4-84e0-705681abff85"], ["created_at", "2015-03-18 01:45:23.827192"], ["updated_at", "2015-03-18 01:45:23.827192"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (4.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$XDFftYrh/I5n/FX1IkiVz.4KCUpCgZrfSJvc83cY9dxYd1MDNWwDy"], ["created_at", "2015-03-18 01:45:23.844815"], ["updated_at", "2015-03-18 01:45:23.844815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$j4KukgbAJluEBdTJympOIeAOHqb3S6LmsALsO2KTmraIq8ZISMuc."], ["created_at", "2015-03-18 01:45:23.854808"], ["updated_at", "2015-03-18 01:45:23.854808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.857601"], ["user_id", "71af89f0-cd10-11e4-912f-705681abff85"], ["created_at", "2015-03-18 01:45:23.859084"], ["updated_at", "2015-03-18 01:45:23.859084"], ["token", "O499R2QjSpuY_3rXz0MC65FmJ95qY7kffnVUmGmAxdc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.866746"], ["updated_at", "2015-03-18 01:45:23.866746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71af89f0-cd10-11e4-912f-705681abff85' AND "clubhouse_memberships"."organization_id" = '71b2effa-cd10-11e4-9fdd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71af89f0-cd10-11e4-912f-705681abff85"], ["organization_id", "71b2effa-cd10-11e4-9fdd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.872009"], ["updated_at", "2015-03-18 01:45:23.872009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71b1107c-cd10-11e4-8fbb-705681abff85' AND "clubhouse_memberships"."organization_id" = '71b2effa-cd10-11e4-9fdd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71b1107c-cd10-11e4-8fbb-705681abff85"], ["organization_id", "71b2effa-cd10-11e4-9fdd-705681abff85"], ["created_at", "2015-03-18 01:45:23.876254"], ["updated_at", "2015-03-18 01:45:23.876254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/71b3ae04-cd10-11e4-a2b2-705681abff85" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"71b3ae04-cd10-11e4-a2b2-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 01:45:23.882526' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "O499R2QjSpuY_3rXz0MC65FmJ95qY7kffnVUmGmAxdc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 01:45:23.884059"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 01:45:23.885755"], ["id", "71b1c422-cd10-11e4-8e50-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71af89f0-cd10-11e4-912f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71af89f0-cd10-11e4-912f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71af89f0-cd10-11e4-912f-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$rDb3W6xAZhGcywtzmBhM9.eQgNYoxSiSuZTrkPPed2UdQgFbnfWQS"], ["created_at", "2015-03-18 01:45:23.901805"], ["updated_at", "2015-03-18 01:45:23.901805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$HPBDS46FMJ/cASZV47UTjuvlyo2Ua4W.pmWhGc6W5a4OhWP3L2sKO"], ["created_at", "2015-03-18 01:45:23.907159"], ["updated_at", "2015-03-18 01:45:23.907159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.909241"], ["user_id", "71b83834-cd10-11e4-914e-705681abff85"], ["created_at", "2015-03-18 01:45:23.910070"], ["updated_at", "2015-03-18 01:45:23.910070"], ["token", "PzuOKyRTPPluyBr6aBtoQgZkoAoFOD45HbMAVUSIdMI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:23.913857"], ["updated_at", "2015-03-18 01:45:23.913857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71b83834-cd10-11e4-914e-705681abff85' AND "clubhouse_memberships"."organization_id" = '71ba095c-cd10-11e4-94bd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71b83834-cd10-11e4-914e-705681abff85"], ["organization_id", "71ba095c-cd10-11e4-94bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:23.919404"], ["updated_at", "2015-03-18 01:45:23.919404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71b903f4-cd10-11e4-9846-705681abff85' AND "clubhouse_memberships"."organization_id" = '71ba095c-cd10-11e4-94bd-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71b903f4-cd10-11e4-9846-705681abff85"], ["organization_id", "71ba095c-cd10-11e4-94bd-705681abff85"], ["created_at", "2015-03-18 01:45:23.924817"], ["updated_at", "2015-03-18 01:45:23.924817"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/71bbcddc-cd10-11e4-878e-705681abff85" for 127.0.0.1 at 2015-03-17 18:45:23 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"71bbcddc-cd10-11e4-878e-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 01:45:23.975036' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PzuOKyRTPPluyBr6aBtoQgZkoAoFOD45HbMAVUSIdMI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 01:45:23.976785"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 01:45:23.978435"], ["id", "71b97e42-cd10-11e4-82c0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71b83834-cd10-11e4-914e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71b83834-cd10-11e4-914e-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71b83834-cd10-11e4-914e-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$YLy.6MaItdrTY0NGwizXG.d4Fsou.plskrIN4wovwIoZeqs6QkEGC"], ["created_at", "2015-03-18 01:45:23.991025"], ["updated_at", "2015-03-18 01:45:23.991025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$6UWfF/Mn2AUHPTtYuChwou4qM9Ebu2kCpByPUHMIXJxbIaJOzml.q"], ["created_at", "2015-03-18 01:45:23.996310"], ["updated_at", "2015-03-18 01:45:23.996310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:23.998172"], ["user_id", "71c5d2fa-cd10-11e4-9082-705681abff85"], ["created_at", "2015-03-18 01:45:23.999080"], ["updated_at", "2015-03-18 01:45:23.999080"], ["token", "9f-LvDeJA8nnupm3BoK98oEGc-nCe6mm7nvCTaMvRqo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:24.010692"], ["updated_at", "2015-03-18 01:45:24.010692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71c5d2fa-cd10-11e4-9082-705681abff85' AND "clubhouse_memberships"."organization_id" = '71c8d0cc-cd10-11e4-8340-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71c5d2fa-cd10-11e4-9082-705681abff85"], ["organization_id", "71c8d0cc-cd10-11e4-8340-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:24.014655"], ["updated_at", "2015-03-18 01:45:24.014655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71c69dca-cd10-11e4-9b9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '71c8d0cc-cd10-11e4-8340-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71c69dca-cd10-11e4-9b9f-705681abff85"], ["organization_id", "71c8d0cc-cd10-11e4-8340-705681abff85"], ["created_at", "2015-03-18 01:45:24.018357"], ["updated_at", "2015-03-18 01:45:24.018357"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$07KdKb2I55tt4hTsOt7ceOcDZxE06OJNgaqsuYBS3a.WCMkSLkbd2"], ["created_at", "2015-03-18 01:45:24.025422"], ["updated_at", "2015-03-18 01:45:24.025422"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:24.029441"], ["user_id", "71cb3ace-cd10-11e4-8470-705681abff85"], ["created_at", "2015-03-18 01:45:24.042368"], ["updated_at", "2015-03-18 01:45:24.042368"], ["token", "rpy2KgFAcaPsWl2VI9IIxhLgUrfSZ_0L1mB1brgtfwk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '71c8d0cc-cd10-11e4-8340-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "71c8d0cc-cd10-11e4-8340-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:24.047631"], ["updated_at", "2015-03-18 01:45:24.047631"], ["token", "XekCmfs5BPokBP12PPdDfukqNH2gqXDyVz0z4T3vCIU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-17 18:45:24 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$Q7s43fRcgBJQJs5eJfr0UOZ83he/EPcVpFVLMQh4lb/R7iaeUehe."], ["created_at", "2015-03-18 01:45:24.064041"], ["updated_at", "2015-03-18 01:45:24.064041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$evqHRAx2zDgRlQrFWx9bouTF5ZTNzdhao64BLlJximsR3vdXQqOg2"], ["created_at", "2015-03-18 01:45:24.069880"], ["updated_at", "2015-03-18 01:45:24.069880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:24.072080"], ["user_id", "71d1012a-cd10-11e4-a869-705681abff85"], ["created_at", "2015-03-18 01:45:24.073070"], ["updated_at", "2015-03-18 01:45:24.073070"], ["token", "8VmUfPVs9tVC8F5GqdY0YPft2QnpzXGDam2FlhP30fU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:24.077783"], ["updated_at", "2015-03-18 01:45:24.077783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71d1012a-cd10-11e4-a869-705681abff85' AND "clubhouse_memberships"."organization_id" = '71d31514-cd10-11e4-8653-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71d1012a-cd10-11e4-a869-705681abff85"], ["organization_id", "71d31514-cd10-11e4-8653-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:24.082034"], ["updated_at", "2015-03-18 01:45:24.082034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71d1e6da-cd10-11e4-9abe-705681abff85' AND "clubhouse_memberships"."organization_id" = '71d31514-cd10-11e4-8653-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71d1e6da-cd10-11e4-9abe-705681abff85"], ["organization_id", "71d31514-cd10-11e4-8653-705681abff85"], ["created_at", "2015-03-18 01:45:24.085654"], ["updated_at", "2015-03-18 01:45:24.085654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$a7quo7mrwTvLcPQLWUlYTO/Q5NtfxBC9I.RKlfSubncD6SREP50k."], ["created_at", "2015-03-18 01:45:24.090804"], ["updated_at", "2015-03-18 01:45:24.090804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:24.092563"], ["user_id", "71d50c70-cd10-11e4-b05e-705681abff85"], ["created_at", "2015-03-18 01:45:24.093670"], ["updated_at", "2015-03-18 01:45:24.093670"], ["token", "WkGPP1jjlNJlaL2U44a9WQGqBy4SMPv9_u5vADTVr0M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '71d31514-cd10-11e4-8653-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "71d31514-cd10-11e4-8653-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:24.098032"], ["updated_at", "2015-03-18 01:45:24.098032"], ["token", "HiHhvjzk0DZxZprSJsFE04T8km_PAbbSmg7KNwwwdYE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/71d31514-cd10-11e4-8653-705681abff85/memberships" for 127.0.0.1 at 2015-03-17 18:45:24 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"71d31514-cd10-11e4-8653-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 01:45:24.103412' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WkGPP1jjlNJlaL2U44a9WQGqBy4SMPv9_u5vADTVr0M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 01:45:24.104970"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 01:45:24.106216"], ["id", "71d58c5e-cd10-11e4-8775-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71d50c70-cd10-11e4-b05e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71d50c70-cd10-11e4-b05e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$BOA6t9eG1UYlbmgQmOaNA.L0h7d7JeFnXsazH21N5A61SrUB83qie"], ["created_at", "2015-03-18 01:45:24.118725"], ["updated_at", "2015-03-18 01:45:24.118725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$Z9aCslCkGfrLioyQ5bU1M.ygBnv1fcr3zH45esfR1UGHfIr1MV8eq"], ["created_at", "2015-03-18 01:45:24.126273"], ["updated_at", "2015-03-18 01:45:24.126273"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:24.129224"], ["user_id", "71d95bae-cd10-11e4-b50c-705681abff85"], ["created_at", "2015-03-18 01:45:24.130785"], ["updated_at", "2015-03-18 01:45:24.130785"], ["token", "cjPlhhr8zxigT0h0d_Uqdmho-YPAzI4nKurTwWlp5hA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 01:45:24.136338"], ["updated_at", "2015-03-18 01:45:24.136338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71d95bae-cd10-11e4-b50c-705681abff85' AND "clubhouse_memberships"."organization_id" = '71dbfc06-cd10-11e4-b69d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71d95bae-cd10-11e4-b50c-705681abff85"], ["organization_id", "71dbfc06-cd10-11e4-b69d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:24.141058"], ["updated_at", "2015-03-18 01:45:24.141058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71da8362-cd10-11e4-87aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '71dbfc06-cd10-11e4-b69d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71da8362-cd10-11e4-87aa-705681abff85"], ["organization_id", "71dbfc06-cd10-11e4-b69d-705681abff85"], ["created_at", "2015-03-18 01:45:24.145440"], ["updated_at", "2015-03-18 01:45:24.145440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$TDuUMWzocmq3yIlI51fxmO4ECfiB/BfefSUlv2GH53lMcBFRGYqJq"], ["created_at", "2015-03-18 01:45:24.150764"], ["updated_at", "2015-03-18 01:45:24.150764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 01:45:24.152573"], ["user_id", "71de3296-cd10-11e4-8472-705681abff85"], ["created_at", "2015-03-18 01:45:24.153342"], ["updated_at", "2015-03-18 01:45:24.153342"], ["token", "fq5F1hCs1-WrNc3KhkAxq-ns4rrRtlFedQ5N7I00w1Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '71dbfc06-cd10-11e4-b69d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "71dbfc06-cd10-11e4-b69d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 01:45:24.157675"], ["updated_at", "2015-03-18 01:45:24.157675"], ["token", "rURHr7jrtf8RblOWbRBccjhuca1WjpyyM5cMZk4TKz0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/71dbfc06-cd10-11e4-b69d-705681abff85/memberships" for 127.0.0.1 at 2015-03-17 18:45:24 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"rURHr7jrtf8RblOWbRBccjhuca1WjpyyM5cMZk4TKz0", "organization_id"=>"71dbfc06-cd10-11e4-b69d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 01:45:24.163436' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fq5F1hCs1-WrNc3KhkAxq-ns4rrRtlFedQ5N7I00w1Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 01:45:24.164971"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 01:45:24.165959"], ["id", "71de9fc4-cd10-11e4-839b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71de3296-cd10-11e4-8472-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "71de3296-cd10-11e4-8472-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "rURHr7jrtf8RblOWbRBccjhuca1WjpyyM5cMZk4TKz0"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "71dbfc06-cd10-11e4-b69d-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "71dbfc06-cd10-11e4-b69d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71de3296-cd10-11e4-8472-705681abff85' AND "clubhouse_memberships"."organization_id" = '71dbfc06-cd10-11e4-b69d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71de3296-cd10-11e4-8472-705681abff85"], ["admin", "t"], ["organization_id", "71dbfc06-cd10-11e4-b69d-705681abff85"], ["created_at", "2015-03-18 01:45:24.174709"], ["updated_at", "2015-03-18 01:45:24.174709"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "71df42b2-cd10-11e4-8c71-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.5ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (7.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$RMTnbZDe4iaZHj5ahh34.edETlsTVnwJ7N46UNUiM6NcCkdhN5Z32"], ["created_at", "2015-03-18 20:20:24.349687"], ["updated_at", "2015-03-18 20:20:24.349687"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$AWTfTODADsgbBz755.PnAurgTvr0ZL/Mka0Om/5OR0eCtcKoqaTWK"], ["created_at", "2015-03-18 20:20:24.381605"], ["updated_at", "2015-03-18 20:20:24.381605"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (18.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.392446"], ["user_id", "3581a34a-cdac-11e4-9b32-705681abff85"], ["created_at", "2015-03-18 20:20:24.399573"], ["updated_at", "2015-03-18 20:20:24.399573"], ["token", "qOYLb3QFxI1p8Y1X2n78WPqUfEyaMQKj4P4yrEKcm-c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (4.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:24.459135"], ["updated_at", "2015-03-18 20:20:24.459135"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3581a34a-cdac-11e4-9b32-705681abff85' AND "clubhouse_memberships"."organization_id" = '358f26e6-cdac-11e4-8149-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3581a34a-cdac-11e4-9b32-705681abff85"], ["organization_id", "358f26e6-cdac-11e4-8149-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.477226"], ["updated_at", "2015-03-18 20:20:24.477226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35834a88-cdac-11e4-940b-705681abff85' AND "clubhouse_memberships"."organization_id" = '358f26e6-cdac-11e4-8149-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35834a88-cdac-11e4-940b-705681abff85"], ["organization_id", "358f26e6-cdac-11e4-8149-705681abff85"], ["created_at", "2015-03-18 20:20:24.481001"], ["updated_at", "2015-03-18 20:20:24.481001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$fXm92Zq7KyL7EzRuUnL4WeMuSoeN8vTQC6vjPKS..jTf8mU7zqbbu"], ["created_at", "2015-03-18 20:20:24.485902"], ["updated_at", "2015-03-18 20:20:24.485902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.487643"], ["user_id", "35933312-cdac-11e4-ab38-705681abff85"], ["created_at", "2015-03-18 20:20:24.488561"], ["updated_at", "2015-03-18 20:20:24.488561"], ["token", "pCSluprQUbAiuYtP2lNJ8p_EODlUfmv4bvklglp7nDs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '358f26e6-cdac-11e4-8149-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "358f26e6-cdac-11e4-8149-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.500945"], ["updated_at", "2015-03-18 20:20:24.500945"], ["token", "hx9m1HPPfgZM2OdDDHs0TgNhfJyfiFWwOf0st4aPuYE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 13:20:24 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ot8Va6LcWWDiK0022jp60Oz2aeaUVL4RMJAqVHGCUYVMlLGpSBk0S"], ["created_at", "2015-03-18 20:20:24.529315"], ["updated_at", "2015-03-18 20:20:24.529315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$1e22uxtds1XMVRXkhq0A3u2EBf9Y9a3G54AOlyVa/NQ9dOc5iOJ9G"], ["created_at", "2015-03-18 20:20:24.533787"], ["updated_at", "2015-03-18 20:20:24.533787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.535302"], ["user_id", "3599d85c-cdac-11e4-86e1-705681abff85"], ["created_at", "2015-03-18 20:20:24.536098"], ["updated_at", "2015-03-18 20:20:24.536098"], ["token", "2nyQSG2C_TEAa53zY5_zuDwg6oWyKbHLgaqLOcvyHdE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:24.539794"], ["updated_at", "2015-03-18 20:20:24.539794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3599d85c-cdac-11e4-86e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '359b6d66-cdac-11e4-a7e4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3599d85c-cdac-11e4-86e1-705681abff85"], ["organization_id", "359b6d66-cdac-11e4-a7e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.543220"], ["updated_at", "2015-03-18 20:20:24.543220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '359a7fc8-cdac-11e4-9ebf-705681abff85' AND "clubhouse_memberships"."organization_id" = '359b6d66-cdac-11e4-a7e4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "359a7fc8-cdac-11e4-9ebf-705681abff85"], ["organization_id", "359b6d66-cdac-11e4-a7e4-705681abff85"], ["created_at", "2015-03-18 20:20:24.546281"], ["updated_at", "2015-03-18 20:20:24.546281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Ct70XYefJMBbCrqADzyfM.rSOQA8V9hMwJiHtBanV3NqavZfkMMAa"], ["created_at", "2015-03-18 20:20:24.550575"], ["updated_at", "2015-03-18 20:20:24.550575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.552398"], ["user_id", "359d1062-cdac-11e4-a813-705681abff85"], ["created_at", "2015-03-18 20:20:24.553796"], ["updated_at", "2015-03-18 20:20:24.553796"], ["token", "s4eNE7gKq3U7-SY_veeYeqkzSsvSOxGnwZChMZTvXJE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '359b6d66-cdac-11e4-a7e4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "359b6d66-cdac-11e4-a7e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.558606"], ["updated_at", "2015-03-18 20:20:24.558606"], ["token", "SMXqxPxD66mXpJFGHJ4HgNKOCOEvl5BqzglTXaVHmDw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:20:24 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:24.573208' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "s4eNE7gKq3U7-SY_veeYeqkzSsvSOxGnwZChMZTvXJE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:24.587403"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:24.588714"], ["id", "359dab26-cdac-11e4-8b8c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "359d1062-cdac-11e4-a813-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "359d1062-cdac-11e4-a813-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 40ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ovVqLU/ChTYJSpx.4MRIrOjQF6970RW5yo5B78x9L/BOZ4jEB6Kqy"], ["created_at", "2015-03-18 20:20:24.620075"], ["updated_at", "2015-03-18 20:20:24.620075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$LJ5f1XaV/I11lQzcvgpNk.N79CTRmR5UcWZ5bFHe2YfaN5C8933by"], ["created_at", "2015-03-18 20:20:24.624249"], ["updated_at", "2015-03-18 20:20:24.624249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (12.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.625709"], ["user_id", "35a7ad7e-cdac-11e4-bc51-705681abff85"], ["created_at", "2015-03-18 20:20:24.626478"], ["updated_at", "2015-03-18 20:20:24.626478"], ["token", "ZKAVBf9ZAQXAwAD7813NDIdCe4SurxR1si9tR4P401o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:24.642738"], ["updated_at", "2015-03-18 20:20:24.642738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35a7ad7e-cdac-11e4-bc51-705681abff85' AND "clubhouse_memberships"."organization_id" = '35ab2328-cdac-11e4-8b7a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35a7ad7e-cdac-11e4-bc51-705681abff85"], ["organization_id", "35ab2328-cdac-11e4-8b7a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.646197"], ["updated_at", "2015-03-18 20:20:24.646197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35a84bda-cdac-11e4-a91c-705681abff85' AND "clubhouse_memberships"."organization_id" = '35ab2328-cdac-11e4-8b7a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35a84bda-cdac-11e4-a91c-705681abff85"], ["organization_id", "35ab2328-cdac-11e4-8b7a-705681abff85"], ["created_at", "2015-03-18 20:20:24.649398"], ["updated_at", "2015-03-18 20:20:24.649398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$cq6te/7dEkBYcRtGy89WvepPmQbfO3TjDzEkMsZOnm/o8Sfoqa2RW"], ["created_at", "2015-03-18 20:20:24.654971"], ["updated_at", "2015-03-18 20:20:24.654971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.656570"], ["user_id", "35acff9a-cdac-11e4-91bb-705681abff85"], ["created_at", "2015-03-18 20:20:24.657610"], ["updated_at", "2015-03-18 20:20:24.657610"], ["token", "_71pOKh-QoavhR_jnb6kREJaov6QbQE5CypKUxln4pE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '35ab2328-cdac-11e4-8b7a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "35ab2328-cdac-11e4-8b7a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.661816"], ["updated_at", "2015-03-18 20:20:24.661816"], ["token", "Ljiu_hARG1hNS8x--BsT0g-UI4IMhaQxsY5rxpject0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:20:24 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Ljiu_hARG1hNS8x--BsT0g-UI4IMhaQxsY5rxpject0", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:24.669164' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_71pOKh-QoavhR_jnb6kREJaov6QbQE5CypKUxln4pE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:24.671665"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:24.673091"], ["id", "35ad6fc0-cdac-11e4-a671-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35acff9a-cdac-11e4-91bb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "35acff9a-cdac-11e4-91bb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "Ljiu_hARG1hNS8x--BsT0g-UI4IMhaQxsY5rxpject0"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35ab2328-cdac-11e4-8b7a-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35ab2328-cdac-11e4-8b7a-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35acff9a-cdac-11e4-91bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '35ab2328-cdac-11e4-8b7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35acff9a-cdac-11e4-91bb-705681abff85"], ["admin", "t"], ["organization_id", "35ab2328-cdac-11e4-8b7a-705681abff85"], ["created_at", "2015-03-18 20:20:24.688500"], ["updated_at", "2015-03-18 20:20:24.688500"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "35ae1ff6-cdac-11e4-b351-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 26ms (Views: 4.1ms | ActiveRecord: 5.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$igAUTFUfZYDrajfUi.xMR.6gDufok8glUHedisPoCZ197XYwhXW9u"], ["created_at", "2015-03-18 20:20:24.704481"], ["updated_at", "2015-03-18 20:20:24.704481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$oxWZ/Jys68nmPy2zr1pCeOQz2GubsQTj7veKGi7YEFve5HhMZs7te"], ["created_at", "2015-03-18 20:20:24.708816"], ["updated_at", "2015-03-18 20:20:24.708816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.710290"], ["user_id", "35b490ac-cdac-11e4-bff1-705681abff85"], ["created_at", "2015-03-18 20:20:24.711073"], ["updated_at", "2015-03-18 20:20:24.711073"], ["token", "2DEr9inx1K9uZ3OUNiHPr5LGjTV4VK7mXl8kcaxOdFQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:24.714559"], ["updated_at", "2015-03-18 20:20:24.714559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35b490ac-cdac-11e4-bff1-705681abff85' AND "clubhouse_memberships"."organization_id" = '35b61a30-cdac-11e4-afc9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35b490ac-cdac-11e4-bff1-705681abff85"], ["organization_id", "35b61a30-cdac-11e4-afc9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.718051"], ["updated_at", "2015-03-18 20:20:24.718051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35b53340-cdac-11e4-aa9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '35b61a30-cdac-11e4-afc9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35b53340-cdac-11e4-aa9c-705681abff85"], ["organization_id", "35b61a30-cdac-11e4-afc9-705681abff85"], ["created_at", "2015-03-18 20:20:24.721206"], ["updated_at", "2015-03-18 20:20:24.721206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/35b61a30-cdac-11e4-afc9-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:20:24 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"35b61a30-cdac-11e4-afc9-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:24.727679' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2DEr9inx1K9uZ3OUNiHPr5LGjTV4VK7mXl8kcaxOdFQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:24.729212"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:24.730271"], ["id", "35b59452-cdac-11e4-ac8e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35b490ac-cdac-11e4-bff1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "35b490ac-cdac-11e4-bff1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "35b61a30-cdac-11e4-afc9-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "35b61a30-cdac-11e4-afc9-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('35b490ac-cdac-11e4-bff1-705681abff85', '35b53340-cdac-11e4-aa9c-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('35b61a30-cdac-11e4-afc9-705681abff85') Completed 200 OK in 22ms (Views: 10.2ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$dmEkrBqYhsMMQPWn2h/uxO9PTJ66o6xD3ySybq5g8gBSf0fus2wQm"], ["created_at", "2015-03-18 20:20:24.756153"], ["updated_at", "2015-03-18 20:20:24.756153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$nGDV2lJ5h949SvDG3YNKnO8xyzYC5X7GqQ3ZeA5zJ1auMsr/pXGy."], ["created_at", "2015-03-18 20:20:24.760432"], ["updated_at", "2015-03-18 20:20:24.760432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.761964"], ["user_id", "35bc7060-cdac-11e4-b661-705681abff85"], ["created_at", "2015-03-18 20:20:24.762795"], ["updated_at", "2015-03-18 20:20:24.762795"], ["token", "srFgsOsKnIGkucpBLnaecbKEeGQ8hwvhd3ULv_rmDJg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:24.766245"], ["updated_at", "2015-03-18 20:20:24.766245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35bc7060-cdac-11e4-b661-705681abff85' AND "clubhouse_memberships"."organization_id" = '35bdf7c8-cdac-11e4-ae8b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35bc7060-cdac-11e4-b661-705681abff85"], ["organization_id", "35bdf7c8-cdac-11e4-ae8b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.769822"], ["updated_at", "2015-03-18 20:20:24.769822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35bd15ce-cdac-11e4-a250-705681abff85' AND "clubhouse_memberships"."organization_id" = '35bdf7c8-cdac-11e4-ae8b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35bd15ce-cdac-11e4-a250-705681abff85"], ["organization_id", "35bdf7c8-cdac-11e4-ae8b-705681abff85"], ["created_at", "2015-03-18 20:20:24.773129"], ["updated_at", "2015-03-18 20:20:24.773129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 13:20:24 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$1sG0bGgJEvSNKVqbuA.HXeHFuKCoI9u17.fRvN1roLBTAxPH4cCwi"], ["created_at", "2015-03-18 20:20:24.783580"], ["updated_at", "2015-03-18 20:20:24.783580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$gqntZsSUshU9IBHxLz8wa.Dc.RH0bhcblQPXBIywhf/CAM8Pu3m.O"], ["created_at", "2015-03-18 20:20:24.788586"], ["updated_at", "2015-03-18 20:20:24.788586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.790514"], ["user_id", "35c0a0c2-cdac-11e4-aa8f-705681abff85"], ["created_at", "2015-03-18 20:20:24.791320"], ["updated_at", "2015-03-18 20:20:24.791320"], ["token", "QY6dVq9OS0Qz789Fm2EpdyWejJhnM0tuPlX1OlLUxhg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:24.795233"], ["updated_at", "2015-03-18 20:20:24.795233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35c0a0c2-cdac-11e4-aa8f-705681abff85' AND "clubhouse_memberships"."organization_id" = '35c267f4-cdac-11e4-94c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35c0a0c2-cdac-11e4-aa8f-705681abff85"], ["organization_id", "35c267f4-cdac-11e4-94c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.800567"], ["updated_at", "2015-03-18 20:20:24.800567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35c16b24-cdac-11e4-b492-705681abff85' AND "clubhouse_memberships"."organization_id" = '35c267f4-cdac-11e4-94c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35c16b24-cdac-11e4-b492-705681abff85"], ["organization_id", "35c267f4-cdac-11e4-94c3-705681abff85"], ["created_at", "2015-03-18 20:20:24.804824"], ["updated_at", "2015-03-18 20:20:24.804824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$dH34AVpkSrrpw.841xa18.6XVzb7r8vkUyHOWbjD8Y6JnfpipAqbm"], ["created_at", "2015-03-18 20:20:24.809328"], ["updated_at", "2015-03-18 20:20:24.809328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.810918"], ["user_id", "35c48cbe-cdac-11e4-a472-705681abff85"], ["created_at", "2015-03-18 20:20:24.811709"], ["updated_at", "2015-03-18 20:20:24.811709"], ["token", "zICHSqDMh1_G8MNXVgrKyXn-CkAQ2atUVlb0Ld9gaDo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.6ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '35c267f4-cdac-11e4-94c3-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "35c267f4-cdac-11e4-94c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.827620"], ["updated_at", "2015-03-18 20:20:24.827620"], ["token", "P7YN1aJgwOQ2z-M9Q2ZPYIUnhkRvbSvZ-WsZjpqBVq4"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 13:20:24 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (2.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (24.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$lyIqb3AwOJQWoF1vGnW0/Obf3CuFGbxDKJhcmwG6zpiiaXW/0Hm4K"], ["created_at", "2015-03-18 20:20:24.858866"], ["updated_at", "2015-03-18 20:20:24.858866"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (3.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$ddKd5QgxdUdpT6K/H1WQfuCyLqqQXW0A.toWHF6wUBep3VvUOfJX2"], ["created_at", "2015-03-18 20:20:24.891457"], ["updated_at", "2015-03-18 20:20:24.891457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.897503"], ["user_id", "35cdb604-cdac-11e4-987b-705681abff85"], ["created_at", "2015-03-18 20:20:24.898815"], ["updated_at", "2015-03-18 20:20:24.898815"], ["token", "TuFvyrts6R5dldeKQbUqNWkXBkcfcPKg94zmgqhrUMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:24.902591"], ["updated_at", "2015-03-18 20:20:24.902591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35cdb604-cdac-11e4-987b-705681abff85' AND "clubhouse_memberships"."organization_id" = '35d2c8e2-cdac-11e4-b84a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35cdb604-cdac-11e4-987b-705681abff85"], ["organization_id", "35d2c8e2-cdac-11e4-b84a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.906382"], ["updated_at", "2015-03-18 20:20:24.906382"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35d1246a-cdac-11e4-a2a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '35d2c8e2-cdac-11e4-b84a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35d1246a-cdac-11e4-a2a5-705681abff85"], ["organization_id", "35d2c8e2-cdac-11e4-b84a-705681abff85"], ["created_at", "2015-03-18 20:20:24.909793"], ["updated_at", "2015-03-18 20:20:24.909793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (6.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$xgQG1lGzP4O6qHMdtmv1N.gZKf2RaQNrOQRI1nr.Z4E5MUuzagF4u"], ["created_at", "2015-03-18 20:20:24.930786"], ["updated_at", "2015-03-18 20:20:24.930786"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:24.935308"], ["user_id", "35d74584-cdac-11e4-aad9-705681abff85"], ["created_at", "2015-03-18 20:20:24.937793"], ["updated_at", "2015-03-18 20:20:24.937793"], ["token", "N8sSWd_ASh91NY481lRTASr2co-NI_FgjO7NIbFM9C4"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (2.0ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (6.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '35d2c8e2-cdac-11e4-b84a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "35d2c8e2-cdac-11e4-b84a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:24.962612"], ["updated_at", "2015-03-18 20:20:24.962612"], ["token", "hiLLatV9PGPtPFRqnJPjs1MmLWYgu1GTos8PctfWTTw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/35d2c8e2-cdac-11e4-b84a-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:20:24 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"35d2c8e2-cdac-11e4-b84a-705681abff85", "membership"=>{}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:24.973884' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N8sSWd_ASh91NY481lRTASr2co-NI_FgjO7NIbFM9C4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:24.978524"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:24.980051"], ["id", "35d8542e-cdac-11e4-8e4f-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35d74584-cdac-11e4-aad9-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "35d74584-cdac-11e4-aad9-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 19ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$VrgJhftmm/sTaeHzK1tBjOQP8UJsdKCxE1Q4Xv2ZLobhD6oHCbKOS"], ["created_at", "2015-03-18 20:20:25.001329"], ["updated_at", "2015-03-18 20:20:25.001329"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (2.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Fb5oQ.YO.8bX20yK92VV4.uByEAZ.Ven9GaTRKuqHWSOdFUz/3D2G"], ["created_at", "2015-03-18 20:20:25.018024"], ["updated_at", "2015-03-18 20:20:25.018024"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.024857"], ["user_id", "35e1fdee-cdac-11e4-b991-705681abff85"], ["created_at", "2015-03-18 20:20:25.037563"], ["updated_at", "2015-03-18 20:20:25.037563"], ["token", "TTyXzCD1wm04I19tdLG5qplGATX1fyz90PHTGhAB2O4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.050222"], ["updated_at", "2015-03-18 20:20:25.050222"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35e1fdee-cdac-11e4-b991-705681abff85' AND "clubhouse_memberships"."organization_id" = '35e95e86-cdac-11e4-8bb1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35e1fdee-cdac-11e4-b991-705681abff85"], ["organization_id", "35e95e86-cdac-11e4-8bb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.058830"], ["updated_at", "2015-03-18 20:20:25.058830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35e48a96-cdac-11e4-93bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '35e95e86-cdac-11e4-8bb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35e48a96-cdac-11e4-93bd-705681abff85"], ["organization_id", "35e95e86-cdac-11e4-8bb1-705681abff85"], ["created_at", "2015-03-18 20:20:25.063796"], ["updated_at", "2015-03-18 20:20:25.063796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$ZzkV5ioJLba.0zsIC3q0m.Fu/8NvfGVr9oUOkJaHyJzBPa0V2Ws8i"], ["created_at", "2015-03-18 20:20:25.071096"], ["updated_at", "2015-03-18 20:20:25.071096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.073587"], ["user_id", "35ec9498-cdac-11e4-9514-705681abff85"], ["created_at", "2015-03-18 20:20:25.074479"], ["updated_at", "2015-03-18 20:20:25.074479"], ["token", "ZO2sUoS9kIDB2jDh6E0i5dEqbwf6q8Q67mojChq4l2Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '35e95e86-cdac-11e4-8bb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "35e95e86-cdac-11e4-8bb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.081997"], ["updated_at", "2015-03-18 20:20:25.081997"], ["token", "9mBinxVxkZMHqiH4QhO8yogREco4ffKoUBLvMf7BOXA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/35e95e86-cdac-11e4-8bb1-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"9mBinxVxkZMHqiH4QhO8yogREco4ffKoUBLvMf7BOXA", "organization_id"=>"35e95e86-cdac-11e4-8bb1-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:25.088922' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZO2sUoS9kIDB2jDh6E0i5dEqbwf6q8Q67mojChq4l2Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:25.090357"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:25.091373"], ["id", "35ed1198-cdac-11e4-97e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35ec9498-cdac-11e4-9514-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "35ec9498-cdac-11e4-9514-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "9mBinxVxkZMHqiH4QhO8yogREco4ffKoUBLvMf7BOXA"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35e95e86-cdac-11e4-8bb1-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35e95e86-cdac-11e4-8bb1-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35ec9498-cdac-11e4-9514-705681abff85' AND "clubhouse_memberships"."organization_id" = '35e95e86-cdac-11e4-8bb1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35ec9498-cdac-11e4-9514-705681abff85"], ["admin", "t"], ["organization_id", "35e95e86-cdac-11e4-8bb1-705681abff85"], ["created_at", "2015-03-18 20:20:25.099457"], ["updated_at", "2015-03-18 20:20:25.099457"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "35ee3370-cdac-11e4-a6f7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.2ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$swJvUmcnkqr7ZQe0FVao..whyogQGP4PE56EM907rXwYy7KDOt21q"], ["created_at", "2015-03-18 20:20:25.109883"], ["updated_at", "2015-03-18 20:20:25.109883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$phIkJuf1uU/K3FDv.IqlcuwcSYYXP/BWycU/4m27a0pNPuBr2384C"], ["created_at", "2015-03-18 20:20:25.114384"], ["updated_at", "2015-03-18 20:20:25.114384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.116048"], ["user_id", "35f26a4e-cdac-11e4-b9a2-705681abff85"], ["created_at", "2015-03-18 20:20:25.118259"], ["updated_at", "2015-03-18 20:20:25.118259"], ["token", "meDr1dwRrZF9wCt_ahG3u4y-2LVU1Bro9Gt3_8D3vbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.126601"], ["updated_at", "2015-03-18 20:20:25.126601"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35f26a4e-cdac-11e4-b9a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '35f548a4-cdac-11e4-bb78-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35f26a4e-cdac-11e4-b9a2-705681abff85"], ["organization_id", "35f548a4-cdac-11e4-bb78-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.135261"], ["updated_at", "2015-03-18 20:20:25.135261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35f31bce-cdac-11e4-a6cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '35f548a4-cdac-11e4-bb78-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35f31bce-cdac-11e4-a6cb-705681abff85"], ["organization_id", "35f548a4-cdac-11e4-bb78-705681abff85"], ["created_at", "2015-03-18 20:20:25.138789"], ["updated_at", "2015-03-18 20:20:25.138789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$2WpS3AiLgdd9Kr82e2XX2eRK12WUIn28rcXdgCmArDxmNmD71HTd2"], ["created_at", "2015-03-18 20:20:25.150386"], ["updated_at", "2015-03-18 20:20:25.150386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$YyABGaElJdMw.BvYUYPYX.uqI.zhIRvdtlnCyrQGSCUtpKsandQqa"], ["created_at", "2015-03-18 20:20:25.156817"], ["updated_at", "2015-03-18 20:20:25.156817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.159391"], ["user_id", "35f8a6b6-cdac-11e4-ae66-705681abff85"], ["created_at", "2015-03-18 20:20:25.160570"], ["updated_at", "2015-03-18 20:20:25.160570"], ["token", "Yrvk_Dmj4DYJ1nVOkU-Yd7dUtAx4YIBPTocJbthWd1w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.166064"], ["updated_at", "2015-03-18 20:20:25.166064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35f8a6b6-cdac-11e4-ae66-705681abff85' AND "clubhouse_memberships"."organization_id" = '35fb083e-cdac-11e4-89c9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35f8a6b6-cdac-11e4-ae66-705681abff85"], ["organization_id", "35fb083e-cdac-11e4-89c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.170853"], ["updated_at", "2015-03-18 20:20:25.170853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35f9a494-cdac-11e4-8f2b-705681abff85' AND "clubhouse_memberships"."organization_id" = '35fb083e-cdac-11e4-89c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35f9a494-cdac-11e4-8f2b-705681abff85"], ["organization_id", "35fb083e-cdac-11e4-89c9-705681abff85"], ["created_at", "2015-03-18 20:20:25.174450"], ["updated_at", "2015-03-18 20:20:25.174450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/35fbb89c-cdac-11e4-b191-705681abff85" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"35fbb89c-cdac-11e4-b191-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:25.179308' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Yrvk_Dmj4DYJ1nVOkU-Yd7dUtAx4YIBPTocJbthWd1w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:25.180791"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:25.181815"], ["id", "35fa439a-cdac-11e4-bac8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35f8a6b6-cdac-11e4-ae66-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "35f8a6b6-cdac-11e4-ae66-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "35f8a6b6-cdac-11e4-ae66-705681abff85"]] Completed 500 Internal Server Error in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (2.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$zzW579xHNv86Wr9AN2e.B.rJV1fWj6FYfJiaVSEuLNNunc0nss4Dq"], ["created_at", "2015-03-18 20:20:25.206391"], ["updated_at", "2015-03-18 20:20:25.206391"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$B1zKEVxbBzdys7vxfunaZ.Tg5oiIz0EHgnkX6TF9lUhjLn5BOP792"], ["created_at", "2015-03-18 20:20:25.214605"], ["updated_at", "2015-03-18 20:20:25.214605"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.218663"], ["user_id", "36014f5a-cdac-11e4-b0e4-705681abff85"], ["created_at", "2015-03-18 20:20:25.220098"], ["updated_at", "2015-03-18 20:20:25.220098"], ["token", "iimDPwY8_znu0uSVPWYfkbJtsOvrmrQBl-pHDg-qSB4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.225540"], ["updated_at", "2015-03-18 20:20:25.225540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36014f5a-cdac-11e4-b0e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '36042626-cdac-11e4-a172-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "36014f5a-cdac-11e4-b0e4-705681abff85"], ["organization_id", "36042626-cdac-11e4-a172-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.230355"], ["updated_at", "2015-03-18 20:20:25.230355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '360280e6-cdac-11e4-b177-705681abff85' AND "clubhouse_memberships"."organization_id" = '36042626-cdac-11e4-a172-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "360280e6-cdac-11e4-b177-705681abff85"], ["organization_id", "36042626-cdac-11e4-a172-705681abff85"], ["created_at", "2015-03-18 20:20:25.234142"], ["updated_at", "2015-03-18 20:20:25.234142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/360561ee-cdac-11e4-815f-705681abff85" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"360561ee-cdac-11e4-815f-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:25.239143' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iimDPwY8_znu0uSVPWYfkbJtsOvrmrQBl-pHDg-qSB4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:25.240855"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:25.242372"], ["id", "36035854-cdac-11e4-85a0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36014f5a-cdac-11e4-b0e4-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36014f5a-cdac-11e4-b0e4-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36014f5a-cdac-11e4-b0e4-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$TcTKGBZ8jcBHUd//AFOjLeD3E6vwjpTY/xPL.rlxzmclH3YorZBLu"], ["created_at", "2015-03-18 20:20:25.252140"], ["updated_at", "2015-03-18 20:20:25.252140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$W9fq/voc67ebjgs/mTDPiuz4ToYCyPMEUHd68NJcyH4OBtzlNcHda"], ["created_at", "2015-03-18 20:20:25.257147"], ["updated_at", "2015-03-18 20:20:25.257147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.258823"], ["user_id", "36081ede-cdac-11e4-9d8b-705681abff85"], ["created_at", "2015-03-18 20:20:25.259609"], ["updated_at", "2015-03-18 20:20:25.259609"], ["token", "PL9ZR_JOf5V9rVpaBl4RFEjmKARMRv98F4rQKxzFTLM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.264516"], ["updated_at", "2015-03-18 20:20:25.264516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36081ede-cdac-11e4-9d8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '360a05f0-cdac-11e4-9cb0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "36081ede-cdac-11e4-9d8b-705681abff85"], ["organization_id", "360a05f0-cdac-11e4-9cb0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.268424"], ["updated_at", "2015-03-18 20:20:25.268424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3608e314-cdac-11e4-99c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '360a05f0-cdac-11e4-9cb0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3608e314-cdac-11e4-99c5-705681abff85"], ["organization_id", "360a05f0-cdac-11e4-9cb0-705681abff85"], ["created_at", "2015-03-18 20:20:25.272677"], ["updated_at", "2015-03-18 20:20:25.272677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:25.277575' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PL9ZR_JOf5V9rVpaBl4RFEjmKARMRv98F4rQKxzFTLM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:25.279464"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:25.281398"], ["id", "360949c6-cdac-11e4-9b57-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36081ede-cdac-11e4-9d8b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36081ede-cdac-11e4-9d8b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "360a05f0-cdac-11e4-9cb0-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('36081ede-cdac-11e4-9d8b-705681abff85', '3608e314-cdac-11e4-99c5-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('360a05f0-cdac-11e4-9cb0-705681abff85') Completed 200 OK in 14ms (Views: 3.7ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$5KuuVZl9ydKIVspldX720OM.gBIsnVB3w1TU.5eb4Q1epYAXa.xi."], ["created_at", "2015-03-18 20:20:25.299536"], ["updated_at", "2015-03-18 20:20:25.299536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$kJCjZJGnto3CRTMc4JWymewWyli8AtNN4kcE8.5Zf9Z4wa3ljsAJW"], ["created_at", "2015-03-18 20:20:25.304492"], ["updated_at", "2015-03-18 20:20:25.304492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.306131"], ["user_id", "360f5e74-cdac-11e4-9031-705681abff85"], ["created_at", "2015-03-18 20:20:25.306964"], ["updated_at", "2015-03-18 20:20:25.306964"], ["token", "CTM9JQ_TlSn3svoQeUa2JB5AvVQYxlcR6DKeTYkyQWM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.310369"], ["updated_at", "2015-03-18 20:20:25.310369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '360f5e74-cdac-11e4-9031-705681abff85' AND "clubhouse_memberships"."organization_id" = '361103c8-cdac-11e4-b0fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "360f5e74-cdac-11e4-9031-705681abff85"], ["organization_id", "361103c8-cdac-11e4-b0fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.313938"], ["updated_at", "2015-03-18 20:20:25.313938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36101bac-cdac-11e4-8abd-705681abff85' AND "clubhouse_memberships"."organization_id" = '361103c8-cdac-11e4-b0fa-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36101bac-cdac-11e4-8abd-705681abff85"], ["organization_id", "361103c8-cdac-11e4-b0fa-705681abff85"], ["created_at", "2015-03-18 20:20:25.316941"], ["updated_at", "2015-03-18 20:20:25.316941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$KgX0MhEmLcD6yHwiO8FKqO.HCknA2s787b/XlFQstNDrNTXdgqWHC"], ["created_at", "2015-03-18 20:20:25.328617"], ["updated_at", "2015-03-18 20:20:25.328617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$rFaGcoT77BumcpjroDHaaOAf4puTKKE7JYvPPyZJ.tk/fv6YY3Hre"], ["created_at", "2015-03-18 20:20:25.333380"], ["updated_at", "2015-03-18 20:20:25.333380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.334987"], ["user_id", "3613d49a-cdac-11e4-a9a8-705681abff85"], ["created_at", "2015-03-18 20:20:25.335727"], ["updated_at", "2015-03-18 20:20:25.335727"], ["token", "sJKn0oLLTA_CBjeurNvvt_Q1qCok_ZyXAPUQ4wJSDEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.340451"], ["updated_at", "2015-03-18 20:20:25.340451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3613d49a-cdac-11e4-a9a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '36159672-cdac-11e4-8c40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3613d49a-cdac-11e4-a9a8-705681abff85"], ["organization_id", "36159672-cdac-11e4-8c40-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.343865"], ["updated_at", "2015-03-18 20:20:25.343865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '361482aa-cdac-11e4-8457-705681abff85' AND "clubhouse_memberships"."organization_id" = '36159672-cdac-11e4-8c40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "361482aa-cdac-11e4-8457-705681abff85"], ["organization_id", "36159672-cdac-11e4-8c40-705681abff85"], ["created_at", "2015-03-18 20:20:25.346934"], ["updated_at", "2015-03-18 20:20:25.346934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/36161b10-cdac-11e4-ae8e-705681abff85" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"36161b10-cdac-11e4-ae8e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:25.351603' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sJKn0oLLTA_CBjeurNvvt_Q1qCok_ZyXAPUQ4wJSDEQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:25.353017"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:25.354197"], ["id", "3614e506-cdac-11e4-86be-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3613d49a-cdac-11e4-a9a8-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3613d49a-cdac-11e4-a9a8-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "3613d49a-cdac-11e4-a9a8-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "3613d49a-cdac-11e4-a9a8-705681abff85"], ["id", "36161b10-cdac-11e4-ae8e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "36159672-cdac-11e4-8c40-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3613d49a-cdac-11e4-a9a8-705681abff85"]] Completed 200 OK in 11ms (Views: 2.4ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$lETKcnLzOQA43ELZTEmMX.Vcr5VGjqPW8X1hgQy2hNM8ichXCN46u"], ["created_at", "2015-03-18 20:20:25.368356"], ["updated_at", "2015-03-18 20:20:25.368356"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$JQnPKXgZXVykUKmsxSvfDOe8d1.CvckW.OeXWmA8hn8AdciCJMGBO"], ["created_at", "2015-03-18 20:20:25.373595"], ["updated_at", "2015-03-18 20:20:25.373595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.375202"], ["user_id", "3619ec36-cdac-11e4-931b-705681abff85"], ["created_at", "2015-03-18 20:20:25.376006"], ["updated_at", "2015-03-18 20:20:25.376006"], ["token", "NspCwWC5SlF_FAVI3hAWc8IwaKXmixGIEBCGCPQEyMU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.379550"], ["updated_at", "2015-03-18 20:20:25.379550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3619ec36-cdac-11e4-931b-705681abff85' AND "clubhouse_memberships"."organization_id" = '361b8d02-cdac-11e4-8d77-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3619ec36-cdac-11e4-931b-705681abff85"], ["organization_id", "361b8d02-cdac-11e4-8d77-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.382915"], ["updated_at", "2015-03-18 20:20:25.382915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '361aa66c-cdac-11e4-a721-705681abff85' AND "clubhouse_memberships"."organization_id" = '361b8d02-cdac-11e4-8d77-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "361aa66c-cdac-11e4-a721-705681abff85"], ["organization_id", "361b8d02-cdac-11e4-8d77-705681abff85"], ["created_at", "2015-03-18 20:20:25.393473"], ["updated_at", "2015-03-18 20:20:25.393473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$11IDQ6s.yI1pvlbcLTb4qOgudsNVHG8ud.7HAvd/Up03BdshU7IMO"], ["created_at", "2015-03-18 20:20:25.404278"], ["updated_at", "2015-03-18 20:20:25.404278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$FFtR7EblcCnz3hdtFobkUeVSupIfLiSSL9MqVCw2t1NwZD3TzXCl."], ["created_at", "2015-03-18 20:20:25.408543"], ["updated_at", "2015-03-18 20:20:25.408543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.410131"], ["user_id", "361f55ae-cdac-11e4-a017-705681abff85"], ["created_at", "2015-03-18 20:20:25.410904"], ["updated_at", "2015-03-18 20:20:25.410904"], ["token", "2fD_swQHYuw8_SLtf9uPmf9eAKKl9d0Ui6uSyEeixpA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.414421"], ["updated_at", "2015-03-18 20:20:25.414421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '361f55ae-cdac-11e4-a017-705681abff85' AND "clubhouse_memberships"."organization_id" = '3620e004-cdac-11e4-84d5-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "361f55ae-cdac-11e4-a017-705681abff85"], ["organization_id", "3620e004-cdac-11e4-84d5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.417674"], ["updated_at", "2015-03-18 20:20:25.417674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '361ff8ec-cdac-11e4-b873-705681abff85' AND "clubhouse_memberships"."organization_id" = '3620e004-cdac-11e4-84d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "361ff8ec-cdac-11e4-b873-705681abff85"], ["organization_id", "3620e004-cdac-11e4-84d5-705681abff85"], ["created_at", "2015-03-18 20:20:25.421995"], ["updated_at", "2015-03-18 20:20:25.421995"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$41YQmDB8MrpsOZV6Gbn5L.VNo4Yz9vhNf6Woq6fBvExHUCfb/qWr6"], ["created_at", "2015-03-18 20:20:25.432335"], ["updated_at", "2015-03-18 20:20:25.432335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$4uWGXVWzOFY.p7UhRntC.OqatxShn/1D8KydzBmYE9lNLftTlNjuS"], ["created_at", "2015-03-18 20:20:25.437881"], ["updated_at", "2015-03-18 20:20:25.437881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.439544"], ["user_id", "36239f9c-cdac-11e4-8759-705681abff85"], ["created_at", "2015-03-18 20:20:25.440340"], ["updated_at", "2015-03-18 20:20:25.440340"], ["token", "ccNby_JhW3FyEYRjWGlPn2v6ny3oTcnGmNEogbpXcPM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.444345"], ["updated_at", "2015-03-18 20:20:25.444345"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36239f9c-cdac-11e4-8759-705681abff85' AND "clubhouse_memberships"."organization_id" = '36257b46-cdac-11e4-978b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "36239f9c-cdac-11e4-8759-705681abff85"], ["organization_id", "36257b46-cdac-11e4-978b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.448669"], ["updated_at", "2015-03-18 20:20:25.448669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3624778c-cdac-11e4-a5af-705681abff85' AND "clubhouse_memberships"."organization_id" = '36257b46-cdac-11e4-978b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3624778c-cdac-11e4-a5af-705681abff85"], ["organization_id", "36257b46-cdac-11e4-978b-705681abff85"], ["created_at", "2015-03-18 20:20:25.452335"], ["updated_at", "2015-03-18 20:20:25.452335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/36261a60-cdac-11e4-b83a-705681abff85" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"36261a60-cdac-11e4-b83a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:25.458820' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ccNby_JhW3FyEYRjWGlPn2v6ny3oTcnGmNEogbpXcPM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:25.460369"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:25.461386"], ["id", "3624daba-cdac-11e4-ac3a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36239f9c-cdac-11e4-8759-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36239f9c-cdac-11e4-8759-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "36239f9c-cdac-11e4-8759-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$TWwvkNEA.BmY4qtD.C94X..6leoEN67shyGNIVe8/ReHHMhQWKDvS"], ["created_at", "2015-03-18 20:20:25.475115"], ["updated_at", "2015-03-18 20:20:25.475115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$pjWAf9f78HgM2JjFeJ6gSOVYYrgiES4sC9yBO2h.AV9/1kyQE0AQO"], ["created_at", "2015-03-18 20:20:25.480006"], ["updated_at", "2015-03-18 20:20:25.480006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:20:25.481600"], ["user_id", "362a2574-cdac-11e4-9405-705681abff85"], ["created_at", "2015-03-18 20:20:25.482490"], ["updated_at", "2015-03-18 20:20:25.482490"], ["token", "1vZeMib2barh8JVzs4hbuniVNu61lP3TdLuVJYOyT6U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:20:25.493070"], ["updated_at", "2015-03-18 20:20:25.493070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '362a2574-cdac-11e4-9405-705681abff85' AND "clubhouse_memberships"."organization_id" = '362ce0c0-cdac-11e4-a50d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "362a2574-cdac-11e4-9405-705681abff85"], ["organization_id", "362ce0c0-cdac-11e4-a50d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:20:25.496891"], ["updated_at", "2015-03-18 20:20:25.496891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '362ae20c-cdac-11e4-89e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '362ce0c0-cdac-11e4-a50d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "362ae20c-cdac-11e4-89e2-705681abff85"], ["organization_id", "362ce0c0-cdac-11e4-a50d-705681abff85"], ["created_at", "2015-03-18 20:20:25.500203"], ["updated_at", "2015-03-18 20:20:25.500203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/362df5c8-cdac-11e4-a301-705681abff85" for 127.0.0.1 at 2015-03-18 13:20:25 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"362df5c8-cdac-11e4-a301-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:20:25.505468' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1vZeMib2barh8JVzs4hbuniVNu61lP3TdLuVJYOyT6U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:20:25.507300"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:20:25.508352"], ["id", "362b4d3c-cdac-11e4-942d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "362a2574-cdac-11e4-9405-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "362a2574-cdac-11e4-9405-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "362a2574-cdac-11e4-9405-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$IjnQ/53O8MMHTqh9MAP67O2Cd8DEjYYusyM4i/5fGczfvZk1iAmke"], ["created_at", "2015-03-18 20:21:18.263154"], ["updated_at", "2015-03-18 20:21:18.263154"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$usESk3vgY1pdBfjikXM2oeKj.izTaC2pS6Hjdgig1lJ7Dizxn6ZYG"], ["created_at", "2015-03-18 20:21:18.294823"], ["updated_at", "2015-03-18 20:21:18.294823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.305187"], ["user_id", "55a4d750-cdac-11e4-8d21-705681abff85"], ["created_at", "2015-03-18 20:21:18.344327"], ["updated_at", "2015-03-18 20:21:18.344327"], ["token", "PyATRw7jDo0Cf21Zxoh-0oemVCkSfvtxQtolzS6lLCg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.360294"], ["updated_at", "2015-03-18 20:21:18.360294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55a4d750-cdac-11e4-8d21-705681abff85' AND "clubhouse_memberships"."organization_id" = '55afd092-cdac-11e4-9690-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55a4d750-cdac-11e4-8d21-705681abff85"], ["organization_id", "55afd092-cdac-11e4-9690-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.370887"], ["updated_at", "2015-03-18 20:21:18.370887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55a5c9e4-cdac-11e4-a890-705681abff85' AND "clubhouse_memberships"."organization_id" = '55afd092-cdac-11e4-9690-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55a5c9e4-cdac-11e4-a890-705681abff85"], ["organization_id", "55afd092-cdac-11e4-9690-705681abff85"], ["created_at", "2015-03-18 20:21:18.376770"], ["updated_at", "2015-03-18 20:21:18.376770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 13:21:18 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$ZC.xZP.YSBZm99dExek0Eu5RaHkpdFCFvtU0ncgk1vsDlbYJcAdim"], ["created_at", "2015-03-18 20:21:18.405436"], ["updated_at", "2015-03-18 20:21:18.405436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$W/z842CxND//rgjWyu3cnOgVFWyvo2Ki/QXzdGUscS2c5QEs7M8im"], ["created_at", "2015-03-18 20:21:18.410214"], ["updated_at", "2015-03-18 20:21:18.410214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.411775"], ["user_id", "55b6bb3c-cdac-11e4-8076-705681abff85"], ["created_at", "2015-03-18 20:21:18.412540"], ["updated_at", "2015-03-18 20:21:18.412540"], ["token", "7Cc9Rl-Y5nP6EiN-hqkbnOhLK5El_TSEORdCofVrUYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.416087"], ["updated_at", "2015-03-18 20:21:18.416087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55b6bb3c-cdac-11e4-8076-705681abff85' AND "clubhouse_memberships"."organization_id" = '55b84d8a-cdac-11e4-881d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55b6bb3c-cdac-11e4-8076-705681abff85"], ["organization_id", "55b84d8a-cdac-11e4-881d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.419546"], ["updated_at", "2015-03-18 20:21:18.419546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55b76410-cdac-11e4-b5c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '55b84d8a-cdac-11e4-881d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55b76410-cdac-11e4-b5c5-705681abff85"], ["organization_id", "55b84d8a-cdac-11e4-881d-705681abff85"], ["created_at", "2015-03-18 20:21:18.422622"], ["updated_at", "2015-03-18 20:21:18.422622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/55b946e0-cdac-11e4-b708-705681abff85" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"55b946e0-cdac-11e4-b708-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:18.432552' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7Cc9Rl-Y5nP6EiN-hqkbnOhLK5El_TSEORdCofVrUYc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:18.439538"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:18.440824"], ["id", "55b7c7c0-cdac-11e4-bc2a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55b6bb3c-cdac-11e4-8076-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55b6bb3c-cdac-11e4-8076-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55b6bb3c-cdac-11e4-8076-705681abff85"]] Completed 500 Internal Server Error in 32ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$2jkk9vak28aJgtg1klf1l.h5XzZBgyDQi8CDcbTql4E3hLxvcR8Jq"], ["created_at", "2015-03-18 20:21:18.469808"], ["updated_at", "2015-03-18 20:21:18.469808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$uJ5lDEx5Cba17yfCM4xM3eSM6nhd3BngDAxjhyo4Po3et9151bID2"], ["created_at", "2015-03-18 20:21:18.474092"], ["updated_at", "2015-03-18 20:21:18.474092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.475769"], ["user_id", "55c08022-cdac-11e4-94a0-705681abff85"], ["created_at", "2015-03-18 20:21:18.476586"], ["updated_at", "2015-03-18 20:21:18.476586"], ["token", "tV3z16sDU1CC4xBemnM09kHa6A0kJIYQKKdXpBam7SQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.480089"], ["updated_at", "2015-03-18 20:21:18.480089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55c08022-cdac-11e4-94a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '55c20ca8-cdac-11e4-b0f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55c08022-cdac-11e4-94a0-705681abff85"], ["organization_id", "55c20ca8-cdac-11e4-b0f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.483289"], ["updated_at", "2015-03-18 20:21:18.483289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55c12284-cdac-11e4-acfc-705681abff85' AND "clubhouse_memberships"."organization_id" = '55c20ca8-cdac-11e4-b0f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55c12284-cdac-11e4-acfc-705681abff85"], ["organization_id", "55c20ca8-cdac-11e4-b0f2-705681abff85"], ["created_at", "2015-03-18 20:21:18.486361"], ["updated_at", "2015-03-18 20:21:18.486361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/55c28a48-cdac-11e4-9166-705681abff85" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"55c28a48-cdac-11e4-9166-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:18.492457' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tV3z16sDU1CC4xBemnM09kHa6A0kJIYQKKdXpBam7SQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:18.493899"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:18.494831"], ["id", "55c18dc8-cdac-11e4-959e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55c08022-cdac-11e4-94a0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55c08022-cdac-11e4-94a0-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55c08022-cdac-11e4-94a0-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$7Ktn84J7yxD5B2ZnfCJ8buebKJZAXjxcjQW9EWS6um/1.5VugUVZO"], ["created_at", "2015-03-18 20:21:18.507328"], ["updated_at", "2015-03-18 20:21:18.507328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$GeLYP6mWINADHrkwnHd8QeB3sfWpkzE.jQmJ2KS7fAGIZVnqWcd4W"], ["created_at", "2015-03-18 20:21:18.512441"], ["updated_at", "2015-03-18 20:21:18.512441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.514086"], ["user_id", "55c64796-cdac-11e4-b902-705681abff85"], ["created_at", "2015-03-18 20:21:18.514876"], ["updated_at", "2015-03-18 20:21:18.514876"], ["token", "qeXLBgB81f0iK88eIMhYEQZtytcLqSYX42QqYTyva2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.518310"], ["updated_at", "2015-03-18 20:21:18.518310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55c64796-cdac-11e4-b902-705681abff85' AND "clubhouse_memberships"."organization_id" = '55c7e150-cdac-11e4-94a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55c64796-cdac-11e4-b902-705681abff85"], ["organization_id", "55c7e150-cdac-11e4-94a7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.521575"], ["updated_at", "2015-03-18 20:21:18.521575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55c6ffe2-cdac-11e4-aaa4-705681abff85' AND "clubhouse_memberships"."organization_id" = '55c7e150-cdac-11e4-94a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55c6ffe2-cdac-11e4-aaa4-705681abff85"], ["organization_id", "55c7e150-cdac-11e4-94a7-705681abff85"], ["created_at", "2015-03-18 20:21:18.524898"], ["updated_at", "2015-03-18 20:21:18.524898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$NQCyoCKu6j09rqwSq7wv5.wHg4MkCOI7aGnVMgMSv2BQP5oNpyLYG"], ["created_at", "2015-03-18 20:21:18.537357"], ["updated_at", "2015-03-18 20:21:18.537357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$nV5eTYF9bN7uwhQ8EYU0aOWMbzYPnYdutGqM0CbE/JWYud78Hujwq"], ["created_at", "2015-03-18 20:21:18.541536"], ["updated_at", "2015-03-18 20:21:18.541536"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.543906"], ["user_id", "55cacdac-cdac-11e4-a1c7-705681abff85"], ["created_at", "2015-03-18 20:21:18.544841"], ["updated_at", "2015-03-18 20:21:18.544841"], ["token", "24KVC3dzYIxr7Owmy6TNvChQCASNr95SlRtAEyKLCWc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.548972"], ["updated_at", "2015-03-18 20:21:18.548972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55cacdac-cdac-11e4-a1c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '55cc910a-cdac-11e4-8c97-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55cacdac-cdac-11e4-a1c7-705681abff85"], ["organization_id", "55cc910a-cdac-11e4-8c97-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.552147"], ["updated_at", "2015-03-18 20:21:18.552147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55cb6c30-cdac-11e4-a81b-705681abff85' AND "clubhouse_memberships"."organization_id" = '55cc910a-cdac-11e4-8c97-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55cb6c30-cdac-11e4-a81b-705681abff85"], ["organization_id", "55cc910a-cdac-11e4-8c97-705681abff85"], ["created_at", "2015-03-18 20:21:18.555188"], ["updated_at", "2015-03-18 20:21:18.555188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/55cc910a-cdac-11e4-8c97-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"55cc910a-cdac-11e4-8c97-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:18.560370' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "24KVC3dzYIxr7Owmy6TNvChQCASNr95SlRtAEyKLCWc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:18.561737"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:18.562736"], ["id", "55cc0366-cdac-11e4-87be-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55cacdac-cdac-11e4-a1c7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55cacdac-cdac-11e4-a1c7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "55cc910a-cdac-11e4-8c97-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "55cc910a-cdac-11e4-8c97-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('55cacdac-cdac-11e4-a1c7-705681abff85', '55cb6c30-cdac-11e4-a81b-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('55cc910a-cdac-11e4-8c97-705681abff85') Completed 200 OK in 21ms (Views: 11.8ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$wzwSZGRLCFVjIBub60ReeO8OO.K0q1QACJwTQdUdUp9pSPworFLdO"], ["created_at", "2015-03-18 20:21:18.590594"], ["updated_at", "2015-03-18 20:21:18.590594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$NpFDC6jt3uSoIEm8GMgDSuqNgiZhGPR.JNk29AuZqhrub4Iykflbq"], ["created_at", "2015-03-18 20:21:18.594970"], ["updated_at", "2015-03-18 20:21:18.594970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.596441"], ["user_id", "55d2eec4-cdac-11e4-be72-705681abff85"], ["created_at", "2015-03-18 20:21:18.597227"], ["updated_at", "2015-03-18 20:21:18.597227"], ["token", "ad_-PpUpzHCURCarsCzTHBV7HQAmxy3T1_3dPmK2ztA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.600615"], ["updated_at", "2015-03-18 20:21:18.600615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55d2eec4-cdac-11e4-be72-705681abff85' AND "clubhouse_memberships"."organization_id" = '55d47168-cdac-11e4-9349-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55d2eec4-cdac-11e4-be72-705681abff85"], ["organization_id", "55d47168-cdac-11e4-9349-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.603746"], ["updated_at", "2015-03-18 20:21:18.603746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55d393f6-cdac-11e4-b198-705681abff85' AND "clubhouse_memberships"."organization_id" = '55d47168-cdac-11e4-9349-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55d393f6-cdac-11e4-b198-705681abff85"], ["organization_id", "55d47168-cdac-11e4-9349-705681abff85"], ["created_at", "2015-03-18 20:21:18.607013"], ["updated_at", "2015-03-18 20:21:18.607013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$pNqMom.iYHsJ1tcZBrTnEuNQZE1Z3ioC.tW68yHPdXlRZkBLpQc3y"], ["created_at", "2015-03-18 20:21:18.616876"], ["updated_at", "2015-03-18 20:21:18.616876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$t7Jc6mup1Ke9CXUnsrX/6uPvUZ5BHLlKi1tM3DcwsQDBjQszTPgCG"], ["created_at", "2015-03-18 20:21:18.621633"], ["updated_at", "2015-03-18 20:21:18.621633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.623526"], ["user_id", "55d6f1ae-cdac-11e4-9188-705681abff85"], ["created_at", "2015-03-18 20:21:18.624351"], ["updated_at", "2015-03-18 20:21:18.624351"], ["token", "oVzFiRQv7EdM9b27zbVZb5hh64WBpa77-mPki34XU8w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.628941"], ["updated_at", "2015-03-18 20:21:18.628941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55d6f1ae-cdac-11e4-9188-705681abff85' AND "clubhouse_memberships"."organization_id" = '55d8c5f6-cdac-11e4-8049-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55d6f1ae-cdac-11e4-9188-705681abff85"], ["organization_id", "55d8c5f6-cdac-11e4-8049-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.632488"], ["updated_at", "2015-03-18 20:21:18.632488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55d7ae00-cdac-11e4-9264-705681abff85' AND "clubhouse_memberships"."organization_id" = '55d8c5f6-cdac-11e4-8049-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55d7ae00-cdac-11e4-9264-705681abff85"], ["organization_id", "55d8c5f6-cdac-11e4-8049-705681abff85"], ["created_at", "2015-03-18 20:21:18.635757"], ["updated_at", "2015-03-18 20:21:18.635757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/55d9ce4c-cdac-11e4-aea6-705681abff85" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"55d9ce4c-cdac-11e4-aea6-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:18.640607' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oVzFiRQv7EdM9b27zbVZb5hh64WBpa77-mPki34XU8w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:18.642109"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:18.643091"], ["id", "55d82e52-cdac-11e4-aa59-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55d6f1ae-cdac-11e4-9188-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55d6f1ae-cdac-11e4-9188-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55d6f1ae-cdac-11e4-9188-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$RCApCSBQzhSLsrE5gFWwA.aywJeNh/BT.qbZFMqUtn3ffxNq6zSUq"], ["created_at", "2015-03-18 20:21:18.656256"], ["updated_at", "2015-03-18 20:21:18.656256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$hT6SJFq0eO2OO35mZvmjnujfnOF3OPAIyB/zR2KJ8MpJQx/9ZeJ7y"], ["created_at", "2015-03-18 20:21:18.661255"], ["updated_at", "2015-03-18 20:21:18.661255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.663403"], ["user_id", "55dcf590-cdac-11e4-90c6-705681abff85"], ["created_at", "2015-03-18 20:21:18.664303"], ["updated_at", "2015-03-18 20:21:18.664303"], ["token", "vm8at4EYSC9Nn1-dQqywrtFbypaNJv1TUP8MOM7u-FQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.668212"], ["updated_at", "2015-03-18 20:21:18.668212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55dcf590-cdac-11e4-90c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '55dec37a-cdac-11e4-9308-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55dcf590-cdac-11e4-90c6-705681abff85"], ["organization_id", "55dec37a-cdac-11e4-9308-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.678558"], ["updated_at", "2015-03-18 20:21:18.678558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55ddbf3e-cdac-11e4-8767-705681abff85' AND "clubhouse_memberships"."organization_id" = '55dec37a-cdac-11e4-9308-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55ddbf3e-cdac-11e4-8767-705681abff85"], ["organization_id", "55dec37a-cdac-11e4-9308-705681abff85"], ["created_at", "2015-03-18 20:21:18.683104"], ["updated_at", "2015-03-18 20:21:18.683104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/55e0592e-cdac-11e4-8db4-705681abff85" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"55e0592e-cdac-11e4-8db4-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:18.689220' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vm8at4EYSC9Nn1-dQqywrtFbypaNJv1TUP8MOM7u-FQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:18.690646"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:18.691628"], ["id", "55de3874-cdac-11e4-bbb2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55dcf590-cdac-11e4-90c6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55dcf590-cdac-11e4-90c6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55dcf590-cdac-11e4-90c6-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$sSdcOTUYrwxlGFBVfeDlougK/7b.QHILD.E5P8NBRfDQUgJm15Lhq"], ["created_at", "2015-03-18 20:21:18.703735"], ["updated_at", "2015-03-18 20:21:18.703735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$WobPOz/vKLJkEn93amg6V.LQhusyOPzqwSZp56l6hXHKKrunqHkAi"], ["created_at", "2015-03-18 20:21:18.708971"], ["updated_at", "2015-03-18 20:21:18.708971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.711756"], ["user_id", "55e42edc-cdac-11e4-942d-705681abff85"], ["created_at", "2015-03-18 20:21:18.712739"], ["updated_at", "2015-03-18 20:21:18.712739"], ["token", "MgEf-QZkIvNKdYalrIRDIbD-2Y2A2h5G4WtmtItF6LM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.716312"], ["updated_at", "2015-03-18 20:21:18.716312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55e42edc-cdac-11e4-942d-705681abff85' AND "clubhouse_memberships"."organization_id" = '55e61832-cdac-11e4-9bc9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55e42edc-cdac-11e4-942d-705681abff85"], ["organization_id", "55e61832-cdac-11e4-9bc9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.719520"], ["updated_at", "2015-03-18 20:21:18.719520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55e515f4-cdac-11e4-907b-705681abff85' AND "clubhouse_memberships"."organization_id" = '55e61832-cdac-11e4-9bc9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55e515f4-cdac-11e4-907b-705681abff85"], ["organization_id", "55e61832-cdac-11e4-9bc9-705681abff85"], ["created_at", "2015-03-18 20:21:18.723215"], ["updated_at", "2015-03-18 20:21:18.723215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$4P1271wRopld86zlaumajeDBc1WpVKurld38/M8xzMC.nriZC3fEG"], ["created_at", "2015-03-18 20:21:18.727426"], ["updated_at", "2015-03-18 20:21:18.727426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.728927"], ["user_id", "55e7cb3c-cdac-11e4-92c1-705681abff85"], ["created_at", "2015-03-18 20:21:18.729667"], ["updated_at", "2015-03-18 20:21:18.729667"], ["token", "jP7dqlgJpdfBb5RTXTIuBxP67r0Zlgt2tFZoTWy8X88"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '55e61832-cdac-11e4-9bc9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "55e61832-cdac-11e4-9bc9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.740090"], ["updated_at", "2015-03-18 20:21:18.740090"], ["token", "6LG5S58UHMrLSK9jL3-ZVkN_XRcd2XW9qI2SD2hSUMg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$NbIZzi/y8nATKRk9O1xDfedalqDBg2EFhLhKM3/hVJDblkgL2z73W"], ["created_at", "2015-03-18 20:21:18.759478"], ["updated_at", "2015-03-18 20:21:18.759478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$vFsWCgMGQfFwLxa24baZyulsOXoytWPJUvB.vVsAuxcqibyFcZ4iS"], ["created_at", "2015-03-18 20:21:18.765092"], ["updated_at", "2015-03-18 20:21:18.765092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.766795"], ["user_id", "55ecc768-cdac-11e4-a7cc-705681abff85"], ["created_at", "2015-03-18 20:21:18.767705"], ["updated_at", "2015-03-18 20:21:18.767705"], ["token", "noq8YmMUyerodYig0dRIHb3ZXiAfxwVeclrVCI6Kyn0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.771136"], ["updated_at", "2015-03-18 20:21:18.771136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55ecc768-cdac-11e4-a7cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '55ee7540-cdac-11e4-bf3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55ecc768-cdac-11e4-a7cc-705681abff85"], ["organization_id", "55ee7540-cdac-11e4-bf3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.774434"], ["updated_at", "2015-03-18 20:21:18.774434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55ed8cc0-cdac-11e4-8f1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '55ee7540-cdac-11e4-bf3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55ed8cc0-cdac-11e4-8f1a-705681abff85"], ["organization_id", "55ee7540-cdac-11e4-bf3f-705681abff85"], ["created_at", "2015-03-18 20:21:18.777598"], ["updated_at", "2015-03-18 20:21:18.777598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$m.yqxzdPeHsJt3eFm90pZOjp538KgiXsYzXnoYcBLxj0Wh6dF1RhO"], ["created_at", "2015-03-18 20:21:18.782261"], ["updated_at", "2015-03-18 20:21:18.782261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.786043"], ["user_id", "55f028f4-cdac-11e4-83f8-705681abff85"], ["created_at", "2015-03-18 20:21:18.786850"], ["updated_at", "2015-03-18 20:21:18.786850"], ["token", "I_fFnwoKSMhO9QkbqqPP4bCQuv-rk3PvBxYWPsyRYZk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '55ee7540-cdac-11e4-bf3f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "55ee7540-cdac-11e4-bf3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.791289"], ["updated_at", "2015-03-18 20:21:18.791289"], ["token", "Q0EOySaHnO2Mx3-nfWxnP_fvbSlxJ8PhEDFf0ZJn-H8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/55ee7540-cdac-11e4-bf3f-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Q0EOySaHnO2Mx3-nfWxnP_fvbSlxJ8PhEDFf0ZJn-H8", "organization_id"=>"55ee7540-cdac-11e4-bf3f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:18.796795' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "I_fFnwoKSMhO9QkbqqPP4bCQuv-rk3PvBxYWPsyRYZk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:18.798197"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:18.799150"], ["id", "55f0e91a-cdac-11e4-be14-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55f028f4-cdac-11e4-83f8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55f028f4-cdac-11e4-83f8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "Q0EOySaHnO2Mx3-nfWxnP_fvbSlxJ8PhEDFf0ZJn-H8"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "55ee7540-cdac-11e4-bf3f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "55ee7540-cdac-11e4-bf3f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55f028f4-cdac-11e4-83f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '55ee7540-cdac-11e4-bf3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55f028f4-cdac-11e4-83f8-705681abff85"], ["admin", "t"], ["organization_id", "55ee7540-cdac-11e4-bf3f-705681abff85"], ["created_at", "2015-03-18 20:21:18.809494"], ["updated_at", "2015-03-18 20:21:18.809494"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "55f1911c-cdac-11e4-85be-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.1ms | ActiveRecord: 2.7ms)  (3.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$lMgTtfwHKht4JMnq.E60oOpfcEwHxEZNpyqkKkTW89BsVnH1xnNRq"], ["created_at", "2015-03-18 20:21:18.836321"], ["updated_at", "2015-03-18 20:21:18.836321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$vOqrHOwZbUrco8BZWJi/VOdgsCnDMTUeReWayaWMu76CWSE9JyIiu"], ["created_at", "2015-03-18 20:21:18.843063"], ["updated_at", "2015-03-18 20:21:18.843063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.845581"], ["user_id", "55f88666-cdac-11e4-b5c4-705681abff85"], ["created_at", "2015-03-18 20:21:18.846742"], ["updated_at", "2015-03-18 20:21:18.846742"], ["token", "sz7crg_ucQFEhDce5xQlw5XEL9MdCi5f_WBABsH0LFc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.853082"], ["updated_at", "2015-03-18 20:21:18.853082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55f88666-cdac-11e4-b5c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '55fb05e4-cdac-11e4-bfbb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "55f88666-cdac-11e4-b5c4-705681abff85"], ["organization_id", "55fb05e4-cdac-11e4-bfbb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.858115"], ["updated_at", "2015-03-18 20:21:18.858115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55f9832c-cdac-11e4-8d0e-705681abff85' AND "clubhouse_memberships"."organization_id" = '55fb05e4-cdac-11e4-bfbb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55f9832c-cdac-11e4-8d0e-705681abff85"], ["organization_id", "55fb05e4-cdac-11e4-bfbb-705681abff85"], ["created_at", "2015-03-18 20:21:18.865631"], ["updated_at", "2015-03-18 20:21:18.865631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (12.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$ObOm4OrL.gb0lZdiR9Yi9uNUUpQDqIqJxfC9oh6BzLHgKWebzmdra"], ["created_at", "2015-03-18 20:21:18.872507"], ["updated_at", "2015-03-18 20:21:18.872507"]]  (3.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.890917"], ["user_id", "55ffcc28-cdac-11e4-8084-705681abff85"], ["created_at", "2015-03-18 20:21:18.892341"], ["updated_at", "2015-03-18 20:21:18.892341"], ["token", "EDlRbepgAs4lXeOyen2wq5JYebRPXTq0to0EDz9WW1U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '55fb05e4-cdac-11e4-bfbb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "55fb05e4-cdac-11e4-bfbb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.898505"], ["updated_at", "2015-03-18 20:21:18.898505"], ["token", "SKa948AhrI24D12KSfdBVL17R1u4kMd1yPhCiepWssc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/55fb05e4-cdac-11e4-bfbb-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"55fb05e4-cdac-11e4-bfbb-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:18.903666' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EDlRbepgAs4lXeOyen2wq5JYebRPXTq0to0EDz9WW1U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:18.905087"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:18.906077"], ["id", "5601242e-cdac-11e4-907f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55ffcc28-cdac-11e4-8084-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "55ffcc28-cdac-11e4-8084-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$H0/77yVl.82cxEnwJsla1eGMCLD7t5ytN1zOd68QpGThkflDT.WLO"], ["created_at", "2015-03-18 20:21:18.916406"], ["updated_at", "2015-03-18 20:21:18.916406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$/9.JqwvS0YYe.S.eGHYDqe0dmwq8hainziQ3O4h1E6oWLcXAkPXUa"], ["created_at", "2015-03-18 20:21:18.922316"], ["updated_at", "2015-03-18 20:21:18.922316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.923937"], ["user_id", "5604b274-cdac-11e4-b7a1-705681abff85"], ["created_at", "2015-03-18 20:21:18.924703"], ["updated_at", "2015-03-18 20:21:18.924703"], ["token", "v0pHmh8wgW-Et-c0zAXzgjK7MWNUEc4AyyTf3TTUyRI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.928351"], ["updated_at", "2015-03-18 20:21:18.928351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5604b274-cdac-11e4-b7a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '56067474-cdac-11e4-a28d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5604b274-cdac-11e4-b7a1-705681abff85"], ["organization_id", "56067474-cdac-11e4-a28d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.931672"], ["updated_at", "2015-03-18 20:21:18.931672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56058a32-cdac-11e4-aacc-705681abff85' AND "clubhouse_memberships"."organization_id" = '56067474-cdac-11e4-a28d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56058a32-cdac-11e4-aacc-705681abff85"], ["organization_id", "56067474-cdac-11e4-a28d-705681abff85"], ["created_at", "2015-03-18 20:21:18.934840"], ["updated_at", "2015-03-18 20:21:18.934840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$B9cb9KwlwfLpASD1psoOSOIIPYg2I4Mw89ZE2E2XM6e3BoIoeEheS"], ["created_at", "2015-03-18 20:21:18.939164"], ["updated_at", "2015-03-18 20:21:18.939164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.940747"], ["user_id", "560819be-cdac-11e4-9a66-705681abff85"], ["created_at", "2015-03-18 20:21:18.941511"], ["updated_at", "2015-03-18 20:21:18.941511"], ["token", "PXVzR2v-q7Dm8lsYKXmyyTp2Wk9APneGTa4_9F7tUdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '56067474-cdac-11e4-a28d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "56067474-cdac-11e4-a28d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.945154"], ["updated_at", "2015-03-18 20:21:18.945154"], ["token", "3uCZM7rt5jeDvIE3tpF6mc6jeUeGEvRXVVpuvjVNJgM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$AyMdY24Vbhfj.UWsCs7JyeDPb7aLTnIGPIxRWJbZZDdxDwpQJQBEy"], ["created_at", "2015-03-18 20:21:18.955931"], ["updated_at", "2015-03-18 20:21:18.955931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$UFSNSc6aUrVCYLvo4G03yeJjZwfjrgRccgojWwD8BbGWZ7p1oKanu"], ["created_at", "2015-03-18 20:21:18.960787"], ["updated_at", "2015-03-18 20:21:18.960787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.962624"], ["user_id", "560aaab2-cdac-11e4-a272-705681abff85"], ["created_at", "2015-03-18 20:21:18.963449"], ["updated_at", "2015-03-18 20:21:18.963449"], ["token", "_Qv8f-t1PWe3v69vHHkRJnKoeMJFCgqUrXuGTROT6x8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:18.966977"], ["updated_at", "2015-03-18 20:21:18.966977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '560aaab2-cdac-11e4-a272-705681abff85' AND "clubhouse_memberships"."organization_id" = '560c5830-cdac-11e4-bab6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "560aaab2-cdac-11e4-a272-705681abff85"], ["organization_id", "560c5830-cdac-11e4-bab6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.970173"], ["updated_at", "2015-03-18 20:21:18.970173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '560b7168-cdac-11e4-9835-705681abff85' AND "clubhouse_memberships"."organization_id" = '560c5830-cdac-11e4-bab6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "560b7168-cdac-11e4-9835-705681abff85"], ["organization_id", "560c5830-cdac-11e4-bab6-705681abff85"], ["created_at", "2015-03-18 20:21:18.973173"], ["updated_at", "2015-03-18 20:21:18.973173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$RJsVMtEaqJy1xm5dFu4SBursaC6CEP/IDIPcDL.9QhkIp3/C9n6oa"], ["created_at", "2015-03-18 20:21:18.977412"], ["updated_at", "2015-03-18 20:21:18.977412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:18.978909"], ["user_id", "560def74-cdac-11e4-ba5e-705681abff85"], ["created_at", "2015-03-18 20:21:18.979638"], ["updated_at", "2015-03-18 20:21:18.979638"], ["token", "iG4vbfzClddw8vNrdkEO_c24ctrF86hlwzY9Jhl4alk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '560c5830-cdac-11e4-bab6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "560c5830-cdac-11e4-bab6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:18.983216"], ["updated_at", "2015-03-18 20:21:18.983216"], ["token", "Zg6ZXmjkb8dJ8DPiLRsFVJicPpqmnNMq7HmtpfnoqHk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:21:18 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Zg6ZXmjkb8dJ8DPiLRsFVJicPpqmnNMq7HmtpfnoqHk", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:18.989425' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iG4vbfzClddw8vNrdkEO_c24ctrF86hlwzY9Jhl4alk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:18.991615"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:18.993211"], ["id", "560e4c12-cdac-11e4-ad25-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "560def74-cdac-11e4-ba5e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "560def74-cdac-11e4-ba5e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "Zg6ZXmjkb8dJ8DPiLRsFVJicPpqmnNMq7HmtpfnoqHk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "560c5830-cdac-11e4-bab6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "560c5830-cdac-11e4-bab6-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '560def74-cdac-11e4-ba5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '560c5830-cdac-11e4-bab6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "560def74-cdac-11e4-ba5e-705681abff85"], ["admin", "t"], ["organization_id", "560c5830-cdac-11e4-bab6-705681abff85"], ["created_at", "2015-03-18 20:21:19.001775"], ["updated_at", "2015-03-18 20:21:19.001775"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "560ed786-cdac-11e4-87ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.0ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$ZE50Q7JGr4ahfNiVvoLiOupV8/4B2gBnf.hYVOTrPJIqXx2FrYy0C"], ["created_at", "2015-03-18 20:21:19.011830"], ["updated_at", "2015-03-18 20:21:19.011830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$f0OLGcWCpclEe5XQ9dLhNe90t47WXv2dE1GT0AF5pX96f3s08GGZa"], ["created_at", "2015-03-18 20:21:19.016051"], ["updated_at", "2015-03-18 20:21:19.016051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:19.017583"], ["user_id", "561333da-cdac-11e4-86ae-705681abff85"], ["created_at", "2015-03-18 20:21:19.018337"], ["updated_at", "2015-03-18 20:21:19.018337"], ["token", "VMti462GphQlVst-giZH7kzqnzQYlEBO0DYYAPQG1aY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:19.021873"], ["updated_at", "2015-03-18 20:21:19.021873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '561333da-cdac-11e4-86ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '5614b89a-cdac-11e4-9e0a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "561333da-cdac-11e4-86ae-705681abff85"], ["organization_id", "5614b89a-cdac-11e4-9e0a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:19.025083"], ["updated_at", "2015-03-18 20:21:19.025083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5613d4c0-cdac-11e4-b27f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5614b89a-cdac-11e4-9e0a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5613d4c0-cdac-11e4-b27f-705681abff85"], ["organization_id", "5614b89a-cdac-11e4-9e0a-705681abff85"], ["created_at", "2015-03-18 20:21:19.028163"], ["updated_at", "2015-03-18 20:21:19.028163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$oMbeMNbCeCrOq1E4GqEXquHvChDDyoOMHQqRk0Cq9g1eg.Uk4QeTu"], ["created_at", "2015-03-18 20:21:19.032447"], ["updated_at", "2015-03-18 20:21:19.032447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:19.034214"], ["user_id", "56165d6c-cdac-11e4-a2fa-705681abff85"], ["created_at", "2015-03-18 20:21:19.035014"], ["updated_at", "2015-03-18 20:21:19.035014"], ["token", "naTCAYpPgttc0LSxevta3MgD5OCcCDGaSSFNSzbnjqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '5614b89a-cdac-11e4-9e0a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "5614b89a-cdac-11e4-9e0a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:19.038829"], ["updated_at", "2015-03-18 20:21:19.038829"], ["token", "9rVkgrUKt3Xil29k1nWDwAoldQOK88y8Jaui6CfSooc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:21:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:19.043468' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "naTCAYpPgttc0LSxevta3MgD5OCcCDGaSSFNSzbnjqk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:19.045340"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:19.047458"], ["id", "5616c1b2-cdac-11e4-927b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56165d6c-cdac-11e4-a2fa-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "56165d6c-cdac-11e4-a2fa-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$Fx.FNmmiErgrZ5pjdffc2upN62d.pYs/K2qMfovS4akh78y3gNWMK"], ["created_at", "2015-03-18 20:21:19.058365"], ["updated_at", "2015-03-18 20:21:19.058365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$Dtg7R40QCVoQ0161OHiT9evo5JqYKSujWgVjZDF2hWj78Eeg6CR1S"], ["created_at", "2015-03-18 20:21:19.063244"], ["updated_at", "2015-03-18 20:21:19.063244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:19.064981"], ["user_id", "561a4ee0-cdac-11e4-8210-705681abff85"], ["created_at", "2015-03-18 20:21:19.065754"], ["updated_at", "2015-03-18 20:21:19.065754"], ["token", "gl6rNrnT8ZzX-VuIWJFRHcbN11DbznLlLUsvMlR9Apo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:19.069157"], ["updated_at", "2015-03-18 20:21:19.069157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '561a4ee0-cdac-11e4-8210-705681abff85' AND "clubhouse_memberships"."organization_id" = '561bef02-cdac-11e4-9341-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "561a4ee0-cdac-11e4-8210-705681abff85"], ["organization_id", "561bef02-cdac-11e4-9341-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:19.072461"], ["updated_at", "2015-03-18 20:21:19.072461"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '561b0dee-cdac-11e4-8563-705681abff85' AND "clubhouse_memberships"."organization_id" = '561bef02-cdac-11e4-9341-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "561b0dee-cdac-11e4-8563-705681abff85"], ["organization_id", "561bef02-cdac-11e4-9341-705681abff85"], ["created_at", "2015-03-18 20:21:19.083851"], ["updated_at", "2015-03-18 20:21:19.083851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 13:21:19 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$9vx1yvnuXmvVS2YcBxnNxOmZQ47wtR4nYUCmJ5yQ07x2Fpm/PH8sm"], ["created_at", "2015-03-18 20:21:19.093890"], ["updated_at", "2015-03-18 20:21:19.093890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$fGRgCeJJFWf3KiAyfDh/feiovfKxo3QdEZkyL06E6j.WOoNcVoxAq"], ["created_at", "2015-03-18 20:21:19.098608"], ["updated_at", "2015-03-18 20:21:19.098608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:19.100361"], ["user_id", "561fb880-cdac-11e4-bee8-705681abff85"], ["created_at", "2015-03-18 20:21:19.101177"], ["updated_at", "2015-03-18 20:21:19.101177"], ["token", "zG5kqSQiT5exwYGGOfH10r2zljYZB-MPoMLruTww0YU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:19.104870"], ["updated_at", "2015-03-18 20:21:19.104870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '561fb880-cdac-11e4-bee8-705681abff85' AND "clubhouse_memberships"."organization_id" = '5621632e-cdac-11e4-b313-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "561fb880-cdac-11e4-bee8-705681abff85"], ["organization_id", "5621632e-cdac-11e4-b313-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:19.108173"], ["updated_at", "2015-03-18 20:21:19.108173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56206f50-cdac-11e4-be45-705681abff85' AND "clubhouse_memberships"."organization_id" = '5621632e-cdac-11e4-b313-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56206f50-cdac-11e4-be45-705681abff85"], ["organization_id", "5621632e-cdac-11e4-b313-705681abff85"], ["created_at", "2015-03-18 20:21:19.112084"], ["updated_at", "2015-03-18 20:21:19.112084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/5621e2c2-cdac-11e4-8385-705681abff85" for 127.0.0.1 at 2015-03-18 13:21:19 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"5621e2c2-cdac-11e4-8385-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:19.116526' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zG5kqSQiT5exwYGGOfH10r2zljYZB-MPoMLruTww0YU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:19.118411"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:19.120254"], ["id", "5620dba2-cdac-11e4-adf8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "561fb880-cdac-11e4-bee8-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "561fb880-cdac-11e4-bee8-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "561fb880-cdac-11e4-bee8-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "561fb880-cdac-11e4-bee8-705681abff85"], ["id", "5621e2c2-cdac-11e4-8385-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5621632e-cdac-11e4-b313-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "561fb880-cdac-11e4-bee8-705681abff85"]] Completed 200 OK in 13ms (Views: 2.3ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$BKDzaFhvg9u23ZYzRlmMWeHQMwGsfue30nkObPRI1F/DYiWlvVxzK"], ["created_at", "2015-03-18 20:21:19.134923"], ["updated_at", "2015-03-18 20:21:19.134923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$B9VRFTBlZ4IY7NiR.9neeuJRvNtUJ9DAKRFbddBT9.Jm/yQnv7tui"], ["created_at", "2015-03-18 20:21:19.139249"], ["updated_at", "2015-03-18 20:21:19.139249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:19.140751"], ["user_id", "5625fbbe-cdac-11e4-8832-705681abff85"], ["created_at", "2015-03-18 20:21:19.141509"], ["updated_at", "2015-03-18 20:21:19.141509"], ["token", "PWs4SIZ0An1Hb1yYtIAbjV0sgLLteIy89OUUIgDdToQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:19.144899"], ["updated_at", "2015-03-18 20:21:19.144899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5625fbbe-cdac-11e4-8832-705681abff85' AND "clubhouse_memberships"."organization_id" = '56277cb4-cdac-11e4-8fbe-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5625fbbe-cdac-11e4-8832-705681abff85"], ["organization_id", "56277cb4-cdac-11e4-8fbe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:19.148081"], ["updated_at", "2015-03-18 20:21:19.148081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5626a0d2-cdac-11e4-9deb-705681abff85' AND "clubhouse_memberships"."organization_id" = '56277cb4-cdac-11e4-8fbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5626a0d2-cdac-11e4-9deb-705681abff85"], ["organization_id", "56277cb4-cdac-11e4-8fbe-705681abff85"], ["created_at", "2015-03-18 20:21:19.151287"], ["updated_at", "2015-03-18 20:21:19.151287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 13:21:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$cqteFR3A4oofSBZQtsicCe.CcfH9aps0HND3lv8b0dwdRVXB7Ffo2"], ["created_at", "2015-03-18 20:21:19.161218"], ["updated_at", "2015-03-18 20:21:19.161218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$bLF/Y2oE7R6dUBciYZHQqu1wk00AveaFjo30P8ZR4ijAd71oX8.MC"], ["created_at", "2015-03-18 20:21:19.165467"], ["updated_at", "2015-03-18 20:21:19.165467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:19.167648"], ["user_id", "562a002e-cdac-11e4-b7f7-705681abff85"], ["created_at", "2015-03-18 20:21:19.168491"], ["updated_at", "2015-03-18 20:21:19.168491"], ["token", "gXPbmF-cPD3Q7Wrpxbm5iwSjKCGtnrR8ttT94d_Jv4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:19.171956"], ["updated_at", "2015-03-18 20:21:19.171956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '562a002e-cdac-11e4-b7f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '562ba668-cdac-11e4-9ef1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "562a002e-cdac-11e4-b7f7-705681abff85"], ["organization_id", "562ba668-cdac-11e4-9ef1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:19.175412"], ["updated_at", "2015-03-18 20:21:19.175412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '562ab226-cdac-11e4-ab18-705681abff85' AND "clubhouse_memberships"."organization_id" = '562ba668-cdac-11e4-9ef1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "562ab226-cdac-11e4-ab18-705681abff85"], ["organization_id", "562ba668-cdac-11e4-9ef1-705681abff85"], ["created_at", "2015-03-18 20:21:19.179327"], ["updated_at", "2015-03-18 20:21:19.179327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:21:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:19.183678' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gXPbmF-cPD3Q7Wrpxbm5iwSjKCGtnrR8ttT94d_Jv4E"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:19.185716"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:19.187132"], ["id", "562b222e-cdac-11e4-ad00-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "562a002e-cdac-11e4-b7f7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "562a002e-cdac-11e4-b7f7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "562ba668-cdac-11e4-9ef1-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('562a002e-cdac-11e4-b7f7-705681abff85', '562ab226-cdac-11e4-ab18-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('562ba668-cdac-11e4-9ef1-705681abff85') Completed 200 OK in 15ms (Views: 4.1ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (40.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$DJfpdApeWlfde4QSNEJ6yOWdOJlblg8t5EL4ws.jW6j3GqCc7Y126"], ["created_at", "2015-03-18 20:21:43.801854"], ["updated_at", "2015-03-18 20:21:43.801854"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$1Qvg2jaTN6juefHkNZTF5Oi8qN90ICLEI0TjpkqLMGNO1NlQxbiIS"], ["created_at", "2015-03-18 20:21:43.848952"], ["updated_at", "2015-03-18 20:21:43.848952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:43.858526"], ["user_id", "64e00e38-cdac-11e4-a72e-705681abff85"], ["created_at", "2015-03-18 20:21:43.894662"], ["updated_at", "2015-03-18 20:21:43.894662"], ["token", "XiCxT2JsyENvxgdpVvq_gGwMLNXmpv-tFRcu07gLyt8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:43.904417"], ["updated_at", "2015-03-18 20:21:43.904417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64e00e38-cdac-11e4-a72e-705681abff85' AND "clubhouse_memberships"."organization_id" = '64e98792-cdac-11e4-a2b3-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64e00e38-cdac-11e4-a72e-705681abff85"], ["organization_id", "64e98792-cdac-11e4-a2b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:43.917685"], ["updated_at", "2015-03-18 20:21:43.917685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64e10d6a-cdac-11e4-8b49-705681abff85' AND "clubhouse_memberships"."organization_id" = '64e98792-cdac-11e4-a2b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64e10d6a-cdac-11e4-8b49-705681abff85"], ["organization_id", "64e98792-cdac-11e4-a2b3-705681abff85"], ["created_at", "2015-03-18 20:21:43.921786"], ["updated_at", "2015-03-18 20:21:43.921786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$9Gn8fm6h5FgKCxVHiCKzPO/tUcwvqYCH71ZBiwQcB/ZhX9CbeVSyi"], ["created_at", "2015-03-18 20:21:43.926825"], ["updated_at", "2015-03-18 20:21:43.926825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:43.928380"], ["user_id", "64ecebc6-cdac-11e4-a86d-705681abff85"], ["created_at", "2015-03-18 20:21:43.929242"], ["updated_at", "2015-03-18 20:21:43.929242"], ["token", "mfSoVcPwuYxbiIqZHtOC5CWkbIee-7wF7RhEp2Ark6Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '64e98792-cdac-11e4-a2b3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "64e98792-cdac-11e4-a2b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:43.940164"], ["updated_at", "2015-03-18 20:21:43.940164"], ["token", "UWF-cNXwhb2hbj2_d-JRqP373Xz0dkJfaCTgsosPfyk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 13:21:43 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Kc9nekM9j/8ejdWfhIcWhun3t1dfqF1XnNhMvkN/sDaiR7uR82DXm"], ["created_at", "2015-03-18 20:21:43.980021"], ["updated_at", "2015-03-18 20:21:43.980021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$e5SdGNvIN6dY7FjKKUeaMuhfqLVItf2S72c3hBqffj.QXkbc8Z50K"], ["created_at", "2015-03-18 20:21:43.984554"], ["updated_at", "2015-03-18 20:21:43.984554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:43.986191"], ["user_id", "64f50d6a-cdac-11e4-a11c-705681abff85"], ["created_at", "2015-03-18 20:21:43.986995"], ["updated_at", "2015-03-18 20:21:43.986995"], ["token", "L3Nh6tP_O8f_j9vZXgQQmaNVAseiMM1HCI8qLxob9Bw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:43.990569"], ["updated_at", "2015-03-18 20:21:43.990569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64f50d6a-cdac-11e4-a11c-705681abff85' AND "clubhouse_memberships"."organization_id" = '64f6a512-cdac-11e4-b30f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64f50d6a-cdac-11e4-a11c-705681abff85"], ["organization_id", "64f6a512-cdac-11e4-b30f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:43.993891"], ["updated_at", "2015-03-18 20:21:43.993891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64f5ba4e-cdac-11e4-9a34-705681abff85' AND "clubhouse_memberships"."organization_id" = '64f6a512-cdac-11e4-b30f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64f5ba4e-cdac-11e4-9a34-705681abff85"], ["organization_id", "64f6a512-cdac-11e4-b30f-705681abff85"], ["created_at", "2015-03-18 20:21:43.997367"], ["updated_at", "2015-03-18 20:21:43.997367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$C4PwVWH.faxHUhMRwa8T7Ocvoa3geViaq2JgA8szw.A/yXcHaTZtO"], ["created_at", "2015-03-18 20:21:44.001962"], ["updated_at", "2015-03-18 20:21:44.001962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.003594"], ["user_id", "64f86316-cdac-11e4-8497-705681abff85"], ["created_at", "2015-03-18 20:21:44.004364"], ["updated_at", "2015-03-18 20:21:44.004364"], ["token", "TXcknNZcrCr08GDK5N5THi0XmWG3k--c_TxKcRJOOzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '64f6a512-cdac-11e4-b30f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "64f6a512-cdac-11e4-b30f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.008403"], ["updated_at", "2015-03-18 20:21:44.008403"], ["token", "YYVEIG0hX1ti_Ngcxbu_c_os6wdITjGjdyEEd58PhcU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"YYVEIG0hX1ti_Ngcxbu_c_os6wdITjGjdyEEd58PhcU", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.014150' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TXcknNZcrCr08GDK5N5THi0XmWG3k--c_TxKcRJOOzA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.021594"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.023855"], ["id", "64f8cc5c-cdac-11e4-b81b-705681abff85"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64f86316-cdac-11e4-8497-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "64f86316-cdac-11e4-8497-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "YYVEIG0hX1ti_Ngcxbu_c_os6wdITjGjdyEEd58PhcU"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "64f6a512-cdac-11e4-b30f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "64f6a512-cdac-11e4-b30f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64f86316-cdac-11e4-8497-705681abff85' AND "clubhouse_memberships"."organization_id" = '64f6a512-cdac-11e4-b30f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64f86316-cdac-11e4-8497-705681abff85"], ["admin", "t"], ["organization_id", "64f6a512-cdac-11e4-b30f-705681abff85"], ["created_at", "2015-03-18 20:21:44.065660"], ["updated_at", "2015-03-18 20:21:44.065660"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "64f9616c-cdac-11e4-893a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 59ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$nJUGwRisTQXUXX9Hw8grg.A5jGzB74F3R2E8cuo9yVKsuLwgftVYS"], ["created_at", "2015-03-18 20:21:44.078721"], ["updated_at", "2015-03-18 20:21:44.078721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$p2OLqC0DzjpsBDjn.tt30u6yNTaJDSnfJmziOYpiBNctrU6AVidHK"], ["created_at", "2015-03-18 20:21:44.083021"], ["updated_at", "2015-03-18 20:21:44.083021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.084537"], ["user_id", "65041db4-cdac-11e4-9f2d-705681abff85"], ["created_at", "2015-03-18 20:21:44.085318"], ["updated_at", "2015-03-18 20:21:44.085318"], ["token", "UaWM7qvVunM9g22WMuyumrMmr3Qy-iv-yVU6LC98VE4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.089034"], ["updated_at", "2015-03-18 20:21:44.089034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '65041db4-cdac-11e4-9f2d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6505ab20-cdac-11e4-af21-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "65041db4-cdac-11e4-9f2d-705681abff85"], ["organization_id", "6505ab20-cdac-11e4-af21-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.092263"], ["updated_at", "2015-03-18 20:21:44.092263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6504c084-cdac-11e4-aaa8-705681abff85' AND "clubhouse_memberships"."organization_id" = '6505ab20-cdac-11e4-af21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6504c084-cdac-11e4-aaa8-705681abff85"], ["organization_id", "6505ab20-cdac-11e4-af21-705681abff85"], ["created_at", "2015-03-18 20:21:44.095719"], ["updated_at", "2015-03-18 20:21:44.095719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$BUjWkgXk6dVcSaKFojiBJey25tNDrb1FLfR0WVvDjM9IHb6a82Ss6"], ["created_at", "2015-03-18 20:21:44.100048"], ["updated_at", "2015-03-18 20:21:44.100048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.101572"], ["user_id", "6507588a-cdac-11e4-82b2-705681abff85"], ["created_at", "2015-03-18 20:21:44.102324"], ["updated_at", "2015-03-18 20:21:44.102324"], ["token", "0hcMRNEHU3PBU9AioXJiV3k6j3FXuqKNLhfvwPXT0UM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '6505ab20-cdac-11e4-af21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "6505ab20-cdac-11e4-af21-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.106218"], ["updated_at", "2015-03-18 20:21:44.106218"], ["token", "gq_7_0Rdz173jD2-V_Nypkqi1ffY35YGPlYYWWd84jc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.113140' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0hcMRNEHU3PBU9AioXJiV3k6j3FXuqKNLhfvwPXT0UM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.114544"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.115611"], ["id", "6507bc08-cdac-11e4-9e6a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6507588a-cdac-11e4-82b2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6507588a-cdac-11e4-82b2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$NcKBwwzBUpCbL.dKy1g0Ruqs7jBFw.OPVysku32qfqI67rWAlFMbS"], ["created_at", "2015-03-18 20:21:44.126980"], ["updated_at", "2015-03-18 20:21:44.126980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$pEtadotQ1ZRXJGBrKBptw.cMz0lcV8cTLt48tVvUDInVjBHqi7pkq"], ["created_at", "2015-03-18 20:21:44.131489"], ["updated_at", "2015-03-18 20:21:44.131489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.133023"], ["user_id", "650b7e74-cdac-11e4-bbac-705681abff85"], ["created_at", "2015-03-18 20:21:44.133896"], ["updated_at", "2015-03-18 20:21:44.133896"], ["token", "zMmwSCVRXq9q0pxWjyM6XC-PanSIwMOOKEImj8LXWSs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.137534"], ["updated_at", "2015-03-18 20:21:44.137534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '650b7e74-cdac-11e4-bbac-705681abff85' AND "clubhouse_memberships"."organization_id" = '650d1342-cdac-11e4-9dbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "650b7e74-cdac-11e4-bbac-705681abff85"], ["organization_id", "650d1342-cdac-11e4-9dbe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.140891"], ["updated_at", "2015-03-18 20:21:44.140891"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '650c2518-cdac-11e4-8cf9-705681abff85' AND "clubhouse_memberships"."organization_id" = '650d1342-cdac-11e4-9dbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "650c2518-cdac-11e4-8cf9-705681abff85"], ["organization_id", "650d1342-cdac-11e4-9dbe-705681abff85"], ["created_at", "2015-03-18 20:21:44.144234"], ["updated_at", "2015-03-18 20:21:44.144234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$rnJU31UETXhHsFcjglXTt.l5hvKAdZs50AcsxUplWmAtUR0bWFs0e"], ["created_at", "2015-03-18 20:21:44.154338"], ["updated_at", "2015-03-18 20:21:44.154338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$1pKhAZLWv6JZcCWex.ZHKOJVlhXDPtgIeBmfuLEjpZHgyeUZsGA.W"], ["created_at", "2015-03-18 20:21:44.159686"], ["updated_at", "2015-03-18 20:21:44.159686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.161281"], ["user_id", "650fa4d6-cdac-11e4-a913-705681abff85"], ["created_at", "2015-03-18 20:21:44.162046"], ["updated_at", "2015-03-18 20:21:44.162046"], ["token", "oEQaNQox4q2hjR05ZrqFK63SS3SKywWo0dcEOVd_2vE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.165401"], ["updated_at", "2015-03-18 20:21:44.165401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '650fa4d6-cdac-11e4-a913-705681abff85' AND "clubhouse_memberships"."organization_id" = '65115290-cdac-11e4-ae4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "650fa4d6-cdac-11e4-a913-705681abff85"], ["organization_id", "65115290-cdac-11e4-ae4b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.168741"], ["updated_at", "2015-03-18 20:21:44.168741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '65107500-cdac-11e4-b4ac-705681abff85' AND "clubhouse_memberships"."organization_id" = '65115290-cdac-11e4-ae4b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "65107500-cdac-11e4-b4ac-705681abff85"], ["organization_id", "65115290-cdac-11e4-ae4b-705681abff85"], ["created_at", "2015-03-18 20:21:44.172198"], ["updated_at", "2015-03-18 20:21:44.172198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/6511d36e-cdac-11e4-a821-705681abff85" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"6511d36e-cdac-11e4-a821-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.177083' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oEQaNQox4q2hjR05ZrqFK63SS3SKywWo0dcEOVd_2vE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.178478"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.179450"], ["id", "6510d54a-cdac-11e4-a906-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "650fa4d6-cdac-11e4-a913-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "650fa4d6-cdac-11e4-a913-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "650fa4d6-cdac-11e4-a913-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_memberships"."id" = $2 LIMIT 1 [["member_id", "650fa4d6-cdac-11e4-a913-705681abff85"], ["id", "6511d36e-cdac-11e4-a821-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "65115290-cdac-11e4-ae4b-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "650fa4d6-cdac-11e4-a913-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Guyts/YIuK0O5hwNgoKIauwYfF7H3toCDvrwa5PyghyqENNLjF.RW"], ["created_at", "2015-03-18 20:21:44.193688"], ["updated_at", "2015-03-18 20:21:44.193688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$DF0tLcIPYB/l8eXgGQdl1ew5n.B651dt2xXy8lvaCUIN/enRpaWai"], ["created_at", "2015-03-18 20:21:44.199241"], ["updated_at", "2015-03-18 20:21:44.199241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.201393"], ["user_id", "6515a552-cdac-11e4-9e9b-705681abff85"], ["created_at", "2015-03-18 20:21:44.202711"], ["updated_at", "2015-03-18 20:21:44.202711"], ["token", "vfvLvDf0Xu4bcVzrz0qTFjSWRh7rxEwvIQFBAhfC5hw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.206633"], ["updated_at", "2015-03-18 20:21:44.206633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6515a552-cdac-11e4-9e9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6517a348-cdac-11e4-a4d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6515a552-cdac-11e4-9e9b-705681abff85"], ["organization_id", "6517a348-cdac-11e4-a4d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.210407"], ["updated_at", "2015-03-18 20:21:44.210407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '65168486-cdac-11e4-8dfc-705681abff85' AND "clubhouse_memberships"."organization_id" = '6517a348-cdac-11e4-a4d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "65168486-cdac-11e4-8dfc-705681abff85"], ["organization_id", "6517a348-cdac-11e4-a4d2-705681abff85"], ["created_at", "2015-03-18 20:21:44.213599"], ["updated_at", "2015-03-18 20:21:44.213599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$xKa.P11zVRDBF4cylKTyyO0wKfGn6GXFkOYjCkMlox4dm63yRk90W"], ["created_at", "2015-03-18 20:21:44.224224"], ["updated_at", "2015-03-18 20:21:44.224224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$DsDURoQkfs.IFT9kfDjNLOCz.gOpuk/M5.dN38dUFSupiXMf9Tr16"], ["created_at", "2015-03-18 20:21:44.229363"], ["updated_at", "2015-03-18 20:21:44.229363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.231011"], ["user_id", "651a5ac0-cdac-11e4-8ef4-705681abff85"], ["created_at", "2015-03-18 20:21:44.231908"], ["updated_at", "2015-03-18 20:21:44.231908"], ["token", "JK2bOHCw5xqiCf3sNzEUzMF3u9lfUU61hJWOE6iA6yo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (7.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.243158"], ["updated_at", "2015-03-18 20:21:44.243158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '651a5ac0-cdac-11e4-8ef4-705681abff85' AND "clubhouse_memberships"."organization_id" = '651d34e8-cdac-11e4-870c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "651a5ac0-cdac-11e4-8ef4-705681abff85"], ["organization_id", "651d34e8-cdac-11e4-870c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.246752"], ["updated_at", "2015-03-18 20:21:44.246752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '651b174e-cdac-11e4-a366-705681abff85' AND "clubhouse_memberships"."organization_id" = '651d34e8-cdac-11e4-870c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "651b174e-cdac-11e4-a366-705681abff85"], ["organization_id", "651d34e8-cdac-11e4-870c-705681abff85"], ["created_at", "2015-03-18 20:21:44.251084"], ["updated_at", "2015-03-18 20:21:44.251084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/651d34e8-cdac-11e4-870c-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"651d34e8-cdac-11e4-870c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.256700' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JK2bOHCw5xqiCf3sNzEUzMF3u9lfUU61hJWOE6iA6yo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.258217"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.259207"], ["id", "651b7f90-cdac-11e4-a114-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "651a5ac0-cdac-11e4-8ef4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "651a5ac0-cdac-11e4-8ef4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "651d34e8-cdac-11e4-870c-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "651d34e8-cdac-11e4-870c-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('651a5ac0-cdac-11e4-8ef4-705681abff85', '651b174e-cdac-11e4-a366-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('651d34e8-cdac-11e4-870c-705681abff85') Completed 500 Internal Server Error in 17ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$zyDkX4OvAzDZDzZ7RVjjFeX6eCIRznnRN2bNqjmKbE.f0DS.JX8P."], ["created_at", "2015-03-18 20:21:44.278623"], ["updated_at", "2015-03-18 20:21:44.278623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$UWoZ1ZqI2SeAYdWcqILyGup4IjwrtYV.nFZ38cvJ4QIeZ3GhVI0A6"], ["created_at", "2015-03-18 20:21:44.282957"], ["updated_at", "2015-03-18 20:21:44.282957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.284567"], ["user_id", "65229c4e-cdac-11e4-8a58-705681abff85"], ["created_at", "2015-03-18 20:21:44.285407"], ["updated_at", "2015-03-18 20:21:44.285407"], ["token", "6E0FSd_1x90PdMS2kL1WRt82-DBZADnXfBBgs2jipkM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.288929"], ["updated_at", "2015-03-18 20:21:44.288929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '65229c4e-cdac-11e4-8a58-705681abff85' AND "clubhouse_memberships"."organization_id" = '65242d16-cdac-11e4-b7d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "65229c4e-cdac-11e4-8a58-705681abff85"], ["organization_id", "65242d16-cdac-11e4-b7d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.292375"], ["updated_at", "2015-03-18 20:21:44.292375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6523434c-cdac-11e4-9cd3-705681abff85' AND "clubhouse_memberships"."organization_id" = '65242d16-cdac-11e4-b7d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6523434c-cdac-11e4-9cd3-705681abff85"], ["organization_id", "65242d16-cdac-11e4-b7d8-705681abff85"], ["created_at", "2015-03-18 20:21:44.295485"], ["updated_at", "2015-03-18 20:21:44.295485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$KQJL1K8BZrnm2t9tBHNyCOlJvZWjZG/gL0zTcz6Vdlwn1ljc40Jya"], ["created_at", "2015-03-18 20:21:44.305518"], ["updated_at", "2015-03-18 20:21:44.305518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$X9OsT1Jjc/KTmbFCiLOc7uGasQT.VotjLUPEczxO9zxcIb6yfQFaG"], ["created_at", "2015-03-18 20:21:44.309983"], ["updated_at", "2015-03-18 20:21:44.309983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.311895"], ["user_id", "6526b5c2-cdac-11e4-b845-705681abff85"], ["created_at", "2015-03-18 20:21:44.312753"], ["updated_at", "2015-03-18 20:21:44.312753"], ["token", "AiY2Sj5ez3s-A_dZc92UKkIZRffC4VTGnw40S2fpcnc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.316319"], ["updated_at", "2015-03-18 20:21:44.316319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6526b5c2-cdac-11e4-b845-705681abff85' AND "clubhouse_memberships"."organization_id" = '65285896-cdac-11e4-a5f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6526b5c2-cdac-11e4-b845-705681abff85"], ["organization_id", "65285896-cdac-11e4-a5f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.319748"], ["updated_at", "2015-03-18 20:21:44.319748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '652766fc-cdac-11e4-b246-705681abff85' AND "clubhouse_memberships"."organization_id" = '65285896-cdac-11e4-a5f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "652766fc-cdac-11e4-b246-705681abff85"], ["organization_id", "65285896-cdac-11e4-a5f2-705681abff85"], ["created_at", "2015-03-18 20:21:44.323636"], ["updated_at", "2015-03-18 20:21:44.323636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/6529872a-cdac-11e4-a17c-705681abff85" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"6529872a-cdac-11e4-a17c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.328992' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AiY2Sj5ez3s-A_dZc92UKkIZRffC4VTGnw40S2fpcnc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.330471"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.331392"], ["id", "6527d826-cdac-11e4-a094-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6526b5c2-cdac-11e4-b845-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6526b5c2-cdac-11e4-b845-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6526b5c2-cdac-11e4-b845-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$g2cBO603ZrSaEk5D585GIO/.y5.KJTQslUM.3.Heu90yRU0RvSnf6"], ["created_at", "2015-03-18 20:21:44.342774"], ["updated_at", "2015-03-18 20:21:44.342774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$DWVT8eYJQRXeqzS0p.ymS.lTe57yI8qB4pumxaR46SuP9dZrCJtz6"], ["created_at", "2015-03-18 20:21:44.347352"], ["updated_at", "2015-03-18 20:21:44.347352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.348878"], ["user_id", "652c6940-cdac-11e4-aaab-705681abff85"], ["created_at", "2015-03-18 20:21:44.349642"], ["updated_at", "2015-03-18 20:21:44.349642"], ["token", "fVQyUnjTzm28dK55wGDAMo93hdP972eaucjQwsAkaoc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.353017"], ["updated_at", "2015-03-18 20:21:44.353017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '652c6940-cdac-11e4-aaab-705681abff85' AND "clubhouse_memberships"."organization_id" = '652df292-cdac-11e4-8a44-705681abff85') LIMIT 1 SQL (5.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "652c6940-cdac-11e4-aaab-705681abff85"], ["organization_id", "652df292-cdac-11e4-8a44-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.356306"], ["updated_at", "2015-03-18 20:21:44.356306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '652d1480-cdac-11e4-9deb-705681abff85' AND "clubhouse_memberships"."organization_id" = '652df292-cdac-11e4-8a44-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "652d1480-cdac-11e4-9deb-705681abff85"], ["organization_id", "652df292-cdac-11e4-8a44-705681abff85"], ["created_at", "2015-03-18 20:21:44.364880"], ["updated_at", "2015-03-18 20:21:44.364880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/652e7280-cdac-11e4-ac85-705681abff85" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"652e7280-cdac-11e4-ac85-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.369794' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fVQyUnjTzm28dK55wGDAMo93hdP972eaucjQwsAkaoc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.371210"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.372238"], ["id", "652d76b4-cdac-11e4-a83c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "652c6940-cdac-11e4-aaab-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "652c6940-cdac-11e4-aaab-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "652c6940-cdac-11e4-aaab-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$V6RgqEcdr3sCO0y6l6escuxnzmXtdwIhQ7PuP3FPFJXdaCmcEkNuC"], ["created_at", "2015-03-18 20:21:44.384915"], ["updated_at", "2015-03-18 20:21:44.384915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$eXtLDqF7EsU/YjMzW.XyGOjD6RrQxy5Ntns6/mb7pnd2kyLqj0mE."], ["created_at", "2015-03-18 20:21:44.389462"], ["updated_at", "2015-03-18 20:21:44.389462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.391849"], ["user_id", "6532d244-cdac-11e4-8052-705681abff85"], ["created_at", "2015-03-18 20:21:44.392716"], ["updated_at", "2015-03-18 20:21:44.392716"], ["token", "VTeiaO8c5IMlAK33fdPEou51T6SIoWoc3fIe9wC9uIQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.396370"], ["updated_at", "2015-03-18 20:21:44.396370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6532d244-cdac-11e4-8052-705681abff85' AND "clubhouse_memberships"."organization_id" = '65349048-cdac-11e4-9230-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6532d244-cdac-11e4-8052-705681abff85"], ["organization_id", "65349048-cdac-11e4-9230-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.399666"], ["updated_at", "2015-03-18 20:21:44.399666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6533976a-cdac-11e4-8597-705681abff85' AND "clubhouse_memberships"."organization_id" = '65349048-cdac-11e4-9230-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6533976a-cdac-11e4-8597-705681abff85"], ["organization_id", "65349048-cdac-11e4-9230-705681abff85"], ["created_at", "2015-03-18 20:21:44.402689"], ["updated_at", "2015-03-18 20:21:44.402689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$ThcQCCdFtNKHOisOeVnTveq1sevhH7tCsj1Dmkfapk3hLKKyFICw2"], ["created_at", "2015-03-18 20:21:44.413368"], ["updated_at", "2015-03-18 20:21:44.413368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$jdK39jdcVho1xCrTy9SGSO7Ad8jmOxYM2IBCHKgq1YSzn.6yr/VmO"], ["created_at", "2015-03-18 20:21:44.417555"], ["updated_at", "2015-03-18 20:21:44.417555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.419019"], ["user_id", "6537292a-cdac-11e4-a922-705681abff85"], ["created_at", "2015-03-18 20:21:44.419941"], ["updated_at", "2015-03-18 20:21:44.419941"], ["token", "ASdAR0BUyQDJEBFMG6X0Kw_LxSxct1YsvTy1-0HH_4Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.423399"], ["updated_at", "2015-03-18 20:21:44.423399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6537292a-cdac-11e4-a922-705681abff85' AND "clubhouse_memberships"."organization_id" = '6538afe8-cdac-11e4-a552-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6537292a-cdac-11e4-a922-705681abff85"], ["organization_id", "6538afe8-cdac-11e4-a552-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.427295"], ["updated_at", "2015-03-18 20:21:44.427295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6537ca88-cdac-11e4-bef1-705681abff85' AND "clubhouse_memberships"."organization_id" = '6538afe8-cdac-11e4-a552-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6537ca88-cdac-11e4-bef1-705681abff85"], ["organization_id", "6538afe8-cdac-11e4-a552-705681abff85"], ["created_at", "2015-03-18 20:21:44.430569"], ["updated_at", "2015-03-18 20:21:44.430569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/6539c734-cdac-11e4-a1d2-705681abff85" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"6539c734-cdac-11e4-a1d2-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.435309' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ASdAR0BUyQDJEBFMG6X0Kw_LxSxct1YsvTy1-0HH_4Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.436899"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.437898"], ["id", "65383022-cdac-11e4-885e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6537292a-cdac-11e4-a922-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6537292a-cdac-11e4-a922-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "6537292a-cdac-11e4-a922-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$Utg3PuM/S4XuIcfCXVKpqOdXGGrref6Nbxw/rZISgVxDXA4vEAFhy"], ["created_at", "2015-03-18 20:21:44.450632"], ["updated_at", "2015-03-18 20:21:44.450632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$QG1gNAFMeSPhlHSsNn9A.Onlwob60Pbopcjft9u1nrtG.Q5sARqCC"], ["created_at", "2015-03-18 20:21:44.454958"], ["updated_at", "2015-03-18 20:21:44.454958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.456607"], ["user_id", "653cdadc-cdac-11e4-bc3b-705681abff85"], ["created_at", "2015-03-18 20:21:44.457363"], ["updated_at", "2015-03-18 20:21:44.457363"], ["token", "A9T1TG7IFpjNpPNx6Fcc4COEzoVn89JLDR8ENxUdnjc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.460935"], ["updated_at", "2015-03-18 20:21:44.460935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '653cdadc-cdac-11e4-bc3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '653e6c08-cdac-11e4-9c56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "653cdadc-cdac-11e4-bc3b-705681abff85"], ["organization_id", "653e6c08-cdac-11e4-9c56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.464551"], ["updated_at", "2015-03-18 20:21:44.464551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '653d8536-cdac-11e4-be5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '653e6c08-cdac-11e4-9c56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "653d8536-cdac-11e4-be5c-705681abff85"], ["organization_id", "653e6c08-cdac-11e4-9c56-705681abff85"], ["created_at", "2015-03-18 20:21:44.467816"], ["updated_at", "2015-03-18 20:21:44.467816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/653ef7d6-cdac-11e4-863f-705681abff85" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"653ef7d6-cdac-11e4-863f-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.472388' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A9T1TG7IFpjNpPNx6Fcc4COEzoVn89JLDR8ENxUdnjc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.473775"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.474733"], ["id", "653de63e-cdac-11e4-b970-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "653cdadc-cdac-11e4-bc3b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "653cdadc-cdac-11e4-bc3b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "653cdadc-cdac-11e4-bc3b-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$0OeAt9lD9YxnR3guXu.fSu3yVLqGtjE5Q09eu9G6VeODy.YTQ7UUC"], ["created_at", "2015-03-18 20:21:44.486435"], ["updated_at", "2015-03-18 20:21:44.486435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$LDlC7znGUqUXuG3S8PEEMOnoenal8w1wtOJ5f73SGZZEmrZ2MpOie"], ["created_at", "2015-03-18 20:21:44.491830"], ["updated_at", "2015-03-18 20:21:44.491830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.493534"], ["user_id", "6542539a-cdac-11e4-8cd7-705681abff85"], ["created_at", "2015-03-18 20:21:44.494371"], ["updated_at", "2015-03-18 20:21:44.494371"], ["token", "ReQESGGn6k4QDViamY0lPZ5s3JgTbBhME-L2np2tq40"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.497924"], ["updated_at", "2015-03-18 20:21:44.497924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6542539a-cdac-11e4-8cd7-705681abff85' AND "clubhouse_memberships"."organization_id" = '65440e42-cdac-11e4-a2be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6542539a-cdac-11e4-8cd7-705681abff85"], ["organization_id", "65440e42-cdac-11e4-a2be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.501125"], ["updated_at", "2015-03-18 20:21:44.501125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '654324e6-cdac-11e4-82b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '65440e42-cdac-11e4-a2be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "654324e6-cdac-11e4-82b6-705681abff85"], ["organization_id", "65440e42-cdac-11e4-a2be-705681abff85"], ["created_at", "2015-03-18 20:21:44.504252"], ["updated_at", "2015-03-18 20:21:44.504252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$/mr/CWl52i5AhYYu2WlwnOaORij4P6fwcOsszVTzTbLBMi1Jdyime"], ["created_at", "2015-03-18 20:21:44.508953"], ["updated_at", "2015-03-18 20:21:44.508953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.510506"], ["user_id", "6545bfee-cdac-11e4-bd17-705681abff85"], ["created_at", "2015-03-18 20:21:44.511353"], ["updated_at", "2015-03-18 20:21:44.511353"], ["token", "9iMTbWowx-YEc5oP-B90BJ0RjmrvPmFKifU8mJrfSEo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '65440e42-cdac-11e4-a2be-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "65440e42-cdac-11e4-a2be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.515093"], ["updated_at", "2015-03-18 20:21:44.515093"], ["token", "XrbEb6I3b4M9b8KkV51ZoeYD2aRRH9MUTbiqpaiBm0U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$8vUUvhQGuTWvtilWwoxujeHPnSiE.azHAXflkqwekzR.zrHVDHPs2"], ["created_at", "2015-03-18 20:21:44.525745"], ["updated_at", "2015-03-18 20:21:44.525745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$3vtpF/iJ9oA7t39b5.oy2.bB8E4K8hiGtk1JW93ks2qBMBTbZ7mh6"], ["created_at", "2015-03-18 20:21:44.530989"], ["updated_at", "2015-03-18 20:21:44.530989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.532592"], ["user_id", "654857cc-cdac-11e4-aaab-705681abff85"], ["created_at", "2015-03-18 20:21:44.533344"], ["updated_at", "2015-03-18 20:21:44.533344"], ["token", "tW4NN8ZmpU6gvCq9ZMLGMGxp21E68WKWyE4xHf2vM4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.537720"], ["updated_at", "2015-03-18 20:21:44.537720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '654857cc-cdac-11e4-aaab-705681abff85' AND "clubhouse_memberships"."organization_id" = '654a2228-cdac-11e4-a374-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "654857cc-cdac-11e4-aaab-705681abff85"], ["organization_id", "654a2228-cdac-11e4-a374-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.542395"], ["updated_at", "2015-03-18 20:21:44.542395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '65491cb6-cdac-11e4-bef2-705681abff85' AND "clubhouse_memberships"."organization_id" = '654a2228-cdac-11e4-a374-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "65491cb6-cdac-11e4-bef2-705681abff85"], ["organization_id", "654a2228-cdac-11e4-a374-705681abff85"], ["created_at", "2015-03-18 20:21:44.546200"], ["updated_at", "2015-03-18 20:21:44.546200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$EEx58/ZTpQQr/YsMBnI19eHAWV1Zrgc2UqnEh5jZVxdWncbV05VP."], ["created_at", "2015-03-18 20:21:44.550570"], ["updated_at", "2015-03-18 20:21:44.550570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.552262"], ["user_id", "654c1baa-cdac-11e4-b223-705681abff85"], ["created_at", "2015-03-18 20:21:44.553123"], ["updated_at", "2015-03-18 20:21:44.553123"], ["token", "i-CmfuTl7eCgMDK9sl-hyxnFpK6_WWsBmUB_FppsjQE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '654a2228-cdac-11e4-a374-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "654a2228-cdac-11e4-a374-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.557079"], ["updated_at", "2015-03-18 20:21:44.557079"], ["token", "wlVhnjrrs2QCdrp3YCenMn036etCQDFghXj5MHiy2J4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/654a2228-cdac-11e4-a374-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"wlVhnjrrs2QCdrp3YCenMn036etCQDFghXj5MHiy2J4", "organization_id"=>"654a2228-cdac-11e4-a374-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.561828' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "i-CmfuTl7eCgMDK9sl-hyxnFpK6_WWsBmUB_FppsjQE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.563404"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.564445"], ["id", "654c854a-cdac-11e4-a6d2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "654c1baa-cdac-11e4-b223-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "654c1baa-cdac-11e4-b223-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "wlVhnjrrs2QCdrp3YCenMn036etCQDFghXj5MHiy2J4"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "654a2228-cdac-11e4-a374-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "654a2228-cdac-11e4-a374-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '654c1baa-cdac-11e4-b223-705681abff85' AND "clubhouse_memberships"."organization_id" = '654a2228-cdac-11e4-a374-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "654c1baa-cdac-11e4-b223-705681abff85"], ["admin", "t"], ["organization_id", "654a2228-cdac-11e4-a374-705681abff85"], ["created_at", "2015-03-18 20:21:44.572901"], ["updated_at", "2015-03-18 20:21:44.572901"]] SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "654d1c58-cdac-11e4-9dc9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$HmKcye31F2KYvBzmywnUr.TX1yViTet13KjYNFg2Q9sNSfxE6bs7G"], ["created_at", "2015-03-18 20:21:44.591060"], ["updated_at", "2015-03-18 20:21:44.591060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$jNvG/aOtyaEzDJ2hXBbw.ucWAYeYIItQJKt2rT0hjJkEWNEExR6Hu"], ["created_at", "2015-03-18 20:21:44.595576"], ["updated_at", "2015-03-18 20:21:44.595576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.597134"], ["user_id", "655247f0-cdac-11e4-9d12-705681abff85"], ["created_at", "2015-03-18 20:21:44.598086"], ["updated_at", "2015-03-18 20:21:44.598086"], ["token", "BYJmsHedf8q3ZKZN6oHXetewvvsFQca1kygkqOoNk_o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.601567"], ["updated_at", "2015-03-18 20:21:44.601567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '655247f0-cdac-11e4-9d12-705681abff85' AND "clubhouse_memberships"."organization_id" = '6553de3a-cdac-11e4-9207-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "655247f0-cdac-11e4-9d12-705681abff85"], ["organization_id", "6553de3a-cdac-11e4-9207-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.605170"], ["updated_at", "2015-03-18 20:21:44.605170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6552f61e-cdac-11e4-8697-705681abff85' AND "clubhouse_memberships"."organization_id" = '6553de3a-cdac-11e4-9207-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6552f61e-cdac-11e4-8697-705681abff85"], ["organization_id", "6553de3a-cdac-11e4-9207-705681abff85"], ["created_at", "2015-03-18 20:21:44.608264"], ["updated_at", "2015-03-18 20:21:44.608264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$tjg6SvtILa6tFTmKZmvVLuUcqENx6mWA5ag40npnFQpzrZX1q8vyO"], ["created_at", "2015-03-18 20:21:44.612628"], ["updated_at", "2015-03-18 20:21:44.612628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.614611"], ["user_id", "65559342-cdac-11e4-b329-705681abff85"], ["created_at", "2015-03-18 20:21:44.615552"], ["updated_at", "2015-03-18 20:21:44.615552"], ["token", "ouqKiKRxPs9noymKMoSqmu92HHzBi4NGySG0cqvV8xI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '6553de3a-cdac-11e4-9207-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "6553de3a-cdac-11e4-9207-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.619957"], ["updated_at", "2015-03-18 20:21:44.619957"], ["token", "ttHiFwQQ1IimxjfgztaoT_xEyKKH75qDUOTP2J5UrVE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/6553de3a-cdac-11e4-9207-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"6553de3a-cdac-11e4-9207-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.626519' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ouqKiKRxPs9noymKMoSqmu92HHzBi4NGySG0cqvV8xI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.628693"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.630361"], ["id", "655611e6-cdac-11e4-b7b1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "65559342-cdac-11e4-b329-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "65559342-cdac-11e4-b329-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$kBVTxnWn1mvbQs.Qz3oqQOr.a5lfV2Nv6BXMxADyUk2dQoEeCMrgO"], ["created_at", "2015-03-18 20:21:44.642282"], ["updated_at", "2015-03-18 20:21:44.642282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$DsHKktovLzuXSUd8axPhJuNnONmm.HsmSW5m4iwizQPpACFlFBBd2"], ["created_at", "2015-03-18 20:21:44.646901"], ["updated_at", "2015-03-18 20:21:44.646901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.648488"], ["user_id", "655a176e-cdac-11e4-aefe-705681abff85"], ["created_at", "2015-03-18 20:21:44.649248"], ["updated_at", "2015-03-18 20:21:44.649248"], ["token", "U8JoGvoZjt0anX8qfHEoYhe02cMaWt0nPgwVCdoJB58"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.652736"], ["updated_at", "2015-03-18 20:21:44.652736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '655a176e-cdac-11e4-aefe-705681abff85' AND "clubhouse_memberships"."organization_id" = '655badfe-cdac-11e4-9df5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "655a176e-cdac-11e4-aefe-705681abff85"], ["organization_id", "655badfe-cdac-11e4-9df5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.655974"], ["updated_at", "2015-03-18 20:21:44.655974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '655acc22-cdac-11e4-9241-705681abff85' AND "clubhouse_memberships"."organization_id" = '655badfe-cdac-11e4-9df5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "655acc22-cdac-11e4-9241-705681abff85"], ["organization_id", "655badfe-cdac-11e4-9df5-705681abff85"], ["created_at", "2015-03-18 20:21:44.659598"], ["updated_at", "2015-03-18 20:21:44.659598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$09hDKayEFXhJo1hSKJ5jleET/ixRt343TRTn7CgZaLPv5goGJHC3q"], ["created_at", "2015-03-18 20:21:44.670164"], ["updated_at", "2015-03-18 20:21:44.670164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$2v6l1kFm4xd8jf5pYmSuSObsc63GLVR7ZjwEnQ07otpSo70p5zjfO"], ["created_at", "2015-03-18 20:21:44.674578"], ["updated_at", "2015-03-18 20:21:44.674578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:21:44.676262"], ["user_id", "655e58a6-cdac-11e4-9fbb-705681abff85"], ["created_at", "2015-03-18 20:21:44.677116"], ["updated_at", "2015-03-18 20:21:44.677116"], ["token", "skANp7omD97cAg9Cz8BH7LUSlBpuZpIB6jAg_VGDR9g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:21:44.681112"], ["updated_at", "2015-03-18 20:21:44.681112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '655e58a6-cdac-11e4-9fbb-705681abff85' AND "clubhouse_memberships"."organization_id" = '6560023c-cdac-11e4-94cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "655e58a6-cdac-11e4-9fbb-705681abff85"], ["organization_id", "6560023c-cdac-11e4-94cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:21:44.684572"], ["updated_at", "2015-03-18 20:21:44.684572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '655f0760-cdac-11e4-a463-705681abff85' AND "clubhouse_memberships"."organization_id" = '6560023c-cdac-11e4-94cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "655f0760-cdac-11e4-a463-705681abff85"], ["organization_id", "6560023c-cdac-11e4-94cc-705681abff85"], ["created_at", "2015-03-18 20:21:44.687939"], ["updated_at", "2015-03-18 20:21:44.687939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:21:44 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:21:44.694337' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "skANp7omD97cAg9Cz8BH7LUSlBpuZpIB6jAg_VGDR9g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:21:44.695787"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:21:44.696738"], ["id", "655f75b0-cdac-11e4-a7ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "655e58a6-cdac-11e4-9fbb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "655e58a6-cdac-11e4-9fbb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "6560023c-cdac-11e4-94cc-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('655e58a6-cdac-11e4-9fbb-705681abff85', '655f0760-cdac-11e4-a463-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('6560023c-cdac-11e4-94cc-705681abff85') Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$.kIydIG0IqKRFqeMMWWUoO7CNqkdeIc0Ewhj09ba7ET2j9N3eilfC"], ["created_at", "2015-03-18 20:28:34.379405"], ["updated_at", "2015-03-18 20:28:34.379405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$M.beU6O.q3kEXAfws7JxtOtTAjwPT/oJQFX2yQ0Zs0D6t5108cVUW"], ["created_at", "2015-03-18 20:28:34.407706"], ["updated_at", "2015-03-18 20:28:34.407706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (13.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.418389"], ["user_id", "59966e54-cdad-11e4-9e81-705681abff85"], ["created_at", "2015-03-18 20:28:34.424452"], ["updated_at", "2015-03-18 20:28:34.424452"], ["token", "RxUdP_InTLA0GlxxPUt01sGn89NplBaxiYIbfqM9Hws"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:34.479362"], ["updated_at", "2015-03-18 20:28:34.479362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59966e54-cdad-11e4-9e81-705681abff85' AND "clubhouse_memberships"."organization_id" = '59a24c74-cdad-11e4-9a85-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59966e54-cdad-11e4-9e81-705681abff85"], ["organization_id", "59a24c74-cdad-11e4-9a85-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.492386"], ["updated_at", "2015-03-18 20:28:34.492386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '599755c6-cdad-11e4-a9e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '59a24c74-cdad-11e4-9a85-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "599755c6-cdad-11e4-a9e6-705681abff85"], ["organization_id", "59a24c74-cdad-11e4-9a85-705681abff85"], ["created_at", "2015-03-18 20:28:34.496796"], ["updated_at", "2015-03-18 20:28:34.496796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$sjps94Fs2KOB8PQcDg7/Ouj/lQ6bTT8hpmASR6yk.cNTG7aaXwEt."], ["created_at", "2015-03-18 20:28:34.501832"], ["updated_at", "2015-03-18 20:28:34.501832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.503393"], ["user_id", "59a5b2b0-cdad-11e4-9557-705681abff85"], ["created_at", "2015-03-18 20:28:34.504192"], ["updated_at", "2015-03-18 20:28:34.504192"], ["token", "O_Upi7uLyMFnDBHX5Nl_GOUgRCM0loik4aHqF6WnvKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '59a24c74-cdad-11e4-9a85-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "59a24c74-cdad-11e4-9a85-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.521061"], ["updated_at", "2015-03-18 20:28:34.521061"], ["token", "LBD9ARKo7gofM7v3pr_3EVF7QnxwREyl6Vk-pRK2nPA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 13:28:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$CrQZ7pGOxXSaENjOe7W9uukWtLy2f4PfrXqEdWv6.WkuGIJHgES4y"], ["created_at", "2015-03-18 20:28:34.557940"], ["updated_at", "2015-03-18 20:28:34.557940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$3IwhVNSdx3pVm9N9r99ueeJNtlZL0MShuE47F4J7fw5ZB0becHzEq"], ["created_at", "2015-03-18 20:28:34.562291"], ["updated_at", "2015-03-18 20:28:34.562291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.563772"], ["user_id", "59ae4538-cdad-11e4-b27c-705681abff85"], ["created_at", "2015-03-18 20:28:34.564667"], ["updated_at", "2015-03-18 20:28:34.564667"], ["token", "Oq2dt-306OQGPEL4GapUgjMwtbA8tipurs8wM8l93Ac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:34.568609"], ["updated_at", "2015-03-18 20:28:34.568609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59ae4538-cdad-11e4-b27c-705681abff85' AND "clubhouse_memberships"."organization_id" = '59afe1c2-cdad-11e4-b3e2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59ae4538-cdad-11e4-b27c-705681abff85"], ["organization_id", "59afe1c2-cdad-11e4-b3e2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.571970"], ["updated_at", "2015-03-18 20:28:34.571970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59aeea38-cdad-11e4-87fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '59afe1c2-cdad-11e4-b3e2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59aeea38-cdad-11e4-87fe-705681abff85"], ["organization_id", "59afe1c2-cdad-11e4-b3e2-705681abff85"], ["created_at", "2015-03-18 20:28:34.574996"], ["updated_at", "2015-03-18 20:28:34.574996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ldXL8B.WfW4WrMljkokZ1.dER36sgrEiO4XcdVs97KNsoVlv8Na6."], ["created_at", "2015-03-18 20:28:34.579271"], ["updated_at", "2015-03-18 20:28:34.579271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.580801"], ["user_id", "59b181a8-cdad-11e4-bc6e-705681abff85"], ["created_at", "2015-03-18 20:28:34.581550"], ["updated_at", "2015-03-18 20:28:34.581550"], ["token", "d9PnbBK34Zy3kj9b-enK-wFOr1wepAmJ6ttNJdrT1aA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '59afe1c2-cdad-11e4-b3e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "59afe1c2-cdad-11e4-b3e2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.585475"], ["updated_at", "2015-03-18 20:28:34.585475"], ["token", "dDXIh3qRg7RzCpC0FRk6PxTcjIPEOzG_G9H4xkFiw9E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:28:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"dDXIh3qRg7RzCpC0FRk6PxTcjIPEOzG_G9H4xkFiw9E", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:34.591478' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "d9PnbBK34Zy3kj9b-enK-wFOr1wepAmJ6ttNJdrT1aA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:34.599014"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:34.600813"], ["id", "59b1e08a-cdad-11e4-9c25-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "59b181a8-cdad-11e4-bc6e-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "59b181a8-cdad-11e4-bc6e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "dDXIh3qRg7RzCpC0FRk6PxTcjIPEOzG_G9H4xkFiw9E"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "59afe1c2-cdad-11e4-b3e2-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "59afe1c2-cdad-11e4-b3e2-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59b181a8-cdad-11e4-bc6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '59afe1c2-cdad-11e4-b3e2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59b181a8-cdad-11e4-bc6e-705681abff85"], ["admin", "t"], ["organization_id", "59afe1c2-cdad-11e4-b3e2-705681abff85"], ["created_at", "2015-03-18 20:28:34.632500"], ["updated_at", "2015-03-18 20:28:34.632500"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "59b27ae0-cdad-11e4-83d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 50ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$woZJoRRuao5hc/k8C.6BCek3uBwNyAHOX29A0C7M5uPi/oEL7TKAq"], ["created_at", "2015-03-18 20:28:34.647822"], ["updated_at", "2015-03-18 20:28:34.647822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$.Sx6cE0QN5WiwhcM9A9M6ujTYMoYVJSHY9qYo6GgnjIHpCaSC0hfG"], ["created_at", "2015-03-18 20:28:34.652812"], ["updated_at", "2015-03-18 20:28:34.652812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.654682"], ["user_id", "59bbfbf6-cdad-11e4-8ed7-705681abff85"], ["created_at", "2015-03-18 20:28:34.655645"], ["updated_at", "2015-03-18 20:28:34.655645"], ["token", "hTRIbIGahF7j86CObUQYaFCYXdwYgN3j84ylsJcGd1E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:34.659921"], ["updated_at", "2015-03-18 20:28:34.659921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59bbfbf6-cdad-11e4-8ed7-705681abff85' AND "clubhouse_memberships"."organization_id" = '59bdd5b6-cdad-11e4-9b40-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59bbfbf6-cdad-11e4-8ed7-705681abff85"], ["organization_id", "59bdd5b6-cdad-11e4-9b40-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.663966"], ["updated_at", "2015-03-18 20:28:34.663966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59bcbf82-cdad-11e4-a03c-705681abff85' AND "clubhouse_memberships"."organization_id" = '59bdd5b6-cdad-11e4-9b40-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59bcbf82-cdad-11e4-a03c-705681abff85"], ["organization_id", "59bdd5b6-cdad-11e4-9b40-705681abff85"], ["created_at", "2015-03-18 20:28:34.667793"], ["updated_at", "2015-03-18 20:28:34.667793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$A/6iVhcROeXDc3TaOvs7TuGSiEhCNdnCL0tPizaO1q9KzfUabSd1G"], ["created_at", "2015-03-18 20:28:34.672750"], ["updated_at", "2015-03-18 20:28:34.672750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.674925"], ["user_id", "59bfd6ea-cdad-11e4-86f5-705681abff85"], ["created_at", "2015-03-18 20:28:34.675745"], ["updated_at", "2015-03-18 20:28:34.675745"], ["token", "ezhHyfuD944XPKr2aksxJz6lMRgCThDCp3fYpcYDdfM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '59bdd5b6-cdad-11e4-9b40-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "59bdd5b6-cdad-11e4-9b40-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.680936"], ["updated_at", "2015-03-18 20:28:34.680936"], ["token", "8WfFODTQZP4n3O_1LRpi0KGFY9YXvqZ8bCZztv0jAM8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:28:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (1.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:34.701618' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ezhHyfuD944XPKr2aksxJz6lMRgCThDCp3fYpcYDdfM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:34.705510"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:34.706873"], ["id", "59c04a08-cdad-11e4-9e8a-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "59bfd6ea-cdad-11e4-86f5-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "59bfd6ea-cdad-11e4-86f5-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 23ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ztmCs93j5RgjjJQfJn.3b.KZwRWCjzYKlHAG5Cle/VWS/pCDUp31S"], ["created_at", "2015-03-18 20:28:34.734433"], ["updated_at", "2015-03-18 20:28:34.734433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$JycM/beVapkDK8EmxYYf2eEWKuTsRBg9OeDY7LRsUj3x7o4xXJpK2"], ["created_at", "2015-03-18 20:28:34.740641"], ["updated_at", "2015-03-18 20:28:34.740641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.742226"], ["user_id", "59c94680-cdad-11e4-8a9e-705681abff85"], ["created_at", "2015-03-18 20:28:34.742984"], ["updated_at", "2015-03-18 20:28:34.742984"], ["token", "di-jhrvtzlHtTzUoFVhqwE5FQqu49JJwXRzR6dd0Els"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:34.746362"], ["updated_at", "2015-03-18 20:28:34.746362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59c94680-cdad-11e4-8a9e-705681abff85' AND "clubhouse_memberships"."organization_id" = '59caffe8-cdad-11e4-a503-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59c94680-cdad-11e4-8a9e-705681abff85"], ["organization_id", "59caffe8-cdad-11e4-a503-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.750811"], ["updated_at", "2015-03-18 20:28:34.750811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59ca2262-cdad-11e4-af3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '59caffe8-cdad-11e4-a503-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59ca2262-cdad-11e4-af3d-705681abff85"], ["organization_id", "59caffe8-cdad-11e4-a503-705681abff85"], ["created_at", "2015-03-18 20:28:34.754068"], ["updated_at", "2015-03-18 20:28:34.754068"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 13:28:34 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$a6CavoJWRKrpnZWMnIzynuc22yrzDVR8u9LXrhWVYq0xlyB.6Jl.K"], ["created_at", "2015-03-18 20:28:34.764686"], ["updated_at", "2015-03-18 20:28:34.764686"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$YWQiF74zlrI9.5e4PWJJkehPy78n2SRRbww.epceo1gax/xc.1jVK"], ["created_at", "2015-03-18 20:28:34.770054"], ["updated_at", "2015-03-18 20:28:34.770054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.771747"], ["user_id", "59cdd20e-cdad-11e4-8ef6-705681abff85"], ["created_at", "2015-03-18 20:28:34.772539"], ["updated_at", "2015-03-18 20:28:34.772539"], ["token", "9MQCyDLQflf1pe0ArpfP1nSSnt4MCoR0PrELNmaXEpQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:34.776806"], ["updated_at", "2015-03-18 20:28:34.776806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59cdd20e-cdad-11e4-8ef6-705681abff85' AND "clubhouse_memberships"."organization_id" = '59cfa8e0-cdad-11e4-8f7e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59cdd20e-cdad-11e4-8ef6-705681abff85"], ["organization_id", "59cfa8e0-cdad-11e4-8f7e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.780416"], ["updated_at", "2015-03-18 20:28:34.780416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59cea1ac-cdad-11e4-8361-705681abff85' AND "clubhouse_memberships"."organization_id" = '59cfa8e0-cdad-11e4-8f7e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59cea1ac-cdad-11e4-8361-705681abff85"], ["organization_id", "59cfa8e0-cdad-11e4-8f7e-705681abff85"], ["created_at", "2015-03-18 20:28:34.783801"], ["updated_at", "2015-03-18 20:28:34.783801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/59cfa8e0-cdad-11e4-8f7e-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:28:34 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"59cfa8e0-cdad-11e4-8f7e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:34.788266' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9MQCyDLQflf1pe0ArpfP1nSSnt4MCoR0PrELNmaXEpQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:34.789879"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:34.790983"], ["id", "59cf067e-cdad-11e4-9311-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "59cdd20e-cdad-11e4-8ef6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "59cdd20e-cdad-11e4-8ef6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "59cfa8e0-cdad-11e4-8f7e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "59cfa8e0-cdad-11e4-8f7e-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('59cdd20e-cdad-11e4-8ef6-705681abff85', '59cea1ac-cdad-11e4-8361-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('59cfa8e0-cdad-11e4-8f7e-705681abff85') Completed 500 Internal Server Error in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$kgzzc3wO8GTOOoxwuBS14ukoc7IuAE/MNDwRbp1LNGq8o0tau.4NW"], ["created_at", "2015-03-18 20:28:34.829188"], ["updated_at", "2015-03-18 20:28:34.829188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$5DS.h.M2r1mHTR3BPaNLZeGmQS1RZ2l8Sj0Z5v2HYEtaXtwRA1XoC"], ["created_at", "2015-03-18 20:28:34.836632"], ["updated_at", "2015-03-18 20:28:34.836632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.838505"], ["user_id", "59d7cb38-cdad-11e4-8ea3-705681abff85"], ["created_at", "2015-03-18 20:28:34.839345"], ["updated_at", "2015-03-18 20:28:34.839345"], ["token", "Ur5xLDmny76ifZUhlZJHRiNX-AKzDD4lkWO1EcJ0GO0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:34.844795"], ["updated_at", "2015-03-18 20:28:34.844795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59d7cb38-cdad-11e4-8ea3-705681abff85' AND "clubhouse_memberships"."organization_id" = '59da1320-cdad-11e4-a8ac-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59d7cb38-cdad-11e4-8ea3-705681abff85"], ["organization_id", "59da1320-cdad-11e4-a8ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.849253"], ["updated_at", "2015-03-18 20:28:34.849253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59d8cc90-cdad-11e4-bd5f-705681abff85' AND "clubhouse_memberships"."organization_id" = '59da1320-cdad-11e4-a8ac-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59d8cc90-cdad-11e4-bd5f-705681abff85"], ["organization_id", "59da1320-cdad-11e4-a8ac-705681abff85"], ["created_at", "2015-03-18 20:28:34.855349"], ["updated_at", "2015-03-18 20:28:34.855349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.0ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$0n1ASNFsrdKzg9oErapyFuinfz1lBSGetHQXMTGWDYr5OVUzVxMZy"], ["created_at", "2015-03-18 20:28:34.867776"], ["updated_at", "2015-03-18 20:28:34.867776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.870526"], ["user_id", "59dd9f86-cdad-11e4-b1de-705681abff85"], ["created_at", "2015-03-18 20:28:34.871838"], ["updated_at", "2015-03-18 20:28:34.871838"], ["token", "W498yqU1h2Tg1iI6WuHn6LY3PgKfT69pVsKM_74KhHQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '59da1320-cdad-11e4-a8ac-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "59da1320-cdad-11e4-a8ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.876343"], ["updated_at", "2015-03-18 20:28:34.876343"], ["token", "ttCihTIAeVh0xj8CtWIlB0VKJsX1oQ4v1Mb6MOTmRTg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 13:28:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$u2hyumhHNnPx2S4WR25r4.YtebtpoxfMowo9J4g.RIfuIMtcec8M."], ["created_at", "2015-03-18 20:28:34.896308"], ["updated_at", "2015-03-18 20:28:34.896308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$fwjr7ZsNs5D6dWoXF/NdMOIVWLqTZNsX7cI2HhuPJRpdJn3Bcox0W"], ["created_at", "2015-03-18 20:28:34.900473"], ["updated_at", "2015-03-18 20:28:34.900473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.901889"], ["user_id", "59e1e3de-cdad-11e4-8bac-705681abff85"], ["created_at", "2015-03-18 20:28:34.902676"], ["updated_at", "2015-03-18 20:28:34.902676"], ["token", "wDZCkWJCSBYNHt-NOqfTxOIgYavXPqnZxz0sRGUB1ws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:34.905939"], ["updated_at", "2015-03-18 20:28:34.905939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59e1e3de-cdad-11e4-8bac-705681abff85' AND "clubhouse_memberships"."organization_id" = '59e3582c-cdad-11e4-8cb8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59e1e3de-cdad-11e4-8bac-705681abff85"], ["organization_id", "59e3582c-cdad-11e4-8cb8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.909389"], ["updated_at", "2015-03-18 20:28:34.909389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59e28348-cdad-11e4-9c50-705681abff85' AND "clubhouse_memberships"."organization_id" = '59e3582c-cdad-11e4-8cb8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59e28348-cdad-11e4-9c50-705681abff85"], ["organization_id", "59e3582c-cdad-11e4-8cb8-705681abff85"], ["created_at", "2015-03-18 20:28:34.912410"], ["updated_at", "2015-03-18 20:28:34.912410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$wLqMjhND6RojI/BRNrhWn.DO7vlGLO9sUyNbU2SvMWADkngXDklgq"], ["created_at", "2015-03-18 20:28:34.917356"], ["updated_at", "2015-03-18 20:28:34.917356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.919137"], ["user_id", "59e51c02-cdad-11e4-b55f-705681abff85"], ["created_at", "2015-03-18 20:28:34.920281"], ["updated_at", "2015-03-18 20:28:34.920281"], ["token", "gXCIlgNXDAunmclGWrpJpFBUUNLP1XcP7UcKfHe0e1Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '59e3582c-cdad-11e4-8cb8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "59e3582c-cdad-11e4-8cb8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.924646"], ["updated_at", "2015-03-18 20:28:34.924646"], ["token", "eUg_JhO0_s4BcJq_XHNR46uh-R_EP6VBY_wv-kWUHec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/59e3582c-cdad-11e4-8cb8-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:28:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"eUg_JhO0_s4BcJq_XHNR46uh-R_EP6VBY_wv-kWUHec", "organization_id"=>"59e3582c-cdad-11e4-8cb8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:34.930727' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gXCIlgNXDAunmclGWrpJpFBUUNLP1XcP7UcKfHe0e1Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:34.932158"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:34.933129"], ["id", "59e5a2e4-cdad-11e4-9a5f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "59e51c02-cdad-11e4-b55f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "59e51c02-cdad-11e4-b55f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "59e3582c-cdad-11e4-8cb8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "eUg_JhO0_s4BcJq_XHNR46uh-R_EP6VBY_wv-kWUHec"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "59e3582c-cdad-11e4-8cb8-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "59e3582c-cdad-11e4-8cb8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59e51c02-cdad-11e4-b55f-705681abff85' AND "clubhouse_memberships"."organization_id" = '59e3582c-cdad-11e4-8cb8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59e51c02-cdad-11e4-b55f-705681abff85"], ["admin", "t"], ["organization_id", "59e3582c-cdad-11e4-8cb8-705681abff85"], ["created_at", "2015-03-18 20:28:34.943055"], ["updated_at", "2015-03-18 20:28:34.943055"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "59e63bbe-cdad-11e4-b577-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 17ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ydZ.XJ0eaCCaI/hoDELPf.N0robfmpZgI5cAJE5WklhO.X7OU.dim"], ["created_at", "2015-03-18 20:28:34.953584"], ["updated_at", "2015-03-18 20:28:34.953584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$p0aaSgc01a5C0aB1LlcDOONamL2GwjyuVDpGan.4eOWjY3nhqGQRO"], ["created_at", "2015-03-18 20:28:34.958066"], ["updated_at", "2015-03-18 20:28:34.958066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.959814"], ["user_id", "59ea9fb0-cdad-11e4-9039-705681abff85"], ["created_at", "2015-03-18 20:28:34.960621"], ["updated_at", "2015-03-18 20:28:34.960621"], ["token", "mtLJ30UAnF4jO6nqVxTtIsONwoRpO0P4jPs3Tw-CPJA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:34.964465"], ["updated_at", "2015-03-18 20:28:34.964465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59ea9fb0-cdad-11e4-9039-705681abff85' AND "clubhouse_memberships"."organization_id" = '59ec4aea-cdad-11e4-99dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59ea9fb0-cdad-11e4-9039-705681abff85"], ["organization_id", "59ec4aea-cdad-11e4-99dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.967870"], ["updated_at", "2015-03-18 20:28:34.967870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59eb4e74-cdad-11e4-88a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '59ec4aea-cdad-11e4-99dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59eb4e74-cdad-11e4-88a5-705681abff85"], ["organization_id", "59ec4aea-cdad-11e4-99dc-705681abff85"], ["created_at", "2015-03-18 20:28:34.971164"], ["updated_at", "2015-03-18 20:28:34.971164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$aMhPSqRZLyYL4ViIOOiYU.cQ9FHht125Min/Zd8lJUgM1f6jIwUve"], ["created_at", "2015-03-18 20:28:34.975453"], ["updated_at", "2015-03-18 20:28:34.975453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:34.976914"], ["user_id", "59edf4e4-cdad-11e4-a588-705681abff85"], ["created_at", "2015-03-18 20:28:34.977616"], ["updated_at", "2015-03-18 20:28:34.977616"], ["token", "D8erc5npPu-lbGfkGrUxAt8gxpABHhBuBxSG2v0Z2Vk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '59ec4aea-cdad-11e4-99dc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "59ec4aea-cdad-11e4-99dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:34.981354"], ["updated_at", "2015-03-18 20:28:34.981354"], ["token", "N1XkU2jPY5XICLta5syvEWknmJPPFTDlFUPh4irsOsg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/59ec4aea-cdad-11e4-99dc-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:28:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"59ec4aea-cdad-11e4-99dc-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:34.987339' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "D8erc5npPu-lbGfkGrUxAt8gxpABHhBuBxSG2v0Z2Vk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:34.988855"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:34.989858"], ["id", "59ee502e-cdad-11e4-9f1a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "59edf4e4-cdad-11e4-a588-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "59edf4e4-cdad-11e4-a588-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "59ec4aea-cdad-11e4-99dc-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$.ioivFqv8vni63IE6ItvLOAPZqJxrugTdd4k6KXzGRLJ6P4DtwopC"], ["created_at", "2015-03-18 20:28:35.002531"], ["updated_at", "2015-03-18 20:28:35.002531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Iz0bvZnbswQjQXBYoX0PhehiGvGwe6gb8N8XGZ17jcQ8bDaIzn8VS"], ["created_at", "2015-03-18 20:28:35.007657"], ["updated_at", "2015-03-18 20:28:35.007657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:35.009233"], ["user_id", "59f22cc6-cdad-11e4-80d5-705681abff85"], ["created_at", "2015-03-18 20:28:35.010009"], ["updated_at", "2015-03-18 20:28:35.010009"], ["token", "BFd1VHZZ7LHOLuYOcBhKno0KmaI2dVNcsihLeGbVDgA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:35.013760"], ["updated_at", "2015-03-18 20:28:35.013760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59f22cc6-cdad-11e4-80d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '59f3cd1a-cdad-11e4-ad90-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59f22cc6-cdad-11e4-80d5-705681abff85"], ["organization_id", "59f3cd1a-cdad-11e4-ad90-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:35.017025"], ["updated_at", "2015-03-18 20:28:35.017025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59f2dfe0-cdad-11e4-9d57-705681abff85' AND "clubhouse_memberships"."organization_id" = '59f3cd1a-cdad-11e4-ad90-705681abff85') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59f2dfe0-cdad-11e4-9d57-705681abff85"], ["organization_id", "59f3cd1a-cdad-11e4-ad90-705681abff85"], ["created_at", "2015-03-18 20:28:35.020178"], ["updated_at", "2015-03-18 20:28:35.020178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 13:28:35 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$eoZTyU2KXfbG/7xpBFiHgeNOQXexzCQ9KFaUBbaGP90UnPctetzl."], ["created_at", "2015-03-18 20:28:35.030624"], ["updated_at", "2015-03-18 20:28:35.030624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$W1hzhpiawb/Dzy.EQ/KP3OwNXJVhJzakfvoVytE5A.GboUKrgQSJi"], ["created_at", "2015-03-18 20:28:35.035236"], ["updated_at", "2015-03-18 20:28:35.035236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:35.036757"], ["user_id", "59f66a16-cdad-11e4-9fa8-705681abff85"], ["created_at", "2015-03-18 20:28:35.037832"], ["updated_at", "2015-03-18 20:28:35.037832"], ["token", "SPSqDjy7DwiWNK-QoYLzM2xvKI9mG-SdVAw3PM-5SVw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:35.041978"], ["updated_at", "2015-03-18 20:28:35.041978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59f66a16-cdad-11e4-9fa8-705681abff85' AND "clubhouse_memberships"."organization_id" = '59f81e9c-cdad-11e4-a2fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59f66a16-cdad-11e4-9fa8-705681abff85"], ["organization_id", "59f81e9c-cdad-11e4-a2fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:35.045380"], ["updated_at", "2015-03-18 20:28:35.045380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59f71484-cdad-11e4-b1d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '59f81e9c-cdad-11e4-a2fc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59f71484-cdad-11e4-b1d7-705681abff85"], ["organization_id", "59f81e9c-cdad-11e4-a2fc-705681abff85"], ["created_at", "2015-03-18 20:28:35.048707"], ["updated_at", "2015-03-18 20:28:35.048707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/59f8a074-cdad-11e4-9fa3-705681abff85" for 127.0.0.1 at 2015-03-18 13:28:35 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"59f8a074-cdad-11e4-9fa3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:35.055105' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SPSqDjy7DwiWNK-QoYLzM2xvKI9mG-SdVAw3PM-5SVw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:35.056631"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:35.057656"], ["id", "59f78c84-cdad-11e4-ab93-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "59f66a16-cdad-11e4-9fa8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "59f66a16-cdad-11e4-9fa8-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "59f8a074-cdad-11e4-9fa3-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$sjW.fLfX7/yijPAFmNIELuSeJ12IbYgxO0kh2cGfXzNjwTPdlWSue"], ["created_at", "2015-03-18 20:28:35.070779"], ["updated_at", "2015-03-18 20:28:35.070779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$7D2/R/V6d.Yh9QQ3nMgR3.KoqaJqPPV82dDbSd4xxE.9AGKMCJ16C"], ["created_at", "2015-03-18 20:28:35.075069"], ["updated_at", "2015-03-18 20:28:35.075069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:35.076872"], ["user_id", "59fc83f6-cdad-11e4-b642-705681abff85"], ["created_at", "2015-03-18 20:28:35.077680"], ["updated_at", "2015-03-18 20:28:35.077680"], ["token", "SoluY2i4CdOd67WMjVkkDBtZQuf_J5vLg3UeM7vfROY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:35.081069"], ["updated_at", "2015-03-18 20:28:35.081069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59fc83f6-cdad-11e4-b642-705681abff85' AND "clubhouse_memberships"."organization_id" = '59fe1856-cdad-11e4-baf8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59fc83f6-cdad-11e4-b642-705681abff85"], ["organization_id", "59fe1856-cdad-11e4-baf8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:35.084865"], ["updated_at", "2015-03-18 20:28:35.084865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59fd3062-cdad-11e4-9eb7-705681abff85' AND "clubhouse_memberships"."organization_id" = '59fe1856-cdad-11e4-baf8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59fd3062-cdad-11e4-9eb7-705681abff85"], ["organization_id", "59fe1856-cdad-11e4-baf8-705681abff85"], ["created_at", "2015-03-18 20:28:35.088024"], ["updated_at", "2015-03-18 20:28:35.088024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 13:28:35 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$DMvJqGApzmIYpp.C185aiuz0jyzTNqUyZwhsOqTEfmF3t28rZMX5K"], ["created_at", "2015-03-18 20:28:35.099034"], ["updated_at", "2015-03-18 20:28:35.099034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$hNHV6a55h3RnbfkUgg/lWOuxSLKtUrrxv86oqur0a3Y99b140xUd2"], ["created_at", "2015-03-18 20:28:35.104328"], ["updated_at", "2015-03-18 20:28:35.104328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:35.106043"], ["user_id", "5a00df50-cdad-11e4-be03-705681abff85"], ["created_at", "2015-03-18 20:28:35.107087"], ["updated_at", "2015-03-18 20:28:35.107087"], ["token", "Y-FOXdaCvRadKR7OZiK_9zHwt7XTe9XIZwbJ0bVBjF4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:35.110746"], ["updated_at", "2015-03-18 20:28:35.110746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a00df50-cdad-11e4-be03-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a029ad4-cdad-11e4-8f09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5a00df50-cdad-11e4-be03-705681abff85"], ["organization_id", "5a029ad4-cdad-11e4-8f09-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:35.114070"], ["updated_at", "2015-03-18 20:28:35.114070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a01a3ea-cdad-11e4-a9c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a029ad4-cdad-11e4-8f09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5a01a3ea-cdad-11e4-a9c7-705681abff85"], ["organization_id", "5a029ad4-cdad-11e4-8f09-705681abff85"], ["created_at", "2015-03-18 20:28:35.117524"], ["updated_at", "2015-03-18 20:28:35.117524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5a03a474-cdad-11e4-b608-705681abff85" for 127.0.0.1 at 2015-03-18 13:28:35 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"5a03a474-cdad-11e4-b608-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:35.123923' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y-FOXdaCvRadKR7OZiK_9zHwt7XTe9XIZwbJ0bVBjF4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:35.125527"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:35.126614"], ["id", "5a0216d6-cdad-11e4-9b09-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5a00df50-cdad-11e4-be03-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5a00df50-cdad-11e4-be03-705681abff85"]] Completed 500 Internal Server Error in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$t6ZBcX81YoucPWm1lTkiNe9nzPL49Rhs1gATSnJda7EQgO9xTyPy6"], ["created_at", "2015-03-18 20:28:35.149799"], ["updated_at", "2015-03-18 20:28:35.149799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$WyjFokkO76IXhZcBjDfJJOdR9H/ScWrivn/ysIifmVHVKA0T03A7G"], ["created_at", "2015-03-18 20:28:35.155082"], ["updated_at", "2015-03-18 20:28:35.155082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:35.156736"], ["user_id", "5a08a622-cdad-11e4-8d09-705681abff85"], ["created_at", "2015-03-18 20:28:35.157564"], ["updated_at", "2015-03-18 20:28:35.157564"], ["token", "6BWT6edOLFhD9mq9wKu4pbmaO-blNjrXS8HaAHeOjwo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:35.161089"], ["updated_at", "2015-03-18 20:28:35.161089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a08a622-cdad-11e4-8d09-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a0a48a6-cdad-11e4-8e22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5a08a622-cdad-11e4-8d09-705681abff85"], ["organization_id", "5a0a48a6-cdad-11e4-8e22-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:35.164915"], ["updated_at", "2015-03-18 20:28:35.164915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a09608a-cdad-11e4-80c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a0a48a6-cdad-11e4-8e22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5a09608a-cdad-11e4-80c7-705681abff85"], ["organization_id", "5a0a48a6-cdad-11e4-8e22-705681abff85"], ["created_at", "2015-03-18 20:28:35.168521"], ["updated_at", "2015-03-18 20:28:35.168521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5a0ae07c-cdad-11e4-82c7-705681abff85" for 127.0.0.1 at 2015-03-18 13:28:35 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"5a0ae07c-cdad-11e4-82c7-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:35.173954' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6BWT6edOLFhD9mq9wKu4pbmaO-blNjrXS8HaAHeOjwo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:35.175382"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:35.176381"], ["id", "5a09c7aa-cdad-11e4-9cc0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5a08a622-cdad-11e4-8d09-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5a08a622-cdad-11e4-8d09-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$X15vI.jVsaB0P2lQKNRJu.EHVCtaMHjTwM4DTCOapGDF/SH7daDPa"], ["created_at", "2015-03-18 20:28:35.190030"], ["updated_at", "2015-03-18 20:28:35.190030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$dcRiBjL3R3WUyCxZclKkl.8ZGabTIZubMyK2PQVdaRSxvjMh2gLf2"], ["created_at", "2015-03-18 20:28:35.194698"], ["updated_at", "2015-03-18 20:28:35.194698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:35.196372"], ["user_id", "5a0eb7f6-cdad-11e4-9601-705681abff85"], ["created_at", "2015-03-18 20:28:35.197322"], ["updated_at", "2015-03-18 20:28:35.197322"], ["token", "y6Sz4YepjSYUOuJ-DjlWmaKp--7IqhhpwaFNtwt6phM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:35.201076"], ["updated_at", "2015-03-18 20:28:35.201076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a0eb7f6-cdad-11e4-9601-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a1069f2-cdad-11e4-8bf1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5a0eb7f6-cdad-11e4-9601-705681abff85"], ["organization_id", "5a1069f2-cdad-11e4-8bf1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:35.204887"], ["updated_at", "2015-03-18 20:28:35.204887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a0f6ae8-cdad-11e4-af0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a1069f2-cdad-11e4-8bf1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5a0f6ae8-cdad-11e4-af0d-705681abff85"], ["organization_id", "5a1069f2-cdad-11e4-8bf1-705681abff85"], ["created_at", "2015-03-18 20:28:35.208214"], ["updated_at", "2015-03-18 20:28:35.208214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 13:28:35 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$yRwgFoHqSuzpxiYUYGQwfeLn3fjuj2yHka6rjwK447yYe.7wZ3VHS"], ["created_at", "2015-03-18 20:28:35.219063"], ["updated_at", "2015-03-18 20:28:35.219063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$QW5UWrzBtYWAMjW27dZoc.4S6a.I0TOzUzhwgx8bBbeFSmrkySTPC"], ["created_at", "2015-03-18 20:28:35.224377"], ["updated_at", "2015-03-18 20:28:35.224377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:35.226108"], ["user_id", "5a132728-cdad-11e4-8c4f-705681abff85"], ["created_at", "2015-03-18 20:28:35.227254"], ["updated_at", "2015-03-18 20:28:35.227254"], ["token", "dAGjeARGCxqxgo7RHCLqFQ-OIGL1v-IEb-UH-ZbLcz0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:35.231005"], ["updated_at", "2015-03-18 20:28:35.231005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a132728-cdad-11e4-8c4f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a14f4c2-cdad-11e4-956f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5a132728-cdad-11e4-8c4f-705681abff85"], ["organization_id", "5a14f4c2-cdad-11e4-956f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:35.234384"], ["updated_at", "2015-03-18 20:28:35.234384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a13f540-cdad-11e4-a9e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a14f4c2-cdad-11e4-956f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5a13f540-cdad-11e4-a9e7-705681abff85"], ["organization_id", "5a14f4c2-cdad-11e4-956f-705681abff85"], ["created_at", "2015-03-18 20:28:35.239261"], ["updated_at", "2015-03-18 20:28:35.239261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/5a163a58-cdad-11e4-9bad-705681abff85" for 127.0.0.1 at 2015-03-18 13:28:35 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"5a163a58-cdad-11e4-9bad-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:35.244597' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dAGjeARGCxqxgo7RHCLqFQ-OIGL1v-IEb-UH-ZbLcz0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:35.253771"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:35.255216"], ["id", "5a146a7a-cdad-11e4-bcd4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5a132728-cdad-11e4-8c4f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5a132728-cdad-11e4-8c4f-705681abff85"]] Completed 500 Internal Server Error in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$d/a6jZm99LYEXU0yPCJIMOFQ.g7eelNwQ9pfuMoJWOZvl0yfGAfTq"], ["created_at", "2015-03-18 20:28:35.267667"], ["updated_at", "2015-03-18 20:28:35.267667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$NvYlMwLq1phBIjineC840.GnedQniCmAMsqYyCt5MNPJSNSAt2Iv."], ["created_at", "2015-03-18 20:28:35.272624"], ["updated_at", "2015-03-18 20:28:35.272624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:35.274258"], ["user_id", "5a1a927e-cdad-11e4-a9b5-705681abff85"], ["created_at", "2015-03-18 20:28:35.275035"], ["updated_at", "2015-03-18 20:28:35.275035"], ["token", "qU5ZGMAv9D8uMx5rUA0HofgtB-AM9S6LMgxuxTKTN7I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:35.278777"], ["updated_at", "2015-03-18 20:28:35.278777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a1a927e-cdad-11e4-a9b5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a1c3e3a-cdad-11e4-ad6e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5a1a927e-cdad-11e4-a9b5-705681abff85"], ["organization_id", "5a1c3e3a-cdad-11e4-ad6e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:35.282062"], ["updated_at", "2015-03-18 20:28:35.282062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a1b5088-cdad-11e4-a0a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a1c3e3a-cdad-11e4-ad6e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5a1b5088-cdad-11e4-a0a1-705681abff85"], ["organization_id", "5a1c3e3a-cdad-11e4-ad6e-705681abff85"], ["created_at", "2015-03-18 20:28:35.285630"], ["updated_at", "2015-03-18 20:28:35.285630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/5a1cbdc4-cdad-11e4-9d68-705681abff85" for 127.0.0.1 at 2015-03-18 13:28:35 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"5a1cbdc4-cdad-11e4-9d68-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:35.291244' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qU5ZGMAv9D8uMx5rUA0HofgtB-AM9S6LMgxuxTKTN7I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:35.292707"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:35.293829"], ["id", "5a1bb258-cdad-11e4-9b6c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5a1a927e-cdad-11e4-a9b5-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5a1a927e-cdad-11e4-a9b5-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$TVF9ioj8J2VCU.7ZpIwAiebSGIwfE2VlcNLyjpqUJPAXp2MW2hctC"], ["created_at", "2015-03-18 20:28:35.307329"], ["updated_at", "2015-03-18 20:28:35.307329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$UiN8XE28myyKCuflsm5RtOshRg8Ip75BoVTNjWxaJkPFRIXwKLX2W"], ["created_at", "2015-03-18 20:28:35.312246"], ["updated_at", "2015-03-18 20:28:35.312246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:35.313819"], ["user_id", "5a20a7e0-cdad-11e4-b011-705681abff85"], ["created_at", "2015-03-18 20:28:35.314657"], ["updated_at", "2015-03-18 20:28:35.314657"], ["token", "laT9rcZ9j9l9ReujJkmywayuotEdo929iWEmzNLbTns"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:35.318448"], ["updated_at", "2015-03-18 20:28:35.318448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a20a7e0-cdad-11e4-b011-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a224bae-cdad-11e4-accf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5a20a7e0-cdad-11e4-b011-705681abff85"], ["organization_id", "5a224bae-cdad-11e4-accf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:35.322043"], ["updated_at", "2015-03-18 20:28:35.322043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a2159a6-cdad-11e4-af10-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a224bae-cdad-11e4-accf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5a2159a6-cdad-11e4-af10-705681abff85"], ["organization_id", "5a224bae-cdad-11e4-accf-705681abff85"], ["created_at", "2015-03-18 20:28:35.325336"], ["updated_at", "2015-03-18 20:28:35.325336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 13:28:35 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$fuPshlM9IoTaxaJIQKIrGOHJgVs1g0H7hFeqYGRepK9E9t3Ash.Ye"], ["created_at", "2015-03-18 20:28:35.335689"], ["updated_at", "2015-03-18 20:28:35.335689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$o0D/5gibQOHvdQXuTTu6k.RWWtzmJ/KpMz0.68TNa0WobJuT6QpRy"], ["created_at", "2015-03-18 20:28:35.342119"], ["updated_at", "2015-03-18 20:28:35.342119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:28:35.344409"], ["user_id", "5a24f2d2-cdad-11e4-85e2-705681abff85"], ["created_at", "2015-03-18 20:28:35.345317"], ["updated_at", "2015-03-18 20:28:35.345317"], ["token", "fE8Yta2WBiZ3v2JsO2uWV-cAPsLn_zgnWPcHzSzs4Ok"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:28:35.349358"], ["updated_at", "2015-03-18 20:28:35.349358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a24f2d2-cdad-11e4-85e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a27068a-cdad-11e4-88bf-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5a24f2d2-cdad-11e4-85e2-705681abff85"], ["organization_id", "5a27068a-cdad-11e4-88bf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:28:35.353029"], ["updated_at", "2015-03-18 20:28:35.353029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a25f8bc-cdad-11e4-a60d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5a27068a-cdad-11e4-88bf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5a25f8bc-cdad-11e4-a60d-705681abff85"], ["organization_id", "5a27068a-cdad-11e4-88bf-705681abff85"], ["created_at", "2015-03-18 20:28:35.357857"], ["updated_at", "2015-03-18 20:28:35.357857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:28:35 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:28:35.362744' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fE8Yta2WBiZ3v2JsO2uWV-cAPsLn_zgnWPcHzSzs4Ok"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:28:35.364130"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:28:35.365305"], ["id", "5a26713e-cdad-11e4-be96-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5a24f2d2-cdad-11e4-85e2-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "5a24f2d2-cdad-11e4-85e2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "5a27068a-cdad-11e4-88bf-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('5a24f2d2-cdad-11e4-85e2-705681abff85', '5a25f8bc-cdad-11e4-a60d-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('5a27068a-cdad-11e4-88bf-705681abff85') Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (32.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$IHMBiFInM001Ue.ZGocpZ.V.iKBzlXober.7RgjAOzPjcwNnlTDm6"], ["created_at", "2015-03-18 20:29:27.931678"], ["updated_at", "2015-03-18 20:29:27.931678"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$9QwQdMvvi8p7OMhf1ae9SuEX9dN8IRPeMaU/4oNB3iov61GGVybjq"], ["created_at", "2015-03-18 20:29:27.970837"], ["updated_at", "2015-03-18 20:29:27.970837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (22.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:27.979862"], ["user_id", "798378c4-cdad-11e4-9611-705681abff85"], ["created_at", "2015-03-18 20:29:28.038963"], ["updated_at", "2015-03-18 20:29:28.038963"], ["token", "uJerbPJy0JhHjX4-hF6YNIfLxyz5hdhN-v7qFNEzGFk"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.179603"], ["updated_at", "2015-03-18 20:29:28.179603"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '798378c4-cdad-11e4-9611-705681abff85' AND "clubhouse_memberships"."organization_id" = '79a48ed8-cdad-11e4-b4a4-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "798378c4-cdad-11e4-9611-705681abff85"], ["organization_id", "79a48ed8-cdad-11e4-b4a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.206200"], ["updated_at", "2015-03-18 20:29:28.206200"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79847094-cdad-11e4-b358-705681abff85' AND "clubhouse_memberships"."organization_id" = '79a48ed8-cdad-11e4-b4a4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79847094-cdad-11e4-b358-705681abff85"], ["organization_id", "79a48ed8-cdad-11e4-b4a4-705681abff85"], ["created_at", "2015-03-18 20:29:28.212590"], ["updated_at", "2015-03-18 20:29:28.212590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$8tcLaVSo1nKCSTSmun./7ulWKmJ9dJ9sdAE9zHYWIQbl3cb0ojuQS"], ["created_at", "2015-03-18 20:29:28.255616"], ["updated_at", "2015-03-18 20:29:28.255616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$rpzR7SVaF5gcKeU81p6ts.rS/Rx6M3cn8W7ZJ3fuoQqbuqGu.eRFW"], ["created_at", "2015-03-18 20:29:28.260447"], ["updated_at", "2015-03-18 20:29:28.260447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.262124"], ["user_id", "79afed00-cdad-11e4-888c-705681abff85"], ["created_at", "2015-03-18 20:29:28.262922"], ["updated_at", "2015-03-18 20:29:28.262922"], ["token", "20LKU--2UmSgdxq8Z9ehD6dmdQ28PNL0YYhhfDCan2w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.269362"], ["updated_at", "2015-03-18 20:29:28.269362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79afed00-cdad-11e4-888c-705681abff85' AND "clubhouse_memberships"."organization_id" = '79b1ff0a-cdad-11e4-acfd-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79afed00-cdad-11e4-888c-705681abff85"], ["organization_id", "79b1ff0a-cdad-11e4-acfd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.273479"], ["updated_at", "2015-03-18 20:29:28.273479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79b09b6a-cdad-11e4-b83c-705681abff85' AND "clubhouse_memberships"."organization_id" = '79b1ff0a-cdad-11e4-acfd-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79b09b6a-cdad-11e4-b83c-705681abff85"], ["organization_id", "79b1ff0a-cdad-11e4-acfd-705681abff85"], ["created_at", "2015-03-18 20:29:28.277627"], ["updated_at", "2015-03-18 20:29:28.277627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/79b1ff0a-cdad-11e4-acfd-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"79b1ff0a-cdad-11e4-acfd-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:28.284612' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "20LKU--2UmSgdxq8Z9ehD6dmdQ28PNL0YYhhfDCan2w"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:28.294292"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:28.296100"], ["id", "79b114a0-cdad-11e4-851f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79afed00-cdad-11e4-888c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "79afed00-cdad-11e4-888c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "79b1ff0a-cdad-11e4-acfd-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "79b1ff0a-cdad-11e4-acfd-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('79afed00-cdad-11e4-888c-705681abff85', '79b09b6a-cdad-11e4-b83c-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('79b1ff0a-cdad-11e4-acfd-705681abff85') Completed 500 Internal Server Error in 50ms  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$NlYe0zGF8Ixd0vK1gYAnp.fr8H4.ylcdjoNgEiOkj2ScNbv.nScUm"], ["created_at", "2015-03-18 20:29:28.339893"], ["updated_at", "2015-03-18 20:29:28.339893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$BSLfWWZWoBAForU.thAa8eSMeYsGwLzKtm6yyP1OPkZiKABC.dgve"], ["created_at", "2015-03-18 20:29:28.345717"], ["updated_at", "2015-03-18 20:29:28.345717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.347979"], ["user_id", "79bcc930-cdad-11e4-af61-705681abff85"], ["created_at", "2015-03-18 20:29:28.348824"], ["updated_at", "2015-03-18 20:29:28.348824"], ["token", "CLUAL5nGqRX7FSeR2EoBWjZcTamozSdN2o70UKlBOAM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.352662"], ["updated_at", "2015-03-18 20:29:28.352662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79bcc930-cdad-11e4-af61-705681abff85' AND "clubhouse_memberships"."organization_id" = '79bead72-cdad-11e4-bb62-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79bcc930-cdad-11e4-af61-705681abff85"], ["organization_id", "79bead72-cdad-11e4-bb62-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.355950"], ["updated_at", "2015-03-18 20:29:28.355950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79bdb0d4-cdad-11e4-a03d-705681abff85' AND "clubhouse_memberships"."organization_id" = '79bead72-cdad-11e4-bb62-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79bdb0d4-cdad-11e4-a03d-705681abff85"], ["organization_id", "79bead72-cdad-11e4-bb62-705681abff85"], ["created_at", "2015-03-18 20:29:28.360000"], ["updated_at", "2015-03-18 20:29:28.360000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$6KpCBs6oxSNfRH1DF7EolOvnVo9eVo2GML4X0ijJPwFBIbWEBBwNG"], ["created_at", "2015-03-18 20:29:28.370881"], ["updated_at", "2015-03-18 20:29:28.370881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$fR8HBXjrYFyRPJk7x27Ure3Nol8V/QLsL6COfG30IGdI.YfDoUk7e"], ["created_at", "2015-03-18 20:29:28.375115"], ["updated_at", "2015-03-18 20:29:28.375115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.376849"], ["user_id", "79c1771e-cdad-11e4-bd29-705681abff85"], ["created_at", "2015-03-18 20:29:28.377966"], ["updated_at", "2015-03-18 20:29:28.377966"], ["token", "-zHFnw-JcB0F7ku3a5C7gQ184m-c3V3_QIfVT5b8lu0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.381636"], ["updated_at", "2015-03-18 20:29:28.381636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c1771e-cdad-11e4-bd29-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c31a2e-cdad-11e4-9b8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79c1771e-cdad-11e4-bd29-705681abff85"], ["organization_id", "79c31a2e-cdad-11e4-9b8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.385068"], ["updated_at", "2015-03-18 20:29:28.385068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c21994-cdad-11e4-86d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c31a2e-cdad-11e4-9b8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79c21994-cdad-11e4-86d1-705681abff85"], ["organization_id", "79c31a2e-cdad-11e4-9b8c-705681abff85"], ["created_at", "2015-03-18 20:29:28.388255"], ["updated_at", "2015-03-18 20:29:28.388255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/79c39f30-cdad-11e4-b667-705681abff85" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"79c39f30-cdad-11e4-b667-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:28.394314' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-zHFnw-JcB0F7ku3a5C7gQ184m-c3V3_QIfVT5b8lu0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:28.395774"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:28.396716"], ["id", "79c296da-cdad-11e4-889c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79c1771e-cdad-11e4-bd29-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "79c1771e-cdad-11e4-bd29-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "79c39f30-cdad-11e4-b667-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$6ifNff.EXPW2SvJx0oh9qeM0137h5o8RRFvXq0URiDltxL8qYbNoq"], ["created_at", "2015-03-18 20:29:28.409442"], ["updated_at", "2015-03-18 20:29:28.409442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$dk5kk1PJWk67EYt85KY8FuUeY3aH6DUcpS4WdWX.Yk6sQJc3uc9aC"], ["created_at", "2015-03-18 20:29:28.413674"], ["updated_at", "2015-03-18 20:29:28.413674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.415128"], ["user_id", "79c7597c-cdad-11e4-a4f3-705681abff85"], ["created_at", "2015-03-18 20:29:28.416010"], ["updated_at", "2015-03-18 20:29:28.416010"], ["token", "nsVwM4Zy4aMYlucc1l20hkTxPuLjIekHm-HhXCNFyDk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.419578"], ["updated_at", "2015-03-18 20:29:28.419578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c7597c-cdad-11e4-a4f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c8e490-cdad-11e4-b2b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79c7597c-cdad-11e4-a4f3-705681abff85"], ["organization_id", "79c8e490-cdad-11e4-b2b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.423150"], ["updated_at", "2015-03-18 20:29:28.423150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c7fa44-cdad-11e4-97f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c8e490-cdad-11e4-b2b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79c7fa44-cdad-11e4-97f1-705681abff85"], ["organization_id", "79c8e490-cdad-11e4-b2b9-705681abff85"], ["created_at", "2015-03-18 20:29:28.426318"], ["updated_at", "2015-03-18 20:29:28.426318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$XVK/mloIF9LyeGrQFZna4uNPQs2FCiK6.Tr3XKYynSjVG/ruZSuw2"], ["created_at", "2015-03-18 20:29:28.430696"], ["updated_at", "2015-03-18 20:29:28.430696"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.432504"], ["user_id", "79ca94b6-cdad-11e4-84eb-705681abff85"], ["created_at", "2015-03-18 20:29:28.433474"], ["updated_at", "2015-03-18 20:29:28.433474"], ["token", "YPHqNgPkSyiv5dKBf6me92n5j4nHTlEW0qnKt7-Bhh0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '79c8e490-cdad-11e4-b2b9-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "79c8e490-cdad-11e4-b2b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.447108"], ["updated_at", "2015-03-18 20:29:28.447108"], ["token", "BRLumYW_a0AGAJnpxnyCe57sNBW6sGFQeroTTwurmn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$kBc8fOvNdwSOSA2gOEkzr.5ivMQ/VvaBrdynQ2eO6js3O.I3ZpMpK"], ["created_at", "2015-03-18 20:29:28.464597"], ["updated_at", "2015-03-18 20:29:28.464597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$aWRaqw46IzpO7C9L.eaZTelU0LsW4M7feRo.KYd5AYd0eJrbn6rhy"], ["created_at", "2015-03-18 20:29:28.470750"], ["updated_at", "2015-03-18 20:29:28.470750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.473247"], ["user_id", "79cfd566-cdad-11e4-b237-705681abff85"], ["created_at", "2015-03-18 20:29:28.474563"], ["updated_at", "2015-03-18 20:29:28.474563"], ["token", "n0G2LfHjXFAyE4LJq75w3rwShiFup4Ah4Kmm4BbKWCM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.479098"], ["updated_at", "2015-03-18 20:29:28.479098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79cfd566-cdad-11e4-b237-705681abff85' AND "clubhouse_memberships"."organization_id" = '79d1fcce-cdad-11e4-bdd7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79cfd566-cdad-11e4-b237-705681abff85"], ["organization_id", "79d1fcce-cdad-11e4-bdd7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.483060"], ["updated_at", "2015-03-18 20:29:28.483060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79d0c2aa-cdad-11e4-a8b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '79d1fcce-cdad-11e4-bdd7-705681abff85') LIMIT 1 SQL (11.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79d0c2aa-cdad-11e4-a8b8-705681abff85"], ["organization_id", "79d1fcce-cdad-11e4-bdd7-705681abff85"], ["created_at", "2015-03-18 20:29:28.486639"], ["updated_at", "2015-03-18 20:29:28.486639"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$0LRpkKM2jQsJZ8Wsk1yYEez4iCLz/5ZpoS5DvP.9xj8YLtigDmnKa"], ["created_at", "2015-03-18 20:29:28.503735"], ["updated_at", "2015-03-18 20:29:28.503735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.505801"], ["user_id", "79d5c99e-cdad-11e4-832c-705681abff85"], ["created_at", "2015-03-18 20:29:28.506613"], ["updated_at", "2015-03-18 20:29:28.506613"], ["token", "GCC2IoPNoBSm-dId4wlG5mID-xIxb_FwN_k6fWKanL8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '79d1fcce-cdad-11e4-bdd7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "79d1fcce-cdad-11e4-bdd7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.512944"], ["updated_at", "2015-03-18 20:29:28.512944"], ["token", "m0VO1CrR4w9iYnXFCaG9icOlKuSy2lbOZfieNpnzhdM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/79d1fcce-cdad-11e4-bdd7-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"m0VO1CrR4w9iYnXFCaG9icOlKuSy2lbOZfieNpnzhdM", "organization_id"=>"79d1fcce-cdad-11e4-bdd7-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:28.518126' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GCC2IoPNoBSm-dId4wlG5mID-xIxb_FwN_k6fWKanL8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:28.520046"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:28.522022"], ["id", "79d63528-cdad-11e4-8023-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79d5c99e-cdad-11e4-832c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "79d5c99e-cdad-11e4-832c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "79d1fcce-cdad-11e4-bdd7-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "m0VO1CrR4w9iYnXFCaG9icOlKuSy2lbOZfieNpnzhdM"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79d1fcce-cdad-11e4-bdd7-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79d1fcce-cdad-11e4-bdd7-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79d5c99e-cdad-11e4-832c-705681abff85' AND "clubhouse_memberships"."organization_id" = '79d1fcce-cdad-11e4-bdd7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79d5c99e-cdad-11e4-832c-705681abff85"], ["admin", "t"], ["organization_id", "79d1fcce-cdad-11e4-bdd7-705681abff85"], ["created_at", "2015-03-18 20:29:28.536008"], ["updated_at", "2015-03-18 20:29:28.536008"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "79d72ca8-cdad-11e4-bd8a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 22ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$G8PVbwah2FMJoPFjzOMxQ.yOIUFaJbiKkl2M/RtssUUpuM.SCjV3q"], ["created_at", "2015-03-18 20:29:28.545705"], ["updated_at", "2015-03-18 20:29:28.545705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$vK6vkwomNe6c5iuT7qK8UuQrUsUpqhbJjppCAXJGDwg/UoZ27ARE2"], ["created_at", "2015-03-18 20:29:28.550493"], ["updated_at", "2015-03-18 20:29:28.550493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.552311"], ["user_id", "79dc2712-cdad-11e4-9916-705681abff85"], ["created_at", "2015-03-18 20:29:28.553157"], ["updated_at", "2015-03-18 20:29:28.553157"], ["token", "NodYWX2vY2DJ_SuBfeDqyOdvgR-DSjYo4f7_rcmSw_4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.556788"], ["updated_at", "2015-03-18 20:29:28.556788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79dc2712-cdad-11e4-9916-705681abff85' AND "clubhouse_memberships"."organization_id" = '79ddd436-cdad-11e4-ac77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79dc2712-cdad-11e4-9916-705681abff85"], ["organization_id", "79ddd436-cdad-11e4-ac77-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.567059"], ["updated_at", "2015-03-18 20:29:28.567059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79dce3aa-cdad-11e4-80ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '79ddd436-cdad-11e4-ac77-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79dce3aa-cdad-11e4-80ad-705681abff85"], ["organization_id", "79ddd436-cdad-11e4-ac77-705681abff85"], ["created_at", "2015-03-18 20:29:28.571687"], ["updated_at", "2015-03-18 20:29:28.571687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$hd4TGwMkdcXyC0dunoLQuOr6SXFxorwSY739LT1TEYoDqdNEitVlq"], ["created_at", "2015-03-18 20:29:28.578507"], ["updated_at", "2015-03-18 20:29:28.578507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.580218"], ["user_id", "79e128de-cdad-11e4-9ce6-705681abff85"], ["created_at", "2015-03-18 20:29:28.580981"], ["updated_at", "2015-03-18 20:29:28.580981"], ["token", "gt2SceV7iHQPtJ7rFToh8fOanhPS-dT5jZjOiXLbJXQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '79ddd436-cdad-11e4-ac77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "79ddd436-cdad-11e4-ac77-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.584665"], ["updated_at", "2015-03-18 20:29:28.584665"], ["token", "Q0A0-83SCHR18MDlDqtaR33a_cgqwXGJMraVe4Hdht0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/79ddd436-cdad-11e4-ac77-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"79ddd436-cdad-11e4-ac77-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:28.591326' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gt2SceV7iHQPtJ7rFToh8fOanhPS-dT5jZjOiXLbJXQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:28.593436"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:28.594611"], ["id", "79e18a72-cdad-11e4-ab76-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79e128de-cdad-11e4-9ce6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "79e128de-cdad-11e4-9ce6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "79ddd436-cdad-11e4-ac77-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$WBrV.HuVQ5WapbNSoCAUteCHpAwmvCU5geNlwLK97gDBvHYesCRKy"], ["created_at", "2015-03-18 20:29:28.607414"], ["updated_at", "2015-03-18 20:29:28.607414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$fzMDYLEWP1kC6E3fEBfAS.MPtDmBPmVIwh/rsvpcx27vJBQtsAmNy"], ["created_at", "2015-03-18 20:29:28.611822"], ["updated_at", "2015-03-18 20:29:28.611822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.613347"], ["user_id", "79e59068-cdad-11e4-bf74-705681abff85"], ["created_at", "2015-03-18 20:29:28.614109"], ["updated_at", "2015-03-18 20:29:28.614109"], ["token", "5LVMjFG5JJkHSxhUjcO-Ek5uPZ56660G0JSd8BSXHOk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.617460"], ["updated_at", "2015-03-18 20:29:28.617460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79e59068-cdad-11e4-bf74-705681abff85' AND "clubhouse_memberships"."organization_id" = '79e71366-cdad-11e4-860f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79e59068-cdad-11e4-bf74-705681abff85"], ["organization_id", "79e71366-cdad-11e4-860f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.621183"], ["updated_at", "2015-03-18 20:29:28.621183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79e63842-cdad-11e4-9e55-705681abff85' AND "clubhouse_memberships"."organization_id" = '79e71366-cdad-11e4-860f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79e63842-cdad-11e4-9e55-705681abff85"], ["organization_id", "79e71366-cdad-11e4-860f-705681abff85"], ["created_at", "2015-03-18 20:29:28.625169"], ["updated_at", "2015-03-18 20:29:28.625169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$tt.SThVSDeq1CjHD2Je6EuPcWdFUNQxO3gZNTcDH/MpcWkHflqq3C"], ["created_at", "2015-03-18 20:29:28.635789"], ["updated_at", "2015-03-18 20:29:28.635789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$YHxOx3qHi2sV8eJyy.JYxuKg2YIXlK2eXN9nWx8CUpfvkfo3.V9Tm"], ["created_at", "2015-03-18 20:29:28.642350"], ["updated_at", "2015-03-18 20:29:28.642350"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.645978"], ["user_id", "79e9e942-cdad-11e4-a5be-705681abff85"], ["created_at", "2015-03-18 20:29:28.646883"], ["updated_at", "2015-03-18 20:29:28.646883"], ["token", "4H8X4kV3fAMCKqWt1Ae4z1fWZu1QUvUAC63W2mGEZss"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.650745"], ["updated_at", "2015-03-18 20:29:28.650745"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79e9e942-cdad-11e4-a5be-705681abff85' AND "clubhouse_memberships"."organization_id" = '79ec2bf8-cdad-11e4-82d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79e9e942-cdad-11e4-a5be-705681abff85"], ["organization_id", "79ec2bf8-cdad-11e4-82d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.654464"], ["updated_at", "2015-03-18 20:29:28.654464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79eb0e8a-cdad-11e4-bddf-705681abff85' AND "clubhouse_memberships"."organization_id" = '79ec2bf8-cdad-11e4-82d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79eb0e8a-cdad-11e4-bddf-705681abff85"], ["organization_id", "79ec2bf8-cdad-11e4-82d9-705681abff85"], ["created_at", "2015-03-18 20:29:28.657971"], ["updated_at", "2015-03-18 20:29:28.657971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/79ed46a0-cdad-11e4-89ba-705681abff85" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"79ed46a0-cdad-11e4-89ba-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:28.664215' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4H8X4kV3fAMCKqWt1Ae4z1fWZu1QUvUAC63W2mGEZss"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:28.665981"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:28.667425"], ["id", "79eba016-cdad-11e4-b0dc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79e9e942-cdad-11e4-a5be-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "79e9e942-cdad-11e4-a5be-705681abff85"]] Completed 500 Internal Server Error in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$/aaKjvbcZkwrW/dbTTSZNOwRn.vrwtgBQPFp9iS7asBvZbVPjK0uC"], ["created_at", "2015-03-18 20:29:28.692240"], ["updated_at", "2015-03-18 20:29:28.692240"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$I76F3PVH29B7cIIRiuqpoOxTN7WrO/WzLFaXH7IA8SWKSsXgbZUG."], ["created_at", "2015-03-18 20:29:28.700283"], ["updated_at", "2015-03-18 20:29:28.700283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.702122"], ["user_id", "79f29fba-cdad-11e4-af1e-705681abff85"], ["created_at", "2015-03-18 20:29:28.702930"], ["updated_at", "2015-03-18 20:29:28.702930"], ["token", "2qt4ns7SxZgq7MK3AkaxTtCLLeeDna7vRwh-LYqO1Bc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.706845"], ["updated_at", "2015-03-18 20:29:28.706845"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79f29fba-cdad-11e4-af1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '79f4bb24-cdad-11e4-8f95-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79f29fba-cdad-11e4-af1e-705681abff85"], ["organization_id", "79f4bb24-cdad-11e4-8f95-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.712041"], ["updated_at", "2015-03-18 20:29:28.712041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79f3be9a-cdad-11e4-b864-705681abff85' AND "clubhouse_memberships"."organization_id" = '79f4bb24-cdad-11e4-8f95-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79f3be9a-cdad-11e4-b864-705681abff85"], ["organization_id", "79f4bb24-cdad-11e4-8f95-705681abff85"], ["created_at", "2015-03-18 20:29:28.715706"], ["updated_at", "2015-03-18 20:29:28.715706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/79f58874-cdad-11e4-90a3-705681abff85" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"79f58874-cdad-11e4-90a3-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:28.721822' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2qt4ns7SxZgq7MK3AkaxTtCLLeeDna7vRwh-LYqO1Bc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:28.725434"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:28.727350"], ["id", "79f42c54-cdad-11e4-a861-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79f29fba-cdad-11e4-af1e-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "79f29fba-cdad-11e4-af1e-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$6usDAhw7IUwJTylXNJR1YOSAsJhMDup6A7VgLgoQy.P8SrC6bAqim"], ["created_at", "2015-03-18 20:29:28.744198"], ["updated_at", "2015-03-18 20:29:28.744198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$8dof1fbPp2JLECac05PQc.NN6h6ed5S5fadQMnWGnK5i90oWMqna6"], ["created_at", "2015-03-18 20:29:28.749877"], ["updated_at", "2015-03-18 20:29:28.749877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.751695"], ["user_id", "79fa76c2-cdad-11e4-8bb1-705681abff85"], ["created_at", "2015-03-18 20:29:28.752496"], ["updated_at", "2015-03-18 20:29:28.752496"], ["token", "PINMfzjOCw1kmR1NkHP1ZsG6y3nOWdPdGWJuOkD4RRs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.757021"], ["updated_at", "2015-03-18 20:29:28.757021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79fa76c2-cdad-11e4-8bb1-705681abff85' AND "clubhouse_memberships"."organization_id" = '79fc655e-cdad-11e4-a35a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79fa76c2-cdad-11e4-8bb1-705681abff85"], ["organization_id", "79fc655e-cdad-11e4-a35a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.761525"], ["updated_at", "2015-03-18 20:29:28.761525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79fb4f66-cdad-11e4-8007-705681abff85' AND "clubhouse_memberships"."organization_id" = '79fc655e-cdad-11e4-a35a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79fb4f66-cdad-11e4-8007-705681abff85"], ["organization_id", "79fc655e-cdad-11e4-a35a-705681abff85"], ["created_at", "2015-03-18 20:29:28.765179"], ["updated_at", "2015-03-18 20:29:28.765179"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$eMdfH96RKhDZREuou6uqiO1WXJMKUyThrnS0tKI1KYlXpnnoLZr6."], ["created_at", "2015-03-18 20:29:28.777337"], ["updated_at", "2015-03-18 20:29:28.777337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$ZMRJ9QHVglUgNFbsidRdruFjQ/bikMrFNZqO2bfJikMg2Y0NF3qsm"], ["created_at", "2015-03-18 20:29:28.782571"], ["updated_at", "2015-03-18 20:29:28.782571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.784751"], ["user_id", "79ff7ffa-cdad-11e4-8fee-705681abff85"], ["created_at", "2015-03-18 20:29:28.785565"], ["updated_at", "2015-03-18 20:29:28.785565"], ["token", "lRvY3pEVFW4tB8yUuzu2FXWZ30aIV1OzzOw3yNkopbo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.790195"], ["updated_at", "2015-03-18 20:29:28.790195"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79ff7ffa-cdad-11e4-8fee-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a019038-cdad-11e4-b896-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79ff7ffa-cdad-11e4-8fee-705681abff85"], ["organization_id", "7a019038-cdad-11e4-b896-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.796818"], ["updated_at", "2015-03-18 20:29:28.796818"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a00577c-cdad-11e4-970c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a019038-cdad-11e4-b896-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a00577c-cdad-11e4-970c-705681abff85"], ["organization_id", "7a019038-cdad-11e4-b896-705681abff85"], ["created_at", "2015-03-18 20:29:28.802376"], ["updated_at", "2015-03-18 20:29:28.802376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/7a03503a-cdad-11e4-be75-705681abff85" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"7a03503a-cdad-11e4-be75-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:28.807327' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lRvY3pEVFW4tB8yUuzu2FXWZ30aIV1OzzOw3yNkopbo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:28.826678"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:28.828956"], ["id", "7a00ce32-cdad-11e4-b137-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79ff7ffa-cdad-11e4-8fee-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "79ff7ffa-cdad-11e4-8fee-705681abff85"]] Completed 500 Internal Server Error in 37ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$qxUJj4.FClFDtH4Z8NDYGeiwAsZb.j8RV75zIbnxzJATs3hjCjpXG"], ["created_at", "2015-03-18 20:29:28.850089"], ["updated_at", "2015-03-18 20:29:28.850089"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$K3Cg7sS5fsLRAgRS5aUbQuiSO/8u/63bzR/gfqZXb69inxuic6sf6"], ["created_at", "2015-03-18 20:29:28.859289"], ["updated_at", "2015-03-18 20:29:28.859289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.861585"], ["user_id", "7a0aab28-cdad-11e4-9aeb-705681abff85"], ["created_at", "2015-03-18 20:29:28.862369"], ["updated_at", "2015-03-18 20:29:28.862369"], ["token", "Ayc2-Ix5iaH9THGfal-U7Hs2gzlHBRBha-j03LPlYZ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.865928"], ["updated_at", "2015-03-18 20:29:28.865928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a0aab28-cdad-11e4-9aeb-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a0d006c-cdad-11e4-a824-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a0aab28-cdad-11e4-9aeb-705681abff85"], ["organization_id", "7a0d006c-cdad-11e4-a824-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.869622"], ["updated_at", "2015-03-18 20:29:28.869622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a0c122e-cdad-11e4-9b03-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a0d006c-cdad-11e4-a824-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a0c122e-cdad-11e4-9b03-705681abff85"], ["organization_id", "7a0d006c-cdad-11e4-a824-705681abff85"], ["created_at", "2015-03-18 20:29:28.873083"], ["updated_at", "2015-03-18 20:29:28.873083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/7a0d90ea-cdad-11e4-add6-705681abff85" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"7a0d90ea-cdad-11e4-add6-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:28.877907' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ayc2-Ix5iaH9THGfal-U7Hs2gzlHBRBha-j03LPlYZ4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:28.879476"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:28.880700"], ["id", "7a0c7eda-cdad-11e4-8e67-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a0aab28-cdad-11e4-9aeb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7a0aab28-cdad-11e4-9aeb-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$yDolpMpbdsmimGLXfavdiuj8EOZ2xZg1uzRVpOIAnGhQ4GU6aJhXq"], ["created_at", "2015-03-18 20:29:28.892324"], ["updated_at", "2015-03-18 20:29:28.892324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$zDzCG3yJJDvDLoKP86oKhOl/aWHZ1VzmUcvRFCFIA4TpIPLc0G1ea"], ["created_at", "2015-03-18 20:29:28.897429"], ["updated_at", "2015-03-18 20:29:28.897429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.899268"], ["user_id", "7a110a5e-cdad-11e4-9c5b-705681abff85"], ["created_at", "2015-03-18 20:29:28.900265"], ["updated_at", "2015-03-18 20:29:28.900265"], ["token", "2xHHqowWRQEfonGJQamTjFfMaYwkT-68aR3iMFWm-xQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.903960"], ["updated_at", "2015-03-18 20:29:28.903960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a110a5e-cdad-11e4-9c5b-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a12cc36-cdad-11e4-9345-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a110a5e-cdad-11e4-9c5b-705681abff85"], ["organization_id", "7a12cc36-cdad-11e4-9345-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.907638"], ["updated_at", "2015-03-18 20:29:28.907638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a11cf66-cdad-11e4-b101-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a12cc36-cdad-11e4-9345-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a11cf66-cdad-11e4-b101-705681abff85"], ["organization_id", "7a12cc36-cdad-11e4-9345-705681abff85"], ["created_at", "2015-03-18 20:29:28.911253"], ["updated_at", "2015-03-18 20:29:28.911253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$FO6nbadf4jAJk4bzqVn/XeXNTRA3TUOLRS1YBqSBIWoPVIq.hhFOe"], ["created_at", "2015-03-18 20:29:28.921509"], ["updated_at", "2015-03-18 20:29:28.921509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$O/gjuQTvA42nDEQWObAzGOpeCFXN9bxXD4R9lLQnQsDDIXpG9GwCm"], ["created_at", "2015-03-18 20:29:28.927534"], ["updated_at", "2015-03-18 20:29:28.927534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.929416"], ["user_id", "7a158336-cdad-11e4-9329-705681abff85"], ["created_at", "2015-03-18 20:29:28.930419"], ["updated_at", "2015-03-18 20:29:28.930419"], ["token", "rZxqq4tvMmEJLtWl4Txyhs5_zjGzUS7CcfqZH-sQJZ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.935424"], ["updated_at", "2015-03-18 20:29:28.935424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a158336-cdad-11e4-9329-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a17a058-cdad-11e4-85a5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a158336-cdad-11e4-9329-705681abff85"], ["organization_id", "7a17a058-cdad-11e4-85a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.939144"], ["updated_at", "2015-03-18 20:29:28.939144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a166b16-cdad-11e4-accc-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a17a058-cdad-11e4-85a5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a166b16-cdad-11e4-accc-705681abff85"], ["organization_id", "7a17a058-cdad-11e4-85a5-705681abff85"], ["created_at", "2015-03-18 20:29:28.943058"], ["updated_at", "2015-03-18 20:29:28.943058"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:29:28 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:28.950236' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rZxqq4tvMmEJLtWl4Txyhs5_zjGzUS7CcfqZH-sQJZ8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:28.952384"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:28.954114"], ["id", "7a16f798-cdad-11e4-aa9e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a158336-cdad-11e4-9329-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7a158336-cdad-11e4-9329-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "7a17a058-cdad-11e4-85a5-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('7a158336-cdad-11e4-9329-705681abff85', '7a166b16-cdad-11e4-accc-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('7a17a058-cdad-11e4-85a5-705681abff85') Completed 500 Internal Server Error in 17ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$okJpKgfm051McsBMGVsPRuLh4rqo4a11O6UgyVsm.tAaa1lGhm9.C"], ["created_at", "2015-03-18 20:29:28.973418"], ["updated_at", "2015-03-18 20:29:28.973418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$AWty0KXocPMNkU3vqMJlr.N4Ln1Q1vrzkvxK4b6Ofcz6IELMEixzW"], ["created_at", "2015-03-18 20:29:28.978919"], ["updated_at", "2015-03-18 20:29:28.978919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:28.980959"], ["user_id", "7a1d822a-cdad-11e4-b0f6-705681abff85"], ["created_at", "2015-03-18 20:29:28.981774"], ["updated_at", "2015-03-18 20:29:28.981774"], ["token", "kogKrj7pXijKJetLwaiSMbthQi3SclWybyfOwXH1pSs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:28.985727"], ["updated_at", "2015-03-18 20:29:28.985727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a1d822a-cdad-11e4-b0f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a1f4f74-cdad-11e4-8005-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a1d822a-cdad-11e4-b0f6-705681abff85"], ["organization_id", "7a1f4f74-cdad-11e4-8005-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:28.996773"], ["updated_at", "2015-03-18 20:29:28.996773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a1e4246-cdad-11e4-b300-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a1f4f74-cdad-11e4-8005-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a1e4246-cdad-11e4-b300-705681abff85"], ["organization_id", "7a1f4f74-cdad-11e4-8005-705681abff85"], ["created_at", "2015-03-18 20:29:29.000048"], ["updated_at", "2015-03-18 20:29:29.000048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$eJ8YOKukveKXpiYC8jjck.oIz8YsBE06EZI7M370geV9o8sy0owTO"], ["created_at", "2015-03-18 20:29:29.005111"], ["updated_at", "2015-03-18 20:29:29.005111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:29.007073"], ["user_id", "7a224666-cdad-11e4-b425-705681abff85"], ["created_at", "2015-03-18 20:29:29.007899"], ["updated_at", "2015-03-18 20:29:29.007899"], ["token", "KsTr-af-Enw2QEMHC60s2PgGW2DomiLqMl-djr0te4o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '7a1f4f74-cdad-11e4-8005-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "7a1f4f74-cdad-11e4-8005-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:29.013338"], ["updated_at", "2015-03-18 20:29:29.013338"], ["token", "EU9naGffJur5Gkn6mRJ2OA88QDFGJh4c5ld8eeoq2UQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 13:29:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$X8jRo8RBesZOC36uzYkAGOMQMnSE5AqXWD20xncj1xySyNRZFDQjy"], ["created_at", "2015-03-18 20:29:29.024107"], ["updated_at", "2015-03-18 20:29:29.024107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$0tOZyB4hZXBurIqs.ZBSMe99YtEpAmHO7Q6MieUc0BgVziRRBCRBq"], ["created_at", "2015-03-18 20:29:29.029589"], ["updated_at", "2015-03-18 20:29:29.029589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:29.031463"], ["user_id", "7a2522e6-cdad-11e4-81c3-705681abff85"], ["created_at", "2015-03-18 20:29:29.032389"], ["updated_at", "2015-03-18 20:29:29.032389"], ["token", "whG3v4UIYp0DaeJbBgWyVcLZCTwhSe9dvoDR3bbwRjM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:29.037133"], ["updated_at", "2015-03-18 20:29:29.037133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a2522e6-cdad-11e4-81c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a27232a-cdad-11e4-b171-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a2522e6-cdad-11e4-81c3-705681abff85"], ["organization_id", "7a27232a-cdad-11e4-b171-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:29.040921"], ["updated_at", "2015-03-18 20:29:29.040921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a25fee6-cdad-11e4-bc60-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a27232a-cdad-11e4-b171-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a25fee6-cdad-11e4-bc60-705681abff85"], ["organization_id", "7a27232a-cdad-11e4-b171-705681abff85"], ["created_at", "2015-03-18 20:29:29.044362"], ["updated_at", "2015-03-18 20:29:29.044362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$rJmkfvNi9MzvkY2YDhDMEuTps1QSuxd/Z.JaQtLUpZzfQxAbgbHcq"], ["created_at", "2015-03-18 20:29:29.049703"], ["updated_at", "2015-03-18 20:29:29.049703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:29.051727"], ["user_id", "7a29132e-cdad-11e4-a1e7-705681abff85"], ["created_at", "2015-03-18 20:29:29.052690"], ["updated_at", "2015-03-18 20:29:29.052690"], ["token", "DwxRjWv36k6tAcx-vbN2S_B82skeTDUKD1ere4gTGi4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '7a27232a-cdad-11e4-b171-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "7a27232a-cdad-11e4-b171-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:29.056608"], ["updated_at", "2015-03-18 20:29:29.056608"], ["token", "jypnVL4owMp0i3OO0TorPHXwhalVKNR79-HOWJNLEbM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:29:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"jypnVL4owMp0i3OO0TorPHXwhalVKNR79-HOWJNLEbM", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:29.062649' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DwxRjWv36k6tAcx-vbN2S_B82skeTDUKD1ere4gTGi4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:29.064206"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:29.065477"], ["id", "7a298908-cdad-11e4-b31a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a29132e-cdad-11e4-a1e7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7a29132e-cdad-11e4-a1e7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "jypnVL4owMp0i3OO0TorPHXwhalVKNR79-HOWJNLEbM"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a27232a-cdad-11e4-b171-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a27232a-cdad-11e4-b171-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a29132e-cdad-11e4-a1e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a27232a-cdad-11e4-b171-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a29132e-cdad-11e4-a1e7-705681abff85"], ["admin", "t"], ["organization_id", "7a27232a-cdad-11e4-b171-705681abff85"], ["created_at", "2015-03-18 20:29:29.076781"], ["updated_at", "2015-03-18 20:29:29.076781"]] SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7a2a1b70-cdad-11e4-9a18-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 19ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$OmobNgT7HMc.PH77MDHGleEwVD0OYyb9MnIUkLDD6mRP4uoDKKTOa"], ["created_at", "2015-03-18 20:29:29.087687"], ["updated_at", "2015-03-18 20:29:29.087687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$cxaaPEGMwmtJrUtT2i8ZQeNNQBkt7Golhdyvm8wIW6cnOJUdAI19m"], ["created_at", "2015-03-18 20:29:29.091886"], ["updated_at", "2015-03-18 20:29:29.091886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:29.093799"], ["user_id", "7a2ed714-cdad-11e4-9f00-705681abff85"], ["created_at", "2015-03-18 20:29:29.095010"], ["updated_at", "2015-03-18 20:29:29.095010"], ["token", "GAIrnsnE6wx9QEFXe858BDKIgVcCXdmqY_G2LAS5MJI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:29:29.098762"], ["updated_at", "2015-03-18 20:29:29.098762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a2ed714-cdad-11e4-9f00-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a308564-cdad-11e4-abdb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a2ed714-cdad-11e4-9f00-705681abff85"], ["organization_id", "7a308564-cdad-11e4-abdb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:29.102477"], ["updated_at", "2015-03-18 20:29:29.102477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a2f8114-cdad-11e4-b0f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a308564-cdad-11e4-abdb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a2f8114-cdad-11e4-b0f3-705681abff85"], ["organization_id", "7a308564-cdad-11e4-abdb-705681abff85"], ["created_at", "2015-03-18 20:29:29.105626"], ["updated_at", "2015-03-18 20:29:29.105626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$A21gknVJqsupKEekzCgDteOdn0M.UKu4HwyU3ORrHLmTwqcvOoaaC"], ["created_at", "2015-03-18 20:29:29.110360"], ["updated_at", "2015-03-18 20:29:29.110360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 20:29:29.112294"], ["user_id", "7a325394-cdad-11e4-b73b-705681abff85"], ["created_at", "2015-03-18 20:29:29.113113"], ["updated_at", "2015-03-18 20:29:29.113113"], ["token", "U1GSWd_RktojW8bEbPwAztJE8axGJmLLyzsMdWk0hnE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '7a308564-cdad-11e4-abdb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "7a308564-cdad-11e4-abdb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:29:29.117767"], ["updated_at", "2015-03-18 20:29:29.117767"], ["token", "__t3FR2C8NOAHjgbu4jUunlQBksJuPOCG2UXfwkqlQ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 13:29:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 20:29:29.122495' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U1GSWd_RktojW8bEbPwAztJE8axGJmLLyzsMdWk0hnE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 20:29:29.123906"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 20:29:29.125072"], ["id", "7a32bee2-cdad-11e4-bd5b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a325394-cdad-11e4-b73b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7a325394-cdad-11e4-b73b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (26.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$5QbKJwlc/I1WLlUbUwfw/ectMQA/pnx0EvSHBa95aQHM.RvhJ5CIa"], ["created_at", "2015-03-18 20:38:25.938541"], ["updated_at", "2015-03-18 20:38:25.938541"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$SLmL3IUvA96A2VFFn.AQPOuJeZz0vsfirljZ1UuM35ESyuIts8rny"], ["created_at", "2015-03-18 20:38:25.971457"], ["updated_at", "2015-03-18 20:38:25.971457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:25.979654"], ["updated_at", "2015-03-18 20:38:25.979654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba30cdb2-cdae-11e4-ada8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba32257c-cdae-11e4-b28f-705681abff85') LIMIT 1 SQL (7.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba30cdb2-cdae-11e4-ada8-705681abff85"], ["organization_id", "ba32257c-cdae-11e4-b28f-705681abff85"], ["created_at", "2015-03-18 20:38:26.003558"], ["updated_at", "2015-03-18 20:38:26.003558"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$8dbSvP0QyvlOx0fmZ6NVnebRlOf7WkDbuzoD.FecCCTxb.oYaSKSi"], ["created_at", "2015-03-18 20:38:26.020131"], ["updated_at", "2015-03-18 20:38:26.020131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$rFogao.6WDE/6w/Hzd6gfuigX9Pz/sToldUjHyxnFzpBBzdD8fKSa"], ["created_at", "2015-03-18 20:38:26.024424"], ["updated_at", "2015-03-18 20:38:26.024424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.027614"], ["updated_at", "2015-03-18 20:38:26.027614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba38e13c-cdae-11e4-b781-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba395bf8-cdae-11e4-8976-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba38e13c-cdae-11e4-b781-705681abff85"], ["organization_id", "ba395bf8-cdae-11e4-8976-705681abff85"], ["created_at", "2015-03-18 20:38:26.030706"], ["updated_at", "2015-03-18 20:38:26.030706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$fDf4yV8IAgJ14jTDPEsxn.IhImgZPn/CprGqYuwUUVFO1zv//KcDe"], ["created_at", "2015-03-18 20:38:26.038218"], ["updated_at", "2015-03-18 20:38:26.038218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$MseScVxfZssuKBNjeQSlye0XqfG33khsvFRmVNTm70wtldmEfVoIK"], ["created_at", "2015-03-18 20:38:26.042928"], ["updated_at", "2015-03-18 20:38:26.042928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.046098"], ["updated_at", "2015-03-18 20:38:26.046098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba3bb560-cdae-11e4-9127-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba3c2d60-cdae-11e4-bb4a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba3bb560-cdae-11e4-9127-705681abff85"], ["organization_id", "ba3c2d60-cdae-11e4-bb4a-705681abff85"], ["created_at", "2015-03-18 20:38:26.049156"], ["updated_at", "2015-03-18 20:38:26.049156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$31icifPHlqJuIYLhmzhj1OZNlI9c2Ka9LLVT6H8aNX3Gx0s05q2j2"], ["created_at", "2015-03-18 20:38:26.055201"], ["updated_at", "2015-03-18 20:38:26.055201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$oT8uGy2BNh0j2hrUP7yHfun9on0gNZjrsVdKzyitAILctxVZooVhW"], ["created_at", "2015-03-18 20:38:26.059375"], ["updated_at", "2015-03-18 20:38:26.059375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.062349"], ["updated_at", "2015-03-18 20:38:26.062349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba3e33d0-cdae-11e4-8f87-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba3ea82e-cdae-11e4-bed4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba3e33d0-cdae-11e4-8f87-705681abff85"], ["organization_id", "ba3ea82e-cdae-11e4-bed4-705681abff85"], ["created_at", "2015-03-18 20:38:26.065627"], ["updated_at", "2015-03-18 20:38:26.065627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$R9U4WaI3o20T1mcD8e9/8uZ5Y0GJ8RIAI8tvbahlTXAbzhPTs2KDe"], ["created_at", "2015-03-18 20:38:26.072089"], ["updated_at", "2015-03-18 20:38:26.072089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.075173"], ["updated_at", "2015-03-18 20:38:26.075173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba4027ee-cdae-11e4-a6ed-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba409e86-cdae-11e4-87e4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba4027ee-cdae-11e4-a6ed-705681abff85"], ["organization_id", "ba409e86-cdae-11e4-87e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:38:26.078763"], ["updated_at", "2015-03-18 20:38:26.078763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$5fKAXd6vBktLV.LDWAkSHer7.bCG747Q8wtvrBkd368p/XOIazO0G"], ["created_at", "2015-03-18 20:38:26.084837"], ["updated_at", "2015-03-18 20:38:26.084837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.088045"], ["updated_at", "2015-03-18 20:38:26.088045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba421996-cdae-11e4-9552-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba429718-cdae-11e4-a65b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba421996-cdae-11e4-9552-705681abff85"], ["organization_id", "ba429718-cdae-11e4-a65b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:38:26.091332"], ["updated_at", "2015-03-18 20:38:26.091332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$MeOI2SL8iKdHqQN267mPWe7LEXDsdvkXvWh73cA0nQuNIEAhOGw5i"], ["created_at", "2015-03-18 20:38:26.098637"], ["updated_at", "2015-03-18 20:38:26.098637"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.102415"], ["updated_at", "2015-03-18 20:38:26.102415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba443a46-cdae-11e4-8867-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba44c93e-cdae-11e4-a060-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba443a46-cdae-11e4-8867-705681abff85"], ["organization_id", "ba44c93e-cdae-11e4-a060-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:38:26.106701"], ["updated_at", "2015-03-18 20:38:26.106701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$D/AiaqDgcUyH0flG1mtcFuSKPgpN4XAdjpsgXnfrMyAd7VJ.g.L/u"], ["created_at", "2015-03-18 20:38:26.113162"], ["updated_at", "2015-03-18 20:38:26.113162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.116369"], ["updated_at", "2015-03-18 20:38:26.116369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba466c4e-cdae-11e4-851f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba46e6f6-cdae-11e4-9d28-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba466c4e-cdae-11e4-851f-705681abff85"], ["organization_id", "ba46e6f6-cdae-11e4-9d28-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:38:26.119644"], ["updated_at", "2015-03-18 20:38:26.119644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$iuSh8Qu6ig8qpld2XE3VNeIJxEMgqLqWIQBNRS9hj4c28Zdx2Gvce"], ["created_at", "2015-03-18 20:38:26.126468"], ["updated_at", "2015-03-18 20:38:26.126468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.129612"], ["updated_at", "2015-03-18 20:38:26.129612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba4874a8-cdae-11e4-ab8e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba48eb7c-cdae-11e4-8094-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba4874a8-cdae-11e4-ab8e-705681abff85"], ["organization_id", "ba48eb7c-cdae-11e4-8094-705681abff85"], ["created_at", "2015-03-18 20:38:26.132741"], ["updated_at", "2015-03-18 20:38:26.132741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$dFU3RoNxKSUpY8ftZF9dVuTQ.e1LWoiCntXNxNh7yHCuE9.MRhATa"], ["created_at", "2015-03-18 20:38:26.138562"], ["updated_at", "2015-03-18 20:38:26.138562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.141577"], ["updated_at", "2015-03-18 20:38:26.141577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba4a4ac6-cdae-11e4-8ed7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba4abe02-cdae-11e4-a795-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba4a4ac6-cdae-11e4-8ed7-705681abff85"], ["organization_id", "ba4abe02-cdae-11e4-a795-705681abff85"], ["created_at", "2015-03-18 20:38:26.144641"], ["updated_at", "2015-03-18 20:38:26.144641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$..MA8UTfEaxqTYd2G9PLreYzIvYwkJxe.qQgMvUweiWNP79QdpgPS"], ["created_at", "2015-03-18 20:38:26.150206"], ["updated_at", "2015-03-18 20:38:26.150206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.153246"], ["updated_at", "2015-03-18 20:38:26.153246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba4c118a-cdae-11e4-b82d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba4c8728-cdae-11e4-8c5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba4c118a-cdae-11e4-b82d-705681abff85"], ["organization_id", "ba4c8728-cdae-11e4-8c5f-705681abff85"], ["created_at", "2015-03-18 20:38:26.157079"], ["updated_at", "2015-03-18 20:38:26.157079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$UEaio/8hHPMcGOvxIdOG1OzBRwwbYTM0oNgLb1q0p3Wel8uE8xVQa"], ["created_at", "2015-03-18 20:38:26.162929"], ["updated_at", "2015-03-18 20:38:26.162929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:38:26.166064"], ["updated_at", "2015-03-18 20:38:26.166064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba4e038c-cdae-11e4-bd40-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba4e7c4a-cdae-11e4-8492-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba4e038c-cdae-11e4-bd40-705681abff85"], ["organization_id", "ba4e7c4a-cdae-11e4-8492-705681abff85"], ["created_at", "2015-03-18 20:38:26.169329"], ["updated_at", "2015-03-18 20:38:26.169329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$DieWLh5K0HqxcNkMCRRKWu3kZKad73zj8LUXg6GhX24ReHjwWvn3i"], ["created_at", "2015-03-18 20:39:38.248342"], ["updated_at", "2015-03-18 20:39:38.248342"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$W.q0MdxGFfnaEZY./UgouenlhhEWsHUfoLvTcVTEJmcudHCajAV.S"], ["created_at", "2015-03-18 20:39:38.275431"], ["updated_at", "2015-03-18 20:39:38.275431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.283704"], ["updated_at", "2015-03-18 20:39:38.283704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5498246-cdae-11e4-bd72-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e54acde0-cdae-11e4-9a6f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5498246-cdae-11e4-bd72-705681abff85"], ["organization_id", "e54acde0-cdae-11e4-9a6f-705681abff85"], ["created_at", "2015-03-18 20:39:38.299299"], ["updated_at", "2015-03-18 20:39:38.299299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$7L.Glh43PjKDOrzxQyPZAO9uXG8ryGirmBu7lGQKOhymCDksMjoIa"], ["created_at", "2015-03-18 20:39:38.306482"], ["updated_at", "2015-03-18 20:39:38.306482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$RR/EWu8CmhEoz6HN.dnAGO5eRT7iNlASbKWi.1LtvsqPHOUGl1.Ji"], ["created_at", "2015-03-18 20:39:38.310937"], ["updated_at", "2015-03-18 20:39:38.310937"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.324021"], ["updated_at", "2015-03-18 20:39:38.324021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e55026aa-cdae-11e4-b5da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e550edc4-cdae-11e4-bc3b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e55026aa-cdae-11e4-b5da-705681abff85"], ["organization_id", "e550edc4-cdae-11e4-bc3b-705681abff85"], ["created_at", "2015-03-18 20:39:38.328584"], ["updated_at", "2015-03-18 20:39:38.328584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Y/cLOCoAFFJhBAC0YRgsfOW3IT.8bBt1i8UGB4nOzOjcKIzBHlquy"], ["created_at", "2015-03-18 20:39:38.334721"], ["updated_at", "2015-03-18 20:39:38.334721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ju077FvAUcpmxFlt2g7S1.yMuJ/I39zwwHPScOFd8sRE8A5mfL7fe"], ["created_at", "2015-03-18 20:39:38.339454"], ["updated_at", "2015-03-18 20:39:38.339454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.342717"], ["updated_at", "2015-03-18 20:39:38.342717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e55349f2-cdae-11e4-9f38-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e553c5e4-cdae-11e4-af45-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e55349f2-cdae-11e4-9f38-705681abff85"], ["organization_id", "e553c5e4-cdae-11e4-af45-705681abff85"], ["created_at", "2015-03-18 20:39:38.345929"], ["updated_at", "2015-03-18 20:39:38.345929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$CabCwd1.2.7JE4Le7LloC.jQ6eAmeR0P0xeXM.ja/iYV2uorizW3K"], ["created_at", "2015-03-18 20:39:38.352068"], ["updated_at", "2015-03-18 20:39:38.352068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$pkpbwLqArH6YMkR9EI3eCe3tN9IhQOl4kLPaYfZ0/yeLoLdMV1yvW"], ["created_at", "2015-03-18 20:39:38.357300"], ["updated_at", "2015-03-18 20:39:38.357300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.363070"], ["updated_at", "2015-03-18 20:39:38.363070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e556032c-cdae-11e4-b9fd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e556e24c-cdae-11e4-9ec9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e556032c-cdae-11e4-b9fd-705681abff85"], ["organization_id", "e556e24c-cdae-11e4-9ec9-705681abff85"], ["created_at", "2015-03-18 20:39:38.366232"], ["updated_at", "2015-03-18 20:39:38.366232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$zgXQ/30fybOpLllk9VQONuAgAkrsdLAgNGjWqt8038HoLliPDTlTe"], ["created_at", "2015-03-18 20:39:38.372973"], ["updated_at", "2015-03-18 20:39:38.372973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.376207"], ["updated_at", "2015-03-18 20:39:38.376207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e55865f4-cdae-11e4-b211-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e558e1b4-cdae-11e4-bf4b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e55865f4-cdae-11e4-b211-705681abff85"], ["organization_id", "e558e1b4-cdae-11e4-bf4b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:39:38.379537"], ["updated_at", "2015-03-18 20:39:38.379537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$4jLGDMdZnxcDfYLMcRBNpeJqZmxnE4IGr0GY9bvxFECI0j00Nt18W"], ["created_at", "2015-03-18 20:39:38.385485"], ["updated_at", "2015-03-18 20:39:38.385485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.388936"], ["updated_at", "2015-03-18 20:39:38.388936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e55a4f0e-cdae-11e4-9d15-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e55adc4e-cdae-11e4-aa68-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e55a4f0e-cdae-11e4-9d15-705681abff85"], ["organization_id", "e55adc4e-cdae-11e4-aa68-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:39:38.392650"], ["updated_at", "2015-03-18 20:39:38.392650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$dWnOVOSg9PHYDNOg.ikMPuOhFY2aNDBomSQqwKR5L6LCfVmpSY7/i"], ["created_at", "2015-03-18 20:39:38.399515"], ["updated_at", "2015-03-18 20:39:38.399515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.402697"], ["updated_at", "2015-03-18 20:39:38.402697"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e55c7126-cdae-11e4-82df-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e55ced18-cdae-11e4-949d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e55c7126-cdae-11e4-82df-705681abff85"], ["organization_id", "e55ced18-cdae-11e4-949d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:39:38.406837"], ["updated_at", "2015-03-18 20:39:38.406837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$R5p8m.ShGHykmmqN9S7iV.HQZlZkkhcJwdaeA3pa/Ln1vaH1NYhN."], ["created_at", "2015-03-18 20:39:38.412923"], ["updated_at", "2015-03-18 20:39:38.412923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.416320"], ["updated_at", "2015-03-18 20:39:38.416320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e55e7d18-cdae-11e4-b904-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e55f02c4-cdae-11e4-973a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e55e7d18-cdae-11e4-b904-705681abff85"], ["organization_id", "e55f02c4-cdae-11e4-973a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:39:38.419813"], ["updated_at", "2015-03-18 20:39:38.419813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$L0AKhE/3iwPWa7ADNL63YeFRgrmBp.Admh3oHFkMvITQ2R4QVEvGi"], ["created_at", "2015-03-18 20:39:38.425898"], ["updated_at", "2015-03-18 20:39:38.425898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.429366"], ["updated_at", "2015-03-18 20:39:38.429366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5607a0a-cdae-11e4-9e9a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5611320-cdae-11e4-a205-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5607a0a-cdae-11e4-9e9a-705681abff85"], ["organization_id", "e5611320-cdae-11e4-a205-705681abff85"], ["created_at", "2015-03-18 20:39:38.433367"], ["updated_at", "2015-03-18 20:39:38.433367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$pBAqg/h9tv79C2.VHCVgp.GDZr6xUuS6SOKyy3MeQi1hflbywYlou"], ["created_at", "2015-03-18 20:39:38.440761"], ["updated_at", "2015-03-18 20:39:38.440761"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.445339"], ["updated_at", "2015-03-18 20:39:38.445339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e562ce04-cdae-11e4-8cb3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e563703e-cdae-11e4-b2f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e562ce04-cdae-11e4-8cb3-705681abff85"], ["organization_id", "e563703e-cdae-11e4-b2f5-705681abff85"], ["created_at", "2015-03-18 20:39:38.448753"], ["updated_at", "2015-03-18 20:39:38.448753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$o/il7/5K0qCvyqZiPp52PO6TakoqWTH8sCQtzVJ1OjcbJ5iDBVcFe"], ["created_at", "2015-03-18 20:39:38.454788"], ["updated_at", "2015-03-18 20:39:38.454788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.458860"], ["updated_at", "2015-03-18 20:39:38.458860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e564f436-cdae-11e4-808e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5657f8c-cdae-11e4-be2e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e564f436-cdae-11e4-808e-705681abff85"], ["organization_id", "e5657f8c-cdae-11e4-be2e-705681abff85"], ["created_at", "2015-03-18 20:39:38.462243"], ["updated_at", "2015-03-18 20:39:38.462243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Ce3FUVOzV/qAqr7p/GoQ8O3B9l15T6iqaNG1Q3s0Cmk9cJJFnA.He"], ["created_at", "2015-03-18 20:39:38.467953"], ["updated_at", "2015-03-18 20:39:38.467953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:39:38.471665"], ["updated_at", "2015-03-18 20:39:38.471665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e566e1e2-cdae-11e4-a23c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e56771b6-cdae-11e4-93c4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e566e1e2-cdae-11e4-a23c-705681abff85"], ["organization_id", "e56771b6-cdae-11e4-93c4-705681abff85"], ["created_at", "2015-03-18 20:39:38.474802"], ["updated_at", "2015-03-18 20:39:38.474802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (23.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$EoS4AyhtdOG4XEi6H0/Ny.jE0GU9Ivc4T.l8MzIbiQzfTlZ20Xvjm"], ["created_at", "2015-03-18 20:40:59.295349"], ["updated_at", "2015-03-18 20:40:59.295349"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.328483"], ["updated_at", "2015-03-18 20:40:59.328483"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15977ab6-cdaf-11e4-a9a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '159941e8-cdaf-11e4-b710-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15977ab6-cdaf-11e4-a9a2-705681abff85"], ["organization_id", "159941e8-cdaf-11e4-b710-705681abff85"], ["created_at", "2015-03-18 20:40:59.348608"], ["updated_at", "2015-03-18 20:40:59.348608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '15977ab6-cdaf-11e4-a9a2-705681abff85' LIMIT 1 [["organization_id", "159941e8-cdaf-11e4-b710-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$oheEVvyAOVsfjCww1wk8beOroJSVT8t0i4wHep8l7vV3ERmwngaP6"], ["created_at", "2015-03-18 20:40:59.375764"], ["updated_at", "2015-03-18 20:40:59.375764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.379513"], ["updated_at", "2015-03-18 20:40:59.379513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15a07ba2-cdaf-11e4-9f6f-705681abff85' AND "clubhouse_memberships"."organization_id" = '15a10108-cdaf-11e4-bfce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15a07ba2-cdaf-11e4-9f6f-705681abff85"], ["organization_id", "15a10108-cdaf-11e4-bfce-705681abff85"], ["created_at", "2015-03-18 20:40:59.382661"], ["updated_at", "2015-03-18 20:40:59.382661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '15a07ba2-cdaf-11e4-9f6f-705681abff85' LIMIT 1 [["organization_id", "15a10108-cdaf-11e4-bfce-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$T87HIIOUfsmdRMq2mOZQoutmIfxg0XANoCg32jfakoo6/pfU6wEPG"], ["created_at", "2015-03-18 20:40:59.389909"], ["updated_at", "2015-03-18 20:40:59.389909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.393408"], ["updated_at", "2015-03-18 20:40:59.393408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15a29ef0-cdaf-11e4-b8e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '15a31fba-cdaf-11e4-80b8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15a29ef0-cdaf-11e4-b8e9-705681abff85"], ["organization_id", "15a31fba-cdaf-11e4-80b8-705681abff85"], ["created_at", "2015-03-18 20:40:59.396527"], ["updated_at", "2015-03-18 20:40:59.396527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15a29ef0-cdaf-11e4-b8e9-705681abff85' LIMIT 1 [["organization_id", "15a31fba-cdaf-11e4-80b8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$gWre.s9814AElSiqJAo8UeTXmqr2BJjIcSK.8qWOcl/SpKYvR8YAy"], ["created_at", "2015-03-18 20:40:59.403542"], ["updated_at", "2015-03-18 20:40:59.403542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.407489"], ["updated_at", "2015-03-18 20:40:59.407489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15a4ad1c-cdaf-11e4-880f-705681abff85' AND "clubhouse_memberships"."organization_id" = '15a54f4c-cdaf-11e4-af6c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15a4ad1c-cdaf-11e4-880f-705681abff85"], ["organization_id", "15a54f4c-cdaf-11e4-af6c-705681abff85"], ["created_at", "2015-03-18 20:40:59.411073"], ["updated_at", "2015-03-18 20:40:59.411073"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15a4ad1c-cdaf-11e4-880f-705681abff85' LIMIT 1 [["organization_id", "15a54f4c-cdaf-11e4-af6c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$4ylU1nzmpsYbt0daL2m2verHLTzwXTvmRwPFdH4dO82yXt2VeBoOy"], ["created_at", "2015-03-18 20:40:59.419857"], ["updated_at", "2015-03-18 20:40:59.419857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.423397"], ["updated_at", "2015-03-18 20:40:59.423397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15a73514-cdaf-11e4-bced-705681abff85' AND "clubhouse_memberships"."organization_id" = '15a7b3cc-cdaf-11e4-b1ac-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15a73514-cdaf-11e4-bced-705681abff85"], ["organization_id", "15a7b3cc-cdaf-11e4-b1ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:40:59.426652"], ["updated_at", "2015-03-18 20:40:59.426652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '15a73514-cdaf-11e4-bced-705681abff85' LIMIT 1 [["organization_id", "15a7b3cc-cdaf-11e4-b1ac-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$DeS9HCDhsyxgpv.wLOIrF.2g71Ix1DQeg50J9IrsTkvy4qcVxqgUO"], ["created_at", "2015-03-18 20:40:59.433895"], ["updated_at", "2015-03-18 20:40:59.433895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.437030"], ["updated_at", "2015-03-18 20:40:59.437030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15a95074-cdaf-11e4-8a04-705681abff85' AND "clubhouse_memberships"."organization_id" = '15a9c702-cdaf-11e4-9f52-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15a95074-cdaf-11e4-8a04-705681abff85"], ["organization_id", "15a9c702-cdaf-11e4-9f52-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:40:59.440335"], ["updated_at", "2015-03-18 20:40:59.440335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '15a95074-cdaf-11e4-8a04-705681abff85' LIMIT 1 [["organization_id", "15a9c702-cdaf-11e4-9f52-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$td1SFfoTnb4PfAvG3Z1YBuk5eRq2UYMAFygx85L5EAYJsg7igoVdO"], ["created_at", "2015-03-18 20:40:59.447326"], ["updated_at", "2015-03-18 20:40:59.447326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.451060"], ["updated_at", "2015-03-18 20:40:59.451060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15ab5a72-cdaf-11e4-ab1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '15abebea-cdaf-11e4-8463-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15ab5a72-cdaf-11e4-ab1b-705681abff85"], ["organization_id", "15abebea-cdaf-11e4-8463-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:40:59.455049"], ["updated_at", "2015-03-18 20:40:59.455049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15ab5a72-cdaf-11e4-ab1b-705681abff85' LIMIT 1 [["organization_id", "15abebea-cdaf-11e4-8463-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$bCfuSg9t42NFCcZnbRexyuB3QsyjTZb68L53tW.1xGueWtVJLe9cC"], ["created_at", "2015-03-18 20:40:59.462151"], ["updated_at", "2015-03-18 20:40:59.462151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.466704"], ["updated_at", "2015-03-18 20:40:59.466704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15ad9e7c-cdaf-11e4-ae6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '15ae5ab0-cdaf-11e4-9c5e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15ad9e7c-cdaf-11e4-ae6d-705681abff85"], ["organization_id", "15ae5ab0-cdaf-11e4-9c5e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:40:59.471837"], ["updated_at", "2015-03-18 20:40:59.471837"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15ad9e7c-cdaf-11e4-ae6d-705681abff85' LIMIT 1 [["organization_id", "15ae5ab0-cdaf-11e4-9c5e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Lf.w58mpeNY9Q3kcsh6lhebjMmcUdoedvJMCL7HK7/drgrIhPBIpm"], ["created_at", "2015-03-18 20:40:59.481135"], ["updated_at", "2015-03-18 20:40:59.481135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$xubToVPBeop1IFAr62.4bOElqNFFglgTynupZcRJOP6N.fAtqENb2"], ["created_at", "2015-03-18 20:40:59.485444"], ["updated_at", "2015-03-18 20:40:59.485444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.488591"], ["updated_at", "2015-03-18 20:40:59.488591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15b12b28-cdaf-11e4-a565-705681abff85' AND "clubhouse_memberships"."organization_id" = '15b1a63e-cdaf-11e4-9f91-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15b12b28-cdaf-11e4-a565-705681abff85"], ["organization_id", "15b1a63e-cdaf-11e4-9f91-705681abff85"], ["created_at", "2015-03-18 20:40:59.491890"], ["updated_at", "2015-03-18 20:40:59.491890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '15b084c0-cdaf-11e4-9cc2-705681abff85' LIMIT 1 [["organization_id", "15b1a63e-cdaf-11e4-9f91-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$qIoT9ssxt5C4kKqZlylZCOdoqyvcMhtQLK93FVDkMr2fv7e6ZMdVS"], ["created_at", "2015-03-18 20:40:59.498614"], ["updated_at", "2015-03-18 20:40:59.498614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$CqJsIiQoSC/khkPP6kxH0ufeLgF.mB94WHe4KioaPLXytolVv4QV6"], ["created_at", "2015-03-18 20:40:59.502937"], ["updated_at", "2015-03-18 20:40:59.502937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.506592"], ["updated_at", "2015-03-18 20:40:59.506592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15b3d4ea-cdaf-11e4-a40b-705681abff85' AND "clubhouse_memberships"."organization_id" = '15b46810-cdaf-11e4-bafe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15b3d4ea-cdaf-11e4-a40b-705681abff85"], ["organization_id", "15b46810-cdaf-11e4-bafe-705681abff85"], ["created_at", "2015-03-18 20:40:59.509983"], ["updated_at", "2015-03-18 20:40:59.509983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '15b332b0-cdaf-11e4-8d9a-705681abff85' LIMIT 1 [["organization_id", "15b46810-cdaf-11e4-bafe-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Xo6HAt3qmPKTqYdj5UrwYe4lCMJOcYUMyi7u/Pops7bqXv26QuexG"], ["created_at", "2015-03-18 20:40:59.516624"], ["updated_at", "2015-03-18 20:40:59.516624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$4xys4fDxEIWXwW5l.lgD/uOrGBiknGNwh6NkJKc5M3Q/OyUtpvusi"], ["created_at", "2015-03-18 20:40:59.521530"], ["updated_at", "2015-03-18 20:40:59.521530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.524945"], ["updated_at", "2015-03-18 20:40:59.524945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15b6afbc-cdaf-11e4-9340-705681abff85' AND "clubhouse_memberships"."organization_id" = '15b73220-cdaf-11e4-998a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15b6afbc-cdaf-11e4-9340-705681abff85"], ["organization_id", "15b73220-cdaf-11e4-998a-705681abff85"], ["created_at", "2015-03-18 20:40:59.528116"], ["updated_at", "2015-03-18 20:40:59.528116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15b5ecf8-cdaf-11e4-8a7e-705681abff85' LIMIT 1 [["organization_id", "15b73220-cdaf-11e4-998a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$baJO9iunx7CiXt1B5mBDmuxDDIMoFtHMpVYgg1IFdcHTY/c5KdQCK"], ["created_at", "2015-03-18 20:40:59.534925"], ["updated_at", "2015-03-18 20:40:59.534925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$qyXAABW65eD1dip9yII9LuZoczl7YaZpsFj32a3KiS8vyh1yA1gwy"], ["created_at", "2015-03-18 20:40:59.539244"], ["updated_at", "2015-03-18 20:40:59.539244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:40:59.542341"], ["updated_at", "2015-03-18 20:40:59.542341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15b9607c-cdaf-11e4-bd22-705681abff85' AND "clubhouse_memberships"."organization_id" = '15b9d890-cdaf-11e4-aefd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15b9607c-cdaf-11e4-bd22-705681abff85"], ["organization_id", "15b9d890-cdaf-11e4-aefd-705681abff85"], ["created_at", "2015-03-18 20:40:59.545593"], ["updated_at", "2015-03-18 20:40:59.545593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15b8bb90-cdaf-11e4-9e24-705681abff85' LIMIT 1 [["organization_id", "15b9d890-cdaf-11e4-aefd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$lju/MTjz2vM6BM42mGM9ZeasSzQNH8Mbm1.8vH2cN3Pz3z7G8yrQm"], ["created_at", "2015-03-18 20:41:13.005485"], ["updated_at", "2015-03-18 20:41:13.005485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.037519"], ["updated_at", "2015-03-18 20:41:13.037519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dc3a728-cdaf-11e4-a91d-705681abff85' AND "clubhouse_memberships"."organization_id" = '1dc52a6c-cdaf-11e4-82f3-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dc3a728-cdaf-11e4-a91d-705681abff85"], ["organization_id", "1dc52a6c-cdaf-11e4-82f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:41:13.056793"], ["updated_at", "2015-03-18 20:41:13.056793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1dc3a728-cdaf-11e4-a91d-705681abff85' LIMIT 1 [["organization_id", "1dc52a6c-cdaf-11e4-82f3-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$tQ86iFWp.n/SiiqwJ1McLuQYQj.K9MJHnQMmUNXQyMKY1gpij7QDS"], ["created_at", "2015-03-18 20:41:13.090061"], ["updated_at", "2015-03-18 20:41:13.090061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.095096"], ["updated_at", "2015-03-18 20:41:13.095096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dcd1862-cdaf-11e4-a6c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '1dcde29c-cdaf-11e4-87bf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dcd1862-cdaf-11e4-a6c0-705681abff85"], ["organization_id", "1dcde29c-cdaf-11e4-87bf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:41:13.099080"], ["updated_at", "2015-03-18 20:41:13.099080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1dcd1862-cdaf-11e4-a6c0-705681abff85' LIMIT 1 [["organization_id", "1dcde29c-cdaf-11e4-87bf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$i56myfku78GwsmpD.WMVKOCcmmBSGrxLloJjYGgV10P8iviDmTJLm"], ["created_at", "2015-03-18 20:41:13.112293"], ["updated_at", "2015-03-18 20:41:13.112293"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.118639"], ["updated_at", "2015-03-18 20:41:13.118639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dd0a82e-cdaf-11e4-a7d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '1dd175c4-cdaf-11e4-9cfb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dd0a82e-cdaf-11e4-a7d2-705681abff85"], ["organization_id", "1dd175c4-cdaf-11e4-9cfb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:41:13.123366"], ["updated_at", "2015-03-18 20:41:13.123366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1dd0a82e-cdaf-11e4-a7d2-705681abff85' LIMIT 1 [["organization_id", "1dd175c4-cdaf-11e4-9cfb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$VMzdO1GVaNaChvQKNZvJyOAf7nqGU8cTvyd8vseCXFm/U1HO4O9He"], ["created_at", "2015-03-18 20:41:13.132873"], ["updated_at", "2015-03-18 20:41:13.132873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.138069"], ["updated_at", "2015-03-18 20:41:13.138069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dd3b3fc-cdaf-11e4-a703-705681abff85' AND "clubhouse_memberships"."organization_id" = '1dd47832-cdaf-11e4-90bf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dd3b3fc-cdaf-11e4-a703-705681abff85"], ["organization_id", "1dd47832-cdaf-11e4-90bf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:41:13.143769"], ["updated_at", "2015-03-18 20:41:13.143769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1dd3b3fc-cdaf-11e4-a703-705681abff85' LIMIT 1 [["organization_id", "1dd47832-cdaf-11e4-90bf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$9POZMUY5GsaN.yHjwLq8Pep1Qy/MA2ub4tii2ntEoVGa4IO6.Jc7."], ["created_at", "2015-03-18 20:41:13.155167"], ["updated_at", "2015-03-18 20:41:13.155167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.162041"], ["updated_at", "2015-03-18 20:41:13.162041"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dd721ea-cdaf-11e4-aedd-705681abff85' AND "clubhouse_memberships"."organization_id" = '1dd836c0-cdaf-11e4-b92b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1dd721ea-cdaf-11e4-aedd-705681abff85"], ["organization_id", "1dd836c0-cdaf-11e4-b92b-705681abff85"], ["created_at", "2015-03-18 20:41:13.168713"], ["updated_at", "2015-03-18 20:41:13.168713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1dd721ea-cdaf-11e4-aedd-705681abff85' LIMIT 1 [["organization_id", "1dd836c0-cdaf-11e4-b92b-705681abff85"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$FyANu.4qA6qno2hsITrGD.J6ganu7nm9eqaKBG/3.lwmh4jAKZI7."], ["created_at", "2015-03-18 20:41:13.185451"], ["updated_at", "2015-03-18 20:41:13.185451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.193671"], ["updated_at", "2015-03-18 20:41:13.193671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1ddbef40-cdaf-11e4-9f3e-705681abff85' AND "clubhouse_memberships"."organization_id" = '1ddd0cb8-cdaf-11e4-af50-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1ddbef40-cdaf-11e4-9f3e-705681abff85"], ["organization_id", "1ddd0cb8-cdaf-11e4-af50-705681abff85"], ["created_at", "2015-03-18 20:41:13.199807"], ["updated_at", "2015-03-18 20:41:13.199807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1ddbef40-cdaf-11e4-9f3e-705681abff85' LIMIT 1 [["organization_id", "1ddd0cb8-cdaf-11e4-af50-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$MtorlDH7r6mUk6onfZrNx.3DhokL6YEr3ipsid/XJoPy72D0OOHdi"], ["created_at", "2015-03-18 20:41:13.209623"], ["updated_at", "2015-03-18 20:41:13.209623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.214723"], ["updated_at", "2015-03-18 20:41:13.214723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1ddf663e-cdaf-11e4-b2b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '1de0259c-cdaf-11e4-8a80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1ddf663e-cdaf-11e4-b2b1-705681abff85"], ["organization_id", "1de0259c-cdaf-11e4-8a80-705681abff85"], ["created_at", "2015-03-18 20:41:13.219626"], ["updated_at", "2015-03-18 20:41:13.219626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1ddf663e-cdaf-11e4-b2b1-705681abff85' LIMIT 1 [["organization_id", "1de0259c-cdaf-11e4-8a80-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$GlMf2IPWfCQbNTbsMnECcOG1XtlUpW9hC.f2f7noEG1eqAHJlPDeG"], ["created_at", "2015-03-18 20:41:13.231455"], ["updated_at", "2015-03-18 20:41:13.231455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.235828"], ["updated_at", "2015-03-18 20:41:13.235828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1de2bc4e-cdaf-11e4-b4b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '1de35a32-cdaf-11e4-afcf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1de2bc4e-cdaf-11e4-b4b6-705681abff85"], ["organization_id", "1de35a32-cdaf-11e4-afcf-705681abff85"], ["created_at", "2015-03-18 20:41:13.241067"], ["updated_at", "2015-03-18 20:41:13.241067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1de2bc4e-cdaf-11e4-b4b6-705681abff85' LIMIT 1 [["organization_id", "1de35a32-cdaf-11e4-afcf-705681abff85"]]  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$TkRZaMregwBCxXosoPAhOuuFMfzhfOEglimDmuAQ4fD4DVUpTyMGq"], ["created_at", "2015-03-18 20:41:13.250127"], ["updated_at", "2015-03-18 20:41:13.250127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$64tG6ra.8QOYs8QhbLSu3ujrAqf5aey05LshB5.sIo2JQnuOq740y"], ["created_at", "2015-03-18 20:41:13.256318"], ["updated_at", "2015-03-18 20:41:13.256318"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.263545"], ["updated_at", "2015-03-18 20:41:13.263545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1de6836a-cdaf-11e4-ae2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '1de7a2f4-cdaf-11e4-aef1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1de6836a-cdaf-11e4-ae2c-705681abff85"], ["organization_id", "1de7a2f4-cdaf-11e4-aef1-705681abff85"], ["created_at", "2015-03-18 20:41:13.267913"], ["updated_at", "2015-03-18 20:41:13.267913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1de58924-cdaf-11e4-a268-705681abff85' LIMIT 1 [["organization_id", "1de7a2f4-cdaf-11e4-aef1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$YHY3OMWGkVtWlJitB7CcPu8T4U./wcwAqBX9n3IhPvfPWKxYvN5oa"], ["created_at", "2015-03-18 20:41:13.276294"], ["updated_at", "2015-03-18 20:41:13.276294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$0QpiqZSDch8uQ9zpRY9NWeMoe7mJO1QW4SsD8WoeTlPbTAkKdzxzG"], ["created_at", "2015-03-18 20:41:13.283173"], ["updated_at", "2015-03-18 20:41:13.283173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.286410"], ["updated_at", "2015-03-18 20:41:13.286410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dea8bfe-cdaf-11e4-9577-705681abff85' AND "clubhouse_memberships"."organization_id" = '1deb08b8-cdaf-11e4-a710-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1dea8bfe-cdaf-11e4-9577-705681abff85"], ["organization_id", "1deb08b8-cdaf-11e4-a710-705681abff85"], ["created_at", "2015-03-18 20:41:13.289906"], ["updated_at", "2015-03-18 20:41:13.289906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1de9ac20-cdaf-11e4-85e9-705681abff85' LIMIT 1 [["organization_id", "1deb08b8-cdaf-11e4-a710-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$UW5venl5BKFpi9LFJZ5Giez244Lh.W8LWAsnGgtHDxNgFNnp7EJAG"], ["created_at", "2015-03-18 20:41:13.298472"], ["updated_at", "2015-03-18 20:41:13.298472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$he5B3SSYxoWt.0g6jDpRmO0mUlCXimZK97ejYfS94dQ9R3Yc2D61G"], ["created_at", "2015-03-18 20:41:13.302915"], ["updated_at", "2015-03-18 20:41:13.302915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.308584"], ["updated_at", "2015-03-18 20:41:13.308584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1ded9d62-cdaf-11e4-8173-705681abff85' AND "clubhouse_memberships"."organization_id" = '1dee6db4-cdaf-11e4-abc9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1ded9d62-cdaf-11e4-8173-705681abff85"], ["organization_id", "1dee6db4-cdaf-11e4-abc9-705681abff85"], ["created_at", "2015-03-18 20:41:13.312040"], ["updated_at", "2015-03-18 20:41:13.312040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1dece156-cdaf-11e4-942f-705681abff85' LIMIT 1 [["organization_id", "1dee6db4-cdaf-11e4-abc9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$OoTrxSQfUsxAo0DIu3aih.X0AEz.DpMvTC4k38.SjGZLrKXpFrrAm"], ["created_at", "2015-03-18 20:41:13.321509"], ["updated_at", "2015-03-18 20:41:13.321509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$g1nWHxvL8TF5VMy6Ssc7meLI.sOezVM.QUTFgn.IutsrEWxHezV9G"], ["created_at", "2015-03-18 20:41:13.326788"], ["updated_at", "2015-03-18 20:41:13.326788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:41:13.329993"], ["updated_at", "2015-03-18 20:41:13.329993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1df13206-cdaf-11e4-a3f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '1df1aeac-cdaf-11e4-b2c7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1df13206-cdaf-11e4-a3f7-705681abff85"], ["organization_id", "1df1aeac-cdaf-11e4-b2c7-705681abff85"], ["created_at", "2015-03-18 20:41:13.333636"], ["updated_at", "2015-03-18 20:41:13.333636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1df07d02-cdaf-11e4-ab78-705681abff85' LIMIT 1 [["organization_id", "1df1aeac-cdaf-11e4-b2c7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$/gV3gvPToMwjhyjxZHg5gOGK.6c7GAg0z8verGcR1GZhpwNYyqUGu"], ["created_at", "2015-03-18 20:42:11.951340"], ["updated_at", "2015-03-18 20:42:11.951340"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$eJinM3ysub8ReDjl.janz.0lEzgQbzqTiJ9ps5ID4LCTiJ24A0l0a"], ["created_at", "2015-03-18 20:42:11.982307"], ["updated_at", "2015-03-18 20:42:11.982307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:11.990306"], ["updated_at", "2015-03-18 20:42:11.990306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40e7516e-cdaf-11e4-b32a-705681abff85' AND "clubhouse_memberships"."organization_id" = '40e8a65e-cdaf-11e4-8cad-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "40e7516e-cdaf-11e4-b32a-705681abff85"], ["organization_id", "40e8a65e-cdaf-11e4-8cad-705681abff85"], ["created_at", "2015-03-18 20:42:12.008096"], ["updated_at", "2015-03-18 20:42:12.008096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '40e65d36-cdaf-11e4-8ba4-705681abff85' LIMIT 1 [["organization_id", "40e8a65e-cdaf-11e4-8cad-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$g4tqiaxwdzxXeHOG5tbROeHq/1UZj0uN7OZ7J2IrwJSYz5uAwTvS6"], ["created_at", "2015-03-18 20:42:12.039732"], ["updated_at", "2015-03-18 20:42:12.039732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$45KU61036ycHzOZR3ZKE6.Tp0b26FSGyzJbuxev4Irrwntg6jMttG"], ["created_at", "2015-03-18 20:42:12.044056"], ["updated_at", "2015-03-18 20:42:12.044056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.047652"], ["updated_at", "2015-03-18 20:42:12.047652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40f0bb1e-cdaf-11e4-bbb2-705681abff85' AND "clubhouse_memberships"."organization_id" = '40f14b10-cdaf-11e4-b393-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "40f0bb1e-cdaf-11e4-bbb2-705681abff85"], ["organization_id", "40f14b10-cdaf-11e4-b393-705681abff85"], ["created_at", "2015-03-18 20:42:12.050999"], ["updated_at", "2015-03-18 20:42:12.050999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '40f01718-cdaf-11e4-9e7d-705681abff85' LIMIT 1 [["organization_id", "40f14b10-cdaf-11e4-b393-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$p.L8EDmojOOZqWs/a53lTOWxRZrl5pjcy1HnJlBWhafo/RYK6ZxIq"], ["created_at", "2015-03-18 20:42:12.057826"], ["updated_at", "2015-03-18 20:42:12.057826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Zx8MQQgFd1IlWOsS30cLgeF8ZKSrrjGRcfitcqZwdWcyrcWXP9XuW"], ["created_at", "2015-03-18 20:42:12.062169"], ["updated_at", "2015-03-18 20:42:12.062169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.065223"], ["updated_at", "2015-03-18 20:42:12.065223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40f37ec6-cdaf-11e4-8d91-705681abff85' AND "clubhouse_memberships"."organization_id" = '40f3f694-cdaf-11e4-ac98-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "40f37ec6-cdaf-11e4-8d91-705681abff85"], ["organization_id", "40f3f694-cdaf-11e4-ac98-705681abff85"], ["created_at", "2015-03-18 20:42:12.068408"], ["updated_at", "2015-03-18 20:42:12.068408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '40f2d782-cdaf-11e4-812f-705681abff85' LIMIT 1 [["organization_id", "40f3f694-cdaf-11e4-ac98-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$xJPgX9UXozKN6UA0F39W9eML1ho04i2NLX2Jt4A/rGBtrb47OCi/y"], ["created_at", "2015-03-18 20:42:12.075756"], ["updated_at", "2015-03-18 20:42:12.075756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$xLFaYpGQtLFa9oYr6HKKiuiw1V55TxKi50J9bpMfn6vScck24hxhW"], ["created_at", "2015-03-18 20:42:12.080039"], ["updated_at", "2015-03-18 20:42:12.080039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.083082"], ["updated_at", "2015-03-18 20:42:12.083082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40f63954-cdaf-11e4-b389-705681abff85' AND "clubhouse_memberships"."organization_id" = '40f6afc4-cdaf-11e4-96bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "40f63954-cdaf-11e4-b389-705681abff85"], ["organization_id", "40f6afc4-cdaf-11e4-96bb-705681abff85"], ["created_at", "2015-03-18 20:42:12.086596"], ["updated_at", "2015-03-18 20:42:12.086596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '40f593aa-cdaf-11e4-b7b1-705681abff85' LIMIT 1 [["organization_id", "40f6afc4-cdaf-11e4-96bb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$LdXiJ8HG/p7GKZ.oTKi8veuSZl148tPXHsUNX71ZtPMLjSIRaoe16"], ["created_at", "2015-03-18 20:42:12.095782"], ["updated_at", "2015-03-18 20:42:12.095782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.112064"], ["updated_at", "2015-03-18 20:42:12.112064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40f8b198-cdaf-11e4-a62b-705681abff85' AND "clubhouse_memberships"."organization_id" = '40fb34f4-cdaf-11e4-b281-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "40f8b198-cdaf-11e4-a62b-705681abff85"], ["organization_id", "40fb34f4-cdaf-11e4-b281-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:42:12.117614"], ["updated_at", "2015-03-18 20:42:12.117614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '40f8b198-cdaf-11e4-a62b-705681abff85' LIMIT 1 [["organization_id", "40fb34f4-cdaf-11e4-b281-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$kz/4HqDaoiA3p7HdJ/BwkOlqFHUrUEGdMBzHuGiHGVUipLQzbb6fG"], ["created_at", "2015-03-18 20:42:12.127942"], ["updated_at", "2015-03-18 20:42:12.127942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.132184"], ["updated_at", "2015-03-18 20:42:12.132184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40fd9b0e-cdaf-11e4-a1f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '40fe385c-cdaf-11e4-88e6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "40fd9b0e-cdaf-11e4-a1f7-705681abff85"], ["organization_id", "40fe385c-cdaf-11e4-88e6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:42:12.136115"], ["updated_at", "2015-03-18 20:42:12.136115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '40fd9b0e-cdaf-11e4-a1f7-705681abff85' LIMIT 1 [["organization_id", "40fe385c-cdaf-11e4-88e6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Ig1m4e4jCT7iUdn/vzrthuegGnfxQKd4EF7Jha8a5a07ZirSwQM12"], ["created_at", "2015-03-18 20:42:12.143907"], ["updated_at", "2015-03-18 20:42:12.143907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.148481"], ["updated_at", "2015-03-18 20:42:12.148481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4100179e-cdaf-11e4-99ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '4100aef2-cdaf-11e4-8985-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4100179e-cdaf-11e4-99ea-705681abff85"], ["organization_id", "4100aef2-cdaf-11e4-8985-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:42:12.152288"], ["updated_at", "2015-03-18 20:42:12.152288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4100179e-cdaf-11e4-99ea-705681abff85' LIMIT 1 [["organization_id", "4100aef2-cdaf-11e4-8985-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$lC79C2w0UvJ6w9TxvP7yFuY.HNG/o4Q8zCcQbfx5dTMYqMlsreJOq"], ["created_at", "2015-03-18 20:42:12.160920"], ["updated_at", "2015-03-18 20:42:12.160920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.164415"], ["updated_at", "2015-03-18 20:42:12.164415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '410296ae-cdaf-11e4-92f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '41031b2e-cdaf-11e4-917c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "410296ae-cdaf-11e4-92f7-705681abff85"], ["organization_id", "41031b2e-cdaf-11e4-917c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:42:12.167992"], ["updated_at", "2015-03-18 20:42:12.167992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '410296ae-cdaf-11e4-92f7-705681abff85' LIMIT 1 [["organization_id", "41031b2e-cdaf-11e4-917c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$te5YWupwYdHmTmXFteixZO7jR8i23JWW2FOSDyHSMh0ZQdu8cFuHa"], ["created_at", "2015-03-18 20:42:12.175811"], ["updated_at", "2015-03-18 20:42:12.175811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.179525"], ["updated_at", "2015-03-18 20:42:12.179525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4104db44-cdaf-11e4-a50b-705681abff85' AND "clubhouse_memberships"."organization_id" = '41056b36-cdaf-11e4-9b17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4104db44-cdaf-11e4-a50b-705681abff85"], ["organization_id", "41056b36-cdaf-11e4-9b17-705681abff85"], ["created_at", "2015-03-18 20:42:12.183502"], ["updated_at", "2015-03-18 20:42:12.183502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4104db44-cdaf-11e4-a50b-705681abff85' LIMIT 1 [["organization_id", "41056b36-cdaf-11e4-9b17-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$sqr3/i8QetKR9ObKUIYHvuvVtXOmYZTnjZ9K0C7UaQSBIaBU8Ww7i"], ["created_at", "2015-03-18 20:42:12.190732"], ["updated_at", "2015-03-18 20:42:12.190732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.194732"], ["updated_at", "2015-03-18 20:42:12.194732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '410729b2-cdaf-11e4-b279-705681abff85' AND "clubhouse_memberships"."organization_id" = '4107ba1c-cdaf-11e4-8855-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "410729b2-cdaf-11e4-b279-705681abff85"], ["organization_id", "4107ba1c-cdaf-11e4-8855-705681abff85"], ["created_at", "2015-03-18 20:42:12.197812"], ["updated_at", "2015-03-18 20:42:12.197812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '410729b2-cdaf-11e4-b279-705681abff85' LIMIT 1 [["organization_id", "4107ba1c-cdaf-11e4-8855-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$YPKuZGjLQwDupq2lw7dns.4N6JTuKrJcgMokJfM1T.2LgvmpRLzTO"], ["created_at", "2015-03-18 20:42:12.204514"], ["updated_at", "2015-03-18 20:42:12.204514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.208681"], ["updated_at", "2015-03-18 20:42:12.208681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4109395a-cdaf-11e4-8a98-705681abff85' AND "clubhouse_memberships"."organization_id" = '4109dff4-cdaf-11e4-bdb3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4109395a-cdaf-11e4-8a98-705681abff85"], ["organization_id", "4109dff4-cdaf-11e4-bdb3-705681abff85"], ["created_at", "2015-03-18 20:42:12.212315"], ["updated_at", "2015-03-18 20:42:12.212315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4109395a-cdaf-11e4-8a98-705681abff85' LIMIT 1 [["organization_id", "4109dff4-cdaf-11e4-bdb3-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$P4JQiuKeaxb8eqnToA2C/OgbKMoMa4bcoGWSve3JIvO7dzwJx8CLi"], ["created_at", "2015-03-18 20:42:12.220551"], ["updated_at", "2015-03-18 20:42:12.220551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:42:12.224259"], ["updated_at", "2015-03-18 20:42:12.224259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '410baf3c-cdaf-11e4-984d-705681abff85' AND "clubhouse_memberships"."organization_id" = '410c3e20-cdaf-11e4-9584-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "410baf3c-cdaf-11e4-984d-705681abff85"], ["organization_id", "410c3e20-cdaf-11e4-9584-705681abff85"], ["created_at", "2015-03-18 20:42:12.227816"], ["updated_at", "2015-03-18 20:42:12.227816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '410baf3c-cdaf-11e4-984d-705681abff85' LIMIT 1 [["organization_id", "410c3e20-cdaf-11e4-9584-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$aBnXLuDELTNb/nHUU1xkeuQzJ5/6WCnXHv9Fdnp85dFaCMKnyZ9IO"], ["created_at", "2015-03-18 20:48:37.974444"], ["updated_at", "2015-03-18 20:48:37.974444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.003878"], ["updated_at", "2015-03-18 20:48:38.003878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '26fd9dd4-cdb0-11e4-a832-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "26fd9dd4-cdb0-11e4-a832-705681abff85"], ["created_at", "2015-03-18 20:48:38.020998"], ["updated_at", "2015-03-18 20:48:38.020998"], ["token", "w-ESehhAXtnPl74iNvSYWwJfaR9H7HV_eHLRU289s30"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$MmkT4nElkAAvT5O89JV73OYkR3FXA0z4q/I9Tz.H38sqSv5/o0KSS"], ["created_at", "2015-03-18 20:48:38.028739"], ["updated_at", "2015-03-18 20:48:38.028739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.032560"], ["updated_at", "2015-03-18 20:48:38.032560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '2701e9f2-cdb0-11e4-b525-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "2701e9f2-cdb0-11e4-b525-705681abff85"], ["created_at", "2015-03-18 20:48:38.036188"], ["updated_at", "2015-03-18 20:48:38.036188"], ["token", "0W1PDcgAWYXseq0Y7sqQTXZEH-h64VSMReLqsWs8t8Y"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Liu5c1n08rdwEyIl7I2u9Orvp1hV3UwTuMG6RRfwqcxNtF4UySghy"], ["created_at", "2015-03-18 20:48:38.054011"], ["updated_at", "2015-03-18 20:48:38.054011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.058879"], ["updated_at", "2015-03-18 20:48:38.058879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '270609c4-cdb0-11e4-893d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "270609c4-cdb0-11e4-893d-705681abff85"], ["created_at", "2015-03-18 20:48:38.063944"], ["updated_at", "2015-03-18 20:48:38.063944"], ["token", "5IU0vNqhIfAzC3MuUIxqtPYThYEp1G0ruKo-93Q0nmU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$uKYF.QmudYou/BUPD/dy7eoUE7M6/MwuK.t.u.AXXv/ipqSYResq6"], ["created_at", "2015-03-18 20:48:38.070373"], ["updated_at", "2015-03-18 20:48:38.070373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.076360"], ["updated_at", "2015-03-18 20:48:38.076360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '270899be-cdb0-11e4-8c8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "270899be-cdb0-11e4-8c8c-705681abff85"], ["created_at", "2015-03-18 20:48:38.080122"], ["updated_at", "2015-03-18 20:48:38.080122"], ["token", "CdNINmyV4LsClo6Ff2gZ08GV18R_n-ch9XYLCH4jMYA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$nC1k/qKMinaLcS6YzofCx.F8JF1Bu0BgX8W2cruD/Z2M0A7Yaf2Xa"], ["created_at", "2015-03-18 20:48:38.086675"], ["updated_at", "2015-03-18 20:48:38.086675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.090174"], ["updated_at", "2015-03-18 20:48:38.090174"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '270a2b80-cdb0-11e4-8131-705681abff85' AND "clubhouse_memberships"."organization_id" = '270ab302-cdb0-11e4-b13d-705681abff85') LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "270a2b80-cdb0-11e4-8131-705681abff85"], ["organization_id", "270ab302-cdb0-11e4-b13d-705681abff85"], ["created_at", "2015-03-18 20:48:38.103278"], ["updated_at", "2015-03-18 20:48:38.103278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '270ab302-cdb0-11e4-b13d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "270ab302-cdb0-11e4-b13d-705681abff85"], ["created_at", "2015-03-18 20:48:38.114169"], ["updated_at", "2015-03-18 20:48:38.114169"], ["token", "usPnOO5e1OCH9LgBgKAZ64J5SAHxmfxJ5CTs4R4dXak"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$mGsSlqPALy8yLLsoVc3uruG1VMf7X5JqWr.aYGnx8kML/0qDipxBW"], ["created_at", "2015-03-18 20:48:38.120435"], ["updated_at", "2015-03-18 20:48:38.120435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.123667"], ["updated_at", "2015-03-18 20:48:38.123667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '270f5204-cdb0-11e4-adeb-705681abff85' AND "clubhouse_memberships"."organization_id" = '270fd1a2-cdb0-11e4-b999-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "270f5204-cdb0-11e4-adeb-705681abff85"], ["organization_id", "270fd1a2-cdb0-11e4-b999-705681abff85"], ["created_at", "2015-03-18 20:48:38.127726"], ["updated_at", "2015-03-18 20:48:38.127726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '270fd1a2-cdb0-11e4-b999-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "270fd1a2-cdb0-11e4-b999-705681abff85"], ["created_at", "2015-03-18 20:48:38.131470"], ["updated_at", "2015-03-18 20:48:38.131470"], ["token", "VfRDIF5zefJqpK3hveAPT6NGwoQOz4v58anQKN2U0zM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Z7IX11M2qATWOjyz/gvep.qjP9rt69eVfTQ4jFx5b./LDOsVOu8k."], ["created_at", "2015-03-18 20:48:38.137512"], ["updated_at", "2015-03-18 20:48:38.137512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.140596"], ["updated_at", "2015-03-18 20:48:38.140596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2711ec4e-cdb0-11e4-8b7f-705681abff85' AND "clubhouse_memberships"."organization_id" = '271261ec-cdb0-11e4-a293-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2711ec4e-cdb0-11e4-8b7f-705681abff85"], ["organization_id", "271261ec-cdb0-11e4-a293-705681abff85"], ["created_at", "2015-03-18 20:48:38.143749"], ["updated_at", "2015-03-18 20:48:38.143749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '271261ec-cdb0-11e4-a293-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "271261ec-cdb0-11e4-a293-705681abff85"], ["created_at", "2015-03-18 20:48:38.147183"], ["updated_at", "2015-03-18 20:48:38.147183"], ["token", "FzmuY76EwPOIqROmlTmNM48ZsPbEP2GrZuRtWcSxf3c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$IjKtCJ8/eWm8Wl..Avrf8.8cVBIAoPnknA7jYPRDW3hVzdjwT4HhS"], ["created_at", "2015-03-18 20:48:38.153865"], ["updated_at", "2015-03-18 20:48:38.153865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.157144"], ["updated_at", "2015-03-18 20:48:38.157144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '27146bf4-cdb0-11e4-bd33-705681abff85' AND "clubhouse_memberships"."organization_id" = '2714e98a-cdb0-11e4-89b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "27146bf4-cdb0-11e4-bd33-705681abff85"], ["organization_id", "2714e98a-cdb0-11e4-89b3-705681abff85"], ["created_at", "2015-03-18 20:48:38.160462"], ["updated_at", "2015-03-18 20:48:38.160462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '2714e98a-cdb0-11e4-89b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "2714e98a-cdb0-11e4-89b3-705681abff85"], ["created_at", "2015-03-18 20:48:38.163910"], ["updated_at", "2015-03-18 20:48:38.163910"], ["token", "G3LEpVDtd-CGyGGMIqeY3DCEOHP2FfvmfqJLX2fLXUE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$RqnCQfOD49F.2loKqXxQqeBIvFyWAMEjWmC859goFkrk4z7ys.F/a"], ["created_at", "2015-03-18 20:48:38.170172"], ["updated_at", "2015-03-18 20:48:38.170172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.173400"], ["updated_at", "2015-03-18 20:48:38.173400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2716ea6e-cdb0-11e4-a39b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2717648a-cdb0-11e4-acd3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2716ea6e-cdb0-11e4-a39b-705681abff85"], ["organization_id", "2717648a-cdb0-11e4-acd3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:48:38.176711"], ["updated_at", "2015-03-18 20:48:38.176711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '2717648a-cdb0-11e4-acd3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "2717648a-cdb0-11e4-acd3-705681abff85"], ["created_at", "2015-03-18 20:48:38.180299"], ["updated_at", "2015-03-18 20:48:38.180299"], ["token", "GgzH6DgBTsYtMcLIIg738FajW_uWz4b-CWzIySKlT3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$VLT3o1Gc.JAOieCbJOy.P.VPftaDaIsOcmj.VsN8dYg4Hn7mJUm8a"], ["created_at", "2015-03-18 20:48:38.188246"], ["updated_at", "2015-03-18 20:48:38.188246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.191904"], ["updated_at", "2015-03-18 20:48:38.191904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2719b014-cdb0-11e4-a86f-705681abff85' AND "clubhouse_memberships"."organization_id" = '271a3ae8-cdb0-11e4-9e6b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2719b014-cdb0-11e4-a86f-705681abff85"], ["organization_id", "271a3ae8-cdb0-11e4-9e6b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:48:38.195418"], ["updated_at", "2015-03-18 20:48:38.195418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '271a3ae8-cdb0-11e4-9e6b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "271a3ae8-cdb0-11e4-9e6b-705681abff85"], ["created_at", "2015-03-18 20:48:38.200095"], ["updated_at", "2015-03-18 20:48:38.200095"], ["token", "bIjO5be-4pOWZp3ALiRSdcg9HUxuriLzdSRa7UD2Z4k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$PggOu34PgPc0HZaB7eveaO1jQGx7f7p8N6VZ8ZtpitYYmk79TSaI2"], ["created_at", "2015-03-18 20:48:38.207023"], ["updated_at", "2015-03-18 20:48:38.207023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.210434"], ["updated_at", "2015-03-18 20:48:38.210434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '271c88f2-cdb0-11e4-a5c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '271d0e44-cdb0-11e4-9511-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "271c88f2-cdb0-11e4-a5c0-705681abff85"], ["organization_id", "271d0e44-cdb0-11e4-9511-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:48:38.214916"], ["updated_at", "2015-03-18 20:48:38.214916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '271d0e44-cdb0-11e4-9511-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "271d0e44-cdb0-11e4-9511-705681abff85"], ["created_at", "2015-03-18 20:48:38.219109"], ["updated_at", "2015-03-18 20:48:38.219109"], ["token", "4pzqBnJfuh9Fa-_3KWReC-MNnQKFhiMLOdwWLrC5Tuo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$.gw0ZBELfyAJocw.H1xB2OeX/eZrrs8KpyovcA55boQAaFchAdzNq"], ["created_at", "2015-03-18 20:48:38.225481"], ["updated_at", "2015-03-18 20:48:38.225481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:38.229057"], ["updated_at", "2015-03-18 20:48:38.229057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '271f5a64-cdb0-11e4-ab41-705681abff85' AND "clubhouse_memberships"."organization_id" = '271fe952-cdb0-11e4-9711-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "271f5a64-cdb0-11e4-ab41-705681abff85"], ["organization_id", "271fe952-cdb0-11e4-9711-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:48:38.232562"], ["updated_at", "2015-03-18 20:48:38.232562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '271fe952-cdb0-11e4-9711-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "271fe952-cdb0-11e4-9711-705681abff85"], ["created_at", "2015-03-18 20:48:38.236157"], ["updated_at", "2015-03-18 20:48:38.236157"], ["token", "QkWOOYrwns610-cFMrIATA1l5-VZWLnydX8uBfJB3xE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (2.2ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (21.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$/ccoLtZ7Sbb07S/Mh8sAM.J4YYGcQvmnVO0cQkoQa56hMfN2QX1si"], ["created_at", "2015-03-18 20:48:57.869929"], ["updated_at", "2015-03-18 20:48:57.869929"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:57.904513"], ["updated_at", "2015-03-18 20:48:57.904513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32d85392-cdb0-11e4-9348-705681abff85' AND "clubhouse_memberships"."organization_id" = '32da328e-cdb0-11e4-8a3f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "32d85392-cdb0-11e4-9348-705681abff85"], ["organization_id", "32da328e-cdb0-11e4-8a3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:48:57.923549"], ["updated_at", "2015-03-18 20:48:57.923549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '32da328e-cdb0-11e4-8a3f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "32da328e-cdb0-11e4-8a3f-705681abff85"], ["created_at", "2015-03-18 20:48:57.934881"], ["updated_at", "2015-03-18 20:48:57.934881"], ["token", "H96W82HCA9-FPcWC4B3JrXEJ9_CBhmoYD5DtxvFSLwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$/jGQceBm0VVRQFM5HkI61Om9mYchWDVoEFpFbQWdxitACIqU2OzJ6"], ["created_at", "2015-03-18 20:48:57.942599"], ["updated_at", "2015-03-18 20:48:57.942599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:57.946010"], ["updated_at", "2015-03-18 20:48:57.946010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32dff336-cdb0-11e4-9cb6-705681abff85' AND "clubhouse_memberships"."organization_id" = '32e07658-cdb0-11e4-a257-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "32dff336-cdb0-11e4-9cb6-705681abff85"], ["organization_id", "32e07658-cdb0-11e4-a257-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:48:57.980948"], ["updated_at", "2015-03-18 20:48:57.980948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '32e07658-cdb0-11e4-a257-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "32e07658-cdb0-11e4-a257-705681abff85"], ["created_at", "2015-03-18 20:48:57.984489"], ["updated_at", "2015-03-18 20:48:57.984489"], ["token", "MTXeim7sXpBIr3obU8YT_9awVv3H3n0O8pKHdRmMWMw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$KjJSyH8SjZ4p1Py8luXEseGDoohk7ONNf40kfkgEPSOmGcC5LNdbK"], ["created_at", "2015-03-18 20:48:57.991580"], ["updated_at", "2015-03-18 20:48:57.991580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:57.995393"], ["updated_at", "2015-03-18 20:48:57.995393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32e76c10-cdb0-11e4-a0ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '32e80102-cdb0-11e4-b422-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "32e76c10-cdb0-11e4-a0ff-705681abff85"], ["organization_id", "32e80102-cdb0-11e4-b422-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:48:57.998866"], ["updated_at", "2015-03-18 20:48:57.998866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '32e80102-cdb0-11e4-b422-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "32e80102-cdb0-11e4-b422-705681abff85"], ["created_at", "2015-03-18 20:48:58.002690"], ["updated_at", "2015-03-18 20:48:58.002690"], ["token", "6awSlr8RTesDPsNojzAixrVQFeXl28wZiXjxODZJWio"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Z.rVJuvEVE10281pXFUFw.DR4bAhe264FLiukcjCoQDg4A.PGwLTa"], ["created_at", "2015-03-18 20:48:58.008670"], ["updated_at", "2015-03-18 20:48:58.008670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:58.012096"], ["updated_at", "2015-03-18 20:48:58.012096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32ea086c-cdb0-11e4-b50e-705681abff85' AND "clubhouse_memberships"."organization_id" = '32ea8b98-cdb0-11e4-a0dd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "32ea086c-cdb0-11e4-b50e-705681abff85"], ["organization_id", "32ea8b98-cdb0-11e4-a0dd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:48:58.015341"], ["updated_at", "2015-03-18 20:48:58.015341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '32ea8b98-cdb0-11e4-a0dd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "32ea8b98-cdb0-11e4-a0dd-705681abff85"], ["created_at", "2015-03-18 20:48:58.019347"], ["updated_at", "2015-03-18 20:48:58.019347"], ["token", "nm9wRs2Hcm6spT4EmmWKzex0YYTsf2yKzLVwH94qIzk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$thD652HH.z5oVjRTshp4qu1/uUmEX4LEBFc2ozViTixz.ye01Kl5S"], ["created_at", "2015-03-18 20:48:58.027181"], ["updated_at", "2015-03-18 20:48:58.027181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:58.031014"], ["updated_at", "2015-03-18 20:48:58.031014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '32ed7538-cdb0-11e4-832f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "32ed7538-cdb0-11e4-832f-705681abff85"], ["created_at", "2015-03-18 20:48:58.035616"], ["updated_at", "2015-03-18 20:48:58.035616"], ["token", "ckfiCwfCpq-Nrmgsj2sEzyXK87EFB-84GllHQ3IcJiM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$UQpE9eiUsgoqIudiUloBQev/UV2fxNJ.BTMGNiwtSVK0XbgYDYlj."], ["created_at", "2015-03-18 20:48:58.042784"], ["updated_at", "2015-03-18 20:48:58.042784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:58.046046"], ["updated_at", "2015-03-18 20:48:58.046046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '32efb816-cdb0-11e4-852e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "32efb816-cdb0-11e4-852e-705681abff85"], ["created_at", "2015-03-18 20:48:58.049320"], ["updated_at", "2015-03-18 20:48:58.049320"], ["token", "C0uzy5OVAkb4cqzT8PME3ikePpvYPzdf4gYGXu8XjgE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$sgPr62dEg7YOU5DFQPo/9uNsoct721lobaAseBfCNPQVHuhRHl5T2"], ["created_at", "2015-03-18 20:48:58.055300"], ["updated_at", "2015-03-18 20:48:58.055300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:58.059357"], ["updated_at", "2015-03-18 20:48:58.059357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '32f1c606-cdb0-11e4-b7ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "32f1c606-cdb0-11e4-b7ec-705681abff85"], ["created_at", "2015-03-18 20:48:58.062978"], ["updated_at", "2015-03-18 20:48:58.062978"], ["token", "70peU75jiQc_Bgh_FlfmQTyZZsNN-zHrveAM0Z_AnI0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$gHRqSvxqguubQ7o.LRITSOqrVtlNmxG9NVjioKXy8rDeZknf7Tvm6"], ["created_at", "2015-03-18 20:48:58.068810"], ["updated_at", "2015-03-18 20:48:58.068810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:58.072064"], ["updated_at", "2015-03-18 20:48:58.072064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '32f3b132-cdb0-11e4-80c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "32f3b132-cdb0-11e4-80c7-705681abff85"], ["created_at", "2015-03-18 20:48:58.075847"], ["updated_at", "2015-03-18 20:48:58.075847"], ["token", "wrgN-4uL8um-OrS9oJAs6blXyD4Lb86yHOLaOnNXlgs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Uiis7rVCwc.KaSLBQVF9qeAYruJBW.9xfDb9A1LO2stjg.O4B2lX."], ["created_at", "2015-03-18 20:48:58.082791"], ["updated_at", "2015-03-18 20:48:58.082791"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:58.086886"], ["updated_at", "2015-03-18 20:48:58.086886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32f55fa0-cdb0-11e4-a1d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '32f5f37a-cdb0-11e4-934b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32f55fa0-cdb0-11e4-a1d0-705681abff85"], ["organization_id", "32f5f37a-cdb0-11e4-934b-705681abff85"], ["created_at", "2015-03-18 20:48:58.090518"], ["updated_at", "2015-03-18 20:48:58.090518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '32f5f37a-cdb0-11e4-934b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "32f5f37a-cdb0-11e4-934b-705681abff85"], ["created_at", "2015-03-18 20:48:58.094442"], ["updated_at", "2015-03-18 20:48:58.094442"], ["token", "FkVXzTPIp3CvFWO7y0268FkTVHzC6JjA_CZ709e0GyU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$rAagpn.BccmgG8VizbelEetTmOJEf6Z4lEs7S5JoUXvxFVGyR0cW2"], ["created_at", "2015-03-18 20:48:58.102283"], ["updated_at", "2015-03-18 20:48:58.102283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:58.105833"], ["updated_at", "2015-03-18 20:48:58.105833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32f84eea-cdb0-11e4-8412-705681abff85' AND "clubhouse_memberships"."organization_id" = '32f8da72-cdb0-11e4-b86a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32f84eea-cdb0-11e4-8412-705681abff85"], ["organization_id", "32f8da72-cdb0-11e4-b86a-705681abff85"], ["created_at", "2015-03-18 20:48:58.109341"], ["updated_at", "2015-03-18 20:48:58.109341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '32f8da72-cdb0-11e4-b86a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "32f8da72-cdb0-11e4-b86a-705681abff85"], ["created_at", "2015-03-18 20:48:58.112997"], ["updated_at", "2015-03-18 20:48:58.112997"], ["token", "Fc0PkuSQIFdyYE8k6WkWkwZadySPm7KjA_2H7pV9clM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$DAqxBYL6DoZPcGgtMJc7VuY77XVptTau0695irLubEQ2nTOTTVWxu"], ["created_at", "2015-03-18 20:48:58.119160"], ["updated_at", "2015-03-18 20:48:58.119160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:58.122699"], ["updated_at", "2015-03-18 20:48:58.122699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32fae2ea-cdb0-11e4-a7ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '32fb6d5a-cdb0-11e4-9aad-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32fae2ea-cdb0-11e4-a7ae-705681abff85"], ["organization_id", "32fb6d5a-cdb0-11e4-9aad-705681abff85"], ["created_at", "2015-03-18 20:48:58.126162"], ["updated_at", "2015-03-18 20:48:58.126162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '32fb6d5a-cdb0-11e4-9aad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "32fb6d5a-cdb0-11e4-9aad-705681abff85"], ["created_at", "2015-03-18 20:48:58.130131"], ["updated_at", "2015-03-18 20:48:58.130131"], ["token", "kB40MP2nrXshcj3EcZvk6yOUEmyeiohMYmrctA3QRNQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$tJAiKXrpFBHYCohDjwD65eY92UBShQi1Jl83ZvPxTowE1uZLFnQcW"], ["created_at", "2015-03-18 20:48:58.136315"], ["updated_at", "2015-03-18 20:48:58.136315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:48:58.139723"], ["updated_at", "2015-03-18 20:48:58.139723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32fd7f96-cdb0-11e4-8777-705681abff85' AND "clubhouse_memberships"."organization_id" = '32fe02cc-cdb0-11e4-8f76-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32fd7f96-cdb0-11e4-8777-705681abff85"], ["organization_id", "32fe02cc-cdb0-11e4-8f76-705681abff85"], ["created_at", "2015-03-18 20:48:58.143399"], ["updated_at", "2015-03-18 20:48:58.143399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '32fe02cc-cdb0-11e4-8f76-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "32fe02cc-cdb0-11e4-8f76-705681abff85"], ["created_at", "2015-03-18 20:48:58.147668"], ["updated_at", "2015-03-18 20:48:58.147668"], ["token", "J_J8w0J5egQRhRL4jy0swlvfZ6gWP2F0kGSR0TM_LBA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$SWb8339kic0wadu5FyhQTuTQtB/mm/G81zZ3cbd2xFIEgk5q2XtM."], ["created_at", "2015-03-18 20:49:15.916963"], ["updated_at", "2015-03-18 20:49:15.916963"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:15.945501"], ["updated_at", "2015-03-18 20:49:15.945501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '3d9b00c2-cdb0-11e4-a72c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "3d9b00c2-cdb0-11e4-a72c-705681abff85"], ["created_at", "2015-03-18 20:49:15.960612"], ["updated_at", "2015-03-18 20:49:15.960612"], ["token", "VvGxX0HPSsWOq8Z-kIyNwbKy-yx2soQZDeMSj2w6hdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3d998d6e-cdb0-11e4-9a97-705681abff85' LIMIT 1 [["organization_id", "3d9b00c2-cdb0-11e4-a72c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$l6deXZyztzGdTCLvrzjrXuSEzv5.IIfxFtayrDzI9v1riMpvb.OE."], ["created_at", "2015-03-18 20:49:15.985944"], ["updated_at", "2015-03-18 20:49:15.985944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:15.989300"], ["updated_at", "2015-03-18 20:49:15.989300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '3da1a4b8-cdb0-11e4-9975-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "3da1a4b8-cdb0-11e4-9975-705681abff85"], ["created_at", "2015-03-18 20:49:15.992827"], ["updated_at", "2015-03-18 20:49:15.992827"], ["token", "-3qqYB2cFtZvShXj2v_Y9jny5RTrJLWFeFc02vydK4A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3da12862-cdb0-11e4-8990-705681abff85' LIMIT 1 [["organization_id", "3da1a4b8-cdb0-11e4-9975-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$j8C4k2eCht5H1r5CKxmnluad4WBboIASJNHAD.2MnpbP/3WXwjRxq"], ["created_at", "2015-03-18 20:49:16.000175"], ["updated_at", "2015-03-18 20:49:16.000175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:16.003571"], ["updated_at", "2015-03-18 20:49:16.003571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '3da3d1de-cdb0-11e4-ad90-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "3da3d1de-cdb0-11e4-ad90-705681abff85"], ["created_at", "2015-03-18 20:49:16.006973"], ["updated_at", "2015-03-18 20:49:16.006973"], ["token", "YNh-el_wqCcZqKN1QvsF2KWWsZcJOf7htBF0IOHme9c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3da3548e-cdb0-11e4-b3ac-705681abff85' LIMIT 1 [["organization_id", "3da3d1de-cdb0-11e4-ad90-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$y96sVncMZt1pNL5Fv/QoPe9Y8HUQbsP/CMH.f1C0WX13mPv7yKOIW"], ["created_at", "2015-03-18 20:49:16.014193"], ["updated_at", "2015-03-18 20:49:16.014193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:16.017666"], ["updated_at", "2015-03-18 20:49:16.017666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '3da5fe8c-cdb0-11e4-aaef-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "3da5fe8c-cdb0-11e4-aaef-705681abff85"], ["created_at", "2015-03-18 20:49:16.023564"], ["updated_at", "2015-03-18 20:49:16.023564"], ["token", "Mlwm6Fl1vHgkpYzlXC_hFVNrggJVPfA0lXOXMzu_J-0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3da57192-cdb0-11e4-8294-705681abff85' LIMIT 1 [["organization_id", "3da5fe8c-cdb0-11e4-aaef-705681abff85"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$7RAVH05EcR39CJHI7lFQ1.drL6Z5E43QwrY4WzguTsaRtBOO/mf7S"], ["created_at", "2015-03-18 20:49:16.047713"], ["updated_at", "2015-03-18 20:49:16.047713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:16.052063"], ["updated_at", "2015-03-18 20:49:16.052063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3daa9d70-cdb0-11e4-a4e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3dab49dc-cdb0-11e4-a250-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3daa9d70-cdb0-11e4-a4e4-705681abff85"], ["organization_id", "3dab49dc-cdb0-11e4-a250-705681abff85"], ["created_at", "2015-03-18 20:49:16.062084"], ["updated_at", "2015-03-18 20:49:16.062084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '3dab49dc-cdb0-11e4-a250-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "3dab49dc-cdb0-11e4-a250-705681abff85"], ["created_at", "2015-03-18 20:49:16.068269"], ["updated_at", "2015-03-18 20:49:16.068269"], ["token", "4PCpYX_CLPlvY5iHn9BfccllSReO3uvJ51TZqEUBnXM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3daa9d70-cdb0-11e4-a4e4-705681abff85' LIMIT 1 [["organization_id", "3dab49dc-cdb0-11e4-a250-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$LAJs49rtmerVwkbqCRtj0ucm2zYv9.t5O54oi4mPg6xIcGx3lLo9K"], ["created_at", "2015-03-18 20:49:16.075412"], ["updated_at", "2015-03-18 20:49:16.075412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:16.078981"], ["updated_at", "2015-03-18 20:49:16.078981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3daed41c-cdb0-11e4-8964-705681abff85' AND "clubhouse_memberships"."organization_id" = '3daf5428-cdb0-11e4-80bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3daed41c-cdb0-11e4-8964-705681abff85"], ["organization_id", "3daf5428-cdb0-11e4-80bb-705681abff85"], ["created_at", "2015-03-18 20:49:16.082133"], ["updated_at", "2015-03-18 20:49:16.082133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '3daf5428-cdb0-11e4-80bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "3daf5428-cdb0-11e4-80bb-705681abff85"], ["created_at", "2015-03-18 20:49:16.086066"], ["updated_at", "2015-03-18 20:49:16.086066"], ["token", "BbC1dX2g7D0Hp8sO2GnBl4xB49EgMuC1O6UgBOrjjoY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3daed41c-cdb0-11e4-8964-705681abff85' LIMIT 1 [["organization_id", "3daf5428-cdb0-11e4-80bb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$dknlvEg8UqMp2frV1jwm2ebqUe6Jy99c4Mr/pUGdhpSSDCLKTBRFy"], ["created_at", "2015-03-18 20:49:16.098042"], ["updated_at", "2015-03-18 20:49:16.098042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:16.101603"], ["updated_at", "2015-03-18 20:49:16.101603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3db2408e-cdb0-11e4-84f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3db2cb44-cdb0-11e4-88d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3db2408e-cdb0-11e4-84f2-705681abff85"], ["organization_id", "3db2cb44-cdb0-11e4-88d9-705681abff85"], ["created_at", "2015-03-18 20:49:16.105313"], ["updated_at", "2015-03-18 20:49:16.105313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '3db2cb44-cdb0-11e4-88d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "3db2cb44-cdb0-11e4-88d9-705681abff85"], ["created_at", "2015-03-18 20:49:16.108763"], ["updated_at", "2015-03-18 20:49:16.108763"], ["token", "_iik0GK8rAb9XLsTVviRHEPuZA73hgNJto9XqQ5ABd8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3db2408e-cdb0-11e4-84f2-705681abff85' LIMIT 1 [["organization_id", "3db2cb44-cdb0-11e4-88d9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Imnx73tMIL7uYE0Rs9EgTuA8tE4JTDUuNj97madQbR/p9a121JJhm"], ["created_at", "2015-03-18 20:49:16.115846"], ["updated_at", "2015-03-18 20:49:16.115846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:16.119198"], ["updated_at", "2015-03-18 20:49:16.119198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3db4f874-cdb0-11e4-b7a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '3db577a4-cdb0-11e4-84b2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3db4f874-cdb0-11e4-b7a6-705681abff85"], ["organization_id", "3db577a4-cdb0-11e4-84b2-705681abff85"], ["created_at", "2015-03-18 20:49:16.122533"], ["updated_at", "2015-03-18 20:49:16.122533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '3db577a4-cdb0-11e4-84b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "3db577a4-cdb0-11e4-84b2-705681abff85"], ["created_at", "2015-03-18 20:49:16.125957"], ["updated_at", "2015-03-18 20:49:16.125957"], ["token", "CjD6DaGqUj2ub0_w2ux4KlFOSRXgDjhT-GXR--p2ZPk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3db4f874-cdb0-11e4-b7a6-705681abff85' LIMIT 1 [["organization_id", "3db577a4-cdb0-11e4-84b2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$MbgQeSBjossQI/d.Hv97XuMZX13rBCdbqfjdk3vi8Lmn9Pt4w62/q"], ["created_at", "2015-03-18 20:49:16.133491"], ["updated_at", "2015-03-18 20:49:16.133491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:16.137074"], ["updated_at", "2015-03-18 20:49:16.137074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3db7a57e-cdb0-11e4-86ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '3db8416e-cdb0-11e4-ae8f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3db7a57e-cdb0-11e4-86ae-705681abff85"], ["organization_id", "3db8416e-cdb0-11e4-ae8f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:49:16.141035"], ["updated_at", "2015-03-18 20:49:16.141035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '3db8416e-cdb0-11e4-ae8f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "3db8416e-cdb0-11e4-ae8f-705681abff85"], ["created_at", "2015-03-18 20:49:16.144630"], ["updated_at", "2015-03-18 20:49:16.144630"], ["token", "C3q1LvoPoboRImlXUaI79R2amDXjoXILZXU19jXz6vM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3db7a57e-cdb0-11e4-86ae-705681abff85' LIMIT 1 [["organization_id", "3db8416e-cdb0-11e4-ae8f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$fhEN1zLTjn0UA8CGeXgOEeUYeIJnNZy9785SLJ1KD//YGsBQ/E54m"], ["created_at", "2015-03-18 20:49:16.152088"], ["updated_at", "2015-03-18 20:49:16.152088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:16.155365"], ["updated_at", "2015-03-18 20:49:16.155365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3dba8140-cdb0-11e4-8ef7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3dbafa58-cdb0-11e4-a928-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3dba8140-cdb0-11e4-8ef7-705681abff85"], ["organization_id", "3dbafa58-cdb0-11e4-a928-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:49:16.158503"], ["updated_at", "2015-03-18 20:49:16.158503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '3dbafa58-cdb0-11e4-a928-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "3dbafa58-cdb0-11e4-a928-705681abff85"], ["created_at", "2015-03-18 20:49:16.161965"], ["updated_at", "2015-03-18 20:49:16.161965"], ["token", "ypvzxxmrmkkap3EIfrBNJgUPhONYVM6aNO6CGw2dmfw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3dba8140-cdb0-11e4-8ef7-705681abff85' LIMIT 1 [["organization_id", "3dbafa58-cdb0-11e4-a928-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$ywYTZpyZn91SW6JjCQd6SOL7kEw7n.jWk3oEOL0Q5KBdTALFKWXe."], ["created_at", "2015-03-18 20:49:16.168942"], ["updated_at", "2015-03-18 20:49:16.168942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:16.172693"], ["updated_at", "2015-03-18 20:49:16.172693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3dbd116c-cdb0-11e4-bb30-705681abff85' AND "clubhouse_memberships"."organization_id" = '3dbda370-cdb0-11e4-935f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3dbd116c-cdb0-11e4-bb30-705681abff85"], ["organization_id", "3dbda370-cdb0-11e4-935f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:49:16.176157"], ["updated_at", "2015-03-18 20:49:16.176157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '3dbda370-cdb0-11e4-935f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "3dbda370-cdb0-11e4-935f-705681abff85"], ["created_at", "2015-03-18 20:49:16.179846"], ["updated_at", "2015-03-18 20:49:16.179846"], ["token", "tL8RgMa5aSm6Ue8IkYqCne9clkP5ZHlcAq7eO3NX1Xw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3dbd116c-cdb0-11e4-bb30-705681abff85' LIMIT 1 [["organization_id", "3dbda370-cdb0-11e4-935f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$DzViKPxJwRDnXG9F9dJ4b.0qemMkRjgucWIN4D/QEgN1FB0ny6yqu"], ["created_at", "2015-03-18 20:49:16.187431"], ["updated_at", "2015-03-18 20:49:16.187431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:49:16.191087"], ["updated_at", "2015-03-18 20:49:16.191087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3dbfeaae-cdb0-11e4-a92b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3dc07370-cdb0-11e4-ab5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3dbfeaae-cdb0-11e4-a92b-705681abff85"], ["organization_id", "3dc07370-cdb0-11e4-ab5a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:49:16.194678"], ["updated_at", "2015-03-18 20:49:16.194678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '3dc07370-cdb0-11e4-ab5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "3dc07370-cdb0-11e4-ab5a-705681abff85"], ["created_at", "2015-03-18 20:49:16.198667"], ["updated_at", "2015-03-18 20:49:16.198667"], ["token", "2U4GYbND-smaWY6cMR_6f4Pusp3gak8KQdmNQmg4svE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3dbfeaae-cdb0-11e4-a92b-705681abff85' LIMIT 1 [["organization_id", "3dc07370-cdb0-11e4-ab5a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$3vtNsgqMzhvdL8TS.XefVOk3j0.SnGpTnCBV9vv20.TuUcPILNyxa"], ["created_at", "2015-03-18 20:54:39.664321"], ["updated_at", "2015-03-18 20:54:39.664321"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$o7hOasYP7Ppo5NiKCVjm7.UL9x3f2JGhIuykBr/cLBILeTYHgFFCu"], ["created_at", "2015-03-18 20:54:39.696129"], ["updated_at", "2015-03-18 20:54:39.696129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$yRzLiPjTrbcRvA381ak.YedBqKKeP6wh4Uan4jhY2etHBVlp9zS0e"], ["created_at", "2015-03-18 20:54:39.702791"], ["updated_at", "2015-03-18 20:54:39.702791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$GDUmt00.ZAc4xwTsNbRzh..knSn1aNsFGyHE1wOYKPR8U6ikuy8CK"], ["created_at", "2015-03-18 20:54:39.708189"], ["updated_at", "2015-03-18 20:54:39.708189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$BxW7K4Ohu7y8q9VcN33pMe4ZB0DvgBCgdTfW5D.4Q8vISEwn2trI2"], ["created_at", "2015-03-18 20:54:39.713813"], ["updated_at", "2015-03-18 20:54:39.713813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$dO5/zyxCttZ.d9DtVzehvuYQ.7gKjAeLreHQFc0IUZKaBqG9WS6f2"], ["created_at", "2015-03-18 20:54:39.719928"], ["updated_at", "2015-03-18 20:54:39.719928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:54:39.730099"], ["updated_at", "2015-03-18 20:54:39.730099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$EkMXv9lYCioT93VZCzmsJ.LFl2JqDwqAMvelUY49e4JCeYHY.o.Ua"], ["created_at", "2015-03-18 20:54:39.740529"], ["updated_at", "2015-03-18 20:54:39.740529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:54:39.743925"], ["updated_at", "2015-03-18 20:54:39.743925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$EddPCxGsfXRIvueBw.p7zO3axh8lj3OgMQdg8UnALP69nUD6xMcGa"], ["created_at", "2015-03-18 20:54:39.749806"], ["updated_at", "2015-03-18 20:54:39.749806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:54:39.760981"], ["updated_at", "2015-03-18 20:54:39.760981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$VKdacGwoElNDplLwPE9cxOWu8DafJCdDTuS/HFYuOZ8nD4gbFEY4a"], ["created_at", "2015-03-18 20:54:39.766849"], ["updated_at", "2015-03-18 20:54:39.766849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:54:39.770103"], ["updated_at", "2015-03-18 20:54:39.770103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$EQ6CEfNHQ7ucoGhOHof9u.ELiJ7wafLFvQqiaXS.gmkX/mLzONcVS"], ["created_at", "2015-03-18 20:54:39.776594"], ["updated_at", "2015-03-18 20:54:39.776594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:54:39.780674"], ["updated_at", "2015-03-18 20:54:39.780674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$yUcVSpYJT1UsX3RQKgZd3.oHnS8dLIU5dS2ANwhYru8keLaWHlVcm"], ["created_at", "2015-03-18 20:54:39.786732"], ["updated_at", "2015-03-18 20:54:39.786732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (14.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$yyoji7T4cyoT9Tbkzm6O0OUdDGu5OwltqaPiOe8ixruOUxDFOE8ne"], ["created_at", "2015-03-18 20:54:39.809281"], ["updated_at", "2015-03-18 20:54:39.809281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$rs.CV58UeE5gG3l3D3rY0u7FGn/LS3HUMN2xY1B7DT/3ox71USMJO"], ["created_at", "2015-03-18 20:54:39.822996"], ["updated_at", "2015-03-18 20:54:39.822996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$gN3hSiGEdX8NOmBRDzg3m.HA1LwXVaCaMMZTyWLcc/K1LocKxVD7C"], ["created_at", "2015-03-18 20:54:39.873773"], ["updated_at", "2015-03-18 20:54:39.873773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$EAqQAIVqFLeJEgwY72ko4OKPp5nqOGTD3DQzcCZqSEIR5UHwL8igW"], ["created_at", "2015-03-18 20:54:39.884675"], ["updated_at", "2015-03-18 20:54:39.884675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$zwpArW.PorXwo6D6F4.8MeL7m.8k965DP1igu0ToJH69v1Zx8K5Gi"], ["created_at", "2015-03-18 20:55:10.594751"], ["updated_at", "2015-03-18 20:55:10.594751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:10.627695"], ["updated_at", "2015-03-18 20:55:10.627695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1101d62a-cdb1-11e4-a67b-705681abff85' LIMIT 1 [["organization_id", "11033574-cdb1-11e4-aefe-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$s/6PQfenFwKxWRpxhnKUd.PW3ZnofCLpAGYxut65WH.SCeieH0hDW"], ["created_at", "2015-03-18 20:55:10.653135"], ["updated_at", "2015-03-18 20:55:10.653135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:10.656509"], ["updated_at", "2015-03-18 20:55:10.656509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1107116c-cdb1-11e4-bb46-705681abff85' LIMIT 1 [["organization_id", "11078f70-cdb1-11e4-a4b9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$e1vLwQJ1yuasnuZ2VtUHi.zqWrnPip9dsw5P8ZPtX9WFocznMzcU6"], ["created_at", "2015-03-18 20:55:10.663403"], ["updated_at", "2015-03-18 20:55:10.663403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:10.666788"], ["updated_at", "2015-03-18 20:55:10.666788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1108a77a-cdb1-11e4-a1f6-705681abff85' LIMIT 1 [["organization_id", "1109238a-cdb1-11e4-9ec4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$DSWDsOPbeL7mUqPhcOpbH.WZbpxUHO0ohf64L/eUVg6buB5unDiJa"], ["created_at", "2015-03-18 20:55:10.673827"], ["updated_at", "2015-03-18 20:55:10.673827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:10.676915"], ["updated_at", "2015-03-18 20:55:10.676915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$e253y/RrEcbav12k0aT4zus3cjHH7vG8ycuPPbgGbUAugTuAe31p2"], ["created_at", "2015-03-18 20:55:10.684842"], ["updated_at", "2015-03-18 20:55:10.684842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:10.688363"], ["updated_at", "2015-03-18 20:55:10.688363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$PtqPOEAO6ZbWrVrdoMQlPO8W7oByZBDFyOsdeO6UR7PioK6HeoaXa"], ["created_at", "2015-03-18 20:55:10.694060"], ["updated_at", "2015-03-18 20:55:10.694060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$p8g6BKN28H6pBMRLmH/fmuLNOzsSnX2Zt96VVjC.ZhpmhJ/7ym1a2"], ["created_at", "2015-03-18 20:55:10.700748"], ["updated_at", "2015-03-18 20:55:10.700748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$uBrObriPzjnHoHwe2Si6euHJqOQyApO4Alxp3cE2nl3E/PmsR75hm"], ["created_at", "2015-03-18 20:55:10.706374"], ["updated_at", "2015-03-18 20:55:10.706374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$VCeutgOSAunzNmz8r45Qdu8v6Lbve5upN/DeX/EFOYUuuzBkTUzrO"], ["created_at", "2015-03-18 20:55:10.711690"], ["updated_at", "2015-03-18 20:55:10.711690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$JT1qVXmbDkwheTKHYxJmoOpR6E8X7wq3EqztEdN82himC9tqOYn8i"], ["created_at", "2015-03-18 20:55:10.717098"], ["updated_at", "2015-03-18 20:55:10.717098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$y.299j51HhvIKaXpjsGbiuZBQGuCVudBZfd/Ldoya1aca9mPpIz1m"], ["created_at", "2015-03-18 20:55:10.722525"], ["updated_at", "2015-03-18 20:55:10.722525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$DK9ddNMzOHqQYeyf8svzce1TFe28kBVwYlAhbQnmHsNL.LQW9J1RC"], ["created_at", "2015-03-18 20:55:10.727857"], ["updated_at", "2015-03-18 20:55:10.727857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$a6hf9FTm60TyZ7z7NFVxh.Rf1rYYGXlgDQ42v5Wmh/HEp4sBn0Uky"], ["created_at", "2015-03-18 20:55:10.733597"], ["updated_at", "2015-03-18 20:55:10.733597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$QFLqNpn1fBvCd72bz6723eEqgGcQQ1VVBOmlHd04SIEL9kBtOE5U6"], ["created_at", "2015-03-18 20:55:10.738969"], ["updated_at", "2015-03-18 20:55:10.738969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$JDYkiLk6YbUEPwYB3YF7Euz3iYHBdUyJ/PV6keJvfvw85hDXF5bXK"], ["created_at", "2015-03-18 20:55:10.744068"], ["updated_at", "2015-03-18 20:55:10.744068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (5.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (8.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$qq8EamIUdROxz2WeKiLzju04UR4DNDrOrIlOAoZnp0I3AQ7Ffd3Rq"], ["created_at", "2015-03-18 20:55:30.173576"], ["updated_at", "2015-03-18 20:55:30.173576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:30.202195"], ["updated_at", "2015-03-18 20:55:30.202195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1cabca4e-cdb1-11e4-813c-705681abff85' AND "clubhouse_memberships"."organization_id" = '1cae0ae8-cdb1-11e4-a249-705681abff85') LIMIT 1 SQL (7.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1cabca4e-cdb1-11e4-813c-705681abff85"], ["organization_id", "1cae0ae8-cdb1-11e4-a249-705681abff85"], ["created_at", "2015-03-18 20:55:30.218186"], ["updated_at", "2015-03-18 20:55:30.218186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$c3yN.ycXe6b.Vpb2LfDbIOaFiQhFP6xPXtbNDrqJuTY50du1Rc186"], ["created_at", "2015-03-18 20:55:30.231662"], ["updated_at", "2015-03-18 20:55:30.231662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:30.235042"], ["updated_at", "2015-03-18 20:55:30.235042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1cb282a8-cdb1-11e4-bf19-705681abff85' AND "clubhouse_memberships"."organization_id" = '1cb304a8-cdb1-11e4-994c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1cb282a8-cdb1-11e4-bf19-705681abff85"], ["organization_id", "1cb304a8-cdb1-11e4-994c-705681abff85"], ["created_at", "2015-03-18 20:55:30.238638"], ["updated_at", "2015-03-18 20:55:30.238638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1cb282a8-cdb1-11e4-bf19-705681abff85' LIMIT 1 [["organization_id", "1cb304a8-cdb1-11e4-994c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$rsp3Fyy6bN2SlOJzujfp2uIOuu0vFhe7a8qIKAwVqppsAkn/KoWXq"], ["created_at", "2015-03-18 20:55:30.272103"], ["updated_at", "2015-03-18 20:55:30.272103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:30.275414"], ["updated_at", "2015-03-18 20:55:30.275414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1cb8b0ba-cdb1-11e4-b627-705681abff85' AND "clubhouse_memberships"."organization_id" = '1cb92bd0-cdb1-11e4-a067-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1cb8b0ba-cdb1-11e4-b627-705681abff85"], ["organization_id", "1cb92bd0-cdb1-11e4-a067-705681abff85"], ["created_at", "2015-03-18 20:55:30.278822"], ["updated_at", "2015-03-18 20:55:30.278822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$nbvE0gDQUcrF/wtSqfbCDuEwlsvR3QDfU/z3P6UU7ZPMhNpVLRBNK"], ["created_at", "2015-03-18 20:55:30.285497"], ["updated_at", "2015-03-18 20:55:30.285497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:30.288958"], ["updated_at", "2015-03-18 20:55:30.288958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1cbab9f0-cdb1-11e4-8a6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '1cbb3cfe-cdb1-11e4-9e87-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1cbab9f0-cdb1-11e4-8a6a-705681abff85"], ["organization_id", "1cbb3cfe-cdb1-11e4-9e87-705681abff85"], ["created_at", "2015-03-18 20:55:30.292056"], ["updated_at", "2015-03-18 20:55:30.292056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1cbab9f0-cdb1-11e4-8a6a-705681abff85' LIMIT 1 [["organization_id", "1cbb3cfe-cdb1-11e4-9e87-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$VRiCruhOA.AX9UGr5ny6kOXhJSy3liZX0ZJeZRAjLNND3FTWWvbzC"], ["created_at", "2015-03-18 20:55:30.299037"], ["updated_at", "2015-03-18 20:55:30.299037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:30.302638"], ["updated_at", "2015-03-18 20:55:30.302638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1cbcc826-cdb1-11e4-8d3f-705681abff85' AND "clubhouse_memberships"."organization_id" = '1cbd5552-cdb1-11e4-aa98-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1cbcc826-cdb1-11e4-8d3f-705681abff85"], ["organization_id", "1cbd5552-cdb1-11e4-aa98-705681abff85"], ["created_at", "2015-03-18 20:55:30.307108"], ["updated_at", "2015-03-18 20:55:30.307108"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1cbcc826-cdb1-11e4-8d3f-705681abff85' LIMIT 1 [["organization_id", "1cbd5552-cdb1-11e4-aa98-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$KUiv.5v.B1II3KQc9h3Sh.kHagwcli8He4UVaP0Nx8WgDDcagd7Ve"], ["created_at", "2015-03-18 20:55:30.315795"], ["updated_at", "2015-03-18 20:55:30.315795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Imh3znNdHXsyWY4NayvR3eP1eXVLgT9bZO/EEwLVLfeegxPU1VBOm"], ["created_at", "2015-03-18 20:55:30.321375"], ["updated_at", "2015-03-18 20:55:30.321375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$tcoIaIRKT2nVM3sulgKBgOyvvV9IY4fEZ5qi0QlVro4jwt/cO9xJe"], ["created_at", "2015-03-18 20:55:30.326909"], ["updated_at", "2015-03-18 20:55:30.326909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$ZrfolapmbwMgtvSG7lABQOawSTP7MwwwDDcveBr084G0.rLQ/HUpa"], ["created_at", "2015-03-18 20:55:30.333420"], ["updated_at", "2015-03-18 20:55:30.333420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$vtC9iMdt71sTIOW4rnN7pOfiuSLPDfYGnziu0VRA.E3btQqiviIv2"], ["created_at", "2015-03-18 20:55:30.338821"], ["updated_at", "2015-03-18 20:55:30.338821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$229b86HRGSxznEO8H5kTiOH.ZKOz.XQvaq92jeVliQ3T7FyFh6oGm"], ["created_at", "2015-03-18 20:55:30.344414"], ["updated_at", "2015-03-18 20:55:30.344414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:30.347740"], ["updated_at", "2015-03-18 20:55:30.347740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$GgIGhyFin8ix7wKcgOL.2.VFZkUzZBlEnRTRTnV64kgKbuIFJQK/C"], ["created_at", "2015-03-18 20:55:30.353522"], ["updated_at", "2015-03-18 20:55:30.353522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:30.356753"], ["updated_at", "2015-03-18 20:55:30.356753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1cc51b02-cdb1-11e4-9483-705681abff85' LIMIT 1 [["organization_id", "1cc597a8-cdb1-11e4-b79f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Hskreh6m5MV2CC.cy3B6CuRc30c7n84WyQTnqOvvgnJRVBjJ3HC/2"], ["created_at", "2015-03-18 20:55:30.363650"], ["updated_at", "2015-03-18 20:55:30.363650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:30.367521"], ["updated_at", "2015-03-18 20:55:30.367521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$br4qfuA8164DJd/onRztyuTnBnE04RO5eSRtGoDdlalHtkh3bBn3C"], ["created_at", "2015-03-18 20:55:30.372918"], ["updated_at", "2015-03-18 20:55:30.372918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:30.376137"], ["updated_at", "2015-03-18 20:55:30.376137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1cc80ce0-cdb1-11e4-b4f2-705681abff85' LIMIT 1 [["organization_id", "1cc88cba-cdb1-11e4-ad96-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$0cQuDWsQGpWfsgye0KCUoeKwIzeS1weUmPX2tnCGhjiuZFcOntRK6"], ["created_at", "2015-03-18 20:55:30.383896"], ["updated_at", "2015-03-18 20:55:30.383896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:30.389623"], ["updated_at", "2015-03-18 20:55:30.389623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1cc9bb58-cdb1-11e4-b517-705681abff85' LIMIT 1 [["organization_id", "1ccabfe4-cdb1-11e4-8d9f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$I3e4Q1zk354mJAvTLtVdZeL3hSjYSVIfXG0NoAIVHBMYTh03UTmpO"], ["created_at", "2015-03-18 20:55:43.506827"], ["updated_at", "2015-03-18 20:55:43.506827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.546632"], ["updated_at", "2015-03-18 20:55:43.546632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '249ffae0-cdb1-11e4-8a55-705681abff85' AND "clubhouse_memberships"."organization_id" = '24a2581c-cdb1-11e4-8a29-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "249ffae0-cdb1-11e4-8a55-705681abff85"], ["organization_id", "24a2581c-cdb1-11e4-8a29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:55:43.566662"], ["updated_at", "2015-03-18 20:55:43.566662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '249ffae0-cdb1-11e4-8a55-705681abff85' LIMIT 1 [["organization_id", "24a2581c-cdb1-11e4-8a29-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$08svHUMymRezZNFZkOFIWuIQsIun8ZMlcfkFalqSx/80TB2vam3xW"], ["created_at", "2015-03-18 20:55:43.601072"], ["updated_at", "2015-03-18 20:55:43.601072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.604552"], ["updated_at", "2015-03-18 20:55:43.604552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24aa8802-cdb1-11e4-b5eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '24ab093a-cdb1-11e4-8e67-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24aa8802-cdb1-11e4-b5eb-705681abff85"], ["organization_id", "24ab093a-cdb1-11e4-8e67-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:55:43.607828"], ["updated_at", "2015-03-18 20:55:43.607828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '24aa8802-cdb1-11e4-b5eb-705681abff85' LIMIT 1 [["organization_id", "24ab093a-cdb1-11e4-8e67-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Ce5UqiLFDXAVoce7LVV6puvJ61RCpnCpwtYsrs3tgmHS/if2i9Ora"], ["created_at", "2015-03-18 20:55:43.615054"], ["updated_at", "2015-03-18 20:55:43.615054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.618283"], ["updated_at", "2015-03-18 20:55:43.618283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24aca7d6-cdb1-11e4-9610-705681abff85' AND "clubhouse_memberships"."organization_id" = '24ad2274-cdb1-11e4-b4b9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24aca7d6-cdb1-11e4-9610-705681abff85"], ["organization_id", "24ad2274-cdb1-11e4-b4b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:55:43.621968"], ["updated_at", "2015-03-18 20:55:43.621968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24aca7d6-cdb1-11e4-9610-705681abff85' LIMIT 1 [["organization_id", "24ad2274-cdb1-11e4-b4b9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$iqCwdC2vwCTEA5FWBVvmu.1m3KuZ/h.juSxyLe93VvSpexU1OS8Cy"], ["created_at", "2015-03-18 20:55:43.629695"], ["updated_at", "2015-03-18 20:55:43.629695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.634385"], ["updated_at", "2015-03-18 20:55:43.634385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24aee672-cdb1-11e4-aee2-705681abff85' AND "clubhouse_memberships"."organization_id" = '24af9cfc-cdb1-11e4-a0cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24aee672-cdb1-11e4-aee2-705681abff85"], ["organization_id", "24af9cfc-cdb1-11e4-a0cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:55:43.638288"], ["updated_at", "2015-03-18 20:55:43.638288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$O50RdQtWAp8Ax.lpQIArH.aRmTaEs406zlvCWBjAv7pnPGO0rdylK"], ["created_at", "2015-03-18 20:55:43.644725"], ["updated_at", "2015-03-18 20:55:43.644725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.651758"], ["updated_at", "2015-03-18 20:55:43.651758"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24b13350-cdb1-11e4-9ca1-705681abff85' AND "clubhouse_memberships"."organization_id" = '24b25118-cdb1-11e4-92f8-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24b13350-cdb1-11e4-9ca1-705681abff85"], ["organization_id", "24b25118-cdb1-11e4-92f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:55:43.657586"], ["updated_at", "2015-03-18 20:55:43.657586"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$em.h5pWFhUm4SewmpBYJaO1FCBasIojl6lEd5/4QxfA4qYtpt10J."], ["created_at", "2015-03-18 20:55:43.666871"], ["updated_at", "2015-03-18 20:55:43.666871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.671616"], ["updated_at", "2015-03-18 20:55:43.671616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '24b49338-cdb1-11e4-b141-705681abff85' LIMIT 1 [["organization_id", "24b548d2-cdb1-11e4-9941-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$35FWtN94ha5KUzhskwS55.9G84z3gaGzStcQhWTTd/JsF3D0NWqCe"], ["created_at", "2015-03-18 20:55:43.679583"], ["updated_at", "2015-03-18 20:55:43.679583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.684233"], ["updated_at", "2015-03-18 20:55:43.684233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '24b69b24-cdb1-11e4-ba2b-705681abff85' LIMIT 1 [["organization_id", "24b7402e-cdb1-11e4-9c25-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$JS5lwo5iZaRnClUN7J8KiemrbRMmH9EaehELMyXvRV4xtIudGtKWe"], ["created_at", "2015-03-18 20:55:43.692350"], ["updated_at", "2015-03-18 20:55:43.692350"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.697701"], ["updated_at", "2015-03-18 20:55:43.697701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24b88d08-cdb1-11e4-94d9-705681abff85' LIMIT 1 [["organization_id", "24b95cf6-cdb1-11e4-bfe2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$fAcEv2pqIe0yeJfJP.jgt.RTdQKGMJDH/nkx4L3oMOl923JXVrPYy"], ["created_at", "2015-03-18 20:55:43.706967"], ["updated_at", "2015-03-18 20:55:43.706967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.711408"], ["updated_at", "2015-03-18 20:55:43.711408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Do0bzhhJyd8uhDrxd0O5Y.osByS0XqkkQeKYWGLGBenI5hiDPWih."], ["created_at", "2015-03-18 20:55:43.718470"], ["updated_at", "2015-03-18 20:55:43.718470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.722586"], ["updated_at", "2015-03-18 20:55:43.722586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$uyFlGGYXNS6SSF5abWgzseOuzVEIQyEjGXqKbc5WJ.b.csLtVEixu"], ["created_at", "2015-03-18 20:55:43.729409"], ["updated_at", "2015-03-18 20:55:43.729409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.734059"], ["updated_at", "2015-03-18 20:55:43.734059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24be2114-cdb1-11e4-a2e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '24bed5aa-cdb1-11e4-bf04-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24be2114-cdb1-11e4-a2e7-705681abff85"], ["organization_id", "24bed5aa-cdb1-11e4-bf04-705681abff85"], ["created_at", "2015-03-18 20:55:43.737997"], ["updated_at", "2015-03-18 20:55:43.737997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '24be2114-cdb1-11e4-a2e7-705681abff85' LIMIT 1 [["organization_id", "24bed5aa-cdb1-11e4-bf04-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$FxSVLkUlgmePLQbF66iTCuiMwK0lEB9u7chKLrsuMUGoUW47heum2"], ["created_at", "2015-03-18 20:55:43.748600"], ["updated_at", "2015-03-18 20:55:43.748600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.754382"], ["updated_at", "2015-03-18 20:55:43.754382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24c1308e-cdb1-11e4-8995-705681abff85' AND "clubhouse_memberships"."organization_id" = '24c1f82a-cdb1-11e4-b645-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24c1308e-cdb1-11e4-8995-705681abff85"], ["organization_id", "24c1f82a-cdb1-11e4-b645-705681abff85"], ["created_at", "2015-03-18 20:55:43.758769"], ["updated_at", "2015-03-18 20:55:43.758769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '24c1308e-cdb1-11e4-8995-705681abff85' LIMIT 1 [["organization_id", "24c1f82a-cdb1-11e4-b645-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (1.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$2a0kG43P5kGP1/9BehyjEuD9eUytMLjB/ElYogXWQYc4mwgnZGJMG"], ["created_at", "2015-03-18 20:55:43.766839"], ["updated_at", "2015-03-18 20:55:43.766839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.772323"], ["updated_at", "2015-03-18 20:55:43.772323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24c3d834-cdb1-11e4-aba1-705681abff85' AND "clubhouse_memberships"."organization_id" = '24c4abec-cdb1-11e4-97d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24c3d834-cdb1-11e4-aba1-705681abff85"], ["organization_id", "24c4abec-cdb1-11e4-97d9-705681abff85"], ["created_at", "2015-03-18 20:55:43.776434"], ["updated_at", "2015-03-18 20:55:43.776434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24c3d834-cdb1-11e4-aba1-705681abff85' LIMIT 1 [["organization_id", "24c4abec-cdb1-11e4-97d9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$e.L5OrdO4fBnzNFtQaKXX.tmL.aCGtItNwukRTUGfKYG5KQwbjnYm"], ["created_at", "2015-03-18 20:55:43.784874"], ["updated_at", "2015-03-18 20:55:43.784874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.788660"], ["updated_at", "2015-03-18 20:55:43.788660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24c69984-cdb1-11e4-bad2-705681abff85' AND "clubhouse_memberships"."organization_id" = '24c7244e-cdb1-11e4-b8ea-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24c69984-cdb1-11e4-bad2-705681abff85"], ["organization_id", "24c7244e-cdb1-11e4-b8ea-705681abff85"], ["created_at", "2015-03-18 20:55:43.811371"], ["updated_at", "2015-03-18 20:55:43.811371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$08JRaLudbIf9Oq6yn2mD9.YG4wJtskRVSJB8FCoa1MjsVMQwmmr/W"], ["created_at", "2015-03-18 20:55:43.821909"], ["updated_at", "2015-03-18 20:55:43.821909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:43.826706"], ["updated_at", "2015-03-18 20:55:43.826706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24cc500e-cdb1-11e4-b581-705681abff85' AND "clubhouse_memberships"."organization_id" = '24ccfb4e-cdb1-11e4-9622-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24cc500e-cdb1-11e4-b581-705681abff85"], ["organization_id", "24ccfb4e-cdb1-11e4-9622-705681abff85"], ["created_at", "2015-03-18 20:55:43.831362"], ["updated_at", "2015-03-18 20:55:43.831362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$L9fKDyuDCgMUaf3zTD9cvu0RD0BpHdepptZHWlNi82jPR4HtNL8FW"], ["created_at", "2015-03-18 20:55:54.414490"], ["updated_at", "2015-03-18 20:55:54.414490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.450793"], ["updated_at", "2015-03-18 20:55:54.450793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2b2038ee-cdb1-11e4-97b1-705681abff85' LIMIT 1 [["organization_id", "2b222258-cdb1-11e4-a59a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$1fFdtlPckxiNiXO2jdeFe.UMYmwjQbD6rBjTFpsh/XszHcbJjVcH2"], ["created_at", "2015-03-18 20:55:54.482274"], ["updated_at", "2015-03-18 20:55:54.482274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.485722"], ["updated_at", "2015-03-18 20:55:54.485722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$mG4vKn3x0P6A.3CKzJzeR.7RXmfxEmnJrPemttsdYZ0ewWuxZ1zJm"], ["created_at", "2015-03-18 20:55:54.499973"], ["updated_at", "2015-03-18 20:55:54.499973"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.504113"], ["updated_at", "2015-03-18 20:55:54.504113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$KqH6JJwckE88pvwPrNz.8.yyh2BIjpK8PWg.l9Cz8heCHdryDteUG"], ["created_at", "2015-03-18 20:55:54.511158"], ["updated_at", "2015-03-18 20:55:54.511158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.515420"], ["updated_at", "2015-03-18 20:55:54.515420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2b2b56de-cdb1-11e4-8dd9-705681abff85' LIMIT 1 [["organization_id", "2b2bea36-cdb1-11e4-9079-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$L.uGapOSFAkhCgDowUoa2.cdKBFX1aP7XZoJmS44bxwdzikcunKqK"], ["created_at", "2015-03-18 20:55:54.524044"], ["updated_at", "2015-03-18 20:55:54.524044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.528129"], ["updated_at", "2015-03-18 20:55:54.528129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2b2d4110-cdb1-11e4-9ca8-705681abff85' LIMIT 1 [["organization_id", "2b2de43a-cdb1-11e4-b9eb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$d0jeuRs80bW0wHn6K9ef4unzEAT694q8hytz5WiffJadOaTIRjGVi"], ["created_at", "2015-03-18 20:55:54.536574"], ["updated_at", "2015-03-18 20:55:54.536574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.540446"], ["updated_at", "2015-03-18 20:55:54.540446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b2f2c6e-cdb1-11e4-a002-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b2fbe5e-cdb1-11e4-857d-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2b2f2c6e-cdb1-11e4-a002-705681abff85"], ["organization_id", "2b2fbe5e-cdb1-11e4-857d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:55:54.554940"], ["updated_at", "2015-03-18 20:55:54.554940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2b2f2c6e-cdb1-11e4-a002-705681abff85' LIMIT 1 [["organization_id", "2b2fbe5e-cdb1-11e4-857d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$6SvqMD8W/ZjJj28NJHGls.IxnNtnsJOw2bI70f1Th/hYNOb.h.Vea"], ["created_at", "2015-03-18 20:55:54.562952"], ["updated_at", "2015-03-18 20:55:54.562952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.566637"], ["updated_at", "2015-03-18 20:55:54.566637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b3333f4-cdb1-11e4-8685-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b33b6a8-cdb1-11e4-ac32-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2b3333f4-cdb1-11e4-8685-705681abff85"], ["organization_id", "2b33b6a8-cdb1-11e4-ac32-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:55:54.569959"], ["updated_at", "2015-03-18 20:55:54.569959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$IRH//pzaJrnxovNZ0hwiEuK/soEsj.ZQy3INbWVEtUbaYbBy2OEHe"], ["created_at", "2015-03-18 20:55:54.577287"], ["updated_at", "2015-03-18 20:55:54.577287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.580875"], ["updated_at", "2015-03-18 20:55:54.580875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b355c74-cdb1-11e4-b4ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b35e6f8-cdb1-11e4-9d4c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2b355c74-cdb1-11e4-b4ec-705681abff85"], ["organization_id", "2b35e6f8-cdb1-11e4-9d4c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:55:54.584735"], ["updated_at", "2015-03-18 20:55:54.584735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$rR6WF/y29KSksTz1XAgf0egIhtDU73KrsMx2.xrIWodO2Xsf4MNx6"], ["created_at", "2015-03-18 20:55:54.591100"], ["updated_at", "2015-03-18 20:55:54.591100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.594372"], ["updated_at", "2015-03-18 20:55:54.594372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b377626-cdb1-11e4-9103-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b37f484-cdb1-11e4-b70f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2b377626-cdb1-11e4-9103-705681abff85"], ["organization_id", "2b37f484-cdb1-11e4-b70f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:55:54.598007"], ["updated_at", "2015-03-18 20:55:54.598007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2b377626-cdb1-11e4-9103-705681abff85' LIMIT 1 [["organization_id", "2b37f484-cdb1-11e4-b70f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$kKahIiT2/BUs9yhYvrGjke1P5znhHLztJEbqKWeYugnv8sEpcpWfi"], ["created_at", "2015-03-18 20:55:54.606784"], ["updated_at", "2015-03-18 20:55:54.606784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.610445"], ["updated_at", "2015-03-18 20:55:54.610445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b39ded4-cdb1-11e4-b121-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b3a6caa-cdb1-11e4-ac3f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2b39ded4-cdb1-11e4-b121-705681abff85"], ["organization_id", "2b3a6caa-cdb1-11e4-ac3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:55:54.614010"], ["updated_at", "2015-03-18 20:55:54.614010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2b39ded4-cdb1-11e4-b121-705681abff85' LIMIT 1 [["organization_id", "2b3a6caa-cdb1-11e4-ac3f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Vroy2I.UVGvN9oOuZouv.eIMm6ZBlQjNXTsp1lQdRtdCLn/5q3.TG"], ["created_at", "2015-03-18 20:55:54.622424"], ["updated_at", "2015-03-18 20:55:54.622424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.626327"], ["updated_at", "2015-03-18 20:55:54.626327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b3c4dea-cdb1-11e4-9ccb-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b3cd490-cdb1-11e4-801b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b3c4dea-cdb1-11e4-9ccb-705681abff85"], ["organization_id", "2b3cd490-cdb1-11e4-801b-705681abff85"], ["created_at", "2015-03-18 20:55:54.630179"], ["updated_at", "2015-03-18 20:55:54.630179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2b3c4dea-cdb1-11e4-9ccb-705681abff85' LIMIT 1 [["organization_id", "2b3cd490-cdb1-11e4-801b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$WEngL021Cf0MJSPRUFuvMO1W1bCUywwHERMCD5yhFsHxFwvd.PpZK"], ["created_at", "2015-03-18 20:55:54.638212"], ["updated_at", "2015-03-18 20:55:54.638212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.641964"], ["updated_at", "2015-03-18 20:55:54.641964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b3eab76-cdb1-11e4-8021-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b3f3a8c-cdb1-11e4-abcd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b3eab76-cdb1-11e4-8021-705681abff85"], ["organization_id", "2b3f3a8c-cdb1-11e4-abcd-705681abff85"], ["created_at", "2015-03-18 20:55:54.645694"], ["updated_at", "2015-03-18 20:55:54.645694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$SgOqIsqPJvRCACw7uewl9uKEqbmmsk0NcEpPnfX.VOMchQPP9TBYu"], ["created_at", "2015-03-18 20:55:54.651998"], ["updated_at", "2015-03-18 20:55:54.651998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.656101"], ["updated_at", "2015-03-18 20:55:54.656101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b40c212-cdb1-11e4-84de-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b4167c6-cdb1-11e4-88f1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b40c212-cdb1-11e4-84de-705681abff85"], ["organization_id", "2b4167c6-cdb1-11e4-88f1-705681abff85"], ["created_at", "2015-03-18 20:55:54.659951"], ["updated_at", "2015-03-18 20:55:54.659951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$vPaJU4Yfee6UoEVITLuOruFI5DeU6KjU3rz9PYpjYlekgkOgSRuvm"], ["created_at", "2015-03-18 20:55:54.666359"], ["updated_at", "2015-03-18 20:55:54.666359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.669616"], ["updated_at", "2015-03-18 20:55:54.669616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b42f1a4-cdb1-11e4-9be7-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b436e36-cdb1-11e4-a513-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b42f1a4-cdb1-11e4-9be7-705681abff85"], ["organization_id", "2b436e36-cdb1-11e4-a513-705681abff85"], ["created_at", "2015-03-18 20:55:54.673691"], ["updated_at", "2015-03-18 20:55:54.673691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2b42f1a4-cdb1-11e4-9be7-705681abff85' LIMIT 1 [["organization_id", "2b436e36-cdb1-11e4-a513-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$E5eC9vuW0veEZVtzhPThteIWczXPuZqbMcbzEQKwOj3QhWkRgwDxW"], ["created_at", "2015-03-18 20:55:54.680268"], ["updated_at", "2015-03-18 20:55:54.680268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:55:54.683986"], ["updated_at", "2015-03-18 20:55:54.683986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b4510a6-cdb1-11e4-b7ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '2b45a250-cdb1-11e4-9b21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2b4510a6-cdb1-11e4-b7ce-705681abff85"], ["organization_id", "2b45a250-cdb1-11e4-9b21-705681abff85"], ["created_at", "2015-03-18 20:55:54.687897"], ["updated_at", "2015-03-18 20:55:54.687897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2b4510a6-cdb1-11e4-b7ce-705681abff85' LIMIT 1 [["organization_id", "2b45a250-cdb1-11e4-9b21-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (45.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$mXkSa9i3DJnLRXcnReKlz.7JRI3hl9sgzJequGUcHj9gvzbWA62h2"], ["created_at", "2015-03-18 20:56:08.114909"], ["updated_at", "2015-03-18 20:56:08.114909"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.173528"], ["updated_at", "2015-03-18 20:56:08.173528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '334e0e56-cdb1-11e4-bddd-705681abff85' AND "clubhouse_memberships"."organization_id" = '33501264-cdb1-11e4-9d82-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "334e0e56-cdb1-11e4-bddd-705681abff85"], ["organization_id", "33501264-cdb1-11e4-9d82-705681abff85"], ["created_at", "2015-03-18 20:56:08.198830"], ["updated_at", "2015-03-18 20:56:08.198830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '334e0e56-cdb1-11e4-bddd-705681abff85' LIMIT 1 [["organization_id", "33501264-cdb1-11e4-9d82-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$mbmINJJZlNdA5KtwDJm3m.C4EoCa2G.0iTvLRXxEm./2kHi.gdYki"], ["created_at", "2015-03-18 20:56:08.270293"], ["updated_at", "2015-03-18 20:56:08.270293"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.276692"], ["updated_at", "2015-03-18 20:56:08.276692"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '335ed09c-cdb1-11e4-81ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '335fc812-cdb1-11e4-ad20-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "335ed09c-cdb1-11e4-81ba-705681abff85"], ["organization_id", "335fc812-cdb1-11e4-ad20-705681abff85"], ["created_at", "2015-03-18 20:56:08.283170"], ["updated_at", "2015-03-18 20:56:08.283170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '335ed09c-cdb1-11e4-81ba-705681abff85' LIMIT 1 [["organization_id", "335fc812-cdb1-11e4-ad20-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$JTW7FXJxPCuD6s5fHOZFbeBmjTMeDpM3mQ2aKbSO.Xmd4v74uGGwu"], ["created_at", "2015-03-18 20:56:08.290506"], ["updated_at", "2015-03-18 20:56:08.290506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.293713"], ["updated_at", "2015-03-18 20:56:08.293713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3361d328-cdb1-11e4-ae6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '336252d0-cdb1-11e4-a085-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3361d328-cdb1-11e4-ae6e-705681abff85"], ["organization_id", "336252d0-cdb1-11e4-a085-705681abff85"], ["created_at", "2015-03-18 20:56:08.297215"], ["updated_at", "2015-03-18 20:56:08.297215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3361d328-cdb1-11e4-ae6e-705681abff85' LIMIT 1 [["organization_id", "336252d0-cdb1-11e4-a085-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$.lhs5RaT3Vgt6r5cpWKDm.Xp0JXBNSoBXUEeFwcAMrLs/zf7rQ51G"], ["created_at", "2015-03-18 20:56:08.304567"], ["updated_at", "2015-03-18 20:56:08.304567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.308584"], ["updated_at", "2015-03-18 20:56:08.308584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3363f842-cdb1-11e4-8102-705681abff85' AND "clubhouse_memberships"."organization_id" = '3364984c-cdb1-11e4-96ac-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3363f842-cdb1-11e4-8102-705681abff85"], ["organization_id", "3364984c-cdb1-11e4-96ac-705681abff85"], ["created_at", "2015-03-18 20:56:08.312024"], ["updated_at", "2015-03-18 20:56:08.312024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3363f842-cdb1-11e4-8102-705681abff85' LIMIT 1 [["organization_id", "3364984c-cdb1-11e4-96ac-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$/wLv4mE6.1kyfAAC3EjMTOSSwKgBNCyCswplGIXjg5PqX6qwcz.gu"], ["created_at", "2015-03-18 20:56:08.318966"], ["updated_at", "2015-03-18 20:56:08.318966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.322346"], ["updated_at", "2015-03-18 20:56:08.322346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33662e28-cdb1-11e4-a5f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3366b280-cdb1-11e4-bba4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33662e28-cdb1-11e4-a5f4-705681abff85"], ["organization_id", "3366b280-cdb1-11e4-bba4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.325867"], ["updated_at", "2015-03-18 20:56:08.325867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33662e28-cdb1-11e4-a5f4-705681abff85' LIMIT 1 [["organization_id", "3366b280-cdb1-11e4-bba4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$SHVdZ61gubAUTW9BURlm6.T1R4Ah9bvUan7YKgl9sxS1BKn4lxA7."], ["created_at", "2015-03-18 20:56:08.333245"], ["updated_at", "2015-03-18 20:56:08.333245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.336320"], ["updated_at", "2015-03-18 20:56:08.336320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3368578e-cdb1-11e4-afb0-705681abff85' AND "clubhouse_memberships"."organization_id" = '3368cd54-cdb1-11e4-beab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3368578e-cdb1-11e4-afb0-705681abff85"], ["organization_id", "3368cd54-cdb1-11e4-beab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.339511"], ["updated_at", "2015-03-18 20:56:08.339511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3368578e-cdb1-11e4-afb0-705681abff85' LIMIT 1 [["organization_id", "3368cd54-cdb1-11e4-beab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Vd5WrruV6LAepHkJrF1UaOn/a5zJ1DGrrPej9BQVjvQ7oK6IpI36e"], ["created_at", "2015-03-18 20:56:08.347202"], ["updated_at", "2015-03-18 20:56:08.347202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.350547"], ["updated_at", "2015-03-18 20:56:08.350547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '336a7de8-cdb1-11e4-8ac8-705681abff85' AND "clubhouse_memberships"."organization_id" = '336af8cc-cdb1-11e4-9940-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "336a7de8-cdb1-11e4-8ac8-705681abff85"], ["organization_id", "336af8cc-cdb1-11e4-9940-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.353754"], ["updated_at", "2015-03-18 20:56:08.353754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '336a7de8-cdb1-11e4-8ac8-705681abff85' LIMIT 1 [["organization_id", "336af8cc-cdb1-11e4-9940-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$pSIc1E27fQlygDlyTmUmROu9oZo6Qz2gPcIEP8SzfK4WQiNH96i.a"], ["created_at", "2015-03-18 20:56:08.361413"], ["updated_at", "2015-03-18 20:56:08.361413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.364963"], ["updated_at", "2015-03-18 20:56:08.364963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '336ca7da-cdb1-11e4-b4db-705681abff85' AND "clubhouse_memberships"."organization_id" = '336d30d8-cdb1-11e4-b08e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "336ca7da-cdb1-11e4-b4db-705681abff85"], ["organization_id", "336d30d8-cdb1-11e4-b08e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.368459"], ["updated_at", "2015-03-18 20:56:08.368459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '336ca7da-cdb1-11e4-b4db-705681abff85' LIMIT 1 [["organization_id", "336d30d8-cdb1-11e4-b08e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$BAzMXRajAX9P29OH9UD3VOLH2cTsRe9.MIPJONnMLaEJjqobAOTFC"], ["created_at", "2015-03-18 20:56:08.375498"], ["updated_at", "2015-03-18 20:56:08.375498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ttZZA05z278uWhk9SjeV0ugYAL89HFU2jl8DZTtIP5HqyL07PpiYe"], ["created_at", "2015-03-18 20:56:08.380975"], ["updated_at", "2015-03-18 20:56:08.380975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.385041"], ["updated_at", "2015-03-18 20:56:08.385041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '336faf48-cdb1-11e4-91f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '33703c10-cdb1-11e4-9d08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "336faf48-cdb1-11e4-91f3-705681abff85"], ["organization_id", "33703c10-cdb1-11e4-9d08-705681abff85"], ["created_at", "2015-03-18 20:56:08.388255"], ["updated_at", "2015-03-18 20:56:08.388255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '336ecad8-cdb1-11e4-b23d-705681abff85' LIMIT 1 [["organization_id", "33703c10-cdb1-11e4-9d08-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$TbV4QqyVCErTI0mqsXV3QuY55sLG1POIVOrNbLI1PRsSxIuNUh3FG"], ["created_at", "2015-03-18 20:56:08.395472"], ["updated_at", "2015-03-18 20:56:08.395472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$G6RKZ2MAjgbc4dQ1VV0ONOnse2444SeUkaNznKWvXmgVoME1V4QG2"], ["created_at", "2015-03-18 20:56:08.399800"], ["updated_at", "2015-03-18 20:56:08.399800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.402865"], ["updated_at", "2015-03-18 20:56:08.402865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33727e3a-cdb1-11e4-8734-705681abff85' AND "clubhouse_memberships"."organization_id" = '3372f464-cdb1-11e4-9753-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33727e3a-cdb1-11e4-8734-705681abff85"], ["organization_id", "3372f464-cdb1-11e4-9753-705681abff85"], ["created_at", "2015-03-18 20:56:08.406003"], ["updated_at", "2015-03-18 20:56:08.406003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3371d5f2-cdb1-11e4-a846-705681abff85' LIMIT 1 [["organization_id", "3372f464-cdb1-11e4-9753-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$5ZTYNGLKSw54gSkC.8B0l.141WNcNct7guOGY.I.6n6gXrT6IdlYy"], ["created_at", "2015-03-18 20:56:08.414860"], ["updated_at", "2015-03-18 20:56:08.414860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$UehEinro5tWJOv6N.moG4uinXnXwMYsfPd1hEaxy49U3QQ86TZKSW"], ["created_at", "2015-03-18 20:56:08.419019"], ["updated_at", "2015-03-18 20:56:08.419019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.421968"], ["updated_at", "2015-03-18 20:56:08.421968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33756b72-cdb1-11e4-8bd3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3375e764-cdb1-11e4-b26f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33756b72-cdb1-11e4-8bd3-705681abff85"], ["organization_id", "3375e764-cdb1-11e4-b26f-705681abff85"], ["created_at", "2015-03-18 20:56:08.425611"], ["updated_at", "2015-03-18 20:56:08.425611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3374ccd0-cdb1-11e4-b59d-705681abff85' LIMIT 1 [["organization_id", "3375e764-cdb1-11e4-b26f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$KoNwxToWmoGGrkGW05JsgOAqulUR.taLza1S/gzMn8eAMy6n5u1jG"], ["created_at", "2015-03-18 20:56:08.432782"], ["updated_at", "2015-03-18 20:56:08.432782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$GrzKNTqx9maLxgskDh.4jugQo8rvBLIkPtUWQfFy5oqsGP9raR9Qy"], ["created_at", "2015-03-18 20:56:08.437343"], ["updated_at", "2015-03-18 20:56:08.437343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.440938"], ["updated_at", "2015-03-18 20:56:08.440938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33783c08-cdb1-11e4-9019-705681abff85' AND "clubhouse_memberships"."organization_id" = '3378c6dc-cdb1-11e4-87ab-705681abff85') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33783c08-cdb1-11e4-9019-705681abff85"], ["organization_id", "3378c6dc-cdb1-11e4-87ab-705681abff85"], ["created_at", "2015-03-18 20:56:08.444209"], ["updated_at", "2015-03-18 20:56:08.444209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33778736-cdb1-11e4-9307-705681abff85' LIMIT 1 [["organization_id", "3378c6dc-cdb1-11e4-87ab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$V43AZpZGX.zJowNEoW8scuISpt4aAXft4lbyu5Q/8fDff2.OK0em2"], ["created_at", "2015-03-18 20:56:08.453299"], ["updated_at", "2015-03-18 20:56:08.453299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.456478"], ["updated_at", "2015-03-18 20:56:08.456478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '337aaa42-cdb1-11e4-87c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '337b2580-cdb1-11e4-8a2b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "337aaa42-cdb1-11e4-87c6-705681abff85"], ["organization_id", "337b2580-cdb1-11e4-8a2b-705681abff85"], ["created_at", "2015-03-18 20:56:08.460669"], ["updated_at", "2015-03-18 20:56:08.460669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '337b2580-cdb1-11e4-8a2b-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "337b2580-cdb1-11e4-8a2b-705681abff85"], ["created_at", "2015-03-18 20:56:08.470194"], ["updated_at", "2015-03-18 20:56:08.470194"], ["token", "JhoIpg4bFpfPzULYKVD-eY00IOZwFAypMv3_eLnRFeQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '337aaa42-cdb1-11e4-87c6-705681abff85' LIMIT 1 [["organization_id", "337b2580-cdb1-11e4-8a2b-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$48BeelPFkzUQMm.NGanNuec6MNj.Fq9idKPcn6SsdyvEYqGh7u58u"], ["created_at", "2015-03-18 20:56:08.480489"], ["updated_at", "2015-03-18 20:56:08.480489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.484270"], ["updated_at", "2015-03-18 20:56:08.484270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '337ee1de-cdb1-11e4-a8b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '337f623a-cdb1-11e4-ba5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "337ee1de-cdb1-11e4-a8b1-705681abff85"], ["organization_id", "337f623a-cdb1-11e4-ba5a-705681abff85"], ["created_at", "2015-03-18 20:56:08.487546"], ["updated_at", "2015-03-18 20:56:08.487546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '337f623a-cdb1-11e4-ba5a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "337f623a-cdb1-11e4-ba5a-705681abff85"], ["created_at", "2015-03-18 20:56:08.490940"], ["updated_at", "2015-03-18 20:56:08.490940"], ["token", "ZN_lelHbiZVqK7MDQSt_05QyoRf9ka7iI8i0z7dNkk8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '337ee1de-cdb1-11e4-a8b1-705681abff85' LIMIT 1 [["organization_id", "337f623a-cdb1-11e4-ba5a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$y9hGHjgxANwdU04QM5fxoev5WGUfCKxtNHC.4WYp6UjUg0XT2uUZK"], ["created_at", "2015-03-18 20:56:08.498944"], ["updated_at", "2015-03-18 20:56:08.498944"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.502368"], ["updated_at", "2015-03-18 20:56:08.502368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3381a036-cdb1-11e4-a728-705681abff85' AND "clubhouse_memberships"."organization_id" = '3382240c-cdb1-11e4-a2f1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3381a036-cdb1-11e4-a728-705681abff85"], ["organization_id", "3382240c-cdb1-11e4-a2f1-705681abff85"], ["created_at", "2015-03-18 20:56:08.505766"], ["updated_at", "2015-03-18 20:56:08.505766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '3382240c-cdb1-11e4-a2f1-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "3382240c-cdb1-11e4-a2f1-705681abff85"], ["created_at", "2015-03-18 20:56:08.509687"], ["updated_at", "2015-03-18 20:56:08.509687"], ["token", "Y9SUuSfk9-xLPmWIqTIGkRbreAFIJ-rT6z_buNceSHA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3381a036-cdb1-11e4-a728-705681abff85' LIMIT 1 [["organization_id", "3382240c-cdb1-11e4-a2f1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$sQnmDV56OZvxALMQXp6/v.jtPafi4pCiWe.dM/XhrCeyk4tQBuQv2"], ["created_at", "2015-03-18 20:56:08.518722"], ["updated_at", "2015-03-18 20:56:08.518722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.521832"], ["updated_at", "2015-03-18 20:56:08.521832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3384a510-cdb1-11e4-a2aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '33851c5c-cdb1-11e4-9148-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3384a510-cdb1-11e4-a2aa-705681abff85"], ["organization_id", "33851c5c-cdb1-11e4-9148-705681abff85"], ["created_at", "2015-03-18 20:56:08.525004"], ["updated_at", "2015-03-18 20:56:08.525004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '33851c5c-cdb1-11e4-9148-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "33851c5c-cdb1-11e4-9148-705681abff85"], ["created_at", "2015-03-18 20:56:08.528797"], ["updated_at", "2015-03-18 20:56:08.528797"], ["token", "kFWcgqedfdWPuiJYVHveATGppKs56RLiY8c1o762TK8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3384a510-cdb1-11e4-a2aa-705681abff85' LIMIT 1 [["organization_id", "33851c5c-cdb1-11e4-9148-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$/gZ2NTMtYv.CHcU2vh56MOXgwaExrs3OzEmMNAhU/lvREfd5a7BM2"], ["created_at", "2015-03-18 20:56:08.538397"], ["updated_at", "2015-03-18 20:56:08.538397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.541708"], ["updated_at", "2015-03-18 20:56:08.541708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3387a77e-cdb1-11e4-be42-705681abff85' AND "clubhouse_memberships"."organization_id" = '338825fa-cdb1-11e4-a13c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3387a77e-cdb1-11e4-be42-705681abff85"], ["organization_id", "338825fa-cdb1-11e4-a13c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.545045"], ["updated_at", "2015-03-18 20:56:08.545045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '338825fa-cdb1-11e4-a13c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "338825fa-cdb1-11e4-a13c-705681abff85"], ["created_at", "2015-03-18 20:56:08.549521"], ["updated_at", "2015-03-18 20:56:08.549521"], ["token", "6YIjsMU8Q_ddZizTL2dSdyYM9vuaWo_LjGoULWHQfFc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3387a77e-cdb1-11e4-be42-705681abff85' LIMIT 1 [["organization_id", "338825fa-cdb1-11e4-a13c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$3cv2txTtiX1OdKQ//PD.geozN9zx7L6h.V6jVAkJFl84WGon1v7sK"], ["created_at", "2015-03-18 20:56:08.557532"], ["updated_at", "2015-03-18 20:56:08.557532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.561835"], ["updated_at", "2015-03-18 20:56:08.561835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '338aa35c-cdb1-11e4-a6af-705681abff85' AND "clubhouse_memberships"."organization_id" = '338b3920-cdb1-11e4-b473-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "338aa35c-cdb1-11e4-a6af-705681abff85"], ["organization_id", "338b3920-cdb1-11e4-b473-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.565396"], ["updated_at", "2015-03-18 20:56:08.565396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '338b3920-cdb1-11e4-b473-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "338b3920-cdb1-11e4-b473-705681abff85"], ["created_at", "2015-03-18 20:56:08.569129"], ["updated_at", "2015-03-18 20:56:08.569129"], ["token", "apgv3iy2OofWv3RxD3g6N-gAH5hgaSCks_L5N-wcGIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '338aa35c-cdb1-11e4-a6af-705681abff85' LIMIT 1 [["organization_id", "338b3920-cdb1-11e4-b473-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$BLhUM2xQGkVCmup./6dmW.uOPf0ZytyfBKKk6XiLEvLN9VARrq59q"], ["created_at", "2015-03-18 20:56:08.576963"], ["updated_at", "2015-03-18 20:56:08.576963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.580366"], ["updated_at", "2015-03-18 20:56:08.580366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '338d8a9a-cdb1-11e4-ba82-705681abff85' AND "clubhouse_memberships"."organization_id" = '338e0be6-cdb1-11e4-ad7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "338d8a9a-cdb1-11e4-ba82-705681abff85"], ["organization_id", "338e0be6-cdb1-11e4-ad7d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.583898"], ["updated_at", "2015-03-18 20:56:08.583898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '338e0be6-cdb1-11e4-ad7d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "338e0be6-cdb1-11e4-ad7d-705681abff85"], ["created_at", "2015-03-18 20:56:08.587439"], ["updated_at", "2015-03-18 20:56:08.587439"], ["token", "5FQcwM3YxURgUlpByeQ8Aka1NgzrTZu9SD4zLG37-mw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '338d8a9a-cdb1-11e4-ba82-705681abff85' LIMIT 1 [["organization_id", "338e0be6-cdb1-11e4-ad7d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$s.ek6MGSOnROnFRrEQE.pufO./UnmHjHxfZpK69AplqR8HZYYbOwC"], ["created_at", "2015-03-18 20:56:08.595151"], ["updated_at", "2015-03-18 20:56:08.595151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.598730"], ["updated_at", "2015-03-18 20:56:08.598730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3390518a-cdb1-11e4-aa11-705681abff85' AND "clubhouse_memberships"."organization_id" = '3390da1a-cdb1-11e4-a92b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3390518a-cdb1-11e4-aa11-705681abff85"], ["organization_id", "3390da1a-cdb1-11e4-a92b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.602318"], ["updated_at", "2015-03-18 20:56:08.602318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '3390da1a-cdb1-11e4-a92b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "3390da1a-cdb1-11e4-a92b-705681abff85"], ["created_at", "2015-03-18 20:56:08.606129"], ["updated_at", "2015-03-18 20:56:08.606129"], ["token", "SQyQUn1Jas0FJmswKdp8G3nOPjHFKwUyyUxxH6HMgRY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3390518a-cdb1-11e4-aa11-705681abff85' LIMIT 1 [["organization_id", "3390da1a-cdb1-11e4-a92b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$tQz1ve6u0FlmO.KXuatYFuovlteiA2oNGQiL4InKp8EW9OXFKOgNS"], ["created_at", "2015-03-18 20:56:08.614144"], ["updated_at", "2015-03-18 20:56:08.614144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.617325"], ["updated_at", "2015-03-18 20:56:08.617325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '3393aef2-cdb1-11e4-8a2c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "3393aef2-cdb1-11e4-8a2c-705681abff85"], ["created_at", "2015-03-18 20:56:08.621004"], ["updated_at", "2015-03-18 20:56:08.621004"], ["token", "r1VI2YsN40rl5ceRAjOld4RLvsOaL8LOx_fLw63_YIs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33933404-cdb1-11e4-8ec1-705681abff85' LIMIT 1 [["organization_id", "3393aef2-cdb1-11e4-8a2c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$jZRr1O0RyvP2SQzdMiHT0uES4Pjfk75d.oFT5toL1RfTRL7rkFPLa"], ["created_at", "2015-03-18 20:56:08.634740"], ["updated_at", "2015-03-18 20:56:08.634740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.637838"], ["updated_at", "2015-03-18 20:56:08.637838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '3396cf24-cdb1-11e4-8f9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "3396cf24-cdb1-11e4-8f9e-705681abff85"], ["created_at", "2015-03-18 20:56:08.641526"], ["updated_at", "2015-03-18 20:56:08.641526"], ["token", "8U-EcdX22YerNRYeW10Vq43buZ4gWux-9gIOPcQcKRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '339658c8-cdb1-11e4-ac37-705681abff85' LIMIT 1 [["organization_id", "3396cf24-cdb1-11e4-8f9e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$zqczLvEG6Pkbjh5lXWXguO1cW/AqKqgzij/PbMp1anGOalCzWP66W"], ["created_at", "2015-03-18 20:56:08.649040"], ["updated_at", "2015-03-18 20:56:08.649040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.652303"], ["updated_at", "2015-03-18 20:56:08.652303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '339906d6-cdb1-11e4-b650-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "339906d6-cdb1-11e4-b650-705681abff85"], ["created_at", "2015-03-18 20:56:08.655690"], ["updated_at", "2015-03-18 20:56:08.655690"], ["token", "pQQCa7LNTgzwZtaqSZUCsl1Fug0WwGPR4CS78ek1U08"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '339887b0-cdb1-11e4-9f0d-705681abff85' LIMIT 1 [["organization_id", "339906d6-cdb1-11e4-b650-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$X7MhEMUUWF2kINhURnLekOmpw3InkZPoTB.1/FH5bu93ztGGTZBHq"], ["created_at", "2015-03-18 20:56:08.663689"], ["updated_at", "2015-03-18 20:56:08.663689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.666958"], ["updated_at", "2015-03-18 20:56:08.666958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '339b4270-cdb1-11e4-808b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "339b4270-cdb1-11e4-808b-705681abff85"], ["created_at", "2015-03-18 20:56:08.670307"], ["updated_at", "2015-03-18 20:56:08.670307"], ["token", "BqBxXvjdlZRj7CKEYtBW80oILdMo_hSsHShRM8K9_N0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '339ac35e-cdb1-11e4-89d4-705681abff85' LIMIT 1 [["organization_id", "339b4270-cdb1-11e4-808b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$ztwCp4hA9R7XhxgZgYBR9uEO44PL67eEmQcwKU.DvCQq7xyZjJwrW"], ["created_at", "2015-03-18 20:56:08.677554"], ["updated_at", "2015-03-18 20:56:08.677554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.680573"], ["updated_at", "2015-03-18 20:56:08.680573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '339ce09e-cdb1-11e4-9bd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '339d5510-cdb1-11e4-abba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "339ce09e-cdb1-11e4-9bd4-705681abff85"], ["organization_id", "339d5510-cdb1-11e4-abba-705681abff85"], ["created_at", "2015-03-18 20:56:08.684059"], ["updated_at", "2015-03-18 20:56:08.684059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '339ce09e-cdb1-11e4-9bd4-705681abff85' LIMIT 1 [["organization_id", "339d5510-cdb1-11e4-abba-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$h5mWoWUrYfTPz2qNFBV7N.j.bCqJGgZV3LxAkmy1WyG0Tdwy6Dw.u"], ["created_at", "2015-03-18 20:56:08.690862"], ["updated_at", "2015-03-18 20:56:08.690862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.694047"], ["updated_at", "2015-03-18 20:56:08.694047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '339ee9ca-cdb1-11e4-8adc-705681abff85' AND "clubhouse_memberships"."organization_id" = '339f6f62-cdb1-11e4-ac5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "339ee9ca-cdb1-11e4-8adc-705681abff85"], ["organization_id", "339f6f62-cdb1-11e4-ac5a-705681abff85"], ["created_at", "2015-03-18 20:56:08.697774"], ["updated_at", "2015-03-18 20:56:08.697774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '339ee9ca-cdb1-11e4-8adc-705681abff85' LIMIT 1 [["organization_id", "339f6f62-cdb1-11e4-ac5a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$coVCPg/Jk.4f51AQU05s5OkW8NiMtEK0FeDgRknjpp8geKKu2xZ96"], ["created_at", "2015-03-18 20:56:08.704566"], ["updated_at", "2015-03-18 20:56:08.704566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.707694"], ["updated_at", "2015-03-18 20:56:08.707694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33a10070-cdb1-11e4-8748-705681abff85' AND "clubhouse_memberships"."organization_id" = '33a183c4-cdb1-11e4-9a6c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33a10070-cdb1-11e4-8748-705681abff85"], ["organization_id", "33a183c4-cdb1-11e4-9a6c-705681abff85"], ["created_at", "2015-03-18 20:56:08.712105"], ["updated_at", "2015-03-18 20:56:08.712105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33a10070-cdb1-11e4-8748-705681abff85' LIMIT 1 [["organization_id", "33a183c4-cdb1-11e4-9a6c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$7WYa0A3RUF1CxGP62O.G..qCe3PqHoP3Q.nINoHp4ZWAnqjJoTRKa"], ["created_at", "2015-03-18 20:56:08.719421"], ["updated_at", "2015-03-18 20:56:08.719421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.722509"], ["updated_at", "2015-03-18 20:56:08.722509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33a34448-cdb1-11e4-8699-705681abff85' AND "clubhouse_memberships"."organization_id" = '33a3baa4-cdb1-11e4-a124-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33a34448-cdb1-11e4-8699-705681abff85"], ["organization_id", "33a3baa4-cdb1-11e4-a124-705681abff85"], ["created_at", "2015-03-18 20:56:08.725774"], ["updated_at", "2015-03-18 20:56:08.725774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$zzL6dfLT8nqIP5nbsjWTMudB4hnBHzf.W/b0g0FiByGAQRoPepL6m"], ["created_at", "2015-03-18 20:56:08.731314"], ["updated_at", "2015-03-18 20:56:08.731314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.734602"], ["updated_at", "2015-03-18 20:56:08.734602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33a51476-cdb1-11e4-a071-705681abff85' AND "clubhouse_memberships"."organization_id" = '33a594fa-cdb1-11e4-ac00-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33a51476-cdb1-11e4-a071-705681abff85"], ["organization_id", "33a594fa-cdb1-11e4-ac00-705681abff85"], ["created_at", "2015-03-18 20:56:08.738085"], ["updated_at", "2015-03-18 20:56:08.738085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$8euLAcDYlvIWMIK/AVV2C.qv1SxNn.r6Wmw0aVXXwwK9A5yGVsavm"], ["created_at", "2015-03-18 20:56:08.744045"], ["updated_at", "2015-03-18 20:56:08.744045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.747505"], ["updated_at", "2015-03-18 20:56:08.747505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33a70d80-cdb1-11e4-8799-705681abff85' AND "clubhouse_memberships"."organization_id" = '33a78bd4-cdb1-11e4-9352-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33a70d80-cdb1-11e4-8799-705681abff85"], ["organization_id", "33a78bd4-cdb1-11e4-9352-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.750758"], ["updated_at", "2015-03-18 20:56:08.750758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '33a70d80-cdb1-11e4-8799-705681abff85' LIMIT 1 [["organization_id", "33a78bd4-cdb1-11e4-9352-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$892ID/n1PE2mb98hDGsodOpxF//f6rUc4VfWRZEytJUw2L7MjS76W"], ["created_at", "2015-03-18 20:56:08.757446"], ["updated_at", "2015-03-18 20:56:08.757446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.761371"], ["updated_at", "2015-03-18 20:56:08.761371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33a910ee-cdb1-11e4-96c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '33a9acd4-cdb1-11e4-a9b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33a910ee-cdb1-11e4-96c9-705681abff85"], ["organization_id", "33a9acd4-cdb1-11e4-a9b8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.764886"], ["updated_at", "2015-03-18 20:56:08.764886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33a910ee-cdb1-11e4-96c9-705681abff85' LIMIT 1 [["organization_id", "33a9acd4-cdb1-11e4-a9b8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$XDt6Xo6nBFqLP9VZ5Ky6B.ZByh7nrU5ebG17coBqPWSZULGztGt1."], ["created_at", "2015-03-18 20:56:08.771782"], ["updated_at", "2015-03-18 20:56:08.771782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.775035"], ["updated_at", "2015-03-18 20:56:08.775035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33ab412a-cdb1-11e4-b230-705681abff85' AND "clubhouse_memberships"."organization_id" = '33abc08c-cdb1-11e4-a921-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33ab412a-cdb1-11e4-b230-705681abff85"], ["organization_id", "33abc08c-cdb1-11e4-a921-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.778307"], ["updated_at", "2015-03-18 20:56:08.778307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33ab412a-cdb1-11e4-b230-705681abff85' LIMIT 1 [["organization_id", "33abc08c-cdb1-11e4-a921-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$Kim8.btEpCuShauvTxUTIeuXuN2kLtKKA/DMBtQumgdwTTMxn8h2K"], ["created_at", "2015-03-18 20:56:08.785124"], ["updated_at", "2015-03-18 20:56:08.785124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.788504"], ["updated_at", "2015-03-18 20:56:08.788504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (64.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (9.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33ad4d6c-cdb1-11e4-8cce-705681abff85' AND "clubhouse_memberships"."organization_id" = '33adce22-cdb1-11e4-b6fd-705681abff85') LIMIT 1 SQL (3.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33ad4d6c-cdb1-11e4-8cce-705681abff85"], ["organization_id", "33adce22-cdb1-11e4-b6fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.866722"], ["updated_at", "2015-03-18 20:56:08.866722"]]  (2.8ms) RELEASE SAVEPOINT active_record_1  (3.4ms) ROLLBACK  (2.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$tahXXeABg1meoD/u7QZ90OZvckTmOAy/xXJDbydungxOcQFJLYe2."], ["created_at", "2015-03-18 20:56:08.889129"], ["updated_at", "2015-03-18 20:56:08.889129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.893877"], ["updated_at", "2015-03-18 20:56:08.893877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33bd3d44-cdb1-11e4-816e-705681abff85' AND "clubhouse_memberships"."organization_id" = '33bde456-cdb1-11e4-a7ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33bd3d44-cdb1-11e4-816e-705681abff85"], ["organization_id", "33bde456-cdb1-11e4-a7ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:56:08.897386"], ["updated_at", "2015-03-18 20:56:08.897386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$V8OfSWfTveNHDE02TSJyGuLkjGGermFlXxSzP1sxXaW7nTSt7l92O"], ["created_at", "2015-03-18 20:56:08.903391"], ["updated_at", "2015-03-18 20:56:08.903391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.906456"], ["updated_at", "2015-03-18 20:56:08.906456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '33bf5624-cdb1-11e4-b9ad-705681abff85' LIMIT 1 [["organization_id", "33bfcb36-cdb1-11e4-98ba-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$CyY9oqv0FJoqlDOVfC5DVu0lErdVPBy7uLa6GGP5fBSLtHg0x0Qaq"], ["created_at", "2015-03-18 20:56:08.913997"], ["updated_at", "2015-03-18 20:56:08.913997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.917565"], ["updated_at", "2015-03-18 20:56:08.917565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33c0fec0-cdb1-11e4-b46c-705681abff85' LIMIT 1 [["organization_id", "33c17e90-cdb1-11e4-a0d6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$MqLSGp1Nmc2XPqPeO/goFO2PgtPIe20i9vTc83ipYmXf5SwZlFvOe"], ["created_at", "2015-03-18 20:56:08.924997"], ["updated_at", "2015-03-18 20:56:08.924997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.928853"], ["updated_at", "2015-03-18 20:56:08.928853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33c2a360-cdb1-11e4-8837-705681abff85' LIMIT 1 [["organization_id", "33c33a96-cdb1-11e4-b07a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$/xlLX1eJJZ2O3.q9ZDo4GOiJOVUupfnGH9mbq1x0emT5YYUAMdoaO"], ["created_at", "2015-03-18 20:56:08.936678"], ["updated_at", "2015-03-18 20:56:08.936678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.939801"], ["updated_at", "2015-03-18 20:56:08.939801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$GXPesiO33SMHlg8MlKNViOfk2WdFixiLMYC08oqF.QIGkhsBgVOTW"], ["created_at", "2015-03-18 20:56:08.945375"], ["updated_at", "2015-03-18 20:56:08.945375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:56:08.948861"], ["updated_at", "2015-03-18 20:56:08.948861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$/l0..icrKtt1D/Ck6daKdeUPM.MNUqPpinCHDAEw0dKMhgjh/iJX2"], ["created_at", "2015-03-18 20:58:36.511479"], ["updated_at", "2015-03-18 20:58:36.511479"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.541651"], ["updated_at", "2015-03-18 20:58:36.541651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bbd7004-cdb1-11e4-a3ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bbf2ea8-cdb1-11e4-a7da-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bbd7004-cdb1-11e4-a3ba-705681abff85"], ["organization_id", "8bbf2ea8-cdb1-11e4-a7da-705681abff85"], ["created_at", "2015-03-18 20:58:36.557955"], ["updated_at", "2015-03-18 20:58:36.557955"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bbd7004-cdb1-11e4-a3ba-705681abff85' LIMIT 1 [["organization_id", "8bbf2ea8-cdb1-11e4-a7da-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Uf5l/Uzcjrc5zJkKln2TK.Qc7H/jCfqz9miel6o2yyt2XA3KZiVU6"], ["created_at", "2015-03-18 20:58:36.581950"], ["updated_at", "2015-03-18 20:58:36.581950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.585059"], ["updated_at", "2015-03-18 20:58:36.585059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bc54d38-cdb1-11e4-bc4e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bc5c33a-cdb1-11e4-9b94-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bc54d38-cdb1-11e4-bc4e-705681abff85"], ["organization_id", "8bc5c33a-cdb1-11e4-9b94-705681abff85"], ["created_at", "2015-03-18 20:58:36.588183"], ["updated_at", "2015-03-18 20:58:36.588183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '8bc54d38-cdb1-11e4-bc4e-705681abff85' LIMIT 1 [["organization_id", "8bc5c33a-cdb1-11e4-9b94-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$x2jBj4a5SnZe1TnVkOnGneqejSDYTjkOU79YGa8KhlyATWmwQhFPO"], ["created_at", "2015-03-18 20:58:36.595479"], ["updated_at", "2015-03-18 20:58:36.595479"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.598986"], ["updated_at", "2015-03-18 20:58:36.598986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bc75ee8-cdb1-11e4-b969-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bc7ea66-cdb1-11e4-b8cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bc75ee8-cdb1-11e4-b969-705681abff85"], ["organization_id", "8bc7ea66-cdb1-11e4-b8cc-705681abff85"], ["created_at", "2015-03-18 20:58:36.604723"], ["updated_at", "2015-03-18 20:58:36.604723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bc75ee8-cdb1-11e4-b969-705681abff85' LIMIT 1 [["organization_id", "8bc7ea66-cdb1-11e4-b8cc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$zNxMtBlnrBqKKjxtxp9dZ.AhGHNI4q/ma6p7XeOEZJR5Irkoz1ncm"], ["created_at", "2015-03-18 20:58:36.611857"], ["updated_at", "2015-03-18 20:58:36.611857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.615562"], ["updated_at", "2015-03-18 20:58:36.615562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bc9e5a0-cdb1-11e4-bebb-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bca7380-cdb1-11e4-827c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bc9e5a0-cdb1-11e4-bebb-705681abff85"], ["organization_id", "8bca7380-cdb1-11e4-827c-705681abff85"], ["created_at", "2015-03-18 20:58:36.619058"], ["updated_at", "2015-03-18 20:58:36.619058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bc9e5a0-cdb1-11e4-bebb-705681abff85' LIMIT 1 [["organization_id", "8bca7380-cdb1-11e4-827c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$CInsrLQHSj4ZpACNjOcRZunhh47QjnNLSEaNpJWiZxSLA8SVr2b/O"], ["created_at", "2015-03-18 20:58:36.626074"], ["updated_at", "2015-03-18 20:58:36.626074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$v4krWA3F7C6lvzIhiCuvvOtjLvMVEhysttqkmvJd3oGjWePc92tRC"], ["created_at", "2015-03-18 20:58:36.631004"], ["updated_at", "2015-03-18 20:58:36.631004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.634724"], ["updated_at", "2015-03-18 20:58:36.634724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bccd7f6-cdb1-11e4-9edf-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bcd5780-cdb1-11e4-8ee1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bccd7f6-cdb1-11e4-9edf-705681abff85"], ["organization_id", "8bcd5780-cdb1-11e4-8ee1-705681abff85"], ["created_at", "2015-03-18 20:58:36.637944"], ["updated_at", "2015-03-18 20:58:36.637944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bcc08f8-cdb1-11e4-a2ed-705681abff85' LIMIT 1 [["organization_id", "8bcd5780-cdb1-11e4-8ee1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$EwmwyHCqpsv0LzHsOVvpRusnMVN9vVeRnlUwCRoNesxz.i0yW6Pme"], ["created_at", "2015-03-18 20:58:36.645138"], ["updated_at", "2015-03-18 20:58:36.645138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$t8DUUg19Dmrn263Sx7NNf.fdE6d.xMxy.upHfHxOv2OVW0ly4mc36"], ["created_at", "2015-03-18 20:58:36.649729"], ["updated_at", "2015-03-18 20:58:36.649729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.652837"], ["updated_at", "2015-03-18 20:58:36.652837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bcfa292-cdb1-11e4-b925-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bd01b6e-cdb1-11e4-b6d7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bcfa292-cdb1-11e4-b925-705681abff85"], ["organization_id", "8bd01b6e-cdb1-11e4-b6d7-705681abff85"], ["created_at", "2015-03-18 20:58:36.655957"], ["updated_at", "2015-03-18 20:58:36.655957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '8bcef46e-cdb1-11e4-aa34-705681abff85' LIMIT 1 [["organization_id", "8bd01b6e-cdb1-11e4-b6d7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$SW/0GKWKurD/ZM525aZG4uXf4Kp02tTnAF/lYQu8n7OG3Y2TNT/we"], ["created_at", "2015-03-18 20:58:36.662805"], ["updated_at", "2015-03-18 20:58:36.662805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$G2Dxk4IBrthbjhHvnNQbwexXa/qawRGtnv3bo0cF2dQwJU.yVkuPK"], ["created_at", "2015-03-18 20:58:36.667765"], ["updated_at", "2015-03-18 20:58:36.667765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.671239"], ["updated_at", "2015-03-18 20:58:36.671239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bd26626-cdb1-11e4-b5dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bd2eaa6-cdb1-11e4-bb5a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bd26626-cdb1-11e4-b5dc-705681abff85"], ["organization_id", "8bd2eaa6-cdb1-11e4-bb5a-705681abff85"], ["created_at", "2015-03-18 20:58:36.675139"], ["updated_at", "2015-03-18 20:58:36.675139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bd1a722-cdb1-11e4-b419-705681abff85' LIMIT 1 [["organization_id", "8bd2eaa6-cdb1-11e4-bb5a-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$BxI4m6W90fUv/7mZlMaT3u5TWcQ.qVoBGoFJcgF.swX51qwoEc8Hq"], ["created_at", "2015-03-18 20:58:36.685236"], ["updated_at", "2015-03-18 20:58:36.685236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$M69XzWS6E9s3FC3a6RhF5eIvNBSsCzfhZUcltbvS1txa0AQ6cY7ZS"], ["created_at", "2015-03-18 20:58:36.689665"], ["updated_at", "2015-03-18 20:58:36.689665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.692859"], ["updated_at", "2015-03-18 20:58:36.692859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bd5ba56-cdb1-11e4-921b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bd6399a-cdb1-11e4-b9af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bd5ba56-cdb1-11e4-921b-705681abff85"], ["organization_id", "8bd6399a-cdb1-11e4-b9af-705681abff85"], ["created_at", "2015-03-18 20:58:36.696348"], ["updated_at", "2015-03-18 20:58:36.696348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bd51416-cdb1-11e4-907a-705681abff85' LIMIT 1 [["organization_id", "8bd6399a-cdb1-11e4-b9af-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$hCPyUqbl22m6jppfWsei3Oo/WLeRanm/Mv3YX6BsmoVom.pNBcWY2"], ["created_at", "2015-03-18 20:58:36.703575"], ["updated_at", "2015-03-18 20:58:36.703575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.706639"], ["updated_at", "2015-03-18 20:58:36.706639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bd7daac-cdb1-11e4-8394-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bd84fbe-cdb1-11e4-a89e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bd7daac-cdb1-11e4-8394-705681abff85"], ["organization_id", "8bd84fbe-cdb1-11e4-a89e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:36.710143"], ["updated_at", "2015-03-18 20:58:36.710143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bd7daac-cdb1-11e4-8394-705681abff85' LIMIT 1 [["organization_id", "8bd84fbe-cdb1-11e4-a89e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$.gOtKYBc4FFMoJH6tR5mSOnPbleRFaprTdSbrbNaMRjruas3mwFGW"], ["created_at", "2015-03-18 20:58:36.717598"], ["updated_at", "2015-03-18 20:58:36.717598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.721149"], ["updated_at", "2015-03-18 20:58:36.721149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bda0156-cdb1-11e4-ab2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bda8892-cdb1-11e4-8ef9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bda0156-cdb1-11e4-ab2a-705681abff85"], ["organization_id", "8bda8892-cdb1-11e4-8ef9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:36.724562"], ["updated_at", "2015-03-18 20:58:36.724562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '8bda0156-cdb1-11e4-ab2a-705681abff85' LIMIT 1 [["organization_id", "8bda8892-cdb1-11e4-8ef9-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$vuyn31FaTb1p6Rn1dWnP8.hcqY9rGwcxd790nwhEunxBbvyiDzu/O"], ["created_at", "2015-03-18 20:58:36.732291"], ["updated_at", "2015-03-18 20:58:36.732291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.735894"], ["updated_at", "2015-03-18 20:58:36.735894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bdc4ac4-cdb1-11e4-9556-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bdcc6d4-cdb1-11e4-93db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bdc4ac4-cdb1-11e4-9556-705681abff85"], ["organization_id", "8bdcc6d4-cdb1-11e4-93db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:36.739554"], ["updated_at", "2015-03-18 20:58:36.739554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bdc4ac4-cdb1-11e4-9556-705681abff85' LIMIT 1 [["organization_id", "8bdcc6d4-cdb1-11e4-93db-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$dpoVpEN7g8JgnLSYPppKA.pQV0dAcubUA/Ya9dCDCfa.9L3x6r31y"], ["created_at", "2015-03-18 20:58:36.746708"], ["updated_at", "2015-03-18 20:58:36.746708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.750218"], ["updated_at", "2015-03-18 20:58:36.750218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bde73c6-cdb1-11e4-9c96-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bdef9c2-cdb1-11e4-b9ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bde73c6-cdb1-11e4-9c96-705681abff85"], ["organization_id", "8bdef9c2-cdb1-11e4-b9ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:36.753679"], ["updated_at", "2015-03-18 20:58:36.753679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bde73c6-cdb1-11e4-9c96-705681abff85' LIMIT 1 [["organization_id", "8bdef9c2-cdb1-11e4-b9ab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$tBjhE2BDrMu1gkO8POO5be.lNnIV9l1fNorHakMULDnKUMB26V.C."], ["created_at", "2015-03-18 20:58:36.760823"], ["updated_at", "2015-03-18 20:58:36.760823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.764285"], ["updated_at", "2015-03-18 20:58:36.764285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8be09818-cdb1-11e4-b3a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '8be11fa4-cdb1-11e4-b262-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8be09818-cdb1-11e4-b3a1-705681abff85"], ["organization_id", "8be11fa4-cdb1-11e4-b262-705681abff85"], ["created_at", "2015-03-18 20:58:36.768021"], ["updated_at", "2015-03-18 20:58:36.768021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8be09818-cdb1-11e4-b3a1-705681abff85' LIMIT 1 [["organization_id", "8be11fa4-cdb1-11e4-b262-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$kN/2kjTggievNZq5WDF6xuBymD6ILPveZ6UgFMV3FvvlBj9zQqGna"], ["created_at", "2015-03-18 20:58:36.775150"], ["updated_at", "2015-03-18 20:58:36.775150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.778267"], ["updated_at", "2015-03-18 20:58:36.778267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8be2c73c-cdb1-11e4-bd6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8be33dfc-cdb1-11e4-942b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8be2c73c-cdb1-11e4-bd6b-705681abff85"], ["organization_id", "8be33dfc-cdb1-11e4-942b-705681abff85"], ["created_at", "2015-03-18 20:58:36.782096"], ["updated_at", "2015-03-18 20:58:36.782096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (87.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$N/Jjz9bMshanan3aBt0OjOM4hy9fOa811hq/KOSmw55fx8gAu8thW"], ["created_at", "2015-03-18 20:58:36.788533"], ["updated_at", "2015-03-18 20:58:36.788533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.880921"], ["updated_at", "2015-03-18 20:58:36.880921"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8be70a18-cdb1-11e4-9879-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bf2fcc4-cdb1-11e4-acf7-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8be70a18-cdb1-11e4-9879-705681abff85"], ["organization_id", "8bf2fcc4-cdb1-11e4-acf7-705681abff85"], ["created_at", "2015-03-18 20:58:36.887219"], ["updated_at", "2015-03-18 20:58:36.887219"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '8be70a18-cdb1-11e4-9879-705681abff85' LIMIT 1 [["organization_id", "8bf2fcc4-cdb1-11e4-acf7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$.p7KkP7eASOutLelJeqZqOxf/4VcATPDI6oXv5.HplaO3EOy/Z3nK"], ["created_at", "2015-03-18 20:58:36.900429"], ["updated_at", "2015-03-18 20:58:36.900429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.904684"], ["updated_at", "2015-03-18 20:58:36.904684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bf5ed4e-cdb1-11e4-907b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bf69276-cdb1-11e4-8eb3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bf5ed4e-cdb1-11e4-907b-705681abff85"], ["organization_id", "8bf69276-cdb1-11e4-8eb3-705681abff85"], ["created_at", "2015-03-18 20:58:36.909159"], ["updated_at", "2015-03-18 20:58:36.909159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bf5ed4e-cdb1-11e4-907b-705681abff85' LIMIT 1 [["organization_id", "8bf69276-cdb1-11e4-8eb3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$FKipa5/1IO5hEzY38S9QMeJIJw3BBWz1ycSLUaPm6s0YaUZQcdRNy"], ["created_at", "2015-03-18 20:58:36.917019"], ["updated_at", "2015-03-18 20:58:36.917019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.920668"], ["updated_at", "2015-03-18 20:58:36.920668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bf870be-cdb1-11e4-93db-705681abff85' AND "clubhouse_memberships"."organization_id" = '8bf900f6-cdb1-11e4-9809-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8bf870be-cdb1-11e4-93db-705681abff85"], ["organization_id", "8bf900f6-cdb1-11e4-9809-705681abff85"], ["created_at", "2015-03-18 20:58:36.924871"], ["updated_at", "2015-03-18 20:58:36.924871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$rPy//M0qTzHkt7ZHXZsHzudpLJUuWYXXes17CiHoaz7gkZqNa7NdO"], ["created_at", "2015-03-18 20:58:36.932199"], ["updated_at", "2015-03-18 20:58:36.932199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.937100"], ["updated_at", "2015-03-18 20:58:36.937100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bfad1a6-cdb1-11e4-a83b-705681abff85' LIMIT 1 [["organization_id", "8bfb80f6-cdb1-11e4-bd05-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$3WJAztVZvv5Ffeo6jg1GcuWCdKT3v/6EPdzBQQakhdBbFgs2D42sC"], ["created_at", "2015-03-18 20:58:36.944664"], ["updated_at", "2015-03-18 20:58:36.944664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.948343"], ["updated_at", "2015-03-18 20:58:36.948343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$loTrgD2Wp7fEvPNoV343cey5hauk5LtgOs89ShfnyReTDznSsoe4G"], ["created_at", "2015-03-18 20:58:36.954351"], ["updated_at", "2015-03-18 20:58:36.954351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.958440"], ["updated_at", "2015-03-18 20:58:36.958440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '8bfe2112-cdb1-11e4-b8ea-705681abff85' LIMIT 1 [["organization_id", "8bfeca68-cdb1-11e4-ab2e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$/1rd4LV3IGiFuTZLa5NsLOFv1tBksthxVHwK90F62NQu.eUCiUAyG"], ["created_at", "2015-03-18 20:58:36.966387"], ["updated_at", "2015-03-18 20:58:36.966387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.978406"], ["updated_at", "2015-03-18 20:58:36.978406"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c011a48-cdb1-11e4-869e-705681abff85' LIMIT 1 [["organization_id", "8c01eae0-cdb1-11e4-bce4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$igTj7BKVvCP2I.zd2t7xoe1XQ3t6AWISt90bsxfTocHtTpOdJyhZO"], ["created_at", "2015-03-18 20:58:36.990900"], ["updated_at", "2015-03-18 20:58:36.990900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:36.994450"], ["updated_at", "2015-03-18 20:58:36.994450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$lPRBGnS2iZ0pAb3t8Cy1KemiydkR3ziqXa/1inWysXkfROxF9YmRq"], ["created_at", "2015-03-18 20:58:37.000628"], ["updated_at", "2015-03-18 20:58:37.000628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.004115"], ["updated_at", "2015-03-18 20:58:37.004115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c053380-cdb1-11e4-a0a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c05b9a4-cdb1-11e4-bdb8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c053380-cdb1-11e4-a0a4-705681abff85"], ["organization_id", "8c05b9a4-cdb1-11e4-bdb8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:37.007783"], ["updated_at", "2015-03-18 20:58:37.007783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c053380-cdb1-11e4-a0a4-705681abff85' LIMIT 1 [["organization_id", "8c05b9a4-cdb1-11e4-bdb8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$PXYJgRDlHYZhGz1HJHOSyuadmlK2gXxgMBa1bMJzdeYLbLpXm.GIa"], ["created_at", "2015-03-18 20:58:37.015353"], ["updated_at", "2015-03-18 20:58:37.015353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.018815"], ["updated_at", "2015-03-18 20:58:37.018815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c0771d6-cdb1-11e4-a5ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c07f53e-cdb1-11e4-9bab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c0771d6-cdb1-11e4-a5ed-705681abff85"], ["organization_id", "8c07f53e-cdb1-11e4-9bab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:37.022995"], ["updated_at", "2015-03-18 20:58:37.022995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$cpPCAphttZ0Pl4kfqiyAq.GsHVHo27R6ulCQbwaA4qafj/bJaQixO"], ["created_at", "2015-03-18 20:58:37.029600"], ["updated_at", "2015-03-18 20:58:37.029600"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.034126"], ["updated_at", "2015-03-18 20:58:37.034126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c09a2bc-cdb1-11e4-bd25-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c0a4faa-cdb1-11e4-a73b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c09a2bc-cdb1-11e4-bd25-705681abff85"], ["organization_id", "8c0a4faa-cdb1-11e4-a73b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:37.037745"], ["updated_at", "2015-03-18 20:58:37.037745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '8c09a2bc-cdb1-11e4-bd25-705681abff85' LIMIT 1 [["organization_id", "8c0a4faa-cdb1-11e4-a73b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$KrnCSNjthUiIhWudHbaO4./UlJLfB3XRxDA1HYXofxlOsDtKMbfyq"], ["created_at", "2015-03-18 20:58:37.045392"], ["updated_at", "2015-03-18 20:58:37.045392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.048462"], ["updated_at", "2015-03-18 20:58:37.048462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c0c030e-cdb1-11e4-b125-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c0c79b0-cdb1-11e4-8649-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c0c030e-cdb1-11e4-b125-705681abff85"], ["organization_id", "8c0c79b0-cdb1-11e4-8649-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:37.051845"], ["updated_at", "2015-03-18 20:58:37.051845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c0c030e-cdb1-11e4-b125-705681abff85' LIMIT 1 [["organization_id", "8c0c79b0-cdb1-11e4-8649-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$04.0Iff8seigX28jkOJYFOguoxyNNKT4vEf6wSVW4bdQjYdYVxbgu"], ["created_at", "2015-03-18 20:58:37.058524"], ["updated_at", "2015-03-18 20:58:37.058524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.061544"], ["updated_at", "2015-03-18 20:58:37.061544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c0e038e-cdb1-11e4-9d95-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c0e779c-cdb1-11e4-9b0a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c0e038e-cdb1-11e4-9d95-705681abff85"], ["organization_id", "8c0e779c-cdb1-11e4-9b0a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:37.065026"], ["updated_at", "2015-03-18 20:58:37.065026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$nFP4L3rN8fS1/08mCSM0Teg7ceKd4Ut8xKYLaXRFKvlNLFN4JgAYS"], ["created_at", "2015-03-18 20:58:37.071664"], ["updated_at", "2015-03-18 20:58:37.071664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.074819"], ["updated_at", "2015-03-18 20:58:37.074819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c100832-cdb1-11e4-8bc4-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c108082-cdb1-11e4-8c6c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c100832-cdb1-11e4-8bc4-705681abff85"], ["organization_id", "8c108082-cdb1-11e4-8c6c-705681abff85"], ["created_at", "2015-03-18 20:58:37.078090"], ["updated_at", "2015-03-18 20:58:37.078090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8c108082-cdb1-11e4-8c6c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "8c108082-cdb1-11e4-8c6c-705681abff85"], ["created_at", "2015-03-18 20:58:37.089279"], ["updated_at", "2015-03-18 20:58:37.089279"], ["token", "NDRGeAYtkamPZoyLEG2z_yBksH6kY7nKz7qx_gvGeAA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c100832-cdb1-11e4-8bc4-705681abff85' LIMIT 1 [["organization_id", "8c108082-cdb1-11e4-8c6c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$z9PdH2BUIB/NeFtpyLkHTeKv3pPFUfVjw3MmM8Rk1YUxpxuCWkTy."], ["created_at", "2015-03-18 20:58:37.097045"], ["updated_at", "2015-03-18 20:58:37.097045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.100350"], ["updated_at", "2015-03-18 20:58:37.100350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c13e88a-cdb1-11e4-acf1-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c1464f4-cdb1-11e4-baf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c13e88a-cdb1-11e4-acf1-705681abff85"], ["organization_id", "8c1464f4-cdb1-11e4-baf3-705681abff85"], ["created_at", "2015-03-18 20:58:37.103771"], ["updated_at", "2015-03-18 20:58:37.103771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '8c1464f4-cdb1-11e4-baf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "8c1464f4-cdb1-11e4-baf3-705681abff85"], ["created_at", "2015-03-18 20:58:37.107357"], ["updated_at", "2015-03-18 20:58:37.107357"], ["token", "c2w3oav3Z2TLWAfJVezv0ALSlPKq03Sfhs0puQL4uXY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c13e88a-cdb1-11e4-acf1-705681abff85' LIMIT 1 [["organization_id", "8c1464f4-cdb1-11e4-baf3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$CCgivVvbM/ZgLuK6giVZWuayQkDoW2odqvwy8IhLWdhK14dIuSxUO"], ["created_at", "2015-03-18 20:58:37.114958"], ["updated_at", "2015-03-18 20:58:37.114958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.118442"], ["updated_at", "2015-03-18 20:58:37.118442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c16a1ce-cdb1-11e4-aec9-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c172a2c-cdb1-11e4-a2b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c16a1ce-cdb1-11e4-aec9-705681abff85"], ["organization_id", "8c172a2c-cdb1-11e4-a2b5-705681abff85"], ["created_at", "2015-03-18 20:58:37.121764"], ["updated_at", "2015-03-18 20:58:37.121764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '8c172a2c-cdb1-11e4-a2b5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "8c172a2c-cdb1-11e4-a2b5-705681abff85"], ["created_at", "2015-03-18 20:58:37.125284"], ["updated_at", "2015-03-18 20:58:37.125284"], ["token", "7u5Ks1RqH5prgIl01zy6FBdJfmc99XAyxJUbjzV9T5Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c16a1ce-cdb1-11e4-aec9-705681abff85' LIMIT 1 [["organization_id", "8c172a2c-cdb1-11e4-a2b5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$NYd.aOTmKeRP9TQfUm/ffuMxhPEGnHaN/T426xKHsaOF..B7qjQcC"], ["created_at", "2015-03-18 20:58:37.132579"], ["updated_at", "2015-03-18 20:58:37.132579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.137267"], ["updated_at", "2015-03-18 20:58:37.137267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c19708e-cdb1-11e4-9c30-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c1a0a26-cdb1-11e4-9aaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c19708e-cdb1-11e4-9c30-705681abff85"], ["organization_id", "8c1a0a26-cdb1-11e4-9aaa-705681abff85"], ["created_at", "2015-03-18 20:58:37.140540"], ["updated_at", "2015-03-18 20:58:37.140540"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '8c1a0a26-cdb1-11e4-9aaa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "8c1a0a26-cdb1-11e4-9aaa-705681abff85"], ["created_at", "2015-03-18 20:58:37.144633"], ["updated_at", "2015-03-18 20:58:37.144633"], ["token", "Ca1GwQsxqXbAklv5egeAtYgQkMOt5rJFUZ_d1smp-6Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c19708e-cdb1-11e4-9c30-705681abff85' LIMIT 1 [["organization_id", "8c1a0a26-cdb1-11e4-9aaa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$/v3Ec.AdMwn9/q1tqGqVE.7eq9La3Raecflinzr.D5K/T8/iV1P2q"], ["created_at", "2015-03-18 20:58:37.152404"], ["updated_at", "2015-03-18 20:58:37.152404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.155491"], ["updated_at", "2015-03-18 20:58:37.155491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '8c1ccd4c-cdb1-11e4-9b45-705681abff85') LIMIT 1 SQL (6.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "8c1ccd4c-cdb1-11e4-9b45-705681abff85"], ["created_at", "2015-03-18 20:58:37.158830"], ["updated_at", "2015-03-18 20:58:37.158830"], ["token", "mgry34_NWPjypGD9qMfngmX5mTeXgKldE0MJBHcf8uQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c1c56a0-cdb1-11e4-a2dd-705681abff85' LIMIT 1 [["organization_id", "8c1ccd4c-cdb1-11e4-9b45-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$LUCaEwlXkw6ncz0gUWRzKuBBPzy14I/jLTG1hPZ41EZjJAQJeL/Qy"], ["created_at", "2015-03-18 20:58:37.173679"], ["updated_at", "2015-03-18 20:58:37.173679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.177051"], ["updated_at", "2015-03-18 20:58:37.177051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '8c2017ea-cdb1-11e4-b2ea-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "8c2017ea-cdb1-11e4-b2ea-705681abff85"], ["created_at", "2015-03-18 20:58:37.180492"], ["updated_at", "2015-03-18 20:58:37.180492"], ["token", "hTYk8zWuBMgm_tQrHH6KW0Ev7vVUy8CE-F6HA6NdUQc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c1f9a04-cdb1-11e4-a932-705681abff85' LIMIT 1 [["organization_id", "8c2017ea-cdb1-11e4-b2ea-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$wkSE23kc8TiT2ktbAlchfeoZo86jiIuXgRT9mnaOYTzl2eZ3L21Nq"], ["created_at", "2015-03-18 20:58:37.190955"], ["updated_at", "2015-03-18 20:58:37.190955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.194551"], ["updated_at", "2015-03-18 20:58:37.194551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '8c22c864-cdb1-11e4-9afd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "8c22c864-cdb1-11e4-9afd-705681abff85"], ["created_at", "2015-03-18 20:58:37.198437"], ["updated_at", "2015-03-18 20:58:37.198437"], ["token", "IH00gbcgGrIf9Cy4G_MNSSIusUe_nElIP8x64aWcwbE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c223f98-cdb1-11e4-a8e1-705681abff85' LIMIT 1 [["organization_id", "8c22c864-cdb1-11e4-9afd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$7BLJKzSj6yXXI.jIMvaKpOiZDVtj9KRy3J6VvwwQWiE4zpze35LX6"], ["created_at", "2015-03-18 20:58:37.206125"], ["updated_at", "2015-03-18 20:58:37.206125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.209249"], ["updated_at", "2015-03-18 20:58:37.209249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '8c2500f2-cdb1-11e4-b42b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "8c2500f2-cdb1-11e4-b42b-705681abff85"], ["created_at", "2015-03-18 20:58:37.212463"], ["updated_at", "2015-03-18 20:58:37.212463"], ["token", "twJlbDQX5HbqPJXusqB_Mo4nLB3Pu3F_Bae8eTjgqaI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c2489ce-cdb1-11e4-8948-705681abff85' LIMIT 1 [["organization_id", "8c2500f2-cdb1-11e4-b42b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$nPBF7IC9fJxZzGo26WoAVu0R6Jz968pq2tebCYKHJRWPBLPC6ushi"], ["created_at", "2015-03-18 20:58:37.220614"], ["updated_at", "2015-03-18 20:58:37.220614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.223799"], ["updated_at", "2015-03-18 20:58:37.223799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c26c1d0-cdb1-11e4-b448-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c27396c-cdb1-11e4-b4a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c26c1d0-cdb1-11e4-b448-705681abff85"], ["organization_id", "8c27396c-cdb1-11e4-b4a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:37.227407"], ["updated_at", "2015-03-18 20:58:37.227407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '8c27396c-cdb1-11e4-b4a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "8c27396c-cdb1-11e4-b4a6-705681abff85"], ["created_at", "2015-03-18 20:58:37.231043"], ["updated_at", "2015-03-18 20:58:37.231043"], ["token", "_8wff4bpDnOnMFk71S5k2-nx9tZ2EqsZxEZmoSZDii4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c26c1d0-cdb1-11e4-b448-705681abff85' LIMIT 1 [["organization_id", "8c27396c-cdb1-11e4-b4a6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$/yF6VpVFZqeTWSv3Vv60ee7PVDU46JUKGeJHxZM7BOQxp3WcarWo6"], ["created_at", "2015-03-18 20:58:37.239457"], ["updated_at", "2015-03-18 20:58:37.239457"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.242825"], ["updated_at", "2015-03-18 20:58:37.242825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c29a184-cdb1-11e4-bd1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c2a2186-cdb1-11e4-ab64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c29a184-cdb1-11e4-bd1e-705681abff85"], ["organization_id", "8c2a2186-cdb1-11e4-ab64-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:37.246380"], ["updated_at", "2015-03-18 20:58:37.246380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '8c2a2186-cdb1-11e4-ab64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "8c2a2186-cdb1-11e4-ab64-705681abff85"], ["created_at", "2015-03-18 20:58:37.250047"], ["updated_at", "2015-03-18 20:58:37.250047"], ["token", "dJh1atf7fFLK4nAaSQUsd0xPwXs5VkeLQAnMup_3d5g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c29a184-cdb1-11e4-bd1e-705681abff85' LIMIT 1 [["organization_id", "8c2a2186-cdb1-11e4-ab64-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$HZ4xgGJY/Zs86JXv10edyO589lJFuZ1NfIosmOi1oWYx86eui2zXi"], ["created_at", "2015-03-18 20:58:37.257413"], ["updated_at", "2015-03-18 20:58:37.257413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.260799"], ["updated_at", "2015-03-18 20:58:37.260799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c2c6662-cdb1-11e4-9971-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c2ce0d8-cdb1-11e4-bb38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c2c6662-cdb1-11e4-9971-705681abff85"], ["organization_id", "8c2ce0d8-cdb1-11e4-bb38-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:37.264018"], ["updated_at", "2015-03-18 20:58:37.264018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '8c2ce0d8-cdb1-11e4-bb38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "8c2ce0d8-cdb1-11e4-bb38-705681abff85"], ["created_at", "2015-03-18 20:58:37.267674"], ["updated_at", "2015-03-18 20:58:37.267674"], ["token", "cuxCBD7myBSjr4ny08Qy0ZjZbuOr2ICifPnITeCazo8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c2c6662-cdb1-11e4-9971-705681abff85' LIMIT 1 [["organization_id", "8c2ce0d8-cdb1-11e4-bb38-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$SxAfSq.UJyGq14dJtDDyhOszh69wpsqLSLV6je9jg7DTsYW2ed/ZO"], ["created_at", "2015-03-18 20:58:37.276445"], ["updated_at", "2015-03-18 20:58:37.276445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:37.279736"], ["updated_at", "2015-03-18 20:58:37.279736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c2f47b0-cdb1-11e4-952d-705681abff85' AND "clubhouse_memberships"."organization_id" = '8c2fc3a2-cdb1-11e4-8300-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c2f47b0-cdb1-11e4-952d-705681abff85"], ["organization_id", "8c2fc3a2-cdb1-11e4-8300-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:37.283321"], ["updated_at", "2015-03-18 20:58:37.283321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '8c2fc3a2-cdb1-11e4-8300-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "8c2fc3a2-cdb1-11e4-8300-705681abff85"], ["created_at", "2015-03-18 20:58:37.287808"], ["updated_at", "2015-03-18 20:58:37.287808"], ["token", "Lbaz3zKlkHU-yFBYp_9CN6oIQ0EjKl_sH73AKoF54LY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c2f47b0-cdb1-11e4-952d-705681abff85' LIMIT 1 [["organization_id", "8c2fc3a2-cdb1-11e4-8300-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (23.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$SrYy4PdIxDYZNFmExG8RIuSSypl.yY3hyTO/pbJ2TfVM5.ivdA.NG"], ["created_at", "2015-03-18 20:58:54.023106"], ["updated_at", "2015-03-18 20:58:54.023106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.055278"], ["updated_at", "2015-03-18 20:58:54.055278"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '962e3532-cdb1-11e4-ac9d-705681abff85' LIMIT 1 [["organization_id", "962f8c5c-cdb1-11e4-bb52-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$lrkGj.DuqGiRdk0t5zsHi.oD050zm75kKxwltGDcasqg2fVJi6iUq"], ["created_at", "2015-03-18 20:58:54.083390"], ["updated_at", "2015-03-18 20:58:54.083390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.086951"], ["updated_at", "2015-03-18 20:58:54.086951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$HYv8PKR3j7H5EPvqE5ZCHOnFjwY7f8bDdezZegrRxBx9AsfzTEjWe"], ["created_at", "2015-03-18 20:58:54.092893"], ["updated_at", "2015-03-18 20:58:54.092893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.096334"], ["updated_at", "2015-03-18 20:58:54.096334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '96354412-cdb1-11e4-a68c-705681abff85' LIMIT 1 [["organization_id", "9635c716-cdb1-11e4-bdb8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$L13wK7UJ4QlwnAoXLkruO.VKTBOvie1oB/2/uS7Ovg2jahvEHsd5q"], ["created_at", "2015-03-18 20:58:54.103143"], ["updated_at", "2015-03-18 20:58:54.103143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.106162"], ["updated_at", "2015-03-18 20:58:54.106162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$aQ1O8fjJ/taD7QxErj5Y4urazOLtS4EO8pFiIdE95n5OjRyWVIf4O"], ["created_at", "2015-03-18 20:58:54.111656"], ["updated_at", "2015-03-18 20:58:54.111656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.115096"], ["updated_at", "2015-03-18 20:58:54.115096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '96382088-cdb1-11e4-bfd0-705681abff85' LIMIT 1 [["organization_id", "9638a968-cdb1-11e4-bbeb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$QMwfxR8/B2K7ubyVQgRpX.kcCUQTSST94PyKeI1XkH1WRvnPaGiFa"], ["created_at", "2015-03-18 20:58:54.123298"], ["updated_at", "2015-03-18 20:58:54.123298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.126765"], ["updated_at", "2015-03-18 20:58:54.126765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9639ebde-cdb1-11e4-9a79-705681abff85' AND "clubhouse_memberships"."organization_id" = '963a6dc0-cdb1-11e4-a84f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9639ebde-cdb1-11e4-9a79-705681abff85"], ["organization_id", "963a6dc0-cdb1-11e4-a84f-705681abff85"], ["created_at", "2015-03-18 20:58:54.138660"], ["updated_at", "2015-03-18 20:58:54.138660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9639ebde-cdb1-11e4-9a79-705681abff85' LIMIT 1 [["organization_id", "963a6dc0-cdb1-11e4-a84f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$QINkn8T8h24mwa7e.ItZYekmgWN6EjEKbA6uADKH/1.6Jfa7J9aCa"], ["created_at", "2015-03-18 20:58:54.146164"], ["updated_at", "2015-03-18 20:58:54.146164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.149370"], ["updated_at", "2015-03-18 20:58:54.149370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '963d641c-cdb1-11e4-b0bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '963ddeba-cdb1-11e4-9bf9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "963d641c-cdb1-11e4-b0bd-705681abff85"], ["organization_id", "963ddeba-cdb1-11e4-9bf9-705681abff85"], ["created_at", "2015-03-18 20:58:54.152603"], ["updated_at", "2015-03-18 20:58:54.152603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$5bHwkQ.XkvlbXZSV0mTyiOechwhH0TY4YKFZlmCHp5RQP2tGe0TRG"], ["created_at", "2015-03-18 20:58:54.158766"], ["updated_at", "2015-03-18 20:58:54.158766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.161904"], ["updated_at", "2015-03-18 20:58:54.161904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '963f5056-cdb1-11e4-a2b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '963fc7fc-cdb1-11e4-8a90-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "963f5056-cdb1-11e4-a2b0-705681abff85"], ["organization_id", "963fc7fc-cdb1-11e4-8a90-705681abff85"], ["created_at", "2015-03-18 20:58:54.165102"], ["updated_at", "2015-03-18 20:58:54.165102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '963f5056-cdb1-11e4-a2b0-705681abff85' LIMIT 1 [["organization_id", "963fc7fc-cdb1-11e4-8a90-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$zEUvBVVE0ulgOdpV5QpQMuwD3E3mMeoRS.wG6Sk4TRauXsYuttn12"], ["created_at", "2015-03-18 20:58:54.172746"], ["updated_at", "2015-03-18 20:58:54.172746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.175909"], ["updated_at", "2015-03-18 20:58:54.175909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9641735e-cdb1-11e4-8c4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '9641ea3c-cdb1-11e4-886a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9641735e-cdb1-11e4-8c4c-705681abff85"], ["organization_id", "9641ea3c-cdb1-11e4-886a-705681abff85"], ["created_at", "2015-03-18 20:58:54.179226"], ["updated_at", "2015-03-18 20:58:54.179226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ZvKpGG6u0EawUvw/i0pJKu.xZfHMta4Jggx0wxPBFGfrSZC/cI0ci"], ["created_at", "2015-03-18 20:58:54.185119"], ["updated_at", "2015-03-18 20:58:54.185119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.188352"], ["updated_at", "2015-03-18 20:58:54.188352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '964355de-cdb1-11e4-8f1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '9643d1a8-cdb1-11e4-a81f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "964355de-cdb1-11e4-8f1a-705681abff85"], ["organization_id", "9643d1a8-cdb1-11e4-a81f-705681abff85"], ["created_at", "2015-03-18 20:58:54.191549"], ["updated_at", "2015-03-18 20:58:54.191549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '964355de-cdb1-11e4-8f1a-705681abff85' LIMIT 1 [["organization_id", "9643d1a8-cdb1-11e4-a81f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$3U2aAFz2RS9xTWX5VL9SSOVIA.fXTDccFWfWtZ8BxtdE0QkUA7vHO"], ["created_at", "2015-03-18 20:58:54.198563"], ["updated_at", "2015-03-18 20:58:54.198563"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.201800"], ["updated_at", "2015-03-18 20:58:54.201800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96456090-cdb1-11e4-89a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '9645e11e-cdb1-11e4-9bef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "96456090-cdb1-11e4-89a2-705681abff85"], ["organization_id", "9645e11e-cdb1-11e4-9bef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.206127"], ["updated_at", "2015-03-18 20:58:54.206127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '96456090-cdb1-11e4-89a2-705681abff85' LIMIT 1 [["organization_id", "9645e11e-cdb1-11e4-9bef-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$qUki3NOj2Efa3VwKfmrUm.uWULxtmhKC0iUQxK/Z0r3Gzo7XEecXK"], ["created_at", "2015-03-18 20:58:54.213136"], ["updated_at", "2015-03-18 20:58:54.213136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.216208"], ["updated_at", "2015-03-18 20:58:54.216208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '964799f0-cdb1-11e4-aa39-705681abff85' AND "clubhouse_memberships"."organization_id" = '96480fac-cdb1-11e4-a346-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "964799f0-cdb1-11e4-aa39-705681abff85"], ["organization_id", "96480fac-cdb1-11e4-a346-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.219646"], ["updated_at", "2015-03-18 20:58:54.219646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$e86UdmY8XmKMJGSlWQ7RwuDAYJlHtUH1Msanu.ddNB1sm5eE8AkSO"], ["created_at", "2015-03-18 20:58:54.226215"], ["updated_at", "2015-03-18 20:58:54.226215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.229776"], ["updated_at", "2015-03-18 20:58:54.229776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96499ffc-cdb1-11e4-8415-705681abff85' AND "clubhouse_memberships"."organization_id" = '964a2c38-cdb1-11e4-941f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "96499ffc-cdb1-11e4-8415-705681abff85"], ["organization_id", "964a2c38-cdb1-11e4-941f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.233412"], ["updated_at", "2015-03-18 20:58:54.233412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '96499ffc-cdb1-11e4-8415-705681abff85' LIMIT 1 [["organization_id", "964a2c38-cdb1-11e4-941f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$pcBFUUcp3CIdKqWc2JAW1.o6BdUvBHnD1TPP1xEnp737UPb3HZspC"], ["created_at", "2015-03-18 20:58:54.240024"], ["updated_at", "2015-03-18 20:58:54.240024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.243066"], ["updated_at", "2015-03-18 20:58:54.243066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '964bb56c-cdb1-11e4-97bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '964c28da-cdb1-11e4-9c78-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "964bb56c-cdb1-11e4-97bd-705681abff85"], ["organization_id", "964c28da-cdb1-11e4-9c78-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.246157"], ["updated_at", "2015-03-18 20:58:54.246157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$33VViUw2enJN6rFlZ7ekxOhlTAzjVSXN5g9QvO22SaWU8bKim/SRq"], ["created_at", "2015-03-18 20:58:54.252484"], ["updated_at", "2015-03-18 20:58:54.252484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.256498"], ["updated_at", "2015-03-18 20:58:54.256498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '964d9cb0-cdb1-11e4-83a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '964e40ac-cdb1-11e4-802e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "964d9cb0-cdb1-11e4-83a3-705681abff85"], ["organization_id", "964e40ac-cdb1-11e4-802e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.260163"], ["updated_at", "2015-03-18 20:58:54.260163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '964d9cb0-cdb1-11e4-83a3-705681abff85' LIMIT 1 [["organization_id", "964e40ac-cdb1-11e4-802e-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$SfLGYKG/gGKycZKCkNSTZ.GmobEdqwWvce3ecjydmxw5fqiG0/iJi"], ["created_at", "2015-03-18 20:58:54.267583"], ["updated_at", "2015-03-18 20:58:54.267583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$t58.DLD49gcWjInrSNum9.cyynappr/bP4p1CoFyp3wGhiAKOlZyu"], ["created_at", "2015-03-18 20:58:54.272766"], ["updated_at", "2015-03-18 20:58:54.272766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.276323"], ["updated_at", "2015-03-18 20:58:54.276323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9650b9e0-cdb1-11e4-8809-705681abff85' AND "clubhouse_memberships"."organization_id" = '96513ece-cdb1-11e4-bc1b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9650b9e0-cdb1-11e4-8809-705681abff85"], ["organization_id", "96513ece-cdb1-11e4-bc1b-705681abff85"], ["created_at", "2015-03-18 20:58:54.279616"], ["updated_at", "2015-03-18 20:58:54.279616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '964fea42-cdb1-11e4-a608-705681abff85' LIMIT 1 [["organization_id", "96513ece-cdb1-11e4-bc1b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$GqSQ0C.oAHcrmBeW8zzfDeqroRo3ufW6cN/63mbVZ2htrQak82awC"], ["created_at", "2015-03-18 20:58:54.287096"], ["updated_at", "2015-03-18 20:58:54.287096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$d9e5p4.jE6OSeUedLcInu.v4B83Hmwkc8gW1aGeevBnbVMgTwXMDC"], ["created_at", "2015-03-18 20:58:54.291660"], ["updated_at", "2015-03-18 20:58:54.291660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.294843"], ["updated_at", "2015-03-18 20:58:54.294843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96539494-cdb1-11e4-97b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '96541158-cdb1-11e4-a4f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96539494-cdb1-11e4-97b3-705681abff85"], ["organization_id", "96541158-cdb1-11e4-a4f3-705681abff85"], ["created_at", "2015-03-18 20:58:54.297994"], ["updated_at", "2015-03-18 20:58:54.297994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9652e558-cdb1-11e4-a7e6-705681abff85' LIMIT 1 [["organization_id", "96541158-cdb1-11e4-a4f3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$sHqIrPBrrasTLuHd8gz6MuJ4s6csKi47WvtnMCuYEfpR9q24k.tkO"], ["created_at", "2015-03-18 20:58:54.304833"], ["updated_at", "2015-03-18 20:58:54.304833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$LdnCICyiCkdKet5IRxP2B.dfUOdFeeCXfuv4QYZ0xuYJPDAmFR9M6"], ["created_at", "2015-03-18 20:58:54.309608"], ["updated_at", "2015-03-18 20:58:54.309608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.312853"], ["updated_at", "2015-03-18 20:58:54.312853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96565378-cdb1-11e4-951d-705681abff85' AND "clubhouse_memberships"."organization_id" = '9656d0be-cdb1-11e4-9267-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96565378-cdb1-11e4-951d-705681abff85"], ["organization_id", "9656d0be-cdb1-11e4-9267-705681abff85"], ["created_at", "2015-03-18 20:58:54.316240"], ["updated_at", "2015-03-18 20:58:54.316240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '96559cb2-cdb1-11e4-b5aa-705681abff85' LIMIT 1 [["organization_id", "9656d0be-cdb1-11e4-9267-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$WZDo.5DJvOPj8XDTqNgVQODbOmVoGZtn3X/O4KLfc8aR3R9WQKZeG"], ["created_at", "2015-03-18 20:58:54.326539"], ["updated_at", "2015-03-18 20:58:54.326539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$YUEphMED2PlFbeIaSDsrDeNVqzoeYvRnhyr9yMw8isfyvX.yYdsW."], ["created_at", "2015-03-18 20:58:54.331571"], ["updated_at", "2015-03-18 20:58:54.331571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.335011"], ["updated_at", "2015-03-18 20:58:54.335011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9659b39c-cdb1-11e4-935f-705681abff85' AND "clubhouse_memberships"."organization_id" = '965a31b4-cdb1-11e4-ad20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9659b39c-cdb1-11e4-935f-705681abff85"], ["organization_id", "965a31b4-cdb1-11e4-ad20-705681abff85"], ["created_at", "2015-03-18 20:58:54.338252"], ["updated_at", "2015-03-18 20:58:54.338252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9658f650-cdb1-11e4-a9c0-705681abff85' LIMIT 1 [["organization_id", "965a31b4-cdb1-11e4-ad20-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$3IHvJp0SqP6gil9ZYoon4O.L9sL4yTNssleV8CznB8pMWUxu2unmK"], ["created_at", "2015-03-18 20:58:54.345626"], ["updated_at", "2015-03-18 20:58:54.345626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.348907"], ["updated_at", "2015-03-18 20:58:54.348907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '965bd302-cdb1-11e4-b3ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '965c5110-cdb1-11e4-8870-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "965bd302-cdb1-11e4-b3ab-705681abff85"], ["organization_id", "965c5110-cdb1-11e4-8870-705681abff85"], ["created_at", "2015-03-18 20:58:54.352308"], ["updated_at", "2015-03-18 20:58:54.352308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '965bd302-cdb1-11e4-b3ab-705681abff85' LIMIT 1 [["organization_id", "965c5110-cdb1-11e4-8870-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$IDD2S4Oj1bv5eFyoy2ld0.jXr7WG.PJQjo95OG3h4E/Ybh/dOtITW"], ["created_at", "2015-03-18 20:58:54.360080"], ["updated_at", "2015-03-18 20:58:54.360080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.363691"], ["updated_at", "2015-03-18 20:58:54.363691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '965e0b7c-cdb1-11e4-b1b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '965e9542-cdb1-11e4-865f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "965e0b7c-cdb1-11e4-b1b6-705681abff85"], ["organization_id", "965e9542-cdb1-11e4-865f-705681abff85"], ["created_at", "2015-03-18 20:58:54.367053"], ["updated_at", "2015-03-18 20:58:54.367053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '965e0b7c-cdb1-11e4-b1b6-705681abff85' LIMIT 1 [["organization_id", "965e9542-cdb1-11e4-865f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$rVJcgEDx4P99uFK5l7TL0Os/G6CKz.wX/iIcVfDA0y6HnZLxRUnCy"], ["created_at", "2015-03-18 20:58:54.381687"], ["updated_at", "2015-03-18 20:58:54.381687"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.386256"], ["updated_at", "2015-03-18 20:58:54.386256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9661543a-cdb1-11e4-bb74-705681abff85' AND "clubhouse_memberships"."organization_id" = '9662057e-cdb1-11e4-84db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9661543a-cdb1-11e4-bb74-705681abff85"], ["organization_id", "9662057e-cdb1-11e4-84db-705681abff85"], ["created_at", "2015-03-18 20:58:54.389598"], ["updated_at", "2015-03-18 20:58:54.389598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9661543a-cdb1-11e4-bb74-705681abff85' LIMIT 1 [["organization_id", "9662057e-cdb1-11e4-84db-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$f/6fSzuHp8Rl1gaQl5D8TulxOOsVtsLQAVX9tM0hSuusMPd45WINu"], ["created_at", "2015-03-18 20:58:54.396596"], ["updated_at", "2015-03-18 20:58:54.396596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.399725"], ["updated_at", "2015-03-18 20:58:54.399725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96639844-cdb1-11e4-a4a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '96641422-cdb1-11e4-afdb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96639844-cdb1-11e4-a4a1-705681abff85"], ["organization_id", "96641422-cdb1-11e4-afdb-705681abff85"], ["created_at", "2015-03-18 20:58:54.403096"], ["updated_at", "2015-03-18 20:58:54.403096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '96639844-cdb1-11e4-a4a1-705681abff85' LIMIT 1 [["organization_id", "96641422-cdb1-11e4-afdb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$eS5nQsAzQVQqHtvlNT0K6O3oLouu9AxSIPc9i6PHcPptrCTpacg8S"], ["created_at", "2015-03-18 20:58:54.410234"], ["updated_at", "2015-03-18 20:58:54.410234"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.413758"], ["updated_at", "2015-03-18 20:58:54.413758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9665ad6e-cdb1-11e4-80f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '966635d6-cdb1-11e4-b458-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9665ad6e-cdb1-11e4-80f0-705681abff85"], ["organization_id", "966635d6-cdb1-11e4-b458-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.417098"], ["updated_at", "2015-03-18 20:58:54.417098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9665ad6e-cdb1-11e4-80f0-705681abff85' LIMIT 1 [["organization_id", "966635d6-cdb1-11e4-b458-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$tMF7osBIRQVJl/XFDVNx3OyT2bY.CUNlMj44czYQP3RdcO9tKfCVO"], ["created_at", "2015-03-18 20:58:54.424515"], ["updated_at", "2015-03-18 20:58:54.424515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.427714"], ["updated_at", "2015-03-18 20:58:54.427714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9667dea4-cdb1-11e4-9f38-705681abff85' AND "clubhouse_memberships"."organization_id" = '966855f0-cdb1-11e4-a93f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9667dea4-cdb1-11e4-9f38-705681abff85"], ["organization_id", "966855f0-cdb1-11e4-a93f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.431157"], ["updated_at", "2015-03-18 20:58:54.431157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9667dea4-cdb1-11e4-9f38-705681abff85' LIMIT 1 [["organization_id", "966855f0-cdb1-11e4-a93f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$Pg2PEyhQKUCwUog0FA/Ss.NzAMaCRkwWWOkH9um8iXwl13qCIIwa."], ["created_at", "2015-03-18 20:58:54.438747"], ["updated_at", "2015-03-18 20:58:54.438747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.441851"], ["updated_at", "2015-03-18 20:58:54.441851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '966a076a-cdb1-11e4-a9f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '966a7dda-cdb1-11e4-a984-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "966a076a-cdb1-11e4-a9f9-705681abff85"], ["organization_id", "966a7dda-cdb1-11e4-a984-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.444936"], ["updated_at", "2015-03-18 20:58:54.444936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '966a076a-cdb1-11e4-a9f9-705681abff85' LIMIT 1 [["organization_id", "966a7dda-cdb1-11e4-a984-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$V9/.5WAkhy1u7.gIFrPFP.93ODR2yJbgyXOQIX11qry.d7sUVtasW"], ["created_at", "2015-03-18 20:58:54.452457"], ["updated_at", "2015-03-18 20:58:54.452457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.455843"], ["updated_at", "2015-03-18 20:58:54.455843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '966c1f6e-cdb1-11e4-8a2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '966ca60a-cdb1-11e4-b178-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "966c1f6e-cdb1-11e4-8a2a-705681abff85"], ["organization_id", "966ca60a-cdb1-11e4-b178-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.459710"], ["updated_at", "2015-03-18 20:58:54.459710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '966c1f6e-cdb1-11e4-8a2a-705681abff85' LIMIT 1 [["organization_id", "966ca60a-cdb1-11e4-b178-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$JSHF8NJxwr4tn8Kx3eLL6OJ4UWUuvLy.dq7GQ/GruglU9vL32TNWu"], ["created_at", "2015-03-18 20:58:54.466833"], ["updated_at", "2015-03-18 20:58:54.466833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.469902"], ["updated_at", "2015-03-18 20:58:54.469902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '966ec778-cdb1-11e4-8762-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "966ec778-cdb1-11e4-8762-705681abff85"], ["created_at", "2015-03-18 20:58:54.481238"], ["updated_at", "2015-03-18 20:58:54.481238"], ["token", "1XWlcyWJFfGfTgmu4FeCtBDTNL3apy-O6lvKnqxvQjI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '966e50e0-cdb1-11e4-b48e-705681abff85' LIMIT 1 [["organization_id", "966ec778-cdb1-11e4-8762-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$KS5XjJCp6UHzz1S6GkQCH.ZTswzLC.PF/CP/Iv2mJ96FMhyLR7VvG"], ["created_at", "2015-03-18 20:58:54.491904"], ["updated_at", "2015-03-18 20:58:54.491904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.495020"], ["updated_at", "2015-03-18 20:58:54.495020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '96729b1e-cdb1-11e4-bef6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "96729b1e-cdb1-11e4-bef6-705681abff85"], ["created_at", "2015-03-18 20:58:54.498506"], ["updated_at", "2015-03-18 20:58:54.498506"], ["token", "QuT_KhNRkBiX5CIWQNC6-vninaRk-N2XNWR9kgvnwb4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9672242c-cdb1-11e4-b1ea-705681abff85' LIMIT 1 [["organization_id", "96729b1e-cdb1-11e4-bef6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$OwHWom1lezs18Zjn7jfFHuMYQsRJNDIWnx/KLIM09OdLOsP4cofgq"], ["created_at", "2015-03-18 20:58:54.506329"], ["updated_at", "2015-03-18 20:58:54.506329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.509817"], ["updated_at", "2015-03-18 20:58:54.509817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '9674dde8-cdb1-11e4-acc0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "9674dde8-cdb1-11e4-acc0-705681abff85"], ["created_at", "2015-03-18 20:58:54.514566"], ["updated_at", "2015-03-18 20:58:54.514566"], ["token", "bZFtJCha87_YvQnT7YA-5NdbZOEJBfzP2QBeuwqkLy4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '96745f26-cdb1-11e4-aca2-705681abff85' LIMIT 1 [["organization_id", "9674dde8-cdb1-11e4-acc0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$8nrzelDkunxkGrL/jFY08uto8LpZnLOOX0TkiD1G7JKm7cLsIAUkS"], ["created_at", "2015-03-18 20:58:54.522462"], ["updated_at", "2015-03-18 20:58:54.522462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.526293"], ["updated_at", "2015-03-18 20:58:54.526293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '967761bc-cdb1-11e4-be45-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "967761bc-cdb1-11e4-be45-705681abff85"], ["created_at", "2015-03-18 20:58:54.529563"], ["updated_at", "2015-03-18 20:58:54.529563"], ["token", "Gy9boTcZ3dpLYWrdo01kWaarfOHbN8RnmYXFxEqOchg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9676dcd8-cdb1-11e4-830a-705681abff85' LIMIT 1 [["organization_id", "967761bc-cdb1-11e4-be45-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$fUjumJYz6Awh6FY8V0Di5.fyzGT.iJ57Y1PCrp5acpMamZyWC0EXC"], ["created_at", "2015-03-18 20:58:54.537072"], ["updated_at", "2015-03-18 20:58:54.537072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.540481"], ["updated_at", "2015-03-18 20:58:54.540481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96790b16-cdb1-11e4-9e2e-705681abff85' AND "clubhouse_memberships"."organization_id" = '96798cda-cdb1-11e4-a42c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96790b16-cdb1-11e4-9e2e-705681abff85"], ["organization_id", "96798cda-cdb1-11e4-a42c-705681abff85"], ["created_at", "2015-03-18 20:58:54.543634"], ["updated_at", "2015-03-18 20:58:54.543634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '96798cda-cdb1-11e4-a42c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "96798cda-cdb1-11e4-a42c-705681abff85"], ["created_at", "2015-03-18 20:58:54.547148"], ["updated_at", "2015-03-18 20:58:54.547148"], ["token", "dWibokMvA58_VYLDZ1lejEyVqPXbx6BMVbaZCaVti34"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '96790b16-cdb1-11e4-9e2e-705681abff85' LIMIT 1 [["organization_id", "96798cda-cdb1-11e4-a42c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$orqpHbetDdsHLTuKrjGtOOPPBxiBINFKJ/N64gClWJ2BfWzLZVd8a"], ["created_at", "2015-03-18 20:58:54.554376"], ["updated_at", "2015-03-18 20:58:54.554376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.557916"], ["updated_at", "2015-03-18 20:58:54.557916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '967baed4-cdb1-11e4-bcb3-705681abff85' AND "clubhouse_memberships"."organization_id" = '967c37d2-cdb1-11e4-b0a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "967baed4-cdb1-11e4-bcb3-705681abff85"], ["organization_id", "967c37d2-cdb1-11e4-b0a0-705681abff85"], ["created_at", "2015-03-18 20:58:54.561124"], ["updated_at", "2015-03-18 20:58:54.561124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '967c37d2-cdb1-11e4-b0a0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "967c37d2-cdb1-11e4-b0a0-705681abff85"], ["created_at", "2015-03-18 20:58:54.564382"], ["updated_at", "2015-03-18 20:58:54.564382"], ["token", "Dmzpw1_XczqTvAiqJEm1O5_BS1oMsojiEJBLWwxoWFQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '967baed4-cdb1-11e4-bcb3-705681abff85' LIMIT 1 [["organization_id", "967c37d2-cdb1-11e4-b0a0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$tdtdc1DN6N1TJdIYY7rd5uQVn9Kca0nqgiyuGefwmoWRcpYpcXxnq"], ["created_at", "2015-03-18 20:58:54.571647"], ["updated_at", "2015-03-18 20:58:54.571647"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.575710"], ["updated_at", "2015-03-18 20:58:54.575710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '967e54c2-cdb1-11e4-8373-705681abff85' AND "clubhouse_memberships"."organization_id" = '967eecf2-cdb1-11e4-ab69-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "967e54c2-cdb1-11e4-8373-705681abff85"], ["organization_id", "967eecf2-cdb1-11e4-ab69-705681abff85"], ["created_at", "2015-03-18 20:58:54.578816"], ["updated_at", "2015-03-18 20:58:54.578816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '967eecf2-cdb1-11e4-ab69-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "967eecf2-cdb1-11e4-ab69-705681abff85"], ["created_at", "2015-03-18 20:58:54.582312"], ["updated_at", "2015-03-18 20:58:54.582312"], ["token", "yuvcZWDCQT-TlydjWrtVcPFvZynuGl0RY9J62cyDjE0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '967e54c2-cdb1-11e4-8373-705681abff85' LIMIT 1 [["organization_id", "967eecf2-cdb1-11e4-ab69-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$ki39QFeUJ6RgLOk7mqp8MeII5TYB/1h8AHOt7c2hiUvVSCqjUOOd2"], ["created_at", "2015-03-18 20:58:54.589256"], ["updated_at", "2015-03-18 20:58:54.589256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.592699"], ["updated_at", "2015-03-18 20:58:54.592699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96810212-cdb1-11e4-b889-705681abff85' AND "clubhouse_memberships"."organization_id" = '968183ae-cdb1-11e4-a19a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "96810212-cdb1-11e4-b889-705681abff85"], ["organization_id", "968183ae-cdb1-11e4-a19a-705681abff85"], ["created_at", "2015-03-18 20:58:54.595969"], ["updated_at", "2015-03-18 20:58:54.595969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '968183ae-cdb1-11e4-a19a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "968183ae-cdb1-11e4-a19a-705681abff85"], ["created_at", "2015-03-18 20:58:54.599465"], ["updated_at", "2015-03-18 20:58:54.599465"], ["token", "BHdAexydSEViI0FJFCBYdxkCS3qER6V-mdUw9rMItC0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '96810212-cdb1-11e4-b889-705681abff85' LIMIT 1 [["organization_id", "968183ae-cdb1-11e4-a19a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$F5SoFkBYhazmhzcBU8FIOOmv5w36DVDHYKA7Q8.erbNzx8cTOPL7e"], ["created_at", "2015-03-18 20:58:54.606506"], ["updated_at", "2015-03-18 20:58:54.606506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.609983"], ["updated_at", "2015-03-18 20:58:54.609983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9683a116-cdb1-11e4-9db7-705681abff85' AND "clubhouse_memberships"."organization_id" = '96842898-cdb1-11e4-95a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9683a116-cdb1-11e4-9db7-705681abff85"], ["organization_id", "96842898-cdb1-11e4-95a2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.613347"], ["updated_at", "2015-03-18 20:58:54.613347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '96842898-cdb1-11e4-95a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "96842898-cdb1-11e4-95a2-705681abff85"], ["created_at", "2015-03-18 20:58:54.616669"], ["updated_at", "2015-03-18 20:58:54.616669"], ["token", "lLArVzf3YLU2-1c22wiWj3I2EyLkUTZWvx_cJ0cbpsg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9683a116-cdb1-11e4-9db7-705681abff85' LIMIT 1 [["organization_id", "96842898-cdb1-11e4-95a2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$qm3egQrm2iwMEkBVppgW5.M1l7OVQiG4SKqSZu.l.fAMOjyzPdHVC"], ["created_at", "2015-03-18 20:58:54.624441"], ["updated_at", "2015-03-18 20:58:54.624441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.627885"], ["updated_at", "2015-03-18 20:58:54.627885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '968660f4-cdb1-11e4-9688-705681abff85' AND "clubhouse_memberships"."organization_id" = '9686e11e-cdb1-11e4-bae5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "968660f4-cdb1-11e4-9688-705681abff85"], ["organization_id", "9686e11e-cdb1-11e4-bae5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.631063"], ["updated_at", "2015-03-18 20:58:54.631063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '9686e11e-cdb1-11e4-bae5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "9686e11e-cdb1-11e4-bae5-705681abff85"], ["created_at", "2015-03-18 20:58:54.634461"], ["updated_at", "2015-03-18 20:58:54.634461"], ["token", "1awDuvyZEqu_UbdOVACn9rgLJdQ6PFtKG--ZPc7UCqY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '968660f4-cdb1-11e4-9688-705681abff85' LIMIT 1 [["organization_id", "9686e11e-cdb1-11e4-bae5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$cyXWKI3.v.RhBZzhzLcHS.MEWkFlQq.lrbJDUpLw1iD5SwqEMuJTG"], ["created_at", "2015-03-18 20:58:54.641589"], ["updated_at", "2015-03-18 20:58:54.641589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.644935"], ["updated_at", "2015-03-18 20:58:54.644935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9688fc92-cdb1-11e4-8cbf-705681abff85' AND "clubhouse_memberships"."organization_id" = '96897dde-cdb1-11e4-bd1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9688fc92-cdb1-11e4-8cbf-705681abff85"], ["organization_id", "96897dde-cdb1-11e4-bd1e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.648272"], ["updated_at", "2015-03-18 20:58:54.648272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '96897dde-cdb1-11e4-bd1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "96897dde-cdb1-11e4-bd1e-705681abff85"], ["created_at", "2015-03-18 20:58:54.651659"], ["updated_at", "2015-03-18 20:58:54.651659"], ["token", "w683ZRY1ATuXREu3XwJ3HCfO6DRhzLdRtQRCV-YBUfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9688fc92-cdb1-11e4-8cbf-705681abff85' LIMIT 1 [["organization_id", "96897dde-cdb1-11e4-bd1e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$bydIvfUoLXnguq/ilvRetO4GtXeD9U39bDjLElQlioPqwa/69N7nG"], ["created_at", "2015-03-18 20:58:54.658960"], ["updated_at", "2015-03-18 20:58:54.658960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-18 20:58:54.662213"], ["updated_at", "2015-03-18 20:58:54.662213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '968ba514-cdb1-11e4-80e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '968c1e5e-cdb1-11e4-8f37-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "968ba514-cdb1-11e4-80e0-705681abff85"], ["organization_id", "968c1e5e-cdb1-11e4-8f37-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 20:58:54.665497"], ["updated_at", "2015-03-18 20:58:54.665497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '968c1e5e-cdb1-11e4-8f37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "968c1e5e-cdb1-11e4-8f37-705681abff85"], ["created_at", "2015-03-18 20:58:54.669163"], ["updated_at", "2015-03-18 20:58:54.669163"], ["token", "UWSh1rdFJTpmcoQp7t8ECYG3PCnrOUGyNlKx7fgB1oo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '968ba514-cdb1-11e4-80e0-705681abff85' LIMIT 1 [["organization_id", "968c1e5e-cdb1-11e4-8f37-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$nGZ6pbuSvYpWb5yKfzizM.1PesU0dDh.WyEWtLRm08wLZ6zhco.z6"], ["created_at", "2015-03-18 21:05:22.216190"], ["updated_at", "2015-03-18 21:05:22.216190"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (1.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$o1EHRsJ1ZKIoG9iLYy2oCuO15s0XunLLjLzkX.rLCZYqVimXRmjRq"], ["created_at", "2015-03-18 21:05:22.249519"], ["updated_at", "2015-03-18 21:05:22.249519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (8.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.263035"], ["user_id", "7d8f46aa-cdb2-11e4-bd22-705681abff85"], ["created_at", "2015-03-18 21:05:22.303039"], ["updated_at", "2015-03-18 21:05:22.303039"], ["token", "L7WkR-jUtaogu1WL2w4UfD0phneNMs0snaIs7TdUrCo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.320214"], ["updated_at", "2015-03-18 21:05:22.320214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7d8f46aa-cdb2-11e4-bd22-705681abff85' AND "clubhouse_memberships"."organization_id" = '7d9c12cc-cdb2-11e4-a292-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7d8f46aa-cdb2-11e4-bd22-705681abff85"], ["organization_id", "7d9c12cc-cdb2-11e4-a292-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.332832"], ["updated_at", "2015-03-18 21:05:22.332832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7d9161ba-cdb2-11e4-b900-705681abff85' AND "clubhouse_memberships"."organization_id" = '7d9c12cc-cdb2-11e4-a292-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7d9161ba-cdb2-11e4-b900-705681abff85"], ["organization_id", "7d9c12cc-cdb2-11e4-a292-705681abff85"], ["created_at", "2015-03-18 21:05:22.337103"], ["updated_at", "2015-03-18 21:05:22.337103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$GBvRN4zXHftui7lmOpDq9e4tNhsg6ZGm9qqwACcUJ/pTK2YUXkgf2"], ["created_at", "2015-03-18 21:05:22.343356"], ["updated_at", "2015-03-18 21:05:22.343356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.345104"], ["user_id", "7d9f978a-cdb2-11e4-92af-705681abff85"], ["created_at", "2015-03-18 21:05:22.345877"], ["updated_at", "2015-03-18 21:05:22.345877"], ["token", "uS0vHVvVBV0zd-7gnL6NwTGBUqAJuG1MJq67jpW6oQM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '7d9c12cc-cdb2-11e4-a292-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "7d9c12cc-cdb2-11e4-a292-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.356273"], ["updated_at", "2015-03-18 21:05:22.356273"], ["token", "HembxV_O-80zwx3wG-2iX7e5aQ15JFU3O3IjH75EwTw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$.2fa98cV77.Ct8rPQdJeOukkDnHlJrirLhqJmXdZKOHJu/.6iJVxa"], ["created_at", "2015-03-18 21:05:22.396760"], ["updated_at", "2015-03-18 21:05:22.396760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$ykNGZtBw6cLmDU3OYkD0mO.OYDvuNs..iOtD.M.oeYD95STSa/R4."], ["created_at", "2015-03-18 21:05:22.401544"], ["updated_at", "2015-03-18 21:05:22.401544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.403231"], ["user_id", "7da7bfb4-cdb2-11e4-a35c-705681abff85"], ["created_at", "2015-03-18 21:05:22.404051"], ["updated_at", "2015-03-18 21:05:22.404051"], ["token", "BgOYvU_qqOyfw354d6jNKO71q3QO8K6fqY8Gmby4swc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.407726"], ["updated_at", "2015-03-18 21:05:22.407726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7da7bfb4-cdb2-11e4-a35c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7da96922-cdb2-11e4-b028-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7da7bfb4-cdb2-11e4-a35c-705681abff85"], ["organization_id", "7da96922-cdb2-11e4-b028-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.411513"], ["updated_at", "2015-03-18 21:05:22.411513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7da87742-cdb2-11e4-8d3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '7da96922-cdb2-11e4-b028-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7da87742-cdb2-11e4-8d3d-705681abff85"], ["organization_id", "7da96922-cdb2-11e4-b028-705681abff85"], ["created_at", "2015-03-18 21:05:22.414909"], ["updated_at", "2015-03-18 21:05:22.414909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$WKfNnQQzvfP9hQqi4QblxerPxg/bK2RtE7GlO7I2DoeY0XFLvvGXy"], ["created_at", "2015-03-18 21:05:22.419457"], ["updated_at", "2015-03-18 21:05:22.419457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.423095"], ["user_id", "7dab2fc8-cdb2-11e4-afcd-705681abff85"], ["created_at", "2015-03-18 21:05:22.423911"], ["updated_at", "2015-03-18 21:05:22.423911"], ["token", "7LuQ0aVQtsfMAOcDxw8YWpSwRGa3-9OQkk98rKBelO0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '7da96922-cdb2-11e4-b028-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "7da96922-cdb2-11e4-b028-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.428425"], ["updated_at", "2015-03-18 21:05:22.428425"], ["token", "Tra-05msZbAzccNOCbMsNANqcQEKHx6rXSxtPrk92WM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7da96922-cdb2-11e4-b028-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"7da96922-cdb2-11e4-b028-705681abff85", "membership"=>{}} Pollett::Session Load (0.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:22.435846' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7LuQ0aVQtsfMAOcDxw8YWpSwRGa3-9OQkk98rKBelO0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:22.444043"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:22.445378"], ["id", "7dabe968-cdb2-11e4-8cfb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7dab2fc8-cdb2-11e4-afcd-705681abff85"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7dab2fc8-cdb2-11e4-afcd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7da96922-cdb2-11e4-b028-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 39ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$gVB5D/6GQUtMOOYCWgPD3O/DopPiui9WS5zCQ6Rw6Biu1/gbVZ3A2"], ["created_at", "2015-03-18 21:05:22.480797"], ["updated_at", "2015-03-18 21:05:22.480797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$p/IUUUGdtqM4sCXuI1ILXOL/RV4UNHFGF2Y0TNKWbVPkG5bN9HOv2"], ["created_at", "2015-03-18 21:05:22.485247"], ["updated_at", "2015-03-18 21:05:22.485247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.486803"], ["user_id", "7db48f6e-cdb2-11e4-8568-705681abff85"], ["created_at", "2015-03-18 21:05:22.487614"], ["updated_at", "2015-03-18 21:05:22.487614"], ["token", "fppTuclae2KUsPRUpr6H4pwdZ0qAXZw9Atj84pU4jVk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.491160"], ["updated_at", "2015-03-18 21:05:22.491160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7db48f6e-cdb2-11e4-8568-705681abff85' AND "clubhouse_memberships"."organization_id" = '7db62586-cdb2-11e4-b634-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7db48f6e-cdb2-11e4-8568-705681abff85"], ["organization_id", "7db62586-cdb2-11e4-b634-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.494978"], ["updated_at", "2015-03-18 21:05:22.494978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7db53982-cdb2-11e4-b8e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '7db62586-cdb2-11e4-b634-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7db53982-cdb2-11e4-b8e0-705681abff85"], ["organization_id", "7db62586-cdb2-11e4-b634-705681abff85"], ["created_at", "2015-03-18 21:05:22.498264"], ["updated_at", "2015-03-18 21:05:22.498264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$HdQIn/jg2MqXmqy3nd.jmO4horoHE4oDrPYZTJiIXghHx1.lHSdGa"], ["created_at", "2015-03-18 21:05:22.502682"], ["updated_at", "2015-03-18 21:05:22.502682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.504537"], ["user_id", "7db7eace-cdb2-11e4-b0f5-705681abff85"], ["created_at", "2015-03-18 21:05:22.505541"], ["updated_at", "2015-03-18 21:05:22.505541"], ["token", "y57rJRUNQj67C1w5oSswQELH6J3ICuIgfGsCF0N2gW0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '7db62586-cdb2-11e4-b634-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "7db62586-cdb2-11e4-b634-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.513047"], ["updated_at", "2015-03-18 21:05:22.513047"], ["token", "rOtj1wu5UFUVsnEfQxcTBToZeMgN5iilvk3varc3OxM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7db62586-cdb2-11e4-b634-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"rOtj1wu5UFUVsnEfQxcTBToZeMgN5iilvk3varc3OxM", "organization_id"=>"7db62586-cdb2-11e4-b634-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:22.522116' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y57rJRUNQj67C1w5oSswQELH6J3ICuIgfGsCF0N2gW0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:22.524127"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:22.525301"], ["id", "7db8667a-cdb2-11e4-b70c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7db7eace-cdb2-11e4-b0f5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7db7eace-cdb2-11e4-b0f5-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7db62586-cdb2-11e4-b634-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "rOtj1wu5UFUVsnEfQxcTBToZeMgN5iilvk3varc3OxM"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7db62586-cdb2-11e4-b634-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7db62586-cdb2-11e4-b634-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7db7eace-cdb2-11e4-b0f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '7db62586-cdb2-11e4-b634-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7db7eace-cdb2-11e4-b0f5-705681abff85"], ["admin", "t"], ["organization_id", "7db62586-cdb2-11e4-b634-705681abff85"], ["created_at", "2015-03-18 21:05:22.537273"], ["updated_at", "2015-03-18 21:05:22.537273"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7dba2258-cdb2-11e4-bc93-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 23ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Y59jkAYdU2vhJZLSI8BJ4.kjOSB.uoPGscSiAHcX.Z069E2bsB6u."], ["created_at", "2015-03-18 21:05:22.551001"], ["updated_at", "2015-03-18 21:05:22.551001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (5.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$wFPRjuqffwPUP2LjPH5ttuMwD7WeLG3rw8rqIWs0MGtXwO3Fz5PpC"], ["created_at", "2015-03-18 21:05:22.555722"], ["updated_at", "2015-03-18 21:05:22.555722"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.563231"], ["user_id", "7dbf480a-cdb2-11e4-b364-705681abff85"], ["created_at", "2015-03-18 21:05:22.564049"], ["updated_at", "2015-03-18 21:05:22.564049"], ["token", "s6l0adAkFw-VJit9x7Fnln8GzYbDWrTB_JWsXZGwcCk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.567748"], ["updated_at", "2015-03-18 21:05:22.567748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dbf480a-cdb2-11e4-b364-705681abff85' AND "clubhouse_memberships"."organization_id" = '7dc1d1ce-cdb2-11e4-9667-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7dbf480a-cdb2-11e4-b364-705681abff85"], ["organization_id", "7dc1d1ce-cdb2-11e4-9667-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.571198"], ["updated_at", "2015-03-18 21:05:22.571198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dbfff70-cdb2-11e4-94a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '7dc1d1ce-cdb2-11e4-9667-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7dbfff70-cdb2-11e4-94a3-705681abff85"], ["organization_id", "7dc1d1ce-cdb2-11e4-9667-705681abff85"], ["created_at", "2015-03-18 21:05:22.574677"], ["updated_at", "2015-03-18 21:05:22.574677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/7dc25770-cdb2-11e4-a627-705681abff85" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"7dc25770-cdb2-11e4-a627-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:22.580305' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "s6l0adAkFw-VJit9x7Fnln8GzYbDWrTB_JWsXZGwcCk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:22.582602"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:22.583810"], ["id", "7dc14934-cdb2-11e4-b5ff-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7dbf480a-cdb2-11e4-b364-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7dbf480a-cdb2-11e4-b364-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "7dc25770-cdb2-11e4-a627-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7dc1d1ce-cdb2-11e4-9667-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7dbf480a-cdb2-11e4-b364-705681abff85' LIMIT 1 [["organization_id", "7dc1d1ce-cdb2-11e4-9667-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7dbf480a-cdb2-11e4-b364-705681abff85"]] Completed 200 OK in 17ms (Views: 2.5ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$LFNqSyZcYh0WeOhz1/NjQuZyl6USaAICLMkObCRI8fJFXRLQmRm0m"], ["created_at", "2015-03-18 21:05:22.607071"], ["updated_at", "2015-03-18 21:05:22.607071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$y7g/n0XUTbBW75v2nu.oU.vjrc3aPU1uqHdE7AKHxe6Lc6H5F5tvm"], ["created_at", "2015-03-18 21:05:22.612643"], ["updated_at", "2015-03-18 21:05:22.612643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.614363"], ["user_id", "7dc7eb54-cdb2-11e4-8749-705681abff85"], ["created_at", "2015-03-18 21:05:22.615241"], ["updated_at", "2015-03-18 21:05:22.615241"], ["token", "blUfOy1NNmGIRwlsnq0ILBUMt3r4Uce24CAhJBDnLmw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.618954"], ["updated_at", "2015-03-18 21:05:22.618954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dc7eb54-cdb2-11e4-8749-705681abff85' AND "clubhouse_memberships"."organization_id" = '7dc9ac3c-cdb2-11e4-b079-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7dc7eb54-cdb2-11e4-8749-705681abff85"], ["organization_id", "7dc9ac3c-cdb2-11e4-b079-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.622791"], ["updated_at", "2015-03-18 21:05:22.622791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dc8ad1e-cdb2-11e4-b44f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7dc9ac3c-cdb2-11e4-b079-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7dc8ad1e-cdb2-11e4-b44f-705681abff85"], ["organization_id", "7dc9ac3c-cdb2-11e4-b079-705681abff85"], ["created_at", "2015-03-18 21:05:22.626286"], ["updated_at", "2015-03-18 21:05:22.626286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$dSIgNEZz.fhOWQjq57SFW.BQscyqI8fakzGNoRsLFiErI7099tX0m"], ["created_at", "2015-03-18 21:05:22.639041"], ["updated_at", "2015-03-18 21:05:22.639041"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$in0wrZLk1Nh5kAzjKe.23OcmAqoG3IKmTj160uhAm0Tm7pxd/6Z/i"], ["created_at", "2015-03-18 21:05:22.645087"], ["updated_at", "2015-03-18 21:05:22.645087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.646854"], ["user_id", "7dccb8c8-cdb2-11e4-bfd0-705681abff85"], ["created_at", "2015-03-18 21:05:22.647715"], ["updated_at", "2015-03-18 21:05:22.647715"], ["token", "Y5EJr3kuMFkB5Tf4VRB2JCeEYLDcbTaCnQxODd5BqV8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.651447"], ["updated_at", "2015-03-18 21:05:22.651447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dccb8c8-cdb2-11e4-bfd0-705681abff85' AND "clubhouse_memberships"."organization_id" = '7dce9850-cdb2-11e4-9ee0-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7dccb8c8-cdb2-11e4-bfd0-705681abff85"], ["organization_id", "7dce9850-cdb2-11e4-9ee0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.655333"], ["updated_at", "2015-03-18 21:05:22.655333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dcda152-cdb2-11e4-884b-705681abff85' AND "clubhouse_memberships"."organization_id" = '7dce9850-cdb2-11e4-9ee0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7dcda152-cdb2-11e4-884b-705681abff85"], ["organization_id", "7dce9850-cdb2-11e4-9ee0-705681abff85"], ["created_at", "2015-03-18 21:05:22.661775"], ["updated_at", "2015-03-18 21:05:22.661775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$g5vsRtXflMu9cTpslSsgA.NFkKQHvZ4Ij2F94E53Jk1YvGNXfk1gS"], ["created_at", "2015-03-18 21:05:22.666495"], ["updated_at", "2015-03-18 21:05:22.666495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.668270"], ["user_id", "7dd0e376-cdb2-11e4-83f6-705681abff85"], ["created_at", "2015-03-18 21:05:22.669369"], ["updated_at", "2015-03-18 21:05:22.669369"], ["token", "DOHK-TmpT4xydbUcdCmzAfKaSL_B5QJXyF-E13d9h_Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '7dce9850-cdb2-11e4-9ee0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "7dce9850-cdb2-11e4-9ee0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.683458"], ["updated_at", "2015-03-18 21:05:22.683458"], ["token", "9W5uN1R2iG52FvhVZ2oDy-6Fkjn9EPoVoFwVhvvBOPk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$eLa.StdA4gDNRNLEhqbUfeILa.4zYmwBFnPQyIJZvtdxe4LGniLHW"], ["created_at", "2015-03-18 21:05:22.695081"], ["updated_at", "2015-03-18 21:05:22.695081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$XEV9LFC7T2JucsUestiaqO7SYQPaN7O2EI9YU3gYJzPlDUrVLYOje"], ["created_at", "2015-03-18 21:05:22.699374"], ["updated_at", "2015-03-18 21:05:22.699374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.700931"], ["user_id", "7dd5410a-cdb2-11e4-8cd8-705681abff85"], ["created_at", "2015-03-18 21:05:22.701741"], ["updated_at", "2015-03-18 21:05:22.701741"], ["token", "GaadR_R6iBPXh8vDCpOT1M_tyetZ4M_Asdyvg6akqA0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.705179"], ["updated_at", "2015-03-18 21:05:22.705179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dd5410a-cdb2-11e4-8cd8-705681abff85' AND "clubhouse_memberships"."organization_id" = '7dd6c7dc-cdb2-11e4-ad37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7dd5410a-cdb2-11e4-8cd8-705681abff85"], ["organization_id", "7dd6c7dc-cdb2-11e4-ad37-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.708383"], ["updated_at", "2015-03-18 21:05:22.708383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dd5e574-cdb2-11e4-b8ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '7dd6c7dc-cdb2-11e4-ad37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7dd5e574-cdb2-11e4-b8ba-705681abff85"], ["organization_id", "7dd6c7dc-cdb2-11e4-ad37-705681abff85"], ["created_at", "2015-03-18 21:05:22.711534"], ["updated_at", "2015-03-18 21:05:22.711534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$I/yRXCSoWltVsaJvfatya.6roJdTUWwcxsc4lQhP2dyvucpK.vIqy"], ["created_at", "2015-03-18 21:05:22.716107"], ["updated_at", "2015-03-18 21:05:22.716107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.717666"], ["user_id", "7dd87352-cdb2-11e4-bedf-705681abff85"], ["created_at", "2015-03-18 21:05:22.718401"], ["updated_at", "2015-03-18 21:05:22.718401"], ["token", "nNIEb-Tvk-HwmBjJRShlyTd2DEADtETvgRC0InEGozI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '7dd6c7dc-cdb2-11e4-ad37-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "7dd6c7dc-cdb2-11e4-ad37-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.722357"], ["updated_at", "2015-03-18 21:05:22.722357"], ["token", "XjN6og_lCq-tJ3rjUrCWrAv7tnoruxJCAzzqit9C9rU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:22.728856' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nNIEb-Tvk-HwmBjJRShlyTd2DEADtETvgRC0InEGozI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:22.730432"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:22.731478"], ["id", "7dd8d464-cdb2-11e4-82a5-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7dd87352-cdb2-11e4-bedf-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7dd87352-cdb2-11e4-bedf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$DiYEdPavnlDWpmTmMwDqLOGiqJJRcMtmYqrBhXpHnW0CowExtUMeG"], ["created_at", "2015-03-18 21:05:22.744229"], ["updated_at", "2015-03-18 21:05:22.744229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Wijo8BbNgMKSHZ9.BVU/hOpo8ybunWELXiPvk6jE4ujniMcP1knLS"], ["created_at", "2015-03-18 21:05:22.749805"], ["updated_at", "2015-03-18 21:05:22.749805"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.755566"], ["user_id", "7ddcbeee-cdb2-11e4-87a8-705681abff85"], ["created_at", "2015-03-18 21:05:22.756870"], ["updated_at", "2015-03-18 21:05:22.756870"], ["token", "X4-loEMpWx9ntQ5uqT6js-GyRI1qYG1FpxMsoxWEfGY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.761584"], ["updated_at", "2015-03-18 21:05:22.761584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ddcbeee-cdb2-11e4-87a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ddf664e-cdb2-11e4-ade8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ddcbeee-cdb2-11e4-87a8-705681abff85"], ["organization_id", "7ddf664e-cdb2-11e4-ade8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.765121"], ["updated_at", "2015-03-18 21:05:22.765121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ddda7e6-cdb2-11e4-8f8e-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ddf664e-cdb2-11e4-ade8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ddda7e6-cdb2-11e4-8f8e-705681abff85"], ["organization_id", "7ddf664e-cdb2-11e4-ade8-705681abff85"], ["created_at", "2015-03-18 21:05:22.768392"], ["updated_at", "2015-03-18 21:05:22.768392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$xStdoIwvc2TBxXbC7tUpr.BADx22LxxihYzajNyBavFI8L849QYnS"], ["created_at", "2015-03-18 21:05:22.772869"], ["updated_at", "2015-03-18 21:05:22.772869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.774457"], ["user_id", "7de11dcc-cdb2-11e4-9711-705681abff85"], ["created_at", "2015-03-18 21:05:22.775642"], ["updated_at", "2015-03-18 21:05:22.775642"], ["token", "FaABu54AQ6SAmgDCaZpgxa_tqUeU7UWs57pcsmtyvYs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '7ddf664e-cdb2-11e4-ade8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "7ddf664e-cdb2-11e4-ade8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.779756"], ["updated_at", "2015-03-18 21:05:22.779756"], ["token", "HEARaM5YxFDATGgRtVT75muL6JTHGAvXbW9qg0TNhSk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"HEARaM5YxFDATGgRtVT75muL6JTHGAvXbW9qg0TNhSk", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:22.803586' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FaABu54AQ6SAmgDCaZpgxa_tqUeU7UWs57pcsmtyvYs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:22.808816"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:22.811075"], ["id", "7de19644-cdb2-11e4-bf09-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7de11dcc-cdb2-11e4-9711-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7de11dcc-cdb2-11e4-9711-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "HEARaM5YxFDATGgRtVT75muL6JTHGAvXbW9qg0TNhSk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7ddf664e-cdb2-11e4-ade8-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7ddf664e-cdb2-11e4-ade8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7de11dcc-cdb2-11e4-9711-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ddf664e-cdb2-11e4-ade8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7de11dcc-cdb2-11e4-9711-705681abff85"], ["admin", "t"], ["organization_id", "7ddf664e-cdb2-11e4-ade8-705681abff85"], ["created_at", "2015-03-18 21:05:22.821877"], ["updated_at", "2015-03-18 21:05:22.821877"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7de22dca-cdb2-11e4-9ccd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 23ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$X8bCZZyyKR/iCW/fr5uaW.DXcCHZKAc2.FmRPuYERPgdDsHUBGPAq"], ["created_at", "2015-03-18 21:05:22.830686"], ["updated_at", "2015-03-18 21:05:22.830686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$4WKt2Yg9aC7rGvMAjd3qguDsnwV76MnyPJw69fVJvj7xAGHkwk85a"], ["created_at", "2015-03-18 21:05:22.834776"], ["updated_at", "2015-03-18 21:05:22.834776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.836226"], ["user_id", "7de9f0fa-cdb2-11e4-b378-705681abff85"], ["created_at", "2015-03-18 21:05:22.836981"], ["updated_at", "2015-03-18 21:05:22.836981"], ["token", "qbYdK42luQ2yzoi0j1oA1Zvx5LkKEYJisRQ98vHE6w8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.840230"], ["updated_at", "2015-03-18 21:05:22.840230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7de9f0fa-cdb2-11e4-b378-705681abff85' AND "clubhouse_memberships"."organization_id" = '7deb63d6-cdb2-11e4-addc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7de9f0fa-cdb2-11e4-b378-705681abff85"], ["organization_id", "7deb63d6-cdb2-11e4-addc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.844216"], ["updated_at", "2015-03-18 21:05:22.844216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dea8cb8-cdb2-11e4-a419-705681abff85' AND "clubhouse_memberships"."organization_id" = '7deb63d6-cdb2-11e4-addc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7dea8cb8-cdb2-11e4-a419-705681abff85"], ["organization_id", "7deb63d6-cdb2-11e4-addc-705681abff85"], ["created_at", "2015-03-18 21:05:22.847142"], ["updated_at", "2015-03-18 21:05:22.847142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:22.851696' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qbYdK42luQ2yzoi0j1oA1Zvx5LkKEYJisRQ98vHE6w8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:22.853105"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:22.854090"], ["id", "7deaeb54-cdb2-11e4-bc42-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7de9f0fa-cdb2-11e4-b378-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7de9f0fa-cdb2-11e4-b378-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "7deb63d6-cdb2-11e4-addc-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('7de9f0fa-cdb2-11e4-b378-705681abff85', '7dea8cb8-cdb2-11e4-a419-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('7deb63d6-cdb2-11e4-addc-705681abff85') Completed 500 Internal Server Error in 17ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$eyWWQJW0aHS1B3rXpjoBiO4bz8NM74f/BziiqziuVTW4R5hxCJAP2"], ["created_at", "2015-03-18 21:05:22.873823"], ["updated_at", "2015-03-18 21:05:22.873823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$JlhgCevB8BQj8lC76GLM3.xzJEV307gEj7Q1/UdD/DgFuypFRgJH."], ["created_at", "2015-03-18 21:05:22.878292"], ["updated_at", "2015-03-18 21:05:22.878292"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.879856"], ["user_id", "7df08884-cdb2-11e4-b168-705681abff85"], ["created_at", "2015-03-18 21:05:22.881109"], ["updated_at", "2015-03-18 21:05:22.881109"], ["token", "qCjjqq0VqZdnUfQ2XRjAX6ZYwk04NAFwq0GL3IQ76yI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.886386"], ["updated_at", "2015-03-18 21:05:22.886386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7df08884-cdb2-11e4-b168-705681abff85' AND "clubhouse_memberships"."organization_id" = '7df26d02-cdb2-11e4-be11-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7df08884-cdb2-11e4-b168-705681abff85"], ["organization_id", "7df26d02-cdb2-11e4-be11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.889724"], ["updated_at", "2015-03-18 21:05:22.889724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7df13162-cdb2-11e4-a5f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7df26d02-cdb2-11e4-be11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7df13162-cdb2-11e4-a5f9-705681abff85"], ["organization_id", "7df26d02-cdb2-11e4-be11-705681abff85"], ["created_at", "2015-03-18 21:05:22.894158"], ["updated_at", "2015-03-18 21:05:22.894158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$hFSMHtsRAuP05PWf.OA8iuvQ5QK95VBqejem6ZRRRTwGoaBH3hdtq"], ["created_at", "2015-03-18 21:05:22.905366"], ["updated_at", "2015-03-18 21:05:22.905366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$G5n0s.vPg9wmyWsEDlR11OnlPNngUHcmOGAcEhXT3i5eBbvyM5mrm"], ["created_at", "2015-03-18 21:05:22.910187"], ["updated_at", "2015-03-18 21:05:22.910187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.911747"], ["user_id", "7df56192-cdb2-11e4-bb63-705681abff85"], ["created_at", "2015-03-18 21:05:22.912556"], ["updated_at", "2015-03-18 21:05:22.912556"], ["token", "mcDRFO4Ka58s2lGNTPOs6L1w9M9W_-avNb7rRIt_SRA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.916013"], ["updated_at", "2015-03-18 21:05:22.916013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7df56192-cdb2-11e4-bb63-705681abff85' AND "clubhouse_memberships"."organization_id" = '7df6f3ea-cdb2-11e4-aea0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7df56192-cdb2-11e4-bb63-705681abff85"], ["organization_id", "7df6f3ea-cdb2-11e4-aea0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.919286"], ["updated_at", "2015-03-18 21:05:22.919286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7df610ba-cdb2-11e4-a470-705681abff85' AND "clubhouse_memberships"."organization_id" = '7df6f3ea-cdb2-11e4-aea0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7df610ba-cdb2-11e4-a470-705681abff85"], ["organization_id", "7df6f3ea-cdb2-11e4-aea0-705681abff85"], ["created_at", "2015-03-18 21:05:22.922693"], ["updated_at", "2015-03-18 21:05:22.922693"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7df6f3ea-cdb2-11e4-aea0-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"7df6f3ea-cdb2-11e4-aea0-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:22.928014' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mcDRFO4Ka58s2lGNTPOs6L1w9M9W_-avNb7rRIt_SRA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:22.929393"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:22.930356"], ["id", "7df67460-cdb2-11e4-a7e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7df56192-cdb2-11e4-bb63-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7df56192-cdb2-11e4-bb63-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7df6f3ea-cdb2-11e4-aea0-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "7df6f3ea-cdb2-11e4-aea0-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('7df56192-cdb2-11e4-bb63-705681abff85', '7df610ba-cdb2-11e4-a470-705681abff85') Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('7df6f3ea-cdb2-11e4-aea0-705681abff85') Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$Qa5fwp0shPsCAgkgp/Mf2OEFWnqNrrGV246Yy2zFf21Q/6NCcwD9e"], ["created_at", "2015-03-18 21:05:22.947370"], ["updated_at", "2015-03-18 21:05:22.947370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$ynMN4fVB5GPOPgOG4eBdK.D82lvrlCPQB3Xff/ml3qMv5jewu2pxm"], ["created_at", "2015-03-18 21:05:22.951764"], ["updated_at", "2015-03-18 21:05:22.951764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.953243"], ["user_id", "7dfbbf06-cdb2-11e4-9d3e-705681abff85"], ["created_at", "2015-03-18 21:05:22.954080"], ["updated_at", "2015-03-18 21:05:22.954080"], ["token", "4rneQymSd_mKwzVpGm3Mdtoenqtyz4mc5jBBMp8JfTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.957491"], ["updated_at", "2015-03-18 21:05:22.957491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dfbbf06-cdb2-11e4-9d3e-705681abff85' AND "clubhouse_memberships"."organization_id" = '7dfd4772-cdb2-11e4-8c52-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7dfbbf06-cdb2-11e4-9d3e-705681abff85"], ["organization_id", "7dfd4772-cdb2-11e4-8c52-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.962323"], ["updated_at", "2015-03-18 21:05:22.962323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dfc682a-cdb2-11e4-a731-705681abff85' AND "clubhouse_memberships"."organization_id" = '7dfd4772-cdb2-11e4-8c52-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7dfc682a-cdb2-11e4-a731-705681abff85"], ["organization_id", "7dfd4772-cdb2-11e4-8c52-705681abff85"], ["created_at", "2015-03-18 21:05:22.970416"], ["updated_at", "2015-03-18 21:05:22.970416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 14:05:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$aY20Z835XnMrGqg4Y.dAxODVzyq9OjN7X8XR5RnCwX8P8OJ8qbNna"], ["created_at", "2015-03-18 21:05:22.984009"], ["updated_at", "2015-03-18 21:05:22.984009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$H7bGhclLe1PtKycdVrN2YOGNWOA.e0J31.m9LelMKCNtObC9uSAq6"], ["created_at", "2015-03-18 21:05:22.988631"], ["updated_at", "2015-03-18 21:05:22.988631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:22.990166"], ["user_id", "7e015ede-cdb2-11e4-b60c-705681abff85"], ["created_at", "2015-03-18 21:05:22.991358"], ["updated_at", "2015-03-18 21:05:22.991358"], ["token", "vgKUECNPfSK6LFVi5fp1sq41E_Xs3V3njvFWisSjqBU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:22.995619"], ["updated_at", "2015-03-18 21:05:22.995619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e015ede-cdb2-11e4-b60c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e031c7e-cdb2-11e4-b7bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7e015ede-cdb2-11e4-b60c-705681abff85"], ["organization_id", "7e031c7e-cdb2-11e4-b7bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:22.999080"], ["updated_at", "2015-03-18 21:05:22.999080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e0208fc-cdb2-11e4-8c9a-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e031c7e-cdb2-11e4-b7bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7e0208fc-cdb2-11e4-8c9a-705681abff85"], ["organization_id", "7e031c7e-cdb2-11e4-b7bb-705681abff85"], ["created_at", "2015-03-18 21:05:23.002167"], ["updated_at", "2015-03-18 21:05:23.002167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 14:05:23 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$9ZWmGu4umO/Qu9jgWGpNueHkh/iZV.EWQQAMKeQG0mXXSbdKTXkSC"], ["created_at", "2015-03-18 21:05:23.012412"], ["updated_at", "2015-03-18 21:05:23.012412"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$Tdc66K40VtVS49Rn6wJBm.lP2R8t/cNZD5mSsjGgwVlGY.fW50dE."], ["created_at", "2015-03-18 21:05:23.017618"], ["updated_at", "2015-03-18 21:05:23.017618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:23.019276"], ["user_id", "7e05ad72-cdb2-11e4-98b2-705681abff85"], ["created_at", "2015-03-18 21:05:23.020107"], ["updated_at", "2015-03-18 21:05:23.020107"], ["token", "0Sx0x8OaddvLiUikwE1BQa_iGpXIU6wcvJoW3c39gdk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:23.023629"], ["updated_at", "2015-03-18 21:05:23.023629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e05ad72-cdb2-11e4-98b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e075f28-cdb2-11e4-b5d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7e05ad72-cdb2-11e4-98b2-705681abff85"], ["organization_id", "7e075f28-cdb2-11e4-b5d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:23.027485"], ["updated_at", "2015-03-18 21:05:23.027485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e0677a2-cdb2-11e4-a928-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e075f28-cdb2-11e4-b5d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7e0677a2-cdb2-11e4-a928-705681abff85"], ["organization_id", "7e075f28-cdb2-11e4-b5d3-705681abff85"], ["created_at", "2015-03-18 21:05:23.031024"], ["updated_at", "2015-03-18 21:05:23.031024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/7e07f988-cdb2-11e4-adaa-705681abff85" for 127.0.0.1 at 2015-03-18 14:05:23 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"7e07f988-cdb2-11e4-adaa-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:23.036268' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0Sx0x8OaddvLiUikwE1BQa_iGpXIU6wcvJoW3c39gdk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:23.038135"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:23.039233"], ["id", "7e06df08-cdb2-11e4-9e1c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7e05ad72-cdb2-11e4-98b2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7e05ad72-cdb2-11e4-98b2-705681abff85"]] Completed 500 Internal Server Error in 39ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$jYHMWnmDuWaogDzptjUI5eKyLg5FvJfp1cI14sxlD5kUHvezj83bO"], ["created_at", "2015-03-18 21:05:23.090859"], ["updated_at", "2015-03-18 21:05:23.090859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$QmsW56lrdHdb740syYc/vurcF00KPOolfTbn.DWHfH7R/KIg2QDW."], ["created_at", "2015-03-18 21:05:23.097117"], ["updated_at", "2015-03-18 21:05:23.097117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:23.099063"], ["user_id", "7e11a7c6-cdb2-11e4-ae4c-705681abff85"], ["created_at", "2015-03-18 21:05:23.099881"], ["updated_at", "2015-03-18 21:05:23.099881"], ["token", "dkrMYAp9RVgsv5dZe_VTrQs0cnSlB-b9vem12DaaihY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:23.103821"], ["updated_at", "2015-03-18 21:05:23.103821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e11a7c6-cdb2-11e4-ae4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e13a4e0-cdb2-11e4-b4cf-705681abff85') LIMIT 1 SQL (7.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7e11a7c6-cdb2-11e4-ae4c-705681abff85"], ["organization_id", "7e13a4e0-cdb2-11e4-b4cf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:23.110378"], ["updated_at", "2015-03-18 21:05:23.110378"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e12a252-cdb2-11e4-9f13-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e13a4e0-cdb2-11e4-b4cf-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7e12a252-cdb2-11e4-9f13-705681abff85"], ["organization_id", "7e13a4e0-cdb2-11e4-b4cf-705681abff85"], ["created_at", "2015-03-18 21:05:23.140029"], ["updated_at", "2015-03-18 21:05:23.140029"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/7e193f04-cdb2-11e4-bda4-705681abff85" for 127.0.0.1 at 2015-03-18 14:05:23 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"7e193f04-cdb2-11e4-bda4-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:23.149249' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dkrMYAp9RVgsv5dZe_VTrQs0cnSlB-b9vem12DaaihY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:23.150729"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:23.151754"], ["id", "7e130e04-cdb2-11e4-9375-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7e11a7c6-cdb2-11e4-ae4c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7e11a7c6-cdb2-11e4-ae4c-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$RKb2tdA8fYcCDBoNd6gCXOUreV77VBlsAXePW1aro6R0ui2txBFW6"], ["created_at", "2015-03-18 21:05:23.168649"], ["updated_at", "2015-03-18 21:05:23.168649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$V5bRUuEOceApAmkCIlyvnuXzmuByOvi/dgCZY.FTmOLA7uDrMOh8S"], ["created_at", "2015-03-18 21:05:23.174116"], ["updated_at", "2015-03-18 21:05:23.174116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:23.175910"], ["user_id", "7e1d864a-cdb2-11e4-a6e6-705681abff85"], ["created_at", "2015-03-18 21:05:23.176995"], ["updated_at", "2015-03-18 21:05:23.176995"], ["token", "PPKj3u1EyJ5m78WPLo3Out5naSKuLyDDWZlaM3rwMxM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:23.184883"], ["updated_at", "2015-03-18 21:05:23.184883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e1d864a-cdb2-11e4-a6e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e1ffe70-cdb2-11e4-97e7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7e1d864a-cdb2-11e4-a6e6-705681abff85"], ["organization_id", "7e1ffe70-cdb2-11e4-97e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:23.189177"], ["updated_at", "2015-03-18 21:05:23.189177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e1e5bf6-cdb2-11e4-9eea-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e1ffe70-cdb2-11e4-97e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7e1e5bf6-cdb2-11e4-9eea-705681abff85"], ["organization_id", "7e1ffe70-cdb2-11e4-97e7-705681abff85"], ["created_at", "2015-03-18 21:05:23.193125"], ["updated_at", "2015-03-18 21:05:23.193125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 14:05:23 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$Dj5dVcACU9TZEhjQP3xg6ujlvNLTCmmekNmaSnaOLGVDy/MZHs3zm"], ["created_at", "2015-03-18 21:05:23.205000"], ["updated_at", "2015-03-18 21:05:23.205000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$nubnUUMc6BWbxk7N6xC9Welg39/wC9lZYm.X9SDoyx8Wt0owFbTJa"], ["created_at", "2015-03-18 21:05:23.210278"], ["updated_at", "2015-03-18 21:05:23.210278"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:23.214074"], ["user_id", "7e23124a-cdb2-11e4-8eff-705681abff85"], ["created_at", "2015-03-18 21:05:23.216862"], ["updated_at", "2015-03-18 21:05:23.216862"], ["token", "w1l6kM5m-zZ4vLUN8Omo6MFJ_EC02IMx7059LnBdhMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:23.222228"], ["updated_at", "2015-03-18 21:05:23.222228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e23124a-cdb2-11e4-8eff-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e25c21a-cdb2-11e4-bb89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7e23124a-cdb2-11e4-8eff-705681abff85"], ["organization_id", "7e25c21a-cdb2-11e4-bb89-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:23.226631"], ["updated_at", "2015-03-18 21:05:23.226631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e23e40e-cdb2-11e4-8fde-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e25c21a-cdb2-11e4-bb89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7e23e40e-cdb2-11e4-8fde-705681abff85"], ["organization_id", "7e25c21a-cdb2-11e4-bb89-705681abff85"], ["created_at", "2015-03-18 21:05:23.230172"], ["updated_at", "2015-03-18 21:05:23.230172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7e265d24-cdb2-11e4-ac37-705681abff85" for 127.0.0.1 at 2015-03-18 14:05:23 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7e265d24-cdb2-11e4-ac37-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:23.234992' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "w1l6kM5m-zZ4vLUN8Omo6MFJ_EC02IMx7059LnBdhMc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:23.237168"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:23.238898"], ["id", "7e250d34-cdb2-11e4-8778-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7e23124a-cdb2-11e4-8eff-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7e23124a-cdb2-11e4-8eff-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$T/UnmSE8tuPTw8pPm6A3B.jAg2zZzxWLBp/rprHfXWHK.JLIn1D5C"], ["created_at", "2015-03-18 21:05:23.258075"], ["updated_at", "2015-03-18 21:05:23.258075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$tT7SZXhIMkdWhv/JdTGMw.MMfgZ4OoLrTHgGQZL9Jr8zMYlIj8zaa"], ["created_at", "2015-03-18 21:05:23.263004"], ["updated_at", "2015-03-18 21:05:23.263004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:05:23.265037"], ["user_id", "7e2b2bce-cdb2-11e4-be5f-705681abff85"], ["created_at", "2015-03-18 21:05:23.265866"], ["updated_at", "2015-03-18 21:05:23.265866"], ["token", "2_XVxI4ya-fSV_PkC68Ba8TP3gvIEACDpbafVblusvQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:05:23.270501"], ["updated_at", "2015-03-18 21:05:23.270501"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e2b2bce-cdb2-11e4-be5f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e2d7b04-cdb2-11e4-828e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7e2b2bce-cdb2-11e4-be5f-705681abff85"], ["organization_id", "7e2d7b04-cdb2-11e4-828e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:05:23.280510"], ["updated_at", "2015-03-18 21:05:23.280510"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e2bea50-cdb2-11e4-8446-705681abff85' AND "clubhouse_memberships"."organization_id" = '7e2d7b04-cdb2-11e4-828e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7e2bea50-cdb2-11e4-8446-705681abff85"], ["organization_id", "7e2d7b04-cdb2-11e4-828e-705681abff85"], ["created_at", "2015-03-18 21:05:23.287148"], ["updated_at", "2015-03-18 21:05:23.287148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7e2f9d8a-cdb2-11e4-b770-705681abff85" for 127.0.0.1 at 2015-03-18 14:05:23 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7e2f9d8a-cdb2-11e4-b770-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:05:23.292611' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2_XVxI4ya-fSV_PkC68Ba8TP3gvIEACDpbafVblusvQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:05:23.294205"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:05:23.295249"], ["id", "7e2c628c-cdb2-11e4-9afc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7e2b2bce-cdb2-11e4-be5f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "7e2b2bce-cdb2-11e4-be5f-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (30.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Wmej/Pgq/1kG3WoWDjl24OHExjmT6cgqRIWiO86oB8k55NMUGLECW"], ["created_at", "2015-03-18 21:07:28.221628"], ["updated_at", "2015-03-18 21:07:28.221628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Pz79DzBWOZeU9eipEvfeXeY/be6HZ7JVrIm7FHc0/VBANuRkqW41i"], ["created_at", "2015-03-18 21:07:28.256909"], ["updated_at", "2015-03-18 21:07:28.256909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.267229"], ["user_id", "c8aa9a72-cdb2-11e4-a21b-705681abff85"], ["created_at", "2015-03-18 21:07:28.304571"], ["updated_at", "2015-03-18 21:07:28.304571"], ["token", "zRTppwYmyts8h_QgTTP9GLaSbwG3oEOo2RqsWWF5zeE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.320244"], ["updated_at", "2015-03-18 21:07:28.320244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8aa9a72-cdb2-11e4-a21b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8b626f8-cdb2-11e4-b793-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8aa9a72-cdb2-11e4-a21b-705681abff85"], ["organization_id", "c8b626f8-cdb2-11e4-b793-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.330849"], ["updated_at", "2015-03-18 21:07:28.330849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8ac76c6-cdb2-11e4-b183-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8b626f8-cdb2-11e4-b793-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8ac76c6-cdb2-11e4-b183-705681abff85"], ["organization_id", "c8b626f8-cdb2-11e4-b793-705681abff85"], ["created_at", "2015-03-18 21:07:28.336335"], ["updated_at", "2015-03-18 21:07:28.336335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$uFUSea2OAu7rpMJ9WgB.WOIMc3UbSp92CCVNjrY64p7aWS3NZ8PKi"], ["created_at", "2015-03-18 21:07:28.372363"], ["updated_at", "2015-03-18 21:07:28.372363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$WXSU49OKNMDlipa9mrTbsOIyUUlrDqirEhHePXv19zKcsGoLhOwVu"], ["created_at", "2015-03-18 21:07:28.376729"], ["updated_at", "2015-03-18 21:07:28.376729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.378442"], ["user_id", "c8be17e6-cdb2-11e4-ba76-705681abff85"], ["created_at", "2015-03-18 21:07:28.379251"], ["updated_at", "2015-03-18 21:07:28.379251"], ["token", "NR7DAwNwZNBWyvNrL75zgaE_u4z0co3wx_zYDXuZdws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.382769"], ["updated_at", "2015-03-18 21:07:28.382769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8be17e6-cdb2-11e4-ba76-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8bfa7fa-cdb2-11e4-9695-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8be17e6-cdb2-11e4-ba76-705681abff85"], ["organization_id", "c8bfa7fa-cdb2-11e4-9695-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.385938"], ["updated_at", "2015-03-18 21:07:28.385938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8bec060-cdb2-11e4-826f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8bfa7fa-cdb2-11e4-9695-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8bec060-cdb2-11e4-826f-705681abff85"], ["organization_id", "c8bfa7fa-cdb2-11e4-9695-705681abff85"], ["created_at", "2015-03-18 21:07:28.388935"], ["updated_at", "2015-03-18 21:07:28.388935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/c8c097dc-cdb2-11e4-9339-705681abff85" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"c8c097dc-cdb2-11e4-9339-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:28.393291' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NR7DAwNwZNBWyvNrL75zgaE_u4z0co3wx_zYDXuZdws"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:28.400201"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:28.401588"], ["id", "c8bf2708-cdb2-11e4-b660-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c8be17e6-cdb2-11e4-ba76-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c8be17e6-cdb2-11e4-ba76-705681abff85"]] Completed 500 Internal Server Error in 46ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$qWQWUelX/QUT5GB3ixV2wewEjQXyd2iFSz7YFDW54x4MyebKx0Qrm"], ["created_at", "2015-03-18 21:07:28.447029"], ["updated_at", "2015-03-18 21:07:28.447029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$6lPazNZQ/.lBTrCdp3DqM.8U1wkNhNy4cFDEKgzr2x/E6ttP9XF7."], ["created_at", "2015-03-18 21:07:28.451899"], ["updated_at", "2015-03-18 21:07:28.451899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.453858"], ["user_id", "c8c97fdc-cdb2-11e4-9af6-705681abff85"], ["created_at", "2015-03-18 21:07:28.454782"], ["updated_at", "2015-03-18 21:07:28.454782"], ["token", "LckgBuPoQC6gBq0X4qktCLAnXDMxpt-ZHJw8hWcJsTg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.458334"], ["updated_at", "2015-03-18 21:07:28.458334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8c97fdc-cdb2-11e4-9af6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8cb30ac-cdb2-11e4-99bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8c97fdc-cdb2-11e4-9af6-705681abff85"], ["organization_id", "c8cb30ac-cdb2-11e4-99bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.461715"], ["updated_at", "2015-03-18 21:07:28.461715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8ca3ab2-cdb2-11e4-839a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8cb30ac-cdb2-11e4-99bb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8ca3ab2-cdb2-11e4-839a-705681abff85"], ["organization_id", "c8cb30ac-cdb2-11e4-99bb-705681abff85"], ["created_at", "2015-03-18 21:07:28.466244"], ["updated_at", "2015-03-18 21:07:28.466244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/c8cbb554-cdb2-11e4-8b59-705681abff85" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"c8cbb554-cdb2-11e4-8b59-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:28.472693' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LckgBuPoQC6gBq0X4qktCLAnXDMxpt-ZHJw8hWcJsTg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:28.474083"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:28.474994"], ["id", "c8cab082-cdb2-11e4-a101-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c8c97fdc-cdb2-11e4-9af6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c8c97fdc-cdb2-11e4-9af6-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$bTLLGe3zNRBgAwNEoWfcauNceMZ2hX8EDjZss2mEbAyX7ifr2l4vS"], ["created_at", "2015-03-18 21:07:28.488943"], ["updated_at", "2015-03-18 21:07:28.488943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$/O6je.YnUlf0c3CNhwOSg.2d//ffAeydxqSNtwvTA4ml0BcZtbIte"], ["created_at", "2015-03-18 21:07:28.493630"], ["updated_at", "2015-03-18 21:07:28.493630"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.495744"], ["user_id", "c8cfeade-cdb2-11e4-bebf-705681abff85"], ["created_at", "2015-03-18 21:07:28.496916"], ["updated_at", "2015-03-18 21:07:28.496916"], ["token", "eFyvq1j5vYmh5M-nx-h4DlSUTH2Xdkqcvz6M2UjY1aI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.500631"], ["updated_at", "2015-03-18 21:07:28.500631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8cfeade-cdb2-11e4-bebf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8d1a478-cdb2-11e4-9a17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8cfeade-cdb2-11e4-bebf-705681abff85"], ["organization_id", "c8d1a478-cdb2-11e4-9a17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.503845"], ["updated_at", "2015-03-18 21:07:28.503845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8d094ac-cdb2-11e4-a05a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8d1a478-cdb2-11e4-9a17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8d094ac-cdb2-11e4-a05a-705681abff85"], ["organization_id", "c8d1a478-cdb2-11e4-9a17-705681abff85"], ["created_at", "2015-03-18 21:07:28.506785"], ["updated_at", "2015-03-18 21:07:28.506785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$/xs6OuVHNAvELI2OuFejc.vOKOxMMnA3.M0ibjBY9kscQqUOMbFjK"], ["created_at", "2015-03-18 21:07:28.511008"], ["updated_at", "2015-03-18 21:07:28.511008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.512577"], ["user_id", "c8d33a72-cdb2-11e4-8aca-705681abff85"], ["created_at", "2015-03-18 21:07:28.513319"], ["updated_at", "2015-03-18 21:07:28.513319"], ["token", "TzoVIS32P8v3yS4ol0r_w8iD8egCkSiDGjmYMJqWcws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'c8d1a478-cdb2-11e4-9a17-705681abff85') LIMIT 1 SQL (3.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "c8d1a478-cdb2-11e4-9a17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.523171"], ["updated_at", "2015-03-18 21:07:28.523171"], ["token", "PDs55_F29lqrFPxDshlmvkdTfWiRgnvnpxHtPF2MGVg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Hd9byHew/5DQ9yfWqJa.uOgV/F6xoFj5TGbMH4sdPqWy5bT1kMkN."], ["created_at", "2015-03-18 21:07:28.537552"], ["updated_at", "2015-03-18 21:07:28.537552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$IrIIlKz6AUVCDlmJNzmLmuSrQCB9MS39IvWCjH51m9RQYhp2HHhwW"], ["created_at", "2015-03-18 21:07:28.541826"], ["updated_at", "2015-03-18 21:07:28.541826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.543337"], ["user_id", "c8d748b0-cdb2-11e4-8411-705681abff85"], ["created_at", "2015-03-18 21:07:28.544059"], ["updated_at", "2015-03-18 21:07:28.544059"], ["token", "8qVMfTR1vuk-WLgF5EUbb98z62Tiq1s5HJxzNiDIDHA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.548458"], ["updated_at", "2015-03-18 21:07:28.548458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8d748b0-cdb2-11e4-8411-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8d8f1c4-cdb2-11e4-a0a9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8d748b0-cdb2-11e4-8411-705681abff85"], ["organization_id", "c8d8f1c4-cdb2-11e4-a0a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.551898"], ["updated_at", "2015-03-18 21:07:28.551898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8d7ecf2-cdb2-11e4-af82-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8d8f1c4-cdb2-11e4-a0a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8d7ecf2-cdb2-11e4-af82-705681abff85"], ["organization_id", "c8d8f1c4-cdb2-11e4-a0a9-705681abff85"], ["created_at", "2015-03-18 21:07:28.555556"], ["updated_at", "2015-03-18 21:07:28.555556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$8Lo9ToLoGQVZxN5MTrLoK.3ZBFXrPZssNjbCl000dD5klfS97kyqu"], ["created_at", "2015-03-18 21:07:28.560200"], ["updated_at", "2015-03-18 21:07:28.560200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.561874"], ["user_id", "c8dabcf2-cdb2-11e4-b440-705681abff85"], ["created_at", "2015-03-18 21:07:28.562771"], ["updated_at", "2015-03-18 21:07:28.562771"], ["token", "9WJV-zEjr98kgsnksPgJOb-yMJCRgo8HihvQ9CWUQ4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'c8d8f1c4-cdb2-11e4-a0a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "c8d8f1c4-cdb2-11e4-a0a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.566692"], ["updated_at", "2015-03-18 21:07:28.566692"], ["token", "kBPf95w4O_bPgTCtW4P3eiXV5eXxA_Ak7XnawHcylrI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c8d8f1c4-cdb2-11e4-a0a9-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"kBPf95w4O_bPgTCtW4P3eiXV5eXxA_Ak7XnawHcylrI", "organization_id"=>"c8d8f1c4-cdb2-11e4-a0a9-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:28.571399' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9WJV-zEjr98kgsnksPgJOb-yMJCRgo8HihvQ9CWUQ4w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:28.572929"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:28.573892"], ["id", "c8db2ba6-cdb2-11e4-87cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c8dabcf2-cdb2-11e4-b440-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c8dabcf2-cdb2-11e4-b440-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c8d8f1c4-cdb2-11e4-a0a9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "kBPf95w4O_bPgTCtW4P3eiXV5eXxA_Ak7XnawHcylrI"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c8d8f1c4-cdb2-11e4-a0a9-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c8d8f1c4-cdb2-11e4-a0a9-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8dabcf2-cdb2-11e4-b440-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8d8f1c4-cdb2-11e4-a0a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8dabcf2-cdb2-11e4-b440-705681abff85"], ["admin", "t"], ["organization_id", "c8d8f1c4-cdb2-11e4-a0a9-705681abff85"], ["created_at", "2015-03-18 21:07:28.587572"], ["updated_at", "2015-03-18 21:07:28.587572"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "c8dbbef4-cdb2-11e4-b5df-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 23ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$sLXQD3NrlNtHuyW59JLJvOUh4ydro3CBGz5PCX0TKInWkkF0Bi2qe"], ["created_at", "2015-03-18 21:07:28.601382"], ["updated_at", "2015-03-18 21:07:28.601382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ya/zDTv7JlbdCamRzeY/Tu2nfGBKDA.Vm4yKYZbjgoMjfsXdNqcui"], ["created_at", "2015-03-18 21:07:28.606463"], ["updated_at", "2015-03-18 21:07:28.606463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.608092"], ["user_id", "c8e10e54-cdb2-11e4-9c5a-705681abff85"], ["created_at", "2015-03-18 21:07:28.608865"], ["updated_at", "2015-03-18 21:07:28.608865"], ["token", "ZD60EQ9WPOPeHxOG1AczUBt01bHKMQ1NTl2uCfVjhUY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.612643"], ["updated_at", "2015-03-18 21:07:28.612643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8e10e54-cdb2-11e4-9c5a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8e2bf2e-cdb2-11e4-a9eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8e10e54-cdb2-11e4-9c5a-705681abff85"], ["organization_id", "c8e2bf2e-cdb2-11e4-a9eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.616532"], ["updated_at", "2015-03-18 21:07:28.616532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8e1cc2c-cdb2-11e4-a693-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8e2bf2e-cdb2-11e4-a9eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8e1cc2c-cdb2-11e4-a693-705681abff85"], ["organization_id", "c8e2bf2e-cdb2-11e4-a9eb-705681abff85"], ["created_at", "2015-03-18 21:07:28.619877"], ["updated_at", "2015-03-18 21:07:28.619877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$4kSqVIBwXTvHicopgd.aq.RaRj62H.2vdmSrHjQ/hHNNwwroeH5j2"], ["created_at", "2015-03-18 21:07:28.624387"], ["updated_at", "2015-03-18 21:07:28.624387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.626115"], ["user_id", "c8e4894e-cdb2-11e4-ad55-705681abff85"], ["created_at", "2015-03-18 21:07:28.626935"], ["updated_at", "2015-03-18 21:07:28.626935"], ["token", "DXWnDQ5yBkJmLKoro_p7vVlRao4Re7j38nJP2-7vSqc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c8e2bf2e-cdb2-11e4-a9eb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c8e2bf2e-cdb2-11e4-a9eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.630880"], ["updated_at", "2015-03-18 21:07:28.630880"], ["token", "cFqNle6AuEgg4dYk6tRc45kvl5R9RES0aGvj5DxHiL8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c8e2bf2e-cdb2-11e4-a9eb-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"c8e2bf2e-cdb2-11e4-a9eb-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:28.636315' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DXWnDQ5yBkJmLKoro_p7vVlRao4Re7j38nJP2-7vSqc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:28.638384"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:28.639449"], ["id", "c8e4f424-cdb2-11e4-add5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c8e4894e-cdb2-11e4-ad55-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c8e4894e-cdb2-11e4-ad55-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c8e2bf2e-cdb2-11e4-a9eb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 21ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$AsUkVOk2PLMs2LRUN4DpfuE6chg2ThkzmVR22cCgRWZpjojNHcSKi"], ["created_at", "2015-03-18 21:07:28.662809"], ["updated_at", "2015-03-18 21:07:28.662809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$GV2QrWAZwHB8hwMNAWogsuV.vRdp/1q5JzbEE76mdclR5skbAzyKG"], ["created_at", "2015-03-18 21:07:28.667149"], ["updated_at", "2015-03-18 21:07:28.667149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.668787"], ["user_id", "c8ea6652-cdb2-11e4-8da3-705681abff85"], ["created_at", "2015-03-18 21:07:28.669651"], ["updated_at", "2015-03-18 21:07:28.669651"], ["token", "X321ox_Nbm9c7PXD6h-T9yOr6vZlW4398Qx4fpiqqTw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.673163"], ["updated_at", "2015-03-18 21:07:28.673163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8ea6652-cdb2-11e4-8da3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8ebf6e8-cdb2-11e4-8256-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8ea6652-cdb2-11e4-8da3-705681abff85"], ["organization_id", "c8ebf6e8-cdb2-11e4-8256-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.676383"], ["updated_at", "2015-03-18 21:07:28.676383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8eb0e0e-cdb2-11e4-8fdd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8ebf6e8-cdb2-11e4-8256-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8eb0e0e-cdb2-11e4-8fdd-705681abff85"], ["organization_id", "c8ebf6e8-cdb2-11e4-8256-705681abff85"], ["created_at", "2015-03-18 21:07:28.679480"], ["updated_at", "2015-03-18 21:07:28.679480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$nZGKysak8qBTbZK/PJKfbeMad81JIJS2U7Ir9zaWHFhuF1gALu.rS"], ["created_at", "2015-03-18 21:07:28.690143"], ["updated_at", "2015-03-18 21:07:28.690143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$JUVq/TX6.WsLyUNuzP7bOOJxIgpkIP.nNx3zgpYVbyqAFQb/8NhCO"], ["created_at", "2015-03-18 21:07:28.694717"], ["updated_at", "2015-03-18 21:07:28.694717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.696505"], ["user_id", "c8ee9164-cdb2-11e4-8a23-705681abff85"], ["created_at", "2015-03-18 21:07:28.697287"], ["updated_at", "2015-03-18 21:07:28.697287"], ["token", "E_nF3LjC2F12QprRDuWsnG3wJ1yAnFuFmzSaKrazH0s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.701786"], ["updated_at", "2015-03-18 21:07:28.701786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8ee9164-cdb2-11e4-8a23-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8f05c6a-cdb2-11e4-aa1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8ee9164-cdb2-11e4-8a23-705681abff85"], ["organization_id", "c8f05c6a-cdb2-11e4-aa1d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.705402"], ["updated_at", "2015-03-18 21:07:28.705402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8ef48a2-cdb2-11e4-96e6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8f05c6a-cdb2-11e4-aa1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8ef48a2-cdb2-11e4-96e6-705681abff85"], ["organization_id", "c8f05c6a-cdb2-11e4-aa1d-705681abff85"], ["created_at", "2015-03-18 21:07:28.708467"], ["updated_at", "2015-03-18 21:07:28.708467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/c8f0e400-cdb2-11e4-b13c-705681abff85" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"c8f0e400-cdb2-11e4-b13c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:28.712892' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "E_nF3LjC2F12QprRDuWsnG3wJ1yAnFuFmzSaKrazH0s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:28.714375"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:28.715334"], ["id", "c8efc610-cdb2-11e4-a631-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c8ee9164-cdb2-11e4-8a23-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c8ee9164-cdb2-11e4-8a23-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "c8f0e400-cdb2-11e4-b13c-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$o6xLECs.ZLsOo7JYWMDQE.NoxxP4FJIt/jdPoBTaYviV.rXa1pHQK"], ["created_at", "2015-03-18 21:07:28.730840"], ["updated_at", "2015-03-18 21:07:28.730840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$L3a9d.Eq4jqLGgomt/iilurimOuYLIT.IrDalCBtTS3QAXc02aTOG"], ["created_at", "2015-03-18 21:07:28.735016"], ["updated_at", "2015-03-18 21:07:28.735016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.736535"], ["user_id", "c8f4c872-cdb2-11e4-8b18-705681abff85"], ["created_at", "2015-03-18 21:07:28.737288"], ["updated_at", "2015-03-18 21:07:28.737288"], ["token", "L1vbZ7dN6o-Ek451kJvKMKiNBz1x3A6I5L2hNW2PIdQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.740565"], ["updated_at", "2015-03-18 21:07:28.740565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8f4c872-cdb2-11e4-8b18-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8f63f86-cdb2-11e4-9b20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8f4c872-cdb2-11e4-8b18-705681abff85"], ["organization_id", "c8f63f86-cdb2-11e4-9b20-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.743712"], ["updated_at", "2015-03-18 21:07:28.743712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8f56750-cdb2-11e4-b5b9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8f63f86-cdb2-11e4-9b20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8f56750-cdb2-11e4-b5b9-705681abff85"], ["organization_id", "c8f63f86-cdb2-11e4-9b20-705681abff85"], ["created_at", "2015-03-18 21:07:28.746692"], ["updated_at", "2015-03-18 21:07:28.746692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$L5JnV0AMk1jNnYApAuXfA.wcj4ZSKeq84PCQ.HkJRcmngiEepKS/a"], ["created_at", "2015-03-18 21:07:28.756701"], ["updated_at", "2015-03-18 21:07:28.756701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$Evtusg/SXCkSgAP5Kuf0EuOHBykE2tPpxLBBdgEscqTEZCSpP8SIi"], ["created_at", "2015-03-18 21:07:28.761127"], ["updated_at", "2015-03-18 21:07:28.761127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.763140"], ["user_id", "c8f8ba54-cdb2-11e4-a15b-705681abff85"], ["created_at", "2015-03-18 21:07:28.763971"], ["updated_at", "2015-03-18 21:07:28.763971"], ["token", "NQOKJU094SbaiIiTgCpqxCf0faox5BguLBoUAl9M23Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.767421"], ["updated_at", "2015-03-18 21:07:28.767421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8f8ba54-cdb2-11e4-a15b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8fa5954-cdb2-11e4-b67e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8f8ba54-cdb2-11e4-a15b-705681abff85"], ["organization_id", "c8fa5954-cdb2-11e4-b67e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.770628"], ["updated_at", "2015-03-18 21:07:28.770628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8f969fe-cdb2-11e4-a723-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c8fa5954-cdb2-11e4-b67e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8f969fe-cdb2-11e4-a723-705681abff85"], ["organization_id", "c8fa5954-cdb2-11e4-b67e-705681abff85"], ["created_at", "2015-03-18 21:07:28.774169"], ["updated_at", "2015-03-18 21:07:28.774169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:28.778799' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NQOKJU094SbaiIiTgCpqxCf0faox5BguLBoUAl9M23Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:28.780626"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:28.781790"], ["id", "c8f9dccc-cdb2-11e4-b111-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (12.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c8f8ba54-cdb2-11e4-a15b-705681abff85"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c8f8ba54-cdb2-11e4-a15b-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "c8fa5954-cdb2-11e4-b67e-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('c8f8ba54-cdb2-11e4-a15b-705681abff85', 'c8f969fe-cdb2-11e4-a723-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('c8fa5954-cdb2-11e4-b67e-705681abff85') Completed 500 Internal Server Error in 36ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$yUvjsnWOS5p5Qe/c0qdBIuRmUwvyRocnmVvSHUjFvFljXRLuGeSbq"], ["created_at", "2015-03-18 21:07:28.820457"], ["updated_at", "2015-03-18 21:07:28.820457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$.LgFgC7zRUJ/0diKZFCEXOcyqodJ8vN/6p5Ub5LSricRhuTmRpogm"], ["created_at", "2015-03-18 21:07:28.824627"], ["updated_at", "2015-03-18 21:07:28.824627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.826123"], ["user_id", "c90273be-cdb2-11e4-bf9a-705681abff85"], ["created_at", "2015-03-18 21:07:28.826874"], ["updated_at", "2015-03-18 21:07:28.826874"], ["token", "UcIsIl5BFnnza2PSfOUunF5gMrcEvpDPNsKT4hlJZa4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.830157"], ["updated_at", "2015-03-18 21:07:28.830157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c90273be-cdb2-11e4-bf9a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c903ead2-cdb2-11e4-aa15-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c90273be-cdb2-11e4-bf9a-705681abff85"], ["organization_id", "c903ead2-cdb2-11e4-aa15-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.833361"], ["updated_at", "2015-03-18 21:07:28.833361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c903140e-cdb2-11e4-84d2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c903ead2-cdb2-11e4-aa15-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c903140e-cdb2-11e4-84d2-705681abff85"], ["organization_id", "c903ead2-cdb2-11e4-aa15-705681abff85"], ["created_at", "2015-03-18 21:07:28.836273"], ["updated_at", "2015-03-18 21:07:28.836273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$ojytWRM9cJTBGtiNmqnj.uqRKAvJrdfeSQRtfyBI92LCZvwj38sTO"], ["created_at", "2015-03-18 21:07:28.845897"], ["updated_at", "2015-03-18 21:07:28.845897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$oWdtawJcmg5rMlGcgLsTVehbU0NHi7FMBJ6v.pVU85UzXIZoGknHK"], ["created_at", "2015-03-18 21:07:28.849991"], ["updated_at", "2015-03-18 21:07:28.849991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.851735"], ["user_id", "c90655ba-cdb2-11e4-85c5-705681abff85"], ["created_at", "2015-03-18 21:07:28.852684"], ["updated_at", "2015-03-18 21:07:28.852684"], ["token", "dnEqIbfHp9sbhoKXpTxgVxims1FuLts2rXrwJmDijGo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.856425"], ["updated_at", "2015-03-18 21:07:28.856425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c90655ba-cdb2-11e4-85c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c907f17c-cdb2-11e4-963c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c90655ba-cdb2-11e4-85c5-705681abff85"], ["organization_id", "c907f17c-cdb2-11e4-963c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.859897"], ["updated_at", "2015-03-18 21:07:28.859897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c906f362-cdb2-11e4-ad52-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c907f17c-cdb2-11e4-963c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c906f362-cdb2-11e4-ad52-705681abff85"], ["organization_id", "c907f17c-cdb2-11e4-963c-705681abff85"], ["created_at", "2015-03-18 21:07:28.862940"], ["updated_at", "2015-03-18 21:07:28.862940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c907f17c-cdb2-11e4-963c-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"c907f17c-cdb2-11e4-963c-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:28.868199' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dnEqIbfHp9sbhoKXpTxgVxims1FuLts2rXrwJmDijGo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:28.869600"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:28.870851"], ["id", "c9076c0c-cdb2-11e4-afba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c90655ba-cdb2-11e4-85c5-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c90655ba-cdb2-11e4-85c5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c907f17c-cdb2-11e4-963c-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "c907f17c-cdb2-11e4-963c-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('c90655ba-cdb2-11e4-85c5-705681abff85', 'c906f362-cdb2-11e4-ad52-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('c907f17c-cdb2-11e4-963c-705681abff85') Completed 500 Internal Server Error in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$QtDnVjBzFH4dgNz/896NoO9BHUwLsCg4/38Fm.Bx6cVzrjpQo.hQe"], ["created_at", "2015-03-18 21:07:28.886832"], ["updated_at", "2015-03-18 21:07:28.886832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$b4JaJ0ZpeM6E74wEdoPsRuZI5KPs.ya2H13I/csMppRUnrZFY1RPC"], ["created_at", "2015-03-18 21:07:28.891104"], ["updated_at", "2015-03-18 21:07:28.891104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.892585"], ["user_id", "c90c93bc-cdb2-11e4-9f5e-705681abff85"], ["created_at", "2015-03-18 21:07:28.893364"], ["updated_at", "2015-03-18 21:07:28.893364"], ["token", "_InLd_COYicQs6s01v3BnEyUwAantIsPZ0AgAqHl074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.897021"], ["updated_at", "2015-03-18 21:07:28.897021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c90c93bc-cdb2-11e4-9f5e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c90e2434-cdb2-11e4-81f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c90c93bc-cdb2-11e4-9f5e-705681abff85"], ["organization_id", "c90e2434-cdb2-11e4-81f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.900316"], ["updated_at", "2015-03-18 21:07:28.900316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c90d3880-cdb2-11e4-87fa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c90e2434-cdb2-11e4-81f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c90d3880-cdb2-11e4-87fa-705681abff85"], ["organization_id", "c90e2434-cdb2-11e4-81f7-705681abff85"], ["created_at", "2015-03-18 21:07:28.903372"], ["updated_at", "2015-03-18 21:07:28.903372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$lYaPjH8oqzNsq2ONWs0D5OJT2FMluliakPOT6BuKL8mAM83q7NsWy"], ["created_at", "2015-03-18 21:07:28.913208"], ["updated_at", "2015-03-18 21:07:28.913208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$4j0jKVhC7A5WIHZ.QHMny.52tDnh6Tyo1MevtwZSJGcPAEbwsbCsy"], ["created_at", "2015-03-18 21:07:28.920502"], ["updated_at", "2015-03-18 21:07:28.920502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.922410"], ["user_id", "c9109b1a-cdb2-11e4-a095-705681abff85"], ["created_at", "2015-03-18 21:07:28.923189"], ["updated_at", "2015-03-18 21:07:28.923189"], ["token", "wzw7lCecorf4nkMwiSRnDPUIwIIui6Hs7lrnO74EqCY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.927179"], ["updated_at", "2015-03-18 21:07:28.927179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9109b1a-cdb2-11e4-a095-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c912ba62-cdb2-11e4-b154-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c9109b1a-cdb2-11e4-a095-705681abff85"], ["organization_id", "c912ba62-cdb2-11e4-b154-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.930481"], ["updated_at", "2015-03-18 21:07:28.930481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c911be1e-cdb2-11e4-806e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c912ba62-cdb2-11e4-b154-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c911be1e-cdb2-11e4-806e-705681abff85"], ["organization_id", "c912ba62-cdb2-11e4-b154-705681abff85"], ["created_at", "2015-03-18 21:07:28.934127"], ["updated_at", "2015-03-18 21:07:28.934127"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/c913cbc8-cdb2-11e4-985c-705681abff85" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"c913cbc8-cdb2-11e4-985c-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:28.942830' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wzw7lCecorf4nkMwiSRnDPUIwIIui6Hs7lrnO74EqCY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:28.944237"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:28.945172"], ["id", "c9123574-cdb2-11e4-8b75-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c9109b1a-cdb2-11e4-a095-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c9109b1a-cdb2-11e4-a095-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$cnPYzijSgSW/JVgCOYPedO5DXRU79LcgFtOW5.oo29.aIJo9wcvpy"], ["created_at", "2015-03-18 21:07:28.956283"], ["updated_at", "2015-03-18 21:07:28.956283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$fxX.6zwK0VgiYd2X.Yk1jeWPmOKvSPlu81FwiLWrPt/Gw3flmxjZC"], ["created_at", "2015-03-18 21:07:28.961204"], ["updated_at", "2015-03-18 21:07:28.961204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:28.963080"], ["user_id", "c9172d2c-cdb2-11e4-9390-705681abff85"], ["created_at", "2015-03-18 21:07:28.963925"], ["updated_at", "2015-03-18 21:07:28.963925"], ["token", "oaxOEgNBDMsiMU6zjmMEcFp7EPCGqZKY94mtixZCFkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:28.967383"], ["updated_at", "2015-03-18 21:07:28.967383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9172d2c-cdb2-11e4-9390-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c918dc8a-cdb2-11e4-b623-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c9172d2c-cdb2-11e4-9390-705681abff85"], ["organization_id", "c918dc8a-cdb2-11e4-b623-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:28.970731"], ["updated_at", "2015-03-18 21:07:28.970731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c917f13a-cdb2-11e4-90c7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c918dc8a-cdb2-11e4-b623-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c917f13a-cdb2-11e4-90c7-705681abff85"], ["organization_id", "c918dc8a-cdb2-11e4-b623-705681abff85"], ["created_at", "2015-03-18 21:07:28.973778"], ["updated_at", "2015-03-18 21:07:28.973778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/c9195fd4-cdb2-11e4-802e-705681abff85" for 127.0.0.1 at 2015-03-18 14:07:28 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"c9195fd4-cdb2-11e4-802e-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:28.978465' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oaxOEgNBDMsiMU6zjmMEcFp7EPCGqZKY94mtixZCFkA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:28.980351"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:28.981787"], ["id", "c9185f6c-cdb2-11e4-80e9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c9172d2c-cdb2-11e4-9390-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c9172d2c-cdb2-11e4-9390-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$i1neofoveKIF08ZaYl.ee.Yjwtr5tXuosgiSNTresckjXYzz/t9Cy"], ["created_at", "2015-03-18 21:07:28.994510"], ["updated_at", "2015-03-18 21:07:28.994510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$1Jl9/sQcZgV/DrZCBqno2Ow3/EwJjEtdJfrj02F2GzbFuSyIH/OBO"], ["created_at", "2015-03-18 21:07:28.999231"], ["updated_at", "2015-03-18 21:07:28.999231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:29.001154"], ["user_id", "c91d0396-cdb2-11e4-8f09-705681abff85"], ["created_at", "2015-03-18 21:07:29.008537"], ["updated_at", "2015-03-18 21:07:29.008537"], ["token", "lSiLKWYwNjOt24ofN1YbwR_L4ohKwd2ywxSVwALu014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:29.012047"], ["updated_at", "2015-03-18 21:07:29.012047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c91d0396-cdb2-11e4-8f09-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c91fadda-cdb2-11e4-a2f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c91d0396-cdb2-11e4-8f09-705681abff85"], ["organization_id", "c91fadda-cdb2-11e4-a2f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:29.015514"], ["updated_at", "2015-03-18 21:07:29.015514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c91dc218-cdb2-11e4-80b6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c91fadda-cdb2-11e4-a2f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c91dc218-cdb2-11e4-80b6-705681abff85"], ["organization_id", "c91fadda-cdb2-11e4-a2f8-705681abff85"], ["created_at", "2015-03-18 21:07:29.018604"], ["updated_at", "2015-03-18 21:07:29.018604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$j1SFsVEDq3Gva7yab2PRv.Ctrm2bHqSQQDh04.ggrjKAUNmxnLblG"], ["created_at", "2015-03-18 21:07:29.022928"], ["updated_at", "2015-03-18 21:07:29.022928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:29.024548"], ["user_id", "c92157ac-cdb2-11e4-8376-705681abff85"], ["created_at", "2015-03-18 21:07:29.025321"], ["updated_at", "2015-03-18 21:07:29.025321"], ["token", "tC50lZj16Kx9fOGv4XVPFf90JDbfB85_H_3MWNUi5L0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'c91fadda-cdb2-11e4-a2f8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "c91fadda-cdb2-11e4-a2f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:29.029309"], ["updated_at", "2015-03-18 21:07:29.029309"], ["token", "IB64iJn23NDdvAuhxFQnVyH0waRRSNnhCUAjdb-HwcQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 14:07:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$B2Tg0jAxOBojU9eO8tT0I.NFX6zJ.M.MnHcJ0n1/Fh1VuFh0rolUq"], ["created_at", "2015-03-18 21:07:29.039971"], ["updated_at", "2015-03-18 21:07:29.039971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$SFLlByRxcFlN/M51ov8bAuTL4tPUEFwNRGVlUkpVjXvAZwf0LV4K6"], ["created_at", "2015-03-18 21:07:29.044192"], ["updated_at", "2015-03-18 21:07:29.044192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:29.045669"], ["user_id", "c923f28c-cdb2-11e4-a089-705681abff85"], ["created_at", "2015-03-18 21:07:29.046425"], ["updated_at", "2015-03-18 21:07:29.046425"], ["token", "_XENhRuIlN_6gxibLG1QUTx5nzOljTLhvaR18Y0n1gs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:29.050832"], ["updated_at", "2015-03-18 21:07:29.050832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c923f28c-cdb2-11e4-a089-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c9259b50-cdb2-11e4-830a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c923f28c-cdb2-11e4-a089-705681abff85"], ["organization_id", "c9259b50-cdb2-11e4-830a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:29.054200"], ["updated_at", "2015-03-18 21:07:29.054200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9249494-cdb2-11e4-b27a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c9259b50-cdb2-11e4-830a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c9249494-cdb2-11e4-b27a-705681abff85"], ["organization_id", "c9259b50-cdb2-11e4-830a-705681abff85"], ["created_at", "2015-03-18 21:07:29.059026"], ["updated_at", "2015-03-18 21:07:29.059026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$0cfUh2Ggl8e0WkD6QlOawe9Yf7lsa1h4zvdysnrXDGHLHgk/o9mcS"], ["created_at", "2015-03-18 21:07:29.064900"], ["updated_at", "2015-03-18 21:07:29.064900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:29.066777"], ["user_id", "c927c588-cdb2-11e4-b756-705681abff85"], ["created_at", "2015-03-18 21:07:29.067627"], ["updated_at", "2015-03-18 21:07:29.067627"], ["token", "LCHqj_6gMhb1H2OV9P8a_Qgy0fQouCp2VnmnA2Otm7E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'c9259b50-cdb2-11e4-830a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "c9259b50-cdb2-11e4-830a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:29.071586"], ["updated_at", "2015-03-18 21:07:29.071586"], ["token", "CbY4sy24lK2quq3AeWrdWXgILgJBguzhxMCm30IyLg4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:07:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"CbY4sy24lK2quq3AeWrdWXgILgJBguzhxMCm30IyLg4", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:29.076433' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LCHqj_6gMhb1H2OV9P8a_Qgy0fQouCp2VnmnA2Otm7E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:29.077844"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:29.078775"], ["id", "c928372a-cdb2-11e4-b9a7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c927c588-cdb2-11e4-b756-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c927c588-cdb2-11e4-b756-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "CbY4sy24lK2quq3AeWrdWXgILgJBguzhxMCm30IyLg4"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c9259b50-cdb2-11e4-830a-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c9259b50-cdb2-11e4-830a-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c927c588-cdb2-11e4-b756-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c9259b50-cdb2-11e4-830a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c927c588-cdb2-11e4-b756-705681abff85"], ["admin", "t"], ["organization_id", "c9259b50-cdb2-11e4-830a-705681abff85"], ["created_at", "2015-03-18 21:07:29.088425"], ["updated_at", "2015-03-18 21:07:29.088425"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "c928ca28-cdb2-11e4-9a38-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 16ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$9.cgyOfHSam/RkrHI5qXRusgwIBSZxxxFncqeW88usw8hIEH2BQkq"], ["created_at", "2015-03-18 21:07:29.097341"], ["updated_at", "2015-03-18 21:07:29.097341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$dsDICG/CqYaen3vARMPV7.7TXjxsn3MinoGoOGSBAqQeFqY2g99yS"], ["created_at", "2015-03-18 21:07:29.102216"], ["updated_at", "2015-03-18 21:07:29.102216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:29.103827"], ["user_id", "c92cb5d4-cdb2-11e4-8cc8-705681abff85"], ["created_at", "2015-03-18 21:07:29.104619"], ["updated_at", "2015-03-18 21:07:29.104619"], ["token", "sSGzMqwRcX4r32jPkSHL8ZGOCB3hTUs1ZQ-lbLPy7gc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:07:29.108220"], ["updated_at", "2015-03-18 21:07:29.108220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c92cb5d4-cdb2-11e4-8cc8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c92e5ba0-cdb2-11e4-812f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c92cb5d4-cdb2-11e4-8cc8-705681abff85"], ["organization_id", "c92e5ba0-cdb2-11e4-812f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:29.111510"], ["updated_at", "2015-03-18 21:07:29.111510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c92d71f4-cdb2-11e4-afeb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c92e5ba0-cdb2-11e4-812f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c92d71f4-cdb2-11e4-afeb-705681abff85"], ["organization_id", "c92e5ba0-cdb2-11e4-812f-705681abff85"], ["created_at", "2015-03-18 21:07:29.114657"], ["updated_at", "2015-03-18 21:07:29.114657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$quSTLnjd9rde4pga4.wDOO5a9YnAXqLOxp8AKIRip9x5yZQo5Imy."], ["created_at", "2015-03-18 21:07:29.119041"], ["updated_at", "2015-03-18 21:07:29.119041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:07:29.120777"], ["user_id", "c930040a-cdb2-11e4-8708-705681abff85"], ["created_at", "2015-03-18 21:07:29.121551"], ["updated_at", "2015-03-18 21:07:29.121551"], ["token", "z7JgtpGYaEYwPf3VSz8nwNOfnLq8h8Dh4tS8ndcCVig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'c92e5ba0-cdb2-11e4-812f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "c92e5ba0-cdb2-11e4-812f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:07:29.125279"], ["updated_at", "2015-03-18 21:07:29.125279"], ["token", "WJwR95BGQftssHjM7prValVfu6gxnVahM5SgmS5FGj8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:07:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:07:29.129842' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z7JgtpGYaEYwPf3VSz8nwNOfnLq8h8Dh4tS8ndcCVig"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:07:29.131262"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:07:29.132177"], ["id", "c9306c7e-cdb2-11e4-9401-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c930040a-cdb2-11e4-8708-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c930040a-cdb2-11e4-8708-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (30.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$IZq5cFR2IA7YJG5fp5jm4O7PjltICTUIUSBloFNiTNozDfjnjpT9e"], ["created_at", "2015-03-18 21:09:04.858768"], ["updated_at", "2015-03-18 21:09:04.858768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$T4P99Qp9B1e9ykkM/6scIuzclLWL8HEhHBhIS/lzaTU8BvL9CX5TO"], ["created_at", "2015-03-18 21:09:04.894872"], ["updated_at", "2015-03-18 21:09:04.894872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:04.905383"], ["user_id", "0244a85e-cdb3-11e4-aedf-705681abff85"], ["created_at", "2015-03-18 21:09:04.942796"], ["updated_at", "2015-03-18 21:09:04.942796"], ["token", "lrB6u_Xg8exPMqwKIngdv6VPdFdfIYValltxFCRYeIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:04.958163"], ["updated_at", "2015-03-18 21:09:04.958163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0244a85e-cdb3-11e4-aedf-705681abff85' AND "clubhouse_memberships"."organization_id" = '024ff664-cdb3-11e4-8e72-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0244a85e-cdb3-11e4-aedf-705681abff85"], ["organization_id", "024ff664-cdb3-11e4-8e72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:04.969416"], ["updated_at", "2015-03-18 21:09:04.969416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02463f70-cdb3-11e4-bd42-705681abff85' AND "clubhouse_memberships"."organization_id" = '024ff664-cdb3-11e4-8e72-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02463f70-cdb3-11e4-bd42-705681abff85"], ["organization_id", "024ff664-cdb3-11e4-8e72-705681abff85"], ["created_at", "2015-03-18 21:09:04.975181"], ["updated_at", "2015-03-18 21:09:04.975181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$QNs/T.A7wSsMtTtLQ2zGLO1C1uhD0GVsXvetx.l.Ww2xcLxt95TnG"], ["created_at", "2015-03-18 21:09:04.980188"], ["updated_at", "2015-03-18 21:09:04.980188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:04.981723"], ["user_id", "02534314-cdb3-11e4-ab51-705681abff85"], ["created_at", "2015-03-18 21:09:04.982497"], ["updated_at", "2015-03-18 21:09:04.982497"], ["token", "XnZW1uBkHLTdaQAZDbwOKw92DUVDhIss_ut2ZKvppZU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '024ff664-cdb3-11e4-8e72-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "024ff664-cdb3-11e4-8e72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:04.992749"], ["updated_at", "2015-03-18 21:09:04.992749"], ["token", "6EX0fKtfYHA-xhcNitQPNdHvi54zZQsQPRAQSNvbPs8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 14:09:04 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$tauU5Wv.1w.aon1aofHZgOpIdB6wCsUTmY/wyyMgN.xssAnwWYCoS"], ["created_at", "2015-03-18 21:09:05.030782"], ["updated_at", "2015-03-18 21:09:05.030782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$WZzqSkMot1AvCikxbPGkyOZA4NxZme3MEMOYtOYdppn/V5tWIPq1m"], ["created_at", "2015-03-18 21:09:05.035251"], ["updated_at", "2015-03-18 21:09:05.035251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.036850"], ["user_id", "025afd84-cdb3-11e4-98af-705681abff85"], ["created_at", "2015-03-18 21:09:05.037627"], ["updated_at", "2015-03-18 21:09:05.037627"], ["token", "7llm5SWtLvN4xR8Ks9zQW25ZgEb89MI7cnFfn3Wx3V8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.041210"], ["updated_at", "2015-03-18 21:09:05.041210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '025afd84-cdb3-11e4-98af-705681abff85' AND "clubhouse_memberships"."organization_id" = '025c9680-cdb3-11e4-9907-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "025afd84-cdb3-11e4-98af-705681abff85"], ["organization_id", "025c9680-cdb3-11e4-9907-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.044786"], ["updated_at", "2015-03-18 21:09:05.044786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '025ba8ec-cdb3-11e4-b8cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '025c9680-cdb3-11e4-9907-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "025ba8ec-cdb3-11e4-b8cc-705681abff85"], ["organization_id", "025c9680-cdb3-11e4-9907-705681abff85"], ["created_at", "2015-03-18 21:09:05.048051"], ["updated_at", "2015-03-18 21:09:05.048051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$TOeonoXC8USBwxkF/OwnZO1IHzeEigro2U/2aRvISrq5qulKttDVi"], ["created_at", "2015-03-18 21:09:05.052563"], ["updated_at", "2015-03-18 21:09:05.052563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.054106"], ["user_id", "025e4dae-cdb3-11e4-9b33-705681abff85"], ["created_at", "2015-03-18 21:09:05.054854"], ["updated_at", "2015-03-18 21:09:05.054854"], ["token", "XwvBxDdCPI4wjCPXv9nWfGw_SmQDqBUeKKZEM-iX0h0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '025c9680-cdb3-11e4-9907-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "025c9680-cdb3-11e4-9907-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.058600"], ["updated_at", "2015-03-18 21:09:05.058600"], ["token", "pqzyD2QFSzQZG4JTGHbzqUZXOfZ1p6M2ubD_oxfqEqI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.065383' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XwvBxDdCPI4wjCPXv9nWfGw_SmQDqBUeKKZEM-iX0h0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.072702"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.074298"], ["id", "025eacfe-cdb3-11e4-8b72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "025e4dae-cdb3-11e4-9b33-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "025e4dae-cdb3-11e4-9b33-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 39ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$o1ysGWNUXD1bZ0sQ2MwWXuvof44L22t1NPAFx0GjYQ6P8MED1Ffbe"], ["created_at", "2015-03-18 21:09:05.109296"], ["updated_at", "2015-03-18 21:09:05.109296"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$JT.dOaSt0fFLqBF0n2pxmemR5bgkZCHsP0GBdzr3B5nfHEjhXEUMu"], ["created_at", "2015-03-18 21:09:05.114159"], ["updated_at", "2015-03-18 21:09:05.114159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.115696"], ["user_id", "0266f81e-cdb3-11e4-a02f-705681abff85"], ["created_at", "2015-03-18 21:09:05.116481"], ["updated_at", "2015-03-18 21:09:05.116481"], ["token", "qDb19vmlzdBlvlTVZISufQPu795B7Gt6Y0MeyTFKkgc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.119864"], ["updated_at", "2015-03-18 21:09:05.119864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0266f81e-cdb3-11e4-a02f-705681abff85' AND "clubhouse_memberships"."organization_id" = '026891b0-cdb3-11e4-a0ac-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0266f81e-cdb3-11e4-a02f-705681abff85"], ["organization_id", "026891b0-cdb3-11e4-a0ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.123137"], ["updated_at", "2015-03-18 21:09:05.123137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0267b402-cdb3-11e4-9bd0-705681abff85' AND "clubhouse_memberships"."organization_id" = '026891b0-cdb3-11e4-a0ac-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0267b402-cdb3-11e4-9bd0-705681abff85"], ["organization_id", "026891b0-cdb3-11e4-a0ac-705681abff85"], ["created_at", "2015-03-18 21:09:05.127011"], ["updated_at", "2015-03-18 21:09:05.127011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$t35SujGIvG1Ilm477eFRIOCps8Q8dr8TbjCozcciHB.uIBcT6VFW."], ["created_at", "2015-03-18 21:09:05.131421"], ["updated_at", "2015-03-18 21:09:05.131421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.132930"], ["user_id", "026a5586-cdb3-11e4-b830-705681abff85"], ["created_at", "2015-03-18 21:09:05.133835"], ["updated_at", "2015-03-18 21:09:05.133835"], ["token", "4vXcEgY3k6faLBA_66F1u0-Ywjy_Cy8xQgu1d4boOXs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '026891b0-cdb3-11e4-a0ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "026891b0-cdb3-11e4-a0ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.137556"], ["updated_at", "2015-03-18 21:09:05.137556"], ["token", "RmC7ab0Ie_tLvLPMa0vB0eCl1Uw2fhExudccwasagPk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"RmC7ab0Ie_tLvLPMa0vB0eCl1Uw2fhExudccwasagPk", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.143087' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4vXcEgY3k6faLBA_66F1u0-Ywjy_Cy8xQgu1d4boOXs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.144540"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.145494"], ["id", "026abb5c-cdb3-11e4-ab95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "026a5586-cdb3-11e4-b830-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "026a5586-cdb3-11e4-b830-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "RmC7ab0Ie_tLvLPMa0vB0eCl1Uw2fhExudccwasagPk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "026891b0-cdb3-11e4-a0ac-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "026891b0-cdb3-11e4-a0ac-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '026a5586-cdb3-11e4-b830-705681abff85' AND "clubhouse_memberships"."organization_id" = '026891b0-cdb3-11e4-a0ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "026a5586-cdb3-11e4-b830-705681abff85"], ["admin", "t"], ["organization_id", "026891b0-cdb3-11e4-a0ac-705681abff85"], ["created_at", "2015-03-18 21:09:05.154663"], ["updated_at", "2015-03-18 21:09:05.154663"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "026b4aae-cdb3-11e4-b9e4-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 28ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Gyx7w/Dg4X/qXwfSAkF8ku.RuItDvUUTwiyCib.OgZ48ubRqbvDYC"], ["created_at", "2015-03-18 21:09:05.176236"], ["updated_at", "2015-03-18 21:09:05.176236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$L1DHoIsSEy8Ut/bzDqVAqO6.sFSiIkKXJlVPUPtc0xgMw4.1gnrqC"], ["created_at", "2015-03-18 21:09:05.180492"], ["updated_at", "2015-03-18 21:09:05.180492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.182017"], ["user_id", "02713090-cdb3-11e4-bf54-705681abff85"], ["created_at", "2015-03-18 21:09:05.182809"], ["updated_at", "2015-03-18 21:09:05.182809"], ["token", "poel-MncjibgUeb_fIBXTohD0j_Jt4mqUxRrbSJ_UT0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.186278"], ["updated_at", "2015-03-18 21:09:05.186278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02713090-cdb3-11e4-bf54-705681abff85' AND "clubhouse_memberships"."organization_id" = '0272b406-cdb3-11e4-8d74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02713090-cdb3-11e4-bf54-705681abff85"], ["organization_id", "0272b406-cdb3-11e4-8d74-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.189673"], ["updated_at", "2015-03-18 21:09:05.189673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0271d14e-cdb3-11e4-966a-705681abff85' AND "clubhouse_memberships"."organization_id" = '0272b406-cdb3-11e4-8d74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0271d14e-cdb3-11e4-966a-705681abff85"], ["organization_id", "0272b406-cdb3-11e4-8d74-705681abff85"], ["created_at", "2015-03-18 21:09:05.192812"], ["updated_at", "2015-03-18 21:09:05.192812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$uL1ke8e8lXa8BQ0wbm0KXO83dQDWWu1JEWIi.c2njFqnsB6R8gyVe"], ["created_at", "2015-03-18 21:09:05.203461"], ["updated_at", "2015-03-18 21:09:05.203461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$BuPijDHrOqDUWQyOQWfXj.vPxg.xhX.eAmClXUOHXpgHvIDtb1Uim"], ["created_at", "2015-03-18 21:09:05.209246"], ["updated_at", "2015-03-18 21:09:05.209246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.211008"], ["user_id", "027570e2-cdb3-11e4-8bec-705681abff85"], ["created_at", "2015-03-18 21:09:05.211766"], ["updated_at", "2015-03-18 21:09:05.211766"], ["token", "Uw5QbOKeuDikyeS95UCgGzY0-492FC2H8HjSKjzg6tM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.215161"], ["updated_at", "2015-03-18 21:09:05.215161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '027570e2-cdb3-11e4-8bec-705681abff85' AND "clubhouse_memberships"."organization_id" = '02771b18-cdb3-11e4-bb6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "027570e2-cdb3-11e4-8bec-705681abff85"], ["organization_id", "02771b18-cdb3-11e4-bb6a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.218339"], ["updated_at", "2015-03-18 21:09:05.218339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02763a68-cdb3-11e4-a326-705681abff85' AND "clubhouse_memberships"."organization_id" = '02771b18-cdb3-11e4-bb6a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02763a68-cdb3-11e4-a326-705681abff85"], ["organization_id", "02771b18-cdb3-11e4-bb6a-705681abff85"], ["created_at", "2015-03-18 21:09:05.221399"], ["updated_at", "2015-03-18 21:09:05.221399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/027798b8-cdb3-11e4-944d-705681abff85" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"027798b8-cdb3-11e4-944d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.226872' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Uw5QbOKeuDikyeS95UCgGzY0-492FC2H8HjSKjzg6tM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.228318"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.229356"], ["id", "02769f6c-cdb3-11e4-898a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "027570e2-cdb3-11e4-8bec-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "027570e2-cdb3-11e4-8bec-705681abff85"]] Completed 500 Internal Server Error in 20ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$3xglZgceTk2u/TMuVM27F.2HKTYx4TTp8t3dB0yZBKkkAEex/i37e"], ["created_at", "2015-03-18 21:09:05.254700"], ["updated_at", "2015-03-18 21:09:05.254700"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$Wfslx66G/cAreM8N3uUXMO1dhNVGFFY/pBfTfMD0txaHDasnW0J4i"], ["created_at", "2015-03-18 21:09:05.259339"], ["updated_at", "2015-03-18 21:09:05.259339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.261007"], ["user_id", "027d2968-cdb3-11e4-881e-705681abff85"], ["created_at", "2015-03-18 21:09:05.261830"], ["updated_at", "2015-03-18 21:09:05.261830"], ["token", "VcumXMEB7Rz4s9doBDo3Rcu0u3rZkDghCu1ruZqqCEU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.266597"], ["updated_at", "2015-03-18 21:09:05.266597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '027d2968-cdb3-11e4-881e-705681abff85' AND "clubhouse_memberships"."organization_id" = '027efa36-cdb3-11e4-8e41-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "027d2968-cdb3-11e4-881e-705681abff85"], ["organization_id", "027efa36-cdb3-11e4-8e41-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.270618"], ["updated_at", "2015-03-18 21:09:05.270618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '027ddba6-cdb3-11e4-8850-705681abff85' AND "clubhouse_memberships"."organization_id" = '027efa36-cdb3-11e4-8e41-705681abff85') LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "027ddba6-cdb3-11e4-8850-705681abff85"], ["organization_id", "027efa36-cdb3-11e4-8e41-705681abff85"], ["created_at", "2015-03-18 21:09:05.274704"], ["updated_at", "2015-03-18 21:09:05.274704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/02803b26-cdb3-11e4-b2dc-705681abff85" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"02803b26-cdb3-11e4-b2dc-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.281501' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VcumXMEB7Rz4s9doBDo3Rcu0u3rZkDghCu1ruZqqCEU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.291685"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.292694"], ["id", "027e44c4-cdb3-11e4-9328-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "027d2968-cdb3-11e4-881e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "027d2968-cdb3-11e4-881e-705681abff85"]] Completed 500 Internal Server Error in 16ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$ENutlNsPHG5CQtEKZCuQIevqU3vEQGPdzZ1OaeODuGjsqoHDypV22"], ["created_at", "2015-03-18 21:09:05.302294"], ["updated_at", "2015-03-18 21:09:05.302294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$zyNc8yRedIZThk.mVWxXJ.jwAOVlreS8m0F.YjsUTniwMPSOZeEJ6"], ["created_at", "2015-03-18 21:09:05.306804"], ["updated_at", "2015-03-18 21:09:05.306804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.308724"], ["user_id", "028468ea-cdb3-11e4-9e6f-705681abff85"], ["created_at", "2015-03-18 21:09:05.309943"], ["updated_at", "2015-03-18 21:09:05.309943"], ["token", "JMerzq7Lh9pbAwGuhCsQak3vmsJjZFN2dZ_IC_j2QeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.313459"], ["updated_at", "2015-03-18 21:09:05.313459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '028468ea-cdb3-11e4-9e6f-705681abff85' AND "clubhouse_memberships"."organization_id" = '02861d66-cdb3-11e4-861f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "028468ea-cdb3-11e4-9e6f-705681abff85"], ["organization_id", "02861d66-cdb3-11e4-861f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.316872"], ["updated_at", "2015-03-18 21:09:05.316872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '028517d6-cdb3-11e4-8607-705681abff85' AND "clubhouse_memberships"."organization_id" = '02861d66-cdb3-11e4-861f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "028517d6-cdb3-11e4-8607-705681abff85"], ["organization_id", "02861d66-cdb3-11e4-861f-705681abff85"], ["created_at", "2015-03-18 21:09:05.320082"], ["updated_at", "2015-03-18 21:09:05.320082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$qzKCrRZHjlfVmqKewDlAj.6eWOPgypUmMBm56Ymc4Eqfll8P90HgK"], ["created_at", "2015-03-18 21:09:05.331194"], ["updated_at", "2015-03-18 21:09:05.331194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$iR0pgPwWA.N2Ar3.zIZuau0Zn/aBqcKB74lVSDeCHIKi8m/We7Stm"], ["created_at", "2015-03-18 21:09:05.336649"], ["updated_at", "2015-03-18 21:09:05.336649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.338255"], ["user_id", "0288e3f2-cdb3-11e4-8b06-705681abff85"], ["created_at", "2015-03-18 21:09:05.339200"], ["updated_at", "2015-03-18 21:09:05.339200"], ["token", "JM-Q9bVpviXlL6zlA4sI6qZ76CLjlAWJQt3bOXwjonw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.343579"], ["updated_at", "2015-03-18 21:09:05.343579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0288e3f2-cdb3-11e4-8b06-705681abff85' AND "clubhouse_memberships"."organization_id" = '028ab5d8-cdb3-11e4-947c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0288e3f2-cdb3-11e4-8b06-705681abff85"], ["organization_id", "028ab5d8-cdb3-11e4-947c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.346889"], ["updated_at", "2015-03-18 21:09:05.346889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0289a6c0-cdb3-11e4-8014-705681abff85' AND "clubhouse_memberships"."organization_id" = '028ab5d8-cdb3-11e4-947c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0289a6c0-cdb3-11e4-8014-705681abff85"], ["organization_id", "028ab5d8-cdb3-11e4-947c-705681abff85"], ["created_at", "2015-03-18 21:09:05.349868"], ["updated_at", "2015-03-18 21:09:05.349868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/028b354e-cdb3-11e4-82e4-705681abff85" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"028b354e-cdb3-11e4-82e4-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.354389' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JM-Q9bVpviXlL6zlA4sI6qZ76CLjlAWJQt3bOXwjonw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.355930"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.356859"], ["id", "028a22f8-cdb3-11e4-94a5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0288e3f2-cdb3-11e4-8b06-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0288e3f2-cdb3-11e4-8b06-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$hBm.JYiwHKyD.SUt4q7rr.Nbvjh1/kZH0ZfxVO5lPNkj1eON64opS"], ["created_at", "2015-03-18 21:09:05.371766"], ["updated_at", "2015-03-18 21:09:05.371766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$YApmO9trsat1ZdfY2LIZI.TlRJaRjYwbbFzUyKPvmQkxbZz9J29em"], ["created_at", "2015-03-18 21:09:05.376911"], ["updated_at", "2015-03-18 21:09:05.376911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.378416"], ["user_id", "028f04a8-cdb3-11e4-87d2-705681abff85"], ["created_at", "2015-03-18 21:09:05.379180"], ["updated_at", "2015-03-18 21:09:05.379180"], ["token", "Hkzak7HyO5dqBXBvgq7EgD9SGIva5H3RR85qWFy0wV8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.382473"], ["updated_at", "2015-03-18 21:09:05.382473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '028f04a8-cdb3-11e4-87d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0290a1b4-cdb3-11e4-bc09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "028f04a8-cdb3-11e4-87d2-705681abff85"], ["organization_id", "0290a1b4-cdb3-11e4-bc09-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.385589"], ["updated_at", "2015-03-18 21:09:05.385589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '028fc992-cdb3-11e4-ab27-705681abff85' AND "clubhouse_memberships"."organization_id" = '0290a1b4-cdb3-11e4-bc09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "028fc992-cdb3-11e4-ab27-705681abff85"], ["organization_id", "0290a1b4-cdb3-11e4-bc09-705681abff85"], ["created_at", "2015-03-18 21:09:05.388564"], ["updated_at", "2015-03-18 21:09:05.388564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/029196be-cdb3-11e4-b331-705681abff85" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"029196be-cdb3-11e4-b331-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.393064' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Hkzak7HyO5dqBXBvgq7EgD9SGIva5H3RR85qWFy0wV8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.394906"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.396899"], ["id", "029029f0-cdb3-11e4-bcc0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "028f04a8-cdb3-11e4-87d2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "028f04a8-cdb3-11e4-87d2-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$SwZ5zY5Z8kYoyGeTvV9Q0eb.Ere394xorlYIyoLJg3gs4E1K7Bi3S"], ["created_at", "2015-03-18 21:09:05.408808"], ["updated_at", "2015-03-18 21:09:05.408808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$qfrqKyc9wC9uKwHSOvfTAupf9APAQ1dXzh07Bv5ygcSvpUL70Pq0."], ["created_at", "2015-03-18 21:09:05.415056"], ["updated_at", "2015-03-18 21:09:05.415056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.416831"], ["user_id", "0294d0d6-cdb3-11e4-a5c3-705681abff85"], ["created_at", "2015-03-18 21:09:05.418617"], ["updated_at", "2015-03-18 21:09:05.418617"], ["token", "GMQqxvQZPHlWjB7CFBbYnOyd7QAr12dErKlKUlacU5s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.423553"], ["updated_at", "2015-03-18 21:09:05.423553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0294d0d6-cdb3-11e4-a5c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '0296f37a-cdb3-11e4-9b25-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0294d0d6-cdb3-11e4-a5c3-705681abff85"], ["organization_id", "0296f37a-cdb3-11e4-9b25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.427727"], ["updated_at", "2015-03-18 21:09:05.427727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02959e30-cdb3-11e4-a07d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0296f37a-cdb3-11e4-9b25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02959e30-cdb3-11e4-a07d-705681abff85"], ["organization_id", "0296f37a-cdb3-11e4-9b25-705681abff85"], ["created_at", "2015-03-18 21:09:05.432222"], ["updated_at", "2015-03-18 21:09:05.432222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/0296f37a-cdb3-11e4-9b25-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"0296f37a-cdb3-11e4-9b25-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.437574' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GMQqxvQZPHlWjB7CFBbYnOyd7QAr12dErKlKUlacU5s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.439067"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.440047"], ["id", "029637d2-cdb3-11e4-abf3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0294d0d6-cdb3-11e4-a5c3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "0294d0d6-cdb3-11e4-a5c3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0296f37a-cdb3-11e4-9b25-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "0296f37a-cdb3-11e4-9b25-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('0294d0d6-cdb3-11e4-a5c3-705681abff85', '02959e30-cdb3-11e4-a07d-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('0296f37a-cdb3-11e4-9b25-705681abff85') Completed 500 Internal Server Error in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$.78hQZB8mKgvucAmqzniaeEnNQPZH.1BCJ1FyJDyc6d4sFBKqQ672"], ["created_at", "2015-03-18 21:09:05.462809"], ["updated_at", "2015-03-18 21:09:05.462809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$1FkjyA8V0I9exVzNGibjzOtvdQRH.wMgpEEbPF0YXLNt5/YsKONGi"], ["created_at", "2015-03-18 21:09:05.467604"], ["updated_at", "2015-03-18 21:09:05.467604"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.469526"], ["user_id", "029cf4fa-cdb3-11e4-873a-705681abff85"], ["created_at", "2015-03-18 21:09:05.470788"], ["updated_at", "2015-03-18 21:09:05.470788"], ["token", "OHtBMJUOkVj09B3MYtORM7dcaAMgbNrx5ChQ_lxB-c4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.475503"], ["updated_at", "2015-03-18 21:09:05.475503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '029cf4fa-cdb3-11e4-873a-705681abff85' AND "clubhouse_memberships"."organization_id" = '029ed536-cdb3-11e4-8afa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "029cf4fa-cdb3-11e4-873a-705681abff85"], ["organization_id", "029ed536-cdb3-11e4-8afa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.478785"], ["updated_at", "2015-03-18 21:09:05.478785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '029d9fb8-cdb3-11e4-a541-705681abff85' AND "clubhouse_memberships"."organization_id" = '029ed536-cdb3-11e4-8afa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "029d9fb8-cdb3-11e4-a541-705681abff85"], ["organization_id", "029ed536-cdb3-11e4-8afa-705681abff85"], ["created_at", "2015-03-18 21:09:05.482308"], ["updated_at", "2015-03-18 21:09:05.482308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$/1vK1SWTNOqMf59ut.OnNuzi0YkhgKQZ0JPLkP6/RGKUJiZoliJcy"], ["created_at", "2015-03-18 21:09:05.493462"], ["updated_at", "2015-03-18 21:09:05.493462"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$Ojye2Sk7wd7e1fXnrbVXpu84obOm5jjGvXdunTcRon6fbV.kfyMzW"], ["created_at", "2015-03-18 21:09:05.498488"], ["updated_at", "2015-03-18 21:09:05.498488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.500045"], ["user_id", "02a195dc-cdb3-11e4-97f5-705681abff85"], ["created_at", "2015-03-18 21:09:05.500817"], ["updated_at", "2015-03-18 21:09:05.500817"], ["token", "g9pWqZklo-VsLhzhsr3NQ4vNstLiyor9v5vc9T68iHE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.504121"], ["updated_at", "2015-03-18 21:09:05.504121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02a195dc-cdb3-11e4-97f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '02a332c0-cdb3-11e4-9abb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02a195dc-cdb3-11e4-97f5-705681abff85"], ["organization_id", "02a332c0-cdb3-11e4-9abb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.508020"], ["updated_at", "2015-03-18 21:09:05.508020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02a25940-cdb3-11e4-b171-705681abff85' AND "clubhouse_memberships"."organization_id" = '02a332c0-cdb3-11e4-9abb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02a25940-cdb3-11e4-b171-705681abff85"], ["organization_id", "02a332c0-cdb3-11e4-9abb-705681abff85"], ["created_at", "2015-03-18 21:09:05.511685"], ["updated_at", "2015-03-18 21:09:05.511685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$hho1vV0olQgwJwKDXIxcRuVkPag5k64Zbq6rlIk7upq5JHWFVSw7G"], ["created_at", "2015-03-18 21:09:05.516088"], ["updated_at", "2015-03-18 21:09:05.516088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.517549"], ["user_id", "02a50618-cdb3-11e4-afec-705681abff85"], ["created_at", "2015-03-18 21:09:05.518312"], ["updated_at", "2015-03-18 21:09:05.518312"], ["token", "RzTYZy-wSNKITp9Bl8yyoJAEKGRHGUiFfU2Ecfj7_Ek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '02a332c0-cdb3-11e4-9abb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "02a332c0-cdb3-11e4-9abb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.521797"], ["updated_at", "2015-03-18 21:09:05.521797"], ["token", "-0Xb5kpichVu6wjfukgMr7biEydNzgTi5mXgHbVOryg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$fSEJ1tteewgpHV6JsT5b9.PWS7pP7OQ.skWeiHEDiEWEg1vED4de2"], ["created_at", "2015-03-18 21:09:05.533838"], ["updated_at", "2015-03-18 21:09:05.533838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$vphIiKPLaMbCOmFR4rSs/Ogt/HSO0dqCuWQBKS5txgcYxHteaZib6"], ["created_at", "2015-03-18 21:09:05.539318"], ["updated_at", "2015-03-18 21:09:05.539318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.541732"], ["user_id", "02a7c006-cdb3-11e4-aed6-705681abff85"], ["created_at", "2015-03-18 21:09:05.542654"], ["updated_at", "2015-03-18 21:09:05.542654"], ["token", "Fo49iMdyN8lasIs5jLlgrjCW1mZdtz1-vsGhcnelgQg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.546218"], ["updated_at", "2015-03-18 21:09:05.546218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02a7c006-cdb3-11e4-aed6-705681abff85' AND "clubhouse_memberships"."organization_id" = '02a9a074-cdb3-11e4-a106-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02a7c006-cdb3-11e4-aed6-705681abff85"], ["organization_id", "02a9a074-cdb3-11e4-a106-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.549456"], ["updated_at", "2015-03-18 21:09:05.549456"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02a8a200-cdb3-11e4-aa5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '02a9a074-cdb3-11e4-a106-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02a8a200-cdb3-11e4-aa5d-705681abff85"], ["organization_id", "02a9a074-cdb3-11e4-a106-705681abff85"], ["created_at", "2015-03-18 21:09:05.552771"], ["updated_at", "2015-03-18 21:09:05.552771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$d8sWSDpKaO7WpNA1jSDTcuoP/bWBoD0GiRs2DaBy3fGr56gdRbWC."], ["created_at", "2015-03-18 21:09:05.557263"], ["updated_at", "2015-03-18 21:09:05.557263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.558844"], ["user_id", "02ab51a8-cdb3-11e4-8f36-705681abff85"], ["created_at", "2015-03-18 21:09:05.559615"], ["updated_at", "2015-03-18 21:09:05.559615"], ["token", "b2p4NgQ0UCdSnB31e80b0Q6T0tNCmfvh7--l6RIsYJk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '02a9a074-cdb3-11e4-a106-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "02a9a074-cdb3-11e4-a106-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.563800"], ["updated_at", "2015-03-18 21:09:05.563800"], ["token", "JpKqtns8X4hTHE9dF3YNbZNc1UkkssrOCwcd2eRyHko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/02a9a074-cdb3-11e4-a106-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"02a9a074-cdb3-11e4-a106-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.569023' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b2p4NgQ0UCdSnB31e80b0Q6T0tNCmfvh7--l6RIsYJk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.570871"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.572632"], ["id", "02abb260-cdb3-11e4-a2ba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "02ab51a8-cdb3-11e4-8f36-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "02ab51a8-cdb3-11e4-8f36-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "02a9a074-cdb3-11e4-a106-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$VwLNYqpLzel.jp9w7BdGZ.P3VCTFrVxcq5UURB90t.0yr68Z1AJCG"], ["created_at", "2015-03-18 21:09:05.585429"], ["updated_at", "2015-03-18 21:09:05.585429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$ERGUaIyA4voXYeoOY3i1cOMrKuAayplsg4qRsyrXY.mf5AaDtbISO"], ["created_at", "2015-03-18 21:09:05.590990"], ["updated_at", "2015-03-18 21:09:05.590990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.593815"], ["user_id", "02af9cd6-cdb3-11e4-b467-705681abff85"], ["created_at", "2015-03-18 21:09:05.594892"], ["updated_at", "2015-03-18 21:09:05.594892"], ["token", "0pfscDD-F3fem1EeongjMC9hLeBpxfzWJVilkL664eo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.598698"], ["updated_at", "2015-03-18 21:09:05.598698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02af9cd6-cdb3-11e4-b467-705681abff85' AND "clubhouse_memberships"."organization_id" = '02b1a13e-cdb3-11e4-a81a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02af9cd6-cdb3-11e4-b467-705681abff85"], ["organization_id", "02b1a13e-cdb3-11e4-a81a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.601987"], ["updated_at", "2015-03-18 21:09:05.601987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02b08f10-cdb3-11e4-ad4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '02b1a13e-cdb3-11e4-a81a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02b08f10-cdb3-11e4-ad4c-705681abff85"], ["organization_id", "02b1a13e-cdb3-11e4-a81a-705681abff85"], ["created_at", "2015-03-18 21:09:05.604996"], ["updated_at", "2015-03-18 21:09:05.604996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$90uzfgANvQ7gSS32X5RS5eODKzzLjgEn7CFm2HF3jOaXkLwC8CWs2"], ["created_at", "2015-03-18 21:09:05.609563"], ["updated_at", "2015-03-18 21:09:05.609563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.611097"], ["user_id", "02b34a20-cdb3-11e4-b6f4-705681abff85"], ["created_at", "2015-03-18 21:09:05.611872"], ["updated_at", "2015-03-18 21:09:05.611872"], ["token", "TqYOjsKKEM39YuLRc8sdxgqy3ODouapu2k2eg2GnIKo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '02b1a13e-cdb3-11e4-a81a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "02b1a13e-cdb3-11e4-a81a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.615782"], ["updated_at", "2015-03-18 21:09:05.615782"], ["token", "pCcN6JqELEDXsnr8ClIU2F3SLM3Yw_xyqa2yMxB5hF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/02b1a13e-cdb3-11e4-a81a-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"pCcN6JqELEDXsnr8ClIU2F3SLM3Yw_xyqa2yMxB5hF8", "organization_id"=>"02b1a13e-cdb3-11e4-a81a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.621424' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TqYOjsKKEM39YuLRc8sdxgqy3ODouapu2k2eg2GnIKo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.622885"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.624104"], ["id", "02b3adc6-cdb3-11e4-888f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "02b34a20-cdb3-11e4-b6f4-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "02b34a20-cdb3-11e4-b6f4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "02b1a13e-cdb3-11e4-a81a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "pCcN6JqELEDXsnr8ClIU2F3SLM3Yw_xyqa2yMxB5hF8"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "02b1a13e-cdb3-11e4-a81a-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "02b1a13e-cdb3-11e4-a81a-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02b34a20-cdb3-11e4-b6f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '02b1a13e-cdb3-11e4-a81a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02b34a20-cdb3-11e4-b6f4-705681abff85"], ["admin", "t"], ["organization_id", "02b1a13e-cdb3-11e4-a81a-705681abff85"], ["created_at", "2015-03-18 21:09:05.633212"], ["updated_at", "2015-03-18 21:09:05.633212"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "02b448a8-cdb3-11e4-a89d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$PYFxpU4GbL2sZ2oCtqtYk.HVHnbyEIWKsIFqkKcQK0ze/b90tmcbu"], ["created_at", "2015-03-18 21:09:05.644746"], ["updated_at", "2015-03-18 21:09:05.644746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$9gVNE.2PJKEZY/DaPFCGvugnAO2TXgtchnnr34OUpYJgjbSi2f/Sm"], ["created_at", "2015-03-18 21:09:05.655814"], ["updated_at", "2015-03-18 21:09:05.655814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.657536"], ["user_id", "02b8aa92-cdb3-11e4-88ad-705681abff85"], ["created_at", "2015-03-18 21:09:05.658765"], ["updated_at", "2015-03-18 21:09:05.658765"], ["token", "GPHNdMKSrjwyWoOuvKjDwcSvHPMUNhpoi0LCmJ5RsEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.662606"], ["updated_at", "2015-03-18 21:09:05.662606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02b8aa92-cdb3-11e4-88ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '02bb63fe-cdb3-11e4-80d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02b8aa92-cdb3-11e4-88ad-705681abff85"], ["organization_id", "02bb63fe-cdb3-11e4-80d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.666064"], ["updated_at", "2015-03-18 21:09:05.666064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02ba5e46-cdb3-11e4-bec6-705681abff85' AND "clubhouse_memberships"."organization_id" = '02bb63fe-cdb3-11e4-80d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02ba5e46-cdb3-11e4-bec6-705681abff85"], ["organization_id", "02bb63fe-cdb3-11e4-80d9-705681abff85"], ["created_at", "2015-03-18 21:09:05.669263"], ["updated_at", "2015-03-18 21:09:05.669263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.674805' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GPHNdMKSrjwyWoOuvKjDwcSvHPMUNhpoi0LCmJ5RsEQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.676412"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.677486"], ["id", "02bada9c-cdb3-11e4-bca5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "02b8aa92-cdb3-11e4-88ad-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "02b8aa92-cdb3-11e4-88ad-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "02bb63fe-cdb3-11e4-80d9-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('02b8aa92-cdb3-11e4-88ad-705681abff85', '02ba5e46-cdb3-11e4-bec6-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('02bb63fe-cdb3-11e4-80d9-705681abff85') Completed 500 Internal Server Error in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$FJF4HV8v5GuORWaPbZ8O6.cld8vCMgWydYN/RP6o2QJO0okvUtTda"], ["created_at", "2015-03-18 21:09:05.693396"], ["updated_at", "2015-03-18 21:09:05.693396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$aMF6vzidcnLkWyS40PLg1.3k3xfp8FYgC3BsVFqVvGHOdlKcfSXuO"], ["created_at", "2015-03-18 21:09:05.697803"], ["updated_at", "2015-03-18 21:09:05.697803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.699288"], ["user_id", "02c01a34-cdb3-11e4-a2f3-705681abff85"], ["created_at", "2015-03-18 21:09:05.700053"], ["updated_at", "2015-03-18 21:09:05.700053"], ["token", "2DZoIxn9NO7gM3kWB9SVjEafZ3hRifuFssw2fD1TAHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.703566"], ["updated_at", "2015-03-18 21:09:05.703566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02c01a34-cdb3-11e4-a2f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '02c1a0ca-cdb3-11e4-8f42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02c01a34-cdb3-11e4-a2f3-705681abff85"], ["organization_id", "02c1a0ca-cdb3-11e4-8f42-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.706783"], ["updated_at", "2015-03-18 21:09:05.706783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02c0c042-cdb3-11e4-9d43-705681abff85' AND "clubhouse_memberships"."organization_id" = '02c1a0ca-cdb3-11e4-8f42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02c0c042-cdb3-11e4-9d43-705681abff85"], ["organization_id", "02c1a0ca-cdb3-11e4-8f42-705681abff85"], ["created_at", "2015-03-18 21:09:05.709865"], ["updated_at", "2015-03-18 21:09:05.709865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$sHMMiXq9I0RX7dP/t0YeauLg5x7oFJGQbkfM7Dr2J/H/jJxgPyG/u"], ["created_at", "2015-03-18 21:09:05.720485"], ["updated_at", "2015-03-18 21:09:05.720485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$G6MmWIwe8b5ivJT0nXJHbO6G/z7zOZD0WSCaA7hrN4tjIfvM96AnS"], ["created_at", "2015-03-18 21:09:05.725405"], ["updated_at", "2015-03-18 21:09:05.725405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.727194"], ["user_id", "02c4392a-cdb3-11e4-b4fc-705681abff85"], ["created_at", "2015-03-18 21:09:05.728389"], ["updated_at", "2015-03-18 21:09:05.728389"], ["token", "ORsBoxwE0MFiDDqrtu_SX08b9XW1W_APABvXDBlLtPg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.732154"], ["updated_at", "2015-03-18 21:09:05.732154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02c4392a-cdb3-11e4-b4fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '02c5fdc8-cdb3-11e4-8a94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02c4392a-cdb3-11e4-b4fc-705681abff85"], ["organization_id", "02c5fdc8-cdb3-11e4-8a94-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.735346"], ["updated_at", "2015-03-18 21:09:05.735346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02c4f7e8-cdb3-11e4-b8fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '02c5fdc8-cdb3-11e4-8a94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02c4f7e8-cdb3-11e4-b8fa-705681abff85"], ["organization_id", "02c5fdc8-cdb3-11e4-8a94-705681abff85"], ["created_at", "2015-03-18 21:09:05.738397"], ["updated_at", "2015-03-18 21:09:05.738397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/02c67b0e-cdb3-11e4-a5e5-705681abff85" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"02c67b0e-cdb3-11e4-a5e5-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:09:05.745514' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ORsBoxwE0MFiDDqrtu_SX08b9XW1W_APABvXDBlLtPg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:09:05.747984"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:09:05.748980"], ["id", "02c57bc8-cdb3-11e4-9a80-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "02c4392a-cdb3-11e4-b4fc-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "02c4392a-cdb3-11e4-b4fc-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "02c67b0e-cdb3-11e4-a5e5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "02c5fdc8-cdb3-11e4-8a94-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '02c4392a-cdb3-11e4-b4fc-705681abff85' LIMIT 1 [["organization_id", "02c5fdc8-cdb3-11e4-8a94-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "02c4392a-cdb3-11e4-b4fc-705681abff85"]] Completed 200 OK in 18ms (Views: 2.0ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$oG..0zrnYalxo8LVLRyx8eHw/EZjJPN1U2H09KcZGeJqbGIZwrnt2"], ["created_at", "2015-03-18 21:09:05.773729"], ["updated_at", "2015-03-18 21:09:05.773729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$4q48b3JiRIEbay/g19ix/.OVBs4/Nt9WUU5hQSXi9iJjoM7qRcRCC"], ["created_at", "2015-03-18 21:09:05.778959"], ["updated_at", "2015-03-18 21:09:05.778959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (59.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:09:05.780499"], ["user_id", "02cc7126-cdb3-11e4-8103-705681abff85"], ["created_at", "2015-03-18 21:09:05.781268"], ["updated_at", "2015-03-18 21:09:05.781268"], ["token", "ygi2wy4CZRzzKXwo369pfmVpxte0l6Qit9qqPLYRq6M"]]  (11.2ms) RELEASE SAVEPOINT active_record_1  (7.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:09:05.865104"], ["updated_at", "2015-03-18 21:09:05.865104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02cc7126-cdb3-11e4-8103-705681abff85' AND "clubhouse_memberships"."organization_id" = '02da5e8a-cdb3-11e4-b830-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02cc7126-cdb3-11e4-8103-705681abff85"], ["organization_id", "02da5e8a-cdb3-11e4-b830-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:09:05.870478"], ["updated_at", "2015-03-18 21:09:05.870478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02cd23dc-cdb3-11e4-92d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '02da5e8a-cdb3-11e4-b830-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02cd23dc-cdb3-11e4-92d7-705681abff85"], ["organization_id", "02da5e8a-cdb3-11e4-b830-705681abff85"], ["created_at", "2015-03-18 21:09:05.875232"], ["updated_at", "2015-03-18 21:09:05.875232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 14:09:05 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (29.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$bkQ/a3O9XCx6OUnWXxbMDe9LJ3evGx7PXV1wuWH2wph3ei9n.c/P6"], ["created_at", "2015-03-18 21:13:38.633354"], ["updated_at", "2015-03-18 21:13:38.633354"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$CzJtFOFXPswKZOjDXeSZ7unJ206VkoAM3M4FxSI19l7dGmi1BlANS"], ["created_at", "2015-03-18 21:13:38.668548"], ["updated_at", "2015-03-18 21:13:38.668548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:38.677538"], ["user_id", "a5739116-cdb3-11e4-957e-705681abff85"], ["created_at", "2015-03-18 21:13:38.717985"], ["updated_at", "2015-03-18 21:13:38.717985"], ["token", "8ddjBtJ1xPFLuaKLL3OfVLiB8als9Q1_uDeWgVGg7SQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (7.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:38.734032"], ["updated_at", "2015-03-18 21:13:38.734032"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5739116-cdb3-11e4-957e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a57ed3c8-cdb3-11e4-a49b-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5739116-cdb3-11e4-957e-705681abff85"], ["organization_id", "a57ed3c8-cdb3-11e4-a49b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:38.756052"], ["updated_at", "2015-03-18 21:13:38.756052"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a574cb94-cdb3-11e4-9879-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a57ed3c8-cdb3-11e4-a49b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a574cb94-cdb3-11e4-9879-705681abff85"], ["organization_id", "a57ed3c8-cdb3-11e4-a49b-705681abff85"], ["created_at", "2015-03-18 21:13:38.760615"], ["updated_at", "2015-03-18 21:13:38.760615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:13:38 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:38.895213' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8ddjBtJ1xPFLuaKLL3OfVLiB8als9Q1_uDeWgVGg7SQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:38.903690"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:38.905329"], ["id", "a57c6f7a-cdb3-11e4-9461-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5739116-cdb3-11e4-957e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a5739116-cdb3-11e4-957e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "a57ed3c8-cdb3-11e4-a49b-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('a5739116-cdb3-11e4-957e-705681abff85', 'a574cb94-cdb3-11e4-9879-705681abff85') Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a57ed3c8-cdb3-11e4-a49b-705681abff85') Completed 500 Internal Server Error in 62ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Oj7.pSGY4HwoUyzY28xuxeVJ5tiIXj5WW6UO3JON1m0T2oarssFVi"], ["created_at", "2015-03-18 21:13:38.964072"], ["updated_at", "2015-03-18 21:13:38.964072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$vjUwm3e1PK/AJQdbuZN6zOTWfvLj914Xb0J9w/BZbEj5yKmxOzo62"], ["created_at", "2015-03-18 21:13:38.968878"], ["updated_at", "2015-03-18 21:13:38.968878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:38.970589"], ["user_id", "a5a1e91c-cdb3-11e4-a9cd-705681abff85"], ["created_at", "2015-03-18 21:13:38.971424"], ["updated_at", "2015-03-18 21:13:38.971424"], ["token", "CKVhdyZg9d9Wa5QpcZXrxFbroK2pOM-_mIUOuY-5BS0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:38.982502"], ["updated_at", "2015-03-18 21:13:38.982502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5a1e91c-cdb3-11e4-a9cd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5a4b4b2-cdb3-11e4-9524-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5a1e91c-cdb3-11e4-a9cd-705681abff85"], ["organization_id", "a5a4b4b2-cdb3-11e4-9524-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:38.986045"], ["updated_at", "2015-03-18 21:13:38.986045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5a2a15e-cdb3-11e4-88b2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5a4b4b2-cdb3-11e4-9524-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5a2a15e-cdb3-11e4-88b2-705681abff85"], ["organization_id", "a5a4b4b2-cdb3-11e4-9524-705681abff85"], ["created_at", "2015-03-18 21:13:38.989505"], ["updated_at", "2015-03-18 21:13:38.989505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 14:13:38 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$aLwBuvfNxOceCIDPefHSGu9oBfBzCynaPWCR7DAh1JQImyYAZdBwK"], ["created_at", "2015-03-18 21:13:39.001402"], ["updated_at", "2015-03-18 21:13:39.001402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ymOFb6dx7vSe9WeQKQZDju30eLp5UA8sT0Xv6tloTSzNwNrUr3Rke"], ["created_at", "2015-03-18 21:13:39.006923"], ["updated_at", "2015-03-18 21:13:39.006923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.008784"], ["user_id", "a5a79db2-cdb3-11e4-9aea-705681abff85"], ["created_at", "2015-03-18 21:13:39.009658"], ["updated_at", "2015-03-18 21:13:39.009658"], ["token", "sXgx0JIL3EnWBhpWs-xaNIe5EYqJ0mOC1-lj_0aBWlQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.014124"], ["updated_at", "2015-03-18 21:13:39.014124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5a79db2-cdb3-11e4-9aea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5a98a96-cdb3-11e4-84de-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5a79db2-cdb3-11e4-9aea-705681abff85"], ["organization_id", "a5a98a96-cdb3-11e4-84de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.017867"], ["updated_at", "2015-03-18 21:13:39.017867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5a87200-cdb3-11e4-91c6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5a98a96-cdb3-11e4-84de-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5a87200-cdb3-11e4-91c6-705681abff85"], ["organization_id", "a5a98a96-cdb3-11e4-84de-705681abff85"], ["created_at", "2015-03-18 21:13:39.021410"], ["updated_at", "2015-03-18 21:13:39.021410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ofWMA.G0KLDB.w3oPE82Ou3Eb377jdwnN9nslnHMgNNGaq0pqBwcK"], ["created_at", "2015-03-18 21:13:39.026290"], ["updated_at", "2015-03-18 21:13:39.026290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.028033"], ["user_id", "a5ab6398-cdb3-11e4-9fa4-705681abff85"], ["created_at", "2015-03-18 21:13:39.028869"], ["updated_at", "2015-03-18 21:13:39.028869"], ["token", "-1IfsxiAkWMW2c47izVcEZ0UjZEB4rAdjBCiNGhmo7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a5a98a96-cdb3-11e4-84de-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a5a98a96-cdb3-11e4-84de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.041572"], ["updated_at", "2015-03-18 21:13:39.041572"], ["token", "-ZIlzftN8ldUENp9D44531zrzohKT7w8v-sDzEXEeAY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$8o7GxNJYn5QKJrFt.3Hokumyo9tQUcQIvVUOQT3I/toMD.vZA2c.W"], ["created_at", "2015-03-18 21:13:39.054068"], ["updated_at", "2015-03-18 21:13:39.054068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$2vQ122YmFUmcoVcFbOokietKRD/SSv5ihVaLYnyqopG.B0rSqKyYe"], ["created_at", "2015-03-18 21:13:39.059955"], ["updated_at", "2015-03-18 21:13:39.059955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.061826"], ["user_id", "a5afb4d4-cdb3-11e4-b105-705681abff85"], ["created_at", "2015-03-18 21:13:39.062675"], ["updated_at", "2015-03-18 21:13:39.062675"], ["token", "KvX7M5s8bv7nyxenz3BuEk3P4wQCoKxRYRGhJaAx_JE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.066949"], ["updated_at", "2015-03-18 21:13:39.066949"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5afb4d4-cdb3-11e4-b105-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5b19826-cdb3-11e4-b178-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5afb4d4-cdb3-11e4-b105-705681abff85"], ["organization_id", "a5b19826-cdb3-11e4-b178-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.070903"], ["updated_at", "2015-03-18 21:13:39.070903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5b0899a-cdb3-11e4-9ec1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5b19826-cdb3-11e4-b178-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5b0899a-cdb3-11e4-9ec1-705681abff85"], ["organization_id", "a5b19826-cdb3-11e4-b178-705681abff85"], ["created_at", "2015-03-18 21:13:39.074342"], ["updated_at", "2015-03-18 21:13:39.074342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Bjx3Ow4gWYzWAxJpFS.cYOghKREHaualhS0aXVU0x0S8GzAWHpgOm"], ["created_at", "2015-03-18 21:13:39.078999"], ["updated_at", "2015-03-18 21:13:39.078999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.080961"], ["user_id", "a5b37506-cdb3-11e4-ae3d-705681abff85"], ["created_at", "2015-03-18 21:13:39.082045"], ["updated_at", "2015-03-18 21:13:39.082045"], ["token", "b-F_8noZAuvQbueUcvWWwN6xa7F9IaZ7J_Zz6o6n1Jc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a5b19826-cdb3-11e4-b178-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a5b19826-cdb3-11e4-b178-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.086693"], ["updated_at", "2015-03-18 21:13:39.086693"], ["token", "xSZJBa0YBW_yWNiem1kkDAQm9gTFiflvlgYjy88aJ8M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a5b19826-cdb3-11e4-b178-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"a5b19826-cdb3-11e4-b178-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:39.094723' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b-F_8noZAuvQbueUcvWWwN6xa7F9IaZ7J_Zz6o6n1Jc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:39.096268"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:39.097968"], ["id", "a5b3f1e8-cdb3-11e4-a9a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5b37506-cdb3-11e4-ae3d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a5b37506-cdb3-11e4-ae3d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a5b19826-cdb3-11e4-b178-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$/vDJ3YXejUTER.4slb0mnemS8Y2nw2jrJVbhRODSaNzx3b2pYcpUS"], ["created_at", "2015-03-18 21:13:39.116303"], ["updated_at", "2015-03-18 21:13:39.116303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$994K2/kTeEVLyO9zzThmReIcI7dDSPgrJrcCR/rQRqF8v.rHq7Ema"], ["created_at", "2015-03-18 21:13:39.121484"], ["updated_at", "2015-03-18 21:13:39.121484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.123516"], ["user_id", "a5b92604-cdb3-11e4-8df6-705681abff85"], ["created_at", "2015-03-18 21:13:39.124449"], ["updated_at", "2015-03-18 21:13:39.124449"], ["token", "j0kUFwbW6dqYrJdNk1u4KIxQcU6KtsPJgI30v0Gm3Iw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.128769"], ["updated_at", "2015-03-18 21:13:39.128769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5b92604-cdb3-11e4-8df6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5bb09d8-cdb3-11e4-ae3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5b92604-cdb3-11e4-8df6-705681abff85"], ["organization_id", "a5bb09d8-cdb3-11e4-ae3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.132695"], ["updated_at", "2015-03-18 21:13:39.132695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5b9ed28-cdb3-11e4-b5c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5bb09d8-cdb3-11e4-ae3e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5b9ed28-cdb3-11e4-b5c5-705681abff85"], ["organization_id", "a5bb09d8-cdb3-11e4-ae3e-705681abff85"], ["created_at", "2015-03-18 21:13:39.136807"], ["updated_at", "2015-03-18 21:13:39.136807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$96lwSXt.2FNyfgfUtKtLnOsUW44EK.4f4HmGhfONvb.ofeAkoOHU2"], ["created_at", "2015-03-18 21:13:39.142431"], ["updated_at", "2015-03-18 21:13:39.142431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.144559"], ["user_id", "a5bd2970-cdb3-11e4-88db-705681abff85"], ["created_at", "2015-03-18 21:13:39.145556"], ["updated_at", "2015-03-18 21:13:39.145556"], ["token", "DcBm7gbE5sOmzKVBkYc42g-Wp-q_thYkE3hB_onkbZE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a5bb09d8-cdb3-11e4-ae3e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a5bb09d8-cdb3-11e4-ae3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.150661"], ["updated_at", "2015-03-18 21:13:39.150661"], ["token", "awObDMRTc1SSY8ug-QLRo_zLTYR_UfvZ-izMuwb_mEk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a5bb09d8-cdb3-11e4-ae3e-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"awObDMRTc1SSY8ug-QLRo_zLTYR_UfvZ-izMuwb_mEk", "organization_id"=>"a5bb09d8-cdb3-11e4-ae3e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:39.157704' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DcBm7gbE5sOmzKVBkYc42g-Wp-q_thYkE3hB_onkbZE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:39.159267"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:39.160423"], ["id", "a5bda47c-cdb3-11e4-938e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5bd2970-cdb3-11e4-88db-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a5bd2970-cdb3-11e4-88db-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a5bb09d8-cdb3-11e4-ae3e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "awObDMRTc1SSY8ug-QLRo_zLTYR_UfvZ-izMuwb_mEk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a5bb09d8-cdb3-11e4-ae3e-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a5bb09d8-cdb3-11e4-ae3e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5bd2970-cdb3-11e4-88db-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5bb09d8-cdb3-11e4-ae3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5bd2970-cdb3-11e4-88db-705681abff85"], ["admin", "t"], ["organization_id", "a5bb09d8-cdb3-11e4-ae3e-705681abff85"], ["created_at", "2015-03-18 21:13:39.172795"], ["updated_at", "2015-03-18 21:13:39.172795"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a5be66e6-cdb3-11e4-bfc5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ZbvhDZ7ZD0q1xpjL/zFvU.QlFwznG2Xr8W65Vc.9JXpfQG9Jx9OHu"], ["created_at", "2015-03-18 21:13:39.183819"], ["updated_at", "2015-03-18 21:13:39.183819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$IRu/Mcjij0C3xyJPldV1WOHwNQsgaL3kSb3Wiz21CeLI6/GgFtZrC"], ["created_at", "2015-03-18 21:13:39.189606"], ["updated_at", "2015-03-18 21:13:39.189606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.191810"], ["user_id", "a5c37ece-cdb3-11e4-86c1-705681abff85"], ["created_at", "2015-03-18 21:13:39.192756"], ["updated_at", "2015-03-18 21:13:39.192756"], ["token", "R2t-_uFVU-Ce0TebWkqivyQzd6iOls6U6s67G9zLgac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.197442"], ["updated_at", "2015-03-18 21:13:39.197442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5c37ece-cdb3-11e4-86c1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5c5875a-cdb3-11e4-910e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5c37ece-cdb3-11e4-86c1-705681abff85"], ["organization_id", "a5c5875a-cdb3-11e4-910e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.201740"], ["updated_at", "2015-03-18 21:13:39.201740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5c45376-cdb3-11e4-a63c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5c5875a-cdb3-11e4-910e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5c45376-cdb3-11e4-a63c-705681abff85"], ["organization_id", "a5c5875a-cdb3-11e4-910e-705681abff85"], ["created_at", "2015-03-18 21:13:39.205540"], ["updated_at", "2015-03-18 21:13:39.205540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$59ZCIwLYBXCQqBaHX0XFr.EchnsNPdoWkzQo/J9c6YXxT7HXWUxOK"], ["created_at", "2015-03-18 21:13:39.225845"], ["updated_at", "2015-03-18 21:13:39.225845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.227946"], ["user_id", "a5c9df12-cdb3-11e4-bf4f-705681abff85"], ["created_at", "2015-03-18 21:13:39.229069"], ["updated_at", "2015-03-18 21:13:39.229069"], ["token", "K2R8OPduY9F9Xbbs6e4PGt8tx9QAfCHleXARUJLwTEk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a5c5875a-cdb3-11e4-910e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a5c5875a-cdb3-11e4-910e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.234339"], ["updated_at", "2015-03-18 21:13:39.234339"], ["token", "wksJ-uovQKXU9EVPnVFJRiPBApGZMtFhzZD0OewjxSA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$8bf/yK9NlCRyjgu9p/WRhugc5oPZulkMkiAlRKVOjB1oo7bYGS6L2"], ["created_at", "2015-03-18 21:13:39.246173"], ["updated_at", "2015-03-18 21:13:39.246173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$M3/ACHIpjcwyWl3dm09LH.CB99QGEngicv.t4fgsA/AeC4xscuOMe"], ["created_at", "2015-03-18 21:13:39.250781"], ["updated_at", "2015-03-18 21:13:39.250781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.252615"], ["user_id", "a5ccf1ac-cdb3-11e4-80db-705681abff85"], ["created_at", "2015-03-18 21:13:39.253434"], ["updated_at", "2015-03-18 21:13:39.253434"], ["token", "7vOxOMnZZp8vdLzFDIBWNTd71-1A-mF_1X8oPjZ1Vso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.256935"], ["updated_at", "2015-03-18 21:13:39.256935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5ccf1ac-cdb3-11e4-80db-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5ce8fbc-cdb3-11e4-b66b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5ccf1ac-cdb3-11e4-80db-705681abff85"], ["organization_id", "a5ce8fbc-cdb3-11e4-b66b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.260115"], ["updated_at", "2015-03-18 21:13:39.260115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5cda8d6-cdb3-11e4-a09d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5ce8fbc-cdb3-11e4-b66b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5cda8d6-cdb3-11e4-a09d-705681abff85"], ["organization_id", "a5ce8fbc-cdb3-11e4-b66b-705681abff85"], ["created_at", "2015-03-18 21:13:39.263052"], ["updated_at", "2015-03-18 21:13:39.263052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$pYZZY8bToYAYQX0Y2SavZezWh4qqR0c2ashYVorUJOIOXKYLqUqEi"], ["created_at", "2015-03-18 21:13:39.267420"], ["updated_at", "2015-03-18 21:13:39.267420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.268941"], ["user_id", "a5d02ade-cdb3-11e4-9d6e-705681abff85"], ["created_at", "2015-03-18 21:13:39.269694"], ["updated_at", "2015-03-18 21:13:39.269694"], ["token", "01eYm3Ws5tAVnLr3s6gKnb644limSjlTAvQYByoA2Us"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a5ce8fbc-cdb3-11e4-b66b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a5ce8fbc-cdb3-11e4-b66b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.273478"], ["updated_at", "2015-03-18 21:13:39.273478"], ["token", "ATULM7M0Fz3M6cmXAhLMFOeAWoewGjkrWx6kTSFKb3c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:39.279262' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "01eYm3Ws5tAVnLr3s6gKnb644limSjlTAvQYByoA2Us"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:39.280758"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:39.281789"], ["id", "a5d08c04-cdb3-11e4-8a45-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5d02ade-cdb3-11e4-9d6e-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a5d02ade-cdb3-11e4-9d6e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$nxykqX8pHZec98NClU19du9vggxHeuC0oKSzL5SwRwOq5DDkxmzk2"], ["created_at", "2015-03-18 21:13:39.294466"], ["updated_at", "2015-03-18 21:13:39.294466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$L1nwJ8bIMQ9HN1BevOZewuoQ4me1oJS/zdW0.Er/Lyaf2F1N3pi3K"], ["created_at", "2015-03-18 21:13:39.298577"], ["updated_at", "2015-03-18 21:13:39.298577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.300198"], ["user_id", "a5d44b8c-cdb3-11e4-91db-705681abff85"], ["created_at", "2015-03-18 21:13:39.301150"], ["updated_at", "2015-03-18 21:13:39.301150"], ["token", "NiDTpKRQuzpQQTOsomJ5CUJeboZCEPZvQKeV5_7inFA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.304660"], ["updated_at", "2015-03-18 21:13:39.304660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5d44b8c-cdb3-11e4-91db-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5d5d7cc-cdb3-11e4-a70b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5d44b8c-cdb3-11e4-91db-705681abff85"], ["organization_id", "a5d5d7cc-cdb3-11e4-a70b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.307893"], ["updated_at", "2015-03-18 21:13:39.307893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5d4eaec-cdb3-11e4-879b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5d5d7cc-cdb3-11e4-a70b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5d4eaec-cdb3-11e4-879b-705681abff85"], ["organization_id", "a5d5d7cc-cdb3-11e4-a70b-705681abff85"], ["created_at", "2015-03-18 21:13:39.311740"], ["updated_at", "2015-03-18 21:13:39.311740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$eBUoR4z2.SWelsWF0snxFeIPN7HbOiKdyZ2Y5ZJJ8Rt4zKnI3PoNG"], ["created_at", "2015-03-18 21:13:39.317429"], ["updated_at", "2015-03-18 21:13:39.317429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.319258"], ["user_id", "a5d7d2a2-cdb3-11e4-8c88-705681abff85"], ["created_at", "2015-03-18 21:13:39.320225"], ["updated_at", "2015-03-18 21:13:39.320225"], ["token", "dPIMklF7VpyHhkFfu-mcQBpQYqq7SU1CjZCFuLhMOhE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a5d5d7cc-cdb3-11e4-a70b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a5d5d7cc-cdb3-11e4-a70b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.324853"], ["updated_at", "2015-03-18 21:13:39.324853"], ["token", "KE4eeTJKoWuMzyeMup4RqqTtoN6imzz6hvTeRVrd2QA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"KE4eeTJKoWuMzyeMup4RqqTtoN6imzz6hvTeRVrd2QA", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:39.330973' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dPIMklF7VpyHhkFfu-mcQBpQYqq7SU1CjZCFuLhMOhE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:39.332837"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:39.334765"], ["id", "a5d84444-cdb3-11e4-9772-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5d7d2a2-cdb3-11e4-8c88-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a5d7d2a2-cdb3-11e4-8c88-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "KE4eeTJKoWuMzyeMup4RqqTtoN6imzz6hvTeRVrd2QA"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a5d5d7cc-cdb3-11e4-a70b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a5d5d7cc-cdb3-11e4-a70b-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5d7d2a2-cdb3-11e4-8c88-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5d5d7cc-cdb3-11e4-a70b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5d7d2a2-cdb3-11e4-8c88-705681abff85"], ["admin", "t"], ["organization_id", "a5d5d7cc-cdb3-11e4-a70b-705681abff85"], ["created_at", "2015-03-18 21:13:39.346267"], ["updated_at", "2015-03-18 21:13:39.346267"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a5d90154-cdb3-11e4-b573-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 19ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$iw1BrTduHXinK4h76yNg8OUD9zUN7HIcApbeQlYasHctHIuMT4lYK"], ["created_at", "2015-03-18 21:13:39.355391"], ["updated_at", "2015-03-18 21:13:39.355391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$gKevOuVqNNoiz2bUsJw85OkeauZ.Ya3XnSRVRoYA2THP9rLOUNKK6"], ["created_at", "2015-03-18 21:13:39.361135"], ["updated_at", "2015-03-18 21:13:39.361135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.363544"], ["user_id", "a5dd97c8-cdb3-11e4-a68e-705681abff85"], ["created_at", "2015-03-18 21:13:39.364303"], ["updated_at", "2015-03-18 21:13:39.364303"], ["token", "jw58e2n-obxSBsFDPLgkjU5eb8AfvSXW1_a_U4qa_Z4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.367736"], ["updated_at", "2015-03-18 21:13:39.367736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5dd97c8-cdb3-11e4-a68e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5df782c-cdb3-11e4-b20d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5dd97c8-cdb3-11e4-a68e-705681abff85"], ["organization_id", "a5df782c-cdb3-11e4-b20d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.370981"], ["updated_at", "2015-03-18 21:13:39.370981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5de8980-cdb3-11e4-862c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5df782c-cdb3-11e4-b20d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5de8980-cdb3-11e4-862c-705681abff85"], ["organization_id", "a5df782c-cdb3-11e4-b20d-705681abff85"], ["created_at", "2015-03-18 21:13:39.374032"], ["updated_at", "2015-03-18 21:13:39.374032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$Nwk.8bUICQncNyAsIcIG/OOUUMRs0y0V5pL1HBZRsKsZi6EslZiAS"], ["created_at", "2015-03-18 21:13:39.385706"], ["updated_at", "2015-03-18 21:13:39.385706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$q5fH1.vDAyyKKXOLKmfD/ectU5AqfKV/bZaO87nItmY51i2whLGBq"], ["created_at", "2015-03-18 21:13:39.390820"], ["updated_at", "2015-03-18 21:13:39.390820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.392473"], ["user_id", "a5e24548-cdb3-11e4-aa6b-705681abff85"], ["created_at", "2015-03-18 21:13:39.393293"], ["updated_at", "2015-03-18 21:13:39.393293"], ["token", "WFe2kJDd8s0WaTv1ndT76xPiyeVYy_b2uglA0NQ1Nac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.396820"], ["updated_at", "2015-03-18 21:13:39.396820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5e24548-cdb3-11e4-aa6b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5e3e8ee-cdb3-11e4-b0bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5e24548-cdb3-11e4-aa6b-705681abff85"], ["organization_id", "a5e3e8ee-cdb3-11e4-b0bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.400288"], ["updated_at", "2015-03-18 21:13:39.400288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5e30046-cdb3-11e4-bc2f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5e3e8ee-cdb3-11e4-b0bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5e30046-cdb3-11e4-bc2f-705681abff85"], ["organization_id", "a5e3e8ee-cdb3-11e4-b0bd-705681abff85"], ["created_at", "2015-03-18 21:13:39.403400"], ["updated_at", "2015-03-18 21:13:39.403400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a5e470e8-cdb3-11e4-add0-705681abff85" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"a5e470e8-cdb3-11e4-add0-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:39.409370' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WFe2kJDd8s0WaTv1ndT76xPiyeVYy_b2uglA0NQ1Nac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:39.411017"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:39.412082"], ["id", "a5e36856-cdb3-11e4-8327-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5e24548-cdb3-11e4-aa6b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a5e24548-cdb3-11e4-aa6b-705681abff85"]] Completed 500 Internal Server Error in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$AFvs5SoM9sBumkLoeYdz1OyuaPUe2yF.evKXO9uDP8Y1suS2Fvd8e"], ["created_at", "2015-03-18 21:13:39.436751"], ["updated_at", "2015-03-18 21:13:39.436751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$mMUYGwUP2Ax1rVyKC7TZ8eDuPfz8bGkKugZdhK60HFjN6tXepOpge"], ["created_at", "2015-03-18 21:13:39.441350"], ["updated_at", "2015-03-18 21:13:39.441350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.443014"], ["user_id", "a5ea08b4-cdb3-11e4-bd62-705681abff85"], ["created_at", "2015-03-18 21:13:39.443825"], ["updated_at", "2015-03-18 21:13:39.443825"], ["token", "evPQSkSFC_HnjeVZsLhpIyCeYUAjl0M1zhUCOXFOVio"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.447368"], ["updated_at", "2015-03-18 21:13:39.447368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5ea08b4-cdb3-11e4-bd62-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5eba75a-cdb3-11e4-9fa8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5ea08b4-cdb3-11e4-bd62-705681abff85"], ["organization_id", "a5eba75a-cdb3-11e4-9fa8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.451254"], ["updated_at", "2015-03-18 21:13:39.451254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5eab494-cdb3-11e4-88ee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5eba75a-cdb3-11e4-9fa8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5eab494-cdb3-11e4-88ee-705681abff85"], ["organization_id", "a5eba75a-cdb3-11e4-9fa8-705681abff85"], ["created_at", "2015-03-18 21:13:39.454461"], ["updated_at", "2015-03-18 21:13:39.454461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a5ecb46a-cdb3-11e4-b773-705681abff85" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"a5ecb46a-cdb3-11e4-b773-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:39.459676' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "evPQSkSFC_HnjeVZsLhpIyCeYUAjl0M1zhUCOXFOVio"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:39.461236"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:39.462392"], ["id", "a5eb1e48-cdb3-11e4-8b34-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5ea08b4-cdb3-11e4-bd62-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a5ea08b4-cdb3-11e4-bd62-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$I5dVP90OCa2ZNxA7DpyodehONHAfZIM353qTSk3Ki1bCCAKyJbN.a"], ["created_at", "2015-03-18 21:13:39.472538"], ["updated_at", "2015-03-18 21:13:39.472538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$NPDm5Mtlhkj/C1m2ITB12eXPshIwlx4P/piaW9SOmu5xd9bqRMa6q"], ["created_at", "2015-03-18 21:13:39.477967"], ["updated_at", "2015-03-18 21:13:39.477967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.479600"], ["user_id", "a5ef885c-cdb3-11e4-8091-705681abff85"], ["created_at", "2015-03-18 21:13:39.480936"], ["updated_at", "2015-03-18 21:13:39.480936"], ["token", "fyOVGJ15TJmdIjEsTIjrCcG3SuYHIbJ_pqpfcCxe9Hk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.486534"], ["updated_at", "2015-03-18 21:13:39.486534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5ef885c-cdb3-11e4-8091-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5f19c0a-cdb3-11e4-a418-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5ef885c-cdb3-11e4-8091-705681abff85"], ["organization_id", "a5f19c0a-cdb3-11e4-a418-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.490246"], ["updated_at", "2015-03-18 21:13:39.490246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5f04e04-cdb3-11e4-8d20-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5f19c0a-cdb3-11e4-a418-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5f04e04-cdb3-11e4-8d20-705681abff85"], ["organization_id", "a5f19c0a-cdb3-11e4-a418-705681abff85"], ["created_at", "2015-03-18 21:13:39.493423"], ["updated_at", "2015-03-18 21:13:39.493423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a5f19c0a-cdb3-11e4-a418-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"a5f19c0a-cdb3-11e4-a418-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:39.498675' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fyOVGJ15TJmdIjEsTIjrCcG3SuYHIbJ_pqpfcCxe9Hk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:39.500058"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:39.501038"], ["id", "a5f0eab2-cdb3-11e4-8baf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5ef885c-cdb3-11e4-8091-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a5ef885c-cdb3-11e4-8091-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a5f19c0a-cdb3-11e4-a418-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "a5f19c0a-cdb3-11e4-a418-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('a5ef885c-cdb3-11e4-8091-705681abff85', 'a5f04e04-cdb3-11e4-8d20-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a5f19c0a-cdb3-11e4-a418-705681abff85') Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$fS8xN2tuD.CTGr8DU3JG1OOJdq7prr8vJhZ7G1uuT68A3MvDr/nPK"], ["created_at", "2015-03-18 21:13:39.516591"], ["updated_at", "2015-03-18 21:13:39.516591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$cbOmj7PGHXTnSZQm1ZXezudh4Jn/ETUS/HumOPdRjRQI3iwrsRnYW"], ["created_at", "2015-03-18 21:13:39.521075"], ["updated_at", "2015-03-18 21:13:39.521075"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.523177"], ["user_id", "a5f63300-cdb3-11e4-b3de-705681abff85"], ["created_at", "2015-03-18 21:13:39.524253"], ["updated_at", "2015-03-18 21:13:39.524253"], ["token", "qHGDjf54_LdoJvhagfsleZ9durjg5E7r-ZjKB7hmPfA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.528241"], ["updated_at", "2015-03-18 21:13:39.528241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5f63300-cdb3-11e4-b3de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5f7f8b6-cdb3-11e4-a746-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5f63300-cdb3-11e4-b3de-705681abff85"], ["organization_id", "a5f7f8b6-cdb3-11e4-a746-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.531792"], ["updated_at", "2015-03-18 21:13:39.531792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5f6e1ce-cdb3-11e4-a532-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5f7f8b6-cdb3-11e4-a746-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5f6e1ce-cdb3-11e4-a532-705681abff85"], ["organization_id", "a5f7f8b6-cdb3-11e4-a746-705681abff85"], ["created_at", "2015-03-18 21:13:39.534887"], ["updated_at", "2015-03-18 21:13:39.534887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$YaiIRda2VsONKOHYoKb2sOn6nVWZ47cvxnrjGu5D6SLKJjTarjb86"], ["created_at", "2015-03-18 21:13:39.545657"], ["updated_at", "2015-03-18 21:13:39.545657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$8eg40FXFchKOuhiCpd8JSOT1y8AVGJe6qbgkObeXKEM6AE2B3JHLW"], ["created_at", "2015-03-18 21:13:39.550036"], ["updated_at", "2015-03-18 21:13:39.550036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.551827"], ["user_id", "a5faa35e-cdb3-11e4-87c8-705681abff85"], ["created_at", "2015-03-18 21:13:39.552661"], ["updated_at", "2015-03-18 21:13:39.552661"], ["token", "eT1IjRAItP3AojACFMYOB-73WrUXSg87ER-NVsq5014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.556262"], ["updated_at", "2015-03-18 21:13:39.556262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5faa35e-cdb3-11e4-87c8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5fc42b8-cdb3-11e4-ba27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5faa35e-cdb3-11e4-87c8-705681abff85"], ["organization_id", "a5fc42b8-cdb3-11e4-ba27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.560158"], ["updated_at", "2015-03-18 21:13:39.560158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5fb4b4c-cdb3-11e4-a937-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a5fc42b8-cdb3-11e4-ba27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5fb4b4c-cdb3-11e4-a937-705681abff85"], ["organization_id", "a5fc42b8-cdb3-11e4-ba27-705681abff85"], ["created_at", "2015-03-18 21:13:39.563604"], ["updated_at", "2015-03-18 21:13:39.563604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/a5fcdaac-cdb3-11e4-9ae4-705681abff85" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"a5fcdaac-cdb3-11e4-9ae4-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:39.569484' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eT1IjRAItP3AojACFMYOB-73WrUXSg87ER-NVsq5014"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:39.571170"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:39.572389"], ["id", "a5fbb938-cdb3-11e4-a44f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5faa35e-cdb3-11e4-87c8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a5faa35e-cdb3-11e4-87c8-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "a5fcdaac-cdb3-11e4-9ae4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a5fc42b8-cdb3-11e4-ba27-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a5faa35e-cdb3-11e4-87c8-705681abff85' LIMIT 1 [["organization_id", "a5fc42b8-cdb3-11e4-ba27-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5faa35e-cdb3-11e4-87c8-705681abff85"]] Completed 200 OK in 26ms (Views: 2.0ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$Tr8yqGU8C8YsHwb9UBEW9ensj0E6bWFSIHogr073rVd5r4MiFB3D2"], ["created_at", "2015-03-18 21:13:39.604625"], ["updated_at", "2015-03-18 21:13:39.604625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$//9RMR3FcIRejjfm8p9yqekXhXc4O5LoOxR0EsoAnxprIHofU4qZK"], ["created_at", "2015-03-18 21:13:39.609109"], ["updated_at", "2015-03-18 21:13:39.609109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.610689"], ["user_id", "a603a170-cdb3-11e4-8ca6-705681abff85"], ["created_at", "2015-03-18 21:13:39.611472"], ["updated_at", "2015-03-18 21:13:39.611472"], ["token", "gkL22HJhQUbuOExDG6kEBvPqumS9aata83qZ1K6PJRY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.615073"], ["updated_at", "2015-03-18 21:13:39.615073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a603a170-cdb3-11e4-8ca6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a605374c-cdb3-11e4-83f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a603a170-cdb3-11e4-8ca6-705681abff85"], ["organization_id", "a605374c-cdb3-11e4-83f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.618582"], ["updated_at", "2015-03-18 21:13:39.618582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6044dbe-cdb3-11e4-a411-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a605374c-cdb3-11e4-83f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6044dbe-cdb3-11e4-a411-705681abff85"], ["organization_id", "a605374c-cdb3-11e4-83f3-705681abff85"], ["created_at", "2015-03-18 21:13:39.621665"], ["updated_at", "2015-03-18 21:13:39.621665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$qf7r4EkE1vmXdp1B0fM1MOh2sBl4aJrXO/VGLNvQZVgmJMjYmdczy"], ["created_at", "2015-03-18 21:13:39.632340"], ["updated_at", "2015-03-18 21:13:39.632340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$O7aMBmuj5Yx9rvyfFZ13..jclhbOd4z1e5O3qkZKmSx3/CM7SajLG"], ["created_at", "2015-03-18 21:13:39.636547"], ["updated_at", "2015-03-18 21:13:39.636547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.638628"], ["user_id", "a607daec-cdb3-11e4-b4bd-705681abff85"], ["created_at", "2015-03-18 21:13:39.639414"], ["updated_at", "2015-03-18 21:13:39.639414"], ["token", "LnkL9CaBlLz_2cDkauL3MzQxfw8XewVjjyYrO__QU2M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.644222"], ["updated_at", "2015-03-18 21:13:39.644222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a607daec-cdb3-11e4-b4bd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a609aa66-cdb3-11e4-88a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a607daec-cdb3-11e4-b4bd-705681abff85"], ["organization_id", "a609aa66-cdb3-11e4-88a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.647712"], ["updated_at", "2015-03-18 21:13:39.647712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a60890c2-cdb3-11e4-8d67-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a609aa66-cdb3-11e4-88a8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a60890c2-cdb3-11e4-8d67-705681abff85"], ["organization_id", "a609aa66-cdb3-11e4-88a8-705681abff85"], ["created_at", "2015-03-18 21:13:39.651012"], ["updated_at", "2015-03-18 21:13:39.651012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$MpX4C/A7osMXepBsfBNpRedBvRFPNXNHl0KGNuAurEKuxun9JlyCW"], ["created_at", "2015-03-18 21:13:39.660733"], ["updated_at", "2015-03-18 21:13:39.660733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$RMG6blrwUoA2zm6a2QxYCOu/4fkfsegRyr1CFCIBP28c3RgZodE6y"], ["created_at", "2015-03-18 21:13:39.665021"], ["updated_at", "2015-03-18 21:13:39.665021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.666570"], ["user_id", "a60c31fa-cdb3-11e4-a866-705681abff85"], ["created_at", "2015-03-18 21:13:39.667381"], ["updated_at", "2015-03-18 21:13:39.667381"], ["token", "0krHcpQPK7GhikKef9fLnTIfumdjj1QthwX5153jyHQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.670765"], ["updated_at", "2015-03-18 21:13:39.670765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a60c31fa-cdb3-11e4-a866-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a60db3f4-cdb3-11e4-b060-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a60c31fa-cdb3-11e4-a866-705681abff85"], ["organization_id", "a60db3f4-cdb3-11e4-b060-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.674035"], ["updated_at", "2015-03-18 21:13:39.674035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a60cd60a-cdb3-11e4-9a7d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a60db3f4-cdb3-11e4-b060-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a60cd60a-cdb3-11e4-9a7d-705681abff85"], ["organization_id", "a60db3f4-cdb3-11e4-b060-705681abff85"], ["created_at", "2015-03-18 21:13:39.678109"], ["updated_at", "2015-03-18 21:13:39.678109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/a60e3f54-cdb3-11e4-b2cc-705681abff85" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"a60e3f54-cdb3-11e4-b2cc-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:39.683178' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0krHcpQPK7GhikKef9fLnTIfumdjj1QthwX5153jyHQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:39.684657"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:39.685683"], ["id", "a60d3780-cdb3-11e4-bc34-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a60c31fa-cdb3-11e4-a866-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a60c31fa-cdb3-11e4-a866-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$MYDGBFoZe5J8wXP4TFpVmu.VzGbnyLQVg.Sjh8bucTiCoywj38P0i"], ["created_at", "2015-03-18 21:13:39.699782"], ["updated_at", "2015-03-18 21:13:39.699782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$DOBJAGEa6rM4g6FhomQLj.W02yLN2SxXBpjrmWglBA/pxx92REXUa"], ["created_at", "2015-03-18 21:13:39.704406"], ["updated_at", "2015-03-18 21:13:39.704406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 21:13:39.706037"], ["user_id", "a6122920-cdb3-11e4-8489-705681abff85"], ["created_at", "2015-03-18 21:13:39.706925"], ["updated_at", "2015-03-18 21:13:39.706925"], ["token", "5lG87Qpehlr3_K-MxSejTyRyTlfmA8V8vRSa2w4u90I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 21:13:39.710673"], ["updated_at", "2015-03-18 21:13:39.710673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6122920-cdb3-11e4-8489-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a613cdca-cdb3-11e4-8429-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6122920-cdb3-11e4-8489-705681abff85"], ["organization_id", "a613cdca-cdb3-11e4-8429-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 21:13:39.714162"], ["updated_at", "2015-03-18 21:13:39.714162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a612da6e-cdb3-11e4-86a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a613cdca-cdb3-11e4-8429-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a612da6e-cdb3-11e4-86a2-705681abff85"], ["organization_id", "a613cdca-cdb3-11e4-8429-705681abff85"], ["created_at", "2015-03-18 21:13:39.717239"], ["updated_at", "2015-03-18 21:13:39.717239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/a614cc7a-cdb3-11e4-9961-705681abff85" for 127.0.0.1 at 2015-03-18 14:13:39 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"a614cc7a-cdb3-11e4-9961-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 21:13:39.722047' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5lG87Qpehlr3_K-MxSejTyRyTlfmA8V8vRSa2w4u90I"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 21:13:39.723914"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 21:13:39.725817"], ["id", "a6134526-cdb3-11e4-9dde-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6122920-cdb3-11e4-8489-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a6122920-cdb3-11e4-8489-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 User Exists (7.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (115.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$1aFOAMSYL86vOqofwSBDsuTnWEpdB6LBGO3R09lQDLUcp.MtJtRS."], ["created_at", "2015-03-18 22:09:53.707795"], ["updated_at", "2015-03-18 22:09:53.707795"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:53.839011"], ["updated_at", "2015-03-18 22:09:53.839011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$cFs9OnCrMVEJiAkr1wKwbeiLZjk1wWTUHbzlxhcqD35Pqjpt5i/.O"], ["created_at", "2015-03-18 22:09:53.848269"], ["updated_at", "2015-03-18 22:09:53.848269"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:53.855378"], ["updated_at", "2015-03-18 22:09:53.855378"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '81386d6e-cdbb-11e4-9296-705681abff85' LIMIT 1 [["organization_id", "81399108-cdbb-11e4-815e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$kuzXd4xvZFQjyAX5ZWnSluIJNGD/I66EsdZDLCKF7j6P1rkeyoCgC"], ["created_at", "2015-03-18 22:09:53.893478"], ["updated_at", "2015-03-18 22:09:53.893478"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:53.897784"], ["updated_at", "2015-03-18 22:09:53.897784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '813f4b48-cdbb-11e4-aea4-705681abff85' LIMIT 1 [["organization_id", "813ff48a-cdbb-11e4-a35f-705681abff85"]]  (0.1ms) ROLLBACK  (2.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$RW03jCCEQ6N0VwUANJPYGerTFAgNBn/Da1ItAQ4cYCxJ36orHrt2e"], ["created_at", "2015-03-18 22:09:53.924460"], ["updated_at", "2015-03-18 22:09:53.924460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:53.928086"], ["updated_at", "2015-03-18 22:09:53.928086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8144035e-cdbb-11e4-80f1-705681abff85' LIMIT 1 [["organization_id", "8144850e-cdbb-11e4-8144-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$n8wx2CbPOKsmjrfwH6qDse49C1fYxmwlHTrlbI/.BGSHuu8joZHJ6"], ["created_at", "2015-03-18 22:09:53.934781"], ["updated_at", "2015-03-18 22:09:53.934781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:53.937803"], ["updated_at", "2015-03-18 22:09:53.937803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$43A2YfRCtbEnJAKW4hbS.eKW6bEXQWvd/mBKAlnd7phuwzsO1RN3m"], ["created_at", "2015-03-18 22:09:53.943286"], ["updated_at", "2015-03-18 22:09:53.943286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:53.946285"], ["updated_at", "2015-03-18 22:09:53.946285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8146d692-cdbb-11e4-ab87-705681abff85' AND "clubhouse_memberships"."organization_id" = '814789e8-cdbb-11e4-91f8-705681abff85') LIMIT 1 SQL (12.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8146d692-cdbb-11e4-ab87-705681abff85"], ["organization_id", "814789e8-cdbb-11e4-91f8-705681abff85"], ["created_at", "2015-03-18 22:09:53.960200"], ["updated_at", "2015-03-18 22:09:53.960200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$CY.Rv4XuxPErRoNVlQMTR.wXU.0t3X7Zg2FDe.KudkCnXNDwfuQgy"], ["created_at", "2015-03-18 22:09:53.979308"], ["updated_at", "2015-03-18 22:09:53.979308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:53.982473"], ["updated_at", "2015-03-18 22:09:53.982473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '814c5716-cdbb-11e4-8996-705681abff85' AND "clubhouse_memberships"."organization_id" = '814cd164-cdbb-11e4-8bdd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "814c5716-cdbb-11e4-8996-705681abff85"], ["organization_id", "814cd164-cdbb-11e4-8bdd-705681abff85"], ["created_at", "2015-03-18 22:09:53.985842"], ["updated_at", "2015-03-18 22:09:53.985842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '814c5716-cdbb-11e4-8996-705681abff85' LIMIT 1 [["organization_id", "814cd164-cdbb-11e4-8bdd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$7RI2CtB44x1jZ6c6H8agWuSE3oTWiEWCQdccAtEj8bK/srDZfst7m"], ["created_at", "2015-03-18 22:09:53.992857"], ["updated_at", "2015-03-18 22:09:53.992857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:53.996524"], ["updated_at", "2015-03-18 22:09:53.996524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '814e6808-cdbb-11e4-8ece-705681abff85' AND "clubhouse_memberships"."organization_id" = '814ef57a-cdbb-11e4-8e2e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "814e6808-cdbb-11e4-8ece-705681abff85"], ["organization_id", "814ef57a-cdbb-11e4-8e2e-705681abff85"], ["created_at", "2015-03-18 22:09:53.999786"], ["updated_at", "2015-03-18 22:09:53.999786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '814e6808-cdbb-11e4-8ece-705681abff85' LIMIT 1 [["organization_id", "814ef57a-cdbb-11e4-8e2e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$pCfeS9L.Qun5X4nLBRD/0uwx.dnNZMIi7me/CjLZlNL0hpKnF9pYe"], ["created_at", "2015-03-18 22:09:54.006677"], ["updated_at", "2015-03-18 22:09:54.006677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.010048"], ["updated_at", "2015-03-18 22:09:54.010048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8150841c-cdbb-11e4-970f-705681abff85' AND "clubhouse_memberships"."organization_id" = '81510dd8-cdbb-11e4-98c4-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8150841c-cdbb-11e4-970f-705681abff85"], ["organization_id", "81510dd8-cdbb-11e4-98c4-705681abff85"], ["created_at", "2015-03-18 22:09:54.014201"], ["updated_at", "2015-03-18 22:09:54.014201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8150841c-cdbb-11e4-970f-705681abff85' LIMIT 1 [["organization_id", "81510dd8-cdbb-11e4-98c4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$6ezMD73GYioQfI5LEN13m.D6gpG/lIgMZ.nuntAMH7WV1u2H6kWs."], ["created_at", "2015-03-18 22:09:54.022935"], ["updated_at", "2015-03-18 22:09:54.022935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.026067"], ["updated_at", "2015-03-18 22:09:54.026067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8152ff8a-cdbb-11e4-8edf-705681abff85' AND "clubhouse_memberships"."organization_id" = '81537b22-cdbb-11e4-847a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8152ff8a-cdbb-11e4-8edf-705681abff85"], ["organization_id", "81537b22-cdbb-11e4-847a-705681abff85"], ["created_at", "2015-03-18 22:09:54.030800"], ["updated_at", "2015-03-18 22:09:54.030800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$AMVj1Ac9ukVWAVLohu6HUeCSWmdCFJANUjA6yR4PtynXo18pcj0eG"], ["created_at", "2015-03-18 22:09:54.037705"], ["updated_at", "2015-03-18 22:09:54.037705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.041002"], ["updated_at", "2015-03-18 22:09:54.041002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81553fac-cdbb-11e4-948b-705681abff85' AND "clubhouse_memberships"."organization_id" = '8155bfea-cdbb-11e4-8519-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "81553fac-cdbb-11e4-948b-705681abff85"], ["organization_id", "8155bfea-cdbb-11e4-8519-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.044281"], ["updated_at", "2015-03-18 22:09:54.044281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$SDCG56eXM1NftKgLx8bM2O1yetb3g337itjuHmQIwGv6n96uBMVFW"], ["created_at", "2015-03-18 22:09:54.050055"], ["updated_at", "2015-03-18 22:09:54.050055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.053312"], ["updated_at", "2015-03-18 22:09:54.053312"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81572222-cdbb-11e4-8ff4-705681abff85' AND "clubhouse_memberships"."organization_id" = '8157a972-cdbb-11e4-ae01-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "81572222-cdbb-11e4-8ff4-705681abff85"], ["organization_id", "8157a972-cdbb-11e4-ae01-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.059569"], ["updated_at", "2015-03-18 22:09:54.059569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '81572222-cdbb-11e4-8ff4-705681abff85' LIMIT 1 [["organization_id", "8157a972-cdbb-11e4-ae01-705681abff85"]]  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$bJ6Rxs21LmCWViGYgXzYh.7FCbpDNFQ2FfsSzykzysImpMcHD.Qte"], ["created_at", "2015-03-18 22:09:54.068955"], ["updated_at", "2015-03-18 22:09:54.068955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.072384"], ["updated_at", "2015-03-18 22:09:54.072384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '815a05aa-cdbb-11e4-8a45-705681abff85' AND "clubhouse_memberships"."organization_id" = '815a896c-cdbb-11e4-a282-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "815a05aa-cdbb-11e4-8a45-705681abff85"], ["organization_id", "815a896c-cdbb-11e4-a282-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.075648"], ["updated_at", "2015-03-18 22:09:54.075648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '815a05aa-cdbb-11e4-8a45-705681abff85' LIMIT 1 [["organization_id", "815a896c-cdbb-11e4-a282-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ExPRIKGufdR0C.MpmDztiupjpKBme3Bspf6x6nKHXNoy/5WToHnIC"], ["created_at", "2015-03-18 22:09:54.082301"], ["updated_at", "2015-03-18 22:09:54.082301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.085686"], ["updated_at", "2015-03-18 22:09:54.085686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '815c0d32-cdbb-11e4-86f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '815c91f8-cdbb-11e4-9fd6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "815c0d32-cdbb-11e4-86f3-705681abff85"], ["organization_id", "815c91f8-cdbb-11e4-9fd6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.089700"], ["updated_at", "2015-03-18 22:09:54.089700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '815c0d32-cdbb-11e4-86f3-705681abff85' LIMIT 1 [["organization_id", "815c91f8-cdbb-11e4-9fd6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$u8zlXjFU0h2fW/aQGnHFhOmz6nEMBspV94DMQ./VHL8uz5o09cXOO"], ["created_at", "2015-03-18 22:09:54.096675"], ["updated_at", "2015-03-18 22:09:54.096675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.100198"], ["updated_at", "2015-03-18 22:09:54.100198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '815e3f44-cdbb-11e4-90f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '815ecdb0-cdbb-11e4-ae72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "815e3f44-cdbb-11e4-90f9-705681abff85"], ["organization_id", "815ecdb0-cdbb-11e4-ae72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.103895"], ["updated_at", "2015-03-18 22:09:54.103895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$xTpALePa9XzXv3FJA2FyNeMzIQYwfMTVpzUqoBAvSHOAmnPfUszUO"], ["created_at", "2015-03-18 22:09:54.110295"], ["updated_at", "2015-03-18 22:09:54.110295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$UMy40U4untxexy7zIsQilOJpXpiveicCyM5isYzl7wwOzBzWokHDi"], ["created_at", "2015-03-18 22:09:54.115749"], ["updated_at", "2015-03-18 22:09:54.115749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.119287"], ["updated_at", "2015-03-18 22:09:54.119287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81612e70-cdbb-11e4-9be8-705681abff85' AND "clubhouse_memberships"."organization_id" = '8161b20a-cdbb-11e4-b483-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "81612e70-cdbb-11e4-9be8-705681abff85"], ["organization_id", "8161b20a-cdbb-11e4-b483-705681abff85"], ["created_at", "2015-03-18 22:09:54.122590"], ["updated_at", "2015-03-18 22:09:54.122590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '81605702-cdbb-11e4-b25b-705681abff85' LIMIT 1 [["organization_id", "8161b20a-cdbb-11e4-b483-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$xiwGw6AZZa3EBVwdOYFe..BJ0JdezhUsgxfndGdNeikRk.kRdiENG"], ["created_at", "2015-03-18 22:09:54.130033"], ["updated_at", "2015-03-18 22:09:54.130033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$3Lv.6AWst.YNGlzoLA56aO5BMRKzvJQYp57HukHxOjBRtzsEeCJc2"], ["created_at", "2015-03-18 22:09:54.134466"], ["updated_at", "2015-03-18 22:09:54.134466"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.139246"], ["updated_at", "2015-03-18 22:09:54.139246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '816401e0-cdbb-11e4-89c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8164cca6-cdbb-11e4-8d47-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "816401e0-cdbb-11e4-89c7-705681abff85"], ["organization_id", "8164cca6-cdbb-11e4-8d47-705681abff85"], ["created_at", "2015-03-18 22:09:54.142801"], ["updated_at", "2015-03-18 22:09:54.142801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '816355d8-cdbb-11e4-8d55-705681abff85' LIMIT 1 [["organization_id", "8164cca6-cdbb-11e4-8d47-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$eZlSvkQoHaOwu9nOc.kiWOZ/862tRg2ATEdGxZZvfrzOKp13cdbBC"], ["created_at", "2015-03-18 22:09:54.150212"], ["updated_at", "2015-03-18 22:09:54.150212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$dNl9rhpysYR5lsTyQHC2IewqmmOUTQ6G9T.rfSKFLoWbRLz8Kd9Sq"], ["created_at", "2015-03-18 22:09:54.154703"], ["updated_at", "2015-03-18 22:09:54.154703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.158059"], ["updated_at", "2015-03-18 22:09:54.158059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '816718c6-cdbb-11e4-8d12-705681abff85' AND "clubhouse_memberships"."organization_id" = '81679d14-cdbb-11e4-9e80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "816718c6-cdbb-11e4-8d12-705681abff85"], ["organization_id", "81679d14-cdbb-11e4-9e80-705681abff85"], ["created_at", "2015-03-18 22:09:54.161328"], ["updated_at", "2015-03-18 22:09:54.161328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '81666e80-cdbb-11e4-9563-705681abff85' LIMIT 1 [["organization_id", "81679d14-cdbb-11e4-9e80-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$iuQqIQV.Xe06PWujUIUcpe6WLVGnSOhUEVRLZirfnE.geyJQS3WIy"], ["created_at", "2015-03-18 22:09:54.168792"], ["updated_at", "2015-03-18 22:09:54.168792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$5pNbvjdZRWXmslU1ZF.souvERFtG.siCVDSrDssprtbaN3jT5wlm6"], ["created_at", "2015-03-18 22:09:54.173007"], ["updated_at", "2015-03-18 22:09:54.173007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.176221"], ["updated_at", "2015-03-18 22:09:54.176221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8169e42a-cdbb-11e4-b0aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '816a60a8-cdbb-11e4-aa2b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8169e42a-cdbb-11e4-b0aa-705681abff85"], ["organization_id", "816a60a8-cdbb-11e4-aa2b-705681abff85"], ["created_at", "2015-03-18 22:09:54.180247"], ["updated_at", "2015-03-18 22:09:54.180247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '81693fd4-cdbb-11e4-901f-705681abff85' LIMIT 1 [["organization_id", "816a60a8-cdbb-11e4-aa2b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$drTT.dwTbBZElhsNQK9MoO7Lk0be5tgp0Wmp.nvamyNZdJ2OLldXu"], ["created_at", "2015-03-18 22:09:54.187916"], ["updated_at", "2015-03-18 22:09:54.187916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.191237"], ["updated_at", "2015-03-18 22:09:54.191237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '816c2d2a-cdbb-11e4-8063-705681abff85' AND "clubhouse_memberships"."organization_id" = '816caed0-cdbb-11e4-a54a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "816c2d2a-cdbb-11e4-8063-705681abff85"], ["organization_id", "816caed0-cdbb-11e4-a54a-705681abff85"], ["created_at", "2015-03-18 22:09:54.194878"], ["updated_at", "2015-03-18 22:09:54.194878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '816c2d2a-cdbb-11e4-8063-705681abff85' LIMIT 1 [["organization_id", "816caed0-cdbb-11e4-a54a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$qnIrOJwIJ1UubU4/rchU4.WgYKybhtKmVdnUKDNW5kg4/avrWtg6."], ["created_at", "2015-03-18 22:09:54.202829"], ["updated_at", "2015-03-18 22:09:54.202829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.206359"], ["updated_at", "2015-03-18 22:09:54.206359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '816e7774-cdbb-11e4-8712-705681abff85' AND "clubhouse_memberships"."organization_id" = '816efcbc-cdbb-11e4-8ea5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "816e7774-cdbb-11e4-8712-705681abff85"], ["organization_id", "816efcbc-cdbb-11e4-8ea5-705681abff85"], ["created_at", "2015-03-18 22:09:54.209772"], ["updated_at", "2015-03-18 22:09:54.209772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '816e7774-cdbb-11e4-8712-705681abff85' LIMIT 1 [["organization_id", "816efcbc-cdbb-11e4-8ea5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$8LPKckyOUqizgMyRPZQOM.lQr0V91bsf58j0A08vGUlA/AeLO9DYe"], ["created_at", "2015-03-18 22:09:54.217539"], ["updated_at", "2015-03-18 22:09:54.217539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.220899"], ["updated_at", "2015-03-18 22:09:54.220899"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8170b354-cdbb-11e4-be25-705681abff85' AND "clubhouse_memberships"."organization_id" = '81713450-cdbb-11e4-8e06-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8170b354-cdbb-11e4-be25-705681abff85"], ["organization_id", "81713450-cdbb-11e4-8e06-705681abff85"], ["created_at", "2015-03-18 22:09:54.232748"], ["updated_at", "2015-03-18 22:09:54.232748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8170b354-cdbb-11e4-be25-705681abff85' LIMIT 1 [["organization_id", "81713450-cdbb-11e4-8e06-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$DhZmyUbAnrFm/jEhj4m0Sej2HMNVYgZ2FObN.X7GEkad7wEFll13q"], ["created_at", "2015-03-18 22:09:54.241810"], ["updated_at", "2015-03-18 22:09:54.241810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.245262"], ["updated_at", "2015-03-18 22:09:54.245262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81746602-cdbb-11e4-8901-705681abff85' AND "clubhouse_memberships"."organization_id" = '8174fd1a-cdbb-11e4-b99d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "81746602-cdbb-11e4-8901-705681abff85"], ["organization_id", "8174fd1a-cdbb-11e4-b99d-705681abff85"], ["created_at", "2015-03-18 22:09:54.249583"], ["updated_at", "2015-03-18 22:09:54.249583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '81746602-cdbb-11e4-8901-705681abff85' LIMIT 1 [["organization_id", "8174fd1a-cdbb-11e4-b99d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$CvmMyqdUdaqnijcRrA7./es0LXYKju56oH.TZRBbeK403VqABm1Ye"], ["created_at", "2015-03-18 22:09:54.257420"], ["updated_at", "2015-03-18 22:09:54.257420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.260533"], ["updated_at", "2015-03-18 22:09:54.260533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8176c5f0-cdbb-11e4-a970-705681abff85' AND "clubhouse_memberships"."organization_id" = '81773d3c-cdbb-11e4-96ad-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8176c5f0-cdbb-11e4-a970-705681abff85"], ["organization_id", "81773d3c-cdbb-11e4-96ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.264090"], ["updated_at", "2015-03-18 22:09:54.264090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '8176c5f0-cdbb-11e4-a970-705681abff85' LIMIT 1 [["organization_id", "81773d3c-cdbb-11e4-96ad-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$0TMKU7ncZ5SN3SORjedUNuKO1J5AbnWI9mmg4bobZVlE1wZqG4hhW"], ["created_at", "2015-03-18 22:09:54.271864"], ["updated_at", "2015-03-18 22:09:54.271864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.275215"], ["updated_at", "2015-03-18 22:09:54.275215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81790266-cdbb-11e4-b9ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '81797b42-cdbb-11e4-9022-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "81790266-cdbb-11e4-b9ef-705681abff85"], ["organization_id", "81797b42-cdbb-11e4-9022-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.278351"], ["updated_at", "2015-03-18 22:09:54.278351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '81790266-cdbb-11e4-b9ef-705681abff85' LIMIT 1 [["organization_id", "81797b42-cdbb-11e4-9022-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$3V34OdD9GDciv6/2Hb1Kqu1szaDzK6cN5bhQJlzlaMf1GolqlCjQ."], ["created_at", "2015-03-18 22:09:54.285396"], ["updated_at", "2015-03-18 22:09:54.285396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.288937"], ["updated_at", "2015-03-18 22:09:54.288937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '817b0cb4-cdbb-11e4-8c54-705681abff85' AND "clubhouse_memberships"."organization_id" = '817b949a-cdbb-11e4-9343-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "817b0cb4-cdbb-11e4-8c54-705681abff85"], ["organization_id", "817b949a-cdbb-11e4-9343-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.292167"], ["updated_at", "2015-03-18 22:09:54.292167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '817b0cb4-cdbb-11e4-8c54-705681abff85' LIMIT 1 [["organization_id", "817b949a-cdbb-11e4-9343-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$mq1QHjoTJt1xNEEijq7mZ.k/KOAGOC3ISVvVrabXVuIY9ahXQF6Ja"], ["created_at", "2015-03-18 22:09:54.299179"], ["updated_at", "2015-03-18 22:09:54.299179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.302802"], ["updated_at", "2015-03-18 22:09:54.302802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '817d2e0e-cdbb-11e4-a8dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '817db1e4-cdbb-11e4-adc4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "817d2e0e-cdbb-11e4-a8dd-705681abff85"], ["organization_id", "817db1e4-cdbb-11e4-adc4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.305982"], ["updated_at", "2015-03-18 22:09:54.305982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '817d2e0e-cdbb-11e4-a8dd-705681abff85' LIMIT 1 [["organization_id", "817db1e4-cdbb-11e4-adc4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$NdKnkfPG4jShFl3AJBKhpOnB5O5skgksMKMAYiXJWYQy/FN/BDdOO"], ["created_at", "2015-03-18 22:09:54.312807"], ["updated_at", "2015-03-18 22:09:54.312807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.317292"], ["updated_at", "2015-03-18 22:09:54.317292"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '817ffc1a-cdbb-11e4-9f94-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "817ffc1a-cdbb-11e4-9f94-705681abff85"], ["created_at", "2015-03-18 22:09:54.337435"], ["updated_at", "2015-03-18 22:09:54.337435"], ["token", "oVyiq66GgwWRZbmz41EZXbOi3wvebIxX10MbLsNN-2Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '817f432e-cdbb-11e4-81aa-705681abff85' LIMIT 1 [["organization_id", "817ffc1a-cdbb-11e4-9f94-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$RO7dfjnM4Diqs2DKFWB4oOClG.2nxLlGTRRksdINsYHAHcPKvmBFi"], ["created_at", "2015-03-18 22:09:54.346488"], ["updated_at", "2015-03-18 22:09:54.346488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.350349"], ["updated_at", "2015-03-18 22:09:54.350349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '8184f5ee-cdbb-11e4-a361-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "8184f5ee-cdbb-11e4-a361-705681abff85"], ["created_at", "2015-03-18 22:09:54.354169"], ["updated_at", "2015-03-18 22:09:54.354169"], ["token", "F_cOZ12UOGT4aXvbHrE8OD8YGXVa7MMxD6ktvaKK7a8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8184643a-cdbb-11e4-b5b2-705681abff85' LIMIT 1 [["organization_id", "8184f5ee-cdbb-11e4-a361-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$01ts3RUyH/Nb8iA0gWgRguDNYYkt5FBSBepHWoZoXxpgwxWjhLOyC"], ["created_at", "2015-03-18 22:09:54.361716"], ["updated_at", "2015-03-18 22:09:54.361716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.366075"], ["updated_at", "2015-03-18 22:09:54.366075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '81875d98-cdbb-11e4-bf6e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "81875d98-cdbb-11e4-bf6e-705681abff85"], ["created_at", "2015-03-18 22:09:54.370017"], ["updated_at", "2015-03-18 22:09:54.370017"], ["token", "mp7GMsXTiI313jUJTQkb1fBPAkFHVCqqqdIK18Um9n0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8186b62c-cdbb-11e4-a14a-705681abff85' LIMIT 1 [["organization_id", "81875d98-cdbb-11e4-bf6e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$/ffoNeyrF2sTcYsjrJsMnucb.YW2G71dOjFkZ6SUrEypH1T/0qF6u"], ["created_at", "2015-03-18 22:09:54.378453"], ["updated_at", "2015-03-18 22:09:54.378453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.382364"], ["updated_at", "2015-03-18 22:09:54.382364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '8189f6ca-cdbb-11e4-be72-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "8189f6ca-cdbb-11e4-be72-705681abff85"], ["created_at", "2015-03-18 22:09:54.387192"], ["updated_at", "2015-03-18 22:09:54.387192"], ["token", "4GzIyQSCR53F1p6XpLCjT16PKcirioflvMq15xTTO2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '81894248-cdbb-11e4-9878-705681abff85' LIMIT 1 [["organization_id", "8189f6ca-cdbb-11e4-be72-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$4mNVMDuKQG/fHX/aIYWApOxegBmHTQqOWV/2QK4x21X2WUEfmb/LC"], ["created_at", "2015-03-18 22:09:54.395426"], ["updated_at", "2015-03-18 22:09:54.395426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.398668"], ["updated_at", "2015-03-18 22:09:54.398668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '818bd5ee-cdbb-11e4-b206-705681abff85' AND "clubhouse_memberships"."organization_id" = '818c5424-cdbb-11e4-8fab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "818bd5ee-cdbb-11e4-b206-705681abff85"], ["organization_id", "818c5424-cdbb-11e4-8fab-705681abff85"], ["created_at", "2015-03-18 22:09:54.402075"], ["updated_at", "2015-03-18 22:09:54.402075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '818c5424-cdbb-11e4-8fab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "818c5424-cdbb-11e4-8fab-705681abff85"], ["created_at", "2015-03-18 22:09:54.405481"], ["updated_at", "2015-03-18 22:09:54.405481"], ["token", "SJhRsz5-FDyo7tJFZ-yKC_a12M54Gtflg2ghPeF4GTc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '818bd5ee-cdbb-11e4-b206-705681abff85' LIMIT 1 [["organization_id", "818c5424-cdbb-11e4-8fab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$MBbixxSRIEFgGwMcHT0OW..uRT5uvN1SBM7n0sThUA1gqBR7oxDI."], ["created_at", "2015-03-18 22:09:54.413216"], ["updated_at", "2015-03-18 22:09:54.413216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.417179"], ["updated_at", "2015-03-18 22:09:54.417179"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '818e8fa0-cdbb-11e4-9e04-705681abff85' AND "clubhouse_memberships"."organization_id" = '818f584a-cdbb-11e4-b4ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "818e8fa0-cdbb-11e4-9e04-705681abff85"], ["organization_id", "818f584a-cdbb-11e4-b4ae-705681abff85"], ["created_at", "2015-03-18 22:09:54.422602"], ["updated_at", "2015-03-18 22:09:54.422602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '818f584a-cdbb-11e4-b4ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "818f584a-cdbb-11e4-b4ae-705681abff85"], ["created_at", "2015-03-18 22:09:54.426787"], ["updated_at", "2015-03-18 22:09:54.426787"], ["token", "NHxvnxRuKx5wEfkuIfEz29E-o2wJT6e-HHLEo5wkwp0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '818e8fa0-cdbb-11e4-9e04-705681abff85' LIMIT 1 [["organization_id", "818f584a-cdbb-11e4-b4ae-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$qn/tcQu8GclPQbCkpUJw.uLyYkbj2riBEJyddAIJ/yyTcyHMBR5iW"], ["created_at", "2015-03-18 22:09:54.434539"], ["updated_at", "2015-03-18 22:09:54.434539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.440114"], ["updated_at", "2015-03-18 22:09:54.440114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8191e538-cdbb-11e4-8726-705681abff85' AND "clubhouse_memberships"."organization_id" = '8192b256-cdbb-11e4-8ccd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8191e538-cdbb-11e4-8726-705681abff85"], ["organization_id", "8192b256-cdbb-11e4-8ccd-705681abff85"], ["created_at", "2015-03-18 22:09:54.443788"], ["updated_at", "2015-03-18 22:09:54.443788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '8192b256-cdbb-11e4-8ccd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "8192b256-cdbb-11e4-8ccd-705681abff85"], ["created_at", "2015-03-18 22:09:54.447200"], ["updated_at", "2015-03-18 22:09:54.447200"], ["token", "KeNzAHLvYXxw5KloFWem6nwjWyDjnfydOtva2_PxO_I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8191e538-cdbb-11e4-8726-705681abff85' LIMIT 1 [["organization_id", "8192b256-cdbb-11e4-8ccd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$8suRECLlrV4j2ToT/RYw1e5C0Lr6Ldgsb3n4B2P2TLIcqcr/fa/0a"], ["created_at", "2015-03-18 22:09:54.455223"], ["updated_at", "2015-03-18 22:09:54.455223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.458568"], ["updated_at", "2015-03-18 22:09:54.458568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8194f566-cdbb-11e4-9188-705681abff85' AND "clubhouse_memberships"."organization_id" = '81957874-cdbb-11e4-a19d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8194f566-cdbb-11e4-9188-705681abff85"], ["organization_id", "81957874-cdbb-11e4-a19d-705681abff85"], ["created_at", "2015-03-18 22:09:54.461937"], ["updated_at", "2015-03-18 22:09:54.461937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '81957874-cdbb-11e4-a19d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "81957874-cdbb-11e4-a19d-705681abff85"], ["created_at", "2015-03-18 22:09:54.465516"], ["updated_at", "2015-03-18 22:09:54.465516"], ["token", "HfiitglSBD89zwyUUfbZTg-qk_i4HfJCa8ajdbpcQYs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8194f566-cdbb-11e4-9188-705681abff85' LIMIT 1 [["organization_id", "81957874-cdbb-11e4-a19d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$u3OG39QlDyq4XUogbUvlReSgCyIwzEkYDJk.5uFH8b9sNx1fK5Jb6"], ["created_at", "2015-03-18 22:09:54.474262"], ["updated_at", "2015-03-18 22:09:54.474262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.477690"], ["updated_at", "2015-03-18 22:09:54.477690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8197de48-cdbb-11e4-8aea-705681abff85' AND "clubhouse_memberships"."organization_id" = '81986246-cdbb-11e4-a0e1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8197de48-cdbb-11e4-8aea-705681abff85"], ["organization_id", "81986246-cdbb-11e4-a0e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.481309"], ["updated_at", "2015-03-18 22:09:54.481309"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '81986246-cdbb-11e4-a0e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "81986246-cdbb-11e4-a0e1-705681abff85"], ["created_at", "2015-03-18 22:09:54.486490"], ["updated_at", "2015-03-18 22:09:54.486490"], ["token", "tG9s--cLkIsW6VHRu0beAbqgi9AEOFEERM9TogOeEoU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8197de48-cdbb-11e4-8aea-705681abff85' LIMIT 1 [["organization_id", "81986246-cdbb-11e4-a0e1-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$T6qkKefSFQ2pJ/xlhG9VceAXWjfH1Ycs4LEgZQy8GFWaD3PoL35x2"], ["created_at", "2015-03-18 22:09:54.495741"], ["updated_at", "2015-03-18 22:09:54.495741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.501252"], ["updated_at", "2015-03-18 22:09:54.501252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '819b3818-cdbb-11e4-8dda-705681abff85' AND "clubhouse_memberships"."organization_id" = '819bfd98-cdbb-11e4-af94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "819b3818-cdbb-11e4-8dda-705681abff85"], ["organization_id", "819bfd98-cdbb-11e4-af94-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.505220"], ["updated_at", "2015-03-18 22:09:54.505220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '819bfd98-cdbb-11e4-af94-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "819bfd98-cdbb-11e4-af94-705681abff85"], ["created_at", "2015-03-18 22:09:54.509244"], ["updated_at", "2015-03-18 22:09:54.509244"], ["token", "-00rTe7QC-2XwH85ZU8Q-8KUglw_avU5m2o8hxBTT0Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '819b3818-cdbb-11e4-8dda-705681abff85' LIMIT 1 [["organization_id", "819bfd98-cdbb-11e4-af94-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$UjQOtCEsBu9UME3pcSKzj.dda7HHd/.Gp3FypC5.f/ofubMInkEHO"], ["created_at", "2015-03-18 22:09:54.517294"], ["updated_at", "2015-03-18 22:09:54.517294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.522092"], ["updated_at", "2015-03-18 22:09:54.522092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '819e97d8-cdbb-11e4-99ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '819f2cf2-cdbb-11e4-bf6e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "819e97d8-cdbb-11e4-99ca-705681abff85"], ["organization_id", "819f2cf2-cdbb-11e4-bf6e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.527010"], ["updated_at", "2015-03-18 22:09:54.527010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '819f2cf2-cdbb-11e4-bf6e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "819f2cf2-cdbb-11e4-bf6e-705681abff85"], ["created_at", "2015-03-18 22:09:54.531254"], ["updated_at", "2015-03-18 22:09:54.531254"], ["token", "VO3NJ5pl8P1ftq44yGCe0FzLiythSKgNbVAYogd8zrA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '819e97d8-cdbb-11e4-99ca-705681abff85' LIMIT 1 [["organization_id", "819f2cf2-cdbb-11e4-bf6e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$0BoQiANO74KxbfTaNnvvMuIOBUfD2NajNZ8oqT7KeHhOtvxe/D0/u"], ["created_at", "2015-03-18 22:09:54.540607"], ["updated_at", "2015-03-18 22:09:54.540607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:09:54.544330"], ["updated_at", "2015-03-18 22:09:54.544330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81a20256-cdbb-11e4-abf8-705681abff85' AND "clubhouse_memberships"."organization_id" = '81a294be-cdbb-11e4-9c27-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "81a20256-cdbb-11e4-abf8-705681abff85"], ["organization_id", "81a294be-cdbb-11e4-9c27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:09:54.548415"], ["updated_at", "2015-03-18 22:09:54.548415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '81a294be-cdbb-11e4-9c27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "81a294be-cdbb-11e4-9c27-705681abff85"], ["created_at", "2015-03-18 22:09:54.552755"], ["updated_at", "2015-03-18 22:09:54.552755"], ["token", "QN1yrEVLpQcZQ5I3Fcho7EijIeLF2dBlQEc-3Wi07_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '81a20256-cdbb-11e4-abf8-705681abff85' LIMIT 1 [["organization_id", "81a294be-cdbb-11e4-9c27-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (7.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$5zi41WhRuTNftBmisXlzH.t5DHh.K71S/liG0tU/XjavgourvVkxK"], ["created_at", "2015-03-18 22:10:31.143002"], ["updated_at", "2015-03-18 22:10:31.143002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$X6ByyGvwPjBFyS7LCiSW5eDNNESpCtn5bi5bJ.qOwOuatNI4buQB6"], ["created_at", "2015-03-18 22:10:31.169721"], ["updated_at", "2015-03-18 22:10:31.169721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (24.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.178547"], ["user_id", "977636ec-cdbb-11e4-b8ff-705681abff85"], ["created_at", "2015-03-18 22:10:31.216168"], ["updated_at", "2015-03-18 22:10:31.216168"], ["token", "WGwGAMER9nh80QMw1WE8zHY9QX6gYozJHqMDNDHAnoA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.250218"], ["updated_at", "2015-03-18 22:10:31.250218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '977636ec-cdbb-11e4-b8ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '97837adc-cdbb-11e4-94eb-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "977636ec-cdbb-11e4-b8ff-705681abff85"], ["organization_id", "97837adc-cdbb-11e4-94eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.260918"], ["updated_at", "2015-03-18 22:10:31.260918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97772b56-cdbb-11e4-8c5a-705681abff85' AND "clubhouse_memberships"."organization_id" = '97837adc-cdbb-11e4-94eb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97772b56-cdbb-11e4-8c5a-705681abff85"], ["organization_id", "97837adc-cdbb-11e4-94eb-705681abff85"], ["created_at", "2015-03-18 22:10:31.264857"], ["updated_at", "2015-03-18 22:10:31.264857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$e2pyUiX203Nk7AafodmsqOn.2K9RdqFI6tCO9LLAUt51WPs5T3dQ."], ["created_at", "2015-03-18 22:10:31.269596"], ["updated_at", "2015-03-18 22:10:31.269596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.271179"], ["user_id", "9786626a-cdbb-11e4-9cf4-705681abff85"], ["created_at", "2015-03-18 22:10:31.271915"], ["updated_at", "2015-03-18 22:10:31.271915"], ["token", "Aj3_GY8Q-Yv_PZZRG8bXjbyJfMF3D2htFiyNfuRbrcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '97837adc-cdbb-11e4-94eb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "97837adc-cdbb-11e4-94eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.282022"], ["updated_at", "2015-03-18 22:10:31.282022"], ["token", "hy49bl_qSRo9QVAOXS1Mogi4chqiKsK8cSV7k0SJwAA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$pxaqPP/Hj/xOL4gUfjHJAeKo22zaXkRiOGzU.MGXjjsssS4jIociC"], ["created_at", "2015-03-18 22:10:31.331395"], ["updated_at", "2015-03-18 22:10:31.331395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$UxkfwTpbiH5UMH0GNLKmfeEpVnkscq29Jm4j3GnfoAbrNaZNACl3C"], ["created_at", "2015-03-18 22:10:31.335844"], ["updated_at", "2015-03-18 22:10:31.335844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.337483"], ["user_id", "978fd49e-cdbb-11e4-a250-705681abff85"], ["created_at", "2015-03-18 22:10:31.338259"], ["updated_at", "2015-03-18 22:10:31.338259"], ["token", "3AxzqHXSM0h1io1DnWVqrwlA8aBafY5EoiNR2Q4k0jQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.341707"], ["updated_at", "2015-03-18 22:10:31.341707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '978fd49e-cdbb-11e4-a250-705681abff85' AND "clubhouse_memberships"."organization_id" = '97916156-cdbb-11e4-9ae8-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "978fd49e-cdbb-11e4-a250-705681abff85"], ["organization_id", "97916156-cdbb-11e4-9ae8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.349582"], ["updated_at", "2015-03-18 22:10:31.349582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '979081e6-cdbb-11e4-869f-705681abff85' AND "clubhouse_memberships"."organization_id" = '97916156-cdbb-11e4-9ae8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "979081e6-cdbb-11e4-869f-705681abff85"], ["organization_id", "97916156-cdbb-11e4-9ae8-705681abff85"], ["created_at", "2015-03-18 22:10:31.355207"], ["updated_at", "2015-03-18 22:10:31.355207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$saPALf8/WPaA28WkwTRvk.fw.h91jBkRB3rjJnuREV41/gBzkEZW6"], ["created_at", "2015-03-18 22:10:31.359619"], ["updated_at", "2015-03-18 22:10:31.359619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.361374"], ["user_id", "97941e14-cdbb-11e4-88fe-705681abff85"], ["created_at", "2015-03-18 22:10:31.362507"], ["updated_at", "2015-03-18 22:10:31.362507"], ["token", "zI-BedGT-NagroIGdogRF9uW0eN_7BhrLIwze_U5KtQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '97916156-cdbb-11e4-9ae8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "97916156-cdbb-11e4-9ae8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.366902"], ["updated_at", "2015-03-18 22:10:31.366902"], ["token", "bwSB-hzCIoAY7Q5ImaVP_FAiD1lcePyjqzlB7kGkMts"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/97916156-cdbb-11e4-9ae8-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"97916156-cdbb-11e4-9ae8-705681abff85", "membership"=>{}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:31.375931' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zI-BedGT-NagroIGdogRF9uW0eN_7BhrLIwze_U5KtQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:31.384381"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:31.385642"], ["id", "97949b5a-cdbb-11e4-9a6d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97941e14-cdbb-11e4-88fe-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97941e14-cdbb-11e4-88fe-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "97916156-cdbb-11e4-9ae8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 37ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$uDkHKnMwZDoq.n42vX.9LOsNpW4gKvvEA0S1fMiNJvZeBEO30hoT2"], ["created_at", "2015-03-18 22:10:31.417981"], ["updated_at", "2015-03-18 22:10:31.417981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$nZWLiiI0fknCWdrkXfSaLOuf3BQzXNX9osPatIeeIbOgf6tpgMDra"], ["created_at", "2015-03-18 22:10:31.422411"], ["updated_at", "2015-03-18 22:10:31.422411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.424449"], ["user_id", "979d070e-cdbb-11e4-bbd5-705681abff85"], ["created_at", "2015-03-18 22:10:31.425810"], ["updated_at", "2015-03-18 22:10:31.425810"], ["token", "JZzpAjREFOSvhWwpEV6iq5x-XKmwcS5maYB4jHRcOkc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.429438"], ["updated_at", "2015-03-18 22:10:31.429438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '979d070e-cdbb-11e4-bbd5-705681abff85' AND "clubhouse_memberships"."organization_id" = '979ec422-cdbb-11e4-949f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "979d070e-cdbb-11e4-bbd5-705681abff85"], ["organization_id", "979ec422-cdbb-11e4-949f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.433384"], ["updated_at", "2015-03-18 22:10:31.433384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '979db2ee-cdbb-11e4-8784-705681abff85' AND "clubhouse_memberships"."organization_id" = '979ec422-cdbb-11e4-949f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "979db2ee-cdbb-11e4-8784-705681abff85"], ["organization_id", "979ec422-cdbb-11e4-949f-705681abff85"], ["created_at", "2015-03-18 22:10:31.436619"], ["updated_at", "2015-03-18 22:10:31.436619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$jQOVmak7S8ZnONrKocRcnuu8cgWQ1jDxzBMMcWYX1buH3pdKJK9sy"], ["created_at", "2015-03-18 22:10:31.441262"], ["updated_at", "2015-03-18 22:10:31.441262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.442815"], ["user_id", "97a09400-cdbb-11e4-ac70-705681abff85"], ["created_at", "2015-03-18 22:10:31.443594"], ["updated_at", "2015-03-18 22:10:31.443594"], ["token", "zR_EmG0QVkuL7mp3oh3OXo3nLRJgEPXoxvmvoscf2PU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '979ec422-cdbb-11e4-949f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "979ec422-cdbb-11e4-949f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.447638"], ["updated_at", "2015-03-18 22:10:31.447638"], ["token", "NLbDsNQl38NyvEk4Ax-4vnNzgkyVRnMePHxmU7900EI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/979ec422-cdbb-11e4-949f-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"NLbDsNQl38NyvEk4Ax-4vnNzgkyVRnMePHxmU7900EI", "organization_id"=>"979ec422-cdbb-11e4-949f-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:31.453945' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zR_EmG0QVkuL7mp3oh3OXo3nLRJgEPXoxvmvoscf2PU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:31.456195"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:31.457628"], ["id", "97a0f5e4-cdbb-11e4-90d6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97a09400-cdbb-11e4-ac70-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97a09400-cdbb-11e4-ac70-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "979ec422-cdbb-11e4-949f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "NLbDsNQl38NyvEk4Ax-4vnNzgkyVRnMePHxmU7900EI"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "979ec422-cdbb-11e4-949f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "979ec422-cdbb-11e4-949f-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97a09400-cdbb-11e4-ac70-705681abff85' AND "clubhouse_memberships"."organization_id" = '979ec422-cdbb-11e4-949f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97a09400-cdbb-11e4-ac70-705681abff85"], ["admin", "t"], ["organization_id", "979ec422-cdbb-11e4-949f-705681abff85"], ["created_at", "2015-03-18 22:10:31.470092"], ["updated_at", "2015-03-18 22:10:31.470092"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "97a19b0c-cdbb-11e4-b899-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 24ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$5/A/EFvKxaJU/SnXxsLvV.3uFmPM1CuQznWNQwCDMZtNPygVdADau"], ["created_at", "2015-03-18 22:10:31.483549"], ["updated_at", "2015-03-18 22:10:31.483549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$RU7QOhmHTRmu8l8jiizSjOZXwj5O3ahq.jOiqHnius8SFgDKbgL16"], ["created_at", "2015-03-18 22:10:31.488251"], ["updated_at", "2015-03-18 22:10:31.488251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.489947"], ["user_id", "97a70c86-cdbb-11e4-b652-705681abff85"], ["created_at", "2015-03-18 22:10:31.490817"], ["updated_at", "2015-03-18 22:10:31.490817"], ["token", "6m6Bs_jnXh6hzGOLB7amb7im4M8GAjj4cwOeLWI4g24"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.494708"], ["updated_at", "2015-03-18 22:10:31.494708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97a70c86-cdbb-11e4-b652-705681abff85' AND "clubhouse_memberships"."organization_id" = '97a8bbee-cdbb-11e4-86a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97a70c86-cdbb-11e4-b652-705681abff85"], ["organization_id", "97a8bbee-cdbb-11e4-86a2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.498204"], ["updated_at", "2015-03-18 22:10:31.498204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97a7be74-cdbb-11e4-99d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '97a8bbee-cdbb-11e4-86a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97a7be74-cdbb-11e4-99d0-705681abff85"], ["organization_id", "97a8bbee-cdbb-11e4-86a2-705681abff85"], ["created_at", "2015-03-18 22:10:31.501624"], ["updated_at", "2015-03-18 22:10:31.501624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$sOersKiObcCa2vOZuwKlRuxRVIcR47Af2m4Mz9rbH71DeuJ3n0Mvy"], ["created_at", "2015-03-18 22:10:31.506067"], ["updated_at", "2015-03-18 22:10:31.506067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.507622"], ["user_id", "97aa768c-cdbb-11e4-b93b-705681abff85"], ["created_at", "2015-03-18 22:10:31.508417"], ["updated_at", "2015-03-18 22:10:31.508417"], ["token", "kudHAunxmP-iiwv3NPv6ebTpKnwBPDYT9aPOU_ZItp4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '97a8bbee-cdbb-11e4-86a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "97a8bbee-cdbb-11e4-86a2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.512300"], ["updated_at", "2015-03-18 22:10:31.512300"], ["token", "LHQzCc6BK9Ef1T8XWEcX1eiPNsI40Q7cXW5keAkiogQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$GxQ111J/q6Tva4Gx022o7eBeCESH4AiNMTeiXIC0yuft8jsJMQQAa"], ["created_at", "2015-03-18 22:10:31.524351"], ["updated_at", "2015-03-18 22:10:31.524351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$tBXFBkF/AwpU4bjmhgA6FOExAfzmhdII/LOzzZmOXJ3vmvlSqp96W"], ["created_at", "2015-03-18 22:10:31.528679"], ["updated_at", "2015-03-18 22:10:31.528679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.530345"], ["user_id", "97ad4498-cdbb-11e4-8a3d-705681abff85"], ["created_at", "2015-03-18 22:10:31.531088"], ["updated_at", "2015-03-18 22:10:31.531088"], ["token", "-NIM6MZ5-ZZhZ6oKXlZB-oYhDXGUDtgNZ2N8yO2uY-A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.534443"], ["updated_at", "2015-03-18 22:10:31.534443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97ad4498-cdbb-11e4-8a3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '97aecb38-cdbb-11e4-8260-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97ad4498-cdbb-11e4-8a3d-705681abff85"], ["organization_id", "97aecb38-cdbb-11e4-8260-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.537689"], ["updated_at", "2015-03-18 22:10:31.537689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97ade920-cdbb-11e4-b037-705681abff85' AND "clubhouse_memberships"."organization_id" = '97aecb38-cdbb-11e4-8260-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97ade920-cdbb-11e4-b037-705681abff85"], ["organization_id", "97aecb38-cdbb-11e4-8260-705681abff85"], ["created_at", "2015-03-18 22:10:31.540952"], ["updated_at", "2015-03-18 22:10:31.540952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$uuAZruQFuzNvyWeaC2UaSe5nvXCncgilVXIlht3XHOmgE1.wVS56K"], ["created_at", "2015-03-18 22:10:31.545494"], ["updated_at", "2015-03-18 22:10:31.545494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.547110"], ["user_id", "97b07b40-cdbb-11e4-8421-705681abff85"], ["created_at", "2015-03-18 22:10:31.547917"], ["updated_at", "2015-03-18 22:10:31.547917"], ["token", "BBEZOe4xgqwWVAjglgWztUw_C6qYGy2OHrHADYXCIKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '97aecb38-cdbb-11e4-8260-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "97aecb38-cdbb-11e4-8260-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.552123"], ["updated_at", "2015-03-18 22:10:31.552123"], ["token", "Zzg1eqVe7XdkhwbxuVr3_0zPhNucKHq5RwIeoAukW2o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:31.558274' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BBEZOe4xgqwWVAjglgWztUw_C6qYGy2OHrHADYXCIKg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:31.559815"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:31.560862"], ["id", "97b0e85a-cdbb-11e4-88a8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97b07b40-cdbb-11e4-8421-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97b07b40-cdbb-11e4-8421-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$WWCy4hrnFNo.HN8MxRX06.vEyG9tsIpOh4JNjLtmnRk27fVSqWcI."], ["created_at", "2015-03-18 22:10:31.575168"], ["updated_at", "2015-03-18 22:10:31.575168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$q.LnaWYDif032H0h1wzc5u4Dox/Aw0Ast1zU/pA1lqAcjPwMf895C"], ["created_at", "2015-03-18 22:10:31.580937"], ["updated_at", "2015-03-18 22:10:31.580937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.583576"], ["user_id", "97b50570-cdbb-11e4-b9a9-705681abff85"], ["created_at", "2015-03-18 22:10:31.584411"], ["updated_at", "2015-03-18 22:10:31.584411"], ["token", "WfAMq2fJ24VerU89EMQZn09wlVr0UWNihxevJmYREzU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.587943"], ["updated_at", "2015-03-18 22:10:31.587943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97b50570-cdbb-11e4-b9a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '97b6f876-cdbb-11e4-8e42-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97b50570-cdbb-11e4-b9a9-705681abff85"], ["organization_id", "97b6f876-cdbb-11e4-8e42-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.599777"], ["updated_at", "2015-03-18 22:10:31.599777"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97b5f6ce-cdbb-11e4-acb2-705681abff85' AND "clubhouse_memberships"."organization_id" = '97b6f876-cdbb-11e4-8e42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97b5f6ce-cdbb-11e4-acb2-705681abff85"], ["organization_id", "97b6f876-cdbb-11e4-8e42-705681abff85"], ["created_at", "2015-03-18 22:10:31.604508"], ["updated_at", "2015-03-18 22:10:31.604508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$o66GId6VnYm4626.gQuga.Y0xYVkvBTiftsXRzmZIFf9QPxLxkLbm"], ["created_at", "2015-03-18 22:10:31.609411"], ["updated_at", "2015-03-18 22:10:31.609411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.611432"], ["user_id", "97ba4a44-cdbb-11e4-9f06-705681abff85"], ["created_at", "2015-03-18 22:10:31.612263"], ["updated_at", "2015-03-18 22:10:31.612263"], ["token", "vD1pF7WWmIOGuQseRp6PbUtQ8kCLiJ7EkWSRaCmR0bU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '97b6f876-cdbb-11e4-8e42-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "97b6f876-cdbb-11e4-8e42-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.616123"], ["updated_at", "2015-03-18 22:10:31.616123"], ["token", "gNyr6ailK2qt7IX3Y0lRjgplVjEG7o98U7f6LyCkQdM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"gNyr6ailK2qt7IX3Y0lRjgplVjEG7o98U7f6LyCkQdM", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:31.621499' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vD1pF7WWmIOGuQseRp6PbUtQ8kCLiJ7EkWSRaCmR0bU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:31.624660"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:31.626137"], ["id", "97bab312-cdbb-11e4-b95c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97ba4a44-cdbb-11e4-9f06-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97ba4a44-cdbb-11e4-9f06-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "gNyr6ailK2qt7IX3Y0lRjgplVjEG7o98U7f6LyCkQdM"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "97b6f876-cdbb-11e4-8e42-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "97b6f876-cdbb-11e4-8e42-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97ba4a44-cdbb-11e4-9f06-705681abff85' AND "clubhouse_memberships"."organization_id" = '97b6f876-cdbb-11e4-8e42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97ba4a44-cdbb-11e4-9f06-705681abff85"], ["admin", "t"], ["organization_id", "97b6f876-cdbb-11e4-8e42-705681abff85"], ["created_at", "2015-03-18 22:10:31.636946"], ["updated_at", "2015-03-18 22:10:31.636946"]] SQL (0.1ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "97bb45f2-cdbb-11e4-b431-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 19ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$HCaUtYtlSqEpY7.FIUBDJODnrwNwQzf7zsdjQUjWI8AQbW433wRm2"], ["created_at", "2015-03-18 22:10:31.645482"], ["updated_at", "2015-03-18 22:10:31.645482"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$80Ni6kt1N3m3Uy3HrMVyPendb1AbHLc2nafPXpXmM/sDvRIlYZL.."], ["created_at", "2015-03-18 22:10:31.652457"], ["updated_at", "2015-03-18 22:10:31.652457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.654045"], ["user_id", "97bfbe16-cdbb-11e4-82f3-705681abff85"], ["created_at", "2015-03-18 22:10:31.654849"], ["updated_at", "2015-03-18 22:10:31.654849"], ["token", "p33bkemR28fRPZoCxqxfJX29IMtCbycEXvfjWgNKemM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.658317"], ["updated_at", "2015-03-18 22:10:31.658317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97bfbe16-cdbb-11e4-82f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '97c1b45a-cdbb-11e4-9cec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97bfbe16-cdbb-11e4-82f3-705681abff85"], ["organization_id", "97c1b45a-cdbb-11e4-9cec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.661521"], ["updated_at", "2015-03-18 22:10:31.661521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97c0cee6-cdbb-11e4-9798-705681abff85' AND "clubhouse_memberships"."organization_id" = '97c1b45a-cdbb-11e4-9cec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97c0cee6-cdbb-11e4-9798-705681abff85"], ["organization_id", "97c1b45a-cdbb-11e4-9cec-705681abff85"], ["created_at", "2015-03-18 22:10:31.664570"], ["updated_at", "2015-03-18 22:10:31.664570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/97c1b45a-cdbb-11e4-9cec-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"97c1b45a-cdbb-11e4-9cec-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:31.669648' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p33bkemR28fRPZoCxqxfJX29IMtCbycEXvfjWgNKemM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:31.671521"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:31.673515"], ["id", "97c13084-cdbb-11e4-a8c3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97bfbe16-cdbb-11e4-82f3-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97bfbe16-cdbb-11e4-82f3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "97c1b45a-cdbb-11e4-9cec-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "97c1b45a-cdbb-11e4-9cec-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('97bfbe16-cdbb-11e4-82f3-705681abff85', '97c0cee6-cdbb-11e4-9798-705681abff85') Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('97c1b45a-cdbb-11e4-9cec-705681abff85') Completed 500 Internal Server Error in 23ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Cm2oNok3BR51c3jrjshzAOaS7/72zwbvMtHsOH0R2EPJtzi4ZhupS"], ["created_at", "2015-03-18 22:10:31.697505"], ["updated_at", "2015-03-18 22:10:31.697505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$yQlYVA4RxER41Rq29v.Ly.OAPrrXOS1jFq.KsxS2ZvGc.anGj9V6a"], ["created_at", "2015-03-18 22:10:31.701810"], ["updated_at", "2015-03-18 22:10:31.701810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.703500"], ["user_id", "97c7ae32-cdbb-11e4-81fd-705681abff85"], ["created_at", "2015-03-18 22:10:31.704306"], ["updated_at", "2015-03-18 22:10:31.704306"], ["token", "OshYAr_DuEg0PZ4SxsQ7ef9kmlgjvNbRzsVypibiDmE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.707950"], ["updated_at", "2015-03-18 22:10:31.707950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97c7ae32-cdbb-11e4-81fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '97c94634-cdbb-11e4-afa5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97c7ae32-cdbb-11e4-81fd-705681abff85"], ["organization_id", "97c94634-cdbb-11e4-afa5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.711340"], ["updated_at", "2015-03-18 22:10:31.711340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97c8592c-cdbb-11e4-8eb1-705681abff85' AND "clubhouse_memberships"."organization_id" = '97c94634-cdbb-11e4-afa5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97c8592c-cdbb-11e4-8eb1-705681abff85"], ["organization_id", "97c94634-cdbb-11e4-afa5-705681abff85"], ["created_at", "2015-03-18 22:10:31.714423"], ["updated_at", "2015-03-18 22:10:31.714423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$tz8Gg5BwGmX26S0A3aVCzurcsiTxGzjSSjd0iirlULuFZv5y8PaDu"], ["created_at", "2015-03-18 22:10:31.724639"], ["updated_at", "2015-03-18 22:10:31.724639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$uniK5sTdfZSpC3NLg8hjRei4PvG3mOi5vn5mmD1elYVr2LORZvupG"], ["created_at", "2015-03-18 22:10:31.730280"], ["updated_at", "2015-03-18 22:10:31.730280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.732402"], ["user_id", "97cbd336-cdbb-11e4-9265-705681abff85"], ["created_at", "2015-03-18 22:10:31.733227"], ["updated_at", "2015-03-18 22:10:31.733227"], ["token", "40bb8MbS61ZbhDxDvJIAffkFTNADaewq8XCQjb5qHzQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.736902"], ["updated_at", "2015-03-18 22:10:31.736902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97cbd336-cdbb-11e4-9265-705681abff85' AND "clubhouse_memberships"."organization_id" = '97cdb476-cdbb-11e4-876b-705681abff85') LIMIT 1 SQL (13.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97cbd336-cdbb-11e4-9265-705681abff85"], ["organization_id", "97cdb476-cdbb-11e4-876b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.741002"], ["updated_at", "2015-03-18 22:10:31.741002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97ccbc2e-cdbb-11e4-bc05-705681abff85' AND "clubhouse_memberships"."organization_id" = '97cdb476-cdbb-11e4-876b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97ccbc2e-cdbb-11e4-bc05-705681abff85"], ["organization_id", "97cdb476-cdbb-11e4-876b-705681abff85"], ["created_at", "2015-03-18 22:10:31.760772"], ["updated_at", "2015-03-18 22:10:31.760772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$j7rABijRVD4oPqVKRujT5eJzJoCREpwEmwdb/V8/X1RagYt59jgxq"], ["created_at", "2015-03-18 22:10:31.777934"], ["updated_at", "2015-03-18 22:10:31.777934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$IWy.Y5y6qjHxqAqcL9W4sOlvz3qqfMQqzP5em/7Zsyntrx5Bwe5E."], ["created_at", "2015-03-18 22:10:31.782803"], ["updated_at", "2015-03-18 22:10:31.782803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.784517"], ["user_id", "97d3f8fe-cdbb-11e4-934c-705681abff85"], ["created_at", "2015-03-18 22:10:31.785314"], ["updated_at", "2015-03-18 22:10:31.785314"], ["token", "aMWu5J16i0k8_ZUma26QoTioHnNxfBpjtB2jvUEMvfQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.789054"], ["updated_at", "2015-03-18 22:10:31.789054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97d3f8fe-cdbb-11e4-934c-705681abff85' AND "clubhouse_memberships"."organization_id" = '97d5a8e8-cdbb-11e4-a520-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97d3f8fe-cdbb-11e4-934c-705681abff85"], ["organization_id", "97d5a8e8-cdbb-11e4-a520-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.793214"], ["updated_at", "2015-03-18 22:10:31.793214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97d4b3e8-cdbb-11e4-bcaa-705681abff85' AND "clubhouse_memberships"."organization_id" = '97d5a8e8-cdbb-11e4-a520-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97d4b3e8-cdbb-11e4-bcaa-705681abff85"], ["organization_id", "97d5a8e8-cdbb-11e4-a520-705681abff85"], ["created_at", "2015-03-18 22:10:31.797145"], ["updated_at", "2015-03-18 22:10:31.797145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/97d65252-cdbb-11e4-be7c-705681abff85" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"97d65252-cdbb-11e4-be7c-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:31.802457' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aMWu5J16i0k8_ZUma26QoTioHnNxfBpjtB2jvUEMvfQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:31.803942"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:31.804925"], ["id", "97d51d38-cdbb-11e4-a4ac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97d3f8fe-cdbb-11e4-934c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97d3f8fe-cdbb-11e4-934c-705681abff85"]] Completed 500 Internal Server Error in 21ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$H6VXI3kTq8cP8SoeG3Vv2O5F.7S23KmdGCjRH6oO1Ivj3k2vCcmXG"], ["created_at", "2015-03-18 22:10:31.831099"], ["updated_at", "2015-03-18 22:10:31.831099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$/MAD6Wq8eB/JcyXiaXVb0eaabed3lUWQzCxvCbJQUb/m7xxqdU06u"], ["created_at", "2015-03-18 22:10:31.835718"], ["updated_at", "2015-03-18 22:10:31.835718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.837373"], ["user_id", "97dc1408-cdbb-11e4-a693-705681abff85"], ["created_at", "2015-03-18 22:10:31.838193"], ["updated_at", "2015-03-18 22:10:31.838193"], ["token", "J9AzsdRn4SBd5us3pKwdQiIBBG2cbAFfuj-5uLGWaqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.842216"], ["updated_at", "2015-03-18 22:10:31.842216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97dc1408-cdbb-11e4-a693-705681abff85' AND "clubhouse_memberships"."organization_id" = '97ddc4ba-cdbb-11e4-b597-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97dc1408-cdbb-11e4-a693-705681abff85"], ["organization_id", "97ddc4ba-cdbb-11e4-b597-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.845686"], ["updated_at", "2015-03-18 22:10:31.845686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97dcc7a4-cdbb-11e4-bd98-705681abff85' AND "clubhouse_memberships"."organization_id" = '97ddc4ba-cdbb-11e4-b597-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97dcc7a4-cdbb-11e4-bd98-705681abff85"], ["organization_id", "97ddc4ba-cdbb-11e4-b597-705681abff85"], ["created_at", "2015-03-18 22:10:31.848694"], ["updated_at", "2015-03-18 22:10:31.848694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/97debd52-cdbb-11e4-9812-705681abff85" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"97debd52-cdbb-11e4-9812-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:31.853921' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "J9AzsdRn4SBd5us3pKwdQiIBBG2cbAFfuj-5uLGWaqg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:31.855505"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:31.856518"], ["id", "97dd3176-cdbb-11e4-a43a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97dc1408-cdbb-11e4-a693-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97dc1408-cdbb-11e4-a693-705681abff85"]] Completed 500 Internal Server Error in 7ms  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$He/5nSVh5krort7UuqcVHuGMe60NHw/eDUdXhawM8aRA2arBc6Ut2"], ["created_at", "2015-03-18 22:10:31.872737"], ["updated_at", "2015-03-18 22:10:31.872737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$PYRXfgGYNaeTUu8XHkz6cetMrX7fmCPU4WwWJm2ezRbgfAhZhev.a"], ["created_at", "2015-03-18 22:10:31.877767"], ["updated_at", "2015-03-18 22:10:31.877767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.879371"], ["user_id", "97e2825c-cdbb-11e4-b040-705681abff85"], ["created_at", "2015-03-18 22:10:31.880138"], ["updated_at", "2015-03-18 22:10:31.880138"], ["token", "eC0I8DEpNKgC_KpAZI4PTkHFSL6GuQllMtIjIcy2JKs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.883490"], ["updated_at", "2015-03-18 22:10:31.883490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97e2825c-cdbb-11e4-b040-705681abff85' AND "clubhouse_memberships"."organization_id" = '97e40c08-cdbb-11e4-92da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97e2825c-cdbb-11e4-b040-705681abff85"], ["organization_id", "97e40c08-cdbb-11e4-92da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.886847"], ["updated_at", "2015-03-18 22:10:31.886847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97e32f4a-cdbb-11e4-93f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '97e40c08-cdbb-11e4-92da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97e32f4a-cdbb-11e4-93f8-705681abff85"], ["organization_id", "97e40c08-cdbb-11e4-92da-705681abff85"], ["created_at", "2015-03-18 22:10:31.892862"], ["updated_at", "2015-03-18 22:10:31.892862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$qYvSdbaGhcWh0haSqLZj9OQGvyTjWYZ1WZ94YburNWskS2sPKlcpS"], ["created_at", "2015-03-18 22:10:31.903191"], ["updated_at", "2015-03-18 22:10:31.903191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$5MPNMUJxnBPx64gaa.F.Bu3pN/mHRoz9pnoPTaNbPurxrzPGKJsgO"], ["created_at", "2015-03-18 22:10:31.907480"], ["updated_at", "2015-03-18 22:10:31.907480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.909502"], ["user_id", "97e7120e-cdbb-11e4-905f-705681abff85"], ["created_at", "2015-03-18 22:10:31.910394"], ["updated_at", "2015-03-18 22:10:31.910394"], ["token", "k3hmBbZRoMmtRlTSoaSc01cQFtkNh0X_-d28ERfzNQU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.914247"], ["updated_at", "2015-03-18 22:10:31.914247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97e7120e-cdbb-11e4-905f-705681abff85' AND "clubhouse_memberships"."organization_id" = '97e8c0e0-cdbb-11e4-974b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97e7120e-cdbb-11e4-905f-705681abff85"], ["organization_id", "97e8c0e0-cdbb-11e4-974b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.917631"], ["updated_at", "2015-03-18 22:10:31.917631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97e7c262-cdbb-11e4-9f9e-705681abff85' AND "clubhouse_memberships"."organization_id" = '97e8c0e0-cdbb-11e4-974b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97e7c262-cdbb-11e4-9f9e-705681abff85"], ["organization_id", "97e8c0e0-cdbb-11e4-974b-705681abff85"], ["created_at", "2015-03-18 22:10:31.920729"], ["updated_at", "2015-03-18 22:10:31.920729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/97e94538-cdbb-11e4-b5f1-705681abff85" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"97e94538-cdbb-11e4-b5f1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:31.926231' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k3hmBbZRoMmtRlTSoaSc01cQFtkNh0X_-d28ERfzNQU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:31.927707"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:31.928767"], ["id", "97e83620-cdbb-11e4-ba19-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97e7120e-cdbb-11e4-905f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97e7120e-cdbb-11e4-905f-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$1Pdbs2ZVsQiWyqGhbNTGvuVxlThshBDM9rY2NxAgsAyKNBUD5AP4i"], ["created_at", "2015-03-18 22:10:31.942008"], ["updated_at", "2015-03-18 22:10:31.942008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$IAERH9RGc522G45NsataL.KsCQi/osuq5NWeWR9Scl0JKb3mx8AgG"], ["created_at", "2015-03-18 22:10:31.946225"], ["updated_at", "2015-03-18 22:10:31.946225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.947737"], ["user_id", "97ecfdcc-cdbb-11e4-a993-705681abff85"], ["created_at", "2015-03-18 22:10:31.948507"], ["updated_at", "2015-03-18 22:10:31.948507"], ["token", "1ZrxHp1QA6FS6Wk9iQh2COZNyKH5SrJWspmBHK9qZwo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.951947"], ["updated_at", "2015-03-18 22:10:31.951947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97ecfdcc-cdbb-11e4-a993-705681abff85' AND "clubhouse_memberships"."organization_id" = '97ee83fe-cdbb-11e4-baf4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97ecfdcc-cdbb-11e4-a993-705681abff85"], ["organization_id", "97ee83fe-cdbb-11e4-baf4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:31.955461"], ["updated_at", "2015-03-18 22:10:31.955461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97ed9ff2-cdbb-11e4-830f-705681abff85' AND "clubhouse_memberships"."organization_id" = '97ee83fe-cdbb-11e4-baf4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97ed9ff2-cdbb-11e4-830f-705681abff85"], ["organization_id", "97ee83fe-cdbb-11e4-baf4-705681abff85"], ["created_at", "2015-03-18 22:10:31.959413"], ["updated_at", "2015-03-18 22:10:31.959413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/97efa89c-cdbb-11e4-9e1d-705681abff85" for 127.0.0.1 at 2015-03-18 15:10:31 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"97efa89c-cdbb-11e4-9e1d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:31.964671' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1ZrxHp1QA6FS6Wk9iQh2COZNyKH5SrJWspmBHK9qZwo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:31.966372"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:31.967775"], ["id", "97ee0122-cdbb-11e4-a581-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97ecfdcc-cdbb-11e4-a993-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97ecfdcc-cdbb-11e4-a993-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$YqxzpybxbU7zuiv1b2uzrOXqsydB0QK89HCD5WuapLUjvPe54OMeq"], ["created_at", "2015-03-18 22:10:31.977869"], ["updated_at", "2015-03-18 22:10:31.977869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$OwJ1bELJhp.k7cygfZ4AX.lkyveL3VYNwVAPR6XqE90ftkxFUIL4e"], ["created_at", "2015-03-18 22:10:31.990125"], ["updated_at", "2015-03-18 22:10:31.990125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:31.992770"], ["user_id", "97f278b0-cdbb-11e4-ae21-705681abff85"], ["created_at", "2015-03-18 22:10:31.993609"], ["updated_at", "2015-03-18 22:10:31.993609"], ["token", "VWAQUbUAsdZHH2M8-xB7SytmaY-oyLupZfEk1Y5y2kU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:31.997032"], ["updated_at", "2015-03-18 22:10:31.997032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97f278b0-cdbb-11e4-ae21-705681abff85' AND "clubhouse_memberships"."organization_id" = '97f55f6c-cdbb-11e4-9f4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97f278b0-cdbb-11e4-ae21-705681abff85"], ["organization_id", "97f55f6c-cdbb-11e4-9f4c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:32.000768"], ["updated_at", "2015-03-18 22:10:32.000768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97f46f30-cdbb-11e4-9584-705681abff85' AND "clubhouse_memberships"."organization_id" = '97f55f6c-cdbb-11e4-9f4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97f46f30-cdbb-11e4-9584-705681abff85"], ["organization_id", "97f55f6c-cdbb-11e4-9f4c-705681abff85"], ["created_at", "2015-03-18 22:10:32.003838"], ["updated_at", "2015-03-18 22:10:32.003838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:10:32 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:32.010165' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VWAQUbUAsdZHH2M8-xB7SytmaY-oyLupZfEk1Y5y2kU"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:32.012365"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:32.014608"], ["id", "97f4e4d8-cdbb-11e4-8d7f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97f278b0-cdbb-11e4-ae21-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97f278b0-cdbb-11e4-ae21-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "97f55f6c-cdbb-11e4-9f4c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('97f278b0-cdbb-11e4-ae21-705681abff85', '97f46f30-cdbb-11e4-9584-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('97f55f6c-cdbb-11e4-9f4c-705681abff85') Completed 500 Internal Server Error in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$cxEXQTWWZ.vhKx6VOfmAB.SmU/YZn8mABvEhqdvKs8WCyKTc4yBhm"], ["created_at", "2015-03-18 22:10:32.029501"], ["updated_at", "2015-03-18 22:10:32.029501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$sLM9Rt2bMXutpIpHbvHIjekdC8tswMpSppj5rFcewej5e7qyHX8wK"], ["created_at", "2015-03-18 22:10:32.033752"], ["updated_at", "2015-03-18 22:10:32.033752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:32.035242"], ["user_id", "97fa594a-cdbb-11e4-9bf3-705681abff85"], ["created_at", "2015-03-18 22:10:32.036023"], ["updated_at", "2015-03-18 22:10:32.036023"], ["token", "ayb7qLr2-7eXcXGF7Rpt7FSV-73ACEx3st_yggNnx8Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:32.039529"], ["updated_at", "2015-03-18 22:10:32.039529"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97fa594a-cdbb-11e4-9bf3-705681abff85' AND "clubhouse_memberships"."organization_id" = '97fbe026-cdbb-11e4-a5c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97fa594a-cdbb-11e4-9bf3-705681abff85"], ["organization_id", "97fbe026-cdbb-11e4-a5c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:32.044385"], ["updated_at", "2015-03-18 22:10:32.044385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97fafa1c-cdbb-11e4-9e0e-705681abff85' AND "clubhouse_memberships"."organization_id" = '97fbe026-cdbb-11e4-a5c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97fafa1c-cdbb-11e4-9e0e-705681abff85"], ["organization_id", "97fbe026-cdbb-11e4-a5c9-705681abff85"], ["created_at", "2015-03-18 22:10:32.047630"], ["updated_at", "2015-03-18 22:10:32.047630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 15:10:32 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$LrFE5omNyGW0JdCQg7pYfuvP/VJISDWoX0xX1DmcFLf1EBlXxy2H2"], ["created_at", "2015-03-18 22:10:32.058076"], ["updated_at", "2015-03-18 22:10:32.058076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$B.3oj.xeoI8eo4oYdkoLSOe.wvWRL6PcfLvLTfYXW0Tf7bKAE9fkO"], ["created_at", "2015-03-18 22:10:32.063394"], ["updated_at", "2015-03-18 22:10:32.063394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:32.065113"], ["user_id", "97feb382-cdbb-11e4-9d53-705681abff85"], ["created_at", "2015-03-18 22:10:32.066022"], ["updated_at", "2015-03-18 22:10:32.066022"], ["token", "mJd9-3zKj6Vvjd3_sIgmcbxRt7iSxibE0c6SiOnrXkM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:32.069777"], ["updated_at", "2015-03-18 22:10:32.069777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97feb382-cdbb-11e4-9d53-705681abff85' AND "clubhouse_memberships"."organization_id" = '98007974-cdbb-11e4-bbff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97feb382-cdbb-11e4-9d53-705681abff85"], ["organization_id", "98007974-cdbb-11e4-bbff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:32.073039"], ["updated_at", "2015-03-18 22:10:32.073039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97ff8672-cdbb-11e4-88af-705681abff85' AND "clubhouse_memberships"."organization_id" = '98007974-cdbb-11e4-bbff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "97ff8672-cdbb-11e4-88af-705681abff85"], ["organization_id", "98007974-cdbb-11e4-bbff-705681abff85"], ["created_at", "2015-03-18 22:10:32.076743"], ["updated_at", "2015-03-18 22:10:32.076743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/9800fb38-cdbb-11e4-9b05-705681abff85" for 127.0.0.1 at 2015-03-18 15:10:32 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"9800fb38-cdbb-11e4-9b05-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:32.081704' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mJd9-3zKj6Vvjd3_sIgmcbxRt7iSxibE0c6SiOnrXkM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:32.083643"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:32.085544"], ["id", "97fff760-cdbb-11e4-a159-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97feb382-cdbb-11e4-9d53-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "97feb382-cdbb-11e4-9d53-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "9800fb38-cdbb-11e4-9b05-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "98007974-cdbb-11e4-bbff-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '97feb382-cdbb-11e4-9d53-705681abff85' LIMIT 1 [["organization_id", "98007974-cdbb-11e4-bbff-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97feb382-cdbb-11e4-9d53-705681abff85"]] Completed 200 OK in 21ms (Views: 2.0ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$CS2pZsUln94PUtG4Gc4FT.IKFAGLki.13chiFkpRjTvmtl4kLqRSq"], ["created_at", "2015-03-18 22:10:32.112473"], ["updated_at", "2015-03-18 22:10:32.112473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$nnRz9glCbbommctf4Ku3weupMc34r9Vdr8WwWisVsxa9yXvE/Cd1O"], ["created_at", "2015-03-18 22:10:32.117161"], ["updated_at", "2015-03-18 22:10:32.117161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:32.118821"], ["user_id", "980703ac-cdbb-11e4-834f-705681abff85"], ["created_at", "2015-03-18 22:10:32.119657"], ["updated_at", "2015-03-18 22:10:32.119657"], ["token", "D_EMsZgZCoi9Fa7zfkCD4h7JLpas6J46U6Ae8GyRApw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:32.123424"], ["updated_at", "2015-03-18 22:10:32.123424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '980703ac-cdbb-11e4-834f-705681abff85' AND "clubhouse_memberships"."organization_id" = '9808aa86-cdbb-11e4-b50b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "980703ac-cdbb-11e4-834f-705681abff85"], ["organization_id", "9808aa86-cdbb-11e4-b50b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:32.127182"], ["updated_at", "2015-03-18 22:10:32.127182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9807b7b6-cdbb-11e4-8816-705681abff85' AND "clubhouse_memberships"."organization_id" = '9808aa86-cdbb-11e4-b50b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9807b7b6-cdbb-11e4-8816-705681abff85"], ["organization_id", "9808aa86-cdbb-11e4-b50b-705681abff85"], ["created_at", "2015-03-18 22:10:32.130928"], ["updated_at", "2015-03-18 22:10:32.130928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 15:10:32 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (30.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Fx/LrJTHPOKGN.wXqIJrkOl2d8FNq4LyQPpaiX.jBsySLO6eCKP42"], ["created_at", "2015-03-18 22:10:48.219049"], ["updated_at", "2015-03-18 22:10:48.219049"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$w6iu3HCoHgQSBVDYUmkSwuqNU5iI4LFgU93x7Y0WxtC.bfk67C3JW"], ["created_at", "2015-03-18 22:10:48.254959"], ["updated_at", "2015-03-18 22:10:48.254959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.264386"], ["user_id", "a1a52b46-cdbb-11e4-a329-705681abff85"], ["created_at", "2015-03-18 22:10:48.302325"], ["updated_at", "2015-03-18 22:10:48.302325"], ["token", "WAw5WkwUDIdXHBoSbd9I5EgsmPi_xxFQ0vo_vd2fON0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:48.311418"], ["updated_at", "2015-03-18 22:10:48.311418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1a52b46-cdbb-11e4-a329-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1aecbec-cdbb-11e4-b453-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1a52b46-cdbb-11e4-a329-705681abff85"], ["organization_id", "a1aecbec-cdbb-11e4-b453-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.322649"], ["updated_at", "2015-03-18 22:10:48.322649"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1a625a0-cdbb-11e4-b69d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1aecbec-cdbb-11e4-b453-705681abff85') LIMIT 1 SQL (4.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1a625a0-cdbb-11e4-b69d-705681abff85"], ["organization_id", "a1aecbec-cdbb-11e4-b453-705681abff85"], ["created_at", "2015-03-18 22:10:48.327966"], ["updated_at", "2015-03-18 22:10:48.327966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 15:10:48 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$iJiEXCcf0cB.gIsQ0K18EOcQrp3u.2/xoq8EaaLm2GBgcesXfQ0ja"], ["created_at", "2015-03-18 22:10:48.370266"], ["updated_at", "2015-03-18 22:10:48.370266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$lTE1RSjdSm1Jv13Q1GgX9OgF9BUo/FVCWMbHJl4MjVzHqJXfwavnq"], ["created_at", "2015-03-18 22:10:48.375174"], ["updated_at", "2015-03-18 22:10:48.375174"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.377990"], ["user_id", "a1b7bf7c-cdbb-11e4-866e-705681abff85"], ["created_at", "2015-03-18 22:10:48.379247"], ["updated_at", "2015-03-18 22:10:48.379247"], ["token", "0NayzwAjxz7qItent3fKBOJMlshOF5qpiOXiTZiNEOc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:48.383634"], ["updated_at", "2015-03-18 22:10:48.383634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1b7bf7c-cdbb-11e4-866e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1b9d6cc-cdbb-11e4-bda6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1b7bf7c-cdbb-11e4-866e-705681abff85"], ["organization_id", "a1b9d6cc-cdbb-11e4-bda6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.388723"], ["updated_at", "2015-03-18 22:10:48.388723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1b89424-cdbb-11e4-a592-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1b9d6cc-cdbb-11e4-bda6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1b89424-cdbb-11e4-a592-705681abff85"], ["organization_id", "a1b9d6cc-cdbb-11e4-bda6-705681abff85"], ["created_at", "2015-03-18 22:10:48.392436"], ["updated_at", "2015-03-18 22:10:48.392436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a1b9d6cc-cdbb-11e4-bda6-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:10:48 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"a1b9d6cc-cdbb-11e4-bda6-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:48.397117' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0NayzwAjxz7qItent3fKBOJMlshOF5qpiOXiTZiNEOc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:48.404609"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:48.405895"], ["id", "a1b93244-cdbb-11e4-98a3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1b7bf7c-cdbb-11e4-866e-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a1b7bf7c-cdbb-11e4-866e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a1b9d6cc-cdbb-11e4-bda6-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "a1b9d6cc-cdbb-11e4-bda6-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('a1b7bf7c-cdbb-11e4-866e-705681abff85', 'a1b89424-cdbb-11e4-a592-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a1b9d6cc-cdbb-11e4-bda6-705681abff85') Completed 500 Internal Server Error in 58ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$me4bgKR3gZls5Bg149.x9enBL87pkkP/STWs9BP7l79QnjO6cCdKi"], ["created_at", "2015-03-18 22:10:48.461884"], ["updated_at", "2015-03-18 22:10:48.461884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Ls90AGhviBQOxPJ.MDMvieX2dT2PFYLrZmLNTssoRvAvDc0hdxkLi"], ["created_at", "2015-03-18 22:10:48.466431"], ["updated_at", "2015-03-18 22:10:48.466431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.468203"], ["user_id", "a1c5bece-cdbb-11e4-a947-705681abff85"], ["created_at", "2015-03-18 22:10:48.469072"], ["updated_at", "2015-03-18 22:10:48.469072"], ["token", "sy4GgLl89I3YLGEPmrk96vOVAzfhC6eneOGJoT8fPZA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:48.474512"], ["updated_at", "2015-03-18 22:10:48.474512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1c5bece-cdbb-11e4-a947-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1c7b2ce-cdbb-11e4-ab9e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1c5bece-cdbb-11e4-a947-705681abff85"], ["organization_id", "a1c7b2ce-cdbb-11e4-ab9e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.479426"], ["updated_at", "2015-03-18 22:10:48.479426"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1c66bc6-cdbb-11e4-be66-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1c7b2ce-cdbb-11e4-ab9e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1c66bc6-cdbb-11e4-be66-705681abff85"], ["organization_id", "a1c7b2ce-cdbb-11e4-ab9e-705681abff85"], ["created_at", "2015-03-18 22:10:48.483025"], ["updated_at", "2015-03-18 22:10:48.483025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 15:10:48 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$i7BnRjzhC8n5X5zDXt.xXOeXZgdT5duWVDa9f.TOVvITKJy3U9YKi"], ["created_at", "2015-03-18 22:10:48.494435"], ["updated_at", "2015-03-18 22:10:48.494435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Oba0wE6fQ8PZZeMYXdXZJudSls0QPpCRVw8JQX1f73WHOuWvbcUZ6"], ["created_at", "2015-03-18 22:10:48.499594"], ["updated_at", "2015-03-18 22:10:48.499594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.502020"], ["user_id", "a1cab24e-cdbb-11e4-b801-705681abff85"], ["created_at", "2015-03-18 22:10:48.503254"], ["updated_at", "2015-03-18 22:10:48.503254"], ["token", "KNbhgbs18_rCpI9igOFvGWNhPEWwiJz16WLmCGB4Ovs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:48.507522"], ["updated_at", "2015-03-18 22:10:48.507522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1cab24e-cdbb-11e4-b801-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1ccb54e-cdbb-11e4-b017-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1cab24e-cdbb-11e4-b801-705681abff85"], ["organization_id", "a1ccb54e-cdbb-11e4-b017-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.511111"], ["updated_at", "2015-03-18 22:10:48.511111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1cb8142-cdbb-11e4-bec4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1ccb54e-cdbb-11e4-b017-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1cb8142-cdbb-11e4-bec4-705681abff85"], ["organization_id", "a1ccb54e-cdbb-11e4-b017-705681abff85"], ["created_at", "2015-03-18 22:10:48.514490"], ["updated_at", "2015-03-18 22:10:48.514490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/a1cd3a8c-cdbb-11e4-ad3a-705681abff85" for 127.0.0.1 at 2015-03-18 15:10:48 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"a1cd3a8c-cdbb-11e4-ad3a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:48.519087' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KNbhgbs18_rCpI9igOFvGWNhPEWwiJz16WLmCGB4Ovs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:48.520621"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:48.521830"], ["id", "a1cc1490-cdbb-11e4-b28a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1cab24e-cdbb-11e4-b801-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a1cab24e-cdbb-11e4-b801-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "a1cd3a8c-cdbb-11e4-ad3a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a1ccb54e-cdbb-11e4-b017-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a1cab24e-cdbb-11e4-b801-705681abff85' LIMIT 1 [["organization_id", "a1ccb54e-cdbb-11e4-b017-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1cab24e-cdbb-11e4-b801-705681abff85"]] Completed 200 OK in 19ms (Views: 2.0ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$JugeqRjdmMPsZ77Ca90pNukiLnxTdigBn/o/iiWLHXNYm2IiNgmam"], ["created_at", "2015-03-18 22:10:48.547052"], ["updated_at", "2015-03-18 22:10:48.547052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$xramfRmoLnTqizL6kFqqQuKUyA8f/ygROfZAMNmRVcASU6jotulue"], ["created_at", "2015-03-18 22:10:48.551567"], ["updated_at", "2015-03-18 22:10:48.551567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.553413"], ["user_id", "a1d2ba02-cdbb-11e4-aaac-705681abff85"], ["created_at", "2015-03-18 22:10:48.555143"], ["updated_at", "2015-03-18 22:10:48.555143"], ["token", "_JjFSyZrGi8I-HDrJD8lEC8Gown38xKwlbU3qYTj33k"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:48.564954"], ["updated_at", "2015-03-18 22:10:48.564954"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1d2ba02-cdbb-11e4-aaac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1d58b2e-cdbb-11e4-96d3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1d2ba02-cdbb-11e4-aaac-705681abff85"], ["organization_id", "a1d58b2e-cdbb-11e4-96d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.570490"], ["updated_at", "2015-03-18 22:10:48.570490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1d36614-cdbb-11e4-bda2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1d58b2e-cdbb-11e4-96d3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1d36614-cdbb-11e4-bda2-705681abff85"], ["organization_id", "a1d58b2e-cdbb-11e4-96d3-705681abff85"], ["created_at", "2015-03-18 22:10:48.574761"], ["updated_at", "2015-03-18 22:10:48.574761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 15:10:48 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$igXd5B4BVPwosBP4xT5y4eOdKkSWu/67kNHvMen.PhVwjsMjTFSGe"], ["created_at", "2015-03-18 22:10:48.588003"], ["updated_at", "2015-03-18 22:10:48.588003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$OUS7moOuTsiehcWYEGrKweA/JYJhnC8hYIAz3zjtzw.MbeIiCftUm"], ["created_at", "2015-03-18 22:10:48.593573"], ["updated_at", "2015-03-18 22:10:48.593573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.595715"], ["user_id", "a1d8fea8-cdbb-11e4-a9c0-705681abff85"], ["created_at", "2015-03-18 22:10:48.597165"], ["updated_at", "2015-03-18 22:10:48.597165"], ["token", "-s0y2rQz9K6Ws91VTxgpqGTTMK5sdt1QddPLvLnGw5A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:48.601993"], ["updated_at", "2015-03-18 22:10:48.601993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1d8fea8-cdbb-11e4-a9c0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1db253e-cdbb-11e4-8152-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1d8fea8-cdbb-11e4-a9c0-705681abff85"], ["organization_id", "a1db253e-cdbb-11e4-8152-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.606261"], ["updated_at", "2015-03-18 22:10:48.606261"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1d9d6ac-cdbb-11e4-82de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1db253e-cdbb-11e4-8152-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1d9d6ac-cdbb-11e4-82de-705681abff85"], ["organization_id", "a1db253e-cdbb-11e4-8152-705681abff85"], ["created_at", "2015-03-18 22:10:48.610642"], ["updated_at", "2015-03-18 22:10:48.610642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:10:48 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:48.615554' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-s0y2rQz9K6Ws91VTxgpqGTTMK5sdt1QddPLvLnGw5A"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:48.617299"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:48.619071"], ["id", "a1da87e6-cdbb-11e4-9fda-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1d8fea8-cdbb-11e4-a9c0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a1d8fea8-cdbb-11e4-a9c0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "a1db253e-cdbb-11e4-8152-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('a1d8fea8-cdbb-11e4-a9c0-705681abff85', 'a1d9d6ac-cdbb-11e4-82de-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a1db253e-cdbb-11e4-8152-705681abff85') Completed 500 Internal Server Error in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$QCB2ogRhoVYbDP.alliscOH/Ml79DN0b/J79oCJKT7mNE4/pQXfM."], ["created_at", "2015-03-18 22:10:48.635693"], ["updated_at", "2015-03-18 22:10:48.635693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$tg9Z2qUdkZ1DWtsCSDztc.iiSNB2mQiFE0BHEO7Z82bk8hVsYqpMi"], ["created_at", "2015-03-18 22:10:48.640563"], ["updated_at", "2015-03-18 22:10:48.640563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.642455"], ["user_id", "a1e048c0-cdbb-11e4-a1cc-705681abff85"], ["created_at", "2015-03-18 22:10:48.643375"], ["updated_at", "2015-03-18 22:10:48.643375"], ["token", "hFixLw3OAFKSQLjG6JrUSnbbUYhuaeyaB6DjvykgEPs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:48.647424"], ["updated_at", "2015-03-18 22:10:48.647424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1e048c0-cdbb-11e4-a1cc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1e208a4-cdbb-11e4-8c56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1e048c0-cdbb-11e4-a1cc-705681abff85"], ["organization_id", "a1e208a4-cdbb-11e4-8c56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.650877"], ["updated_at", "2015-03-18 22:10:48.650877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1e0febe-cdbb-11e4-bc0f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1e208a4-cdbb-11e4-8c56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1e0febe-cdbb-11e4-bc0f-705681abff85"], ["organization_id", "a1e208a4-cdbb-11e4-8c56-705681abff85"], ["created_at", "2015-03-18 22:10:48.654484"], ["updated_at", "2015-03-18 22:10:48.654484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$lKaXr0zlXmuKtTMOrhsh.unRQMXiuq9e5JeOMTJPmbgZSatBR2FlK"], ["created_at", "2015-03-18 22:10:48.659500"], ["updated_at", "2015-03-18 22:10:48.659500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.661511"], ["user_id", "a1e3eb4c-cdbb-11e4-b6a6-705681abff85"], ["created_at", "2015-03-18 22:10:48.662380"], ["updated_at", "2015-03-18 22:10:48.662380"], ["token", "4F9yToB3XqdZ19VU8n7mDBTPeknsBJHsmRC_coKa9Ck"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a1e208a4-cdbb-11e4-8c56-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a1e208a4-cdbb-11e4-8c56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.682143"], ["updated_at", "2015-03-18 22:10:48.682143"], ["token", "JztG4c5l6FJEcYyksbGtQbTUxUQQ7VSK2dtVh6-wZgc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 15:10:48 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$hpv50ZK6h/IiMGM4QGgNNOjAKPXOOmVe4ZFKq/gd7EPlHPP.FRk8q"], ["created_at", "2015-03-18 22:10:48.696044"], ["updated_at", "2015-03-18 22:10:48.696044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$kchCc/gCzO4.oYS5gP6F/OICI8w6cO2r96GG4A4tBqO.5Xmid.K62"], ["created_at", "2015-03-18 22:10:48.701112"], ["updated_at", "2015-03-18 22:10:48.701112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.702778"], ["user_id", "a1e977d8-cdbb-11e4-b966-705681abff85"], ["created_at", "2015-03-18 22:10:48.703567"], ["updated_at", "2015-03-18 22:10:48.703567"], ["token", "jarfjuodaW36NW8S_UL2l6w-f0xOEuD0gPHfcm_sWdo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:48.706949"], ["updated_at", "2015-03-18 22:10:48.706949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1e977d8-cdbb-11e4-b966-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1eb1f2a-cdbb-11e4-97ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1e977d8-cdbb-11e4-b966-705681abff85"], ["organization_id", "a1eb1f2a-cdbb-11e4-97ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.710797"], ["updated_at", "2015-03-18 22:10:48.710797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1ea3c9a-cdbb-11e4-81b7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1eb1f2a-cdbb-11e4-97ec-705681abff85') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1ea3c9a-cdbb-11e4-81b7-705681abff85"], ["organization_id", "a1eb1f2a-cdbb-11e4-97ec-705681abff85"], ["created_at", "2015-03-18 22:10:48.713897"], ["updated_at", "2015-03-18 22:10:48.713897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$pZ/6/5WCobdpYlost0HDMe1rqmh720pBFXQ3Ndu96xJum/zX8ga7m"], ["created_at", "2015-03-18 22:10:48.718264"], ["updated_at", "2015-03-18 22:10:48.718264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.719905"], ["user_id", "a1ecd61c-cdbb-11e4-8eef-705681abff85"], ["created_at", "2015-03-18 22:10:48.720679"], ["updated_at", "2015-03-18 22:10:48.720679"], ["token", "5Tena5QjG2DSGPovNJUID8Ea_BhaTmMNlCUtdH9QbTU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a1eb1f2a-cdbb-11e4-97ec-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a1eb1f2a-cdbb-11e4-97ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.725037"], ["updated_at", "2015-03-18 22:10:48.725037"], ["token", "ByuidVVkieya1GbZaUJvnNmzw2NVB8gx4XRY88ftVPw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a1eb1f2a-cdbb-11e4-97ec-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:10:48 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"ByuidVVkieya1GbZaUJvnNmzw2NVB8gx4XRY88ftVPw", "organization_id"=>"a1eb1f2a-cdbb-11e4-97ec-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:48.730298' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5Tena5QjG2DSGPovNJUID8Ea_BhaTmMNlCUtdH9QbTU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:48.731891"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:48.733107"], ["id", "a1ed3c6a-cdbb-11e4-ae82-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1ecd61c-cdbb-11e4-8eef-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a1ecd61c-cdbb-11e4-8eef-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a1eb1f2a-cdbb-11e4-97ec-705681abff85"]]  (13.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (52.0ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "ByuidVVkieya1GbZaUJvnNmzw2NVB8gx4XRY88ftVPw"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a1eb1f2a-cdbb-11e4-97ec-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a1eb1f2a-cdbb-11e4-97ec-705681abff85"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1ecd61c-cdbb-11e4-8eef-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a1eb1f2a-cdbb-11e4-97ec-705681abff85') LIMIT 1 SQL (3.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1ecd61c-cdbb-11e4-8eef-705681abff85"], ["admin", "t"], ["organization_id", "a1eb1f2a-cdbb-11e4-97ec-705681abff85"], ["created_at", "2015-03-18 22:10:48.943638"], ["updated_at", "2015-03-18 22:10:48.943638"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a1edec28-cdbb-11e4-b340-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 223ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$MXKwPs42CzahzZZW5sRpn.A9vMd0c9Rv35..1h0LXgA4uSc75g6LC"], ["created_at", "2015-03-18 22:10:48.958879"], ["updated_at", "2015-03-18 22:10:48.958879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$G.Ldw9ROPLc7SLkpQXJME.8cuxNSxQWiDGeQyQtQbqgAWBLPhcUOq"], ["created_at", "2015-03-18 22:10:48.963225"], ["updated_at", "2015-03-18 22:10:48.963225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.964764"], ["user_id", "a2118f3e-cdbb-11e4-8d8b-705681abff85"], ["created_at", "2015-03-18 22:10:48.965578"], ["updated_at", "2015-03-18 22:10:48.965578"], ["token", "E9uEtDXjqZPguLdn4MnHEIiD7Su3KX-I0J9MAO5vqro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:48.968915"], ["updated_at", "2015-03-18 22:10:48.968915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2118f3e-cdbb-11e4-8d8b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2131444-cdbb-11e4-b79c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2118f3e-cdbb-11e4-8d8b-705681abff85"], ["organization_id", "a2131444-cdbb-11e4-b79c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.972100"], ["updated_at", "2015-03-18 22:10:48.972100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2123600-cdbb-11e4-9f87-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2131444-cdbb-11e4-b79c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2123600-cdbb-11e4-9f87-705681abff85"], ["organization_id", "a2131444-cdbb-11e4-b79c-705681abff85"], ["created_at", "2015-03-18 22:10:48.975016"], ["updated_at", "2015-03-18 22:10:48.975016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$J4F2ZfoXjBPkXf0NG54JceLClW.8b5Ead0pTmfZiCpkKV0uqKHNWm"], ["created_at", "2015-03-18 22:10:48.979514"], ["updated_at", "2015-03-18 22:10:48.979514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:48.981150"], ["user_id", "a214b394-cdbb-11e4-a63f-705681abff85"], ["created_at", "2015-03-18 22:10:48.981978"], ["updated_at", "2015-03-18 22:10:48.981978"], ["token", "Is2AzchchznXStacoEFfaMvDgNtogjVyIirRlVwiEvg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a2131444-cdbb-11e4-b79c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a2131444-cdbb-11e4-b79c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:48.985688"], ["updated_at", "2015-03-18 22:10:48.985688"], ["token", "U5wg9GifrQLoenunAaub5HNiuXxL43l_LMs9E89WtbY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a2131444-cdbb-11e4-b79c-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:10:48 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"a2131444-cdbb-11e4-b79c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:48.992909' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Is2AzchchznXStacoEFfaMvDgNtogjVyIirRlVwiEvg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:48.994376"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:48.995325"], ["id", "a2151c1c-cdbb-11e4-a022-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a214b394-cdbb-11e4-a63f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a214b394-cdbb-11e4-a63f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a2131444-cdbb-11e4-b79c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$wxJjZM088290Slvmkli58OunzGPClLChX6PWg6durAuk/0jxeMq7K"], ["created_at", "2015-03-18 22:10:49.007440"], ["updated_at", "2015-03-18 22:10:49.007440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$HhvI0iVzGTyQoJxKip8B4ezLKGkYEHHlj2GTFsl26Ej5nP2157zGG"], ["created_at", "2015-03-18 22:10:49.011731"], ["updated_at", "2015-03-18 22:10:49.011731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.013251"], ["user_id", "a218f86e-cdbb-11e4-8846-705681abff85"], ["created_at", "2015-03-18 22:10:49.014014"], ["updated_at", "2015-03-18 22:10:49.014014"], ["token", "OxwD_7N-K2L1ZDxBni4xZgGn3oknorYN1gOQ_ItD_ds"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:49.017539"], ["updated_at", "2015-03-18 22:10:49.017539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a218f86e-cdbb-11e4-8846-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a21a8166-cdbb-11e4-8658-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a218f86e-cdbb-11e4-8846-705681abff85"], ["organization_id", "a21a8166-cdbb-11e4-8658-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.020940"], ["updated_at", "2015-03-18 22:10:49.020940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2199d5a-cdbb-11e4-ad64-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a21a8166-cdbb-11e4-8658-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2199d5a-cdbb-11e4-ad64-705681abff85"], ["organization_id", "a21a8166-cdbb-11e4-8658-705681abff85"], ["created_at", "2015-03-18 22:10:49.023894"], ["updated_at", "2015-03-18 22:10:49.023894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 15:10:49 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$sTLmAkNvtPIJar3/d4eKqOVbVBiiNMlaawRfm72aW/uwBuLkXlx9C"], ["created_at", "2015-03-18 22:10:49.033573"], ["updated_at", "2015-03-18 22:10:49.033573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$7uWsiBE8rIGw5OdCqyAkL.ZGjTjwVkJaYwbCNGMFTLaQFLqquXYba"], ["created_at", "2015-03-18 22:10:49.037786"], ["updated_at", "2015-03-18 22:10:49.037786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.039893"], ["user_id", "a21cf496-cdbb-11e4-8afb-705681abff85"], ["created_at", "2015-03-18 22:10:49.040908"], ["updated_at", "2015-03-18 22:10:49.040908"], ["token", "v4S_foUv8td73My0w_4PjPZu04wrs3iMpwsfHfUmFR8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:49.044685"], ["updated_at", "2015-03-18 22:10:49.044685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a21cf496-cdbb-11e4-8afb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a21ea44e-cdbb-11e4-bb23-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a21cf496-cdbb-11e4-8afb-705681abff85"], ["organization_id", "a21ea44e-cdbb-11e4-bb23-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.047985"], ["updated_at", "2015-03-18 22:10:49.047985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a21d9bee-cdbb-11e4-8ea6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a21ea44e-cdbb-11e4-bb23-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a21d9bee-cdbb-11e4-8ea6-705681abff85"], ["organization_id", "a21ea44e-cdbb-11e4-bb23-705681abff85"], ["created_at", "2015-03-18 22:10:49.051214"], ["updated_at", "2015-03-18 22:10:49.051214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/a21fa394-cdbb-11e4-bc95-705681abff85" for 127.0.0.1 at 2015-03-18 15:10:49 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"a21fa394-cdbb-11e4-bc95-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:49.055624' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v4S_foUv8td73My0w_4PjPZu04wrs3iMpwsfHfUmFR8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:49.057085"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:49.058089"], ["id", "a21e1e8e-cdbb-11e4-87e7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a21cf496-cdbb-11e4-8afb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a21cf496-cdbb-11e4-8afb-705681abff85"]] Completed 500 Internal Server Error in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$VfT2/Ydan1u2QOeV2uD/1.kFcErZpMCxWrquDmuztEBOWBVD7rMK6"], ["created_at", "2015-03-18 22:10:49.079704"], ["updated_at", "2015-03-18 22:10:49.079704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$iI0wMZKYyo1DpkIBl6htau1Fi8InPy5wXrwySaNdVwS4AH2pyx8A2"], ["created_at", "2015-03-18 22:10:49.084151"], ["updated_at", "2015-03-18 22:10:49.084151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.085674"], ["user_id", "a22405d8-cdbb-11e4-b664-705681abff85"], ["created_at", "2015-03-18 22:10:49.086465"], ["updated_at", "2015-03-18 22:10:49.086465"], ["token", "n1norZGZTET4UQtb4WB1e1v-FKIn671clALcmlILk4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:49.089844"], ["updated_at", "2015-03-18 22:10:49.089844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a22405d8-cdbb-11e4-b664-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a22587a0-cdbb-11e4-a796-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a22405d8-cdbb-11e4-b664-705681abff85"], ["organization_id", "a22587a0-cdbb-11e4-a796-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.093328"], ["updated_at", "2015-03-18 22:10:49.093328"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a224aa88-cdbb-11e4-a70e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a22587a0-cdbb-11e4-a796-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a224aa88-cdbb-11e4-a70e-705681abff85"], ["organization_id", "a22587a0-cdbb-11e4-a796-705681abff85"], ["created_at", "2015-03-18 22:10:49.100038"], ["updated_at", "2015-03-18 22:10:49.100038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/a22617ba-cdbb-11e4-8896-705681abff85" for 127.0.0.1 at 2015-03-18 15:10:49 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"a22617ba-cdbb-11e4-8896-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:49.105010' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n1norZGZTET4UQtb4WB1e1v-FKIn671clALcmlILk4w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:49.106412"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:49.107421"], ["id", "a2250b86-cdbb-11e4-941d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a22405d8-cdbb-11e4-b664-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a22405d8-cdbb-11e4-b664-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$taBm3UxX5LxwhlsqJpH0ueXp4k0.WS6d.YhjH1vnU6eHieHsJN.SG"], ["created_at", "2015-03-18 22:10:49.119119"], ["updated_at", "2015-03-18 22:10:49.119119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$4m84xWPMrnXTN1pLnZ1bdeyCtpKFDhdoGr5GpFe9N61D.2pPiGFhi"], ["created_at", "2015-03-18 22:10:49.123786"], ["updated_at", "2015-03-18 22:10:49.123786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.125386"], ["user_id", "a22a0262-cdbb-11e4-99a2-705681abff85"], ["created_at", "2015-03-18 22:10:49.126147"], ["updated_at", "2015-03-18 22:10:49.126147"], ["token", "NkIZnatUU1lJkRof4AakGkZ_b3q5Uev_T-8lf6g12jI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:49.129767"], ["updated_at", "2015-03-18 22:10:49.129767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a22a0262-cdbb-11e4-99a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a22ba158-cdbb-11e4-94e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a22a0262-cdbb-11e4-99a2-705681abff85"], ["organization_id", "a22ba158-cdbb-11e4-94e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.133155"], ["updated_at", "2015-03-18 22:10:49.133155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a22ab7e8-cdbb-11e4-8bdb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a22ba158-cdbb-11e4-94e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a22ab7e8-cdbb-11e4-8bdb-705681abff85"], ["organization_id", "a22ba158-cdbb-11e4-94e0-705681abff85"], ["created_at", "2015-03-18 22:10:49.136380"], ["updated_at", "2015-03-18 22:10:49.136380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$0bMLo194HxWvL709JE/y5OoZiz2on6QuOdgOBwjswfNGN2bFUL7ci"], ["created_at", "2015-03-18 22:10:49.140932"], ["updated_at", "2015-03-18 22:10:49.140932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.142720"], ["user_id", "a22d5994-cdbb-11e4-924a-705681abff85"], ["created_at", "2015-03-18 22:10:49.143621"], ["updated_at", "2015-03-18 22:10:49.143621"], ["token", "tCHJbIQZ0W8v8OCuvz5XzlrFel8ZMDwK5SHiJRZkvwI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a22ba158-cdbb-11e4-94e0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a22ba158-cdbb-11e4-94e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.149695"], ["updated_at", "2015-03-18 22:10:49.149695"], ["token", "ciKRSDtaktwi8LF-jaMdstpfgGfxyemlE0vMWlEJk8I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 15:10:49 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$7QgRc.eNke4cYQ/uEzA3MOFCorY9USt8LXBCxSN8I9aPCKc5aNVoW"], ["created_at", "2015-03-18 22:10:49.160645"], ["updated_at", "2015-03-18 22:10:49.160645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$c0IG0YrcFqRIY/HAUHxYo.q.i8IhXyZaDUdn5Po.8oi3HiY1yxGOm"], ["created_at", "2015-03-18 22:10:49.165006"], ["updated_at", "2015-03-18 22:10:49.165006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.166525"], ["user_id", "a2305a90-cdbb-11e4-a026-705681abff85"], ["created_at", "2015-03-18 22:10:49.167261"], ["updated_at", "2015-03-18 22:10:49.167261"], ["token", "pBKfY8I36n7lSQSSVO6FDMtPZGJi9_Z9rYW2juDsgHs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:49.171000"], ["updated_at", "2015-03-18 22:10:49.171000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2305a90-cdbb-11e4-a026-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a231ead6-cdbb-11e4-8767-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2305a90-cdbb-11e4-a026-705681abff85"], ["organization_id", "a231ead6-cdbb-11e4-8767-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.174705"], ["updated_at", "2015-03-18 22:10:49.174705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2310044-cdbb-11e4-9254-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a231ead6-cdbb-11e4-8767-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2310044-cdbb-11e4-9254-705681abff85"], ["organization_id", "a231ead6-cdbb-11e4-8767-705681abff85"], ["created_at", "2015-03-18 22:10:49.178919"], ["updated_at", "2015-03-18 22:10:49.178919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$myPuzdB1xJiFtK6jgylXEeO5TZsl5/EUhxK7dDfgFDVMbFya63bga"], ["created_at", "2015-03-18 22:10:49.183886"], ["updated_at", "2015-03-18 22:10:49.183886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.185634"], ["user_id", "a233e5e8-cdbb-11e4-bbe9-705681abff85"], ["created_at", "2015-03-18 22:10:49.186468"], ["updated_at", "2015-03-18 22:10:49.186468"], ["token", "wmv3fXC_aytCm6dc1ttQ4DM2In-PCrIOUWChg9GRw-Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a231ead6-cdbb-11e4-8767-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a231ead6-cdbb-11e4-8767-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.190917"], ["updated_at", "2015-03-18 22:10:49.190917"], ["token", "pdF2C_a1OhrtO3QOaxJT8o3F3R6hXo1RkuL1oc9IsVw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:10:49 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"pdF2C_a1OhrtO3QOaxJT8o3F3R6hXo1RkuL1oc9IsVw", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:49.196841' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wmv3fXC_aytCm6dc1ttQ4DM2In-PCrIOUWChg9GRw-Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:49.198284"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:49.199214"], ["id", "a2345c62-cdbb-11e4-9208-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a233e5e8-cdbb-11e4-bbe9-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a233e5e8-cdbb-11e4-bbe9-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "pdF2C_a1OhrtO3QOaxJT8o3F3R6hXo1RkuL1oc9IsVw"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a231ead6-cdbb-11e4-8767-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a231ead6-cdbb-11e4-8767-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a233e5e8-cdbb-11e4-bbe9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a231ead6-cdbb-11e4-8767-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a233e5e8-cdbb-11e4-bbe9-705681abff85"], ["admin", "t"], ["organization_id", "a231ead6-cdbb-11e4-8767-705681abff85"], ["created_at", "2015-03-18 22:10:49.208497"], ["updated_at", "2015-03-18 22:10:49.208497"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a2350bc6-cdbb-11e4-a17e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$2e0FeqiZn1le2k5Qm6d/hOINMvyKj5Dc04t3GJxIrJnxIr/KAOnou"], ["created_at", "2015-03-18 22:10:49.217772"], ["updated_at", "2015-03-18 22:10:49.217772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$KTS4nykGWbQt5CZU7TGzMe2rfbMv8prkiKo3M5XRxcaz7P1x.jAc2"], ["created_at", "2015-03-18 22:10:49.222509"], ["updated_at", "2015-03-18 22:10:49.222509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.224644"], ["user_id", "a23913d8-cdbb-11e4-85c7-705681abff85"], ["created_at", "2015-03-18 22:10:49.232998"], ["updated_at", "2015-03-18 22:10:49.232998"], ["token", "RyoZFjYWdx2LUzyMg4Iy-sJ_b0o2TVoUcaZqPE42ru8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:49.239142"], ["updated_at", "2015-03-18 22:10:49.239142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a23913d8-cdbb-11e4-85c7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a23c5188-cdbb-11e4-bec6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a23913d8-cdbb-11e4-85c7-705681abff85"], ["organization_id", "a23c5188-cdbb-11e4-bec6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.242478"], ["updated_at", "2015-03-18 22:10:49.242478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a239d692-cdbb-11e4-bcb0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a23c5188-cdbb-11e4-bec6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a239d692-cdbb-11e4-bcb0-705681abff85"], ["organization_id", "a23c5188-cdbb-11e4-bec6-705681abff85"], ["created_at", "2015-03-18 22:10:49.246752"], ["updated_at", "2015-03-18 22:10:49.246752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$TYB5WTkPPboF6ZTBTBZHNeyhPcmNgYLsIksMRdwMCll5n0NSG7C.W"], ["created_at", "2015-03-18 22:10:49.251884"], ["updated_at", "2015-03-18 22:10:49.251884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.253702"], ["user_id", "a23e4754-cdbb-11e4-b72c-705681abff85"], ["created_at", "2015-03-18 22:10:49.254516"], ["updated_at", "2015-03-18 22:10:49.254516"], ["token", "fHlvEO4KCGAX2Ac5tSXr26o5iB130ju1dar2jW8XZAI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a23c5188-cdbb-11e4-bec6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a23c5188-cdbb-11e4-bec6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.258690"], ["updated_at", "2015-03-18 22:10:49.258690"], ["token", "bb0nz38xrBclr4FlZX_tUY-vipJDJdimvlOG5kFk2BA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:10:49 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:49.263982' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fHlvEO4KCGAX2Ac5tSXr26o5iB130ju1dar2jW8XZAI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:49.265536"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:49.266827"], ["id", "a23eb14e-cdbb-11e4-b068-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a23e4754-cdbb-11e4-b72c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a23e4754-cdbb-11e4-b72c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$cfKx.t5EnMvwgZiOg/ZqNeE.YlJTMvEfTwl8S0LY2aLGXXZrfwYam"], ["created_at", "2015-03-18 22:10:49.279032"], ["updated_at", "2015-03-18 22:10:49.279032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$14VkozbLs75CJHKKn.OjPe0VNXptSXU8BsiYD2gjnwe3.a7.f7aP."], ["created_at", "2015-03-18 22:10:49.283661"], ["updated_at", "2015-03-18 22:10:49.283661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.285203"], ["user_id", "a2426e24-cdbb-11e4-9596-705681abff85"], ["created_at", "2015-03-18 22:10:49.285976"], ["updated_at", "2015-03-18 22:10:49.285976"], ["token", "g4Rcjc-aa5_PHRhBc31R__wcy0xB35tmIo3wsdtyaJs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:49.289368"], ["updated_at", "2015-03-18 22:10:49.289368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2426e24-cdbb-11e4-9596-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a243ffdc-cdbb-11e4-8326-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2426e24-cdbb-11e4-9596-705681abff85"], ["organization_id", "a243ffdc-cdbb-11e4-8326-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.292865"], ["updated_at", "2015-03-18 22:10:49.292865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2431c7a-cdbb-11e4-846c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a243ffdc-cdbb-11e4-8326-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a2431c7a-cdbb-11e4-846c-705681abff85"], ["organization_id", "a243ffdc-cdbb-11e4-8326-705681abff85"], ["created_at", "2015-03-18 22:10:49.295929"], ["updated_at", "2015-03-18 22:10:49.295929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 15:10:49 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$SEBEDN/DH4FE1Tu.K3CB6uMnTs4WgInJ1Ev9XWZNyRs3KLF3QXUQu"], ["created_at", "2015-03-18 22:10:49.306189"], ["updated_at", "2015-03-18 22:10:49.306189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$67Hp8gSRnDkOq6hS34soBu8QXyH7OcTpEZPjyd4kU2v3xZKolEjK2"], ["created_at", "2015-03-18 22:10:49.311468"], ["updated_at", "2015-03-18 22:10:49.311468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.313492"], ["user_id", "a24697f6-cdbb-11e4-acb4-705681abff85"], ["created_at", "2015-03-18 22:10:49.314303"], ["updated_at", "2015-03-18 22:10:49.314303"], ["token", "dOo03kUn8ZWJG9JABSsCgmR5xaJ6_pwOoq8Qv2pgAWc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:49.317726"], ["updated_at", "2015-03-18 22:10:49.317726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a24697f6-cdbb-11e4-acb4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2484d9e-cdbb-11e4-8e1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a24697f6-cdbb-11e4-acb4-705681abff85"], ["organization_id", "a2484d9e-cdbb-11e4-8e1c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.320972"], ["updated_at", "2015-03-18 22:10:49.320972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a24762d0-cdbb-11e4-a686-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a2484d9e-cdbb-11e4-8e1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a24762d0-cdbb-11e4-a686-705681abff85"], ["organization_id", "a2484d9e-cdbb-11e4-8e1c-705681abff85"], ["created_at", "2015-03-18 22:10:49.324347"], ["updated_at", "2015-03-18 22:10:49.324347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a2495112-cdbb-11e4-9082-705681abff85" for 127.0.0.1 at 2015-03-18 15:10:49 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"a2495112-cdbb-11e4-9082-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:49.329210' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dOo03kUn8ZWJG9JABSsCgmR5xaJ6_pwOoq8Qv2pgAWc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:49.330772"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:49.331822"], ["id", "a247d274-cdbb-11e4-a601-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a24697f6-cdbb-11e4-acb4-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a24697f6-cdbb-11e4-acb4-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$gwqiKEiX6kGw6yPMQFSMk.fmqGUEkXSU4STb1MHBpCeEN48Iqei.i"], ["created_at", "2015-03-18 22:10:49.342876"], ["updated_at", "2015-03-18 22:10:49.342876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$TgyNy3s5rrdikOUG0qBFIe3zZX1fsSS5a6jOGiPMHbKMLDe65jITK"], ["created_at", "2015-03-18 22:10:49.347308"], ["updated_at", "2015-03-18 22:10:49.347308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:10:49.348830"], ["user_id", "a24c27b6-cdbb-11e4-9596-705681abff85"], ["created_at", "2015-03-18 22:10:49.349701"], ["updated_at", "2015-03-18 22:10:49.349701"], ["token", "-Bva_mr6w9zV7_SECGmyG4pd7dzatN7WnGT2RsNpVi8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:10:49.353279"], ["updated_at", "2015-03-18 22:10:49.353279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a24c27b6-cdbb-11e4-9596-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a24dbb1c-cdbb-11e4-b6de-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a24c27b6-cdbb-11e4-9596-705681abff85"], ["organization_id", "a24dbb1c-cdbb-11e4-b6de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:10:49.356681"], ["updated_at", "2015-03-18 22:10:49.356681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a24cd21a-cdbb-11e4-8d6b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a24dbb1c-cdbb-11e4-b6de-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a24cd21a-cdbb-11e4-8d6b-705681abff85"], ["organization_id", "a24dbb1c-cdbb-11e4-b6de-705681abff85"], ["created_at", "2015-03-18 22:10:49.359900"], ["updated_at", "2015-03-18 22:10:49.359900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a24e43d4-cdbb-11e4-a459-705681abff85" for 127.0.0.1 at 2015-03-18 15:10:49 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"a24e43d4-cdbb-11e4-a459-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:10:49.364453' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-Bva_mr6w9zV7_SECGmyG4pd7dzatN7WnGT2RsNpVi8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:10:49.365874"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:10:49.366880"], ["id", "a24d37b4-cdbb-11e4-bb2f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a24c27b6-cdbb-11e4-9596-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "a24c27b6-cdbb-11e4-9596-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (26.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$RwTvaeO5yuqn7zP2qxqQUulBmKOLE5qVjTtLhQABJrOpRTMCV7haO"], ["created_at", "2015-03-18 22:11:50.088237"], ["updated_at", "2015-03-18 22:11:50.088237"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$z6Ps7I6Ll7sGqVgfSZrGDuHbU9xzZhukbetAQB8IGOnxfpPuatAii"], ["created_at", "2015-03-18 22:11:50.122643"], ["updated_at", "2015-03-18 22:11:50.122643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.138167"], ["user_id", "c684b864-cdbb-11e4-bb91-705681abff85"], ["created_at", "2015-03-18 22:11:50.199749"], ["updated_at", "2015-03-18 22:11:50.199749"], ["token", "eEBMNfITau7pS8mUky82f9xSkbSyL6kdoxot54-DHdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.220459"], ["updated_at", "2015-03-18 22:11:50.220459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c684b864-cdbb-11e4-bb91-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6958f86-cdbb-11e4-9adc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c684b864-cdbb-11e4-bb91-705681abff85"], ["organization_id", "c6958f86-cdbb-11e4-9adc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.234857"], ["updated_at", "2015-03-18 22:11:50.234857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c686783e-cdbb-11e4-a161-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6958f86-cdbb-11e4-9adc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c686783e-cdbb-11e4-a161-705681abff85"], ["organization_id", "c6958f86-cdbb-11e4-9adc-705681abff85"], ["created_at", "2015-03-18 22:11:50.238965"], ["updated_at", "2015-03-18 22:11:50.238965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Z/idvO.zHvQ.r/6w0k.IquxWIWX41LJ2aPf3DHW/mtMnndi1MRsTm"], ["created_at", "2015-03-18 22:11:50.244158"], ["updated_at", "2015-03-18 22:11:50.244158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.245956"], ["user_id", "c698f716-cdbb-11e4-8944-705681abff85"], ["created_at", "2015-03-18 22:11:50.246762"], ["updated_at", "2015-03-18 22:11:50.246762"], ["token", "tTmOHV0sYn2MD-LFyz7O5a-T_B5uY6TPdK41qJRQJ9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'c6958f86-cdbb-11e4-9adc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "c6958f86-cdbb-11e4-9adc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.258720"], ["updated_at", "2015-03-18 22:11:50.258720"], ["token", "BW4vN10ORu6CMuxh1Uv---ovzYkne2JbXBIn7EbsN6Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$23FnZs2V/yDBBn5bFTf7PetxKFt8Tujl4CFX/Kif/4Vsc.xJyUWPy"], ["created_at", "2015-03-18 22:11:50.295910"], ["updated_at", "2015-03-18 22:11:50.295910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$HpGTuFa9SKoxlabcQW8jV.8E7UH7LSUiikhasrv77Q8VsLJcPl1r6"], ["created_at", "2015-03-18 22:11:50.301643"], ["updated_at", "2015-03-18 22:11:50.301643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.303446"], ["user_id", "c6a0ea34-cdbb-11e4-8781-705681abff85"], ["created_at", "2015-03-18 22:11:50.304263"], ["updated_at", "2015-03-18 22:11:50.304263"], ["token", "8qO1vNHm0vgDc-YkSzgV0Rv2uk8GO552HG_2VrrGEtM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.315226"], ["updated_at", "2015-03-18 22:11:50.315226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6a0ea34-cdbb-11e4-8781-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6a3d24e-cdbb-11e4-b73d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6a0ea34-cdbb-11e4-8781-705681abff85"], ["organization_id", "c6a3d24e-cdbb-11e4-b73d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.319275"], ["updated_at", "2015-03-18 22:11:50.319275"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6a1bcca-cdbb-11e4-a6c1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6a3d24e-cdbb-11e4-b73d-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6a1bcca-cdbb-11e4-a6c1-705681abff85"], ["organization_id", "c6a3d24e-cdbb-11e4-b73d-705681abff85"], ["created_at", "2015-03-18 22:11:50.326351"], ["updated_at", "2015-03-18 22:11:50.326351"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$R8dPvWF1EOJ20IqhCppeBOpLgXipH0oqLy4wN47bMom2iXWpOtaA."], ["created_at", "2015-03-18 22:11:50.334247"], ["updated_at", "2015-03-18 22:11:50.334247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.336145"], ["user_id", "c6a6b68a-cdbb-11e4-a4df-705681abff85"], ["created_at", "2015-03-18 22:11:50.336990"], ["updated_at", "2015-03-18 22:11:50.336990"], ["token", "S_j64VocYobpZQVCFVQgjFRLcrApoZl9OkjdB9p3JiU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'c6a3d24e-cdbb-11e4-b73d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "c6a3d24e-cdbb-11e4-b73d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.342747"], ["updated_at", "2015-03-18 22:11:50.342747"], ["token", "fvb5fw2-b_EGuWhZfzH9puTz7KnFcaTQe8fCn2hweJ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (2.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:50.362819' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S_j64VocYobpZQVCFVQgjFRLcrApoZl9OkjdB9p3JiU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (21.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:50.378927"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:50.381564"], ["id", "c6a729d0-cdbb-11e4-93ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6a6b68a-cdbb-11e4-a4df-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6a6b68a-cdbb-11e4-a4df-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 121ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$TFtaQGpbN9PHHLc7L9hT1e4lPHi9EHXVyDu2OrvWL7udHkbdKQbDu"], ["created_at", "2015-03-18 22:11:50.491660"], ["updated_at", "2015-03-18 22:11:50.491660"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$wTREXNBccApurBUL.uMrPu2AL66F2LM31Lg.MbHhQvfFAvUwaFnem"], ["created_at", "2015-03-18 22:11:50.502352"], ["updated_at", "2015-03-18 22:11:50.502352"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.518697"], ["user_id", "c6bee5c0-cdbb-11e4-a645-705681abff85"], ["created_at", "2015-03-18 22:11:50.522694"], ["updated_at", "2015-03-18 22:11:50.522694"], ["token", "N1bkCCpDpV_clSMPOJvU8YcuQu6GuO0sgu1ZTRuLcGg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.528893"], ["updated_at", "2015-03-18 22:11:50.528893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6bee5c0-cdbb-11e4-a645-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6c46d9c-cdbb-11e4-b1c8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6bee5c0-cdbb-11e4-a645-705681abff85"], ["organization_id", "c6c46d9c-cdbb-11e4-b1c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.532819"], ["updated_at", "2015-03-18 22:11:50.532819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6c1123c-cdbb-11e4-bd27-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6c46d9c-cdbb-11e4-b1c8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6c1123c-cdbb-11e4-bd27-705681abff85"], ["organization_id", "c6c46d9c-cdbb-11e4-b1c8-705681abff85"], ["created_at", "2015-03-18 22:11:50.536524"], ["updated_at", "2015-03-18 22:11:50.536524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$kcJ2qxV4W8TO5L2Q.7R95Oc2bgTTjeKe8VGolWqf/PQPYlX5s9g9y"], ["created_at", "2015-03-18 22:11:50.541027"], ["updated_at", "2015-03-18 22:11:50.541027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.542545"], ["user_id", "c6c63d0c-cdbb-11e4-93f4-705681abff85"], ["created_at", "2015-03-18 22:11:50.543289"], ["updated_at", "2015-03-18 22:11:50.543289"], ["token", "-QK-IuQf5GPEoK3zfAj13v-BaNO4kXGoh0kMQqD7ZSI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c6c46d9c-cdbb-11e4-b1c8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c6c46d9c-cdbb-11e4-b1c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.547332"], ["updated_at", "2015-03-18 22:11:50.547332"], ["token", "SwfenKWPi9Xs2Mrnyk8rVd_EzqfI4Hq0o7IAuacbyss"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"SwfenKWPi9Xs2Mrnyk8rVd_EzqfI4Hq0o7IAuacbyss", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:50.552144' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-QK-IuQf5GPEoK3zfAj13v-BaNO4kXGoh0kMQqD7ZSI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:50.553598"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:50.554525"], ["id", "c6c6a846-cdbb-11e4-87dd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6c63d0c-cdbb-11e4-93f4-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6c63d0c-cdbb-11e4-93f4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "SwfenKWPi9Xs2Mrnyk8rVd_EzqfI4Hq0o7IAuacbyss"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c6c46d9c-cdbb-11e4-b1c8-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c6c46d9c-cdbb-11e4-b1c8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6c63d0c-cdbb-11e4-93f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6c46d9c-cdbb-11e4-b1c8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6c63d0c-cdbb-11e4-93f4-705681abff85"], ["admin", "t"], ["organization_id", "c6c46d9c-cdbb-11e4-b1c8-705681abff85"], ["created_at", "2015-03-18 22:11:50.563963"], ["updated_at", "2015-03-18 22:11:50.563963"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "c6c73bb2-cdbb-11e4-8d72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 19ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$2PTwhvUgd16.2ZRjlVnRyurEQXzdv7zxRxd2mwbLCkFBI8RBWl2o."], ["created_at", "2015-03-18 22:11:50.576849"], ["updated_at", "2015-03-18 22:11:50.576849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$MlTL7vhY5CRUy5/uowJA2.iX/7ccllmd/dnT013nmLtrgwyvi5HKK"], ["created_at", "2015-03-18 22:11:50.581365"], ["updated_at", "2015-03-18 22:11:50.581365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.583000"], ["user_id", "c6cbbbce-cdbb-11e4-be37-705681abff85"], ["created_at", "2015-03-18 22:11:50.583884"], ["updated_at", "2015-03-18 22:11:50.583884"], ["token", "vwQ6bo-PQR9vq-w2LEiTkoXoN-pUo_AODUlMS8bQuhA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.587497"], ["updated_at", "2015-03-18 22:11:50.587497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6cbbbce-cdbb-11e4-be37-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6cd5524-cdbb-11e4-ab0a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6cbbbce-cdbb-11e4-be37-705681abff85"], ["organization_id", "c6cd5524-cdbb-11e4-ab0a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.590823"], ["updated_at", "2015-03-18 22:11:50.590823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6cc660a-cdbb-11e4-a637-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6cd5524-cdbb-11e4-ab0a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6cc660a-cdbb-11e4-a637-705681abff85"], ["organization_id", "c6cd5524-cdbb-11e4-ab0a-705681abff85"], ["created_at", "2015-03-18 22:11:50.593957"], ["updated_at", "2015-03-18 22:11:50.593957"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/c6cdd7ce-cdbb-11e4-9a0b-705681abff85" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"c6cdd7ce-cdbb-11e4-9a0b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:50.598964' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vwQ6bo-PQR9vq-w2LEiTkoXoN-pUo_AODUlMS8bQuhA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:50.600593"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:50.601627"], ["id", "c6ccd0f4-cdbb-11e4-a11d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6cbbbce-cdbb-11e4-be37-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6cbbbce-cdbb-11e4-be37-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "c6cdd7ce-cdbb-11e4-9a0b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c6cd5524-cdbb-11e4-ab0a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c6cbbbce-cdbb-11e4-be37-705681abff85' LIMIT 1 [["organization_id", "c6cd5524-cdbb-11e4-ab0a-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6cbbbce-cdbb-11e4-be37-705681abff85"]] Completed 200 OK in 16ms (Views: 1.9ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$ur2B.gc/KEpJ60K/0stiKeUnnk8lCf1NKUw71JGQrD3dB50nMt0Py"], ["created_at", "2015-03-18 22:11:50.623923"], ["updated_at", "2015-03-18 22:11:50.623923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$tnuFlVsg9c3zBd6ZFU.vuuHg1BjtcIjMbHNHkQ568ic5shFUxJZHu"], ["created_at", "2015-03-18 22:11:50.628672"], ["updated_at", "2015-03-18 22:11:50.628672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.630435"], ["user_id", "c6d2e75a-cdbb-11e4-830d-705681abff85"], ["created_at", "2015-03-18 22:11:50.631186"], ["updated_at", "2015-03-18 22:11:50.631186"], ["token", "YLIEWoBxcn-UKFRs1xImn23C4LEusV8bEzrgNesFQUU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.634753"], ["updated_at", "2015-03-18 22:11:50.634753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6d2e75a-cdbb-11e4-830d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6d49000-cdbb-11e4-b313-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6d2e75a-cdbb-11e4-830d-705681abff85"], ["organization_id", "c6d49000-cdbb-11e4-b313-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.638722"], ["updated_at", "2015-03-18 22:11:50.638722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6d39fd8-cdbb-11e4-9d68-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6d49000-cdbb-11e4-b313-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6d39fd8-cdbb-11e4-9d68-705681abff85"], ["organization_id", "c6d49000-cdbb-11e4-b313-705681abff85"], ["created_at", "2015-03-18 22:11:50.642027"], ["updated_at", "2015-03-18 22:11:50.642027"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ijz57QA2snhXd4S/kKRvZ.pJDuMRak88sMFP9ZVTaDzNflFOz7rsC"], ["created_at", "2015-03-18 22:11:50.653085"], ["updated_at", "2015-03-18 22:11:50.653085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$4Fu401iN7bMVfuFBrre9Z.ylEQHj/BwHX/qcMenJnE5LbNt6cBP.K"], ["created_at", "2015-03-18 22:11:50.658470"], ["updated_at", "2015-03-18 22:11:50.658470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.660361"], ["user_id", "c6d762bc-cdbb-11e4-baa1-705681abff85"], ["created_at", "2015-03-18 22:11:50.661224"], ["updated_at", "2015-03-18 22:11:50.661224"], ["token", "88xVR_X304xvkoeqYgQNgtv8RU7sNFKXntDdmxE5csc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.665057"], ["updated_at", "2015-03-18 22:11:50.665057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6d762bc-cdbb-11e4-baa1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6d935a6-cdbb-11e4-8187-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6d762bc-cdbb-11e4-baa1-705681abff85"], ["organization_id", "c6d935a6-cdbb-11e4-8187-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.668963"], ["updated_at", "2015-03-18 22:11:50.668963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6d82cce-cdbb-11e4-89e2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6d935a6-cdbb-11e4-8187-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6d82cce-cdbb-11e4-89e2-705681abff85"], ["organization_id", "c6d935a6-cdbb-11e4-8187-705681abff85"], ["created_at", "2015-03-18 22:11:50.672441"], ["updated_at", "2015-03-18 22:11:50.672441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c6d935a6-cdbb-11e4-8187-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"c6d935a6-cdbb-11e4-8187-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:50.677538' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "88xVR_X304xvkoeqYgQNgtv8RU7sNFKXntDdmxE5csc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (3.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:50.688059"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:50.689809"], ["id", "c6d8a0dc-cdbb-11e4-866a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6d762bc-cdbb-11e4-baa1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6d762bc-cdbb-11e4-baa1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c6d935a6-cdbb-11e4-8187-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "c6d935a6-cdbb-11e4-8187-705681abff85"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('c6d762bc-cdbb-11e4-baa1-705681abff85', 'c6d82cce-cdbb-11e4-89e2-705681abff85') Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('c6d935a6-cdbb-11e4-8187-705681abff85') Completed 500 Internal Server Error in 37ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$jJkO/BTnJFkcbX6LWnbywui1PllhyNOcdH/1SAIsuiKBoeNzns6MO"], ["created_at", "2015-03-18 22:11:50.721105"], ["updated_at", "2015-03-18 22:11:50.721105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$SlRErMjSDDiASxFf050NguUu6OaG6tXtnkcXt5z0dqmp76JafbwuK"], ["created_at", "2015-03-18 22:11:50.725819"], ["updated_at", "2015-03-18 22:11:50.725819"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.727425"], ["user_id", "c6e1bf3c-cdbb-11e4-bee6-705681abff85"], ["created_at", "2015-03-18 22:11:50.728292"], ["updated_at", "2015-03-18 22:11:50.728292"], ["token", "KWe3029VHH8rL1YrcZXTHqmrNdY16usqj3oMTMPnDYQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.731833"], ["updated_at", "2015-03-18 22:11:50.731833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6e1bf3c-cdbb-11e4-bee6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6e35c66-cdbb-11e4-8f65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6e1bf3c-cdbb-11e4-bee6-705681abff85"], ["organization_id", "c6e35c66-cdbb-11e4-8f65-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.735557"], ["updated_at", "2015-03-18 22:11:50.735557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6e2704e-cdbb-11e4-9361-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6e35c66-cdbb-11e4-8f65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6e2704e-cdbb-11e4-9361-705681abff85"], ["organization_id", "c6e35c66-cdbb-11e4-8f65-705681abff85"], ["created_at", "2015-03-18 22:11:50.738772"], ["updated_at", "2015-03-18 22:11:50.738772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (5.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$WiU/49GEJenrNZs9CaAIOO9hM/bMb0JYtWicWzmj23QFCuCwMjxrm"], ["created_at", "2015-03-18 22:11:50.845852"], ["updated_at", "2015-03-18 22:11:50.845852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$A1QDm.WREHaO0BGMr5DyAu2Zctrpb5KIHzjw51XsR1/YGRhHqtiR."], ["created_at", "2015-03-18 22:11:50.851146"], ["updated_at", "2015-03-18 22:11:50.851146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.853238"], ["user_id", "c6f4d324-cdbb-11e4-83f8-705681abff85"], ["created_at", "2015-03-18 22:11:50.853964"], ["updated_at", "2015-03-18 22:11:50.853964"], ["token", "ZlESSlgClJE-45C4wBz03wj0ZDNRxzYYxO5VEGOB6eI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.857463"], ["updated_at", "2015-03-18 22:11:50.857463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6f4d324-cdbb-11e4-83f8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6f68746-cdbb-11e4-b9b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6f4d324-cdbb-11e4-83f8-705681abff85"], ["organization_id", "c6f68746-cdbb-11e4-b9b2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.861272"], ["updated_at", "2015-03-18 22:11:50.861272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6f5a074-cdbb-11e4-a755-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6f68746-cdbb-11e4-b9b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6f5a074-cdbb-11e4-a755-705681abff85"], ["organization_id", "c6f68746-cdbb-11e4-b9b2-705681abff85"], ["created_at", "2015-03-18 22:11:50.864326"], ["updated_at", "2015-03-18 22:11:50.864326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:50.868943' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZlESSlgClJE-45C4wBz03wj0ZDNRxzYYxO5VEGOB6eI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:50.870386"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:50.871556"], ["id", "c6f60730-cdbb-11e4-b637-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c6f4d324-cdbb-11e4-83f8-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c6f4d324-cdbb-11e4-83f8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "c6f68746-cdbb-11e4-b9b2-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('c6f4d324-cdbb-11e4-83f8-705681abff85', 'c6f5a074-cdbb-11e4-a755-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('c6f68746-cdbb-11e4-b9b2-705681abff85') Completed 500 Internal Server Error in 16ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$bhklX4qoEap6vbO6mWUrcOFYOAt0k0qJ/zB4yFZwU0eHgHjLjjI4y"], ["created_at", "2015-03-18 22:11:50.889510"], ["updated_at", "2015-03-18 22:11:50.889510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$lIYBpOWspufH/2AHeppVpuI3LzOxjT/iW1aaQbgoN5Tj2hs2mtH5K"], ["created_at", "2015-03-18 22:11:50.893976"], ["updated_at", "2015-03-18 22:11:50.893976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.897557"], ["user_id", "c6fb6afe-cdbb-11e4-8b31-705681abff85"], ["created_at", "2015-03-18 22:11:50.898439"], ["updated_at", "2015-03-18 22:11:50.898439"], ["token", "9gbfkMTWzu4K0e1-84P2of-6f-yzwqTRlTVe32nMH7M"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.919000"], ["updated_at", "2015-03-18 22:11:50.919000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6fb6afe-cdbb-11e4-8b31-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c700eede-cdbb-11e4-9939-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6fb6afe-cdbb-11e4-8b31-705681abff85"], ["organization_id", "c700eede-cdbb-11e4-9939-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.930243"], ["updated_at", "2015-03-18 22:11:50.930243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6fc1df0-cdbb-11e4-8132-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c700eede-cdbb-11e4-9939-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c6fc1df0-cdbb-11e4-8132-705681abff85"], ["organization_id", "c700eede-cdbb-11e4-9939-705681abff85"], ["created_at", "2015-03-18 22:11:50.933312"], ["updated_at", "2015-03-18 22:11:50.933312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$yEanamlijftmEQepLQHnwOVw5428nkGmBdxe21yR1YUv2iouivGiW"], ["created_at", "2015-03-18 22:11:50.943592"], ["updated_at", "2015-03-18 22:11:50.943592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$qKuv.AMAWM/cxOVy6/rmbOZ4kbqb/xq3Nth/2UKvhKB/hONIDxd5u"], ["created_at", "2015-03-18 22:11:50.949052"], ["updated_at", "2015-03-18 22:11:50.949052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.951152"], ["user_id", "c703b6dc-cdbb-11e4-96c7-705681abff85"], ["created_at", "2015-03-18 22:11:50.952357"], ["updated_at", "2015-03-18 22:11:50.952357"], ["token", "-d7m2YA92tuyg02jFvnCDvuomXyLiDGyIG32P1h1YhU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.956985"], ["updated_at", "2015-03-18 22:11:50.956985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c703b6dc-cdbb-11e4-96c7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c705b6f8-cdbb-11e4-82ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c703b6dc-cdbb-11e4-96c7-705681abff85"], ["organization_id", "c705b6f8-cdbb-11e4-82ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.960242"], ["updated_at", "2015-03-18 22:11:50.960242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7048c06-cdbb-11e4-aa9d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c705b6f8-cdbb-11e4-82ec-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c7048c06-cdbb-11e4-aa9d-705681abff85"], ["organization_id", "c705b6f8-cdbb-11e4-82ec-705681abff85"], ["created_at", "2015-03-18 22:11:50.963180"], ["updated_at", "2015-03-18 22:11:50.963180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$7fYMAeoB9AGkAo/Kk9qmUO5912QZX.foIPvSBPpYI.7lR320HwchO"], ["created_at", "2015-03-18 22:11:50.974259"], ["updated_at", "2015-03-18 22:11:50.974259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$agpuF68ZbbkvteD69bTAgeoDW0jm9zonuPVrR.id860PZb..jq7hO"], ["created_at", "2015-03-18 22:11:50.980532"], ["updated_at", "2015-03-18 22:11:50.980532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:50.982218"], ["user_id", "c708776c-cdbb-11e4-9179-705681abff85"], ["created_at", "2015-03-18 22:11:50.983005"], ["updated_at", "2015-03-18 22:11:50.983005"], ["token", "qbHE5bFrExDNFsjZ-hqac8qymcbtiFyjPgSZyq7bzSY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:50.987086"], ["updated_at", "2015-03-18 22:11:50.987086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c708776c-cdbb-11e4-9179-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c70a640a-cdbb-11e4-978c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c708776c-cdbb-11e4-9179-705681abff85"], ["organization_id", "c70a640a-cdbb-11e4-978c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:50.991991"], ["updated_at", "2015-03-18 22:11:50.991991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7094fe8-cdbb-11e4-910d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c70a640a-cdbb-11e4-978c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c7094fe8-cdbb-11e4-910d-705681abff85"], ["organization_id", "c70a640a-cdbb-11e4-978c-705681abff85"], ["created_at", "2015-03-18 22:11:50.995609"], ["updated_at", "2015-03-18 22:11:50.995609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/c70b1364-cdbb-11e4-827d-705681abff85" for 127.0.0.1 at 2015-03-18 15:11:50 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"c70b1364-cdbb-11e4-827d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:51.001317' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qbHE5bFrExDNFsjZ-hqac8qymcbtiFyjPgSZyq7bzSY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:51.002795"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:51.003786"], ["id", "c709b794-cdbb-11e4-afe0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c708776c-cdbb-11e4-9179-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c708776c-cdbb-11e4-9179-705681abff85"]] Completed 500 Internal Server Error in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$RnT.Z1sBNlNWDZPXTFE5TeNXHDNEEMsbJBOzNtO1sst1fEPUWhg7m"], ["created_at", "2015-03-18 22:11:51.026321"], ["updated_at", "2015-03-18 22:11:51.026321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$tA6vHKIKICutN69R9bqiQOSczDwru.XkelM7VYw73Uf0y0METAuYi"], ["created_at", "2015-03-18 22:11:51.030596"], ["updated_at", "2015-03-18 22:11:51.030596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:51.032377"], ["user_id", "c7104ec4-cdbb-11e4-a13c-705681abff85"], ["created_at", "2015-03-18 22:11:51.033258"], ["updated_at", "2015-03-18 22:11:51.033258"], ["token", "0y1KWF1OAaZf2-muHqF329dejJoZz8dzDJS0oCtA60E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:51.036830"], ["updated_at", "2015-03-18 22:11:51.036830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7104ec4-cdbb-11e4-a13c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c711e55e-cdbb-11e4-8481-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7104ec4-cdbb-11e4-a13c-705681abff85"], ["organization_id", "c711e55e-cdbb-11e4-8481-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:51.040229"], ["updated_at", "2015-03-18 22:11:51.040229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c710fa5e-cdbb-11e4-b967-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c711e55e-cdbb-11e4-8481-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c710fa5e-cdbb-11e4-b967-705681abff85"], ["organization_id", "c711e55e-cdbb-11e4-8481-705681abff85"], ["created_at", "2015-03-18 22:11:51.043216"], ["updated_at", "2015-03-18 22:11:51.043216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/c712dc20-cdbb-11e4-947d-705681abff85" for 127.0.0.1 at 2015-03-18 15:11:51 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"c712dc20-cdbb-11e4-947d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:51.048336' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0y1KWF1OAaZf2-muHqF329dejJoZz8dzDJS0oCtA60E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:51.049805"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:51.050715"], ["id", "c71162aa-cdbb-11e4-8757-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c7104ec4-cdbb-11e4-a13c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c7104ec4-cdbb-11e4-a13c-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$8N23.meqgJM14tJX0HFe5u62yhADg1fIqpctC112jokf/EgJdGUHu"], ["created_at", "2015-03-18 22:11:51.059943"], ["updated_at", "2015-03-18 22:11:51.059943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$jakBgTlJ3Ee08Qs8koopAuE5lCCCiAWXLSVAmvutkkJGQgytQAIdq"], ["created_at", "2015-03-18 22:11:51.064162"], ["updated_at", "2015-03-18 22:11:51.064162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:51.065701"], ["user_id", "c7156f08-cdbb-11e4-a9a6-705681abff85"], ["created_at", "2015-03-18 22:11:51.066461"], ["updated_at", "2015-03-18 22:11:51.066461"], ["token", "rkIWE8JILv73Hckl4ck_vfWP71rt2-15ITrrTINNLsc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:51.070129"], ["updated_at", "2015-03-18 22:11:51.070129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7156f08-cdbb-11e4-a9a6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c716ff8a-cdbb-11e4-878e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7156f08-cdbb-11e4-a9a6-705681abff85"], ["organization_id", "c716ff8a-cdbb-11e4-878e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:51.073652"], ["updated_at", "2015-03-18 22:11:51.073652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7160e9a-cdbb-11e4-9f0d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c716ff8a-cdbb-11e4-878e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c7160e9a-cdbb-11e4-9f0d-705681abff85"], ["organization_id", "c716ff8a-cdbb-11e4-878e-705681abff85"], ["created_at", "2015-03-18 22:11:51.076717"], ["updated_at", "2015-03-18 22:11:51.076717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 15:11:51 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$X3I42tjFtYljZ.l29Tkjx.4cBGicnoOzfNg8yjkJbe8gHf6XG.gi2"], ["created_at", "2015-03-18 22:11:51.086615"], ["updated_at", "2015-03-18 22:11:51.086615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$9ITdExgo1h7CvDiibn7EWuUtICBYaW2aA5AKG7BbPcrNni3.rENCe"], ["created_at", "2015-03-18 22:11:51.090937"], ["updated_at", "2015-03-18 22:11:51.090937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:51.092486"], ["user_id", "c7198016-cdbb-11e4-981a-705681abff85"], ["created_at", "2015-03-18 22:11:51.093280"], ["updated_at", "2015-03-18 22:11:51.093280"], ["token", "9wV1Y3PluxDkGJqb28ZQD-KvTssGYgRwpGxw7xLbbBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:51.099045"], ["updated_at", "2015-03-18 22:11:51.099045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7198016-cdbb-11e4-981a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c71b6660-cdbb-11e4-98e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7198016-cdbb-11e4-981a-705681abff85"], ["organization_id", "c71b6660-cdbb-11e4-98e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:51.102464"], ["updated_at", "2015-03-18 22:11:51.102464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c71a266a-cdbb-11e4-aa40-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c71b6660-cdbb-11e4-98e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c71a266a-cdbb-11e4-aa40-705681abff85"], ["organization_id", "c71b6660-cdbb-11e4-98e1-705681abff85"], ["created_at", "2015-03-18 22:11:51.105456"], ["updated_at", "2015-03-18 22:11:51.105456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/c71be8ec-cdbb-11e4-823a-705681abff85" for 127.0.0.1 at 2015-03-18 15:11:51 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"c71be8ec-cdbb-11e4-823a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:51.110017' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9wV1Y3PluxDkGJqb28ZQD-KvTssGYgRwpGxw7xLbbBk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:51.111422"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:51.112331"], ["id", "c71a89b6-cdbb-11e4-9ea3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c7198016-cdbb-11e4-981a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c7198016-cdbb-11e4-981a-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$HB3r2eVx62NT8W.XoMjSVOu6Si3bGyi1fcEW0SxAz8X82gRfQ5Pca"], ["created_at", "2015-03-18 22:11:51.126135"], ["updated_at", "2015-03-18 22:11:51.126135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$q2h4nk0JkayrH3RMKJrameTqxaAbmpdDmjjvRRFATPNphqBltjIPu"], ["created_at", "2015-03-18 22:11:51.130531"], ["updated_at", "2015-03-18 22:11:51.130531"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:51.132163"], ["user_id", "c71f8cea-cdbb-11e4-a0b8-705681abff85"], ["created_at", "2015-03-18 22:11:51.132995"], ["updated_at", "2015-03-18 22:11:51.132995"], ["token", "F7epEkRYHaMTXjZr0e5MxseuKUxdc6ajI_wyKRn7cEI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:51.136864"], ["updated_at", "2015-03-18 22:11:51.136864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c71f8cea-cdbb-11e4-a0b8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c7213130-cdbb-11e4-a730-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c71f8cea-cdbb-11e4-a0b8-705681abff85"], ["organization_id", "c7213130-cdbb-11e4-a730-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:51.140520"], ["updated_at", "2015-03-18 22:11:51.140520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7202fec-cdbb-11e4-bb88-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c7213130-cdbb-11e4-a730-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c7202fec-cdbb-11e4-bb88-705681abff85"], ["organization_id", "c7213130-cdbb-11e4-a730-705681abff85"], ["created_at", "2015-03-18 22:11:51.143603"], ["updated_at", "2015-03-18 22:11:51.143603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/c7222dc4-cdbb-11e4-98b5-705681abff85" for 127.0.0.1 at 2015-03-18 15:11:51 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"c7222dc4-cdbb-11e4-98b5-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:51.149937' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "F7epEkRYHaMTXjZr0e5MxseuKUxdc6ajI_wyKRn7cEI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:51.151518"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:51.152589"], ["id", "c7209a22-cdbb-11e4-af20-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c71f8cea-cdbb-11e4-a0b8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c71f8cea-cdbb-11e4-a0b8-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$K9csH2NtnZwCoRLQayK7Fu93asJTgQVIhwcdHFuVpkpq9GbqiqSWW"], ["created_at", "2015-03-18 22:11:51.170087"], ["updated_at", "2015-03-18 22:11:51.170087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$.vDYBuhZg7lxdXPXsS80lOe4Ix0nGs2HxZfVVie6Ky0szS3pf93zW"], ["created_at", "2015-03-18 22:11:51.174462"], ["updated_at", "2015-03-18 22:11:51.174462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:51.176082"], ["user_id", "c72640e4-cdbb-11e4-9e6c-705681abff85"], ["created_at", "2015-03-18 22:11:51.176845"], ["updated_at", "2015-03-18 22:11:51.176845"], ["token", "aZq1GSmiBNpBQHS2ePDld-aOr242E3gmrxaAQwaYex4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:51.181148"], ["updated_at", "2015-03-18 22:11:51.181148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c72640e4-cdbb-11e4-9e6c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c727eade-cdbb-11e4-9c77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c72640e4-cdbb-11e4-9e6c-705681abff85"], ["organization_id", "c727eade-cdbb-11e4-9c77-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:51.184558"], ["updated_at", "2015-03-18 22:11:51.184558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c726e652-cdbb-11e4-a48e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c727eade-cdbb-11e4-9c77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c726e652-cdbb-11e4-a48e-705681abff85"], ["organization_id", "c727eade-cdbb-11e4-9c77-705681abff85"], ["created_at", "2015-03-18 22:11:51.187749"], ["updated_at", "2015-03-18 22:11:51.187749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$0EhW2G8Q2DDssB4AwV3TIO3jkO0AIvqwcI19pOsJVc4Qq4RbUcu4O"], ["created_at", "2015-03-18 22:11:51.192195"], ["updated_at", "2015-03-18 22:11:51.192195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:51.193965"], ["user_id", "c7299adc-cdbb-11e4-aeb1-705681abff85"], ["created_at", "2015-03-18 22:11:51.194965"], ["updated_at", "2015-03-18 22:11:51.194965"], ["token", "a6W484vcusZsV50-UuiMljkkUzXpHAm9WLuQl4KJ3kY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'c727eade-cdbb-11e4-9c77-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "c727eade-cdbb-11e4-9c77-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:51.199202"], ["updated_at", "2015-03-18 22:11:51.199202"], ["token", "knDaPM7PWovspY-fQlCD7Vgsw7iZY0ohN8H_b2ZwBVE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 15:11:51 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$/9JxASI82tEQzbib16w9PusnPLTwS9D9UmA20GOPQO7xhGOK6emv6"], ["created_at", "2015-03-18 22:11:51.209447"], ["updated_at", "2015-03-18 22:11:51.209447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$GgNhTH3gKRBmNzy6O0ggDeizLjDQ4VPuLjj3k1/VHvynGP0EQf00."], ["created_at", "2015-03-18 22:11:51.214028"], ["updated_at", "2015-03-18 22:11:51.214028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:51.215915"], ["user_id", "c72c3df0-cdbb-11e4-a5ac-705681abff85"], ["created_at", "2015-03-18 22:11:51.216728"], ["updated_at", "2015-03-18 22:11:51.216728"], ["token", "4zAxUBWIk9WGj7TaP2Gt-cvSVe3sDLpdKdD3pAapIHw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:51.220203"], ["updated_at", "2015-03-18 22:11:51.220203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c72c3df0-cdbb-11e4-a5ac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c72ddfb6-cdbb-11e4-a5e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c72c3df0-cdbb-11e4-a5ac-705681abff85"], ["organization_id", "c72ddfb6-cdbb-11e4-a5e5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:51.223332"], ["updated_at", "2015-03-18 22:11:51.223332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c72cf84e-cdbb-11e4-9882-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c72ddfb6-cdbb-11e4-a5e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c72cf84e-cdbb-11e4-9882-705681abff85"], ["organization_id", "c72ddfb6-cdbb-11e4-a5e5-705681abff85"], ["created_at", "2015-03-18 22:11:51.230376"], ["updated_at", "2015-03-18 22:11:51.230376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$VayzdmgMd5t8z9393otTXuDVy71VuDrJ7kRgOGYallYrdkGfbXnTG"], ["created_at", "2015-03-18 22:11:51.235276"], ["updated_at", "2015-03-18 22:11:51.235276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:51.236910"], ["user_id", "c7302ee2-cdbb-11e4-a76f-705681abff85"], ["created_at", "2015-03-18 22:11:51.237738"], ["updated_at", "2015-03-18 22:11:51.237738"], ["token", "2r7CZsWLUKIZ-SSIoR5ip6OKsPADoT7S3N678JO7cyg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'c72ddfb6-cdbb-11e4-a5e5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "c72ddfb6-cdbb-11e4-a5e5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:51.242191"], ["updated_at", "2015-03-18 22:11:51.242191"], ["token", "DOnY_oBsl5Atqs_kVY9JPVlF0KifwaiN_C1jVzaI8fk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c72ddfb6-cdbb-11e4-a5e5-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:11:51 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"c72ddfb6-cdbb-11e4-a5e5-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:51.247118' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2r7CZsWLUKIZ-SSIoR5ip6OKsPADoT7S3N678JO7cyg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:51.248720"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:51.249771"], ["id", "c7309436-cdbb-11e4-9bec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c7302ee2-cdbb-11e4-a76f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c7302ee2-cdbb-11e4-a76f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c72ddfb6-cdbb-11e4-a5e5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$TqwQYvjhZfa80MRcCBH2WeQcEm/hydsQUZqITUZshtc/pTYW1UrwK"], ["created_at", "2015-03-18 22:11:51.261712"], ["updated_at", "2015-03-18 22:11:51.261712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$.FztnpdY5aoH1e/UsqsYYOIARLYQjT/3LYuOM75G1.IcUc0otiX1a"], ["created_at", "2015-03-18 22:11:51.266219"], ["updated_at", "2015-03-18 22:11:51.266219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:51.267791"], ["user_id", "c7343bea-cdbb-11e4-9c4e-705681abff85"], ["created_at", "2015-03-18 22:11:51.268536"], ["updated_at", "2015-03-18 22:11:51.268536"], ["token", "p2wvfYW3dqA2wz8OCuD4s58S36Bb1-eQsIpGx8_U0TQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:11:51.271854"], ["updated_at", "2015-03-18 22:11:51.271854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7343bea-cdbb-11e4-9c4e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c735c208-cdbb-11e4-b40f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7343bea-cdbb-11e4-9c4e-705681abff85"], ["organization_id", "c735c208-cdbb-11e4-b40f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:51.275118"], ["updated_at", "2015-03-18 22:11:51.275118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c734e5ea-cdbb-11e4-af47-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c735c208-cdbb-11e4-b40f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c734e5ea-cdbb-11e4-af47-705681abff85"], ["organization_id", "c735c208-cdbb-11e4-b40f-705681abff85"], ["created_at", "2015-03-18 22:11:51.278239"], ["updated_at", "2015-03-18 22:11:51.278239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$RO3nn5fvnPpp/.LCiX8f/.bforW2vXl2Kodkz80RQq0lzpy9rNkJG"], ["created_at", "2015-03-18 22:11:51.282641"], ["updated_at", "2015-03-18 22:11:51.282641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:11:51.284141"], ["user_id", "c7376784-cdbb-11e4-93a5-705681abff85"], ["created_at", "2015-03-18 22:11:51.284891"], ["updated_at", "2015-03-18 22:11:51.284891"], ["token", "wc5BYd7SKO71NkprYm_oEM4uTM-Cvjf1ZcRHcDTquNo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'c735c208-cdbb-11e4-b40f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "c735c208-cdbb-11e4-b40f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:11:51.288515"], ["updated_at", "2015-03-18 22:11:51.288515"], ["token", "-_e2OQ14AkNwGdqcrrX1JPrgtYQQA9IKYnZZ1jvDgqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c735c208-cdbb-11e4-b40f-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:11:51 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"-_e2OQ14AkNwGdqcrrX1JPrgtYQQA9IKYnZZ1jvDgqM", "organization_id"=>"c735c208-cdbb-11e4-b40f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:11:51.293804' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wc5BYd7SKO71NkprYm_oEM4uTM-Cvjf1ZcRHcDTquNo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:11:51.295405"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:11:51.296460"], ["id", "c737c562-cdbb-11e4-b693-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c7376784-cdbb-11e4-93a5-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "c7376784-cdbb-11e4-93a5-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c735c208-cdbb-11e4-b40f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "-_e2OQ14AkNwGdqcrrX1JPrgtYQQA9IKYnZZ1jvDgqM"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c735c208-cdbb-11e4-b40f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c735c208-cdbb-11e4-b40f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7376784-cdbb-11e4-93a5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c735c208-cdbb-11e4-b40f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7376784-cdbb-11e4-93a5-705681abff85"], ["admin", "t"], ["organization_id", "c735c208-cdbb-11e4-b40f-705681abff85"], ["created_at", "2015-03-18 22:11:51.305427"], ["updated_at", "2015-03-18 22:11:51.305427"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "c7385478-cdbb-11e4-b744-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (33.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$QF64krdiTQ2KC0.YnE2tOOW3wPqDgxtoWUFmdAcjmM8sl2Bx7lsCe"], ["created_at", "2015-03-18 22:16:23.006324"], ["updated_at", "2015-03-18 22:16:23.006324"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$zlivHfdp4tREuTmFxUs3X.2OMaILb2VQzRnJdIk0IWy7/FPkgeNsG"], ["created_at", "2015-03-18 22:16:23.046881"], ["updated_at", "2015-03-18 22:16:23.046881"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.064015"], ["updated_at", "2015-03-18 22:16:23.064015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6933b952-cdbc-11e4-887c-705681abff85' AND "clubhouse_memberships"."organization_id" = '69360310-cdbc-11e4-8eca-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6933b952-cdbc-11e4-887c-705681abff85"], ["organization_id", "69360310-cdbc-11e4-8eca-705681abff85"], ["created_at", "2015-03-18 22:16:23.112111"], ["updated_at", "2015-03-18 22:16:23.112111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6931fbd0-cdbc-11e4-8ca7-705681abff85' LIMIT 1 [["organization_id", "69360310-cdbc-11e4-8eca-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Byb5dXCkiDJGRPvFFWO8Z.vINPtM9wkMU33Qhqn0UA0AiYn1TfbmC"], ["created_at", "2015-03-18 22:16:23.134816"], ["updated_at", "2015-03-18 22:16:23.134816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$g8KFKHn7vC3AqHfmyFDoVOl4QkrZjG4QrQvAcv5MaMKKdh1ONTUTW"], ["created_at", "2015-03-18 22:16:23.139743"], ["updated_at", "2015-03-18 22:16:23.139743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.143137"], ["updated_at", "2015-03-18 22:16:23.143137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '694182a8-cdbc-11e4-b44a-705681abff85' AND "clubhouse_memberships"."organization_id" = '69420624-cdbc-11e4-903d-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "694182a8-cdbc-11e4-b44a-705681abff85"], ["organization_id", "69420624-cdbc-11e4-903d-705681abff85"], ["created_at", "2015-03-18 22:16:23.146341"], ["updated_at", "2015-03-18 22:16:23.146341"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6940c566-cdbc-11e4-8365-705681abff85' LIMIT 1 [["organization_id", "69420624-cdbc-11e4-903d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$3tpQ6xg3TGiokAJekGqygOVgXZUrEWOL9n73jSISIwerTBIiS69nS"], ["created_at", "2015-03-18 22:16:23.154005"], ["updated_at", "2015-03-18 22:16:23.154005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$CWjSbpgr02nsWeK14U7gIOa1nH6BgvpyUemXV5mmbE4bPRxYHbaeu"], ["created_at", "2015-03-18 22:16:23.158274"], ["updated_at", "2015-03-18 22:16:23.158274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.161340"], ["updated_at", "2015-03-18 22:16:23.161340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '694454ec-cdbc-11e4-a775-705681abff85' AND "clubhouse_memberships"."organization_id" = '6944cc9c-cdbc-11e4-a218-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "694454ec-cdbc-11e4-a775-705681abff85"], ["organization_id", "6944cc9c-cdbc-11e4-a218-705681abff85"], ["created_at", "2015-03-18 22:16:23.164686"], ["updated_at", "2015-03-18 22:16:23.164686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6943aff6-cdbc-11e4-a301-705681abff85' LIMIT 1 [["organization_id", "6944cc9c-cdbc-11e4-a218-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$R1F6s22NwlzlZj3oqZEkhOpmFcJ83g48hZq/yMIdP7CH1ehakpYBi"], ["created_at", "2015-03-18 22:16:23.173115"], ["updated_at", "2015-03-18 22:16:23.173115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$F3elifiWG9e6phl2gQ6/2eJrLGet5MG7DIXjRG5ZA08JKrrypATbK"], ["created_at", "2015-03-18 22:16:23.177306"], ["updated_at", "2015-03-18 22:16:23.177306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.180371"], ["updated_at", "2015-03-18 22:16:23.180371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69473a9a-cdbc-11e4-b34a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6947b402-cdbc-11e4-8749-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "69473a9a-cdbc-11e4-b34a-705681abff85"], ["organization_id", "6947b402-cdbc-11e4-8749-705681abff85"], ["created_at", "2015-03-18 22:16:23.183686"], ["updated_at", "2015-03-18 22:16:23.183686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '69469b8a-cdbc-11e4-95f6-705681abff85' LIMIT 1 [["organization_id", "6947b402-cdbc-11e4-8749-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$tObSn1CC5NZNJ13TCPUDu.uj67TRCuqKRfmnU/jG6qc9eLWCp2ILy"], ["created_at", "2015-03-18 22:16:23.190502"], ["updated_at", "2015-03-18 22:16:23.190502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.193552"], ["updated_at", "2015-03-18 22:16:23.193552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69494060-cdbc-11e4-b735-705681abff85' AND "clubhouse_memberships"."organization_id" = '6949b64e-cdbc-11e4-8538-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69494060-cdbc-11e4-b735-705681abff85"], ["organization_id", "6949b64e-cdbc-11e4-8538-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:16:23.196884"], ["updated_at", "2015-03-18 22:16:23.196884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '69494060-cdbc-11e4-b735-705681abff85' LIMIT 1 [["organization_id", "6949b64e-cdbc-11e4-8538-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$VQoE6dweWjdRUvRUk.EMruktQ73dEPpPLitsHJ99JafS/dnyBZlby"], ["created_at", "2015-03-18 22:16:23.204852"], ["updated_at", "2015-03-18 22:16:23.204852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.208127"], ["updated_at", "2015-03-18 22:16:23.208127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '694b757e-cdbc-11e4-8c38-705681abff85' AND "clubhouse_memberships"."organization_id" = '694bf1ac-cdbc-11e4-bc78-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "694b757e-cdbc-11e4-8c38-705681abff85"], ["organization_id", "694bf1ac-cdbc-11e4-bc78-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:16:23.211722"], ["updated_at", "2015-03-18 22:16:23.211722"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '694b757e-cdbc-11e4-8c38-705681abff85' LIMIT 1 [["organization_id", "694bf1ac-cdbc-11e4-bc78-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$rYLZ90EZybk5ZIaUDs5UH.Ac4eJmg30i1GT4FBZYfP/6INZxGUERG"], ["created_at", "2015-03-18 22:16:23.219219"], ["updated_at", "2015-03-18 22:16:23.219219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.222300"], ["updated_at", "2015-03-18 22:16:23.222300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '694da2cc-cdbc-11e4-9fea-705681abff85' AND "clubhouse_memberships"."organization_id" = '694e1766-cdbc-11e4-8dc6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "694da2cc-cdbc-11e4-9fea-705681abff85"], ["organization_id", "694e1766-cdbc-11e4-8dc6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:16:23.225538"], ["updated_at", "2015-03-18 22:16:23.225538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '694da2cc-cdbc-11e4-9fea-705681abff85' LIMIT 1 [["organization_id", "694e1766-cdbc-11e4-8dc6-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$EcTQx.ccN56hIe8/5z9x3.b4W2yyiFUPYVcRY3dVCJw5rmxgJ.A8y"], ["created_at", "2015-03-18 22:16:23.233697"], ["updated_at", "2015-03-18 22:16:23.233697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.236884"], ["updated_at", "2015-03-18 22:16:23.236884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '694fd948-cdbc-11e4-bbc9-705681abff85' AND "clubhouse_memberships"."organization_id" = '69505260-cdbc-11e4-9657-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "694fd948-cdbc-11e4-bbc9-705681abff85"], ["organization_id", "69505260-cdbc-11e4-9657-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:16:23.240412"], ["updated_at", "2015-03-18 22:16:23.240412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '694fd948-cdbc-11e4-bbc9-705681abff85' LIMIT 1 [["organization_id", "69505260-cdbc-11e4-9657-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ucyLaaTcTePndAE7PcnnI.W4SR27rm5NWXKd..SPekax9jUoGkbVO"], ["created_at", "2015-03-18 22:16:23.248962"], ["updated_at", "2015-03-18 22:16:23.248962"]] [1m (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.252583"], ["updated_at", "2015-03-18 22:16:23.252583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69522dc4-cdbc-11e4-9e7d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6952bd66-cdbc-11e4-8cf9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69522dc4-cdbc-11e4-9e7d-705681abff85"], ["organization_id", "6952bd66-cdbc-11e4-8cf9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:16:23.256008"], ["updated_at", "2015-03-18 22:16:23.256008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '69522dc4-cdbc-11e4-9e7d-705681abff85' LIMIT 1 [["organization_id", "6952bd66-cdbc-11e4-8cf9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$qsYrYctk6w/lguU9sX6Cx.LbqspWy6GulmCmR9DWHhLPBXEabyNx6"], ["created_at", "2015-03-18 22:16:23.262719"], ["updated_at", "2015-03-18 22:16:23.262719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.266209"], ["updated_at", "2015-03-18 22:16:23.266209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '695445aa-cdbc-11e4-a7de-705681abff85' AND "clubhouse_memberships"."organization_id" = '6954ccdc-cdbc-11e4-ba12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "695445aa-cdbc-11e4-a7de-705681abff85"], ["organization_id", "6954ccdc-cdbc-11e4-ba12-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:16:23.269450"], ["updated_at", "2015-03-18 22:16:23.269450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '695445aa-cdbc-11e4-a7de-705681abff85' LIMIT 1 [["organization_id", "6954ccdc-cdbc-11e4-ba12-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$NJZE0lT/7dxoDviJlbG0teQQVNtBanINxbxKyNXkW4c5iyULK6ISu"], ["created_at", "2015-03-18 22:16:23.276490"], ["updated_at", "2015-03-18 22:16:23.276490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.279645"], ["updated_at", "2015-03-18 22:16:23.279645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69565f8e-cdbc-11e4-8951-705681abff85' AND "clubhouse_memberships"."organization_id" = '6956d90a-cdbc-11e4-9746-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "69565f8e-cdbc-11e4-8951-705681abff85"], ["organization_id", "6956d90a-cdbc-11e4-9746-705681abff85"], ["created_at", "2015-03-18 22:16:23.283180"], ["updated_at", "2015-03-18 22:16:23.283180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '69565f8e-cdbc-11e4-8951-705681abff85' LIMIT 1 [["organization_id", "6956d90a-cdbc-11e4-9746-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Xa3Hh31l5q2KIBIrUa/C4efAGIs1fZmevyf9TFMHXOKuSao2AUtd."], ["created_at", "2015-03-18 22:16:23.290077"], ["updated_at", "2015-03-18 22:16:23.290077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.293352"], ["updated_at", "2015-03-18 22:16:23.293352"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6958727e-cdbc-11e4-aa81-705681abff85' AND "clubhouse_memberships"."organization_id" = '695909c8-cdbc-11e4-bfc5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6958727e-cdbc-11e4-aa81-705681abff85"], ["organization_id", "695909c8-cdbc-11e4-bfc5-705681abff85"], ["created_at", "2015-03-18 22:16:23.299507"], ["updated_at", "2015-03-18 22:16:23.299507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6958727e-cdbc-11e4-aa81-705681abff85' LIMIT 1 [["organization_id", "695909c8-cdbc-11e4-bfc5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$KnI5h1ruvlhBukAUBv/VnugEctzj2sXgXzd0wqaO3up6ScMltbyqS"], ["created_at", "2015-03-18 22:16:23.308289"], ["updated_at", "2015-03-18 22:16:23.308289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.311929"], ["updated_at", "2015-03-18 22:16:23.311929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '695b3ebe-cdbc-11e4-9d0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '695bc96a-cdbc-11e4-8240-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "695b3ebe-cdbc-11e4-9d0d-705681abff85"], ["organization_id", "695bc96a-cdbc-11e4-8240-705681abff85"], ["created_at", "2015-03-18 22:16:23.315456"], ["updated_at", "2015-03-18 22:16:23.315456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '695b3ebe-cdbc-11e4-9d0d-705681abff85' LIMIT 1 [["organization_id", "695bc96a-cdbc-11e4-8240-705681abff85"]]  (6.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$iw/EagZiq7Y9/1jfaYAl7.ee5k6EgARnpT/NTbgJ7uIYKJAFdT1HS"], ["created_at", "2015-03-18 22:16:23.329875"], ["updated_at", "2015-03-18 22:16:23.329875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:16:23.333900"], ["updated_at", "2015-03-18 22:16:23.333900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '695e8bbe-cdbc-11e4-ac04-705681abff85' AND "clubhouse_memberships"."organization_id" = '695f25b0-cdbc-11e4-94e6-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "695e8bbe-cdbc-11e4-ac04-705681abff85"], ["organization_id", "695f25b0-cdbc-11e4-94e6-705681abff85"], ["created_at", "2015-03-18 22:16:23.338594"], ["updated_at", "2015-03-18 22:16:23.338594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '695e8bbe-cdbc-11e4-ac04-705681abff85' LIMIT 1 [["organization_id", "695f25b0-cdbc-11e4-94e6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (30.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Gr0.UsbB3byAFBAutJqr5ul11i.HWfYEX2Y5Re06T7P.nW3QCWJUC"], ["created_at", "2015-03-18 22:17:37.693055"], ["updated_at", "2015-03-18 22:17:37.693055"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.732776"], ["updated_at", "2015-03-18 22:17:37.732776"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95b607d2-cdbc-11e4-b878-705681abff85' AND "clubhouse_memberships"."organization_id" = '95b789c2-cdbc-11e4-8e32-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95b607d2-cdbc-11e4-b878-705681abff85"], ["organization_id", "95b789c2-cdbc-11e4-8e32-705681abff85"], ["created_at", "2015-03-18 22:17:37.770761"], ["updated_at", "2015-03-18 22:17:37.770761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '95b607d2-cdbc-11e4-b878-705681abff85' LIMIT 1 [["organization_id", "95b789c2-cdbc-11e4-8e32-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$VR/1raVpkcHTwb2nOP9feO1hZe2IbCK6k.YfSdLkc2rpvYX7JD61C"], ["created_at", "2015-03-18 22:17:37.822469"], ["updated_at", "2015-03-18 22:17:37.822469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.825758"], ["updated_at", "2015-03-18 22:17:37.825758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95c531ee-cdbc-11e4-9f7d-705681abff85' AND "clubhouse_memberships"."organization_id" = '95c5af02-cdbc-11e4-a738-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95c531ee-cdbc-11e4-9f7d-705681abff85"], ["organization_id", "95c5af02-cdbc-11e4-a738-705681abff85"], ["created_at", "2015-03-18 22:17:37.828902"], ["updated_at", "2015-03-18 22:17:37.828902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95c531ee-cdbc-11e4-9f7d-705681abff85' LIMIT 1 [["organization_id", "95c5af02-cdbc-11e4-a738-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$OCS/9dyH1fheCT5a7SWAk.WhBF8nUUlDZoRcR271qGGesSjOEb2g6"], ["created_at", "2015-03-18 22:17:37.835944"], ["updated_at", "2015-03-18 22:17:37.835944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.839695"], ["updated_at", "2015-03-18 22:17:37.839695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95c74100-cdbc-11e4-af1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '95c7d174-cdbc-11e4-b4cf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95c74100-cdbc-11e4-af1c-705681abff85"], ["organization_id", "95c7d174-cdbc-11e4-b4cf-705681abff85"], ["created_at", "2015-03-18 22:17:37.842955"], ["updated_at", "2015-03-18 22:17:37.842955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95c74100-cdbc-11e4-af1c-705681abff85' LIMIT 1 [["organization_id", "95c7d174-cdbc-11e4-b4cf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$l/MaPiRRRN3oSeROL1TzhuR1tR1Bps6Ye0t5limjVVU1MZjr4x0Ha"], ["created_at", "2015-03-18 22:17:37.850445"], ["updated_at", "2015-03-18 22:17:37.850445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.854521"], ["updated_at", "2015-03-18 22:17:37.854521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95c9790c-cdbc-11e4-9a94-705681abff85' AND "clubhouse_memberships"."organization_id" = '95ca1c9a-cdbc-11e4-aa6c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95c9790c-cdbc-11e4-9a94-705681abff85"], ["organization_id", "95ca1c9a-cdbc-11e4-aa6c-705681abff85"], ["created_at", "2015-03-18 22:17:37.859272"], ["updated_at", "2015-03-18 22:17:37.859272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95c9790c-cdbc-11e4-9a94-705681abff85' LIMIT 1 [["organization_id", "95ca1c9a-cdbc-11e4-aa6c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$pvvr5Kzd27JrTvLPvnBIEOsnonkSmiY3jiGIVM29b8MteM5S3W.Wi"], ["created_at", "2015-03-18 22:17:37.867374"], ["updated_at", "2015-03-18 22:17:37.867374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.872235"], ["updated_at", "2015-03-18 22:17:37.872235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95cc0ee2-cdbc-11e4-bc97-705681abff85' AND "clubhouse_memberships"."organization_id" = '95ccd250-cdbc-11e4-83a6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95cc0ee2-cdbc-11e4-bc97-705681abff85"], ["organization_id", "95ccd250-cdbc-11e4-83a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:17:37.876294"], ["updated_at", "2015-03-18 22:17:37.876294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95cc0ee2-cdbc-11e4-bc97-705681abff85' LIMIT 1 [["organization_id", "95ccd250-cdbc-11e4-83a6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$grY.Edq32.FAh/YRmslG6OQs0pz1IH3P8rJc7lk4nZqymy5Ok2zoa"], ["created_at", "2015-03-18 22:17:37.883956"], ["updated_at", "2015-03-18 22:17:37.883956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.889787"], ["updated_at", "2015-03-18 22:17:37.889787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95ce9644-cdbc-11e4-b515-705681abff85' AND "clubhouse_memberships"."organization_id" = '95cf79c4-cdbc-11e4-87ed-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95ce9644-cdbc-11e4-b515-705681abff85"], ["organization_id", "95cf79c4-cdbc-11e4-87ed-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:17:37.893781"], ["updated_at", "2015-03-18 22:17:37.893781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '95ce9644-cdbc-11e4-b515-705681abff85' LIMIT 1 [["organization_id", "95cf79c4-cdbc-11e4-87ed-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$gSbViKGP/QmPOcKnBXzpj.W6VCMslElktFiXQGHRdTm1rRmiOhqG6"], ["created_at", "2015-03-18 22:17:37.901811"], ["updated_at", "2015-03-18 22:17:37.901811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.905318"], ["updated_at", "2015-03-18 22:17:37.905318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95d15136-cdbc-11e4-8000-705681abff85' AND "clubhouse_memberships"."organization_id" = '95d1d39a-cdbc-11e4-9fa1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95d15136-cdbc-11e4-8000-705681abff85"], ["organization_id", "95d1d39a-cdbc-11e4-9fa1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:17:37.909314"], ["updated_at", "2015-03-18 22:17:37.909314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95d15136-cdbc-11e4-8000-705681abff85' LIMIT 1 [["organization_id", "95d1d39a-cdbc-11e4-9fa1-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Pq1HawaJfI/33ZheHNNZWO0wWZ/kCipkCCpJnQXLBUVt.J1XS9H.e"], ["created_at", "2015-03-18 22:17:37.925039"], ["updated_at", "2015-03-18 22:17:37.925039"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.935285"], ["updated_at", "2015-03-18 22:17:37.935285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95d5a5ba-cdbc-11e4-914e-705681abff85' AND "clubhouse_memberships"."organization_id" = '95d66ce8-cdbc-11e4-bf08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95d5a5ba-cdbc-11e4-914e-705681abff85"], ["organization_id", "95d66ce8-cdbc-11e4-bf08-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:17:37.938927"], ["updated_at", "2015-03-18 22:17:37.938927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95d5a5ba-cdbc-11e4-914e-705681abff85' LIMIT 1 [["organization_id", "95d66ce8-cdbc-11e4-bf08-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$yBQxKXSlnVRRbkXZe2IrPec3uxauqSIeGLcKibdeFzMuCK23tCz2C"], ["created_at", "2015-03-18 22:17:37.945955"], ["updated_at", "2015-03-18 22:17:37.945955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.949726"], ["updated_at", "2015-03-18 22:17:37.949726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95d810a2-cdbc-11e4-b3a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '95d89ca2-cdbc-11e4-9192-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95d810a2-cdbc-11e4-b3a4-705681abff85"], ["organization_id", "95d89ca2-cdbc-11e4-9192-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:17:37.953177"], ["updated_at", "2015-03-18 22:17:37.953177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95d810a2-cdbc-11e4-b3a4-705681abff85' LIMIT 1 [["organization_id", "95d89ca2-cdbc-11e4-9192-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$n3bB/qEqK/qL6cRu5GWMCu4Z1lL3BtM.nHeRhlTylffWewYSJ28G6"], ["created_at", "2015-03-18 22:17:37.960269"], ["updated_at", "2015-03-18 22:17:37.960269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.963970"], ["updated_at", "2015-03-18 22:17:37.963970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95da365c-cdbc-11e4-ac60-705681abff85' AND "clubhouse_memberships"."organization_id" = '95daca22-cdbc-11e4-896a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95da365c-cdbc-11e4-ac60-705681abff85"], ["organization_id", "95daca22-cdbc-11e4-896a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:17:37.968675"], ["updated_at", "2015-03-18 22:17:37.968675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95da365c-cdbc-11e4-ac60-705681abff85' LIMIT 1 [["organization_id", "95daca22-cdbc-11e4-896a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$FfbT46fQOY8NaFzLBMwCceC.gi9acU5ZiumtkQJNyAHH5BUEOOCxK"], ["created_at", "2015-03-18 22:17:37.978119"], ["updated_at", "2015-03-18 22:17:37.978119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$erN7nsIBW5uy4CL5wGxLJuVhVH9zrLDZ3EGX64nrbJzQkfB3uLOa."], ["created_at", "2015-03-18 22:17:37.983771"], ["updated_at", "2015-03-18 22:17:37.983771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:37.987436"], ["updated_at", "2015-03-18 22:17:37.987436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95ddd460-cdbc-11e4-889f-705681abff85' AND "clubhouse_memberships"."organization_id" = '95de5df4-cdbc-11e4-ab0e-705681abff85') LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95ddd460-cdbc-11e4-889f-705681abff85"], ["organization_id", "95de5df4-cdbc-11e4-ab0e-705681abff85"], ["created_at", "2015-03-18 22:17:37.990904"], ["updated_at", "2015-03-18 22:17:37.990904"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '95dcf478-cdbc-11e4-9b26-705681abff85' LIMIT 1 [["organization_id", "95de5df4-cdbc-11e4-ab0e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$tIJI5ZyJSi62RMnGIZkvh.26yioPPY2mbqD.pganwefcW5qAyr5Ai"], ["created_at", "2015-03-18 22:17:38.006239"], ["updated_at", "2015-03-18 22:17:38.006239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$gQLJOkq2JWi/hpEZwqRrzu7NyUOkHstITbBJMulX2.fl4FtgFk0fK"], ["created_at", "2015-03-18 22:17:38.013142"], ["updated_at", "2015-03-18 22:17:38.013142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:38.016993"], ["updated_at", "2015-03-18 22:17:38.016993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95e24b8a-cdbc-11e4-a2c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '95e2e842-cdbc-11e4-a3fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95e24b8a-cdbc-11e4-a2c5-705681abff85"], ["organization_id", "95e2e842-cdbc-11e4-a3fc-705681abff85"], ["created_at", "2015-03-18 22:17:38.020985"], ["updated_at", "2015-03-18 22:17:38.020985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95e16bac-cdbc-11e4-a2d7-705681abff85' LIMIT 1 [["organization_id", "95e2e842-cdbc-11e4-a3fc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$0S67WqkiTD2lVYyHYe5uX.rrmKfFk9CqNXve4/CM1HouY79ijpfvC"], ["created_at", "2015-03-18 22:17:38.028239"], ["updated_at", "2015-03-18 22:17:38.028239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$47weVclPNX9OzQa.OJuT7eXr9ZlqDsY87qPHNER88JYBkGMD6Yb4W"], ["created_at", "2015-03-18 22:17:38.033452"], ["updated_at", "2015-03-18 22:17:38.033452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:38.036957"], ["updated_at", "2015-03-18 22:17:38.036957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95e56680-cdbc-11e4-9273-705681abff85' AND "clubhouse_memberships"."organization_id" = '95e5ead8-cdbc-11e4-a5c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95e56680-cdbc-11e4-9273-705681abff85"], ["organization_id", "95e5ead8-cdbc-11e4-a5c9-705681abff85"], ["created_at", "2015-03-18 22:17:38.040651"], ["updated_at", "2015-03-18 22:17:38.040651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95e49778-cdbc-11e4-845d-705681abff85' LIMIT 1 [["organization_id", "95e5ead8-cdbc-11e4-a5c9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$MrR2jTfe2mZVcupR3aaOO.DCim8RXS59EzFTvf/s73eiTJfS7Z86W"], ["created_at", "2015-03-18 22:17:38.047894"], ["updated_at", "2015-03-18 22:17:38.047894"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Ok2pWKf7dh/MrYhKam8B0eu0xl8Pm2ZLaJCeXuPt1Cf3MCYDGWPi6"], ["created_at", "2015-03-18 22:17:38.055860"], ["updated_at", "2015-03-18 22:17:38.055860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:17:38.059251"], ["updated_at", "2015-03-18 22:17:38.059251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95e8d0e0-cdbc-11e4-a12a-705681abff85' AND "clubhouse_memberships"."organization_id" = '95e94fac-cdbc-11e4-8c26-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "95e8d0e0-cdbc-11e4-a12a-705681abff85"], ["organization_id", "95e94fac-cdbc-11e4-8c26-705681abff85"], ["created_at", "2015-03-18 22:17:38.062377"], ["updated_at", "2015-03-18 22:17:38.062377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95e7964e-cdbc-11e4-be33-705681abff85' LIMIT 1 [["organization_id", "95e94fac-cdbc-11e4-8c26-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Dlgbg2yjifUeh/cZ5S797ecf7tE5bbhPoYwCOYMvRyhc7rtn//If."], ["created_at", "2015-03-18 22:20:48.782291"], ["updated_at", "2015-03-18 22:20:48.782291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:48.863083"], ["updated_at", "2015-03-18 22:20:48.863083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07a01478-cdbd-11e4-9afd-705681abff85' AND "clubhouse_memberships"."organization_id" = '07a3e364-cdbd-11e4-a09d-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07a01478-cdbd-11e4-9afd-705681abff85"], ["organization_id", "07a3e364-cdbd-11e4-a09d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:20:48.884700"], ["updated_at", "2015-03-18 22:20:48.884700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07a01478-cdbd-11e4-9afd-705681abff85' LIMIT 1 [["organization_id", "07a3e364-cdbd-11e4-a09d-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$CYLcEtIqsI/98WL2KXwCx.3tWdfuTW3fN.Ah/JlXG4SNTewwn4iP6"], ["created_at", "2015-03-18 22:20:48.946159"], ["updated_at", "2015-03-18 22:20:48.946159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:48.951485"], ["updated_at", "2015-03-18 22:20:48.951485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07b070c0-cdbd-11e4-9077-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b13dac-cdbd-11e4-9fab-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07b070c0-cdbd-11e4-9077-705681abff85"], ["organization_id", "07b13dac-cdbd-11e4-9fab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:20:48.955807"], ["updated_at", "2015-03-18 22:20:48.955807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07b070c0-cdbd-11e4-9077-705681abff85' LIMIT 1 [["organization_id", "07b13dac-cdbd-11e4-9fab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$2ovM6YLdwa6KmhNijrFjbuaIhIfL5EFScd8hWNzJtKMFGCk0DRvaO"], ["created_at", "2015-03-18 22:20:48.964574"], ["updated_at", "2015-03-18 22:20:48.964574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:48.968540"], ["updated_at", "2015-03-18 22:20:48.968540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07b33544-cdbd-11e4-b8f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b3cb8a-cdbd-11e4-9342-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07b33544-cdbd-11e4-b8f1-705681abff85"], ["organization_id", "07b3cb8a-cdbd-11e4-9342-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:20:48.972385"], ["updated_at", "2015-03-18 22:20:48.972385"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07b33544-cdbd-11e4-b8f1-705681abff85' LIMIT 1 [["organization_id", "07b3cb8a-cdbd-11e4-9342-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$FVecRvLx02EmDhIdKh0u9eNDkjmHrRdib3QSLqrmWWS1QlUynezCG"], ["created_at", "2015-03-18 22:20:48.981673"], ["updated_at", "2015-03-18 22:20:48.981673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:48.985531"], ["updated_at", "2015-03-18 22:20:48.985531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07b5d20e-cdbd-11e4-9bc4-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b65f8a-cdbd-11e4-b5c9-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07b5d20e-cdbd-11e4-9bc4-705681abff85"], ["organization_id", "07b65f8a-cdbd-11e4-b5c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:20:48.989611"], ["updated_at", "2015-03-18 22:20:48.989611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '07b5d20e-cdbd-11e4-9bc4-705681abff85' LIMIT 1 [["organization_id", "07b65f8a-cdbd-11e4-b5c9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$i1LdxndAUW7N3pFAUiixY.ybuKX.cyIfL6GWABNretKe2SdPERrSG"], ["created_at", "2015-03-18 22:20:48.997559"], ["updated_at", "2015-03-18 22:20:48.997559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.001576"], ["updated_at", "2015-03-18 22:20:49.001576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07b839c2-cdbd-11e4-8791-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b8cfb8-cdbd-11e4-9b3c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07b839c2-cdbd-11e4-8791-705681abff85"], ["organization_id", "07b8cfb8-cdbd-11e4-9b3c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:20:49.005379"], ["updated_at", "2015-03-18 22:20:49.005379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$yLS/6bSXfG8eqf8OhYpE/.1zEbVq2xnlF2kQKumzg9iULBSqdzaZa"], ["created_at", "2015-03-18 22:20:49.011094"], ["updated_at", "2015-03-18 22:20:49.011094"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07ba455a-cdbd-11e4-a570-705681abff85' AND "clubhouse_memberships"."organization_id" = '07b8cfb8-cdbd-11e4-9b3c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07ba455a-cdbd-11e4-a570-705681abff85"], ["organization_id", "07b8cfb8-cdbd-11e4-9b3c-705681abff85"], ["created_at", "2015-03-18 22:20:49.015357"], ["updated_at", "2015-03-18 22:20:49.015357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07b839c2-cdbd-11e4-8791-705681abff85' LIMIT 1 [["organization_id", "07b8cfb8-cdbd-11e4-9b3c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$l6UyrAIJ9fTQ64vTwOoXsOG8AU5TVk61qs3rat2LFDhuQdbynsPcm"], ["created_at", "2015-03-18 22:20:49.024247"], ["updated_at", "2015-03-18 22:20:49.024247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.028290"], ["updated_at", "2015-03-18 22:20:49.028290"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07bc578c-cdbd-11e4-8db2-705681abff85' AND "clubhouse_memberships"."organization_id" = '07bce2ce-cdbd-11e4-8d67-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07bc578c-cdbd-11e4-8db2-705681abff85"], ["organization_id", "07bce2ce-cdbd-11e4-8d67-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:20:49.032799"], ["updated_at", "2015-03-18 22:20:49.032799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$MuSOeenUNcRWU8KDghkgJ.XtmaKgnsn6QXJfDDYQxoc6HZdx.Rgp2"], ["created_at", "2015-03-18 22:20:49.038699"], ["updated_at", "2015-03-18 22:20:49.038699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07be8ade-cdbd-11e4-a01f-705681abff85' AND "clubhouse_memberships"."organization_id" = '07bce2ce-cdbd-11e4-8d67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07be8ade-cdbd-11e4-a01f-705681abff85"], ["organization_id", "07bce2ce-cdbd-11e4-8d67-705681abff85"], ["created_at", "2015-03-18 22:20:49.043314"], ["updated_at", "2015-03-18 22:20:49.043314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07bc578c-cdbd-11e4-8db2-705681abff85' LIMIT 1 [["organization_id", "07bce2ce-cdbd-11e4-8d67-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$rgxu5mJ9wmkUzv2XVUAWXOQhTaXW0AjgjJB8cODK//o/zzMpFOC5a"], ["created_at", "2015-03-18 22:20:49.051254"], ["updated_at", "2015-03-18 22:20:49.051254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (7.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.055554"], ["updated_at", "2015-03-18 22:20:49.055554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07c0671e-cdbd-11e4-8f3e-705681abff85' AND "clubhouse_memberships"."organization_id" = '07c11718-cdbd-11e4-86c2-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07c0671e-cdbd-11e4-8f3e-705681abff85"], ["organization_id", "07c11718-cdbd-11e4-86c2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:20:49.066743"], ["updated_at", "2015-03-18 22:20:49.066743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$lqU88.DSrftRw5c7Jm886eIRhgI9R3bONtpVPrXHGQ0x5pHDJtiY6"], ["created_at", "2015-03-18 22:20:49.072436"], ["updated_at", "2015-03-18 22:20:49.072436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07c3a8e8-cdbd-11e4-8bc8-705681abff85' AND "clubhouse_memberships"."organization_id" = '07c11718-cdbd-11e4-86c2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07c3a8e8-cdbd-11e4-8bc8-705681abff85"], ["organization_id", "07c11718-cdbd-11e4-86c2-705681abff85"], ["created_at", "2015-03-18 22:20:49.076878"], ["updated_at", "2015-03-18 22:20:49.076878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07c0671e-cdbd-11e4-8f3e-705681abff85' LIMIT 1 [["organization_id", "07c11718-cdbd-11e4-86c2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$9trgzTXAgnXx7vsNQMA71.5c8O7ktH.pWCdAMxPU/fx0hQfVWZSaS"], ["created_at", "2015-03-18 22:20:49.084218"], ["updated_at", "2015-03-18 22:20:49.084218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.088506"], ["updated_at", "2015-03-18 22:20:49.088506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07c58834-cdbd-11e4-8c3c-705681abff85' AND "clubhouse_memberships"."organization_id" = '07c616fa-cdbd-11e4-9e79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07c58834-cdbd-11e4-8c3c-705681abff85"], ["organization_id", "07c616fa-cdbd-11e4-9e79-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:20:49.093911"], ["updated_at", "2015-03-18 22:20:49.093911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$IA7wruNFQE7rE9R.c/z.e.JNvlGPtGrIwckU2/Ak6AGmDHwKNQDQe"], ["created_at", "2015-03-18 22:20:49.099155"], ["updated_at", "2015-03-18 22:20:49.099155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07c7bbd6-cdbd-11e4-b5db-705681abff85' AND "clubhouse_memberships"."organization_id" = '07c616fa-cdbd-11e4-9e79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07c7bbd6-cdbd-11e4-b5db-705681abff85"], ["organization_id", "07c616fa-cdbd-11e4-9e79-705681abff85"], ["created_at", "2015-03-18 22:20:49.103122"], ["updated_at", "2015-03-18 22:20:49.103122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '07c58834-cdbd-11e4-8c3c-705681abff85' LIMIT 1 [["organization_id", "07c616fa-cdbd-11e4-9e79-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$u9O0XqAB.P9M.oYClJ8DLOfnR98oSGalo0zvaR3Hk.B6WELCMtbLu"], ["created_at", "2015-03-18 22:20:49.110548"], ["updated_at", "2015-03-18 22:20:49.110548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$RMmS8gf1E2BdITJJvlLCxuy2HWN359l2ZIeOphbOmPkiawmdfkTKy"], ["created_at", "2015-03-18 22:20:49.115560"], ["updated_at", "2015-03-18 22:20:49.115560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.118869"], ["updated_at", "2015-03-18 22:20:49.118869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07ca35b4-cdbd-11e4-8810-705681abff85' AND "clubhouse_memberships"."organization_id" = '07cab908-cdbd-11e4-b3bb-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07ca35b4-cdbd-11e4-8810-705681abff85"], ["organization_id", "07cab908-cdbd-11e4-b3bb-705681abff85"], ["created_at", "2015-03-18 22:20:49.122606"], ["updated_at", "2015-03-18 22:20:49.122606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07c96f62-cdbd-11e4-bbb5-705681abff85' LIMIT 1 [["organization_id", "07cab908-cdbd-11e4-b3bb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$kbNqo1MYCVsVMwUwKAwipu.yZjDuCituDbToISukBQ03ArYvURSzm"], ["created_at", "2015-03-18 22:20:49.130597"], ["updated_at", "2015-03-18 22:20:49.130597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$K0iR33DqG845NgbWq9nzz.AU8rTQnzI0.jJmeceNaCG3EFYaO0Vpy"], ["created_at", "2015-03-18 22:20:49.135069"], ["updated_at", "2015-03-18 22:20:49.135069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.139005"], ["updated_at", "2015-03-18 22:20:49.139005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07cd2d78-cdbd-11e4-8f0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '07cdd93a-cdbd-11e4-b30f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07cd2d78-cdbd-11e4-8f0d-705681abff85"], ["organization_id", "07cdd93a-cdbd-11e4-b30f-705681abff85"], ["created_at", "2015-03-18 22:20:49.143229"], ["updated_at", "2015-03-18 22:20:49.143229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07cc83c8-cdbd-11e4-a0d5-705681abff85' LIMIT 1 [["organization_id", "07cdd93a-cdbd-11e4-b30f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$jeFjac4ChDRA9dTLMpHcaOMf.LPySNxB3xIGFOAU3MXxvknP6Jz3y"], ["created_at", "2015-03-18 22:20:49.150265"], ["updated_at", "2015-03-18 22:20:49.150265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$bLKXpSzOuKa9PEcxyiWyBO/YritP765nU76uSDd6oL8/wGYwKILyC"], ["created_at", "2015-03-18 22:20:49.154731"], ["updated_at", "2015-03-18 22:20:49.154731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.157996"], ["updated_at", "2015-03-18 22:20:49.157996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07d02e10-cdbd-11e4-93d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '07d0ab10-cdbd-11e4-80ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07d02e10-cdbd-11e4-93d2-705681abff85"], ["organization_id", "07d0ab10-cdbd-11e4-80ab-705681abff85"], ["created_at", "2015-03-18 22:20:49.161559"], ["updated_at", "2015-03-18 22:20:49.161559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07cf7eb6-cdbd-11e4-853f-705681abff85' LIMIT 1 [["organization_id", "07d0ab10-cdbd-11e4-80ab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$8.9Ia.HW96/8zw6LhjVcau8f//XSbczli6PweCi1D3Us1MX7UmlGe"], ["created_at", "2015-03-18 22:20:49.169708"], ["updated_at", "2015-03-18 22:20:49.169708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$akHGd1AANei70YAcvMJlB.cZthoD4NvQ2/LC.N/HBkXTRXySqgyeC"], ["created_at", "2015-03-18 22:20:49.174829"], ["updated_at", "2015-03-18 22:20:49.174829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.177954"], ["updated_at", "2015-03-18 22:20:49.177954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07d33f10-cdbd-11e4-a0ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '07d3b472-cdbd-11e4-a36b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07d33f10-cdbd-11e4-a0ea-705681abff85"], ["organization_id", "07d3b472-cdbd-11e4-a36b-705681abff85"], ["created_at", "2015-03-18 22:20:49.180900"], ["updated_at", "2015-03-18 22:20:49.180900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '07d27b52-cdbd-11e4-9e7e-705681abff85' LIMIT 1 [["organization_id", "07d3b472-cdbd-11e4-a36b-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$DEGAKXnXrCAH9vqabyJJE.7rv1z4AoUtC2Iwb9kCE1lLJr6SYfQD6"], ["created_at", "2015-03-18 22:20:49.188275"], ["updated_at", "2015-03-18 22:20:49.188275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.192096"], ["updated_at", "2015-03-18 22:20:49.192096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07d54e40-cdbd-11e4-8872-705681abff85' AND "clubhouse_memberships"."organization_id" = '07d5e0d0-cdbd-11e4-9396-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07d54e40-cdbd-11e4-8872-705681abff85"], ["organization_id", "07d5e0d0-cdbd-11e4-9396-705681abff85"], ["created_at", "2015-03-18 22:20:49.195353"], ["updated_at", "2015-03-18 22:20:49.195353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07d54e40-cdbd-11e4-8872-705681abff85' LIMIT 1 [["organization_id", "07d5e0d0-cdbd-11e4-9396-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$5dcLi98HEAbuhaVbSG65F.KPy8HlE./1Afo2ogUS6Qp4pkKdWEttK"], ["created_at", "2015-03-18 22:20:49.202674"], ["updated_at", "2015-03-18 22:20:49.202674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.205879"], ["updated_at", "2015-03-18 22:20:49.205879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07d78034-cdbd-11e4-aea8-705681abff85' AND "clubhouse_memberships"."organization_id" = '07d7f7c6-cdbd-11e4-a545-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07d78034-cdbd-11e4-aea8-705681abff85"], ["organization_id", "07d7f7c6-cdbd-11e4-a545-705681abff85"], ["created_at", "2015-03-18 22:20:49.209233"], ["updated_at", "2015-03-18 22:20:49.209233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07d78034-cdbd-11e4-aea8-705681abff85' LIMIT 1 [["organization_id", "07d7f7c6-cdbd-11e4-a545-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$nlQqkOrrXoSlATyLt7XQdeyZ6F.g5zfxdQ4B8CjZaQwM9jxsl0wbS"], ["created_at", "2015-03-18 22:20:49.215991"], ["updated_at", "2015-03-18 22:20:49.215991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.219327"], ["updated_at", "2015-03-18 22:20:49.219327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07d98712-cdbd-11e4-b22b-705681abff85' AND "clubhouse_memberships"."organization_id" = '07da0da4-cdbd-11e4-883a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07d98712-cdbd-11e4-b22b-705681abff85"], ["organization_id", "07da0da4-cdbd-11e4-883a-705681abff85"], ["created_at", "2015-03-18 22:20:49.223857"], ["updated_at", "2015-03-18 22:20:49.223857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07d98712-cdbd-11e4-b22b-705681abff85' LIMIT 1 [["organization_id", "07da0da4-cdbd-11e4-883a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$bKFacLuFG1Da.4nIQmGTOeJsVOanv8/LGTm4HugkWRJa83P2yiSzy"], ["created_at", "2015-03-18 22:20:49.231447"], ["updated_at", "2015-03-18 22:20:49.231447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:20:49.234920"], ["updated_at", "2015-03-18 22:20:49.234920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07dbe55c-cdbd-11e4-b9bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '07dc691e-cdbd-11e4-a7f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07dbe55c-cdbd-11e4-b9bb-705681abff85"], ["organization_id", "07dc691e-cdbd-11e4-a7f0-705681abff85"], ["created_at", "2015-03-18 22:20:49.238734"], ["updated_at", "2015-03-18 22:20:49.238734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '07dbe55c-cdbd-11e4-b9bb-705681abff85' LIMIT 1 [["organization_id", "07dc691e-cdbd-11e4-a7f0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (3.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (12.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$OhdV8Z9UepYVd8V9BNLq/eGihE039fxVrnhep.bsiT9SLEQ92x0EK"], ["created_at", "2015-03-18 22:21:01.772297"], ["updated_at", "2015-03-18 22:21:01.772297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$.NBohL6RbAg75JVxp942QOGLMZFAU7jFDc/KGlQW7ACotOpLkLURq"], ["created_at", "2015-03-18 22:21:01.793820"], ["updated_at", "2015-03-18 22:21:01.793820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:01.801945"], ["updated_at", "2015-03-18 22:21:01.801945"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f58beea-cdbd-11e4-a6a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f5a1de4-cdbd-11e4-a8cc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f58beea-cdbd-11e4-a6a1-705681abff85"], ["organization_id", "0f5a1de4-cdbd-11e4-a8cc-705681abff85"], ["created_at", "2015-03-18 22:21:01.851328"], ["updated_at", "2015-03-18 22:21:01.851328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f57f3e8-cdbd-11e4-b71d-705681abff85' LIMIT 1 [["organization_id", "0f5a1de4-cdbd-11e4-a8cc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$LR5n1qAGyaBjSlLZlxw8yuMBbAibDU4t.1H60W9vnXg/34duyO/O6"], ["created_at", "2015-03-18 22:21:01.872721"], ["updated_at", "2015-03-18 22:21:01.872721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$gbfWc7mtP05R0tD8V1lG0.rmbFErpueJsrS6a1MY4i8ObzFyDUr9K"], ["created_at", "2015-03-18 22:21:01.876914"], ["updated_at", "2015-03-18 22:21:01.876914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:01.880075"], ["updated_at", "2015-03-18 22:21:01.880075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f656c62-cdbd-11e4-a54f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f65e70a-cdbd-11e4-964c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f656c62-cdbd-11e4-a54f-705681abff85"], ["organization_id", "0f65e70a-cdbd-11e4-964c-705681abff85"], ["created_at", "2015-03-18 22:21:01.883244"], ["updated_at", "2015-03-18 22:21:01.883244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f64cb18-cdbd-11e4-857e-705681abff85' LIMIT 1 [["organization_id", "0f65e70a-cdbd-11e4-964c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Y1aZHg19aArVbqhYuRm/AuMhD6iOwCdrGbAbsDDEtr02NXyh4w.7e"], ["created_at", "2015-03-18 22:21:01.890311"], ["updated_at", "2015-03-18 22:21:01.890311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$qVP70C3VjpecKCWrB7Yxa.JykFANf/7K7RqNHVbpcbP5jypBCoaTW"], ["created_at", "2015-03-18 22:21:01.894577"], ["updated_at", "2015-03-18 22:21:01.894577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:01.897576"], ["updated_at", "2015-03-18 22:21:01.897576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f681d18-cdbd-11e4-8013-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f6892a2-cdbd-11e4-a429-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f681d18-cdbd-11e4-8013-705681abff85"], ["organization_id", "0f6892a2-cdbd-11e4-a429-705681abff85"], ["created_at", "2015-03-18 22:21:01.900679"], ["updated_at", "2015-03-18 22:21:01.900679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f677a5c-cdbd-11e4-b4a2-705681abff85' LIMIT 1 [["organization_id", "0f6892a2-cdbd-11e4-a429-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$WuceI3f7qApluP/DjUdeguvODrHZo5q6eE.S4TrSQcyQ7dZ81ahhG"], ["created_at", "2015-03-18 22:21:01.910134"], ["updated_at", "2015-03-18 22:21:01.910134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$QSbZV35GQhK0mGL1kt8x/.cguAE8gP/ebecSXEcJWg2a3wptVr5oa"], ["created_at", "2015-03-18 22:21:01.915650"], ["updated_at", "2015-03-18 22:21:01.915650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:01.920554"], ["updated_at", "2015-03-18 22:21:01.920554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f6b73b4-cdbd-11e4-bf11-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f6c18aa-cdbd-11e4-8284-705681abff85') LIMIT 1 SQL (3.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f6b73b4-cdbd-11e4-bf11-705681abff85"], ["organization_id", "0f6c18aa-cdbd-11e4-8284-705681abff85"], ["created_at", "2015-03-18 22:21:01.924726"], ["updated_at", "2015-03-18 22:21:01.924726"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f6a80c6-cdbd-11e4-a729-705681abff85' LIMIT 1 [["organization_id", "0f6c18aa-cdbd-11e4-8284-705681abff85"]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$iejy50.T6jCbC3p.ofFm2eZllFtW9bkNr3W4j50UGkXTpDk9HA44q"], ["created_at", "2015-03-18 22:21:01.949127"], ["updated_at", "2015-03-18 22:21:01.949127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:01.953795"], ["updated_at", "2015-03-18 22:21:01.953795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f708958-cdbd-11e4-8848-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f712b4c-cdbd-11e4-9a99-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f708958-cdbd-11e4-8848-705681abff85"], ["organization_id", "0f712b4c-cdbd-11e4-9a99-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:01.957643"], ["updated_at", "2015-03-18 22:21:01.957643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f708958-cdbd-11e4-8848-705681abff85' LIMIT 1 [["organization_id", "0f712b4c-cdbd-11e4-9a99-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ZgPVCag.GLBf8vnxSAg7t.cMS8RbaZB6zMOnuDefhin7oC8CqfdW6"], ["created_at", "2015-03-18 22:21:01.965076"], ["updated_at", "2015-03-18 22:21:01.965076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:01.968185"], ["updated_at", "2015-03-18 22:21:01.968185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f72e0f4-cdbd-11e4-8584-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f7359e4-cdbd-11e4-b212-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f72e0f4-cdbd-11e4-8584-705681abff85"], ["organization_id", "0f7359e4-cdbd-11e4-b212-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:01.971539"], ["updated_at", "2015-03-18 22:21:01.971539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f72e0f4-cdbd-11e4-8584-705681abff85' LIMIT 1 [["organization_id", "0f7359e4-cdbd-11e4-b212-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$ZV.oL.TEfusDe4PGjDWTN.WMsz1.VHiAOGjtkXA5YdJ3elc7dUEmG"], ["created_at", "2015-03-18 22:21:01.979086"], ["updated_at", "2015-03-18 22:21:01.979086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:01.982505"], ["updated_at", "2015-03-18 22:21:01.982505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f7506fe-cdbd-11e4-a3af-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f758836-cdbd-11e4-bc83-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f7506fe-cdbd-11e4-a3af-705681abff85"], ["organization_id", "0f758836-cdbd-11e4-bc83-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:01.985838"], ["updated_at", "2015-03-18 22:21:01.985838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f7506fe-cdbd-11e4-a3af-705681abff85' LIMIT 1 [["organization_id", "0f758836-cdbd-11e4-bc83-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$IC6muDceLLvjIG19gASCP.sI58UDLriBaNSryl3awMLrY66jYHldC"], ["created_at", "2015-03-18 22:21:01.993964"], ["updated_at", "2015-03-18 22:21:01.993964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:01.997309"], ["updated_at", "2015-03-18 22:21:01.997309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f774bee-cdbd-11e4-bb04-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f77ca2e-cdbd-11e4-b7e5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f774bee-cdbd-11e4-bb04-705681abff85"], ["organization_id", "0f77ca2e-cdbd-11e4-b7e5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:02.000558"], ["updated_at", "2015-03-18 22:21:02.000558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f774bee-cdbd-11e4-bb04-705681abff85' LIMIT 1 [["organization_id", "0f77ca2e-cdbd-11e4-b7e5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$65L.6XGJKLS0rvDiPMZ6au05g0H5DxegzOeOlLRuTaxO5WpG4bCdS"], ["created_at", "2015-03-18 22:21:02.007853"], ["updated_at", "2015-03-18 22:21:02.007853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:02.011079"], ["updated_at", "2015-03-18 22:21:02.011079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f7968de-cdbd-11e4-8dec-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f79ebd8-cdbd-11e4-8261-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f7968de-cdbd-11e4-8dec-705681abff85"], ["organization_id", "0f79ebd8-cdbd-11e4-8261-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:02.014682"], ["updated_at", "2015-03-18 22:21:02.014682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Njnj.2J0pPerpq46tknbFuRTj4DSoVbdwF0U0re5I21NLNV8jDetC"], ["created_at", "2015-03-18 22:21:02.018998"], ["updated_at", "2015-03-18 22:21:02.018998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f7b1f58-cdbd-11e4-9ae9-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f79ebd8-cdbd-11e4-8261-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f7b1f58-cdbd-11e4-9ae9-705681abff85"], ["organization_id", "0f79ebd8-cdbd-11e4-8261-705681abff85"], ["created_at", "2015-03-18 22:21:02.022656"], ["updated_at", "2015-03-18 22:21:02.022656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f7968de-cdbd-11e4-8dec-705681abff85' LIMIT 1 [["organization_id", "0f79ebd8-cdbd-11e4-8261-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$KmpBXZeuTHik9dpPQ4nKqeV91mEaSYRcvV9iqSVcuZmHXExET.aBW"], ["created_at", "2015-03-18 22:21:02.030431"], ["updated_at", "2015-03-18 22:21:02.030431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:02.034130"], ["updated_at", "2015-03-18 22:21:02.034130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f7cdc26-cdbd-11e4-9837-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f7d6a56-cdbd-11e4-a6fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f7cdc26-cdbd-11e4-9837-705681abff85"], ["organization_id", "0f7d6a56-cdbd-11e4-a6fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:02.037491"], ["updated_at", "2015-03-18 22:21:02.037491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Icu5kNVAZxtwEW1VrE3VR.5l/iu2RkjRU6ACbVBOcyxWhyOOV3Fri"], ["created_at", "2015-03-18 22:21:02.043016"], ["updated_at", "2015-03-18 22:21:02.043016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f7eca86-cdbd-11e4-aebb-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f7d6a56-cdbd-11e4-a6fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f7eca86-cdbd-11e4-aebb-705681abff85"], ["organization_id", "0f7d6a56-cdbd-11e4-a6fb-705681abff85"], ["created_at", "2015-03-18 22:21:02.046634"], ["updated_at", "2015-03-18 22:21:02.046634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f7cdc26-cdbd-11e4-9837-705681abff85' LIMIT 1 [["organization_id", "0f7d6a56-cdbd-11e4-a6fb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$buEpUkuYexBuj5jEP0/hku9zMaHAJO1pZTTdlIg5NrptP88MBcIgW"], ["created_at", "2015-03-18 22:21:02.053650"], ["updated_at", "2015-03-18 22:21:02.053650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:02.056927"], ["updated_at", "2015-03-18 22:21:02.056927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f80667a-cdbd-11e4-b623-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f80e38e-cdbd-11e4-89fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f80667a-cdbd-11e4-b623-705681abff85"], ["organization_id", "0f80e38e-cdbd-11e4-89fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:02.060408"], ["updated_at", "2015-03-18 22:21:02.060408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$iZ5ZRAq9pRNem9B7/DUqCOkTn0sx5T3l/uq9k60pQL6Rkbb6T5KS6"], ["created_at", "2015-03-18 22:21:02.065105"], ["updated_at", "2015-03-18 22:21:02.065105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f8223ac-cdbd-11e4-8642-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f80e38e-cdbd-11e4-89fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f8223ac-cdbd-11e4-8642-705681abff85"], ["organization_id", "0f80e38e-cdbd-11e4-89fd-705681abff85"], ["created_at", "2015-03-18 22:21:02.069575"], ["updated_at", "2015-03-18 22:21:02.069575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f80667a-cdbd-11e4-b623-705681abff85' LIMIT 1 [["organization_id", "0f80e38e-cdbd-11e4-89fd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$XP44DsEd6bSpdTeuhVIobeIrO9IW8JMmRMPhzcBubP/HZk3VE517m"], ["created_at", "2015-03-18 22:21:02.078565"], ["updated_at", "2015-03-18 22:21:02.078565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:02.083522"], ["updated_at", "2015-03-18 22:21:02.083522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f84378c-cdbd-11e4-93d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f85087e-cdbd-11e4-b293-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f84378c-cdbd-11e4-93d7-705681abff85"], ["organization_id", "0f85087e-cdbd-11e4-b293-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:02.087891"], ["updated_at", "2015-03-18 22:21:02.087891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$FedPeohUJSbQEz7w7sX2XeU2Z7TkhqtSqDChM31kBFvcEH5ZSvMAq"], ["created_at", "2015-03-18 22:21:02.093109"], ["updated_at", "2015-03-18 22:21:02.093109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f866cc8-cdbd-11e4-b55d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f85087e-cdbd-11e4-b293-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f866cc8-cdbd-11e4-b55d-705681abff85"], ["organization_id", "0f85087e-cdbd-11e4-b293-705681abff85"], ["created_at", "2015-03-18 22:21:02.096851"], ["updated_at", "2015-03-18 22:21:02.096851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f84378c-cdbd-11e4-93d7-705681abff85' LIMIT 1 [["organization_id", "0f85087e-cdbd-11e4-b293-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$R6FQO.U73n9JQCWXWrDsmugconfOxJjhzia1hTRifdLTwE6KogVkC"], ["created_at", "2015-03-18 22:21:02.103976"], ["updated_at", "2015-03-18 22:21:02.103976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:02.107207"], ["updated_at", "2015-03-18 22:21:02.107207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f8813de-cdbd-11e4-8d6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f888fd0-cdbd-11e4-bd22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f8813de-cdbd-11e4-8d6e-705681abff85"], ["organization_id", "0f888fd0-cdbd-11e4-bd22-705681abff85"], ["created_at", "2015-03-18 22:21:02.111255"], ["updated_at", "2015-03-18 22:21:02.111255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f8813de-cdbd-11e4-8d6e-705681abff85' LIMIT 1 [["organization_id", "0f888fd0-cdbd-11e4-bd22-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$ZYJsuild3pFVK5cyi8nx.eekx8FN6cXcxtUrYONbLFNuhhup0emcG"], ["created_at", "2015-03-18 22:21:02.120293"], ["updated_at", "2015-03-18 22:21:02.120293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:02.123403"], ["updated_at", "2015-03-18 22:21:02.123403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f8a8fec-cdbd-11e4-bdfd-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f8b0742-cdbd-11e4-b156-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f8a8fec-cdbd-11e4-bdfd-705681abff85"], ["organization_id", "0f8b0742-cdbd-11e4-b156-705681abff85"], ["created_at", "2015-03-18 22:21:02.126672"], ["updated_at", "2015-03-18 22:21:02.126672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f8a8fec-cdbd-11e4-bdfd-705681abff85' LIMIT 1 [["organization_id", "0f8b0742-cdbd-11e4-b156-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$nqF/QELvV/HGmvBzAFLDi.isSC/h8Z1vOp/jZWPUMJz6fifbd.e1."], ["created_at", "2015-03-18 22:21:02.133368"], ["updated_at", "2015-03-18 22:21:02.133368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:02.137631"], ["updated_at", "2015-03-18 22:21:02.137631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f8c8ff4-cdbd-11e4-8c0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f8d37ec-cdbd-11e4-9f18-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f8c8ff4-cdbd-11e4-8c0f-705681abff85"], ["organization_id", "0f8d37ec-cdbd-11e4-9f18-705681abff85"], ["created_at", "2015-03-18 22:21:02.142239"], ["updated_at", "2015-03-18 22:21:02.142239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f8c8ff4-cdbd-11e4-8c0f-705681abff85' LIMIT 1 [["organization_id", "0f8d37ec-cdbd-11e4-9f18-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$fUA821vVkvn2gQCJy7AxjuitDwfHdUrc2qLEf7zTWovqhtk4nvXUO"], ["created_at", "2015-03-18 22:21:02.150056"], ["updated_at", "2015-03-18 22:21:02.150056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:02.153489"], ["updated_at", "2015-03-18 22:21:02.153489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f8f1e9a-cdbd-11e4-bdb1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f8fa072-cdbd-11e4-92fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f8f1e9a-cdbd-11e4-bdb1-705681abff85"], ["organization_id", "0f8fa072-cdbd-11e4-92fa-705681abff85"], ["created_at", "2015-03-18 22:21:02.156862"], ["updated_at", "2015-03-18 22:21:02.156862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f8f1e9a-cdbd-11e4-bdb1-705681abff85' LIMIT 1 [["organization_id", "0f8fa072-cdbd-11e4-92fa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$8hL/JTU9JRVVaLR1Nlnoy.I2uufoRuSY8i7lMWp7/jpOwZCfXqobS"], ["created_at", "2015-03-18 22:21:12.539042"], ["updated_at", "2015-03-18 22:21:12.539042"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$lTT2sC5FGiZZdWzYkbJubuAh7E40FY73vMq5oUugQxn7Zkn0kg9Xm"], ["created_at", "2015-03-18 22:21:12.566000"], ["updated_at", "2015-03-18 22:21:12.566000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.574079"], ["updated_at", "2015-03-18 22:21:12.574079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15c47b52-cdbd-11e4-97fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '15c5ba6c-cdbd-11e4-b558-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15c47b52-cdbd-11e4-97fc-705681abff85"], ["organization_id", "15c5ba6c-cdbd-11e4-b558-705681abff85"], ["created_at", "2015-03-18 22:21:12.626160"], ["updated_at", "2015-03-18 22:21:12.626160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15c3676c-cdbd-11e4-99d4-705681abff85' LIMIT 1 [["organization_id", "15c5ba6c-cdbd-11e4-b558-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$kiGJCH5MBPQvreP9E4srLOV12.0yMOZg2B8J3Vcg8QqDPdr4gIixi"], ["created_at", "2015-03-18 22:21:12.650219"], ["updated_at", "2015-03-18 22:21:12.650219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$lV8RpcilMtBrLXm2l1JeB.MYfldM3kEIdPOlPDNJEmFg8S3/ItYQq"], ["created_at", "2015-03-18 22:21:12.654489"], ["updated_at", "2015-03-18 22:21:12.654489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.657875"], ["updated_at", "2015-03-18 22:21:12.657875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15d1f264-cdbd-11e4-8bc8-705681abff85' AND "clubhouse_memberships"."organization_id" = '15d27a40-cdbd-11e4-aeec-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15d1f264-cdbd-11e4-8bc8-705681abff85"], ["organization_id", "15d27a40-cdbd-11e4-aeec-705681abff85"], ["created_at", "2015-03-18 22:21:12.661280"], ["updated_at", "2015-03-18 22:21:12.661280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15d15070-cdbd-11e4-8945-705681abff85' LIMIT 1 [["organization_id", "15d27a40-cdbd-11e4-aeec-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$7xumXHQ6m03tnG38D8wYaeZ/w6D/YCBspxUD4H/m.IM0Mg5wmb/Pq"], ["created_at", "2015-03-18 22:21:12.669601"], ["updated_at", "2015-03-18 22:21:12.669601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$gqq7TLofdyMtLT2ujD7NlelWu.mjgRjVStTvKsWA7R8NVflwI8GAS"], ["created_at", "2015-03-18 22:21:12.677226"], ["updated_at", "2015-03-18 22:21:12.677226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.682074"], ["updated_at", "2015-03-18 22:21:12.682074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15d5789e-cdbd-11e4-b956-705681abff85' AND "clubhouse_memberships"."organization_id" = '15d639be-cdbd-11e4-8004-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15d5789e-cdbd-11e4-b956-705681abff85"], ["organization_id", "15d639be-cdbd-11e4-8004-705681abff85"], ["created_at", "2015-03-18 22:21:12.686200"], ["updated_at", "2015-03-18 22:21:12.686200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15d450a4-cdbd-11e4-bb99-705681abff85' LIMIT 1 [["organization_id", "15d639be-cdbd-11e4-8004-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$xLh9YaF12whDo96Q58oy4.aKyZVJKxf/Mf2SXFd6.hBziYKT3L.cG"], ["created_at", "2015-03-18 22:21:12.693337"], ["updated_at", "2015-03-18 22:21:12.693337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$zxcObGHAZ8EzrTfqAtLXSeil65Y8ig5aCBlWf.d0k5sEAAjJpu2hC"], ["created_at", "2015-03-18 22:21:12.697910"], ["updated_at", "2015-03-18 22:21:12.697910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.701993"], ["updated_at", "2015-03-18 22:21:12.701993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15d89c86-cdbd-11e4-bef0-705681abff85' AND "clubhouse_memberships"."organization_id" = '15d93416-cdbd-11e4-92cb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15d89c86-cdbd-11e4-bef0-705681abff85"], ["organization_id", "15d93416-cdbd-11e4-92cb-705681abff85"], ["created_at", "2015-03-18 22:21:12.705318"], ["updated_at", "2015-03-18 22:21:12.705318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '15d7e250-cdbd-11e4-b39d-705681abff85' LIMIT 1 [["organization_id", "15d93416-cdbd-11e4-92cb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$h4oDJaVSq9VxHaVoGTXIq.4WZa.c57GjqKnBpeOPIh./O9NQ8CiUG"], ["created_at", "2015-03-18 22:21:12.713413"], ["updated_at", "2015-03-18 22:21:12.713413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.716878"], ["updated_at", "2015-03-18 22:21:12.716878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15daf210-cdbd-11e4-8bd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '15db7a1e-cdbd-11e4-8f95-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15daf210-cdbd-11e4-8bd4-705681abff85"], ["organization_id", "15db7a1e-cdbd-11e4-8f95-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:12.720504"], ["updated_at", "2015-03-18 22:21:12.720504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15daf210-cdbd-11e4-8bd4-705681abff85' LIMIT 1 [["organization_id", "15db7a1e-cdbd-11e4-8f95-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$x7jopCxcKvnVZ1D6sbdOhuUP.bVxS30T3WN7xEeRSvG8DQVEOBs9G"], ["created_at", "2015-03-18 22:21:12.728425"], ["updated_at", "2015-03-18 22:21:12.728425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.731782"], ["updated_at", "2015-03-18 22:21:12.731782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15dd4204-cdbd-11e4-abd2-705681abff85' AND "clubhouse_memberships"."organization_id" = '15ddc12a-cdbd-11e4-adfb-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15dd4204-cdbd-11e4-abd2-705681abff85"], ["organization_id", "15ddc12a-cdbd-11e4-adfb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:12.752208"], ["updated_at", "2015-03-18 22:21:12.752208"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15dd4204-cdbd-11e4-abd2-705681abff85' LIMIT 1 [["organization_id", "15ddc12a-cdbd-11e4-adfb-705681abff85"]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (22.5ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$W.7Ia49tqUHyICynYPJY9.Up7YCyhI80lKHEMba.7Eol5jn/LEx/O"], ["created_at", "2015-03-18 22:21:12.789635"], ["updated_at", "2015-03-18 22:21:12.789635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.796705"], ["updated_at", "2015-03-18 22:21:12.796705"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15e6b47e-cdbd-11e4-b1b5-705681abff85' AND "clubhouse_memberships"."organization_id" = '15e7c5b2-cdbd-11e4-972b-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15e6b47e-cdbd-11e4-b1b5-705681abff85"], ["organization_id", "15e7c5b2-cdbd-11e4-972b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:12.805382"], ["updated_at", "2015-03-18 22:21:12.805382"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15e6b47e-cdbd-11e4-b1b5-705681abff85' LIMIT 1 [["organization_id", "15e7c5b2-cdbd-11e4-972b-705681abff85"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$9OQaWSQmlVF2xTM.KO1qruBGRL8X7RZIT3BVW3BlaNPwJtHFJsCCO"], ["created_at", "2015-03-18 22:21:12.824512"], ["updated_at", "2015-03-18 22:21:12.824512"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.831631"], ["updated_at", "2015-03-18 22:21:12.831631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15ec056e-cdbd-11e4-90dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '15ed1044-cdbd-11e4-83d1-705681abff85') LIMIT 1 SQL (22.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15ec056e-cdbd-11e4-90dd-705681abff85"], ["organization_id", "15ed1044-cdbd-11e4-83d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:12.837373"], ["updated_at", "2015-03-18 22:21:12.837373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '15ec056e-cdbd-11e4-90dd-705681abff85' LIMIT 1 [["organization_id", "15ed1044-cdbd-11e4-83d1-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$M.2Hpw1sq3m9rcJL56lR7O2c6abhl2OxzLq5eMFnjPT7wq/RuS5C2"], ["created_at", "2015-03-18 22:21:12.873470"], ["updated_at", "2015-03-18 22:21:12.873470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.879702"], ["updated_at", "2015-03-18 22:21:12.879702"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15f390ae-cdbd-11e4-ba59-705681abff85' AND "clubhouse_memberships"."organization_id" = '15f46632-cdbd-11e4-80bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15f390ae-cdbd-11e4-ba59-705681abff85"], ["organization_id", "15f46632-cdbd-11e4-80bc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:12.886428"], ["updated_at", "2015-03-18 22:21:12.886428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$777fS7Vds1Z3I8AlIr12r.1vwSA7qUomueGWvF0CBPygDjXv2iGyi"], ["created_at", "2015-03-18 22:21:12.891589"], ["updated_at", "2015-03-18 22:21:12.891589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15f62364-cdbd-11e4-85c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '15f46632-cdbd-11e4-80bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15f62364-cdbd-11e4-85c7-705681abff85"], ["organization_id", "15f46632-cdbd-11e4-80bc-705681abff85"], ["created_at", "2015-03-18 22:21:12.895359"], ["updated_at", "2015-03-18 22:21:12.895359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15f390ae-cdbd-11e4-ba59-705681abff85' LIMIT 1 [["organization_id", "15f46632-cdbd-11e4-80bc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$uyL6PGiVTVSV4LW02OG.UuHtjHKqujgzGH6PMNMcCrZG1U5joa.Bi"], ["created_at", "2015-03-18 22:21:12.903211"], ["updated_at", "2015-03-18 22:21:12.903211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.906485"], ["updated_at", "2015-03-18 22:21:12.906485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15f7e76c-cdbd-11e4-83b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '15f86552-cdbd-11e4-a52f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15f7e76c-cdbd-11e4-83b2-705681abff85"], ["organization_id", "15f86552-cdbd-11e4-a52f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:12.909658"], ["updated_at", "2015-03-18 22:21:12.909658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$2m.Y86cD6dm/cyVhVqVQVuZokzMxjjCcUq2V3M5wX9/79F2v8U7Ui"], ["created_at", "2015-03-18 22:21:12.913998"], ["updated_at", "2015-03-18 22:21:12.913998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15f99666-cdbd-11e4-a90d-705681abff85' AND "clubhouse_memberships"."organization_id" = '15f86552-cdbd-11e4-a52f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15f99666-cdbd-11e4-a90d-705681abff85"], ["organization_id", "15f86552-cdbd-11e4-a52f-705681abff85"], ["created_at", "2015-03-18 22:21:12.917845"], ["updated_at", "2015-03-18 22:21:12.917845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15f7e76c-cdbd-11e4-83b2-705681abff85' LIMIT 1 [["organization_id", "15f86552-cdbd-11e4-a52f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$h5cjzi/Mz7bCuY3u.oibdOkXe8Sn./tLwnLJJoWrBI64zzsLEinae"], ["created_at", "2015-03-18 22:21:12.924839"], ["updated_at", "2015-03-18 22:21:12.924839"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.928882"], ["updated_at", "2015-03-18 22:21:12.928882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15fb33f4-cdbd-11e4-bebe-705681abff85' AND "clubhouse_memberships"."organization_id" = '15fbd1f6-cdbd-11e4-bf6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15fb33f4-cdbd-11e4-bebe-705681abff85"], ["organization_id", "15fbd1f6-cdbd-11e4-bf6a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:12.932165"], ["updated_at", "2015-03-18 22:21:12.932165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Lg6eODGfn9vE9y8oe5/6HuWbur7bdZN4Z9DO91U9MU8JUJmQmjYUq"], ["created_at", "2015-03-18 22:21:12.936812"], ["updated_at", "2015-03-18 22:21:12.936812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15fd0972-cdbd-11e4-8b53-705681abff85' AND "clubhouse_memberships"."organization_id" = '15fbd1f6-cdbd-11e4-bf6a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15fd0972-cdbd-11e4-8b53-705681abff85"], ["organization_id", "15fbd1f6-cdbd-11e4-bf6a-705681abff85"], ["created_at", "2015-03-18 22:21:12.940274"], ["updated_at", "2015-03-18 22:21:12.940274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15fb33f4-cdbd-11e4-bebe-705681abff85' LIMIT 1 [["organization_id", "15fbd1f6-cdbd-11e4-bf6a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$9n9PGdTvtBP8wibue9NMT.sIXNxOSC/O2OmVodfeyBE9Cqscp2GV."], ["created_at", "2015-03-18 22:21:12.947779"], ["updated_at", "2015-03-18 22:21:12.947779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.950993"], ["updated_at", "2015-03-18 22:21:12.950993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15feb646-cdbd-11e4-bceb-705681abff85' AND "clubhouse_memberships"."organization_id" = '15ff34ae-cdbd-11e4-bb31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15feb646-cdbd-11e4-bceb-705681abff85"], ["organization_id", "15ff34ae-cdbd-11e4-bb31-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:21:12.954568"], ["updated_at", "2015-03-18 22:21:12.954568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$jk/hHcWMVc.TjBRgByOXm.4.a99AFkyYx0XYvGxzO/FNBlZplRIcq"], ["created_at", "2015-03-18 22:21:12.959457"], ["updated_at", "2015-03-18 22:21:12.959457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16007c60-cdbd-11e4-91c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '15ff34ae-cdbd-11e4-bb31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16007c60-cdbd-11e4-91c0-705681abff85"], ["organization_id", "15ff34ae-cdbd-11e4-bb31-705681abff85"], ["created_at", "2015-03-18 22:21:12.962782"], ["updated_at", "2015-03-18 22:21:12.962782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '15feb646-cdbd-11e4-bceb-705681abff85' LIMIT 1 [["organization_id", "15ff34ae-cdbd-11e4-bb31-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$8e0ZleXyMJZ6s8b2XLL5c.VzE3Nc7kv2IKXuKdp5/ftiDbvouXNRS"], ["created_at", "2015-03-18 22:21:12.969735"], ["updated_at", "2015-03-18 22:21:12.969735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.972917"], ["updated_at", "2015-03-18 22:21:12.972917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16020db4-cdbd-11e4-8f58-705681abff85' AND "clubhouse_memberships"."organization_id" = '16028834-cdbd-11e4-a41a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16020db4-cdbd-11e4-8f58-705681abff85"], ["organization_id", "16028834-cdbd-11e4-a41a-705681abff85"], ["created_at", "2015-03-18 22:21:12.976056"], ["updated_at", "2015-03-18 22:21:12.976056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16020db4-cdbd-11e4-8f58-705681abff85' LIMIT 1 [["organization_id", "16028834-cdbd-11e4-a41a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$sDN.uIFbk0X/2cZ.G0gI0uoeGSryXDHwQiad7Q6N2zA8F7zUY2stq"], ["created_at", "2015-03-18 22:21:12.982617"], ["updated_at", "2015-03-18 22:21:12.982617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.985887"], ["updated_at", "2015-03-18 22:21:12.985887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '160404d4-cdbd-11e4-8656-705681abff85' AND "clubhouse_memberships"."organization_id" = '160489cc-cdbd-11e4-a1e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "160404d4-cdbd-11e4-8656-705681abff85"], ["organization_id", "160489cc-cdbd-11e4-a1e7-705681abff85"], ["created_at", "2015-03-18 22:21:12.989343"], ["updated_at", "2015-03-18 22:21:12.989343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '160404d4-cdbd-11e4-8656-705681abff85' LIMIT 1 [["organization_id", "160489cc-cdbd-11e4-a1e7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$sr7k96WSh8FR5ID4mw2fxexa/S8y7H4zWX/zdabiwjF6CqDMs0egK"], ["created_at", "2015-03-18 22:21:12.996452"], ["updated_at", "2015-03-18 22:21:12.996452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:12.999772"], ["updated_at", "2015-03-18 22:21:12.999772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16062318-cdbd-11e4-8b5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '1606aae0-cdbd-11e4-944e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16062318-cdbd-11e4-8b5d-705681abff85"], ["organization_id", "1606aae0-cdbd-11e4-944e-705681abff85"], ["created_at", "2015-03-18 22:21:13.003701"], ["updated_at", "2015-03-18 22:21:13.003701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16062318-cdbd-11e4-8b5d-705681abff85' LIMIT 1 [["organization_id", "1606aae0-cdbd-11e4-944e-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$PLAgMzMqH6Qex0XKGYLmP.edMG/8pjtfYLhA2Bp/3B55sqRi60J6K"], ["created_at", "2015-03-18 22:21:13.011085"], ["updated_at", "2015-03-18 22:21:13.011085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:21:13.014336"], ["updated_at", "2015-03-18 22:21:13.014336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16085e62-cdbd-11e4-a474-705681abff85' AND "clubhouse_memberships"."organization_id" = '1608dbd0-cdbd-11e4-afd8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16085e62-cdbd-11e4-a474-705681abff85"], ["organization_id", "1608dbd0-cdbd-11e4-afd8-705681abff85"], ["created_at", "2015-03-18 22:21:13.017634"], ["updated_at", "2015-03-18 22:21:13.017634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '16085e62-cdbd-11e4-a474-705681abff85' LIMIT 1 [["organization_id", "1608dbd0-cdbd-11e4-afd8-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (18.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$WIezgy35xJPoR2Y87vC3Y.OfHlzQulPPQHjXDL5U4ONQ2huQTANjS"], ["created_at", "2015-03-18 22:22:19.780841"], ["updated_at", "2015-03-18 22:22:19.780841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$IGr3rI8/nnn9BUNwYQEK.efleSNPsEUQrjorGyqN5ix0fRXMxg.YK"], ["created_at", "2015-03-18 22:22:19.804489"], ["updated_at", "2015-03-18 22:22:19.804489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:19.812520"], ["updated_at", "2015-03-18 22:22:19.812520"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3dd83b4c-cdbd-11e4-a5ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '3dd97cf0-cdbd-11e4-a7ae-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3dd83b4c-cdbd-11e4-a5ff-705681abff85"], ["organization_id", "3dd97cf0-cdbd-11e4-a7ae-705681abff85"], ["created_at", "2015-03-18 22:22:19.829905"], ["updated_at", "2015-03-18 22:22:19.829905"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3dd77798-cdbd-11e4-9d04-705681abff85' LIMIT 1 [["organization_id", "3dd97cf0-cdbd-11e4-a7ae-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$NfmYxzpADlnaAtzUYldQI.C1hTaun27pV7lJypfOvka79BOL9Z4By"], ["created_at", "2015-03-18 22:22:19.852941"], ["updated_at", "2015-03-18 22:22:19.852941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$5JqviUIkUtpkcsghYnI2LO9lZp.gfxXCzxoXYlms9Mv3okRp4UWDS"], ["created_at", "2015-03-18 22:22:19.857338"], ["updated_at", "2015-03-18 22:22:19.857338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:19.860440"], ["updated_at", "2015-03-18 22:22:19.860440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3de04ab2-cdbd-11e4-a52a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3de0c24e-cdbd-11e4-a474-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3de04ab2-cdbd-11e4-a52a-705681abff85"], ["organization_id", "3de0c24e-cdbd-11e4-a474-705681abff85"], ["created_at", "2015-03-18 22:22:19.863523"], ["updated_at", "2015-03-18 22:22:19.863523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3ddfa242-cdbd-11e4-8fac-705681abff85' LIMIT 1 [["organization_id", "3de0c24e-cdbd-11e4-a474-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Qg/ju5fzn4Odxziz.F9GSu9VmnTTmYINkfoXAOMk0uBeQ9J5HIGoG"], ["created_at", "2015-03-18 22:22:19.871787"], ["updated_at", "2015-03-18 22:22:19.871787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$seGU.no7g/QXvqHcC2fB8OmNky5ahfITsDJRWOptAQz5yNL77j0S6"], ["created_at", "2015-03-18 22:22:19.875953"], ["updated_at", "2015-03-18 22:22:19.875953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:19.878965"], ["updated_at", "2015-03-18 22:22:19.878965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3de320c0-cdbd-11e4-b4aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '3de395e6-cdbd-11e4-8da6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3de320c0-cdbd-11e4-b4aa-705681abff85"], ["organization_id", "3de395e6-cdbd-11e4-8da6-705681abff85"], ["created_at", "2015-03-18 22:22:19.882206"], ["updated_at", "2015-03-18 22:22:19.882206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3de28110-cdbd-11e4-8f8e-705681abff85' LIMIT 1 [["organization_id", "3de395e6-cdbd-11e4-8da6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$TnqlHfOnOvYO5ZbYX3a6Eed3q/cFIX2mpYC8F5qQjLj5UQ4Tu78D6"], ["created_at", "2015-03-18 22:22:19.889331"], ["updated_at", "2015-03-18 22:22:19.889331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$JR/nrNgEaYGsnwzW2iH8yen09F3azvX/tYW2HF7QyRQ3TMP8EDqHS"], ["created_at", "2015-03-18 22:22:19.893830"], ["updated_at", "2015-03-18 22:22:19.893830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:19.897140"], ["updated_at", "2015-03-18 22:22:19.897140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3de5dc2a-cdbd-11e4-b593-705681abff85' AND "clubhouse_memberships"."organization_id" = '3de65c54-cdbd-11e4-a6ed-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3de5dc2a-cdbd-11e4-b593-705681abff85"], ["organization_id", "3de65c54-cdbd-11e4-a6ed-705681abff85"], ["created_at", "2015-03-18 22:22:19.900228"], ["updated_at", "2015-03-18 22:22:19.900228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3de52de8-cdbd-11e4-b643-705681abff85' LIMIT 1 [["organization_id", "3de65c54-cdbd-11e4-a6ed-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (2.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$UbEgSZqRJhv.Kg29IeI1/emuzJVzLYhDX06l7w6Q.2DMhgpzHo.bC"], ["created_at", "2015-03-18 22:22:19.908524"], ["updated_at", "2015-03-18 22:22:19.908524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:19.914822"], ["updated_at", "2015-03-18 22:22:19.914822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3de81a30-cdbd-11e4-9e88-705681abff85' AND "clubhouse_memberships"."organization_id" = '3de91138-cdbd-11e4-883d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3de81a30-cdbd-11e4-9e88-705681abff85"], ["organization_id", "3de91138-cdbd-11e4-883d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:19.918129"], ["updated_at", "2015-03-18 22:22:19.918129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3de81a30-cdbd-11e4-9e88-705681abff85' LIMIT 1 [["organization_id", "3de91138-cdbd-11e4-883d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$kiwrB91V5uQ9B2pt1li8VubShdCvv0FZ4Pa4doSLCzBmnDVTDH9/K"], ["created_at", "2015-03-18 22:22:19.925157"], ["updated_at", "2015-03-18 22:22:19.925157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:19.928400"], ["updated_at", "2015-03-18 22:22:19.928400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3deaa52a-cdbd-11e4-88c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3deb231a-cdbd-11e4-bd7d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3deaa52a-cdbd-11e4-88c7-705681abff85"], ["organization_id", "3deb231a-cdbd-11e4-bd7d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:19.931704"], ["updated_at", "2015-03-18 22:22:19.931704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3deaa52a-cdbd-11e4-88c7-705681abff85' LIMIT 1 [["organization_id", "3deb231a-cdbd-11e4-bd7d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$yLIpi5Q3maTVCxDO64SKP.JWsIEFY3mQCUB9G3m1qwypubgOL7P.G"], ["created_at", "2015-03-18 22:22:19.938703"], ["updated_at", "2015-03-18 22:22:19.938703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:19.942314"], ["updated_at", "2015-03-18 22:22:19.942314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3decbe5a-cdbd-11e4-953b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ded43d4-cdbd-11e4-8d45-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3decbe5a-cdbd-11e4-953b-705681abff85"], ["organization_id", "3ded43d4-cdbd-11e4-8d45-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:19.945759"], ["updated_at", "2015-03-18 22:22:19.945759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3decbe5a-cdbd-11e4-953b-705681abff85' LIMIT 1 [["organization_id", "3ded43d4-cdbd-11e4-8d45-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$66O4t9e/0iav8EyeYmSzPunZM/egOmZLv2QNVBPLMfBWn3rpCXcG."], ["created_at", "2015-03-18 22:22:19.952594"], ["updated_at", "2015-03-18 22:22:19.952594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:19.956477"], ["updated_at", "2015-03-18 22:22:19.956477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3deed974-cdbd-11e4-a118-705681abff85' AND "clubhouse_memberships"."organization_id" = '3def6b0a-cdbd-11e4-93bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3deed974-cdbd-11e4-a118-705681abff85"], ["organization_id", "3def6b0a-cdbd-11e4-93bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:19.959747"], ["updated_at", "2015-03-18 22:22:19.959747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3deed974-cdbd-11e4-a118-705681abff85' LIMIT 1 [["organization_id", "3def6b0a-cdbd-11e4-93bb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$IU.JeoYPRrM1nh3N.EnyZOOqS2fptsWtLvwYoOZA/wYv5rkI/lMm2"], ["created_at", "2015-03-18 22:22:19.966807"], ["updated_at", "2015-03-18 22:22:19.966807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:19.969949"], ["updated_at", "2015-03-18 22:22:19.969949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3df10096-cdbd-11e4-8cb8-705681abff85' AND "clubhouse_memberships"."organization_id" = '3df1780a-cdbd-11e4-844d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3df10096-cdbd-11e4-8cb8-705681abff85"], ["organization_id", "3df1780a-cdbd-11e4-844d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:19.973215"], ["updated_at", "2015-03-18 22:22:19.973215"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$D9bRKjlGH/a6OYSIfl4V1eqgF1fmeNTHwTmsuldnRevbqwJoyHRm2"], ["created_at", "2015-03-18 22:22:19.977790"], ["updated_at", "2015-03-18 22:22:19.977790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3df2aba8-cdbd-11e4-904a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3df1780a-cdbd-11e4-844d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3df2aba8-cdbd-11e4-904a-705681abff85"], ["organization_id", "3df1780a-cdbd-11e4-844d-705681abff85"], ["created_at", "2015-03-18 22:22:19.980958"], ["updated_at", "2015-03-18 22:22:19.980958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3df10096-cdbd-11e4-8cb8-705681abff85' LIMIT 1 [["organization_id", "3df1780a-cdbd-11e4-844d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$YAH20V6R4h4hcW2bLQnjXOmM6ZiBh/Zy3XBamUy8N3IuLqkqZlHgW"], ["created_at", "2015-03-18 22:22:19.987957"], ["updated_at", "2015-03-18 22:22:19.987957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:19.991649"], ["updated_at", "2015-03-18 22:22:19.991649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3df441b6-cdbd-11e4-9435-705681abff85' AND "clubhouse_memberships"."organization_id" = '3df4c7c6-cdbd-11e4-a870-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3df441b6-cdbd-11e4-9435-705681abff85"], ["organization_id", "3df4c7c6-cdbd-11e4-a870-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:19.994835"], ["updated_at", "2015-03-18 22:22:19.994835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$kvaJR7uorvBqyJJ6UydOtObt0ANILLTXCKs.6Um3g/Xh792cIXRNW"], ["created_at", "2015-03-18 22:22:19.999404"], ["updated_at", "2015-03-18 22:22:19.999404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3df5f84e-cdbd-11e4-a15c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3df4c7c6-cdbd-11e4-a870-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3df5f84e-cdbd-11e4-a15c-705681abff85"], ["organization_id", "3df4c7c6-cdbd-11e4-a870-705681abff85"], ["created_at", "2015-03-18 22:22:20.002595"], ["updated_at", "2015-03-18 22:22:20.002595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3df441b6-cdbd-11e4-9435-705681abff85' LIMIT 1 [["organization_id", "3df4c7c6-cdbd-11e4-a870-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$GKRr862ELX1FTM/Ok9ypC.M2ZhYNFzKQt6sLGeLpNbt0W80FdXJoK"], ["created_at", "2015-03-18 22:22:20.010404"], ["updated_at", "2015-03-18 22:22:20.010404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:20.013526"], ["updated_at", "2015-03-18 22:22:20.013526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3df7a702-cdbd-11e4-ae29-705681abff85' AND "clubhouse_memberships"."organization_id" = '3df81dcc-cdbd-11e4-a525-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3df7a702-cdbd-11e4-ae29-705681abff85"], ["organization_id", "3df81dcc-cdbd-11e4-a525-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:20.016776"], ["updated_at", "2015-03-18 22:22:20.016776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$kppFnQF8Bcgj5fRDgFNZRuFJy/lqcAp8ZpRaIljrNnkgbE/3dZC0q"], ["created_at", "2015-03-18 22:22:20.021699"], ["updated_at", "2015-03-18 22:22:20.021699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3df961e6-cdbd-11e4-a6c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3df81dcc-cdbd-11e4-a525-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3df961e6-cdbd-11e4-a6c4-705681abff85"], ["organization_id", "3df81dcc-cdbd-11e4-a525-705681abff85"], ["created_at", "2015-03-18 22:22:20.025083"], ["updated_at", "2015-03-18 22:22:20.025083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3df7a702-cdbd-11e4-ae29-705681abff85' LIMIT 1 [["organization_id", "3df81dcc-cdbd-11e4-a525-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$xFhEmnPncQlS35m2FH5zQuSDNdxiPuW22aba5VFYrAiD3C3bNTORi"], ["created_at", "2015-03-18 22:22:20.032153"], ["updated_at", "2015-03-18 22:22:20.032153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:20.035817"], ["updated_at", "2015-03-18 22:22:20.035817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3dfafa38-cdbd-11e4-9802-705681abff85' AND "clubhouse_memberships"."organization_id" = '3dfb88d6-cdbd-11e4-837b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3dfafa38-cdbd-11e4-9802-705681abff85"], ["organization_id", "3dfb88d6-cdbd-11e4-837b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:20.039258"], ["updated_at", "2015-03-18 22:22:20.039258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$JSp19.aLdC3tYOlxMzYDHue8O6tPv/WpDATmcbLTpd86mVjaXLZdW"], ["created_at", "2015-03-18 22:22:20.044495"], ["updated_at", "2015-03-18 22:22:20.044495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3dfcee74-cdbd-11e4-bfff-705681abff85' AND "clubhouse_memberships"."organization_id" = '3dfb88d6-cdbd-11e4-837b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3dfcee74-cdbd-11e4-bfff-705681abff85"], ["organization_id", "3dfb88d6-cdbd-11e4-837b-705681abff85"], ["created_at", "2015-03-18 22:22:20.048659"], ["updated_at", "2015-03-18 22:22:20.048659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3dfafa38-cdbd-11e4-9802-705681abff85' LIMIT 1 [["organization_id", "3dfb88d6-cdbd-11e4-837b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$PO0rnFlNefrCl8oSDai3mu.sfUBByfYklMyLMXV6Aml3va5FANhxG"], ["created_at", "2015-03-18 22:22:20.057072"], ["updated_at", "2015-03-18 22:22:20.057072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:20.060457"], ["updated_at", "2015-03-18 22:22:20.060457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3dfecbcc-cdbd-11e4-9649-705681abff85' AND "clubhouse_memberships"."organization_id" = '3dff4886-cdbd-11e4-9c6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3dfecbcc-cdbd-11e4-9649-705681abff85"], ["organization_id", "3dff4886-cdbd-11e4-9c6f-705681abff85"], ["created_at", "2015-03-18 22:22:20.063685"], ["updated_at", "2015-03-18 22:22:20.063685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3dfecbcc-cdbd-11e4-9649-705681abff85' LIMIT 1 [["organization_id", "3dff4886-cdbd-11e4-9c6f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$ZMjl/LV1hv2/XiOCCDWCm.qzNmHonaAXvg1P0CTYGgeIVdH7uJyKy"], ["created_at", "2015-03-18 22:22:20.070685"], ["updated_at", "2015-03-18 22:22:20.070685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:20.073769"], ["updated_at", "2015-03-18 22:22:20.073769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3e00d8d6-cdbd-11e4-a872-705681abff85' AND "clubhouse_memberships"."organization_id" = '3e014e7e-cdbd-11e4-8c40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3e00d8d6-cdbd-11e4-a872-705681abff85"], ["organization_id", "3e014e7e-cdbd-11e4-8c40-705681abff85"], ["created_at", "2015-03-18 22:22:20.076829"], ["updated_at", "2015-03-18 22:22:20.076829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3e00d8d6-cdbd-11e4-a872-705681abff85' LIMIT 1 [["organization_id", "3e014e7e-cdbd-11e4-8c40-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$GPOZG.IpjfkA7T1RDyGtPu9mUVGqTP6RfUk2DTapcZ1UevCRVo4NC"], ["created_at", "2015-03-18 22:22:20.083554"], ["updated_at", "2015-03-18 22:22:20.083554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:20.086644"], ["updated_at", "2015-03-18 22:22:20.086644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3e02cf1a-cdbd-11e4-a170-705681abff85' AND "clubhouse_memberships"."organization_id" = '3e0347d8-cdbd-11e4-9ed3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3e02cf1a-cdbd-11e4-a170-705681abff85"], ["organization_id", "3e0347d8-cdbd-11e4-9ed3-705681abff85"], ["created_at", "2015-03-18 22:22:20.090373"], ["updated_at", "2015-03-18 22:22:20.090373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3e02cf1a-cdbd-11e4-a170-705681abff85' LIMIT 1 [["organization_id", "3e0347d8-cdbd-11e4-9ed3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$3Mc8.FLONWcv5zZTp7JDmugFadaf5i4QiYJKuDIkoguvYCSU9i8r."], ["created_at", "2015-03-18 22:22:20.097197"], ["updated_at", "2015-03-18 22:22:20.097197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:20.100299"], ["updated_at", "2015-03-18 22:22:20.100299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3e04e4bc-cdbd-11e4-bc8c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3e055ba4-cdbd-11e4-aa97-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3e04e4bc-cdbd-11e4-bc8c-705681abff85"], ["organization_id", "3e055ba4-cdbd-11e4-aa97-705681abff85"], ["created_at", "2015-03-18 22:22:20.103474"], ["updated_at", "2015-03-18 22:22:20.103474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3e04e4bc-cdbd-11e4-bc8c-705681abff85' LIMIT 1 [["organization_id", "3e055ba4-cdbd-11e4-aa97-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Uhm9vmgM0DtuL44w/EiIi.tcFriQ1CN.RHndeqQh96UyQ7JfeAamS"], ["created_at", "2015-03-18 22:22:26.250928"], ["updated_at", "2015-03-18 22:22:26.250928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.261468"], ["updated_at", "2015-03-18 22:22:26.261468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41b014ec-cdbd-11e4-8731-705681abff85' AND "clubhouse_memberships"."organization_id" = '41b19c18-cdbd-11e4-b35b-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41b014ec-cdbd-11e4-8731-705681abff85"], ["organization_id", "41b19c18-cdbd-11e4-b35b-705681abff85"], ["created_at", "2015-03-18 22:22:26.309652"], ["updated_at", "2015-03-18 22:22:26.309652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '41b014ec-cdbd-11e4-8731-705681abff85' LIMIT 1 [["organization_id", "41b19c18-cdbd-11e4-b35b-705681abff85"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$/nRwGXQyBSl6/lGdoUSBaueDcJziMnAKOiGFEOwrI76hw.ImpYfQm"], ["created_at", "2015-03-18 22:22:26.357181"], ["updated_at", "2015-03-18 22:22:26.357181"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.366422"], ["updated_at", "2015-03-18 22:22:26.366422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41c06388-cdbd-11e4-a12e-705681abff85' AND "clubhouse_memberships"."organization_id" = '41c19e74-cdbd-11e4-8edd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41c06388-cdbd-11e4-a12e-705681abff85"], ["organization_id", "41c19e74-cdbd-11e4-8edd-705681abff85"], ["created_at", "2015-03-18 22:22:26.371381"], ["updated_at", "2015-03-18 22:22:26.371381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '41c06388-cdbd-11e4-a12e-705681abff85' LIMIT 1 [["organization_id", "41c19e74-cdbd-11e4-8edd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$mNmz7lhfhy90WfDdoxFkyeg2Ck3WIr6QCx./zi3CoHYR5ZdLsuXKi"], ["created_at", "2015-03-18 22:22:26.379988"], ["updated_at", "2015-03-18 22:22:26.379988"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.386576"], ["updated_at", "2015-03-18 22:22:26.386576"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (4.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41c3ac46-cdbd-11e4-9936-705681abff85' AND "clubhouse_memberships"."organization_id" = '41c4bd66-cdbd-11e4-856b-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41c3ac46-cdbd-11e4-9936-705681abff85"], ["organization_id", "41c4bd66-cdbd-11e4-856b-705681abff85"], ["created_at", "2015-03-18 22:22:26.399269"], ["updated_at", "2015-03-18 22:22:26.399269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '41c3ac46-cdbd-11e4-9936-705681abff85' LIMIT 1 [["organization_id", "41c4bd66-cdbd-11e4-856b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$JGKBextBGGrP2LrBoGvQg.net5Qu9xxKBI.MQKOPl4XeY3A8S5uiW"], ["created_at", "2015-03-18 22:22:26.411780"], ["updated_at", "2015-03-18 22:22:26.411780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.415942"], ["updated_at", "2015-03-18 22:22:26.415942"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41c8764a-cdbd-11e4-8af6-705681abff85' AND "clubhouse_memberships"."organization_id" = '41c914b0-cdbd-11e4-95f9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41c8764a-cdbd-11e4-8af6-705681abff85"], ["organization_id", "41c914b0-cdbd-11e4-95f9-705681abff85"], ["created_at", "2015-03-18 22:22:26.423457"], ["updated_at", "2015-03-18 22:22:26.423457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '41c8764a-cdbd-11e4-8af6-705681abff85' LIMIT 1 [["organization_id", "41c914b0-cdbd-11e4-95f9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$CnN6m3QlcIYKsMQB8EcxoOyR2W1tbgdKNDnnRvDslcCGMFC8U25Ha"], ["created_at", "2015-03-18 22:22:26.433433"], ["updated_at", "2015-03-18 22:22:26.433433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$6Z/oVXumHHrecpDR.QOtn.T4nHjXkPffKAHcWurjmqo.fIPJrZJ2."], ["created_at", "2015-03-18 22:22:26.439067"], ["updated_at", "2015-03-18 22:22:26.439067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.444013"], ["updated_at", "2015-03-18 22:22:26.444013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41cc9964-cdbd-11e4-b4cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '41cd66fa-cdbd-11e4-91a2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41cc9964-cdbd-11e4-b4cd-705681abff85"], ["organization_id", "41cd66fa-cdbd-11e4-91a2-705681abff85"], ["created_at", "2015-03-18 22:22:26.448431"], ["updated_at", "2015-03-18 22:22:26.448431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '41cbc002-cdbd-11e4-aa48-705681abff85' LIMIT 1 [["organization_id", "41cd66fa-cdbd-11e4-91a2-705681abff85"]]  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$d4LprmRHApF/ADMBBG7BkOyB7tbliqK9xTdWZ8kMRpsMmGuWoEzK6"], ["created_at", "2015-03-18 22:22:26.482356"], ["updated_at", "2015-03-18 22:22:26.482356"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$JRXrsIJs69KJqNjIGXN4ruv4WwvZ5I8GB0dbF//QcN7MXzx9jitEO"], ["created_at", "2015-03-18 22:22:26.498071"], ["updated_at", "2015-03-18 22:22:26.498071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.502388"], ["updated_at", "2015-03-18 22:22:26.502388"]]  (2.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41d5a3b0-cdbd-11e4-b712-705681abff85' AND "clubhouse_memberships"."organization_id" = '41d64f4a-cdbd-11e4-a6d2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41d5a3b0-cdbd-11e4-b712-705681abff85"], ["organization_id", "41d64f4a-cdbd-11e4-a6d2-705681abff85"], ["created_at", "2015-03-18 22:22:26.513725"], ["updated_at", "2015-03-18 22:22:26.513725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '41d3702c-cdbd-11e4-8a95-705681abff85' LIMIT 1 [["organization_id", "41d64f4a-cdbd-11e4-a6d2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$zLkRZa9nyYVWCqwE7JlYBOeAVS2AJ9RARsEpI/FyA57qf3OI8HNAm"], ["created_at", "2015-03-18 22:22:26.531514"], ["updated_at", "2015-03-18 22:22:26.531514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (3.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$TSK.eyiUIPLe2eXzbn1XR.G8w62WGTHpSZavSaHY8eu7EZxMxAvYq"], ["created_at", "2015-03-18 22:22:26.540804"], ["updated_at", "2015-03-18 22:22:26.540804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.547170"], ["updated_at", "2015-03-18 22:22:26.547170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41dc4cc4-cdbd-11e4-abfd-705681abff85' AND "clubhouse_memberships"."organization_id" = '41dd1ff0-cdbd-11e4-a455-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41dc4cc4-cdbd-11e4-abfd-705681abff85"], ["organization_id", "41dd1ff0-cdbd-11e4-a455-705681abff85"], ["created_at", "2015-03-18 22:22:26.558911"], ["updated_at", "2015-03-18 22:22:26.558911"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '41dac782-cdbd-11e4-937e-705681abff85' LIMIT 1 [["organization_id", "41dd1ff0-cdbd-11e4-a455-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (2.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$/rDUzQTQ/HOfcTRoyDiLtetE8mFzTN5MP9Up7I4OyDfdo81Wnxxay"], ["created_at", "2015-03-18 22:22:26.572895"], ["updated_at", "2015-03-18 22:22:26.572895"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$PrNQNF/Zeb1GbNwUGXJb6unR8QmFc2jkeD6xCanyRNxkAM76.aonC"], ["created_at", "2015-03-18 22:22:26.587552"], ["updated_at", "2015-03-18 22:22:26.587552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.592992"], ["updated_at", "2015-03-18 22:22:26.592992"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41e35140-cdbd-11e4-a9c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '41e46e90-cdbd-11e4-a4d4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41e35140-cdbd-11e4-a9c3-705681abff85"], ["organization_id", "41e46e90-cdbd-11e4-a4d4-705681abff85"], ["created_at", "2015-03-18 22:22:26.600339"], ["updated_at", "2015-03-18 22:22:26.600339"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '41e1138a-cdbd-11e4-a642-705681abff85' LIMIT 1 [["organization_id", "41e46e90-cdbd-11e4-a4d4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$hvDJ7hVhc.prLX0YF2fibuxuhwnqK0fQb5fxTZKEiiIYp7eulJgJy"], ["created_at", "2015-03-18 22:22:26.611511"], ["updated_at", "2015-03-18 22:22:26.611511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.616361"], ["updated_at", "2015-03-18 22:22:26.616361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41e6ec6a-cdbd-11e4-b78c-705681abff85' AND "clubhouse_memberships"."organization_id" = '41e7ac5e-cdbd-11e4-bc58-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "41e6ec6a-cdbd-11e4-b78c-705681abff85"], ["organization_id", "41e7ac5e-cdbd-11e4-bc58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:26.620921"], ["updated_at", "2015-03-18 22:22:26.620921"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$OzPgodiSRefZOkxk5Y6vjOsrCT0/sLzze/pvZXoq03uR7EgjrVica"], ["created_at", "2015-03-18 22:22:26.628636"], ["updated_at", "2015-03-18 22:22:26.628636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41e98fe2-cdbd-11e4-9fc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '41e7ac5e-cdbd-11e4-bc58-705681abff85') LIMIT 1 SQL (3.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41e98fe2-cdbd-11e4-9fc3-705681abff85"], ["organization_id", "41e7ac5e-cdbd-11e4-bc58-705681abff85"], ["created_at", "2015-03-18 22:22:26.638663"], ["updated_at", "2015-03-18 22:22:26.638663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '41e6ec6a-cdbd-11e4-b78c-705681abff85' LIMIT 1 [["organization_id", "41e7ac5e-cdbd-11e4-bc58-705681abff85"]]  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$0qsWJOsPtBL/q4pJMxPYZe6hO1VLlVoE2NlU9os0EK0tg8I2eh2cC"], ["created_at", "2015-03-18 22:22:26.658750"], ["updated_at", "2015-03-18 22:22:26.658750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.664838"], ["updated_at", "2015-03-18 22:22:26.664838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41ee235e-cdbd-11e4-9b86-705681abff85' AND "clubhouse_memberships"."organization_id" = '41ef1002-cdbd-11e4-8186-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "41ee235e-cdbd-11e4-9b86-705681abff85"], ["organization_id", "41ef1002-cdbd-11e4-8186-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:26.670164"], ["updated_at", "2015-03-18 22:22:26.670164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$tDmnu3Z.LGmd./PXB1JhoOBci2NGLu8W7ZOTzhdpZwr049wL44Ka."], ["created_at", "2015-03-18 22:22:26.677060"], ["updated_at", "2015-03-18 22:22:26.677060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41f0fa16-cdbd-11e4-bf4f-705681abff85' AND "clubhouse_memberships"."organization_id" = '41ef1002-cdbd-11e4-8186-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41f0fa16-cdbd-11e4-bf4f-705681abff85"], ["organization_id", "41ef1002-cdbd-11e4-8186-705681abff85"], ["created_at", "2015-03-18 22:22:26.683943"], ["updated_at", "2015-03-18 22:22:26.683943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '41ee235e-cdbd-11e4-9b86-705681abff85' LIMIT 1 [["organization_id", "41ef1002-cdbd-11e4-8186-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$Bs2eTY/ugdAhVKArMMxsFuJfqEjqr8rOHCAwDh49eqGJsNyLsU6jK"], ["created_at", "2015-03-18 22:22:26.693631"], ["updated_at", "2015-03-18 22:22:26.693631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.698289"], ["updated_at", "2015-03-18 22:22:26.698289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41f37a16-cdbd-11e4-a85d-705681abff85' AND "clubhouse_memberships"."organization_id" = '41f42efc-cdbd-11e4-bfbd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "41f37a16-cdbd-11e4-a85d-705681abff85"], ["organization_id", "41f42efc-cdbd-11e4-bfbd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:26.702358"], ["updated_at", "2015-03-18 22:22:26.702358"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$c3MKmZu3cesMUio06uVcbOdLHBTTBpRZqzrFeV528ElAPJHS8.D7G"], ["created_at", "2015-03-18 22:22:26.709051"], ["updated_at", "2015-03-18 22:22:26.709051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41f5dc7a-cdbd-11e4-b46b-705681abff85' AND "clubhouse_memberships"."organization_id" = '41f42efc-cdbd-11e4-bfbd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41f5dc7a-cdbd-11e4-b46b-705681abff85"], ["organization_id", "41f42efc-cdbd-11e4-bfbd-705681abff85"], ["created_at", "2015-03-18 22:22:26.713981"], ["updated_at", "2015-03-18 22:22:26.713981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '41f37a16-cdbd-11e4-a85d-705681abff85' LIMIT 1 [["organization_id", "41f42efc-cdbd-11e4-bfbd-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$GD8Bg2pu50rkmqdJmzeXKOatkdUBbctKbIXUlywPmgVqlQAxBc8zq"], ["created_at", "2015-03-18 22:22:26.726531"], ["updated_at", "2015-03-18 22:22:26.726531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.731816"], ["updated_at", "2015-03-18 22:22:26.731816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (89.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41f87bf6-cdbd-11e4-990a-705681abff85' AND "clubhouse_memberships"."organization_id" = '41f9493c-cdbd-11e4-b133-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "41f87bf6-cdbd-11e4-990a-705681abff85"], ["organization_id", "41f9493c-cdbd-11e4-b133-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:26.832414"], ["updated_at", "2015-03-18 22:22:26.832414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (1.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$DHG7md8.zurIN1U2kKkzgOHagonADEC12e6c14vKeuhNbgEvK4TPW"], ["created_at", "2015-03-18 22:22:26.840609"], ["updated_at", "2015-03-18 22:22:26.840609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4209e152-cdbd-11e4-9cc7-705681abff85' AND "clubhouse_memberships"."organization_id" = '41f9493c-cdbd-11e4-b133-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4209e152-cdbd-11e4-9cc7-705681abff85"], ["organization_id", "41f9493c-cdbd-11e4-b133-705681abff85"], ["created_at", "2015-03-18 22:22:26.846353"], ["updated_at", "2015-03-18 22:22:26.846353"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '41f87bf6-cdbd-11e4-990a-705681abff85' LIMIT 1 [["organization_id", "41f9493c-cdbd-11e4-b133-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$FxxVfcLyEZDTI6xnGNQJpuOnA8ITl2yvGGVnUDcSpM6KHFSf7mGVe"], ["created_at", "2015-03-18 22:22:26.855475"], ["updated_at", "2015-03-18 22:22:26.855475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.859039"], ["updated_at", "2015-03-18 22:22:26.859039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '420c25f2-cdbd-11e4-9dbb-705681abff85' AND "clubhouse_memberships"."organization_id" = '420cab4e-cdbd-11e4-9f1b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "420c25f2-cdbd-11e4-9dbb-705681abff85"], ["organization_id", "420cab4e-cdbd-11e4-9f1b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:26.862482"], ["updated_at", "2015-03-18 22:22:26.862482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '420c25f2-cdbd-11e4-9dbb-705681abff85' LIMIT 1 [["organization_id", "420cab4e-cdbd-11e4-9f1b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$vK1ChOrfHHY8kQYXl96zO./toHYLn96FkelDRrtH7jMLjhsMth3Em"], ["created_at", "2015-03-18 22:22:26.869796"], ["updated_at", "2015-03-18 22:22:26.869796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.873053"], ["updated_at", "2015-03-18 22:22:26.873053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '420e5110-cdbd-11e4-ab32-705681abff85' AND "clubhouse_memberships"."organization_id" = '420ece60-cdbd-11e4-bc11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "420e5110-cdbd-11e4-ab32-705681abff85"], ["organization_id", "420ece60-cdbd-11e4-bc11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:26.876439"], ["updated_at", "2015-03-18 22:22:26.876439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '420e5110-cdbd-11e4-ab32-705681abff85' LIMIT 1 [["organization_id", "420ece60-cdbd-11e4-bc11-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$l.dfp3KFlLnh4vbhxhqOFucvPiI3WqymUqL3PGkrae4jhPvoFPdAa"], ["created_at", "2015-03-18 22:22:26.883407"], ["updated_at", "2015-03-18 22:22:26.883407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.887187"], ["updated_at", "2015-03-18 22:22:26.887187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42106374-cdbd-11e4-bc47-705681abff85' AND "clubhouse_memberships"."organization_id" = '4210fbb8-cdbd-11e4-b7ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "42106374-cdbd-11e4-bc47-705681abff85"], ["organization_id", "4210fbb8-cdbd-11e4-b7ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:26.890883"], ["updated_at", "2015-03-18 22:22:26.890883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '42106374-cdbd-11e4-bc47-705681abff85' LIMIT 1 [["organization_id", "4210fbb8-cdbd-11e4-b7ab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$pKTjjfEA0T.TLQU9RCnIres29xQsRUYPUK1MLn8DKkhhGewQlAwTu"], ["created_at", "2015-03-18 22:22:26.897838"], ["updated_at", "2015-03-18 22:22:26.897838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.901061"], ["updated_at", "2015-03-18 22:22:26.901061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '421296d0-cdbd-11e4-868b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4213148e-cdbd-11e4-a08e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "421296d0-cdbd-11e4-868b-705681abff85"], ["organization_id", "4213148e-cdbd-11e4-a08e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:26.904486"], ["updated_at", "2015-03-18 22:22:26.904486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '421296d0-cdbd-11e4-868b-705681abff85' LIMIT 1 [["organization_id", "4213148e-cdbd-11e4-a08e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$.yf2UZPmsFjqABXbef0t8O.gt11NGji9dF/6J8zc3CSIj4lRo/UWG"], ["created_at", "2015-03-18 22:22:26.911385"], ["updated_at", "2015-03-18 22:22:26.911385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.914744"], ["updated_at", "2015-03-18 22:22:26.914744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4214aa88-cdbd-11e4-9673-705681abff85' AND "clubhouse_memberships"."organization_id" = '42152e54-cdbd-11e4-a1e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4214aa88-cdbd-11e4-9673-705681abff85"], ["organization_id", "42152e54-cdbd-11e4-a1e0-705681abff85"], ["created_at", "2015-03-18 22:22:26.918400"], ["updated_at", "2015-03-18 22:22:26.918400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4214aa88-cdbd-11e4-9673-705681abff85' LIMIT 1 [["organization_id", "42152e54-cdbd-11e4-a1e0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$XlAjZxbVDFNjLK2Hf5QBLel2cvBOfG/ICcLL.KpZhzGLjhULgfc0q"], ["created_at", "2015-03-18 22:22:26.925511"], ["updated_at", "2015-03-18 22:22:26.925511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.928804"], ["updated_at", "2015-03-18 22:22:26.928804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4216d042-cdbd-11e4-af18-705681abff85' AND "clubhouse_memberships"."organization_id" = '42175706-cdbd-11e4-b892-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4216d042-cdbd-11e4-af18-705681abff85"], ["organization_id", "42175706-cdbd-11e4-b892-705681abff85"], ["created_at", "2015-03-18 22:22:26.932921"], ["updated_at", "2015-03-18 22:22:26.932921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4216d042-cdbd-11e4-af18-705681abff85' LIMIT 1 [["organization_id", "42175706-cdbd-11e4-b892-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$hVe025yh2NirQcKF23sI6OALfgnKPphcbAOLZ5yWTs5Qe/46H3plq"], ["created_at", "2015-03-18 22:22:26.940289"], ["updated_at", "2015-03-18 22:22:26.940289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.943621"], ["updated_at", "2015-03-18 22:22:26.943621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4219124e-cdbd-11e4-a342-705681abff85' AND "clubhouse_memberships"."organization_id" = '421993d6-cdbd-11e4-8656-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4219124e-cdbd-11e4-a342-705681abff85"], ["organization_id", "421993d6-cdbd-11e4-8656-705681abff85"], ["created_at", "2015-03-18 22:22:26.946970"], ["updated_at", "2015-03-18 22:22:26.946970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$.5ITUEh8.2xU5FrB.S2/tO.IoqgTvDkl1W7O/v5DE1fnB1DqXiSw2"], ["created_at", "2015-03-18 22:22:26.952802"], ["updated_at", "2015-03-18 22:22:26.952802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.956541"], ["updated_at", "2015-03-18 22:22:26.956541"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '421afcd0-cdbd-11e4-a46d-705681abff85' AND "clubhouse_memberships"."organization_id" = '421b8d62-cdbd-11e4-884b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "421afcd0-cdbd-11e4-a46d-705681abff85"], ["organization_id", "421b8d62-cdbd-11e4-884b-705681abff85"], ["created_at", "2015-03-18 22:22:26.960568"], ["updated_at", "2015-03-18 22:22:26.960568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '421afcd0-cdbd-11e4-a46d-705681abff85' LIMIT 1 [["organization_id", "421b8d62-cdbd-11e4-884b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$9VOlHQC5s.lIfof926VxSOJ7me.j7jsC7bhP9KUWA/qCDyR2YPyge"], ["created_at", "2015-03-18 22:22:26.976271"], ["updated_at", "2015-03-18 22:22:26.976271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.979376"], ["updated_at", "2015-03-18 22:22:26.979376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '421e8ec2-cdbd-11e4-955d-705681abff85' AND "clubhouse_memberships"."organization_id" = '421f051e-cdbd-11e4-9132-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "421e8ec2-cdbd-11e4-955d-705681abff85"], ["organization_id", "421f051e-cdbd-11e4-9132-705681abff85"], ["created_at", "2015-03-18 22:22:26.982410"], ["updated_at", "2015-03-18 22:22:26.982410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$.htljQ7vam5bV5W/HlDWe.cOolxGOKnwiPe8Z97gmHGqfRmCG8CGe"], ["created_at", "2015-03-18 22:22:26.988868"], ["updated_at", "2015-03-18 22:22:26.988868"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:26.995729"], ["updated_at", "2015-03-18 22:22:26.995729"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '42207e8a-cdbd-11e4-b395-705681abff85' LIMIT 1 [["organization_id", "4221adaa-cdbd-11e4-b304-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$Q1XnPkUH7A/Kowe8AIqVsuiwAwCWoCUMoSnrKbZyZemwLGfjXp1Lu"], ["created_at", "2015-03-18 22:22:27.008128"], ["updated_at", "2015-03-18 22:22:27.008128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.011725"], ["updated_at", "2015-03-18 22:22:27.011725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '42237572-cdbd-11e4-b582-705681abff85' LIMIT 1 [["organization_id", "4223f876-cdbd-11e4-a255-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$KU3UX8giVpWK7P0SCXwqtuSEyasC2NchmyVSyztByxY85DXuxHzr6"], ["created_at", "2015-03-18 22:22:27.018844"], ["updated_at", "2015-03-18 22:22:27.018844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.022113"], ["updated_at", "2015-03-18 22:22:27.022113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$K6aPV4f1OvCewqQLlvaUje3lfmKeGKuiOv1tpbpq/1VhTssxBBjQq"], ["created_at", "2015-03-18 22:22:27.027875"], ["updated_at", "2015-03-18 22:22:27.027875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.030899"], ["updated_at", "2015-03-18 22:22:27.030899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '42266da4-cdbd-11e4-b4ad-705681abff85' LIMIT 1 [["organization_id", "4226e202-cdbd-11e4-8d2f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$3kiyF7OMcHoCk.e4Q9PDgufDxVwF9LACoC5xZPxPK4TFAGQVRCqoK"], ["created_at", "2015-03-18 22:22:27.037910"], ["updated_at", "2015-03-18 22:22:27.037910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.041145"], ["updated_at", "2015-03-18 22:22:27.041145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$ayWF8Y2mD4Q2CgO.wvEHzOiLcfUTVyeHao9s6A7Gg/AbEhYsgma/G"], ["created_at", "2015-03-18 22:22:27.046955"], ["updated_at", "2015-03-18 22:22:27.046955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.050431"], ["updated_at", "2015-03-18 22:22:27.050431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42295762-cdbd-11e4-861c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4229e07e-cdbd-11e4-b9a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "42295762-cdbd-11e4-861c-705681abff85"], ["organization_id", "4229e07e-cdbd-11e4-b9a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:27.054215"], ["updated_at", "2015-03-18 22:22:27.054215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '42295762-cdbd-11e4-861c-705681abff85' LIMIT 1 [["organization_id", "4229e07e-cdbd-11e4-b9a9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$NZDn8PYEACzGvgxjsIy9QOV5VRQPj6w55WAyxW7GJyPLGqrBtGhAS"], ["created_at", "2015-03-18 22:22:27.061496"], ["updated_at", "2015-03-18 22:22:27.061496"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.064987"], ["updated_at", "2015-03-18 22:22:27.064987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '422b8f96-cdbd-11e4-9878-705681abff85' AND "clubhouse_memberships"."organization_id" = '422c16fa-cdbd-11e4-b30c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "422b8f96-cdbd-11e4-9878-705681abff85"], ["organization_id", "422c16fa-cdbd-11e4-b30c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:27.068232"], ["updated_at", "2015-03-18 22:22:27.068232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '422b8f96-cdbd-11e4-9878-705681abff85' LIMIT 1 [["organization_id", "422c16fa-cdbd-11e4-b30c-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$gXRg6ewhYHeclP7EgVjJAeJ/5oUg9qn9AwuVWHdSuUTHNOlRWph6e"], ["created_at", "2015-03-18 22:22:27.076127"], ["updated_at", "2015-03-18 22:22:27.076127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.079526"], ["updated_at", "2015-03-18 22:22:27.079526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '422dcffe-cdbd-11e4-a9f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '422e5078-cdbd-11e4-b4a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "422dcffe-cdbd-11e4-a9f4-705681abff85"], ["organization_id", "422e5078-cdbd-11e4-b4a3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:27.083249"], ["updated_at", "2015-03-18 22:22:27.083249"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$WzkpH62Os7YvdjgzPyZhneGk3lg3jlPnVtrLcOFoOHgYuDjPDlP4u"], ["created_at", "2015-03-18 22:22:27.091155"], ["updated_at", "2015-03-18 22:22:27.091155"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.095213"], ["updated_at", "2015-03-18 22:22:27.095213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42301976-cdbd-11e4-a3c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '4230b606-cdbd-11e4-9314-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "42301976-cdbd-11e4-a3c8-705681abff85"], ["organization_id", "4230b606-cdbd-11e4-9314-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:27.098564"], ["updated_at", "2015-03-18 22:22:27.098564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '42301976-cdbd-11e4-a3c8-705681abff85' LIMIT 1 [["organization_id", "4230b606-cdbd-11e4-9314-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$YDi9a0Wfp2ZQjnH7l1nQvOxy3Kp28bPpOA4DgzWsfYqTrpqqvNgh6"], ["created_at", "2015-03-18 22:22:27.105840"], ["updated_at", "2015-03-18 22:22:27.105840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.109461"], ["updated_at", "2015-03-18 22:22:27.109461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42325b0a-cdbd-11e4-b1da-705681abff85' AND "clubhouse_memberships"."organization_id" = '4232e002-cdbd-11e4-83e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "42325b0a-cdbd-11e4-b1da-705681abff85"], ["organization_id", "4232e002-cdbd-11e4-83e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:27.112750"], ["updated_at", "2015-03-18 22:22:27.112750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (4.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$oC93qr3smeYEcp8L4yPQY.gKHXhrijlFw.4yhaeLpzlJ175VQ1AMS"], ["created_at", "2015-03-18 22:22:27.119149"], ["updated_at", "2015-03-18 22:22:27.119149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.126790"], ["updated_at", "2015-03-18 22:22:27.126790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42345c48-cdbd-11e4-999a-705681abff85' AND "clubhouse_memberships"."organization_id" = '42358898-cdbd-11e4-82d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "42345c48-cdbd-11e4-999a-705681abff85"], ["organization_id", "42358898-cdbd-11e4-82d3-705681abff85"], ["created_at", "2015-03-18 22:22:27.132369"], ["updated_at", "2015-03-18 22:22:27.132369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '42358898-cdbd-11e4-82d3-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "42358898-cdbd-11e4-82d3-705681abff85"], ["created_at", "2015-03-18 22:22:27.143607"], ["updated_at", "2015-03-18 22:22:27.143607"], ["token", "cM4gIDQxvEYIIXZgwItjhin2dCeYdDacuuFifYeNAeM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '42345c48-cdbd-11e4-999a-705681abff85' LIMIT 1 [["organization_id", "42358898-cdbd-11e4-82d3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$U/b9VFMZPw/lFGTYDKwCKe9t6S79bQhkhZ8Y7jBjcZaiC.I3d66o2"], ["created_at", "2015-03-18 22:22:27.151604"], ["updated_at", "2015-03-18 22:22:27.151604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.154701"], ["updated_at", "2015-03-18 22:22:27.154701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42395040-cdbd-11e4-ac50-705681abff85' AND "clubhouse_memberships"."organization_id" = '4239c5fc-cdbd-11e4-8a03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "42395040-cdbd-11e4-ac50-705681abff85"], ["organization_id", "4239c5fc-cdbd-11e4-8a03-705681abff85"], ["created_at", "2015-03-18 22:22:27.157985"], ["updated_at", "2015-03-18 22:22:27.157985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '4239c5fc-cdbd-11e4-8a03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "4239c5fc-cdbd-11e4-8a03-705681abff85"], ["created_at", "2015-03-18 22:22:27.161366"], ["updated_at", "2015-03-18 22:22:27.161366"], ["token", "crOCFvnfz8OYC_OTDI5H5Jqkq4kVEtSwhtuET0qJJ0E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '42395040-cdbd-11e4-ac50-705681abff85' LIMIT 1 [["organization_id", "4239c5fc-cdbd-11e4-8a03-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$HbiKFZl.vaO6RAuQf.8fN.PQvTanzK2NTEAL.P7jEW2KXjBsi5cP2"], ["created_at", "2015-03-18 22:22:27.169101"], ["updated_at", "2015-03-18 22:22:27.169101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.172489"], ["updated_at", "2015-03-18 22:22:27.172489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '423bfd72-cdbd-11e4-85aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '423c8242-cdbd-11e4-bc84-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "423bfd72-cdbd-11e4-85aa-705681abff85"], ["organization_id", "423c8242-cdbd-11e4-bc84-705681abff85"], ["created_at", "2015-03-18 22:22:27.176173"], ["updated_at", "2015-03-18 22:22:27.176173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '423c8242-cdbd-11e4-bc84-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "423c8242-cdbd-11e4-bc84-705681abff85"], ["created_at", "2015-03-18 22:22:27.179719"], ["updated_at", "2015-03-18 22:22:27.179719"], ["token", "DunpvabdIuY7klWRmyQUePFr-uZ6B5ysP8IvD1HJAcw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '423bfd72-cdbd-11e4-85aa-705681abff85' LIMIT 1 [["organization_id", "423c8242-cdbd-11e4-bc84-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$A1sK/m.4mNTvFc7pzo6A2O7bvioSvBXTWzHrmTHXRpUy4Qrw2XVZi"], ["created_at", "2015-03-18 22:22:27.188140"], ["updated_at", "2015-03-18 22:22:27.188140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.191513"], ["updated_at", "2015-03-18 22:22:27.191513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '423ee3ac-cdbd-11e4-891b-705681abff85' AND "clubhouse_memberships"."organization_id" = '423f64f8-cdbd-11e4-bde7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "423ee3ac-cdbd-11e4-891b-705681abff85"], ["organization_id", "423f64f8-cdbd-11e4-bde7-705681abff85"], ["created_at", "2015-03-18 22:22:27.194757"], ["updated_at", "2015-03-18 22:22:27.194757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '423f64f8-cdbd-11e4-bde7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "423f64f8-cdbd-11e4-bde7-705681abff85"], ["created_at", "2015-03-18 22:22:27.198386"], ["updated_at", "2015-03-18 22:22:27.198386"], ["token", "brTqADlERYVcfOK73-mzk6TjACkFj0p2VNugULxqP4U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '423ee3ac-cdbd-11e4-891b-705681abff85' LIMIT 1 [["organization_id", "423f64f8-cdbd-11e4-bde7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$U23pU8GlexOhe8CJ52SHbO/feySWpnBpi6blOQC3FUYJCOV5hg6IO"], ["created_at", "2015-03-18 22:22:27.206786"], ["updated_at", "2015-03-18 22:22:27.206786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.210189"], ["updated_at", "2015-03-18 22:22:27.210189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '42424010-cdbd-11e4-9155-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "42424010-cdbd-11e4-9155-705681abff85"], ["created_at", "2015-03-18 22:22:27.213729"], ["updated_at", "2015-03-18 22:22:27.213729"], ["token", "HWnRya05o4Xzmpgt7yTRZk6W27XWMen-xqiPYJewwrQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4241bbf4-cdbd-11e4-83f0-705681abff85' LIMIT 1 [["organization_id", "42424010-cdbd-11e4-9155-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$9SYiBiA7lLVNlW2avKDqfu6yq7IJZO9xVs2nDUpnKfMfA/44MwJve"], ["created_at", "2015-03-18 22:22:27.221615"], ["updated_at", "2015-03-18 22:22:27.221615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.226113"], ["updated_at", "2015-03-18 22:22:27.226113"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '4244bcf0-cdbd-11e4-8bf9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "4244bcf0-cdbd-11e4-8bf9-705681abff85"], ["created_at", "2015-03-18 22:22:27.230838"], ["updated_at", "2015-03-18 22:22:27.230838"], ["token", "f79iJgU8KDcFopF_cDkbyEcsfA6liPml6zvSDz1LNfI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4243fee6-cdbd-11e4-9396-705681abff85' LIMIT 1 [["organization_id", "4244bcf0-cdbd-11e4-8bf9-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$N7.ZF0X1is698CmZGU4I7uvbvSe4Flr8EYi.M2ZGkjuOdR3X/Dw.i"], ["created_at", "2015-03-18 22:22:27.238456"], ["updated_at", "2015-03-18 22:22:27.238456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.242014"], ["updated_at", "2015-03-18 22:22:27.242014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '42471ad6-cdbd-11e4-bcc8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "42471ad6-cdbd-11e4-bcc8-705681abff85"], ["created_at", "2015-03-18 22:22:27.245363"], ["updated_at", "2015-03-18 22:22:27.245363"], ["token", "LJbIk2kRoBoe9-Ir8yPJnJyZwrVgfWnEiNeyOSJyoFw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '424693e0-cdbd-11e4-901f-705681abff85' LIMIT 1 [["organization_id", "42471ad6-cdbd-11e4-bcc8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$rvX7To1FVGGb.ERAQRtl.eIZ9toY39iKK/4BvOGQs/drhIq6aQnG2"], ["created_at", "2015-03-18 22:22:27.252430"], ["updated_at", "2015-03-18 22:22:27.252430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.255557"], ["updated_at", "2015-03-18 22:22:27.255557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '42492aec-cdbd-11e4-8394-705681abff85') LIMIT 1 SQL (4.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "42492aec-cdbd-11e4-8394-705681abff85"], ["created_at", "2015-03-18 22:22:27.258883"], ["updated_at", "2015-03-18 22:22:27.258883"], ["token", "lFN7BSlWHAeK4UDf-EzwEOBhoNolitXGcr-j58E2vdQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4248b396-cdbd-11e4-a786-705681abff85' LIMIT 1 [["organization_id", "42492aec-cdbd-11e4-8394-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$fzqu8sjizoaWJ0A3r/dyEe1gOiQtqeNuFXGt6BJd4IjiGmyelHjii"], ["created_at", "2015-03-18 22:22:27.271336"], ["updated_at", "2015-03-18 22:22:27.271336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.275035"], ["updated_at", "2015-03-18 22:22:27.275035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '424b96ce-cdbd-11e4-8113-705681abff85' AND "clubhouse_memberships"."organization_id" = '424c2666-cdbd-11e4-9670-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "424b96ce-cdbd-11e4-8113-705681abff85"], ["organization_id", "424c2666-cdbd-11e4-9670-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:27.278440"], ["updated_at", "2015-03-18 22:22:27.278440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '424c2666-cdbd-11e4-9670-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "424c2666-cdbd-11e4-9670-705681abff85"], ["created_at", "2015-03-18 22:22:27.281902"], ["updated_at", "2015-03-18 22:22:27.281902"], ["token", "7badgUzDZwhf5oc4yHOCJeaxqu_uGKkNaPba8BaXsNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '424b96ce-cdbd-11e4-8113-705681abff85' LIMIT 1 [["organization_id", "424c2666-cdbd-11e4-9670-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$fcaqe5UjEwCUtRKeDGdzi.xxvpM1/4z3tjmlmEq39Q4GmvERJJuPO"], ["created_at", "2015-03-18 22:22:27.288969"], ["updated_at", "2015-03-18 22:22:27.288969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.292197"], ["updated_at", "2015-03-18 22:22:27.292197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '424e4766-cdbd-11e4-a6b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '424ec22c-cdbd-11e4-8457-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "424e4766-cdbd-11e4-a6b1-705681abff85"], ["organization_id", "424ec22c-cdbd-11e4-8457-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:27.295432"], ["updated_at", "2015-03-18 22:22:27.295432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '424ec22c-cdbd-11e4-8457-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "424ec22c-cdbd-11e4-8457-705681abff85"], ["created_at", "2015-03-18 22:22:27.298879"], ["updated_at", "2015-03-18 22:22:27.298879"], ["token", "566Mx4yJr-GbRHvgJA1BEAg1eO62dZZn3y8893OwDKc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '424e4766-cdbd-11e4-a6b1-705681abff85' LIMIT 1 [["organization_id", "424ec22c-cdbd-11e4-8457-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (3.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$0YbCts6..BAjvIgWy0s/xe/MCy46OOgk6Vzf9fL/0aPzmu2xj.aOO"], ["created_at", "2015-03-18 22:22:27.305966"], ["updated_at", "2015-03-18 22:22:27.305966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.313115"], ["updated_at", "2015-03-18 22:22:27.313115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4250df12-cdbd-11e4-861f-705681abff85' AND "clubhouse_memberships"."organization_id" = '4251f4ce-cdbd-11e4-b770-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4250df12-cdbd-11e4-861f-705681abff85"], ["organization_id", "4251f4ce-cdbd-11e4-b770-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:27.316445"], ["updated_at", "2015-03-18 22:22:27.316445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '4251f4ce-cdbd-11e4-b770-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "4251f4ce-cdbd-11e4-b770-705681abff85"], ["created_at", "2015-03-18 22:22:27.321118"], ["updated_at", "2015-03-18 22:22:27.321118"], ["token", "8UPh0528BcGwmGDEUlR_U85YxTe7PzdZ5j0-o1EP6jo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4250df12-cdbd-11e4-861f-705681abff85' LIMIT 1 [["organization_id", "4251f4ce-cdbd-11e4-b770-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$8iefOEETRaTzWnvl25rQcOOZhCGxmnLrPu19Lur.kq.AbRWSuo4KO"], ["created_at", "2015-03-18 22:22:27.329015"], ["updated_at", "2015-03-18 22:22:27.329015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:22:27.332186"], ["updated_at", "2015-03-18 22:22:27.332186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '425461dc-cdbd-11e4-9244-705681abff85' AND "clubhouse_memberships"."organization_id" = '4254db58-cdbd-11e4-85cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "425461dc-cdbd-11e4-9244-705681abff85"], ["organization_id", "4254db58-cdbd-11e4-85cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:22:27.335878"], ["updated_at", "2015-03-18 22:22:27.335878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '4254db58-cdbd-11e4-85cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "4254db58-cdbd-11e4-85cb-705681abff85"], ["created_at", "2015-03-18 22:22:27.339513"], ["updated_at", "2015-03-18 22:22:27.339513"], ["token", "u0LFlRr0aqSg3XdCDVdKwJx_3foiTI7lYT2SBs2jg0o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '425461dc-cdbd-11e4-9244-705681abff85' LIMIT 1 [["organization_id", "4254db58-cdbd-11e4-85cb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (42.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$1/YQbDW8TTpnoAqYdAYcBenN11USdoRaPLXspYpWS7222uhNmQjBi"], ["created_at", "2015-03-18 22:25:45.016662"], ["updated_at", "2015-03-18 22:25:45.016662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.068873"], ["updated_at", "2015-03-18 22:25:45.068873"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b82faa9c-cdbd-11e4-a95c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b831275a-cdbd-11e4-a4dd-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b82faa9c-cdbd-11e4-a95c-705681abff85"], ["organization_id", "b831275a-cdbd-11e4-a4dd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.130394"], ["updated_at", "2015-03-18 22:25:45.130394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'b831275a-cdbd-11e4-a4dd-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "b831275a-cdbd-11e4-a4dd-705681abff85"], ["created_at", "2015-03-18 22:25:45.141140"], ["updated_at", "2015-03-18 22:25:45.141140"], ["token", "yVduHtBGPBIQL980jUmiQvXbV6yLS9ACJFHGbhNlyNA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b82faa9c-cdbd-11e4-a95c-705681abff85' LIMIT 1 [["organization_id", "b831275a-cdbd-11e4-a4dd-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$q.0HDzccrKo80itYHBRMUu9bytOf20lnm0DpdW0m0AUL.6oiM5ila"], ["created_at", "2015-03-18 22:25:45.167053"], ["updated_at", "2015-03-18 22:25:45.167053"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.170676"], ["updated_at", "2015-03-18 22:25:45.170676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8401602-cdbd-11e4-93f0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8409f96-cdbd-11e4-b1f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8401602-cdbd-11e4-93f0-705681abff85"], ["organization_id", "b8409f96-cdbd-11e4-b1f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.174056"], ["updated_at", "2015-03-18 22:25:45.174056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'b8409f96-cdbd-11e4-b1f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "b8409f96-cdbd-11e4-b1f2-705681abff85"], ["created_at", "2015-03-18 22:25:45.177922"], ["updated_at", "2015-03-18 22:25:45.177922"], ["token", "MgYuOpu-xPvNPSwQ5GCCBD9jEo61sNjzj8p9R36UcCU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8401602-cdbd-11e4-93f0-705681abff85' LIMIT 1 [["organization_id", "b8409f96-cdbd-11e4-b1f2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$AGnbVBQz0CiOOTIL4j7cz.YqJCG2z/Pcuvspf1oXMgRhrLsTgj4oW"], ["created_at", "2015-03-18 22:25:45.185258"], ["updated_at", "2015-03-18 22:25:45.185258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.188666"], ["updated_at", "2015-03-18 22:25:45.188666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b842db76-cdbd-11e4-bb78-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b84365d2-cdbd-11e4-9431-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b842db76-cdbd-11e4-bb78-705681abff85"], ["organization_id", "b84365d2-cdbd-11e4-9431-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.192604"], ["updated_at", "2015-03-18 22:25:45.192604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'b84365d2-cdbd-11e4-9431-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "b84365d2-cdbd-11e4-9431-705681abff85"], ["created_at", "2015-03-18 22:25:45.197389"], ["updated_at", "2015-03-18 22:25:45.197389"], ["token", "5CE2LiEp1jNTBzrfkP9NqPyvUeLxInI05zV4qcXupFY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b842db76-cdbd-11e4-bb78-705681abff85' LIMIT 1 [["organization_id", "b84365d2-cdbd-11e4-9431-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (4.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$iOZscg7cTDJ0ZDawGrZn9uL2wsDmchv8nWlLXgWXgqa0t0YQ.rtHi"], ["created_at", "2015-03-18 22:25:45.207264"], ["updated_at", "2015-03-18 22:25:45.207264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.216025"], ["updated_at", "2015-03-18 22:25:45.216025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8463a32-cdbd-11e4-9549-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8479670-cdbd-11e4-b34e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8463a32-cdbd-11e4-9549-705681abff85"], ["organization_id", "b8479670-cdbd-11e4-b34e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.220202"], ["updated_at", "2015-03-18 22:25:45.220202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'b8479670-cdbd-11e4-b34e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "b8479670-cdbd-11e4-b34e-705681abff85"], ["created_at", "2015-03-18 22:25:45.224293"], ["updated_at", "2015-03-18 22:25:45.224293"], ["token", "iuQdE2lYao91s5REiCjuNyFuPLnM6r0OtMZlLHO9-Q0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8463a32-cdbd-11e4-9549-705681abff85' LIMIT 1 [["organization_id", "b8479670-cdbd-11e4-b34e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$wkm7EhrfaqHHmtFsjmzcq.76.xGM/WrGbS/eplzsiDirTU.V8INym"], ["created_at", "2015-03-18 22:25:45.232980"], ["updated_at", "2015-03-18 22:25:45.232980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.236632"], ["updated_at", "2015-03-18 22:25:45.236632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'b84ac25a-cdbd-11e4-b178-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "b84ac25a-cdbd-11e4-b178-705681abff85"], ["created_at", "2015-03-18 22:25:45.241327"], ["updated_at", "2015-03-18 22:25:45.241327"], ["token", "u_p3b0gnKMyqq7-s1hbZxsADWw3mpXAqEGWU8kPAhis"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b84a25b6-cdbd-11e4-9853-705681abff85' LIMIT 1 [["organization_id", "b84ac25a-cdbd-11e4-b178-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$kxAwe9.cBWey2WM44FHz2.t3vwhKjmHKODgy2deuv7fhWgWawdPJq"], ["created_at", "2015-03-18 22:25:45.250038"], ["updated_at", "2015-03-18 22:25:45.250038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.253712"], ["updated_at", "2015-03-18 22:25:45.253712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'b84d52d6-cdbd-11e4-84f3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "b84d52d6-cdbd-11e4-84f3-705681abff85"], ["created_at", "2015-03-18 22:25:45.257651"], ["updated_at", "2015-03-18 22:25:45.257651"], ["token", "FckLWeE7Pnv0QyIsetNreQMon9fH0W79JoahuuI4tZA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b84cc0be-cdbd-11e4-a602-705681abff85' LIMIT 1 [["organization_id", "b84d52d6-cdbd-11e4-84f3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$o.wSk8KCFtVNYGQNM53d7.tMpSE7jleUPV1K.koCR5Mxs2JLOYLyO"], ["created_at", "2015-03-18 22:25:45.265959"], ["updated_at", "2015-03-18 22:25:45.265959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.269515"], ["updated_at", "2015-03-18 22:25:45.269515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'b84fb576-cdbd-11e4-9346-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "b84fb576-cdbd-11e4-9346-705681abff85"], ["created_at", "2015-03-18 22:25:45.273310"], ["updated_at", "2015-03-18 22:25:45.273310"], ["token", "7DmNo3U3qC-tz8-iKHJW8QgOmisAlxWuO6JTlOOj1cI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b84f2c32-cdbd-11e4-8162-705681abff85' LIMIT 1 [["organization_id", "b84fb576-cdbd-11e4-9346-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$rmG49DnKOFnR1L4c3Okn6.nPUt3oy4sphODPjGdl7zsxEqXtxUEeK"], ["created_at", "2015-03-18 22:25:45.282091"], ["updated_at", "2015-03-18 22:25:45.282091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.285983"], ["updated_at", "2015-03-18 22:25:45.285983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'b8523d82-cdbd-11e4-b1a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "b8523d82-cdbd-11e4-b1a0-705681abff85"], ["created_at", "2015-03-18 22:25:45.289936"], ["updated_at", "2015-03-18 22:25:45.289936"], ["token", "86F3xDsKb0aEffAxJOhb31--QxHKjDHzESsQKo1V3mc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b851a89a-cdbd-11e4-aff4-705681abff85' LIMIT 1 [["organization_id", "b8523d82-cdbd-11e4-b1a0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$7fN1.P/5E9FX88rkM4UoZeh6k2j9.GfaUCR.42bp70WSUn6UrtTwG"], ["created_at", "2015-03-18 22:25:45.298449"], ["updated_at", "2015-03-18 22:25:45.298449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.302319"], ["updated_at", "2015-03-18 22:25:45.302319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b854266a-cdbd-11e4-b786-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b854bc92-cdbd-11e4-8e7d-705681abff85') LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b854266a-cdbd-11e4-b786-705681abff85"], ["organization_id", "b854bc92-cdbd-11e4-8e7d-705681abff85"], ["created_at", "2015-03-18 22:25:45.306563"], ["updated_at", "2015-03-18 22:25:45.306563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'b854bc92-cdbd-11e4-8e7d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "b854bc92-cdbd-11e4-8e7d-705681abff85"], ["created_at", "2015-03-18 22:25:45.315326"], ["updated_at", "2015-03-18 22:25:45.315326"], ["token", "6LD0Uf_4yH-sBH6oRkGtsbE-HhfORpzOQyGQ_OhWlwU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b854266a-cdbd-11e4-b786-705681abff85' LIMIT 1 [["organization_id", "b854bc92-cdbd-11e4-8e7d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$tnqdA8dXFEsyCJGr3UYSJ.54npGeMyRU6lhT.otpfR2Ld7q15.31."], ["created_at", "2015-03-18 22:25:45.323957"], ["updated_at", "2015-03-18 22:25:45.323957"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.329689"], ["updated_at", "2015-03-18 22:25:45.329689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8581144-cdbd-11e4-8201-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b858f366-cdbd-11e4-bf40-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8581144-cdbd-11e4-8201-705681abff85"], ["organization_id", "b858f366-cdbd-11e4-bf40-705681abff85"], ["created_at", "2015-03-18 22:25:45.333902"], ["updated_at", "2015-03-18 22:25:45.333902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'b858f366-cdbd-11e4-bf40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "b858f366-cdbd-11e4-bf40-705681abff85"], ["created_at", "2015-03-18 22:25:45.338142"], ["updated_at", "2015-03-18 22:25:45.338142"], ["token", "DcBVE-NS1rcJaa5k7ipRWdKMUjPzb9vaIjkcQ_TThG4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8581144-cdbd-11e4-8201-705681abff85' LIMIT 1 [["organization_id", "b858f366-cdbd-11e4-bf40-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$MzFpVLQVSlC6Zfe3xXPAousKGpEmxbc.Ye9ZrDbWagJTjwTUW6Y.W"], ["created_at", "2015-03-18 22:25:45.345650"], ["updated_at", "2015-03-18 22:25:45.345650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.349080"], ["updated_at", "2015-03-18 22:25:45.349080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b85b5566-cdbd-11e4-b966-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b85bd928-cdbd-11e4-ae5b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b85b5566-cdbd-11e4-b966-705681abff85"], ["organization_id", "b85bd928-cdbd-11e4-ae5b-705681abff85"], ["created_at", "2015-03-18 22:25:45.352499"], ["updated_at", "2015-03-18 22:25:45.352499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'b85bd928-cdbd-11e4-ae5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "b85bd928-cdbd-11e4-ae5b-705681abff85"], ["created_at", "2015-03-18 22:25:45.356336"], ["updated_at", "2015-03-18 22:25:45.356336"], ["token", "ksvtrL9buAERdSpGOdVAwAxd7mntAsB2WO8USRNca4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b85b5566-cdbd-11e4-b966-705681abff85' LIMIT 1 [["organization_id", "b85bd928-cdbd-11e4-ae5b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$H9w7LSoyiMtd65AfUX8jSuQZm0N035Z/HbRGcE4/T90pGGZ4dK5yO"], ["created_at", "2015-03-18 22:25:45.363994"], ["updated_at", "2015-03-18 22:25:45.363994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.367139"], ["updated_at", "2015-03-18 22:25:45.367139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b85e1fbc-cdbd-11e4-a6d3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b85e9ab4-cdbd-11e4-a356-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b85e1fbc-cdbd-11e4-a6d3-705681abff85"], ["organization_id", "b85e9ab4-cdbd-11e4-a356-705681abff85"], ["created_at", "2015-03-18 22:25:45.371236"], ["updated_at", "2015-03-18 22:25:45.371236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'b85e9ab4-cdbd-11e4-a356-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "b85e9ab4-cdbd-11e4-a356-705681abff85"], ["created_at", "2015-03-18 22:25:45.376534"], ["updated_at", "2015-03-18 22:25:45.376534"], ["token", "XD0rq_SP-vuWMIZ6yp5dMMBQk5FC9q4eVdWVouZ_OBc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b85e1fbc-cdbd-11e4-a6d3-705681abff85' LIMIT 1 [["organization_id", "b85e9ab4-cdbd-11e4-a356-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$vJzo3eYe3lKPUzsGyK9gkOryQ7xukV6NL6WlUnSyyUQyJdo2si1JK"], ["created_at", "2015-03-18 22:25:45.384603"], ["updated_at", "2015-03-18 22:25:45.384603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.387891"], ["updated_at", "2015-03-18 22:25:45.387891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b86145f2-cdbd-11e4-a19e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b861c2f2-cdbd-11e4-b734-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b86145f2-cdbd-11e4-a19e-705681abff85"], ["organization_id", "b861c2f2-cdbd-11e4-b734-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.391306"], ["updated_at", "2015-03-18 22:25:45.391306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$3dP4Q5HrerB5pkh.qfeqjOfDc7Rn1/ZlK.HUjRD0bcEV7VNcqpWQS"], ["created_at", "2015-03-18 22:25:45.399362"], ["updated_at", "2015-03-18 22:25:45.399362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.403188"], ["updated_at", "2015-03-18 22:25:45.403188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8638c72-cdbd-11e4-ab90-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8641dea-cdbd-11e4-a098-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8638c72-cdbd-11e4-ab90-705681abff85"], ["organization_id", "b8641dea-cdbd-11e4-a098-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.407193"], ["updated_at", "2015-03-18 22:25:45.407193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8638c72-cdbd-11e4-ab90-705681abff85' LIMIT 1 [["organization_id", "b8641dea-cdbd-11e4-a098-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$fKOoUGZ3mzvCyJ3cu.UomO3UPbUl3eofRYvu7b83RdeuNBn21MzNm"], ["created_at", "2015-03-18 22:25:45.414605"], ["updated_at", "2015-03-18 22:25:45.414605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.418448"], ["updated_at", "2015-03-18 22:25:45.418448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b865de0a-cdbd-11e4-94f2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b86670a4-cdbd-11e4-ab06-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b865de0a-cdbd-11e4-94f2-705681abff85"], ["organization_id", "b86670a4-cdbd-11e4-ab06-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.422242"], ["updated_at", "2015-03-18 22:25:45.422242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b865de0a-cdbd-11e4-94f2-705681abff85' LIMIT 1 [["organization_id", "b86670a4-cdbd-11e4-ab06-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$EoF0C4LY0jMb3PyLjtLB6ev9hwRwtyDlBQ.0zR8hyuqsSAvrBqy22"], ["created_at", "2015-03-18 22:25:45.429301"], ["updated_at", "2015-03-18 22:25:45.429301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.432613"], ["updated_at", "2015-03-18 22:25:45.432613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b86817e2-cdbd-11e4-ada6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b86898c0-cdbd-11e4-8672-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b86817e2-cdbd-11e4-ada6-705681abff85"], ["organization_id", "b86898c0-cdbd-11e4-8672-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.436220"], ["updated_at", "2015-03-18 22:25:45.436220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b86817e2-cdbd-11e4-ada6-705681abff85' LIMIT 1 [["organization_id", "b86898c0-cdbd-11e4-8672-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$SdoQhgrXCeGWsck8a6IrM.GycAAq9f/IGsCBk229q.0Vjw9ZP9BwS"], ["created_at", "2015-03-18 22:25:45.443783"], ["updated_at", "2015-03-18 22:25:45.443783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.447455"], ["updated_at", "2015-03-18 22:25:45.447455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b86a528c-cdbd-11e4-b83c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b86adc16-cdbd-11e4-b3d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b86a528c-cdbd-11e4-b83c-705681abff85"], ["organization_id", "b86adc16-cdbd-11e4-b3d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.451143"], ["updated_at", "2015-03-18 22:25:45.451143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$2bXnII6OG1D1ZnZ1RA2VYeRkJdCuSzbiuhf.vgUFIsltHeMrgNmQ2"], ["created_at", "2015-03-18 22:25:45.458197"], ["updated_at", "2015-03-18 22:25:45.458197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.462173"], ["updated_at", "2015-03-18 22:25:45.462173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$cgp3frZfGgsh0SWWtQdNEetqYjjNx0SsXHifyZ.WHo8sauVzVzS4C"], ["created_at", "2015-03-18 22:25:45.468346"], ["updated_at", "2015-03-18 22:25:45.468346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.471891"], ["updated_at", "2015-03-18 22:25:45.471891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b86e1412-cdbd-11e4-8398-705681abff85' LIMIT 1 [["organization_id", "b86e9720-cdbd-11e4-b6ad-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Keoc.bDDpBHiKH5enkP1kuBog6L030u0nqLBJgSFJ9c2u5RNZMUgu"], ["created_at", "2015-03-18 22:25:45.479218"], ["updated_at", "2015-03-18 22:25:45.479218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.482913"], ["updated_at", "2015-03-18 22:25:45.482913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b86fb57e-cdbd-11e4-b474-705681abff85' LIMIT 1 [["organization_id", "b87044f8-cdbd-11e4-a675-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$SZ4WISJ6tqc9mFCF/TqBBe4Ntz6pGReNeMkvhURcIjp/7cPfWIGTS"], ["created_at", "2015-03-18 22:25:45.492469"], ["updated_at", "2015-03-18 22:25:45.492469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.496418"], ["updated_at", "2015-03-18 22:25:45.496418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b871c3d2-cdbd-11e4-b4cf-705681abff85' LIMIT 1 [["organization_id", "b872566c-cdbd-11e4-a2b6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$RNHp8YjjI3M9kkl6Y1XmGefOMOwWqqg7jeonymNVciB7Uihuakkme"], ["created_at", "2015-03-18 22:25:45.505964"], ["updated_at", "2015-03-18 22:25:45.505964"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.517041"], ["updated_at", "2015-03-18 22:25:45.517041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$EI9YVYR/fizXjq8rxVvFb.s8TWjT7Bay32d0f8v16K/o.S5KMAwIK"], ["created_at", "2015-03-18 22:25:45.523404"], ["updated_at", "2015-03-18 22:25:45.523404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.527118"], ["updated_at", "2015-03-18 22:25:45.527118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8767616-cdbd-11e4-ac26-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b87705cc-cdbd-11e4-bab9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8767616-cdbd-11e4-ac26-705681abff85"], ["organization_id", "b87705cc-cdbd-11e4-bab9-705681abff85"], ["created_at", "2015-03-18 22:25:45.530732"], ["updated_at", "2015-03-18 22:25:45.530732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$QDmMtwz2iRuD4DiWUHrKDueoRSITwzckvo885ckzC.S92AbhmDQ1C"], ["created_at", "2015-03-18 22:25:45.538036"], ["updated_at", "2015-03-18 22:25:45.538036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.541603"], ["updated_at", "2015-03-18 22:25:45.541603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b878b5a2-cdbd-11e4-a219-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b879398c-cdbd-11e4-bbcd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b878b5a2-cdbd-11e4-a219-705681abff85"], ["organization_id", "b879398c-cdbd-11e4-bbcd-705681abff85"], ["created_at", "2015-03-18 22:25:45.545208"], ["updated_at", "2015-03-18 22:25:45.545208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b878b5a2-cdbd-11e4-a219-705681abff85' LIMIT 1 [["organization_id", "b879398c-cdbd-11e4-bbcd-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$LqOSc01y/ALuVmpMMugRyOrk73EgmpBLIvJbObbuuFGcv3jwwRI9e"], ["created_at", "2015-03-18 22:25:45.555159"], ["updated_at", "2015-03-18 22:25:45.555159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.558479"], ["updated_at", "2015-03-18 22:25:45.558479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b87b4c36-cdbd-11e4-8065-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b87bcbca-cdbd-11e4-9894-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b87b4c36-cdbd-11e4-8065-705681abff85"], ["organization_id", "b87bcbca-cdbd-11e4-9894-705681abff85"], ["created_at", "2015-03-18 22:25:45.562188"], ["updated_at", "2015-03-18 22:25:45.562188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b87b4c36-cdbd-11e4-8065-705681abff85' LIMIT 1 [["organization_id", "b87bcbca-cdbd-11e4-9894-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$k60Uj0D8bBeH/htKBspmFu6DxEwGqaCedY2MARd.TtaZmdSig2su."], ["created_at", "2015-03-18 22:25:45.569131"], ["updated_at", "2015-03-18 22:25:45.569131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.573202"], ["updated_at", "2015-03-18 22:25:45.573202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b87d742a-cdbd-11e4-8e42-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b87e0aca-cdbd-11e4-990d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b87d742a-cdbd-11e4-8e42-705681abff85"], ["organization_id", "b87e0aca-cdbd-11e4-990d-705681abff85"], ["created_at", "2015-03-18 22:25:45.576724"], ["updated_at", "2015-03-18 22:25:45.576724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b87d742a-cdbd-11e4-8e42-705681abff85' LIMIT 1 [["organization_id", "b87e0aca-cdbd-11e4-990d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$0ehjsfcJcGSpc1tIZYCry.1jQ3LfPaZwWwEJDvDZoY0ZgKLmQWPQi"], ["created_at", "2015-03-18 22:25:45.583860"], ["updated_at", "2015-03-18 22:25:45.583860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.588213"], ["updated_at", "2015-03-18 22:25:45.588213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b87fb212-cdbd-11e4-9232-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8805672-cdbd-11e4-99a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b87fb212-cdbd-11e4-9232-705681abff85"], ["organization_id", "b8805672-cdbd-11e4-99a8-705681abff85"], ["created_at", "2015-03-18 22:25:45.591781"], ["updated_at", "2015-03-18 22:25:45.591781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$QIdjF6hVEeIx7E/v8jId..VsZ56XQ2yK2ru5mzija7YelmHyu9t/C"], ["created_at", "2015-03-18 22:25:45.597762"], ["updated_at", "2015-03-18 22:25:45.597762"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.603329"], ["updated_at", "2015-03-18 22:25:45.603329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b881cf3e-cdbd-11e4-b70b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b882a396-cdbd-11e4-9385-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b881cf3e-cdbd-11e4-b70b-705681abff85"], ["organization_id", "b882a396-cdbd-11e4-9385-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.607476"], ["updated_at", "2015-03-18 22:25:45.607476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b881cf3e-cdbd-11e4-b70b-705681abff85' LIMIT 1 [["organization_id", "b882a396-cdbd-11e4-9385-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$D6pxgTI2ChuUgIeAlmlLaO5b7HHScnDAeBOgt7HmG0R3/pTSUqzJa"], ["created_at", "2015-03-18 22:25:45.614658"], ["updated_at", "2015-03-18 22:25:45.614658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.617997"], ["updated_at", "2015-03-18 22:25:45.617997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8846168-cdbd-11e4-809b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b884e03e-cdbd-11e4-a613-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8846168-cdbd-11e4-809b-705681abff85"], ["organization_id", "b884e03e-cdbd-11e4-a613-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.621774"], ["updated_at", "2015-03-18 22:25:45.621774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8846168-cdbd-11e4-809b-705681abff85' LIMIT 1 [["organization_id", "b884e03e-cdbd-11e4-a613-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$Si867ae7x5kyxy1J9WMuwev9iaA3ZPddkcHSQCm1VqJbKjF0TOY0C"], ["created_at", "2015-03-18 22:25:45.629391"], ["updated_at", "2015-03-18 22:25:45.629391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.633176"], ["updated_at", "2015-03-18 22:25:45.633176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b886abbc-cdbd-11e4-b70c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8873208-cdbd-11e4-9d98-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b886abbc-cdbd-11e4-b70c-705681abff85"], ["organization_id", "b8873208-cdbd-11e4-9d98-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.636599"], ["updated_at", "2015-03-18 22:25:45.636599"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b886abbc-cdbd-11e4-b70c-705681abff85' LIMIT 1 [["organization_id", "b8873208-cdbd-11e4-9d98-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$gQco7jFgfh6tb4ExLsP6X.P7emdQEsaZpm4mCUUc57sMGY3twl9be"], ["created_at", "2015-03-18 22:25:45.644199"], ["updated_at", "2015-03-18 22:25:45.644199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.647806"], ["updated_at", "2015-03-18 22:25:45.647806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b888e31e-cdbd-11e4-b40b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8896db6-cdbd-11e4-90d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b888e31e-cdbd-11e4-b40b-705681abff85"], ["organization_id", "b8896db6-cdbd-11e4-90d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.651101"], ["updated_at", "2015-03-18 22:25:45.651101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b888e31e-cdbd-11e4-b40b-705681abff85' LIMIT 1 [["organization_id", "b8896db6-cdbd-11e4-90d3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$sj3j3JDUYFnWx7bcHF8t3.xoCZXXTT133SsAiogOvmnpgbp0MxLf."], ["created_at", "2015-03-18 22:25:45.659142"], ["updated_at", "2015-03-18 22:25:45.659142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.662420"], ["updated_at", "2015-03-18 22:25:45.662420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b88b28c2-cdbd-11e4-b45b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b88bad92-cdbd-11e4-a90a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b88b28c2-cdbd-11e4-b45b-705681abff85"], ["organization_id", "b88bad92-cdbd-11e4-a90a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.665996"], ["updated_at", "2015-03-18 22:25:45.665996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$O5quLClxmLSw5NJkccmg0OdZWo/OKzZEC.WvuikQgUphwhnuW5R8W"], ["created_at", "2015-03-18 22:25:45.670651"], ["updated_at", "2015-03-18 22:25:45.670651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b88ceb1c-cdbd-11e4-839d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b88bad92-cdbd-11e4-a90a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b88ceb1c-cdbd-11e4-839d-705681abff85"], ["organization_id", "b88bad92-cdbd-11e4-a90a-705681abff85"], ["created_at", "2015-03-18 22:25:45.674285"], ["updated_at", "2015-03-18 22:25:45.674285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b88b28c2-cdbd-11e4-b45b-705681abff85' LIMIT 1 [["organization_id", "b88bad92-cdbd-11e4-a90a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$Pm0qrZb0c5QqivvN4CeOk.IWxAgEk3GtIQP.PNF9gclha7jdsH5mu"], ["created_at", "2015-03-18 22:25:45.682022"], ["updated_at", "2015-03-18 22:25:45.682022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.685127"], ["updated_at", "2015-03-18 22:25:45.685127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b88ea722-cdbd-11e4-8208-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b88f1e8c-cdbd-11e4-9410-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b88ea722-cdbd-11e4-8208-705681abff85"], ["organization_id", "b88f1e8c-cdbd-11e4-9410-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.688778"], ["updated_at", "2015-03-18 22:25:45.688778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$lXGf7ezlE8CzqihOQtIOHu81Ke8.83zNDUBBIP3ulYBlxV16yLhc6"], ["created_at", "2015-03-18 22:25:45.693421"], ["updated_at", "2015-03-18 22:25:45.693421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b89063fa-cdbd-11e4-aa99-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b88f1e8c-cdbd-11e4-9410-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b89063fa-cdbd-11e4-aa99-705681abff85"], ["organization_id", "b88f1e8c-cdbd-11e4-9410-705681abff85"], ["created_at", "2015-03-18 22:25:45.696845"], ["updated_at", "2015-03-18 22:25:45.696845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b88ea722-cdbd-11e4-8208-705681abff85' LIMIT 1 [["organization_id", "b88f1e8c-cdbd-11e4-9410-705681abff85"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$TRxWLvK2YGWnfLiPL.2VOeZDpU/nJPDLZx/l/sOIxFbiVxiKUJKK."], ["created_at", "2015-03-18 22:25:45.704475"], ["updated_at", "2015-03-18 22:25:45.704475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.708036"], ["updated_at", "2015-03-18 22:25:45.708036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8921470-cdbd-11e4-ac28-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8929dd2-cdbd-11e4-a734-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8921470-cdbd-11e4-ac28-705681abff85"], ["organization_id", "b8929dd2-cdbd-11e4-a734-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.711645"], ["updated_at", "2015-03-18 22:25:45.711645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$dANJCgoQgzTKyx.MSjbUVuQ3fgVXf43DOz6gf0vAokfOLpUuubpBu"], ["created_at", "2015-03-18 22:25:45.716776"], ["updated_at", "2015-03-18 22:25:45.716776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b893f498-cdbd-11e4-b913-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8929dd2-cdbd-11e4-a734-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b893f498-cdbd-11e4-b913-705681abff85"], ["organization_id", "b8929dd2-cdbd-11e4-a734-705681abff85"], ["created_at", "2015-03-18 22:25:45.720411"], ["updated_at", "2015-03-18 22:25:45.720411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8921470-cdbd-11e4-ac28-705681abff85' LIMIT 1 [["organization_id", "b8929dd2-cdbd-11e4-a734-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$uemJb.a6LP./rUJrpgqSSeI3xdWWZATg0OYZFPqP6BngXREZ7c6XS"], ["created_at", "2015-03-18 22:25:45.728086"], ["updated_at", "2015-03-18 22:25:45.728086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.731340"], ["updated_at", "2015-03-18 22:25:45.731340"]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b895af36-cdbd-11e4-b374-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8962bdc-cdbd-11e4-9be2-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b895af36-cdbd-11e4-b374-705681abff85"], ["organization_id", "b8962bdc-cdbd-11e4-9be2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:25:45.750548"], ["updated_at", "2015-03-18 22:25:45.750548"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$lQmBGXA3a09V3Al/dUnc8up5tS9U3iKrNb6YHEHD.q6pN0FVqIsbG"], ["created_at", "2015-03-18 22:25:45.760851"], ["updated_at", "2015-03-18 22:25:45.760851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b89acc14-cdbd-11e4-86c9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8962bdc-cdbd-11e4-9be2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b89acc14-cdbd-11e4-86c9-705681abff85"], ["organization_id", "b8962bdc-cdbd-11e4-9be2-705681abff85"], ["created_at", "2015-03-18 22:25:45.767092"], ["updated_at", "2015-03-18 22:25:45.767092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b895af36-cdbd-11e4-b374-705681abff85' LIMIT 1 [["organization_id", "b8962bdc-cdbd-11e4-9be2-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$mbTTyOeUK3Oyudco6C6.neuGvqFKdu80Sq4ufehqKMSCqsixJq5zi"], ["created_at", "2015-03-18 22:25:45.778926"], ["updated_at", "2015-03-18 22:25:45.778926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$ZFBNqRXxlPERfVAeAM0AQuviglUwlkAxj4Rm3GoF6wH3m4uYUabPq"], ["created_at", "2015-03-18 22:25:45.785129"], ["updated_at", "2015-03-18 22:25:45.785129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.791366"], ["updated_at", "2015-03-18 22:25:45.791366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b89e8b06-cdbd-11e4-844d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b89f752a-cdbd-11e4-8bd7-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b89e8b06-cdbd-11e4-844d-705681abff85"], ["organization_id", "b89f752a-cdbd-11e4-8bd7-705681abff85"], ["created_at", "2015-03-18 22:25:45.797328"], ["updated_at", "2015-03-18 22:25:45.797328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b89d7eaa-cdbd-11e4-b020-705681abff85' LIMIT 1 [["organization_id", "b89f752a-cdbd-11e4-8bd7-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$Jy4TLpLYN9els/GwBxbADO26jiBz.FUXr/xSM7ajO8MEKu4zBVYca"], ["created_at", "2015-03-18 22:25:45.817107"], ["updated_at", "2015-03-18 22:25:45.817107"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$2cbUxqayiYoxb.ULvbnTP.PKAnwF8FOSQg2M5xEETH1XugupY0OwC"], ["created_at", "2015-03-18 22:25:45.826062"], ["updated_at", "2015-03-18 22:25:45.826062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.832977"], ["updated_at", "2015-03-18 22:25:45.832977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8a4bc56-cdbd-11e4-b6f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8a5ea7c-cdbd-11e4-bead-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8a4bc56-cdbd-11e4-b6f4-705681abff85"], ["organization_id", "b8a5ea7c-cdbd-11e4-bead-705681abff85"], ["created_at", "2015-03-18 22:25:45.840686"], ["updated_at", "2015-03-18 22:25:45.840686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8a35d20-cdbd-11e4-be1c-705681abff85' LIMIT 1 [["organization_id", "b8a5ea7c-cdbd-11e4-bead-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$0RbTy06F7fkk0rbXotXnIucMARtOzxTJL5aMb1cfjZUSBIyiEJ0na"], ["created_at", "2015-03-18 22:25:45.850051"], ["updated_at", "2015-03-18 22:25:45.850051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$icDOA5qgQPRnqh.UE3rvou3qauoDR6QLumuvd3vd.zKN7WoOIGK96"], ["created_at", "2015-03-18 22:25:45.855606"], ["updated_at", "2015-03-18 22:25:45.855606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.859342"], ["updated_at", "2015-03-18 22:25:45.859342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8a92426-cdbd-11e4-840e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8a9b8aa-cdbd-11e4-b4f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8a92426-cdbd-11e4-840e-705681abff85"], ["organization_id", "b8a9b8aa-cdbd-11e4-b4f0-705681abff85"], ["created_at", "2015-03-18 22:25:45.863345"], ["updated_at", "2015-03-18 22:25:45.863345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8a84f1a-cdbd-11e4-a1ed-705681abff85' LIMIT 1 [["organization_id", "b8a9b8aa-cdbd-11e4-b4f0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$15WeqQ57dAJWsHO8EcMZGOXtTAFvKnZmPcSFphuT3C0xOUM76Vnmi"], ["created_at", "2015-03-18 22:25:45.870865"], ["updated_at", "2015-03-18 22:25:45.870865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$SMol1eFQIZigPF65/XHv6.67/bS35mWwOL0Hp7lND/9Q/W8W2ZD.q"], ["created_at", "2015-03-18 22:25:45.875369"], ["updated_at", "2015-03-18 22:25:45.875369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.878635"], ["updated_at", "2015-03-18 22:25:45.878635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8ac2950-cdbd-11e4-895b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8aca466-cdbd-11e4-aadb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8ac2950-cdbd-11e4-895b-705681abff85"], ["organization_id", "b8aca466-cdbd-11e4-aadb-705681abff85"], ["created_at", "2015-03-18 22:25:45.882633"], ["updated_at", "2015-03-18 22:25:45.882633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b8ab792e-cdbd-11e4-b7d5-705681abff85' LIMIT 1 [["organization_id", "b8aca466-cdbd-11e4-aadb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$Mgc5iyHk/YC09AbpsTXIUejgCoyYQrb.rVEHTECyxqaPpLO8VBhBO"], ["created_at", "2015-03-18 22:25:45.890076"], ["updated_at", "2015-03-18 22:25:45.890076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.893573"], ["updated_at", "2015-03-18 22:25:45.893573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8ae6814-cdbd-11e4-af54-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8aeeeec-cdbd-11e4-b326-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8ae6814-cdbd-11e4-af54-705681abff85"], ["organization_id", "b8aeeeec-cdbd-11e4-b326-705681abff85"], ["created_at", "2015-03-18 22:25:45.897494"], ["updated_at", "2015-03-18 22:25:45.897494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8ae6814-cdbd-11e4-af54-705681abff85' LIMIT 1 [["organization_id", "b8aeeeec-cdbd-11e4-b326-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$HP8Z8BOZB7u2SmYBoilW6ekfIS/txubdc/v5Ia7th7cv/7ZGvd/n6"], ["created_at", "2015-03-18 22:25:45.905137"], ["updated_at", "2015-03-18 22:25:45.905137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.908374"], ["updated_at", "2015-03-18 22:25:45.908374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8b0b3ee-cdbd-11e4-b7f8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8b13788-cdbd-11e4-beae-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8b0b3ee-cdbd-11e4-b7f8-705681abff85"], ["organization_id", "b8b13788-cdbd-11e4-beae-705681abff85"], ["created_at", "2015-03-18 22:25:45.912511"], ["updated_at", "2015-03-18 22:25:45.912511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8b0b3ee-cdbd-11e4-b7f8-705681abff85' LIMIT 1 [["organization_id", "b8b13788-cdbd-11e4-beae-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$cUkjfZnUkmCd5lFkiNLUYeGfp4VKfiYKR05l/cSE5VmKuYNxEyy6S"], ["created_at", "2015-03-18 22:25:45.922700"], ["updated_at", "2015-03-18 22:25:45.922700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.926616"], ["updated_at", "2015-03-18 22:25:45.926616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8b3654e-cdbd-11e4-8901-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8b40a4e-cdbd-11e4-910b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8b3654e-cdbd-11e4-8901-705681abff85"], ["organization_id", "b8b40a4e-cdbd-11e4-910b-705681abff85"], ["created_at", "2015-03-18 22:25:45.930843"], ["updated_at", "2015-03-18 22:25:45.930843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8b3654e-cdbd-11e4-8901-705681abff85' LIMIT 1 [["organization_id", "b8b40a4e-cdbd-11e4-910b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$5MuncYM3GZhhdnYyicTTU.lRqUNppsN/LFlZKNakEzm1ARxMgJ.Za"], ["created_at", "2015-03-18 22:25:45.939285"], ["updated_at", "2015-03-18 22:25:45.939285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:25:45.943747"], ["updated_at", "2015-03-18 22:25:45.943747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8b5e968-cdbd-11e4-a370-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8b6a9d4-cdbd-11e4-a92e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8b5e968-cdbd-11e4-a370-705681abff85"], ["organization_id", "b8b6a9d4-cdbd-11e4-a92e-705681abff85"], ["created_at", "2015-03-18 22:25:45.948317"], ["updated_at", "2015-03-18 22:25:45.948317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b8b5e968-cdbd-11e4-a370-705681abff85' LIMIT 1 [["organization_id", "b8b6a9d4-cdbd-11e4-a92e-705681abff85"]]  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$sQIPtWcTODpeb6XcFZUwjOclYuZSkWM7NwHrcwolsxMci3psgkYay"], ["created_at", "2015-03-18 22:26:09.683257"], ["updated_at", "2015-03-18 22:26:09.683257"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:09.718202"], ["updated_at", "2015-03-18 22:26:09.718202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (20.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6e0201c-cdbd-11e4-afc4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6e25620-cdbd-11e4-8d14-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6e0201c-cdbd-11e4-afc4-705681abff85"], ["organization_id", "c6e25620-cdbd-11e4-8d14-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:09.758939"], ["updated_at", "2015-03-18 22:26:09.758939"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'c6e25620-cdbd-11e4-8d14-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "c6e25620-cdbd-11e4-8d14-705681abff85"], ["created_at", "2015-03-18 22:26:09.799565"], ["updated_at", "2015-03-18 22:26:09.799565"], ["token", "Hsj5pmKXPmVCulB2JbKQhCBiPQznXSGgHDuOO3hIWqo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c6e0201c-cdbd-11e4-afc4-705681abff85' LIMIT 1 [["organization_id", "c6e25620-cdbd-11e4-8d14-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$QK24pN8DjtujT2yh4csmneDmUPYGwlteqzt3MhsDffXl40jwT/Qoe"], ["created_at", "2015-03-18 22:26:09.834717"], ["updated_at", "2015-03-18 22:26:09.834717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:09.838517"], ["updated_at", "2015-03-18 22:26:09.838517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6f4137e-cdbd-11e4-af93-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6f4a58c-cdbd-11e4-8f9f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6f4137e-cdbd-11e4-af93-705681abff85"], ["organization_id", "c6f4a58c-cdbd-11e4-8f9f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:09.842196"], ["updated_at", "2015-03-18 22:26:09.842196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'c6f4a58c-cdbd-11e4-8f9f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "c6f4a58c-cdbd-11e4-8f9f-705681abff85"], ["created_at", "2015-03-18 22:26:09.845944"], ["updated_at", "2015-03-18 22:26:09.845944"], ["token", "54G5s_4M80O8BI2g5RskjyGG2LTb9QGpP6K_0XtOZDw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c6f4137e-cdbd-11e4-af93-705681abff85' LIMIT 1 [["organization_id", "c6f4a58c-cdbd-11e4-8f9f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$7pyuweS.9dzFiVZ8zx.WxuuhKEI8yAoCtDBfZ9w460hs1HhuGUC1C"], ["created_at", "2015-03-18 22:26:09.853647"], ["updated_at", "2015-03-18 22:26:09.853647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:09.856988"], ["updated_at", "2015-03-18 22:26:09.856988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6f6f2ec-cdbd-11e4-9ee3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6f7755a-cdbd-11e4-8f2b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6f6f2ec-cdbd-11e4-9ee3-705681abff85"], ["organization_id", "c6f7755a-cdbd-11e4-8f2b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:09.862234"], ["updated_at", "2015-03-18 22:26:09.862234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c6f7755a-cdbd-11e4-8f2b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c6f7755a-cdbd-11e4-8f2b-705681abff85"], ["created_at", "2015-03-18 22:26:09.866053"], ["updated_at", "2015-03-18 22:26:09.866053"], ["token", "pyvRm-K5caEvC1mDj8GBU4fTHdZRUT2dWYhk8XfM_QU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c6f6f2ec-cdbd-11e4-9ee3-705681abff85' LIMIT 1 [["organization_id", "c6f7755a-cdbd-11e4-8f2b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$75nLMf5jLXVjrD08ngzmJOzqaDoVuDzRQd/HS4NsgLbjkpZWA2trW"], ["created_at", "2015-03-18 22:26:09.873527"], ["updated_at", "2015-03-18 22:26:09.873527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:09.876790"], ["updated_at", "2015-03-18 22:26:09.876790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c6f9fb18-cdbd-11e4-aa8e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c6fa87a4-cdbd-11e4-b7da-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c6f9fb18-cdbd-11e4-aa8e-705681abff85"], ["organization_id", "c6fa87a4-cdbd-11e4-b7da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:09.882566"], ["updated_at", "2015-03-18 22:26:09.882566"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'c6fa87a4-cdbd-11e4-b7da-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "c6fa87a4-cdbd-11e4-b7da-705681abff85"], ["created_at", "2015-03-18 22:26:09.893789"], ["updated_at", "2015-03-18 22:26:09.893789"], ["token", "Zbc6PH85O56O6VaJ8wrh8zdZv_YQj6pWIofI1ri7gdk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c6f9fb18-cdbd-11e4-aa8e-705681abff85' LIMIT 1 [["organization_id", "c6fa87a4-cdbd-11e4-b7da-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$85EJCQ1uXLFjDapL/xNdZuLXvduqinf3hT9KOnUsEB0e5Kh1p2jL."], ["created_at", "2015-03-18 22:26:09.902941"], ["updated_at", "2015-03-18 22:26:09.902941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:09.906094"], ["updated_at", "2015-03-18 22:26:09.906094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'c6fef19a-cdbd-11e4-ac53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "c6fef19a-cdbd-11e4-ac53-705681abff85"], ["created_at", "2015-03-18 22:26:09.909380"], ["updated_at", "2015-03-18 22:26:09.909380"], ["token", "JtwrugYawYhFKMHh6-1KiK9Ru_CLqvE-nbpdjvowJkU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c6fe7800-cdbd-11e4-b7b9-705681abff85' LIMIT 1 [["organization_id", "c6fef19a-cdbd-11e4-ac53-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$49yHCLoODZoI26AqLDOlKOyfIDZuavI76xUDBuwyDqYyYS25rz5yK"], ["created_at", "2015-03-18 22:26:09.916542"], ["updated_at", "2015-03-18 22:26:09.916542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:09.920030"], ["updated_at", "2015-03-18 22:26:09.920030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'c7011308-cdbd-11e4-998f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "c7011308-cdbd-11e4-998f-705681abff85"], ["created_at", "2015-03-18 22:26:09.923491"], ["updated_at", "2015-03-18 22:26:09.923491"], ["token", "DfCFzXeMCncu_yYISTLD3ljWTiQkoVlM1j4MtZGca60"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c7008b86-cdbd-11e4-be2b-705681abff85' LIMIT 1 [["organization_id", "c7011308-cdbd-11e4-998f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$FBdLFQGbJ.MwmWNweHXwE.8NY5XBUcp98g7PjgHsV99o9ZGU1enJC"], ["created_at", "2015-03-18 22:26:09.932204"], ["updated_at", "2015-03-18 22:26:09.932204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:09.935796"], ["updated_at", "2015-03-18 22:26:09.935796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'c7037a4e-cdbd-11e4-8ce2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "c7037a4e-cdbd-11e4-8ce2-705681abff85"], ["created_at", "2015-03-18 22:26:09.939143"], ["updated_at", "2015-03-18 22:26:09.939143"], ["token", "Gs4gbAsN1j79u-DewIn3DHG9aC3mxu_BeK2TCKEyk3I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c702f74a-cdbd-11e4-ac50-705681abff85' LIMIT 1 [["organization_id", "c7037a4e-cdbd-11e4-8ce2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$xnoMyvR931JIKsgEbyDCiu3YJ2lwasKjsZm3.gnScLbJ1ytYSpbHW"], ["created_at", "2015-03-18 22:26:09.947156"], ["updated_at", "2015-03-18 22:26:09.947156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:09.950585"], ["updated_at", "2015-03-18 22:26:09.950585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'c705bb7e-cdbd-11e4-804d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "c705bb7e-cdbd-11e4-804d-705681abff85"], ["created_at", "2015-03-18 22:26:09.955631"], ["updated_at", "2015-03-18 22:26:09.955631"], ["token", "iL58bhE5eIiRgIMIbkGY8Swp_f0sUun9LNznlM1x0ZM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c7053a14-cdbd-11e4-b82b-705681abff85' LIMIT 1 [["organization_id", "c705bb7e-cdbd-11e4-804d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$mNx72v.qAxQHCdwX14pjbOzuB08wVrqazebAdp/Qa.TJFGzd3/0EO"], ["created_at", "2015-03-18 22:26:09.963146"], ["updated_at", "2015-03-18 22:26:09.963146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:09.966720"], ["updated_at", "2015-03-18 22:26:09.966720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c707a89e-cdbd-11e4-9579-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c70833a4-cdbd-11e4-bd39-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c707a89e-cdbd-11e4-9579-705681abff85"], ["organization_id", "c70833a4-cdbd-11e4-bd39-705681abff85"], ["created_at", "2015-03-18 22:26:09.969989"], ["updated_at", "2015-03-18 22:26:09.969989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'c70833a4-cdbd-11e4-bd39-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "c70833a4-cdbd-11e4-bd39-705681abff85"], ["created_at", "2015-03-18 22:26:09.973604"], ["updated_at", "2015-03-18 22:26:09.973604"], ["token", "OGEFegSdLXzHiSR7Zbsvrh_o2TXPsfHBCBYEeuxTsA0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c707a89e-cdbd-11e4-9579-705681abff85' LIMIT 1 [["organization_id", "c70833a4-cdbd-11e4-bd39-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$uu/NYCbbuct0ExQMi8ZBpOz/RyAFGk7klp4afAkuCOcQ9ojAXfgAO"], ["created_at", "2015-03-18 22:26:09.980818"], ["updated_at", "2015-03-18 22:26:09.980818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:09.984083"], ["updated_at", "2015-03-18 22:26:09.984083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c70a5d14-cdbd-11e4-a74a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c70ae180-cdbd-11e4-b44d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c70a5d14-cdbd-11e4-a74a-705681abff85"], ["organization_id", "c70ae180-cdbd-11e4-b44d-705681abff85"], ["created_at", "2015-03-18 22:26:09.987994"], ["updated_at", "2015-03-18 22:26:09.987994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'c70ae180-cdbd-11e4-b44d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "c70ae180-cdbd-11e4-b44d-705681abff85"], ["created_at", "2015-03-18 22:26:09.991676"], ["updated_at", "2015-03-18 22:26:09.991676"], ["token", "hK5lNXSUqMNQMAnHiwIyaifml_SsNRpgXX44S2ZXEXw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c70a5d14-cdbd-11e4-a74a-705681abff85' LIMIT 1 [["organization_id", "c70ae180-cdbd-11e4-b44d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$2u5BNEeEINjD3ZaL0/oeje.jmLlAEsavvcIlGrjHcHaCHRdkoJcPy"], ["created_at", "2015-03-18 22:26:10.000005"], ["updated_at", "2015-03-18 22:26:10.000005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.003409"], ["updated_at", "2015-03-18 22:26:10.003409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c70d49ac-cdbd-11e4-935c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c70dcbf2-cdbd-11e4-b943-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c70d49ac-cdbd-11e4-935c-705681abff85"], ["organization_id", "c70dcbf2-cdbd-11e4-b943-705681abff85"], ["created_at", "2015-03-18 22:26:10.006800"], ["updated_at", "2015-03-18 22:26:10.006800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'c70dcbf2-cdbd-11e4-b943-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "c70dcbf2-cdbd-11e4-b943-705681abff85"], ["created_at", "2015-03-18 22:26:10.010517"], ["updated_at", "2015-03-18 22:26:10.010517"], ["token", "mXg3OwNzsfgEn_JKbCuFpMT8pvZ6swaUeKM-7Y1hRw0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c70d49ac-cdbd-11e4-935c-705681abff85' LIMIT 1 [["organization_id", "c70dcbf2-cdbd-11e4-b943-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$D2rOcifYw.pWstsUrKYOZurzOEyZBMuK3acPNYdPSQCY286Sq2BI6"], ["created_at", "2015-03-18 22:26:10.018035"], ["updated_at", "2015-03-18 22:26:10.018035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.022074"], ["updated_at", "2015-03-18 22:26:10.022074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7100912-cdbd-11e4-b01e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c710a69c-cdbd-11e4-bfe5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c7100912-cdbd-11e4-b01e-705681abff85"], ["organization_id", "c710a69c-cdbd-11e4-bfe5-705681abff85"], ["created_at", "2015-03-18 22:26:10.025982"], ["updated_at", "2015-03-18 22:26:10.025982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'c710a69c-cdbd-11e4-bfe5-705681abff85') LIMIT 1 SQL (6.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "c710a69c-cdbd-11e4-bfe5-705681abff85"], ["created_at", "2015-03-18 22:26:10.029695"], ["updated_at", "2015-03-18 22:26:10.029695"], ["token", "Z-Q0S7kZm_dHxITm7841c-K99piY9HBhquuluAnqJ8U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c7100912-cdbd-11e4-b01e-705681abff85' LIMIT 1 [["organization_id", "c710a69c-cdbd-11e4-bfe5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$5uBzqPTvSq08io1AClLnn./c0ZnsVbD6Q5lWM9eS7xOXvI/rKXGfe"], ["created_at", "2015-03-18 22:26:10.044683"], ["updated_at", "2015-03-18 22:26:10.044683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.048907"], ["updated_at", "2015-03-18 22:26:10.048907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7142ff6-cdbd-11e4-b9da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c714bee4-cdbd-11e4-ba11-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7142ff6-cdbd-11e4-b9da-705681abff85"], ["organization_id", "c714bee4-cdbd-11e4-ba11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.052406"], ["updated_at", "2015-03-18 22:26:10.052406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c7142ff6-cdbd-11e4-b9da-705681abff85' LIMIT 1 [["organization_id", "c714bee4-cdbd-11e4-ba11-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$/cYq2lsk51SEOfJLAgbgK.cwBHj2ZjYOVaqqExuZizlDnVzrfG72i"], ["created_at", "2015-03-18 22:26:10.059769"], ["updated_at", "2015-03-18 22:26:10.059769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.063006"], ["updated_at", "2015-03-18 22:26:10.063006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c71666f4-cdbd-11e4-b2fe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c716e9d0-cdbd-11e4-9bbb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c71666f4-cdbd-11e4-b2fe-705681abff85"], ["organization_id", "c716e9d0-cdbd-11e4-9bbb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.066707"], ["updated_at", "2015-03-18 22:26:10.066707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$ms/L1z94xAYU0doq/AhTNuALtRxlBwDzq0M7wf/7xm.GhVeJzfnQa"], ["created_at", "2015-03-18 22:26:10.072443"], ["updated_at", "2015-03-18 22:26:10.072443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.075627"], ["updated_at", "2015-03-18 22:26:10.075627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c71853ec-cdbd-11e4-8d2d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c718d0b0-cdbd-11e4-8237-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c71853ec-cdbd-11e4-8d2d-705681abff85"], ["organization_id", "c718d0b0-cdbd-11e4-8237-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.079336"], ["updated_at", "2015-03-18 22:26:10.079336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c71853ec-cdbd-11e4-8d2d-705681abff85' LIMIT 1 [["organization_id", "c718d0b0-cdbd-11e4-8237-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$itRg1yX3RIWq6QfHY6TttudcocQAkJc24ngJFAFzhaUjDiN737GY."], ["created_at", "2015-03-18 22:26:10.086978"], ["updated_at", "2015-03-18 22:26:10.086978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.090504"], ["updated_at", "2015-03-18 22:26:10.090504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c71a9012-cdbd-11e4-bb65-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c71b16ea-cdbd-11e4-b26b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c71a9012-cdbd-11e4-bb65-705681abff85"], ["organization_id", "c71b16ea-cdbd-11e4-b26b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.094021"], ["updated_at", "2015-03-18 22:26:10.094021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c71a9012-cdbd-11e4-bb65-705681abff85' LIMIT 1 [["organization_id", "c71b16ea-cdbd-11e4-b26b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$eZ443j9rnsL/UKCD2eEy.Oa0djPfOMIPmIGhIhgUz14naCcQJK7Fq"], ["created_at", "2015-03-18 22:26:10.102203"], ["updated_at", "2015-03-18 22:26:10.102203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.105859"], ["updated_at", "2015-03-18 22:26:10.105859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c71ce380-cdbd-11e4-9c1b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c71d7002-cdbd-11e4-81d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c71ce380-cdbd-11e4-9c1b-705681abff85"], ["organization_id", "c71d7002-cdbd-11e4-81d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.109615"], ["updated_at", "2015-03-18 22:26:10.109615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Ezulq0Gs5u3jXuO2HndO5O8vXg8hciOpLNUhRanDGI4VgqbfZY3LG"], ["created_at", "2015-03-18 22:26:10.123646"], ["updated_at", "2015-03-18 22:26:10.123646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.127258"], ["updated_at", "2015-03-18 22:26:10.127258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c72027b6-cdbd-11e4-adf4-705681abff85' LIMIT 1 [["organization_id", "c720b654-cdbd-11e4-8381-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (6.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Iw7dF671lS3aoYu.vjWAuuIkZmfrigTc0d9hZm.qR6hVoaUtk/5wG"], ["created_at", "2015-03-18 22:26:10.135267"], ["updated_at", "2015-03-18 22:26:10.135267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.145260"], ["updated_at", "2015-03-18 22:26:10.145260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$zC6TVLvF/K5Dmb8vQw5WjuTXn2Xv5HPQes/OqJfY.q8JgSqOqUYwG"], ["created_at", "2015-03-18 22:26:10.151583"], ["updated_at", "2015-03-18 22:26:10.151583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.154785"], ["updated_at", "2015-03-18 22:26:10.154785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c72468b2-cdbd-11e4-a06c-705681abff85' LIMIT 1 [["organization_id", "c724e3be-cdbd-11e4-8b7a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$AcKrlT4x2OOUYZytBB.JIuFz76E5eIsPtflt3dHxjm5HRiQ5YcH.a"], ["created_at", "2015-03-18 22:26:10.161749"], ["updated_at", "2015-03-18 22:26:10.161749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.164966"], ["updated_at", "2015-03-18 22:26:10.164966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c725f72c-cdbd-11e4-97f7-705681abff85' LIMIT 1 [["organization_id", "c7267300-cdbd-11e4-8a61-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$3JtikxxSwsf9DDY/bzVw2eK5XOzDishl8g8zh4puHiL7ton7cF9uO"], ["created_at", "2015-03-18 22:26:10.171708"], ["updated_at", "2015-03-18 22:26:10.171708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.174964"], ["updated_at", "2015-03-18 22:26:10.174964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$mUq.BvNOikTMwDgBmX3wy.OR5kMO/lNbdS0AFmOBVkoJmDt8f3KFy"], ["created_at", "2015-03-18 22:26:10.180871"], ["updated_at", "2015-03-18 22:26:10.180871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.184112"], ["updated_at", "2015-03-18 22:26:10.184112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c728e432-cdbd-11e4-af11-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c7295cc8-cdbd-11e4-8133-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c728e432-cdbd-11e4-af11-705681abff85"], ["organization_id", "c7295cc8-cdbd-11e4-8133-705681abff85"], ["created_at", "2015-03-18 22:26:10.187290"], ["updated_at", "2015-03-18 22:26:10.187290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c728e432-cdbd-11e4-af11-705681abff85' LIMIT 1 [["organization_id", "c7295cc8-cdbd-11e4-8133-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$e3J9rvD.G4K2coxZreaRHeIWZZ8b.pjiKVz8eMMPwTdu.VaYe.VPu"], ["created_at", "2015-03-18 22:26:10.193974"], ["updated_at", "2015-03-18 22:26:10.193974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.198383"], ["updated_at", "2015-03-18 22:26:10.198383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c72ae214-cdbd-11e4-85e1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c72b8e1c-cdbd-11e4-944c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c72ae214-cdbd-11e4-85e1-705681abff85"], ["organization_id", "c72b8e1c-cdbd-11e4-944c-705681abff85"], ["created_at", "2015-03-18 22:26:10.201784"], ["updated_at", "2015-03-18 22:26:10.201784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$K/ljuRzlOMXPuyQ9IzL8We3ZDf2FTyBhrmdDUeV4bbWcenxOYiV2a"], ["created_at", "2015-03-18 22:26:10.207418"], ["updated_at", "2015-03-18 22:26:10.207418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.210471"], ["updated_at", "2015-03-18 22:26:10.210471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c72ceca8-cdbd-11e4-bfa6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c72d6354-cdbd-11e4-a584-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c72ceca8-cdbd-11e4-bfa6-705681abff85"], ["organization_id", "c72d6354-cdbd-11e4-a584-705681abff85"], ["created_at", "2015-03-18 22:26:10.213621"], ["updated_at", "2015-03-18 22:26:10.213621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c72ceca8-cdbd-11e4-bfa6-705681abff85' LIMIT 1 [["organization_id", "c72d6354-cdbd-11e4-a584-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$gOuXBIgkjAUTRjffVOCIK.cumUOU9FcvbC5I6IJFDhdPZNwOMJSWS"], ["created_at", "2015-03-18 22:26:10.220821"], ["updated_at", "2015-03-18 22:26:10.220821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.224056"], ["updated_at", "2015-03-18 22:26:10.224056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c72ef9b2-cdbd-11e4-ab5e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c72f7522-cdbd-11e4-ba34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c72ef9b2-cdbd-11e4-ab5e-705681abff85"], ["organization_id", "c72f7522-cdbd-11e4-ba34-705681abff85"], ["created_at", "2015-03-18 22:26:10.227170"], ["updated_at", "2015-03-18 22:26:10.227170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c72ef9b2-cdbd-11e4-ab5e-705681abff85' LIMIT 1 [["organization_id", "c72f7522-cdbd-11e4-ba34-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$bhv3Z/QNyAl5CeaLo9Znl.oc.FMGV0ytYVyccYTM3Z9rB9BdUOHAG"], ["created_at", "2015-03-18 22:26:10.234390"], ["updated_at", "2015-03-18 22:26:10.234390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.238132"], ["updated_at", "2015-03-18 22:26:10.238132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c73116a2-cdbd-11e4-8eb2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c7319e38-cdbd-11e4-9ea2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c73116a2-cdbd-11e4-8eb2-705681abff85"], ["organization_id", "c7319e38-cdbd-11e4-9ea2-705681abff85"], ["created_at", "2015-03-18 22:26:10.241443"], ["updated_at", "2015-03-18 22:26:10.241443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$4o36P0Ss9F2BZNbUVRFgjuZWfRQMOZ3Mmxm.0KHf5H3wBNKunUG72"], ["created_at", "2015-03-18 22:26:10.248317"], ["updated_at", "2015-03-18 22:26:10.248317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.251505"], ["updated_at", "2015-03-18 22:26:10.251505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7332cbc-cdbd-11e4-a280-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c733a5ca-cdbd-11e4-9761-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7332cbc-cdbd-11e4-a280-705681abff85"], ["organization_id", "c733a5ca-cdbd-11e4-9761-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.254655"], ["updated_at", "2015-03-18 22:26:10.254655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$MEm/pCdK0NUcQz4alMXdlOWDLksh21SCeCPPG1DI06J.eqWJmQw7y"], ["created_at", "2015-03-18 22:26:10.260145"], ["updated_at", "2015-03-18 22:26:10.260145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.263279"], ["updated_at", "2015-03-18 22:26:10.263279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c734f880-cdbd-11e4-a6d5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c7357076-cdbd-11e4-b794-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c734f880-cdbd-11e4-a6d5-705681abff85"], ["organization_id", "c7357076-cdbd-11e4-b794-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.266984"], ["updated_at", "2015-03-18 22:26:10.266984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c734f880-cdbd-11e4-a6d5-705681abff85' LIMIT 1 [["organization_id", "c7357076-cdbd-11e4-b794-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$ti4nCa3SdBz3zXY5FMUxxu9cbGKY6AGMC6XtzD22CuoEkciPxq6rm"], ["created_at", "2015-03-18 22:26:10.274567"], ["updated_at", "2015-03-18 22:26:10.274567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.277681"], ["updated_at", "2015-03-18 22:26:10.277681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7372bfa-cdbd-11e4-9a90-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c737a5e4-cdbd-11e4-b099-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7372bfa-cdbd-11e4-9a90-705681abff85"], ["organization_id", "c737a5e4-cdbd-11e4-b099-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.280906"], ["updated_at", "2015-03-18 22:26:10.280906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c7372bfa-cdbd-11e4-9a90-705681abff85' LIMIT 1 [["organization_id", "c737a5e4-cdbd-11e4-b099-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$3OnqVCgxr/LSp5jqhc9x.uORgtvPCBLSsEvx.G5TghRvDDANvGPFi"], ["created_at", "2015-03-18 22:26:10.288319"], ["updated_at", "2015-03-18 22:26:10.288319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.291578"], ["updated_at", "2015-03-18 22:26:10.291578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7394660-cdbd-11e4-b0d5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c739c3ce-cdbd-11e4-b195-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7394660-cdbd-11e4-b0d5-705681abff85"], ["organization_id", "c739c3ce-cdbd-11e4-b195-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.294954"], ["updated_at", "2015-03-18 22:26:10.294954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c7394660-cdbd-11e4-b0d5-705681abff85' LIMIT 1 [["organization_id", "c739c3ce-cdbd-11e4-b195-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$JX261JcCrhSBjQwvLCO49ueGAA/RuuyhdJQKQ4vRQwVYHs1nwTO/e"], ["created_at", "2015-03-18 22:26:10.302600"], ["updated_at", "2015-03-18 22:26:10.302600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.306364"], ["updated_at", "2015-03-18 22:26:10.306364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c73b82fe-cdbd-11e4-9f46-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c73c06c0-cdbd-11e4-9a74-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c73b82fe-cdbd-11e4-9f46-705681abff85"], ["organization_id", "c73c06c0-cdbd-11e4-9a74-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.309686"], ["updated_at", "2015-03-18 22:26:10.309686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$Wt9YVUNRNs17Nkr3VeH/QOzdkg4f/4y0FQLAKWVbxBy8zrfGVtX/C"], ["created_at", "2015-03-18 22:26:10.316283"], ["updated_at", "2015-03-18 22:26:10.316283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c73d8a2c-cdbd-11e4-9a4a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c73c06c0-cdbd-11e4-9a74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c73d8a2c-cdbd-11e4-9a4a-705681abff85"], ["organization_id", "c73c06c0-cdbd-11e4-9a74-705681abff85"], ["created_at", "2015-03-18 22:26:10.319489"], ["updated_at", "2015-03-18 22:26:10.319489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$0VKCHUxd3Y8njMpnR9UMZeJahiq1TEaPJP5pldtovxNRarv07bnmO"], ["created_at", "2015-03-18 22:26:10.325359"], ["updated_at", "2015-03-18 22:26:10.325359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.328541"], ["updated_at", "2015-03-18 22:26:10.328541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c73eecdc-cdbd-11e4-8c6a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c73f66da-cdbd-11e4-8196-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c73eecdc-cdbd-11e4-8c6a-705681abff85"], ["organization_id", "c73f66da-cdbd-11e4-8196-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.332178"], ["updated_at", "2015-03-18 22:26:10.332178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$BBxxp1lQQzIVUyWqXW4MUurU27rSzACf8iwH.lp3OSX99LiqyHI.2"], ["created_at", "2015-03-18 22:26:10.337174"], ["updated_at", "2015-03-18 22:26:10.337174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c740bb70-cdbd-11e4-a064-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c73f66da-cdbd-11e4-8196-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c740bb70-cdbd-11e4-a064-705681abff85"], ["organization_id", "c73f66da-cdbd-11e4-8196-705681abff85"], ["created_at", "2015-03-18 22:26:10.340824"], ["updated_at", "2015-03-18 22:26:10.340824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c73eecdc-cdbd-11e4-8c6a-705681abff85' LIMIT 1 [["organization_id", "c73f66da-cdbd-11e4-8196-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$otsVuWr7YvS516iK6nEcAeJBpJ6lh5sI5uLfoqwmG8224AkrShR1O"], ["created_at", "2015-03-18 22:26:10.348252"], ["updated_at", "2015-03-18 22:26:10.348252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.353228"], ["updated_at", "2015-03-18 22:26:10.353228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7427b54-cdbd-11e4-be76-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c7432f18-cdbd-11e4-8d65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7427b54-cdbd-11e4-be76-705681abff85"], ["organization_id", "c7432f18-cdbd-11e4-8d65-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.356774"], ["updated_at", "2015-03-18 22:26:10.356774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$AFAxh8hlG15d1SZvBCV6eOZI.9E9WFNO8rW5U7PEWTvzhq/iFwuMq"], ["created_at", "2015-03-18 22:26:10.361456"], ["updated_at", "2015-03-18 22:26:10.361456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c744710c-cdbd-11e4-95fb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c7432f18-cdbd-11e4-8d65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c744710c-cdbd-11e4-95fb-705681abff85"], ["organization_id", "c7432f18-cdbd-11e4-8d65-705681abff85"], ["created_at", "2015-03-18 22:26:10.364740"], ["updated_at", "2015-03-18 22:26:10.364740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c7427b54-cdbd-11e4-be76-705681abff85' LIMIT 1 [["organization_id", "c7432f18-cdbd-11e4-8d65-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$8eKvidCCXXXxOYF4Pp1fKerldauf1rf9Xpv4/p5Tw2lySq4pP5NC."], ["created_at", "2015-03-18 22:26:10.371646"], ["updated_at", "2015-03-18 22:26:10.371646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.374869"], ["updated_at", "2015-03-18 22:26:10.374869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c745fd6a-cdbd-11e4-b1df-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c74678c6-cdbd-11e4-8e3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c745fd6a-cdbd-11e4-b1df-705681abff85"], ["organization_id", "c74678c6-cdbd-11e4-8e3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:26:10.378036"], ["updated_at", "2015-03-18 22:26:10.378036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$7H1YgMdGpJFeW8aN7SH8gejPwU9C8IZ.M6pgvlq2Xp0Vbl0sTj5qG"], ["created_at", "2015-03-18 22:26:10.382592"], ["updated_at", "2015-03-18 22:26:10.382592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c747b6a0-cdbd-11e4-9548-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c74678c6-cdbd-11e4-8e3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c747b6a0-cdbd-11e4-9548-705681abff85"], ["organization_id", "c74678c6-cdbd-11e4-8e3e-705681abff85"], ["created_at", "2015-03-18 22:26:10.386713"], ["updated_at", "2015-03-18 22:26:10.386713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c745fd6a-cdbd-11e4-b1df-705681abff85' LIMIT 1 [["organization_id", "c74678c6-cdbd-11e4-8e3e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$Yq9aqqVOVHErMc4KRmtteuYZrHqa.B9MDHQ.vbhCu6daWxulZA.L."], ["created_at", "2015-03-18 22:26:10.393861"], ["updated_at", "2015-03-18 22:26:10.393861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$SyOsBWT35oOJEEojV6FzFuoXrxbYRiWhd8JMgkfIhCS.BwVhKkMfK"], ["created_at", "2015-03-18 22:26:10.398963"], ["updated_at", "2015-03-18 22:26:10.398963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.402305"], ["updated_at", "2015-03-18 22:26:10.402305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c74a2a02-cdbd-11e4-9d83-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c74aaa22-cdbd-11e4-8bc5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c74a2a02-cdbd-11e4-9d83-705681abff85"], ["organization_id", "c74aaa22-cdbd-11e4-8bc5-705681abff85"], ["created_at", "2015-03-18 22:26:10.405789"], ["updated_at", "2015-03-18 22:26:10.405789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$uhQCd7iSLgpi69tavRsQpOp7aEVOxywZdVw7t.s04jaCDSbLTqnv."], ["created_at", "2015-03-18 22:26:10.411694"], ["updated_at", "2015-03-18 22:26:10.411694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$piO7TOvfIKkpRVJs0mNcvemnuBERWPy2oucJ5kdKcJ421BkTF0Fpy"], ["created_at", "2015-03-18 22:26:10.415947"], ["updated_at", "2015-03-18 22:26:10.415947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.419015"], ["updated_at", "2015-03-18 22:26:10.419015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c74cbd62-cdbd-11e4-a07f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c74d347c-cdbd-11e4-bcf7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c74cbd62-cdbd-11e4-a07f-705681abff85"], ["organization_id", "c74d347c-cdbd-11e4-bcf7-705681abff85"], ["created_at", "2015-03-18 22:26:10.422316"], ["updated_at", "2015-03-18 22:26:10.422316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c74c1a1a-cdbd-11e4-8ef4-705681abff85' LIMIT 1 [["organization_id", "c74d347c-cdbd-11e4-bcf7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$22kpiPoVL1EEeJ6P83k/heNCAd0YPk9iQgG2sYQlFCBaWGv7tWBZ."], ["created_at", "2015-03-18 22:26:10.429337"], ["updated_at", "2015-03-18 22:26:10.429337"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$kIy1..S7.4Pb0ANk9aYHV.UatxDnCYKpdwkNmavu4abBzXy0aDNHO"], ["created_at", "2015-03-18 22:26:10.434179"], ["updated_at", "2015-03-18 22:26:10.434179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.438065"], ["updated_at", "2015-03-18 22:26:10.438065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c74f89ca-cdbd-11e4-850d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c7502b00-cdbd-11e4-99a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c74f89ca-cdbd-11e4-850d-705681abff85"], ["organization_id", "c7502b00-cdbd-11e4-99a8-705681abff85"], ["created_at", "2015-03-18 22:26:10.442167"], ["updated_at", "2015-03-18 22:26:10.442167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c74ecce2-cdbd-11e4-905c-705681abff85' LIMIT 1 [["organization_id", "c7502b00-cdbd-11e4-99a8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$wuUzpBAKNnDLUVPdHS92tuBRlAObn8SUbzmhl3ayPp64S.dj/Ai8G"], ["created_at", "2015-03-18 22:26:10.454693"], ["updated_at", "2015-03-18 22:26:10.454693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$IucxMbEELnwQQLcKZW0PiOiL6iXgKFzi2aVInre9BmkWkINqvINbe"], ["created_at", "2015-03-18 22:26:10.459027"], ["updated_at", "2015-03-18 22:26:10.459027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.462057"], ["updated_at", "2015-03-18 22:26:10.462057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7534fb0-cdbd-11e4-9efa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c753c6ca-cdbd-11e4-baad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c7534fb0-cdbd-11e4-9efa-705681abff85"], ["organization_id", "c753c6ca-cdbd-11e4-baad-705681abff85"], ["created_at", "2015-03-18 22:26:10.465194"], ["updated_at", "2015-03-18 22:26:10.465194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c752ae02-cdbd-11e4-b8a0-705681abff85' LIMIT 1 [["organization_id", "c753c6ca-cdbd-11e4-baad-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$wmjnuwzN5UXM5N312F3Fhe.lcFVS78RFNvZ608A74uzdVPlYfpHYC"], ["created_at", "2015-03-18 22:26:10.472342"], ["updated_at", "2015-03-18 22:26:10.472342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.475617"], ["updated_at", "2015-03-18 22:26:10.475617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c75559ea-cdbd-11e4-b063-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c755dadc-cdbd-11e4-bfd3-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c75559ea-cdbd-11e4-b063-705681abff85"], ["organization_id", "c755dadc-cdbd-11e4-bfd3-705681abff85"], ["created_at", "2015-03-18 22:26:10.478927"], ["updated_at", "2015-03-18 22:26:10.478927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$BGLQHQ7AFFMNWDxLMnSwjuTZEDRiAobRTqUK2/l/DDzHWwRUW58ja"], ["created_at", "2015-03-18 22:26:10.487173"], ["updated_at", "2015-03-18 22:26:10.487173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.491154"], ["updated_at", "2015-03-18 22:26:10.491154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c757af56-cdbd-11e4-be1c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c758385e-cdbd-11e4-94b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c757af56-cdbd-11e4-be1c-705681abff85"], ["organization_id", "c758385e-cdbd-11e4-94b0-705681abff85"], ["created_at", "2015-03-18 22:26:10.494382"], ["updated_at", "2015-03-18 22:26:10.494382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c757af56-cdbd-11e4-be1c-705681abff85' LIMIT 1 [["organization_id", "c758385e-cdbd-11e4-94b0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$ib1S0uLxAGBAYguITMvREeleUYpN6p/7OU7ZWhkJ5EuoP9Hgai0Ca"], ["created_at", "2015-03-18 22:26:10.506646"], ["updated_at", "2015-03-18 22:26:10.506646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.509849"], ["updated_at", "2015-03-18 22:26:10.509849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c75a97d4-cdbd-11e4-936a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c75b0fca-cdbd-11e4-84f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c75a97d4-cdbd-11e4-936a-705681abff85"], ["organization_id", "c75b0fca-cdbd-11e4-84f5-705681abff85"], ["created_at", "2015-03-18 22:26:10.513003"], ["updated_at", "2015-03-18 22:26:10.513003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c75a97d4-cdbd-11e4-936a-705681abff85' LIMIT 1 [["organization_id", "c75b0fca-cdbd-11e4-84f5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$pqV7PmAKxo8OegwLdmBSZeOj.vrSdLVU6XpSRo.JnENZIznoElVKO"], ["created_at", "2015-03-18 22:26:10.519622"], ["updated_at", "2015-03-18 22:26:10.519622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:26:10.522912"], ["updated_at", "2015-03-18 22:26:10.522912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c75c8fa8-cdbd-11e4-8068-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c75d102c-cdbd-11e4-b1e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c75c8fa8-cdbd-11e4-8068-705681abff85"], ["organization_id", "c75d102c-cdbd-11e4-b1e3-705681abff85"], ["created_at", "2015-03-18 22:26:10.526186"], ["updated_at", "2015-03-18 22:26:10.526186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c75c8fa8-cdbd-11e4-8068-705681abff85' LIMIT 1 [["organization_id", "c75d102c-cdbd-11e4-b1e3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$fi1sC2YIWjKTy6Afr6ScHOMN1WbojJoX1hnk4ltjY/nddgy6nQiwW"], ["created_at", "2015-03-18 22:47:23.268944"], ["updated_at", "2015-03-18 22:47:23.268944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$m8e7snpXWMrsnBj5OAlEF.T7Xz7xsiSB.VQVIV3kSLWuD6Ujn5lqO"], ["created_at", "2015-03-18 22:47:23.298658"], ["updated_at", "2015-03-18 22:47:23.298658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (20.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.306774"], ["user_id", "bdfe6d70-cdc0-11e4-8b31-705681abff85"], ["created_at", "2015-03-18 22:47:23.313447"], ["updated_at", "2015-03-18 22:47:23.313447"], ["token", "zuhi97QxgGbA6cKybGaS6vg_WtEQXTPTIldHpXGNFUU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.371935"], ["updated_at", "2015-03-18 22:47:23.371935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bdfe6d70-cdc0-11e4-8b31-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be0a75ac-cdc0-11e4-9847-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bdfe6d70-cdc0-11e4-8b31-705681abff85"], ["organization_id", "be0a75ac-cdc0-11e4-9847-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.383523"], ["updated_at", "2015-03-18 22:47:23.383523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bdff3c00-cdc0-11e4-8d26-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be0a75ac-cdc0-11e4-9847-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bdff3c00-cdc0-11e4-8d26-705681abff85"], ["organization_id", "be0a75ac-cdc0-11e4-9847-705681abff85"], ["created_at", "2015-03-18 22:47:23.387497"], ["updated_at", "2015-03-18 22:47:23.387497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 15:47:23 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Sg5Zcp9h1TZdnpIWtPa2YeHuxY4iRYPyVF287VcxOxgZhTfkQP3XK"], ["created_at", "2015-03-18 22:47:23.423003"], ["updated_at", "2015-03-18 22:47:23.423003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$yXZg5.bfwPc9GsWvvW1aJuSZArUU3fstoNGHOQab2InBe8MKODYCW"], ["created_at", "2015-03-18 22:47:23.427382"], ["updated_at", "2015-03-18 22:47:23.427382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.428943"], ["user_id", "be1235da-cdc0-11e4-b556-705681abff85"], ["created_at", "2015-03-18 22:47:23.429711"], ["updated_at", "2015-03-18 22:47:23.429711"], ["token", "USyE_P_7ycNPHfujpJS2uRa8LocBDp4DZxzxYyPdMlY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.433470"], ["updated_at", "2015-03-18 22:47:23.433470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be1235da-cdc0-11e4-b556-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be13cdc8-cdc0-11e4-9c20-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be1235da-cdc0-11e4-b556-705681abff85"], ["organization_id", "be13cdc8-cdc0-11e4-9c20-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.436754"], ["updated_at", "2015-03-18 22:47:23.436754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be12dfd0-cdc0-11e4-bd53-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be13cdc8-cdc0-11e4-9c20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be12dfd0-cdc0-11e4-bd53-705681abff85"], ["organization_id", "be13cdc8-cdc0-11e4-9c20-705681abff85"], ["created_at", "2015-03-18 22:47:23.439773"], ["updated_at", "2015-03-18 22:47:23.439773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:47:23 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:47:23.444168' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "USyE_P_7ycNPHfujpJS2uRa8LocBDp4DZxzxYyPdMlY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:47:23.459162"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:47:23.460481"], ["id", "be13440c-cdc0-11e4-b1a5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be1235da-cdc0-11e4-b556-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "be1235da-cdc0-11e4-b556-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "be13cdc8-cdc0-11e4-9c20-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('be1235da-cdc0-11e4-b556-705681abff85', 'be12dfd0-cdc0-11e4-bd53-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('be13cdc8-cdc0-11e4-9c20-705681abff85') Completed 500 Internal Server Error in 54ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (6.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$A9YMvc/lyrOhuqeHD7urf.1yWGm8uj2Tm.LP5EyrSTeZ7p5LzNMk2"], ["created_at", "2015-03-18 22:47:23.503009"], ["updated_at", "2015-03-18 22:47:23.503009"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$NLZsek9VWOndC9O.wiNE0.nFdwyBK6yjyk8ZcRZzJ.rHD2Vtds59G"], ["created_at", "2015-03-18 22:47:23.513956"], ["updated_at", "2015-03-18 22:47:23.513956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.515566"], ["user_id", "be1f5c6a-cdc0-11e4-aa45-705681abff85"], ["created_at", "2015-03-18 22:47:23.516388"], ["updated_at", "2015-03-18 22:47:23.516388"], ["token", "tsBZAJ6me37Y-OjQAg4xxBNtud960Zz7kYPy00CGDKI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.520060"], ["updated_at", "2015-03-18 22:47:23.520060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be1f5c6a-cdc0-11e4-aa45-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be2103c6-cdc0-11e4-8864-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be1f5c6a-cdc0-11e4-aa45-705681abff85"], ["organization_id", "be2103c6-cdc0-11e4-8864-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.523390"], ["updated_at", "2015-03-18 22:47:23.523390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be201628-cdc0-11e4-a7a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be2103c6-cdc0-11e4-8864-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be201628-cdc0-11e4-a7a4-705681abff85"], ["organization_id", "be2103c6-cdc0-11e4-8864-705681abff85"], ["created_at", "2015-03-18 22:47:23.526475"], ["updated_at", "2015-03-18 22:47:23.526475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$xWJVVdi1xgv/CpZBZ7fjz.Hc41IkbsszpBF5OBajSyylM0HJ70ZrC"], ["created_at", "2015-03-18 22:47:23.530814"], ["updated_at", "2015-03-18 22:47:23.530814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.532302"], ["user_id", "be22a654-cdc0-11e4-b0f0-705681abff85"], ["created_at", "2015-03-18 22:47:23.533108"], ["updated_at", "2015-03-18 22:47:23.533108"], ["token", "-QR4-HtTD3XL2Xx1JuiSXxxYVsul0qyeEBSIrL3T0SA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'be2103c6-cdc0-11e4-8864-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "be2103c6-cdc0-11e4-8864-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.546728"], ["updated_at", "2015-03-18 22:47:23.546728"], ["token", "3yeqLJJvn2FptHQjpmandLQhHM6uDfETsbNXBGPako4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 15:47:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$UgbJ/YZrIdHfzpiA6DHCregqcMyb5KFoZwb5WVdG/FFh.pkpHW6zy"], ["created_at", "2015-03-18 22:47:23.557972"], ["updated_at", "2015-03-18 22:47:23.557972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$BLDnDgMpz6t5LENlH6/TtOHqcmyjSZxwKR7RL/2SFafUhQUWrC8TC"], ["created_at", "2015-03-18 22:47:23.562251"], ["updated_at", "2015-03-18 22:47:23.562251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.563844"], ["user_id", "be26cce8-cdc0-11e4-9ec5-705681abff85"], ["created_at", "2015-03-18 22:47:23.564613"], ["updated_at", "2015-03-18 22:47:23.564613"], ["token", "H8wF6oXs-gkwoLgLbuLvN_cYJbznKu-4acXg6FdlSxk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.568345"], ["updated_at", "2015-03-18 22:47:23.568345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be26cce8-cdc0-11e4-9ec5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be2860da-cdc0-11e4-b5bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be26cce8-cdc0-11e4-9ec5-705681abff85"], ["organization_id", "be2860da-cdc0-11e4-b5bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.571512"], ["updated_at", "2015-03-18 22:47:23.571512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be277472-cdc0-11e4-9ada-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be2860da-cdc0-11e4-b5bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be277472-cdc0-11e4-9ada-705681abff85"], ["organization_id", "be2860da-cdc0-11e4-b5bd-705681abff85"], ["created_at", "2015-03-18 22:47:23.574369"], ["updated_at", "2015-03-18 22:47:23.574369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$80C76KBr9B/qBzG381GcFOr6zoh9DCaEdk72pk8WaOuF03rWYUaCi"], ["created_at", "2015-03-18 22:47:23.578611"], ["updated_at", "2015-03-18 22:47:23.578611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.580082"], ["user_id", "be29f0da-cdc0-11e4-82c2-705681abff85"], ["created_at", "2015-03-18 22:47:23.580824"], ["updated_at", "2015-03-18 22:47:23.580824"], ["token", "1FrcuPVk1qYodSSYNE_Gxd0uVGisO3piOGHTlPzLAe8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'be2860da-cdc0-11e4-b5bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "be2860da-cdc0-11e4-b5bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.584468"], ["updated_at", "2015-03-18 22:47:23.584468"], ["token", "RUlNpwR55HQzz0g2pnaarJlH1Qzrvf4dBc8xgGg0j1U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/be2860da-cdc0-11e4-b5bd-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:47:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"RUlNpwR55HQzz0g2pnaarJlH1Qzrvf4dBc8xgGg0j1U", "organization_id"=>"be2860da-cdc0-11e4-b5bd-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:47:23.589363' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1FrcuPVk1qYodSSYNE_Gxd0uVGisO3piOGHTlPzLAe8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:47:23.590919"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:47:23.591896"], ["id", "be2a5002-cdc0-11e4-be13-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be29f0da-cdc0-11e4-82c2-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "be29f0da-cdc0-11e4-82c2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "be2860da-cdc0-11e4-b5bd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "RUlNpwR55HQzz0g2pnaarJlH1Qzrvf4dBc8xgGg0j1U"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "be2860da-cdc0-11e4-b5bd-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "be2860da-cdc0-11e4-b5bd-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be29f0da-cdc0-11e4-82c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be2860da-cdc0-11e4-b5bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be29f0da-cdc0-11e4-82c2-705681abff85"], ["admin", "t"], ["organization_id", "be2860da-cdc0-11e4-b5bd-705681abff85"], ["created_at", "2015-03-18 22:47:23.604717"], ["updated_at", "2015-03-18 22:47:23.604717"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "be2adbee-cdc0-11e4-9399-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$9SYAm5XKmJwNqdQpdx/gY.9r5oOd7PFfikQflMYeGHg0tg8n/rySW"], ["created_at", "2015-03-18 22:47:23.616468"], ["updated_at", "2015-03-18 22:47:23.616468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$E3C6QidvQtIIXuz1tcKhKOXg35yYme7xSpG2EUDVBGAIEJzRdZZZ."], ["created_at", "2015-03-18 22:47:23.621200"], ["updated_at", "2015-03-18 22:47:23.621200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.622807"], ["user_id", "be2fbec0-cdc0-11e4-984b-705681abff85"], ["created_at", "2015-03-18 22:47:23.623745"], ["updated_at", "2015-03-18 22:47:23.623745"], ["token", "N-Ccmr_19o68Oumqa3yUlBS3fYXBckYnyMiPC_fXFIo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.628123"], ["updated_at", "2015-03-18 22:47:23.628123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be2fbec0-cdc0-11e4-984b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be31820a-cdc0-11e4-81d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be2fbec0-cdc0-11e4-984b-705681abff85"], ["organization_id", "be31820a-cdc0-11e4-81d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.631558"], ["updated_at", "2015-03-18 22:47:23.631558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be307392-cdc0-11e4-befd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be31820a-cdc0-11e4-81d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be307392-cdc0-11e4-befd-705681abff85"], ["organization_id", "be31820a-cdc0-11e4-81d0-705681abff85"], ["created_at", "2015-03-18 22:47:23.634822"], ["updated_at", "2015-03-18 22:47:23.634822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$bcYBbx6peoe6BbMPNS2ZG.k5A7v2d9vMWxHr9zhGk1iNwMigQxqdK"], ["created_at", "2015-03-18 22:47:23.639278"], ["updated_at", "2015-03-18 22:47:23.639278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.640863"], ["user_id", "be333424-cdc0-11e4-975d-705681abff85"], ["created_at", "2015-03-18 22:47:23.641644"], ["updated_at", "2015-03-18 22:47:23.641644"], ["token", "7HeDrcmczxc5I1jC7U5BuRW1JgzxZteOF0--Ms172A8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'be31820a-cdc0-11e4-81d0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "be31820a-cdc0-11e4-81d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.645210"], ["updated_at", "2015-03-18 22:47:23.645210"], ["token", "AE1dA2EvRphJwqW2MofV8TMk04-PB0e6U_uuWN9f9Uk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/be31820a-cdc0-11e4-81d0-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:47:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"be31820a-cdc0-11e4-81d0-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:47:23.652686' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7HeDrcmczxc5I1jC7U5BuRW1JgzxZteOF0--Ms172A8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:47:23.654145"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:47:23.656022"], ["id", "be339734-cdc0-11e4-a5da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be333424-cdc0-11e4-975d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "be333424-cdc0-11e4-975d-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "be31820a-cdc0-11e4-81d0-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$8ew9bJ/VfqvhRP33ZjfbX.oVW/wO.dAdTvSDgvbp7iGMoeUw4rneG"], ["created_at", "2015-03-18 22:47:23.669987"], ["updated_at", "2015-03-18 22:47:23.669987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$O9iQOB8305ELh7pB4rNwwuHXyGnV.t7a6oSFUVC3nYxiT1QXTds32"], ["created_at", "2015-03-18 22:47:23.674357"], ["updated_at", "2015-03-18 22:47:23.674357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.676350"], ["user_id", "be37e8fc-cdc0-11e4-8ca9-705681abff85"], ["created_at", "2015-03-18 22:47:23.677700"], ["updated_at", "2015-03-18 22:47:23.677700"], ["token", "79SFQjNdkD_C2CX5I4F6wsuVPCevEjcAu4y-R__1R-I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.681457"], ["updated_at", "2015-03-18 22:47:23.681457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be37e8fc-cdc0-11e4-8ca9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be39aa34-cdc0-11e4-b331-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be37e8fc-cdc0-11e4-8ca9-705681abff85"], ["organization_id", "be39aa34-cdc0-11e4-b331-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.685340"], ["updated_at", "2015-03-18 22:47:23.685340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be388e2e-cdc0-11e4-bc9a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be39aa34-cdc0-11e4-b331-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be388e2e-cdc0-11e4-bc9a-705681abff85"], ["organization_id", "be39aa34-cdc0-11e4-b331-705681abff85"], ["created_at", "2015-03-18 22:47:23.688633"], ["updated_at", "2015-03-18 22:47:23.688633"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 15:47:23 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$LRYyvaZVKHzYCqut1Q0C2u6OE4//S7TTA1X6yBKGRXpYPRIUVXtyq"], ["created_at", "2015-03-18 22:47:23.700325"], ["updated_at", "2015-03-18 22:47:23.700325"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$U9k.xFW.hPv25VLhoSlxWOQoc9udfNPFPArPGiDLScLaZGD.14P66"], ["created_at", "2015-03-18 22:47:23.705460"], ["updated_at", "2015-03-18 22:47:23.705460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.716078"], ["user_id", "be3c8f56-cdc0-11e4-a8a4-705681abff85"], ["created_at", "2015-03-18 22:47:23.717376"], ["updated_at", "2015-03-18 22:47:23.717376"], ["token", "1zDCuD-B_8McEBcAVupUDl_PRDrwlAz2SzkSWBvAULk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.761426"], ["updated_at", "2015-03-18 22:47:23.761426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be3c8f56-cdc0-11e4-a8a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be45e6dc-cdc0-11e4-bfea-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be3c8f56-cdc0-11e4-a8a4-705681abff85"], ["organization_id", "be45e6dc-cdc0-11e4-bfea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.766546"], ["updated_at", "2015-03-18 22:47:23.766546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be3d510c-cdc0-11e4-a20b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be45e6dc-cdc0-11e4-bfea-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be3d510c-cdc0-11e4-a20b-705681abff85"], ["organization_id", "be45e6dc-cdc0-11e4-bfea-705681abff85"], ["created_at", "2015-03-18 22:47:23.771326"], ["updated_at", "2015-03-18 22:47:23.771326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/be476840-cdc0-11e4-be43-705681abff85" for 127.0.0.1 at 2015-03-18 15:47:23 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"be476840-cdc0-11e4-be43-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:47:23.778950' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1zDCuD-B_8McEBcAVupUDl_PRDrwlAz2SzkSWBvAULk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:47:23.781059"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:47:23.782693"], ["id", "be451356-cdc0-11e4-9f4d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be3c8f56-cdc0-11e4-a8a4-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "be3c8f56-cdc0-11e4-a8a4-705681abff85"]] Completed 500 Internal Server Error in 29ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$o/Th9J6bc9tmB0h2is9c9..fiBVJfAkMBxoq01agZ8.DvuprgqHXu"], ["created_at", "2015-03-18 22:47:23.815518"], ["updated_at", "2015-03-18 22:47:23.815518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$BrGJv3OFmzVb0C68GL66Ae51YHD0RW4TKK20VIx/OR/IWcy6zgZza"], ["created_at", "2015-03-18 22:47:23.821501"], ["updated_at", "2015-03-18 22:47:23.821501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.824006"], ["user_id", "be4e29d2-cdc0-11e4-8d62-705681abff85"], ["created_at", "2015-03-18 22:47:23.825246"], ["updated_at", "2015-03-18 22:47:23.825246"], ["token", "-haIRKSpMoBHFjEEqQiifv1OF_NQ-yoB6HbZ1U-dH4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.830870"], ["updated_at", "2015-03-18 22:47:23.830870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be4e29d2-cdc0-11e4-8d62-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be507e9e-cdc0-11e4-8e84-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be4e29d2-cdc0-11e4-8d62-705681abff85"], ["organization_id", "be507e9e-cdc0-11e4-8e84-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.835917"], ["updated_at", "2015-03-18 22:47:23.835917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be4f1432-cdc0-11e4-bdc1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be507e9e-cdc0-11e4-8e84-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be4f1432-cdc0-11e4-bdc1-705681abff85"], ["organization_id", "be507e9e-cdc0-11e4-8e84-705681abff85"], ["created_at", "2015-03-18 22:47:23.840994"], ["updated_at", "2015-03-18 22:47:23.840994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$qFDblE2F1PFVkG1OPYRuo.HXvwt4k5xJb1jAHUYXfuLkb9t3LeToa"], ["created_at", "2015-03-18 22:47:23.847804"], ["updated_at", "2015-03-18 22:47:23.847804"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.849834"], ["user_id", "be530c36-cdc0-11e4-acbb-705681abff85"], ["created_at", "2015-03-18 22:47:23.850652"], ["updated_at", "2015-03-18 22:47:23.850652"], ["token", "MIDwp85W-tRbeYfnYHx5rqmV1r3GT6xpQTZUGxm8hPc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'be507e9e-cdc0-11e4-8e84-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "be507e9e-cdc0-11e4-8e84-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.854569"], ["updated_at", "2015-03-18 22:47:23.854569"], ["token", "AdLVTrIepjmF0V4eNxdJBfAL16vouoppJtsIKl_scNs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 15:47:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Cr/LknWWOXEgkQhTkWxbW.ZX.T2aWNVoPuVbWv/E9oEE212JFRhRq"], ["created_at", "2015-03-18 22:47:23.866638"], ["updated_at", "2015-03-18 22:47:23.866638"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$aGUfItXLIYcdmzrL0dhhoeMvaBwoUqGp4pWW7qVTXNHZ5PRZwmmeG"], ["created_at", "2015-03-18 22:47:23.877829"], ["updated_at", "2015-03-18 22:47:23.877829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.879690"], ["user_id", "be56b32c-cdc0-11e4-b166-705681abff85"], ["created_at", "2015-03-18 22:47:23.880523"], ["updated_at", "2015-03-18 22:47:23.880523"], ["token", "EEY3jQG4xgHGyo-iLtDSILNEDF0O8WM2Hrm0r5CeU34"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.883927"], ["updated_at", "2015-03-18 22:47:23.883927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be56b32c-cdc0-11e4-b166-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be58877e-cdc0-11e4-acce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be56b32c-cdc0-11e4-b166-705681abff85"], ["organization_id", "be58877e-cdc0-11e4-acce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.887109"], ["updated_at", "2015-03-18 22:47:23.887109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be57a2fa-cdc0-11e4-ac8f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be58877e-cdc0-11e4-acce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be57a2fa-cdc0-11e4-ac8f-705681abff85"], ["organization_id", "be58877e-cdc0-11e4-acce-705681abff85"], ["created_at", "2015-03-18 22:47:23.890225"], ["updated_at", "2015-03-18 22:47:23.890225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$v2CURjxqDVFzKxMHaoTSV.yChsVjegK9dfbd3LoRlXCLuBE2RVozq"], ["created_at", "2015-03-18 22:47:23.894559"], ["updated_at", "2015-03-18 22:47:23.894559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.896072"], ["user_id", "be5a27b4-cdc0-11e4-9607-705681abff85"], ["created_at", "2015-03-18 22:47:23.896908"], ["updated_at", "2015-03-18 22:47:23.896908"], ["token", "d-Og0vNZrBEYM-XYyp_rwN-0qk9cxwnyyiocUPdLr80"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'be58877e-cdc0-11e4-acce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "be58877e-cdc0-11e4-acce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.900667"], ["updated_at", "2015-03-18 22:47:23.900667"], ["token", "4Tpny6oVyzsKIGa7XsqbfVDZ7a6AlVHaRSKc-sOM4UM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:47:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"4Tpny6oVyzsKIGa7XsqbfVDZ7a6AlVHaRSKc-sOM4UM", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:47:23.905799' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "d-Og0vNZrBEYM-XYyp_rwN-0qk9cxwnyyiocUPdLr80"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:47:23.907453"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:47:23.908542"], ["id", "be5a8d26-cdc0-11e4-8c4f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be5a27b4-cdc0-11e4-9607-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "be5a27b4-cdc0-11e4-9607-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "4Tpny6oVyzsKIGa7XsqbfVDZ7a6AlVHaRSKc-sOM4UM"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "be58877e-cdc0-11e4-acce-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "be58877e-cdc0-11e4-acce-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be5a27b4-cdc0-11e4-9607-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be58877e-cdc0-11e4-acce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be5a27b4-cdc0-11e4-9607-705681abff85"], ["admin", "t"], ["organization_id", "be58877e-cdc0-11e4-acce-705681abff85"], ["created_at", "2015-03-18 22:47:23.919719"], ["updated_at", "2015-03-18 22:47:23.919719"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "be5b1a3e-cdc0-11e4-a518-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$t7LKKVgT7Yq22KPvBTBjSOwLKLi05q5yDRxQ3s84.OjBDuk2BjwgC"], ["created_at", "2015-03-18 22:47:23.931183"], ["updated_at", "2015-03-18 22:47:23.931183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$dLSGdWx0bCh5lziqpjA7AO.dI9mlitTK3j/lx9lmyb4J1Jkp1ujsy"], ["created_at", "2015-03-18 22:47:23.936568"], ["updated_at", "2015-03-18 22:47:23.936568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.939096"], ["user_id", "be5fc084-cdc0-11e4-b21b-705681abff85"], ["created_at", "2015-03-18 22:47:23.940003"], ["updated_at", "2015-03-18 22:47:23.940003"], ["token", "PdRhnppEqnu6KIYjhEObmXStvWxofWu4x2wqZm82gnY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.943390"], ["updated_at", "2015-03-18 22:47:23.943390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be5fc084-cdc0-11e4-b21b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be619b98-cdc0-11e4-985c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be5fc084-cdc0-11e4-b21b-705681abff85"], ["organization_id", "be619b98-cdc0-11e4-985c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.946518"], ["updated_at", "2015-03-18 22:47:23.946518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be60a44a-cdc0-11e4-8575-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be619b98-cdc0-11e4-985c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be60a44a-cdc0-11e4-8575-705681abff85"], ["organization_id", "be619b98-cdc0-11e4-985c-705681abff85"], ["created_at", "2015-03-18 22:47:23.949791"], ["updated_at", "2015-03-18 22:47:23.949791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$2fstuuXF32Ip8wUnQonK9uNC/PtRmPXl5ugKYx19uEMEsoRTdFtJi"], ["created_at", "2015-03-18 22:47:23.954008"], ["updated_at", "2015-03-18 22:47:23.954008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.955471"], ["user_id", "be633976-cdc0-11e4-a9ef-705681abff85"], ["created_at", "2015-03-18 22:47:23.956703"], ["updated_at", "2015-03-18 22:47:23.956703"], ["token", "On2nSvzfK0dOeUC_5sRbgisaiyszSUKEnvBVD1SUdqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'be619b98-cdc0-11e4-985c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "be619b98-cdc0-11e4-985c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.962865"], ["updated_at", "2015-03-18 22:47:23.962865"], ["token", "qfcEjQLk1CPmP-K-9Lm2L5IrowGGYG5g9eJ33w4VZrY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:47:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:47:23.967732' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "On2nSvzfK0dOeUC_5sRbgisaiyszSUKEnvBVD1SUdqg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:47:23.969129"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:47:23.970061"], ["id", "be63cfc6-cdc0-11e4-b64b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be633976-cdc0-11e4-a9ef-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "be633976-cdc0-11e4-a9ef-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$bAMEN4khBXOO.z3SSeYj1.XQUqocmX5YdjPHH5iF.L1mIB.WX1UD6"], ["created_at", "2015-03-18 22:47:23.982020"], ["updated_at", "2015-03-18 22:47:23.982020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$Cb0xlNKYrPXOTMUQ9e9t2uOVy4Y2bRSF8mPhT7FniP9qslb5DLJn2"], ["created_at", "2015-03-18 22:47:23.986519"], ["updated_at", "2015-03-18 22:47:23.986519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:23.988073"], ["user_id", "be6785f8-cdc0-11e4-8804-705681abff85"], ["created_at", "2015-03-18 22:47:23.988865"], ["updated_at", "2015-03-18 22:47:23.988865"], ["token", "7WhHFOGq7CUPL_bagGOANxi9RWrT5lO8nGnUHskloeY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:23.992186"], ["updated_at", "2015-03-18 22:47:23.992186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be6785f8-cdc0-11e4-8804-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be690c02-cdc0-11e4-b422-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be6785f8-cdc0-11e4-8804-705681abff85"], ["organization_id", "be690c02-cdc0-11e4-b422-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:23.995343"], ["updated_at", "2015-03-18 22:47:23.995343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be683016-cdc0-11e4-bac1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be690c02-cdc0-11e4-b422-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be683016-cdc0-11e4-bac1-705681abff85"], ["organization_id", "be690c02-cdc0-11e4-b422-705681abff85"], ["created_at", "2015-03-18 22:47:23.998434"], ["updated_at", "2015-03-18 22:47:23.998434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 15:47:24 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$o2.XcnAk4Gbn6ugZuqe7teDgJAK5pdbOpcGH56Zu4fID0IYsVitYC"], ["created_at", "2015-03-18 22:47:24.008038"], ["updated_at", "2015-03-18 22:47:24.008038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$30Rffw22gMN5ZapJ9w8w..4Qb3ZFd2YoBhNxncya1J/6MdP3HgoiO"], ["created_at", "2015-03-18 22:47:24.012351"], ["updated_at", "2015-03-18 22:47:24.012351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:24.013892"], ["user_id", "be6b7b86-cdc0-11e4-97fa-705681abff85"], ["created_at", "2015-03-18 22:47:24.014802"], ["updated_at", "2015-03-18 22:47:24.014802"], ["token", "EpewexB5_i6_u06FVQTXi150CojtbspEJ1I06FrPEs0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:24.018916"], ["updated_at", "2015-03-18 22:47:24.018916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be6b7b86-cdc0-11e4-97fa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be6d217a-cdc0-11e4-855a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be6b7b86-cdc0-11e4-97fa-705681abff85"], ["organization_id", "be6d217a-cdc0-11e4-855a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:24.022245"], ["updated_at", "2015-03-18 22:47:24.022245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be6c2194-cdc0-11e4-9d7b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be6d217a-cdc0-11e4-855a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be6c2194-cdc0-11e4-9d7b-705681abff85"], ["organization_id", "be6d217a-cdc0-11e4-855a-705681abff85"], ["created_at", "2015-03-18 22:47:24.025168"], ["updated_at", "2015-03-18 22:47:24.025168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/be6d217a-cdc0-11e4-855a-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:47:24 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"be6d217a-cdc0-11e4-855a-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:47:24.031370' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EpewexB5_i6_u06FVQTXi150CojtbspEJ1I06FrPEs0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:47:24.033004"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:47:24.033971"], ["id", "be6c921e-cdc0-11e4-a16f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be6b7b86-cdc0-11e4-97fa-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "be6b7b86-cdc0-11e4-97fa-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "be6d217a-cdc0-11e4-855a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "be6d217a-cdc0-11e4-855a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('be6b7b86-cdc0-11e4-97fa-705681abff85', 'be6c2194-cdc0-11e4-9d7b-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('be6d217a-cdc0-11e4-855a-705681abff85') Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$CUw9xEhJOHLc.cuBQmqm7eLLes5Sog3C.SjE5HtKj3GM0EEeeNB2C"], ["created_at", "2015-03-18 22:47:24.048107"], ["updated_at", "2015-03-18 22:47:24.048107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$7g8Z0hnkbyobdnV34mxaYO8Z52IJeFOOZ0hVGhEQKxm5g80DHqaDC"], ["created_at", "2015-03-18 22:47:24.052520"], ["updated_at", "2015-03-18 22:47:24.052520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:24.054121"], ["user_id", "be7198d6-cdc0-11e4-80ca-705681abff85"], ["created_at", "2015-03-18 22:47:24.054890"], ["updated_at", "2015-03-18 22:47:24.054890"], ["token", "9-LFQXMZtF2cgSLq6mj7gFG5rfEBoGxknSWYfzLGeUk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:24.058291"], ["updated_at", "2015-03-18 22:47:24.058291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be7198d6-cdc0-11e4-80ca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be732520-cdc0-11e4-8caa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be7198d6-cdc0-11e4-80ca-705681abff85"], ["organization_id", "be732520-cdc0-11e4-8caa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:24.061605"], ["updated_at", "2015-03-18 22:47:24.061605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be724484-cdc0-11e4-b8ba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be732520-cdc0-11e4-8caa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be724484-cdc0-11e4-b8ba-705681abff85"], ["organization_id", "be732520-cdc0-11e4-8caa-705681abff85"], ["created_at", "2015-03-18 22:47:24.064873"], ["updated_at", "2015-03-18 22:47:24.064873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 15:47:24 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$da9Kcw5E4aZTxO/3f2gytOxpw207lYyHNQP9MUvHmUglpffuSG8nO"], ["created_at", "2015-03-18 22:47:24.074635"], ["updated_at", "2015-03-18 22:47:24.074635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$cuSHj3i/XrFTabBhSF6dEux7iErt.WORMGUgeKnckG4huTwRVKKRe"], ["created_at", "2015-03-18 22:47:24.079291"], ["updated_at", "2015-03-18 22:47:24.079291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:24.081295"], ["user_id", "be75a43a-cdc0-11e4-a819-705681abff85"], ["created_at", "2015-03-18 22:47:24.082103"], ["updated_at", "2015-03-18 22:47:24.082103"], ["token", "9UDxISuofOHcq-P61C_6DCyXI0gFL8-NYfTBIgbEwx4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:24.085671"], ["updated_at", "2015-03-18 22:47:24.085671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be75a43a-cdc0-11e4-a819-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be775064-cdc0-11e4-b4f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be75a43a-cdc0-11e4-a819-705681abff85"], ["organization_id", "be775064-cdc0-11e4-b4f6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:24.088849"], ["updated_at", "2015-03-18 22:47:24.088849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be7661a4-cdc0-11e4-8aa7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be775064-cdc0-11e4-b4f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be7661a4-cdc0-11e4-8aa7-705681abff85"], ["organization_id", "be775064-cdc0-11e4-b4f6-705681abff85"], ["created_at", "2015-03-18 22:47:24.091851"], ["updated_at", "2015-03-18 22:47:24.091851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/be77cd0a-cdc0-11e4-a917-705681abff85" for 127.0.0.1 at 2015-03-18 15:47:24 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"be77cd0a-cdc0-11e4-a917-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:47:24.096209' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9UDxISuofOHcq-P61C_6DCyXI0gFL8-NYfTBIgbEwx4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:47:24.098050"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:47:24.099356"], ["id", "be76cefa-cdc0-11e4-9802-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be75a43a-cdc0-11e4-a819-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "be75a43a-cdc0-11e4-a819-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "be77cd0a-cdc0-11e4-a917-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "be775064-cdc0-11e4-b4f6-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'be75a43a-cdc0-11e4-a819-705681abff85' LIMIT 1 [["organization_id", "be775064-cdc0-11e4-b4f6-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be75a43a-cdc0-11e4-a819-705681abff85"]] Completed 200 OK in 18ms (Views: 2.9ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$b2m16Bdx7pcx00CbgXIWuu9kHykYhkJdnq6X.GwB3mk.p1M3lhCbC"], ["created_at", "2015-03-18 22:47:24.124262"], ["updated_at", "2015-03-18 22:47:24.124262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$YIh7OhIxKT5AzdmJ8X3F8u4.B1WINnqksv5brEpFbKjXDGa5rWiNG"], ["created_at", "2015-03-18 22:47:24.129090"], ["updated_at", "2015-03-18 22:47:24.129090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:24.138321"], ["user_id", "be7d37c2-cdc0-11e4-a9a9-705681abff85"], ["created_at", "2015-03-18 22:47:24.139833"], ["updated_at", "2015-03-18 22:47:24.139833"], ["token", "BtrP5qS4MXmkghMv3COL5O8mpkUH_jqULNLYYQaBBvU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:24.144675"], ["updated_at", "2015-03-18 22:47:24.144675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be7d37c2-cdc0-11e4-a9a9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be805d76-cdc0-11e4-b1c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be7d37c2-cdc0-11e4-a9a9-705681abff85"], ["organization_id", "be805d76-cdc0-11e4-b1c5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:24.148925"], ["updated_at", "2015-03-18 22:47:24.148925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be7f04e4-cdc0-11e4-8dca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be805d76-cdc0-11e4-b1c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be7f04e4-cdc0-11e4-8dca-705681abff85"], ["organization_id", "be805d76-cdc0-11e4-b1c5-705681abff85"], ["created_at", "2015-03-18 22:47:24.152243"], ["updated_at", "2015-03-18 22:47:24.152243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 15:47:24 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$rCD4WrbjPuqM/7ePmaV6EOhuTV6OdcSKUHATwY63qeGspJCiJMBT6"], ["created_at", "2015-03-18 22:47:24.162231"], ["updated_at", "2015-03-18 22:47:24.162231"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (5.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$lMn9pXxoX0jZp7RHVvc15u.r710KN7bSlooh0TiDZcLyu1RGgcBUG"], ["created_at", "2015-03-18 22:47:24.167733"], ["updated_at", "2015-03-18 22:47:24.167733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:47:24.175185"], ["user_id", "be8304f4-cdc0-11e4-9dbb-705681abff85"], ["created_at", "2015-03-18 22:47:24.175985"], ["updated_at", "2015-03-18 22:47:24.175985"], ["token", "f559gdaJKzrBtd9KftieWjBTXwTDox4dNtdzMiogDn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:47:24.179455"], ["updated_at", "2015-03-18 22:47:24.179455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be8304f4-cdc0-11e4-9dbb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be85a2c2-cdc0-11e4-8d98-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be8304f4-cdc0-11e4-9dbb-705681abff85"], ["organization_id", "be85a2c2-cdc0-11e4-8d98-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:47:24.182793"], ["updated_at", "2015-03-18 22:47:24.182793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be83db18-cdc0-11e4-9187-705681abff85' AND "clubhouse_memberships"."organization_id" = 'be85a2c2-cdc0-11e4-8d98-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be83db18-cdc0-11e4-9187-705681abff85"], ["organization_id", "be85a2c2-cdc0-11e4-8d98-705681abff85"], ["created_at", "2015-03-18 22:47:24.185869"], ["updated_at", "2015-03-18 22:47:24.185869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/be8699de-cdc0-11e4-8b2d-705681abff85" for 127.0.0.1 at 2015-03-18 15:47:24 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"be8699de-cdc0-11e4-8b2d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:47:24.190206' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "f559gdaJKzrBtd9KftieWjBTXwTDox4dNtdzMiogDn8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:47:24.191662"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:47:24.192838"], ["id", "be85231a-cdc0-11e4-8aad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be8304f4-cdc0-11e4-9dbb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "be8304f4-cdc0-11e4-9dbb-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$zo986olD1pkZVZ5EC/choOcgXV5x2rSFc0UINJwDAf8PEFA7b6iq2"], ["created_at", "2015-03-18 22:49:57.843044"], ["updated_at", "2015-03-18 22:49:57.843044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$96stJpIcI4VmCnACw3DKOO4Q1rcsAhMAXv5xuMTOtWVc.u9Y4Hw52"], ["created_at", "2015-03-18 22:49:57.873722"], ["updated_at", "2015-03-18 22:49:57.873722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:57.881742"], ["user_id", "1a20b0a4-cdc1-11e4-955f-705681abff85"], ["created_at", "2015-03-18 22:49:57.919466"], ["updated_at", "2015-03-18 22:49:57.919466"], ["token", "aiA8oEpX38tXCowAB_beEbpHastsvE1pvrwO5Ws1D1E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:57.928733"], ["updated_at", "2015-03-18 22:49:57.928733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a20b0a4-cdc1-11e4-955f-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a29f934-cdc1-11e4-accb-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a20b0a4-cdc1-11e4-955f-705681abff85"], ["organization_id", "1a29f934-cdc1-11e4-accb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:57.941069"], ["updated_at", "2015-03-18 22:49:57.941069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a21860a-cdc1-11e4-9602-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a29f934-cdc1-11e4-accb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a21860a-cdc1-11e4-9602-705681abff85"], ["organization_id", "1a29f934-cdc1-11e4-accb-705681abff85"], ["created_at", "2015-03-18 22:49:57.945529"], ["updated_at", "2015-03-18 22:49:57.945529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 15:49:57 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$I4243KEU1W9gB5z/BfxlgeHepcllPTg//E/9ucfJG3gaX0C.oicDy"], ["created_at", "2015-03-18 22:49:57.982094"], ["updated_at", "2015-03-18 22:49:57.982094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$8X08QKAM3E7fzWwQCzu2auefstDHa6tAMF8aw3us4dChplL6ZqKVm"], ["created_at", "2015-03-18 22:49:57.986649"], ["updated_at", "2015-03-18 22:49:57.986649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:57.988167"], ["user_id", "1a3217d6-cdc1-11e4-9888-705681abff85"], ["created_at", "2015-03-18 22:49:57.988970"], ["updated_at", "2015-03-18 22:49:57.988970"], ["token", "Y8WUlU0U7dJR6Y0iTrkgvuyZ0LLXB2eYnlCQzpKf9NI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.000186"], ["updated_at", "2015-03-18 22:49:58.000186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a3217d6-cdc1-11e4-9888-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a34d32c-cdc1-11e4-8fa5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a3217d6-cdc1-11e4-9888-705681abff85"], ["organization_id", "1a34d32c-cdc1-11e4-8fa5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.003612"], ["updated_at", "2015-03-18 22:49:58.003612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a32bd30-cdc1-11e4-9bea-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a34d32c-cdc1-11e4-8fa5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a32bd30-cdc1-11e4-9bea-705681abff85"], ["organization_id", "1a34d32c-cdc1-11e4-8fa5-705681abff85"], ["created_at", "2015-03-18 22:49:58.006654"], ["updated_at", "2015-03-18 22:49:58.006654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1a35c9da-cdc1-11e4-91ba-705681abff85" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1a35c9da-cdc1-11e4-91ba-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:49:58.011304' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y8WUlU0U7dJR6Y0iTrkgvuyZ0LLXB2eYnlCQzpKf9NI"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:49:58.019348"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:49:58.025767"], ["id", "1a332036-cdc1-11e4-9a56-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a3217d6-cdc1-11e4-9888-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1a3217d6-cdc1-11e4-9888-705681abff85"]] Completed 500 Internal Server Error in 63ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$U2eTj6BKSu2qRPe0y9BRROtC1uGv4Th08tROU9wKQ54fQBn2A82Q2"], ["created_at", "2015-03-18 22:49:58.079407"], ["updated_at", "2015-03-18 22:49:58.079407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$1m.KIleUkDZF/TrsPJM1oOzi9NeAilCbasC0NYTrvmOjP6dpZ2x1u"], ["created_at", "2015-03-18 22:49:58.083579"], ["updated_at", "2015-03-18 22:49:58.083579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.085070"], ["user_id", "1a40e8e2-cdc1-11e4-b1bf-705681abff85"], ["created_at", "2015-03-18 22:49:58.085805"], ["updated_at", "2015-03-18 22:49:58.085805"], ["token", "V4uuxMeUjvvfLJWzM5tKlAvwbhscDQ-6ZwBU6xoZCcQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.089194"], ["updated_at", "2015-03-18 22:49:58.089194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a40e8e2-cdc1-11e4-b1bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a426384-cdc1-11e4-a8cd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a40e8e2-cdc1-11e4-b1bf-705681abff85"], ["organization_id", "1a426384-cdc1-11e4-a8cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.092665"], ["updated_at", "2015-03-18 22:49:58.092665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a418810-cdc1-11e4-bec9-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a426384-cdc1-11e4-a8cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a418810-cdc1-11e4-bec9-705681abff85"], ["organization_id", "1a426384-cdc1-11e4-a8cd-705681abff85"], ["created_at", "2015-03-18 22:49:58.095790"], ["updated_at", "2015-03-18 22:49:58.095790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$HAnlMHeRvTPQMV2EaqDgkucWdIhyVPCXD8zyxa6XmOctsOxEhFyiy"], ["created_at", "2015-03-18 22:49:58.100270"], ["updated_at", "2015-03-18 22:49:58.100270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.101804"], ["user_id", "1a441580-cdc1-11e4-ac7b-705681abff85"], ["created_at", "2015-03-18 22:49:58.102555"], ["updated_at", "2015-03-18 22:49:58.102555"], ["token", "IIvMHJXGQJKjUEq6ADPGSKY2cZUyXJrB18Fa2dNM7uo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '1a426384-cdc1-11e4-a8cd-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "1a426384-cdc1-11e4-a8cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.112826"], ["updated_at", "2015-03-18 22:49:58.112826"], ["token", "qJGhsXiDZnBCzMLmDscwfJgRx5012SKQWQShX5yaPoU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$XyEhO3/2jx0d6eoqKgt9JOUP45aGmj/WNxbH0tJIKHkfmDobjURjW"], ["created_at", "2015-03-18 22:49:58.125139"], ["updated_at", "2015-03-18 22:49:58.125139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$8eL.cD0e8ZN2pxTLBwZxmu/19xQsTJzlKywSDSdRLJVKFI8xtlpf6"], ["created_at", "2015-03-18 22:49:58.129535"], ["updated_at", "2015-03-18 22:49:58.129535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.131070"], ["user_id", "1a47e3f4-cdc1-11e4-8503-705681abff85"], ["created_at", "2015-03-18 22:49:58.131818"], ["updated_at", "2015-03-18 22:49:58.131818"], ["token", "VZMQcR10iRYfSJgeVWXBjTj2GAlogYfky9XtW69LnBA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.135258"], ["updated_at", "2015-03-18 22:49:58.135258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a47e3f4-cdc1-11e4-8503-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a496aa8-cdc1-11e4-8446-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a47e3f4-cdc1-11e4-8503-705681abff85"], ["organization_id", "1a496aa8-cdc1-11e4-8446-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.138750"], ["updated_at", "2015-03-18 22:49:58.138750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a488c0a-cdc1-11e4-a202-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a496aa8-cdc1-11e4-8446-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a488c0a-cdc1-11e4-a202-705681abff85"], ["organization_id", "1a496aa8-cdc1-11e4-8446-705681abff85"], ["created_at", "2015-03-18 22:49:58.142043"], ["updated_at", "2015-03-18 22:49:58.142043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$K6PUimupfOF4H8MnkYSPxe4DO3BwRF7c8YxQwOtCIhTFIM6wlZq0m"], ["created_at", "2015-03-18 22:49:58.146871"], ["updated_at", "2015-03-18 22:49:58.146871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.148453"], ["user_id", "1a4b3356-cdc1-11e4-8e89-705681abff85"], ["created_at", "2015-03-18 22:49:58.149241"], ["updated_at", "2015-03-18 22:49:58.149241"], ["token", "R_KZcJO56R9YRJfyYQRQNXTpqzb0_ET7K2Ho5IZeFQY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '1a496aa8-cdc1-11e4-8446-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "1a496aa8-cdc1-11e4-8446-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.152799"], ["updated_at", "2015-03-18 22:49:58.152799"], ["token", "3PQeoCAk7cNmNv9T4hIJPe6ekCvBDsIJOK3lKtC644c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1a496aa8-cdc1-11e4-8446-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"3PQeoCAk7cNmNv9T4hIJPe6ekCvBDsIJOK3lKtC644c", "organization_id"=>"1a496aa8-cdc1-11e4-8446-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:49:58.158170' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "R_KZcJO56R9YRJfyYQRQNXTpqzb0_ET7K2Ho5IZeFQY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:49:58.159617"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:49:58.160577"], ["id", "1a4b93d2-cdc1-11e4-afbe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a4b3356-cdc1-11e4-8e89-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1a4b3356-cdc1-11e4-8e89-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1a496aa8-cdc1-11e4-8446-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "3PQeoCAk7cNmNv9T4hIJPe6ekCvBDsIJOK3lKtC644c"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1a496aa8-cdc1-11e4-8446-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1a496aa8-cdc1-11e4-8446-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a4b3356-cdc1-11e4-8e89-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a496aa8-cdc1-11e4-8446-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a4b3356-cdc1-11e4-8e89-705681abff85"], ["admin", "t"], ["organization_id", "1a496aa8-cdc1-11e4-8446-705681abff85"], ["created_at", "2015-03-18 22:49:58.175410"], ["updated_at", "2015-03-18 22:49:58.175410"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "1a4c1c12-cdc1-11e4-b426-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 25ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$4M9jpYlGsFiefIh7AGIupOL/GV3HO/z1E/k/nFAPvhGdl5aUZrIo6"], ["created_at", "2015-03-18 22:49:58.189270"], ["updated_at", "2015-03-18 22:49:58.189270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$r0eiDsuD6u/TdmI8.7SKN.9niYTfU48aX2cEYB.LSFxRH..zutzlu"], ["created_at", "2015-03-18 22:49:58.193794"], ["updated_at", "2015-03-18 22:49:58.193794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.195395"], ["user_id", "1a51b064-cdc1-11e4-907b-705681abff85"], ["created_at", "2015-03-18 22:49:58.196650"], ["updated_at", "2015-03-18 22:49:58.196650"], ["token", "QJu_nbTwtKDDLUzrTidppvkFCGc4rudPQJ2uOVkfLtM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.202043"], ["updated_at", "2015-03-18 22:49:58.202043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a51b064-cdc1-11e4-907b-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a53a16c-cdc1-11e4-bf3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a51b064-cdc1-11e4-907b-705681abff85"], ["organization_id", "1a53a16c-cdc1-11e4-bf3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.205838"], ["updated_at", "2015-03-18 22:49:58.205838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a525af0-cdc1-11e4-a205-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a53a16c-cdc1-11e4-bf3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a525af0-cdc1-11e4-a205-705681abff85"], ["organization_id", "1a53a16c-cdc1-11e4-bf3e-705681abff85"], ["created_at", "2015-03-18 22:49:58.209681"], ["updated_at", "2015-03-18 22:49:58.209681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$UAXZFdevVPYhgPPaYqyOsONXqm3qZbFR8wAsSVandMTUkYRZ1sKyK"], ["created_at", "2015-03-18 22:49:58.214292"], ["updated_at", "2015-03-18 22:49:58.214292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.215962"], ["user_id", "1a557dac-cdc1-11e4-af1e-705681abff85"], ["created_at", "2015-03-18 22:49:58.216734"], ["updated_at", "2015-03-18 22:49:58.216734"], ["token", "QMFV7W-JqUV6le_HAipsHfMbRHb7F7U6PGMGCmjQ_2M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '1a53a16c-cdc1-11e4-bf3e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "1a53a16c-cdc1-11e4-bf3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.220901"], ["updated_at", "2015-03-18 22:49:58.220901"], ["token", "AP6fMY6K650gPMRghv1StcaXLamqjF5u56wNTFYS_J4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1a53a16c-cdc1-11e4-bf3e-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"1a53a16c-cdc1-11e4-bf3e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:49:58.227870' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QMFV7W-JqUV6le_HAipsHfMbRHb7F7U6PGMGCmjQ_2M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:49:58.229432"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:49:58.230395"], ["id", "1a55e080-cdc1-11e4-ad2a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a557dac-cdc1-11e4-af1e-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1a557dac-cdc1-11e4-af1e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1a53a16c-cdc1-11e4-bf3e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$iyFrmOEtzi7Gs7pmHquUcuYsf4EStHT1eW7xtBtiVJ2odVHKtpq62"], ["created_at", "2015-03-18 22:49:58.244315"], ["updated_at", "2015-03-18 22:49:58.244315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$76iGYMX7bwi6favuqc.qku6gwehuC7gHSUzzEewfxSU7nN2kIQRSu"], ["created_at", "2015-03-18 22:49:58.248867"], ["updated_at", "2015-03-18 22:49:58.248867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.250513"], ["user_id", "1a5a1830-cdc1-11e4-b39b-705681abff85"], ["created_at", "2015-03-18 22:49:58.251367"], ["updated_at", "2015-03-18 22:49:58.251367"], ["token", "aLmgB2MfnEwbmKdmo9JwaRgw-AP3WCfS9HI0M58Ifj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.256361"], ["updated_at", "2015-03-18 22:49:58.256361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a5a1830-cdc1-11e4-b39b-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a5c029e-cdc1-11e4-8919-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a5a1830-cdc1-11e4-b39b-705681abff85"], ["organization_id", "1a5c029e-cdc1-11e4-8919-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.261161"], ["updated_at", "2015-03-18 22:49:58.261161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a5ac3ac-cdc1-11e4-a1c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a5c029e-cdc1-11e4-8919-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a5ac3ac-cdc1-11e4-a1c4-705681abff85"], ["organization_id", "1a5c029e-cdc1-11e4-8919-705681abff85"], ["created_at", "2015-03-18 22:49:58.264772"], ["updated_at", "2015-03-18 22:49:58.264772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$P6IDE2OPlgiRk.aNRz1N0ef3gbV8kllxYNbFMIF77EvFxh.Lu6GN2"], ["created_at", "2015-03-18 22:49:58.282136"], ["updated_at", "2015-03-18 22:49:58.282136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$RO.BYxVceuM6m1yjTjNmXOUsFN6gPp6aOULxQoBUIVCTvEbbRSS3G"], ["created_at", "2015-03-18 22:49:58.287475"], ["updated_at", "2015-03-18 22:49:58.287475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.289124"], ["user_id", "1a5fda68-cdc1-11e4-8397-705681abff85"], ["created_at", "2015-03-18 22:49:58.289890"], ["updated_at", "2015-03-18 22:49:58.289890"], ["token", "TtlFJ9GYFrn2szcZG0jzd2Oux6Z-q8v8VwFIR8BAp58"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.293334"], ["updated_at", "2015-03-18 22:49:58.293334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a5fda68-cdc1-11e4-8397-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a618b4c-cdc1-11e4-aeb5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a5fda68-cdc1-11e4-8397-705681abff85"], ["organization_id", "1a618b4c-cdc1-11e4-aeb5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.296655"], ["updated_at", "2015-03-18 22:49:58.296655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a60a704-cdc1-11e4-80a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a618b4c-cdc1-11e4-aeb5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a60a704-cdc1-11e4-80a3-705681abff85"], ["organization_id", "1a618b4c-cdc1-11e4-aeb5-705681abff85"], ["created_at", "2015-03-18 22:49:58.299621"], ["updated_at", "2015-03-18 22:49:58.299621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1a618b4c-cdc1-11e4-aeb5-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1a618b4c-cdc1-11e4-aeb5-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:49:58.304304' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TtlFJ9GYFrn2szcZG0jzd2Oux6Z-q8v8VwFIR8BAp58"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:49:58.305771"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:49:58.306693"], ["id", "1a610b86-cdc1-11e4-b4d6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a5fda68-cdc1-11e4-8397-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1a5fda68-cdc1-11e4-8397-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1a618b4c-cdc1-11e4-aeb5-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "1a618b4c-cdc1-11e4-aeb5-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('1a5fda68-cdc1-11e4-8397-705681abff85', '1a60a704-cdc1-11e4-80a3-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('1a618b4c-cdc1-11e4-aeb5-705681abff85') Completed 500 Internal Server Error in 19ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$6302Ck4wq4GtwvbMzxqjceDLy7no40kVECK76mqPIb0wqKBZmv2xq"], ["created_at", "2015-03-18 22:49:58.328821"], ["updated_at", "2015-03-18 22:49:58.328821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$O3jQPpgaCFswonai7yFRgOue2c5U565qV0FvBUH.MUVT1ro90w/Ui"], ["created_at", "2015-03-18 22:49:58.333261"], ["updated_at", "2015-03-18 22:49:58.333261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.334904"], ["user_id", "1a66fb9a-cdc1-11e4-8821-705681abff85"], ["created_at", "2015-03-18 22:49:58.335673"], ["updated_at", "2015-03-18 22:49:58.335673"], ["token", "DcuAt4DmJVz1ORKxwGOIvBUFsqFW2p87ObrKQ_2nUMU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.339108"], ["updated_at", "2015-03-18 22:49:58.339108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a66fb9a-cdc1-11e4-8821-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a689626-cdc1-11e4-88bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a66fb9a-cdc1-11e4-8821-705681abff85"], ["organization_id", "1a689626-cdc1-11e4-88bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.343619"], ["updated_at", "2015-03-18 22:49:58.343619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a67a0d6-cdc1-11e4-8efa-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a689626-cdc1-11e4-88bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a67a0d6-cdc1-11e4-8efa-705681abff85"], ["organization_id", "1a689626-cdc1-11e4-88bb-705681abff85"], ["created_at", "2015-03-18 22:49:58.348146"], ["updated_at", "2015-03-18 22:49:58.348146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ZloJduci6aVYQIM9oDyWlOJiQQCQmk7LQ6Eqsd4Y6yn0GkMeEdFMK"], ["created_at", "2015-03-18 22:49:58.362309"], ["updated_at", "2015-03-18 22:49:58.362309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$EtLZzqyAywbjs4nLNYo3oeflxB7w5kpYBg0WX52UDf4zi0IKLWg3u"], ["created_at", "2015-03-18 22:49:58.368348"], ["updated_at", "2015-03-18 22:49:58.368348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.371965"], ["user_id", "1a6c1a76-cdc1-11e4-bbb3-705681abff85"], ["created_at", "2015-03-18 22:49:58.373315"], ["updated_at", "2015-03-18 22:49:58.373315"], ["token", "TwTHISG0tCsqPljgn28jKrvud6MlJh-fEjMiJcpb6PQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.378237"], ["updated_at", "2015-03-18 22:49:58.378237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a6c1a76-cdc1-11e4-bbb3-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a6e8f0e-cdc1-11e4-b2e8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a6c1a76-cdc1-11e4-bbb3-705681abff85"], ["organization_id", "1a6e8f0e-cdc1-11e4-b2e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.383273"], ["updated_at", "2015-03-18 22:49:58.383273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a6d22e0-cdc1-11e4-a996-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a6e8f0e-cdc1-11e4-b2e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a6d22e0-cdc1-11e4-a996-705681abff85"], ["organization_id", "1a6e8f0e-cdc1-11e4-b2e8-705681abff85"], ["created_at", "2015-03-18 22:49:58.387699"], ["updated_at", "2015-03-18 22:49:58.387699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:49:58.395139' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TwTHISG0tCsqPljgn28jKrvud6MlJh-fEjMiJcpb6PQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:49:58.397208"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:49:58.398247"], ["id", "1a6dd302-cdc1-11e4-880d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a6c1a76-cdc1-11e4-bbb3-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1a6c1a76-cdc1-11e4-bbb3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "1a6e8f0e-cdc1-11e4-b2e8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('1a6c1a76-cdc1-11e4-bbb3-705681abff85', '1a6d22e0-cdc1-11e4-a996-705681abff85') Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('1a6e8f0e-cdc1-11e4-b2e8-705681abff85') Completed 500 Internal Server Error in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$1ztrsDhbiJhLY.ExTbwxlOKYnhFiggSHNHjv5H30PcE0/.GsDES2i"], ["created_at", "2015-03-18 22:49:58.416503"], ["updated_at", "2015-03-18 22:49:58.416503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$rw20RQGJEN8d7kk8Gu3Upu1TN62QF0NOBqThBYecde5IyGspR.p4K"], ["created_at", "2015-03-18 22:49:58.421811"], ["updated_at", "2015-03-18 22:49:58.421811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.423643"], ["user_id", "1a7462bc-cdc1-11e4-ac33-705681abff85"], ["created_at", "2015-03-18 22:49:58.424507"], ["updated_at", "2015-03-18 22:49:58.424507"], ["token", "n_2et_vtABeF7PNps_e56NLPGPQR3r6xdp7C3dKJXLs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.428521"], ["updated_at", "2015-03-18 22:49:58.428521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a7462bc-cdc1-11e4-ac33-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a762b38-cdc1-11e4-bd77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a7462bc-cdc1-11e4-ac33-705681abff85"], ["organization_id", "1a762b38-cdc1-11e4-bd77-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.431895"], ["updated_at", "2015-03-18 22:49:58.431895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a7528aa-cdc1-11e4-8de6-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a762b38-cdc1-11e4-bd77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a7528aa-cdc1-11e4-8de6-705681abff85"], ["organization_id", "1a762b38-cdc1-11e4-bd77-705681abff85"], ["created_at", "2015-03-18 22:49:58.435082"], ["updated_at", "2015-03-18 22:49:58.435082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$IVApjeJSguQs2CRRZcAk8.eo7qoipxCIv4I2vpxin9pZDX/oxYdY2"], ["created_at", "2015-03-18 22:49:58.444743"], ["updated_at", "2015-03-18 22:49:58.444743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$R7w3706iuGOIe27t/Mrz4OW3QgJmMFLCmSlpJNHgOZr.vMa9mK8YC"], ["created_at", "2015-03-18 22:49:58.449723"], ["updated_at", "2015-03-18 22:49:58.449723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.451425"], ["user_id", "1a78a610-cdc1-11e4-bcf5-705681abff85"], ["created_at", "2015-03-18 22:49:58.452325"], ["updated_at", "2015-03-18 22:49:58.452325"], ["token", "QJnpfR3LGruhYNC3OnCxbq0s139gWsLFiDXevG4qYkY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.458258"], ["updated_at", "2015-03-18 22:49:58.458258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a78a610-cdc1-11e4-bcf5-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a7ac850-cdc1-11e4-b7e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a78a610-cdc1-11e4-bcf5-705681abff85"], ["organization_id", "1a7ac850-cdc1-11e4-b7e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.462300"], ["updated_at", "2015-03-18 22:49:58.462300"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a796a6e-cdc1-11e4-a29e-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a7ac850-cdc1-11e4-b7e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a796a6e-cdc1-11e4-a29e-705681abff85"], ["organization_id", "1a7ac850-cdc1-11e4-b7e3-705681abff85"], ["created_at", "2015-03-18 22:49:58.466158"], ["updated_at", "2015-03-18 22:49:58.466158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1a7b52c0-cdc1-11e4-a62a-705681abff85" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1a7b52c0-cdc1-11e4-a62a-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:49:58.470875' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QJnpfR3LGruhYNC3OnCxbq0s139gWsLFiDXevG4qYkY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:49:58.472534"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:49:58.474108"], ["id", "1a79e26e-cdc1-11e4-a61a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a78a610-cdc1-11e4-bcf5-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1a78a610-cdc1-11e4-bcf5-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "1a7b52c0-cdc1-11e4-a62a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1a7ac850-cdc1-11e4-b7e3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1a78a610-cdc1-11e4-bcf5-705681abff85' LIMIT 1 [["organization_id", "1a7ac850-cdc1-11e4-b7e3-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a78a610-cdc1-11e4-bcf5-705681abff85"]] Completed 200 OK in 16ms (Views: 1.9ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$rzeEY1H1/k//gUBJMk1kxulHroKofqZbZx7eHjeBUTimlORIDFXDq"], ["created_at", "2015-03-18 22:49:58.495508"], ["updated_at", "2015-03-18 22:49:58.495508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$1Qtjqgts0XACIdGASSgsZ./L.oa4RJv2CzDBIpYqcUDNk.5Q6mJHy"], ["created_at", "2015-03-18 22:49:58.499621"], ["updated_at", "2015-03-18 22:49:58.499621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.501083"], ["user_id", "1a80659e-cdc1-11e4-adad-705681abff85"], ["created_at", "2015-03-18 22:49:58.501849"], ["updated_at", "2015-03-18 22:49:58.501849"], ["token", "s2gCYrvgjXzXjGgcVkq7bYRbXGzsMX-QbmABXeC90-A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.505224"], ["updated_at", "2015-03-18 22:49:58.505224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a80659e-cdc1-11e4-adad-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a81ddb6-cdc1-11e4-9e77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a80659e-cdc1-11e4-adad-705681abff85"], ["organization_id", "1a81ddb6-cdc1-11e4-9e77-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.508501"], ["updated_at", "2015-03-18 22:49:58.508501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a810238-cdc1-11e4-99fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a81ddb6-cdc1-11e4-9e77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a810238-cdc1-11e4-99fa-705681abff85"], ["organization_id", "1a81ddb6-cdc1-11e4-9e77-705681abff85"], ["created_at", "2015-03-18 22:49:58.511668"], ["updated_at", "2015-03-18 22:49:58.511668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$q7qMY3xVUZ3ETzVvGUiELObv/WIFJ1okwnVfMkvzX5YDpWkYbFbja"], ["created_at", "2015-03-18 22:49:58.524743"], ["updated_at", "2015-03-18 22:49:58.524743"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$yU..CfwdRmNNJN9JPJGuWuf/gFXpc8hhGXKY/gHGotmVzk3V7xpKe"], ["created_at", "2015-03-18 22:49:58.530116"], ["updated_at", "2015-03-18 22:49:58.530116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.531736"], ["user_id", "1a84dfac-cdc1-11e4-9812-705681abff85"], ["created_at", "2015-03-18 22:49:58.532522"], ["updated_at", "2015-03-18 22:49:58.532522"], ["token", "E7y3Q8QHCrDJjDcCCh0EQb1IESM3ZBa7cdxwAVmV_IY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.537276"], ["updated_at", "2015-03-18 22:49:58.537276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a84dfac-cdc1-11e4-9812-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a86c9de-cdc1-11e4-8f8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a84dfac-cdc1-11e4-9812-705681abff85"], ["organization_id", "1a86c9de-cdc1-11e4-8f8a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.540866"], ["updated_at", "2015-03-18 22:49:58.540866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a85ad74-cdc1-11e4-aa0a-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a86c9de-cdc1-11e4-8f8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a85ad74-cdc1-11e4-aa0a-705681abff85"], ["organization_id", "1a86c9de-cdc1-11e4-8f8a-705681abff85"], ["created_at", "2015-03-18 22:49:58.543870"], ["updated_at", "2015-03-18 22:49:58.543870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1a87c294-cdc1-11e4-9ff8-705681abff85" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"1a87c294-cdc1-11e4-9ff8-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:49:58.548178' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "E7y3Q8QHCrDJjDcCCh0EQb1IESM3ZBa7cdxwAVmV_IY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:49:58.549624"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:49:58.550619"], ["id", "1a8617fa-cdc1-11e4-8409-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a84dfac-cdc1-11e4-9812-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1a84dfac-cdc1-11e4-9812-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$emTDbCqdnjh0DBMa4g4F7eRYyJtZ3oYKahBpwtSs34QhTIxGJZnQO"], ["created_at", "2015-03-18 22:49:58.561811"], ["updated_at", "2015-03-18 22:49:58.561811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$bvk2Y.rz6D1OgkJWPJ6.4OQTIdOBb3IX/EQvr38QreFNclrMU7Ug2"], ["created_at", "2015-03-18 22:49:58.566142"], ["updated_at", "2015-03-18 22:49:58.566142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.567693"], ["user_id", "1a8a845c-cdc1-11e4-97e7-705681abff85"], ["created_at", "2015-03-18 22:49:58.568538"], ["updated_at", "2015-03-18 22:49:58.568538"], ["token", "SXytTZfh14GjbLOt2y2K-wwzTixjfupkyzknvlbt4P0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.572053"], ["updated_at", "2015-03-18 22:49:58.572053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a8a845c-cdc1-11e4-97e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a8c116e-cdc1-11e4-9240-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a8a845c-cdc1-11e4-97e7-705681abff85"], ["organization_id", "1a8c116e-cdc1-11e4-9240-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.575663"], ["updated_at", "2015-03-18 22:49:58.575663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a8b29c0-cdc1-11e4-b391-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a8c116e-cdc1-11e4-9240-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a8b29c0-cdc1-11e4-b391-705681abff85"], ["organization_id", "1a8c116e-cdc1-11e4-9240-705681abff85"], ["created_at", "2015-03-18 22:49:58.578881"], ["updated_at", "2015-03-18 22:49:58.578881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$TbTGtK/sWohHdxKIYc.h8eLOxAijDvfRhQ3zAfT/69wv1.QLZAUqC"], ["created_at", "2015-03-18 22:49:58.583887"], ["updated_at", "2015-03-18 22:49:58.583887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.585480"], ["user_id", "1a8de174-cdc1-11e4-baab-705681abff85"], ["created_at", "2015-03-18 22:49:58.586413"], ["updated_at", "2015-03-18 22:49:58.586413"], ["token", "ZZI2caFQJf3F71wlE2T-501GKszSk3mIrq4sJATuUZI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '1a8c116e-cdc1-11e4-9240-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "1a8c116e-cdc1-11e4-9240-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.590708"], ["updated_at", "2015-03-18 22:49:58.590708"], ["token", "TS-y0_FJyO58kAED4WxPHQ_Pmo-zRvtuT_h7Trz1wWU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$.vmfrFvR3gB22H5k9jtJbexuj8ui0Tf2Sv1gjKcIDj/g9h5eW92Ji"], ["created_at", "2015-03-18 22:49:58.602060"], ["updated_at", "2015-03-18 22:49:58.602060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$bPvBytl2GCE77Dkxd/ruJe/Jz7WEwOK88SZWs5tDN1s2.vs/yglSC"], ["created_at", "2015-03-18 22:49:58.607357"], ["updated_at", "2015-03-18 22:49:58.607357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.608902"], ["user_id", "1a90bea8-cdc1-11e4-8726-705681abff85"], ["created_at", "2015-03-18 22:49:58.609667"], ["updated_at", "2015-03-18 22:49:58.609667"], ["token", "eQQpg9dIejPyhOHTDuoo56NBRir1iesZDVUKjh-trwk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.613017"], ["updated_at", "2015-03-18 22:49:58.613017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a90bea8-cdc1-11e4-8726-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a925196-cdc1-11e4-9a2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a90bea8-cdc1-11e4-8726-705681abff85"], ["organization_id", "1a925196-cdc1-11e4-9a2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.616277"], ["updated_at", "2015-03-18 22:49:58.616277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a9174ce-cdc1-11e4-88d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a925196-cdc1-11e4-9a2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a9174ce-cdc1-11e4-88d1-705681abff85"], ["organization_id", "1a925196-cdc1-11e4-9a2f-705681abff85"], ["created_at", "2015-03-18 22:49:58.619727"], ["updated_at", "2015-03-18 22:49:58.619727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$l6DS/UzyeIlaXtK6Q3uh8O5ei0romDNhStnbOaGrSMBDpiZQnDbye"], ["created_at", "2015-03-18 22:49:58.624644"], ["updated_at", "2015-03-18 22:49:58.624644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.626513"], ["user_id", "1a941e90-cdc1-11e4-8400-705681abff85"], ["created_at", "2015-03-18 22:49:58.627306"], ["updated_at", "2015-03-18 22:49:58.627306"], ["token", "dToyX8Z-tBEfkWAzM4HKbmUVndED03rHgrR4TLJihlQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '1a925196-cdc1-11e4-9a2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "1a925196-cdc1-11e4-9a2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.631109"], ["updated_at", "2015-03-18 22:49:58.631109"], ["token", "qQsbRp6LOPMk79j4UXbXMzi7H0lLrzy-IkK9vuIz1ck"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"qQsbRp6LOPMk79j4UXbXMzi7H0lLrzy-IkK9vuIz1ck", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:49:58.635866' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dToyX8Z-tBEfkWAzM4HKbmUVndED03rHgrR4TLJihlQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:49:58.637492"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:49:58.638734"], ["id", "1a948a56-cdc1-11e4-bce1-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a941e90-cdc1-11e4-8400-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1a941e90-cdc1-11e4-8400-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "qQsbRp6LOPMk79j4UXbXMzi7H0lLrzy-IkK9vuIz1ck"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1a925196-cdc1-11e4-9a2f-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1a925196-cdc1-11e4-9a2f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a941e90-cdc1-11e4-8400-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a925196-cdc1-11e4-9a2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a941e90-cdc1-11e4-8400-705681abff85"], ["admin", "t"], ["organization_id", "1a925196-cdc1-11e4-9a2f-705681abff85"], ["created_at", "2015-03-18 22:49:58.656254"], ["updated_at", "2015-03-18 22:49:58.656254"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "1a9519ee-cdc1-11e4-8b88-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 24ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$6mgVxrMzELnrEdGwhM5SI.12VkBBMRz1LocnO.PJsKmrr/3CBG1Lu"], ["created_at", "2015-03-18 22:49:58.664973"], ["updated_at", "2015-03-18 22:49:58.664973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$4ll51VmpzQ4Io1SPE0/BoewhcMiqifm55lfDrMUDBLwGrHAqqAUC2"], ["created_at", "2015-03-18 22:49:58.670444"], ["updated_at", "2015-03-18 22:49:58.670444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.673136"], ["user_id", "1a9a3fbe-cdc1-11e4-a25b-705681abff85"], ["created_at", "2015-03-18 22:49:58.674205"], ["updated_at", "2015-03-18 22:49:58.674205"], ["token", "u01L-n7vNHjuihcSMzeU9r0q-bpLaxA1Itdf3-Jk4nI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-18 22:49:58.678564"], ["updated_at", "2015-03-18 22:49:58.678564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a9a3fbe-cdc1-11e4-a25b-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a9c54b6-cdc1-11e4-9176-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a9a3fbe-cdc1-11e4-a25b-705681abff85"], ["organization_id", "1a9c54b6-cdc1-11e4-9176-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.682280"], ["updated_at", "2015-03-18 22:49:58.682280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a9b2b9a-cdc1-11e4-b887-705681abff85' AND "clubhouse_memberships"."organization_id" = '1a9c54b6-cdc1-11e4-9176-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a9b2b9a-cdc1-11e4-b887-705681abff85"], ["organization_id", "1a9c54b6-cdc1-11e4-9176-705681abff85"], ["created_at", "2015-03-18 22:49:58.685383"], ["updated_at", "2015-03-18 22:49:58.685383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$UNSwsOlkMy89hVPo4y7MAestyNGEH2xPbuVD1655WGY9kigYtH6UW"], ["created_at", "2015-03-18 22:49:58.689899"], ["updated_at", "2015-03-18 22:49:58.689899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-18 22:49:58.691382"], ["user_id", "1a9e0c66-cdc1-11e4-9d6c-705681abff85"], ["created_at", "2015-03-18 22:49:58.692181"], ["updated_at", "2015-03-18 22:49:58.692181"], ["token", "-l8aV9ADcj5YLj--nOfC45OZVgu-z19Vf6ArBGZpx0Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '1a9c54b6-cdc1-11e4-9176-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "1a9c54b6-cdc1-11e4-9176-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 22:49:58.696031"], ["updated_at", "2015-03-18 22:49:58.696031"], ["token", "wG4llPEBXIEVm4XItc5L63S0TKv9HW_EytgAUmEyKzw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 15:49:58 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-04 22:49:58.701402' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-l8aV9ADcj5YLj--nOfC45OZVgu-z19Vf6ArBGZpx0Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-18 22:49:58.703246"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-18 22:49:58.704676"], ["id", "1a9e6dc8-cdc1-11e4-ac7f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a9e0c66-cdc1-11e4-9d6c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "1a9e0c66-cdc1-11e4-9d6c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]]  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (13.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (14.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$urN.mY8ikFs7tP28QkiHEOfwi/4ys.p7yBzsnFl.2Zw2Zh/Fq4ojC"], ["created_at", "2015-03-18 23:55:16.141811"], ["updated_at", "2015-03-18 23:55:16.141811"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.170688"], ["updated_at", "2015-03-18 23:55:16.170688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '399b6a9c-cdca-11e4-abb4-705681abff85' AND "clubhouse_memberships"."organization_id" = '399e430c-cdca-11e4-9d29-705681abff85') LIMIT 1 SQL (6.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "399b6a9c-cdca-11e4-abb4-705681abff85"], ["organization_id", "399e430c-cdca-11e4-9d29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.187281"], ["updated_at", "2015-03-18 23:55:16.187281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (6.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '399e430c-cdca-11e4-9d29-705681abff85') LIMIT 1 SQL (4.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "399e430c-cdca-11e4-9d29-705681abff85"], ["created_at", "2015-03-18 23:55:16.209478"], ["updated_at", "2015-03-18 23:55:16.209478"], ["token", "UmC4C47qs5DaUx1HwIblGcHwHnyiSvD_B7ZX7vEPYOs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '399b6a9c-cdca-11e4-abb4-705681abff85' LIMIT 1 [["organization_id", "399e430c-cdca-11e4-9d29-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ZQAvrqsABvs7KF5cuoHj6ewRwVCbpJnY67xVsY23DbE3WTrkt6PeO"], ["created_at", "2015-03-18 23:55:16.236388"], ["updated_at", "2015-03-18 23:55:16.236388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.239620"], ["updated_at", "2015-03-18 23:55:16.239620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39a836aa-cdca-11e4-9f62-705681abff85' AND "clubhouse_memberships"."organization_id" = '39a8b2f6-cdca-11e4-a886-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39a836aa-cdca-11e4-9f62-705681abff85"], ["organization_id", "39a8b2f6-cdca-11e4-a886-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.243145"], ["updated_at", "2015-03-18 23:55:16.243145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '39a8b2f6-cdca-11e4-a886-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "39a8b2f6-cdca-11e4-a886-705681abff85"], ["created_at", "2015-03-18 23:55:16.246700"], ["updated_at", "2015-03-18 23:55:16.246700"], ["token", "zP9aqUj71-T00ZrJZbbc0iaedIlej1ROkJC_44aaToE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39a836aa-cdca-11e4-9f62-705681abff85' LIMIT 1 [["organization_id", "39a8b2f6-cdca-11e4-a886-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$tVhACi9L5C3cKE2UXykZzeyGwoUI9DC3XdSyJS.uU.EAW33m699VC"], ["created_at", "2015-03-18 23:55:16.254139"], ["updated_at", "2015-03-18 23:55:16.254139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.257467"], ["updated_at", "2015-03-18 23:55:16.257467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39aaef1c-cdca-11e4-b7d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '39ab6b04-cdca-11e4-9d3c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39aaef1c-cdca-11e4-b7d8-705681abff85"], ["organization_id", "39ab6b04-cdca-11e4-9d3c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.260624"], ["updated_at", "2015-03-18 23:55:16.260624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '39ab6b04-cdca-11e4-9d3c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "39ab6b04-cdca-11e4-9d3c-705681abff85"], ["created_at", "2015-03-18 23:55:16.264117"], ["updated_at", "2015-03-18 23:55:16.264117"], ["token", "oJKjdW1nf-C62Ante_SKmxT_exPwi2sz3Zt5IL6AuhE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39aaef1c-cdca-11e4-b7d8-705681abff85' LIMIT 1 [["organization_id", "39ab6b04-cdca-11e4-9d3c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$/Ad6dGWRdEb4owLCojpSguXV7ZdYYZfeKAL1GR1YgF4.BDQ022sti"], ["created_at", "2015-03-18 23:55:16.272195"], ["updated_at", "2015-03-18 23:55:16.272195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.275378"], ["updated_at", "2015-03-18 23:55:16.275378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39adacde-cdca-11e4-b928-705681abff85' AND "clubhouse_memberships"."organization_id" = '39ae2998-cdca-11e4-80da-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39adacde-cdca-11e4-b928-705681abff85"], ["organization_id", "39ae2998-cdca-11e4-80da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.278959"], ["updated_at", "2015-03-18 23:55:16.278959"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '39ae2998-cdca-11e4-80da-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "39ae2998-cdca-11e4-80da-705681abff85"], ["created_at", "2015-03-18 23:55:16.283168"], ["updated_at", "2015-03-18 23:55:16.283168"], ["token", "9pQZ1IxyXq7otekGK0mlKs2Xy-XmHb416vQ8jFyYYF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39adacde-cdca-11e4-b928-705681abff85' LIMIT 1 [["organization_id", "39ae2998-cdca-11e4-80da-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$3jrK0Y18T9YHBETNEDavlOnV5hc1Rf6SE0dkEe7eAeJcMyjVg0x52"], ["created_at", "2015-03-18 23:55:16.291148"], ["updated_at", "2015-03-18 23:55:16.291148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.294346"], ["updated_at", "2015-03-18 23:55:16.294346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39b09318-cdca-11e4-84ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '39b10e38-cdca-11e4-b129-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39b09318-cdca-11e4-84ae-705681abff85"], ["organization_id", "39b10e38-cdca-11e4-b129-705681abff85"], ["created_at", "2015-03-18 23:55:16.297567"], ["updated_at", "2015-03-18 23:55:16.297567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '39b10e38-cdca-11e4-b129-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "39b10e38-cdca-11e4-b129-705681abff85"], ["created_at", "2015-03-18 23:55:16.302495"], ["updated_at", "2015-03-18 23:55:16.302495"], ["token", "TiSPpjLaJPR0u4WGpP751WvTdcvm8OoH8BQf9ciDMm4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39b09318-cdca-11e4-84ae-705681abff85' LIMIT 1 [["organization_id", "39b10e38-cdca-11e4-b129-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$GG157ZKvM7XcyPqF6XGdpOKpywZm3Gd39.g.td1Bw4uog4p1p5lwu"], ["created_at", "2015-03-18 23:55:16.310725"], ["updated_at", "2015-03-18 23:55:16.310725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.313968"], ["updated_at", "2015-03-18 23:55:16.313968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39b39090-cdca-11e4-9e0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '39b40eee-cdca-11e4-b00a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39b39090-cdca-11e4-9e0b-705681abff85"], ["organization_id", "39b40eee-cdca-11e4-b00a-705681abff85"], ["created_at", "2015-03-18 23:55:16.317487"], ["updated_at", "2015-03-18 23:55:16.317487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '39b40eee-cdca-11e4-b00a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "39b40eee-cdca-11e4-b00a-705681abff85"], ["created_at", "2015-03-18 23:55:16.321576"], ["updated_at", "2015-03-18 23:55:16.321576"], ["token", "5oNrv92057tTAQ5eu1HG4wGHIh8VnNsZKqdUWB95S04"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39b39090-cdca-11e4-9e0b-705681abff85' LIMIT 1 [["organization_id", "39b40eee-cdca-11e4-b00a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$cIk/BQmVG5QdzO5sBW8OY.C85xcMCmdGHKbCZOCIBSsPPTvhDX8BK"], ["created_at", "2015-03-18 23:55:16.328664"], ["updated_at", "2015-03-18 23:55:16.328664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.331916"], ["updated_at", "2015-03-18 23:55:16.331916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39b64b8c-cdca-11e4-aa82-705681abff85' AND "clubhouse_memberships"."organization_id" = '39b6e2a4-cdca-11e4-980b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39b64b8c-cdca-11e4-aa82-705681abff85"], ["organization_id", "39b6e2a4-cdca-11e4-980b-705681abff85"], ["created_at", "2015-03-18 23:55:16.336614"], ["updated_at", "2015-03-18 23:55:16.336614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '39b6e2a4-cdca-11e4-980b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "39b6e2a4-cdca-11e4-980b-705681abff85"], ["created_at", "2015-03-18 23:55:16.340168"], ["updated_at", "2015-03-18 23:55:16.340168"], ["token", "8vKM0gq6IkPUO9Rf6U3-LbskLcn_T4pzCUa6P-bel7Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39b64b8c-cdca-11e4-aa82-705681abff85' LIMIT 1 [["organization_id", "39b6e2a4-cdca-11e4-980b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$prhKgjVmSAU1HmrvsnpcXuALqxBpLl./isblZlz5kLQiSDOihUYGu"], ["created_at", "2015-03-18 23:55:16.347944"], ["updated_at", "2015-03-18 23:55:16.347944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.351294"], ["updated_at", "2015-03-18 23:55:16.351294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39b93edc-cdca-11e4-8246-705681abff85' AND "clubhouse_memberships"."organization_id" = '39b9bd80-cdca-11e4-aa25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39b93edc-cdca-11e4-8246-705681abff85"], ["organization_id", "39b9bd80-cdca-11e4-aa25-705681abff85"], ["created_at", "2015-03-18 23:55:16.354491"], ["updated_at", "2015-03-18 23:55:16.354491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '39b9bd80-cdca-11e4-aa25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "39b9bd80-cdca-11e4-aa25-705681abff85"], ["created_at", "2015-03-18 23:55:16.358359"], ["updated_at", "2015-03-18 23:55:16.358359"], ["token", "59RZnN-vs44vJSyz7CHHCHRnccbi_i_qInlHhjboOS4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39b93edc-cdca-11e4-8246-705681abff85' LIMIT 1 [["organization_id", "39b9bd80-cdca-11e4-aa25-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$HhxgUDKPrPB/4R8kIVDDDerAW9t/0RheTX5NklP5kPLkD8ISvA7Hm"], ["created_at", "2015-03-18 23:55:16.366042"], ["updated_at", "2015-03-18 23:55:16.366042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.370141"], ["updated_at", "2015-03-18 23:55:16.370141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '39bca658-cdca-11e4-bbe8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "39bca658-cdca-11e4-bbe8-705681abff85"], ["created_at", "2015-03-18 23:55:16.374038"], ["updated_at", "2015-03-18 23:55:16.374038"], ["token", "RahyW_snurHC1_oirR6Q61WOTFEkGFhxIz6Q-inF1dQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39bc0248-cdca-11e4-9c81-705681abff85' LIMIT 1 [["organization_id", "39bca658-cdca-11e4-bbe8-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$gAjJrWNTXTUMFRPK7ekSmOB83X9LOKP6uBwSwz4jmw1Sff/n02Dsq"], ["created_at", "2015-03-18 23:55:16.384496"], ["updated_at", "2015-03-18 23:55:16.384496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.388664"], ["updated_at", "2015-03-18 23:55:16.388664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '39bf770c-cdca-11e4-adff-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "39bf770c-cdca-11e4-adff-705681abff85"], ["created_at", "2015-03-18 23:55:16.392399"], ["updated_at", "2015-03-18 23:55:16.392399"], ["token", "WTNUnFKoMUADXGdzfH5uDu37S3w8eYabNJJxQZXdE7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39bedd1a-cdca-11e4-b7fc-705681abff85' LIMIT 1 [["organization_id", "39bf770c-cdca-11e4-adff-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$60DYZVe.FEJ.3GL4UJk55e6d0bRnDu9Uy7Q.UHtLptmLq6Da8HNz."], ["created_at", "2015-03-18 23:55:16.400400"], ["updated_at", "2015-03-18 23:55:16.400400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.403717"], ["updated_at", "2015-03-18 23:55:16.403717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '39c1be5e-cdca-11e4-b066-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "39c1be5e-cdca-11e4-b066-705681abff85"], ["created_at", "2015-03-18 23:55:16.407262"], ["updated_at", "2015-03-18 23:55:16.407262"], ["token", "eTZ1Xhr-YRtxTE-YZFF6uhxucAyo-m9Y20FqqC8XbOA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39c13f06-cdca-11e4-8fee-705681abff85' LIMIT 1 [["organization_id", "39c1be5e-cdca-11e4-b066-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$E0upTnWyLmgtsbYqQv39Fukb6SdVVCdpLIHXGpfP0APQahB860Eeq"], ["created_at", "2015-03-18 23:55:16.415407"], ["updated_at", "2015-03-18 23:55:16.415407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.419368"], ["updated_at", "2015-03-18 23:55:16.419368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '39c42522-cdca-11e4-ad9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "39c42522-cdca-11e4-ad9e-705681abff85"], ["created_at", "2015-03-18 23:55:16.423050"], ["updated_at", "2015-03-18 23:55:16.423050"], ["token", "VNoktyNwW6d7o72tusUbzBEPF4wtBaN8at1B0cq-Xtc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39c38a68-cdca-11e4-8505-705681abff85' LIMIT 1 [["organization_id", "39c42522-cdca-11e4-ad9e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$obPnwv.T/y3eUWXQRmUcfuEKfyxSht.FR51w0eGqRw2N.9v.5RShC"], ["created_at", "2015-03-18 23:55:16.430578"], ["updated_at", "2015-03-18 23:55:16.430578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.434979"], ["updated_at", "2015-03-18 23:55:16.434979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39c5d9da-cdca-11e4-aed3-705681abff85' AND "clubhouse_memberships"."organization_id" = '39c686fa-cdca-11e4-a862-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39c5d9da-cdca-11e4-aed3-705681abff85"], ["organization_id", "39c686fa-cdca-11e4-a862-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.438504"], ["updated_at", "2015-03-18 23:55:16.438504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$46X7mwyZ6QAv6pRD6OMHouqHuUX1Cm6vpQcAh2VZQTJ506q54lRj6"], ["created_at", "2015-03-18 23:55:16.444961"], ["updated_at", "2015-03-18 23:55:16.444961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.448487"], ["updated_at", "2015-03-18 23:55:16.448487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39c80c96-cdca-11e4-bd0e-705681abff85' AND "clubhouse_memberships"."organization_id" = '39c894ae-cdca-11e4-b6fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39c80c96-cdca-11e4-bd0e-705681abff85"], ["organization_id", "39c894ae-cdca-11e4-b6fe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.452044"], ["updated_at", "2015-03-18 23:55:16.452044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '39c80c96-cdca-11e4-bd0e-705681abff85' LIMIT 1 [["organization_id", "39c894ae-cdca-11e4-b6fe-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$XdiLyA5a7ujmDw.I.kgAGemR.PF9gQMdLaYiW1knFWGJ.N2JuB0R2"], ["created_at", "2015-03-18 23:55:16.459418"], ["updated_at", "2015-03-18 23:55:16.459418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.462799"], ["updated_at", "2015-03-18 23:55:16.462799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39ca418c-cdca-11e4-a7a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '39cac8aa-cdca-11e4-a31b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39ca418c-cdca-11e4-a7a5-705681abff85"], ["organization_id", "39cac8aa-cdca-11e4-a31b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.466397"], ["updated_at", "2015-03-18 23:55:16.466397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39ca418c-cdca-11e4-a7a5-705681abff85' LIMIT 1 [["organization_id", "39cac8aa-cdca-11e4-a31b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$7L7JgnNrMHUJYXnrpCsKWuNsqkQ8B96OIva8Kw07849p4q79DhlIq"], ["created_at", "2015-03-18 23:55:16.474391"], ["updated_at", "2015-03-18 23:55:16.474391"]]  (8.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.486743"], ["updated_at", "2015-03-18 23:55:16.486743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39cc8884-cdca-11e4-a698-705681abff85' AND "clubhouse_memberships"."organization_id" = '39ce6b18-cdca-11e4-9453-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39cc8884-cdca-11e4-a698-705681abff85"], ["organization_id", "39ce6b18-cdca-11e4-9453-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.490214"], ["updated_at", "2015-03-18 23:55:16.490214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39cc8884-cdca-11e4-a698-705681abff85' LIMIT 1 [["organization_id", "39ce6b18-cdca-11e4-9453-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$bf.BdnGwgrjnRQShPKujO.G9Gg2O6SGEK6CFqrO2FamlPbTwe1X7W"], ["created_at", "2015-03-18 23:55:16.497273"], ["updated_at", "2015-03-18 23:55:16.497273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.500610"], ["updated_at", "2015-03-18 23:55:16.500610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39d00888-cdca-11e4-bfe8-705681abff85' AND "clubhouse_memberships"."organization_id" = '39d08c4a-cdca-11e4-9ed5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39d00888-cdca-11e4-bfe8-705681abff85"], ["organization_id", "39d08c4a-cdca-11e4-9ed5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.504192"], ["updated_at", "2015-03-18 23:55:16.504192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$GipZBVs5lJOuJ5rL5.WdbuL.u47hyzDp9lx2C1EvmDg6PxdYPfb9S"], ["created_at", "2015-03-18 23:55:16.508906"], ["updated_at", "2015-03-18 23:55:16.508906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39d1cccc-cdca-11e4-a90c-705681abff85' AND "clubhouse_memberships"."organization_id" = '39d08c4a-cdca-11e4-9ed5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39d1cccc-cdca-11e4-a90c-705681abff85"], ["organization_id", "39d08c4a-cdca-11e4-9ed5-705681abff85"], ["created_at", "2015-03-18 23:55:16.512235"], ["updated_at", "2015-03-18 23:55:16.512235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$lcxqSeFo4wk7VYVE.Wq4LuIE4D.nYu2WDH0.Cj2DK3ffJMiCur44q"], ["created_at", "2015-03-18 23:55:16.518960"], ["updated_at", "2015-03-18 23:55:16.518960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.522486"], ["updated_at", "2015-03-18 23:55:16.522486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39d35a4c-cdca-11e4-8618-705681abff85' AND "clubhouse_memberships"."organization_id" = '39d3df26-cdca-11e4-9448-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39d35a4c-cdca-11e4-8618-705681abff85"], ["organization_id", "39d3df26-cdca-11e4-9448-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.526169"], ["updated_at", "2015-03-18 23:55:16.526169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$tqr7.uqYiWl1qOx1V1z5SOJoccCsl7/9i97lhuhmREi/zbnm8YND6"], ["created_at", "2015-03-18 23:55:16.531723"], ["updated_at", "2015-03-18 23:55:16.531723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39d54852-cdca-11e4-96a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '39d3df26-cdca-11e4-9448-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39d54852-cdca-11e4-96a3-705681abff85"], ["organization_id", "39d3df26-cdca-11e4-9448-705681abff85"], ["created_at", "2015-03-18 23:55:16.537038"], ["updated_at", "2015-03-18 23:55:16.537038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '39d35a4c-cdca-11e4-8618-705681abff85' LIMIT 1 [["organization_id", "39d3df26-cdca-11e4-9448-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$s0kjT96J5wfUpqcJs/sULeTna5KFA3MVwjq6NYLzUx2z7F25UHL4W"], ["created_at", "2015-03-18 23:55:16.544586"], ["updated_at", "2015-03-18 23:55:16.544586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.548118"], ["updated_at", "2015-03-18 23:55:16.548118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39d7415c-cdca-11e4-a03a-705681abff85' AND "clubhouse_memberships"."organization_id" = '39d7c9c4-cdca-11e4-89ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39d7415c-cdca-11e4-a03a-705681abff85"], ["organization_id", "39d7c9c4-cdca-11e4-89ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.551566"], ["updated_at", "2015-03-18 23:55:16.551566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$BzRjuw3YxRrQueqHJEcdceBwlNHa0OUMSE7LaBvGkOpvE0AcUTIcK"], ["created_at", "2015-03-18 23:55:16.556037"], ["updated_at", "2015-03-18 23:55:16.556037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39d8fd94-cdca-11e4-8fd8-705681abff85' AND "clubhouse_memberships"."organization_id" = '39d7c9c4-cdca-11e4-89ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39d8fd94-cdca-11e4-8fd8-705681abff85"], ["organization_id", "39d7c9c4-cdca-11e4-89ab-705681abff85"], ["created_at", "2015-03-18 23:55:16.559340"], ["updated_at", "2015-03-18 23:55:16.559340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39d7415c-cdca-11e4-a03a-705681abff85' LIMIT 1 [["organization_id", "39d7c9c4-cdca-11e4-89ab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$4QtyzQcHNr1psPyhXLoNOu565D0paqs2lcV8z.N5GGVT8fwJekr9W"], ["created_at", "2015-03-18 23:55:16.566318"], ["updated_at", "2015-03-18 23:55:16.566318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.569730"], ["updated_at", "2015-03-18 23:55:16.569730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39da9050-cdca-11e4-9b1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '39db12be-cdca-11e4-bc1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39da9050-cdca-11e4-9b1f-705681abff85"], ["organization_id", "39db12be-cdca-11e4-bc1d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.573002"], ["updated_at", "2015-03-18 23:55:16.573002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$NzfJqIK6c86eo3UtV9kJvuTNwXmi/tSgQ1n1g.GrA7n8rNkG3HtvK"], ["created_at", "2015-03-18 23:55:16.577804"], ["updated_at", "2015-03-18 23:55:16.577804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39dc5020-cdca-11e4-9117-705681abff85' AND "clubhouse_memberships"."organization_id" = '39db12be-cdca-11e4-bc1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39dc5020-cdca-11e4-9117-705681abff85"], ["organization_id", "39db12be-cdca-11e4-bc1d-705681abff85"], ["created_at", "2015-03-18 23:55:16.581515"], ["updated_at", "2015-03-18 23:55:16.581515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39da9050-cdca-11e4-9b1f-705681abff85' LIMIT 1 [["organization_id", "39db12be-cdca-11e4-bc1d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$AK5CLvYyi2/AS6ra0vu.z.cGTgRvs2BHFIiTk4IM.KyUDw2AxM/ua"], ["created_at", "2015-03-18 23:55:16.589384"], ["updated_at", "2015-03-18 23:55:16.589384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.592796"], ["updated_at", "2015-03-18 23:55:16.592796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39de15f4-cdca-11e4-be7b-705681abff85' AND "clubhouse_memberships"."organization_id" = '39de975e-cdca-11e4-a686-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39de15f4-cdca-11e4-be7b-705681abff85"], ["organization_id", "39de975e-cdca-11e4-a686-705681abff85"], ["created_at", "2015-03-18 23:55:16.595975"], ["updated_at", "2015-03-18 23:55:16.595975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$d5R1cI9eLUuJtb5KenyGWez7qB5espbj2qZPPZhZI2SVjTdkTQOeK"], ["created_at", "2015-03-18 23:55:16.601714"], ["updated_at", "2015-03-18 23:55:16.601714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.605296"], ["updated_at", "2015-03-18 23:55:16.605296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39dfff0e-cdca-11e4-82a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '39e0808c-cdca-11e4-9ea5-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39dfff0e-cdca-11e4-82a4-705681abff85"], ["organization_id", "39e0808c-cdca-11e4-9ea5-705681abff85"], ["created_at", "2015-03-18 23:55:16.608605"], ["updated_at", "2015-03-18 23:55:16.608605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '39dfff0e-cdca-11e4-82a4-705681abff85' LIMIT 1 [["organization_id", "39e0808c-cdca-11e4-9ea5-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$yggrgd/N2NkyhLL1VAVxDeECB4oZL.hOHUi9uaAItenulZA1dPuM6"], ["created_at", "2015-03-18 23:55:16.618011"], ["updated_at", "2015-03-18 23:55:16.618011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.621757"], ["updated_at", "2015-03-18 23:55:16.621757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39e27234-cdca-11e4-90ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '39e304ce-cdca-11e4-a89b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39e27234-cdca-11e4-90ea-705681abff85"], ["organization_id", "39e304ce-cdca-11e4-a89b-705681abff85"], ["created_at", "2015-03-18 23:55:16.625237"], ["updated_at", "2015-03-18 23:55:16.625237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39e27234-cdca-11e4-90ea-705681abff85' LIMIT 1 [["organization_id", "39e304ce-cdca-11e4-a89b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$kIk0KrRg0e55RWTL/NEn1.4nHZSEeyZiIcFUkBOyofTjQZU5KDhvO"], ["created_at", "2015-03-18 23:55:16.632291"], ["updated_at", "2015-03-18 23:55:16.632291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.636539"], ["updated_at", "2015-03-18 23:55:16.636539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39e4a4fa-cdca-11e4-921c-705681abff85' AND "clubhouse_memberships"."organization_id" = '39e5464e-cdca-11e4-8fdf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39e4a4fa-cdca-11e4-921c-705681abff85"], ["organization_id", "39e5464e-cdca-11e4-8fdf-705681abff85"], ["created_at", "2015-03-18 23:55:16.639890"], ["updated_at", "2015-03-18 23:55:16.639890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39e4a4fa-cdca-11e4-921c-705681abff85' LIMIT 1 [["organization_id", "39e5464e-cdca-11e4-8fdf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$DKkQrIJF/l/3U/1aZlvLQOzmGqEzcBskpNiOfpxqRKqjPvIiSDI5."], ["created_at", "2015-03-18 23:55:16.647216"], ["updated_at", "2015-03-18 23:55:16.647216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$ouPIYScLwnrxv1n0l3irx.zGpQJ8tNKJZkkYTCXlhWBr49aNf5iFi"], ["created_at", "2015-03-18 23:55:16.652047"], ["updated_at", "2015-03-18 23:55:16.652047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.655220"], ["updated_at", "2015-03-18 23:55:16.655220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39e7a326-cdca-11e4-99c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '39e81d1a-cdca-11e4-bb20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39e7a326-cdca-11e4-99c6-705681abff85"], ["organization_id", "39e81d1a-cdca-11e4-bb20-705681abff85"], ["created_at", "2015-03-18 23:55:16.658348"], ["updated_at", "2015-03-18 23:55:16.658348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$381.wKVds1W5wSrROONpS.itnbFw4gl9vf65DKJsvAVrLa9FLgu7W"], ["created_at", "2015-03-18 23:55:16.664216"], ["updated_at", "2015-03-18 23:55:16.664216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$0iF1WvanMviPkwCBdRFr3uABSe7vLMQXIR6gWDdVAZ1mwCBuEkRjq"], ["created_at", "2015-03-18 23:55:16.669281"], ["updated_at", "2015-03-18 23:55:16.669281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.673001"], ["updated_at", "2015-03-18 23:55:16.673001"]]  (44.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39ea4bc6-cdca-11e4-92b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '39ead820-cdca-11e4-88b8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39ea4bc6-cdca-11e4-92b0-705681abff85"], ["organization_id", "39ead820-cdca-11e4-88b8-705681abff85"], ["created_at", "2015-03-18 23:55:16.723211"], ["updated_at", "2015-03-18 23:55:16.723211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '39e97df4-cdca-11e4-827e-705681abff85' LIMIT 1 [["organization_id", "39ead820-cdca-11e4-88b8-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$hh4QzS4vbSnEeX3q4p5emOPbVrwjVbTNgSA9T/qtp.g3LlkyFrKvG"], ["created_at", "2015-03-18 23:55:16.734557"], ["updated_at", "2015-03-18 23:55:16.734557"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$UBJZ3NLY6pqCaSv.0lIbK.4mq8dfsQTtkdDVCYScRYQ/3I5Ws6/by"], ["created_at", "2015-03-18 23:55:16.740620"], ["updated_at", "2015-03-18 23:55:16.740620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (6.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.744360"], ["updated_at", "2015-03-18 23:55:16.744360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39f52942-cdca-11e4-9241-705681abff85' AND "clubhouse_memberships"."organization_id" = '39f5bd9e-cdca-11e4-a34d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39f52942-cdca-11e4-9241-705681abff85"], ["organization_id", "39f5bd9e-cdca-11e4-a34d-705681abff85"], ["created_at", "2015-03-18 23:55:16.754361"], ["updated_at", "2015-03-18 23:55:16.754361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39f44bf8-cdca-11e4-8d8f-705681abff85' LIMIT 1 [["organization_id", "39f5bd9e-cdca-11e4-a34d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$j5vECyYJgAsogE87NIZ1SOGE0aUL68vOVqGm4663Zkcftpl5nN4Wi"], ["created_at", "2015-03-18 23:55:16.761622"], ["updated_at", "2015-03-18 23:55:16.761622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$H6waq00B.BcmB1DKrL7l5OBx2yIuoYj3BzYJHb7TJVH.SPFkbAoDm"], ["created_at", "2015-03-18 23:55:16.766353"], ["updated_at", "2015-03-18 23:55:16.766353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.770175"], ["updated_at", "2015-03-18 23:55:16.770175"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39f9155c-cdca-11e4-a2d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '39f9b93a-cdca-11e4-ad48-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39f9155c-cdca-11e4-a2d9-705681abff85"], ["organization_id", "39f9b93a-cdca-11e4-ad48-705681abff85"], ["created_at", "2015-03-18 23:55:16.780243"], ["updated_at", "2015-03-18 23:55:16.780243"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39f85b80-cdca-11e4-bfd5-705681abff85' LIMIT 1 [["organization_id", "39f9b93a-cdca-11e4-ad48-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$UouDnFPPyrrV8.e869Dnb.KX/yIaNCObkVEhjz4M8NyDdTACJHBmm"], ["created_at", "2015-03-18 23:55:16.795088"], ["updated_at", "2015-03-18 23:55:16.795088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.798555"], ["updated_at", "2015-03-18 23:55:16.798555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39fd7c3c-cdca-11e4-96c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '39fdfd38-cdca-11e4-b854-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39fd7c3c-cdca-11e4-96c7-705681abff85"], ["organization_id", "39fdfd38-cdca-11e4-b854-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.801792"], ["updated_at", "2015-03-18 23:55:16.801792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39fd7c3c-cdca-11e4-96c7-705681abff85' LIMIT 1 [["organization_id", "39fdfd38-cdca-11e4-b854-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$DTH7Kq0d4K2hDEvTPNnxjuJ97LuncbXRD5TOZeBs4wzw.qUEyKpCO"], ["created_at", "2015-03-18 23:55:16.808856"], ["updated_at", "2015-03-18 23:55:16.808856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.812009"], ["updated_at", "2015-03-18 23:55:16.812009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39ff8fe0-cdca-11e4-b3c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a000be6-cdca-11e4-84c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39ff8fe0-cdca-11e4-b3c4-705681abff85"], ["organization_id", "3a000be6-cdca-11e4-84c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.815375"], ["updated_at", "2015-03-18 23:55:16.815375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '39ff8fe0-cdca-11e4-b3c4-705681abff85' LIMIT 1 [["organization_id", "3a000be6-cdca-11e4-84c6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$VpqNeVzovy04O/ON1bRIauTVhA1fi9xUtzcmV4pllsMILc5F1eJh6"], ["created_at", "2015-03-18 23:55:16.822326"], ["updated_at", "2015-03-18 23:55:16.822326"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.826004"], ["updated_at", "2015-03-18 23:55:16.826004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a019dbc-cdca-11e4-9efd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a02316e-cdca-11e4-9ea8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a019dbc-cdca-11e4-9efd-705681abff85"], ["organization_id", "3a02316e-cdca-11e4-9ea8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.829568"], ["updated_at", "2015-03-18 23:55:16.829568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$mgYJXZ4hVmATIk8kIQZWquENVBAe/baKpU/YTzr1f4yxE9wL8i02G"], ["created_at", "2015-03-18 23:55:16.835868"], ["updated_at", "2015-03-18 23:55:16.835868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.839291"], ["updated_at", "2015-03-18 23:55:16.839291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a03b386-cdca-11e4-9f0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a0434b4-cdca-11e4-beef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a03b386-cdca-11e4-9f0b-705681abff85"], ["organization_id", "3a0434b4-cdca-11e4-beef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.842627"], ["updated_at", "2015-03-18 23:55:16.842627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$YPbC/1kW0Px0m0xfBZjB5eo64z9QKzr2P72qLurrjmvXhcJRJYqKK"], ["created_at", "2015-03-18 23:55:16.848328"], ["updated_at", "2015-03-18 23:55:16.848328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.851830"], ["updated_at", "2015-03-18 23:55:16.851830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a0596ba-cdca-11e4-9e41-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a061e0a-cdca-11e4-bc97-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a0596ba-cdca-11e4-9e41-705681abff85"], ["organization_id", "3a061e0a-cdca-11e4-bc97-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:55:16.855743"], ["updated_at", "2015-03-18 23:55:16.855743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a0596ba-cdca-11e4-9e41-705681abff85' LIMIT 1 [["organization_id", "3a061e0a-cdca-11e4-bc97-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$7KWwhgpKX30uVJcDDSmv1eXe02ZLIPbTps4cJkF4/fUk4T4AyUJb6"], ["created_at", "2015-03-18 23:55:16.863209"], ["updated_at", "2015-03-18 23:55:16.863209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.866510"], ["updated_at", "2015-03-18 23:55:16.866510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a07e028-cdca-11e4-908d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a085b16-cdca-11e4-a308-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a07e028-cdca-11e4-908d-705681abff85"], ["organization_id", "3a085b16-cdca-11e4-a308-705681abff85"], ["created_at", "2015-03-18 23:55:16.870004"], ["updated_at", "2015-03-18 23:55:16.870004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a07e028-cdca-11e4-908d-705681abff85' LIMIT 1 [["organization_id", "3a085b16-cdca-11e4-a308-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$s4CeOAT3PnlX4mHWWaxnBeX14eZk8KZTcFvIoOQ51VWbtkf9Pk8RG"], ["created_at", "2015-03-18 23:55:16.877109"], ["updated_at", "2015-03-18 23:55:16.877109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.880416"], ["updated_at", "2015-03-18 23:55:16.880416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a09fbf6-cdca-11e4-8714-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a0a7c5c-cdca-11e4-b00f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a09fbf6-cdca-11e4-8714-705681abff85"], ["organization_id", "3a0a7c5c-cdca-11e4-b00f-705681abff85"], ["created_at", "2015-03-18 23:55:16.883902"], ["updated_at", "2015-03-18 23:55:16.883902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3a09fbf6-cdca-11e4-8714-705681abff85' LIMIT 1 [["organization_id", "3a0a7c5c-cdca-11e4-b00f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$hmbtIkxkv0oQanrfV7v/uOR/noUFOBKgKnsRt7LUGjFUKp/Ai4bTu"], ["created_at", "2015-03-18 23:55:16.891777"], ["updated_at", "2015-03-18 23:55:16.891777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.895409"], ["updated_at", "2015-03-18 23:55:16.895409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a0c39ca-cdca-11e4-b018-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a0cc62e-cdca-11e4-8922-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a0c39ca-cdca-11e4-b018-705681abff85"], ["organization_id", "3a0cc62e-cdca-11e4-8922-705681abff85"], ["created_at", "2015-03-18 23:55:16.899006"], ["updated_at", "2015-03-18 23:55:16.899006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$gwCapqLXNoegyywtDGo93udcr.Ytd1i/ptGqjRG5ZR/hi997LYuH6"], ["created_at", "2015-03-18 23:55:16.904923"], ["updated_at", "2015-03-18 23:55:16.904923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.908247"], ["updated_at", "2015-03-18 23:55:16.908247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a0e3964-cdca-11e4-8b20-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a0eb9fc-cdca-11e4-8707-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a0e3964-cdca-11e4-8b20-705681abff85"], ["organization_id", "3a0eb9fc-cdca-11e4-8707-705681abff85"], ["created_at", "2015-03-18 23:55:16.911481"], ["updated_at", "2015-03-18 23:55:16.911481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$/wNZV9Owe/imM3NN4N79uuFCENeKJXShz7wRep0iO8R9dVBwIU/RS"], ["created_at", "2015-03-18 23:55:16.922707"], ["updated_at", "2015-03-18 23:55:16.922707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.926121"], ["updated_at", "2015-03-18 23:55:16.926121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a10f492-cdca-11e4-8d07-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a117386-cdca-11e4-a647-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a10f492-cdca-11e4-8d07-705681abff85"], ["organization_id", "3a117386-cdca-11e4-a647-705681abff85"], ["created_at", "2015-03-18 23:55:16.929543"], ["updated_at", "2015-03-18 23:55:16.929543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a10f492-cdca-11e4-8d07-705681abff85' LIMIT 1 [["organization_id", "3a117386-cdca-11e4-a647-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$hAKNPuo5tPs/mbhjG/jO3ePPTuPPCh46/c1XKNOKjloGYKOdZifJS"], ["created_at", "2015-03-18 23:55:16.937899"], ["updated_at", "2015-03-18 23:55:16.937899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.941516"], ["updated_at", "2015-03-18 23:55:16.941516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a134512-cdca-11e4-afa1-705681abff85' LIMIT 1 [["organization_id", "3a13d068-cdca-11e4-8c66-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$xF0ZHcFA8ZOeF8kmYGnOLOj1dr6.yEwnMd/Lu1PdRodXO25wwniQ."], ["created_at", "2015-03-18 23:55:16.951300"], ["updated_at", "2015-03-18 23:55:16.951300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.954884"], ["updated_at", "2015-03-18 23:55:16.954884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3a15549c-cdca-11e4-a374-705681abff85' LIMIT 1 [["organization_id", "3a15d9f8-cdca-11e4-b373-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$h/H5SCBZVPrrDbKLPADB2uEQMTaFDvbXive0Nqq34LlAwUjuH/mP6"], ["created_at", "2015-03-18 23:55:16.961604"], ["updated_at", "2015-03-18 23:55:16.961604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.965125"], ["updated_at", "2015-03-18 23:55:16.965125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$Ozh5ZcFv5Lkq150vwPfeo.dpBMm1JVwtHax6gjLzj0M8BoNsN8cCi"], ["created_at", "2015-03-18 23:55:16.971128"], ["updated_at", "2015-03-18 23:55:16.971128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.974832"], ["updated_at", "2015-03-18 23:55:16.974832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$RztfsjN/7.t769csteC81.LvpwzBpCohSY4OBh9haRsAioDMg2HNi"], ["created_at", "2015-03-18 23:55:16.980581"], ["updated_at", "2015-03-18 23:55:16.980581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:55:16.983893"], ["updated_at", "2015-03-18 23:55:16.983893"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a19c572-cdca-11e4-906e-705681abff85' LIMIT 1 [["organization_id", "3a1a4632-cdca-11e4-bf67-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (30.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$C.COksy74ADt/H3/qp.pDOxW704cQN/wkaTEQ/FoNzzby0dJx5oaG"], ["created_at", "2015-03-18 23:56:08.015662"], ["updated_at", "2015-03-18 23:56:08.015662"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.055534"], ["updated_at", "2015-03-18 23:56:08.055534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5889afd6-cdca-11e4-84ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '588b38e2-cdca-11e4-a27d-705681abff85') LIMIT 1 SQL (7.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5889afd6-cdca-11e4-84ed-705681abff85"], ["organization_id", "588b38e2-cdca-11e4-a27d-705681abff85"], ["created_at", "2015-03-18 23:56:08.074531"], ["updated_at", "2015-03-18 23:56:08.074531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$3eSu9Jg/H6SctwCWj58Ozet5q0zVjUlRXxrkmDRM.TI/dw6/ecMne"], ["created_at", "2015-03-18 23:56:08.087968"], ["updated_at", "2015-03-18 23:56:08.087968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.091277"], ["updated_at", "2015-03-18 23:56:08.091277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5890250a-cdca-11e4-9786-705681abff85' AND "clubhouse_memberships"."organization_id" = '5890a340-cdca-11e4-95b2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5890250a-cdca-11e4-9786-705681abff85"], ["organization_id", "5890a340-cdca-11e4-95b2-705681abff85"], ["created_at", "2015-03-18 23:56:08.127093"], ["updated_at", "2015-03-18 23:56:08.127093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$wL1Q82T0ldPAXdfOmNJrxuY05ymBpucoE6EyrcKF.TCD5x8m75QT6"], ["created_at", "2015-03-18 23:56:08.133760"], ["updated_at", "2015-03-18 23:56:08.133760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.137093"], ["updated_at", "2015-03-18 23:56:08.137093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58972210-cdca-11e4-8c10-705681abff85' AND "clubhouse_memberships"."organization_id" = '5897a0a0-cdca-11e4-bc20-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58972210-cdca-11e4-8c10-705681abff85"], ["organization_id", "5897a0a0-cdca-11e4-bc20-705681abff85"], ["created_at", "2015-03-18 23:56:08.140241"], ["updated_at", "2015-03-18 23:56:08.140241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$jxZHjgFw6kGBPvrDpjA6cu82iRbyDmPqrzJjDZ727jE6oQGYIrY9."], ["created_at", "2015-03-18 23:56:08.146441"], ["updated_at", "2015-03-18 23:56:08.146441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.149856"], ["updated_at", "2015-03-18 23:56:08.149856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58991570-cdca-11e4-bd63-705681abff85' AND "clubhouse_memberships"."organization_id" = '58999874-cdca-11e4-97fa-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58991570-cdca-11e4-bd63-705681abff85"], ["organization_id", "58999874-cdca-11e4-97fa-705681abff85"], ["created_at", "2015-03-18 23:56:08.153258"], ["updated_at", "2015-03-18 23:56:08.153258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Ss3qLpp1nYlzeT1KW8VW6.BCV6DzpufUIaJOe.k3HK3RAP9gGDaL6"], ["created_at", "2015-03-18 23:56:08.160415"], ["updated_at", "2015-03-18 23:56:08.160415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$dfuPdy5GKccBjsLGsVwGAek7jwIALqdqhmI6JCusy3XIp5/KruFq."], ["created_at", "2015-03-18 23:56:08.164634"], ["updated_at", "2015-03-18 23:56:08.164634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.168783"], ["updated_at", "2015-03-18 23:56:08.168783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '589bd4e0-cdca-11e4-b7fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '589c7a8a-cdca-11e4-b66f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "589bd4e0-cdca-11e4-b7fc-705681abff85"], ["organization_id", "589c7a8a-cdca-11e4-b66f-705681abff85"], ["created_at", "2015-03-18 23:56:08.172182"], ["updated_at", "2015-03-18 23:56:08.172182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$vuJYEPDBaKAMol/py1yHTO0W8wU/4IoQW9JPcfldZQBDVFfUEm5K6"], ["created_at", "2015-03-18 23:56:08.177993"], ["updated_at", "2015-03-18 23:56:08.177993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$UEShZVNnndyTeTQYFRjp4eOzhHgWBQxYXDcgPY0cszvcG/l6kH2DK"], ["created_at", "2015-03-18 23:56:08.182937"], ["updated_at", "2015-03-18 23:56:08.182937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.186067"], ["updated_at", "2015-03-18 23:56:08.186067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '589e9fae-cdca-11e4-b43a-705681abff85' AND "clubhouse_memberships"."organization_id" = '589f18d0-cdca-11e4-813d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "589e9fae-cdca-11e4-b43a-705681abff85"], ["organization_id", "589f18d0-cdca-11e4-813d-705681abff85"], ["created_at", "2015-03-18 23:56:08.189160"], ["updated_at", "2015-03-18 23:56:08.189160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$i2JWugGkKXvk4TTTmKr5eeIkoWa1JQpekakoXEuqR9Js.OeMdEbdy"], ["created_at", "2015-03-18 23:56:08.195008"], ["updated_at", "2015-03-18 23:56:08.195008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$xYGR2HeLfj3tKZAahMfY0ebesyJIr7sN4HcBd3w9L74SGTUTUgV2y"], ["created_at", "2015-03-18 23:56:08.199354"], ["updated_at", "2015-03-18 23:56:08.199354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.202369"], ["updated_at", "2015-03-18 23:56:08.202369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58a11fb8-cdca-11e4-86af-705681abff85' AND "clubhouse_memberships"."organization_id" = '58a194ca-cdca-11e4-a8d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58a11fb8-cdca-11e4-86af-705681abff85"], ["organization_id", "58a194ca-cdca-11e4-a8d8-705681abff85"], ["created_at", "2015-03-18 23:56:08.205493"], ["updated_at", "2015-03-18 23:56:08.205493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$NJf3vj/KBd7lsBxPKBqHnuaZK9mhIa0PgCkjNwIImzua2Q92MHqLC"], ["created_at", "2015-03-18 23:56:08.211240"], ["updated_at", "2015-03-18 23:56:08.211240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$imPIvXoS7MvmaGdhUFxtjeBVgVor2LYb28FYa88JhTDVEai5AlVsu"], ["created_at", "2015-03-18 23:56:08.217183"], ["updated_at", "2015-03-18 23:56:08.217183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.220657"], ["updated_at", "2015-03-18 23:56:08.220657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58a3dfe6-cdca-11e4-aaa1-705681abff85' AND "clubhouse_memberships"."organization_id" = '58a45fca-cdca-11e4-9625-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58a3dfe6-cdca-11e4-aaa1-705681abff85"], ["organization_id", "58a45fca-cdca-11e4-9625-705681abff85"], ["created_at", "2015-03-18 23:56:08.223858"], ["updated_at", "2015-03-18 23:56:08.223858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$NdaYj.T1SvyIvbl.EiHCFua5IuVUukYjweycgppy0KFpQu.EFh.Qm"], ["created_at", "2015-03-18 23:56:08.230479"], ["updated_at", "2015-03-18 23:56:08.230479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.235010"], ["updated_at", "2015-03-18 23:56:08.235010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58a60d52-cdca-11e4-a034-705681abff85' AND "clubhouse_memberships"."organization_id" = '58a69010-cdca-11e4-a227-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58a60d52-cdca-11e4-a034-705681abff85"], ["organization_id", "58a69010-cdca-11e4-a227-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.238287"], ["updated_at", "2015-03-18 23:56:08.238287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$gV/L.cqKWUZf3no57msv3OQWSUdmEq5zwepZanSu2u1Qshcx5Z16W"], ["created_at", "2015-03-18 23:56:08.242847"], ["updated_at", "2015-03-18 23:56:08.242847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58a7c7b4-cdca-11e4-995c-705681abff85' AND "clubhouse_memberships"."organization_id" = '58a69010-cdca-11e4-a227-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58a7c7b4-cdca-11e4-995c-705681abff85"], ["organization_id", "58a69010-cdca-11e4-a227-705681abff85"], ["created_at", "2015-03-18 23:56:08.246231"], ["updated_at", "2015-03-18 23:56:08.246231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$O.8HqiYQjzvneB.UCM9lcerinmAJAlPyCR6LyEwyXTX9SlQhziEiq"], ["created_at", "2015-03-18 23:56:08.252324"], ["updated_at", "2015-03-18 23:56:08.252324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.255419"], ["updated_at", "2015-03-18 23:56:08.255419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58a93626-cdca-11e4-bcb1-705681abff85' AND "clubhouse_memberships"."organization_id" = '58a9acc8-cdca-11e4-bcf7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58a93626-cdca-11e4-bcb1-705681abff85"], ["organization_id", "58a9acc8-cdca-11e4-bcf7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.258580"], ["updated_at", "2015-03-18 23:56:08.258580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$id1IZBy5uidv4fPGFaCuUOlNCUYcX4pdubrpf8YqkIrc/NsSlKcGW"], ["created_at", "2015-03-18 23:56:08.262886"], ["updated_at", "2015-03-18 23:56:08.262886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58aad1b6-cdca-11e4-af6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '58a9acc8-cdca-11e4-bcf7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58aad1b6-cdca-11e4-af6d-705681abff85"], ["organization_id", "58a9acc8-cdca-11e4-bcf7-705681abff85"], ["created_at", "2015-03-18 23:56:08.266420"], ["updated_at", "2015-03-18 23:56:08.266420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$qKBNBSlL3F.Ra5CjA6COJeKBBQIZuuSOTmR0tqp3ew00TxCPxq3ZS"], ["created_at", "2015-03-18 23:56:08.272300"], ["updated_at", "2015-03-18 23:56:08.272300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.275511"], ["updated_at", "2015-03-18 23:56:08.275511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58ac4280-cdca-11e4-a3de-705681abff85' AND "clubhouse_memberships"."organization_id" = '58acc05c-cdca-11e4-b7c7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58ac4280-cdca-11e4-a3de-705681abff85"], ["organization_id", "58acc05c-cdca-11e4-b7c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.278845"], ["updated_at", "2015-03-18 23:56:08.278845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$LOq/iOGpSfxOTmF0krAB4uCyAmQ.rOKE4iFLv28EU91olowU6aJvy"], ["created_at", "2015-03-18 23:56:08.288610"], ["updated_at", "2015-03-18 23:56:08.288610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58aee2f6-cdca-11e4-a3fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '58acc05c-cdca-11e4-b7c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58aee2f6-cdca-11e4-a3fb-705681abff85"], ["organization_id", "58acc05c-cdca-11e4-b7c7-705681abff85"], ["created_at", "2015-03-18 23:56:08.293575"], ["updated_at", "2015-03-18 23:56:08.293575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$axVQHs7chouLHtjPpetubecPXjb89WGkTxPJXriEg0a11imuLkRj6"], ["created_at", "2015-03-18 23:56:08.299999"], ["updated_at", "2015-03-18 23:56:08.299999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.303471"], ["updated_at", "2015-03-18 23:56:08.303471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b08016-cdca-11e4-8757-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b10644-cdca-11e4-ae05-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58b08016-cdca-11e4-8757-705681abff85"], ["organization_id", "58b10644-cdca-11e4-ae05-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.307146"], ["updated_at", "2015-03-18 23:56:08.307146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$clfB3VS0tGCnTpyNe3SHh.p3MnjQO8yIWzzRnhdiabg2JR9aeJ9pm"], ["created_at", "2015-03-18 23:56:08.312104"], ["updated_at", "2015-03-18 23:56:08.312104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b260a2-cdca-11e4-bc71-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b10644-cdca-11e4-ae05-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58b260a2-cdca-11e4-bc71-705681abff85"], ["organization_id", "58b10644-cdca-11e4-ae05-705681abff85"], ["created_at", "2015-03-18 23:56:08.317068"], ["updated_at", "2015-03-18 23:56:08.317068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Lf30tlauemOux0Lz73bEceXRVEL.QfvfhBfvFU845ZuN29T0EwBC."], ["created_at", "2015-03-18 23:56:08.323902"], ["updated_at", "2015-03-18 23:56:08.323902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.328294"], ["updated_at", "2015-03-18 23:56:08.328294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b43382-cdca-11e4-97d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b4d4fe-cdca-11e4-b9a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58b43382-cdca-11e4-97d1-705681abff85"], ["organization_id", "58b4d4fe-cdca-11e4-b9a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.332961"], ["updated_at", "2015-03-18 23:56:08.332961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$vE/jh.f/3bBS2rA6Uyswk.b9mLfzT8x74/N9u9l7QEh5pPEHTWgJu"], ["created_at", "2015-03-18 23:56:08.339441"], ["updated_at", "2015-03-18 23:56:08.339441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.343133"], ["updated_at", "2015-03-18 23:56:08.343133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b68510-cdca-11e4-b610-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b71ba6-cdca-11e4-800e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58b68510-cdca-11e4-b610-705681abff85"], ["organization_id", "58b71ba6-cdca-11e4-800e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.347426"], ["updated_at", "2015-03-18 23:56:08.347426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$BKr5G2bhutBDz9vlkx7oI.YFmKmUxbLur7unsWZJhhmHf2LUCLpnG"], ["created_at", "2015-03-18 23:56:08.357228"], ["updated_at", "2015-03-18 23:56:08.357228"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.362763"], ["updated_at", "2015-03-18 23:56:08.362763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b94322-cdca-11e4-bf5b-705681abff85' AND "clubhouse_memberships"."organization_id" = '58ba17c0-cdca-11e4-8eae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58b94322-cdca-11e4-bf5b-705681abff85"], ["organization_id", "58ba17c0-cdca-11e4-8eae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.367145"], ["updated_at", "2015-03-18 23:56:08.367145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Xr7nlNjD/ojaQeUFjpk5veEOVSlCd1dfI79jj4sd3gxjniq3rdPAS"], ["created_at", "2015-03-18 23:56:08.373439"], ["updated_at", "2015-03-18 23:56:08.373439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.381574"], ["updated_at", "2015-03-18 23:56:08.381574"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58bbb346-cdca-11e4-b0f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '58bd21ea-cdca-11e4-95eb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58bbb346-cdca-11e4-b0f4-705681abff85"], ["organization_id", "58bd21ea-cdca-11e4-95eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.389045"], ["updated_at", "2015-03-18 23:56:08.389045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$hjJhgJ/X/61vt7/7mFYIU.ErnGMLo/cYGBm5X5OPcJ0hwkO0YGbMO"], ["created_at", "2015-03-18 23:56:08.397070"], ["updated_at", "2015-03-18 23:56:08.397070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.400550"], ["updated_at", "2015-03-18 23:56:08.400550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58bf508c-cdca-11e4-9cb2-705681abff85' AND "clubhouse_memberships"."organization_id" = '58bfd674-cdca-11e4-a3ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58bf508c-cdca-11e4-9cb2-705681abff85"], ["organization_id", "58bfd674-cdca-11e4-a3ad-705681abff85"], ["created_at", "2015-03-18 23:56:08.404269"], ["updated_at", "2015-03-18 23:56:08.404269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$3QRVWaKtmDOGjEf0VHSC6eEbR277aZiXE54aVrzEzqHn/I9em5oTK"], ["created_at", "2015-03-18 23:56:08.411098"], ["updated_at", "2015-03-18 23:56:08.411098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.414940"], ["updated_at", "2015-03-18 23:56:08.414940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58c177d6-cdca-11e4-9bed-705681abff85' AND "clubhouse_memberships"."organization_id" = '58c21cc2-cdca-11e4-956b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58c177d6-cdca-11e4-9bed-705681abff85"], ["organization_id", "58c21cc2-cdca-11e4-956b-705681abff85"], ["created_at", "2015-03-18 23:56:08.420061"], ["updated_at", "2015-03-18 23:56:08.420061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$Lqvy4NS6l9naMIuYKTo99.nHZBQkmUyllEGUASMawoKcnEae.En3y"], ["created_at", "2015-03-18 23:56:08.426398"], ["updated_at", "2015-03-18 23:56:08.426398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.430516"], ["updated_at", "2015-03-18 23:56:08.430516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58c3ca7c-cdca-11e4-96a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '58c48188-cdca-11e4-875c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58c3ca7c-cdca-11e4-96a4-705681abff85"], ["organization_id", "58c48188-cdca-11e4-875c-705681abff85"], ["created_at", "2015-03-18 23:56:08.435032"], ["updated_at", "2015-03-18 23:56:08.435032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$YHvqbjVenHibJ5TatVw4gecFmNXywkkR4mtVg04j2oFJ7TkS22v2i"], ["created_at", "2015-03-18 23:56:08.441879"], ["updated_at", "2015-03-18 23:56:08.441879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.445886"], ["updated_at", "2015-03-18 23:56:08.445886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58c629fc-cdca-11e4-b367-705681abff85' AND "clubhouse_memberships"."organization_id" = '58c6c902-cdca-11e4-9d35-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58c629fc-cdca-11e4-b367-705681abff85"], ["organization_id", "58c6c902-cdca-11e4-9d35-705681abff85"], ["created_at", "2015-03-18 23:56:08.450198"], ["updated_at", "2015-03-18 23:56:08.450198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$DXLp3/aGWe6xiuvWuJVfCOvuoMOqRIkxLHkvpwpBEMc8VbywkV8lq"], ["created_at", "2015-03-18 23:56:08.456945"], ["updated_at", "2015-03-18 23:56:08.456945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.461316"], ["updated_at", "2015-03-18 23:56:08.461316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58c87284-cdca-11e4-af39-705681abff85' AND "clubhouse_memberships"."organization_id" = '58c91b8a-cdca-11e4-95c1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58c87284-cdca-11e4-af39-705681abff85"], ["organization_id", "58c91b8a-cdca-11e4-95c1-705681abff85"], ["created_at", "2015-03-18 23:56:08.464730"], ["updated_at", "2015-03-18 23:56:08.464730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$T6FQ91bPvnTbrtWALJT7xu8NcmDuBFkiILyLjxaxhNKPyJ4U6znjO"], ["created_at", "2015-03-18 23:56:08.471835"], ["updated_at", "2015-03-18 23:56:08.471835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.475576"], ["updated_at", "2015-03-18 23:56:08.475576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$dPn4Vpl8l9dZv.9W3kuCyu4fTRVgDHUUvm1sepxqXJxDAdKGlysw2"], ["created_at", "2015-03-18 23:56:08.482809"], ["updated_at", "2015-03-18 23:56:08.482809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.486844"], ["updated_at", "2015-03-18 23:56:08.486844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$Bn4WumHIHxVkbbg0JVMFq.TlApGudauDivirzxZLYwEcax9CtHdAO"], ["created_at", "2015-03-18 23:56:08.493963"], ["updated_at", "2015-03-18 23:56:08.493963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.500186"], ["updated_at", "2015-03-18 23:56:08.500186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$6hC2PD6xtqcp2.ZHYtgYF.2B9EDL7KVDptJGqv2aAuxBx4pNoTrjy"], ["created_at", "2015-03-18 23:56:08.508753"], ["updated_at", "2015-03-18 23:56:08.508753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.513877"], ["updated_at", "2015-03-18 23:56:08.513877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$vQX33OdhpwIQ7e/cdyPm7OqOQH2kfW5vZvUW9ex6kuHpHQfwVHdTG"], ["created_at", "2015-03-18 23:56:08.523109"], ["updated_at", "2015-03-18 23:56:08.523109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.527332"], ["updated_at", "2015-03-18 23:56:08.527332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$cjU3HyilcyfK1vn7CaJfn.Amcm17VHGj4uOB8WoWNNLsagcuwrebW"], ["created_at", "2015-03-18 23:56:08.535171"], ["updated_at", "2015-03-18 23:56:08.535171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.539165"], ["updated_at", "2015-03-18 23:56:08.539165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58d4645e-cdca-11e4-bee6-705681abff85' AND "clubhouse_memberships"."organization_id" = '58d4ffea-cdca-11e4-9b57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58d4645e-cdca-11e4-bee6-705681abff85"], ["organization_id", "58d4ffea-cdca-11e4-9b57-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.543018"], ["updated_at", "2015-03-18 23:56:08.543018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$va0EcHlVoc4QEE56BAc8ZeEXQKdKCpVOw/dhvV1sh4BXlcG/eU6lK"], ["created_at", "2015-03-18 23:56:08.550128"], ["updated_at", "2015-03-18 23:56:08.550128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.554366"], ["updated_at", "2015-03-18 23:56:08.554366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58d6b524-cdca-11e4-b85f-705681abff85' AND "clubhouse_memberships"."organization_id" = '58d74f98-cdca-11e4-881b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58d6b524-cdca-11e4-b85f-705681abff85"], ["organization_id", "58d74f98-cdca-11e4-881b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.558196"], ["updated_at", "2015-03-18 23:56:08.558196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$NEwWBSFRwzwqaEtrrRTT.Oo9cV.eb6vYL8pBFP49mQSgSXHme.eO2"], ["created_at", "2015-03-18 23:56:08.573112"], ["updated_at", "2015-03-18 23:56:08.573112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.577393"], ["updated_at", "2015-03-18 23:56:08.577393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58da4086-cdca-11e4-9b64-705681abff85' AND "clubhouse_memberships"."organization_id" = '58dad154-cdca-11e4-9731-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58da4086-cdca-11e4-9b64-705681abff85"], ["organization_id", "58dad154-cdca-11e4-9731-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.580831"], ["updated_at", "2015-03-18 23:56:08.580831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$sxcDnD.3oCMLxveBzVXc0OIVneV66rorOP5YKObaHhaYejJui4gDa"], ["created_at", "2015-03-18 23:56:08.588222"], ["updated_at", "2015-03-18 23:56:08.588222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.592349"], ["updated_at", "2015-03-18 23:56:08.592349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58dc7e28-cdca-11e4-ace4-705681abff85' AND "clubhouse_memberships"."organization_id" = '58dd1f9a-cdca-11e4-88dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58dc7e28-cdca-11e4-ace4-705681abff85"], ["organization_id", "58dd1f9a-cdca-11e4-88dd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.596321"], ["updated_at", "2015-03-18 23:56:08.596321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$NKNjiP6LOOL.ahYpR6XcOumT/0nTXhik.jWrV8VJDfjzCoeYs6wyW"], ["created_at", "2015-03-18 23:56:08.603348"], ["updated_at", "2015-03-18 23:56:08.603348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.607292"], ["updated_at", "2015-03-18 23:56:08.607292"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58decc0a-cdca-11e4-b796-705681abff85' AND "clubhouse_memberships"."organization_id" = '58df69ee-cdca-11e4-b370-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58decc0a-cdca-11e4-b796-705681abff85"], ["organization_id", "58df69ee-cdca-11e4-b370-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.612427"], ["updated_at", "2015-03-18 23:56:08.612427"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$LnuuKE19inRttzbh6MfE4uEGhE0uQMmTwwYPrJS3yT4HKcmNcfWra"], ["created_at", "2015-03-18 23:56:08.620103"], ["updated_at", "2015-03-18 23:56:08.620103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.624495"], ["updated_at", "2015-03-18 23:56:08.624495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58e16672-cdca-11e4-a92d-705681abff85' AND "clubhouse_memberships"."organization_id" = '58e20a32-cdca-11e4-a7f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58e16672-cdca-11e4-a92d-705681abff85"], ["organization_id", "58e20a32-cdca-11e4-a7f8-705681abff85"], ["created_at", "2015-03-18 23:56:08.628718"], ["updated_at", "2015-03-18 23:56:08.628718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '58e20a32-cdca-11e4-a7f8-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "58e20a32-cdca-11e4-a7f8-705681abff85"], ["created_at", "2015-03-18 23:56:08.641707"], ["updated_at", "2015-03-18 23:56:08.641707"], ["token", "qWyShCbw05GZqaohUDMT1XXVC7t7NPONWI2BafCI0dA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$ueClLPpMS5nQRORhw06oZOhLAb0pgaJphWM28.GILggbQjGFuygnu"], ["created_at", "2015-03-18 23:56:08.649806"], ["updated_at", "2015-03-18 23:56:08.649806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.653489"], ["updated_at", "2015-03-18 23:56:08.653489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58e5e35a-cdca-11e4-94c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '58e673a6-cdca-11e4-a6bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58e5e35a-cdca-11e4-94c2-705681abff85"], ["organization_id", "58e673a6-cdca-11e4-a6bb-705681abff85"], ["created_at", "2015-03-18 23:56:08.657486"], ["updated_at", "2015-03-18 23:56:08.657486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '58e673a6-cdca-11e4-a6bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "58e673a6-cdca-11e4-a6bb-705681abff85"], ["created_at", "2015-03-18 23:56:08.662083"], ["updated_at", "2015-03-18 23:56:08.662083"], ["token", "lRjILPsMZYYwErV8Py2Kp2zt2IJN6FbPQIVZjGW-7QM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$HKFTPfuqvKna/OZAZxkylu7zYsYjP/1B2Oqsb8sUb5PRCG/B/0Ax2"], ["created_at", "2015-03-18 23:56:08.668834"], ["updated_at", "2015-03-18 23:56:08.668834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (79.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.672259"], ["updated_at", "2015-03-18 23:56:08.672259"]]  (16.4ms) RELEASE SAVEPOINT active_record_1  (4.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (4.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58e8c692-cdca-11e4-abf7-705681abff85' AND "clubhouse_memberships"."organization_id" = '58e94a86-cdca-11e4-9395-705681abff85') LIMIT 1 SQL (5.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58e8c692-cdca-11e4-abf7-705681abff85"], ["organization_id", "58e94a86-cdca-11e4-9395-705681abff85"], ["created_at", "2015-03-18 23:56:08.784812"], ["updated_at", "2015-03-18 23:56:08.784812"]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (1.8ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '58e94a86-cdca-11e4-9395-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "58e94a86-cdca-11e4-9395-705681abff85"], ["created_at", "2015-03-18 23:56:08.801425"], ["updated_at", "2015-03-18 23:56:08.801425"], ["token", "GkILPEim2TxyK8WJUJyRSrf8SPwLBJHSPqM7tB-dgZM"]]  (2.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$NYs3jKukO2CfD2LXdApEfeFIkbTH1dtpHugDlXny9SV23phkVQO/C"], ["created_at", "2015-03-18 23:56:08.815467"], ["updated_at", "2015-03-18 23:56:08.815467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (3.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.821193"], ["updated_at", "2015-03-18 23:56:08.821193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58ff3b7a-cdca-11e4-a65d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5900198c-cdca-11e4-a090-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58ff3b7a-cdca-11e4-a65d-705681abff85"], ["organization_id", "5900198c-cdca-11e4-a090-705681abff85"], ["created_at", "2015-03-18 23:56:08.828972"], ["updated_at", "2015-03-18 23:56:08.828972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '5900198c-cdca-11e4-a090-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "5900198c-cdca-11e4-a090-705681abff85"], ["created_at", "2015-03-18 23:56:08.832401"], ["updated_at", "2015-03-18 23:56:08.832401"], ["token", "mwiYg_NwX2Z_u3fFnr6yPkAiKWChL5xDMFSM1Ce2mrY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$J9d.Nu5uuy0f.in2mMFIZu0QyyeVlA8MIw4kldj1nQG/va/iz1ebK"], ["created_at", "2015-03-18 23:56:08.838663"], ["updated_at", "2015-03-18 23:56:08.838663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.841749"], ["updated_at", "2015-03-18 23:56:08.841749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '5903247e-cdca-11e4-b932-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "5903247e-cdca-11e4-b932-705681abff85"], ["created_at", "2015-03-18 23:56:08.845103"], ["updated_at", "2015-03-18 23:56:08.845103"], ["token", "Bo_eQSUst5uLZxs2Yz1mUuPa-MUFjdYo-saIn48keUA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$SwJrdkiGqQxKk8Zyb4gceur4l37XG8Tf/VQRHA0V.cbMm..KpHvhS"], ["created_at", "2015-03-18 23:56:08.852732"], ["updated_at", "2015-03-18 23:56:08.852732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.856154"], ["updated_at", "2015-03-18 23:56:08.856154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '5905591a-cdca-11e4-8bdb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "5905591a-cdca-11e4-8bdb-705681abff85"], ["created_at", "2015-03-18 23:56:08.859454"], ["updated_at", "2015-03-18 23:56:08.859454"], ["token", "aYOPvB4CVlfnx864AwTq0PERxl_ntJenhHiUmnF5zrk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$dIrgO0F1pRfY3zr9dHYMG.3uVUTjR3zhxG9scxUE.w6hSdz7JzOiu"], ["created_at", "2015-03-18 23:56:08.865568"], ["updated_at", "2015-03-18 23:56:08.865568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.869737"], ["updated_at", "2015-03-18 23:56:08.869737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '590777b8-cdca-11e4-8b53-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "590777b8-cdca-11e4-8b53-705681abff85"], ["created_at", "2015-03-18 23:56:08.873722"], ["updated_at", "2015-03-18 23:56:08.873722"], ["token", "HpNQAIC0J8MrewJlvo0qAOsjzMTfQgKoH31O5Tu9hHM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$o4wJVyUWhvcKAL.q3rCifeE12IQlisuuIC9rlqd23art4cCnFNice"], ["created_at", "2015-03-18 23:56:08.879758"], ["updated_at", "2015-03-18 23:56:08.879758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.882907"], ["updated_at", "2015-03-18 23:56:08.882907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '59096ca8-cdca-11e4-9458-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "59096ca8-cdca-11e4-9458-705681abff85"], ["created_at", "2015-03-18 23:56:08.886199"], ["updated_at", "2015-03-18 23:56:08.886199"], ["token", "qx9yr9tYldm6PE6O1OoG5HDY9Yc7S9_OKeUPqXORYBc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$Nl/kr.MloI5J.us7NWau3eKFkeoxF7YT..euWE6I4kZsm2Jb8oL7W"], ["created_at", "2015-03-18 23:56:08.892987"], ["updated_at", "2015-03-18 23:56:08.892987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.897953"], ["updated_at", "2015-03-18 23:56:08.897953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '590b08e2-cdca-11e4-85f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '590bc34a-cdca-11e4-8e5f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "590b08e2-cdca-11e4-85f2-705681abff85"], ["organization_id", "590bc34a-cdca-11e4-8e5f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.902600"], ["updated_at", "2015-03-18 23:56:08.902600"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '590bc34a-cdca-11e4-8e5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "590bc34a-cdca-11e4-8e5f-705681abff85"], ["created_at", "2015-03-18 23:56:08.906996"], ["updated_at", "2015-03-18 23:56:08.906996"], ["token", "mJ0VnJIBXuvNcqSffIM9hzPOqfjWuwGuuLQ0IjKEZdo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$lXPpuFd66bx341Iemwc/a.gG/IzqWWA31b/p2UreTZOhOwORsW/5e"], ["created_at", "2015-03-18 23:56:08.913022"], ["updated_at", "2015-03-18 23:56:08.913022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.916105"], ["updated_at", "2015-03-18 23:56:08.916105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '590e0650-cdca-11e4-af2b-705681abff85' AND "clubhouse_memberships"."organization_id" = '590e966a-cdca-11e4-96c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "590e0650-cdca-11e4-af2b-705681abff85"], ["organization_id", "590e966a-cdca-11e4-96c1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.920694"], ["updated_at", "2015-03-18 23:56:08.920694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '590e966a-cdca-11e4-96c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "590e966a-cdca-11e4-96c1-705681abff85"], ["created_at", "2015-03-18 23:56:08.924297"], ["updated_at", "2015-03-18 23:56:08.924297"], ["token", "Ycue3Wdjo9INjxotknPwv-xZ5tOOaiRbMJNg4cj6NxA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$zbyGMcSLAF8Qu..WrQjcpO0DFd.H/HmUopp1.ZEnzgx61XQRT1fo6"], ["created_at", "2015-03-18 23:56:08.930613"], ["updated_at", "2015-03-18 23:56:08.930613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.933785"], ["updated_at", "2015-03-18 23:56:08.933785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5910b7ba-cdca-11e4-b639-705681abff85' AND "clubhouse_memberships"."organization_id" = '5911300a-cdca-11e4-a661-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5910b7ba-cdca-11e4-b639-705681abff85"], ["organization_id", "5911300a-cdca-11e4-a661-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.937016"], ["updated_at", "2015-03-18 23:56:08.937016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '5911300a-cdca-11e4-a661-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "5911300a-cdca-11e4-a661-705681abff85"], ["created_at", "2015-03-18 23:56:08.940486"], ["updated_at", "2015-03-18 23:56:08.940486"], ["token", "FAC0bJBq9_Cyic1d-5VfFUBbbbsszTwUViqY5S3xmkk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$qbKNqbUqAo9U/9V6Hp6CPONPhzybmY7rwufi9tt6FJHnlj/R4Itka"], ["created_at", "2015-03-18 23:56:08.946437"], ["updated_at", "2015-03-18 23:56:08.946437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-18 23:56:08.949718"], ["updated_at", "2015-03-18 23:56:08.949718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59131ff0-cdca-11e4-bea1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5913a024-cdca-11e4-a763-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59131ff0-cdca-11e4-bea1-705681abff85"], ["organization_id", "5913a024-cdca-11e4-a763-705681abff85"], ["admin", "t"], ["created_at", "2015-03-18 23:56:08.953811"], ["updated_at", "2015-03-18 23:56:08.953811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '5913a024-cdca-11e4-a763-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "5913a024-cdca-11e4-a763-705681abff85"], ["created_at", "2015-03-18 23:56:08.957974"], ["updated_at", "2015-03-18 23:56:08.957974"], ["token", "t4wq0z-qfctlBLDzR0QIz7oahR4fsTwpivLX6jCadJo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (58.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$duPKJ508Hn5RBi5HmtKXU.ZS0og0ISfmKhwCjx9Lc/RSz.3Eu7BJ6"], ["created_at", "2015-03-19 00:00:58.576725"], ["updated_at", "2015-03-19 00:00:58.576725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.694139"], ["updated_at", "2015-03-19 00:00:58.694139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ZqOor8O9wc/6P.EHqJ34d.7JOnolB3fvLyYffCL6niwVnmXtRLJs2"], ["created_at", "2015-03-19 00:00:58.709124"], ["updated_at", "2015-03-19 00:00:58.709124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.716249"], ["updated_at", "2015-03-19 00:00:58.716249"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$iQqWyWHyefPenXVJTbxeK.ntr/6wF.uOdKXTV3FLiQk3ZmLDQHjpa"], ["created_at", "2015-03-19 00:00:58.723001"], ["updated_at", "2015-03-19 00:00:58.723001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.726451"], ["updated_at", "2015-03-19 00:00:58.726451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05cb8a16-cdcb-11e4-8f91-705681abff85' LIMIT 1 [["organization_id", "05cc1486-cdcb-11e4-a070-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$lVU3ec2IM6MmHTQHwVgoqOYxKwpatVdzbRJgxLp457UIWI1FC8dAK"], ["created_at", "2015-03-19 00:00:58.759813"], ["updated_at", "2015-03-19 00:00:58.759813"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.766594"], ["updated_at", "2015-03-19 00:00:58.766594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05d150ae-cdcb-11e4-89f5-705681abff85' LIMIT 1 [["organization_id", "05d26552-cdcb-11e4-a5c7-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$N5/tTMLOaAqPsPqdpLHc2e6qkoH4Nv8aJX4/B00n174dBK6Kc79wq"], ["created_at", "2015-03-19 00:00:58.779888"], ["updated_at", "2015-03-19 00:00:58.779888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.783281"], ["updated_at", "2015-03-19 00:00:58.783281"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '05d4392c-cdcb-11e4-988d-705681abff85' LIMIT 1 [["organization_id", "05d4b7d0-cdcb-11e4-a144-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$7OHWf.NgLO3Zt68KxDfM9.25EHJ6XjG/ZDYvVV3RmcEZqVnbm1Q6O"], ["created_at", "2015-03-19 00:00:58.790929"], ["updated_at", "2015-03-19 00:00:58.790929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.794236"], ["updated_at", "2015-03-19 00:00:58.794236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05d5e9ca-cdcb-11e4-acfa-705681abff85' AND "clubhouse_memberships"."organization_id" = '05d66594-cdcb-11e4-94fd-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "05d5e9ca-cdcb-11e4-acfa-705681abff85"], ["organization_id", "05d66594-cdcb-11e4-94fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:58.806398"], ["updated_at", "2015-03-19 00:00:58.806398"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$StkQgzRElCZ/GcWNDUwXPOqLPNXEvgFlihPGzXAe.aBokknNAFZ.."], ["created_at", "2015-03-19 00:00:58.814733"], ["updated_at", "2015-03-19 00:00:58.814733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.818793"], ["updated_at", "2015-03-19 00:00:58.818793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05d999bc-cdcb-11e4-b463-705681abff85' AND "clubhouse_memberships"."organization_id" = '05da212a-cdcb-11e4-8c83-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "05d999bc-cdcb-11e4-b463-705681abff85"], ["organization_id", "05da212a-cdcb-11e4-8c83-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:58.822002"], ["updated_at", "2015-03-19 00:00:58.822002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$mSc9mTvdjSCIh2URhuhlV.3sjucLMUriw6XELQhUu3H24A5vAHjhO"], ["created_at", "2015-03-19 00:00:58.828002"], ["updated_at", "2015-03-19 00:00:58.828002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.831251"], ["updated_at", "2015-03-19 00:00:58.831251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05db8c2c-cdcb-11e4-ba91-705681abff85' AND "clubhouse_memberships"."organization_id" = '05dc0774-cdcb-11e4-ac60-705681abff85') LIMIT 1 SQL (6.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "05db8c2c-cdcb-11e4-ba91-705681abff85"], ["organization_id", "05dc0774-cdcb-11e4-ac60-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:58.834749"], ["updated_at", "2015-03-19 00:00:58.834749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05db8c2c-cdcb-11e4-ba91-705681abff85' LIMIT 1 [["organization_id", "05dc0774-cdcb-11e4-ac60-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$dUutf1nUKfDUEFuIMjTA..KE6he9qcj3r7ZGTB/VlsJVqsBT3mcYK"], ["created_at", "2015-03-19 00:00:58.848167"], ["updated_at", "2015-03-19 00:00:58.848167"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.852445"], ["updated_at", "2015-03-19 00:00:58.852445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05deb17c-cdcb-11e4-b83a-705681abff85' AND "clubhouse_memberships"."organization_id" = '05df47cc-cdcb-11e4-8498-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "05deb17c-cdcb-11e4-b83a-705681abff85"], ["organization_id", "05df47cc-cdcb-11e4-8498-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:58.855912"], ["updated_at", "2015-03-19 00:00:58.855912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05deb17c-cdcb-11e4-b83a-705681abff85' LIMIT 1 [["organization_id", "05df47cc-cdcb-11e4-8498-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$XANn3Rkz6RwRy6z2XT0nGeUpHRHnYaEJS6OLNwyzf5n4OBV1m48Pe"], ["created_at", "2015-03-19 00:00:58.862808"], ["updated_at", "2015-03-19 00:00:58.862808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.866875"], ["updated_at", "2015-03-19 00:00:58.866875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05e0e5a0-cdcb-11e4-b1ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '05e17862-cdcb-11e4-83da-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "05e0e5a0-cdcb-11e4-b1ca-705681abff85"], ["organization_id", "05e17862-cdcb-11e4-83da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:58.870255"], ["updated_at", "2015-03-19 00:00:58.870255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '05e0e5a0-cdcb-11e4-b1ca-705681abff85' LIMIT 1 [["organization_id", "05e17862-cdcb-11e4-83da-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$SqDper3flXjdlQvgwUsdFOQ1NXscYtpkns/Zs.Cv.cQk7ROSqjnX6"], ["created_at", "2015-03-19 00:00:58.877250"], ["updated_at", "2015-03-19 00:00:58.877250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.880393"], ["updated_at", "2015-03-19 00:00:58.880393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05e30f9c-cdcb-11e4-b5b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '05e38742-cdcb-11e4-a5fd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "05e30f9c-cdcb-11e4-b5b9-705681abff85"], ["organization_id", "05e38742-cdcb-11e4-a5fd-705681abff85"], ["created_at", "2015-03-19 00:00:58.883510"], ["updated_at", "2015-03-19 00:00:58.883510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$tuLc4o0tYcAB0Qc0WhF5/.Ljlusts0qoVE7Nj3GDXIW/1aOLidloy"], ["created_at", "2015-03-19 00:00:58.889479"], ["updated_at", "2015-03-19 00:00:58.889479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.892605"], ["updated_at", "2015-03-19 00:00:58.892605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05e4ebaa-cdcb-11e4-af1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '05e5649a-cdcb-11e4-981f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "05e4ebaa-cdcb-11e4-af1b-705681abff85"], ["organization_id", "05e5649a-cdcb-11e4-981f-705681abff85"], ["created_at", "2015-03-19 00:00:58.895772"], ["updated_at", "2015-03-19 00:00:58.895772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$5XiM/624XVaI2t1EroYB1OT1IahxlpFM9mdUDSCaJrqpVDdpG3SPe"], ["created_at", "2015-03-19 00:00:58.901865"], ["updated_at", "2015-03-19 00:00:58.901865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.906152"], ["updated_at", "2015-03-19 00:00:58.906152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05e6e8c4-cdcb-11e4-95df-705681abff85' AND "clubhouse_memberships"."organization_id" = '05e776e0-cdcb-11e4-a602-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "05e6e8c4-cdcb-11e4-95df-705681abff85"], ["organization_id", "05e776e0-cdcb-11e4-a602-705681abff85"], ["created_at", "2015-03-19 00:00:58.909472"], ["updated_at", "2015-03-19 00:00:58.909472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05e6e8c4-cdcb-11e4-95df-705681abff85' LIMIT 1 [["organization_id", "05e776e0-cdcb-11e4-a602-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$KeDH4kG8OorHlfk6LN6LWeYvtLYM0dAM/Fp0E39brKPP4HhnGt3Hu"], ["created_at", "2015-03-19 00:00:58.916774"], ["updated_at", "2015-03-19 00:00:58.916774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.920005"], ["updated_at", "2015-03-19 00:00:58.920005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05e917f2-cdcb-11e4-bdce-705681abff85' AND "clubhouse_memberships"."organization_id" = '05e99380-cdcb-11e4-98d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "05e917f2-cdcb-11e4-bdce-705681abff85"], ["organization_id", "05e99380-cdcb-11e4-98d4-705681abff85"], ["created_at", "2015-03-19 00:00:58.923131"], ["updated_at", "2015-03-19 00:00:58.923131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05e917f2-cdcb-11e4-bdce-705681abff85' LIMIT 1 [["organization_id", "05e99380-cdcb-11e4-98d4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$27iTfDuJp/ngpMU8q007FetKLvRaUS0ItFrbkEQnsIROXpifqnyoW"], ["created_at", "2015-03-19 00:00:58.931788"], ["updated_at", "2015-03-19 00:00:58.931788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.935194"], ["updated_at", "2015-03-19 00:00:58.935194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05eb650c-cdcb-11e4-aec6-705681abff85' AND "clubhouse_memberships"."organization_id" = '05ebe75c-cdcb-11e4-89b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "05eb650c-cdcb-11e4-aec6-705681abff85"], ["organization_id", "05ebe75c-cdcb-11e4-89b7-705681abff85"], ["created_at", "2015-03-19 00:00:58.938741"], ["updated_at", "2015-03-19 00:00:58.938741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '05eb650c-cdcb-11e4-aec6-705681abff85' LIMIT 1 [["organization_id", "05ebe75c-cdcb-11e4-89b7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$NJmDW2kCDf.7gMN5jSQNw.08ZXFabINTnFB3V5ZIWGDCn7pOHsoc."], ["created_at", "2015-03-19 00:00:58.945803"], ["updated_at", "2015-03-19 00:00:58.945803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.949309"], ["updated_at", "2015-03-19 00:00:58.949309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '05ee1072-cdcb-11e4-a72e-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "05ee1072-cdcb-11e4-a72e-705681abff85"], ["created_at", "2015-03-19 00:00:58.959733"], ["updated_at", "2015-03-19 00:00:58.959733"], ["token", "d5zJQ4l9qOrY2lF1uT8GnNrQSBcDlR3QTcbgPuLF4wU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05ed8634-cdcb-11e4-8ba3-705681abff85' LIMIT 1 [["organization_id", "05ee1072-cdcb-11e4-a72e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$7QY4IL8zLydFltWmDGJju.KB3B3Q20zPgfUWjovtO1qR7N8m50SG."], ["created_at", "2015-03-19 00:00:58.968513"], ["updated_at", "2015-03-19 00:00:58.968513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.971581"], ["updated_at", "2015-03-19 00:00:58.971581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '05f1712c-cdcb-11e4-9d5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "05f1712c-cdcb-11e4-9d5f-705681abff85"], ["created_at", "2015-03-19 00:00:58.974814"], ["updated_at", "2015-03-19 00:00:58.974814"], ["token", "En6vlvoGdR2UygSJc-PMZI6OWBEDO1fcojIe_Y5jGDw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05f0fa9e-cdcb-11e4-8eb8-705681abff85' LIMIT 1 [["organization_id", "05f1712c-cdcb-11e4-9d5f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$QmOo.GJwGjSJ75jeNY1It.3D4jVMixgBpOb7YNtUfqb2f7mJb.zXC"], ["created_at", "2015-03-19 00:00:58.982444"], ["updated_at", "2015-03-19 00:00:58.982444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:58.985740"], ["updated_at", "2015-03-19 00:00:58.985740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '05f39e20-cdcb-11e4-b43b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "05f39e20-cdcb-11e4-b43b-705681abff85"], ["created_at", "2015-03-19 00:00:58.989388"], ["updated_at", "2015-03-19 00:00:58.989388"], ["token", "Uyj7-s1QzzfIP1OrF3j2dZTAj0CCqwJ0LLQLtqmLoMA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05f31c84-cdcb-11e4-956f-705681abff85' LIMIT 1 [["organization_id", "05f39e20-cdcb-11e4-b43b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$p0BL3dVkp7pEpnzXPXKbNuDQMHi3PGbG5RWcgw8Gpeaktdzx1ycIi"], ["created_at", "2015-03-19 00:00:58.996870"], ["updated_at", "2015-03-19 00:00:58.996870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.000724"], ["updated_at", "2015-03-19 00:00:59.000724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '05f5e81a-cdcb-11e4-a5c2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "05f5e81a-cdcb-11e4-a5c2-705681abff85"], ["created_at", "2015-03-19 00:00:59.004314"], ["updated_at", "2015-03-19 00:00:59.004314"], ["token", "rj4P8fjUvX_9fwH7F68G4QX1QRy33V5C2xAAALtR3mM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05f55044-cdcb-11e4-bfeb-705681abff85' LIMIT 1 [["organization_id", "05f5e81a-cdcb-11e4-a5c2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$0b8yRCtOLyh4oBr/XssmPeyw7i.6IbCs/sbVJ0/w/.pDWze3CydZ2"], ["created_at", "2015-03-19 00:00:59.012333"], ["updated_at", "2015-03-19 00:00:59.012333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.016504"], ["updated_at", "2015-03-19 00:00:59.016504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05f7ac22-cdcb-11e4-92b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '05f84fa6-cdcb-11e4-ab1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "05f7ac22-cdcb-11e4-92b6-705681abff85"], ["organization_id", "05f84fa6-cdcb-11e4-ab1a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.019982"], ["updated_at", "2015-03-19 00:00:59.019982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '05f84fa6-cdcb-11e4-ab1a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "05f84fa6-cdcb-11e4-ab1a-705681abff85"], ["created_at", "2015-03-19 00:00:59.023478"], ["updated_at", "2015-03-19 00:00:59.023478"], ["token", "-T4kEVRNVn362QlGACT3I6A2kNRUeeFZbeTuzh6AuSk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05f7ac22-cdcb-11e4-92b6-705681abff85' LIMIT 1 [["organization_id", "05f84fa6-cdcb-11e4-ab1a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$KuyGQK4uYtY0oTOSBA9oROypJyXKff8lpKW6/VZnCcHugN1Bpy2I2"], ["created_at", "2015-03-19 00:00:59.030887"], ["updated_at", "2015-03-19 00:00:59.030887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.034159"], ["updated_at", "2015-03-19 00:00:59.034159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05fa8168-cdcb-11e4-9bf5-705681abff85' AND "clubhouse_memberships"."organization_id" = '05fafe5e-cdcb-11e4-ae4a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "05fa8168-cdcb-11e4-9bf5-705681abff85"], ["organization_id", "05fafe5e-cdcb-11e4-ae4a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.037577"], ["updated_at", "2015-03-19 00:00:59.037577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '05fafe5e-cdcb-11e4-ae4a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "05fafe5e-cdcb-11e4-ae4a-705681abff85"], ["created_at", "2015-03-19 00:00:59.041433"], ["updated_at", "2015-03-19 00:00:59.041433"], ["token", "nVvheP5PEQBxgy51A8CVjvn2x94ZengmbwlbKVALTnY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05fa8168-cdcb-11e4-9bf5-705681abff85' LIMIT 1 [["organization_id", "05fafe5e-cdcb-11e4-ae4a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$Yd.qYp93PZ1KBTHuDReVqe5OsL6I0ETZovsWW1ZF6ZQ6TbqDHvdgW"], ["created_at", "2015-03-19 00:00:59.050556"], ["updated_at", "2015-03-19 00:00:59.050556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.054206"], ["updated_at", "2015-03-19 00:00:59.054206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05fd85f2-cdcb-11e4-872d-705681abff85' AND "clubhouse_memberships"."organization_id" = '05fe1260-cdcb-11e4-8f50-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "05fd85f2-cdcb-11e4-872d-705681abff85"], ["organization_id", "05fe1260-cdcb-11e4-8f50-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.058666"], ["updated_at", "2015-03-19 00:00:59.058666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '05fe1260-cdcb-11e4-8f50-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "05fe1260-cdcb-11e4-8f50-705681abff85"], ["created_at", "2015-03-19 00:00:59.063102"], ["updated_at", "2015-03-19 00:00:59.063102"], ["token", "XQTGcXmRMKVVdvfiU5ou_kLNvt5inctDlo7nlaAwwMA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '05fd85f2-cdcb-11e4-872d-705681abff85' LIMIT 1 [["organization_id", "05fe1260-cdcb-11e4-8f50-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$kaHdCpqB7jylOYdLAg9Kwu.NZa4KZRsIqhDFsTSmcIQ/17Eo/qFyO"], ["created_at", "2015-03-19 00:00:59.084764"], ["updated_at", "2015-03-19 00:00:59.084764"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.090972"], ["updated_at", "2015-03-19 00:00:59.090972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0602f122-cdcb-11e4-9ff5-705681abff85' AND "clubhouse_memberships"."organization_id" = '0603b2f6-cdcb-11e4-af5f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0602f122-cdcb-11e4-9ff5-705681abff85"], ["organization_id", "0603b2f6-cdcb-11e4-af5f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.095083"], ["updated_at", "2015-03-19 00:00:59.095083"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '0603b2f6-cdcb-11e4-af5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "0603b2f6-cdcb-11e4-af5f-705681abff85"], ["created_at", "2015-03-19 00:00:59.107309"], ["updated_at", "2015-03-19 00:00:59.107309"], ["token", "YcX1P4GLDGdxQUOT4V_ZG_CI2-UdD2T4TYug3i_7gkY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0602f122-cdcb-11e4-9ff5-705681abff85' LIMIT 1 [["organization_id", "0603b2f6-cdcb-11e4-af5f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$zaBUizQfvqLzpvBQvIqpG.LTsHidnkChQ.GoypbXbJycQmSB/LLKW"], ["created_at", "2015-03-19 00:00:59.115002"], ["updated_at", "2015-03-19 00:00:59.115002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.118682"], ["updated_at", "2015-03-19 00:00:59.118682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06075ce4-cdcb-11e4-8455-705681abff85' AND "clubhouse_memberships"."organization_id" = '0607e4ac-cdcb-11e4-b2e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06075ce4-cdcb-11e4-8455-705681abff85"], ["organization_id", "0607e4ac-cdcb-11e4-b2e4-705681abff85"], ["created_at", "2015-03-19 00:00:59.121879"], ["updated_at", "2015-03-19 00:00:59.121879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '0607e4ac-cdcb-11e4-b2e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "0607e4ac-cdcb-11e4-b2e4-705681abff85"], ["created_at", "2015-03-19 00:00:59.125236"], ["updated_at", "2015-03-19 00:00:59.125236"], ["token", "kzIviThvvrLm7-vp7ehH00c9KC1vACYN4gpMqzmFldI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '06075ce4-cdcb-11e4-8455-705681abff85' LIMIT 1 [["organization_id", "0607e4ac-cdcb-11e4-b2e4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$9QxWP9siA6ETm4RQjeqLwu3wGIusS.osmGepWw9I8VO0ja1rAqIke"], ["created_at", "2015-03-19 00:00:59.133007"], ["updated_at", "2015-03-19 00:00:59.133007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.136417"], ["updated_at", "2015-03-19 00:00:59.136417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '060a184e-cdcb-11e4-9b17-705681abff85' AND "clubhouse_memberships"."organization_id" = '060a9864-cdcb-11e4-b8ac-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "060a184e-cdcb-11e4-9b17-705681abff85"], ["organization_id", "060a9864-cdcb-11e4-b8ac-705681abff85"], ["created_at", "2015-03-19 00:00:59.139850"], ["updated_at", "2015-03-19 00:00:59.139850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '060a9864-cdcb-11e4-b8ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "060a9864-cdcb-11e4-b8ac-705681abff85"], ["created_at", "2015-03-19 00:00:59.143794"], ["updated_at", "2015-03-19 00:00:59.143794"], ["token", "tluuDDlz88QBBojTOxQX9xhIIVf6c3aekW0sWPSe_w4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '060a184e-cdcb-11e4-9b17-705681abff85' LIMIT 1 [["organization_id", "060a9864-cdcb-11e4-b8ac-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$.w/XIzUBfYC9DgaNCL96DO0WyN/adeuFHkg8.D1pW7vjuNdHVal2m"], ["created_at", "2015-03-19 00:00:59.151366"], ["updated_at", "2015-03-19 00:00:59.151366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.154486"], ["updated_at", "2015-03-19 00:00:59.154486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '060ce236-cdcb-11e4-b09e-705681abff85' AND "clubhouse_memberships"."organization_id" = '060d5ad6-cdcb-11e4-b836-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "060ce236-cdcb-11e4-b09e-705681abff85"], ["organization_id", "060d5ad6-cdcb-11e4-b836-705681abff85"], ["created_at", "2015-03-19 00:00:59.157827"], ["updated_at", "2015-03-19 00:00:59.157827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '060d5ad6-cdcb-11e4-b836-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "060d5ad6-cdcb-11e4-b836-705681abff85"], ["created_at", "2015-03-19 00:00:59.161243"], ["updated_at", "2015-03-19 00:00:59.161243"], ["token", "FuOVHXkVLf5Yo1iS323ncIO9eJXQrUA3eS28yP_7QIA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '060ce236-cdcb-11e4-b09e-705681abff85' LIMIT 1 [["organization_id", "060d5ad6-cdcb-11e4-b836-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$79VdwRVPFoSTsIvcwTFCROPp.fVQgYZwLeLoTwDknVPccN9JBjeW6"], ["created_at", "2015-03-19 00:00:59.170292"], ["updated_at", "2015-03-19 00:00:59.170292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.173638"], ["updated_at", "2015-03-19 00:00:59.173638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '060fc6b8-cdcb-11e4-8804-705681abff85' AND "clubhouse_memberships"."organization_id" = '06104854-cdcb-11e4-8d52-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "060fc6b8-cdcb-11e4-8804-705681abff85"], ["organization_id", "06104854-cdcb-11e4-8d52-705681abff85"], ["created_at", "2015-03-19 00:00:59.176894"], ["updated_at", "2015-03-19 00:00:59.176894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '06104854-cdcb-11e4-8d52-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "06104854-cdcb-11e4-8d52-705681abff85"], ["created_at", "2015-03-19 00:00:59.180631"], ["updated_at", "2015-03-19 00:00:59.180631"], ["token", "vDnDwU1WT1RUuJFyEVE-UJLKGvh7Kw8__Oz1KGuigzI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '060fc6b8-cdcb-11e4-8804-705681abff85' LIMIT 1 [["organization_id", "06104854-cdcb-11e4-8d52-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$ZnoLqUqeF5dbNHnYOHydl.Ic7b38Js0pm.tpjgL.Q/.1TxaMtGL1q"], ["created_at", "2015-03-19 00:00:59.189062"], ["updated_at", "2015-03-19 00:00:59.189062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$gbhCPkkyjM2KMJRLcdA17.q9z944JPVCiigSjUI.GUpUS/X7U61HK"], ["created_at", "2015-03-19 00:00:59.193198"], ["updated_at", "2015-03-19 00:00:59.193198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.196451"], ["updated_at", "2015-03-19 00:00:59.196451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0613464e-cdcb-11e4-b11c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0613c236-cdcb-11e4-8457-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0613464e-cdcb-11e4-b11c-705681abff85"], ["organization_id", "0613c236-cdcb-11e4-8457-705681abff85"], ["created_at", "2015-03-19 00:00:59.199828"], ["updated_at", "2015-03-19 00:00:59.199828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0612a234-cdcb-11e4-910e-705681abff85' LIMIT 1 [["organization_id", "0613c236-cdcb-11e4-8457-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$ns/IMjeao0hn/a4KPkAnSuW6t95H11VnZjFEemPCbY3NhqMJABYfy"], ["created_at", "2015-03-19 00:00:59.206742"], ["updated_at", "2015-03-19 00:00:59.206742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$C/AmrE8q/GX.HlYXrw7V2e5NgT1wk9Y/ygBqzOQ4WLBa835Ryzm0W"], ["created_at", "2015-03-19 00:00:59.211142"], ["updated_at", "2015-03-19 00:00:59.211142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.214242"], ["updated_at", "2015-03-19 00:00:59.214242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06160064-cdcb-11e4-891b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0616777e-cdcb-11e4-86d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06160064-cdcb-11e4-891b-705681abff85"], ["organization_id", "0616777e-cdcb-11e4-86d4-705681abff85"], ["created_at", "2015-03-19 00:00:59.217775"], ["updated_at", "2015-03-19 00:00:59.217775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$Ne8x.TNL0tJTySYLKYBdAO/mpW.47Cp7VNfReVetS2j4AIRSMAUsm"], ["created_at", "2015-03-19 00:00:59.223830"], ["updated_at", "2015-03-19 00:00:59.223830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$5G7HLMC.m1vNYotYU21HxOri33HBpUzK13qzC2SreVUFm6KuH5D92"], ["created_at", "2015-03-19 00:00:59.228002"], ["updated_at", "2015-03-19 00:00:59.228002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.231205"], ["updated_at", "2015-03-19 00:00:59.231205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0618925c-cdcb-11e4-b6ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '06191786-cdcb-11e4-aa35-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0618925c-cdcb-11e4-b6ae-705681abff85"], ["organization_id", "06191786-cdcb-11e4-aa35-705681abff85"], ["created_at", "2015-03-19 00:00:59.235188"], ["updated_at", "2015-03-19 00:00:59.235188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0617f112-cdcb-11e4-acf8-705681abff85' LIMIT 1 [["organization_id", "06191786-cdcb-11e4-aa35-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$D6Juh/sHiWEm0HVwXZmwY.t1mmyFnsKwZ4HeIdfWSMOi56Nu/xggW"], ["created_at", "2015-03-19 00:00:59.242240"], ["updated_at", "2015-03-19 00:00:59.242240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$yFIF/Xf//aJ/mfFSdMXiROk9GXWfmHzzP1shvZGuLM7S9gs3SsrUe"], ["created_at", "2015-03-19 00:00:59.246884"], ["updated_at", "2015-03-19 00:00:59.246884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.250105"], ["updated_at", "2015-03-19 00:00:59.250105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '061b74fe-cdcb-11e4-ab63-705681abff85' AND "clubhouse_memberships"."organization_id" = '061bf1b8-cdcb-11e4-bd14-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "061b74fe-cdcb-11e4-ab63-705681abff85"], ["organization_id", "061bf1b8-cdcb-11e4-bd14-705681abff85"], ["created_at", "2015-03-19 00:00:59.253211"], ["updated_at", "2015-03-19 00:00:59.253211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '061ac356-cdcb-11e4-92cf-705681abff85' LIMIT 1 [["organization_id", "061bf1b8-cdcb-11e4-bd14-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$sl/4C2szIRIcsl83Dmu7puysdRbDUUgyicmgmBeaxvvV.TzQdt8sa"], ["created_at", "2015-03-19 00:00:59.260580"], ["updated_at", "2015-03-19 00:00:59.260580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.263714"], ["updated_at", "2015-03-19 00:00:59.263714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '061d8cc6-cdcb-11e4-8e9a-705681abff85' AND "clubhouse_memberships"."organization_id" = '061e0426-cdcb-11e4-8be9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "061d8cc6-cdcb-11e4-8e9a-705681abff85"], ["organization_id", "061e0426-cdcb-11e4-8be9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.268001"], ["updated_at", "2015-03-19 00:00:59.268001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '061d8cc6-cdcb-11e4-8e9a-705681abff85' LIMIT 1 [["organization_id", "061e0426-cdcb-11e4-8be9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$NYXaFUVv1xSatjcIBzLMd.fXigx8KBFrz42uzX2NudWv66S44Q6K6"], ["created_at", "2015-03-19 00:00:59.276811"], ["updated_at", "2015-03-19 00:00:59.276811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.280481"], ["updated_at", "2015-03-19 00:00:59.280481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '062009e2-cdcb-11e4-b095-705681abff85' AND "clubhouse_memberships"."organization_id" = '0620956a-cdcb-11e4-bd26-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "062009e2-cdcb-11e4-b095-705681abff85"], ["organization_id", "0620956a-cdcb-11e4-bd26-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.284740"], ["updated_at", "2015-03-19 00:00:59.284740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$puPuQPjVipQTAeIfQn5bKO5SdvE0eG75UR6BBKWj0N7liIV9I6xl2"], ["created_at", "2015-03-19 00:00:59.290654"], ["updated_at", "2015-03-19 00:00:59.290654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.294090"], ["updated_at", "2015-03-19 00:00:59.294090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06222394-cdcb-11e4-acb2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0622a792-cdcb-11e4-b487-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "06222394-cdcb-11e4-acb2-705681abff85"], ["organization_id", "0622a792-cdcb-11e4-b487-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.297285"], ["updated_at", "2015-03-19 00:00:59.297285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '06222394-cdcb-11e4-acb2-705681abff85' LIMIT 1 [["organization_id", "0622a792-cdcb-11e4-b487-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$PNhw0EiZIid1hGB33Kqjhun/1dhGzodk4ukD.L6fDsm26x03Oe3Mq"], ["created_at", "2015-03-19 00:00:59.304525"], ["updated_at", "2015-03-19 00:00:59.304525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.307694"], ["updated_at", "2015-03-19 00:00:59.307694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0624423c-cdcb-11e4-98f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0624ba46-cdcb-11e4-abe7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0624423c-cdcb-11e4-98f1-705681abff85"], ["organization_id", "0624ba46-cdcb-11e4-abe7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.311010"], ["updated_at", "2015-03-19 00:00:59.311010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0624423c-cdcb-11e4-98f1-705681abff85' LIMIT 1 [["organization_id", "0624ba46-cdcb-11e4-abe7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$SQ0LYA6dQnRjEn1O17JKquwcGKNJgMiJiVRz5itc6o4BFxUzho7XC"], ["created_at", "2015-03-19 00:00:59.318133"], ["updated_at", "2015-03-19 00:00:59.318133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.321366"], ["updated_at", "2015-03-19 00:00:59.321366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06265770-cdcb-11e4-8d0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0626d128-cdcb-11e4-9f17-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "06265770-cdcb-11e4-8d0d-705681abff85"], ["organization_id", "0626d128-cdcb-11e4-9f17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.324552"], ["updated_at", "2015-03-19 00:00:59.324552"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$SrXOsV7xciluxxog6JVN3u7wGTk1E7Y37T6ULY5BpFDdnD.B62NBq"], ["created_at", "2015-03-19 00:00:59.329887"], ["updated_at", "2015-03-19 00:00:59.329887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06281f06-cdcb-11e4-a1e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0626d128-cdcb-11e4-9f17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06281f06-cdcb-11e4-a1e8-705681abff85"], ["organization_id", "0626d128-cdcb-11e4-9f17-705681abff85"], ["created_at", "2015-03-19 00:00:59.333692"], ["updated_at", "2015-03-19 00:00:59.333692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '06265770-cdcb-11e4-8d0d-705681abff85' LIMIT 1 [["organization_id", "0626d128-cdcb-11e4-9f17-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$nZaGNb6RIBS/O3pityhSbuDbk2QFqLEgbBNjS.Is0WI0f04Z7y4xy"], ["created_at", "2015-03-19 00:00:59.340966"], ["updated_at", "2015-03-19 00:00:59.340966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.344038"], ["updated_at", "2015-03-19 00:00:59.344038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0629d03a-cdcb-11e4-9466-705681abff85' AND "clubhouse_memberships"."organization_id" = '062a46fa-cdcb-11e4-9c7c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0629d03a-cdcb-11e4-9466-705681abff85"], ["organization_id", "062a46fa-cdcb-11e4-9c7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.347965"], ["updated_at", "2015-03-19 00:00:59.347965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$wF77Fj31BN.zBoYs.11RpenQCTolIIqRoRMqss1raao7veQ2r7DPe"], ["created_at", "2015-03-19 00:00:59.353217"], ["updated_at", "2015-03-19 00:00:59.353217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '062baeb4-cdcb-11e4-a665-705681abff85' AND "clubhouse_memberships"."organization_id" = '062a46fa-cdcb-11e4-9c7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "062baeb4-cdcb-11e4-a665-705681abff85"], ["organization_id", "062a46fa-cdcb-11e4-9c7c-705681abff85"], ["created_at", "2015-03-19 00:00:59.356463"], ["updated_at", "2015-03-19 00:00:59.356463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$f4NJ6IJgNjYg9Rp0Hm1v5uuIFFgUPRE8Y8H1vpQUQhfrwOQvKPQfO"], ["created_at", "2015-03-19 00:00:59.362223"], ["updated_at", "2015-03-19 00:00:59.362223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.367674"], ["updated_at", "2015-03-19 00:00:59.367674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '062d0ed0-cdcb-11e4-8fc8-705681abff85' AND "clubhouse_memberships"."organization_id" = '062de774-cdcb-11e4-9b82-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "062d0ed0-cdcb-11e4-8fc8-705681abff85"], ["organization_id", "062de774-cdcb-11e4-9b82-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.371117"], ["updated_at", "2015-03-19 00:00:59.371117"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$h3/YrV9JoJzAuoLEmy1mZe7G9Ixjvtt1Cr9ipcv9G1nOpqFzYyIEW"], ["created_at", "2015-03-19 00:00:59.376482"], ["updated_at", "2015-03-19 00:00:59.376482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '062f3ca0-cdcb-11e4-b89c-705681abff85' AND "clubhouse_memberships"."organization_id" = '062de774-cdcb-11e4-9b82-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "062f3ca0-cdcb-11e4-b89c-705681abff85"], ["organization_id", "062de774-cdcb-11e4-9b82-705681abff85"], ["created_at", "2015-03-19 00:00:59.379802"], ["updated_at", "2015-03-19 00:00:59.379802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '062d0ed0-cdcb-11e4-8fc8-705681abff85' LIMIT 1 [["organization_id", "062de774-cdcb-11e4-9b82-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$BcMJ5aCBYlZy3KXN2pVNmuKzMS/NRMBygF1h0X71CxEq2HKqKMYFy"], ["created_at", "2015-03-19 00:00:59.388074"], ["updated_at", "2015-03-19 00:00:59.388074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.392147"], ["updated_at", "2015-03-19 00:00:59.392147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '063110ca-cdcb-11e4-bb69-705681abff85' AND "clubhouse_memberships"."organization_id" = '0631d5d2-cdcb-11e4-95ae-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "063110ca-cdcb-11e4-bb69-705681abff85"], ["organization_id", "0631d5d2-cdcb-11e4-95ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:00:59.399139"], ["updated_at", "2015-03-19 00:00:59.399139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$4fUMUrQw83paMpdCLGkiA.Pu8.Mup3KO.Tku6EEZg7uMVZ6ywaLt6"], ["created_at", "2015-03-19 00:00:59.405220"], ["updated_at", "2015-03-19 00:00:59.405220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06339ea8-cdcb-11e4-9d7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0631d5d2-cdcb-11e4-95ae-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06339ea8-cdcb-11e4-9d7c-705681abff85"], ["organization_id", "0631d5d2-cdcb-11e4-95ae-705681abff85"], ["created_at", "2015-03-19 00:00:59.410290"], ["updated_at", "2015-03-19 00:00:59.410290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '063110ca-cdcb-11e4-bb69-705681abff85' LIMIT 1 [["organization_id", "0631d5d2-cdcb-11e4-95ae-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$qbDhKcd49n00U4fyK5b5J.c56WFinEG7gcJgmc9a897DRhjwsHViu"], ["created_at", "2015-03-19 00:00:59.417980"], ["updated_at", "2015-03-19 00:00:59.417980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.423508"], ["updated_at", "2015-03-19 00:00:59.423508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0635a7e8-cdcb-11e4-a6dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '06366e8a-cdcb-11e4-a918-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0635a7e8-cdcb-11e4-a6dc-705681abff85"], ["organization_id", "06366e8a-cdcb-11e4-a918-705681abff85"], ["created_at", "2015-03-19 00:00:59.427087"], ["updated_at", "2015-03-19 00:00:59.427087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0635a7e8-cdcb-11e4-a6dc-705681abff85' LIMIT 1 [["organization_id", "06366e8a-cdcb-11e4-a918-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$tdcCuEuGjxVY0VD9SoCCveLR.ri76AbyS8xWbLFs7qPje2wOFEh7S"], ["created_at", "2015-03-19 00:00:59.434291"], ["updated_at", "2015-03-19 00:00:59.434291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.437735"], ["updated_at", "2015-03-19 00:00:59.437735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0638146a-cdcb-11e4-9aa6-705681abff85' AND "clubhouse_memberships"."organization_id" = '0638946c-cdcb-11e4-8694-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0638146a-cdcb-11e4-9aa6-705681abff85"], ["organization_id", "0638946c-cdcb-11e4-8694-705681abff85"], ["created_at", "2015-03-19 00:00:59.440940"], ["updated_at", "2015-03-19 00:00:59.440940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$T2kaqtZMz8hc.JWEEv72WejYNEfpFQ2ZJPYttlgHcqJk3I8TRGjTu"], ["created_at", "2015-03-19 00:00:59.447286"], ["updated_at", "2015-03-19 00:00:59.447286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.450919"], ["updated_at", "2015-03-19 00:00:59.450919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '063a0b1c-cdcb-11e4-8c38-705681abff85' AND "clubhouse_memberships"."organization_id" = '063a997e-cdcb-11e4-b47a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "063a0b1c-cdcb-11e4-8c38-705681abff85"], ["organization_id", "063a997e-cdcb-11e4-b47a-705681abff85"], ["created_at", "2015-03-19 00:00:59.454303"], ["updated_at", "2015-03-19 00:00:59.454303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '063a0b1c-cdcb-11e4-8c38-705681abff85' LIMIT 1 [["organization_id", "063a997e-cdcb-11e4-b47a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$mg.GVvtIKXdzgqsxJuYhy.pE/mjKhr5ngVHGJAIJQXsxYTqlI4C2m"], ["created_at", "2015-03-19 00:00:59.461123"], ["updated_at", "2015-03-19 00:00:59.461123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:00:59.464873"], ["updated_at", "2015-03-19 00:00:59.464873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '063c31b2-cdcb-11e4-ac4f-705681abff85' AND "clubhouse_memberships"."organization_id" = '063cba92-cdcb-11e4-8820-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "063c31b2-cdcb-11e4-ac4f-705681abff85"], ["organization_id", "063cba92-cdcb-11e4-8820-705681abff85"], ["created_at", "2015-03-19 00:00:59.468762"], ["updated_at", "2015-03-19 00:00:59.468762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '063c31b2-cdcb-11e4-ac4f-705681abff85' LIMIT 1 [["organization_id", "063cba92-cdcb-11e4-8820-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (26.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$b0RRtwEO09xQDz1s73UBwOE1Atc4K1TfeIvpPgcSVF/dd5ax1xYk2"], ["created_at", "2015-03-19 00:02:34.787410"], ["updated_at", "2015-03-19 00:02:34.787410"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:34.825068"], ["updated_at", "2015-03-19 00:02:34.825068"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f11c420-cdcb-11e4-b90f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f13946c-cdcb-11e4-8a0e-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f11c420-cdcb-11e4-b90f-705681abff85"], ["organization_id", "3f13946c-cdcb-11e4-8a0e-705681abff85"], ["created_at", "2015-03-19 00:02:34.848457"], ["updated_at", "2015-03-19 00:02:34.848457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3f11c420-cdcb-11e4-b90f-705681abff85' LIMIT 1 [["organization_id", "3f13946c-cdcb-11e4-8a0e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$eQLKF95Ai3QPx6Ag0voF4OGHo/TkfHynliblBTtiHQ0V4kNdN4Imq"], ["created_at", "2015-03-19 00:02:34.871660"], ["updated_at", "2015-03-19 00:02:34.871660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:34.875066"], ["updated_at", "2015-03-19 00:02:34.875066"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f1aa57c-cdcb-11e4-a52b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f1b2aa6-cdcb-11e4-a943-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f1aa57c-cdcb-11e4-a52b-705681abff85"], ["organization_id", "3f1b2aa6-cdcb-11e4-a943-705681abff85"], ["created_at", "2015-03-19 00:02:34.881281"], ["updated_at", "2015-03-19 00:02:34.881281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f1aa57c-cdcb-11e4-a52b-705681abff85' LIMIT 1 [["organization_id", "3f1b2aa6-cdcb-11e4-a943-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$vM7O53PLiCBQnGbzQFbdOur2hqor6P5bKrJPOcYgEUZpUwr8EbV8q"], ["created_at", "2015-03-19 00:02:34.888899"], ["updated_at", "2015-03-19 00:02:34.888899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:34.892046"], ["updated_at", "2015-03-19 00:02:34.892046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f1d4930-cdcb-11e4-bd88-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f1dbdde-cdcb-11e4-9cc3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f1d4930-cdcb-11e4-bd88-705681abff85"], ["organization_id", "3f1dbdde-cdcb-11e4-9cc3-705681abff85"], ["created_at", "2015-03-19 00:02:34.895110"], ["updated_at", "2015-03-19 00:02:34.895110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f1d4930-cdcb-11e4-bd88-705681abff85' LIMIT 1 [["organization_id", "3f1dbdde-cdcb-11e4-9cc3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$1OT7IQbTv8WFK/oqqIKLBekzG/KL/gvBKKxqWPzeE9nEIlOxPw14m"], ["created_at", "2015-03-19 00:02:34.902040"], ["updated_at", "2015-03-19 00:02:34.902040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (4.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:34.905762"], ["updated_at", "2015-03-19 00:02:34.905762"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f1f4e4c-cdcb-11e4-8de1-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f1fd948-cdcb-11e4-aa54-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f1f4e4c-cdcb-11e4-8de1-705681abff85"], ["organization_id", "3f1fd948-cdcb-11e4-aa54-705681abff85"], ["created_at", "2015-03-19 00:02:34.914962"], ["updated_at", "2015-03-19 00:02:34.914962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$7.2vRPfosWNxZNrE0BTl8evTueKO0/rwsP5Wx8wXKSLvoV/epckS."], ["created_at", "2015-03-19 00:02:34.922350"], ["updated_at", "2015-03-19 00:02:34.922350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$.xUwYc/lB/u14lRKyxAsRutwW59dKIWMcftVevyT2crVyrkOHwwFu"], ["created_at", "2015-03-19 00:02:34.926734"], ["updated_at", "2015-03-19 00:02:34.926734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:34.930473"], ["updated_at", "2015-03-19 00:02:34.930473"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f23092e-cdcb-11e4-a127-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f23a622-cdcb-11e4-815e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f23092e-cdcb-11e4-a127-705681abff85"], ["organization_id", "3f23a622-cdcb-11e4-815e-705681abff85"], ["created_at", "2015-03-19 00:02:34.935672"], ["updated_at", "2015-03-19 00:02:34.935672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3f22647e-cdcb-11e4-bba5-705681abff85' LIMIT 1 [["organization_id", "3f23a622-cdcb-11e4-815e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$teRAuECPbD01dh7LN0h9HeV/y0MVTbBW2ieuBzsk6e6Bd6GLVkzyO"], ["created_at", "2015-03-19 00:02:34.942517"], ["updated_at", "2015-03-19 00:02:34.942517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$fBLtiE3rTCXhQQX0xJbdQeFEu2nnCtVsRLIaU6NWuu.mYhaFZyoBC"], ["created_at", "2015-03-19 00:02:34.946830"], ["updated_at", "2015-03-19 00:02:34.946830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:34.949934"], ["updated_at", "2015-03-19 00:02:34.949934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f261ca4-cdcb-11e4-a904-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f269792-cdcb-11e4-9d96-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f261ca4-cdcb-11e4-a904-705681abff85"], ["organization_id", "3f269792-cdcb-11e4-9d96-705681abff85"], ["created_at", "2015-03-19 00:02:34.953153"], ["updated_at", "2015-03-19 00:02:34.953153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f25752e-cdcb-11e4-9c4f-705681abff85' LIMIT 1 [["organization_id", "3f269792-cdcb-11e4-9d96-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$LYCx69NI.K1qUhSYLGOrNO7SxBq3U.MuYW3k5DbX.vGA/9wfVk9sa"], ["created_at", "2015-03-19 00:02:34.960477"], ["updated_at", "2015-03-19 00:02:34.960477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$rthNgP0sK82fnIEjY.Xd/.HDUttu8kyVy1utnvnDDP3XCguNCOaei"], ["created_at", "2015-03-19 00:02:34.964618"], ["updated_at", "2015-03-19 00:02:34.964618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:34.969431"], ["updated_at", "2015-03-19 00:02:34.969431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f28d412-cdcb-11e4-beaf-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f29a4fa-cdcb-11e4-bb31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f28d412-cdcb-11e4-beaf-705681abff85"], ["organization_id", "3f29a4fa-cdcb-11e4-bb31-705681abff85"], ["created_at", "2015-03-19 00:02:34.973483"], ["updated_at", "2015-03-19 00:02:34.973483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f2831e2-cdcb-11e4-98c2-705681abff85' LIMIT 1 [["organization_id", "3f29a4fa-cdcb-11e4-bb31-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$.TNprD8Ho1kLsFDT2xY0culODu2cD2fRb939vcDD629SLJkV9zEgS"], ["created_at", "2015-03-19 00:02:34.980243"], ["updated_at", "2015-03-19 00:02:34.980243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$RbTb9/wphnmXUUf7XQYOiuBG3N.SlbqeDWc251iMdvGx9iBxP.Mxm"], ["created_at", "2015-03-19 00:02:34.984490"], ["updated_at", "2015-03-19 00:02:34.984490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:34.987602"], ["updated_at", "2015-03-19 00:02:34.987602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f2bd932-cdcb-11e4-9bc8-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f2c529a-cdcb-11e4-8fa3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f2bd932-cdcb-11e4-9bc8-705681abff85"], ["organization_id", "3f2c529a-cdcb-11e4-8fa3-705681abff85"], ["created_at", "2015-03-19 00:02:34.990858"], ["updated_at", "2015-03-19 00:02:34.990858"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$l87gmNgLi1Ey1xudXLnqXOqm78XUrYLvXlL8dybTz2XrXmCjzbwGG"], ["created_at", "2015-03-19 00:02:34.996964"], ["updated_at", "2015-03-19 00:02:34.996964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.000261"], ["updated_at", "2015-03-19 00:02:35.000261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f2dc36e-cdcb-11e4-a1e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f2e4294-cdcb-11e4-8207-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f2dc36e-cdcb-11e4-a1e6-705681abff85"], ["organization_id", "3f2e4294-cdcb-11e4-8207-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.003472"], ["updated_at", "2015-03-19 00:02:35.003472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$FAux9YPdgqJrL3JOYlhf2.2kfFFr2auWxWS84WSAKNtzk7TnVnehi"], ["created_at", "2015-03-19 00:02:35.008495"], ["updated_at", "2015-03-19 00:02:35.008495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f2f8636-cdcb-11e4-885c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f2e4294-cdcb-11e4-8207-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f2f8636-cdcb-11e4-885c-705681abff85"], ["organization_id", "3f2e4294-cdcb-11e4-8207-705681abff85"], ["created_at", "2015-03-19 00:02:35.011972"], ["updated_at", "2015-03-19 00:02:35.011972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3f2dc36e-cdcb-11e4-a1e6-705681abff85' LIMIT 1 [["organization_id", "3f2e4294-cdcb-11e4-8207-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$7qtD71KUAHxKoCfqN8wP9eadJHW1vUr.oLr2kSXQ7ZhYrM6M2b1Jq"], ["created_at", "2015-03-19 00:02:35.018860"], ["updated_at", "2015-03-19 00:02:35.018860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.022802"], ["updated_at", "2015-03-19 00:02:35.022802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f311ba4-cdcb-11e4-aa2d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f31b4a6-cdcb-11e4-a416-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f311ba4-cdcb-11e4-aa2d-705681abff85"], ["organization_id", "3f31b4a6-cdcb-11e4-a416-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.026161"], ["updated_at", "2015-03-19 00:02:35.026161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$o62T8Q4ljkI.nysaSaSD8uOmrOLJtUQM5Od8FXY2WvRLl8pSoeia6"], ["created_at", "2015-03-19 00:02:35.030475"], ["updated_at", "2015-03-19 00:02:35.030475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f32e286-cdcb-11e4-a4c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f31b4a6-cdcb-11e4-a416-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f32e286-cdcb-11e4-a4c1-705681abff85"], ["organization_id", "3f31b4a6-cdcb-11e4-a416-705681abff85"], ["created_at", "2015-03-19 00:02:35.033902"], ["updated_at", "2015-03-19 00:02:35.033902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f311ba4-cdcb-11e4-aa2d-705681abff85' LIMIT 1 [["organization_id", "3f31b4a6-cdcb-11e4-a416-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$M0DnzO7Tq/tSFMCPnSFutuUytL3NxijF6UtvV.AEPnbYtJKQUh2US"], ["created_at", "2015-03-19 00:02:35.041328"], ["updated_at", "2015-03-19 00:02:35.041328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.044625"], ["updated_at", "2015-03-19 00:02:35.044625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f3488f2-cdcb-11e4-9991-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f350a98-cdcb-11e4-a3c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f3488f2-cdcb-11e4-9991-705681abff85"], ["organization_id", "3f350a98-cdcb-11e4-a3c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.048133"], ["updated_at", "2015-03-19 00:02:35.048133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$1vSIHsL4pxuRwaWY.NpWzu82O8fjC1XH1fTozDmDAqtzr.bcyEzlW"], ["created_at", "2015-03-19 00:02:35.052971"], ["updated_at", "2015-03-19 00:02:35.052971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f365010-cdcb-11e4-a1fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f350a98-cdcb-11e4-a3c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f365010-cdcb-11e4-a1fc-705681abff85"], ["organization_id", "3f350a98-cdcb-11e4-a3c3-705681abff85"], ["created_at", "2015-03-19 00:02:35.056694"], ["updated_at", "2015-03-19 00:02:35.056694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f3488f2-cdcb-11e4-9991-705681abff85' LIMIT 1 [["organization_id", "3f350a98-cdcb-11e4-a3c3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$W5T7GhRgTmvuy73fI5RdiOxZ53a4joanRLTJwCtgnA.gqm4yQftqG"], ["created_at", "2015-03-19 00:02:35.064125"], ["updated_at", "2015-03-19 00:02:35.064125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.067425"], ["updated_at", "2015-03-19 00:02:35.067425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f38045a-cdcb-11e4-a23f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f3889de-cdcb-11e4-b725-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f38045a-cdcb-11e4-a23f-705681abff85"], ["organization_id", "3f3889de-cdcb-11e4-b725-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.071314"], ["updated_at", "2015-03-19 00:02:35.071314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$SuaVh8nh12/libTYPlYotuyW7RN/l9MpM8Qj5V5HQzv3dkv.BkmO."], ["created_at", "2015-03-19 00:02:35.076488"], ["updated_at", "2015-03-19 00:02:35.076488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f39e5ea-cdcb-11e4-9a16-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f3889de-cdcb-11e4-b725-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f39e5ea-cdcb-11e4-9a16-705681abff85"], ["organization_id", "3f3889de-cdcb-11e4-b725-705681abff85"], ["created_at", "2015-03-19 00:02:35.080025"], ["updated_at", "2015-03-19 00:02:35.080025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$KiZZwsRKPfxTAVHdnM0.pO0nwv5coM4RDoILN0fYAHLJ.NQwO4dT."], ["created_at", "2015-03-19 00:02:35.086996"], ["updated_at", "2015-03-19 00:02:35.086996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.090174"], ["updated_at", "2015-03-19 00:02:35.090174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f3b8170-cdcb-11e4-9034-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f3bfba0-cdcb-11e4-86c4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f3b8170-cdcb-11e4-9034-705681abff85"], ["organization_id", "3f3bfba0-cdcb-11e4-86c4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.094825"], ["updated_at", "2015-03-19 00:02:35.094825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3f3b8170-cdcb-11e4-9034-705681abff85' LIMIT 1 [["organization_id", "3f3bfba0-cdcb-11e4-86c4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$Ew2WjbFAU4Md9jD0oyzmbuubrmAi9LM8S4hF1x8V6Qka9oxdDgCwq"], ["created_at", "2015-03-19 00:02:35.101852"], ["updated_at", "2015-03-19 00:02:35.101852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.105129"], ["updated_at", "2015-03-19 00:02:35.105129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f3dc462-cdcb-11e4-9ff3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f3e4c3e-cdcb-11e4-9104-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f3dc462-cdcb-11e4-9ff3-705681abff85"], ["organization_id", "3f3e4c3e-cdcb-11e4-9104-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.109317"], ["updated_at", "2015-03-19 00:02:35.109317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f3dc462-cdcb-11e4-9ff3-705681abff85' LIMIT 1 [["organization_id", "3f3e4c3e-cdcb-11e4-9104-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$RaVQQd3tTwXt/4BLbpeUkOVPJGQQJyFoGAiKGrd5n.ZZ1OJogeVke"], ["created_at", "2015-03-19 00:02:35.116395"], ["updated_at", "2015-03-19 00:02:35.116395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.119578"], ["updated_at", "2015-03-19 00:02:35.119578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f3ffd5e-cdcb-11e4-ae7d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f4077fc-cdcb-11e4-8718-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f3ffd5e-cdcb-11e4-ae7d-705681abff85"], ["organization_id", "3f4077fc-cdcb-11e4-8718-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.124090"], ["updated_at", "2015-03-19 00:02:35.124090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f3ffd5e-cdcb-11e4-ae7d-705681abff85' LIMIT 1 [["organization_id", "3f4077fc-cdcb-11e4-8718-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$lI37Fk3TlKtHdGy7nDkvkODZmGETiOuSgMVNotyFguOAnyQeFCtei"], ["created_at", "2015-03-19 00:02:35.131718"], ["updated_at", "2015-03-19 00:02:35.131718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.135331"], ["updated_at", "2015-03-19 00:02:35.135331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f42601c-cdcb-11e4-bc2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f42e05a-cdcb-11e4-b815-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f42601c-cdcb-11e4-bc2c-705681abff85"], ["organization_id", "3f42e05a-cdcb-11e4-b815-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.147798"], ["updated_at", "2015-03-19 00:02:35.147798"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$pI3CeawkjgNwh6YEKKasq.1uHz1EckHbfv866HghtrXWjUlr/CHQS"], ["created_at", "2015-03-19 00:02:35.154766"], ["updated_at", "2015-03-19 00:02:35.154766"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.159411"], ["updated_at", "2015-03-19 00:02:35.159411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f45df76-cdcb-11e4-949e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f468c32-cdcb-11e4-9522-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f45df76-cdcb-11e4-949e-705681abff85"], ["organization_id", "3f468c32-cdcb-11e4-9522-705681abff85"], ["created_at", "2015-03-19 00:02:35.162635"], ["updated_at", "2015-03-19 00:02:35.162635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$6Omp4g0D4THoZ1t43R1NHOtDhikbU0o0unDa5LmvQmCdUAigS0nt."], ["created_at", "2015-03-19 00:02:35.168183"], ["updated_at", "2015-03-19 00:02:35.168183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.172024"], ["updated_at", "2015-03-19 00:02:35.172024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f47e398-cdcb-11e4-910c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f488df2-cdcb-11e4-a62c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f47e398-cdcb-11e4-910c-705681abff85"], ["organization_id", "3f488df2-cdcb-11e4-a62c-705681abff85"], ["created_at", "2015-03-19 00:02:35.176147"], ["updated_at", "2015-03-19 00:02:35.176147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f47e398-cdcb-11e4-910c-705681abff85' LIMIT 1 [["organization_id", "3f488df2-cdcb-11e4-a62c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$ViwtfKeO9e.FocJrFz34V.B1Wu5RjKSW2YVT.UTJFQyi.EJQ2mTru"], ["created_at", "2015-03-19 00:02:35.183014"], ["updated_at", "2015-03-19 00:02:35.183014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.186158"], ["updated_at", "2015-03-19 00:02:35.186158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f4a27ac-cdcb-11e4-912f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f4a9e58-cdcb-11e4-ae33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f4a27ac-cdcb-11e4-912f-705681abff85"], ["organization_id", "3f4a9e58-cdcb-11e4-ae33-705681abff85"], ["created_at", "2015-03-19 00:02:35.189309"], ["updated_at", "2015-03-19 00:02:35.189309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f4a27ac-cdcb-11e4-912f-705681abff85' LIMIT 1 [["organization_id", "3f4a9e58-cdcb-11e4-ae33-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$8NfTwuODFN7Ur0i1WPjaDO9R9XC.gst.x2SfTxu99gudFkpJOKmAG"], ["created_at", "2015-03-19 00:02:35.196036"], ["updated_at", "2015-03-19 00:02:35.196036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.199140"], ["updated_at", "2015-03-19 00:02:35.199140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f4c226e-cdcb-11e4-b201-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f4ca1da-cdcb-11e4-bae7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f4c226e-cdcb-11e4-b201-705681abff85"], ["organization_id", "3f4ca1da-cdcb-11e4-bae7-705681abff85"], ["created_at", "2015-03-19 00:02:35.202579"], ["updated_at", "2015-03-19 00:02:35.202579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3f4c226e-cdcb-11e4-b201-705681abff85' LIMIT 1 [["organization_id", "3f4ca1da-cdcb-11e4-bae7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$OkGg.1mWxy/2fj.Lv0Tzp.vFsnLK8V7HMez8KnEzpy4Fegy4TvZcC"], ["created_at", "2015-03-19 00:02:35.209863"], ["updated_at", "2015-03-19 00:02:35.209863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.213076"], ["updated_at", "2015-03-19 00:02:35.213076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f4e3fc2-cdcb-11e4-9c17-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f4ebcd6-cdcb-11e4-a9b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f4e3fc2-cdcb-11e4-9c17-705681abff85"], ["organization_id", "3f4ebcd6-cdcb-11e4-a9b8-705681abff85"], ["created_at", "2015-03-19 00:02:35.216291"], ["updated_at", "2015-03-19 00:02:35.216291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$mgUyFVDTTk6i6Y1CmJz3l.7fLLDDMU1HrZC..1nskQa5nmTVnEKuu"], ["created_at", "2015-03-19 00:02:35.222673"], ["updated_at", "2015-03-19 00:02:35.222673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.227505"], ["updated_at", "2015-03-19 00:02:35.227505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$s6FJH7sJq.Oiojd2M5W62eIoMLfthosY0TI7YvXplq4FTW8rm4Nt2"], ["created_at", "2015-03-19 00:02:35.233037"], ["updated_at", "2015-03-19 00:02:35.233037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.236072"], ["updated_at", "2015-03-19 00:02:35.236072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f51c6f6-cdcb-11e4-bcc4-705681abff85' LIMIT 1 [["organization_id", "3f523c44-cdcb-11e4-a0e7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$XMrknKI0G0cexnjWuICi6OLzPZ6bu.BmC5FN2TOM6rp8SN3/jp2.W"], ["created_at", "2015-03-19 00:02:35.242783"], ["updated_at", "2015-03-19 00:02:35.242783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.245958"], ["updated_at", "2015-03-19 00:02:35.245958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f5345d0-cdcb-11e4-9c33-705681abff85' LIMIT 1 [["organization_id", "3f53c0d2-cdcb-11e4-9226-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$4/wi.3laERf8d47Ox7UihOI6EYQSrhyvngD5nLqTyZZggdueSY0Z2"], ["created_at", "2015-03-19 00:02:35.252962"], ["updated_at", "2015-03-19 00:02:35.252962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.255985"], ["updated_at", "2015-03-19 00:02:35.255985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3f54d2e2-cdcb-11e4-a772-705681abff85' LIMIT 1 [["organization_id", "3f554dee-cdcb-11e4-a111-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$VLWRgVWDDAhs7k9FgerKpuepnsVyQ/NcYfJbR4UcOCyXVuOt1TUsS"], ["created_at", "2015-03-19 00:02:35.263271"], ["updated_at", "2015-03-19 00:02:35.263271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.266433"], ["updated_at", "2015-03-19 00:02:35.266433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$4ZV.wpsr0LHhSfrgwHxKKuerWUdifWu/nzn/KPJwlI0Lj8pJTKvvK"], ["created_at", "2015-03-19 00:02:35.273121"], ["updated_at", "2015-03-19 00:02:35.273121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.277032"], ["updated_at", "2015-03-19 00:02:35.277032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f57f558-cdcb-11e4-89bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f587eb0-cdcb-11e4-8230-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f57f558-cdcb-11e4-89bd-705681abff85"], ["organization_id", "3f587eb0-cdcb-11e4-8230-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.280350"], ["updated_at", "2015-03-19 00:02:35.280350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$biyw2m82CEiG00q/9Uk2XOm3XBeJrBEkieVAECCrXwiXVlktZqLBK"], ["created_at", "2015-03-19 00:02:35.285876"], ["updated_at", "2015-03-19 00:02:35.285876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.289000"], ["updated_at", "2015-03-19 00:02:35.289000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f59d7ba-cdcb-11e4-b13a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f5a5014-cdcb-11e4-ac8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f59d7ba-cdcb-11e4-b13a-705681abff85"], ["organization_id", "3f5a5014-cdcb-11e4-ac8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.292227"], ["updated_at", "2015-03-19 00:02:35.292227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f59d7ba-cdcb-11e4-b13a-705681abff85' LIMIT 1 [["organization_id", "3f5a5014-cdcb-11e4-ac8c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$B8mKK/cdBkGSJSy5KzuOFOYhAT9rH8T7dBKrmxhs8/rTYG9TOvAki"], ["created_at", "2015-03-19 00:02:35.299173"], ["updated_at", "2015-03-19 00:02:35.299173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.302301"], ["updated_at", "2015-03-19 00:02:35.302301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f5bdf88-cdcb-11e4-adea-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f5c57e2-cdcb-11e4-8545-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f5bdf88-cdcb-11e4-adea-705681abff85"], ["organization_id", "3f5c57e2-cdcb-11e4-8545-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.305700"], ["updated_at", "2015-03-19 00:02:35.305700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f5bdf88-cdcb-11e4-adea-705681abff85' LIMIT 1 [["organization_id", "3f5c57e2-cdcb-11e4-8545-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$UYlEOe/Q7BJ0E6C7sVoEa.oNVguEk0zos./5Z7i2dMviv.p2iFqSS"], ["created_at", "2015-03-19 00:02:35.312847"], ["updated_at", "2015-03-19 00:02:35.312847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.316116"], ["updated_at", "2015-03-19 00:02:35.316116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f5df656-cdcb-11e4-9c9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f5e7568-cdcb-11e4-81a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f5df656-cdcb-11e4-9c9f-705681abff85"], ["organization_id", "3f5e7568-cdcb-11e4-81a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.319412"], ["updated_at", "2015-03-19 00:02:35.319412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3f5df656-cdcb-11e4-9c9f-705681abff85' LIMIT 1 [["organization_id", "3f5e7568-cdcb-11e4-81a9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$OW1SKV0pqkSlEymnMmTm1eHlYbUSdRwyRXdoBFHMHmiy3DfBUhCbW"], ["created_at", "2015-03-19 00:02:35.332375"], ["updated_at", "2015-03-19 00:02:35.332375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.336515"], ["updated_at", "2015-03-19 00:02:35.336515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f61067a-cdcb-11e4-80b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f6192a2-cdcb-11e4-b6a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f61067a-cdcb-11e4-80b9-705681abff85"], ["organization_id", "3f6192a2-cdcb-11e4-b6a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.339992"], ["updated_at", "2015-03-19 00:02:35.339992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$xgIhpwNf6dsi5mG8DaAQYemiLto6iVmPJ3cdnRGwzW8AAmaBpglMG"], ["created_at", "2015-03-19 00:02:35.347070"], ["updated_at", "2015-03-19 00:02:35.347070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.350153"], ["updated_at", "2015-03-19 00:02:35.350153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f632fc2-cdcb-11e4-8ee9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f63a5ce-cdcb-11e4-b015-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f632fc2-cdcb-11e4-8ee9-705681abff85"], ["organization_id", "3f63a5ce-cdcb-11e4-b015-705681abff85"], ["created_at", "2015-03-19 00:02:35.355874"], ["updated_at", "2015-03-19 00:02:35.355874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '3f63a5ce-cdcb-11e4-b015-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "3f63a5ce-cdcb-11e4-b015-705681abff85"], ["created_at", "2015-03-19 00:02:35.366159"], ["updated_at", "2015-03-19 00:02:35.366159"], ["token", "6L_ve1tENStBzERkbtoZEmiosjal7BRtN73Ksq8wkoo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f632fc2-cdcb-11e4-8ee9-705681abff85' LIMIT 1 [["organization_id", "3f63a5ce-cdcb-11e4-b015-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$7qxgiyvnxJoQSePHhfoHeOpBHZA4VkQbieec/ouZMIdMzsL6.Ww0G"], ["created_at", "2015-03-19 00:02:35.375216"], ["updated_at", "2015-03-19 00:02:35.375216"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.380266"], ["updated_at", "2015-03-19 00:02:35.380266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f6795c6-cdcb-11e4-9a39-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f68482c-cdcb-11e4-b0ed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f6795c6-cdcb-11e4-9a39-705681abff85"], ["organization_id", "3f68482c-cdcb-11e4-b0ed-705681abff85"], ["created_at", "2015-03-19 00:02:35.384118"], ["updated_at", "2015-03-19 00:02:35.384118"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '3f68482c-cdcb-11e4-b0ed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "3f68482c-cdcb-11e4-b0ed-705681abff85"], ["created_at", "2015-03-19 00:02:35.388068"], ["updated_at", "2015-03-19 00:02:35.388068"], ["token", "vWEJ91HWKOYtHxfR7dy5q7Eb-5NIC2Hnk1shwaAMFeE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f6795c6-cdcb-11e4-9a39-705681abff85' LIMIT 1 [["organization_id", "3f68482c-cdcb-11e4-b0ed-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$m1vgHj2BRcDwBp./pw7X.O4ov/crLmXCHoXnsVvx0IUbJA98tmGWm"], ["created_at", "2015-03-19 00:02:35.395099"], ["updated_at", "2015-03-19 00:02:35.395099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.398273"], ["updated_at", "2015-03-19 00:02:35.398273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f6a840c-cdcb-11e4-9964-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f6afcfc-cdcb-11e4-8ae2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f6a840c-cdcb-11e4-9964-705681abff85"], ["organization_id", "3f6afcfc-cdcb-11e4-8ae2-705681abff85"], ["created_at", "2015-03-19 00:02:35.401389"], ["updated_at", "2015-03-19 00:02:35.401389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '3f6afcfc-cdcb-11e4-8ae2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "3f6afcfc-cdcb-11e4-8ae2-705681abff85"], ["created_at", "2015-03-19 00:02:35.404670"], ["updated_at", "2015-03-19 00:02:35.404670"], ["token", "IlUXaUaDMBpNrICAwsU2WFiOlV0C9cd0Sr0fXpi3zW8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f6a840c-cdcb-11e4-9964-705681abff85' LIMIT 1 [["organization_id", "3f6afcfc-cdcb-11e4-8ae2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$6hpDnH4I.vlQTeAP2EAGQO7yJZpBR/izg5KMB.i07pzpaXVibDwOS"], ["created_at", "2015-03-19 00:02:35.412102"], ["updated_at", "2015-03-19 00:02:35.412102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.415561"], ["updated_at", "2015-03-19 00:02:35.415561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f6d228e-cdcb-11e4-94bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f6da218-cdcb-11e4-8d59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f6d228e-cdcb-11e4-94bc-705681abff85"], ["organization_id", "3f6da218-cdcb-11e4-8d59-705681abff85"], ["created_at", "2015-03-19 00:02:35.418760"], ["updated_at", "2015-03-19 00:02:35.418760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '3f6da218-cdcb-11e4-8d59-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "3f6da218-cdcb-11e4-8d59-705681abff85"], ["created_at", "2015-03-19 00:02:35.422608"], ["updated_at", "2015-03-19 00:02:35.422608"], ["token", "7pXpn0G9z4qtbn4sKzPi9ZCYZAhujJJyijS9Uze68wM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f6d228e-cdcb-11e4-94bc-705681abff85' LIMIT 1 [["organization_id", "3f6da218-cdcb-11e4-8d59-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$D.i4e3XSIvIbcuy8a9LWG.DQuHXfo7loj9i2VXbgON2tD0U3kOzIm"], ["created_at", "2015-03-19 00:02:35.430999"], ["updated_at", "2015-03-19 00:02:35.430999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.434337"], ["updated_at", "2015-03-19 00:02:35.434337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '3f707efc-cdcb-11e4-98b9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "3f707efc-cdcb-11e4-98b9-705681abff85"], ["created_at", "2015-03-19 00:02:35.437701"], ["updated_at", "2015-03-19 00:02:35.437701"], ["token", "W9QcxTvh_JhflAIT42oueeJFVs1uXrTQGyc9fbHadOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f7002ba-cdcb-11e4-ac03-705681abff85' LIMIT 1 [["organization_id", "3f707efc-cdcb-11e4-98b9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$VOaKHX2Inv3A2q7diZrC7.BkhoU58XkS/FvYPOXGA3McIM5iEKzRy"], ["created_at", "2015-03-19 00:02:35.445206"], ["updated_at", "2015-03-19 00:02:35.445206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.448342"], ["updated_at", "2015-03-19 00:02:35.448342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '3f72a290-cdcb-11e4-b8af-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "3f72a290-cdcb-11e4-b8af-705681abff85"], ["created_at", "2015-03-19 00:02:35.451818"], ["updated_at", "2015-03-19 00:02:35.451818"], ["token", "INk9FLXzC1GFiA1MRLgeOHn7YrFzxk9-Ogiwwna48AE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f7227a2-cdcb-11e4-87d9-705681abff85' LIMIT 1 [["organization_id", "3f72a290-cdcb-11e4-b8af-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$EP0Hai1UyO8laZB53NsdkecMyU6X1eTe2q4iVTTZnuko9hrHKYc0y"], ["created_at", "2015-03-19 00:02:35.459050"], ["updated_at", "2015-03-19 00:02:35.459050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.462628"], ["updated_at", "2015-03-19 00:02:35.462628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '3f74d22c-cdcb-11e4-8a52-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "3f74d22c-cdcb-11e4-8a52-705681abff85"], ["created_at", "2015-03-19 00:02:35.466104"], ["updated_at", "2015-03-19 00:02:35.466104"], ["token", "F1JXkR5x5oTvOLrbnpIsz78pXiZzCkeksf0RKOO7Uoo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f744640-cdcb-11e4-9252-705681abff85' LIMIT 1 [["organization_id", "3f74d22c-cdcb-11e4-8a52-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$aqX1qMTYaI4bCeWlLDG/JOpfeCpsytnodInRYqIiaGpRsxP99xl5e"], ["created_at", "2015-03-19 00:02:35.474695"], ["updated_at", "2015-03-19 00:02:35.474695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.478227"], ["updated_at", "2015-03-19 00:02:35.478227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '3f773184-cdcb-11e4-8715-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "3f773184-cdcb-11e4-8715-705681abff85"], ["created_at", "2015-03-19 00:02:35.481829"], ["updated_at", "2015-03-19 00:02:35.481829"], ["token", "5RlOh0jU2GKgYdDIuutxzKg1bm_eSxRPgoFsVAXB9mA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f76b146-cdcb-11e4-bf71-705681abff85' LIMIT 1 [["organization_id", "3f773184-cdcb-11e4-8715-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$C09P.RtqGJ2rEI.Qx1LfDOF7yu3L7zQryKsmvxOFD8RePotv9xoqW"], ["created_at", "2015-03-19 00:02:35.489350"], ["updated_at", "2015-03-19 00:02:35.489350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.492548"], ["updated_at", "2015-03-19 00:02:35.492548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f78e542-cdcb-11e4-8e17-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f796094-cdcb-11e4-99ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f78e542-cdcb-11e4-8e17-705681abff85"], ["organization_id", "3f796094-cdcb-11e4-99ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.495843"], ["updated_at", "2015-03-19 00:02:35.495843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '3f796094-cdcb-11e4-99ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "3f796094-cdcb-11e4-99ab-705681abff85"], ["created_at", "2015-03-19 00:02:35.499263"], ["updated_at", "2015-03-19 00:02:35.499263"], ["token", "Mv3vwxxgUHAP9Mcr7Y7esbKH1SBQCMiFMGGRDbEzoZg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f78e542-cdcb-11e4-8e17-705681abff85' LIMIT 1 [["organization_id", "3f796094-cdcb-11e4-99ab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$F7ycuQeQ80BJRF4QR3zg0uEM2HTr7rqU7yrYOOFJiaVnBKi3Fw3U6"], ["created_at", "2015-03-19 00:02:35.513291"], ["updated_at", "2015-03-19 00:02:35.513291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.516383"], ["updated_at", "2015-03-19 00:02:35.516383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f7c8ba2-cdcb-11e4-96ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f7d0492-cdcb-11e4-a552-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f7c8ba2-cdcb-11e4-96ca-705681abff85"], ["organization_id", "3f7d0492-cdcb-11e4-a552-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.519639"], ["updated_at", "2015-03-19 00:02:35.519639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '3f7d0492-cdcb-11e4-a552-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "3f7d0492-cdcb-11e4-a552-705681abff85"], ["created_at", "2015-03-19 00:02:35.523066"], ["updated_at", "2015-03-19 00:02:35.523066"], ["token", "4OzMpluu82-kXsbSojSsEWmgsKYVn58iliiprSwEx2U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f7c8ba2-cdcb-11e4-96ca-705681abff85' LIMIT 1 [["organization_id", "3f7d0492-cdcb-11e4-a552-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$wUwYN7idY5aPvuIGqjB4veFf.n3BJYYhZ9nTlm5nUTfLHN.lYrR0u"], ["created_at", "2015-03-19 00:02:35.531628"], ["updated_at", "2015-03-19 00:02:35.531628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.534725"], ["updated_at", "2015-03-19 00:02:35.534725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f7f5896-cdcb-11e4-8a79-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f7fce84-cdcb-11e4-b875-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f7f5896-cdcb-11e4-8a79-705681abff85"], ["organization_id", "3f7fce84-cdcb-11e4-b875-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.537868"], ["updated_at", "2015-03-19 00:02:35.537868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '3f7fce84-cdcb-11e4-b875-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "3f7fce84-cdcb-11e4-b875-705681abff85"], ["created_at", "2015-03-19 00:02:35.541155"], ["updated_at", "2015-03-19 00:02:35.541155"], ["token", "agLh36ABRMxvJOQRTGE1R-A0GGqAgRxpAudQqPifKHs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f7f5896-cdcb-11e4-8a79-705681abff85' LIMIT 1 [["organization_id", "3f7fce84-cdcb-11e4-b875-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$MrzSEWII6UNBS5T0MR/.cuNEzoBwMhuSZHHkMGuDNQQ70loepR7aK"], ["created_at", "2015-03-19 00:02:35.548135"], ["updated_at", "2015-03-19 00:02:35.548135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:02:35.551267"], ["updated_at", "2015-03-19 00:02:35.551267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f81dd3c-cdcb-11e4-afc0-705681abff85' AND "clubhouse_memberships"."organization_id" = '3f825514-cdcb-11e4-b7aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f81dd3c-cdcb-11e4-afc0-705681abff85"], ["organization_id", "3f825514-cdcb-11e4-b7aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:02:35.554608"], ["updated_at", "2015-03-19 00:02:35.554608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '3f825514-cdcb-11e4-b7aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "3f825514-cdcb-11e4-b7aa-705681abff85"], ["created_at", "2015-03-19 00:02:35.558380"], ["updated_at", "2015-03-19 00:02:35.558380"], ["token", "M9HIr5dIJB94f_4rga7pDxF10baii-B2gvSkMYF6hIc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3f81dd3c-cdcb-11e4-afc0-705681abff85' LIMIT 1 [["organization_id", "3f825514-cdcb-11e4-b7aa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$vgfpjvsxzQ0RARSane6xB.0OSjAFFEoUMrpvT36.KP.wUjz6i6KKW"], ["created_at", "2015-03-19 00:11:16.441636"], ["updated_at", "2015-03-19 00:11:16.441636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$24VHedSFO4YBza1Lg3oq5egAixqmEs61W5qWojuT7c9EOfrCww9fS"], ["created_at", "2015-03-19 00:11:16.472754"], ["updated_at", "2015-03-19 00:11:16.472754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.514019"], ["user_id", "75ffc9ae-cdcc-11e4-a9fd-705681abff85"], ["created_at", "2015-03-19 00:11:16.519819"], ["updated_at", "2015-03-19 00:11:16.519819"], ["token", "sNP_dtLJ8BpxjrZxLpbcXFAX4JlkkQE7ghyrcN8WMeM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:16.535283"], ["updated_at", "2015-03-19 00:11:16.535283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75ffc9ae-cdcc-11e4-a9fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '760a3a4c-cdcc-11e4-a3a2-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75ffc9ae-cdcc-11e4-a9fd-705681abff85"], ["organization_id", "760a3a4c-cdcc-11e4-a3a2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.548051"], ["updated_at", "2015-03-19 00:11:16.548051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7600afc2-cdcc-11e4-8c6c-705681abff85' AND "clubhouse_memberships"."organization_id" = '760a3a4c-cdcc-11e4-a3a2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7600afc2-cdcc-11e4-8c6c-705681abff85"], ["organization_id", "760a3a4c-cdcc-11e4-a3a2-705681abff85"], ["created_at", "2015-03-19 00:11:16.552785"], ["updated_at", "2015-03-19 00:11:16.552785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 17:11:16 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$PWMNDzUrCYj3b0F0bPuBA.yrwzJ7ysm0za8vvtkA0Xw6YvRsfXbla"], ["created_at", "2015-03-19 00:11:16.587563"], ["updated_at", "2015-03-19 00:11:16.587563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$3why8W5xrwyVXoNc4W2zmeP6hAohpoa/S9Pt9yNIYZuBIKHuVHD/2"], ["created_at", "2015-03-19 00:11:16.593237"], ["updated_at", "2015-03-19 00:11:16.593237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.596143"], ["user_id", "761230a8-cdcc-11e4-8575-705681abff85"], ["created_at", "2015-03-19 00:11:16.597237"], ["updated_at", "2015-03-19 00:11:16.597237"], ["token", "-KNFdGcz1YrPQX4_fjjodKqeAMCeColtM0FYhKf_P3I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:16.602389"], ["updated_at", "2015-03-19 00:11:16.602389"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '761230a8-cdcc-11e4-8575-705681abff85' AND "clubhouse_memberships"."organization_id" = '761486e6-cdcc-11e4-8d23-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "761230a8-cdcc-11e4-8575-705681abff85"], ["organization_id", "761486e6-cdcc-11e4-8d23-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.613869"], ["updated_at", "2015-03-19 00:11:16.613869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '761321fc-cdcc-11e4-a7fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '761486e6-cdcc-11e4-8d23-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "761321fc-cdcc-11e4-a7fb-705681abff85"], ["organization_id", "761486e6-cdcc-11e4-8d23-705681abff85"], ["created_at", "2015-03-19 00:11:16.619413"], ["updated_at", "2015-03-19 00:11:16.619413"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/761486e6-cdcc-11e4-8d23-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:11:16 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"761486e6-cdcc-11e4-8d23-705681abff85", "membership"=>{}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:11:16.630636' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-KNFdGcz1YrPQX4_fjjodKqeAMCeColtM0FYhKf_P3I"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:11:16.638438"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:11:16.639712"], ["id", "7613b432-cdcc-11e4-acb2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "761486e6-cdcc-11e4-8d23-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "761230a8-cdcc-11e4-8575-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "761486e6-cdcc-11e4-8d23-705681abff85"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('761230a8-cdcc-11e4-8575-705681abff85', '761321fc-cdcc-11e4-a7fb-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('761486e6-cdcc-11e4-8d23-705681abff85') Completed 500 Internal Server Error in 81ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$2XVK2g5Pazc1y6caxuGQbeTf.UgSEeesZFAQb1dlgAFgifYh8dcCK"], ["created_at", "2015-03-19 00:11:16.719465"], ["updated_at", "2015-03-19 00:11:16.719465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$AqSfA43BFk1xw.QQK6BgMek/fQ.eoOfDP7zYowLR8xS4sxntW.pZ2"], ["created_at", "2015-03-19 00:11:16.725669"], ["updated_at", "2015-03-19 00:11:16.725669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.727389"], ["user_id", "762668e8-cdcc-11e4-af15-705681abff85"], ["created_at", "2015-03-19 00:11:16.728172"], ["updated_at", "2015-03-19 00:11:16.728172"], ["token", "IK9uXi9WCzUDuChloHiHsnfgYtkzT8bW8Xfq-wS__zQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:16.731670"], ["updated_at", "2015-03-19 00:11:16.731670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '762668e8-cdcc-11e4-af15-705681abff85' AND "clubhouse_memberships"."organization_id" = '76282746-cdcc-11e4-a311-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "762668e8-cdcc-11e4-af15-705681abff85"], ["organization_id", "76282746-cdcc-11e4-a311-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.734939"], ["updated_at", "2015-03-19 00:11:16.734939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76274254-cdcc-11e4-a91c-705681abff85' AND "clubhouse_memberships"."organization_id" = '76282746-cdcc-11e4-a311-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76274254-cdcc-11e4-a91c-705681abff85"], ["organization_id", "76282746-cdcc-11e4-a311-705681abff85"], ["created_at", "2015-03-19 00:11:16.738235"], ["updated_at", "2015-03-19 00:11:16.738235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$gZRz./hH.Vu.2gC5yLuQ7OJfr7k6R9E4asGfxGzZRRBYO48Gufl/6"], ["created_at", "2015-03-19 00:11:16.743009"], ["updated_at", "2015-03-19 00:11:16.743009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.744585"], ["user_id", "7629e39c-cdcc-11e4-abeb-705681abff85"], ["created_at", "2015-03-19 00:11:16.745374"], ["updated_at", "2015-03-19 00:11:16.745374"], ["token", "1bBUdQWwvgyYHCaeaRd_ueQ_PHdBg9qIMMGq5ne0vrk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '76282746-cdcc-11e4-a311-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "76282746-cdcc-11e4-a311-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.758064"], ["updated_at", "2015-03-19 00:11:16.758064"], ["token", "GYbDci8xGRf5OeuSZ83r-By--R2GGtq5QKyZnIWHUjI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 17:11:16 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$3l6bUA9Q0CLJP1/97fq4ru4NgC6Hr4Dv7IzROtPulVqie8yFkEqpO"], ["created_at", "2015-03-19 00:11:16.768956"], ["updated_at", "2015-03-19 00:11:16.768956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$7vCN93LLNoTmLH9yexau6eny0IxPgROmJgXEKoNY1Y2VYnH4f685m"], ["created_at", "2015-03-19 00:11:16.773316"], ["updated_at", "2015-03-19 00:11:16.773316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.774820"], ["user_id", "762dd9d4-cdcc-11e4-bcf3-705681abff85"], ["created_at", "2015-03-19 00:11:16.775919"], ["updated_at", "2015-03-19 00:11:16.775919"], ["token", "D45sNOR8NOYeUDOktOOp0RS0DUkuNIZoGjJ6_tw2Xrc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:16.780880"], ["updated_at", "2015-03-19 00:11:16.780880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '762dd9d4-cdcc-11e4-bcf3-705681abff85' AND "clubhouse_memberships"."organization_id" = '762faba6-cdcc-11e4-bf6e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "762dd9d4-cdcc-11e4-bcf3-705681abff85"], ["organization_id", "762faba6-cdcc-11e4-bf6e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.784475"], ["updated_at", "2015-03-19 00:11:16.784475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '762e81fe-cdcc-11e4-9dc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '762faba6-cdcc-11e4-bf6e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "762e81fe-cdcc-11e4-9dc3-705681abff85"], ["organization_id", "762faba6-cdcc-11e4-bf6e-705681abff85"], ["created_at", "2015-03-19 00:11:16.787831"], ["updated_at", "2015-03-19 00:11:16.787831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$.vPt.W31CPJ0ZLrMIJU.AuAAneQm08dvsxrP3VGPqJLImEyAIlUkq"], ["created_at", "2015-03-19 00:11:16.792653"], ["updated_at", "2015-03-19 00:11:16.792653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.794368"], ["user_id", "76317a12-cdcc-11e4-a05d-705681abff85"], ["created_at", "2015-03-19 00:11:16.795153"], ["updated_at", "2015-03-19 00:11:16.795153"], ["token", "gs1qfShKordxy6MAhqE5LITykJdiWGwRK5M7UXTldqU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '762faba6-cdcc-11e4-bf6e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "762faba6-cdcc-11e4-bf6e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.799794"], ["updated_at", "2015-03-19 00:11:16.799794"], ["token", "UoQI_VCCuSNHRtRcjpyNEDmD2JZyj6swYN4Rkf3FWs4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/762faba6-cdcc-11e4-bf6e-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:11:16 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"UoQI_VCCuSNHRtRcjpyNEDmD2JZyj6swYN4Rkf3FWs4", "organization_id"=>"762faba6-cdcc-11e4-bf6e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:11:16.805304' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gs1qfShKordxy6MAhqE5LITykJdiWGwRK5M7UXTldqU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:11:16.806793"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:11:16.807757"], ["id", "7631e09c-cdcc-11e4-a380-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "762faba6-cdcc-11e4-bf6e-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$LJQH0dCnm7kkyMsyGeUx0OsOrC4VonREYWfaAgepgRGpeNA3wkhU2"], ["created_at", "2015-03-19 00:11:16.821003"], ["updated_at", "2015-03-19 00:11:16.821003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$22.o4uWch/ij.3.hYjlbQeIkpHeJDPEbgixmCugKKuToRwqWS09wy"], ["created_at", "2015-03-19 00:11:16.826134"], ["updated_at", "2015-03-19 00:11:16.826134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.827798"], ["user_id", "7635cf90-cdcc-11e4-97b4-705681abff85"], ["created_at", "2015-03-19 00:11:16.828625"], ["updated_at", "2015-03-19 00:11:16.828625"], ["token", "60UDx_avmFIJYLJIi6EssjBFqHqi_yLHz2Pg1aPGVAA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:16.832327"], ["updated_at", "2015-03-19 00:11:16.832327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7635cf90-cdcc-11e4-97b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '763784ca-cdcc-11e4-b8de-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7635cf90-cdcc-11e4-97b4-705681abff85"], ["organization_id", "763784ca-cdcc-11e4-b8de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.835800"], ["updated_at", "2015-03-19 00:11:16.835800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76369592-cdcc-11e4-85cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '763784ca-cdcc-11e4-b8de-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76369592-cdcc-11e4-85cd-705681abff85"], ["organization_id", "763784ca-cdcc-11e4-b8de-705681abff85"], ["created_at", "2015-03-19 00:11:16.841237"], ["updated_at", "2015-03-19 00:11:16.841237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$eurd.8OXYJm2yIl3ScI2AOpLVn8z.eAUJfL/KMKuJ91NBzs5lTDry"], ["created_at", "2015-03-19 00:11:16.846392"], ["updated_at", "2015-03-19 00:11:16.846392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.848070"], ["user_id", "7639aaf2-cdcc-11e4-9c3a-705681abff85"], ["created_at", "2015-03-19 00:11:16.848875"], ["updated_at", "2015-03-19 00:11:16.848875"], ["token", "WM-mmf169Xf0aiSyxiNLHb-c0uqH-DG3xQ6KAMYgYTs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '763784ca-cdcc-11e4-b8de-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "763784ca-cdcc-11e4-b8de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.853571"], ["updated_at", "2015-03-19 00:11:16.853571"], ["token", "6jiFAuW4lkv_OsuJ1HL_OLS4y75-Kj--AzolHvNFFOU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/763784ca-cdcc-11e4-b8de-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:11:16 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"763784ca-cdcc-11e4-b8de-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:11:16.861136' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WM-mmf169Xf0aiSyxiNLHb-c0uqH-DG3xQ6KAMYgYTs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:11:16.862706"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:11:16.863660"], ["id", "763a149c-cdcc-11e4-b4f7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "763784ca-cdcc-11e4-b8de-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$KitW5Y9fifd5PeU4bx84z.7XWrTbbBSpDVWkdjSryIJn9i.yPE2K."], ["created_at", "2015-03-19 00:11:16.877782"], ["updated_at", "2015-03-19 00:11:16.877782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$nOFITd9pA1lFCo6LBHRp7uTjnHwR7u3fWjQXzzWnr2rjS37QN/Vva"], ["created_at", "2015-03-19 00:11:16.882560"], ["updated_at", "2015-03-19 00:11:16.882560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.884778"], ["user_id", "763e77ee-cdcc-11e4-a9f7-705681abff85"], ["created_at", "2015-03-19 00:11:16.885717"], ["updated_at", "2015-03-19 00:11:16.885717"], ["token", "A3sAVdyjyh3-lV0hUrxb-ud4541FMCOeOW7-O1ALDlU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:16.889485"], ["updated_at", "2015-03-19 00:11:16.889485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '763e77ee-cdcc-11e4-a9f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '76403d04-cdcc-11e4-8b13-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "763e77ee-cdcc-11e4-a9f7-705681abff85"], ["organization_id", "76403d04-cdcc-11e4-8b13-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.893300"], ["updated_at", "2015-03-19 00:11:16.893300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '763f4142-cdcc-11e4-9239-705681abff85' AND "clubhouse_memberships"."organization_id" = '76403d04-cdcc-11e4-8b13-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "763f4142-cdcc-11e4-9239-705681abff85"], ["organization_id", "76403d04-cdcc-11e4-8b13-705681abff85"], ["created_at", "2015-03-19 00:11:16.896694"], ["updated_at", "2015-03-19 00:11:16.896694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 17:11:16 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$PWowxEFMt5BdDzlelBwmEO8AelBT/jVbN9ufI6okLh6qEid/fUgwy"], ["created_at", "2015-03-19 00:11:16.907063"], ["updated_at", "2015-03-19 00:11:16.907063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$95zKB6hLZqNNwdDFKDUJV.Xy2PlPQiGzWtk8/2GUNJcBDNBpvwqpq"], ["created_at", "2015-03-19 00:11:16.912171"], ["updated_at", "2015-03-19 00:11:16.912171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.913909"], ["user_id", "7642f260-cdcc-11e4-8113-705681abff85"], ["created_at", "2015-03-19 00:11:16.914756"], ["updated_at", "2015-03-19 00:11:16.914756"], ["token", "ILi9Gf_7wHfLH39FckDscHoVMtfS0PXFkYKznSgyyGk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:16.918869"], ["updated_at", "2015-03-19 00:11:16.918869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7642f260-cdcc-11e4-8113-705681abff85' AND "clubhouse_memberships"."organization_id" = '764611ac-cdcc-11e4-b8d1-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7642f260-cdcc-11e4-8113-705681abff85"], ["organization_id", "764611ac-cdcc-11e4-b8d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.931330"], ["updated_at", "2015-03-19 00:11:16.931330"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7643b60a-cdcc-11e4-94e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '764611ac-cdcc-11e4-b8d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7643b60a-cdcc-11e4-94e3-705681abff85"], ["organization_id", "764611ac-cdcc-11e4-b8d1-705681abff85"], ["created_at", "2015-03-19 00:11:16.936645"], ["updated_at", "2015-03-19 00:11:16.936645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:11:16 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:11:16.941239' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ILi9Gf_7wHfLH39FckDscHoVMtfS0PXFkYKznSgyyGk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:11:16.942648"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:11:16.943670"], ["id", "76442838-cdcc-11e4-a077-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7642f260-cdcc-11e4-8113-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "764611ac-cdcc-11e4-b8d1-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('7642f260-cdcc-11e4-8113-705681abff85', '7643b60a-cdcc-11e4-94e3-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('764611ac-cdcc-11e4-b8d1-705681abff85') Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$4ZpkPKW1SiSN.iLzM/UV4uf8HWbSHky5qfC8yYGjx9J2YOq8k/W0O"], ["created_at", "2015-03-19 00:11:16.957751"], ["updated_at", "2015-03-19 00:11:16.957751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$sSsFEeyuUWBtS.GLizcAHOPw3fYcVjaLx96xX7kaIcyzVSvnmThRG"], ["created_at", "2015-03-19 00:11:16.961924"], ["updated_at", "2015-03-19 00:11:16.961924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.963427"], ["user_id", "764aa870-cdcc-11e4-a484-705681abff85"], ["created_at", "2015-03-19 00:11:16.964159"], ["updated_at", "2015-03-19 00:11:16.964159"], ["token", "4kn9pbOygUIZ52Pa9mnA0k-WrWNps5zEBZmJNwvRzic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:16.967453"], ["updated_at", "2015-03-19 00:11:16.967453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '764aa870-cdcc-11e4-a484-705681abff85' AND "clubhouse_memberships"."organization_id" = '764c23a8-cdcc-11e4-a10a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "764aa870-cdcc-11e4-a484-705681abff85"], ["organization_id", "764c23a8-cdcc-11e4-a10a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.970769"], ["updated_at", "2015-03-19 00:11:16.970769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '764b48e8-cdcc-11e4-b8c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '764c23a8-cdcc-11e4-a10a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "764b48e8-cdcc-11e4-b8c4-705681abff85"], ["organization_id", "764c23a8-cdcc-11e4-a10a-705681abff85"], ["created_at", "2015-03-19 00:11:16.973953"], ["updated_at", "2015-03-19 00:11:16.973953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$L/6BTcQqBdJO6ARFiMv1hOIXCv9Ttr55i3GYmDoq9Q6IZNerzzixW"], ["created_at", "2015-03-19 00:11:16.978250"], ["updated_at", "2015-03-19 00:11:16.978250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:16.979872"], ["user_id", "764dcb36-cdcc-11e4-a2f6-705681abff85"], ["created_at", "2015-03-19 00:11:16.980658"], ["updated_at", "2015-03-19 00:11:16.980658"], ["token", "B-scssvGR6twOk9z23iFVFHZSnejCkoYOm6TvUgHjmc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '764c23a8-cdcc-11e4-a10a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "764c23a8-cdcc-11e4-a10a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:16.985329"], ["updated_at", "2015-03-19 00:11:16.985329"], ["token", "oDDVOQd5zhKXaEDzW4J60gb5tK49dA2diEg3okmYs6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 17:11:16 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$BHKdcjRI//6hByBfRN7LA.3zSorXqSg1MtY37B066KxMb5vCvAg9y"], ["created_at", "2015-03-19 00:11:16.996986"], ["updated_at", "2015-03-19 00:11:16.996986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$eTci/0rjQLNsYZk479BdBOWabz6.V/U.7Pb57Q3ZZH5JnTzZTGM6."], ["created_at", "2015-03-19 00:11:17.001198"], ["updated_at", "2015-03-19 00:11:17.001198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:17.002673"], ["user_id", "7650a644-cdcc-11e4-9a57-705681abff85"], ["created_at", "2015-03-19 00:11:17.003445"], ["updated_at", "2015-03-19 00:11:17.003445"], ["token", "boarfGx4FqpENolrrhCAAR4Lg9nJmiw9RRtdw8cS09w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:17.006764"], ["updated_at", "2015-03-19 00:11:17.006764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7650a644-cdcc-11e4-9a57-705681abff85' AND "clubhouse_memberships"."organization_id" = '76522050-cdcc-11e4-ab90-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7650a644-cdcc-11e4-9a57-705681abff85"], ["organization_id", "76522050-cdcc-11e4-ab90-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:17.010013"], ["updated_at", "2015-03-19 00:11:17.010013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7651469e-cdcc-11e4-82a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '76522050-cdcc-11e4-ab90-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7651469e-cdcc-11e4-82a9-705681abff85"], ["organization_id", "76522050-cdcc-11e4-ab90-705681abff85"], ["created_at", "2015-03-19 00:11:17.015456"], ["updated_at", "2015-03-19 00:11:17.015456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$SrPVXaMEeP49ndLs5NISteyyT5pTJW1yzUKYf8Ts2DvMnZWFz6jYy"], ["created_at", "2015-03-19 00:11:17.020038"], ["updated_at", "2015-03-19 00:11:17.020038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:17.021563"], ["user_id", "7654288c-cdcc-11e4-8fc7-705681abff85"], ["created_at", "2015-03-19 00:11:17.022328"], ["updated_at", "2015-03-19 00:11:17.022328"], ["token", "O9TnJK64OqCyuJsxsFIQoRy4rh2AdwAtWL5cRq3Ekwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '76522050-cdcc-11e4-ab90-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "76522050-cdcc-11e4-ab90-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:17.026094"], ["updated_at", "2015-03-19 00:11:17.026094"], ["token", "F4e_Hpi_G9wf-Zc9ITSEf-fS03VSRhNlln-Z-qrr-hI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:11:17 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"F4e_Hpi_G9wf-Zc9ITSEf-fS03VSRhNlln-Z-qrr-hI", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:11:17.031346' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "O9TnJK64OqCyuJsxsFIQoRy4rh2AdwAtWL5cRq3Ekwc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:11:17.032838"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:11:17.033786"], ["id", "76548868-cdcc-11e4-9b80-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$a6UnAUGBg2MwVfD5IjRm6urEvE9VKCiK6skSSbMDXvQCA1d4t46lq"], ["created_at", "2015-03-19 00:11:17.044395"], ["updated_at", "2015-03-19 00:11:17.044395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$etSfeGaZ7/.OwcqFDuTxQOsaIexxGkOpx5JZ6n2dv.YuFh32zRwdC"], ["created_at", "2015-03-19 00:11:17.049795"], ["updated_at", "2015-03-19 00:11:17.049795"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:17.052523"], ["user_id", "7657e0da-cdcc-11e4-a5c7-705681abff85"], ["created_at", "2015-03-19 00:11:17.053968"], ["updated_at", "2015-03-19 00:11:17.053968"], ["token", "gUxrOV8pb_wM6SvBT5lqnFxlyOEwSEhxRifMSh8fGyU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:17.058720"], ["updated_at", "2015-03-19 00:11:17.058720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7657e0da-cdcc-11e4-a5c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '765a2070-cdcc-11e4-8415-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7657e0da-cdcc-11e4-a5c7-705681abff85"], ["organization_id", "765a2070-cdcc-11e4-8415-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:17.063689"], ["updated_at", "2015-03-19 00:11:17.063689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7658c478-cdcc-11e4-9d51-705681abff85' AND "clubhouse_memberships"."organization_id" = '765a2070-cdcc-11e4-8415-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7658c478-cdcc-11e4-9d51-705681abff85"], ["organization_id", "765a2070-cdcc-11e4-8415-705681abff85"], ["created_at", "2015-03-19 00:11:17.067039"], ["updated_at", "2015-03-19 00:11:17.067039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$b9m1cA/2mg6o7HtszYZ4c.h1RquIW0ROMPUMwbm.r18plJS93YbO6"], ["created_at", "2015-03-19 00:11:17.071322"], ["updated_at", "2015-03-19 00:11:17.071322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:17.072818"], ["user_id", "765bfbfc-cdcc-11e4-b721-705681abff85"], ["created_at", "2015-03-19 00:11:17.073572"], ["updated_at", "2015-03-19 00:11:17.073572"], ["token", "vu94x90MJKXeN9StZQVRnxlSVBPxt5bqcmevcCHeIqQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '765a2070-cdcc-11e4-8415-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "765a2070-cdcc-11e4-8415-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:17.078125"], ["updated_at", "2015-03-19 00:11:17.078125"], ["token", "w5kPEEwvwloiU6TkSQTazoV1B9MfQXB6tjF2tKv8qic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:11:17 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:11:17.083078' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vu94x90MJKXeN9StZQVRnxlSVBPxt5bqcmevcCHeIqQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:11:17.084527"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:11:17.085697"], ["id", "765c59da-cdcc-11e4-9831-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 9ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$tXV0dFekQFjLOwDbuT9hfupOGRiNcYaH2T6ROJ2YwZDPwrrt/mgHW"], ["created_at", "2015-03-19 00:11:17.101668"], ["updated_at", "2015-03-19 00:11:17.101668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$eDM2Gm1F/Gfh3RzNNDASWuVADleKFURTpCwn6TAIggeZAP/CKne6i"], ["created_at", "2015-03-19 00:11:17.109706"], ["updated_at", "2015-03-19 00:11:17.109706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:17.112596"], ["user_id", "7660a436-cdcc-11e4-9bfe-705681abff85"], ["created_at", "2015-03-19 00:11:17.113409"], ["updated_at", "2015-03-19 00:11:17.113409"], ["token", "ED8P_yaVFwO2SZ8aG4Pe5GgRuJdNY-u35OZLIR9CIQQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:17.116941"], ["updated_at", "2015-03-19 00:11:17.116941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7660a436-cdcc-11e4-9bfe-705681abff85' AND "clubhouse_memberships"."organization_id" = '7662f286-cdcc-11e4-b29b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7660a436-cdcc-11e4-9bfe-705681abff85"], ["organization_id", "7662f286-cdcc-11e4-b29b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:17.120412"], ["updated_at", "2015-03-19 00:11:17.120412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7662047a-cdcc-11e4-bd4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7662f286-cdcc-11e4-b29b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7662047a-cdcc-11e4-bd4c-705681abff85"], ["organization_id", "7662f286-cdcc-11e4-b29b-705681abff85"], ["created_at", "2015-03-19 00:11:17.123531"], ["updated_at", "2015-03-19 00:11:17.123531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 17:11:17 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$yqyXwQl7.zikIqyx6rsLi.zq3wJg/es3u.BYED/q/sbeSnWo.uvxK"], ["created_at", "2015-03-19 00:11:17.133704"], ["updated_at", "2015-03-19 00:11:17.133704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$GwAr81ksz0Mr.AN.gK0vUeZdl6UgA0ZDRQHNFtMCtO8uwbQzx1CBu"], ["created_at", "2015-03-19 00:11:17.138368"], ["updated_at", "2015-03-19 00:11:17.138368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:17.139867"], ["user_id", "76658b40-cdcc-11e4-b520-705681abff85"], ["created_at", "2015-03-19 00:11:17.140645"], ["updated_at", "2015-03-19 00:11:17.140645"], ["token", "nO8NaZOpPdB5CzpBqL4UJeqX5Xtf-9IqzReetezLoEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:17.144135"], ["updated_at", "2015-03-19 00:11:17.144135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76658b40-cdcc-11e4-b520-705681abff85' AND "clubhouse_memberships"."organization_id" = '76671f96-cdcc-11e4-85b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76658b40-cdcc-11e4-b520-705681abff85"], ["organization_id", "76671f96-cdcc-11e4-85b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:17.147773"], ["updated_at", "2015-03-19 00:11:17.147773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '766635fe-cdcc-11e4-a88e-705681abff85' AND "clubhouse_memberships"."organization_id" = '76671f96-cdcc-11e4-85b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "766635fe-cdcc-11e4-a88e-705681abff85"], ["organization_id", "76671f96-cdcc-11e4-85b6-705681abff85"], ["created_at", "2015-03-19 00:11:17.150836"], ["updated_at", "2015-03-19 00:11:17.150836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/7667a43e-cdcc-11e4-8787-705681abff85" for 127.0.0.1 at 2015-03-18 17:11:17 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"7667a43e-cdcc-11e4-8787-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:11:17.155352' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nO8NaZOpPdB5CzpBqL4UJeqX5Xtf-9IqzReetezLoEQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:11:17.157389"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:11:17.158385"], ["id", "766695ee-cdcc-11e4-9237-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "7667a43e-cdcc-11e4-8787-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "76658b40-cdcc-11e4-b520-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "76671f96-cdcc-11e4-85b6-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '76658b40-cdcc-11e4-b520-705681abff85' LIMIT 1 [["organization_id", "76671f96-cdcc-11e4-85b6-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "76658b40-cdcc-11e4-b520-705681abff85"]] Completed 200 OK in 15ms (Views: 2.1ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$tLzTugU4XE.tXdiWXwOfeuONDmfba7LcKFrqd5zW6OwLwuwRMQjoe"], ["created_at", "2015-03-19 00:11:17.183251"], ["updated_at", "2015-03-19 00:11:17.183251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$QcZIcnn39L2ZRc2ibwn.oOkMCDX8DVVf2gE/85N/./LLr1o3x.cUi"], ["created_at", "2015-03-19 00:11:17.187600"], ["updated_at", "2015-03-19 00:11:17.187600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:17.189271"], ["user_id", "766d123e-cdcc-11e4-9216-705681abff85"], ["created_at", "2015-03-19 00:11:17.190166"], ["updated_at", "2015-03-19 00:11:17.190166"], ["token", "R5xpW74etU5tea5RwrVHxMcWOGH3xIQayS-IxZVC5oY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:17.193747"], ["updated_at", "2015-03-19 00:11:17.193747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '766d123e-cdcc-11e4-9216-705681abff85' AND "clubhouse_memberships"."organization_id" = '766eb508-cdcc-11e4-b547-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "766d123e-cdcc-11e4-9216-705681abff85"], ["organization_id", "766eb508-cdcc-11e4-b547-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:17.197411"], ["updated_at", "2015-03-19 00:11:17.197411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '766db8f6-cdcc-11e4-9109-705681abff85' AND "clubhouse_memberships"."organization_id" = '766eb508-cdcc-11e4-b547-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "766db8f6-cdcc-11e4-9109-705681abff85"], ["organization_id", "766eb508-cdcc-11e4-b547-705681abff85"], ["created_at", "2015-03-19 00:11:17.201228"], ["updated_at", "2015-03-19 00:11:17.201228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 17:11:17 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$Mqrn2JN.0AhP4tfaqIHW0Oh.i8MXX1be.YTQRgLaxxywmidlTgkzu"], ["created_at", "2015-03-19 00:11:17.212497"], ["updated_at", "2015-03-19 00:11:17.212497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$I2Nt0Hy.2Zm/3zvls7TOfetNdP17cEnj3rv27Bf5EnSIDf.95MplG"], ["created_at", "2015-03-19 00:11:17.218115"], ["updated_at", "2015-03-19 00:11:17.218115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:17.220084"], ["user_id", "76718e4a-cdcc-11e4-8190-705681abff85"], ["created_at", "2015-03-19 00:11:17.221102"], ["updated_at", "2015-03-19 00:11:17.221102"], ["token", "oqoHBXUAZlVbjgCV-5TnxcK3Dqk661p9CkLhLcn0idg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:17.226232"], ["updated_at", "2015-03-19 00:11:17.226232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76718e4a-cdcc-11e4-8190-705681abff85' AND "clubhouse_memberships"."organization_id" = '7673a540-cdcc-11e4-865f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76718e4a-cdcc-11e4-8190-705681abff85"], ["organization_id", "7673a540-cdcc-11e4-865f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:17.229857"], ["updated_at", "2015-03-19 00:11:17.229857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76726b26-cdcc-11e4-9318-705681abff85' AND "clubhouse_memberships"."organization_id" = '7673a540-cdcc-11e4-865f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76726b26-cdcc-11e4-9318-705681abff85"], ["organization_id", "7673a540-cdcc-11e4-865f-705681abff85"], ["created_at", "2015-03-19 00:11:17.232932"], ["updated_at", "2015-03-19 00:11:17.232932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7674a2ec-cdcc-11e4-899e-705681abff85" for 127.0.0.1 at 2015-03-18 17:11:17 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7674a2ec-cdcc-11e4-899e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:11:17.237461' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oqoHBXUAZlVbjgCV-5TnxcK3Dqk661p9CkLhLcn0idg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:11:17.238919"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:11:17.239867"], ["id", "7672ef9c-cdcc-11e4-860f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$k6vMjWFuby6tPg5JsPRfAu7Y8cHbcbA1laDdYFqQXckjbHBwZcfqG"], ["created_at", "2015-03-19 00:11:17.250946"], ["updated_at", "2015-03-19 00:11:17.250946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$yZ5IK320v2j3o4IWN5Cs/umY0N0qAhE26JmVWW.OZ4RHCsgP8niFu"], ["created_at", "2015-03-19 00:11:17.255602"], ["updated_at", "2015-03-19 00:11:17.255602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:17.257196"], ["user_id", "7677666c-cdcc-11e4-9d48-705681abff85"], ["created_at", "2015-03-19 00:11:17.257950"], ["updated_at", "2015-03-19 00:11:17.257950"], ["token", "rzHzpgGHYrYwTkBL2tVXf_PsVegIxzZv1a5MqafAznk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:17.261927"], ["updated_at", "2015-03-19 00:11:17.261927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7677666c-cdcc-11e4-9d48-705681abff85' AND "clubhouse_memberships"."organization_id" = '767914ee-cdcc-11e4-8b9d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7677666c-cdcc-11e4-9d48-705681abff85"], ["organization_id", "767914ee-cdcc-11e4-8b9d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:17.265481"], ["updated_at", "2015-03-19 00:11:17.265481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76781ba2-cdcc-11e4-b6f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '767914ee-cdcc-11e4-8b9d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76781ba2-cdcc-11e4-b6f7-705681abff85"], ["organization_id", "767914ee-cdcc-11e4-8b9d-705681abff85"], ["created_at", "2015-03-19 00:11:17.268580"], ["updated_at", "2015-03-19 00:11:17.268580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 17:11:17 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$Jkn.BJuPIOfj1YXW9qzkLeQCZUR/0r.jV9Tt1WhGXBLyGIL/OszZi"], ["created_at", "2015-03-19 00:11:17.279665"], ["updated_at", "2015-03-19 00:11:17.279665"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$DDeKK4lKrWWrgAHBzSCeM.dCQpeKhFC2f7edcy0nit2QbDG12mfMK"], ["created_at", "2015-03-19 00:11:17.291460"], ["updated_at", "2015-03-19 00:11:17.291460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:11:17.293690"], ["user_id", "767bca86-cdcc-11e4-9257-705681abff85"], ["created_at", "2015-03-19 00:11:17.294713"], ["updated_at", "2015-03-19 00:11:17.294713"], ["token", "GgrS8PCSqzaRYCcnUPFgUIJjsvY7QjcEceSTOVrzbtY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:11:17.298272"], ["updated_at", "2015-03-19 00:11:17.298272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '767bca86-cdcc-11e4-9257-705681abff85' AND "clubhouse_memberships"."organization_id" = '767e9c5c-cdcc-11e4-9bf0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "767bca86-cdcc-11e4-9257-705681abff85"], ["organization_id", "767e9c5c-cdcc-11e4-9bf0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:11:17.301569"], ["updated_at", "2015-03-19 00:11:17.301569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '767da572-cdcc-11e4-9b90-705681abff85' AND "clubhouse_memberships"."organization_id" = '767e9c5c-cdcc-11e4-9bf0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "767da572-cdcc-11e4-9b90-705681abff85"], ["organization_id", "767e9c5c-cdcc-11e4-9bf0-705681abff85"], ["created_at", "2015-03-19 00:11:17.306026"], ["updated_at", "2015-03-19 00:11:17.306026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/767fcc58-cdcc-11e4-b988-705681abff85" for 127.0.0.1 at 2015-03-18 17:11:17 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"767fcc58-cdcc-11e4-b988-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:11:17.310646' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GgrS8PCSqzaRYCcnUPFgUIJjsvY7QjcEceSTOVrzbtY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:11:17.312204"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:11:17.313169"], ["id", "767e1d2c-cdcc-11e4-8fb1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "767bca86-cdcc-11e4-9257-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (26.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$qzqOBFJ4.BTTmcHpLAc9WOQo/x4MJBLU7g/FThYITL.PQ/3IbkzSa"], ["created_at", "2015-03-19 00:16:42.514209"], ["updated_at", "2015-03-19 00:16:42.514209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$bHmDOI3asUt.vq.9hKvOrO4c.udtJPonQdKNExuVwTlodedlZiL/."], ["created_at", "2015-03-19 00:16:42.546358"], ["updated_at", "2015-03-19 00:16:42.546358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:42.591559"], ["user_id", "385a78be-cdcd-11e4-a606-705681abff85"], ["created_at", "2015-03-19 00:16:42.597010"], ["updated_at", "2015-03-19 00:16:42.597010"], ["token", "6QaKoTI5jz-ToPTzV_w_ao1Zwnx9mrjnHeJFiCjqNow"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:42.613058"], ["updated_at", "2015-03-19 00:16:42.613058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '385a78be-cdcd-11e4-a606-705681abff85' AND "clubhouse_memberships"."organization_id" = '3865c1f6-cdcd-11e4-9632-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "385a78be-cdcd-11e4-a606-705681abff85"], ["organization_id", "3865c1f6-cdcd-11e4-9632-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:42.624396"], ["updated_at", "2015-03-19 00:16:42.624396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '385b8a92-cdcd-11e4-9dc1-705681abff85' AND "clubhouse_memberships"."organization_id" = '3865c1f6-cdcd-11e4-9632-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "385b8a92-cdcd-11e4-9dc1-705681abff85"], ["organization_id", "3865c1f6-cdcd-11e4-9632-705681abff85"], ["created_at", "2015-03-19 00:16:42.630027"], ["updated_at", "2015-03-19 00:16:42.630027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/3868520e-cdcd-11e4-a6ca-705681abff85" for 127.0.0.1 at 2015-03-18 17:16:42 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"3868520e-cdcd-11e4-a6ca-705681abff85", "membership"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:16:42.657402' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6QaKoTI5jz-ToPTzV_w_ao1Zwnx9mrjnHeJFiCjqNow"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:16:42.676551"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:16:42.679111"], ["id", "38635c72-cdcd-11e4-a14b-705681abff85"]]  (1.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.5ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "3868520e-cdcd-11e4-a6ca-705681abff85"]] User Load (2.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "385a78be-cdcd-11e4-a606-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3865c1f6-cdcd-11e4-9632-705681abff85"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '385a78be-cdcd-11e4-a606-705681abff85' LIMIT 1 [["organization_id", "3865c1f6-cdcd-11e4-9632-705681abff85"]] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "385b8a92-cdcd-11e4-9dc1-705681abff85"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "3868520e-cdcd-11e4-a6ca-705681abff85"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 81ms (ActiveRecord: 9.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$DQtGAdQEEYpf3SPILOmbtu.50fMFQtCTAmCUNJv8pjmrGXTfsprQW"], ["created_at", "2015-03-19 00:16:42.750133"], ["updated_at", "2015-03-19 00:16:42.750133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Ydv5urOpPZUjNTll6RAhCev12vTCRvYs6I5VfBA0SpnKRFcNV0s.C"], ["created_at", "2015-03-19 00:16:42.756102"], ["updated_at", "2015-03-19 00:16:42.756102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:42.758488"], ["user_id", "387ab0a2-cdcd-11e4-af60-705681abff85"], ["created_at", "2015-03-19 00:16:42.759657"], ["updated_at", "2015-03-19 00:16:42.759657"], ["token", "wU9phWRLUjnpRm0szsnqlGMYJcr9DRwv2-9IHKlzrzU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:42.764384"], ["updated_at", "2015-03-19 00:16:42.764384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '387ab0a2-cdcd-11e4-af60-705681abff85' AND "clubhouse_memberships"."organization_id" = '387cd210-cdcd-11e4-af88-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "387ab0a2-cdcd-11e4-af60-705681abff85"], ["organization_id", "387cd210-cdcd-11e4-af88-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:42.767957"], ["updated_at", "2015-03-19 00:16:42.767957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '387b9a26-cdcd-11e4-bc8c-705681abff85' AND "clubhouse_memberships"."organization_id" = '387cd210-cdcd-11e4-af88-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "387b9a26-cdcd-11e4-bc8c-705681abff85"], ["organization_id", "387cd210-cdcd-11e4-af88-705681abff85"], ["created_at", "2015-03-19 00:16:42.772776"], ["updated_at", "2015-03-19 00:16:42.772776"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 17:16:42 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$FIslI/rStPjqlxSYDpLKYOBhJRLWLDuGv6SCKTyJ4DVZzjnarETQ2"], ["created_at", "2015-03-19 00:16:42.787409"], ["updated_at", "2015-03-19 00:16:42.787409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$nL1xrNALhEodYTQosI86OuzzM4EB3LO/9.qA6/9QRKiX601lk3kn."], ["created_at", "2015-03-19 00:16:42.791928"], ["updated_at", "2015-03-19 00:16:42.791928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:42.793428"], ["user_id", "3880552a-cdcd-11e4-a769-705681abff85"], ["created_at", "2015-03-19 00:16:42.794193"], ["updated_at", "2015-03-19 00:16:42.794193"], ["token", "jIOVnzEK8nVvw_MwKAdBtoFobm3JFU-1sYzkvDHxRM8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:42.797658"], ["updated_at", "2015-03-19 00:16:42.797658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3880552a-cdcd-11e4-a769-705681abff85' AND "clubhouse_memberships"."organization_id" = '3881f52e-cdcd-11e4-9f15-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3880552a-cdcd-11e4-a769-705681abff85"], ["organization_id", "3881f52e-cdcd-11e4-9f15-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:42.802256"], ["updated_at", "2015-03-19 00:16:42.802256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '388100a6-cdcd-11e4-b83e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3881f52e-cdcd-11e4-9f15-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "388100a6-cdcd-11e4-b83e-705681abff85"], ["organization_id", "3881f52e-cdcd-11e4-9f15-705681abff85"], ["created_at", "2015-03-19 00:16:42.805351"], ["updated_at", "2015-03-19 00:16:42.805351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$xM/ym813Um2hwGCo/5XU4ehqrDM9C7qa/Y4Mb2aJUXepkGrov2o6m"], ["created_at", "2015-03-19 00:16:42.809640"], ["updated_at", "2015-03-19 00:16:42.809640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:42.811241"], ["user_id", "3883b530-cdcd-11e4-858b-705681abff85"], ["created_at", "2015-03-19 00:16:42.812373"], ["updated_at", "2015-03-19 00:16:42.812373"], ["token", "DiNS9Zhq9hJ5BTlzWTm1Dmh-EgnppNajzsyYYw2YZj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '3881f52e-cdcd-11e4-9f15-705681abff85') LIMIT 1 SQL (6.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "3881f52e-cdcd-11e4-9f15-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:42.822868"], ["updated_at", "2015-03-19 00:16:42.822868"], ["token", "pZ7Hug2RSVAaFvil57rot44bL58uTo8RVOz7d9dbg70"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 17:16:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ixmMKajR5PA3PsSGA8WtxONMe36ytA8mSkLtEoijAdY1X9lJWxNgy"], ["created_at", "2015-03-19 00:16:42.841095"], ["updated_at", "2015-03-19 00:16:42.841095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$DstsZJSEW559DxpRQIm4O.jMtl0eZZqn.Ez9mxmzZSmDO0MSvaGRO"], ["created_at", "2015-03-19 00:16:42.846836"], ["updated_at", "2015-03-19 00:16:42.846836"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:42.850011"], ["user_id", "38889898-cdcd-11e4-844d-705681abff85"], ["created_at", "2015-03-19 00:16:42.851355"], ["updated_at", "2015-03-19 00:16:42.851355"], ["token", "AgKHDeGCZCDH_yfgLScVeLuhbRocDM86mi3VWIh36C0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:42.855069"], ["updated_at", "2015-03-19 00:16:42.855069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38889898-cdcd-11e4-844d-705681abff85' AND "clubhouse_memberships"."organization_id" = '388aa368-cdcd-11e4-a79d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38889898-cdcd-11e4-844d-705681abff85"], ["organization_id", "388aa368-cdcd-11e4-a79d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:42.859069"], ["updated_at", "2015-03-19 00:16:42.859069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '388976b4-cdcd-11e4-820e-705681abff85' AND "clubhouse_memberships"."organization_id" = '388aa368-cdcd-11e4-a79d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "388976b4-cdcd-11e4-820e-705681abff85"], ["organization_id", "388aa368-cdcd-11e4-a79d-705681abff85"], ["created_at", "2015-03-19 00:16:42.862910"], ["updated_at", "2015-03-19 00:16:42.862910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$BDNYa9np3D1zsDiazAcsLOCtZ9WWuFABnyJ0ZhRh2hvxs8KCAl1Fe"], ["created_at", "2015-03-19 00:16:42.867791"], ["updated_at", "2015-03-19 00:16:42.867791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:42.869402"], ["user_id", "388c961e-cdcd-11e4-a801-705681abff85"], ["created_at", "2015-03-19 00:16:42.870177"], ["updated_at", "2015-03-19 00:16:42.870177"], ["token", "mgxmDQFr3VjVxAUtRBHSR_fPNf8vgSong1DawwxHy1w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '388aa368-cdcd-11e4-a79d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "388aa368-cdcd-11e4-a79d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:42.873815"], ["updated_at", "2015-03-19 00:16:42.873815"], ["token", "gACx7E_lUpX-faYxGLNsLwlqh9T1Sf9wVFLF35Rg1q4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/388aa368-cdcd-11e4-a79d-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:16:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"388aa368-cdcd-11e4-a79d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:16:42.881259' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mgxmDQFr3VjVxAUtRBHSR_fPNf8vgSong1DawwxHy1w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:16:42.882705"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:16:42.883828"], ["id", "388cf71c-cdcd-11e4-9639-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "388aa368-cdcd-11e4-a79d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "388c961e-cdcd-11e4-a801-705681abff85"]] Completed 500 Internal Server Error in 27ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$vvAMHM.dIsQSl/GxLryJXO1RwPlmDPlHLDganNntTuXVO.Z4M0L6G"], ["created_at", "2015-03-19 00:16:42.915583"], ["updated_at", "2015-03-19 00:16:42.915583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$1yIhyF3nnyyNOXN9SIM1rOFkwJ1UnEvOygEc09iVLcA2f/jEL64gW"], ["created_at", "2015-03-19 00:16:42.919977"], ["updated_at", "2015-03-19 00:16:42.919977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:42.921713"], ["user_id", "3893e586-cdcd-11e4-87dd-705681abff85"], ["created_at", "2015-03-19 00:16:42.922633"], ["updated_at", "2015-03-19 00:16:42.922633"], ["token", "4e9F7PSQ2JTQlbWM25oKAXvTMTTIkz50EVaWWRt9PeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:42.926468"], ["updated_at", "2015-03-19 00:16:42.926468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3893e586-cdcd-11e4-87dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '38958bac-cdcd-11e4-b36d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3893e586-cdcd-11e4-87dd-705681abff85"], ["organization_id", "38958bac-cdcd-11e4-b36d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:42.930456"], ["updated_at", "2015-03-19 00:16:42.930456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38948e3c-cdcd-11e4-97d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '38958bac-cdcd-11e4-b36d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38948e3c-cdcd-11e4-97d9-705681abff85"], ["organization_id", "38958bac-cdcd-11e4-b36d-705681abff85"], ["created_at", "2015-03-19 00:16:42.934303"], ["updated_at", "2015-03-19 00:16:42.934303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$V9W/ZzWbQqpFepZFfmEUT.MFSN9JwCfIalgFMBpiPybZZUxlkj7.S"], ["created_at", "2015-03-19 00:16:42.939351"], ["updated_at", "2015-03-19 00:16:42.939351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:42.941275"], ["user_id", "38978772-cdcd-11e4-ba6d-705681abff85"], ["created_at", "2015-03-19 00:16:42.942089"], ["updated_at", "2015-03-19 00:16:42.942089"], ["token", "2E_wWQdk95rsOS_LQs0stm33dWKo62NxvLqFtS5yHJ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '38958bac-cdcd-11e4-b36d-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "38958bac-cdcd-11e4-b36d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:42.947096"], ["updated_at", "2015-03-19 00:16:42.947096"], ["token", "V1yWigbOMohLjDNPn8fhk6aA6QPjwfaLb1ATn8gWszE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/38958bac-cdcd-11e4-b36d-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:16:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"V1yWigbOMohLjDNPn8fhk6aA6QPjwfaLb1ATn8gWszE", "organization_id"=>"38958bac-cdcd-11e4-b36d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:16:42.954411' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2E_wWQdk95rsOS_LQs0stm33dWKo62NxvLqFtS5yHJ0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:16:42.955984"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:16:42.957049"], ["id", "3897f95a-cdcd-11e4-bdfb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "38958bac-cdcd-11e4-b36d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38978772-cdcd-11e4-ba6d-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$HcyDpx37a0PrBj4QVS5Re.m4Q0EJG4/r6h.7KBx67YiLkOeZZPEoy"], ["created_at", "2015-03-19 00:16:42.968977"], ["updated_at", "2015-03-19 00:16:42.968977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$Vu9hdMRhVB.UQJzeKYzn6.rFRxKj4hCkHuSkPtVyZSQgs8vvM3BJC"], ["created_at", "2015-03-19 00:16:42.974643"], ["updated_at", "2015-03-19 00:16:42.974643"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:42.977466"], ["user_id", "389c16fc-cdcd-11e4-a0da-705681abff85"], ["created_at", "2015-03-19 00:16:42.978385"], ["updated_at", "2015-03-19 00:16:42.978385"], ["token", "cFlz2XJiNIj_g89RNm497pvFJzfufZtWdA4IqsCLSbQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:42.982204"], ["updated_at", "2015-03-19 00:16:42.982204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '389c16fc-cdcd-11e4-a0da-705681abff85' AND "clubhouse_memberships"."organization_id" = '389e0dae-cdcd-11e4-8752-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "389c16fc-cdcd-11e4-a0da-705681abff85"], ["organization_id", "389e0dae-cdcd-11e4-8752-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:42.985964"], ["updated_at", "2015-03-19 00:16:42.985964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '389cfeb4-cdcd-11e4-880a-705681abff85' AND "clubhouse_memberships"."organization_id" = '389e0dae-cdcd-11e4-8752-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "389cfeb4-cdcd-11e4-880a-705681abff85"], ["organization_id", "389e0dae-cdcd-11e4-8752-705681abff85"], ["created_at", "2015-03-19 00:16:42.989710"], ["updated_at", "2015-03-19 00:16:42.989710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:16:42 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:16:42.995533' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cFlz2XJiNIj_g89RNm497pvFJzfufZtWdA4IqsCLSbQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:16:42.997283"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:16:42.998564"], ["id", "389d800a-cdcd-11e4-bdb9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "389c16fc-cdcd-11e4-a0da-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$FPF6K55wAh2FhXVN9rqZXeRwX9O1r49KUSSkK07z4B3JntgvEX9yy"], ["created_at", "2015-03-19 00:16:43.010562"], ["updated_at", "2015-03-19 00:16:43.010562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$E9Eg6vid8gxiuRqpqg6mIOHvwbVPUuwqfi0MJKYms4xYA4BVS3wn."], ["created_at", "2015-03-19 00:16:43.015786"], ["updated_at", "2015-03-19 00:16:43.015786"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.019328"], ["user_id", "38a26700-cdcd-11e4-be7e-705681abff85"], ["created_at", "2015-03-19 00:16:43.028765"], ["updated_at", "2015-03-19 00:16:43.028765"], ["token", "zBC7rtIfoxXEOL8rdMmuEcDENgZPE0m6NqyTbvWvb_s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:43.058613"], ["updated_at", "2015-03-19 00:16:43.058613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38a26700-cdcd-11e4-be7e-705681abff85' AND "clubhouse_memberships"."organization_id" = '38a9dd78-cdcd-11e4-9433-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38a26700-cdcd-11e4-be7e-705681abff85"], ["organization_id", "38a9dd78-cdcd-11e4-9433-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.063383"], ["updated_at", "2015-03-19 00:16:43.063383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38a343d2-cdcd-11e4-9c3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '38a9dd78-cdcd-11e4-9433-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38a343d2-cdcd-11e4-9c3b-705681abff85"], ["organization_id", "38a9dd78-cdcd-11e4-9433-705681abff85"], ["created_at", "2015-03-19 00:16:43.067178"], ["updated_at", "2015-03-19 00:16:43.067178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 17:16:43 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$XbpKhLJRHWflVE9RQKwak.g.wihyz4bC.Tr/8G28Rr8plATziTCAe"], ["created_at", "2015-03-19 00:16:43.079757"], ["updated_at", "2015-03-19 00:16:43.079757"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (6.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$UCySJzJxdUW1JUgqi0.jS.eW9jhdFoosh6N85Ry6YZGCO5oqUl/bu"], ["created_at", "2015-03-19 00:16:43.087046"], ["updated_at", "2015-03-19 00:16:43.087046"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.095610"], ["user_id", "38acfd64-cdcd-11e4-9fbd-705681abff85"], ["created_at", "2015-03-19 00:16:43.096487"], ["updated_at", "2015-03-19 00:16:43.096487"], ["token", "4XQv5Y8NCMeBECJR9wN8IspJzem2YggHJmMfHrUdRmQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:43.100607"], ["updated_at", "2015-03-19 00:16:43.100607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38acfd64-cdcd-11e4-9fbd-705681abff85' AND "clubhouse_memberships"."organization_id" = '38b01ee0-cdcd-11e4-9910-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38acfd64-cdcd-11e4-9fbd-705681abff85"], ["organization_id", "38b01ee0-cdcd-11e4-9910-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.107011"], ["updated_at", "2015-03-19 00:16:43.107011"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38ae0b32-cdcd-11e4-a248-705681abff85' AND "clubhouse_memberships"."organization_id" = '38b01ee0-cdcd-11e4-9910-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38ae0b32-cdcd-11e4-a248-705681abff85"], ["organization_id", "38b01ee0-cdcd-11e4-9910-705681abff85"], ["created_at", "2015-03-19 00:16:43.113591"], ["updated_at", "2015-03-19 00:16:43.113591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/38b21c68-cdcd-11e4-8a6f-705681abff85" for 127.0.0.1 at 2015-03-18 17:16:43 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"38b21c68-cdcd-11e4-8a6f-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:16:43.119178' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4XQv5Y8NCMeBECJR9wN8IspJzem2YggHJmMfHrUdRmQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:16:43.120725"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:16:43.121745"], ["id", "38af8606-cdcd-11e4-803a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "38b21c68-cdcd-11e4-8a6f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38acfd64-cdcd-11e4-9fbd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38b01ee0-cdcd-11e4-9910-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38acfd64-cdcd-11e4-9fbd-705681abff85' LIMIT 1 [["organization_id", "38b01ee0-cdcd-11e4-9910-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38ae0b32-cdcd-11e4-a248-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Rm/6enNv1ME7IlfTLbCI6.CD8ZhdqZNJQUfDpnC1.LY7nIXF80r2G"], ["created_at", "2015-03-19 00:16:43.133753"], ["updated_at", "2015-03-19 00:16:43.133753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$FbClF5UaLqG7.zg5Ur5tFeqRiRsMkaTgBQIKbc9pQRF.ae8Mo5/tK"], ["created_at", "2015-03-19 00:16:43.138875"], ["updated_at", "2015-03-19 00:16:43.138875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.140652"], ["user_id", "38b53056-cdcd-11e4-8fc6-705681abff85"], ["created_at", "2015-03-19 00:16:43.141561"], ["updated_at", "2015-03-19 00:16:43.141561"], ["token", "BKNcV7DZHAIL5qEXqJJQ_pgkOqvJ4ZNUEN8DXgVdYms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:43.145349"], ["updated_at", "2015-03-19 00:16:43.145349"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38b53056-cdcd-11e4-8fc6-705681abff85' AND "clubhouse_memberships"."organization_id" = '38b6eefa-cdcd-11e4-aa2c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38b53056-cdcd-11e4-8fc6-705681abff85"], ["organization_id", "38b6eefa-cdcd-11e4-aa2c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.149419"], ["updated_at", "2015-03-19 00:16:43.149419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38b5f50e-cdcd-11e4-85a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '38b6eefa-cdcd-11e4-aa2c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38b5f50e-cdcd-11e4-85a6-705681abff85"], ["organization_id", "38b6eefa-cdcd-11e4-aa2c-705681abff85"], ["created_at", "2015-03-19 00:16:43.153997"], ["updated_at", "2015-03-19 00:16:43.153997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 17:16:43 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$LWoj5r/4kzNjBLCqp1vM2.3.S.FnBCJOU3A2JCdhBfQDAF/g4YG6."], ["created_at", "2015-03-19 00:16:43.167622"], ["updated_at", "2015-03-19 00:16:43.167622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$upXr7ORT0PJrWDryI.VCSOUpL6.8bPGxug0bOX3oTbmsmLBAYB.dK"], ["created_at", "2015-03-19 00:16:43.172427"], ["updated_at", "2015-03-19 00:16:43.172427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.174152"], ["user_id", "38ba5bda-cdcd-11e4-ad9e-705681abff85"], ["created_at", "2015-03-19 00:16:43.175267"], ["updated_at", "2015-03-19 00:16:43.175267"], ["token", "I2CXgSGKX2KH6iZgzye9W7punESYE-5WsCJ09Nlw6iY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:43.179076"], ["updated_at", "2015-03-19 00:16:43.179076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38ba5bda-cdcd-11e4-ad9e-705681abff85' AND "clubhouse_memberships"."organization_id" = '38bc16c8-cdcd-11e4-be35-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38ba5bda-cdcd-11e4-ad9e-705681abff85"], ["organization_id", "38bc16c8-cdcd-11e4-be35-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.183164"], ["updated_at", "2015-03-19 00:16:43.183164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38bb126e-cdcd-11e4-9640-705681abff85' AND "clubhouse_memberships"."organization_id" = '38bc16c8-cdcd-11e4-be35-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38bb126e-cdcd-11e4-9640-705681abff85"], ["organization_id", "38bc16c8-cdcd-11e4-be35-705681abff85"], ["created_at", "2015-03-19 00:16:43.188924"], ["updated_at", "2015-03-19 00:16:43.188924"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$WnHDkvIAOuSjYLEpxK/goe8yNmrmIbXjAu7DYb8z1Mn9NaonPQ1nW"], ["created_at", "2015-03-19 00:16:43.202713"], ["updated_at", "2015-03-19 00:16:43.202713"]]  (1.8ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.217301"], ["user_id", "38c0f76a-cdcd-11e4-8ba4-705681abff85"], ["created_at", "2015-03-19 00:16:43.222761"], ["updated_at", "2015-03-19 00:16:43.222761"], ["token", "oS7vOMNupbTHtZxo5eGpS93SWKrA9Yurx9jyrFg_FOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '38bc16c8-cdcd-11e4-be35-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "38bc16c8-cdcd-11e4-be35-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.229230"], ["updated_at", "2015-03-19 00:16:43.229230"], ["token", "-YYiFFAbcDBw1zyjujCK-utg4aje0mfhMi4TagtuZXs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 17:16:43 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$QoBUr0Dn0JsZzgSPmAGY.O871/UIz8Ou7Falm7hCG1UmdDVDZSYoe"], ["created_at", "2015-03-19 00:16:43.252709"], ["updated_at", "2015-03-19 00:16:43.252709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$qrmEZW5r8hSpiSYY5VDBuuMrkeb6Lbz0KN/uz06wNiChncaW6sXGS"], ["created_at", "2015-03-19 00:16:43.258641"], ["updated_at", "2015-03-19 00:16:43.258641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.260640"], ["user_id", "38c763de-cdcd-11e4-b570-705681abff85"], ["created_at", "2015-03-19 00:16:43.261402"], ["updated_at", "2015-03-19 00:16:43.261402"], ["token", "Vg-CZS0l92S06Y27q1mIO75t7SkFlUNzh-jmYutn3gk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:43.265568"], ["updated_at", "2015-03-19 00:16:43.265568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38c763de-cdcd-11e4-b570-705681abff85' AND "clubhouse_memberships"."organization_id" = '38c94578-cdcd-11e4-94ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38c763de-cdcd-11e4-b570-705681abff85"], ["organization_id", "38c94578-cdcd-11e4-94ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.271093"], ["updated_at", "2015-03-19 00:16:43.271093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38c83f5c-cdcd-11e4-9ec7-705681abff85' AND "clubhouse_memberships"."organization_id" = '38c94578-cdcd-11e4-94ce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38c83f5c-cdcd-11e4-9ec7-705681abff85"], ["organization_id", "38c94578-cdcd-11e4-94ce-705681abff85"], ["created_at", "2015-03-19 00:16:43.274149"], ["updated_at", "2015-03-19 00:16:43.274149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$wbfewUJsraZ8RL9IDcUTBOUakyqDvih0Pzvz8Ju3IjmIy1szJYm8."], ["created_at", "2015-03-19 00:16:43.279592"], ["updated_at", "2015-03-19 00:16:43.279592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.281997"], ["user_id", "38cb719a-cdcd-11e4-a86b-705681abff85"], ["created_at", "2015-03-19 00:16:43.283359"], ["updated_at", "2015-03-19 00:16:43.283359"], ["token", "7j1Kr_sKcVoxDkNnGHg8-_zsTX43NLWrnN_8aypZbNU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '38c94578-cdcd-11e4-94ce-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "38c94578-cdcd-11e4-94ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.290935"], ["updated_at", "2015-03-19 00:16:43.290935"], ["token", "JCv1Au1-6xKiPXEe9IpFY7Eu_A-wF_lVW870OvsIonE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:16:43 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:16:43.296951' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7j1Kr_sKcVoxDkNnGHg8-_zsTX43NLWrnN_8aypZbNU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:16:43.298544"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:16:43.299682"], ["id", "38cc1e42-cdcd-11e4-a3c4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38cb719a-cdcd-11e4-a86b-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$rIRd4TvXGbhIwBG0GSq1Ce9kr3b8.0c5wsxeKBcU7NMaSAb.UseYO"], ["created_at", "2015-03-19 00:16:43.313269"], ["updated_at", "2015-03-19 00:16:43.313269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$F2gzNIypXskYQzp.xDGLY.4SoODQ5yf9AUR2bI4uVFcSxQEchYjDq"], ["created_at", "2015-03-19 00:16:43.318336"], ["updated_at", "2015-03-19 00:16:43.318336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.320298"], ["user_id", "38d09314-cdcd-11e4-bca6-705681abff85"], ["created_at", "2015-03-19 00:16:43.321245"], ["updated_at", "2015-03-19 00:16:43.321245"], ["token", "QcoHj3HwoESmxrcnBH0PxMFzK-KCqgLhNPHkfSyspqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:43.325447"], ["updated_at", "2015-03-19 00:16:43.325447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38d09314-cdcd-11e4-bca6-705681abff85' AND "clubhouse_memberships"."organization_id" = '38d27198-cdcd-11e4-b5c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38d09314-cdcd-11e4-bca6-705681abff85"], ["organization_id", "38d27198-cdcd-11e4-b5c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.330454"], ["updated_at", "2015-03-19 00:16:43.330454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38d15e0c-cdcd-11e4-8a89-705681abff85' AND "clubhouse_memberships"."organization_id" = '38d27198-cdcd-11e4-b5c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38d15e0c-cdcd-11e4-8a89-705681abff85"], ["organization_id", "38d27198-cdcd-11e4-b5c6-705681abff85"], ["created_at", "2015-03-19 00:16:43.335301"], ["updated_at", "2015-03-19 00:16:43.335301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$J6dGJonVAWK9hnJR9MQFZO8JTOTD/hPGM/oMvBfYbGH9lUXBMhchu"], ["created_at", "2015-03-19 00:16:43.341654"], ["updated_at", "2015-03-19 00:16:43.341654"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.345825"], ["user_id", "38d4fac6-cdcd-11e4-9498-705681abff85"], ["created_at", "2015-03-19 00:16:43.346982"], ["updated_at", "2015-03-19 00:16:43.346982"], ["token", "HzjEjSUhBbdpWXRqNyYLqLGq93tpZ5s_v3SNPRe3l5s"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '38d27198-cdcd-11e4-b5c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "38d27198-cdcd-11e4-b5c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.356591"], ["updated_at", "2015-03-19 00:16:43.356591"], ["token", "_TTa1grjOgCOaxcsWiIHIKCtn8CYG_srr890j_FauaM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:16:43 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"_TTa1grjOgCOaxcsWiIHIKCtn8CYG_srr890j_FauaM", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:16:43.362343' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HzjEjSUhBbdpWXRqNyYLqLGq93tpZ5s_v3SNPRe3l5s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (4.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:16:43.363907"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:16:43.364947"], ["id", "38d5ca0a-cdcd-11e4-8f45-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38d4fac6-cdcd-11e4-9498-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$qGRALevNzrIDpLgD36DKVeXEYRywhAyKP32TcWWJ1harBMrnB2SZm"], ["created_at", "2015-03-19 00:16:43.379879"], ["updated_at", "2015-03-19 00:16:43.379879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$I9PhA14pzYjJLu9bYFVhqOVuZEa0kLxqiv.isVLOpYwPQvtUrcagy"], ["created_at", "2015-03-19 00:16:43.384636"], ["updated_at", "2015-03-19 00:16:43.384636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.386353"], ["user_id", "38daba06-cdcd-11e4-9482-705681abff85"], ["created_at", "2015-03-19 00:16:43.387215"], ["updated_at", "2015-03-19 00:16:43.387215"], ["token", "WpuCB0tN2v2isa5bZ-KYtGMY2EaHsvNZinB0l7HkRcI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:43.391113"], ["updated_at", "2015-03-19 00:16:43.391113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38daba06-cdcd-11e4-9482-705681abff85' AND "clubhouse_memberships"."organization_id" = '38dc7102-cdcd-11e4-87c8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38daba06-cdcd-11e4-9482-705681abff85"], ["organization_id", "38dc7102-cdcd-11e4-87c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.395102"], ["updated_at", "2015-03-19 00:16:43.395102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38db74be-cdcd-11e4-b335-705681abff85' AND "clubhouse_memberships"."organization_id" = '38dc7102-cdcd-11e4-87c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38db74be-cdcd-11e4-b335-705681abff85"], ["organization_id", "38dc7102-cdcd-11e4-87c8-705681abff85"], ["created_at", "2015-03-19 00:16:43.398632"], ["updated_at", "2015-03-19 00:16:43.398632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/38dc7102-cdcd-11e4-87c8-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:16:43 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"38dc7102-cdcd-11e4-87c8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:16:43.404457' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WpuCB0tN2v2isa5bZ-KYtGMY2EaHsvNZinB0l7HkRcI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:16:43.406217"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:16:43.407504"], ["id", "38dbe340-cdcd-11e4-a655-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "38dc7102-cdcd-11e4-87c8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38daba06-cdcd-11e4-9482-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$kMplHgZUhwMPN9HxEDoLSuvgXjUcuI4OrjidS/EhEGxnv9A6289uu"], ["created_at", "2015-03-19 00:16:43.420438"], ["updated_at", "2015-03-19 00:16:43.420438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$B3nShYFBxVRay531umt3.ePkk6e1dKCUvw9WdQm3XKp03ie.Nc5GK"], ["created_at", "2015-03-19 00:16:43.426109"], ["updated_at", "2015-03-19 00:16:43.426109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.428264"], ["user_id", "38e0fc54-cdcd-11e4-b012-705681abff85"], ["created_at", "2015-03-19 00:16:43.429229"], ["updated_at", "2015-03-19 00:16:43.429229"], ["token", "dA72ye0dUJnFLLKfvFlxNETrB2j5UpGv3qxVgQUU0BY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:43.433628"], ["updated_at", "2015-03-19 00:16:43.433628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38e0fc54-cdcd-11e4-b012-705681abff85' AND "clubhouse_memberships"."organization_id" = '38e2ef0a-cdcd-11e4-b378-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38e0fc54-cdcd-11e4-b012-705681abff85"], ["organization_id", "38e2ef0a-cdcd-11e4-b378-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.437734"], ["updated_at", "2015-03-19 00:16:43.437734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38e1ce7c-cdcd-11e4-9974-705681abff85' AND "clubhouse_memberships"."organization_id" = '38e2ef0a-cdcd-11e4-b378-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38e1ce7c-cdcd-11e4-9974-705681abff85"], ["organization_id", "38e2ef0a-cdcd-11e4-b378-705681abff85"], ["created_at", "2015-03-19 00:16:43.441531"], ["updated_at", "2015-03-19 00:16:43.441531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 17:16:43 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$6d2ngxY0tG8rGecKfMwvdu0DQNDAI.TSfdVhqfCUDECTnefe1Zc6a"], ["created_at", "2015-03-19 00:16:43.454025"], ["updated_at", "2015-03-19 00:16:43.454025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$/THczTVh4h1ip8h/3K7eVOSR5klUa1u2/K9oWS0mpyHDEgAcPiUbm"], ["created_at", "2015-03-19 00:16:43.460086"], ["updated_at", "2015-03-19 00:16:43.460086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.462159"], ["user_id", "38e61fa4-cdcd-11e4-a144-705681abff85"], ["created_at", "2015-03-19 00:16:43.463078"], ["updated_at", "2015-03-19 00:16:43.463078"], ["token", "6HBx7zKrdQ0oVOryi3t5y7KL4n2op_rjLfF-F_QPTbs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:43.469967"], ["updated_at", "2015-03-19 00:16:43.469967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38e61fa4-cdcd-11e4-a144-705681abff85' AND "clubhouse_memberships"."organization_id" = '38e889f6-cdcd-11e4-a3a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38e61fa4-cdcd-11e4-a144-705681abff85"], ["organization_id", "38e889f6-cdcd-11e4-a3a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.474408"], ["updated_at", "2015-03-19 00:16:43.474408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38e70202-cdcd-11e4-adaa-705681abff85' AND "clubhouse_memberships"."organization_id" = '38e889f6-cdcd-11e4-a3a4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38e70202-cdcd-11e4-adaa-705681abff85"], ["organization_id", "38e889f6-cdcd-11e4-a3a4-705681abff85"], ["created_at", "2015-03-19 00:16:43.477680"], ["updated_at", "2015-03-19 00:16:43.477680"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/38e92636-cdcd-11e4-99e7-705681abff85" for 127.0.0.1 at 2015-03-18 17:16:43 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"38e92636-cdcd-11e4-99e7-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:16:43.484350' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6HBx7zKrdQ0oVOryi3t5y7KL4n2op_rjLfF-F_QPTbs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:16:43.486017"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:16:43.487016"], ["id", "38e773fe-cdcd-11e4-a6e9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "38e92636-cdcd-11e4-99e7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38e61fa4-cdcd-11e4-a144-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38e889f6-cdcd-11e4-a3a4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '38e61fa4-cdcd-11e4-a144-705681abff85' LIMIT 1 [["organization_id", "38e889f6-cdcd-11e4-a3a4-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38e61fa4-cdcd-11e4-a144-705681abff85"]] Completed 200 OK in 14ms (Views: 6.5ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$8Rqe./SZdEtY8erqrHqDHuyZ6XqcIZGJnWWY/Pt3usGupR7f8hjrq"], ["created_at", "2015-03-19 00:16:43.506601"], ["updated_at", "2015-03-19 00:16:43.506601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$E.ZiF7Zn0gaJUPlPlVS/Vef.liQy9NNrUW7blCXZa/JxtXHxVLSuO"], ["created_at", "2015-03-19 00:16:43.511426"], ["updated_at", "2015-03-19 00:16:43.511426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:16:43.513021"], ["user_id", "38ee0fd4-cdcd-11e4-850d-705681abff85"], ["created_at", "2015-03-19 00:16:43.513809"], ["updated_at", "2015-03-19 00:16:43.513809"], ["token", "x3GCiGRIXaZO9rM0SgiW47LZbh1GKRNuKvRX7aeEH_g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:16:43.517523"], ["updated_at", "2015-03-19 00:16:43.517523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38ee0fd4-cdcd-11e4-850d-705681abff85' AND "clubhouse_memberships"."organization_id" = '38efbad2-cdcd-11e4-a5f5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38ee0fd4-cdcd-11e4-850d-705681abff85"], ["organization_id", "38efbad2-cdcd-11e4-a5f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:16:43.521552"], ["updated_at", "2015-03-19 00:16:43.521552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38eecb68-cdcd-11e4-8619-705681abff85' AND "clubhouse_memberships"."organization_id" = '38efbad2-cdcd-11e4-a5f5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38eecb68-cdcd-11e4-8619-705681abff85"], ["organization_id", "38efbad2-cdcd-11e4-a5f5-705681abff85"], ["created_at", "2015-03-19 00:16:43.533248"], ["updated_at", "2015-03-19 00:16:43.533248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 17:16:43 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (18.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$uFXylv95vxDx4UFeqTPOauwBebMYuB95VzolDxnkt0c1NjWPvl4oC"], ["created_at", "2015-03-19 00:18:43.902425"], ["updated_at", "2015-03-19 00:18:43.902425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$bnOWv44q6LLW7Us5DSUq6euQcd4FzvPiLH.xamvLkaUdZZkXi3Z1G"], ["created_at", "2015-03-19 00:18:43.928352"], ["updated_at", "2015-03-19 00:18:43.928352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:43.968354"], ["user_id", "80b3d8e4-cdcd-11e4-8633-705681abff85"], ["created_at", "2015-03-19 00:18:43.974412"], ["updated_at", "2015-03-19 00:18:43.974412"], ["token", "czoQoTFVJF668S39WTd7aZmTvFt87LKtdPhO53TbYfw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:43.984622"], ["updated_at", "2015-03-19 00:18:43.984622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80b3d8e4-cdcd-11e4-8633-705681abff85' AND "clubhouse_memberships"."organization_id" = '80bd953c-cdcd-11e4-b457-705681abff85') LIMIT 1 SQL (6.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80b3d8e4-cdcd-11e4-8633-705681abff85"], ["organization_id", "80bd953c-cdcd-11e4-b457-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:43.996788"], ["updated_at", "2015-03-19 00:18:43.996788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80b4f63e-cdcd-11e4-94a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '80bd953c-cdcd-11e4-b457-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80b4f63e-cdcd-11e4-94a0-705681abff85"], ["organization_id", "80bd953c-cdcd-11e4-b457-705681abff85"], ["created_at", "2015-03-19 00:18:44.006285"], ["updated_at", "2015-03-19 00:18:44.006285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Oxg/M6DqnM5qRYcYpqcgd.vIDyGowqtKr9DNIL.HlGwNk7Wjy4HNW"], ["created_at", "2015-03-19 00:18:44.010971"], ["updated_at", "2015-03-19 00:18:44.010971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.012858"], ["user_id", "80c19146-cdcd-11e4-95c4-705681abff85"], ["created_at", "2015-03-19 00:18:44.013719"], ["updated_at", "2015-03-19 00:18:44.013719"], ["token", "yVu6vb8FV2jWiKILABRnb8V1nFFhm4Gq0t4x1xVl0LY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '80bd953c-cdcd-11e4-b457-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "80bd953c-cdcd-11e4-b457-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.023874"], ["updated_at", "2015-03-19 00:18:44.023874"], ["token", "szcpwk9RlAWFpgWfXOWFKBWGW-v0iHW8GC5KslG9dYs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 2ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$IeNivuOipD/B5sxntGQ4teJqIWr/8yoc8alLgSLnoJFU/tChuG83G"], ["created_at", "2015-03-19 00:18:44.058277"], ["updated_at", "2015-03-19 00:18:44.058277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$XGl4h6fWUeH8c4nrc3V6quEB/FAvCETDKBcTCldE.0d8MEII8Ljd6"], ["created_at", "2015-03-19 00:18:44.062835"], ["updated_at", "2015-03-19 00:18:44.062835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.064343"], ["user_id", "80c8d03c-cdcd-11e4-acf7-705681abff85"], ["created_at", "2015-03-19 00:18:44.065392"], ["updated_at", "2015-03-19 00:18:44.065392"], ["token", "WgZ2r4PltFlzVArHP6eBhNJXtQ-mD535lhEw03TMABc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.069048"], ["updated_at", "2015-03-19 00:18:44.069048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80c8d03c-cdcd-11e4-acf7-705681abff85' AND "clubhouse_memberships"."organization_id" = '80ca6b04-cdcd-11e4-ba2b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80c8d03c-cdcd-11e4-acf7-705681abff85"], ["organization_id", "80ca6b04-cdcd-11e4-ba2b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.072273"], ["updated_at", "2015-03-19 00:18:44.072273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80c97924-cdcd-11e4-a744-705681abff85' AND "clubhouse_memberships"."organization_id" = '80ca6b04-cdcd-11e4-ba2b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80c97924-cdcd-11e4-a744-705681abff85"], ["organization_id", "80ca6b04-cdcd-11e4-ba2b-705681abff85"], ["created_at", "2015-03-19 00:18:44.075600"], ["updated_at", "2015-03-19 00:18:44.075600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$apyYMqzGLupNWUb0gLz27eDQcd1NF1uTeHkjJkuShfXJrdheuVory"], ["created_at", "2015-03-19 00:18:44.080457"], ["updated_at", "2015-03-19 00:18:44.080457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.082156"], ["user_id", "80cc2b88-cdcd-11e4-9765-705681abff85"], ["created_at", "2015-03-19 00:18:44.083301"], ["updated_at", "2015-03-19 00:18:44.083301"], ["token", "A_-HnNADIO_AasJWz8MzG6X6iIHCFs7SKzk8O40n1Uk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '80ca6b04-cdcd-11e4-ba2b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "80ca6b04-cdcd-11e4-ba2b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.087688"], ["updated_at", "2015-03-19 00:18:44.087688"], ["token", "mE46DKTIJLZFFF-v2C7X9rt_EWaP8zvXziFfn3VwQhE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/80ca6b04-cdcd-11e4-ba2b-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"80ca6b04-cdcd-11e4-ba2b-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:18:44.095137' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A_-HnNADIO_AasJWz8MzG6X6iIHCFs7SKzk8O40n1Uk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:18:44.102684"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:18:44.104001"], ["id", "80ccb12a-cdcd-11e4-8c68-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "80ca6b04-cdcd-11e4-ba2b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "80cc2b88-cdcd-11e4-9765-705681abff85"]] Completed 500 Internal Server Error in 38ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$U9kj7fapL6WFinFzZ.9/PugfKpMqhCgsfHDxOteKbcbgbKpOo7Dxm"], ["created_at", "2015-03-19 00:18:44.140564"], ["updated_at", "2015-03-19 00:18:44.140564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$8kf.Qq69MtbEfTKAH6u7B.iTDcQfphhWLn2DKfIGuDZDUGt1vt9Dm"], ["created_at", "2015-03-19 00:18:44.145247"], ["updated_at", "2015-03-19 00:18:44.145247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.146827"], ["user_id", "80d55c44-cdcd-11e4-9100-705681abff85"], ["created_at", "2015-03-19 00:18:44.147612"], ["updated_at", "2015-03-19 00:18:44.147612"], ["token", "OE7DMb3EyOJBgenwl8DN4i1N3Ip9mtiIIeeq_vExrgA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.157128"], ["updated_at", "2015-03-19 00:18:44.157128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80d55c44-cdcd-11e4-9100-705681abff85' AND "clubhouse_memberships"."organization_id" = '80d7e77a-cdcd-11e4-a35a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80d55c44-cdcd-11e4-9100-705681abff85"], ["organization_id", "80d7e77a-cdcd-11e4-a35a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.161065"], ["updated_at", "2015-03-19 00:18:44.161065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80d60c48-cdcd-11e4-82f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '80d7e77a-cdcd-11e4-a35a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80d60c48-cdcd-11e4-82f9-705681abff85"], ["organization_id", "80d7e77a-cdcd-11e4-a35a-705681abff85"], ["created_at", "2015-03-19 00:18:44.164346"], ["updated_at", "2015-03-19 00:18:44.164346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$DUOQcICPpwE6wzKzOHvXgeiUSroi9jh3xJBYgGAOWEYSqfwsmlJ1y"], ["created_at", "2015-03-19 00:18:44.168714"], ["updated_at", "2015-03-19 00:18:44.168714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.170402"], ["user_id", "80d9a1e6-cdcd-11e4-8c12-705681abff85"], ["created_at", "2015-03-19 00:18:44.171315"], ["updated_at", "2015-03-19 00:18:44.171315"], ["token", "gEO1SmHerUB8ek5Jtbwc50eJF2OdH5CA5fuQlc_5m5g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '80d7e77a-cdcd-11e4-a35a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "80d7e77a-cdcd-11e4-a35a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.175425"], ["updated_at", "2015-03-19 00:18:44.175425"], ["token", "fkUj6OxM804NH8rSJxDo-GIZ53lBsHMzlJENPj3l3Tc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/80d7e77a-cdcd-11e4-a35a-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"fkUj6OxM804NH8rSJxDo-GIZ53lBsHMzlJENPj3l3Tc", "organization_id"=>"80d7e77a-cdcd-11e4-a35a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:18:44.180913' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gEO1SmHerUB8ek5Jtbwc50eJF2OdH5CA5fuQlc_5m5g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:18:44.182353"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:18:44.183365"], ["id", "80da1892-cdcd-11e4-a5e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "80d7e77a-cdcd-11e4-a35a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "80d9a1e6-cdcd-11e4-8c12-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$YrQuEBqkGDdK12wPHaG8LO.xIW2xBy3k9Sjm8o9Jj6zxdEReOcUKS"], ["created_at", "2015-03-19 00:18:44.193855"], ["updated_at", "2015-03-19 00:18:44.193855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Hyd/gdX4pg0gvYzpSf4hs.jO6OVyNDfQL/4eZoz3VPAd/TnTJxTGq"], ["created_at", "2015-03-19 00:18:44.198385"], ["updated_at", "2015-03-19 00:18:44.198385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.199874"], ["user_id", "80dd7bd6-cdcd-11e4-8e88-705681abff85"], ["created_at", "2015-03-19 00:18:44.200829"], ["updated_at", "2015-03-19 00:18:44.200829"], ["token", "1nbLtgDpqSaJT6--pW8AHpSSs1APROPNFStoBGTO5wE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.204774"], ["updated_at", "2015-03-19 00:18:44.204774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80dd7bd6-cdcd-11e4-8e88-705681abff85' AND "clubhouse_memberships"."organization_id" = '80df2828-cdcd-11e4-9328-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80dd7bd6-cdcd-11e4-8e88-705681abff85"], ["organization_id", "80df2828-cdcd-11e4-9328-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.208334"], ["updated_at", "2015-03-19 00:18:44.208334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80de2734-cdcd-11e4-b92b-705681abff85' AND "clubhouse_memberships"."organization_id" = '80df2828-cdcd-11e4-9328-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80de2734-cdcd-11e4-b92b-705681abff85"], ["organization_id", "80df2828-cdcd-11e4-9328-705681abff85"], ["created_at", "2015-03-19 00:18:44.211354"], ["updated_at", "2015-03-19 00:18:44.211354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/80df2828-cdcd-11e4-9328-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"80df2828-cdcd-11e4-9328-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:18:44.216054' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1nbLtgDpqSaJT6--pW8AHpSSs1APROPNFStoBGTO5wE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:18:44.217485"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:18:44.218461"], ["id", "80de9926-cdcd-11e4-90d1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "80df2828-cdcd-11e4-9328-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "80dd7bd6-cdcd-11e4-8e88-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$dACKjRWxKBs11mDO5XPVIupYI.sOJtgjl5FFVwNM7PyvVCj9ZaGvu"], ["created_at", "2015-03-19 00:18:44.229034"], ["updated_at", "2015-03-19 00:18:44.229034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$4VCVhFhRmJK/smH/shkkOOu/BKDfMUTrpC1Rji3iBKid/zSiD6hg."], ["created_at", "2015-03-19 00:18:44.233383"], ["updated_at", "2015-03-19 00:18:44.233383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.235226"], ["user_id", "80e2d96e-cdcd-11e4-a0ba-705681abff85"], ["created_at", "2015-03-19 00:18:44.236102"], ["updated_at", "2015-03-19 00:18:44.236102"], ["token", "OIJjW7vtXkUDXV8g7_881jPqwMEXHH9v2VXj5vHYmNk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.239803"], ["updated_at", "2015-03-19 00:18:44.239803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80e2d96e-cdcd-11e4-a0ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '80e47a80-cdcd-11e4-92c2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80e2d96e-cdcd-11e4-a0ba-705681abff85"], ["organization_id", "80e47a80-cdcd-11e4-92c2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.243206"], ["updated_at", "2015-03-19 00:18:44.243206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80e381c0-cdcd-11e4-a050-705681abff85' AND "clubhouse_memberships"."organization_id" = '80e47a80-cdcd-11e4-92c2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80e381c0-cdcd-11e4-a050-705681abff85"], ["organization_id", "80e47a80-cdcd-11e4-92c2-705681abff85"], ["created_at", "2015-03-19 00:18:44.246459"], ["updated_at", "2015-03-19 00:18:44.246459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$jru4H0LFRFUrc3XbcK6Lb.6oRNORSeyAjyJjo5F7dst1Jexm6ZqcG"], ["created_at", "2015-03-19 00:18:44.256173"], ["updated_at", "2015-03-19 00:18:44.256173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$67Zu2KHIguXnO.A4AC/4C.MBn5lBrvIMDKpx.s2b0eCw29iQzt6XK"], ["created_at", "2015-03-19 00:18:44.261040"], ["updated_at", "2015-03-19 00:18:44.261040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.262876"], ["user_id", "80e6fc24-cdcd-11e4-a3bf-705681abff85"], ["created_at", "2015-03-19 00:18:44.263675"], ["updated_at", "2015-03-19 00:18:44.263675"], ["token", "96rFDfhtvgQyGVp41vxFn7HXWmQkUCYzM0t7XPpyjtY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.267394"], ["updated_at", "2015-03-19 00:18:44.267394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80e6fc24-cdcd-11e4-a3bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '80e8b136-cdcd-11e4-89f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80e6fc24-cdcd-11e4-a3bf-705681abff85"], ["organization_id", "80e8b136-cdcd-11e4-89f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.270793"], ["updated_at", "2015-03-19 00:18:44.270793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80e7c140-cdcd-11e4-a573-705681abff85' AND "clubhouse_memberships"."organization_id" = '80e8b136-cdcd-11e4-89f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80e7c140-cdcd-11e4-a573-705681abff85"], ["organization_id", "80e8b136-cdcd-11e4-89f7-705681abff85"], ["created_at", "2015-03-19 00:18:44.274107"], ["updated_at", "2015-03-19 00:18:44.274107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/80e9b766-cdcd-11e4-bb2a-705681abff85" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"80e9b766-cdcd-11e4-bb2a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:18:44.279057' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "96rFDfhtvgQyGVp41vxFn7HXWmQkUCYzM0t7XPpyjtY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:18:44.280615"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:18:44.281623"], ["id", "80e82b58-cdcd-11e4-8567-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "80e9b766-cdcd-11e4-bb2a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "80e6fc24-cdcd-11e4-a3bf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "80e8b136-cdcd-11e4-89f7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '80e6fc24-cdcd-11e4-a3bf-705681abff85' LIMIT 1 [["organization_id", "80e8b136-cdcd-11e4-89f7-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "80e7c140-cdcd-11e4-a573-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "80e9b766-cdcd-11e4-bb2a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$0gmmvRVnCIOWeGl/Pg8fK.zHf1y/jHve.J5opRlaWuC4Pg4KNIYLi"], ["created_at", "2015-03-19 00:18:44.298167"], ["updated_at", "2015-03-19 00:18:44.298167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$uvKTwAiSO8NvQcVke3hCBObZ3yZdPJcX3MhwqkXc2UnEJCQZV4ege"], ["created_at", "2015-03-19 00:18:44.302828"], ["updated_at", "2015-03-19 00:18:44.302828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.304492"], ["user_id", "80ed6730-cdcd-11e4-a7fa-705681abff85"], ["created_at", "2015-03-19 00:18:44.305331"], ["updated_at", "2015-03-19 00:18:44.305331"], ["token", "OyNeW6mInF79IrMsgj0hhVoz2T-kkEeiJMlrqobg5Kk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.316621"], ["updated_at", "2015-03-19 00:18:44.316621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80ed6730-cdcd-11e4-a7fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '80f03794-cdcd-11e4-bd07-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80ed6730-cdcd-11e4-a7fa-705681abff85"], ["organization_id", "80f03794-cdcd-11e4-bd07-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.320183"], ["updated_at", "2015-03-19 00:18:44.320183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80ee1a0e-cdcd-11e4-9d32-705681abff85' AND "clubhouse_memberships"."organization_id" = '80f03794-cdcd-11e4-bd07-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80ee1a0e-cdcd-11e4-9d32-705681abff85"], ["organization_id", "80f03794-cdcd-11e4-bd07-705681abff85"], ["created_at", "2015-03-19 00:18:44.325344"], ["updated_at", "2015-03-19 00:18:44.325344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$3cJWiUFAMocjBinTDkeakuaajiHYzUTTx9aZC.vzZFqmx5fW0CwBG"], ["created_at", "2015-03-19 00:18:44.335629"], ["updated_at", "2015-03-19 00:18:44.335629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$pXUwUTaJXRYa2wxEAnU9xevuW17d1vxM3nykzyx6YmNaY2c1BFJEu"], ["created_at", "2015-03-19 00:18:44.339961"], ["updated_at", "2015-03-19 00:18:44.339961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.341428"], ["user_id", "80f31d92-cdcd-11e4-9ce6-705681abff85"], ["created_at", "2015-03-19 00:18:44.342205"], ["updated_at", "2015-03-19 00:18:44.342205"], ["token", "MvrO0dOMuh_3OdGhFrk2SzUAp7jOJnuimbWjYM5dkdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.345863"], ["updated_at", "2015-03-19 00:18:44.345863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80f31d92-cdcd-11e4-9ce6-705681abff85' AND "clubhouse_memberships"."organization_id" = '80f4a9be-cdcd-11e4-aab4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80f31d92-cdcd-11e4-9ce6-705681abff85"], ["organization_id", "80f4a9be-cdcd-11e4-aab4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.349107"], ["updated_at", "2015-03-19 00:18:44.349107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80f3c1d4-cdcd-11e4-8db7-705681abff85' AND "clubhouse_memberships"."organization_id" = '80f4a9be-cdcd-11e4-aab4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80f3c1d4-cdcd-11e4-8db7-705681abff85"], ["organization_id", "80f4a9be-cdcd-11e4-aab4-705681abff85"], ["created_at", "2015-03-19 00:18:44.352602"], ["updated_at", "2015-03-19 00:18:44.352602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/80f5b0c0-cdcd-11e4-906d-705681abff85" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"80f5b0c0-cdcd-11e4-906d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:18:44.357772' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MvrO0dOMuh_3OdGhFrk2SzUAp7jOJnuimbWjYM5dkdA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:18:44.359979"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:18:44.361591"], ["id", "80f420b6-cdcd-11e4-a27c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "80f5b0c0-cdcd-11e4-906d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "80f31d92-cdcd-11e4-9ce6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "80f4a9be-cdcd-11e4-aab4-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '80f31d92-cdcd-11e4-9ce6-705681abff85' LIMIT 1 [["organization_id", "80f4a9be-cdcd-11e4-aab4-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "80f3c1d4-cdcd-11e4-8db7-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$toWDX1L4dsm/PXVjyuWbIO/kSk7mmpaCtU/45ED8lIRb1Wz.bYkDG"], ["created_at", "2015-03-19 00:18:44.376993"], ["updated_at", "2015-03-19 00:18:44.376993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$cW/tLKxQxzg60NMrRAbYLu4ATQ8ZZrtei47cCAtjMPMOypgYrGMre"], ["created_at", "2015-03-19 00:18:44.381862"], ["updated_at", "2015-03-19 00:18:44.381862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.383665"], ["user_id", "80f97296-cdcd-11e4-8382-705681abff85"], ["created_at", "2015-03-19 00:18:44.384616"], ["updated_at", "2015-03-19 00:18:44.384616"], ["token", "StiFpIUV77JtxQgjdrnnh5P4ND9ebOk4PxeDLDUAdHg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.388462"], ["updated_at", "2015-03-19 00:18:44.388462"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80f97296-cdcd-11e4-8382-705681abff85' AND "clubhouse_memberships"."organization_id" = '80fb2bc2-cdcd-11e4-8eaf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80f97296-cdcd-11e4-8382-705681abff85"], ["organization_id", "80fb2bc2-cdcd-11e4-8eaf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.392207"], ["updated_at", "2015-03-19 00:18:44.392207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80fa28ee-cdcd-11e4-a389-705681abff85' AND "clubhouse_memberships"."organization_id" = '80fb2bc2-cdcd-11e4-8eaf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80fa28ee-cdcd-11e4-a389-705681abff85"], ["organization_id", "80fb2bc2-cdcd-11e4-8eaf-705681abff85"], ["created_at", "2015-03-19 00:18:44.395262"], ["updated_at", "2015-03-19 00:18:44.395262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$VLD.qrxMVJvy37sB5g7MB.G5G69iJ.awZI5PQEuR3T31spY9ogpei"], ["created_at", "2015-03-19 00:18:44.405882"], ["updated_at", "2015-03-19 00:18:44.405882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$RgvIDNVbbTHdUGbOeDTCducOAoM2HsZlsB6xjrOlZBwxXWOl4jxI2"], ["created_at", "2015-03-19 00:18:44.411430"], ["updated_at", "2015-03-19 00:18:44.411430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.413321"], ["user_id", "80fddbe2-cdcd-11e4-a724-705681abff85"], ["created_at", "2015-03-19 00:18:44.414608"], ["updated_at", "2015-03-19 00:18:44.414608"], ["token", "7eV5Ex__OwdQzPzRDUZkgc8T7Arxw-Uc-Dqd2NtPuTw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.418727"], ["updated_at", "2015-03-19 00:18:44.418727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80fddbe2-cdcd-11e4-a724-705681abff85' AND "clubhouse_memberships"."organization_id" = '80ffc9b6-cdcd-11e4-9231-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80fddbe2-cdcd-11e4-a724-705681abff85"], ["organization_id", "80ffc9b6-cdcd-11e4-9231-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.422532"], ["updated_at", "2015-03-19 00:18:44.422532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80feadd8-cdcd-11e4-bf9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '80ffc9b6-cdcd-11e4-9231-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80feadd8-cdcd-11e4-bf9b-705681abff85"], ["organization_id", "80ffc9b6-cdcd-11e4-9231-705681abff85"], ["created_at", "2015-03-19 00:18:44.426866"], ["updated_at", "2015-03-19 00:18:44.426866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:18:44.432501' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7eV5Ex__OwdQzPzRDUZkgc8T7Arxw-Uc-Dqd2NtPuTw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:18:44.433917"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:18:44.435060"], ["id", "80ff3c9e-cdcd-11e4-9c05-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "80fddbe2-cdcd-11e4-a724-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$QT58SW1wCKaP/2ZAi7OGPezsdgCuiQtSEfwddHIK13Efr53QBM1n2"], ["created_at", "2015-03-19 00:18:44.444460"], ["updated_at", "2015-03-19 00:18:44.444460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$U/ghh2OgBv67A2yfO2A9XekgBaz/kP39tSeopoVCCVL1B6M9XalGG"], ["created_at", "2015-03-19 00:18:44.449411"], ["updated_at", "2015-03-19 00:18:44.449411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.451114"], ["user_id", "8103b5da-cdcd-11e4-8b48-705681abff85"], ["created_at", "2015-03-19 00:18:44.452037"], ["updated_at", "2015-03-19 00:18:44.452037"], ["token", "6pXFjfE7ZTO9yXYJwu8NgYnOzEx87SrYR-_Cx5WEnTc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.456070"], ["updated_at", "2015-03-19 00:18:44.456070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8103b5da-cdcd-11e4-8b48-705681abff85' AND "clubhouse_memberships"."organization_id" = '810578de-cdcd-11e4-9529-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8103b5da-cdcd-11e4-8b48-705681abff85"], ["organization_id", "810578de-cdcd-11e4-9529-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.459265"], ["updated_at", "2015-03-19 00:18:44.459265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81047560-cdcd-11e4-a2b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '810578de-cdcd-11e4-9529-705681abff85') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "81047560-cdcd-11e4-a2b4-705681abff85"], ["organization_id", "810578de-cdcd-11e4-9529-705681abff85"], ["created_at", "2015-03-19 00:18:44.462538"], ["updated_at", "2015-03-19 00:18:44.462538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$f/vnIP5XGNmwKNY/xKTwiO0bcpCXtQ/dVYShwymDXdOyjOw3LsAci"], ["created_at", "2015-03-19 00:18:44.472346"], ["updated_at", "2015-03-19 00:18:44.472346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$DkSKNwy2miFOBYOlnoLsXuw0awm4jjGtUblRNrovZj5QZAPZAwJW2"], ["created_at", "2015-03-19 00:18:44.477800"], ["updated_at", "2015-03-19 00:18:44.477800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.479897"], ["user_id", "8107f712-cdcd-11e4-af95-705681abff85"], ["created_at", "2015-03-19 00:18:44.480751"], ["updated_at", "2015-03-19 00:18:44.480751"], ["token", "i0ZSZco_i9yW_fh0cFMDiLYujHY2dA7wym1GA96BPMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.484350"], ["updated_at", "2015-03-19 00:18:44.484350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8107f712-cdcd-11e4-af95-705681abff85' AND "clubhouse_memberships"."organization_id" = '8109cd12-cdcd-11e4-a21e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8107f712-cdcd-11e4-af95-705681abff85"], ["organization_id", "8109cd12-cdcd-11e4-a21e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.487659"], ["updated_at", "2015-03-19 00:18:44.487659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8108db3c-cdcd-11e4-90d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '8109cd12-cdcd-11e4-a21e-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8108db3c-cdcd-11e4-90d7-705681abff85"], ["organization_id", "8109cd12-cdcd-11e4-a21e-705681abff85"], ["created_at", "2015-03-19 00:18:44.490695"], ["updated_at", "2015-03-19 00:18:44.490695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$RqCRLWX0eNRvWFah0sVYKuCADmS3cCW38/KR3IAfowzQVn67H/w0a"], ["created_at", "2015-03-19 00:18:44.497250"], ["updated_at", "2015-03-19 00:18:44.497250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.498997"], ["user_id", "810bca7c-cdcd-11e4-9e89-705681abff85"], ["created_at", "2015-03-19 00:18:44.499782"], ["updated_at", "2015-03-19 00:18:44.499782"], ["token", "2e8IGhweg_xiMSaGu0jPkR9nO9z6T2Tx3PzFk0kFhnU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '8109cd12-cdcd-11e4-a21e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "8109cd12-cdcd-11e4-a21e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.504134"], ["updated_at", "2015-03-19 00:18:44.504134"], ["token", "ROXD8X7Zsa5YKMkQMp3negaZ5c4Jpl9Ljd4eRo2Nc68"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$cPNpzGeHhv0ZUIKk4YGt9e5RnlSln1qWd.iGX1.w9GPohO2bqLuqa"], ["created_at", "2015-03-19 00:18:44.514988"], ["updated_at", "2015-03-19 00:18:44.514988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$oMjjxCOR6ocHS.22QLNthOK9tnWWaBQY2S/45SVTT.GUmkJ40HKEK"], ["created_at", "2015-03-19 00:18:44.519910"], ["updated_at", "2015-03-19 00:18:44.519910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.521609"], ["user_id", "810e7e66-cdcd-11e4-a4e8-705681abff85"], ["created_at", "2015-03-19 00:18:44.522424"], ["updated_at", "2015-03-19 00:18:44.522424"], ["token", "Kgd5doeSx1LF5NN-MlLxEXJGj8zBzJCBi5QQ6QK7kcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.525803"], ["updated_at", "2015-03-19 00:18:44.525803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '810e7e66-cdcd-11e4-a4e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '81101c80-cdcd-11e4-9119-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "810e7e66-cdcd-11e4-a4e8-705681abff85"], ["organization_id", "81101c80-cdcd-11e4-9119-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.529016"], ["updated_at", "2015-03-19 00:18:44.529016"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '810f3c52-cdcd-11e4-8f1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '81101c80-cdcd-11e4-9119-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "810f3c52-cdcd-11e4-8f1f-705681abff85"], ["organization_id", "81101c80-cdcd-11e4-9119-705681abff85"], ["created_at", "2015-03-19 00:18:44.532512"], ["updated_at", "2015-03-19 00:18:44.532512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$e2E9sYGa6b4W6Nt87HEAmOPy2hS7n.8b0D/pC1wQj4KxLHhMV5UIe"], ["created_at", "2015-03-19 00:18:44.537176"], ["updated_at", "2015-03-19 00:18:44.537176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.538810"], ["user_id", "8111ddb8-cdcd-11e4-8e93-705681abff85"], ["created_at", "2015-03-19 00:18:44.539587"], ["updated_at", "2015-03-19 00:18:44.539587"], ["token", "AHj7Ec_8z_MlgTN09PmXX2cmrp4bXnAkioI77XaqRm0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '81101c80-cdcd-11e4-9119-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "81101c80-cdcd-11e4-9119-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.543370"], ["updated_at", "2015-03-19 00:18:44.543370"], ["token", "u7jthZ1l2127MDRa_cI9Lz6i4MB21XuVCbtLINxvIj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:18:44.548804' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AHj7Ec_8z_MlgTN09PmXX2cmrp4bXnAkioI77XaqRm0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:18:44.550291"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:18:44.551256"], ["id", "8112400a-cdcd-11e4-bf8e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8111ddb8-cdcd-11e4-8e93-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$45GpwmxlCyRClGX74AOjYeSjnrmDk6UBzHoj9oo8vP05u4FIfrVQ6"], ["created_at", "2015-03-19 00:18:44.565829"], ["updated_at", "2015-03-19 00:18:44.565829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$cXsR229sQJllxjW12ye4ROrG3Sk8i2w.XBgMs1OQT3RKXDMfv2vkS"], ["created_at", "2015-03-19 00:18:44.571143"], ["updated_at", "2015-03-19 00:18:44.571143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.572837"], ["user_id", "81163caa-cdcd-11e4-b556-705681abff85"], ["created_at", "2015-03-19 00:18:44.573637"], ["updated_at", "2015-03-19 00:18:44.573637"], ["token", "CS4nWYcLqhZ7RxZtitYAd64RgM8De8gpCngfusMA7Lo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.577008"], ["updated_at", "2015-03-19 00:18:44.577008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81163caa-cdcd-11e4-b556-705681abff85' AND "clubhouse_memberships"."organization_id" = '8117f18a-cdcd-11e4-a05d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "81163caa-cdcd-11e4-b556-705681abff85"], ["organization_id", "8117f18a-cdcd-11e4-a05d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.580514"], ["updated_at", "2015-03-19 00:18:44.580514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81170bbc-cdcd-11e4-9a22-705681abff85' AND "clubhouse_memberships"."organization_id" = '8117f18a-cdcd-11e4-a05d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "81170bbc-cdcd-11e4-9a22-705681abff85"], ["organization_id", "8117f18a-cdcd-11e4-a05d-705681abff85"], ["created_at", "2015-03-19 00:18:44.583793"], ["updated_at", "2015-03-19 00:18:44.583793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$QNI2acm8ns9OJwUwY8KI3OgeY0TS7RzyJw0B2EnxOIFqKV5rH1fDe"], ["created_at", "2015-03-19 00:18:44.589101"], ["updated_at", "2015-03-19 00:18:44.589101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.590711"], ["user_id", "8119c8d4-cdcd-11e4-bf83-705681abff85"], ["created_at", "2015-03-19 00:18:44.591491"], ["updated_at", "2015-03-19 00:18:44.591491"], ["token", "spDdd6-AyFdB1Sbo_AD2Zek9UeOwLsXinYeugJ9KoaU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '8117f18a-cdcd-11e4-a05d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "8117f18a-cdcd-11e4-a05d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.595706"], ["updated_at", "2015-03-19 00:18:44.595706"], ["token", "MJpP_e5kUYWn9GIt5wvo6zIORZHTX46Hw3udnqAKH8w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"MJpP_e5kUYWn9GIt5wvo6zIORZHTX46Hw3udnqAKH8w", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:18:44.600835' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "spDdd6-AyFdB1Sbo_AD2Zek9UeOwLsXinYeugJ9KoaU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:18:44.602553"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:18:44.603563"], ["id", "811a2a2c-cdcd-11e4-b729-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8119c8d4-cdcd-11e4-bf83-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$08LfqIG8Qnx.R7HtZ00O7eCf1XHMtcPqYaSgQnq7L4WU1.T91mH7S"], ["created_at", "2015-03-19 00:18:44.613292"], ["updated_at", "2015-03-19 00:18:44.613292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$k8p8RC5YNC0ZnWJNOl6ZHOLZlYSHf2fOqud8CfZ4H3YL1SwaKlGMa"], ["created_at", "2015-03-19 00:18:44.617793"], ["updated_at", "2015-03-19 00:18:44.617793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.619698"], ["user_id", "811d78e4-cdcd-11e4-95ac-705681abff85"], ["created_at", "2015-03-19 00:18:44.620678"], ["updated_at", "2015-03-19 00:18:44.620678"], ["token", "ksUdaUg9hiPAvpWaZ5_dIbqNG6UszVBCjza7zI04slM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.624580"], ["updated_at", "2015-03-19 00:18:44.624580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '811d78e4-cdcd-11e4-95ac-705681abff85' AND "clubhouse_memberships"."organization_id" = '811f32f6-cdcd-11e4-826e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "811d78e4-cdcd-11e4-95ac-705681abff85"], ["organization_id", "811f32f6-cdcd-11e4-826e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.628074"], ["updated_at", "2015-03-19 00:18:44.628074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '811e2e9c-cdcd-11e4-9bcd-705681abff85' AND "clubhouse_memberships"."organization_id" = '811f32f6-cdcd-11e4-826e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "811e2e9c-cdcd-11e4-9bcd-705681abff85"], ["organization_id", "811f32f6-cdcd-11e4-826e-705681abff85"], ["created_at", "2015-03-19 00:18:44.631322"], ["updated_at", "2015-03-19 00:18:44.631322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/811fbcb2-cdcd-11e4-89a1-705681abff85" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"811fbcb2-cdcd-11e4-89a1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:18:44.635944' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ksUdaUg9hiPAvpWaZ5_dIbqNG6UszVBCjza7zI04slM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:18:44.637550"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:18:44.638580"], ["id", "811ea426-cdcd-11e4-b96d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "811fbcb2-cdcd-11e4-89a1-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "811d78e4-cdcd-11e4-95ac-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "811f32f6-cdcd-11e4-826e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '811d78e4-cdcd-11e4-95ac-705681abff85' LIMIT 1 [["organization_id", "811f32f6-cdcd-11e4-826e-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "811d78e4-cdcd-11e4-95ac-705681abff85"]] Completed 200 OK in 14ms (Views: 6.1ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (100.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$tGE8mr7R6JIP90z9KI2K0O.ycCeWjWz/eyglXLVbmosokOmOlZTLW"], ["created_at", "2015-03-19 00:18:44.657144"], ["updated_at", "2015-03-19 00:18:44.657144"]]  (14.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$6ec4ER2Uvu/P3s1cHR9sWuG30Qc0nAJYw0mxmDxyQGRFcMjUC6ovS"], ["created_at", "2015-03-19 00:18:44.788851"], ["updated_at", "2015-03-19 00:18:44.788851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:18:44.791231"], ["user_id", "81242a90-cdcd-11e4-99bd-705681abff85"], ["created_at", "2015-03-19 00:18:44.792178"], ["updated_at", "2015-03-19 00:18:44.792178"], ["token", "_mi68d2aBQ6VPQ6C8xOQqfBLexfIlwN3-329i-3HX78"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:18:44.796034"], ["updated_at", "2015-03-19 00:18:44.796034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81242a90-cdcd-11e4-99bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '81395c26-cdcd-11e4-92c4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "81242a90-cdcd-11e4-99bd-705681abff85"], ["organization_id", "81395c26-cdcd-11e4-92c4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:18:44.806540"], ["updated_at", "2015-03-19 00:18:44.806540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '813859a2-cdcd-11e4-a9aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '81395c26-cdcd-11e4-92c4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "813859a2-cdcd-11e4-a9aa-705681abff85"], ["organization_id", "81395c26-cdcd-11e4-92c4-705681abff85"], ["created_at", "2015-03-19 00:18:44.810601"], ["updated_at", "2015-03-19 00:18:44.810601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 17:18:44 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (21.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$jdIYpGVfQuESyGJwcfSUBOzbNeWHEP3fbcSR3po3iWM.iE8fkgDc."], ["created_at", "2015-03-19 00:19:51.969781"], ["updated_at", "2015-03-19 00:19:51.969781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$e4PuCBACD2sndZZPS/Qkzea1Vs0i.XsT5UisnMZS9jEEk.q5gCbOq"], ["created_at", "2015-03-19 00:19:51.997101"], ["updated_at", "2015-03-19 00:19:51.997101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.037973"], ["user_id", "a9468b9e-cdcd-11e4-b6bd-705681abff85"], ["created_at", "2015-03-19 00:19:52.044954"], ["updated_at", "2015-03-19 00:19:52.044954"], ["token", "LqmqR8gV9plX6OQvAell4_87_CuZMAILSw7WjYZad6I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.054420"], ["updated_at", "2015-03-19 00:19:52.054420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9468b9e-cdcd-11e4-b6bd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9503496-cdcd-11e4-8b76-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9468b9e-cdcd-11e4-b6bd-705681abff85"], ["organization_id", "a9503496-cdcd-11e4-8b76-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.066006"], ["updated_at", "2015-03-19 00:19:52.066006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9477284-cdcd-11e4-8e7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9503496-cdcd-11e4-8b76-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9477284-cdcd-11e4-8e7c-705681abff85"], ["organization_id", "a9503496-cdcd-11e4-8b76-705681abff85"], ["created_at", "2015-03-19 00:19:52.069899"], ["updated_at", "2015-03-19 00:19:52.069899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:19:52.097178' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LqmqR8gV9plX6OQvAell4_87_CuZMAILSw7WjYZad6I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:19:52.104986"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:19:52.106129"], ["id", "a94ed3a8-cdcd-11e4-bdbc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9468b9e-cdcd-11e4-b6bd-705681abff85"]] Completed 500 Internal Server Error in 29ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$WOfFuapCQB5IXvQw5ZWczeYGa55UI.IHHpymhh68a2lR.QpYP4Dly"], ["created_at", "2015-03-19 00:19:52.131593"], ["updated_at", "2015-03-19 00:19:52.131593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (9.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$FOqwgBL4HHVWVManeaYyBOm1mteFuxeSrI.f34Rx3iY5qpse6MmZS"], ["created_at", "2015-03-19 00:19:52.136020"], ["updated_at", "2015-03-19 00:19:52.136020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.147549"], ["user_id", "a95bf5a6-cdcd-11e4-ae36-705681abff85"], ["created_at", "2015-03-19 00:19:52.148355"], ["updated_at", "2015-03-19 00:19:52.148355"], ["token", "8qJupxAlBhvcpmnlpi7fGh9f1740o5BCp10gJ4xfsug"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.152217"], ["updated_at", "2015-03-19 00:19:52.152217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a95bf5a6-cdcd-11e4-ae36-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a95f1ab0-cdcd-11e4-b881-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a95bf5a6-cdcd-11e4-ae36-705681abff85"], ["organization_id", "a95f1ab0-cdcd-11e4-b881-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.156291"], ["updated_at", "2015-03-19 00:19:52.156291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a95cab9a-cdcd-11e4-a1b3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a95f1ab0-cdcd-11e4-b881-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a95cab9a-cdcd-11e4-a1b3-705681abff85"], ["organization_id", "a95f1ab0-cdcd-11e4-b881-705681abff85"], ["created_at", "2015-03-19 00:19:52.160400"], ["updated_at", "2015-03-19 00:19:52.160400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$DppXlNQ3rR9axdnP/ADdIO0aiHWWzaoO9w0ee/UH8.QWfqyVNdKZ."], ["created_at", "2015-03-19 00:19:52.171980"], ["updated_at", "2015-03-19 00:19:52.171980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$yHXGwAHAEy4DNdm4Dc8K6en13SNKK.veCR5Omkn1cPofN56Fl4jrC"], ["created_at", "2015-03-19 00:19:52.176486"], ["updated_at", "2015-03-19 00:19:52.176486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.178031"], ["user_id", "a9621fbc-cdcd-11e4-bbe1-705681abff85"], ["created_at", "2015-03-19 00:19:52.178799"], ["updated_at", "2015-03-19 00:19:52.178799"], ["token", "xHwOK7lYX21QB7CJMH6apcKaktLRD40cUDtwqzRnhRQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.183508"], ["updated_at", "2015-03-19 00:19:52.183508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9621fbc-cdcd-11e4-bbe1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a963e068-cdcd-11e4-b6e8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9621fbc-cdcd-11e4-bbe1-705681abff85"], ["organization_id", "a963e068-cdcd-11e4-b6e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.186921"], ["updated_at", "2015-03-19 00:19:52.186921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a962cb7e-cdcd-11e4-abca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a963e068-cdcd-11e4-b6e8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a962cb7e-cdcd-11e4-abca-705681abff85"], ["organization_id", "a963e068-cdcd-11e4-b6e8-705681abff85"], ["created_at", "2015-03-19 00:19:52.190106"], ["updated_at", "2015-03-19 00:19:52.190106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a964dd60-cdcd-11e4-b686-705681abff85" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"a964dd60-cdcd-11e4-b686-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:19:52.195092' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xHwOK7lYX21QB7CJMH6apcKaktLRD40cUDtwqzRnhRQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:19:52.196617"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:19:52.197644"], ["id", "a96334d8-cdcd-11e4-8224-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "a964dd60-cdcd-11e4-b686-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9621fbc-cdcd-11e4-bbe1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a963e068-cdcd-11e4-b6e8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9621fbc-cdcd-11e4-bbe1-705681abff85' LIMIT 1 [["organization_id", "a963e068-cdcd-11e4-b6e8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a962cb7e-cdcd-11e4-abca-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$T6Audqh1QMr9w7r1.qtvmO6rIKfZdmt7sqHEMOU8C3MTz/tKxhWu."], ["created_at", "2015-03-19 00:19:52.210619"], ["updated_at", "2015-03-19 00:19:52.210619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$7LGNOBhFV300TpCIBDA/MevKCSGUbZZfai/0vSQ8bU7wtqiLu4mvK"], ["created_at", "2015-03-19 00:19:52.215015"], ["updated_at", "2015-03-19 00:19:52.215015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.217097"], ["user_id", "a968027e-cdcd-11e4-930c-705681abff85"], ["created_at", "2015-03-19 00:19:52.218028"], ["updated_at", "2015-03-19 00:19:52.218028"], ["token", "_NuzaZWK3Y10R1t3x9eFJm-7Pyie_2tmHQAC3Olb5zc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.221628"], ["updated_at", "2015-03-19 00:19:52.221628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a968027e-cdcd-11e4-930c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a969ae62-cdcd-11e4-b310-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a968027e-cdcd-11e4-930c-705681abff85"], ["organization_id", "a969ae62-cdcd-11e4-b310-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.224849"], ["updated_at", "2015-03-19 00:19:52.224849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a968ad32-cdcd-11e4-a700-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a969ae62-cdcd-11e4-b310-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a968ad32-cdcd-11e4-a700-705681abff85"], ["organization_id", "a969ae62-cdcd-11e4-b310-705681abff85"], ["created_at", "2015-03-19 00:19:52.228134"], ["updated_at", "2015-03-19 00:19:52.228134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$4D4z96UjQmN63YwkJWREgunBf6..du.fMZf9IY2XoFB1Yeh.Iglii"], ["created_at", "2015-03-19 00:19:52.240672"], ["updated_at", "2015-03-19 00:19:52.240672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$t428f5cRQNIhY.WkW3eSEeP.RpM7Zi9uu73WPlhEgXk5cGcbnWIRe"], ["created_at", "2015-03-19 00:19:52.245790"], ["updated_at", "2015-03-19 00:19:52.245790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.247949"], ["user_id", "a96c9d52-cdcd-11e4-b3fb-705681abff85"], ["created_at", "2015-03-19 00:19:52.248862"], ["updated_at", "2015-03-19 00:19:52.248862"], ["token", "QaymuJX63go2DVCN7-Lss6UhnzUJsrgAOUdHNGOv9lU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.252894"], ["updated_at", "2015-03-19 00:19:52.252894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a96c9d52-cdcd-11e4-b3fb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a96e7ae6-cdcd-11e4-8108-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a96c9d52-cdcd-11e4-b3fb-705681abff85"], ["organization_id", "a96e7ae6-cdcd-11e4-8108-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.256646"], ["updated_at", "2015-03-19 00:19:52.256646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a96d6886-cdcd-11e4-ba45-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a96e7ae6-cdcd-11e4-8108-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a96d6886-cdcd-11e4-ba45-705681abff85"], ["organization_id", "a96e7ae6-cdcd-11e4-8108-705681abff85"], ["created_at", "2015-03-19 00:19:52.260485"], ["updated_at", "2015-03-19 00:19:52.260485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$QJubr6L51WpsqHWg2OBYMuGFjsECF.LfZtXYnVSONh2M5qeg.L8Xa"], ["created_at", "2015-03-19 00:19:52.265548"], ["updated_at", "2015-03-19 00:19:52.265548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.267324"], ["user_id", "a97066ee-cdcd-11e4-b396-705681abff85"], ["created_at", "2015-03-19 00:19:52.268091"], ["updated_at", "2015-03-19 00:19:52.268091"], ["token", "WML9ZgMDE6TlJz-Wmhem8d4K0F4jIJ6uqxL7mN6nU-0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a96e7ae6-cdcd-11e4-8108-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a96e7ae6-cdcd-11e4-8108-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.279884"], ["updated_at", "2015-03-19 00:19:52.279884"], ["token", "skBFg5MTUeu4FymTzUPGjNI9CelYm9rFSygOV3i3P2E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Cy8KqwkNoBclWkxrXIls1ennY4GMrJmFen8nslKExck6SYgCboOGO"], ["created_at", "2015-03-19 00:19:52.292010"], ["updated_at", "2015-03-19 00:19:52.292010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$os6hsGOoXWu5wO6BUrQXjefwv7I6HBmzWtyGoPbs6r0l9kaPjzJyK"], ["created_at", "2015-03-19 00:19:52.296265"], ["updated_at", "2015-03-19 00:19:52.296265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.298662"], ["user_id", "a9746d70-cdcd-11e4-8fca-705681abff85"], ["created_at", "2015-03-19 00:19:52.300252"], ["updated_at", "2015-03-19 00:19:52.300252"], ["token", "kgqMoUC7utunuqUMS9bo519JTfD_RHNxG4Z5JC61Fg8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.304613"], ["updated_at", "2015-03-19 00:19:52.304613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9746d70-cdcd-11e4-8fca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9765900-cdcd-11e4-b056-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9746d70-cdcd-11e4-8fca-705681abff85"], ["organization_id", "a9765900-cdcd-11e4-b056-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.308114"], ["updated_at", "2015-03-19 00:19:52.308114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a97511f8-cdcd-11e4-a643-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9765900-cdcd-11e4-b056-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a97511f8-cdcd-11e4-a643-705681abff85"], ["organization_id", "a9765900-cdcd-11e4-b056-705681abff85"], ["created_at", "2015-03-19 00:19:52.311326"], ["updated_at", "2015-03-19 00:19:52.311326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ELOkD43NDdeKvbBZACkqX.zzf90TEe1sTrby3JPyy1dkLu4jaSg9y"], ["created_at", "2015-03-19 00:19:52.315796"], ["updated_at", "2015-03-19 00:19:52.315796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.319354"], ["user_id", "a9780eb2-cdcd-11e4-9393-705681abff85"], ["created_at", "2015-03-19 00:19:52.320193"], ["updated_at", "2015-03-19 00:19:52.320193"], ["token", "qpGOLk0A0vaOFvKyPAWgOFHq30rc9JP7vhXxUCESXw4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a9765900-cdcd-11e4-b056-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a9765900-cdcd-11e4-b056-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.324655"], ["updated_at", "2015-03-19 00:19:52.324655"], ["token", "PLPJsyKgAm39Vdebx38RoHcvJjdDb-_XpVIee5fOFl4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:19:52.331519' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qpGOLk0A0vaOFvKyPAWgOFHq30rc9JP7vhXxUCESXw4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:19:52.333220"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:19:52.334298"], ["id", "a978c3b6-cdcd-11e4-ab09-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9780eb2-cdcd-11e4-9393-705681abff85"]] Completed 500 Internal Server Error in 19ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$kJ4/S1HROfQqdS4Huxf8F.OUJ9sd5pwH2oc4DI2g2bM/XgLCAeEt6"], ["created_at", "2015-03-19 00:19:52.358281"], ["updated_at", "2015-03-19 00:19:52.358281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$IsfGfXL9.qyQu3UhbzNwXuS1qb/T4mIjBLsNiGx.zuJSp11rd/8Aq"], ["created_at", "2015-03-19 00:19:52.363069"], ["updated_at", "2015-03-19 00:19:52.363069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.364896"], ["user_id", "a97e8d96-cdcd-11e4-a18e-705681abff85"], ["created_at", "2015-03-19 00:19:52.365659"], ["updated_at", "2015-03-19 00:19:52.365659"], ["token", "aSQCoBCcRl8XGiIL5k9wJ40ZrjVavb9O4W5EZHjrgik"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.369280"], ["updated_at", "2015-03-19 00:19:52.369280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a97e8d96-cdcd-11e4-a18e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9803790-cdcd-11e4-91ef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a97e8d96-cdcd-11e4-a18e-705681abff85"], ["organization_id", "a9803790-cdcd-11e4-91ef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.372959"], ["updated_at", "2015-03-19 00:19:52.372959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a97f45e2-cdcd-11e4-8df4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9803790-cdcd-11e4-91ef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a97f45e2-cdcd-11e4-8df4-705681abff85"], ["organization_id", "a9803790-cdcd-11e4-91ef-705681abff85"], ["created_at", "2015-03-19 00:19:52.376593"], ["updated_at", "2015-03-19 00:19:52.376593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$twNVxXGa1FRiX0jpfdmDRu4KtSvPCv5.ww4P6z.dcKwwg2A.0O8Yq"], ["created_at", "2015-03-19 00:19:52.381765"], ["updated_at", "2015-03-19 00:19:52.381765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.383493"], ["user_id", "a9822168-cdcd-11e4-80ef-705681abff85"], ["created_at", "2015-03-19 00:19:52.384296"], ["updated_at", "2015-03-19 00:19:52.384296"], ["token", "F-aj4fyKXcHGcKkyD-_2A3juArdSDHbFQacbB-khbzk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a9803790-cdcd-11e4-91ef-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a9803790-cdcd-11e4-91ef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.388776"], ["updated_at", "2015-03-19 00:19:52.388776"], ["token", "JYicKvtzGAwBt-6R3O6aHbpVtWJJCU-1hA2t5A6XSzc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"JYicKvtzGAwBt-6R3O6aHbpVtWJJCU-1hA2t5A6XSzc", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:19:52.402494' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "F-aj4fyKXcHGcKkyD-_2A3juArdSDHbFQacbB-khbzk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:19:52.403922"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:19:52.404893"], ["id", "a9828ad6-cdcd-11e4-8580-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9822168-cdcd-11e4-80ef-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$CEHWdaEww/SDqJAjjws4nu7rbbL2ndtw5l502pk4iiZBsLr4SV6om"], ["created_at", "2015-03-19 00:19:52.415280"], ["updated_at", "2015-03-19 00:19:52.415280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (2.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$wdWblTZ6TvONCy4nUQV5NeA7Jx6.h8w3nP/UlN5MDwYIy3AbTWr.C"], ["created_at", "2015-03-19 00:19:52.419531"], ["updated_at", "2015-03-19 00:19:52.419531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.423858"], ["user_id", "a9873f2c-cdcd-11e4-b3ed-705681abff85"], ["created_at", "2015-03-19 00:19:52.424706"], ["updated_at", "2015-03-19 00:19:52.424706"], ["token", "Hgwy_mnlUeEICyNLUrx6YWq57NosoHw6oS3C7jIReoQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.428647"], ["updated_at", "2015-03-19 00:19:52.428647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9873f2c-cdcd-11e4-b3ed-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a98945e2-cdcd-11e4-ab6d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9873f2c-cdcd-11e4-b3ed-705681abff85"], ["organization_id", "a98945e2-cdcd-11e4-ab6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.432039"], ["updated_at", "2015-03-19 00:19:52.432039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a987e102-cdcd-11e4-8104-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a98945e2-cdcd-11e4-ab6d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a987e102-cdcd-11e4-8104-705681abff85"], ["organization_id", "a98945e2-cdcd-11e4-ab6d-705681abff85"], ["created_at", "2015-03-19 00:19:52.435077"], ["updated_at", "2015-03-19 00:19:52.435077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$//iVLSUBI5HFyNzoUBbR6eAKY3ifiRIZLqRWeok0MEAu7g1iX8Vma"], ["created_at", "2015-03-19 00:19:52.439330"], ["updated_at", "2015-03-19 00:19:52.439330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.440817"], ["user_id", "a98ae67c-cdcd-11e4-b26a-705681abff85"], ["created_at", "2015-03-19 00:19:52.441546"], ["updated_at", "2015-03-19 00:19:52.441546"], ["token", "IxhcHYlSc1UlMlYihMr2j_mD8K_lELgxFPQv8Ogpi94"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a98945e2-cdcd-11e4-ab6d-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a98945e2-cdcd-11e4-ab6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.445395"], ["updated_at", "2015-03-19 00:19:52.445395"], ["token", "eF5Xo-j5lMVWbwGdQb02motQ2ms-IuqMplxkii_KNRs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$faMcY37gI024bNP1hrKf/.mzlJ98KZ4bOmfV8B12JQ2Ae3Q7.Usv6"], ["created_at", "2015-03-19 00:19:52.459858"], ["updated_at", "2015-03-19 00:19:52.459858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$thi6zhnLTLB8SxW4d5BkCetuV/62/Ou9wuLmvp6LYEAmvWg6pG9My"], ["created_at", "2015-03-19 00:19:52.465769"], ["updated_at", "2015-03-19 00:19:52.465769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.467820"], ["user_id", "a98e0ee2-cdcd-11e4-bdac-705681abff85"], ["created_at", "2015-03-19 00:19:52.468670"], ["updated_at", "2015-03-19 00:19:52.468670"], ["token", "HdIehNJ5mBiQSxelqvvBQXGFi3bG1UIzjmZP0NZk1jk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.473046"], ["updated_at", "2015-03-19 00:19:52.473046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a98e0ee2-cdcd-11e4-bdac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9900d50-cdcd-11e4-8a0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a98e0ee2-cdcd-11e4-bdac-705681abff85"], ["organization_id", "a9900d50-cdcd-11e4-8a0f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.476573"], ["updated_at", "2015-03-19 00:19:52.476573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a98efdc0-cdcd-11e4-91b2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9900d50-cdcd-11e4-8a0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a98efdc0-cdcd-11e4-91b2-705681abff85"], ["organization_id", "a9900d50-cdcd-11e4-8a0f-705681abff85"], ["created_at", "2015-03-19 00:19:52.479910"], ["updated_at", "2015-03-19 00:19:52.479910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$Dk7mcLCPiPa3ZQbwk5r2duVYkhG6wVQumVnre/CI8rxsOLpw44Oa6"], ["created_at", "2015-03-19 00:19:52.484213"], ["updated_at", "2015-03-19 00:19:52.484213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.485719"], ["user_id", "a991beac-cdcd-11e4-909d-705681abff85"], ["created_at", "2015-03-19 00:19:52.486461"], ["updated_at", "2015-03-19 00:19:52.486461"], ["token", "H4P-dfdzFJ7RTZSfgAJNfrtDRw3F_R6oBjsDa6SCNCM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a9900d50-cdcd-11e4-8a0f-705681abff85') LIMIT 1 SQL (7.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a9900d50-cdcd-11e4-8a0f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.490235"], ["updated_at", "2015-03-19 00:19:52.490235"], ["token", "5PdQz8iX_1YBBPSB-ltvjcXNOQ3U0on794fxNiqkQ-M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a9900d50-cdcd-11e4-8a0f-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"a9900d50-cdcd-11e4-8a0f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:19:52.503103' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "H4P-dfdzFJ7RTZSfgAJNfrtDRw3F_R6oBjsDa6SCNCM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:19:52.504713"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:19:52.505670"], ["id", "a9921dca-cdcd-11e4-b0c2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a9900d50-cdcd-11e4-8a0f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a991beac-cdcd-11e4-909d-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$f91iB05ddFdhLMMNpABjtee7dRiRum.JKt245jajBIOsyvgqbsJEe"], ["created_at", "2015-03-19 00:19:52.519027"], ["updated_at", "2015-03-19 00:19:52.519027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$NAY6fx7VwJj6DvT9BvoPSuc9HmVhS4H4Xix0oW.nOzUaCX//9HsVW"], ["created_at", "2015-03-19 00:19:52.523327"], ["updated_at", "2015-03-19 00:19:52.523327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.524901"], ["user_id", "a9971244-cdcd-11e4-89ce-705681abff85"], ["created_at", "2015-03-19 00:19:52.525661"], ["updated_at", "2015-03-19 00:19:52.525661"], ["token", "nNUlQT9mj-iZouil_Tq0tpB7qv4o5usz_dLUXLmWeyw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.529370"], ["updated_at", "2015-03-19 00:19:52.529370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9971244-cdcd-11e4-89ce-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a998a9b0-cdcd-11e4-abc6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9971244-cdcd-11e4-89ce-705681abff85"], ["organization_id", "a998a9b0-cdcd-11e4-abc6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.532814"], ["updated_at", "2015-03-19 00:19:52.532814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a997b960-cdcd-11e4-af6c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a998a9b0-cdcd-11e4-abc6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a997b960-cdcd-11e4-af6c-705681abff85"], ["organization_id", "a998a9b0-cdcd-11e4-abc6-705681abff85"], ["created_at", "2015-03-19 00:19:52.535896"], ["updated_at", "2015-03-19 00:19:52.535896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$VYWDdtqk1vcmrFc6y8UlCub2Th3OVIhmJdENM3iF/uXcDjlyRyY6K"], ["created_at", "2015-03-19 00:19:52.540244"], ["updated_at", "2015-03-19 00:19:52.540244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.541934"], ["user_id", "a99a4f9a-cdcd-11e4-90c9-705681abff85"], ["created_at", "2015-03-19 00:19:52.542711"], ["updated_at", "2015-03-19 00:19:52.542711"], ["token", "btnbQDXvtilASs7g2S4G-AJgtpAWJXVBy20Xs0UARIo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a998a9b0-cdcd-11e4-abc6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a998a9b0-cdcd-11e4-abc6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.546448"], ["updated_at", "2015-03-19 00:19:52.546448"], ["token", "pvBQQCtYQAYQvrx2uENGH07Kkbdl97xCHqyqB2ZT3Pk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a998a9b0-cdcd-11e4-abc6-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"pvBQQCtYQAYQvrx2uENGH07Kkbdl97xCHqyqB2ZT3Pk", "organization_id"=>"a998a9b0-cdcd-11e4-abc6-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:19:52.553412' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "btnbQDXvtilASs7g2S4G-AJgtpAWJXVBy20Xs0UARIo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:19:52.555086"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:19:52.556085"], ["id", "a99ab49e-cdcd-11e4-a4cf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a998a9b0-cdcd-11e4-abc6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a99a4f9a-cdcd-11e4-90c9-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$gdY5wpy2sZX99YBZvZA76uMC1ZGkVuAXD2ufDMYRgRSLb40DN5g7G"], ["created_at", "2015-03-19 00:19:52.565793"], ["updated_at", "2015-03-19 00:19:52.565793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$AymokH3Xfco8qppHia1OteIQnItFaV0ZfaaURbpOm62cfjRPYMxOm"], ["created_at", "2015-03-19 00:19:52.570959"], ["updated_at", "2015-03-19 00:19:52.570959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.572636"], ["user_id", "a99e38d0-cdcd-11e4-bcd1-705681abff85"], ["created_at", "2015-03-19 00:19:52.573640"], ["updated_at", "2015-03-19 00:19:52.573640"], ["token", "Y7Ye7f1IC_XvimlS1uhOTeFyiR3eX4OudzE5_jyQHiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.577287"], ["updated_at", "2015-03-19 00:19:52.577287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a99e38d0-cdcd-11e4-bcd1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a99ff5d0-cdcd-11e4-8c32-705681abff85') LIMIT 1 SQL (6.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a99e38d0-cdcd-11e4-bcd1-705681abff85"], ["organization_id", "a99ff5d0-cdcd-11e4-8c32-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.580858"], ["updated_at", "2015-03-19 00:19:52.580858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a99efc84-cdcd-11e4-9778-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a99ff5d0-cdcd-11e4-8c32-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a99efc84-cdcd-11e4-9778-705681abff85"], ["organization_id", "a99ff5d0-cdcd-11e4-8c32-705681abff85"], ["created_at", "2015-03-19 00:19:52.590507"], ["updated_at", "2015-03-19 00:19:52.590507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/a9a080d6-cdcd-11e4-b0df-705681abff85" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"a9a080d6-cdcd-11e4-b0df-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:19:52.595384' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y7Ye7f1IC_XvimlS1uhOTeFyiR3eX4OudzE5_jyQHiY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:19:52.596804"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:19:52.597823"], ["id", "a99f7006-cdcd-11e4-bcef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "a9a080d6-cdcd-11e4-b0df-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a99e38d0-cdcd-11e4-bcd1-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a99ff5d0-cdcd-11e4-8c32-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a99e38d0-cdcd-11e4-bcd1-705681abff85' LIMIT 1 [["organization_id", "a99ff5d0-cdcd-11e4-8c32-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a99e38d0-cdcd-11e4-bcd1-705681abff85"]] Completed 200 OK in 13ms (Views: 5.9ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$9J6n5eEBlaEdYpRRkX/BhueNdAyRmMCgcoERhjkcRapFkmFLSlulq"], ["created_at", "2015-03-19 00:19:52.618129"], ["updated_at", "2015-03-19 00:19:52.618129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$Mq7ccgC7uzdQbAorp7q.MeUUsYtHOvCwNPBhVRV1O2m/XtMnjXMYe"], ["created_at", "2015-03-19 00:19:52.623077"], ["updated_at", "2015-03-19 00:19:52.623077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.624607"], ["user_id", "a9a6420a-cdcd-11e4-a551-705681abff85"], ["created_at", "2015-03-19 00:19:52.625407"], ["updated_at", "2015-03-19 00:19:52.625407"], ["token", "dFlPNEdn6fW1HHcxo852Pl_70BDKOSNll2N99IRj3eE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.628719"], ["updated_at", "2015-03-19 00:19:52.628719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9a6420a-cdcd-11e4-a551-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9a7cc06-cdcd-11e4-bdb3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9a6420a-cdcd-11e4-a551-705681abff85"], ["organization_id", "a9a7cc06-cdcd-11e4-bdb3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.631929"], ["updated_at", "2015-03-19 00:19:52.631929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9a6f056-cdcd-11e4-8a06-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9a7cc06-cdcd-11e4-bdb3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9a6f056-cdcd-11e4-8a06-705681abff85"], ["organization_id", "a9a7cc06-cdcd-11e4-bdb3-705681abff85"], ["created_at", "2015-03-19 00:19:52.635123"], ["updated_at", "2015-03-19 00:19:52.635123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$uSVXYnD9FA7gfJUQDqGHZe/jA83vCW7d9ynAEIk/DqzBAR04lvnES"], ["created_at", "2015-03-19 00:19:52.645369"], ["updated_at", "2015-03-19 00:19:52.645369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$bkTWMymuAdiuU1hlon4ydexj6AZADfiHVERMsXSmnAK74EUb2iNJy"], ["created_at", "2015-03-19 00:19:52.649773"], ["updated_at", "2015-03-19 00:19:52.649773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.651313"], ["user_id", "a9aa58fe-cdcd-11e4-a2b8-705681abff85"], ["created_at", "2015-03-19 00:19:52.652173"], ["updated_at", "2015-03-19 00:19:52.652173"], ["token", "Yaz-HPyiAI1jRc-obZq-EWX6DGnY4RtRISLSZGGJW4Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.656219"], ["updated_at", "2015-03-19 00:19:52.656219"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9aa58fe-cdcd-11e4-a2b8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9abffc4-cdcd-11e4-b3c3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9aa58fe-cdcd-11e4-a2b8-705681abff85"], ["organization_id", "a9abffc4-cdcd-11e4-b3c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.679607"], ["updated_at", "2015-03-19 00:19:52.679607"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9ab029a-cdcd-11e4-870b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9abffc4-cdcd-11e4-b3c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9ab029a-cdcd-11e4-870b-705681abff85"], ["organization_id", "a9abffc4-cdcd-11e4-b3c3-705681abff85"], ["created_at", "2015-03-19 00:19:52.684879"], ["updated_at", "2015-03-19 00:19:52.684879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/a9b0621c-cdcd-11e4-971f-705681abff85" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"a9b0621c-cdcd-11e4-971f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:19:52.689995' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Yaz-HPyiAI1jRc-obZq-EWX6DGnY4RtRISLSZGGJW4Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:19:52.691547"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:19:52.692531"], ["id", "a9ab6ec4-cdcd-11e4-9ae9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "a9b0621c-cdcd-11e4-971f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9aa58fe-cdcd-11e4-a2b8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a9abffc4-cdcd-11e4-b3c3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9aa58fe-cdcd-11e4-a2b8-705681abff85' LIMIT 1 [["organization_id", "a9abffc4-cdcd-11e4-b3c3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9ab029a-cdcd-11e4-870b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "a9b0621c-cdcd-11e4-971f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (5.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$X/5xiasG/AE.qe9.4jeeCO1PyS2wUmP6OOTNPeuh4INt.ofUPfbye"], ["created_at", "2015-03-19 00:19:52.704459"], ["updated_at", "2015-03-19 00:19:52.704459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$XpaACULmHy3bL.oxZenCFOdKe40K/EoYXSpPv.03jq2vbUupwUBOq"], ["created_at", "2015-03-19 00:19:52.714505"], ["updated_at", "2015-03-19 00:19:52.714505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.716092"], ["user_id", "a9b35c60-cdcd-11e4-a6d5-705681abff85"], ["created_at", "2015-03-19 00:19:52.716891"], ["updated_at", "2015-03-19 00:19:52.716891"], ["token", "aI-sP8sXM3Obv5PW7eEoRS_l8c0UGGBx6VXeLpU9yMw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.720287"], ["updated_at", "2015-03-19 00:19:52.720287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9b35c60-cdcd-11e4-a6d5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9b5c478-cdcd-11e4-88e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9b35c60-cdcd-11e4-a6d5-705681abff85"], ["organization_id", "a9b5c478-cdcd-11e4-88e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.723499"], ["updated_at", "2015-03-19 00:19:52.723499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9b4e44a-cdcd-11e4-9eec-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9b5c478-cdcd-11e4-88e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9b4e44a-cdcd-11e4-9eec-705681abff85"], ["organization_id", "a9b5c478-cdcd-11e4-88e3-705681abff85"], ["created_at", "2015-03-19 00:19:52.726697"], ["updated_at", "2015-03-19 00:19:52.726697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$2UBjPQ/3Hu3qOCl.vcYI0.pgastzS/MxHYa7Pe3KE5p9YM4r51.R6"], ["created_at", "2015-03-19 00:19:52.736686"], ["updated_at", "2015-03-19 00:19:52.736686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$xXzlq7wlZDDa.e4x7dHazOtJWdetKRWv5gtKUvohEf8lyFdhQqsCC"], ["created_at", "2015-03-19 00:19:52.741785"], ["updated_at", "2015-03-19 00:19:52.741785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.743328"], ["user_id", "a9b859ae-cdcd-11e4-8a8d-705681abff85"], ["created_at", "2015-03-19 00:19:52.744112"], ["updated_at", "2015-03-19 00:19:52.744112"], ["token", "M9Zpqb2lrsV4FuWM42rwQI4YRo7bxknqRTXeGpVSV7w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.747431"], ["updated_at", "2015-03-19 00:19:52.747431"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9b859ae-cdcd-11e4-8a8d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9b9e80a-cdcd-11e4-b945-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9b859ae-cdcd-11e4-8a8d-705681abff85"], ["organization_id", "a9b9e80a-cdcd-11e4-b945-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.751907"], ["updated_at", "2015-03-19 00:19:52.751907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9b90cb4-cdcd-11e4-94d9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9b9e80a-cdcd-11e4-b945-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9b90cb4-cdcd-11e4-94d9-705681abff85"], ["organization_id", "a9b9e80a-cdcd-11e4-b945-705681abff85"], ["created_at", "2015-03-19 00:19:52.755909"], ["updated_at", "2015-03-19 00:19:52.755909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a9b9e80a-cdcd-11e4-b945-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"a9b9e80a-cdcd-11e4-b945-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:19:52.760208' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M9Zpqb2lrsV4FuWM42rwQI4YRo7bxknqRTXeGpVSV7w"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:19:52.762104"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:19:52.763963"], ["id", "a9b96e5c-cdcd-11e4-a185-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a9b9e80a-cdcd-11e4-b945-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9b859ae-cdcd-11e4-8a8d-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$y6OGMTi.0KnxcYKyi3MiROsm38lxajML9s5Q/bw5h4ELCPBB0s8pK"], ["created_at", "2015-03-19 00:19:52.774080"], ["updated_at", "2015-03-19 00:19:52.774080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$pa0T1qdSfK6xf6PGay.oJ.Fi2e5PNU6hxnl6Viwm.GJDGMLxm32Gy"], ["created_at", "2015-03-19 00:19:52.778276"], ["updated_at", "2015-03-19 00:19:52.778276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:19:52.779793"], ["user_id", "a9bdfc88-cdcd-11e4-ac18-705681abff85"], ["created_at", "2015-03-19 00:19:52.780566"], ["updated_at", "2015-03-19 00:19:52.780566"], ["token", "Q3ETNJgcnYg6D1R-cnd85RTc2oDzr6tx-PX-EQojfjU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:19:52.784948"], ["updated_at", "2015-03-19 00:19:52.784948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9bdfc88-cdcd-11e4-ac18-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9bfa7e0-cdcd-11e4-90ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9bdfc88-cdcd-11e4-ac18-705681abff85"], ["organization_id", "a9bfa7e0-cdcd-11e4-90ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:19:52.795519"], ["updated_at", "2015-03-19 00:19:52.795519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9be9e2c-cdcd-11e4-990e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9bfa7e0-cdcd-11e4-90ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9be9e2c-cdcd-11e4-990e-705681abff85"], ["organization_id", "a9bfa7e0-cdcd-11e4-90ab-705681abff85"], ["created_at", "2015-03-19 00:19:52.799107"], ["updated_at", "2015-03-19 00:19:52.799107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 17:19:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$AmygTGw.xcd8qk1BzCO5N.L3x9N.Hglk.V7BdVfJVORtaqOemWGyG"], ["created_at", "2015-03-19 00:21:28.392148"], ["updated_at", "2015-03-19 00:21:28.392148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$fPXgXGP2p0DAqiECeXQTiO2HekB1qOqYUdxZLPRq9HPIXJxh8SJKq"], ["created_at", "2015-03-19 00:21:28.418578"], ["updated_at", "2015-03-19 00:21:28.418578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (12.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.458431"], ["user_id", "e2bf395c-cdcd-11e4-8884-705681abff85"], ["created_at", "2015-03-19 00:21:28.465449"], ["updated_at", "2015-03-19 00:21:28.465449"], ["token", "giZviMlOqdeLjsXNtODPf5sBcC2ZjGM56UQPEUYd51Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:28.488608"], ["updated_at", "2015-03-19 00:21:28.488608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2bf395c-cdcd-11e4-8884-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2cae7c0-cdcd-11e4-a2fc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2bf395c-cdcd-11e4-8884-705681abff85"], ["organization_id", "e2cae7c0-cdcd-11e4-a2fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.499830"], ["updated_at", "2015-03-19 00:21:28.499830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2c0400e-cdcd-11e4-90a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2cae7c0-cdcd-11e4-a2fc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2c0400e-cdcd-11e4-90a2-705681abff85"], ["organization_id", "e2cae7c0-cdcd-11e4-a2fc-705681abff85"], ["created_at", "2015-03-19 00:21:28.503635"], ["updated_at", "2015-03-19 00:21:28.503635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$.erYbxwFiBOR5FeinydPturv1ksCYgoJHaG.p0Hs3L1tgGbXRIqdO"], ["created_at", "2015-03-19 00:21:28.508683"], ["updated_at", "2015-03-19 00:21:28.508683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.510395"], ["user_id", "e2cdef38-cdcd-11e4-ab46-705681abff85"], ["created_at", "2015-03-19 00:21:28.511594"], ["updated_at", "2015-03-19 00:21:28.511594"], ["token", "1b6w58in-gzfFngDQGuBi0BUydzLi-ho7qjzbGUiaF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e2cae7c0-cdcd-11e4-a2fc-705681abff85') LIMIT 1 SQL (3.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "e2cae7c0-cdcd-11e4-a2fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.525151"], ["updated_at", "2015-03-19 00:21:28.525151"], ["token", "cb1A571IIFFPxmKAgdJdKcMZhlhzzjocFnrwh3Mfwzk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 17:21:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$F.mYpwyEkkPo5OtiTWaeo.9BmEaWZul.JVg8Gsjdqk9p/2G.2X5NO"], ["created_at", "2015-03-19 00:21:28.566532"], ["updated_at", "2015-03-19 00:21:28.566532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$I1.QOG/IeQMa8YGLWhQtr.66V4gYkjYHYJdlUOUNO2/TtxYRlJ7cu"], ["created_at", "2015-03-19 00:21:28.571087"], ["updated_at", "2015-03-19 00:21:28.571087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.572594"], ["user_id", "e2d6c4b4-cdcd-11e4-ac2e-705681abff85"], ["created_at", "2015-03-19 00:21:28.573401"], ["updated_at", "2015-03-19 00:21:28.573401"], ["token", "z48CLNERADgrB4fHvYPCgPoGcym_9Za9-1Py5dTFj2k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:28.577082"], ["updated_at", "2015-03-19 00:21:28.577082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2d6c4b4-cdcd-11e4-ac2e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2d85c0c-cdcd-11e4-9d13-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2d6c4b4-cdcd-11e4-ac2e-705681abff85"], ["organization_id", "e2d85c0c-cdcd-11e4-9d13-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.580460"], ["updated_at", "2015-03-19 00:21:28.580460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2d770e4-cdcd-11e4-8665-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2d85c0c-cdcd-11e4-9d13-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2d770e4-cdcd-11e4-8665-705681abff85"], ["organization_id", "e2d85c0c-cdcd-11e4-9d13-705681abff85"], ["created_at", "2015-03-19 00:21:28.583645"], ["updated_at", "2015-03-19 00:21:28.583645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$JGmRkCRaOZiy0ylcNcwaAu289.PzYFUxEifg/KsD9KoBXqGqGfNFW"], ["created_at", "2015-03-19 00:21:28.588122"], ["updated_at", "2015-03-19 00:21:28.588122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.589786"], ["user_id", "e2da0d90-cdcd-11e4-8e6f-705681abff85"], ["created_at", "2015-03-19 00:21:28.590633"], ["updated_at", "2015-03-19 00:21:28.590633"], ["token", "tciUZW5gUgxrG7U5jK10Dlk2BkiFGsGKnmilFkWUbp8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'e2d85c0c-cdcd-11e4-9d13-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "e2d85c0c-cdcd-11e4-9d13-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.594555"], ["updated_at", "2015-03-19 00:21:28.594555"], ["token", "0gRQE9yzC9cDP1iyKjzOYY8LP5wYJ05XDBtkkOl1TvY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e2d85c0c-cdcd-11e4-9d13-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:21:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"0gRQE9yzC9cDP1iyKjzOYY8LP5wYJ05XDBtkkOl1TvY", "organization_id"=>"e2d85c0c-cdcd-11e4-9d13-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:28.600827' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tciUZW5gUgxrG7U5jK10Dlk2BkiFGsGKnmilFkWUbp8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:28.608362"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:28.610232"], ["id", "e2da74ec-cdcd-11e4-91ba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e2d85c0c-cdcd-11e4-9d13-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2da0d90-cdcd-11e4-8e6f-705681abff85"]] Completed 500 Internal Server Error in 47ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$8CPG.bo/68DbqM8wf9KfMOAW6vSk.UWIwRBEIhkD.VlrzY49pHcjC"], ["created_at", "2015-03-19 00:21:28.653712"], ["updated_at", "2015-03-19 00:21:28.653712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (2.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Pdd4KTRtbXCw.XDx0Q.vJeP.YZrzQ2sMG5kt/1hXZcawCxI94v64i"], ["created_at", "2015-03-19 00:21:28.670847"], ["updated_at", "2015-03-19 00:21:28.670847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.674458"], ["user_id", "e2e4106a-cdcd-11e4-b5da-705681abff85"], ["created_at", "2015-03-19 00:21:28.676305"], ["updated_at", "2015-03-19 00:21:28.676305"], ["token", "NqsAXq6WTJF5IZtgoiWJ0zWjdDfSnZz1U7lDbOOsZQ8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:28.682751"], ["updated_at", "2015-03-19 00:21:28.682751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2e4106a-cdcd-11e4-b5da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2e87d4e-cdcd-11e4-980c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2e4106a-cdcd-11e4-b5da-705681abff85"], ["organization_id", "e2e87d4e-cdcd-11e4-980c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.686622"], ["updated_at", "2015-03-19 00:21:28.686622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2e6c7f6-cdcd-11e4-b15f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2e87d4e-cdcd-11e4-980c-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2e6c7f6-cdcd-11e4-b15f-705681abff85"], ["organization_id", "e2e87d4e-cdcd-11e4-980c-705681abff85"], ["created_at", "2015-03-19 00:21:28.690203"], ["updated_at", "2015-03-19 00:21:28.690203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$t2lZJqpVnc/ymQzUuJjSceVhosP7YXh8/a7dNZiO543XoOUjSs9fq"], ["created_at", "2015-03-19 00:21:28.696846"], ["updated_at", "2015-03-19 00:21:28.696846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.698425"], ["user_id", "e2eaa3b2-cdcd-11e4-9be6-705681abff85"], ["created_at", "2015-03-19 00:21:28.699177"], ["updated_at", "2015-03-19 00:21:28.699177"], ["token", "W-dGynUf4DaMsRE_jJ5wIQuUb2suKDeUkd_wTFVY470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'e2e87d4e-cdcd-11e4-980c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "e2e87d4e-cdcd-11e4-980c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.702817"], ["updated_at", "2015-03-19 00:21:28.702817"], ["token", "knAcozuij9qyG28urgpQ0ed6yzr-zJ09JpjYSu_IYTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e2e87d4e-cdcd-11e4-980c-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:21:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"e2e87d4e-cdcd-11e4-980c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:28.709203' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "W-dGynUf4DaMsRE_jJ5wIQuUb2suKDeUkd_wTFVY470"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:28.710698"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:28.711721"], ["id", "e2eb0438-cdcd-11e4-b1ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e2e87d4e-cdcd-11e4-980c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2eaa3b2-cdcd-11e4-9be6-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$nPv.z3RDka3hpVcG/ZuUWeSIaW5NNP/Ap3LZO3Z0jz.YIAKiHi9ne"], ["created_at", "2015-03-19 00:21:28.723524"], ["updated_at", "2015-03-19 00:21:28.723524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$.uaiBB4xE8cBeqOn4QNx1eC3pXBSmx/zrMjYmw6FVJF1nUSKrbrKy"], ["created_at", "2015-03-19 00:21:28.727538"], ["updated_at", "2015-03-19 00:21:28.727538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.728947"], ["user_id", "e2eeb470-cdcd-11e4-a8c1-705681abff85"], ["created_at", "2015-03-19 00:21:28.729785"], ["updated_at", "2015-03-19 00:21:28.729785"], ["token", "ZgVWBp6IGk7pULFYRxYqgiz44SHIQ6EwWGeksozUsro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:28.733123"], ["updated_at", "2015-03-19 00:21:28.733123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2eeb470-cdcd-11e4-a8c1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2f02918-cdcd-11e4-829d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2eeb470-cdcd-11e4-a8c1-705681abff85"], ["organization_id", "e2f02918-cdcd-11e4-829d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.736292"], ["updated_at", "2015-03-19 00:21:28.736292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2ef4d72-cdcd-11e4-9810-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2f02918-cdcd-11e4-829d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2ef4d72-cdcd-11e4-9810-705681abff85"], ["organization_id", "e2f02918-cdcd-11e4-829d-705681abff85"], ["created_at", "2015-03-19 00:21:28.739343"], ["updated_at", "2015-03-19 00:21:28.739343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 17:21:28 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$4Sy5Eu5SrsMdJ8mkfp0yh.nVjC8zqV9mMDjXAD0EytJ1IDGJyILg6"], ["created_at", "2015-03-19 00:21:28.751401"], ["updated_at", "2015-03-19 00:21:28.751401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$bUylifkRhV2fYXDorU.0LeyqL9Lgm3Pv3sHqYRYsGNWm9Sq8sWQ5u"], ["created_at", "2015-03-19 00:21:28.757114"], ["updated_at", "2015-03-19 00:21:28.757114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.759271"], ["user_id", "e2f304b2-cdcd-11e4-a28a-705681abff85"], ["created_at", "2015-03-19 00:21:28.760199"], ["updated_at", "2015-03-19 00:21:28.760199"], ["token", "1RZmzxA5RQsW-tgok0Kxdx9C9TW8QDJynYOglBbvyFk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:28.764270"], ["updated_at", "2015-03-19 00:21:28.764270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2f304b2-cdcd-11e4-a28a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2f4ee9e-cdcd-11e4-b476-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2f304b2-cdcd-11e4-a28a-705681abff85"], ["organization_id", "e2f4ee9e-cdcd-11e4-b476-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.767873"], ["updated_at", "2015-03-19 00:21:28.767873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2f3da40-cdcd-11e4-85c8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2f4ee9e-cdcd-11e4-b476-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2f3da40-cdcd-11e4-85c8-705681abff85"], ["organization_id", "e2f4ee9e-cdcd-11e4-b476-705681abff85"], ["created_at", "2015-03-19 00:21:28.771164"], ["updated_at", "2015-03-19 00:21:28.771164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/e2f5f97e-cdcd-11e4-a431-705681abff85" for 127.0.0.1 at 2015-03-18 17:21:28 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"e2f5f97e-cdcd-11e4-a431-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:28.776260' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1RZmzxA5RQsW-tgok0Kxdx9C9TW8QDJynYOglBbvyFk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:28.777681"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:28.778652"], ["id", "e2f45a4c-cdcd-11e4-8631-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "e2f5f97e-cdcd-11e4-a431-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2f304b2-cdcd-11e4-a28a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e2f4ee9e-cdcd-11e4-b476-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e2f304b2-cdcd-11e4-a28a-705681abff85' LIMIT 1 [["organization_id", "e2f4ee9e-cdcd-11e4-b476-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2f3da40-cdcd-11e4-85c8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "e2f5f97e-cdcd-11e4-a431-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 3.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$I58I1iwF2t3B7aTN3vA60eP7FMt0znoTsomtC6cF1EP3gZOypWdJS"], ["created_at", "2015-03-19 00:21:28.797271"], ["updated_at", "2015-03-19 00:21:28.797271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$O2ouaM2ow9Nua8PDWIcrfOKVFIPG7mV1NENXmCJ6Bi9.p96CsyHaS"], ["created_at", "2015-03-19 00:21:28.801745"], ["updated_at", "2015-03-19 00:21:28.801745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.803292"], ["user_id", "e2f9f9a2-cdcd-11e4-9d90-705681abff85"], ["created_at", "2015-03-19 00:21:28.804288"], ["updated_at", "2015-03-19 00:21:28.804288"], ["token", "vZPRJeXNsBrr9Zi2Sld8eZVDagn1G1RYFSvZlo5Zw4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:28.807944"], ["updated_at", "2015-03-19 00:21:28.807944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2f9f9a2-cdcd-11e4-9d90-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2fb9e1a-cdcd-11e4-83b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2f9f9a2-cdcd-11e4-9d90-705681abff85"], ["organization_id", "e2fb9e1a-cdcd-11e4-83b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.811723"], ["updated_at", "2015-03-19 00:21:28.811723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2faa334-cdcd-11e4-890e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e2fb9e1a-cdcd-11e4-83b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e2faa334-cdcd-11e4-890e-705681abff85"], ["organization_id", "e2fb9e1a-cdcd-11e4-83b3-705681abff85"], ["created_at", "2015-03-19 00:21:28.815036"], ["updated_at", "2015-03-19 00:21:28.815036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$X9QZk1dau3Ate/Kg/SoEd.JKB61d0AMXQojfoDx9E2e1yeB1MYPmO"], ["created_at", "2015-03-19 00:21:28.819368"], ["updated_at", "2015-03-19 00:21:28.819368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.820988"], ["user_id", "e2fd5476-cdcd-11e4-bd70-705681abff85"], ["created_at", "2015-03-19 00:21:28.821796"], ["updated_at", "2015-03-19 00:21:28.821796"], ["token", "bGjRe5gzqZDobgYzjw8HajKacZ3dGLmMgsSihnfZ7Ks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'e2fb9e1a-cdcd-11e4-83b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "e2fb9e1a-cdcd-11e4-83b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.825816"], ["updated_at", "2015-03-19 00:21:28.825816"], ["token", "R_IA8EXB0HeMzEJdKK1xZD7dL_iWJoOU3nEzEdZ9ZjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 17:21:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$K5KMHGm8hNr5VBQFCQ1rLeYydn.GxaIwwXv0zpm3MjsBTUv/90/dK"], ["created_at", "2015-03-19 00:21:28.837695"], ["updated_at", "2015-03-19 00:21:28.837695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$e2prS7ZBwIQ3LpVh7xPyx.MKD02Tm16aC0CxAP87o7qUQ54Hpz5DW"], ["created_at", "2015-03-19 00:21:28.842774"], ["updated_at", "2015-03-19 00:21:28.842774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.845146"], ["user_id", "e300282c-cdcd-11e4-9147-705681abff85"], ["created_at", "2015-03-19 00:21:28.846046"], ["updated_at", "2015-03-19 00:21:28.846046"], ["token", "K2qaZiFKE4rHJU2wbB_6QdlQtB8jpN9eSRaZHa9Zg4w"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:28.857440"], ["updated_at", "2015-03-19 00:21:28.857440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e300282c-cdcd-11e4-9147-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e30326c6-cdcd-11e4-95fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e300282c-cdcd-11e4-9147-705681abff85"], ["organization_id", "e30326c6-cdcd-11e4-95fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.861267"], ["updated_at", "2015-03-19 00:21:28.861267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e300fa86-cdcd-11e4-b998-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e30326c6-cdcd-11e4-95fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e300fa86-cdcd-11e4-b998-705681abff85"], ["organization_id", "e30326c6-cdcd-11e4-95fb-705681abff85"], ["created_at", "2015-03-19 00:21:28.864509"], ["updated_at", "2015-03-19 00:21:28.864509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$hrQJ/boKTJDq7qRuuL/04OacRp7wDBQC2ack662vGffGaQ3lBMneq"], ["created_at", "2015-03-19 00:21:28.868911"], ["updated_at", "2015-03-19 00:21:28.868911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.870406"], ["user_id", "e304e204-cdcd-11e4-9894-705681abff85"], ["created_at", "2015-03-19 00:21:28.871241"], ["updated_at", "2015-03-19 00:21:28.871241"], ["token", "eweNJXD1uMNZohGR2BjuE6WwhYOLuwt4i6x7IYLBJqQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'e30326c6-cdcd-11e4-95fb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "e30326c6-cdcd-11e4-95fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.875155"], ["updated_at", "2015-03-19 00:21:28.875155"], ["token", "PxrCDYOjrQPaX3vnNs_r3SkPF6IXbYHWpclMRRSNTM0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:21:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"PxrCDYOjrQPaX3vnNs_r3SkPF6IXbYHWpclMRRSNTM0", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:28.881106' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eweNJXD1uMNZohGR2BjuE6WwhYOLuwt4i6x7IYLBJqQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:28.882646"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:28.883754"], ["id", "e30545d2-cdcd-11e4-a309-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e304e204-cdcd-11e4-9894-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$6jvJh0zQCbwddltgkTXWu.QWA2fbzjb2dCDvylKD73rmvbmRev5La"], ["created_at", "2015-03-19 00:21:28.895034"], ["updated_at", "2015-03-19 00:21:28.895034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$JiVlPZH98jCiZfyj5UhBreLmDZxKSnpbvzOwX5LfbpXHyvgCC4M1m"], ["created_at", "2015-03-19 00:21:28.899628"], ["updated_at", "2015-03-19 00:21:28.899628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.901155"], ["user_id", "e308e5e8-cdcd-11e4-9064-705681abff85"], ["created_at", "2015-03-19 00:21:28.901997"], ["updated_at", "2015-03-19 00:21:28.901997"], ["token", "0O5VJCWVK47qK5ETSolifJ7mm4EA9KRVaDBdFEhSlcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:28.905625"], ["updated_at", "2015-03-19 00:21:28.905625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e308e5e8-cdcd-11e4-9064-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e30a7caa-cdcd-11e4-8ac6-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e308e5e8-cdcd-11e4-9064-705681abff85"], ["organization_id", "e30a7caa-cdcd-11e4-8ac6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.909319"], ["updated_at", "2015-03-19 00:21:28.909319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3099272-cdcd-11e4-9a36-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e30a7caa-cdcd-11e4-8ac6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e3099272-cdcd-11e4-9a36-705681abff85"], ["organization_id", "e30a7caa-cdcd-11e4-8ac6-705681abff85"], ["created_at", "2015-03-19 00:21:28.913386"], ["updated_at", "2015-03-19 00:21:28.913386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$huUA168MK009IFzJcZZ8DO.MSrDvPSjyy2KO5tp.GEFWpnMrYefAG"], ["created_at", "2015-03-19 00:21:28.917946"], ["updated_at", "2015-03-19 00:21:28.917946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.919484"], ["user_id", "e30c5df4-cdcd-11e4-b7e1-705681abff85"], ["created_at", "2015-03-19 00:21:28.920452"], ["updated_at", "2015-03-19 00:21:28.920452"], ["token", "N8y1E_WB7GnaLDsB8Ujb9pcCLRVc3XDutblgHgHtyP0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'e30a7caa-cdcd-11e4-8ac6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "e30a7caa-cdcd-11e4-8ac6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.924223"], ["updated_at", "2015-03-19 00:21:28.924223"], ["token", "n6g0bMPIV0H_Le-sWUU4OJH-rKd72ZfcntMWcAIZmX0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:21:28 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:28.930334' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N8y1E_WB7GnaLDsB8Ujb9pcCLRVc3XDutblgHgHtyP0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:28.931817"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:28.932875"], ["id", "e30cc8e8-cdcd-11e4-b95f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e30c5df4-cdcd-11e4-b7e1-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$uWqNUuo6j3IKAlA5tNWGZuB0elF3rTvanqpE13xNKux1WCs9Ak3.a"], ["created_at", "2015-03-19 00:21:28.946486"], ["updated_at", "2015-03-19 00:21:28.946486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$4E5sYQCsrRi9SXmdkI4r5OZowyjrIOSgeRNMd3rvC1wrac45QGVue"], ["created_at", "2015-03-19 00:21:28.951193"], ["updated_at", "2015-03-19 00:21:28.951193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.952803"], ["user_id", "e310bed0-cdcd-11e4-94fb-705681abff85"], ["created_at", "2015-03-19 00:21:28.953626"], ["updated_at", "2015-03-19 00:21:28.953626"], ["token", "bOBAhAV3Z3ypfEWvxOKASa9Gkej6oQFHiWQSfoel63Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:28.957121"], ["updated_at", "2015-03-19 00:21:28.957121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e310bed0-cdcd-11e4-94fb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3125a88-cdcd-11e4-b9b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e310bed0-cdcd-11e4-94fb-705681abff85"], ["organization_id", "e3125a88-cdcd-11e4-b9b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.960821"], ["updated_at", "2015-03-19 00:21:28.960821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3117122-cdcd-11e4-ab80-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3125a88-cdcd-11e4-b9b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e3117122-cdcd-11e4-ab80-705681abff85"], ["organization_id", "e3125a88-cdcd-11e4-b9b5-705681abff85"], ["created_at", "2015-03-19 00:21:28.963921"], ["updated_at", "2015-03-19 00:21:28.963921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 17:21:28 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$vMl3IwxXwjnpyltn5aS6KemhDzkHfaqgDlUikkcAgtM.e9FWdMrN."], ["created_at", "2015-03-19 00:21:28.974595"], ["updated_at", "2015-03-19 00:21:28.974595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$R5EYjFN4rW1AkhLlsEc95.A.P9FEf4phM.SkVf4WyvnxnHhAMmh/."], ["created_at", "2015-03-19 00:21:28.979173"], ["updated_at", "2015-03-19 00:21:28.979173"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:28.981129"], ["user_id", "e315062a-cdcd-11e4-a2f3-705681abff85"], ["created_at", "2015-03-19 00:21:28.982281"], ["updated_at", "2015-03-19 00:21:28.982281"], ["token", "n_fqgv76LbZkxN6k2gkeZFCvIhAhB579nPB7XBgeRvs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:28.986642"], ["updated_at", "2015-03-19 00:21:28.986642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e315062a-cdcd-11e4-a2f3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e316d8b0-cdcd-11e4-b775-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e315062a-cdcd-11e4-a2f3-705681abff85"], ["organization_id", "e316d8b0-cdcd-11e4-b775-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:28.989905"], ["updated_at", "2015-03-19 00:21:28.989905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e315bfde-cdcd-11e4-a7dc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e316d8b0-cdcd-11e4-b775-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e315bfde-cdcd-11e4-a7dc-705681abff85"], ["organization_id", "e316d8b0-cdcd-11e4-b775-705681abff85"], ["created_at", "2015-03-19 00:21:28.993201"], ["updated_at", "2015-03-19 00:21:28.993201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/e317f272-cdcd-11e4-883f-705681abff85" for 127.0.0.1 at 2015-03-18 17:21:28 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"e317f272-cdcd-11e4-883f-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:28.999036' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n_fqgv76LbZkxN6k2gkeZFCvIhAhB579nPB7XBgeRvs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:29.000939"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:29.002902"], ["id", "e3165034-cdcd-11e4-a6fe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "e317f272-cdcd-11e4-883f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e315062a-cdcd-11e4-a2f3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e316d8b0-cdcd-11e4-b775-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e315062a-cdcd-11e4-a2f3-705681abff85' LIMIT 1 [["organization_id", "e316d8b0-cdcd-11e4-b775-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e315bfde-cdcd-11e4-a7dc-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e315bfde-cdcd-11e4-a7dc-705681abff85' AND "clubhouse_memberships"."id" != 'e317f272-cdcd-11e4-883f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e316d8b0-cdcd-11e4-b775-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 00:21:29.011584"], ["id", "e317f272-cdcd-11e4-883f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 4.6ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$WyImujhLOBbaEfDHhWnON.JoQaMYCHph7bWJjK8EyWlnfYVpLLU4m"], ["created_at", "2015-03-19 00:21:29.025794"], ["updated_at", "2015-03-19 00:21:29.025794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$p9MW2mzXMkeNm8UCJCNB3.090T0sMojRu/Sa9sBDio6yv7mw/H35a"], ["created_at", "2015-03-19 00:21:29.030085"], ["updated_at", "2015-03-19 00:21:29.030085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:29.032578"], ["user_id", "e31cd652-cdcd-11e4-b3bc-705681abff85"], ["created_at", "2015-03-19 00:21:29.033408"], ["updated_at", "2015-03-19 00:21:29.033408"], ["token", "0LbcZ7-9f-pvHDZ-ZmxBCHjW__-2WlATS0uZQvKWkKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:29.037034"], ["updated_at", "2015-03-19 00:21:29.037034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e31cd652-cdcd-11e4-b3bc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e31e8b28-cdcd-11e4-ba8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e31cd652-cdcd-11e4-b3bc-705681abff85"], ["organization_id", "e31e8b28-cdcd-11e4-ba8a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:29.040470"], ["updated_at", "2015-03-19 00:21:29.040470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e31d9cea-cdcd-11e4-b055-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e31e8b28-cdcd-11e4-ba8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e31d9cea-cdcd-11e4-b055-705681abff85"], ["organization_id", "e31e8b28-cdcd-11e4-ba8a-705681abff85"], ["created_at", "2015-03-19 00:21:29.043874"], ["updated_at", "2015-03-19 00:21:29.043874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 17:21:29 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$YLft.iK10TMA1WlJK9Va4OogREGkXqcL9YqD5HTzfIIuW3xwi.5v6"], ["created_at", "2015-03-19 00:21:29.054787"], ["updated_at", "2015-03-19 00:21:29.054787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$Pp8dgpDu3aCmUdF9YHY2G.EvAhEbC.UjQo9dGzY2jOyoUqQd.LeG6"], ["created_at", "2015-03-19 00:21:29.059791"], ["updated_at", "2015-03-19 00:21:29.059791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:29.061481"], ["user_id", "e32142be-cdcd-11e4-b5d1-705681abff85"], ["created_at", "2015-03-19 00:21:29.062339"], ["updated_at", "2015-03-19 00:21:29.062339"], ["token", "0XA_D4LAG6n-dCUMiuX8aZUuH5g15ciVeJWuMsu212w"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:29.066229"], ["updated_at", "2015-03-19 00:21:29.066229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e32142be-cdcd-11e4-b5d1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3230040-cdcd-11e4-b220-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e32142be-cdcd-11e4-b5d1-705681abff85"], ["organization_id", "e3230040-cdcd-11e4-b220-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:29.069641"], ["updated_at", "2015-03-19 00:21:29.069641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3220708-cdcd-11e4-997e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3230040-cdcd-11e4-b220-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e3220708-cdcd-11e4-997e-705681abff85"], ["organization_id", "e3230040-cdcd-11e4-b220-705681abff85"], ["created_at", "2015-03-19 00:21:29.072700"], ["updated_at", "2015-03-19 00:21:29.072700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/e3230040-cdcd-11e4-b220-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 17:21:29 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"e3230040-cdcd-11e4-b220-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:29.078275' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0XA_D4LAG6n-dCUMiuX8aZUuH5g15ciVeJWuMsu212w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:29.079910"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:29.081009"], ["id", "e32270d0-cdcd-11e4-8b43-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e3230040-cdcd-11e4-b220-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e32142be-cdcd-11e4-b5d1-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$jpAiOVV04KbnRTUtOQf4WO6ovHYhIo6oJUyAPcWAb7uCV4NMsUzKC"], ["created_at", "2015-03-19 00:21:29.092930"], ["updated_at", "2015-03-19 00:21:29.092930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$idZEJ9umY9OPwxbVPuGdk.XMb72PbKq1Dm4z3qZQKvV.0.ncoByyW"], ["created_at", "2015-03-19 00:21:29.097345"], ["updated_at", "2015-03-19 00:21:29.097345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:29.098883"], ["user_id", "e327175c-cdcd-11e4-81a8-705681abff85"], ["created_at", "2015-03-19 00:21:29.099708"], ["updated_at", "2015-03-19 00:21:29.099708"], ["token", "UsBZ0s4aJmdtdfYsy1UaRIPM8Tvtg-3WHdLvSIqOb0U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:29.103101"], ["updated_at", "2015-03-19 00:21:29.103101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e327175c-cdcd-11e4-81a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3289eec-cdcd-11e4-9953-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e327175c-cdcd-11e4-81a8-705681abff85"], ["organization_id", "e3289eec-cdcd-11e4-9953-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:29.106320"], ["updated_at", "2015-03-19 00:21:29.106320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e327bed2-cdcd-11e4-bcf9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e3289eec-cdcd-11e4-9953-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e327bed2-cdcd-11e4-bcf9-705681abff85"], ["organization_id", "e3289eec-cdcd-11e4-9953-705681abff85"], ["created_at", "2015-03-19 00:21:29.109338"], ["updated_at", "2015-03-19 00:21:29.109338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 17:21:29 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$IoD9S3hPCjswAItEzEmIN.uD0c/7zktU6I8InqBDNKWLXY/irfrrC"], ["created_at", "2015-03-19 00:21:29.121522"], ["updated_at", "2015-03-19 00:21:29.121522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$CDj.oW9qFT6LIgb4JKjAwuTPIhRrcjMWHjrw3ZcI4/ADtDEmVnrPe"], ["created_at", "2015-03-19 00:21:29.127204"], ["updated_at", "2015-03-19 00:21:29.127204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:29.129488"], ["user_id", "e32b84c2-cdcd-11e4-bd7f-705681abff85"], ["created_at", "2015-03-19 00:21:29.130493"], ["updated_at", "2015-03-19 00:21:29.130493"], ["token", "O_k8__9LzSV9yO2W3gpMZpW_pR1ZlUvOQJSTkFEaQ18"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:29.134382"], ["updated_at", "2015-03-19 00:21:29.134382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e32b84c2-cdcd-11e4-bd7f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e32d65a8-cdcd-11e4-8104-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e32b84c2-cdcd-11e4-bd7f-705681abff85"], ["organization_id", "e32d65a8-cdcd-11e4-8104-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:29.138104"], ["updated_at", "2015-03-19 00:21:29.138104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e32c58e8-cdcd-11e4-8ef4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e32d65a8-cdcd-11e4-8104-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e32c58e8-cdcd-11e4-8ef4-705681abff85"], ["organization_id", "e32d65a8-cdcd-11e4-8104-705681abff85"], ["created_at", "2015-03-19 00:21:29.141237"], ["updated_at", "2015-03-19 00:21:29.141237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/e32df68a-cdcd-11e4-a6a7-705681abff85" for 127.0.0.1 at 2015-03-18 17:21:29 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"e32df68a-cdcd-11e4-a6a7-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:29.146437' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "O_k8__9LzSV9yO2W3gpMZpW_pR1ZlUvOQJSTkFEaQ18"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:29.148391"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:29.150279"], ["id", "e32cdb38-cdcd-11e4-9bd0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "e32df68a-cdcd-11e4-a6a7-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e32b84c2-cdcd-11e4-bd7f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e32d65a8-cdcd-11e4-8104-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e32b84c2-cdcd-11e4-bd7f-705681abff85' LIMIT 1 [["organization_id", "e32d65a8-cdcd-11e4-8104-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e32b84c2-cdcd-11e4-bd7f-705681abff85"]] Completed 200 OK in 14ms (Views: 3.0ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$HW5ItGkUWJmHCXpYBVjA0eeQWBMgXNAJQ/bZZTVzvicbCuxJwOZJm"], ["created_at", "2015-03-19 00:21:29.168459"], ["updated_at", "2015-03-19 00:21:29.168459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$1bVOziPrNOkW4M9l0Mal/.Qoc0V8mBwxD8Dz2ONzTgJMHevxQl9W6"], ["created_at", "2015-03-19 00:21:29.172863"], ["updated_at", "2015-03-19 00:21:29.172863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:29.174404"], ["user_id", "e3329d5c-cdcd-11e4-b98b-705681abff85"], ["created_at", "2015-03-19 00:21:29.175233"], ["updated_at", "2015-03-19 00:21:29.175233"], ["token", "AZ_u2a_x6Tiz8UBo1vo9eXvMOeepiLW0tlihM6c3BQI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:29.178674"], ["updated_at", "2015-03-19 00:21:29.178674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3329d5c-cdcd-11e4-b98b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e33425f0-cdcd-11e4-bcf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e3329d5c-cdcd-11e4-b98b-705681abff85"], ["organization_id", "e33425f0-cdcd-11e4-bcf6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:29.182098"], ["updated_at", "2015-03-19 00:21:29.182098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e33343d8-cdcd-11e4-83f3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e33425f0-cdcd-11e4-bcf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e33343d8-cdcd-11e4-83f3-705681abff85"], ["organization_id", "e33425f0-cdcd-11e4-bcf6-705681abff85"], ["created_at", "2015-03-19 00:21:29.185236"], ["updated_at", "2015-03-19 00:21:29.185236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 17:21:29 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$wLf0JbmY0/i.ykfBQTU45.31hrqCaTKjaOs9HWoYeSEw46.xmlSXq"], ["created_at", "2015-03-19 00:21:29.196607"], ["updated_at", "2015-03-19 00:21:29.196607"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$d8fTRiv8axwPshkvMo4KLOt0t35HFrX0ePRPX3PC0Rg3o/aE1GdlG"], ["created_at", "2015-03-19 00:21:29.202437"], ["updated_at", "2015-03-19 00:21:29.202437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:29.204208"], ["user_id", "e336f974-cdcd-11e4-8edd-705681abff85"], ["created_at", "2015-03-19 00:21:29.205029"], ["updated_at", "2015-03-19 00:21:29.205029"], ["token", "U1Xj0ky3avOWRKuB9vQm_VUO6koQiVNN3fg_D1Uk71I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:29.208638"], ["updated_at", "2015-03-19 00:21:29.208638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e336f974-cdcd-11e4-8edd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e338c18c-cdcd-11e4-8396-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e336f974-cdcd-11e4-8edd-705681abff85"], ["organization_id", "e338c18c-cdcd-11e4-8396-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:21:29.214005"], ["updated_at", "2015-03-19 00:21:29.214005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e337c9da-cdcd-11e4-9bd0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e338c18c-cdcd-11e4-8396-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e337c9da-cdcd-11e4-9bd0-705681abff85"], ["organization_id", "e338c18c-cdcd-11e4-8396-705681abff85"], ["created_at", "2015-03-19 00:21:29.227869"], ["updated_at", "2015-03-19 00:21:29.227869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 17:21:29 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:29.239531' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U1Xj0ky3avOWRKuB9vQm_VUO6koQiVNN3fg_D1Uk71I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:29.240993"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:29.242053"], ["id", "e33835b4-cdcd-11e4-8c0f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e336f974-cdcd-11e4-8edd-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (23.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$dU.qG40hBbABLBkFee5fiO6pnIODmarw3XZRdoAv1o2414g5M4G/K"], ["created_at", "2015-03-19 00:21:42.504584"], ["updated_at", "2015-03-19 00:21:42.504584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:42.593182"], ["user_id", "eb29227e-cdcd-11e4-9e9c-705681abff85"], ["created_at", "2015-03-19 00:21:42.599917"], ["updated_at", "2015-03-19 00:21:42.599917"], ["token", "Wtrsh2rd4Yrdfa30j1iwhg7Po2FZLo2JiXmGXFlfqUQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:42.610384"], ["updated_at", "2015-03-19 00:21:42.610384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb29227e-cdcd-11e4-9e9c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb35cb0a-cdcd-11e4-bd0f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb29227e-cdcd-11e4-9e9c-705681abff85"], ["organization_id", "eb35cb0a-cdcd-11e4-bd0f-705681abff85"], ["created_at", "2015-03-19 00:21:42.622439"], ["updated_at", "2015-03-19 00:21:42.622439"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$OvfXGS65btOGH0dVnNmOSO7.gqFqjkpRFaMnx8O8miifY32/uJ9jO"], ["created_at", "2015-03-19 00:21:42.628186"], ["updated_at", "2015-03-19 00:21:42.628186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:42.631862"], ["updated_at", "2015-03-19 00:21:42.631862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb38661c-cdcd-11e4-9384-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb38fc4e-cdcd-11e4-a469-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb38661c-cdcd-11e4-9384-705681abff85"], ["organization_id", "eb38fc4e-cdcd-11e4-a469-705681abff85"], ["created_at", "2015-03-19 00:21:42.636320"], ["updated_at", "2015-03-19 00:21:42.636320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:21:42 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 6ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (11.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$kXA.KJSyl7Xq4S2ghS9GEeMliZv2NwtpsgW4LEW9Bvmw8JAbXeqgK"], ["created_at", "2015-03-19 00:21:42.740621"], ["updated_at", "2015-03-19 00:21:42.740621"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:42.781897"], ["user_id", "eb4e0562-cdcd-11e4-896e-705681abff85"], ["created_at", "2015-03-19 00:21:42.783986"], ["updated_at", "2015-03-19 00:21:42.783986"], ["token", "HTaXHqHdQ8gdSnQBCJKv7NV6oi6zMO7dbRluyrij1Hg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:42.790837"], ["updated_at", "2015-03-19 00:21:42.790837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb4e0562-cdcd-11e4-896e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb515a32-cdcd-11e4-93c7-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb4e0562-cdcd-11e4-896e-705681abff85"], ["organization_id", "eb515a32-cdcd-11e4-93c7-705681abff85"], ["created_at", "2015-03-19 00:21:42.797108"], ["updated_at", "2015-03-19 00:21:42.797108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$X7nGQ1WvvN1GeEOEObEtOunCvoLsQ9HNJnvH36mSvykjZaji59Gty"], ["created_at", "2015-03-19 00:21:42.802748"], ["updated_at", "2015-03-19 00:21:42.802748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:42.806060"], ["updated_at", "2015-03-19 00:21:42.806060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb530774-cdcd-11e4-acbc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb539054-cdcd-11e4-8a33-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb530774-cdcd-11e4-acbc-705681abff85"], ["organization_id", "eb539054-cdcd-11e4-8a33-705681abff85"], ["created_at", "2015-03-19 00:21:42.810566"], ["updated_at", "2015-03-19 00:21:42.810566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:21:42 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:42.817847' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HTaXHqHdQ8gdSnQBCJKv7NV6oi6zMO7dbRluyrij1Hg"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:42.824916"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:42.826784"], ["id", "eb504d04-cdcd-11e4-9537-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb4e0562-cdcd-11e4-896e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "eb4e0562-cdcd-11e4-896e-705681abff85"]] Completed 500 Internal Server Error in 36ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$weWxKAl8LvlLbrXVozooruCKJLNLyOsvjZiQFL8r.U8loGdIAAB5K"], ["created_at", "2015-03-19 00:21:42.859471"], ["updated_at", "2015-03-19 00:21:42.859471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:42.861642"], ["user_id", "eb5bc0ee-cdcd-11e4-ac9b-705681abff85"], ["created_at", "2015-03-19 00:21:42.862473"], ["updated_at", "2015-03-19 00:21:42.862473"], ["token", "oyLNodLEkjZPtXK3BTGbe2v4xA8Srvg3YWjYwXQBxyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:42.866316"], ["updated_at", "2015-03-19 00:21:42.866316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb5bc0ee-cdcd-11e4-ac9b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb5cba62-cdcd-11e4-982b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb5bc0ee-cdcd-11e4-ac9b-705681abff85"], ["organization_id", "eb5cba62-cdcd-11e4-982b-705681abff85"], ["created_at", "2015-03-19 00:21:42.869573"], ["updated_at", "2015-03-19 00:21:42.869573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 17:21:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$uMkojFTv.ZDkMNSDSv4mT.2.4phEqoWD.ai7Bbq111eOL0vOg2b4u"], ["created_at", "2015-03-19 00:21:42.880109"], ["updated_at", "2015-03-19 00:21:42.880109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:42.881762"], ["user_id", "eb5ed644-cdcd-11e4-bbfe-705681abff85"], ["created_at", "2015-03-19 00:21:42.882547"], ["updated_at", "2015-03-19 00:21:42.882547"], ["token", "uVkWB8X5EuqPaoqbhKf_Uw3yAl-fAvjM40LjmJWNf1g"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:42.888571"], ["updated_at", "2015-03-19 00:21:42.888571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb5ed644-cdcd-11e4-bbfe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb602026-cdcd-11e4-8036-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb5ed644-cdcd-11e4-bbfe-705681abff85"], ["organization_id", "eb602026-cdcd-11e4-8036-705681abff85"], ["created_at", "2015-03-19 00:21:42.892419"], ["updated_at", "2015-03-19 00:21:42.892419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/eb602026-cdcd-11e4-8036-705681abff85" for 127.0.0.1 at 2015-03-18 17:21:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"eb602026-cdcd-11e4-8036-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:42.897683' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uVkWB8X5EuqPaoqbhKf_Uw3yAl-fAvjM40LjmJWNf1g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:42.899081"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:42.900021"], ["id", "eb5f38e6-cdcd-11e4-8569-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb5ed644-cdcd-11e4-bbfe-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$B6geGyointW0vbZxVeQEsu1N5GNiP0CJ5QjXre.xTRkbJtlpqjbya"], ["created_at", "2015-03-19 00:21:42.908438"], ["updated_at", "2015-03-19 00:21:42.908438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:42.910035"], ["user_id", "eb6329e2-cdcd-11e4-bbaf-705681abff85"], ["created_at", "2015-03-19 00:21:42.911042"], ["updated_at", "2015-03-19 00:21:42.911042"], ["token", "X7kCYl6Wj-NywfdaR-uDUVSMazPYc_4Jn8AoXkBkMbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:42.914816"], ["updated_at", "2015-03-19 00:21:42.914816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb6329e2-cdcd-11e4-bbaf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb642428-cdcd-11e4-a5e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb6329e2-cdcd-11e4-bbaf-705681abff85"], ["organization_id", "eb642428-cdcd-11e4-a5e3-705681abff85"], ["created_at", "2015-03-19 00:21:42.918277"], ["updated_at", "2015-03-19 00:21:42.918277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/eb642428-cdcd-11e4-a5e3-705681abff85" for 127.0.0.1 at 2015-03-18 17:21:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"eb642428-cdcd-11e4-a5e3-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:42.924941' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X7kCYl6Wj-NywfdaR-uDUVSMazPYc_4Jn8AoXkBkMbk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:42.926429"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:42.927495"], ["id", "eb639896-cdcd-11e4-b8b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb6329e2-cdcd-11e4-bbaf-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$i.azizbBuuzUPJF4j5MLn.w6jyg3OMjPaKRn.cnjYuozEw//ncEaW"], ["created_at", "2015-03-19 00:21:42.938131"], ["updated_at", "2015-03-19 00:21:42.938131"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:42.940454"], ["user_id", "eb67b4a8-cdcd-11e4-8cb3-705681abff85"], ["created_at", "2015-03-19 00:21:42.945991"], ["updated_at", "2015-03-19 00:21:42.945991"], ["token", "BN9TfAMOCh331qHZDTnGn05s1iGf4NltUtGByrxLaXY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:42.953008"], ["updated_at", "2015-03-19 00:21:42.953008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb67b4a8-cdcd-11e4-8cb3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb69f506-cdcd-11e4-8113-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb67b4a8-cdcd-11e4-8cb3-705681abff85"], ["organization_id", "eb69f506-cdcd-11e4-8113-705681abff85"], ["created_at", "2015-03-19 00:21:42.956310"], ["updated_at", "2015-03-19 00:21:42.956310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 17:21:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Ble9qPmVhogb3Da2xgpu3OrQNUfs11VSRV77HClU4qLErC2krwY9G"], ["created_at", "2015-03-19 00:21:42.969537"], ["updated_at", "2015-03-19 00:21:42.969537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:42.971476"], ["user_id", "eb6c8352-cdcd-11e4-985a-705681abff85"], ["created_at", "2015-03-19 00:21:42.972258"], ["updated_at", "2015-03-19 00:21:42.972258"], ["token", "L-v2Xdnvg5NwxbzG0y2YWkDLNl4t9EFS2GGMED3m3TQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:42.980262"], ["updated_at", "2015-03-19 00:21:42.980262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb6c8352-cdcd-11e4-985a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb6e4552-cdcd-11e4-a07e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb6c8352-cdcd-11e4-985a-705681abff85"], ["organization_id", "eb6e4552-cdcd-11e4-a07e-705681abff85"], ["created_at", "2015-03-19 00:21:42.985191"], ["updated_at", "2015-03-19 00:21:42.985191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/eb6e4552-cdcd-11e4-a07e-705681abff85" for 127.0.0.1 at 2015-03-18 17:21:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"eb6e4552-cdcd-11e4-a07e-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:42.992654' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "L-v2Xdnvg5NwxbzG0y2YWkDLNl4t9EFS2GGMED3m3TQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:42.994403"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:42.995951"], ["id", "eb6d0890-cdcd-11e4-ad71-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb6c8352-cdcd-11e4-985a-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."id" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "eb6c8352-cdcd-11e4-985a-705681abff85"], ["id", "eb6e4552-cdcd-11e4-a07e-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$uDW53jYKvbf6/1dv3ZvTHeGep8FoK3o4Y/ZtCFepVKXDomtKhljf."], ["created_at", "2015-03-19 00:21:43.014550"], ["updated_at", "2015-03-19 00:21:43.014550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.017293"], ["user_id", "eb736bb8-cdcd-11e4-b2e2-705681abff85"], ["created_at", "2015-03-19 00:21:43.018600"], ["updated_at", "2015-03-19 00:21:43.018600"], ["token", "r7b3AmXYTVaEoBwJbf9DFyrcPtkqudZaLeIR19tEQt8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.025225"], ["updated_at", "2015-03-19 00:21:43.025225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb736bb8-cdcd-11e4-b2e2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb7509b4-cdcd-11e4-bfba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb736bb8-cdcd-11e4-b2e2-705681abff85"], ["organization_id", "eb7509b4-cdcd-11e4-bfba-705681abff85"], ["created_at", "2015-03-19 00:21:43.031242"], ["updated_at", "2015-03-19 00:21:43.031242"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$bDL5n29vvMqnmDx2Jw0Rkedem4v2M1SeMKCx6T0irG/p1MoNedR.O"], ["created_at", "2015-03-19 00:21:43.048573"], ["updated_at", "2015-03-19 00:21:43.048573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.050615"], ["user_id", "eb788d5a-cdcd-11e4-b442-705681abff85"], ["created_at", "2015-03-19 00:21:43.051728"], ["updated_at", "2015-03-19 00:21:43.051728"], ["token", "f2jwmsr2FOLJvK25hHYRE-ZazpJNtEoDHSSnokloaMs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.055295"], ["updated_at", "2015-03-19 00:21:43.055295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb788d5a-cdcd-11e4-b442-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb799d44-cdcd-11e4-8d2e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb788d5a-cdcd-11e4-b442-705681abff85"], ["organization_id", "eb799d44-cdcd-11e4-8d2e-705681abff85"], ["created_at", "2015-03-19 00:21:43.059447"], ["updated_at", "2015-03-19 00:21:43.059447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:43.064469' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "f2jwmsr2FOLJvK25hHYRE-ZazpJNtEoDHSSnokloaMs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:43.066132"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:43.067188"], ["id", "eb790f3c-cdcd-11e4-b472-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$WkM/ViAyHLcxcf3O8HB4t.DkzDwpVd1bmBiX4mVFA05TzIReJefxa"], ["created_at", "2015-03-19 00:21:43.085670"], ["updated_at", "2015-03-19 00:21:43.085670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.087669"], ["user_id", "eb7e37fa-cdcd-11e4-84a5-705681abff85"], ["created_at", "2015-03-19 00:21:43.089031"], ["updated_at", "2015-03-19 00:21:43.089031"], ["token", "LwaZIrXTSvy2ASSEkYonxk3FzCvimaNXdCZW79Cxq9A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.092910"], ["updated_at", "2015-03-19 00:21:43.092910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb7e37fa-cdcd-11e4-84a5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb7f59b4-cdcd-11e4-9ff7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb7e37fa-cdcd-11e4-84a5-705681abff85"], ["organization_id", "eb7f59b4-cdcd-11e4-9ff7-705681abff85"], ["created_at", "2015-03-19 00:21:43.097045"], ["updated_at", "2015-03-19 00:21:43.097045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:43.104229' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LwaZIrXTSvy2ASSEkYonxk3FzCvimaNXdCZW79Cxq9A"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:43.106700"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:43.110349"], ["id", "eb7ec396-cdcd-11e4-8376-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 27ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$bEx2unLcqfFxvaVOhHbUGe4aXiaAeNCiLxuaiq6RXCE8OhJmxYRH2"], ["created_at", "2015-03-19 00:21:43.143450"], ["updated_at", "2015-03-19 00:21:43.143450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.145300"], ["user_id", "eb8707ea-cdcd-11e4-bc83-705681abff85"], ["created_at", "2015-03-19 00:21:43.146173"], ["updated_at", "2015-03-19 00:21:43.146173"], ["token", "3btw_1BBuKeubwZQQ-tIVWTpKLhyWAb9zijybVYQ1Z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.150288"], ["updated_at", "2015-03-19 00:21:43.150288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb8707ea-cdcd-11e4-bc83-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb880f82-cdcd-11e4-85d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb8707ea-cdcd-11e4-bc83-705681abff85"], ["organization_id", "eb880f82-cdcd-11e4-85d5-705681abff85"], ["created_at", "2015-03-19 00:21:43.153903"], ["updated_at", "2015-03-19 00:21:43.153903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$qtFzgRmCTlsXn30dxpx52eK38gq0njtLsRpidwq7fI0wDzfonlMBW"], ["created_at", "2015-03-19 00:21:43.164297"], ["updated_at", "2015-03-19 00:21:43.164297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.166016"], ["user_id", "eb8a31d6-cdcd-11e4-bede-705681abff85"], ["created_at", "2015-03-19 00:21:43.166811"], ["updated_at", "2015-03-19 00:21:43.166811"], ["token", "stYy9RPZqbj22929GLqfVmiaMz0YyeV6dPbwIUFJoGc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.170558"], ["updated_at", "2015-03-19 00:21:43.170558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb8a31d6-cdcd-11e4-bede-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb8b2924-cdcd-11e4-877a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb8a31d6-cdcd-11e4-bede-705681abff85"], ["organization_id", "eb8b2924-cdcd-11e4-877a-705681abff85"], ["created_at", "2015-03-19 00:21:43.174414"], ["updated_at", "2015-03-19 00:21:43.174414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/eb8b2924-cdcd-11e4-877a-705681abff85" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"eb8b2924-cdcd-11e4-877a-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:43.179312' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "stYy9RPZqbj22929GLqfVmiaMz0YyeV6dPbwIUFJoGc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:43.180857"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:43.182390"], ["id", "eb8a9cf2-cdcd-11e4-a488-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$91hjXCScEJCwSafC95iEq.aPITJyYTPybU0LoFUFMBo75vvcb/muW"], ["created_at", "2015-03-19 00:21:43.191185"], ["updated_at", "2015-03-19 00:21:43.191185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.193074"], ["user_id", "eb8e4e24-cdcd-11e4-bd81-705681abff85"], ["created_at", "2015-03-19 00:21:43.193998"], ["updated_at", "2015-03-19 00:21:43.193998"], ["token", "JdgCppaC7PqUIjFQfZ3Wrpth_q9iAoWa47j34JAhuRc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.197703"], ["updated_at", "2015-03-19 00:21:43.197703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb8e4e24-cdcd-11e4-bd81-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb8f51d4-cdcd-11e4-8a57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb8e4e24-cdcd-11e4-bd81-705681abff85"], ["organization_id", "eb8f51d4-cdcd-11e4-8a57-705681abff85"], ["created_at", "2015-03-19 00:21:43.202020"], ["updated_at", "2015-03-19 00:21:43.202020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Nit2gN6/JyIJzy56W2no2uhxyzyn8txCUR8hGRJS3GNMZ15Mq4rKa"], ["created_at", "2015-03-19 00:21:43.212223"], ["updated_at", "2015-03-19 00:21:43.212223"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.215394"], ["user_id", "eb918242-cdcd-11e4-926d-705681abff85"], ["created_at", "2015-03-19 00:21:43.216312"], ["updated_at", "2015-03-19 00:21:43.216312"], ["token", "iNIaByRaYVITx4zgVzzIX9lN7zQpiH8ntErL8ey5SQQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.220156"], ["updated_at", "2015-03-19 00:21:43.220156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb918242-cdcd-11e4-926d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb92bf7c-cdcd-11e4-baad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb918242-cdcd-11e4-926d-705681abff85"], ["organization_id", "eb92bf7c-cdcd-11e4-baad-705681abff85"], ["created_at", "2015-03-19 00:21:43.224052"], ["updated_at", "2015-03-19 00:21:43.224052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-16" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-16", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:43.228910' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iNIaByRaYVITx4zgVzzIX9lN7zQpiH8ntErL8ey5SQQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:43.230351"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:43.231377"], ["id", "eb922b7a-cdcd-11e4-99ce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb918242-cdcd-11e4-926d-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$F2LXKa/tJyR2qyL7/CdHNe53BLswyKgcr.nhi8rMVj2.FFU.zd.bC"], ["created_at", "2015-03-19 00:21:43.239719"], ["updated_at", "2015-03-19 00:21:43.239719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.241277"], ["user_id", "eb95b330-cdcd-11e4-96ec-705681abff85"], ["created_at", "2015-03-19 00:21:43.242039"], ["updated_at", "2015-03-19 00:21:43.242039"], ["token", "y3RQ8vNFOe5NSV0VEddRDCM0Xq4fPu4CUiTW83efiHc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.245553"], ["updated_at", "2015-03-19 00:21:43.245553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb95b330-cdcd-11e4-96ec-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb969b60-cdcd-11e4-b54d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb95b330-cdcd-11e4-96ec-705681abff85"], ["organization_id", "eb969b60-cdcd-11e4-b54d-705681abff85"], ["created_at", "2015-03-19 00:21:43.250144"], ["updated_at", "2015-03-19 00:21:43.250144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-17" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-17", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:43.255209' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y3RQ8vNFOe5NSV0VEddRDCM0Xq4fPu4CUiTW83efiHc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:43.256934"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:43.258753"], ["id", "eb961546-cdcd-11e4-839a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb95b330-cdcd-11e4-96ec-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$gknE3/6sp/xM8g/Gyw5TrebgrHANufNXIWpamyDNp/A0/WsnLI5ye"], ["created_at", "2015-03-19 00:21:43.271035"], ["updated_at", "2015-03-19 00:21:43.271035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.273072"], ["user_id", "eb9a8590-cdcd-11e4-a733-705681abff85"], ["created_at", "2015-03-19 00:21:43.273884"], ["updated_at", "2015-03-19 00:21:43.273884"], ["token", "weXkij0CCDPt8bmK-K5XuhVQotXbjAhV9qgo15CEKxk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.277584"], ["updated_at", "2015-03-19 00:21:43.277584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb9a8590-cdcd-11e4-a733-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb9b78ce-cdcd-11e4-ad6b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb9a8590-cdcd-11e4-a733-705681abff85"], ["organization_id", "eb9b78ce-cdcd-11e4-ad6b-705681abff85"], ["created_at", "2015-03-19 00:21:43.280874"], ["updated_at", "2015-03-19 00:21:43.280874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$4ssSuBpN/YQspegScfBcveoH8QGzpfbxFw2YIrN7/mnzncl4LiCx."], ["created_at", "2015-03-19 00:21:43.290932"], ["updated_at", "2015-03-19 00:21:43.290932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.292770"], ["user_id", "eb9d852e-cdcd-11e4-98ad-705681abff85"], ["created_at", "2015-03-19 00:21:43.293563"], ["updated_at", "2015-03-19 00:21:43.293563"], ["token", "QfSP5noiEZjf5_QWprEISAoMi41LHax3_nD7G5TtPjY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.297396"], ["updated_at", "2015-03-19 00:21:43.297396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb9d852e-cdcd-11e4-98ad-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb9e8a0a-cdcd-11e4-be74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb9d852e-cdcd-11e4-98ad-705681abff85"], ["organization_id", "eb9e8a0a-cdcd-11e4-be74-705681abff85"], ["created_at", "2015-03-19 00:21:43.301208"], ["updated_at", "2015-03-19 00:21:43.301208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-19" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-19", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:43.306734' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QfSP5noiEZjf5_QWprEISAoMi41LHax3_nD7G5TtPjY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:43.308173"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:43.309452"], ["id", "eb9df234-cdcd-11e4-a22d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$6kl4CVhOaWAExmHOfO6.7eIIISngcyGpYGeyTJ1f3sTHPOzeD.6Ge"], ["created_at", "2015-03-19 00:21:43.316520"], ["updated_at", "2015-03-19 00:21:43.316520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.318118"], ["user_id", "eba16de2-cdcd-11e4-ade2-705681abff85"], ["created_at", "2015-03-19 00:21:43.318940"], ["updated_at", "2015-03-19 00:21:43.318940"], ["token", "4sias721U_XRC01MvjhTXJQBhOwS_uGsSqAKxZxyZmU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.323295"], ["updated_at", "2015-03-19 00:21:43.323295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eba16de2-cdcd-11e4-ade2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eba279b2-cdcd-11e4-9585-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eba16de2-cdcd-11e4-ade2-705681abff85"], ["organization_id", "eba279b2-cdcd-11e4-9585-705681abff85"], ["created_at", "2015-03-19 00:21:43.326912"], ["updated_at", "2015-03-19 00:21:43.326912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$olWGoNtnSnEdqIBRHCwhU.xRhsgZ2XGWmcpmdE.FINe1eyyHoedZ2"], ["created_at", "2015-03-19 00:21:43.337208"], ["updated_at", "2015-03-19 00:21:43.337208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.338959"], ["user_id", "eba49472-cdcd-11e4-9812-705681abff85"], ["created_at", "2015-03-19 00:21:43.339760"], ["updated_at", "2015-03-19 00:21:43.339760"], ["token", "L6VF676yNEuYrmqAaHokLwcfBTv3xpUXfSEIIfES7nw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.343072"], ["updated_at", "2015-03-19 00:21:43.343072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eba49472-cdcd-11e4-9812-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eba57680-cdcd-11e4-b999-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eba49472-cdcd-11e4-9812-705681abff85"], ["organization_id", "eba57680-cdcd-11e4-b999-705681abff85"], ["created_at", "2015-03-19 00:21:43.346356"], ["updated_at", "2015-03-19 00:21:43.346356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-21" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-21", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:43.350731' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "L6VF676yNEuYrmqAaHokLwcfBTv3xpUXfSEIIfES7nw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:43.352390"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:43.353902"], ["id", "eba4fd4a-cdcd-11e4-a8d5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$HfLd7sHmuFVVlWRhMceChOj4T.CpiNJ7K7/Ee0v9joz3ca3u2YMty"], ["created_at", "2015-03-19 00:21:43.361454"], ["updated_at", "2015-03-19 00:21:43.361454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.363144"], ["user_id", "eba846c6-cdcd-11e4-b81b-705681abff85"], ["created_at", "2015-03-19 00:21:43.363907"], ["updated_at", "2015-03-19 00:21:43.363907"], ["token", "kb8dQJXkkwitgPKVtttNk9DJ_g8KkN-BN4-yk6vkf50"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.367726"], ["updated_at", "2015-03-19 00:21:43.367726"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eba846c6-cdcd-11e4-b81b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eba9429c-cdcd-11e4-acf5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eba846c6-cdcd-11e4-b81b-705681abff85"], ["organization_id", "eba9429c-cdcd-11e4-acf5-705681abff85"], ["created_at", "2015-03-19 00:21:43.373295"], ["updated_at", "2015-03-19 00:21:43.373295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:43.377972' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kb8dQJXkkwitgPKVtttNk9DJ_g8KkN-BN4-yk6vkf50"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:43.379478"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:43.380524"], ["id", "eba8ae36-cdcd-11e4-b5c2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$uPb4hfPk/wGzT9DsYYysGef2yfdCr1M47wxOXnIjciiKg1ENzKTpG"], ["created_at", "2015-03-19 00:21:43.387686"], ["updated_at", "2015-03-19 00:21:43.387686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.389394"], ["user_id", "ebac48ca-cdcd-11e4-b420-705681abff85"], ["created_at", "2015-03-19 00:21:43.390167"], ["updated_at", "2015-03-19 00:21:43.390167"], ["token", "FMMNMELy83-78M4XfVFvpQcpIg9zEEnP9nFKcqb4fyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.393771"], ["updated_at", "2015-03-19 00:21:43.393771"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebac48ca-cdcd-11e4-b420-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebad337a-cdcd-11e4-b428-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ebac48ca-cdcd-11e4-b420-705681abff85"], ["organization_id", "ebad337a-cdcd-11e4-b428-705681abff85"], ["created_at", "2015-03-19 00:21:43.398143"], ["updated_at", "2015-03-19 00:21:43.398143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$x/sg1.t5eCaXkMepvlT/CO9xFH5MOwN2hChWW9GV7R1.zscq5zDaG"], ["created_at", "2015-03-19 00:21:43.408100"], ["updated_at", "2015-03-19 00:21:43.408100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:21:43.409733"], ["user_id", "ebaf662c-cdcd-11e4-ab8b-705681abff85"], ["created_at", "2015-03-19 00:21:43.410476"], ["updated_at", "2015-03-19 00:21:43.410476"], ["token", "Xs7cO5oHBZPk0I-wDSsuoYfuhjZ5cYIhAe6MIQm1y_M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:21:43.414228"], ["updated_at", "2015-03-19 00:21:43.414228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebaf662c-cdcd-11e4-ab8b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebb055a0-cdcd-11e4-a39b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ebaf662c-cdcd-11e4-ab8b-705681abff85"], ["organization_id", "ebb055a0-cdcd-11e4-a39b-705681abff85"], ["created_at", "2015-03-19 00:21:43.417978"], ["updated_at", "2015-03-19 00:21:43.417978"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-24" for 127.0.0.1 at 2015-03-18 17:21:43 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-24", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:21:43.425078' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Xs7cO5oHBZPk0I-wDSsuoYfuhjZ5cYIhAe6MIQm1y_M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:21:43.426457"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:21:43.427557"], ["id", "ebafcb26-cdcd-11e4-871a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ebaf662c-cdcd-11e4-ab8b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 AND "clubhouse_organizations"."name" = $2 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["member_id", "ebaf662c-cdcd-11e4-ab8b-705681abff85"], ["name", "org-24"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$H78E9D2uzBw.52eMDMvb4Oe0VvlvS2qiWzNrBFJAUQ7SNGIuTZQ2S"], ["created_at", "2015-03-19 00:22:01.260766"], ["updated_at", "2015-03-19 00:22:01.260766"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.326106"], ["user_id", "f656a8ec-cdcd-11e4-9e02-705681abff85"], ["created_at", "2015-03-19 00:22:01.332104"], ["updated_at", "2015-03-19 00:22:01.332104"], ["token", "imM3mYssw3llgFrGqhwf3Fhg1HZmXz4DJF4SJG6kfpw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.341183"], ["updated_at", "2015-03-19 00:22:01.341183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f656a8ec-cdcd-11e4-9e02-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f65fcbd4-cdcd-11e4-b208-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f656a8ec-cdcd-11e4-9e02-705681abff85"], ["organization_id", "f65fcbd4-cdcd-11e4-b208-705681abff85"], ["created_at", "2015-03-19 00:22:01.354074"], ["updated_at", "2015-03-19 00:22:01.354074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-1" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.384009' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "imM3mYssw3llgFrGqhwf3Fhg1HZmXz4DJF4SJG6kfpw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (11.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.391007"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.392151"], ["id", "f65e793c-cdcd-11e4-8058-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-1"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f656a8ec-cdcd-11e4-9e02-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f656a8ec-cdcd-11e4-9e02-705681abff85' LIMIT 1 [["organization_id", "f65fcbd4-cdcd-11e4-b208-705681abff85"]] Completed 200 OK in 41ms (Views: 2.1ms | ActiveRecord: 13.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$e/v7J37kWSvRLxR/dM6RZ.q2P1T5N8lAhRLvXkXWV7hfu6y5v2.HK"], ["created_at", "2015-03-19 00:22:01.433777"], ["updated_at", "2015-03-19 00:22:01.433777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.435457"], ["user_id", "f66de76e-cdcd-11e4-ba4d-705681abff85"], ["created_at", "2015-03-19 00:22:01.436224"], ["updated_at", "2015-03-19 00:22:01.436224"], ["token", "YUbBa8PnlD8ov_uG7eFAPefA6ZV-2EV2qZ7ROjqtDbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.439694"], ["updated_at", "2015-03-19 00:22:01.439694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f66de76e-cdcd-11e4-ba4d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f66ecc42-cdcd-11e4-9217-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f66de76e-cdcd-11e4-ba4d-705681abff85"], ["organization_id", "f66ecc42-cdcd-11e4-9217-705681abff85"], ["created_at", "2015-03-19 00:22:01.442978"], ["updated_at", "2015-03-19 00:22:01.442978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$PH3Rscxzbu.2ASmcukn1MOiYNFIfUqB3W8b3taE1FdVLqzeY//0zO"], ["created_at", "2015-03-19 00:22:01.453143"], ["updated_at", "2015-03-19 00:22:01.453143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.454753"], ["user_id", "f670da00-cdcd-11e4-a0bf-705681abff85"], ["created_at", "2015-03-19 00:22:01.455632"], ["updated_at", "2015-03-19 00:22:01.455632"], ["token", "kjC26YqSrWaSqIUrUQSA0ysdmzMGDeKt1Q0rhHmarog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.459111"], ["updated_at", "2015-03-19 00:22:01.459111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f670da00-cdcd-11e4-a0bf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f671c122-cdcd-11e4-a82b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f670da00-cdcd-11e4-a0bf-705681abff85"], ["organization_id", "f671c122-cdcd-11e4-a82b-705681abff85"], ["created_at", "2015-03-19 00:22:01.462319"], ["updated_at", "2015-03-19 00:22:01.462319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$DkJ51Lt7K5qZ87zOk8ceh.0IHkzxdd0T4FbKOKG54.EqC4khHd2Uu"], ["created_at", "2015-03-19 00:22:01.472412"], ["updated_at", "2015-03-19 00:22:01.472412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.474102"], ["user_id", "f673cb52-cdcd-11e4-973c-705681abff85"], ["created_at", "2015-03-19 00:22:01.475388"], ["updated_at", "2015-03-19 00:22:01.475388"], ["token", "W8Gvh8Rd5LaibcKXp5NShDgaR4rHNqh4bC-CRvYAnVQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.479449"], ["updated_at", "2015-03-19 00:22:01.479449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f673cb52-cdcd-11e4-973c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f674df38-cdcd-11e4-a09b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f673cb52-cdcd-11e4-973c-705681abff85"], ["organization_id", "f674df38-cdcd-11e4-a09b-705681abff85"], ["created_at", "2015-03-19 00:22:01.483033"], ["updated_at", "2015-03-19 00:22:01.483033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-4" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-4", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.489445' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "W8Gvh8Rd5LaibcKXp5NShDgaR4rHNqh4bC-CRvYAnVQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.491137"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.492566"], ["id", "f674520c-cdcd-11e4-96e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f673cb52-cdcd-11e4-973c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f673cb52-cdcd-11e4-973c-705681abff85' LIMIT 1 [["organization_id", "f674df38-cdcd-11e4-a09b-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$ys5W45R21HQciiJPNS3vxOlemUZ6UeIbcux//SFmtO5xtibejT4r6"], ["created_at", "2015-03-19 00:22:01.503773"], ["updated_at", "2015-03-19 00:22:01.503773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.505393"], ["user_id", "f6789402-cdcd-11e4-9805-705681abff85"], ["created_at", "2015-03-19 00:22:01.506148"], ["updated_at", "2015-03-19 00:22:01.506148"], ["token", "uIssuSoPJ9BV_WWL_rx9U2iw1W-xk25HlSo9AwD-GAg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.510010"], ["updated_at", "2015-03-19 00:22:01.510010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6789402-cdcd-11e4-9805-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6798f7e-cdcd-11e4-a3ca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6789402-cdcd-11e4-9805-705681abff85"], ["organization_id", "f6798f7e-cdcd-11e4-a3ca-705681abff85"], ["created_at", "2015-03-19 00:22:01.515903"], ["updated_at", "2015-03-19 00:22:01.515903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-5" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-5", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.520743' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uIssuSoPJ9BV_WWL_rx9U2iw1W-xk25HlSo9AwD-GAg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.522788"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.523990"], ["id", "f678f582-cdcd-11e4-b678-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-5"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6789402-cdcd-11e4-9805-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f6789402-cdcd-11e4-9805-705681abff85' LIMIT 1 [["organization_id", "f6798f7e-cdcd-11e4-a3ca-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$I4NU0yntzhM2ozCSaHbfWuoxNI2pD8RF3w.UgOy/s/gSXvOggwTYy"], ["created_at", "2015-03-19 00:22:01.536039"], ["updated_at", "2015-03-19 00:22:01.536039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.537665"], ["user_id", "f67d80ca-cdcd-11e4-aefc-705681abff85"], ["created_at", "2015-03-19 00:22:01.538697"], ["updated_at", "2015-03-19 00:22:01.538697"], ["token", "oftZ32LAx3__qppp-9ScFuTK-OdraPYNdrDW9WWjZnQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.542332"], ["updated_at", "2015-03-19 00:22:01.542332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f67d80ca-cdcd-11e4-aefc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f67e73d6-cdcd-11e4-9942-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f67d80ca-cdcd-11e4-aefc-705681abff85"], ["organization_id", "f67e73d6-cdcd-11e4-9942-705681abff85"], ["created_at", "2015-03-19 00:22:01.545418"], ["updated_at", "2015-03-19 00:22:01.545418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$KYRCoh1GbnEbI8SIN7BUcOJa/fJmO3mERbYbL0Mj1cL8g/8Jfd412"], ["created_at", "2015-03-19 00:22:01.555529"], ["updated_at", "2015-03-19 00:22:01.555529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.557167"], ["user_id", "f6807b72-cdcd-11e4-869b-705681abff85"], ["created_at", "2015-03-19 00:22:01.557958"], ["updated_at", "2015-03-19 00:22:01.557958"], ["token", "QhjGjx5AWdxQCTaAt_nj4N5kytWLHlGKVo77OvoCOlA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.561119"], ["updated_at", "2015-03-19 00:22:01.561119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6807b72-cdcd-11e4-869b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6814f66-cdcd-11e4-bba2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6807b72-cdcd-11e4-869b-705681abff85"], ["organization_id", "f6814f66-cdcd-11e4-bba2-705681abff85"], ["created_at", "2015-03-19 00:22:01.564325"], ["updated_at", "2015-03-19 00:22:01.564325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.569486' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QhjGjx5AWdxQCTaAt_nj4N5kytWLHlGKVo77OvoCOlA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.570915"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.572105"], ["id", "f680db76-cdcd-11e4-b1ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Completed 404 Not Found in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$6NyNRBsICtZ3XKfxWc/pvOdJHM8/4.V/TMXyiwLPXQfSchNE/Gade"], ["created_at", "2015-03-19 00:22:01.581232"], ["updated_at", "2015-03-19 00:22:01.581232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.583040"], ["user_id", "f6846ade-cdcd-11e4-bc1c-705681abff85"], ["created_at", "2015-03-19 00:22:01.583895"], ["updated_at", "2015-03-19 00:22:01.583895"], ["token", "yFbDwuJqGcd2JGl87XHWJCT0YeygAlCE-r_NbKxYccM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.587476"], ["updated_at", "2015-03-19 00:22:01.587476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6846ade-cdcd-11e4-bc1c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f685570a-cdcd-11e4-babd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6846ade-cdcd-11e4-bc1c-705681abff85"], ["organization_id", "f685570a-cdcd-11e4-babd-705681abff85"], ["created_at", "2015-03-19 00:22:01.591036"], ["updated_at", "2015-03-19 00:22:01.591036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-8" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-8", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.595863' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yFbDwuJqGcd2JGl87XHWJCT0YeygAlCE-r_NbKxYccM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.597296"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.598284"], ["id", "f684d67c-cdcd-11e4-8269-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$yc/nFRCUoZYASYvZ2NLM0eOpQxPNnG2xPEMjvBZ8JDkQMqqT8XlVW"], ["created_at", "2015-03-19 00:22:01.606362"], ["updated_at", "2015-03-19 00:22:01.606362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.608114"], ["user_id", "f6883c4a-cdcd-11e4-ae2b-705681abff85"], ["created_at", "2015-03-19 00:22:01.608934"], ["updated_at", "2015-03-19 00:22:01.608934"], ["token", "A5Fa2KKX3kmwLN5DZTGNKW0PGKDVgeZvBtus7bIzGZg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.613071"], ["updated_at", "2015-03-19 00:22:01.613071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6883c4a-cdcd-11e4-ae2b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f68943b0-cdcd-11e4-8fd4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6883c4a-cdcd-11e4-ae2b-705681abff85"], ["organization_id", "f68943b0-cdcd-11e4-8fd4-705681abff85"], ["created_at", "2015-03-19 00:22:01.616571"], ["updated_at", "2015-03-19 00:22:01.616571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$zUKspHL6eCFDE4DTuVTBwOKQMXVmy9ypgYl350jeKycMzRzyDOmIS"], ["created_at", "2015-03-19 00:22:01.621239"], ["updated_at", "2015-03-19 00:22:01.621239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.624384"], ["updated_at", "2015-03-19 00:22:01.624384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f68a7f64-cdcd-11e4-b076-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f68b0380-cdcd-11e4-9ca3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f68a7f64-cdcd-11e4-b076-705681abff85"], ["organization_id", "f68b0380-cdcd-11e4-9ca3-705681abff85"], ["created_at", "2015-03-19 00:22:01.628646"], ["updated_at", "2015-03-19 00:22:01.628646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.633338' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A5Fa2KKX3kmwLN5DZTGNKW0PGKDVgeZvBtus7bIzGZg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.635583"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.637412"], ["id", "f688a69e-cdcd-11e4-b74b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6883c4a-cdcd-11e4-ae2b-705681abff85"]] Completed 500 Internal Server Error in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$lscHmUdOW.gs7uEcaLDNpOmHxH36Fv9RMDMwcKZSlYWsWeEUx6m5a"], ["created_at", "2015-03-19 00:22:01.653076"], ["updated_at", "2015-03-19 00:22:01.653076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (17.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.654766"], ["user_id", "f68f5dea-cdcd-11e4-85a7-705681abff85"], ["created_at", "2015-03-19 00:22:01.655570"], ["updated_at", "2015-03-19 00:22:01.655570"], ["token", "DuwZ02VFAedd6WqDmr2tLmrq5Ookwif-tif1L_7nCno"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.681103"], ["updated_at", "2015-03-19 00:22:01.681103"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f68f5dea-cdcd-11e4-85a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f693c5ba-cdcd-11e4-82f2-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f68f5dea-cdcd-11e4-85a7-705681abff85"], ["organization_id", "f693c5ba-cdcd-11e4-82f2-705681abff85"], ["created_at", "2015-03-19 00:22:01.690393"], ["updated_at", "2015-03-19 00:22:01.690393"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$M2lLFqn0bndInSWJcGo1oOV7zBpGIA.EuA9Cmi9OcayiPEulzdLmu"], ["created_at", "2015-03-19 00:22:01.698372"], ["updated_at", "2015-03-19 00:22:01.698372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.705141"], ["updated_at", "2015-03-19 00:22:01.705141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f696648c-cdcd-11e4-bc18-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6976864-cdcd-11e4-bf14-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f696648c-cdcd-11e4-bc18-705681abff85"], ["organization_id", "f6976864-cdcd-11e4-bf14-705681abff85"], ["created_at", "2015-03-19 00:22:01.717811"], ["updated_at", "2015-03-19 00:22:01.717811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$nL3vcRIv0yngbuqcb5GzauxA7P4SZp5/Ebd2nzX4g79Cx9/HjRGwS"], ["created_at", "2015-03-19 00:22:01.729052"], ["updated_at", "2015-03-19 00:22:01.729052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.730845"], ["user_id", "f69af7b8-cdcd-11e4-8bb3-705681abff85"], ["created_at", "2015-03-19 00:22:01.731817"], ["updated_at", "2015-03-19 00:22:01.731817"], ["token", "UMQGznsPt8TPN8_FW7DW6WgP_cgijeaD3bYN8gpWt2Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.737355"], ["updated_at", "2015-03-19 00:22:01.737355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f69af7b8-cdcd-11e4-8bb3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f69c39c0-cdcd-11e4-bf49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f69af7b8-cdcd-11e4-8bb3-705681abff85"], ["organization_id", "f69c39c0-cdcd-11e4-bf49-705681abff85"], ["created_at", "2015-03-19 00:22:01.741738"], ["updated_at", "2015-03-19 00:22:01.741738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/f69c39c0-cdcd-11e4-bf49-705681abff85" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"f69c39c0-cdcd-11e4-bf49-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.746419' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UMQGznsPt8TPN8_FW7DW6WgP_cgijeaD3bYN8gpWt2Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.747887"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.748832"], ["id", "f69b6c5c-cdcd-11e4-9f46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f69c39c0-cdcd-11e4-bf49-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f69af7b8-cdcd-11e4-8bb3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f69af7b8-cdcd-11e4-8bb3-705681abff85' LIMIT 1 [["organization_id", "f69c39c0-cdcd-11e4-bf49-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$k9u4D9EFPSkA81uUkT1hLuE.SblltOx5fwPF/OB5NPZIr6KI5m2Z."], ["created_at", "2015-03-19 00:22:01.760768"], ["updated_at", "2015-03-19 00:22:01.760768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.762536"], ["user_id", "f69fcf22-cdcd-11e4-959c-705681abff85"], ["created_at", "2015-03-19 00:22:01.763316"], ["updated_at", "2015-03-19 00:22:01.763316"], ["token", "E29Dezg09vUTyplyx26NcMsXQ91fybgMf1XRN0gWMng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.767019"], ["updated_at", "2015-03-19 00:22:01.767019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f69fcf22-cdcd-11e4-959c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6a0c45e-cdcd-11e4-99bd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f69fcf22-cdcd-11e4-959c-705681abff85"], ["organization_id", "f6a0c45e-cdcd-11e4-99bd-705681abff85"], ["created_at", "2015-03-19 00:22:01.771698"], ["updated_at", "2015-03-19 00:22:01.771698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$zPDCu1N/WrmbmLXFYBvceuYLpdpvYSzvDiZ98TWsH3.OilywrcE1C"], ["created_at", "2015-03-19 00:22:01.783639"], ["updated_at", "2015-03-19 00:22:01.783639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.785987"], ["user_id", "f6a356ce-cdcd-11e4-8768-705681abff85"], ["created_at", "2015-03-19 00:22:01.786972"], ["updated_at", "2015-03-19 00:22:01.786972"], ["token", "rAclLu_U5ZosvgCkm4gf5oJdky5GxH0N-ckJwB3mGOc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.791039"], ["updated_at", "2015-03-19 00:22:01.791039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6a356ce-cdcd-11e4-8768-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6a466b8-cdcd-11e4-b3c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6a356ce-cdcd-11e4-8768-705681abff85"], ["organization_id", "f6a466b8-cdcd-11e4-b3c3-705681abff85"], ["created_at", "2015-03-19 00:22:01.794200"], ["updated_at", "2015-03-19 00:22:01.794200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$QXKbYRuSm/GxkqS5ozRnqOeLL8khBzEe4dtk7dM7zkHrVCpR1btIm"], ["created_at", "2015-03-19 00:22:01.803921"], ["updated_at", "2015-03-19 00:22:01.803921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.805523"], ["user_id", "f6a661ca-cdcd-11e4-b29b-705681abff85"], ["created_at", "2015-03-19 00:22:01.806313"], ["updated_at", "2015-03-19 00:22:01.806313"], ["token", "laRIE334BXdqAPNpy75SJRJ7AvbPPJxTshqyi03Jb_g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.809603"], ["updated_at", "2015-03-19 00:22:01.809603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6a661ca-cdcd-11e4-b29b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6a73a64-cdcd-11e4-b801-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6a661ca-cdcd-11e4-b29b-705681abff85"], ["organization_id", "f6a73a64-cdcd-11e4-b801-705681abff85"], ["created_at", "2015-03-19 00:22:01.812649"], ["updated_at", "2015-03-19 00:22:01.812649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/f6a73a64-cdcd-11e4-b801-705681abff85" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"f6a73a64-cdcd-11e4-b801-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.816975' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "laRIE334BXdqAPNpy75SJRJ7AvbPPJxTshqyi03Jb_g"]]  (0.2ms) SAVEPOINT active_record_1 SQL (2.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.818800"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.820312"], ["id", "f6a6c2dc-cdcd-11e4-af48-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f6a73a64-cdcd-11e4-b801-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6a661ca-cdcd-11e4-b29b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f6a661ca-cdcd-11e4-b29b-705681abff85' LIMIT 1 [["organization_id", "f6a73a64-cdcd-11e4-b801-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$ADm6QrlxFzVSdHbr.5ZSJ.R4.D7z4jZxPo7SZqSGqDpNGtat31Lfm"], ["created_at", "2015-03-19 00:22:01.836234"], ["updated_at", "2015-03-19 00:22:01.836234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.837929"], ["user_id", "f6ab50b8-cdcd-11e4-9a0b-705681abff85"], ["created_at", "2015-03-19 00:22:01.838713"], ["updated_at", "2015-03-19 00:22:01.838713"], ["token", "zQVhhoKI5hGbuXvuPEOPad50cRJ2HQZ61F6bq9QG9zg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.842124"], ["updated_at", "2015-03-19 00:22:01.842124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6ab50b8-cdcd-11e4-9a0b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6ac3118-cdcd-11e4-9a94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6ab50b8-cdcd-11e4-9a0b-705681abff85"], ["organization_id", "f6ac3118-cdcd-11e4-9a94-705681abff85"], ["created_at", "2015-03-19 00:22:01.845258"], ["updated_at", "2015-03-19 00:22:01.845258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/f6ac3118-cdcd-11e4-9a94-705681abff85" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"f6ac3118-cdcd-11e4-9a94-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.849576' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zQVhhoKI5hGbuXvuPEOPad50cRJ2HQZ61F6bq9QG9zg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.851306"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.852342"], ["id", "f6abb45e-cdcd-11e4-90c2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f6ac3118-cdcd-11e4-9a94-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6ab50b8-cdcd-11e4-9a0b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f6ab50b8-cdcd-11e4-9a0b-705681abff85' LIMIT 1 [["organization_id", "f6ac3118-cdcd-11e4-9a94-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$GSqXl9EdtyfEeB/BdHNuRuGcwWNWbp71XLGWMQ9ydaVgHGolz08ya"], ["created_at", "2015-03-19 00:22:01.861988"], ["updated_at", "2015-03-19 00:22:01.861988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.863761"], ["user_id", "f6af3d22-cdcd-11e4-b309-705681abff85"], ["created_at", "2015-03-19 00:22:01.864598"], ["updated_at", "2015-03-19 00:22:01.864598"], ["token", "FVOUIRHtaS2sUOrqAl4BjtycNGCSU9bhYti8MfM2sdc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.869513"], ["updated_at", "2015-03-19 00:22:01.869513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6af3d22-cdcd-11e4-b309-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6b063b4-cdcd-11e4-a3ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6af3d22-cdcd-11e4-b309-705681abff85"], ["organization_id", "f6b063b4-cdcd-11e4-a3ad-705681abff85"], ["created_at", "2015-03-19 00:22:01.873007"], ["updated_at", "2015-03-19 00:22:01.873007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/f6b063b4-cdcd-11e4-a3ad-705681abff85" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"f6b063b4-cdcd-11e4-a3ad-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.879051' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FVOUIRHtaS2sUOrqAl4BjtycNGCSU9bhYti8MfM2sdc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.880504"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.881618"], ["id", "f6afb8a6-cdcd-11e4-bdc8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f6b063b4-cdcd-11e4-a3ad-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6af3d22-cdcd-11e4-b309-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f6af3d22-cdcd-11e4-b309-705681abff85' LIMIT 1 [["organization_id", "f6b063b4-cdcd-11e4-a3ad-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$bB.ALntq4XGyuEZ6SYOdDOZd///6LHWmxlSekIFjtInpO242u2Hfa"], ["created_at", "2015-03-19 00:22:01.891075"], ["updated_at", "2015-03-19 00:22:01.891075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.892692"], ["user_id", "f6b3aed4-cdcd-11e4-960a-705681abff85"], ["created_at", "2015-03-19 00:22:01.893451"], ["updated_at", "2015-03-19 00:22:01.893451"], ["token", "xK35kkGC3fqsK46nq5Lbj36Z7LMkzk7eIzzY2C0kVPQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.896754"], ["updated_at", "2015-03-19 00:22:01.896754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6b3aed4-cdcd-11e4-960a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6b4882c-cdcd-11e4-b95c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6b3aed4-cdcd-11e4-960a-705681abff85"], ["organization_id", "f6b4882c-cdcd-11e4-b95c-705681abff85"], ["created_at", "2015-03-19 00:22:01.901542"], ["updated_at", "2015-03-19 00:22:01.901542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$gSgJlcko7NkmuBSTe03R7e.Sx7FrYclOiJpcgDQQtTvuhb38O84Im"], ["created_at", "2015-03-19 00:22:01.911871"], ["updated_at", "2015-03-19 00:22:01.911871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.913481"], ["user_id", "f6b6d8f2-cdcd-11e4-9b59-705681abff85"], ["created_at", "2015-03-19 00:22:01.914297"], ["updated_at", "2015-03-19 00:22:01.914297"], ["token", "bvB4k0dqyu9McRDFrILgw1mBKajpWADVyycslRrGdyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.917710"], ["updated_at", "2015-03-19 00:22:01.917710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6b6d8f2-cdcd-11e4-9b59-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6b7ba4c-cdcd-11e4-a2a6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6b6d8f2-cdcd-11e4-9b59-705681abff85"], ["organization_id", "f6b7ba4c-cdcd-11e4-a2a6-705681abff85"], ["created_at", "2015-03-19 00:22:01.921010"], ["updated_at", "2015-03-19 00:22:01.921010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-20" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.926206' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bvB4k0dqyu9McRDFrILgw1mBKajpWADVyycslRrGdyo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:01.927827"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:01.929388"], ["id", "f6b73d4c-cdcd-11e4-9352-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-20"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6b6d8f2-cdcd-11e4-9b59-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f6b6d8f2-cdcd-11e4-9b59-705681abff85' LIMIT 1 [["organization_id", "f6b7ba4c-cdcd-11e4-a2a6-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$nkpX6Kg55Kp7uTw5SPDfNO.WUy8pNEjwOz7PGJt4tH614wn8vQmC."], ["created_at", "2015-03-19 00:22:01.938860"], ["updated_at", "2015-03-19 00:22:01.938860"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.940956"], ["user_id", "f6baf6d0-cdcd-11e4-a6c2-705681abff85"], ["created_at", "2015-03-19 00:22:01.942511"], ["updated_at", "2015-03-19 00:22:01.942511"], ["token", "fFgPwOlesEV8spHj1MpJV52FWZIv7JlR0Uvq0v8aIpM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.947284"], ["updated_at", "2015-03-19 00:22:01.947284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6baf6d0-cdcd-11e4-a6c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6bc3f0e-cdcd-11e4-917c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6baf6d0-cdcd-11e4-a6c2-705681abff85"], ["organization_id", "f6bc3f0e-cdcd-11e4-917c-705681abff85"], ["created_at", "2015-03-19 00:22:01.950475"], ["updated_at", "2015-03-19 00:22:01.950475"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$T46D23gJMy1g4547JQg8tuvwhPlNdSQWX.Fzoi3DGEueS/r7NxxCq"], ["created_at", "2015-03-19 00:22:01.960053"], ["updated_at", "2015-03-19 00:22:01.960053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.961677"], ["user_id", "f6be3458-cdcd-11e4-a365-705681abff85"], ["created_at", "2015-03-19 00:22:01.962483"], ["updated_at", "2015-03-19 00:22:01.962483"], ["token", "4e68bdrK_uHXwFnnMrkt6XoKyX3cSsvv2GIIToM0E_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.965810"], ["updated_at", "2015-03-19 00:22:01.965810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6be3458-cdcd-11e4-a365-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6bf1904-cdcd-11e4-bb88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6be3458-cdcd-11e4-a365-705681abff85"], ["organization_id", "f6bf1904-cdcd-11e4-bb88-705681abff85"], ["created_at", "2015-03-19 00:22:01.969342"], ["updated_at", "2015-03-19 00:22:01.969342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$1u0Q1c1ld8FaP6YNK.sddOQguO4hvIrlmujEGEETeX4Zn4msKhcte"], ["created_at", "2015-03-19 00:22:01.981146"], ["updated_at", "2015-03-19 00:22:01.981146"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:01.986792"], ["user_id", "f6c1945e-cdcd-11e4-97af-705681abff85"], ["created_at", "2015-03-19 00:22:01.987942"], ["updated_at", "2015-03-19 00:22:01.987942"], ["token", "4SfzNtWE3cUmSjpICQEV5f4h9Dx_01hEHmsRqtV9DA4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:01.991933"], ["updated_at", "2015-03-19 00:22:01.991933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6c1945e-cdcd-11e4-97af-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6c30dac-cdcd-11e4-ae6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6c1945e-cdcd-11e4-97af-705681abff85"], ["organization_id", "f6c30dac-cdcd-11e4-ae6a-705681abff85"], ["created_at", "2015-03-19 00:22:01.995241"], ["updated_at", "2015-03-19 00:22:01.995241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:22:01 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:01.999757' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4SfzNtWE3cUmSjpICQEV5f4h9Dx_01hEHmsRqtV9DA4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:02.001514"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:02.002619"], ["id", "f6c28454-cdcd-11e4-8079-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6c1945e-cdcd-11e4-97af-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$ndWMRb.RUXTNjzzaulMYneBFHcNMg65F6Zg6JAI6xX7AWzCyYi9re"], ["created_at", "2015-03-19 00:22:02.018704"], ["updated_at", "2015-03-19 00:22:02.018704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:22:02.020757"], ["user_id", "f6c72784-cdcd-11e4-a1c0-705681abff85"], ["created_at", "2015-03-19 00:22:02.021774"], ["updated_at", "2015-03-19 00:22:02.021774"], ["token", "sc8AFpuemHvGCcnteUbvUeyVyOsdgOCEdhLB61A4h1E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:22:02.025454"], ["updated_at", "2015-03-19 00:22:02.025454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6c72784-cdcd-11e4-a1c0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'f6c82fc6-cdcd-11e4-85b5-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f6c72784-cdcd-11e4-a1c0-705681abff85"], ["organization_id", "f6c82fc6-cdcd-11e4-85b5-705681abff85"], ["created_at", "2015-03-19 00:22:02.029233"], ["updated_at", "2015-03-19 00:22:02.029233"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:22:02 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:22:02.041452' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sc8AFpuemHvGCcnteUbvUeyVyOsdgOCEdhLB61A4h1E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:22:02.043268"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:22:02.044281"], ["id", "f6c7adda-cdcd-11e4-a0e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6c72784-cdcd-11e4-a1c0-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$KrzVjb6Mf/.aZ8xrzkYTUeAB9hKBqHZJgB89oTfS/Coi1BQkTlvwG"], ["created_at", "2015-03-19 00:23:32.593434"], ["updated_at", "2015-03-19 00:23:32.593434"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (7.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:32.716698"], ["user_id", "2cc6ef0e-cdce-11e4-8f04-705681abff85"], ["created_at", "2015-03-19 00:23:32.733350"], ["updated_at", "2015-03-19 00:23:32.733350"], ["token", "JaPZIrQryU7uQDtXWtKl6Eqki1gJIKeTVam8WdKdZ4o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:32.756528"], ["updated_at", "2015-03-19 00:23:32.756528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cc6ef0e-cdce-11e4-8f04-705681abff85' AND "clubhouse_memberships"."organization_id" = '2cdcbe42-cdce-11e4-8c26-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cc6ef0e-cdce-11e4-8f04-705681abff85"], ["organization_id", "2cdcbe42-cdce-11e4-8c26-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:32.769986"], ["updated_at", "2015-03-19 00:23:32.769986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 17:23:32 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$wVPZlKONrIGHIvMAUhTuS.bs5qdKlD8zwY8D/FZLXgnzLyqgSpBYK"], ["created_at", "2015-03-19 00:23:32.808718"], ["updated_at", "2015-03-19 00:23:32.808718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:32.810657"], ["user_id", "2ce4a008-cdce-11e4-b167-705681abff85"], ["created_at", "2015-03-19 00:23:32.811459"], ["updated_at", "2015-03-19 00:23:32.811459"], ["token", "b1juPnoyR5k3g0vWABEaKoBW3SEoieRtFK-nOQ56zmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:32.814941"], ["updated_at", "2015-03-19 00:23:32.814941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ce4a008-cdce-11e4-b167-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ce595c6-cdce-11e4-a7fb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ce4a008-cdce-11e4-b167-705681abff85"], ["organization_id", "2ce595c6-cdce-11e4-a7fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:32.819233"], ["updated_at", "2015-03-19 00:23:32.819233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-2" for 127.0.0.1 at 2015-03-18 17:23:32 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-2", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:32.824042' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b1juPnoyR5k3g0vWABEaKoBW3SEoieRtFK-nOQ56zmM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:32.831154"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:32.832299"], ["id", "2ce50d86-cdce-11e4-9ab5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-2"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2ce4a008-cdce-11e4-b167-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2ce4a008-cdce-11e4-b167-705681abff85' LIMIT 1 [["organization_id", "2ce595c6-cdce-11e4-a7fb-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2ce595c6-cdce-11e4-a7fb-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:23:32.855822"], ["id", "2ce595c6-cdce-11e4-a7fb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 36ms (Views: 1.9ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$R9iLLJhFZpgYEh/Oac6i6uDex/wHzmKI2RHoZFUNTJK5EnXH9d0du"], ["created_at", "2015-03-19 00:23:32.868162"], ["updated_at", "2015-03-19 00:23:32.868162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (13.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:32.869944"], ["user_id", "2cedb1ac-cdce-11e4-81d9-705681abff85"], ["created_at", "2015-03-19 00:23:32.870749"], ["updated_at", "2015-03-19 00:23:32.870749"], ["token", "7cLdGJQnN-YYTM4g-3_6yzjFYpy1qSi4VzcbjMR96Xs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:32.887448"], ["updated_at", "2015-03-19 00:23:32.887448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cedb1ac-cdce-11e4-81d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '2cf09eb2-cdce-11e4-b590-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cedb1ac-cdce-11e4-81d9-705681abff85"], ["organization_id", "2cf09eb2-cdce-11e4-b590-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:32.891000"], ["updated_at", "2015-03-19 00:23:32.891000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-3" for 127.0.0.1 at 2015-03-18 17:23:32 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-3", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:32.897453' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7cLdGJQnN-YYTM4g-3_6yzjFYpy1qSi4VzcbjMR96Xs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:32.899048"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:32.900224"], ["id", "2cee1e44-cdce-11e4-8030-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-3"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2cedb1ac-cdce-11e4-81d9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2cedb1ac-cdce-11e4-81d9-705681abff85' LIMIT 1 [["organization_id", "2cf09eb2-cdce-11e4-b590-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2cf09eb2-cdce-11e4-b590-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$iYPuzbrHuT9txIcEhTPMEO4wLgR6iL9VPXMvN1bjef6Ovdd7jgo52"], ["created_at", "2015-03-19 00:23:32.926607"], ["updated_at", "2015-03-19 00:23:32.926607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:32.928617"], ["user_id", "2cf6a3ac-cdce-11e4-a9a2-705681abff85"], ["created_at", "2015-03-19 00:23:32.929410"], ["updated_at", "2015-03-19 00:23:32.929410"], ["token", "rkWAG9Yc8ZYTeaPy-H6tRbDaQbf4pC68N7EwSsbphJE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:32.932857"], ["updated_at", "2015-03-19 00:23:32.932857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cf6a3ac-cdce-11e4-a9a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2cf789ca-cdce-11e4-896e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cf6a3ac-cdce-11e4-a9a2-705681abff85"], ["organization_id", "2cf789ca-cdce-11e4-896e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:32.936217"], ["updated_at", "2015-03-19 00:23:32.936217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:23:32 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$GkEYADol59gfrz5RrjrhFuGwtbt/CtKUZEhseNJAyitkJt9EuPp9K"], ["created_at", "2015-03-19 00:23:32.946002"], ["updated_at", "2015-03-19 00:23:32.946002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:32.947797"], ["user_id", "2cf98de2-cdce-11e4-a533-705681abff85"], ["created_at", "2015-03-19 00:23:32.948627"], ["updated_at", "2015-03-19 00:23:32.948627"], ["token", "A7Y5IkTMm8Nf6s4ZOQetN1zPAKh1Zi12LtkQYqnjDMg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:32.951971"], ["updated_at", "2015-03-19 00:23:32.951971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cf98de2-cdce-11e4-a533-705681abff85' AND "clubhouse_memberships"."organization_id" = '2cfa754a-cdce-11e4-8186-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cf98de2-cdce-11e4-a533-705681abff85"], ["organization_id", "2cfa754a-cdce-11e4-8186-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:32.955239"], ["updated_at", "2015-03-19 00:23:32.955239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:23:32 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:32.960723' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A7Y5IkTMm8Nf6s4ZOQetN1zPAKh1Zi12LtkQYqnjDMg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:32.962182"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:32.963175"], ["id", "2cf9fb06-cdce-11e4-8029-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2cf98de2-cdce-11e4-a533-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$8K8oJGYKmNWPqvuQA2qdhuD5CB/.hHGsG9wJi3fqFcnX5fcYJFdou"], ["created_at", "2015-03-19 00:23:32.980236"], ["updated_at", "2015-03-19 00:23:32.980236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:32.981988"], ["user_id", "2cfecbd6-cdce-11e4-a45f-705681abff85"], ["created_at", "2015-03-19 00:23:32.983009"], ["updated_at", "2015-03-19 00:23:32.983009"], ["token", "Fynszov1Rp9Fpg3YAMrsWZEbQP3n6Gkmyd7pmCYF7IE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:32.986720"], ["updated_at", "2015-03-19 00:23:32.986720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cfecbd6-cdce-11e4-a45f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2cffc7d4-cdce-11e4-806c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cfecbd6-cdce-11e4-a45f-705681abff85"], ["organization_id", "2cffc7d4-cdce-11e4-806c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:32.990470"], ["updated_at", "2015-03-19 00:23:32.990470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:23:32 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:32.995332' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Fynszov1Rp9Fpg3YAMrsWZEbQP3n6Gkmyd7pmCYF7IE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (5.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:32.996743"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:32.997802"], ["id", "2cff3a44-cdce-11e4-b8f4-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2cfecbd6-cdce-11e4-a45f-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$mb1BBfzTcOcYUwNsihtfDuFgsyarKi4AZLpLIyN6sxxYmgwNIT8pW"], ["created_at", "2015-03-19 00:23:33.018124"], ["updated_at", "2015-03-19 00:23:33.018124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.019890"], ["user_id", "2d0492fa-cdce-11e4-abbe-705681abff85"], ["created_at", "2015-03-19 00:23:33.020719"], ["updated_at", "2015-03-19 00:23:33.020719"], ["token", "qVkKw9dOLQY2Ax4YAiTeaO8k52mro8TMTRduZw7oWW8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.024317"], ["updated_at", "2015-03-19 00:23:33.024317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d0492fa-cdce-11e4-abbe-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d05938a-cdce-11e4-9abd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d0492fa-cdce-11e4-abbe-705681abff85"], ["organization_id", "2d05938a-cdce-11e4-9abd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.029317"], ["updated_at", "2015-03-19 00:23:33.029317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$3ClEksJbCF/VOcaN8H7BTeKnCPqh9CdlEHY.1cuNUsXppMa13pP5m"], ["created_at", "2015-03-19 00:23:33.040103"], ["updated_at", "2015-03-19 00:23:33.040103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.041911"], ["user_id", "2d07efa4-cdce-11e4-880d-705681abff85"], ["created_at", "2015-03-19 00:23:33.042703"], ["updated_at", "2015-03-19 00:23:33.042703"], ["token", "p6r3gnrhWT9gxgP2_S753clWQ4MAOMnarvhf72dyxbo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.046156"], ["updated_at", "2015-03-19 00:23:33.046156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d07efa4-cdce-11e4-880d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d08d3ec-cdce-11e4-9e75-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d07efa4-cdce-11e4-880d-705681abff85"], ["organization_id", "2d08d3ec-cdce-11e4-9e75-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.049473"], ["updated_at", "2015-03-19 00:23:33.049473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/2d08d3ec-cdce-11e4-9e75-705681abff85" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"2d08d3ec-cdce-11e4-9e75-705681abff85", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:33.054192' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p6r3gnrhWT9gxgP2_S753clWQ4MAOMnarvhf72dyxbo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:33.055538"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:33.056494"], ["id", "2d08573c-cdce-11e4-a674-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2d08d3ec-cdce-11e4-9e75-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d07efa4-cdce-11e4-880d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2d07efa4-cdce-11e4-880d-705681abff85' LIMIT 1 [["organization_id", "2d08d3ec-cdce-11e4-9e75-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$5d4KpGSK1/wF6rE8VTtgBe44VyJQmlYBNwqQ..SxG/Jg7R19RtRd."], ["created_at", "2015-03-19 00:23:33.068368"], ["updated_at", "2015-03-19 00:23:33.068368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.070097"], ["user_id", "2d0c3eb0-cdce-11e4-a084-705681abff85"], ["created_at", "2015-03-19 00:23:33.070926"], ["updated_at", "2015-03-19 00:23:33.070926"], ["token", "haEmYx8_c9Ax0T2ukvHsCmup8uzx9Ho7-bvqCNnkzd4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.074378"], ["updated_at", "2015-03-19 00:23:33.074378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d0c3eb0-cdce-11e4-a084-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d0d2438-cdce-11e4-9ed5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d0c3eb0-cdce-11e4-a084-705681abff85"], ["organization_id", "2d0d2438-cdce-11e4-9ed5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.078638"], ["updated_at", "2015-03-19 00:23:33.078638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$CnFt07w3M8CW4oB7qy0As.lAtdqKeaGln9yGGk7u7X5SoGQmAunVy"], ["created_at", "2015-03-19 00:23:33.089731"], ["updated_at", "2015-03-19 00:23:33.089731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.091438"], ["user_id", "2d0f7e4a-cdce-11e4-9eaf-705681abff85"], ["created_at", "2015-03-19 00:23:33.092256"], ["updated_at", "2015-03-19 00:23:33.092256"], ["token", "yPf10YDG2pMxuHw_hAcjTEL4LHwllw_UJLA-QzOiais"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (6.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.095951"], ["updated_at", "2015-03-19 00:23:33.095951"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d0f7e4a-cdce-11e4-9eaf-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d1075ca-cdce-11e4-a60c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d0f7e4a-cdce-11e4-9eaf-705681abff85"], ["organization_id", "2d1075ca-cdce-11e4-a60c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.106671"], ["updated_at", "2015-03-19 00:23:33.106671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/2d1075ca-cdce-11e4-a60c-705681abff85" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"2d1075ca-cdce-11e4-a60c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:33.118678' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yPf10YDG2pMxuHw_hAcjTEL4LHwllw_UJLA-QzOiais"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:33.120648"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:33.123069"], ["id", "2d0fe7fe-cdce-11e4-9f63-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2d1075ca-cdce-11e4-a60c-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d0f7e4a-cdce-11e4-9eaf-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2d0f7e4a-cdce-11e4-9eaf-705681abff85' LIMIT 1 [["organization_id", "2d1075ca-cdce-11e4-a60c-705681abff85"]] Unpermitted parameters: id, organization  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2d1075ca-cdce-11e4-a60c-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:23:33.137726"], ["id", "2d1075ca-cdce-11e4-a60c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 22ms (Views: 0.6ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$NPEsnT55xauiIfuokFeRMOr1ggwBzIO87czNmJ.Smc4xGSS/i.z6y"], ["created_at", "2015-03-19 00:23:33.146143"], ["updated_at", "2015-03-19 00:23:33.146143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.148076"], ["user_id", "2d1822b6-cdce-11e4-a2a3-705681abff85"], ["created_at", "2015-03-19 00:23:33.148886"], ["updated_at", "2015-03-19 00:23:33.148886"], ["token", "I3t2md7YMx87T8JdXzRmR2MArVpwbXoBcq5MPRH87R8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.152446"], ["updated_at", "2015-03-19 00:23:33.152446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d1822b6-cdce-11e4-a2a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d190bf4-cdce-11e4-801b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d1822b6-cdce-11e4-a2a3-705681abff85"], ["organization_id", "2d190bf4-cdce-11e4-801b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.155761"], ["updated_at", "2015-03-19 00:23:33.155761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/2d190bf4-cdce-11e4-801b-705681abff85" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"2d190bf4-cdce-11e4-801b-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:33.160298' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "I3t2md7YMx87T8JdXzRmR2MArVpwbXoBcq5MPRH87R8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:33.162161"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:33.164088"], ["id", "2d1888a0-cdce-11e4-970a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2d190bf4-cdce-11e4-801b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d1822b6-cdce-11e4-a2a3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2d1822b6-cdce-11e4-a2a3-705681abff85' LIMIT 1 [["organization_id", "2d190bf4-cdce-11e4-801b-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2d190bf4-cdce-11e4-801b-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$6CuI2wp3XuOSLW7J9ZWPH.mpR0DyDoSqiMd0jtEuU4OLWPg3T.opS"], ["created_at", "2015-03-19 00:23:33.178699"], ["updated_at", "2015-03-19 00:23:33.178699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.180352"], ["user_id", "2d1d10dc-cdce-11e4-ac0b-705681abff85"], ["created_at", "2015-03-19 00:23:33.181109"], ["updated_at", "2015-03-19 00:23:33.181109"], ["token", "MDoUZ6646OXbs36B87ebBn5wTLTe2K5mhOWsKnk_um8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.184545"], ["updated_at", "2015-03-19 00:23:33.184545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d1d10dc-cdce-11e4-ac0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d1e05a0-cdce-11e4-ab84-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d1d10dc-cdce-11e4-ac0b-705681abff85"], ["organization_id", "2d1e05a0-cdce-11e4-ab84-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.189581"], ["updated_at", "2015-03-19 00:23:33.189581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ByZ8mDXbuIdSoLheqO1O1esUwDVdWqgwsWdM/waiI6oBWx31ctea."], ["created_at", "2015-03-19 00:23:33.195608"], ["updated_at", "2015-03-19 00:23:33.195608"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.200055"], ["updated_at", "2015-03-19 00:23:33.200055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d1fb238-cdce-11e4-bbd1-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d2051c0-cdce-11e4-835a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2d1fb238-cdce-11e4-bbd1-705681abff85"], ["organization_id", "2d2051c0-cdce-11e4-835a-705681abff85"], ["created_at", "2015-03-19 00:23:33.203319"], ["updated_at", "2015-03-19 00:23:33.203319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$3xJwGwN63/0kxuzp4nBa5u7K24np2ckanMyYvuhRc9CbjUVOzCa8K"], ["created_at", "2015-03-19 00:23:33.213044"], ["updated_at", "2015-03-19 00:23:33.213044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.214661"], ["user_id", "2d224d54-cdce-11e4-8c48-705681abff85"], ["created_at", "2015-03-19 00:23:33.215442"], ["updated_at", "2015-03-19 00:23:33.215442"], ["token", "wR3LmmCrnjImCnTkUVWW07lxwUJQGap8EnLI83Et8cI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.218668"], ["updated_at", "2015-03-19 00:23:33.218668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d224d54-cdce-11e4-8c48-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d232558-cdce-11e4-9261-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d224d54-cdce-11e4-8c48-705681abff85"], ["organization_id", "2d232558-cdce-11e4-9261-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.222105"], ["updated_at", "2015-03-19 00:23:33.222105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$pKFgZuOaivlP2DDdifzoZ.HAoamfy8belmef3xThZOYSNxRQm/x7q"], ["created_at", "2015-03-19 00:23:33.226524"], ["updated_at", "2015-03-19 00:23:33.226524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.229637"], ["updated_at", "2015-03-19 00:23:33.229637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d245b8a-cdce-11e4-ac58-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d24d2a4-cdce-11e4-8e46-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2d245b8a-cdce-11e4-ac58-705681abff85"], ["organization_id", "2d24d2a4-cdce-11e4-8e46-705681abff85"], ["created_at", "2015-03-19 00:23:33.233586"], ["updated_at", "2015-03-19 00:23:33.233586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:33.239803' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wR3LmmCrnjImCnTkUVWW07lxwUJQGap8EnLI83Et8cI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:33.241287"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:33.242334"], ["id", "2d22aeac-cdce-11e4-bcd6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d224d54-cdce-11e4-8c48-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$xga9rzLszvLEpzSbZ02Nee3I3RHJcPXqy8WbLkj3q.CpFqZYOh/le"], ["created_at", "2015-03-19 00:23:33.252922"], ["updated_at", "2015-03-19 00:23:33.252922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.254593"], ["user_id", "2d286428-cdce-11e4-9a5a-705681abff85"], ["created_at", "2015-03-19 00:23:33.255384"], ["updated_at", "2015-03-19 00:23:33.255384"], ["token", "tQzotNGNAGlB3it0BvFDihtI-qe3q9Gh1MlTu5Vzie8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.258849"], ["updated_at", "2015-03-19 00:23:33.258849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d286428-cdce-11e4-9a5a-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d294bd6-cdce-11e4-962f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d286428-cdce-11e4-9a5a-705681abff85"], ["organization_id", "2d294bd6-cdce-11e4-962f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.263137"], ["updated_at", "2015-03-19 00:23:33.263137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$KcfKGpyk0skL4GaselXMZeM2U3YspJxF3IpBmoUyuHCMBLkI2IJVu"], ["created_at", "2015-03-19 00:23:33.272996"], ["updated_at", "2015-03-19 00:23:33.272996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.274645"], ["user_id", "2d2b732a-cdce-11e4-aae9-705681abff85"], ["created_at", "2015-03-19 00:23:33.275481"], ["updated_at", "2015-03-19 00:23:33.275481"], ["token", "ueBPvdUkZZlaQfHtlSQZwghOuVoDydNsoWsH32QDzYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.278983"], ["updated_at", "2015-03-19 00:23:33.278983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d2b732a-cdce-11e4-aae9-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d2c5a74-cdce-11e4-86ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d2b732a-cdce-11e4-aae9-705681abff85"], ["organization_id", "2d2c5a74-cdce-11e4-86ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.282159"], ["updated_at", "2015-03-19 00:23:33.282159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-17" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-17", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:33.286718' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ueBPvdUkZZlaQfHtlSQZwghOuVoDydNsoWsH32QDzYc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:33.288205"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:33.289428"], ["id", "2d2bdb4e-cdce-11e4-a318-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Completed 404 Not Found in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$wReSZDLIXi1plubBcR.gVuI0sATASdO4vvjQ1heRgRSKUUiHwoUXC"], ["created_at", "2015-03-19 00:23:33.297710"], ["updated_at", "2015-03-19 00:23:33.297710"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.301581"], ["user_id", "2d2f38fc-cdce-11e4-ac3e-705681abff85"], ["created_at", "2015-03-19 00:23:33.302426"], ["updated_at", "2015-03-19 00:23:33.302426"], ["token", "8UU5RQ8wt7jvyExYvGzpw0wNKnBmQzNHQmeSQtAYlS0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.305866"], ["updated_at", "2015-03-19 00:23:33.305866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d2f38fc-cdce-11e4-ac3e-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d30756e-cdce-11e4-8dab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d2f38fc-cdce-11e4-ac3e-705681abff85"], ["organization_id", "2d30756e-cdce-11e4-8dab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.309401"], ["updated_at", "2015-03-19 00:23:33.309401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:33.314731' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8UU5RQ8wt7jvyExYvGzpw0wNKnBmQzNHQmeSQtAYlS0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:33.316199"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:33.317193"], ["id", "2d2ff918-cdce-11e4-9e09-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$0tl8Lu9ivpz7.gGe5SIrO.PcD0ezw/qxdrO7PTYKOTNKIVSGsyekm"], ["created_at", "2015-03-19 00:23:33.324945"], ["updated_at", "2015-03-19 00:23:33.324945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.326565"], ["user_id", "2d3361ac-cdce-11e4-bfaa-705681abff85"], ["created_at", "2015-03-19 00:23:33.327342"], ["updated_at", "2015-03-19 00:23:33.327342"], ["token", "4t4q-hzaqCv2q6LZG2BC-hAPmJsJT7FYIe_jGvpyV5Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.332209"], ["updated_at", "2015-03-19 00:23:33.332209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d3361ac-cdce-11e4-bfaa-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d34841a-cdce-11e4-a3cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d3361ac-cdce-11e4-bfaa-705681abff85"], ["organization_id", "2d34841a-cdce-11e4-a3cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.336467"], ["updated_at", "2015-03-19 00:23:33.336467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$bm1eWdjVrdjXaHSxRvb7FOH3km43sIv5nNpxhGS32el1D/s1Fc46y"], ["created_at", "2015-03-19 00:23:33.346217"], ["updated_at", "2015-03-19 00:23:33.346217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.348138"], ["user_id", "2d369eee-cdce-11e4-8afa-705681abff85"], ["created_at", "2015-03-19 00:23:33.349025"], ["updated_at", "2015-03-19 00:23:33.349025"], ["token", "ZoI67rUaSyWHBWWlr2mPSfVLi2uSGc5H-ITjcQ4SeGA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.352954"], ["updated_at", "2015-03-19 00:23:33.352954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d369eee-cdce-11e4-8afa-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d37a492-cdce-11e4-a27f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d369eee-cdce-11e4-8afa-705681abff85"], ["organization_id", "2d37a492-cdce-11e4-a27f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.356563"], ["updated_at", "2015-03-19 00:23:33.356563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/2d37a492-cdce-11e4-a27f-705681abff85" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"2d37a492-cdce-11e4-a27f-705681abff85", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:33.361835' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZoI67rUaSyWHBWWlr2mPSfVLi2uSGc5H-ITjcQ4SeGA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:33.363304"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:33.364268"], ["id", "2d3717d4-cdce-11e4-a30f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2d37a492-cdce-11e4-a27f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d369eee-cdce-11e4-8afa-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2d369eee-cdce-11e4-8afa-705681abff85' LIMIT 1 [["organization_id", "2d37a492-cdce-11e4-a27f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "2d37a492-cdce-11e4-a27f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$3b6q9jAk4ywx/xDLUM80betNYUgvT9R1gs9SOMVa6.iIE2TfIDFxC"], ["created_at", "2015-03-19 00:23:33.375445"], ["updated_at", "2015-03-19 00:23:33.375445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.377144"], ["user_id", "2d3b1744-cdce-11e4-abad-705681abff85"], ["created_at", "2015-03-19 00:23:33.377983"], ["updated_at", "2015-03-19 00:23:33.377983"], ["token", "7NyxbXMxaGivpoj2R7O9iNkcCIDZnaEGMo9YafsIMxY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.383690"], ["updated_at", "2015-03-19 00:23:33.383690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d3b1744-cdce-11e4-abad-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d3c56cc-cdce-11e4-99b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d3b1744-cdce-11e4-abad-705681abff85"], ["organization_id", "2d3c56cc-cdce-11e4-99b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.387067"], ["updated_at", "2015-03-19 00:23:33.387067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$zt9gVmNUBZfAuOl.ZBhb/..RyYfE2J5CxLEAUSL9AUplcT7NbzgEW"], ["created_at", "2015-03-19 00:23:33.396866"], ["updated_at", "2015-03-19 00:23:33.396866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.398664"], ["user_id", "2d3e5f08-cdce-11e4-8142-705681abff85"], ["created_at", "2015-03-19 00:23:33.399458"], ["updated_at", "2015-03-19 00:23:33.399458"], ["token", "xKEUk0urMdkqgikZO7VZdT3IpZPjikM-TcNsJEfru90"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.402961"], ["updated_at", "2015-03-19 00:23:33.402961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d3e5f08-cdce-11e4-8142-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d3f45da-cdce-11e4-9c92-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d3e5f08-cdce-11e4-8142-705681abff85"], ["organization_id", "2d3f45da-cdce-11e4-9c92-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.406839"], ["updated_at", "2015-03-19 00:23:33.406839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-22" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-22", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:33.412637' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xKEUk0urMdkqgikZO7VZdT3IpZPjikM-TcNsJEfru90"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:33.414126"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:33.415333"], ["id", "2d3ec60a-cdce-11e4-8766-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-22"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d3e5f08-cdce-11e4-8142-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2d3e5f08-cdce-11e4-8142-705681abff85' LIMIT 1 [["organization_id", "2d3f45da-cdce-11e4-9c92-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "2d3f45da-cdce-11e4-9c92-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$/mg4Cjrr.SO2Gvcm59kfWu11OKbn7BDItagRIZ1BfHpbUu8Qt3Hj."], ["created_at", "2015-03-19 00:23:33.426316"], ["updated_at", "2015-03-19 00:23:33.426316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.427925"], ["user_id", "2d42d966-cdce-11e4-9986-705681abff85"], ["created_at", "2015-03-19 00:23:33.428830"], ["updated_at", "2015-03-19 00:23:33.428830"], ["token", "dxTLfFZQhMjmSwXPeo8NNt61oDs6aTNZG8KmjQOJ9hs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.432266"], ["updated_at", "2015-03-19 00:23:33.432266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d42d966-cdce-11e4-9986-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d43c11e-cdce-11e4-8142-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d42d966-cdce-11e4-9986-705681abff85"], ["organization_id", "2d43c11e-cdce-11e4-8142-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.435873"], ["updated_at", "2015-03-19 00:23:33.435873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$ceoJYO1n.NRAnS1GS/Bb5Oiz/4rguaYPb59tq084AQqgqZgNzrrd2"], ["created_at", "2015-03-19 00:23:33.447203"], ["updated_at", "2015-03-19 00:23:33.447203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:23:33.449609"], ["user_id", "2d461b58-cdce-11e4-b52f-705681abff85"], ["created_at", "2015-03-19 00:23:33.450399"], ["updated_at", "2015-03-19 00:23:33.450399"], ["token", "1H4q8iUuM_dYlCCfVq0eM6sCewnemZ2fBfwN1_7FfOY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:23:33.453873"], ["updated_at", "2015-03-19 00:23:33.453873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d461b58-cdce-11e4-b52f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2d470b9e-cdce-11e4-bdb6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d461b58-cdce-11e4-b52f-705681abff85"], ["organization_id", "2d470b9e-cdce-11e4-bdb6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:23:33.457449"], ["updated_at", "2015-03-19 00:23:33.457449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-24" for 127.0.0.1 at 2015-03-18 17:23:33 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-24", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:23:33.463278' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1H4q8iUuM_dYlCCfVq0eM6sCewnemZ2fBfwN1_7FfOY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:23:33.464772"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:23:33.465775"], ["id", "2d468afc-cdce-11e4-a8a9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d461b58-cdce-11e4-b52f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2d461b58-cdce-11e4-b52f-705681abff85' LIMIT 1 [["organization_id", "2d470b9e-cdce-11e4-bdb6-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (33.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$EXHmz4//Bye1qS.SwRfeV..Q/ypo1hVpWc99SYOcHnHe4frcAv1Lu"], ["created_at", "2015-03-19 00:26:01.636661"], ["updated_at", "2015-03-19 00:26:01.636661"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (5.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:01.862625"], ["user_id", "859e9820-cdce-11e4-87da-705681abff85"], ["created_at", "2015-03-19 00:26:01.877883"], ["updated_at", "2015-03-19 00:26:01.877883"], ["token", "hhuPkBkS3vazKANXI1j1zePpLNM4PdW2fKrSsNjfwDk"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:01.929420"], ["updated_at", "2015-03-19 00:26:01.929420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '859e9820-cdce-11e4-87da-705681abff85' AND "clubhouse_memberships"."organization_id" = '85c6c49e-cdce-11e4-96c7-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "859e9820-cdce-11e4-87da-705681abff85"], ["organization_id", "85c6c49e-cdce-11e4-96c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:01.943327"], ["updated_at", "2015-03-19 00:26:01.943327"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$UelOtniqaMnZePwmObLd6eAynLRWw/n6MhOBB206aTvv7QwiouJkK"], ["created_at", "2015-03-19 00:26:01.950766"], ["updated_at", "2015-03-19 00:26:01.950766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:01.954728"], ["updated_at", "2015-03-19 00:26:01.954728"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85c9e318-cdce-11e4-afc9-705681abff85' AND "clubhouse_memberships"."organization_id" = '85ca8336-cdce-11e4-9a20-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85c9e318-cdce-11e4-afc9-705681abff85"], ["organization_id", "85ca8336-cdce-11e4-9a20-705681abff85"], ["created_at", "2015-03-19 00:26:01.960677"], ["updated_at", "2015-03-19 00:26:01.960677"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:26:01 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$PRHJZuRHg74icsZSuqzngu/IMCFSTG6cEjdEkzpI/liPrnrz6dGfy"], ["created_at", "2015-03-19 00:26:01.996164"], ["updated_at", "2015-03-19 00:26:01.996164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:01.997840"], ["user_id", "85d0d042-cdce-11e4-8787-705681abff85"], ["created_at", "2015-03-19 00:26:01.998663"], ["updated_at", "2015-03-19 00:26:01.998663"], ["token", "MFWsKD3oUmvkfTxveukc6cs4tQ-Fcn4Id2tuyrEGwLI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.002140"], ["updated_at", "2015-03-19 00:26:02.002140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85d0d042-cdce-11e4-8787-705681abff85' AND "clubhouse_memberships"."organization_id" = '85d1b7a0-cdce-11e4-af4f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85d0d042-cdce-11e4-8787-705681abff85"], ["organization_id", "85d1b7a0-cdce-11e4-af4f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.005402"], ["updated_at", "2015-03-19 00:26:02.005402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$uMdoVvZEgRlZl5gBqlcGTewcIh.LuEGqD8OwvsbMvUKRjHblZ.43."], ["created_at", "2015-03-19 00:26:02.010280"], ["updated_at", "2015-03-19 00:26:02.010280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.014397"], ["updated_at", "2015-03-19 00:26:02.014397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85d2ffde-cdce-11e4-94ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '85d39782-cdce-11e4-a823-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85d2ffde-cdce-11e4-94ab-705681abff85"], ["organization_id", "85d39782-cdce-11e4-a823-705681abff85"], ["created_at", "2015-03-19 00:26:02.017898"], ["updated_at", "2015-03-19 00:26:02.017898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.024537' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MFWsKD3oUmvkfTxveukc6cs4tQ-Fcn4Id2tuyrEGwLI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.031721"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.032901"], ["id", "85d13514-cdce-11e4-a2f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85d0d042-cdce-11e4-8787-705681abff85"]] Completed 500 Internal Server Error in 29ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$wzwQMBawcrKtvan4OYsPIe8rGpdEiLSy7rsoYmVWeT6CU.nGJY9v6"], ["created_at", "2015-03-19 00:26:02.059312"], ["updated_at", "2015-03-19 00:26:02.059312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.061142"], ["user_id", "85da744e-cdce-11e4-ab98-705681abff85"], ["created_at", "2015-03-19 00:26:02.061976"], ["updated_at", "2015-03-19 00:26:02.061976"], ["token", "8d4dTmzKwPgJMYa1L5WZzAIJ-7kkw4_JRwIeZuwIB0Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.065483"], ["updated_at", "2015-03-19 00:26:02.065483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85da744e-cdce-11e4-ab98-705681abff85' AND "clubhouse_memberships"."organization_id" = '85db5f30-cdce-11e4-92c2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85da744e-cdce-11e4-ab98-705681abff85"], ["organization_id", "85db5f30-cdce-11e4-92c2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.068701"], ["updated_at", "2015-03-19 00:26:02.068701"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$WAsv7nVwKq18spGKvwXKreXsFiAllp1XtLgTLLuorLNx6DfWU2/um"], ["created_at", "2015-03-19 00:26:02.080946"], ["updated_at", "2015-03-19 00:26:02.080946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.082678"], ["user_id", "85ddc23e-cdce-11e4-abfc-705681abff85"], ["created_at", "2015-03-19 00:26:02.083562"], ["updated_at", "2015-03-19 00:26:02.083562"], ["token", "RWyFUTwTHCjoH7L4i2XY6nDdcJIN3XE_7oEvqrDVKzo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.087297"], ["updated_at", "2015-03-19 00:26:02.087297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85ddc23e-cdce-11e4-abfc-705681abff85' AND "clubhouse_memberships"."organization_id" = '85deb4be-cdce-11e4-ba32-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85ddc23e-cdce-11e4-abfc-705681abff85"], ["organization_id", "85deb4be-cdce-11e4-ba32-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.090513"], ["updated_at", "2015-03-19 00:26:02.090513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-6" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.095232' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RWyFUTwTHCjoH7L4i2XY6nDdcJIN3XE_7oEvqrDVKzo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.096590"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.097603"], ["id", "85de3066-cdce-11e4-b394-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Completed 404 Not Found in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$oA0uKLn9kaFZs8ChAO8fCOJDkR8ZgZxRwd0Fa5X67IqZAR1/QSfEu"], ["created_at", "2015-03-19 00:26:02.105652"], ["updated_at", "2015-03-19 00:26:02.105652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.107290"], ["user_id", "85e18180-cdce-11e4-ae1f-705681abff85"], ["created_at", "2015-03-19 00:26:02.108069"], ["updated_at", "2015-03-19 00:26:02.108069"], ["token", "mDTL7DlMCww_FvFbR9Y5Cs0nQEzE15Qq1dj9a8UuKSY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.111362"], ["updated_at", "2015-03-19 00:26:02.111362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85e18180-cdce-11e4-ae1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '85e26ae6-cdce-11e4-9434-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85e18180-cdce-11e4-ae1f-705681abff85"], ["organization_id", "85e26ae6-cdce-11e4-9434-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.116694"], ["updated_at", "2015-03-19 00:26:02.116694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.122334' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mDTL7DlMCww_FvFbR9Y5Cs0nQEzE15Qq1dj9a8UuKSY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.123752"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.124696"], ["id", "85e1e616-cdce-11e4-8078-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$njVKbRM2HWE3K4gfwWlkH.KQdPDedXOSBpuyRZeCAN8Mw2x6zgb2W"], ["created_at", "2015-03-19 00:26:02.133031"], ["updated_at", "2015-03-19 00:26:02.133031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.134717"], ["user_id", "85e5b156-cdce-11e4-8c16-705681abff85"], ["created_at", "2015-03-19 00:26:02.135553"], ["updated_at", "2015-03-19 00:26:02.135553"], ["token", "VZGn9sNM36n8mXriviixkyyF-n9iTMWahHH5-R_N3lg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.139562"], ["updated_at", "2015-03-19 00:26:02.139562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85e5b156-cdce-11e4-8c16-705681abff85' AND "clubhouse_memberships"."organization_id" = '85e6ac8c-cdce-11e4-8369-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85e5b156-cdce-11e4-8c16-705681abff85"], ["organization_id", "85e6ac8c-cdce-11e4-8369-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.143812"], ["updated_at", "2015-03-19 00:26:02.143812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$QF0SzcEtHckW13IMfZ0Wh.BlcVbKVUGXlKdGrr/WGJ3/3FLpyQT3y"], ["created_at", "2015-03-19 00:26:02.155590"], ["updated_at", "2015-03-19 00:26:02.155590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.157227"], ["user_id", "85e92368-cdce-11e4-88b9-705681abff85"], ["created_at", "2015-03-19 00:26:02.158029"], ["updated_at", "2015-03-19 00:26:02.158029"], ["token", "KWoo1nmhpATAQeSHgIZHDnsn8w7WgclTPWupjh5uvRE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.161329"], ["updated_at", "2015-03-19 00:26:02.161329"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85e92368-cdce-11e4-88b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '85e9fe14-cdce-11e4-a23f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85e92368-cdce-11e4-88b9-705681abff85"], ["organization_id", "85e9fe14-cdce-11e4-a23f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.165007"], ["updated_at", "2015-03-19 00:26:02.165007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/85e9fe14-cdce-11e4-a23f-705681abff85" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"85e9fe14-cdce-11e4-a23f-705681abff85", "organization"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.169604' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KWoo1nmhpATAQeSHgIZHDnsn8w7WgclTPWupjh5uvRE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.172049"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.173126"], ["id", "85e983c6-cdce-11e4-9fe2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "85e9fe14-cdce-11e4-a23f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85e92368-cdce-11e4-88b9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '85e92368-cdce-11e4-88b9-705681abff85' LIMIT 1 [["organization_id", "85e9fe14-cdce-11e4-a23f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "85e9fe14-cdce-11e4-a23f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$NTEOr.IZo9LEwjghL0yX2OQKEqw1lQW4lvVE8up6qIm9/0tuQPveC"], ["created_at", "2015-03-19 00:26:02.188512"], ["updated_at", "2015-03-19 00:26:02.188512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.190246"], ["user_id", "85ee28ae-cdce-11e4-bf1c-705681abff85"], ["created_at", "2015-03-19 00:26:02.191094"], ["updated_at", "2015-03-19 00:26:02.191094"], ["token", "s_JHvqXBT91KGadW130v0RkUhequffZ5YT-iBzWUM2Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.194569"], ["updated_at", "2015-03-19 00:26:02.194569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85ee28ae-cdce-11e4-bf1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '85ef1ac0-cdce-11e4-bcae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85ee28ae-cdce-11e4-bf1c-705681abff85"], ["organization_id", "85ef1ac0-cdce-11e4-bcae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.198523"], ["updated_at", "2015-03-19 00:26:02.198523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$FJqiCXX3ff.huIWvet6ze.4bi0WaLtNnRqXt2Akea6mS0PREajShq"], ["created_at", "2015-03-19 00:26:02.208536"], ["updated_at", "2015-03-19 00:26:02.208536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.210156"], ["user_id", "85f135e4-cdce-11e4-af4f-705681abff85"], ["created_at", "2015-03-19 00:26:02.211356"], ["updated_at", "2015-03-19 00:26:02.211356"], ["token", "47aGXt2O3jHKJ8Xxe-CYLfCEAYljgkdaduj3-y6E46I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.216354"], ["updated_at", "2015-03-19 00:26:02.216354"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85f135e4-cdce-11e4-af4f-705681abff85' AND "clubhouse_memberships"."organization_id" = '85f265d6-cdce-11e4-8687-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85f135e4-cdce-11e4-af4f-705681abff85"], ["organization_id", "85f265d6-cdce-11e4-8687-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.220244"], ["updated_at", "2015-03-19 00:26:02.220244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-11" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-11", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.225074' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "47aGXt2O3jHKJ8Xxe-CYLfCEAYljgkdaduj3-y6E46I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.226707"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.227727"], ["id", "85f1c8b0-cdce-11e4-9a6b-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-11"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85f135e4-cdce-11e4-af4f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '85f135e4-cdce-11e4-af4f-705681abff85' LIMIT 1 [["organization_id", "85f265d6-cdce-11e4-8687-705681abff85"]] Completed 200 OK in 11ms (Views: 2.4ms | ActiveRecord: 1.7ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$VdlR9hoM2iZ88hkJLcSzveMprXAiICTkQ9ZKFhwN60Fvi6pg/kwam"], ["created_at", "2015-03-19 00:26:02.244747"], ["updated_at", "2015-03-19 00:26:02.244747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.246547"], ["user_id", "85f6c0ea-cdce-11e4-8dec-705681abff85"], ["created_at", "2015-03-19 00:26:02.247384"], ["updated_at", "2015-03-19 00:26:02.247384"], ["token", "3yftXTt-CRF4u6F2DNG-HSQF5LmM5rwWVNrWJMIzPk8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.251356"], ["updated_at", "2015-03-19 00:26:02.251356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85f6c0ea-cdce-11e4-8dec-705681abff85' AND "clubhouse_memberships"."organization_id" = '85f7c06c-cdce-11e4-b95d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85f6c0ea-cdce-11e4-8dec-705681abff85"], ["organization_id", "85f7c06c-cdce-11e4-b95d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.254939"], ["updated_at", "2015-03-19 00:26:02.254939"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$VxjrzqCkNI1o9qUWXGoaLOEEppiwYfoDur07GwYKXk0Gx1zYcOETu"], ["created_at", "2015-03-19 00:26:02.265495"], ["updated_at", "2015-03-19 00:26:02.265495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.267490"], ["user_id", "85f9e860-cdce-11e4-baa3-705681abff85"], ["created_at", "2015-03-19 00:26:02.268397"], ["updated_at", "2015-03-19 00:26:02.268397"], ["token", "WhW5gdTRS6BTUxTlItf6axZCKVoPUEztfQ7foY4E88U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.280023"], ["updated_at", "2015-03-19 00:26:02.280023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85f9e860-cdce-11e4-baa3-705681abff85' AND "clubhouse_memberships"."organization_id" = '85fc1b3a-cdce-11e4-ad10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85f9e860-cdce-11e4-baa3-705681abff85"], ["organization_id", "85fc1b3a-cdce-11e4-ad10-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.283254"], ["updated_at", "2015-03-19 00:26:02.283254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-13" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.288115' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WhW5gdTRS6BTUxTlItf6axZCKVoPUEztfQ7foY4E88U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.289810"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.291348"], ["id", "85fb9930-cdce-11e4-a30b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85f9e860-cdce-11e4-baa3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '85f9e860-cdce-11e4-baa3-705681abff85' LIMIT 1 [["organization_id", "85fc1b3a-cdce-11e4-ad10-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "85fc1b3a-cdce-11e4-ad10-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$EEesWZA6zTj2VlNQ2XpDgeXLbqytao4tIXVo6wrO.T6AOZEo.t8Dm"], ["created_at", "2015-03-19 00:26:02.302932"], ["updated_at", "2015-03-19 00:26:02.302932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.304789"], ["user_id", "85ff9d14-cdce-11e4-9aea-705681abff85"], ["created_at", "2015-03-19 00:26:02.306022"], ["updated_at", "2015-03-19 00:26:02.306022"], ["token", "AxrALpjmU_vD50ThG7QXjnqfUX8WnbvZX_AxaIclDZk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.309352"], ["updated_at", "2015-03-19 00:26:02.309352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85ff9d14-cdce-11e4-9aea-705681abff85' AND "clubhouse_memberships"."organization_id" = '86009444-cdce-11e4-9940-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "85ff9d14-cdce-11e4-9aea-705681abff85"], ["organization_id", "86009444-cdce-11e4-9940-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.312644"], ["updated_at", "2015-03-19 00:26:02.312644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$QQnpKc9CccVLLdVncRtLXeyV2gCPqzahPrxadwAIno1cijoO5gjH2"], ["created_at", "2015-03-19 00:26:02.322344"], ["updated_at", "2015-03-19 00:26:02.322344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.323961"], ["user_id", "8602935c-cdce-11e4-ac81-705681abff85"], ["created_at", "2015-03-19 00:26:02.324734"], ["updated_at", "2015-03-19 00:26:02.324734"], ["token", "6kPyP7PcnvxKwdK5r6I82HDQqE8KibwxfuRjVTAMrfw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.328100"], ["updated_at", "2015-03-19 00:26:02.328100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8602935c-cdce-11e4-ac81-705681abff85' AND "clubhouse_memberships"."organization_id" = '86037132-cdce-11e4-8693-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8602935c-cdce-11e4-ac81-705681abff85"], ["organization_id", "86037132-cdce-11e4-8693-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.331266"], ["updated_at", "2015-03-19 00:26:02.331266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-15" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-15", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.336567' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6kPyP7PcnvxKwdK5r6I82HDQqE8KibwxfuRjVTAMrfw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.338736"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.339960"], ["id", "8602f69e-cdce-11e4-9c95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-15"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8602935c-cdce-11e4-ac81-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8602935c-cdce-11e4-ac81-705681abff85' LIMIT 1 [["organization_id", "86037132-cdce-11e4-8693-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '86037132-cdce-11e4-8693-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:26:02.346985"], ["id", "86037132-cdce-11e4-8693-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$kGxOJKt0VkW4E90pTVvcTe28daMESuxrRJc/n.y0alHbneSCT4cjC"], ["created_at", "2015-03-19 00:26:02.355037"], ["updated_at", "2015-03-19 00:26:02.355037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.356678"], ["user_id", "86079122-cdce-11e4-8605-705681abff85"], ["created_at", "2015-03-19 00:26:02.357451"], ["updated_at", "2015-03-19 00:26:02.357451"], ["token", "0l-14N2w3QMCMyomFStrBViD4kFN3iD-h8xJFP9wEvM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.361129"], ["updated_at", "2015-03-19 00:26:02.361129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '86079122-cdce-11e4-8605-705681abff85' AND "clubhouse_memberships"."organization_id" = '86087cfe-cdce-11e4-bf48-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "86079122-cdce-11e4-8605-705681abff85"], ["organization_id", "86087cfe-cdce-11e4-bf48-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.364443"], ["updated_at", "2015-03-19 00:26:02.364443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-16" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-16", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.370894' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0l-14N2w3QMCMyomFStrBViD4kFN3iD-h8xJFP9wEvM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.372364"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.373479"], ["id", "8607f1da-cdce-11e4-9904-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "86079122-cdce-11e4-8605-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '86079122-cdce-11e4-8605-705681abff85' LIMIT 1 [["organization_id", "86087cfe-cdce-11e4-bf48-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '86087cfe-cdce-11e4-bf48-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$p.kON7oWwNkhJphFPiA0ae1X8i5WBSkiHi10OR1k6O.qjVh0z3LGK"], ["created_at", "2015-03-19 00:26:02.395538"], ["updated_at", "2015-03-19 00:26:02.395538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.397112"], ["user_id", "860dbdcc-cdce-11e4-b266-705681abff85"], ["created_at", "2015-03-19 00:26:02.397854"], ["updated_at", "2015-03-19 00:26:02.397854"], ["token", "5Kaa93HGMpAXWQEqlFdvo_A1CyFaDaDMHfsjxnWoQ34"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.401087"], ["updated_at", "2015-03-19 00:26:02.401087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '860dbdcc-cdce-11e4-b266-705681abff85' AND "clubhouse_memberships"."organization_id" = '860e9332-cdce-11e4-875f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "860dbdcc-cdce-11e4-b266-705681abff85"], ["organization_id", "860e9332-cdce-11e4-875f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.404645"], ["updated_at", "2015-03-19 00:26:02.404645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$uxioFkRQo9rgVFvJgxxem.xfT3azJjuDaHI8NL3NLalg25ui/SEqm"], ["created_at", "2015-03-19 00:26:02.417150"], ["updated_at", "2015-03-19 00:26:02.417150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.418861"], ["user_id", "86110e6e-cdce-11e4-9768-705681abff85"], ["created_at", "2015-03-19 00:26:02.419774"], ["updated_at", "2015-03-19 00:26:02.419774"], ["token", "Q6GFnpzT-iY6-iKAC1eDaclltjJuz30E11kOBN0Dv-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.425424"], ["updated_at", "2015-03-19 00:26:02.425424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '86110e6e-cdce-11e4-9768-705681abff85' AND "clubhouse_memberships"."organization_id" = '86124d9c-cdce-11e4-b91f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "86110e6e-cdce-11e4-9768-705681abff85"], ["organization_id", "86124d9c-cdce-11e4-b91f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.428739"], ["updated_at", "2015-03-19 00:26:02.428739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/86124d9c-cdce-11e4-b91f-705681abff85" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"86124d9c-cdce-11e4-b91f-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.433548' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Q6GFnpzT-iY6-iKAC1eDaclltjJuz30E11kOBN0Dv-s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.434940"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.435926"], ["id", "8611798a-cdce-11e4-ba0a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "86124d9c-cdce-11e4-b91f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "86110e6e-cdce-11e4-9768-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '86110e6e-cdce-11e4-9768-705681abff85' LIMIT 1 [["organization_id", "86124d9c-cdce-11e4-b91f-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$YNLgMnZ1vmimRuSATxOEFubrwkBuFdqq3eQuolyDrdHI/Uq/M/nsq"], ["created_at", "2015-03-19 00:26:02.446910"], ["updated_at", "2015-03-19 00:26:02.446910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.448532"], ["user_id", "861594ca-cdce-11e4-ae5e-705681abff85"], ["created_at", "2015-03-19 00:26:02.450078"], ["updated_at", "2015-03-19 00:26:02.450078"], ["token", "GA7IH1AjAhNar784UmhR-SDNiz0dQRM8Wkmozzc2rDY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.455472"], ["updated_at", "2015-03-19 00:26:02.455472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '861594ca-cdce-11e4-ae5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '8616f27a-cdce-11e4-997a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "861594ca-cdce-11e4-ae5e-705681abff85"], ["organization_id", "8616f27a-cdce-11e4-997a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.459651"], ["updated_at", "2015-03-19 00:26:02.459651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$uvjXBwd0XCGouFPQ/4cnputoZfs71fM1ViZP.p/3IfUkSpV8qz6h2"], ["created_at", "2015-03-19 00:26:02.469428"], ["updated_at", "2015-03-19 00:26:02.469428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.471045"], ["user_id", "86190592-cdce-11e4-bce8-705681abff85"], ["created_at", "2015-03-19 00:26:02.471819"], ["updated_at", "2015-03-19 00:26:02.471819"], ["token", "_p7jf2pvmsyQjVJSIc_LOt_deosJIRVVc885hz7UJhA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.475107"], ["updated_at", "2015-03-19 00:26:02.475107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '86190592-cdce-11e4-bce8-705681abff85' AND "clubhouse_memberships"."organization_id" = '8619df8a-cdce-11e4-a9e6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "86190592-cdce-11e4-bce8-705681abff85"], ["organization_id", "8619df8a-cdce-11e4-a9e6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.478606"], ["updated_at", "2015-03-19 00:26:02.478606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/8619df8a-cdce-11e4-a9e6-705681abff85" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"8619df8a-cdce-11e4-a9e6-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.483048' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_p7jf2pvmsyQjVJSIc_LOt_deosJIRVVc885hz7UJhA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.484463"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.485405"], ["id", "861966a4-cdce-11e4-8377-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "8619df8a-cdce-11e4-a9e6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "86190592-cdce-11e4-bce8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '86190592-cdce-11e4-bce8-705681abff85' LIMIT 1 [["organization_id", "8619df8a-cdce-11e4-a9e6-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '8619df8a-cdce-11e4-a9e6-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:26:02.492486"], ["id", "8619df8a-cdce-11e4-a9e6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$oKRGnsFa7tCkG0fe48H6Zu5moKEQekJkV26.N8PQaHjLUsJzL814y"], ["created_at", "2015-03-19 00:26:02.500628"], ["updated_at", "2015-03-19 00:26:02.500628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.502248"], ["user_id", "861dc712-cdce-11e4-a7c6-705681abff85"], ["created_at", "2015-03-19 00:26:02.503011"], ["updated_at", "2015-03-19 00:26:02.503011"], ["token", "_nhsxDV8lc1txbpOSjAeuOw-LougZMqNs3p_REuy2mc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.507328"], ["updated_at", "2015-03-19 00:26:02.507328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '861dc712-cdce-11e4-a7c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '861ecdec-cdce-11e4-8454-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "861dc712-cdce-11e4-a7c6-705681abff85"], ["organization_id", "861ecdec-cdce-11e4-8454-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.510783"], ["updated_at", "2015-03-19 00:26:02.510783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/861ecdec-cdce-11e4-8454-705681abff85" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"861ecdec-cdce-11e4-8454-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.515445' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_nhsxDV8lc1txbpOSjAeuOw-LougZMqNs3p_REuy2mc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.517283"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.519221"], ["id", "861e2874-cdce-11e4-956d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "861ecdec-cdce-11e4-8454-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "861dc712-cdce-11e4-a7c6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '861dc712-cdce-11e4-a7c6-705681abff85' LIMIT 1 [["organization_id", "861ecdec-cdce-11e4-8454-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '861ecdec-cdce-11e4-8454-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$x9v7GMVs2MABbZe1qqr7aeUwqoyM4R5QEVL6m7o52YU8cCNDf41EO"], ["created_at", "2015-03-19 00:26:02.534355"], ["updated_at", "2015-03-19 00:26:02.534355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.535917"], ["user_id", "8622ecec-cdce-11e4-9989-705681abff85"], ["created_at", "2015-03-19 00:26:02.536734"], ["updated_at", "2015-03-19 00:26:02.536734"], ["token", "dQXqw5dh4VrzhhegfLf3xFmbFYao8QClWVxtg7b0Iew"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.540344"], ["updated_at", "2015-03-19 00:26:02.540344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8622ecec-cdce-11e4-9989-705681abff85' AND "clubhouse_memberships"."organization_id" = '8623dd5a-cdce-11e4-9e29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8622ecec-cdce-11e4-9989-705681abff85"], ["organization_id", "8623dd5a-cdce-11e4-9e29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.544098"], ["updated_at", "2015-03-19 00:26:02.544098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$/XkLZ4yweqVlGpoKyMu73ObuHH/mNs2sH/CPx4ZJAWEB2c8C95Cmq"], ["created_at", "2015-03-19 00:26:02.554135"], ["updated_at", "2015-03-19 00:26:02.554135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.556720"], ["user_id", "8625fffe-cdce-11e4-9001-705681abff85"], ["created_at", "2015-03-19 00:26:02.557870"], ["updated_at", "2015-03-19 00:26:02.557870"], ["token", "uZN4xE-73TQROHcq6lGngCxQQgEe95S75E3Chqyh1Sc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.561567"], ["updated_at", "2015-03-19 00:26:02.561567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8625fffe-cdce-11e4-9001-705681abff85' AND "clubhouse_memberships"."organization_id" = '8627139e-cdce-11e4-b4dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8625fffe-cdce-11e4-9001-705681abff85"], ["organization_id", "8627139e-cdce-11e4-b4dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.564888"], ["updated_at", "2015-03-19 00:26:02.564888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.569578' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uZN4xE-73TQROHcq6lGngCxQQgEe95S75E3Chqyh1Sc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.570983"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.571990"], ["id", "86268e88-cdce-11e4-bab8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8625fffe-cdce-11e4-9001-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$MbXlRRXBfNW.K7XZT9obDOY0tzHt8VbEw/cLX80ngqBAJrnqVWG1K"], ["created_at", "2015-03-19 00:26:02.582895"], ["updated_at", "2015-03-19 00:26:02.582895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:02.584588"], ["user_id", "862a55fe-cdce-11e4-93fe-705681abff85"], ["created_at", "2015-03-19 00:26:02.585403"], ["updated_at", "2015-03-19 00:26:02.585403"], ["token", "mAUCu3iuYkQBhjw9bCeNBsG6GGYrtVFzUrIWYxId3Ww"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:02.588869"], ["updated_at", "2015-03-19 00:26:02.588869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '862a55fe-cdce-11e4-93fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '862b3be0-cdce-11e4-ba3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "862a55fe-cdce-11e4-93fe-705681abff85"], ["organization_id", "862b3be0-cdce-11e4-ba3d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:02.592687"], ["updated_at", "2015-03-19 00:26:02.592687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:26:02 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:02.597297' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mAUCu3iuYkQBhjw9bCeNBsG6GGYrtVFzUrIWYxId3Ww"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:02.598736"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:02.599699"], ["id", "862abf08-cdce-11e4-9c4a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "862a55fe-cdce-11e4-93fe-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.4ms) ROLLBACK  (62.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (34.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$HfhvNlWRVIbsSOIE8Wa/xOlEkLayOY8w4K9M1.JgHG2dTRUGmtVfG"], ["created_at", "2015-03-19 00:26:41.874611"], ["updated_at", "2015-03-19 00:26:41.874611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:41.949265"], ["user_id", "9d9b0d5a-cdce-11e4-89f8-705681abff85"], ["created_at", "2015-03-19 00:26:41.955728"], ["updated_at", "2015-03-19 00:26:41.955728"], ["token", "1cI9eTS-Hcxt3lSwvThSQBGp_0e7QvimJECCqS9w5PA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:41.965000"], ["updated_at", "2015-03-19 00:26:41.965000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d9b0d5a-cdce-11e4-89f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '9da39740-cdce-11e4-954b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d9b0d5a-cdce-11e4-89f8-705681abff85"], ["organization_id", "9da39740-cdce-11e4-954b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:41.981921"], ["updated_at", "2015-03-19 00:26:41.981921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-1" for 127.0.0.1 at 2015-03-18 17:26:41 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.009443' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1cI9eTS-Hcxt3lSwvThSQBGp_0e7QvimJECCqS9w5PA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.016393"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.017529"], ["id", "9da23c92-cdce-11e4-98ee-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-1"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9d9b0d5a-cdce-11e4-89f8-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9d9b0d5a-cdce-11e4-89f8-705681abff85' LIMIT 1 [["organization_id", "9da39740-cdce-11e4-954b-705681abff85"]] Completed 200 OK in 33ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$4JOGPwXcLeig62SOf8mX8.teWAPo63lL8jj94cCLr7c9kQbCLkmuC"], ["created_at", "2015-03-19 00:26:42.050951"], ["updated_at", "2015-03-19 00:26:42.050951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.053240"], ["user_id", "9db0b4c0-cdce-11e4-8ccb-705681abff85"], ["created_at", "2015-03-19 00:26:42.054021"], ["updated_at", "2015-03-19 00:26:42.054021"], ["token", "Vczd3OeyvYF_gI8sAdwZwtvM1GuqRvestN2iYF1ogMg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.058099"], ["updated_at", "2015-03-19 00:26:42.058099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9db0b4c0-cdce-11e4-8ccb-705681abff85' AND "clubhouse_memberships"."organization_id" = '9db1c57c-cdce-11e4-99ec-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9db0b4c0-cdce-11e4-8ccb-705681abff85"], ["organization_id", "9db1c57c-cdce-11e4-99ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.061456"], ["updated_at", "2015-03-19 00:26:42.061456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$W4hAGr/rLyNT9/0t4TfWqOq9O57E4qK9MKi6VrNogETwYgORQfmS."], ["created_at", "2015-03-19 00:26:42.071720"], ["updated_at", "2015-03-19 00:26:42.071720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.073321"], ["user_id", "9db3da4c-cdce-11e4-8791-705681abff85"], ["created_at", "2015-03-19 00:26:42.074073"], ["updated_at", "2015-03-19 00:26:42.074073"], ["token", "bn7HucWzigRq_yRKAhHkhzk0AMqVznRA3cWjpSowV98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.077406"], ["updated_at", "2015-03-19 00:26:42.077406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9db3da4c-cdce-11e4-8791-705681abff85' AND "clubhouse_memberships"."organization_id" = '9db4b4da-cdce-11e4-ad89-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9db3da4c-cdce-11e4-8791-705681abff85"], ["organization_id", "9db4b4da-cdce-11e4-ad89-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.080831"], ["updated_at", "2015-03-19 00:26:42.080831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$gpPuSt3pHbHeHDxzaC1w1O9TvcNKTW.Xyd9ESSsOOAFHJID3ZN93K"], ["created_at", "2015-03-19 00:26:42.086529"], ["updated_at", "2015-03-19 00:26:42.086529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.091358"], ["updated_at", "2015-03-19 00:26:42.091358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9db6209a-cdce-11e4-b126-705681abff85' AND "clubhouse_memberships"."organization_id" = '9db6f402-cdce-11e4-9006-705681abff85') LIMIT 1 SQL (23.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9db6209a-cdce-11e4-b126-705681abff85"], ["organization_id", "9db6f402-cdce-11e4-9006-705681abff85"], ["created_at", "2015-03-19 00:26:42.103697"], ["updated_at", "2015-03-19 00:26:42.103697"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.151078' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bn7HucWzigRq_yRKAhHkhzk0AMqVznRA3cWjpSowV98"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.152951"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.154088"], ["id", "9db43a50-cdce-11e4-ad74-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9db3da4c-cdce-11e4-8791-705681abff85"]] Completed 500 Internal Server Error in 17ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$AMlSHk/Npz6yJRi4pDc2G.BLAZeKfSxTTDTRHPi0wx.gJv.cP9L6q"], ["created_at", "2015-03-19 00:26:42.173909"], ["updated_at", "2015-03-19 00:26:42.173909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.175845"], ["user_id", "9dc3761e-cdce-11e4-a920-705681abff85"], ["created_at", "2015-03-19 00:26:42.176667"], ["updated_at", "2015-03-19 00:26:42.176667"], ["token", "Ki-iIlCWrud50_VtIg-zDhPMMX2qDjU5aWCN7cqjYr4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.180562"], ["updated_at", "2015-03-19 00:26:42.180562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9dc3761e-cdce-11e4-a920-705681abff85' AND "clubhouse_memberships"."organization_id" = '9dc475dc-cdce-11e4-877d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9dc3761e-cdce-11e4-a920-705681abff85"], ["organization_id", "9dc475dc-cdce-11e4-877d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.184310"], ["updated_at", "2015-03-19 00:26:42.184310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$9mM4yr4RURTRZDlNi.RmE.xPoQZJm9URuJFS/gaJfHmMRVTOeE3TS"], ["created_at", "2015-03-19 00:26:42.189673"], ["updated_at", "2015-03-19 00:26:42.189673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.193421"], ["updated_at", "2015-03-19 00:26:42.193421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9dc5e444-cdce-11e4-beb0-705681abff85' AND "clubhouse_memberships"."organization_id" = '9dc66be4-cdce-11e4-9b1d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9dc5e444-cdce-11e4-beb0-705681abff85"], ["organization_id", "9dc66be4-cdce-11e4-9b1d-705681abff85"], ["created_at", "2015-03-19 00:26:42.196922"], ["updated_at", "2015-03-19 00:26:42.196922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$KEKsKV5RCY2hMWDK7onI7O1mYPsiNAOwDvyb.L.ROfd/EesI.O3EO"], ["created_at", "2015-03-19 00:26:42.208795"], ["updated_at", "2015-03-19 00:26:42.208795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.211739"], ["user_id", "9dc8e004-cdce-11e4-8b16-705681abff85"], ["created_at", "2015-03-19 00:26:42.213853"], ["updated_at", "2015-03-19 00:26:42.213853"], ["token", "rHp_YP4CRb74f4aVN4Sft7o8wau2wROOeZGgjllZiBM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.221888"], ["updated_at", "2015-03-19 00:26:42.221888"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9dc8e004-cdce-11e4-8b16-705681abff85' AND "clubhouse_memberships"."organization_id" = '9dcae5b6-cdce-11e4-9d72-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9dc8e004-cdce-11e4-8b16-705681abff85"], ["organization_id", "9dcae5b6-cdce-11e4-9d72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.230895"], ["updated_at", "2015-03-19 00:26:42.230895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-7" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.243607' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rHp_YP4CRb74f4aVN4Sft7o8wau2wROOeZGgjllZiBM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.247072"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.249206"], ["id", "9dc9beac-cdce-11e4-87aa-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (41.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-7"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9dc8e004-cdce-11e4-8b16-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9dc8e004-cdce-11e4-8b16-705681abff85' LIMIT 1 [["organization_id", "9dcae5b6-cdce-11e4-9d72-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (7.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "9dcae5b6-cdce-11e4-9d72-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 68ms (ActiveRecord: 51.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Yfxe5BLPTT1tjfpPaEVrruATY4hzowu4u0KEL7w3ZqybMxxOInRfK"], ["created_at", "2015-03-19 00:26:42.318542"], ["updated_at", "2015-03-19 00:26:42.318542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.320413"], ["user_id", "9dd988d2-cdce-11e4-8510-705681abff85"], ["created_at", "2015-03-19 00:26:42.321263"], ["updated_at", "2015-03-19 00:26:42.321263"], ["token", "sR47Kt1c4exTrDPCmzwEnLLI9U3-vqyOu9S4c3WAgtk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.325417"], ["updated_at", "2015-03-19 00:26:42.325417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9dd988d2-cdce-11e4-8510-705681abff85' AND "clubhouse_memberships"."organization_id" = '9ddacff8-cdce-11e4-bec1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9dd988d2-cdce-11e4-8510-705681abff85"], ["organization_id", "9ddacff8-cdce-11e4-bec1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.333789"], ["updated_at", "2015-03-19 00:26:42.333789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (9.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$hv/ZMg79NWrqRED5R5bkAuk7VJ6rNlYHwi3cU7QDcYTRzU6OfzcMW"], ["created_at", "2015-03-19 00:26:42.348769"], ["updated_at", "2015-03-19 00:26:42.348769"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.362168"], ["user_id", "9dde5b00-cdce-11e4-a204-705681abff85"], ["created_at", "2015-03-19 00:26:42.363075"], ["updated_at", "2015-03-19 00:26:42.363075"], ["token", "4HeWQoOHaLsIrjYSY3hvxRZhwR4LX12RsI5Fq1uuB98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.367061"], ["updated_at", "2015-03-19 00:26:42.367061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9dde5b00-cdce-11e4-a204-705681abff85' AND "clubhouse_memberships"."organization_id" = '9de0f4d2-cdce-11e4-916a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9dde5b00-cdce-11e4-a204-705681abff85"], ["organization_id", "9de0f4d2-cdce-11e4-916a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.373302"], ["updated_at", "2015-03-19 00:26:42.373302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Dsjg4a6aBOz8mvIEc/tHjebp3MP22q26AC4T.YKEGvmN5UkpEX026"], ["created_at", "2015-03-19 00:26:42.386812"], ["updated_at", "2015-03-19 00:26:42.386812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.388707"], ["user_id", "9de3f29a-cdce-11e4-bfa0-705681abff85"], ["created_at", "2015-03-19 00:26:42.389574"], ["updated_at", "2015-03-19 00:26:42.389574"], ["token", "ASiqb076aNxb6Cl7eqnaB0pJgqIyhlmb8S7JUcy1AKw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.394270"], ["updated_at", "2015-03-19 00:26:42.394270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9de3f29a-cdce-11e4-bfa0-705681abff85' AND "clubhouse_memberships"."organization_id" = '9de53218-cdce-11e4-a4c8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9de3f29a-cdce-11e4-bfa0-705681abff85"], ["organization_id", "9de53218-cdce-11e4-a4c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.401280"], ["updated_at", "2015-03-19 00:26:42.401280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/9de53218-cdce-11e4-a4c8-705681abff85" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"9de53218-cdce-11e4-a4c8-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.410681' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ASiqb076aNxb6Cl7eqnaB0pJgqIyhlmb8S7JUcy1AKw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.412170"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.413186"], ["id", "9de468e2-cdce-11e4-9a33-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "9de53218-cdce-11e4-a4c8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9de3f29a-cdce-11e4-bfa0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9de3f29a-cdce-11e4-bfa0-705681abff85' LIMIT 1 [["organization_id", "9de53218-cdce-11e4-a4c8-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9de53218-cdce-11e4-a4c8-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 25ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$8m7iiaDn9rdJy2NvQXHstePrurTcKlWFQfnr0m0e85iz.37ik3tuy"], ["created_at", "2015-03-19 00:26:42.441224"], ["updated_at", "2015-03-19 00:26:42.441224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.442830"], ["user_id", "9dec3c16-cdce-11e4-bf02-705681abff85"], ["created_at", "2015-03-19 00:26:42.443734"], ["updated_at", "2015-03-19 00:26:42.443734"], ["token", "Z47c1NqRLxWvfQG1Bof_WRO_mATTZTCkyY5XcD1PLCg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.447290"], ["updated_at", "2015-03-19 00:26:42.447290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9dec3c16-cdce-11e4-bf02-705681abff85' AND "clubhouse_memberships"."organization_id" = '9ded27f2-cdce-11e4-8fae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9dec3c16-cdce-11e4-bf02-705681abff85"], ["organization_id", "9ded27f2-cdce-11e4-8fae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.450910"], ["updated_at", "2015-03-19 00:26:42.450910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/9ded27f2-cdce-11e4-8fae-705681abff85" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"9ded27f2-cdce-11e4-8fae-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.455861' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Z47c1NqRLxWvfQG1Bof_WRO_mATTZTCkyY5XcD1PLCg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.457836"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.459858"], ["id", "9deca476-cdce-11e4-b3e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "9ded27f2-cdce-11e4-8fae-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9dec3c16-cdce-11e4-bf02-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9dec3c16-cdce-11e4-bf02-705681abff85' LIMIT 1 [["organization_id", "9ded27f2-cdce-11e4-8fae-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9ded27f2-cdce-11e4-8fae-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:26:42.468130"], ["id", "9ded27f2-cdce-11e4-8fae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 31ms (Views: 0.9ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$VI/Osq2Ld/3PRdbYpCgBhOTSjFZiUKPLo2PosmRjHBvWAAS72ciDW"], ["created_at", "2015-03-19 00:26:42.493037"], ["updated_at", "2015-03-19 00:26:42.493037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.494578"], ["user_id", "9df422a0-cdce-11e4-8b4c-705681abff85"], ["created_at", "2015-03-19 00:26:42.495490"], ["updated_at", "2015-03-19 00:26:42.495490"], ["token", "GhUUNfIYZFSJb2C0WqAo5aopQhtf7600l8YFtdrvrLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.498775"], ["updated_at", "2015-03-19 00:26:42.498775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9df422a0-cdce-11e4-8b4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '9df5004e-cdce-11e4-bcdd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9df422a0-cdce-11e4-8b4c-705681abff85"], ["organization_id", "9df5004e-cdce-11e4-bcdd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.501991"], ["updated_at", "2015-03-19 00:26:42.501991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/9df5004e-cdce-11e4-bcdd-705681abff85" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"9df5004e-cdce-11e4-bcdd-705681abff85", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.507460' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GhUUNfIYZFSJb2C0WqAo5aopQhtf7600l8YFtdrvrLQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.508929"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.509920"], ["id", "9df487b8-cdce-11e4-bc54-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "9df5004e-cdce-11e4-bcdd-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9df422a0-cdce-11e4-8b4c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9df422a0-cdce-11e4-8b4c-705681abff85' LIMIT 1 [["organization_id", "9df5004e-cdce-11e4-bcdd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "9df5004e-cdce-11e4-bcdd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$YHZGtMT5MeAN41NTdv4sIePugM3S1HF9yWZfxYcbcafWojSpblidO"], ["created_at", "2015-03-19 00:26:42.520173"], ["updated_at", "2015-03-19 00:26:42.520173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.521780"], ["user_id", "9df846dc-cdce-11e4-96bb-705681abff85"], ["created_at", "2015-03-19 00:26:42.522598"], ["updated_at", "2015-03-19 00:26:42.522598"], ["token", "CwZ5SKxyq6rWBZBTm-h77Si7X9dp9kdMW5CpyZp8x-A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.526767"], ["updated_at", "2015-03-19 00:26:42.526767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9df846dc-cdce-11e4-96bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '9df9532e-cdce-11e4-9c45-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9df846dc-cdce-11e4-96bb-705681abff85"], ["organization_id", "9df9532e-cdce-11e4-9c45-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.531878"], ["updated_at", "2015-03-19 00:26:42.531878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$h64jND3N8uAxpNUhP.QZF.3uN9Hl1bnAzmnV5igTAdNte4BXLdMs."], ["created_at", "2015-03-19 00:26:42.542566"], ["updated_at", "2015-03-19 00:26:42.542566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.544163"], ["user_id", "9dfbb240-cdce-11e4-a057-705681abff85"], ["created_at", "2015-03-19 00:26:42.545233"], ["updated_at", "2015-03-19 00:26:42.545233"], ["token", "IsvNfochydXdb3t8WBTCWiFvKzlqGN7USF4m5McVl4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.548691"], ["updated_at", "2015-03-19 00:26:42.548691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9dfbb240-cdce-11e4-a057-705681abff85' AND "clubhouse_memberships"."organization_id" = '9dfc9dfe-cdce-11e4-a263-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9dfbb240-cdce-11e4-a057-705681abff85"], ["organization_id", "9dfc9dfe-cdce-11e4-a263-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.551837"], ["updated_at", "2015-03-19 00:26:42.551837"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$Unj1/sUGvWvCJPfmSpj.yOZfrdUUvTXBSQnZK9yzpFD6cCzV9e7FC"], ["created_at", "2015-03-19 00:26:42.562207"], ["updated_at", "2015-03-19 00:26:42.562207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.563847"], ["user_id", "9dfeb24c-cdce-11e4-84f5-705681abff85"], ["created_at", "2015-03-19 00:26:42.564623"], ["updated_at", "2015-03-19 00:26:42.564623"], ["token", "WmeoWSiJDMWrGYIbXvO3y-eDHE-WbfUQs0cou7qEba4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.567897"], ["updated_at", "2015-03-19 00:26:42.567897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9dfeb24c-cdce-11e4-84f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '9dff8d7a-cdce-11e4-a499-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9dfeb24c-cdce-11e4-84f5-705681abff85"], ["organization_id", "9dff8d7a-cdce-11e4-a499-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.571126"], ["updated_at", "2015-03-19 00:26:42.571126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.576630' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WmeoWSiJDMWrGYIbXvO3y-eDHE-WbfUQs0cou7qEba4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.578503"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.579651"], ["id", "9dff13b8-cdce-11e4-813e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9dfeb24c-cdce-11e4-84f5-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 10ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$R7O47Y08qrlFFsOloJfuPeXNtrzF01.fvvS2ZVfYyS.ULUzjDTYOq"], ["created_at", "2015-03-19 00:26:42.592913"], ["updated_at", "2015-03-19 00:26:42.592913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.594568"], ["user_id", "9e036300-cdce-11e4-87cd-705681abff85"], ["created_at", "2015-03-19 00:26:42.595353"], ["updated_at", "2015-03-19 00:26:42.595353"], ["token", "jvzg8f155zmnXQtuV5JLqij0iQXD8pVbG-yRC719qnY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.598663"], ["updated_at", "2015-03-19 00:26:42.598663"]]  (0.1ms) [1mRELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e036300-cdce-11e4-87cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '9e043d70-cdce-11e4-8804-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e036300-cdce-11e4-87cd-705681abff85"], ["organization_id", "9e043d70-cdce-11e4-8804-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.602055"], ["updated_at", "2015-03-19 00:26:42.602055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.606642' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jvzg8f155zmnXQtuV5JLqij0iQXD8pVbG-yRC719qnY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.608019"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.608998"], ["id", "9e03c5d4-cdce-11e4-9ebe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9e036300-cdce-11e4-87cd-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$Ht1swm81NvGEFSJQDYO31eXkJd625UBGXv6osGFcr1M1xvIgpjFom"], ["created_at", "2015-03-19 00:26:42.618136"], ["updated_at", "2015-03-19 00:26:42.618136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.619749"], ["user_id", "9e0738d6-cdce-11e4-9d19-705681abff85"], ["created_at", "2015-03-19 00:26:42.620502"], ["updated_at", "2015-03-19 00:26:42.620502"], ["token", "ZWMApDDfUMLwSqFtgzkcrMdxoOChahCOBBddDc6OtZw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.624328"], ["updated_at", "2015-03-19 00:26:42.624328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e0738d6-cdce-11e4-9d19-705681abff85' AND "clubhouse_memberships"."organization_id" = '9e0832f4-cdce-11e4-a297-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e0738d6-cdce-11e4-9d19-705681abff85"], ["organization_id", "9e0832f4-cdce-11e4-a297-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.628011"], ["updated_at", "2015-03-19 00:26:42.628011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$b2PKjysJdJ1x0kHbLF7Q8OWseTFlYHCSaeBK2CnhK8Ezi7R6axJCm"], ["created_at", "2015-03-19 00:26:42.639757"], ["updated_at", "2015-03-19 00:26:42.639757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.642501"], ["user_id", "9e0a9ad0-cdce-11e4-b2a1-705681abff85"], ["created_at", "2015-03-19 00:26:42.643661"], ["updated_at", "2015-03-19 00:26:42.643661"], ["token", "JyAO2CMov2IqNqMB7uZkT0SJlylV5wfNqkFg8R__OVo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.647829"], ["updated_at", "2015-03-19 00:26:42.647829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e0a9ad0-cdce-11e4-b2a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '9e0bc036-cdce-11e4-b606-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e0a9ad0-cdce-11e4-b2a1-705681abff85"], ["organization_id", "9e0bc036-cdce-11e4-b606-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.651082"], ["updated_at", "2015-03-19 00:26:42.651082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (1.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.749481' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JyAO2CMov2IqNqMB7uZkT0SJlylV5wfNqkFg8R__OVo"]]  (1.5ms) SAVEPOINT active_record_1 SQL (4.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.759206"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.762233"], ["id", "9e0b3878-cdce-11e4-b24f-705681abff85"]]  (1.8ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (1.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Completed 404 Not Found in 24ms  (4.9ms) ROLLBACK  (2.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$h/ElB1xtfh5RZ5yyztQ7su1/askXf1Vx7S3BYCJAKnAA2eM/8N0PG"], ["created_at", "2015-03-19 00:26:42.791726"], ["updated_at", "2015-03-19 00:26:42.791726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.793511"], ["user_id", "9e21b882-cdce-11e4-8cf3-705681abff85"], ["created_at", "2015-03-19 00:26:42.794273"], ["updated_at", "2015-03-19 00:26:42.794273"], ["token", "wkievN4O3_pV9wSBWSRjV7Da-itAynh26avrQZCr_Ow"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.797794"], ["updated_at", "2015-03-19 00:26:42.797794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e21b882-cdce-11e4-8cf3-705681abff85' AND "clubhouse_memberships"."organization_id" = '9e22a3d2-cdce-11e4-8db7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e21b882-cdce-11e4-8cf3-705681abff85"], ["organization_id", "9e22a3d2-cdce-11e4-8db7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.801252"], ["updated_at", "2015-03-19 00:26:42.801252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-19" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-19", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.806418' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wkievN4O3_pV9wSBWSRjV7Da-itAynh26avrQZCr_Ow"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.807848"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.808972"], ["id", "9e22234e-cdce-11e4-be6a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$5aC/yq8fA.ZUY3zQiFBFB.wxMqMuJnU4cZYvMI.ZFp5BgK2ezDORW"], ["created_at", "2015-03-19 00:26:42.817185"], ["updated_at", "2015-03-19 00:26:42.817185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.818775"], ["user_id", "9e25997a-cdce-11e4-93d8-705681abff85"], ["created_at", "2015-03-19 00:26:42.819529"], ["updated_at", "2015-03-19 00:26:42.819529"], ["token", "b3yWaKRktK2Klv3YB3Xj14CYwk_MZWmdOEjmLM47IXc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.822794"], ["updated_at", "2015-03-19 00:26:42.822794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e25997a-cdce-11e4-93d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '9e2670ac-cdce-11e4-a591-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e25997a-cdce-11e4-93d8-705681abff85"], ["organization_id", "9e2670ac-cdce-11e4-a591-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.826008"], ["updated_at", "2015-03-19 00:26:42.826008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/9e2670ac-cdce-11e4-a591-705681abff85" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"9e2670ac-cdce-11e4-a591-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.831362' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b3yWaKRktK2Klv3YB3Xj14CYwk_MZWmdOEjmLM47IXc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.833084"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.834109"], ["id", "9e25f8c0-cdce-11e4-bf9c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "9e2670ac-cdce-11e4-a591-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9e25997a-cdce-11e4-93d8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9e25997a-cdce-11e4-93d8-705681abff85' LIMIT 1 [["organization_id", "9e2670ac-cdce-11e4-a591-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$cosgBdUx4ZKRY.8//5oOiuNW2/t4bwE3pmdHnVRb21eXsmI949zMa"], ["created_at", "2015-03-19 00:26:42.846452"], ["updated_at", "2015-03-19 00:26:42.846452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.849531"], ["user_id", "9e2a2a4e-cdce-11e4-82df-705681abff85"], ["created_at", "2015-03-19 00:26:42.850884"], ["updated_at", "2015-03-19 00:26:42.850884"], ["token", "CO4vFQL4QebIKx8ZFon4M3hZAFohe03dvYBwnmkSVkI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.856980"], ["updated_at", "2015-03-19 00:26:42.856980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e2a2a4e-cdce-11e4-82df-705681abff85' AND "clubhouse_memberships"."organization_id" = '9e2baf4a-cdce-11e4-b100-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e2a2a4e-cdce-11e4-82df-705681abff85"], ["organization_id", "9e2baf4a-cdce-11e4-b100-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.860762"], ["updated_at", "2015-03-19 00:26:42.860762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$vuwU.NqnR2iGUson66UQHOEQYPTK4MxURALg6yxsKY2j.MKwnHMlW"], ["created_at", "2015-03-19 00:26:42.871432"], ["updated_at", "2015-03-19 00:26:42.871432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.873355"], ["user_id", "9e2de544-cdce-11e4-bb55-705681abff85"], ["created_at", "2015-03-19 00:26:42.880053"], ["updated_at", "2015-03-19 00:26:42.880053"], ["token", "Uhpe9kCQWM0SOf8CjkA8FztBjcPqIzvgY9GDJs_BAJ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.886097"], ["updated_at", "2015-03-19 00:26:42.886097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e2de544-cdce-11e4-bb55-705681abff85' AND "clubhouse_memberships"."organization_id" = '9e302318-cdce-11e4-90d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e2de544-cdce-11e4-bb55-705681abff85"], ["organization_id", "9e302318-cdce-11e4-90d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.889918"], ["updated_at", "2015-03-19 00:26:42.889918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$k7ewl1IpG5bYq24Gcz2DYesEqF7yEURoz315h5z/6hKXg7GvXC6Qy"], ["created_at", "2015-03-19 00:26:42.901678"], ["updated_at", "2015-03-19 00:26:42.901678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.903622"], ["user_id", "9e328450-cdce-11e4-807d-705681abff85"], ["created_at", "2015-03-19 00:26:42.904431"], ["updated_at", "2015-03-19 00:26:42.904431"], ["token", "tLgmvY-kTEx0WuMJISTw_qd2bxyqXI6_4NzeCtMKqPU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.908612"], ["updated_at", "2015-03-19 00:26:42.908612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e328450-cdce-11e4-807d-705681abff85' AND "clubhouse_memberships"."organization_id" = '9e338bca-cdce-11e4-b8db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e328450-cdce-11e4-807d-705681abff85"], ["organization_id", "9e338bca-cdce-11e4-b8db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.911966"], ["updated_at", "2015-03-19 00:26:42.911966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.916654' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tLgmvY-kTEx0WuMJISTw_qd2bxyqXI6_4NzeCtMKqPU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.918966"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.920798"], ["id", "9e3306be-cdce-11e4-9ae4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9e328450-cdce-11e4-807d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9e328450-cdce-11e4-807d-705681abff85' LIMIT 1 [["organization_id", "9e338bca-cdce-11e4-b8db-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9e338bca-cdce-11e4-b8db-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$KSKdarTbunNWyVMrdQT5Q.HDvVzW5nlmevGODV1jRGbuuHp85xTO."], ["created_at", "2015-03-19 00:26:42.935986"], ["updated_at", "2015-03-19 00:26:42.935986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:26:42.937658"], ["user_id", "9e37ba7e-cdce-11e4-b0ba-705681abff85"], ["created_at", "2015-03-19 00:26:42.938384"], ["updated_at", "2015-03-19 00:26:42.938384"], ["token", "qHpUr_FxtquUnZ4g8rDYNg6XI6Hj4z1pf3F4gRDUV7g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:26:42.941685"], ["updated_at", "2015-03-19 00:26:42.941685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e37ba7e-cdce-11e4-b0ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '9e389750-cdce-11e4-bced-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e37ba7e-cdce-11e4-b0ba-705681abff85"], ["organization_id", "9e389750-cdce-11e4-bced-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:26:42.945751"], ["updated_at", "2015-03-19 00:26:42.945751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-03-18 17:26:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:26:42.950847' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qHpUr_FxtquUnZ4g8rDYNg6XI6Hj4z1pf3F4gRDUV7g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:26:42.952305"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:26:42.953280"], ["id", "9e381c08-cdce-11e4-adae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9e37ba7e-cdce-11e4-b0ba-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9e37ba7e-cdce-11e4-b0ba-705681abff85' LIMIT 1 [["organization_id", "9e389750-cdce-11e4-bced-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9e389750-cdce-11e4-bced-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:26:42.959648"], ["id", "9e389750-cdce-11e4-bced-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$7b3JxMCJIxgsT5wCjXENduMuvrfu297QULbl4tBtZ9COcSxcAJWiC"], ["created_at", "2015-03-19 00:28:06.945452"], ["updated_at", "2015-03-19 00:28:06.945452"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.015698"], ["user_id", "d04d8ed0-cdce-11e4-8dc4-705681abff85"], ["created_at", "2015-03-19 00:28:07.022100"], ["updated_at", "2015-03-19 00:28:07.022100"], ["token", "BScisq2mJS5QUasPf_gE7etxHXrG6uVjqVHNzl_jhpM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.031324"], ["updated_at", "2015-03-19 00:28:07.031324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd04d8ed0-cdce-11e4-8dc4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd057c06c-cdce-11e4-b3ea-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d04d8ed0-cdce-11e4-8dc4-705681abff85"], ["organization_id", "d057c06c-cdce-11e4-b3ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.044881"], ["updated_at", "2015-03-19 00:28:07.044881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-1" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.078016' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BScisq2mJS5QUasPf_gE7etxHXrG6uVjqVHNzl_jhpM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.085641"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.087061"], ["id", "d05656f0-cdce-11e4-8038-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-1"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d04d8ed0-cdce-11e4-8dc4-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd04d8ed0-cdce-11e4-8dc4-705681abff85' LIMIT 1 [["organization_id", "d057c06c-cdce-11e4-b3ea-705681abff85"]] Completed 200 OK in 30ms (Views: 1.9ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$fzNg4Yn5W5W0QsUmgEqGrO84uQzSoFfe9TouhIhn5.xPI2YFZ96r2"], ["created_at", "2015-03-19 00:28:07.116843"], ["updated_at", "2015-03-19 00:28:07.116843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.118642"], ["user_id", "d064b916-cdce-11e4-96d3-705681abff85"], ["created_at", "2015-03-19 00:28:07.119544"], ["updated_at", "2015-03-19 00:28:07.119544"], ["token", "h9JFk6X_eeBd5ltTgIGwK3_TLSyI_JjTTDYC4Jej_sY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.123129"], ["updated_at", "2015-03-19 00:28:07.123129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd064b916-cdce-11e4-96d3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd065b03c-cdce-11e4-a02f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d064b916-cdce-11e4-96d3-705681abff85"], ["organization_id", "d065b03c-cdce-11e4-a02f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.127231"], ["updated_at", "2015-03-19 00:28:07.127231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Q6.UT0Rnzi2i5SasNl.v5.CopREVyRVKogRY3c4SwySddFfrKTar."], ["created_at", "2015-03-19 00:28:07.138352"], ["updated_at", "2015-03-19 00:28:07.138352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.139974"], ["user_id", "d067fdce-cdce-11e4-8da8-705681abff85"], ["created_at", "2015-03-19 00:28:07.140747"], ["updated_at", "2015-03-19 00:28:07.140747"], ["token", "hVcBAJ63kYiHmTPSZhZGEebrMv27g_aaudF3dj_TCDI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.145735"], ["updated_at", "2015-03-19 00:28:07.145735"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd067fdce-cdce-11e4-8da8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0691d58-cdce-11e4-9ad0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d067fdce-cdce-11e4-8da8-705681abff85"], ["organization_id", "d0691d58-cdce-11e4-9ad0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.151817"], ["updated_at", "2015-03-19 00:28:07.151817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/d0691d58-cdce-11e4-9ad0-705681abff85" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"d0691d58-cdce-11e4-9ad0-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.156558' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hVcBAJ63kYiHmTPSZhZGEebrMv27g_aaudF3dj_TCDI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.158095"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.159048"], ["id", "d06873ee-cdce-11e4-a9e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d0691d58-cdce-11e4-9ad0-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d067fdce-cdce-11e4-8da8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd067fdce-cdce-11e4-8da8-705681abff85' LIMIT 1 [["organization_id", "d0691d58-cdce-11e4-9ad0-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d0691d58-cdce-11e4-9ad0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$U26E1acdXGYQIxzKO.m72OCplYJQIe9G1oSfDAXsk.5A6LbU.jVQi"], ["created_at", "2015-03-19 00:28:07.170809"], ["updated_at", "2015-03-19 00:28:07.170809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.172398"], ["user_id", "d06cf040-cdce-11e4-b4e6-705681abff85"], ["created_at", "2015-03-19 00:28:07.173157"], ["updated_at", "2015-03-19 00:28:07.173157"], ["token", "nL1XQb_tkG2j8UlVh7T0rPQH4HGIyTmpg7txLBF2epc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.176655"], ["updated_at", "2015-03-19 00:28:07.176655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd06cf040-cdce-11e4-b4e6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd06dda82-cdce-11e4-bc5e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d06cf040-cdce-11e4-b4e6-705681abff85"], ["organization_id", "d06dda82-cdce-11e4-bc5e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.180444"], ["updated_at", "2015-03-19 00:28:07.180444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$a1XX.fjmJ3c56Z5oqYUkz.p/FhrfXuJfS2kZWMCRNGVlqna9iqG5a"], ["created_at", "2015-03-19 00:28:07.189839"], ["updated_at", "2015-03-19 00:28:07.189839"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.191969"], ["user_id", "d06fda94-cdce-11e4-a6a4-705681abff85"], ["created_at", "2015-03-19 00:28:07.192908"], ["updated_at", "2015-03-19 00:28:07.192908"], ["token", "WlQMdim-lHda9y_T5kD6cvnIx7rTAiIGoQAp-AmdmGg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.196569"], ["updated_at", "2015-03-19 00:28:07.196569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd06fda94-cdce-11e4-a6a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd070dbf6-cdce-11e4-ae73-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d06fda94-cdce-11e4-a6a4-705681abff85"], ["organization_id", "d070dbf6-cdce-11e4-ae73-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.199753"], ["updated_at", "2015-03-19 00:28:07.199753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$GNl.U2D480Et.n.GCMEY1OCzBCQnEy.ph.uevgSxY4ouipISzwweu"], ["created_at", "2015-03-19 00:28:07.204018"], ["updated_at", "2015-03-19 00:28:07.204018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.207082"], ["updated_at", "2015-03-19 00:28:07.207082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd071fffe-cdce-11e4-bec6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd072788a-cdce-11e4-8cb3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d071fffe-cdce-11e4-bec6-705681abff85"], ["organization_id", "d072788a-cdce-11e4-8cb3-705681abff85"], ["created_at", "2015-03-19 00:28:07.210283"], ["updated_at", "2015-03-19 00:28:07.210283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.215352' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WlQMdim-lHda9y_T5kD6cvnIx7rTAiIGoQAp-AmdmGg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.216885"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.217869"], ["id", "d0705ae6-cdce-11e4-a934-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d06fda94-cdce-11e4-a6a4-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$cYrwEFktgp4fVk/hRKEHLOdIRUo8STJctwmzBBnZA2Oe4zDeiEqr."], ["created_at", "2015-03-19 00:28:07.232924"], ["updated_at", "2015-03-19 00:28:07.232924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.234581"], ["user_id", "d0766b70-cdce-11e4-8371-705681abff85"], ["created_at", "2015-03-19 00:28:07.235533"], ["updated_at", "2015-03-19 00:28:07.235533"], ["token", "Cj8CbiGgOVQcZwThZYqKa9WqPO6BrBJOmV9uKHbHuWQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.245683"], ["updated_at", "2015-03-19 00:28:07.245683"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0766b70-cdce-11e4-8371-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd078cd8e-cdce-11e4-8318-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0766b70-cdce-11e4-8371-705681abff85"], ["organization_id", "d078cd8e-cdce-11e4-8318-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.254394"], ["updated_at", "2015-03-19 00:28:07.254394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$V1HSEuHHPPL3qV0ocoprc.H/T3TQNsHU5.W3qyI3f9ITqe.eIRD2S"], ["created_at", "2015-03-19 00:28:07.258830"], ["updated_at", "2015-03-19 00:28:07.258830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.262056"], ["updated_at", "2015-03-19 00:28:07.262056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd07a5e2e-cdce-11e4-80fa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd07adb74-cdce-11e4-aec5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d07a5e2e-cdce-11e4-80fa-705681abff85"], ["organization_id", "d07adb74-cdce-11e4-aec5-705681abff85"], ["created_at", "2015-03-19 00:28:07.265206"], ["updated_at", "2015-03-19 00:28:07.265206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$.8dhvauS/6vAd2H3OHQP3O4Z9BhFnAK7ZYTla8yw/0/S1un.YHaq2"], ["created_at", "2015-03-19 00:28:07.275983"], ["updated_at", "2015-03-19 00:28:07.275983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.277663"], ["user_id", "d07cfe4a-cdce-11e4-b954-705681abff85"], ["created_at", "2015-03-19 00:28:07.278528"], ["updated_at", "2015-03-19 00:28:07.278528"], ["token", "ogKqXXYvcnupar7HduwtOXd_pJYgNDvYqbqz7_Emrq0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.282497"], ["updated_at", "2015-03-19 00:28:07.282497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd07cfe4a-cdce-11e4-b954-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd07dfbba-cdce-11e4-b6e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d07cfe4a-cdce-11e4-b954-705681abff85"], ["organization_id", "d07dfbba-cdce-11e4-b6e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.286565"], ["updated_at", "2015-03-19 00:28:07.286565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$KsPY1SxI1uUvo0HNd.9xC.MWgSK0JJXD0Zzz/ytluMW5azW5qPHZ6"], ["created_at", "2015-03-19 00:28:07.297510"], ["updated_at", "2015-03-19 00:28:07.297510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.299216"], ["user_id", "d080476c-cdce-11e4-9a97-705681abff85"], ["created_at", "2015-03-19 00:28:07.300023"], ["updated_at", "2015-03-19 00:28:07.300023"], ["token", "YvanGvc16rz3gtrUa750qmZze6rPljUYTgLgRdweJu4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.303540"], ["updated_at", "2015-03-19 00:28:07.303540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd080476c-cdce-11e4-9a97-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0812f88-cdce-11e4-946b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d080476c-cdce-11e4-9a97-705681abff85"], ["organization_id", "d0812f88-cdce-11e4-946b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.307144"], ["updated_at", "2015-03-19 00:28:07.307144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.311682' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YvanGvc16rz3gtrUa750qmZze6rPljUYTgLgRdweJu4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.313078"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.314074"], ["id", "d080aebe-cdce-11e4-975b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$R6odF677XJPIxObcN53Hhebx0JCl.YTn8COPJNaYR2Rkmc6.mqeb6"], ["created_at", "2015-03-19 00:28:07.321919"], ["updated_at", "2015-03-19 00:28:07.321919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.323643"], ["user_id", "d084012c-cdce-11e4-bae5-705681abff85"], ["created_at", "2015-03-19 00:28:07.324495"], ["updated_at", "2015-03-19 00:28:07.324495"], ["token", "QERxKkCUH7bsQOlQ-jOAMMrKWtFtDp26IfsftFiX1XI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.328741"], ["updated_at", "2015-03-19 00:28:07.328741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd084012c-cdce-11e4-bae5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd08510bc-cdce-11e4-8ddf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d084012c-cdce-11e4-bae5-705681abff85"], ["organization_id", "d08510bc-cdce-11e4-8ddf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.332565"], ["updated_at", "2015-03-19 00:28:07.332565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-11" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"name"=>"org-11", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.337473' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QERxKkCUH7bsQOlQ-jOAMMrKWtFtDp26IfsftFiX1XI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.338971"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.339954"], ["id", "d0846b12-cdce-11e4-b957-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" IS NULL ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Completed 404 Not Found in 6ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$NxZODT6wuPzx7YLgGCNnGO4fnLYMQ8X5.Rpwtvy8FMBg0Tfk.UTm6"], ["created_at", "2015-03-19 00:28:07.348698"], ["updated_at", "2015-03-19 00:28:07.348698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.350423"], ["user_id", "d088176c-cdce-11e4-af9e-705681abff85"], ["created_at", "2015-03-19 00:28:07.351293"], ["updated_at", "2015-03-19 00:28:07.351293"], ["token", "jbL2va4tN2pUl3JvYtSwzrOgwYwV9sV1MdDL94jv4ME"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.355995"], ["updated_at", "2015-03-19 00:28:07.355995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd088176c-cdce-11e4-af9e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0893462-cdce-11e4-af45-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d088176c-cdce-11e4-af9e-705681abff85"], ["organization_id", "d0893462-cdce-11e4-af45-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.359680"], ["updated_at", "2015-03-19 00:28:07.359680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-12" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-12", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.364986' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jbL2va4tN2pUl3JvYtSwzrOgwYwV9sV1MdDL94jv4ME"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.366594"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.368372"], ["id", "d0889426-cdce-11e4-8b84-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d088176c-cdce-11e4-af9e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd088176c-cdce-11e4-af9e-705681abff85' LIMIT 1 [["organization_id", "d0893462-cdce-11e4-af45-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d0893462-cdce-11e4-af45-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 19ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$pi0UFJHQ.tFAx/F.rwdjbeJAcuRWTwdcRs4wB19qtAS09tIJjlf5W"], ["created_at", "2015-03-19 00:28:07.388595"], ["updated_at", "2015-03-19 00:28:07.388595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.390217"], ["user_id", "d08e2b3e-cdce-11e4-af28-705681abff85"], ["created_at", "2015-03-19 00:28:07.390967"], ["updated_at", "2015-03-19 00:28:07.390967"], ["token", "E3xPrbOtYaH1S1AUAD-upBO1LMORKJlmk4IuG8MsRdo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.395050"], ["updated_at", "2015-03-19 00:28:07.395050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd08e2b3e-cdce-11e4-af28-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd08f28ea-cdce-11e4-a699-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d08e2b3e-cdce-11e4-af28-705681abff85"], ["organization_id", "d08f28ea-cdce-11e4-a699-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.398634"], ["updated_at", "2015-03-19 00:28:07.398634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ClNgxqlWR.xgd/R5iEzROOEWxktLRLdXhx9G6w/OW6ydvLUt8Gm12"], ["created_at", "2015-03-19 00:28:07.409800"], ["updated_at", "2015-03-19 00:28:07.409800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.412430"], ["user_id", "d0917af0-cdce-11e4-bdd7-705681abff85"], ["created_at", "2015-03-19 00:28:07.413242"], ["updated_at", "2015-03-19 00:28:07.413242"], ["token", "MIIQpZTvyhhsJ0-Z6j34Hd_a0-Akqyd61qM8nIwg5Dk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.416592"], ["updated_at", "2015-03-19 00:28:07.416592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0917af0-cdce-11e4-bdd7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0926e88-cdce-11e4-ac7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0917af0-cdce-11e4-bdd7-705681abff85"], ["organization_id", "d0926e88-cdce-11e4-ac7d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.419849"], ["updated_at", "2015-03-19 00:28:07.419849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/d0926e88-cdce-11e4-ac7d-705681abff85" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"d0926e88-cdce-11e4-ac7d-705681abff85", "organization"=>{}} Pollett::Session Load (2.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.424541' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MIIQpZTvyhhsJ0-Z6j34Hd_a0-Akqyd61qM8nIwg5Dk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.428627"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.429839"], ["id", "d091f2f0-cdce-11e4-b636-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d0926e88-cdce-11e4-ac7d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d0917af0-cdce-11e4-bdd7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd0917af0-cdce-11e4-bdd7-705681abff85' LIMIT 1 [["organization_id", "d0926e88-cdce-11e4-ac7d-705681abff85"]] Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$RkBVkJTlUvvrF4NNcbamr.9gZT6bvfBuowrSRbx1oktjrrqNVEHkS"], ["created_at", "2015-03-19 00:28:07.442525"], ["updated_at", "2015-03-19 00:28:07.442525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.445152"], ["user_id", "d0967e2e-cdce-11e4-8e97-705681abff85"], ["created_at", "2015-03-19 00:28:07.446016"], ["updated_at", "2015-03-19 00:28:07.446016"], ["token", "N6f8YS6COMrprYa7ZVsjD9sqyDFEMvtno6cTDHP1oGY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.449602"], ["updated_at", "2015-03-19 00:28:07.449602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0967e2e-cdce-11e4-8e97-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd09782e2-cdce-11e4-ab1f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0967e2e-cdce-11e4-8e97-705681abff85"], ["organization_id", "d09782e2-cdce-11e4-ab1f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.453461"], ["updated_at", "2015-03-19 00:28:07.453461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$8EENAVWttj6USE/rA8hds.abM8CTa8W8IK2X3NhVv9PKQJ1l1qKWS"], ["created_at", "2015-03-19 00:28:07.463886"], ["updated_at", "2015-03-19 00:28:07.463886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.465489"], ["user_id", "d099a856-cdce-11e4-b63e-705681abff85"], ["created_at", "2015-03-19 00:28:07.466256"], ["updated_at", "2015-03-19 00:28:07.466256"], ["token", "je-nM5E1lnsZCQZLevF28mmXms3QuwZXoJ5jFmRAQ7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.469722"], ["updated_at", "2015-03-19 00:28:07.469722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd099a856-cdce-11e4-b63e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd09a8ae6-cdce-11e4-b1be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d099a856-cdce-11e4-b63e-705681abff85"], ["organization_id", "d09a8ae6-cdce-11e4-b1be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.472938"], ["updated_at", "2015-03-19 00:28:07.472938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$1y1z3dirNEhCpYxfpj8RaOaZJ0OnH3CjJ1WET6kT.4CkG0u25g8Um"], ["created_at", "2015-03-19 00:28:07.482999"], ["updated_at", "2015-03-19 00:28:07.482999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.484596"], ["user_id", "d09c9444-cdce-11e4-8ecc-705681abff85"], ["created_at", "2015-03-19 00:28:07.485435"], ["updated_at", "2015-03-19 00:28:07.485435"], ["token", "KGdJhc1rP85ivE6YIuhsWKJhdAuhlzFRMRLFVuaChiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.490576"], ["updated_at", "2015-03-19 00:28:07.490576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd09c9444-cdce-11e4-8ecc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd09dc6ac-cdce-11e4-9e55-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d09c9444-cdce-11e4-8ecc-705681abff85"], ["organization_id", "d09dc6ac-cdce-11e4-9e55-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.496101"], ["updated_at", "2015-03-19 00:28:07.496101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-17" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-17", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.502516' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KGdJhc1rP85ivE6YIuhsWKJhdAuhlzFRMRLFVuaChiY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.504054"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.505059"], ["id", "d09cf74a-cdce-11e4-91c9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-17"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d09c9444-cdce-11e4-8ecc-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd09c9444-cdce-11e4-8ecc-705681abff85' LIMIT 1 [["organization_id", "d09dc6ac-cdce-11e4-9e55-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd09dc6ac-cdce-11e4-9e55-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$MLJyx.8ZsNcMM/iyFgZbkeW4Bjvntais8FIFnN9Ht4ZmxfMesb9a."], ["created_at", "2015-03-19 00:28:07.528218"], ["updated_at", "2015-03-19 00:28:07.528218"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.530579"], ["user_id", "d0a38394-cdce-11e4-87d4-705681abff85"], ["created_at", "2015-03-19 00:28:07.531364"], ["updated_at", "2015-03-19 00:28:07.531364"], ["token", "vLEx3Sze2Wj8y8LDqwI3O1bKu9S8rnMU6Wp7nS1E1-A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.541548"], ["updated_at", "2015-03-19 00:28:07.541548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0a38394-cdce-11e4-87d4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0a5884c-cdce-11e4-bb30-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0a38394-cdce-11e4-87d4-705681abff85"], ["organization_id", "d0a5884c-cdce-11e4-bb30-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.545806"], ["updated_at", "2015-03-19 00:28:07.545806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-18" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-18", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.550435' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vLEx3Sze2Wj8y8LDqwI3O1bKu9S8rnMU6Wp7nS1E1-A"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.551832"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.553287"], ["id", "d0a3fc02-cdce-11e4-90f1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-18"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d0a38394-cdce-11e4-87d4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd0a38394-cdce-11e4-87d4-705681abff85' LIMIT 1 [["organization_id", "d0a5884c-cdce-11e4-bb30-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd0a5884c-cdce-11e4-bb30-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:28:07.560130"], ["id", "d0a5884c-cdce-11e4-bb30-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$4Mx4lfxJbvPXfVOqyjOpeunlPcQqT4CEu3C3wJd5YoxhhIUgxzT2K"], ["created_at", "2015-03-19 00:28:07.567908"], ["updated_at", "2015-03-19 00:28:07.567908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.569488"], ["user_id", "d0a9878a-cdce-11e4-80d4-705681abff85"], ["created_at", "2015-03-19 00:28:07.570278"], ["updated_at", "2015-03-19 00:28:07.570278"], ["token", "kcLFMMPSyigGb9oiXMkTL92iFRwbNSGgcK6n8zj0ahQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.573569"], ["updated_at", "2015-03-19 00:28:07.573569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0a9878a-cdce-11e4-80d4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0aa61dc-cdce-11e4-89ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0a9878a-cdce-11e4-80d4-705681abff85"], ["organization_id", "d0aa61dc-cdce-11e4-89ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.576822"], ["updated_at", "2015-03-19 00:28:07.576822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$65pJOexZFxhCQCV8Ph5/7ebQ05PaVyizXUeR4mJNQOqENNs4Ierf2"], ["created_at", "2015-03-19 00:28:07.587671"], ["updated_at", "2015-03-19 00:28:07.587671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.589608"], ["user_id", "d0ac8ff2-cdce-11e4-a07b-705681abff85"], ["created_at", "2015-03-19 00:28:07.590550"], ["updated_at", "2015-03-19 00:28:07.590550"], ["token", "4RI8UaG0In8vUPlCkq0MRDupcGGjG2rESV6YctuQuBg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.595981"], ["updated_at", "2015-03-19 00:28:07.595981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0ac8ff2-cdce-11e4-a07b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0ae1b2e-cdce-11e4-adb8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0ac8ff2-cdce-11e4-a07b-705681abff85"], ["organization_id", "d0ae1b2e-cdce-11e4-adb8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.601584"], ["updated_at", "2015-03-19 00:28:07.601584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/d0ae1b2e-cdce-11e4-adb8-705681abff85" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"d0ae1b2e-cdce-11e4-adb8-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.607924' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4RI8UaG0In8vUPlCkq0MRDupcGGjG2rESV6YctuQuBg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.609355"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.610481"], ["id", "d0ad089c-cdce-11e4-afc4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d0ae1b2e-cdce-11e4-adb8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d0ac8ff2-cdce-11e4-a07b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd0ac8ff2-cdce-11e4-a07b-705681abff85' LIMIT 1 [["organization_id", "d0ae1b2e-cdce-11e4-adb8-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd0ae1b2e-cdce-11e4-adb8-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$vqFk.Vgh/LrcvanjOgUt7eMk8TUT5hVVBNE64Z9H1BXQT2fpmsnOa"], ["created_at", "2015-03-19 00:28:07.623436"], ["updated_at", "2015-03-19 00:28:07.623436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.625034"], ["user_id", "d0b201bc-cdce-11e4-a628-705681abff85"], ["created_at", "2015-03-19 00:28:07.625869"], ["updated_at", "2015-03-19 00:28:07.625869"], ["token", "dkZdB6mgCH6Jfwef8JYobyEaKgO-lEU042VLfjUWi4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.630188"], ["updated_at", "2015-03-19 00:28:07.630188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0b201bc-cdce-11e4-a628-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0b308aa-cdce-11e4-8b92-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0b201bc-cdce-11e4-a628-705681abff85"], ["organization_id", "d0b308aa-cdce-11e4-8b92-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.633618"], ["updated_at", "2015-03-19 00:28:07.633618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/d0b308aa-cdce-11e4-8b92-705681abff85" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"d0b308aa-cdce-11e4-8b92-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.638377' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dkZdB6mgCH6Jfwef8JYobyEaKgO-lEU042VLfjUWi4w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.639848"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.640862"], ["id", "d0b28178-cdce-11e4-b4b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d0b308aa-cdce-11e4-8b92-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d0b201bc-cdce-11e4-a628-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd0b201bc-cdce-11e4-a628-705681abff85' LIMIT 1 [["organization_id", "d0b308aa-cdce-11e4-8b92-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd0b308aa-cdce-11e4-8b92-705681abff85') LIMIT 1 SQL (0.7ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:28:07.650903"], ["id", "d0b308aa-cdce-11e4-8b92-705681abff85"]]  (25.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 41ms (Views: 1.3ms | ActiveRecord: 27.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$3djxSh/C1XU/lKsnhgstM.Ieqr85GtIX5Y0BPM5im50F2tn9fCXCG"], ["created_at", "2015-03-19 00:28:07.689774"], ["updated_at", "2015-03-19 00:28:07.689774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.692960"], ["user_id", "d0bc3c2c-cdce-11e4-bf5a-705681abff85"], ["created_at", "2015-03-19 00:28:07.695176"], ["updated_at", "2015-03-19 00:28:07.695176"], ["token", "3BcZ8C67AdoGStMbGl87fsuMdBY0-rLaHG4AZzIGoBg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.701170"], ["updated_at", "2015-03-19 00:28:07.701170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0bc3c2c-cdce-11e4-bf5a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0bde23e-cdce-11e4-a5e5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0bc3c2c-cdce-11e4-bf5a-705681abff85"], ["organization_id", "d0bde23e-cdce-11e4-a5e5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.704936"], ["updated_at", "2015-03-19 00:28:07.704936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$rkP2Maqu8mL9PgeMMJvpVubOtJQCpblnacmM5KZWGB75/Af4oDvTC"], ["created_at", "2015-03-19 00:28:07.716294"], ["updated_at", "2015-03-19 00:28:07.716294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.718101"], ["user_id", "d0c02e90-cdce-11e4-8ec3-705681abff85"], ["created_at", "2015-03-19 00:28:07.719109"], ["updated_at", "2015-03-19 00:28:07.719109"], ["token", "XIt-2N-ia-oSL7bmSQiJf0W8-g7o1OmsOmkyPw-mgm8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.723034"], ["updated_at", "2015-03-19 00:28:07.723034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0c02e90-cdce-11e4-8ec3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0c13376-cdce-11e4-9ed1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0c02e90-cdce-11e4-8ec3-705681abff85"], ["organization_id", "d0c13376-cdce-11e4-9ed1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.726442"], ["updated_at", "2015-03-19 00:28:07.726442"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.733498' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XIt-2N-ia-oSL7bmSQiJf0W8-g7o1OmsOmkyPw-mgm8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.735143"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.736134"], ["id", "d0c0ac4e-cdce-11e4-a75f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d0c02e90-cdce-11e4-8ec3-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$ghZ7sdKbZ9/nD7apMIo0r.4tUZFWMhTJdmeQrwZi7p5ltEG3wlDrK"], ["created_at", "2015-03-19 00:28:07.749479"], ["updated_at", "2015-03-19 00:28:07.749479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:07.751166"], ["user_id", "d0c53dfe-cdce-11e4-acb8-705681abff85"], ["created_at", "2015-03-19 00:28:07.752224"], ["updated_at", "2015-03-19 00:28:07.752224"], ["token", "S-oXQjr4K9UXs2T9oZjldhCstA9K9-NC7SykQMunhFU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:07.756132"], ["updated_at", "2015-03-19 00:28:07.756132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd0c53dfe-cdce-11e4-acb8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd0c63f4c-cdce-11e4-bc67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d0c53dfe-cdce-11e4-acb8-705681abff85"], ["organization_id", "d0c63f4c-cdce-11e4-bc67-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:07.759466"], ["updated_at", "2015-03-19 00:28:07.759466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:28:07 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:07.764846' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S-oXQjr4K9UXs2T9oZjldhCstA9K9-NC7SykQMunhFU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:07.766298"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:07.768385"], ["id", "d0c5b70c-cdce-11e4-9337-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d0c53dfe-cdce-11e4-acb8-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$XdLpzoS/tbQBUdRvC0qzSewghhvR8dKdnz9XO/saAnmrOhLbGInJS"], ["created_at", "2015-03-19 00:28:52.528384"], ["updated_at", "2015-03-19 00:28:52.528384"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.588544"], ["user_id", "eb78d660-cdce-11e4-93ab-705681abff85"], ["created_at", "2015-03-19 00:28:52.596104"], ["updated_at", "2015-03-19 00:28:52.596104"], ["token", "Q20hOiCIZM6FMmHw_YyOq3WhCjmRtDKZh5D_-92fdRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.606352"], ["updated_at", "2015-03-19 00:28:52.606352"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb78d660-cdce-11e4-93ab-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb81fdee-cdce-11e4-a5ae-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb78d660-cdce-11e4-93ab-705681abff85"], ["organization_id", "eb81fdee-cdce-11e4-a5ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:52.619519"], ["updated_at", "2015-03-19 00:28:52.619519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 17:28:52 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 2ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$QdzsASMkjuiCtUb4VmtlEuJcQO96v/xVqZ6T4YclbILZiV4k0/6Qy"], ["created_at", "2015-03-19 00:28:52.675163"], ["updated_at", "2015-03-19 00:28:52.675163"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.678736"], ["user_id", "eb8c7f80-cdce-11e4-ae4e-705681abff85"], ["created_at", "2015-03-19 00:28:52.680194"], ["updated_at", "2015-03-19 00:28:52.680194"], ["token", "PMvhMR2e00PrLcgyqSXqEdh0z_1Njmn_9kmDNdZ_9Ng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.684593"], ["updated_at", "2015-03-19 00:28:52.684593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb8c7f80-cdce-11e4-ae4e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb8dcb42-cdce-11e4-b809-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb8c7f80-cdce-11e4-ae4e-705681abff85"], ["organization_id", "eb8dcb42-cdce-11e4-b809-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:52.687895"], ["updated_at", "2015-03-19 00:28:52.687895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/eb8dcb42-cdce-11e4-b809-705681abff85" for 127.0.0.1 at 2015-03-18 17:28:52 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"eb8dcb42-cdce-11e4-b809-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:52.692446' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PMvhMR2e00PrLcgyqSXqEdh0z_1Njmn_9kmDNdZ_9Ng"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:52.700020"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:52.701375"], ["id", "eb8d3c68-cdce-11e4-a899-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "eb8dcb42-cdce-11e4-b809-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb8c7f80-cdce-11e4-ae4e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb8c7f80-cdce-11e4-ae4e-705681abff85' LIMIT 1 [["organization_id", "eb8dcb42-cdce-11e4-b809-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "eb8dcb42-cdce-11e4-b809-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 29ms (ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$aFt6TNk2aKweb0hmsHO7dOAz0zsAChIcIXaiS35UeW6uNJqIUWQiS"], ["created_at", "2015-03-19 00:28:52.729605"], ["updated_at", "2015-03-19 00:28:52.729605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (12.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.731425"], ["user_id", "eb94b038-cdce-11e4-b45e-705681abff85"], ["created_at", "2015-03-19 00:28:52.732218"], ["updated_at", "2015-03-19 00:28:52.732218"], ["token", "kRyNAKPoaHgCZAzQistLOz0GkNzsAmi2VCID1Pr06lM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.748366"], ["updated_at", "2015-03-19 00:28:52.748366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb94b038-cdce-11e4-b45e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb97866e-cdce-11e4-886e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb94b038-cdce-11e4-b45e-705681abff85"], ["organization_id", "eb97866e-cdce-11e4-886e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:52.751710"], ["updated_at", "2015-03-19 00:28:52.751710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 17:28:52 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$JmvXIf4BHEZJcxduVI6Du.nytOpWnGNl7v0iOAnP1JoYm.xtxOGBO"], ["created_at", "2015-03-19 00:28:52.761922"], ["updated_at", "2015-03-19 00:28:52.761922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.763757"], ["user_id", "eb999f8a-cdce-11e4-92bc-705681abff85"], ["created_at", "2015-03-19 00:28:52.764564"], ["updated_at", "2015-03-19 00:28:52.764564"], ["token", "qBYFerXmyC52sTqgmDkGGaPhMKvtsd-Tk2haV1XJs0Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.768282"], ["updated_at", "2015-03-19 00:28:52.768282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb999f8a-cdce-11e4-92bc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb9a8f6c-cdce-11e4-8174-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb999f8a-cdce-11e4-92bc-705681abff85"], ["organization_id", "eb9a8f6c-cdce-11e4-8174-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:52.771737"], ["updated_at", "2015-03-19 00:28:52.771737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-4" for 127.0.0.1 at 2015-03-18 17:28:52 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-4", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:52.776293' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qBYFerXmyC52sTqgmDkGGaPhMKvtsd-Tk2haV1XJs0Y"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:52.777822"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:52.779075"], ["id", "eb9a061e-cdce-11e4-9b65-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb999f8a-cdce-11e4-92bc-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb999f8a-cdce-11e4-92bc-705681abff85' LIMIT 1 [["organization_id", "eb9a8f6c-cdce-11e4-8174-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "eb9a8f6c-cdce-11e4-8174-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$6rkGj3tTDjSqFJ3nHNWEyehS7ti39pTh74aFm3SHk5U/McFMhtgmG"], ["created_at", "2015-03-19 00:28:52.791533"], ["updated_at", "2015-03-19 00:28:52.791533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.793438"], ["user_id", "eb9e1d94-cdce-11e4-b517-705681abff85"], ["created_at", "2015-03-19 00:28:52.794239"], ["updated_at", "2015-03-19 00:28:52.794239"], ["token", "pCnp65JoNJPk6MfNSKpOCExL_rdCFbSiiQRrTEH42X0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.797593"], ["updated_at", "2015-03-19 00:28:52.797593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb9e1d94-cdce-11e4-b517-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb9f06fa-cdce-11e4-b751-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb9e1d94-cdce-11e4-b517-705681abff85"], ["organization_id", "eb9f06fa-cdce-11e4-b751-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:52.800933"], ["updated_at", "2015-03-19 00:28:52.800933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$EJxUgki82oOdvyoetUoEr.Hs7IdvP1aFuJY7K1Gb9Mb5g49hpSyWe"], ["created_at", "2015-03-19 00:28:52.805330"], ["updated_at", "2015-03-19 00:28:52.805330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.808638"], ["updated_at", "2015-03-19 00:28:52.808638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eba035ca-cdce-11e4-8e97-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eba0b98c-cdce-11e4-a812-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eba035ca-cdce-11e4-8e97-705681abff85"], ["organization_id", "eba0b98c-cdce-11e4-a812-705681abff85"], ["created_at", "2015-03-19 00:28:52.812216"], ["updated_at", "2015-03-19 00:28:52.812216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:28:52 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$z4/Vv0FsPDoSAntQOjVT5.j7UNCgFByrx0zZBl/wmMPbHt..xyLFe"], ["created_at", "2015-03-19 00:28:52.822774"], ["updated_at", "2015-03-19 00:28:52.822774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.824770"], ["user_id", "eba2e554-cdce-11e4-b822-705681abff85"], ["created_at", "2015-03-19 00:28:52.825574"], ["updated_at", "2015-03-19 00:28:52.825574"], ["token", "XU-4nYITb0GNdHRoc7PXo4Z47qaVEtAvMDRwBTlJ6CA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.829160"], ["updated_at", "2015-03-19 00:28:52.829160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eba2e554-cdce-11e4-b822-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eba3d6c6-cdce-11e4-ae9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eba2e554-cdce-11e4-b822-705681abff85"], ["organization_id", "eba3d6c6-cdce-11e4-ae9b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:52.832386"], ["updated_at", "2015-03-19 00:28:52.832386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Psa.NHdkgqwM9uupXDM4berQQ7mydukuNSFsiHvlhAOi/a3aLl/5m"], ["created_at", "2015-03-19 00:28:52.836894"], ["updated_at", "2015-03-19 00:28:52.836894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.840176"], ["updated_at", "2015-03-19 00:28:52.840176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eba5055a-cdce-11e4-bdda-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eba58638-cdce-11e4-87c2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eba5055a-cdce-11e4-bdda-705681abff85"], ["organization_id", "eba58638-cdce-11e4-87c2-705681abff85"], ["created_at", "2015-03-19 00:28:52.843468"], ["updated_at", "2015-03-19 00:28:52.843468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:28:52 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:52.848043' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XU-4nYITb0GNdHRoc7PXo4Z47qaVEtAvMDRwBTlJ6CA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:52.849485"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:52.850417"], ["id", "eba35868-cdce-11e4-ba96-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eba2e554-cdce-11e4-b822-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$bN64LtjVEFPb42pZ.TdkhOP1xUdVEXBwY6yeQTeusKgD1FbjQnlQu"], ["created_at", "2015-03-19 00:28:52.865354"], ["updated_at", "2015-03-19 00:28:52.865354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.867068"], ["user_id", "eba961d6-cdce-11e4-9870-705681abff85"], ["created_at", "2015-03-19 00:28:52.867864"], ["updated_at", "2015-03-19 00:28:52.867864"], ["token", "_iv4u5xpINr5pmxHijuI57SrlIyIc9FihB-eRSca2os"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.871309"], ["updated_at", "2015-03-19 00:28:52.871309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eba961d6-cdce-11e4-9870-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebaa46dc-cdce-11e4-ae2e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eba961d6-cdce-11e4-9870-705681abff85"], ["organization_id", "ebaa46dc-cdce-11e4-ae2e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:52.874736"], ["updated_at", "2015-03-19 00:28:52.874736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 17:28:52 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$CqPbqJyVOkjckeKxX2f3lefSeMiNkf2RI10afLB/Cu8blSn9Szl7i"], ["created_at", "2015-03-19 00:28:52.884397"], ["updated_at", "2015-03-19 00:28:52.884397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.886169"], ["user_id", "ebac48c4-cdce-11e4-8f84-705681abff85"], ["created_at", "2015-03-19 00:28:52.886980"], ["updated_at", "2015-03-19 00:28:52.886980"], ["token", "VsaXeRaVaYaPMkiKws_X-MbA5H3c0_gNm-K8M4FKaFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.890600"], ["updated_at", "2015-03-19 00:28:52.890600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebac48c4-cdce-11e4-8f84-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebad3a40-cdce-11e4-a81a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebac48c4-cdce-11e4-8f84-705681abff85"], ["organization_id", "ebad3a40-cdce-11e4-a81a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:52.894354"], ["updated_at", "2015-03-19 00:28:52.894354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/ebad3a40-cdce-11e4-a81a-705681abff85" for 127.0.0.1 at 2015-03-18 17:28:52 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"ebad3a40-cdce-11e4-a81a-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:52.899684' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VsaXeRaVaYaPMkiKws_X-MbA5H3c0_gNm-K8M4FKaFI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:52.901178"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:52.902137"], ["id", "ebacb534-cdce-11e4-9f9a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ebad3a40-cdce-11e4-a81a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ebac48c4-cdce-11e4-8f84-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ebac48c4-cdce-11e4-8f84-705681abff85' LIMIT 1 [["organization_id", "ebad3a40-cdce-11e4-a81a-705681abff85"]] Completed 200 OK in 9ms (Views: 1.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$6dIoIp.bSe6q6405mW79jO0JwVAR225ZnXowYKqSUAliiuh/7UkQu"], ["created_at", "2015-03-19 00:28:52.934621"], ["updated_at", "2015-03-19 00:28:52.934621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.937504"], ["user_id", "ebb40afa-cdce-11e4-9501-705681abff85"], ["created_at", "2015-03-19 00:28:52.938804"], ["updated_at", "2015-03-19 00:28:52.938804"], ["token", "5poNhgQakzQkktJMHOa27q4PA0nnmf2HH9WJu4QYvdo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.943461"], ["updated_at", "2015-03-19 00:28:52.943461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebb40afa-cdce-11e4-9501-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebb54afa-cdce-11e4-b5dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebb40afa-cdce-11e4-9501-705681abff85"], ["organization_id", "ebb54afa-cdce-11e4-b5dd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:52.947408"], ["updated_at", "2015-03-19 00:28:52.947408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 17:28:52 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$kixaiLCL6jK2MkpIgL1QYeeAjimexMeK5Mrc8oHzRlFO2yAuEQ1H."], ["created_at", "2015-03-19 00:28:52.959679"], ["updated_at", "2015-03-19 00:28:52.959679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.961553"], ["user_id", "ebb7cb5e-cdce-11e4-a983-705681abff85"], ["created_at", "2015-03-19 00:28:52.962355"], ["updated_at", "2015-03-19 00:28:52.962355"], ["token", "SEKPfwz4BZbgzdziMGO4wI8I67BVqTVSt3gWtu5xsTw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:52.966141"], ["updated_at", "2015-03-19 00:28:52.966141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebb7cb5e-cdce-11e4-a983-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebb8c04a-cdce-11e4-a1ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebb7cb5e-cdce-11e4-a983-705681abff85"], ["organization_id", "ebb8c04a-cdce-11e4-a1ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:52.969737"], ["updated_at", "2015-03-19 00:28:52.969737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-12" for 127.0.0.1 at 2015-03-18 17:28:52 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-12", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:52.974398' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SEKPfwz4BZbgzdziMGO4wI8I67BVqTVSt3gWtu5xsTw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:52.976007"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:52.977178"], ["id", "ebb8365c-cdce-11e4-a611-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ebb7cb5e-cdce-11e4-a983-705681abff85"]] Completed 200 OK in 7ms (ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$oaxRKS.h7YRegXkzDokEaOmYJYrbhcZyvOuaD/8tQfAtHpzTdXHN6"], ["created_at", "2015-03-19 00:28:52.994708"], ["updated_at", "2015-03-19 00:28:52.994708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:52.996412"], ["user_id", "ebbd1f32-cdce-11e4-9ce6-705681abff85"], ["created_at", "2015-03-19 00:28:52.997191"], ["updated_at", "2015-03-19 00:28:52.997191"], ["token", "8cxnQLRsZJcnF086maC5rVt3CpR_o3RrqW4QLEG04Vg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.000598"], ["updated_at", "2015-03-19 00:28:53.000598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebbd1f32-cdce-11e4-9ce6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebbdff10-cdce-11e4-92f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebbd1f32-cdce-11e4-9ce6-705681abff85"], ["organization_id", "ebbdff10-cdce-11e4-92f4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.004024"], ["updated_at", "2015-03-19 00:28:53.004024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:53.008813' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8cxnQLRsZJcnF086maC5rVt3CpR_o3RrqW4QLEG04Vg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:53.010295"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:53.011333"], ["id", "ebbd81ca-cdce-11e4-b00e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$05X5//1GdMlZdzKySNDiDu35YOWXDa8J.lJsf.VXIFhgV9Lo5bhPe"], ["created_at", "2015-03-19 00:28:53.019272"], ["updated_at", "2015-03-19 00:28:53.019272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.021031"], ["user_id", "ebc0e0b8-cdce-11e4-9081-705681abff85"], ["created_at", "2015-03-19 00:28:53.021785"], ["updated_at", "2015-03-19 00:28:53.021785"], ["token", "6YX8gjvstiF76qpAVKAFXDz_uGyUOVMp7sLDaPMkZec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.025326"], ["updated_at", "2015-03-19 00:28:53.025326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebc0e0b8-cdce-11e4-9081-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebc1c82a-cdce-11e4-9259-705681abff85') LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebc0e0b8-cdce-11e4-9081-705681abff85"], ["organization_id", "ebc1c82a-cdce-11e4-9259-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.030757"], ["updated_at", "2015-03-19 00:28:53.030757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$c4oLSK5Ua/pds3UefJfwNephuJ.VeJc81cMbd9zSyMGZsTEPp63uq"], ["created_at", "2015-03-19 00:28:53.043602"], ["updated_at", "2015-03-19 00:28:53.043602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.045410"], ["user_id", "ebc496f4-cdce-11e4-a5f5-705681abff85"], ["created_at", "2015-03-19 00:28:53.046191"], ["updated_at", "2015-03-19 00:28:53.046191"], ["token", "4Hhx2H3YWowBOyPuUMoDnUd6e3xOhXtRgPsu6yrHKbM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.050000"], ["updated_at", "2015-03-19 00:28:53.050000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebc496f4-cdce-11e4-a5f5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebc58eec-cdce-11e4-b5d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebc496f4-cdce-11e4-a5f5-705681abff85"], ["organization_id", "ebc58eec-cdce-11e4-b5d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.053454"], ["updated_at", "2015-03-19 00:28:53.053454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-15" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-15", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:53.057926' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4Hhx2H3YWowBOyPuUMoDnUd6e3xOhXtRgPsu6yrHKbM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:53.059306"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:53.060209"], ["id", "ebc4fc70-cdce-11e4-84b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-15"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ebc496f4-cdce-11e4-a5f5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ebc496f4-cdce-11e4-a5f5-705681abff85' LIMIT 1 [["organization_id", "ebc58eec-cdce-11e4-b5d0-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$WlAk4TYLUAaXjPAdnxPGcuRWWNI61CB3.PZPsRZmBK/k7K.5b/ATu"], ["created_at", "2015-03-19 00:28:53.071648"], ["updated_at", "2015-03-19 00:28:53.071648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.073502"], ["user_id", "ebc8d96c-cdce-11e4-b190-705681abff85"], ["created_at", "2015-03-19 00:28:53.074458"], ["updated_at", "2015-03-19 00:28:53.074458"], ["token", "xkQpPC4TCUazPUPGseK3-0WiVHekVkjcC4jmboT2Wu8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.078623"], ["updated_at", "2015-03-19 00:28:53.078623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebc8d96c-cdce-11e4-b190-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebc9e9d8-cdce-11e4-912d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebc8d96c-cdce-11e4-b190-705681abff85"], ["organization_id", "ebc9e9d8-cdce-11e4-912d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.082118"], ["updated_at", "2015-03-19 00:28:53.082118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$UDbp36kLUjN9JGVgoUnmdunL9Ks1VjvUJorOfkJNgG.77Xuwx2VJu"], ["created_at", "2015-03-19 00:28:53.094010"], ["updated_at", "2015-03-19 00:28:53.094010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.096188"], ["user_id", "ebcc4fca-cdce-11e4-9322-705681abff85"], ["created_at", "2015-03-19 00:28:53.096967"], ["updated_at", "2015-03-19 00:28:53.096967"], ["token", "gWPARjFcMLwhCLH_0ioeaY6UCX2m6AANnQh6yg5nEOU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.100371"], ["updated_at", "2015-03-19 00:28:53.100371"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebcc4fca-cdce-11e4-9322-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebcd39c6-cdce-11e4-ac24-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebcc4fca-cdce-11e4-9322-705681abff85"], ["organization_id", "ebcd39c6-cdce-11e4-ac24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.104568"], ["updated_at", "2015-03-19 00:28:53.104568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/ebcd39c6-cdce-11e4-ac24-705681abff85" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"ebcd39c6-cdce-11e4-ac24-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:53.110398' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gWPARjFcMLwhCLH_0ioeaY6UCX2m6AANnQh6yg5nEOU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:53.112897"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:53.114645"], ["id", "ebccbf50-cdce-11e4-8f6e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ebcd39c6-cdce-11e4-ac24-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ebcc4fca-cdce-11e4-9322-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ebcc4fca-cdce-11e4-9322-705681abff85' LIMIT 1 [["organization_id", "ebcd39c6-cdce-11e4-ac24-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ebcd39c6-cdce-11e4-ac24-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:28:53.123162"], ["id", "ebcd39c6-cdce-11e4-ac24-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.6ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Pum8/i16MYxvtzBUYPYP5u8AlNA8dCVrrD2x1sAnLbnTX.4ucqFcW"], ["created_at", "2015-03-19 00:28:53.131278"], ["updated_at", "2015-03-19 00:28:53.131278"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.133007"], ["user_id", "ebd1f2ea-cdce-11e4-88fc-705681abff85"], ["created_at", "2015-03-19 00:28:53.133793"], ["updated_at", "2015-03-19 00:28:53.133793"], ["token", "vOf9DEahNaEVL1mAG52SbtOQUNNBuTFfrK1PF9-u6Cc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.141114"], ["updated_at", "2015-03-19 00:28:53.141114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebd1f2ea-cdce-11e4-88fc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebd38182-cdce-11e4-8d69-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebd1f2ea-cdce-11e4-88fc-705681abff85"], ["organization_id", "ebd38182-cdce-11e4-8d69-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.145379"], ["updated_at", "2015-03-19 00:28:53.145379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/ebd38182-cdce-11e4-8d69-705681abff85" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"ebd38182-cdce-11e4-8d69-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:53.152160' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vOf9DEahNaEVL1mAG52SbtOQUNNBuTFfrK1PF9-u6Cc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:53.153612"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:53.154590"], ["id", "ebd25c8a-cdce-11e4-bbe1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ebd38182-cdce-11e4-8d69-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ebd1f2ea-cdce-11e4-88fc-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ebd1f2ea-cdce-11e4-88fc-705681abff85' LIMIT 1 [["organization_id", "ebd38182-cdce-11e4-8d69-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ebd38182-cdce-11e4-8d69-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$NVq9Mmsx15gSEnkm9a/ZUeXtR60jtgnv7AQZTg1fJWyK3EfMm.U5G"], ["created_at", "2015-03-19 00:28:53.176709"], ["updated_at", "2015-03-19 00:28:53.176709"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.178722"], ["user_id", "ebd8e654-cdce-11e4-aff3-705681abff85"], ["created_at", "2015-03-19 00:28:53.179566"], ["updated_at", "2015-03-19 00:28:53.179566"], ["token", "Lntp8EHjxY0v3FrK5rMgxfcXZRaB-1atia_2BOXtfbE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.182988"], ["updated_at", "2015-03-19 00:28:53.182988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebd8e654-cdce-11e4-aff3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebd9da6e-cdce-11e4-9737-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebd8e654-cdce-11e4-aff3-705681abff85"], ["organization_id", "ebd9da6e-cdce-11e4-9737-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.186449"], ["updated_at", "2015-03-19 00:28:53.186449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$mOuz0h6FDy8ilmW8VgLeHutasO332HtcjXuFng3OSiHP2mbFbi/aC"], ["created_at", "2015-03-19 00:28:53.197114"], ["updated_at", "2015-03-19 00:28:53.197114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.198699"], ["user_id", "ebdbff42-cdce-11e4-9ff3-705681abff85"], ["created_at", "2015-03-19 00:28:53.199461"], ["updated_at", "2015-03-19 00:28:53.199461"], ["token", "BijYtS2egg-FIIes5Z9p-vaMjjdj52czC1obsNIk6ao"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.203031"], ["updated_at", "2015-03-19 00:28:53.203031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebdbff42-cdce-11e4-9ff3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebdce34e-cdce-11e4-a082-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebdbff42-cdce-11e4-9ff3-705681abff85"], ["organization_id", "ebdce34e-cdce-11e4-a082-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.206245"], ["updated_at", "2015-03-19 00:28:53.206245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-20" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-20", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:53.211620' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BijYtS2egg-FIIes5Z9p-vaMjjdj52czC1obsNIk6ao"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:53.213036"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:53.213990"], ["id", "ebdc5f8c-cdce-11e4-a67c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-20"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ebdbff42-cdce-11e4-9ff3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ebdbff42-cdce-11e4-9ff3-705681abff85' LIMIT 1 [["organization_id", "ebdce34e-cdce-11e4-a082-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ebdce34e-cdce-11e4-a082-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:28:53.221997"], ["id", "ebdce34e-cdce-11e4-a082-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Zijf/9onAMZo5qYnqKhGq.Y9KujtcOjgz5Kw.DvvDnerxFYHXJPTe"], ["created_at", "2015-03-19 00:28:53.229951"], ["updated_at", "2015-03-19 00:28:53.229951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.231634"], ["user_id", "ebe101f4-cdce-11e4-b37b-705681abff85"], ["created_at", "2015-03-19 00:28:53.232417"], ["updated_at", "2015-03-19 00:28:53.232417"], ["token", "AQgA54n1DPV3lR38Sm73Hu0XP1T4j69qf_2c2p6XCFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.235931"], ["updated_at", "2015-03-19 00:28:53.235931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebe101f4-cdce-11e4-b37b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebe1e7b8-cdce-11e4-8a75-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebe101f4-cdce-11e4-b37b-705681abff85"], ["organization_id", "ebe1e7b8-cdce-11e4-8a75-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.239121"], ["updated_at", "2015-03-19 00:28:53.239121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-21" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-21", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:53.245120' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AQgA54n1DPV3lR38Sm73Hu0XP1T4j69qf_2c2p6XCFI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:53.247027"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:53.247956"], ["id", "ebe16590-cdce-11e4-b6ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ebe101f4-cdce-11e4-b37b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ebe101f4-cdce-11e4-b37b-705681abff85' LIMIT 1 [["organization_id", "ebe1e7b8-cdce-11e4-8a75-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ebe1e7b8-cdce-11e4-8a75-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$r4WXhUkEo6AzFmOA8ke/1.9V4uYOZOhOdzJMrpsCJGGlIuRIXPLsS"], ["created_at", "2015-03-19 00:28:53.262788"], ["updated_at", "2015-03-19 00:28:53.262788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.264746"], ["user_id", "ebe60c3a-cdce-11e4-9da3-705681abff85"], ["created_at", "2015-03-19 00:28:53.265798"], ["updated_at", "2015-03-19 00:28:53.265798"], ["token", "Jluv7IxTPyihtoA4_RwuJWtbXGvj3dt1qwBhPv77RUg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.270027"], ["updated_at", "2015-03-19 00:28:53.270027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebe60c3a-cdce-11e4-9da3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebe721ba-cdce-11e4-86ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebe60c3a-cdce-11e4-9da3-705681abff85"], ["organization_id", "ebe721ba-cdce-11e4-86ca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.273753"], ["updated_at", "2015-03-19 00:28:53.273753"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$mYuEubLdJgg1zJcJ3xHDzOFgj94vYtMGoCgOpYnSmF9kdnOgnqwwi"], ["created_at", "2015-03-19 00:28:53.285691"], ["updated_at", "2015-03-19 00:28:53.285691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.287774"], ["user_id", "ebe991e8-cdce-11e4-8b74-705681abff85"], ["created_at", "2015-03-19 00:28:53.288617"], ["updated_at", "2015-03-19 00:28:53.288617"], ["token", "MFjJsXuHyyIFvBnm9PqlnhYW09s1l7dMOgWkF09DNCw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.292448"], ["updated_at", "2015-03-19 00:28:53.292448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebe991e8-cdce-11e4-8b74-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebea8d78-cdce-11e4-ad25-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebe991e8-cdce-11e4-8b74-705681abff85"], ["organization_id", "ebea8d78-cdce-11e4-ad25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.296637"], ["updated_at", "2015-03-19 00:28:53.296637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:53.302265' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MFjJsXuHyyIFvBnm9PqlnhYW09s1l7dMOgWkF09DNCw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:53.303971"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:53.305011"], ["id", "ebea006a-cdce-11e4-8768-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ebe991e8-cdce-11e4-8b74-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$pFbkEg./8WNkQMh1mxwUS.s9D4N.jj09mi1LdHID8D5gREjhttP.2"], ["created_at", "2015-03-19 00:28:53.318973"], ["updated_at", "2015-03-19 00:28:53.318973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:28:53.320980"], ["user_id", "ebee9f94-cdce-11e4-b48d-705681abff85"], ["created_at", "2015-03-19 00:28:53.321815"], ["updated_at", "2015-03-19 00:28:53.321815"], ["token", "xLQofr1Mn6O8Z2DL-vdaBo1GTcCDS-_Rgf_6FA9mjHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:28:53.326031"], ["updated_at", "2015-03-19 00:28:53.326031"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ebee9f94-cdce-11e4-b48d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ebefb762-cdce-11e4-b43a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ebee9f94-cdce-11e4-b48d-705681abff85"], ["organization_id", "ebefb762-cdce-11e4-b43a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:28:53.330440"], ["updated_at", "2015-03-19 00:28:53.330440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:28:53 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:28:53.340751' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xLQofr1Mn6O8Z2DL-vdaBo1GTcCDS-_Rgf_6FA9mjHY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:28:53.342717"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:28:53.344513"], ["id", "ebef1f0a-cdce-11e4-afb0-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ebee9f94-cdce-11e4-b48d-705681abff85"]] Unpermitted parameter: organization  (0.7ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 26ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$mzjLfSkr3jO9E6jxWM711Op2D7YZ88kd0Y4Fm5/3fiFH2qyAFhaNW"], ["created_at", "2015-03-19 00:31:31.007384"], ["updated_at", "2015-03-19 00:31:31.007384"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.075064"], ["user_id", "49eeec16-cdcf-11e4-8d4b-705681abff85"], ["created_at", "2015-03-19 00:31:31.081312"], ["updated_at", "2015-03-19 00:31:31.081312"], ["token", "_NxHi0cDKdb_4J4EnRnPz1IiGlpSKJcNdDpaDQRRTdo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (5.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.096951"], ["updated_at", "2015-03-19 00:31:31.096951"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '49eeec16-cdcf-11e4-8d4b-705681abff85' AND "clubhouse_memberships"."organization_id" = '49f9aa98-cdcf-11e4-85d1-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "49eeec16-cdcf-11e4-8d4b-705681abff85"], ["organization_id", "49f9aa98-cdcf-11e4-85d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.115425"], ["updated_at", "2015-03-19 00:31:31.115425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$xh97So.gj87bxi.MvxkckeAgg6/8qD5u7UAAV.rhDle76rWT3GouG"], ["created_at", "2015-03-19 00:31:31.152358"], ["updated_at", "2015-03-19 00:31:31.152358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.154116"], ["user_id", "4a0210f2-cdcf-11e4-bc6e-705681abff85"], ["created_at", "2015-03-19 00:31:31.154903"], ["updated_at", "2015-03-19 00:31:31.154903"], ["token", "WcM5kT7LdLqEZWonSs_Bs1qcdX3B2LZ1n4REKuzQAJA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.158440"], ["updated_at", "2015-03-19 00:31:31.158440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a0210f2-cdcf-11e4-bc6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a02f936-cdcf-11e4-ae9d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a0210f2-cdcf-11e4-bc6e-705681abff85"], ["organization_id", "4a02f936-cdcf-11e4-ae9d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.161707"], ["updated_at", "2015-03-19 00:31:31.161707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.168721' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WcM5kT7LdLqEZWonSs_Bs1qcdX3B2LZ1n4REKuzQAJA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.176185"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.177508"], ["id", "4a0279ca-cdcf-11e4-8c86-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a0210f2-cdcf-11e4-bc6e-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 44ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$CEnFLEA/ijCgF9a1Mh3itezc3CF5xjqLs7N03hkniln3npCmMUtHe"], ["created_at", "2015-03-19 00:31:31.217980"], ["updated_at", "2015-03-19 00:31:31.217980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.219701"], ["user_id", "4a0c1390-cdcf-11e4-8c1e-705681abff85"], ["created_at", "2015-03-19 00:31:31.220647"], ["updated_at", "2015-03-19 00:31:31.220647"], ["token", "uerGzROukYVl7TXqMCPEZ_wMIWD-ziHaPnCeudp4otc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.224351"], ["updated_at", "2015-03-19 00:31:31.224351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a0c1390-cdcf-11e4-8c1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a0d08fe-cdcf-11e4-a7fc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a0c1390-cdcf-11e4-8c1e-705681abff85"], ["organization_id", "4a0d08fe-cdcf-11e4-a7fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.227611"], ["updated_at", "2015-03-19 00:31:31.227611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.232068' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uerGzROukYVl7TXqMCPEZ_wMIWD-ziHaPnCeudp4otc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.233889"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.235842"], ["id", "4a0c84a6-cdcf-11e4-9546-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a0c1390-cdcf-11e4-8c1e-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.241650"], ["updated_at", "2015-03-19 00:31:31.241650"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4a0fae2e-cdcf-11e4-937d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a0c1390-cdcf-11e4-8c1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a0fae2e-cdcf-11e4-937d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a0c1390-cdcf-11e4-8c1e-705681abff85"], ["admin", "t"], ["organization_id", "4a0fae2e-cdcf-11e4-937d-705681abff85"], ["created_at", "2015-03-19 00:31:31.247116"], ["updated_at", "2015-03-19 00:31:31.247116"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 1.9ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$wM91qdL.ihglv.SQ0WvM2eXGH2NnXfwv486eEk4VlT96xzlFDRmFe"], ["created_at", "2015-03-19 00:31:31.260051"], ["updated_at", "2015-03-19 00:31:31.260051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.261717"], ["user_id", "4a127e06-cdcf-11e4-a7e9-705681abff85"], ["created_at", "2015-03-19 00:31:31.262512"], ["updated_at", "2015-03-19 00:31:31.262512"], ["token", "469yzjYn-dt0qAhY-hceAuTNdSEneoa1GPbUX3KYmUA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.265849"], ["updated_at", "2015-03-19 00:31:31.265849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a127e06-cdcf-11e4-a7e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a136064-cdcf-11e4-91f8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a127e06-cdcf-11e4-a7e9-705681abff85"], ["organization_id", "4a136064-cdcf-11e4-91f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.270173"], ["updated_at", "2015-03-19 00:31:31.270173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-4" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-4", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.275167' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "469yzjYn-dt0qAhY-hceAuTNdSEneoa1GPbUX3KYmUA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.276606"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.277547"], ["id", "4a12e2a6-cdcf-11e4-bdb0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a127e06-cdcf-11e4-a7e9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4a127e06-cdcf-11e4-a7e9-705681abff85' LIMIT 1 [["organization_id", "4a136064-cdcf-11e4-91f8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "4a136064-cdcf-11e4-91f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$KW1qulPf8qzA7fr4/L/47.ehUO8Gde6H8JhtE32k9A3a2PHcZs4GC"], ["created_at", "2015-03-19 00:31:31.289970"], ["updated_at", "2015-03-19 00:31:31.289970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.291813"], ["user_id", "4a1714d4-cdcf-11e4-a9dd-705681abff85"], ["created_at", "2015-03-19 00:31:31.292670"], ["updated_at", "2015-03-19 00:31:31.292670"], ["token", "LSzgEkLV6Nl3X4qESedA_o20s0sxYDkNdX8l4pk6_ZU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.298355"], ["updated_at", "2015-03-19 00:31:31.298355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a1714d4-cdcf-11e4-a9dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a1856a0-cdcf-11e4-b49c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a1714d4-cdcf-11e4-a9dd-705681abff85"], ["organization_id", "4a1856a0-cdcf-11e4-b49c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.301812"], ["updated_at", "2015-03-19 00:31:31.301812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ppKqaQKaqlxmLHktqNnjiO48fBD3R9USKjHlUpVDfaJPwm7TO8loW"], ["created_at", "2015-03-19 00:31:31.311631"], ["updated_at", "2015-03-19 00:31:31.311631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.313247"], ["user_id", "4a1a5b8a-cdcf-11e4-b815-705681abff85"], ["created_at", "2015-03-19 00:31:31.314102"], ["updated_at", "2015-03-19 00:31:31.314102"], ["token", "advTTKbqqc0grc82STVi4tC_BmiiqHrOkFR8ZKfdiIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.317838"], ["updated_at", "2015-03-19 00:31:31.317838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a1a5b8a-cdcf-11e4-b815-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a1b5d82-cdcf-11e4-adab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a1a5b8a-cdcf-11e4-b815-705681abff85"], ["organization_id", "4a1b5d82-cdcf-11e4-adab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.321925"], ["updated_at", "2015-03-19 00:31:31.321925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/4a1b5d82-cdcf-11e4-adab-705681abff85" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"4a1b5d82-cdcf-11e4-adab-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.326770' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "advTTKbqqc0grc82STVi4tC_BmiiqHrOkFR8ZKfdiIM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.328331"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.329375"], ["id", "4a1ac2a0-cdcf-11e4-b0c5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4a1b5d82-cdcf-11e4-adab-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a1a5b8a-cdcf-11e4-b815-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4a1a5b8a-cdcf-11e4-b815-705681abff85' LIMIT 1 [["organization_id", "4a1b5d82-cdcf-11e4-adab-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$drJqq3v9hgI8WLzUwFhQC.K3ixsSeHZzSMN7RM/2UVLpZKkQOI.w."], ["created_at", "2015-03-19 00:31:31.341275"], ["updated_at", "2015-03-19 00:31:31.341275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.342954"], ["user_id", "4a1ee380-cdcf-11e4-b209-705681abff85"], ["created_at", "2015-03-19 00:31:31.343727"], ["updated_at", "2015-03-19 00:31:31.343727"], ["token", "lroSHwLQ50Q0eX1HAH-e80inB66R3TsfzERQQTxTm6U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.347138"], ["updated_at", "2015-03-19 00:31:31.347138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a1ee380-cdcf-11e4-b209-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a1fc444-cdcf-11e4-a9ec-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a1ee380-cdcf-11e4-b209-705681abff85"], ["organization_id", "4a1fc444-cdcf-11e4-a9ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.350712"], ["updated_at", "2015-03-19 00:31:31.350712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$5KRBNcVQwsHOHEieHwIl3ezLhtxSeJAyPgTU2WzFQ7Uu1dm4bnzRy"], ["created_at", "2015-03-19 00:31:31.364055"], ["updated_at", "2015-03-19 00:31:31.364055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.365779"], ["user_id", "4a225f10-cdcf-11e4-b546-705681abff85"], ["created_at", "2015-03-19 00:31:31.366540"], ["updated_at", "2015-03-19 00:31:31.366540"], ["token", "3UlDOPWDe8fiCpiq1_NoIE34vbw4Yz2dgUvZ5GWDxkM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.370536"], ["updated_at", "2015-03-19 00:31:31.370536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a225f10-cdcf-11e4-b546-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a23576c-cdcf-11e4-ab65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a225f10-cdcf-11e4-b546-705681abff85"], ["organization_id", "4a23576c-cdcf-11e4-ab65-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.373851"], ["updated_at", "2015-03-19 00:31:31.373851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (2.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$aNxu5VeCGqEgK5AEJ6cI4Ot/ZcOcpiFgycsTLwuoAN7FrTu0sYEa2"], ["created_at", "2015-03-19 00:31:31.386382"], ["updated_at", "2015-03-19 00:31:31.386382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.391038"], ["user_id", "4a25cc54-cdcf-11e4-9a39-705681abff85"], ["created_at", "2015-03-19 00:31:31.391882"], ["updated_at", "2015-03-19 00:31:31.391882"], ["token", "NrW_DU5wjO0tvNCZpLq6d7dAtvjaKBIBYcf0u-k9iuk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.395462"], ["updated_at", "2015-03-19 00:31:31.395462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a25cc54-cdcf-11e4-9a39-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a27252c-cdcf-11e4-be91-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a25cc54-cdcf-11e4-9a39-705681abff85"], ["organization_id", "4a27252c-cdcf-11e4-be91-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.398877"], ["updated_at", "2015-03-19 00:31:31.398877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.403749' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NrW_DU5wjO0tvNCZpLq6d7dAtvjaKBIBYcf0u-k9iuk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.405262"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.406443"], ["id", "4a26a35e-cdcf-11e4-aeb4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ap447b7tTuoa8cahULA50.guHfXLpxXDut5SA/zdR1y7CxP9rGApO"], ["created_at", "2015-03-19 00:31:31.415232"], ["updated_at", "2015-03-19 00:31:31.415232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.417981"], ["user_id", "4a2a36a4-cdcf-11e4-855a-705681abff85"], ["created_at", "2015-03-19 00:31:31.419158"], ["updated_at", "2015-03-19 00:31:31.419158"], ["token", "BS7SNX3v97QPM7pVYZ6CB-ktj9P2lQxcjVkhbI31Uxc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.423270"], ["updated_at", "2015-03-19 00:31:31.423270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a2a36a4-cdcf-11e4-855a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a2b6560-cdcf-11e4-831d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a2a36a4-cdcf-11e4-855a-705681abff85"], ["organization_id", "4a2b6560-cdcf-11e4-831d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.427084"], ["updated_at", "2015-03-19 00:31:31.427084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-10" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.439235' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BS7SNX3v97QPM7pVYZ6CB-ktj9P2lQxcjVkhbI31Uxc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.441135"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.442151"], ["id", "4a2ad406-cdcf-11e4-a50a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a2a36a4-cdcf-11e4-855a-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Rmsiye8O7naz3.4qPuzT8uY/ky.MoUouyxQK12iVsYaQterQO06Vi"], ["created_at", "2015-03-19 00:31:31.450714"], ["updated_at", "2015-03-19 00:31:31.450714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.452843"], ["user_id", "4a2f966c-cdcf-11e4-8550-705681abff85"], ["created_at", "2015-03-19 00:31:31.453995"], ["updated_at", "2015-03-19 00:31:31.453995"], ["token", "K-Nau95FXbOF8HChMghzpD7xvHMrm7LBQia1hHyExkE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.457616"], ["updated_at", "2015-03-19 00:31:31.457616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a2f966c-cdcf-11e4-8550-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a309ed6-cdcf-11e4-b0bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a2f966c-cdcf-11e4-8550-705681abff85"], ["organization_id", "4a309ed6-cdcf-11e4-b0bc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.460915"], ["updated_at", "2015-03-19 00:31:31.460915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$j/eGBpgSSKSXivl/gkfLH.e672pTE8BRP3/.oFeGKeZWgE.4fiwKm"], ["created_at", "2015-03-19 00:31:31.471578"], ["updated_at", "2015-03-19 00:31:31.471578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.473228"], ["user_id", "4a32c38c-cdcf-11e4-a8e0-705681abff85"], ["created_at", "2015-03-19 00:31:31.473967"], ["updated_at", "2015-03-19 00:31:31.473967"], ["token", "XmfPR8GQ2yslKEgI2OXwTTxEpAGdIDQnEUMTkQb0f6g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.477431"], ["updated_at", "2015-03-19 00:31:31.477431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a32c38c-cdcf-11e4-a8e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a33a5c2-cdcf-11e4-bb33-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a32c38c-cdcf-11e4-a8e0-705681abff85"], ["organization_id", "4a33a5c2-cdcf-11e4-bb33-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.481886"], ["updated_at", "2015-03-19 00:31:31.481886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-12" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-12", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.487448' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XmfPR8GQ2yslKEgI2OXwTTxEpAGdIDQnEUMTkQb0f6g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.489263"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.490454"], ["id", "4a332638-cdcf-11e4-8346-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a32c38c-cdcf-11e4-a8e0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4a32c38c-cdcf-11e4-a8e0-705681abff85' LIMIT 1 [["organization_id", "4a33a5c2-cdcf-11e4-bb33-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4a33a5c2-cdcf-11e4-bb33-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Lc70nSrqjX3DcirFKog5i.YQBBn523O7p.C6i8imXQK9WmXKMPIgu"], ["created_at", "2015-03-19 00:31:31.505535"], ["updated_at", "2015-03-19 00:31:31.505535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.507184"], ["user_id", "4a37f24e-cdcf-11e4-9c92-705681abff85"], ["created_at", "2015-03-19 00:31:31.507961"], ["updated_at", "2015-03-19 00:31:31.507961"], ["token", "Fjncq6FVJMApoq2dHVBZ7W64Dv57osQtwJijz3vWdk4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.511274"], ["updated_at", "2015-03-19 00:31:31.511274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a37f24e-cdcf-11e4-9c92-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a38ceb2-cdcf-11e4-89be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a37f24e-cdcf-11e4-9c92-705681abff85"], ["organization_id", "4a38ceb2-cdcf-11e4-89be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.514498"], ["updated_at", "2015-03-19 00:31:31.514498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-13" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-13", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.519618' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Fjncq6FVJMApoq2dHVBZ7W64Dv57osQtwJijz3vWdk4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.521103"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.522110"], ["id", "4a3855ae-cdcf-11e4-80f5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a37f24e-cdcf-11e4-9c92-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4a37f24e-cdcf-11e4-9c92-705681abff85' LIMIT 1 [["organization_id", "4a38ceb2-cdcf-11e4-89be-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4a38ceb2-cdcf-11e4-89be-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:31:31.528947"], ["id", "4a38ceb2-cdcf-11e4-89be-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$NQ2sfy1BNKmCaSTaxve2uunOy7Qwu0aZe6EaJ2CDtwuNR2hDobu0a"], ["created_at", "2015-03-19 00:31:31.536526"], ["updated_at", "2015-03-19 00:31:31.536526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.538138"], ["user_id", "4a3cac8a-cdcf-11e4-802d-705681abff85"], ["created_at", "2015-03-19 00:31:31.538890"], ["updated_at", "2015-03-19 00:31:31.538890"], ["token", "RZPRVYC8P0nivenKgiuAs7rkXgzj1BndTjA1F7nwXts"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.542083"], ["updated_at", "2015-03-19 00:31:31.542083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a3cac8a-cdcf-11e4-802d-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a3d8560-cdcf-11e4-90c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a3cac8a-cdcf-11e4-802d-705681abff85"], ["organization_id", "4a3d8560-cdcf-11e4-90c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.545394"], ["updated_at", "2015-03-19 00:31:31.545394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/4a3d8560-cdcf-11e4-90c6-705681abff85" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"4a3d8560-cdcf-11e4-90c6-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.549730' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RZPRVYC8P0nivenKgiuAs7rkXgzj1BndTjA1F7nwXts"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.551601"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.553484"], ["id", "4a3d0b94-cdcf-11e4-8969-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4a3d8560-cdcf-11e4-90c6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a3cac8a-cdcf-11e4-802d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4a3cac8a-cdcf-11e4-802d-705681abff85' LIMIT 1 [["organization_id", "4a3d8560-cdcf-11e4-90c6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "4a3d8560-cdcf-11e4-90c6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$wCrMEIjPGIEGFVwuuPG4TOtco4H4wDR4VbGmuB8OwVJBgCXSkn/ni"], ["created_at", "2015-03-19 00:31:31.564728"], ["updated_at", "2015-03-19 00:31:31.564728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.567484"], ["user_id", "4a410456-cdcf-11e4-b90c-705681abff85"], ["created_at", "2015-03-19 00:31:31.569224"], ["updated_at", "2015-03-19 00:31:31.569224"], ["token", "38ADt2bZw-qD3fezbY7oRgZsKjg9FzoXonC-kilflU0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.576824"], ["updated_at", "2015-03-19 00:31:31.576824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a410456-cdcf-11e4-b90c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a42d330-cdcf-11e4-9ed9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a410456-cdcf-11e4-b90c-705681abff85"], ["organization_id", "4a42d330-cdcf-11e4-9ed9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.580286"], ["updated_at", "2015-03-19 00:31:31.580286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$9A9jf3GrjzJUSJySGHAmMeoe./meTDacbHTv7ttHO5TwWcfEJbuQq"], ["created_at", "2015-03-19 00:31:31.590563"], ["updated_at", "2015-03-19 00:31:31.590563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.592247"], ["user_id", "4a44eb48-cdcf-11e4-96af-705681abff85"], ["created_at", "2015-03-19 00:31:31.593058"], ["updated_at", "2015-03-19 00:31:31.593058"], ["token", "Z3zsK86GCgOm8L5lfzr-UQvyaPw45ZE4LXWaLL3xUKQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.596467"], ["updated_at", "2015-03-19 00:31:31.596467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a44eb48-cdcf-11e4-96af-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a45cf86-cdcf-11e4-89de-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a44eb48-cdcf-11e4-96af-705681abff85"], ["organization_id", "4a45cf86-cdcf-11e4-89de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.599850"], ["updated_at", "2015-03-19 00:31:31.599850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-16" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-16", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.604509' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Z3zsK86GCgOm8L5lfzr-UQvyaPw45ZE4LXWaLL3xUKQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.605880"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.606906"], ["id", "4a4552cc-cdcf-11e4-844f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a44eb48-cdcf-11e4-96af-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4a44eb48-cdcf-11e4-96af-705681abff85' LIMIT 1 [["organization_id", "4a45cf86-cdcf-11e4-89de-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$/Tz2LlSzX9mCuwBCP/zUaO6eJJr.sBSy8NyVubncrxIeff2ZkGXXa"], ["created_at", "2015-03-19 00:31:31.617366"], ["updated_at", "2015-03-19 00:31:31.617366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.618939"], ["user_id", "4a490232-cdcf-11e4-a1f5-705681abff85"], ["created_at", "2015-03-19 00:31:31.619713"], ["updated_at", "2015-03-19 00:31:31.619713"], ["token", "6m1A0YgmgqlWJwnV7DiT8Dkpm-neg-cKTY8NC3gOB90"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.623457"], ["updated_at", "2015-03-19 00:31:31.623457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a490232-cdcf-11e4-a1f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a49f160-cdcf-11e4-a29f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a490232-cdcf-11e4-a1f5-705681abff85"], ["organization_id", "4a49f160-cdcf-11e4-a29f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.627066"], ["updated_at", "2015-03-19 00:31:31.627066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$SCx7HG.dqtyh48VilJKI8uwP9szDL1W5DuEfo.2J90YiOJrb2pMBi"], ["created_at", "2015-03-19 00:31:31.638057"], ["updated_at", "2015-03-19 00:31:31.638057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.639869"], ["user_id", "4a4c318c-cdcf-11e4-bf19-705681abff85"], ["created_at", "2015-03-19 00:31:31.640659"], ["updated_at", "2015-03-19 00:31:31.640659"], ["token", "YQQ_6Bnl_jfZyslxZ5JoMCa8Q48DpZOt8nIrbkqC8uQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.644086"], ["updated_at", "2015-03-19 00:31:31.644086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a4c318c-cdcf-11e4-bf19-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a4d134a-cdcf-11e4-b0d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a4c318c-cdcf-11e4-bf19-705681abff85"], ["organization_id", "4a4d134a-cdcf-11e4-b0d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.647321"], ["updated_at", "2015-03-19 00:31:31.647321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$IZHLqxw/pyx8S6Fsiu2o0.uZEtN1sGKyt1CBew/SwCUN1GahW6mA6"], ["created_at", "2015-03-19 00:31:31.690604"], ["updated_at", "2015-03-19 00:31:31.690604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.692490"], ["user_id", "4a5434ea-cdcf-11e4-b723-705681abff85"], ["created_at", "2015-03-19 00:31:31.695313"], ["updated_at", "2015-03-19 00:31:31.695313"], ["token", "rvPRHjISGTS0wH8BLeR47x2gn6TpC6JBErjr20Ull_c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.707529"], ["updated_at", "2015-03-19 00:31:31.707529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a5434ea-cdcf-11e4-b723-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a56cc46-cdcf-11e4-8c6d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a5434ea-cdcf-11e4-b723-705681abff85"], ["organization_id", "4a56cc46-cdcf-11e4-8c6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.711954"], ["updated_at", "2015-03-19 00:31:31.711954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/4a56cc46-cdcf-11e4-8c6d-705681abff85" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"4a56cc46-cdcf-11e4-8c6d-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.716745' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rvPRHjISGTS0wH8BLeR47x2gn6TpC6JBErjr20Ull_c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.718114"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.719061"], ["id", "4a550f32-cdcf-11e4-bf5d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4a56cc46-cdcf-11e4-8c6d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a5434ea-cdcf-11e4-b723-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4a5434ea-cdcf-11e4-b723-705681abff85' LIMIT 1 [["organization_id", "4a56cc46-cdcf-11e4-8c6d-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4a56cc46-cdcf-11e4-8c6d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$hkX1oXLhamVM.I6tHmctPOl8NNof9AaMTYlX2eB/n9Ckp4vr5YENy"], ["created_at", "2015-03-19 00:31:31.732667"], ["updated_at", "2015-03-19 00:31:31.732667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.734329"], ["user_id", "4a5a9aec-cdcf-11e4-afa7-705681abff85"], ["created_at", "2015-03-19 00:31:31.735135"], ["updated_at", "2015-03-19 00:31:31.735135"], ["token", "qd4aL2z9OcdQ1LzoYKUin1amg3HhVWYhLOdGLJUvlzI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.739363"], ["updated_at", "2015-03-19 00:31:31.739363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a5a9aec-cdcf-11e4-afa7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a5b9e24-cdcf-11e4-8926-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a5a9aec-cdcf-11e4-afa7-705681abff85"], ["organization_id", "4a5b9e24-cdcf-11e4-8926-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.742637"], ["updated_at", "2015-03-19 00:31:31.742637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/4a5b9e24-cdcf-11e4-8926-705681abff85" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"4a5b9e24-cdcf-11e4-8926-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.747281' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qd4aL2z9OcdQ1LzoYKUin1amg3HhVWYhLOdGLJUvlzI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.748774"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.749727"], ["id", "4a5b1364-cdcf-11e4-b796-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4a5b9e24-cdcf-11e4-8926-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a5a9aec-cdcf-11e4-afa7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4a5a9aec-cdcf-11e4-afa7-705681abff85' LIMIT 1 [["organization_id", "4a5b9e24-cdcf-11e4-8926-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4a5b9e24-cdcf-11e4-8926-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 00:31:31.756282"], ["id", "4a5b9e24-cdcf-11e4-8926-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$s0Ze2EkVDq711aLcd83vc.jBriSwbjH//rYkVqcuekheZImh3Z6P2"], ["created_at", "2015-03-19 00:31:31.763869"], ["updated_at", "2015-03-19 00:31:31.763869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.765577"], ["user_id", "4a5f5d3e-cdcf-11e4-a7c3-705681abff85"], ["created_at", "2015-03-19 00:31:31.766497"], ["updated_at", "2015-03-19 00:31:31.766497"], ["token", "sPBUGkSUjWmXGaX-v1ndnSHjw5omeZFEGPMvbBabtBQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.770347"], ["updated_at", "2015-03-19 00:31:31.770347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a5f5d3e-cdcf-11e4-a7c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a6074c6-cdcf-11e4-a9fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a5f5d3e-cdcf-11e4-a7c3-705681abff85"], ["organization_id", "4a6074c6-cdcf-11e4-a9fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.775017"], ["updated_at", "2015-03-19 00:31:31.775017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$5tii6szE6mdRu37fEbHVzuMFnoxFoSQW5.aAh7ZGZ3DmmRd.ULxXO"], ["created_at", "2015-03-19 00:31:31.779728"], ["updated_at", "2015-03-19 00:31:31.779728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.782928"], ["updated_at", "2015-03-19 00:31:31.782928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a61c93e-cdcf-11e4-9473-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a624238-cdcf-11e4-a3d2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4a61c93e-cdcf-11e4-9473-705681abff85"], ["organization_id", "4a624238-cdcf-11e4-a3d2-705681abff85"], ["created_at", "2015-03-19 00:31:31.786757"], ["updated_at", "2015-03-19 00:31:31.786757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 00:31:31.792481' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sPBUGkSUjWmXGaX-v1ndnSHjw5omeZFEGPMvbBabtBQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 00:31:31.794064"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 00:31:31.795127"], ["id", "4a5fd20a-cdcf-11e4-8546-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a5f5d3e-cdcf-11e4-a7c3-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$JPryTcyVq0aHmx4y.UXI4ecXe2PTKSBzuEojg97bfGq3RDK8cE08C"], ["created_at", "2015-03-19 00:31:31.811519"], ["updated_at", "2015-03-19 00:31:31.811519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 00:31:31.813231"], ["user_id", "4a66a288-cdcf-11e4-9635-705681abff85"], ["created_at", "2015-03-19 00:31:31.813994"], ["updated_at", "2015-03-19 00:31:31.813994"], ["token", "rJ6YyMm3jocSbCbEuCnngzECRVR_MnSWxDd7dnwzwRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.817294"], ["updated_at", "2015-03-19 00:31:31.817294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a66a288-cdcf-11e4-9635-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a6781e4-cdcf-11e4-b8d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a66a288-cdcf-11e4-9635-705681abff85"], ["organization_id", "4a6781e4-cdcf-11e4-b8d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:31:31.820523"], ["updated_at", "2015-03-19 00:31:31.820523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$XYpyNmEebbS2odbrbzOn3ejkgpVXU2Pc1wMPW.U/DagL5W16iBv4e"], ["created_at", "2015-03-19 00:31:31.825135"], ["updated_at", "2015-03-19 00:31:31.825135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:31:31.828321"], ["updated_at", "2015-03-19 00:31:31.828321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a68b4c4-cdcf-11e4-8bbc-705681abff85' AND "clubhouse_memberships"."organization_id" = '4a693214-cdcf-11e4-ab8d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4a68b4c4-cdcf-11e4-8bbc-705681abff85"], ["organization_id", "4a693214-cdcf-11e4-ab8d-705681abff85"], ["created_at", "2015-03-19 00:31:31.831982"], ["updated_at", "2015-03-19 00:31:31.831982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 17:31:31 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (23.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$jiasCSwMdu7SMFzGkYp2keUi1ShSRSAMYYKiSf2EYaqtzZCik.2VG"], ["created_at", "2015-03-19 00:49:20.447063"], ["updated_at", "2015-03-19 00:49:20.447063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.480482"], ["updated_at", "2015-03-19 00:49:20.480482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c75f0918-cdd1-11e4-adce-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c760a5c0-cdd1-11e4-b663-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c75f0918-cdd1-11e4-adce-705681abff85"], ["organization_id", "c760a5c0-cdd1-11e4-b663-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:49:20.531743"], ["updated_at", "2015-03-19 00:49:20.531743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'c760a5c0-cdd1-11e4-b663-705681abff85') LIMIT 1 SQL (6.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "c760a5c0-cdd1-11e4-b663-705681abff85"], ["created_at", "2015-03-19 00:49:20.544124"], ["updated_at", "2015-03-19 00:49:20.544124"], ["token", "vKnzrk1oRSIoZz2J7F6CymacgMohgG0zvBp5gO7BkPM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c75f0918-cdd1-11e4-adce-705681abff85' LIMIT 1 [["organization_id", "c760a5c0-cdd1-11e4-b663-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ULJ4xsx5PPGgNNwbYc6.EeJKhiiltole34JdCaVwj/vvbFbTUc73u"], ["created_at", "2015-03-19 00:49:20.573935"], ["updated_at", "2015-03-19 00:49:20.573935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.578323"], ["updated_at", "2015-03-19 00:49:20.578323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c76ee0d6-cdd1-11e4-9954-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c76f8464-cdd1-11e4-ac20-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c76ee0d6-cdd1-11e4-9954-705681abff85"], ["organization_id", "c76f8464-cdd1-11e4-ac20-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:49:20.581958"], ["updated_at", "2015-03-19 00:49:20.581958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'c76f8464-cdd1-11e4-ac20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "c76f8464-cdd1-11e4-ac20-705681abff85"], ["created_at", "2015-03-19 00:49:20.585618"], ["updated_at", "2015-03-19 00:49:20.585618"], ["token", "IbSPu2gPrONMvNMQRm7nQWNUfdGu0xy7RjaJJMTuWds"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c76ee0d6-cdd1-11e4-9954-705681abff85' LIMIT 1 [["organization_id", "c76f8464-cdd1-11e4-ac20-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$8E1Qf09KgU3AOqmDCMnCwuAfQOov1h8KamffiYFwOzpLALeivxTwe"], ["created_at", "2015-03-19 00:49:20.592917"], ["updated_at", "2015-03-19 00:49:20.592917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.595984"], ["updated_at", "2015-03-19 00:49:20.595984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c771bb4e-cdd1-11e4-b9da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c7723100-cdd1-11e4-9a76-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c771bb4e-cdd1-11e4-b9da-705681abff85"], ["organization_id", "c7723100-cdd1-11e4-9a76-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:49:20.599295"], ["updated_at", "2015-03-19 00:49:20.599295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c7723100-cdd1-11e4-9a76-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c7723100-cdd1-11e4-9a76-705681abff85"], ["created_at", "2015-03-19 00:49:20.602809"], ["updated_at", "2015-03-19 00:49:20.602809"], ["token", "NKtp4-x158d6a3GIg25ARf00izwXIRpXhzwKwC1drj8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c771bb4e-cdd1-11e4-b9da-705681abff85' LIMIT 1 [["organization_id", "c7723100-cdd1-11e4-9a76-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$mvAqdDQyTOdtsmkJf6IIBeUBn.vQS/ekBVJU1MS40KzvsZqSN/i62"], ["created_at", "2015-03-19 00:49:20.610739"], ["updated_at", "2015-03-19 00:49:20.610739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.613870"], ["updated_at", "2015-03-19 00:49:20.613870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7747384-cdd1-11e4-953b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c774ebfc-cdd1-11e4-9b2a-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7747384-cdd1-11e4-953b-705681abff85"], ["organization_id", "c774ebfc-cdd1-11e4-9b2a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:49:20.617030"], ["updated_at", "2015-03-19 00:49:20.617030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'c774ebfc-cdd1-11e4-9b2a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "c774ebfc-cdd1-11e4-9b2a-705681abff85"], ["created_at", "2015-03-19 00:49:20.622894"], ["updated_at", "2015-03-19 00:49:20.622894"], ["token", "ksuuMGdXxfUWdNRkP2gtGDAnwQhVhyRu50xVocLJ63w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c7747384-cdd1-11e4-953b-705681abff85' LIMIT 1 [["organization_id", "c774ebfc-cdd1-11e4-9b2a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$QSQrwHippAtgoiquTIFP5OWF9gp4NhuKPqICoyDBqqlRq6dEmzW1G"], ["created_at", "2015-03-19 00:49:20.630431"], ["updated_at", "2015-03-19 00:49:20.630431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.633546"], ["updated_at", "2015-03-19 00:49:20.633546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7777584-cdd1-11e4-8d18-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c777ecc6-cdd1-11e4-9118-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7777584-cdd1-11e4-8d18-705681abff85"], ["organization_id", "c777ecc6-cdd1-11e4-9118-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:49:20.636804"], ["updated_at", "2015-03-19 00:49:20.636804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (102.1ms) ROLLBACK  (24.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$hlpEcJM9pWD0wgl6Lp2Ds.etkJm4RwJdkmCvoedWD0JEUt4pS928y"], ["created_at", "2015-03-19 00:49:20.797526"], ["updated_at", "2015-03-19 00:49:20.797526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.802297"], ["updated_at", "2015-03-19 00:49:20.802297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c790fe14-cdd1-11e4-b13d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c791bdc2-cdd1-11e4-a635-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c790fe14-cdd1-11e4-b13d-705681abff85"], ["organization_id", "c791bdc2-cdd1-11e4-a635-705681abff85"], ["created_at", "2015-03-19 00:49:20.806635"], ["updated_at", "2015-03-19 00:49:20.806635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'c791bdc2-cdd1-11e4-a635-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "c791bdc2-cdd1-11e4-a635-705681abff85"], ["created_at", "2015-03-19 00:49:20.811115"], ["updated_at", "2015-03-19 00:49:20.811115"], ["token", "frHCUZHLtbaONAQKbO7GsjiOgeC_AofHgcpVgYlC4hk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c790fe14-cdd1-11e4-b13d-705681abff85' LIMIT 1 [["organization_id", "c791bdc2-cdd1-11e4-a635-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$n9ikmPQUrrx3F8Eo/2jMqO.bIyDytIfq7UEP4OGgHrd6hdpMoS5tG"], ["created_at", "2015-03-19 00:49:20.819446"], ["updated_at", "2015-03-19 00:49:20.819446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.823021"], ["updated_at", "2015-03-19 00:49:20.823021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c79450c8-cdd1-11e4-abd9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c794d9a8-cdd1-11e4-bdc1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c79450c8-cdd1-11e4-abd9-705681abff85"], ["organization_id", "c794d9a8-cdd1-11e4-bdc1-705681abff85"], ["created_at", "2015-03-19 00:49:20.826642"], ["updated_at", "2015-03-19 00:49:20.826642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'c794d9a8-cdd1-11e4-bdc1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "c794d9a8-cdd1-11e4-bdc1-705681abff85"], ["created_at", "2015-03-19 00:49:20.830557"], ["updated_at", "2015-03-19 00:49:20.830557"], ["token", "KS9icdpbweBKx8HfxmKv0W3xu3xCuTmI1kKWID2fEUU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c79450c8-cdd1-11e4-abd9-705681abff85' LIMIT 1 [["organization_id", "c794d9a8-cdd1-11e4-bdc1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$pZ/AOIZcqo9l4TBOeCEuZuDwbk/ouA3/Yzd4.rvI7o.APvilzftlG"], ["created_at", "2015-03-19 00:49:20.838659"], ["updated_at", "2015-03-19 00:49:20.838659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.842421"], ["updated_at", "2015-03-19 00:49:20.842421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c797409e-cdd1-11e4-828c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c797d1c6-cdd1-11e4-9663-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c797409e-cdd1-11e4-828c-705681abff85"], ["organization_id", "c797d1c6-cdd1-11e4-9663-705681abff85"], ["created_at", "2015-03-19 00:49:20.846293"], ["updated_at", "2015-03-19 00:49:20.846293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'c797d1c6-cdd1-11e4-9663-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "c797d1c6-cdd1-11e4-9663-705681abff85"], ["created_at", "2015-03-19 00:49:20.851103"], ["updated_at", "2015-03-19 00:49:20.851103"], ["token", "3Crl9v1RWuBOziw0zgM8W60eAlCCBHM9EyriYVXDNPU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c797409e-cdd1-11e4-828c-705681abff85' LIMIT 1 [["organization_id", "c797d1c6-cdd1-11e4-9663-705681abff85"]]  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$IXOAYOIqhJWL4ggRF4mvOu1jpRK0UOdrucuPp0gISUDF9aIlPQ/tS"], ["created_at", "2015-03-19 00:49:20.864296"], ["updated_at", "2015-03-19 00:49:20.864296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.867964"], ["updated_at", "2015-03-19 00:49:20.867964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c79b270e-cdd1-11e4-b22e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c79bb570-cdd1-11e4-84da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c79b270e-cdd1-11e4-b22e-705681abff85"], ["organization_id", "c79bb570-cdd1-11e4-84da-705681abff85"], ["created_at", "2015-03-19 00:49:20.871735"], ["updated_at", "2015-03-19 00:49:20.871735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'c79bb570-cdd1-11e4-84da-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "c79bb570-cdd1-11e4-84da-705681abff85"], ["created_at", "2015-03-19 00:49:20.875817"], ["updated_at", "2015-03-19 00:49:20.875817"], ["token", "Ws-fm57Dk-XdddiAYgi-w3vDFIafEfI0i2NoBxWUHnw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c79b270e-cdd1-11e4-b22e-705681abff85' LIMIT 1 [["organization_id", "c79bb570-cdd1-11e4-84da-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$.jybu6PnSvv0bn/HYBkCj.TokyIqCQcr6IOrLOU2R5ir14N.OcIZm"], ["created_at", "2015-03-19 00:49:20.885424"], ["updated_at", "2015-03-19 00:49:20.885424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.889242"], ["updated_at", "2015-03-19 00:49:20.889242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c79e65cc-cdd1-11e4-a329-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c79ef3f2-cdd1-11e4-9203-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c79e65cc-cdd1-11e4-a329-705681abff85"], ["organization_id", "c79ef3f2-cdd1-11e4-9203-705681abff85"], ["created_at", "2015-03-19 00:49:20.893004"], ["updated_at", "2015-03-19 00:49:20.893004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$z/L2i7aF2eGBr0fDCWQt8ebJ3PnZYp2W21UnFf5fGsXAyXzi7DSaK"], ["created_at", "2015-03-19 00:49:20.901634"], ["updated_at", "2015-03-19 00:49:20.901634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.905625"], ["updated_at", "2015-03-19 00:49:20.905625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'c7a1c76c-cdd1-11e4-8d50-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "c7a1c76c-cdd1-11e4-8d50-705681abff85"], ["created_at", "2015-03-19 00:49:20.914840"], ["updated_at", "2015-03-19 00:49:20.914840"], ["token", "EcJRVn3hQ1xeJhSAFEAaRcW-hC0x3AgStPlaB6DSEL8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c7a0e05e-cdd1-11e4-85b6-705681abff85' LIMIT 1 [["organization_id", "c7a1c76c-cdd1-11e4-8d50-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$t3I3k/9T4WNBFF8ilRLPOuscTpxNa7sk0Z1WT79UDz5SGYAO817Q2"], ["created_at", "2015-03-19 00:49:20.923502"], ["updated_at", "2015-03-19 00:49:20.923502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.927263"], ["updated_at", "2015-03-19 00:49:20.927263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'c7a4c00c-cdd1-11e4-b001-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "c7a4c00c-cdd1-11e4-b001-705681abff85"], ["created_at", "2015-03-19 00:49:20.932002"], ["updated_at", "2015-03-19 00:49:20.932002"], ["token", "8JMO9SWg5R0FIkAOb7bzZVnS4OUmq5bKZvBTSgeOlzY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c7a431c8-cdd1-11e4-bce5-705681abff85' LIMIT 1 [["organization_id", "c7a4c00c-cdd1-11e4-b001-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$4NZbzubPMeMYvekS26NmyebcaDs3p3.e5mM0dc2W4FCP7KPfpTyK6"], ["created_at", "2015-03-19 00:49:20.942471"], ["updated_at", "2015-03-19 00:49:20.942471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.946737"], ["updated_at", "2015-03-19 00:49:20.946737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'c7a7be38-cdd1-11e4-b4ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "c7a7be38-cdd1-11e4-b4ae-705681abff85"], ["created_at", "2015-03-19 00:49:20.950834"], ["updated_at", "2015-03-19 00:49:20.950834"], ["token", "skEaOYgJqFZH51HLL4lNbJxBIZixIB3cJCVl1b2yy6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c7a71d3e-cdd1-11e4-bf3d-705681abff85' LIMIT 1 [["organization_id", "c7a7be38-cdd1-11e4-b4ae-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$tZag2Rh3deH3e71TainLb.9e3eeWd/pv38wqgnpLahQC35OkGrcyG"], ["created_at", "2015-03-19 00:49:20.960222"], ["updated_at", "2015-03-19 00:49:20.960222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:49:20.964005"], ["updated_at", "2015-03-19 00:49:20.964005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'c7aa6372-cdd1-11e4-b6f8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "c7aa6372-cdd1-11e4-b6f8-705681abff85"], ["created_at", "2015-03-19 00:49:20.970853"], ["updated_at", "2015-03-19 00:49:20.970853"], ["token", "TgwdUn5y54QEJMzD1TAkVnCalkUjGw2tYEPepKqehUw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c7a9cde0-cdd1-11e4-b1cc-705681abff85' LIMIT 1 [["organization_id", "c7aa6372-cdd1-11e4-b6f8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$zWpFfyYgByPBDDZymIQ5euJsxbqQlC.YfDxZOv.vvvWKD38Bs/1ey"], ["created_at", "2015-03-19 00:49:20.982970"], ["updated_at", "2015-03-19 00:49:20.982970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (19.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$8D1WZXJYI7JlvxD3bdLFKeLbWs1uXMMzXKtKufrIUu9PmmcHXQGgK"], ["created_at", "2015-03-19 00:50:03.482856"], ["updated_at", "2015-03-19 00:50:03.482856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.512585"], ["updated_at", "2015-03-19 00:50:03.512585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1053e64-cdd1-11e4-9db5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e106d706-cdd1-11e4-a64d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1053e64-cdd1-11e4-9db5-705681abff85"], ["organization_id", "e106d706-cdd1-11e4-a64d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:50:03.563187"], ["updated_at", "2015-03-19 00:50:03.563187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e106d706-cdd1-11e4-a64d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "e106d706-cdd1-11e4-a64d-705681abff85"], ["created_at", "2015-03-19 00:50:03.573296"], ["updated_at", "2015-03-19 00:50:03.573296"], ["token", "HBql68QGTyVysihsX9mo6bWmUa69L0gSKdoW6ee6RKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e1053e64-cdd1-11e4-9db5-705681abff85' LIMIT 1 [["organization_id", "e106d706-cdd1-11e4-a64d-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$DM0GaF4s4l1d4FH8r/lrZOd0ndC67.MIgwXt3RWIYrMxo6TesSb4u"], ["created_at", "2015-03-19 00:50:03.594995"], ["updated_at", "2015-03-19 00:50:03.594995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.598257"], ["updated_at", "2015-03-19 00:50:03.598257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1135814-cdd1-11e4-8a40-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e113d14a-cdd1-11e4-8e5f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1135814-cdd1-11e4-8a40-705681abff85"], ["organization_id", "e113d14a-cdd1-11e4-8e5f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:50:03.601464"], ["updated_at", "2015-03-19 00:50:03.601464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'e113d14a-cdd1-11e4-8e5f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "e113d14a-cdd1-11e4-8e5f-705681abff85"], ["created_at", "2015-03-19 00:50:03.604845"], ["updated_at", "2015-03-19 00:50:03.604845"], ["token", "mXZALgt9M06XVX0sItOWFOeB72xR1cB-g0sgiOQUdZU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e1135814-cdd1-11e4-8a40-705681abff85' LIMIT 1 [["organization_id", "e113d14a-cdd1-11e4-8e5f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$mReTcF4CEEA.tHJMzTFUmeUq2tKeV/yNgmZ5yYjWU138JjdHcACdu"], ["created_at", "2015-03-19 00:50:03.612782"], ["updated_at", "2015-03-19 00:50:03.612782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.615810"], ["updated_at", "2015-03-19 00:50:03.615810"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1160a46-cdd1-11e4-8087-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1167f08-cdd1-11e4-83a0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1160a46-cdd1-11e4-8087-705681abff85"], ["organization_id", "e1167f08-cdd1-11e4-83a0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:50:03.619069"], ["updated_at", "2015-03-19 00:50:03.619069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'e1167f08-cdd1-11e4-83a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "e1167f08-cdd1-11e4-83a0-705681abff85"], ["created_at", "2015-03-19 00:50:03.622500"], ["updated_at", "2015-03-19 00:50:03.622500"], ["token", "omor32WGKoNVW1ne7vHtGUf-T5Y05dMvsgixRpX8chM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e1160a46-cdd1-11e4-8087-705681abff85' LIMIT 1 [["organization_id", "e1167f08-cdd1-11e4-83a0-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$gULQSOdKiQWH1rtiYpHyGOlZoUpShfNIp20YZv4YuXNmkv43A7Ezm"], ["created_at", "2015-03-19 00:50:03.633300"], ["updated_at", "2015-03-19 00:50:03.633300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (13.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.637071"], ["updated_at", "2015-03-19 00:50:03.637071"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1193eaa-cdd1-11e4-bcd2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e11b76de-cdd1-11e4-8b76-705681abff85') LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1193eaa-cdd1-11e4-bcd2-705681abff85"], ["organization_id", "e11b76de-cdd1-11e4-8b76-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:50:03.659495"], ["updated_at", "2015-03-19 00:50:03.659495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'e11b76de-cdd1-11e4-8b76-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "e11b76de-cdd1-11e4-8b76-705681abff85"], ["created_at", "2015-03-19 00:50:03.669265"], ["updated_at", "2015-03-19 00:50:03.669265"], ["token", "orRQvzVAXKJ62ogD8_lFRQX5u_ryVK-0w94p3h9oxNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e1193eaa-cdd1-11e4-bcd2-705681abff85' LIMIT 1 [["organization_id", "e11b76de-cdd1-11e4-8b76-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (32.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$4R5E6DEYbWRhnhhn8fL.hOrzjkfYY7d1esg4ImqPDbaVAGFFPvpsC"], ["created_at", "2015-03-19 00:50:03.712980"], ["updated_at", "2015-03-19 00:50:03.712980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (16.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.737711"], ["updated_at", "2015-03-19 00:50:03.737711"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1258b2e-cdd1-11e4-9af8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1294052-cdd1-11e4-aaef-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1258b2e-cdd1-11e4-9af8-705681abff85"], ["organization_id", "e1294052-cdd1-11e4-aaef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:50:03.753460"], ["updated_at", "2015-03-19 00:50:03.753460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ItZb5fzM/6iGfdIFEQwbGuToiEss7v3xrJepocmaznNwAEIAAiyOm"], ["created_at", "2015-03-19 00:50:03.766074"], ["updated_at", "2015-03-19 00:50:03.766074"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.772437"], ["updated_at", "2015-03-19 00:50:03.772437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'e12e7f90-cdd1-11e4-8e47-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "e12e7f90-cdd1-11e4-8e47-705681abff85"], ["created_at", "2015-03-19 00:50:03.778935"], ["updated_at", "2015-03-19 00:50:03.778935"], ["token", "VsVWezw2hIQ2fRTtpE2mDWstjI_J828eV84PR3_0Rao"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e12d8676-cdd1-11e4-9604-705681abff85' LIMIT 1 [["organization_id", "e12e7f90-cdd1-11e4-8e47-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$4IXhL0PyL9uiwX4f0wJbKePjPyeG56XzxYd/00JlOHWH5KlZsWUD."], ["created_at", "2015-03-19 00:50:03.792155"], ["updated_at", "2015-03-19 00:50:03.792155"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.801359"], ["updated_at", "2015-03-19 00:50:03.801359"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'e13309ca-cdd1-11e4-8a17-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "e13309ca-cdd1-11e4-8a17-705681abff85"], ["created_at", "2015-03-19 00:50:03.814160"], ["updated_at", "2015-03-19 00:50:03.814160"], ["token", "NIZl3rkh09ZLHnHNBIItk4AXm6FwcMsbIThC7urW8g4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e131c3a8-cdd1-11e4-aef7-705681abff85' LIMIT 1 [["organization_id", "e13309ca-cdd1-11e4-8a17-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$aqRbp15niyY2sEX5MxdCkuXjXrgwktVLa2TcvL2XfvpGdO0/ZbphG"], ["created_at", "2015-03-19 00:50:03.828739"], ["updated_at", "2015-03-19 00:50:03.828739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.831809"], ["updated_at", "2015-03-19 00:50:03.831809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'e137730c-cdd1-11e4-aad5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "e137730c-cdd1-11e4-aad5-705681abff85"], ["created_at", "2015-03-19 00:50:03.835033"], ["updated_at", "2015-03-19 00:50:03.835033"], ["token", "zsHgKj3flOG_bJBYUs8C_K0-QBTICCogoY82DZiKkPs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e136fe90-cdd1-11e4-93ed-705681abff85' LIMIT 1 [["organization_id", "e137730c-cdd1-11e4-aad5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Kpd242F4YHPhcDQngr5a3.fOBCxwTDv9DGGyNZ/lEA9mbiCAAXo92"], ["created_at", "2015-03-19 00:50:03.842127"], ["updated_at", "2015-03-19 00:50:03.842127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.845173"], ["updated_at", "2015-03-19 00:50:03.845173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'e1397eb8-cdd1-11e4-b909-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "e1397eb8-cdd1-11e4-b909-705681abff85"], ["created_at", "2015-03-19 00:50:03.848661"], ["updated_at", "2015-03-19 00:50:03.848661"], ["token", "1awg11c4QVjF6B3SkYARCbe3WtZmvrVqhZJj0FfO38A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e13908c0-cdd1-11e4-8963-705681abff85' LIMIT 1 [["organization_id", "e1397eb8-cdd1-11e4-b909-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$XZHQ.p81HYrewq1BYmwASekrVU0.vsQRIsk6XoxEuvPorcB9EpiNG"], ["created_at", "2015-03-19 00:50:03.855830"], ["updated_at", "2015-03-19 00:50:03.855830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.858892"], ["updated_at", "2015-03-19 00:50:03.858892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$zo2uYpBCmKswwb.bLiGBl./IbccltO/u0dFTl3YUXMT73S7BumnIy"], ["created_at", "2015-03-19 00:50:03.868815"], ["updated_at", "2015-03-19 00:50:03.868815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.871965"], ["updated_at", "2015-03-19 00:50:03.871965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e13d1e1a-cdd1-11e4-a3ef-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e13d97d2-cdd1-11e4-8dda-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e13d1e1a-cdd1-11e4-a3ef-705681abff85"], ["organization_id", "e13d97d2-cdd1-11e4-8dda-705681abff85"], ["created_at", "2015-03-19 00:50:03.875334"], ["updated_at", "2015-03-19 00:50:03.875334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'e13d97d2-cdd1-11e4-8dda-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "e13d97d2-cdd1-11e4-8dda-705681abff85"], ["created_at", "2015-03-19 00:50:03.879028"], ["updated_at", "2015-03-19 00:50:03.879028"], ["token", "0OC8tQ0dmXLIja5dgyUYFg0-2OELJjNPprTqpLlU35w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e13d1e1a-cdd1-11e4-a3ef-705681abff85' LIMIT 1 [["organization_id", "e13d97d2-cdd1-11e4-8dda-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$v1uUHKDXEKFbGPisjtH9lOeEV2jRiglH/gUOyDYKvkGO/ZVzHSfcC"], ["created_at", "2015-03-19 00:50:03.886098"], ["updated_at", "2015-03-19 00:50:03.886098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.889191"], ["updated_at", "2015-03-19 00:50:03.889191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e13fbf08-cdd1-11e4-9503-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1403410-cdd1-11e4-a7be-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e13fbf08-cdd1-11e4-9503-705681abff85"], ["organization_id", "e1403410-cdd1-11e4-a7be-705681abff85"], ["created_at", "2015-03-19 00:50:03.892228"], ["updated_at", "2015-03-19 00:50:03.892228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'e1403410-cdd1-11e4-a7be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "e1403410-cdd1-11e4-a7be-705681abff85"], ["created_at", "2015-03-19 00:50:03.896631"], ["updated_at", "2015-03-19 00:50:03.896631"], ["token", "8cqi0kjcsXktpP4tNS4Q8tI1SN3KBg3PzIy3wZc7Ly8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e13fbf08-cdd1-11e4-9503-705681abff85' LIMIT 1 [["organization_id", "e1403410-cdd1-11e4-a7be-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Lql3zZF.MKs8P85tilRbwOlkHhu8MAEFXkSOD93vpwLQN4yTJpFlu"], ["created_at", "2015-03-19 00:50:03.905421"], ["updated_at", "2015-03-19 00:50:03.905421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.908419"], ["updated_at", "2015-03-19 00:50:03.908419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e142b0d2-cdd1-11e4-81f8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1433b74-cdd1-11e4-a805-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e142b0d2-cdd1-11e4-81f8-705681abff85"], ["organization_id", "e1433b74-cdd1-11e4-a805-705681abff85"], ["created_at", "2015-03-19 00:50:03.912071"], ["updated_at", "2015-03-19 00:50:03.912071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'e1433b74-cdd1-11e4-a805-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "e1433b74-cdd1-11e4-a805-705681abff85"], ["created_at", "2015-03-19 00:50:03.917790"], ["updated_at", "2015-03-19 00:50:03.917790"], ["token", "I4-I_wtc6lbeWLA9GEDx-YpanhYv0EroSxZu6ip3TEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e142b0d2-cdd1-11e4-81f8-705681abff85' LIMIT 1 [["organization_id", "e1433b74-cdd1-11e4-a805-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$qY4nNxMz11eMKIEMcB/G/e8OjFi3anD2zldIJqvACmRNHw6NhYg9."], ["created_at", "2015-03-19 00:50:03.926365"], ["updated_at", "2015-03-19 00:50:03.926365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.929467"], ["updated_at", "2015-03-19 00:50:03.929467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e145e478-cdd1-11e4-bcd0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e146602e-cdd1-11e4-8d1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e145e478-cdd1-11e4-bcd0-705681abff85"], ["organization_id", "e146602e-cdd1-11e4-8d1a-705681abff85"], ["created_at", "2015-03-19 00:50:03.932932"], ["updated_at", "2015-03-19 00:50:03.932932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'e146602e-cdd1-11e4-8d1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "e146602e-cdd1-11e4-8d1a-705681abff85"], ["created_at", "2015-03-19 00:50:03.936268"], ["updated_at", "2015-03-19 00:50:03.936268"], ["token", "UZJAXOYhN-Tib_v0qRa0KNRNQP45cAZvFkezzT4_ubw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e145e478-cdd1-11e4-bcd0-705681abff85' LIMIT 1 [["organization_id", "e146602e-cdd1-11e4-8d1a-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$Znr1ev943.90NujwDBj6IePGbxfy66MF7X9tUCj2yETGUAMUdeuZi"], ["created_at", "2015-03-19 00:50:03.943811"], ["updated_at", "2015-03-19 00:50:03.943811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:03.949383"], ["updated_at", "2015-03-19 00:50:03.949383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1488ee4-cdd1-11e4-aacb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1496846-cdd1-11e4-810e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1488ee4-cdd1-11e4-aacb-705681abff85"], ["organization_id", "e1496846-cdd1-11e4-810e-705681abff85"], ["created_at", "2015-03-19 00:50:03.953270"], ["updated_at", "2015-03-19 00:50:03.953270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (36.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$whoeH9yvDAxPOykHH295weYXimKsgoRWp5Iamuy6Yp5wmJVvAQo7S"], ["created_at", "2015-03-19 00:50:16.619314"], ["updated_at", "2015-03-19 00:50:16.619314"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.680181"], ["updated_at", "2015-03-19 00:50:16.680181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8db92a0-cdd1-11e4-bc55-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8e01b18-cdd1-11e4-8de9-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8db92a0-cdd1-11e4-bc55-705681abff85"], ["organization_id", "e8e01b18-cdd1-11e4-8de9-705681abff85"], ["created_at", "2015-03-19 00:50:16.729178"], ["updated_at", "2015-03-19 00:50:16.729178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e8e01b18-cdd1-11e4-8de9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "e8e01b18-cdd1-11e4-8de9-705681abff85"], ["created_at", "2015-03-19 00:50:16.739630"], ["updated_at", "2015-03-19 00:50:16.739630"], ["token", "8D8uLESOwEU43bReO-hyIhPknSZqAPKzqI9ynA6wZ0A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e8db92a0-cdd1-11e4-bc55-705681abff85' LIMIT 1 [["organization_id", "e8e01b18-cdd1-11e4-8de9-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$6Mcra3Q5rw9DF14nJqI.zeaJpSNygU6SQugcgLFW72.h5PCXWSkA6"], ["created_at", "2015-03-19 00:50:16.761419"], ["updated_at", "2015-03-19 00:50:16.761419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.764857"], ["updated_at", "2015-03-19 00:50:16.764857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8ec5f2c-cdd1-11e4-8cee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8ece366-cdd1-11e4-a783-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8ec5f2c-cdd1-11e4-8cee-705681abff85"], ["organization_id", "e8ece366-cdd1-11e4-a783-705681abff85"], ["created_at", "2015-03-19 00:50:16.768090"], ["updated_at", "2015-03-19 00:50:16.768090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'e8ece366-cdd1-11e4-a783-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "e8ece366-cdd1-11e4-a783-705681abff85"], ["created_at", "2015-03-19 00:50:16.771534"], ["updated_at", "2015-03-19 00:50:16.771534"], ["token", "fZLwYR5XPsMh610YAJijo-WkCfUzYRdhIgHjujQIGNM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e8ec5f2c-cdd1-11e4-8cee-705681abff85' LIMIT 1 [["organization_id", "e8ece366-cdd1-11e4-a783-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Yl1iy7QE/KKipZjcOjgIMu6oPv8M65PBrcU2wIa23HBZpTYQGfNoS"], ["created_at", "2015-03-19 00:50:16.779110"], ["updated_at", "2015-03-19 00:50:16.779110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.782171"], ["updated_at", "2015-03-19 00:50:16.782171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8ef0fd8-cdd1-11e4-be36-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8ef8616-cdd1-11e4-971d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8ef0fd8-cdd1-11e4-be36-705681abff85"], ["organization_id", "e8ef8616-cdd1-11e4-971d-705681abff85"], ["created_at", "2015-03-19 00:50:16.785259"], ["updated_at", "2015-03-19 00:50:16.785259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'e8ef8616-cdd1-11e4-971d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "e8ef8616-cdd1-11e4-971d-705681abff85"], ["created_at", "2015-03-19 00:50:16.788628"], ["updated_at", "2015-03-19 00:50:16.788628"], ["token", "pCys68wAA9ACxlJUcPjsZ46n16R2Tz3Hyq1330yyP0U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e8ef0fd8-cdd1-11e4-be36-705681abff85' LIMIT 1 [["organization_id", "e8ef8616-cdd1-11e4-971d-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$1/N9hQDE1dtSyV6cndtvLeTLFi95fR/sv1qxW0uuoeVB0HCiFBvGO"], ["created_at", "2015-03-19 00:50:16.796459"], ["updated_at", "2015-03-19 00:50:16.796459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.800391"], ["updated_at", "2015-03-19 00:50:16.800391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8f1bbfc-cdd1-11e4-a207-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8f26e76-cdd1-11e4-ab28-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8f1bbfc-cdd1-11e4-a207-705681abff85"], ["organization_id", "e8f26e76-cdd1-11e4-ab28-705681abff85"], ["created_at", "2015-03-19 00:50:16.806357"], ["updated_at", "2015-03-19 00:50:16.806357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'e8f26e76-cdd1-11e4-ab28-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "e8f26e76-cdd1-11e4-ab28-705681abff85"], ["created_at", "2015-03-19 00:50:16.810285"], ["updated_at", "2015-03-19 00:50:16.810285"], ["token", "u4USlO5b8LFr_ikVbUQeMr73PKniS9wYVCFMdN8qQr0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e8f1bbfc-cdd1-11e4-a207-705681abff85' LIMIT 1 [["organization_id", "e8f26e76-cdd1-11e4-ab28-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$.M1om9q2l8VWAupMo9rwOOhc7h4jTPHarmG3vPDQ7fyjCnrkLUuHi"], ["created_at", "2015-03-19 00:50:16.817877"], ["updated_at", "2015-03-19 00:50:16.817877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.821419"], ["updated_at", "2015-03-19 00:50:16.821419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8f4fc72-cdd1-11e4-abfb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8f586ec-cdd1-11e4-89fd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8f4fc72-cdd1-11e4-abfb-705681abff85"], ["organization_id", "e8f586ec-cdd1-11e4-89fd-705681abff85"], ["created_at", "2015-03-19 00:50:16.824712"], ["updated_at", "2015-03-19 00:50:16.824712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e8f4fc72-cdd1-11e4-abfb-705681abff85' LIMIT 1 [["organization_id", "e8f586ec-cdd1-11e4-89fd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$1xxM8qU6xd.425hVZUYBFOaL.K3cunCQniW1q./pofqKBrI7zM4T."], ["created_at", "2015-03-19 00:50:16.832837"], ["updated_at", "2015-03-19 00:50:16.832837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.836524"], ["updated_at", "2015-03-19 00:50:16.836524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8f744b4-cdd1-11e4-8fbf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8f7d618-cdd1-11e4-8c96-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e8f744b4-cdd1-11e4-8fbf-705681abff85"], ["organization_id", "e8f7d618-cdd1-11e4-8c96-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:50:16.840108"], ["updated_at", "2015-03-19 00:50:16.840108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'e8f7d618-cdd1-11e4-8c96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "e8f7d618-cdd1-11e4-8c96-705681abff85"], ["created_at", "2015-03-19 00:50:16.843973"], ["updated_at", "2015-03-19 00:50:16.843973"], ["token", "FlTf2EnAIkQ6OJSEgiuK5_M_ECCVXUMiGWUI7O2XKYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e8f744b4-cdd1-11e4-8fbf-705681abff85' LIMIT 1 [["organization_id", "e8f7d618-cdd1-11e4-8c96-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$FbUrU3AGw6oJdba2xi8ZZ.7iVcpPDlHSvvimXv7G8yCzUVeIEjZRe"], ["created_at", "2015-03-19 00:50:16.852164"], ["updated_at", "2015-03-19 00:50:16.852164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.855484"], ["updated_at", "2015-03-19 00:50:16.855484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8fa37c8-cdd1-11e4-b46f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8fab61c-cdd1-11e4-bb8e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e8fa37c8-cdd1-11e4-b46f-705681abff85"], ["organization_id", "e8fab61c-cdd1-11e4-bb8e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:50:16.858756"], ["updated_at", "2015-03-19 00:50:16.858756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'e8fab61c-cdd1-11e4-bb8e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "e8fab61c-cdd1-11e4-bb8e-705681abff85"], ["created_at", "2015-03-19 00:50:16.863517"], ["updated_at", "2015-03-19 00:50:16.863517"], ["token", "kk7Y6p7tCnTzhyuC9pZSWc_uukrFn4IZZF0YiQZZc-Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e8fa37c8-cdd1-11e4-b46f-705681abff85' LIMIT 1 [["organization_id", "e8fab61c-cdd1-11e4-bb8e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$dRCjq3YJoFAuvnOxSRYnOeK/GyQZzr0IkaHZm8e.Oz5.Aqcy/4YB2"], ["created_at", "2015-03-19 00:50:16.872016"], ["updated_at", "2015-03-19 00:50:16.872016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.875285"], ["updated_at", "2015-03-19 00:50:16.875285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8fd3edc-cdd1-11e4-b968-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e8fdbbe6-cdd1-11e4-aa34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e8fd3edc-cdd1-11e4-b968-705681abff85"], ["organization_id", "e8fdbbe6-cdd1-11e4-aa34-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:50:16.878669"], ["updated_at", "2015-03-19 00:50:16.878669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'e8fdbbe6-cdd1-11e4-aa34-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "e8fdbbe6-cdd1-11e4-aa34-705681abff85"], ["created_at", "2015-03-19 00:50:16.882161"], ["updated_at", "2015-03-19 00:50:16.882161"], ["token", "dA-SalHYRR_ZebJfuE-VCyHfLbl19O6G7OyolVPo4rs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e8fd3edc-cdd1-11e4-b968-705681abff85' LIMIT 1 [["organization_id", "e8fdbbe6-cdd1-11e4-aa34-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$MvOeZGVosvUXRSr3Y2d7.u2uNHmZzL0q5CKqsFcxUMecVt00ciagW"], ["created_at", "2015-03-19 00:50:16.889885"], ["updated_at", "2015-03-19 00:50:16.889885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.893048"], ["updated_at", "2015-03-19 00:50:16.893048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8fff6a4-cdd1-11e4-bd99-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9007070-cdd1-11e4-aeb2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e8fff6a4-cdd1-11e4-bd99-705681abff85"], ["organization_id", "e9007070-cdd1-11e4-aeb2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:50:16.896305"], ["updated_at", "2015-03-19 00:50:16.896305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'e9007070-cdd1-11e4-aeb2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "e9007070-cdd1-11e4-aeb2-705681abff85"], ["created_at", "2015-03-19 00:50:16.900620"], ["updated_at", "2015-03-19 00:50:16.900620"], ["token", "6yx4VjnrZ1ln6UZ6ACt9XYnc7f9BBlReMyY4jsdqyww"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e8fff6a4-cdd1-11e4-bd99-705681abff85' LIMIT 1 [["organization_id", "e9007070-cdd1-11e4-aeb2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$XcvFwiY2QtBR0yY0rIBRNutdBFzNDc.dRLgIAKGxEMbqj9v8RQAem"], ["created_at", "2015-03-19 00:50:16.908499"], ["updated_at", "2015-03-19 00:50:16.908499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.911942"], ["updated_at", "2015-03-19 00:50:16.911942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e902cee2-cdd1-11e4-9dc9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e90354e8-cdd1-11e4-86a8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e902cee2-cdd1-11e4-9dc9-705681abff85"], ["organization_id", "e90354e8-cdd1-11e4-86a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:50:16.915522"], ["updated_at", "2015-03-19 00:50:16.915522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e902cee2-cdd1-11e4-9dc9-705681abff85' LIMIT 1 [["organization_id", "e90354e8-cdd1-11e4-86a8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$q4EYqXifqv/8tg2t1.f.6eA65B7rjd6czRFOgmIUY5DHuz548M9ti"], ["created_at", "2015-03-19 00:50:16.923294"], ["updated_at", "2015-03-19 00:50:16.923294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.926607"], ["updated_at", "2015-03-19 00:50:16.926607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'e9059104-cdd1-11e4-b974-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "e9059104-cdd1-11e4-b974-705681abff85"], ["created_at", "2015-03-19 00:50:16.930127"], ["updated_at", "2015-03-19 00:50:16.930127"], ["token", "XVA3a6E-nShu-eJe_JAfaB7VwO-wLmlHEGocQ_1Gsac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e90512f6-cdd1-11e4-81a9-705681abff85' LIMIT 1 [["organization_id", "e9059104-cdd1-11e4-b974-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$dzSkejdw/Zq0GuBiQT1NQuB1vGdZcTppgFRsTLvCZMD59bgjY5uxi"], ["created_at", "2015-03-19 00:50:16.937647"], ["updated_at", "2015-03-19 00:50:16.937647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.940929"], ["updated_at", "2015-03-19 00:50:16.940929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'e907c122-cdd1-11e4-92a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "e907c122-cdd1-11e4-92a4-705681abff85"], ["created_at", "2015-03-19 00:50:16.944312"], ["updated_at", "2015-03-19 00:50:16.944312"], ["token", "hVBjYIWSPCGF66zzF5-aFql9Cvpgy-3NvGpBuBnZ3L4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e90741c0-cdd1-11e4-bcff-705681abff85' LIMIT 1 [["organization_id", "e907c122-cdd1-11e4-92a4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$jXeqKl5OIwRWJc.N9YB3OulaVDQ2o.LkYc5uOoj30VSeON2ND4tY."], ["created_at", "2015-03-19 00:50:16.952876"], ["updated_at", "2015-03-19 00:50:16.952876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.956272"], ["updated_at", "2015-03-19 00:50:16.956272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'e90a1832-cdd1-11e4-b05b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "e90a1832-cdd1-11e4-b05b-705681abff85"], ["created_at", "2015-03-19 00:50:16.959949"], ["updated_at", "2015-03-19 00:50:16.959949"], ["token", "m5FQmBpnCcBn3XJrjmRSvLN_y8clfLy6YkVwP9QYZ2I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e9099790-cdd1-11e4-a005-705681abff85' LIMIT 1 [["organization_id", "e90a1832-cdd1-11e4-b05b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$zZaX7UteCJ0gFT3/yLJ.nundU4IYMVEV9iEZBudtewRyXehs/0xyG"], ["created_at", "2015-03-19 00:50:16.967355"], ["updated_at", "2015-03-19 00:50:16.967355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.970598"], ["updated_at", "2015-03-19 00:50:16.970598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'e90c46de-cdd1-11e4-bdda-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "e90c46de-cdd1-11e4-bdda-705681abff85"], ["created_at", "2015-03-19 00:50:16.974212"], ["updated_at", "2015-03-19 00:50:16.974212"], ["token", "pu6QGsHC2Y6evRL642QT1GXwZ-xZTlCRnzhOiL2PeaM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e90bcb28-cdd1-11e4-a21c-705681abff85' LIMIT 1 [["organization_id", "e90c46de-cdd1-11e4-bdda-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$zfxjgwvts2VIQpo..rbR/uV6g4Yl6QM28Ov7CKZPPQiddAICzunzO"], ["created_at", "2015-03-19 00:50:16.984697"], ["updated_at", "2015-03-19 00:50:16.984697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:50:16.988170"], ["updated_at", "2015-03-19 00:50:16.988170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e90e73f0-cdd1-11e4-81a2-705681abff85' LIMIT 1 [["organization_id", "e90ef94c-cdd1-11e4-93c5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (21.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$/r5iRPPoUIWkpJdnmUbxaeElnq9SbbA5YBdCHv8st1HLosoGyfr9a"], ["created_at", "2015-03-19 00:52:15.515399"], ["updated_at", "2015-03-19 00:52:15.515399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (2.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$K9J2QhFwDCZxG8tWAZcuPeYCflLWr8gCOjRLIbkOIn11WR6/4Xcwe"], ["created_at", "2015-03-19 00:52:15.543685"], ["updated_at", "2015-03-19 00:52:15.543685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (3.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.552611"], ["updated_at", "2015-03-19 00:52:15.552611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fb9239a-cdd2-11e4-b460-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fba84ba-cdd2-11e4-a458-705681abff85') LIMIT 1 SQL (7.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2fb9239a-cdd2-11e4-b460-705681abff85"], ["organization_id", "2fba84ba-cdd2-11e4-a458-705681abff85"], ["created_at", "2015-03-19 00:52:15.604884"], ["updated_at", "2015-03-19 00:52:15.604884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2fb7bd8e-cdd2-11e4-96db-705681abff85' LIMIT 1 [["organization_id", "2fba84ba-cdd2-11e4-a458-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$PmX6BiPn/mFP1vlOkB1UUeWWqW5JoCu.V93xSn.xuJtR7ImGnDMti"], ["created_at", "2015-03-19 00:52:15.633647"], ["updated_at", "2015-03-19 00:52:15.633647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$HA8kI62lEKeSH0hdX3L9UO/5BAs3ag68vA.rVg6gMz1X7lh13bkyu"], ["created_at", "2015-03-19 00:52:15.672487"], ["updated_at", "2015-03-19 00:52:15.672487"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.681873"], ["updated_at", "2015-03-19 00:52:15.681873"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fccfadc-cdd2-11e4-a9f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fce4022-cdd2-11e4-aa8d-705681abff85') LIMIT 1 SQL (3.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2fccfadc-cdd2-11e4-a9f1-705681abff85"], ["organization_id", "2fce4022-cdd2-11e4-aa8d-705681abff85"], ["created_at", "2015-03-19 00:52:15.687492"], ["updated_at", "2015-03-19 00:52:15.687492"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.7ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (43.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$lmnuKDbfjDXjOijmMaQwiuLOdWpihhN7vAMYUl3gXm3sr5Ocpxomm"], ["created_at", "2015-03-19 00:52:15.722455"], ["updated_at", "2015-03-19 00:52:15.722455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (5.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$GDjjjlZs7K.zw3x6Lt7HtefHWOr9xwfmulBEcrGMg.SWep1DgF3wO"], ["created_at", "2015-03-19 00:52:15.774248"], ["updated_at", "2015-03-19 00:52:15.774248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.785761"], ["updated_at", "2015-03-19 00:52:15.785761"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fdccd04-cdd2-11e4-8df7-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fde1aa6-cdd2-11e4-9500-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2fdccd04-cdd2-11e4-8df7-705681abff85"], ["organization_id", "2fde1aa6-cdd2-11e4-9500-705681abff85"], ["created_at", "2015-03-19 00:52:15.796400"], ["updated_at", "2015-03-19 00:52:15.796400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2fdb2f62-cdd2-11e4-9808-705681abff85' LIMIT 1 [["organization_id", "2fde1aa6-cdd2-11e4-9500-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Eb03R0pRNf/UbQeYjcwLCurSeILebmPU73xce1W58bX3g0DfNoHOG"], ["created_at", "2015-03-19 00:52:15.819882"], ["updated_at", "2015-03-19 00:52:15.819882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$4yC4SQCy289yBKwItXLm8.yRfZLXK1rtqf2bW.0XKGvoC./G6YU2e"], ["created_at", "2015-03-19 00:52:15.828226"], ["updated_at", "2015-03-19 00:52:15.828226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.834308"], ["updated_at", "2015-03-19 00:52:15.834308"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fe498f4-cdd2-11e4-8b2d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fe59696-cdd2-11e4-9f14-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2fe498f4-cdd2-11e4-8b2d-705681abff85"], ["organization_id", "2fe59696-cdd2-11e4-9f14-705681abff85"], ["created_at", "2015-03-19 00:52:15.840619"], ["updated_at", "2015-03-19 00:52:15.840619"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2fe35f70-cdd2-11e4-ad61-705681abff85' LIMIT 1 [["organization_id", "2fe59696-cdd2-11e4-9f14-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$OkbCzEAoUXqi8YhAOkL.tuto.I1HBU2Q.zgyhcRipaSDneyQz9DlO"], ["created_at", "2015-03-19 00:52:15.852922"], ["updated_at", "2015-03-19 00:52:15.852922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.858447"], ["updated_at", "2015-03-19 00:52:15.858447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$KOzFCyY2Pqg0jYCDXjQgOuF2AE/mOtvAa9XA0Z4cSaC1WO4Ky/XlW"], ["created_at", "2015-03-19 00:52:15.866903"], ["updated_at", "2015-03-19 00:52:15.866903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.870175"], ["updated_at", "2015-03-19 00:52:15.870175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fea6c66-cdd2-11e4-b763-705681abff85' AND "clubhouse_memberships"."organization_id" = '2feaedd0-cdd2-11e4-a267-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2fea6c66-cdd2-11e4-b763-705681abff85"], ["organization_id", "2feaedd0-cdd2-11e4-a267-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:15.873932"], ["updated_at", "2015-03-19 00:52:15.873932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$oYCMYvB9MtqKqPqqSgPbxe5tgpPTYv3OlE3//cIgZAEAQdixZeF8a"], ["created_at", "2015-03-19 00:52:15.878680"], ["updated_at", "2015-03-19 00:52:15.878680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fec3db6-cdd2-11e4-95c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '2feaedd0-cdd2-11e4-a267-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2fec3db6-cdd2-11e4-95c0-705681abff85"], ["organization_id", "2feaedd0-cdd2-11e4-a267-705681abff85"], ["created_at", "2015-03-19 00:52:15.882550"], ["updated_at", "2015-03-19 00:52:15.882550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2fea6c66-cdd2-11e4-b763-705681abff85' LIMIT 1 [["organization_id", "2feaedd0-cdd2-11e4-a267-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$uKL318Fcg/0Kz18Wa1vOi.2FgrIvEqYToUYfIgNv0PIFGsdYpFELC"], ["created_at", "2015-03-19 00:52:15.890189"], ["updated_at", "2015-03-19 00:52:15.890189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.893513"], ["updated_at", "2015-03-19 00:52:15.893513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fedfb24-cdd2-11e4-b8b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fee79b4-cdd2-11e4-ba56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2fedfb24-cdd2-11e4-b8b2-705681abff85"], ["organization_id", "2fee79b4-cdd2-11e4-ba56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:15.897264"], ["updated_at", "2015-03-19 00:52:15.897264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$7bLVN3XD7DJuR.9GtP6EkesSS09fvegZUEctbsLjbDCLqS3/a83Xe"], ["created_at", "2015-03-19 00:52:15.902216"], ["updated_at", "2015-03-19 00:52:15.902216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fefd08e-cdd2-11e4-99fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '2fee79b4-cdd2-11e4-ba56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2fefd08e-cdd2-11e4-99fd-705681abff85"], ["organization_id", "2fee79b4-cdd2-11e4-ba56-705681abff85"], ["created_at", "2015-03-19 00:52:15.905950"], ["updated_at", "2015-03-19 00:52:15.905950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$xKtUkMq1okjvCUSOmBMXKOAeccCGfmIesJ9NAcheAPiGcdYDshjmG"], ["created_at", "2015-03-19 00:52:15.911657"], ["updated_at", "2015-03-19 00:52:15.911657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.915077"], ["updated_at", "2015-03-19 00:52:15.915077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ff13f96-cdd2-11e4-8275-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ff1c330-cdd2-11e4-906c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ff13f96-cdd2-11e4-8275-705681abff85"], ["organization_id", "2ff1c330-cdd2-11e4-906c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:15.918323"], ["updated_at", "2015-03-19 00:52:15.918323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$8X7IeNgpH727mABdctg6QOwzzeoCDQ8jVE1JyH8QeS8syTgDR5uh6"], ["created_at", "2015-03-19 00:52:15.923905"], ["updated_at", "2015-03-19 00:52:15.923905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ff31fe6-cdd2-11e4-984b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ff1c330-cdd2-11e4-906c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ff31fe6-cdd2-11e4-984b-705681abff85"], ["organization_id", "2ff1c330-cdd2-11e4-906c-705681abff85"], ["created_at", "2015-03-19 00:52:15.927324"], ["updated_at", "2015-03-19 00:52:15.927324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2ff13f96-cdd2-11e4-8275-705681abff85' LIMIT 1 [["organization_id", "2ff1c330-cdd2-11e4-906c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$JoyQ9QZuknku0xVaPW/khu90GEpbkX1QGBqn2pdxxvJazXgV57pym"], ["created_at", "2015-03-19 00:52:15.934253"], ["updated_at", "2015-03-19 00:52:15.934253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.937600"], ["updated_at", "2015-03-19 00:52:15.937600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ff4b14e-cdd2-11e4-91e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ff53722-cdd2-11e4-944a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ff4b14e-cdd2-11e4-91e8-705681abff85"], ["organization_id", "2ff53722-cdd2-11e4-944a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:15.941050"], ["updated_at", "2015-03-19 00:52:15.941050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$SCEIPr/vOI52JrdchpPSMe7TonOCJfXX.2IMnUvapV4jViiBF7Efe"], ["created_at", "2015-03-19 00:52:15.946375"], ["updated_at", "2015-03-19 00:52:15.946375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ff68ba4-cdd2-11e4-88c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ff53722-cdd2-11e4-944a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ff68ba4-cdd2-11e4-88c0-705681abff85"], ["organization_id", "2ff53722-cdd2-11e4-944a-705681abff85"], ["created_at", "2015-03-19 00:52:15.949613"], ["updated_at", "2015-03-19 00:52:15.949613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2ff4b14e-cdd2-11e4-91e8-705681abff85' LIMIT 1 [["organization_id", "2ff53722-cdd2-11e4-944a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$lJUnmnGkG0zragV/VDdgMusoSX2P3MffQ3WAX3xC8ACidrgwSJz.q"], ["created_at", "2015-03-19 00:52:15.957673"], ["updated_at", "2015-03-19 00:52:15.957673"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.961257"], ["updated_at", "2015-03-19 00:52:15.961257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$hbBq4LwUk.xkl8pMiUv9aeiiMVXZX/gYO2zOfJCdAiNNPG9beO8bG"], ["created_at", "2015-03-19 00:52:15.968902"], ["updated_at", "2015-03-19 00:52:15.968902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.972667"], ["updated_at", "2015-03-19 00:52:15.972667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ff9fe74-cdd2-11e4-a784-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ffa8d62-cdd2-11e4-9323-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ff9fe74-cdd2-11e4-a784-705681abff85"], ["organization_id", "2ffa8d62-cdd2-11e4-9323-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:15.976253"], ["updated_at", "2015-03-19 00:52:15.976253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2ff9fe74-cdd2-11e4-a784-705681abff85' LIMIT 1 [["organization_id", "2ffa8d62-cdd2-11e4-9323-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Q1/c3SMvfm7P6Xp5MLpaWejctnwjYNl/m6yFoyKZ3BzP/8P.FNPXy"], ["created_at", "2015-03-19 00:52:15.983584"], ["updated_at", "2015-03-19 00:52:15.983584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.986732"], ["updated_at", "2015-03-19 00:52:15.986732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ffc390a-cdd2-11e4-b356-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ffcb498-cdd2-11e4-b91a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ffc390a-cdd2-11e4-b356-705681abff85"], ["organization_id", "2ffcb498-cdd2-11e4-b91a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:15.990246"], ["updated_at", "2015-03-19 00:52:15.990246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$bln5AcRAuLjkZE7TzWZUwOi2f3uKq4LEK7/eMLt9vKFB5vZa2IA.m"], ["created_at", "2015-03-19 00:52:15.995976"], ["updated_at", "2015-03-19 00:52:15.995976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:15.999313"], ["updated_at", "2015-03-19 00:52:15.999313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ffe242c-cdd2-11e4-9e3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2ffe9c4a-cdd2-11e4-a1c4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ffe242c-cdd2-11e4-9e3d-705681abff85"], ["organization_id", "2ffe9c4a-cdd2-11e4-a1c4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:16.002725"], ["updated_at", "2015-03-19 00:52:16.002725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2ffe242c-cdd2-11e4-9e3d-705681abff85' LIMIT 1 [["organization_id", "2ffe9c4a-cdd2-11e4-a1c4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$j71SoHC00PWGM76A8/WXEujEC2vnGlBMKGY1pauawQ4/dXrQ3Bc9a"], ["created_at", "2015-03-19 00:52:16.009554"], ["updated_at", "2015-03-19 00:52:16.009554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:16.012767"], ["updated_at", "2015-03-19 00:52:16.012767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30002f92-cdd2-11e4-8512-705681abff85' AND "clubhouse_memberships"."organization_id" = '3000aad0-cdd2-11e4-9842-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "30002f92-cdd2-11e4-8512-705681abff85"], ["organization_id", "3000aad0-cdd2-11e4-9842-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:16.018586"], ["updated_at", "2015-03-19 00:52:16.018586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '30002f92-cdd2-11e4-8512-705681abff85' LIMIT 1 [["organization_id", "3000aad0-cdd2-11e4-9842-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$XBqxWNU2R.W.Xtlru5hIl.muILKu6KlshylI7acSi3NximmRM6KX6"], ["created_at", "2015-03-19 00:52:16.026011"], ["updated_at", "2015-03-19 00:52:16.026011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:16.029236"], ["updated_at", "2015-03-19 00:52:16.029236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3002b244-cdd2-11e4-98d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '30032f58-cdd2-11e4-87fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3002b244-cdd2-11e4-98d6-705681abff85"], ["organization_id", "30032f58-cdd2-11e4-87fc-705681abff85"], ["created_at", "2015-03-19 00:52:16.032766"], ["updated_at", "2015-03-19 00:52:16.032766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3002b244-cdd2-11e4-98d6-705681abff85' LIMIT 1 [["organization_id", "30032f58-cdd2-11e4-87fc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$/XmHv.C.g/nwhB65e5LgduXoxA9iFZ195ZpG9N8tX.DF3IvIel7JK"], ["created_at", "2015-03-19 00:52:16.040338"], ["updated_at", "2015-03-19 00:52:16.040338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:16.043850"], ["updated_at", "2015-03-19 00:52:16.043850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3004e654-cdd2-11e4-a8f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '30056bd8-cdd2-11e4-a214-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3004e654-cdd2-11e4-a8f6-705681abff85"], ["organization_id", "30056bd8-cdd2-11e4-a214-705681abff85"], ["created_at", "2015-03-19 00:52:16.047323"], ["updated_at", "2015-03-19 00:52:16.047323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$9LmcYwXG/oqOtE39Je.RiOMiO/cyLNTD5lpGFaWmqZCA8C6Hg9EXm"], ["created_at", "2015-03-19 00:52:16.053626"], ["updated_at", "2015-03-19 00:52:16.053626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:16.058082"], ["updated_at", "2015-03-19 00:52:16.058082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3006ed00-cdd2-11e4-bd3f-705681abff85' AND "clubhouse_memberships"."organization_id" = '30079cd2-cdd2-11e4-8bd0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3006ed00-cdd2-11e4-bd3f-705681abff85"], ["organization_id", "30079cd2-cdd2-11e4-8bd0-705681abff85"], ["created_at", "2015-03-19 00:52:16.061907"], ["updated_at", "2015-03-19 00:52:16.061907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3006ed00-cdd2-11e4-bd3f-705681abff85' LIMIT 1 [["organization_id", "30079cd2-cdd2-11e4-8bd0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$nE7TFxzDB5kxEoG47PjjyOf9X1EMc0ikC34tImVHyHW0IDJFBqk0."], ["created_at", "2015-03-19 00:52:16.069737"], ["updated_at", "2015-03-19 00:52:16.069737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:16.073391"], ["updated_at", "2015-03-19 00:52:16.073391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3009617a-cdd2-11e4-a6c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3009eb40-cdd2-11e4-bb97-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3009617a-cdd2-11e4-a6c9-705681abff85"], ["organization_id", "3009eb40-cdd2-11e4-bb97-705681abff85"], ["created_at", "2015-03-19 00:52:16.076728"], ["updated_at", "2015-03-19 00:52:16.076728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3009617a-cdd2-11e4-a6c9-705681abff85' LIMIT 1 [["organization_id", "3009eb40-cdd2-11e4-bb97-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$H0jiOKhOsO6Y1WnUYbPuTet0giLTpln8Rv3gprlsafAsYDibfUUkq"], ["created_at", "2015-03-19 00:52:16.084664"], ["updated_at", "2015-03-19 00:52:16.084664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:16.088008"], ["updated_at", "2015-03-19 00:52:16.088008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$FIfv.mgRa3d1iZvX/cjQMOa.o/z8xesbUxMQPBpfq8gkbPgFwFmce"], ["created_at", "2015-03-19 00:52:23.548859"], ["updated_at", "2015-03-19 00:52:23.548859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$zR7qMbX9nNwHPvovoJ77mOcWuRQcsIykGQ9c334GQDZy9HDCVR5ea"], ["created_at", "2015-03-19 00:52:23.555939"], ["updated_at", "2015-03-19 00:52:23.555939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.566642"], ["updated_at", "2015-03-19 00:52:23.566642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '347facbe-cdd2-11e4-af4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '348167de-cdd2-11e4-8f57-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "347facbe-cdd2-11e4-af4d-705681abff85"], ["organization_id", "348167de-cdd2-11e4-8f57-705681abff85"], ["created_at", "2015-03-19 00:52:23.617187"], ["updated_at", "2015-03-19 00:52:23.617187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '347ec24a-cdd2-11e4-87cd-705681abff85' LIMIT 1 [["organization_id", "348167de-cdd2-11e4-8f57-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (82.0ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$6tRikr/EzP6vO/keiYvF4.weygAP7XComnkind28MjqQRcngTlaiS"], ["created_at", "2015-03-19 00:52:23.722344"], ["updated_at", "2015-03-19 00:52:23.722344"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$qFjvsSmRhjPi.i0xWFCOZ.dyi18fbWHYbuuZU/TIpM8F2zDkiReoC"], ["created_at", "2015-03-19 00:52:23.732248"], ["updated_at", "2015-03-19 00:52:23.732248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.738232"], ["updated_at", "2015-03-19 00:52:23.738232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '349aacb2-cdd2-11e4-93cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '349b933e-cdd2-11e4-bbfb-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "349aacb2-cdd2-11e4-93cb-705681abff85"], ["organization_id", "349b933e-cdd2-11e4-bbfb-705681abff85"], ["created_at", "2015-03-19 00:52:23.744322"], ["updated_at", "2015-03-19 00:52:23.744322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '34992c70-cdd2-11e4-a6fa-705681abff85' LIMIT 1 [["organization_id", "349b933e-cdd2-11e4-bbfb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$eVVz/oKUe5lb8cinQHLdLuNo1ZXG2bF.FIIhjVvxQDU0yEiF84OVq"], ["created_at", "2015-03-19 00:52:23.755688"], ["updated_at", "2015-03-19 00:52:23.755688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$cQTiTu/ReZMOrx5oJZ7kzOUxy3J/WIH1De/MWUTqkYBA4CpVnOj5m"], ["created_at", "2015-03-19 00:52:23.763139"], ["updated_at", "2015-03-19 00:52:23.763139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.768460"], ["updated_at", "2015-03-19 00:52:23.768460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '349f5e4c-cdd2-11e4-a955-705681abff85' AND "clubhouse_memberships"."organization_id" = '34a02aca-cdd2-11e4-a046-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "349f5e4c-cdd2-11e4-a955-705681abff85"], ["organization_id", "34a02aca-cdd2-11e4-a046-705681abff85"], ["created_at", "2015-03-19 00:52:23.773780"], ["updated_at", "2015-03-19 00:52:23.773780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$.x7lrR7SUe8Tlc89ZG2Sme8buE2WmZxRHMTKfHk1LMr1WuXotydGe"], ["created_at", "2015-03-19 00:52:23.781990"], ["updated_at", "2015-03-19 00:52:23.781990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$qEJdUvlI4QZxc2WEeif8hOyIYxSyuntRY13FL5IXtk.YHBKl6/Rbu"], ["created_at", "2015-03-19 00:52:23.788677"], ["updated_at", "2015-03-19 00:52:23.788677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.794202"], ["updated_at", "2015-03-19 00:52:23.794202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34a3417e-cdd2-11e4-91bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '34a41c70-cdd2-11e4-8bac-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34a3417e-cdd2-11e4-91bf-705681abff85"], ["organization_id", "34a41c70-cdd2-11e4-8bac-705681abff85"], ["created_at", "2015-03-19 00:52:23.799929"], ["updated_at", "2015-03-19 00:52:23.799929"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '34a23b76-cdd2-11e4-98f7-705681abff85' LIMIT 1 [["organization_id", "34a41c70-cdd2-11e4-8bac-705681abff85"]]  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$TuupUKPI1HmP6r6FF.vfPuJTvMIX9.ChUPKeco0qdqdZK.dG1BklK"], ["created_at", "2015-03-19 00:52:23.820915"], ["updated_at", "2015-03-19 00:52:23.820915"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.825809"], ["updated_at", "2015-03-19 00:52:23.825809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '34a8227a-cdd2-11e4-bbc8-705681abff85' LIMIT 1 [["organization_id", "34a8da3a-cdd2-11e4-acd9-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$WbhHvygdNo3rM1KcKRMpaOONCsD1y70puCceUqYKeebRzJCPkrFei"], ["created_at", "2015-03-19 00:52:23.833721"], ["updated_at", "2015-03-19 00:52:23.833721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.836870"], ["updated_at", "2015-03-19 00:52:23.836870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34aa0f4a-cdd2-11e4-a3e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '34aa892a-cdd2-11e4-bd1e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34aa0f4a-cdd2-11e4-a3e0-705681abff85"], ["organization_id", "34aa892a-cdd2-11e4-bd1e-705681abff85"], ["created_at", "2015-03-19 00:52:23.840102"], ["updated_at", "2015-03-19 00:52:23.840102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '34aa0f4a-cdd2-11e4-a3e0-705681abff85' LIMIT 1 [["organization_id", "34aa892a-cdd2-11e4-bd1e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$MP8ilCXF1JdF/8BpvU79feuSVWuLp45AxSQzzFBmFNANCCe26/5bm"], ["created_at", "2015-03-19 00:52:23.847173"], ["updated_at", "2015-03-19 00:52:23.847173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.850851"], ["updated_at", "2015-03-19 00:52:23.850851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34ac24e2-cdd2-11e4-bc2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '34acab92-cdd2-11e4-a7c9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34ac24e2-cdd2-11e4-bc2a-705681abff85"], ["organization_id", "34acab92-cdd2-11e4-a7c9-705681abff85"], ["created_at", "2015-03-19 00:52:23.854387"], ["updated_at", "2015-03-19 00:52:23.854387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '34ac24e2-cdd2-11e4-bc2a-705681abff85' LIMIT 1 [["organization_id", "34acab92-cdd2-11e4-a7c9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (3.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$lmw3CHr9QgJ/JlwA4Juw2.8XWF./MVhVJEqEOG0rF6OhnIUgcxzvW"], ["created_at", "2015-03-19 00:52:23.861250"], ["updated_at", "2015-03-19 00:52:23.861250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.868829"], ["updated_at", "2015-03-19 00:52:23.868829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34ae4286-cdd2-11e4-8183-705681abff85' AND "clubhouse_memberships"."organization_id" = '34af6d28-cdd2-11e4-baf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34ae4286-cdd2-11e4-8183-705681abff85"], ["organization_id", "34af6d28-cdd2-11e4-baf3-705681abff85"], ["created_at", "2015-03-19 00:52:23.872454"], ["updated_at", "2015-03-19 00:52:23.872454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$9hUv912P2JdLQ7rkiz0o1umzKMMfS2h7GN/zl0CFtQznrKpJzHhgi"], ["created_at", "2015-03-19 00:52:23.878482"], ["updated_at", "2015-03-19 00:52:23.878482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.881741"], ["updated_at", "2015-03-19 00:52:23.881741"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34b0e3ce-cdd2-11e4-8bfb-705681abff85' AND "clubhouse_memberships"."organization_id" = '34b16f1a-cdd2-11e4-8043-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34b0e3ce-cdd2-11e4-8bfb-705681abff85"], ["organization_id", "34b16f1a-cdd2-11e4-8043-705681abff85"], ["created_at", "2015-03-19 00:52:23.888070"], ["updated_at", "2015-03-19 00:52:23.888070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '34b0e3ce-cdd2-11e4-8bfb-705681abff85' LIMIT 1 [["organization_id", "34b16f1a-cdd2-11e4-8043-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$jPLpXp3AOAPXOsBaxy8h/edS4mMSDMtKtZhnrOonN8qV9aj6v2w/G"], ["created_at", "2015-03-19 00:52:23.896049"], ["updated_at", "2015-03-19 00:52:23.896049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.899649"], ["updated_at", "2015-03-19 00:52:23.899649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '34b392a4-cdd2-11e4-a2e4-705681abff85' LIMIT 1 [["organization_id", "34b42566-cdd2-11e4-806a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$iegSseNcZSWA0GGf5zE.KOeEWptaS8iJi6XJ5hqlAtR/.KD8kM7OK"], ["created_at", "2015-03-19 00:52:23.907428"], ["updated_at", "2015-03-19 00:52:23.907428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.910585"], ["updated_at", "2015-03-19 00:52:23.910585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34b54e28-cdd2-11e4-a529-705681abff85' AND "clubhouse_memberships"."organization_id" = '34b5c7e0-cdd2-11e4-9441-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34b54e28-cdd2-11e4-a529-705681abff85"], ["organization_id", "34b5c7e0-cdd2-11e4-9441-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:23.914352"], ["updated_at", "2015-03-19 00:52:23.914352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$AC2UaDdfh6rS/eQGIIF3ZeAW1YNu/d421DE5k6h0ObUyiKpNzGE8a"], ["created_at", "2015-03-19 00:52:23.920106"], ["updated_at", "2015-03-19 00:52:23.920106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34b74296-cdd2-11e4-9fd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '34b5c7e0-cdd2-11e4-9441-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34b74296-cdd2-11e4-9fd4-705681abff85"], ["organization_id", "34b5c7e0-cdd2-11e4-9441-705681abff85"], ["created_at", "2015-03-19 00:52:23.924813"], ["updated_at", "2015-03-19 00:52:23.924813"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '34b54e28-cdd2-11e4-a529-705681abff85' LIMIT 1 [["organization_id", "34b5c7e0-cdd2-11e4-9441-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$zcwnps.Kylgv94cMS9dqNu0BAa8WnOWNoLInA4qNXayOu/GyjX3ii"], ["created_at", "2015-03-19 00:52:23.934212"], ["updated_at", "2015-03-19 00:52:23.934212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.937831"], ["updated_at", "2015-03-19 00:52:23.937831"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34b969a4-cdd2-11e4-a015-705681abff85' AND "clubhouse_memberships"."organization_id" = '34b9f4b4-cdd2-11e4-badc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34b969a4-cdd2-11e4-a015-705681abff85"], ["organization_id", "34b9f4b4-cdd2-11e4-badc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:23.941629"], ["updated_at", "2015-03-19 00:52:23.941629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$GE/h0vBRSq46qwhDEwMHEuhg1cH5QdJnCPSVzldkykP4xqFxR8TIG"], ["created_at", "2015-03-19 00:52:23.948614"], ["updated_at", "2015-03-19 00:52:23.948614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34bbecce-cdd2-11e4-b059-705681abff85' AND "clubhouse_memberships"."organization_id" = '34b9f4b4-cdd2-11e4-badc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34bbecce-cdd2-11e4-b059-705681abff85"], ["organization_id", "34b9f4b4-cdd2-11e4-badc-705681abff85"], ["created_at", "2015-03-19 00:52:23.954898"], ["updated_at", "2015-03-19 00:52:23.954898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '34b969a4-cdd2-11e4-a015-705681abff85' LIMIT 1 [["organization_id", "34b9f4b4-cdd2-11e4-badc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$j/21SAw22SmIlHBKNEOsSuWg131Qd1HoaXGBl0Uk9eAJ0rUPXtNaO"], ["created_at", "2015-03-19 00:52:23.962499"], ["updated_at", "2015-03-19 00:52:23.962499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.968874"], ["updated_at", "2015-03-19 00:52:23.968874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34bdd1f6-cdd2-11e4-81ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '34beb116-cdd2-11e4-a1d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34bdd1f6-cdd2-11e4-81ed-705681abff85"], ["organization_id", "34beb116-cdd2-11e4-a1d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:23.972704"], ["updated_at", "2015-03-19 00:52:23.972704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$46Bti7R1cQk1AVrGdlVT0O5ozsKuP5NsGMq.GczieyxzBauhblrwa"], ["created_at", "2015-03-19 00:52:23.977310"], ["updated_at", "2015-03-19 00:52:23.977310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34bff9f4-cdd2-11e4-88b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '34beb116-cdd2-11e4-a1d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34bff9f4-cdd2-11e4-88b0-705681abff85"], ["organization_id", "34beb116-cdd2-11e4-a1d7-705681abff85"], ["created_at", "2015-03-19 00:52:23.980719"], ["updated_at", "2015-03-19 00:52:23.980719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$ay0d9eApguilk7Mf7eaEN.ZbeqKRNP41YeqORo5JFMB3q8ExzMypK"], ["created_at", "2015-03-19 00:52:23.986512"], ["updated_at", "2015-03-19 00:52:23.986512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:23.989736"], ["updated_at", "2015-03-19 00:52:23.989736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34c161b8-cdd2-11e4-81cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '34c1dabc-cdd2-11e4-aee1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34c161b8-cdd2-11e4-81cf-705681abff85"], ["organization_id", "34c1dabc-cdd2-11e4-aee1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:23.993006"], ["updated_at", "2015-03-19 00:52:23.993006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$8L1NVFUN/TBGmDZp1HvXdel878BuWmlGMOm8le5EPjzfncA3WTDPC"], ["created_at", "2015-03-19 00:52:23.997664"], ["updated_at", "2015-03-19 00:52:23.997664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34c31436-cdd2-11e4-a2c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '34c1dabc-cdd2-11e4-aee1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34c31436-cdd2-11e4-a2c5-705681abff85"], ["organization_id", "34c1dabc-cdd2-11e4-aee1-705681abff85"], ["created_at", "2015-03-19 00:52:24.001538"], ["updated_at", "2015-03-19 00:52:24.001538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '34c161b8-cdd2-11e4-81cf-705681abff85' LIMIT 1 [["organization_id", "34c1dabc-cdd2-11e4-aee1-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$qzAfkmKfB0nuxUJN1XTazOBxIOTh7WEl7MuX5uYJblJKz/jh.QTbC"], ["created_at", "2015-03-19 00:52:24.008928"], ["updated_at", "2015-03-19 00:52:24.008928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:24.012133"], ["updated_at", "2015-03-19 00:52:24.012133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34c4cb96-cdd2-11e4-a069-705681abff85' AND "clubhouse_memberships"."organization_id" = '34c5544e-cdd2-11e4-910a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34c4cb96-cdd2-11e4-a069-705681abff85"], ["organization_id", "34c5544e-cdd2-11e4-910a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:24.016877"], ["updated_at", "2015-03-19 00:52:24.016877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '34c4cb96-cdd2-11e4-a069-705681abff85' LIMIT 1 [["organization_id", "34c5544e-cdd2-11e4-910a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$r66K9u7OGSWWu0tqyH8eZuURHCipF/9hKf3nSFbcDyz30BW6MWRPC"], ["created_at", "2015-03-19 00:52:24.024432"], ["updated_at", "2015-03-19 00:52:24.024432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:24.028344"], ["updated_at", "2015-03-19 00:52:24.028344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34c72a58-cdd2-11e4-82f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '34c7c332-cdd2-11e4-998d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34c72a58-cdd2-11e4-82f5-705681abff85"], ["organization_id", "34c7c332-cdd2-11e4-998d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:24.032213"], ["updated_at", "2015-03-19 00:52:24.032213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '34c72a58-cdd2-11e4-82f5-705681abff85' LIMIT 1 [["organization_id", "34c7c332-cdd2-11e4-998d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$Rf9CRFFMk.Xn2MwGI2dt.uykiV90ivXDid8XULzuGMFlePDdH.RA."], ["created_at", "2015-03-19 00:52:24.039299"], ["updated_at", "2015-03-19 00:52:24.039299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:24.043016"], ["updated_at", "2015-03-19 00:52:24.043016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34c9793e-cdd2-11e4-9d6f-705681abff85' AND "clubhouse_memberships"."organization_id" = '34ca000c-cdd2-11e4-9337-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34c9793e-cdd2-11e4-9d6f-705681abff85"], ["organization_id", "34ca000c-cdd2-11e4-9337-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:24.046580"], ["updated_at", "2015-03-19 00:52:24.046580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$0nDmrnb3zDBi6A5mbKLhneM7JMxoSydRO.AwTuJU4uyoFEnpRASRi"], ["created_at", "2015-03-19 00:52:24.052952"], ["updated_at", "2015-03-19 00:52:24.052952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:24.056192"], ["updated_at", "2015-03-19 00:52:24.056192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34cb85bc-cdd2-11e4-af3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '34cc0082-cdd2-11e4-9574-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34cb85bc-cdd2-11e4-af3b-705681abff85"], ["organization_id", "34cc0082-cdd2-11e4-9574-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:52:24.059555"], ["updated_at", "2015-03-19 00:52:24.059555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '34cb85bc-cdd2-11e4-af3b-705681abff85' LIMIT 1 [["organization_id", "34cc0082-cdd2-11e4-9574-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$Jaw3DTpnSv5xvLet8x1lruUr0bNM7EtJ32vOtZ2T8o/UaT.9snVxO"], ["created_at", "2015-03-19 00:52:24.068162"], ["updated_at", "2015-03-19 00:52:24.068162"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:52:24.072585"], ["updated_at", "2015-03-19 00:52:24.072585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '34cddaf6-cdd2-11e4-9018-705681abff85' LIMIT 1 [["organization_id", "34ce8262-cdd2-11e4-ab3f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (27.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$gOW0muNLrmW9efdlkTS6oesFngGNmWt8UZSPNnMXNkLwkVYtGPsDG"], ["created_at", "2015-03-19 00:53:13.488772"], ["updated_at", "2015-03-19 00:53:13.488772"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (3.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.558575"], ["updated_at", "2015-03-19 00:53:13.558575"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5246edac-cdd2-11e4-88ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '524d8770-cdd2-11e4-8761-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5246edac-cdd2-11e4-88ee-705681abff85"], ["organization_id", "524d8770-cdd2-11e4-8761-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:13.581668"], ["updated_at", "2015-03-19 00:53:13.581668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5246edac-cdd2-11e4-88ee-705681abff85' LIMIT 1 [["organization_id", "524d8770-cdd2-11e4-8761-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (17.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$0Gu4LFiEIpv3aZXSpKmeTeX7BXqGiYwPc8CNAkL6oVIH8CwhqtQ5y"], ["created_at", "2015-03-19 00:53:13.603574"], ["updated_at", "2015-03-19 00:53:13.603574"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.626487"], ["updated_at", "2015-03-19 00:53:13.626487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52545794-cdd2-11e4-9719-705681abff85' AND "clubhouse_memberships"."organization_id" = '5257e5ee-cdd2-11e4-b61f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "52545794-cdd2-11e4-9719-705681abff85"], ["organization_id", "5257e5ee-cdd2-11e4-b61f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:13.630999"], ["updated_at", "2015-03-19 00:53:13.630999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (4.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$S9OsSMD8Qz4bW2pvFw5dOemg38E5QiGS2GiOAl6qaXkfxBXn.Xq0K"], ["created_at", "2015-03-19 00:53:13.658067"], ["updated_at", "2015-03-19 00:53:13.658067"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '525cc9e2-cdd2-11e4-af84-705681abff85' AND "clubhouse_memberships"."organization_id" = '5257e5ee-cdd2-11e4-b61f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "525cc9e2-cdd2-11e4-af84-705681abff85"], ["organization_id", "5257e5ee-cdd2-11e4-b61f-705681abff85"], ["created_at", "2015-03-19 00:53:13.666787"], ["updated_at", "2015-03-19 00:53:13.666787"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$hqgXgJEE/UD6yplawDfO3ef.PdTo23sDZdgvQpvfTaD4JIaeeC2VS"], ["created_at", "2015-03-19 00:53:13.676276"], ["updated_at", "2015-03-19 00:53:13.676276"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.683063"], ["updated_at", "2015-03-19 00:53:13.683063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '525fad38-cdd2-11e4-8502-705681abff85' AND "clubhouse_memberships"."organization_id" = '526087f8-cdd2-11e4-8455-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "525fad38-cdd2-11e4-8502-705681abff85"], ["organization_id", "526087f8-cdd2-11e4-8455-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:13.687151"], ["updated_at", "2015-03-19 00:53:13.687151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$M2.5GCxpjOGyHOlrCLPAhObFlsVsHrD81XxKu/njutSIdDgqZWHCq"], ["created_at", "2015-03-19 00:53:13.692156"], ["updated_at", "2015-03-19 00:53:13.692156"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5261dfb8-cdd2-11e4-a8a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '526087f8-cdd2-11e4-8455-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5261dfb8-cdd2-11e4-a8a1-705681abff85"], ["organization_id", "526087f8-cdd2-11e4-8455-705681abff85"], ["created_at", "2015-03-19 00:53:13.696735"], ["updated_at", "2015-03-19 00:53:13.696735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '525fad38-cdd2-11e4-8502-705681abff85' LIMIT 1 [["organization_id", "526087f8-cdd2-11e4-8455-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$0OnOibNpx9P.Cwx8qz5yf.EGwDA2hAw6ZvBzZ9oh89fGQlxhRUyAO"], ["created_at", "2015-03-19 00:53:13.707331"], ["updated_at", "2015-03-19 00:53:13.707331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.711886"], ["updated_at", "2015-03-19 00:53:13.711886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52643a24-cdd2-11e4-9f63-705681abff85' AND "clubhouse_memberships"."organization_id" = '5264dce0-cdd2-11e4-b39b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "52643a24-cdd2-11e4-9f63-705681abff85"], ["organization_id", "5264dce0-cdd2-11e4-b39b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:13.715127"], ["updated_at", "2015-03-19 00:53:13.715127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$YMiYFWUeGMkmTAE.LK3BCOrNt4F5VOT/xy4sAKYRbbrhhBUJNkeGy"], ["created_at", "2015-03-19 00:53:13.720571"], ["updated_at", "2015-03-19 00:53:13.720571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '526636f8-cdd2-11e4-91c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '5264dce0-cdd2-11e4-b39b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "526636f8-cdd2-11e4-91c8-705681abff85"], ["organization_id", "5264dce0-cdd2-11e4-b39b-705681abff85"], ["created_at", "2015-03-19 00:53:13.723997"], ["updated_at", "2015-03-19 00:53:13.723997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '52643a24-cdd2-11e4-9f63-705681abff85' LIMIT 1 [["organization_id", "5264dce0-cdd2-11e4-b39b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$xxPvcg9WurK7AJO3E7sSYeH2hqbk3gdae1mkbCTaJa7ywcJTcoDx."], ["created_at", "2015-03-19 00:53:13.730885"], ["updated_at", "2015-03-19 00:53:13.730885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.734261"], ["updated_at", "2015-03-19 00:53:13.734261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5267c842-cdd2-11e4-8b9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5268452e-cdd2-11e4-b6ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5267c842-cdd2-11e4-8b9b-705681abff85"], ["organization_id", "5268452e-cdd2-11e4-b6ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:13.737653"], ["updated_at", "2015-03-19 00:53:13.737653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$neeR8T7e7nr6l/Ho2phNk.UWioB86Wfgbn7bH7XlAlXd3l8MSRNqa"], ["created_at", "2015-03-19 00:53:13.743040"], ["updated_at", "2015-03-19 00:53:13.743040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52699c94-cdd2-11e4-b384-705681abff85' AND "clubhouse_memberships"."organization_id" = '5268452e-cdd2-11e4-b6ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "52699c94-cdd2-11e4-b384-705681abff85"], ["organization_id", "5268452e-cdd2-11e4-b6ce-705681abff85"], ["created_at", "2015-03-19 00:53:13.748558"], ["updated_at", "2015-03-19 00:53:13.748558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5267c842-cdd2-11e4-8b9b-705681abff85' LIMIT 1 [["organization_id", "5268452e-cdd2-11e4-b6ce-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$SHS8Ge6eL0Bp1rNwn.quvuw.rkNfUp/JOgUAJxXSsSj7qbMO/R91a"], ["created_at", "2015-03-19 00:53:13.755862"], ["updated_at", "2015-03-19 00:53:13.755862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.758902"], ["updated_at", "2015-03-19 00:53:13.758902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '526b91c0-cdd2-11e4-b493-705681abff85' AND "clubhouse_memberships"."organization_id" = '526c074a-cdd2-11e4-96fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "526b91c0-cdd2-11e4-b493-705681abff85"], ["organization_id", "526c074a-cdd2-11e4-96fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:13.762768"], ["updated_at", "2015-03-19 00:53:13.762768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$0zkUp.K7Os3lZxFkWlRQQ.sj9T.Wl5k8i3sXUFqfVxr.7QD35.cmu"], ["created_at", "2015-03-19 00:53:13.769006"], ["updated_at", "2015-03-19 00:53:13.769006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.772978"], ["updated_at", "2015-03-19 00:53:13.772978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '526dad98-cdd2-11e4-aa96-705681abff85' AND "clubhouse_memberships"."organization_id" = '526e2f0c-cdd2-11e4-9b24-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "526dad98-cdd2-11e4-aa96-705681abff85"], ["organization_id", "526e2f0c-cdd2-11e4-9b24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:13.776401"], ["updated_at", "2015-03-19 00:53:13.776401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '526dad98-cdd2-11e4-aa96-705681abff85' LIMIT 1 [["organization_id", "526e2f0c-cdd2-11e4-9b24-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$IQ74KoC5oJupnAUrQIHxr.FIfG8MHcfjMHW17Yyu4ZprYWinBJ9Pi"], ["created_at", "2015-03-19 00:53:13.783375"], ["updated_at", "2015-03-19 00:53:13.783375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.786743"], ["updated_at", "2015-03-19 00:53:13.786743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '526fc6dc-cdd2-11e4-b128-705681abff85' AND "clubhouse_memberships"."organization_id" = '527048d2-cdd2-11e4-b959-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "526fc6dc-cdd2-11e4-b128-705681abff85"], ["organization_id", "527048d2-cdd2-11e4-b959-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:13.790165"], ["updated_at", "2015-03-19 00:53:13.790165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '526fc6dc-cdd2-11e4-b128-705681abff85' LIMIT 1 [["organization_id", "527048d2-cdd2-11e4-b959-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$GZpeF7ai4Jm8DIA86Cn1P.HHnham9t3qVwFIqOYtvj/bJuDgGmrhy"], ["created_at", "2015-03-19 00:53:13.796806"], ["updated_at", "2015-03-19 00:53:13.796806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.800062"], ["updated_at", "2015-03-19 00:53:13.800062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5271d04e-cdd2-11e4-b7bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '527251a4-cdd2-11e4-85b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5271d04e-cdd2-11e4-b7bf-705681abff85"], ["organization_id", "527251a4-cdd2-11e4-85b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:13.803950"], ["updated_at", "2015-03-19 00:53:13.803950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5271d04e-cdd2-11e4-b7bf-705681abff85' LIMIT 1 [["organization_id", "527251a4-cdd2-11e4-85b3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$5WH5q5F2VRwNbvBXku4jseHxEo96kcNKPXL8fjt9TdunZdKU4c1Vq"], ["created_at", "2015-03-19 00:53:13.811131"], ["updated_at", "2015-03-19 00:53:13.811131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$CPV6UFqw4sV4.yvB3LO7d.LFxYB6gljiZCGR0KxYli848xsPy8Zz6"], ["created_at", "2015-03-19 00:53:13.816621"], ["updated_at", "2015-03-19 00:53:13.816621"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.820899"], ["updated_at", "2015-03-19 00:53:13.820899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5274e158-cdd2-11e4-85be-705681abff85' AND "clubhouse_memberships"."organization_id" = '52757fdc-cdd2-11e4-a143-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5274e158-cdd2-11e4-85be-705681abff85"], ["organization_id", "52757fdc-cdd2-11e4-a143-705681abff85"], ["created_at", "2015-03-19 00:53:13.824259"], ["updated_at", "2015-03-19 00:53:13.824259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (3.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$SljfdISzsoKBu.zrgE3XNeuujWa6hCei6YRZ8h8P219A/7bA27T.u"], ["created_at", "2015-03-19 00:53:13.830020"], ["updated_at", "2015-03-19 00:53:13.830020"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$mTNX8Wiavmpt0gFn49ultu5eeib.NDOClFgqWPtz9xgWhEyvOHAFS"], ["created_at", "2015-03-19 00:53:13.838106"], ["updated_at", "2015-03-19 00:53:13.838106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.841230"], ["updated_at", "2015-03-19 00:53:13.841230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52781fb2-cdd2-11e4-8b14-705681abff85' AND "clubhouse_memberships"."organization_id" = '527895b4-cdd2-11e4-b4e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "52781fb2-cdd2-11e4-8b14-705681abff85"], ["organization_id", "527895b4-cdd2-11e4-b4e0-705681abff85"], ["created_at", "2015-03-19 00:53:13.844416"], ["updated_at", "2015-03-19 00:53:13.844416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5276e354-cdd2-11e4-9a7c-705681abff85' LIMIT 1 [["organization_id", "527895b4-cdd2-11e4-b4e0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$n.8IZ7q5qi93uyoEEmv7GeLNgzuQtkarjYNtdrrMmd6YqtatUlJOu"], ["created_at", "2015-03-19 00:53:13.851587"], ["updated_at", "2015-03-19 00:53:13.851587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$HGndrCW7fHNnOuNWmV.QpODsaLiTKdJR6dXNxD1EEEClHi.r9S2YC"], ["created_at", "2015-03-19 00:53:13.856254"], ["updated_at", "2015-03-19 00:53:13.856254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.859329"], ["updated_at", "2015-03-19 00:53:13.859329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '527ae2c4-cdd2-11e4-a285-705681abff85' AND "clubhouse_memberships"."organization_id" = '527b58d0-cdd2-11e4-89ef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "527ae2c4-cdd2-11e4-a285-705681abff85"], ["organization_id", "527b58d0-cdd2-11e4-89ef-705681abff85"], ["created_at", "2015-03-19 00:53:13.862294"], ["updated_at", "2015-03-19 00:53:13.862294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '527a2e06-cdd2-11e4-ad17-705681abff85' LIMIT 1 [["organization_id", "527b58d0-cdd2-11e4-89ef-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$btmZku1XF.cgIp4xYFx28uvOmTIJvMuVwUlS0sbCyS4Tpk54I35q."], ["created_at", "2015-03-19 00:53:13.869663"], ["updated_at", "2015-03-19 00:53:13.869663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$JSejG2PQacB8K8Micr91gOyZ44M.5f80Lei9k/FgodijD0geuxp82"], ["created_at", "2015-03-19 00:53:13.874403"], ["updated_at", "2015-03-19 00:53:13.874403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.877610"], ["updated_at", "2015-03-19 00:53:13.877610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '527daacc-cdd2-11e4-a5de-705681abff85' AND "clubhouse_memberships"."organization_id" = '527e260a-cdd2-11e4-a747-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "527daacc-cdd2-11e4-a5de-705681abff85"], ["organization_id", "527e260a-cdd2-11e4-a747-705681abff85"], ["created_at", "2015-03-19 00:53:13.880916"], ["updated_at", "2015-03-19 00:53:13.880916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '527cfbfe-cdd2-11e4-9dab-705681abff85' LIMIT 1 [["organization_id", "527e260a-cdd2-11e4-a747-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$4JVttdeMeiVC8fI4mgyFpumtAU.VAwxggrPC6Uhvf3Q8un1qHFBn2"], ["created_at", "2015-03-19 00:53:13.888287"], ["updated_at", "2015-03-19 00:53:13.888287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.891826"], ["updated_at", "2015-03-19 00:53:13.891826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '527fc80c-cdd2-11e4-80c1-705681abff85' LIMIT 1 [["organization_id", "52805d94-cdd2-11e4-ae5d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$yfHHET8ARTH4aEsmwJTzpOj3sB2yaLB45316gyU1.2.4mtjO.xJQ6"], ["created_at", "2015-03-19 00:53:13.899382"], ["updated_at", "2015-03-19 00:53:13.899382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.902704"], ["updated_at", "2015-03-19 00:53:13.902704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '528179e0-cdd2-11e4-96d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '528203c4-cdd2-11e4-a11e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "528179e0-cdd2-11e4-96d0-705681abff85"], ["organization_id", "528203c4-cdd2-11e4-a11e-705681abff85"], ["created_at", "2015-03-19 00:53:13.906822"], ["updated_at", "2015-03-19 00:53:13.906822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$9PJOGBmXBEpkQLjr/3ePFeaaAONn7t8Q3llQWLkqKTbMprr7NpWP2"], ["created_at", "2015-03-19 00:53:13.912665"], ["updated_at", "2015-03-19 00:53:13.912665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.916055"], ["updated_at", "2015-03-19 00:53:13.916055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52838118-cdd2-11e4-b5af-705681abff85' AND "clubhouse_memberships"."organization_id" = '528403f4-cdd2-11e4-9a2f-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "52838118-cdd2-11e4-b5af-705681abff85"], ["organization_id", "528403f4-cdd2-11e4-9a2f-705681abff85"], ["created_at", "2015-03-19 00:53:13.920069"], ["updated_at", "2015-03-19 00:53:13.920069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '52838118-cdd2-11e4-b5af-705681abff85' LIMIT 1 [["organization_id", "528403f4-cdd2-11e4-9a2f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$/qeoRMJ4ry4FixiRPnUUdeGy4uZxukKwMvJgh/rnmVBWsdN3QswJG"], ["created_at", "2015-03-19 00:53:13.929215"], ["updated_at", "2015-03-19 00:53:13.929215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.932261"], ["updated_at", "2015-03-19 00:53:13.932261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52860596-cdd2-11e4-9e61-705681abff85' AND "clubhouse_memberships"."organization_id" = '52867a4e-cdd2-11e4-97be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "52860596-cdd2-11e4-9e61-705681abff85"], ["organization_id", "52867a4e-cdd2-11e4-97be-705681abff85"], ["created_at", "2015-03-19 00:53:13.935390"], ["updated_at", "2015-03-19 00:53:13.935390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '52860596-cdd2-11e4-9e61-705681abff85' LIMIT 1 [["organization_id", "52867a4e-cdd2-11e4-97be-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$wjCt.PzxH1yW65MRP1aamua3BMezQZHdqRwNXHV498XtrQVk3938."], ["created_at", "2015-03-19 00:53:13.942465"], ["updated_at", "2015-03-19 00:53:13.942465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.945845"], ["updated_at", "2015-03-19 00:53:13.945845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52880d28-cdd2-11e4-a411-705681abff85' AND "clubhouse_memberships"."organization_id" = '52889040-cdd2-11e4-8876-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "52880d28-cdd2-11e4-a411-705681abff85"], ["organization_id", "52889040-cdd2-11e4-8876-705681abff85"], ["created_at", "2015-03-19 00:53:13.949442"], ["updated_at", "2015-03-19 00:53:13.949442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '52880d28-cdd2-11e4-a411-705681abff85' LIMIT 1 [["organization_id", "52889040-cdd2-11e4-8876-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$doqrZ5ryWUxbkhKOxiFGa.Zi3WO6KaAJNWcU1W4uRK2uBoMrjbqhK"], ["created_at", "2015-03-19 00:53:13.957188"], ["updated_at", "2015-03-19 00:53:13.957188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:13.960585"], ["updated_at", "2015-03-19 00:53:13.960585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '528a4d54-cdd2-11e4-bf03-705681abff85' LIMIT 1 [["organization_id", "528ad01c-cdd2-11e4-b846-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (27.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Mfc9rG5aVPUmJcwfQ0NVqORWjUGxCFYcdfsN0bwDz5gQY0CzR1VLG"], ["created_at", "2015-03-19 00:53:54.140888"], ["updated_at", "2015-03-19 00:53:54.140888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.178043"], ["updated_at", "2015-03-19 00:53:54.178043"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a81fd12-cdd2-11e4-abd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a839852-cdd2-11e4-963d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a81fd12-cdd2-11e4-abd4-705681abff85"], ["organization_id", "6a839852-cdd2-11e4-963d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:54.226975"], ["updated_at", "2015-03-19 00:53:54.226975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6a81fd12-cdd2-11e4-abd4-705681abff85' LIMIT 1 [["organization_id", "6a839852-cdd2-11e4-963d-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$mCjY6oms5WoYvE/gRO5kw.I.g5Fo71KYcvzBUmJYn8/oon5YBBzmi"], ["created_at", "2015-03-19 00:53:54.249038"], ["updated_at", "2015-03-19 00:53:54.249038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.252564"], ["updated_at", "2015-03-19 00:53:54.252564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a8e5d0a-cdd2-11e4-ab00-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a8edffa-cdd2-11e4-9df3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a8e5d0a-cdd2-11e4-ab00-705681abff85"], ["organization_id", "6a8edffa-cdd2-11e4-9df3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:54.255959"], ["updated_at", "2015-03-19 00:53:54.255959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Lo0wYjenYCK/NvPgQbrzAe9cQbKQUxEZwq1gUuahnfbJYtUCneiRy"], ["created_at", "2015-03-19 00:53:54.260487"], ["updated_at", "2015-03-19 00:53:54.260487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a901528-cdd2-11e4-8240-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a8edffa-cdd2-11e4-9df3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6a901528-cdd2-11e4-8240-705681abff85"], ["organization_id", "6a8edffa-cdd2-11e4-9df3-705681abff85"], ["created_at", "2015-03-19 00:53:54.263634"], ["updated_at", "2015-03-19 00:53:54.263634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6a8e5d0a-cdd2-11e4-ab00-705681abff85' LIMIT 1 [["organization_id", "6a8edffa-cdd2-11e4-9df3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$z/UGBJBeXRZAZoLfN6b/MuOOGExuPUfCwk28XQuPMCXYhmGh0GKHO"], ["created_at", "2015-03-19 00:53:54.270889"], ["updated_at", "2015-03-19 00:53:54.270889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.274225"], ["updated_at", "2015-03-19 00:53:54.274225"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a91b270-cdd2-11e4-82e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a92325e-cdd2-11e4-8ea7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a91b270-cdd2-11e4-82e8-705681abff85"], ["organization_id", "6a92325e-cdd2-11e4-8ea7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:54.280290"], ["updated_at", "2015-03-19 00:53:54.280290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$wRtsT9JMR7ag/0WTiiOsxu576nynSQ4lP2pxKmudJFj6DyfD/QSma"], ["created_at", "2015-03-19 00:53:54.285077"], ["updated_at", "2015-03-19 00:53:54.285077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a93de60-cdd2-11e4-b3f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a92325e-cdd2-11e4-8ea7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6a93de60-cdd2-11e4-b3f0-705681abff85"], ["organization_id", "6a92325e-cdd2-11e4-8ea7-705681abff85"], ["created_at", "2015-03-19 00:53:54.288683"], ["updated_at", "2015-03-19 00:53:54.288683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$i6dJ9WVt452BXdFVGr9r4.zjF0LS2UNf3D7rr9d3SI4llX0G/bosC"], ["created_at", "2015-03-19 00:53:54.296591"], ["updated_at", "2015-03-19 00:53:54.296591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.299889"], ["updated_at", "2015-03-19 00:53:54.299889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a959be2-cdd2-11e4-8d6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a9617b6-cdd2-11e4-8776-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a959be2-cdd2-11e4-8d6e-705681abff85"], ["organization_id", "6a9617b6-cdd2-11e4-8776-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:54.303092"], ["updated_at", "2015-03-19 00:53:54.303092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$JVM5CYCQ5t6v0KNUN0HZfeD4DMjUPGvIZNPwpy9U/LXpjb7nSl7tK"], ["created_at", "2015-03-19 00:53:54.308242"], ["updated_at", "2015-03-19 00:53:54.308242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a975fc2-cdd2-11e4-babf-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a9617b6-cdd2-11e4-8776-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6a975fc2-cdd2-11e4-babf-705681abff85"], ["organization_id", "6a9617b6-cdd2-11e4-8776-705681abff85"], ["created_at", "2015-03-19 00:53:54.311591"], ["updated_at", "2015-03-19 00:53:54.311591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6a959be2-cdd2-11e4-8d6e-705681abff85' LIMIT 1 [["organization_id", "6a9617b6-cdd2-11e4-8776-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$d1prl1ixvl0CjgElQCcN3exTv4WbyXDOEV2uiVHyDMWBw5qKkKimm"], ["created_at", "2015-03-19 00:53:54.319083"], ["updated_at", "2015-03-19 00:53:54.319083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.323342"], ["updated_at", "2015-03-19 00:53:54.323342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a99122c-cdd2-11e4-92e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a99b344-cdd2-11e4-856e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a99122c-cdd2-11e4-92e9-705681abff85"], ["organization_id", "6a99b344-cdd2-11e4-856e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:54.329109"], ["updated_at", "2015-03-19 00:53:54.329109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$EbzMAHkw8An8SIz3.eKku.iBhF1nTJob3R6q6kvPuTsTvJWHlecc2"], ["created_at", "2015-03-19 00:53:54.334535"], ["updated_at", "2015-03-19 00:53:54.334535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a9b6482-cdd2-11e4-96d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a99b344-cdd2-11e4-856e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6a9b6482-cdd2-11e4-96d5-705681abff85"], ["organization_id", "6a99b344-cdd2-11e4-856e-705681abff85"], ["created_at", "2015-03-19 00:53:54.337999"], ["updated_at", "2015-03-19 00:53:54.337999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6a99122c-cdd2-11e4-92e9-705681abff85' LIMIT 1 [["organization_id", "6a99b344-cdd2-11e4-856e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$fRSsLrToW7Mk5p.VUxUeRe.yJXmjmTrHMh2.EOeBbgJvyH/.tDhiG"], ["created_at", "2015-03-19 00:53:54.346477"], ["updated_at", "2015-03-19 00:53:54.346477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.350201"], ["updated_at", "2015-03-19 00:53:54.350201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a9d3ef6-cdd2-11e4-b51d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6a9dc6d2-cdd2-11e4-af45-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a9d3ef6-cdd2-11e4-b51d-705681abff85"], ["organization_id", "6a9dc6d2-cdd2-11e4-af45-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:54.353545"], ["updated_at", "2015-03-19 00:53:54.353545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6a9d3ef6-cdd2-11e4-b51d-705681abff85' LIMIT 1 [["organization_id", "6a9dc6d2-cdd2-11e4-af45-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$u8uwfzqh61vs4NNF5/IlXu3mhL5x7.FDdF9.a0N0eaUqS.COfEd3i"], ["created_at", "2015-03-19 00:53:54.360874"], ["updated_at", "2015-03-19 00:53:54.360874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.366438"], ["updated_at", "2015-03-19 00:53:54.366438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a9f6938-cdd2-11e4-8d40-705681abff85' AND "clubhouse_memberships"."organization_id" = '6aa04038-cdd2-11e4-80d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a9f6938-cdd2-11e4-8d40-705681abff85"], ["organization_id", "6aa04038-cdd2-11e4-80d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:54.369658"], ["updated_at", "2015-03-19 00:53:54.369658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$SpO8uFzIoO/ONcJykQmZjO3XMOuGlnXbFkH9adGThMcDeDfKHY4py"], ["created_at", "2015-03-19 00:53:54.375537"], ["updated_at", "2015-03-19 00:53:54.375537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.379123"], ["updated_at", "2015-03-19 00:53:54.379123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6aa1a73e-cdd2-11e4-9f9e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6aa2300a-cdd2-11e4-9840-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6aa1a73e-cdd2-11e4-9f9e-705681abff85"], ["organization_id", "6aa2300a-cdd2-11e4-9840-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:54.382452"], ["updated_at", "2015-03-19 00:53:54.382452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6aa1a73e-cdd2-11e4-9f9e-705681abff85' LIMIT 1 [["organization_id", "6aa2300a-cdd2-11e4-9840-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$orAltUoFkQdniLJeX/XJgufkdnm4kjWNUNEj0wA57sfC2HB7TekKa"], ["created_at", "2015-03-19 00:53:54.389604"], ["updated_at", "2015-03-19 00:53:54.389604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.394220"], ["updated_at", "2015-03-19 00:53:54.394220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6aa3cd66-cdd2-11e4-8397-705681abff85' AND "clubhouse_memberships"."organization_id" = '6aa48328-cdd2-11e4-93df-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6aa3cd66-cdd2-11e4-8397-705681abff85"], ["organization_id", "6aa48328-cdd2-11e4-93df-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:53:54.397952"], ["updated_at", "2015-03-19 00:53:54.397952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6aa3cd66-cdd2-11e4-8397-705681abff85' LIMIT 1 [["organization_id", "6aa48328-cdd2-11e4-93df-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$4cT68tlL1W0QwsiSo/IUguoV0XB.NhfHx5AbquKkfkj8PeC2dBLja"], ["created_at", "2015-03-19 00:53:54.406062"], ["updated_at", "2015-03-19 00:53:54.406062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$snqRexM9FC4c6EaWq.RhfeH4Gqa2auR07an5pmfbS7RLW9nu.uOsS"], ["created_at", "2015-03-19 00:53:54.410463"], ["updated_at", "2015-03-19 00:53:54.410463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.413969"], ["updated_at", "2015-03-19 00:53:54.413969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6aa70094-cdd2-11e4-aaa2-705681abff85' AND "clubhouse_memberships"."organization_id" = '6aa7810e-cdd2-11e4-8e6f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6aa70094-cdd2-11e4-aaa2-705681abff85"], ["organization_id", "6aa7810e-cdd2-11e4-8e6f-705681abff85"], ["created_at", "2015-03-19 00:53:54.417592"], ["updated_at", "2015-03-19 00:53:54.417592"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6aa6500e-cdd2-11e4-b152-705681abff85' LIMIT 1 [["organization_id", "6aa7810e-cdd2-11e4-8e6f-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$RpN51ipyEEXK7yWjTl1imeZz6pLspiQUQFCvEFI36P0tqSWqyucr."], ["created_at", "2015-03-19 00:53:54.429818"], ["updated_at", "2015-03-19 00:53:54.429818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$UzaSE/0JKXp7UcZHokwTIe0gn7QEbGaf7PgOI7sY5Dh9UXKp.3wS6"], ["created_at", "2015-03-19 00:53:54.434710"], ["updated_at", "2015-03-19 00:53:54.434710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.439351"], ["updated_at", "2015-03-19 00:53:54.439351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6aaaadca-cdd2-11e4-8acf-705681abff85' AND "clubhouse_memberships"."organization_id" = '6aab6b34-cdd2-11e4-a512-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6aaaadca-cdd2-11e4-8acf-705681abff85"], ["organization_id", "6aab6b34-cdd2-11e4-a512-705681abff85"], ["created_at", "2015-03-19 00:53:54.443476"], ["updated_at", "2015-03-19 00:53:54.443476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Gg7JHzTcOLJXgT1voIivLOXfCIGjD7FQWI5CAoAawe.O4dRrZd9ZO"], ["created_at", "2015-03-19 00:53:54.450814"], ["updated_at", "2015-03-19 00:53:54.450814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$umd6z/D928AHOjZZUnGStOxgPCYmyTJy3eRFYRhjb7p7xR.DKvztm"], ["created_at", "2015-03-19 00:53:54.455159"], ["updated_at", "2015-03-19 00:53:54.455159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.458541"], ["updated_at", "2015-03-19 00:53:54.458541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6aadcadc-cdd2-11e4-8510-705681abff85' AND "clubhouse_memberships"."organization_id" = '6aae50b0-cdd2-11e4-ab38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6aadcadc-cdd2-11e4-8510-705681abff85"], ["organization_id", "6aae50b0-cdd2-11e4-ab38-705681abff85"], ["created_at", "2015-03-19 00:53:54.462021"], ["updated_at", "2015-03-19 00:53:54.462021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6aad21b8-cdd2-11e4-b030-705681abff85' LIMIT 1 [["organization_id", "6aae50b0-cdd2-11e4-ab38-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$1kZ4TiHUCkEUABrS621n.ej1A2mKxht8bK4BAQPtft4rbATUW7FHC"], ["created_at", "2015-03-19 00:53:54.468828"], ["updated_at", "2015-03-19 00:53:54.468828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$/sqqFoZEhXMvTawfUL0wveowKKeDmUZ0U87C4mx0zp0ig9nswyELO"], ["created_at", "2015-03-19 00:53:54.473010"], ["updated_at", "2015-03-19 00:53:54.473010"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.476264"], ["updated_at", "2015-03-19 00:53:54.476264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ab08218-cdd2-11e4-94a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ab101e8-cdd2-11e4-9edf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6ab08218-cdd2-11e4-94a4-705681abff85"], ["organization_id", "6ab101e8-cdd2-11e4-9edf-705681abff85"], ["created_at", "2015-03-19 00:53:54.479507"], ["updated_at", "2015-03-19 00:53:54.479507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6aafdfca-cdd2-11e4-be19-705681abff85' LIMIT 1 [["organization_id", "6ab101e8-cdd2-11e4-9edf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$Liz7HePmcaF0QXizi1bXZOmlcr4MDzO/SM4Z3MERMrTYwKZJ7B38."], ["created_at", "2015-03-19 00:53:54.487003"], ["updated_at", "2015-03-19 00:53:54.487003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.490099"], ["updated_at", "2015-03-19 00:53:54.490099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6ab2a7aa-cdd2-11e4-aea8-705681abff85' LIMIT 1 [["organization_id", "6ab326ee-cdd2-11e4-8232-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$YJZ06toq2x7EcfJ8d.dO8uLyprjs7w1l3b4lV.giCoObjBODnfmde"], ["created_at", "2015-03-19 00:53:54.498454"], ["updated_at", "2015-03-19 00:53:54.498454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.501817"], ["updated_at", "2015-03-19 00:53:54.501817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ab467fc-cdd2-11e4-8008-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ab4e88a-cdd2-11e4-8a4d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6ab467fc-cdd2-11e4-8008-705681abff85"], ["organization_id", "6ab4e88a-cdd2-11e4-8a4d-705681abff85"], ["created_at", "2015-03-19 00:53:54.505249"], ["updated_at", "2015-03-19 00:53:54.505249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6ab467fc-cdd2-11e4-8008-705681abff85' LIMIT 1 [["organization_id", "6ab4e88a-cdd2-11e4-8a4d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$QftB74dtEzKsRKr55HMjFOS397GdZGq8VDIaYfUGk9.xBPo4vgSca"], ["created_at", "2015-03-19 00:53:54.512144"], ["updated_at", "2015-03-19 00:53:54.512144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.515384"], ["updated_at", "2015-03-19 00:53:54.515384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ab67dbc-cdd2-11e4-a31e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ab6fb3e-cdd2-11e4-9263-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6ab67dbc-cdd2-11e4-a31e-705681abff85"], ["organization_id", "6ab6fb3e-cdd2-11e4-9263-705681abff85"], ["created_at", "2015-03-19 00:53:54.518814"], ["updated_at", "2015-03-19 00:53:54.518814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$k0ybZm/vfp7/MvodSwQzZeOzyTD5zqPs/wD6ctgSDyIzRX2qPnBM6"], ["created_at", "2015-03-19 00:53:54.524861"], ["updated_at", "2015-03-19 00:53:54.524861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.529338"], ["updated_at", "2015-03-19 00:53:54.529338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ab8727a-cdd2-11e4-849f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ab92288-cdd2-11e4-a5eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6ab8727a-cdd2-11e4-849f-705681abff85"], ["organization_id", "6ab92288-cdd2-11e4-a5eb-705681abff85"], ["created_at", "2015-03-19 00:53:54.533030"], ["updated_at", "2015-03-19 00:53:54.533030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6ab8727a-cdd2-11e4-849f-705681abff85' LIMIT 1 [["organization_id", "6ab92288-cdd2-11e4-a5eb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$fU68dxnfRI1cI9KNj8w1f.gtX/1L3tXFPMYBvm0dkB35DuFOX88zq"], ["created_at", "2015-03-19 00:53:54.540052"], ["updated_at", "2015-03-19 00:53:54.540052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (5.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.544132"], ["updated_at", "2015-03-19 00:53:54.544132"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ababe22-cdd2-11e4-a194-705681abff85' AND "clubhouse_memberships"."organization_id" = '6abb707e-cdd2-11e4-8bb5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6ababe22-cdd2-11e4-a194-705681abff85"], ["organization_id", "6abb707e-cdd2-11e4-8bb5-705681abff85"], ["created_at", "2015-03-19 00:53:54.553452"], ["updated_at", "2015-03-19 00:53:54.553452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6ababe22-cdd2-11e4-a194-705681abff85' LIMIT 1 [["organization_id", "6abb707e-cdd2-11e4-8bb5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$2A2FaykboyfNjxsMpZ0Cr.hcf23LZ.0M8L8xltZu15ZsJc4j6lWWC"], ["created_at", "2015-03-19 00:53:54.560933"], ["updated_at", "2015-03-19 00:53:54.560933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:53:54.564304"], ["updated_at", "2015-03-19 00:53:54.564304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6abdeffc-cdd2-11e4-8748-705681abff85' AND "clubhouse_memberships"."organization_id" = '6abe7288-cdd2-11e4-b3a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6abdeffc-cdd2-11e4-8748-705681abff85"], ["organization_id", "6abe7288-cdd2-11e4-b3a3-705681abff85"], ["created_at", "2015-03-19 00:53:54.567794"], ["updated_at", "2015-03-19 00:53:54.567794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6abdeffc-cdd2-11e4-8748-705681abff85' LIMIT 1 [["organization_id", "6abe7288-cdd2-11e4-b3a3-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$9j981wxEsmDTh7NfuyAFFub8.KVkfhPX8IbmdLkfm2TBKjvc0E66."], ["created_at", "2015-03-19 00:57:12.789327"], ["updated_at", "2015-03-19 00:57:12.789327"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:12.827322"], ["updated_at", "2015-03-19 00:57:12.827322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e0e91530-cdd2-11e4-9e22-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e0eb0f3e-cdd2-11e4-9ea4-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e0e91530-cdd2-11e4-9e22-705681abff85"], ["organization_id", "e0eb0f3e-cdd2-11e4-9ea4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:12.879133"], ["updated_at", "2015-03-19 00:57:12.879133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e0e91530-cdd2-11e4-9e22-705681abff85' LIMIT 1 [["organization_id", "e0eb0f3e-cdd2-11e4-9ea4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$pL8gH0JBw6hrAyYecffl4uA6FPgT6TAqBXelsZNWFf6/i0U1xXR76"], ["created_at", "2015-03-19 00:57:12.901353"], ["updated_at", "2015-03-19 00:57:12.901353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:12.904769"], ["updated_at", "2015-03-19 00:57:12.904769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e0f64b6a-cdd2-11e4-9e77-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e0f6cbe4-cdd2-11e4-890e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e0f64b6a-cdd2-11e4-9e77-705681abff85"], ["organization_id", "e0f6cbe4-cdd2-11e4-890e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:12.908046"], ["updated_at", "2015-03-19 00:57:12.908046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$k1YxuFvBMWBmNdtnB7qnhe.ngbMqUWIGbMdKHtjnA/nmY2AWMekwa"], ["created_at", "2015-03-19 00:57:12.912934"], ["updated_at", "2015-03-19 00:57:12.912934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e0f80c84-cdd2-11e4-bc10-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e0f6cbe4-cdd2-11e4-890e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e0f80c84-cdd2-11e4-bc10-705681abff85"], ["organization_id", "e0f6cbe4-cdd2-11e4-890e-705681abff85"], ["created_at", "2015-03-19 00:57:12.917753"], ["updated_at", "2015-03-19 00:57:12.917753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$fHy9lgkM4baoa4r20binU.V23qmAeqOZstrblH6OzxMZaFXV3Sh9a"], ["created_at", "2015-03-19 00:57:12.925595"], ["updated_at", "2015-03-19 00:57:12.925595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:12.929150"], ["updated_at", "2015-03-19 00:57:12.929150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e0f9ff8a-cdd2-11e4-8646-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e0fa88c4-cdd2-11e4-8699-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e0f9ff8a-cdd2-11e4-8646-705681abff85"], ["organization_id", "e0fa88c4-cdd2-11e4-8699-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:12.935019"], ["updated_at", "2015-03-19 00:57:12.935019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$hifw0dziZhkjig/AFIw0gui.vElfdq0PepsvJ3FqjOoHqrCuQHHB2"], ["created_at", "2015-03-19 00:57:12.941252"], ["updated_at", "2015-03-19 00:57:12.941252"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e0fc9808-cdd2-11e4-b9bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e0fa88c4-cdd2-11e4-8699-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e0fc9808-cdd2-11e4-b9bb-705681abff85"], ["organization_id", "e0fa88c4-cdd2-11e4-8699-705681abff85"], ["created_at", "2015-03-19 00:57:12.953118"], ["updated_at", "2015-03-19 00:57:12.953118"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e0f9ff8a-cdd2-11e4-8646-705681abff85' LIMIT 1 [["organization_id", "e0fa88c4-cdd2-11e4-8699-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$9hgU4.lLOhSaR2pcLZbdG.hRxudxcL1Ie9G68Y7izvkQRlqYW8dq6"], ["created_at", "2015-03-19 00:57:12.975291"], ["updated_at", "2015-03-19 00:57:12.975291"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:12.979853"], ["updated_at", "2015-03-19 00:57:12.979853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e10193d0-cdd2-11e4-9d98-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1024550-cdd2-11e4-9632-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e10193d0-cdd2-11e4-9d98-705681abff85"], ["organization_id", "e1024550-cdd2-11e4-9632-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:12.986226"], ["updated_at", "2015-03-19 00:57:12.986226"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$qfJzo9t0qE3Wx7jLwHdLxOpSx3QbC6bsSqfc0Na2l/ryqZ4JhodeK"], ["created_at", "2015-03-19 00:57:12.995607"], ["updated_at", "2015-03-19 00:57:12.995607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e104b722-cdd2-11e4-ba7e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1024550-cdd2-11e4-9632-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e104b722-cdd2-11e4-ba7e-705681abff85"], ["organization_id", "e1024550-cdd2-11e4-9632-705681abff85"], ["created_at", "2015-03-19 00:57:12.999533"], ["updated_at", "2015-03-19 00:57:12.999533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e10193d0-cdd2-11e4-9d98-705681abff85' LIMIT 1 [["organization_id", "e1024550-cdd2-11e4-9632-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$bBhRIWR/B5iDFDmCkmg4ZOvClNkh7wyiFSvLyWn.rKL130hqLW08S"], ["created_at", "2015-03-19 00:57:13.011877"], ["updated_at", "2015-03-19 00:57:13.011877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.019638"], ["updated_at", "2015-03-19 00:57:13.019638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1074866-cdd2-11e4-98f7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1085f3a-cdd2-11e4-8cc5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1074866-cdd2-11e4-98f7-705681abff85"], ["organization_id", "e1085f3a-cdd2-11e4-8cc5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:13.025581"], ["updated_at", "2015-03-19 00:57:13.025581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$iBs/9XZdGdkxsm/V5SNCZ.DBDXijrChdWvpAbyd0JMLsAMQaYOWZ."], ["created_at", "2015-03-19 00:57:13.037440"], ["updated_at", "2015-03-19 00:57:13.037440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e10b0ea6-cdd2-11e4-989b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1085f3a-cdd2-11e4-8cc5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e10b0ea6-cdd2-11e4-989b-705681abff85"], ["organization_id", "e1085f3a-cdd2-11e4-8cc5-705681abff85"], ["created_at", "2015-03-19 00:57:13.040992"], ["updated_at", "2015-03-19 00:57:13.040992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e1074866-cdd2-11e4-98f7-705681abff85' LIMIT 1 [["organization_id", "e1085f3a-cdd2-11e4-8cc5-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Uho1SJDaX63IImceKLrH3egz6MgQaXDxi2YqmagBn/rXpg3sctuZ6"], ["created_at", "2015-03-19 00:57:13.054069"], ["updated_at", "2015-03-19 00:57:13.054069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.057928"], ["updated_at", "2015-03-19 00:57:13.057928"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e10d991e-cdd2-11e4-b596-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e10e2f3c-cdd2-11e4-b9f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e10d991e-cdd2-11e4-b596-705681abff85"], ["organization_id", "e10e2f3c-cdd2-11e4-b9f0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:13.063767"], ["updated_at", "2015-03-19 00:57:13.063767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Iv9o3rzUsGcN8MWc6jFfD.qAr9dJPB8wdKg4.pZFGmzWdEIA1Kxfa"], ["created_at", "2015-03-19 00:57:13.069721"], ["updated_at", "2015-03-19 00:57:13.069721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.072915"], ["updated_at", "2015-03-19 00:57:13.072915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e10ff74a-cdd2-11e4-b8d8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e11072ec-cdd2-11e4-82d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e10ff74a-cdd2-11e4-b8d8-705681abff85"], ["organization_id", "e11072ec-cdd2-11e4-82d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:13.076183"], ["updated_at", "2015-03-19 00:57:13.076183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e10ff74a-cdd2-11e4-b8d8-705681abff85' LIMIT 1 [["organization_id", "e11072ec-cdd2-11e4-82d0-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$773pc4.s/o6DQcxGVVVGReK8goGxlmwrYS3zEaxQFQv.DxWuaaEVq"], ["created_at", "2015-03-19 00:57:13.084285"], ["updated_at", "2015-03-19 00:57:13.084285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.087701"], ["updated_at", "2015-03-19 00:57:13.087701"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e112367c-cdd2-11e4-ad6a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e112b930-cdd2-11e4-8e09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e112367c-cdd2-11e4-ad6a-705681abff85"], ["organization_id", "e112b930-cdd2-11e4-8e09-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:13.091970"], ["updated_at", "2015-03-19 00:57:13.091970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e112367c-cdd2-11e4-ad6a-705681abff85' LIMIT 1 [["organization_id", "e112b930-cdd2-11e4-8e09-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$msc2DZxXoQqLlCjHWCoz6epC1MZ6BnmwbB3I6MdR6d7Lc.R2Xxmk."], ["created_at", "2015-03-19 00:57:13.100130"], ["updated_at", "2015-03-19 00:57:13.100130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.103817"], ["updated_at", "2015-03-19 00:57:13.103817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1149f48-cdd2-11e4-a383-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e1152d64-cdd2-11e4-a2d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e1149f48-cdd2-11e4-a383-705681abff85"], ["organization_id", "e1152d64-cdd2-11e4-a2d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:13.107281"], ["updated_at", "2015-03-19 00:57:13.107281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e1149f48-cdd2-11e4-a383-705681abff85' LIMIT 1 [["organization_id", "e1152d64-cdd2-11e4-a2d0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$4skdwIVp30bm.e839WhoKO3Im2n3dCNtQEIDJa3S22R/X33h3Zcu2"], ["created_at", "2015-03-19 00:57:13.114278"], ["updated_at", "2015-03-19 00:57:13.114278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$GOTZ5rbtwtRD0kIRon2BU.pFU23Vq3FHXWmPbuf76cTQa2GGvaXOq"], ["created_at", "2015-03-19 00:57:13.118392"], ["updated_at", "2015-03-19 00:57:13.118392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.121522"], ["updated_at", "2015-03-19 00:57:13.121522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e11761f6-cdd2-11e4-b52f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e117deb0-cdd2-11e4-9318-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e11761f6-cdd2-11e4-b52f-705681abff85"], ["organization_id", "e117deb0-cdd2-11e4-9318-705681abff85"], ["created_at", "2015-03-19 00:57:13.124735"], ["updated_at", "2015-03-19 00:57:13.124735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$ebQ21ZBghUSZFno6BklJtuGLHTy9nYQaCPFaSd/cnjqujY/7GO.Bi"], ["created_at", "2015-03-19 00:57:13.131422"], ["updated_at", "2015-03-19 00:57:13.131422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$b816Bg8kQ.CfOpWm5rc46Or4KV5shlIdYbn.VY404o1g1YrsLUXNy"], ["created_at", "2015-03-19 00:57:13.135877"], ["updated_at", "2015-03-19 00:57:13.135877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.139342"], ["updated_at", "2015-03-19 00:57:13.139342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e11a0ece-cdd2-11e4-ae71-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e11aa1f4-cdd2-11e4-827a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e11a0ece-cdd2-11e4-ae71-705681abff85"], ["organization_id", "e11aa1f4-cdd2-11e4-827a-705681abff85"], ["created_at", "2015-03-19 00:57:13.143111"], ["updated_at", "2015-03-19 00:57:13.143111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e119641a-cdd2-11e4-a1b6-705681abff85' LIMIT 1 [["organization_id", "e11aa1f4-cdd2-11e4-827a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$hbIcGByO9AisAWzjefBFCupU8gFZrVFMyhZ9n8ecuS0BrjstersvK"], ["created_at", "2015-03-19 00:57:13.150095"], ["updated_at", "2015-03-19 00:57:13.150095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$bsMUMbofswJnoJ5Xhhz.UeS0XHTqcxizPo1a.D4M0EpnlxreTpv46"], ["created_at", "2015-03-19 00:57:13.154517"], ["updated_at", "2015-03-19 00:57:13.154517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.157794"], ["updated_at", "2015-03-19 00:57:13.157794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e11ceb8a-cdd2-11e4-93ba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e11d6880-cdd2-11e4-befb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e11ceb8a-cdd2-11e4-93ba-705681abff85"], ["organization_id", "e11d6880-cdd2-11e4-befb-705681abff85"], ["created_at", "2015-03-19 00:57:13.160990"], ["updated_at", "2015-03-19 00:57:13.160990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e11c3b40-cdd2-11e4-a489-705681abff85' LIMIT 1 [["organization_id", "e11d6880-cdd2-11e4-befb-705681abff85"]]  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ynYz3LldHWIsDIeQoOWOUuJsZumDVI1X7vcJrgV/cOoHi/h5djhWS"], ["created_at", "2015-03-19 00:57:13.170620"], ["updated_at", "2015-03-19 00:57:13.170620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$dQqJd12Rq/Bn.UeIT3virOP3Q8lsUDc1lSH2DUXkTOmf9CpJRqBdC"], ["created_at", "2015-03-19 00:57:13.175582"], ["updated_at", "2015-03-19 00:57:13.175582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.178751"], ["updated_at", "2015-03-19 00:57:13.178751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1201de6-cdd2-11e4-8922-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e12099ba-cdd2-11e4-9eb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1201de6-cdd2-11e4-8922-705681abff85"], ["organization_id", "e12099ba-cdd2-11e4-9eb1-705681abff85"], ["created_at", "2015-03-19 00:57:13.182339"], ["updated_at", "2015-03-19 00:57:13.182339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e11f74cc-cdd2-11e4-9e5a-705681abff85' LIMIT 1 [["organization_id", "e12099ba-cdd2-11e4-9eb1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$EbMeOZ8iRpMPsZODezBK6uj3gZXScLqSChIQPn2VYEbjpfbRnI7Cm"], ["created_at", "2015-03-19 00:57:13.190011"], ["updated_at", "2015-03-19 00:57:13.190011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.195006"], ["updated_at", "2015-03-19 00:57:13.195006"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e1225cbe-cdd2-11e4-8edb-705681abff85' LIMIT 1 [["organization_id", "e1232112-cdd2-11e4-a68e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$99C3xpsiggqhNcqpAdha8ukKpzCX8aOWifbDCSkVFuZNob3SePcR2"], ["created_at", "2015-03-19 00:57:13.202835"], ["updated_at", "2015-03-19 00:57:13.202835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.206157"], ["updated_at", "2015-03-19 00:57:13.206157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1244952-cdd2-11e4-8d04-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e124c896-cdd2-11e4-97af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1244952-cdd2-11e4-8d04-705681abff85"], ["organization_id", "e124c896-cdd2-11e4-97af-705681abff85"], ["created_at", "2015-03-19 00:57:13.209526"], ["updated_at", "2015-03-19 00:57:13.209526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$9vGCeD7uIYZnC9vB2i.0BOM/FydN60IGq384PiT2BFDmU1TNQKn8G"], ["created_at", "2015-03-19 00:57:13.215282"], ["updated_at", "2015-03-19 00:57:13.215282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.218805"], ["updated_at", "2015-03-19 00:57:13.218805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1262ff6-cdd2-11e4-8b15-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e126baa2-cdd2-11e4-8c73-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1262ff6-cdd2-11e4-8b15-705681abff85"], ["organization_id", "e126baa2-cdd2-11e4-8c73-705681abff85"], ["created_at", "2015-03-19 00:57:13.222381"], ["updated_at", "2015-03-19 00:57:13.222381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e1262ff6-cdd2-11e4-8b15-705681abff85' LIMIT 1 [["organization_id", "e126baa2-cdd2-11e4-8c73-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$jVyEriAMArgwY3VO6TAJe.teLZLkSUikFy3TLhfSmvJufgJxaxdme"], ["created_at", "2015-03-19 00:57:13.229791"], ["updated_at", "2015-03-19 00:57:13.229791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.233510"], ["updated_at", "2015-03-19 00:57:13.233510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e12867c6-cdd2-11e4-a343-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e128f894-cdd2-11e4-8209-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e12867c6-cdd2-11e4-a343-705681abff85"], ["organization_id", "e128f894-cdd2-11e4-8209-705681abff85"], ["created_at", "2015-03-19 00:57:13.236932"], ["updated_at", "2015-03-19 00:57:13.236932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e12867c6-cdd2-11e4-a343-705681abff85' LIMIT 1 [["organization_id", "e128f894-cdd2-11e4-8209-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$Hbale/wghX2vl0hpSuJ6kusJlxZvQwFw1ZKIkL1LwMGxUcGSjAPsC"], ["created_at", "2015-03-19 00:57:13.249741"], ["updated_at", "2015-03-19 00:57:13.249741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.254126"], ["updated_at", "2015-03-19 00:57:13.254126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e12b83a2-cdd2-11e4-92b3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e12c1c18-cdd2-11e4-946c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e12b83a2-cdd2-11e4-92b3-705681abff85"], ["organization_id", "e12c1c18-cdd2-11e4-946c-705681abff85"], ["created_at", "2015-03-19 00:57:13.257529"], ["updated_at", "2015-03-19 00:57:13.257529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e12b83a2-cdd2-11e4-92b3-705681abff85' LIMIT 1 [["organization_id", "e12c1c18-cdd2-11e4-946c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$nLdbnVAzuZMtDlw64npyLerbQZ75edL6VnAtOlfsVsujU2GWIWVPy"], ["created_at", "2015-03-19 00:57:13.264627"], ["updated_at", "2015-03-19 00:57:13.264627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:13.268080"], ["updated_at", "2015-03-19 00:57:13.268080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e12dbaaa-cdd2-11e4-9117-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e12e3c64-cdd2-11e4-8a4d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e12dbaaa-cdd2-11e4-9117-705681abff85"], ["organization_id", "e12e3c64-cdd2-11e4-8a4d-705681abff85"], ["created_at", "2015-03-19 00:57:13.271426"], ["updated_at", "2015-03-19 00:57:13.271426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e12dbaaa-cdd2-11e4-9117-705681abff85' LIMIT 1 [["organization_id", "e12e3c64-cdd2-11e4-8a4d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ZtXbnp7tg.QJn07KBPp7yuFdiR97O4Qdl3cAHE0U77A/AI68mYSP."], ["created_at", "2015-03-19 00:57:21.047527"], ["updated_at", "2015-03-19 00:57:21.047527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$MDiHdzi6IdRKL/17ZMEQ7ej/0nRM6wFL3Bvdkghp9sam7hgCjh4iG"], ["created_at", "2015-03-19 00:57:21.107531"], ["updated_at", "2015-03-19 00:57:21.107531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.115963"], ["updated_at", "2015-03-19 00:57:21.115963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5da758e-cdd2-11e4-b3c8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5dbc11e-cdd2-11e4-a1ff-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5da758e-cdd2-11e4-b3c8-705681abff85"], ["organization_id", "e5dbc11e-cdd2-11e4-a1ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:21.128140"], ["updated_at", "2015-03-19 00:57:21.128140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$J8ta3MpTaE2aqfwqray8VeR.VdrcDKNL8Dv9oYoykKpuTTxNqoWEC"], ["created_at", "2015-03-19 00:57:21.135482"], ["updated_at", "2015-03-19 00:57:21.135482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.139947"], ["updated_at", "2015-03-19 00:57:21.139947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5dec602-cdd2-11e4-a651-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5df6878-cdd2-11e4-a167-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5dec602-cdd2-11e4-a651-705681abff85"], ["organization_id", "e5df6878-cdd2-11e4-a167-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:21.143647"], ["updated_at", "2015-03-19 00:57:21.143647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e5dec602-cdd2-11e4-a651-705681abff85' LIMIT 1 [["organization_id", "e5df6878-cdd2-11e4-a167-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$qyah6vJknIoGqWO2eziU3uazpugWmETKwy1nlKiNOPalS/.7dEvFa"], ["created_at", "2015-03-19 00:57:21.160540"], ["updated_at", "2015-03-19 00:57:21.160540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.164189"], ["updated_at", "2015-03-19 00:57:21.164189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5e28fc6-cdd2-11e4-af02-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5e31536-cdd2-11e4-8700-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5e28fc6-cdd2-11e4-af02-705681abff85"], ["organization_id", "e5e31536-cdd2-11e4-8700-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:21.167492"], ["updated_at", "2015-03-19 00:57:21.167492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$S1ct/MtD6NFvNWnrc/4ZSOLHpaN7c2JFGgh.JxWMeju9DdiDWAcHW"], ["created_at", "2015-03-19 00:57:21.173475"], ["updated_at", "2015-03-19 00:57:21.173475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.176823"], ["updated_at", "2015-03-19 00:57:21.176823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5e48538-cdd2-11e4-866e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5e502a6-cdd2-11e4-8aa9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5e48538-cdd2-11e4-866e-705681abff85"], ["organization_id", "e5e502a6-cdd2-11e4-8aa9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:21.180313"], ["updated_at", "2015-03-19 00:57:21.180313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e5e48538-cdd2-11e4-866e-705681abff85' LIMIT 1 [["organization_id", "e5e502a6-cdd2-11e4-8aa9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$sDsNCRU.b9kcWRdO7RdJxu69q/XBZ4uKIjaq1krRshjOXUn.79bxm"], ["created_at", "2015-03-19 00:57:21.187969"], ["updated_at", "2015-03-19 00:57:21.187969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.191603"], ["updated_at", "2015-03-19 00:57:21.191603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5e6b754-cdd2-11e4-bed4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5e75722-cdd2-11e4-a689-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5e6b754-cdd2-11e4-bed4-705681abff85"], ["organization_id", "e5e75722-cdd2-11e4-a689-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:57:21.195603"], ["updated_at", "2015-03-19 00:57:21.195603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e5e6b754-cdd2-11e4-bed4-705681abff85' LIMIT 1 [["organization_id", "e5e75722-cdd2-11e4-a689-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Nybc8mssxyMRgGqFzA4Df.eKzOx4EuFogj1Mn.rjPRyDzthivERJa"], ["created_at", "2015-03-19 00:57:21.203262"], ["updated_at", "2015-03-19 00:57:21.203262"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.208583"], ["updated_at", "2015-03-19 00:57:21.208583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5e90d06-cdd2-11e4-b750-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5e9ddc6-cdd2-11e4-b48f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5e90d06-cdd2-11e4-b750-705681abff85"], ["organization_id", "e5e9ddc6-cdd2-11e4-b48f-705681abff85"], ["created_at", "2015-03-19 00:57:21.211796"], ["updated_at", "2015-03-19 00:57:21.211796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$riedeEzSNzxfJXhr9Rm3EOgpBXmCfel06waawYUDJonlZZqrCsIt."], ["created_at", "2015-03-19 00:57:21.217757"], ["updated_at", "2015-03-19 00:57:21.217757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.220895"], ["updated_at", "2015-03-19 00:57:21.220895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5eb41de-cdd2-11e4-ac6b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5ebbb0a-cdd2-11e4-aeda-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5eb41de-cdd2-11e4-ac6b-705681abff85"], ["organization_id", "e5ebbb0a-cdd2-11e4-aeda-705681abff85"], ["created_at", "2015-03-19 00:57:21.224573"], ["updated_at", "2015-03-19 00:57:21.224573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e5eb41de-cdd2-11e4-ac6b-705681abff85' LIMIT 1 [["organization_id", "e5ebbb0a-cdd2-11e4-aeda-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$55l68WRH6D99t7mkgWa0ueG3uYwcAYhRK64d.FE5EPJodp8aMnvfW"], ["created_at", "2015-03-19 00:57:21.231971"], ["updated_at", "2015-03-19 00:57:21.231971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.235650"], ["updated_at", "2015-03-19 00:57:21.235650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5ed7058-cdd2-11e4-bfb3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5ee064e-cdd2-11e4-8950-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5ed7058-cdd2-11e4-bfb3-705681abff85"], ["organization_id", "e5ee064e-cdd2-11e4-8950-705681abff85"], ["created_at", "2015-03-19 00:57:21.239496"], ["updated_at", "2015-03-19 00:57:21.239496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$1.KWzEXyVn09pOHjIqFZ2OQOI8bZshowOz8wpoUNa2EK4YNjtNbiS"], ["created_at", "2015-03-19 00:57:21.245123"], ["updated_at", "2015-03-19 00:57:21.245123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.248429"], ["updated_at", "2015-03-19 00:57:21.248429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5ef6eb2-cdd2-11e4-b645-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5efee82-cdd2-11e4-b5d4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5ef6eb2-cdd2-11e4-b645-705681abff85"], ["organization_id", "e5efee82-cdd2-11e4-b5d4-705681abff85"], ["created_at", "2015-03-19 00:57:21.251610"], ["updated_at", "2015-03-19 00:57:21.251610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e5ef6eb2-cdd2-11e4-b645-705681abff85' LIMIT 1 [["organization_id", "e5efee82-cdd2-11e4-b5d4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$u28/bKtQ.YU2nX8zJoaLUOXRtcOwrr4Wffx0MZNE8PxoMk7uXp13K"], ["created_at", "2015-03-19 00:57:21.259144"], ["updated_at", "2015-03-19 00:57:21.259144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.262995"], ["updated_at", "2015-03-19 00:57:21.262995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5f193d6-cdd2-11e4-b7f0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e5f23110-cdd2-11e4-9865-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5f193d6-cdd2-11e4-b7f0-705681abff85"], ["organization_id", "e5f23110-cdd2-11e4-9865-705681abff85"], ["created_at", "2015-03-19 00:57:21.266474"], ["updated_at", "2015-03-19 00:57:21.266474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e5f193d6-cdd2-11e4-b7f0-705681abff85' LIMIT 1 [["organization_id", "e5f23110-cdd2-11e4-9865-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$nstdG1XgXb6zs/tEylgye.0R7RT46t33sVYX/gTYK4UFL20I/mbNa"], ["created_at", "2015-03-19 00:57:21.274277"], ["updated_at", "2015-03-19 00:57:21.274277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.278235"], ["updated_at", "2015-03-19 00:57:21.278235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$z.vLFzXlMGUtE3dZJBGtv.tmyTnyoiTzosHYoHJa1ZJ/bL5mlRMhm"], ["created_at", "2015-03-19 00:57:21.284464"], ["updated_at", "2015-03-19 00:57:21.284464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.287670"], ["updated_at", "2015-03-19 00:57:21.287670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e5f572d0-cdd2-11e4-8c0e-705681abff85' LIMIT 1 [["organization_id", "e5f5ed82-cdd2-11e4-9406-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$QvYfXQFKoDIDdfdzcHdPE.gb94gMG5Kksma4eG5z28gsrbX3zDdRW"], ["created_at", "2015-03-19 00:57:21.294599"], ["updated_at", "2015-03-19 00:57:21.294599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.299871"], ["updated_at", "2015-03-19 00:57:21.299871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$qGNX1RHG7.U1kKUEkDbV5uzHAXN7jlmNUzeLPc13hZntGH5d9bRea"], ["created_at", "2015-03-19 00:57:21.305530"], ["updated_at", "2015-03-19 00:57:21.305530"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.309243"], ["updated_at", "2015-03-19 00:57:21.309243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e5f8a63a-cdd2-11e4-9662-705681abff85' LIMIT 1 [["organization_id", "e5f937e4-cdd2-11e4-b239-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$rVhXcGtSRMIBcAD7G.V2iuLiIoyBR5vY8GFWajmiqSXwU6Sir/RCq"], ["created_at", "2015-03-19 00:57:21.316991"], ["updated_at", "2015-03-19 00:57:21.316991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:57:21.320822"], ["updated_at", "2015-03-19 00:57:21.320822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e5fa730c-cdd2-11e4-81d0-705681abff85' LIMIT 1 [["organization_id", "e5fb03d0-cdd2-11e4-bbf3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$X9i9h49h0WGfV5np0rUSYu/0qs3rOZR3/8N2RJbzjx5MSOUWkbEnK"], ["created_at", "2015-03-19 00:59:38.827060"], ["updated_at", "2015-03-19 00:59:38.827060"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$kh8V4HW2I32fhRzfHxzvfO8dGvV.G/pBrRN5nS4oeyAe/oHXwyy7K"], ["created_at", "2015-03-19 00:59:38.904909"], ["updated_at", "2015-03-19 00:59:38.904909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (6.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:38.912220"], ["updated_at", "2015-03-19 00:59:38.912220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37fca986-cdd3-11e4-bd4a-705681abff85' AND "clubhouse_memberships"."organization_id" = '37fdd22a-cdd3-11e4-8690-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37fca986-cdd3-11e4-bd4a-705681abff85"], ["organization_id", "37fdd22a-cdd3-11e4-8690-705681abff85"], ["created_at", "2015-03-19 00:59:38.932358"], ["updated_at", "2015-03-19 00:59:38.932358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '37fca986-cdd3-11e4-bd4a-705681abff85' LIMIT 1 [["organization_id", "37fdd22a-cdd3-11e4-8690-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$BNANfjJEyNwbMkD69Ss8Bu5UPnm85tjMzocNaADFzUAs/BvSQhjhO"], ["created_at", "2015-03-19 00:59:38.947732"], ["updated_at", "2015-03-19 00:59:38.947732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:38.951040"], ["updated_at", "2015-03-19 00:59:38.951040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38033206-cdd3-11e4-abf0-705681abff85' AND "clubhouse_memberships"."organization_id" = '3803b1ea-cdd3-11e4-a799-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38033206-cdd3-11e4-abf0-705681abff85"], ["organization_id", "3803b1ea-cdd3-11e4-a799-705681abff85"], ["created_at", "2015-03-19 00:59:38.954333"], ["updated_at", "2015-03-19 00:59:38.954333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$3l.7dWCuI2ymCmS//wv/p.1e9cL2wwEAOB6MSwT3bgQOwCs2OEqPm"], ["created_at", "2015-03-19 00:59:38.960006"], ["updated_at", "2015-03-19 00:59:38.960006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:38.963099"], ["updated_at", "2015-03-19 00:59:38.963099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38050fb8-cdd3-11e4-801f-705681abff85' AND "clubhouse_memberships"."organization_id" = '38058902-cdd3-11e4-af2d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38050fb8-cdd3-11e4-801f-705681abff85"], ["organization_id", "38058902-cdd3-11e4-af2d-705681abff85"], ["created_at", "2015-03-19 00:59:38.970681"], ["updated_at", "2015-03-19 00:59:38.970681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38050fb8-cdd3-11e4-801f-705681abff85' LIMIT 1 [["organization_id", "38058902-cdd3-11e4-af2d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$T1O.LnRJH7x0MMzrb4zDhO/J0Lu2pkok1XZq44kQxzRhQOKTZRuN2"], ["created_at", "2015-03-19 00:59:38.977776"], ["updated_at", "2015-03-19 00:59:38.977776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:38.981399"], ["updated_at", "2015-03-19 00:59:38.981399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3807c7bc-cdd3-11e4-98b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '380852e0-cdd3-11e4-b3ed-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3807c7bc-cdd3-11e4-98b3-705681abff85"], ["organization_id", "380852e0-cdd3-11e4-b3ed-705681abff85"], ["created_at", "2015-03-19 00:59:38.984555"], ["updated_at", "2015-03-19 00:59:38.984555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3807c7bc-cdd3-11e4-98b3-705681abff85' LIMIT 1 [["organization_id", "380852e0-cdd3-11e4-b3ed-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$myDxLzyziLzK9C6sDBO/Ye0nyxmCMp0.HdNvIEoN9UgneOYYLzZzy"], ["created_at", "2015-03-19 00:59:38.992154"], ["updated_at", "2015-03-19 00:59:38.992154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:38.995374"], ["updated_at", "2015-03-19 00:59:38.995374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3809f87a-cdd3-11e4-b273-705681abff85' AND "clubhouse_memberships"."organization_id" = '380a73b8-cdd3-11e4-a5af-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3809f87a-cdd3-11e4-b273-705681abff85"], ["organization_id", "380a73b8-cdd3-11e4-a5af-705681abff85"], ["created_at", "2015-03-19 00:59:38.998441"], ["updated_at", "2015-03-19 00:59:38.998441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$1YGKZ1eYtRvHSTJzOPLcCOrt9ACnFbfWnF/wE107S/hgUCC7e0Tbu"], ["created_at", "2015-03-19 00:59:39.004816"], ["updated_at", "2015-03-19 00:59:39.004816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:39.007879"], ["updated_at", "2015-03-19 00:59:39.007879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '380be504-cdd3-11e4-91a1-705681abff85' LIMIT 1 [["organization_id", "380c5bce-cdd3-11e4-b670-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$hcrXzyeWvDk74GpN9uppM.58wSC2PC1La3von1ro/M7G9FXzWCkom"], ["created_at", "2015-03-19 00:59:39.014692"], ["updated_at", "2015-03-19 00:59:39.014692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:39.018544"], ["updated_at", "2015-03-19 00:59:39.018544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$9Z8KameGYXzYzkN5Lm0vUOaN9L8Iyh1BuNo2IDsWZLTxQVZz/.dae"], ["created_at", "2015-03-19 00:59:39.024860"], ["updated_at", "2015-03-19 00:59:39.024860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:39.028545"], ["updated_at", "2015-03-19 00:59:39.028545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '380f01c6-cdd3-11e4-916c-705681abff85' LIMIT 1 [["organization_id", "380f8600-cdd3-11e4-9b4d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$8rQ0Onw69zx3OGoSHVpeReDfhVbF/efpuL6dDbHs86yu0UMViHNsy"], ["created_at", "2015-03-19 00:59:39.035407"], ["updated_at", "2015-03-19 00:59:39.035407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:39.038587"], ["updated_at", "2015-03-19 00:59:39.038587"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38109054-cdd3-11e4-9117-705681abff85' LIMIT 1 [["organization_id", "38110b2e-cdd3-11e4-bcc5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$NJS5PyqIOpHMBOJXMnS6t.aJaRn1LtY5BQLUFMQeDn3/AFP.iZ2Te"], ["created_at", "2015-03-19 00:59:39.045350"], ["updated_at", "2015-03-19 00:59:39.045350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:39.048377"], ["updated_at", "2015-03-19 00:59:39.048377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$cjtkLvaV9Ftrkhd8/DfJm.xy6IdYWxFJZSN6UykPcJqIYKevqvMay"], ["created_at", "2015-03-19 00:59:39.054202"], ["updated_at", "2015-03-19 00:59:39.054202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:39.057405"], ["updated_at", "2015-03-19 00:59:39.057405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38136e00-cdd3-11e4-8ad7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3813eb00-cdd3-11e4-a8e5-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38136e00-cdd3-11e4-8ad7-705681abff85"], ["organization_id", "3813eb00-cdd3-11e4-a8e5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:59:39.060812"], ["updated_at", "2015-03-19 00:59:39.060812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '38136e00-cdd3-11e4-8ad7-705681abff85' LIMIT 1 [["organization_id", "3813eb00-cdd3-11e4-a8e5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$kLNTzKr2Qo05.xZEa6f/r.MvGw6TuP.ShJDqBxjjCDM4YvSIfR.EG"], ["created_at", "2015-03-19 00:59:39.071337"], ["updated_at", "2015-03-19 00:59:39.071337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:39.074572"], ["updated_at", "2015-03-19 00:59:39.074572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38160c8c-cdd3-11e4-9da6-705681abff85' AND "clubhouse_memberships"."organization_id" = '38168d56-cdd3-11e4-82ad-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38160c8c-cdd3-11e4-9da6-705681abff85"], ["organization_id", "38168d56-cdd3-11e4-82ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:59:39.078216"], ["updated_at", "2015-03-19 00:59:39.078216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$LN3mjx86evTH6ENgLeydN.Lzh3J4yTimeh65eF/lwAJ5f3HbA3FDO"], ["created_at", "2015-03-19 00:59:39.084338"], ["updated_at", "2015-03-19 00:59:39.084338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:39.088602"], ["updated_at", "2015-03-19 00:59:39.088602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38180abe-cdd3-11e4-8fce-705681abff85' AND "clubhouse_memberships"."organization_id" = '3818aeba-cdd3-11e4-aa3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38180abe-cdd3-11e4-8fce-705681abff85"], ["organization_id", "3818aeba-cdd3-11e4-aa3a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:59:39.091958"], ["updated_at", "2015-03-19 00:59:39.091958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38180abe-cdd3-11e4-8fce-705681abff85' LIMIT 1 [["organization_id", "3818aeba-cdd3-11e4-aa3a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$6xTPM1Rrinh/1K4zYFLF4eOwq5/yhbiG12RasUYaNUwLzbrsgo8GG"], ["created_at", "2015-03-19 00:59:39.098868"], ["updated_at", "2015-03-19 00:59:39.098868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:39.102031"], ["updated_at", "2015-03-19 00:59:39.102031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '381a3f32-cdd3-11e4-b74b-705681abff85' AND "clubhouse_memberships"."organization_id" = '381abffc-cdd3-11e4-9e99-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "381a3f32-cdd3-11e4-b74b-705681abff85"], ["organization_id", "381abffc-cdd3-11e4-9e99-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:59:39.105858"], ["updated_at", "2015-03-19 00:59:39.105858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '381a3f32-cdd3-11e4-b74b-705681abff85' LIMIT 1 [["organization_id", "381abffc-cdd3-11e4-9e99-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$qcjIHLkuhBgL7HZe1kfrseAWVXdy8OeCn/h.Dj4uOjlphcbiCiJIa"], ["created_at", "2015-03-19 00:59:39.112846"], ["updated_at", "2015-03-19 00:59:39.112846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 00:59:39.115870"], ["updated_at", "2015-03-19 00:59:39.115870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '381c6168-cdd3-11e4-a897-705681abff85' AND "clubhouse_memberships"."organization_id" = '381cd59e-cdd3-11e4-915b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "381c6168-cdd3-11e4-a897-705681abff85"], ["organization_id", "381cd59e-cdd3-11e4-915b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 00:59:39.119405"], ["updated_at", "2015-03-19 00:59:39.119405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (21.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$cX.VNspMRMcjMEasjMQ6r.NjcwdIbXMgPA1eDv4JdXTarLKlB5nEK"], ["created_at", "2015-03-19 01:02:48.568619"], ["updated_at", "2015-03-19 01:02:48.568619"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.645757"], ["updated_at", "2015-03-19 01:02:48.645757"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a90c455a-cdd3-11e4-b2b1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9150532-cdd3-11e4-9ac0-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a90c455a-cdd3-11e4-b2b1-705681abff85"], ["organization_id", "a9150532-cdd3-11e4-9ac0-705681abff85"], ["created_at", "2015-03-19 01:02:48.693082"], ["updated_at", "2015-03-19 01:02:48.693082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a90c455a-cdd3-11e4-b2b1-705681abff85' LIMIT 1 [["organization_id", "a9150532-cdd3-11e4-9ac0-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$/OLgM.TQOjhDt.Ce5CFa/Oy5Ad9JqFpS/lgYdjMo4aXL/WXTnUL.C"], ["created_at", "2015-03-19 01:02:48.743365"], ["updated_at", "2015-03-19 01:02:48.743365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.747579"], ["updated_at", "2015-03-19 01:02:48.747579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a923cfd6-cdd3-11e4-8f8b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a92459b0-cdd3-11e4-8765-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a923cfd6-cdd3-11e4-8f8b-705681abff85"], ["organization_id", "a92459b0-cdd3-11e4-8765-705681abff85"], ["created_at", "2015-03-19 01:02:48.751059"], ["updated_at", "2015-03-19 01:02:48.751059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$tdyWeRpmPfOIkqTqUE1x6uNHSz5rKYmpj06CH.Npk94RexImW3Du."], ["created_at", "2015-03-19 01:02:48.757205"], ["updated_at", "2015-03-19 01:02:48.757205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.760282"], ["updated_at", "2015-03-19 01:02:48.760282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a925d15a-cdd3-11e4-a197-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a92645ae-cdd3-11e4-adf1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a925d15a-cdd3-11e4-a197-705681abff85"], ["organization_id", "a92645ae-cdd3-11e4-adf1-705681abff85"], ["created_at", "2015-03-19 01:02:48.763759"], ["updated_at", "2015-03-19 01:02:48.763759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a925d15a-cdd3-11e4-a197-705681abff85' LIMIT 1 [["organization_id", "a92645ae-cdd3-11e4-adf1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$uY3zsve.szZk7SaCw0iV9u5i1J/so4KwDsZ7XLCn3vhDtSGt3Xwc."], ["created_at", "2015-03-19 01:02:48.771016"], ["updated_at", "2015-03-19 01:02:48.771016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.775887"], ["updated_at", "2015-03-19 01:02:48.775887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a927ec92-cdd3-11e4-b4d8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a928b14a-cdd3-11e4-a85e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a927ec92-cdd3-11e4-b4d8-705681abff85"], ["organization_id", "a928b14a-cdd3-11e4-a85e-705681abff85"], ["created_at", "2015-03-19 01:02:48.779743"], ["updated_at", "2015-03-19 01:02:48.779743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a927ec92-cdd3-11e4-b4d8-705681abff85' LIMIT 1 [["organization_id", "a928b14a-cdd3-11e4-a85e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Y4aoFiWZlPjhInOFu3TOLerkzOEcKaoFzVPslXezttO6VNy7PkKQe"], ["created_at", "2015-03-19 01:02:48.787570"], ["updated_at", "2015-03-19 01:02:48.787570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.790944"], ["updated_at", "2015-03-19 01:02:48.790944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a92a773c-cdd3-11e4-a44f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a92af400-cdd3-11e4-bfd1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a92a773c-cdd3-11e4-a44f-705681abff85"], ["organization_id", "a92af400-cdd3-11e4-bfd1-705681abff85"], ["created_at", "2015-03-19 01:02:48.794156"], ["updated_at", "2015-03-19 01:02:48.794156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$5MBCFGKnn8O5et8rzc1k1.h2DWQ7.Ls/zfNyAdH7Qmz9wMAmvSdWe"], ["created_at", "2015-03-19 01:02:48.800237"], ["updated_at", "2015-03-19 01:02:48.800237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.803474"], ["updated_at", "2015-03-19 01:02:48.803474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a92c624a-cdd3-11e4-8065-705681abff85' LIMIT 1 [["organization_id", "a92ce012-cdd3-11e4-9fcc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$GYh9/v6GRVXGeFqz8b1A2OHF5rXEP4sOAwMG.zKhN5yNgJi4Zb6Qe"], ["created_at", "2015-03-19 01:02:48.810055"], ["updated_at", "2015-03-19 01:02:48.810055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.813266"], ["updated_at", "2015-03-19 01:02:48.813266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$poV5.FBvQShjtL/65IVWpeAFhfyWatu5OZ9i.l2hyP7lWlnNddJCO"], ["created_at", "2015-03-19 01:02:48.819890"], ["updated_at", "2015-03-19 01:02:48.819890"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.824957"], ["updated_at", "2015-03-19 01:02:48.824957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a92f72dc-cdd3-11e4-8497-705681abff85' LIMIT 1 [["organization_id", "a9302bf0-cdd3-11e4-8f34-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$2TER0Mj5h3zpyac.hyP3peYlzitFF11nmkbYPRBpZUw/gPrSIcJX6"], ["created_at", "2015-03-19 01:02:48.833576"], ["updated_at", "2015-03-19 01:02:48.833576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.840446"], ["updated_at", "2015-03-19 01:02:48.840446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9317cb2-cdd3-11e4-a7f2-705681abff85' LIMIT 1 [["organization_id", "a9329e26-cdd3-11e4-a675-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$b50sCzyrdLH5fvk2oWYiBOjsCEhdyHj3j8tDt5.q9SkYv9ram.4vq"], ["created_at", "2015-03-19 01:02:48.848308"], ["updated_at", "2015-03-19 01:02:48.848308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.852758"], ["updated_at", "2015-03-19 01:02:48.852758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$NouicWBG0.w59DBkFg5VAeDRib.Zba.1ECIIsmwiOz8/YTkRAXZ8a"], ["created_at", "2015-03-19 01:02:48.859191"], ["updated_at", "2015-03-19 01:02:48.859191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$OtmlKnraaQkPwQsnmhA.Jeqpx9neWdejYcNFMWmIkkDMm3cL.uqL6"], ["created_at", "2015-03-19 01:02:48.870982"], ["updated_at", "2015-03-19 01:02:48.870982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.874755"], ["updated_at", "2015-03-19 01:02:48.874755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9372f90-cdd3-11e4-b825-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a937c13a-cdd3-11e4-8c7f-705681abff85') LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9372f90-cdd3-11e4-b825-705681abff85"], ["organization_id", "a937c13a-cdd3-11e4-8c7f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:48.878111"], ["updated_at", "2015-03-19 01:02:48.878111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a9372f90-cdd3-11e4-b825-705681abff85' LIMIT 1 [["organization_id", "a937c13a-cdd3-11e4-8c7f-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$P8hxXG0grXq3mCLBlDSN0etXIES8SNwHVZFJ4xsY7V3pGlr2iy9J2"], ["created_at", "2015-03-19 01:02:48.893781"], ["updated_at", "2015-03-19 01:02:48.893781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.897800"], ["updated_at", "2015-03-19 01:02:48.897800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a93aaf76-cdd3-11e4-bcaf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a93b47a6-cdd3-11e4-bedf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a93aaf76-cdd3-11e4-bcaf-705681abff85"], ["organization_id", "a93b47a6-cdd3-11e4-bedf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:48.901265"], ["updated_at", "2015-03-19 01:02:48.901265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$nLqiVXKUkqvAjDmOjs2CV.0elcUmN1kZXExCw2Aw7BR8zwNHOZ8gC"], ["created_at", "2015-03-19 01:02:48.907281"], ["updated_at", "2015-03-19 01:02:48.907281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.910404"], ["updated_at", "2015-03-19 01:02:48.910404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a93cb668-cdd3-11e4-b431-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a93d2ea4-cdd3-11e4-a346-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a93cb668-cdd3-11e4-b431-705681abff85"], ["organization_id", "a93d2ea4-cdd3-11e4-a346-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:48.913529"], ["updated_at", "2015-03-19 01:02:48.913529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a93cb668-cdd3-11e4-b431-705681abff85' LIMIT 1 [["organization_id", "a93d2ea4-cdd3-11e4-a346-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$zIKMH4wae/CFwB5jGii3se9BCkrhr99ut/uB.P4y8H8fe3Mwvy7GS"], ["created_at", "2015-03-19 01:02:48.920308"], ["updated_at", "2015-03-19 01:02:48.920308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.923397"], ["updated_at", "2015-03-19 01:02:48.923397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a93eb404-cdd3-11e4-b4c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a93f292a-cdd3-11e4-885c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a93eb404-cdd3-11e4-b4c2-705681abff85"], ["organization_id", "a93f292a-cdd3-11e4-885c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:48.926505"], ["updated_at", "2015-03-19 01:02:48.926505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a93eb404-cdd3-11e4-b4c2-705681abff85' LIMIT 1 [["organization_id", "a93f292a-cdd3-11e4-885c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$jdl984DOV3hLwqkpae9HC.sns/EgucP1I.MM6GREl8dhaHd0PITbO"], ["created_at", "2015-03-19 01:02:48.934375"], ["updated_at", "2015-03-19 01:02:48.934375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.937894"], ["updated_at", "2015-03-19 01:02:48.937894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a940dad6-cdd3-11e4-958a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a94170cc-cdd3-11e4-9b84-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a940dad6-cdd3-11e4-958a-705681abff85"], ["organization_id", "a94170cc-cdd3-11e4-9b84-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:48.941906"], ["updated_at", "2015-03-19 01:02:48.941906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$TbDoW8KFVc37WvLmkQj5Z.Dbta8RwZ82mxn0cvSUdA50b5oz8O2PC"], ["created_at", "2015-03-19 01:02:48.947829"], ["updated_at", "2015-03-19 01:02:48.947829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.950864"], ["updated_at", "2015-03-19 01:02:48.950864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a9435c16-cdd3-11e4-b1ee-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a9435c16-cdd3-11e4-b1ee-705681abff85"], ["created_at", "2015-03-19 01:02:48.960825"], ["updated_at", "2015-03-19 01:02:48.960825"], ["token", "LDLEBASP1Qmjjt4gde8XmbkAwBoCqDMAw0gj0vqsb8E"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a942e5ce-cdd3-11e4-954f-705681abff85' LIMIT 1 [["organization_id", "a9435c16-cdd3-11e4-b1ee-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$itEs5d4ypyNmab6YHs0A/.fzOUvBl9z0h.tsbzLhqiO4J69bJxshO"], ["created_at", "2015-03-19 01:02:48.971111"], ["updated_at", "2015-03-19 01:02:48.971111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.974996"], ["updated_at", "2015-03-19 01:02:48.974996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a9470ee2-cdd3-11e4-ba2c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a9470ee2-cdd3-11e4-ba2c-705681abff85"], ["created_at", "2015-03-19 01:02:48.978649"], ["updated_at", "2015-03-19 01:02:48.978649"], ["token", "hYXZXb7RF4VNS-3Lc39w2HXAlgO23iwvS2dHRcyYZCc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9467748-cdd3-11e4-a8fc-705681abff85' LIMIT 1 [["organization_id", "a9470ee2-cdd3-11e4-ba2c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$fm01nCmB1Xp7fMe3rtJh0uPLBtnYimBMdznoO3NFVCwNArz.B5bQW"], ["created_at", "2015-03-19 01:02:48.986139"], ["updated_at", "2015-03-19 01:02:48.986139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:48.995259"], ["updated_at", "2015-03-19 01:02:48.995259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a94a38ba-cdd3-11e4-bca4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a94a38ba-cdd3-11e4-bca4-705681abff85"], ["created_at", "2015-03-19 01:02:49.000482"], ["updated_at", "2015-03-19 01:02:49.000482"], ["token", "5sZBTp_J4yFpe8d-guuFr_DYliElPDkPrsdB0jhO51o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a948c796-cdd3-11e4-a5c4-705681abff85' LIMIT 1 [["organization_id", "a94a38ba-cdd3-11e4-bca4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$0WFkGik1IeFPaWM08IXjTerAj1pvsE6qWWSFf4ezj/gwQt5MWTbX."], ["created_at", "2015-03-19 01:02:49.008085"], ["updated_at", "2015-03-19 01:02:49.008085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.011383"], ["updated_at", "2015-03-19 01:02:49.011383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a94c9678-cdd3-11e4-8e9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a94c9678-cdd3-11e4-8e9a-705681abff85"], ["created_at", "2015-03-19 01:02:49.014808"], ["updated_at", "2015-03-19 01:02:49.014808"], ["token", "VatH1gI4pzJed5aYHLoriUBR2ftvgY02vhODix-DKqs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a94c1b1c-cdd3-11e4-a688-705681abff85' LIMIT 1 [["organization_id", "a94c9678-cdd3-11e4-8e9a-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$wq43tQura.5ZsUUWN4CaY.FinJdpVqSc5TPogfithFwf6Ln2qAmnK"], ["created_at", "2015-03-19 01:02:49.024280"], ["updated_at", "2015-03-19 01:02:49.024280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.027419"], ["updated_at", "2015-03-19 01:02:49.027419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a94e9144-cdd3-11e4-bee4-705681abff85' LIMIT 1 [["organization_id", "a94f14b6-cdd3-11e4-987d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$VB5AghlsLsqBwIAO/89M/OqELtLYPTxa3IBfEzQZvw5Wbq56fujn2"], ["created_at", "2015-03-19 01:02:49.037293"], ["updated_at", "2015-03-19 01:02:49.037293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.041632"], ["updated_at", "2015-03-19 01:02:49.041632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a95093d6-cdd3-11e4-947c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a951367e-cdd3-11e4-a830-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a95093d6-cdd3-11e4-947c-705681abff85"], ["organization_id", "a951367e-cdd3-11e4-a830-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.047520"], ["updated_at", "2015-03-19 01:02:49.047520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a951367e-cdd3-11e4-a830-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a951367e-cdd3-11e4-a830-705681abff85"], ["created_at", "2015-03-19 01:02:49.051210"], ["updated_at", "2015-03-19 01:02:49.051210"], ["token", "6w1KJSUqQ0R0mVxgN0j8qnzHEBBO8MqDJfiAQsHnvUs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a95093d6-cdd3-11e4-947c-705681abff85' LIMIT 1 [["organization_id", "a951367e-cdd3-11e4-a830-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$f9bZ50EilVYBdh4aOVbWm.Lyl3O8k.xDW0p56CKe3IG9I.mEpLCm6"], ["created_at", "2015-03-19 01:02:49.059062"], ["updated_at", "2015-03-19 01:02:49.059062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.062610"], ["updated_at", "2015-03-19 01:02:49.062610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a953e50e-cdd3-11e4-8475-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9546a10-cdd3-11e4-9b72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a953e50e-cdd3-11e4-8475-705681abff85"], ["organization_id", "a9546a10-cdd3-11e4-9b72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.066020"], ["updated_at", "2015-03-19 01:02:49.066020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a9546a10-cdd3-11e4-9b72-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a9546a10-cdd3-11e4-9b72-705681abff85"], ["created_at", "2015-03-19 01:02:49.069944"], ["updated_at", "2015-03-19 01:02:49.069944"], ["token", "x9mvBto0zI4TZCilBsCwYGtkPHQBv2Xx-VjT6eY7qlA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a953e50e-cdd3-11e4-8475-705681abff85' LIMIT 1 [["organization_id", "a9546a10-cdd3-11e4-9b72-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$gdlTN276SNMw2evXX9xe5uKNYm6SloUgcfwtC5fcgl7kkyIjk0oiW"], ["created_at", "2015-03-19 01:02:49.086403"], ["updated_at", "2015-03-19 01:02:49.086403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.090313"], ["updated_at", "2015-03-19 01:02:49.090313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9580fda-cdd3-11e4-aa7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a958a846-cdd3-11e4-b144-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9580fda-cdd3-11e4-aa7c-705681abff85"], ["organization_id", "a958a846-cdd3-11e4-b144-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.093712"], ["updated_at", "2015-03-19 01:02:49.093712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'a958a846-cdd3-11e4-b144-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "a958a846-cdd3-11e4-b144-705681abff85"], ["created_at", "2015-03-19 01:02:49.097037"], ["updated_at", "2015-03-19 01:02:49.097037"], ["token", "l-x3_DKo25rbkwWIeqbDAODaw4xdCSPWaVQ1ti9vtHU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9580fda-cdd3-11e4-aa7c-705681abff85' LIMIT 1 [["organization_id", "a958a846-cdd3-11e4-b144-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$xQTNujV96OR6jEbui2fgSORVpT7wYCDV.nhtGlw777wpOJU/1B9.."], ["created_at", "2015-03-19 01:02:49.104190"], ["updated_at", "2015-03-19 01:02:49.104190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.110011"], ["updated_at", "2015-03-19 01:02:49.110011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a95adb2a-cdd3-11e4-b4ef-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a95bbe00-cdd3-11e4-b07c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a95adb2a-cdd3-11e4-b4ef-705681abff85"], ["organization_id", "a95bbe00-cdd3-11e4-b07c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.115673"], ["updated_at", "2015-03-19 01:02:49.115673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'a95bbe00-cdd3-11e4-b07c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "a95bbe00-cdd3-11e4-b07c-705681abff85"], ["created_at", "2015-03-19 01:02:49.119653"], ["updated_at", "2015-03-19 01:02:49.119653"], ["token", "I_kkjFWroYbSaaBqbL8MrAxrEGcstrGtsLerGCHIYyE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a95adb2a-cdd3-11e4-b4ef-705681abff85' LIMIT 1 [["organization_id", "a95bbe00-cdd3-11e4-b07c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$czW8mGYHa5HPTs12SyWjIuTstZ3u.c04YFpSCT1CmyMobDQdhuo9q"], ["created_at", "2015-03-19 01:02:49.128991"], ["updated_at", "2015-03-19 01:02:49.128991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.133451"], ["updated_at", "2015-03-19 01:02:49.133451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a95ea688-cdd3-11e4-9885-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a95f3a58-cdd3-11e4-b44c-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a95ea688-cdd3-11e4-9885-705681abff85"], ["organization_id", "a95f3a58-cdd3-11e4-b44c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.137014"], ["updated_at", "2015-03-19 01:02:49.137014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a95ea688-cdd3-11e4-9885-705681abff85' LIMIT 1 [["organization_id", "a95f3a58-cdd3-11e4-b44c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$F2EnvFUxBiJp1mXc5wWxPOXl62pFEX7vXhFHBC02BYIc8iIuTZcFe"], ["created_at", "2015-03-19 01:02:49.146600"], ["updated_at", "2015-03-19 01:02:49.146600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.149678"], ["updated_at", "2015-03-19 01:02:49.149678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9613a9c-cdd3-11e4-b770-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a961affe-cdd3-11e4-bf7e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9613a9c-cdd3-11e4-b770-705681abff85"], ["organization_id", "a961affe-cdd3-11e4-bf7e-705681abff85"], ["created_at", "2015-03-19 01:02:49.152785"], ["updated_at", "2015-03-19 01:02:49.152785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'a961affe-cdd3-11e4-bf7e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "a961affe-cdd3-11e4-bf7e-705681abff85"], ["created_at", "2015-03-19 01:02:49.156229"], ["updated_at", "2015-03-19 01:02:49.156229"], ["token", "tVZmhf0XSiN2kuqMjOy78MDPEGYyvc1nu2Lv-WNRXcU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9613a9c-cdd3-11e4-b770-705681abff85' LIMIT 1 [["organization_id", "a961affe-cdd3-11e4-bf7e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$jJdW5zdFdQZ0wfvA1kgEZOq.VsUxbMMkhKxwdDMSz3QITgRkYqTm."], ["created_at", "2015-03-19 01:02:49.163444"], ["updated_at", "2015-03-19 01:02:49.163444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.166540"], ["updated_at", "2015-03-19 01:02:49.166540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a963ccbc-cdd3-11e4-98a6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a96442aa-cdd3-11e4-9b77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a963ccbc-cdd3-11e4-98a6-705681abff85"], ["organization_id", "a96442aa-cdd3-11e4-9b77-705681abff85"], ["created_at", "2015-03-19 01:02:49.169607"], ["updated_at", "2015-03-19 01:02:49.169607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'a96442aa-cdd3-11e4-9b77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "a96442aa-cdd3-11e4-9b77-705681abff85"], ["created_at", "2015-03-19 01:02:49.173093"], ["updated_at", "2015-03-19 01:02:49.173093"], ["token", "Ql4DUZMuYseqZiiHAQSI6hMoCad-PQdwjuCkkQHJ7HU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a963ccbc-cdd3-11e4-98a6-705681abff85' LIMIT 1 [["organization_id", "a96442aa-cdd3-11e4-9b77-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$BZ3yDIK9hu0qcAI3H5XRJ.8tsWyv.TcnPxH2t4tbcHcxWB1r61ft2"], ["created_at", "2015-03-19 01:02:49.180398"], ["updated_at", "2015-03-19 01:02:49.180398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.183594"], ["updated_at", "2015-03-19 01:02:49.183594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a96662d8-cdd3-11e4-9d45-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a966e320-cdd3-11e4-9baa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a96662d8-cdd3-11e4-9d45-705681abff85"], ["organization_id", "a966e320-cdd3-11e4-9baa-705681abff85"], ["created_at", "2015-03-19 01:02:49.187399"], ["updated_at", "2015-03-19 01:02:49.187399"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'a966e320-cdd3-11e4-9baa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "a966e320-cdd3-11e4-9baa-705681abff85"], ["created_at", "2015-03-19 01:02:49.191749"], ["updated_at", "2015-03-19 01:02:49.191749"], ["token", "WJsWo0r67tuVYnSCophKQZU9DAy2Z8jVvWRK-5x4LAg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a96662d8-cdd3-11e4-9d45-705681abff85' LIMIT 1 [["organization_id", "a966e320-cdd3-11e4-9baa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$PCrbMqrpc.rIWnsOCUgnh.qlAFoQ7uzGohTjO/f.JYGSJL1hEQ.tO"], ["created_at", "2015-03-19 01:02:49.198878"], ["updated_at", "2015-03-19 01:02:49.198878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.202013"], ["updated_at", "2015-03-19 01:02:49.202013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9693666-cdd3-11e4-9065-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a969ae48-cdd3-11e4-8e61-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9693666-cdd3-11e4-9065-705681abff85"], ["organization_id", "a969ae48-cdd3-11e4-8e61-705681abff85"], ["created_at", "2015-03-19 01:02:49.205304"], ["updated_at", "2015-03-19 01:02:49.205304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'a969ae48-cdd3-11e4-8e61-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "a969ae48-cdd3-11e4-8e61-705681abff85"], ["created_at", "2015-03-19 01:02:49.208768"], ["updated_at", "2015-03-19 01:02:49.208768"], ["token", "Ovl9MRX6spf15KzNI9cBejGrzhy3EfXv6wNsPOFGU0A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9693666-cdd3-11e4-9065-705681abff85' LIMIT 1 [["organization_id", "a969ae48-cdd3-11e4-8e61-705681abff85"]]  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$RvytHxcOk5Adefzm54Ca4OLYPZ6UTLC8/RpUS18hm9MRHKd/0acSy"], ["created_at", "2015-03-19 01:02:49.218122"], ["updated_at", "2015-03-19 01:02:49.218122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.222811"], ["updated_at", "2015-03-19 01:02:49.222811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a96c2588-cdd3-11e4-bb42-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a96ce338-cdd3-11e4-9769-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a96c2588-cdd3-11e4-bb42-705681abff85"], ["organization_id", "a96ce338-cdd3-11e4-9769-705681abff85"], ["created_at", "2015-03-19 01:02:49.226568"], ["updated_at", "2015-03-19 01:02:49.226568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a96c2588-cdd3-11e4-bb42-705681abff85' LIMIT 1 [["organization_id", "a96ce338-cdd3-11e4-9769-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$n0932x58v9E.ddXKjCM97urFVlsO/OJcKiPuTfTAgVT95rXtjdhyC"], ["created_at", "2015-03-19 01:02:49.234275"], ["updated_at", "2015-03-19 01:02:49.234275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$yzkQaPeqm3RKnewd.Vk54ObzwmYYqfp4JVVeWsnJr/maI2OOCbFSW"], ["created_at", "2015-03-19 01:02:49.239007"], ["updated_at", "2015-03-19 01:02:49.239007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.243086"], ["updated_at", "2015-03-19 01:02:49.243086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a96f668a-cdd3-11e4-a741-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a96ff960-cdd3-11e4-a912-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a96f668a-cdd3-11e4-a741-705681abff85"], ["organization_id", "a96ff960-cdd3-11e4-a912-705681abff85"], ["created_at", "2015-03-19 01:02:49.246461"], ["updated_at", "2015-03-19 01:02:49.246461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a96e9f02-cdd3-11e4-b865-705681abff85' LIMIT 1 [["organization_id", "a96ff960-cdd3-11e4-a912-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$Va4rg0LWzBZj4lNjfIJVQuB/P/TVuYa/3WOsdc6zz0SJd25atHU0y"], ["created_at", "2015-03-19 01:02:49.253381"], ["updated_at", "2015-03-19 01:02:49.253381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$iJ9nRtIGe9tcE.omzWAZ4.U22IAoMljTXTBGpWO/pBISdva6O8D6y"], ["created_at", "2015-03-19 01:02:49.257877"], ["updated_at", "2015-03-19 01:02:49.257877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.260866"], ["updated_at", "2015-03-19 01:02:49.260866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9723432-cdd3-11e4-921e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a972a764-cdd3-11e4-82f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9723432-cdd3-11e4-921e-705681abff85"], ["organization_id", "a972a764-cdd3-11e4-82f0-705681abff85"], ["created_at", "2015-03-19 01:02:49.264095"], ["updated_at", "2015-03-19 01:02:49.264095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9718aaa-cdd3-11e4-9626-705681abff85' LIMIT 1 [["organization_id", "a972a764-cdd3-11e4-82f0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$q2eV3kkJsOnpo7fAOAWNoO3KPcyFs4C4G2hRKgzsPrdMU6231ZvpW"], ["created_at", "2015-03-19 01:02:49.271043"], ["updated_at", "2015-03-19 01:02:49.271043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$AvTV4HUJo7Go1Kt0JMHP5uc6/EOXWtTlDcSrS205/bsCFDRYhXQX6"], ["created_at", "2015-03-19 01:02:49.275594"], ["updated_at", "2015-03-19 01:02:49.275594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.279245"], ["updated_at", "2015-03-19 01:02:49.279245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a974ebd2-cdd3-11e4-ab0e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9757ac0-cdd3-11e4-a051-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a974ebd2-cdd3-11e4-ab0e-705681abff85"], ["organization_id", "a9757ac0-cdd3-11e4-a051-705681abff85"], ["created_at", "2015-03-19 01:02:49.284738"], ["updated_at", "2015-03-19 01:02:49.284738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$2X/lNJ1cen3yrynK5LVGkOMkbgma//uzXsBBukxQ2RybpOYJYKLb."], ["created_at", "2015-03-19 01:02:49.291500"], ["updated_at", "2015-03-19 01:02:49.291500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$TfgCu8XoVx9IQxXTODq9HeOMWX.X1X4FojZQj7RiX0bAdRGvHxpfG"], ["created_at", "2015-03-19 01:02:49.295805"], ["updated_at", "2015-03-19 01:02:49.295805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.298894"], ["updated_at", "2015-03-19 01:02:49.298894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a977fdfe-cdd3-11e4-a8d2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9787928-cdd3-11e4-82d7-705681abff85') LIMIT 1 SQL (5.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a977fdfe-cdd3-11e4-a8d2-705681abff85"], ["organization_id", "a9787928-cdd3-11e4-82d7-705681abff85"], ["created_at", "2015-03-19 01:02:49.302698"], ["updated_at", "2015-03-19 01:02:49.302698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a9775912-cdd3-11e4-acd7-705681abff85' LIMIT 1 [["organization_id", "a9787928-cdd3-11e4-82d7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$rhMq4KHoh.fSGc/olr2Mh.3UEy6tdI6du10e.HdxHe2ATKymUMTi6"], ["created_at", "2015-03-19 01:02:49.316709"], ["updated_at", "2015-03-19 01:02:49.316709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.319990"], ["updated_at", "2015-03-19 01:02:49.319990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a97b32bc-cdd3-11e4-8034-705681abff85' LIMIT 1 [["organization_id", "a97bb020-cdd3-11e4-896b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$UhQ95DJO9zitaLrQeK6xeerAxveXkHHfv3j46p.WMrTWTMCD1HfEa"], ["created_at", "2015-03-19 01:02:49.327604"], ["updated_at", "2015-03-19 01:02:49.327604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.330621"], ["updated_at", "2015-03-19 01:02:49.330621"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a97cda68-cdd3-11e4-a0ac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a97d4c96-cdd3-11e4-8e66-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a97cda68-cdd3-11e4-a0ac-705681abff85"], ["organization_id", "a97d4c96-cdd3-11e4-8e66-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.334894"], ["updated_at", "2015-03-19 01:02:49.334894"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$W.o40Reh/zaKAqJeGbZLieG8NGCTVusP1M3tb/XD0HaqXK.WwoiFa"], ["created_at", "2015-03-19 01:02:49.341001"], ["updated_at", "2015-03-19 01:02:49.341001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a97ee7e0-cdd3-11e4-a050-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a97d4c96-cdd3-11e4-8e66-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a97ee7e0-cdd3-11e4-a050-705681abff85"], ["organization_id", "a97d4c96-cdd3-11e4-8e66-705681abff85"], ["created_at", "2015-03-19 01:02:49.344418"], ["updated_at", "2015-03-19 01:02:49.344418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a97cda68-cdd3-11e4-a0ac-705681abff85' LIMIT 1 [["organization_id", "a97d4c96-cdd3-11e4-8e66-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$Tm3uRwSNrSczX7Awt4FM1O7wfHs14yb2UH1YaJC4G6hlY23gu3KmW"], ["created_at", "2015-03-19 01:02:49.351404"], ["updated_at", "2015-03-19 01:02:49.351404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.354675"], ["updated_at", "2015-03-19 01:02:49.354675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9807ace-cdd3-11e4-a1c0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a980fb8e-cdd3-11e4-a5b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9807ace-cdd3-11e4-a1c0-705681abff85"], ["organization_id", "a980fb8e-cdd3-11e4-a5b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.357997"], ["updated_at", "2015-03-19 01:02:49.357997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$CYlOlLmLjYSHnE3VXK/nHuhZ.yWbGNDbrWB1x2Jc4.q6WYhem77hK"], ["created_at", "2015-03-19 01:02:49.362479"], ["updated_at", "2015-03-19 01:02:49.362479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9822b3a-cdd3-11e4-975d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a980fb8e-cdd3-11e4-a5b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9822b3a-cdd3-11e4-975d-705681abff85"], ["organization_id", "a980fb8e-cdd3-11e4-a5b3-705681abff85"], ["created_at", "2015-03-19 01:02:49.365811"], ["updated_at", "2015-03-19 01:02:49.365811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9807ace-cdd3-11e4-a1c0-705681abff85' LIMIT 1 [["organization_id", "a980fb8e-cdd3-11e4-a5b3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$.19ki1mkLfyo6Xg8b.jIde3SAo0hsNTrwAxy96f4kHdXKoZkBI6Je"], ["created_at", "2015-03-19 01:02:49.373000"], ["updated_at", "2015-03-19 01:02:49.373000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.377166"], ["updated_at", "2015-03-19 01:02:49.377166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a983c62a-cdd3-11e4-b1b0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9846cf6-cdd3-11e4-b23e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a983c62a-cdd3-11e4-b1b0-705681abff85"], ["organization_id", "a9846cf6-cdd3-11e4-b23e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.380592"], ["updated_at", "2015-03-19 01:02:49.380592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$gtRFoFTer5UV884CEVnbx.vvlMfZ7EYutIymtr1OufpGDDwHfpZe2"], ["created_at", "2015-03-19 01:02:49.385300"], ["updated_at", "2015-03-19 01:02:49.385300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a985a738-cdd3-11e4-925b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9846cf6-cdd3-11e4-b23e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a985a738-cdd3-11e4-925b-705681abff85"], ["organization_id", "a9846cf6-cdd3-11e4-b23e-705681abff85"], ["created_at", "2015-03-19 01:02:49.389050"], ["updated_at", "2015-03-19 01:02:49.389050"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$AUBHWSLJWaq7BJWcBaIo1uFHfOiV7npCXKskVAr9CWN8yeflWfZwe"], ["created_at", "2015-03-19 01:02:49.396960"], ["updated_at", "2015-03-19 01:02:49.396960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.400300"], ["updated_at", "2015-03-19 01:02:49.400300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a987702c-cdd3-11e4-b42e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a987ef20-cdd3-11e4-b3f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a987702c-cdd3-11e4-b42e-705681abff85"], ["organization_id", "a987ef20-cdd3-11e4-b3f9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.403465"], ["updated_at", "2015-03-19 01:02:49.403465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$Ro2d/uz2lChxAYh2zUK/Ke29hMZ50SJ1Z13asJbEDBh5U8gNhlC7u"], ["created_at", "2015-03-19 01:02:49.408090"], ["updated_at", "2015-03-19 01:02:49.408090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a989216a-cdd3-11e4-b236-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a987ef20-cdd3-11e4-b3f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a989216a-cdd3-11e4-b236-705681abff85"], ["organization_id", "a987ef20-cdd3-11e4-b3f9-705681abff85"], ["created_at", "2015-03-19 01:02:49.411272"], ["updated_at", "2015-03-19 01:02:49.411272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a987702c-cdd3-11e4-b42e-705681abff85' LIMIT 1 [["organization_id", "a987ef20-cdd3-11e4-b3f9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$76wgxrOHFIIqRuibrgsmnOzLy2N2c3/MHdqdbjSV.w.QxOjwK/zny"], ["created_at", "2015-03-19 01:02:49.418380"], ["updated_at", "2015-03-19 01:02:49.418380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.421623"], ["updated_at", "2015-03-19 01:02:49.421623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a98ab41c-cdd3-11e4-99a5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a98b316c-cdd3-11e4-a26a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a98ab41c-cdd3-11e4-99a5-705681abff85"], ["organization_id", "a98b316c-cdd3-11e4-a26a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.424942"], ["updated_at", "2015-03-19 01:02:49.424942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a98ab41c-cdd3-11e4-99a5-705681abff85' LIMIT 1 [["organization_id", "a98b316c-cdd3-11e4-a26a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$IJd.wbUa/oehnbR5LyOvYO9E2r4ZttGz57ommzRvYp1QqAZ8QOtYO"], ["created_at", "2015-03-19 01:02:49.432147"], ["updated_at", "2015-03-19 01:02:49.432147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.435383"], ["updated_at", "2015-03-19 01:02:49.435383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a98ccf04-cdd3-11e4-bf4f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a98d4a24-cdd3-11e4-b8da-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a98ccf04-cdd3-11e4-bf4f-705681abff85"], ["organization_id", "a98d4a24-cdd3-11e4-b8da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.438727"], ["updated_at", "2015-03-19 01:02:49.438727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a98ccf04-cdd3-11e4-bf4f-705681abff85' LIMIT 1 [["organization_id", "a98d4a24-cdd3-11e4-b8da-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$u4bdsbJzfveHS30aeZ4cBeZwVul3EPao2.4MesCrrOR31nGcjOMeO"], ["created_at", "2015-03-19 01:02:49.446794"], ["updated_at", "2015-03-19 01:02:49.446794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.450109"], ["updated_at", "2015-03-19 01:02:49.450109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a98f0990-cdd3-11e4-bd90-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a98f8a5a-cdd3-11e4-b923-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a98f0990-cdd3-11e4-bd90-705681abff85"], ["organization_id", "a98f8a5a-cdd3-11e4-b923-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.458367"], ["updated_at", "2015-03-19 01:02:49.458367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a98f0990-cdd3-11e4-bd90-705681abff85' LIMIT 1 [["organization_id", "a98f8a5a-cdd3-11e4-b923-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$NQWsZNsrlCeSodoWtBv1qehaYgROdBd08ddgLiKRwOeS7ap7Zkv4a"], ["created_at", "2015-03-19 01:02:49.465508"], ["updated_at", "2015-03-19 01:02:49.465508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.468801"], ["updated_at", "2015-03-19 01:02:49.468801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a991e408-cdd3-11e4-99f9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a992632e-cdd3-11e4-86c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a991e408-cdd3-11e4-99f9-705681abff85"], ["organization_id", "a992632e-cdd3-11e4-86c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.472241"], ["updated_at", "2015-03-19 01:02:49.472241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$tsE3hXEm0V61Nd1.7dU9Yu1CkFPETTboL3CKTcq2ocXucR5hs2htC"], ["created_at", "2015-03-19 01:02:49.478094"], ["updated_at", "2015-03-19 01:02:49.478094"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.482081"], ["updated_at", "2015-03-19 01:02:49.482081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a993d006-cdd3-11e4-80ac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a994699e-cdd3-11e4-a743-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a993d006-cdd3-11e4-80ac-705681abff85"], ["organization_id", "a994699e-cdd3-11e4-a743-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:02:49.486812"], ["updated_at", "2015-03-19 01:02:49.486812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a993d006-cdd3-11e4-80ac-705681abff85' LIMIT 1 [["organization_id", "a994699e-cdd3-11e4-a743-705681abff85"]]  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$Fetz8Co4I72a/38hpf9qV.v0597Esz.T7Tu7aQvHEG010UMkwsHxm"], ["created_at", "2015-03-19 01:02:49.499597"], ["updated_at", "2015-03-19 01:02:49.499597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.502784"], ["updated_at", "2015-03-19 01:02:49.502784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9971982-cdd3-11e4-add9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9979164-cdd3-11e4-a5e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9971982-cdd3-11e4-add9-705681abff85"], ["organization_id", "a9979164-cdd3-11e4-a5e9-705681abff85"], ["created_at", "2015-03-19 01:02:49.506071"], ["updated_at", "2015-03-19 01:02:49.506071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9971982-cdd3-11e4-add9-705681abff85' LIMIT 1 [["organization_id", "a9979164-cdd3-11e4-a5e9-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$fHR0adNiK9tINAErijCWbekuPuaF6HJpwoTGwPtUskwLwzFu/2spa"], ["created_at", "2015-03-19 01:02:49.513074"], ["updated_at", "2015-03-19 01:02:49.513074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.516761"], ["updated_at", "2015-03-19 01:02:49.516761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9992614-cdd3-11e4-9a1d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a999b480-cdd3-11e4-acd6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9992614-cdd3-11e4-9a1d-705681abff85"], ["organization_id", "a999b480-cdd3-11e4-acd6-705681abff85"], ["created_at", "2015-03-19 01:02:49.519896"], ["updated_at", "2015-03-19 01:02:49.519896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9992614-cdd3-11e4-9a1d-705681abff85' LIMIT 1 [["organization_id", "a999b480-cdd3-11e4-acd6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$jEZE4BsttXs4Qj3XVGjCSeZJxNQl/GhwGUw6aPCMZfBANIAKd4slG"], ["created_at", "2015-03-19 01:02:49.526756"], ["updated_at", "2015-03-19 01:02:49.526756"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.530727"], ["updated_at", "2015-03-19 01:02:49.530727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a99b3d78-cdd3-11e4-8614-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a99bdd28-cdd3-11e4-aaf4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a99b3d78-cdd3-11e4-8614-705681abff85"], ["organization_id", "a99bdd28-cdd3-11e4-aaf4-705681abff85"], ["created_at", "2015-03-19 01:02:49.534391"], ["updated_at", "2015-03-19 01:02:49.534391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$nSxSImsfBSUjoo1n6o63ZugH5IbDhxuVFM6hYTxaBgWpl8bQowPy."], ["created_at", "2015-03-19 01:02:49.540531"], ["updated_at", "2015-03-19 01:02:49.540531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.544488"], ["updated_at", "2015-03-19 01:02:49.544488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a99d6a6c-cdd3-11e4-bfd2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a99def50-cdd3-11e4-98db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a99d6a6c-cdd3-11e4-bfd2-705681abff85"], ["organization_id", "a99def50-cdd3-11e4-98db-705681abff85"], ["created_at", "2015-03-19 01:02:49.547621"], ["updated_at", "2015-03-19 01:02:49.547621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a99d6a6c-cdd3-11e4-bfd2-705681abff85' LIMIT 1 [["organization_id", "a99def50-cdd3-11e4-98db-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$PkZsQHVGtpQeZ7Yk8MPZfOwZMkHA4.pSIpUTNn019rAeu7X779mH2"], ["created_at", "2015-03-19 01:02:49.554502"], ["updated_at", "2015-03-19 01:02:49.554502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:02:49.558030"], ["updated_at", "2015-03-19 01:02:49.558030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a99f7c6c-cdd3-11e4-bda7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9a0040c-cdd3-11e4-b458-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a99f7c6c-cdd3-11e4-bda7-705681abff85"], ["organization_id", "a9a0040c-cdd3-11e4-b458-705681abff85"], ["created_at", "2015-03-19 01:02:49.561303"], ["updated_at", "2015-03-19 01:02:49.561303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a99f7c6c-cdd3-11e4-bda7-705681abff85' LIMIT 1 [["organization_id", "a9a0040c-cdd3-11e4-b458-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (47.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$E0arHElAImlUgC1Bjwhv1.Nte3d9byZQd7LRMRNWHNjrff8rzh3iO"], ["created_at", "2015-03-19 01:07:25.285701"], ["updated_at", "2015-03-19 01:07:25.285701"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.492788"], ["updated_at", "2015-03-19 01:07:25.492788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dfd72d2-cdd4-11e4-8725-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e187460-cdd4-11e4-bb47-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4dfd72d2-cdd4-11e4-8725-705681abff85"], ["organization_id", "4e187460-cdd4-11e4-bb47-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:25.515755"], ["updated_at", "2015-03-19 01:07:25.515755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '4e187460-cdd4-11e4-bb47-705681abff85') LIMIT 1 SQL (6.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "4e187460-cdd4-11e4-bb47-705681abff85"], ["created_at", "2015-03-19 01:07:25.530140"], ["updated_at", "2015-03-19 01:07:25.530140"], ["token", "6XUDKD6RrfzmBnxPI-j8vDZ8Mzyzafttx6IOVXLz2S4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4dfd72d2-cdd4-11e4-8725-705681abff85' LIMIT 1 [["organization_id", "4e187460-cdd4-11e4-bb47-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$G5Qw/iv8.6VD.aNvsPFOke7jEjkhlT0A1Bx3uC40lGD5v7.9Asy.a"], ["created_at", "2015-03-19 01:07:25.569095"], ["updated_at", "2015-03-19 01:07:25.569095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.575755"], ["updated_at", "2015-03-19 01:07:25.575755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e241b8a-cdd4-11e4-8b95-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e2513be-cdd4-11e4-8ac5-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e241b8a-cdd4-11e4-8b95-705681abff85"], ["organization_id", "4e2513be-cdd4-11e4-8ac5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:25.581543"], ["updated_at", "2015-03-19 01:07:25.581543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '4e2513be-cdd4-11e4-8ac5-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "4e2513be-cdd4-11e4-8ac5-705681abff85"], ["created_at", "2015-03-19 01:07:25.588668"], ["updated_at", "2015-03-19 01:07:25.588668"], ["token", "Ju2zEb8fjB5iY5cK_PvqBAD43Hkh-wlDBnvbLpFcPXg"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e241b8a-cdd4-11e4-8b95-705681abff85' LIMIT 1 [["organization_id", "4e2513be-cdd4-11e4-8ac5-705681abff85"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$x0TehRL0s0SVwJ6mozDzWunwcjzMpiqU1LxNkSyr1ycMtOhDO551m"], ["created_at", "2015-03-19 01:07:25.607127"], ["updated_at", "2015-03-19 01:07:25.607127"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.618137"], ["updated_at", "2015-03-19 01:07:25.618137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e2a1e5e-cdd4-11e4-a695-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e2b8c44-cdd4-11e4-ab34-705681abff85') LIMIT 1 SQL (111.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e2a1e5e-cdd4-11e4-a695-705681abff85"], ["organization_id", "4e2b8c44-cdd4-11e4-ab34-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:25.624345"], ["updated_at", "2015-03-19 01:07:25.624345"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '4e2b8c44-cdd4-11e4-ab34-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "4e2b8c44-cdd4-11e4-ab34-705681abff85"], ["created_at", "2015-03-19 01:07:25.744086"], ["updated_at", "2015-03-19 01:07:25.744086"], ["token", "JO9VZvNss_Z3ROi9O_xXfo7uCIki2VCWskVH0lER0WM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e2a1e5e-cdd4-11e4-a695-705681abff85' LIMIT 1 [["organization_id", "4e2b8c44-cdd4-11e4-ab34-705681abff85"]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$KEIQJajFHTrtliXQKeFoMueGpKAEH7uxghW.gxqHLrwAl3zQIBDmS"], ["created_at", "2015-03-19 01:07:25.756868"], ["updated_at", "2015-03-19 01:07:25.756868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.760824"], ["updated_at", "2015-03-19 01:07:25.760824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e40ae62-cdd4-11e4-965b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e414ce6-cdd4-11e4-9270-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e40ae62-cdd4-11e4-965b-705681abff85"], ["organization_id", "4e414ce6-cdd4-11e4-9270-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:25.765019"], ["updated_at", "2015-03-19 01:07:25.765019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '4e414ce6-cdd4-11e4-9270-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "4e414ce6-cdd4-11e4-9270-705681abff85"], ["created_at", "2015-03-19 01:07:25.769288"], ["updated_at", "2015-03-19 01:07:25.769288"], ["token", "xH0ETCjyy9RllW_yogNEy-qPfz4aF1Gq1D7SssZ-heY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e40ae62-cdd4-11e4-965b-705681abff85' LIMIT 1 [["organization_id", "4e414ce6-cdd4-11e4-9270-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$NrjjTGqmB3mcUUfzjKpA2OzdNt4BrzVXEjXS6JXsv8i3vNWOZOHqW"], ["created_at", "2015-03-19 01:07:25.777494"], ["updated_at", "2015-03-19 01:07:25.777494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.787654"], ["updated_at", "2015-03-19 01:07:25.787654"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e43cd9a-cdd4-11e4-9715-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e458522-cdd4-11e4-a383-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e43cd9a-cdd4-11e4-9715-705681abff85"], ["organization_id", "4e458522-cdd4-11e4-a383-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:25.801497"], ["updated_at", "2015-03-19 01:07:25.801497"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e43cd9a-cdd4-11e4-9715-705681abff85' LIMIT 1 [["organization_id", "4e458522-cdd4-11e4-a383-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$GR25lPdVSMRLWEPJSEzMUODe4k76v057XtegTEITVdzRuoo/I0j/a"], ["created_at", "2015-03-19 01:07:25.818346"], ["updated_at", "2015-03-19 01:07:25.818346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.821902"], ["updated_at", "2015-03-19 01:07:25.821902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '4e4a8be4-cdd4-11e4-98ef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "4e4a8be4-cdd4-11e4-98ef-705681abff85"], ["created_at", "2015-03-19 01:07:25.826308"], ["updated_at", "2015-03-19 01:07:25.826308"], ["token", "pRWagkDeL3aywsLvaxD4pvQQle8t1v0WogGoue1HFWc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e4a023c-cdd4-11e4-8ad7-705681abff85' LIMIT 1 [["organization_id", "4e4a8be4-cdd4-11e4-98ef-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$IgVzwot8ep/sYYzZZubh/e9yXXKocGEP7FWPPegaHUDWXF.TryWBi"], ["created_at", "2015-03-19 01:07:25.835609"], ["updated_at", "2015-03-19 01:07:25.835609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.839367"], ["updated_at", "2015-03-19 01:07:25.839367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '4e4d34e8-cdd4-11e4-aed6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "4e4d34e8-cdd4-11e4-aed6-705681abff85"], ["created_at", "2015-03-19 01:07:25.843416"], ["updated_at", "2015-03-19 01:07:25.843416"], ["token", "yeyZADASZySzfPGvOYdTGEttAxQTrCv2UL3I5LiO_9c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e4ca65e-cdd4-11e4-ae8d-705681abff85' LIMIT 1 [["organization_id", "4e4d34e8-cdd4-11e4-aed6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$0bytyW2Xyutp1vC.t40J2.a6uU8quKZofvFI7b.7ZSNp.tD..Sidq"], ["created_at", "2015-03-19 01:07:25.858216"], ["updated_at", "2015-03-19 01:07:25.858216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.861718"], ["updated_at", "2015-03-19 01:07:25.861718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '4e509df4-cdd4-11e4-9a50-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "4e509df4-cdd4-11e4-9a50-705681abff85"], ["created_at", "2015-03-19 01:07:25.866509"], ["updated_at", "2015-03-19 01:07:25.866509"], ["token", "oJ8mnslZ0BcgxraMRgwcbHrDHQ88HAmar9K5gA4A1Kw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e501744-cdd4-11e4-ae4a-705681abff85' LIMIT 1 [["organization_id", "4e509df4-cdd4-11e4-9a50-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$qCPipxaQATDwM42ra.Gesuq0IBaoaHzLZAjAGTz07MYCjTpgFchk6"], ["created_at", "2015-03-19 01:07:25.875734"], ["updated_at", "2015-03-19 01:07:25.875734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.879232"], ["updated_at", "2015-03-19 01:07:25.879232"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '4e5349f0-cdd4-11e4-b2e3-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "4e5349f0-cdd4-11e4-b2e3-705681abff85"], ["created_at", "2015-03-19 01:07:25.884166"], ["updated_at", "2015-03-19 01:07:25.884166"], ["token", "Yz9NyQvCt8h4S-5K_-YRmCd7RKjWvc4QbdCoVt_G5xc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e52c250-cdd4-11e4-942c-705681abff85' LIMIT 1 [["organization_id", "4e5349f0-cdd4-11e4-b2e3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$pF.fMTIOGCSSlXN0K1C54uMyz82Tm.yceXsJhM0zMHkwOwYUTF3FO"], ["created_at", "2015-03-19 01:07:25.898740"], ["updated_at", "2015-03-19 01:07:25.898740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.907864"], ["updated_at", "2015-03-19 01:07:25.907864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e56bf72-cdd4-11e4-91b6-705681abff85' LIMIT 1 [["organization_id", "4e57a9c8-cdd4-11e4-95be-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$kyykELdzEoFS5SQBs/Ed0.Jgix1TGkNk3sm7jT7jIeiIU5NkGF1u2"], ["created_at", "2015-03-19 01:07:25.915897"], ["updated_at", "2015-03-19 01:07:25.915897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.920376"], ["updated_at", "2015-03-19 01:07:25.920376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e58fd5a-cdd4-11e4-a248-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e5994e0-cdd4-11e4-b125-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e58fd5a-cdd4-11e4-a248-705681abff85"], ["organization_id", "4e5994e0-cdd4-11e4-b125-705681abff85"], ["created_at", "2015-03-19 01:07:25.924359"], ["updated_at", "2015-03-19 01:07:25.924359"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '4e5994e0-cdd4-11e4-b125-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "4e5994e0-cdd4-11e4-b125-705681abff85"], ["created_at", "2015-03-19 01:07:25.929381"], ["updated_at", "2015-03-19 01:07:25.929381"], ["token", "7MPWUKsynquF_LIF7J0k42SkWzok9CtiaYVM6T7Q_2w"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e58fd5a-cdd4-11e4-a248-705681abff85' LIMIT 1 [["organization_id", "4e5994e0-cdd4-11e4-b125-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$fFGwUr1Pa/UdCuF/btGsVOH.WUrPv0.rppAwBcwccGSauZsnoGNZW"], ["created_at", "2015-03-19 01:07:25.941826"], ["updated_at", "2015-03-19 01:07:25.941826"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.955773"], ["updated_at", "2015-03-19 01:07:25.955773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e5cebea-cdd4-11e4-ae5a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e5f05ec-cdd4-11e4-9bae-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e5cebea-cdd4-11e4-ae5a-705681abff85"], ["organization_id", "4e5f05ec-cdd4-11e4-9bae-705681abff85"], ["created_at", "2015-03-19 01:07:25.961683"], ["updated_at", "2015-03-19 01:07:25.961683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '4e5f05ec-cdd4-11e4-9bae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "4e5f05ec-cdd4-11e4-9bae-705681abff85"], ["created_at", "2015-03-19 01:07:25.965726"], ["updated_at", "2015-03-19 01:07:25.965726"], ["token", "-a2eIYfvWWbQQQCwfv6wrm31ROx4nSy3JHleZ53r9xE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e5cebea-cdd4-11e4-ae5a-705681abff85' LIMIT 1 [["organization_id", "4e5f05ec-cdd4-11e4-9bae-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$sI17C5/CwGFz8JbZTQoUoeAi/7DXY5VGyIZtu2kcSxwfVxWrZszPO"], ["created_at", "2015-03-19 01:07:25.974526"], ["updated_at", "2015-03-19 01:07:25.974526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:25.978202"], ["updated_at", "2015-03-19 01:07:25.978202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e61d768-cdd4-11e4-9bb1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e6268b8-cdd4-11e4-97e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e61d768-cdd4-11e4-9bb1-705681abff85"], ["organization_id", "4e6268b8-cdd4-11e4-97e8-705681abff85"], ["created_at", "2015-03-19 01:07:25.982120"], ["updated_at", "2015-03-19 01:07:25.982120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '4e6268b8-cdd4-11e4-97e8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "4e6268b8-cdd4-11e4-97e8-705681abff85"], ["created_at", "2015-03-19 01:07:25.986712"], ["updated_at", "2015-03-19 01:07:25.986712"], ["token", "buK7eXBol3gMJ-10hNt4Kq8SMtxactOfEZ2jaYPubLg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e61d768-cdd4-11e4-9bb1-705681abff85' LIMIT 1 [["organization_id", "4e6268b8-cdd4-11e4-97e8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$KBPGZBeDWG5XeOaSQI7QDu7ZFDXA1Con.bCxYp38YPPVBEefyVnK6"], ["created_at", "2015-03-19 01:07:25.999538"], ["updated_at", "2015-03-19 01:07:25.999538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.019590"], ["updated_at", "2015-03-19 01:07:26.019590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e65bef0-cdd4-11e4-ba08-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e68bba0-cdd4-11e4-977c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e65bef0-cdd4-11e4-ba08-705681abff85"], ["organization_id", "4e68bba0-cdd4-11e4-977c-705681abff85"], ["created_at", "2015-03-19 01:07:26.023951"], ["updated_at", "2015-03-19 01:07:26.023951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '4e68bba0-cdd4-11e4-977c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "4e68bba0-cdd4-11e4-977c-705681abff85"], ["created_at", "2015-03-19 01:07:26.029403"], ["updated_at", "2015-03-19 01:07:26.029403"], ["token", "4tSYKDQba_0l4reLkMi6-UHD3tXNz0Ojd_aQvBKYrXI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e65bef0-cdd4-11e4-ba08-705681abff85' LIMIT 1 [["organization_id", "4e68bba0-cdd4-11e4-977c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$W65zgp.MhNostjvLsloGceDS26.C59TKjq0lPqMMfJelc38FS5/8i"], ["created_at", "2015-03-19 01:07:26.038391"], ["updated_at", "2015-03-19 01:07:26.038391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.041768"], ["updated_at", "2015-03-19 01:07:26.041768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e6b9406-cdd4-11e4-a83a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e6c130e-cdd4-11e4-8b7e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e6b9406-cdd4-11e4-a83a-705681abff85"], ["organization_id", "4e6c130e-cdd4-11e4-8b7e-705681abff85"], ["created_at", "2015-03-19 01:07:26.045063"], ["updated_at", "2015-03-19 01:07:26.045063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e6b9406-cdd4-11e4-a83a-705681abff85' LIMIT 1 [["organization_id", "4e6c130e-cdd4-11e4-8b7e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$esYL1LzhAgn9zcJLbmoxXOZRdRw9BfSXQiorSrKhHuUOotZyy9YQS"], ["created_at", "2015-03-19 01:07:26.052396"], ["updated_at", "2015-03-19 01:07:26.052396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$j8zIK6jGNgLSyQp1lIONmOajbBPrbOm.oeogPJEoSpAdXT39g67Eu"], ["created_at", "2015-03-19 01:07:26.063554"], ["updated_at", "2015-03-19 01:07:26.063554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.066916"], ["updated_at", "2015-03-19 01:07:26.066916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e6f6932-cdd4-11e4-96e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e6fec4a-cdd4-11e4-bc5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e6f6932-cdd4-11e4-96e7-705681abff85"], ["organization_id", "4e6fec4a-cdd4-11e4-bc5f-705681abff85"], ["created_at", "2015-03-19 01:07:26.070915"], ["updated_at", "2015-03-19 01:07:26.070915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$5GoG4N.qMANZKceE7VcdY.zJwomctjgvJTof2GrNIWpV61EOoyYyC"], ["created_at", "2015-03-19 01:07:26.076694"], ["updated_at", "2015-03-19 01:07:26.076694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.080149"], ["updated_at", "2015-03-19 01:07:26.080149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e716a34-cdd4-11e4-b686-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e71efae-cdd4-11e4-a2be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e716a34-cdd4-11e4-b686-705681abff85"], ["organization_id", "4e71efae-cdd4-11e4-a2be-705681abff85"], ["created_at", "2015-03-19 01:07:26.083599"], ["updated_at", "2015-03-19 01:07:26.083599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e716a34-cdd4-11e4-b686-705681abff85' LIMIT 1 [["organization_id", "4e71efae-cdd4-11e4-a2be-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$OlWvaqDgW9.PCE8udJxuVeoxk2/fgRHLHnB10kGeI3/Ha/2XCtt.y"], ["created_at", "2015-03-19 01:07:26.091205"], ["updated_at", "2015-03-19 01:07:26.091205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.094517"], ["updated_at", "2015-03-19 01:07:26.094517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e73a2b8-cdd4-11e4-a35f-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e7426fc-cdd4-11e4-9a34-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e73a2b8-cdd4-11e4-a35f-705681abff85"], ["organization_id", "4e7426fc-cdd4-11e4-9a34-705681abff85"], ["created_at", "2015-03-19 01:07:26.098455"], ["updated_at", "2015-03-19 01:07:26.098455"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4e73a2b8-cdd4-11e4-a35f-705681abff85' LIMIT 1 [["organization_id", "4e7426fc-cdd4-11e4-9a34-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$qzgs4frIR5f414b8x/9I7OfOd3AQfMsJPX0SoeRlksggRtARHY652"], ["created_at", "2015-03-19 01:07:26.114298"], ["updated_at", "2015-03-19 01:07:26.114298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (5.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.117374"], ["updated_at", "2015-03-19 01:07:26.117374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e7725dc-cdd4-11e4-b6b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e779cc4-cdd4-11e4-b8d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e7725dc-cdd4-11e4-b6b1-705681abff85"], ["organization_id", "4e779cc4-cdd4-11e4-b8d4-705681abff85"], ["created_at", "2015-03-19 01:07:26.126452"], ["updated_at", "2015-03-19 01:07:26.126452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e7725dc-cdd4-11e4-b6b1-705681abff85' LIMIT 1 [["organization_id", "4e779cc4-cdd4-11e4-b8d4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$s3jY.ACYnzmCWrlcnUYkTOSZEbLPQ0qdNBPxUUDb87RFtK03HdOIu"], ["created_at", "2015-03-19 01:07:26.133483"], ["updated_at", "2015-03-19 01:07:26.133483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.136752"], ["updated_at", "2015-03-19 01:07:26.136752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e7a168e-cdd4-11e4-b6d4-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e7a919a-cdd4-11e4-b634-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e7a168e-cdd4-11e4-b6d4-705681abff85"], ["organization_id", "4e7a919a-cdd4-11e4-b634-705681abff85"], ["created_at", "2015-03-19 01:07:26.140021"], ["updated_at", "2015-03-19 01:07:26.140021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$4zBWG3vtCRWQaSAyyMv/LOmneOMwBTJADlm92wfyAw1j4BptPDhOu"], ["created_at", "2015-03-19 01:07:26.145866"], ["updated_at", "2015-03-19 01:07:26.145866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.149515"], ["updated_at", "2015-03-19 01:07:26.149515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e7bfabc-cdd4-11e4-b48e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e7c86d0-cdd4-11e4-83b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e7bfabc-cdd4-11e4-b48e-705681abff85"], ["organization_id", "4e7c86d0-cdd4-11e4-83b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.152945"], ["updated_at", "2015-03-19 01:07:26.152945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$LeAoiKEtAPob3vK2lFII7.MFvjA4s7ecxTwAMBAaYJIJQ8OAjN4ha"], ["created_at", "2015-03-19 01:07:26.158592"], ["updated_at", "2015-03-19 01:07:26.158592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.161718"], ["updated_at", "2015-03-19 01:07:26.161718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e7de7dc-cdd4-11e4-ac42-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e7e6018-cdd4-11e4-8722-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e7de7dc-cdd4-11e4-ac42-705681abff85"], ["organization_id", "4e7e6018-cdd4-11e4-8722-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.164993"], ["updated_at", "2015-03-19 01:07:26.164993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e7de7dc-cdd4-11e4-ac42-705681abff85' LIMIT 1 [["organization_id", "4e7e6018-cdd4-11e4-8722-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Bv9mWTU9t857UOgHffCnF.yQmmFTlUjSKvc.iBEh1AImozqwu0LYe"], ["created_at", "2015-03-19 01:07:26.171780"], ["updated_at", "2015-03-19 01:07:26.171780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.174856"], ["updated_at", "2015-03-19 01:07:26.174856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e7feb54-cdd4-11e4-aec7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e8061a6-cdd4-11e4-bea7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e7feb54-cdd4-11e4-aec7-705681abff85"], ["organization_id", "4e8061a6-cdd4-11e4-bea7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.178026"], ["updated_at", "2015-03-19 01:07:26.178026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4e7feb54-cdd4-11e4-aec7-705681abff85' LIMIT 1 [["organization_id", "4e8061a6-cdd4-11e4-bea7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$A3jnE6/mByKJuQnEbXdNUevYjDP2d9Fe87mzXyc8jj55lza8x5xC2"], ["created_at", "2015-03-19 01:07:26.184831"], ["updated_at", "2015-03-19 01:07:26.184831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.187953"], ["updated_at", "2015-03-19 01:07:26.187953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e81e8f0-cdd4-11e4-ae11-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e8260aa-cdd4-11e4-b911-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e81e8f0-cdd4-11e4-ae11-705681abff85"], ["organization_id", "4e8260aa-cdd4-11e4-b911-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.191689"], ["updated_at", "2015-03-19 01:07:26.191689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e81e8f0-cdd4-11e4-ae11-705681abff85' LIMIT 1 [["organization_id", "4e8260aa-cdd4-11e4-b911-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$nx3JQlCv/EeNHf6PfKwhBOCs3TOSuYeTaAAtVI7/R2q2wrVCzrpWq"], ["created_at", "2015-03-19 01:07:26.198657"], ["updated_at", "2015-03-19 01:07:26.198657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.202268"], ["updated_at", "2015-03-19 01:07:26.202268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e840f0e-cdd4-11e4-8dcf-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e849104-cdd4-11e4-af8b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e840f0e-cdd4-11e4-8dcf-705681abff85"], ["organization_id", "4e849104-cdd4-11e4-af8b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.205761"], ["updated_at", "2015-03-19 01:07:26.205761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$f6m7SCHYvtnpndfCVvZnQuhzU2rDQdPpaB3bRidVZqyr8iw9m1./."], ["created_at", "2015-03-19 01:07:26.211952"], ["updated_at", "2015-03-19 01:07:26.211952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.215495"], ["updated_at", "2015-03-19 01:07:26.215495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$1bb2fVa5eL26vcVXxFWgBegUvbCZkTaRrVnf6lTI7VYPIFTl2d49y"], ["created_at", "2015-03-19 01:07:26.221272"], ["updated_at", "2015-03-19 01:07:26.221272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.224519"], ["updated_at", "2015-03-19 01:07:26.224519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e877888-cdd4-11e4-a654-705681abff85' LIMIT 1 [["organization_id", "4e87f6aa-cdd4-11e4-bb39-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$9yhYegyxN12ZZFi9M7egNuebw9NDNK6/LMP25xDLdi6XkqSAUE4N6"], ["created_at", "2015-03-19 01:07:26.231847"], ["updated_at", "2015-03-19 01:07:26.231847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.235249"], ["updated_at", "2015-03-19 01:07:26.235249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4e89185a-cdd4-11e4-b3c4-705681abff85' LIMIT 1 [["organization_id", "4e8999c4-cdd4-11e4-97f3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$i2F5Ljg6y3nli/Y3tW0nsOQYBufD2/JVbwKn9u63KmF6mrEuPWefS"], ["created_at", "2015-03-19 01:07:26.242060"], ["updated_at", "2015-03-19 01:07:26.242060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.245226"], ["updated_at", "2015-03-19 01:07:26.245226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e8aa490-cdd4-11e4-9dea-705681abff85' LIMIT 1 [["organization_id", "4e8b1f10-cdd4-11e4-b0c6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$2Ss/C37DZBwlKPwR45gzGukB8rzrpkffrO8sqvbJqGcv1/i5n21lS"], ["created_at", "2015-03-19 01:07:26.252007"], ["updated_at", "2015-03-19 01:07:26.252007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.255085"], ["updated_at", "2015-03-19 01:07:26.255085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$.YfQFOwsavH6nWWpU9xy6eUdZhlgc3UktA1TbXYFUXg4YTKW10oue"], ["created_at", "2015-03-19 01:07:26.261433"], ["updated_at", "2015-03-19 01:07:26.261433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.264701"], ["updated_at", "2015-03-19 01:07:26.264701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e8d9ad8-cdd4-11e4-be76-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e8e1b66-cdd4-11e4-9874-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e8d9ad8-cdd4-11e4-be76-705681abff85"], ["organization_id", "4e8e1b66-cdd4-11e4-9874-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.268300"], ["updated_at", "2015-03-19 01:07:26.268300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4e8d9ad8-cdd4-11e4-be76-705681abff85' LIMIT 1 [["organization_id", "4e8e1b66-cdd4-11e4-9874-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$LwGhyA.E5P0INq1G84wuB.tO5LEPbd5bt0mvDawdfQ4L5bTIyCYMW"], ["created_at", "2015-03-19 01:07:26.275428"], ["updated_at", "2015-03-19 01:07:26.275428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.278907"], ["updated_at", "2015-03-19 01:07:26.278907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e8fbd4a-cdd4-11e4-b47b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e9044f4-cdd4-11e4-9104-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e8fbd4a-cdd4-11e4-b47b-705681abff85"], ["organization_id", "4e9044f4-cdd4-11e4-9104-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.282248"], ["updated_at", "2015-03-19 01:07:26.282248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$uJRzTulyWGBuoRVovhqdYubQdPQ0H4dG4OH3R7zZWlg/9lA50ZJxG"], ["created_at", "2015-03-19 01:07:26.287268"], ["updated_at", "2015-03-19 01:07:26.287268"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e91ce1e-cdd4-11e4-95c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e9044f4-cdd4-11e4-9104-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e91ce1e-cdd4-11e4-95c8-705681abff85"], ["organization_id", "4e9044f4-cdd4-11e4-9104-705681abff85"], ["created_at", "2015-03-19 01:07:26.293997"], ["updated_at", "2015-03-19 01:07:26.293997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$zeai4YmaacxCTO1xmM6ry.JcEiEfgx2Z0fhbc5Ij8IfavDaWcnJBm"], ["created_at", "2015-03-19 01:07:26.300234"], ["updated_at", "2015-03-19 01:07:26.300234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.303425"], ["updated_at", "2015-03-19 01:07:26.303425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e938628-cdd4-11e4-95ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e93ff72-cdd4-11e4-bf53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e938628-cdd4-11e4-95ba-705681abff85"], ["organization_id", "4e93ff72-cdd4-11e4-bf53-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.306742"], ["updated_at", "2015-03-19 01:07:26.306742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$L.zGN78UsuKPZZ.5aBeXre8ngFk2UcWUBIYLAa3bShQN5lpyuOWIW"], ["created_at", "2015-03-19 01:07:26.311550"], ["updated_at", "2015-03-19 01:07:26.311550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e953fb8-cdd4-11e4-96f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e93ff72-cdd4-11e4-bf53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e953fb8-cdd4-11e4-96f6-705681abff85"], ["organization_id", "4e93ff72-cdd4-11e4-bf53-705681abff85"], ["created_at", "2015-03-19 01:07:26.315575"], ["updated_at", "2015-03-19 01:07:26.315575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e938628-cdd4-11e4-95ba-705681abff85' LIMIT 1 [["organization_id", "4e93ff72-cdd4-11e4-bf53-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$8bK.JHPcWN4LD9wNR/GtIOvYETKelT63q3WB0A8ClJb0V5fkzNKPG"], ["created_at", "2015-03-19 01:07:26.322731"], ["updated_at", "2015-03-19 01:07:26.322731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.325801"], ["updated_at", "2015-03-19 01:07:26.325801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e96f3a8-cdd4-11e4-921d-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e97689c-cdd4-11e4-ad1b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e96f3a8-cdd4-11e4-921d-705681abff85"], ["organization_id", "4e97689c-cdd4-11e4-ad1b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.328925"], ["updated_at", "2015-03-19 01:07:26.328925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$Lru1zgKdh26tEUyEc51P6Oq1UAkeKOxrZIG3.RoXjWeZ/XSchCAza"], ["created_at", "2015-03-19 01:07:26.333871"], ["updated_at", "2015-03-19 01:07:26.333871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e98ae8c-cdd4-11e4-a9fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e97689c-cdd4-11e4-ad1b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e98ae8c-cdd4-11e4-a9fd-705681abff85"], ["organization_id", "4e97689c-cdd4-11e4-ad1b-705681abff85"], ["created_at", "2015-03-19 01:07:26.337461"], ["updated_at", "2015-03-19 01:07:26.337461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4e96f3a8-cdd4-11e4-921d-705681abff85' LIMIT 1 [["organization_id", "4e97689c-cdd4-11e4-ad1b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$QnSNfzeCp2e7vTKLaprX/eL9Ccl/DaqWp2zvPElKV/tvxi3RW6V7m"], ["created_at", "2015-03-19 01:07:26.344218"], ["updated_at", "2015-03-19 01:07:26.344218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.347421"], ["updated_at", "2015-03-19 01:07:26.347421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e9a3cc0-cdd4-11e4-bc23-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e9ab61e-cdd4-11e4-b032-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e9a3cc0-cdd4-11e4-bc23-705681abff85"], ["organization_id", "4e9ab61e-cdd4-11e4-b032-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.350623"], ["updated_at", "2015-03-19 01:07:26.350623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$wkIPfmAcrCxvkaNcW8jveeqtH9bkmLE9UdaOXi/.KvEZY/bcM8jDG"], ["created_at", "2015-03-19 01:07:26.354947"], ["updated_at", "2015-03-19 01:07:26.354947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e9bdb52-cdd4-11e4-bf4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e9ab61e-cdd4-11e4-b032-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e9bdb52-cdd4-11e4-bf4c-705681abff85"], ["organization_id", "4e9ab61e-cdd4-11e4-b032-705681abff85"], ["created_at", "2015-03-19 01:07:26.358176"], ["updated_at", "2015-03-19 01:07:26.358176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e9a3cc0-cdd4-11e4-bc23-705681abff85' LIMIT 1 [["organization_id", "4e9ab61e-cdd4-11e4-b032-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$m8TXIZ7Kj6qjafgTPWzTw.P/mmsUYiATaCW3etVD00rLm0SfYBIYu"], ["created_at", "2015-03-19 01:07:26.365879"], ["updated_at", "2015-03-19 01:07:26.365879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.369126"], ["updated_at", "2015-03-19 01:07:26.369126"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e9d8a92-cdd4-11e4-925a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e9e0990-cdd4-11e4-b912-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e9d8a92-cdd4-11e4-925a-705681abff85"], ["organization_id", "4e9e0990-cdd4-11e4-b912-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.373606"], ["updated_at", "2015-03-19 01:07:26.373606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$5/zKpyI5O1Rhof7VFf8sYuaGRq8jwELxBXFFr2hvRrN4.a9PhdKRG"], ["created_at", "2015-03-19 01:07:26.380943"], ["updated_at", "2015-03-19 01:07:26.380943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.384353"], ["updated_at", "2015-03-19 01:07:26.384353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e9fd8b0-cdd4-11e4-8b04-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ea05fd8-cdd4-11e4-b32d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e9fd8b0-cdd4-11e4-8b04-705681abff85"], ["organization_id", "4ea05fd8-cdd4-11e4-b32d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.388031"], ["updated_at", "2015-03-19 01:07:26.388031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e9fd8b0-cdd4-11e4-8b04-705681abff85' LIMIT 1 [["organization_id", "4ea05fd8-cdd4-11e4-b32d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$zVpb0lU7Dys340wqoc1Kh.PK7VdPnaF4AavtDGS78C2t6SFtlN5Ku"], ["created_at", "2015-03-19 01:07:26.395220"], ["updated_at", "2015-03-19 01:07:26.395220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.398438"], ["updated_at", "2015-03-19 01:07:26.398438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ea203c4-cdd4-11e4-93eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ea27fb6-cdd4-11e4-baa6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ea203c4-cdd4-11e4-93eb-705681abff85"], ["organization_id", "4ea27fb6-cdd4-11e4-baa6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.401743"], ["updated_at", "2015-03-19 01:07:26.401743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4ea203c4-cdd4-11e4-93eb-705681abff85' LIMIT 1 [["organization_id", "4ea27fb6-cdd4-11e4-baa6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$hQc/Edj.cj39v3uGsshtn.tJZSL8kKLERu9Mr3yuT2nyQqhsC/QF2"], ["created_at", "2015-03-19 01:07:26.409597"], ["updated_at", "2015-03-19 01:07:26.409597"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.414493"], ["updated_at", "2015-03-19 01:07:26.414493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ea43e46-cdd4-11e4-8873-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ea4fca0-cdd4-11e4-8382-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ea43e46-cdd4-11e4-8873-705681abff85"], ["organization_id", "4ea4fca0-cdd4-11e4-8382-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:26.419069"], ["updated_at", "2015-03-19 01:07:26.419069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ea43e46-cdd4-11e4-8873-705681abff85' LIMIT 1 [["organization_id", "4ea4fca0-cdd4-11e4-8382-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$Ein3ML02J/dZqRGKVU5Xe.M53fZsVSCD7H1iCDV8L2nf2iu6e2Fd."], ["created_at", "2015-03-19 01:07:26.431259"], ["updated_at", "2015-03-19 01:07:26.431259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$AM2FW66v0Iwc8u745M5QvOiu.Pl3Nw0pNy7g4/4Ik1/pPtmD6WGtu"], ["created_at", "2015-03-19 01:07:26.438151"], ["updated_at", "2015-03-19 01:07:26.438151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.441859"], ["updated_at", "2015-03-19 01:07:26.441859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ea895c2-cdd4-11e4-918a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ea9244c-cdd4-11e4-aaf1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ea895c2-cdd4-11e4-918a-705681abff85"], ["organization_id", "4ea9244c-cdd4-11e4-aaf1-705681abff85"], ["created_at", "2015-03-19 01:07:26.445259"], ["updated_at", "2015-03-19 01:07:26.445259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$3r6GDYYxsPDW4VqK1XAAk.qsuj3jZlpfZD2yVpM.NcMBnMH.CTNFG"], ["created_at", "2015-03-19 01:07:26.451717"], ["updated_at", "2015-03-19 01:07:26.451717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$/6br4G.PmGMSfFcNFXlsku96.6xiqwXaHM2WZW38mKpa4dFCksN2u"], ["created_at", "2015-03-19 01:07:26.456209"], ["updated_at", "2015-03-19 01:07:26.456209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.460092"], ["updated_at", "2015-03-19 01:07:26.460092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eab517c-cdd4-11e4-87ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '4eabfd02-cdd4-11e4-8a39-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4eab517c-cdd4-11e4-87ab-705681abff85"], ["organization_id", "4eabfd02-cdd4-11e4-8a39-705681abff85"], ["created_at", "2015-03-19 01:07:26.466695"], ["updated_at", "2015-03-19 01:07:26.466695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4eaaa6be-cdd4-11e4-9048-705681abff85' LIMIT 1 [["organization_id", "4eabfd02-cdd4-11e4-8a39-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (2.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$p9eC06cYpMc8Mv7f6T36Ruuzeq9Urue1TpMa5SsyzgWcjAkkwohru"], ["created_at", "2015-03-19 01:07:26.483651"], ["updated_at", "2015-03-19 01:07:26.483651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$udcxCueXzQ31aJtlXXwVQ.L4AgGV7v/5lLl5eikJ25ISs5DnrHHWW"], ["created_at", "2015-03-19 01:07:26.496820"], ["updated_at", "2015-03-19 01:07:26.496820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.511547"], ["updated_at", "2015-03-19 01:07:26.511547"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (6.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eb19cd0-cdd4-11e4-a108-705681abff85' AND "clubhouse_memberships"."organization_id" = '4eb458a8-cdd4-11e4-941e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4eb19cd0-cdd4-11e4-a108-705681abff85"], ["organization_id", "4eb458a8-cdd4-11e4-941e-705681abff85"], ["created_at", "2015-03-19 01:07:26.529927"], ["updated_at", "2015-03-19 01:07:26.529927"]]  (2.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4eafae84-cdd4-11e4-a160-705681abff85' LIMIT 1 [["organization_id", "4eb458a8-cdd4-11e4-941e-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$CSA7DFktfcDiV1j5kgD/8eTp49faJ16Qto1eEkyrawj7he/yKfVK."], ["created_at", "2015-03-19 01:07:26.544476"], ["updated_at", "2015-03-19 01:07:26.544476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$IRdPX/lZ/by9u9tsiOYFnekCQrvo3.h.xDUTXTqqvI7dTfaqJOrhy"], ["created_at", "2015-03-19 01:07:26.549445"], ["updated_at", "2015-03-19 01:07:26.549445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.552976"], ["updated_at", "2015-03-19 01:07:26.552976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eb992e6-cdd4-11e4-87ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '4eba1446-cdd4-11e4-a2a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4eb992e6-cdd4-11e4-87ea-705681abff85"], ["organization_id", "4eba1446-cdd4-11e4-a2a4-705681abff85"], ["created_at", "2015-03-19 01:07:26.556134"], ["updated_at", "2015-03-19 01:07:26.556134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4eb8ddce-cdd4-11e4-986a-705681abff85' LIMIT 1 [["organization_id", "4eba1446-cdd4-11e4-a2a4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$hlmm9XZOi3nA6Cf7UlRTKupEx8Adu2lUDwhYBaYRa.77tpE8QaIFS"], ["created_at", "2015-03-19 01:07:26.563394"], ["updated_at", "2015-03-19 01:07:26.563394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.567081"], ["updated_at", "2015-03-19 01:07:26.567081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4ebbabe4-cdd4-11e4-a707-705681abff85' LIMIT 1 [["organization_id", "4ebc491e-cdd4-11e4-899c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$T1MZj6Igi/U1HTyDf8.ehOD8BiFKt0fgn6jd/8vCL/vhe.ttdyo1C"], ["created_at", "2015-03-19 01:07:26.575990"], ["updated_at", "2015-03-19 01:07:26.575990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.579138"], ["updated_at", "2015-03-19 01:07:26.579138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ebd9a62-cdd4-11e4-b56f-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ebe10dc-cdd4-11e4-862b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ebd9a62-cdd4-11e4-b56f-705681abff85"], ["organization_id", "4ebe10dc-cdd4-11e4-862b-705681abff85"], ["created_at", "2015-03-19 01:07:26.582221"], ["updated_at", "2015-03-19 01:07:26.582221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$i7lya0aaDVikljVGQD2z9.qX3c0RTrddkIh6m7XboMv66qTXWd3cG"], ["created_at", "2015-03-19 01:07:26.588141"], ["updated_at", "2015-03-19 01:07:26.588141"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.591589"], ["updated_at", "2015-03-19 01:07:26.591589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ebf7224-cdd4-11e4-bfae-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ebffbc2-cdd4-11e4-a1f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ebf7224-cdd4-11e4-bfae-705681abff85"], ["organization_id", "4ebffbc2-cdd4-11e4-a1f3-705681abff85"], ["created_at", "2015-03-19 01:07:26.594966"], ["updated_at", "2015-03-19 01:07:26.594966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ebf7224-cdd4-11e4-bfae-705681abff85' LIMIT 1 [["organization_id", "4ebffbc2-cdd4-11e4-a1f3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$Vzx9XPIZmrCtlR2iq4a2yum/hrD0iUIuLBzwJqGEsHY5Mjt5FNddC"], ["created_at", "2015-03-19 01:07:26.602181"], ["updated_at", "2015-03-19 01:07:26.602181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.605563"], ["updated_at", "2015-03-19 01:07:26.605563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ec1982e-cdd4-11e4-b413-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ec219c0-cdd4-11e4-aa3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ec1982e-cdd4-11e4-b413-705681abff85"], ["organization_id", "4ec219c0-cdd4-11e4-aa3e-705681abff85"], ["created_at", "2015-03-19 01:07:26.608731"], ["updated_at", "2015-03-19 01:07:26.608731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4ec1982e-cdd4-11e4-b413-705681abff85' LIMIT 1 [["organization_id", "4ec219c0-cdd4-11e4-aa3e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$p2x6od0tQK5ylJer5dVkW.ZC3JrS7P0Rde0eon.8GlKa3E9Cjv3aK"], ["created_at", "2015-03-19 01:07:26.615619"], ["updated_at", "2015-03-19 01:07:26.615619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.619348"], ["updated_at", "2015-03-19 01:07:26.619348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ec3ac22-cdd4-11e4-9a6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ec43f70-cdd4-11e4-97d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ec3ac22-cdd4-11e4-9a6b-705681abff85"], ["organization_id", "4ec43f70-cdd4-11e4-97d1-705681abff85"], ["created_at", "2015-03-19 01:07:26.622956"], ["updated_at", "2015-03-19 01:07:26.622956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ec3ac22-cdd4-11e4-9a6b-705681abff85' LIMIT 1 [["organization_id", "4ec43f70-cdd4-11e4-97d1-705681abff85"]]  (0.1ms) ROLLBACK  (119.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$Q8Rb7Qzv4XB9H9KRupuJJO8ZlBeiMx4KxVeGXFBaL1D7Y4HZKAYii"], ["created_at", "2015-03-19 01:07:26.751747"], ["updated_at", "2015-03-19 01:07:26.751747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:26.757639"], ["updated_at", "2015-03-19 01:07:26.757639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ed88a52-cdd4-11e4-abb9-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ed95c52-cdd4-11e4-8698-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ed88a52-cdd4-11e4-abb9-705681abff85"], ["organization_id", "4ed95c52-cdd4-11e4-8698-705681abff85"], ["created_at", "2015-03-19 01:07:26.762651"], ["updated_at", "2015-03-19 01:07:26.762651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4ed88a52-cdd4-11e4-abb9-705681abff85' LIMIT 1 [["organization_id", "4ed95c52-cdd4-11e4-8698-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (29.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$M5Ub59G0N0Dml6hpy1qrOuN0ESuwoo9ytbobFC6qllOZ/lBcWu5jG"], ["created_at", "2015-03-19 01:07:48.145647"], ["updated_at", "2015-03-19 01:07:48.145647"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.226336"], ["updated_at", "2015-03-19 01:07:48.226336"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5b9d5a88-cdd4-11e4-b09d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ba53bc2-cdd4-11e4-b114-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5b9d5a88-cdd4-11e4-b09d-705681abff85"], ["organization_id", "5ba53bc2-cdd4-11e4-b114-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.243464"], ["updated_at", "2015-03-19 01:07:48.243464"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5ba53bc2-cdd4-11e4-b114-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "5ba53bc2-cdd4-11e4-b114-705681abff85"], ["created_at", "2015-03-19 01:07:48.254993"], ["updated_at", "2015-03-19 01:07:48.254993"], ["token", "xrv8tCt2bTN0qEjnRq-2EgWvTdgmMgWT_cr8YtCSAmw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5b9d5a88-cdd4-11e4-b09d-705681abff85' LIMIT 1 [["organization_id", "5ba53bc2-cdd4-11e4-b114-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$zjn52spLHZwsSjpPeAqCteUUdPTFsfaxY96q5zNKQzN3oh1D1LQ.C"], ["created_at", "2015-03-19 01:07:48.278795"], ["updated_at", "2015-03-19 01:07:48.278795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.282396"], ["updated_at", "2015-03-19 01:07:48.282396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bad3502-cdd4-11e4-abba-705681abff85' AND "clubhouse_memberships"."organization_id" = '5badba68-cdd4-11e4-98bd-705681abff85') LIMIT 1 SQL (18.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5bad3502-cdd4-11e4-abba-705681abff85"], ["organization_id", "5badba68-cdd4-11e4-98bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.285718"], ["updated_at", "2015-03-19 01:07:48.285718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '5badba68-cdd4-11e4-98bd-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "5badba68-cdd4-11e4-98bd-705681abff85"], ["created_at", "2015-03-19 01:07:48.307998"], ["updated_at", "2015-03-19 01:07:48.307998"], ["token", "mDPaakx8BoVGKmVyfffj7vkExmWh238uTBsJYs0YZ4s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bad3502-cdd4-11e4-abba-705681abff85' LIMIT 1 [["organization_id", "5badba68-cdd4-11e4-98bd-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$cnxfJrB.3kYJeLHX3SArXeyC7sYPxKC9ZA9s9ROx6KLxYg5Phh6M."], ["created_at", "2015-03-19 01:07:48.318092"], ["updated_at", "2015-03-19 01:07:48.318092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.321535"], ["updated_at", "2015-03-19 01:07:48.321535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bb32ed0-cdd4-11e4-8793-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bb3b3c8-cdd4-11e4-8ff2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5bb32ed0-cdd4-11e4-8793-705681abff85"], ["organization_id", "5bb3b3c8-cdd4-11e4-8ff2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.325107"], ["updated_at", "2015-03-19 01:07:48.325107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '5bb3b3c8-cdd4-11e4-8ff2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "5bb3b3c8-cdd4-11e4-8ff2-705681abff85"], ["created_at", "2015-03-19 01:07:48.328830"], ["updated_at", "2015-03-19 01:07:48.328830"], ["token", "FWF7SWwcjn6qo8cEB5sF6Gu7elrRcp0CvixaZNTXFUI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bb32ed0-cdd4-11e4-8793-705681abff85' LIMIT 1 [["organization_id", "5bb3b3c8-cdd4-11e4-8ff2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$2fM/zsqIW8eSN7rl9A6UGOfQt5mM36nkj3k6KeM/hWJQhpbt.Vyuu"], ["created_at", "2015-03-19 01:07:48.338924"], ["updated_at", "2015-03-19 01:07:48.338924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.343645"], ["updated_at", "2015-03-19 01:07:48.343645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bb66938-cdd4-11e4-bfce-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bb71fcc-cdd4-11e4-be26-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5bb66938-cdd4-11e4-bfce-705681abff85"], ["organization_id", "5bb71fcc-cdd4-11e4-be26-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.348079"], ["updated_at", "2015-03-19 01:07:48.348079"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '5bb71fcc-cdd4-11e4-be26-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "5bb71fcc-cdd4-11e4-be26-705681abff85"], ["created_at", "2015-03-19 01:07:48.353588"], ["updated_at", "2015-03-19 01:07:48.353588"], ["token", "LW6xaSeojNhPqbsr3M8STGD2uiH0zTunH-RMRhwlz7s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bb66938-cdd4-11e4-bfce-705681abff85' LIMIT 1 [["organization_id", "5bb71fcc-cdd4-11e4-be26-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$m.3phVmYs6IcWHwmO2e5M.B3HmKDY8UWwP02QdRmJkUIGNIGQ3LWu"], ["created_at", "2015-03-19 01:07:48.361727"], ["updated_at", "2015-03-19 01:07:48.361727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.364874"], ["updated_at", "2015-03-19 01:07:48.364874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bb9d74e-cdd4-11e4-96f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bba5070-cdd4-11e4-a2d8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5bb9d74e-cdd4-11e4-96f6-705681abff85"], ["organization_id", "5bba5070-cdd4-11e4-a2d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.368255"], ["updated_at", "2015-03-19 01:07:48.368255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bb9d74e-cdd4-11e4-96f6-705681abff85' LIMIT 1 [["organization_id", "5bba5070-cdd4-11e4-a2d8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$oiaJCVtdUi47gcSv3.9/X.Fc9Lcml2YUuoIsHmwP748Za8cDzXO3e"], ["created_at", "2015-03-19 01:07:48.378845"], ["updated_at", "2015-03-19 01:07:48.378845"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.385118"], ["updated_at", "2015-03-19 01:07:48.385118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '5bbd758e-cdd4-11e4-8658-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "5bbd758e-cdd4-11e4-8658-705681abff85"], ["created_at", "2015-03-19 01:07:48.389222"], ["updated_at", "2015-03-19 01:07:48.389222"], ["token", "djnagvieu2vqp8mpFgKlA6X7jLir43TWuO7xQuz_Zj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bbc76b6-cdd4-11e4-869e-705681abff85' LIMIT 1 [["organization_id", "5bbd758e-cdd4-11e4-8658-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$WdsPJ0kJ4jFJcLixCZu3YOYElmAswHp6vQL60Zcv66.viicExKsEy"], ["created_at", "2015-03-19 01:07:48.398995"], ["updated_at", "2015-03-19 01:07:48.398995"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.404003"], ["updated_at", "2015-03-19 01:07:48.404003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '5bc04a34-cdd4-11e4-bb37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "5bc04a34-cdd4-11e4-bb37-705681abff85"], ["created_at", "2015-03-19 01:07:48.407478"], ["updated_at", "2015-03-19 01:07:48.407478"], ["token", "7tlUZ_5LzlGheCEL-Bp8J5ZLwxTyaSebna_pG5v8FB8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bbf85b8-cdd4-11e4-aa0d-705681abff85' LIMIT 1 [["organization_id", "5bc04a34-cdd4-11e4-bb37-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$z.JUAUUNBzdCNHrMADUH7OBr3p9Knm3e/5xkh0UiAqJxD6W22ouCu"], ["created_at", "2015-03-19 01:07:48.415334"], ["updated_at", "2015-03-19 01:07:48.415334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.418778"], ["updated_at", "2015-03-19 01:07:48.418778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '5bc288d0-cdd4-11e4-a114-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "5bc288d0-cdd4-11e4-a114-705681abff85"], ["created_at", "2015-03-19 01:07:48.422001"], ["updated_at", "2015-03-19 01:07:48.422001"], ["token", "fScNpzrUZxbUNL2YJu0GuypJuNB2ehWeZHXcPRF-0TQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bc20a2c-cdd4-11e4-9a27-705681abff85' LIMIT 1 [["organization_id", "5bc288d0-cdd4-11e4-a114-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$UU35upda14iKL75GlpzMDe3fsZtqC1f8zqay7V72Af.OmA0rx/4um"], ["created_at", "2015-03-19 01:07:48.432366"], ["updated_at", "2015-03-19 01:07:48.432366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.437650"], ["updated_at", "2015-03-19 01:07:48.437650"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '5bc58ddc-cdd4-11e4-bf7e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "5bc58ddc-cdd4-11e4-bf7e-705681abff85"], ["created_at", "2015-03-19 01:07:48.444496"], ["updated_at", "2015-03-19 01:07:48.444496"], ["token", "Tt9rAg-o1hB5AF9xXg3YXnhpIKy0xdcYXgR94LNRhO0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bc4a5de-cdd4-11e4-b56d-705681abff85' LIMIT 1 [["organization_id", "5bc58ddc-cdd4-11e4-bf7e-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Fd3BHirgoUi33zGFJDCDKe/XIjsGAALUKcRNDr.r9wl.IIPxzGKSm"], ["created_at", "2015-03-19 01:07:48.455944"], ["updated_at", "2015-03-19 01:07:48.455944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.462010"], ["updated_at", "2015-03-19 01:07:48.462010"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bc83bd6-cdd4-11e4-b1f7-705681abff85' LIMIT 1 [["organization_id", "5bc955ca-cdd4-11e4-8a26-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$K.bNi/izeTODhPwx2lHwqOJtpJcWRpDbRWvadCpoSdaIEu2bzm53y"], ["created_at", "2015-03-19 01:07:48.475504"], ["updated_at", "2015-03-19 01:07:48.475504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.479492"], ["updated_at", "2015-03-19 01:07:48.479492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bcb44f2-cdd4-11e4-834a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bcbce36-cdd4-11e4-8964-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bcb44f2-cdd4-11e4-834a-705681abff85"], ["organization_id", "5bcbce36-cdd4-11e4-8964-705681abff85"], ["created_at", "2015-03-19 01:07:48.483041"], ["updated_at", "2015-03-19 01:07:48.483041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '5bcbce36-cdd4-11e4-8964-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "5bcbce36-cdd4-11e4-8964-705681abff85"], ["created_at", "2015-03-19 01:07:48.487968"], ["updated_at", "2015-03-19 01:07:48.487968"], ["token", "rTBr2eZ6-27hXRFrL1XTaYd8_ANhKEX4Uk7RB05qPwM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bcb44f2-cdd4-11e4-834a-705681abff85' LIMIT 1 [["organization_id", "5bcbce36-cdd4-11e4-8964-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$C5hD63R.LkxBx5Oc7DkKieygz4ihPIRrYp///VbwPymbx3iRrlem6"], ["created_at", "2015-03-19 01:07:48.495432"], ["updated_at", "2015-03-19 01:07:48.495432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.498590"], ["updated_at", "2015-03-19 01:07:48.498590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bce3e0a-cdd4-11e4-92c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bceb6aa-cdd4-11e4-a6d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bce3e0a-cdd4-11e4-92c1-705681abff85"], ["organization_id", "5bceb6aa-cdd4-11e4-a6d6-705681abff85"], ["created_at", "2015-03-19 01:07:48.502165"], ["updated_at", "2015-03-19 01:07:48.502165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '5bceb6aa-cdd4-11e4-a6d6-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "5bceb6aa-cdd4-11e4-a6d6-705681abff85"], ["created_at", "2015-03-19 01:07:48.505686"], ["updated_at", "2015-03-19 01:07:48.505686"], ["token", "qnIJAyM3eNib6KBOwaApFkd9AcLSoLqEk27ufJs8g0Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bce3e0a-cdd4-11e4-92c1-705681abff85' LIMIT 1 [["organization_id", "5bceb6aa-cdd4-11e4-a6d6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$h/BzfhomXGAjCWzdE4Y8nObnX.r25iRIkRAYg4I9Y/8KhQRdEL21S"], ["created_at", "2015-03-19 01:07:48.515067"], ["updated_at", "2015-03-19 01:07:48.515067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.518341"], ["updated_at", "2015-03-19 01:07:48.518341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bd13baa-cdd4-11e4-8c28-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bd1bc1a-cdd4-11e4-8c94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bd13baa-cdd4-11e4-8c28-705681abff85"], ["organization_id", "5bd1bc1a-cdd4-11e4-8c94-705681abff85"], ["created_at", "2015-03-19 01:07:48.521788"], ["updated_at", "2015-03-19 01:07:48.521788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '5bd1bc1a-cdd4-11e4-8c94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "5bd1bc1a-cdd4-11e4-8c94-705681abff85"], ["created_at", "2015-03-19 01:07:48.525544"], ["updated_at", "2015-03-19 01:07:48.525544"], ["token", "1nT1KhQtXLw4YsB2D2HECDVayAfeAobSTmEh1WhfHFY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bd13baa-cdd4-11e4-8c28-705681abff85' LIMIT 1 [["organization_id", "5bd1bc1a-cdd4-11e4-8c94-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$QOZSOGMdns/YTR3bmQ33n.lSsUABvcNO4k9IH6WWyEXgesuRpzka."], ["created_at", "2015-03-19 01:07:48.533731"], ["updated_at", "2015-03-19 01:07:48.533731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.537138"], ["updated_at", "2015-03-19 01:07:48.537138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bd4192e-cdd4-11e4-98ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bd49944-cdd4-11e4-9aa3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bd4192e-cdd4-11e4-98ad-705681abff85"], ["organization_id", "5bd49944-cdd4-11e4-9aa3-705681abff85"], ["created_at", "2015-03-19 01:07:48.540422"], ["updated_at", "2015-03-19 01:07:48.540422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '5bd49944-cdd4-11e4-9aa3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "5bd49944-cdd4-11e4-9aa3-705681abff85"], ["created_at", "2015-03-19 01:07:48.543891"], ["updated_at", "2015-03-19 01:07:48.543891"], ["token", "6bv9Bqdr2ihF3b59jmXDzG-kKHXLlQHeoq8rDCTVgGQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bd4192e-cdd4-11e4-98ad-705681abff85' LIMIT 1 [["organization_id", "5bd49944-cdd4-11e4-9aa3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$sUSgtqv1R4XnaP5YYOOPN.In0cPDwxCHSKZo8E3YReF2xA87c95N2"], ["created_at", "2015-03-19 01:07:48.551406"], ["updated_at", "2015-03-19 01:07:48.551406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.554636"], ["updated_at", "2015-03-19 01:07:48.554636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bd6c908-cdd4-11e4-b967-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bd74798-cdd4-11e4-b05a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bd6c908-cdd4-11e4-b967-705681abff85"], ["organization_id", "5bd74798-cdd4-11e4-b05a-705681abff85"], ["created_at", "2015-03-19 01:07:48.558458"], ["updated_at", "2015-03-19 01:07:48.558458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5bd6c908-cdd4-11e4-b967-705681abff85' LIMIT 1 [["organization_id", "5bd74798-cdd4-11e4-b05a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$FKp8Zyo9sWsmNOfGwmBzjewJzA0qD2TOfN3juEjfQ5VR0atj1VKkK"], ["created_at", "2015-03-19 01:07:48.566278"], ["updated_at", "2015-03-19 01:07:48.566278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$9sPBq1jwUHvPkO5B1Gk9/uPu/m3F53xJgpZMezV7lz2eRggZpgTpy"], ["created_at", "2015-03-19 01:07:48.579158"], ["updated_at", "2015-03-19 01:07:48.579158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.584038"], ["updated_at", "2015-03-19 01:07:48.584038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bdb0c34-cdd4-11e4-ad26-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bdbcc8c-cdd4-11e4-88fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bdb0c34-cdd4-11e4-ad26-705681abff85"], ["organization_id", "5bdbcc8c-cdd4-11e4-88fb-705681abff85"], ["created_at", "2015-03-19 01:07:48.588067"], ["updated_at", "2015-03-19 01:07:48.588067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$EfjkfPJx/Wj/fk9QwzFa.uuTokn8J.yYxuxZnsrKmScSF2ndva972"], ["created_at", "2015-03-19 01:07:48.594012"], ["updated_at", "2015-03-19 01:07:48.594012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.597533"], ["updated_at", "2015-03-19 01:07:48.597533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bdd4a1c-cdd4-11e4-bd59-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bddd266-cdd4-11e4-a96c-705681abff85') LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5bdd4a1c-cdd4-11e4-bd59-705681abff85"], ["organization_id", "5bddd266-cdd4-11e4-a96c-705681abff85"], ["created_at", "2015-03-19 01:07:48.603215"], ["updated_at", "2015-03-19 01:07:48.603215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5bdd4a1c-cdd4-11e4-bd59-705681abff85' LIMIT 1 [["organization_id", "5bddd266-cdd4-11e4-a96c-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$V6BltoO8nx1lAKNuapbSH.B/CSNZMAKClZDq3s.frcRQu.lpUhsYi"], ["created_at", "2015-03-19 01:07:48.614234"], ["updated_at", "2015-03-19 01:07:48.614234"]] [36m (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.618091"], ["updated_at", "2015-03-19 01:07:48.618091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5be06b3e-cdd4-11e4-b202-705681abff85' AND "clubhouse_memberships"."organization_id" = '5be0f8c4-cdd4-11e4-9985-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5be06b3e-cdd4-11e4-b202-705681abff85"], ["organization_id", "5be0f8c4-cdd4-11e4-9985-705681abff85"], ["created_at", "2015-03-19 01:07:48.621863"], ["updated_at", "2015-03-19 01:07:48.621863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5be06b3e-cdd4-11e4-b202-705681abff85' LIMIT 1 [["organization_id", "5be0f8c4-cdd4-11e4-9985-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$E/EcUkOHE2UNqf6DPejDl.5W8dL.ZDW6O3tZSfVemjZvVqRolaJfO"], ["created_at", "2015-03-19 01:07:48.663621"], ["updated_at", "2015-03-19 01:07:48.663621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.669473"], ["updated_at", "2015-03-19 01:07:48.669473"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5be803b2-cdd4-11e4-91ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '5be8f754-cdd4-11e4-b7ed-705681abff85') LIMIT 1 SQL (19.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5be803b2-cdd4-11e4-91ef-705681abff85"], ["organization_id", "5be8f754-cdd4-11e4-b7ed-705681abff85"], ["created_at", "2015-03-19 01:07:48.676677"], ["updated_at", "2015-03-19 01:07:48.676677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$w3WX8aAQwUtQn53V.6sCYeuh7vraqssVoYp99BpUOxHTcLGcvTBPW"], ["created_at", "2015-03-19 01:07:48.707808"], ["updated_at", "2015-03-19 01:07:48.707808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.717066"], ["updated_at", "2015-03-19 01:07:48.717066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5beed110-cdd4-11e4-ba30-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bf03744-cdd4-11e4-a048-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5beed110-cdd4-11e4-ba30-705681abff85"], ["organization_id", "5bf03744-cdd4-11e4-a048-705681abff85"], ["created_at", "2015-03-19 01:07:48.724525"], ["updated_at", "2015-03-19 01:07:48.724525"]]  (4.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5beed110-cdd4-11e4-ba30-705681abff85' LIMIT 1 [["organization_id", "5bf03744-cdd4-11e4-a048-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$5feKHGfJ.sAO7JvV6FsijutYmb.ht3e8LnJZZuTH9mu0QYlsZSncq"], ["created_at", "2015-03-19 01:07:48.790122"], ["updated_at", "2015-03-19 01:07:48.790122"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.802449"], ["updated_at", "2015-03-19 01:07:48.802449"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5bfb78ac-cdd4-11e4-8417-705681abff85' AND "clubhouse_memberships"."organization_id" = '5bfd34b2-cdd4-11e4-a76f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5bfb78ac-cdd4-11e4-8417-705681abff85"], ["organization_id", "5bfd34b2-cdd4-11e4-a76f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.812822"], ["updated_at", "2015-03-19 01:07:48.812822"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$ZEWbArigcBWIaxBwpCWY0O59w9BqwlPO6TbDmlGsgf2ANA6Exao2C"], ["created_at", "2015-03-19 01:07:48.827336"], ["updated_at", "2015-03-19 01:07:48.827336"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.834666"], ["updated_at", "2015-03-19 01:07:48.834666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c010506-cdd4-11e4-b5b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c022fc6-cdd4-11e4-bd82-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c010506-cdd4-11e4-b5b6-705681abff85"], ["organization_id", "5c022fc6-cdd4-11e4-bd82-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.841496"], ["updated_at", "2015-03-19 01:07:48.841496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c010506-cdd4-11e4-b5b6-705681abff85' LIMIT 1 [["organization_id", "5c022fc6-cdd4-11e4-bd82-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Xoe0tLEBZtpG4rA5kr9aDue4o2oWyJWQ1AWLm4W/xH8cs68bmPIHe"], ["created_at", "2015-03-19 01:07:48.853117"], ["updated_at", "2015-03-19 01:07:48.853117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.859495"], ["updated_at", "2015-03-19 01:07:48.859495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c04e414-cdd4-11e4-9eac-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c05df86-cdd4-11e4-8f5f-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c04e414-cdd4-11e4-9eac-705681abff85"], ["organization_id", "5c05df86-cdd4-11e4-8f5f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.866598"], ["updated_at", "2015-03-19 01:07:48.866598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c04e414-cdd4-11e4-9eac-705681abff85' LIMIT 1 [["organization_id", "5c05df86-cdd4-11e4-8f5f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$x9pacNatx6Et3SM/u71rl.o4x/A.pL95wF5vp7s17jHMbNgV8EyJ6"], ["created_at", "2015-03-19 01:07:48.878310"], ["updated_at", "2015-03-19 01:07:48.878310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.883553"], ["updated_at", "2015-03-19 01:07:48.883553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c08bdaa-cdd4-11e4-ba39-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c097f06-cdd4-11e4-8bd6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c08bdaa-cdd4-11e4-ba39-705681abff85"], ["organization_id", "5c097f06-cdd4-11e4-8bd6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.889278"], ["updated_at", "2015-03-19 01:07:48.889278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$5bObav3XFa6unLP0xacdIuGmQswk15lpww6Bf4JHrAtPXWi8UTAaC"], ["created_at", "2015-03-19 01:07:48.896763"], ["updated_at", "2015-03-19 01:07:48.896763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.903433"], ["updated_at", "2015-03-19 01:07:48.903433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c0ba178-cdd4-11e4-a2c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c0cb0ea-cdd4-11e4-bebe-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c0ba178-cdd4-11e4-a2c8-705681abff85"], ["organization_id", "5c0cb0ea-cdd4-11e4-bebe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.911026"], ["updated_at", "2015-03-19 01:07:48.911026"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c0ba178-cdd4-11e4-a2c8-705681abff85' LIMIT 1 [["organization_id", "5c0cb0ea-cdd4-11e4-bebe-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$3D2TauOJK9lqWUoXeV6ySeQuY8BzB4e97jCvsibfED4JBd2qxUlJW"], ["created_at", "2015-03-19 01:07:48.919578"], ["updated_at", "2015-03-19 01:07:48.919578"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.923873"], ["updated_at", "2015-03-19 01:07:48.923873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$1rsO9j5whzjKoy8i.ceIFONTOzkeq99355kNuMTJJ9EvUqwYaXBcW"], ["created_at", "2015-03-19 01:07:48.930107"], ["updated_at", "2015-03-19 01:07:48.930107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.934003"], ["updated_at", "2015-03-19 01:07:48.934003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c1099ee-cdd4-11e4-ab47-705681abff85' LIMIT 1 [["organization_id", "5c112eea-cdd4-11e4-bbf0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$J3iRts6TQqJRpRsSUooYwO2QP3WXsM1d9nVYtqKvOGKUm2MwjaKOm"], ["created_at", "2015-03-19 01:07:48.941806"], ["updated_at", "2015-03-19 01:07:48.941806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.946554"], ["updated_at", "2015-03-19 01:07:48.946554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c12636e-cdd4-11e4-87b9-705681abff85' LIMIT 1 [["organization_id", "5c1319a8-cdd4-11e4-b4d1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$IyjXghct1Sqn4quLlREDIeH0NkAwAfSfbG8vyrbTxCgRyVaYiQxVG"], ["created_at", "2015-03-19 01:07:48.956160"], ["updated_at", "2015-03-19 01:07:48.956160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.959818"], ["updated_at", "2015-03-19 01:07:48.959818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$5SFw87Kwq/lE..HhBobsw..tZptqBuGcEaWr0w5VpU56xYw3o7BvG"], ["created_at", "2015-03-19 01:07:48.966771"], ["updated_at", "2015-03-19 01:07:48.966771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.971021"], ["updated_at", "2015-03-19 01:07:48.971021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c162ddc-cdd4-11e4-bdc5-705681abff85' LIMIT 1 [["organization_id", "5c16d480-cdd4-11e4-a691-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$JvnReHvwFcQPoC.h59PGZOMI58k4NJ5tbwrEH7Pk4az1LePgqc4Ya"], ["created_at", "2015-03-19 01:07:48.979675"], ["updated_at", "2015-03-19 01:07:48.979675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:48.983389"], ["updated_at", "2015-03-19 01:07:48.983389"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c1824fc-cdd4-11e4-a6e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c18b598-cdd4-11e4-9323-705681abff85') LIMIT 1 SQL (3.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c1824fc-cdd4-11e4-a6e8-705681abff85"], ["organization_id", "5c18b598-cdd4-11e4-9323-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:48.987938"], ["updated_at", "2015-03-19 01:07:48.987938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c1824fc-cdd4-11e4-a6e8-705681abff85' LIMIT 1 [["organization_id", "5c18b598-cdd4-11e4-9323-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$KmdQnFFVbQFoqBi9t1XlN..S3AZbJzE0Lszf2u0vA/ScSU4GdYHYi"], ["created_at", "2015-03-19 01:07:49.000896"], ["updated_at", "2015-03-19 01:07:49.000896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.005646"], ["updated_at", "2015-03-19 01:07:49.005646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c1b70bc-cdd4-11e4-a157-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c1c228c-cdd4-11e4-8e39-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c1b70bc-cdd4-11e4-a157-705681abff85"], ["organization_id", "5c1c228c-cdd4-11e4-8e39-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:49.010381"], ["updated_at", "2015-03-19 01:07:49.010381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$tUvNE6qa2ugLzLlOGP4WDu.vr6/HI.MiK7TDjS65NluminT63Kb96"], ["created_at", "2015-03-19 01:07:49.016629"], ["updated_at", "2015-03-19 01:07:49.016629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c1dd2f8-cdd4-11e4-aff1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c1c228c-cdd4-11e4-8e39-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c1dd2f8-cdd4-11e4-aff1-705681abff85"], ["organization_id", "5c1c228c-cdd4-11e4-8e39-705681abff85"], ["created_at", "2015-03-19 01:07:49.021226"], ["updated_at", "2015-03-19 01:07:49.021226"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$pp1GtjyeKBgokFuN7SgOq.tgxIUKhHDKYPhOU2m7zDyAbGnYOmGj6"], ["created_at", "2015-03-19 01:07:49.029533"], ["updated_at", "2015-03-19 01:07:49.029533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.036094"], ["updated_at", "2015-03-19 01:07:49.036094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c1fee58-cdd4-11e4-b816-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c20c5a8-cdd4-11e4-b60e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c1fee58-cdd4-11e4-b816-705681abff85"], ["organization_id", "5c20c5a8-cdd4-11e4-b60e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:49.041264"], ["updated_at", "2015-03-19 01:07:49.041264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$Cw.7RQ0JPNsKJL2FznwEQ.i5/e2A/s8vGBsKRBgCiFxIGaccjIIzO"], ["created_at", "2015-03-19 01:07:49.047913"], ["updated_at", "2015-03-19 01:07:49.047913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c22ac88-cdd4-11e4-a8d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c20c5a8-cdd4-11e4-b60e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c22ac88-cdd4-11e4-a8d0-705681abff85"], ["organization_id", "5c20c5a8-cdd4-11e4-b60e-705681abff85"], ["created_at", "2015-03-19 01:07:49.053123"], ["updated_at", "2015-03-19 01:07:49.053123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c1fee58-cdd4-11e4-b816-705681abff85' LIMIT 1 [["organization_id", "5c20c5a8-cdd4-11e4-b60e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$7qpO4Mg9o1jD2AJ3tOJThOhBGvDKrW62yw6V5hq0ErjcXVsISE1fu"], ["created_at", "2015-03-19 01:07:49.061488"], ["updated_at", "2015-03-19 01:07:49.061488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.065447"], ["updated_at", "2015-03-19 01:07:49.065447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c24ad30-cdd4-11e4-8254-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c254056-cdd4-11e4-b135-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c24ad30-cdd4-11e4-8254-705681abff85"], ["organization_id", "5c254056-cdd4-11e4-b135-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:49.070127"], ["updated_at", "2015-03-19 01:07:49.070127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$T7n7Ey8y1SPS2yyjXnkODO3khzXt3vK3z5YOcU6s/bT6ywG8tJrhG"], ["created_at", "2015-03-19 01:07:49.076911"], ["updated_at", "2015-03-19 01:07:49.076911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c270558-cdd4-11e4-8aed-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c254056-cdd4-11e4-b135-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c270558-cdd4-11e4-8aed-705681abff85"], ["organization_id", "5c254056-cdd4-11e4-b135-705681abff85"], ["created_at", "2015-03-19 01:07:49.081112"], ["updated_at", "2015-03-19 01:07:49.081112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c24ad30-cdd4-11e4-8254-705681abff85' LIMIT 1 [["organization_id", "5c254056-cdd4-11e4-b135-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$2X4ZClfOftk.y932fKP7AumzD0fvU2qINTwpkQr9akLOY6jeysZGG"], ["created_at", "2015-03-19 01:07:49.089400"], ["updated_at", "2015-03-19 01:07:49.089400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.093849"], ["updated_at", "2015-03-19 01:07:49.093849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c28e904-cdd4-11e4-ad05-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c298f26-cdd4-11e4-a263-705681abff85') LIMIT 1 SQL (4.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c28e904-cdd4-11e4-ad05-705681abff85"], ["organization_id", "5c298f26-cdd4-11e4-a263-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:49.097871"], ["updated_at", "2015-03-19 01:07:49.097871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$A5cd82aTcYZv1yVDSg6JnOLkfJBLTqpfF3.qnvUN9QdFUuQcOFxKG"], ["created_at", "2015-03-19 01:07:49.108788"], ["updated_at", "2015-03-19 01:07:49.108788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c2bdb1e-cdd4-11e4-87f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c298f26-cdd4-11e4-a263-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c2bdb1e-cdd4-11e4-87f7-705681abff85"], ["organization_id", "5c298f26-cdd4-11e4-a263-705681abff85"], ["created_at", "2015-03-19 01:07:49.113213"], ["updated_at", "2015-03-19 01:07:49.113213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c28e904-cdd4-11e4-ad05-705681abff85' LIMIT 1 [["organization_id", "5c298f26-cdd4-11e4-a263-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$q5YUpZt.3IDjdKRDPHSwPOfgadKyran27vnpbS91QERs9V/Mj/KSW"], ["created_at", "2015-03-19 01:07:49.121450"], ["updated_at", "2015-03-19 01:07:49.121450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.125001"], ["updated_at", "2015-03-19 01:07:49.125001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c2dc618-cdd4-11e4-b483-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c2e5272-cdd4-11e4-a7b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c2dc618-cdd4-11e4-b483-705681abff85"], ["organization_id", "5c2e5272-cdd4-11e4-a7b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:49.128993"], ["updated_at", "2015-03-19 01:07:49.128993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$v//bvmbx0VXLIZk1vOrR/OH54KyXjTbcgfKpqaiWwBGiAHojEvpye"], ["created_at", "2015-03-19 01:07:49.136699"], ["updated_at", "2015-03-19 01:07:49.136699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.140961"], ["updated_at", "2015-03-19 01:07:49.140961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c3028d6-cdd4-11e4-be40-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c30c278-cdd4-11e4-a79e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c3028d6-cdd4-11e4-be40-705681abff85"], ["organization_id", "5c30c278-cdd4-11e4-a79e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:49.145021"], ["updated_at", "2015-03-19 01:07:49.145021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c3028d6-cdd4-11e4-be40-705681abff85' LIMIT 1 [["organization_id", "5c30c278-cdd4-11e4-a79e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$a2gzO67SYL0m9YORayHa4.Xhx4sRiGz85u4VDrnSHRxoYSI06RhGe"], ["created_at", "2015-03-19 01:07:49.153291"], ["updated_at", "2015-03-19 01:07:49.153291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.157087"], ["updated_at", "2015-03-19 01:07:49.157087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c32a5ac-cdd4-11e4-afb3-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c333c74-cdd4-11e4-99f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c32a5ac-cdd4-11e4-afb3-705681abff85"], ["organization_id", "5c333c74-cdd4-11e4-99f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:49.161233"], ["updated_at", "2015-03-19 01:07:49.161233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c32a5ac-cdd4-11e4-afb3-705681abff85' LIMIT 1 [["organization_id", "5c333c74-cdd4-11e4-99f8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$uQDDYCTxb7xj/mQUmGbLaO4iZ2TbDJmscBZkHPqIOshJx69xLM3Va"], ["created_at", "2015-03-19 01:07:49.169449"], ["updated_at", "2015-03-19 01:07:49.169449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.173366"], ["updated_at", "2015-03-19 01:07:49.173366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c351a1c-cdd4-11e4-8195-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c35b698-cdd4-11e4-8052-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c351a1c-cdd4-11e4-8195-705681abff85"], ["organization_id", "5c35b698-cdd4-11e4-8052-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:07:49.177461"], ["updated_at", "2015-03-19 01:07:49.177461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c351a1c-cdd4-11e4-8195-705681abff85' LIMIT 1 [["organization_id", "5c35b698-cdd4-11e4-8052-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$PG1rwCQBV4raAbQSxrAYdelf8UaR4n71KDOzxLzP9KkTaUBlat9RK"], ["created_at", "2015-03-19 01:07:49.185507"], ["updated_at", "2015-03-19 01:07:49.185507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$AjlVK2.NW9g3eAa4XIuuKuxSbva3pA.dG4usdxiw.US/mXrBYlnVq"], ["created_at", "2015-03-19 01:07:49.190453"], ["updated_at", "2015-03-19 01:07:49.190453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.194492"], ["updated_at", "2015-03-19 01:07:49.194492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c3852f4-cdd4-11e4-ad7d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c38ec46-cdd4-11e4-85bd-705681abff85') LIMIT 1 SQL (5.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c3852f4-cdd4-11e4-ad7d-705681abff85"], ["organization_id", "5c38ec46-cdd4-11e4-85bd-705681abff85"], ["created_at", "2015-03-19 01:07:49.198627"], ["updated_at", "2015-03-19 01:07:49.198627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$KGxZKrQgFiXJ1vXZRjN2hOpc1dZQw8ZwYuxTw/i4Jygb7E9of5dze"], ["created_at", "2015-03-19 01:07:49.211423"], ["updated_at", "2015-03-19 01:07:49.211423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$ti0VmFW/4uCQBaj.FCaK2uvcY2stLaA./tKHV.OCHxmJ3gh4lcKUq"], ["created_at", "2015-03-19 01:07:49.216211"], ["updated_at", "2015-03-19 01:07:49.216211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.220008"], ["updated_at", "2015-03-19 01:07:49.220008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c3c3946-cdd4-11e4-9de2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c3cce60-cdd4-11e4-a854-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c3c3946-cdd4-11e4-9de2-705681abff85"], ["organization_id", "5c3cce60-cdd4-11e4-a854-705681abff85"], ["created_at", "2015-03-19 01:07:49.223636"], ["updated_at", "2015-03-19 01:07:49.223636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c3b853c-cdd4-11e4-a233-705681abff85' LIMIT 1 [["organization_id", "5c3cce60-cdd4-11e4-a854-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$3wUr5ZzpS3Xu8A2ydBzvz.aLyPqZyEGJNzPBZUp8UC/Dm51qAuQjO"], ["created_at", "2015-03-19 01:07:49.231539"], ["updated_at", "2015-03-19 01:07:49.231539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$HayebqGGsTsXOovqDUWTs.nZbhNNJXh9uFtXHya0X19xn47CcMboK"], ["created_at", "2015-03-19 01:07:49.236079"], ["updated_at", "2015-03-19 01:07:49.236079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.239280"], ["updated_at", "2015-03-19 01:07:49.239280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c3f405a-cdd4-11e4-a999-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c3fbd96-cdd4-11e4-b5b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c3f405a-cdd4-11e4-a999-705681abff85"], ["organization_id", "5c3fbd96-cdd4-11e4-b5b6-705681abff85"], ["created_at", "2015-03-19 01:07:49.247850"], ["updated_at", "2015-03-19 01:07:49.247850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c3e91e6-cdd4-11e4-964f-705681abff85' LIMIT 1 [["organization_id", "5c3fbd96-cdd4-11e4-b5b6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$sW2IhOGdHEQTtoGNQKzt6uPnQwdV7Rih2Ob.JxabVbHZ4Mh8IrG4q"], ["created_at", "2015-03-19 01:07:49.255228"], ["updated_at", "2015-03-19 01:07:49.255228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$TVKtNVS/Oo1c0hOroP6lxusVnxdyOmH0UYO2JRc3Vy8uwYl2KpP3q"], ["created_at", "2015-03-19 01:07:49.259550"], ["updated_at", "2015-03-19 01:07:49.259550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.262853"], ["updated_at", "2015-03-19 01:07:49.262853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c42d558-cdd4-11e4-b417-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c43553c-cdd4-11e4-9d57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c42d558-cdd4-11e4-b417-705681abff85"], ["organization_id", "5c43553c-cdd4-11e4-9d57-705681abff85"], ["created_at", "2015-03-19 01:07:49.266689"], ["updated_at", "2015-03-19 01:07:49.266689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c422eaa-cdd4-11e4-824a-705681abff85' LIMIT 1 [["organization_id", "5c43553c-cdd4-11e4-9d57-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$l2UutxA04Q5sGWCJ6PAjDOGTcnuhFgztflDElqj/IFL1kKGh2A1du"], ["created_at", "2015-03-19 01:07:49.274290"], ["updated_at", "2015-03-19 01:07:49.274290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.277886"], ["updated_at", "2015-03-19 01:07:49.277886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c4515b6-cdd4-11e4-81c2-705681abff85' LIMIT 1 [["organization_id", "5c45a2a6-cdd4-11e4-8577-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$BjyoAvmbZSIkaDB7qkKJ9OrgwOQ.plakNMeP0Ej5Jjc2n1PEhc0VC"], ["created_at", "2015-03-19 01:07:49.287576"], ["updated_at", "2015-03-19 01:07:49.287576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.290869"], ["updated_at", "2015-03-19 01:07:49.290869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c471f00-cdd4-11e4-8b10-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c479bd8-cdd4-11e4-b8eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c471f00-cdd4-11e4-8b10-705681abff85"], ["organization_id", "5c479bd8-cdd4-11e4-b8eb-705681abff85"], ["created_at", "2015-03-19 01:07:49.294056"], ["updated_at", "2015-03-19 01:07:49.294056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$31w5VZjATrQGR2VbUcXnl.vg3Ja2UxrolR4l01ky81wiQ3.U9inle"], ["created_at", "2015-03-19 01:07:49.299899"], ["updated_at", "2015-03-19 01:07:49.299899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.303920"], ["updated_at", "2015-03-19 01:07:49.303920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c48ff8c-cdd4-11e4-b0c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c499b5e-cdd4-11e4-a349-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c48ff8c-cdd4-11e4-b0c9-705681abff85"], ["organization_id", "5c499b5e-cdd4-11e4-a349-705681abff85"], ["created_at", "2015-03-19 01:07:49.307823"], ["updated_at", "2015-03-19 01:07:49.307823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c48ff8c-cdd4-11e4-b0c9-705681abff85' LIMIT 1 [["organization_id", "5c499b5e-cdd4-11e4-a349-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$d0QjC6/qDu7wxDozG834HOsNQ3GD1Ee2Vaxi2XVcU30Gvs57unRpi"], ["created_at", "2015-03-19 01:07:49.315177"], ["updated_at", "2015-03-19 01:07:49.315177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.318574"], ["updated_at", "2015-03-19 01:07:49.318574"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c4b5296-cdd4-11e4-8373-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c4bd84c-cdd4-11e4-8647-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c4b5296-cdd4-11e4-8373-705681abff85"], ["organization_id", "5c4bd84c-cdd4-11e4-8647-705681abff85"], ["created_at", "2015-03-19 01:07:49.323121"], ["updated_at", "2015-03-19 01:07:49.323121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c4b5296-cdd4-11e4-8373-705681abff85' LIMIT 1 [["organization_id", "5c4bd84c-cdd4-11e4-8647-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$I.dbpEDo6BZQTyGAvQKWqeyER8zy25KT0jQ3F6sbRONNTYIzfSHj6"], ["created_at", "2015-03-19 01:07:49.333120"], ["updated_at", "2015-03-19 01:07:49.333120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.336590"], ["updated_at", "2015-03-19 01:07:49.336590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c4e12c4-cdd4-11e4-9567-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c4e99ec-cdd4-11e4-aafa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c4e12c4-cdd4-11e4-9567-705681abff85"], ["organization_id", "5c4e99ec-cdd4-11e4-aafa-705681abff85"], ["created_at", "2015-03-19 01:07:49.340090"], ["updated_at", "2015-03-19 01:07:49.340090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c4e12c4-cdd4-11e4-9567-705681abff85' LIMIT 1 [["organization_id", "5c4e99ec-cdd4-11e4-aafa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$vBQ2IoPaFyCQx7q7I/1/YeAA9WmpFpaMRqlhQs9RjXYJRmduMU8ye"], ["created_at", "2015-03-19 01:07:49.347200"], ["updated_at", "2015-03-19 01:07:49.347200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:07:49.350363"], ["updated_at", "2015-03-19 01:07:49.350363"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c50355e-cdd4-11e4-96c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c50af20-cdd4-11e4-8735-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c50355e-cdd4-11e4-96c3-705681abff85"], ["organization_id", "5c50af20-cdd4-11e4-8735-705681abff85"], ["created_at", "2015-03-19 01:07:49.354591"], ["updated_at", "2015-03-19 01:07:49.354591"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c50355e-cdd4-11e4-96c3-705681abff85' LIMIT 1 [["organization_id", "5c50af20-cdd4-11e4-8735-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$i3Ht39n/a36xKBFcVysoFuQtZ6Xh.5COyrwWgTyBa9yNM62DtASNG"], ["created_at", "2015-03-19 01:08:00.318348"], ["updated_at", "2015-03-19 01:08:00.318348"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.385886"], ["user_id", "62de2584-cdd4-11e4-866e-705681abff85"], ["created_at", "2015-03-19 01:08:00.391839"], ["updated_at", "2015-03-19 01:08:00.391839"], ["token", "GZDjIwuThOWhD7w4g4PhYuq34SpakI0rqwwhCWVxP7U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.402051"], ["updated_at", "2015-03-19 01:08:00.402051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62de2584-cdd4-11e4-866e-705681abff85' AND "clubhouse_memberships"."organization_id" = '62e718e2-cdd4-11e4-8408-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62de2584-cdd4-11e4-866e-705681abff85"], ["organization_id", "62e718e2-cdd4-11e4-8408-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.413208"], ["updated_at", "2015-03-19 01:08:00.413208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-1" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.440786' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GZDjIwuThOWhD7w4g4PhYuq34SpakI0rqwwhCWVxP7U"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.448799"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.450068"], ["id", "62e59440-cdd4-11e4-9134-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-1"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62de2584-cdd4-11e4-866e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '62de2584-cdd4-11e4-866e-705681abff85' LIMIT 1 [["organization_id", "62e718e2-cdd4-11e4-8408-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "62e718e2-cdd4-11e4-8408-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 30ms (ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$v5kB3PAv6EUhgK11nWomk.pUntliZqZtBO6Wm6sKsoOySreaWm.La"], ["created_at", "2015-03-19 01:08:00.478395"], ["updated_at", "2015-03-19 01:08:00.478395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.480086"], ["user_id", "62f2b53a-cdd4-11e4-8750-705681abff85"], ["created_at", "2015-03-19 01:08:00.480887"], ["updated_at", "2015-03-19 01:08:00.480887"], ["token", "nf3LNalFqkxyMhzDWx2pJRJIRqNpMNEIwgfdamWwkB8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.484623"], ["updated_at", "2015-03-19 01:08:00.484623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62f2b53a-cdd4-11e4-8750-705681abff85' AND "clubhouse_memberships"."organization_id" = '62f3a5a8-cdd4-11e4-b978-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62f2b53a-cdd4-11e4-8750-705681abff85"], ["organization_id", "62f3a5a8-cdd4-11e4-b978-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.488092"], ["updated_at", "2015-03-19 01:08:00.488092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$F7yt/bJaZiQ0C5eatkflduBhJ5yQnCF6qO3ZScfY9/fZFTNJiO9MO"], ["created_at", "2015-03-19 01:08:00.498663"], ["updated_at", "2015-03-19 01:08:00.498663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.500507"], ["user_id", "62f5cc8e-cdd4-11e4-b880-705681abff85"], ["created_at", "2015-03-19 01:08:00.501275"], ["updated_at", "2015-03-19 01:08:00.501275"], ["token", "XHX2LPBHnOLOGOHjjQasascgjoBsUjCUWHaEMkfqnMs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.504696"], ["updated_at", "2015-03-19 01:08:00.504696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62f5cc8e-cdd4-11e4-b880-705681abff85' AND "clubhouse_memberships"."organization_id" = '62f6b3b0-cdd4-11e4-ba26-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62f5cc8e-cdd4-11e4-b880-705681abff85"], ["organization_id", "62f6b3b0-cdd4-11e4-ba26-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.507997"], ["updated_at", "2015-03-19 01:08:00.507997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/62f6b3b0-cdd4-11e4-ba26-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"62f6b3b0-cdd4-11e4-ba26-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.513096' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XHX2LPBHnOLOGOHjjQasascgjoBsUjCUWHaEMkfqnMs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.514656"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.515590"], ["id", "62f63764-cdd4-11e4-945c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "62f6b3b0-cdd4-11e4-ba26-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62f5cc8e-cdd4-11e4-b880-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '62f5cc8e-cdd4-11e4-b880-705681abff85' LIMIT 1 [["organization_id", "62f6b3b0-cdd4-11e4-ba26-705681abff85"]] Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$L0Mso91WZz.K/DUath1ReOkebsRQDiyWoG3ty73cB0XPnJMXKi1g6"], ["created_at", "2015-03-19 01:08:00.530534"], ["updated_at", "2015-03-19 01:08:00.530534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.532272"], ["user_id", "62faa916-cdd4-11e4-bd22-705681abff85"], ["created_at", "2015-03-19 01:08:00.533074"], ["updated_at", "2015-03-19 01:08:00.533074"], ["token", "9sjkw8m57mbWv86EB_-JM6pa3FcIWGh_LJoZJ6qDxFA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.536529"], ["updated_at", "2015-03-19 01:08:00.536529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62faa916-cdd4-11e4-bd22-705681abff85' AND "clubhouse_memberships"."organization_id" = '62fb91b4-cdd4-11e4-8926-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62faa916-cdd4-11e4-bd22-705681abff85"], ["organization_id", "62fb91b4-cdd4-11e4-8926-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.540248"], ["updated_at", "2015-03-19 01:08:00.540248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$MdeDn9e7U9mVX4aCo4.dreA9UWb2W6FcC82NoSODnRj/MiEfMwdie"], ["created_at", "2015-03-19 01:08:00.550515"], ["updated_at", "2015-03-19 01:08:00.550515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.552137"], ["user_id", "62fdb43a-cdd4-11e4-8735-705681abff85"], ["created_at", "2015-03-19 01:08:00.552910"], ["updated_at", "2015-03-19 01:08:00.552910"], ["token", "CGLk8pRrTuhH4djvg_nRgl0A88q7mOkXpsRm56UvfhM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.556153"], ["updated_at", "2015-03-19 01:08:00.556153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62fdb43a-cdd4-11e4-8735-705681abff85' AND "clubhouse_memberships"."organization_id" = '62fe8dc4-cdd4-11e4-8127-705681abff85') LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62fdb43a-cdd4-11e4-8735-705681abff85"], ["organization_id", "62fe8dc4-cdd4-11e4-8127-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.559589"], ["updated_at", "2015-03-19 01:08:00.559589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$OL/8FGC/A0BRBCTOIzXpceJvqc7vQtW7KP2HjrVZQzZFJa9cVpYzW"], ["created_at", "2015-03-19 01:08:00.577873"], ["updated_at", "2015-03-19 01:08:00.577873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.579984"], ["user_id", "6301ef14-cdd4-11e4-a33e-705681abff85"], ["created_at", "2015-03-19 01:08:00.580794"], ["updated_at", "2015-03-19 01:08:00.580794"], ["token", "3CUoaYVmMA6rqafkn6cqFVA6pB8nK0uWLA8420GDMr4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.584436"], ["updated_at", "2015-03-19 01:08:00.584436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6301ef14-cdd4-11e4-a33e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6302df64-cdd4-11e4-84e8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6301ef14-cdd4-11e4-a33e-705681abff85"], ["organization_id", "6302df64-cdd4-11e4-84e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.587887"], ["updated_at", "2015-03-19 01:08:00.587887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/6302df64-cdd4-11e4-84e8-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"6302df64-cdd4-11e4-84e8-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.594479' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3CUoaYVmMA6rqafkn6cqFVA6pB8nK0uWLA8420GDMr4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.595962"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.596934"], ["id", "63025832-cdd4-11e4-8aec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6302df64-cdd4-11e4-84e8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6301ef14-cdd4-11e4-a33e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6301ef14-cdd4-11e4-a33e-705681abff85' LIMIT 1 [["organization_id", "6302df64-cdd4-11e4-84e8-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6302df64-cdd4-11e4-84e8-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$jL0ufNt4Ffm1EY3e6UmDEe5NgGU7PxQksyJJXRDVixIHE0I75lrb6"], ["created_at", "2015-03-19 01:08:00.618641"], ["updated_at", "2015-03-19 01:08:00.618641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.620260"], ["user_id", "63081786-cdd4-11e4-aeff-705681abff85"], ["created_at", "2015-03-19 01:08:00.621077"], ["updated_at", "2015-03-19 01:08:00.621077"], ["token", "Rex-gkFJI1uEXsp-rGqN6beo7uqfz1SdfMrTUswxbEg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.624484"], ["updated_at", "2015-03-19 01:08:00.624484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63081786-cdd4-11e4-aeff-705681abff85' AND "clubhouse_memberships"."organization_id" = '6308fad4-cdd4-11e4-9ab6-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63081786-cdd4-11e4-aeff-705681abff85"], ["organization_id", "6308fad4-cdd4-11e4-9ab6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.640769"], ["updated_at", "2015-03-19 01:08:00.640769"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/6308fad4-cdd4-11e4-9ab6-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"6308fad4-cdd4-11e4-9ab6-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.651820' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Rex-gkFJI1uEXsp-rGqN6beo7uqfz1SdfMrTUswxbEg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.654133"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.655942"], ["id", "63087d5c-cdd4-11e4-b7ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6308fad4-cdd4-11e4-9ab6-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63081786-cdd4-11e4-aeff-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63081786-cdd4-11e4-aeff-705681abff85' LIMIT 1 [["organization_id", "6308fad4-cdd4-11e4-9ab6-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (12.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6308fad4-cdd4-11e4-9ab6-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 01:08:00.682374"], ["id", "6308fad4-cdd4-11e4-9ab6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 34ms (Views: 0.9ms | ActiveRecord: 15.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$yofCLwTAoJ8.VQTXwdG9ueVoYZlVXMRKGRMy3GDESNAj4kKcywStm"], ["created_at", "2015-03-19 01:08:00.701793"], ["updated_at", "2015-03-19 01:08:00.701793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.704457"], ["user_id", "6314dca0-cdd4-11e4-8098-705681abff85"], ["created_at", "2015-03-19 01:08:00.705638"], ["updated_at", "2015-03-19 01:08:00.705638"], ["token", "jUJHZl-qcO69CRfEkcTycZFC1bqstNK5RLLy5eFHnDA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.711893"], ["updated_at", "2015-03-19 01:08:00.711893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6314dca0-cdd4-11e4-8098-705681abff85' AND "clubhouse_memberships"."organization_id" = '63167218-cdd4-11e4-9d2f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6314dca0-cdd4-11e4-8098-705681abff85"], ["organization_id", "63167218-cdd4-11e4-9d2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.717680"], ["updated_at", "2015-03-19 01:08:00.717680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$vGzmfUaMDvkxwJa6SRoxguLWXh9KBUJ9lDhdzK/lUJOaFcyhGsn36"], ["created_at", "2015-03-19 01:08:00.731620"], ["updated_at", "2015-03-19 01:08:00.731620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.733431"], ["user_id", "63195ad2-cdd4-11e4-b728-705681abff85"], ["created_at", "2015-03-19 01:08:00.734196"], ["updated_at", "2015-03-19 01:08:00.734196"], ["token", "OOYM9i_-vnMXCFJhqFZqKQTYFGknkY6XdmMJ9LRrdiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.737774"], ["updated_at", "2015-03-19 01:08:00.737774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63195ad2-cdd4-11e4-b728-705681abff85' AND "clubhouse_memberships"."organization_id" = '631a44ce-cdd4-11e4-bd9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63195ad2-cdd4-11e4-b728-705681abff85"], ["organization_id", "631a44ce-cdd4-11e4-bd9e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.741295"], ["updated_at", "2015-03-19 01:08:00.741295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.749308' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OOYM9i_-vnMXCFJhqFZqKQTYFGknkY6XdmMJ9LRrdiY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.750885"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.752000"], ["id", "6319c4e0-cdd4-11e4-b036-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63195ad2-cdd4-11e4-b728-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$G3..1d/xuul99ygmCheVS.RQtjm0V.VpyE1zciU6eWc1.UUdeJe3C"], ["created_at", "2015-03-19 01:08:00.773852"], ["updated_at", "2015-03-19 01:08:00.773852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.775678"], ["user_id", "631fcbec-cdd4-11e4-9b8d-705681abff85"], ["created_at", "2015-03-19 01:08:00.776526"], ["updated_at", "2015-03-19 01:08:00.776526"], ["token", "MWRUytubj7IO6OxtdTBgf0nLfkONod4OPm5KR3C0pTk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.780133"], ["updated_at", "2015-03-19 01:08:00.780133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '631fcbec-cdd4-11e4-9b8d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6320bab6-cdd4-11e4-8d31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "631fcbec-cdd4-11e4-9b8d-705681abff85"], ["organization_id", "6320bab6-cdd4-11e4-8d31-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.783581"], ["updated_at", "2015-03-19 01:08:00.783581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.795412' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MWRUytubj7IO6OxtdTBgf0nLfkONod4OPm5KR3C0pTk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.796809"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.797730"], ["id", "63203834-cdd4-11e4-ad82-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "631fcbec-cdd4-11e4-9b8d-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.802556"], ["updated_at", "2015-03-19 01:08:00.802556"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "632431f0-cdd4-11e4-a9ec-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '631fcbec-cdd4-11e4-9b8d-705681abff85' AND "clubhouse_memberships"."organization_id" = '632431f0-cdd4-11e4-a9ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "631fcbec-cdd4-11e4-9b8d-705681abff85"], ["admin", "t"], ["organization_id", "632431f0-cdd4-11e4-a9ec-705681abff85"], ["created_at", "2015-03-19 01:08:00.807725"], ["updated_at", "2015-03-19 01:08:00.807725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.6ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$GS5CYWOpKJhfFjtjlCwE9eUOw0OBPOsHNTlx1Hu//FH3JDjnd5O5i"], ["created_at", "2015-03-19 01:08:00.816789"], ["updated_at", "2015-03-19 01:08:00.816789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.818378"], ["user_id", "63265412-cdd4-11e4-b292-705681abff85"], ["created_at", "2015-03-19 01:08:00.819160"], ["updated_at", "2015-03-19 01:08:00.819160"], ["token", "3HY4klA2iA2YzgFAuBVdynXzOhaoKFWVdIKyonVbek8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.822406"], ["updated_at", "2015-03-19 01:08:00.822406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63265412-cdd4-11e4-b292-705681abff85' AND "clubhouse_memberships"."organization_id" = '63272c70-cdd4-11e4-8e6d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63265412-cdd4-11e4-b292-705681abff85"], ["organization_id", "63272c70-cdd4-11e4-8e6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.825835"], ["updated_at", "2015-03-19 01:08:00.825835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$HS.t4qMV3j0Dohw8hcIqHutMzq8AkBMOLZ2BQAR2lIRYyaoY6lpMS"], ["created_at", "2015-03-19 01:08:00.835910"], ["updated_at", "2015-03-19 01:08:00.835910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.837485"], ["user_id", "63294000-cdd4-11e4-863b-705681abff85"], ["created_at", "2015-03-19 01:08:00.838278"], ["updated_at", "2015-03-19 01:08:00.838278"], ["token", "gUBPCQaaUBJcR00yHKRpaJu2vPY3kgxT9b99jmnoGxE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.841756"], ["updated_at", "2015-03-19 01:08:00.841756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63294000-cdd4-11e4-863b-705681abff85' AND "clubhouse_memberships"."organization_id" = '632a21a0-cdd4-11e4-8cce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63294000-cdd4-11e4-863b-705681abff85"], ["organization_id", "632a21a0-cdd4-11e4-8cce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.844985"], ["updated_at", "2015-03-19 01:08:00.844985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.850427' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gUBPCQaaUBJcR00yHKRpaJu2vPY3kgxT9b99jmnoGxE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.851873"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.852807"], ["id", "6329a6ee-cdd4-11e4-ac9c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$8zmgiD7DssU/ejTWD2p0wOSRTagOGGs3jY.HrWlACzaBAjxO.hxxe"], ["created_at", "2015-03-19 01:08:00.860306"], ["updated_at", "2015-03-19 01:08:00.860306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.863696"], ["user_id", "632cfac4-cdd4-11e4-a7b6-705681abff85"], ["created_at", "2015-03-19 01:08:00.865122"], ["updated_at", "2015-03-19 01:08:00.865122"], ["token", "0Au8kPB6JcDij5eRsmu7y2V57nQ_4zdqJ8j41p_cFuU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.868642"], ["updated_at", "2015-03-19 01:08:00.868642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '632cfac4-cdd4-11e4-a7b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '632e3b78-cdd4-11e4-9f8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "632cfac4-cdd4-11e4-a7b6-705681abff85"], ["organization_id", "632e3b78-cdd4-11e4-9f8a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.871951"], ["updated_at", "2015-03-19 01:08:00.871951"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-13" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.876465' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0Au8kPB6JcDij5eRsmu7y2V57nQ_4zdqJ8j41p_cFuU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.877880"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.878846"], ["id", "632dbdba-cdd4-11e4-81d7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "632cfac4-cdd4-11e4-a7b6-705681abff85"]] Completed 200 OK in 7ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$erfdo7C5pleXUGWk4TMFd.Ii.kgz3BUXMudpJjdWu7p.ufewfehsu"], ["created_at", "2015-03-19 01:08:00.892149"], ["updated_at", "2015-03-19 01:08:00.892149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.894309"], ["user_id", "6331e494-cdd4-11e4-9ca0-705681abff85"], ["created_at", "2015-03-19 01:08:00.895159"], ["updated_at", "2015-03-19 01:08:00.895159"], ["token", "v7dYeOW_OOUz9DSgaz475TJqoqAr-n5aRCQDPJi9fK4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.899123"], ["updated_at", "2015-03-19 01:08:00.899123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6331e494-cdd4-11e4-9ca0-705681abff85' AND "clubhouse_memberships"."organization_id" = '6332e5e2-cdd4-11e4-8825-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6331e494-cdd4-11e4-9ca0-705681abff85"], ["organization_id", "6332e5e2-cdd4-11e4-8825-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.902598"], ["updated_at", "2015-03-19 01:08:00.902598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$Tf.Hw8Y3zU57LHbZx6eRduqmb7lPx3QDg9PKFc2m6ew2Knx.uloXa"], ["created_at", "2015-03-19 01:08:00.913055"], ["updated_at", "2015-03-19 01:08:00.913055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.916196"], ["user_id", "63352d7a-cdd4-11e4-908a-705681abff85"], ["created_at", "2015-03-19 01:08:00.917344"], ["updated_at", "2015-03-19 01:08:00.917344"], ["token", "D-BI7Di-a7qo4kBa1zAPP3s5xSMVQ55iYa4aqKPx4n8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.920877"], ["updated_at", "2015-03-19 01:08:00.920877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63352d7a-cdd4-11e4-908a-705681abff85' AND "clubhouse_memberships"."organization_id" = '633633c8-cdd4-11e4-8701-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63352d7a-cdd4-11e4-908a-705681abff85"], ["organization_id", "633633c8-cdd4-11e4-8701-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.924188"], ["updated_at", "2015-03-19 01:08:00.924188"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-15" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-15", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.929058' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "D-BI7Di-a7qo4kBa1zAPP3s5xSMVQ55iYa4aqKPx4n8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.930499"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.931584"], ["id", "6335b72c-cdd4-11e4-9cc7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-15"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63352d7a-cdd4-11e4-908a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63352d7a-cdd4-11e4-908a-705681abff85' LIMIT 1 [["organization_id", "633633c8-cdd4-11e4-8701-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '633633c8-cdd4-11e4-8701-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$1CAW/8Q6JjLXqjPbV0VPTODQ/1Qm1IjYcvMu3NqV8FmsrHlxNzpSu"], ["created_at", "2015-03-19 01:08:00.945211"], ["updated_at", "2015-03-19 01:08:00.945211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.946782"], ["user_id", "6339ed74-cdd4-11e4-b551-705681abff85"], ["created_at", "2015-03-19 01:08:00.947831"], ["updated_at", "2015-03-19 01:08:00.947831"], ["token", "-fKGNAEqYDfRCJnEKi6s1Jz3vY_P3EnFqDXmXGXGJpI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.952185"], ["updated_at", "2015-03-19 01:08:00.952185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6339ed74-cdd4-11e4-b551-705681abff85' AND "clubhouse_memberships"."organization_id" = '633afbe2-cdd4-11e4-955c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6339ed74-cdd4-11e4-b551-705681abff85"], ["organization_id", "633afbe2-cdd4-11e4-955c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.955659"], ["updated_at", "2015-03-19 01:08:00.955659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-16" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-16", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.960450' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-fKGNAEqYDfRCJnEKi6s1Jz3vY_P3EnFqDXmXGXGJpI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.961955"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.963367"], ["id", "633a6a4c-cdd4-11e4-9ecf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6339ed74-cdd4-11e4-b551-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6339ed74-cdd4-11e4-b551-705681abff85' LIMIT 1 [["organization_id", "633afbe2-cdd4-11e4-955c-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '633afbe2-cdd4-11e4-955c-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 01:08:00.970064"], ["id", "633afbe2-cdd4-11e4-955c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$6B0dsTiqp.d9ZOUf.ja3/e4EKN6zpvbBuazeZtRfW.EduavRvwEp2"], ["created_at", "2015-03-19 01:08:00.977517"], ["updated_at", "2015-03-19 01:08:00.977517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:00.979380"], ["user_id", "633ee31a-cdd4-11e4-aab6-705681abff85"], ["created_at", "2015-03-19 01:08:00.980195"], ["updated_at", "2015-03-19 01:08:00.980195"], ["token", "VU12qX01tHBg4BGvCN5UzOeRznMgeBRj21aDBMyfyQ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:00.983506"], ["updated_at", "2015-03-19 01:08:00.983506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '633ee31a-cdd4-11e4-aab6-705681abff85' AND "clubhouse_memberships"."organization_id" = '633fc672-cdd4-11e4-9eaf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "633ee31a-cdd4-11e4-aab6-705681abff85"], ["organization_id", "633fc672-cdd4-11e4-9eaf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:00.986967"], ["updated_at", "2015-03-19 01:08:00.986967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-17" for 127.0.0.1 at 2015-03-18 18:08:00 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-17", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:00.991661' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VU12qX01tHBg4BGvCN5UzOeRznMgeBRj21aDBMyfyQ8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:00.993066"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:00.993996"], ["id", "633f48fa-cdd4-11e4-8d50-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-17"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "633ee31a-cdd4-11e4-aab6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '633ee31a-cdd4-11e4-aab6-705681abff85' LIMIT 1 [["organization_id", "633fc672-cdd4-11e4-9eaf-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$OxtXjw46pbRmXYRQY3BFSO1cCHQyxjNaIDcKVyHgnbCcNGJSpXnsm"], ["created_at", "2015-03-19 01:08:01.005111"], ["updated_at", "2015-03-19 01:08:01.005111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.006708"], ["user_id", "6343105c-cdd4-11e4-be09-705681abff85"], ["created_at", "2015-03-19 01:08:01.007610"], ["updated_at", "2015-03-19 01:08:01.007610"], ["token", "UQpjRLopJj9U6ukrvjTJhrW9S8Lq2adjmn-WIgAzBdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.011582"], ["updated_at", "2015-03-19 01:08:01.011582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6343105c-cdd4-11e4-be09-705681abff85' AND "clubhouse_memberships"."organization_id" = '63440e8a-cdd4-11e4-994f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6343105c-cdd4-11e4-be09-705681abff85"], ["organization_id", "63440e8a-cdd4-11e4-994f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.015452"], ["updated_at", "2015-03-19 01:08:01.015452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$HskgBegMzsDogeFKAm3hmOY6nTKH.dw6Peja3fiRYBrXKCs8/1aqO"], ["created_at", "2015-03-19 01:08:01.027937"], ["updated_at", "2015-03-19 01:08:01.027937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.029737"], ["user_id", "63469394-cdd4-11e4-a680-705681abff85"], ["created_at", "2015-03-19 01:08:01.030765"], ["updated_at", "2015-03-19 01:08:01.030765"], ["token", "houuWNIHQXm2nr-3U7oZi4FFlo27c1ln_J3dyHHKlgg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.034284"], ["updated_at", "2015-03-19 01:08:01.034284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63469394-cdd4-11e4-a680-705681abff85' AND "clubhouse_memberships"."organization_id" = '63478268-cdd4-11e4-bd21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63469394-cdd4-11e4-a680-705681abff85"], ["organization_id", "63478268-cdd4-11e4-bd21-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.037658"], ["updated_at", "2015-03-19 01:08:01.037658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/63478268-cdd4-11e4-bd21-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"63478268-cdd4-11e4-bd21-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.042264' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "houuWNIHQXm2nr-3U7oZi4FFlo27c1ln_J3dyHHKlgg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.043622"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.044590"], ["id", "634702fc-cdd4-11e4-adc3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63478268-cdd4-11e4-bd21-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63469394-cdd4-11e4-a680-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63469394-cdd4-11e4-a680-705681abff85' LIMIT 1 [["organization_id", "63478268-cdd4-11e4-bd21-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "63478268-cdd4-11e4-bd21-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$xqZwx6sZEX5.r0j1JBI3P.tSbvsaQUFQyGj.QmS9S03u2imlGG0R2"], ["created_at", "2015-03-19 01:08:01.055650"], ["updated_at", "2015-03-19 01:08:01.055650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.057606"], ["user_id", "634ac734-cdd4-11e4-b922-705681abff85"], ["created_at", "2015-03-19 01:08:01.058593"], ["updated_at", "2015-03-19 01:08:01.058593"], ["token", "qfc1yggia3ZZVbcw2DSxR3YqF6RlAFmJgq6Iot2hSN8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.062391"], ["updated_at", "2015-03-19 01:08:01.062391"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '634ac734-cdd4-11e4-b922-705681abff85' AND "clubhouse_memberships"."organization_id" = '634bd066-cdd4-11e4-88e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "634ac734-cdd4-11e4-b922-705681abff85"], ["organization_id", "634bd066-cdd4-11e4-88e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.067188"], ["updated_at", "2015-03-19 01:08:01.067188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Y0.bNjtCKCQJSteCT/MitO8013BxGbCXdWBI1.Il6SscijYjR0JeO"], ["created_at", "2015-03-19 01:08:01.077044"], ["updated_at", "2015-03-19 01:08:01.077044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.079025"], ["user_id", "634e0e4e-cdd4-11e4-8d07-705681abff85"], ["created_at", "2015-03-19 01:08:01.079854"], ["updated_at", "2015-03-19 01:08:01.079854"], ["token", "gUFdfGIhTHEaXaDN5KEGvmBRCSJUtwsr2hBsBc6Kegw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.083367"], ["updated_at", "2015-03-19 01:08:01.083367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '634e0e4e-cdd4-11e4-8d07-705681abff85' AND "clubhouse_memberships"."organization_id" = '634f006a-cdd4-11e4-9586-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "634e0e4e-cdd4-11e4-8d07-705681abff85"], ["organization_id", "634f006a-cdd4-11e4-9586-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.086985"], ["updated_at", "2015-03-19 01:08:01.086985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$ItN.sTGYETVE8uVVDYChgeeT3iN90LLx7jMKfP6B5S3qW73kesoUq"], ["created_at", "2015-03-19 01:08:01.091444"], ["updated_at", "2015-03-19 01:08:01.091444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.094684"], ["updated_at", "2015-03-19 01:08:01.094684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63503ab6-cdd4-11e4-8bb2-705681abff85' AND "clubhouse_memberships"."organization_id" = '6350bca2-cdd4-11e4-b95d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63503ab6-cdd4-11e4-8bb2-705681abff85"], ["organization_id", "6350bca2-cdd4-11e4-b95d-705681abff85"], ["created_at", "2015-03-19 01:08:01.098935"], ["updated_at", "2015-03-19 01:08:01.098935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.103700' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gUFdfGIhTHEaXaDN5KEGvmBRCSJUtwsr2hBsBc6Kegw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.105605"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.107635"], ["id", "634e7f64-cdd4-11e4-8d66-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "634e0e4e-cdd4-11e4-8d07-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "634e0e4e-cdd4-11e4-8d07-705681abff85"]] Completed 200 OK in 12ms (Views: 3.1ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$kR8AifWwo0wXh9fXQXQk4Ox0RjMej1a2jCIkgtO5bZgge014TRcYy"], ["created_at", "2015-03-19 01:08:01.121920"], ["updated_at", "2015-03-19 01:08:01.121920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.123595"], ["user_id", "6354e566-cdd4-11e4-ae11-705681abff85"], ["created_at", "2015-03-19 01:08:01.124390"], ["updated_at", "2015-03-19 01:08:01.124390"], ["token", "kECPLCCKl6PNNA6xIO4Ugp5CEhoRG-wv83rcGr7DZII"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.127824"], ["updated_at", "2015-03-19 01:08:01.127824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6354e566-cdd4-11e4-ae11-705681abff85' AND "clubhouse_memberships"."organization_id" = '6355c8f0-cdd4-11e4-b961-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6354e566-cdd4-11e4-ae11-705681abff85"], ["organization_id", "6355c8f0-cdd4-11e4-b961-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.131305"], ["updated_at", "2015-03-19 01:08:01.131305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$fDEJc9LY1.0t8aGp5Rh5eOdeZlLIbWdx4MqV9lg80WPU8kv0h2FWm"], ["created_at", "2015-03-19 01:08:01.136119"], ["updated_at", "2015-03-19 01:08:01.136119"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.139677"], ["updated_at", "2015-03-19 01:08:01.139677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63570de6-cdd4-11e4-a712-705681abff85' AND "clubhouse_memberships"."organization_id" = '6357a166-cdd4-11e4-b2b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63570de6-cdd4-11e4-a712-705681abff85"], ["organization_id", "6357a166-cdd4-11e4-b2b6-705681abff85"], ["created_at", "2015-03-19 01:08:01.148108"], ["updated_at", "2015-03-19 01:08:01.148108"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$d1iM6X8wRYbn2bSU0hZ/Juhdcl6q4wV96/7s2AGFrwVMSPZJdl.3."], ["created_at", "2015-03-19 01:08:01.160391"], ["updated_at", "2015-03-19 01:08:01.160391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$j3KghhhGj0HrsNWL7tEUKuuryonCNLkAFsL85clT2B6TUnL2insnu"], ["created_at", "2015-03-19 01:08:01.166611"], ["updated_at", "2015-03-19 01:08:01.166611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.168800"], ["user_id", "635ac6f2-cdd4-11e4-a809-705681abff85"], ["created_at", "2015-03-19 01:08:01.169666"], ["updated_at", "2015-03-19 01:08:01.169666"], ["token", "ZQbDlHMjFYo0_9hzWXiR0RQD4p4b-s9QNpP_XsiZY4g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.173520"], ["updated_at", "2015-03-19 01:08:01.173520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '635ac6f2-cdd4-11e4-a809-705681abff85' AND "clubhouse_memberships"."organization_id" = '635cc61e-cdd4-11e4-a180-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "635ac6f2-cdd4-11e4-a809-705681abff85"], ["organization_id", "635cc61e-cdd4-11e4-a180-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.177275"], ["updated_at", "2015-03-19 01:08:01.177275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '635bbeae-cdd4-11e4-9f20-705681abff85' AND "clubhouse_memberships"."organization_id" = '635cc61e-cdd4-11e4-a180-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "635bbeae-cdd4-11e4-9f20-705681abff85"], ["organization_id", "635cc61e-cdd4-11e4-a180-705681abff85"], ["created_at", "2015-03-19 01:08:01.180573"], ["updated_at", "2015-03-19 01:08:01.180573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/635dd5e0-cdd4-11e4-987a-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"635dd5e0-cdd4-11e4-987a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.192538' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZQbDlHMjFYo0_9hzWXiR0RQD4p4b-s9QNpP_XsiZY4g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.194254"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.195505"], ["id", "635c3582-cdd4-11e4-ab33-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "635dd5e0-cdd4-11e4-987a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "635ac6f2-cdd4-11e4-a809-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "635cc61e-cdd4-11e4-a180-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '635ac6f2-cdd4-11e4-a809-705681abff85' LIMIT 1 [["organization_id", "635cc61e-cdd4-11e4-a180-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "635bbeae-cdd4-11e4-9f20-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "635dd5e0-cdd4-11e4-987a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$TM4kyq8A181vBsZGDr88Z.YhfXkJUnBeVj/efE.nKaw6xz38jmtxe"], ["created_at", "2015-03-19 01:08:01.211549"], ["updated_at", "2015-03-19 01:08:01.211549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$qcfIvUpxw.HS/3ucqIsRMun589pubQPTiTAHCsvhw9wKuj0DlKLLC"], ["created_at", "2015-03-19 01:08:01.217102"], ["updated_at", "2015-03-19 01:08:01.217102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.219033"], ["user_id", "636296d4-cdd4-11e4-8215-705681abff85"], ["created_at", "2015-03-19 01:08:01.219857"], ["updated_at", "2015-03-19 01:08:01.219857"], ["token", "kJ7SMpS6wORy53-9C1YB2B8AtkfuVW_LR65CQMOMmIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.223659"], ["updated_at", "2015-03-19 01:08:01.223659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '636296d4-cdd4-11e4-8215-705681abff85' AND "clubhouse_memberships"."organization_id" = '636469be-cdd4-11e4-9d6b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "636296d4-cdd4-11e4-8215-705681abff85"], ["organization_id", "636469be-cdd4-11e4-9d6b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.227208"], ["updated_at", "2015-03-19 01:08:01.227208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63637108-cdd4-11e4-8097-705681abff85' AND "clubhouse_memberships"."organization_id" = '636469be-cdd4-11e4-9d6b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63637108-cdd4-11e4-8097-705681abff85"], ["organization_id", "636469be-cdd4-11e4-9d6b-705681abff85"], ["created_at", "2015-03-19 01:08:01.230689"], ["updated_at", "2015-03-19 01:08:01.230689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$A1MKlgFKN/N6taZV4ic/H.pBRlDPO5H0KhEGFrdj48QOkz3s87b/y"], ["created_at", "2015-03-19 01:08:01.241992"], ["updated_at", "2015-03-19 01:08:01.241992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$a4JSGVWOgDSz4rcl/NUN4.eTziFusTxD83JrbHXDEeR3PTwwM95K6"], ["created_at", "2015-03-19 01:08:01.247030"], ["updated_at", "2015-03-19 01:08:01.247030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.248958"], ["user_id", "63673ab8-cdd4-11e4-87cc-705681abff85"], ["created_at", "2015-03-19 01:08:01.250220"], ["updated_at", "2015-03-19 01:08:01.250220"], ["token", "hvJFFCEqYvTkkRB6YuRiEoCFN73KvFtSGCWSUr8JqxE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.254696"], ["updated_at", "2015-03-19 01:08:01.254696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63673ab8-cdd4-11e4-87cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '63692878-cdd4-11e4-b0e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63673ab8-cdd4-11e4-87cc-705681abff85"], ["organization_id", "63692878-cdd4-11e4-b0e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.258516"], ["updated_at", "2015-03-19 01:08:01.258516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6367feda-cdd4-11e4-bc13-705681abff85' AND "clubhouse_memberships"."organization_id" = '63692878-cdd4-11e4-b0e7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6367feda-cdd4-11e4-bc13-705681abff85"], ["organization_id", "63692878-cdd4-11e4-b0e7-705681abff85"], ["created_at", "2015-03-19 01:08:01.262073"], ["updated_at", "2015-03-19 01:08:01.262073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$wpjtE86d2bmj7pUnqHzCkOLiBIaOmIIxkfp97IcaJvGWhQQrqtDLK"], ["created_at", "2015-03-19 01:08:01.267774"], ["updated_at", "2015-03-19 01:08:01.267774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.269654"], ["user_id", "636b292a-cdd4-11e4-bf6b-705681abff85"], ["created_at", "2015-03-19 01:08:01.270547"], ["updated_at", "2015-03-19 01:08:01.270547"], ["token", "l3OP0nLL8QSZhx07-1roOl8jmhZNJZyUpd9DJpHrI7k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '63692878-cdd4-11e4-b0e7-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "63692878-cdd4-11e4-b0e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.282886"], ["updated_at", "2015-03-19 01:08:01.282886"], ["token", "NlN9MZOOH5zyl7FyjvlvW3-R6Dzwl9CI6m_ZAuU_kjU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$i8FrmNCMtMh9xaaVt1aNjuu7a5fqU9gQidzQx05LPKi/gIAqd0LAq"], ["created_at", "2015-03-19 01:08:01.294641"], ["updated_at", "2015-03-19 01:08:01.294641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$O/nIloljKKlLFAm3eV2NA.cEIG/heb2l5ZwW90t5KZk3CIaZl7Oaq"], ["created_at", "2015-03-19 01:08:01.299585"], ["updated_at", "2015-03-19 01:08:01.299585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.301487"], ["user_id", "636f4014-cdd4-11e4-b5cc-705681abff85"], ["created_at", "2015-03-19 01:08:01.302386"], ["updated_at", "2015-03-19 01:08:01.302386"], ["token", "ACYtrbjogwQ4YOrQwkgGgymfqnEPcGrp58hE-osDOeI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.306609"], ["updated_at", "2015-03-19 01:08:01.306609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '636f4014-cdd4-11e4-b5cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '63711510-cdd4-11e4-ae29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "636f4014-cdd4-11e4-b5cc-705681abff85"], ["organization_id", "63711510-cdd4-11e4-ae29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.310366"], ["updated_at", "2015-03-19 01:08:01.310366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6370058a-cdd4-11e4-8274-705681abff85' AND "clubhouse_memberships"."organization_id" = '63711510-cdd4-11e4-ae29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6370058a-cdd4-11e4-8274-705681abff85"], ["organization_id", "63711510-cdd4-11e4-ae29-705681abff85"], ["created_at", "2015-03-19 01:08:01.313844"], ["updated_at", "2015-03-19 01:08:01.313844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$2e32/iMoIE1iyCnhTY4F7uiF30cqFvo/mixJL0hBFA0Im5kA2EUva"], ["created_at", "2015-03-19 01:08:01.318701"], ["updated_at", "2015-03-19 01:08:01.318701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.320963"], ["user_id", "6372f416-cdd4-11e4-8725-705681abff85"], ["created_at", "2015-03-19 01:08:01.321844"], ["updated_at", "2015-03-19 01:08:01.321844"], ["token", "q_pXwaWR8vmgDruDtANkxgDJ-HUL0GjfdttFOiAE-zw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '63711510-cdd4-11e4-ae29-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "63711510-cdd4-11e4-ae29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.326880"], ["updated_at", "2015-03-19 01:08:01.326880"], ["token", "J7YMqkhwkAMDnAuOWIF89pyUijrgBKlK4eZ9I4APHWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/63711510-cdd4-11e4-ae29-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"63711510-cdd4-11e4-ae29-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.333609' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q_pXwaWR8vmgDruDtANkxgDJ-HUL0GjfdttFOiAE-zw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.335226"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.336350"], ["id", "63736dec-cdd4-11e4-98d6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63711510-cdd4-11e4-ae29-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6372f416-cdd4-11e4-8725-705681abff85"]] Completed 500 Internal Server Error in 24ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$6IF8tNBrhVAjRf6WSQ0NFeyaZ2BXtL0KaLIIjusmhdyl9aBzBZzHm"], ["created_at", "2015-03-19 01:08:01.367727"], ["updated_at", "2015-03-19 01:08:01.367727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$YHnE1LxUq5dvBSfV9YOZm.4DxIf25kW8Qj.ed55nsNG6EDESo9jTK"], ["created_at", "2015-03-19 01:08:01.372586"], ["updated_at", "2015-03-19 01:08:01.372586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.374441"], ["user_id", "637a6a02-cdd4-11e4-89af-705681abff85"], ["created_at", "2015-03-19 01:08:01.375269"], ["updated_at", "2015-03-19 01:08:01.375269"], ["token", "XZ-k9LPe-g4KCUMej6_iF71uKnACIxflufLuCX7kVIE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.379528"], ["updated_at", "2015-03-19 01:08:01.379528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '637a6a02-cdd4-11e4-89af-705681abff85' AND "clubhouse_memberships"."organization_id" = '637c3652-cdd4-11e4-a591-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "637a6a02-cdd4-11e4-89af-705681abff85"], ["organization_id", "637c3652-cdd4-11e4-a591-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.383257"], ["updated_at", "2015-03-19 01:08:01.383257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '637b2a0a-cdd4-11e4-89c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '637c3652-cdd4-11e4-a591-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "637b2a0a-cdd4-11e4-89c3-705681abff85"], ["organization_id", "637c3652-cdd4-11e4-a591-705681abff85"], ["created_at", "2015-03-19 01:08:01.386776"], ["updated_at", "2015-03-19 01:08:01.386776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$BzJupVAcSggxwWx.DB0F4egZIdWKFM0vj3jQIP/4zxG5UUFcLgFB."], ["created_at", "2015-03-19 01:08:01.391507"], ["updated_at", "2015-03-19 01:08:01.391507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.393209"], ["user_id", "637e06b2-cdd4-11e4-bf9d-705681abff85"], ["created_at", "2015-03-19 01:08:01.394077"], ["updated_at", "2015-03-19 01:08:01.394077"], ["token", "S4mjbAglS6Bp_rGG97KGrjMMk9i9QqjDc7u2guEgIpM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '637c3652-cdd4-11e4-a591-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "637c3652-cdd4-11e4-a591-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.399325"], ["updated_at", "2015-03-19 01:08:01.399325"], ["token", "ryRvUZj8xlHdIyBCpy2G5w9YaA-GBcOnY_6SSrnTsYk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/637c3652-cdd4-11e4-a591-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"ryRvUZj8xlHdIyBCpy2G5w9YaA-GBcOnY_6SSrnTsYk", "organization_id"=>"637c3652-cdd4-11e4-a591-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.404917' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S4mjbAglS6Bp_rGG97KGrjMMk9i9QqjDc7u2guEgIpM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.406580"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.407817"], ["id", "637e7674-cdd4-11e4-a972-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "637c3652-cdd4-11e4-a591-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "637e06b2-cdd4-11e4-bf9d-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$kjeGUvUpbDdbmwx/x4aSI.Tru5j8y8bmqfDJn9cHz7VGkS4Lnv06W"], ["created_at", "2015-03-19 01:08:01.429109"], ["updated_at", "2015-03-19 01:08:01.429109"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$kV/w7yn.rKuYqN/7KtHX3eGxFKymB.XT5SrHlSm00D.FnpAiq3lG."], ["created_at", "2015-03-19 01:08:01.436927"], ["updated_at", "2015-03-19 01:08:01.436927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.440143"], ["user_id", "6383ede8-cdd4-11e4-a5f1-705681abff85"], ["created_at", "2015-03-19 01:08:01.442771"], ["updated_at", "2015-03-19 01:08:01.442771"], ["token", "SScftW75qGkbIaW-z3lpOEYWtMORck2HyonZqHQAqlI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.452009"], ["updated_at", "2015-03-19 01:08:01.452009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6383ede8-cdd4-11e4-a5f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '63878b42-cdd4-11e4-b153-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6383ede8-cdd4-11e4-a5f1-705681abff85"], ["organization_id", "63878b42-cdd4-11e4-b153-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.463050"], ["updated_at", "2015-03-19 01:08:01.463050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6385165a-cdd4-11e4-b8e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '63878b42-cdd4-11e4-b153-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6385165a-cdd4-11e4-b8e1-705681abff85"], ["organization_id", "63878b42-cdd4-11e4-b153-705681abff85"], ["created_at", "2015-03-19 01:08:01.474425"], ["updated_at", "2015-03-19 01:08:01.474425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/63895f62-cdd4-11e4-ab6c-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"63895f62-cdd4-11e4-ab6c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.487204' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SScftW75qGkbIaW-z3lpOEYWtMORck2HyonZqHQAqlI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.488897"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.490465"], ["id", "63860844-cdd4-11e4-a7e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "63895f62-cdd4-11e4-ab6c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6383ede8-cdd4-11e4-a5f1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63878b42-cdd4-11e4-b153-705681abff85"]] Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6383ede8-cdd4-11e4-a5f1-705681abff85' LIMIT 1 [["organization_id", "63878b42-cdd4-11e4-b153-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6383ede8-cdd4-11e4-a5f1-705681abff85"]] Completed 200 OK in 21ms (Views: 9.7ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$x1v85Wrg70dGKxhmA20a0.nX0o4kRE7nnaBUl3pwDWKlItyYbGAsm"], ["created_at", "2015-03-19 01:08:01.514618"], ["updated_at", "2015-03-19 01:08:01.514618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$p8OKrkDKK/wtCJrgsSECPulxPM.illjwQtpZ9aOUChkBSXdz7Biq6"], ["created_at", "2015-03-19 01:08:01.520155"], ["updated_at", "2015-03-19 01:08:01.520155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.521873"], ["user_id", "6390d8d2-cdd4-11e4-9b71-705681abff85"], ["created_at", "2015-03-19 01:08:01.522808"], ["updated_at", "2015-03-19 01:08:01.522808"], ["token", "epsa1VRnbdYG36DUBEH7Ba-A3n1JfAoIr4vY419eSto"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.526472"], ["updated_at", "2015-03-19 01:08:01.526472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6390d8d2-cdd4-11e4-9b71-705681abff85' AND "clubhouse_memberships"."organization_id" = '63929e56-cdd4-11e4-97ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6390d8d2-cdd4-11e4-9b71-705681abff85"], ["organization_id", "63929e56-cdd4-11e4-97ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.530147"], ["updated_at", "2015-03-19 01:08:01.530147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6391a73a-cdd4-11e4-9264-705681abff85' AND "clubhouse_memberships"."organization_id" = '63929e56-cdd4-11e4-97ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6391a73a-cdd4-11e4-9264-705681abff85"], ["organization_id", "63929e56-cdd4-11e4-97ec-705681abff85"], ["created_at", "2015-03-19 01:08:01.533453"], ["updated_at", "2015-03-19 01:08:01.533453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$aBToC7UW7DDuMzUjxKtc7.sbr44dVO9DsdlVDGvZOhgkNM7rrA4OK"], ["created_at", "2015-03-19 01:08:01.543512"], ["updated_at", "2015-03-19 01:08:01.543512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$wTbE/SabED8.5qR/GUtAee7uzrYheAk2LEM89fBsDAakRgsD/LwLm"], ["created_at", "2015-03-19 01:08:01.547785"], ["updated_at", "2015-03-19 01:08:01.547785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.549302"], ["user_id", "639538d2-cdd4-11e4-bfd6-705681abff85"], ["created_at", "2015-03-19 01:08:01.550480"], ["updated_at", "2015-03-19 01:08:01.550480"], ["token", "uQv-CmGvIJyywyy8eqhDdlWievWwM2JtKGrpCJHO8-c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.554751"], ["updated_at", "2015-03-19 01:08:01.554751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '639538d2-cdd4-11e4-bfd6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6396ed44-cdd4-11e4-a8bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "639538d2-cdd4-11e4-bfd6-705681abff85"], ["organization_id", "6396ed44-cdd4-11e4-a8bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.558421"], ["updated_at", "2015-03-19 01:08:01.558421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6395dc74-cdd4-11e4-a1f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '6396ed44-cdd4-11e4-a8bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6395dc74-cdd4-11e4-a1f2-705681abff85"], ["organization_id", "6396ed44-cdd4-11e4-a8bd-705681abff85"], ["created_at", "2015-03-19 01:08:01.561762"], ["updated_at", "2015-03-19 01:08:01.561762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.567234' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uQv-CmGvIJyywyy8eqhDdlWievWwM2JtKGrpCJHO8-c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.569314"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.570380"], ["id", "63965f1e-cdd4-11e4-a47c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "639538d2-cdd4-11e4-bfd6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '639538d2-cdd4-11e4-bfd6-705681abff85' LIMIT 1 [["organization_id", "6396ed44-cdd4-11e4-a8bd-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "6396ed44-cdd4-11e4-a8bd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6396ed44-cdd4-11e4-a8bd-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "639538d2-cdd4-11e4-bfd6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6396ed44-cdd4-11e4-a8bd-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6395dc74-cdd4-11e4-a1f2-705681abff85"]] Completed 200 OK in 23ms (Views: 4.6ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$N7bTbVNSyD0kBThZlVrlkO6dZYUrYptfjmaEu6979iXZAzs/Z2aXq"], ["created_at", "2015-03-19 01:08:01.596032"], ["updated_at", "2015-03-19 01:08:01.596032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$vcdIfw/c8rytLmPwJ6g76eBQepUCQDGgGDWQfbIyynhmKhHka5ULC"], ["created_at", "2015-03-19 01:08:01.600452"], ["updated_at", "2015-03-19 01:08:01.600452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.602031"], ["user_id", "639d3e1a-cdd4-11e4-9075-705681abff85"], ["created_at", "2015-03-19 01:08:01.602828"], ["updated_at", "2015-03-19 01:08:01.602828"], ["token", "cp6xPqUBT8WzNqVv_XQDwuKK3aGr6AAVn6pYeZw9OMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.606401"], ["updated_at", "2015-03-19 01:08:01.606401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '639d3e1a-cdd4-11e4-9075-705681abff85' AND "clubhouse_memberships"."organization_id" = '639ecf6e-cdd4-11e4-9487-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "639d3e1a-cdd4-11e4-9075-705681abff85"], ["organization_id", "639ecf6e-cdd4-11e4-9487-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.609695"], ["updated_at", "2015-03-19 01:08:01.609695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '639de6d0-cdd4-11e4-9b0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '639ecf6e-cdd4-11e4-9487-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "639de6d0-cdd4-11e4-9b0b-705681abff85"], ["organization_id", "639ecf6e-cdd4-11e4-9487-705681abff85"], ["created_at", "2015-03-19 01:08:01.613032"], ["updated_at", "2015-03-19 01:08:01.613032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$pXogGNJZ7SD6UO7b.3H9H.MiRZzaKWxIHsqH5/im2bFgLtEZ7Dgoq"], ["created_at", "2015-03-19 01:08:01.622616"], ["updated_at", "2015-03-19 01:08:01.622616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (3.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$GKfILjDH.bn0Kl6rNzMkV.qFbAuOCtBkyI18VbEE1o4e1cW0kJtyG"], ["created_at", "2015-03-19 01:08:01.641291"], ["updated_at", "2015-03-19 01:08:01.641291"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.645894"], ["user_id", "63a14bc2-cdd4-11e4-b174-705681abff85"], ["created_at", "2015-03-19 01:08:01.647571"], ["updated_at", "2015-03-19 01:08:01.647571"], ["token", "cbjjA2FvKv4BVZ7CYWOXOKlvmbdyRG0zV1KK4v5dR8Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.654952"], ["updated_at", "2015-03-19 01:08:01.654952"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63a14bc2-cdd4-11e4-b174-705681abff85' AND "clubhouse_memberships"."organization_id" = '63a650d6-cdd4-11e4-96da-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63a14bc2-cdd4-11e4-b174-705681abff85"], ["organization_id", "63a650d6-cdd4-11e4-96da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.661667"], ["updated_at", "2015-03-19 01:08:01.661667"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63a44b10-cdd4-11e4-92c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '63a650d6-cdd4-11e4-96da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63a44b10-cdd4-11e4-92c2-705681abff85"], ["organization_id", "63a650d6-cdd4-11e4-96da-705681abff85"], ["created_at", "2015-03-19 01:08:01.667863"], ["updated_at", "2015-03-19 01:08:01.667863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/63a835ea-cdd4-11e4-980d-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"63a835ea-cdd4-11e4-980d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.673407' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cbjjA2FvKv4BVZ7CYWOXOKlvmbdyRG0zV1KK4v5dR8Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.675404"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.676513"], ["id", "63a5468c-cdd4-11e4-b413-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "63a835ea-cdd4-11e4-980d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63a14bc2-cdd4-11e4-b174-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63a650d6-cdd4-11e4-96da-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63a14bc2-cdd4-11e4-b174-705681abff85' LIMIT 1 [["organization_id", "63a650d6-cdd4-11e4-96da-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63a44b10-cdd4-11e4-92c2-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63a44b10-cdd4-11e4-92c2-705681abff85' AND "clubhouse_memberships"."id" != '63a835ea-cdd4-11e4-980d-705681abff85' AND "clubhouse_memberships"."organization_id" = '63a650d6-cdd4-11e4-96da-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:08:01.684346"], ["id", "63a835ea-cdd4-11e4-980d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$wRxLCje3DzuN7ujjgv3U2e3ypHrPm41CScCPEaxESYuGqq8apuUR."], ["created_at", "2015-03-19 01:08:01.692666"], ["updated_at", "2015-03-19 01:08:01.692666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$YnL0WwugIQTVmdEmh1bEN.PMGYU3guLCBjokS3CCfR3VzcXJVxO8W"], ["created_at", "2015-03-19 01:08:01.697350"], ["updated_at", "2015-03-19 01:08:01.697350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.699634"], ["user_id", "63abfcb6-cdd4-11e4-b43e-705681abff85"], ["created_at", "2015-03-19 01:08:01.700595"], ["updated_at", "2015-03-19 01:08:01.700595"], ["token", "C0nW7PCmWHqirFwlu3HjN1piSEp418ERu_KUfaajN28"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.704173"], ["updated_at", "2015-03-19 01:08:01.704173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63abfcb6-cdd4-11e4-b43e-705681abff85' AND "clubhouse_memberships"."organization_id" = '63adb998-cdd4-11e4-bf60-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63abfcb6-cdd4-11e4-b43e-705681abff85"], ["organization_id", "63adb998-cdd4-11e4-bf60-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.707383"], ["updated_at", "2015-03-19 01:08:01.707383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63acc7ae-cdd4-11e4-832f-705681abff85' AND "clubhouse_memberships"."organization_id" = '63adb998-cdd4-11e4-bf60-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63acc7ae-cdd4-11e4-832f-705681abff85"], ["organization_id", "63adb998-cdd4-11e4-bf60-705681abff85"], ["created_at", "2015-03-19 01:08:01.710377"], ["updated_at", "2015-03-19 01:08:01.710377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$NhKOzSe/.Qbd0Dkf3fXVPONq/M0tXjEZkAzbc3bbgaLcjv3AVPVa2"], ["created_at", "2015-03-19 01:08:01.720104"], ["updated_at", "2015-03-19 01:08:01.720104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$pOqdt1S.PteY26dxIpg66eR4cZAaHc1DrhyNMuBx9EPSjA3Zinul2"], ["created_at", "2015-03-19 01:08:01.725127"], ["updated_at", "2015-03-19 01:08:01.725127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.727072"], ["user_id", "63b02db8-cdd4-11e4-a987-705681abff85"], ["created_at", "2015-03-19 01:08:01.727897"], ["updated_at", "2015-03-19 01:08:01.727897"], ["token", "2Ngr-Z8uFnFZbpRf7-jEwVRmihRHXQpa862IyoI46Rw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.731293"], ["updated_at", "2015-03-19 01:08:01.731293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63b02db8-cdd4-11e4-a987-705681abff85' AND "clubhouse_memberships"."organization_id" = '63b1dc80-cdd4-11e4-8d37-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63b02db8-cdd4-11e4-a987-705681abff85"], ["organization_id", "63b1dc80-cdd4-11e4-8d37-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.735598"], ["updated_at", "2015-03-19 01:08:01.735598"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63b0f66c-cdd4-11e4-b61a-705681abff85' AND "clubhouse_memberships"."organization_id" = '63b1dc80-cdd4-11e4-8d37-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63b0f66c-cdd4-11e4-b61a-705681abff85"], ["organization_id", "63b1dc80-cdd4-11e4-8d37-705681abff85"], ["created_at", "2015-03-19 01:08:01.746082"], ["updated_at", "2015-03-19 01:08:01.746082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$n.IOwm6wfwMbbUGsBi9bDuB2VpNg/f7YxEVlKotyTX4duiwYdo.4O"], ["created_at", "2015-03-19 01:08:01.751453"], ["updated_at", "2015-03-19 01:08:01.751453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.753089"], ["user_id", "63b4f460-cdd4-11e4-9094-705681abff85"], ["created_at", "2015-03-19 01:08:01.753878"], ["updated_at", "2015-03-19 01:08:01.753878"], ["token", "SzMVwAxKA6e86KmQp2D4QdpLtx-F3Rgk1H32BgAQ5r8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '63b1dc80-cdd4-11e4-8d37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "63b1dc80-cdd4-11e4-8d37-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.757601"], ["updated_at", "2015-03-19 01:08:01.757601"], ["token", "VzIbggi87V1HrFu3T05rOITcPtaOFUhMbr-NMqcpoyQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$MM.Y4W3lx8swET4SpHVLCOn7TB0oWUgWpVJ.n4L5/UU5AVzBcBOkq"], ["created_at", "2015-03-19 01:08:01.768088"], ["updated_at", "2015-03-19 01:08:01.768088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$mWXLjh/RLsbxbVaGAs9QzuBNvzjRxbspVWR1.VwYSXDaNJ13S7Dzy"], ["created_at", "2015-03-19 01:08:01.774972"], ["updated_at", "2015-03-19 01:08:01.774972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.776956"], ["user_id", "63b77d7a-cdd4-11e4-b32c-705681abff85"], ["created_at", "2015-03-19 01:08:01.777809"], ["updated_at", "2015-03-19 01:08:01.777809"], ["token", "y3chjQqy8VWV4PVDyfea2hrAue0CKSEadtGpvaAT3Qs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.781253"], ["updated_at", "2015-03-19 01:08:01.781253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63b77d7a-cdd4-11e4-b32c-705681abff85' AND "clubhouse_memberships"."organization_id" = '63b97bfc-cdd4-11e4-b7ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63b77d7a-cdd4-11e4-b32c-705681abff85"], ["organization_id", "63b97bfc-cdd4-11e4-b7ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.784538"], ["updated_at", "2015-03-19 01:08:01.784538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63b8920a-cdd4-11e4-b32a-705681abff85' AND "clubhouse_memberships"."organization_id" = '63b97bfc-cdd4-11e4-b7ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63b8920a-cdd4-11e4-b32a-705681abff85"], ["organization_id", "63b97bfc-cdd4-11e4-b7ec-705681abff85"], ["created_at", "2015-03-19 01:08:01.787609"], ["updated_at", "2015-03-19 01:08:01.787609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$lNmGvPwTPmNtRAKD5QkLPOxNR8po9LKyeEYHhSMi.CW/BEum9j6DK"], ["created_at", "2015-03-19 01:08:01.791979"], ["updated_at", "2015-03-19 01:08:01.791979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.793534"], ["user_id", "63bb2010-cdd4-11e4-bfe3-705681abff85"], ["created_at", "2015-03-19 01:08:01.794314"], ["updated_at", "2015-03-19 01:08:01.794314"], ["token", "Uw30nq98XKXlITjRzgZlUYGAklj3Dn2HUx0_M8Cb6TM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '63b97bfc-cdd4-11e4-b7ec-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "63b97bfc-cdd4-11e4-b7ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.799420"], ["updated_at", "2015-03-19 01:08:01.799420"], ["token", "wzf2Ha_74zvyO-9oYJ-caneJxvXW8y9ra8xDYzlzmKo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.806438' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Uw30nq98XKXlITjRzgZlUYGAklj3Dn2HUx0_M8Cb6TM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.807904"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.808822"], ["id", "63bb8168-cdd4-11e4-858f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63bb2010-cdd4-11e4-bfe3-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$2jPErb8glDXgkQQ3tA/IlumMPzj5iVRrUUu.bmb0u7Q7a63ug65gm"], ["created_at", "2015-03-19 01:08:01.825642"], ["updated_at", "2015-03-19 01:08:01.825642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$eycT31onANDV5RVqopbRCOJaOPOB2I2E.BjY/8fGbPRTNmcrQMlEm"], ["created_at", "2015-03-19 01:08:01.830262"], ["updated_at", "2015-03-19 01:08:01.830262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.831846"], ["user_id", "63c04b76-cdd4-11e4-b498-705681abff85"], ["created_at", "2015-03-19 01:08:01.832703"], ["updated_at", "2015-03-19 01:08:01.832703"], ["token", "pc_PHgR-Wcq1-cvp7VyLa6_8fu1zgtZgvVowzxsSj5A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.836249"], ["updated_at", "2015-03-19 01:08:01.836249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63c04b76-cdd4-11e4-b498-705681abff85' AND "clubhouse_memberships"."organization_id" = '63c1e580-cdd4-11e4-9063-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63c04b76-cdd4-11e4-b498-705681abff85"], ["organization_id", "63c1e580-cdd4-11e4-9063-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.839747"], ["updated_at", "2015-03-19 01:08:01.839747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63c0f7d8-cdd4-11e4-b153-705681abff85' AND "clubhouse_memberships"."organization_id" = '63c1e580-cdd4-11e4-9063-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63c0f7d8-cdd4-11e4-b153-705681abff85"], ["organization_id", "63c1e580-cdd4-11e4-9063-705681abff85"], ["created_at", "2015-03-19 01:08:01.845185"], ["updated_at", "2015-03-19 01:08:01.845185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$4RLk8krHO1wlvJBprqkWOOGSdgTehK1eVJT4GMUnoUgUsDv9e9LxS"], ["created_at", "2015-03-19 01:08:01.849750"], ["updated_at", "2015-03-19 01:08:01.849750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.851302"], ["user_id", "63c3f208-cdd4-11e4-8ec9-705681abff85"], ["created_at", "2015-03-19 01:08:01.852024"], ["updated_at", "2015-03-19 01:08:01.852024"], ["token", "Az_E1QWwa7rCRr9zVeBJt-SYnlmD7R9WAxvm5GPduU8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '63c1e580-cdd4-11e4-9063-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "63c1e580-cdd4-11e4-9063-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.855686"], ["updated_at", "2015-03-19 01:08:01.855686"], ["token", "d9TfawFKkrg64VmijJeLG9UqkTYosbZWlj__WDi4_VM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"d9TfawFKkrg64VmijJeLG9UqkTYosbZWlj__WDi4_VM", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.860916' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Az_E1QWwa7rCRr9zVeBJt-SYnlmD7R9WAxvm5GPduU8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.862357"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.863405"], ["id", "63c44eec-cdd4-11e4-8827-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63c3f208-cdd4-11e4-8ec9-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$Q3LcIK6gtZaTzlLeIpYNzuyeZW3K0LbDlGmd5hq7P7jZPEasAQ/au"], ["created_at", "2015-03-19 01:08:01.876461"], ["updated_at", "2015-03-19 01:08:01.876461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$tpylzFf6HsbxlSiBzheut.2HqHo3IMpwKYmWTJFw9OhTVGs9p1C5O"], ["created_at", "2015-03-19 01:08:01.881955"], ["updated_at", "2015-03-19 01:08:01.881955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.884251"], ["user_id", "63c80636-cdd4-11e4-8605-705681abff85"], ["created_at", "2015-03-19 01:08:01.885093"], ["updated_at", "2015-03-19 01:08:01.885093"], ["token", "RRTzCiow4Anb6-LuDBMNpXZ_V_w61oBNUfM6UWRD2hU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.893210"], ["updated_at", "2015-03-19 01:08:01.893210"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63c80636-cdd4-11e4-8605-705681abff85' AND "clubhouse_memberships"."organization_id" = '63cac2c2-cdd4-11e4-89a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63c80636-cdd4-11e4-8605-705681abff85"], ["organization_id", "63cac2c2-cdd4-11e4-89a2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.900367"], ["updated_at", "2015-03-19 01:08:01.900367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63c8ebf0-cdd4-11e4-8cd3-705681abff85' AND "clubhouse_memberships"."organization_id" = '63cac2c2-cdd4-11e4-89a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63c8ebf0-cdd4-11e4-8cd3-705681abff85"], ["organization_id", "63cac2c2-cdd4-11e4-89a2-705681abff85"], ["created_at", "2015-03-19 01:08:01.904055"], ["updated_at", "2015-03-19 01:08:01.904055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/63cac2c2-cdd4-11e4-89a2-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"63cac2c2-cdd4-11e4-89a2-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.909480' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RRTzCiow4Anb6-LuDBMNpXZ_V_w61oBNUfM6UWRD2hU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.910939"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.911928"], ["id", "63c97d36-cdd4-11e4-84d5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63cac2c2-cdd4-11e4-89a2-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63c80636-cdd4-11e4-8605-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '63c80636-cdd4-11e4-8605-705681abff85' LIMIT 1 [["organization_id", "63cac2c2-cdd4-11e4-89a2-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "63cac2c2-cdd4-11e4-89a2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63cac2c2-cdd4-11e4-89a2-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63c80636-cdd4-11e4-8605-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63cac2c2-cdd4-11e4-89a2-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63c8ebf0-cdd4-11e4-8cd3-705681abff85"]] Completed 200 OK in 13ms (Views: 4.8ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$LKFK2uRPKuFoiak035JhneGsHnMy3GNbN0Jp37W24.xkNqQX1ALcO"], ["created_at", "2015-03-19 01:08:01.928607"], ["updated_at", "2015-03-19 01:08:01.928607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$gRSIWHgH1tmxkMVMlqdWPexTk2QUVVDLYQfIKIuRnD.69Omqg/Nqu"], ["created_at", "2015-03-19 01:08:01.933363"], ["updated_at", "2015-03-19 01:08:01.933363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.934950"], ["user_id", "63cffada-cdd4-11e4-97fd-705681abff85"], ["created_at", "2015-03-19 01:08:01.935755"], ["updated_at", "2015-03-19 01:08:01.935755"], ["token", "36kIVycWoEy_fcZFh1d3C2iZyh-CFYv7VCu80IFGV9w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.939091"], ["updated_at", "2015-03-19 01:08:01.939091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63cffada-cdd4-11e4-97fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '63d19192-cdd4-11e4-affc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63cffada-cdd4-11e4-97fd-705681abff85"], ["organization_id", "63d19192-cdd4-11e4-affc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.942453"], ["updated_at", "2015-03-19 01:08:01.942453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63d0b56a-cdd4-11e4-a46a-705681abff85' AND "clubhouse_memberships"."organization_id" = '63d19192-cdd4-11e4-affc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63d0b56a-cdd4-11e4-a46a-705681abff85"], ["organization_id", "63d19192-cdd4-11e4-affc-705681abff85"], ["created_at", "2015-03-19 01:08:01.945497"], ["updated_at", "2015-03-19 01:08:01.945497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$ta9z63.FYdjaGsmKrCO6EORruNZNv8RhdnlucsxqydHvGOMs1Ebd6"], ["created_at", "2015-03-19 01:08:01.956667"], ["updated_at", "2015-03-19 01:08:01.956667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:01.958364"], ["user_id", "63d44630-cdd4-11e4-b112-705681abff85"], ["created_at", "2015-03-19 01:08:01.959314"], ["updated_at", "2015-03-19 01:08:01.959314"], ["token", "16QX8wOmsN4K4AFpNqpMHwYmrm8M2RohTcfPsmd1hpY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:01.969535"], ["updated_at", "2015-03-19 01:08:01.969535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63d44630-cdd4-11e4-b112-705681abff85' AND "clubhouse_memberships"."organization_id" = '63d63f1c-cdd4-11e4-8760-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63d44630-cdd4-11e4-b112-705681abff85"], ["organization_id", "63d63f1c-cdd4-11e4-8760-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:01.973147"], ["updated_at", "2015-03-19 01:08:01.973147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '63d63f1c-cdd4-11e4-8760-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "63d63f1c-cdd4-11e4-8760-705681abff85"], ["created_at", "2015-03-19 01:08:01.976714"], ["updated_at", "2015-03-19 01:08:01.976714"], ["token", "bz7xnoW9JkGF2IBxCVsnukGhN-BZSBkEwJAUKX3PljM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/63d75b4a-cdd4-11e4-a6e0-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:01 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"63d75b4a-cdd4-11e4-a6e0-705681abff85", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:01.987824' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "16QX8wOmsN4K4AFpNqpMHwYmrm8M2RohTcfPsmd1hpY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:01.990001"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:01.991810"], ["id", "63d4bf66-cdd4-11e4-be01-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$n2tJgzTF8HPFc0s4MX6X.eGPitRUzov3z3wZW2U71TOZ5oFVjCBPa"], ["created_at", "2015-03-19 01:08:01.999178"], ["updated_at", "2015-03-19 01:08:01.999178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.000949"], ["user_id", "63dac42e-cdd4-11e4-a685-705681abff85"], ["created_at", "2015-03-19 01:08:02.001777"], ["updated_at", "2015-03-19 01:08:02.001777"], ["token", "9w_krQ4k5hQURT44XhXkxaWtNQmzjgytbiko4CM9imE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.005226"], ["updated_at", "2015-03-19 01:08:02.005226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63dac42e-cdd4-11e4-a685-705681abff85' AND "clubhouse_memberships"."organization_id" = '63dba8a8-cdd4-11e4-ab10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63dac42e-cdd4-11e4-a685-705681abff85"], ["organization_id", "63dba8a8-cdd4-11e4-ab10-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.008844"], ["updated_at", "2015-03-19 01:08:02.008844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '63dba8a8-cdd4-11e4-ab10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "63dba8a8-cdd4-11e4-ab10-705681abff85"], ["created_at", "2015-03-19 01:08:02.012336"], ["updated_at", "2015-03-19 01:08:02.012336"], ["token", "QeV4Y5mcllxeDk2hNnb1GjLQxZD7L_5vzHXhJljavjQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$QXchPnfeXtkWX4V8FpY7Lulpwj3R1GFr9OylRA/JbwGqTDRMShOcO"], ["created_at", "2015-03-19 01:08:02.022467"], ["updated_at", "2015-03-19 01:08:02.022467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.024291"], ["user_id", "63de5472-cdd4-11e4-b957-705681abff85"], ["created_at", "2015-03-19 01:08:02.025093"], ["updated_at", "2015-03-19 01:08:02.025093"], ["token", "y_drxIOvom2jszpMrVxJ-GO7MP-aL1LEu7IS8Hs_3Qw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.028749"], ["updated_at", "2015-03-19 01:08:02.028749"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63de5472-cdd4-11e4-b957-705681abff85' AND "clubhouse_memberships"."organization_id" = '63df42ec-cdd4-11e4-ac83-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63de5472-cdd4-11e4-b957-705681abff85"], ["organization_id", "63df42ec-cdd4-11e4-ac83-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.035564"], ["updated_at", "2015-03-19 01:08:02.035564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '63df42ec-cdd4-11e4-ac83-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "63df42ec-cdd4-11e4-ac83-705681abff85"], ["created_at", "2015-03-19 01:08:02.039264"], ["updated_at", "2015-03-19 01:08:02.039264"], ["token", "QwldAn3d9dauhB41hdc6QHxasVZv2SLLuKEqemekuBo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$Oq.PGMxrtHtGPLv7DkptTOsc005lXsi8NpgP99tvKmj0CBI4bMyh6"], ["created_at", "2015-03-19 01:08:02.051507"], ["updated_at", "2015-03-19 01:08:02.051507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.053931"], ["user_id", "63e2d254-cdd4-11e4-957c-705681abff85"], ["created_at", "2015-03-19 01:08:02.054768"], ["updated_at", "2015-03-19 01:08:02.054768"], ["token", "UN_VRI2Yr7YU4uy0xNTJjx8uWPL9xpZwabGdPt2Yfb8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.058590"], ["updated_at", "2015-03-19 01:08:02.058590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63e2d254-cdd4-11e4-957c-705681abff85' AND "clubhouse_memberships"."organization_id" = '63e3d118-cdd4-11e4-9a08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63e2d254-cdd4-11e4-957c-705681abff85"], ["organization_id", "63e3d118-cdd4-11e4-9a08-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.061908"], ["updated_at", "2015-03-19 01:08:02.061908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '63e3d118-cdd4-11e4-9a08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "63e3d118-cdd4-11e4-9a08-705681abff85"], ["created_at", "2015-03-19 01:08:02.065246"], ["updated_at", "2015-03-19 01:08:02.065246"], ["token", "TRXjlLSb5UnaQquGqCOHVTTry-NwTh7XEqDkQMGKl1k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/63e3d118-cdd4-11e4-9a08-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"63e3d118-cdd4-11e4-9a08-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:02.070236' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UN_VRI2Yr7YU4uy0xNTJjx8uWPL9xpZwabGdPt2Yfb8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:02.071629"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:02.072603"], ["id", "63e3427a-cdd4-11e4-92cf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63e3d118-cdd4-11e4-9a08-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$uBis00r0OxsqY2rNgTo/RuPMJ9MNUNp3KH2HtaWrs7.WxbUGtbZkW"], ["created_at", "2015-03-19 01:08:02.090435"], ["updated_at", "2015-03-19 01:08:02.090435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.092067"], ["user_id", "63e8acc4-cdd4-11e4-9b09-705681abff85"], ["created_at", "2015-03-19 01:08:02.093057"], ["updated_at", "2015-03-19 01:08:02.093057"], ["token", "n4htCtGahUkMk-Q989ni5dB2JnxL_AMGTe8NEcrPIfA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.096529"], ["updated_at", "2015-03-19 01:08:02.096529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63e8acc4-cdd4-11e4-9b09-705681abff85' AND "clubhouse_memberships"."organization_id" = '63e99864-cdd4-11e4-aeee-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63e8acc4-cdd4-11e4-9b09-705681abff85"], ["organization_id", "63e99864-cdd4-11e4-aeee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.099791"], ["updated_at", "2015-03-19 01:08:02.099791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '63e99864-cdd4-11e4-aeee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "63e99864-cdd4-11e4-aeee-705681abff85"], ["created_at", "2015-03-19 01:08:02.104211"], ["updated_at", "2015-03-19 01:08:02.104211"], ["token", "gLgH-DznupzcdcZ-AMjwbHQhu7ifaYVGIF5EtMYs9U0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/63e99864-cdd4-11e4-aeee-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"63e99864-cdd4-11e4-aeee-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:02.108968' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n4htCtGahUkMk-Q989ni5dB2JnxL_AMGTe8NEcrPIfA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:02.110516"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:02.112414"], ["id", "63e91a9c-cdd4-11e4-8649-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63e99864-cdd4-11e4-aeee-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (3.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$dewCol2EqoCXRiy4zqCvmet1BM38963MIyB.d7Tw1goxI8LN4jJle"], ["created_at", "2015-03-19 01:08:02.124497"], ["updated_at", "2015-03-19 01:08:02.124497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.129899"], ["user_id", "63ede036-cdd4-11e4-9f12-705681abff85"], ["created_at", "2015-03-19 01:08:02.130801"], ["updated_at", "2015-03-19 01:08:02.130801"], ["token", "NjLwsnpQNH8oPuCmkiRQ007EoW3VrHKlpstCUK8lB5M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.134434"], ["updated_at", "2015-03-19 01:08:02.134434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63ede036-cdd4-11e4-9f12-705681abff85' AND "clubhouse_memberships"."organization_id" = '63ef6046-cdd4-11e4-af67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63ede036-cdd4-11e4-9f12-705681abff85"], ["organization_id", "63ef6046-cdd4-11e4-af67-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.137643"], ["updated_at", "2015-03-19 01:08:02.137643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '63ef6046-cdd4-11e4-af67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "63ef6046-cdd4-11e4-af67-705681abff85"], ["created_at", "2015-03-19 01:08:02.141096"], ["updated_at", "2015-03-19 01:08:02.141096"], ["token", "GOzfBpm6LTdhpEeOgc6SF4z9UjmQilsKcrUV3ku7Nx4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/63ef6046-cdd4-11e4-af67-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"63ef6046-cdd4-11e4-af67-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:02.145921' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NjLwsnpQNH8oPuCmkiRQ007EoW3VrHKlpstCUK8lB5M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:02.147480"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:02.148478"], ["id", "63eede82-cdd4-11e4-804d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63ef6046-cdd4-11e4-af67-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$qC.Te8xMLErwYa0viugB2.11I50TVPMChuqpq6EKXLfHTHtYvPhlm"], ["created_at", "2015-03-19 01:08:02.159740"], ["updated_at", "2015-03-19 01:08:02.159740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.161333"], ["user_id", "63f33f72-cdd4-11e4-be5c-705681abff85"], ["created_at", "2015-03-19 01:08:02.162359"], ["updated_at", "2015-03-19 01:08:02.162359"], ["token", "KpFZBgDhuHZg5tjWqqYlw6BQXISL5ps9NHfrozq4SiA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.165940"], ["updated_at", "2015-03-19 01:08:02.165940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63f33f72-cdd4-11e4-be5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '63f4304e-cdd4-11e4-82b7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63f33f72-cdd4-11e4-be5c-705681abff85"], ["organization_id", "63f4304e-cdd4-11e4-82b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.169823"], ["updated_at", "2015-03-19 01:08:02.169823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '63f4304e-cdd4-11e4-82b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "63f4304e-cdd4-11e4-82b7-705681abff85"], ["created_at", "2015-03-19 01:08:02.173682"], ["updated_at", "2015-03-19 01:08:02.173682"], ["token", "6OjhwAJQ6SfTUBa-JDKDqaySztDcI_k40RBhErkvfH0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/63f56270-cdd4-11e4-93b6-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"63f56270-cdd4-11e4-93b6-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:02.178641' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KpFZBgDhuHZg5tjWqqYlw6BQXISL5ps9NHfrozq4SiA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:02.180508"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:02.182037"], ["id", "63f3adcc-cdd4-11e4-aae2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "63f56270-cdd4-11e4-93b6-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63f33f72-cdd4-11e4-be5c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63f4304e-cdd4-11e4-82b7-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$eRoLjdtlz8xet2mAFOUb3OxH2Stuf7Vfc01qDlIvUaENbVe9gZ40y"], ["created_at", "2015-03-19 01:08:02.194438"], ["updated_at", "2015-03-19 01:08:02.194438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.196109"], ["user_id", "63f88a86-cdd4-11e4-83db-705681abff85"], ["created_at", "2015-03-19 01:08:02.196882"], ["updated_at", "2015-03-19 01:08:02.196882"], ["token", "LK7Km707lcre2zNKIcw6ebUhFM5ij2J1hkKQiPtNmvw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.200339"], ["updated_at", "2015-03-19 01:08:02.200339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63f88a86-cdd4-11e4-83db-705681abff85' AND "clubhouse_memberships"."organization_id" = '63f970ea-cdd4-11e4-bae3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63f88a86-cdd4-11e4-83db-705681abff85"], ["organization_id", "63f970ea-cdd4-11e4-bae3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.203912"], ["updated_at", "2015-03-19 01:08:02.203912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '63f970ea-cdd4-11e4-bae3-705681abff85') LIMIT 1 SQL (5.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "63f970ea-cdd4-11e4-bae3-705681abff85"], ["created_at", "2015-03-19 01:08:02.207909"], ["updated_at", "2015-03-19 01:08:02.207909"], ["token", "YgWmgweAklMNJnaH5Dt2Sq0x0UtDOelGDvMpq4AhaU0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$YCVEtAALlS8OwDKBM1xREOeLr6I5Q2HiGsw.VhyfH/IX0UYUhvdAm"], ["created_at", "2015-03-19 01:08:02.224283"], ["updated_at", "2015-03-19 01:08:02.224283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.225950"], ["user_id", "63fd18e4-cdd4-11e4-a85b-705681abff85"], ["created_at", "2015-03-19 01:08:02.226749"], ["updated_at", "2015-03-19 01:08:02.226749"], ["token", "8VSz3IxLF_z3BC8I557aoiyz4e6B2jtEp0W3-_xicgA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.230172"], ["updated_at", "2015-03-19 01:08:02.230172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63fd18e4-cdd4-11e4-a85b-705681abff85' AND "clubhouse_memberships"."organization_id" = '63fdfda4-cdd4-11e4-bee6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63fd18e4-cdd4-11e4-a85b-705681abff85"], ["organization_id", "63fdfda4-cdd4-11e4-bee6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.233988"], ["updated_at", "2015-03-19 01:08:02.233988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '63fdfda4-cdd4-11e4-bee6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "63fdfda4-cdd4-11e4-bee6-705681abff85"], ["created_at", "2015-03-19 01:08:02.237519"], ["updated_at", "2015-03-19 01:08:02.237519"], ["token", "FdoaRWiFeiopTW4tocqI-a16aB09s5sXmtDAfxLO898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$p12SqPmbB4OPmw3HUb8En.jkOuQVEt/KamW5OQ1dFsNrVAC1parqS"], ["created_at", "2015-03-19 01:08:02.241996"], ["updated_at", "2015-03-19 01:08:02.241996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.245061"], ["updated_at", "2015-03-19 01:08:02.245061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63ffca4e-cdd4-11e4-97e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '6400417c-cdd4-11e4-9e23-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63ffca4e-cdd4-11e4-97e2-705681abff85"], ["organization_id", "6400417c-cdd4-11e4-9e23-705681abff85"], ["created_at", "2015-03-19 01:08:02.248123"], ["updated_at", "2015-03-19 01:08:02.248123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:02.252703' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8VSz3IxLF_z3BC8I557aoiyz4e6B2jtEp0W3-_xicgA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:02.254321"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:02.255540"], ["id", "63fd7f32-cdd4-11e4-ac9d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63fd18e4-cdd4-11e4-a85b-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "63fdfda4-cdd4-11e4-bee6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('63fdfda4-cdd4-11e4-bee6-705681abff85') Completed 500 Internal Server Error in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$kMxnl7NV3.q.Hikeygm9COd8qrNtYOKyNixXpHZoQq8vLpguCdRx."], ["created_at", "2015-03-19 01:08:02.273422"], ["updated_at", "2015-03-19 01:08:02.273422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.275086"], ["user_id", "64049902-cdd4-11e4-84ff-705681abff85"], ["created_at", "2015-03-19 01:08:02.275878"], ["updated_at", "2015-03-19 01:08:02.275878"], ["token", "kXfFNvJ4mTDWQxZEAnecrvgcfXBZ9OzaBAhrRxD5PzY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.280397"], ["updated_at", "2015-03-19 01:08:02.280397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64049902-cdd4-11e4-84ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '6405abc6-cdd4-11e4-a7f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64049902-cdd4-11e4-84ff-705681abff85"], ["organization_id", "6405abc6-cdd4-11e4-a7f1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.283998"], ["updated_at", "2015-03-19 01:08:02.283998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '6405abc6-cdd4-11e4-a7f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "6405abc6-cdd4-11e4-a7f1-705681abff85"], ["created_at", "2015-03-19 01:08:02.287711"], ["updated_at", "2015-03-19 01:08:02.287711"], ["token", "WKGtynLE7vusyFzmZncAV-mju-QKx2k7ij7zH43A-mg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$c18MxATEHbC6Idoo8BdXledeOgyG37qRb5xPSxDW2iPpxTufElQA2"], ["created_at", "2015-03-19 01:08:02.292264"], ["updated_at", "2015-03-19 01:08:02.292264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.295317"], ["updated_at", "2015-03-19 01:08:02.295317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64077690-cdd4-11e4-b4c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6407ece2-cdd4-11e4-b55f-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64077690-cdd4-11e4-b4c6-705681abff85"], ["organization_id", "6407ece2-cdd4-11e4-b55f-705681abff85"], ["created_at", "2015-03-19 01:08:02.306353"], ["updated_at", "2015-03-19 01:08:02.306353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$BvWLOZzYwKLyTDGiC0ex7OCOzeCJ/H42xn3VPVb6YUNP3xgLDU.We"], ["created_at", "2015-03-19 01:08:02.318712"], ["updated_at", "2015-03-19 01:08:02.318712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.321187"], ["user_id", "640b88ca-cdd4-11e4-9590-705681abff85"], ["created_at", "2015-03-19 01:08:02.321987"], ["updated_at", "2015-03-19 01:08:02.321987"], ["token", "YeStzr76nDHe0RYL7Q3OgYdc2AHVqION2lzs5oVR5HE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.325777"], ["updated_at", "2015-03-19 01:08:02.325777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '640b88ca-cdd4-11e4-9590-705681abff85' AND "clubhouse_memberships"."organization_id" = '640c94a4-cdd4-11e4-9cb8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "640b88ca-cdd4-11e4-9590-705681abff85"], ["organization_id", "640c94a4-cdd4-11e4-9cb8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.329165"], ["updated_at", "2015-03-19 01:08:02.329165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '640c94a4-cdd4-11e4-9cb8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "640c94a4-cdd4-11e4-9cb8-705681abff85"], ["created_at", "2015-03-19 01:08:02.332462"], ["updated_at", "2015-03-19 01:08:02.332462"], ["token", "UM4srM4YsbQROudCWYA0qFCJbEBmk8RzEO05cHeoZT0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/640d9f66-cdd4-11e4-8c3a-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"640d9f66-cdd4-11e4-8c3a-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:02.337690' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YeStzr76nDHe0RYL7Q3OgYdc2AHVqION2lzs5oVR5HE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:02.339189"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:02.340172"], ["id", "640c0c5a-cdd4-11e4-8e25-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "640b88ca-cdd4-11e4-9590-705681abff85"]] Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$1F3X2R.bcPMbV6A6u7pcSO7CPXtMePj/81yyK3S69OvEQVX94h.SK"], ["created_at", "2015-03-19 01:08:02.347977"], ["updated_at", "2015-03-19 01:08:02.347977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.349678"], ["user_id", "640ffb30-cdd4-11e4-aa8b-705681abff85"], ["created_at", "2015-03-19 01:08:02.350449"], ["updated_at", "2015-03-19 01:08:02.350449"], ["token", "MjzMkZxmTMwJvYjw-nd3LUiBjIAW6yPF4CgumleXmm8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.353968"], ["updated_at", "2015-03-19 01:08:02.353968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '640ffb30-cdd4-11e4-aa8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6410e70c-cdd4-11e4-9a27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "640ffb30-cdd4-11e4-aa8b-705681abff85"], ["organization_id", "6410e70c-cdd4-11e4-9a27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.357996"], ["updated_at", "2015-03-19 01:08:02.357996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '6410e70c-cdd4-11e4-9a27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "6410e70c-cdd4-11e4-9a27-705681abff85"], ["created_at", "2015-03-19 01:08:02.361679"], ["updated_at", "2015-03-19 01:08:02.361679"], ["token", "OMUvowG5kYf36wQyJRTb3bcfIUAu0gSEaSvkfcggmn0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$SS9ZjG.Vlc6oIFBMIV1./emI5sgED/sEZC41ayObIEujfwcIsA1EK"], ["created_at", "2015-03-19 01:08:02.373127"], ["updated_at", "2015-03-19 01:08:02.373127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.375378"], ["user_id", "6413e1e6-cdd4-11e4-9be9-705681abff85"], ["created_at", "2015-03-19 01:08:02.376130"], ["updated_at", "2015-03-19 01:08:02.376130"], ["token", "_rY4Pjt1xsPHYwfLCbGRuL8I6M8x-Mj-zsqfB_Re6Oc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.379514"], ["updated_at", "2015-03-19 01:08:02.379514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6413e1e6-cdd4-11e4-9be9-705681abff85' AND "clubhouse_memberships"."organization_id" = '6414c534-cdd4-11e4-8349-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6413e1e6-cdd4-11e4-9be9-705681abff85"], ["organization_id", "6414c534-cdd4-11e4-8349-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.382904"], ["updated_at", "2015-03-19 01:08:02.382904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '6414c534-cdd4-11e4-8349-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "6414c534-cdd4-11e4-8349-705681abff85"], ["created_at", "2015-03-19 01:08:02.386409"], ["updated_at", "2015-03-19 01:08:02.386409"], ["token", "BlDysUeL0QIykB9AwM13mxgiPoIGizgJGCBLIx4CYus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$vZJ5A8bk/Xyao.MgkwMw0.gjna0CogmtI5GWDKVA15WtipvZ2y1fy"], ["created_at", "2015-03-19 01:08:02.397476"], ["updated_at", "2015-03-19 01:08:02.397476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.400485"], ["user_id", "64179c3c-cdd4-11e4-a2d2-705681abff85"], ["created_at", "2015-03-19 01:08:02.402085"], ["updated_at", "2015-03-19 01:08:02.402085"], ["token", "rAh8ZI4qSH9Wcie4Dmo5N36vjO9B7Yc2YFdAJxJVF5A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.408704"], ["updated_at", "2015-03-19 01:08:02.408704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64179c3c-cdd4-11e4-a2d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '641941fe-cdd4-11e4-b7e9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64179c3c-cdd4-11e4-a2d2-705681abff85"], ["organization_id", "641941fe-cdd4-11e4-b7e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.413017"], ["updated_at", "2015-03-19 01:08:02.413017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '641941fe-cdd4-11e4-b7e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "641941fe-cdd4-11e4-b7e9-705681abff85"], ["created_at", "2015-03-19 01:08:02.417939"], ["updated_at", "2015-03-19 01:08:02.417939"], ["token", "4qmJIFUls89JtVnXHAOS5yQ29A5usHJkxhVX2POx5zo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:02.423946' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rAh8ZI4qSH9Wcie4Dmo5N36vjO9B7Yc2YFdAJxJVF5A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:02.425890"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:02.427399"], ["id", "64185bb8-cdd4-11e4-b1ee-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$uzaeFps9x5zhUH3RQzsrXumoIRXmddXreiEsMaO5IylKGZ2KTTFLy"], ["created_at", "2015-03-19 01:08:02.442546"], ["updated_at", "2015-03-19 01:08:02.442546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.445126"], ["user_id", "641e81d2-cdd4-11e4-85d0-705681abff85"], ["created_at", "2015-03-19 01:08:02.445991"], ["updated_at", "2015-03-19 01:08:02.445991"], ["token", "TE3LqB0rHJrr9ls-f4dyrtRBmN84D_3kBfdX621qNBQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.449473"], ["updated_at", "2015-03-19 01:08:02.449473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '641e81d2-cdd4-11e4-85d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '641f71c8-cdd4-11e4-a612-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "641e81d2-cdd4-11e4-85d0-705681abff85"], ["organization_id", "641f71c8-cdd4-11e4-a612-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.453027"], ["updated_at", "2015-03-19 01:08:02.453027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '641f71c8-cdd4-11e4-a612-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "641f71c8-cdd4-11e4-a612-705681abff85"], ["created_at", "2015-03-19 01:08:02.456464"], ["updated_at", "2015-03-19 01:08:02.456464"], ["token", "5DWgY_NWTbdHrbHABEnOwRu0R8GQbaVXWKLjh4OPB-o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:02.461715' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TE3LqB0rHJrr9ls-f4dyrtRBmN84D_3kBfdX621qNBQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:02.463259"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:02.464359"], ["id", "641ef4f0-cdd4-11e4-91e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$mg3aUYxOOCrZU7U1lU.9kebfV1AbYez/dmhKuiXFUDPYiKg.s0kUC"], ["created_at", "2015-03-19 01:08:02.475075"], ["updated_at", "2015-03-19 01:08:02.475075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.476995"], ["user_id", "64236436-cdd4-11e4-9fa1-705681abff85"], ["created_at", "2015-03-19 01:08:02.477819"], ["updated_at", "2015-03-19 01:08:02.477819"], ["token", "o9Jm6eMIs5baKgygCng13nhikO_Mg4OtsmmXdHK0rNQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.481397"], ["updated_at", "2015-03-19 01:08:02.481397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64236436-cdd4-11e4-9fa1-705681abff85' AND "clubhouse_memberships"."organization_id" = '6424529c-cdd4-11e4-a7cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64236436-cdd4-11e4-9fa1-705681abff85"], ["organization_id", "6424529c-cdd4-11e4-a7cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.484689"], ["updated_at", "2015-03-19 01:08:02.484689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '6424529c-cdd4-11e4-a7cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "6424529c-cdd4-11e4-a7cb-705681abff85"], ["created_at", "2015-03-19 01:08:02.489069"], ["updated_at", "2015-03-19 01:08:02.489069"], ["token", "XKcRZ6Ro4skkM4PH76g3u5Ea_f5Hhu39VLv1PmJ8BTw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:02.493785' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o9Jm6eMIs5baKgygCng13nhikO_Mg4OtsmmXdHK0rNQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:02.495704"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:02.497602"], ["id", "6423d0f6-cdd4-11e4-a946-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$MxxV4dse1YxdOVkUhsL1JOWSfUDtQoLJG/bS5ZF7kzXZXgfOnaVcu"], ["created_at", "2015-03-19 01:08:02.509148"], ["updated_at", "2015-03-19 01:08:02.509148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.511167"], ["user_id", "64288ff6-cdd4-11e4-ac20-705681abff85"], ["created_at", "2015-03-19 01:08:02.512004"], ["updated_at", "2015-03-19 01:08:02.512004"], ["token", "O68njwFg2a3V3uX3rUNw4Uwa5gGlleJX1gbYjsuR3KI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.516052"], ["updated_at", "2015-03-19 01:08:02.516052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64288ff6-cdd4-11e4-ac20-705681abff85' AND "clubhouse_memberships"."organization_id" = '64299f54-cdd4-11e4-82ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64288ff6-cdd4-11e4-ac20-705681abff85"], ["organization_id", "64299f54-cdd4-11e4-82ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.519591"], ["updated_at", "2015-03-19 01:08:02.519591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '64299f54-cdd4-11e4-82ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "64299f54-cdd4-11e4-82ae-705681abff85"], ["created_at", "2015-03-19 01:08:02.522949"], ["updated_at", "2015-03-19 01:08:02.522949"], ["token", "0rZZZeli9pAOsV7dC5c0z2nJykCHyhjcsecj9YbRoTw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$GiKP7xa30ZsnXrlqlatNbejo5I3CmcX0yi9OC.K4k07f8/KICFZ66"], ["created_at", "2015-03-19 01:08:02.527901"], ["updated_at", "2015-03-19 01:08:02.527901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.531085"], ["updated_at", "2015-03-19 01:08:02.531085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '642b6d0c-cdd4-11e4-a666-705681abff85' AND "clubhouse_memberships"."organization_id" = '642be69c-cdd4-11e4-9099-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "642b6d0c-cdd4-11e4-a666-705681abff85"], ["organization_id", "642be69c-cdd4-11e4-9099-705681abff85"], ["created_at", "2015-03-19 01:08:02.534360"], ["updated_at", "2015-03-19 01:08:02.534360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/64299f54-cdd4-11e4-82ae-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"64299f54-cdd4-11e4-82ae-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:02.538874' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "O68njwFg2a3V3uX3rUNw4Uwa5gGlleJX1gbYjsuR3KI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:02.540721"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:02.542007"], ["id", "642907ec-cdd4-11e4-9b40-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "64299f54-cdd4-11e4-82ae-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64288ff6-cdd4-11e4-ac20-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "64299f54-cdd4-11e4-82ae-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('64299f54-cdd4-11e4-82ae-705681abff85') Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$J07iv7ssPbjGaR9.rIcjku8vMcXwQJ8watIU5DW8dPkF0nunddEAy"], ["created_at", "2015-03-19 01:08:02.554244"], ["updated_at", "2015-03-19 01:08:02.554244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:02.556329"], ["user_id", "642f80d6-cdd4-11e4-bfc3-705681abff85"], ["created_at", "2015-03-19 01:08:02.557348"], ["updated_at", "2015-03-19 01:08:02.557348"], ["token", "dxXbE3v68hvUSZFhb_IrTka2PJb1HYoWR9xcI4W_Gz8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.561056"], ["updated_at", "2015-03-19 01:08:02.561056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '642f80d6-cdd4-11e4-bfc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '64307a9a-cdd4-11e4-a8dc-705681abff85') LIMIT 1 SQL (4.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "642f80d6-cdd4-11e4-bfc3-705681abff85"], ["organization_id", "64307a9a-cdd4-11e4-a8dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:02.564347"], ["updated_at", "2015-03-19 01:08:02.564347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '64307a9a-cdd4-11e4-a8dc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "64307a9a-cdd4-11e4-a8dc-705681abff85"], ["created_at", "2015-03-19 01:08:02.572441"], ["updated_at", "2015-03-19 01:08:02.572441"], ["token", "Lk7IblNmG6bucAZCWf5dEEPKLCC_ON3fDO8bi2MiitM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$F2wIX7hUtiTRtdLnuFUWyu73BbHw3wrBi3IpYQdaiRZ/SMllVNHye"], ["created_at", "2015-03-19 01:08:02.577124"], ["updated_at", "2015-03-19 01:08:02.577124"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:02.581362"], ["updated_at", "2015-03-19 01:08:02.581362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6432ee24-cdd4-11e4-a818-705681abff85' AND "clubhouse_memberships"."organization_id" = '6433aaa8-cdd4-11e4-8f6c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6432ee24-cdd4-11e4-a818-705681abff85"], ["organization_id", "6433aaa8-cdd4-11e4-8f6c-705681abff85"], ["created_at", "2015-03-19 01:08:02.586321"], ["updated_at", "2015-03-19 01:08:02.586321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 18:08:02 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$8FNZ4andQ1AdV2.RbzrF8eqq3tYJr948odsjwSKhgP5.YFAq/HE72"], ["created_at", "2015-03-19 01:08:16.971522"], ["updated_at", "2015-03-19 01:08:16.971522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.007949"], ["user_id", "6ccb39c4-cdd4-11e4-9c80-705681abff85"], ["created_at", "2015-03-19 01:08:17.014819"], ["updated_at", "2015-03-19 01:08:17.014819"], ["token", "7x9jZaZ-NoDDLhQ10MlHlp7ZW7-E4R1qbP98-sezDpo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.028517"], ["updated_at", "2015-03-19 01:08:17.028517"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ccb39c4-cdd4-11e4-9c80-705681abff85' AND "clubhouse_memberships"."organization_id" = '6cd080c8-cdd4-11e4-8fca-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ccb39c4-cdd4-11e4-9c80-705681abff85"], ["organization_id", "6cd080c8-cdd4-11e4-8fca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.133065"], ["updated_at", "2015-03-19 01:08:17.133065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6cd080c8-cdd4-11e4-8fca-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "6cd080c8-cdd4-11e4-8fca-705681abff85"], ["created_at", "2015-03-19 01:08:17.145181"], ["updated_at", "2015-03-19 01:08:17.145181"], ["token", "u8925sMwXJnlqVH3xAqsoVwelXUC5RnNujUYGF8bCic"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$rxkhuvyOzztSIcfVnNGg0OMqUQxDP9quxwkKmWJ1UnAI010hWO11O"], ["created_at", "2015-03-19 01:08:17.193625"], ["updated_at", "2015-03-19 01:08:17.193625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.196086"], ["user_id", "6ce9436a-cdd4-11e4-a45e-705681abff85"], ["created_at", "2015-03-19 01:08:17.197472"], ["updated_at", "2015-03-19 01:08:17.197472"], ["token", "4Rkff_JdJcfFr3PFpGaIkKuXLIZxH0Sm7c0-Oy08ll0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.201579"], ["updated_at", "2015-03-19 01:08:17.201579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ce9436a-cdd4-11e4-a45e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6cea7564-cdd4-11e4-be68-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ce9436a-cdd4-11e4-a45e-705681abff85"], ["organization_id", "6cea7564-cdd4-11e4-be68-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.205934"], ["updated_at", "2015-03-19 01:08:17.205934"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '6cea7564-cdd4-11e4-be68-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "6cea7564-cdd4-11e4-be68-705681abff85"], ["created_at", "2015-03-19 01:08:17.215924"], ["updated_at", "2015-03-19 01:08:17.215924"], ["token", "9Ct9HVF0sAKgDLNuz89fhoCRrn0yYDZ7OlfzP4K_s8U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/6cecaba4-cdd4-11e4-b7d3-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"6cecaba4-cdd4-11e4-b7d3-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:17.221304' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4Rkff_JdJcfFr3PFpGaIkKuXLIZxH0Sm7c0-Oy08ll0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:17.228977"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:17.230524"], ["id", "6ce9e02c-cdd4-11e4-bcdc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ce9436a-cdd4-11e4-a45e-705681abff85"]] Completed 500 Internal Server Error in 18ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$gS/ECkp8vV/EPMA5H6Lu6OxmPXl/3LXnpfZm41G9DXxJ1VxM4.Q7K"], ["created_at", "2015-03-19 01:08:17.245603"], ["updated_at", "2015-03-19 01:08:17.245603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.248113"], ["user_id", "6cf13458-cdd4-11e4-9e9c-705681abff85"], ["created_at", "2015-03-19 01:08:17.248936"], ["updated_at", "2015-03-19 01:08:17.248936"], ["token", "SOHlNEYleHjPKjhTLUzTPnPlcG9zEO80ibHkHSAx8d4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.253271"], ["updated_at", "2015-03-19 01:08:17.253271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6cf13458-cdd4-11e4-9e9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6cf258e2-cdd4-11e4-a899-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6cf13458-cdd4-11e4-9e9c-705681abff85"], ["organization_id", "6cf258e2-cdd4-11e4-a899-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.257152"], ["updated_at", "2015-03-19 01:08:17.257152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '6cf258e2-cdd4-11e4-a899-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "6cf258e2-cdd4-11e4-a899-705681abff85"], ["created_at", "2015-03-19 01:08:17.261231"], ["updated_at", "2015-03-19 01:08:17.261231"], ["token", "cvrMGbJiVKaIUivW0pTJZr72MmSWNNAo0QlrBP18fso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$bcZRE.45Gvygg8uELvwdPe1FqGhzM1Zr.yRvuztfzIvNpcGlQfvsq"], ["created_at", "2015-03-19 01:08:17.266656"], ["updated_at", "2015-03-19 01:08:17.266656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.270284"], ["updated_at", "2015-03-19 01:08:17.270284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6cf46678-cdd4-11e4-9c8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6cf4f20a-cdd4-11e4-a2c0-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6cf46678-cdd4-11e4-9c8a-705681abff85"], ["organization_id", "6cf4f20a-cdd4-11e4-a2c0-705681abff85"], ["created_at", "2015-03-19 01:08:17.274283"], ["updated_at", "2015-03-19 01:08:17.274283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$mZXP5ysvAXdfN9Uotaniwu08ysOJAWMT20NguP.gfMT121pfVx5h."], ["created_at", "2015-03-19 01:08:17.288286"], ["updated_at", "2015-03-19 01:08:17.288286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.290332"], ["user_id", "6cf7b7ba-cdd4-11e4-b6fe-705681abff85"], ["created_at", "2015-03-19 01:08:17.291186"], ["updated_at", "2015-03-19 01:08:17.291186"], ["token", "k0b2peUWFCBj9P3Lb3cMniiyZZeMtVl-E_ykq6VOdgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.295290"], ["updated_at", "2015-03-19 01:08:17.295290"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (4.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6cf7b7ba-cdd4-11e4-b6fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '6cf8d85c-cdd4-11e4-a36c-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6cf7b7ba-cdd4-11e4-b6fe-705681abff85"], ["organization_id", "6cf8d85c-cdd4-11e4-a36c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.308347"], ["updated_at", "2015-03-19 01:08:17.308347"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.5ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '6cf8d85c-cdd4-11e4-a36c-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "6cf8d85c-cdd4-11e4-a36c-705681abff85"], ["created_at", "2015-03-19 01:08:17.325544"], ["updated_at", "2015-03-19 01:08:17.325544"], ["token", "D_sPGdpPLDVOn3it-krC69lNL4i7QZnIjojmMPL_APE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$2b69KU04XD7ZW3Ld8pRG8e5OOZoz4joKVAg5VDhgvsTRt74fSO/2G"], ["created_at", "2015-03-19 01:08:17.335697"], ["updated_at", "2015-03-19 01:08:17.335697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.339410"], ["updated_at", "2015-03-19 01:08:17.339410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6cfeef9e-cdd4-11e4-9df0-705681abff85' AND "clubhouse_memberships"."organization_id" = '6cff7fae-cdd4-11e4-a458-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6cfeef9e-cdd4-11e4-9df0-705681abff85"], ["organization_id", "6cff7fae-cdd4-11e4-a458-705681abff85"], ["created_at", "2015-03-19 01:08:17.343383"], ["updated_at", "2015-03-19 01:08:17.343383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/6cf8d85c-cdd4-11e4-a36c-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"6cf8d85c-cdd4-11e4-a36c-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:17.349207' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k0b2peUWFCBj9P3Lb3cMniiyZZeMtVl-E_ykq6VOdgQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:17.350784"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:17.351794"], ["id", "6cf82a88-cdd4-11e4-a092-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6cf8d85c-cdd4-11e4-a36c-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6cf7b7ba-cdd4-11e4-b6fe-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "6cf8d85c-cdd4-11e4-a36c-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('6cf8d85c-cdd4-11e4-a36c-705681abff85') Completed 500 Internal Server Error in 30ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$HUVeHk.L6im6/.lw77xqfONdHJ0rkutXWHxfXdM6e0ZTmfxtkEDgG"], ["created_at", "2015-03-19 01:08:17.386194"], ["updated_at", "2015-03-19 01:08:17.386194"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.400733"], ["user_id", "6d06ae46-cdd4-11e4-a2ac-705681abff85"], ["created_at", "2015-03-19 01:08:17.402846"], ["updated_at", "2015-03-19 01:08:17.402846"], ["token", "nrRzq1cnaAjfa2z5UGKpKc0LsXerz6_qnct9cEpaHIc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.408536"], ["updated_at", "2015-03-19 01:08:17.408536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d06ae46-cdd4-11e4-a2ac-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d0a1108-cdd4-11e4-b582-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d06ae46-cdd4-11e4-a2ac-705681abff85"], ["organization_id", "6d0a1108-cdd4-11e4-b582-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.417911"], ["updated_at", "2015-03-19 01:08:17.417911"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '6d0a1108-cdd4-11e4-b582-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "6d0a1108-cdd4-11e4-b582-705681abff85"], ["created_at", "2015-03-19 01:08:17.424240"], ["updated_at", "2015-03-19 01:08:17.424240"], ["token", "XQQQsClcvRNLM7mrjqE1QZxGa3jR2BUpYjzuFRuVdLE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$LDA37YE3n.chiCLcQKseg.45J/F4SpS3HWNPEvWeJc9IM5.ZRTPlK"], ["created_at", "2015-03-19 01:08:17.435936"], ["updated_at", "2015-03-19 01:08:17.435936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.437666"], ["user_id", "6d0e3666-cdd4-11e4-8866-705681abff85"], ["created_at", "2015-03-19 01:08:17.438436"], ["updated_at", "2015-03-19 01:08:17.438436"], ["token", "0b1d1Z07I6taMGoaIso_QJDRD-6KTSH3GWN_b9x_w9M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.441932"], ["updated_at", "2015-03-19 01:08:17.441932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d0e3666-cdd4-11e4-8866-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d0f1e96-cdd4-11e4-823f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d0e3666-cdd4-11e4-8866-705681abff85"], ["organization_id", "6d0f1e96-cdd4-11e4-823f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.445236"], ["updated_at", "2015-03-19 01:08:17.445236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '6d0f1e96-cdd4-11e4-823f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "6d0f1e96-cdd4-11e4-823f-705681abff85"], ["created_at", "2015-03-19 01:08:17.449384"], ["updated_at", "2015-03-19 01:08:17.449384"], ["token", "4oQNro3DL9PjozHdDVrK8QQobDdf_Kijgb7yoR6ffmQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/6d0f1e96-cdd4-11e4-823f-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"6d0f1e96-cdd4-11e4-823f-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:17.455766' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0b1d1Z07I6taMGoaIso_QJDRD-6KTSH3GWN_b9x_w9M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:17.457386"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:17.458418"], ["id", "6d0e9d5e-cdd4-11e4-af46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6d0f1e96-cdd4-11e4-823f-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Dlb0jw9XgVevDwA87NVKpupbKozsMxq38Mqv3oY.C4w2nb3cZq.Fy"], ["created_at", "2015-03-19 01:08:17.475472"], ["updated_at", "2015-03-19 01:08:17.475472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.477279"], ["user_id", "6d144146-cdd4-11e4-aa7f-705681abff85"], ["created_at", "2015-03-19 01:08:17.478662"], ["updated_at", "2015-03-19 01:08:17.478662"], ["token", "LlHPkLombztZ9dCPgSReUK9yUV6mitIeOEOfc5fyGY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.482810"], ["updated_at", "2015-03-19 01:08:17.482810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d144146-cdd4-11e4-aa7f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d155c70-cdd4-11e4-bc9d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d144146-cdd4-11e4-aa7f-705681abff85"], ["organization_id", "6d155c70-cdd4-11e4-bc9d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.486276"], ["updated_at", "2015-03-19 01:08:17.486276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '6d155c70-cdd4-11e4-bc9d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "6d155c70-cdd4-11e4-bc9d-705681abff85"], ["created_at", "2015-03-19 01:08:17.490332"], ["updated_at", "2015-03-19 01:08:17.490332"], ["token", "ZB_6EbIX3BT3bPT-oU5luyEaWtHj6jDqqzBCwpdsm_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/6d155c70-cdd4-11e4-bc9d-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"6d155c70-cdd4-11e4-bc9d-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:17.495593' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LlHPkLombztZ9dCPgSReUK9yUV6mitIeOEOfc5fyGY0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:17.497321"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:17.498393"], ["id", "6d14d322-cdd4-11e4-8383-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6d155c70-cdd4-11e4-bc9d-705681abff85"]] Completed 500 Internal Server Error in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$SFsX1oI/QprJcANUG3RYIOvUQzk6iwv87.PzVN.T6EX4ZTDge5.Cy"], ["created_at", "2015-03-19 01:08:17.516599"], ["updated_at", "2015-03-19 01:08:17.516599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.518425"], ["user_id", "6d1a8696-cdd4-11e4-a0d1-705681abff85"], ["created_at", "2015-03-19 01:08:17.519240"], ["updated_at", "2015-03-19 01:08:17.519240"], ["token", "LBXGLSxnL_X2tZTWL6_L8P_Pk31NFnVOtOzNVS_zudw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.522752"], ["updated_at", "2015-03-19 01:08:17.522752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d1a8696-cdd4-11e4-a0d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d1b72a4-cdd4-11e4-9653-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d1a8696-cdd4-11e4-a0d1-705681abff85"], ["organization_id", "6d1b72a4-cdd4-11e4-9653-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.526044"], ["updated_at", "2015-03-19 01:08:17.526044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '6d1b72a4-cdd4-11e4-9653-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "6d1b72a4-cdd4-11e4-9653-705681abff85"], ["created_at", "2015-03-19 01:08:17.529513"], ["updated_at", "2015-03-19 01:08:17.529513"], ["token", "clLHI3CCuZAZqadIxrrhgQDJXiPUbukInI_-EgbGi_k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/6d1b72a4-cdd4-11e4-9653-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"6d1b72a4-cdd4-11e4-9653-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:17.536883' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LBXGLSxnL_X2tZTWL6_L8P_Pk31NFnVOtOzNVS_zudw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:17.538932"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:17.541020"], ["id", "6d1af496-cdd4-11e4-a838-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6d1b72a4-cdd4-11e4-9653-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$mSiyJSr3RY7VQvvGaOi7d.1svAK6QosK/Z1pzUWes8VNJ53EDqv/i"], ["created_at", "2015-03-19 01:08:17.559539"], ["updated_at", "2015-03-19 01:08:17.559539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.561346"], ["user_id", "6d21140c-cdd4-11e4-a257-705681abff85"], ["created_at", "2015-03-19 01:08:17.562216"], ["updated_at", "2015-03-19 01:08:17.562216"], ["token", "PpxCOxcjjPzWrdeq08Wbn97Hj1b4GawdiENCyE3fpiQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.566053"], ["updated_at", "2015-03-19 01:08:17.566053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d21140c-cdd4-11e4-a257-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d220f2e-cdd4-11e4-9d5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d21140c-cdd4-11e4-a257-705681abff85"], ["organization_id", "6d220f2e-cdd4-11e4-9d5f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.569931"], ["updated_at", "2015-03-19 01:08:17.569931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '6d220f2e-cdd4-11e4-9d5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "6d220f2e-cdd4-11e4-9d5f-705681abff85"], ["created_at", "2015-03-19 01:08:17.580936"], ["updated_at", "2015-03-19 01:08:17.580936"], ["token", "HucNxObenROy9C4IZXCYbewZWl54taqnfCxOBANau-M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$/Vz8FbM5ZHMGQST.x43MNuUK7dKM646VydDNL4zXpOdsZsdSHKf7K"], ["created_at", "2015-03-19 01:08:17.591879"], ["updated_at", "2015-03-19 01:08:17.591879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.593820"], ["user_id", "6d260bce-cdd4-11e4-ad64-705681abff85"], ["created_at", "2015-03-19 01:08:17.594695"], ["updated_at", "2015-03-19 01:08:17.594695"], ["token", "pGyXBA6h9H97Szer7FzwLnL1yVoMGFUks15BzaWqI3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.598218"], ["updated_at", "2015-03-19 01:08:17.598218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d260bce-cdd4-11e4-ad64-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d26f66a-cdd4-11e4-bf58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d260bce-cdd4-11e4-ad64-705681abff85"], ["organization_id", "6d26f66a-cdd4-11e4-bf58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.601437"], ["updated_at", "2015-03-19 01:08:17.601437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '6d26f66a-cdd4-11e4-bf58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "6d26f66a-cdd4-11e4-bf58-705681abff85"], ["created_at", "2015-03-19 01:08:17.605109"], ["updated_at", "2015-03-19 01:08:17.605109"], ["token", "S1yCqpBVOWv5V5H01B45IDHM2QyQe7hGgtMFsaWpYHU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/6d2809d8-cdd4-11e4-b617-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"6d2809d8-cdd4-11e4-b617-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:17.609772' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pGyXBA6h9H97Szer7FzwLnL1yVoMGFUks15BzaWqI3U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:17.611244"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:17.612162"], ["id", "6d2676d6-cdd4-11e4-bada-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$IsyWk3t9Jd7qBGt9LX8cdOGTVbsBdNY8jzz6p9Ld2hOeN/hjlSLtu"], ["created_at", "2015-03-19 01:08:17.619500"], ["updated_at", "2015-03-19 01:08:17.619500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.621462"], ["user_id", "6d2a3fd2-cdd4-11e4-91bf-705681abff85"], ["created_at", "2015-03-19 01:08:17.622271"], ["updated_at", "2015-03-19 01:08:17.622271"], ["token", "9K-m2swvJHezMu5B0KqMpNxJjRkcjZjNXbW_jtRRsAI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (13.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.625720"], ["updated_at", "2015-03-19 01:08:17.625720"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (7.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d2a3fd2-cdd4-11e4-91bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d34ef68-cdd4-11e4-bbb5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d2a3fd2-cdd4-11e4-91bf-705681abff85"], ["organization_id", "6d34ef68-cdd4-11e4-bbb5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.717598"], ["updated_at", "2015-03-19 01:08:17.717598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '6d34ef68-cdd4-11e4-bbb5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "6d34ef68-cdd4-11e4-bbb5-705681abff85"], ["created_at", "2015-03-19 01:08:17.723578"], ["updated_at", "2015-03-19 01:08:17.723578"], ["token", "M_UO4htgtXr8m7m5Yp8VHumTseFMOAjLdwDHkruFefI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$x6XJzs3aBduhJYkh9hDeh.FQGOeLNWP5lE708I7x.SWwXrIka2zMS"], ["created_at", "2015-03-19 01:08:17.737643"], ["updated_at", "2015-03-19 01:08:17.737643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.739561"], ["user_id", "6d3c41f0-cdd4-11e4-befd-705681abff85"], ["created_at", "2015-03-19 01:08:17.740321"], ["updated_at", "2015-03-19 01:08:17.740321"], ["token", "S8hSrewTQB1MpexGff5KMRjWoYJP5RddhQ0WWzycq9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.744285"], ["updated_at", "2015-03-19 01:08:17.744285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d3c41f0-cdd4-11e4-befd-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d3d467c-cdd4-11e4-a201-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d3c41f0-cdd4-11e4-befd-705681abff85"], ["organization_id", "6d3d467c-cdd4-11e4-a201-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.747868"], ["updated_at", "2015-03-19 01:08:17.747868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '6d3d467c-cdd4-11e4-a201-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "6d3d467c-cdd4-11e4-a201-705681abff85"], ["created_at", "2015-03-19 01:08:17.751336"], ["updated_at", "2015-03-19 01:08:17.751336"], ["token", "x_SteCttEor-gR9ePdyciU4XaXVhEnyCIAfjNJUs_T0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:17.755916' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S8hSrewTQB1MpexGff5KMRjWoYJP5RddhQ0WWzycq9Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:17.757489"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:17.758452"], ["id", "6d3cb176-cdd4-11e4-acce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$2YECwN74ZxLTxkS9SyNCRuyNpoLe6/sQXr9KPezQMMh3yqgSh1i6K"], ["created_at", "2015-03-19 01:08:17.770092"], ["updated_at", "2015-03-19 01:08:17.770092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.771706"], ["user_id", "6d4132dc-cdd4-11e4-95f0-705681abff85"], ["created_at", "2015-03-19 01:08:17.772506"], ["updated_at", "2015-03-19 01:08:17.772506"], ["token", "kDKB76ytVYWCH4B6xzgFPcYEmU2yNzc9Fs8dFl-vw4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.775909"], ["updated_at", "2015-03-19 01:08:17.775909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d4132dc-cdd4-11e4-95f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d4212ce-cdd4-11e4-82d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d4132dc-cdd4-11e4-95f0-705681abff85"], ["organization_id", "6d4212ce-cdd4-11e4-82d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.779112"], ["updated_at", "2015-03-19 01:08:17.779112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '6d4212ce-cdd4-11e4-82d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "6d4212ce-cdd4-11e4-82d3-705681abff85"], ["created_at", "2015-03-19 01:08:17.782475"], ["updated_at", "2015-03-19 01:08:17.782475"], ["token", "qs_2Q37TVhbRMPYLNyP902A9t9yzXaVcm2dwxxGfatg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:17.787157' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kDKB76ytVYWCH4B6xzgFPcYEmU2yNzc9Fs8dFl-vw4c"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:17.788602"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:17.789728"], ["id", "6d4196b4-cdd4-11e4-ab82-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 8ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$biXzMtgjpRCqUSVvfWbsMuhWQgQoxuQ.GJJCbO/JwMftENvZGpi1O"], ["created_at", "2015-03-19 01:08:17.801296"], ["updated_at", "2015-03-19 01:08:17.801296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.802865"], ["user_id", "6d45f57e-cdd4-11e4-9e31-705681abff85"], ["created_at", "2015-03-19 01:08:17.803674"], ["updated_at", "2015-03-19 01:08:17.803674"], ["token", "Q1pBa5JZ3iDEORBQvTy83NPwsohs_3RQHgCSmvXQ6PY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.807175"], ["updated_at", "2015-03-19 01:08:17.807175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d45f57e-cdd4-11e4-9e31-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d46da5c-cdd4-11e4-a0c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d45f57e-cdd4-11e4-9e31-705681abff85"], ["organization_id", "6d46da5c-cdd4-11e4-a0c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.810503"], ["updated_at", "2015-03-19 01:08:17.810503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '6d46da5c-cdd4-11e4-a0c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "6d46da5c-cdd4-11e4-a0c9-705681abff85"], ["created_at", "2015-03-19 01:08:17.814025"], ["updated_at", "2015-03-19 01:08:17.814025"], ["token", "OSF49T-ZpyjdMAjPkXu23jWr3oCqvij6QFTv6xcsVNo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:17.819000' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Q1pBa5JZ3iDEORBQvTy83NPwsohs_3RQHgCSmvXQ6PY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:17.820412"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:17.821407"], ["id", "6d46574e-cdd4-11e4-9200-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$Aost66PbOJAGcYKYyB4a6ORWSP42pfpyPT/fY0Zykz8QRqtgxGAwS"], ["created_at", "2015-03-19 01:08:17.838170"], ["updated_at", "2015-03-19 01:08:17.838170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.840168"], ["user_id", "6d4b9f74-cdd4-11e4-8795-705681abff85"], ["created_at", "2015-03-19 01:08:17.841245"], ["updated_at", "2015-03-19 01:08:17.841245"], ["token", "Hk4hOhZZ6zKFXss-ZKiZV6-VBJ1VdPZBXI9toYurhO0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.845250"], ["updated_at", "2015-03-19 01:08:17.845250"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d4b9f74-cdd4-11e4-8795-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d4cac8e-cdd4-11e4-9fd3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d4b9f74-cdd4-11e4-8795-705681abff85"], ["organization_id", "6d4cac8e-cdd4-11e4-9fd3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.855337"], ["updated_at", "2015-03-19 01:08:17.855337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '6d4cac8e-cdd4-11e4-9fd3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "6d4cac8e-cdd4-11e4-9fd3-705681abff85"], ["created_at", "2015-03-19 01:08:17.859358"], ["updated_at", "2015-03-19 01:08:17.859358"], ["token", "lUAr9gzpLyuRexvjnVCOo7mWbCBxgDG5qajEPoFYDl0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$PM4/hX4AOUdPtz24X5rUl.H47hTp3Q3CeXPT6KTe8ayXLgMkiX/j2"], ["created_at", "2015-03-19 01:08:17.887873"], ["updated_at", "2015-03-19 01:08:17.887873"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (9.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.891894"], ["user_id", "6d5369d4-cdd4-11e4-8b2f-705681abff85"], ["created_at", "2015-03-19 01:08:17.893256"], ["updated_at", "2015-03-19 01:08:17.893256"], ["token", "zhpaV2FIworLDVR7tfv4LpUP7vmPeLT67IgCQ0A_yCQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.908563"], ["updated_at", "2015-03-19 01:08:17.908563"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d5369d4-cdd4-11e4-8b2f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d565748-cdd4-11e4-9fac-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d5369d4-cdd4-11e4-8b2f-705681abff85"], ["organization_id", "6d565748-cdd4-11e4-9fac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.912990"], ["updated_at", "2015-03-19 01:08:17.912990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '6d565748-cdd4-11e4-9fac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "6d565748-cdd4-11e4-9fac-705681abff85"], ["created_at", "2015-03-19 01:08:17.918419"], ["updated_at", "2015-03-19 01:08:17.918419"], ["token", "ctC1Hg8BP2_HmOV2-gM-x2MdyOrvU7c9thx604tHnjQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/6d57dbf4-cdd4-11e4-8efe-705681abff85" for 127.0.0.1 at 2015-03-18 18:08:17 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"6d57dbf4-cdd4-11e4-8efe-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:17.923891' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zhpaV2FIworLDVR7tfv4LpUP7vmPeLT67IgCQ0A_yCQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:17.925365"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:17.926524"], ["id", "6d541ba4-cdd4-11e4-94a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (1.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6d57dbf4-cdd4-11e4-8efe-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d5369d4-cdd4-11e4-8b2f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6d565748-cdd4-11e4-9fac-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$TyGydH6kOXwLLKjblQvljeSOIZqF13.YR9R/T7a5Ua4cITjiJk/Tu"], ["created_at", "2015-03-19 01:08:17.943883"], ["updated_at", "2015-03-19 01:08:17.943883"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:17.946849"], ["user_id", "6d5bc840-cdd4-11e4-a379-705681abff85"], ["created_at", "2015-03-19 01:08:17.949226"], ["updated_at", "2015-03-19 01:08:17.949226"], ["token", "46hec6eh7UcBDK8GRFPcL7cyWbF2-x6PSJHiSPCLSt8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.956341"], ["updated_at", "2015-03-19 01:08:17.956341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d5bc840-cdd4-11e4-a379-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d5dab88-cdd4-11e4-b253-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d5bc840-cdd4-11e4-a379-705681abff85"], ["organization_id", "6d5dab88-cdd4-11e4-b253-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:17.961815"], ["updated_at", "2015-03-19 01:08:17.961815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '6d5dab88-cdd4-11e4-b253-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "6d5dab88-cdd4-11e4-b253-705681abff85"], ["created_at", "2015-03-19 01:08:17.969236"], ["updated_at", "2015-03-19 01:08:17.969236"], ["token", "6ktylT5X2PeoERWZ9CUNTr2-9LbEMW_DETMMZRdm0Bo"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$.Ebno5yT4ppxFmMjNHW3ROS4tRTtxkBB4cKwDDrRpE71VI1npfZQ6"], ["created_at", "2015-03-19 01:08:17.981249"], ["updated_at", "2015-03-19 01:08:17.981249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:17.988292"], ["updated_at", "2015-03-19 01:08:17.988292"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d61c7f4-cdd4-11e4-8e9e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d6296b6-cdd4-11e4-b46d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6d61c7f4-cdd4-11e4-8e9e-705681abff85"], ["organization_id", "6d6296b6-cdd4-11e4-b46d-705681abff85"], ["created_at", "2015-03-19 01:08:17.994287"], ["updated_at", "2015-03-19 01:08:17.994287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:08:18 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$cgsmCGtjsvIsy/k.WApa0uOY6raaCnNHioOfrQ.URgoxIBsBpGP.y"], ["created_at", "2015-03-19 01:08:18.015348"], ["updated_at", "2015-03-19 01:08:18.015348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:08:18.017932"], ["user_id", "6d66b9ee-cdd4-11e4-ae36-705681abff85"], ["created_at", "2015-03-19 01:08:18.018770"], ["updated_at", "2015-03-19 01:08:18.018770"], ["token", "jUmQQIiAx_h0OX1jPQSSVmkprJpZH_lW_2nIEUIoblY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:18.023241"], ["updated_at", "2015-03-19 01:08:18.023241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d66b9ee-cdd4-11e4-ae36-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d67d612-cdd4-11e4-9c13-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d66b9ee-cdd4-11e4-ae36-705681abff85"], ["organization_id", "6d67d612-cdd4-11e4-9c13-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:08:18.029052"], ["updated_at", "2015-03-19 01:08:18.029052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '6d67d612-cdd4-11e4-9c13-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "6d67d612-cdd4-11e4-9c13-705681abff85"], ["created_at", "2015-03-19 01:08:18.039901"], ["updated_at", "2015-03-19 01:08:18.039901"], ["token", "e3Ak0_SqfCtwq972fFJEYzE5XUhl-iJ_jz8yR47BlRc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$pSuolZz8VoAS4.frIcSdVuWerQ53X1SZkiSNs1bIiR/tcyIP4FkVm"], ["created_at", "2015-03-19 01:08:18.055523"], ["updated_at", "2015-03-19 01:08:18.055523"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:08:18.062397"], ["updated_at", "2015-03-19 01:08:18.062397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d6cd7c0-cdd4-11e4-9a02-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d6e05e6-cdd4-11e4-a879-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6d6cd7c0-cdd4-11e4-9a02-705681abff85"], ["organization_id", "6d6e05e6-cdd4-11e4-a879-705681abff85"], ["created_at", "2015-03-19 01:08:18.069330"], ["updated_at", "2015-03-19 01:08:18.069330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:08:18 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:08:18.077052' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jUmQQIiAx_h0OX1jPQSSVmkprJpZH_lW_2nIEUIoblY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:08:18.079111"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:08:18.080635"], ["id", "6d673072-cdd4-11e4-9611-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d66b9ee-cdd4-11e4-ae36-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "6d67d612-cdd4-11e4-9c13-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('6d67d612-cdd4-11e4-9c13-705681abff85') Completed 500 Internal Server Error in 13ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (6.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (41.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$CeLixTwPmTK7nYH2HtP3UO4OBvvKK9pIqBnBWhpSfbA0kTTuxpyhS"], ["created_at", "2015-03-19 01:09:28.932244"], ["updated_at", "2015-03-19 01:09:28.932244"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:28.985725"], ["user_id", "97b20528-cdd4-11e4-b99d-705681abff85"], ["created_at", "2015-03-19 01:09:28.992457"], ["updated_at", "2015-03-19 01:09:28.992457"], ["token", "6koc1gaoSUgiPWZ6IF0M3g1RhzorTueRt9k6rkNZ7Nk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.009278"], ["updated_at", "2015-03-19 01:09:29.009278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97b20528-cdd4-11e4-b99d-705681abff85' AND "clubhouse_memberships"."organization_id" = '97b778a0-cdd4-11e4-9bbb-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97b20528-cdd4-11e4-b99d-705681abff85"], ["organization_id", "97b778a0-cdd4-11e4-9bbb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.049772"], ["updated_at", "2015-03-19 01:09:29.049772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '97b778a0-cdd4-11e4-9bbb-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "97b778a0-cdd4-11e4-9bbb-705681abff85"], ["created_at", "2015-03-19 01:09:29.062474"], ["updated_at", "2015-03-19 01:09:29.062474"], ["token", "afR-uk5rWVhncjgLIJH-NZWpDaleK_FFfZhxAs-Fq68"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$08YnbCIJXMmB2VVY81YRDeYef/duXOGvihzWIXewoV6zXOC1wnruC"], ["created_at", "2015-03-19 01:09:29.098399"], ["updated_at", "2015-03-19 01:09:29.098399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.100559"], ["user_id", "97c510aa-cdd4-11e4-8a52-705681abff85"], ["created_at", "2015-03-19 01:09:29.101544"], ["updated_at", "2015-03-19 01:09:29.101544"], ["token", "zah6dxm6PadA9lm0eHIzeCkTz2DqfH0ohI7FHJNJn_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.117256"], ["updated_at", "2015-03-19 01:09:29.117256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97c510aa-cdd4-11e4-8a52-705681abff85' AND "clubhouse_memberships"."organization_id" = '97c7eab4-cdd4-11e4-ac4f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97c510aa-cdd4-11e4-8a52-705681abff85"], ["organization_id", "97c7eab4-cdd4-11e4-ac4f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.121667"], ["updated_at", "2015-03-19 01:09:29.121667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '97c7eab4-cdd4-11e4-ac4f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "97c7eab4-cdd4-11e4-ac4f-705681abff85"], ["created_at", "2015-03-19 01:09:29.125669"], ["updated_at", "2015-03-19 01:09:29.125669"], ["token", "Z24iqwPvyaVBUydm_sPylLbAEA2Tyi9U_Jb9jxu3oNM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/97c93b12-cdd4-11e4-b237-705681abff85" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"97c93b12-cdd4-11e4-b237-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.131699' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zah6dxm6PadA9lm0eHIzeCkTz2DqfH0ohI7FHJNJn_s"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.140410"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.141819"], ["id", "97c58d8c-cdd4-11e4-b018-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (21.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$j6JQK1fo7jGX5MfpPTJ4J.E4ID0rgTB8bKmCf5qFwnxlBRpPv1k5."], ["created_at", "2015-03-19 01:09:29.158222"], ["updated_at", "2015-03-19 01:09:29.158222"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.186513"], ["user_id", "97d1a0e0-cdd4-11e4-bd5d-705681abff85"], ["created_at", "2015-03-19 01:09:29.188114"], ["updated_at", "2015-03-19 01:09:29.188114"], ["token", "OShBynB5WtoI53n-bVmNFn-7alAe25atWmoOa_4GG5U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.193896"], ["updated_at", "2015-03-19 01:09:29.193896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97d1a0e0-cdd4-11e4-bd5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '97d39db4-cdd4-11e4-a04b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97d1a0e0-cdd4-11e4-bd5d-705681abff85"], ["organization_id", "97d39db4-cdd4-11e4-a04b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.197696"], ["updated_at", "2015-03-19 01:09:29.197696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '97d39db4-cdd4-11e4-a04b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "97d39db4-cdd4-11e4-a04b-705681abff85"], ["created_at", "2015-03-19 01:09:29.201793"], ["updated_at", "2015-03-19 01:09:29.201793"], ["token", "5VQP3JKbuZMAMtC4qN2k1WUrHcwkOIBashtX73cctNw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$HPHAhZuoMd1sXCUUAujmeeLFzWUdHg8mr/NmvPRcS5zL0QsQrrXae"], ["created_at", "2015-03-19 01:09:29.224224"], ["updated_at", "2015-03-19 01:09:29.224224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.228471"], ["user_id", "97d873d4-cdd4-11e4-808e-705681abff85"], ["created_at", "2015-03-19 01:09:29.230326"], ["updated_at", "2015-03-19 01:09:29.230326"], ["token", "A6CH-QOOLmtyCRw0ZNeiSZzRteFjBOuRy38rTfxzGvM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.242471"], ["updated_at", "2015-03-19 01:09:29.242471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97d873d4-cdd4-11e4-808e-705681abff85' AND "clubhouse_memberships"."organization_id" = '97db1bde-cdd4-11e4-8742-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97d873d4-cdd4-11e4-808e-705681abff85"], ["organization_id", "97db1bde-cdd4-11e4-8742-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.247756"], ["updated_at", "2015-03-19 01:09:29.247756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '97db1bde-cdd4-11e4-8742-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "97db1bde-cdd4-11e4-8742-705681abff85"], ["created_at", "2015-03-19 01:09:29.252293"], ["updated_at", "2015-03-19 01:09:29.252293"], ["token", "vcNfuCU086vBnY0JHqAHqkZIC77oL8_7_pIzE6p42bQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/97dc98e2-cdd4-11e4-8e06-705681abff85" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"97dc98e2-cdd4-11e4-8e06-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.258273' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A6CH-QOOLmtyCRw0ZNeiSZzRteFjBOuRy38rTfxzGvM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.259954"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.261116"], ["id", "97d9e44e-cdd4-11e4-a451-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97d873d4-cdd4-11e4-808e-705681abff85"]] Completed 500 Internal Server Error in 19ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$L4CqxVH311cNVIQUId8LCeeKYk6OYFCeWGAPRm8qCkY3jFi/yrLsW"], ["created_at", "2015-03-19 01:09:29.283334"], ["updated_at", "2015-03-19 01:09:29.283334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.285234"], ["user_id", "97e14afe-cdd4-11e4-9fb4-705681abff85"], ["created_at", "2015-03-19 01:09:29.286013"], ["updated_at", "2015-03-19 01:09:29.286013"], ["token", "aC5ClmFcTwDJ-PrSeSD_Sm69C6csOBGnoUECUixGVqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.289797"], ["updated_at", "2015-03-19 01:09:29.289797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97e14afe-cdd4-11e4-9fb4-705681abff85' AND "clubhouse_memberships"."organization_id" = '97e2479c-cdd4-11e4-ab4b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97e14afe-cdd4-11e4-9fb4-705681abff85"], ["organization_id", "97e2479c-cdd4-11e4-ab4b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.293700"], ["updated_at", "2015-03-19 01:09:29.293700"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '97e2479c-cdd4-11e4-ab4b-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "97e2479c-cdd4-11e4-ab4b-705681abff85"], ["created_at", "2015-03-19 01:09:29.302286"], ["updated_at", "2015-03-19 01:09:29.302286"], ["token", "1gxVhgwVcuCFA0NqTavg3uvfHlaY8BEkvkfDj3Z8CNk"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$XNrPfjrDzhTZJP32.eXbfOU6XtJeEDKFbNb8bvJxCjUU33Lmr3cdC"], ["created_at", "2015-03-19 01:09:29.319796"], ["updated_at", "2015-03-19 01:09:29.319796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.321942"], ["user_id", "97e6d802-cdd4-11e4-aa7b-705681abff85"], ["created_at", "2015-03-19 01:09:29.323610"], ["updated_at", "2015-03-19 01:09:29.323610"], ["token", "b_B_fAE3meE0rCwJNDuul-Rw6NcqECz8wvZ9lwzj2hw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.328072"], ["updated_at", "2015-03-19 01:09:29.328072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97e6d802-cdd4-11e4-aa7b-705681abff85' AND "clubhouse_memberships"."organization_id" = '97e82130-cdd4-11e4-a6af-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97e6d802-cdd4-11e4-aa7b-705681abff85"], ["organization_id", "97e82130-cdd4-11e4-a6af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.333491"], ["updated_at", "2015-03-19 01:09:29.333491"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '97e82130-cdd4-11e4-a6af-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "97e82130-cdd4-11e4-a6af-705681abff85"], ["created_at", "2015-03-19 01:09:29.343105"], ["updated_at", "2015-03-19 01:09:29.343105"], ["token", "WX2ErnAbNcEvsFRZVkRay0DangjrTE5Kkg25SwiBl7s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/97e82130-cdd4-11e4-a6af-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"97e82130-cdd4-11e4-a6af-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.355770' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b_B_fAE3meE0rCwJNDuul-Rw6NcqECz8wvZ9lwzj2hw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.358340"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.360445"], ["id", "97e78bda-cdd4-11e4-9f7e-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$zPncLCzUMDYSkIVgNpo74uAQNbfIIXcZgg8OJUxaV4ya8ew5BLn4G"], ["created_at", "2015-03-19 01:09:29.385913"], ["updated_at", "2015-03-19 01:09:29.385913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.390405"], ["user_id", "97f10cdc-cdd4-11e4-a330-705681abff85"], ["created_at", "2015-03-19 01:09:29.393253"], ["updated_at", "2015-03-19 01:09:29.393253"], ["token", "bm1eMK9N2tRt3uHkVdrszEHctzxGXVK5H3HVrV3egsg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.397563"], ["updated_at", "2015-03-19 01:09:29.397563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97f10cdc-cdd4-11e4-a330-705681abff85' AND "clubhouse_memberships"."organization_id" = '97f2c68a-cdd4-11e4-a14c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97f10cdc-cdd4-11e4-a330-705681abff85"], ["organization_id", "97f2c68a-cdd4-11e4-a14c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.402186"], ["updated_at", "2015-03-19 01:09:29.402186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '97f2c68a-cdd4-11e4-a14c-705681abff85') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "97f2c68a-cdd4-11e4-a14c-705681abff85"], ["created_at", "2015-03-19 01:09:29.408561"], ["updated_at", "2015-03-19 01:09:29.408561"], ["token", "-4BZU6ZheLoV6ty6i1sTrPv26vcA_WgT--c18_npvS8"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/97f2c68a-cdd4-11e4-a14c-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"97f2c68a-cdd4-11e4-a14c-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.421213' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bm1eMK9N2tRt3uHkVdrszEHctzxGXVK5H3HVrV3egsg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.422939"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.423891"], ["id", "97f214b0-cdd4-11e4-9603-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$/ko34GrxPtwTeFfPvL4Wz.72TZ3DYMKJsTRHDEn69fFsDArtPcpuG"], ["created_at", "2015-03-19 01:09:29.432422"], ["updated_at", "2015-03-19 01:09:29.432422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.434122"], ["user_id", "97f7ffec-cdd4-11e4-a211-705681abff85"], ["created_at", "2015-03-19 01:09:29.434892"], ["updated_at", "2015-03-19 01:09:29.434892"], ["token", "Pp5oJuiYBhWkZ6p_4Dtsj_OhCKt1gg6zhNvTI2de3iU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.438280"], ["updated_at", "2015-03-19 01:09:29.438280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97f7ffec-cdd4-11e4-a211-705681abff85' AND "clubhouse_memberships"."organization_id" = '97f8e27c-cdd4-11e4-bb2d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97f7ffec-cdd4-11e4-a211-705681abff85"], ["organization_id", "97f8e27c-cdd4-11e4-bb2d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.441458"], ["updated_at", "2015-03-19 01:09:29.441458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '97f8e27c-cdd4-11e4-bb2d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "97f8e27c-cdd4-11e4-bb2d-705681abff85"], ["created_at", "2015-03-19 01:09:29.444971"], ["updated_at", "2015-03-19 01:09:29.444971"], ["token", "3rUkC2HscQyJarpHheAee0Eq7SThg59C2qRqc2Zx9I8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/97f8e27c-cdd4-11e4-bb2d-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"97f8e27c-cdd4-11e4-bb2d-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.451748' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Pp5oJuiYBhWkZ6p_4Dtsj_OhCKt1gg6zhNvTI2de3iU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.453167"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.454142"], ["id", "97f867d4-cdd4-11e4-b8dd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$.FdeZ9l.aHc2TZGjyzOREOa8J1jKbILnO4topvZojK2mGuWpzsDQS"], ["created_at", "2015-03-19 01:09:29.466662"], ["updated_at", "2015-03-19 01:09:29.466662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.468473"], ["user_id", "97fd3b4c-cdd4-11e4-b8ec-705681abff85"], ["created_at", "2015-03-19 01:09:29.469633"], ["updated_at", "2015-03-19 01:09:29.469633"], ["token", "uW1nRJWNKszxtduNjb2-AmZ-3mKGfXOQ4YDLiwllqvc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.474821"], ["updated_at", "2015-03-19 01:09:29.474821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97fd3b4c-cdd4-11e4-b8ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '97fe78b8-cdd4-11e4-84eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97fd3b4c-cdd4-11e4-b8ec-705681abff85"], ["organization_id", "97fe78b8-cdd4-11e4-84eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.478209"], ["updated_at", "2015-03-19 01:09:29.478209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '97fe78b8-cdd4-11e4-84eb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "97fe78b8-cdd4-11e4-84eb-705681abff85"], ["created_at", "2015-03-19 01:09:29.481968"], ["updated_at", "2015-03-19 01:09:29.481968"], ["token", "p98M-tThQMWQCoo7uVCLnYAhw6xrFrbhfI_7D6slIds"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$GthAuILf6xMLkyIVnRHsmeDFCvanRAKRJP8z3S8.PF7vAJcvfvWz2"], ["created_at", "2015-03-19 01:09:29.487305"], ["updated_at", "2015-03-19 01:09:29.487305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.490627"], ["updated_at", "2015-03-19 01:09:29.490627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98006a9c-cdd4-11e4-8dc6-705681abff85' AND "clubhouse_memberships"."organization_id" = '9800e102-cdd4-11e4-a207-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98006a9c-cdd4-11e4-8dc6-705681abff85"], ["organization_id", "9800e102-cdd4-11e4-a207-705681abff85"], ["created_at", "2015-03-19 01:09:29.495349"], ["updated_at", "2015-03-19 01:09:29.495349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$GNdKpR3EWtQBA9jQ8IdrCOixgM9qfH.yrXeq1S1ZDtXMOIvrDk00e"], ["created_at", "2015-03-19 01:09:29.506319"], ["updated_at", "2015-03-19 01:09:29.506319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.508057"], ["user_id", "98034a82-cdd4-11e4-9d0d-705681abff85"], ["created_at", "2015-03-19 01:09:29.508887"], ["updated_at", "2015-03-19 01:09:29.508887"], ["token", "hniklUR_caNpIuGKeZCyXhomiJQUyujxdUDlZFp_474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.512283"], ["updated_at", "2015-03-19 01:09:29.512283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98034a82-cdd4-11e4-9d0d-705681abff85' AND "clubhouse_memberships"."organization_id" = '98042c40-cdd4-11e4-80b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "98034a82-cdd4-11e4-9d0d-705681abff85"], ["organization_id", "98042c40-cdd4-11e4-80b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.516217"], ["updated_at", "2015-03-19 01:09:29.516217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '98042c40-cdd4-11e4-80b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "98042c40-cdd4-11e4-80b3-705681abff85"], ["created_at", "2015-03-19 01:09:29.519891"], ["updated_at", "2015-03-19 01:09:29.519891"], ["token", "BmEHLhZeAPshUWWRg_hNxWraD6h3gMIElf1tnv_kUz4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$kHUUlZ3YgYX6IALEt0Wq0u2CRRwIfstIIsVtvoKmz09D28sF9K5ke"], ["created_at", "2015-03-19 01:09:29.524814"], ["updated_at", "2015-03-19 01:09:29.524814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.528348"], ["updated_at", "2015-03-19 01:09:29.528348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98061cd0-cdd4-11e4-8c29-705681abff85' AND "clubhouse_memberships"."organization_id" = '9806a394-cdd4-11e4-a80f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98061cd0-cdd4-11e4-8c29-705681abff85"], ["organization_id", "9806a394-cdd4-11e4-a80f-705681abff85"], ["created_at", "2015-03-19 01:09:29.531842"], ["updated_at", "2015-03-19 01:09:29.531842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/98042c40-cdd4-11e4-80b3-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"98042c40-cdd4-11e4-80b3-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.536446' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hniklUR_caNpIuGKeZCyXhomiJQUyujxdUDlZFp_474"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.538506"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.539854"], ["id", "9803b224-cdd4-11e4-98ca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 19ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$mH7YnxhFWrn/82T2TPoG9OD0dMopE6.T6a4OUkl4ARnclPHWpkdpq"], ["created_at", "2015-03-19 01:09:29.561171"], ["updated_at", "2015-03-19 01:09:29.561171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.562891"], ["user_id", "980ba68c-cdd4-11e4-99f1-705681abff85"], ["created_at", "2015-03-19 01:09:29.563696"], ["updated_at", "2015-03-19 01:09:29.563696"], ["token", "HrXff9bKmJdFAneC2MAb-i8s8jNaBJrXllHXO5gEey4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.567314"], ["updated_at", "2015-03-19 01:09:29.567314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '980ba68c-cdd4-11e4-99f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '980c998e-cdd4-11e4-a425-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "980ba68c-cdd4-11e4-99f1-705681abff85"], ["organization_id", "980c998e-cdd4-11e4-a425-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.570853"], ["updated_at", "2015-03-19 01:09:29.570853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '980c998e-cdd4-11e4-a425-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "980c998e-cdd4-11e4-a425-705681abff85"], ["created_at", "2015-03-19 01:09:29.575438"], ["updated_at", "2015-03-19 01:09:29.575438"], ["token", "9FeezRsx1nItVkEor03pbu1xZ8zebTOQJG9d84A0WRk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$IzLxawjGTO8HqrxPTJ24IO35NRE5vtSWNvq0pIKQqDYlpAcaplOAa"], ["created_at", "2015-03-19 01:09:29.585897"], ["updated_at", "2015-03-19 01:09:29.585897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.587492"], ["user_id", "980f6ba0-cdd4-11e4-b3c7-705681abff85"], ["created_at", "2015-03-19 01:09:29.588239"], ["updated_at", "2015-03-19 01:09:29.588239"], ["token", "Ytb0XdZJSN7Pz-MhXsNBF0nRJAIfA6FBkqIQAkKdlYw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.591657"], ["updated_at", "2015-03-19 01:09:29.591657"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '980f6ba0-cdd4-11e4-b3c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '98105bdc-cdd4-11e4-93f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "980f6ba0-cdd4-11e4-b3c7-705681abff85"], ["organization_id", "98105bdc-cdd4-11e4-93f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.595923"], ["updated_at", "2015-03-19 01:09:29.595923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '98105bdc-cdd4-11e4-93f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "98105bdc-cdd4-11e4-93f3-705681abff85"], ["created_at", "2015-03-19 01:09:29.600116"], ["updated_at", "2015-03-19 01:09:29.600116"], ["token", "NHG1qyXTBLoTIJVg2yP9NUmUc6U57FTNir1I1xzGLjg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/9811a604-cdd4-11e4-8e0b-705681abff85" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"9811a604-cdd4-11e4-8e0b-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.605522' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ytb0XdZJSN7Pz-MhXsNBF0nRJAIfA6FBkqIQAkKdlYw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.606874"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.608187"], ["id", "980fcc12-cdd4-11e4-8d8b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "9811a604-cdd4-11e4-8e0b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "980f6ba0-cdd4-11e4-b3c7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "98105bdc-cdd4-11e4-93f3-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$YUITf2HBuKXd/EJwTDPztOTOxJn1BAmPNhbHrOqD0K08GLSCRZnbu"], ["created_at", "2015-03-19 01:09:29.621365"], ["updated_at", "2015-03-19 01:09:29.621365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.622963"], ["user_id", "9814d644-cdd4-11e4-9fe6-705681abff85"], ["created_at", "2015-03-19 01:09:29.623753"], ["updated_at", "2015-03-19 01:09:29.623753"], ["token", "bDWp5uxCsqeEQWVmolS4KlWyxn7yCuB_e7pCV7BcRLQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.736028"], ["updated_at", "2015-03-19 01:09:29.736028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9814d644-cdd4-11e4-9fe6-705681abff85' AND "clubhouse_memberships"."organization_id" = '98266670-cdd4-11e4-a559-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9814d644-cdd4-11e4-9fe6-705681abff85"], ["organization_id", "98266670-cdd4-11e4-a559-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.741634"], ["updated_at", "2015-03-19 01:09:29.741634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '98266670-cdd4-11e4-a559-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "98266670-cdd4-11e4-a559-705681abff85"], ["created_at", "2015-03-19 01:09:29.747086"], ["updated_at", "2015-03-19 01:09:29.747086"], ["token", "aULAPcpfH_bo_qGpjz03rUESn3DVu6pVzfFJMhsNzEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$RPNCJJcmKLypKrd9FMkTPOOElX4E5nlKQGxYJDq6Uz9DVQ6XdVloO"], ["created_at", "2015-03-19 01:09:29.753102"], ["updated_at", "2015-03-19 01:09:29.753102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.756293"], ["updated_at", "2015-03-19 01:09:29.756293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9828f070-cdd4-11e4-9664-705681abff85' AND "clubhouse_memberships"."organization_id" = '9829682a-cdd4-11e4-9634-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9828f070-cdd4-11e4-9664-705681abff85"], ["organization_id", "9829682a-cdd4-11e4-9634-705681abff85"], ["created_at", "2015-03-19 01:09:29.759323"], ["updated_at", "2015-03-19 01:09:29.759323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$7Tg7aXuzdtFTqebBGQXOqOL0wQKXT02sAKkyKwzhIIlCDEq5I8GhW"], ["created_at", "2015-03-19 01:09:29.768965"], ["updated_at", "2015-03-19 01:09:29.768965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.771098"], ["user_id", "982b5e96-cdd4-11e4-bfa0-705681abff85"], ["created_at", "2015-03-19 01:09:29.772008"], ["updated_at", "2015-03-19 01:09:29.772008"], ["token", "EyGhUvklfFxXjfY898BmwFjoAgXWwLcQa9zT8rWgcvA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.775585"], ["updated_at", "2015-03-19 01:09:29.775585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '982b5e96-cdd4-11e4-bfa0-705681abff85' AND "clubhouse_memberships"."organization_id" = '982c5b2a-cdd4-11e4-83e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "982b5e96-cdd4-11e4-bfa0-705681abff85"], ["organization_id", "982c5b2a-cdd4-11e4-83e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.778784"], ["updated_at", "2015-03-19 01:09:29.778784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '982c5b2a-cdd4-11e4-83e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "982c5b2a-cdd4-11e4-83e3-705681abff85"], ["created_at", "2015-03-19 01:09:29.782359"], ["updated_at", "2015-03-19 01:09:29.782359"], ["token", "dze2g1EC7KoDsFm-TQ_D1-RuRIBAl5xNJSlv8YxWUn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$jG9O9WineZcf1JPjwxBJfO0TG3i80eX8OH/nCVsZBIZ/v.EDhFsES"], ["created_at", "2015-03-19 01:09:29.786764"], ["updated_at", "2015-03-19 01:09:29.786764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.792031"], ["updated_at", "2015-03-19 01:09:29.792031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '982e0fa6-cdd4-11e4-905e-705681abff85' AND "clubhouse_memberships"."organization_id" = '982ee098-cdd4-11e4-a2f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "982e0fa6-cdd4-11e4-905e-705681abff85"], ["organization_id", "982ee098-cdd4-11e4-a2f2-705681abff85"], ["created_at", "2015-03-19 01:09:29.795541"], ["updated_at", "2015-03-19 01:09:29.795541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.801708' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EyGhUvklfFxXjfY898BmwFjoAgXWwLcQa9zT8rWgcvA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.803647"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.806462"], ["id", "982bdb0a-cdd4-11e4-bb08-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$r96OesUmgA2XQuiluUFHJuxXuZReMZuxtTpj0j/JpXT2h8Ry70TUO"], ["created_at", "2015-03-19 01:09:29.815957"], ["updated_at", "2015-03-19 01:09:29.815957"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.821282"], ["user_id", "9832921a-cdd4-11e4-b4e3-705681abff85"], ["created_at", "2015-03-19 01:09:29.828543"], ["updated_at", "2015-03-19 01:09:29.828543"], ["token", "MWR8H1c7Z4GAa4wgknPRRnHo4g9fzcwn132YPqjqdCk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.833835"], ["updated_at", "2015-03-19 01:09:29.833835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9832921a-cdd4-11e4-b4e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '98354424-cdd4-11e4-a2e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9832921a-cdd4-11e4-b4e3-705681abff85"], ["organization_id", "98354424-cdd4-11e4-a2e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.837442"], ["updated_at", "2015-03-19 01:09:29.837442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '98354424-cdd4-11e4-a2e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "98354424-cdd4-11e4-a2e8-705681abff85"], ["created_at", "2015-03-19 01:09:29.841086"], ["updated_at", "2015-03-19 01:09:29.841086"], ["token", "4AtNJYDWwVPCM-f1JTXWJBRkVt-uEhFNAxBbBM7AEas"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Tuj6WpYZSf8RR8hpFTgKeul0fy6yojnR6f6p3Zr.DKsV33/a7So8u"], ["created_at", "2015-03-19 01:09:29.850915"], ["updated_at", "2015-03-19 01:09:29.850915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.852546"], ["user_id", "9837dc0c-cdd4-11e4-a86d-705681abff85"], ["created_at", "2015-03-19 01:09:29.853472"], ["updated_at", "2015-03-19 01:09:29.853472"], ["token", "VtJM-I2w6INbDXIdIWhy-bsT3n_SPOTUz0RyTolRXtE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.856874"], ["updated_at", "2015-03-19 01:09:29.856874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9837dc0c-cdd4-11e4-a86d-705681abff85' AND "clubhouse_memberships"."organization_id" = '9838c338-cdd4-11e4-992c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9837dc0c-cdd4-11e4-a86d-705681abff85"], ["organization_id", "9838c338-cdd4-11e4-992c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.860105"], ["updated_at", "2015-03-19 01:09:29.860105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '9838c338-cdd4-11e4-992c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "9838c338-cdd4-11e4-992c-705681abff85"], ["created_at", "2015-03-19 01:09:29.864294"], ["updated_at", "2015-03-19 01:09:29.864294"], ["token", "AQejjSx30ti-FJiX5KGEKXGkb2h8WJLbBd4KenMutWU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.871570' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VtJM-I2w6INbDXIdIWhy-bsT3n_SPOTUz0RyTolRXtE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.875636"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.877274"], ["id", "983845de-cdd4-11e4-95ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$9iPVttRaeUHkTdhSKr6NPeKK2ka7Zt.fWmXyetDbDHvcZuuZTtKg2"], ["created_at", "2015-03-19 01:09:29.885809"], ["updated_at", "2015-03-19 01:09:29.885809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.887518"], ["user_id", "983d32c4-cdd4-11e4-870f-705681abff85"], ["created_at", "2015-03-19 01:09:29.888261"], ["updated_at", "2015-03-19 01:09:29.888261"], ["token", "2Id31aPdctxyrs4NwJyCKv5lpBshDW19M2n5X-XdqLA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.893954"], ["updated_at", "2015-03-19 01:09:29.893954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '983d32c4-cdd4-11e4-870f-705681abff85' AND "clubhouse_memberships"."organization_id" = '983e6ca2-cdd4-11e4-be76-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "983d32c4-cdd4-11e4-870f-705681abff85"], ["organization_id", "983e6ca2-cdd4-11e4-be76-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.897204"], ["updated_at", "2015-03-19 01:09:29.897204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '983e6ca2-cdd4-11e4-be76-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "983e6ca2-cdd4-11e4-be76-705681abff85"], ["created_at", "2015-03-19 01:09:29.900523"], ["updated_at", "2015-03-19 01:09:29.900523"], ["token", "do1bPWJ31T-CfnpY8-exSL42PrK2q5I-GmqtvT_OHDM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.905124' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2Id31aPdctxyrs4NwJyCKv5lpBshDW19M2n5X-XdqLA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.906541"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.907541"], ["id", "983d953e-cdd4-11e4-b340-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$GuGN5nT7mKZOyHdXFxedL.zNv6K9HA.DoSBUZf0iQ1g80oRWH6LMC"], ["created_at", "2015-03-19 01:09:29.916274"], ["updated_at", "2015-03-19 01:09:29.916274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:09:29.918214"], ["user_id", "9841df7c-cdd4-11e4-97ad-705681abff85"], ["created_at", "2015-03-19 01:09:29.919213"], ["updated_at", "2015-03-19 01:09:29.919213"], ["token", "rTn-cPYbCjHYxs0-cvPDdxjZIAj_6-Z9l_WuaEGZZGk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:09:29.922942"], ["updated_at", "2015-03-19 01:09:29.922942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9841df7c-cdd4-11e4-97ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '9842d666-cdd4-11e4-bfe1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9841df7c-cdd4-11e4-97ad-705681abff85"], ["organization_id", "9842d666-cdd4-11e4-bfe1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:09:29.926251"], ["updated_at", "2015-03-19 01:09:29.926251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '9842d666-cdd4-11e4-bfe1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "9842d666-cdd4-11e4-bfe1-705681abff85"], ["created_at", "2015-03-19 01:09:29.929847"], ["updated_at", "2015-03-19 01:09:29.929847"], ["token", "LSuUgny7FAUMJUHISCOMxxbNvSK8KzuRvl__-98_1Ew"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:09:29 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:09:29.937579' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rTn-cPYbCjHYxs0-cvPDdxjZIAj_6-Z9l_WuaEGZZGk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:09:29.942419"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:09:29.947633"], ["id", "98425330-cdd4-11e4-841b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (13.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (39.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$GqX42l1x3kfbAg3LMme2ZuoOvCyUi0K8ELOkePjHwQ4MdrkhFfj.C"], ["created_at", "2015-03-19 01:10:30.639437"], ["updated_at", "2015-03-19 01:10:30.639437"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:30.711860"], ["user_id", "bc7981d8-cdd4-11e4-b728-705681abff85"], ["created_at", "2015-03-19 01:10:30.763866"], ["updated_at", "2015-03-19 01:10:30.763866"], ["token", "ShBiLtYAnSnKg144qfeNOpFMUWa3JBReyY5j2aJsajo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:30.776442"], ["updated_at", "2015-03-19 01:10:30.776442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7981d8-cdd4-11e4-b728-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc886360-cdd4-11e4-95cc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc7981d8-cdd4-11e4-b728-705681abff85"], ["organization_id", "bc886360-cdd4-11e4-95cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:30.787898"], ["updated_at", "2015-03-19 01:10:30.787898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bc886360-cdd4-11e4-95cc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "bc886360-cdd4-11e4-95cc-705681abff85"], ["created_at", "2015-03-19 01:10:30.799366"], ["updated_at", "2015-03-19 01:10:30.799366"], ["token", "KonVT6GnGaVD1p8SA-ZMvKa-t3Zu7HoYACTQDOoATjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/bc8be878-cdd4-11e4-bc9d-705681abff85" for 127.0.0.1 at 2015-03-18 18:10:30 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"bc8be878-cdd4-11e4-bc9d-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:30.828446' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ShBiLtYAnSnKg144qfeNOpFMUWa3JBReyY5j2aJsajo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (23.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:30.835926"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:30.837231"], ["id", "bc868978-cdd4-11e4-9800-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7981d8-cdd4-11e4-b728-705681abff85"]] Completed 500 Internal Server Error in 42ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$2VOH/5zyQESSLz3/X4sD6ejlTpZ6tpVM948NGOAST.G5R.Yo1OS36"], ["created_at", "2015-03-19 01:10:30.875232"], ["updated_at", "2015-03-19 01:10:30.875232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:30.877161"], ["user_id", "bc977544-cdd4-11e4-a1f5-705681abff85"], ["created_at", "2015-03-19 01:10:30.878050"], ["updated_at", "2015-03-19 01:10:30.878050"], ["token", "rwjG5Wu6FA3FWpcZBFO7HxRId-fll-_x1GrQ_yUr_68"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:30.881754"], ["updated_at", "2015-03-19 01:10:30.881754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc977544-cdd4-11e4-a1f5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc986b5c-cdd4-11e4-b6ad-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc977544-cdd4-11e4-a1f5-705681abff85"], ["organization_id", "bc986b5c-cdd4-11e4-b6ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:30.885122"], ["updated_at", "2015-03-19 01:10:30.885122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'bc986b5c-cdd4-11e4-b6ad-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "bc986b5c-cdd4-11e4-b6ad-705681abff85"], ["created_at", "2015-03-19 01:10:30.888929"], ["updated_at", "2015-03-19 01:10:30.888929"], ["token", "yn8mISF7l1J04Wl8VP8dLJJgrOBzuXowfIMzgNC2C9M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 18:10:30 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$IruDn.oecLW3MT6H3uiefu/tLrESp21P3oKSWNIgH5Ktr/ZbWO8sa"], ["created_at", "2015-03-19 01:10:30.901492"], ["updated_at", "2015-03-19 01:10:30.901492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:30.903915"], ["user_id", "bc9b872e-cdd4-11e4-ae6a-705681abff85"], ["created_at", "2015-03-19 01:10:30.904866"], ["updated_at", "2015-03-19 01:10:30.904866"], ["token", "vuu5HVimV88fdncdZr_JaIu-f5D0ywM7yzp7DRktRTg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:30.910384"], ["updated_at", "2015-03-19 01:10:30.910384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9b872e-cdd4-11e4-ae6a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc9cce5e-cdd4-11e4-8e4e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc9b872e-cdd4-11e4-ae6a-705681abff85"], ["organization_id", "bc9cce5e-cdd4-11e4-8e4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:30.914144"], ["updated_at", "2015-03-19 01:10:30.914144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'bc9cce5e-cdd4-11e4-8e4e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "bc9cce5e-cdd4-11e4-8e4e-705681abff85"], ["created_at", "2015-03-19 01:10:30.918070"], ["updated_at", "2015-03-19 01:10:30.918070"], ["token", "RPxPm67paIaT92NN98MvZtJymumygh0JVVy1oQdrlMA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 18:10:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Cp6nBJJtoim4K6FOU7VjYeOSr8gbpp8pNTs.d9Nk75nCpyEhqZAdG"], ["created_at", "2015-03-19 01:10:30.929737"], ["updated_at", "2015-03-19 01:10:30.929737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:30.931736"], ["user_id", "bc9fc410-cdd4-11e4-b96b-705681abff85"], ["created_at", "2015-03-19 01:10:30.932629"], ["updated_at", "2015-03-19 01:10:30.932629"], ["token", "PonjWNEhP8x5gUCDQZZBOwGjNx6tvxU4RMu_E5S6tZg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:30.936595"], ["updated_at", "2015-03-19 01:10:30.936595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9fc410-cdd4-11e4-b96b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca0d7d8-cdd4-11e4-b0b9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc9fc410-cdd4-11e4-b96b-705681abff85"], ["organization_id", "bca0d7d8-cdd4-11e4-b0b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:30.940674"], ["updated_at", "2015-03-19 01:10:30.940674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'bca0d7d8-cdd4-11e4-b0b9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "bca0d7d8-cdd4-11e4-b0b9-705681abff85"], ["created_at", "2015-03-19 01:10:30.944543"], ["updated_at", "2015-03-19 01:10:30.944543"], ["token", "-1YDC6gROKzjdDuKBqgNnvmDtmW2aXC5RWTS9WWeBbE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bca0d7d8-cdd4-11e4-b0b9-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:10:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"bca0d7d8-cdd4-11e4-b0b9-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:30.951463' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PonjWNEhP8x5gUCDQZZBOwGjNx6tvxU4RMu_E5S6tZg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (12.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:30.952974"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:30.954069"], ["id", "bca03bca-cdd4-11e4-b200-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc9fc410-cdd4-11e4-b96b-705681abff85"]] Completed 500 Internal Server Error in 22ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Qyx53ikZkMV.HwfMkPg.8OtXx74Z9Tv/FP77dCpo.XP4uOfIz42b2"], ["created_at", "2015-03-19 01:10:30.980983"], ["updated_at", "2015-03-19 01:10:30.980983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:30.982973"], ["user_id", "bca79870-cdd4-11e4-983f-705681abff85"], ["created_at", "2015-03-19 01:10:30.983863"], ["updated_at", "2015-03-19 01:10:30.983863"], ["token", "K4Tx_KZbvYaqFfvMVXejvgnfgmyfK--y1nGzDdTj6HU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:30.987795"], ["updated_at", "2015-03-19 01:10:30.987795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca79870-cdd4-11e4-983f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca89e0a-cdd4-11e4-ad66-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca79870-cdd4-11e4-983f-705681abff85"], ["organization_id", "bca89e0a-cdd4-11e4-ad66-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:30.991520"], ["updated_at", "2015-03-19 01:10:30.991520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'bca89e0a-cdd4-11e4-ad66-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "bca89e0a-cdd4-11e4-ad66-705681abff85"], ["created_at", "2015-03-19 01:10:30.995626"], ["updated_at", "2015-03-19 01:10:30.995626"], ["token", "e9ueVeOanOZeWxS6q8PvMwkrQHwyvQIe7gfRsj-Lw9g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bca89e0a-cdd4-11e4-ad66-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:10:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"bca89e0a-cdd4-11e4-ad66-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:31.001432' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "K4Tx_KZbvYaqFfvMVXejvgnfgmyfK--y1nGzDdTj6HU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:31.003107"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:31.004817"], ["id", "bca80d28-cdd4-11e4-b604-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bca79870-cdd4-11e4-983f-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$gH0QwgfvwVTrhy5am9nQy.rbxlhY3Oq0nVHcOwP986coKXXhRnanq"], ["created_at", "2015-03-19 01:10:31.016144"], ["updated_at", "2015-03-19 01:10:31.016144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.017974"], ["user_id", "bcacf180-cdd4-11e4-b524-705681abff85"], ["created_at", "2015-03-19 01:10:31.018917"], ["updated_at", "2015-03-19 01:10:31.018917"], ["token", "Z9fjCxrFqxYWPY_dTDU3uwR8RA2iG4hbb4bLfUpaKWQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.023095"], ["updated_at", "2015-03-19 01:10:31.023095"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcacf180-cdd4-11e4-b524-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcae161e-cdd4-11e4-a688-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcacf180-cdd4-11e4-b524-705681abff85"], ["organization_id", "bcae161e-cdd4-11e4-a688-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.028676"], ["updated_at", "2015-03-19 01:10:31.028676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'bcae161e-cdd4-11e4-a688-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "bcae161e-cdd4-11e4-a688-705681abff85"], ["created_at", "2015-03-19 01:10:31.033094"], ["updated_at", "2015-03-19 01:10:31.033094"], ["token", "8_SnuH1TzsEAHjvhuo0vuXRvBTAG9yHfAgVpw12ufnU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bcae161e-cdd4-11e4-a688-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"bcae161e-cdd4-11e4-a688-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:31.038414' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Z9fjCxrFqxYWPY_dTDU3uwR8RA2iG4hbb4bLfUpaKWQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:31.039868"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:31.040895"], ["id", "bcad6b2e-cdd4-11e4-844d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcacf180-cdd4-11e4-b524-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$9jsjjam5dxqZN.dqvbvmiO9Od.iSFZo9ADwRzGb0HjiMFcdWZrIZa"], ["created_at", "2015-03-19 01:10:31.050542"], ["updated_at", "2015-03-19 01:10:31.050542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.052161"], ["user_id", "bcb22f10-cdd4-11e4-83fe-705681abff85"], ["created_at", "2015-03-19 01:10:31.052965"], ["updated_at", "2015-03-19 01:10:31.052965"], ["token", "yZWXOl1--vPiTgsdEderh9IX3k1gD0woB_ZBXCEE56o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (14.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.056677"], ["updated_at", "2015-03-19 01:10:31.056677"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcb22f10-cdd4-11e4-83fe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcb3200a-cdd4-11e4-9944-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcb22f10-cdd4-11e4-83fe-705681abff85"], ["organization_id", "bcb3200a-cdd4-11e4-9944-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.075825"], ["updated_at", "2015-03-19 01:10:31.075825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'bcb3200a-cdd4-11e4-9944-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "bcb3200a-cdd4-11e4-9944-705681abff85"], ["created_at", "2015-03-19 01:10:31.079994"], ["updated_at", "2015-03-19 01:10:31.079994"], ["token", "dX6CSeC2zASHZCqtRy478fYmEn_oElAwAxmP_XZXxzY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$nEDxDGo7Si0Aed3apP4GIOZ4V3rWUttp1bH6Kd4JwasgDBJC5Etgi"], ["created_at", "2015-03-19 01:10:31.085293"], ["updated_at", "2015-03-19 01:10:31.085293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.089547"], ["updated_at", "2015-03-19 01:10:31.089547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcb7815e-cdd4-11e4-a6b8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcb828a2-cdd4-11e4-a382-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcb7815e-cdd4-11e4-a6b8-705681abff85"], ["organization_id", "bcb828a2-cdd4-11e4-a382-705681abff85"], ["created_at", "2015-03-19 01:10:31.093783"], ["updated_at", "2015-03-19 01:10:31.093783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:31.099900' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yZWXOl1--vPiTgsdEderh9IX3k1gD0woB_ZBXCEE56o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:31.101610"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:31.102750"], ["id", "bcb29504-cdd4-11e4-83b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$NhBGIXOk9Zsd0rqixS6HGeDrfp6zIY/vJ1FJhgHVHD1.eU8L2sqT6"], ["created_at", "2015-03-19 01:10:31.113252"], ["updated_at", "2015-03-19 01:10:31.113252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.114846"], ["user_id", "bcbbc016-cdd4-11e4-a27a-705681abff85"], ["created_at", "2015-03-19 01:10:31.115666"], ["updated_at", "2015-03-19 01:10:31.115666"], ["token", "y8Kur8yOD4hezR7ANSTqOr_lZhBQ2vUfnnF4uLoT9Pk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.119521"], ["updated_at", "2015-03-19 01:10:31.119521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcbbc016-cdd4-11e4-a27a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcbcb2b4-cdd4-11e4-a002-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcbbc016-cdd4-11e4-a27a-705681abff85"], ["organization_id", "bcbcb2b4-cdd4-11e4-a002-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.123151"], ["updated_at", "2015-03-19 01:10:31.123151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'bcbcb2b4-cdd4-11e4-a002-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "bcbcb2b4-cdd4-11e4-a002-705681abff85"], ["created_at", "2015-03-19 01:10:31.126681"], ["updated_at", "2015-03-19 01:10:31.126681"], ["token", "vbLzQ5rywxq9v0YpfgKS9w-Sy8zvJpDz4S8mCJCXh5s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$91Z6bKKTr4OsHdJU1aJi3Orax3cnShV36snY7W5.UG4DTKz2WAnru"], ["created_at", "2015-03-19 01:10:31.131208"], ["updated_at", "2015-03-19 01:10:31.131208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.134690"], ["updated_at", "2015-03-19 01:10:31.134690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcbe7d6a-cdd4-11e4-8332-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcbf051e-cdd4-11e4-b4b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcbe7d6a-cdd4-11e4-8332-705681abff85"], ["organization_id", "bcbf051e-cdd4-11e4-b4b2-705681abff85"], ["created_at", "2015-03-19 01:10:31.138049"], ["updated_at", "2015-03-19 01:10:31.138049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$ogv2qjjw8eVf21gqbM5rM.eAytuNgNH7S2uaiug1KaO39cA7Ypm4m"], ["created_at", "2015-03-19 01:10:31.150168"], ["updated_at", "2015-03-19 01:10:31.150168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.151925"], ["user_id", "bcc16624-cdd4-11e4-b4ee-705681abff85"], ["created_at", "2015-03-19 01:10:31.152759"], ["updated_at", "2015-03-19 01:10:31.152759"], ["token", "UkPCawGynuCXMm99IWnwuK3syIcPxRxjamoJZaacwLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (6.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.157562"], ["updated_at", "2015-03-19 01:10:31.157562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc16624-cdd4-11e4-b4ee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc29bac-cdd4-11e4-a717-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcc16624-cdd4-11e4-b4ee-705681abff85"], ["organization_id", "bcc29bac-cdd4-11e4-a717-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.169031"], ["updated_at", "2015-03-19 01:10:31.169031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'bcc29bac-cdd4-11e4-a717-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "bcc29bac-cdd4-11e4-a717-705681abff85"], ["created_at", "2015-03-19 01:10:31.173109"], ["updated_at", "2015-03-19 01:10:31.173109"], ["token", "JHWtJNyudv_2naxHTQtusCy-lryYKkEXLySWvXdpI6k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$4OSlCkI1daVUUl4MCMfXFezD6llxA/ykJpvX3vDWMawWahEDbDucy"], ["created_at", "2015-03-19 01:10:31.177867"], ["updated_at", "2015-03-19 01:10:31.177867"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.190026"], ["updated_at", "2015-03-19 01:10:31.190026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc5a37e-cdd4-11e4-9369-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc774b0-cdd4-11e4-a96b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcc5a37e-cdd4-11e4-9369-705681abff85"], ["organization_id", "bcc774b0-cdd4-11e4-a96b-705681abff85"], ["created_at", "2015-03-19 01:10:31.193251"], ["updated_at", "2015-03-19 01:10:31.193251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bcc29bac-cdd4-11e4-a717-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"bcc29bac-cdd4-11e4-a717-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:31.197907' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UkPCawGynuCXMm99IWnwuK3syIcPxRxjamoJZaacwLQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:31.199346"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:31.200278"], ["id", "bcc1cf1a-cdd4-11e4-9e53-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$hL.evnJM/5VuuRFxbt60zu/sR7CIbHS5CEQ.yK8x3TBv43ASLe9GG"], ["created_at", "2015-03-19 01:10:31.209057"], ["updated_at", "2015-03-19 01:10:31.209057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.210843"], ["user_id", "bcca630a-cdd4-11e4-8bc3-705681abff85"], ["created_at", "2015-03-19 01:10:31.211607"], ["updated_at", "2015-03-19 01:10:31.211607"], ["token", "p0s10SL2vJm6nwvDc2ZRle_s_J-uZuFoYQSnAGbe8B0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.214934"], ["updated_at", "2015-03-19 01:10:31.214934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcca630a-cdd4-11e4-8bc3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bccb4090-cdd4-11e4-8018-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcca630a-cdd4-11e4-8bc3-705681abff85"], ["organization_id", "bccb4090-cdd4-11e4-8018-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.218249"], ["updated_at", "2015-03-19 01:10:31.218249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'bccb4090-cdd4-11e4-8018-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "bccb4090-cdd4-11e4-8018-705681abff85"], ["created_at", "2015-03-19 01:10:31.222438"], ["updated_at", "2015-03-19 01:10:31.222438"], ["token", "6_GPhLLO53b7g4RvGJPC0aN7nlUQ9yb03CUzvLTo7C8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$7GSoAsM.PzRdney5DcWWyuKn4apxvkLsJ1AccQX5sCyOUTWYGN.wW"], ["created_at", "2015-03-19 01:10:31.226923"], ["updated_at", "2015-03-19 01:10:31.226923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.229898"], ["updated_at", "2015-03-19 01:10:31.229898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bccd158c-cdd4-11e4-b8bd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bccd892c-cdd4-11e4-8bde-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bccd158c-cdd4-11e4-b8bd-705681abff85"], ["organization_id", "bccd892c-cdd4-11e4-8bde-705681abff85"], ["created_at", "2015-03-19 01:10:31.233311"], ["updated_at", "2015-03-19 01:10:31.233311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$f6Wjy9u4dbLzPwJcHdWiU.kXnappD85nFIMxxxjed1FVijM7.p60y"], ["created_at", "2015-03-19 01:10:31.245125"], ["updated_at", "2015-03-19 01:10:31.245125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.247016"], ["user_id", "bccfe0c8-cdd4-11e4-b085-705681abff85"], ["created_at", "2015-03-19 01:10:31.247866"], ["updated_at", "2015-03-19 01:10:31.247866"], ["token", "__2HChFR8RNrgXBjVNpxpG1b7736vnrXHLcol4Ht954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.252081"], ["updated_at", "2015-03-19 01:10:31.252081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bccfe0c8-cdd4-11e4-b085-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcd0f1d4-cdd4-11e4-8b74-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bccfe0c8-cdd4-11e4-b085-705681abff85"], ["organization_id", "bcd0f1d4-cdd4-11e4-8b74-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.255881"], ["updated_at", "2015-03-19 01:10:31.255881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'bcd0f1d4-cdd4-11e4-8b74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "bcd0f1d4-cdd4-11e4-8b74-705681abff85"], ["created_at", "2015-03-19 01:10:31.260108"], ["updated_at", "2015-03-19 01:10:31.260108"], ["token", "Z54mZ8V0xteySGRQj9t2movKNZRqTaroRn-Ib_ZWUqU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$/GFnLASH0LmWTb1mJNeG9e0.IjYPTJiuhkKKSv1wzPAzxSnLdknQ."], ["created_at", "2015-03-19 01:10:31.270519"], ["updated_at", "2015-03-19 01:10:31.270519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.272296"], ["user_id", "bcd3c1f2-cdd4-11e4-a3b6-705681abff85"], ["created_at", "2015-03-19 01:10:31.273116"], ["updated_at", "2015-03-19 01:10:31.273116"], ["token", "KPyppXIlltNDrRaJBg5S5LENrc3uepTkja5hcrD581Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.276668"], ["updated_at", "2015-03-19 01:10:31.276668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcd3c1f2-cdd4-11e4-a3b6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcd4aec8-cdd4-11e4-980b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcd3c1f2-cdd4-11e4-a3b6-705681abff85"], ["organization_id", "bcd4aec8-cdd4-11e4-980b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.280185"], ["updated_at", "2015-03-19 01:10:31.280185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'bcd4aec8-cdd4-11e4-980b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "bcd4aec8-cdd4-11e4-980b-705681abff85"], ["created_at", "2015-03-19 01:10:31.283579"], ["updated_at", "2015-03-19 01:10:31.283579"], ["token", "NGUOo4ItynhEwCQWF627sJKoCCkxPW89SzUL8utZCzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:31.288825' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KPyppXIlltNDrRaJBg5S5LENrc3uepTkja5hcrD581Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:31.290153"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:31.291101"], ["id", "bcd42b6a-cdd4-11e4-8ddf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcd3c1f2-cdd4-11e4-a3b6-705681abff85"]] Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$l.AfGLKZaF/CnXneAVqk3uFEhEORayV.SYU1nvRKBFqOJ.yuOgn42"], ["created_at", "2015-03-19 01:10:31.300679"], ["updated_at", "2015-03-19 01:10:31.300679"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.302857"], ["user_id", "bcd85e4c-cdd4-11e4-aaa0-705681abff85"], ["created_at", "2015-03-19 01:10:31.303751"], ["updated_at", "2015-03-19 01:10:31.303751"], ["token", "tjHHYx5uIm4jb2I-k2eBLQBRPm9H0kEnOETA3dyvQts"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.307409"], ["updated_at", "2015-03-19 01:10:31.307409"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcd85e4c-cdd4-11e4-aaa0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcd95ff4-cdd4-11e4-ac7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcd85e4c-cdd4-11e4-aaa0-705681abff85"], ["organization_id", "bcd95ff4-cdd4-11e4-ac7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.311485"], ["updated_at", "2015-03-19 01:10:31.311485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'bcd95ff4-cdd4-11e4-ac7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "bcd95ff4-cdd4-11e4-ac7c-705681abff85"], ["created_at", "2015-03-19 01:10:31.315075"], ["updated_at", "2015-03-19 01:10:31.315075"], ["token", "q0N4eDRAk_G5HmM-RJJyzhu4RHFWPv3h6vBx7qfPwXI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:31.320538' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tjHHYx5uIm4jb2I-k2eBLQBRPm9H0kEnOETA3dyvQts"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:31.321891"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:31.322886"], ["id", "bcd8dba6-cdd4-11e4-a50f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcd85e4c-cdd4-11e4-aaa0-705681abff85"]] Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$17cGZBMeqOZa6YVe804Hxu9GGdPIfNB0DF.bUpNjL6S57XhQIVN/2"], ["created_at", "2015-03-19 01:10:31.330887"], ["updated_at", "2015-03-19 01:10:31.330887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.332493"], ["user_id", "bcdcf56a-cdd4-11e4-a09f-705681abff85"], ["created_at", "2015-03-19 01:10:31.333299"], ["updated_at", "2015-03-19 01:10:31.333299"], ["token", "aktu9O0SUhBFpgtS3M-k5wVxvY2rk57MgCQJGmJecbU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.339699"], ["updated_at", "2015-03-19 01:10:31.339699"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcdcf56a-cdd4-11e4-a09f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcde4e56-cdd4-11e4-b3f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcdcf56a-cdd4-11e4-a09f-705681abff85"], ["organization_id", "bcde4e56-cdd4-11e4-b3f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.343283"], ["updated_at", "2015-03-19 01:10:31.343283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'bcde4e56-cdd4-11e4-b3f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "bcde4e56-cdd4-11e4-b3f7-705681abff85"], ["created_at", "2015-03-19 01:10:31.348312"], ["updated_at", "2015-03-19 01:10:31.348312"], ["token", "9kME-9jqMphdJWDIthfE5VNTf8JiWZ89zKGBMYwyRnQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:31.354047' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aktu9O0SUhBFpgtS3M-k5wVxvY2rk57MgCQJGmJecbU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:31.355679"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:31.356698"], ["id", "bcdd5a78-cdd4-11e4-b7cd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcdcf56a-cdd4-11e4-a09f-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$7GKnB4rHe85EnbDehgz2tOe5WGmSCuaHSywRC8y5FNPdLOxGeuAV6"], ["created_at", "2015-03-19 01:10:31.365467"], ["updated_at", "2015-03-19 01:10:31.365467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.367225"], ["user_id", "bce23ffc-cdd4-11e4-975b-705681abff85"], ["created_at", "2015-03-19 01:10:31.368040"], ["updated_at", "2015-03-19 01:10:31.368040"], ["token", "g96Gv7lpUCYPuUMxT6o4Dqa4mGnFvAOcCWI7914GYtI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.371466"], ["updated_at", "2015-03-19 01:10:31.371466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bce23ffc-cdd4-11e4-975b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bce32674-cdd4-11e4-a806-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bce23ffc-cdd4-11e4-975b-705681abff85"], ["organization_id", "bce32674-cdd4-11e4-a806-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.374900"], ["updated_at", "2015-03-19 01:10:31.374900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'bce32674-cdd4-11e4-a806-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "bce32674-cdd4-11e4-a806-705681abff85"], ["created_at", "2015-03-19 01:10:31.378312"], ["updated_at", "2015-03-19 01:10:31.378312"], ["token", "KOBP7SQb0hnJEUueJIE4QWKEirCAgjqaHpZsHAvF9RY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/bce43384-cdd4-11e4-ae43-705681abff85" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"bce43384-cdd4-11e4-ae43-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:31.383630' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "g96Gv7lpUCYPuUMxT6o4Dqa4mGnFvAOcCWI7914GYtI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:31.385445"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:31.387408"], ["id", "bce2a776-cdd4-11e4-b990-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$BV8Osyf/bNnhXQl7K67ChequK2Z5gdKg1FtKTwYqjiYmc4PjG/zWC"], ["created_at", "2015-03-19 01:10:31.394826"], ["updated_at", "2015-03-19 01:10:31.394826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.396835"], ["user_id", "bce6c522-cdd4-11e4-b5d4-705681abff85"], ["created_at", "2015-03-19 01:10:31.397741"], ["updated_at", "2015-03-19 01:10:31.397741"], ["token", "ajmFZqvIaLf8zD2-zChuUcB4_Qs3SgXeI6Dgn6PPb20"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.401219"], ["updated_at", "2015-03-19 01:10:31.401219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bce6c522-cdd4-11e4-b5d4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bce7ae9c-cdd4-11e4-a261-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bce6c522-cdd4-11e4-b5d4-705681abff85"], ["organization_id", "bce7ae9c-cdd4-11e4-a261-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.404469"], ["updated_at", "2015-03-19 01:10:31.404469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'bce7ae9c-cdd4-11e4-a261-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "bce7ae9c-cdd4-11e4-a261-705681abff85"], ["created_at", "2015-03-19 01:10:31.407916"], ["updated_at", "2015-03-19 01:10:31.407916"], ["token", "p0zMWFeVtlcAHIr89-6u4m46emoPKO_e1X3dlQYEC4Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$.4DeTvrH6ep3piOtLTUxleVKLt3HoT7ChuL34HN08nHrtj23eRy96"], ["created_at", "2015-03-19 01:10:31.420395"], ["updated_at", "2015-03-19 01:10:31.420395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.422194"], ["user_id", "bceaa282-cdd4-11e4-be01-705681abff85"], ["created_at", "2015-03-19 01:10:31.423056"], ["updated_at", "2015-03-19 01:10:31.423056"], ["token", "BPLERawNJZRQ3a-o270PIp3I152Df_IYFiA4C7f_pmA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.426805"], ["updated_at", "2015-03-19 01:10:31.426805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bceaa282-cdd4-11e4-be01-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bceb9cdc-cdd4-11e4-a733-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bceaa282-cdd4-11e4-be01-705681abff85"], ["organization_id", "bceb9cdc-cdd4-11e4-a733-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.431676"], ["updated_at", "2015-03-19 01:10:31.431676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'bceb9cdc-cdd4-11e4-a733-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "bceb9cdc-cdd4-11e4-a733-705681abff85"], ["created_at", "2015-03-19 01:10:31.436027"], ["updated_at", "2015-03-19 01:10:31.436027"], ["token", "NxNq80wxecAy8_MVNVNteLaEbnpmEV6KwKkwa2O7BBg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/bced0360-cdd4-11e4-a2cd-705681abff85" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"bced0360-cdd4-11e4-a2cd-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:10:31.440768' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BPLERawNJZRQ3a-o270PIp3I152Df_IYFiA4C7f_pmA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:10:31.442231"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:10:31.443261"], ["id", "bceb0c9a-cdd4-11e4-8ee6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$KNMuBmaPLeG95nFcYNNOPeiEleqFVdRtgBruwLKDKeJEliQlK8lxO"], ["created_at", "2015-03-19 01:10:31.452960"], ["updated_at", "2015-03-19 01:10:31.452960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:10:31.454571"], ["user_id", "bcef9576-cdd4-11e4-b5f3-705681abff85"], ["created_at", "2015-03-19 01:10:31.455490"], ["updated_at", "2015-03-19 01:10:31.455490"], ["token", "Nfbmrul4YwyCN6sbqL7-YKneU46LKYvuOqPvb_nw0bU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:10:31.459395"], ["updated_at", "2015-03-19 01:10:31.459395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcef9576-cdd4-11e4-b5f3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcf08fd0-cdd4-11e4-975e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcef9576-cdd4-11e4-b5f3-705681abff85"], ["organization_id", "bcf08fd0-cdd4-11e4-975e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:10:31.462753"], ["updated_at", "2015-03-19 01:10:31.462753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'bcf08fd0-cdd4-11e4-975e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "bcf08fd0-cdd4-11e4-975e-705681abff85"], ["created_at", "2015-03-19 01:10:31.467623"], ["updated_at", "2015-03-19 01:10:31.467623"], ["token", "eWXBPBh5M6guXCTnD8u3NhYp5Ahs4lqfqpgytS4nzPo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 18:10:31 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$KoiX2tVDhPznc8bWGl6SzOqPUsJJENOZTrgTEZ1O.Cmp77TjkZiBm"], ["created_at", "2015-03-19 01:11:54.776045"], ["updated_at", "2015-03-19 01:11:54.776045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:54.812191"], ["user_id", "ee9ce772-cdd4-11e4-89f9-705681abff85"], ["created_at", "2015-03-19 01:11:54.853188"], ["updated_at", "2015-03-19 01:11:54.853188"], ["token", "zlToU1iRJs1o1WKNh4F_x5TFlYmpP5Ilbl44j5gcMWQ"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (12.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:54.873912"], ["updated_at", "2015-03-19 01:11:54.873912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ee9ce772-cdd4-11e4-89f9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eea8b3e0-cdd4-11e4-a06d-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ee9ce772-cdd4-11e4-89f9-705681abff85"], ["organization_id", "eea8b3e0-cdd4-11e4-a06d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:54.897435"], ["updated_at", "2015-03-19 01:11:54.897435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'eea8b3e0-cdd4-11e4-a06d-705681abff85') LIMIT 1 SQL (4.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "eea8b3e0-cdd4-11e4-a06d-705681abff85"], ["created_at", "2015-03-19 01:11:54.909710"], ["updated_at", "2015-03-19 01:11:54.909710"], ["token", "wBidmowszt1mMsP4ycqouoA4GK7UhCU9ZJc84usAs6k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$YGBd34jDmqDvlNj3Jfamb.kkLID7D40GiJlRfHtHGX4bUhmloCYKu"], ["created_at", "2015-03-19 01:11:54.919618"], ["updated_at", "2015-03-19 01:11:54.919618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:54.922762"], ["updated_at", "2015-03-19 01:11:54.922762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eeaf969c-cdd4-11e4-abc2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eeb00e2e-cdd4-11e4-a4dc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eeaf969c-cdd4-11e4-abc2-705681abff85"], ["organization_id", "eeb00e2e-cdd4-11e4-a4dc-705681abff85"], ["created_at", "2015-03-19 01:11:54.925873"], ["updated_at", "2015-03-19 01:11:54.925873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:11:54 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$IOSryvi0mx9OKdq03nWmbOzRiLtrGXMNlbXko4dAoTf.Es.6VWibG"], ["created_at", "2015-03-19 01:11:54.968948"], ["updated_at", "2015-03-19 01:11:54.968948"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:54.978431"], ["user_id", "eeb772a4-cdd4-11e4-a823-705681abff85"], ["created_at", "2015-03-19 01:11:54.982095"], ["updated_at", "2015-03-19 01:11:54.982095"], ["token", "xGvAumkVC4rHE6NE7chsCmFg9bh07awy9czSwA-ZdYI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:54.994196"], ["updated_at", "2015-03-19 01:11:54.994196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eeb772a4-cdd4-11e4-a823-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eebb1ba2-cdd4-11e4-8be1-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eeb772a4-cdd4-11e4-a823-705681abff85"], ["organization_id", "eebb1ba2-cdd4-11e4-8be1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.000310"], ["updated_at", "2015-03-19 01:11:55.000310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'eebb1ba2-cdd4-11e4-8be1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "eebb1ba2-cdd4-11e4-8be1-705681abff85"], ["created_at", "2015-03-19 01:11:55.006770"], ["updated_at", "2015-03-19 01:11:55.006770"], ["token", "23TClCGL4QJ7QUDJy_ZsaUJAikP0bPr6RBz_qyWbPys"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$KStlehRwlag/Plldp2u5DeNZO.swct.xVECQOD/uJSPsvW/YD7gm."], ["created_at", "2015-03-19 01:11:55.012939"], ["updated_at", "2015-03-19 01:11:55.012939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.016535"], ["updated_at", "2015-03-19 01:11:55.016535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eebdd9f0-cdd4-11e4-91ee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eebe683e-cdd4-11e4-be95-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eebdd9f0-cdd4-11e4-91ee-705681abff85"], ["organization_id", "eebe683e-cdd4-11e4-be95-705681abff85"], ["created_at", "2015-03-19 01:11:55.020219"], ["updated_at", "2015-03-19 01:11:55.020219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.025254' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xGvAumkVC4rHE6NE7chsCmFg9bh07awy9czSwA-ZdYI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.032556"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.033796"], ["id", "eeb98c92-cdd4-11e4-989a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$J.r3AU.t/PVa5ibwcbxXGuwwthIfXnW/I6iA60fsIA2png8Z5Dsrq"], ["created_at", "2015-03-19 01:11:55.044415"], ["updated_at", "2015-03-19 01:11:55.044415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.046205"], ["user_id", "eec2a62e-cdd4-11e4-ab04-705681abff85"], ["created_at", "2015-03-19 01:11:55.047012"], ["updated_at", "2015-03-19 01:11:55.047012"], ["token", "XTNveIEGE0No5QIJZQh0m0-Fy_xnukbLZsnxu6bRnuQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.050933"], ["updated_at", "2015-03-19 01:11:55.050933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eec2a62e-cdd4-11e4-ab04-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eec3a182-cdd4-11e4-8e3a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eec2a62e-cdd4-11e4-ab04-705681abff85"], ["organization_id", "eec3a182-cdd4-11e4-8e3a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.054623"], ["updated_at", "2015-03-19 01:11:55.054623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'eec3a182-cdd4-11e4-8e3a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "eec3a182-cdd4-11e4-8e3a-705681abff85"], ["created_at", "2015-03-19 01:11:55.058783"], ["updated_at", "2015-03-19 01:11:55.058783"], ["token", "T96qpxEfgEI5k09wVgDB7AsBAppGBtoWXWDh4foZV58"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$lZnqvsu.dYHI/XThiqViCOCOLA3qQBOGqzWVoKqcYQtNIpAeS7QG6"], ["created_at", "2015-03-19 01:11:55.069421"], ["updated_at", "2015-03-19 01:11:55.069421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.071130"], ["user_id", "eec6757e-cdd4-11e4-9455-705681abff85"], ["created_at", "2015-03-19 01:11:55.072022"], ["updated_at", "2015-03-19 01:11:55.072022"], ["token", "vdAKKKwjUifPACGz2DoutDwpxVI6XFR1337ZKaKC1Ak"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.077706"], ["updated_at", "2015-03-19 01:11:55.077706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eec6757e-cdd4-11e4-9455-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eec7b916-cdd4-11e4-bbb6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eec6757e-cdd4-11e4-9455-705681abff85"], ["organization_id", "eec7b916-cdd4-11e4-bbb6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.081685"], ["updated_at", "2015-03-19 01:11:55.081685"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'eec7b916-cdd4-11e4-bbb6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "eec7b916-cdd4-11e4-bbb6-705681abff85"], ["created_at", "2015-03-19 01:11:55.085948"], ["updated_at", "2015-03-19 01:11:55.085948"], ["token", "uD-vejOsap41mlzWKTFi1_HWIF5RmoEqTyVHImmETaw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/eec7b916-cdd4-11e4-bbb6-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"eec7b916-cdd4-11e4-bbb6-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.090545' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vdAKKKwjUifPACGz2DoutDwpxVI6XFR1337ZKaKC1Ak"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.092755"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.094456"], ["id", "eec6e4f0-cdd4-11e4-b0c7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eec6757e-cdd4-11e4-9455-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$PAkEuMBmjvyFaOo/glDfEuOUOd8ZLORu3oVP8aSarzvqDLShe2tJC"], ["created_at", "2015-03-19 01:11:55.109838"], ["updated_at", "2015-03-19 01:11:55.109838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.111855"], ["user_id", "eecca8fe-cdd4-11e4-9654-705681abff85"], ["created_at", "2015-03-19 01:11:55.112623"], ["updated_at", "2015-03-19 01:11:55.112623"], ["token", "uRhaPi-EQWcSUUtB56nJDHG_milod1lqqrG09EFW644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.117633"], ["updated_at", "2015-03-19 01:11:55.117633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eecca8fe-cdd4-11e4-9654-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eecdd6c0-cdd4-11e4-80bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eecca8fe-cdd4-11e4-9654-705681abff85"], ["organization_id", "eecdd6c0-cdd4-11e4-80bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.122026"], ["updated_at", "2015-03-19 01:11:55.122026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'eecdd6c0-cdd4-11e4-80bd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "eecdd6c0-cdd4-11e4-80bd-705681abff85"], ["created_at", "2015-03-19 01:11:55.125817"], ["updated_at", "2015-03-19 01:11:55.125817"], ["token", "djZ6KD7Tqk1gXjcRCv9RRUqbaP7AIGgDXNxEFoffvpE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/eecdd6c0-cdd4-11e4-80bd-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"eecdd6c0-cdd4-11e4-80bd-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.131043' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uRhaPi-EQWcSUUtB56nJDHG_milod1lqqrG09EFW644"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.132993"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.134234"], ["id", "eecd0f42-cdd4-11e4-b7d6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eecca8fe-cdd4-11e4-9654-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$WvWn7lXkzWjpf4YyFvT88.NLcrC/8hsIemI9pdxE0vDttIv6aQwhi"], ["created_at", "2015-03-19 01:11:55.144125"], ["updated_at", "2015-03-19 01:11:55.144125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.146049"], ["user_id", "eed1df7c-cdd4-11e4-8704-705681abff85"], ["created_at", "2015-03-19 01:11:55.146898"], ["updated_at", "2015-03-19 01:11:55.146898"], ["token", "7pVbHPdDZSMSYbvh8Z1hXVrlHD-ipR-lhniufPq1knI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.151000"], ["updated_at", "2015-03-19 01:11:55.151000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eed1df7c-cdd4-11e4-8704-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eed2e714-cdd4-11e4-a7eb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eed1df7c-cdd4-11e4-8704-705681abff85"], ["organization_id", "eed2e714-cdd4-11e4-a7eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.154911"], ["updated_at", "2015-03-19 01:11:55.154911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'eed2e714-cdd4-11e4-a7eb-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "eed2e714-cdd4-11e4-a7eb-705681abff85"], ["created_at", "2015-03-19 01:11:55.158909"], ["updated_at", "2015-03-19 01:11:55.158909"], ["token", "MU7FeIoIzrJF1X7gG834e_8r9RPTpOzGwWMMpFpB8es"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/eed2e714-cdd4-11e4-a7eb-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"eed2e714-cdd4-11e4-a7eb-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.166520' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7pVbHPdDZSMSYbvh8Z1hXVrlHD-ipR-lhniufPq1knI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.168126"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.169224"], ["id", "eed25150-cdd4-11e4-9e28-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eed1df7c-cdd4-11e4-8704-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$UBQBsF6Q1FyfpZAjPsLKJe4sOT7Da7IZ4jsBjr6c0mmKM9wtqWLfq"], ["created_at", "2015-03-19 01:11:55.194455"], ["updated_at", "2015-03-19 01:11:55.194455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.197678"], ["user_id", "eed9a126-cdd4-11e4-a4b3-705681abff85"], ["created_at", "2015-03-19 01:11:55.199424"], ["updated_at", "2015-03-19 01:11:55.199424"], ["token", "qAvt09bqC7FJbDYXaaCi-Tkxqllxi6bPaK79M19XIMo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.207018"], ["updated_at", "2015-03-19 01:11:55.207018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eed9a126-cdd4-11e4-a4b3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eedb7910-cdd4-11e4-971c-705681abff85') LIMIT 1 SQL (3.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eed9a126-cdd4-11e4-a4b3-705681abff85"], ["organization_id", "eedb7910-cdd4-11e4-971c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.211978"], ["updated_at", "2015-03-19 01:11:55.211978"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'eedb7910-cdd4-11e4-971c-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "eedb7910-cdd4-11e4-971c-705681abff85"], ["created_at", "2015-03-19 01:11:55.222910"], ["updated_at", "2015-03-19 01:11:55.222910"], ["token", "vownYIzR3KHA2bniWwVssodE1Z46YrYm2U2J9HVfqM0"]]  (2.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$60skEFALfDBDup82SXuRpe2lxaFK0QZCKrQ47HO74DGwYnkYOefli"], ["created_at", "2015-03-19 01:11:55.289878"], ["updated_at", "2015-03-19 01:11:55.289878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.292251"], ["user_id", "eee824f8-cdd4-11e4-9846-705681abff85"], ["created_at", "2015-03-19 01:11:55.294348"], ["updated_at", "2015-03-19 01:11:55.294348"], ["token", "LXSh_NFml0SlqnOqk9nkqDrCQwmdpXlF-huoYEWGjHo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.300918"], ["updated_at", "2015-03-19 01:11:55.300918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eee824f8-cdd4-11e4-9846-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eee9dcd0-cdd4-11e4-9083-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eee824f8-cdd4-11e4-9846-705681abff85"], ["organization_id", "eee9dcd0-cdd4-11e4-9083-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.307235"], ["updated_at", "2015-03-19 01:11:55.307235"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'eee9dcd0-cdd4-11e4-9083-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "eee9dcd0-cdd4-11e4-9083-705681abff85"], ["created_at", "2015-03-19 01:11:55.313931"], ["updated_at", "2015-03-19 01:11:55.313931"], ["token", "LRKfCdNuAwDVj1FOs6IIc2pZKWzbOUpnehx5_W1dUDc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/eeebdd78-cdd4-11e4-b1d9-705681abff85" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"eeebdd78-cdd4-11e4-b1d9-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.321870' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LXSh_NFml0SlqnOqk9nkqDrCQwmdpXlF-huoYEWGjHo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.323677"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.324836"], ["id", "eee8fa72-cdd4-11e4-bf1f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$63LZY5Epwdbaa5qDgZYcHODi3tOEr3Uj3BgBsy4h3WCPyPCl30z8."], ["created_at", "2015-03-19 01:11:55.336747"], ["updated_at", "2015-03-19 01:11:55.336747"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.339785"], ["user_id", "eeef56e2-cdd4-11e4-af1f-705681abff85"], ["created_at", "2015-03-19 01:11:55.341477"], ["updated_at", "2015-03-19 01:11:55.341477"], ["token", "ffyZwmb0gp8488Z66wKRmyF-NBPQVG7wNVLd6OSAgs0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.347535"], ["updated_at", "2015-03-19 01:11:55.347535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eeef56e2-cdd4-11e4-af1f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eef0e656-cdd4-11e4-bb24-705681abff85') LIMIT 1 SQL (4.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eeef56e2-cdd4-11e4-af1f-705681abff85"], ["organization_id", "eef0e656-cdd4-11e4-bb24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.351647"], ["updated_at", "2015-03-19 01:11:55.351647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'eef0e656-cdd4-11e4-bb24-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "eef0e656-cdd4-11e4-bb24-705681abff85"], ["created_at", "2015-03-19 01:11:55.361857"], ["updated_at", "2015-03-19 01:11:55.361857"], ["token", "vMLaDd8d6M0Np5n9HB_du3w5ZDnWM2Wrc07wi-Rt9e0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$VR91PRlcv7YhFx0Puh2um.kfZtKWn7N7uHBCsrl.EJKX/G0XV.Duq"], ["created_at", "2015-03-19 01:11:55.385407"], ["updated_at", "2015-03-19 01:11:55.385407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.387262"], ["user_id", "eef6ae1a-cdd4-11e4-b05e-705681abff85"], ["created_at", "2015-03-19 01:11:55.388038"], ["updated_at", "2015-03-19 01:11:55.388038"], ["token", "-JlY54alBRdxx9fMlzd096UiCsIcOOEtPGgDgGW-VYg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.391483"], ["updated_at", "2015-03-19 01:11:55.391483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eef6ae1a-cdd4-11e4-b05e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eef797da-cdd4-11e4-8aeb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eef6ae1a-cdd4-11e4-b05e-705681abff85"], ["organization_id", "eef797da-cdd4-11e4-8aeb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.395274"], ["updated_at", "2015-03-19 01:11:55.395274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'eef797da-cdd4-11e4-8aeb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "eef797da-cdd4-11e4-8aeb-705681abff85"], ["created_at", "2015-03-19 01:11:55.398977"], ["updated_at", "2015-03-19 01:11:55.398977"], ["token", "KfUrGdVv9MmQk_vWdZG-hG4Ei30MGLRMBc8wSxHdlV4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/eef8bec6-cdd4-11e4-91da-705681abff85" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"eef8bec6-cdd4-11e4-91da-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.403976' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-JlY54alBRdxx9fMlzd096UiCsIcOOEtPGgDgGW-VYg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.405673"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.407007"], ["id", "eef71882-cdd4-11e4-9684-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$wOc6JfvNRjMS9QS55Bc5g.5qs9HoB9e8sjeIhYV7rIFNknyKDAkf6"], ["created_at", "2015-03-19 01:11:55.417258"], ["updated_at", "2015-03-19 01:11:55.417258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.421865"], ["user_id", "eefb876e-cdd4-11e4-bde8-705681abff85"], ["created_at", "2015-03-19 01:11:55.422691"], ["updated_at", "2015-03-19 01:11:55.422691"], ["token", "6O8MBTiKM1eeYZJekNDfL2n-ZHavkcmyvQoB-2BE8wo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.427367"], ["updated_at", "2015-03-19 01:11:55.427367"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eefb876e-cdd4-11e4-bde8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eefd3ab4-cdd4-11e4-8876-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eefb876e-cdd4-11e4-bde8-705681abff85"], ["organization_id", "eefd3ab4-cdd4-11e4-8876-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.433909"], ["updated_at", "2015-03-19 01:11:55.433909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'eefd3ab4-cdd4-11e4-8876-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "eefd3ab4-cdd4-11e4-8876-705681abff85"], ["created_at", "2015-03-19 01:11:55.438066"], ["updated_at", "2015-03-19 01:11:55.438066"], ["token", "y0ufLZXz5RPv0VCdjsR636Zlmrmqp__wQS8N35hutXY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$T6RYK49WtQ8OhuV/x/eJaOGj6RXE6291Emjr8QxB7QUw/F0JksQui"], ["created_at", "2015-03-19 01:11:55.443007"], ["updated_at", "2015-03-19 01:11:55.443007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.447005"], ["updated_at", "2015-03-19 01:11:55.447005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eeff847c-cdd4-11e4-a5c8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ef001ca2-cdd4-11e4-920e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eeff847c-cdd4-11e4-a5c8-705681abff85"], ["organization_id", "ef001ca2-cdd4-11e4-920e-705681abff85"], ["created_at", "2015-03-19 01:11:55.451291"], ["updated_at", "2015-03-19 01:11:55.451291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$NY5AqOexbrqTI5.rb9WayOOeafRFyEswWh43oZqi9TrDpVbUdB3Jq"], ["created_at", "2015-03-19 01:11:55.462474"], ["updated_at", "2015-03-19 01:11:55.462474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.465557"], ["user_id", "ef027fce-cdd4-11e4-b004-705681abff85"], ["created_at", "2015-03-19 01:11:55.466541"], ["updated_at", "2015-03-19 01:11:55.466541"], ["token", "E9oJqR-lKYKOVc9egKRqPtmii90DmV-IyAc9Nc7_bOg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.470757"], ["updated_at", "2015-03-19 01:11:55.470757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef027fce-cdd4-11e4-b004-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ef03b27c-cdd4-11e4-b9a7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef027fce-cdd4-11e4-b004-705681abff85"], ["organization_id", "ef03b27c-cdd4-11e4-b9a7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.474894"], ["updated_at", "2015-03-19 01:11:55.474894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'ef03b27c-cdd4-11e4-b9a7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "ef03b27c-cdd4-11e4-b9a7-705681abff85"], ["created_at", "2015-03-19 01:11:55.480240"], ["updated_at", "2015-03-19 01:11:55.480240"], ["token", "R6Ij7NtrmyH7yhspbQfB3q9WUQXocdBNkokE-5eMhOE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$MDK4xpmTeE7RVrKU.16BkOe2p6uGdS4VLnmiJi0yrwV6tgbdRM/je"], ["created_at", "2015-03-19 01:11:55.487194"], ["updated_at", "2015-03-19 01:11:55.487194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.490807"], ["updated_at", "2015-03-19 01:11:55.490807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef063c54-cdd4-11e4-94ec-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ef06c188-cdd4-11e4-b275-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ef063c54-cdd4-11e4-94ec-705681abff85"], ["organization_id", "ef06c188-cdd4-11e4-b275-705681abff85"], ["created_at", "2015-03-19 01:11:55.494715"], ["updated_at", "2015-03-19 01:11:55.494715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/ef03b27c-cdd4-11e4-b9a7-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"ef03b27c-cdd4-11e4-b9a7-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.500260' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "E9oJqR-lKYKOVc9egKRqPtmii90DmV-IyAc9Nc7_bOg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.501682"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.502645"], ["id", "ef031920-cdd4-11e4-a0db-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$Cgkiy/aFGQbRgP7NQS3I8eEAzGttbayHFyFvP7XJJVnZHHPAWglvC"], ["created_at", "2015-03-19 01:11:55.512164"], ["updated_at", "2015-03-19 01:11:55.512164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.513859"], ["user_id", "ef0a0398-cdd4-11e4-9129-705681abff85"], ["created_at", "2015-03-19 01:11:55.514626"], ["updated_at", "2015-03-19 01:11:55.514626"], ["token", "NiGY76lzwzEsDqvoe95KiYdOsRRx2B2f3qs8N7v1wbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.518003"], ["updated_at", "2015-03-19 01:11:55.518003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef0a0398-cdd4-11e4-9129-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ef0ae538-cdd4-11e4-b013-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef0a0398-cdd4-11e4-9129-705681abff85"], ["organization_id", "ef0ae538-cdd4-11e4-b013-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.521765"], ["updated_at", "2015-03-19 01:11:55.521765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'ef0ae538-cdd4-11e4-b013-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "ef0ae538-cdd4-11e4-b013-705681abff85"], ["created_at", "2015-03-19 01:11:55.525310"], ["updated_at", "2015-03-19 01:11:55.525310"], ["token", "zS-fcor7lorNFyGK4DNtfNMx9ktrMwi6hiisIyfsY4o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$xdjGRsL6CSlX6T130Mhy5uSVJJ4KFI7SMdmxvrOcXOF4tVCdtpTJu"], ["created_at", "2015-03-19 01:11:55.537334"], ["updated_at", "2015-03-19 01:11:55.537334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.538903"], ["user_id", "ef0dd824-cdd4-11e4-beb2-705681abff85"], ["created_at", "2015-03-19 01:11:55.539837"], ["updated_at", "2015-03-19 01:11:55.539837"], ["token", "rk32DhgWBFLt0GLbaMKJa2y5hcvSXAEnqmCBniUl3Z4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (3.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.544314"], ["updated_at", "2015-03-19 01:11:55.544314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef0dd824-cdd4-11e4-beb2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ef0ef04c-cdd4-11e4-9710-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef0dd824-cdd4-11e4-beb2-705681abff85"], ["organization_id", "ef0ef04c-cdd4-11e4-9710-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.551583"], ["updated_at", "2015-03-19 01:11:55.551583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'ef0ef04c-cdd4-11e4-9710-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "ef0ef04c-cdd4-11e4-9710-705681abff85"], ["created_at", "2015-03-19 01:11:55.555290"], ["updated_at", "2015-03-19 01:11:55.555290"], ["token", "FhPPHhlwzFvcE-MZmsK0o5ob-bOM79ZuumYVo4nfzbc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/ef10996a-cdd4-11e4-8bc1-705681abff85" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"ef10996a-cdd4-11e4-8bc1-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.560721' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rk32DhgWBFLt0GLbaMKJa2y5hcvSXAEnqmCBniUl3Z4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.562764"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.563741"], ["id", "ef0e426e-cdd4-11e4-837d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef0dd824-cdd4-11e4-beb2-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$O4OuqpLnneCzJa7FNty4TuDmS/ghaO0y5t9.cGDmXsu.BnnlpG4Z6"], ["created_at", "2015-03-19 01:11:55.572163"], ["updated_at", "2015-03-19 01:11:55.572163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.573692"], ["user_id", "ef132824-cdd4-11e4-85d5-705681abff85"], ["created_at", "2015-03-19 01:11:55.574466"], ["updated_at", "2015-03-19 01:11:55.574466"], ["token", "thvTQTXOB_wa2achBEfmXoxm-ZMwVTvQ_3QwooTjC6o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.578184"], ["updated_at", "2015-03-19 01:11:55.578184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef132824-cdd4-11e4-85d5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ef14113a-cdd4-11e4-8fa1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef132824-cdd4-11e4-85d5-705681abff85"], ["organization_id", "ef14113a-cdd4-11e4-8fa1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.583612"], ["updated_at", "2015-03-19 01:11:55.583612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'ef14113a-cdd4-11e4-8fa1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "ef14113a-cdd4-11e4-8fa1-705681abff85"], ["created_at", "2015-03-19 01:11:55.587482"], ["updated_at", "2015-03-19 01:11:55.587482"], ["token", "l0TdkIEWjz2EbyPP5MiYPYRu9WJRw5kpmt-ucXTF4QM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$fFFgsa5/cu3LWIwy0i85HewvlPE0k4zx8dhNWlst7.FdhvFeQvTta"], ["created_at", "2015-03-19 01:11:55.598741"], ["updated_at", "2015-03-19 01:11:55.598741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.600691"], ["user_id", "ef1741d4-cdd4-11e4-ba0d-705681abff85"], ["created_at", "2015-03-19 01:11:55.601483"], ["updated_at", "2015-03-19 01:11:55.601483"], ["token", "oqaFnoETnhVYf62S3a1qlVyxt6TLybnyOK3kJeGOUUQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.605840"], ["updated_at", "2015-03-19 01:11:55.605840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef1741d4-cdd4-11e4-ba0d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ef184d04-cdd4-11e4-8895-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef1741d4-cdd4-11e4-ba0d-705681abff85"], ["organization_id", "ef184d04-cdd4-11e4-8895-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.609456"], ["updated_at", "2015-03-19 01:11:55.609456"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'ef184d04-cdd4-11e4-8895-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "ef184d04-cdd4-11e4-8895-705681abff85"], ["created_at", "2015-03-19 01:11:55.614413"], ["updated_at", "2015-03-19 01:11:55.614413"], ["token", "xTKTGkvHyYdzM7j0c6yifGzc88A1f6PIXQgOxuh6UJA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.618964' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oqaFnoETnhVYf62S3a1qlVyxt6TLybnyOK3kJeGOUUQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.620307"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.621266"], ["id", "ef17b2cc-cdd4-11e4-85dc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef1741d4-cdd4-11e4-ba0d-705681abff85"]] Completed 500 Internal Server Error in 5ms  (16.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$5ZaZKkAs7QT1Us8S5XM0oefIX24uZgBlNS5DPNGk.AoP8F62k.TIG"], ["created_at", "2015-03-19 01:11:55.652618"], ["updated_at", "2015-03-19 01:11:55.652618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.655365"], ["user_id", "ef1f8b14-cdd4-11e4-9775-705681abff85"], ["created_at", "2015-03-19 01:11:55.657036"], ["updated_at", "2015-03-19 01:11:55.657036"], ["token", "p8VbK_sLr-xx_MQZqgP9EWkacDQCYE5uphucuqZcIAk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.661352"], ["updated_at", "2015-03-19 01:11:55.661352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef1f8b14-cdd4-11e4-9775-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ef20c664-cdd4-11e4-b2fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef1f8b14-cdd4-11e4-9775-705681abff85"], ["organization_id", "ef20c664-cdd4-11e4-b2fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.665084"], ["updated_at", "2015-03-19 01:11:55.665084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'ef20c664-cdd4-11e4-b2fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "ef20c664-cdd4-11e4-b2fc-705681abff85"], ["created_at", "2015-03-19 01:11:55.669601"], ["updated_at", "2015-03-19 01:11:55.669601"], ["token", "GXcG2yfRdnnYO8rJTgUx3OylK9qRv1gugHav2-5XUFA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.675728' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p8VbK_sLr-xx_MQZqgP9EWkacDQCYE5uphucuqZcIAk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.677346"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.678460"], ["id", "ef2028bc-cdd4-11e4-97da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef1f8b14-cdd4-11e4-9775-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$gaKeqrEV4QnKdYrGVaw52ugwLkBkCfk9DWDwxGUWFDuNvIEnyxhVe"], ["created_at", "2015-03-19 01:11:55.687087"], ["updated_at", "2015-03-19 01:11:55.687087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:11:55.688831"], ["user_id", "ef24b6c0-cdd4-11e4-a113-705681abff85"], ["created_at", "2015-03-19 01:11:55.689619"], ["updated_at", "2015-03-19 01:11:55.689619"], ["token", "ET6hARQuSlB6_sbxTbhgxSFl2GPOEhOHX9R1_cH2NqI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:11:55.693009"], ["updated_at", "2015-03-19 01:11:55.693009"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef24b6c0-cdd4-11e4-a113-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ef259c16-cdd4-11e4-a4d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef24b6c0-cdd4-11e4-a113-705681abff85"], ["organization_id", "ef259c16-cdd4-11e4-a4d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:11:55.697770"], ["updated_at", "2015-03-19 01:11:55.697770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'ef259c16-cdd4-11e4-a4d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "ef259c16-cdd4-11e4-a4d1-705681abff85"], ["created_at", "2015-03-19 01:11:55.701385"], ["updated_at", "2015-03-19 01:11:55.701385"], ["token", "IsXA-LRdDXDZwVezzTUWxFTg3q0v08VbCl09ov5SZA0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:11:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:11:55.706187' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ET6hARQuSlB6_sbxTbhgxSFl2GPOEhOHX9R1_cH2NqI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:11:55.707592"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:11:55.708566"], ["id", "ef251a3e-cdd4-11e4-83b0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef24b6c0-cdd4-11e4-a113-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (156.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$rc31Nn4f/LlAhi6MTBAaf.GIu8/S3jaU96yz2eM/Rp8XjxT9TwHfC"], ["created_at", "2015-03-19 01:12:50.610820"], ["updated_at", "2015-03-19 01:12:50.610820"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:50.809326"], ["user_id", "0ff936dc-cdd5-11e4-a3d0-705681abff85"], ["created_at", "2015-03-19 01:12:50.816025"], ["updated_at", "2015-03-19 01:12:50.816025"], ["token", "TnCfw6lb5v6dbCEC1iJT0abXUnjvc6QG0W-fIduzGrg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:50.826023"], ["updated_at", "2015-03-19 01:12:50.826023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ff936dc-cdd5-11e4-a3d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '1002483a-cdd5-11e4-a821-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ff936dc-cdd5-11e4-a3d0-705681abff85"], ["organization_id", "1002483a-cdd5-11e4-a821-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:50.837800"], ["updated_at", "2015-03-19 01:12:50.837800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '1002483a-cdd5-11e4-a821-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "1002483a-cdd5-11e4-a821-705681abff85"], ["created_at", "2015-03-19 01:12:50.848877"], ["updated_at", "2015-03-19 01:12:50.848877"], ["token", "_k-WYIWCpjxEYBM0zpaeNLtzAGUeS0YnZKY0kfQgEHw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1005caf0-cdd5-11e4-95ee-705681abff85" for 127.0.0.1 at 2015-03-18 18:12:50 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"1005caf0-cdd5-11e4-95ee-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:50.880481' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TnCfw6lb5v6dbCEC1iJT0abXUnjvc6QG0W-fIduzGrg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:50.889613"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:50.891021"], ["id", "1000ce92-cdd5-11e4-881b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1005caf0-cdd5-11e4-95ee-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ff936dc-cdd5-11e4-a3d0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1002483a-cdd5-11e4-a821-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0ff936dc-cdd5-11e4-a3d0-705681abff85' LIMIT 1 [["organization_id", "1002483a-cdd5-11e4-a821-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."id" != '1005caf0-cdd5-11e4-95ee-705681abff85' AND "clubhouse_invitations"."organization_id" = '1002483a-cdd5-11e4-a821-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:12:50.918903"], ["id", "1005caf0-cdd5-11e4-95ee-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 44ms (Views: 3.1ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Nfeziv886FBX18wd8jLEY.uPGaJIDWlpsw44mcwPF56RGkX2aVfeG"], ["created_at", "2015-03-19 01:12:50.932608"], ["updated_at", "2015-03-19 01:12:50.932608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:50.934354"], ["user_id", "101280a6-cdd5-11e4-8534-705681abff85"], ["created_at", "2015-03-19 01:12:50.935182"], ["updated_at", "2015-03-19 01:12:50.935182"], ["token", "dUsMFxvv4UmCtrv1stTBflhC2kmRVTgDIbgMXtm4oZY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:50.938651"], ["updated_at", "2015-03-19 01:12:50.938651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '101280a6-cdd5-11e4-8534-705681abff85' AND "clubhouse_memberships"."organization_id" = '10136836-cdd5-11e4-a74c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "101280a6-cdd5-11e4-8534-705681abff85"], ["organization_id", "10136836-cdd5-11e4-a74c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:50.942243"], ["updated_at", "2015-03-19 01:12:50.942243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '10136836-cdd5-11e4-a74c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "10136836-cdd5-11e4-a74c-705681abff85"], ["created_at", "2015-03-19 01:12:50.945975"], ["updated_at", "2015-03-19 01:12:50.945975"], ["token", "8Cf92wyK9ot-X-extBmxa0sVzHTaJl5iij68I3pqwi4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 18:12:50 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (4.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$W6wo/jdoBZnstKExbIhXwOLnSsozPDjz0fe5/SD8m7otLBXrAWY5."], ["created_at", "2015-03-19 01:12:50.959446"], ["updated_at", "2015-03-19 01:12:50.959446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:50.965679"], ["user_id", "1016a1a4-cdd5-11e4-b9c1-705681abff85"], ["created_at", "2015-03-19 01:12:50.966786"], ["updated_at", "2015-03-19 01:12:50.966786"], ["token", "pNTlPZvXxPYFzBVyegXzvEVM9l5x5Xig9U_yRcNRZdQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:50.971515"], ["updated_at", "2015-03-19 01:12:50.971515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1016a1a4-cdd5-11e4-b9c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '1018768c-cdd5-11e4-9074-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1016a1a4-cdd5-11e4-b9c1-705681abff85"], ["organization_id", "1018768c-cdd5-11e4-9074-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:50.975667"], ["updated_at", "2015-03-19 01:12:50.975667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '1018768c-cdd5-11e4-9074-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "1018768c-cdd5-11e4-9074-705681abff85"], ["created_at", "2015-03-19 01:12:50.981238"], ["updated_at", "2015-03-19 01:12:50.981238"], ["token", "fOmFDyzfPjJFMsmdu7k4l3j0j4z8pCxGM6SJlHKEnVY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1019f49e-cdd5-11e4-b890-705681abff85" for 127.0.0.1 at 2015-03-18 18:12:50 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1019f49e-cdd5-11e4-b890-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:50.987617' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pNTlPZvXxPYFzBVyegXzvEVM9l5x5Xig9U_yRcNRZdQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:50.989589"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:50.990878"], ["id", "1017c7d2-cdd5-11e4-bd85-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1019f49e-cdd5-11e4-b890-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1016a1a4-cdd5-11e4-b9c1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1018768c-cdd5-11e4-9074-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1016a1a4-cdd5-11e4-b9c1-705681abff85' LIMIT 1 [["organization_id", "1018768c-cdd5-11e4-9074-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "1019f49e-cdd5-11e4-b890-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$NP8WRZBO1u6hBdivmPXzTurbzooj7qu25SjYPF7kDz/05iZ3OMcYe"], ["created_at", "2015-03-19 01:12:51.003745"], ["updated_at", "2015-03-19 01:12:51.003745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.005626"], ["user_id", "101d5fc6-cdd5-11e4-9c6c-705681abff85"], ["created_at", "2015-03-19 01:12:51.006521"], ["updated_at", "2015-03-19 01:12:51.006521"], ["token", "UPTcHkuH_B4zcZZ-AvfQA3c_0UgBndCBbgE0_QdK1lI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.010367"], ["updated_at", "2015-03-19 01:12:51.010367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '101d5fc6-cdd5-11e4-9c6c-705681abff85' AND "clubhouse_memberships"."organization_id" = '101e594e-cdd5-11e4-be40-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "101d5fc6-cdd5-11e4-9c6c-705681abff85"], ["organization_id", "101e594e-cdd5-11e4-be40-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.013666"], ["updated_at", "2015-03-19 01:12:51.013666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '101e594e-cdd5-11e4-be40-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "101e594e-cdd5-11e4-be40-705681abff85"], ["created_at", "2015-03-19 01:12:51.018596"], ["updated_at", "2015-03-19 01:12:51.018596"], ["token", "weF_DU87swliHqmyWvyX1VkzmQrbQu_6-MzLpS1FywY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$epRp2lyJyxUnv/sPJ4ijYeqtsIGiKDS/CQWAm.1jjRLm84rphxy7i"], ["created_at", "2015-03-19 01:12:51.030778"], ["updated_at", "2015-03-19 01:12:51.030778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.032990"], ["user_id", "1021802e-cdd5-11e4-986a-705681abff85"], ["created_at", "2015-03-19 01:12:51.034258"], ["updated_at", "2015-03-19 01:12:51.034258"], ["token", "6G_5ohYOFOFB0Ld3y35FJUKt_OQPPSsL_Zg8iGu2mow"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.039172"], ["updated_at", "2015-03-19 01:12:51.039172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1021802e-cdd5-11e4-986a-705681abff85' AND "clubhouse_memberships"."organization_id" = '1022c420-cdd5-11e4-a94a-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1021802e-cdd5-11e4-986a-705681abff85"], ["organization_id", "1022c420-cdd5-11e4-a94a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.045567"], ["updated_at", "2015-03-19 01:12:51.045567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '1022c420-cdd5-11e4-a94a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "1022c420-cdd5-11e4-a94a-705681abff85"], ["created_at", "2015-03-19 01:12:51.052118"], ["updated_at", "2015-03-19 01:12:51.052118"], ["token", "ejx9EKTojsNsCwm2u265Gx4xf6qJWkuacJ1KOmbN5mA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$heNKOa/34GhI9ZiVEYRlRe9AEWrcYwMT91qODS/4MG64x0Hz5e6q6"], ["created_at", "2015-03-19 01:12:51.057987"], ["updated_at", "2015-03-19 01:12:51.057987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.062052"], ["updated_at", "2015-03-19 01:12:51.062052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1025a7ee-cdd5-11e4-a9a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '1026441a-cdd5-11e4-860f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1025a7ee-cdd5-11e4-a9a6-705681abff85"], ["organization_id", "1026441a-cdd5-11e4-860f-705681abff85"], ["created_at", "2015-03-19 01:12:51.066107"], ["updated_at", "2015-03-19 01:12:51.066107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1022c420-cdd5-11e4-a94a-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1022c420-cdd5-11e4-a94a-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:51.072140' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6G_5ohYOFOFB0Ld3y35FJUKt_OQPPSsL_Zg8iGu2mow"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:51.074004"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:51.075247"], ["id", "10221e1c-cdd5-11e4-83dc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1022c420-cdd5-11e4-a94a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1021802e-cdd5-11e4-986a-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1021802e-cdd5-11e4-986a-705681abff85' LIMIT 1 [["organization_id", "1022c420-cdd5-11e4-a94a-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "1022c420-cdd5-11e4-a94a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1022c420-cdd5-11e4-a94a-705681abff85"]] Completed 200 OK in 17ms (Views: 3.7ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$yChD33N4nH3Pa7CiZKQKx.X82nCn0FbPZ5IscbbWLvu6nsZGTi.YW"], ["created_at", "2015-03-19 01:12:51.098495"], ["updated_at", "2015-03-19 01:12:51.098495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.100793"], ["user_id", "102bd704-cdd5-11e4-b504-705681abff85"], ["created_at", "2015-03-19 01:12:51.101720"], ["updated_at", "2015-03-19 01:12:51.101720"], ["token", "8qpDmIRbO849QscMQpYzlvWVg85ea0grj5c5PPDAs0c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.106519"], ["updated_at", "2015-03-19 01:12:51.106519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '102bd704-cdd5-11e4-b504-705681abff85' AND "clubhouse_memberships"."organization_id" = '102d0e3a-cdd5-11e4-9ca4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "102bd704-cdd5-11e4-b504-705681abff85"], ["organization_id", "102d0e3a-cdd5-11e4-9ca4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.110591"], ["updated_at", "2015-03-19 01:12:51.110591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '102d0e3a-cdd5-11e4-9ca4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "102d0e3a-cdd5-11e4-9ca4-705681abff85"], ["created_at", "2015-03-19 01:12:51.114774"], ["updated_at", "2015-03-19 01:12:51.114774"], ["token", "95ND-6m8nziRzflM-kkVS8niLyjwI5flmfITHQgTTOk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$YcsNDyurBGLitmjzY.XXZeH.rx.AEashpdh3JwKD7YfbTpcBrQXfW"], ["created_at", "2015-03-19 01:12:51.119792"], ["updated_at", "2015-03-19 01:12:51.119792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.123223"], ["updated_at", "2015-03-19 01:12:51.123223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '102f0e1a-cdd5-11e4-a467-705681abff85' AND "clubhouse_memberships"."organization_id" = '102f9592-cdd5-11e4-b0e5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "102f0e1a-cdd5-11e4-a467-705681abff85"], ["organization_id", "102f9592-cdd5-11e4-b0e5-705681abff85"], ["created_at", "2015-03-19 01:12:51.127691"], ["updated_at", "2015-03-19 01:12:51.127691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$7onv5ur8bTpQ8QJK1lh5TOTILullEjUIfH.GYJaauM6DvQp4So4nS"], ["created_at", "2015-03-19 01:12:51.139438"], ["updated_at", "2015-03-19 01:12:51.139438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.141088"], ["user_id", "10320d5e-cdd5-11e4-a03a-705681abff85"], ["created_at", "2015-03-19 01:12:51.141914"], ["updated_at", "2015-03-19 01:12:51.141914"], ["token", "Hc6yJWX3FMwR9BRqfB7mDrbvN598UE-fsUfcg47NAmA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.146327"], ["updated_at", "2015-03-19 01:12:51.146327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '10320d5e-cdd5-11e4-a03a-705681abff85' AND "clubhouse_memberships"."organization_id" = '10331c80-cdd5-11e4-a27b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "10320d5e-cdd5-11e4-a03a-705681abff85"], ["organization_id", "10331c80-cdd5-11e4-a27b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.149933"], ["updated_at", "2015-03-19 01:12:51.149933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '10331c80-cdd5-11e4-a27b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "10331c80-cdd5-11e4-a27b-705681abff85"], ["created_at", "2015-03-19 01:12:51.153544"], ["updated_at", "2015-03-19 01:12:51.153544"], ["token", "zrS7BnItyL2uRnb9i7tII0fT8DuVaW37tMYwZiAYrpY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (3.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$qJk/8DcQTNOfbt4LJCmAmO5CQI3aPSKlhNXrVzm2Mcq/Fndza39qG"], ["created_at", "2015-03-19 01:12:51.164307"], ["updated_at", "2015-03-19 01:12:51.164307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.169891"], ["user_id", "1035dc90-cdd5-11e4-853c-705681abff85"], ["created_at", "2015-03-19 01:12:51.170773"], ["updated_at", "2015-03-19 01:12:51.170773"], ["token", "PKwp9Uuy1ftMuLxJ8xkJ_py7B-xevHgihrIQ73tPXiU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.174555"], ["updated_at", "2015-03-19 01:12:51.174555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1035dc90-cdd5-11e4-853c-705681abff85' AND "clubhouse_memberships"."organization_id" = '103767f4-cdd5-11e4-8e86-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1035dc90-cdd5-11e4-853c-705681abff85"], ["organization_id", "103767f4-cdd5-11e4-8e86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.178362"], ["updated_at", "2015-03-19 01:12:51.178362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '103767f4-cdd5-11e4-8e86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "103767f4-cdd5-11e4-8e86-705681abff85"], ["created_at", "2015-03-19 01:12:51.189352"], ["updated_at", "2015-03-19 01:12:51.189352"], ["token", "GvAzX2nCvalrxTMGD3lY_1sYMXu3qmAYQk8DLY8lqG8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:51.196527' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PKwp9Uuy1ftMuLxJ8xkJ_py7B-xevHgihrIQ73tPXiU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:51.197990"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:51.198974"], ["id", "1036e130-cdd5-11e4-8d5e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1035dc90-cdd5-11e4-853c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "103767f4-cdd5-11e4-8e86-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1035dc90-cdd5-11e4-853c-705681abff85' LIMIT 1 [["organization_id", "103767f4-cdd5-11e4-8e86-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '103767f4-cdd5-11e4-8e86-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 24ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$5M6402Y.E9H38DKQrzmIY.lLos1FZWo463n302nItyfuibhrUIoUm"], ["created_at", "2015-03-19 01:12:51.226042"], ["updated_at", "2015-03-19 01:12:51.226042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.228045"], ["user_id", "103f4b7c-cdd5-11e4-a509-705681abff85"], ["created_at", "2015-03-19 01:12:51.229165"], ["updated_at", "2015-03-19 01:12:51.229165"], ["token", "ypzozL0F2Q_aVjbt61hdj0jLzNwfK40fgf7Fq4kc3Rc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.232681"], ["updated_at", "2015-03-19 01:12:51.232681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '103f4b7c-cdd5-11e4-a509-705681abff85' AND "clubhouse_memberships"."organization_id" = '104044b4-cdd5-11e4-b58e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "103f4b7c-cdd5-11e4-a509-705681abff85"], ["organization_id", "104044b4-cdd5-11e4-b58e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.235900"], ["updated_at", "2015-03-19 01:12:51.235900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '104044b4-cdd5-11e4-b58e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "104044b4-cdd5-11e4-b58e-705681abff85"], ["created_at", "2015-03-19 01:12:51.239381"], ["updated_at", "2015-03-19 01:12:51.239381"], ["token", "hMiKmDrPPQfQrRmLQyz-TekuEu_1tOJxVGtQplqjn_E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:51.244626' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ypzozL0F2Q_aVjbt61hdj0jLzNwfK40fgf7Fq4kc3Rc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:51.246096"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:51.247025"], ["id", "103fc5a2-cdd5-11e4-bc45-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "103f4b7c-cdd5-11e4-a509-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "104044b4-cdd5-11e4-b58e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '103f4b7c-cdd5-11e4-a509-705681abff85' LIMIT 1 [["organization_id", "104044b4-cdd5-11e4-b58e-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '104044b4-cdd5-11e4-b58e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "104044b4-cdd5-11e4-b58e-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.254915"], ["updated_at", "2015-03-19 01:12:51.254915"], ["token", "NXR5H4hCjSPCnELhOiItHDpCrrt4POsFji4IA8E1uRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 66508759-0ca8-4d1d-8b38-df0c23f220e4) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1043c10c-cdd5-11e4-8faa-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1043c10c-cdd5-11e4-8faa-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [66508759-0ca8-4d1d-8b38-df0c23f220e4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1043c10c-cdd5-11e4-8faa-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [66508759-0ca8-4d1d-8b38-df0c23f220e4] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "104044b4-cdd5-11e4-b58e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [66508759-0ca8-4d1d-8b38-df0c23f220e4] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [66508759-0ca8-4d1d-8b38-df0c23f220e4] Clubhouse::Mailer#invitation: processed outbound mail in 224.3ms [ActiveJob] [ActionMailer::DeliveryJob] [66508759-0ca8-4d1d-8b38-df0c23f220e4] Sent mail to email@example.com (9.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [66508759-0ca8-4d1d-8b38-df0c23f220e4] Date: Wed, 18 Mar 2015 18:12:51 -0700 From: from@example.com To: email@example.com Message-ID: <550a22937e992_e08c3fdac1c65be836760@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/NXR5H4hCjSPCnELhOiItHDpCrrt4POsFji4IA8E1uRg?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [66508759-0ca8-4d1d-8b38-df0c23f220e4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 234.36ms Completed 500 Internal Server Error in 280ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$QcBS30Bw2RlO1aMZ.FBCMOWdysJki2Vos4slRQuqPCPdKffIpnPKG"], ["created_at", "2015-03-19 01:12:51.530276"], ["updated_at", "2015-03-19 01:12:51.530276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.531922"], ["user_id", "106db1e2-cdd5-11e4-b54e-705681abff85"], ["created_at", "2015-03-19 01:12:51.532748"], ["updated_at", "2015-03-19 01:12:51.532748"], ["token", "LPwtO-CifaLQhIOLZma4vnPCcMnDdqIAfYBYxPBED4I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.535992"], ["updated_at", "2015-03-19 01:12:51.535992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '106db1e2-cdd5-11e4-b54e-705681abff85' AND "clubhouse_memberships"."organization_id" = '106e9d64-cdd5-11e4-997a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "106db1e2-cdd5-11e4-b54e-705681abff85"], ["organization_id", "106e9d64-cdd5-11e4-997a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.539873"], ["updated_at", "2015-03-19 01:12:51.539873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '106e9d64-cdd5-11e4-997a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "106e9d64-cdd5-11e4-997a-705681abff85"], ["created_at", "2015-03-19 01:12:51.543263"], ["updated_at", "2015-03-19 01:12:51.543263"], ["token", "Np-Z166rOpDqkmsReGZTaUMCjJJ99SUrM7sihlpMRpA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:51.548551' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LPwtO-CifaLQhIOLZma4vnPCcMnDdqIAfYBYxPBED4I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:51.550191"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:51.551184"], ["id", "106e14b6-cdd5-11e4-b414-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "106db1e2-cdd5-11e4-b54e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "106e9d64-cdd5-11e4-997a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '106db1e2-cdd5-11e4-b54e-705681abff85' LIMIT 1 [["organization_id", "106e9d64-cdd5-11e4-997a-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '106e9d64-cdd5-11e4-997a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "106e9d64-cdd5-11e4-997a-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.560393"], ["updated_at", "2015-03-19 01:12:51.560393"], ["token", "xe1AvSqme-zE8IMVuiU2-0e9cik3wtk2FxO9J3K7U9U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 01919c5e-c12a-49a1-b94b-3a96f5aa315c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1072590e-cdd5-11e4-bc4b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1072590e-cdd5-11e4-bc4b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [01919c5e-c12a-49a1-b94b-3a96f5aa315c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1072590e-cdd5-11e4-bc4b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [01919c5e-c12a-49a1-b94b-3a96f5aa315c] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "106e9d64-cdd5-11e4-997a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [01919c5e-c12a-49a1-b94b-3a96f5aa315c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [01919c5e-c12a-49a1-b94b-3a96f5aa315c] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [01919c5e-c12a-49a1-b94b-3a96f5aa315c] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [01919c5e-c12a-49a1-b94b-3a96f5aa315c] Date: Wed, 18 Mar 2015 18:12:51 -0700 From: from@example.com To: email@example.com Message-ID: <550a22938ab12_e08c3fdac1c65be83682a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/xe1AvSqme-zE8IMVuiU2-0e9cik3wtk2FxO9J3K7U9U?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [01919c5e-c12a-49a1-b94b-3a96f5aa315c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.06ms Completed 500 Internal Server Error in 23ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$zeGoywT5Cm8MHFjSDC9B9.h3pL7Lo.UwR.mjpwY.znANSrfgBdRle"], ["created_at", "2015-03-19 01:12:51.577668"], ["updated_at", "2015-03-19 01:12:51.577668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.582321"], ["user_id", "10755c26-cdd5-11e4-be9f-705681abff85"], ["created_at", "2015-03-19 01:12:51.583144"], ["updated_at", "2015-03-19 01:12:51.583144"], ["token", "7aY62JUHE_0S96ybNnKt1quEttEqeqO4_j3FdBWxM9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.586482"], ["updated_at", "2015-03-19 01:12:51.586482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '10755c26-cdd5-11e4-be9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '10763fa6-cdd5-11e4-949c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "10755c26-cdd5-11e4-be9f-705681abff85"], ["organization_id", "10763fa6-cdd5-11e4-949c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.589576"], ["updated_at", "2015-03-19 01:12:51.589576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '10763fa6-cdd5-11e4-949c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "10763fa6-cdd5-11e4-949c-705681abff85"], ["created_at", "2015-03-19 01:12:51.592793"], ["updated_at", "2015-03-19 01:12:51.592793"], ["token", "ST107HTboxfdfbLi_XV8c5Js7oPbA2_MoX2aO4HBcy4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$IZOywLovqQA3qgqRDiQ5peKqXR/zT8dWmiMeXd4/3aOoxTzvabB0K"], ["created_at", "2015-03-19 01:12:51.602640"], ["updated_at", "2015-03-19 01:12:51.602640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.604222"], ["user_id", "1078ba92-cdd5-11e4-b2c9-705681abff85"], ["created_at", "2015-03-19 01:12:51.604984"], ["updated_at", "2015-03-19 01:12:51.604984"], ["token", "F_MX7_bQeoqgKgxFYqjRHLO83jM94uZY2U5tTSsIdB8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.608384"], ["updated_at", "2015-03-19 01:12:51.608384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1078ba92-cdd5-11e4-b2c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '10799868-cdd5-11e4-a4cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1078ba92-cdd5-11e4-b2c9-705681abff85"], ["organization_id", "10799868-cdd5-11e4-a4cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.611561"], ["updated_at", "2015-03-19 01:12:51.611561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '10799868-cdd5-11e4-a4cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "10799868-cdd5-11e4-a4cc-705681abff85"], ["created_at", "2015-03-19 01:12:51.615577"], ["updated_at", "2015-03-19 01:12:51.615577"], ["token", "eEwA5ap8y3Jj7cen001rVfzqdiKC_3FEeDU3KGsB8jY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/10799868-cdd5-11e4-a4cc-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"10799868-cdd5-11e4-a4cc-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:51.620560' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "F_MX7_bQeoqgKgxFYqjRHLO83jM94uZY2U5tTSsIdB8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:51.621967"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:51.622911"], ["id", "107919c4-cdd5-11e4-8435-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "10799868-cdd5-11e4-a4cc-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1078ba92-cdd5-11e4-b2c9-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "10799868-cdd5-11e4-a4cc-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1078ba92-cdd5-11e4-b2c9-705681abff85' LIMIT 1 [["organization_id", "10799868-cdd5-11e4-a4cc-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '10799868-cdd5-11e4-a4cc-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 111ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$OJYB8arAY69iQvYbaCZ1eOB0AEtpWoPc/mAjKPm7sKCTuQmof/dfq"], ["created_at", "2015-03-19 01:12:51.738557"], ["updated_at", "2015-03-19 01:12:51.738557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.742363"], ["user_id", "108d7748-cdd5-11e4-a2d0-705681abff85"], ["created_at", "2015-03-19 01:12:51.743173"], ["updated_at", "2015-03-19 01:12:51.743173"], ["token", "lD0BP-rsr7-pEtpv57gpUs-5O8Zrf8D8J-XO3MQruKU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.747201"], ["updated_at", "2015-03-19 01:12:51.747201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '108d7748-cdd5-11e4-a2d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '108ec77e-cdd5-11e4-ab5d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "108d7748-cdd5-11e4-a2d0-705681abff85"], ["organization_id", "108ec77e-cdd5-11e4-ab5d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.750438"], ["updated_at", "2015-03-19 01:12:51.750438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '108ec77e-cdd5-11e4-ab5d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "108ec77e-cdd5-11e4-ab5d-705681abff85"], ["created_at", "2015-03-19 01:12:51.753645"], ["updated_at", "2015-03-19 01:12:51.753645"], ["token", "FR_mOd4W2B0hf7S1SDiqSDw4dKHy-L1vEDkFOUYKfzo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/108ec77e-cdd5-11e4-ab5d-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"108ec77e-cdd5-11e4-ab5d-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:51.759215' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lD0BP-rsr7-pEtpv57gpUs-5O8Zrf8D8J-XO3MQruKU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:51.760589"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:51.761543"], ["id", "108e3390-cdd5-11e4-852e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "108ec77e-cdd5-11e4-ab5d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "108d7748-cdd5-11e4-a2d0-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "108ec77e-cdd5-11e4-ab5d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '108d7748-cdd5-11e4-a2d0-705681abff85' LIMIT 1 [["organization_id", "108ec77e-cdd5-11e4-ab5d-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '108ec77e-cdd5-11e4-ab5d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "108ec77e-cdd5-11e4-ab5d-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.769240"], ["updated_at", "2015-03-19 01:12:51.769240"], ["token", "CBPArZW8dV1j52-cuQOO9nxcJDYWFktRgJ69OSsEp94"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d3760c7a-9079-46ad-8687-630c4ef6c504) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/10922f04-cdd5-11e4-8af8-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "10922f04-cdd5-11e4-8af8-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d3760c7a-9079-46ad-8687-630c4ef6c504] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/10922f04-cdd5-11e4-8af8-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d3760c7a-9079-46ad-8687-630c4ef6c504] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "108ec77e-cdd5-11e4-ab5d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d3760c7a-9079-46ad-8687-630c4ef6c504] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d3760c7a-9079-46ad-8687-630c4ef6c504] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [d3760c7a-9079-46ad-8687-630c4ef6c504] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [d3760c7a-9079-46ad-8687-630c4ef6c504] Date: Wed, 18 Mar 2015 18:12:51 -0700 From: from@example.com To: email@example.com Message-ID: <550a2293bd8cf_e08c3fdac1c65be836965@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/CBPArZW8dV1j52-cuQOO9nxcJDYWFktRgJ69OSsEp94?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d3760c7a-9079-46ad-8687-630c4ef6c504] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.07ms Completed 500 Internal Server Error in 21ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Nb5xtnbyZkRsUunLO.38/u1KR7n7qeD4QS4xmBlcakIWgp4C/dluq"], ["created_at", "2015-03-19 01:12:51.785818"], ["updated_at", "2015-03-19 01:12:51.785818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.787458"], ["user_id", "1094aee6-cdd5-11e4-ace9-705681abff85"], ["created_at", "2015-03-19 01:12:51.788254"], ["updated_at", "2015-03-19 01:12:51.788254"], ["token", "AykiCsW3rX4XEWGM1q61pyIMzp8MzR17oq3_NsLSkQI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.791598"], ["updated_at", "2015-03-19 01:12:51.791598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1094aee6-cdd5-11e4-ace9-705681abff85' AND "clubhouse_memberships"."organization_id" = '109591a8-cdd5-11e4-a9fd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1094aee6-cdd5-11e4-ace9-705681abff85"], ["organization_id", "109591a8-cdd5-11e4-a9fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.794929"], ["updated_at", "2015-03-19 01:12:51.794929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '109591a8-cdd5-11e4-a9fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "109591a8-cdd5-11e4-a9fd-705681abff85"], ["created_at", "2015-03-19 01:12:51.798600"], ["updated_at", "2015-03-19 01:12:51.798600"], ["token", "49JT4hb157wf-KG_MgAdmhv5nyq_f1XGnUsKaSBE_kk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/109591a8-cdd5-11e4-a9fd-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"109591a8-cdd5-11e4-a9fd-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:51.803642' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AykiCsW3rX4XEWGM1q61pyIMzp8MzR17oq3_NsLSkQI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:51.805213"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:51.806309"], ["id", "109511ec-cdd5-11e4-9965-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "109591a8-cdd5-11e4-a9fd-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1094aee6-cdd5-11e4-ace9-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "109591a8-cdd5-11e4-a9fd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1094aee6-cdd5-11e4-ace9-705681abff85' LIMIT 1 [["organization_id", "109591a8-cdd5-11e4-a9fd-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '109591a8-cdd5-11e4-a9fd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "109591a8-cdd5-11e4-a9fd-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.814012"], ["updated_at", "2015-03-19 01:12:51.814012"], ["token", "nCRgG9QDeu32zNTGhg_aRmiSb1aEikw8qgfvjGN0wDs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 45c583c6-e9c6-46e8-b55d-33de8bf325d7) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/10990310-cdd5-11e4-9c69-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "10990310-cdd5-11e4-9c69-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [45c583c6-e9c6-46e8-b55d-33de8bf325d7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/10990310-cdd5-11e4-9c69-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [45c583c6-e9c6-46e8-b55d-33de8bf325d7] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "109591a8-cdd5-11e4-a9fd-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [45c583c6-e9c6-46e8-b55d-33de8bf325d7] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [45c583c6-e9c6-46e8-b55d-33de8bf325d7] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [45c583c6-e9c6-46e8-b55d-33de8bf325d7] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [45c583c6-e9c6-46e8-b55d-33de8bf325d7] Date: Wed, 18 Mar 2015 18:12:51 -0700 From: from@example.com To: email@example.com Message-ID: <550a2293c8aa2_e08c3fdac1c65be83705@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/nCRgG9QDeu32zNTGhg_aRmiSb1aEikw8qgfvjGN0wDs?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [45c583c6-e9c6-46e8-b55d-33de8bf325d7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.97ms Completed 500 Internal Server Error in 22ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$70HHfxKpEoBpARnYMEkhFOqOh5lbpQKt33Fgtmza25/.iOblt78wm"], ["created_at", "2015-03-19 01:12:51.830422"], ["updated_at", "2015-03-19 01:12:51.830422"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.833499"], ["user_id", "109b8162-cdd5-11e4-ac30-705681abff85"], ["created_at", "2015-03-19 01:12:51.834350"], ["updated_at", "2015-03-19 01:12:51.834350"], ["token", "Wh-t_M_SwA7EaXBIGsp1ALMJQipUUNjzRvM8YxhCBS0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.837822"], ["updated_at", "2015-03-19 01:12:51.837822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '109b8162-cdd5-11e4-ac30-705681abff85' AND "clubhouse_memberships"."organization_id" = '109ca02e-cdd5-11e4-a517-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "109b8162-cdd5-11e4-ac30-705681abff85"], ["organization_id", "109ca02e-cdd5-11e4-a517-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.841217"], ["updated_at", "2015-03-19 01:12:51.841217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '109ca02e-cdd5-11e4-a517-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "109ca02e-cdd5-11e4-a517-705681abff85"], ["created_at", "2015-03-19 01:12:51.844681"], ["updated_at", "2015-03-19 01:12:51.844681"], ["token", "6A6yLriZoGZg9N4I9u4JZRyd5dNjv0TeLrtTX5ZLrzc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$DIycshrn5o7jCsXMm0XbL.ru3pgYAhB/T.M.eesDvUG8ebfTE0vHi"], ["created_at", "2015-03-19 01:12:51.849265"], ["updated_at", "2015-03-19 01:12:51.849265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.852366"], ["updated_at", "2015-03-19 01:12:51.852366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '109e5b58-cdd5-11e4-91ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '109ed24a-cdd5-11e4-a02f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "109e5b58-cdd5-11e4-91ed-705681abff85"], ["organization_id", "109ed24a-cdd5-11e4-a02f-705681abff85"], ["created_at", "2015-03-19 01:12:51.855562"], ["updated_at", "2015-03-19 01:12:51.855562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:51.860277' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Wh-t_M_SwA7EaXBIGsp1ALMJQipUUNjzRvM8YxhCBS0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:51.861944"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:51.862885"], ["id", "109c1f64-cdd5-11e4-8bd9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "109b8162-cdd5-11e4-ac30-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '109b8162-cdd5-11e4-ac30-705681abff85' LIMIT 1 [["organization_id", "109ca02e-cdd5-11e4-a517-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "109ca02e-cdd5-11e4-a517-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "109ca02e-cdd5-11e4-a517-705681abff85"]] Completed 200 OK in 11ms (Views: 2.2ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$vQ0nHCKKpx32OeVU6MfNMOol/XcR4nW0nT7QOLQEl0qR39dhu2PRq"], ["created_at", "2015-03-19 01:12:51.876668"], ["updated_at", "2015-03-19 01:12:51.876668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.878304"], ["user_id", "10a28cbe-cdd5-11e4-9dc6-705681abff85"], ["created_at", "2015-03-19 01:12:51.879064"], ["updated_at", "2015-03-19 01:12:51.879064"], ["token", "55Bxlg7bEc87efz8ZAeqyToLKIMrYjYwVXsI2uU5pbc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.883778"], ["updated_at", "2015-03-19 01:12:51.883778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '10a28cbe-cdd5-11e4-9dc6-705681abff85' AND "clubhouse_memberships"."organization_id" = '10a3a72a-cdd5-11e4-838d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "10a28cbe-cdd5-11e4-9dc6-705681abff85"], ["organization_id", "10a3a72a-cdd5-11e4-838d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.887300"], ["updated_at", "2015-03-19 01:12:51.887300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '10a3a72a-cdd5-11e4-838d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "10a3a72a-cdd5-11e4-838d-705681abff85"], ["created_at", "2015-03-19 01:12:51.890615"], ["updated_at", "2015-03-19 01:12:51.890615"], ["token", "4A_6_NaSX_IbCVwOMoEXXBX9jpROB-Mt6J9AJXwwKNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$siRsPPXMPMHliAR2n5TPeecohc64nMzbdHMtAmE1v0A8Ngw/pMMNi"], ["created_at", "2015-03-19 01:12:51.895075"], ["updated_at", "2015-03-19 01:12:51.895075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.898250"], ["updated_at", "2015-03-19 01:12:51.898250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '10a556d8-cdd5-11e4-b200-705681abff85' AND "clubhouse_memberships"."organization_id" = '10a5d324-cdd5-11e4-ad7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "10a556d8-cdd5-11e4-b200-705681abff85"], ["organization_id", "10a5d324-cdd5-11e4-ad7c-705681abff85"], ["created_at", "2015-03-19 01:12:51.901838"], ["updated_at", "2015-03-19 01:12:51.901838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$/.4dE5Z02qGPoWk.S9v9XOxh2CM5YIFJsY2O7gvTpJjJM8vYoDXPO"], ["created_at", "2015-03-19 01:12:51.914137"], ["updated_at", "2015-03-19 01:12:51.914137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.916677"], ["user_id", "10a85b08-cdd5-11e4-9812-705681abff85"], ["created_at", "2015-03-19 01:12:51.917528"], ["updated_at", "2015-03-19 01:12:51.917528"], ["token", "9V1q21PyY_WW8hJOWihhKOfQaiQYRtVQ-oHe29DMQmw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.927673"], ["updated_at", "2015-03-19 01:12:51.927673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '10a85b08-cdd5-11e4-9812-705681abff85' AND "clubhouse_memberships"."organization_id" = '10aa54d0-cdd5-11e4-949b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "10a85b08-cdd5-11e4-9812-705681abff85"], ["organization_id", "10aa54d0-cdd5-11e4-949b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.932077"], ["updated_at", "2015-03-19 01:12:51.932077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '10aa54d0-cdd5-11e4-949b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "10aa54d0-cdd5-11e4-949b-705681abff85"], ["created_at", "2015-03-19 01:12:51.936232"], ["updated_at", "2015-03-19 01:12:51.936232"], ["token", "qJD1iTjap9PxoKR8t4gvcb9SQqjfl5Lysgi15p9gKJc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/10aba574-cdd5-11e4-aa26-705681abff85" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"10aba574-cdd5-11e4-aa26-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:12:51.941375' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9V1q21PyY_WW8hJOWihhKOfQaiQYRtVQ-oHe29DMQmw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:12:51.942895"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:12:51.944096"], ["id", "10a8cf7a-cdd5-11e4-9c6d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "10aba574-cdd5-11e4-aa26-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "10a85b08-cdd5-11e4-9812-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "10aa54d0-cdd5-11e4-949b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '10a85b08-cdd5-11e4-9812-705681abff85' LIMIT 1 [["organization_id", "10aa54d0-cdd5-11e4-949b-705681abff85"]] Completed 200 OK in 9ms (Views: 1.1ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$ocW.2wRtl8J2Xlb.hNORU.Jmxb89s/MrEZWl3oNtsFa0o0/3So0gG"], ["created_at", "2015-03-19 01:12:51.959680"], ["updated_at", "2015-03-19 01:12:51.959680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:12:51.961936"], ["user_id", "10af3a5e-cdd5-11e4-a01a-705681abff85"], ["created_at", "2015-03-19 01:12:51.963076"], ["updated_at", "2015-03-19 01:12:51.963076"], ["token", "dYAcCq7XE4UDoHOZxuGOWwyuJHfSRTr-nceeZuMCxkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:12:51.967301"], ["updated_at", "2015-03-19 01:12:51.967301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '10af3a5e-cdd5-11e4-a01a-705681abff85' AND "clubhouse_memberships"."organization_id" = '10b060c8-cdd5-11e4-867e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "10af3a5e-cdd5-11e4-a01a-705681abff85"], ["organization_id", "10b060c8-cdd5-11e4-867e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:12:51.970870"], ["updated_at", "2015-03-19 01:12:51.970870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '10b060c8-cdd5-11e4-867e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "10b060c8-cdd5-11e4-867e-705681abff85"], ["created_at", "2015-03-19 01:12:51.974344"], ["updated_at", "2015-03-19 01:12:51.974344"], ["token", "qfF-njrDsxmxGh_UUoP5PC6WH90s9AXTo--LJ96FoDE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 18:12:51 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (36.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ehUM1inurHhzAbwRFJEWbuFSeLeOqPXatBuYruycCo0IanOR7b4B2"], ["created_at", "2015-03-19 01:13:13.604185"], ["updated_at", "2015-03-19 01:13:13.604185"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:13.694854"], ["user_id", "1d9b89ac-cdd5-11e4-bc63-705681abff85"], ["created_at", "2015-03-19 01:13:13.701380"], ["updated_at", "2015-03-19 01:13:13.701380"], ["token", "95idFoLrbrZLZsg0_7uOPBhpWbQQBjg5VSrxJXU0yLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:13.711817"], ["updated_at", "2015-03-19 01:13:13.711817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d9b89ac-cdd5-11e4-bc63-705681abff85' AND "clubhouse_memberships"."organization_id" = '1da65fee-cdd5-11e4-98a4-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1d9b89ac-cdd5-11e4-bc63-705681abff85"], ["organization_id", "1da65fee-cdd5-11e4-98a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:13.723283"], ["updated_at", "2015-03-19 01:13:13.723283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '1da65fee-cdd5-11e4-98a4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "1da65fee-cdd5-11e4-98a4-705681abff85"], ["created_at", "2015-03-19 01:13:13.737005"], ["updated_at", "2015-03-19 01:13:13.737005"], ["token", "lUZjNqL-4J6WuQ_-pW7zpBHuiHUgDs0nhkfQr-fyuJk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 18:13:13 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$78hV4yb8/EONRIa5PS9U3OD6.8XikmRxScPWpEOozsB.87FAi0T7m"], ["created_at", "2015-03-19 01:13:13.771485"], ["updated_at", "2015-03-19 01:13:13.771485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:13.773193"], ["user_id", "1daf707a-cdd5-11e4-b06c-705681abff85"], ["created_at", "2015-03-19 01:13:13.773978"], ["updated_at", "2015-03-19 01:13:13.773978"], ["token", "U3pLHHyAO2wP0Z3XPgU9unoKFDi8RMgaGVw8UCIh68w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:13.784459"], ["updated_at", "2015-03-19 01:13:13.784459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1daf707a-cdd5-11e4-b06c-705681abff85' AND "clubhouse_memberships"."organization_id" = '1db16844-cdd5-11e4-a693-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1daf707a-cdd5-11e4-b06c-705681abff85"], ["organization_id", "1db16844-cdd5-11e4-a693-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:13.789290"], ["updated_at", "2015-03-19 01:13:13.789290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '1db16844-cdd5-11e4-a693-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "1db16844-cdd5-11e4-a693-705681abff85"], ["created_at", "2015-03-19 01:13:13.793862"], ["updated_at", "2015-03-19 01:13:13.793862"], ["token", "U7tznTG71a4fXstayJHG5lM_yhWt111Z8wuTnoffg9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1db16844-cdd5-11e4-a693-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:13:13 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"1db16844-cdd5-11e4-a693-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:13.798624' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U3pLHHyAO2wP0Z3XPgU9unoKFDi8RMgaGVw8UCIh68w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:13.806087"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:13.807239"], ["id", "1dafd4fc-cdd5-11e4-a6dd-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1db16844-cdd5-11e4-a693-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1daf707a-cdd5-11e4-b06c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1db16844-cdd5-11e4-a693-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1daf707a-cdd5-11e4-b06c-705681abff85' LIMIT 1 [["organization_id", "1db16844-cdd5-11e4-a693-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '1db16844-cdd5-11e4-a693-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "1db16844-cdd5-11e4-a693-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:13:13.833456"], ["updated_at", "2015-03-19 01:13:13.833456"], ["token", "aKw8au4x0mLvMdOsxkBeZSGJKR7yNC1TU6F2sHbVR5E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 119d4bf4-9b81-45d4-b0c0-a248f13119a3) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1db8eeca-cdd5-11e4-9f45-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1db8eeca-cdd5-11e4-9f45-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [119d4bf4-9b81-45d4-b0c0-a248f13119a3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1db8eeca-cdd5-11e4-9f45-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [119d4bf4-9b81-45d4-b0c0-a248f13119a3] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1db16844-cdd5-11e4-a693-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [119d4bf4-9b81-45d4-b0c0-a248f13119a3] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [119d4bf4-9b81-45d4-b0c0-a248f13119a3] Clubhouse::Mailer#invitation: processed outbound mail in 253.0ms [ActiveJob] [ActionMailer::DeliveryJob] [119d4bf4-9b81-45d4-b0c0-a248f13119a3] Sent mail to email@example.com (13.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [119d4bf4-9b81-45d4-b0c0-a248f13119a3] Date: Wed, 18 Mar 2015 18:13:14 -0700 From: from@example.com To: email@example.com Message-ID: <550a22aa1e854_e0913fc221865bf09970@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/aKw8au4x0mLvMdOsxkBeZSGJKR7yNC1TU6F2sHbVR5E?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [119d4bf4-9b81-45d4-b0c0-a248f13119a3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 267.12ms Completed 201 Created in 334ms (Views: 3.7ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$7jcRZ1FMLOB/tL3mGw6.fevhBqTMWcVmUpHJj/XIK0FR2/Ie6xvPW"], ["created_at", "2015-03-19 01:13:14.144073"], ["updated_at", "2015-03-19 01:13:14.144073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.146154"], ["user_id", "1de84832-cdd5-11e4-b21e-705681abff85"], ["created_at", "2015-03-19 01:13:14.147115"], ["updated_at", "2015-03-19 01:13:14.147115"], ["token", "Dp_wMoaTp1p65WIkVIWcjZ-FQbJ1Pbd8hdLNIJ66BuA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.150616"], ["updated_at", "2015-03-19 01:13:14.150616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1de84832-cdd5-11e4-b21e-705681abff85' AND "clubhouse_memberships"."organization_id" = '1de96f32-cdd5-11e4-a16f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1de84832-cdd5-11e4-b21e-705681abff85"], ["organization_id", "1de96f32-cdd5-11e4-a16f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.155238"], ["updated_at", "2015-03-19 01:13:14.155238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '1de96f32-cdd5-11e4-a16f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "1de96f32-cdd5-11e4-a16f-705681abff85"], ["created_at", "2015-03-19 01:13:14.159104"], ["updated_at", "2015-03-19 01:13:14.159104"], ["token", "lNIuMAo-VxL-HoLmRXNisQlfWdko51Ec9L8O65zGahk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1de96f32-cdd5-11e4-a16f-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"1de96f32-cdd5-11e4-a16f-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:14.165854' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Dp_wMoaTp1p65WIkVIWcjZ-FQbJ1Pbd8hdLNIJ66BuA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:14.167620"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:14.169037"], ["id", "1de8c780-cdd5-11e4-ab28-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1de96f32-cdd5-11e4-a16f-705681abff85"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1de84832-cdd5-11e4-b21e-705681abff85"]] Clubhouse::Organization Load (1.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1de96f32-cdd5-11e4-a16f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1de84832-cdd5-11e4-b21e-705681abff85' LIMIT 1 [["organization_id", "1de96f32-cdd5-11e4-a16f-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '1de96f32-cdd5-11e4-a16f-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "1de96f32-cdd5-11e4-a16f-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.184142"], ["updated_at", "2015-03-19 01:13:14.184142"], ["token", "FMgDg_MrJKbj4La9jBy4A_ivNIUkTfHLepmh1K9ePUI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: cbe02d57-6113-4d47-9685-3c1f88766bca) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1dee8300-cdd5-11e4-b61c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1dee8300-cdd5-11e4-b61c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [cbe02d57-6113-4d47-9685-3c1f88766bca] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1dee8300-cdd5-11e4-b61c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [cbe02d57-6113-4d47-9685-3c1f88766bca] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1de96f32-cdd5-11e4-a16f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [cbe02d57-6113-4d47-9685-3c1f88766bca] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [cbe02d57-6113-4d47-9685-3c1f88766bca] Clubhouse::Mailer#invitation: processed outbound mail in 2.9ms [ActiveJob] [ActionMailer::DeliveryJob] [cbe02d57-6113-4d47-9685-3c1f88766bca] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [cbe02d57-6113-4d47-9685-3c1f88766bca] Date: Wed, 18 Mar 2015 18:13:14 -0700 From: from@example.com To: email@example.com Message-ID: <550a22aa2f8ca_e0913fc221865bf0100fd@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/FMgDg_MrJKbj4La9jBy4A_ivNIUkTfHLepmh1K9ePUI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [cbe02d57-6113-4d47-9685-3c1f88766bca] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.42ms Completed 201 Created in 32ms (Views: 1.0ms | ActiveRecord: 5.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$/AGdgpkfdmfs78l46zmhdOX5RoJ.RPNK53pbY9lpAJ7z6qpsUSLay"], ["created_at", "2015-03-19 01:13:14.206391"], ["updated_at", "2015-03-19 01:13:14.206391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.208194"], ["user_id", "1df1cf1a-cdd5-11e4-a0e6-705681abff85"], ["created_at", "2015-03-19 01:13:14.209053"], ["updated_at", "2015-03-19 01:13:14.209053"], ["token", "A7nvNcTWadYsYfDVlydrLBateaIEMLqU0qABrLM6NLE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.212949"], ["updated_at", "2015-03-19 01:13:14.212949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1df1cf1a-cdd5-11e4-a0e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '1df2cb2c-cdd5-11e4-84aa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1df1cf1a-cdd5-11e4-a0e6-705681abff85"], ["organization_id", "1df2cb2c-cdd5-11e4-84aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.216789"], ["updated_at", "2015-03-19 01:13:14.216789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '1df2cb2c-cdd5-11e4-84aa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "1df2cb2c-cdd5-11e4-84aa-705681abff85"], ["created_at", "2015-03-19 01:13:14.220851"], ["updated_at", "2015-03-19 01:13:14.220851"], ["token", "9C41BElnhryTmApvCbSEeFAvD-DDvAxrPdJVyCsi5nE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1df2cb2c-cdd5-11e4-84aa-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"1df2cb2c-cdd5-11e4-84aa-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:14.228121' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A7nvNcTWadYsYfDVlydrLBateaIEMLqU0qABrLM6NLE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:14.229630"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:14.230618"], ["id", "1df23ae0-cdd5-11e4-8bc6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1df2cb2c-cdd5-11e4-84aa-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1df1cf1a-cdd5-11e4-a0e6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1df2cb2c-cdd5-11e4-84aa-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1df1cf1a-cdd5-11e4-a0e6-705681abff85' LIMIT 1 [["organization_id", "1df2cb2c-cdd5-11e4-84aa-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '1df2cb2c-cdd5-11e4-84aa-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$letGwGcLA0wyjfbEi9sdcejLDuiyMZxk20d/atYcRNVPCyuteB9ta"], ["created_at", "2015-03-19 01:13:14.247222"], ["updated_at", "2015-03-19 01:13:14.247222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.249924"], ["user_id", "1df81852-cdd5-11e4-9b1e-705681abff85"], ["created_at", "2015-03-19 01:13:14.251272"], ["updated_at", "2015-03-19 01:13:14.251272"], ["token", "gi_tzlH6U7DUL-D7BCTUwhdGpu5KZ8rlnkk2GTnfyJE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.255217"], ["updated_at", "2015-03-19 01:13:14.255217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1df81852-cdd5-11e4-9b1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '1df93d4a-cdd5-11e4-bb56-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1df81852-cdd5-11e4-9b1e-705681abff85"], ["organization_id", "1df93d4a-cdd5-11e4-bb56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.258545"], ["updated_at", "2015-03-19 01:13:14.258545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '1df93d4a-cdd5-11e4-bb56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "1df93d4a-cdd5-11e4-bb56-705681abff85"], ["created_at", "2015-03-19 01:13:14.261917"], ["updated_at", "2015-03-19 01:13:14.261917"], ["token", "ft0pY3citS6D8nhdwwQdJ5KMGeYf5KYg6619djSK92I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$B8elY1m2bYxl5WeLYb68f.kh5ennK.Um9gXII3F2tpoFa3fi8EaQq"], ["created_at", "2015-03-19 01:13:14.272065"], ["updated_at", "2015-03-19 01:13:14.272065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.273801"], ["user_id", "1dfbd064-cdd5-11e4-adfe-705681abff85"], ["created_at", "2015-03-19 01:13:14.274596"], ["updated_at", "2015-03-19 01:13:14.274596"], ["token", "xekY8rTUVJih0RU_MbE4SIGtoCYGrG6---1GhgRpJjs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.277934"], ["updated_at", "2015-03-19 01:13:14.277934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dfbd064-cdd5-11e4-adfe-705681abff85' AND "clubhouse_memberships"."organization_id" = '1dfcb15a-cdd5-11e4-bad7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dfbd064-cdd5-11e4-adfe-705681abff85"], ["organization_id", "1dfcb15a-cdd5-11e4-bad7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.281740"], ["updated_at", "2015-03-19 01:13:14.281740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '1dfcb15a-cdd5-11e4-bad7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "1dfcb15a-cdd5-11e4-bad7-705681abff85"], ["created_at", "2015-03-19 01:13:14.285926"], ["updated_at", "2015-03-19 01:13:14.285926"], ["token", "oq-6An3YbA7vwi9b_8oa2KD7YnKh64DjsBi0i0PYDeI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1dfdeff2-cdd5-11e4-83bd-705681abff85" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1dfdeff2-cdd5-11e4-83bd-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:14.290671' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xekY8rTUVJih0RU_MbE4SIGtoCYGrG6---1GhgRpJjs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:14.292086"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:14.293064"], ["id", "1dfc387e-cdd5-11e4-a454-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1dfdeff2-cdd5-11e4-83bd-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1dfbd064-cdd5-11e4-adfe-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1dfcb15a-cdd5-11e4-bad7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1dfbd064-cdd5-11e4-adfe-705681abff85' LIMIT 1 [["organization_id", "1dfcb15a-cdd5-11e4-bad7-705681abff85"]] Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$jAR9/n8lEahydneFQkOqqu/2lQAJqnvodatEIkTN6SBHC4yvLRnye"], ["created_at", "2015-03-19 01:13:14.305588"], ["updated_at", "2015-03-19 01:13:14.305588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.307385"], ["user_id", "1e00f102-cdd5-11e4-baca-705681abff85"], ["created_at", "2015-03-19 01:13:14.308169"], ["updated_at", "2015-03-19 01:13:14.308169"], ["token", "Rg_gPFCtZ6q7KXwcWQDRklxugjaegKKPhUwFO2gn_GQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.311627"], ["updated_at", "2015-03-19 01:13:14.311627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e00f102-cdd5-11e4-baca-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e01d644-cdd5-11e4-909b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e00f102-cdd5-11e4-baca-705681abff85"], ["organization_id", "1e01d644-cdd5-11e4-909b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.314765"], ["updated_at", "2015-03-19 01:13:14.314765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '1e01d644-cdd5-11e4-909b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "1e01d644-cdd5-11e4-909b-705681abff85"], ["created_at", "2015-03-19 01:13:14.318076"], ["updated_at", "2015-03-19 01:13:14.318076"], ["token", "FbPD9lJcxAddExteYxOT3FgxSGUGQPrlkeqCKsb4EM0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$MlEcJSsRqNRMb5cbNV9xsOYw5EnZTElbAjPa8xUqt7NY8SqXn0EdS"], ["created_at", "2015-03-19 01:13:14.322420"], ["updated_at", "2015-03-19 01:13:14.322420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.325517"], ["updated_at", "2015-03-19 01:13:14.325517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e037a30-cdd5-11e4-bd3c-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e03f80c-cdd5-11e4-ae1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1e037a30-cdd5-11e4-bd3c-705681abff85"], ["organization_id", "1e03f80c-cdd5-11e4-ae1c-705681abff85"], ["created_at", "2015-03-19 01:13:14.328978"], ["updated_at", "2015-03-19 01:13:14.328978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$a5dovvEJ05mT2Ru7yuzW4OHULH8/9K7vCiZbVOEBC2Sk3Hwu2flPi"], ["created_at", "2015-03-19 01:13:14.339164"], ["updated_at", "2015-03-19 01:13:14.339164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.340765"], ["user_id", "1e060c64-cdd5-11e4-93f2-705681abff85"], ["created_at", "2015-03-19 01:13:14.341530"], ["updated_at", "2015-03-19 01:13:14.341530"], ["token", "z1Pq-slgSBTF6BA9vPXvlqMyi7v4p1q2ybXTGSUPMfE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.344851"], ["updated_at", "2015-03-19 01:13:14.344851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e060c64-cdd5-11e4-93f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e06f9a8-cdd5-11e4-baff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e060c64-cdd5-11e4-93f2-705681abff85"], ["organization_id", "1e06f9a8-cdd5-11e4-baff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.348752"], ["updated_at", "2015-03-19 01:13:14.348752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '1e06f9a8-cdd5-11e4-baff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "1e06f9a8-cdd5-11e4-baff-705681abff85"], ["created_at", "2015-03-19 01:13:14.352051"], ["updated_at", "2015-03-19 01:13:14.352051"], ["token", "qDb8LUoU_g-qipoIkS0OGVDnSnRobWR_g5vY63wXswM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$FwBI7ReixHV61HEVpYPLfOy.IwLPqyg3qtjn9jPQf62f0Crhd6Saq"], ["created_at", "2015-03-19 01:13:14.356382"], ["updated_at", "2015-03-19 01:13:14.356382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.359369"], ["updated_at", "2015-03-19 01:13:14.359369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e08ab90-cdd5-11e4-8201-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e091d3c-cdd5-11e4-b862-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1e08ab90-cdd5-11e4-8201-705681abff85"], ["organization_id", "1e091d3c-cdd5-11e4-b862-705681abff85"], ["created_at", "2015-03-19 01:13:14.362371"], ["updated_at", "2015-03-19 01:13:14.362371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1e06f9a8-cdd5-11e4-baff-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1e06f9a8-cdd5-11e4-baff-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:14.366548' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z1Pq-slgSBTF6BA9vPXvlqMyi7v4p1q2ybXTGSUPMfE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:14.368378"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:14.370227"], ["id", "1e066be6-cdd5-11e4-bd90-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1e06f9a8-cdd5-11e4-baff-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1e060c64-cdd5-11e4-93f2-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1e060c64-cdd5-11e4-93f2-705681abff85' LIMIT 1 [["organization_id", "1e06f9a8-cdd5-11e4-baff-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "1e06f9a8-cdd5-11e4-baff-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1e06f9a8-cdd5-11e4-baff-705681abff85"]] Completed 200 OK in 13ms (Views: 2.4ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$/qUXE4Rcn04JzJQaPIdjkerb6pFpw3W.Njkf7Io8BrNDkMHEN6xN2"], ["created_at", "2015-03-19 01:13:14.385126"], ["updated_at", "2015-03-19 01:13:14.385126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.386704"], ["user_id", "1e0d0e9c-cdd5-11e4-8186-705681abff85"], ["created_at", "2015-03-19 01:13:14.387442"], ["updated_at", "2015-03-19 01:13:14.387442"], ["token", "dfA16xPGFq5wxTXRCcwr0wHI2P8gQiXCTMiRVRi2sc0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.390634"], ["updated_at", "2015-03-19 01:13:14.390634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e0d0e9c-cdd5-11e4-8186-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e0de330-cdd5-11e4-a40a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e0d0e9c-cdd5-11e4-8186-705681abff85"], ["organization_id", "1e0de330-cdd5-11e4-a40a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.393836"], ["updated_at", "2015-03-19 01:13:14.393836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '1e0de330-cdd5-11e4-a40a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "1e0de330-cdd5-11e4-a40a-705681abff85"], ["created_at", "2015-03-19 01:13:14.397052"], ["updated_at", "2015-03-19 01:13:14.397052"], ["token", "mcY_1N1ew4HDaTJHPD1QuKYQbeGT_w5zeXWjnzPHLgE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$PGijxP9nV63eiHR/Vf3lTut8tdVOpgAySjQELgObAimtby2LQzBfa"], ["created_at", "2015-03-19 01:13:14.408785"], ["updated_at", "2015-03-19 01:13:14.408785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.410783"], ["user_id", "1e10bc0e-cdd5-11e4-8e1d-705681abff85"], ["created_at", "2015-03-19 01:13:14.411571"], ["updated_at", "2015-03-19 01:13:14.411571"], ["token", "8Y2yZBwlPKh_uvFIQ5eLdsdyV60bEfRMlIfnEdN6XPM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.414845"], ["updated_at", "2015-03-19 01:13:14.414845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e10bc0e-cdd5-11e4-8e1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e1194da-cdd5-11e4-9085-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e10bc0e-cdd5-11e4-8e1d-705681abff85"], ["organization_id", "1e1194da-cdd5-11e4-9085-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.418497"], ["updated_at", "2015-03-19 01:13:14.418497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '1e1194da-cdd5-11e4-9085-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "1e1194da-cdd5-11e4-9085-705681abff85"], ["created_at", "2015-03-19 01:13:14.421951"], ["updated_at", "2015-03-19 01:13:14.421951"], ["token", "duGlM8-1O8Ym9Am8DVjL22ZNVO-JsJNrblVyTr4LSF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1e12b02c-cdd5-11e4-bb87-705681abff85" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1e12b02c-cdd5-11e4-bb87-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:14.426522' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8Y2yZBwlPKh_uvFIQ5eLdsdyV60bEfRMlIfnEdN6XPM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:14.428654"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:14.430266"], ["id", "1e111c9e-cdd5-11e4-9154-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1e12b02c-cdd5-11e4-bb87-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1e10bc0e-cdd5-11e4-8e1d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1e1194da-cdd5-11e4-9085-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1e10bc0e-cdd5-11e4-8e1d-705681abff85' LIMIT 1 [["organization_id", "1e1194da-cdd5-11e4-9085-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "1e12b02c-cdd5-11e4-bb87-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$pA7KnVMM41FW72EBboV0keO0omR1qD/NoElUwySPGQIiwGBWAEnai"], ["created_at", "2015-03-19 01:13:14.441507"], ["updated_at", "2015-03-19 01:13:14.441507"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.444097"], ["user_id", "1e15b088-cdd5-11e4-8b1f-705681abff85"], ["created_at", "2015-03-19 01:13:14.445246"], ["updated_at", "2015-03-19 01:13:14.445246"], ["token", "r7V4JP8z6ytmvnfh64ILsamxw9QvCjNIAE11KoGfGkg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.448853"], ["updated_at", "2015-03-19 01:13:14.448853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e15b088-cdd5-11e4-8b1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e16c680-cdd5-11e4-98e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e15b088-cdd5-11e4-8b1f-705681abff85"], ["organization_id", "1e16c680-cdd5-11e4-98e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.452076"], ["updated_at", "2015-03-19 01:13:14.452076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '1e16c680-cdd5-11e4-98e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "1e16c680-cdd5-11e4-98e8-705681abff85"], ["created_at", "2015-03-19 01:13:14.455248"], ["updated_at", "2015-03-19 01:13:14.455248"], ["token", "RBJX1SPkqZGx7Af3WgT_QsBTopVez6Q1I7qZrVloqUQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Foa1fkEmyeVkbVo.dyZaDuvUTYGYBxIXJXmqZdTBtsK.4.W/7zb.6"], ["created_at", "2015-03-19 01:13:14.459720"], ["updated_at", "2015-03-19 01:13:14.459720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.462673"], ["updated_at", "2015-03-19 01:13:14.462673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e186f26-cdd5-11e4-a549-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e18e122-cdd5-11e4-b592-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1e186f26-cdd5-11e4-a549-705681abff85"], ["organization_id", "1e18e122-cdd5-11e4-b592-705681abff85"], ["created_at", "2015-03-19 01:13:14.467976"], ["updated_at", "2015-03-19 01:13:14.467976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$oPMmG9vv05a0qErDrTaPLuYeKJrKbJwhKyciWJ7u.3Oi0N7sZqtkK"], ["created_at", "2015-03-19 01:13:14.479160"], ["updated_at", "2015-03-19 01:13:14.479160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.481686"], ["user_id", "1e1b7f2c-cdd5-11e4-a667-705681abff85"], ["created_at", "2015-03-19 01:13:14.482556"], ["updated_at", "2015-03-19 01:13:14.482556"], ["token", "BCYcx8VYWVnDL8y0tBqIwKs-z4Wbkb8Xh6SwthlskqY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.486087"], ["updated_at", "2015-03-19 01:13:14.486087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e1b7f2c-cdd5-11e4-a667-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e1c74ea-cdd5-11e4-aef0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e1b7f2c-cdd5-11e4-a667-705681abff85"], ["organization_id", "1e1c74ea-cdd5-11e4-aef0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.489274"], ["updated_at", "2015-03-19 01:13:14.489274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '1e1c74ea-cdd5-11e4-aef0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "1e1c74ea-cdd5-11e4-aef0-705681abff85"], ["created_at", "2015-03-19 01:13:14.492976"], ["updated_at", "2015-03-19 01:13:14.492976"], ["token", "IV8S485fgRgYLKp8AmhDw3Q70DFBhCWZFL3z1Y6J9FM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Gq/lyKKm1WIRfzSrcTvtTOLy6mM0/sGACc4bBhfhde0xdfobYHI8G"], ["created_at", "2015-03-19 01:13:14.497586"], ["updated_at", "2015-03-19 01:13:14.497586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.500887"], ["updated_at", "2015-03-19 01:13:14.500887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e1e3730-cdd5-11e4-8f53-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e1eb76e-cdd5-11e4-8c12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1e1e3730-cdd5-11e4-8f53-705681abff85"], ["organization_id", "1e1eb76e-cdd5-11e4-8c12-705681abff85"], ["created_at", "2015-03-19 01:13:14.504107"], ["updated_at", "2015-03-19 01:13:14.504107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:14.508425' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BCYcx8VYWVnDL8y0tBqIwKs-z4Wbkb8Xh6SwthlskqY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:14.509785"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:14.510765"], ["id", "1e1bf542-cdd5-11e4-add4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1e1b7f2c-cdd5-11e4-a667-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1e1b7f2c-cdd5-11e4-a667-705681abff85' LIMIT 1 [["organization_id", "1e1c74ea-cdd5-11e4-aef0-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "1e1c74ea-cdd5-11e4-aef0-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1e1c74ea-cdd5-11e4-aef0-705681abff85"]] Completed 200 OK in 11ms (Views: 2.0ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$.lY4BcPDWuNs97ABsymhZO3OQuHjElhOKx0COaUG8Tb2jVBVkYM1u"], ["created_at", "2015-03-19 01:13:14.526619"], ["updated_at", "2015-03-19 01:13:14.526619"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.528673"], ["user_id", "1e22aa0e-cdd5-11e4-8a51-705681abff85"], ["created_at", "2015-03-19 01:13:14.530390"], ["updated_at", "2015-03-19 01:13:14.530390"], ["token", "eOX9_OswO3ZPvFTiDGsQANidLC1hmCzqtq_dE7si5z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.534953"], ["updated_at", "2015-03-19 01:13:14.534953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e22aa0e-cdd5-11e4-8a51-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e23edf6-cdd5-11e4-b023-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e22aa0e-cdd5-11e4-8a51-705681abff85"], ["organization_id", "1e23edf6-cdd5-11e4-b023-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.538540"], ["updated_at", "2015-03-19 01:13:14.538540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '1e23edf6-cdd5-11e4-b023-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "1e23edf6-cdd5-11e4-b023-705681abff85"], ["created_at", "2015-03-19 01:13:14.541752"], ["updated_at", "2015-03-19 01:13:14.541752"], ["token", "sM9Pgm1J-s8-AgJS1bw7OnB5edEOFxb9MdUle4CY1cI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$3EWWr2hkX4Z8yFBlG1HzRucZuvN0clvlEyl2qzROnZBZ0yDfKs65W"], ["created_at", "2015-03-19 01:13:14.551324"], ["updated_at", "2015-03-19 01:13:14.551324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.552890"], ["user_id", "1e266ad6-cdd5-11e4-bf93-705681abff85"], ["created_at", "2015-03-19 01:13:14.553932"], ["updated_at", "2015-03-19 01:13:14.553932"], ["token", "5HPIA8nLBcDrJZ-VscurO4gRMqJajzIl-SmsNMzWRkM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.557396"], ["updated_at", "2015-03-19 01:13:14.557396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e266ad6-cdd5-11e4-bf93-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e275504-cdd5-11e4-9100-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e266ad6-cdd5-11e4-bf93-705681abff85"], ["organization_id", "1e275504-cdd5-11e4-9100-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.560563"], ["updated_at", "2015-03-19 01:13:14.560563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '1e275504-cdd5-11e4-9100-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "1e275504-cdd5-11e4-9100-705681abff85"], ["created_at", "2015-03-19 01:13:14.563888"], ["updated_at", "2015-03-19 01:13:14.563888"], ["token", "oqQ_tp0XZHb0YDvi0RrROo2QRIKdFoJm8bM2VHX7uBw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:14.568912' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5HPIA8nLBcDrJZ-VscurO4gRMqJajzIl-SmsNMzWRkM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:14.570466"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:14.571429"], ["id", "1e26dab6-cdd5-11e4-88ac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1e266ad6-cdd5-11e4-bf93-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1e275504-cdd5-11e4-9100-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1e266ad6-cdd5-11e4-bf93-705681abff85' LIMIT 1 [["organization_id", "1e275504-cdd5-11e4-9100-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '1e275504-cdd5-11e4-9100-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "1e275504-cdd5-11e4-9100-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.578686"], ["updated_at", "2015-03-19 01:13:14.578686"], ["token", "JaOPPz8coiBWqQkLGjFcCuWS2P4ZKxClj-6tabyEkrk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4b8a8b07-1268-43c0-a68d-fd3e7799ea29) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1e2aa178-cdd5-11e4-9e52-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1e2aa178-cdd5-11e4-9e52-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4b8a8b07-1268-43c0-a68d-fd3e7799ea29] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1e2aa178-cdd5-11e4-9e52-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [4b8a8b07-1268-43c0-a68d-fd3e7799ea29] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1e275504-cdd5-11e4-9100-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4b8a8b07-1268-43c0-a68d-fd3e7799ea29] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [4b8a8b07-1268-43c0-a68d-fd3e7799ea29] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [4b8a8b07-1268-43c0-a68d-fd3e7799ea29] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [4b8a8b07-1268-43c0-a68d-fd3e7799ea29] Date: Wed, 18 Mar 2015 18:13:14 -0700 From: from@example.com To: email@example.com Message-ID: <550a22aa8f2d0_e0913fc221865bf010163@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/JaOPPz8coiBWqQkLGjFcCuWS2P4ZKxClj-6tabyEkrk?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4b8a8b07-1268-43c0-a68d-fd3e7799ea29] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.95ms Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$DPHJzjo.Vqvv57ckceON5eO3UWd6WTPLdrr3J3RwKpzgTjTMyYRmW"], ["created_at", "2015-03-19 01:13:14.594331"], ["updated_at", "2015-03-19 01:13:14.594331"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.596147"], ["user_id", "1e2cfb30-cdd5-11e4-8f89-705681abff85"], ["created_at", "2015-03-19 01:13:14.596899"], ["updated_at", "2015-03-19 01:13:14.596899"], ["token", "1-4MJ3W0T-q2xXRki2tXCL9kT3GGbulmnKU-1axrdtI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.600158"], ["updated_at", "2015-03-19 01:13:14.600158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e2cfb30-cdd5-11e4-8f89-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e2ddadc-cdd5-11e4-924c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e2cfb30-cdd5-11e4-8f89-705681abff85"], ["organization_id", "1e2ddadc-cdd5-11e4-924c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.603457"], ["updated_at", "2015-03-19 01:13:14.603457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '1e2ddadc-cdd5-11e4-924c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "1e2ddadc-cdd5-11e4-924c-705681abff85"], ["created_at", "2015-03-19 01:13:14.606762"], ["updated_at", "2015-03-19 01:13:14.606762"], ["token", "0peMqvHZbtm95XauvDU5ZcK6qI872tgQq0GTzKpICY4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:14.611243' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1-4MJ3W0T-q2xXRki2tXCL9kT3GGbulmnKU-1axrdtI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:14.612655"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:14.613619"], ["id", "1e2d6548-cdd5-11e4-8c9a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1e2cfb30-cdd5-11e4-8f89-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1e2ddadc-cdd5-11e4-924c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1e2cfb30-cdd5-11e4-8f89-705681abff85' LIMIT 1 [["organization_id", "1e2ddadc-cdd5-11e4-924c-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '1e2ddadc-cdd5-11e4-924c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "1e2ddadc-cdd5-11e4-924c-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.620413"], ["updated_at", "2015-03-19 01:13:14.620413"], ["token", "Wuo6p5oHAkV96F3JNaERiDLTSINAXYRibDnf_o_HQO4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d7c03127-3db0-4183-862a-44583162964c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1e30f9f6-cdd5-11e4-b96f-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1e30f9f6-cdd5-11e4-b96f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d7c03127-3db0-4183-862a-44583162964c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1e30f9f6-cdd5-11e4-b96f-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d7c03127-3db0-4183-862a-44583162964c] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1e2ddadc-cdd5-11e4-924c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d7c03127-3db0-4183-862a-44583162964c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [d7c03127-3db0-4183-862a-44583162964c] Clubhouse::Mailer#invitation: processed outbound mail in 4.1ms [ActiveJob] [ActionMailer::DeliveryJob] [d7c03127-3db0-4183-862a-44583162964c] Sent mail to email@example.com (3.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [d7c03127-3db0-4183-862a-44583162964c] Date: Wed, 18 Mar 2015 18:13:14 -0700 From: from@example.com To: email@example.com Message-ID: <550a22aab4ec5_e0913fc221865bf0102de@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/Wuo6p5oHAkV96F3JNaERiDLTSINAXYRibDnf_o_HQO4?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d7c03127-3db0-4183-862a-44583162964c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.85ms Completed 201 Created in 134ms (Views: 1.4ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$aEpmsjLXnG9pmNLw5nycheRPbSyS9JckMfz.X.j7TXYB4Ccx9ED.G"], ["created_at", "2015-03-19 01:13:14.755982"], ["updated_at", "2015-03-19 01:13:14.755982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.758989"], ["user_id", "1e45bcba-cdd5-11e4-849a-705681abff85"], ["created_at", "2015-03-19 01:13:14.760344"], ["updated_at", "2015-03-19 01:13:14.760344"], ["token", "9T5kLcWZ4y6JHzRtgn2Q6RVgUZcavpHACF-hEFj3_ro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.765003"], ["updated_at", "2015-03-19 01:13:14.765003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e45bcba-cdd5-11e4-849a-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e470a52-cdd5-11e4-bc44-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e45bcba-cdd5-11e4-849a-705681abff85"], ["organization_id", "1e470a52-cdd5-11e4-bc44-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.768661"], ["updated_at", "2015-03-19 01:13:14.768661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '1e470a52-cdd5-11e4-bc44-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "1e470a52-cdd5-11e4-bc44-705681abff85"], ["created_at", "2015-03-19 01:13:14.773333"], ["updated_at", "2015-03-19 01:13:14.773333"], ["token", "OXC3l8PwS01WW38QAd5Q1Jjt8EepAgD94rG79Z7Ng0I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:14.781769' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9T5kLcWZ4y6JHzRtgn2Q6RVgUZcavpHACF-hEFj3_ro"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:14.785275"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:14.787158"], ["id", "1e466ffc-cdd5-11e4-8100-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1e45bcba-cdd5-11e4-849a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1e470a52-cdd5-11e4-bc44-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1e45bcba-cdd5-11e4-849a-705681abff85' LIMIT 1 [["organization_id", "1e470a52-cdd5-11e4-bc44-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '1e470a52-cdd5-11e4-bc44-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$3CluHqCLsOIu22Ib9QCAR.PAH8KwPLV0RqmbgEny0dScGcgD144G6"], ["created_at", "2015-03-19 01:13:14.808857"], ["updated_at", "2015-03-19 01:13:14.808857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.810641"], ["user_id", "1e4dbbc2-cdd5-11e4-b699-705681abff85"], ["created_at", "2015-03-19 01:13:14.811499"], ["updated_at", "2015-03-19 01:13:14.811499"], ["token", "Pxl-Zf__0LwJ_sTHuVKh_EI-ujUDca924P1AaAVs-NQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.815549"], ["updated_at", "2015-03-19 01:13:14.815549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e4dbbc2-cdd5-11e4-b699-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e4ec1a2-cdd5-11e4-a4bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e4dbbc2-cdd5-11e4-b699-705681abff85"], ["organization_id", "1e4ec1a2-cdd5-11e4-a4bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.819660"], ["updated_at", "2015-03-19 01:13:14.819660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '1e4ec1a2-cdd5-11e4-a4bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "1e4ec1a2-cdd5-11e4-a4bb-705681abff85"], ["created_at", "2015-03-19 01:13:14.823408"], ["updated_at", "2015-03-19 01:13:14.823408"], ["token", "FA5STHX6CDaGJ4KQnlr9fqz5-ukK6XyOHclqgfQSMXk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$2RhMnN3lIkialCMJGdsvpus8BQw5wdfdwEgYkiahaYuD754p0HwJa"], ["created_at", "2015-03-19 01:13:14.834588"], ["updated_at", "2015-03-19 01:13:14.834588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:13:14.836320"], ["user_id", "1e51a782-cdd5-11e4-ba68-705681abff85"], ["created_at", "2015-03-19 01:13:14.837094"], ["updated_at", "2015-03-19 01:13:14.837094"], ["token", "AT4ZWIm6MWSPaWsTZPfmmZRGrkLNYtYesWZQQyUIt3A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:13:14.842515"], ["updated_at", "2015-03-19 01:13:14.842515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e51a782-cdd5-11e4-ba68-705681abff85' AND "clubhouse_memberships"."organization_id" = '1e52dc92-cdd5-11e4-8773-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e51a782-cdd5-11e4-ba68-705681abff85"], ["organization_id", "1e52dc92-cdd5-11e4-8773-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:13:14.846143"], ["updated_at", "2015-03-19 01:13:14.846143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '1e52dc92-cdd5-11e4-8773-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "1e52dc92-cdd5-11e4-8773-705681abff85"], ["created_at", "2015-03-19 01:13:14.851510"], ["updated_at", "2015-03-19 01:13:14.851510"], ["token", "GcTWH-t1qN8EP0T4LboGsidjIwlUxLXeYWt_T8n8_7U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1e544078-cdd5-11e4-9b76-705681abff85" for 127.0.0.1 at 2015-03-18 18:13:14 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"1e544078-cdd5-11e4-9b76-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:13:14.856922' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AT4ZWIm6MWSPaWsTZPfmmZRGrkLNYtYesWZQQyUIt3A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:13:14.858428"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:13:14.859476"], ["id", "1e52179e-cdd5-11e4-83b5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1e544078-cdd5-11e4-9b76-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1e51a782-cdd5-11e4-ba68-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1e52dc92-cdd5-11e4-8773-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1e51a782-cdd5-11e4-ba68-705681abff85' LIMIT 1 [["organization_id", "1e52dc92-cdd5-11e4-8773-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."id" != '1e544078-cdd5-11e4-9b76-705681abff85' AND "clubhouse_invitations"."organization_id" = '1e52dc92-cdd5-11e4-8773-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:13:14.867895"], ["id", "1e544078-cdd5-11e4-9b76-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (46.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$9xBI3UhcwTHrXUmYQa3LVOCG2rortXOJHu7KqzCY5ss8HDeKG0Bga"], ["created_at", "2015-03-19 01:14:18.940068"], ["updated_at", "2015-03-19 01:14:18.940068"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:18.997406"], ["user_id", "448e76be-cdd5-11e4-90f0-705681abff85"], ["created_at", "2015-03-19 01:14:19.003824"], ["updated_at", "2015-03-19 01:14:19.003824"], ["token", "z0RhZfD-1uVEy6z4lzi9mDqPOP7JgDqXrBE6-_JAGao"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.013448"], ["updated_at", "2015-03-19 01:14:19.013448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '448e76be-cdd5-11e4-90f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '44929974-cdd5-11e4-91c4-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "448e76be-cdd5-11e4-90f0-705681abff85"], ["organization_id", "44929974-cdd5-11e4-91c4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.024396"], ["updated_at", "2015-03-19 01:14:19.024396"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '44929974-cdd5-11e4-91c4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "44929974-cdd5-11e4-91c4-705681abff85"], ["created_at", "2015-03-19 01:14:19.034980"], ["updated_at", "2015-03-19 01:14:19.034980"], ["token", "2dvbdq_VfB_w-O-12hI8LzvGfCKlyh9h_GNIad_k24Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 2ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Y5N/fNl.5G6OjdBbC2e1G.TOh8sFy2gyaoabku/fcBAsFX79VT/TW"], ["created_at", "2015-03-19 01:14:19.075177"], ["updated_at", "2015-03-19 01:14:19.075177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.076909"], ["user_id", "449bfd7a-cdd5-11e4-abbc-705681abff85"], ["created_at", "2015-03-19 01:14:19.077787"], ["updated_at", "2015-03-19 01:14:19.077787"], ["token", "WTS1wdgBdnkKGAAPJFODTGBGK1gDyzMYy3s_Ri4J9bM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.082185"], ["updated_at", "2015-03-19 01:14:19.082185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '449bfd7a-cdd5-11e4-abbc-705681abff85' AND "clubhouse_memberships"."organization_id" = '449d0c6a-cdd5-11e4-9157-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "449bfd7a-cdd5-11e4-abbc-705681abff85"], ["organization_id", "449d0c6a-cdd5-11e4-9157-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.085661"], ["updated_at", "2015-03-19 01:14:19.085661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '449d0c6a-cdd5-11e4-9157-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "449d0c6a-cdd5-11e4-9157-705681abff85"], ["created_at", "2015-03-19 01:14:19.089430"], ["updated_at", "2015-03-19 01:14:19.089430"], ["token", "T9NGqtNpa2jz0jJyqzMT8PVSdUEJ4jZ_JFEBAJ-L7ms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/449d0c6a-cdd5-11e4-9157-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"449d0c6a-cdd5-11e4-9157-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:19.094530' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WTS1wdgBdnkKGAAPJFODTGBGK1gDyzMYy3s_Ri4J9bM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:19.101869"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:19.103155"], ["id", "449c7d4a-cdd5-11e4-a377-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "449d0c6a-cdd5-11e4-9157-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "449bfd7a-cdd5-11e4-abbc-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "449d0c6a-cdd5-11e4-9157-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '449bfd7a-cdd5-11e4-abbc-705681abff85' LIMIT 1 [["organization_id", "449d0c6a-cdd5-11e4-9157-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '449d0c6a-cdd5-11e4-9157-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "449d0c6a-cdd5-11e4-9157-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.130115"], ["updated_at", "2015-03-19 01:14:19.130115"], ["token", "MlVaitkBkTKniMlCFnV6KtwL9EV5wGqjX-OY_vHwnfQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 927a3a3c-b92b-480e-b27e-feccd84acb10) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/44a46942-cdd5-11e4-bae2-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "44a46942-cdd5-11e4-bae2-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [927a3a3c-b92b-480e-b27e-feccd84acb10] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/44a46942-cdd5-11e4-bae2-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [927a3a3c-b92b-480e-b27e-feccd84acb10] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "449d0c6a-cdd5-11e4-9157-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [927a3a3c-b92b-480e-b27e-feccd84acb10] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [927a3a3c-b92b-480e-b27e-feccd84acb10] Clubhouse::Mailer#invitation: processed outbound mail in 257.3ms [ActiveJob] [ActionMailer::DeliveryJob] [927a3a3c-b92b-480e-b27e-feccd84acb10] Sent mail to email@example.com (7.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [927a3a3c-b92b-480e-b27e-feccd84acb10] Date: Wed, 18 Mar 2015 18:14:19 -0700 From: from@example.com To: email@example.com Message-ID: <550a22eb66fb3_e0983fcc84c65be834434@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/MlVaitkBkTKniMlCFnV6KtwL9EV5wGqjX-OY_vHwnfQ?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [927a3a3c-b92b-480e-b27e-feccd84acb10] Performed ActionMailer::DeliveryJob from Inline(mailers) in 265.7ms Completed 201 Created in 334ms (Views: 3.3ms | ActiveRecord: 3.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$797IHiinYhGJFLjYultvRu1vxwJhxMZhI4tEPib/0i7XD0RrQ7N1a"], ["created_at", "2015-03-19 01:14:19.437390"], ["updated_at", "2015-03-19 01:14:19.437390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (6.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.439020"], ["user_id", "44d34118-cdd5-11e4-807b-705681abff85"], ["created_at", "2015-03-19 01:14:19.440091"], ["updated_at", "2015-03-19 01:14:19.440091"], ["token", "xOnzVwRehslDfD1lgaGMq5_ClbF03zdMDD4LRJ0hzTc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.450607"], ["updated_at", "2015-03-19 01:14:19.450607"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44d34118-cdd5-11e4-807b-705681abff85' AND "clubhouse_memberships"."organization_id" = '44d547ec-cdd5-11e4-a8ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44d34118-cdd5-11e4-807b-705681abff85"], ["organization_id", "44d547ec-cdd5-11e4-a8ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.454523"], ["updated_at", "2015-03-19 01:14:19.454523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '44d547ec-cdd5-11e4-a8ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "44d547ec-cdd5-11e4-a8ab-705681abff85"], ["created_at", "2015-03-19 01:14:19.459329"], ["updated_at", "2015-03-19 01:14:19.459329"], ["token", "FeXPx0ICADx85LmWwiLdWVvCPOfWV-4JQMrzf3m2oaE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/44d547ec-cdd5-11e4-a8ab-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"44d547ec-cdd5-11e4-a8ab-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:19.464299' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xOnzVwRehslDfD1lgaGMq5_ClbF03zdMDD4LRJ0hzTc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:19.465805"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:19.466721"], ["id", "44d3affe-cdd5-11e4-8a63-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "44d547ec-cdd5-11e4-a8ab-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "44d34118-cdd5-11e4-807b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "44d547ec-cdd5-11e4-a8ab-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '44d34118-cdd5-11e4-807b-705681abff85' LIMIT 1 [["organization_id", "44d547ec-cdd5-11e4-a8ab-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '44d547ec-cdd5-11e4-a8ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "44d547ec-cdd5-11e4-a8ab-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.474848"], ["updated_at", "2015-03-19 01:14:19.474848"], ["token", "RgaQoS2lHXPsrF9eYqGVVgSov-EjWqYsc9tg2ZNxbwI"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 92327c33-6f40-4792-9093-e1869eccc15d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/44d903e6-cdd5-11e4-b7a6-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "44d903e6-cdd5-11e4-b7a6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [92327c33-6f40-4792-9093-e1869eccc15d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/44d903e6-cdd5-11e4-b7a6-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [92327c33-6f40-4792-9093-e1869eccc15d] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "44d547ec-cdd5-11e4-a8ab-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [92327c33-6f40-4792-9093-e1869eccc15d] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [92327c33-6f40-4792-9093-e1869eccc15d] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [92327c33-6f40-4792-9093-e1869eccc15d] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [92327c33-6f40-4792-9093-e1869eccc15d] Date: Wed, 18 Mar 2015 18:14:19 -0700 From: from@example.com To: email@example.com Message-ID: <550a22eb76457_e0983fcc84c65be8345f5@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/RgaQoS2lHXPsrF9eYqGVVgSov-EjWqYsc9tg2ZNxbwI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [92327c33-6f40-4792-9093-e1869eccc15d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.14ms Completed 201 Created in 23ms (Views: 0.9ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Y5SNP9k48G9nT09Ju.hDReI1epMp.BCTY7phkqhvQKncFiP8dpHSW"], ["created_at", "2015-03-19 01:14:19.494817"], ["updated_at", "2015-03-19 01:14:19.494817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.496725"], ["user_id", "44dc0b86-cdd5-11e4-88c6-705681abff85"], ["created_at", "2015-03-19 01:14:19.497496"], ["updated_at", "2015-03-19 01:14:19.497496"], ["token", "3qWiiLD8V5YOBQoseMFiolwjkD2btZyBAfAQWea1ILY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.500845"], ["updated_at", "2015-03-19 01:14:19.500845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44dc0b86-cdd5-11e4-88c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '44dcebf0-cdd5-11e4-88e3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44dc0b86-cdd5-11e4-88c6-705681abff85"], ["organization_id", "44dcebf0-cdd5-11e4-88e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.504008"], ["updated_at", "2015-03-19 01:14:19.504008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '44dcebf0-cdd5-11e4-88e3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "44dcebf0-cdd5-11e4-88e3-705681abff85"], ["created_at", "2015-03-19 01:14:19.508276"], ["updated_at", "2015-03-19 01:14:19.508276"], ["token", "QnXP69JDY_rydcncwMug52tXMIzfIeZjrwSejBMHLy4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/44dcebf0-cdd5-11e4-88e3-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"44dcebf0-cdd5-11e4-88e3-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:19.514942' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3qWiiLD8V5YOBQoseMFiolwjkD2btZyBAfAQWea1ILY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:19.516382"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:19.517287"], ["id", "44dc7134-cdd5-11e4-8083-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "44dcebf0-cdd5-11e4-88e3-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "44dc0b86-cdd5-11e4-88c6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "44dcebf0-cdd5-11e4-88e3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '44dc0b86-cdd5-11e4-88c6-705681abff85' LIMIT 1 [["organization_id", "44dcebf0-cdd5-11e4-88e3-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '44dcebf0-cdd5-11e4-88e3-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Pyixi6JzORazePT0F6DxEOyPZa/eKZ2TKldmVUPWYSc1awSv.xwDK"], ["created_at", "2015-03-19 01:14:19.534946"], ["updated_at", "2015-03-19 01:14:19.534946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.536514"], ["user_id", "44e222f0-cdd5-11e4-90b8-705681abff85"], ["created_at", "2015-03-19 01:14:19.537277"], ["updated_at", "2015-03-19 01:14:19.537277"], ["token", "qrgF4wEqXY968P99-3J9wD1hkwYbXm0t6cA5lVb9_BI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.541059"], ["updated_at", "2015-03-19 01:14:19.541059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44e222f0-cdd5-11e4-90b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '44e312be-cdd5-11e4-8eec-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44e222f0-cdd5-11e4-90b8-705681abff85"], ["organization_id", "44e312be-cdd5-11e4-8eec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.544452"], ["updated_at", "2015-03-19 01:14:19.544452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '44e312be-cdd5-11e4-8eec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "44e312be-cdd5-11e4-8eec-705681abff85"], ["created_at", "2015-03-19 01:14:19.548114"], ["updated_at", "2015-03-19 01:14:19.548114"], ["token", "kcFNlPROkfv4h9nZTKyd7VwRPO2RI85CxzOLHZhsKQY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$8yx6JrjO87e7Au.rVxQGKusPF6Bq6RioAjwnY24tVfFmMmX03sYY."], ["created_at", "2015-03-19 01:14:19.552723"], ["updated_at", "2015-03-19 01:14:19.552723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.555936"], ["updated_at", "2015-03-19 01:14:19.555936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44e4d964-cdd5-11e4-bee3-705681abff85' AND "clubhouse_memberships"."organization_id" = '44e5540c-cdd5-11e4-862e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "44e4d964-cdd5-11e4-bee3-705681abff85"], ["organization_id", "44e5540c-cdd5-11e4-862e-705681abff85"], ["created_at", "2015-03-19 01:14:19.559134"], ["updated_at", "2015-03-19 01:14:19.559134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$dhEfI02y5HzsOG8/Q1Lche4LbIBzOQc9GglhBMvyMT/ezbzu2E1Ii"], ["created_at", "2015-03-19 01:14:19.569864"], ["updated_at", "2015-03-19 01:14:19.569864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.571497"], ["user_id", "44e77778-cdd5-11e4-a18c-705681abff85"], ["created_at", "2015-03-19 01:14:19.572270"], ["updated_at", "2015-03-19 01:14:19.572270"], ["token", "U_bYOVgbxg39RgvkBpBW-Yr6z1jyBM7VYDVd9o6DLU4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.575648"], ["updated_at", "2015-03-19 01:14:19.575648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44e77778-cdd5-11e4-a18c-705681abff85' AND "clubhouse_memberships"."organization_id" = '44e8567a-cdd5-11e4-ae22-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44e77778-cdd5-11e4-a18c-705681abff85"], ["organization_id", "44e8567a-cdd5-11e4-ae22-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.579626"], ["updated_at", "2015-03-19 01:14:19.579626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '44e8567a-cdd5-11e4-ae22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "44e8567a-cdd5-11e4-ae22-705681abff85"], ["created_at", "2015-03-19 01:14:19.583525"], ["updated_at", "2015-03-19 01:14:19.583525"], ["token", "Anq1-rbSvi72OX_WUXnLsOAlAirRQ58tLLPEILTZ8sc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$9HmRQeNxHY3wc6B38y6jtelhjEgTy/7odHtsrjGAR4hFlNEXcP492"], ["created_at", "2015-03-19 01:14:19.588007"], ["updated_at", "2015-03-19 01:14:19.588007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.591139"], ["updated_at", "2015-03-19 01:14:19.591139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44ea3936-cdd5-11e4-9c78-705681abff85' AND "clubhouse_memberships"."organization_id" = '44eab2d0-cdd5-11e4-906d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "44ea3936-cdd5-11e4-9c78-705681abff85"], ["organization_id", "44eab2d0-cdd5-11e4-906d-705681abff85"], ["created_at", "2015-03-19 01:14:19.594280"], ["updated_at", "2015-03-19 01:14:19.594280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/44e8567a-cdd5-11e4-ae22-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"44e8567a-cdd5-11e4-ae22-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:19.598989' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "U_bYOVgbxg39RgvkBpBW-Yr6z1jyBM7VYDVd9o6DLU4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:19.600376"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:19.601292"], ["id", "44e7d9de-cdd5-11e4-a972-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "44e8567a-cdd5-11e4-ae22-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "44e77778-cdd5-11e4-a18c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '44e77778-cdd5-11e4-a18c-705681abff85' LIMIT 1 [["organization_id", "44e8567a-cdd5-11e4-ae22-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "44e8567a-cdd5-11e4-ae22-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "44e8567a-cdd5-11e4-ae22-705681abff85"]] Completed 200 OK in 10ms (Views: 2.4ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$UYkUZo7AKsh5NjBpEdzyz.ixNzJ6hVTrLOk/80Z9xb.PSrVuzFWGa"], ["created_at", "2015-03-19 01:14:19.616845"], ["updated_at", "2015-03-19 01:14:19.616845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.618917"], ["user_id", "44eeabba-cdd5-11e4-9228-705681abff85"], ["created_at", "2015-03-19 01:14:19.619785"], ["updated_at", "2015-03-19 01:14:19.619785"], ["token", "x9cOHfGXvrHtdfg802iFlLKBf-N29h0rGyzv6sqgqI0"]]  (3.9ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (3.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.653805"], ["updated_at", "2015-03-19 01:14:19.653805"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44eeabba-cdd5-11e4-9228-705681abff85' AND "clubhouse_memberships"."organization_id" = '44f47522-cdd5-11e4-9393-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44eeabba-cdd5-11e4-9228-705681abff85"], ["organization_id", "44f47522-cdd5-11e4-9393-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.661807"], ["updated_at", "2015-03-19 01:14:19.661807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '44f47522-cdd5-11e4-9393-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "44f47522-cdd5-11e4-9393-705681abff85"], ["created_at", "2015-03-19 01:14:19.666908"], ["updated_at", "2015-03-19 01:14:19.666908"], ["token", "qYMha_6jZErq9Fsl0Year15TXYriaHZSE_0m0yIvS3k"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$ZsSOvjW0jDa/lLe3YSY4duFKNtjvW0AGvZevW/fbLE1Upa659lRYy"], ["created_at", "2015-03-19 01:14:19.672146"], ["updated_at", "2015-03-19 01:14:19.672146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.676106"], ["updated_at", "2015-03-19 01:14:19.676106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44f7143a-cdd5-11e4-9072-705681abff85' AND "clubhouse_memberships"."organization_id" = '44f7ae86-cdd5-11e4-b6fc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "44f7143a-cdd5-11e4-9072-705681abff85"], ["organization_id", "44f7ae86-cdd5-11e4-b6fc-705681abff85"], ["created_at", "2015-03-19 01:14:19.679714"], ["updated_at", "2015-03-19 01:14:19.679714"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$o/N2EU2LVk4itfRHdpuNu.F0HpWstzsV5j6VPFbrjkoBtOyaVONSK"], ["created_at", "2015-03-19 01:14:19.689751"], ["updated_at", "2015-03-19 01:14:19.689751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.691468"], ["user_id", "44f9c14e-cdd5-11e4-97d8-705681abff85"], ["created_at", "2015-03-19 01:14:19.692212"], ["updated_at", "2015-03-19 01:14:19.692212"], ["token", "W-ZGLyolwQ8LiF643jLgvEd0X5qYr6gyoyIEdWgFthU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.695645"], ["updated_at", "2015-03-19 01:14:19.695645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44f9c14e-cdd5-11e4-97d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '44faa514-cdd5-11e4-9ef0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44f9c14e-cdd5-11e4-97d8-705681abff85"], ["organization_id", "44faa514-cdd5-11e4-9ef0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.698766"], ["updated_at", "2015-03-19 01:14:19.698766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '44faa514-cdd5-11e4-9ef0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "44faa514-cdd5-11e4-9ef0-705681abff85"], ["created_at", "2015-03-19 01:14:19.701949"], ["updated_at", "2015-03-19 01:14:19.701949"], ["token", "6eCPBJIIOVUPKT_dbhatu43K67ilX0SZfnWLSrzYe0I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Oxc6F.TILtKv7DhC2gRFQeQYCOWNpMN0HptnIm.1mZE1ySDD8XF3O"], ["created_at", "2015-03-19 01:14:19.706267"], ["updated_at", "2015-03-19 01:14:19.706267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.709167"], ["updated_at", "2015-03-19 01:14:19.709167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44fc4392-cdd5-11e4-9cea-705681abff85' AND "clubhouse_memberships"."organization_id" = '44fcb642-cdd5-11e4-bb20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "44fc4392-cdd5-11e4-9cea-705681abff85"], ["organization_id", "44fcb642-cdd5-11e4-bb20-705681abff85"], ["created_at", "2015-03-19 01:14:19.712343"], ["updated_at", "2015-03-19 01:14:19.712343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:19.716794' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "W-ZGLyolwQ8LiF643jLgvEd0X5qYr6gyoyIEdWgFthU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:19.718192"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:19.719138"], ["id", "44fa25a8-cdd5-11e4-a97c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "44f9c14e-cdd5-11e4-97d8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '44f9c14e-cdd5-11e4-97d8-705681abff85' LIMIT 1 [["organization_id", "44faa514-cdd5-11e4-9ef0-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "44faa514-cdd5-11e4-9ef0-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "44faa514-cdd5-11e4-9ef0-705681abff85"]] Completed 200 OK in 11ms (Views: 2.3ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$2FDfPt/9dcq07gMnReQk0.7HioSD47xrKMjX.dWr8LHo3bJ8oZLyS"], ["created_at", "2015-03-19 01:14:19.734659"], ["updated_at", "2015-03-19 01:14:19.734659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.736979"], ["user_id", "45009b18-cdd5-11e4-833d-705681abff85"], ["created_at", "2015-03-19 01:14:19.737841"], ["updated_at", "2015-03-19 01:14:19.737841"], ["token", "Q9JwSBNzSsFzyQ7p1Okr1N_figR6fimgxdrxC3lafZI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.741311"], ["updated_at", "2015-03-19 01:14:19.741311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45009b18-cdd5-11e4-833d-705681abff85' AND "clubhouse_memberships"."organization_id" = '45019c0c-cdd5-11e4-bcda-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45009b18-cdd5-11e4-833d-705681abff85"], ["organization_id", "45019c0c-cdd5-11e4-bcda-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.744417"], ["updated_at", "2015-03-19 01:14:19.744417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '45019c0c-cdd5-11e4-bcda-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "45019c0c-cdd5-11e4-bcda-705681abff85"], ["created_at", "2015-03-19 01:14:19.748080"], ["updated_at", "2015-03-19 01:14:19.748080"], ["token", "I3WN08oxTvq-zl3wHORpD_x6y8OXixNY8k4TKSv3Clo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$aXadN.tkLOReJiYQ01VkZ.NSvo/tGczH6qj3dcFI.5I/MlYAa93AW"], ["created_at", "2015-03-19 01:14:19.757502"], ["updated_at", "2015-03-19 01:14:19.757502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.759083"], ["user_id", "450417a2-cdd5-11e4-ac71-705681abff85"], ["created_at", "2015-03-19 01:14:19.759824"], ["updated_at", "2015-03-19 01:14:19.759824"], ["token", "88idVrJudvvweOE-DjowTF2HHyUGz3GtszgGwSz4YyA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.763320"], ["updated_at", "2015-03-19 01:14:19.763320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '450417a2-cdd5-11e4-ac71-705681abff85' AND "clubhouse_memberships"."organization_id" = '4504f848-cdd5-11e4-9a40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "450417a2-cdd5-11e4-ac71-705681abff85"], ["organization_id", "4504f848-cdd5-11e4-9a40-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.766976"], ["updated_at", "2015-03-19 01:14:19.766976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '4504f848-cdd5-11e4-9a40-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "4504f848-cdd5-11e4-9a40-705681abff85"], ["created_at", "2015-03-19 01:14:19.770383"], ["updated_at", "2015-03-19 01:14:19.770383"], ["token", "LrwNp4uu8I8f8fqS4sdsOkps-WAlinLilnxNt44R71U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/45061c96-cdd5-11e4-a3ce-705681abff85" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"45061c96-cdd5-11e4-a3ce-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:19.775388' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "88idVrJudvvweOE-DjowTF2HHyUGz3GtszgGwSz4YyA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:19.777202"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:19.779271"], ["id", "450475da-cdd5-11e4-83ae-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "45061c96-cdd5-11e4-a3ce-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "450417a2-cdd5-11e4-ac71-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4504f848-cdd5-11e4-9a40-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '450417a2-cdd5-11e4-ac71-705681abff85' LIMIT 1 [["organization_id", "4504f848-cdd5-11e4-9a40-705681abff85"]] Completed 200 OK in 11ms (Views: 0.9ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$u8WPax5tDNh6M.SW.1lXo.KiqI9VPHszXeTK13rtkr7M9.GgSjpsq"], ["created_at", "2015-03-19 01:14:19.792413"], ["updated_at", "2015-03-19 01:14:19.792413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.793996"], ["user_id", "45096b3a-cdd5-11e4-809a-705681abff85"], ["created_at", "2015-03-19 01:14:19.794734"], ["updated_at", "2015-03-19 01:14:19.794734"], ["token", "UuBS5xJ5lmoemjnSMULMGFD8kLJx-3q5mrNQHEJa0-w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.798144"], ["updated_at", "2015-03-19 01:14:19.798144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45096b3a-cdd5-11e4-809a-705681abff85' AND "clubhouse_memberships"."organization_id" = '450a4884-cdd5-11e4-abde-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45096b3a-cdd5-11e4-809a-705681abff85"], ["organization_id", "450a4884-cdd5-11e4-abde-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.801446"], ["updated_at", "2015-03-19 01:14:19.801446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '450a4884-cdd5-11e4-abde-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "450a4884-cdd5-11e4-abde-705681abff85"], ["created_at", "2015-03-19 01:14:19.804849"], ["updated_at", "2015-03-19 01:14:19.804849"], ["token", "K2t6hEQd7FltMCVPCSmssWwjU42_7Bqd-d-1PLo104w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$YEPGQPYsGK9WEJpO0T2v.uFsSiVUYi0NmMsoOqX1FOquXeLQG6N9K"], ["created_at", "2015-03-19 01:14:19.814743"], ["updated_at", "2015-03-19 01:14:19.814743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.816325"], ["user_id", "450cd400-cdd5-11e4-91d6-705681abff85"], ["created_at", "2015-03-19 01:14:19.817031"], ["updated_at", "2015-03-19 01:14:19.817031"], ["token", "WiIox7VTCZ55bwhoPu3gEy5mwOpcgj6suDi8mNcvLNU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.820236"], ["updated_at", "2015-03-19 01:14:19.820236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '450cd400-cdd5-11e4-91d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '450da6fa-cdd5-11e4-be4e-705681abff85') LIMIT 1 SQL (3.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "450cd400-cdd5-11e4-91d6-705681abff85"], ["organization_id", "450da6fa-cdd5-11e4-be4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.824045"], ["updated_at", "2015-03-19 01:14:19.824045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '450da6fa-cdd5-11e4-be4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "450da6fa-cdd5-11e4-be4e-705681abff85"], ["created_at", "2015-03-19 01:14:19.832249"], ["updated_at", "2015-03-19 01:14:19.832249"], ["token", "eOOkKhDLbKgb7VoWjiUSRHLeT1rqyR-HhM7ftkKIaLs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/450f845c-cdd5-11e4-9e8a-705681abff85" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"450f845c-cdd5-11e4-9e8a-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:19.836829' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WiIox7VTCZ55bwhoPu3gEy5mwOpcgj6suDi8mNcvLNU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:19.838197"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:19.839203"], ["id", "450d3094-cdd5-11e4-bf3c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "450f845c-cdd5-11e4-9e8a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "450cd400-cdd5-11e4-91d6-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "450da6fa-cdd5-11e4-be4e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '450cd400-cdd5-11e4-91d6-705681abff85' LIMIT 1 [["organization_id", "450da6fa-cdd5-11e4-be4e-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."id" != '450f845c-cdd5-11e4-9e8a-705681abff85' AND "clubhouse_invitations"."organization_id" = '450da6fa-cdd5-11e4-be4e-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:14:19.847054"], ["id", "450f845c-cdd5-11e4-9e8a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$QiTAYV4NgWkLTt/mQil3KOAtg1vfdgTupgQxbE0B5/t.Nxt4gVtYO"], ["created_at", "2015-03-19 01:14:19.855748"], ["updated_at", "2015-03-19 01:14:19.855748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.857657"], ["user_id", "45131748-cdd5-11e4-800f-705681abff85"], ["created_at", "2015-03-19 01:14:19.858458"], ["updated_at", "2015-03-19 01:14:19.858458"], ["token", "zEfnptMyUZUdINq8ScaVCk5fPywYroFDd_cUA97P-x8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.862093"], ["updated_at", "2015-03-19 01:14:19.862093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45131748-cdd5-11e4-800f-705681abff85' AND "clubhouse_memberships"."organization_id" = '45140aea-cdd5-11e4-8047-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45131748-cdd5-11e4-800f-705681abff85"], ["organization_id", "45140aea-cdd5-11e4-8047-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.865293"], ["updated_at", "2015-03-19 01:14:19.865293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '45140aea-cdd5-11e4-8047-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "45140aea-cdd5-11e4-8047-705681abff85"], ["created_at", "2015-03-19 01:14:19.868631"], ["updated_at", "2015-03-19 01:14:19.868631"], ["token", "z2VJlWDqcVstfcFF5QWdaPyVQrENlCSul4k4e8Js7aw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$YuoavoaMMCnWb.Yjvn77veK/COHMp8Uc3C7ExGpVmH1.j9T5XC7s6"], ["created_at", "2015-03-19 01:14:19.878986"], ["updated_at", "2015-03-19 01:14:19.878986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.880589"], ["user_id", "4516a246-cdd5-11e4-a84f-705681abff85"], ["created_at", "2015-03-19 01:14:19.881359"], ["updated_at", "2015-03-19 01:14:19.881359"], ["token", "eZYJqTRc-bW0YvH8Yi1pe36eyXZMtp2Hzg_OBDBWzkE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.884720"], ["updated_at", "2015-03-19 01:14:19.884720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4516a246-cdd5-11e4-a84f-705681abff85' AND "clubhouse_memberships"."organization_id" = '45178788-cdd5-11e4-ab00-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4516a246-cdd5-11e4-a84f-705681abff85"], ["organization_id", "45178788-cdd5-11e4-ab00-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.888534"], ["updated_at", "2015-03-19 01:14:19.888534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '45178788-cdd5-11e4-ab00-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "45178788-cdd5-11e4-ab00-705681abff85"], ["created_at", "2015-03-19 01:14:19.892032"], ["updated_at", "2015-03-19 01:14:19.892032"], ["token", "PEoQRBuYjOd0gv1s-e1rPgTb6gr4EHl7KaQbfmIzDKk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/45189fe2-cdd5-11e4-860e-705681abff85" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"45189fe2-cdd5-11e4-860e-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:19.899124' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eZYJqTRc-bW0YvH8Yi1pe36eyXZMtp2Hzg_OBDBWzkE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:19.900986"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:19.902261"], ["id", "451700ec-cdd5-11e4-9e92-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "45189fe2-cdd5-11e4-860e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4516a246-cdd5-11e4-a84f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "45178788-cdd5-11e4-ab00-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4516a246-cdd5-11e4-a84f-705681abff85' LIMIT 1 [["organization_id", "45178788-cdd5-11e4-ab00-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "45189fe2-cdd5-11e4-860e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$D5eCXZcf.Xmqm1F4NRlCme//EyLXy.OY35.2PSuAAVrpszK6yH3py"], ["created_at", "2015-03-19 01:14:19.913409"], ["updated_at", "2015-03-19 01:14:19.913409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.915030"], ["user_id", "451be1f2-cdd5-11e4-b5a2-705681abff85"], ["created_at", "2015-03-19 01:14:19.915786"], ["updated_at", "2015-03-19 01:14:19.915786"], ["token", "zpjzf5qotxKQuYJ3uZCSe-jjyBw5JDzGDWFmBT5u0dM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.919021"], ["updated_at", "2015-03-19 01:14:19.919021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '451be1f2-cdd5-11e4-b5a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '451cb992-cdd5-11e4-93a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "451be1f2-cdd5-11e4-b5a2-705681abff85"], ["organization_id", "451cb992-cdd5-11e4-93a2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.922072"], ["updated_at", "2015-03-19 01:14:19.922072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '451cb992-cdd5-11e4-93a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "451cb992-cdd5-11e4-93a2-705681abff85"], ["created_at", "2015-03-19 01:14:19.925473"], ["updated_at", "2015-03-19 01:14:19.925473"], ["token", "Hi8UU_rb3c4EeVqz3i1JHmtwh1zzyd2yiiswJy5JTU4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$t9sxkGdQl2uCqOejKb3ZvuL2o04lqJtCz.hFiYxd7ua0H7pNVXUae"], ["created_at", "2015-03-19 01:14:19.935209"], ["updated_at", "2015-03-19 01:14:19.935209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.936763"], ["user_id", "451f35be-cdd5-11e4-b7b0-705681abff85"], ["created_at", "2015-03-19 01:14:19.937551"], ["updated_at", "2015-03-19 01:14:19.937551"], ["token", "zWnIPi3cwKXQDCGzleYKFHNE-kJaQxdL_0far0dCeRE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.940784"], ["updated_at", "2015-03-19 01:14:19.940784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '451f35be-cdd5-11e4-b7b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '45200be2-cdd5-11e4-b50e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "451f35be-cdd5-11e4-b7b0-705681abff85"], ["organization_id", "45200be2-cdd5-11e4-b50e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.944078"], ["updated_at", "2015-03-19 01:14:19.944078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '45200be2-cdd5-11e4-b50e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "45200be2-cdd5-11e4-b50e-705681abff85"], ["created_at", "2015-03-19 01:14:19.948423"], ["updated_at", "2015-03-19 01:14:19.948423"], ["token", "tNkNO5KuFHXrCY4hId6x6xh26Ej5-yXd8UjyXOw1NlY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:14:19 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:19.953702' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zWnIPi3cwKXQDCGzleYKFHNE-kJaQxdL_0far0dCeRE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:19.955131"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:19.956071"], ["id", "451f94be-cdd5-11e4-b7e0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "451f35be-cdd5-11e4-b7b0-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "45200be2-cdd5-11e4-b50e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '451f35be-cdd5-11e4-b7b0-705681abff85' LIMIT 1 [["organization_id", "45200be2-cdd5-11e4-b50e-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '45200be2-cdd5-11e4-b50e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "45200be2-cdd5-11e4-b50e-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.963479"], ["updated_at", "2015-03-19 01:14:19.963479"], ["token", "qYidn9Dca3YJdE-fpfRvMHI-0aWLAJoNZfLFFO-Kp7o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c1c25689-9303-48dd-9c2d-a4c6ad9035a1) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4523ae32-cdd5-11e4-948f-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4523ae32-cdd5-11e4-948f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c1c25689-9303-48dd-9c2d-a4c6ad9035a1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4523ae32-cdd5-11e4-948f-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [c1c25689-9303-48dd-9c2d-a4c6ad9035a1] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "45200be2-cdd5-11e4-b50e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c1c25689-9303-48dd-9c2d-a4c6ad9035a1] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [c1c25689-9303-48dd-9c2d-a4c6ad9035a1] Clubhouse::Mailer#invitation: processed outbound mail in 4.4ms [ActiveJob] [ActionMailer::DeliveryJob] [c1c25689-9303-48dd-9c2d-a4c6ad9035a1] Sent mail to email@example.com (2.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [c1c25689-9303-48dd-9c2d-a4c6ad9035a1] Date: Wed, 18 Mar 2015 18:14:19 -0700 From: from@example.com To: email@example.com Message-ID: <550a22ebeee39_e0983fcc84c65be834667@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/qYidn9Dca3YJdE-fpfRvMHI-0aWLAJoNZfLFFO-Kp7o?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [c1c25689-9303-48dd-9c2d-a4c6ad9035a1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.8ms Completed 201 Created in 28ms (Views: 0.9ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$RVsdfC90sfZf/RmiK13zFujMADSC2yQZscuGyO8bbMzUpiQmrVuqe"], ["created_at", "2015-03-19 01:14:19.987408"], ["updated_at", "2015-03-19 01:14:19.987408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:19.989143"], ["user_id", "45272cb0-cdd5-11e4-b51e-705681abff85"], ["created_at", "2015-03-19 01:14:19.989962"], ["updated_at", "2015-03-19 01:14:19.989962"], ["token", "b0p3kuqw6nO6DmORZONp-H_pvp8AVku7zGtLtOslcHw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:19.993471"], ["updated_at", "2015-03-19 01:14:19.993471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45272cb0-cdd5-11e4-b51e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4528199a-cdd5-11e4-98ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45272cb0-cdd5-11e4-b51e-705681abff85"], ["organization_id", "4528199a-cdd5-11e4-98ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:19.996773"], ["updated_at", "2015-03-19 01:14:19.996773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '4528199a-cdd5-11e4-98ae-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "4528199a-cdd5-11e4-98ae-705681abff85"], ["created_at", "2015-03-19 01:14:20.007559"], ["updated_at", "2015-03-19 01:14:20.007559"], ["token", "zfgUFKvklQBGhh2w-L9pWvBlWKMexYiGCs5xQ7nrH0Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.014761' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b0p3kuqw6nO6DmORZONp-H_pvp8AVku7zGtLtOslcHw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.016321"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.017366"], ["id", "4527957e-cdd5-11e4-9aa4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45272cb0-cdd5-11e4-b51e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4528199a-cdd5-11e4-98ae-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '45272cb0-cdd5-11e4-b51e-705681abff85' LIMIT 1 [["organization_id", "4528199a-cdd5-11e4-98ae-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4528199a-cdd5-11e4-98ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "4528199a-cdd5-11e4-98ae-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.025644"], ["updated_at", "2015-03-19 01:14:20.025644"], ["token", "Wg8JC2HUYleTYwJzxJ8UuuuywLRA5K-I62h9W0HI0WI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 61450194-c358-4ddc-a033-c73366bf9e40) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/452d07f2-cdd5-11e4-8120-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "452d07f2-cdd5-11e4-8120-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [61450194-c358-4ddc-a033-c73366bf9e40] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/452d07f2-cdd5-11e4-8120-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [61450194-c358-4ddc-a033-c73366bf9e40] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4528199a-cdd5-11e4-98ae-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [61450194-c358-4ddc-a033-c73366bf9e40] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [61450194-c358-4ddc-a033-c73366bf9e40] Clubhouse::Mailer#invitation: processed outbound mail in 3.2ms [ActiveJob] [ActionMailer::DeliveryJob] [61450194-c358-4ddc-a033-c73366bf9e40] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [61450194-c358-4ddc-a033-c73366bf9e40] Date: Wed, 18 Mar 2015 18:14:20 -0700 From: from@example.com To: email@example.com Message-ID: <550a22ec84df_e0983fcc84c65be834756@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/Wg8JC2HUYleTYwJzxJ8UuuuywLRA5K-I62h9W0HI0WI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [61450194-c358-4ddc-a033-c73366bf9e40] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.3ms Completed 201 Created in 22ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$HhHqvIGN831EgoBJ8jNSSe24uQ2wZAUqu8m81n1e8ekcefgNfQQ6y"], ["created_at", "2015-03-19 01:14:20.047357"], ["updated_at", "2015-03-19 01:14:20.047357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.049151"], ["user_id", "45305722-cdd5-11e4-914a-705681abff85"], ["created_at", "2015-03-19 01:14:20.050130"], ["updated_at", "2015-03-19 01:14:20.050130"], ["token", "EXNnlfvRLvOc8ZTpx65c4Qx3BAFAxoApmBOt1Aa8A-w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.055261"], ["updated_at", "2015-03-19 01:14:20.055261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45305722-cdd5-11e4-914a-705681abff85' AND "clubhouse_memberships"."organization_id" = '453189b2-cdd5-11e4-a8af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45305722-cdd5-11e4-914a-705681abff85"], ["organization_id", "453189b2-cdd5-11e4-a8af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.059017"], ["updated_at", "2015-03-19 01:14:20.059017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '453189b2-cdd5-11e4-a8af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "453189b2-cdd5-11e4-a8af-705681abff85"], ["created_at", "2015-03-19 01:14:20.064149"], ["updated_at", "2015-03-19 01:14:20.064149"], ["token", "Zyz5phSQ8AcIIe3yoHVgLjyCk--08SKXQKOLjdN5kgY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.070614' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EXNnlfvRLvOc8ZTpx65c4Qx3BAFAxoApmBOt1Aa8A-w"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.072912"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.075988"], ["id", "4530df62-cdd5-11e4-b9cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45305722-cdd5-11e4-914a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "453189b2-cdd5-11e4-a8af-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '45305722-cdd5-11e4-914a-705681abff85' LIMIT 1 [["organization_id", "453189b2-cdd5-11e4-a8af-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '453189b2-cdd5-11e4-a8af-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$CL5YZ2lVye3uPVEB7dRve.AUkgJayeZLi905bs2JigMdYho292WuG"], ["created_at", "2015-03-19 01:14:20.096701"], ["updated_at", "2015-03-19 01:14:20.096701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$bo3CZ62RWZ0ZLVrPgo3v5OIl9338n6Y7kbKHrWeamqKBWMm1Gucf6"], ["created_at", "2015-03-19 01:14:20.101716"], ["updated_at", "2015-03-19 01:14:20.101716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.103248"], ["user_id", "4537dca4-cdd5-11e4-aeae-705681abff85"], ["created_at", "2015-03-19 01:14:20.104167"], ["updated_at", "2015-03-19 01:14:20.104167"], ["token", "uKaxEnNqOVxoIByA7Y1Ji_66MMfFkrGAeEGmdaDPbLs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.110286"], ["updated_at", "2015-03-19 01:14:20.110286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4537dca4-cdd5-11e4-aeae-705681abff85' AND "clubhouse_memberships"."organization_id" = '4539ec42-cdd5-11e4-90f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4537dca4-cdd5-11e4-aeae-705681abff85"], ["organization_id", "4539ec42-cdd5-11e4-90f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.113896"], ["updated_at", "2015-03-19 01:14:20.113896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45389d1a-cdd5-11e4-842c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4539ec42-cdd5-11e4-90f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "45389d1a-cdd5-11e4-842c-705681abff85"], ["organization_id", "4539ec42-cdd5-11e4-90f7-705681abff85"], ["created_at", "2015-03-19 01:14:20.116989"], ["updated_at", "2015-03-19 01:14:20.116989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$Q49yqMeeXpV7CsGBdWBY.u1VWe7qckMX0O./SH/cjgiClMjkr0uDG"], ["created_at", "2015-03-19 01:14:20.121515"], ["updated_at", "2015-03-19 01:14:20.121515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.123200"], ["user_id", "453ba4a6-cdd5-11e4-baf1-705681abff85"], ["created_at", "2015-03-19 01:14:20.123986"], ["updated_at", "2015-03-19 01:14:20.123986"], ["token", "e6W9-S8_xrY3vgf5tqUAX8POJYgi_ih5q9U4mcEHJ-g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '4539ec42-cdd5-11e4-90f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "4539ec42-cdd5-11e4-90f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.129835"], ["updated_at", "2015-03-19 01:14:20.129835"], ["token", "Ki_pdVW8IqkbYqL_9F7D65ezQM9E_KH4cUliBEQn8vQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$7.pE6.xK1mIW9tvDLK5b5O4xtqUX.c49iKvTvMqsLvwlry09E1o8u"], ["created_at", "2015-03-19 01:14:20.150312"], ["updated_at", "2015-03-19 01:14:20.150312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$3r1CtZ.aqDVKr0cqRS4WKeeg4oWGTK4Hcj4CFp2u0hLJDae7YYm1W"], ["created_at", "2015-03-19 01:14:20.154769"], ["updated_at", "2015-03-19 01:14:20.154769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.156452"], ["user_id", "45400b7c-cdd5-11e4-a881-705681abff85"], ["created_at", "2015-03-19 01:14:20.157220"], ["updated_at", "2015-03-19 01:14:20.157220"], ["token", "MyDTMRVTHPiozTwUcOcJhUTjv3uXkmtZuuqI9xLB0ag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.160652"], ["updated_at", "2015-03-19 01:14:20.160652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45400b7c-cdd5-11e4-a881-705681abff85' AND "clubhouse_memberships"."organization_id" = '454199c4-cdd5-11e4-99d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45400b7c-cdd5-11e4-a881-705681abff85"], ["organization_id", "454199c4-cdd5-11e4-99d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.163943"], ["updated_at", "2015-03-19 01:14:20.163943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4540b41e-cdd5-11e4-9c92-705681abff85' AND "clubhouse_memberships"."organization_id" = '454199c4-cdd5-11e4-99d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4540b41e-cdd5-11e4-9c92-705681abff85"], ["organization_id", "454199c4-cdd5-11e4-99d1-705681abff85"], ["created_at", "2015-03-19 01:14:20.166962"], ["updated_at", "2015-03-19 01:14:20.166962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$IP2V4/wYYTNH82.HzzVlOONN1/UOo.he0P5cBpSKZMrJyjZWr.gV6"], ["created_at", "2015-03-19 01:14:20.171967"], ["updated_at", "2015-03-19 01:14:20.171967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.174786"], ["user_id", "45437014-cdd5-11e4-87d3-705681abff85"], ["created_at", "2015-03-19 01:14:20.175664"], ["updated_at", "2015-03-19 01:14:20.175664"], ["token", "liL_VjSgYKm1qSYVdKpdgtiH0M9Ydc1R4GXuLnciYbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 [1mClubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '454199c4-cdd5-11e4-99d1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "454199c4-cdd5-11e4-99d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.181231"], ["updated_at", "2015-03-19 01:14:20.181231"], ["token", "IryndbRP-Q6e8PooS9DQWaQYHhdNMHNgz74ePx_bLMU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/454199c4-cdd5-11e4-99d1-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"IryndbRP-Q6e8PooS9DQWaQYHhdNMHNgz74ePx_bLMU", "organization_id"=>"454199c4-cdd5-11e4-99d1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.187574' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "liL_VjSgYKm1qSYVdKpdgtiH0M9Ydc1R4GXuLnciYbk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.189042"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.189962"], ["id", "4543f214-cdd5-11e4-ab1a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "454199c4-cdd5-11e4-99d1-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45437014-cdd5-11e4-87d3-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$s7bW7KUjgqMX8dM0Yc.BbO1n/p6oAnLjjh8GC6SfEbHlsE9WPx4nO"], ["created_at", "2015-03-19 01:14:20.207731"], ["updated_at", "2015-03-19 01:14:20.207731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$oNYhk5K75tHASPadualT2.5RhGaimue1.3XiYlZ.TBxpMRAqxGpoK"], ["created_at", "2015-03-19 01:14:20.212722"], ["updated_at", "2015-03-19 01:14:20.212722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.214963"], ["user_id", "4548ceec-cdd5-11e4-832a-705681abff85"], ["created_at", "2015-03-19 01:14:20.215762"], ["updated_at", "2015-03-19 01:14:20.215762"], ["token", "P8N9qeVJQa8EGXduzgeyY2S2GNr34xgV2py6T5yfbAk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.219086"], ["updated_at", "2015-03-19 01:14:20.219086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4548ceec-cdd5-11e4-832a-705681abff85' AND "clubhouse_memberships"."organization_id" = '454a8304-cdd5-11e4-8043-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4548ceec-cdd5-11e4-832a-705681abff85"], ["organization_id", "454a8304-cdd5-11e4-8043-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.222184"], ["updated_at", "2015-03-19 01:14:20.222184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4549a38a-cdd5-11e4-8544-705681abff85' AND "clubhouse_memberships"."organization_id" = '454a8304-cdd5-11e4-8043-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4549a38a-cdd5-11e4-8544-705681abff85"], ["organization_id", "454a8304-cdd5-11e4-8043-705681abff85"], ["created_at", "2015-03-19 01:14:20.225165"], ["updated_at", "2015-03-19 01:14:20.225165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$z7n76Ve9S2HaAj8HcHvyQem3Nn4SQLGs0QiowAe5Y51rSP5KY9tv2"], ["created_at", "2015-03-19 01:14:20.229505"], ["updated_at", "2015-03-19 01:14:20.229505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.230970"], ["user_id", "454c1afc-cdd5-11e4-81ad-705681abff85"], ["created_at", "2015-03-19 01:14:20.231725"], ["updated_at", "2015-03-19 01:14:20.231725"], ["token", "gWnX9fs7iJ-jw3kM-wzEFfi45CftAfBso2ztmH7etxI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '454a8304-cdd5-11e4-8043-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "454a8304-cdd5-11e4-8043-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.235618"], ["updated_at", "2015-03-19 01:14:20.235618"], ["token", "aLMO3m-TcH_9tKdbe_xSREwOjtX52zzwgJlNpaSLatI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/454a8304-cdd5-11e4-8043-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"454a8304-cdd5-11e4-8043-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.240820' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gWnX9fs7iJ-jw3kM-wzEFfi45CftAfBso2ztmH7etxI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.242200"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.243134"], ["id", "454c7ca4-cdd5-11e4-9f78-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "454a8304-cdd5-11e4-8043-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "454c1afc-cdd5-11e4-81ad-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$61e4eLdzQ1IK2peEUqOfceTjpDi9ZxWgWHQ/cEQu2YUkevTSSs3HS"], ["created_at", "2015-03-19 01:14:20.255217"], ["updated_at", "2015-03-19 01:14:20.255217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$ztaQNDRVQnOs/BlW.4uGqueVpwdWMFBfIip0SibcLVvEeR9aQilY."], ["created_at", "2015-03-19 01:14:20.259421"], ["updated_at", "2015-03-19 01:14:20.259421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.260916"], ["user_id", "455009a0-cdd5-11e4-b4c7-705681abff85"], ["created_at", "2015-03-19 01:14:20.261709"], ["updated_at", "2015-03-19 01:14:20.261709"], ["token", "r3QFL2g2g4SkOeamuFGPQGpI_DG4KsE-L_Zrab_1V50"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.265129"], ["updated_at", "2015-03-19 01:14:20.265129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '455009a0-cdd5-11e4-b4c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '455189c4-cdd5-11e4-9b81-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "455009a0-cdd5-11e4-b4c7-705681abff85"], ["organization_id", "455189c4-cdd5-11e4-9b81-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.268247"], ["updated_at", "2015-03-19 01:14:20.268247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4550aaf4-cdd5-11e4-847e-705681abff85' AND "clubhouse_memberships"."organization_id" = '455189c4-cdd5-11e4-9b81-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4550aaf4-cdd5-11e4-847e-705681abff85"], ["organization_id", "455189c4-cdd5-11e4-9b81-705681abff85"], ["created_at", "2015-03-19 01:14:20.271135"], ["updated_at", "2015-03-19 01:14:20.271135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$U9dpVlf4Vcc1dhpfKDpqy.zkirQ7B/hMbSSH3VYjTpBwJEqCLBr3W"], ["created_at", "2015-03-19 01:14:20.282307"], ["updated_at", "2015-03-19 01:14:20.282307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$S5Fs8XcIBXbrLFMXpQs4Be0Gg.hTYgBfJ5FtHRhSizAzCqGpuIh1."], ["created_at", "2015-03-19 01:14:20.287835"], ["updated_at", "2015-03-19 01:14:20.287835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.289549"], ["user_id", "45543eee-cdd5-11e4-98a4-705681abff85"], ["created_at", "2015-03-19 01:14:20.290365"], ["updated_at", "2015-03-19 01:14:20.290365"], ["token", "cdi37B1jhn6puIRvoSHEbizjdtcs5F9rnSR38ECmjo4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.293748"], ["updated_at", "2015-03-19 01:14:20.293748"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45543eee-cdd5-11e4-98a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '4555e776-cdd5-11e4-a4dc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45543eee-cdd5-11e4-98a4-705681abff85"], ["organization_id", "4555e776-cdd5-11e4-a4dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.297031"], ["updated_at", "2015-03-19 01:14:20.297031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45550748-cdd5-11e4-8e3f-705681abff85' AND "clubhouse_memberships"."organization_id" = '4555e776-cdd5-11e4-a4dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "45550748-cdd5-11e4-8e3f-705681abff85"], ["organization_id", "4555e776-cdd5-11e4-a4dc-705681abff85"], ["created_at", "2015-03-19 01:14:20.300929"], ["updated_at", "2015-03-19 01:14:20.300929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/4555e776-cdd5-11e4-a4dc-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"4555e776-cdd5-11e4-a4dc-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.305440' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cdi37B1jhn6puIRvoSHEbizjdtcs5F9rnSR38ECmjo4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.307291"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.309203"], ["id", "45556d32-cdd5-11e4-a59d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4555e776-cdd5-11e4-a4dc-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45543eee-cdd5-11e4-98a4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '45543eee-cdd5-11e4-98a4-705681abff85' LIMIT 1 [["organization_id", "4555e776-cdd5-11e4-a4dc-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "4555e776-cdd5-11e4-a4dc-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4555e776-cdd5-11e4-a4dc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45543eee-cdd5-11e4-98a4-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4555e776-cdd5-11e4-a4dc-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45550748-cdd5-11e4-8e3f-705681abff85"]] Completed 200 OK in 17ms (Views: 7.3ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$zi4//L2Z0rSMPBYIOlWDce5n1TkCUMgRBhDQ5MJHlLy1NdnLrpx7."], ["created_at", "2015-03-19 01:14:20.328798"], ["updated_at", "2015-03-19 01:14:20.328798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$6FyF2HEkfzc0kn.PSnFBhuKBgUAEO4HxisMjhfaJLrQCbv0c5rYLu"], ["created_at", "2015-03-19 01:14:20.332990"], ["updated_at", "2015-03-19 01:14:20.332990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.334412"], ["user_id", "455b4536-cdd5-11e4-894f-705681abff85"], ["created_at", "2015-03-19 01:14:20.335177"], ["updated_at", "2015-03-19 01:14:20.335177"], ["token", "ziSBTT-xohJRWXvoXmmoz_Q66WnjhRBjIlfrkgOPiE8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.338578"], ["updated_at", "2015-03-19 01:14:20.338578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '455b4536-cdd5-11e4-894f-705681abff85' AND "clubhouse_memberships"."organization_id" = '455cc08c-cdd5-11e4-956a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "455b4536-cdd5-11e4-894f-705681abff85"], ["organization_id", "455cc08c-cdd5-11e4-956a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.341949"], ["updated_at", "2015-03-19 01:14:20.341949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '455be446-cdd5-11e4-9b8e-705681abff85' AND "clubhouse_memberships"."organization_id" = '455cc08c-cdd5-11e4-956a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "455be446-cdd5-11e4-9b8e-705681abff85"], ["organization_id", "455cc08c-cdd5-11e4-956a-705681abff85"], ["created_at", "2015-03-19 01:14:20.344988"], ["updated_at", "2015-03-19 01:14:20.344988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$Z6QtIPDvXCw/eFhgLY7gLOPUWd5vBtaGFgH.RlLcD3MP2Y7LWu32y"], ["created_at", "2015-03-19 01:14:20.354326"], ["updated_at", "2015-03-19 01:14:20.354326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$dLMHP5iwClLuyA.AVW7YOO6V1cCeEN6MJfIX8qqDmMIYwsj1.Bo6."], ["created_at", "2015-03-19 01:14:20.358548"], ["updated_at", "2015-03-19 01:14:20.358548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.360893"], ["user_id", "455f2994-cdd5-11e4-a2c8-705681abff85"], ["created_at", "2015-03-19 01:14:20.361732"], ["updated_at", "2015-03-19 01:14:20.361732"], ["token", "h6vfdWsrY1Bo3SG9qG_iYlWptIpTY9lGe_Yi8JJvzfg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.365586"], ["updated_at", "2015-03-19 01:14:20.365586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '455f2994-cdd5-11e4-a2c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '4560e554-cdd5-11e4-a03e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "455f2994-cdd5-11e4-a2c8-705681abff85"], ["organization_id", "4560e554-cdd5-11e4-a03e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.369781"], ["updated_at", "2015-03-19 01:14:20.369781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '455fd902-cdd5-11e4-9907-705681abff85' AND "clubhouse_memberships"."organization_id" = '4560e554-cdd5-11e4-a03e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "455fd902-cdd5-11e4-9907-705681abff85"], ["organization_id", "4560e554-cdd5-11e4-a03e-705681abff85"], ["created_at", "2015-03-19 01:14:20.372760"], ["updated_at", "2015-03-19 01:14:20.372760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.377030' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "h6vfdWsrY1Bo3SG9qG_iYlWptIpTY9lGe_Yi8JJvzfg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.378389"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.379432"], ["id", "45605404-cdd5-11e4-841d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "455f2994-cdd5-11e4-a2c8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '455f2994-cdd5-11e4-a2c8-705681abff85' LIMIT 1 [["organization_id", "4560e554-cdd5-11e4-a03e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "4560e554-cdd5-11e4-a03e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4560e554-cdd5-11e4-a03e-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "455f2994-cdd5-11e4-a2c8-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4560e554-cdd5-11e4-a03e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "455fd902-cdd5-11e4-9907-705681abff85"]] Completed 200 OK in 12ms (Views: 4.0ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$4vsU7D0aU7QYSxwUy6kqY.ew46o24mnnQIogUgobwpc0uHKGQl95q"], ["created_at", "2015-03-19 01:14:20.394922"], ["updated_at", "2015-03-19 01:14:20.394922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$9LdwV0uw3fmMCnQc8XfLye.LArtoADE1FnrDhU6M9WnJlrCCSDHMa"], ["created_at", "2015-03-19 01:14:20.399252"], ["updated_at", "2015-03-19 01:14:20.399252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.400732"], ["user_id", "45655b7a-cdd5-11e4-a394-705681abff85"], ["created_at", "2015-03-19 01:14:20.401479"], ["updated_at", "2015-03-19 01:14:20.401479"], ["token", "Q2Ie3qCB-6a4WO1eJqxWO1RW6yEoa7y1rxvjwjeP0L4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.404861"], ["updated_at", "2015-03-19 01:14:20.404861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45655b7a-cdd5-11e4-a394-705681abff85' AND "clubhouse_memberships"."organization_id" = '4566dc70-cdd5-11e4-808c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45655b7a-cdd5-11e4-a394-705681abff85"], ["organization_id", "4566dc70-cdd5-11e4-808c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.407978"], ["updated_at", "2015-03-19 01:14:20.407978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45660192-cdd5-11e4-b9ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '4566dc70-cdd5-11e4-808c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "45660192-cdd5-11e4-b9ec-705681abff85"], ["organization_id", "4566dc70-cdd5-11e4-808c-705681abff85"], ["created_at", "2015-03-19 01:14:20.410925"], ["updated_at", "2015-03-19 01:14:20.410925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$btlNm1tge0hwKhh7Ty0nPOox5wN3Rja12TZMcfRUyRRycxqv/71CG"], ["created_at", "2015-03-19 01:14:20.421663"], ["updated_at", "2015-03-19 01:14:20.421663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$MwP6Vp1/OrkpjI1OT9Ygr.ls1k78LoYVovRWrLH/zJQnSPavrL2Bq"], ["created_at", "2015-03-19 01:14:20.426123"], ["updated_at", "2015-03-19 01:14:20.426123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.427945"], ["user_id", "45696ff8-cdd5-11e4-a73e-705681abff85"], ["created_at", "2015-03-19 01:14:20.428739"], ["updated_at", "2015-03-19 01:14:20.428739"], ["token", "K5Gw0-Vhep7-_S8PQhtF7pexs7V92Joep4eHgQxEJac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.432264"], ["updated_at", "2015-03-19 01:14:20.432264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45696ff8-cdd5-11e4-a73e-705681abff85' AND "clubhouse_memberships"."organization_id" = '456b0fe8-cdd5-11e4-94b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45696ff8-cdd5-11e4-a73e-705681abff85"], ["organization_id", "456b0fe8-cdd5-11e4-94b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.436890"], ["updated_at", "2015-03-19 01:14:20.436890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '456a22ea-cdd5-11e4-ba4e-705681abff85' AND "clubhouse_memberships"."organization_id" = '456b0fe8-cdd5-11e4-94b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "456a22ea-cdd5-11e4-ba4e-705681abff85"], ["organization_id", "456b0fe8-cdd5-11e4-94b4-705681abff85"], ["created_at", "2015-03-19 01:14:20.440300"], ["updated_at", "2015-03-19 01:14:20.440300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/456bc3c0-cdd5-11e4-8e7d-705681abff85" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"456bc3c0-cdd5-11e4-8e7d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.444809' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "K5Gw0-Vhep7-_S8PQhtF7pexs7V92Joep4eHgQxEJac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.446279"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.447208"], ["id", "456a8b04-cdd5-11e4-9a0a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "456bc3c0-cdd5-11e4-8e7d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45696ff8-cdd5-11e4-a73e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "456b0fe8-cdd5-11e4-94b4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '45696ff8-cdd5-11e4-a73e-705681abff85' LIMIT 1 [["organization_id", "456b0fe8-cdd5-11e4-94b4-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45696ff8-cdd5-11e4-a73e-705681abff85"]] Completed 200 OK in 9ms (Views: 1.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$Z4iW66C/LiKsFet2lwk9QuBOqquA3vIjjxNy0xVy2asW11y8CGT3e"], ["created_at", "2015-03-19 01:14:20.460259"], ["updated_at", "2015-03-19 01:14:20.460259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$Cuujs8WuC2aPRvym9Ysxz.vUoxkUWPDf.Hh928Y7ggbV.wLd/pldC"], ["created_at", "2015-03-19 01:14:20.464802"], ["updated_at", "2015-03-19 01:14:20.464802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.466405"], ["user_id", "456f547c-cdd5-11e4-90fe-705681abff85"], ["created_at", "2015-03-19 01:14:20.467234"], ["updated_at", "2015-03-19 01:14:20.467234"], ["token", "PcnFKFJ-Mxui331pfyuucA0UtKxWHk5OMVF1JsLhZX8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.470646"], ["updated_at", "2015-03-19 01:14:20.470646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '456f547c-cdd5-11e4-90fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '4570e832-cdd5-11e4-aec5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "456f547c-cdd5-11e4-90fe-705681abff85"], ["organization_id", "4570e832-cdd5-11e4-aec5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.474017"], ["updated_at", "2015-03-19 01:14:20.474017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '457004e4-cdd5-11e4-9f16-705681abff85' AND "clubhouse_memberships"."organization_id" = '4570e832-cdd5-11e4-aec5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "457004e4-cdd5-11e4-9f16-705681abff85"], ["organization_id", "4570e832-cdd5-11e4-aec5-705681abff85"], ["created_at", "2015-03-19 01:14:20.477188"], ["updated_at", "2015-03-19 01:14:20.477188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$5wtnlruIjVyFreSg4yC.YONmpYsHuauvS6ZnlhVSbfXIeYUkFfDJC"], ["created_at", "2015-03-19 01:14:20.487217"], ["updated_at", "2015-03-19 01:14:20.487217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$JHpypYcq9hdYaA3js7wFx.SWg8BhQnhI0hsSjNb3izyNeruO3iNTS"], ["created_at", "2015-03-19 01:14:20.492092"], ["updated_at", "2015-03-19 01:14:20.492092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.493937"], ["user_id", "457370f2-cdd5-11e4-b1ad-705681abff85"], ["created_at", "2015-03-19 01:14:20.494689"], ["updated_at", "2015-03-19 01:14:20.494689"], ["token", "tluxCq_FlFjjUZ219o5H-E1vOwXhgLjm2pcPz-lgr9k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.498024"], ["updated_at", "2015-03-19 01:14:20.498024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '457370f2-cdd5-11e4-b1ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '4575140c-cdd5-11e4-9d2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "457370f2-cdd5-11e4-b1ad-705681abff85"], ["organization_id", "4575140c-cdd5-11e4-9d2a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.501952"], ["updated_at", "2015-03-19 01:14:20.501952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4574369a-cdd5-11e4-8951-705681abff85' AND "clubhouse_memberships"."organization_id" = '4575140c-cdd5-11e4-9d2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4574369a-cdd5-11e4-8951-705681abff85"], ["organization_id", "4575140c-cdd5-11e4-9d2a-705681abff85"], ["created_at", "2015-03-19 01:14:20.505341"], ["updated_at", "2015-03-19 01:14:20.505341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/457630f8-cdd5-11e4-ac63-705681abff85" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"457630f8-cdd5-11e4-ac63-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.509613' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tluxCq_FlFjjUZ219o5H-E1vOwXhgLjm2pcPz-lgr9k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.511498"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.512455"], ["id", "45749950-cdd5-11e4-a36b-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "457630f8-cdd5-11e4-ac63-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "457370f2-cdd5-11e4-b1ad-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4575140c-cdd5-11e4-9d2a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '457370f2-cdd5-11e4-b1ad-705681abff85' LIMIT 1 [["organization_id", "4575140c-cdd5-11e4-9d2a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4574369a-cdd5-11e4-8951-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4574369a-cdd5-11e4-8951-705681abff85' AND "clubhouse_memberships"."id" != '457630f8-cdd5-11e4-ac63-705681abff85' AND "clubhouse_memberships"."organization_id" = '4575140c-cdd5-11e4-9d2a-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:14:20.520173"], ["id", "457630f8-cdd5-11e4-ac63-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$geHjPKoWZ7ZlJsInupDbJ.tVMP4QSgERJ/7kbDJhw7T1btu.KRiTK"], ["created_at", "2015-03-19 01:14:20.528533"], ["updated_at", "2015-03-19 01:14:20.528533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$KNADV94c6fabvtl32r7I8OvHq7dYQnjW6gtGiXWZ2NGlDwMOnJiBe"], ["created_at", "2015-03-19 01:14:20.532759"], ["updated_at", "2015-03-19 01:14:20.532759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.534298"], ["user_id", "4579be6c-cdd5-11e4-920c-705681abff85"], ["created_at", "2015-03-19 01:14:20.535084"], ["updated_at", "2015-03-19 01:14:20.535084"], ["token", "-kAil9ySyd2Z5FazHa15tEkpfaFf5MzfRRyy8jeUbMo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.538527"], ["updated_at", "2015-03-19 01:14:20.538527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4579be6c-cdd5-11e4-920c-705681abff85' AND "clubhouse_memberships"."organization_id" = '457b411a-cdd5-11e4-94f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4579be6c-cdd5-11e4-920c-705681abff85"], ["organization_id", "457b411a-cdd5-11e4-94f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.541749"], ["updated_at", "2015-03-19 01:14:20.541749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '457a606a-cdd5-11e4-8261-705681abff85' AND "clubhouse_memberships"."organization_id" = '457b411a-cdd5-11e4-94f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "457a606a-cdd5-11e4-8261-705681abff85"], ["organization_id", "457b411a-cdd5-11e4-94f8-705681abff85"], ["created_at", "2015-03-19 01:14:20.545130"], ["updated_at", "2015-03-19 01:14:20.545130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$PF8/qbXhlstqH6/YaNGzoOZhDx8iQzdyNGAFKTOJLufIrbiRoNiaq"], ["created_at", "2015-03-19 01:14:20.557552"], ["updated_at", "2015-03-19 01:14:20.557552"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$6o3iU7GpfNlj6crGQlkYv.lSh8k6EhLjfU0lyc8zpAzVHjVdCCRsa"], ["created_at", "2015-03-19 01:14:20.563872"], ["updated_at", "2015-03-19 01:14:20.563872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.565544"], ["user_id", "457e3e6a-cdd5-11e4-95a8-705681abff85"], ["created_at", "2015-03-19 01:14:20.566519"], ["updated_at", "2015-03-19 01:14:20.566519"], ["token", "TnbzmyuDjdDt7cs7N7xjkl1UWCsG6EYw47LVGX2xst4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.570535"], ["updated_at", "2015-03-19 01:14:20.570535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '457e3e6a-cdd5-11e4-95a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '458024aa-cdd5-11e4-9f42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "457e3e6a-cdd5-11e4-95a8-705681abff85"], ["organization_id", "458024aa-cdd5-11e4-9f42-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.573855"], ["updated_at", "2015-03-19 01:14:20.573855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '457f2226-cdd5-11e4-9ecb-705681abff85' AND "clubhouse_memberships"."organization_id" = '458024aa-cdd5-11e4-9f42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "457f2226-cdd5-11e4-9ecb-705681abff85"], ["organization_id", "458024aa-cdd5-11e4-9f42-705681abff85"], ["created_at", "2015-03-19 01:14:20.576895"], ["updated_at", "2015-03-19 01:14:20.576895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/45811bee-cdd5-11e4-b8cc-705681abff85" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"45811bee-cdd5-11e4-b8cc-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.581434' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TnbzmyuDjdDt7cs7N7xjkl1UWCsG6EYw47LVGX2xst4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.583515"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.585275"], ["id", "457f9dbe-cdd5-11e4-b952-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "45811bee-cdd5-11e4-b8cc-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "457e3e6a-cdd5-11e4-95a8-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "458024aa-cdd5-11e4-9f42-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '457e3e6a-cdd5-11e4-95a8-705681abff85' LIMIT 1 [["organization_id", "458024aa-cdd5-11e4-9f42-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "457f2226-cdd5-11e4-9ecb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "45811bee-cdd5-11e4-b8cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$IakXRqgbK1kUOqA0wuxPCOM6UpoPXYpxR3FunXhTsdKa2Lmk7A.1W"], ["created_at", "2015-03-19 01:14:20.598017"], ["updated_at", "2015-03-19 01:14:20.598017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$ahdPgydUDerylAC1/K5bb.g5l21jdbvKok4Qp76u/UjqfYVJR0aFi"], ["created_at", "2015-03-19 01:14:20.602204"], ["updated_at", "2015-03-19 01:14:20.602204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.603661"], ["user_id", "458458f4-cdd5-11e4-8330-705681abff85"], ["created_at", "2015-03-19 01:14:20.604401"], ["updated_at", "2015-03-19 01:14:20.604401"], ["token", "bUgvyjwk3OUTp73930Mk-6QxiNAxkOkKMuOVt0ieM5Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.608221"], ["updated_at", "2015-03-19 01:14:20.608221"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '458458f4-cdd5-11e4-8330-705681abff85' AND "clubhouse_memberships"."organization_id" = '4585ed9a-cdd5-11e4-ac79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "458458f4-cdd5-11e4-8330-705681abff85"], ["organization_id", "4585ed9a-cdd5-11e4-ac79-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.612820"], ["updated_at", "2015-03-19 01:14:20.612820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4584f89a-cdd5-11e4-9b56-705681abff85' AND "clubhouse_memberships"."organization_id" = '4585ed9a-cdd5-11e4-ac79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4584f89a-cdd5-11e4-9b56-705681abff85"], ["organization_id", "4585ed9a-cdd5-11e4-ac79-705681abff85"], ["created_at", "2015-03-19 01:14:20.615861"], ["updated_at", "2015-03-19 01:14:20.615861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$f72C/KMkokGTfrdxny6eQOPazckiRXiDa/Kd5YbqKO4b4T3cNLtj2"], ["created_at", "2015-03-19 01:14:20.620304"], ["updated_at", "2015-03-19 01:14:20.620304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.621815"], ["user_id", "4587be22-cdd5-11e4-8ab9-705681abff85"], ["created_at", "2015-03-19 01:14:20.704628"], ["updated_at", "2015-03-19 01:14:20.704628"], ["token", "jS8TAB4QHqWN5dKoSNaR1zuTcHJXFOuQ-QrqGJ36Ado"]]  (4.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '4585ed9a-cdd5-11e4-ac79-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "4585ed9a-cdd5-11e4-ac79-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.717452"], ["updated_at", "2015-03-19 01:14:20.717452"], ["token", "EpZsSIfOQ5mBXlPzsMFC_GJpLq0mDJHiBBQa91m5WRU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$2vAJ/oqKqcZehCURKUG3z.S9cllSz8kwpicwjdaTDKnMgB25fBtai"], ["created_at", "2015-03-19 01:14:20.731760"], ["updated_at", "2015-03-19 01:14:20.731760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$0t8gSzbEQHwSESL8WHviH.jUR9W/VLndpqqDAWYOj5Cl/miRprdOO"], ["created_at", "2015-03-19 01:14:20.736805"], ["updated_at", "2015-03-19 01:14:20.736805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.738384"], ["user_id", "4598d144-cdd5-11e4-87d5-705681abff85"], ["created_at", "2015-03-19 01:14:20.739166"], ["updated_at", "2015-03-19 01:14:20.739166"], ["token", "QE6QniwSOA0mh_3Ha1fbKyALn5zB7jNNqyUcq40wpJs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.742577"], ["updated_at", "2015-03-19 01:14:20.742577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4598d144-cdd5-11e4-87d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '459a66b2-cdd5-11e4-b6b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4598d144-cdd5-11e4-87d5-705681abff85"], ["organization_id", "459a66b2-cdd5-11e4-b6b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.745905"], ["updated_at", "2015-03-19 01:14:20.745905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '459985b2-cdd5-11e4-ab68-705681abff85' AND "clubhouse_memberships"."organization_id" = '459a66b2-cdd5-11e4-b6b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "459985b2-cdd5-11e4-ab68-705681abff85"], ["organization_id", "459a66b2-cdd5-11e4-b6b7-705681abff85"], ["created_at", "2015-03-19 01:14:20.748872"], ["updated_at", "2015-03-19 01:14:20.748872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$kvLkdJypAqUeD77Cpe/rGeP1taKmTxdaqdZ3lVHXT1R.j45cRGSZ2"], ["created_at", "2015-03-19 01:14:20.753026"], ["updated_at", "2015-03-19 01:14:20.753026"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.754515"], ["user_id", "459bfc7a-cdd5-11e4-b24e-705681abff85"], ["created_at", "2015-03-19 01:14:20.755253"], ["updated_at", "2015-03-19 01:14:20.755253"], ["token", "mYJ09AT1opmu3rKyQcN20maayu7nAAoE9UQ5q1rn_tI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '459a66b2-cdd5-11e4-b6b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "459a66b2-cdd5-11e4-b6b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.758825"], ["updated_at", "2015-03-19 01:14:20.758825"], ["token", "-85nF0MWXZXAdkkPJ_5iM3PesN1Mx2DEKLUyi0B7G7s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"-85nF0MWXZXAdkkPJ_5iM3PesN1Mx2DEKLUyi0B7G7s", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.764407' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mYJ09AT1opmu3rKyQcN20maayu7nAAoE9UQ5q1rn_tI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.765833"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.766949"], ["id", "459c5bc0-cdd5-11e4-805f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "459bfc7a-cdd5-11e4-b24e-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$4VfE/4ri8xiuf8p/hLKm2e351x75fN8rTpMa5/EZFJD7cZIR3u4PG"], ["created_at", "2015-03-19 01:14:20.777936"], ["updated_at", "2015-03-19 01:14:20.777936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$xbM8pGityMxQyCkeDHw.QOsz5i0R2htQ4cLruoektCokxuPgEK2mm"], ["created_at", "2015-03-19 01:14:20.782172"], ["updated_at", "2015-03-19 01:14:20.782172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.783851"], ["user_id", "459fcdb4-cdd5-11e4-aa6d-705681abff85"], ["created_at", "2015-03-19 01:14:20.784644"], ["updated_at", "2015-03-19 01:14:20.784644"], ["token", "oUxUgJ7_KF_20g-zUerCBC2xKBOpevN6oCwLlI24Q6I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.787956"], ["updated_at", "2015-03-19 01:14:20.787956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '459fcdb4-cdd5-11e4-aa6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '45a15080-cdd5-11e4-a754-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "459fcdb4-cdd5-11e4-aa6d-705681abff85"], ["organization_id", "45a15080-cdd5-11e4-a754-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.791018"], ["updated_at", "2015-03-19 01:14:20.791018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45a0732c-cdd5-11e4-9ee6-705681abff85' AND "clubhouse_memberships"."organization_id" = '45a15080-cdd5-11e4-a754-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "45a0732c-cdd5-11e4-9ee6-705681abff85"], ["organization_id", "45a15080-cdd5-11e4-a754-705681abff85"], ["created_at", "2015-03-19 01:14:20.794095"], ["updated_at", "2015-03-19 01:14:20.794095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$mpWeZslM1d7Hld3IDsHwZ.3Qr2o6/.2FzfFbPwLACgBC6iUwXGK1q"], ["created_at", "2015-03-19 01:14:20.798617"], ["updated_at", "2015-03-19 01:14:20.798617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.800489"], ["user_id", "45a2fb56-cdd5-11e4-9c85-705681abff85"], ["created_at", "2015-03-19 01:14:20.801298"], ["updated_at", "2015-03-19 01:14:20.801298"], ["token", "si4Rs-PqgvX7H86zkEva57C2CYYP9WG5-ENOAJ_4ty0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '45a15080-cdd5-11e4-a754-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "45a15080-cdd5-11e4-a754-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.804986"], ["updated_at", "2015-03-19 01:14:20.804986"], ["token", "fMpxMKJBJlVos2B1JF7DmL8pZrCslRCEkT81G2CHoQg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.810304' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "si4Rs-PqgvX7H86zkEva57C2CYYP9WG5-ENOAJ_4ty0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.811782"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.812767"], ["id", "45a36406-cdd5-11e4-9156-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45a2fb56-cdd5-11e4-9c85-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$feKHkQQoXy1/RxcLX1p4Ke0MaH0vIBgHgnT6mwQFe7TJryLdaU5qi"], ["created_at", "2015-03-19 01:14:20.825054"], ["updated_at", "2015-03-19 01:14:20.825054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.826723"], ["user_id", "45a6fe2c-cdd5-11e4-8d6d-705681abff85"], ["created_at", "2015-03-19 01:14:20.827490"], ["updated_at", "2015-03-19 01:14:20.827490"], ["token", "8mllYwzco0FWR8ggiLMDOoYBpJLKx5y7yKTtiFN9tSc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.830956"], ["updated_at", "2015-03-19 01:14:20.830956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45a6fe2c-cdd5-11e4-8d6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '45a7e0d0-cdd5-11e4-9bc3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45a6fe2c-cdd5-11e4-8d6d-705681abff85"], ["organization_id", "45a7e0d0-cdd5-11e4-9bc3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.834181"], ["updated_at", "2015-03-19 01:14:20.834181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$apiX/VCiacKO0Vrqt3kV2OvRxQ9OBr/iilCDNxJlyF6HVwphN97cq"], ["created_at", "2015-03-19 01:14:20.849679"], ["updated_at", "2015-03-19 01:14:20.849679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.851302"], ["user_id", "45aabfb2-cdd5-11e4-ac15-705681abff85"], ["created_at", "2015-03-19 01:14:20.852256"], ["updated_at", "2015-03-19 01:14:20.852256"], ["token", "xlDCWHL09mICJ-uOO661iBZVbK9LEei3tPRTkpS169E"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.856234"], ["updated_at", "2015-03-19 01:14:20.856234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45aabfb2-cdd5-11e4-ac15-705681abff85' AND "clubhouse_memberships"."organization_id" = '45abc3c6-cdd5-11e4-a679-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45aabfb2-cdd5-11e4-ac15-705681abff85"], ["organization_id", "45abc3c6-cdd5-11e4-a679-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.859813"], ["updated_at", "2015-03-19 01:14:20.859813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.864824' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xlDCWHL09mICJ-uOO661iBZVbK9LEei3tPRTkpS169E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.866281"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.867238"], ["id", "45ab2b50-cdd5-11e4-bb50-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45aabfb2-cdd5-11e4-ac15-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.885099"], ["updated_at", "2015-03-19 01:14:20.885099"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "45b026a0-cdd5-11e4-8878-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45aabfb2-cdd5-11e4-ac15-705681abff85' AND "clubhouse_memberships"."organization_id" = '45b026a0-cdd5-11e4-8878-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45aabfb2-cdd5-11e4-ac15-705681abff85"], ["admin", "t"], ["organization_id", "45b026a0-cdd5-11e4-8878-705681abff85"], ["created_at", "2015-03-19 01:14:20.888952"], ["updated_at", "2015-03-19 01:14:20.888952"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 28ms (Views: 1.0ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$0Y.tMN4rMFkkWU0Peze8suQgrZ4Kr4rj9aHUttz.Mk6xyazCm9OkS"], ["created_at", "2015-03-19 01:14:20.900339"], ["updated_at", "2015-03-19 01:14:20.900339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.903233"], ["user_id", "45b29494-cdd5-11e4-84b1-705681abff85"], ["created_at", "2015-03-19 01:14:20.904066"], ["updated_at", "2015-03-19 01:14:20.904066"], ["token", "jYw2vYG8_weMmgKbTb3_BB9C6kuFSBFW-bLfsM0_zXM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.907852"], ["updated_at", "2015-03-19 01:14:20.907852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45b29494-cdd5-11e4-84b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '45b39d9e-cdd5-11e4-b098-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45b29494-cdd5-11e4-84b1-705681abff85"], ["organization_id", "45b39d9e-cdd5-11e4-b098-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.911161"], ["updated_at", "2015-03-19 01:14:20.911161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.917929' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jYw2vYG8_weMmgKbTb3_BB9C6kuFSBFW-bLfsM0_zXM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.919324"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.920269"], ["id", "45b31a7c-cdd5-11e4-83c4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45b29494-cdd5-11e4-84b1-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 9ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$XynS4vSPh1P4NXlHaFk5geEypZAuK0yWjDnFNX/xQxOClEppNC7x6"], ["created_at", "2015-03-19 01:14:20.932903"], ["updated_at", "2015-03-19 01:14:20.932903"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.934683"], ["user_id", "45b77676-cdd5-11e4-b56a-705681abff85"], ["created_at", "2015-03-19 01:14:20.935510"], ["updated_at", "2015-03-19 01:14:20.935510"], ["token", "Zxlt7iTBziEOFWAnv-amq3KfBDhmqf1_vr3k0RwdtKI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.939589"], ["updated_at", "2015-03-19 01:14:20.939589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45b77676-cdd5-11e4-b56a-705681abff85' AND "clubhouse_memberships"."organization_id" = '45b874f4-cdd5-11e4-bc93-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45b77676-cdd5-11e4-b56a-705681abff85"], ["organization_id", "45b874f4-cdd5-11e4-bc93-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.942738"], ["updated_at", "2015-03-19 01:14:20.942738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$Sr01Qpgp28MDl0Iuac07/esbWIwWjtOqRqdQFqnL7ERer3Do7NvG2"], ["created_at", "2015-03-19 01:14:20.952574"], ["updated_at", "2015-03-19 01:14:20.952574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.954222"], ["user_id", "45ba7254-cdd5-11e4-b31d-705681abff85"], ["created_at", "2015-03-19 01:14:20.954991"], ["updated_at", "2015-03-19 01:14:20.954991"], ["token", "glvHwJsqmQz8UdyxyZEtnivRMLqtZqYY62iTCV3Oo4A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.958341"], ["updated_at", "2015-03-19 01:14:20.958341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45ba7254-cdd5-11e4-b31d-705681abff85' AND "clubhouse_memberships"."organization_id" = '45bb5016-cdd5-11e4-b993-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45ba7254-cdd5-11e4-b31d-705681abff85"], ["organization_id", "45bb5016-cdd5-11e4-b993-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.961498"], ["updated_at", "2015-03-19 01:14:20.961498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/45bb5016-cdd5-11e4-b993-705681abff85" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"45bb5016-cdd5-11e4-b993-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:20.965829' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "glvHwJsqmQz8UdyxyZEtnivRMLqtZqYY62iTCV3Oo4A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:20.967215"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:20.968138"], ["id", "45bad618-cdd5-11e4-9a91-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "45bb5016-cdd5-11e4-b993-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45ba7254-cdd5-11e4-b31d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '45ba7254-cdd5-11e4-b31d-705681abff85' LIMIT 1 [["organization_id", "45bb5016-cdd5-11e4-b993-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$YUVgl5g7SlRjeplDZizp/um13PnZ718rDyTtL7eu2709S.uX0r4gy"], ["created_at", "2015-03-19 01:14:20.978874"], ["updated_at", "2015-03-19 01:14:20.978874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:20.980472"], ["user_id", "45be7764-cdd5-11e4-9bd6-705681abff85"], ["created_at", "2015-03-19 01:14:20.981238"], ["updated_at", "2015-03-19 01:14:20.981238"], ["token", "v_DLV--jYMma20D7qCI3oYtB3mcq9mjQ6Gkx4YwtKYI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:20.985011"], ["updated_at", "2015-03-19 01:14:20.985011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45be7764-cdd5-11e4-9bd6-705681abff85' AND "clubhouse_memberships"."organization_id" = '45bf6462-cdd5-11e4-b534-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45be7764-cdd5-11e4-9bd6-705681abff85"], ["organization_id", "45bf6462-cdd5-11e4-b534-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:20.988290"], ["updated_at", "2015-03-19 01:14:20.988290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 18:14:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$eA279JwheouL3Z1zlU3mrutDVoikzCFmoUUdou5EQkE8Z.IO12nL2"], ["created_at", "2015-03-19 01:14:21.000826"], ["updated_at", "2015-03-19 01:14:21.000826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.002879"], ["user_id", "45c1d1ac-cdd5-11e4-878f-705681abff85"], ["created_at", "2015-03-19 01:14:21.004040"], ["updated_at", "2015-03-19 01:14:21.004040"], ["token", "qM3xRKrTtwta-zyR3j0bUFbCCZ6LP4neBeMb1Ihl7eM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.007800"], ["updated_at", "2015-03-19 01:14:21.007800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45c1d1ac-cdd5-11e4-878f-705681abff85' AND "clubhouse_memberships"."organization_id" = '45c2dcb4-cdd5-11e4-89d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45c1d1ac-cdd5-11e4-878f-705681abff85"], ["organization_id", "45c2dcb4-cdd5-11e4-89d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.010910"], ["updated_at", "2015-03-19 01:14:21.010910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/45c2dcb4-cdd5-11e4-89d8-705681abff85" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"45c2dcb4-cdd5-11e4-89d8-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:21.016232' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qM3xRKrTtwta-zyR3j0bUFbCCZ6LP4neBeMb1Ihl7eM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:21.017666"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:21.018643"], ["id", "45c25aa0-cdd5-11e4-a624-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "45c2dcb4-cdd5-11e4-89d8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45c1d1ac-cdd5-11e4-878f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '45c1d1ac-cdd5-11e4-878f-705681abff85' LIMIT 1 [["organization_id", "45c2dcb4-cdd5-11e4-89d8-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '45c2dcb4-cdd5-11e4-89d8-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 01:14:21.025146"], ["id", "45c2dcb4-cdd5-11e4-89d8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$BwLg0vo7DQ7l9i1FF2tlt.UMOOyS/Sl.C/t9DU851bfYOt9zNPItC"], ["created_at", "2015-03-19 01:14:21.032842"], ["updated_at", "2015-03-19 01:14:21.032842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.034523"], ["user_id", "45c6b190-cdd5-11e4-aa59-705681abff85"], ["created_at", "2015-03-19 01:14:21.035272"], ["updated_at", "2015-03-19 01:14:21.035272"], ["token", "5G82cbnUPQ0oHNrvMW5Ovdpq3ryA3TqtcfC3o2RsuoA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.039537"], ["updated_at", "2015-03-19 01:14:21.039537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45c6b190-cdd5-11e4-aa59-705681abff85' AND "clubhouse_memberships"."organization_id" = '45c7be1e-cdd5-11e4-9d4e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45c6b190-cdd5-11e4-aa59-705681abff85"], ["organization_id", "45c7be1e-cdd5-11e4-9d4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.043224"], ["updated_at", "2015-03-19 01:14:21.043224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/45c7be1e-cdd5-11e4-9d4e-705681abff85" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"45c7be1e-cdd5-11e4-9d4e-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:21.048068' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5G82cbnUPQ0oHNrvMW5Ovdpq3ryA3TqtcfC3o2RsuoA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:21.049962"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:21.051024"], ["id", "45c715a4-cdd5-11e4-a576-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "45c7be1e-cdd5-11e4-9d4e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45c6b190-cdd5-11e4-aa59-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '45c6b190-cdd5-11e4-aa59-705681abff85' LIMIT 1 [["organization_id", "45c7be1e-cdd5-11e4-9d4e-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '45c7be1e-cdd5-11e4-9d4e-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$OBT7l7cYukg9G0eRpyAWWOsXX5tTfbuXt8Lg2aDlHgfnM3yvlwgWi"], ["created_at", "2015-03-19 01:14:21.065316"], ["updated_at", "2015-03-19 01:14:21.065316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.066900"], ["user_id", "45cba646-cdd5-11e4-9705-705681abff85"], ["created_at", "2015-03-19 01:14:21.067657"], ["updated_at", "2015-03-19 01:14:21.067657"], ["token", "qVqusjNRH212C8Y0jjkEqqLLfrg-aN8ir2kfRAfumwA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.071013"], ["updated_at", "2015-03-19 01:14:21.071013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45cba646-cdd5-11e4-9705-705681abff85' AND "clubhouse_memberships"."organization_id" = '45cc8368-cdd5-11e4-ae9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45cba646-cdd5-11e4-9705-705681abff85"], ["organization_id", "45cc8368-cdd5-11e4-ae9b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.074300"], ["updated_at", "2015-03-19 01:14:21.074300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$RPfKSjPLPul9TUM3F9Km/OI/MxnBZJth7n1RBAEt0zGMPEdxDhR5G"], ["created_at", "2015-03-19 01:14:21.078709"], ["updated_at", "2015-03-19 01:14:21.078709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.081676"], ["updated_at", "2015-03-19 01:14:21.081676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45cdaf40-cdd5-11e4-b201-705681abff85' AND "clubhouse_memberships"."organization_id" = '45ce216e-cdd5-11e4-bc36-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "45cdaf40-cdd5-11e4-b201-705681abff85"], ["organization_id", "45ce216e-cdd5-11e4-bc36-705681abff85"], ["created_at", "2015-03-19 01:14:21.084803"], ["updated_at", "2015-03-19 01:14:21.084803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$5QA8.ljYJMYxnXuNLfHbjOIBC.mkp2TXILTh2i0QgC/RAmgsNvKwq"], ["created_at", "2015-03-19 01:14:21.095385"], ["updated_at", "2015-03-19 01:14:21.095385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.097473"], ["user_id", "45d04764-cdd5-11e4-b185-705681abff85"], ["created_at", "2015-03-19 01:14:21.098361"], ["updated_at", "2015-03-19 01:14:21.098361"], ["token", "PXgcPdr9Ls0B_BH0iGHxhv0urOxQWMPaQipqvg8-ngA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.102086"], ["updated_at", "2015-03-19 01:14:21.102086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45d04764-cdd5-11e4-b185-705681abff85' AND "clubhouse_memberships"."organization_id" = '45d145c4-cdd5-11e4-a033-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45d04764-cdd5-11e4-b185-705681abff85"], ["organization_id", "45d145c4-cdd5-11e4-a033-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.106421"], ["updated_at", "2015-03-19 01:14:21.106421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$rbMaL.jXvcyAHKkMVNdVHuWiQk7KUNGejYXXCXNyAV.9iG21P5gn6"], ["created_at", "2015-03-19 01:14:21.111128"], ["updated_at", "2015-03-19 01:14:21.111128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.114176"], ["updated_at", "2015-03-19 01:14:21.114176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45d2a2f2-cdd5-11e4-90d4-705681abff85' AND "clubhouse_memberships"."organization_id" = '45d31746-cdd5-11e4-af1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "45d2a2f2-cdd5-11e4-90d4-705681abff85"], ["organization_id", "45d31746-cdd5-11e4-af1d-705681abff85"], ["created_at", "2015-03-19 01:14:21.117205"], ["updated_at", "2015-03-19 01:14:21.117205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:21.121745' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PXgcPdr9Ls0B_BH0iGHxhv0urOxQWMPaQipqvg8-ngA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:21.123585"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:21.125579"], ["id", "45d0ba50-cdd5-11e4-bcd8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45d04764-cdd5-11e4-b185-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "45d04764-cdd5-11e4-b185-705681abff85"]] Completed 200 OK in 12ms (Views: 2.9ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$Ugb9.qHO1hBDXT60KlxJxuO4OLs0GHXm34LnfBOvTgTuKYe67mjV6"], ["created_at", "2015-03-19 01:14:21.140049"], ["updated_at", "2015-03-19 01:14:21.140049"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.141931"], ["user_id", "45d70d4c-cdd5-11e4-847a-705681abff85"], ["created_at", "2015-03-19 01:14:21.142828"], ["updated_at", "2015-03-19 01:14:21.142828"], ["token", "XQVqfL8IFPT7wOspY8jmMVugmv4uaskG6snzDbgMN-k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.146479"], ["updated_at", "2015-03-19 01:14:21.146479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45d70d4c-cdd5-11e4-847a-705681abff85' AND "clubhouse_memberships"."organization_id" = '45d80724-cdd5-11e4-853a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45d70d4c-cdd5-11e4-847a-705681abff85"], ["organization_id", "45d80724-cdd5-11e4-853a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.149702"], ["updated_at", "2015-03-19 01:14:21.149702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$kqneVIHs/HWln59S24/Rk.D9vj3NMCJ.3wB4gI9ekCAMIWL9OaC0q"], ["created_at", "2015-03-19 01:14:21.160178"], ["updated_at", "2015-03-19 01:14:21.160178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.161731"], ["user_id", "45da2036-cdd5-11e4-9b4b-705681abff85"], ["created_at", "2015-03-19 01:14:21.162473"], ["updated_at", "2015-03-19 01:14:21.162473"], ["token", "LF4LKhCjtDjO3ZeTA5ibZdonMFtSm0emHqUhmlJbp1k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.165970"], ["updated_at", "2015-03-19 01:14:21.165970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45da2036-cdd5-11e4-9b4b-705681abff85' AND "clubhouse_memberships"."organization_id" = '45daffb0-cdd5-11e4-8f4d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45da2036-cdd5-11e4-9b4b-705681abff85"], ["organization_id", "45daffb0-cdd5-11e4-8f4d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.169082"], ["updated_at", "2015-03-19 01:14:21.169082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-18" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:21.174614' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LF4LKhCjtDjO3ZeTA5ibZdonMFtSm0emHqUhmlJbp1k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:21.176392"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:21.178124"], ["id", "45da7d7e-cdd5-11e4-ac4b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-18"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45da2036-cdd5-11e4-9b4b-705681abff85"]] Completed 200 OK in 8ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$klKAz5cyzPPrR7pMf3vwf.4DTV9Ki3.HkaRyLtZkBVGASZ0L2116G"], ["created_at", "2015-03-19 01:14:21.189640"], ["updated_at", "2015-03-19 01:14:21.189640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.191275"], ["user_id", "45dea0e8-cdd5-11e4-9a36-705681abff85"], ["created_at", "2015-03-19 01:14:21.192027"], ["updated_at", "2015-03-19 01:14:21.192027"], ["token", "YOLMlzZAXuAbVKHWQ0VP_wODekFhG14FLX-nOr1MnN0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.195308"], ["updated_at", "2015-03-19 01:14:21.195308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45dea0e8-cdd5-11e4-9a36-705681abff85' AND "clubhouse_memberships"."organization_id" = '45df7860-cdd5-11e4-bedf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45dea0e8-cdd5-11e4-9a36-705681abff85"], ["organization_id", "45df7860-cdd5-11e4-bedf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.198479"], ["updated_at", "2015-03-19 01:14:21.198479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:21.203401' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YOLMlzZAXuAbVKHWQ0VP_wODekFhG14FLX-nOr1MnN0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:21.204824"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:21.205845"], ["id", "45df0114-cdd5-11e4-b229-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$Ur0G5i1/12suI8DtSaSwYOaSMwvyLym850Y59X/jZh/CPBUwhp8X6"], ["created_at", "2015-03-19 01:14:21.217280"], ["updated_at", "2015-03-19 01:14:21.217280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.218932"], ["user_id", "45e2d776-cdd5-11e4-91ca-705681abff85"], ["created_at", "2015-03-19 01:14:21.219715"], ["updated_at", "2015-03-19 01:14:21.219715"], ["token", "biRojt5W1qC9jiscf_MMw-6bp7Kg98aoJ2d42t7lFZo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.223481"], ["updated_at", "2015-03-19 01:14:21.223481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45e2d776-cdd5-11e4-91ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '45e3cc44-cdd5-11e4-84ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45e2d776-cdd5-11e4-91ca-705681abff85"], ["organization_id", "45e3cc44-cdd5-11e4-84ca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.227007"], ["updated_at", "2015-03-19 01:14:21.227007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$vCUjUt9GsBEZiCi2iwX8ceAF8JZ/gFzZvP366z.2KteUVxIoGWPCW"], ["created_at", "2015-03-19 01:14:21.236637"], ["updated_at", "2015-03-19 01:14:21.236637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.239049"], ["user_id", "45e5dcd2-cdd5-11e4-b639-705681abff85"], ["created_at", "2015-03-19 01:14:21.239885"], ["updated_at", "2015-03-19 01:14:21.239885"], ["token", "KbyzCeuFXOPioIgu54BYuEIdlX-g0LxbSE-ufp-NjhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.250825"], ["updated_at", "2015-03-19 01:14:21.250825"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45e5dcd2-cdd5-11e4-b639-705681abff85' AND "clubhouse_memberships"."organization_id" = '45e7f5da-cdd5-11e4-95c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45e5dcd2-cdd5-11e4-b639-705681abff85"], ["organization_id", "45e7f5da-cdd5-11e4-95c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.255071"], ["updated_at", "2015-03-19 01:14:21.255071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/45e7f5da-cdd5-11e4-95c7-705681abff85" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"45e7f5da-cdd5-11e4-95c7-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:21.259664' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KbyzCeuFXOPioIgu54BYuEIdlX-g0LxbSE-ufp-NjhY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:21.261075"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:21.262373"], ["id", "45e65248-cdd5-11e4-b61b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "45e7f5da-cdd5-11e4-95c7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45e5dcd2-cdd5-11e4-b639-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '45e5dcd2-cdd5-11e4-b639-705681abff85' LIMIT 1 [["organization_id", "45e7f5da-cdd5-11e4-95c7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "45e7f5da-cdd5-11e4-95c7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$XnDo81eK9nUqA5TU/gLcVuCJiF2RDZ8MtJDkfBO0QkJ33z.zRBtdm"], ["created_at", "2015-03-19 01:14:21.277747"], ["updated_at", "2015-03-19 01:14:21.277747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.279529"], ["user_id", "45ec11d8-cdd5-11e4-84a7-705681abff85"], ["created_at", "2015-03-19 01:14:21.280463"], ["updated_at", "2015-03-19 01:14:21.280463"], ["token", "qERBMemwzSZ-sForgN_5-EWbWxENGZAuEzlOwzm4OaM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.285424"], ["updated_at", "2015-03-19 01:14:21.285424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45ec11d8-cdd5-11e4-84a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '45ed44fe-cdd5-11e4-93ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45ec11d8-cdd5-11e4-84a7-705681abff85"], ["organization_id", "45ed44fe-cdd5-11e4-93ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.290468"], ["updated_at", "2015-03-19 01:14:21.290468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$oFPnquGYzyIdfhFJtLpXROKoqr0noZBZWAlMNf8nqnpcfqn22ug/m"], ["created_at", "2015-03-19 01:14:21.301267"], ["updated_at", "2015-03-19 01:14:21.301267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.303932"], ["user_id", "45efb84c-cdd5-11e4-90e6-705681abff85"], ["created_at", "2015-03-19 01:14:21.305341"], ["updated_at", "2015-03-19 01:14:21.305341"], ["token", "NjUTg0aQqQWm0jfPRhGPznYYkmLYUiDmxPpkH-hRlxM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.309736"], ["updated_at", "2015-03-19 01:14:21.309736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45efb84c-cdd5-11e4-90e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '45f1027e-cdd5-11e4-b1d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45efb84c-cdd5-11e4-90e6-705681abff85"], ["organization_id", "45f1027e-cdd5-11e4-b1d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.313655"], ["updated_at", "2015-03-19 01:14:21.313655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-23" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-23", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:21.321646' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NjUTg0aQqQWm0jfPRhGPznYYkmLYUiDmxPpkH-hRlxM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:21.323902"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:21.325224"], ["id", "45f05612-cdd5-11e4-822c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45efb84c-cdd5-11e4-90e6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '45efb84c-cdd5-11e4-90e6-705681abff85' LIMIT 1 [["organization_id", "45f1027e-cdd5-11e4-b1d8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "45f1027e-cdd5-11e4-b1d8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$GvwIZMtuJ9sxtmCvoswutuWAUbBQoMTIWg/keltFSuDckzz5Y0Hra"], ["created_at", "2015-03-19 01:14:21.336314"], ["updated_at", "2015-03-19 01:14:21.336314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.338030"], ["user_id", "45f5025c-cdd5-11e4-8cf7-705681abff85"], ["created_at", "2015-03-19 01:14:21.339507"], ["updated_at", "2015-03-19 01:14:21.339507"], ["token", "DGvxP_qjFJHIk0_dP5nldqGAs1Ey9NfbvT3r76ZHCMA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.344100"], ["updated_at", "2015-03-19 01:14:21.344100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45f5025c-cdd5-11e4-8cf7-705681abff85' AND "clubhouse_memberships"."organization_id" = '45f62fec-cdd5-11e4-87ed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45f5025c-cdd5-11e4-8cf7-705681abff85"], ["organization_id", "45f62fec-cdd5-11e4-87ed-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.347791"], ["updated_at", "2015-03-19 01:14:21.347791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$Md7ad5ETTVRHRQus6z7e9e3hl3mqFzh7T5OhUMQt0pmUkje/n6276"], ["created_at", "2015-03-19 01:14:21.360614"], ["updated_at", "2015-03-19 01:14:21.360614"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.363457"], ["user_id", "45f8ddb4-cdd5-11e4-b190-705681abff85"], ["created_at", "2015-03-19 01:14:21.364281"], ["updated_at", "2015-03-19 01:14:21.364281"], ["token", "vxx38okWrrVYFeKo2R6zVn6WChWuJvVK9P_0BFtgKko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.369054"], ["updated_at", "2015-03-19 01:14:21.369054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45f8ddb4-cdd5-11e4-b190-705681abff85' AND "clubhouse_memberships"."organization_id" = '45fa1ada-cdd5-11e4-bf02-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45f8ddb4-cdd5-11e4-b190-705681abff85"], ["organization_id", "45fa1ada-cdd5-11e4-bf02-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.373675"], ["updated_at", "2015-03-19 01:14:21.373675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-25" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-25", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:21.379046' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vxx38okWrrVYFeKo2R6zVn6WChWuJvVK9P_0BFtgKko"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:21.381273"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:21.382978"], ["id", "45f95154-cdd5-11e4-b3a0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-25"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45f8ddb4-cdd5-11e4-b190-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '45f8ddb4-cdd5-11e4-b190-705681abff85' LIMIT 1 [["organization_id", "45fa1ada-cdd5-11e4-bf02-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '45fa1ada-cdd5-11e4-bf02-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 01:14:21.390727"], ["id", "45fa1ada-cdd5-11e4-bf02-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$oJWtVvaZce90rC.aHxWZf.fiVosI/7aRQxem8LHlvZqV1Ju6DPAhm"], ["created_at", "2015-03-19 01:14:21.398211"], ["updated_at", "2015-03-19 01:14:21.398211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.399815"], ["user_id", "45fe7300-cdd5-11e4-81e4-705681abff85"], ["created_at", "2015-03-19 01:14:21.400592"], ["updated_at", "2015-03-19 01:14:21.400592"], ["token", "cl1c93UrBPN2lmr1ZiMNg0gh78UQ-95piIasVgETolc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.404083"], ["updated_at", "2015-03-19 01:14:21.404083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45fe7300-cdd5-11e4-81e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '45ff56d0-cdd5-11e4-a6f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45fe7300-cdd5-11e4-81e4-705681abff85"], ["organization_id", "45ff56d0-cdd5-11e4-a6f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.407457"], ["updated_at", "2015-03-19 01:14:21.407457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-26" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-26", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:21.412622' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cl1c93UrBPN2lmr1ZiMNg0gh78UQ-95piIasVgETolc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:21.414053"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:21.415017"], ["id", "45fed3ae-cdd5-11e4-8b2b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-26"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45fe7300-cdd5-11e4-81e4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '45fe7300-cdd5-11e4-81e4-705681abff85' LIMIT 1 [["organization_id", "45ff56d0-cdd5-11e4-a6f2-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '45ff56d0-cdd5-11e4-a6f2-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$C/R6.V6eHyW41RBONrUYn.5k298Xg1dXf41vguFBBaue71XR6CyaK"], ["created_at", "2015-03-19 01:14:21.427951"], ["updated_at", "2015-03-19 01:14:21.427951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.429792"], ["user_id", "4602fe34-cdd5-11e4-9627-705681abff85"], ["created_at", "2015-03-19 01:14:21.430700"], ["updated_at", "2015-03-19 01:14:21.430700"], ["token", "O7E9LUeNhB_VSpg5Cn8MtQpp0Z3SYL64krbjBAHmNYo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.434737"], ["updated_at", "2015-03-19 01:14:21.434737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4602fe34-cdd5-11e4-9627-705681abff85' AND "clubhouse_memberships"."organization_id" = '460406a8-cdd5-11e4-8a85-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4602fe34-cdd5-11e4-9627-705681abff85"], ["organization_id", "460406a8-cdd5-11e4-8a85-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.438572"], ["updated_at", "2015-03-19 01:14:21.438572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$lufMgmIKVqNUIsrjjfrsoevVhpe21rH5Yuy03najACmkTb0DGmsT6"], ["created_at", "2015-03-19 01:14:21.451086"], ["updated_at", "2015-03-19 01:14:21.451086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:14:21.452702"], ["user_id", "46068522-cdd5-11e4-902e-705681abff85"], ["created_at", "2015-03-19 01:14:21.453560"], ["updated_at", "2015-03-19 01:14:21.453560"], ["token", "i4SAh0-YnRyl1EB--4Q7deoLvDXrQ2o8svKIo7r7s4U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:14:21.458107"], ["updated_at", "2015-03-19 01:14:21.458107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46068522-cdd5-11e4-902e-705681abff85' AND "clubhouse_memberships"."organization_id" = '46079656-cdd5-11e4-98e5-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46068522-cdd5-11e4-902e-705681abff85"], ["organization_id", "46079656-cdd5-11e4-98e5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:14:21.461555"], ["updated_at", "2015-03-19 01:14:21.461555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-28" for 127.0.0.1 at 2015-03-18 18:14:21 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-28", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:14:21.468419' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "i4SAh0-YnRyl1EB--4Q7deoLvDXrQ2o8svKIo7r7s4U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:14:21.470448"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:14:21.471673"], ["id", "4606eb0c-cdd5-11e4-b912-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-28"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46068522-cdd5-11e4-902e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '46068522-cdd5-11e4-902e-705681abff85' LIMIT 1 [["organization_id", "46079656-cdd5-11e4-98e5-705681abff85"]] Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (23.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$yoJRfSAg0rmQaQgekLupMe0JCdeeD/nG0luPouS8we/LtlxtAl7uC"], ["created_at", "2015-03-19 01:15:05.133785"], ["updated_at", "2015-03-19 01:15:05.133785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$2BhxVxAibTwU4ulfGVokaeakYkZUVJAVryBR0QH0eWJFoFR7qYkze"], ["created_at", "2015-03-19 01:15:05.162975"], ["updated_at", "2015-03-19 01:15:05.162975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.202701"], ["user_id", "6013a6de-cdd5-11e4-b7e1-705681abff85"], ["created_at", "2015-03-19 01:15:05.208594"], ["updated_at", "2015-03-19 01:15:05.208594"], ["token", "CCn6ehl1-EwvH2yr_6-JLMLfF_vAZCz6gicgjRqH0AA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.222632"], ["updated_at", "2015-03-19 01:15:05.222632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6013a6de-cdd5-11e4-b7e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '601d8ed8-cdd5-11e4-b6f5-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6013a6de-cdd5-11e4-b7e1-705681abff85"], ["organization_id", "601d8ed8-cdd5-11e4-b6f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.234921"], ["updated_at", "2015-03-19 01:15:05.234921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60146ace-cdd5-11e4-9d49-705681abff85' AND "clubhouse_memberships"."organization_id" = '601d8ed8-cdd5-11e4-b6f5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60146ace-cdd5-11e4-9d49-705681abff85"], ["organization_id", "601d8ed8-cdd5-11e4-b6f5-705681abff85"], ["created_at", "2015-03-19 01:15:05.239004"], ["updated_at", "2015-03-19 01:15:05.239004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$H3yrLPkFcckT3/LR6K7zH.byAVr69Y9ZT8JkaARp4/0TEnA7XSOfC"], ["created_at", "2015-03-19 01:15:05.243858"], ["updated_at", "2015-03-19 01:15:05.243858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.245564"], ["user_id", "6020c26a-cdd5-11e4-a529-705681abff85"], ["created_at", "2015-03-19 01:15:05.246480"], ["updated_at", "2015-03-19 01:15:05.246480"], ["token", "6z4Y-QN6FaKpqDu0SsrRWL09AJnHQZxDki8betCNG1A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '601d8ed8-cdd5-11e4-b6f5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "601d8ed8-cdd5-11e4-b6f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.256592"], ["updated_at", "2015-03-19 01:15:05.256592"], ["token", "j_t0PVkg3p9I0GzTJWqGef6nRmCpt2E_0MSRQJ-9gBc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$r1d5aYtfomxeJIQvbeLyKOZIe1ajcWuZEBpPBYj2AS082q2xOg7qW"], ["created_at", "2015-03-19 01:15:05.292182"], ["updated_at", "2015-03-19 01:15:05.292182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$mD0LTtmYo3REBUVKBm8jUeDtXx7q1Z6XZfHEdQi0kBaoy57VC/dLK"], ["created_at", "2015-03-19 01:15:05.296653"], ["updated_at", "2015-03-19 01:15:05.296653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.298210"], ["user_id", "6028230c-cdd5-11e4-8dc7-705681abff85"], ["created_at", "2015-03-19 01:15:05.299120"], ["updated_at", "2015-03-19 01:15:05.299120"], ["token", "6__89fqDZE5X3e10LI-jDapZ2C3mhSTuTRH5jxTbU8E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.302829"], ["updated_at", "2015-03-19 01:15:05.302829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6028230c-cdd5-11e4-8dc7-705681abff85' AND "clubhouse_memberships"."organization_id" = '6029c13a-cdd5-11e4-b1e9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6028230c-cdd5-11e4-8dc7-705681abff85"], ["organization_id", "6029c13a-cdd5-11e4-b1e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.306080"], ["updated_at", "2015-03-19 01:15:05.306080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6028d09a-cdd5-11e4-9469-705681abff85' AND "clubhouse_memberships"."organization_id" = '6029c13a-cdd5-11e4-b1e9-705681abff85') LIMIT 1 SQL (4.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6028d09a-cdd5-11e4-9469-705681abff85"], ["organization_id", "6029c13a-cdd5-11e4-b1e9-705681abff85"], ["created_at", "2015-03-19 01:15:05.309295"], ["updated_at", "2015-03-19 01:15:05.309295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$XsDMWuxjrhsgCY53tu.RzOHgiiRwsS/SMT0RZzXKJqds12c3GaIi6"], ["created_at", "2015-03-19 01:15:05.318118"], ["updated_at", "2015-03-19 01:15:05.318118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.320087"], ["user_id", "602c233a-cdd5-11e4-8cd3-705681abff85"], ["created_at", "2015-03-19 01:15:05.320896"], ["updated_at", "2015-03-19 01:15:05.320896"], ["token", "MCPjJijZ3brzVxMrxzrq7QsOZJ6kWtBsGrf_otvAXVE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '6029c13a-cdd5-11e4-b1e9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "6029c13a-cdd5-11e4-b1e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.325827"], ["updated_at", "2015-03-19 01:15:05.325827"], ["token", "nSdwBz4A06wgNHJyHz-2hBa_Y1kgDPcNHcalCtFck-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"nSdwBz4A06wgNHJyHz-2hBa_Y1kgDPcNHcalCtFck-s", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:15:05.330818' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MCPjJijZ3brzVxMrxzrq7QsOZJ6kWtBsGrf_otvAXVE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:15:05.337816"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:15:05.338940"], ["id", "602c8bf4-cdd5-11e4-805f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "602c233a-cdd5-11e4-8cd3-705681abff85"]] Completed 500 Internal Server Error in 36ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ea1nxiWmmWby2/ZwgdzxCeixXHUdDTgUGGOjc57YBX/U.h8gr6iXa"], ["created_at", "2015-03-19 01:15:05.372750"], ["updated_at", "2015-03-19 01:15:05.372750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$PV1bqdF3eRBbUmy0Zh9z2uGVgO/mZ/v5ta0OdbQJE4b1zzVlE3uI6"], ["created_at", "2015-03-19 01:15:05.376994"], ["updated_at", "2015-03-19 01:15:05.376994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.378487"], ["user_id", "603471ac-cdd5-11e4-be47-705681abff85"], ["created_at", "2015-03-19 01:15:05.379293"], ["updated_at", "2015-03-19 01:15:05.379293"], ["token", "Kxp4aOWi2uz7m1BGGFclVPGbl50qXrgfxvtfPigSGp0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.382907"], ["updated_at", "2015-03-19 01:15:05.382907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '603471ac-cdd5-11e4-be47-705681abff85' AND "clubhouse_memberships"."organization_id" = '6035fd2e-cdd5-11e4-a34b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "603471ac-cdd5-11e4-be47-705681abff85"], ["organization_id", "6035fd2e-cdd5-11e4-a34b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.386295"], ["updated_at", "2015-03-19 01:15:05.386295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60351044-cdd5-11e4-a7c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '6035fd2e-cdd5-11e4-a34b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60351044-cdd5-11e4-a7c0-705681abff85"], ["organization_id", "6035fd2e-cdd5-11e4-a34b-705681abff85"], ["created_at", "2015-03-19 01:15:05.389623"], ["updated_at", "2015-03-19 01:15:05.389623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$nxaat8WfEaeEH1KnSGaZAumwlACSTpkpNmpc3qAiy8aM/c7RNb7fm"], ["created_at", "2015-03-19 01:15:05.395451"], ["updated_at", "2015-03-19 01:15:05.395451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.397524"], ["user_id", "6037ea1c-cdd5-11e4-ae6e-705681abff85"], ["created_at", "2015-03-19 01:15:05.398683"], ["updated_at", "2015-03-19 01:15:05.398683"], ["token", "OYEF4xQMR8AFRHA3S6hLPUhIbfxPnfDbMME2BULaU0I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '6035fd2e-cdd5-11e4-a34b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "6035fd2e-cdd5-11e4-a34b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.404000"], ["updated_at", "2015-03-19 01:15:05.404000"], ["token", "wxYpL2EP2XeJbuqYjpV36icKh1VUK7VyTf4Ktlm9YA4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:15:05.412264' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OYEF4xQMR8AFRHA3S6hLPUhIbfxPnfDbMME2BULaU0I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:15:05.413883"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:15:05.414920"], ["id", "60386b04-cdd5-11e4-bc79-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6037ea1c-cdd5-11e4-ae6e-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Ivj5jawoQPXnt.lS9mJ78O49iMdhs746qA8HtXV2TC.LmSvR4gVPK"], ["created_at", "2015-03-19 01:15:05.429656"], ["updated_at", "2015-03-19 01:15:05.429656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$VaqokTrdUBK044tjJXOTl.f/OB3kGxRMV2UAMrus9S8EPewfn8jIq"], ["created_at", "2015-03-19 01:15:05.434331"], ["updated_at", "2015-03-19 01:15:05.434331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.435859"], ["user_id", "603d2568-cdd5-11e4-a6f9-705681abff85"], ["created_at", "2015-03-19 01:15:05.436683"], ["updated_at", "2015-03-19 01:15:05.436683"], ["token", "N5sfHZR6T1o6yomX8s9FzdtlLxf5yj7blzq0a_5SFvg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.440432"], ["updated_at", "2015-03-19 01:15:05.440432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '603d2568-cdd5-11e4-a6f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '603ec1b6-cdd5-11e4-95b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "603d2568-cdd5-11e4-a6f9-705681abff85"], ["organization_id", "603ec1b6-cdd5-11e4-95b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.443707"], ["updated_at", "2015-03-19 01:15:05.443707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '603dd044-cdd5-11e4-9ad0-705681abff85' AND "clubhouse_memberships"."organization_id" = '603ec1b6-cdd5-11e4-95b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "603dd044-cdd5-11e4-9ad0-705681abff85"], ["organization_id", "603ec1b6-cdd5-11e4-95b6-705681abff85"], ["created_at", "2015-03-19 01:15:05.446881"], ["updated_at", "2015-03-19 01:15:05.446881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$46AuQKYW8OJaFwcIoeE3.eSJNOtXzZHZ7y3wWHicrMbTsdZdGgHbu"], ["created_at", "2015-03-19 01:15:05.457416"], ["updated_at", "2015-03-19 01:15:05.457416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$oXX6wbI5B6AIuIBGG70HY.0Hr3.ef.0rjCYnzd9oGM/oRBj7O3ae."], ["created_at", "2015-03-19 01:15:05.462588"], ["updated_at", "2015-03-19 01:15:05.462588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.464244"], ["user_id", "604168bc-cdd5-11e4-9ce8-705681abff85"], ["created_at", "2015-03-19 01:15:05.465253"], ["updated_at", "2015-03-19 01:15:05.465253"], ["token", "80r47ZIWY9gRU2svFUkiJ5LwlOxcGlDWlJ2C-X71roM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.469087"], ["updated_at", "2015-03-19 01:15:05.469087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '604168bc-cdd5-11e4-9ce8-705681abff85' AND "clubhouse_memberships"."organization_id" = '60432242-cdd5-11e4-972d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "604168bc-cdd5-11e4-9ce8-705681abff85"], ["organization_id", "60432242-cdd5-11e4-972d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.472833"], ["updated_at", "2015-03-19 01:15:05.472833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '604221c6-cdd5-11e4-bfa3-705681abff85' AND "clubhouse_memberships"."organization_id" = '60432242-cdd5-11e4-972d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "604221c6-cdd5-11e4-bfa3-705681abff85"], ["organization_id", "60432242-cdd5-11e4-972d-705681abff85"], ["created_at", "2015-03-19 01:15:05.476141"], ["updated_at", "2015-03-19 01:15:05.476141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/6043b568-cdd5-11e4-ae83-705681abff85" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"6043b568-cdd5-11e4-ae83-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:15:05.482725' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "80r47ZIWY9gRU2svFUkiJ5LwlOxcGlDWlJ2C-X71roM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:15:05.484256"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:15:05.485470"], ["id", "604295a2-cdd5-11e4-bd73-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "6043b568-cdd5-11e4-ae83-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "604168bc-cdd5-11e4-9ce8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60432242-cdd5-11e4-972d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '604168bc-cdd5-11e4-9ce8-705681abff85' LIMIT 1 [["organization_id", "60432242-cdd5-11e4-972d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "604168bc-cdd5-11e4-9ce8-705681abff85"]] Completed 200 OK in 15ms (Views: 5.4ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$mOdRYzILL6SPS2HNQg5qJOJJ/vHVCRHjZUkxh6cK/ymfbD05wSI8."], ["created_at", "2015-03-19 01:15:05.506070"], ["updated_at", "2015-03-19 01:15:05.506070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$5hgKE9s7mRXkKrnp2bYUQuq3dzQpygremPVdIdYzTmppG4VhcWWhi"], ["created_at", "2015-03-19 01:15:05.510649"], ["updated_at", "2015-03-19 01:15:05.510649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.512289"], ["user_id", "6048c652-cdd5-11e4-aaf5-705681abff85"], ["created_at", "2015-03-19 01:15:05.513139"], ["updated_at", "2015-03-19 01:15:05.513139"], ["token", "aZ39BayALWR6h-tEiKf03fboL4HJ6ZEIaV0VJTblVME"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.516845"], ["updated_at", "2015-03-19 01:15:05.516845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6048c652-cdd5-11e4-aaf5-705681abff85' AND "clubhouse_memberships"."organization_id" = '604a6b10-cdd5-11e4-a685-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6048c652-cdd5-11e4-aaf5-705681abff85"], ["organization_id", "604a6b10-cdd5-11e4-a685-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.520225"], ["updated_at", "2015-03-19 01:15:05.520225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '604976ec-cdd5-11e4-b48e-705681abff85' AND "clubhouse_memberships"."organization_id" = '604a6b10-cdd5-11e4-a685-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "604976ec-cdd5-11e4-b48e-705681abff85"], ["organization_id", "604a6b10-cdd5-11e4-a685-705681abff85"], ["created_at", "2015-03-19 01:15:05.525812"], ["updated_at", "2015-03-19 01:15:05.525812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$1P1Skn7mk0rP4SDlRQwVzusPyosj0GGjTUXGt2f1zm2ZTCXbsd2su"], ["created_at", "2015-03-19 01:15:05.531430"], ["updated_at", "2015-03-19 01:15:05.531430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.534007"], ["user_id", "604cac22-cdd5-11e4-9398-705681abff85"], ["created_at", "2015-03-19 01:15:05.535022"], ["updated_at", "2015-03-19 01:15:05.535022"], ["token", "RCcmk_RzYR1P-oDvyawBHE5OP6frDkpzHvjdgjawWiM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '604a6b10-cdd5-11e4-a685-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "604a6b10-cdd5-11e4-a685-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.539891"], ["updated_at", "2015-03-19 01:15:05.539891"], ["token", "yST5kWDF_FaAWSq1mlvWggTLB_KmrtM3yCwLk695738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$2zQIn6X6wN.KSv588klQXOQLtoli2xesEOJvxyyPlkcklIoQ8Pl/2"], ["created_at", "2015-03-19 01:15:05.551584"], ["updated_at", "2015-03-19 01:15:05.551584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$VW/SMxq0nrpS2aP6FX5UBONjUFIMEFelvJrLPnjYPX.Ba/RI0RXKG"], ["created_at", "2015-03-19 01:15:05.566641"], ["updated_at", "2015-03-19 01:15:05.566641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.568220"], ["user_id", "6050f89a-cdd5-11e4-aa6f-705681abff85"], ["created_at", "2015-03-19 01:15:05.569022"], ["updated_at", "2015-03-19 01:15:05.569022"], ["token", "aBEhTUyJ4BTN3xtdOhnIj0CfL0Rm9zV3C9nCSCpnZ2U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.572437"], ["updated_at", "2015-03-19 01:15:05.572437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6050f89a-cdd5-11e4-aa6f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6052e394-cdd5-11e4-8bba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6050f89a-cdd5-11e4-aa6f-705681abff85"], ["organization_id", "6052e394-cdd5-11e4-8bba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.575825"], ["updated_at", "2015-03-19 01:15:05.575825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '605203a2-cdd5-11e4-aeee-705681abff85' AND "clubhouse_memberships"."organization_id" = '6052e394-cdd5-11e4-8bba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "605203a2-cdd5-11e4-aeee-705681abff85"], ["organization_id", "6052e394-cdd5-11e4-8bba-705681abff85"], ["created_at", "2015-03-19 01:15:05.578908"], ["updated_at", "2015-03-19 01:15:05.578908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$jRiyLls9y1645/glOrSPI..drlO.RgNCWiq.C7cnLsyswASni7uM6"], ["created_at", "2015-03-19 01:15:05.583723"], ["updated_at", "2015-03-19 01:15:05.583723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.585588"], ["user_id", "60549e28-cdd5-11e4-9d69-705681abff85"], ["created_at", "2015-03-19 01:15:05.586563"], ["updated_at", "2015-03-19 01:15:05.586563"], ["token", "r-lImSPBpB17OaAjSXuvL0dY9A4AF7v_uHrBL8VA7Jo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '6052e394-cdd5-11e4-8bba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "6052e394-cdd5-11e4-8bba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.590572"], ["updated_at", "2015-03-19 01:15:05.590572"], ["token", "WfIEjwYE393wk9FI3349Jxy3_83aPswEe6vXrpgvUyw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/6052e394-cdd5-11e4-8bba-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"WfIEjwYE393wk9FI3349Jxy3_83aPswEe6vXrpgvUyw", "organization_id"=>"6052e394-cdd5-11e4-8bba-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:15:05.595584' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r-lImSPBpB17OaAjSXuvL0dY9A4AF7v_uHrBL8VA7Jo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:15:05.597443"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:15:05.598465"], ["id", "60551862-cdd5-11e4-b4e7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6052e394-cdd5-11e4-8bba-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60549e28-cdd5-11e4-9d69-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$eiJ/9xmwXJ2NRBSuU2XLWeaOcOKXaJEVMtX/smITH.VYkText20KS"], ["created_at", "2015-03-19 01:15:05.608436"], ["updated_at", "2015-03-19 01:15:05.608436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$J5czXLm68YFJ7PeVpOdQoOYPo1f5//CKeVR23yaIJywlIIsfl0Gc6"], ["created_at", "2015-03-19 01:15:05.612854"], ["updated_at", "2015-03-19 01:15:05.612854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.614480"], ["user_id", "605863b4-cdd5-11e4-b1fd-705681abff85"], ["created_at", "2015-03-19 01:15:05.615487"], ["updated_at", "2015-03-19 01:15:05.615487"], ["token", "jceJExlT7toWTehaXIvkhi-VHkZxaQ2eIbDdQueGcpo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.619025"], ["updated_at", "2015-03-19 01:15:05.619025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '605863b4-cdd5-11e4-b1fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '605a00a2-cdd5-11e4-b310-705681abff85') LIMIT 1 SQL (7.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "605863b4-cdd5-11e4-b1fd-705681abff85"], ["organization_id", "605a00a2-cdd5-11e4-b310-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.710987"], ["updated_at", "2015-03-19 01:15:05.710987"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (3.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60590f1c-cdd5-11e4-9b67-705681abff85' AND "clubhouse_memberships"."organization_id" = '605a00a2-cdd5-11e4-b310-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60590f1c-cdd5-11e4-9b67-705681abff85"], ["organization_id", "605a00a2-cdd5-11e4-b310-705681abff85"], ["created_at", "2015-03-19 01:15:05.730692"], ["updated_at", "2015-03-19 01:15:05.730692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$ksvz1aTMWC.MAKLLKxtxbOfKtkicJaudJq0l5UxuxOvSMIDw79iKO"], ["created_at", "2015-03-19 01:15:05.739500"], ["updated_at", "2015-03-19 01:15:05.739500"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.743048"], ["user_id", "606c78c2-cdd5-11e4-af33-705681abff85"], ["created_at", "2015-03-19 01:15:05.744570"], ["updated_at", "2015-03-19 01:15:05.744570"], ["token", "DTbLGUbejNWaSL-Ow1moZ2whLq1P2WQQjsYaBt9rOdk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '605a00a2-cdd5-11e4-b310-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "605a00a2-cdd5-11e4-b310-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.752183"], ["updated_at", "2015-03-19 01:15:05.752183"], ["token", "g1rG9VkevUci36uXMGdXrVdm9gf8YRnBiQqxoNqxm90"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/605a00a2-cdd5-11e4-b310-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"605a00a2-cdd5-11e4-b310-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:15:05.761877' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DTbLGUbejNWaSL-Ow1moZ2whLq1P2WQQjsYaBt9rOdk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:15:05.764140"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:15:05.765564"], ["id", "606d5062-cdd5-11e4-aba7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "605a00a2-cdd5-11e4-b310-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "606c78c2-cdd5-11e4-af33-705681abff85"]] Completed 500 Internal Server Error in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$1kcXLeyDBF9Kz9sIpU9s5.aG1P4qEY8U4bj/Q3SX2F3kIEITainEa"], ["created_at", "2015-03-19 01:15:05.791647"], ["updated_at", "2015-03-19 01:15:05.791647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$zviU84mwn8fcOPTPw4RfbeFwaEuhLyrTjTiyvoMTdRVvDSnwPTc5W"], ["created_at", "2015-03-19 01:15:05.797786"], ["updated_at", "2015-03-19 01:15:05.797786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.800240"], ["user_id", "607475cc-cdd5-11e4-8211-705681abff85"], ["created_at", "2015-03-19 01:15:05.801193"], ["updated_at", "2015-03-19 01:15:05.801193"], ["token", "kWsO6ErM0hc1T6o4DDxCHadL96wmob1WvaiUUw-VckE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.807996"], ["updated_at", "2015-03-19 01:15:05.807996"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '607475cc-cdd5-11e4-8211-705681abff85' AND "clubhouse_memberships"."organization_id" = '6076ed02-cdd5-11e4-b006-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "607475cc-cdd5-11e4-8211-705681abff85"], ["organization_id", "6076ed02-cdd5-11e4-b006-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.814754"], ["updated_at", "2015-03-19 01:15:05.814754"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60755a96-cdd5-11e4-85d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '6076ed02-cdd5-11e4-b006-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60755a96-cdd5-11e4-85d5-705681abff85"], ["organization_id", "6076ed02-cdd5-11e4-b006-705681abff85"], ["created_at", "2015-03-19 01:15:05.822136"], ["updated_at", "2015-03-19 01:15:05.822136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$e6SCc6Hpg.Wl8zbzNHwlh.B7dsd9P/Vad/l3GMU49pyPAqZh1el76"], ["created_at", "2015-03-19 01:15:05.833871"], ["updated_at", "2015-03-19 01:15:05.833871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$3CGVCCYd.KuYJn6fS9YWuOQ7QDhAA6a/1Nr7V.YM0GedOJgkpMBtO"], ["created_at", "2015-03-19 01:15:05.838643"], ["updated_at", "2015-03-19 01:15:05.838643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.840290"], ["user_id", "607acd1e-cdd5-11e4-a7b8-705681abff85"], ["created_at", "2015-03-19 01:15:05.841317"], ["updated_at", "2015-03-19 01:15:05.841317"], ["token", "zBlbx0dcS1Eozn9TGEB2oxNMczCvqFWG5sVrzgOQdaU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.844971"], ["updated_at", "2015-03-19 01:15:05.844971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '607acd1e-cdd5-11e4-a7b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '607c7b28-cdd5-11e4-b783-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "607acd1e-cdd5-11e4-a7b8-705681abff85"], ["organization_id", "607c7b28-cdd5-11e4-b783-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.848517"], ["updated_at", "2015-03-19 01:15:05.848517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '607b84c0-cdd5-11e4-8456-705681abff85' AND "clubhouse_memberships"."organization_id" = '607c7b28-cdd5-11e4-b783-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "607b84c0-cdd5-11e4-8456-705681abff85"], ["organization_id", "607c7b28-cdd5-11e4-b783-705681abff85"], ["created_at", "2015-03-19 01:15:05.851623"], ["updated_at", "2015-03-19 01:15:05.851623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/607d8478-cdd5-11e4-9e4a-705681abff85" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"607d8478-cdd5-11e4-9e4a-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:15:05.856256' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zBlbx0dcS1Eozn9TGEB2oxNMczCvqFWG5sVrzgOQdaU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:15:05.859731"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:15:05.861292"], ["id", "607bf630-cdd5-11e4-9d72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "607d8478-cdd5-11e4-9e4a-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "607acd1e-cdd5-11e4-a7b8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "607c7b28-cdd5-11e4-b783-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '607acd1e-cdd5-11e4-a7b8-705681abff85' LIMIT 1 [["organization_id", "607c7b28-cdd5-11e4-b783-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "607b84c0-cdd5-11e4-8456-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '607b84c0-cdd5-11e4-8456-705681abff85' AND "clubhouse_memberships"."id" != '607d8478-cdd5-11e4-9e4a-705681abff85' AND "clubhouse_memberships"."organization_id" = '607c7b28-cdd5-11e4-b783-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:15:05.872193"], ["id", "607d8478-cdd5-11e4-9e4a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.1ms | ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$9DmMMaFYetx1lyTfuavjf.TlKhFlL.QBEcjeWzDCGwjS0UKhVN.7K"], ["created_at", "2015-03-19 01:15:05.881057"], ["updated_at", "2015-03-19 01:15:05.881057"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$8Gjdrlo05Q38hdwmDotOPueHAPSEBy/caNSiBObj6NseNXr1gHlVu"], ["created_at", "2015-03-19 01:15:05.885999"], ["updated_at", "2015-03-19 01:15:05.885999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.888076"], ["user_id", "60820386-cdd5-11e4-bb46-705681abff85"], ["created_at", "2015-03-19 01:15:05.889059"], ["updated_at", "2015-03-19 01:15:05.889059"], ["token", "Ba9VQkye3VaVjicKyaST7-Cb4vYKynioHwoQq0KEffM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.894135"], ["updated_at", "2015-03-19 01:15:05.894135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60820386-cdd5-11e4-bb46-705681abff85' AND "clubhouse_memberships"."organization_id" = '6083fe5c-cdd5-11e4-8ab8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60820386-cdd5-11e4-bb46-705681abff85"], ["organization_id", "6083fe5c-cdd5-11e4-8ab8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.897588"], ["updated_at", "2015-03-19 01:15:05.897588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6082c56e-cdd5-11e4-a049-705681abff85' AND "clubhouse_memberships"."organization_id" = '6083fe5c-cdd5-11e4-8ab8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6082c56e-cdd5-11e4-a049-705681abff85"], ["organization_id", "6083fe5c-cdd5-11e4-8ab8-705681abff85"], ["created_at", "2015-03-19 01:15:05.900819"], ["updated_at", "2015-03-19 01:15:05.900819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$Asfq7L84tYZO4TCxygy3Te5ONk6tY86pV9O2RlbniLvn/ZoPJTTra"], ["created_at", "2015-03-19 01:15:05.910733"], ["updated_at", "2015-03-19 01:15:05.910733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$13GLTrb.cIbIykeTmufLUu.4wArKJwtaPUpJCeWNE.5UkjaHwyoHe"], ["created_at", "2015-03-19 01:15:05.915876"], ["updated_at", "2015-03-19 01:15:05.915876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.917478"], ["user_id", "60868f46-cdd5-11e4-b064-705681abff85"], ["created_at", "2015-03-19 01:15:05.918259"], ["updated_at", "2015-03-19 01:15:05.918259"], ["token", "_u4b-1JfqNVXxzBABiUVb6nFhXPqYvbN0l-fvkpb8kU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.921657"], ["updated_at", "2015-03-19 01:15:05.921657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60868f46-cdd5-11e4-b064-705681abff85' AND "clubhouse_memberships"."organization_id" = '60882f68-cdd5-11e4-8858-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60868f46-cdd5-11e4-b064-705681abff85"], ["organization_id", "60882f68-cdd5-11e4-8858-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.924965"], ["updated_at", "2015-03-19 01:15:05.924965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60874dbe-cdd5-11e4-910f-705681abff85' AND "clubhouse_memberships"."organization_id" = '60882f68-cdd5-11e4-8858-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60874dbe-cdd5-11e4-910f-705681abff85"], ["organization_id", "60882f68-cdd5-11e4-8858-705681abff85"], ["created_at", "2015-03-19 01:15:05.928031"], ["updated_at", "2015-03-19 01:15:05.928031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/608924f4-cdd5-11e4-9a22-705681abff85" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"608924f4-cdd5-11e4-9a22-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:15:05.932730' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_u4b-1JfqNVXxzBABiUVb6nFhXPqYvbN0l-fvkpb8kU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:15:05.934148"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:15:05.935121"], ["id", "6087b04c-cdd5-11e4-b94c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "608924f4-cdd5-11e4-9a22-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60868f46-cdd5-11e4-b064-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60882f68-cdd5-11e4-8858-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60868f46-cdd5-11e4-b064-705681abff85' LIMIT 1 [["organization_id", "60882f68-cdd5-11e4-8858-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60874dbe-cdd5-11e4-910f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "608924f4-cdd5-11e4-9a22-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$.CZQnvEHkczvSAiw7i6Br.GlqlzHq8HwjF7JNYPQBY166yDPvUoyC"], ["created_at", "2015-03-19 01:15:05.948580"], ["updated_at", "2015-03-19 01:15:05.948580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$DaVvsF6BwqQBA7erF5WGyeGG4wPnaBU/.sVoyLFX1v7ymD8vYWRcS"], ["created_at", "2015-03-19 01:15:05.953171"], ["updated_at", "2015-03-19 01:15:05.953171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.955264"], ["user_id", "608c4df0-cdd5-11e4-8742-705681abff85"], ["created_at", "2015-03-19 01:15:05.956116"], ["updated_at", "2015-03-19 01:15:05.956116"], ["token", "YvNcy2CXkhHshFV1ObxhNC8i4jsS9whrghuHBeVBBhA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.960390"], ["updated_at", "2015-03-19 01:15:05.960390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '608c4df0-cdd5-11e4-8742-705681abff85' AND "clubhouse_memberships"."organization_id" = '608e1842-cdd5-11e4-aba8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "608c4df0-cdd5-11e4-8742-705681abff85"], ["organization_id", "608e1842-cdd5-11e4-aba8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:05.964015"], ["updated_at", "2015-03-19 01:15:05.964015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '608d0498-cdd5-11e4-b3e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '608e1842-cdd5-11e4-aba8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "608d0498-cdd5-11e4-b3e2-705681abff85"], ["organization_id", "608e1842-cdd5-11e4-aba8-705681abff85"], ["created_at", "2015-03-19 01:15:05.967489"], ["updated_at", "2015-03-19 01:15:05.967489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:15:05 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$SbRL0dqfQ8I8h4TbRMzr2OxIR.5/3DcMV0I5OERjcLlRamLJ0I/mC"], ["created_at", "2015-03-19 01:15:05.981787"], ["updated_at", "2015-03-19 01:15:05.981787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$31ijwnivKy26TQ.wXM0f0uaud5k4l4Ron3NLe.Cg4ASg6qzak2SFe"], ["created_at", "2015-03-19 01:15:05.987535"], ["updated_at", "2015-03-19 01:15:05.987535"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:05.989444"], ["user_id", "6091703c-cdd5-11e4-9654-705681abff85"], ["created_at", "2015-03-19 01:15:05.990277"], ["updated_at", "2015-03-19 01:15:05.990277"], ["token", "wQ1px34eGogvvKf8e8cVqRuED49a8-_mSAwsugQ3SAs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:05.996139"], ["updated_at", "2015-03-19 01:15:05.996139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6091703c-cdd5-11e4-9654-705681abff85' AND "clubhouse_memberships"."organization_id" = '609390d8-cdd5-11e4-8949-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6091703c-cdd5-11e4-9654-705681abff85"], ["organization_id", "609390d8-cdd5-11e4-8949-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:06.001397"], ["updated_at", "2015-03-19 01:15:06.001397"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60923eae-cdd5-11e4-bfff-705681abff85' AND "clubhouse_memberships"."organization_id" = '609390d8-cdd5-11e4-8949-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60923eae-cdd5-11e4-bfff-705681abff85"], ["organization_id", "609390d8-cdd5-11e4-8949-705681abff85"], ["created_at", "2015-03-19 01:15:06.007034"], ["updated_at", "2015-03-19 01:15:06.007034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/609390d8-cdd5-11e4-8949-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:15:06 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"609390d8-cdd5-11e4-8949-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:15:06.016054' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wQ1px34eGogvvKf8e8cVqRuED49a8-_mSAwsugQ3SAs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:15:06.019046"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:15:06.020878"], ["id", "6092c036-cdd5-11e4-9d23-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "609390d8-cdd5-11e4-8949-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6091703c-cdd5-11e4-9654-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6091703c-cdd5-11e4-9654-705681abff85' LIMIT 1 [["organization_id", "609390d8-cdd5-11e4-8949-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "609390d8-cdd5-11e4-8949-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "609390d8-cdd5-11e4-8949-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6091703c-cdd5-11e4-9654-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "609390d8-cdd5-11e4-8949-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60923eae-cdd5-11e4-bfff-705681abff85"]] Completed 200 OK in 27ms (Views: 9.0ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (4.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$w2dJ9fxZy5bARtHaw0YiLO8Tb9087905pBeiAH/dI6aIIJ4bBnnZe"], ["created_at", "2015-03-19 01:15:06.050719"], ["updated_at", "2015-03-19 01:15:06.050719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$vPftctOk5mRL6JZPUw..RujEBcyPNsJBJ1jCvN2FuZchWdmCBe2i2"], ["created_at", "2015-03-19 01:15:06.060020"], ["updated_at", "2015-03-19 01:15:06.060020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:06.062269"], ["user_id", "609beac6-cdd5-11e4-b962-705681abff85"], ["created_at", "2015-03-19 01:15:06.063227"], ["updated_at", "2015-03-19 01:15:06.063227"], ["token", "rFVJKpwNptIlLv52CjpIdgQOpXlDhLE3UQXcBFpCEBQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:06.067773"], ["updated_at", "2015-03-19 01:15:06.067773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '609beac6-cdd5-11e4-b962-705681abff85' AND "clubhouse_memberships"."organization_id" = '609e9ce4-cdd5-11e4-881d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "609beac6-cdd5-11e4-b962-705681abff85"], ["organization_id", "609e9ce4-cdd5-11e4-881d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:06.073501"], ["updated_at", "2015-03-19 01:15:06.073501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '609d59ec-cdd5-11e4-b17d-705681abff85' AND "clubhouse_memberships"."organization_id" = '609e9ce4-cdd5-11e4-881d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "609d59ec-cdd5-11e4-b17d-705681abff85"], ["organization_id", "609e9ce4-cdd5-11e4-881d-705681abff85"], ["created_at", "2015-03-19 01:15:06.076943"], ["updated_at", "2015-03-19 01:15:06.076943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:15:06 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$gKGrJ1C90EKKZkDaQcQQhetRzLwQU3nZPXxTE1fihsJOHHz0kFLha"], ["created_at", "2015-03-19 01:15:06.092758"], ["updated_at", "2015-03-19 01:15:06.092758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$F.orbc6ctndhg38w4IEjx.yeXmO.B/LyVG5ZQFTjfVmY.t5rFcXQ."], ["created_at", "2015-03-19 01:15:06.098265"], ["updated_at", "2015-03-19 01:15:06.098265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:15:06.100634"], ["user_id", "60a25884-cdd5-11e4-bab1-705681abff85"], ["created_at", "2015-03-19 01:15:06.101653"], ["updated_at", "2015-03-19 01:15:06.101653"], ["token", "_uXi26fQ2Uo-SAN3GhXfRSxxWnwKM5z1Bm56XHUebjc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:15:06.111987"], ["updated_at", "2015-03-19 01:15:06.111987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60a25884-cdd5-11e4-bab1-705681abff85' AND "clubhouse_memberships"."organization_id" = '60a53cde-cdd5-11e4-8dba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60a25884-cdd5-11e4-bab1-705681abff85"], ["organization_id", "60a53cde-cdd5-11e4-8dba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:15:06.116038"], ["updated_at", "2015-03-19 01:15:06.116038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60a3313c-cdd5-11e4-b4cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '60a53cde-cdd5-11e4-8dba-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60a3313c-cdd5-11e4-b4cb-705681abff85"], ["organization_id", "60a53cde-cdd5-11e4-8dba-705681abff85"], ["created_at", "2015-03-19 01:15:06.120088"], ["updated_at", "2015-03-19 01:15:06.120088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:15:06 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:15:06.127128' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_uXi26fQ2Uo-SAN3GhXfRSxxWnwKM5z1Bm56XHUebjc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:15:06.128982"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:15:06.130246"], ["id", "60a49842-cdd5-11e4-b823-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60a25884-cdd5-11e4-bab1-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '60a25884-cdd5-11e4-bab1-705681abff85' LIMIT 1 [["organization_id", "60a53cde-cdd5-11e4-8dba-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "60a53cde-cdd5-11e4-8dba-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60a53cde-cdd5-11e4-8dba-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60a25884-cdd5-11e4-bab1-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60a53cde-cdd5-11e4-8dba-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60a3313c-cdd5-11e4-b4cb-705681abff85"]] Completed 200 OK in 18ms (Views: 6.7ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (23.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$egaRJcEc5oozMVDkI4rD0ewgaL/yll14cQl5o40iX6PIJemu0ZNEm"], ["created_at", "2015-03-19 01:17:35.211454"], ["updated_at", "2015-03-19 01:17:35.211454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$NubEPFN4sNR29elxmsxj2eURy7pPD6yNPzznLWeYz16CUrCiyqCTq"], ["created_at", "2015-03-19 01:17:35.240307"], ["updated_at", "2015-03-19 01:17:35.240307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (10.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.282609"], ["user_id", "b987844c-cdd5-11e4-ad8e-705681abff85"], ["created_at", "2015-03-19 01:17:35.291676"], ["updated_at", "2015-03-19 01:17:35.291676"], ["token", "cDYJ1VLhTnq8MbiQ9lz6PfukdZbOHo3FxUUntkNxPdU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.310971"], ["updated_at", "2015-03-19 01:17:35.310971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b987844c-cdd5-11e4-ad8e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b99337ec-cdd5-11e4-b4da-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b987844c-cdd5-11e4-ad8e-705681abff85"], ["organization_id", "b99337ec-cdd5-11e4-b4da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.322184"], ["updated_at", "2015-03-19 01:17:35.322184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9886b64-cdd5-11e4-acdf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b99337ec-cdd5-11e4-b4da-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9886b64-cdd5-11e4-acdf-705681abff85"], ["organization_id", "b99337ec-cdd5-11e4-b4da-705681abff85"], ["created_at", "2015-03-19 01:17:35.326535"], ["updated_at", "2015-03-19 01:17:35.326535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/b994eef2-cdd5-11e4-b1bb-705681abff85" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"b994eef2-cdd5-11e4-b1bb-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:17:35.357772' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cDYJ1VLhTnq8MbiQ9lz6PfukdZbOHo3FxUUntkNxPdU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:17:35.366380"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:17:35.368190"], ["id", "b990543c-cdd5-11e4-89c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "b994eef2-cdd5-11e4-b1bb-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b987844c-cdd5-11e4-ad8e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b99337ec-cdd5-11e4-b4da-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b987844c-cdd5-11e4-ad8e-705681abff85' LIMIT 1 [["organization_id", "b99337ec-cdd5-11e4-b4da-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b987844c-cdd5-11e4-ad8e-705681abff85"]] Completed 200 OK in 38ms (Views: 5.1ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$xMCC8mcQTEVXlYPyR/WBCeDq8BIArfm5h6mZPsVC4yE5yI4I5Kuqq"], ["created_at", "2015-03-19 01:17:35.404192"], ["updated_at", "2015-03-19 01:17:35.404192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$.jwaC8wL.89siEv1MrUcvO7X/RLuInKk2Hk1ANvF2sQmyfmeF5TbS"], ["created_at", "2015-03-19 01:17:35.408774"], ["updated_at", "2015-03-19 01:17:35.408774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.410541"], ["user_id", "b9a16a24-cdd5-11e4-b8de-705681abff85"], ["created_at", "2015-03-19 01:17:35.411340"], ["updated_at", "2015-03-19 01:17:35.411340"], ["token", "pjqwaetubYbjWv3ReKVKssc5y0cq-vpM4DcQMpn4u6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.415773"], ["updated_at", "2015-03-19 01:17:35.415773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9a16a24-cdd5-11e4-b8de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9a32d78-cdd5-11e4-a048-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9a16a24-cdd5-11e4-b8de-705681abff85"], ["organization_id", "b9a32d78-cdd5-11e4-a048-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.419308"], ["updated_at", "2015-03-19 01:17:35.419308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9a21b0e-cdd5-11e4-8ce5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9a32d78-cdd5-11e4-a048-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9a21b0e-cdd5-11e4-8ce5-705681abff85"], ["organization_id", "b9a32d78-cdd5-11e4-a048-705681abff85"], ["created_at", "2015-03-19 01:17:35.422569"], ["updated_at", "2015-03-19 01:17:35.422569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$OndG9YmAQECcFsF1YwcleOnR.P7AeHA/U.F1RG3JbHlZmwuJQJUQ."], ["created_at", "2015-03-19 01:17:35.433369"], ["updated_at", "2015-03-19 01:17:35.433369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$8Nd6lNcoO.VR48loFcUg4uIiDalZrenuK07Z8cdjUAanEq0DyorP6"], ["created_at", "2015-03-19 01:17:35.438098"], ["updated_at", "2015-03-19 01:17:35.438098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.439691"], ["user_id", "b9a5de92-cdd5-11e4-9184-705681abff85"], ["created_at", "2015-03-19 01:17:35.440463"], ["updated_at", "2015-03-19 01:17:35.440463"], ["token", "qp_jGZ7mrOz-jydFz01qF4FI7vdQieNtDF1CJ25JFHI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.444013"], ["updated_at", "2015-03-19 01:17:35.444013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9a5de92-cdd5-11e4-9184-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9a77d74-cdd5-11e4-b951-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9a5de92-cdd5-11e4-9184-705681abff85"], ["organization_id", "b9a77d74-cdd5-11e4-b951-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.447389"], ["updated_at", "2015-03-19 01:17:35.447389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9a69526-cdd5-11e4-8bd8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9a77d74-cdd5-11e4-b951-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9a69526-cdd5-11e4-8bd8-705681abff85"], ["organization_id", "b9a77d74-cdd5-11e4-b951-705681abff85"], ["created_at", "2015-03-19 01:17:35.450465"], ["updated_at", "2015-03-19 01:17:35.450465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$paNBk3IGlHrPSLYCbq69y.OlJBomLv75phhdeps7VJfh1NTf6SniS"], ["created_at", "2015-03-19 01:17:35.454751"], ["updated_at", "2015-03-19 01:17:35.454751"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.457067"], ["user_id", "b9a91e72-cdd5-11e4-9933-705681abff85"], ["created_at", "2015-03-19 01:17:35.457988"], ["updated_at", "2015-03-19 01:17:35.457988"], ["token", "WRJ7I0eTRAjcNCCJwFesWkoK18l3z697mZPrqMmDOU0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'b9a77d74-cdd5-11e4-b951-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "b9a77d74-cdd5-11e4-b951-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.468377"], ["updated_at", "2015-03-19 01:17:35.468377"], ["token", "8FtEvCfpSzt8OjW9syebklwKo9B1F01jqvrRo4WYgNw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$QkTGoMwuFd1p7MfT9SVrIuUUGgDRxRN44tP/sbxB/R7SXtnPppkV6"], ["created_at", "2015-03-19 01:17:35.481365"], ["updated_at", "2015-03-19 01:17:35.481365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$xZTuef/Skxl2kLiu.8nyIOuQmyW3XGf6pT9Z/OL7nWiDZyGDATPqy"], ["created_at", "2015-03-19 01:17:35.485826"], ["updated_at", "2015-03-19 01:17:35.485826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.489666"], ["user_id", "b9ad302a-cdd5-11e4-8c43-705681abff85"], ["created_at", "2015-03-19 01:17:35.490525"], ["updated_at", "2015-03-19 01:17:35.490525"], ["token", "RJpmUmI2ScQK8JFX-oC5nSq6rO19BOHC2dXvmjUJpY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.494346"], ["updated_at", "2015-03-19 01:17:35.494346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ad302a-cdd5-11e4-8c43-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9af2b46-cdd5-11e4-a1cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9ad302a-cdd5-11e4-8c43-705681abff85"], ["organization_id", "b9af2b46-cdd5-11e4-a1cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.497756"], ["updated_at", "2015-03-19 01:17:35.497756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9addb9c-cdd5-11e4-a1be-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9af2b46-cdd5-11e4-a1cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9addb9c-cdd5-11e4-a1be-705681abff85"], ["organization_id", "b9af2b46-cdd5-11e4-a1cc-705681abff85"], ["created_at", "2015-03-19 01:17:35.500724"], ["updated_at", "2015-03-19 01:17:35.500724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$r0r1Jjkhm9PXjQlol/4WjORI3DLcFvV5w.XgYq.PaoCII0GtLFoKO"], ["created_at", "2015-03-19 01:17:35.505079"], ["updated_at", "2015-03-19 01:17:35.505079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.506701"], ["user_id", "b9b0ce92-cdd5-11e4-bca1-705681abff85"], ["created_at", "2015-03-19 01:17:35.507529"], ["updated_at", "2015-03-19 01:17:35.507529"], ["token", "slEufGcoUfSgHiX6FcFrjNuHWN70V-S7KK7mdUuGL3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'b9af2b46-cdd5-11e4-a1cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "b9af2b46-cdd5-11e4-a1cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.511691"], ["updated_at", "2015-03-19 01:17:35.511691"], ["token", "MvtNiTm8HGmRjn5xBaDQwuGbI-jx0ZdUGgDhIDxmp6U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:17:35.519687' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "slEufGcoUfSgHiX6FcFrjNuHWN70V-S7KK7mdUuGL3k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:17:35.521142"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:17:35.522135"], ["id", "b9b13a12-cdd5-11e4-8ae8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9b0ce92-cdd5-11e4-bca1-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$SJMRrbZ3N09WG3yyHidUm..nd2NoSKhaJpWMyXFGrVQufUfehu4cO"], ["created_at", "2015-03-19 01:17:35.536096"], ["updated_at", "2015-03-19 01:17:35.536096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$wtOR2Kh78oF22Yk7AD9Fj.LudPltbvNI/m8DtOB/asJMzCKoQ.aum"], ["created_at", "2015-03-19 01:17:35.540448"], ["updated_at", "2015-03-19 01:17:35.540448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.542117"], ["user_id", "b9b58b94-cdd5-11e4-89af-705681abff85"], ["created_at", "2015-03-19 01:17:35.542959"], ["updated_at", "2015-03-19 01:17:35.542959"], ["token", "oAFzQOUzm8dY0jSqT10DjOqg1xWnuAOT5kaheskFVcI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.546755"], ["updated_at", "2015-03-19 01:17:35.546755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9b58b94-cdd5-11e4-89af-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9b729cc-cdd5-11e4-82a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9b58b94-cdd5-11e4-89af-705681abff85"], ["organization_id", "b9b729cc-cdd5-11e4-82a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.550510"], ["updated_at", "2015-03-19 01:17:35.550510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9b63404-cdd5-11e4-8c57-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9b729cc-cdd5-11e4-82a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9b63404-cdd5-11e4-8c57-705681abff85"], ["organization_id", "b9b729cc-cdd5-11e4-82a8-705681abff85"], ["created_at", "2015-03-19 01:17:35.553842"], ["updated_at", "2015-03-19 01:17:35.553842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$7Ne.s3J9EEPt70YD6qyBMe9uYsoSnoRFaiQrnEXgSK8a5c3IsByMi"], ["created_at", "2015-03-19 01:17:35.558498"], ["updated_at", "2015-03-19 01:17:35.558498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.560349"], ["user_id", "b9b8f75c-cdd5-11e4-9dc7-705681abff85"], ["created_at", "2015-03-19 01:17:35.561271"], ["updated_at", "2015-03-19 01:17:35.561271"], ["token", "HtOve8n67dJbQ-7j4E_gQuReNZdMFNWxm2w2gMdPU8A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'b9b729cc-cdd5-11e4-82a8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "b9b729cc-cdd5-11e4-82a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.565393"], ["updated_at", "2015-03-19 01:17:35.565393"], ["token", "JS3osM0qdsP4dGoiOvIEe2PvfxQizF9cV4Lz-7TS7Wg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"JS3osM0qdsP4dGoiOvIEe2PvfxQizF9cV4Lz-7TS7Wg", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:17:35.571593' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HtOve8n67dJbQ-7j4E_gQuReNZdMFNWxm2w2gMdPU8A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:17:35.573303"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:17:35.574402"], ["id", "b9b96b56-cdd5-11e4-a472-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9b8f75c-cdd5-11e4-9dc7-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Oi9Ez4j6E5I/bwFSXRFoieM1/gpYmCngxt/47aLKFDOuUZwamm7Pi"], ["created_at", "2015-03-19 01:17:35.585236"], ["updated_at", "2015-03-19 01:17:35.585236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$VLEwhLj7Tonimd6tsGpiUeXr8RzqTc1/oqxNyu1QOfDTMhZJqDzRS"], ["created_at", "2015-03-19 01:17:35.589531"], ["updated_at", "2015-03-19 01:17:35.589531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.591089"], ["user_id", "b9bd0978-cdd5-11e4-bfb0-705681abff85"], ["created_at", "2015-03-19 01:17:35.591907"], ["updated_at", "2015-03-19 01:17:35.591907"], ["token", "PqgrDTxDo6cFZcfaxDFzI_D8qtlLRgIt01F8Mr6vgpg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.595365"], ["updated_at", "2015-03-19 01:17:35.595365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9bd0978-cdd5-11e4-bfb0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9be9c52-cdd5-11e4-a265-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9bd0978-cdd5-11e4-bfb0-705681abff85"], ["organization_id", "b9be9c52-cdd5-11e4-a265-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.599212"], ["updated_at", "2015-03-19 01:17:35.599212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9bdafae-cdd5-11e4-852c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9be9c52-cdd5-11e4-a265-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9bdafae-cdd5-11e4-852c-705681abff85"], ["organization_id", "b9be9c52-cdd5-11e4-a265-705681abff85"], ["created_at", "2015-03-19 01:17:35.602699"], ["updated_at", "2015-03-19 01:17:35.602699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/b9bfb376-cdd5-11e4-873a-705681abff85" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"b9bfb376-cdd5-11e4-873a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:17:35.608163' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PqgrDTxDo6cFZcfaxDFzI_D8qtlLRgIt01F8Mr6vgpg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:17:35.609629"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:17:35.610585"], ["id", "b9be1372-cdd5-11e4-be27-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "b9bfb376-cdd5-11e4-873a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9bd0978-cdd5-11e4-bfb0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9be9c52-cdd5-11e4-a265-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9bd0978-cdd5-11e4-bfb0-705681abff85' LIMIT 1 [["organization_id", "b9be9c52-cdd5-11e4-a265-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9bdafae-cdd5-11e4-852c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "b9bfb376-cdd5-11e4-873a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$PwlIoeSsX4C6w/CPGFPo8ulg20/68Hhsveg.mx.82WP.S0evJ0AOC"], ["created_at", "2015-03-19 01:17:35.715617"], ["updated_at", "2015-03-19 01:17:35.715617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$qOEuwuDqbre.PCZXDY1RCesuf/R1tmdSVmLYqeBn/U7kHc8xrSOTi"], ["created_at", "2015-03-19 01:17:35.722898"], ["updated_at", "2015-03-19 01:17:35.722898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.724928"], ["user_id", "b9d10ff4-cdd5-11e4-b9ac-705681abff85"], ["created_at", "2015-03-19 01:17:35.725819"], ["updated_at", "2015-03-19 01:17:35.725819"], ["token", "-_vPWaLTTQKvehbEX7Tuou2kbHRK2edc98bLdhYRlWQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.730195"], ["updated_at", "2015-03-19 01:17:35.730195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d10ff4-cdd5-11e4-b9ac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9d32d2a-cdd5-11e4-bff2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9d10ff4-cdd5-11e4-b9ac-705681abff85"], ["organization_id", "b9d32d2a-cdd5-11e4-bff2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.741920"], ["updated_at", "2015-03-19 01:17:35.741920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d21020-cdd5-11e4-99c0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9d32d2a-cdd5-11e4-bff2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9d21020-cdd5-11e4-99c0-705681abff85"], ["organization_id", "b9d32d2a-cdd5-11e4-bff2-705681abff85"], ["created_at", "2015-03-19 01:17:35.745299"], ["updated_at", "2015-03-19 01:17:35.745299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$sKoSvPsxE3PrABj8CJ3Ml.0NT2TMDCP22zAtYykm9JJ2O1jdLVtWy"], ["created_at", "2015-03-19 01:17:35.755361"], ["updated_at", "2015-03-19 01:17:35.755361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Mdy1238UgiaU44bnDxnKNupgpnSHdd43BAwsDZ78PpISuWg5gSZeO"], ["created_at", "2015-03-19 01:17:35.759867"], ["updated_at", "2015-03-19 01:17:35.759867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.761685"], ["user_id", "b9d6fed2-cdd5-11e4-9e11-705681abff85"], ["created_at", "2015-03-19 01:17:35.762504"], ["updated_at", "2015-03-19 01:17:35.762504"], ["token", "qebJktHDV7HSNUphanJRpEVC8ZUesRcsuMKB-XKQ8MM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.766175"], ["updated_at", "2015-03-19 01:17:35.766175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d6fed2-cdd5-11e4-9e11-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9d8a386-cdd5-11e4-b330-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9d6fed2-cdd5-11e4-9e11-705681abff85"], ["organization_id", "b9d8a386-cdd5-11e4-b330-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.769476"], ["updated_at", "2015-03-19 01:17:35.769476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d7ac42-cdd5-11e4-9a79-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9d8a386-cdd5-11e4-b330-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9d7ac42-cdd5-11e4-9a79-705681abff85"], ["organization_id", "b9d8a386-cdd5-11e4-b330-705681abff85"], ["created_at", "2015-03-19 01:17:35.772810"], ["updated_at", "2015-03-19 01:17:35.772810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/b9d8a386-cdd5-11e4-b330-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"b9d8a386-cdd5-11e4-b330-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:17:35.777384' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qebJktHDV7HSNUphanJRpEVC8ZUesRcsuMKB-XKQ8MM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:17:35.778791"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:17:35.779777"], ["id", "b9d81cc2-cdd5-11e4-9678-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b9d8a386-cdd5-11e4-b330-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9d6fed2-cdd5-11e4-9e11-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b9d6fed2-cdd5-11e4-9e11-705681abff85' LIMIT 1 [["organization_id", "b9d8a386-cdd5-11e4-b330-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "b9d8a386-cdd5-11e4-b330-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9d8a386-cdd5-11e4-b330-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9d6fed2-cdd5-11e4-9e11-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9d8a386-cdd5-11e4-b330-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9d7ac42-cdd5-11e4-9a79-705681abff85"]] Completed 200 OK in 14ms (Views: 5.0ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$jHgp2r4rfb8ytpPrXhJEzebKzIYdl7ZYEVkw243SiVO6GOMiC0wvq"], ["created_at", "2015-03-19 01:17:35.799389"], ["updated_at", "2015-03-19 01:17:35.799389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$4GyiDCURWjl/7ouvUQbfAOxKCMAipRvTu/8wlQu/Pclv.PAZPq6oC"], ["created_at", "2015-03-19 01:17:35.805485"], ["updated_at", "2015-03-19 01:17:35.805485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.807450"], ["user_id", "b9ddb678-cdd5-11e4-848d-705681abff85"], ["created_at", "2015-03-19 01:17:35.808278"], ["updated_at", "2015-03-19 01:17:35.808278"], ["token", "zkWcEVHvrEQZYj1hyNnDRgVo3W6JLFBkT1aqL7w333s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.811673"], ["updated_at", "2015-03-19 01:17:35.811673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ddb678-cdd5-11e4-848d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9df9560-cdd5-11e4-8ec0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9ddb678-cdd5-11e4-848d-705681abff85"], ["organization_id", "b9df9560-cdd5-11e4-8ec0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.815112"], ["updated_at", "2015-03-19 01:17:35.815112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9deac68-cdd5-11e4-90b4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9df9560-cdd5-11e4-8ec0-705681abff85') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9deac68-cdd5-11e4-90b4-705681abff85"], ["organization_id", "b9df9560-cdd5-11e4-8ec0-705681abff85"], ["created_at", "2015-03-19 01:17:35.818088"], ["updated_at", "2015-03-19 01:17:35.818088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$rmqOjWK0Y.OGU0jREf31Z.GUwANaJ0ln86uWhHO9r4lMCpv7rPGv."], ["created_at", "2015-03-19 01:17:35.829647"], ["updated_at", "2015-03-19 01:17:35.829647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$8tu77.YOpZsnWLGRuh4KB.a2IhsLb6rp8EScYRpXTJCYu3NNNP7Eq"], ["created_at", "2015-03-19 01:17:35.834666"], ["updated_at", "2015-03-19 01:17:35.834666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.836184"], ["user_id", "b9e26736-cdd5-11e4-8ea2-705681abff85"], ["created_at", "2015-03-19 01:17:35.836959"], ["updated_at", "2015-03-19 01:17:35.836959"], ["token", "JYATguhmZJPE7IB5jfPKQYtcilONV-l6aPVtVC5syR0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.840557"], ["updated_at", "2015-03-19 01:17:35.840557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9e26736-cdd5-11e4-8ea2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9e3fcc2-cdd5-11e4-ac7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9e26736-cdd5-11e4-8ea2-705681abff85"], ["organization_id", "b9e3fcc2-cdd5-11e4-ac7a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.843880"], ["updated_at", "2015-03-19 01:17:35.843880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9e3162c-cdd5-11e4-ae66-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9e3fcc2-cdd5-11e4-ac7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9e3162c-cdd5-11e4-ae66-705681abff85"], ["organization_id", "b9e3fcc2-cdd5-11e4-ac7a-705681abff85"], ["created_at", "2015-03-19 01:17:35.847161"], ["updated_at", "2015-03-19 01:17:35.847161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:17:35.851642' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JYATguhmZJPE7IB5jfPKQYtcilONV-l6aPVtVC5syR0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:17:35.853742"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:17:35.854670"], ["id", "b9e37734-cdd5-11e4-be15-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9e26736-cdd5-11e4-8ea2-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b9e26736-cdd5-11e4-8ea2-705681abff85' LIMIT 1 [["organization_id", "b9e3fcc2-cdd5-11e4-ac7a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "b9e3fcc2-cdd5-11e4-ac7a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9e3fcc2-cdd5-11e4-ac7a-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9e26736-cdd5-11e4-8ea2-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9e3fcc2-cdd5-11e4-ac7a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9e3162c-cdd5-11e4-ae66-705681abff85"]] Completed 200 OK in 13ms (Views: 4.3ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$yh6Gqt2BlMC5KYFLREDthOVWeb.RWx6K1XZUorXU4087W0YTlOeCy"], ["created_at", "2015-03-19 01:17:35.871291"], ["updated_at", "2015-03-19 01:17:35.871291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$b9eZ7rKw1r9RqfWxvOlJUun0pK0OUYd0fefHzrwMtb0.KeRhPD3nC"], ["created_at", "2015-03-19 01:17:35.876078"], ["updated_at", "2015-03-19 01:17:35.876078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.877654"], ["user_id", "b9e8b30c-cdd5-11e4-946d-705681abff85"], ["created_at", "2015-03-19 01:17:35.878538"], ["updated_at", "2015-03-19 01:17:35.878538"], ["token", "bBCRLTjBgWLqrW0k51X10Zg2aMRaQbrEgS56mH8C1mg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.882789"], ["updated_at", "2015-03-19 01:17:35.882789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9e8b30c-cdd5-11e4-946d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ea70f2-cdd5-11e4-93b1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9e8b30c-cdd5-11e4-946d-705681abff85"], ["organization_id", "b9ea70f2-cdd5-11e4-93b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.886832"], ["updated_at", "2015-03-19 01:17:35.886832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9e96928-cdd5-11e4-ad9c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ea70f2-cdd5-11e4-93b1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9e96928-cdd5-11e4-ad9c-705681abff85"], ["organization_id", "b9ea70f2-cdd5-11e4-93b1-705681abff85"], ["created_at", "2015-03-19 01:17:35.890578"], ["updated_at", "2015-03-19 01:17:35.890578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$zy3e0Oejsj9GjJauAAbCqeh0OBd4KrWhm48XbVbDFtpK2dE1P16Ny"], ["created_at", "2015-03-19 01:17:35.902393"], ["updated_at", "2015-03-19 01:17:35.902393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$TlwrcQ6FwFRifVMu8Q/wBu08MyoOMZ5yrqlO5rkMCYAmUjwlG1/0i"], ["created_at", "2015-03-19 01:17:35.907133"], ["updated_at", "2015-03-19 01:17:35.907133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.908745"], ["user_id", "b9ed74a0-cdd5-11e4-b756-705681abff85"], ["created_at", "2015-03-19 01:17:35.909540"], ["updated_at", "2015-03-19 01:17:35.909540"], ["token", "ZSVmfzl7VBKbvpvT7skV-vJxs9SjSasatT1QWZJeFzc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.913108"], ["updated_at", "2015-03-19 01:17:35.913108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ed74a0-cdd5-11e4-b756-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ef1422-cdd5-11e4-a870-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9ed74a0-cdd5-11e4-b756-705681abff85"], ["organization_id", "b9ef1422-cdd5-11e4-a870-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.917395"], ["updated_at", "2015-03-19 01:17:35.917395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ee24f4-cdd5-11e4-bacf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ef1422-cdd5-11e4-a870-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9ee24f4-cdd5-11e4-bacf-705681abff85"], ["organization_id", "b9ef1422-cdd5-11e4-a870-705681abff85"], ["created_at", "2015-03-19 01:17:35.921958"], ["updated_at", "2015-03-19 01:17:35.921958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/b9f078f8-cdd5-11e4-8606-705681abff85" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"b9f078f8-cdd5-11e4-8606-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:17:35.933728' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZSVmfzl7VBKbvpvT7skV-vJxs9SjSasatT1QWZJeFzc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:17:35.935517"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:17:35.936600"], ["id", "b9ee8ca0-cdd5-11e4-8c93-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "b9f078f8-cdd5-11e4-8606-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9ed74a0-cdd5-11e4-b756-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9ef1422-cdd5-11e4-a870-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9ed74a0-cdd5-11e4-b756-705681abff85' LIMIT 1 [["organization_id", "b9ef1422-cdd5-11e4-a870-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9ee24f4-cdd5-11e4-bacf-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ee24f4-cdd5-11e4-bacf-705681abff85' AND "clubhouse_memberships"."id" != 'b9f078f8-cdd5-11e4-8606-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ef1422-cdd5-11e4-a870-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:17:35.948775"], ["id", "b9f078f8-cdd5-11e4-8606-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.6ms | ActiveRecord: 4.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$VHauexuV56P8r0g8Uluc5OUOExMD/DkfxnbB4W/ueqvVFAsFa.3Im"], ["created_at", "2015-03-19 01:17:35.960641"], ["updated_at", "2015-03-19 01:17:35.960641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$j92q2V7hUKcJOUM/jv3XLunJ/bHxWUSO01VSyVwkS.x/2xWSiKoEe"], ["created_at", "2015-03-19 01:17:35.965515"], ["updated_at", "2015-03-19 01:17:35.965515"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:35.968161"], ["user_id", "b9f65962-cdd5-11e4-9ffd-705681abff85"], ["created_at", "2015-03-19 01:17:35.969780"], ["updated_at", "2015-03-19 01:17:35.969780"], ["token", "GXKKWBL7YxwS9jyavV3wloSA4wcpWhk36m0h-S7KGZM"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:35.980440"], ["updated_at", "2015-03-19 01:17:35.980440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f65962-cdd5-11e4-9ffd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f97a3e-cdd5-11e4-bba6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9f65962-cdd5-11e4-9ffd-705681abff85"], ["organization_id", "b9f97a3e-cdd5-11e4-bba6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:35.987764"], ["updated_at", "2015-03-19 01:17:35.987764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f714ce-cdd5-11e4-a31b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f97a3e-cdd5-11e4-bba6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9f714ce-cdd5-11e4-a31b-705681abff85"], ["organization_id", "b9f97a3e-cdd5-11e4-bba6-705681abff85"], ["created_at", "2015-03-19 01:17:35.992788"], ["updated_at", "2015-03-19 01:17:35.992788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 18:17:35 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$RRu6cnggMFmUyCSb7KucB.Vm0EB0NC.Nl/C7XQc26A0oVWOeW97Zm"], ["created_at", "2015-03-19 01:17:36.003663"], ["updated_at", "2015-03-19 01:17:36.003663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$2LrYmOa6B3HKemiOR.FHK.OAKoxSRxIVNSaNnd7BjrFhQwB3cAF62"], ["created_at", "2015-03-19 01:17:36.007921"], ["updated_at", "2015-03-19 01:17:36.007921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:36.009408"], ["user_id", "b9fce2e6-cdd5-11e4-80c0-705681abff85"], ["created_at", "2015-03-19 01:17:36.010222"], ["updated_at", "2015-03-19 01:17:36.010222"], ["token", "-HedgfOP8MWNay-BCGS_4ko6rhMirtEytnsYqH-JK_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:36.013833"], ["updated_at", "2015-03-19 01:17:36.013833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9fce2e6-cdd5-11e4-80c0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9fe7746-cdd5-11e4-a44b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9fce2e6-cdd5-11e4-80c0-705681abff85"], ["organization_id", "b9fe7746-cdd5-11e4-a44b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:36.018329"], ["updated_at", "2015-03-19 01:17:36.018329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9fd8598-cdd5-11e4-a276-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9fe7746-cdd5-11e4-a44b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9fd8598-cdd5-11e4-a276-705681abff85"], ["organization_id", "b9fe7746-cdd5-11e4-a44b-705681abff85"], ["created_at", "2015-03-19 01:17:36.021561"], ["updated_at", "2015-03-19 01:17:36.021561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$XFNdPgFft9p4nbhxcUtvzujmaXYmxVF5wkcBJ.NcdrLqQSHYe7Lvq"], ["created_at", "2015-03-19 01:17:36.026005"], ["updated_at", "2015-03-19 01:17:36.026005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:36.027569"], ["user_id", "ba0049c2-cdd5-11e4-98a6-705681abff85"], ["created_at", "2015-03-19 01:17:36.028366"], ["updated_at", "2015-03-19 01:17:36.028366"], ["token", "dE-waWxfggvCdNSGr3WbKAIEFjgCDxmNfPlwsfiWxIc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'b9fe7746-cdd5-11e4-a44b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "b9fe7746-cdd5-11e4-a44b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:36.032035"], ["updated_at", "2015-03-19 01:17:36.032035"], ["token", "tzfXT-8XtUaPlZFErB3kK2030ZIh9BT9YWkzIq82wJU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:17:36 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$T9GzW1QsEKCMDYQoi5VQ7eDKa863K4PtAQ4SGZaZ3PFVnI9cjkclu"], ["created_at", "2015-03-19 01:17:36.042792"], ["updated_at", "2015-03-19 01:17:36.042792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$t70T34HeHMYokrGUw4mkqu1pGEyA1MG.epxsGtr8wc4gsqx9BjTAi"], ["created_at", "2015-03-19 01:17:36.047427"], ["updated_at", "2015-03-19 01:17:36.047427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:36.049020"], ["user_id", "ba02dcb4-cdd5-11e4-bd9f-705681abff85"], ["created_at", "2015-03-19 01:17:36.050070"], ["updated_at", "2015-03-19 01:17:36.050070"], ["token", "MULYvUFf5356EcnIJD2S4JOS8udX51LHGUeC3cMiOB8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:36.053678"], ["updated_at", "2015-03-19 01:17:36.053678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba02dcb4-cdd5-11e4-bd9f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba048352-cdd5-11e4-b02b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba02dcb4-cdd5-11e4-bd9f-705681abff85"], ["organization_id", "ba048352-cdd5-11e4-b02b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:36.057137"], ["updated_at", "2015-03-19 01:17:36.057137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba038dbc-cdd5-11e4-93f9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba048352-cdd5-11e4-b02b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba038dbc-cdd5-11e4-93f9-705681abff85"], ["organization_id", "ba048352-cdd5-11e4-b02b-705681abff85"], ["created_at", "2015-03-19 01:17:36.060351"], ["updated_at", "2015-03-19 01:17:36.060351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$cZeLLIzUGp1XzUSjocZwNOpQZt1.dpknpaEDd.11RNlFTKwqYulPW"], ["created_at", "2015-03-19 01:17:36.064741"], ["updated_at", "2015-03-19 01:17:36.064741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:36.066279"], ["user_id", "ba0631fc-cdd5-11e4-bd75-705681abff85"], ["created_at", "2015-03-19 01:17:36.067090"], ["updated_at", "2015-03-19 01:17:36.067090"], ["token", "uo08XvTXJ16gnlh2jCDiPUGNrvnkJooijeRkV1oAbBE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'ba048352-cdd5-11e4-b02b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "ba048352-cdd5-11e4-b02b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:36.071409"], ["updated_at", "2015-03-19 01:17:36.071409"], ["token", "YNz04nQ4qSXVzkRI_W4R7kCtjJi9Icq-oWi0Iwi9624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ba048352-cdd5-11e4-b02b-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:17:36 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"ba048352-cdd5-11e4-b02b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:17:36.077607' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uo08XvTXJ16gnlh2jCDiPUGNrvnkJooijeRkV1oAbBE"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:17:36.079384"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:17:36.081505"], ["id", "ba06950c-cdd5-11e4-bbc3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba048352-cdd5-11e4-b02b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba0631fc-cdd5-11e4-bd75-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$nCSDNXMm5Wb6tV8THXegt.ItF6zMivyFcgU3wkxZFy.8zN9YX/TNm"], ["created_at", "2015-03-19 01:17:36.092892"], ["updated_at", "2015-03-19 01:17:36.092892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$eikseOP9UvbS4er4cGCGT.PyhnqCChacRL3TBCARkn47u4ooxqg0q"], ["created_at", "2015-03-19 01:17:36.097715"], ["updated_at", "2015-03-19 01:17:36.097715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:36.100228"], ["user_id", "ba0a8126-cdd5-11e4-9a92-705681abff85"], ["created_at", "2015-03-19 01:17:36.101311"], ["updated_at", "2015-03-19 01:17:36.101311"], ["token", "PFidLRWgI1rQYuHeCaLwJa93gaDybkg-RShJ3aZfLqQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:17:36.108348"], ["updated_at", "2015-03-19 01:17:36.108348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba0a8126-cdd5-11e4-9a92-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba0ce6aa-cdd5-11e4-9aab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba0a8126-cdd5-11e4-9a92-705681abff85"], ["organization_id", "ba0ce6aa-cdd5-11e4-9aab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:36.112235"], ["updated_at", "2015-03-19 01:17:36.112235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba0b4638-cdd5-11e4-a958-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba0ce6aa-cdd5-11e4-9aab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba0b4638-cdd5-11e4-a958-705681abff85"], ["organization_id", "ba0ce6aa-cdd5-11e4-9aab-705681abff85"], ["created_at", "2015-03-19 01:17:36.115604"], ["updated_at", "2015-03-19 01:17:36.115604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$WMBPH.UPd/3.nV6TRGvd9.NIqDeFBv1rfuL.qo2wsXI2T3srefeuS"], ["created_at", "2015-03-19 01:17:36.126205"], ["updated_at", "2015-03-19 01:17:36.126205"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:17:36.130326"], ["user_id", "ba0f9d0a-cdd5-11e4-b10e-705681abff85"], ["created_at", "2015-03-19 01:17:36.131188"], ["updated_at", "2015-03-19 01:17:36.131188"], ["token", "GTcCZM2irkaL58So3QBixtmRUtiNm3vSy9Dr1ZsE-wY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'ba0ce6aa-cdd5-11e4-9aab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "ba0ce6aa-cdd5-11e4-9aab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:17:36.135965"], ["updated_at", "2015-03-19 01:17:36.135965"], ["token", "AutLnzTVj8cF8B48U4lKIkINkbFqO4oi5Kh30ZKDUJY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ba0ce6aa-cdd5-11e4-9aab-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:17:36 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"AutLnzTVj8cF8B48U4lKIkINkbFqO4oi5Kh30ZKDUJY", "organization_id"=>"ba0ce6aa-cdd5-11e4-9aab-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:17:36.140978' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GTcCZM2irkaL58So3QBixtmRUtiNm3vSy9Dr1ZsE-wY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:17:36.142871"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:17:36.144032"], ["id", "ba106622-cdd5-11e4-abd5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba0ce6aa-cdd5-11e4-9aab-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba0f9d0a-cdd5-11e4-b10e-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" IS NULL LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (26.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$dsPm8uOBMUZZtcg8kqoRMuX52qDqGAySWyXFaP41IcDZP/QxN1y.a"], ["created_at", "2015-03-19 01:42:04.478350"], ["updated_at", "2015-03-19 01:42:04.478350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$mTXMwAFevYdCau6V4.uasuYZQOiVYr1Q3YbVEiTv0HhBMpG31RmqW"], ["created_at", "2015-03-19 01:42:04.510232"], ["updated_at", "2015-03-19 01:42:04.510232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:04.550021"], ["user_id", "25484dbc-cdd9-11e4-9720-705681abff85"], ["created_at", "2015-03-19 01:42:04.556892"], ["updated_at", "2015-03-19 01:42:04.556892"], ["token", "6usybHl1bN3PnYNkh3m18Su0nJ4FLLUQQvdynB4F-DU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (6.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:04.567331"], ["updated_at", "2015-03-19 01:42:04.567331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25484dbc-cdd9-11e4-9720-705681abff85' AND "clubhouse_memberships"."organization_id" = '2551f600-cdd9-11e4-9266-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25484dbc-cdd9-11e4-9720-705681abff85"], ["organization_id", "2551f600-cdd9-11e4-9266-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:04.586164"], ["updated_at", "2015-03-19 01:42:04.586164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '254937ae-cdd9-11e4-9890-705681abff85' AND "clubhouse_memberships"."organization_id" = '2551f600-cdd9-11e4-9266-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "254937ae-cdd9-11e4-9890-705681abff85"], ["organization_id", "2551f600-cdd9-11e4-9266-705681abff85"], ["created_at", "2015-03-19 01:42:04.590062"], ["updated_at", "2015-03-19 01:42:04.590062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 18:42:04 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Z4c.Y0pCc5nwwxpilaCu.uAhJR0Zy2EJNsrksg05UwstbDXFhwkAq"], ["created_at", "2015-03-19 01:42:04.689577"], ["updated_at", "2015-03-19 01:42:04.689577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$wmn51DqseWX7fALIZbR3dejddFdhceG5AWkb9/ej6ZEgtFswCHaCq"], ["created_at", "2015-03-19 01:42:04.697361"], ["updated_at", "2015-03-19 01:42:04.697361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:04.699575"], ["user_id", "2564976a-cdd9-11e4-8f84-705681abff85"], ["created_at", "2015-03-19 01:42:04.700375"], ["updated_at", "2015-03-19 01:42:04.700375"], ["token", "vMeQ40x85ahgs31V1VzK7yn1W7ETHUYcLnhgS8QeL3o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:04.706745"], ["updated_at", "2015-03-19 01:42:04.706745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2564976a-cdd9-11e4-8f84-705681abff85' AND "clubhouse_memberships"."organization_id" = '25673dee-cdd9-11e4-a761-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2564976a-cdd9-11e4-8f84-705681abff85"], ["organization_id", "25673dee-cdd9-11e4-a761-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:04.711075"], ["updated_at", "2015-03-19 01:42:04.711075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2565d490-cdd9-11e4-b584-705681abff85' AND "clubhouse_memberships"."organization_id" = '25673dee-cdd9-11e4-a761-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2565d490-cdd9-11e4-b584-705681abff85"], ["organization_id", "25673dee-cdd9-11e4-a761-705681abff85"], ["created_at", "2015-03-19 01:42:04.716958"], ["updated_at", "2015-03-19 01:42:04.716958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/2568c0c4-cdd9-11e4-9dc0-705681abff85" for 127.0.0.1 at 2015-03-18 18:42:04 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"2568c0c4-cdd9-11e4-9dc0-705681abff85", "membership"=>{}} Pollett::Session Load (1.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:04.722857' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vMeQ40x85ahgs31V1VzK7yn1W7ETHUYcLnhgS8QeL3o"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:04.732128"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:04.734289"], ["id", "256651ae-cdd9-11e4-9fba-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "2568c0c4-cdd9-11e4-9dc0-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2564976a-cdd9-11e4-8f84-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "25673dee-cdd9-11e4-a761-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2564976a-cdd9-11e4-8f84-705681abff85' LIMIT 1 [["organization_id", "25673dee-cdd9-11e4-a761-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2565d490-cdd9-11e4-b584-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "2568c0c4-cdd9-11e4-9dc0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 40ms (ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$2N8xeZRcP0Sv4V71mekUkOR3i7RJYW1sOZmG8PSmbtBBA21CG69Um"], ["created_at", "2015-03-19 01:42:04.771892"], ["updated_at", "2015-03-19 01:42:04.771892"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$GhbnQi1opf9XNDP9H9zUce773SgMILpKU8GsaPDw70MwXFm4nXeE2"], ["created_at", "2015-03-19 01:42:04.780705"], ["updated_at", "2015-03-19 01:42:04.780705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:04.782801"], ["user_id", "25713bc8-cdd9-11e4-8280-705681abff85"], ["created_at", "2015-03-19 01:42:04.783637"], ["updated_at", "2015-03-19 01:42:04.783637"], ["token", "YRrXgN5ubA-YEWFmLyamgHED-LBe0FiNAwO-nO8yhV4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:04.787594"], ["updated_at", "2015-03-19 01:42:04.787594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25713bc8-cdd9-11e4-8280-705681abff85' AND "clubhouse_memberships"."organization_id" = '25738a2c-cdd9-11e4-b761-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25713bc8-cdd9-11e4-8280-705681abff85"], ["organization_id", "25738a2c-cdd9-11e4-b761-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:04.791688"], ["updated_at", "2015-03-19 01:42:04.791688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25727ede-cdd9-11e4-914b-705681abff85' AND "clubhouse_memberships"."organization_id" = '25738a2c-cdd9-11e4-b761-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25727ede-cdd9-11e4-914b-705681abff85"], ["organization_id", "25738a2c-cdd9-11e4-b761-705681abff85"], ["created_at", "2015-03-19 01:42:04.795458"], ["updated_at", "2015-03-19 01:42:04.795458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 18:42:04 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 8ms  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$..ExhKeRjppdWpGujoqL9.RQaQS8JWtcBIBfy9/OlJfpUImoaMpLm"], ["created_at", "2015-03-19 01:42:04.818720"], ["updated_at", "2015-03-19 01:42:04.818720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$TBO8LiKG8yy5C31S7jgV.ewmPt6aeZN4WglOY8AG39897X8UWejs6"], ["created_at", "2015-03-19 01:42:04.824744"], ["updated_at", "2015-03-19 01:42:04.824744"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:04.827881"], ["user_id", "25784eea-cdd9-11e4-8436-705681abff85"], ["created_at", "2015-03-19 01:42:04.829528"], ["updated_at", "2015-03-19 01:42:04.829528"], ["token", "27yZ4omAuNFsZXbXO4m-04K15MQInoxYj_rV-QSv64M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:04.836070"], ["updated_at", "2015-03-19 01:42:04.836070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25784eea-cdd9-11e4-8436-705681abff85' AND "clubhouse_memberships"."organization_id" = '257af1fe-cdd9-11e4-b76f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25784eea-cdd9-11e4-8436-705681abff85"], ["organization_id", "257af1fe-cdd9-11e4-b76f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:04.840305"], ["updated_at", "2015-03-19 01:42:04.840305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '257947fa-cdd9-11e4-871a-705681abff85' AND "clubhouse_memberships"."organization_id" = '257af1fe-cdd9-11e4-b76f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "257947fa-cdd9-11e4-871a-705681abff85"], ["organization_id", "257af1fe-cdd9-11e4-b76f-705681abff85"], ["created_at", "2015-03-19 01:42:04.846291"], ["updated_at", "2015-03-19 01:42:04.846291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/257b9e60-cdd9-11e4-95d1-705681abff85" for 127.0.0.1 at 2015-03-18 18:42:04 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"257b9e60-cdd9-11e4-95d1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:04.862035' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "27yZ4omAuNFsZXbXO4m-04K15MQInoxYj_rV-QSv64M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:04.864338"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:04.865502"], ["id", "257a0e7e-cdd9-11e4-8cd0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "257b9e60-cdd9-11e4-95d1-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25784eea-cdd9-11e4-8436-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "257af1fe-cdd9-11e4-b76f-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '25784eea-cdd9-11e4-8436-705681abff85' LIMIT 1 [["organization_id", "257af1fe-cdd9-11e4-b76f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25784eea-cdd9-11e4-8436-705681abff85"]] Completed 200 OK in 15ms (Views: 5.5ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (16.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$xTA7yqilnWhOxBWTxQkvyuUJvLpoAUpJZVKnazsrHvrXdyspexM6i"], ["created_at", "2015-03-19 01:42:04.885108"], ["updated_at", "2015-03-19 01:42:04.885108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$frnNmkdksa9LcC056a8Dsuo/41qV4ho4XZYIfPDqLTSxb4m46WSCe"], ["created_at", "2015-03-19 01:42:04.906293"], ["updated_at", "2015-03-19 01:42:04.906293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:04.908296"], ["user_id", "258267ea-cdd9-11e4-97fa-705681abff85"], ["created_at", "2015-03-19 01:42:04.909370"], ["updated_at", "2015-03-19 01:42:04.909370"], ["token", "01J1GESVKL00Uo2dbxsRnPt3vkr8X5xGxATKoCa_i4Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:04.914704"], ["updated_at", "2015-03-19 01:42:04.914704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '258267ea-cdd9-11e4-97fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '2586fb84-cdd9-11e4-85aa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "258267ea-cdd9-11e4-97fa-705681abff85"], ["organization_id", "2586fb84-cdd9-11e4-85aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:04.919587"], ["updated_at", "2015-03-19 01:42:04.919587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2585a5ea-cdd9-11e4-824e-705681abff85' AND "clubhouse_memberships"."organization_id" = '2586fb84-cdd9-11e4-85aa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2585a5ea-cdd9-11e4-824e-705681abff85"], ["organization_id", "2586fb84-cdd9-11e4-85aa-705681abff85"], ["created_at", "2015-03-19 01:42:04.923158"], ["updated_at", "2015-03-19 01:42:04.923158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:42:04 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$AKPwTQusQhnSfrrZtYFLtusjNeu03c5b69kOA15p9rdsGfhTgJ9ci"], ["created_at", "2015-03-19 01:42:04.934964"], ["updated_at", "2015-03-19 01:42:04.934964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$GbcyjHhq7DYZNGadF6lJFuh6H9nVS0EwI5/FvrHbUNue1dJPHMvHu"], ["created_at", "2015-03-19 01:42:04.941211"], ["updated_at", "2015-03-19 01:42:04.941211"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:04.943813"], ["user_id", "258a15f8-cdd9-11e4-bcc6-705681abff85"], ["created_at", "2015-03-19 01:42:04.944810"], ["updated_at", "2015-03-19 01:42:04.944810"], ["token", "MEs6kmn38rvkbvJ37uezXTv6l8PCK3XY9xkG-oguBHk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:04.948946"], ["updated_at", "2015-03-19 01:42:04.948946"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '258a15f8-cdd9-11e4-bcc6-705681abff85' AND "clubhouse_memberships"."organization_id" = '258c2ac8-cdd9-11e4-9eb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "258a15f8-cdd9-11e4-bcc6-705681abff85"], ["organization_id", "258c2ac8-cdd9-11e4-9eb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:04.952887"], ["updated_at", "2015-03-19 01:42:04.952887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '258b065c-cdd9-11e4-9cfe-705681abff85' AND "clubhouse_memberships"."organization_id" = '258c2ac8-cdd9-11e4-9eb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "258b065c-cdd9-11e4-9cfe-705681abff85"], ["organization_id", "258c2ac8-cdd9-11e4-9eb1-705681abff85"], ["created_at", "2015-03-19 01:42:04.956696"], ["updated_at", "2015-03-19 01:42:04.956696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/258c2ac8-cdd9-11e4-9eb1-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:42:04 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"258c2ac8-cdd9-11e4-9eb1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:04.962727' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MEs6kmn38rvkbvJ37uezXTv6l8PCK3XY9xkG-oguBHk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:04.964423"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:04.965709"], ["id", "258b907c-cdd9-11e4-aa4b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "258c2ac8-cdd9-11e4-9eb1-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "258a15f8-cdd9-11e4-bcc6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '258a15f8-cdd9-11e4-bcc6-705681abff85' LIMIT 1 [["organization_id", "258c2ac8-cdd9-11e4-9eb1-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "258c2ac8-cdd9-11e4-9eb1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "258c2ac8-cdd9-11e4-9eb1-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "258a15f8-cdd9-11e4-bcc6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "258c2ac8-cdd9-11e4-9eb1-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "258b065c-cdd9-11e4-9cfe-705681abff85"]] Completed 200 OK in 17ms (Views: 5.5ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$.evedmgQovuPYPcnNfxy6OiyAl0Wml0NexgRbX/Vb/Vr9vQVcgBfi"], ["created_at", "2015-03-19 01:42:04.991213"], ["updated_at", "2015-03-19 01:42:04.991213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$W5OYbOk/jqQ/goLAk1E4sOEkIJBlMINiwCucKM/oyiGNftsWAxAIu"], ["created_at", "2015-03-19 01:42:04.997441"], ["updated_at", "2015-03-19 01:42:04.997441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:04.999175"], ["user_id", "2592b384-cdd9-11e4-8c26-705681abff85"], ["created_at", "2015-03-19 01:42:05.000377"], ["updated_at", "2015-03-19 01:42:05.000377"], ["token", "v_62CfdVCtjpmwVg0J1cZL5z_iUa22AJ7SxO_CXBrlQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:05.007664"], ["updated_at", "2015-03-19 01:42:05.007664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2592b384-cdd9-11e4-8c26-705681abff85' AND "clubhouse_memberships"."organization_id" = '25953744-cdd9-11e4-bd6f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2592b384-cdd9-11e4-8c26-705681abff85"], ["organization_id", "25953744-cdd9-11e4-bd6f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.012522"], ["updated_at", "2015-03-19 01:42:05.012522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25938d0e-cdd9-11e4-bc7a-705681abff85' AND "clubhouse_memberships"."organization_id" = '25953744-cdd9-11e4-bd6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25938d0e-cdd9-11e4-bc7a-705681abff85"], ["organization_id", "25953744-cdd9-11e4-bd6f-705681abff85"], ["created_at", "2015-03-19 01:42:05.016527"], ["updated_at", "2015-03-19 01:42:05.016527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$hhBpc8d7bOk931T8A.xrC.n0vrYv3fm.SpGWTrIfNLSSGK2ywrdFS"], ["created_at", "2015-03-19 01:42:05.021664"], ["updated_at", "2015-03-19 01:42:05.021664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.023680"], ["user_id", "259748d6-cdd9-11e4-838f-705681abff85"], ["created_at", "2015-03-19 01:42:05.024727"], ["updated_at", "2015-03-19 01:42:05.024727"], ["token", "U87egDy2sU9EBwfL38lvDfyR_D-kPpcW3efKLoyc70c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '25953744-cdd9-11e4-bd6f-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "25953744-cdd9-11e4-bd6f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.040864"], ["updated_at", "2015-03-19 01:42:05.040864"], ["token", "pk8-dG7bawOgOXYOQsw2B5n_aI2Gvj-HiRXd8-F9IVY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:42:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$9ThAuKaSnAhmyVioPEzKn.h3XDPJ8sKLnfEy5sHf/yOW3nPBAHD26"], ["created_at", "2015-03-19 01:42:05.054587"], ["updated_at", "2015-03-19 01:42:05.054587"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$3pf9mAcQXZ.Gpep5XR7utOKycboAnejy.Rf25jFBcZbr2oqgffQdi"], ["created_at", "2015-03-19 01:42:05.071311"], ["updated_at", "2015-03-19 01:42:05.071311"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.074893"], ["user_id", "259c5eac-cdd9-11e4-b7c9-705681abff85"], ["created_at", "2015-03-19 01:42:05.076746"], ["updated_at", "2015-03-19 01:42:05.076746"], ["token", "wlpnnaQ1OZnu80TI_IppMe9E2MjjjBL0sW4eYakTcYw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:05.081792"], ["updated_at", "2015-03-19 01:42:05.081792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '259c5eac-cdd9-11e4-b7c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '25a0721c-cdd9-11e4-8ace-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "259c5eac-cdd9-11e4-b7c9-705681abff85"], ["organization_id", "25a0721c-cdd9-11e4-8ace-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.094375"], ["updated_at", "2015-03-19 01:42:05.094375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '259f0080-cdd9-11e4-827b-705681abff85' AND "clubhouse_memberships"."organization_id" = '25a0721c-cdd9-11e4-8ace-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "259f0080-cdd9-11e4-827b-705681abff85"], ["organization_id", "25a0721c-cdd9-11e4-8ace-705681abff85"], ["created_at", "2015-03-19 01:42:05.099233"], ["updated_at", "2015-03-19 01:42:05.099233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$krr7iGzHnPn8VcBQA7Z0QuyEDiZF0bvhGTrMal7kya2F/i6UWGpmm"], ["created_at", "2015-03-19 01:42:05.106015"], ["updated_at", "2015-03-19 01:42:05.106015"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.111451"], ["user_id", "25a46e44-cdd9-11e4-8037-705681abff85"], ["created_at", "2015-03-19 01:42:05.112926"], ["updated_at", "2015-03-19 01:42:05.112926"], ["token", "qbbPGXz8GIEyxCejilavqDOzsM2pMkt51kPVLsVYqt4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '25a0721c-cdd9-11e4-8ace-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "25a0721c-cdd9-11e4-8ace-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.118806"], ["updated_at", "2015-03-19 01:42:05.118806"], ["token", "zKYSBC4KnC5fAzpUNFottbiqurD7idePYlJeV1QT7fo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/25a0721c-cdd9-11e4-8ace-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:42:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"zKYSBC4KnC5fAzpUNFottbiqurD7idePYlJeV1QT7fo", "organization_id"=>"25a0721c-cdd9-11e4-8ace-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:05.124476' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qbbPGXz8GIEyxCejilavqDOzsM2pMkt51kPVLsVYqt4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:05.126077"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:05.127136"], ["id", "25a5525a-cdd9-11e4-a899-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "25a0721c-cdd9-11e4-8ace-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25a46e44-cdd9-11e4-8037-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$37IBIAaASDpf5j2Pke5azuAB9rWSSCnbTsykJYfvKM2vcwFJdHFim"], ["created_at", "2015-03-19 01:42:05.140806"], ["updated_at", "2015-03-19 01:42:05.140806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$zp.RcXVz6Ysir/og58yhCOISPvD8pRAqEDX2NaGVV5b0uAIcLH.8W"], ["created_at", "2015-03-19 01:42:05.146014"], ["updated_at", "2015-03-19 01:42:05.146014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.148089"], ["user_id", "25a96bce-cdd9-11e4-b5e0-705681abff85"], ["created_at", "2015-03-19 01:42:05.148923"], ["updated_at", "2015-03-19 01:42:05.148923"], ["token", "0WgxVcgk8cEoB1nQnDELRROGf1r4ZIUUh6NuvC38tuM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:05.152860"], ["updated_at", "2015-03-19 01:42:05.152860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25a96bce-cdd9-11e4-b5e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '25ab4868-cdd9-11e4-b516-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25a96bce-cdd9-11e4-b5e0-705681abff85"], ["organization_id", "25ab4868-cdd9-11e4-b516-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.156545"], ["updated_at", "2015-03-19 01:42:05.156545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25aa3ff4-cdd9-11e4-819b-705681abff85' AND "clubhouse_memberships"."organization_id" = '25ab4868-cdd9-11e4-b516-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25aa3ff4-cdd9-11e4-819b-705681abff85"], ["organization_id", "25ab4868-cdd9-11e4-b516-705681abff85"], ["created_at", "2015-03-19 01:42:05.160021"], ["updated_at", "2015-03-19 01:42:05.160021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$8iFbKpkVw19qci5ZTrReWO6CuAjL.k/dM4OD2vrfPCkLD0oTGoNh6"], ["created_at", "2015-03-19 01:42:05.165393"], ["updated_at", "2015-03-19 01:42:05.165393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.167207"], ["user_id", "25ad30b0-cdd9-11e4-90ea-705681abff85"], ["created_at", "2015-03-19 01:42:05.168383"], ["updated_at", "2015-03-19 01:42:05.168383"], ["token", "cKROrNxWJLD2bO-M1VpQsYskr7fEIO16ccd8IYl6PKs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '25ab4868-cdd9-11e4-b516-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "25ab4868-cdd9-11e4-b516-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.178046"], ["updated_at", "2015-03-19 01:42:05.178046"], ["token", "sV28SFSW6O_1WGcdaw1C8DJoUcHUE8YrR9AHHRa7bUM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/25ab4868-cdd9-11e4-b516-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:42:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"25ab4868-cdd9-11e4-b516-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:05.186468' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cKROrNxWJLD2bO-M1VpQsYskr7fEIO16ccd8IYl6PKs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:05.188142"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:05.189150"], ["id", "25ae1214-cdd9-11e4-89f7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "25ab4868-cdd9-11e4-b516-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25ad30b0-cdd9-11e4-90ea-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$K74SA/XPLlJ.SuWSbaM0Ie3UlhZqpX6E5HFZSKGOmnz/ywpXsXNBu"], ["created_at", "2015-03-19 01:42:05.201769"], ["updated_at", "2015-03-19 01:42:05.201769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$zC3jRdRmemR6d2CuSKA32.i4PcaeOmjWmhrV9MlqLwe/i9/P/0KBC"], ["created_at", "2015-03-19 01:42:05.206094"], ["updated_at", "2015-03-19 01:42:05.206094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.207638"], ["user_id", "25b2b968-cdd9-11e4-889e-705681abff85"], ["created_at", "2015-03-19 01:42:05.208660"], ["updated_at", "2015-03-19 01:42:05.208660"], ["token", "Bmp13rWL4WSTDfpk_8JuxZ-BuYOT_ZuLbPsRD0kAAcw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:05.213191"], ["updated_at", "2015-03-19 01:42:05.213191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25b2b968-cdd9-11e4-889e-705681abff85' AND "clubhouse_memberships"."organization_id" = '25b47c76-cdd9-11e4-bcaa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25b2b968-cdd9-11e4-889e-705681abff85"], ["organization_id", "25b47c76-cdd9-11e4-bcaa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.217080"], ["updated_at", "2015-03-19 01:42:05.217080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25b36052-cdd9-11e4-abd0-705681abff85' AND "clubhouse_memberships"."organization_id" = '25b47c76-cdd9-11e4-bcaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25b36052-cdd9-11e4-abd0-705681abff85"], ["organization_id", "25b47c76-cdd9-11e4-bcaa-705681abff85"], ["created_at", "2015-03-19 01:42:05.221157"], ["updated_at", "2015-03-19 01:42:05.221157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 18:42:05 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$z9OcOHb6/und7Go1sxXUv.jHVoC1BG.fkrqJUyA34kdWfGMgl5/RW"], ["created_at", "2015-03-19 01:42:05.232059"], ["updated_at", "2015-03-19 01:42:05.232059"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$IlD20wWAQrN0koshF0wDueMMNjOGJ10ezSrRh6gCsa83GP7Xratfy"], ["created_at", "2015-03-19 01:42:05.237387"], ["updated_at", "2015-03-19 01:42:05.237387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.239162"], ["user_id", "25b767c4-cdd9-11e4-86a8-705681abff85"], ["created_at", "2015-03-19 01:42:05.240224"], ["updated_at", "2015-03-19 01:42:05.240224"], ["token", "-mG9nBpNs7nqK9jCYNti0nbRn9o8_Pj66Bir7m6hBek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:05.244619"], ["updated_at", "2015-03-19 01:42:05.244619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25b767c4-cdd9-11e4-86a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '25b94bfc-cdd9-11e4-a08c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25b767c4-cdd9-11e4-86a8-705681abff85"], ["organization_id", "25b94bfc-cdd9-11e4-a08c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.249752"], ["updated_at", "2015-03-19 01:42:05.249752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25b829a2-cdd9-11e4-9c3c-705681abff85' AND "clubhouse_memberships"."organization_id" = '25b94bfc-cdd9-11e4-a08c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25b829a2-cdd9-11e4-9c3c-705681abff85"], ["organization_id", "25b94bfc-cdd9-11e4-a08c-705681abff85"], ["created_at", "2015-03-19 01:42:05.253915"], ["updated_at", "2015-03-19 01:42:05.253915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/25bab104-cdd9-11e4-8b0b-705681abff85" for 127.0.0.1 at 2015-03-18 18:42:05 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"25bab104-cdd9-11e4-8b0b-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:05.264163' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-mG9nBpNs7nqK9jCYNti0nbRn9o8_Pj66Bir7m6hBek"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:05.265779"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:05.267040"], ["id", "25b8a60c-cdd9-11e4-a706-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "25bab104-cdd9-11e4-8b0b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25b767c4-cdd9-11e4-86a8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "25b94bfc-cdd9-11e4-a08c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '25b767c4-cdd9-11e4-86a8-705681abff85' LIMIT 1 [["organization_id", "25b94bfc-cdd9-11e4-a08c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25b829a2-cdd9-11e4-9c3c-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25b829a2-cdd9-11e4-9c3c-705681abff85' AND "clubhouse_memberships"."id" != '25bab104-cdd9-11e4-8b0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '25b94bfc-cdd9-11e4-a08c-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:42:05.277915"], ["id", "25bab104-cdd9-11e4-8b0b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.5ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$m3iBnu.5ISGFI11IB6SZYOJgaqm7givAt3rrqOGC.ZWWgSd9O1XXC"], ["created_at", "2015-03-19 01:42:05.289064"], ["updated_at", "2015-03-19 01:42:05.289064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (73.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$06D49PfPgbAcrSO/XEeKLubXHLrfefEzl1BjS2NfZ8.bp34E8Nz/K"], ["created_at", "2015-03-19 01:42:05.295769"], ["updated_at", "2015-03-19 01:42:05.295769"]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (2.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.375138"], ["user_id", "25c01644-cdd9-11e4-a2f8-705681abff85"], ["created_at", "2015-03-19 01:42:05.382362"], ["updated_at", "2015-03-19 01:42:05.382362"], ["token", "sklJ4rGat7Jv8a6kQtTSgUNYVhXV4M-_SJGeHTzDuAM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:05.390295"], ["updated_at", "2015-03-19 01:42:05.390295"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25c01644-cdd9-11e4-a2f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '25cfbed2-cdd9-11e4-a770-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25c01644-cdd9-11e4-a2f8-705681abff85"], ["organization_id", "25cfbed2-cdd9-11e4-a770-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.399688"], ["updated_at", "2015-03-19 01:42:05.399688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25c11fc6-cdd9-11e4-b091-705681abff85' AND "clubhouse_memberships"."organization_id" = '25cfbed2-cdd9-11e4-a770-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25c11fc6-cdd9-11e4-b091-705681abff85"], ["organization_id", "25cfbed2-cdd9-11e4-a770-705681abff85"], ["created_at", "2015-03-19 01:42:05.404800"], ["updated_at", "2015-03-19 01:42:05.404800"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:42:05 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$lV8Qy5HyyzvaGYIdMHQ5p.O.9IIs5RozN/dXzFmrks6WZAPuglRRi"], ["created_at", "2015-03-19 01:42:05.421443"], ["updated_at", "2015-03-19 01:42:05.421443"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$eVYkt8WPmtK2bAJtdTMH1.DJ2msNYTGB34JDzcGv3syxtjliY/yNi"], ["created_at", "2015-03-19 01:42:05.428945"], ["updated_at", "2015-03-19 01:42:05.428945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.431220"], ["user_id", "25d4512c-cdd9-11e4-9f76-705681abff85"], ["created_at", "2015-03-19 01:42:05.432635"], ["updated_at", "2015-03-19 01:42:05.432635"], ["token", "-VQ-BvohkUKWzn_ZBkO86BllY629hPghEo349E-q8n0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:05.447202"], ["updated_at", "2015-03-19 01:42:05.447202"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25d4512c-cdd9-11e4-9f76-705681abff85' AND "clubhouse_memberships"."organization_id" = '25d84b88-cdd9-11e4-b1ec-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25d4512c-cdd9-11e4-9f76-705681abff85"], ["organization_id", "25d84b88-cdd9-11e4-b1ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.456709"], ["updated_at", "2015-03-19 01:42:05.456709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25d567f6-cdd9-11e4-84ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '25d84b88-cdd9-11e4-b1ec-705681abff85') LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25d567f6-cdd9-11e4-84ce-705681abff85"], ["organization_id", "25d84b88-cdd9-11e4-b1ec-705681abff85"], ["created_at", "2015-03-19 01:42:05.463745"], ["updated_at", "2015-03-19 01:42:05.463745"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:42:05 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:05.494544' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-VQ-BvohkUKWzn_ZBkO86BllY629hPghEo349E-q8n0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:05.497152"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:05.501208"], ["id", "25d61e6c-cdd9-11e4-a310-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (6.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25d4512c-cdd9-11e4-9f76-705681abff85"]] Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '25d4512c-cdd9-11e4-9f76-705681abff85' LIMIT 1 [["organization_id", "25d84b88-cdd9-11e4-b1ec-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "25d84b88-cdd9-11e4-b1ec-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "25d84b88-cdd9-11e4-b1ec-705681abff85"]] CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25d4512c-cdd9-11e4-9f76-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "25d84b88-cdd9-11e4-b1ec-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "25d567f6-cdd9-11e4-84ce-705681abff85"]] Completed 200 OK in 326ms (Views: 27.8ms | ActiveRecord: 9.7ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$rbmQ.Hu3Kv9TvdycOxz07ejZSv1TcORvQce3pjtqglizqDaIkADZW"], ["created_at", "2015-03-19 01:42:05.836234"], ["updated_at", "2015-03-19 01:42:05.836234"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$.9PDEs7L20kiOY4gOA/Hku3NkdmkLX5x5vU4pyp3a32RL2QlsTxGO"], ["created_at", "2015-03-19 01:42:05.843815"], ["updated_at", "2015-03-19 01:42:05.843815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.848345"], ["user_id", "2613a07a-cdd9-11e4-a8d1-705681abff85"], ["created_at", "2015-03-19 01:42:05.850995"], ["updated_at", "2015-03-19 01:42:05.850995"], ["token", "diqGLOFN9fuG0TReDydA8nCFkz1sZ8vcKYHW8bVK3Gs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:05.857280"], ["updated_at", "2015-03-19 01:42:05.857280"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2613a07a-cdd9-11e4-a8d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '2616c53e-cdd9-11e4-b1d1-705681abff85') LIMIT 1 SQL (12.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2613a07a-cdd9-11e4-a8d1-705681abff85"], ["organization_id", "2616c53e-cdd9-11e4-b1d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.865104"], ["updated_at", "2015-03-19 01:42:05.865104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2614ce50-cdd9-11e4-947c-705681abff85' AND "clubhouse_memberships"."organization_id" = '2616c53e-cdd9-11e4-b1d1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2614ce50-cdd9-11e4-947c-705681abff85"], ["organization_id", "2616c53e-cdd9-11e4-b1d1-705681abff85"], ["created_at", "2015-03-19 01:42:05.882469"], ["updated_at", "2015-03-19 01:42:05.882469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$T7WYWByVwgFIU8qBxl9FLuBWuXU5MWvmRUFXy0z0rxPJJIP462sc2"], ["created_at", "2015-03-19 01:42:05.888277"], ["updated_at", "2015-03-19 01:42:05.888277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.890030"], ["user_id", "261b7cfa-cdd9-11e4-ba01-705681abff85"], ["created_at", "2015-03-19 01:42:05.890886"], ["updated_at", "2015-03-19 01:42:05.890886"], ["token", "w4UwtREju6SvjL-9DSu5aBuh71QvAlceLQEm9gFQpF4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '2616c53e-cdd9-11e4-b1d1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "2616c53e-cdd9-11e4-b1d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.895964"], ["updated_at", "2015-03-19 01:42:05.895964"], ["token", "8wAFNogpkZshUHRbTShoYblo2K0uhhCf6ZkgwBiwZ2M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:42:05 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$ekPXtXQvjTx/6G2wCOaWHO4nIUQK77xloON/qINfZlE69eBoZubu6"], ["created_at", "2015-03-19 01:42:05.908117"], ["updated_at", "2015-03-19 01:42:05.908117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$g4ehBhz1H.Luaif0Bxaxa.XuoCoPXCuUT7jfCkTlIQDbjfmGNxzWa"], ["created_at", "2015-03-19 01:42:05.913254"], ["updated_at", "2015-03-19 01:42:05.913254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.915078"], ["user_id", "261e8c42-cdd9-11e4-990e-705681abff85"], ["created_at", "2015-03-19 01:42:05.915894"], ["updated_at", "2015-03-19 01:42:05.915894"], ["token", "deI6Le_GAsNnkDBYSMAdch2FJMhtF1IE_QBUWdickxs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:05.919987"], ["updated_at", "2015-03-19 01:42:05.919987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '261e8c42-cdd9-11e4-990e-705681abff85' AND "clubhouse_memberships"."organization_id" = '262050cc-cdd9-11e4-9b0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "261e8c42-cdd9-11e4-990e-705681abff85"], ["organization_id", "262050cc-cdd9-11e4-9b0d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:05.923903"], ["updated_at", "2015-03-19 01:42:05.923903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '261f4ccc-cdd9-11e4-b273-705681abff85' AND "clubhouse_memberships"."organization_id" = '262050cc-cdd9-11e4-9b0d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "261f4ccc-cdd9-11e4-b273-705681abff85"], ["organization_id", "262050cc-cdd9-11e4-9b0d-705681abff85"], ["created_at", "2015-03-19 01:42:05.976851"], ["updated_at", "2015-03-19 01:42:05.976851"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$rNZQwSgfGI2g5rjyRZgcH.hRBZmJh0VGUDycRUdkvYM9MaQBuExiK"], ["created_at", "2015-03-19 01:42:05.993361"], ["updated_at", "2015-03-19 01:42:05.993361"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:05.996267"], ["user_id", "262b9202-cdd9-11e4-978d-705681abff85"], ["created_at", "2015-03-19 01:42:05.998748"], ["updated_at", "2015-03-19 01:42:05.998748"], ["token", "uMpUf7AGkC9UR6R4IQRDdqKDRIMsI9YxqQQ7CP4lrUU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '262050cc-cdd9-11e4-9b0d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "262050cc-cdd9-11e4-9b0d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:06.005858"], ["updated_at", "2015-03-19 01:42:06.005858"], ["token", "n43ic_RNL4Zh9TFVUr5EveT0gwZ_212QMdNyAN7ge1E"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:42:06 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"n43ic_RNL4Zh9TFVUr5EveT0gwZ_212QMdNyAN7ge1E", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:06.017096' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uMpUf7AGkC9UR6R4IQRDdqKDRIMsI9YxqQQ7CP4lrUU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:06.018901"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:06.020446"], ["id", "262c74ce-cdd9-11e4-827b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "262b9202-cdd9-11e4-978d-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$jx/aK7sH7i2UbQxa5HJsM.6VtJV3nmK0zH42HYfA87Cwjc5MAF.7m"], ["created_at", "2015-03-19 01:42:06.037693"], ["updated_at", "2015-03-19 01:42:06.037693"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$2O7CHrXxjBN4hPfw71oD1OJMhHu3O0Pm9xV7uYfYsyWEQLDa2WzoG"], ["created_at", "2015-03-19 01:42:06.071182"], ["updated_at", "2015-03-19 01:42:06.071182"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:06.076280"], ["user_id", "2633cb20-cdd9-11e4-944b-705681abff85"], ["created_at", "2015-03-19 01:42:06.105297"], ["updated_at", "2015-03-19 01:42:06.105297"], ["token", "yJLKjrIfvqICgMcmF0EKAj7l5VijgTt23hCjvTDUOQY"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:06.134215"], ["updated_at", "2015-03-19 01:42:06.134215"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (2.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2633cb20-cdd9-11e4-944b-705681abff85' AND "clubhouse_memberships"."organization_id" = '264134ea-cdd9-11e4-8b17-705681abff85') LIMIT 1 SQL (12.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2633cb20-cdd9-11e4-944b-705681abff85"], ["organization_id", "264134ea-cdd9-11e4-8b17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:06.185906"], ["updated_at", "2015-03-19 01:42:06.185906"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '26379d2c-cdd9-11e4-a343-705681abff85' AND "clubhouse_memberships"."organization_id" = '264134ea-cdd9-11e4-8b17-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "26379d2c-cdd9-11e4-a343-705681abff85"], ["organization_id", "264134ea-cdd9-11e4-8b17-705681abff85"], ["created_at", "2015-03-19 01:42:06.216669"], ["updated_at", "2015-03-19 01:42:06.216669"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (3.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$jebsJLfgpQTGYaq5MhPmSeSQCbcH6JsetBCD1311sh5fjaloeGKv6"], ["created_at", "2015-03-19 01:42:06.262525"], ["updated_at", "2015-03-19 01:42:06.262525"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:06.267186"], ["user_id", "2654be66-cdd9-11e4-b109-705681abff85"], ["created_at", "2015-03-19 01:42:06.268920"], ["updated_at", "2015-03-19 01:42:06.268920"], ["token", "6ZHVWH3nHeBjf0V2D03NdqlQJxpiYomAh7xbbOg2cFc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (12.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '264134ea-cdd9-11e4-8b17-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "264134ea-cdd9-11e4-8b17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:06.405808"], ["updated_at", "2015-03-19 01:42:06.405808"], ["token", "BEGogF73dxEN5T8Gj9CH4OhPsaTX2mMco0xQ4tApTW0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:42:06 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (1.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:06.426241' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6ZHVWH3nHeBjf0V2D03NdqlQJxpiYomAh7xbbOg2cFc"]]  (16.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:06.430476"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:06.461748"], ["id", "2655b1b8-cdd9-11e4-b489-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2654be66-cdd9-11e4-b109-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 57ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (21.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$lGE55ofPnbb.5gU.zChuyOdNRiSF2iVLC9GieP5HoUSwXk7Z17t0e"], ["created_at", "2015-03-19 01:42:31.024081"], ["updated_at", "2015-03-19 01:42:31.024081"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$0g.ysAkE9IJyecIi4JWx1eKaMKGiB338KZGdKN/h8EcZSgqJmBKUa"], ["created_at", "2015-03-19 01:42:31.051276"], ["updated_at", "2015-03-19 01:42:31.051276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.092291"], ["user_id", "351a3354-cdd9-11e4-9a97-705681abff85"], ["created_at", "2015-03-19 01:42:31.099880"], ["updated_at", "2015-03-19 01:42:31.099880"], ["token", "4LSrInrVXm_xIYA5cMhN1dUnUhzri4eyudBzQE95tD0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.109068"], ["updated_at", "2015-03-19 01:42:31.109068"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '351a3354-cdd9-11e4-9a97-705681abff85' AND "clubhouse_memberships"."organization_id" = '3523ec46-cdd9-11e4-8098-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "351a3354-cdd9-11e4-9a97-705681abff85"], ["organization_id", "3523ec46-cdd9-11e4-8098-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.121561"], ["updated_at", "2015-03-19 01:42:31.121561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '351b10ee-cdd9-11e4-8386-705681abff85' AND "clubhouse_memberships"."organization_id" = '3523ec46-cdd9-11e4-8098-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "351b10ee-cdd9-11e4-8386-705681abff85"], ["organization_id", "3523ec46-cdd9-11e4-8098-705681abff85"], ["created_at", "2015-03-19 01:42:31.125427"], ["updated_at", "2015-03-19 01:42:31.125427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$f.jaIhQ.fUNRbik5mWa.ZOQuPVD7Vvq77K8KAoBDIKHKxDD1IYihu"], ["created_at", "2015-03-19 01:42:31.172201"], ["updated_at", "2015-03-19 01:42:31.172201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$7YuODC3raMHkRj/thNh5Su.hnf44DNVfPNw2zJAd3cD1dR.4tWV6O"], ["created_at", "2015-03-19 01:42:31.181107"], ["updated_at", "2015-03-19 01:42:31.181107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.184940"], ["user_id", "352ddfbc-cdd9-11e4-b515-705681abff85"], ["created_at", "2015-03-19 01:42:31.185736"], ["updated_at", "2015-03-19 01:42:31.185736"], ["token", "bdUP-gjiNCruVjTdy0uifCG1lMYKO90OV99QWlQFGq0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.189346"], ["updated_at", "2015-03-19 01:42:31.189346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '352ddfbc-cdd9-11e4-b515-705681abff85' AND "clubhouse_memberships"."organization_id" = '35301c0a-cdd9-11e4-a170-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "352ddfbc-cdd9-11e4-b515-705681abff85"], ["organization_id", "35301c0a-cdd9-11e4-a170-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.192841"], ["updated_at", "2015-03-19 01:42:31.192841"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '352eeb28-cdd9-11e4-988d-705681abff85' AND "clubhouse_memberships"."organization_id" = '35301c0a-cdd9-11e4-a170-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "352eeb28-cdd9-11e4-988d-705681abff85"], ["organization_id", "35301c0a-cdd9-11e4-a170-705681abff85"], ["created_at", "2015-03-19 01:42:31.196855"], ["updated_at", "2015-03-19 01:42:31.196855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/35301c0a-cdd9-11e4-a170-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"35301c0a-cdd9-11e4-a170-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:31.202076' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bdUP-gjiNCruVjTdy0uifCG1lMYKO90OV99QWlQFGq0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:31.209401"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:31.210816"], ["id", "352f98b6-cdd9-11e4-9bd9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "35301c0a-cdd9-11e4-a170-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "352ddfbc-cdd9-11e4-b515-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '352ddfbc-cdd9-11e4-b515-705681abff85' LIMIT 1 [["organization_id", "35301c0a-cdd9-11e4-a170-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "35301c0a-cdd9-11e4-a170-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35301c0a-cdd9-11e4-a170-705681abff85"]] CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "352ddfbc-cdd9-11e4-b515-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35301c0a-cdd9-11e4-a170-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "352eeb28-cdd9-11e4-988d-705681abff85"]] Completed 200 OK in 41ms (Views: 10.4ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$FJphoXl1G8px8M25N801vuIf7XpBaw0eF25z5T4P3IdFaWGY8uHoG"], ["created_at", "2015-03-19 01:42:31.252373"], ["updated_at", "2015-03-19 01:42:31.252373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$FX2AMKmBFu3fygPYzmCJXet.kH/JHs4of0G2AIFDK/O.r.zC3DNea"], ["created_at", "2015-03-19 01:42:31.256836"], ["updated_at", "2015-03-19 01:42:31.256836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.258509"], ["user_id", "3539bc88-cdd9-11e4-b18a-705681abff85"], ["created_at", "2015-03-19 01:42:31.259318"], ["updated_at", "2015-03-19 01:42:31.259318"], ["token", "VuJlPjQBCJ14yFikGfw1LkREozVn7yabEd8tMmaIoH4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.263083"], ["updated_at", "2015-03-19 01:42:31.263083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3539bc88-cdd9-11e4-b18a-705681abff85' AND "clubhouse_memberships"."organization_id" = '353b5b06-cdd9-11e4-b73c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3539bc88-cdd9-11e4-b18a-705681abff85"], ["organization_id", "353b5b06-cdd9-11e4-b73c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.266770"], ["updated_at", "2015-03-19 01:42:31.266770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '353a6962-cdd9-11e4-b07e-705681abff85' AND "clubhouse_memberships"."organization_id" = '353b5b06-cdd9-11e4-b73c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "353a6962-cdd9-11e4-b07e-705681abff85"], ["organization_id", "353b5b06-cdd9-11e4-b73c-705681abff85"], ["created_at", "2015-03-19 01:42:31.269953"], ["updated_at", "2015-03-19 01:42:31.269953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$3HgHGlQLlOeNjIrzWWgzOOe/n9jSmbdogkSsL0uIQmwIMFClB56cG"], ["created_at", "2015-03-19 01:42:31.275177"], ["updated_at", "2015-03-19 01:42:31.275177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.277021"], ["user_id", "353d3a48-cdd9-11e4-9c4c-705681abff85"], ["created_at", "2015-03-19 01:42:31.277845"], ["updated_at", "2015-03-19 01:42:31.277845"], ["token", "qmLn4t5PS5alCD6EsAtN1_HLQAH_Ogge946GHHS_9b4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '353b5b06-cdd9-11e4-b73c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "353b5b06-cdd9-11e4-b73c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.288917"], ["updated_at", "2015-03-19 01:42:31.288917"], ["token", "OPG-czA2GJLGbq4W4qBdeLCsv-ZJcICnsIOkIXZoc78"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$FsJ0cYzlhDeH1VolLWX3AOqKUkVAsPtjLvJBhpxCk7SUZhn2mDlu6"], ["created_at", "2015-03-19 01:42:31.301601"], ["updated_at", "2015-03-19 01:42:31.301601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$mgpSQcK.JChxzeVnlGqQ7OOHcjjb2okYoidnG3VZm59VMKsIgg7pW"], ["created_at", "2015-03-19 01:42:31.306562"], ["updated_at", "2015-03-19 01:42:31.306562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.308397"], ["user_id", "35414020-cdd9-11e4-a58c-705681abff85"], ["created_at", "2015-03-19 01:42:31.309199"], ["updated_at", "2015-03-19 01:42:31.309199"], ["token", "l25bIEtHP7Gj-mbXxh-Zja9aIV0P8ureSWAxDwx-DoM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.313511"], ["updated_at", "2015-03-19 01:42:31.313511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35414020-cdd9-11e4-a58c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3543179c-cdd9-11e4-877e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35414020-cdd9-11e4-a58c-705681abff85"], ["organization_id", "3543179c-cdd9-11e4-877e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.317631"], ["updated_at", "2015-03-19 01:42:31.317631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '354202d0-cdd9-11e4-b73e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3543179c-cdd9-11e4-877e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "354202d0-cdd9-11e4-b73e-705681abff85"], ["organization_id", "3543179c-cdd9-11e4-877e-705681abff85"], ["created_at", "2015-03-19 01:42:31.321198"], ["updated_at", "2015-03-19 01:42:31.321198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$xYATEFfXp7z2uW72Jo2e7ue6F60DWDRZcfvrS6KwW6P7bip4oZpha"], ["created_at", "2015-03-19 01:42:31.325783"], ["updated_at", "2015-03-19 01:42:31.325783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.327321"], ["user_id", "3544ed6a-cdd9-11e4-9dfb-705681abff85"], ["created_at", "2015-03-19 01:42:31.328098"], ["updated_at", "2015-03-19 01:42:31.328098"], ["token", "dXZlcXuvP_8AmOwkkh-yvWGHSnddtBGgrVtcMYjaEv0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '3543179c-cdd9-11e4-877e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "3543179c-cdd9-11e4-877e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.332367"], ["updated_at", "2015-03-19 01:42:31.332367"], ["token", "gM90xzPvLJxAi5UZSeWosebSYBoyBlzseGs8hlEgy4M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3543179c-cdd9-11e4-877e-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"gM90xzPvLJxAi5UZSeWosebSYBoyBlzseGs8hlEgy4M", "organization_id"=>"3543179c-cdd9-11e4-877e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:31.337318' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dXZlcXuvP_8AmOwkkh-yvWGHSnddtBGgrVtcMYjaEv0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:31.338885"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:31.340151"], ["id", "354553c2-cdd9-11e4-a4e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3543179c-cdd9-11e4-877e-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3544ed6a-cdd9-11e4-9dfb-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "gM90xzPvLJxAi5UZSeWosebSYBoyBlzseGs8hlEgy4M"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3543179c-cdd9-11e4-877e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3544ed6a-cdd9-11e4-9dfb-705681abff85' AND "clubhouse_memberships"."organization_id" = '3543179c-cdd9-11e4-877e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "3543179c-cdd9-11e4-877e-705681abff85"], ["member_id", "3544ed6a-cdd9-11e4-9dfb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.352041"], ["updated_at", "2015-03-19 01:42:31.352041"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "3545f44e-cdd9-11e4-b527-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 1.2ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$sw.XJU6RpuEHHHdQrRls3uAWLDc6/95WaaUdSQgcWAgje.r27drSa"], ["created_at", "2015-03-19 01:42:31.362509"], ["updated_at", "2015-03-19 01:42:31.362509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$W0DZH244u9nELEMYql/9T.dacpywclKC/He6c4bVpslej7HHgW09u"], ["created_at", "2015-03-19 01:42:31.366884"], ["updated_at", "2015-03-19 01:42:31.366884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.368723"], ["user_id", "354a8982-cdd9-11e4-9d78-705681abff85"], ["created_at", "2015-03-19 01:42:31.369642"], ["updated_at", "2015-03-19 01:42:31.369642"], ["token", "AinsmDqBE__5O7EDX8zlxwQ2AwcxVV6LMhILrHtoBDs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.373760"], ["updated_at", "2015-03-19 01:42:31.373760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '354a8982-cdd9-11e4-9d78-705681abff85' AND "clubhouse_memberships"."organization_id" = '354c45a6-cdd9-11e4-96c8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "354a8982-cdd9-11e4-9d78-705681abff85"], ["organization_id", "354c45a6-cdd9-11e4-96c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.377611"], ["updated_at", "2015-03-19 01:42:31.377611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '354b342c-cdd9-11e4-9b54-705681abff85' AND "clubhouse_memberships"."organization_id" = '354c45a6-cdd9-11e4-96c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "354b342c-cdd9-11e4-9b54-705681abff85"], ["organization_id", "354c45a6-cdd9-11e4-96c8-705681abff85"], ["created_at", "2015-03-19 01:42:31.381284"], ["updated_at", "2015-03-19 01:42:31.381284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$aNxfKaqQ93zUFjgid6q.YeLdUhWoSAxPZEJaJmpcsGb0tdAwOQ93K"], ["created_at", "2015-03-19 01:42:31.385866"], ["updated_at", "2015-03-19 01:42:31.385866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.387544"], ["user_id", "354e1b60-cdd9-11e4-bc46-705681abff85"], ["created_at", "2015-03-19 01:42:31.388310"], ["updated_at", "2015-03-19 01:42:31.388310"], ["token", "5z6HJ2SOQ6wIlnnpjMCmBwpAaT7kZBpiXkQ3pAWkwA0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '354c45a6-cdd9-11e4-96c8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "354c45a6-cdd9-11e4-96c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.392357"], ["updated_at", "2015-03-19 01:42:31.392357"], ["token", "lxJfMnFGrWAomymPPvYc2s37dEw0e6LMyJtqSJSy-YI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/354c45a6-cdd9-11e4-96c8-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"354c45a6-cdd9-11e4-96c8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:31.399186' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5z6HJ2SOQ6wIlnnpjMCmBwpAaT7kZBpiXkQ3pAWkwA0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:31.401126"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:31.403167"], ["id", "354e7d62-cdd9-11e4-9cad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "354c45a6-cdd9-11e4-96c8-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "354e1b60-cdd9-11e4-bc46-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$AwjZhKyn1gTnUiydnk3ssexaNrreQgqiz0zGz2IBj3gyBMkkjczyy"], ["created_at", "2015-03-19 01:42:31.416821"], ["updated_at", "2015-03-19 01:42:31.416821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$Ov/BjdN/6qciILIyD6SNIOWNYiP5WsE5Y35SAfofCibGwPwP3JX0q"], ["created_at", "2015-03-19 01:42:31.421212"], ["updated_at", "2015-03-19 01:42:31.421212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.423020"], ["user_id", "3552d4c0-cdd9-11e4-b35f-705681abff85"], ["created_at", "2015-03-19 01:42:31.423907"], ["updated_at", "2015-03-19 01:42:31.423907"], ["token", "nAcXc4ymaXRhipM04GoeLBckzt1PhVsgDdXr3gFwTug"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.427774"], ["updated_at", "2015-03-19 01:42:31.427774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3552d4c0-cdd9-11e4-b35f-705681abff85' AND "clubhouse_memberships"."organization_id" = '355481ee-cdd9-11e4-8888-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3552d4c0-cdd9-11e4-b35f-705681abff85"], ["organization_id", "355481ee-cdd9-11e4-8888-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.432208"], ["updated_at", "2015-03-19 01:42:31.432208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35537e66-cdd9-11e4-a483-705681abff85' AND "clubhouse_memberships"."organization_id" = '355481ee-cdd9-11e4-8888-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35537e66-cdd9-11e4-a483-705681abff85"], ["organization_id", "355481ee-cdd9-11e4-8888-705681abff85"], ["created_at", "2015-03-19 01:42:31.437247"], ["updated_at", "2015-03-19 01:42:31.437247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$uK4QFEaokXWzgEvbFBqxUeVpbFMT12Dpvvux/ZYUeFpF/f8dGft7e"], ["created_at", "2015-03-19 01:42:31.451585"], ["updated_at", "2015-03-19 01:42:31.451585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$SEJaviENm05WIriwpSTBT.5aPsp0eutGDiILL9pGPZhj3Oh5SW1Xi"], ["created_at", "2015-03-19 01:42:31.456538"], ["updated_at", "2015-03-19 01:42:31.456538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.458402"], ["user_id", "3558274a-cdd9-11e4-88af-705681abff85"], ["created_at", "2015-03-19 01:42:31.459446"], ["updated_at", "2015-03-19 01:42:31.459446"], ["token", "gHcN9heimKm6SREZEHrmqkymvKlwHQHcH7o6msYMvk4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.471374"], ["updated_at", "2015-03-19 01:42:31.471374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3558274a-cdd9-11e4-88af-705681abff85' AND "clubhouse_memberships"."organization_id" = '355b3912-cdd9-11e4-8179-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3558274a-cdd9-11e4-88af-705681abff85"], ["organization_id", "355b3912-cdd9-11e4-8179-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.476187"], ["updated_at", "2015-03-19 01:42:31.476187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3558e63a-cdd9-11e4-a945-705681abff85' AND "clubhouse_memberships"."organization_id" = '355b3912-cdd9-11e4-8179-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3558e63a-cdd9-11e4-a945-705681abff85"], ["organization_id", "355b3912-cdd9-11e4-8179-705681abff85"], ["created_at", "2015-03-19 01:42:31.480750"], ["updated_at", "2015-03-19 01:42:31.480750"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/355c9730-cdd9-11e4-86a6-705681abff85" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"355c9730-cdd9-11e4-86a6-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:31.487057' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gHcN9heimKm6SREZEHrmqkymvKlwHQHcH7o6msYMvk4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (7.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:31.488567"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:31.489644"], ["id", "355a7658-cdd9-11e4-8f91-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "355c9730-cdd9-11e4-86a6-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3558274a-cdd9-11e4-88af-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "355b3912-cdd9-11e4-8179-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3558274a-cdd9-11e4-88af-705681abff85' LIMIT 1 [["organization_id", "355b3912-cdd9-11e4-8179-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3558e63a-cdd9-11e4-a945-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "355c9730-cdd9-11e4-86a6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 21ms (ActiveRecord: 9.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$hrQePFsSB8FSlCgPP90nxuCHItHHDCV.Wkw4KLeixb6HzA2Pf57Dy"], ["created_at", "2015-03-19 01:42:31.516502"], ["updated_at", "2015-03-19 01:42:31.516502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$OOVUgVE0Djm8iXNSa1z8pO.vrZ7tBVGUXPJPsUOkRYeJqm8s/2Xfm"], ["created_at", "2015-03-19 01:42:31.522096"], ["updated_at", "2015-03-19 01:42:31.522096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.524058"], ["user_id", "35620f44-cdd9-11e4-b425-705681abff85"], ["created_at", "2015-03-19 01:42:31.524867"], ["updated_at", "2015-03-19 01:42:31.524867"], ["token", "frr2wrX_p9lW3LNsxIyP3Ue6oDxBW41t6hsdOb-dBU8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.529157"], ["updated_at", "2015-03-19 01:42:31.529157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35620f44-cdd9-11e4-b425-705681abff85' AND "clubhouse_memberships"."organization_id" = '3563fcd2-cdd9-11e4-a594-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35620f44-cdd9-11e4-b425-705681abff85"], ["organization_id", "3563fcd2-cdd9-11e4-a594-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.532972"], ["updated_at", "2015-03-19 01:42:31.532972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3562e450-cdd9-11e4-ae72-705681abff85' AND "clubhouse_memberships"."organization_id" = '3563fcd2-cdd9-11e4-a594-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3562e450-cdd9-11e4-ae72-705681abff85"], ["organization_id", "3563fcd2-cdd9-11e4-a594-705681abff85"], ["created_at", "2015-03-19 01:42:31.536657"], ["updated_at", "2015-03-19 01:42:31.536657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$lyG86Bd0ja8mhDLTgzOpGeN983VMqvRfTzXg51pw6D.KoEkxVXvaK"], ["created_at", "2015-03-19 01:42:31.551789"], ["updated_at", "2015-03-19 01:42:31.551789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$cHLmui4zTxUCfkKUF6PSWOA3Hbwt2GKQIIfC/nJRp6YxgRRZmI.X."], ["created_at", "2015-03-19 01:42:31.559577"], ["updated_at", "2015-03-19 01:42:31.559577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.562050"], ["user_id", "35679806-cdd9-11e4-93dd-705681abff85"], ["created_at", "2015-03-19 01:42:31.565049"], ["updated_at", "2015-03-19 01:42:31.565049"], ["token", "USePntwvwKoc5wHpSsiC2rXRAVbKW79lSI2MRc4tO3Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.569627"], ["updated_at", "2015-03-19 01:42:31.569627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35679806-cdd9-11e4-93dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '356a2558-cdd9-11e4-9745-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35679806-cdd9-11e4-93dd-705681abff85"], ["organization_id", "356a2558-cdd9-11e4-9745-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.573627"], ["updated_at", "2015-03-19 01:42:31.573627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3568b1d2-cdd9-11e4-8f94-705681abff85' AND "clubhouse_memberships"."organization_id" = '356a2558-cdd9-11e4-9745-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3568b1d2-cdd9-11e4-8f94-705681abff85"], ["organization_id", "356a2558-cdd9-11e4-9745-705681abff85"], ["created_at", "2015-03-19 01:42:31.579685"], ["updated_at", "2015-03-19 01:42:31.579685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/356bb06c-cdd9-11e4-bcf2-705681abff85" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"356bb06c-cdd9-11e4-bcf2-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:31.585190' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "USePntwvwKoc5wHpSsiC2rXRAVbKW79lSI2MRc4tO3Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:31.586687"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:31.587682"], ["id", "35698f08-cdd9-11e4-bf31-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "356bb06c-cdd9-11e4-bcf2-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35679806-cdd9-11e4-93dd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "356a2558-cdd9-11e4-9745-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '35679806-cdd9-11e4-93dd-705681abff85' LIMIT 1 [["organization_id", "356a2558-cdd9-11e4-9745-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3568b1d2-cdd9-11e4-8f94-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3568b1d2-cdd9-11e4-8f94-705681abff85' AND "clubhouse_memberships"."id" != '356bb06c-cdd9-11e4-bcf2-705681abff85' AND "clubhouse_memberships"."organization_id" = '356a2558-cdd9-11e4-9745-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:42:31.597293"], ["id", "356bb06c-cdd9-11e4-bcf2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.8ms | ActiveRecord: 2.8ms)  (9.7ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$Z3hig/7.DRAIKaoZ0aIMZ.BhWkwy4ilG4qtRcBTUWOus91updcx4m"], ["created_at", "2015-03-19 01:42:31.639576"], ["updated_at", "2015-03-19 01:42:31.639576"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$fh0.Q8qWsmwx9HLkK98JgeSUzTESDLhPmTIGWPoxiwId4amkLHFn2"], ["created_at", "2015-03-19 01:42:31.649017"], ["updated_at", "2015-03-19 01:42:31.649017"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.651900"], ["user_id", "3574f136-cdd9-11e4-920d-705681abff85"], ["created_at", "2015-03-19 01:42:31.653327"], ["updated_at", "2015-03-19 01:42:31.653327"], ["token", "ejznSKZJ8xI-iqFXsFmrBm4Kfh5m5mXf-3TTqVRJxp4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.660344"], ["updated_at", "2015-03-19 01:42:31.660344"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (5.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3574f136-cdd9-11e4-920d-705681abff85' AND "clubhouse_memberships"."organization_id" = '35782266-cdd9-11e4-ac1d-705681abff85') LIMIT 1 SQL (3.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3574f136-cdd9-11e4-920d-705681abff85"], ["organization_id", "35782266-cdd9-11e4-ac1d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.689243"], ["updated_at", "2015-03-19 01:42:31.689243"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '357657a6-cdd9-11e4-b9c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '35782266-cdd9-11e4-ac1d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "357657a6-cdd9-11e4-b9c9-705681abff85"], ["organization_id", "35782266-cdd9-11e4-ac1d-705681abff85"], ["created_at", "2015-03-19 01:42:31.700225"], ["updated_at", "2015-03-19 01:42:31.700225"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (5.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$OLi4EaGQt2/hcE5i3dRnb.HlKd5hR6vcsDfGNyggbxHk96ekoX93u"], ["created_at", "2015-03-19 01:42:31.731805"], ["updated_at", "2015-03-19 01:42:31.731805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$MRxrBrNlnu3WZAuwQENRCezY.C5mjczQoyyvBBpS2qHhbFSP6oTh6"], ["created_at", "2015-03-19 01:42:31.738220"], ["updated_at", "2015-03-19 01:42:31.738220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.741209"], ["user_id", "3582f100-cdd9-11e4-91f8-705681abff85"], ["created_at", "2015-03-19 01:42:31.742638"], ["updated_at", "2015-03-19 01:42:31.742638"], ["token", "rlKKcmJQHP9phfTpdV2C-sCcjmEdIuq5eAJ0qZTch90"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.749321"], ["updated_at", "2015-03-19 01:42:31.749321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3582f100-cdd9-11e4-91f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '358594b4-cdd9-11e4-9734-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3582f100-cdd9-11e4-91f8-705681abff85"], ["organization_id", "358594b4-cdd9-11e4-9734-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.753403"], ["updated_at", "2015-03-19 01:42:31.753403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3583f51e-cdd9-11e4-9326-705681abff85' AND "clubhouse_memberships"."organization_id" = '358594b4-cdd9-11e4-9734-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3583f51e-cdd9-11e4-9326-705681abff85"], ["organization_id", "358594b4-cdd9-11e4-9734-705681abff85"], ["created_at", "2015-03-19 01:42:31.757503"], ["updated_at", "2015-03-19 01:42:31.757503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/3586345a-cdd9-11e4-af66-705681abff85" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"3586345a-cdd9-11e4-af66-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:31.762491' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rlKKcmJQHP9phfTpdV2C-sCcjmEdIuq5eAJ0qZTch90"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:31.764270"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:31.765471"], ["id", "3584a374-cdd9-11e4-b6eb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "3586345a-cdd9-11e4-af66-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3582f100-cdd9-11e4-91f8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "358594b4-cdd9-11e4-9734-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3582f100-cdd9-11e4-91f8-705681abff85' LIMIT 1 [["organization_id", "358594b4-cdd9-11e4-9734-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3582f100-cdd9-11e4-91f8-705681abff85"]] Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$NUYHuLvhTRga1WzW4fWFZ.gHn6v85rVUYbx.s.4c13i8VrwTsUWtO"], ["created_at", "2015-03-19 01:42:31.779264"], ["updated_at", "2015-03-19 01:42:31.779264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$eQx.SGfAdUQD2DLc/o0b1.8FV7PEL9nykKyzX0GkQo.EYfbd2Tloy"], ["created_at", "2015-03-19 01:42:31.784033"], ["updated_at", "2015-03-19 01:42:31.784033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.786019"], ["user_id", "358a20f6-cdd9-11e4-9676-705681abff85"], ["created_at", "2015-03-19 01:42:31.786829"], ["updated_at", "2015-03-19 01:42:31.786829"], ["token", "NRAWZH8T2upjwci-mrW_WT3xWtlcpDa0amqCRlpJ_aM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.790545"], ["updated_at", "2015-03-19 01:42:31.790545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '358a20f6-cdd9-11e4-9676-705681abff85' AND "clubhouse_memberships"."organization_id" = '358bd5cc-cdd9-11e4-865a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "358a20f6-cdd9-11e4-9676-705681abff85"], ["organization_id", "358bd5cc-cdd9-11e4-865a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.793903"], ["updated_at", "2015-03-19 01:42:31.793903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '358ae2d4-cdd9-11e4-84fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '358bd5cc-cdd9-11e4-865a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "358ae2d4-cdd9-11e4-84fb-705681abff85"], ["organization_id", "358bd5cc-cdd9-11e4-865a-705681abff85"], ["created_at", "2015-03-19 01:42:31.797201"], ["updated_at", "2015-03-19 01:42:31.797201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$W7dLlUTVOF.9RROcceRpr.uTOlfEq23MSF3GN/rdw.Cwgk0E3QJrW"], ["created_at", "2015-03-19 01:42:31.801916"], ["updated_at", "2015-03-19 01:42:31.801916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.803643"], ["user_id", "358d939e-cdd9-11e4-8e49-705681abff85"], ["created_at", "2015-03-19 01:42:31.804862"], ["updated_at", "2015-03-19 01:42:31.804862"], ["token", "Hnb_4JtscTD4bu1pQ-fm3Ue_3u3PtlYTI99uvjDcQEc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '358bd5cc-cdd9-11e4-865a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "358bd5cc-cdd9-11e4-865a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.810677"], ["updated_at", "2015-03-19 01:42:31.810677"], ["token", "VNC-LC3y8Wa9YhmSgJuaCYFnqTjb5qVN7OFavFHj7TM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$fkceSbUU4cJW/HWzSwFOH.zTeCj/CGlj5lWm1tiCcwZdXW3fjb6TO"], ["created_at", "2015-03-19 01:42:31.831696"], ["updated_at", "2015-03-19 01:42:31.831696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$uewZbLn/rgbcagrChN/G3u8YEHQEiEZ6sgA/ZzwYShqAh4rbPLHWG"], ["created_at", "2015-03-19 01:42:31.837084"], ["updated_at", "2015-03-19 01:42:31.837084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.839009"], ["user_id", "3592297c-cdd9-11e4-affc-705681abff85"], ["created_at", "2015-03-19 01:42:31.839843"], ["updated_at", "2015-03-19 01:42:31.839843"], ["token", "EGbANXK3LeC4VvX4KnfPlJFt6OYfu65-Q-9E5h4D438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.843826"], ["updated_at", "2015-03-19 01:42:31.843826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3592297c-cdd9-11e4-affc-705681abff85' AND "clubhouse_memberships"."organization_id" = '3593fca2-cdd9-11e4-b663-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3592297c-cdd9-11e4-affc-705681abff85"], ["organization_id", "3593fca2-cdd9-11e4-b663-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.848484"], ["updated_at", "2015-03-19 01:42:31.848484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3592f85c-cdd9-11e4-a4fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '3593fca2-cdd9-11e4-b663-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3592f85c-cdd9-11e4-a4fe-705681abff85"], ["organization_id", "3593fca2-cdd9-11e4-b663-705681abff85"], ["created_at", "2015-03-19 01:42:31.852914"], ["updated_at", "2015-03-19 01:42:31.852914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$WrrmyZezbRWPrWJkZTxhJ.OoPgvLy5/mKcMPOYMqNbbnqWbbF2db2"], ["created_at", "2015-03-19 01:42:31.858702"], ["updated_at", "2015-03-19 01:42:31.858702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.860350"], ["user_id", "3596414c-cdd9-11e4-bdda-705681abff85"], ["created_at", "2015-03-19 01:42:31.861149"], ["updated_at", "2015-03-19 01:42:31.861149"], ["token", "4G4QVvYQKoCJ72V2EgIPyAIzKSY7BKPMnPcP3qofcd8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '3593fca2-cdd9-11e4-b663-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "3593fca2-cdd9-11e4-b663-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.867055"], ["updated_at", "2015-03-19 01:42:31.867055"], ["token", "_QFWoP_zT_0I6DEzF6BKvDt2yO0fTIB5N4qJpGI9Xhg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"_QFWoP_zT_0I6DEzF6BKvDt2yO0fTIB5N4qJpGI9Xhg", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:31.874973' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4G4QVvYQKoCJ72V2EgIPyAIzKSY7BKPMnPcP3qofcd8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:31.876530"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:31.878147"], ["id", "3596a5ce-cdd9-11e4-b119-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3596414c-cdd9-11e4-bdda-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "_QFWoP_zT_0I6DEzF6BKvDt2yO0fTIB5N4qJpGI9Xhg"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3593fca2-cdd9-11e4-b663-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3596414c-cdd9-11e4-bdda-705681abff85' AND "clubhouse_memberships"."organization_id" = '3593fca2-cdd9-11e4-b663-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "3593fca2-cdd9-11e4-b663-705681abff85"], ["member_id", "3596414c-cdd9-11e4-bdda-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.885420"], ["updated_at", "2015-03-19 01:42:31.885420"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "3597c116-cdd9-11e4-98a7-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 3.8ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$IrJJHq22enXWJTvgz4n15udSkh572IQwXMxhIe.oMg/CT8CA/mWcG"], ["created_at", "2015-03-19 01:42:31.902693"], ["updated_at", "2015-03-19 01:42:31.902693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$CFv/iyA/jIx8K3LD816bNu1FMmvlzm3n2H4QBFDxnNsWzf9n/2uFa"], ["created_at", "2015-03-19 01:42:31.907026"], ["updated_at", "2015-03-19 01:42:31.907026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.909295"], ["user_id", "359cf834-cdd9-11e4-9cf5-705681abff85"], ["created_at", "2015-03-19 01:42:31.910170"], ["updated_at", "2015-03-19 01:42:31.910170"], ["token", "7fqRPUGQcD3Lccz5TBVmNKlI3xjCClq07XMvJKAqaww"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.915112"], ["updated_at", "2015-03-19 01:42:31.915112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '359cf834-cdd9-11e4-9cf5-705681abff85' AND "clubhouse_memberships"."organization_id" = '359edea6-cdd9-11e4-9bf4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "359cf834-cdd9-11e4-9cf5-705681abff85"], ["organization_id", "359edea6-cdd9-11e4-9bf4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.919075"], ["updated_at", "2015-03-19 01:42:31.919075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '359dafae-cdd9-11e4-a3ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '359edea6-cdd9-11e4-9bf4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "359dafae-cdd9-11e4-a3ed-705681abff85"], ["organization_id", "359edea6-cdd9-11e4-9bf4-705681abff85"], ["created_at", "2015-03-19 01:42:31.924509"], ["updated_at", "2015-03-19 01:42:31.924509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$E.wrcHPiBN7zNOs2opOlte82TjW6VFHwyVFuOrqNTVipJd6PpKffC"], ["created_at", "2015-03-19 01:42:31.929248"], ["updated_at", "2015-03-19 01:42:31.929248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.931386"], ["user_id", "35a10d70-cdd9-11e4-a60a-705681abff85"], ["created_at", "2015-03-19 01:42:31.932301"], ["updated_at", "2015-03-19 01:42:31.932301"], ["token", "9Ci8MGE0KZh_7Z_ynU9bpheYAVLQhoOu4vi_ZURWkFs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '359edea6-cdd9-11e4-9bf4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "359edea6-cdd9-11e4-9bf4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:31.937311"], ["updated_at", "2015-03-19 01:42:31.937311"], ["token", "1Np632vZC2z680kvaklropZFZx4BsqZs9pvF2fhWN8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:42:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:31.944681' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9Ci8MGE0KZh_7Z_ynU9bpheYAVLQhoOu4vi_ZURWkFs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:31.947603"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:31.958621"], ["id", "35a1a226-cdd9-11e4-a321-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35a10d70-cdd9-11e4-a60a-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 21ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$wVWKlswKeA4zkCKvK751FeIRPX21b9AXokM5XI9h4DZKnuhOn.U0i"], ["created_at", "2015-03-19 01:42:31.971579"], ["updated_at", "2015-03-19 01:42:31.971579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$rZOt2NNdqD9FwSCnkEccHuROSNOEiOwLhSWIhx4bKWP9zO1Nsgg02"], ["created_at", "2015-03-19 01:42:31.977189"], ["updated_at", "2015-03-19 01:42:31.977189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:31.979668"], ["user_id", "35a77c50-cdd9-11e4-aa32-705681abff85"], ["created_at", "2015-03-19 01:42:31.986838"], ["updated_at", "2015-03-19 01:42:31.986838"], ["token", "aVhYpUWHvzq9lJeYRGmi2kGY7J52s7dvo8CHqAsYLtQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:31.991164"], ["updated_at", "2015-03-19 01:42:31.991164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35a77c50-cdd9-11e4-aa32-705681abff85' AND "clubhouse_memberships"."organization_id" = '35aa77ac-cdd9-11e4-8569-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35a77c50-cdd9-11e4-aa32-705681abff85"], ["organization_id", "35aa77ac-cdd9-11e4-8569-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:32.003473"], ["updated_at", "2015-03-19 01:42:32.003473"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (8.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35a86476-cdd9-11e4-b988-705681abff85' AND "clubhouse_memberships"."organization_id" = '35aa77ac-cdd9-11e4-8569-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35a86476-cdd9-11e4-b988-705681abff85"], ["organization_id", "35aa77ac-cdd9-11e4-8569-705681abff85"], ["created_at", "2015-03-19 01:42:32.018572"], ["updated_at", "2015-03-19 01:42:32.018572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:42:32 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (5.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$NjChFh3UENY1BdIMS/hWPuiJxko6uTOoNEoEO4wKYc6vk.f4w9QRu"], ["created_at", "2015-03-19 01:42:32.039295"], ["updated_at", "2015-03-19 01:42:32.039295"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$DIMHp/oZh/pQHK6AgNc2WuMuZjt/Er/4S9JgmKMo0EHoyWXcDe.rm"], ["created_at", "2015-03-19 01:42:32.061447"], ["updated_at", "2015-03-19 01:42:32.061447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:42:32.065042"], ["user_id", "35b20468-cdd9-11e4-94f5-705681abff85"], ["created_at", "2015-03-19 01:42:32.072853"], ["updated_at", "2015-03-19 01:42:32.072853"], ["token", "3fSbOukmhUTiVv5yYw5uWmBKG91sSuB2k6Za8qDNnos"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:42:32.086473"], ["updated_at", "2015-03-19 01:42:32.086473"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35b20468-cdd9-11e4-94f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '35ba6266-cdd9-11e4-a1c7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35b20468-cdd9-11e4-94f5-705681abff85"], ["organization_id", "35ba6266-cdd9-11e4-a1c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:42:32.126034"], ["updated_at", "2015-03-19 01:42:32.126034"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35b55e9c-cdd9-11e4-9fd5-705681abff85' AND "clubhouse_memberships"."organization_id" = '35ba6266-cdd9-11e4-a1c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35b55e9c-cdd9-11e4-9fd5-705681abff85"], ["organization_id", "35ba6266-cdd9-11e4-a1c7-705681abff85"], ["created_at", "2015-03-19 01:42:32.134561"], ["updated_at", "2015-03-19 01:42:32.134561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:42:32 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:42:32.143065' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3fSbOukmhUTiVv5yYw5uWmBKG91sSuB2k6Za8qDNnos"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:42:32.145254"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:42:32.146909"], ["id", "35b71700-cdd9-11e4-adbf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35b20468-cdd9-11e4-94f5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '35b20468-cdd9-11e4-94f5-705681abff85' LIMIT 1 [["organization_id", "35ba6266-cdd9-11e4-a1c7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "35ba6266-cdd9-11e4-a1c7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35ba6266-cdd9-11e4-a1c7-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35b20468-cdd9-11e4-94f5-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "35ba6266-cdd9-11e4-a1c7-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35b55e9c-cdd9-11e4-9fd5-705681abff85"]] Completed 200 OK in 26ms (Views: 9.9ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (76.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$qXiZhIKIrv9HLi1WWBLbAOsPbJOS5ouY4zOXmzrzZ2dDSEpPsOk1W"], ["created_at", "2015-03-19 01:42:59.924676"], ["updated_at", "2015-03-19 01:42:59.924676"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (3.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$MOLZo4ExZEy8Op7B5cnyZeEGgVdNZVS48N4eUTHefVWh.zOarH6Ea"], ["created_at", "2015-03-19 01:43:00.007716"], ["updated_at", "2015-03-19 01:43:00.007716"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.053404"], ["user_id", "465c4170-cdd9-11e4-9c66-705681abff85"], ["created_at", "2015-03-19 01:43:00.060092"], ["updated_at", "2015-03-19 01:43:00.060092"], ["token", "1wP1zZyStlTaXMhMGwR9nGq3m5PWLm3NbvYlKB2ZOOQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.070251"], ["updated_at", "2015-03-19 01:43:00.070251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '465c4170-cdd9-11e4-9c66-705681abff85' AND "clubhouse_memberships"."organization_id" = '46670484-cdd9-11e4-becc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "465c4170-cdd9-11e4-9c66-705681abff85"], ["organization_id", "46670484-cdd9-11e4-becc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.082232"], ["updated_at", "2015-03-19 01:43:00.082232"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '465df8da-cdd9-11e4-aa02-705681abff85' AND "clubhouse_memberships"."organization_id" = '46670484-cdd9-11e4-becc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "465df8da-cdd9-11e4-aa02-705681abff85"], ["organization_id", "46670484-cdd9-11e4-becc-705681abff85"], ["created_at", "2015-03-19 01:43:00.086827"], ["updated_at", "2015-03-19 01:43:00.086827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/46670484-cdd9-11e4-becc-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"46670484-cdd9-11e4-becc-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:00.120440' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1wP1zZyStlTaXMhMGwR9nGq3m5PWLm3NbvYlKB2ZOOQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:00.127914"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:00.129258"], ["id", "466588ac-cdd9-11e4-9feb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "46670484-cdd9-11e4-becc-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "465c4170-cdd9-11e4-9c66-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '465c4170-cdd9-11e4-9c66-705681abff85' LIMIT 1 [["organization_id", "46670484-cdd9-11e4-becc-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "46670484-cdd9-11e4-becc-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46670484-cdd9-11e4-becc-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "465c4170-cdd9-11e4-9c66-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46670484-cdd9-11e4-becc-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "465df8da-cdd9-11e4-aa02-705681abff85"]] Completed 200 OK in 42ms (Views: 10.1ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$XQIc3UnckKso9c8jx0J9ceWX4hOXfSUz2NdGLnpPrRSX4t1FWXqbm"], ["created_at", "2015-03-19 01:43:00.170255"], ["updated_at", "2015-03-19 01:43:00.170255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$LOw6YLfbQljKwZUyt4Hpy.GDAx482MTPo8iogCZao9S7phC2F/7Rm"], ["created_at", "2015-03-19 01:43:00.175510"], ["updated_at", "2015-03-19 01:43:00.175510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.177267"], ["user_id", "46763fda-cdd9-11e4-96a9-705681abff85"], ["created_at", "2015-03-19 01:43:00.178072"], ["updated_at", "2015-03-19 01:43:00.178072"], ["token", "qLMvfO83mE9j5ptIxZhbpptInEH9zZYBwXqO6Tvklh8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.181811"], ["updated_at", "2015-03-19 01:43:00.181811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46763fda-cdd9-11e4-96a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '467818aa-cdd9-11e4-8016-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46763fda-cdd9-11e4-96a9-705681abff85"], ["organization_id", "467818aa-cdd9-11e4-8016-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.186519"], ["updated_at", "2015-03-19 01:43:00.186519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46770e06-cdd9-11e4-8b0b-705681abff85' AND "clubhouse_memberships"."organization_id" = '467818aa-cdd9-11e4-8016-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46770e06-cdd9-11e4-8b0b-705681abff85"], ["organization_id", "467818aa-cdd9-11e4-8016-705681abff85"], ["created_at", "2015-03-19 01:43:00.192780"], ["updated_at", "2015-03-19 01:43:00.192780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 3ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$v5lovB/GOLdoIwdyzmYkSuLFsAZb32qIew.ITdQLV6jte6R7bb27m"], ["created_at", "2015-03-19 01:43:00.209681"], ["updated_at", "2015-03-19 01:43:00.209681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$7kmYUaRX77giGV9ynlaIMu3v.rA4wolptjLJwyA9x4ppxGItMcCqO"], ["created_at", "2015-03-19 01:43:00.216269"], ["updated_at", "2015-03-19 01:43:00.216269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.218538"], ["user_id", "467c58fc-cdd9-11e4-88c8-705681abff85"], ["created_at", "2015-03-19 01:43:00.219515"], ["updated_at", "2015-03-19 01:43:00.219515"], ["token", "5kIgk3Pd15TaUCPJiCoqTjyVaiz4jseIvb0ukivL6Ws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.224021"], ["updated_at", "2015-03-19 01:43:00.224021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '467c58fc-cdd9-11e4-88c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '467e742a-cdd9-11e4-8ded-705681abff85') LIMIT 1 SQL (6.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "467c58fc-cdd9-11e4-88c8-705681abff85"], ["organization_id", "467e742a-cdd9-11e4-8ded-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.227896"], ["updated_at", "2015-03-19 01:43:00.227896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '467d51da-cdd9-11e4-b17d-705681abff85' AND "clubhouse_memberships"."organization_id" = '467e742a-cdd9-11e4-8ded-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "467d51da-cdd9-11e4-b17d-705681abff85"], ["organization_id", "467e742a-cdd9-11e4-8ded-705681abff85"], ["created_at", "2015-03-19 01:43:00.238414"], ["updated_at", "2015-03-19 01:43:00.238414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:00.244011' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5kIgk3Pd15TaUCPJiCoqTjyVaiz4jseIvb0ukivL6Ws"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:00.246370"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:00.247893"], ["id", "467dd772-cdd9-11e4-b8ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "467c58fc-cdd9-11e4-88c8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '467c58fc-cdd9-11e4-88c8-705681abff85' LIMIT 1 [["organization_id", "467e742a-cdd9-11e4-8ded-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "467e742a-cdd9-11e4-8ded-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "467e742a-cdd9-11e4-8ded-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "467c58fc-cdd9-11e4-88c8-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "467e742a-cdd9-11e4-8ded-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "467d51da-cdd9-11e4-b17d-705681abff85"]] Completed 200 OK in 19ms (Views: 5.7ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$lMF7TrhQasIiuJbUCkZX4e.UJSi7E2nQO51skSTlEXGPGVS.VTMtu"], ["created_at", "2015-03-19 01:43:00.268976"], ["updated_at", "2015-03-19 01:43:00.268976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$HirF/wqaG3hvlz6.VonwM.4yceGWd4GNmUGwm4cLxb/3SRewUP2YK"], ["created_at", "2015-03-19 01:43:00.273605"], ["updated_at", "2015-03-19 01:43:00.273605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.275588"], ["user_id", "46855254-cdd9-11e4-b013-705681abff85"], ["created_at", "2015-03-19 01:43:00.276636"], ["updated_at", "2015-03-19 01:43:00.276636"], ["token", "xnpDCSkyjBWMlIxqJSruklCDav1uJ9MfS6xyEZQI0wI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.280952"], ["updated_at", "2015-03-19 01:43:00.280952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46855254-cdd9-11e4-b013-705681abff85' AND "clubhouse_memberships"."organization_id" = '468727a0-cdd9-11e4-9849-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46855254-cdd9-11e4-b013-705681abff85"], ["organization_id", "468727a0-cdd9-11e4-9849-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.285620"], ["updated_at", "2015-03-19 01:43:00.285620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '468607ee-cdd9-11e4-a7c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '468727a0-cdd9-11e4-9849-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "468607ee-cdd9-11e4-a7c8-705681abff85"], ["organization_id", "468727a0-cdd9-11e4-9849-705681abff85"], ["created_at", "2015-03-19 01:43:00.289966"], ["updated_at", "2015-03-19 01:43:00.289966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$8r2D7JwV9AvEady/gnETouGRgF/JgLoGmoJV0fEk5Y7cFskqLvBLa"], ["created_at", "2015-03-19 01:43:00.302110"], ["updated_at", "2015-03-19 01:43:00.302110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$e7g.w53WTZFIj0v5mmd7WuYwxNbYSnelSfgEw8HMoXWAlQuHPm6QS"], ["created_at", "2015-03-19 01:43:00.306457"], ["updated_at", "2015-03-19 01:43:00.306457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.308105"], ["user_id", "468a5f1a-cdd9-11e4-bf22-705681abff85"], ["created_at", "2015-03-19 01:43:00.308938"], ["updated_at", "2015-03-19 01:43:00.308938"], ["token", "dH1ijcgHsN6BXceN-YkEgBa73Ah58O6TWDiZlYhaBOI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.314395"], ["updated_at", "2015-03-19 01:43:00.314395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '468a5f1a-cdd9-11e4-bf22-705681abff85' AND "clubhouse_memberships"."organization_id" = '468c419a-cdd9-11e4-a656-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "468a5f1a-cdd9-11e4-bf22-705681abff85"], ["organization_id", "468c419a-cdd9-11e4-a656-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.319915"], ["updated_at", "2015-03-19 01:43:00.319915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '468b05b4-cdd9-11e4-9570-705681abff85' AND "clubhouse_memberships"."organization_id" = '468c419a-cdd9-11e4-a656-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "468b05b4-cdd9-11e4-9570-705681abff85"], ["organization_id", "468c419a-cdd9-11e4-a656-705681abff85"], ["created_at", "2015-03-19 01:43:00.324256"], ["updated_at", "2015-03-19 01:43:00.324256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/468dbce6-cdd9-11e4-a57c-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"468dbce6-cdd9-11e4-a57c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:00.329023' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dH1ijcgHsN6BXceN-YkEgBa73Ah58O6TWDiZlYhaBOI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:00.330415"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:00.331317"], ["id", "468b7846-cdd9-11e4-86d1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "468dbce6-cdd9-11e4-a57c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "468a5f1a-cdd9-11e4-bf22-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "468c419a-cdd9-11e4-a656-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '468a5f1a-cdd9-11e4-bf22-705681abff85' LIMIT 1 [["organization_id", "468c419a-cdd9-11e4-a656-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "468b05b4-cdd9-11e4-9570-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "468dbce6-cdd9-11e4-a57c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$4UBRXJeBOvy7zr/abLLW3OeYUeyhTGZHB2WcD0c6Md/RJUmmf2nRu"], ["created_at", "2015-03-19 01:43:00.343691"], ["updated_at", "2015-03-19 01:43:00.343691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$gYnTbUVbHqLhTN1YtM5l8eMa6UVdN04y3Ehti4nGy8zr/f..zqCdm"], ["created_at", "2015-03-19 01:43:00.348832"], ["updated_at", "2015-03-19 01:43:00.348832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.350605"], ["user_id", "4690ba2c-cdd9-11e4-ac56-705681abff85"], ["created_at", "2015-03-19 01:43:00.351361"], ["updated_at", "2015-03-19 01:43:00.351361"], ["token", "Yne-0Soi5bMo4PsI-T4CAuPzCvCYKBLV72N5ABWPMGg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.355469"], ["updated_at", "2015-03-19 01:43:00.355469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4690ba2c-cdd9-11e4-ac56-705681abff85' AND "clubhouse_memberships"."organization_id" = '469286ae-cdd9-11e4-a8ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4690ba2c-cdd9-11e4-ac56-705681abff85"], ["organization_id", "469286ae-cdd9-11e4-a8ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.359235"], ["updated_at", "2015-03-19 01:43:00.359235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46918376-cdd9-11e4-83b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '469286ae-cdd9-11e4-a8ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46918376-cdd9-11e4-83b1-705681abff85"], ["organization_id", "469286ae-cdd9-11e4-a8ab-705681abff85"], ["created_at", "2015-03-19 01:43:00.362993"], ["updated_at", "2015-03-19 01:43:00.362993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$wnhk/qDxsMqsy0RT46voCeAHWYCj4apmah9zHmj4HJSvy4r1c0xaK"], ["created_at", "2015-03-19 01:43:00.373907"], ["updated_at", "2015-03-19 01:43:00.373907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$MQc6hYqZRA8yD6op3Kp0Je0MSmM7wNN./pfTWmrE5HRWUlGq7RzmW"], ["created_at", "2015-03-19 01:43:00.379748"], ["updated_at", "2015-03-19 01:43:00.379748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.390099"], ["user_id", "46956252-cdd9-11e4-b20b-705681abff85"], ["created_at", "2015-03-19 01:43:00.391309"], ["updated_at", "2015-03-19 01:43:00.391309"], ["token", "IeI1nJx_AoU15aYTVfGNUXyNmTwExH0_oh_MZZiovPs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.394945"], ["updated_at", "2015-03-19 01:43:00.394945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46956252-cdd9-11e4-b20b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4698850e-cdd9-11e4-b0f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46956252-cdd9-11e4-b20b-705681abff85"], ["organization_id", "4698850e-cdd9-11e4-b0f9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.398118"], ["updated_at", "2015-03-19 01:43:00.398118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46964942-cdd9-11e4-8570-705681abff85' AND "clubhouse_memberships"."organization_id" = '4698850e-cdd9-11e4-b0f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46964942-cdd9-11e4-8570-705681abff85"], ["organization_id", "4698850e-cdd9-11e4-b0f9-705681abff85"], ["created_at", "2015-03-19 01:43:00.401089"], ["updated_at", "2015-03-19 01:43:00.401089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/46990178-cdd9-11e4-bd83-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"46990178-cdd9-11e4-bd83-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:00.405675' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IeI1nJx_AoU15aYTVfGNUXyNmTwExH0_oh_MZZiovPs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:00.407177"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:00.408102"], ["id", "4698032c-cdd9-11e4-96c0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "46990178-cdd9-11e4-bd83-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46956252-cdd9-11e4-b20b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4698850e-cdd9-11e4-b0f9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '46956252-cdd9-11e4-b20b-705681abff85' LIMIT 1 [["organization_id", "4698850e-cdd9-11e4-b0f9-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46956252-cdd9-11e4-b20b-705681abff85"]] Completed 200 OK in 9ms (Views: 1.5ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$hWMlhUwHNvhlFNsbuXZqvuhozslyRLaa7xDajDGh1m/QSi9NSCFjm"], ["created_at", "2015-03-19 01:43:00.420979"], ["updated_at", "2015-03-19 01:43:00.420979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$Rro3tMDvHbEAu0jwxbySheboTZlM.6XwBCULTNdclO069OJKj09eC"], ["created_at", "2015-03-19 01:43:00.425134"], ["updated_at", "2015-03-19 01:43:00.425134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.426619"], ["user_id", "469c815e-cdd9-11e4-84e1-705681abff85"], ["created_at", "2015-03-19 01:43:00.427395"], ["updated_at", "2015-03-19 01:43:00.427395"], ["token", "sRWBL_Tuj2CYjCPYZWTnSrTP3yf04PLJZKInrfDvY6o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.430851"], ["updated_at", "2015-03-19 01:43:00.430851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '469c815e-cdd9-11e4-84e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '469e0466-cdd9-11e4-b58d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "469c815e-cdd9-11e4-84e1-705681abff85"], ["organization_id", "469e0466-cdd9-11e4-b58d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.434343"], ["updated_at", "2015-03-19 01:43:00.434343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '469d1fe2-cdd9-11e4-b30b-705681abff85' AND "clubhouse_memberships"."organization_id" = '469e0466-cdd9-11e4-b58d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "469d1fe2-cdd9-11e4-b30b-705681abff85"], ["organization_id", "469e0466-cdd9-11e4-b58d-705681abff85"], ["created_at", "2015-03-19 01:43:00.437593"], ["updated_at", "2015-03-19 01:43:00.437593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$ziSRianPzN3j4ZGbnWrChuHcCtXtT7ZqSSWG89rKNFQ8NIlZk.GUy"], ["created_at", "2015-03-19 01:43:00.448962"], ["updated_at", "2015-03-19 01:43:00.448962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$f7yXI4qaUUvnpKuqWZIXY.lqvxQuqEhWQH8V/MlLgdvVi5rRSdbe2"], ["created_at", "2015-03-19 01:43:00.454758"], ["updated_at", "2015-03-19 01:43:00.454758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.456488"], ["user_id", "46a0c9da-cdd9-11e4-8dae-705681abff85"], ["created_at", "2015-03-19 01:43:00.457409"], ["updated_at", "2015-03-19 01:43:00.457409"], ["token", "exGhiGBq19999kOSibepyRFfYmP2rnfOl4mTAiYenuU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.461629"], ["updated_at", "2015-03-19 01:43:00.461629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46a0c9da-cdd9-11e4-8dae-705681abff85' AND "clubhouse_memberships"."organization_id" = '46a2ce88-cdd9-11e4-87d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46a0c9da-cdd9-11e4-8dae-705681abff85"], ["organization_id", "46a2ce88-cdd9-11e4-87d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.465812"], ["updated_at", "2015-03-19 01:43:00.465812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46a1aa58-cdd9-11e4-8a7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '46a2ce88-cdd9-11e4-87d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46a1aa58-cdd9-11e4-8a7c-705681abff85"], ["organization_id", "46a2ce88-cdd9-11e4-87d9-705681abff85"], ["created_at", "2015-03-19 01:43:00.468913"], ["updated_at", "2015-03-19 01:43:00.468913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$TQZQrqtvC6hlPDtUZntjvOG6EC6ltMAe05U1JeBgKhIUEclxvWBNq"], ["created_at", "2015-03-19 01:43:00.473290"], ["updated_at", "2015-03-19 01:43:00.473290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.474932"], ["user_id", "46a47ddc-cdd9-11e4-9706-705681abff85"], ["created_at", "2015-03-19 01:43:00.475703"], ["updated_at", "2015-03-19 01:43:00.475703"], ["token", "02t5RqXJcbgsNnYLpJxIhNtse87WvP6JW0v1MwSqJzA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '46a2ce88-cdd9-11e4-87d9-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "46a2ce88-cdd9-11e4-87d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.486962"], ["updated_at", "2015-03-19 01:43:00.486962"], ["token", "J9I4O93A5SwYcnwTSPHswx1L48LI8PBJM_5xPgiUSrQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$UX/5p0G4N2./wYKG2la2f.vo3GzsF9GU6t3nx/00DyFWM35byn9bG"], ["created_at", "2015-03-19 01:43:00.499983"], ["updated_at", "2015-03-19 01:43:00.499983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$oGGlXYWDTOkKoi2PY5jh8.cQ0te0pQ48wg8qs4BS0XIN2YTHqvArC"], ["created_at", "2015-03-19 01:43:00.504036"], ["updated_at", "2015-03-19 01:43:00.504036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.505448"], ["user_id", "46a88f94-cdd9-11e4-bd0e-705681abff85"], ["created_at", "2015-03-19 01:43:00.506204"], ["updated_at", "2015-03-19 01:43:00.506204"], ["token", "BZRTeMCx0X7MRd30QN7-Mc7E1P7IWTSyOG3aV8UYu8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.510213"], ["updated_at", "2015-03-19 01:43:00.510213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46a88f94-cdd9-11e4-bd0e-705681abff85' AND "clubhouse_memberships"."organization_id" = '46aa26ce-cdd9-11e4-898d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46a88f94-cdd9-11e4-bd0e-705681abff85"], ["organization_id", "46aa26ce-cdd9-11e4-898d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.514245"], ["updated_at", "2015-03-19 01:43:00.514245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46a9292c-cdd9-11e4-b742-705681abff85' AND "clubhouse_memberships"."organization_id" = '46aa26ce-cdd9-11e4-898d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46a9292c-cdd9-11e4-b742-705681abff85"], ["organization_id", "46aa26ce-cdd9-11e4-898d-705681abff85"], ["created_at", "2015-03-19 01:43:00.517691"], ["updated_at", "2015-03-19 01:43:00.517691"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$8H8hJPEuU7oQnVg18rA1X.uhKqkcmjAn4LoMt38hPrLEgQHKv/8oq"], ["created_at", "2015-03-19 01:43:00.522490"], ["updated_at", "2015-03-19 01:43:00.522490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.523994"], ["user_id", "46abfc60-cdd9-11e4-bc51-705681abff85"], ["created_at", "2015-03-19 01:43:00.524756"], ["updated_at", "2015-03-19 01:43:00.524756"], ["token", "By1VE5uvkNISzV7_ZkXJBls3peRdsX2T1muF2i9tvBc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '46aa26ce-cdd9-11e4-898d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "46aa26ce-cdd9-11e4-898d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.528920"], ["updated_at", "2015-03-19 01:43:00.528920"], ["token", "j5DshDJKG6pZDnPf3d2cy4oTIv0YFBs4Fz9k66NaoqY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:00.537338' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "By1VE5uvkNISzV7_ZkXJBls3peRdsX2T1muF2i9tvBc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:00.538812"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:00.539783"], ["id", "46ac5a5c-cdd9-11e4-ba1d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46abfc60-cdd9-11e4-bc51-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$aOyPUWdfgxfnrBW2MTmF/.sZ5PdrL241dwmzgujDZ.siKzyFsjdIC"], ["created_at", "2015-03-19 01:43:00.555109"], ["updated_at", "2015-03-19 01:43:00.555109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$7hCm9Gl79dKW8mhwua55Le9uVsR/0MKg7Wnun1l.1BYxOovlwmRji"], ["created_at", "2015-03-19 01:43:00.559593"], ["updated_at", "2015-03-19 01:43:00.559593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.561327"], ["user_id", "46b0fbac-cdd9-11e4-bf95-705681abff85"], ["created_at", "2015-03-19 01:43:00.562187"], ["updated_at", "2015-03-19 01:43:00.562187"], ["token", "mGKd6_TBbRCqG3r1eypbwqOBZ8GeAqAFtzHcYL_0UFM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.565565"], ["updated_at", "2015-03-19 01:43:00.565565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46b0fbac-cdd9-11e4-bf95-705681abff85' AND "clubhouse_memberships"."organization_id" = '46b29110-cdd9-11e4-9217-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46b0fbac-cdd9-11e4-bf95-705681abff85"], ["organization_id", "46b29110-cdd9-11e4-9217-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.569576"], ["updated_at", "2015-03-19 01:43:00.569576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46b1a5ac-cdd9-11e4-97f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '46b29110-cdd9-11e4-9217-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46b1a5ac-cdd9-11e4-97f1-705681abff85"], ["organization_id", "46b29110-cdd9-11e4-9217-705681abff85"], ["created_at", "2015-03-19 01:43:00.573112"], ["updated_at", "2015-03-19 01:43:00.573112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$b7i888M2W49djLde0w4ZZOkg9p51cR/BAlXpHNhVJHd0zMWAuH7r6"], ["created_at", "2015-03-19 01:43:00.578093"], ["updated_at", "2015-03-19 01:43:00.578093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.579752"], ["user_id", "46b47b56-cdd9-11e4-956f-705681abff85"], ["created_at", "2015-03-19 01:43:00.580520"], ["updated_at", "2015-03-19 01:43:00.580520"], ["token", "1ReMwcTU2xx9qbmVG-YvUHwTVhpaxMr_ANZ0Fr8axsM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '46b29110-cdd9-11e4-9217-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "46b29110-cdd9-11e4-9217-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.584315"], ["updated_at", "2015-03-19 01:43:00.584315"], ["token", "8M72H_vH_Bs_4Hvxde2ZaJ1O0RfbJvrP1T2Hnahb7mM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"8M72H_vH_Bs_4Hvxde2ZaJ1O0RfbJvrP1T2Hnahb7mM", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:00.589721' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1ReMwcTU2xx9qbmVG-YvUHwTVhpaxMr_ANZ0Fr8axsM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:00.591296"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:00.592258"], ["id", "46b4dfec-cdd9-11e4-9008-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46b47b56-cdd9-11e4-956f-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "8M72H_vH_Bs_4Hvxde2ZaJ1O0RfbJvrP1T2Hnahb7mM"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46b29110-cdd9-11e4-9217-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46b47b56-cdd9-11e4-956f-705681abff85' AND "clubhouse_memberships"."organization_id" = '46b29110-cdd9-11e4-9217-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "46b29110-cdd9-11e4-9217-705681abff85"], ["member_id", "46b47b56-cdd9-11e4-956f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.600624"], ["updated_at", "2015-03-19 01:43:00.600624"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "46b573d0-cdd9-11e4-b336-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (3.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$XuqKbEq4Vcspflhu2tueQOE9VcGLWZUTiIv1mEaiG0nySnt18cdee"], ["created_at", "2015-03-19 01:43:00.632281"], ["updated_at", "2015-03-19 01:43:00.632281"]]  (10.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$dE5mae7H2/FgrnnGh4ZVYO40tvSsa4SWKb4MERpb8pwXmx2loa0zG"], ["created_at", "2015-03-19 01:43:00.657658"], ["updated_at", "2015-03-19 01:43:00.657658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.660027"], ["user_id", "46bcd51c-cdd9-11e4-a007-705681abff85"], ["created_at", "2015-03-19 01:43:00.663475"], ["updated_at", "2015-03-19 01:43:00.663475"], ["token", "mMNzrc4iUSyg9H9GkGEmGc1YZOuAV45TgikS_aZYmH8"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.702227"], ["updated_at", "2015-03-19 01:43:00.702227"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46bcd51c-cdd9-11e4-a007-705681abff85' AND "clubhouse_memberships"."organization_id" = '46c7beb4-cdd9-11e4-8041-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46bcd51c-cdd9-11e4-a007-705681abff85"], ["organization_id", "46c7beb4-cdd9-11e4-8041-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.714748"], ["updated_at", "2015-03-19 01:43:00.714748"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46c0ab24-cdd9-11e4-ae5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '46c7beb4-cdd9-11e4-8041-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46c0ab24-cdd9-11e4-ae5d-705681abff85"], ["organization_id", "46c7beb4-cdd9-11e4-8041-705681abff85"], ["created_at", "2015-03-19 01:43:00.729077"], ["updated_at", "2015-03-19 01:43:00.729077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/46cb925a-cdd9-11e4-a41a-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"46cb925a-cdd9-11e4-a41a-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:00.734472' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mMNzrc4iUSyg9H9GkGEmGc1YZOuAV45TgikS_aZYmH8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:00.735967"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:00.737011"], ["id", "46c63544-cdd9-11e4-b5c9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "46cb925a-cdd9-11e4-a41a-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46bcd51c-cdd9-11e4-a007-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46c7beb4-cdd9-11e4-8041-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '46bcd51c-cdd9-11e4-a007-705681abff85' LIMIT 1 [["organization_id", "46c7beb4-cdd9-11e4-8041-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46c0ab24-cdd9-11e4-ae5d-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46c0ab24-cdd9-11e4-ae5d-705681abff85' AND "clubhouse_memberships"."id" != '46cb925a-cdd9-11e4-a41a-705681abff85' AND "clubhouse_memberships"."organization_id" = '46c7beb4-cdd9-11e4-8041-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:43:00.745767"], ["id", "46cb925a-cdd9-11e4-a41a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$eWIICqoQx8Eyj1kPJMxvNuE.kCpS76TFZfmTY8ozMAweOSvsq7fxi"], ["created_at", "2015-03-19 01:43:00.754512"], ["updated_at", "2015-03-19 01:43:00.754512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$jWtsxMFqPxRJ2qC4FUL.i.mFM/nSNePIwcB31jh7mQHHpSZcQcecW"], ["created_at", "2015-03-19 01:43:00.758619"], ["updated_at", "2015-03-19 01:43:00.758619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.760079"], ["user_id", "46cf6556-cdd9-11e4-aa9f-705681abff85"], ["created_at", "2015-03-19 01:43:00.760829"], ["updated_at", "2015-03-19 01:43:00.760829"], ["token", "iaXhw0L6AflI3DSOMpRS9olmnq8VX2tFd-m6GxTQ-dw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.765043"], ["updated_at", "2015-03-19 01:43:00.765043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46cf6556-cdd9-11e4-aa9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '46d0fff6-cdd9-11e4-8ea0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46cf6556-cdd9-11e4-aa9f-705681abff85"], ["organization_id", "46d0fff6-cdd9-11e4-8ea0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.768346"], ["updated_at", "2015-03-19 01:43:00.768346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46d0031c-cdd9-11e4-9b36-705681abff85' AND "clubhouse_memberships"."organization_id" = '46d0fff6-cdd9-11e4-8ea0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46d0031c-cdd9-11e4-9b36-705681abff85"], ["organization_id", "46d0fff6-cdd9-11e4-8ea0-705681abff85"], ["created_at", "2015-03-19 01:43:00.771382"], ["updated_at", "2015-03-19 01:43:00.771382"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$TGprXPp0FvZh/ghSIf6Dw.MKbA41RlQLnSZZcEpjofaIukChWgd7K"], ["created_at", "2015-03-19 01:43:00.784306"], ["updated_at", "2015-03-19 01:43:00.784306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$mB4lyUNzCpvx1Zi4KnTLHew5o7dTTtMH5WFHdTWPoQ.hnkYihZb7O"], ["created_at", "2015-03-19 01:43:00.790781"], ["updated_at", "2015-03-19 01:43:00.790781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.792621"], ["user_id", "46d413e4-cdd9-11e4-89df-705681abff85"], ["created_at", "2015-03-19 01:43:00.793426"], ["updated_at", "2015-03-19 01:43:00.793426"], ["token", "uhD8kGhMhTtCnYG1cWRHxJcatJISDeMx_HzuJ7jzOJQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.797720"], ["updated_at", "2015-03-19 01:43:00.797720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46d413e4-cdd9-11e4-89df-705681abff85' AND "clubhouse_memberships"."organization_id" = '46d6143c-cdd9-11e4-9007-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46d413e4-cdd9-11e4-89df-705681abff85"], ["organization_id", "46d6143c-cdd9-11e4-9007-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.802067"], ["updated_at", "2015-03-19 01:43:00.802067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46d4f3e0-cdd9-11e4-bc3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '46d6143c-cdd9-11e4-9007-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46d4f3e0-cdd9-11e4-bc3b-705681abff85"], ["organization_id", "46d6143c-cdd9-11e4-9007-705681abff85"], ["created_at", "2015-03-19 01:43:00.805704"], ["updated_at", "2015-03-19 01:43:00.805704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$Gsg5qqhO4VfFxoaRqEoG8uWpVKWFGLhvYiUlvGX.tkGWKO7WIdgSG"], ["created_at", "2015-03-19 01:43:00.810932"], ["updated_at", "2015-03-19 01:43:00.810932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.813139"], ["user_id", "46d80fc6-cdd9-11e4-a5b5-705681abff85"], ["created_at", "2015-03-19 01:43:00.814253"], ["updated_at", "2015-03-19 01:43:00.814253"], ["token", "YPTVZt4Wee5alYL47Jft-fCeWKnT8ZtJwmUfNr-hfvU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '46d6143c-cdd9-11e4-9007-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "46d6143c-cdd9-11e4-9007-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.819506"], ["updated_at", "2015-03-19 01:43:00.819506"], ["token", "uJrlUZhGk9E1b1KimGRWqgtRsB-zG8ASrhZzSLQP6Z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$WY52tGBAk13I2goMcrx8GugMBDz3cN/ATM17lw4V7QlGHJ3MgI0Zq"], ["created_at", "2015-03-19 01:43:00.831270"], ["updated_at", "2015-03-19 01:43:00.831270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$mmrPobDfcNqBbU6ijh8h9uoL3BjTW5AtL.5ap7.VkJUtZQdVjGlwy"], ["created_at", "2015-03-19 01:43:00.836301"], ["updated_at", "2015-03-19 01:43:00.836301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.838250"], ["user_id", "46db20b2-cdd9-11e4-8417-705681abff85"], ["created_at", "2015-03-19 01:43:00.846922"], ["updated_at", "2015-03-19 01:43:00.846922"], ["token", "dwRQypr1RpA1ZN273mUnY40u3kG7_hZ_66Us-UtpEic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.851215"], ["updated_at", "2015-03-19 01:43:00.851215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46db20b2-cdd9-11e4-8417-705681abff85' AND "clubhouse_memberships"."organization_id" = '46de28fc-cdd9-11e4-84fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46db20b2-cdd9-11e4-8417-705681abff85"], ["organization_id", "46de28fc-cdd9-11e4-84fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.854865"], ["updated_at", "2015-03-19 01:43:00.854865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46dbe97a-cdd9-11e4-a5ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '46de28fc-cdd9-11e4-84fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46dbe97a-cdd9-11e4-a5ad-705681abff85"], ["organization_id", "46de28fc-cdd9-11e4-84fb-705681abff85"], ["created_at", "2015-03-19 01:43:00.858586"], ["updated_at", "2015-03-19 01:43:00.858586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$JJ6kUjFK6Z8fH73LX6QEhufeJ/rAolsAH.5P2t5hF3dW4h/qpu5m."], ["created_at", "2015-03-19 01:43:00.863872"], ["updated_at", "2015-03-19 01:43:00.863872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.865673"], ["user_id", "46e01946-cdd9-11e4-a66d-705681abff85"], ["created_at", "2015-03-19 01:43:00.866520"], ["updated_at", "2015-03-19 01:43:00.866520"], ["token", "NdhsUEQC0fd8n9Oi8Q92Jy_abltci4owxQ5Zd3w8hlE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '46de28fc-cdd9-11e4-84fb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "46de28fc-cdd9-11e4-84fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.870717"], ["updated_at", "2015-03-19 01:43:00.870717"], ["token", "tG7HMt0f5qw9Rbv4qu5HwHSK3tbakfKZ-a2f8AgNjVo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/46de28fc-cdd9-11e4-84fb-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"46de28fc-cdd9-11e4-84fb-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:00.876272' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NdhsUEQC0fd8n9Oi8Q92Jy_abltci4owxQ5Zd3w8hlE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:00.878082"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:00.879596"], ["id", "46e08dea-cdd9-11e4-b234-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "46de28fc-cdd9-11e4-84fb-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46e01946-cdd9-11e4-a66d-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$PDPAspgNlkY2iBFMiyPHH.dBfn1I81t59w0nfokdFwo4nP01/NGGO"], ["created_at", "2015-03-19 01:43:00.894120"], ["updated_at", "2015-03-19 01:43:00.894120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$RUDP460zlxfCBkweezYUnufmoqFIPEXbmF9OHQ6Gnr2D.hMKSOZWe"], ["created_at", "2015-03-19 01:43:00.898952"], ["updated_at", "2015-03-19 01:43:00.898952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.900700"], ["user_id", "46e4b8f2-cdd9-11e4-813f-705681abff85"], ["created_at", "2015-03-19 01:43:00.901515"], ["updated_at", "2015-03-19 01:43:00.901515"], ["token", "aF48bCv6_Gdk_FRt2yQFU5nU_-BU67WrtUDtmm4v6rc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.905507"], ["updated_at", "2015-03-19 01:43:00.905507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46e4b8f2-cdd9-11e4-813f-705681abff85' AND "clubhouse_memberships"."organization_id" = '46e6734a-cdd9-11e4-b448-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46e4b8f2-cdd9-11e4-813f-705681abff85"], ["organization_id", "46e6734a-cdd9-11e4-b448-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.909291"], ["updated_at", "2015-03-19 01:43:00.909291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46e57418-cdd9-11e4-acec-705681abff85' AND "clubhouse_memberships"."organization_id" = '46e6734a-cdd9-11e4-b448-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46e57418-cdd9-11e4-acec-705681abff85"], ["organization_id", "46e6734a-cdd9-11e4-b448-705681abff85"], ["created_at", "2015-03-19 01:43:00.913813"], ["updated_at", "2015-03-19 01:43:00.913813"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$6.na/SDeCa0IDk5UFCMApuAMSU1JNDaOCwriOD5axladJYC5juuBK"], ["created_at", "2015-03-19 01:43:00.919609"], ["updated_at", "2015-03-19 01:43:00.919609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.921774"], ["user_id", "46e89f44-cdd9-11e4-8ea3-705681abff85"], ["created_at", "2015-03-19 01:43:00.922952"], ["updated_at", "2015-03-19 01:43:00.922952"], ["token", "lEdorvfUH6RKNJPJ6L1fgWvsb_edajuKHTp7mm9DQl0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '46e6734a-cdd9-11e4-b448-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "46e6734a-cdd9-11e4-b448-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.928084"], ["updated_at", "2015-03-19 01:43:00.928084"], ["token", "PpPM9WIzytHVxdn9lsMTMUTpaW7ffPxmE3EuF1qYypk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/46e6734a-cdd9-11e4-b448-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"PpPM9WIzytHVxdn9lsMTMUTpaW7ffPxmE3EuF1qYypk", "organization_id"=>"46e6734a-cdd9-11e4-b448-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:00.935918' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lEdorvfUH6RKNJPJ6L1fgWvsb_edajuKHTp7mm9DQl0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:00.937777"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:00.938999"], ["id", "46e93800-cdd9-11e4-89bd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "46e6734a-cdd9-11e4-b448-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46e89f44-cdd9-11e4-8ea3-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "PpPM9WIzytHVxdn9lsMTMUTpaW7ffPxmE3EuF1qYypk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46e6734a-cdd9-11e4-b448-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46e89f44-cdd9-11e4-8ea3-705681abff85' AND "clubhouse_memberships"."organization_id" = '46e6734a-cdd9-11e4-b448-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "46e6734a-cdd9-11e4-b448-705681abff85"], ["member_id", "46e89f44-cdd9-11e4-8ea3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.947715"], ["updated_at", "2015-03-19 01:43:00.947715"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "46e9ea34-cdd9-11e4-8961-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.3ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$dMoijIZpIxRfEVkqOTY5t.Rc3oplLK536EnpzfKP2FQ7w6oa7DLla"], ["created_at", "2015-03-19 01:43:00.959205"], ["updated_at", "2015-03-19 01:43:00.959205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:00.961173"], ["user_id", "46eea51a-cdd9-11e4-93cd-705681abff85"], ["created_at", "2015-03-19 01:43:00.961990"], ["updated_at", "2015-03-19 01:43:00.961990"], ["token", "QYBCcLWeLlGqtufxDzgA7Lp_Bxl6NujxPvex9kdI9VA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.965813"], ["updated_at", "2015-03-19 01:43:00.965813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46eea51a-cdd9-11e4-93cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '46efa5fa-cdd9-11e4-9b92-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46eea51a-cdd9-11e4-93cd-705681abff85"], ["organization_id", "46efa5fa-cdd9-11e4-9b92-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:00.969515"], ["updated_at", "2015-03-19 01:43:00.969515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '46efa5fa-cdd9-11e4-9b92-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "46efa5fa-cdd9-11e4-9b92-705681abff85"], ["created_at", "2015-03-19 01:43:00.973494"], ["updated_at", "2015-03-19 01:43:00.973494"], ["token", "6cyJFJqTkpSTuUxWmjtZ2bZfXuRiodUbWnDqY03H-NU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$CjwteH8pID9WIBq7RYxgs.k8n2KU9kN8/vvVOYsh/9CmvaPkUudcm"], ["created_at", "2015-03-19 01:43:00.980851"], ["updated_at", "2015-03-19 01:43:00.980851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:00.985052"], ["updated_at", "2015-03-19 01:43:00.985052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46f1f670-cdd9-11e4-b93d-705681abff85' AND "clubhouse_memberships"."organization_id" = '46f29de6-cdd9-11e4-8385-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46f1f670-cdd9-11e4-b93d-705681abff85"], ["organization_id", "46f29de6-cdd9-11e4-8385-705681abff85"], ["created_at", "2015-03-19 01:43:00.989244"], ["updated_at", "2015-03-19 01:43:00.989244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/46efa5fa-cdd9-11e4-9b92-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:43:00 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"46efa5fa-cdd9-11e4-9b92-705681abff85", "invitation"=>{}} Pollett::Session Load (6.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:01.039967' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QYBCcLWeLlGqtufxDzgA7Lp_Bxl6NujxPvex9kdI9VA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:01.048900"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:01.050734"], ["id", "46ef1766-cdd9-11e4-95c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "46efa5fa-cdd9-11e4-9b92-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46eea51a-cdd9-11e4-93cd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '46eea51a-cdd9-11e4-93cd-705681abff85' LIMIT 1 [["organization_id", "46efa5fa-cdd9-11e4-9b92-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "46efa5fa-cdd9-11e4-9b92-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46efa5fa-cdd9-11e4-9b92-705681abff85"]] Completed 200 OK in 31ms (Views: 7.1ms | ActiveRecord: 8.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$DbtAUymypFdezrDhq2.5OeYglPk48zSczE6hxK0jy/fv8RwhUDiEy"], ["created_at", "2015-03-19 01:43:01.080076"], ["updated_at", "2015-03-19 01:43:01.080076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:01.082133"], ["user_id", "47011c40-cdd9-11e4-be50-705681abff85"], ["created_at", "2015-03-19 01:43:01.083742"], ["updated_at", "2015-03-19 01:43:01.083742"], ["token", "VPBijcYKdSxXVi_x1eI4TfKgZYp_QZQOCPCEyU5hF44"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.089205"], ["updated_at", "2015-03-19 01:43:01.089205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47011c40-cdd9-11e4-be50-705681abff85' AND "clubhouse_memberships"."organization_id" = '47027ae0-cdd9-11e4-935c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47011c40-cdd9-11e4-be50-705681abff85"], ["organization_id", "47027ae0-cdd9-11e4-935c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.093185"], ["updated_at", "2015-03-19 01:43:01.093185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '47027ae0-cdd9-11e4-935c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "47027ae0-cdd9-11e4-935c-705681abff85"], ["created_at", "2015-03-19 01:43:01.097360"], ["updated_at", "2015-03-19 01:43:01.097360"], ["token", "IWg_s4k3zOwd_bNN6SWQ4Kp14BgG7Q6tHx1Z4qqEbpc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$SETlutgRZdt9ed.U0d/Av.cgBHxCkTkjHz1INYqRIedGrbMdEIuAa"], ["created_at", "2015-03-19 01:43:01.102969"], ["updated_at", "2015-03-19 01:43:01.102969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.106470"], ["updated_at", "2015-03-19 01:43:01.106470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4704930c-cdd9-11e4-9811-705681abff85' AND "clubhouse_memberships"."organization_id" = '47051dc2-cdd9-11e4-af0d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4704930c-cdd9-11e4-9811-705681abff85"], ["organization_id", "47051dc2-cdd9-11e4-af0d-705681abff85"], ["created_at", "2015-03-19 01:43:01.112144"], ["updated_at", "2015-03-19 01:43:01.112144"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 18:43:01 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$.JkTSXJQrcY9NQfasyGcZeIES2Mk3DuZ0lKMg4a4Bninw/kMWdYX."], ["created_at", "2015-03-19 01:43:01.128147"], ["updated_at", "2015-03-19 01:43:01.128147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:01.130958"], ["user_id", "47087d00-cdd9-11e4-9fef-705681abff85"], ["created_at", "2015-03-19 01:43:01.132332"], ["updated_at", "2015-03-19 01:43:01.132332"], ["token", "QWLEb-6CQNTYcGZpn0AoUaVUYurFjE2FqJveAkyjZVI"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.139704"], ["updated_at", "2015-03-19 01:43:01.139704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47087d00-cdd9-11e4-9fef-705681abff85' AND "clubhouse_memberships"."organization_id" = '470a34d8-cdd9-11e4-9e14-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47087d00-cdd9-11e4-9fef-705681abff85"], ["organization_id", "470a34d8-cdd9-11e4-9e14-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.144422"], ["updated_at", "2015-03-19 01:43:01.144422"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '470a34d8-cdd9-11e4-9e14-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "470a34d8-cdd9-11e4-9e14-705681abff85"], ["created_at", "2015-03-19 01:43:01.150876"], ["updated_at", "2015-03-19 01:43:01.150876"], ["token", "AZQBurJ3OLRCPhfehs5AC9ZsxDIxdZ45tR-4gAoQkxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$s8mJZFz5M4Jic79q9.ebg.8SPROJZpH0Szo4NcWY55NH0y8couiXi"], ["created_at", "2015-03-19 01:43:01.159768"], ["updated_at", "2015-03-19 01:43:01.159768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.164251"], ["updated_at", "2015-03-19 01:43:01.164251"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '470d533e-cdd9-11e4-9354-705681abff85' AND "clubhouse_memberships"."organization_id" = '470e0144-cdd9-11e4-aa75-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "470d533e-cdd9-11e4-9354-705681abff85"], ["organization_id", "470e0144-cdd9-11e4-aa75-705681abff85"], ["created_at", "2015-03-19 01:43:01.170701"], ["updated_at", "2015-03-19 01:43:01.170701"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:43:01 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:01.178179' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QWLEb-6CQNTYcGZpn0AoUaVUYurFjE2FqJveAkyjZVI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:01.179662"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:01.181017"], ["id", "47092a34-cdd9-11e4-9268-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "47087d00-cdd9-11e4-9fef-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '47087d00-cdd9-11e4-9fef-705681abff85' LIMIT 1 [["organization_id", "470a34d8-cdd9-11e4-9e14-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "470a34d8-cdd9-11e4-9e14-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "470a34d8-cdd9-11e4-9e14-705681abff85"]] Completed 200 OK in 12ms (Views: 2.4ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$Qv/Zl0dOZJMAfe3jhd6P8OgPjenwrFJn3wVOT/pGi94Qr8e4kHLuK"], ["created_at", "2015-03-19 01:43:01.198333"], ["updated_at", "2015-03-19 01:43:01.198333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:01.200180"], ["user_id", "4713235e-cdd9-11e4-9dea-705681abff85"], ["created_at", "2015-03-19 01:43:01.201036"], ["updated_at", "2015-03-19 01:43:01.201036"], ["token", "Rbx7yZb3rPxx0dZgPxaJ3kliVajnlgH6wfdF0AWj1PY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.205763"], ["updated_at", "2015-03-19 01:43:01.205763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4713235e-cdd9-11e4-9dea-705681abff85' AND "clubhouse_memberships"."organization_id" = '4714420c-cdd9-11e4-b555-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4713235e-cdd9-11e4-9dea-705681abff85"], ["organization_id", "4714420c-cdd9-11e4-b555-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.209190"], ["updated_at", "2015-03-19 01:43:01.209190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '4714420c-cdd9-11e4-b555-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "4714420c-cdd9-11e4-b555-705681abff85"], ["created_at", "2015-03-19 01:43:01.214231"], ["updated_at", "2015-03-19 01:43:01.214231"], ["token", "qnM0c4xcDGWY0jBmAspWregmZs_69DMBKAPavvn9fQg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$9HNeI4tOzRL8v03OMpGRGuFjQbsxQ7XXwLar4zt2wixTdihQrV/N2"], ["created_at", "2015-03-19 01:43:01.221328"], ["updated_at", "2015-03-19 01:43:01.221328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.225912"], ["updated_at", "2015-03-19 01:43:01.225912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4716a560-cdd9-11e4-9084-705681abff85' AND "clubhouse_memberships"."organization_id" = '47177c92-cdd9-11e4-897b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4716a560-cdd9-11e4-9084-705681abff85"], ["organization_id", "47177c92-cdd9-11e4-897b-705681abff85"], ["created_at", "2015-03-19 01:43:01.230957"], ["updated_at", "2015-03-19 01:43:01.230957"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:43:01 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$V9EEsMKFJI6ttT2ZSRB8eearVkokhvLOL9kKGjEDeCU40j/vktiny"], ["created_at", "2015-03-19 01:43:01.263293"], ["updated_at", "2015-03-19 01:43:01.263293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:01.264875"], ["user_id", "471d08f6-cdd9-11e4-9c08-705681abff85"], ["created_at", "2015-03-19 01:43:01.265680"], ["updated_at", "2015-03-19 01:43:01.265680"], ["token", "62KjppEF4RawpoJxeaQ6wlegSkTtDiQPEtG41AjBssY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.269196"], ["updated_at", "2015-03-19 01:43:01.269196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '471d08f6-cdd9-11e4-9c08-705681abff85' AND "clubhouse_memberships"."organization_id" = '471dedac-cdd9-11e4-aac6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "471d08f6-cdd9-11e4-9c08-705681abff85"], ["organization_id", "471dedac-cdd9-11e4-aac6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.272743"], ["updated_at", "2015-03-19 01:43:01.272743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '471dedac-cdd9-11e4-aac6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "471dedac-cdd9-11e4-aac6-705681abff85"], ["created_at", "2015-03-19 01:43:01.276265"], ["updated_at", "2015-03-19 01:43:01.276265"], ["token", "3szcMsyDK10wPh2JZxgN5SR2kFQQA3NMVUIA2640bIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/471f05b6-cdd9-11e4-b9e8-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:01 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"471f05b6-cdd9-11e4-b9e8-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:01.281569' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "62KjppEF4RawpoJxeaQ6wlegSkTtDiQPEtG41AjBssY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:01.283068"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:01.284660"], ["id", "471d688c-cdd9-11e4-a308-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "471f05b6-cdd9-11e4-b9e8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "471d08f6-cdd9-11e4-9c08-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "471dedac-cdd9-11e4-aac6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '471d08f6-cdd9-11e4-9c08-705681abff85' LIMIT 1 [["organization_id", "471dedac-cdd9-11e4-aac6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "471f05b6-cdd9-11e4-b9e8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$fYWSL0ymquCHqv7yA1tmguQ.BDNV48EAa44A3Hf14453oMt3uUIya"], ["created_at", "2015-03-19 01:43:01.298947"], ["updated_at", "2015-03-19 01:43:01.298947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:01.301306"], ["user_id", "47228a9c-cdd9-11e4-bdd7-705681abff85"], ["created_at", "2015-03-19 01:43:01.302130"], ["updated_at", "2015-03-19 01:43:01.302130"], ["token", "qF-UsvycvI7FFh4btROFr5WC2fhK_yXZnlsyCG3Jnao"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.307079"], ["updated_at", "2015-03-19 01:43:01.307079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47228a9c-cdd9-11e4-bdd7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4723ba7a-cdd9-11e4-8a80-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47228a9c-cdd9-11e4-bdd7-705681abff85"], ["organization_id", "4723ba7a-cdd9-11e4-8a80-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.314618"], ["updated_at", "2015-03-19 01:43:01.314618"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '4723ba7a-cdd9-11e4-8a80-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "4723ba7a-cdd9-11e4-8a80-705681abff85"], ["created_at", "2015-03-19 01:43:01.324361"], ["updated_at", "2015-03-19 01:43:01.324361"], ["token", "hTOZr9NztMGD0NF59FOOtLNLCF25dzhm82Zmw3DoFKM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 18:43:01 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$LK1FE1nHOMfLhvjLuyh4Z.rGGtJCt8p6M5fhDOdpNNTBzpqBm93IG"], ["created_at", "2015-03-19 01:43:01.347661"], ["updated_at", "2015-03-19 01:43:01.347661"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:01.351090"], ["user_id", "472a09b6-cdd9-11e4-b377-705681abff85"], ["created_at", "2015-03-19 01:43:01.352767"], ["updated_at", "2015-03-19 01:43:01.352767"], ["token", "6YbHfFXrVkXcuaggWrcJaveGW6b_yP1ipM9Ll_Vh7Aw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.365673"], ["updated_at", "2015-03-19 01:43:01.365673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '472a09b6-cdd9-11e4-b377-705681abff85' AND "clubhouse_memberships"."organization_id" = '472cae8c-cdd9-11e4-8fb5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "472a09b6-cdd9-11e4-b377-705681abff85"], ["organization_id", "472cae8c-cdd9-11e4-8fb5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.369345"], ["updated_at", "2015-03-19 01:43:01.369345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '472cae8c-cdd9-11e4-8fb5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "472cae8c-cdd9-11e4-8fb5-705681abff85"], ["created_at", "2015-03-19 01:43:01.373303"], ["updated_at", "2015-03-19 01:43:01.373303"], ["token", "I__LWIYDEiN14mvzcuJSaug99RsvTwt-ZyZKA0uLRVU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/472dd5dc-cdd9-11e4-b3e5-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:01 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"472dd5dc-cdd9-11e4-b3e5-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:01.378169' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6YbHfFXrVkXcuaggWrcJaveGW6b_yP1ipM9Ll_Vh7Aw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:01.379692"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:01.380638"], ["id", "472acf90-cdd9-11e4-9b7f-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "472dd5dc-cdd9-11e4-b3e5-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "472a09b6-cdd9-11e4-b377-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "472cae8c-cdd9-11e4-8fb5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '472a09b6-cdd9-11e4-b377-705681abff85' LIMIT 1 [["organization_id", "472cae8c-cdd9-11e4-8fb5-705681abff85"]] Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$IIQvf3LoZfy73gLK0h6aJ.KC0QsmBU6OOZx0Klzhcnj5WaWoSUDKG"], ["created_at", "2015-03-19 01:43:01.392443"], ["updated_at", "2015-03-19 01:43:01.392443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:01.394296"], ["user_id", "4730bd92-cdd9-11e4-a3a4-705681abff85"], ["created_at", "2015-03-19 01:43:01.395062"], ["updated_at", "2015-03-19 01:43:01.395062"], ["token", "iVpClxm-Z3IrcUCpZVwwf7N3idr6iy8zCZQ3mbTFvCs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.398608"], ["updated_at", "2015-03-19 01:43:01.398608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4730bd92-cdd9-11e4-a3a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '4731ab6c-cdd9-11e4-b108-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4730bd92-cdd9-11e4-a3a4-705681abff85"], ["organization_id", "4731ab6c-cdd9-11e4-b108-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.401852"], ["updated_at", "2015-03-19 01:43:01.401852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '4731ab6c-cdd9-11e4-b108-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "4731ab6c-cdd9-11e4-b108-705681abff85"], ["created_at", "2015-03-19 01:43:01.405543"], ["updated_at", "2015-03-19 01:43:01.405543"], ["token", "e1P92w9v4jAMkW3Q-GZSl2era2HADqIgMDXce6bBomM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 18:43:01 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$5WmeEs/t4ovBLsve2SgYS.u3.5GzpNLgQ7zFHODq1HknTzuxKNtEi"], ["created_at", "2015-03-19 01:43:01.416603"], ["updated_at", "2015-03-19 01:43:01.416603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:01.418190"], ["user_id", "47346cc6-cdd9-11e4-948b-705681abff85"], ["created_at", "2015-03-19 01:43:01.419012"], ["updated_at", "2015-03-19 01:43:01.419012"], ["token", "dcCL5OJyQy9CfmFo0BrIj-MLGQyq7vpzV2sR_zypFCA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.422454"], ["updated_at", "2015-03-19 01:43:01.422454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47346cc6-cdd9-11e4-948b-705681abff85' AND "clubhouse_memberships"."organization_id" = '47355348-cdd9-11e4-8fbd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47346cc6-cdd9-11e4-948b-705681abff85"], ["organization_id", "47355348-cdd9-11e4-8fbd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.426592"], ["updated_at", "2015-03-19 01:43:01.426592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '47355348-cdd9-11e4-8fbd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "47355348-cdd9-11e4-8fbd-705681abff85"], ["created_at", "2015-03-19 01:43:01.430065"], ["updated_at", "2015-03-19 01:43:01.430065"], ["token", "vjQ6wO2L-7ge7BDIBzewjltjZk_52Pd3q8sejrXL8m4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:43:01 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$gyjD0AykjqzOEfzUwEbTEuE6qe90hCJaKtS38PV7zYsK2Yp/vZupq"], ["created_at", "2015-03-19 01:43:01.441333"], ["updated_at", "2015-03-19 01:43:01.441333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:01.442963"], ["user_id", "4738327a-cdd9-11e4-b95c-705681abff85"], ["created_at", "2015-03-19 01:43:01.443722"], ["updated_at", "2015-03-19 01:43:01.443722"], ["token", "ShVp9DeQA_tDasetuTCgpGnMJ6JwvM6fJL7SydACYiw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.447182"], ["updated_at", "2015-03-19 01:43:01.447182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4738327a-cdd9-11e4-b95c-705681abff85' AND "clubhouse_memberships"."organization_id" = '47391f82-cdd9-11e4-be8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4738327a-cdd9-11e4-b95c-705681abff85"], ["organization_id", "47391f82-cdd9-11e4-be8f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.451212"], ["updated_at", "2015-03-19 01:43:01.451212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '47391f82-cdd9-11e4-be8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "47391f82-cdd9-11e4-be8f-705681abff85"], ["created_at", "2015-03-19 01:43:01.455153"], ["updated_at", "2015-03-19 01:43:01.455153"], ["token", "curnR5mVBRu0hSl9xKrKlifihbEhPKiK3GjDikogK7E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:43:01 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:01.460303' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ShVp9DeQA_tDasetuTCgpGnMJ6JwvM6fJL7SydACYiw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:01.461732"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:01.462707"], ["id", "473894fe-cdd9-11e4-a155-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4738327a-cdd9-11e4-b95c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "47391f82-cdd9-11e4-be8f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4738327a-cdd9-11e4-b95c-705681abff85' LIMIT 1 [["organization_id", "47391f82-cdd9-11e4-be8f-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '47391f82-cdd9-11e4-be8f-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 25ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$HOj508AwGqapv97Nnj4jW.GuxYn./HBdk5X8lCuEs4gzDKHSQ7.3S"], ["created_at", "2015-03-19 01:43:01.490068"], ["updated_at", "2015-03-19 01:43:01.490068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:01.491655"], ["user_id", "473fa262-cdd9-11e4-9105-705681abff85"], ["created_at", "2015-03-19 01:43:01.492418"], ["updated_at", "2015-03-19 01:43:01.492418"], ["token", "y1x2Bq5a_8GF4yr5SYK2A7aruixB9SU8HOpz2MS_3N8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:01.495869"], ["updated_at", "2015-03-19 01:43:01.495869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '473fa262-cdd9-11e4-9105-705681abff85' AND "clubhouse_memberships"."organization_id" = '474081e6-cdd9-11e4-b4e5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "473fa262-cdd9-11e4-9105-705681abff85"], ["organization_id", "474081e6-cdd9-11e4-b4e5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.506324"], ["updated_at", "2015-03-19 01:43:01.506324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '474081e6-cdd9-11e4-b4e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "474081e6-cdd9-11e4-b4e5-705681abff85"], ["created_at", "2015-03-19 01:43:01.510515"], ["updated_at", "2015-03-19 01:43:01.510515"], ["token", "dtrnBndAyNrxNn_lyOzqk647j3JaikdBZC_yg5fAZVU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:43:01 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:01.515076' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y1x2Bq5a_8GF4yr5SYK2A7aruixB9SU8HOpz2MS_3N8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:01.516956"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:01.518844"], ["id", "47400630-cdd9-11e4-96b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "473fa262-cdd9-11e4-9105-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "474081e6-cdd9-11e4-b4e5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '473fa262-cdd9-11e4-9105-705681abff85' LIMIT 1 [["organization_id", "474081e6-cdd9-11e4-b4e5-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '474081e6-cdd9-11e4-b4e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "474081e6-cdd9-11e4-b4e5-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:43:01.527510"], ["updated_at", "2015-03-19 01:43:01.527510"], ["token", "LPRF3IMbENL4ZvXSd4uqRRvQtZ-D05IorwkzJRDeyfA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 94e59135-aa4f-4ed2-bb15-b85c487d6fb9) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/474562b0-cdd9-11e4-bf62-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "474562b0-cdd9-11e4-bf62-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [94e59135-aa4f-4ed2-bb15-b85c487d6fb9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/474562b0-cdd9-11e4-bf62-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [94e59135-aa4f-4ed2-bb15-b85c487d6fb9] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "474081e6-cdd9-11e4-b4e5-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [94e59135-aa4f-4ed2-bb15-b85c487d6fb9] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (4.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [94e59135-aa4f-4ed2-bb15-b85c487d6fb9] Clubhouse::Mailer#invitation: processed outbound mail in 426.6ms [ActiveJob] [ActionMailer::DeliveryJob] [94e59135-aa4f-4ed2-bb15-b85c487d6fb9] Sent mail to email@example.com (13.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [94e59135-aa4f-4ed2-bb15-b85c487d6fb9] Date: Wed, 18 Mar 2015 18:43:02 -0700 From: from@example.com To: email@example.com Message-ID: <550a29a6533_e1683ff70e065be060442@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/LPRF3IMbENL4ZvXSd4uqRRvQtZ-D05IorwkzJRDeyfA?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [94e59135-aa4f-4ed2-bb15-b85c487d6fb9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 440.58ms Completed 201 Created in 492ms (Views: 1.0ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$A1L4IBP3ATvIwHSlLXb6dOoLEnTKHr9jUfPf27eXXKVc.CZEZAHvy"], ["created_at", "2015-03-19 01:43:02.015466"], ["updated_at", "2015-03-19 01:43:02.015466"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.017854"], ["user_id", "478fd0e8-cdd9-11e4-8c8b-705681abff85"], ["created_at", "2015-03-19 01:43:02.018636"], ["updated_at", "2015-03-19 01:43:02.018636"], ["token", "i4RdrOY20Q9DjWtLY5tmLxtT_C00s04pBAfSslH_8dI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.022480"], ["updated_at", "2015-03-19 01:43:02.022480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '478fd0e8-cdd9-11e4-8c8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4790dbaa-cdd9-11e4-99af-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "478fd0e8-cdd9-11e4-8c8b-705681abff85"], ["organization_id", "4790dbaa-cdd9-11e4-99af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.026885"], ["updated_at", "2015-03-19 01:43:02.026885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '4790dbaa-cdd9-11e4-99af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "4790dbaa-cdd9-11e4-99af-705681abff85"], ["created_at", "2015-03-19 01:43:02.030641"], ["updated_at", "2015-03-19 01:43:02.030641"], ["token", "ABP42f8Wgz__erjLomkJwtWtbfQZ2dkv3_2x6yrwBnA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.036381' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "i4RdrOY20Q9DjWtLY5tmLxtT_C00s04pBAfSslH_8dI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.037850"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.038810"], ["id", "479052f2-cdd9-11e4-9c9f-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "478fd0e8-cdd9-11e4-8c8b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4790dbaa-cdd9-11e4-99af-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '478fd0e8-cdd9-11e4-8c8b-705681abff85' LIMIT 1 [["organization_id", "4790dbaa-cdd9-11e4-99af-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4790dbaa-cdd9-11e4-99af-705681abff85') LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "4790dbaa-cdd9-11e4-99af-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.049373"], ["updated_at", "2015-03-19 01:43:02.049373"], ["token", "rxNdaPoROSTUPIQGXtlKQQbhKEJaO4gL0pPARmrFgxI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e0557e48-c6d5-49ea-a9a1-f4f12b05c720) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4795037e-cdd9-11e4-b32b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.7ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4795037e-cdd9-11e4-b32b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e0557e48-c6d5-49ea-a9a1-f4f12b05c720] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4795037e-cdd9-11e4-b32b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [e0557e48-c6d5-49ea-a9a1-f4f12b05c720] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4790dbaa-cdd9-11e4-99af-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e0557e48-c6d5-49ea-a9a1-f4f12b05c720] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [e0557e48-c6d5-49ea-a9a1-f4f12b05c720] Clubhouse::Mailer#invitation: processed outbound mail in 4.9ms [ActiveJob] [ActionMailer::DeliveryJob] [e0557e48-c6d5-49ea-a9a1-f4f12b05c720] Sent mail to email@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [e0557e48-c6d5-49ea-a9a1-f4f12b05c720] Date: Wed, 18 Mar 2015 18:43:02 -0700 From: from@example.com To: email@example.com Message-ID: <550a29a610de8_e1683ff70e065be06051b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/rxNdaPoROSTUPIQGXtlKQQbhKEJaO4gL0pPARmrFgxI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [e0557e48-c6d5-49ea-a9a1-f4f12b05c720] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.66ms Completed 201 Created in 36ms (Views: 1.2ms | ActiveRecord: 6.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$.8pzqm3ZvQK56qZQx05I.OmAJPNDghKgW9fRDckxNt0NBYxe2L/Oy"], ["created_at", "2015-03-19 01:43:02.088093"], ["updated_at", "2015-03-19 01:43:02.088093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.089962"], ["user_id", "479ae974-cdd9-11e4-ac62-705681abff85"], ["created_at", "2015-03-19 01:43:02.090757"], ["updated_at", "2015-03-19 01:43:02.090757"], ["token", "oqYK4odfoL5dvL6OOfHGFeLS_AuDClzroehpkX3XVBI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.094272"], ["updated_at", "2015-03-19 01:43:02.094272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '479ae974-cdd9-11e4-ac62-705681abff85' AND "clubhouse_memberships"."organization_id" = '479bd05a-cdd9-11e4-8041-705681abff85') LIMIT 1 SQL (5.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "479ae974-cdd9-11e4-ac62-705681abff85"], ["organization_id", "479bd05a-cdd9-11e4-8041-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.097316"], ["updated_at", "2015-03-19 01:43:02.097316"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '479bd05a-cdd9-11e4-8041-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "479bd05a-cdd9-11e4-8041-705681abff85"], ["created_at", "2015-03-19 01:43:02.106519"], ["updated_at", "2015-03-19 01:43:02.106519"], ["token", "nqPa8yMFtXhcMOhKgOsQZlyTlpVJ-Ss0eE9Bxsl-OWA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/479db456-cdd9-11e4-9a2e-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"479db456-cdd9-11e4-9a2e-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.112303' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oqYK4odfoL5dvL6OOfHGFeLS_AuDClzroehpkX3XVBI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.113903"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.114978"], ["id", "479b5404-cdd9-11e4-8160-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "479db456-cdd9-11e4-9a2e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "479ae974-cdd9-11e4-ac62-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "479bd05a-cdd9-11e4-8041-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '479ae974-cdd9-11e4-ac62-705681abff85' LIMIT 1 [["organization_id", "479bd05a-cdd9-11e4-8041-705681abff85"]] Unpermitted parameters: id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."id" != '479db456-cdd9-11e4-9a2e-705681abff85' AND "clubhouse_invitations"."organization_id" = '479bd05a-cdd9-11e4-8041-705681abff85') LIMIT 1 SQL (0.6ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:43:02.123459"], ["id", "479db456-cdd9-11e4-9a2e-705681abff85"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.0ms | ActiveRecord: 3.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$rwW2oloFQn4pXOa4pevnPeJg6837gu4datZW.D2RXQ/Kt3KfkHzta"], ["created_at", "2015-03-19 01:43:02.135530"], ["updated_at", "2015-03-19 01:43:02.135530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.137778"], ["user_id", "47a2327e-cdd9-11e4-b91c-705681abff85"], ["created_at", "2015-03-19 01:43:02.138574"], ["updated_at", "2015-03-19 01:43:02.138574"], ["token", "xIxvWXGD5UYKmUdGAOjkOIJL28czS9Z_hWUEa4ISMkQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.142533"], ["updated_at", "2015-03-19 01:43:02.142533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47a2327e-cdd9-11e4-b91c-705681abff85' AND "clubhouse_memberships"."organization_id" = '47a3346c-cdd9-11e4-8f26-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47a2327e-cdd9-11e4-b91c-705681abff85"], ["organization_id", "47a3346c-cdd9-11e4-8f26-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.146590"], ["updated_at", "2015-03-19 01:43:02.146590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '47a3346c-cdd9-11e4-8f26-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "47a3346c-cdd9-11e4-8f26-705681abff85"], ["created_at", "2015-03-19 01:43:02.150412"], ["updated_at", "2015-03-19 01:43:02.150412"], ["token", "0-cdacgbrpmZbinCasZQkM7A-q6karomxXqGxCTFON4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$Bw576m7wWyyX4b9gjbhD.uDbWDc.BdDClsStk30r0b/DMNNpKs.Iu"], ["created_at", "2015-03-19 01:43:02.161633"], ["updated_at", "2015-03-19 01:43:02.161633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.163295"], ["user_id", "47a61b28-cdd9-11e4-a93d-705681abff85"], ["created_at", "2015-03-19 01:43:02.164059"], ["updated_at", "2015-03-19 01:43:02.164059"], ["token", "dQMLKpABBfVTRckhgyLIMa41pVjHU3GD5fKjgGJmaSM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.167936"], ["updated_at", "2015-03-19 01:43:02.167936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47a61b28-cdd9-11e4-a93d-705681abff85' AND "clubhouse_memberships"."organization_id" = '47a712e4-cdd9-11e4-893f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47a61b28-cdd9-11e4-a93d-705681abff85"], ["organization_id", "47a712e4-cdd9-11e4-893f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.172338"], ["updated_at", "2015-03-19 01:43:02.172338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '47a712e4-cdd9-11e4-893f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "47a712e4-cdd9-11e4-893f-705681abff85"], ["created_at", "2015-03-19 01:43:02.176123"], ["updated_at", "2015-03-19 01:43:02.176123"], ["token", "3nqnoeLneibVO1VFh66_mSs8CwCvih_Wj2KLW4hBX0c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$riiA9bmFju9rXPkq1FWLK.vW8mCNhvIVIzjl04uZHaeq3F1MjDe.S"], ["created_at", "2015-03-19 01:43:02.187148"], ["updated_at", "2015-03-19 01:43:02.187148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.189092"], ["user_id", "47aa097c-cdd9-11e4-b6dc-705681abff85"], ["created_at", "2015-03-19 01:43:02.190301"], ["updated_at", "2015-03-19 01:43:02.190301"], ["token", "rdu18m1X5X3f_JEUBXN_nsRU6rYpM4JFfahEHvirIqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.194254"], ["updated_at", "2015-03-19 01:43:02.194254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47aa097c-cdd9-11e4-b6dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '47ab12cc-cdd9-11e4-9b85-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47aa097c-cdd9-11e4-b6dc-705681abff85"], ["organization_id", "47ab12cc-cdd9-11e4-9b85-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.197800"], ["updated_at", "2015-03-19 01:43:02.197800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '47ab12cc-cdd9-11e4-9b85-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "47ab12cc-cdd9-11e4-9b85-705681abff85"], ["created_at", "2015-03-19 01:43:02.203652"], ["updated_at", "2015-03-19 01:43:02.203652"], ["token", "ghanV_aVbWdLzGWCgSwJoCi2ZwX7gKLfTAEvOf3TQXI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/47ab12cc-cdd9-11e4-9b85-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"47ab12cc-cdd9-11e4-9b85-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.211725' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rdu18m1X5X3f_JEUBXN_nsRU6rYpM4JFfahEHvirIqM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.214191"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.215237"], ["id", "47aa9798-cdd9-11e4-97cb-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "47ab12cc-cdd9-11e4-9b85-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "47aa097c-cdd9-11e4-b6dc-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "47ab12cc-cdd9-11e4-9b85-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '47aa097c-cdd9-11e4-b6dc-705681abff85' LIMIT 1 [["organization_id", "47ab12cc-cdd9-11e4-9b85-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '47ab12cc-cdd9-11e4-9b85-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$DOkbtsqBV1cT9uA.Di72dOAVwu9DMwtl09fNUSTIrtk9Z5qJYJabO"], ["created_at", "2015-03-19 01:43:02.230590"], ["updated_at", "2015-03-19 01:43:02.230590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.232346"], ["user_id", "47b0a34a-cdd9-11e4-8f51-705681abff85"], ["created_at", "2015-03-19 01:43:02.233114"], ["updated_at", "2015-03-19 01:43:02.233114"], ["token", "_fdqcWW_1kmwprpSUWt3jmCZExaxqtPkVS6n9MTjlKc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.236582"], ["updated_at", "2015-03-19 01:43:02.236582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47b0a34a-cdd9-11e4-8f51-705681abff85' AND "clubhouse_memberships"."organization_id" = '47b18e68-cdd9-11e4-a339-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47b0a34a-cdd9-11e4-8f51-705681abff85"], ["organization_id", "47b18e68-cdd9-11e4-a339-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.240235"], ["updated_at", "2015-03-19 01:43:02.240235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '47b18e68-cdd9-11e4-a339-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "47b18e68-cdd9-11e4-a339-705681abff85"], ["created_at", "2015-03-19 01:43:02.244518"], ["updated_at", "2015-03-19 01:43:02.244518"], ["token", "NwwAhs6P0G4FLU_08ObUXve308p-TeraVxrG0FLYVSc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/47b18e68-cdd9-11e4-a339-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"47b18e68-cdd9-11e4-a339-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.249991' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_fdqcWW_1kmwprpSUWt3jmCZExaxqtPkVS6n9MTjlKc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.251956"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.252888"], ["id", "47b10966-cdd9-11e4-8ac0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "47b18e68-cdd9-11e4-a339-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "47b0a34a-cdd9-11e4-8f51-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "47b18e68-cdd9-11e4-a339-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '47b0a34a-cdd9-11e4-8f51-705681abff85' LIMIT 1 [["organization_id", "47b18e68-cdd9-11e4-a339-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '47b18e68-cdd9-11e4-a339-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "47b18e68-cdd9-11e4-a339-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.259657"], ["updated_at", "2015-03-19 01:43:02.259657"], ["token", "XRmAbq6y0BauNDDRX440Ej0LTfZNoOuXbzBqS6JV_k8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5888f174-95f8-48d4-a290-1bc7f9cc655b) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/47b51588-cdd9-11e4-ae8e-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "47b51588-cdd9-11e4-ae8e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5888f174-95f8-48d4-a290-1bc7f9cc655b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/47b51588-cdd9-11e4-ae8e-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [5888f174-95f8-48d4-a290-1bc7f9cc655b] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "47b18e68-cdd9-11e4-a339-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5888f174-95f8-48d4-a290-1bc7f9cc655b] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [5888f174-95f8-48d4-a290-1bc7f9cc655b] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [5888f174-95f8-48d4-a290-1bc7f9cc655b] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [5888f174-95f8-48d4-a290-1bc7f9cc655b] Date: Wed, 18 Mar 2015 18:43:02 -0700 From: from@example.com To: email@example.com Message-ID: <550a29a6412bc_e1683ff70e065be0606d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/XRmAbq6y0BauNDDRX440Ej0LTfZNoOuXbzBqS6JV_k8?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5888f174-95f8-48d4-a290-1bc7f9cc655b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.96ms Completed 201 Created in 19ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$Q45LXSnBBO1u9OzFP9Fp4e6VvsKslKZo4yp5/xXKsnIMTUnkJ0tri"], ["created_at", "2015-03-19 01:43:02.275773"], ["updated_at", "2015-03-19 01:43:02.275773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.277619"], ["user_id", "47b78a8e-cdd9-11e4-8cf7-705681abff85"], ["created_at", "2015-03-19 01:43:02.278481"], ["updated_at", "2015-03-19 01:43:02.278481"], ["token", "uvhVvzaY4pgA79VvyDX9a2lwIVNib7uebwdnoRd_dnc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.282011"], ["updated_at", "2015-03-19 01:43:02.282011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47b78a8e-cdd9-11e4-8cf7-705681abff85' AND "clubhouse_memberships"."organization_id" = '47b875e8-cdd9-11e4-a0c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47b78a8e-cdd9-11e4-8cf7-705681abff85"], ["organization_id", "47b875e8-cdd9-11e4-a0c1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.285263"], ["updated_at", "2015-03-19 01:43:02.285263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '47b875e8-cdd9-11e4-a0c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "47b875e8-cdd9-11e4-a0c1-705681abff85"], ["created_at", "2015-03-19 01:43:02.288628"], ["updated_at", "2015-03-19 01:43:02.288628"], ["token", "l4bBVK4EBUfnpc6epeoNaYHkeOAY275AnvC98c3Go1Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/47b875e8-cdd9-11e4-a0c1-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"47b875e8-cdd9-11e4-a0c1-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.293532' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uvhVvzaY4pgA79VvyDX9a2lwIVNib7uebwdnoRd_dnc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.295155"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.296151"], ["id", "47b7fa32-cdd9-11e4-b9eb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "47b875e8-cdd9-11e4-a0c1-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "47b78a8e-cdd9-11e4-8cf7-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "47b875e8-cdd9-11e4-a0c1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '47b78a8e-cdd9-11e4-8cf7-705681abff85' LIMIT 1 [["organization_id", "47b875e8-cdd9-11e4-a0c1-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '47b875e8-cdd9-11e4-a0c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "47b875e8-cdd9-11e4-a0c1-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.303150"], ["updated_at", "2015-03-19 01:43:02.303150"], ["token", "5Lzn_QT5pIWMeVcpKcr3Cm2jZutikVj47_vdLt5S03s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d36b1772-86ff-4409-8c20-d6d3f2b6c265) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/47bbb7f8-cdd9-11e4-8bf6-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "47bbb7f8-cdd9-11e4-8bf6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d36b1772-86ff-4409-8c20-d6d3f2b6c265] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/47bbb7f8-cdd9-11e4-8bf6-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d36b1772-86ff-4409-8c20-d6d3f2b6c265] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "47b875e8-cdd9-11e4-a0c1-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d36b1772-86ff-4409-8c20-d6d3f2b6c265] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [d36b1772-86ff-4409-8c20-d6d3f2b6c265] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [d36b1772-86ff-4409-8c20-d6d3f2b6c265] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [d36b1772-86ff-4409-8c20-d6d3f2b6c265] Date: Wed, 18 Mar 2015 18:43:02 -0700 From: from@example.com To: email@example.com Message-ID: <550a29a64c278_e1683ff70e065be0607aa@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/5Lzn_QT5pIWMeVcpKcr3Cm2jZutikVj47_vdLt5S03s?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d36b1772-86ff-4409-8c20-d6d3f2b6c265] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.83ms Completed 201 Created in 21ms (Views: 0.9ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$MM/noAUWkyNrGrJco3rD6eyI3gGj4ZWmyinXvz1I/SKhPrg10Lhum"], ["created_at", "2015-03-19 01:43:02.320709"], ["updated_at", "2015-03-19 01:43:02.320709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.322822"], ["user_id", "47be6548-cdd9-11e4-a913-705681abff85"], ["created_at", "2015-03-19 01:43:02.323662"], ["updated_at", "2015-03-19 01:43:02.323662"], ["token", "qxOl9T43VHVeoRQZPyv66LKxNS8Xk0NlAzUUmqPPaNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.327034"], ["updated_at", "2015-03-19 01:43:02.327034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47be6548-cdd9-11e4-a913-705681abff85' AND "clubhouse_memberships"."organization_id" = '47bf549e-cdd9-11e4-8b9d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47be6548-cdd9-11e4-a913-705681abff85"], ["organization_id", "47bf549e-cdd9-11e4-8b9d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.330117"], ["updated_at", "2015-03-19 01:43:02.330117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$e9zMkeypNLiRXWhK9apJVeHUPMsoifArQ.pO62geEza2FJEIU5Mqq"], ["created_at", "2015-03-19 01:43:02.334405"], ["updated_at", "2015-03-19 01:43:02.334405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.337549"], ["updated_at", "2015-03-19 01:43:02.337549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47c075a4-cdd9-11e4-b230-705681abff85' AND "clubhouse_memberships"."organization_id" = '47c0f0ec-cdd9-11e4-b6cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "47c075a4-cdd9-11e4-b230-705681abff85"], ["organization_id", "47c0f0ec-cdd9-11e4-b6cc-705681abff85"], ["created_at", "2015-03-19 01:43:02.340612"], ["updated_at", "2015-03-19 01:43:02.340612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.351898' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qxOl9T43VHVeoRQZPyv66LKxNS8Xk0NlAzUUmqPPaNY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.353317"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.354265"], ["id", "47bedb4a-cdd9-11e4-8bfc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "47be6548-cdd9-11e4-a913-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "47be6548-cdd9-11e4-a913-705681abff85"]] Completed 200 OK in 17ms (Views: 2.9ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$HEHVTqZ.hG/tiPBKllq3Tuqz/69nbwlhgqalxgDlNiPfis6ujo/Aq"], ["created_at", "2015-03-19 01:43:02.374745"], ["updated_at", "2015-03-19 01:43:02.374745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.376248"], ["user_id", "47c69e98-cdd9-11e4-8bda-705681abff85"], ["created_at", "2015-03-19 01:43:02.377292"], ["updated_at", "2015-03-19 01:43:02.377292"], ["token", "9EpXwGpxHx1Pcs-ye9BBKO_UEQVZnAbFRbos3Z5lzBA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.381137"], ["updated_at", "2015-03-19 01:43:02.381137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47c69e98-cdd9-11e4-8bda-705681abff85' AND "clubhouse_memberships"."organization_id" = '47c79a64-cdd9-11e4-bcac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47c69e98-cdd9-11e4-8bda-705681abff85"], ["organization_id", "47c79a64-cdd9-11e4-bcac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.384691"], ["updated_at", "2015-03-19 01:43:02.384691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$EPG52QOo6bYDcRIDSnJZVuXjvT3FuJVVIYv1Zt4Fuf4wuO59H8W/S"], ["created_at", "2015-03-19 01:43:02.389158"], ["updated_at", "2015-03-19 01:43:02.389158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.392271"], ["updated_at", "2015-03-19 01:43:02.392271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47c8d118-cdd9-11e4-95c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '47c94b66-cdd9-11e4-a58f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "47c8d118-cdd9-11e4-95c5-705681abff85"], ["organization_id", "47c94b66-cdd9-11e4-a58f-705681abff85"], ["created_at", "2015-03-19 01:43:02.395591"], ["updated_at", "2015-03-19 01:43:02.395591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$XUH0T2mRJSvcU56s2I6mke8AykA1hvykiWh1Mp83xfUy7n7gRWKXq"], ["created_at", "2015-03-19 01:43:02.405592"], ["updated_at", "2015-03-19 01:43:02.405592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.407434"], ["user_id", "47cb5aa0-cdd9-11e4-abe3-705681abff85"], ["created_at", "2015-03-19 01:43:02.408190"], ["updated_at", "2015-03-19 01:43:02.408190"], ["token", "FwcrtX-AY9Ey6b2sUcJsFmssKdSJ2Bxm5gdo1kjIOu0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.411738"], ["updated_at", "2015-03-19 01:43:02.411738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47cb5aa0-cdd9-11e4-abe3-705681abff85' AND "clubhouse_memberships"."organization_id" = '47cc4668-cdd9-11e4-8936-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47cb5aa0-cdd9-11e4-abe3-705681abff85"], ["organization_id", "47cc4668-cdd9-11e4-8936-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.415503"], ["updated_at", "2015-03-19 01:43:02.415503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$04ugRseHHh6Qt4KoM9Nz5uorjHAECSMIYc9F01Hrp3c//zKitQRk6"], ["created_at", "2015-03-19 01:43:02.426311"], ["updated_at", "2015-03-19 01:43:02.426311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.427930"], ["user_id", "47ce805e-cdd9-11e4-a793-705681abff85"], ["created_at", "2015-03-19 01:43:02.428699"], ["updated_at", "2015-03-19 01:43:02.428699"], ["token", "xZ9VKzl_RVnNXCuvcDe-1FmG00tMXPuKpoIXoukgqB8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.431781"], ["updated_at", "2015-03-19 01:43:02.431781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47ce805e-cdd9-11e4-a793-705681abff85' AND "clubhouse_memberships"."organization_id" = '47cf4f8e-cdd9-11e4-af55-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47ce805e-cdd9-11e4-a793-705681abff85"], ["organization_id", "47cf4f8e-cdd9-11e4-af55-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.434908"], ["updated_at", "2015-03-19 01:43:02.434908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.439743' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xZ9VKzl_RVnNXCuvcDe-1FmG00tMXPuKpoIXoukgqB8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.441080"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.441974"], ["id", "47cedec8-cdd9-11e4-af11-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$CJhhrI1mVKyICSjn2TsB5.JSuWSGUY5TT2mA/AkMO9JX4ZieH4luK"], ["created_at", "2015-03-19 01:43:02.450127"], ["updated_at", "2015-03-19 01:43:02.450127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.451804"], ["user_id", "47d2231c-cdd9-11e4-9ee3-705681abff85"], ["created_at", "2015-03-19 01:43:02.452573"], ["updated_at", "2015-03-19 01:43:02.452573"], ["token", "ox4vjyjcohy_AopfD3AQVMt4IoFYwsa7ps5enFQuEjM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.455753"], ["updated_at", "2015-03-19 01:43:02.455753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47d2231c-cdd9-11e4-9ee3-705681abff85' AND "clubhouse_memberships"."organization_id" = '47d2f97c-cdd9-11e4-81e7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47d2231c-cdd9-11e4-9ee3-705681abff85"], ["organization_id", "47d2f97c-cdd9-11e4-81e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.459560"], ["updated_at", "2015-03-19 01:43:02.459560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-11" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-11", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.464078' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ox4vjyjcohy_AopfD3AQVMt4IoFYwsa7ps5enFQuEjM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.465446"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.466319"], ["id", "47d28384-cdd9-11e4-a3df-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-11"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "47d2231c-cdd9-11e4-9ee3-705681abff85"]] Completed 200 OK in 5ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (3.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$lfAxmaAYJegEmPcQUqjmtOSGiXZ3UIzV5g8BijuSZ7O4uW9XlEOoC"], ["created_at", "2015-03-19 01:43:02.475538"], ["updated_at", "2015-03-19 01:43:02.475538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.484901"], ["user_id", "47d6a70c-cdd9-11e4-8846-705681abff85"], ["created_at", "2015-03-19 01:43:02.486230"], ["updated_at", "2015-03-19 01:43:02.486230"], ["token", "ZSvtOUSnL2uJ1ITQpq2YBTpRbL55Xj5mDmIMEL3g78Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.490126"], ["updated_at", "2015-03-19 01:43:02.490126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47d6a70c-cdd9-11e4-8846-705681abff85' AND "clubhouse_memberships"."organization_id" = '47d83a5e-cdd9-11e4-b4f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47d6a70c-cdd9-11e4-8846-705681abff85"], ["organization_id", "47d83a5e-cdd9-11e4-b4f1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.493638"], ["updated_at", "2015-03-19 01:43:02.493638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-12" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-12", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.498669' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZSvtOUSnL2uJ1ITQpq2YBTpRbL55Xj5mDmIMEL3g78Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.500014"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.500888"], ["id", "47d7b00c-cdd9-11e4-9314-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "47d6a70c-cdd9-11e4-8846-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '47d6a70c-cdd9-11e4-8846-705681abff85' LIMIT 1 [["organization_id", "47d83a5e-cdd9-11e4-b4f1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "47d83a5e-cdd9-11e4-b4f1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 7.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$xnSKrYQ5tmKZIeBMmm7CdeYzoFPDINKzStyGAQmiOjUHCTvK9YwrG"], ["created_at", "2015-03-19 01:43:02.520157"], ["updated_at", "2015-03-19 01:43:02.520157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.521907"], ["user_id", "47dcd122-cdd9-11e4-b4c9-705681abff85"], ["created_at", "2015-03-19 01:43:02.522754"], ["updated_at", "2015-03-19 01:43:02.522754"], ["token", "LBOJJ6bSdQksi-Ix_SuYs0OvXt3jQ9rB8sl1pt2cZAo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.527486"], ["updated_at", "2015-03-19 01:43:02.527486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47dcd122-cdd9-11e4-b4c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '47ddfe1c-cdd9-11e4-9d39-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47dcd122-cdd9-11e4-b4c9-705681abff85"], ["organization_id", "47ddfe1c-cdd9-11e4-9d39-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.531426"], ["updated_at", "2015-03-19 01:43:02.531426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$SuJYGeCsj9u78bJtMB9BkO2hwObWRkjTPzqYs6HLFEmNFvotkdm/u"], ["created_at", "2015-03-19 01:43:02.541479"], ["updated_at", "2015-03-19 01:43:02.541479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.543315"], ["user_id", "47e0185a-cdd9-11e4-8c83-705681abff85"], ["created_at", "2015-03-19 01:43:02.544287"], ["updated_at", "2015-03-19 01:43:02.544287"], ["token", "IZvBRAvFG9eeTFNpyYhYbppPaCRuuyUR3qNF8rqy9B0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.549020"], ["updated_at", "2015-03-19 01:43:02.549020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47e0185a-cdd9-11e4-8c83-705681abff85' AND "clubhouse_memberships"."organization_id" = '47e13730-cdd9-11e4-8b49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47e0185a-cdd9-11e4-8c83-705681abff85"], ["organization_id", "47e13730-cdd9-11e4-8b49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.553546"], ["updated_at", "2015-03-19 01:43:02.553546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$MpRN.ZHSRJGGReu8PYYGCOhn5MJhHDu8TN1sin99ldIlpGDinrS/O"], ["created_at", "2015-03-19 01:43:02.563752"], ["updated_at", "2015-03-19 01:43:02.563752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.565398"], ["user_id", "47e37748-cdd9-11e4-b485-705681abff85"], ["created_at", "2015-03-19 01:43:02.566167"], ["updated_at", "2015-03-19 01:43:02.566167"], ["token", "Pz5lFUMXa-FXNHos_H0crt_TbWMCvN6aoVi-3cQDd38"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.569374"], ["updated_at", "2015-03-19 01:43:02.569374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47e37748-cdd9-11e4-b485-705681abff85' AND "clubhouse_memberships"."organization_id" = '47e44e52-cdd9-11e4-a717-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47e37748-cdd9-11e4-b485-705681abff85"], ["organization_id", "47e44e52-cdd9-11e4-a717-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.572922"], ["updated_at", "2015-03-19 01:43:02.572922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.578668' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Pz5lFUMXa-FXNHos_H0crt_TbWMCvN6aoVi-3cQDd38"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.580238"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.581245"], ["id", "47e3d9fe-cdd9-11e4-80a7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "47e37748-cdd9-11e4-b485-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$PwSXcwY66/kgqLVXUENaReudRYKiMx7T97a3nwHHaBzERN1Udw4lO"], ["created_at", "2015-03-19 01:43:02.595826"], ["updated_at", "2015-03-19 01:43:02.595826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.597813"], ["user_id", "47e867c6-cdd9-11e4-bed0-705681abff85"], ["created_at", "2015-03-19 01:43:02.598598"], ["updated_at", "2015-03-19 01:43:02.598598"], ["token", "74HMN6ZvNsuDrbLIAiEBo47fcooWZhE41zm_JoNd2Lg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.602088"], ["updated_at", "2015-03-19 01:43:02.602088"]]  (112.9ms) RELEASE SAVEPOINT active_record_1  (12.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47e867c6-cdd9-11e4-bed0-705681abff85' AND "clubhouse_memberships"."organization_id" = '47e951ae-cdd9-11e4-9f55-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47e867c6-cdd9-11e4-bed0-705681abff85"], ["organization_id", "47e951ae-cdd9-11e4-9f55-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.734842"], ["updated_at", "2015-03-19 01:43:02.734842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.742428' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "74HMN6ZvNsuDrbLIAiEBo47fcooWZhE41zm_JoNd2Lg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.744267"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.745273"], ["id", "47e8ce3c-cdd9-11e4-8817-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "47e867c6-cdd9-11e4-bed0-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.751729"], ["updated_at", "2015-03-19 01:43:02.751729"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4800255a-cdd9-11e4-8bae-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47e867c6-cdd9-11e4-bed0-705681abff85' AND "clubhouse_memberships"."organization_id" = '4800255a-cdd9-11e4-8bae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "47e867c6-cdd9-11e4-bed0-705681abff85"], ["admin", "t"], ["organization_id", "4800255a-cdd9-11e4-8bae-705681abff85"], ["created_at", "2015-03-19 01:43:02.755672"], ["updated_at", "2015-03-19 01:43:02.755672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.5ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$A.DRq92/iz/qjqsAdQc6xOKqRC.p.iM5fehhPlwmq2R8cYulEOv8u"], ["created_at", "2015-03-19 01:43:02.763781"], ["updated_at", "2015-03-19 01:43:02.763781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.765301"], ["user_id", "4801fb6e-cdd9-11e4-8fec-705681abff85"], ["created_at", "2015-03-19 01:43:02.766046"], ["updated_at", "2015-03-19 01:43:02.766046"], ["token", "SUsCg-uT_IAZNKl-faFP9TzACFwfEDEniMSRxThC1Ik"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.769166"], ["updated_at", "2015-03-19 01:43:02.769166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4801fb6e-cdd9-11e4-8fec-705681abff85' AND "clubhouse_memberships"."organization_id" = '4802ca62-cdd9-11e4-abe7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4801fb6e-cdd9-11e4-8fec-705681abff85"], ["organization_id", "4802ca62-cdd9-11e4-abe7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.772139"], ["updated_at", "2015-03-19 01:43:02.772139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-17" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-17", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.777773' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SUsCg-uT_IAZNKl-faFP9TzACFwfEDEniMSRxThC1Ik"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.779347"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.780371"], ["id", "480257e4-cdd9-11e4-9136-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-17"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4801fb6e-cdd9-11e4-8fec-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4801fb6e-cdd9-11e4-8fec-705681abff85' LIMIT 1 [["organization_id", "4802ca62-cdd9-11e4-abe7-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$iRlvnfsWH4WkMpDh/UHFueJYp8C988hfeEy2wXhht2iScXacMRMh."], ["created_at", "2015-03-19 01:43:02.799594"], ["updated_at", "2015-03-19 01:43:02.799594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.801350"], ["user_id", "480776c0-cdd9-11e4-9b50-705681abff85"], ["created_at", "2015-03-19 01:43:02.802128"], ["updated_at", "2015-03-19 01:43:02.802128"], ["token", "7XYJobU2lR67oD0QqDRKY9RpzrwN1OuJTlpzIoeN-hw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.805384"], ["updated_at", "2015-03-19 01:43:02.805384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '480776c0-cdd9-11e4-9b50-705681abff85' AND "clubhouse_memberships"."organization_id" = '48085be4-cdd9-11e4-99a8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "480776c0-cdd9-11e4-9b50-705681abff85"], ["organization_id", "48085be4-cdd9-11e4-99a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.810334"], ["updated_at", "2015-03-19 01:43:02.810334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$LBPuMsQhJ.kfPgokj6YcFuKmTVVSsblA2XvIqHfXtrTdCm2zNC0FC"], ["created_at", "2015-03-19 01:43:02.821384"], ["updated_at", "2015-03-19 01:43:02.821384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.822967"], ["user_id", "480ac5d2-cdd9-11e4-aafa-705681abff85"], ["created_at", "2015-03-19 01:43:02.823710"], ["updated_at", "2015-03-19 01:43:02.823710"], ["token", "kfmUFIYZsz6Z_XRwCI-hrPeqRkHolti7b1MrKJi5Jzw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.826854"], ["updated_at", "2015-03-19 01:43:02.826854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '480ac5d2-cdd9-11e4-aafa-705681abff85' AND "clubhouse_memberships"."organization_id" = '480b9976-cdd9-11e4-9837-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "480ac5d2-cdd9-11e4-aafa-705681abff85"], ["organization_id", "480b9976-cdd9-11e4-9837-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.830444"], ["updated_at", "2015-03-19 01:43:02.830444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$Z06p23r6dVEwmDGG0gDl1Om5nejuH8vyLzDNxoW8s.fCab9k7Etge"], ["created_at", "2015-03-19 01:43:02.841393"], ["updated_at", "2015-03-19 01:43:02.841393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.843293"], ["user_id", "480dda38-cdd9-11e4-b8bf-705681abff85"], ["created_at", "2015-03-19 01:43:02.844105"], ["updated_at", "2015-03-19 01:43:02.844105"], ["token", "L4AqU7kGgaH1uYxWypMLyra_vNkvKbTHgNw4A2eQwRU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.847619"], ["updated_at", "2015-03-19 01:43:02.847619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '480dda38-cdd9-11e4-b8bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '480ec402-cdd9-11e4-a16a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "480dda38-cdd9-11e4-b8bf-705681abff85"], ["organization_id", "480ec402-cdd9-11e4-a16a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.850752"], ["updated_at", "2015-03-19 01:43:02.850752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/480ec402-cdd9-11e4-a16a-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"480ec402-cdd9-11e4-a16a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.855862' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "L4AqU7kGgaH1uYxWypMLyra_vNkvKbTHgNw4A2eQwRU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.857806"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.858877"], ["id", "480e46ee-cdd9-11e4-8142-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "480ec402-cdd9-11e4-a16a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "480dda38-cdd9-11e4-b8bf-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '480dda38-cdd9-11e4-b8bf-705681abff85' LIMIT 1 [["organization_id", "480ec402-cdd9-11e4-a16a-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '480ec402-cdd9-11e4-a16a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$zGhPrpsRqMheuHOkFi60w.I51z0v09q1sL0zUl8k9xZgKRNGzWAky"], ["created_at", "2015-03-19 01:43:02.874358"], ["updated_at", "2015-03-19 01:43:02.874358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.876800"], ["user_id", "4812df88-cdd9-11e4-b69b-705681abff85"], ["created_at", "2015-03-19 01:43:02.877644"], ["updated_at", "2015-03-19 01:43:02.877644"], ["token", "FV1hYiWfPQ2i5oh45oSDsTOrLCrAInTKvLXxCJ28asA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.881465"], ["updated_at", "2015-03-19 01:43:02.881465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4812df88-cdd9-11e4-b69b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4813f224-cdd9-11e4-9dac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4812df88-cdd9-11e4-b69b-705681abff85"], ["organization_id", "4813f224-cdd9-11e4-9dac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.884806"], ["updated_at", "2015-03-19 01:43:02.884806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/4813f224-cdd9-11e4-9dac-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"4813f224-cdd9-11e4-9dac-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.889363' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FV1hYiWfPQ2i5oh45oSDsTOrLCrAInTKvLXxCJ28asA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.890749"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.891641"], ["id", "48136732-cdd9-11e4-a476-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4813f224-cdd9-11e4-9dac-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4812df88-cdd9-11e4-b69b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4812df88-cdd9-11e4-b69b-705681abff85' LIMIT 1 [["organization_id", "4813f224-cdd9-11e4-9dac-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4813f224-cdd9-11e4-9dac-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 01:43:02.897863"], ["id", "4813f224-cdd9-11e4-9dac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$ibhn7sORcJfZJXbxRf/KW.sc23QAy/krJA.pUAGPD.wYrPRuXe4fu"], ["created_at", "2015-03-19 01:43:02.909507"], ["updated_at", "2015-03-19 01:43:02.909507"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (5.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.918880"], ["user_id", "48186188-cdd9-11e4-a6ce-705681abff85"], ["created_at", "2015-03-19 01:43:02.920817"], ["updated_at", "2015-03-19 01:43:02.920817"], ["token", "B_xIPtT39c3HgHoCSkkirQX1CfMeyt44H1wsg83dLeI"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:02.936815"], ["updated_at", "2015-03-19 01:43:02.936815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '48186188-cdd9-11e4-a6ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '481c75c0-cdd9-11e4-8685-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "48186188-cdd9-11e4-a6ce-705681abff85"], ["organization_id", "481c75c0-cdd9-11e4-8685-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:02.942036"], ["updated_at", "2015-03-19 01:43:02.942036"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/481c75c0-cdd9-11e4-8685-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"481c75c0-cdd9-11e4-8685-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:02.972858' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B_xIPtT39c3HgHoCSkkirQX1CfMeyt44H1wsg83dLeI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:02.975310"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:02.977103"], ["id", "481a4656-cdd9-11e4-a9bc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "481c75c0-cdd9-11e4-8685-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "48186188-cdd9-11e4-a6ce-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '48186188-cdd9-11e4-a6ce-705681abff85' LIMIT 1 [["organization_id", "481c75c0-cdd9-11e4-8685-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "481c75c0-cdd9-11e4-8685-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$s5QJsuHYq.7vG5/yKLO1Vu9gWQW.4ha7vct41hMH.lTRgxJ.78ezG"], ["created_at", "2015-03-19 01:43:02.996269"], ["updated_at", "2015-03-19 01:43:02.996269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:02.998087"], ["user_id", "48257c06-cdd9-11e4-8561-705681abff85"], ["created_at", "2015-03-19 01:43:02.998859"], ["updated_at", "2015-03-19 01:43:02.998859"], ["token", "oLBT1Zx6D2m-JixiTbuk6QQV4PeqIlT3NTScVxj52c0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:03.002583"], ["updated_at", "2015-03-19 01:43:03.002583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '48257c06-cdd9-11e4-8561-705681abff85' AND "clubhouse_memberships"."organization_id" = '48266df0-cdd9-11e4-a9ae-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "48257c06-cdd9-11e4-8561-705681abff85"], ["organization_id", "48266df0-cdd9-11e4-a9ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:03.006550"], ["updated_at", "2015-03-19 01:43:03.006550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 18:43:03 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$.J2THWMGiB4FkpQcGaKN9.0.044oX8nSEExCa6ucdfXmr79i1uhFK"], ["created_at", "2015-03-19 01:43:03.026704"], ["updated_at", "2015-03-19 01:43:03.026704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:03.028603"], ["user_id", "482a2012-cdd9-11e4-b82f-705681abff85"], ["created_at", "2015-03-19 01:43:03.032134"], ["updated_at", "2015-03-19 01:43:03.032134"], ["token", "fPq-Ycr0XITTUH6F-ZXkLpxMqp1CTDJItkpy8r7v7Eo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:03.037686"], ["updated_at", "2015-03-19 01:43:03.037686"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '482a2012-cdd9-11e4-b82f-705681abff85' AND "clubhouse_memberships"."organization_id" = '482bea0a-cdd9-11e4-b3f3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "482a2012-cdd9-11e4-b82f-705681abff85"], ["organization_id", "482bea0a-cdd9-11e4-b3f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:03.044491"], ["updated_at", "2015-03-19 01:43:03.044491"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 18:43:03 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (3.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$TTF0JWBb7brqCWnTRdye4.i8gsi6ybU3uu1XBcwz5i/lM4J1xriba"], ["created_at", "2015-03-19 01:43:03.063164"], ["updated_at", "2015-03-19 01:43:03.063164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:03.065560"], ["user_id", "482fbe78-cdd9-11e4-8daa-705681abff85"], ["created_at", "2015-03-19 01:43:03.066628"], ["updated_at", "2015-03-19 01:43:03.066628"], ["token", "PuXZvvFjo1XZOWHmve55ZznkgMSu_BKwmmKzlwga1kg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:03.070502"], ["updated_at", "2015-03-19 01:43:03.070502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '482fbe78-cdd9-11e4-8daa-705681abff85' AND "clubhouse_memberships"."organization_id" = '4830d1fa-cdd9-11e4-b0a7-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "482fbe78-cdd9-11e4-8daa-705681abff85"], ["organization_id", "4830d1fa-cdd9-11e4-b0a7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:03.075168"], ["updated_at", "2015-03-19 01:43:03.075168"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-25" for 127.0.0.1 at 2015-03-18 18:43:03 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-25", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:03.092378' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PuXZvvFjo1XZOWHmve55ZznkgMSu_BKwmmKzlwga1kg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:03.094248"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:03.095224"], ["id", "48303ccc-cdd9-11e4-ba75-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-25"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "482fbe78-cdd9-11e4-8daa-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '482fbe78-cdd9-11e4-8daa-705681abff85' LIMIT 1 [["organization_id", "4830d1fa-cdd9-11e4-b0a7-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4830d1fa-cdd9-11e4-b0a7-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$nyxIoqDqa1yeo5Ro8yXGC.8HOcQZhC9p4u/ZTknUNa8cc1Uk3qEhi"], ["created_at", "2015-03-19 01:43:03.111866"], ["updated_at", "2015-03-19 01:43:03.111866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:03.114715"], ["user_id", "48373568-cdd9-11e4-8d35-705681abff85"], ["created_at", "2015-03-19 01:43:03.115530"], ["updated_at", "2015-03-19 01:43:03.115530"], ["token", "xMhq9dgcQ4ZBeqFNE7UilIX5U47xKkRCBjKEXUKK41M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:03.119423"], ["updated_at", "2015-03-19 01:43:03.119423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '48373568-cdd9-11e4-8d35-705681abff85' AND "clubhouse_memberships"."organization_id" = '483840fc-cdd9-11e4-aaae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "48373568-cdd9-11e4-8d35-705681abff85"], ["organization_id", "483840fc-cdd9-11e4-aaae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:03.122878"], ["updated_at", "2015-03-19 01:43:03.122878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-26" for 127.0.0.1 at 2015-03-18 18:43:03 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-26", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:03.127858' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xMhq9dgcQ4ZBeqFNE7UilIX5U47xKkRCBjKEXUKK41M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:03.129426"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:03.130738"], ["id", "4837b222-cdd9-11e4-9502-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-26"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "48373568-cdd9-11e4-8d35-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '48373568-cdd9-11e4-8d35-705681abff85' LIMIT 1 [["organization_id", "483840fc-cdd9-11e4-aaae-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '483840fc-cdd9-11e4-aaae-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 01:43:03.138694"], ["id", "483840fc-cdd9-11e4-aaae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$aZj4lVpGb/NfZF4RappONeIn1pnU3CkBWamJgQ35gYC1gfDq6EpQO"], ["created_at", "2015-03-19 01:43:03.150406"], ["updated_at", "2015-03-19 01:43:03.150406"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:03.152891"], ["user_id", "483cfe6c-cdd9-11e4-a1d1-705681abff85"], ["created_at", "2015-03-19 01:43:03.153881"], ["updated_at", "2015-03-19 01:43:03.153881"], ["token", "zvrivLQjNPjykiy6nOlV_Pf9M0v3_Z4ksiPvqUbGaz8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:03.161404"], ["updated_at", "2015-03-19 01:43:03.161404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '483cfe6c-cdd9-11e4-a1d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '483fc340-cdd9-11e4-b348-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "483cfe6c-cdd9-11e4-a1d1-705681abff85"], ["organization_id", "483fc340-cdd9-11e4-b348-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:03.180656"], ["updated_at", "2015-03-19 01:43:03.180656"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/483fc340-cdd9-11e4-b348-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:03 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"483fc340-cdd9-11e4-b348-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:03.196778' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zvrivLQjNPjykiy6nOlV_Pf9M0v3_Z4ksiPvqUbGaz8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:03.199501"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:03.201032"], ["id", "483d9386-cdd9-11e4-9b55-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "483fc340-cdd9-11e4-b348-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "483cfe6c-cdd9-11e4-a1d1-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '483cfe6c-cdd9-11e4-a1d1-705681abff85' LIMIT 1 [["organization_id", "483fc340-cdd9-11e4-b348-705681abff85"]] Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 1.7ms)  (3.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$fhkfHJdV/lUe1nQAM22rh.s1AN5nslfZPa9nry0WkiSFD8ei.Fq1O"], ["created_at", "2015-03-19 01:43:03.223488"], ["updated_at", "2015-03-19 01:43:03.223488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:03.230543"], ["user_id", "4848e9a2-cdd9-11e4-a2a4-705681abff85"], ["created_at", "2015-03-19 01:43:03.231317"], ["updated_at", "2015-03-19 01:43:03.231317"], ["token", "89wDgknE05fW0XGsYRgAvEOCa5cuASGDP0dmIQKvA4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:03.235270"], ["updated_at", "2015-03-19 01:43:03.235270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4848e9a2-cdd9-11e4-a2a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '484a1980-cdd9-11e4-aa49-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4848e9a2-cdd9-11e4-a2a4-705681abff85"], ["organization_id", "484a1980-cdd9-11e4-aa49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:03.240214"], ["updated_at", "2015-03-19 01:43:03.240214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 18:43:03 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$HXiV3jyxzgkzKqroMmJI2.puf2RtZhAmGVMbZqu8tSGf2mCJqcukG"], ["created_at", "2015-03-19 01:43:10.769665"], ["updated_at", "2015-03-19 01:43:10.769665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.779735"], ["updated_at", "2015-03-19 01:43:10.779735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cc7c778-cdd9-11e4-b7d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '4cc93374-cdd9-11e4-be4a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4cc7c778-cdd9-11e4-b7d5-705681abff85"], ["organization_id", "4cc93374-cdd9-11e4-be4a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:10.798136"], ["updated_at", "2015-03-19 01:43:10.798136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ykBUzigFNYmpPGuA45zs8.yK2oEK.eC8yqvEZthGoDwYWLEE3C2q2"], ["created_at", "2015-03-19 01:43:10.805018"], ["updated_at", "2015-03-19 01:43:10.805018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.808329"], ["updated_at", "2015-03-19 01:43:10.808329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cccfd60-cdd9-11e4-83ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ccd7aec-cdd9-11e4-a559-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4cccfd60-cdd9-11e4-83ba-705681abff85"], ["organization_id", "4ccd7aec-cdd9-11e4-a559-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:10.811648"], ["updated_at", "2015-03-19 01:43:10.811648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4cccfd60-cdd9-11e4-83ba-705681abff85' LIMIT 1 [["organization_id", "4ccd7aec-cdd9-11e4-a559-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$h09BDUxu0503WG6KlpuQHO0LlFPf9cI1yXQZIrQDp6dr5e7OQYyqW"], ["created_at", "2015-03-19 01:43:10.837082"], ["updated_at", "2015-03-19 01:43:10.837082"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.847498"], ["updated_at", "2015-03-19 01:43:10.847498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cd203c8-cdd9-11e4-aaa8-705681abff85' AND "clubhouse_memberships"."organization_id" = '4cd38fcc-cdd9-11e4-b88a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4cd203c8-cdd9-11e4-aaa8-705681abff85"], ["organization_id", "4cd38fcc-cdd9-11e4-b88a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:10.852971"], ["updated_at", "2015-03-19 01:43:10.852971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4cd203c8-cdd9-11e4-aaa8-705681abff85' LIMIT 1 [["organization_id", "4cd38fcc-cdd9-11e4-b88a-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$yg5j3nHIJsLkrOcc.APbQ.09Q1U//fT1txxvf7UEadCwaBdV3wIzy"], ["created_at", "2015-03-19 01:43:10.860363"], ["updated_at", "2015-03-19 01:43:10.860363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.863808"], ["updated_at", "2015-03-19 01:43:10.863808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cd56df6-cdd9-11e4-b277-705681abff85' AND "clubhouse_memberships"."organization_id" = '4cd5f5f0-cdd9-11e4-8178-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4cd56df6-cdd9-11e4-b277-705681abff85"], ["organization_id", "4cd5f5f0-cdd9-11e4-8178-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:10.867253"], ["updated_at", "2015-03-19 01:43:10.867253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$SGGsi5UXUHYjMZtKXZW0/Ovr.Ql43CzRrXFBLFNjKnM5dI0EMllce"], ["created_at", "2015-03-19 01:43:10.873103"], ["updated_at", "2015-03-19 01:43:10.873103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.876243"], ["updated_at", "2015-03-19 01:43:10.876243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cd76066-cdd9-11e4-a69b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4cd7d71c-cdd9-11e4-8a58-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4cd76066-cdd9-11e4-a69b-705681abff85"], ["organization_id", "4cd7d71c-cdd9-11e4-8a58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:10.879928"], ["updated_at", "2015-03-19 01:43:10.879928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4cd76066-cdd9-11e4-a69b-705681abff85' LIMIT 1 [["organization_id", "4cd7d71c-cdd9-11e4-8a58-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Vp1MvSgC/qLpgRJByzalse1NR0vLHlbdMvULyglmdpORL/skDUUnS"], ["created_at", "2015-03-19 01:43:10.888160"], ["updated_at", "2015-03-19 01:43:10.888160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.891944"], ["updated_at", "2015-03-19 01:43:10.891944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cd9ad80-cdd9-11e4-9473-705681abff85' AND "clubhouse_memberships"."organization_id" = '4cda42ae-cdd9-11e4-ac12-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4cd9ad80-cdd9-11e4-9473-705681abff85"], ["organization_id", "4cda42ae-cdd9-11e4-ac12-705681abff85"], ["created_at", "2015-03-19 01:43:10.895458"], ["updated_at", "2015-03-19 01:43:10.895458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$j0CAosujOkcyuMT/eAlioev0YZZJvx8dn7COSIKrP8jCm/B91Gghe"], ["created_at", "2015-03-19 01:43:10.901532"], ["updated_at", "2015-03-19 01:43:10.901532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.904579"], ["updated_at", "2015-03-19 01:43:10.904579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cdbb42c-cdd9-11e4-a88b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4cdc2920-cdd9-11e4-8540-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4cdbb42c-cdd9-11e4-a88b-705681abff85"], ["organization_id", "4cdc2920-cdd9-11e4-8540-705681abff85"], ["created_at", "2015-03-19 01:43:10.907791"], ["updated_at", "2015-03-19 01:43:10.907791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4cdbb42c-cdd9-11e4-a88b-705681abff85' LIMIT 1 [["organization_id", "4cdc2920-cdd9-11e4-8540-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$BmBz2P6hQf/qIVCznArvi.MEHn3XJWMKws1ug7t3swFDX.vOiGl9K"], ["created_at", "2015-03-19 01:43:10.916827"], ["updated_at", "2015-03-19 01:43:10.916827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.920213"], ["updated_at", "2015-03-19 01:43:10.920213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cde0e20-cdd9-11e4-9f17-705681abff85' AND "clubhouse_memberships"."organization_id" = '4cde8ea4-cdd9-11e4-ad6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4cde0e20-cdd9-11e4-9f17-705681abff85"], ["organization_id", "4cde8ea4-cdd9-11e4-ad6a-705681abff85"], ["created_at", "2015-03-19 01:43:10.923529"], ["updated_at", "2015-03-19 01:43:10.923529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4cde0e20-cdd9-11e4-9f17-705681abff85' LIMIT 1 [["organization_id", "4cde8ea4-cdd9-11e4-ad6a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$rXwrzATI6Ns9vvlwEewH6OBAyQ301Fy58Z3jsEP6L5dL50provAo."], ["created_at", "2015-03-19 01:43:10.930600"], ["updated_at", "2015-03-19 01:43:10.930600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.934592"], ["updated_at", "2015-03-19 01:43:10.934592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ce02840-cdd9-11e4-a831-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ce0c16a-cdd9-11e4-89cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ce02840-cdd9-11e4-a831-705681abff85"], ["organization_id", "4ce0c16a-cdd9-11e4-89cc-705681abff85"], ["created_at", "2015-03-19 01:43:10.938044"], ["updated_at", "2015-03-19 01:43:10.938044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$EPzpjgKbH5YX/kWsrN6NEOXE66o8NTIgz7xxrDwoM8/bzM97OtP5y"], ["created_at", "2015-03-19 01:43:10.944334"], ["updated_at", "2015-03-19 01:43:10.944334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.948252"], ["updated_at", "2015-03-19 01:43:10.948252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ce2427e-cdd9-11e4-a753-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ce2d7a2-cdd9-11e4-9d86-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ce2427e-cdd9-11e4-a753-705681abff85"], ["organization_id", "4ce2d7a2-cdd9-11e4-9d86-705681abff85"], ["created_at", "2015-03-19 01:43:10.951789"], ["updated_at", "2015-03-19 01:43:10.951789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ce2427e-cdd9-11e4-a753-705681abff85' LIMIT 1 [["organization_id", "4ce2d7a2-cdd9-11e4-9d86-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$ti1ihNU9..glEOp2rZ.o9e5ANPWmmEIc5M7EEZVx2kMRqOr4/id4G"], ["created_at", "2015-03-19 01:43:10.960194"], ["updated_at", "2015-03-19 01:43:10.960194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$tZSbDSZHshxePvhx.tBOEOtxNZymCcmW36yel4TPsfvbSxRDlyhq."], ["created_at", "2015-03-19 01:43:10.971376"], ["updated_at", "2015-03-19 01:43:10.971376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.974566"], ["updated_at", "2015-03-19 01:43:10.974566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$I7Xe44rVEwgUpzPRRdIyIey04x610pHHAd8UAgT8uopnGtKCB8UQi"], ["created_at", "2015-03-19 01:43:10.981555"], ["updated_at", "2015-03-19 01:43:10.981555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.984766"], ["updated_at", "2015-03-19 01:43:10.984766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ce7ec60-cdd9-11e4-9688-705681abff85' LIMIT 1 [["organization_id", "4ce8683e-cdd9-11e4-82d8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$FrZ.WASZT1CiePrK.IPnaOrhaE3fUdcljkN9Mj6iNY2zySDd7cSD."], ["created_at", "2015-03-19 01:43:10.991878"], ["updated_at", "2015-03-19 01:43:10.991878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:10.997045"], ["updated_at", "2015-03-19 01:43:10.997045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4ce9906a-cdd9-11e4-8cd1-705681abff85' LIMIT 1 [["organization_id", "4cea4e56-cdd9-11e4-bbc5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$gEY0sVOKceQw3g4DFBC7x.JkJ9tLz8G/ix9IYkTUk2Ef25EoMd8pG"], ["created_at", "2015-03-19 01:43:11.004690"], ["updated_at", "2015-03-19 01:43:11.004690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.008053"], ["updated_at", "2015-03-19 01:43:11.008053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$6HtFhEVInqma2zRCqafXFOGM92wbhOLIcOXjRNTR400mvCueVpLVG"], ["created_at", "2015-03-19 01:43:11.015378"], ["updated_at", "2015-03-19 01:43:11.015378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.019084"], ["updated_at", "2015-03-19 01:43:11.019084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ced192e-cdd9-11e4-a0d2-705681abff85' LIMIT 1 [["organization_id", "4cef1c60-cdd9-11e4-890c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.056235"], ["updated_at", "2015-03-19 01:43:11.056235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '4cf352d0-cdd9-11e4-8a15-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "4cf352d0-cdd9-11e4-8a15-705681abff85"], ["created_at", "2015-03-19 01:43:11.059638"], ["updated_at", "2015-03-19 01:43:11.059638"], ["token", "ajNgxagWEKRw3FRvbPZt7YmD2UM2xrEef330sas__yE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4cf352d0-cdd9-11e4-8a15-705681abff85"]] Clubhouse::Invitation Exists (6.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '4cf352d0-cdd9-11e4-8a15-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4cf352d0-cdd9-11e4-8a15-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '4cf352d0-cdd9-11e4-8a15-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.093321"], ["updated_at", "2015-03-19 01:43:11.093321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4cf900ae-cdd9-11e4-b161-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "4cf900ae-cdd9-11e4-b161-705681abff85"], ["created_at", "2015-03-19 01:43:11.097125"], ["updated_at", "2015-03-19 01:43:11.097125"], ["token", "bz6SQUQFXCLDHb7F1-3AamxYiEbZ0UkBY3mAQTyrqoA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$zmkx3dyh5az54/lgkPQ0gOflB5O8FR/eXoYU9yYsL3d0S8lLoU6XC"], ["created_at", "2015-03-19 01:43:11.104996"], ["updated_at", "2015-03-19 01:43:11.104996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.108623"], ["updated_at", "2015-03-19 01:43:11.108623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cfacbfa-cdd9-11e4-b6b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '4cfb4cf6-cdd9-11e4-9b9f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4cfacbfa-cdd9-11e4-b6b9-705681abff85"], ["organization_id", "4cfb4cf6-cdd9-11e4-9b9f-705681abff85"], ["created_at", "2015-03-19 01:43:11.112421"], ["updated_at", "2015-03-19 01:43:11.112421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4cfacbfa-cdd9-11e4-b6b9-705681abff85' LIMIT 1 [["organization_id", "4cfb4cf6-cdd9-11e4-9b9f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$iqKxU2OqvfT24yxSzKQ4Au0oKQ3qZCOY7.33myJtV615h4O/WUQ1i"], ["created_at", "2015-03-19 01:43:11.120912"], ["updated_at", "2015-03-19 01:43:11.120912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.124226"], ["updated_at", "2015-03-19 01:43:11.124226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cfd332c-cdd9-11e4-b588-705681abff85' AND "clubhouse_memberships"."organization_id" = '4cfdadde-cdd9-11e4-bf42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4cfd332c-cdd9-11e4-b588-705681abff85"], ["organization_id", "4cfdadde-cdd9-11e4-bf42-705681abff85"], ["created_at", "2015-03-19 01:43:11.127725"], ["updated_at", "2015-03-19 01:43:11.127725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4cfd332c-cdd9-11e4-b588-705681abff85' LIMIT 1 [["organization_id", "4cfdadde-cdd9-11e4-bf42-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$mtR/AOEEqVa14/30F2Od/.Z8XlaEoSbDutUo/vobo39xDTsafu7fO"], ["created_at", "2015-03-19 01:43:11.135040"], ["updated_at", "2015-03-19 01:43:11.135040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.138169"], ["updated_at", "2015-03-19 01:43:11.138169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cff5800-cdd9-11e4-bea1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4cffce0c-cdd9-11e4-a580-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4cff5800-cdd9-11e4-bea1-705681abff85"], ["organization_id", "4cffce0c-cdd9-11e4-a580-705681abff85"], ["created_at", "2015-03-19 01:43:11.141302"], ["updated_at", "2015-03-19 01:43:11.141302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ai7/bemAir/YRfY7g6reU.4iyvK6YL4U5Nt95GTA1/sTENiSMrhv2"], ["created_at", "2015-03-19 01:43:11.148351"], ["updated_at", "2015-03-19 01:43:11.148351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.152860"], ["updated_at", "2015-03-19 01:43:11.152860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d017522-cdd9-11e4-a873-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d0213e2-cdd9-11e4-9072-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d017522-cdd9-11e4-a873-705681abff85"], ["organization_id", "4d0213e2-cdd9-11e4-9072-705681abff85"], ["created_at", "2015-03-19 01:43:11.156381"], ["updated_at", "2015-03-19 01:43:11.156381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4d017522-cdd9-11e4-a873-705681abff85' LIMIT 1 [["organization_id", "4d0213e2-cdd9-11e4-9072-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$.NrdsD88iaDaVIOcHTW3MOQUNuei3/ZJEs1oEFyUKvtNxmmwPdf3y"], ["created_at", "2015-03-19 01:43:11.163445"], ["updated_at", "2015-03-19 01:43:11.163445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.166876"], ["updated_at", "2015-03-19 01:43:11.166876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d03acc0-cdd9-11e4-b5e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d043136-cdd9-11e4-b5de-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d03acc0-cdd9-11e4-b5e0-705681abff85"], ["organization_id", "4d043136-cdd9-11e4-b5de-705681abff85"], ["created_at", "2015-03-19 01:43:11.170093"], ["updated_at", "2015-03-19 01:43:11.170093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4d03acc0-cdd9-11e4-b5e0-705681abff85' LIMIT 1 [["organization_id", "4d043136-cdd9-11e4-b5de-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$RP7VkSnIqZigbmdpIXWhbuFQBa6k6YgXfAFGF0pG0sY60brQ6L.se"], ["created_at", "2015-03-19 01:43:11.177746"], ["updated_at", "2015-03-19 01:43:11.177746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$mKWjH0H66gJlhVAObNPK7OUm1nUHADGd64otGqJW/m0Q5Lmh9ccb2"], ["created_at", "2015-03-19 01:43:11.182586"], ["updated_at", "2015-03-19 01:43:11.182586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.186063"], ["updated_at", "2015-03-19 01:43:11.186063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d069c28-cdd9-11e4-b74a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d071d92-cdd9-11e4-82d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d069c28-cdd9-11e4-b74a-705681abff85"], ["organization_id", "4d071d92-cdd9-11e4-82d7-705681abff85"], ["created_at", "2015-03-19 01:43:11.189463"], ["updated_at", "2015-03-19 01:43:11.189463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4d05ed00-cdd9-11e4-8b61-705681abff85' LIMIT 1 [["organization_id", "4d071d92-cdd9-11e4-82d7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$liSsJhz.Ex8WS9Zp73GlC.YDpjed1q5wzDyvmkWAz9z/H82rrZCSy"], ["created_at", "2015-03-19 01:43:11.196978"], ["updated_at", "2015-03-19 01:43:11.196978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$CVlBXyNP2duaunpcTFjVN.YJvdgGiUp7EKL9/zUe2cSW.s/nWagkm"], ["created_at", "2015-03-19 01:43:11.201327"], ["updated_at", "2015-03-19 01:43:11.201327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.204391"], ["updated_at", "2015-03-19 01:43:11.204391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d097222-cdd9-11e4-ac47-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d09e8ba-cdd9-11e4-a9d4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d097222-cdd9-11e4-ac47-705681abff85"], ["organization_id", "4d09e8ba-cdd9-11e4-a9d4-705681abff85"], ["created_at", "2015-03-19 01:43:11.207968"], ["updated_at", "2015-03-19 01:43:11.207968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4d08ca0c-cdd9-11e4-a4b3-705681abff85' LIMIT 1 [["organization_id", "4d09e8ba-cdd9-11e4-a9d4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$bQag9a9tQRnsELCys1q77OEc7K8W3GI2mydMxy6KibP.R9UHcY0ca"], ["created_at", "2015-03-19 01:43:11.216123"], ["updated_at", "2015-03-19 01:43:11.216123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$u42b49Ctcfux2TLESZ2El.vSArH2JTwwuwKk3RKNh5fQRQN6e0PDq"], ["created_at", "2015-03-19 01:43:11.220588"], ["updated_at", "2015-03-19 01:43:11.220588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.223765"], ["updated_at", "2015-03-19 01:43:11.223765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d0c6324-cdd9-11e4-8a5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d0ce236-cdd9-11e4-9d0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d0c6324-cdd9-11e4-8a5d-705681abff85"], ["organization_id", "4d0ce236-cdd9-11e4-9d0e-705681abff85"], ["created_at", "2015-03-19 01:43:11.227251"], ["updated_at", "2015-03-19 01:43:11.227251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$eQXep54AKCCpeAnXt5zCW.CVU/NKxDux/90Ycbs6PF0L4ZO/VbPGu"], ["created_at", "2015-03-19 01:43:11.233413"], ["updated_at", "2015-03-19 01:43:11.233413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$Hek9XSCDtq4Gr04VKY9.zO6dY6Fq3ZpGP76u6sJaa/7msIAmhvuu6"], ["created_at", "2015-03-19 01:43:11.238309"], ["updated_at", "2015-03-19 01:43:11.238309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.243738"], ["updated_at", "2015-03-19 01:43:11.243738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d0f1858-cdd9-11e4-9544-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d0ff458-cdd9-11e4-b8a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d0f1858-cdd9-11e4-9544-705681abff85"], ["organization_id", "4d0ff458-cdd9-11e4-b8a4-705681abff85"], ["created_at", "2015-03-19 01:43:11.247733"], ["updated_at", "2015-03-19 01:43:11.247733"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4d0e5b5c-cdd9-11e4-96f4-705681abff85' LIMIT 1 [["organization_id", "4d0ff458-cdd9-11e4-b8a4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$45loKF4UI0NfmY/j7CDCEuHQC7ff0PVUz0Ot5F4IwRuor0tL7QK5O"], ["created_at", "2015-03-19 01:43:11.256993"], ["updated_at", "2015-03-19 01:43:11.256993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.260487"], ["updated_at", "2015-03-19 01:43:11.260487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4d11f4a6-cdd9-11e4-ad31-705681abff85' LIMIT 1 [["organization_id", "4d127bec-cdd9-11e4-9c3d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$Snqb1I3T1QA9.JIrIbCKxu32Y/Qba3Q5GzbZ9OC.G91bThRKmycfS"], ["created_at", "2015-03-19 01:43:11.269378"], ["updated_at", "2015-03-19 01:43:11.269378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.272949"], ["updated_at", "2015-03-19 01:43:11.272949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d13da3c-cdd9-11e4-b269-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d14645c-cdd9-11e4-974b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d13da3c-cdd9-11e4-b269-705681abff85"], ["organization_id", "4d14645c-cdd9-11e4-974b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.276514"], ["updated_at", "2015-03-19 01:43:11.276514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4d13da3c-cdd9-11e4-b269-705681abff85' LIMIT 1 [["organization_id", "4d14645c-cdd9-11e4-974b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$Cl2V7FML1fobtKnN9DbAcu5HCF/pNXOHQP2DuXEWumsugYSelO4ZG"], ["created_at", "2015-03-19 01:43:11.284138"], ["updated_at", "2015-03-19 01:43:11.284138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.288347"], ["updated_at", "2015-03-19 01:43:11.288347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d161bbc-cdd9-11e4-a0a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d16c56c-cdd9-11e4-b66b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d161bbc-cdd9-11e4-a0a1-705681abff85"], ["organization_id", "4d16c56c-cdd9-11e4-b66b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.292261"], ["updated_at", "2015-03-19 01:43:11.292261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4d161bbc-cdd9-11e4-a0a1-705681abff85' LIMIT 1 [["organization_id", "4d16c56c-cdd9-11e4-b66b-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$ua7tlMiRkJb6M53H9fYKiugyDpl/tuIzTMWrfoo4BGIvolI3b2Hfa"], ["created_at", "2015-03-19 01:43:11.299642"], ["updated_at", "2015-03-19 01:43:11.299642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.303114"], ["updated_at", "2015-03-19 01:43:11.303114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d1878da-cdd9-11e4-a2ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d18faf8-cdd9-11e4-8fc6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d1878da-cdd9-11e4-a2ce-705681abff85"], ["organization_id", "4d18faf8-cdd9-11e4-8fc6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.307061"], ["updated_at", "2015-03-19 01:43:11.307061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$5472klvgrID5EX0v6Flb9u/8tFiuPCFPuQWsrBU6nqd24y1g34WoO"], ["created_at", "2015-03-19 01:43:11.314598"], ["updated_at", "2015-03-19 01:43:11.314598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.318180"], ["updated_at", "2015-03-19 01:43:11.318180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d1abd48-cdd9-11e4-ae95-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d1b47ae-cdd9-11e4-b900-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d1abd48-cdd9-11e4-ae95-705681abff85"], ["organization_id", "4d1b47ae-cdd9-11e4-b900-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.321473"], ["updated_at", "2015-03-19 01:43:11.321473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4d1abd48-cdd9-11e4-ae95-705681abff85' LIMIT 1 [["organization_id", "4d1b47ae-cdd9-11e4-b900-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$bEJNkDk3l5qwelEJEKBr7uiIqgtFOHCc58HX8gFVSYb9YJvmH2TuG"], ["created_at", "2015-03-19 01:43:11.328730"], ["updated_at", "2015-03-19 01:43:11.328730"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.332462"], ["updated_at", "2015-03-19 01:43:11.332462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d1ce618-cdd9-11e4-8bdb-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d1d75c4-cdd9-11e4-aa5c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d1ce618-cdd9-11e4-8bdb-705681abff85"], ["organization_id", "4d1d75c4-cdd9-11e4-aa5c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.335900"], ["updated_at", "2015-03-19 01:43:11.335900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$Lnnq6ybYyW9xYF/Vm5drO.z5OWyIZp7LV0yOLnPQGiQUOBbmWV6Aq"], ["created_at", "2015-03-19 01:43:11.340546"], ["updated_at", "2015-03-19 01:43:11.340546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d1eba4c-cdd9-11e4-95e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d1d75c4-cdd9-11e4-aa5c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d1eba4c-cdd9-11e4-95e6-705681abff85"], ["organization_id", "4d1d75c4-cdd9-11e4-aa5c-705681abff85"], ["created_at", "2015-03-19 01:43:11.344427"], ["updated_at", "2015-03-19 01:43:11.344427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4d1ce618-cdd9-11e4-8bdb-705681abff85' LIMIT 1 [["organization_id", "4d1d75c4-cdd9-11e4-aa5c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$pfjARVcO2k8HkkVdlRYRw.2FTy36NfXOdBhyWutemvsPFez6ZPkua"], ["created_at", "2015-03-19 01:43:11.352064"], ["updated_at", "2015-03-19 01:43:11.352064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.355651"], ["updated_at", "2015-03-19 01:43:11.355651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d207a4e-cdd9-11e4-aa3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d210176-cdd9-11e4-b4ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d207a4e-cdd9-11e4-aa3b-705681abff85"], ["organization_id", "4d210176-cdd9-11e4-b4ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.359176"], ["updated_at", "2015-03-19 01:43:11.359176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$klHQ8aOp2ZsgNn5hOPSv/OzvH6R7EV9TSoApyOii6QVe//NfhXPRK"], ["created_at", "2015-03-19 01:43:11.364118"], ["updated_at", "2015-03-19 01:43:11.364118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d224a86-cdd9-11e4-ae91-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d210176-cdd9-11e4-b4ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d224a86-cdd9-11e4-ae91-705681abff85"], ["organization_id", "4d210176-cdd9-11e4-b4ea-705681abff85"], ["created_at", "2015-03-19 01:43:11.369000"], ["updated_at", "2015-03-19 01:43:11.369000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4d207a4e-cdd9-11e4-aa3b-705681abff85' LIMIT 1 [["organization_id", "4d210176-cdd9-11e4-b4ea-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$V8R6bE9mHtbVF.Jc8S3kL.ecaVwda6wk3dkittSldN1nr/X7pjMay"], ["created_at", "2015-03-19 01:43:11.384825"], ["updated_at", "2015-03-19 01:43:11.384825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.388126"], ["updated_at", "2015-03-19 01:43:11.388126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d25790e-cdd9-11e4-a9b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d25f456-cdd9-11e4-9012-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d25790e-cdd9-11e4-a9b2-705681abff85"], ["organization_id", "4d25f456-cdd9-11e4-9012-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.391552"], ["updated_at", "2015-03-19 01:43:11.391552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$lJwfrwhI6/vVMuw4ySar8uz.FPiKTqhbK4p0ZEVv.IokVYrb3VQuS"], ["created_at", "2015-03-19 01:43:11.396223"], ["updated_at", "2015-03-19 01:43:11.396223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d273280-cdd9-11e4-8e2d-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d25f456-cdd9-11e4-9012-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d273280-cdd9-11e4-8e2d-705681abff85"], ["organization_id", "4d25f456-cdd9-11e4-9012-705681abff85"], ["created_at", "2015-03-19 01:43:11.399885"], ["updated_at", "2015-03-19 01:43:11.399885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$xhjbnZnX4RsjYj4CKhjCf.EJ80appsoUeIfW3kiwAHIjo7wUXl2ym"], ["created_at", "2015-03-19 01:43:11.405751"], ["updated_at", "2015-03-19 01:43:11.405751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.409400"], ["updated_at", "2015-03-19 01:43:11.409400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d28a6b0-cdd9-11e4-ae88-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d2937c4-cdd9-11e4-ac49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d28a6b0-cdd9-11e4-ae88-705681abff85"], ["organization_id", "4d2937c4-cdd9-11e4-ac49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.413394"], ["updated_at", "2015-03-19 01:43:11.413394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$NSiW0Rh8psd1RjTvf8F2GuvhhcJwNot1icM1PK4N.ZCKW6ZV7wEwe"], ["created_at", "2015-03-19 01:43:11.418090"], ["updated_at", "2015-03-19 01:43:11.418090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d2a8674-cdd9-11e4-a86a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d2937c4-cdd9-11e4-ac49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d2a8674-cdd9-11e4-a86a-705681abff85"], ["organization_id", "4d2937c4-cdd9-11e4-ac49-705681abff85"], ["created_at", "2015-03-19 01:43:11.421469"], ["updated_at", "2015-03-19 01:43:11.421469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4d28a6b0-cdd9-11e4-ae88-705681abff85' LIMIT 1 [["organization_id", "4d2937c4-cdd9-11e4-ac49-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$fEiFt/dvbpoT2Mm6eI92VeCimGIV6yz/zUPGIRvXlQrXwO5jddA72"], ["created_at", "2015-03-19 01:43:11.428450"], ["updated_at", "2015-03-19 01:43:11.428450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.431846"], ["updated_at", "2015-03-19 01:43:11.431846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d2c1d90-cdd9-11e4-ac49-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d2c9f4a-cdd9-11e4-8e72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d2c1d90-cdd9-11e4-ac49-705681abff85"], ["organization_id", "4d2c9f4a-cdd9-11e4-8e72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.435097"], ["updated_at", "2015-03-19 01:43:11.435097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4d2c1d90-cdd9-11e4-ac49-705681abff85' LIMIT 1 [["organization_id", "4d2c9f4a-cdd9-11e4-8e72-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$YssMgNNzxf1uy7rYdA4Lf.ezFfn0i5bN4ID3OsSX/8Xs3QLOuupiW"], ["created_at", "2015-03-19 01:43:11.443972"], ["updated_at", "2015-03-19 01:43:11.443972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$6Z9LyYuL8BRgx.JEb75xdOiJ/vIVGTys9UgfZtzuXE5z1N52kkFOe"], ["created_at", "2015-03-19 01:43:11.448682"], ["updated_at", "2015-03-19 01:43:11.448682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.456638"], ["user_id", "4d2e82b0-cdd9-11e4-9187-705681abff85"], ["created_at", "2015-03-19 01:43:11.458185"], ["updated_at", "2015-03-19 01:43:11.458185"], ["token", "gFUhLQk7C6UPb9-CJGOP7Ash_nGzhA25bf2kGK4P0c0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.462637"], ["updated_at", "2015-03-19 01:43:11.462637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d2e82b0-cdd9-11e4-9187-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d315a1c-cdd9-11e4-b6f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d2e82b0-cdd9-11e4-9187-705681abff85"], ["organization_id", "4d315a1c-cdd9-11e4-b6f4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.466180"], ["updated_at", "2015-03-19 01:43:11.466180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d2f30ca-cdd9-11e4-8017-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d315a1c-cdd9-11e4-b6f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d2f30ca-cdd9-11e4-8017-705681abff85"], ["organization_id", "4d315a1c-cdd9-11e4-b6f4-705681abff85"], ["created_at", "2015-03-19 01:43:11.469528"], ["updated_at", "2015-03-19 01:43:11.469528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 18:43:11 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$UtRxSc7l9YCIGzRexHpzv.n6Bxf5QYdt9zap2XFXzCwG7eYXolTN2"], ["created_at", "2015-03-19 01:43:11.502659"], ["updated_at", "2015-03-19 01:43:11.502659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$WFh1Lvtjsonu59VH8TAzfuorqZoaPvuaLuBHStbIGQm2i5ePM1/J."], ["created_at", "2015-03-19 01:43:11.506951"], ["updated_at", "2015-03-19 01:43:11.506951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.508500"], ["user_id", "4d376fc4-cdd9-11e4-a304-705681abff85"], ["created_at", "2015-03-19 01:43:11.509328"], ["updated_at", "2015-03-19 01:43:11.509328"], ["token", "iluPVQ3Ouuu39vXtnMOfIKygj1YQyHAKSNMHtMETw6U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.512894"], ["updated_at", "2015-03-19 01:43:11.512894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d376fc4-cdd9-11e4-a304-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d3908f2-cdd9-11e4-9410-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d376fc4-cdd9-11e4-a304-705681abff85"], ["organization_id", "4d3908f2-cdd9-11e4-9410-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.516872"], ["updated_at", "2015-03-19 01:43:11.516872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d3815a0-cdd9-11e4-91fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d3908f2-cdd9-11e4-9410-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d3815a0-cdd9-11e4-91fd-705681abff85"], ["organization_id", "4d3908f2-cdd9-11e4-9410-705681abff85"], ["created_at", "2015-03-19 01:43:11.520348"], ["updated_at", "2015-03-19 01:43:11.520348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/4d3a2368-cdd9-11e4-95a5-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:11 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"4d3a2368-cdd9-11e4-95a5-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:11.525157' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iluPVQ3Ouuu39vXtnMOfIKygj1YQyHAKSNMHtMETw6U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:11.527014"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:11.528087"], ["id", "4d387c84-cdd9-11e4-97f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "4d3a2368-cdd9-11e4-95a5-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d376fc4-cdd9-11e4-a304-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4d3908f2-cdd9-11e4-9410-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4d376fc4-cdd9-11e4-a304-705681abff85' LIMIT 1 [["organization_id", "4d3908f2-cdd9-11e4-9410-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d3815a0-cdd9-11e4-91fd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "4d3a2368-cdd9-11e4-95a5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$r00WmPaANu4AfvecOxWIHuTz559izS5Hp4eR5uEDUAzGL2mLxm40C"], ["created_at", "2015-03-19 01:43:11.544118"], ["updated_at", "2015-03-19 01:43:11.544118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$cA0O4/bXHja80Cauk5/Zk.vf04jN6JVcvouuOPNzY.TXEv2gGXHmS"], ["created_at", "2015-03-19 01:43:11.548752"], ["updated_at", "2015-03-19 01:43:11.548752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.550610"], ["user_id", "4d3dc2f2-cdd9-11e4-92fd-705681abff85"], ["created_at", "2015-03-19 01:43:11.551458"], ["updated_at", "2015-03-19 01:43:11.551458"], ["token", "vXwNmV5wYBu6rbCj8GD1hnXT0lMh_xITSYUDP-3OzRM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.555600"], ["updated_at", "2015-03-19 01:43:11.555600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d3dc2f2-cdd9-11e4-92fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d3f81c8-cdd9-11e4-a056-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d3dc2f2-cdd9-11e4-92fd-705681abff85"], ["organization_id", "4d3f81c8-cdd9-11e4-a056-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.559168"], ["updated_at", "2015-03-19 01:43:11.559168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d3e7cc4-cdd9-11e4-be71-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d3f81c8-cdd9-11e4-a056-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d3e7cc4-cdd9-11e4-be71-705681abff85"], ["organization_id", "4d3f81c8-cdd9-11e4-a056-705681abff85"], ["created_at", "2015-03-19 01:43:11.562861"], ["updated_at", "2015-03-19 01:43:11.562861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:43:11 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$PjE9waud7F2V2gntnPzq3.aEDKrwghmsNvci4zA7TF9/UeSX5FG3W"], ["created_at", "2015-03-19 01:43:11.573333"], ["updated_at", "2015-03-19 01:43:11.573333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$VW68jdeDmimuRpOSXIlhL.SRtiwlZkr39mmH9NU8ItPL/7D6KVyWK"], ["created_at", "2015-03-19 01:43:11.578973"], ["updated_at", "2015-03-19 01:43:11.578973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.580736"], ["user_id", "4d423f1c-cdd9-11e4-a29e-705681abff85"], ["created_at", "2015-03-19 01:43:11.581501"], ["updated_at", "2015-03-19 01:43:11.581501"], ["token", "4idWdHAuNE-tecbLs9FTkVD5SJVX5QV-YAXuhHioODc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.585407"], ["updated_at", "2015-03-19 01:43:11.585407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d423f1c-cdd9-11e4-a29e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d440e50-cdd9-11e4-ada0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d423f1c-cdd9-11e4-a29e-705681abff85"], ["organization_id", "4d440e50-cdd9-11e4-ada0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.588723"], ["updated_at", "2015-03-19 01:43:11.588723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d4318a6-cdd9-11e4-9f84-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d440e50-cdd9-11e4-ada0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d4318a6-cdd9-11e4-9f84-705681abff85"], ["organization_id", "4d440e50-cdd9-11e4-ada0-705681abff85"], ["created_at", "2015-03-19 01:43:11.591759"], ["updated_at", "2015-03-19 01:43:11.591759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:43:11 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:11.596141' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4idWdHAuNE-tecbLs9FTkVD5SJVX5QV-YAXuhHioODc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:11.597746"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:11.598736"], ["id", "4d437e0e-cdd9-11e4-bc7d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d423f1c-cdd9-11e4-a29e-705681abff85"]] Clubhouse::Membership Exists (105.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4d423f1c-cdd9-11e4-a29e-705681abff85' LIMIT 1 [["organization_id", "4d440e50-cdd9-11e4-ada0-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "4d440e50-cdd9-11e4-ada0-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4d440e50-cdd9-11e4-ada0-705681abff85"]] CACHE (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d423f1c-cdd9-11e4-a29e-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4d440e50-cdd9-11e4-ada0-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d4318a6-cdd9-11e4-9f84-705681abff85"]] Completed 200 OK in 155ms (Views: 28.3ms | ActiveRecord: 108.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$YaB0s9qjKC.ow.tOHndyweX06DGcofgejSNHNikGB/20Zq6n6v3qG"], ["created_at", "2015-03-19 01:43:11.759595"], ["updated_at", "2015-03-19 01:43:11.759595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$RxrgtHkdvdBDgqLvheZgVeL6MFsmm4P88FvzcbREkQ0G/.zT0ZP3i"], ["created_at", "2015-03-19 01:43:11.763838"], ["updated_at", "2015-03-19 01:43:11.763838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.765405"], ["user_id", "4d5ea4e0-cdd9-11e4-a1e3-705681abff85"], ["created_at", "2015-03-19 01:43:11.766243"], ["updated_at", "2015-03-19 01:43:11.766243"], ["token", "dLp0tszAVWeqm9trT-SJsuHiH6RoMOGJIN5HVsHIhEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.770121"], ["updated_at", "2015-03-19 01:43:11.770121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d5ea4e0-cdd9-11e4-a1e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d603f94-cdd9-11e4-938b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d5ea4e0-cdd9-11e4-a1e3-705681abff85"], ["organization_id", "4d603f94-cdd9-11e4-938b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.773622"], ["updated_at", "2015-03-19 01:43:11.773622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d5f46a2-cdd9-11e4-8356-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d603f94-cdd9-11e4-938b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d5f46a2-cdd9-11e4-8356-705681abff85"], ["organization_id", "4d603f94-cdd9-11e4-938b-705681abff85"], ["created_at", "2015-03-19 01:43:11.777142"], ["updated_at", "2015-03-19 01:43:11.777142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$Z8bGcglR2tp2c6FtAcYpzurMrhu20pejWHka.FPpSSMpFWufMXMoC"], ["created_at", "2015-03-19 01:43:11.783017"], ["updated_at", "2015-03-19 01:43:11.783017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.784878"], ["user_id", "4d623bfa-cdd9-11e4-8df1-705681abff85"], ["created_at", "2015-03-19 01:43:11.786183"], ["updated_at", "2015-03-19 01:43:11.786183"], ["token", "aumaL1pkIwuIE9Q-TRsTHvzzD5L3mCybbCdn73iYlaM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '4d603f94-cdd9-11e4-938b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "4d603f94-cdd9-11e4-938b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.791272"], ["updated_at", "2015-03-19 01:43:11.791272"], ["token", "rFhrOjH1qAxARrHmlHDcYeB8cl5xg2e3v3CXgQr3_pI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 18:43:11 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$A7aLZdRo6p1BKXQlvVl.p.AjRzdoEdkySD9nlCgxrBm4BYOYiMGga"], ["created_at", "2015-03-19 01:43:11.803627"], ["updated_at", "2015-03-19 01:43:11.803627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$Vt96CBQY8wYoMROoWIck3.a9DNUmjlkwF8bCICw2rkdw4C9zGIfgW"], ["created_at", "2015-03-19 01:43:11.808226"], ["updated_at", "2015-03-19 01:43:11.808226"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.810226"], ["user_id", "4d655f1a-cdd9-11e4-8897-705681abff85"], ["created_at", "2015-03-19 01:43:11.811305"], ["updated_at", "2015-03-19 01:43:11.811305"], ["token", "e4BeKdFEDIyVq-4uZGZi3y5FdsRGnN1SJ4mD1bDx4hA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.815627"], ["updated_at", "2015-03-19 01:43:11.815627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d655f1a-cdd9-11e4-8897-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d6735c4-cdd9-11e4-82f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d655f1a-cdd9-11e4-8897-705681abff85"], ["organization_id", "4d6735c4-cdd9-11e4-82f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.820152"], ["updated_at", "2015-03-19 01:43:11.820152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d660fdc-cdd9-11e4-a906-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d6735c4-cdd9-11e4-82f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d660fdc-cdd9-11e4-a906-705681abff85"], ["organization_id", "4d6735c4-cdd9-11e4-82f2-705681abff85"], ["created_at", "2015-03-19 01:43:11.823753"], ["updated_at", "2015-03-19 01:43:11.823753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$ub75tzWiGQxBLHaa0nA6rO1It/JNAxjpBrCiNsHGsTno9yYsh5VQ."], ["created_at", "2015-03-19 01:43:11.828535"], ["updated_at", "2015-03-19 01:43:11.828535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.830286"], ["user_id", "4d692d66-cdd9-11e4-8de9-705681abff85"], ["created_at", "2015-03-19 01:43:11.831037"], ["updated_at", "2015-03-19 01:43:11.831037"], ["token", "n7lCb2ELrYMrmFUWc8ztyHeLuJ02u-JvsMJBCJekQ4Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '4d6735c4-cdd9-11e4-82f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "4d6735c4-cdd9-11e4-82f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.835346"], ["updated_at", "2015-03-19 01:43:11.835346"], ["token", "SJNy3HaSEbIeAFpxZKOA34Bpb49hiC3asunZIX4Oe-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:43:11 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"SJNy3HaSEbIeAFpxZKOA34Bpb49hiC3asunZIX4Oe-s", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:11.840929' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n7lCb2ELrYMrmFUWc8ztyHeLuJ02u-JvsMJBCJekQ4Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:11.842397"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:11.843379"], ["id", "4d6991a2-cdd9-11e4-ade7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d692d66-cdd9-11e4-8de9-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "SJNy3HaSEbIeAFpxZKOA34Bpb49hiC3asunZIX4Oe-s"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4d6735c4-cdd9-11e4-82f2-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d692d66-cdd9-11e4-8de9-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d6735c4-cdd9-11e4-82f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "4d6735c4-cdd9-11e4-82f2-705681abff85"], ["member_id", "4d692d66-cdd9-11e4-8de9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.863110"], ["updated_at", "2015-03-19 01:43:11.863110"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "4d6a3d1e-cdd9-11e4-a1c3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 26ms (Views: 1.1ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$7jI0NVsnkP/DRwKc/9aDVe.2rZlpHCYNwXNBj8MQxNXeZbl5NXaPC"], ["created_at", "2015-03-19 01:43:11.873005"], ["updated_at", "2015-03-19 01:43:11.873005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$GCdOw1vK.lfYZq8LkQQLiujqXkdc9f2w0.tHfdph9jXAo/nBOshDO"], ["created_at", "2015-03-19 01:43:11.877293"], ["updated_at", "2015-03-19 01:43:11.877293"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.879083"], ["user_id", "4d6ff326-cdd9-11e4-a423-705681abff85"], ["created_at", "2015-03-19 01:43:11.880085"], ["updated_at", "2015-03-19 01:43:11.880085"], ["token", "7G0HI4sFW9c_-VKnP8R0TuGkO844ziKmnAybVGZoK4M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.884060"], ["updated_at", "2015-03-19 01:43:11.884060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d6ff326-cdd9-11e4-a423-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d71af7c-cdd9-11e4-9f7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d6ff326-cdd9-11e4-a423-705681abff85"], ["organization_id", "4d71af7c-cdd9-11e4-9f7d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.888032"], ["updated_at", "2015-03-19 01:43:11.888032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d709682-cdd9-11e4-a30c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d71af7c-cdd9-11e4-9f7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d709682-cdd9-11e4-a30c-705681abff85"], ["organization_id", "4d71af7c-cdd9-11e4-9f7d-705681abff85"], ["created_at", "2015-03-19 01:43:11.891169"], ["updated_at", "2015-03-19 01:43:11.891169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$sIsbek65nzpur2kTZYYSGO0Lo6gt2VNP0n/QnMSlvmX2WpQ0ysbZC"], ["created_at", "2015-03-19 01:43:11.895766"], ["updated_at", "2015-03-19 01:43:11.895766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.898076"], ["user_id", "4d737ffa-cdd9-11e4-a4ed-705681abff85"], ["created_at", "2015-03-19 01:43:11.898864"], ["updated_at", "2015-03-19 01:43:11.898864"], ["token", "-g-xfJqwJgeAaHcF8e_l3klF1du-DpVYZTc1wnUhDcY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '4d71af7c-cdd9-11e4-9f7d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "4d71af7c-cdd9-11e4-9f7d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.902848"], ["updated_at", "2015-03-19 01:43:11.902848"], ["token", "mUsXxiqOJjNGcgcMjN35pNaXmHZ_1-pSO7Xjp7xeJ-A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 18:43:11 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:11.910761' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-g-xfJqwJgeAaHcF8e_l3klF1du-DpVYZTc1wnUhDcY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:11.912747"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:11.913784"], ["id", "4d73edd2-cdd9-11e4-b046-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d737ffa-cdd9-11e4-a4ed-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$vxMwl.DKpLv5.LUglUEJCu8Yif3dhpTMavRxH1iB0hIZKRPXl.uEy"], ["created_at", "2015-03-19 01:43:11.927349"], ["updated_at", "2015-03-19 01:43:11.927349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$34wyelzT.O0hs68gBlSpZebQ42.tnReXIZI7B7rgikCwAfjf2MfZm"], ["created_at", "2015-03-19 01:43:11.932137"], ["updated_at", "2015-03-19 01:43:11.932137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.935143"], ["user_id", "4d783e28-cdd9-11e4-b77d-705681abff85"], ["created_at", "2015-03-19 01:43:11.936297"], ["updated_at", "2015-03-19 01:43:11.936297"], ["token", "Ygq7mQp3H8uvMjVghl8uOsodPhAZwPZwFQNUMzsEDr0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.940103"], ["updated_at", "2015-03-19 01:43:11.940103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d783e28-cdd9-11e4-b77d-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d7a2f3a-cdd9-11e4-92d2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d783e28-cdd9-11e4-b77d-705681abff85"], ["organization_id", "4d7a2f3a-cdd9-11e4-92d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.943786"], ["updated_at", "2015-03-19 01:43:11.943786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d7910d2-cdd9-11e4-a054-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d7a2f3a-cdd9-11e4-92d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d7910d2-cdd9-11e4-a054-705681abff85"], ["organization_id", "4d7a2f3a-cdd9-11e4-92d2-705681abff85"], ["created_at", "2015-03-19 01:43:11.947277"], ["updated_at", "2015-03-19 01:43:11.947277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 18:43:11 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$BAf6wBVgd7/Fja.0xnxMsec8ovE07CZvfogw.oNQNAfJM4DwO6R/u"], ["created_at", "2015-03-19 01:43:11.961096"], ["updated_at", "2015-03-19 01:43:11.961096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$qMVvW6SOG1EUkdE6l1lJYOQ1Ox.YKDfpl9vENgURo.fmFror7.9vS"], ["created_at", "2015-03-19 01:43:11.966846"], ["updated_at", "2015-03-19 01:43:11.966846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:11.968431"], ["user_id", "4d7d6330-cdd9-11e4-aebd-705681abff85"], ["created_at", "2015-03-19 01:43:11.969517"], ["updated_at", "2015-03-19 01:43:11.969517"], ["token", "3BpYjcvdijFsQ2kl2bRXwsSwxtRBBE3aK1CUfCEEmzE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:11.974241"], ["updated_at", "2015-03-19 01:43:11.974241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d7d6330-cdd9-11e4-aebd-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d7f7b16-cdd9-11e4-af4e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d7d6330-cdd9-11e4-aebd-705681abff85"], ["organization_id", "4d7f7b16-cdd9-11e4-af4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:11.978899"], ["updated_at", "2015-03-19 01:43:11.978899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d7e4124-cdd9-11e4-bf7e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d7f7b16-cdd9-11e4-af4e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d7e4124-cdd9-11e4-bf7e-705681abff85"], ["organization_id", "4d7f7b16-cdd9-11e4-af4e-705681abff85"], ["created_at", "2015-03-19 01:43:11.982734"], ["updated_at", "2015-03-19 01:43:11.982734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/4d80b42c-cdd9-11e4-90f6-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:11 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"4d80b42c-cdd9-11e4-90f6-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:11.987818' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3BpYjcvdijFsQ2kl2bRXwsSwxtRBBE3aK1CUfCEEmzE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:11.989347"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:11.990290"], ["id", "4d7ecaf4-cdd9-11e4-8e4b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "4d80b42c-cdd9-11e4-90f6-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d7d6330-cdd9-11e4-aebd-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4d7f7b16-cdd9-11e4-af4e-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4d7d6330-cdd9-11e4-aebd-705681abff85' LIMIT 1 [["organization_id", "4d7f7b16-cdd9-11e4-af4e-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d7e4124-cdd9-11e4-bf7e-705681abff85"]] Unpermitted parameters: id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d7e4124-cdd9-11e4-bf7e-705681abff85' AND "clubhouse_memberships"."id" != '4d80b42c-cdd9-11e4-90f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d7f7b16-cdd9-11e4-af4e-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:43:12.004458"], ["id", "4d80b42c-cdd9-11e4-90f6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 1.5ms | ActiveRecord: 3.3ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$XhAZeXgneLhEPxiwVbnvgOAIBpRD3adI4NfpqYGganT5t9J0GWH9G"], ["created_at", "2015-03-19 01:43:12.019292"], ["updated_at", "2015-03-19 01:43:12.019292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$NhRW0v8wgVxrw/qGt6foMuARvyCWfkD/HLoXLEHP.fCsOzkzZHX02"], ["created_at", "2015-03-19 01:43:12.024564"], ["updated_at", "2015-03-19 01:43:12.024564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.026177"], ["user_id", "4d8644e6-cdd9-11e4-a84d-705681abff85"], ["created_at", "2015-03-19 01:43:12.026950"], ["updated_at", "2015-03-19 01:43:12.026950"], ["token", "xcF6lLUAX1ztrH_IuSiqZ9nZendQ2TOdMoOBkOCJyDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.030480"], ["updated_at", "2015-03-19 01:43:12.030480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d8644e6-cdd9-11e4-a84d-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d87f6a6-cdd9-11e4-b3d4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d8644e6-cdd9-11e4-a84d-705681abff85"], ["organization_id", "4d87f6a6-cdd9-11e4-b3d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.033985"], ["updated_at", "2015-03-19 01:43:12.033985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d8711fa-cdd9-11e4-8d5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d87f6a6-cdd9-11e4-b3d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d8711fa-cdd9-11e4-8d5e-705681abff85"], ["organization_id", "4d87f6a6-cdd9-11e4-b3d4-705681abff85"], ["created_at", "2015-03-19 01:43:12.037541"], ["updated_at", "2015-03-19 01:43:12.037541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$maGl0f/G6DT.F07P/3VIhu6NBBPURsXPqo8gFqArc1wbGJf4uq5uG"], ["created_at", "2015-03-19 01:43:12.041901"], ["updated_at", "2015-03-19 01:43:12.041901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.043425"], ["user_id", "4d89b658-cdd9-11e4-85d6-705681abff85"], ["created_at", "2015-03-19 01:43:12.044385"], ["updated_at", "2015-03-19 01:43:12.044385"], ["token", "_W9fIGuqZSxdEGnqZlQ76m7O016BY6CVv-dK2LGamMo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '4d87f6a6-cdd9-11e4-b3d4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "4d87f6a6-cdd9-11e4-b3d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.049971"], ["updated_at", "2015-03-19 01:43:12.049971"], ["token", "H7FxaL32effSnJnrrgTCeBvmaI80goLlJXYUzOsQOhU"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$mfhdH3of3.Dy/VJnnINZP.CHipookIzPwnOyl7B6p1UIUR2QKaGZC"], ["created_at", "2015-03-19 01:43:12.061575"], ["updated_at", "2015-03-19 01:43:12.061575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$3B1Y/ANOrhtkU2fKYTeLY.2q9cqzzf8P6BWJpnMVjma4h88wP2uvO"], ["created_at", "2015-03-19 01:43:12.067177"], ["updated_at", "2015-03-19 01:43:12.067177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.069154"], ["user_id", "4d8cb7ae-cdd9-11e4-912c-705681abff85"], ["created_at", "2015-03-19 01:43:12.070003"], ["updated_at", "2015-03-19 01:43:12.070003"], ["token", "5zYWZaqcl3k5MHq3PVzMwsnZqZHj4scwzNTqe91NJlQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.075598"], ["updated_at", "2015-03-19 01:43:12.075598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d8cb7ae-cdd9-11e4-912c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d8fe69a-cdd9-11e4-afb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d8cb7ae-cdd9-11e4-912c-705681abff85"], ["organization_id", "4d8fe69a-cdd9-11e4-afb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.086635"], ["updated_at", "2015-03-19 01:43:12.086635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d8d9ff2-cdd9-11e4-9c54-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d8fe69a-cdd9-11e4-afb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d8d9ff2-cdd9-11e4-9c54-705681abff85"], ["organization_id", "4d8fe69a-cdd9-11e4-afb1-705681abff85"], ["created_at", "2015-03-19 01:43:12.090358"], ["updated_at", "2015-03-19 01:43:12.090358"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$Q9iq/FaGLb.eir7/61VD2epcSkyq9Izg9tMtuTx.7eHxRW61FvYoe"], ["created_at", "2015-03-19 01:43:12.095819"], ["updated_at", "2015-03-19 01:43:12.095819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.097365"], ["user_id", "4d91f0fc-cdd9-11e4-ad04-705681abff85"], ["created_at", "2015-03-19 01:43:12.098354"], ["updated_at", "2015-03-19 01:43:12.098354"], ["token", "jeF93qUTuiSbTm3Udq2g94KpJy-su3n7TkVSDATmCMA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '4d8fe69a-cdd9-11e4-afb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "4d8fe69a-cdd9-11e4-afb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.102153"], ["updated_at", "2015-03-19 01:43:12.102153"], ["token", "OWrRJesyOliMEwyP5U3TXXMVFVZH0wVqjAk4JO9AyBQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/4d8fe69a-cdd9-11e4-afb1-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"OWrRJesyOliMEwyP5U3TXXMVFVZH0wVqjAk4JO9AyBQ", "organization_id"=>"4d8fe69a-cdd9-11e4-afb1-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.107509' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jeF93qUTuiSbTm3Udq2g94KpJy-su3n7TkVSDATmCMA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.109268"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.110409"], ["id", "4d925ac4-cdd9-11e4-9955-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4d8fe69a-cdd9-11e4-afb1-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d91f0fc-cdd9-11e4-ad04-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "OWrRJesyOliMEwyP5U3TXXMVFVZH0wVqjAk4JO9AyBQ"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4d8fe69a-cdd9-11e4-afb1-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d91f0fc-cdd9-11e4-ad04-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d8fe69a-cdd9-11e4-afb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "4d8fe69a-cdd9-11e4-afb1-705681abff85"], ["member_id", "4d91f0fc-cdd9-11e4-ad04-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.118815"], ["updated_at", "2015-03-19 01:43:12.118815"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "4d92ed86-cdd9-11e4-8ec0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.1ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$XuKDha41O5xKhBpF6ctlv.tWPak8P6B1FnTBKqrwyn84UjVSir4jy"], ["created_at", "2015-03-19 01:43:12.128624"], ["updated_at", "2015-03-19 01:43:12.128624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$M/vqLHgd1N2yBQjYszPT8.EXQ1HE0oG8E9vssAbt1bzgr68Xh5eV2"], ["created_at", "2015-03-19 01:43:12.132860"], ["updated_at", "2015-03-19 01:43:12.132860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.134399"], ["user_id", "4d96f372-cdd9-11e4-a2c1-705681abff85"], ["created_at", "2015-03-19 01:43:12.135173"], ["updated_at", "2015-03-19 01:43:12.135173"], ["token", "BOKOFIPSwqD9zCihclyA61O1cNTwDvGs6179iuNju6I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.140820"], ["updated_at", "2015-03-19 01:43:12.140820"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d96f372-cdd9-11e4-a2c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d98d17e-cdd9-11e4-b494-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d96f372-cdd9-11e4-a2c1-705681abff85"], ["organization_id", "4d98d17e-cdd9-11e4-b494-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.145287"], ["updated_at", "2015-03-19 01:43:12.145287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d9796ce-cdd9-11e4-bf26-705681abff85' AND "clubhouse_memberships"."organization_id" = '4d98d17e-cdd9-11e4-b494-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d9796ce-cdd9-11e4-bf26-705681abff85"], ["organization_id", "4d98d17e-cdd9-11e4-b494-705681abff85"], ["created_at", "2015-03-19 01:43:12.149121"], ["updated_at", "2015-03-19 01:43:12.149121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$vn28kxYZJir.iv.UMhzfduKAAVZ/mPHGRN79KnSDqyWOYiKodsNI6"], ["created_at", "2015-03-19 01:43:12.154162"], ["updated_at", "2015-03-19 01:43:12.154162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.156037"], ["user_id", "4d9ae1a8-cdd9-11e4-8f7d-705681abff85"], ["created_at", "2015-03-19 01:43:12.156867"], ["updated_at", "2015-03-19 01:43:12.156867"], ["token", "0BA8mdKWTR_fS6btzsOkQeGUEsimcyD2WfgMN_Go2Qo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '4d98d17e-cdd9-11e4-b494-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "4d98d17e-cdd9-11e4-b494-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.161436"], ["updated_at", "2015-03-19 01:43:12.161436"], ["token", "IMOm4lvVIPCLUnKRxOqJOkdBgglq7z9Mq8We5KMrmRk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/4d98d17e-cdd9-11e4-b494-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"4d98d17e-cdd9-11e4-b494-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.166669' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0BA8mdKWTR_fS6btzsOkQeGUEsimcyD2WfgMN_Go2Qo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.168573"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.170332"], ["id", "4d9b497c-cdd9-11e4-9661-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4d98d17e-cdd9-11e4-b494-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d9ae1a8-cdd9-11e4-8f7d-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$wPNt.qUFzCY0Zq/73Fq7GurntdXQTJk.rl03FVDQkahcmyjwJRlVe"], ["created_at", "2015-03-19 01:43:12.183874"], ["updated_at", "2015-03-19 01:43:12.183874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$qJmUGvGoyXB1AxybwXi.S.DVfmwCcQmofwlY7NG4dTfZjlCMVcTfW"], ["created_at", "2015-03-19 01:43:12.188663"], ["updated_at", "2015-03-19 01:43:12.188663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.190282"], ["user_id", "4d9f6106-cdd9-11e4-b894-705681abff85"], ["created_at", "2015-03-19 01:43:12.191101"], ["updated_at", "2015-03-19 01:43:12.191101"], ["token", "XGr4TiCONKDXJEz_hyf2TXR8o8bW1un2BZH9mcrqu3c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.194643"], ["updated_at", "2015-03-19 01:43:12.194643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d9f6106-cdd9-11e4-b894-705681abff85' AND "clubhouse_memberships"."organization_id" = '4da10344-cdd9-11e4-959a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d9f6106-cdd9-11e4-b894-705681abff85"], ["organization_id", "4da10344-cdd9-11e4-959a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.197861"], ["updated_at", "2015-03-19 01:43:12.197861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4da01cf4-cdd9-11e4-8b00-705681abff85' AND "clubhouse_memberships"."organization_id" = '4da10344-cdd9-11e4-959a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4da01cf4-cdd9-11e4-8b00-705681abff85"], ["organization_id", "4da10344-cdd9-11e4-959a-705681abff85"], ["created_at", "2015-03-19 01:43:12.200921"], ["updated_at", "2015-03-19 01:43:12.200921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$KlHJmWK9YkkVzLY0WsClfOGzf0ahk/b4fVpzJLD56c9Uzpq2SgMn."], ["created_at", "2015-03-19 01:43:12.212245"], ["updated_at", "2015-03-19 01:43:12.212245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$nk9DUU6/sYPjoX0M5aV.zOBRfSmAMArsgUKXHkMsQlNSGJ4YFVfgy"], ["created_at", "2015-03-19 01:43:12.218194"], ["updated_at", "2015-03-19 01:43:12.218194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.219827"], ["user_id", "4da3c250-cdd9-11e4-bcee-705681abff85"], ["created_at", "2015-03-19 01:43:12.220640"], ["updated_at", "2015-03-19 01:43:12.220640"], ["token", "-aPonFg38NVbYzdLNVp0SD1GZTsKpbejrPS4_G9bjK8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.224617"], ["updated_at", "2015-03-19 01:43:12.224617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4da3c250-cdd9-11e4-bcee-705681abff85' AND "clubhouse_memberships"."organization_id" = '4da6b99c-cdd9-11e4-a150-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4da3c250-cdd9-11e4-bcee-705681abff85"], ["organization_id", "4da6b99c-cdd9-11e4-a150-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.235799"], ["updated_at", "2015-03-19 01:43:12.235799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4da49f0e-cdd9-11e4-a1f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '4da6b99c-cdd9-11e4-a150-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4da49f0e-cdd9-11e4-a1f3-705681abff85"], ["organization_id", "4da6b99c-cdd9-11e4-a150-705681abff85"], ["created_at", "2015-03-19 01:43:12.239172"], ["updated_at", "2015-03-19 01:43:12.239172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/4da6b99c-cdd9-11e4-a150-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"4da6b99c-cdd9-11e4-a150-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.246204' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-aPonFg38NVbYzdLNVp0SD1GZTsKpbejrPS4_G9bjK8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.247791"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.248831"], ["id", "4da50548-cdd9-11e4-b7c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4da6b99c-cdd9-11e4-a150-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4da3c250-cdd9-11e4-bcee-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4da3c250-cdd9-11e4-bcee-705681abff85' LIMIT 1 [["organization_id", "4da6b99c-cdd9-11e4-a150-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "4da6b99c-cdd9-11e4-a150-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4da6b99c-cdd9-11e4-a150-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4da3c250-cdd9-11e4-bcee-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4da6b99c-cdd9-11e4-a150-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4da49f0e-cdd9-11e4-a1f3-705681abff85"]] Completed 200 OK in 13ms (Views: 5.2ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$Up/SA2DgoZCXBps3oMcHrOr7DyTvA22RF0bMiDvPj3aBVrfR54.EK"], ["created_at", "2015-03-19 01:43:12.266012"], ["updated_at", "2015-03-19 01:43:12.266012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$cjVVwSA3nP8Y4cL9ItHZUu0obYqU/q0pGUAME0CYhEarxUsVYON72"], ["created_at", "2015-03-19 01:43:12.272305"], ["updated_at", "2015-03-19 01:43:12.272305"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.275316"], ["user_id", "4dabea8e-cdd9-11e4-ad67-705681abff85"], ["created_at", "2015-03-19 01:43:12.276818"], ["updated_at", "2015-03-19 01:43:12.276818"], ["token", "Q5QfjP-WHhp_kh2h5G5b3i8ZaZAKIccWQMvs6yZyC70"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.282909"], ["updated_at", "2015-03-19 01:43:12.282909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dabea8e-cdd9-11e4-ad67-705681abff85' AND "clubhouse_memberships"."organization_id" = '4dae83a2-cdd9-11e4-a3ed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4dabea8e-cdd9-11e4-ad67-705681abff85"], ["organization_id", "4dae83a2-cdd9-11e4-a3ed-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.286837"], ["updated_at", "2015-03-19 01:43:12.286837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dacf94c-cdd9-11e4-b57e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4dae83a2-cdd9-11e4-a3ed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4dacf94c-cdd9-11e4-b57e-705681abff85"], ["organization_id", "4dae83a2-cdd9-11e4-a3ed-705681abff85"], ["created_at", "2015-03-19 01:43:12.290370"], ["updated_at", "2015-03-19 01:43:12.290370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$QtjdxAT8E0tTLigmvy3buOGKLFPkPLFGbeDhYa.R/zZ/iRBjuR9c6"], ["created_at", "2015-03-19 01:43:12.300224"], ["updated_at", "2015-03-19 01:43:12.300224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$PbeXkVDB6OKlJy1HTRp6/On6GhjXQoSVMfbhjW5V44P9XlNEi8zpW"], ["created_at", "2015-03-19 01:43:12.305313"], ["updated_at", "2015-03-19 01:43:12.305313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.307580"], ["user_id", "4db1224c-cdd9-11e4-b356-705681abff85"], ["created_at", "2015-03-19 01:43:12.308636"], ["updated_at", "2015-03-19 01:43:12.308636"], ["token", "17EZpa6rmpRB9do7rNOqMwAtTdtKWGtKDAkjU1LyTEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.313088"], ["updated_at", "2015-03-19 01:43:12.313088"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4db1224c-cdd9-11e4-b356-705681abff85' AND "clubhouse_memberships"."organization_id" = '4db31c0a-cdd9-11e4-a195-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4db1224c-cdd9-11e4-b356-705681abff85"], ["organization_id", "4db31c0a-cdd9-11e4-a195-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.317336"], ["updated_at", "2015-03-19 01:43:12.317336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4db1e9a2-cdd9-11e4-a47b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4db31c0a-cdd9-11e4-a195-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4db1e9a2-cdd9-11e4-a47b-705681abff85"], ["organization_id", "4db31c0a-cdd9-11e4-a195-705681abff85"], ["created_at", "2015-03-19 01:43:12.320623"], ["updated_at", "2015-03-19 01:43:12.320623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/4db3bd54-cdd9-11e4-bf38-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"4db3bd54-cdd9-11e4-bf38-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.325127' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "17EZpa6rmpRB9do7rNOqMwAtTdtKWGtKDAkjU1LyTEQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.327077"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.329147"], ["id", "4db2791c-cdd9-11e4-915a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "4db3bd54-cdd9-11e4-bf38-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4db1224c-cdd9-11e4-b356-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4db31c0a-cdd9-11e4-a195-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4db1224c-cdd9-11e4-b356-705681abff85' LIMIT 1 [["organization_id", "4db31c0a-cdd9-11e4-a195-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4db1224c-cdd9-11e4-b356-705681abff85"]] Completed 200 OK in 11ms (Views: 1.5ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.355183"], ["updated_at", "2015-03-19 01:43:12.355183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.365430"], ["updated_at", "2015-03-19 01:43:12.365430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.369610"], ["updated_at", "2015-03-19 01:43:12.369610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.394783"], ["updated_at", "2015-03-19 01:43:12.394783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4dbf8e90-cdd9-11e4-a32c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.400135"], ["updated_at", "2015-03-19 01:43:12.400135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$lY6sF1/05cVusMqyiefZme9z.zeysCALo96sV2xGgN9LbNs4AFGs2"], ["created_at", "2015-03-19 01:43:12.409145"], ["updated_at", "2015-03-19 01:43:12.409145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.411145"], ["user_id", "4dc1c4b2-cdd9-11e4-82cf-705681abff85"], ["created_at", "2015-03-19 01:43:12.411988"], ["updated_at", "2015-03-19 01:43:12.411988"], ["token", "EjFWbFU5Y4n9E1yAI1l2Ip8Eth3gxknYXaml4ybHp24"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.416377"], ["updated_at", "2015-03-19 01:43:12.416377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dc1c4b2-cdd9-11e4-82cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '4dc2db18-cdd9-11e4-8244-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4dc1c4b2-cdd9-11e4-82cf-705681abff85"], ["organization_id", "4dc2db18-cdd9-11e4-8244-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.420127"], ["updated_at", "2015-03-19 01:43:12.420127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$QZiAAQ8VWejic.tweMA.O.l2.QDXqJJ68LrYigy2vfJJZSHN3RdKa"], ["created_at", "2015-03-19 01:43:12.435434"], ["updated_at", "2015-03-19 01:43:12.435434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.437069"], ["user_id", "4dc5c454-cdd9-11e4-afa0-705681abff85"], ["created_at", "2015-03-19 01:43:12.437825"], ["updated_at", "2015-03-19 01:43:12.437825"], ["token", "aX90phtf6totiecDDmEh2Bx686api-VUDVG4Ox84iYk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.441584"], ["updated_at", "2015-03-19 01:43:12.441584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dc5c454-cdd9-11e4-afa0-705681abff85' AND "clubhouse_memberships"."organization_id" = '4dc6c3c2-cdd9-11e4-baec-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4dc5c454-cdd9-11e4-afa0-705681abff85"], ["organization_id", "4dc6c3c2-cdd9-11e4-baec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.446297"], ["updated_at", "2015-03-19 01:43:12.446297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/4dc6c3c2-cdd9-11e4-baec-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"4dc6c3c2-cdd9-11e4-baec-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.451278' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aX90phtf6totiecDDmEh2Bx686api-VUDVG4Ox84iYk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.452719"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.453683"], ["id", "4dc62674-cdd9-11e4-9994-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4dc6c3c2-cdd9-11e4-baec-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4dc5c454-cdd9-11e4-afa0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4dc5c454-cdd9-11e4-afa0-705681abff85' LIMIT 1 [["organization_id", "4dc6c3c2-cdd9-11e4-baec-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4dc6c3c2-cdd9-11e4-baec-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 01:43:12.460376"], ["id", "4dc6c3c2-cdd9-11e4-baec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$UjMjD7FuqpQt9M0tNzJXyO8MMDm/PRorHPaWBzq2oxbze6IOGgWbi"], ["created_at", "2015-03-19 01:43:12.468825"], ["updated_at", "2015-03-19 01:43:12.468825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.470511"], ["user_id", "4dcadd40-cdd9-11e4-b7b5-705681abff85"], ["created_at", "2015-03-19 01:43:12.471376"], ["updated_at", "2015-03-19 01:43:12.471376"], ["token", "As5PhIPXXYIcf6KqGbc6oxrWpRhmIRJN_D6yf_R3Svk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.475009"], ["updated_at", "2015-03-19 01:43:12.475009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dcadd40-cdd9-11e4-b7b5-705681abff85' AND "clubhouse_memberships"."organization_id" = '4dcbcc50-cdd9-11e4-a29a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4dcadd40-cdd9-11e4-b7b5-705681abff85"], ["organization_id", "4dcbcc50-cdd9-11e4-a29a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.478350"], ["updated_at", "2015-03-19 01:43:12.478350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/4dcbcc50-cdd9-11e4-a29a-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"4dcbcc50-cdd9-11e4-a29a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.483682' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "As5PhIPXXYIcf6KqGbc6oxrWpRhmIRJN_D6yf_R3Svk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.485345"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.486373"], ["id", "4dcb47bc-cdd9-11e4-bcb2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4dcbcc50-cdd9-11e4-a29a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4dcadd40-cdd9-11e4-b7b5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4dcadd40-cdd9-11e4-b7b5-705681abff85' LIMIT 1 [["organization_id", "4dcbcc50-cdd9-11e4-a29a-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4dcbcc50-cdd9-11e4-a29a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$X0fyFudDkN79YrRruxmpy.lAs5U6HCKaOQ0qLFe.0oCauJ/4xU8qi"], ["created_at", "2015-03-19 01:43:12.500371"], ["updated_at", "2015-03-19 01:43:12.500371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.502005"], ["user_id", "4dcfac6c-cdd9-11e4-8919-705681abff85"], ["created_at", "2015-03-19 01:43:12.502815"], ["updated_at", "2015-03-19 01:43:12.502815"], ["token", "ahc-pl2jmQXCoEPn19hfepY6uceFF2lnJHJ3Tbe98mk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.506171"], ["updated_at", "2015-03-19 01:43:12.506171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dcfac6c-cdd9-11e4-8919-705681abff85' AND "clubhouse_memberships"."organization_id" = '4dd08ef2-cdd9-11e4-948a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4dcfac6c-cdd9-11e4-8919-705681abff85"], ["organization_id", "4dd08ef2-cdd9-11e4-948a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.509892"], ["updated_at", "2015-03-19 01:43:12.509892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$rweFiQ58TAw3bQE3LAEn2uxaqbPSFzsFMO0ZPiIBxngNWQRUeVxDe"], ["created_at", "2015-03-19 01:43:12.521552"], ["updated_at", "2015-03-19 01:43:12.521552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.523423"], ["user_id", "4dd2ed78-cdd9-11e4-b3ad-705681abff85"], ["created_at", "2015-03-19 01:43:12.524235"], ["updated_at", "2015-03-19 01:43:12.524235"], ["token", "_LlcHcY0lMv8O9kFUzt5sGqsb1oRdlq7L8EQ5kFbVYk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.527743"], ["updated_at", "2015-03-19 01:43:12.527743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dd2ed78-cdd9-11e4-b3ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '4dd3d850-cdd9-11e4-bc64-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4dd2ed78-cdd9-11e4-b3ad-705681abff85"], ["organization_id", "4dd3d850-cdd9-11e4-bc64-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.531551"], ["updated_at", "2015-03-19 01:43:12.531551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-43" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-43", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.536745' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_LlcHcY0lMv8O9kFUzt5sGqsb1oRdlq7L8EQ5kFbVYk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.538302"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.539749"], ["id", "4dd3579a-cdd9-11e4-a6c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-43"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4dd2ed78-cdd9-11e4-b3ad-705681abff85"]] Completed 200 OK in 15ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$xm0AWsDXnffpb9GT0LFvwOQWXh4AmjZ5/vXFi1xuP7lPVY/ylxq8C"], ["created_at", "2015-03-19 01:43:12.556909"], ["updated_at", "2015-03-19 01:43:12.556909"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.558658"], ["user_id", "4dd84c6e-cdd9-11e4-ac9e-705681abff85"], ["created_at", "2015-03-19 01:43:12.559491"], ["updated_at", "2015-03-19 01:43:12.559491"], ["token", "W3FphD4GQhBn56AhqE9Nbi-5-EpSFCfV1uNnzZYW2tc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.563042"], ["updated_at", "2015-03-19 01:43:12.563042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dd84c6e-cdd9-11e4-ac9e-705681abff85' AND "clubhouse_memberships"."organization_id" = '4dd93a02-cdd9-11e4-a855-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4dd84c6e-cdd9-11e4-ac9e-705681abff85"], ["organization_id", "4dd93a02-cdd9-11e4-a855-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.566363"], ["updated_at", "2015-03-19 01:43:12.566363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.570902' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "W3FphD4GQhBn56AhqE9Nbi-5-EpSFCfV1uNnzZYW2tc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (18.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.572755"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.574689"], ["id", "4dd8bb7c-cdd9-11e4-a195-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 27ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (5.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (20.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$Os59l3UakBppRERqdpK7heITzAdrGwZmuU92d/SX/LSnXCDQC5Oz2"], ["created_at", "2015-03-19 01:43:12.734797"], ["updated_at", "2015-03-19 01:43:12.734797"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.759488"], ["user_id", "4df3a4be-cdd9-11e4-84f8-705681abff85"], ["created_at", "2015-03-19 01:43:12.760944"], ["updated_at", "2015-03-19 01:43:12.760944"], ["token", "pSYFxhtzH_Rcmg3N5T5J8o1PkiYzAa3fBmOK5RgLZ2c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.766701"], ["updated_at", "2015-03-19 01:43:12.766701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4df3a4be-cdd9-11e4-84f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '4df856da-cdd9-11e4-9df3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4df3a4be-cdd9-11e4-84f8-705681abff85"], ["organization_id", "4df856da-cdd9-11e4-9df3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.770447"], ["updated_at", "2015-03-19 01:43:12.770447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$NQW7gq7lqRRn6TOQaKQc..mR89HYfCwjOELBtzit5m7BtolRcZTiG"], ["created_at", "2015-03-19 01:43:12.782193"], ["updated_at", "2015-03-19 01:43:12.782193"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.784533"], ["user_id", "4dfabef2-cdd9-11e4-ba0f-705681abff85"], ["created_at", "2015-03-19 01:43:12.785399"], ["updated_at", "2015-03-19 01:43:12.785399"], ["token", "AcBYhS6YZRTqFBjHVQ7_tRd0-AxjyOnAt_8h450-7L8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.789172"], ["updated_at", "2015-03-19 01:43:12.789172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dfabef2-cdd9-11e4-ba0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '4dfbbf00-cdd9-11e4-a073-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4dfabef2-cdd9-11e4-ba0f-705681abff85"], ["organization_id", "4dfbbf00-cdd9-11e4-a073-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.793404"], ["updated_at", "2015-03-19 01:43:12.793404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-46" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-46", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.798276' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AcBYhS6YZRTqFBjHVQ7_tRd0-AxjyOnAt_8h450-7L8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.799847"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.800782"], ["id", "4dfb36b6-cdd9-11e4-979e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-46"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4dfabef2-cdd9-11e4-ba0f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4dfabef2-cdd9-11e4-ba0f-705681abff85' LIMIT 1 [["organization_id", "4dfbbf00-cdd9-11e4-a073-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "4dfbbf00-cdd9-11e4-a073-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$5o6UgfQ3xIW4b/9rwRR88esbBaj5JS3cNpyuwa.vGOAcarkwNFSja"], ["created_at", "2015-03-19 01:43:12.813939"], ["updated_at", "2015-03-19 01:43:12.813939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.815958"], ["user_id", "4dff8a2c-cdd9-11e4-9e8a-705681abff85"], ["created_at", "2015-03-19 01:43:12.816844"], ["updated_at", "2015-03-19 01:43:12.816844"], ["token", "B73hfZltkQ1oUwH70D7On4q1g3NIR7CcFXkgqoPFoH4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.821080"], ["updated_at", "2015-03-19 01:43:12.821080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dff8a2c-cdd9-11e4-9e8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e009bb0-cdd9-11e4-98b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4dff8a2c-cdd9-11e4-9e8a-705681abff85"], ["organization_id", "4e009bb0-cdd9-11e4-98b2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.824834"], ["updated_at", "2015-03-19 01:43:12.824834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$Gng9CHi/vt.ZHZJyt3Iz..Z67o/JMU98YGOUAO3wnfxSGdfyecfMK"], ["created_at", "2015-03-19 01:43:12.834735"], ["updated_at", "2015-03-19 01:43:12.834735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.836351"], ["user_id", "4e02b288-cdd9-11e4-a361-705681abff85"], ["created_at", "2015-03-19 01:43:12.837286"], ["updated_at", "2015-03-19 01:43:12.837286"], ["token", "zh1D5U9CMg6F_G6QUrfuCLho386Pt32t0TduhBRvPRA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.840929"], ["updated_at", "2015-03-19 01:43:12.840929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e02b288-cdd9-11e4-a361-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e03a88c-cdd9-11e4-8a6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e02b288-cdd9-11e4-a361-705681abff85"], ["organization_id", "4e03a88c-cdd9-11e4-8a6f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.844806"], ["updated_at", "2015-03-19 01:43:12.844806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-48" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-48", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.849956' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zh1D5U9CMg6F_G6QUrfuCLho386Pt32t0TduhBRvPRA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.851511"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.852577"], ["id", "4e031b92-cdd9-11e4-85a8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-48"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4e02b288-cdd9-11e4-a361-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4e02b288-cdd9-11e4-a361-705681abff85' LIMIT 1 [["organization_id", "4e03a88c-cdd9-11e4-8a6f-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$IiRALp2scF./Lhy4H1VlEezRA.KhcdLxXKNr.6vYxXwiIkTWvWtga"], ["created_at", "2015-03-19 01:43:12.864005"], ["updated_at", "2015-03-19 01:43:12.864005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.866001"], ["user_id", "4e0729c6-cdd9-11e4-bc87-705681abff85"], ["created_at", "2015-03-19 01:43:12.866964"], ["updated_at", "2015-03-19 01:43:12.866964"], ["token", "1KBev9ygMcy9FkvkSfeWVE_R5e7pmKIBJzKFfZMk4wg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.870571"], ["updated_at", "2015-03-19 01:43:12.870571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e0729c6-cdd9-11e4-bc87-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e082588-cdd9-11e4-b17a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e0729c6-cdd9-11e4-bc87-705681abff85"], ["organization_id", "4e082588-cdd9-11e4-b17a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.874076"], ["updated_at", "2015-03-19 01:43:12.874076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$kggVyUsN/RoLWpfq.Rz4gu1LkzYMJeTnBXtLdEWr.DWKDJRmjoGsW"], ["created_at", "2015-03-19 01:43:12.885081"], ["updated_at", "2015-03-19 01:43:12.885081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.886738"], ["user_id", "4e0a61d6-cdd9-11e4-ab51-705681abff85"], ["created_at", "2015-03-19 01:43:12.887625"], ["updated_at", "2015-03-19 01:43:12.887625"], ["token", "zjxIwbUMHuMdr9nFiV7a0ToaHCd7xE2qSxBqZXuH4FE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.891227"], ["updated_at", "2015-03-19 01:43:12.891227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e0a61d6-cdd9-11e4-ab51-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e0b4f06-cdd9-11e4-967d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e0a61d6-cdd9-11e4-ab51-705681abff85"], ["organization_id", "4e0b4f06-cdd9-11e4-967d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.894679"], ["updated_at", "2015-03-19 01:43:12.894679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-50" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-50", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.899210' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zjxIwbUMHuMdr9nFiV7a0ToaHCd7xE2qSxBqZXuH4FE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.900772"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.901752"], ["id", "4e0acf36-cdd9-11e4-8d72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-50"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4e0a61d6-cdd9-11e4-ab51-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e0a61d6-cdd9-11e4-ab51-705681abff85' LIMIT 1 [["organization_id", "4e0b4f06-cdd9-11e4-967d-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4e0b4f06-cdd9-11e4-967d-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 01:43:12.908868"], ["id", "4e0b4f06-cdd9-11e4-967d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$Rd2tLj2Flz8f0Ze7/tcrg.CWZ6SdbyGUKrg0XCwp2zOqb2K/6OP4m"], ["created_at", "2015-03-19 01:43:12.918229"], ["updated_at", "2015-03-19 01:43:12.918229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.920050"], ["user_id", "4e0f73f6-cdd9-11e4-be5f-705681abff85"], ["created_at", "2015-03-19 01:43:12.920864"], ["updated_at", "2015-03-19 01:43:12.920864"], ["token", "AcLYy7yz4QsTNRaLYAZU5rQzXEkJvTypKu9Owv1b0c0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.924363"], ["updated_at", "2015-03-19 01:43:12.924363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e0f73f6-cdd9-11e4-be5f-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e1062ca-cdd9-11e4-87c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e0f73f6-cdd9-11e4-be5f-705681abff85"], ["organization_id", "4e1062ca-cdd9-11e4-87c0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.928004"], ["updated_at", "2015-03-19 01:43:12.928004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-51" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-51", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.932816' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AcLYy7yz4QsTNRaLYAZU5rQzXEkJvTypKu9Owv1b0c0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.934284"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.935244"], ["id", "4e0fdbac-cdd9-11e4-a803-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-51"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4e0f73f6-cdd9-11e4-be5f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e0f73f6-cdd9-11e4-be5f-705681abff85' LIMIT 1 [["organization_id", "4e1062ca-cdd9-11e4-87c0-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4e1062ca-cdd9-11e4-87c0-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$t/VWgNjt71jbjQUc5vzYeOaZa/lXKpXm5szExIqqzKnqNAOgf4BAe"], ["created_at", "2015-03-19 01:43:12.949658"], ["updated_at", "2015-03-19 01:43:12.949658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.951564"], ["user_id", "4e143abc-cdd9-11e4-a09d-705681abff85"], ["created_at", "2015-03-19 01:43:12.952393"], ["updated_at", "2015-03-19 01:43:12.952393"], ["token", "PV27EvUwMQp7qtkuv8ObpVZE_YTqsyfd6RFBoFU49M8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.956073"], ["updated_at", "2015-03-19 01:43:12.956073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e143abc-cdd9-11e4-a09d-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e153368-cdd9-11e4-8df8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e143abc-cdd9-11e4-a09d-705681abff85"], ["organization_id", "4e153368-cdd9-11e4-8df8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.959862"], ["updated_at", "2015-03-19 01:43:12.959862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$OACvvu1yJ3hUyGbWDcTonuEp5CkExrG7NUahjktIn6j21TzIAlZua"], ["created_at", "2015-03-19 01:43:12.970147"], ["updated_at", "2015-03-19 01:43:12.970147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:12.972139"], ["user_id", "4e175e72-cdd9-11e4-a6be-705681abff85"], ["created_at", "2015-03-19 01:43:12.973019"], ["updated_at", "2015-03-19 01:43:12.973019"], ["token", "8jJox4_HqOhfbqBuqeLfb0C3saCGrI7Dmuq_QSf89yE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:12.977258"], ["updated_at", "2015-03-19 01:43:12.977258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e175e72-cdd9-11e4-a6be-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e1870aa-cdd9-11e4-a3fc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e175e72-cdd9-11e4-a6be-705681abff85"], ["organization_id", "4e1870aa-cdd9-11e4-a3fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:12.981017"], ["updated_at", "2015-03-19 01:43:12.981017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/4e1870aa-cdd9-11e4-a3fc-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:12 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"4e1870aa-cdd9-11e4-a3fc-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:12.986052' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8jJox4_HqOhfbqBuqeLfb0C3saCGrI7Dmuq_QSf89yE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:12.987498"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:12.988506"], ["id", "4e17d884-cdd9-11e4-a7fd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4e1870aa-cdd9-11e4-a3fc-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4e175e72-cdd9-11e4-a6be-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4e175e72-cdd9-11e4-a6be-705681abff85' LIMIT 1 [["organization_id", "4e1870aa-cdd9-11e4-a3fc-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$4II97UiRDQjIMtNCmTFKOObvkHulwkAKkG.pPRVSIHjvinlz/9LBC"], ["created_at", "2015-03-19 01:43:12.999630"], ["updated_at", "2015-03-19 01:43:12.999630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:13.001413"], ["user_id", "4e1bdccc-cdd9-11e4-a127-705681abff85"], ["created_at", "2015-03-19 01:43:13.002716"], ["updated_at", "2015-03-19 01:43:13.002716"], ["token", "kuUcFDuyRyXn-iFm1-n8HOcmPOI9wW3NLLgqRBeMN7U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.007548"], ["updated_at", "2015-03-19 01:43:13.007548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e1bdccc-cdd9-11e4-a127-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e1d1178-cdd9-11e4-8586-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e1bdccc-cdd9-11e4-a127-705681abff85"], ["organization_id", "4e1d1178-cdd9-11e4-8586-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:13.011204"], ["updated_at", "2015-03-19 01:43:13.011204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$GlWt2rc28yUHGd0y8jjeY.c2lnTDKXpJwhaLM5Rrl2IkA1CTgK2le"], ["created_at", "2015-03-19 01:43:13.015998"], ["updated_at", "2015-03-19 01:43:13.015998"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.019644"], ["updated_at", "2015-03-19 01:43:13.019644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e1e5da8-cdd9-11e4-9e91-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e1ee912-cdd9-11e4-a6e2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e1e5da8-cdd9-11e4-9e91-705681abff85"], ["organization_id", "4e1ee912-cdd9-11e4-a6e2-705681abff85"], ["created_at", "2015-03-19 01:43:13.023523"], ["updated_at", "2015-03-19 01:43:13.023523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 18:43:13 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$Trl6bEGizhicUy/qIZ3UquRd/IBE/I23mamLN8gVOnUnzXlkBa2y."], ["created_at", "2015-03-19 01:43:13.035245"], ["updated_at", "2015-03-19 01:43:13.035245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:13.036870"], ["user_id", "4e214a2c-cdd9-11e4-86b8-705681abff85"], ["created_at", "2015-03-19 01:43:13.037775"], ["updated_at", "2015-03-19 01:43:13.037775"], ["token", "_7ualsjC3Wk5EjSV1Xad6GY6-srshbJU1vLBcR4J3Gg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.041403"], ["updated_at", "2015-03-19 01:43:13.041403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e214a2c-cdd9-11e4-86b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e223d06-cdd9-11e4-b1ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e214a2c-cdd9-11e4-86b8-705681abff85"], ["organization_id", "4e223d06-cdd9-11e4-b1ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:13.045043"], ["updated_at", "2015-03-19 01:43:13.045043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$G.D6NF5JplYxPCwP249UruTDw7C8pwsuxr2oxPPEGhfiXQLovy9fa"], ["created_at", "2015-03-19 01:43:13.050806"], ["updated_at", "2015-03-19 01:43:13.050806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.060732"], ["updated_at", "2015-03-19 01:43:13.060732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e249bfa-cdd9-11e4-bba2-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e252e9e-cdd9-11e4-9ebe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e249bfa-cdd9-11e4-bba2-705681abff85"], ["organization_id", "4e252e9e-cdd9-11e4-9ebe-705681abff85"], ["created_at", "2015-03-19 01:43:13.064274"], ["updated_at", "2015-03-19 01:43:13.064274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 18:43:13 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:13.070123' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_7ualsjC3Wk5EjSV1Xad6GY6-srshbJU1vLBcR4J3Gg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:13.071539"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:13.072525"], ["id", "4e21b3ae-cdd9-11e4-8b20-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4e214a2c-cdd9-11e4-86b8-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "4e214a2c-cdd9-11e4-86b8-705681abff85"]] Completed 200 OK in 9ms (Views: 2.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$9eixa8CkzeiguQhwGyJhoOQzDawFP3pQEmxCJz/XPrJ3zvzYH5ywu"], ["created_at", "2015-03-19 01:43:13.087116"], ["updated_at", "2015-03-19 01:43:13.087116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (12.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:13.089347"], ["user_id", "4e294272-cdd9-11e4-82fc-705681abff85"], ["created_at", "2015-03-19 01:43:13.090145"], ["updated_at", "2015-03-19 01:43:13.090145"], ["token", "RjMzqz_SDm_JgaVBrkONPlZykjPbyfVwYDQy5K0wNqA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.106643"], ["updated_at", "2015-03-19 01:43:13.106643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e294272-cdd9-11e4-82fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e2c430a-cdd9-11e4-b6b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e294272-cdd9-11e4-82fc-705681abff85"], ["organization_id", "4e2c430a-cdd9-11e4-b6b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:13.111042"], ["updated_at", "2015-03-19 01:43:13.111042"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:43:13 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$AQb1f0o9bYlkY0GQUe.cW.zshkdJ0sVtI8X9PgNeTcaRObu.PfObO"], ["created_at", "2015-03-19 01:43:13.124002"], ["updated_at", "2015-03-19 01:43:13.124002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:13.126118"], ["user_id", "4e2edeb2-cdd9-11e4-84b7-705681abff85"], ["created_at", "2015-03-19 01:43:13.127027"], ["updated_at", "2015-03-19 01:43:13.127027"], ["token", "Y4NU9Iy7gcX9x6df2D9h6gNJ3tbcddhq7gdgvIk4Ofg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (8.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.142699"], ["updated_at", "2015-03-19 01:43:13.142699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e2edeb2-cdd9-11e4-84b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e31cae6-cdd9-11e4-9d14-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e2edeb2-cdd9-11e4-84b7-705681abff85"], ["organization_id", "4e31cae6-cdd9-11e4-9d14-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:13.147278"], ["updated_at", "2015-03-19 01:43:13.147278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:43:13 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:13.152625' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y4NU9Iy7gcX9x6df2D9h6gNJ3tbcddhq7gdgvIk4Ofg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:13.155213"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:13.156468"], ["id", "4e2f70b6-cdd9-11e4-8bd9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4e2edeb2-cdd9-11e4-84b7-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.166166"], ["updated_at", "2015-03-19 01:43:13.166166"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4e35475c-cdd9-11e4-b50a-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e2edeb2-cdd9-11e4-84b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e35475c-cdd9-11e4-b50a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e2edeb2-cdd9-11e4-84b7-705681abff85"], ["admin", "t"], ["organization_id", "4e35475c-cdd9-11e4-b50a-705681abff85"], ["created_at", "2015-03-19 01:43:13.170966"], ["updated_at", "2015-03-19 01:43:13.170966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 21ms (Views: 0.6ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$I4dopfhb4PYxa4ZQOmA2puSgyGxLtdhEmUnYnSr18.g7K6dB3zNzi"], ["created_at", "2015-03-19 01:43:13.180629"], ["updated_at", "2015-03-19 01:43:13.180629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:13.182490"], ["user_id", "4e377d10-cdd9-11e4-97bd-705681abff85"], ["created_at", "2015-03-19 01:43:13.183368"], ["updated_at", "2015-03-19 01:43:13.183368"], ["token", "szeuIPXAJvcoiAy8DouWxvx0QBKEHDMxUqkC2bmfpQ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.187108"], ["updated_at", "2015-03-19 01:43:13.187108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e377d10-cdd9-11e4-97bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e387486-cdd9-11e4-860d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e377d10-cdd9-11e4-97bd-705681abff85"], ["organization_id", "4e387486-cdd9-11e4-860d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:13.190907"], ["updated_at", "2015-03-19 01:43:13.190907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 18:43:13 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:13.195620' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "szeuIPXAJvcoiAy8DouWxvx0QBKEHDMxUqkC2bmfpQ8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:13.197069"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:13.198042"], ["id", "4e37ebba-cdd9-11e4-ba45-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4e377d10-cdd9-11e4-97bd-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$Nj2VP8gZZtO6TETVYcKrP.PjzHZFp7Lb1J8udbzPnricmA3nW7Is6"], ["created_at", "2015-03-19 01:43:13.212161"], ["updated_at", "2015-03-19 01:43:13.212161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:13.214030"], ["user_id", "4e3c4f02-cdd9-11e4-b208-705681abff85"], ["created_at", "2015-03-19 01:43:13.214795"], ["updated_at", "2015-03-19 01:43:13.214795"], ["token", "LbPz0HHfCVUM8LT9MKhgEZckNfustWq2L8sQK2TvIJo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.218289"], ["updated_at", "2015-03-19 01:43:13.218289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e3c4f02-cdd9-11e4-b208-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e3d3638-cdd9-11e4-b6e0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e3c4f02-cdd9-11e4-b208-705681abff85"], ["organization_id", "4e3d3638-cdd9-11e4-b6e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:13.222018"], ["updated_at", "2015-03-19 01:43:13.222018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 18:43:13 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$9kZJHUd3NnCaXsLwQdKfPOl9rVFCpamAoDes8AMGpEuVEhi2ilIny"], ["created_at", "2015-03-19 01:43:13.232552"], ["updated_at", "2015-03-19 01:43:13.232552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:13.234275"], ["user_id", "4e3f66a6-cdd9-11e4-80bc-705681abff85"], ["created_at", "2015-03-19 01:43:13.235075"], ["updated_at", "2015-03-19 01:43:13.235075"], ["token", "dRMhEZOVSnyZNDqF13VVA7vFp92sgKURbCsESmZyBMk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.238502"], ["updated_at", "2015-03-19 01:43:13.238502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e3f66a6-cdd9-11e4-80bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e404ba2-cdd9-11e4-b955-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e3f66a6-cdd9-11e4-80bc-705681abff85"], ["organization_id", "4e404ba2-cdd9-11e4-b955-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:13.241743"], ["updated_at", "2015-03-19 01:43:13.241743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/4e404ba2-cdd9-11e4-b955-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:13 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"4e404ba2-cdd9-11e4-b955-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:13.247389' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dRMhEZOVSnyZNDqF13VVA7vFp92sgKURbCsESmZyBMk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:13.249479"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:13.250553"], ["id", "4e3fd028-cdd9-11e4-b5a7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4e404ba2-cdd9-11e4-b955-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4e3f66a6-cdd9-11e4-80bc-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e3f66a6-cdd9-11e4-80bc-705681abff85' LIMIT 1 [["organization_id", "4e404ba2-cdd9-11e4-b955-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "4e404ba2-cdd9-11e4-b955-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$8I7rhlCPUaQej78fghMne.XHszsgY7o8LaA.zW4UKC9qpzlVXMCMa"], ["created_at", "2015-03-19 01:43:13.269470"], ["updated_at", "2015-03-19 01:43:13.269470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.273791"], ["updated_at", "2015-03-19 01:43:13.273791"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e450a5c-cdd9-11e4-871b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e45c118-cdd9-11e4-b95c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e450a5c-cdd9-11e4-871b-705681abff85"], ["organization_id", "4e45c118-cdd9-11e4-b95c-705681abff85"], ["created_at", "2015-03-19 01:43:13.279636"], ["updated_at", "2015-03-19 01:43:13.279636"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4e450a5c-cdd9-11e4-871b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4e45c118-cdd9-11e4-b95c-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e450a5c-cdd9-11e4-871b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e45c118-cdd9-11e4-b95c-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4e45c118-cdd9-11e4-b95c-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e450a5c-cdd9-11e4-871b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e45c118-cdd9-11e4-b95c-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.513804"], ["updated_at", "2015-03-19 01:43:13.513804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '4e6a54ec-cdd9-11e4-8972-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "4e6a54ec-cdd9-11e4-8972-705681abff85"], ["created_at", "2015-03-19 01:43:13.517762"], ["updated_at", "2015-03-19 01:43:13.517762"], ["token", "SWEBQXQ82suFnuIUGwewnSPg1WD_UX0R0Obw0ftRJBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) Clubhouse::Mailer#invitation: processed outbound mail in 20.8ms Sent mail to john@example.com (8.0ms) Date: Wed, 18 Mar 2015 18:43:13 -0700 From: from@example.com To: john@example.com Message-ID: <550a29b185bbb_e16c3ffd84c65be485549@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org-name/invitations/SWEBQXQ82suFnuIUGwewnSPg1WD_UX0R0Obw0ftRJBk?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.555989"], ["updated_at", "2015-03-19 01:43:13.555989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '4e70d2ae-cdd9-11e4-b74d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "4e70d2ae-cdd9-11e4-b74d-705681abff85"], ["created_at", "2015-03-19 01:43:13.560287"], ["updated_at", "2015-03-19 01:43:13.560287"], ["token", "zgWkEyfQyBM2IbxjgzyiZy-RS2-V0AhAdMcOJpGFD0g"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Wed, 18 Mar 2015 18:43:13 -0700 From: from@example.com To: john@example.com Message-ID: <550a29b18a5d4_e16c3ffd84c65be4856f7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org-name/invitations/zgWkEyfQyBM2IbxjgzyiZy-RS2-V0AhAdMcOJpGFD0g?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.573364"], ["updated_at", "2015-03-19 01:43:13.573364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '4e736488-cdd9-11e4-b04c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "4e736488-cdd9-11e4-b04c-705681abff85"], ["created_at", "2015-03-19 01:43:13.576642"], ["updated_at", "2015-03-19 01:43:13.576642"], ["token", "mPaOgXTbIIy8C9apBnk1VcjK31TCBJsjKbkNFuIBRb0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (3.3ms) Date: Wed, 18 Mar 2015 18:43:13 -0700 From: from@example.com To: john@example.com Message-ID: <550a29b18dcd6_e16c3ffd84c65be485786@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org-name/invitations/mPaOgXTbIIy8C9apBnk1VcjK31TCBJsjKbkNFuIBRb0?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.590130"], ["updated_at", "2015-03-19 01:43:13.590130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '4e75fbb2-cdd9-11e4-83d7-705681abff85') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "4e75fbb2-cdd9-11e4-83d7-705681abff85"], ["created_at", "2015-03-19 01:43:13.595418"], ["updated_at", "2015-03-19 01:43:13.595418"], ["token", "2XJYyRDin63xHtM5Hy8N4ZlduVfBlhYgjBYDBnvdspg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (5.6ms) Clubhouse::Mailer#invitation: processed outbound mail in 104.3ms Sent mail to john@example.com (4.1ms) Date: Wed, 18 Mar 2015 18:43:13 -0700 From: from@example.com To: john@example.com Message-ID: <550a29b1acca6_e16c3ffd84c65be4858eb@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org-name/invitations/2XJYyRDin63xHtM5Hy8N4ZlduVfBlhYgjBYDBnvdspg?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$FjaWFQhOAApK1x1V3XgsjeK86JGmoyEqum1jO8pXbOIqO4RiEqZfK"], ["created_at", "2015-03-19 01:43:13.720709"], ["updated_at", "2015-03-19 01:43:13.720709"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.726614"], ["updated_at", "2015-03-19 01:43:13.726614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e89f748-cdd9-11e4-8dd7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e8ad9f6-cdd9-11e4-8e3c-705681abff85') LIMIT 1 SQL (8.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e89f748-cdd9-11e4-8dd7-705681abff85"], ["organization_id", "4e8ad9f6-cdd9-11e4-8e3c-705681abff85"], ["created_at", "2015-03-19 01:43:13.733658"], ["updated_at", "2015-03-19 01:43:13.733658"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '4e8ad9f6-cdd9-11e4-8e3c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "4e8ad9f6-cdd9-11e4-8e3c-705681abff85"], ["created_at", "2015-03-19 01:43:13.750997"], ["updated_at", "2015-03-19 01:43:13.750997"], ["token", "BwV-dVvoBJFA6xsCbUSKsu6BBMnXqNvweAKZtRNqLSU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e89f748-cdd9-11e4-8dd7-705681abff85' LIMIT 1 [["organization_id", "4e8ad9f6-cdd9-11e4-8e3c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$AgPEkbYpxYU.wasAurEGJeRV.is1JLKBizZNhBI04jgL/08HHHEbO"], ["created_at", "2015-03-19 01:43:13.764030"], ["updated_at", "2015-03-19 01:43:13.764030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (6.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.780105"], ["updated_at", "2015-03-19 01:43:13.780105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e90a624-cdd9-11e4-8447-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e93167a-cdd9-11e4-8ede-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e90a624-cdd9-11e4-8447-705681abff85"], ["organization_id", "4e93167a-cdd9-11e4-8ede-705681abff85"], ["created_at", "2015-03-19 01:43:13.786018"], ["updated_at", "2015-03-19 01:43:13.786018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '4e93167a-cdd9-11e4-8ede-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "4e93167a-cdd9-11e4-8ede-705681abff85"], ["created_at", "2015-03-19 01:43:13.791212"], ["updated_at", "2015-03-19 01:43:13.791212"], ["token", "X9z_Uqblk5DRbtAkHSEvUUy-qJERnsFB3K87hyCysXg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e90a624-cdd9-11e4-8447-705681abff85' LIMIT 1 [["organization_id", "4e93167a-cdd9-11e4-8ede-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$k3E.qljAmZVgBlm9gOXjBucCbiTetbUEXSQI1hqB3eu4Tj88AFsma"], ["created_at", "2015-03-19 01:43:13.800731"], ["updated_at", "2015-03-19 01:43:13.800731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.804277"], ["updated_at", "2015-03-19 01:43:13.804277"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e9619ba-cdd9-11e4-a7e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e96a736-cdd9-11e4-8b9c-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e9619ba-cdd9-11e4-a7e1-705681abff85"], ["organization_id", "4e96a736-cdd9-11e4-8b9c-705681abff85"], ["created_at", "2015-03-19 01:43:13.810840"], ["updated_at", "2015-03-19 01:43:13.810840"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '4e96a736-cdd9-11e4-8b9c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "4e96a736-cdd9-11e4-8b9c-705681abff85"], ["created_at", "2015-03-19 01:43:13.817254"], ["updated_at", "2015-03-19 01:43:13.817254"], ["token", "PB8eTp8IgKVQwa4_-1maRuG5O0zINBi7cYsdRP6cmBI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e9619ba-cdd9-11e4-a7e1-705681abff85' LIMIT 1 [["organization_id", "4e96a736-cdd9-11e4-8b9c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$/Tz2456CIbdVaqpz5zMOperXf7jIotJsr4PSILLYTAA6Be.rd2REi"], ["created_at", "2015-03-19 01:43:13.830801"], ["updated_at", "2015-03-19 01:43:13.830801"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.836313"], ["updated_at", "2015-03-19 01:43:13.836313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e9ac8e8-cdd9-11e4-a83c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e9b8468-cdd9-11e4-ac67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e9ac8e8-cdd9-11e4-a83c-705681abff85"], ["organization_id", "4e9b8468-cdd9-11e4-ac67-705681abff85"], ["created_at", "2015-03-19 01:43:13.839627"], ["updated_at", "2015-03-19 01:43:13.839627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '4e9b8468-cdd9-11e4-ac67-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "4e9b8468-cdd9-11e4-ac67-705681abff85"], ["created_at", "2015-03-19 01:43:13.849270"], ["updated_at", "2015-03-19 01:43:13.849270"], ["token", "-agRRMO4rBOuONaKjpEhC5m0l5sK5FnQYVQAk7pA8JM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e9ac8e8-cdd9-11e4-a83c-705681abff85' LIMIT 1 [["organization_id", "4e9b8468-cdd9-11e4-ac67-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$Tm4lIHQELt.csoB.k9lD8eu1COvvjUc6GLTBb0ymobRCaMfVg2CYO"], ["created_at", "2015-03-19 01:43:13.857144"], ["updated_at", "2015-03-19 01:43:13.857144"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.860516"], ["updated_at", "2015-03-19 01:43:13.860516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e9eb26e-cdd9-11e4-8c48-705681abff85' AND "clubhouse_memberships"."organization_id" = '4e9f3482-cdd9-11e4-b420-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e9eb26e-cdd9-11e4-8c48-705681abff85"], ["organization_id", "4e9f3482-cdd9-11e4-b420-705681abff85"], ["created_at", "2015-03-19 01:43:13.863664"], ["updated_at", "2015-03-19 01:43:13.863664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e9eb26e-cdd9-11e4-8c48-705681abff85' LIMIT 1 [["organization_id", "4e9f3482-cdd9-11e4-b420-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$Xgqez7vmCuILRcw1tiseKOeAKSX15BJ6MgG4KMX.WnNj9PhmtHTPm"], ["created_at", "2015-03-19 01:43:13.871544"], ["updated_at", "2015-03-19 01:43:13.871544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.874754"], ["updated_at", "2015-03-19 01:43:13.874754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '4ea15f8c-cdd9-11e4-b24d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "4ea15f8c-cdd9-11e4-b24d-705681abff85"], ["created_at", "2015-03-19 01:43:13.878704"], ["updated_at", "2015-03-19 01:43:13.878704"], ["token", "PfDOp7TEv7MajnA5bhGD3Ig1LnHO8E3nspAN1frlFBU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ea0e4b2-cdd9-11e4-8ca9-705681abff85' LIMIT 1 [["organization_id", "4ea15f8c-cdd9-11e4-b24d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$YV/E/AYCY/ODBIb25sr4zOHkXxJ/bqnaY0K9S3j4RWt./LmBFFFHm"], ["created_at", "2015-03-19 01:43:13.886700"], ["updated_at", "2015-03-19 01:43:13.886700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.890477"], ["updated_at", "2015-03-19 01:43:13.890477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '4ea3c934-cdd9-11e4-89d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "4ea3c934-cdd9-11e4-89d2-705681abff85"], ["created_at", "2015-03-19 01:43:13.894060"], ["updated_at", "2015-03-19 01:43:13.894060"], ["token", "VS14qjDZjMFfUQwsc629f35kwMi2J-JbOaVvnfJjfM8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ea335b4-cdd9-11e4-8a8f-705681abff85' LIMIT 1 [["organization_id", "4ea3c934-cdd9-11e4-89d2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$CIDdLGIbtyd/bVlmbK8Boufogu7HXdr2lWhpKjyup.Mv8R/O51MqS"], ["created_at", "2015-03-19 01:43:13.901355"], ["updated_at", "2015-03-19 01:43:13.901355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.904384"], ["updated_at", "2015-03-19 01:43:13.904384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '4ea5ecc8-cdd9-11e4-99ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "4ea5ecc8-cdd9-11e4-99ba-705681abff85"], ["created_at", "2015-03-19 01:43:13.907986"], ["updated_at", "2015-03-19 01:43:13.907986"], ["token", "mSa2H-NlXXbmvDelyeTm1lrJUnzi69_OMdH4gYOeXsY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ea570d6-cdd9-11e4-8031-705681abff85' LIMIT 1 [["organization_id", "4ea5ecc8-cdd9-11e4-99ba-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$aMkRZon1LR9w3q6BfOxp9uk.WRhLY./dFh1fYs4AKjFsueZNmC.5S"], ["created_at", "2015-03-19 01:43:13.917431"], ["updated_at", "2015-03-19 01:43:13.917431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.920687"], ["updated_at", "2015-03-19 01:43:13.920687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '4ea86138-cdd9-11e4-813d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "4ea86138-cdd9-11e4-813d-705681abff85"], ["created_at", "2015-03-19 01:43:13.923915"], ["updated_at", "2015-03-19 01:43:13.923915"], ["token", "s_9x-Z7FVxkRhNpYSVuk7rOonk71HMZAfGJo_Dnp3KQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ea7ea00-cdd9-11e4-aa71-705681abff85' LIMIT 1 [["organization_id", "4ea86138-cdd9-11e4-813d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$ows3jMu9Y8FzszWwhfzr0ejkOAiX8UxH0lLFMRsSVzo9acpOWZtnK"], ["created_at", "2015-03-19 01:43:13.931796"], ["updated_at", "2015-03-19 01:43:13.931796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.935552"], ["updated_at", "2015-03-19 01:43:13.935552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4eaa1c6c-cdd9-11e4-9d6d-705681abff85' LIMIT 1 [["organization_id", "4eaaa862-cdd9-11e4-8ac9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$pzO83XWoGmiphtdvNu67weZRuPt.MSW6tby2NdnYzVEVmZN4meFQu"], ["created_at", "2015-03-19 01:43:13.942437"], ["updated_at", "2015-03-19 01:43:13.942437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.946192"], ["updated_at", "2015-03-19 01:43:13.946192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eabc832-cdd9-11e4-9893-705681abff85' AND "clubhouse_memberships"."organization_id" = '4eac49c4-cdd9-11e4-afcb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4eabc832-cdd9-11e4-9893-705681abff85"], ["organization_id", "4eac49c4-cdd9-11e4-afcb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:13.950855"], ["updated_at", "2015-03-19 01:43:13.950855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '4eac49c4-cdd9-11e4-afcb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "4eac49c4-cdd9-11e4-afcb-705681abff85"], ["created_at", "2015-03-19 01:43:13.954769"], ["updated_at", "2015-03-19 01:43:13.954769"], ["token", "odyaKl_MWcvYTZIabnrOMNeRG7DfOPYJK_BMcpN4V2w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4eabc832-cdd9-11e4-9893-705681abff85' LIMIT 1 [["organization_id", "4eac49c4-cdd9-11e4-afcb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$IQ9U/qDrbBSLYS2VvirAie5ilSJNIDSG5PqgFBJOp4i6g3d2v5ypK"], ["created_at", "2015-03-19 01:43:13.962169"], ["updated_at", "2015-03-19 01:43:13.962169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.965607"], ["updated_at", "2015-03-19 01:43:13.965607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eaeba60-cdd9-11e4-8dc0-705681abff85' AND "clubhouse_memberships"."organization_id" = '4eaf3da0-cdd9-11e4-a56a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4eaeba60-cdd9-11e4-8dc0-705681abff85"], ["organization_id", "4eaf3da0-cdd9-11e4-a56a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:13.968755"], ["updated_at", "2015-03-19 01:43:13.968755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '4eaf3da0-cdd9-11e4-a56a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "4eaf3da0-cdd9-11e4-a56a-705681abff85"], ["created_at", "2015-03-19 01:43:13.972020"], ["updated_at", "2015-03-19 01:43:13.972020"], ["token", "WlSt6Sb0-lZWPN-6G1uYOHFfVNxoMrBxAkSCb6logRk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4eaeba60-cdd9-11e4-8dc0-705681abff85' LIMIT 1 [["organization_id", "4eaf3da0-cdd9-11e4-a56a-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$21R52CGpvlqIYBFduEsTYuhNOJOXxm/NnaNVnXsp0C2UZq7swmf3q"], ["created_at", "2015-03-19 01:43:13.980783"], ["updated_at", "2015-03-19 01:43:13.980783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:13.983829"], ["updated_at", "2015-03-19 01:43:13.983829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eb190dc-cdd9-11e4-8d37-705681abff85' AND "clubhouse_memberships"."organization_id" = '4eb20382-cdd9-11e4-bb81-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4eb190dc-cdd9-11e4-8d37-705681abff85"], ["organization_id", "4eb20382-cdd9-11e4-bb81-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:13.986885"], ["updated_at", "2015-03-19 01:43:13.986885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '4eb20382-cdd9-11e4-bb81-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "4eb20382-cdd9-11e4-bb81-705681abff85"], ["created_at", "2015-03-19 01:43:13.990129"], ["updated_at", "2015-03-19 01:43:13.990129"], ["token", "bZHj0GHXxDjIsyUMzI-glveSb6fGk1RnLkZEn8IS_us"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4eb190dc-cdd9-11e4-8d37-705681abff85' LIMIT 1 [["organization_id", "4eb20382-cdd9-11e4-bb81-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$9SWxhvZQS7xdFPoonuubuOUAIFxBXaLq5cKozFrAhCBsRJxDu5w5u"], ["created_at", "2015-03-19 01:43:13.997142"], ["updated_at", "2015-03-19 01:43:13.997142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.000414"], ["updated_at", "2015-03-19 01:43:14.000414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eb41474-cdd9-11e4-ace2-705681abff85' AND "clubhouse_memberships"."organization_id" = '4eb48c92-cdd9-11e4-98ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4eb41474-cdd9-11e4-ace2-705681abff85"], ["organization_id", "4eb48c92-cdd9-11e4-98ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.003810"], ["updated_at", "2015-03-19 01:43:14.003810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '4eb48c92-cdd9-11e4-98ba-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "4eb48c92-cdd9-11e4-98ba-705681abff85"], ["created_at", "2015-03-19 01:43:14.008573"], ["updated_at", "2015-03-19 01:43:14.008573"], ["token", "wshT8CfaQCHpAdom6xPQDOFh3lO9OQJsv9Eb3aYKfNs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4eb41474-cdd9-11e4-ace2-705681abff85' LIMIT 1 [["organization_id", "4eb48c92-cdd9-11e4-98ba-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$JvjQTvKdHJ5nKChzcV2rWu1upJ5WCjb2yru4EDA3phCfNr9d8i9oW"], ["created_at", "2015-03-19 01:43:14.023295"], ["updated_at", "2015-03-19 01:43:14.023295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.027088"], ["updated_at", "2015-03-19 01:43:14.027088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eb81948-cdd9-11e4-93ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '4eb8a30e-cdd9-11e4-a1dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4eb81948-cdd9-11e4-93ed-705681abff85"], ["organization_id", "4eb8a30e-cdd9-11e4-a1dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.030763"], ["updated_at", "2015-03-19 01:43:14.030763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4eb81948-cdd9-11e4-93ed-705681abff85' LIMIT 1 [["organization_id", "4eb8a30e-cdd9-11e4-a1dc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$CJaj6GUkV0tHFrehGPVBC.bD8/pxf6iuRZioqrPu.1GvpGzlI.4s."], ["created_at", "2015-03-19 01:43:14.039110"], ["updated_at", "2015-03-19 01:43:14.039110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.041015"], ["user_id", "4eba7cb0-cdd9-11e4-8415-705681abff85"], ["created_at", "2015-03-19 01:43:14.042216"], ["updated_at", "2015-03-19 01:43:14.042216"], ["token", "3wnlB_kGhyk1Mvd4vmumieUt_YH1K068fHhmW4YD3GI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.048729"], ["updated_at", "2015-03-19 01:43:14.048729"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eba7cb0-cdd9-11e4-8415-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ebc477a-cdd9-11e4-bcdb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4eba7cb0-cdd9-11e4-8415-705681abff85"], ["organization_id", "4ebc477a-cdd9-11e4-bcdb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.080664"], ["updated_at", "2015-03-19 01:43:14.080664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '4ebc477a-cdd9-11e4-bcdb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "4ebc477a-cdd9-11e4-bcdb-705681abff85"], ["created_at", "2015-03-19 01:43:14.085304"], ["updated_at", "2015-03-19 01:43:14.085304"], ["token", "t_kd6LdFgdEuk3yY-qSCS2p3M-SuJ-C21aQHGm8rya8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$0qDn/uiGduB20RVwAUWK8e7mjo4ylRlxA19nretzjCL9HbnfZozvu"], ["created_at", "2015-03-19 01:43:14.110143"], ["updated_at", "2015-03-19 01:43:14.110143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.112598"], ["user_id", "4ec55d9c-cdd9-11e4-960d-705681abff85"], ["created_at", "2015-03-19 01:43:14.113982"], ["updated_at", "2015-03-19 01:43:14.113982"], ["token", "EjgUtJNU6Fl-G7UKkgTLIv7b7vojcpT3tfSrvMw1aHk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.118916"], ["updated_at", "2015-03-19 01:43:14.118916"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ec55d9c-cdd9-11e4-960d-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ec6b070-cdd9-11e4-81f1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ec55d9c-cdd9-11e4-960d-705681abff85"], ["organization_id", "4ec6b070-cdd9-11e4-81f1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.127440"], ["updated_at", "2015-03-19 01:43:14.127440"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '4ec6b070-cdd9-11e4-81f1-705681abff85') LIMIT 1 SQL (6.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "4ec6b070-cdd9-11e4-81f1-705681abff85"], ["created_at", "2015-03-19 01:43:14.135323"], ["updated_at", "2015-03-19 01:43:14.135323"], ["token", "w1ASWs29N8jQsyT_rsFLbFuuEXfrUk9zZ4YurWuemo4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/4ec92b84-cdd9-11e4-ab6f-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"4ec92b84-cdd9-11e4-ab6f-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:14.147437' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EjgUtJNU6Fl-G7UKkgTLIv7b7vojcpT3tfSrvMw1aHk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:14.149214"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:14.150192"], ["id", "4ec60c6a-cdd9-11e4-93ca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4ec92b84-cdd9-11e4-ab6f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4ec55d9c-cdd9-11e4-960d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4ec6b070-cdd9-11e4-81f1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ec55d9c-cdd9-11e4-960d-705681abff85' LIMIT 1 [["organization_id", "4ec6b070-cdd9-11e4-81f1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "4ec92b84-cdd9-11e4-ab6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$Ewq/x/Qt5jBPzf5ZQHo17eLeGJWTSg6.jceUBfVU4yN6DubPnexcG"], ["created_at", "2015-03-19 01:43:14.168349"], ["updated_at", "2015-03-19 01:43:14.168349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.171078"], ["user_id", "4ece454c-cdd9-11e4-bd19-705681abff85"], ["created_at", "2015-03-19 01:43:14.172354"], ["updated_at", "2015-03-19 01:43:14.172354"], ["token", "FaMwJvofUMNeC9qdYhXu9tB3a_JwpEGfbYAlpZiI6C4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.177737"], ["updated_at", "2015-03-19 01:43:14.177737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ece454c-cdd9-11e4-bd19-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ecf9f6e-cdd9-11e4-a628-705681abff85') LIMIT 1 SQL (26.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ece454c-cdd9-11e4-bd19-705681abff85"], ["organization_id", "4ecf9f6e-cdd9-11e4-a628-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.182667"], ["updated_at", "2015-03-19 01:43:14.182667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '4ecf9f6e-cdd9-11e4-a628-705681abff85') LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "4ecf9f6e-cdd9-11e4-a628-705681abff85"], ["created_at", "2015-03-19 01:43:14.215461"], ["updated_at", "2015-03-19 01:43:14.215461"], ["token", "IFkduS0MxCSTO2HO9Ma6uJ5olBau0bhAF9vvHCeafSI"]]  (5.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$e5tIkAHo5f/XgGp9Dh1cFuuYpsTouLhcdM.d/25ATfqhJEr18y6uW"], ["created_at", "2015-03-19 01:43:14.235078"], ["updated_at", "2015-03-19 01:43:14.235078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.241105"], ["updated_at", "2015-03-19 01:43:14.241105"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ed8713e-cdd9-11e4-b4f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ed9609e-cdd9-11e4-8a83-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ed8713e-cdd9-11e4-b4f1-705681abff85"], ["organization_id", "4ed9609e-cdd9-11e4-8a83-705681abff85"], ["created_at", "2015-03-19 01:43:14.247246"], ["updated_at", "2015-03-19 01:43:14.247246"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$tCGFzBoR4uXd9r1gbIyBBuyZFRILJewX7xxj5f8WoN1EoQjKa/4Ju"], ["created_at", "2015-03-19 01:43:14.266248"], ["updated_at", "2015-03-19 01:43:14.266248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.268009"], ["user_id", "4edd2300-cdd9-11e4-a23a-705681abff85"], ["created_at", "2015-03-19 01:43:14.268794"], ["updated_at", "2015-03-19 01:43:14.268794"], ["token", "GDJqVFm80vSDnrQrfef6WhtvgJoYyENjEBBFKCSlCsE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.272865"], ["updated_at", "2015-03-19 01:43:14.272865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4edd2300-cdd9-11e4-a23a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ede2390-cdd9-11e4-ad40-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4edd2300-cdd9-11e4-a23a-705681abff85"], ["organization_id", "4ede2390-cdd9-11e4-ad40-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.280781"], ["updated_at", "2015-03-19 01:43:14.280781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '4ede2390-cdd9-11e4-ad40-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "4ede2390-cdd9-11e4-ad40-705681abff85"], ["created_at", "2015-03-19 01:43:14.287329"], ["updated_at", "2015-03-19 01:43:14.287329"], ["token", "exwr3_wYmHX9Gc7YUDSZLvCm8AVcvRM45T6MgK9L9LU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$idTBfYSWrFyL1WW0NKo2oONN56/4fyHAmNQQiMZo3mY0V.4rGRrim"], ["created_at", "2015-03-19 01:43:14.300061"], ["updated_at", "2015-03-19 01:43:14.300061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.305288"], ["updated_at", "2015-03-19 01:43:14.305288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ee25e56-cdd9-11e4-8c19-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ee3172e-cdd9-11e4-bded-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4ee25e56-cdd9-11e4-8c19-705681abff85"], ["organization_id", "4ee3172e-cdd9-11e4-bded-705681abff85"], ["created_at", "2015-03-19 01:43:14.308918"], ["updated_at", "2015-03-19 01:43:14.308918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:14.320200' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GDJqVFm80vSDnrQrfef6WhtvgJoYyENjEBBFKCSlCsE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:14.322080"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:14.323387"], ["id", "4edd8c00-cdd9-11e4-9313-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4edd2300-cdd9-11e4-a23a-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4edd2300-cdd9-11e4-a23a-705681abff85' LIMIT 1 [["organization_id", "4ede2390-cdd9-11e4-ad40-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "4ede2390-cdd9-11e4-ad40-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4ede2390-cdd9-11e4-ad40-705681abff85"]] Completed 200 OK in 17ms (Views: 6.1ms | ActiveRecord: 2.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$7iVBY956YsoM4RPEYvC03.ZbqdsjeVlHTNr4pS/zuhxJJ7PpCFAZS"], ["created_at", "2015-03-19 01:43:14.346605"], ["updated_at", "2015-03-19 01:43:14.346605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.348573"], ["user_id", "4ee96c0a-cdd9-11e4-b047-705681abff85"], ["created_at", "2015-03-19 01:43:14.349404"], ["updated_at", "2015-03-19 01:43:14.349404"], ["token", "E778fbZPWoq7jrEnCRA3aJb0orEUUM4wlMJ4eGi3eiI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.353286"], ["updated_at", "2015-03-19 01:43:14.353286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ee96c0a-cdd9-11e4-b047-705681abff85' AND "clubhouse_memberships"."organization_id" = '4eea6970-cdd9-11e4-b510-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ee96c0a-cdd9-11e4-b047-705681abff85"], ["organization_id", "4eea6970-cdd9-11e4-b510-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.357055"], ["updated_at", "2015-03-19 01:43:14.357055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '4eea6970-cdd9-11e4-b510-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "4eea6970-cdd9-11e4-b510-705681abff85"], ["created_at", "2015-03-19 01:43:14.365669"], ["updated_at", "2015-03-19 01:43:14.365669"], ["token", "mpvRN4174lgnvJ2e1a1GiapUbh32FpV1J72P7Nm9Mks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$O5OgDj2WpLnmKleguW2gh.Bqs93ryASPT49vXWG7BTeX8plsVm1IW"], ["created_at", "2015-03-19 01:43:14.379801"], ["updated_at", "2015-03-19 01:43:14.379801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.381844"], ["user_id", "4eee78e4-cdd9-11e4-8e16-705681abff85"], ["created_at", "2015-03-19 01:43:14.382697"], ["updated_at", "2015-03-19 01:43:14.382697"], ["token", "SxE_njeakbJJadV4HCD0WDQx_EhOxhodOZG0D2AWhm8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.388004"], ["updated_at", "2015-03-19 01:43:14.388004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eee78e4-cdd9-11e4-8e16-705681abff85' AND "clubhouse_memberships"."organization_id" = '4eefc834-cdd9-11e4-bcb8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4eee78e4-cdd9-11e4-8e16-705681abff85"], ["organization_id", "4eefc834-cdd9-11e4-bcb8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.393684"], ["updated_at", "2015-03-19 01:43:14.393684"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '4eefc834-cdd9-11e4-bcb8-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "4eefc834-cdd9-11e4-bcb8-705681abff85"], ["created_at", "2015-03-19 01:43:14.402345"], ["updated_at", "2015-03-19 01:43:14.402345"], ["token", "oBjhJ3UkU8wtGF58gsD18B3iX_FCm0-3tkxI_Cdtlmk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:14.415973' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SxE_njeakbJJadV4HCD0WDQx_EhOxhodOZG0D2AWhm8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:14.420492"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:14.424615"], ["id", "4eeef0ee-cdd9-11e4-b955-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4eee78e4-cdd9-11e4-8e16-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4eefc834-cdd9-11e4-bcb8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4eee78e4-cdd9-11e4-8e16-705681abff85' LIMIT 1 [["organization_id", "4eefc834-cdd9-11e4-bcb8-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4eefc834-cdd9-11e4-bcb8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "4eefc834-cdd9-11e4-bcb8-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.445580"], ["updated_at", "2015-03-19 01:43:14.445580"], ["token", "1jvw-U8FDigQ-gx68wTvOmxq_N-TF161k-Y9Dd-VGQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c3b79c2f-49a6-4fce-9a65-34eb6c7b1f2f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4ef8a5f8-cdd9-11e4-b810-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4ef8a5f8-cdd9-11e4-b810-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c3b79c2f-49a6-4fce-9a65-34eb6c7b1f2f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4ef8a5f8-cdd9-11e4-b810-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [c3b79c2f-49a6-4fce-9a65-34eb6c7b1f2f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4eefc834-cdd9-11e4-bcb8-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c3b79c2f-49a6-4fce-9a65-34eb6c7b1f2f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [c3b79c2f-49a6-4fce-9a65-34eb6c7b1f2f] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [c3b79c2f-49a6-4fce-9a65-34eb6c7b1f2f] Sent mail to email@example.com (2.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [c3b79c2f-49a6-4fce-9a65-34eb6c7b1f2f] Date: Wed, 18 Mar 2015 18:43:14 -0700 From: from@example.com To: email@example.com Message-ID: <550a29b274208_e16c3ffd84c65be48592a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/1jvw-U8FDigQ-gx68wTvOmxq_N-TF161k-Y9Dd-VGQo?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [c3b79c2f-49a6-4fce-9a65-34eb6c7b1f2f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.76ms Completed 201 Created in 65ms (Views: 1.8ms | ActiveRecord: 4.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$27.Xz34U22kzhbzJ89j4oej1PQ1qsOFST1m4O7ZuKtSNP9BdvkL9q"], ["created_at", "2015-03-19 01:43:14.488527"], ["updated_at", "2015-03-19 01:43:14.488527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.490371"], ["user_id", "4eff0eac-cdd9-11e4-943c-705681abff85"], ["created_at", "2015-03-19 01:43:14.491182"], ["updated_at", "2015-03-19 01:43:14.491182"], ["token", "Bhq8s-0YUXoqQUzZn43QjILGypt2V6nUddEOZ29KybQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.495136"], ["updated_at", "2015-03-19 01:43:14.495136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eff0eac-cdd9-11e4-943c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f0011bc-cdd9-11e4-a123-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4eff0eac-cdd9-11e4-943c-705681abff85"], ["organization_id", "4f0011bc-cdd9-11e4-a123-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.501436"], ["updated_at", "2015-03-19 01:43:14.501436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '4f0011bc-cdd9-11e4-a123-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "4f0011bc-cdd9-11e4-a123-705681abff85"], ["created_at", "2015-03-19 01:43:14.507215"], ["updated_at", "2015-03-19 01:43:14.507215"], ["token", "XIGozTWJby-mtxKA00c7-utipVaRzkKDeIzn4vZdo6Y"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:14.518545' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Bhq8s-0YUXoqQUzZn43QjILGypt2V6nUddEOZ29KybQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:14.521752"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:14.523620"], ["id", "4eff7c0c-cdd9-11e4-b426-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4eff0eac-cdd9-11e4-943c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f0011bc-cdd9-11e4-a123-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4eff0eac-cdd9-11e4-943c-705681abff85' LIMIT 1 [["organization_id", "4f0011bc-cdd9-11e4-a123-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4f0011bc-cdd9-11e4-a123-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "4f0011bc-cdd9-11e4-a123-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.532873"], ["updated_at", "2015-03-19 01:43:14.532873"], ["token", "sSd0EPaITTgyKla_T86sJrALrtwIOOpenu5FwzdgUHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 502d49a4-eda8-458d-a51f-b2665dd7046e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4f05d9d0-cdd9-11e4-80f4-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4f05d9d0-cdd9-11e4-80f4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [502d49a4-eda8-458d-a51f-b2665dd7046e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4f05d9d0-cdd9-11e4-80f4-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [502d49a4-eda8-458d-a51f-b2665dd7046e] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f0011bc-cdd9-11e4-a123-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [502d49a4-eda8-458d-a51f-b2665dd7046e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [502d49a4-eda8-458d-a51f-b2665dd7046e] Clubhouse::Mailer#invitation: processed outbound mail in 5.1ms [ActiveJob] [ActionMailer::DeliveryJob] [502d49a4-eda8-458d-a51f-b2665dd7046e] Sent mail to email@example.com (2.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [502d49a4-eda8-458d-a51f-b2665dd7046e] Date: Wed, 18 Mar 2015 18:43:14 -0700 From: from@example.com To: email@example.com Message-ID: <550a29b284c28_e16c3ffd84c65be4860d4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/sSd0EPaITTgyKla_T86sJrALrtwIOOpenu5FwzdgUHY?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [502d49a4-eda8-458d-a51f-b2665dd7046e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.34ms Completed 201 Created in 29ms (Views: 1.1ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$wOtQMH40bUT/oMtkgnpc8Ozb3Uc7HlwHPGUc2gM7D75i796XJ5uQe"], ["created_at", "2015-03-19 01:43:14.555874"], ["updated_at", "2015-03-19 01:43:14.555874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.558075"], ["user_id", "4f095c40-cdd9-11e4-937a-705681abff85"], ["created_at", "2015-03-19 01:43:14.558988"], ["updated_at", "2015-03-19 01:43:14.558988"], ["token", "1PnmSycTs1xEL2n2jR6QiiD_iiyMFg5LFlQGqacdR-0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.563206"], ["updated_at", "2015-03-19 01:43:14.563206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f095c40-cdd9-11e4-937a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f0a7058-cdd9-11e4-b36a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f095c40-cdd9-11e4-937a-705681abff85"], ["organization_id", "4f0a7058-cdd9-11e4-b36a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.566765"], ["updated_at", "2015-03-19 01:43:14.566765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '4f0a7058-cdd9-11e4-b36a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "4f0a7058-cdd9-11e4-b36a-705681abff85"], ["created_at", "2015-03-19 01:43:14.570725"], ["updated_at", "2015-03-19 01:43:14.570725"], ["token", "XopbcSWcRTVR9rMA1Do3Kki02A8OFTvyWYPhuAxYpiQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:14.579112' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1PnmSycTs1xEL2n2jR6QiiD_iiyMFg5LFlQGqacdR-0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (3.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:14.581661"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:14.583420"], ["id", "4f09d706-cdd9-11e4-90c8-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4f095c40-cdd9-11e4-937a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f0a7058-cdd9-11e4-b36a-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4f095c40-cdd9-11e4-937a-705681abff85' LIMIT 1 [["organization_id", "4f0a7058-cdd9-11e4-b36a-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '4f0a7058-cdd9-11e4-b36a-705681abff85') LIMIT 1  (81.8ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 242ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$aIqZK0XsrLkCoIBDRAWLYO1TWzbKNJEwdlAMsw42pZlKdU08ApIDy"], ["created_at", "2015-03-19 01:43:14.834611"], ["updated_at", "2015-03-19 01:43:14.834611"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.838344"], ["user_id", "4f34051c-cdd9-11e4-ac3d-705681abff85"], ["created_at", "2015-03-19 01:43:14.839800"], ["updated_at", "2015-03-19 01:43:14.839800"], ["token", "LnDDCg_7gXQbcofjKMR_yYd-D_bHJMFkwg9DxAPh40Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.846366"], ["updated_at", "2015-03-19 01:43:14.846366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f34051c-cdd9-11e4-ac3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f35b858-cdd9-11e4-85cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f34051c-cdd9-11e4-ac3d-705681abff85"], ["organization_id", "4f35b858-cdd9-11e4-85cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.851775"], ["updated_at", "2015-03-19 01:43:14.851775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '4f35b858-cdd9-11e4-85cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "4f35b858-cdd9-11e4-85cc-705681abff85"], ["created_at", "2015-03-19 01:43:14.862673"], ["updated_at", "2015-03-19 01:43:14.862673"], ["token", "5T_NUTP2QXZMXSZwvh7BNrj5y698lwPqZRNo1s3xwgs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$2mJ8kQh24/Py5RJbMVbhPe42rxSgBsKippYLt6l1CUzkKhds6GNoO"], ["created_at", "2015-03-19 01:43:14.873758"], ["updated_at", "2015-03-19 01:43:14.873758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.875538"], ["user_id", "4f39d5e6-cdd9-11e4-8f23-705681abff85"], ["created_at", "2015-03-19 01:43:14.876337"], ["updated_at", "2015-03-19 01:43:14.876337"], ["token", "EFbONeqkO7P_m7rqOXRg_kUDSORzmvFDbgZgWi_cDIo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.891032"], ["updated_at", "2015-03-19 01:43:14.891032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f39d5e6-cdd9-11e4-8f23-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f3c8ade-cdd9-11e4-8ca7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f39d5e6-cdd9-11e4-8f23-705681abff85"], ["organization_id", "4f3c8ade-cdd9-11e4-8ca7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.897542"], ["updated_at", "2015-03-19 01:43:14.897542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '4f3c8ade-cdd9-11e4-8ca7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "4f3c8ade-cdd9-11e4-8ca7-705681abff85"], ["created_at", "2015-03-19 01:43:14.901551"], ["updated_at", "2015-03-19 01:43:14.901551"], ["token", "lvvpCMRFZcaeZundV1NL9BsxBouztMeErn_W0sPvx4o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/4f3e24f2-cdd9-11e4-830c-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"4f3e24f2-cdd9-11e4-830c-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:14.920061' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EFbONeqkO7P_m7rqOXRg_kUDSORzmvFDbgZgWi_cDIo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:14.922699"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:14.923837"], ["id", "4f3a5250-cdd9-11e4-93d0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4f3e24f2-cdd9-11e4-830c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4f39d5e6-cdd9-11e4-8f23-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f3c8ade-cdd9-11e4-8ca7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4f39d5e6-cdd9-11e4-8f23-705681abff85' LIMIT 1 [["organization_id", "4f3c8ade-cdd9-11e4-8ca7-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."id" != '4f3e24f2-cdd9-11e4-830c-705681abff85' AND "clubhouse_invitations"."organization_id" = '4f3c8ade-cdd9-11e4-8ca7-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 01:43:14.932080"], ["id", "4f3e24f2-cdd9-11e4-830c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.3ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$.wvksZNiQJdquE3B/NDNturIkEKLMinrqQ7x8fYY1NG15yo96qXQu"], ["created_at", "2015-03-19 01:43:14.947350"], ["updated_at", "2015-03-19 01:43:14.947350"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.950353"], ["user_id", "4f45228e-cdd9-11e4-8f9c-705681abff85"], ["created_at", "2015-03-19 01:43:14.951835"], ["updated_at", "2015-03-19 01:43:14.951835"], ["token", "IEwEHjaciubOygzgpM34mycFE1dQm6llgSeMiDCZKrI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.959175"], ["updated_at", "2015-03-19 01:43:14.959175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f45228e-cdd9-11e4-8f9c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f46e268-cdd9-11e4-8d58-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f45228e-cdd9-11e4-8f9c-705681abff85"], ["organization_id", "4f46e268-cdd9-11e4-8d58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.963201"], ["updated_at", "2015-03-19 01:43:14.963201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '4f46e268-cdd9-11e4-8d58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "4f46e268-cdd9-11e4-8d58-705681abff85"], ["created_at", "2015-03-19 01:43:14.967144"], ["updated_at", "2015-03-19 01:43:14.967144"], ["token", "erH4g1VOwv3BpwyJmZ2tT0eU2eanLlpv2vXbfmhSQb4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$BxaI2.SZ51w7r/qdO4SovOKw5gxfH/v8sRaoWSRsHoT0732iOddje"], ["created_at", "2015-03-19 01:43:14.978289"], ["updated_at", "2015-03-19 01:43:14.978289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:14.980217"], ["user_id", "4f49ccf8-cdd9-11e4-8fc0-705681abff85"], ["created_at", "2015-03-19 01:43:14.981069"], ["updated_at", "2015-03-19 01:43:14.981069"], ["token", "OgFGPHJctieloJsJRyTbAEc1R8abKlKFYrRVIdSLza0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:14.984984"], ["updated_at", "2015-03-19 01:43:14.984984"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f49ccf8-cdd9-11e4-8fc0-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f4aca72-cdd9-11e4-881a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f49ccf8-cdd9-11e4-8fc0-705681abff85"], ["organization_id", "4f4aca72-cdd9-11e4-881a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:14.988518"], ["updated_at", "2015-03-19 01:43:14.988518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '4f4aca72-cdd9-11e4-881a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "4f4aca72-cdd9-11e4-881a-705681abff85"], ["created_at", "2015-03-19 01:43:14.991858"], ["updated_at", "2015-03-19 01:43:14.991858"], ["token", "gysfOo2p-4FAQaZTgIeKSU8KP73pJmJoVOAyn0je6zY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/4f4aca72-cdd9-11e4-881a-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:43:14 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"4f4aca72-cdd9-11e4-881a-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:14.996929' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OgFGPHJctieloJsJRyTbAEc1R8abKlKFYrRVIdSLza0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:14.998370"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:14.999281"], ["id", "4f4a3d28-cdd9-11e4-a158-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4f4aca72-cdd9-11e4-881a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4f49ccf8-cdd9-11e4-8fc0-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f4aca72-cdd9-11e4-881a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4f49ccf8-cdd9-11e4-8fc0-705681abff85' LIMIT 1 [["organization_id", "4f4aca72-cdd9-11e4-881a-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4f4aca72-cdd9-11e4-881a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "4f4aca72-cdd9-11e4-881a-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:43:15.006336"], ["updated_at", "2015-03-19 01:43:15.006336"], ["token", "FBt27wo0D5tFOjBKlgh5ddiSSPi0JUO6xvkdsP7GhnE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 71de5785-6bab-4617-a294-5b42a420bfec) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4f4e11d2-cdd9-11e4-8ecc-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4f4e11d2-cdd9-11e4-8ecc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [71de5785-6bab-4617-a294-5b42a420bfec] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4f4e11d2-cdd9-11e4-8ecc-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [71de5785-6bab-4617-a294-5b42a420bfec] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f4aca72-cdd9-11e4-881a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [71de5785-6bab-4617-a294-5b42a420bfec] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [71de5785-6bab-4617-a294-5b42a420bfec] Clubhouse::Mailer#invitation: processed outbound mail in 2.5ms [ActiveJob] [ActionMailer::DeliveryJob] [71de5785-6bab-4617-a294-5b42a420bfec] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [71de5785-6bab-4617-a294-5b42a420bfec] Date: Wed, 18 Mar 2015 18:43:15 -0700 From: from@example.com To: email@example.com Message-ID: <550a29b337f8_e16c3ffd84c65be486145@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/FBt27wo0D5tFOjBKlgh5ddiSSPi0JUO6xvkdsP7GhnE?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [71de5785-6bab-4617-a294-5b42a420bfec] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.68ms Completed 201 Created in 20ms (Views: 1.2ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$A.Ku6cY8YZOQS/3uc17T1eRCHYJhtwZ8CVkNE8kS7sYgaHztyVHpS"], ["created_at", "2015-03-19 01:43:15.024606"], ["updated_at", "2015-03-19 01:43:15.024606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:15.026196"], ["user_id", "4f50d732-cdd9-11e4-877a-705681abff85"], ["created_at", "2015-03-19 01:43:15.026985"], ["updated_at", "2015-03-19 01:43:15.026985"], ["token", "YUeVEAFXRQfxOvTaRKD5ydNq7m6bhkOsBat5pntCv3s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:15.030282"], ["updated_at", "2015-03-19 01:43:15.030282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f50d732-cdd9-11e4-877a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f51b3be-cdd9-11e4-80bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f50d732-cdd9-11e4-877a-705681abff85"], ["organization_id", "4f51b3be-cdd9-11e4-80bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:15.033527"], ["updated_at", "2015-03-19 01:43:15.033527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '4f51b3be-cdd9-11e4-80bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "4f51b3be-cdd9-11e4-80bd-705681abff85"], ["created_at", "2015-03-19 01:43:15.036816"], ["updated_at", "2015-03-19 01:43:15.036816"], ["token", "dTKFhz31wG5S_TF9j0SP31M40aAe8yaDrL6T9t6axJ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/4f51b3be-cdd9-11e4-80bd-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:43:15 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"4f51b3be-cdd9-11e4-80bd-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:15.042276' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YUeVEAFXRQfxOvTaRKD5ydNq7m6bhkOsBat5pntCv3s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:15.044119"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:15.045164"], ["id", "4f513812-cdd9-11e4-bc9a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4f51b3be-cdd9-11e4-80bd-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4f50d732-cdd9-11e4-877a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f51b3be-cdd9-11e4-80bd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4f50d732-cdd9-11e4-877a-705681abff85' LIMIT 1 [["organization_id", "4f51b3be-cdd9-11e4-80bd-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '4f51b3be-cdd9-11e4-80bd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "4f51b3be-cdd9-11e4-80bd-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 01:43:15.052872"], ["updated_at", "2015-03-19 01:43:15.052872"], ["token", "-8xtrEB6NIUAhYl7cwzK8afzPBOjSpfq8QCJaOzZ6zI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4da98896-1fa2-4e47-a45f-e8dc54e5bceb) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4f552f94-cdd9-11e4-a2d3-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4f552f94-cdd9-11e4-a2d3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4da98896-1fa2-4e47-a45f-e8dc54e5bceb] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/4f552f94-cdd9-11e4-a2d3-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [4da98896-1fa2-4e47-a45f-e8dc54e5bceb] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f51b3be-cdd9-11e4-80bd-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4da98896-1fa2-4e47-a45f-e8dc54e5bceb] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [4da98896-1fa2-4e47-a45f-e8dc54e5bceb] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [4da98896-1fa2-4e47-a45f-e8dc54e5bceb] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [4da98896-1fa2-4e47-a45f-e8dc54e5bceb] Date: Wed, 18 Mar 2015 18:43:15 -0700 From: from@example.com To: email@example.com Message-ID: <550a29b3f054_e16c3ffd84c65be486240@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/-8xtrEB6NIUAhYl7cwzK8afzPBOjSpfq8QCJaOzZ6zI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4da98896-1fa2-4e47-a45f-e8dc54e5bceb] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.44ms Completed 201 Created in 22ms (Views: 1.0ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$fqMXofIwFdumhcwYpy1gW.hbUq46gnIZRa6n12LzFKBP9l5QnZrPK"], ["created_at", "2015-03-19 01:43:15.071151"], ["updated_at", "2015-03-19 01:43:15.071151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:15.075373"], ["user_id", "4f57f1f2-cdd9-11e4-8ffc-705681abff85"], ["created_at", "2015-03-19 01:43:15.076224"], ["updated_at", "2015-03-19 01:43:15.076224"], ["token", "fhl8T4CmSDShz5Fx_3239LahTatx2IxHPGhaTdy2GqU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:15.079868"], ["updated_at", "2015-03-19 01:43:15.079868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f57f1f2-cdd9-11e4-8ffc-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f5943fe-cdd9-11e4-9fa5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f57f1f2-cdd9-11e4-8ffc-705681abff85"], ["organization_id", "4f5943fe-cdd9-11e4-9fa5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:15.083240"], ["updated_at", "2015-03-19 01:43:15.083240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '4f5943fe-cdd9-11e4-9fa5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "4f5943fe-cdd9-11e4-9fa5-705681abff85"], ["created_at", "2015-03-19 01:43:15.086750"], ["updated_at", "2015-03-19 01:43:15.086750"], ["token", "ucJTsplKG6B83b3CZOenQDRDyCGKls13XwOagVMcb9c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/4f5943fe-cdd9-11e4-9fa5-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:43:15 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"4f5943fe-cdd9-11e4-9fa5-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:15.092336' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fhl8T4CmSDShz5Fx_3239LahTatx2IxHPGhaTdy2GqU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:15.093859"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:15.094802"], ["id", "4f58c17c-cdd9-11e4-abca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4f5943fe-cdd9-11e4-9fa5-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4f57f1f2-cdd9-11e4-8ffc-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f5943fe-cdd9-11e4-9fa5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4f57f1f2-cdd9-11e4-8ffc-705681abff85' LIMIT 1 [["organization_id", "4f5943fe-cdd9-11e4-9fa5-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '4f5943fe-cdd9-11e4-9fa5-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$9R8/hEDJOBTzxec/a9aDMeBb9XAnKVnUu.wFzs1es5zcb32PfKU4C"], ["created_at", "2015-03-19 01:43:15.125240"], ["updated_at", "2015-03-19 01:43:15.125240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:15.127694"], ["user_id", "4f60438e-cdd9-11e4-9099-705681abff85"], ["created_at", "2015-03-19 01:43:15.128587"], ["updated_at", "2015-03-19 01:43:15.128587"], ["token", "VM2x3n9hESVBi5muIj-EpcgmGXTAuJOg05ZEnfK0t14"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:15.132631"], ["updated_at", "2015-03-19 01:43:15.132631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f60438e-cdd9-11e4-9099-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f6158d2-cdd9-11e4-9d4f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f60438e-cdd9-11e4-9099-705681abff85"], ["organization_id", "4f6158d2-cdd9-11e4-9d4f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:15.136701"], ["updated_at", "2015-03-19 01:43:15.136701"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '4f6158d2-cdd9-11e4-9d4f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "4f6158d2-cdd9-11e4-9d4f-705681abff85"], ["created_at", "2015-03-19 01:43:15.140895"], ["updated_at", "2015-03-19 01:43:15.140895"], ["token", "en5bnPqGvZL0b7r0xDD2VzYrhQNLs_9QdEgyEHbpjt0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$7lfZofscAk9.sroE4jSpoOYaimyz1DUYo0GCGt4nNKgLsmYo3SjWu"], ["created_at", "2015-03-19 01:43:15.146575"], ["updated_at", "2015-03-19 01:43:15.146575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:15.150263"], ["updated_at", "2015-03-19 01:43:15.150263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f63784c-cdd9-11e4-962d-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f641392-cdd9-11e4-9bf1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4f63784c-cdd9-11e4-962d-705681abff85"], ["organization_id", "4f641392-cdd9-11e4-9bf1-705681abff85"], ["created_at", "2015-03-19 01:43:15.154458"], ["updated_at", "2015-03-19 01:43:15.154458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 18:43:15 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$G0ejWGdWoiOhxoLh8NXOWuLKNGnw5TPLmR6X6CcP0aGX3iUf4tm7u"], ["created_at", "2015-03-19 01:43:15.165135"], ["updated_at", "2015-03-19 01:43:15.165135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:15.166707"], ["user_id", "4f6647ca-cdd9-11e4-97d2-705681abff85"], ["created_at", "2015-03-19 01:43:15.167464"], ["updated_at", "2015-03-19 01:43:15.167464"], ["token", "Aa6AQpWDso2WnxWoaAogU4MYsspxcZAkGIBTjeJxpho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:15.171830"], ["updated_at", "2015-03-19 01:43:15.171830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f6647ca-cdd9-11e4-97d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f67647a-cdd9-11e4-86cb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f6647ca-cdd9-11e4-97d2-705681abff85"], ["organization_id", "4f67647a-cdd9-11e4-86cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:15.177601"], ["updated_at", "2015-03-19 01:43:15.177601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '4f67647a-cdd9-11e4-86cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "4f67647a-cdd9-11e4-86cb-705681abff85"], ["created_at", "2015-03-19 01:43:15.181679"], ["updated_at", "2015-03-19 01:43:15.181679"], ["token", "BMlPcvaJjXDOsfSyfI9tjj0dnfNQcsB-dYLXJGdJUNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$.2ET/axBOT2OlBsQSo38V.xfi1y/eV2YYs90yrKuad/syT2vudC32"], ["created_at", "2015-03-19 01:43:15.187506"], ["updated_at", "2015-03-19 01:43:15.187506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:15.191408"], ["updated_at", "2015-03-19 01:43:15.191408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f69bafe-cdd9-11e4-ac6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f6a4ed8-cdd9-11e4-a3b1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4f69bafe-cdd9-11e4-ac6a-705681abff85"], ["organization_id", "4f6a4ed8-cdd9-11e4-a3b1-705681abff85"], ["created_at", "2015-03-19 01:43:15.195267"], ["updated_at", "2015-03-19 01:43:15.195267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/4f67647a-cdd9-11e4-86cb-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 18:43:15 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"4f67647a-cdd9-11e4-86cb-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:15.201280' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Aa6AQpWDso2WnxWoaAogU4MYsspxcZAkGIBTjeJxpho"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:15.202754"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:15.203763"], ["id", "4f66aea4-cdd9-11e4-8268-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4f67647a-cdd9-11e4-86cb-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4f6647ca-cdd9-11e4-97d2-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4f6647ca-cdd9-11e4-97d2-705681abff85' LIMIT 1 [["organization_id", "4f67647a-cdd9-11e4-86cb-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "4f67647a-cdd9-11e4-86cb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f67647a-cdd9-11e4-86cb-705681abff85"]] Completed 200 OK in 14ms (Views: 2.8ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$hdXQZNM1FSYGxJozGZBcpudCdX5oZrFtDR6Jt8fS0620e99lRvCoq"], ["created_at", "2015-03-19 01:43:15.222328"], ["updated_at", "2015-03-19 01:43:15.222328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:15.224408"], ["user_id", "4f6f0946-cdd9-11e4-8c49-705681abff85"], ["created_at", "2015-03-19 01:43:15.225467"], ["updated_at", "2015-03-19 01:43:15.225467"], ["token", "rYuHHw-pYbSdeQQsdeyC8OmsBxvWy1imJUmjOlzl2So"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:15.230348"], ["updated_at", "2015-03-19 01:43:15.230348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f6f0946-cdd9-11e4-8c49-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f703cb2-cdd9-11e4-9ce0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f6f0946-cdd9-11e4-8c49-705681abff85"], ["organization_id", "4f703cb2-cdd9-11e4-9ce0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:15.233887"], ["updated_at", "2015-03-19 01:43:15.233887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '4f703cb2-cdd9-11e4-9ce0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "4f703cb2-cdd9-11e4-9ce0-705681abff85"], ["created_at", "2015-03-19 01:43:15.237942"], ["updated_at", "2015-03-19 01:43:15.237942"], ["token", "faXfwu9fZLL0pX6Y_TevyYjFsd4BpgLgsDeNEAlAyHg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 18:43:15 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$gOgbbo/E91F7mYwLUVK8xOj7fPCsYOUcyKF3JQiZ4UqXbMBBECMYm"], ["created_at", "2015-03-19 01:43:15.250902"], ["updated_at", "2015-03-19 01:43:15.250902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 01:43:15.253394"], ["user_id", "4f736c8e-cdd9-11e4-b997-705681abff85"], ["created_at", "2015-03-19 01:43:15.254493"], ["updated_at", "2015-03-19 01:43:15.254493"], ["token", "KKFY7CZgIPe4oVdXd1Fl29_d1nBW8TIW1YvzoTFpxiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 01:43:15.258816"], ["updated_at", "2015-03-19 01:43:15.258816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f736c8e-cdd9-11e4-b997-705681abff85' AND "clubhouse_memberships"."organization_id" = '4f749de8-cdd9-11e4-ae8f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4f736c8e-cdd9-11e4-b997-705681abff85"], ["organization_id", "4f749de8-cdd9-11e4-ae8f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 01:43:15.262844"], ["updated_at", "2015-03-19 01:43:15.262844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '4f749de8-cdd9-11e4-ae8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "4f749de8-cdd9-11e4-ae8f-705681abff85"], ["created_at", "2015-03-19 01:43:15.266878"], ["updated_at", "2015-03-19 01:43:15.266878"], ["token", "oBDMnx_Eq_RY0mky7degOa0_-KYIIioLXzB48wK-3M0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/4f75d9c4-cdd9-11e4-8e1b-705681abff85" for 127.0.0.1 at 2015-03-18 18:43:15 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"4f75d9c4-cdd9-11e4-8e1b-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 01:43:15.273005' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KKFY7CZgIPe4oVdXd1Fl29_d1nBW8TIW1YvzoTFpxiY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 01:43:15.274606"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 01:43:15.276069"], ["id", "4f73fa3c-cdd9-11e4-8226-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4f75d9c4-cdd9-11e4-8e1b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4f736c8e-cdd9-11e4-b997-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4f749de8-cdd9-11e4-ae8f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4f736c8e-cdd9-11e4-b997-705681abff85' LIMIT 1 [["organization_id", "4f749de8-cdd9-11e4-ae8f-705681abff85"]] Completed 200 OK in 11ms (Views: 1.2ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (27.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$zXVD4Gd4MpddbEpbo6cF8eqbZNv20z5iUBGVIMUdyjFOW6pP6WoVG"], ["created_at", "2015-03-19 02:50:12.152073"], ["updated_at", "2015-03-19 02:50:12.152073"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.189741"], ["user_id", "a9b9c0e0-cde2-11e4-b6ed-705681abff85"], ["created_at", "2015-03-19 02:50:12.228085"], ["updated_at", "2015-03-19 02:50:12.228085"], ["token", "sciRkIdmxsSSmJOeVLA8XBr79ZQyCH_ztjearmAWBzg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.245782"], ["updated_at", "2015-03-19 02:50:12.245782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9b9c0e0-cde2-11e4-b6ed-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9c4317e-cde2-11e4-8f78-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9b9c0e0-cde2-11e4-b6ed-705681abff85"], ["organization_id", "a9c4317e-cde2-11e4-8f78-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.258028"], ["updated_at", "2015-03-19 02:50:12.258028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a9c4317e-cde2-11e4-8f78-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a9c4317e-cde2-11e4-8f78-705681abff85"], ["created_at", "2015-03-19 02:50:12.270381"], ["updated_at", "2015-03-19 02:50:12.270381"], ["token", "mteW_DGQhdP5oedHiKZYsn_hmSwxpYVq7OKLGgnCvtE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/a9c81118-cde2-11e4-b96d-705681abff85" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"a9c81118-cde2-11e4-b96d-705681abff85", "invitation"=>{}} Pollett::Session Load (1.1ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:12.298769' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sciRkIdmxsSSmJOeVLA8XBr79ZQyCH_ztjearmAWBzg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:12.307476"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:12.308771"], ["id", "a9c188e8-cde2-11e4-b59f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a9c81118-cde2-11e4-b96d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9b9c0e0-cde2-11e4-b6ed-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a9c4317e-cde2-11e4-8f78-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9b9c0e0-cde2-11e4-b6ed-705681abff85' LIMIT 1 [["organization_id", "a9c4317e-cde2-11e4-8f78-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a9c81118-cde2-11e4-b96d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 34ms (ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$9N2oPbWy26YfNLrKmfBINO7gj7Cf/qoDG1GAaEBKXTz1hNguSVZpi"], ["created_at", "2015-03-19 02:50:12.340424"], ["updated_at", "2015-03-19 02:50:12.340424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.342301"], ["user_id", "a9d29a0c-cde2-11e4-8bae-705681abff85"], ["created_at", "2015-03-19 02:50:12.343159"], ["updated_at", "2015-03-19 02:50:12.343159"], ["token", "gWbe0t_dm0s9rW3lMqf9OCJGyNheri-Ub9RZY3FQ_IQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (98.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.346858"], ["updated_at", "2015-03-19 02:50:12.346858"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (7.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9d29a0c-cde2-11e4-8bae-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9d39538-cde2-11e4-8455-705681abff85') LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9d29a0c-cde2-11e4-8bae-705681abff85"], ["organization_id", "a9d39538-cde2-11e4-8455-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.463519"], ["updated_at", "2015-03-19 02:50:12.463519"]]  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a9d39538-cde2-11e4-8455-705681abff85') LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a9d39538-cde2-11e4-8455-705681abff85"], ["created_at", "2015-03-19 02:50:12.475970"], ["updated_at", "2015-03-19 02:50:12.475970"], ["token", "D3l-gIgpenYuSG6PmUN1FRSLXqhCZ0NCavoI6J8XgOc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$DDMw7st8HPPOrDazy7ZEd.KuPVdLarvKH0DLpQmrGoZANGgteS5ki"], ["created_at", "2015-03-19 02:50:12.494703"], ["updated_at", "2015-03-19 02:50:12.494703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.496337"], ["user_id", "a9ea223a-cde2-11e4-9fd3-705681abff85"], ["created_at", "2015-03-19 02:50:12.497116"], ["updated_at", "2015-03-19 02:50:12.497116"], ["token", "TqvtW7uaNh-LY-es-wfKxAmYVowrMsNvOMdi1_q9FHs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.500537"], ["updated_at", "2015-03-19 02:50:12.500537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9ea223a-cde2-11e4-9fd3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9eb027c-cde2-11e4-9dbb-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9ea223a-cde2-11e4-9fd3-705681abff85"], ["organization_id", "a9eb027c-cde2-11e4-9dbb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.503747"], ["updated_at", "2015-03-19 02:50:12.503747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a9eb027c-cde2-11e4-9dbb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a9eb027c-cde2-11e4-9dbb-705681abff85"], ["created_at", "2015-03-19 02:50:12.507405"], ["updated_at", "2015-03-19 02:50:12.507405"], ["token", "W2QHaDWKOpQgfOLqzEIQKq_kiFwYbh80yIH7Ghqhw3Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$mCaT9ALxTVhnerV14Ltcnu1dqJezcMqKZS0KMdBUFUSpWylukzDQO"], ["created_at", "2015-03-19 02:50:12.511781"], ["updated_at", "2015-03-19 02:50:12.511781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.514844"], ["updated_at", "2015-03-19 02:50:12.514844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9ecb946-cde2-11e4-97b7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9ed315a-cde2-11e4-b761-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9ecb946-cde2-11e4-97b7-705681abff85"], ["organization_id", "a9ed315a-cde2-11e4-b761-705681abff85"], ["created_at", "2015-03-19 02:50:12.518005"], ["updated_at", "2015-03-19 02:50:12.518005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:12.523424' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TqvtW7uaNh-LY-es-wfKxAmYVowrMsNvOMdi1_q9FHs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:12.525047"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:12.526682"], ["id", "a9ea8496-cde2-11e4-ab87-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9ea223a-cde2-11e4-9fd3-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "a9eb027c-cde2-11e4-9dbb-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('a9eb027c-cde2-11e4-9dbb-705681abff85') Completed 500 Internal Server Error in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$jGVVfzT4DPlFG83/8cnVgemY.lALWtsj6r490Q73zuRI/loPQf.by"], ["created_at", "2015-03-19 02:50:12.548039"], ["updated_at", "2015-03-19 02:50:12.548039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.549648"], ["user_id", "a9f2453c-cde2-11e4-a35b-705681abff85"], ["created_at", "2015-03-19 02:50:12.550417"], ["updated_at", "2015-03-19 02:50:12.550417"], ["token", "6yBjhswSDatm-fTpLzTz4jVnPGLdDHCtWT2fqHmXv7k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.554010"], ["updated_at", "2015-03-19 02:50:12.554010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9f2453c-cde2-11e4-a35b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9f32b00-cde2-11e4-8440-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9f2453c-cde2-11e4-a35b-705681abff85"], ["organization_id", "a9f32b00-cde2-11e4-8440-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.557350"], ["updated_at", "2015-03-19 02:50:12.557350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a9f32b00-cde2-11e4-8440-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a9f32b00-cde2-11e4-8440-705681abff85"], ["created_at", "2015-03-19 02:50:12.560745"], ["updated_at", "2015-03-19 02:50:12.560745"], ["token", "JKoU9NhmcN2a64jlakpgBq-qzZHYbx2No8cGHvgB2s0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$RD9h6Log1gTUdxLMy5yDRuTMXDnhZya3YjVHviIq9UhTfxWRV9X9e"], ["created_at", "2015-03-19 02:50:12.565262"], ["updated_at", "2015-03-19 02:50:12.565262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.568751"], ["updated_at", "2015-03-19 02:50:12.568751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9f4ed00-cde2-11e4-9bea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9f56cbc-cde2-11e4-87ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a9f4ed00-cde2-11e4-9bea-705681abff85"], ["organization_id", "a9f56cbc-cde2-11e4-87ae-705681abff85"], ["created_at", "2015-03-19 02:50:12.572041"], ["updated_at", "2015-03-19 02:50:12.572041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$81qLGXvGYr.Qt6xq62r2GeEkwDeu/Jw5WfDIWqQ3Ab9jl2OgV56O2"], ["created_at", "2015-03-19 02:50:12.583984"], ["updated_at", "2015-03-19 02:50:12.583984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.585730"], ["user_id", "a9f7c2c8-cde2-11e4-9964-705681abff85"], ["created_at", "2015-03-19 02:50:12.586496"], ["updated_at", "2015-03-19 02:50:12.586496"], ["token", "d8YuRGwGSFiW8oTFiPoI7qNjolvEOBOCKik4apZ86oM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.589946"], ["updated_at", "2015-03-19 02:50:12.589946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9f7c2c8-cde2-11e4-9964-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9f8adf0-cde2-11e4-8113-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9f7c2c8-cde2-11e4-9964-705681abff85"], ["organization_id", "a9f8adf0-cde2-11e4-8113-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.594269"], ["updated_at", "2015-03-19 02:50:12.594269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a9f8adf0-cde2-11e4-8113-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a9f8adf0-cde2-11e4-8113-705681abff85"], ["created_at", "2015-03-19 02:50:12.597901"], ["updated_at", "2015-03-19 02:50:12.597901"], ["token", "VTpGtpX1NQRNQD-qXFSR8lgDg1QVbdhPTIqHZib3CXQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$eOpxSQ11ABWUcEn6BRszSu7PH/MAvzh2LXcIYhiw3A.3Pp0MG8lmy"], ["created_at", "2015-03-19 02:50:12.610835"], ["updated_at", "2015-03-19 02:50:12.610835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.612467"], ["user_id", "a9fbd944-cde2-11e4-893e-705681abff85"], ["created_at", "2015-03-19 02:50:12.613269"], ["updated_at", "2015-03-19 02:50:12.613269"], ["token", "uuA46tauNzt2pQgdvESsnTUTiSG_wtEEns2l4lElDW8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.616986"], ["updated_at", "2015-03-19 02:50:12.616986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9fbd944-cde2-11e4-893e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'a9fcc868-cde2-11e4-9b9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9fbd944-cde2-11e4-893e-705681abff85"], ["organization_id", "a9fcc868-cde2-11e4-9b9e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.620469"], ["updated_at", "2015-03-19 02:50:12.620469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a9fcc868-cde2-11e4-9b9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a9fcc868-cde2-11e4-9b9e-705681abff85"], ["created_at", "2015-03-19 02:50:12.624072"], ["updated_at", "2015-03-19 02:50:12.624072"], ["token", "WB0vWfA9ksjv3MwCoZedRxwmHaEu6LVkpEJ1-I6GnE4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a9fcc868-cde2-11e4-9b9e-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"a9fcc868-cde2-11e4-9b9e-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:12.633044' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uuA46tauNzt2pQgdvESsnTUTiSG_wtEEns2l4lElDW8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:12.634711"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:12.635695"], ["id", "a9fc41fe-cde2-11e4-878a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a9fcc868-cde2-11e4-9b9e-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9fbd944-cde2-11e4-893e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a9fcc868-cde2-11e4-9b9e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9fbd944-cde2-11e4-893e-705681abff85' LIMIT 1 [["organization_id", "a9fcc868-cde2-11e4-9b9e-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$sgP2Y/3VGyVY.s/PJIiXUetEPx/K7jrJUTcM9unybV3pgZkImV5.i"], ["created_at", "2015-03-19 02:50:12.658698"], ["updated_at", "2015-03-19 02:50:12.658698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.660357"], ["user_id", "aa03291a-cde2-11e4-a80a-705681abff85"], ["created_at", "2015-03-19 02:50:12.661153"], ["updated_at", "2015-03-19 02:50:12.661153"], ["token", "1PUZa2r3GofQ9giNwTOcTkQmHWuoVekfBFu2B1IV-bY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.672219"], ["updated_at", "2015-03-19 02:50:12.672219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa03291a-cde2-11e4-a80a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa053886-cde2-11e4-970b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa03291a-cde2-11e4-a80a-705681abff85"], ["organization_id", "aa053886-cde2-11e4-970b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.675897"], ["updated_at", "2015-03-19 02:50:12.675897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'aa053886-cde2-11e4-970b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "aa053886-cde2-11e4-970b-705681abff85"], ["created_at", "2015-03-19 02:50:12.679673"], ["updated_at", "2015-03-19 02:50:12.679673"], ["token", "9NMYHXw_rImzD8CB7SWqtWCrz6yV9de-Dw0ljv7pZvs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/aa053886-cde2-11e4-970b-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"aa053886-cde2-11e4-970b-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:12.684364' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1PUZa2r3GofQ9giNwTOcTkQmHWuoVekfBFu2B1IV-bY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:12.686087"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:12.687336"], ["id", "aa038d06-cde2-11e4-8882-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "aa053886-cde2-11e4-970b-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aa03291a-cde2-11e4-a80a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "aa053886-cde2-11e4-970b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'aa03291a-cde2-11e4-a80a-705681abff85' LIMIT 1 [["organization_id", "aa053886-cde2-11e4-970b-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$CO7UeBS1cZUYwpZKZtyYFupUuvfmuSftFTdKpDMRxDgKLBRDNiL9G"], ["created_at", "2015-03-19 02:50:12.702083"], ["updated_at", "2015-03-19 02:50:12.702083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.703826"], ["user_id", "aa09c838-cde2-11e4-8677-705681abff85"], ["created_at", "2015-03-19 02:50:12.704654"], ["updated_at", "2015-03-19 02:50:12.704654"], ["token", "BB0uG0IRpXIS6g9jYWNUQY1BA6GQq1aH1WkHomGnKqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.715078"], ["updated_at", "2015-03-19 02:50:12.715078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa09c838-cde2-11e4-8677-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa0bbf44-cde2-11e4-9953-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa09c838-cde2-11e4-8677-705681abff85"], ["organization_id", "aa0bbf44-cde2-11e4-9953-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.718291"], ["updated_at", "2015-03-19 02:50:12.718291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'aa0bbf44-cde2-11e4-9953-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "aa0bbf44-cde2-11e4-9953-705681abff85"], ["created_at", "2015-03-19 02:50:12.722015"], ["updated_at", "2015-03-19 02:50:12.722015"], ["token", "n2dKTkPq5JvRlC_01gMteLANqgxWE5-wT_jfPo7P-bw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/aa0bbf44-cde2-11e4-9953-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"aa0bbf44-cde2-11e4-9953-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:12.726939' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BB0uG0IRpXIS6g9jYWNUQY1BA6GQq1aH1WkHomGnKqk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:12.728371"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:12.729320"], ["id", "aa0b35ba-cde2-11e4-bd16-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "aa0bbf44-cde2-11e4-9953-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aa09c838-cde2-11e4-8677-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "aa0bbf44-cde2-11e4-9953-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'aa09c838-cde2-11e4-8677-705681abff85' LIMIT 1 [["organization_id", "aa0bbf44-cde2-11e4-9953-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$DH7.I49w0.TOxkR9.GErtuqPRazwppakn8BWouwfNLC3RLEjUNcnu"], ["created_at", "2015-03-19 02:50:12.743523"], ["updated_at", "2015-03-19 02:50:12.743523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.745210"], ["user_id", "aa101a62-cde2-11e4-8c6c-705681abff85"], ["created_at", "2015-03-19 02:50:12.745997"], ["updated_at", "2015-03-19 02:50:12.745997"], ["token", "qewibcpW7HAMfzaOffiJinmdEPQA6IAj48n2WQ0rExM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.749391"], ["updated_at", "2015-03-19 02:50:12.749391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa101a62-cde2-11e4-8c6c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa10fa72-cde2-11e4-9b66-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa101a62-cde2-11e4-8c6c-705681abff85"], ["organization_id", "aa10fa72-cde2-11e4-9b66-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.752812"], ["updated_at", "2015-03-19 02:50:12.752812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'aa10fa72-cde2-11e4-9b66-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "aa10fa72-cde2-11e4-9b66-705681abff85"], ["created_at", "2015-03-19 02:50:12.756767"], ["updated_at", "2015-03-19 02:50:12.756767"], ["token", "l1JJ3UKaSI2bok8vnJA0qHjX-x-SeKg4ruNS-CwDjPs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$gIjp.ZmCC1zaljwSU4SoAeIM9lYjvt1q0/b5CcFO0k1S9jCWZ0sfS"], ["created_at", "2015-03-19 02:50:12.761240"], ["updated_at", "2015-03-19 02:50:12.761240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.764250"], ["updated_at", "2015-03-19 02:50:12.764250"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa12cb40-cde2-11e4-9d2d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa133eea-cde2-11e4-aed5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "aa12cb40-cde2-11e4-9d2d-705681abff85"], ["organization_id", "aa133eea-cde2-11e4-aed5-705681abff85"], ["created_at", "2015-03-19 02:50:12.767325"], ["updated_at", "2015-03-19 02:50:12.767325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/aa10fa72-cde2-11e4-9b66-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"aa10fa72-cde2-11e4-9b66-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:12.771726' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qewibcpW7HAMfzaOffiJinmdEPQA6IAj48n2WQ0rExM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:12.773180"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:12.774113"], ["id", "aa107e4e-cde2-11e4-b658-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "aa10fa72-cde2-11e4-9b66-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aa101a62-cde2-11e4-8c6c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "aa10fa72-cde2-11e4-9b66-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('aa10fa72-cde2-11e4-9b66-705681abff85') Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$edai6QgQEnOMfc5CnN.oVO6MhkinXmKl8f7VQRm4Sv1UU3aibvYyS"], ["created_at", "2015-03-19 02:50:12.786394"], ["updated_at", "2015-03-19 02:50:12.786394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.787954"], ["user_id", "aa16a35a-cde2-11e4-83a7-705681abff85"], ["created_at", "2015-03-19 02:50:12.788730"], ["updated_at", "2015-03-19 02:50:12.788730"], ["token", "2zVFwxMwJk6gfWNkdEUAva0s_dxmXmMQvUUXixNbMAI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.792860"], ["updated_at", "2015-03-19 02:50:12.792860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa16a35a-cde2-11e4-83a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa17a12e-cde2-11e4-adda-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa16a35a-cde2-11e4-83a7-705681abff85"], ["organization_id", "aa17a12e-cde2-11e4-adda-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.796375"], ["updated_at", "2015-03-19 02:50:12.796375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'aa17a12e-cde2-11e4-adda-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "aa17a12e-cde2-11e4-adda-705681abff85"], ["created_at", "2015-03-19 02:50:12.799631"], ["updated_at", "2015-03-19 02:50:12.799631"], ["token", "ijJRAo6i899fu2xh4NKBl5B1sj_RRTElforlHFd_c2M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$tSFq0sWOJWLzj4KIO94aM.a.ZqcuKmBnlrljDV0BtnD6Lgr/6tTjS"], ["created_at", "2015-03-19 02:50:12.804171"], ["updated_at", "2015-03-19 02:50:12.804171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.808269"], ["updated_at", "2015-03-19 02:50:12.808269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa1958d4-cde2-11e4-9667-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa19f7da-cde2-11e4-9bf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "aa1958d4-cde2-11e4-9667-705681abff85"], ["organization_id", "aa19f7da-cde2-11e4-9bf6-705681abff85"], ["created_at", "2015-03-19 02:50:12.811446"], ["updated_at", "2015-03-19 02:50:12.811446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$zVXDIxjilntuNchlfnP/w.1vetFYv/dp9WHxOq644D6rrfpu5pKGG"], ["created_at", "2015-03-19 02:50:12.823956"], ["updated_at", "2015-03-19 02:50:12.823956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.825790"], ["user_id", "aa1c5fc0-cde2-11e4-8d4a-705681abff85"], ["created_at", "2015-03-19 02:50:12.826823"], ["updated_at", "2015-03-19 02:50:12.826823"], ["token", "sJICJ2KyCANgsToagBnZ3tMrscWKx8MqI9D8WwfpCK0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.830740"], ["updated_at", "2015-03-19 02:50:12.830740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa1c5fc0-cde2-11e4-8d4a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa1d664a-cde2-11e4-8f7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa1c5fc0-cde2-11e4-8d4a-705681abff85"], ["organization_id", "aa1d664a-cde2-11e4-8f7a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.834004"], ["updated_at", "2015-03-19 02:50:12.834004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'aa1d664a-cde2-11e4-8f7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "aa1d664a-cde2-11e4-8f7a-705681abff85"], ["created_at", "2015-03-19 02:50:12.837868"], ["updated_at", "2015-03-19 02:50:12.837868"], ["token", "UxC8NRfV2m-pwciRn8p6jRLDhkw0__sYtV105F6qlqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$fZcw4.wkGSRCCANflOhl3u3yfP6BvEcktWIoTl8kAjrBDLGqx0MUC"], ["created_at", "2015-03-19 02:50:12.848576"], ["updated_at", "2015-03-19 02:50:12.848576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.850219"], ["user_id", "aa202042-cde2-11e4-ba8a-705681abff85"], ["created_at", "2015-03-19 02:50:12.850991"], ["updated_at", "2015-03-19 02:50:12.850991"], ["token", "SaHJZz7rZE60fe0x6WdP0KgJLRTRsnfqjHXuoJPoZ3c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.854619"], ["updated_at", "2015-03-19 02:50:12.854619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa202042-cde2-11e4-ba8a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa210af2-cde2-11e4-8690-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa202042-cde2-11e4-ba8a-705681abff85"], ["organization_id", "aa210af2-cde2-11e4-8690-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.857972"], ["updated_at", "2015-03-19 02:50:12.857972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'aa210af2-cde2-11e4-8690-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "aa210af2-cde2-11e4-8690-705681abff85"], ["created_at", "2015-03-19 02:50:12.861237"], ["updated_at", "2015-03-19 02:50:12.861237"], ["token", "3BHpxo17iCJpDxcavAJJTfMkacaDbzLL4VEpbQxa3gk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:12.865844' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SaHJZz7rZE60fe0x6WdP0KgJLRTRsnfqjHXuoJPoZ3c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:12.867285"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:12.868224"], ["id", "aa2082ee-cde2-11e4-8877-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aa202042-cde2-11e4-ba8a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "aa210af2-cde2-11e4-8690-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'aa202042-cde2-11e4-ba8a-705681abff85' LIMIT 1 [["organization_id", "aa210af2-cde2-11e4-8690-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$J.KjPl5q1Ie/hhs6s1kyzOtgcsm2hcMuDAMNAZo0LhvnC9V3Zkhv2"], ["created_at", "2015-03-19 02:50:12.884416"], ["updated_at", "2015-03-19 02:50:12.884416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.885997"], ["user_id", "aa25977a-cde2-11e4-8a91-705681abff85"], ["created_at", "2015-03-19 02:50:12.886770"], ["updated_at", "2015-03-19 02:50:12.886770"], ["token", "fviBHfA4MeB-nn_3PFjdXfTJtrjiJVGtJIKHQUMqjtA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.890113"], ["updated_at", "2015-03-19 02:50:12.890113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa25977a-cde2-11e4-8a91-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa2674c4-cde2-11e4-942a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa25977a-cde2-11e4-8a91-705681abff85"], ["organization_id", "aa2674c4-cde2-11e4-942a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.894261"], ["updated_at", "2015-03-19 02:50:12.894261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'aa2674c4-cde2-11e4-942a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "aa2674c4-cde2-11e4-942a-705681abff85"], ["created_at", "2015-03-19 02:50:12.897689"], ["updated_at", "2015-03-19 02:50:12.897689"], ["token", "R4tzVbVNQI3KtCrg5jYdDR4IxXhmWvnuyoVZ1SjmRa4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:12.902395' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fviBHfA4MeB-nn_3PFjdXfTJtrjiJVGtJIKHQUMqjtA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:12.903814"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:12.904901"], ["id", "aa25f7f6-cde2-11e4-8f38-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aa25977a-cde2-11e4-8a91-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "aa2674c4-cde2-11e4-942a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'aa25977a-cde2-11e4-8a91-705681abff85' LIMIT 1 [["organization_id", "aa2674c4-cde2-11e4-942a-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$4Fm6BQTmRsmVE0NhViWRu.jm5qzT2U6SSVn/F.gysbuzGaJiLrV/."], ["created_at", "2015-03-19 02:50:12.917170"], ["updated_at", "2015-03-19 02:50:12.917170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.918780"], ["user_id", "aa2a9716-cde2-11e4-b182-705681abff85"], ["created_at", "2015-03-19 02:50:12.919535"], ["updated_at", "2015-03-19 02:50:12.919535"], ["token", "xdIR9ojoY2DQl9slkFhvGlaBgHZU3nZDHXKYcW8oXPM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.923181"], ["updated_at", "2015-03-19 02:50:12.923181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa2a9716-cde2-11e4-b182-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa2b81d0-cde2-11e4-a074-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa2a9716-cde2-11e4-b182-705681abff85"], ["organization_id", "aa2b81d0-cde2-11e4-a074-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.926756"], ["updated_at", "2015-03-19 02:50:12.926756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'aa2b81d0-cde2-11e4-a074-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "aa2b81d0-cde2-11e4-a074-705681abff85"], ["created_at", "2015-03-19 02:50:12.930810"], ["updated_at", "2015-03-19 02:50:12.930810"], ["token", "8bnFo_RB_2aI_WhZJb-pPHbMS8C5BPnEwIM9Ylpl4fE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:12.935890' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xdIR9ojoY2DQl9slkFhvGlaBgHZU3nZDHXKYcW8oXPM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:12.937685"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:12.938755"], ["id", "aa2af8aa-cde2-11e4-98d3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aa2a9716-cde2-11e4-b182-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "aa2b81d0-cde2-11e4-a074-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'aa2a9716-cde2-11e4-b182-705681abff85' LIMIT 1 [["organization_id", "aa2b81d0-cde2-11e4-a074-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$xs.37lVWKAkBYlIB1SYva.XWrOud6WW4Ff.nivcpbXR6rPoNeLTNO"], ["created_at", "2015-03-19 02:50:12.952816"], ["updated_at", "2015-03-19 02:50:12.952816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.954814"], ["user_id", "aa30094e-cde2-11e4-aa6e-705681abff85"], ["created_at", "2015-03-19 02:50:12.956270"], ["updated_at", "2015-03-19 02:50:12.956270"], ["token", "lDts2asTWfO0vs144E0i5J2dBQ6gdIysFLx7k1BKrHQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.961009"], ["updated_at", "2015-03-19 02:50:12.961009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa30094e-cde2-11e4-aa6e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa31494e-cde2-11e4-9137-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa30094e-cde2-11e4-aa6e-705681abff85"], ["organization_id", "aa31494e-cde2-11e4-9137-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.964652"], ["updated_at", "2015-03-19 02:50:12.964652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'aa31494e-cde2-11e4-9137-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "aa31494e-cde2-11e4-9137-705681abff85"], ["created_at", "2015-03-19 02:50:12.968106"], ["updated_at", "2015-03-19 02:50:12.968106"], ["token", "iEXGZfLztBta1hOvfYF3niBHbWdM9to8WUR3JEP8oa8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/aa32604a-cde2-11e4-90eb-705681abff85" for 127.0.0.1 at 2015-03-18 19:50:12 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"aa32604a-cde2-11e4-90eb-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:12.973205' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lDts2asTWfO0vs144E0i5J2dBQ6gdIysFLx7k1BKrHQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:12.974625"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:12.975548"], ["id", "aa30b272-cde2-11e4-be5c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "aa32604a-cde2-11e4-90eb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aa30094e-cde2-11e4-aa6e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "aa31494e-cde2-11e4-9137-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'aa30094e-cde2-11e4-aa6e-705681abff85' LIMIT 1 [["organization_id", "aa31494e-cde2-11e4-9137-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$0SyzTgWddtkJLLLZG7Y/3u66EUy7.n870oNwn1BH7KY.AeOS19K.K"], ["created_at", "2015-03-19 02:50:12.987549"], ["updated_at", "2015-03-19 02:50:12.987549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:12.989147"], ["user_id", "aa35548a-cde2-11e4-8735-705681abff85"], ["created_at", "2015-03-19 02:50:12.989942"], ["updated_at", "2015-03-19 02:50:12.989942"], ["token", "v0GIIfkir15bSLQzJfFM7L5wXHjQHWr5H14Oz3ArJ70"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:12.994186"], ["updated_at", "2015-03-19 02:50:12.994186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa35548a-cde2-11e4-8735-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa3662da-cde2-11e4-bdaf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa35548a-cde2-11e4-8735-705681abff85"], ["organization_id", "aa3662da-cde2-11e4-bdaf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:12.998608"], ["updated_at", "2015-03-19 02:50:12.998608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'aa3662da-cde2-11e4-bdaf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "aa3662da-cde2-11e4-bdaf-705681abff85"], ["created_at", "2015-03-19 02:50:13.002495"], ["updated_at", "2015-03-19 02:50:13.002495"], ["token", "R8lCAX-6aZWtbhWNXBMys5LWDPDTxywZkVDMN04xMZw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 19:50:13 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$4lONtEZ/hQV/1.79/6lZe.tiKlsQi2UUlk2Cubd/IGJmLMJQ850fm"], ["created_at", "2015-03-19 02:50:13.012548"], ["updated_at", "2015-03-19 02:50:13.012548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:13.014150"], ["user_id", "aa39260a-cde2-11e4-8778-705681abff85"], ["created_at", "2015-03-19 02:50:13.014945"], ["updated_at", "2015-03-19 02:50:13.014945"], ["token", "ig0XgWuSPbF9BkSk-1Y3YmPKsY0F_eJ47JB5qI6D8W8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:13.018669"], ["updated_at", "2015-03-19 02:50:13.018669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa39260a-cde2-11e4-8778-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa3a13ee-cde2-11e4-af31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa39260a-cde2-11e4-8778-705681abff85"], ["organization_id", "aa3a13ee-cde2-11e4-af31-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:13.022045"], ["updated_at", "2015-03-19 02:50:13.022045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'aa3a13ee-cde2-11e4-af31-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "aa3a13ee-cde2-11e4-af31-705681abff85"], ["created_at", "2015-03-19 02:50:13.030332"], ["updated_at", "2015-03-19 02:50:13.030332"], ["token", "sTOuu_5hIkwisGqiENZb8HLDZVHpYhfGjL8syNp6RGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/aa3be87c-cde2-11e4-b458-705681abff85" for 127.0.0.1 at 2015-03-18 19:50:13 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"aa3be87c-cde2-11e4-b458-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 02:50:13.035493' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ig0XgWuSPbF9BkSk-1Y3YmPKsY0F_eJ47JB5qI6D8W8"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 02:50:13.037551"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 02:50:13.039286"], ["id", "aa398f28-cde2-11e4-ac70-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "aa3be87c-cde2-11e4-b458-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aa39260a-cde2-11e4-8778-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "aa3a13ee-cde2-11e4-af31-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'aa39260a-cde2-11e4-8778-705681abff85' LIMIT 1 [["organization_id", "aa3a13ee-cde2-11e4-af31-705681abff85"]] Completed 200 OK in 13ms (Views: 3.0ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$NLv9aucMrvnc4fRZZYhUmuZTh46bnQUDh3nZww.oaVp0MxolQOaj."], ["created_at", "2015-03-19 02:50:13.055607"], ["updated_at", "2015-03-19 02:50:13.055607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 02:50:13.057230"], ["user_id", "aa3fb808-cde2-11e4-af1a-705681abff85"], ["created_at", "2015-03-19 02:50:13.058103"], ["updated_at", "2015-03-19 02:50:13.058103"], ["token", "o2zU2vEewv3Bkq_CyxXa1lOma9XIROIGEw88Ep7sTH8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 02:50:13.066784"], ["updated_at", "2015-03-19 02:50:13.066784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa3fb808-cde2-11e4-af1a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'aa417f44-cde2-11e4-b149-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa3fb808-cde2-11e4-af1a-705681abff85"], ["organization_id", "aa417f44-cde2-11e4-b149-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 02:50:13.071054"], ["updated_at", "2015-03-19 02:50:13.071054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'aa417f44-cde2-11e4-b149-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "aa417f44-cde2-11e4-b149-705681abff85"], ["created_at", "2015-03-19 02:50:13.075463"], ["updated_at", "2015-03-19 02:50:13.075463"], ["token", "ukfi6ErY7KrWp1XTCLVLow5wFVnkhj_EAhUUk3mBxWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 19:50:13 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (28.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$GvlZ.eRFZq8xX2nBC2doxeX329ehiWZDt2D0Y9xJu0.WqXjfLrUWu"], ["created_at", "2015-03-19 05:02:27.915037"], ["updated_at", "2015-03-19 05:02:27.915037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:27.954236"], ["user_id", "23cf329a-cdf5-11e4-92ce-705681abff85"], ["created_at", "2015-03-19 05:02:27.993535"], ["updated_at", "2015-03-19 05:02:27.993535"], ["token", "JtWWZowoIPld3bQJeZBZqon0ZQQUsuH9yXs7d_LV0y0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.002725"], ["updated_at", "2015-03-19 05:02:28.002725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (7.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23cf329a-cdf5-11e4-92ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '23d89880-cdf5-11e4-99ac-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23cf329a-cdf5-11e4-92ce-705681abff85"], ["organization_id", "23d89880-cdf5-11e4-99ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.020512"], ["updated_at", "2015-03-19 05:02:28.020512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '23d89880-cdf5-11e4-99ac-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "23d89880-cdf5-11e4-99ac-705681abff85"], ["created_at", "2015-03-19 05:02:28.033506"], ["updated_at", "2015-03-19 05:02:28.033506"], ["token", "A1McCwnhPSClq1PRN7QXkiN6B3N2gfpz9KdHXAGx4zk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/23dd4baa-cdf5-11e4-aedd-705681abff85" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"23dd4baa-cdf5-11e4-aedd-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.060420' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JtWWZowoIPld3bQJeZBZqon0ZQQUsuH9yXs7d_LV0y0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.067784"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.069391"], ["id", "23d740c0-cdf5-11e4-a16a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "23dd4baa-cdf5-11e4-aedd-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23cf329a-cdf5-11e4-92ce-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "23d89880-cdf5-11e4-99ac-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '23cf329a-cdf5-11e4-92ce-705681abff85' LIMIT 1 [["organization_id", "23d89880-cdf5-11e4-99ac-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "23dd4baa-cdf5-11e4-aedd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 31ms (ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ORjUBYDDtDdrlLh2FhoxqOSAxgqSI0rRFsME.wW6/nFt/8zkP9JZ2"], ["created_at", "2015-03-19 05:02:28.099060"], ["updated_at", "2015-03-19 05:02:28.099060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.100983"], ["user_id", "23e749ca-cdf5-11e4-ab05-705681abff85"], ["created_at", "2015-03-19 05:02:28.101810"], ["updated_at", "2015-03-19 05:02:28.101810"], ["token", "h3oHSlLdwxhEiz1CBWCoCmNbPtg8jD-jfH3FZv0lEsw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.105300"], ["updated_at", "2015-03-19 05:02:28.105300"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23e749ca-cdf5-11e4-ab05-705681abff85' AND "clubhouse_memberships"."organization_id" = '23e834fc-cdf5-11e4-a41c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23e749ca-cdf5-11e4-ab05-705681abff85"], ["organization_id", "23e834fc-cdf5-11e4-a41c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.109578"], ["updated_at", "2015-03-19 05:02:28.109578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '23e834fc-cdf5-11e4-a41c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "23e834fc-cdf5-11e4-a41c-705681abff85"], ["created_at", "2015-03-19 05:02:28.113186"], ["updated_at", "2015-03-19 05:02:28.113186"], ["token", "VAhjkYXgV3cVKRzRpKNz_KOjjCCg1KkU4G7gsWWmozA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$sF7vXp8alDbkoEsqElpmtO9Jp2V15NUW32cOvNZJx9KlmuD1tAHEK"], ["created_at", "2015-03-19 05:02:28.125648"], ["updated_at", "2015-03-19 05:02:28.125648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.127885"], ["user_id", "23eb57cc-cdf5-11e4-b33f-705681abff85"], ["created_at", "2015-03-19 05:02:28.128828"], ["updated_at", "2015-03-19 05:02:28.128828"], ["token", "p6NCGd_7-RjeVa1d1yc8Ju5wA7gUG6Jq-gsHYT86WB4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.133311"], ["updated_at", "2015-03-19 05:02:28.133311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23eb57cc-cdf5-11e4-b33f-705681abff85' AND "clubhouse_memberships"."organization_id" = '23ec7b8e-cdf5-11e4-91d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23eb57cc-cdf5-11e4-b33f-705681abff85"], ["organization_id", "23ec7b8e-cdf5-11e4-91d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.136724"], ["updated_at", "2015-03-19 05:02:28.136724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '23ec7b8e-cdf5-11e4-91d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "23ec7b8e-cdf5-11e4-91d9-705681abff85"], ["created_at", "2015-03-19 05:02:28.140127"], ["updated_at", "2015-03-19 05:02:28.140127"], ["token", "DcO5hJ99XiLIGFCrOXIZkKQYl6B7OT9efkeyfi86jSI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$5lBvpix5Ku/7xaS.0TdPMelhLajlrNRer871VKl4nQamdY859PLYi"], ["created_at", "2015-03-19 05:02:28.145143"], ["updated_at", "2015-03-19 05:02:28.145143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.148298"], ["updated_at", "2015-03-19 05:02:28.148298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23ee4a36-cdf5-11e4-93d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '23eec38a-cdf5-11e4-afdf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23ee4a36-cdf5-11e4-93d3-705681abff85"], ["organization_id", "23eec38a-cdf5-11e4-afdf-705681abff85"], ["created_at", "2015-03-19 05:02:28.151531"], ["updated_at", "2015-03-19 05:02:28.151531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.156790' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p6NCGd_7-RjeVa1d1yc8Ju5wA7gUG6Jq-gsHYT86WB4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.158544"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.160444"], ["id", "23ebe8fe-cdf5-11e4-9439-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23eb57cc-cdf5-11e4-b33f-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "23ec7b8e-cdf5-11e4-91d9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('23ec7b8e-cdf5-11e4-91d9-705681abff85') Completed 500 Internal Server Error in 19ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$dIx/JmwEeH1rkyYbrzTscOjxcoCgQOVF5cpZuJq7ZO31v0GjPfgo."], ["created_at", "2015-03-19 05:02:28.181095"], ["updated_at", "2015-03-19 05:02:28.181095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.182903"], ["user_id", "23f3cc36-cdf5-11e4-ad52-705681abff85"], ["created_at", "2015-03-19 05:02:28.183765"], ["updated_at", "2015-03-19 05:02:28.183765"], ["token", "54iTaFJoZAk0_w7tiJTBTEMWI_HfxiMKt3e3_GdEOmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.187265"], ["updated_at", "2015-03-19 05:02:28.187265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (15.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23f3cc36-cdf5-11e4-ad52-705681abff85' AND "clubhouse_memberships"."organization_id" = '23f4b5ba-cdf5-11e4-94c1-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23f3cc36-cdf5-11e4-ad52-705681abff85"], ["organization_id", "23f4b5ba-cdf5-11e4-94c1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.208867"], ["updated_at", "2015-03-19 05:02:28.208867"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '23f4b5ba-cdf5-11e4-94c1-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "23f4b5ba-cdf5-11e4-94c1-705681abff85"], ["created_at", "2015-03-19 05:02:28.218560"], ["updated_at", "2015-03-19 05:02:28.218560"], ["token", "68lNWnAsvWMGWM7cYTmMj9depOfTO8CLH6hqOU4_hQE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$Qk8HtULrFaTNesIL3sqcseFelXfbMVpVYQ0tYzssDYiOCN37Z0eFK"], ["created_at", "2015-03-19 05:02:28.226453"], ["updated_at", "2015-03-19 05:02:28.226453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.231805"], ["updated_at", "2015-03-19 05:02:28.231805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23fad008-cdf5-11e4-b126-705681abff85' AND "clubhouse_memberships"."organization_id" = '23fb9966-cdf5-11e4-a028-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23fad008-cdf5-11e4-b126-705681abff85"], ["organization_id", "23fb9966-cdf5-11e4-a028-705681abff85"], ["created_at", "2015-03-19 05:02:28.237418"], ["updated_at", "2015-03-19 05:02:28.237418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$K/X/CyyYlze2sIDcG5RAVOyp3D6J0kUMe/v2za/6cU5Zi8zeP3G5a"], ["created_at", "2015-03-19 05:02:28.254002"], ["updated_at", "2015-03-19 05:02:28.254002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.256506"], ["user_id", "23fef91c-cdf5-11e4-a219-705681abff85"], ["created_at", "2015-03-19 05:02:28.257706"], ["updated_at", "2015-03-19 05:02:28.257706"], ["token", "RU3sySwmWr58a4hx-FkfxeEHPKUggx9zugp2nssh77w"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.263411"], ["updated_at", "2015-03-19 05:02:28.263411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23fef91c-cdf5-11e4-a219-705681abff85' AND "clubhouse_memberships"."organization_id" = '24006b1c-cdf5-11e4-add3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23fef91c-cdf5-11e4-a219-705681abff85"], ["organization_id", "24006b1c-cdf5-11e4-add3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.268675"], ["updated_at", "2015-03-19 05:02:28.268675"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '24006b1c-cdf5-11e4-add3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "24006b1c-cdf5-11e4-add3-705681abff85"], ["created_at", "2015-03-19 05:02:28.275567"], ["updated_at", "2015-03-19 05:02:28.275567"], ["token", "WiA0Jlu_pKO69gBn-gfK0BX_2v6AQFyw9JEJFcq545I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$.d/eZu9nPaf.FsbaaLz9COxSYbKKqNtfaQV6d85LHlFEgEJj7rFdm"], ["created_at", "2015-03-19 05:02:28.282459"], ["updated_at", "2015-03-19 05:02:28.282459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.288447"], ["updated_at", "2015-03-19 05:02:28.288447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24036df8-cdf5-11e4-874c-705681abff85' AND "clubhouse_memberships"."organization_id" = '24042ac2-cdf5-11e4-b6f6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "24036df8-cdf5-11e4-874c-705681abff85"], ["organization_id", "24042ac2-cdf5-11e4-b6f6-705681abff85"], ["created_at", "2015-03-19 05:02:28.293034"], ["updated_at", "2015-03-19 05:02:28.293034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/24006b1c-cdf5-11e4-add3-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"24006b1c-cdf5-11e4-add3-705681abff85", "invitation"=>{}} Pollett::Session Load (9.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.301498' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RU3sySwmWr58a4hx-FkfxeEHPKUggx9zugp2nssh77w"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.316641"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.318736"], ["id", "23ff912e-cdf5-11e4-a3e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "24006b1c-cdf5-11e4-add3-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23fef91c-cdf5-11e4-a219-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "24006b1c-cdf5-11e4-add3-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('24006b1c-cdf5-11e4-add3-705681abff85') Completed 500 Internal Server Error in 26ms  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$OIVpkqUD9o30kgV/C4fuOuY2WUGzMWgAjTNirOTl8ihIYZl1uMe1q"], ["created_at", "2015-03-19 05:02:28.334654"], ["updated_at", "2015-03-19 05:02:28.334654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.336971"], ["user_id", "240b44a6-cdf5-11e4-b4ee-705681abff85"], ["created_at", "2015-03-19 05:02:28.337898"], ["updated_at", "2015-03-19 05:02:28.337898"], ["token", "O7m3xVwlJ3BUGhbLtuIBgXYM_Obs_k12HEJLOURxTYk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.342120"], ["updated_at", "2015-03-19 05:02:28.342120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '240b44a6-cdf5-11e4-b4ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '240c5b16-cdf5-11e4-ad64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "240b44a6-cdf5-11e4-b4ee-705681abff85"], ["organization_id", "240c5b16-cdf5-11e4-ad64-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.345749"], ["updated_at", "2015-03-19 05:02:28.345749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '240c5b16-cdf5-11e4-ad64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "240c5b16-cdf5-11e4-ad64-705681abff85"], ["created_at", "2015-03-19 05:02:28.349275"], ["updated_at", "2015-03-19 05:02:28.349275"], ["token", "u84rsxmQZTnMrsIkxf-rgCDNnXRa5BkSEg4MryYuEuY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$vBqe4tusDXTWSZMsGkg6IueTOnMfXP.l56HAeyrj7efve/rhJC6Lm"], ["created_at", "2015-03-19 05:02:28.354073"], ["updated_at", "2015-03-19 05:02:28.354073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.357209"], ["updated_at", "2015-03-19 05:02:28.357209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '240e2c16-cdf5-11e4-9dd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '240ea9d4-cdf5-11e4-a151-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "240e2c16-cdf5-11e4-9dd4-705681abff85"], ["organization_id", "240ea9d4-cdf5-11e4-a151-705681abff85"], ["created_at", "2015-03-19 05:02:28.360717"], ["updated_at", "2015-03-19 05:02:28.360717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$ZBEoYO90HSHUhndq.80kKu8TdPjkxOzIxB8jNlLUT4A5e2TaeNslC"], ["created_at", "2015-03-19 05:02:28.372820"], ["updated_at", "2015-03-19 05:02:28.372820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.374621"], ["user_id", "24110aee-cdf5-11e4-832f-705681abff85"], ["created_at", "2015-03-19 05:02:28.375498"], ["updated_at", "2015-03-19 05:02:28.375498"], ["token", "CrWWyirfkC702JO38cGypZmwLCRf24y02y3kjNxeYag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.380033"], ["updated_at", "2015-03-19 05:02:28.380033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24110aee-cdf5-11e4-832f-705681abff85' AND "clubhouse_memberships"."organization_id" = '241222f8-cdf5-11e4-9124-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24110aee-cdf5-11e4-832f-705681abff85"], ["organization_id", "241222f8-cdf5-11e4-9124-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.384234"], ["updated_at", "2015-03-19 05:02:28.384234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '241222f8-cdf5-11e4-9124-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "241222f8-cdf5-11e4-9124-705681abff85"], ["created_at", "2015-03-19 05:02:28.387915"], ["updated_at", "2015-03-19 05:02:28.387915"], ["token", "uBw30I1x0Bibv2sPqw1z2U_mGGeRb-aNh10u7mX4HQU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$/5Acj.74.nek.Cf0YnNA/e0dyqJesrPZpg5UvNL4JtFRMIhoCliZG"], ["created_at", "2015-03-19 05:02:28.399167"], ["updated_at", "2015-03-19 05:02:28.399167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.401124"], ["user_id", "24151594-cdf5-11e4-8a34-705681abff85"], ["created_at", "2015-03-19 05:02:28.402037"], ["updated_at", "2015-03-19 05:02:28.402037"], ["token", "46YrBWde6yGhiMoaGdy5BLOBUJaJVVmUfMi0_XF4_CQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.406247"], ["updated_at", "2015-03-19 05:02:28.406247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24151594-cdf5-11e4-8a34-705681abff85' AND "clubhouse_memberships"."organization_id" = '241623ee-cdf5-11e4-8316-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24151594-cdf5-11e4-8a34-705681abff85"], ["organization_id", "241623ee-cdf5-11e4-8316-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.410055"], ["updated_at", "2015-03-19 05:02:28.410055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '241623ee-cdf5-11e4-8316-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "241623ee-cdf5-11e4-8316-705681abff85"], ["created_at", "2015-03-19 05:02:28.413878"], ["updated_at", "2015-03-19 05:02:28.413878"], ["token", "NmNGi54fXUsNg0N3KymdsYsvMdZ2Keg9XOBvdTN8Fe0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.430967' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "46YrBWde6yGhiMoaGdy5BLOBUJaJVVmUfMi0_XF4_CQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.432528"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.433719"], ["id", "2415883a-cdf5-11e4-9115-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24151594-cdf5-11e4-8a34-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "241623ee-cdf5-11e4-8316-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24151594-cdf5-11e4-8a34-705681abff85' LIMIT 1 [["organization_id", "241623ee-cdf5-11e4-8316-705681abff85"]] Completed 500 Internal Server Error in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$sNEfod69/ve0rGWIClY4UemKMBVZThHd77v7h06HgDs.CDZfLW.gO"], ["created_at", "2015-03-19 05:02:28.456472"], ["updated_at", "2015-03-19 05:02:28.456472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.458212"], ["user_id", "241dcfc2-cdf5-11e4-b7c7-705681abff85"], ["created_at", "2015-03-19 05:02:28.459056"], ["updated_at", "2015-03-19 05:02:28.459056"], ["token", "AIawf41ZT8pK402st_D7WVkB1anE-hgq0RMCnWkMAIk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.462493"], ["updated_at", "2015-03-19 05:02:28.462493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '241dcfc2-cdf5-11e4-b7c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '241eb3c4-cdf5-11e4-bbe6-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "241dcfc2-cdf5-11e4-b7c7-705681abff85"], ["organization_id", "241eb3c4-cdf5-11e4-bbe6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.465746"], ["updated_at", "2015-03-19 05:02:28.465746"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '241eb3c4-cdf5-11e4-bbe6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "241eb3c4-cdf5-11e4-bbe6-705681abff85"], ["created_at", "2015-03-19 05:02:28.471408"], ["updated_at", "2015-03-19 05:02:28.471408"], ["token", "6SuplIkmaluHStnqF3QemXxrRO3tNaTFX5Yzki37gQ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.477402' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AIawf41ZT8pK402st_D7WVkB1anE-hgq0RMCnWkMAIk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.479870"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.481294"], ["id", "241e370a-cdf5-11e4-8884-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "241dcfc2-cdf5-11e4-b7c7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "241eb3c4-cdf5-11e4-bbe6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '241dcfc2-cdf5-11e4-b7c7-705681abff85' LIMIT 1 [["organization_id", "241eb3c4-cdf5-11e4-bbe6-705681abff85"]] Completed 500 Internal Server Error in 16ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$rfs676aQFFVn.kuK7qZol./KSJ9zXKV4g8/Iw5cbfR7WRMN97oaoS"], ["created_at", "2015-03-19 05:02:28.498686"], ["updated_at", "2015-03-19 05:02:28.498686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.500488"], ["user_id", "24243f1a-cdf5-11e4-a6b2-705681abff85"], ["created_at", "2015-03-19 05:02:28.501287"], ["updated_at", "2015-03-19 05:02:28.501287"], ["token", "qcYYUlk6bCfbgTBIMqnp4SttNMBceC44lfpHfj7TACs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.504962"], ["updated_at", "2015-03-19 05:02:28.504962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24243f1a-cdf5-11e4-a6b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '24252fce-cdf5-11e4-ad5c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24243f1a-cdf5-11e4-a6b2-705681abff85"], ["organization_id", "24252fce-cdf5-11e4-ad5c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.508315"], ["updated_at", "2015-03-19 05:02:28.508315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '24252fce-cdf5-11e4-ad5c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "24252fce-cdf5-11e4-ad5c-705681abff85"], ["created_at", "2015-03-19 05:02:28.512037"], ["updated_at", "2015-03-19 05:02:28.512037"], ["token", "UOZ-UK7K198dUZU03GQdW8zug0UBm8He8vd6oG3SdKo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.517653' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qcYYUlk6bCfbgTBIMqnp4SttNMBceC44lfpHfj7TACs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.519318"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.520361"], ["id", "2424a98c-cdf5-11e4-8588-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24243f1a-cdf5-11e4-a6b2-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "24252fce-cdf5-11e4-ad5c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24243f1a-cdf5-11e4-a6b2-705681abff85' LIMIT 1 [["organization_id", "24252fce-cdf5-11e4-ad5c-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$ezDKY5XI/sx4v.N5EPOVwuWh0vpfXGevHVvTsqVvSkFim.qh6E9b."], ["created_at", "2015-03-19 05:02:28.534283"], ["updated_at", "2015-03-19 05:02:28.534283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.536116"], ["user_id", "2429af36-cdf5-11e4-a2be-705681abff85"], ["created_at", "2015-03-19 05:02:28.536943"], ["updated_at", "2015-03-19 05:02:28.536943"], ["token", "49fKMer9DoqQggmbZl-UtJvfN1vKCwfe3O8LROGs64A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.540571"], ["updated_at", "2015-03-19 05:02:28.540571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2429af36-cdf5-11e4-a2be-705681abff85' AND "clubhouse_memberships"."organization_id" = '242a9ebe-cdf5-11e4-8842-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2429af36-cdf5-11e4-a2be-705681abff85"], ["organization_id", "242a9ebe-cdf5-11e4-8842-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.543896"], ["updated_at", "2015-03-19 05:02:28.543896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '242a9ebe-cdf5-11e4-8842-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "242a9ebe-cdf5-11e4-8842-705681abff85"], ["created_at", "2015-03-19 05:02:28.547262"], ["updated_at", "2015-03-19 05:02:28.547262"], ["token", "YeZBtQfb2RaF73nVR3lw0x7ivWdcmt_PNfgd0AvoX3I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/242ba89a-cdf5-11e4-a704-705681abff85" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"242ba89a-cdf5-11e4-a704-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.552891' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "49fKMer9DoqQggmbZl-UtJvfN1vKCwfe3O8LROGs64A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.554478"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.555484"], ["id", "242a1908-cdf5-11e4-a21c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "242ba89a-cdf5-11e4-a704-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2429af36-cdf5-11e4-a2be-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "242a9ebe-cdf5-11e4-8842-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2429af36-cdf5-11e4-a2be-705681abff85' LIMIT 1 [["organization_id", "242a9ebe-cdf5-11e4-8842-705681abff85"]] Completed 200 OK in 11ms (Views: 3.4ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$dhHiwkW2PjBfEcbuix292.ubU57NkVENNeEAl2GwqsWPG3vz9RYGS"], ["created_at", "2015-03-19 05:02:28.572573"], ["updated_at", "2015-03-19 05:02:28.572573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.574267"], ["user_id", "242f85dc-cdf5-11e4-af6d-705681abff85"], ["created_at", "2015-03-19 05:02:28.575077"], ["updated_at", "2015-03-19 05:02:28.575077"], ["token", "mpyf-Ur81Wvq8f-QUnw8LI9vPUnup1VmtH-jC_noSFs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.580530"], ["updated_at", "2015-03-19 05:02:28.580530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '242f85dc-cdf5-11e4-af6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2430d176-cdf5-11e4-a842-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "242f85dc-cdf5-11e4-af6d-705681abff85"], ["organization_id", "2430d176-cdf5-11e4-a842-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.586004"], ["updated_at", "2015-03-19 05:02:28.586004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '2430d176-cdf5-11e4-a842-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "2430d176-cdf5-11e4-a842-705681abff85"], ["created_at", "2015-03-19 05:02:28.590682"], ["updated_at", "2015-03-19 05:02:28.590682"], ["token", "WNK5pNuuoQ0IsDG3-3MPxc69wJum0Y1PYvYXXslFbps"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$sa5AMOdCeVXcX13s7MJhpuuLueXZcpaUXRVhFxK4LDQ69dHK0rrTi"], ["created_at", "2015-03-19 05:02:28.606387"], ["updated_at", "2015-03-19 05:02:28.606387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.608336"], ["user_id", "2434afc6-cdf5-11e4-aa99-705681abff85"], ["created_at", "2015-03-19 05:02:28.609135"], ["updated_at", "2015-03-19 05:02:28.609135"], ["token", "B4D0itVnZ1SaxlY4KRl_ylcfzjmdN9dSaWPl2a4dE88"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.612839"], ["updated_at", "2015-03-19 05:02:28.612839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2434afc6-cdf5-11e4-aa99-705681abff85' AND "clubhouse_memberships"."organization_id" = '2435a5fc-cdf5-11e4-a306-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2434afc6-cdf5-11e4-aa99-705681abff85"], ["organization_id", "2435a5fc-cdf5-11e4-a306-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.616069"], ["updated_at", "2015-03-19 05:02:28.616069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '2435a5fc-cdf5-11e4-a306-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "2435a5fc-cdf5-11e4-a306-705681abff85"], ["created_at", "2015-03-19 05:02:28.619439"], ["updated_at", "2015-03-19 05:02:28.619439"], ["token", "-pd_MqbGgCLKrvs_1yme-fQQi6-7HAmVlJMlr2hWW5U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/2436b53c-cdf5-11e4-acc3-705681abff85" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"2436b53c-cdf5-11e4-acc3-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.624291' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "B4D0itVnZ1SaxlY4KRl_ylcfzjmdN9dSaWPl2a4dE88"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.626152"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.627319"], ["id", "24351d1c-cdf5-11e4-b58a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2436b53c-cdf5-11e4-acc3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2434afc6-cdf5-11e4-aa99-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2435a5fc-cdf5-11e4-a306-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2434afc6-cdf5-11e4-aa99-705681abff85' LIMIT 1 [["organization_id", "2435a5fc-cdf5-11e4-a306-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$GzGRb9pvqBqfIBtPi.85TubfnSolmT.eqpDw5vTFL8DBLVPWDiG.."], ["created_at", "2015-03-19 05:02:28.640387"], ["updated_at", "2015-03-19 05:02:28.640387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.642027"], ["user_id", "2439ddb6-cdf5-11e4-8b93-705681abff85"], ["created_at", "2015-03-19 05:02:28.642915"], ["updated_at", "2015-03-19 05:02:28.642915"], ["token", "SiOqPVVrwwyDsmE5t5kV7tv8qcM86fteH-jiw7J9GDg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.646628"], ["updated_at", "2015-03-19 05:02:28.646628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2439ddb6-cdf5-11e4-8b93-705681abff85' AND "clubhouse_memberships"."organization_id" = '243ae21a-cdf5-11e4-b05a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2439ddb6-cdf5-11e4-8b93-705681abff85"], ["organization_id", "243ae21a-cdf5-11e4-b05a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.650826"], ["updated_at", "2015-03-19 05:02:28.650826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '243ae21a-cdf5-11e4-b05a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "243ae21a-cdf5-11e4-b05a-705681abff85"], ["created_at", "2015-03-19 05:02:28.655209"], ["updated_at", "2015-03-19 05:02:28.655209"], ["token", "ijtolxjKX1VryFBxjDOH3CSoXXueUQ57ng7mxuYm1Kk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Q1Z/peS2LS/qF36ZnnssGOE9CMJbqoyyBHpS0BI5mLPWvpDyD74/a"], ["created_at", "2015-03-19 05:02:28.670873"], ["updated_at", "2015-03-19 05:02:28.670873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.673020"], ["user_id", "243e89e2-cdf5-11e4-bd6e-705681abff85"], ["created_at", "2015-03-19 05:02:28.673869"], ["updated_at", "2015-03-19 05:02:28.673869"], ["token", "TzRmxE_EU2D9-9DvGyhgbWyE3iW7EZ6Gsjt_4RxtarM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.677435"], ["updated_at", "2015-03-19 05:02:28.677435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '243e89e2-cdf5-11e4-bd6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '243f9292-cdf5-11e4-a690-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "243e89e2-cdf5-11e4-bd6e-705681abff85"], ["organization_id", "243f9292-cdf5-11e4-a690-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.681588"], ["updated_at", "2015-03-19 05:02:28.681588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '243f9292-cdf5-11e4-a690-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "243f9292-cdf5-11e4-a690-705681abff85"], ["created_at", "2015-03-19 05:02:28.685082"], ["updated_at", "2015-03-19 05:02:28.685082"], ["token", "lKzT5qGhDX4pL7z1La6aNYOy_D8njpxmYwoY8B-yABA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$6jlNDYReMcRRGLbFYlYzw.Tpfvwk/g/QKNlCd4YiGbq0JFQ3D4sY6"], ["created_at", "2015-03-19 05:02:28.695558"], ["updated_at", "2015-03-19 05:02:28.695558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.699435"], ["user_id", "24424abe-cdf5-11e4-bd2c-705681abff85"], ["created_at", "2015-03-19 05:02:28.700271"], ["updated_at", "2015-03-19 05:02:28.700271"], ["token", "bwtbMHjDenoMoYWMgZpcExQWoYA2YxFE7RZzhFMRYiw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.704522"], ["updated_at", "2015-03-19 05:02:28.704522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24424abe-cdf5-11e4-bd2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '2443a4f4-cdf5-11e4-b02f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24424abe-cdf5-11e4-bd2c-705681abff85"], ["organization_id", "2443a4f4-cdf5-11e4-b02f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.707947"], ["updated_at", "2015-03-19 05:02:28.707947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '2443a4f4-cdf5-11e4-b02f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "2443a4f4-cdf5-11e4-b02f-705681abff85"], ["created_at", "2015-03-19 05:02:28.712320"], ["updated_at", "2015-03-19 05:02:28.712320"], ["token", "fnYkhgfDlChWLp3tu_VsSdyV-l61wvjM7fjGXxM3kPY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2443a4f4-cdf5-11e4-b02f-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"2443a4f4-cdf5-11e4-b02f-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.718701' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bwtbMHjDenoMoYWMgZpcExQWoYA2YxFE7RZzhFMRYiw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.720452"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.721494"], ["id", "24431728-cdf5-11e4-a0a1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2443a4f4-cdf5-11e4-b02f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24424abe-cdf5-11e4-bd2c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2443a4f4-cdf5-11e4-b02f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24424abe-cdf5-11e4-bd2c-705681abff85' LIMIT 1 [["organization_id", "2443a4f4-cdf5-11e4-b02f-705681abff85"]] Completed 500 Internal Server Error in 13ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$nV25pt.kGN2RlnJ7nUpgku9qwP4x7iTFYvlbQD6P9aBqkPmfFK80C"], ["created_at", "2015-03-19 05:02:28.744620"], ["updated_at", "2015-03-19 05:02:28.744620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.746478"], ["user_id", "2449cb18-cdf5-11e4-a420-705681abff85"], ["created_at", "2015-03-19 05:02:28.747319"], ["updated_at", "2015-03-19 05:02:28.747319"], ["token", "ZXuMI5_kW9kmHuEE0mX1ySUruBkyFKHTPPnhsZKy_Bc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.751128"], ["updated_at", "2015-03-19 05:02:28.751128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2449cb18-cdf5-11e4-a420-705681abff85' AND "clubhouse_memberships"."organization_id" = '244abf82-cdf5-11e4-bf77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2449cb18-cdf5-11e4-a420-705681abff85"], ["organization_id", "244abf82-cdf5-11e4-bf77-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.755348"], ["updated_at", "2015-03-19 05:02:28.755348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '244abf82-cdf5-11e4-bf77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "244abf82-cdf5-11e4-bf77-705681abff85"], ["created_at", "2015-03-19 05:02:28.759151"], ["updated_at", "2015-03-19 05:02:28.759151"], ["token", "P2Lzv4v-ckBdNTN-Gz0BgBF4WLqP45U8kWm_EQxosx4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/244abf82-cdf5-11e4-bf77-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"244abf82-cdf5-11e4-bf77-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.765224' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZXuMI5_kW9kmHuEE0mX1ySUruBkyFKHTPPnhsZKy_Bc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.767051"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.768143"], ["id", "244a3e18-cdf5-11e4-a283-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "244abf82-cdf5-11e4-bf77-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2449cb18-cdf5-11e4-a420-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "244abf82-cdf5-11e4-bf77-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2449cb18-cdf5-11e4-a420-705681abff85' LIMIT 1 [["organization_id", "244abf82-cdf5-11e4-bf77-705681abff85"]] Completed 500 Internal Server Error in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$NtMbScFN7aZNAmRQJGMrveXZzXjp2Dbue9B9IZqrWzfCrzfFnfRY2"], ["created_at", "2015-03-19 05:02:28.791170"], ["updated_at", "2015-03-19 05:02:28.791170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:02:28.792961"], ["user_id", "2450def8-cdf5-11e4-8da9-705681abff85"], ["created_at", "2015-03-19 05:02:28.793845"], ["updated_at", "2015-03-19 05:02:28.793845"], ["token", "PbFzhmYCFJjalkEDB7pL0Giey870rxUg_wAcu1Ym0EQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:02:28.797668"], ["updated_at", "2015-03-19 05:02:28.797668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2450def8-cdf5-11e4-8da9-705681abff85' AND "clubhouse_memberships"."organization_id" = '2451d984-cdf5-11e4-ba96-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2450def8-cdf5-11e4-8da9-705681abff85"], ["organization_id", "2451d984-cdf5-11e4-ba96-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:02:28.801199"], ["updated_at", "2015-03-19 05:02:28.801199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '2451d984-cdf5-11e4-ba96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "2451d984-cdf5-11e4-ba96-705681abff85"], ["created_at", "2015-03-19 05:02:28.805255"], ["updated_at", "2015-03-19 05:02:28.805255"], ["token", "enj0Jq7qPG5eFCzv4QFJA5JPp9zO1AWUE84pd6sQJTU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2451d984-cdf5-11e4-ba96-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:02:28 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"2451d984-cdf5-11e4-ba96-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:02:28.810840' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PbFzhmYCFJjalkEDB7pL0Giey870rxUg_wAcu1Ym0EQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:02:28.812553"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:02:28.813639"], ["id", "245155c2-cdf5-11e4-936a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2451d984-cdf5-11e4-ba96-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2450def8-cdf5-11e4-8da9-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2451d984-cdf5-11e4-ba96-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2450def8-cdf5-11e4-8da9-705681abff85' LIMIT 1 [["organization_id", "2451d984-cdf5-11e4-ba96-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (21.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$HhxGyTbCN04/IzDRZ2kEFet5rWjVzJVdemAu2IIbS6CgMCTG3ESg6"], ["created_at", "2015-03-19 05:03:08.455979"], ["updated_at", "2015-03-19 05:03:08.455979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:08.487647"], ["user_id", "3bf8c75a-cdf5-11e4-a385-705681abff85"], ["created_at", "2015-03-19 05:03:08.496400"], ["updated_at", "2015-03-19 05:03:08.496400"], ["token", "6Yb2WZRapuP8wmKBVED3RDZHH6qKCbNLhXJSPdJ2zIo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:08.506328"], ["updated_at", "2015-03-19 05:03:08.506328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bf8c75a-cdf5-11e4-a385-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bfcf3ca-cdf5-11e4-aca8-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bf8c75a-cdf5-11e4-a385-705681abff85"], ["organization_id", "3bfcf3ca-cdf5-11e4-aca8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:08.517942"], ["updated_at", "2015-03-19 05:03:08.517942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '3bfcf3ca-cdf5-11e4-aca8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "3bfcf3ca-cdf5-11e4-aca8-705681abff85"], ["created_at", "2015-03-19 05:03:08.560361"], ["updated_at", "2015-03-19 05:03:08.560361"], ["token", "fCRbFWgrUmbt5O6ytCJ_B3_E-PXSIfn2kR1u8Gj8a90"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:03:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$rD4REkFEfwr7SmpOVEioI.fNFomwjbGs0zjwTfAbkz0G64SFM6cYi"], ["created_at", "2015-03-19 05:03:08.598449"], ["updated_at", "2015-03-19 05:03:08.598449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:08.600154"], ["user_id", "3c0afa92-cdf5-11e4-b95c-705681abff85"], ["created_at", "2015-03-19 05:03:08.600965"], ["updated_at", "2015-03-19 05:03:08.600965"], ["token", "CzPioWLnW611V85Rp3ymOF1VCMwo0j2iGPEgGTbFLrE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:08.604484"], ["updated_at", "2015-03-19 05:03:08.604484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c0afa92-cdf5-11e4-b95c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c0be40c-cdf5-11e4-80bd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c0afa92-cdf5-11e4-b95c-705681abff85"], ["organization_id", "3c0be40c-cdf5-11e4-80bd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:08.607886"], ["updated_at", "2015-03-19 05:03:08.607886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '3c0be40c-cdf5-11e4-80bd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "3c0be40c-cdf5-11e4-80bd-705681abff85"], ["created_at", "2015-03-19 05:03:08.611605"], ["updated_at", "2015-03-19 05:03:08.611605"], ["token", "Hlb0CeMjzs6m_A5eibJIQOfW_72iLFW3cHYSztH6eGk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:03:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:08.616418' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CzPioWLnW611V85Rp3ymOF1VCMwo0j2iGPEgGTbFLrE"]]  (0.3ms) SAVEPOINT active_record_1 SQL (6.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:08.623373"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:08.624896"], ["id", "3c0b62a2-cdf5-11e4-8c75-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c0afa92-cdf5-11e4-b95c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c0be40c-cdf5-11e4-80bd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c0afa92-cdf5-11e4-b95c-705681abff85' LIMIT 1 [["organization_id", "3c0be40c-cdf5-11e4-80bd-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3c0be40c-cdf5-11e4-80bd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3c0be40c-cdf5-11e4-80bd-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:03:08.657330"], ["updated_at", "2015-03-19 05:03:08.657330"], ["token", "DmMGMHt3cHOoVav1_R_QPWsS6rEhhNtRfaY-0j3-L6Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8f54e013-5024-4e60-b927-6962c61053c8) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3c1404a2-cdf5-11e4-aa12-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3c1404a2-cdf5-11e4-aa12-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8f54e013-5024-4e60-b927-6962c61053c8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3c1404a2-cdf5-11e4-aa12-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [8f54e013-5024-4e60-b927-6962c61053c8] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c0be40c-cdf5-11e4-80bd-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8f54e013-5024-4e60-b927-6962c61053c8] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [8f54e013-5024-4e60-b927-6962c61053c8] Clubhouse::Mailer#invitation: processed outbound mail in 229.6ms [ActiveJob] [ActionMailer::DeliveryJob] [8f54e013-5024-4e60-b927-6962c61053c8] Sent mail to email@example.com (8.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [8f54e013-5024-4e60-b927-6962c61053c8] Date: Wed, 18 Mar 2015 22:03:08 -0700 From: from@example.com To: email@example.com Message-ID: <550a588ce1fc4_e3103fe8b2065bf08012@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/DmMGMHt3cHOoVav1_R_QPWsS6rEhhNtRfaY-0j3-L6Y?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [8f54e013-5024-4e60-b927-6962c61053c8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 238.15ms Completed 201 Created in 316ms (Views: 3.0ms | ActiveRecord: 9.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$8eDZTBDX2Jkkje4WlCqTxO0AWzJA0itt2IK7t.EhQWruMZpc1OUd2"], ["created_at", "2015-03-19 05:03:08.941837"], ["updated_at", "2015-03-19 05:03:08.941837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:08.943710"], ["user_id", "3c3f64b2-cdf5-11e4-8fb8-705681abff85"], ["created_at", "2015-03-19 05:03:08.944595"], ["updated_at", "2015-03-19 05:03:08.944595"], ["token", "AGCNOhcEnvy7aZnhcm5RaViDlskXcQJ4EPOUYP8fpyc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:08.948622"], ["updated_at", "2015-03-19 05:03:08.948622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c3f64b2-cdf5-11e4-8fb8-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c4068bc-cdf5-11e4-b3c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c3f64b2-cdf5-11e4-8fb8-705681abff85"], ["organization_id", "3c4068bc-cdf5-11e4-b3c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:08.952710"], ["updated_at", "2015-03-19 05:03:08.952710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '3c4068bc-cdf5-11e4-b3c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "3c4068bc-cdf5-11e4-b3c3-705681abff85"], ["created_at", "2015-03-19 05:03:08.956350"], ["updated_at", "2015-03-19 05:03:08.956350"], ["token", "1zM36A5JjdcjAvioBOKIFmqu6lrZiUyJdER_CWRCaAw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:03:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:08.961170' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AGCNOhcEnvy7aZnhcm5RaViDlskXcQJ4EPOUYP8fpyc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:08.963003"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:08.964507"], ["id", "3c3fdbb8-cdf5-11e4-968e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c3f64b2-cdf5-11e4-8fb8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c4068bc-cdf5-11e4-b3c3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c3f64b2-cdf5-11e4-8fb8-705681abff85' LIMIT 1 [["organization_id", "3c4068bc-cdf5-11e4-b3c3-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3c4068bc-cdf5-11e4-b3c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3c4068bc-cdf5-11e4-b3c3-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:03:08.975816"], ["updated_at", "2015-03-19 05:03:08.975816"], ["token", "PuHp1MeeMjIkdsuAG5-aFnYYGzYwdO-WsioFjlDBI0Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b668d49c-af0e-4df2-86a0-c902ca2cf6df) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3c44941e-cdf5-11e4-9d44-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3c44941e-cdf5-11e4-9d44-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b668d49c-af0e-4df2-86a0-c902ca2cf6df] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3c44941e-cdf5-11e4-9d44-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [b668d49c-af0e-4df2-86a0-c902ca2cf6df] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c4068bc-cdf5-11e4-b3c3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b668d49c-af0e-4df2-86a0-c902ca2cf6df] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [b668d49c-af0e-4df2-86a0-c902ca2cf6df] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [b668d49c-af0e-4df2-86a0-c902ca2cf6df] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [b668d49c-af0e-4df2-86a0-c902ca2cf6df] Date: Wed, 18 Mar 2015 22:03:08 -0700 From: from@example.com To: email@example.com Message-ID: <550a588ceff5c_e3103fe8b2065bf081b3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/PuHp1MeeMjIkdsuAG5-aFnYYGzYwdO-WsioFjlDBI0Y?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b668d49c-af0e-4df2-86a0-c902ca2cf6df] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.22ms Completed 201 Created in 24ms (Views: 0.9ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$c2SiDNjt9zyJMMAMe4BXqeCYcMl.lfDKMz4hb7.Ca7ofsyfUOnJjC"], ["created_at", "2015-03-19 05:03:08.995522"], ["updated_at", "2015-03-19 05:03:08.995522"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:08.998016"], ["user_id", "3c47993e-cdf5-11e4-ba8c-705681abff85"], ["created_at", "2015-03-19 05:03:08.998810"], ["updated_at", "2015-03-19 05:03:08.998810"], ["token", "o4bk1CNbI1_3KdYw3tolQ82bcj2PPRqM80HYliUJkrw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.002571"], ["updated_at", "2015-03-19 05:03:09.002571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c47993e-cdf5-11e4-ba8c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c48a20c-cdf5-11e4-9744-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c47993e-cdf5-11e4-ba8c-705681abff85"], ["organization_id", "3c48a20c-cdf5-11e4-9744-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.007428"], ["updated_at", "2015-03-19 05:03:09.007428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '3c48a20c-cdf5-11e4-9744-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "3c48a20c-cdf5-11e4-9744-705681abff85"], ["created_at", "2015-03-19 05:03:09.011097"], ["updated_at", "2015-03-19 05:03:09.011097"], ["token", "x8sTaVK-7CVc1qzlG-8gN34K0IpETMGVc2Koq_Y0leE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:09.017879' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o4bk1CNbI1_3KdYw3tolQ82bcj2PPRqM80HYliUJkrw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:09.019327"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:09.020283"], ["id", "3c4817c4-cdf5-11e4-beaa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c47993e-cdf5-11e4-ba8c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c48a20c-cdf5-11e4-9744-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c47993e-cdf5-11e4-ba8c-705681abff85' LIMIT 1 [["organization_id", "3c48a20c-cdf5-11e4-9744-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '3c48a20c-cdf5-11e4-9744-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$3K6ohg2dBYJ520HzqZzNoerQXPEywPO/ur3fOurGsXUWNgwXs33tO"], ["created_at", "2015-03-19 05:03:09.035197"], ["updated_at", "2015-03-19 05:03:09.035197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.036784"], ["user_id", "3c4d9e6a-cdf5-11e4-9316-705681abff85"], ["created_at", "2015-03-19 05:03:09.037565"], ["updated_at", "2015-03-19 05:03:09.037565"], ["token", "UIEonK4XJk_Ke8_bKHp8NFL72_gy2AKRknIUB0LJYKw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.041083"], ["updated_at", "2015-03-19 05:03:09.041083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c4d9e6a-cdf5-11e4-9316-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c4e82c6-cdf5-11e4-b002-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c4d9e6a-cdf5-11e4-9316-705681abff85"], ["organization_id", "3c4e82c6-cdf5-11e4-b002-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.044380"], ["updated_at", "2015-03-19 05:03:09.044380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '3c4e82c6-cdf5-11e4-b002-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "3c4e82c6-cdf5-11e4-b002-705681abff85"], ["created_at", "2015-03-19 05:03:09.048369"], ["updated_at", "2015-03-19 05:03:09.048369"], ["token", "zhwDcy8RFGgRN2S_hdaswXQmRMVTtibZQvVKtugHaeA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$oPPFsgn/zhrUH7ArxjwsN.pEV2jgOr9Gr2GVLcybxEPrhtIWhcAo2"], ["created_at", "2015-03-19 05:03:09.059407"], ["updated_at", "2015-03-19 05:03:09.059407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.061108"], ["user_id", "3c51532a-cdf5-11e4-ab13-705681abff85"], ["created_at", "2015-03-19 05:03:09.061881"], ["updated_at", "2015-03-19 05:03:09.061881"], ["token", "BWfZIns5igN4WKCYno95Wmg5qpYmum2KWU3xuow6uX0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.065855"], ["updated_at", "2015-03-19 05:03:09.065855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c51532a-cdf5-11e4-ab13-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c525126-cdf5-11e4-9cb7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c51532a-cdf5-11e4-ab13-705681abff85"], ["organization_id", "3c525126-cdf5-11e4-9cb7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.069563"], ["updated_at", "2015-03-19 05:03:09.069563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '3c525126-cdf5-11e4-9cb7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "3c525126-cdf5-11e4-9cb7-705681abff85"], ["created_at", "2015-03-19 05:03:09.073047"], ["updated_at", "2015-03-19 05:03:09.073047"], ["token", "qk7LF5jtSU6bcl4a4umzrD0ag2m_rrMSXIXNVsScNi4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/3c53676e-cdf5-11e4-adf8-705681abff85" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"3c53676e-cdf5-11e4-adf8-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:09.077545' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BWfZIns5igN4WKCYno95Wmg5qpYmum2KWU3xuow6uX0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:09.078944"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:09.079883"], ["id", "3c51b4f0-cdf5-11e4-bb58-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3c53676e-cdf5-11e4-adf8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c51532a-cdf5-11e4-ab13-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c525126-cdf5-11e4-9cb7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c51532a-cdf5-11e4-ab13-705681abff85' LIMIT 1 [["organization_id", "3c525126-cdf5-11e4-9cb7-705681abff85"]] Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$OG8pQiij41hhsNctHWU/yu9bh8mTA0GIyBjVotrCi7Zb6mjqxMbvO"], ["created_at", "2015-03-19 05:03:09.091494"], ["updated_at", "2015-03-19 05:03:09.091494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.093041"], ["user_id", "3c5633ae-cdf5-11e4-a83b-705681abff85"], ["created_at", "2015-03-19 05:03:09.093794"], ["updated_at", "2015-03-19 05:03:09.093794"], ["token", "PNh2C8blZv883RHkIUMFETnjKRQsCe9hTiy3HSdF__E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.097203"], ["updated_at", "2015-03-19 05:03:09.097203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c5633ae-cdf5-11e4-a83b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c571116-cdf5-11e4-90d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c5633ae-cdf5-11e4-a83b-705681abff85"], ["organization_id", "3c571116-cdf5-11e4-90d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.100560"], ["updated_at", "2015-03-19 05:03:09.100560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '3c571116-cdf5-11e4-90d6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "3c571116-cdf5-11e4-90d6-705681abff85"], ["created_at", "2015-03-19 05:03:09.104434"], ["updated_at", "2015-03-19 05:03:09.104434"], ["token", "HPfD69131qQQzsXn2qv1OigG-sk4fIMqNFwlAXQGEaQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$i8EE8lVcZAvhLKMPGZwwz.ruNfCs1tJRwiYbrZVGlofo9t2YRbJpG"], ["created_at", "2015-03-19 05:03:09.110201"], ["updated_at", "2015-03-19 05:03:09.110201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.113253"], ["updated_at", "2015-03-19 05:03:09.113253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c590de0-cdf5-11e4-881b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c598360-cdf5-11e4-b5d7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c590de0-cdf5-11e4-881b-705681abff85"], ["organization_id", "3c598360-cdf5-11e4-b5d7-705681abff85"], ["created_at", "2015-03-19 05:03:09.116290"], ["updated_at", "2015-03-19 05:03:09.116290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$m4E.wbElUKqBJCbYa/eYIutddX.e/tTb.dwaAwWkjsPLxYpQsAv3q"], ["created_at", "2015-03-19 05:03:09.126700"], ["updated_at", "2015-03-19 05:03:09.126700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.128608"], ["user_id", "3c5b9768-cdf5-11e4-a86a-705681abff85"], ["created_at", "2015-03-19 05:03:09.129987"], ["updated_at", "2015-03-19 05:03:09.129987"], ["token", "6lr2YY4Iyijc1ZSC34rbBcB4j6Rht7Bh99GM_n1tIFQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.133903"], ["updated_at", "2015-03-19 05:03:09.133903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c5b9768-cdf5-11e4-a86a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c5caafe-cdf5-11e4-963f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c5b9768-cdf5-11e4-a86a-705681abff85"], ["organization_id", "3c5caafe-cdf5-11e4-963f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.137059"], ["updated_at", "2015-03-19 05:03:09.137059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '3c5caafe-cdf5-11e4-963f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "3c5caafe-cdf5-11e4-963f-705681abff85"], ["created_at", "2015-03-19 05:03:09.141422"], ["updated_at", "2015-03-19 05:03:09.141422"], ["token", "2bPo8nldhWcjMxh-nA1TwJgDtzhfTx28ENwyRE_7MTk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$MaVOE6zaa6WIquEwHiR05ueU9pw/.iWYOoS.AYABzojg/3GdfpvoW"], ["created_at", "2015-03-19 05:03:09.145822"], ["updated_at", "2015-03-19 05:03:09.145822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.148945"], ["updated_at", "2015-03-19 05:03:09.148945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c5e7c80-cdf5-11e4-b1b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c5efcaa-cdf5-11e4-8157-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c5e7c80-cdf5-11e4-b1b8-705681abff85"], ["organization_id", "3c5efcaa-cdf5-11e4-8157-705681abff85"], ["created_at", "2015-03-19 05:03:09.152949"], ["updated_at", "2015-03-19 05:03:09.152949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/3c5caafe-cdf5-11e4-963f-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"3c5caafe-cdf5-11e4-963f-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:09.157631' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6lr2YY4Iyijc1ZSC34rbBcB4j6Rht7Bh99GM_n1tIFQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:09.159454"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:09.160509"], ["id", "3c5c2796-cdf5-11e4-acea-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3c5caafe-cdf5-11e4-963f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c5b9768-cdf5-11e4-a86a-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "3c5caafe-cdf5-11e4-963f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('3c5caafe-cdf5-11e4-963f-705681abff85') Completed 500 Internal Server Error in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Vysy5l.X9ldQjOb2XtdzoO6NMoGz.UPR.5qoPzjXDTUsitMKQ074G"], ["created_at", "2015-03-19 05:03:09.176050"], ["updated_at", "2015-03-19 05:03:09.176050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.177724"], ["user_id", "3c631dee-cdf5-11e4-8abe-705681abff85"], ["created_at", "2015-03-19 05:03:09.178513"], ["updated_at", "2015-03-19 05:03:09.178513"], ["token", "LWWDhY0uggJnHUPZaq2R-DDncnqao7hNVu67ubmSFGE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.181811"], ["updated_at", "2015-03-19 05:03:09.181811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c631dee-cdf5-11e4-8abe-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c63f93a-cdf5-11e4-9de1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c631dee-cdf5-11e4-8abe-705681abff85"], ["organization_id", "3c63f93a-cdf5-11e4-9de1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.185053"], ["updated_at", "2015-03-19 05:03:09.185053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '3c63f93a-cdf5-11e4-9de1-705681abff85') LIMIT 1 SQL (21.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "3c63f93a-cdf5-11e4-9de1-705681abff85"], ["created_at", "2015-03-19 05:03:09.188284"], ["updated_at", "2015-03-19 05:03:09.188284"], ["token", "bmoP-Ev2oWqJtNcvJ0ahM9va6ezEwijQ8fLgPv6MaEU"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Vi35ON6JR3UwMhRM31nULuuti/VsvmBMYNflqValuGwjfsKn0Pl/G"], ["created_at", "2015-03-19 05:03:09.231242"], ["updated_at", "2015-03-19 05:03:09.231242"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.234396"], ["user_id", "3c6ba1d0-cdf5-11e4-888f-705681abff85"], ["created_at", "2015-03-19 05:03:09.235791"], ["updated_at", "2015-03-19 05:03:09.235791"], ["token", "Xury4lyjOuk55r5oBEI9MeoAdNepZAC-Q-c9LQuDwtk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.241301"], ["updated_at", "2015-03-19 05:03:09.241301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c6ba1d0-cdf5-11e4-888f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c6d3c20-cdf5-11e4-80a9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c6ba1d0-cdf5-11e4-888f-705681abff85"], ["organization_id", "3c6d3c20-cdf5-11e4-80a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.247710"], ["updated_at", "2015-03-19 05:03:09.247710"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '3c6d3c20-cdf5-11e4-80a9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "3c6d3c20-cdf5-11e4-80a9-705681abff85"], ["created_at", "2015-03-19 05:03:09.253628"], ["updated_at", "2015-03-19 05:03:09.253628"], ["token", "NrNNyrr3yolZnGNNEY9cuVAi-8GIYFz6k0XU6bB7KhM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/3c6f0a6e-cdf5-11e4-ab08-705681abff85" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"3c6f0a6e-cdf5-11e4-ab08-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:09.263092' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Xury4lyjOuk55r5oBEI9MeoAdNepZAC-Q-c9LQuDwtk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:09.265061"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:09.267326"], ["id", "3c6c57d8-cdf5-11e4-8d6e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3c6f0a6e-cdf5-11e4-ab08-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c6ba1d0-cdf5-11e4-888f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c6d3c20-cdf5-11e4-80a9-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c6ba1d0-cdf5-11e4-888f-705681abff85' LIMIT 1 [["organization_id", "3c6d3c20-cdf5-11e4-80a9-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."id" != '3c6f0a6e-cdf5-11e4-ab08-705681abff85' AND "clubhouse_invitations"."organization_id" = '3c6d3c20-cdf5-11e4-80a9-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:03:09.279766"], ["id", "3c6f0a6e-cdf5-11e4-ab08-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 0.9ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$AgN5GZmLrsjJOpGOZbwUXOey7bp4ACSUCnTGWCOdGEmlmH1.n6Nci"], ["created_at", "2015-03-19 05:03:09.289364"], ["updated_at", "2015-03-19 05:03:09.289364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.291411"], ["user_id", "3c746a68-cdf5-11e4-b3ee-705681abff85"], ["created_at", "2015-03-19 05:03:09.292727"], ["updated_at", "2015-03-19 05:03:09.292727"], ["token", "2T0X9Ag-05t7kGdk5C5KknWUyvuYnrIVhv_laHWUAg4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.296906"], ["updated_at", "2015-03-19 05:03:09.296906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c746a68-cdf5-11e4-b3ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c759334-cdf5-11e4-b722-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c746a68-cdf5-11e4-b3ee-705681abff85"], ["organization_id", "3c759334-cdf5-11e4-b722-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.301266"], ["updated_at", "2015-03-19 05:03:09.301266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '3c759334-cdf5-11e4-b722-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "3c759334-cdf5-11e4-b722-705681abff85"], ["created_at", "2015-03-19 05:03:09.305844"], ["updated_at", "2015-03-19 05:03:09.305844"], ["token", "cRjJwSXD9Zm4G1SkSARasP8IFjzYVsI5q4xkdqgtId8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Bvuqdc5azmbGvYw01XmrqubssVeZ4BDgP3GIDPxvkSnFI/qSPeSU."], ["created_at", "2015-03-19 05:03:09.315617"], ["updated_at", "2015-03-19 05:03:09.315617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.317357"], ["user_id", "3c7869f6-cdf5-11e4-bb2a-705681abff85"], ["created_at", "2015-03-19 05:03:09.318111"], ["updated_at", "2015-03-19 05:03:09.318111"], ["token", "ahE5EH7QxChfnbZJ8IGfPBkEs2qHzc8nZqFlM1raN7o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.321886"], ["updated_at", "2015-03-19 05:03:09.321886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c7869f6-cdf5-11e4-bb2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c795bd6-cdf5-11e4-b07d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c7869f6-cdf5-11e4-bb2a-705681abff85"], ["organization_id", "3c795bd6-cdf5-11e4-b07d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.325584"], ["updated_at", "2015-03-19 05:03:09.325584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '3c795bd6-cdf5-11e4-b07d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "3c795bd6-cdf5-11e4-b07d-705681abff85"], ["created_at", "2015-03-19 05:03:09.329073"], ["updated_at", "2015-03-19 05:03:09.329073"], ["token", "gkBeIBn1OjtNUGDOM_Bif5dG02T2OSVuShVH7KQpWlA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3c795bd6-cdf5-11e4-b07d-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"3c795bd6-cdf5-11e4-b07d-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:09.334203' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ahE5EH7QxChfnbZJ8IGfPBkEs2qHzc8nZqFlM1raN7o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:09.336052"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:09.337066"], ["id", "3c78ce46-cdf5-11e4-9bd2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3c795bd6-cdf5-11e4-b07d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c7869f6-cdf5-11e4-bb2a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c795bd6-cdf5-11e4-b07d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c7869f6-cdf5-11e4-bb2a-705681abff85' LIMIT 1 [["organization_id", "3c795bd6-cdf5-11e4-b07d-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3c795bd6-cdf5-11e4-b07d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3c795bd6-cdf5-11e4-b07d-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.344205"], ["updated_at", "2015-03-19 05:03:09.344205"], ["token", "AxXpxkKomD3ggBUhKoPnHPCsSFzg2I3jhu6b-vzG5Cw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d74d7627-6efa-4759-b455-c9360040d700) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3c7cc99c-cdf5-11e4-bbbd-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3c7cc99c-cdf5-11e4-bbbd-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d74d7627-6efa-4759-b455-c9360040d700] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3c7cc99c-cdf5-11e4-bbbd-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d74d7627-6efa-4759-b455-c9360040d700] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c795bd6-cdf5-11e4-b07d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d74d7627-6efa-4759-b455-c9360040d700] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [d74d7627-6efa-4759-b455-c9360040d700] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [d74d7627-6efa-4759-b455-c9360040d700] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [d74d7627-6efa-4759-b455-c9360040d700] Date: Wed, 18 Mar 2015 22:03:09 -0700 From: from@example.com To: email@example.com Message-ID: <550a588d56012_e3103fe8b2065bf0827c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/AxXpxkKomD3ggBUhKoPnHPCsSFzg2I3jhu6b-vzG5Cw?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d74d7627-6efa-4759-b455-c9360040d700] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.36ms Completed 201 Created in 21ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$YReQr32sEkzXO/I3G1Co8uFr9VDAmCTCEvug5hgpFsGm1TTMJnAfW"], ["created_at", "2015-03-19 05:03:09.361238"], ["updated_at", "2015-03-19 05:03:09.361238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.362897"], ["user_id", "3c7f5ed2-cdf5-11e4-a517-705681abff85"], ["created_at", "2015-03-19 05:03:09.363674"], ["updated_at", "2015-03-19 05:03:09.363674"], ["token", "aS_pqmWOlgtPmer-vOzCQY-sj4Mg7FB3Wup2ZSBr2eM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.367017"], ["updated_at", "2015-03-19 05:03:09.367017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c7f5ed2-cdf5-11e4-a517-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c803ef6-cdf5-11e4-8a63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c7f5ed2-cdf5-11e4-a517-705681abff85"], ["organization_id", "3c803ef6-cdf5-11e4-8a63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.370915"], ["updated_at", "2015-03-19 05:03:09.370915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '3c803ef6-cdf5-11e4-8a63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "3c803ef6-cdf5-11e4-8a63-705681abff85"], ["created_at", "2015-03-19 05:03:09.374275"], ["updated_at", "2015-03-19 05:03:09.374275"], ["token", "sTRfkGOOdvUj3KNdQONL2VnqSDTertZknEbJNLGkZnU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3c803ef6-cdf5-11e4-8a63-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"3c803ef6-cdf5-11e4-8a63-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:09.378943' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aS_pqmWOlgtPmer-vOzCQY-sj4Mg7FB3Wup2ZSBr2eM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:09.380696"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:09.382632"], ["id", "3c7fc23c-cdf5-11e4-ae92-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3c803ef6-cdf5-11e4-8a63-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c7f5ed2-cdf5-11e4-a517-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c803ef6-cdf5-11e4-8a63-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c7f5ed2-cdf5-11e4-a517-705681abff85' LIMIT 1 [["organization_id", "3c803ef6-cdf5-11e4-8a63-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3c803ef6-cdf5-11e4-8a63-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3c803ef6-cdf5-11e4-8a63-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.393813"], ["updated_at", "2015-03-19 05:03:09.393813"], ["token", "U4m9XDmh4kTMWFuL5bof7X9xdgONQX_okOEBeNOw6Z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f1afb0f0-a195-4610-8413-b2b5c46d08c9) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3c84626a-cdf5-11e4-ae16-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3c84626a-cdf5-11e4-ae16-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [f1afb0f0-a195-4610-8413-b2b5c46d08c9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3c84626a-cdf5-11e4-ae16-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [f1afb0f0-a195-4610-8413-b2b5c46d08c9] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c803ef6-cdf5-11e4-8a63-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [f1afb0f0-a195-4610-8413-b2b5c46d08c9] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [f1afb0f0-a195-4610-8413-b2b5c46d08c9] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [f1afb0f0-a195-4610-8413-b2b5c46d08c9] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [f1afb0f0-a195-4610-8413-b2b5c46d08c9] Date: Wed, 18 Mar 2015 22:03:09 -0700 From: from@example.com To: email@example.com Message-ID: <550a588d62326_e3103fe8b2065bf0832@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/U4m9XDmh4kTMWFuL5bof7X9xdgONQX_okOEBeNOw6Z0?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [f1afb0f0-a195-4610-8413-b2b5c46d08c9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.45ms Completed 201 Created in 26ms (Views: 0.8ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$.hi8NO/bnK6jFUJ6H.CtzO/eMc2WCUSDvtX.lMuNuoKreXjvo1QfC"], ["created_at", "2015-03-19 05:03:09.411531"], ["updated_at", "2015-03-19 05:03:09.411531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.413420"], ["user_id", "3c870f42-cdf5-11e4-a39c-705681abff85"], ["created_at", "2015-03-19 05:03:09.414198"], ["updated_at", "2015-03-19 05:03:09.414198"], ["token", "TM_7hnjqCwHeGAK-TNcXKB7O8cEnnBFPjfx2XKpuBTo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.417580"], ["updated_at", "2015-03-19 05:03:09.417580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c870f42-cdf5-11e4-a39c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c87f61e-cdf5-11e4-a5a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c870f42-cdf5-11e4-a39c-705681abff85"], ["organization_id", "3c87f61e-cdf5-11e4-a5a7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.421277"], ["updated_at", "2015-03-19 05:03:09.421277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '3c87f61e-cdf5-11e4-a5a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "3c87f61e-cdf5-11e4-a5a7-705681abff85"], ["created_at", "2015-03-19 05:03:09.424759"], ["updated_at", "2015-03-19 05:03:09.424759"], ["token", "14SJvafk34-aZKPqpuL0zYOJKmQJWYaOzMTSG_FexTs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3c87f61e-cdf5-11e4-a5a7-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"3c87f61e-cdf5-11e4-a5a7-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:09.429610' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TM_7hnjqCwHeGAK-TNcXKB7O8cEnnBFPjfx2XKpuBTo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:09.430983"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:09.431931"], ["id", "3c8777e8-cdf5-11e4-85bf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3c87f61e-cdf5-11e4-a5a7-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c870f42-cdf5-11e4-a39c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c87f61e-cdf5-11e4-a5a7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c870f42-cdf5-11e4-a39c-705681abff85' LIMIT 1 [["organization_id", "3c87f61e-cdf5-11e4-a5a7-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '3c87f61e-cdf5-11e4-a5a7-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$mEWowBsb5al.DgXApBfaZuV/9BXA0pVcbUvjbk0KZ0X5JSPqWvYF2"], ["created_at", "2015-03-19 05:03:09.446555"], ["updated_at", "2015-03-19 05:03:09.446555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.448313"], ["user_id", "3c8c6244-cdf5-11e4-9f01-705681abff85"], ["created_at", "2015-03-19 05:03:09.449079"], ["updated_at", "2015-03-19 05:03:09.449079"], ["token", "luSUgpfcYnSmdPfGh1htVo9z_JuAush_WmxTrOkt18A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.453183"], ["updated_at", "2015-03-19 05:03:09.453183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c8c6244-cdf5-11e4-9f01-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c8d65e0-cdf5-11e4-ab5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c8c6244-cdf5-11e4-9f01-705681abff85"], ["organization_id", "3c8d65e0-cdf5-11e4-ab5a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.456587"], ["updated_at", "2015-03-19 05:03:09.456587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '3c8d65e0-cdf5-11e4-ab5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "3c8d65e0-cdf5-11e4-ab5a-705681abff85"], ["created_at", "2015-03-19 05:03:09.460277"], ["updated_at", "2015-03-19 05:03:09.460277"], ["token", "7LvHSnZltw2McQT5WvG0nbSgS3criqkzOFACuCpDOSk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$W0T572Hh9MWvyWyM2.wtVO.bM/rieDkASyvKBrJGtOr35k8pQXcBe"], ["created_at", "2015-03-19 05:03:09.469862"], ["updated_at", "2015-03-19 05:03:09.469862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.471495"], ["user_id", "3c8ff30a-cdf5-11e4-8120-705681abff85"], ["created_at", "2015-03-19 05:03:09.472270"], ["updated_at", "2015-03-19 05:03:09.472270"], ["token", "2--OaFhru-XpyRJh_rVs4oIDAIkb1aJ7HBw1V6cZ89s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.475702"], ["updated_at", "2015-03-19 05:03:09.475702"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c8ff30a-cdf5-11e4-8120-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c90db62-cdf5-11e4-bda9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c8ff30a-cdf5-11e4-8120-705681abff85"], ["organization_id", "3c90db62-cdf5-11e4-bda9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.479794"], ["updated_at", "2015-03-19 05:03:09.479794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '3c90db62-cdf5-11e4-bda9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "3c90db62-cdf5-11e4-bda9-705681abff85"], ["created_at", "2015-03-19 05:03:09.483135"], ["updated_at", "2015-03-19 05:03:09.483135"], ["token", "nGYzxEmPI8tBHscVEEBBr5ugHZ9b1VswErKg9K5g7xY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/3c91f97a-cdf5-11e4-a5ae-705681abff85" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"3c91f97a-cdf5-11e4-a5ae-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:09.487987' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2--OaFhru-XpyRJh_rVs4oIDAIkb1aJ7HBw1V6cZ89s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:09.489410"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:09.490369"], ["id", "3c905304-cdf5-11e4-99cf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3c91f97a-cdf5-11e4-a5ae-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c8ff30a-cdf5-11e4-8120-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3c90db62-cdf5-11e4-bda9-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c8ff30a-cdf5-11e4-8120-705681abff85' LIMIT 1 [["organization_id", "3c90db62-cdf5-11e4-bda9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "3c91f97a-cdf5-11e4-a5ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$KgwbAZ5EhUOXT99.cUOXrOyEE0OQG89WvWgP3KH6mTFo1MG.b.n2q"], ["created_at", "2015-03-19 05:03:09.502124"], ["updated_at", "2015-03-19 05:03:09.502124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.504336"], ["user_id", "3c94ef9a-cdf5-11e4-ac1e-705681abff85"], ["created_at", "2015-03-19 05:03:09.505167"], ["updated_at", "2015-03-19 05:03:09.505167"], ["token", "lK2hYUB-8yBAmPnGrAN_KaetSMkQst0iBApQuaq7TDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.508721"], ["updated_at", "2015-03-19 05:03:09.508721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c94ef9a-cdf5-11e4-ac1e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c95dc16-cdf5-11e4-968a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c94ef9a-cdf5-11e4-ac1e-705681abff85"], ["organization_id", "3c95dc16-cdf5-11e4-968a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.512038"], ["updated_at", "2015-03-19 05:03:09.512038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '3c95dc16-cdf5-11e4-968a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "3c95dc16-cdf5-11e4-968a-705681abff85"], ["created_at", "2015-03-19 05:03:09.515460"], ["updated_at", "2015-03-19 05:03:09.515460"], ["token", "UcpPSCPtP35J_nORAl5_FcyPfVYFVQy-eW0t0e2nAkE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$rGo.v/b0YtyzWrCS7OLPsOrdaM6dn0I.4JhZY59COmT/cfm9dBYCa"], ["created_at", "2015-03-19 05:03:09.520512"], ["updated_at", "2015-03-19 05:03:09.520512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.523911"], ["updated_at", "2015-03-19 05:03:09.523911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c97ab40-cdf5-11e4-8897-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c983542-cdf5-11e4-b7dd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c97ab40-cdf5-11e4-8897-705681abff85"], ["organization_id", "3c983542-cdf5-11e4-b7dd-705681abff85"], ["created_at", "2015-03-19 05:03:09.527316"], ["updated_at", "2015-03-19 05:03:09.527316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$b9G0CK2LgvOZCqUG4Y.2Tuxf99JHkGnimrC.hWmIF8EVrAOfaZxn."], ["created_at", "2015-03-19 05:03:09.538318"], ["updated_at", "2015-03-19 05:03:09.538318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:03:09.540239"], ["user_id", "3c9a6470-cdf5-11e4-ac1c-705681abff85"], ["created_at", "2015-03-19 05:03:09.540995"], ["updated_at", "2015-03-19 05:03:09.540995"], ["token", "xm2c9znpzoXvocE3T3CQhjkP97As5bkrgx7eHLKxP4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.544267"], ["updated_at", "2015-03-19 05:03:09.544267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c9a6470-cdf5-11e4-ac1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c9b5006-cdf5-11e4-aa56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c9a6470-cdf5-11e4-ac1c-705681abff85"], ["organization_id", "3c9b5006-cdf5-11e4-aa56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:03:09.547808"], ["updated_at", "2015-03-19 05:03:09.547808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '3c9b5006-cdf5-11e4-aa56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "3c9b5006-cdf5-11e4-aa56-705681abff85"], ["created_at", "2015-03-19 05:03:09.551019"], ["updated_at", "2015-03-19 05:03:09.551019"], ["token", "ts9aZ3jt7qsf0U5Mle5mxxtnjGuzs6BFO6iGEogAoOg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$DlH5UH/A4QinGDGKjMnKb.BxUBP9mbiZUkTxC.MlFA93ff1JGiBcG"], ["created_at", "2015-03-19 05:03:09.555649"], ["updated_at", "2015-03-19 05:03:09.555649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:03:09.558979"], ["updated_at", "2015-03-19 05:03:09.558979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c9d0702-cdf5-11e4-a7be-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c9d8876-cdf5-11e4-92bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c9d0702-cdf5-11e4-a7be-705681abff85"], ["organization_id", "3c9d8876-cdf5-11e4-92bb-705681abff85"], ["created_at", "2015-03-19 05:03:09.562214"], ["updated_at", "2015-03-19 05:03:09.562214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:03:09 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:03:09.566994' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xm2c9znpzoXvocE3T3CQhjkP97As5bkrgx7eHLKxP4Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:03:09.568760"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:03:09.569973"], ["id", "3c9acff0-cdf5-11e4-9cc5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c9a6470-cdf5-11e4-ac1c-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "3c9b5006-cdf5-11e4-aa56-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('3c9b5006-cdf5-11e4-aa56-705681abff85') Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ogjmpsY9Q31h8V2j2.uvm.VyOP1fDMhxggiEAXOy9IDEQTdBZj7Si"], ["created_at", "2015-03-19 05:04:06.399392"], ["updated_at", "2015-03-19 05:04:06.399392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:06.432650"], ["user_id", "5e823720-cdf5-11e4-9ad9-705681abff85"], ["created_at", "2015-03-19 05:04:06.473459"], ["updated_at", "2015-03-19 05:04:06.473459"], ["token", "aQc5ZiSwREd3GPPF7oNx00tgOp6anBXt1ubgk_rpE9w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:06.487783"], ["updated_at", "2015-03-19 05:04:06.487783"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e823720-cdf5-11e4-9ad9-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e8c4cec-cdf5-11e4-97ce-705681abff85') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e823720-cdf5-11e4-9ad9-705681abff85"], ["organization_id", "5e8c4cec-cdf5-11e4-97ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:06.502283"], ["updated_at", "2015-03-19 05:04:06.502283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5e8c4cec-cdf5-11e4-97ce-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "5e8c4cec-cdf5-11e4-97ce-705681abff85"], ["created_at", "2015-03-19 05:04:06.513381"], ["updated_at", "2015-03-19 05:04:06.513381"], ["token", "EdWbcI2doMleD-ahZn5eOUpYh5XX40zuDUwhYiqt32g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/5e902d76-cdf5-11e4-b43d-705681abff85" for 127.0.0.1 at 2015-03-18 22:04:06 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"5e902d76-cdf5-11e4-b43d-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:06.543537' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aQc5ZiSwREd3GPPF7oNx00tgOp6anBXt1ubgk_rpE9w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:06.550709"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:06.552025"], ["id", "5e8a1c42-cdf5-11e4-8744-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5e902d76-cdf5-11e4-b43d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e823720-cdf5-11e4-9ad9-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e8c4cec-cdf5-11e4-97ce-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5e823720-cdf5-11e4-9ad9-705681abff85' LIMIT 1 [["organization_id", "5e8c4cec-cdf5-11e4-97ce-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."id" != '5e902d76-cdf5-11e4-b43d-705681abff85' AND "clubhouse_invitations"."organization_id" = '5e8c4cec-cdf5-11e4-97ce-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:04:06.575762"], ["id", "5e902d76-cdf5-11e4-b43d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 37ms (Views: 2.5ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$nIoTDKPpqYzSk/aQ4wUBBeU1PkA.B3ZjjvS9UTn6kZzEl8nkWWq.G"], ["created_at", "2015-03-19 05:04:06.589149"], ["updated_at", "2015-03-19 05:04:06.589149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:06.591213"], ["user_id", "5e9bb380-cdf5-11e4-bbc8-705681abff85"], ["created_at", "2015-03-19 05:04:06.592075"], ["updated_at", "2015-03-19 05:04:06.592075"], ["token", "mzaKRNhOEKNHha22UDEjKHb2_0rh-oDoJEDLR7wPKDQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:06.595742"], ["updated_at", "2015-03-19 05:04:06.595742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e9bb380-cdf5-11e4-bbc8-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e9ca8d0-cdf5-11e4-86e0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e9bb380-cdf5-11e4-bbc8-705681abff85"], ["organization_id", "5e9ca8d0-cdf5-11e4-86e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:06.599336"], ["updated_at", "2015-03-19 05:04:06.599336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '5e9ca8d0-cdf5-11e4-86e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "5e9ca8d0-cdf5-11e4-86e0-705681abff85"], ["created_at", "2015-03-19 05:04:06.602815"], ["updated_at", "2015-03-19 05:04:06.602815"], ["token", "3qZmC3BT5SAVgndNPuWy34WW9YIGOFlZTDhIfhzwz8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 22:04:06 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$KqZKKglr6qibwaePVT6DteLHmSzw68BqedJU.fhMXO6Z70v6epo5W"], ["created_at", "2015-03-19 05:04:06.616142"], ["updated_at", "2015-03-19 05:04:06.616142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:06.620044"], ["user_id", "5e9fc952-cdf5-11e4-99b0-705681abff85"], ["created_at", "2015-03-19 05:04:06.621122"], ["updated_at", "2015-03-19 05:04:06.621122"], ["token", "pDAd6eh436JDcr3gPsI9rJ36nrKJlgPfIHSNHswPBrI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:06.625240"], ["updated_at", "2015-03-19 05:04:06.625240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e9fc952-cdf5-11e4-99b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ea1278e-cdf5-11e4-9854-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e9fc952-cdf5-11e4-99b0-705681abff85"], ["organization_id", "5ea1278e-cdf5-11e4-9854-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:06.629370"], ["updated_at", "2015-03-19 05:04:06.629370"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (3.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '5ea1278e-cdf5-11e4-9854-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "5ea1278e-cdf5-11e4-9854-705681abff85"], ["created_at", "2015-03-19 05:04:06.639800"], ["updated_at", "2015-03-19 05:04:06.639800"], ["token", "UAToeKpHfWdXIOK5KVo1_m_xu4qeVFjRQsKLSlSkPaw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:04:06 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$JHbiep564vFHivMLkFIGdOtST1MWzoUhpD4JcX5JKY1ycWqvsyM7S"], ["created_at", "2015-03-19 05:04:06.652862"], ["updated_at", "2015-03-19 05:04:06.652862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:06.654613"], ["user_id", "5ea56240-cdf5-11e4-b7f6-705681abff85"], ["created_at", "2015-03-19 05:04:06.655434"], ["updated_at", "2015-03-19 05:04:06.655434"], ["token", "aUC-12Ms6PA_1OKcbttNQsZNupPK65awbE5M2Pf2Jw0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:06.659430"], ["updated_at", "2015-03-19 05:04:06.659430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ea56240-cdf5-11e4-b7f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ea6671c-cdf5-11e4-b90a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ea56240-cdf5-11e4-b7f6-705681abff85"], ["organization_id", "5ea6671c-cdf5-11e4-b90a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:06.663406"], ["updated_at", "2015-03-19 05:04:06.663406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '5ea6671c-cdf5-11e4-b90a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "5ea6671c-cdf5-11e4-b90a-705681abff85"], ["created_at", "2015-03-19 05:04:06.667614"], ["updated_at", "2015-03-19 05:04:06.667614"], ["token", "tTPDWroIb6kyNeyPfStV3dWDnZkkJVRVJ8HzOCC0DkM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:04:06 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:06.673924' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aUC-12Ms6PA_1OKcbttNQsZNupPK65awbE5M2Pf2Jw0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:06.675790"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:06.676992"], ["id", "5ea5cf50-cdf5-11e4-b6d8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5ea56240-cdf5-11e4-b7f6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5ea6671c-cdf5-11e4-b90a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ea56240-cdf5-11e4-b7f6-705681abff85' LIMIT 1 [["organization_id", "5ea6671c-cdf5-11e4-b90a-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '5ea6671c-cdf5-11e4-b90a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 28ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$lSR2noFF4.aXTanmPcCrtOnNRif.J66TrdqIpbcGH5t1yMUv6WUga"], ["created_at", "2015-03-19 05:04:06.707604"], ["updated_at", "2015-03-19 05:04:06.707604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:06.709784"], ["user_id", "5eadc390-cdf5-11e4-b7f2-705681abff85"], ["created_at", "2015-03-19 05:04:06.710633"], ["updated_at", "2015-03-19 05:04:06.710633"], ["token", "AAy5rIwYYKkQ2w5Cq1Bl88KC8m6H9u5rc0gbSsPoYsQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:06.714325"], ["updated_at", "2015-03-19 05:04:06.714325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5eadc390-cdf5-11e4-b7f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5eaebfd4-cdf5-11e4-a62b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5eadc390-cdf5-11e4-b7f2-705681abff85"], ["organization_id", "5eaebfd4-cdf5-11e4-a62b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:06.718253"], ["updated_at", "2015-03-19 05:04:06.718253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '5eaebfd4-cdf5-11e4-a62b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "5eaebfd4-cdf5-11e4-a62b-705681abff85"], ["created_at", "2015-03-19 05:04:06.722606"], ["updated_at", "2015-03-19 05:04:06.722606"], ["token", "_MRRqVWGwDWuKVVDoigi2HXyaD8EPBj6V8imIUWmuHI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:04:06 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:06.728482' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AAy5rIwYYKkQ2w5Cq1Bl88KC8m6H9u5rc0gbSsPoYsQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:06.729979"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:06.730990"], ["id", "5eae3e92-cdf5-11e4-8d6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5eadc390-cdf5-11e4-b7f2-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5eaebfd4-cdf5-11e4-a62b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5eadc390-cdf5-11e4-b7f2-705681abff85' LIMIT 1 [["organization_id", "5eaebfd4-cdf5-11e4-a62b-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5eaebfd4-cdf5-11e4-a62b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5eaebfd4-cdf5-11e4-a62b-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:04:06.742227"], ["updated_at", "2015-03-19 05:04:06.742227"], ["token", "TWkIzQ8adVd_SSPLQThjWxOxxqDRuQrjrz0-NyWwgEg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ad0e7635-2082-4b8d-a998-fc48b9516b7e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5eb31bd8-cdf5-11e4-a512-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.6ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5eb31bd8-cdf5-11e4-a512-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [ad0e7635-2082-4b8d-a998-fc48b9516b7e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5eb31bd8-cdf5-11e4-a512-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [ad0e7635-2082-4b8d-a998-fc48b9516b7e] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5eaebfd4-cdf5-11e4-a62b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [ad0e7635-2082-4b8d-a998-fc48b9516b7e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [ad0e7635-2082-4b8d-a998-fc48b9516b7e] Clubhouse::Mailer#invitation: processed outbound mail in 208.6ms [ActiveJob] [ActionMailer::DeliveryJob] [ad0e7635-2082-4b8d-a998-fc48b9516b7e] Sent mail to email@example.com (8.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [ad0e7635-2082-4b8d-a998-fc48b9516b7e] Date: Wed, 18 Mar 2015 22:04:06 -0700 From: from@example.com To: email@example.com Message-ID: <550a58c6f1fa2_e3173ffac9863be4718c3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/TWkIzQ8adVd_SSPLQThjWxOxxqDRuQrjrz0-NyWwgEg?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [ad0e7635-2082-4b8d-a998-fc48b9516b7e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 217.74ms Completed 201 Created in 268ms (Views: 0.9ms | ActiveRecord: 3.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$kQPAsb6KEkyBI8bhLUBHo.lFjpFWr21A/sdkpAKuFRYuyYGAFPjIq"], ["created_at", "2015-03-19 05:04:07.003950"], ["updated_at", "2015-03-19 05:04:07.003950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.006715"], ["user_id", "5edb09b8-cdf5-11e4-8b74-705681abff85"], ["created_at", "2015-03-19 05:04:07.007525"], ["updated_at", "2015-03-19 05:04:07.007525"], ["token", "H_3hrwyv-X24aMqfK_Pa4fIV95vFPZ9grtNBSNQRIjM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.011197"], ["updated_at", "2015-03-19 05:04:07.011197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5edb09b8-cdf5-11e4-8b74-705681abff85' AND "clubhouse_memberships"."organization_id" = '5edc0c14-cdf5-11e4-a4d8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5edb09b8-cdf5-11e4-8b74-705681abff85"], ["organization_id", "5edc0c14-cdf5-11e4-a4d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.015200"], ["updated_at", "2015-03-19 05:04:07.015200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '5edc0c14-cdf5-11e4-a4d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "5edc0c14-cdf5-11e4-a4d8-705681abff85"], ["created_at", "2015-03-19 05:04:07.018834"], ["updated_at", "2015-03-19 05:04:07.018834"], ["token", "dihy0qDzga4nL-1hZDFrL1km69cDIUBWEZY44hbu9s8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:07.025281' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "H_3hrwyv-X24aMqfK_Pa4fIV95vFPZ9grtNBSNQRIjM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:07.026918"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:07.028043"], ["id", "5edb8884-cdf5-11e4-b611-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5edb09b8-cdf5-11e4-8b74-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5edc0c14-cdf5-11e4-a4d8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5edb09b8-cdf5-11e4-8b74-705681abff85' LIMIT 1 [["organization_id", "5edc0c14-cdf5-11e4-a4d8-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5edc0c14-cdf5-11e4-a4d8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5edc0c14-cdf5-11e4-a4d8-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.038690"], ["updated_at", "2015-03-19 05:04:07.038690"], ["token", "wI7AtD3o-08agGpOG9tWfSack_VtoEfCxWP-YHsUwNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: bb1939b4-358e-4b5f-a24c-3deacca22106) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5ee04784-cdf5-11e4-a40b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5ee04784-cdf5-11e4-a40b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [bb1939b4-358e-4b5f-a24c-3deacca22106] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5ee04784-cdf5-11e4-a40b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [bb1939b4-358e-4b5f-a24c-3deacca22106] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5edc0c14-cdf5-11e4-a4d8-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [bb1939b4-358e-4b5f-a24c-3deacca22106] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [bb1939b4-358e-4b5f-a24c-3deacca22106] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [bb1939b4-358e-4b5f-a24c-3deacca22106] Sent mail to email@example.com (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [bb1939b4-358e-4b5f-a24c-3deacca22106] Date: Wed, 18 Mar 2015 22:04:07 -0700 From: from@example.com To: email@example.com Message-ID: <550a58c7b713_e3173ffac9863be4719d7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/wI7AtD3o-08agGpOG9tWfSack_VtoEfCxWP-YHsUwNY?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [bb1939b4-358e-4b5f-a24c-3deacca22106] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.26ms Completed 201 Created in 25ms (Views: 1.7ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Mel1v/zOF4WIHDk.tqXMgeWIUEWnflzKDb12ZZM2b54XmbAiTnHeC"], ["created_at", "2015-03-19 05:04:07.063648"], ["updated_at", "2015-03-19 05:04:07.063648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.068213"], ["user_id", "5ee41c42-cdf5-11e4-827d-705681abff85"], ["created_at", "2015-03-19 05:04:07.069185"], ["updated_at", "2015-03-19 05:04:07.069185"], ["token", "FlH04uSMuU7GtbVaTzY6Sn0rImYOAXHuc0312TsZSU4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.072776"], ["updated_at", "2015-03-19 05:04:07.072776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ee41c42-cdf5-11e4-827d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ee5720e-cdf5-11e4-924a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ee41c42-cdf5-11e4-827d-705681abff85"], ["organization_id", "5ee5720e-cdf5-11e4-924a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.076114"], ["updated_at", "2015-03-19 05:04:07.076114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '5ee5720e-cdf5-11e4-924a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "5ee5720e-cdf5-11e4-924a-705681abff85"], ["created_at", "2015-03-19 05:04:07.079817"], ["updated_at", "2015-03-19 05:04:07.079817"], ["token", "VpFjvbwn25-_gWA_BRC_qj6_1vJ3yoQQ0CS9Q08ddS0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$RQ1RLl80PHfCB8bXW/goGOM51NdAUdgRlPQyI/30IblbKrwog8x0q"], ["created_at", "2015-03-19 05:04:07.084764"], ["updated_at", "2015-03-19 05:04:07.084764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.087921"], ["updated_at", "2015-03-19 05:04:07.087921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ee745b6-cdf5-11e4-b764-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ee7c0f4-cdf5-11e4-ab02-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ee745b6-cdf5-11e4-b764-705681abff85"], ["organization_id", "5ee7c0f4-cdf5-11e4-ab02-705681abff85"], ["created_at", "2015-03-19 05:04:07.091586"], ["updated_at", "2015-03-19 05:04:07.091586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:07.097479' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FlH04uSMuU7GtbVaTzY6Sn0rImYOAXHuc0312TsZSU4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:07.098977"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:07.099964"], ["id", "5ee4ef32-cdf5-11e4-b341-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5ee41c42-cdf5-11e4-827d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ee41c42-cdf5-11e4-827d-705681abff85' LIMIT 1 [["organization_id", "5ee5720e-cdf5-11e4-924a-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "5ee5720e-cdf5-11e4-924a-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('5ee5720e-cdf5-11e4-924a-705681abff85') Completed 200 OK in 15ms (Views: 6.3ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$suYQd25niyUMvrneYnqCYu1evcJQejJGcS96AESAZOh6LJjP7eJ32"], ["created_at", "2015-03-19 05:04:07.118605"], ["updated_at", "2015-03-19 05:04:07.118605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.120340"], ["user_id", "5eec7342-cdf5-11e4-bfda-705681abff85"], ["created_at", "2015-03-19 05:04:07.121107"], ["updated_at", "2015-03-19 05:04:07.121107"], ["token", "pwCFhiOtCTNnzgTz5QRJ2IZG6AEEqd-wJQy9DPOXKEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.124921"], ["updated_at", "2015-03-19 05:04:07.124921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5eec7342-cdf5-11e4-bfda-705681abff85' AND "clubhouse_memberships"."organization_id" = '5eed708a-cdf5-11e4-855d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5eec7342-cdf5-11e4-bfda-705681abff85"], ["organization_id", "5eed708a-cdf5-11e4-855d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.128776"], ["updated_at", "2015-03-19 05:04:07.128776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '5eed708a-cdf5-11e4-855d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "5eed708a-cdf5-11e4-855d-705681abff85"], ["created_at", "2015-03-19 05:04:07.132412"], ["updated_at", "2015-03-19 05:04:07.132412"], ["token", "-_Gr-LVAxk9fopWCLQfvghNsln6wP2HBovP7bXE4k6g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$q6twmgHtBTPH3Qs/Av13IuTbIRTAE3GTv7oKxSc1sr/qPwAVasW.i"], ["created_at", "2015-03-19 05:04:07.136941"], ["updated_at", "2015-03-19 05:04:07.136941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.140099"], ["updated_at", "2015-03-19 05:04:07.140099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5eef3d2a-cdf5-11e4-ae40-705681abff85' AND "clubhouse_memberships"."organization_id" = '5eefb548-cdf5-11e4-a2a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5eef3d2a-cdf5-11e4-ae40-705681abff85"], ["organization_id", "5eefb548-cdf5-11e4-a2a7-705681abff85"], ["created_at", "2015-03-19 05:04:07.143140"], ["updated_at", "2015-03-19 05:04:07.143140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$fqApQXJR7Po.IAFCg.UxmeBPDD4bLB/z6.eC/DzPP7cPzhJZArKG."], ["created_at", "2015-03-19 05:04:07.154805"], ["updated_at", "2015-03-19 05:04:07.154805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.156448"], ["user_id", "5ef1f902-cdf5-11e4-8c33-705681abff85"], ["created_at", "2015-03-19 05:04:07.157237"], ["updated_at", "2015-03-19 05:04:07.157237"], ["token", "eEtUKqenOa8pGXVCSa6BXVAfr87aioKP9YrjU5aLCxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.160505"], ["updated_at", "2015-03-19 05:04:07.160505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ef1f902-cdf5-11e4-8c33-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ef2d2a0-cdf5-11e4-acfb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ef1f902-cdf5-11e4-8c33-705681abff85"], ["organization_id", "5ef2d2a0-cdf5-11e4-acfb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.164850"], ["updated_at", "2015-03-19 05:04:07.164850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '5ef2d2a0-cdf5-11e4-acfb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "5ef2d2a0-cdf5-11e4-acfb-705681abff85"], ["created_at", "2015-03-19 05:04:07.168840"], ["updated_at", "2015-03-19 05:04:07.168840"], ["token", "I5bPA9-53FFH-kC58iFWWmZ3l9nZ1DsfMuzI_k2yTbQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/5ef41c00-cdf5-11e4-a729-705681abff85" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"5ef41c00-cdf5-11e4-a729-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:07.173438' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eEtUKqenOa8pGXVCSa6BXVAfr87aioKP9YrjU5aLCxg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:07.174807"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:07.175743"], ["id", "5ef25a28-cdf5-11e4-9bbe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5ef41c00-cdf5-11e4-a729-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5ef1f902-cdf5-11e4-8c33-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5ef2d2a0-cdf5-11e4-acfb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ef1f902-cdf5-11e4-8c33-705681abff85' LIMIT 1 [["organization_id", "5ef2d2a0-cdf5-11e4-acfb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "5ef41c00-cdf5-11e4-a729-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$ASJKCvFFpZ4KDm812yTCte0CIGJHVQIvbNty0oFa3mqldb29feAmq"], ["created_at", "2015-03-19 05:04:07.187517"], ["updated_at", "2015-03-19 05:04:07.187517"]]  (149.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.401483"], ["user_id", "5ef6f36c-cdf5-11e4-9b02-705681abff85"], ["created_at", "2015-03-19 05:04:07.403099"], ["updated_at", "2015-03-19 05:04:07.403099"], ["token", "1ofkyZ_3N-YqL4Au4BEhmW21cmol3hNuznekGWyktL0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.410167"], ["updated_at", "2015-03-19 05:04:07.410167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ef6f36c-cdf5-11e4-9b02-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f190498-cdf5-11e4-b711-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ef6f36c-cdf5-11e4-9b02-705681abff85"], ["organization_id", "5f190498-cdf5-11e4-b711-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.420580"], ["updated_at", "2015-03-19 05:04:07.420580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '5f190498-cdf5-11e4-b711-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "5f190498-cdf5-11e4-b711-705681abff85"], ["created_at", "2015-03-19 05:04:07.427164"], ["updated_at", "2015-03-19 05:04:07.427164"], ["token", "ZBeJplCvg-lPia5EBncTKsS0puxjvNkCxmRwXw6Ivdk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$PBZubpwMBHMspr3Si3/.ieg4iwAbg850vtTO5AoZ7QzIYz8XzDanC"], ["created_at", "2015-03-19 05:04:07.445376"], ["updated_at", "2015-03-19 05:04:07.445376"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.448380"], ["user_id", "5f1e685c-cdf5-11e4-93f0-705681abff85"], ["created_at", "2015-03-19 05:04:07.449616"], ["updated_at", "2015-03-19 05:04:07.449616"], ["token", "Na8JFbHZMDRqHsSCxdyzf8u-zetd6HBf1U2kumKS5JM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.454233"], ["updated_at", "2015-03-19 05:04:07.454233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f1e685c-cdf5-11e4-93f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f1fb8ec-cdf5-11e4-ba8c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f1e685c-cdf5-11e4-93f0-705681abff85"], ["organization_id", "5f1fb8ec-cdf5-11e4-ba8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.458892"], ["updated_at", "2015-03-19 05:04:07.458892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '5f1fb8ec-cdf5-11e4-ba8c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "5f1fb8ec-cdf5-11e4-ba8c-705681abff85"], ["created_at", "2015-03-19 05:04:07.464378"], ["updated_at", "2015-03-19 05:04:07.464378"], ["token", "IA6_cQk4OwrG8sDuiDBOuWoGqoyxIQzk2-y0n2LjqTA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$4xiW2UQHqGrTuaKRKVWhv.B0Jdrnu0jx/0NotzXbasVAjLahKNcfq"], ["created_at", "2015-03-19 05:04:07.477002"], ["updated_at", "2015-03-19 05:04:07.477002"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.486717"], ["updated_at", "2015-03-19 05:04:07.486717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f235dda-cdf5-11e4-8bba-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f24cb70-cdf5-11e4-b796-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f235dda-cdf5-11e4-8bba-705681abff85"], ["organization_id", "5f24cb70-cdf5-11e4-b796-705681abff85"], ["created_at", "2015-03-19 05:04:07.494961"], ["updated_at", "2015-03-19 05:04:07.494961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5f1fb8ec-cdf5-11e4-ba8c-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"5f1fb8ec-cdf5-11e4-ba8c-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:07.501931' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Na8JFbHZMDRqHsSCxdyzf8u-zetd6HBf1U2kumKS5JM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:07.503665"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:07.504668"], ["id", "5f1f0316-cdf5-11e4-a226-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5f1fb8ec-cdf5-11e4-ba8c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f1e685c-cdf5-11e4-93f0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5f1e685c-cdf5-11e4-93f0-705681abff85' LIMIT 1 [["organization_id", "5f1fb8ec-cdf5-11e4-ba8c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "5f1fb8ec-cdf5-11e4-ba8c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('5f1fb8ec-cdf5-11e4-ba8c-705681abff85') Completed 200 OK in 12ms (Views: 2.4ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$o6T.ebUYUNoTaraWy.G5NecQX495/j84dgxbse.fz8IGj.5F3hFM2"], ["created_at", "2015-03-19 05:04:07.526190"], ["updated_at", "2015-03-19 05:04:07.526190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.528963"], ["user_id", "5f2ab896-cdf5-11e4-b21c-705681abff85"], ["created_at", "2015-03-19 05:04:07.529765"], ["updated_at", "2015-03-19 05:04:07.529765"], ["token", "dyZ6NGsIBuJ6FFS6Z-Y7AvjKGk5F8dXbcnZ-QCtuIYw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.535355"], ["updated_at", "2015-03-19 05:04:07.535355"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f2ab896-cdf5-11e4-b21c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f2ca214-cdf5-11e4-8c99-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f2ab896-cdf5-11e4-b21c-705681abff85"], ["organization_id", "5f2ca214-cdf5-11e4-8c99-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.544759"], ["updated_at", "2015-03-19 05:04:07.544759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '5f2ca214-cdf5-11e4-8c99-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "5f2ca214-cdf5-11e4-8c99-705681abff85"], ["created_at", "2015-03-19 05:04:07.550419"], ["updated_at", "2015-03-19 05:04:07.550419"], ["token", "VtPz5ohb-Nz5VI3c548GtFCuo-ALST1AkitHNBecXdQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$YTCXd23fy/SLg77EjSZgMeIPxOHotRNmMGkguegzje2u3pcZ31SPq"], ["created_at", "2015-03-19 05:04:07.563458"], ["updated_at", "2015-03-19 05:04:07.563458"]]  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.575329"], ["updated_at", "2015-03-19 05:04:07.575329"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f30788a-cdf5-11e4-a5d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f3244b2-cdf5-11e4-8c18-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f30788a-cdf5-11e4-a5d2-705681abff85"], ["organization_id", "5f3244b2-cdf5-11e4-8c18-705681abff85"], ["created_at", "2015-03-19 05:04:07.583362"], ["updated_at", "2015-03-19 05:04:07.583362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (3.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$r98MMlNj/YFI4vcWIMthz.om.DgEun3MyCorWpPB6LS9voQybcIHa"], ["created_at", "2015-03-19 05:04:07.607408"], ["updated_at", "2015-03-19 05:04:07.607408"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.611050"], ["user_id", "5f3726a8-cdf5-11e4-b468-705681abff85"], ["created_at", "2015-03-19 05:04:07.614075"], ["updated_at", "2015-03-19 05:04:07.614075"], ["token", "6qcf7_xnFDEiEshY3a2Ba1s4iiFD1YrKTIYP_ru5BzQ"]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.625506"], ["updated_at", "2015-03-19 05:04:07.625506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f3726a8-cdf5-11e4-b468-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f39e15e-cdf5-11e4-9389-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f3726a8-cdf5-11e4-b468-705681abff85"], ["organization_id", "5f39e15e-cdf5-11e4-9389-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.632222"], ["updated_at", "2015-03-19 05:04:07.632222"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '5f39e15e-cdf5-11e4-9389-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "5f39e15e-cdf5-11e4-9389-705681abff85"], ["created_at", "2015-03-19 05:04:07.648018"], ["updated_at", "2015-03-19 05:04:07.648018"], ["token", "W0oyiJ0t1Yfe045W9jMuIl5qHyG7Fd2afAFgMPKwikA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$zQFiWSTaHCx142IjwLSKc.oimXm0NBC/qQdN78wnCW9UXlpWOOP7W"], ["created_at", "2015-03-19 05:04:07.668287"], ["updated_at", "2015-03-19 05:04:07.668287"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.671512"], ["user_id", "5f406b28-cdf5-11e4-8593-705681abff85"], ["created_at", "2015-03-19 05:04:07.673013"], ["updated_at", "2015-03-19 05:04:07.673013"], ["token", "xbKlPXWWAs-dC3UvvJZfdH3TxBaa8Uz13cxaC0cQk-w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.679765"], ["updated_at", "2015-03-19 05:04:07.679765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f406b28-cdf5-11e4-8593-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f422724-cdf5-11e4-b087-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f406b28-cdf5-11e4-8593-705681abff85"], ["organization_id", "5f422724-cdf5-11e4-b087-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.685995"], ["updated_at", "2015-03-19 05:04:07.685995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '5f422724-cdf5-11e4-b087-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "5f422724-cdf5-11e4-b087-705681abff85"], ["created_at", "2015-03-19 05:04:07.695215"], ["updated_at", "2015-03-19 05:04:07.695215"], ["token", "w93KAytiTOnajSMxXtrZXoNEmJnMgz7OVlj_IBuQ22A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5f422724-cdf5-11e4-b087-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"5f422724-cdf5-11e4-b087-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:07.706520' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xbKlPXWWAs-dC3UvvJZfdH3TxBaa8Uz13cxaC0cQk-w"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:07.708771"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:07.710843"], ["id", "5f412f7c-cdf5-11e4-8ff0-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5f422724-cdf5-11e4-b087-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f406b28-cdf5-11e4-8593-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f422724-cdf5-11e4-b087-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5f406b28-cdf5-11e4-8593-705681abff85' LIMIT 1 [["organization_id", "5f422724-cdf5-11e4-b087-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '5f422724-cdf5-11e4-b087-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 30ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$8La/ZhJ/ryHAgKI6t0Wive4JTlVWq85ncvQfiQZnz7kGEZZMklhTu"], ["created_at", "2015-03-19 05:04:07.744575"], ["updated_at", "2015-03-19 05:04:07.744575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.746492"], ["user_id", "5f4bfda8-cdf5-11e4-a010-705681abff85"], ["created_at", "2015-03-19 05:04:07.747380"], ["updated_at", "2015-03-19 05:04:07.747380"], ["token", "Gk254fUXxF48ldQqo36ZQ4nvuLUKXqFlJldKt_XQXQU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.756061"], ["updated_at", "2015-03-19 05:04:07.756061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f4bfda8-cdf5-11e4-a010-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f4dcfc0-cdf5-11e4-88df-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f4bfda8-cdf5-11e4-a010-705681abff85"], ["organization_id", "5f4dcfc0-cdf5-11e4-88df-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.767431"], ["updated_at", "2015-03-19 05:04:07.767431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '5f4dcfc0-cdf5-11e4-88df-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "5f4dcfc0-cdf5-11e4-88df-705681abff85"], ["created_at", "2015-03-19 05:04:07.773967"], ["updated_at", "2015-03-19 05:04:07.773967"], ["token", "ELXlvkzolVLkOiVpJhwEMpXuL4i2V9Q5CkenAzB5DXU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5f4dcfc0-cdf5-11e4-88df-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"5f4dcfc0-cdf5-11e4-88df-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.8ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:07.787896' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Gk254fUXxF48ldQqo36ZQ4nvuLUKXqFlJldKt_XQXQU"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:07.791785"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:07.796164"], ["id", "5f4cce0e-cdf5-11e4-95b1-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5f4dcfc0-cdf5-11e4-88df-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f4bfda8-cdf5-11e4-a010-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f4dcfc0-cdf5-11e4-88df-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5f4bfda8-cdf5-11e4-a010-705681abff85' LIMIT 1 [["organization_id", "5f4dcfc0-cdf5-11e4-88df-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5f4dcfc0-cdf5-11e4-88df-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5f4dcfc0-cdf5-11e4-88df-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.812355"], ["updated_at", "2015-03-19 05:04:07.812355"], ["token", "1tXgsBVnawT_YLK6e4pHyrauh7xAaGn4_L1SZ4Scix8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9aa84c84-cbff-43b5-bef6-f7f9d9ca4aaa) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5f565ea6-cdf5-11e4-8136-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5f565ea6-cdf5-11e4-8136-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9aa84c84-cbff-43b5-bef6-f7f9d9ca4aaa] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5f565ea6-cdf5-11e4-8136-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9aa84c84-cbff-43b5-bef6-f7f9d9ca4aaa] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f4dcfc0-cdf5-11e4-88df-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9aa84c84-cbff-43b5-bef6-f7f9d9ca4aaa] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [9aa84c84-cbff-43b5-bef6-f7f9d9ca4aaa] Clubhouse::Mailer#invitation: processed outbound mail in 3.9ms [ActiveJob] [ActionMailer::DeliveryJob] [9aa84c84-cbff-43b5-bef6-f7f9d9ca4aaa] Sent mail to email@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [9aa84c84-cbff-43b5-bef6-f7f9d9ca4aaa] Date: Wed, 18 Mar 2015 22:04:07 -0700 From: from@example.com To: email@example.com Message-ID: <550a58c7c8f49_e3173ffac9863be47201@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/1tXgsBVnawT_YLK6e4pHyrauh7xAaGn4_L1SZ4Scix8?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9aa84c84-cbff-43b5-bef6-f7f9d9ca4aaa] Performed ActionMailer::DeliveryJob from Inline(mailers) in 8.02ms Completed 201 Created in 42ms (Views: 2.9ms | ActiveRecord: 4.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$j/n9NRNj9I9o/hjDjqE7f.T9IiNdrmOgpDw08/9AYqSHasG.BdR9O"], ["created_at", "2015-03-19 05:04:07.840687"], ["updated_at", "2015-03-19 05:04:07.840687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.842543"], ["user_id", "5f5aa326-cdf5-11e4-9936-705681abff85"], ["created_at", "2015-03-19 05:04:07.843497"], ["updated_at", "2015-03-19 05:04:07.843497"], ["token", "3WZ97x82kV-bdw3N62Ph_zki7Wm2Rs33af_EuHNvGHI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.847796"], ["updated_at", "2015-03-19 05:04:07.847796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f5aa326-cdf5-11e4-9936-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f5bb5fe-cdf5-11e4-aec1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f5aa326-cdf5-11e4-9936-705681abff85"], ["organization_id", "5f5bb5fe-cdf5-11e4-aec1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.852767"], ["updated_at", "2015-03-19 05:04:07.852767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '5f5bb5fe-cdf5-11e4-aec1-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "5f5bb5fe-cdf5-11e4-aec1-705681abff85"], ["created_at", "2015-03-19 05:04:07.857534"], ["updated_at", "2015-03-19 05:04:07.857534"], ["token", "GgsFZk4kiNBTzsOaUnezFmI-Tr6OxgSFRck1tROTh0M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5f5bb5fe-cdf5-11e4-aec1-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"5f5bb5fe-cdf5-11e4-aec1-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:07.874383' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3WZ97x82kV-bdw3N62Ph_zki7Wm2Rs33af_EuHNvGHI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:07.876143"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:07.877625"], ["id", "5f5b1978-cdf5-11e4-8b30-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5f5bb5fe-cdf5-11e4-aec1-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f5aa326-cdf5-11e4-9936-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f5bb5fe-cdf5-11e4-aec1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5f5aa326-cdf5-11e4-9936-705681abff85' LIMIT 1 [["organization_id", "5f5bb5fe-cdf5-11e4-aec1-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5f5bb5fe-cdf5-11e4-aec1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5f5bb5fe-cdf5-11e4-aec1-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.894946"], ["updated_at", "2015-03-19 05:04:07.894946"], ["token", "t7fnfpe4nR341Ici5D4Y6W51MvQDtXKeWjj8slDLASo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3da311b0-e8dd-4793-a197-b5bb447135b1) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5f63166e-cdf5-11e4-8e56-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5f63166e-cdf5-11e4-8e56-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3da311b0-e8dd-4793-a197-b5bb447135b1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5f63166e-cdf5-11e4-8e56-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [3da311b0-e8dd-4793-a197-b5bb447135b1] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f5bb5fe-cdf5-11e4-aec1-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3da311b0-e8dd-4793-a197-b5bb447135b1] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [3da311b0-e8dd-4793-a197-b5bb447135b1] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [3da311b0-e8dd-4793-a197-b5bb447135b1] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [3da311b0-e8dd-4793-a197-b5bb447135b1] Date: Wed, 18 Mar 2015 22:04:07 -0700 From: from@example.com To: email@example.com Message-ID: <550a58c7dca79_e3173ffac9863be4721f9@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/t7fnfpe4nR341Ici5D4Y6W51MvQDtXKeWjj8slDLASo?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [3da311b0-e8dd-4793-a197-b5bb447135b1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.18ms Completed 201 Created in 32ms (Views: 0.8ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Bv45MC.2QcSlUJm3Zwfe3OIlc6iRbXYk3BPeIEp/DX7x4bUtADzre"], ["created_at", "2015-03-19 05:04:07.915069"], ["updated_at", "2015-03-19 05:04:07.915069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.917739"], ["user_id", "5f660a36-cdf5-11e4-a691-705681abff85"], ["created_at", "2015-03-19 05:04:07.919339"], ["updated_at", "2015-03-19 05:04:07.919339"], ["token", "-zdZyu8zWyBaGy7Us0uFcabQTPiVQKw9q2bcIkoqzFo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.925138"], ["updated_at", "2015-03-19 05:04:07.925138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f660a36-cdf5-11e4-a691-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f6785aa-cdf5-11e4-b4fc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f660a36-cdf5-11e4-a691-705681abff85"], ["organization_id", "5f6785aa-cdf5-11e4-b4fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.930162"], ["updated_at", "2015-03-19 05:04:07.930162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '5f6785aa-cdf5-11e4-b4fc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "5f6785aa-cdf5-11e4-b4fc-705681abff85"], ["created_at", "2015-03-19 05:04:07.935774"], ["updated_at", "2015-03-19 05:04:07.935774"], ["token", "sWxq3EIhtQmTQBm47hHqMvqwxEQ3Os_UK0FuKr3zPr8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/5f692f86-cdf5-11e4-862f-705681abff85" for 127.0.0.1 at 2015-03-18 22:04:07 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"5f692f86-cdf5-11e4-862f-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:07.942780' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-zdZyu8zWyBaGy7Us0uFcabQTPiVQKw9q2bcIkoqzFo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:07.945186"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:07.946795"], ["id", "5f66cebc-cdf5-11e4-a92e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5f692f86-cdf5-11e4-862f-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f660a36-cdf5-11e4-a691-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f6785aa-cdf5-11e4-b4fc-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5f660a36-cdf5-11e4-a691-705681abff85' LIMIT 1 [["organization_id", "5f6785aa-cdf5-11e4-b4fc-705681abff85"]] Completed 200 OK in 27ms (Views: 1.6ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$W8cHM6dwdDe.tq3kCjzi5.BmzHj7N1vjm.OFri1xUIbM.GMA6NQwC"], ["created_at", "2015-03-19 05:04:07.977584"], ["updated_at", "2015-03-19 05:04:07.977584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:07.979547"], ["user_id", "5f6f8728-cdf5-11e4-b257-705681abff85"], ["created_at", "2015-03-19 05:04:07.980562"], ["updated_at", "2015-03-19 05:04:07.980562"], ["token", "6eqw7Ya3rUzuRKo9OCoO0wWufKa7t9z3NrYJzqwntu8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:07.985545"], ["updated_at", "2015-03-19 05:04:07.985545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f6f8728-cdf5-11e4-b257-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f70cf98-cdf5-11e4-88ff-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f6f8728-cdf5-11e4-b257-705681abff85"], ["organization_id", "5f70cf98-cdf5-11e4-88ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:07.991625"], ["updated_at", "2015-03-19 05:04:07.991625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '5f70cf98-cdf5-11e4-88ff-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "5f70cf98-cdf5-11e4-88ff-705681abff85"], ["created_at", "2015-03-19 05:04:07.998028"], ["updated_at", "2015-03-19 05:04:07.998028"], ["token", "7WYQ_0o2BkYUcHWGH2moDKhfgjPNqeyCgswqYYPVkvQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 22:04:08 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$HIlgYaxpQXkfJDs4e0QIVesovmeyFTruiq3UtadijcaRO9Q3GEXIS"], ["created_at", "2015-03-19 05:04:53.753710"], ["updated_at", "2015-03-19 05:04:53.753710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$uEOupEgLX1VlRE6Hyb/yXuO6OPdoz1QI2iFe7GXJOgeYmHnnvBQCS"], ["created_at", "2015-03-19 05:04:53.783628"], ["updated_at", "2015-03-19 05:04:53.783628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:53.823436"], ["user_id", "7abc2cd4-cdf5-11e4-98de-705681abff85"], ["created_at", "2015-03-19 05:04:53.828825"], ["updated_at", "2015-03-19 05:04:53.828825"], ["token", "f-732dZqbPz9gn78AmVhjOmiAY6xKo_tkRfEZrdcLoc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:53.841907"], ["updated_at", "2015-03-19 05:04:53.841907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7abc2cd4-cdf5-11e4-98de-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ac5eba2-cdf5-11e4-92fb-705681abff85') LIMIT 1 SQL (6.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7abc2cd4-cdf5-11e4-98de-705681abff85"], ["organization_id", "7ac5eba2-cdf5-11e4-92fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:53.853869"], ["updated_at", "2015-03-19 05:04:53.853869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7abcf7c2-cdf5-11e4-a604-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ac5eba2-cdf5-11e4-92fb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7abcf7c2-cdf5-11e4-a604-705681abff85"], ["organization_id", "7ac5eba2-cdf5-11e4-92fb-705681abff85"], ["created_at", "2015-03-19 05:04:53.864248"], ["updated_at", "2015-03-19 05:04:53.864248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 22:04:53 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$iXw0X71FvTnK2ArpU/V5LOUkv728PA3CuVJK9igKaxqHBGiQG3zoS"], ["created_at", "2015-03-19 05:04:53.894662"], ["updated_at", "2015-03-19 05:04:53.894662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$.tXKEFIeOSGYtEvDsdu45.b4WM05jXuSSuQwOOKuGQq9OShR1tfuS"], ["created_at", "2015-03-19 05:04:53.899045"], ["updated_at", "2015-03-19 05:04:53.899045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:53.900774"], ["user_id", "7acdea46-cdf5-11e4-a5fc-705681abff85"], ["created_at", "2015-03-19 05:04:53.901688"], ["updated_at", "2015-03-19 05:04:53.901688"], ["token", "mpn-lfN5E07nuLxKrn1GfohBXWa-3k0JM3rUtYwbAbg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:53.905202"], ["updated_at", "2015-03-19 05:04:53.905202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7acdea46-cdf5-11e4-a5fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '7acf8126-cdf5-11e4-9f1f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7acdea46-cdf5-11e4-a5fc-705681abff85"], ["organization_id", "7acf8126-cdf5-11e4-9f1f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:53.908760"], ["updated_at", "2015-03-19 05:04:53.908760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ace9068-cdf5-11e4-b8c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7acf8126-cdf5-11e4-9f1f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ace9068-cdf5-11e4-b8c9-705681abff85"], ["organization_id", "7acf8126-cdf5-11e4-9f1f-705681abff85"], ["created_at", "2015-03-19 05:04:53.912043"], ["updated_at", "2015-03-19 05:04:53.912043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7ad08ad0-cdf5-11e4-a988-705681abff85" for 127.0.0.1 at 2015-03-18 22:04:53 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7ad08ad0-cdf5-11e4-a988-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:53.918169' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mpn-lfN5E07nuLxKrn1GfohBXWa-3k0JM3rUtYwbAbg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:53.925223"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:53.926798"], ["id", "7acf0386-cdf5-11e4-8a8f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$c.I56kfdxhMD2KSHmKNuk.mANkK/QKpk11q7JzvmTJG4XfFpfIC7S"], ["created_at", "2015-03-19 05:04:53.936914"], ["updated_at", "2015-03-19 05:04:53.936914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$cv0Lk7VaRI0weSONCuvEveutA.GOyWSfAC9XIkq7Cd99YJxBhvjSy"], ["created_at", "2015-03-19 05:04:53.942387"], ["updated_at", "2015-03-19 05:04:53.942387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:53.945037"], ["user_id", "7ad45cb4-cdf5-11e4-9739-705681abff85"], ["created_at", "2015-03-19 05:04:53.946079"], ["updated_at", "2015-03-19 05:04:53.946079"], ["token", "5gi5LOcJuxvvwe4w4Qdz14TAr43Kuo1oYf2keaRoswI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:53.950238"], ["updated_at", "2015-03-19 05:04:53.950238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad45cb4-cdf5-11e4-9739-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ad6677a-cdf5-11e4-bb3f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ad45cb4-cdf5-11e4-9739-705681abff85"], ["organization_id", "7ad6677a-cdf5-11e4-bb3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:53.953944"], ["updated_at", "2015-03-19 05:04:53.953944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad541f6-cdf5-11e4-a3cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ad6677a-cdf5-11e4-bb3f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ad541f6-cdf5-11e4-a3cc-705681abff85"], ["organization_id", "7ad6677a-cdf5-11e4-bb3f-705681abff85"], ["created_at", "2015-03-19 05:04:53.957082"], ["updated_at", "2015-03-19 05:04:53.957082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:04:53 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$c6KVO6.ukHF5tbRBzPTQnO29PGLFegyaK2X7hQU.5TnBkkCulHHYe"], ["created_at", "2015-03-19 05:04:53.967263"], ["updated_at", "2015-03-19 05:04:53.967263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (3.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Yd83zDNryn.Uqt7h92gAVunA0FB8KXX6ygAaGTS7SzfO.1rMwpwD."], ["created_at", "2015-03-19 05:04:53.971982"], ["updated_at", "2015-03-19 05:04:53.971982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:53.977388"], ["user_id", "7ad90200-cdf5-11e4-97ad-705681abff85"], ["created_at", "2015-03-19 05:04:53.978321"], ["updated_at", "2015-03-19 05:04:53.978321"], ["token", "lKw_gyNadqAgHouoEHsNw5oZiAfo5FCoJV59a-Esfb0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:53.982031"], ["updated_at", "2015-03-19 05:04:53.982031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad90200-cdf5-11e4-97ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '7adb3ae8-cdf5-11e4-b8a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ad90200-cdf5-11e4-97ad-705681abff85"], ["organization_id", "7adb3ae8-cdf5-11e4-b8a3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:53.985486"], ["updated_at", "2015-03-19 05:04:53.985486"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad9b11e-cdf5-11e4-aff5-705681abff85' AND "clubhouse_memberships"."organization_id" = '7adb3ae8-cdf5-11e4-b8a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ad9b11e-cdf5-11e4-aff5-705681abff85"], ["organization_id", "7adb3ae8-cdf5-11e4-b8a3-705681abff85"], ["created_at", "2015-03-19 05:04:53.988752"], ["updated_at", "2015-03-19 05:04:53.988752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:04:53 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:53.993590' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lKw_gyNadqAgHouoEHsNw5oZiAfo5FCoJV59a-Esfb0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:53.995545"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:53.996923"], ["id", "7adab708-cdf5-11e4-9f1d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Ws88X8ockRp0bzoS2JKpwOWHYmMg2Hg4M8WS20sMbhfQMsWBku/hO"], ["created_at", "2015-03-19 05:04:54.005547"], ["updated_at", "2015-03-19 05:04:54.005547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$tXMYQ7cHYd4ln6/T5zh3M.kfa3Q.Fyl.QDeQkc7Jd1kgKgQo8gdle"], ["created_at", "2015-03-19 05:04:54.010606"], ["updated_at", "2015-03-19 05:04:54.010606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.012261"], ["user_id", "7aded16c-cdf5-11e4-8d22-705681abff85"], ["created_at", "2015-03-19 05:04:54.013067"], ["updated_at", "2015-03-19 05:04:54.013067"], ["token", "9Y5ZifQ9zdsEfp9OhrJoi1lGD5VGfyXfd2r7xPP88O4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.016484"], ["updated_at", "2015-03-19 05:04:54.016484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aded16c-cdf5-11e4-8d22-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ae07b5c-cdf5-11e4-a22e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7aded16c-cdf5-11e4-8d22-705681abff85"], ["organization_id", "7ae07b5c-cdf5-11e4-a22e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.019943"], ["updated_at", "2015-03-19 05:04:54.019943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7adf982c-cdf5-11e4-b89a-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ae07b5c-cdf5-11e4-a22e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7adf982c-cdf5-11e4-b89a-705681abff85"], ["organization_id", "7ae07b5c-cdf5-11e4-a22e-705681abff85"], ["created_at", "2015-03-19 05:04:54.023304"], ["updated_at", "2015-03-19 05:04:54.023304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$N8QIR0RPH8itnZ12yLfyc.JfUT2Pos5jmNKBQ8ndwd/8hmqa1H8Qy"], ["created_at", "2015-03-19 05:04:54.027740"], ["updated_at", "2015-03-19 05:04:54.027740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.029375"], ["user_id", "7ae233ca-cdf5-11e4-8fe4-705681abff85"], ["created_at", "2015-03-19 05:04:54.030172"], ["updated_at", "2015-03-19 05:04:54.030172"], ["token", "6vKKKjxOJjZYDnwEh5JmhmGconzpbvs-Nw3OeqopQkE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '7ae07b5c-cdf5-11e4-a22e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "7ae07b5c-cdf5-11e4-a22e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.041102"], ["updated_at", "2015-03-19 05:04:54.041102"], ["token", "7pNqSNLh2VnU0oPb33yz0UxXuQgyqfSIRqWmzC8Spqc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$MZf6faEvxHhahV/pTUYOAO7SvQDWAjz/dhc75Zpsvivn.Sg1i7nP6"], ["created_at", "2015-03-19 05:04:54.052477"], ["updated_at", "2015-03-19 05:04:54.052477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ZuKzR7RAubuXYpWzBTqZuOVBh3HWEmqlRJ8ucX5nGypmrRQaHDAZi"], ["created_at", "2015-03-19 05:04:54.056941"], ["updated_at", "2015-03-19 05:04:54.056941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.058456"], ["user_id", "7ae5fc44-cdf5-11e4-89c4-705681abff85"], ["created_at", "2015-03-19 05:04:54.059255"], ["updated_at", "2015-03-19 05:04:54.059255"], ["token", "M6WrX84-rLC9-PQo1qA6dTc-lvsCDiNWvSKX68a3oss"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.062564"], ["updated_at", "2015-03-19 05:04:54.062564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ae5fc44-cdf5-11e4-89c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ae78316-cdf5-11e4-9d2b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ae5fc44-cdf5-11e4-89c4-705681abff85"], ["organization_id", "7ae78316-cdf5-11e4-9d2b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.065742"], ["updated_at", "2015-03-19 05:04:54.065742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ae6a824-cdf5-11e4-b10c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ae78316-cdf5-11e4-9d2b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ae6a824-cdf5-11e4-b10c-705681abff85"], ["organization_id", "7ae78316-cdf5-11e4-9d2b-705681abff85"], ["created_at", "2015-03-19 05:04:54.068837"], ["updated_at", "2015-03-19 05:04:54.068837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ZKw5QGnPE8nGPOpr6oe1beajjrHz4/rDqY25dfBtTXpN4gSU0Q9su"], ["created_at", "2015-03-19 05:04:54.073357"], ["updated_at", "2015-03-19 05:04:54.073357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.074884"], ["user_id", "7ae9298c-cdf5-11e4-876b-705681abff85"], ["created_at", "2015-03-19 05:04:54.075656"], ["updated_at", "2015-03-19 05:04:54.075656"], ["token", "ym53DtjVcSoQQ_r3kdO1ZGFEHkXSSTfTohCZvHKi05Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '7ae78316-cdf5-11e4-9d2b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "7ae78316-cdf5-11e4-9d2b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.079295"], ["updated_at", "2015-03-19 05:04:54.079295"], ["token", "GEZEiowYlVGk3cWUVqOEcGuUaicYX153efZjlfNZfqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"GEZEiowYlVGk3cWUVqOEcGuUaicYX153efZjlfNZfqM", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:54.084932' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ym53DtjVcSoQQ_r3kdO1ZGFEHkXSSTfTohCZvHKi05Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:54.086401"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:54.087371"], ["id", "7ae98814-cdf5-11e4-b40f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$MaNekK.OMBtnqfwotRtsqucvF6Xi15An1JxTfmhJzjPnTb0kWfQNm"], ["created_at", "2015-03-19 05:04:54.098873"], ["updated_at", "2015-03-19 05:04:54.098873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$gmWj4XpB9REXaPQREB/kquA/bbTEw7Su7DShr89F9Zt6E67NkSmW6"], ["created_at", "2015-03-19 05:04:54.103458"], ["updated_at", "2015-03-19 05:04:54.103458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.105084"], ["user_id", "7aed1434-cdf5-11e4-b4cd-705681abff85"], ["created_at", "2015-03-19 05:04:54.106005"], ["updated_at", "2015-03-19 05:04:54.106005"], ["token", "raqysnt1vSoVLaxISvLfXiScetFUgK4rk6GHaUuRpFQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.109780"], ["updated_at", "2015-03-19 05:04:54.109780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aed1434-cdf5-11e4-b4cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '7aeeb9ba-cdf5-11e4-bda5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7aed1434-cdf5-11e4-b4cd-705681abff85"], ["organization_id", "7aeeb9ba-cdf5-11e4-bda5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.113125"], ["updated_at", "2015-03-19 05:04:54.113125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aedc3f2-cdf5-11e4-8333-705681abff85' AND "clubhouse_memberships"."organization_id" = '7aeeb9ba-cdf5-11e4-bda5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7aedc3f2-cdf5-11e4-8333-705681abff85"], ["organization_id", "7aeeb9ba-cdf5-11e4-bda5-705681abff85"], ["created_at", "2015-03-19 05:04:54.116293"], ["updated_at", "2015-03-19 05:04:54.116293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$tFYO5e0lrmMQbAvJ/SvqWeTjVTJiSF/LuNn3esFM0NIBPKMz9ETA."], ["created_at", "2015-03-19 05:04:54.120871"], ["updated_at", "2015-03-19 05:04:54.120871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.122597"], ["user_id", "7af06b2a-cdf5-11e4-bd74-705681abff85"], ["created_at", "2015-03-19 05:04:54.123373"], ["updated_at", "2015-03-19 05:04:54.123373"], ["token", "r4n_ZrnbRph5ML3FVfypRiJZxxLAUR6DcVDx4RKu6Cg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '7aeeb9ba-cdf5-11e4-bda5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "7aeeb9ba-cdf5-11e4-bda5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.127557"], ["updated_at", "2015-03-19 05:04:54.127557"], ["token", "hIQqjin7RU3CMcTsfVsphx5A6n8C-9DbCkHrtJRHNU0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:54.135526' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r4n_ZrnbRph5ML3FVfypRiJZxxLAUR6DcVDx4RKu6Cg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:54.137156"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:54.138207"], ["id", "7af0d9c0-cdf5-11e4-923a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$xnT2FI79pZc69oRw9bNB6ujMWPjZuVwvqTUU16x5VzuLWHLpNXld."], ["created_at", "2015-03-19 05:04:54.151205"], ["updated_at", "2015-03-19 05:04:54.151205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$R8Z6C3U84o7vVryCLli0M.w.fPQmbbpcylCl6uCL6CSxTFjbu/UAe"], ["created_at", "2015-03-19 05:04:54.155698"], ["updated_at", "2015-03-19 05:04:54.155698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.157510"], ["user_id", "7af510f8-cdf5-11e4-8f72-705681abff85"], ["created_at", "2015-03-19 05:04:54.158359"], ["updated_at", "2015-03-19 05:04:54.158359"], ["token", "tGWQRn4SELQ4IKxuHYDuBHjERIOZCR25Nap_revvlMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.162163"], ["updated_at", "2015-03-19 05:04:54.162163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7af510f8-cdf5-11e4-8f72-705681abff85' AND "clubhouse_memberships"."organization_id" = '7af6b6a6-cdf5-11e4-a730-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7af510f8-cdf5-11e4-8f72-705681abff85"], ["organization_id", "7af6b6a6-cdf5-11e4-a730-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.165453"], ["updated_at", "2015-03-19 05:04:54.165453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7af5bbca-cdf5-11e4-bbed-705681abff85' AND "clubhouse_memberships"."organization_id" = '7af6b6a6-cdf5-11e4-a730-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7af5bbca-cdf5-11e4-bbed-705681abff85"], ["organization_id", "7af6b6a6-cdf5-11e4-a730-705681abff85"], ["created_at", "2015-03-19 05:04:54.169420"], ["updated_at", "2015-03-19 05:04:54.169420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (17.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$fM47599pGuzHyeYrrACwi.t6IMRcSHJRTAKDEzxyW2vTXS9r0DtLi"], ["created_at", "2015-03-19 05:04:54.187075"], ["updated_at", "2015-03-19 05:04:54.187075"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$do85tgNQshLB/WJDvJKT/OWcGcudsX.qRAG6dAhOu6j3uVy5JNgBe"], ["created_at", "2015-03-19 05:04:54.212829"], ["updated_at", "2015-03-19 05:04:54.212829"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.218222"], ["user_id", "7afcb3a8-cdf5-11e4-9927-705681abff85"], ["created_at", "2015-03-19 05:04:54.220629"], ["updated_at", "2015-03-19 05:04:54.220629"], ["token", "h9lydLVrG3hRsehF3ravGwTkAm4iS_Ga5J8kdQ1B0Qw"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.247632"], ["updated_at", "2015-03-19 05:04:54.247632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7afcb3a8-cdf5-11e4-9927-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b03e7f4-cdf5-11e4-aabf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7afcb3a8-cdf5-11e4-9927-705681abff85"], ["organization_id", "7b03e7f4-cdf5-11e4-aabf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.254458"], ["updated_at", "2015-03-19 05:04:54.254458"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7afea082-cdf5-11e4-93c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b03e7f4-cdf5-11e4-aabf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7afea082-cdf5-11e4-93c9-705681abff85"], ["organization_id", "7b03e7f4-cdf5-11e4-aabf-705681abff85"], ["created_at", "2015-03-19 05:04:54.258615"], ["updated_at", "2015-03-19 05:04:54.258615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7b03e7f4-cdf5-11e4-aabf-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"7b03e7f4-cdf5-11e4-aabf-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:54.264781' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "h9lydLVrG3hRsehF3ravGwTkAm4iS_Ga5J8kdQ1B0Qw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:54.266556"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:54.267713"], ["id", "7afff856-cdf5-11e4-956c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (5.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$NzFeUbEpycVGI.33xHpaI.WOrgVOHIRGaNFAhvefqhftoAtfQl8au"], ["created_at", "2015-03-19 05:04:54.277841"], ["updated_at", "2015-03-19 05:04:54.277841"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$DVwpH3V9dmeQaxPNzBwcXefpCRynJrlROFwNkrKuD36mXD.NuTRnK"], ["created_at", "2015-03-19 05:04:54.289833"], ["updated_at", "2015-03-19 05:04:54.289833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.291450"], ["user_id", "7b085f82-cdf5-11e4-a5af-705681abff85"], ["created_at", "2015-03-19 05:04:54.292245"], ["updated_at", "2015-03-19 05:04:54.292245"], ["token", "IGXrIbM5ztsUCftyuRAR_aJNGW9TyoCVWZHhjZkeqg8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.295605"], ["updated_at", "2015-03-19 05:04:54.295605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b085f82-cdf5-11e4-a5af-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b0b1146-cdf5-11e4-8815-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b085f82-cdf5-11e4-a5af-705681abff85"], ["organization_id", "7b0b1146-cdf5-11e4-8815-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.298866"], ["updated_at", "2015-03-19 05:04:54.298866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b0a33fc-cdf5-11e4-b57f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b0b1146-cdf5-11e4-8815-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b0a33fc-cdf5-11e4-b57f-705681abff85"], ["organization_id", "7b0b1146-cdf5-11e4-8815-705681abff85"], ["created_at", "2015-03-19 05:04:54.302232"], ["updated_at", "2015-03-19 05:04:54.302232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$MhOhG.F0xCaQ40PS69OvIun0u7PK2hFgcZB4tXbiJRJs2hEntHTz2"], ["created_at", "2015-03-19 05:04:54.312733"], ["updated_at", "2015-03-19 05:04:54.312733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$7hPG8RRNwyDmFgVvw1v.8e60w2.fevbebdpJKbOK5TKPhgxX53rX2"], ["created_at", "2015-03-19 05:04:54.317250"], ["updated_at", "2015-03-19 05:04:54.317250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.318810"], ["user_id", "7b0db69e-cdf5-11e4-b4d4-705681abff85"], ["created_at", "2015-03-19 05:04:54.319738"], ["updated_at", "2015-03-19 05:04:54.319738"], ["token", "KxKhZ80BoZ8VZNkx48hhiiHx72vNDyXY37i04eicAgc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.323540"], ["updated_at", "2015-03-19 05:04:54.323540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b0db69e-cdf5-11e4-b4d4-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b0f5562-cdf5-11e4-ba34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b0db69e-cdf5-11e4-b4d4-705681abff85"], ["organization_id", "7b0f5562-cdf5-11e4-ba34-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.326980"], ["updated_at", "2015-03-19 05:04:54.326980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b0e608a-cdf5-11e4-9c64-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b0f5562-cdf5-11e4-ba34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b0e608a-cdf5-11e4-9c64-705681abff85"], ["organization_id", "7b0f5562-cdf5-11e4-ba34-705681abff85"], ["created_at", "2015-03-19 05:04:54.330055"], ["updated_at", "2015-03-19 05:04:54.330055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/7b0fddfc-cdf5-11e4-985b-705681abff85" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"7b0fddfc-cdf5-11e4-985b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:54.335330' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KxKhZ80BoZ8VZNkx48hhiiHx72vNDyXY37i04eicAgc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:54.336994"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:54.338563"], ["id", "7b0ed402-cdf5-11e4-92fb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$SpfWMWXA1Nl8m2nOE.jQTeLt2pa84q1yor67FnAATvtkNCV7cWE/a"], ["created_at", "2015-03-19 05:04:54.347590"], ["updated_at", "2015-03-19 05:04:54.347590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$eRg11YBVVLDuqfuhwEhv5eOJ31o4X.dhC8IK4ccnv.f3YD.5I4hOO"], ["created_at", "2015-03-19 05:04:54.352086"], ["updated_at", "2015-03-19 05:04:54.352086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.353631"], ["user_id", "7b13037e-cdf5-11e4-98c9-705681abff85"], ["created_at", "2015-03-19 05:04:54.354408"], ["updated_at", "2015-03-19 05:04:54.354408"], ["token", "DpUOQE-0IeuqALoa5NJDIyvNLtltzzxNjgjmR3MuSwI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.357798"], ["updated_at", "2015-03-19 05:04:54.357798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b13037e-cdf5-11e4-98c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b14909a-cdf5-11e4-a40b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b13037e-cdf5-11e4-98c9-705681abff85"], ["organization_id", "7b14909a-cdf5-11e4-a40b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.361200"], ["updated_at", "2015-03-19 05:04:54.361200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b13b166-cdf5-11e4-b3e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b14909a-cdf5-11e4-a40b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b13b166-cdf5-11e4-b3e9-705681abff85"], ["organization_id", "7b14909a-cdf5-11e4-a40b-705681abff85"], ["created_at", "2015-03-19 05:04:54.364318"], ["updated_at", "2015-03-19 05:04:54.364318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$AFWu.2wtoHAElKyp3l1/7ul7ulVKEPpGNbgvnTJKrN/n/UZm5QnvS"], ["created_at", "2015-03-19 05:04:54.368765"], ["updated_at", "2015-03-19 05:04:54.368765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.370374"], ["user_id", "7b163efe-cdf5-11e4-ac77-705681abff85"], ["created_at", "2015-03-19 05:04:54.371145"], ["updated_at", "2015-03-19 05:04:54.371145"], ["token", "B6h8gHmKTYOKFVXzfNzkBvcRYWu99f_Gcrsl9dM90tI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '7b14909a-cdf5-11e4-a40b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "7b14909a-cdf5-11e4-a40b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.374998"], ["updated_at", "2015-03-19 05:04:54.374998"], ["token", "5zsYqPe3o5dMURL288hXkfYZ5jgZJQYN6EStq67Ie5A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$ZHns.YPiUsQP43cXxhLdLeZedDfmgfaYe1f1Fmcn0cU2XoXqLd0o6"], ["created_at", "2015-03-19 05:04:54.385234"], ["updated_at", "2015-03-19 05:04:54.385234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$2B2FvsD5EUrF7m4T53z7muPSDu5fQH2WHP4G12MloFJQvFW6Ps19e"], ["created_at", "2015-03-19 05:04:54.389871"], ["updated_at", "2015-03-19 05:04:54.389871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.391464"], ["user_id", "7b18c188-cdf5-11e4-a985-705681abff85"], ["created_at", "2015-03-19 05:04:54.392244"], ["updated_at", "2015-03-19 05:04:54.392244"], ["token", "hZOmVIwkt0GGfV9URJFDk2Yd-5wGsXVqRzUHkAiIpx8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.395586"], ["updated_at", "2015-03-19 05:04:54.395586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b18c188-cdf5-11e4-a985-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b1a5390-cdf5-11e4-b70f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b18c188-cdf5-11e4-a985-705681abff85"], ["organization_id", "7b1a5390-cdf5-11e4-b70f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.398915"], ["updated_at", "2015-03-19 05:04:54.398915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b197696-cdf5-11e4-ae02-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b1a5390-cdf5-11e4-b70f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b197696-cdf5-11e4-ae02-705681abff85"], ["organization_id", "7b1a5390-cdf5-11e4-b70f-705681abff85"], ["created_at", "2015-03-19 05:04:54.402223"], ["updated_at", "2015-03-19 05:04:54.402223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$GYRkRgN8xYvSotpNgcO4sOoOkWiOF8dGLEa9LSx3BjcHR1W68jSG6"], ["created_at", "2015-03-19 05:04:54.406841"], ["updated_at", "2015-03-19 05:04:54.406841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.408410"], ["user_id", "7b1c0dde-cdf5-11e4-9639-705681abff85"], ["created_at", "2015-03-19 05:04:54.409178"], ["updated_at", "2015-03-19 05:04:54.409178"], ["token", "vJCs9EEcTvSTrl6l0DTOPvVFkbCFDhMK7EzBzTRP4Zw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '7b1a5390-cdf5-11e4-b70f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "7b1a5390-cdf5-11e4-b70f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.413092"], ["updated_at", "2015-03-19 05:04:54.413092"], ["token", "2ZIMPPxNfYdWBox0GGVrA_g1BZ0wLmYxX_4qe4nzxLI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7b1a5390-cdf5-11e4-b70f-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"2ZIMPPxNfYdWBox0GGVrA_g1BZ0wLmYxX_4qe4nzxLI", "organization_id"=>"7b1a5390-cdf5-11e4-b70f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:54.418762' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vJCs9EEcTvSTrl6l0DTOPvVFkbCFDhMK7EzBzTRP4Zw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:54.420130"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:54.421314"], ["id", "7b1c71ca-cdf5-11e4-8a69-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$dmnYkmD1xeQkrWVv8qJmsufOwVnMJgHhaNBkMluCuFxE7HpLbRIsW"], ["created_at", "2015-03-19 05:04:54.430268"], ["updated_at", "2015-03-19 05:04:54.430268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$X5nb1ZJ2g3j4HllXNU4QvOtpuLaDCN.7eJ/ArND3pcmZYy6QNXsPO"], ["created_at", "2015-03-19 05:04:54.435077"], ["updated_at", "2015-03-19 05:04:54.435077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.436730"], ["user_id", "7b1fa124-cdf5-11e4-b5ad-705681abff85"], ["created_at", "2015-03-19 05:04:54.437520"], ["updated_at", "2015-03-19 05:04:54.437520"], ["token", "3-TDSq3NCk1bGYXEzdLPx1SSBClx0gnSxMji269j4nU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.441345"], ["updated_at", "2015-03-19 05:04:54.441345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b1fa124-cdf5-11e4-b5ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b214fe2-cdf5-11e4-86c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b1fa124-cdf5-11e4-b5ad-705681abff85"], ["organization_id", "7b214fe2-cdf5-11e4-86c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.445447"], ["updated_at", "2015-03-19 05:04:54.445447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b205bb4-cdf5-11e4-971f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b214fe2-cdf5-11e4-86c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b205bb4-cdf5-11e4-971f-705681abff85"], ["organization_id", "7b214fe2-cdf5-11e4-86c8-705681abff85"], ["created_at", "2015-03-19 05:04:54.448595"], ["updated_at", "2015-03-19 05:04:54.448595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$sLUmoxdnfbl/R3CZvWHc8uy3aAu3ZU5Kwrs7RhgM57lspg8/rkhC6"], ["created_at", "2015-03-19 05:04:54.453727"], ["updated_at", "2015-03-19 05:04:54.453727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.455974"], ["user_id", "7b234a0e-cdf5-11e4-b7d9-705681abff85"], ["created_at", "2015-03-19 05:04:54.456743"], ["updated_at", "2015-03-19 05:04:54.456743"], ["token", "1VuHQ1-vzIRzXJQrJ3tA5TSRGzayjeS5J3EjLYA-acw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '7b214fe2-cdf5-11e4-86c8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "7b214fe2-cdf5-11e4-86c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.460695"], ["updated_at", "2015-03-19 05:04:54.460695"], ["token", "ETfe3TVi63Xo2dz9ax8D30tMDKvM2fvwevd15YMZOFQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7b214fe2-cdf5-11e4-86c8-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"7b214fe2-cdf5-11e4-86c8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:54.466426' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1VuHQ1-vzIRzXJQrJ3tA5TSRGzayjeS5J3EjLYA-acw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:54.467903"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:54.468876"], ["id", "7b23b3b8-cdf5-11e4-a4c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$HTS5P4QxLt991JnZBK1Vhus.QdIUg48uHE/SbzLvyoavYbOELYhgy"], ["created_at", "2015-03-19 05:04:54.482305"], ["updated_at", "2015-03-19 05:04:54.482305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$TYM7y6VyExg9XQgVEpOYuONyUwIW/UvOw0w8VQeI7t1/NjUYt5EUu"], ["created_at", "2015-03-19 05:04:54.486836"], ["updated_at", "2015-03-19 05:04:54.486836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.488438"], ["user_id", "7b2794e2-cdf5-11e4-8263-705681abff85"], ["created_at", "2015-03-19 05:04:54.489278"], ["updated_at", "2015-03-19 05:04:54.489278"], ["token", "rjZZtEwXqrAuAvju6L5btNsK5Q8InHndtLoiteTbIjQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.492702"], ["updated_at", "2015-03-19 05:04:54.492702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b2794e2-cdf5-11e4-8263-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b2924f6-cdf5-11e4-b37a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b2794e2-cdf5-11e4-8263-705681abff85"], ["organization_id", "7b2924f6-cdf5-11e4-b37a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.495931"], ["updated_at", "2015-03-19 05:04:54.495931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b28419e-cdf5-11e4-a27a-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b2924f6-cdf5-11e4-b37a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b28419e-cdf5-11e4-a27a-705681abff85"], ["organization_id", "7b2924f6-cdf5-11e4-b37a-705681abff85"], ["created_at", "2015-03-19 05:04:54.499181"], ["updated_at", "2015-03-19 05:04:54.499181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$vQfvglgMcwmZpBE3ZeEAYu6Ehhrg8LdqErv9qP/MgukEbAQhUJL6i"], ["created_at", "2015-03-19 05:04:54.509045"], ["updated_at", "2015-03-19 05:04:54.509045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$.C2BbE.53TtPGBXzEpB68OAlqnVahb7x1bXmPuRY7e391uFOB4G9i"], ["created_at", "2015-03-19 05:04:54.513626"], ["updated_at", "2015-03-19 05:04:54.513626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:04:54.515825"], ["user_id", "7b2ba6a4-cdf5-11e4-a7f6-705681abff85"], ["created_at", "2015-03-19 05:04:54.516680"], ["updated_at", "2015-03-19 05:04:54.516680"], ["token", "Oy94Kch-i-hNc8yaax68xXKUsr9rCfYmolqKCo1tNTk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:04:54.520202"], ["updated_at", "2015-03-19 05:04:54.520202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b2ba6a4-cdf5-11e4-a7f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b2d5b84-cdf5-11e4-83e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b2ba6a4-cdf5-11e4-a7f6-705681abff85"], ["organization_id", "7b2d5b84-cdf5-11e4-83e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:04:54.524237"], ["updated_at", "2015-03-19 05:04:54.524237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b2c67e2-cdf5-11e4-863d-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b2d5b84-cdf5-11e4-83e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b2c67e2-cdf5-11e4-863d-705681abff85"], ["organization_id", "7b2d5b84-cdf5-11e4-83e8-705681abff85"], ["created_at", "2015-03-19 05:04:54.527479"], ["updated_at", "2015-03-19 05:04:54.527479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/7b2e74ce-cdf5-11e4-9ce6-705681abff85" for 127.0.0.1 at 2015-03-18 22:04:54 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"7b2e74ce-cdf5-11e4-9ce6-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:04:54.532108' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Oy94Kch-i-hNc8yaax68xXKUsr9rCfYmolqKCo1tNTk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:04:54.533553"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:04:54.534589"], ["id", "7b2cd90c-cdf5-11e4-8a85-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$6a.oH5UZEG/GnzmvPzd5JuoyJUY7iVe79aoDXFHZHvTQfMiOnd3n2"], ["created_at", "2015-03-19 05:07:40.429201"], ["updated_at", "2015-03-19 05:07:40.429201"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$T0f7kSo4C0w5JJxFo9uBMe.33fLzu//VsJFmIYWDbYJWgjW97mVC6"], ["created_at", "2015-03-19 05:07:40.459433"], ["updated_at", "2015-03-19 05:07:40.459433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (18.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.500265"], ["user_id", "de14c548-cdf5-11e4-872f-705681abff85"], ["created_at", "2015-03-19 05:07:40.506535"], ["updated_at", "2015-03-19 05:07:40.506535"], ["token", "vmIdoHZSY5kStheZD_eqBD7i9BExu9iRMUybrGon3Wg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:40.533065"], ["updated_at", "2015-03-19 05:07:40.533065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de14c548-cdf5-11e4-872f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de20eecc-cdf5-11e4-87c7-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de14c548-cdf5-11e4-872f-705681abff85"], ["organization_id", "de20eecc-cdf5-11e4-87c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.544342"], ["updated_at", "2015-03-19 05:07:40.544342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de15af30-cdf5-11e4-b74e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de20eecc-cdf5-11e4-87c7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de15af30-cdf5-11e4-b74e-705681abff85"], ["organization_id", "de20eecc-cdf5-11e4-87c7-705681abff85"], ["created_at", "2015-03-19 05:07:40.548232"], ["updated_at", "2015-03-19 05:07:40.548232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/de233bb4-cdf5-11e4-890c-705681abff85" for 127.0.0.1 at 2015-03-18 22:07:40 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"de233bb4-cdf5-11e4-890c-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:07:40.576477' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vmIdoHZSY5kStheZD_eqBD7i9BExu9iRMUybrGon3Wg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:07:40.583385"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:07:40.584516"], ["id", "de1cf3ee-cdf5-11e4-a980-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "de233bb4-cdf5-11e4-890c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de14c548-cdf5-11e4-872f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de20eecc-cdf5-11e4-87c7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de14c548-cdf5-11e4-872f-705681abff85' LIMIT 1 [["organization_id", "de20eecc-cdf5-11e4-87c7-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de15af30-cdf5-11e4-b74e-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de15af30-cdf5-11e4-b74e-705681abff85' AND "clubhouse_memberships"."id" != 'de233bb4-cdf5-11e4-890c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de20eecc-cdf5-11e4-87c7-705681abff85') LIMIT 1 SQL (5.8ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:07:40.607929"], ["id", "de233bb4-cdf5-11e4-890c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 44ms (Views: 4.7ms | ActiveRecord: 8.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$r0nf7llemHcUchr0qHKyQee5nOP8GtT.oKuikQSYLvlgVRi9NWxFe"], ["created_at", "2015-03-19 05:07:40.629008"], ["updated_at", "2015-03-19 05:07:40.629008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$/lIrwbJ2XuuKZis3rARf2ucoawDovwu2Xrifiage5oMtrjZLp7e0u"], ["created_at", "2015-03-19 05:07:40.633422"], ["updated_at", "2015-03-19 05:07:40.633422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.635104"], ["user_id", "de2f8f68-cdf5-11e4-881d-705681abff85"], ["created_at", "2015-03-19 05:07:40.636032"], ["updated_at", "2015-03-19 05:07:40.636032"], ["token", "ErEqkEHqzXgATKcuY5CGD7T_D8KrTecKqznrHzWKJyA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:40.639854"], ["updated_at", "2015-03-19 05:07:40.639854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de2f8f68-cdf5-11e4-881d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de31307a-cdf5-11e4-92f1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de2f8f68-cdf5-11e4-881d-705681abff85"], ["organization_id", "de31307a-cdf5-11e4-92f1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.643252"], ["updated_at", "2015-03-19 05:07:40.643252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de303602-cdf5-11e4-8d8e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de31307a-cdf5-11e4-92f1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de303602-cdf5-11e4-8d8e-705681abff85"], ["organization_id", "de31307a-cdf5-11e4-92f1-705681abff85"], ["created_at", "2015-03-19 05:07:40.646783"], ["updated_at", "2015-03-19 05:07:40.646783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 22:07:40 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$/W/tHu3q7H5ao/kIhY7NoOXXEI4yMarkTlmRxJx1CSvhSrr5mE4dm"], ["created_at", "2015-03-19 05:07:40.661417"], ["updated_at", "2015-03-19 05:07:40.661417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$zLfazhboc/M5eOrmqNgwsuhF4FSkQzVpSOyyv2rsfqRowFmX6D/kS"], ["created_at", "2015-03-19 05:07:40.665992"], ["updated_at", "2015-03-19 05:07:40.665992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.667621"], ["user_id", "de3481bc-cdf5-11e4-83da-705681abff85"], ["created_at", "2015-03-19 05:07:40.668396"], ["updated_at", "2015-03-19 05:07:40.668396"], ["token", "Okw2FSj8gytcYP1bfK0Wo5OLrQZoshdRPLh6bdZuwq8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:40.671837"], ["updated_at", "2015-03-19 05:07:40.671837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de3481bc-cdf5-11e4-83da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de36113a-cdf5-11e4-b5a4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de3481bc-cdf5-11e4-83da-705681abff85"], ["organization_id", "de36113a-cdf5-11e4-b5a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.675501"], ["updated_at", "2015-03-19 05:07:40.675501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de353008-cdf5-11e4-9381-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de36113a-cdf5-11e4-b5a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de353008-cdf5-11e4-9381-705681abff85"], ["organization_id", "de36113a-cdf5-11e4-b5a4-705681abff85"], ["created_at", "2015-03-19 05:07:40.679213"], ["updated_at", "2015-03-19 05:07:40.679213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/de3732a4-cdf5-11e4-bd17-705681abff85" for 127.0.0.1 at 2015-03-18 22:07:40 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"de3732a4-cdf5-11e4-bd17-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:07:40.684004' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Okw2FSj8gytcYP1bfK0Wo5OLrQZoshdRPLh6bdZuwq8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:07:40.685656"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:07:40.686825"], ["id", "de359408-cdf5-11e4-87d2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "de3732a4-cdf5-11e4-bd17-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de3481bc-cdf5-11e4-83da-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de36113a-cdf5-11e4-b5a4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de3481bc-cdf5-11e4-83da-705681abff85' LIMIT 1 [["organization_id", "de36113a-cdf5-11e4-b5a4-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de353008-cdf5-11e4-9381-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$wlNwEg4FnQ25duXLsCwbIOYsWerieoIl9IVtL0UakP026Sb4tuh9u"], ["created_at", "2015-03-19 05:07:40.699594"], ["updated_at", "2015-03-19 05:07:40.699594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$OpnCaYDcaDKVXVJkHmxt5OiqlPtGJkSqyLvQun/SDprOfY62sLS8G"], ["created_at", "2015-03-19 05:07:40.703889"], ["updated_at", "2015-03-19 05:07:40.703889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.705643"], ["user_id", "de3a522c-cdf5-11e4-9589-705681abff85"], ["created_at", "2015-03-19 05:07:40.706452"], ["updated_at", "2015-03-19 05:07:40.706452"], ["token", "w_5ihm9Tdi4QF6ugZZ1RVgV3hMijW6X-ksWOe1jQrNk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:40.709972"], ["updated_at", "2015-03-19 05:07:40.709972"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de3a522c-cdf5-11e4-9589-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de3be308-cdf5-11e4-96d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de3a522c-cdf5-11e4-9589-705681abff85"], ["organization_id", "de3be308-cdf5-11e4-96d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.715523"], ["updated_at", "2015-03-19 05:07:40.715523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de3afcea-cdf5-11e4-8433-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de3be308-cdf5-11e4-96d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de3afcea-cdf5-11e4-8433-705681abff85"], ["organization_id", "de3be308-cdf5-11e4-96d3-705681abff85"], ["created_at", "2015-03-19 05:07:40.718572"], ["updated_at", "2015-03-19 05:07:40.718572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 22:07:40 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$rFnkE5YcaWn3IQfJ.5UOtOjnE2bT83BqpaVJMjpwSluEjYcpG7q42"], ["created_at", "2015-03-19 05:07:40.728642"], ["updated_at", "2015-03-19 05:07:40.728642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$zJdIl62c7nSctlVH8nR4P.avL.xtzbtTUzEiWh49BP8bwivUiZsc2"], ["created_at", "2015-03-19 05:07:40.733592"], ["updated_at", "2015-03-19 05:07:40.733592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.735247"], ["user_id", "de3ec7e4-cdf5-11e4-b95f-705681abff85"], ["created_at", "2015-03-19 05:07:40.736022"], ["updated_at", "2015-03-19 05:07:40.736022"], ["token", "kVvgpZRLvR3IXY04ZPowkcK3ZfZGVfGnQKmQcGDNcxo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:40.739612"], ["updated_at", "2015-03-19 05:07:40.739612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de3ec7e4-cdf5-11e4-b95f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de4069c8-cdf5-11e4-b383-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de3ec7e4-cdf5-11e4-b95f-705681abff85"], ["organization_id", "de4069c8-cdf5-11e4-b383-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.742868"], ["updated_at", "2015-03-19 05:07:40.742868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de3f8012-cdf5-11e4-ad79-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de4069c8-cdf5-11e4-b383-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de3f8012-cdf5-11e4-ad79-705681abff85"], ["organization_id", "de4069c8-cdf5-11e4-b383-705681abff85"], ["created_at", "2015-03-19 05:07:40.746046"], ["updated_at", "2015-03-19 05:07:40.746046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:07:40 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:07:40.751473' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kVvgpZRLvR3IXY04ZPowkcK3ZfZGVfGnQKmQcGDNcxo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:07:40.752919"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:07:40.753971"], ["id", "de3fe688-cdf5-11e4-ad28-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de3ec7e4-cdf5-11e4-b95f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de3ec7e4-cdf5-11e4-b95f-705681abff85' LIMIT 1 [["organization_id", "de4069c8-cdf5-11e4-b383-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "de4069c8-cdf5-11e4-b383-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('de3ec7e4-cdf5-11e4-b95f-705681abff85', 'de3f8012-cdf5-11e4-ad79-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('de4069c8-cdf5-11e4-b383-705681abff85') Completed 200 OK in 18ms (Views: 8.8ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$mHGfX8txi5gaOH/YHC4Mf.yqhGvhI2DWNVG6AXr6cN6G.1uLUyoYe"], ["created_at", "2015-03-19 05:07:40.777017"], ["updated_at", "2015-03-19 05:07:40.777017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$UUVtHGLurRTEX6TxwIgvYOQRK2ibRNNnIAPWQDr.fHpFTLZNJRwie"], ["created_at", "2015-03-19 05:07:40.781733"], ["updated_at", "2015-03-19 05:07:40.781733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.783354"], ["user_id", "de462b9c-cdf5-11e4-b486-705681abff85"], ["created_at", "2015-03-19 05:07:40.784182"], ["updated_at", "2015-03-19 05:07:40.784182"], ["token", "41pfbaCYi66av--2A598LEKiWzE1daozQBeGOXPj6Es"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:40.788519"], ["updated_at", "2015-03-19 05:07:40.788519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de462b9c-cdf5-11e4-b486-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de47e4a0-cdf5-11e4-8fb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de462b9c-cdf5-11e4-b486-705681abff85"], ["organization_id", "de47e4a0-cdf5-11e4-8fb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.792647"], ["updated_at", "2015-03-19 05:07:40.792647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de46d89e-cdf5-11e4-9c3a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de47e4a0-cdf5-11e4-8fb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de46d89e-cdf5-11e4-9c3a-705681abff85"], ["organization_id", "de47e4a0-cdf5-11e4-8fb1-705681abff85"], ["created_at", "2015-03-19 05:07:40.796215"], ["updated_at", "2015-03-19 05:07:40.796215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:07:40 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (3.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$bkL2LtngtAssrOVrsP72B.5Ki78yYAw5XXKjwmuaSTXo/EOWy9SCK"], ["created_at", "2015-03-19 05:07:40.806417"], ["updated_at", "2015-03-19 05:07:40.806417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$u5KlzYetwnqAqcs2ZDYUb.CQZ4MDaOWwreTolrABiz6CxB.FWLfEa"], ["created_at", "2015-03-19 05:07:40.814944"], ["updated_at", "2015-03-19 05:07:40.814944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.816831"], ["user_id", "de4aa4a6-cdf5-11e4-b14a-705681abff85"], ["created_at", "2015-03-19 05:07:40.817843"], ["updated_at", "2015-03-19 05:07:40.817843"], ["token", "sKUtar8UacXk7MlvzWUaGMibPZY7Zq4xJzW1d-JhRw8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:40.821927"], ["updated_at", "2015-03-19 05:07:40.821927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de4aa4a6-cdf5-11e4-b14a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de4cfa12-cdf5-11e4-bbde-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de4aa4a6-cdf5-11e4-b14a-705681abff85"], ["organization_id", "de4cfa12-cdf5-11e4-bbde-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.825399"], ["updated_at", "2015-03-19 05:07:40.825399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de4bf0ae-cdf5-11e4-98dd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de4cfa12-cdf5-11e4-bbde-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de4bf0ae-cdf5-11e4-98dd-705681abff85"], ["organization_id", "de4cfa12-cdf5-11e4-bbde-705681abff85"], ["created_at", "2015-03-19 05:07:40.829046"], ["updated_at", "2015-03-19 05:07:40.829046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/de4cfa12-cdf5-11e4-bbde-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:07:40 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"de4cfa12-cdf5-11e4-bbde-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:07:40.833748' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sKUtar8UacXk7MlvzWUaGMibPZY7Zq4xJzW1d-JhRw8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:07:40.835199"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:07:40.836187"], ["id", "de4c634a-cdf5-11e4-929a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "de4cfa12-cdf5-11e4-bbde-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de4aa4a6-cdf5-11e4-b14a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de4aa4a6-cdf5-11e4-b14a-705681abff85' LIMIT 1 [["organization_id", "de4cfa12-cdf5-11e4-bbde-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "de4cfa12-cdf5-11e4-bbde-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('de4aa4a6-cdf5-11e4-b14a-705681abff85', 'de4bf0ae-cdf5-11e4-98dd-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('de4cfa12-cdf5-11e4-bbde-705681abff85') Completed 200 OK in 13ms (Views: 4.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$7g71k7jJxsLyfPu.QcAsf.0cjPesUjmYYGo4ouHmbvu23qd9xjIzS"], ["created_at", "2015-03-19 05:07:40.853673"], ["updated_at", "2015-03-19 05:07:40.853673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$h6S97dWl2/gt/W10aaKFxuRg0nw5Tl7KsFMZiAncs18fwNvD5RSf."], ["created_at", "2015-03-19 05:07:40.858538"], ["updated_at", "2015-03-19 05:07:40.858538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.860198"], ["user_id", "de51dc58-cdf5-11e4-a7c9-705681abff85"], ["created_at", "2015-03-19 05:07:40.861089"], ["updated_at", "2015-03-19 05:07:40.861089"], ["token", "Fcz5ohi20hRtfiezZHwaeHpDzMN1vmhxE08UDZQJ578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:40.872945"], ["updated_at", "2015-03-19 05:07:40.872945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de51dc58-cdf5-11e4-a7c9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de54d67e-cdf5-11e4-aaca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de51dc58-cdf5-11e4-a7c9-705681abff85"], ["organization_id", "de54d67e-cdf5-11e4-aaca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.877334"], ["updated_at", "2015-03-19 05:07:40.877334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de52913e-cdf5-11e4-a68e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de54d67e-cdf5-11e4-aaca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de52913e-cdf5-11e4-a68e-705681abff85"], ["organization_id", "de54d67e-cdf5-11e4-aaca-705681abff85"], ["created_at", "2015-03-19 05:07:40.880678"], ["updated_at", "2015-03-19 05:07:40.880678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:07:40 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$a2JGfhbExmg3uqPvHqRog.dChS2qJ/jW.H.AY2lD6fpR9kBe8j/ia"], ["created_at", "2015-03-19 05:07:40.891694"], ["updated_at", "2015-03-19 05:07:40.891694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$gpgWTE7oYJnkDXZdtAnsCu9yNTNzzJUlEhgEQufMnZe20S54n05JO"], ["created_at", "2015-03-19 05:07:40.896391"], ["updated_at", "2015-03-19 05:07:40.896391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.898241"], ["user_id", "de57a8a4-cdf5-11e4-b6d1-705681abff85"], ["created_at", "2015-03-19 05:07:40.899409"], ["updated_at", "2015-03-19 05:07:40.899409"], ["token", "O7cz6I7mOJisbcMlA5FG56-wL7EgI-YSHn5ItG4Gams"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:40.903886"], ["updated_at", "2015-03-19 05:07:40.903886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de57a8a4-cdf5-11e4-b6d1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de598020-cdf5-11e4-87a5-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de57a8a4-cdf5-11e4-b6d1-705681abff85"], ["organization_id", "de598020-cdf5-11e4-87a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.907531"], ["updated_at", "2015-03-19 05:07:40.907531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de585916-cdf5-11e4-b06a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de598020-cdf5-11e4-87a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de585916-cdf5-11e4-b06a-705681abff85"], ["organization_id", "de598020-cdf5-11e4-87a5-705681abff85"], ["created_at", "2015-03-19 05:07:40.913223"], ["updated_at", "2015-03-19 05:07:40.913223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$GVWU2u0iwj2PQVjmcFJXo.VMySTH7TX7lAWW6GU7R3/jgHSMkO50e"], ["created_at", "2015-03-19 05:07:40.918801"], ["updated_at", "2015-03-19 05:07:40.918801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.920519"], ["user_id", "de5bc5a6-cdf5-11e4-a647-705681abff85"], ["created_at", "2015-03-19 05:07:40.921724"], ["updated_at", "2015-03-19 05:07:40.921724"], ["token", "SpAOemznn458GmtfoZ8GZCrGx_sUc0x2tTr1BpUmbq4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'de598020-cdf5-11e4-87a5-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "de598020-cdf5-11e4-87a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.942550"], ["updated_at", "2015-03-19 05:07:40.942550"], ["token", "-54HB4ewIdDPJuOkRA7W0TEPj6yDfITC9Ip7squqNno"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:07:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$KJ.TD9shRVyvzhA1r3bgKeJIBXoukc938MuYkD04rcn6Hk/Ieub1S"], ["created_at", "2015-03-19 05:07:40.954207"], ["updated_at", "2015-03-19 05:07:40.954207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$D1gixC1j01iucdBu4X0iQusV94zWxNXXkJkTRMrNcA0GE6zq5j5bu"], ["created_at", "2015-03-19 05:07:40.958649"], ["updated_at", "2015-03-19 05:07:40.958649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.960315"], ["user_id", "de612d20-cdf5-11e4-8402-705681abff85"], ["created_at", "2015-03-19 05:07:40.961069"], ["updated_at", "2015-03-19 05:07:40.961069"], ["token", "EGIYhmB7haqFAkjKcLk3lWRpz8jxBnrUHkNkm12soo0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:40.965519"], ["updated_at", "2015-03-19 05:07:40.965519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de612d20-cdf5-11e4-8402-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de62ea48-cdf5-11e4-897d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de612d20-cdf5-11e4-8402-705681abff85"], ["organization_id", "de62ea48-cdf5-11e4-897d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.969258"], ["updated_at", "2015-03-19 05:07:40.969258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de61d676-cdf5-11e4-b566-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de62ea48-cdf5-11e4-897d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de61d676-cdf5-11e4-b566-705681abff85"], ["organization_id", "de62ea48-cdf5-11e4-897d-705681abff85"], ["created_at", "2015-03-19 05:07:40.975014"], ["updated_at", "2015-03-19 05:07:40.975014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$lStTfCWNpI7B8l3JAkx4nOQTkxnvXTVNr3XkH/nfvUu1a94Kx/HuG"], ["created_at", "2015-03-19 05:07:40.982833"], ["updated_at", "2015-03-19 05:07:40.982833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:40.986271"], ["user_id", "de65ad64-cdf5-11e4-9bd8-705681abff85"], ["created_at", "2015-03-19 05:07:40.987165"], ["updated_at", "2015-03-19 05:07:40.987165"], ["token", "SfgWu9cPJfus_YFxIav612VYyCv2KaaFvOo2jSEFo_A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'de62ea48-cdf5-11e4-897d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "de62ea48-cdf5-11e4-897d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:40.992313"], ["updated_at", "2015-03-19 05:07:40.992313"], ["token", "cHcVceNDfWgP8Smr46CrV2aTDgl2VFtsk9odVjyVtwU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/de62ea48-cdf5-11e4-897d-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:07:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"de62ea48-cdf5-11e4-897d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:07:40.998637' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SfgWu9cPJfus_YFxIav612VYyCv2KaaFvOo2jSEFo_A"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:07:41.000483"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:07:41.001953"], ["id", "de663f0e-cdf5-11e4-8e8e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "de62ea48-cdf5-11e4-897d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de65ad64-cdf5-11e4-9bd8-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$gSXO0XJmh9Q4jUHGU18lS.Bo6qhJEV2tokRANrZ8t1ydZ1beuMdKS"], ["created_at", "2015-03-19 05:07:41.015580"], ["updated_at", "2015-03-19 05:07:41.015580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$3ssI5hGRcmMeV0zZl4U5W.GWcUctURA/nDe5rt5lXHeQIefPgh4va"], ["created_at", "2015-03-19 05:07:41.020067"], ["updated_at", "2015-03-19 05:07:41.020067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:41.021629"], ["user_id", "de6a8a3c-cdf5-11e4-a760-705681abff85"], ["created_at", "2015-03-19 05:07:41.022495"], ["updated_at", "2015-03-19 05:07:41.022495"], ["token", "3sXQZbQESTPuUE4Xkd9tOIvHzkKXwaW6S1ozMClDehw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:41.025949"], ["updated_at", "2015-03-19 05:07:41.025949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de6a8a3c-cdf5-11e4-a760-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de6c19ba-cdf5-11e4-8a71-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de6a8a3c-cdf5-11e4-a760-705681abff85"], ["organization_id", "de6c19ba-cdf5-11e4-8a71-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.031023"], ["updated_at", "2015-03-19 05:07:41.031023"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de6b35ae-cdf5-11e4-9e78-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de6c19ba-cdf5-11e4-8a71-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de6b35ae-cdf5-11e4-9e78-705681abff85"], ["organization_id", "de6c19ba-cdf5-11e4-8a71-705681abff85"], ["created_at", "2015-03-19 05:07:41.036369"], ["updated_at", "2015-03-19 05:07:41.036369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$SCw8U40JVOxPrd0U9TXzQO3St9iZTuzA4y/JqUsc4l63zKeuB1pWe"], ["created_at", "2015-03-19 05:07:41.040977"], ["updated_at", "2015-03-19 05:07:41.040977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:41.042639"], ["user_id", "de6e6ad0-cdf5-11e4-ba0e-705681abff85"], ["created_at", "2015-03-19 05:07:41.043412"], ["updated_at", "2015-03-19 05:07:41.043412"], ["token", "ssGJ7jIblGkjRgeExVF7mvlgRPsJ-0fMgjheF8Pm5fM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'de6c19ba-cdf5-11e4-8a71-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "de6c19ba-cdf5-11e4-8a71-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.047663"], ["updated_at", "2015-03-19 05:07:41.047663"], ["token", "8jaWe9egfQhX84wIqr3h9RSTuOcqZBZnVa3Qbso5sy4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/de6c19ba-cdf5-11e4-8a71-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:07:41 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"8jaWe9egfQhX84wIqr3h9RSTuOcqZBZnVa3Qbso5sy4", "organization_id"=>"de6c19ba-cdf5-11e4-8a71-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:07:41.053114' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ssGJ7jIblGkjRgeExVF7mvlgRPsJ-0fMgjheF8Pm5fM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:07:41.054577"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:07:41.055569"], ["id", "de6ecd04-cdf5-11e4-bfc5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "de6c19ba-cdf5-11e4-8a71-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de6e6ad0-cdf5-11e4-ba0e-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "8jaWe9egfQhX84wIqr3h9RSTuOcqZBZnVa3Qbso5sy4"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de6c19ba-cdf5-11e4-8a71-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de6e6ad0-cdf5-11e4-ba0e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de6c19ba-cdf5-11e4-8a71-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "de6c19ba-cdf5-11e4-8a71-705681abff85"], ["member_id", "de6e6ad0-cdf5-11e4-ba0e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.062878"], ["updated_at", "2015-03-19 05:07:41.062878"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "de6f7308-cdf5-11e4-a965-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 1.1ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$.35HYXUpZHgJMxX5vRkC2.yizz40m7nVoGGRFcIiuelVI5voBg.Fi"], ["created_at", "2015-03-19 05:07:41.072433"], ["updated_at", "2015-03-19 05:07:41.072433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$.IpSVlhce94HVon/jhbvLeZ9L7NjzWqSGFuGmVsbYDdC/IitcRXbC"], ["created_at", "2015-03-19 05:07:41.077017"], ["updated_at", "2015-03-19 05:07:41.077017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:41.078701"], ["user_id", "de73342a-cdf5-11e4-8d38-705681abff85"], ["created_at", "2015-03-19 05:07:41.079513"], ["updated_at", "2015-03-19 05:07:41.079513"], ["token", "lx_l7BU13QBsSAUsypIJX215-7QC4z9KOu2SmfEF5jY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:41.083063"], ["updated_at", "2015-03-19 05:07:41.083063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de73342a-cdf5-11e4-8d38-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de74d24e-cdf5-11e4-b731-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de73342a-cdf5-11e4-8d38-705681abff85"], ["organization_id", "de74d24e-cdf5-11e4-b731-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.086509"], ["updated_at", "2015-03-19 05:07:41.086509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de73e7b2-cdf5-11e4-b783-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de74d24e-cdf5-11e4-b731-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de73e7b2-cdf5-11e4-b783-705681abff85"], ["organization_id", "de74d24e-cdf5-11e4-b731-705681abff85"], ["created_at", "2015-03-19 05:07:41.089601"], ["updated_at", "2015-03-19 05:07:41.089601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$3WK9erx3oMAPQKIr0l6pqupxT4IlpJaMH2ATHSMg/MNDvAq5uQ62O"], ["created_at", "2015-03-19 05:07:41.093861"], ["updated_at", "2015-03-19 05:07:41.093861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:41.095410"], ["user_id", "de76787e-cdf5-11e4-a496-705681abff85"], ["created_at", "2015-03-19 05:07:41.096155"], ["updated_at", "2015-03-19 05:07:41.096155"], ["token", "9We7XMJZp0TCcJvZlwXm0NML_H4mu9QfFmai7bfsD7M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'de74d24e-cdf5-11e4-b731-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "de74d24e-cdf5-11e4-b731-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.099950"], ["updated_at", "2015-03-19 05:07:41.099950"], ["token", "Q0hz2HkFN4n1symgLRH2OfqY1NJAU9qsCppbfBSDzGI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:07:41 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$fM4fdo90H1Rmv7uNvWfUhOm0NCc/1BAvej2BVUZ5AMLchQH/.CS56"], ["created_at", "2015-03-19 05:07:41.111604"], ["updated_at", "2015-03-19 05:07:41.111604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$LzIG0tgttfsJy1dhDrv.oe982ox668KVAlKCiloCwZtOyJGs0.ezG"], ["created_at", "2015-03-19 05:07:41.115976"], ["updated_at", "2015-03-19 05:07:41.115976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:41.117518"], ["user_id", "de793032-cdf5-11e4-8024-705681abff85"], ["created_at", "2015-03-19 05:07:41.118315"], ["updated_at", "2015-03-19 05:07:41.118315"], ["token", "9ytGfxBPmbKrD5zlBf3zm5eg70KxFMO1XOtlg0cGWu0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:41.121719"], ["updated_at", "2015-03-19 05:07:41.121719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de793032-cdf5-11e4-8024-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de7abfc4-cdf5-11e4-a1e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de793032-cdf5-11e4-8024-705681abff85"], ["organization_id", "de7abfc4-cdf5-11e4-a1e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.125450"], ["updated_at", "2015-03-19 05:07:41.125450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de79d7d0-cdf5-11e4-870c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de7abfc4-cdf5-11e4-a1e8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de79d7d0-cdf5-11e4-870c-705681abff85"], ["organization_id", "de7abfc4-cdf5-11e4-a1e8-705681abff85"], ["created_at", "2015-03-19 05:07:41.129494"], ["updated_at", "2015-03-19 05:07:41.129494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$2QLANJsQwxSFlHHk/JOBBuqd6zgPIxr/.yvXhvnSD3Vip8EKGcK6u"], ["created_at", "2015-03-19 05:07:41.135386"], ["updated_at", "2015-03-19 05:07:41.135386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:41.137216"], ["user_id", "de7cd4da-cdf5-11e4-a410-705681abff85"], ["created_at", "2015-03-19 05:07:41.138015"], ["updated_at", "2015-03-19 05:07:41.138015"], ["token", "dfsu-dD8J7bKOgJHR6nBs7ZSerQlCEo4ceQmPytWlS4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'de7abfc4-cdf5-11e4-a1e8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "de7abfc4-cdf5-11e4-a1e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.142363"], ["updated_at", "2015-03-19 05:07:41.142363"], ["token", "4lVsiNDCF_4RddKJqXjyDIb2CB0Y4runE_fpn1GWhT8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:07:41 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:07:41.148053' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dfsu-dD8J7bKOgJHR6nBs7ZSerQlCEo4ceQmPytWlS4"]]  (0.3ms) SAVEPOINT active_record_1 SQL (6.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:07:41.149455"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:07:41.151123"], ["id", "de7d3fd8-cdf5-11e4-b161-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de7cd4da-cdf5-11e4-a410-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$YXiUH2G20o4.TbD5S1EzgeYeJqvMOo6UapYjILXfMcCM2s4NDcX8G"], ["created_at", "2015-03-19 05:07:41.169088"], ["updated_at", "2015-03-19 05:07:41.169088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$IIFFSj7pHb1y1dh8TYmy4.LNcDps3.krplWqDjuzxry1zrF/Q5UDO"], ["created_at", "2015-03-19 05:07:41.173423"], ["updated_at", "2015-03-19 05:07:41.173423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:41.174928"], ["user_id", "de81f668-cdf5-11e4-82db-705681abff85"], ["created_at", "2015-03-19 05:07:41.175747"], ["updated_at", "2015-03-19 05:07:41.175747"], ["token", "NkzXG_GH69jYrRSY7pzmUMN7njTX2ZPbrZCYTuiiA0s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:41.179340"], ["updated_at", "2015-03-19 05:07:41.179340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de81f668-cdf5-11e4-82db-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de8382c6-cdf5-11e4-8aaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de81f668-cdf5-11e4-82db-705681abff85"], ["organization_id", "de8382c6-cdf5-11e4-8aaa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.182599"], ["updated_at", "2015-03-19 05:07:41.182599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de829aa0-cdf5-11e4-a5a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de8382c6-cdf5-11e4-8aaa-705681abff85') LIMIT 1 SQL (18.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de829aa0-cdf5-11e4-a5a2-705681abff85"], ["organization_id", "de8382c6-cdf5-11e4-8aaa-705681abff85"], ["created_at", "2015-03-19 05:07:41.185664"], ["updated_at", "2015-03-19 05:07:41.185664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$ftrV0uGuq1eOsAXu05K5peqIGKKxnvQcfBBsMAS2BFYsiHOr.L6zS"], ["created_at", "2015-03-19 05:07:41.212411"], ["updated_at", "2015-03-19 05:07:41.212411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:41.215710"], ["user_id", "de88a6de-cdf5-11e4-9317-705681abff85"], ["created_at", "2015-03-19 05:07:41.217200"], ["updated_at", "2015-03-19 05:07:41.217200"], ["token", "PublAN32432lLzBfBhBSIZng4ZBBunMD3-ei_kpfG6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'de8382c6-cdf5-11e4-8aaa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "de8382c6-cdf5-11e4-8aaa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.224778"], ["updated_at", "2015-03-19 05:07:41.224778"], ["token", "yavIkZRerSsc-4QaB3rRWF_NiVI3W-rC4h9bkwzuiko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:07:41 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"yavIkZRerSsc-4QaB3rRWF_NiVI3W-rC4h9bkwzuiko", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:07:41.231922' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PublAN32432lLzBfBhBSIZng4ZBBunMD3-ei_kpfG6M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:07:41.234004"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:07:41.235490"], ["id", "de897276-cdf5-11e4-af71-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de88a6de-cdf5-11e4-9317-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "yavIkZRerSsc-4QaB3rRWF_NiVI3W-rC4h9bkwzuiko"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de8382c6-cdf5-11e4-8aaa-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de88a6de-cdf5-11e4-9317-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de8382c6-cdf5-11e4-8aaa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "de8382c6-cdf5-11e4-8aaa-705681abff85"], ["member_id", "de88a6de-cdf5-11e4-9317-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.248461"], ["updated_at", "2015-03-19 05:07:41.248461"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "de8a8d1e-cdf5-11e4-a4b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 22ms (Views: 2.3ms | ActiveRecord: 3.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$3K9KnXztm5Gp7W6rOxAeR.HTWOSDK/NBKOcQ4BA0TN5hvfkkLs6Y2"], ["created_at", "2015-03-19 05:07:41.265153"], ["updated_at", "2015-03-19 05:07:41.265153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (29.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$6z4yEvTfZ7yyZPKdy/k4B.VvhZs7NR0v1uJhkZ0WBh0I18lqMnyAq"], ["created_at", "2015-03-19 05:07:41.271780"], ["updated_at", "2015-03-19 05:07:41.271780"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (21.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:41.304124"], ["user_id", "de90ac94-cdf5-11e4-9ee4-705681abff85"], ["created_at", "2015-03-19 05:07:41.307159"], ["updated_at", "2015-03-19 05:07:41.307159"], ["token", "BVK3pid9YN8xSwHlM1UmbwXRl_O0BdqITasNcKYTBlU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:41.335498"], ["updated_at", "2015-03-19 05:07:41.335498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de90ac94-cdf5-11e4-9ee4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de9b6d32-cdf5-11e4-ae64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de90ac94-cdf5-11e4-9ee4-705681abff85"], ["organization_id", "de9b6d32-cdf5-11e4-ae64-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.340098"], ["updated_at", "2015-03-19 05:07:41.340098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de960568-cdf5-11e4-bf7d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de9b6d32-cdf5-11e4-ae64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de960568-cdf5-11e4-bf7d-705681abff85"], ["organization_id", "de9b6d32-cdf5-11e4-ae64-705681abff85"], ["created_at", "2015-03-19 05:07:41.344008"], ["updated_at", "2015-03-19 05:07:41.344008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/de9c1034-cdf5-11e4-8dd7-705681abff85" for 127.0.0.1 at 2015-03-18 22:07:41 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"de9c1034-cdf5-11e4-8dd7-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:07:41.356875' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BVK3pid9YN8xSwHlM1UmbwXRl_O0BdqITasNcKYTBlU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:07:41.358327"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:07:41.359286"], ["id", "de978492-cdf5-11e4-bb71-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "de9c1034-cdf5-11e4-8dd7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de90ac94-cdf5-11e4-9ee4-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de9b6d32-cdf5-11e4-ae64-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de90ac94-cdf5-11e4-9ee4-705681abff85' LIMIT 1 [["organization_id", "de9b6d32-cdf5-11e4-ae64-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de90ac94-cdf5-11e4-9ee4-705681abff85"]] Completed 200 OK in 9ms (Views: 1.9ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$2XhYYR2dNkGp4cK.xQithetSEckvEM7/8HWevvrHWmjuSwM4RaY/S"], ["created_at", "2015-03-19 05:07:41.372150"], ["updated_at", "2015-03-19 05:07:41.372150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$mKR/dC1eJwVBHTiDxGTazOPJjUzsNyXn9jR5TK0pTxzvaXCkjxtGK"], ["created_at", "2015-03-19 05:07:41.376980"], ["updated_at", "2015-03-19 05:07:41.376980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:07:41.378739"], ["user_id", "dea0f45a-cdf5-11e4-8523-705681abff85"], ["created_at", "2015-03-19 05:07:41.379536"], ["updated_at", "2015-03-19 05:07:41.379536"], ["token", "iDPFA8sy1iaqvOHoiuz-ArOghH9l17Xapo0o9giJ2MQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:07:41.382917"], ["updated_at", "2015-03-19 05:07:41.382917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dea0f45a-cdf5-11e4-8523-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dea2913e-cdf5-11e4-a7f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dea0f45a-cdf5-11e4-8523-705681abff85"], ["organization_id", "dea2913e-cdf5-11e4-a7f6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:07:41.386084"], ["updated_at", "2015-03-19 05:07:41.386084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dea1b142-cdf5-11e4-bed8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dea2913e-cdf5-11e4-a7f6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dea1b142-cdf5-11e4-bed8-705681abff85"], ["organization_id", "dea2913e-cdf5-11e4-a7f6-705681abff85"], ["created_at", "2015-03-19 05:07:41.389910"], ["updated_at", "2015-03-19 05:07:41.389910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 22:07:41 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (21.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$XWcpMztU/EmZYiHEgsqfaOMVDy/N.ZBkR0cLOfr/E7.3PssEwFZMa"], ["created_at", "2015-03-19 05:09:54.494417"], ["updated_at", "2015-03-19 05:09:54.494417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$GllX2sQjyiXlAX8a.hZhq.NLN9tu2EMfTnhJGg7SqG5f1PwriSRrC"], ["created_at", "2015-03-19 05:09:54.521586"], ["updated_at", "2015-03-19 05:09:54.521586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.563781"], ["user_id", "2dfd16f0-cdf6-11e4-b498-705681abff85"], ["created_at", "2015-03-19 05:09:54.570106"], ["updated_at", "2015-03-19 05:09:54.570106"], ["token", "Y5lLmLM36hCWQa2cvUZ_VjTG7qd-fqzV6xe5zmJ47EY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (7.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:54.587413"], ["updated_at", "2015-03-19 05:09:54.587413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2dfd16f0-cdf6-11e4-b498-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e0820ea-cdf6-11e4-997c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2dfd16f0-cdf6-11e4-b498-705681abff85"], ["organization_id", "2e0820ea-cdf6-11e4-997c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.605957"], ["updated_at", "2015-03-19 05:09:54.605957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2dfdef44-cdf6-11e4-8459-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e0820ea-cdf6-11e4-997c-705681abff85') LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2dfdef44-cdf6-11e4-8459-705681abff85"], ["organization_id", "2e0820ea-cdf6-11e4-997c-705681abff85"], ["created_at", "2015-03-19 05:09:54.610915"], ["updated_at", "2015-03-19 05:09:54.610915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:09:54 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$DB2.iwGABfF2tevDIuItSOAOXwCcMNufvpDMLguEv1kHohqsCMo2q"], ["created_at", "2015-03-19 05:09:54.652794"], ["updated_at", "2015-03-19 05:09:54.652794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$liKK7dO10q4W8uw2Od8iI.yVDTo9Jkq4BEx/.EBEFdy2fh4JbH3lG"], ["created_at", "2015-03-19 05:09:54.657823"], ["updated_at", "2015-03-19 05:09:54.657823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.659667"], ["user_id", "2e1202f4-cdf6-11e4-ac2c-705681abff85"], ["created_at", "2015-03-19 05:09:54.660549"], ["updated_at", "2015-03-19 05:09:54.660549"], ["token", "IvDBD5zLXGFEVS8HTyzWhx2DuVJaVZTHNyMnyYsgXuo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:54.664264"], ["updated_at", "2015-03-19 05:09:54.664264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e1202f4-cdf6-11e4-ac2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e13b270-cdf6-11e4-bd87-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e1202f4-cdf6-11e4-ac2c-705681abff85"], ["organization_id", "2e13b270-cdf6-11e4-bd87-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.667597"], ["updated_at", "2015-03-19 05:09:54.667597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e12b6f4-cdf6-11e4-bb3d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e13b270-cdf6-11e4-bd87-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e12b6f4-cdf6-11e4-bb3d-705681abff85"], ["organization_id", "2e13b270-cdf6-11e4-bd87-705681abff85"], ["created_at", "2015-03-19 05:09:54.670713"], ["updated_at", "2015-03-19 05:09:54.670713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:09:54 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:09:54.676204' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IvDBD5zLXGFEVS8HTyzWhx2DuVJaVZTHNyMnyYsgXuo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:09:54.683909"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:09:54.685258"], ["id", "2e132ada-cdf6-11e4-9d67-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e1202f4-cdf6-11e4-ac2c-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2e1202f4-cdf6-11e4-ac2c-705681abff85' LIMIT 1 [["organization_id", "2e13b270-cdf6-11e4-bd87-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "2e13b270-cdf6-11e4-bd87-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('2e1202f4-cdf6-11e4-ac2c-705681abff85', '2e12b6f4-cdf6-11e4-bb3d-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('2e13b270-cdf6-11e4-bd87-705681abff85') Completed 200 OK in 43ms (Views: 11.8ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$XLgYafV9r/36U8Th.QbNqeZk36DLdOrGH84X03bZIUcU0k9qv1PjW"], ["created_at", "2015-03-19 05:09:54.727979"], ["updated_at", "2015-03-19 05:09:54.727979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$FdMsBscAVDIP4So.zoAbseD5ACL4IZnG99HpgEue7.cm2irSVBAcC"], ["created_at", "2015-03-19 05:09:54.732909"], ["updated_at", "2015-03-19 05:09:54.732909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.734556"], ["user_id", "2e1d7364-cdf6-11e4-9e83-705681abff85"], ["created_at", "2015-03-19 05:09:54.735409"], ["updated_at", "2015-03-19 05:09:54.735409"], ["token", "604esOtGyBNI_aPrl5Gv49W-336RCeNoD3IJZwDiEJs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:54.739397"], ["updated_at", "2015-03-19 05:09:54.739397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e1d7364-cdf6-11e4-9e83-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e1f2b00-cdf6-11e4-9c16-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e1d7364-cdf6-11e4-9e83-705681abff85"], ["organization_id", "2e1f2b00-cdf6-11e4-9c16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.742892"], ["updated_at", "2015-03-19 05:09:54.742892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e1e2dea-cdf6-11e4-a6e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e1f2b00-cdf6-11e4-9c16-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e1e2dea-cdf6-11e4-a6e2-705681abff85"], ["organization_id", "2e1f2b00-cdf6-11e4-9c16-705681abff85"], ["created_at", "2015-03-19 05:09:54.746024"], ["updated_at", "2015-03-19 05:09:54.746024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 22:09:54 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$9Yl0UJHq..LgtfoMTYX5VuXq4eBXM.54PdGdgjR7hloAx5VWntg/y"], ["created_at", "2015-03-19 05:09:54.757212"], ["updated_at", "2015-03-19 05:09:54.757212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$V0x6V4DwFD2PQNgtekT.oeGEewvro.SNU.CUla5oH53.wJUTec8U6"], ["created_at", "2015-03-19 05:09:54.762335"], ["updated_at", "2015-03-19 05:09:54.762335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.764057"], ["user_id", "2e21f1be-cdf6-11e4-8ff1-705681abff85"], ["created_at", "2015-03-19 05:09:54.764942"], ["updated_at", "2015-03-19 05:09:54.764942"], ["token", "oqepUpuKjf7F1xUsML8ZvIn1dQB1EFydEUOHI45-YRA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:54.768549"], ["updated_at", "2015-03-19 05:09:54.768549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e21f1be-cdf6-11e4-8ff1-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e239bd6-cdf6-11e4-ad70-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e21f1be-cdf6-11e4-8ff1-705681abff85"], ["organization_id", "2e239bd6-cdf6-11e4-ad70-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.772044"], ["updated_at", "2015-03-19 05:09:54.772044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e22ab04-cdf6-11e4-857e-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e239bd6-cdf6-11e4-ad70-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e22ab04-cdf6-11e4-857e-705681abff85"], ["organization_id", "2e239bd6-cdf6-11e4-ad70-705681abff85"], ["created_at", "2015-03-19 05:09:54.775410"], ["updated_at", "2015-03-19 05:09:54.775410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/2e24a72e-cdf6-11e4-b30d-705681abff85" for 127.0.0.1 at 2015-03-18 22:09:54 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"2e24a72e-cdf6-11e4-b30d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:09:54.780947' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oqepUpuKjf7F1xUsML8ZvIn1dQB1EFydEUOHI45-YRA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:09:54.782591"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:09:54.783657"], ["id", "2e23199a-cdf6-11e4-86f7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "2e24a72e-cdf6-11e4-b30d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e21f1be-cdf6-11e4-8ff1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e239bd6-cdf6-11e4-ad70-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2e21f1be-cdf6-11e4-8ff1-705681abff85' LIMIT 1 [["organization_id", "2e239bd6-cdf6-11e4-ad70-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e22ab04-cdf6-11e4-857e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "2e24a72e-cdf6-11e4-b30d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$erMd8rU06Jg/1v6SqVD./.miJLgml7Vcw.P3Mukac2JF7NObbFMV2"], ["created_at", "2015-03-19 05:09:54.797774"], ["updated_at", "2015-03-19 05:09:54.797774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$IYno9mhwHmesIPrnEpUEJOviv01jHM.ns9vqHDFXu/Pl7RM9IAThK"], ["created_at", "2015-03-19 05:09:54.802429"], ["updated_at", "2015-03-19 05:09:54.802429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.804266"], ["user_id", "2e281bb6-cdf6-11e4-8875-705681abff85"], ["created_at", "2015-03-19 05:09:54.805042"], ["updated_at", "2015-03-19 05:09:54.805042"], ["token", "7sKP2uh52aLlVhaSfT5kvuNuKDfy-6-MSex1-RYbz9M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:54.808368"], ["updated_at", "2015-03-19 05:09:54.808368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e281bb6-cdf6-11e4-8875-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e29ad8c-cdf6-11e4-8a57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e281bb6-cdf6-11e4-8875-705681abff85"], ["organization_id", "2e29ad8c-cdf6-11e4-8a57-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.811526"], ["updated_at", "2015-03-19 05:09:54.811526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e28d0ec-cdf6-11e4-9b49-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e29ad8c-cdf6-11e4-8a57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e28d0ec-cdf6-11e4-9b49-705681abff85"], ["organization_id", "2e29ad8c-cdf6-11e4-8a57-705681abff85"], ["created_at", "2015-03-19 05:09:54.814960"], ["updated_at", "2015-03-19 05:09:54.814960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$kyxZQ7Y6pScDfNV6iArTXOf0hj1vL9mPp5ZiUq0hAQ7YPl0Ge1Gkq"], ["created_at", "2015-03-19 05:09:54.820370"], ["updated_at", "2015-03-19 05:09:54.820370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.822353"], ["user_id", "2e2b9052-cdf6-11e4-a6b2-705681abff85"], ["created_at", "2015-03-19 05:09:54.823234"], ["updated_at", "2015-03-19 05:09:54.823234"], ["token", "-S9fptO2RgnpgMyILoFN_Nmf2Otec2iRfOX0TI43LEw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2e29ad8c-cdf6-11e4-8a57-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "2e29ad8c-cdf6-11e4-8a57-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.835289"], ["updated_at", "2015-03-19 05:09:54.835289"], ["token", "X5gcP0lOw0P2_UraOQ7od46efztZjiG69E9hkGf6vmU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:09:54 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$CJAG2sfq3jk48NL2nh1p8OJXqAhuM2UlJiekrrg530ikVNUzyQSM."], ["created_at", "2015-03-19 05:09:54.851610"], ["updated_at", "2015-03-19 05:09:54.851610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (2.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Z9jJEfUj.j5T8KhAId6SBeOnHNEPS5934KJTbG5qTc7wNKTfLQGpa"], ["created_at", "2015-03-19 05:09:54.857947"], ["updated_at", "2015-03-19 05:09:54.857947"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.863361"], ["user_id", "2e30506a-cdf6-11e4-8bb3-705681abff85"], ["created_at", "2015-03-19 05:09:54.864401"], ["updated_at", "2015-03-19 05:09:54.864401"], ["token", "p9QutLBs0ls9D1Su5n1vzYTh8ElIJh511QAa_v1HDAo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:54.869425"], ["updated_at", "2015-03-19 05:09:54.869425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e30506a-cdf6-11e4-8bb3-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e330dfa-cdf6-11e4-9df8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e30506a-cdf6-11e4-8bb3-705681abff85"], ["organization_id", "2e330dfa-cdf6-11e4-9df8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.874141"], ["updated_at", "2015-03-19 05:09:54.874141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e3160fe-cdf6-11e4-b31a-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e330dfa-cdf6-11e4-9df8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e3160fe-cdf6-11e4-b31a-705681abff85"], ["organization_id", "2e330dfa-cdf6-11e4-9df8-705681abff85"], ["created_at", "2015-03-19 05:09:54.878026"], ["updated_at", "2015-03-19 05:09:54.878026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$0LnFJ.T7QDl1wgZv/4uRoOuIrUnATOCzXB/RtFBgX4Nn4mytymph."], ["created_at", "2015-03-19 05:09:54.883757"], ["updated_at", "2015-03-19 05:09:54.883757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.886376"], ["user_id", "2e3548b8-cdf6-11e4-a3de-705681abff85"], ["created_at", "2015-03-19 05:09:54.887330"], ["updated_at", "2015-03-19 05:09:54.887330"], ["token", "OfwVt6JI5yF0MPdqS9PQa6o2v6VWHaeGE4gI6IYOd_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '2e330dfa-cdf6-11e4-9df8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "2e330dfa-cdf6-11e4-9df8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.892088"], ["updated_at", "2015-03-19 05:09:54.892088"], ["token", "HE6De4f5dJaXgIt0u6NHcSMPv3R-VtZ6fZq7eC1s20U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2e330dfa-cdf6-11e4-9df8-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:09:54 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"HE6De4f5dJaXgIt0u6NHcSMPv3R-VtZ6fZq7eC1s20U", "organization_id"=>"2e330dfa-cdf6-11e4-9df8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:09:54.897828' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OfwVt6JI5yF0MPdqS9PQa6o2v6VWHaeGE4gI6IYOd_0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:09:54.899317"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:09:54.900492"], ["id", "2e35ca04-cdf6-11e4-ac80-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2e330dfa-cdf6-11e4-9df8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e3548b8-cdf6-11e4-a3de-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "HE6De4f5dJaXgIt0u6NHcSMPv3R-VtZ6fZq7eC1s20U"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e330dfa-cdf6-11e4-9df8-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e3548b8-cdf6-11e4-a3de-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e330dfa-cdf6-11e4-9df8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "2e330dfa-cdf6-11e4-9df8-705681abff85"], ["member_id", "2e3548b8-cdf6-11e4-a3de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.912821"], ["updated_at", "2015-03-19 05:09:54.912821"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "2e367f4e-cdf6-11e4-8297-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 1.6ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$cSrPO50DI8vHQgxa6JcJw.GAMsct6AXtO9jGAbS6ofWYEQbzZ0/9u"], ["created_at", "2015-03-19 05:09:54.926521"], ["updated_at", "2015-03-19 05:09:54.926521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$8Z4Iuo9a2EeO64BNroBsZe2P44/8/vDu9T3kqPyw9iRMo/SAa9OkW"], ["created_at", "2015-03-19 05:09:54.931092"], ["updated_at", "2015-03-19 05:09:54.931092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.932690"], ["user_id", "2e3bbc98-cdf6-11e4-9490-705681abff85"], ["created_at", "2015-03-19 05:09:54.933519"], ["updated_at", "2015-03-19 05:09:54.933519"], ["token", "jHEFQjaew_WE3EKj4qcmLR0-48PoDmAOsN6AS0Oh45s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:54.937075"], ["updated_at", "2015-03-19 05:09:54.937075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e3bbc98-cdf6-11e4-9490-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e3d5c4c-cdf6-11e4-b8b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e3bbc98-cdf6-11e4-9490-705681abff85"], ["organization_id", "2e3d5c4c-cdf6-11e4-b8b8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.940885"], ["updated_at", "2015-03-19 05:09:54.940885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e3c699a-cdf6-11e4-8296-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e3d5c4c-cdf6-11e4-b8b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e3c699a-cdf6-11e4-8296-705681abff85"], ["organization_id", "2e3d5c4c-cdf6-11e4-b8b8-705681abff85"], ["created_at", "2015-03-19 05:09:54.952113"], ["updated_at", "2015-03-19 05:09:54.952113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$pYXf5i4JZiRZOobA53Tn4uddQHGcYT2/GhBDEoYpq/B4xeFOKQoxa"], ["created_at", "2015-03-19 05:09:54.957543"], ["updated_at", "2015-03-19 05:09:54.957543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.959350"], ["user_id", "2e4079ae-cdf6-11e4-83a9-705681abff85"], ["created_at", "2015-03-19 05:09:54.960117"], ["updated_at", "2015-03-19 05:09:54.960117"], ["token", "JuzBqs96sJIUNvL2n00G63KODkUI2rrRYypn6FEhEMs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '2e3d5c4c-cdf6-11e4-b8b8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "2e3d5c4c-cdf6-11e4-b8b8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:54.964128"], ["updated_at", "2015-03-19 05:09:54.964128"], ["token", "x-xYk-cukEttR1HuKoOQTbTPDHsONUIwyc2lI-b_EsQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2e3d5c4c-cdf6-11e4-b8b8-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:09:54 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"2e3d5c4c-cdf6-11e4-b8b8-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:09:54.970858' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JuzBqs96sJIUNvL2n00G63KODkUI2rrRYypn6FEhEMs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:09:54.972410"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:09:54.974263"], ["id", "2e40e45c-cdf6-11e4-a8a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2e3d5c4c-cdf6-11e4-b8b8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e4079ae-cdf6-11e4-83a9-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$WxwSf9Kun6F92.ytNvGTK.XPABx6kk73KeKCSHJx0CBdPGaKwPKzG"], ["created_at", "2015-03-19 05:09:54.987040"], ["updated_at", "2015-03-19 05:09:54.987040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$FcFB3QeebTyHzCCTQkWVk.09xn1OSEhzD8jUEo0IvCdxNc6PpYZAa"], ["created_at", "2015-03-19 05:09:54.991353"], ["updated_at", "2015-03-19 05:09:54.991353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:54.992965"], ["user_id", "2e44f81c-cdf6-11e4-ae99-705681abff85"], ["created_at", "2015-03-19 05:09:54.993723"], ["updated_at", "2015-03-19 05:09:54.993723"], ["token", "P3FLiMSkrH5JYF-kaEm4zpZWUn2OByuD5o1s0LeUe4g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:54.997141"], ["updated_at", "2015-03-19 05:09:54.997141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e44f81c-cdf6-11e4-ae99-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e467bf6-cdf6-11e4-8ff5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e44f81c-cdf6-11e4-ae99-705681abff85"], ["organization_id", "2e467bf6-cdf6-11e4-8ff5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.000318"], ["updated_at", "2015-03-19 05:09:55.000318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e459966-cdf6-11e4-b49b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e467bf6-cdf6-11e4-8ff5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e459966-cdf6-11e4-b49b-705681abff85"], ["organization_id", "2e467bf6-cdf6-11e4-8ff5-705681abff85"], ["created_at", "2015-03-19 05:09:55.003328"], ["updated_at", "2015-03-19 05:09:55.003328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:09:55 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$ryo9vU0HAMmZfNoEyw89s.j/qVvQ9gSMm8U3azZczaCJTCuS0JV1W"], ["created_at", "2015-03-19 05:09:55.013174"], ["updated_at", "2015-03-19 05:09:55.013174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$ouS7ajMLWWW1L5HXc6wIkOwAunC3GOArx2OO8Hbn8EP3dNcOVSRsi"], ["created_at", "2015-03-19 05:09:55.018707"], ["updated_at", "2015-03-19 05:09:55.018707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.020463"], ["user_id", "2e48f3f4-cdf6-11e4-b237-705681abff85"], ["created_at", "2015-03-19 05:09:55.021277"], ["updated_at", "2015-03-19 05:09:55.021277"], ["token", "LPKwGMxB2n4TJMylo_MLaPQetxBZy9B7aP7uOimvCQQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:55.024651"], ["updated_at", "2015-03-19 05:09:55.024651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e48f3f4-cdf6-11e4-b237-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e4aaf8c-cdf6-11e4-9ddb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e48f3f4-cdf6-11e4-b237-705681abff85"], ["organization_id", "2e4aaf8c-cdf6-11e4-9ddb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.027907"], ["updated_at", "2015-03-19 05:09:55.027907"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e49cbda-cdf6-11e4-acf2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e4aaf8c-cdf6-11e4-9ddb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e49cbda-cdf6-11e4-acf2-705681abff85"], ["organization_id", "2e4aaf8c-cdf6-11e4-9ddb-705681abff85"], ["created_at", "2015-03-19 05:09:55.031069"], ["updated_at", "2015-03-19 05:09:55.031069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/2e4aaf8c-cdf6-11e4-9ddb-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:09:55 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"2e4aaf8c-cdf6-11e4-9ddb-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:09:55.035496' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LPKwGMxB2n4TJMylo_MLaPQetxBZy9B7aP7uOimvCQQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:09:55.036889"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:09:55.037832"], ["id", "2e4a31ec-cdf6-11e4-bc58-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2e4aaf8c-cdf6-11e4-9ddb-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e48f3f4-cdf6-11e4-b237-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2e48f3f4-cdf6-11e4-b237-705681abff85' LIMIT 1 [["organization_id", "2e4aaf8c-cdf6-11e4-9ddb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "2e4aaf8c-cdf6-11e4-9ddb-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('2e48f3f4-cdf6-11e4-b237-705681abff85', '2e49cbda-cdf6-11e4-acf2-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('2e4aaf8c-cdf6-11e4-9ddb-705681abff85') Completed 200 OK in 12ms (Views: 3.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$fqfReIs/pk2gb/vFwp96xumqa7A/WbnlQ4v09A2hazaVs1bgzt0Zm"], ["created_at", "2015-03-19 05:09:55.053224"], ["updated_at", "2015-03-19 05:09:55.053224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$nEGw0zDLbAEjk4xqnmdp/eV6zIsxhy7Ib5eDrfLZyvSQyr0KZcNMW"], ["created_at", "2015-03-19 05:09:55.057737"], ["updated_at", "2015-03-19 05:09:55.057737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.059243"], ["user_id", "2e4f1298-cdf6-11e4-bbcb-705681abff85"], ["created_at", "2015-03-19 05:09:55.060084"], ["updated_at", "2015-03-19 05:09:55.060084"], ["token", "dznY6GF8zAsmk6_G3sh61wLpydeyzfDJUqNyMKdh4j8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:55.064030"], ["updated_at", "2015-03-19 05:09:55.064030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e4f1298-cdf6-11e4-bbcb-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e50b148-cdf6-11e4-a5ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e4f1298-cdf6-11e4-bbcb-705681abff85"], ["organization_id", "2e50b148-cdf6-11e4-a5ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.067370"], ["updated_at", "2015-03-19 05:09:55.067370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e4fbbf8-cdf6-11e4-92dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e50b148-cdf6-11e4-a5ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e4fbbf8-cdf6-11e4-92dc-705681abff85"], ["organization_id", "2e50b148-cdf6-11e4-a5ab-705681abff85"], ["created_at", "2015-03-19 05:09:55.070443"], ["updated_at", "2015-03-19 05:09:55.070443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$BM5A8m7GiQ0.UtpfIl3OreB.dtxwmZBykA1b0r9w8r382GzWvUBFa"], ["created_at", "2015-03-19 05:09:55.075040"], ["updated_at", "2015-03-19 05:09:55.075040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.076594"], ["user_id", "2e525fb6-cdf6-11e4-b572-705681abff85"], ["created_at", "2015-03-19 05:09:55.077539"], ["updated_at", "2015-03-19 05:09:55.077539"], ["token", "COzfVwUfQxNXnSx0IReuzOMLpqpDBuMGuJYTCHUqT0w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '2e50b148-cdf6-11e4-a5ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "2e50b148-cdf6-11e4-a5ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.081507"], ["updated_at", "2015-03-19 05:09:55.081507"], ["token", "fzNjtGrawMowkXNS4th2u366EyrIt_BoA8SbBJqe-tM"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:09:55 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$Io.MvLkpiFer/vnpg6s9ru5b3s6K5dYyrWWvp9w2dB410pb4L3EE6"], ["created_at", "2015-03-19 05:09:55.093527"], ["updated_at", "2015-03-19 05:09:55.093527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$17dPDoQkzFcR6ncOcQEzn.xYwmmLRO2OuTuLax8qqKhWoRD3iTn/y"], ["created_at", "2015-03-19 05:09:55.097742"], ["updated_at", "2015-03-19 05:09:55.097742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.099280"], ["user_id", "2e553362-cdf6-11e4-9419-705681abff85"], ["created_at", "2015-03-19 05:09:55.100406"], ["updated_at", "2015-03-19 05:09:55.100406"], ["token", "RSMezvz8O33dQ1ffDs8ywVsSzSfL2Aas3zR77fYOSgU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:55.104035"], ["updated_at", "2015-03-19 05:09:55.104035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e553362-cdf6-11e4-9419-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e56ceb6-cdf6-11e4-a575-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e553362-cdf6-11e4-9419-705681abff85"], ["organization_id", "2e56ceb6-cdf6-11e4-a575-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.107411"], ["updated_at", "2015-03-19 05:09:55.107411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e55d754-cdf6-11e4-9d3e-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e56ceb6-cdf6-11e4-a575-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e55d754-cdf6-11e4-9d3e-705681abff85"], ["organization_id", "2e56ceb6-cdf6-11e4-a575-705681abff85"], ["created_at", "2015-03-19 05:09:55.110477"], ["updated_at", "2015-03-19 05:09:55.110477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$XKiadoP3RxYAngqwM9IVEuGBr/mVj3BJHCY2ECx9uzronka9LP/pq"], ["created_at", "2015-03-19 05:09:55.114880"], ["updated_at", "2015-03-19 05:09:55.114880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.116533"], ["user_id", "2e587464-cdf6-11e4-8f1a-705681abff85"], ["created_at", "2015-03-19 05:09:55.117339"], ["updated_at", "2015-03-19 05:09:55.117339"], ["token", "iuzlrUxAe4URjyooLNGNASu2IwTXcD4ScdHooSIRy7o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '2e56ceb6-cdf6-11e4-a575-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "2e56ceb6-cdf6-11e4-a575-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.121366"], ["updated_at", "2015-03-19 05:09:55.121366"], ["token", "GQXkpc5rM_7mdv4Zg3r6bF0PJ2uOk9vLb1Degj1WXi8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:09:55 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"GQXkpc5rM_7mdv4Zg3r6bF0PJ2uOk9vLb1Degj1WXi8", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:09:55.127316' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iuzlrUxAe4URjyooLNGNASu2IwTXcD4ScdHooSIRy7o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:09:55.128831"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:09:55.129835"], ["id", "2e58daf8-cdf6-11e4-a459-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e587464-cdf6-11e4-8f1a-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "GQXkpc5rM_7mdv4Zg3r6bF0PJ2uOk9vLb1Degj1WXi8"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e56ceb6-cdf6-11e4-a575-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e587464-cdf6-11e4-8f1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e56ceb6-cdf6-11e4-a575-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "2e56ceb6-cdf6-11e4-a575-705681abff85"], ["member_id", "2e587464-cdf6-11e4-8f1a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.137230"], ["updated_at", "2015-03-19 05:09:55.137230"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "2e59767a-cdf6-11e4-bf23-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 1.1ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$v4uddd/DOUBGH7Ba8rEy.ehbRJM7fgp9ioZ.GJz0y0x3LHI0XGWEy"], ["created_at", "2015-03-19 05:09:55.147151"], ["updated_at", "2015-03-19 05:09:55.147151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$OtBN1goUDNcit9sQwV5VXeO8vD9SnuIaX4qkiYIeIWvJHu.f6.ZPK"], ["created_at", "2015-03-19 05:09:55.151564"], ["updated_at", "2015-03-19 05:09:55.151564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.153258"], ["user_id", "2e5d6456-cdf6-11e4-b496-705681abff85"], ["created_at", "2015-03-19 05:09:55.154096"], ["updated_at", "2015-03-19 05:09:55.154096"], ["token", "9OjWsVfEF83S5_y6XhEYcS1CH_evvxGaZmW67k6sZJ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:55.157679"], ["updated_at", "2015-03-19 05:09:55.157679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e5d6456-cdf6-11e4-b496-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e5efc62-cdf6-11e4-abe7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e5d6456-cdf6-11e4-b496-705681abff85"], ["organization_id", "2e5efc62-cdf6-11e4-abe7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.160992"], ["updated_at", "2015-03-19 05:09:55.160992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e5e0fd2-cdf6-11e4-8151-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e5efc62-cdf6-11e4-abe7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e5e0fd2-cdf6-11e4-8151-705681abff85"], ["organization_id", "2e5efc62-cdf6-11e4-abe7-705681abff85"], ["created_at", "2015-03-19 05:09:55.164159"], ["updated_at", "2015-03-19 05:09:55.164159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$W18.PUjbRdrZTG7/ox8oBemHfm27UVT/tgM.D6TyfNjBrw8F1bjDK"], ["created_at", "2015-03-19 05:09:55.168465"], ["updated_at", "2015-03-19 05:09:55.168465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.170221"], ["user_id", "2e60a044-cdf6-11e4-9de5-705681abff85"], ["created_at", "2015-03-19 05:09:55.171037"], ["updated_at", "2015-03-19 05:09:55.171037"], ["token", "dwgVKKGF3-qpr1RjWuxv4IKsntz8s4cj7gG5gKttAI8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '2e5efc62-cdf6-11e4-abe7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "2e5efc62-cdf6-11e4-abe7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.174922"], ["updated_at", "2015-03-19 05:09:55.174922"], ["token", "O5pd8W3eCcs5pThAy_oxYjb62klLzL3U2ZE1BpKkh7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:09:55 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:09:55.180969' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dwgVKKGF3-qpr1RjWuxv4IKsntz8s4cj7gG5gKttAI8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:09:55.182500"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:09:55.183557"], ["id", "2e610e4e-cdf6-11e4-924b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (3.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e60a044-cdf6-11e4-9de5-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.7ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 32ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (2.7ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$uYSzgO3GsgOePry6kjBMduwZpWPUPayp7z6LtWBuAMDgkLUcyDI2O"], ["created_at", "2015-03-19 05:09:55.223715"], ["updated_at", "2015-03-19 05:09:55.223715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$aFnVVfwRFuAfXuEH2UTOU.GiOwH3PzPJBSsxlpcbixgcxCaxgFVQG"], ["created_at", "2015-03-19 05:09:55.233138"], ["updated_at", "2015-03-19 05:09:55.233138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (28.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.235582"], ["user_id", "2e69212e-cdf6-11e4-9110-705681abff85"], ["created_at", "2015-03-19 05:09:55.237521"], ["updated_at", "2015-03-19 05:09:55.237521"], ["token", "8xgUoHf1TzImfK4lquidHyTKL5d0HIZh4w6cKb32TyE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:55.271356"], ["updated_at", "2015-03-19 05:09:55.271356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e69212e-cdf6-11e4-9110-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e70c6b8-cdf6-11e4-bbb1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e69212e-cdf6-11e4-9110-705681abff85"], ["organization_id", "2e70c6b8-cdf6-11e4-bbb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.279717"], ["updated_at", "2015-03-19 05:09:55.279717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e6a8fe6-cdf6-11e4-9be8-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e70c6b8-cdf6-11e4-bbb1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e6a8fe6-cdf6-11e4-9be8-705681abff85"], ["organization_id", "2e70c6b8-cdf6-11e4-bbb1-705681abff85"], ["created_at", "2015-03-19 05:09:55.286918"], ["updated_at", "2015-03-19 05:09:55.286918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 22:09:55 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$G936Y9qXVXOvcXEESo/y/.0CBHS0Rwuj0tZPp6ezrPAlao0JQ.oE2"], ["created_at", "2015-03-19 05:09:55.303011"], ["updated_at", "2015-03-19 05:09:55.303011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$7NgtDvVo7jmOYf/DS3gYKe0XyzrSX37A7SsTKyXMgGCGCCLL.Fm7y"], ["created_at", "2015-03-19 05:09:55.308898"], ["updated_at", "2015-03-19 05:09:55.308898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.310844"], ["user_id", "2e753234-cdf6-11e4-87b5-705681abff85"], ["created_at", "2015-03-19 05:09:55.311613"], ["updated_at", "2015-03-19 05:09:55.311613"], ["token", "pElA0l7xjfjCj0NB91MjT2YijiCZUL_Oi4RK9YEdY0M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:55.315171"], ["updated_at", "2015-03-19 05:09:55.315171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e753234-cdf6-11e4-87b5-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e770aaa-cdf6-11e4-8e92-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e753234-cdf6-11e4-87b5-705681abff85"], ["organization_id", "2e770aaa-cdf6-11e4-8e92-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.318747"], ["updated_at", "2015-03-19 05:09:55.318747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e7619ba-cdf6-11e4-a7d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e770aaa-cdf6-11e4-8e92-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e7619ba-cdf6-11e4-a7d3-705681abff85"], ["organization_id", "2e770aaa-cdf6-11e4-8e92-705681abff85"], ["created_at", "2015-03-19 05:09:55.321872"], ["updated_at", "2015-03-19 05:09:55.321872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/2e778ffc-cdf6-11e4-89a6-705681abff85" for 127.0.0.1 at 2015-03-18 22:09:55 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"2e778ffc-cdf6-11e4-89a6-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:09:55.326265' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pElA0l7xjfjCj0NB91MjT2YijiCZUL_Oi4RK9YEdY0M"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:09:55.327637"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:09:55.329715"], ["id", "2e7684d6-cdf6-11e4-9712-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "2e778ffc-cdf6-11e4-89a6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e753234-cdf6-11e4-87b5-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e770aaa-cdf6-11e4-8e92-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2e753234-cdf6-11e4-87b5-705681abff85' LIMIT 1 [["organization_id", "2e770aaa-cdf6-11e4-8e92-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e753234-cdf6-11e4-87b5-705681abff85"]] Completed 200 OK in 11ms (Views: 1.6ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$aPA4pw8sXVziGT0JAoGEk.4GMop5ICt7mgXmYh.V3DxLbxHTpQ83i"], ["created_at", "2015-03-19 05:09:55.343560"], ["updated_at", "2015-03-19 05:09:55.343560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$6CMh3YTrVZx40jFdNEJlHeHe/LwslBBTvD0jF0mN34E5DorPzx1AC"], ["created_at", "2015-03-19 05:09:55.347834"], ["updated_at", "2015-03-19 05:09:55.347834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.349425"], ["user_id", "2e7b5c36-cdf6-11e4-9edb-705681abff85"], ["created_at", "2015-03-19 05:09:55.350347"], ["updated_at", "2015-03-19 05:09:55.350347"], ["token", "YEYm-rF3oWm76BDoaMNVZ-iWpkdiV0wrmXGlqISwRSE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:55.353973"], ["updated_at", "2015-03-19 05:09:55.353973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e7b5c36-cdf6-11e4-9edb-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e7cef4c-cdf6-11e4-80c9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e7b5c36-cdf6-11e4-9edb-705681abff85"], ["organization_id", "2e7cef4c-cdf6-11e4-80c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.357700"], ["updated_at", "2015-03-19 05:09:55.357700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e7bfee8-cdf6-11e4-b9b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e7cef4c-cdf6-11e4-80c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e7bfee8-cdf6-11e4-b9b0-705681abff85"], ["organization_id", "2e7cef4c-cdf6-11e4-80c9-705681abff85"], ["created_at", "2015-03-19 05:09:55.361307"], ["updated_at", "2015-03-19 05:09:55.361307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 22:09:55 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$J32XZrbODlx6PHhOQHcgWuQX8W5/KT5IGn7z6Lr63Mg2YuVMKhv8K"], ["created_at", "2015-03-19 05:09:55.373470"], ["updated_at", "2015-03-19 05:09:55.373470"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$ndTeEYmXC9gJEzkbiiyRK.B6T/qi4jm9z.pRtYYCHGv5Eer3NJFU2"], ["created_at", "2015-03-19 05:09:55.385089"], ["updated_at", "2015-03-19 05:09:55.385089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:09:55.386716"], ["user_id", "2e7ff99e-cdf6-11e4-a348-705681abff85"], ["created_at", "2015-03-19 05:09:55.387887"], ["updated_at", "2015-03-19 05:09:55.387887"], ["token", "b0ndP8YA0frbDWq3gM4iqX5SZTi_aGsjBeIbQSzL-nI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:09:55.392977"], ["updated_at", "2015-03-19 05:09:55.392977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e7ff99e-cdf6-11e4-a348-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e82e3a2-cdf6-11e4-9ae6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e7ff99e-cdf6-11e4-a348-705681abff85"], ["organization_id", "2e82e3a2-cdf6-11e4-9ae6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:09:55.396285"], ["updated_at", "2015-03-19 05:09:55.396285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e81b1c6-cdf6-11e4-9434-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e82e3a2-cdf6-11e4-9ae6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2e81b1c6-cdf6-11e4-9434-705681abff85"], ["organization_id", "2e82e3a2-cdf6-11e4-9ae6-705681abff85"], ["created_at", "2015-03-19 05:09:55.399925"], ["updated_at", "2015-03-19 05:09:55.399925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/2e83f828-cdf6-11e4-83cb-705681abff85" for 127.0.0.1 at 2015-03-18 22:09:55 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"2e83f828-cdf6-11e4-83cb-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:09:55.404581' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b0ndP8YA0frbDWq3gM4iqX5SZTi_aGsjBeIbQSzL-nI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:09:55.405976"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:09:55.406924"], ["id", "2e823be6-cdf6-11e4-9ae0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "2e83f828-cdf6-11e4-83cb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e7ff99e-cdf6-11e4-a348-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e82e3a2-cdf6-11e4-9ae6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2e7ff99e-cdf6-11e4-a348-705681abff85' LIMIT 1 [["organization_id", "2e82e3a2-cdf6-11e4-9ae6-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e81b1c6-cdf6-11e4-9434-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e81b1c6-cdf6-11e4-9434-705681abff85' AND "clubhouse_memberships"."id" != '2e83f828-cdf6-11e4-83cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '2e82e3a2-cdf6-11e4-9ae6-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:09:55.414643"], ["id", "2e83f828-cdf6-11e4-83cb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.2ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (26.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$0VKgFfpTjvRY7zGRqGiVbuwsgvQWkt4nor3GRojiTjBYc1ojAxAEe"], ["created_at", "2015-03-19 05:10:24.073514"], ["updated_at", "2015-03-19 05:10:24.073514"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.140930"], ["user_id", "3f9f371c-cdf6-11e4-9c60-705681abff85"], ["created_at", "2015-03-19 05:10:24.147856"], ["updated_at", "2015-03-19 05:10:24.147856"], ["token", "7P0VSOU00FB9mpptXiQXTaq2GBiuElki5cx0ayQv8hc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.157199"], ["updated_at", "2015-03-19 05:10:24.157199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f9f371c-cdf6-11e4-9c60-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fa7feba-cdf6-11e4-9ef6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f9f371c-cdf6-11e4-9c60-705681abff85"], ["organization_id", "3fa7feba-cdf6-11e4-9ef6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.167969"], ["updated_at", "2015-03-19 05:10:24.167969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$p3EcDaKqtX3fQBn9/770j.rd7VcLNF1ISFY.LTvh5TRA8SpYsHRva"], ["created_at", "2015-03-19 05:10:24.173100"], ["updated_at", "2015-03-19 05:10:24.173100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.176527"], ["updated_at", "2015-03-19 05:10:24.176527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3faa64ac-cdf6-11e4-84e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3faaf2dc-cdf6-11e4-929b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3faa64ac-cdf6-11e4-84e2-705681abff85"], ["organization_id", "3faaf2dc-cdf6-11e4-929b-705681abff85"], ["created_at", "2015-03-19 05:10:24.180082"], ["updated_at", "2015-03-19 05:10:24.180082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:10:24 -0700  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$U0eeWQnImuVV9slOrkaBf./W/n8pnkeK/0lJvP6zNAL11XDDMmNrG"], ["created_at", "2015-03-19 05:10:24.251985"], ["updated_at", "2015-03-19 05:10:24.251985"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.256953"], ["user_id", "3fb6924a-cdf6-11e4-b3f4-705681abff85"], ["created_at", "2015-03-19 05:10:24.258431"], ["updated_at", "2015-03-19 05:10:24.258431"], ["token", "BCT-VELVdz3s9pyX6ZZVS8htEHIDDY-IRzGOxRYQQy8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.262760"], ["updated_at", "2015-03-19 05:10:24.262760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fb6924a-cdf6-11e4-b3f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fb81534-cdf6-11e4-816b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fb6924a-cdf6-11e4-b3f4-705681abff85"], ["organization_id", "3fb81534-cdf6-11e4-816b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.266504"], ["updated_at", "2015-03-19 05:10:24.266504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ChhHXr0557Pc8tSp8BVXc.dpnKYLchRSmou2SH6f9AJ0vAxig65ly"], ["created_at", "2015-03-19 05:10:24.271277"], ["updated_at", "2015-03-19 05:10:24.271277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.274431"], ["updated_at", "2015-03-19 05:10:24.274431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fb95f66-cdf6-11e4-a51f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fb9d90a-cdf6-11e4-b3d6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3fb95f66-cdf6-11e4-a51f-705681abff85"], ["organization_id", "3fb9d90a-cdf6-11e4-b3d6-705681abff85"], ["created_at", "2015-03-19 05:10:24.277623"], ["updated_at", "2015-03-19 05:10:24.277623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Z/2HpkoXjMqWheefhuZR0.hA3ahN1RBlb2I8HCyzVNV9CtOEU4Oje"], ["created_at", "2015-03-19 05:10:24.290407"], ["updated_at", "2015-03-19 05:10:24.290407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.292087"], ["user_id", "3fbc4d70-cdf6-11e4-abed-705681abff85"], ["created_at", "2015-03-19 05:10:24.292899"], ["updated_at", "2015-03-19 05:10:24.292899"], ["token", "-BN1cbVhhYB862B7nDDIF-tA7TI0Fdu3cnt3QIM8mgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.296290"], ["updated_at", "2015-03-19 05:10:24.296290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fbc4d70-cdf6-11e4-abed-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fbd2ed4-cdf6-11e4-a6c4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fbc4d70-cdf6-11e4-abed-705681abff85"], ["organization_id", "3fbd2ed4-cdf6-11e4-a6c4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.299502"], ["updated_at", "2015-03-19 05:10:24.299502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$sAfwY7tK4J8rLtShDT4/X.TgHGL316gczNUJ/Y.298vN.q2UT5hJ6"], ["created_at", "2015-03-19 05:10:24.309789"], ["updated_at", "2015-03-19 05:10:24.309789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.312344"], ["user_id", "3fbf5862-cdf6-11e4-a366-705681abff85"], ["created_at", "2015-03-19 05:10:24.313410"], ["updated_at", "2015-03-19 05:10:24.313410"], ["token", "_67mfzVxrmPrvXOESf2RfoWob5TvOYL72UsfrSZWRJ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.318282"], ["updated_at", "2015-03-19 05:10:24.318282"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fbf5862-cdf6-11e4-a366-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fc09b46-cdf6-11e4-b2d0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fbf5862-cdf6-11e4-a366-705681abff85"], ["organization_id", "3fc09b46-cdf6-11e4-b2d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.322814"], ["updated_at", "2015-03-19 05:10:24.322814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-6" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-6", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.328774' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_67mfzVxrmPrvXOESf2RfoWob5TvOYL72UsfrSZWRJ8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.337628"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.338896"], ["id", "3fbfe4a8-cdf6-11e4-8c04-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$7klbyAdxydZdY.9tm836EO9aeSXibbjoEkN6doelm0/LpaPQqPdDe"], ["created_at", "2015-03-19 05:10:24.352181"], ["updated_at", "2015-03-19 05:10:24.352181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.354862"], ["user_id", "3fc5d318-cdf6-11e4-b210-705681abff85"], ["created_at", "2015-03-19 05:10:24.355630"], ["updated_at", "2015-03-19 05:10:24.355630"], ["token", "ryYQVRjbTLiHh9wb74y2wGVoDC0JizaJETtnprV8OGw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.359581"], ["updated_at", "2015-03-19 05:10:24.359581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fc5d318-cdf6-11e4-b210-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fc6d75e-cdf6-11e4-b0bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fc5d318-cdf6-11e4-b210-705681abff85"], ["organization_id", "3fc6d75e-cdf6-11e4-b0bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.363155"], ["updated_at", "2015-03-19 05:10:24.363155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-7" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-7", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.367601' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ryYQVRjbTLiHh9wb74y2wGVoDC0JizaJETtnprV8OGw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.369312"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.371209"], ["id", "3fc64b72-cdf6-11e4-a0e5-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$WRK/BW3.9QYxrd77MXoLreVuAq8hXDIFXBijufVUHG9UhX/fcT.Tm"], ["created_at", "2015-03-19 05:10:24.380942"], ["updated_at", "2015-03-19 05:10:24.380942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.383249"], ["user_id", "3fca21b6-cdf6-11e4-9764-705681abff85"], ["created_at", "2015-03-19 05:10:24.384196"], ["updated_at", "2015-03-19 05:10:24.384196"], ["token", "r_ATafRm0bznfBU_DcBIMKbj8c-mrxwIuKUBhziP9DA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.387945"], ["updated_at", "2015-03-19 05:10:24.387945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fca21b6-cdf6-11e4-9764-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fcb2a5c-cdf6-11e4-b69d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fca21b6-cdf6-11e4-9764-705681abff85"], ["organization_id", "3fcb2a5c-cdf6-11e4-b69d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.391166"], ["updated_at", "2015-03-19 05:10:24.391166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/3fcb2a5c-cdf6-11e4-b69d-705681abff85" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"3fcb2a5c-cdf6-11e4-b69d-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.395630' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r_ATafRm0bznfBU_DcBIMKbj8c-mrxwIuKUBhziP9DA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.397059"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.398042"], ["id", "3fcaa6fe-cdf6-11e4-b4d9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$QWwyV3ExakqlluWUIrfvtuocsYm4gibfMxegFdyxpyWhFJvTB0XEq"], ["created_at", "2015-03-19 05:10:24.406328"], ["updated_at", "2015-03-19 05:10:24.406328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.407879"], ["user_id", "3fcdfb56-cdf6-11e4-a73d-705681abff85"], ["created_at", "2015-03-19 05:10:24.408717"], ["updated_at", "2015-03-19 05:10:24.408717"], ["token", "c8B4iaYnzzaR8_iTlcmGHuZ0wsp5SDfhI0AzTf2WLgU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.411955"], ["updated_at", "2015-03-19 05:10:24.411955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fcdfb56-cdf6-11e4-a73d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fced292-cdf6-11e4-b9c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fcdfb56-cdf6-11e4-a73d-705681abff85"], ["organization_id", "3fced292-cdf6-11e4-b9c1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.415630"], ["updated_at", "2015-03-19 05:10:24.415630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$/zDHavNnxCvmPKT./tMaxukPvRRD36rbqjo2Sm3D90Wjj2Si0TrQi"], ["created_at", "2015-03-19 05:10:24.425065"], ["updated_at", "2015-03-19 05:10:24.425065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.427042"], ["user_id", "3fd0dfa6-cdf6-11e4-bc69-705681abff85"], ["created_at", "2015-03-19 05:10:24.427941"], ["updated_at", "2015-03-19 05:10:24.427941"], ["token", "C8FM1GmT9eUrRRen9rlRl54b4d9SVlZU_kxpb3sqEbE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.431612"], ["updated_at", "2015-03-19 05:10:24.431612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fd0dfa6-cdf6-11e4-bc69-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fd1d596-cdf6-11e4-8451-705681abff85') LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fd0dfa6-cdf6-11e4-bc69-705681abff85"], ["organization_id", "3fd1d596-cdf6-11e4-8451-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.434975"], ["updated_at", "2015-03-19 05:10:24.434975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$3ph3ns0fL6FuSKnBO30ufeybsKY86GFOxEXQbnrYo.0/SKdlXPwpK"], ["created_at", "2015-03-19 05:10:24.446626"], ["updated_at", "2015-03-19 05:10:24.446626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.448297"], ["user_id", "3fd42288-cdf6-11e4-9009-705681abff85"], ["created_at", "2015-03-19 05:10:24.449102"], ["updated_at", "2015-03-19 05:10:24.449102"], ["token", "t-HnaWCVgnHax9Ro6FRjZW-3so1izshqRtGS4ZRHldc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.452994"], ["updated_at", "2015-03-19 05:10:24.452994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fd42288-cdf6-11e4-9009-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fd51fb2-cdf6-11e4-9232-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fd42288-cdf6-11e4-9009-705681abff85"], ["organization_id", "3fd51fb2-cdf6-11e4-9232-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.456693"], ["updated_at", "2015-03-19 05:10:24.456693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/3fd51fb2-cdf6-11e4-9232-705681abff85" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"3fd51fb2-cdf6-11e4-9232-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.461559' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "t-HnaWCVgnHax9Ro6FRjZW-3so1izshqRtGS4ZRHldc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.463008"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.464241"], ["id", "3fd49420-cdf6-11e4-995a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$HQZn5lr7dEmxEJs6tvkUye1jWMK.qV9okDdRZkl39sxqmgDuUogmG"], ["created_at", "2015-03-19 05:10:24.476134"], ["updated_at", "2015-03-19 05:10:24.476134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.478093"], ["user_id", "3fd8a466-cdf6-11e4-82bb-705681abff85"], ["created_at", "2015-03-19 05:10:24.479089"], ["updated_at", "2015-03-19 05:10:24.479089"], ["token", "R4dUVcZgvMcbN9sbK_9-5M11DLpy3uAuWHrHHaspxik"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.482671"], ["updated_at", "2015-03-19 05:10:24.482671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fd8a466-cdf6-11e4-82bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fd9a064-cdf6-11e4-b126-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fd8a466-cdf6-11e4-82bb-705681abff85"], ["organization_id", "3fd9a064-cdf6-11e4-b126-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.486443"], ["updated_at", "2015-03-19 05:10:24.486443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/3fd9a064-cdf6-11e4-b126-705681abff85" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"3fd9a064-cdf6-11e4-b126-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.491478' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "R4dUVcZgvMcbN9sbK_9-5M11DLpy3uAuWHrHHaspxik"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.493135"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.495032"], ["id", "3fd91f68-cdf6-11e4-ab86-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$i1oPDCGBl44tc7/oLzLUPOs7Fjtwi3wJ0lG1BhzY6KxA4SXAIz1XO"], ["created_at", "2015-03-19 05:10:24.505312"], ["updated_at", "2015-03-19 05:10:24.505312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.507085"], ["user_id", "3fdd1906-cdf6-11e4-8309-705681abff85"], ["created_at", "2015-03-19 05:10:24.507980"], ["updated_at", "2015-03-19 05:10:24.507980"], ["token", "3o1HayYTOyu7z4T5w_GkN7ka0Om4vydRSL_rWoxKcx8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.511498"], ["updated_at", "2015-03-19 05:10:24.511498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fdd1906-cdf6-11e4-8309-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fde0604-cdf6-11e4-8a67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fdd1906-cdf6-11e4-8309-705681abff85"], ["organization_id", "3fde0604-cdf6-11e4-8a67-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.514911"], ["updated_at", "2015-03-19 05:10:24.514911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/3fde0604-cdf6-11e4-8a67-705681abff85" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"3fde0604-cdf6-11e4-8a67-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.519818' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3o1HayYTOyu7z4T5w_GkN7ka0Om4vydRSL_rWoxKcx8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.521237"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.522264"], ["id", "3fdd8602-cdf6-11e4-9c2e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 14ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$zR02xaN7mrJew4y4oMYD.OFZqgc24icr/0W6sjSus3Y1AQT.DQJmy"], ["created_at", "2015-03-19 05:10:24.539842"], ["updated_at", "2015-03-19 05:10:24.539842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.541454"], ["user_id", "3fe25998-cdf6-11e4-955b-705681abff85"], ["created_at", "2015-03-19 05:10:24.542212"], ["updated_at", "2015-03-19 05:10:24.542212"], ["token", "A7xkVYMBtlH9HSkMbw1FhJp261C9rJ_xuVufopmTg8I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.546392"], ["updated_at", "2015-03-19 05:10:24.546392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fe25998-cdf6-11e4-955b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fe35848-cdf6-11e4-abe3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fe25998-cdf6-11e4-955b-705681abff85"], ["organization_id", "3fe35848-cdf6-11e4-abe3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.549587"], ["updated_at", "2015-03-19 05:10:24.549587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$5sfa9nHb57zVKvggiMnNr.cAOQxP0ZJ8aPyg3.7XpdYdsfMEP2x9G"], ["created_at", "2015-03-19 05:10:24.559558"], ["updated_at", "2015-03-19 05:10:24.559558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.561733"], ["user_id", "3fe56ed0-cdf6-11e4-b966-705681abff85"], ["created_at", "2015-03-19 05:10:24.562505"], ["updated_at", "2015-03-19 05:10:24.562505"], ["token", "F0-tQnALazxwWQgjhn1v1e0aFAhpiLRHlBov8HuKkK4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.566011"], ["updated_at", "2015-03-19 05:10:24.566011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fe56ed0-cdf6-11e4-b966-705681abff85' AND "clubhouse_memberships"."organization_id" = '3fe656a6-cdf6-11e4-9bb7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fe56ed0-cdf6-11e4-b966-705681abff85"], ["organization_id", "3fe656a6-cdf6-11e4-9bb7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.569279"], ["updated_at", "2015-03-19 05:10:24.569279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-15" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-15", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.576517' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "F0-tQnALazxwWQgjhn1v1e0aFAhpiLRHlBov8HuKkK4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.578455"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.579815"], ["id", "3fe5d4d8-cdf6-11e4-b9a1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$eTtaExdQMOLVf5rLcMqVtOHLEibyB3DOiJxSRDqXn9Yrh5uVT/Ek."], ["created_at", "2015-03-19 05:10:24.588673"], ["updated_at", "2015-03-19 05:10:24.588673"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.596406"], ["user_id", "3fe9d538-cdf6-11e4-aadc-705681abff85"], ["created_at", "2015-03-19 05:10:24.597841"], ["updated_at", "2015-03-19 05:10:24.597841"], ["token", "0U91QubN2h2HjoZm903i56d9776KRExu4KTebbIm1Yc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.602480"], ["updated_at", "2015-03-19 05:10:24.602480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fe9d538-cdf6-11e4-aadc-705681abff85' AND "clubhouse_memberships"."organization_id" = '3febf246-cdf6-11e4-bead-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fe9d538-cdf6-11e4-aadc-705681abff85"], ["organization_id", "3febf246-cdf6-11e4-bead-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.606451"], ["updated_at", "2015-03-19 05:10:24.606451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$KJIvburr6Bywu85f31AMZOxBixq9fnMxgucvI1cgVLtPG2Jxm2K3O"], ["created_at", "2015-03-19 05:10:24.627376"], ["updated_at", "2015-03-19 05:10:24.627376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (64.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.630189"], ["user_id", "3fefc772-cdf6-11e4-adb4-705681abff85"], ["created_at", "2015-03-19 05:10:24.631621"], ["updated_at", "2015-03-19 05:10:24.631621"], ["token", "gh459-nH23lkVv8x9As6zQx9FcfMAOgNcAjJbRRh0fg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.703035"], ["updated_at", "2015-03-19 05:10:24.703035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fefc772-cdf6-11e4-adb4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ffb43fe-cdf6-11e4-8113-705681abff85') LIMIT 1 SQL (5.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fefc772-cdf6-11e4-adb4-705681abff85"], ["organization_id", "3ffb43fe-cdf6-11e4-8113-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.706807"], ["updated_at", "2015-03-19 05:10:24.706807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-17" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-17", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.717027' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gh459-nH23lkVv8x9As6zQx9FcfMAOgNcAjJbRRh0fg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.718607"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.719619"], ["id", "3ffa2c62-cdf6-11e4-80f1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$LG0eI9rtvjSBmBCDm/SpTe.oXRMbJxcdTftwFTfZ5dvoBOyEtr6ei"], ["created_at", "2015-03-19 05:10:24.728557"], ["updated_at", "2015-03-19 05:10:24.728557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.730834"], ["user_id", "3fff3914-cdf6-11e4-89bb-705681abff85"], ["created_at", "2015-03-19 05:10:24.731680"], ["updated_at", "2015-03-19 05:10:24.731680"], ["token", "WM9-CgQoU83hNzQ6TUBP1wYULrlZ6iGlt4p-dxV6taQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.735909"], ["updated_at", "2015-03-19 05:10:24.735909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fff3914-cdf6-11e4-89bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '40004246-cdf6-11e4-a2a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fff3914-cdf6-11e4-89bb-705681abff85"], ["organization_id", "40004246-cdf6-11e4-a2a7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.739215"], ["updated_at", "2015-03-19 05:10:24.739215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$MIf9m42M.9qdy5rXqf3Vz.ga57T6jwU7yW8BIa7OySZSLd9FRnJ5C"], ["created_at", "2015-03-19 05:10:24.749260"], ["updated_at", "2015-03-19 05:10:24.749260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.751057"], ["user_id", "40024ed8-cdf6-11e4-93e9-705681abff85"], ["created_at", "2015-03-19 05:10:24.752074"], ["updated_at", "2015-03-19 05:10:24.752074"], ["token", "cLivUUdcaX_Z10WRm38sfqG6yISozm7ipSGb4R7w4J0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.755651"], ["updated_at", "2015-03-19 05:10:24.755651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40024ed8-cdf6-11e4-93e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '400348d8-cdf6-11e4-97c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "40024ed8-cdf6-11e4-93e9-705681abff85"], ["organization_id", "400348d8-cdf6-11e4-97c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.759338"], ["updated_at", "2015-03-19 05:10:24.759338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$W8.nakR45SvX7W4XV.ISKexAZLnTtZLE1I/Ugx0T7MRNjZWON5XQO"], ["created_at", "2015-03-19 05:10:24.769228"], ["updated_at", "2015-03-19 05:10:24.769228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.770840"], ["user_id", "40055ae2-cdf6-11e4-905e-705681abff85"], ["created_at", "2015-03-19 05:10:24.771612"], ["updated_at", "2015-03-19 05:10:24.771612"], ["token", "ZyM0d78JzV3q-qvvqBP-p_w-9YcSJ29rUCktG2Q_Y98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.775189"], ["updated_at", "2015-03-19 05:10:24.775189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40055ae2-cdf6-11e4-905e-705681abff85' AND "clubhouse_memberships"."organization_id" = '400641be-cdf6-11e4-8a80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "40055ae2-cdf6-11e4-905e-705681abff85"], ["organization_id", "400641be-cdf6-11e4-8a80-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.778447"], ["updated_at", "2015-03-19 05:10:24.778447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.783611' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZyM0d78JzV3q-qvvqBP-p_w-9YcSJ29rUCktG2Q_Y98"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.785025"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.786211"], ["id", "4005bcbc-cdf6-11e4-a748-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$j3VqzH7RrSlTg6mnIrKH0uCEaijJ7qGNV1BVfyiVerc4mrP0h/9rC"], ["created_at", "2015-03-19 05:10:24.804006"], ["updated_at", "2015-03-19 05:10:24.804006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.806307"], ["user_id", "400abffa-cdf6-11e4-a8e1-705681abff85"], ["created_at", "2015-03-19 05:10:24.807216"], ["updated_at", "2015-03-19 05:10:24.807216"], ["token", "UrrHaZJeeUTknZTy9uyX3bC1kj8d-_-znfhiIXIvIXI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.810655"], ["updated_at", "2015-03-19 05:10:24.810655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '400abffa-cdf6-11e4-a8e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '400ba9e2-cdf6-11e4-9aca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "400abffa-cdf6-11e4-a8e1-705681abff85"], ["organization_id", "400ba9e2-cdf6-11e4-9aca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.813833"], ["updated_at", "2015-03-19 05:10:24.813833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.818361' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UrrHaZJeeUTknZTy9uyX3bC1kj8d-_-znfhiIXIvIXI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.819762"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.820766"], ["id", "400b2cec-cdf6-11e4-a742-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$SrasbwqkonRX1BkHnwq5IuwWHqnMXhq.bZJjKK6gTM4NXiwe9kima"], ["created_at", "2015-03-19 05:10:24.829537"], ["updated_at", "2015-03-19 05:10:24.829537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.831373"], ["user_id", "400e8f04-cdf6-11e4-a887-705681abff85"], ["created_at", "2015-03-19 05:10:24.832342"], ["updated_at", "2015-03-19 05:10:24.832342"], ["token", "xqJ9TM1FKdBafGh5zw5khXstlZQVHgsxEyIbYBVO6d8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.836926"], ["updated_at", "2015-03-19 05:10:24.836926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '400e8f04-cdf6-11e4-a887-705681abff85' AND "clubhouse_memberships"."organization_id" = '400fb046-cdf6-11e4-9181-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "400e8f04-cdf6-11e4-a887-705681abff85"], ["organization_id", "400fb046-cdf6-11e4-9181-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.840537"], ["updated_at", "2015-03-19 05:10:24.840537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$AcwED87hDD6D5KNemKnC4OEQHh4cYsnkftS8.vWPTtIhAPX9JHXP."], ["created_at", "2015-03-19 05:10:24.851047"], ["updated_at", "2015-03-19 05:10:24.851047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.852628"], ["user_id", "4011d79a-cdf6-11e4-86c7-705681abff85"], ["created_at", "2015-03-19 05:10:24.853734"], ["updated_at", "2015-03-19 05:10:24.853734"], ["token", "1f_pH7IvNnOA82pCgcXNIBFpzuvv8aL_m3OyPIYxpX4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.857647"], ["updated_at", "2015-03-19 05:10:24.857647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4011d79a-cdf6-11e4-86c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '4012d578-cdf6-11e4-b0a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4011d79a-cdf6-11e4-86c7-705681abff85"], ["organization_id", "4012d578-cdf6-11e4-b0a3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.860868"], ["updated_at", "2015-03-19 05:10:24.860868"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.865365' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1f_pH7IvNnOA82pCgcXNIBFpzuvv8aL_m3OyPIYxpX4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.866759"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.867882"], ["id", "40125706-cdf6-11e4-bd3d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$a5iVivmQB6AhSRrL0Qo.u.eBcIwCDFHXiz5TQZ66LqGxXxnJ9AlZa"], ["created_at", "2015-03-19 05:10:24.874670"], ["updated_at", "2015-03-19 05:10:24.874670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:10:24.876257"], ["user_id", "40157224-cdf6-11e4-9fed-705681abff85"], ["created_at", "2015-03-19 05:10:24.877027"], ["updated_at", "2015-03-19 05:10:24.877027"], ["token", "DHTMlyWrdA5GppxhZO4LBaeg0I6DFOzuHYY_3dF6LY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:10:24.880365"], ["updated_at", "2015-03-19 05:10:24.880365"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40157224-cdf6-11e4-9fed-705681abff85' AND "clubhouse_memberships"."organization_id" = '40164ce4-cdf6-11e4-9206-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "40157224-cdf6-11e4-9fed-705681abff85"], ["organization_id", "40164ce4-cdf6-11e4-9206-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:10:24.884439"], ["updated_at", "2015-03-19 05:10:24.884439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-24" for 127.0.0.1 at 2015-03-18 22:10:24 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-24", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:10:24.889159' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DHTMlyWrdA5GppxhZO4LBaeg0I6DFOzuHYY_3dF6LY0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:10:24.890546"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:10:24.891652"], ["id", "4015d336-cdf6-11e4-aaba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 4ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$imfzgQp645bIgtJuglC3NO3n4yvTwqb5uBEYCqlCSowVx./Jpy7Q2"], ["created_at", "2015-03-19 05:14:07.371954"], ["updated_at", "2015-03-19 05:14:07.371954"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (7.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.434543"], ["user_id", "c4b71c08-cdf6-11e4-a33c-705681abff85"], ["created_at", "2015-03-19 05:14:07.440152"], ["updated_at", "2015-03-19 05:14:07.440152"], ["token", "Doi8vu4SxwLo4jznYD42g2j964315ZPRL_tpTj0rPu4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (5.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.461674"], ["updated_at", "2015-03-19 05:14:07.461674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4b71c08-cdf6-11e4-a33c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4c192be-cdf6-11e4-8c58-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4b71c08-cdf6-11e4-a33c-705681abff85"], ["organization_id", "c4c192be-cdf6-11e4-8c58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.478422"], ["updated_at", "2015-03-19 05:14:07.478422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/c4c192be-cdf6-11e4-8c58-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"c4c192be-cdf6-11e4-8c58-705681abff85", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:07.504336' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Doi8vu4SxwLo4jznYD42g2j964315ZPRL_tpTj0rPu4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:07.513699"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:07.515010"], ["id", "c4be5310-cdf6-11e4-86ca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c4c192be-cdf6-11e4-8c58-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4b71c08-cdf6-11e4-a33c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c4b71c08-cdf6-11e4-a33c-705681abff85' LIMIT 1 [["organization_id", "c4c192be-cdf6-11e4-8c58-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (7.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "c4c192be-cdf6-11e4-8c58-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 39ms (ActiveRecord: 9.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$5chjZ2ZbJoQMoHRIquQtnezj5fbH7n6H/7lA.lqxVraychenqoHCG"], ["created_at", "2015-03-19 05:14:07.550656"], ["updated_at", "2015-03-19 05:14:07.550656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.552995"], ["user_id", "c4cf1ef2-cdf6-11e4-8977-705681abff85"], ["created_at", "2015-03-19 05:14:07.553823"], ["updated_at", "2015-03-19 05:14:07.553823"], ["token", "H4xlnbgJ_g6MP-LmLC9ZQliNRnxKsosU4gA71O_AMfI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.558417"], ["updated_at", "2015-03-19 05:14:07.558417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4cf1ef2-cdf6-11e4-8977-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4d0559c-cdf6-11e4-a898-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4cf1ef2-cdf6-11e4-8977-705681abff85"], ["organization_id", "c4d0559c-cdf6-11e4-a898-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.563442"], ["updated_at", "2015-03-19 05:14:07.563442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$hMOj6hGdYQtItpitLx9rR.qSdW8JeSnkovc5vexFVMqh4.bZIAheS"], ["created_at", "2015-03-19 05:14:07.574512"], ["updated_at", "2015-03-19 05:14:07.574512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.576082"], ["user_id", "c4d2be18-cdf6-11e4-9519-705681abff85"], ["created_at", "2015-03-19 05:14:07.576864"], ["updated_at", "2015-03-19 05:14:07.576864"], ["token", "wkILLToynWXSUQLRal6l6MEu4jUzRlia-37emZp7zyM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.580377"], ["updated_at", "2015-03-19 05:14:07.580377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4d2be18-cdf6-11e4-9519-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4d3ac6a-cdf6-11e4-8e01-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4d2be18-cdf6-11e4-9519-705681abff85"], ["organization_id", "c4d3ac6a-cdf6-11e4-8e01-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.584251"], ["updated_at", "2015-03-19 05:14:07.584251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$5tzlBLjL3sT3FNAZ1mgjM.1RKc0AeNhnMhVf4m2YTF8/gC0CDJeBG"], ["created_at", "2015-03-19 05:14:07.595672"], ["updated_at", "2015-03-19 05:14:07.595672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.598244"], ["user_id", "c4d6085c-cdf6-11e4-b24b-705681abff85"], ["created_at", "2015-03-19 05:14:07.599206"], ["updated_at", "2015-03-19 05:14:07.599206"], ["token", "ycDB_wnA5AFKXRrFI8dO_YPf6cVXyzBEWXCdnYCqsc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.602942"], ["updated_at", "2015-03-19 05:14:07.602942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4d6085c-cdf6-11e4-b24b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4d71eb8-cdf6-11e4-836c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4d6085c-cdf6-11e4-b24b-705681abff85"], ["organization_id", "c4d71eb8-cdf6-11e4-836c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.608454"], ["updated_at", "2015-03-19 05:14:07.608454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c4d71eb8-cdf6-11e4-836c-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"c4d71eb8-cdf6-11e4-836c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:07.615188' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ycDB_wnA5AFKXRrFI8dO_YPf6cVXyzBEWXCdnYCqsc4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:07.616719"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:07.617685"], ["id", "c4d68e76-cdf6-11e4-9a5d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c4d71eb8-cdf6-11e4-836c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4d6085c-cdf6-11e4-b24b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c4d6085c-cdf6-11e4-b24b-705681abff85' LIMIT 1 [["organization_id", "c4d71eb8-cdf6-11e4-836c-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c4d71eb8-cdf6-11e4-836c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$37zGspONrWjLsgyRz/GoPODFCfs/SKcEYQfsxkWtBRl5MzQ9XuNxm"], ["created_at", "2015-03-19 05:14:07.640740"], ["updated_at", "2015-03-19 05:14:07.640740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.642500"], ["user_id", "c4dcdc2c-cdf6-11e4-8415-705681abff85"], ["created_at", "2015-03-19 05:14:07.643365"], ["updated_at", "2015-03-19 05:14:07.643365"], ["token", "ZvIA7whWku8-kWu9eoZbz4IfPRVs__ynb9KYbZU3Zcg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.647523"], ["updated_at", "2015-03-19 05:14:07.647523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4dcdc2c-cdf6-11e4-8415-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4dde194-cdf6-11e4-9334-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4dcdc2c-cdf6-11e4-8415-705681abff85"], ["organization_id", "c4dde194-cdf6-11e4-9334-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.650802"], ["updated_at", "2015-03-19 05:14:07.650802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c4dde194-cdf6-11e4-9334-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"c4dde194-cdf6-11e4-9334-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:07.655859' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZvIA7whWku8-kWu9eoZbz4IfPRVs__ynb9KYbZU3Zcg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:07.657316"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:07.658266"], ["id", "c4dd4a36-cdf6-11e4-9988-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c4dde194-cdf6-11e4-9334-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4dcdc2c-cdf6-11e4-8415-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c4dcdc2c-cdf6-11e4-8415-705681abff85' LIMIT 1 [["organization_id", "c4dde194-cdf6-11e4-9334-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c4dde194-cdf6-11e4-9334-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:14:07.664575"], ["id", "c4dde194-cdf6-11e4-9334-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 1.5ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (6.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$3gfHmX1QhZShQvzxqp8iU.i9ajz75wU8LXg07WoYxiZHuxrLITtg."], ["created_at", "2015-03-19 05:14:07.675023"], ["updated_at", "2015-03-19 05:14:07.675023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.683264"], ["user_id", "c4e21534-cdf6-11e4-80ed-705681abff85"], ["created_at", "2015-03-19 05:14:07.684122"], ["updated_at", "2015-03-19 05:14:07.684122"], ["token", "dDveD30RNinF82-06nsC42_-R0sKa1jJxV4fsxQE104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.690879"], ["updated_at", "2015-03-19 05:14:07.690879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4e21534-cdf6-11e4-80ed-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4e485e4-cdf6-11e4-975d-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4e21534-cdf6-11e4-80ed-705681abff85"], ["organization_id", "c4e485e4-cdf6-11e4-975d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.696059"], ["updated_at", "2015-03-19 05:14:07.696059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:07.702653' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dDveD30RNinF82-06nsC42_-R0sKa1jJxV4fsxQE104"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:07.704059"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:07.705023"], ["id", "c4e38310-cdf6-11e4-8647-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4e21534-cdf6-11e4-80ed-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c4e21534-cdf6-11e4-80ed-705681abff85' LIMIT 1 [["organization_id", "c4e485e4-cdf6-11e4-975d-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$KL2MZLwfnBjVyBMEHtKl..PwXo2qt6Ny5a0n9XIJccBDJw60aYJua"], ["created_at", "2015-03-19 05:14:07.717234"], ["updated_at", "2015-03-19 05:14:07.717234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.720087"], ["user_id", "c4e89a26-cdf6-11e4-96a5-705681abff85"], ["created_at", "2015-03-19 05:14:07.721055"], ["updated_at", "2015-03-19 05:14:07.721055"], ["token", "_Ug2Td7siYAuf7tsilpBphcCF0RrRNpH4AOZG0fqznc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.725021"], ["updated_at", "2015-03-19 05:14:07.725021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4e89a26-cdf6-11e4-96a5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4e9b9d8-cdf6-11e4-8290-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4e89a26-cdf6-11e4-96a5-705681abff85"], ["organization_id", "c4e9b9d8-cdf6-11e4-8290-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.728896"], ["updated_at", "2015-03-19 05:14:07.728896"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$NIk6T8XtosxmeCqYU.MUDOOYmPkgazKP3rCwLkzSTv7UJznTIMzqu"], ["created_at", "2015-03-19 05:14:07.740356"], ["updated_at", "2015-03-19 05:14:07.740356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.742849"], ["user_id", "c4ec22cc-cdf6-11e4-afe5-705681abff85"], ["created_at", "2015-03-19 05:14:07.743683"], ["updated_at", "2015-03-19 05:14:07.743683"], ["token", "iu1uu9SptzbZK-I7myRqSxx5adrzQXpj63nHZM3Kdjg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.747488"], ["updated_at", "2015-03-19 05:14:07.747488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4ec22cc-cdf6-11e4-afe5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4ed2924-cdf6-11e4-bff1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4ec22cc-cdf6-11e4-afe5-705681abff85"], ["organization_id", "c4ed2924-cdf6-11e4-bff1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.751234"], ["updated_at", "2015-03-19 05:14:07.751234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$3cszocEEKkFYoDDS7nRLGu3FRxUFYFw6.ZU0cpDpeQaw.0BnOy3rG"], ["created_at", "2015-03-19 05:14:07.761557"], ["updated_at", "2015-03-19 05:14:07.761557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.763903"], ["user_id", "c4ef4d30-cdf6-11e4-b755-705681abff85"], ["created_at", "2015-03-19 05:14:07.764783"], ["updated_at", "2015-03-19 05:14:07.764783"], ["token", "754lpuTICBqYw9eIPWyhA_3IaaJbV76sG3zqB3qU9ug"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.768390"], ["updated_at", "2015-03-19 05:14:07.768390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4ef4d30-cdf6-11e4-b755-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4f05072-cdf6-11e4-be0d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4ef4d30-cdf6-11e4-b755-705681abff85"], ["organization_id", "c4f05072-cdf6-11e4-be0d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.771598"], ["updated_at", "2015-03-19 05:14:07.771598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:07.776146' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "754lpuTICBqYw9eIPWyhA_3IaaJbV76sG3zqB3qU9ug"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:07.777719"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:07.778700"], ["id", "c4efd2f0-cdf6-11e4-96ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Tpe0BiW5wVKN1SJPFkfRd.WpNfd8xnSH7hI2bEhMQYm/BF.okF4.S"], ["created_at", "2015-03-19 05:14:07.786800"], ["updated_at", "2015-03-19 05:14:07.786800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.788504"], ["user_id", "c4f3240a-cdf6-11e4-9916-705681abff85"], ["created_at", "2015-03-19 05:14:07.789296"], ["updated_at", "2015-03-19 05:14:07.789296"], ["token", "Co8oAg_KrlZd9lKslVWZTkzQtjnv0AX5X-2hMWTumC0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.792627"], ["updated_at", "2015-03-19 05:14:07.792627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4f3240a-cdf6-11e4-9916-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4f40366-cdf6-11e4-99de-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4f3240a-cdf6-11e4-9916-705681abff85"], ["organization_id", "c4f40366-cdf6-11e4-99de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.796010"], ["updated_at", "2015-03-19 05:14:07.796010"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-10" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:07.801508' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Co8oAg_KrlZd9lKslVWZTkzQtjnv0AX5X-2hMWTumC0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:07.803014"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:07.804066"], ["id", "c4f38b2a-cdf6-11e4-8e9f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4f3240a-cdf6-11e4-9916-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Bcag8FoUTqxXIP4GFfgsKO7YSwkv7GZtUevx8DiN2J16HokSNyIMq"], ["created_at", "2015-03-19 05:14:07.813503"], ["updated_at", "2015-03-19 05:14:07.813503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.815761"], ["user_id", "c4f74986-cdf6-11e4-a752-705681abff85"], ["created_at", "2015-03-19 05:14:07.816562"], ["updated_at", "2015-03-19 05:14:07.816562"], ["token", "n3XBdFatX1Cm3IVU6Y-w_6WTx3E3AchBXKZ5UB5ttBc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.827342"], ["updated_at", "2015-03-19 05:14:07.827342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4f74986-cdf6-11e4-a752-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4f953b6-cdf6-11e4-bd82-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4f74986-cdf6-11e4-a752-705681abff85"], ["organization_id", "c4f953b6-cdf6-11e4-bd82-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.830580"], ["updated_at", "2015-03-19 05:14:07.830580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Ii403jXpZYCmCtdlfmYz.O5kAcuFSTyH3Ar4hSs11ADT5ce5erL7a"], ["created_at", "2015-03-19 05:14:07.835109"], ["updated_at", "2015-03-19 05:14:07.835109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.838384"], ["updated_at", "2015-03-19 05:14:07.838384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4fa8074-cdf6-11e4-a696-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c4fb0008-cdf6-11e4-874b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c4fa8074-cdf6-11e4-a696-705681abff85"], ["organization_id", "c4fb0008-cdf6-11e4-874b-705681abff85"], ["created_at", "2015-03-19 05:14:07.841542"], ["updated_at", "2015-03-19 05:14:07.841542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:07.846148' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n3XBdFatX1Cm3IVU6Y-w_6WTx3E3AchBXKZ5UB5ttBc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:07.847914"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:07.849102"], ["id", "c4f7b51a-cdf6-11e4-b629-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c4f74986-cdf6-11e4-a752-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c4f74986-cdf6-11e4-a752-705681abff85"]] Completed 200 OK in 16ms (Views: 3.1ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$xc9omHI5n/uhIpys3xn0b.OpUDBWlOMyyH11/E.GDUE0qut1ylW9e"], ["created_at", "2015-03-19 05:14:07.868681"], ["updated_at", "2015-03-19 05:14:07.868681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.870403"], ["user_id", "c4ffa0a4-cdf6-11e4-8cf2-705681abff85"], ["created_at", "2015-03-19 05:14:07.871179"], ["updated_at", "2015-03-19 05:14:07.871179"], ["token", "5_baeTIuAYzEWuvuM7bMOqDbhKqASwmiSV7tvgTf9r4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.874613"], ["updated_at", "2015-03-19 05:14:07.874613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4ffa0a4-cdf6-11e4-8cf2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c50086f4-cdf6-11e4-bda5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c4ffa0a4-cdf6-11e4-8cf2-705681abff85"], ["organization_id", "c50086f4-cdf6-11e4-bda5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.877783"], ["updated_at", "2015-03-19 05:14:07.877783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Vnjfnn8tmbs/47yerm0Mt.8hTWlDzJyIQYmdaRZphVJIa4UAqZrXK"], ["created_at", "2015-03-19 05:14:07.882083"], ["updated_at", "2015-03-19 05:14:07.882083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.885122"], ["updated_at", "2015-03-19 05:14:07.885122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c501aaca-cdf6-11e4-99ac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5021fbe-cdf6-11e4-b26b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c501aaca-cdf6-11e4-99ac-705681abff85"], ["organization_id", "c5021fbe-cdf6-11e4-b26b-705681abff85"], ["created_at", "2015-03-19 05:14:07.888172"], ["updated_at", "2015-03-19 05:14:07.888172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$F6bMaGiWjy9x4yzejxaa4upxZ5LmGhUhbcGy16fbfoAJAvYh0g9yO"], ["created_at", "2015-03-19 05:14:07.897949"], ["updated_at", "2015-03-19 05:14:07.897949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.900052"], ["user_id", "c5041bde-cdf6-11e4-8aa1-705681abff85"], ["created_at", "2015-03-19 05:14:07.901050"], ["updated_at", "2015-03-19 05:14:07.901050"], ["token", "96SuGHOtW2ZuE1QY55GKmEMXJ3xpxuJWlCRbkjmVEhM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.904562"], ["updated_at", "2015-03-19 05:14:07.904562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5041bde-cdf6-11e4-8aa1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5051778-cdf6-11e4-ad8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5041bde-cdf6-11e4-8aa1-705681abff85"], ["organization_id", "c5051778-cdf6-11e4-ad8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.908853"], ["updated_at", "2015-03-19 05:14:07.908853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$SM7mhlaXZZwdp026/Ir.oeqnEI9A8y2eTeiq5z68NgYk4wRQOqEHy"], ["created_at", "2015-03-19 05:14:07.921073"], ["updated_at", "2015-03-19 05:14:07.921073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.922650"], ["user_id", "c5079f48-cdf6-11e4-bd0b-705681abff85"], ["created_at", "2015-03-19 05:14:07.923426"], ["updated_at", "2015-03-19 05:14:07.923426"], ["token", "8wyiRJ21zR6j827U3iTtQ0DpirlShDHtVtK3ojfUPH4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.926687"], ["updated_at", "2015-03-19 05:14:07.926687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5079f48-cdf6-11e4-bd0b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5087828-cdf6-11e4-b8e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5079f48-cdf6-11e4-bd0b-705681abff85"], ["organization_id", "c5087828-cdf6-11e4-b8e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.929850"], ["updated_at", "2015-03-19 05:14:07.929850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:07.934185' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8wyiRJ21zR6j827U3iTtQ0DpirlShDHtVtK3ojfUPH4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:07.936138"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:07.938050"], ["id", "c507ff7e-cdf6-11e4-93f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5079f48-cdf6-11e4-bd0b-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$dJAV9W9dxkRFs0WqEsXsV.leJBtuxEejzrc.B23GKCtnxy0I3/6t."], ["created_at", "2015-03-19 05:14:07.956060"], ["updated_at", "2015-03-19 05:14:07.956060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.957691"], ["user_id", "c50cf66e-cdf6-11e4-b698-705681abff85"], ["created_at", "2015-03-19 05:14:07.958516"], ["updated_at", "2015-03-19 05:14:07.958516"], ["token", "i0MJb6455Rw9ROQRzsM1iCi-juRbNQfJAiny_f-jGYw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.962110"], ["updated_at", "2015-03-19 05:14:07.962110"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c50cf66e-cdf6-11e4-b698-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c50deb5a-cdf6-11e4-bf81-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c50cf66e-cdf6-11e4-b698-705681abff85"], ["organization_id", "c50deb5a-cdf6-11e4-bf81-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:07.966604"], ["updated_at", "2015-03-19 05:14:07.966604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:14:07 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:07.971146' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "i0MJb6455Rw9ROQRzsM1iCi-juRbNQfJAiny_f-jGYw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:07.972636"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:07.973576"], ["id", "c50d5b54-cdf6-11e4-a0c4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c50cf66e-cdf6-11e4-b698-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.978274"], ["updated_at", "2015-03-19 05:14:07.978274"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c5105a02-cdf6-11e4-a00f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c50cf66e-cdf6-11e4-b698-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5105a02-cdf6-11e4-a00f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c50cf66e-cdf6-11e4-b698-705681abff85"], ["admin", "t"], ["organization_id", "c5105a02-cdf6-11e4-a00f-705681abff85"], ["created_at", "2015-03-19 05:14:07.982576"], ["updated_at", "2015-03-19 05:14:07.982576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$QHIsID9Q0PVBOHAfYsKvrekv9TwHzQeeEk9JrK2NBRe1W1yLgrIF6"], ["created_at", "2015-03-19 05:14:07.990826"], ["updated_at", "2015-03-19 05:14:07.990826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:07.992498"], ["user_id", "c512440c-cdf6-11e4-bfce-705681abff85"], ["created_at", "2015-03-19 05:14:07.993258"], ["updated_at", "2015-03-19 05:14:07.993258"], ["token", "ONz7WNvzjt1zhzsGFQfJkVO4pd_ILAG-M9OhtyGriV0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:07.996627"], ["updated_at", "2015-03-19 05:14:07.996627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c512440c-cdf6-11e4-bfce-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5132372-cdf6-11e4-86cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c512440c-cdf6-11e4-bfce-705681abff85"], ["organization_id", "c5132372-cdf6-11e4-86cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:08.000380"], ["updated_at", "2015-03-19 05:14:08.000380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:14:08 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$JBlNcx0GiMXnyz8ndf2LOuw4HrKzGw.N.tRVJj.rvuvGE8rcfOCeG"], ["created_at", "2015-03-19 05:14:08.009786"], ["updated_at", "2015-03-19 05:14:08.009786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:08.011522"], ["user_id", "c5152b90-cdf6-11e4-95d7-705681abff85"], ["created_at", "2015-03-19 05:14:08.012379"], ["updated_at", "2015-03-19 05:14:08.012379"], ["token", "WNGqMXxgVyWyWJY1gYJ0zzMPeU6Dkz3onCgnrL9n6Vs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:08.016746"], ["updated_at", "2015-03-19 05:14:08.016746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5152b90-cdf6-11e4-95d7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5163792-cdf6-11e4-ae0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5152b90-cdf6-11e4-95d7-705681abff85"], ["organization_id", "c5163792-cdf6-11e4-ae0d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:08.020301"], ["updated_at", "2015-03-19 05:14:08.020301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-19" for 127.0.0.1 at 2015-03-18 22:14:08 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-19", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:08.024917' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WNGqMXxgVyWyWJY1gYJ0zzMPeU6Dkz3onCgnrL9n6Vs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:08.026321"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:08.027358"], ["id", "c515986e-cdf6-11e4-8bbc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-19"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5152b90-cdf6-11e4-95d7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c5152b90-cdf6-11e4-95d7-705681abff85' LIMIT 1 [["organization_id", "c5163792-cdf6-11e4-ae0d-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c5163792-cdf6-11e4-ae0d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Vpbd1wjASQQEKVEujCEhPe.bIOozalD6JNKj2FDhrq3q/ITwZtO5W"], ["created_at", "2015-03-19 05:14:08.040668"], ["updated_at", "2015-03-19 05:14:08.040668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:08.042301"], ["user_id", "c519e14e-cdf6-11e4-bd61-705681abff85"], ["created_at", "2015-03-19 05:14:08.043083"], ["updated_at", "2015-03-19 05:14:08.043083"], ["token", "w_mxJ4M75CPzBZgQ3HDYvw9RAMVat-Ci-i-PKCHrHmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:08.046397"], ["updated_at", "2015-03-19 05:14:08.046397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c519e14e-cdf6-11e4-bd61-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c51abc72-cdf6-11e4-af05-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c519e14e-cdf6-11e4-bd61-705681abff85"], ["organization_id", "c51abc72-cdf6-11e4-af05-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:08.050219"], ["updated_at", "2015-03-19 05:14:08.050219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-20" for 127.0.0.1 at 2015-03-18 22:14:08 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-20", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:08.054804' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "w_mxJ4M75CPzBZgQ3HDYvw9RAMVat-Ci-i-PKCHrHmM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:08.056687"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:08.058517"], ["id", "c51a4288-cdf6-11e4-bb8e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-20"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c519e14e-cdf6-11e4-bd61-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c519e14e-cdf6-11e4-bd61-705681abff85' LIMIT 1 [["organization_id", "c51abc72-cdf6-11e4-af05-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c51abc72-cdf6-11e4-af05-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:14:08.067734"], ["id", "c51abc72-cdf6-11e4-af05-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$AxL3Cv31SPtMT1NCEPRt9.d7zOYVsO4A1G0ohm8Pz8quVI8Zrd3Qy"], ["created_at", "2015-03-19 05:14:08.075364"], ["updated_at", "2015-03-19 05:14:08.075364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:08.077011"], ["user_id", "c51f2af0-cdf6-11e4-b363-705681abff85"], ["created_at", "2015-03-19 05:14:08.077789"], ["updated_at", "2015-03-19 05:14:08.077789"], ["token", "h4E5BP2T2NMJ1qpsTJCtbRNep2vaWz_qX8jlC3epvx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:08.081396"], ["updated_at", "2015-03-19 05:14:08.081396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c51f2af0-cdf6-11e4-b363-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5201474-cdf6-11e4-a865-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c51f2af0-cdf6-11e4-b363-705681abff85"], ["organization_id", "c5201474-cdf6-11e4-a865-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:08.084702"], ["updated_at", "2015-03-19 05:14:08.084702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-21" for 127.0.0.1 at 2015-03-18 22:14:08 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-21", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:08.089220' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "h4E5BP2T2NMJ1qpsTJCtbRNep2vaWz_qX8jlC3epvx0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:08.090658"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:08.091609"], ["id", "c51f8f90-cdf6-11e4-a954-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c51f2af0-cdf6-11e4-b363-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c51f2af0-cdf6-11e4-b363-705681abff85' LIMIT 1 [["organization_id", "c5201474-cdf6-11e4-a865-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "c5201474-cdf6-11e4-a865-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$uHxzc3cjhm.4Fc2YY9brZuZpe8PPIJ//MKrwwWHRzhPkk7KhD449W"], ["created_at", "2015-03-19 05:14:08.102229"], ["updated_at", "2015-03-19 05:14:08.102229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:08.103894"], ["user_id", "c5234702-cdf6-11e4-8d67-705681abff85"], ["created_at", "2015-03-19 05:14:08.104659"], ["updated_at", "2015-03-19 05:14:08.104659"], ["token", "34AdfWJX1PEh_wD-DeJJ5zxrBJ4bVGFel6BomHY1qT8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:08.109022"], ["updated_at", "2015-03-19 05:14:08.109022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5234702-cdf6-11e4-8d67-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c5245020-cdf6-11e4-a31f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5234702-cdf6-11e4-8d67-705681abff85"], ["organization_id", "c5245020-cdf6-11e4-a31f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:08.113023"], ["updated_at", "2015-03-19 05:14:08.113023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:14:08 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$Z7F1Awy1HTA48La9Yrl5GuRKvdP.0h3BSTncRN31fvT6RhSFOjWTK"], ["created_at", "2015-03-19 05:14:08.123405"], ["updated_at", "2015-03-19 05:14:08.123405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:08.125090"], ["user_id", "c5268016-cdf6-11e4-97de-705681abff85"], ["created_at", "2015-03-19 05:14:08.125867"], ["updated_at", "2015-03-19 05:14:08.125867"], ["token", "pryQu5-1zWFlkI6zuDqeNbn3OvBhGWGgrGDAbyZzxBA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:08.129311"], ["updated_at", "2015-03-19 05:14:08.129311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5268016-cdf6-11e4-97de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c52763dc-cdf6-11e4-87d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5268016-cdf6-11e4-97de-705681abff85"], ["organization_id", "c52763dc-cdf6-11e4-87d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:08.132555"], ["updated_at", "2015-03-19 05:14:08.132555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c52763dc-cdf6-11e4-87d8-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:08 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"c52763dc-cdf6-11e4-87d8-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:08.136934' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pryQu5-1zWFlkI6zuDqeNbn3OvBhGWGgrGDAbyZzxBA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:08.138341"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:08.139288"], ["id", "c526e60a-cdf6-11e4-baff-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c52763dc-cdf6-11e4-87d8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5268016-cdf6-11e4-97de-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c5268016-cdf6-11e4-97de-705681abff85' LIMIT 1 [["organization_id", "c52763dc-cdf6-11e4-87d8-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$pBz88m2w7e8Wd0Xrrt6r5eN0Ryo6080pmsXgunHY1k2AEuEbLvxBS"], ["created_at", "2015-03-19 05:14:08.150431"], ["updated_at", "2015-03-19 05:14:08.150431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:08.152096"], ["user_id", "c52a9fca-cdf6-11e4-8165-705681abff85"], ["created_at", "2015-03-19 05:14:08.152912"], ["updated_at", "2015-03-19 05:14:08.152912"], ["token", "i89fww7aG5HdGoAg-fkBRhk_qzrc8bsso9L4lL_d6iQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:08.157351"], ["updated_at", "2015-03-19 05:14:08.157351"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c52a9fca-cdf6-11e4-8165-705681abff85' AND "clubhouse_memberships"."organization_id" = 'c52bacbc-cdf6-11e4-807b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c52a9fca-cdf6-11e4-8165-705681abff85"], ["organization_id", "c52bacbc-cdf6-11e4-807b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:08.168015"], ["updated_at", "2015-03-19 05:14:08.168015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:14:08 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (3.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$Anvcvy2TrwdIaDjU3N6kK.tAXgfKAdljV9Dv5QWV/9uOKtPtU6BNG"], ["created_at", "2015-03-19 05:14:19.034751"], ["updated_at", "2015-03-19 05:14:19.034751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.049182"], ["updated_at", "2015-03-19 05:14:19.049182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cba80c7a-cdf6-11e4-a202-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cba9b3e0-cdf6-11e4-b781-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cba80c7a-cdf6-11e4-a202-705681abff85"], ["organization_id", "cba9b3e0-cdf6-11e4-b781-705681abff85"], ["created_at", "2015-03-19 05:14:19.054549"], ["updated_at", "2015-03-19 05:14:19.054549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (1.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cba80c7a-cdf6-11e4-a202-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cba9b3e0-cdf6-11e4-b781-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cba80c7a-cdf6-11e4-a202-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cba9b3e0-cdf6-11e4-b781-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cba9b3e0-cdf6-11e4-b781-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cba80c7a-cdf6-11e4-a202-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cba9b3e0-cdf6-11e4-b781-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$FEYy44v37lxG6cor/lb5LuKtlpvjQiLx6f/i0ECqr3r5EC5iHBSHi"], ["created_at", "2015-03-19 05:14:19.084942"], ["updated_at", "2015-03-19 05:14:19.084942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.088906"], ["updated_at", "2015-03-19 05:14:19.088906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbaf2550-cdf6-11e4-8f24-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbafb916-cdf6-11e4-bda1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbaf2550-cdf6-11e4-8f24-705681abff85"], ["organization_id", "cbafb916-cdf6-11e4-bda1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.093169"], ["updated_at", "2015-03-19 05:14:19.093169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cbaf2550-cdf6-11e4-8f24-705681abff85' LIMIT 1 [["organization_id", "cbafb916-cdf6-11e4-bda1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$usWp13OLWdn8adWBcNYMYed5Rg2pvuwHwu82v04u9eA/ZAyEjySoi"], ["created_at", "2015-03-19 05:14:19.112559"], ["updated_at", "2015-03-19 05:14:19.112559"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.119576"], ["updated_at", "2015-03-19 05:14:19.119576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbb35666-cdf6-11e4-a3ff-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbb47d20-cdf6-11e4-ba92-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbb35666-cdf6-11e4-a3ff-705681abff85"], ["organization_id", "cbb47d20-cdf6-11e4-ba92-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.125152"], ["updated_at", "2015-03-19 05:14:19.125152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cbb35666-cdf6-11e4-a3ff-705681abff85' LIMIT 1 [["organization_id", "cbb47d20-cdf6-11e4-ba92-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$lDEy7xwVOmSDhYnRTDW2TOsTRX53y34tt5CLom.uLVpdJYZcsOVRi"], ["created_at", "2015-03-19 05:14:19.134457"], ["updated_at", "2015-03-19 05:14:19.134457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.138837"], ["updated_at", "2015-03-19 05:14:19.138837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbb6b9fa-cdf6-11e4-9508-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbb75752-cdf6-11e4-9f41-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbb6b9fa-cdf6-11e4-9508-705681abff85"], ["organization_id", "cbb75752-cdf6-11e4-9f41-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.143592"], ["updated_at", "2015-03-19 05:14:19.143592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$NRHT0H/IXzZo7HVDTO/jEOjN/qAX/Jwu9MKkFXLSeN8tNfbEktoFy"], ["created_at", "2015-03-19 05:14:19.151948"], ["updated_at", "2015-03-19 05:14:19.151948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.155890"], ["updated_at", "2015-03-19 05:14:19.155890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbb9578c-cdf6-11e4-8693-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbb9f052-cdf6-11e4-80e9-705681abff85') LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbb9578c-cdf6-11e4-8693-705681abff85"], ["organization_id", "cbb9f052-cdf6-11e4-80e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.161895"], ["updated_at", "2015-03-19 05:14:19.161895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cbb9578c-cdf6-11e4-8693-705681abff85' LIMIT 1 [["organization_id", "cbb9f052-cdf6-11e4-80e9-705681abff85"]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$vkLp.xLrP4XQCJxwVa19beWKr7ElFkjGlAbYFzYcK1ArZ4kz6kdeC"], ["created_at", "2015-03-19 05:14:19.177142"], ["updated_at", "2015-03-19 05:14:19.177142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (129.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.181437"], ["updated_at", "2015-03-19 05:14:19.181437"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbbd3d16-cdf6-11e4-a098-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbbdd73a-cdf6-11e4-8316-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbbd3d16-cdf6-11e4-a098-705681abff85"], ["organization_id", "cbbdd73a-cdf6-11e4-8316-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.315837"], ["updated_at", "2015-03-19 05:14:19.315837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cbbd3d16-cdf6-11e4-a098-705681abff85' LIMIT 1 [["organization_id", "cbbdd73a-cdf6-11e4-8316-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$W37o8UYi/eTrfJoxGSCixOG2XO1EgRCvD7eBhXeiyN3rs799rR7MK"], ["created_at", "2015-03-19 05:14:19.327934"], ["updated_at", "2015-03-19 05:14:19.327934"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.339671"], ["updated_at", "2015-03-19 05:14:19.339671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbd51bca-cdf6-11e4-a16f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbd60f08-cdf6-11e4-8558-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbd51bca-cdf6-11e4-a16f-705681abff85"], ["organization_id", "cbd60f08-cdf6-11e4-8558-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.345665"], ["updated_at", "2015-03-19 05:14:19.345665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$k.2Q9gD2Ac/X.BJY.PXSx.tMFkB6wx3UKcrWpOBRHer3USWvK4wrm"], ["created_at", "2015-03-19 05:14:19.352489"], ["updated_at", "2015-03-19 05:14:19.352489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbd7fdfe-cdf6-11e4-9140-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbd60f08-cdf6-11e4-8558-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbd7fdfe-cdf6-11e4-9140-705681abff85"], ["organization_id", "cbd60f08-cdf6-11e4-8558-705681abff85"], ["created_at", "2015-03-19 05:14:19.357881"], ["updated_at", "2015-03-19 05:14:19.357881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cbd51bca-cdf6-11e4-a16f-705681abff85' LIMIT 1 [["organization_id", "cbd60f08-cdf6-11e4-8558-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$rzitDwI.Odi/7hvNScHJR.RjACcyELzKntTJClnQLrrUYGcxFfsXi"], ["created_at", "2015-03-19 05:14:19.366159"], ["updated_at", "2015-03-19 05:14:19.366159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.369686"], ["updated_at", "2015-03-19 05:14:19.369686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbda061c-cdf6-11e4-b700-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbda9136-cdf6-11e4-afb9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbda061c-cdf6-11e4-b700-705681abff85"], ["organization_id", "cbda9136-cdf6-11e4-afb9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.375161"], ["updated_at", "2015-03-19 05:14:19.375161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$G.bDmSoFEdryhHSJeyZ.de73iYoUj/HbuVw/otmByUEa9PIov8Fk2"], ["created_at", "2015-03-19 05:14:19.380501"], ["updated_at", "2015-03-19 05:14:19.380501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbdc73fc-cdf6-11e4-ac10-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbda9136-cdf6-11e4-afb9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbdc73fc-cdf6-11e4-ac10-705681abff85"], ["organization_id", "cbda9136-cdf6-11e4-afb9-705681abff85"], ["created_at", "2015-03-19 05:14:19.388180"], ["updated_at", "2015-03-19 05:14:19.388180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$J9/1t/he3G.LCK5sh67nneVVvrB3HxdCVVpDsC6OOMYIWG099gV6a"], ["created_at", "2015-03-19 05:14:19.394846"], ["updated_at", "2015-03-19 05:14:19.394846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.398604"], ["updated_at", "2015-03-19 05:14:19.398604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbde678e-cdf6-11e4-8ecd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbdef974-cdf6-11e4-9785-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbde678e-cdf6-11e4-8ecd-705681abff85"], ["organization_id", "cbdef974-cdf6-11e4-9785-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.403201"], ["updated_at", "2015-03-19 05:14:19.403201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$aongbl.inc0rrFlqYzHNj.NST7BHlkR2jNFnLiFBQKaBV68OO9yQa"], ["created_at", "2015-03-19 05:14:19.410831"], ["updated_at", "2015-03-19 05:14:19.410831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe0da00-cdf6-11e4-b629-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbdef974-cdf6-11e4-9785-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbe0da00-cdf6-11e4-b629-705681abff85"], ["organization_id", "cbdef974-cdf6-11e4-9785-705681abff85"], ["created_at", "2015-03-19 05:14:19.414954"], ["updated_at", "2015-03-19 05:14:19.414954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cbde678e-cdf6-11e4-8ecd-705681abff85' LIMIT 1 [["organization_id", "cbdef974-cdf6-11e4-9785-705681abff85"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$WRksE9isqmnOFN1jn8nZs.ZcvDyuJQXnI.XQV6jQNRvxUlPXGCoR6"], ["created_at", "2015-03-19 05:14:19.437903"], ["updated_at", "2015-03-19 05:14:19.437903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.443204"], ["updated_at", "2015-03-19 05:14:19.443204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe505f8-cdf6-11e4-b864-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbe5d514-cdf6-11e4-a7df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbe505f8-cdf6-11e4-b864-705681abff85"], ["organization_id", "cbe5d514-cdf6-11e4-a7df-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.447417"], ["updated_at", "2015-03-19 05:14:19.447417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$QT8UQWC8C3DOAmMcpvBWIOOGi1rHJu1/6CSaYo2gduiX7.CkMqLG."], ["created_at", "2015-03-19 05:14:19.452553"], ["updated_at", "2015-03-19 05:14:19.452553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe731b6-cdf6-11e4-90d8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbe5d514-cdf6-11e4-a7df-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbe731b6-cdf6-11e4-90d8-705681abff85"], ["organization_id", "cbe5d514-cdf6-11e4-a7df-705681abff85"], ["created_at", "2015-03-19 05:14:19.456509"], ["updated_at", "2015-03-19 05:14:19.456509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cbe505f8-cdf6-11e4-b864-705681abff85' LIMIT 1 [["organization_id", "cbe5d514-cdf6-11e4-a7df-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$SboVfl.nD2xQRyCdRtX70OMBx5IeGQNe7bNznluMTYfBSqPuGoX2C"], ["created_at", "2015-03-19 05:14:19.466771"], ["updated_at", "2015-03-19 05:14:19.466771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.470446"], ["updated_at", "2015-03-19 05:14:19.470446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe95fe0-cdf6-11e4-98cb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbe9f46e-cdf6-11e4-96f4-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbe95fe0-cdf6-11e4-98cb-705681abff85"], ["organization_id", "cbe9f46e-cdf6-11e4-96f4-705681abff85"], ["created_at", "2015-03-19 05:14:19.474963"], ["updated_at", "2015-03-19 05:14:19.474963"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cbe95fe0-cdf6-11e4-98cb-705681abff85' LIMIT 1 [["organization_id", "cbe9f46e-cdf6-11e4-96f4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$CCoY3QCLCIiX72fGFNpITepxGQeqsjpBq.7Z8aGFwJV8BEGr8NwoW"], ["created_at", "2015-03-19 05:14:19.494680"], ["updated_at", "2015-03-19 05:14:19.494680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.498503"], ["updated_at", "2015-03-19 05:14:19.498503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbeda686-cdf6-11e4-8b17-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbee5e96-cdf6-11e4-bfa5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbeda686-cdf6-11e4-8b17-705681abff85"], ["organization_id", "cbee5e96-cdf6-11e4-bfa5-705681abff85"], ["created_at", "2015-03-19 05:14:19.503758"], ["updated_at", "2015-03-19 05:14:19.503758"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$/0frzfRJVrx7XzSZrDtrLermPEB6vu04YdEFVWvmJcHXWksfihBPi"], ["created_at", "2015-03-19 05:14:19.513338"], ["updated_at", "2015-03-19 05:14:19.513338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.522679"], ["updated_at", "2015-03-19 05:14:19.522679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbf083ec-cdf6-11e4-8d87-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbf54706-cdf6-11e4-a359-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbf083ec-cdf6-11e4-8d87-705681abff85"], ["organization_id", "cbf54706-cdf6-11e4-a359-705681abff85"], ["created_at", "2015-03-19 05:14:19.551218"], ["updated_at", "2015-03-19 05:14:19.551218"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cbf083ec-cdf6-11e4-8d87-705681abff85' LIMIT 1 [["organization_id", "cbf54706-cdf6-11e4-a359-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$LdYu9CaPSdhkeBxgId3pCOPmgMbrnPShvU3vuy0/zRBKVfT/S4yq6"], ["created_at", "2015-03-19 05:14:19.565190"], ["updated_at", "2015-03-19 05:14:19.565190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (6.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.568567"], ["updated_at", "2015-03-19 05:14:19.568567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbf864cc-cdf6-11e4-944a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbf8e690-cdf6-11e4-a266-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbf864cc-cdf6-11e4-944a-705681abff85"], ["organization_id", "cbf8e690-cdf6-11e4-a266-705681abff85"], ["created_at", "2015-03-19 05:14:19.583331"], ["updated_at", "2015-03-19 05:14:19.583331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cbf864cc-cdf6-11e4-944a-705681abff85' LIMIT 1 [["organization_id", "cbf8e690-cdf6-11e4-a266-705681abff85"]]  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$bpWwBYwNlvydg1D69ond.O65Yy4hhdlF10l2tayF3qdLjILCx9Hi."], ["created_at", "2015-03-19 05:14:19.598660"], ["updated_at", "2015-03-19 05:14:19.598660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.602178"], ["updated_at", "2015-03-19 05:14:19.602178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbfd8074-cdf6-11e4-a492-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cbfe04d6-cdf6-11e4-9861-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbfd8074-cdf6-11e4-a492-705681abff85"], ["organization_id", "cbfe04d6-cdf6-11e4-9861-705681abff85"], ["created_at", "2015-03-19 05:14:19.607604"], ["updated_at", "2015-03-19 05:14:19.607604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cbfd8074-cdf6-11e4-a492-705681abff85' LIMIT 1 [["organization_id", "cbfe04d6-cdf6-11e4-9861-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$bsmqYPDpPf9qLqhwenT4XOb2lMLhxQA3SSXV7ohGRV/BJbS.OfV2W"], ["created_at", "2015-03-19 05:14:19.617798"], ["updated_at", "2015-03-19 05:14:19.617798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$te34RJcMCJpcTmftK7O.hurCkDngpzpRXzRRE4LtrI2aajs7wnqVa"], ["created_at", "2015-03-19 05:14:19.623742"], ["updated_at", "2015-03-19 05:14:19.623742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.628340"], ["updated_at", "2015-03-19 05:14:19.628340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc015a64-cdf6-11e4-a0d8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc020d42-cdf6-11e4-b170-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc015a64-cdf6-11e4-a0d8-705681abff85"], ["organization_id", "cc020d42-cdf6-11e4-b170-705681abff85"], ["created_at", "2015-03-19 05:14:19.633149"], ["updated_at", "2015-03-19 05:14:19.633149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc0072c0-cdf6-11e4-a866-705681abff85' LIMIT 1 [["organization_id", "cc020d42-cdf6-11e4-b170-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$zrlOaQbVcV8yFxQNFZekb.sbkuv5Cx5DXc6If0AWDqsC1PreFkmMS"], ["created_at", "2015-03-19 05:14:19.643996"], ["updated_at", "2015-03-19 05:14:19.643996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$DyLwxHtq.MNVN.GGXaPUxeY4tWLn2Tx89ghTSHK.PCur4mRr0HmAW"], ["created_at", "2015-03-19 05:14:19.650676"], ["updated_at", "2015-03-19 05:14:19.650676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.655696"], ["updated_at", "2015-03-19 05:14:19.655696"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc057a54-cdf6-11e4-abb2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc06493e-cdf6-11e4-b373-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc057a54-cdf6-11e4-abb2-705681abff85"], ["organization_id", "cc06493e-cdf6-11e4-b373-705681abff85"], ["created_at", "2015-03-19 05:14:19.661205"], ["updated_at", "2015-03-19 05:14:19.661205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$YW6.X2LAHHl4jLWjM0Km8.lNk5Q.addMSCXbLkhW8rMeEQlsi2JEO"], ["created_at", "2015-03-19 05:14:19.669139"], ["updated_at", "2015-03-19 05:14:19.669139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$h1PZsr3BYD7In/xZ4tDz/ODdFLUn37FPfjM7alwOevGZdah3t2Ox."], ["created_at", "2015-03-19 05:14:19.675443"], ["updated_at", "2015-03-19 05:14:19.675443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.680737"], ["updated_at", "2015-03-19 05:14:19.680737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc094878-cdf6-11e4-b7c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc0a0e2a-cdf6-11e4-bddf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc094878-cdf6-11e4-b7c5-705681abff85"], ["organization_id", "cc0a0e2a-cdf6-11e4-bddf-705681abff85"], ["created_at", "2015-03-19 05:14:19.685357"], ["updated_at", "2015-03-19 05:14:19.685357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cc08443c-cdf6-11e4-b4bb-705681abff85' LIMIT 1 [["organization_id", "cc0a0e2a-cdf6-11e4-bddf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (4.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$ERcBYyQFMPSDr9gIatFGYuDu5ONZbfr.7oYj783BDzj2nP9A9p6Zi"], ["created_at", "2015-03-19 05:14:19.694634"], ["updated_at", "2015-03-19 05:14:19.694634"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$jZz3sPjuWHLhme4Q42mYAezod4DTFl7GFspFT3tnvmYW9Bf/cRSOi"], ["created_at", "2015-03-19 05:14:19.707119"], ["updated_at", "2015-03-19 05:14:19.707119"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.712941"], ["updated_at", "2015-03-19 05:14:19.712941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc0e2f96-cdf6-11e4-bb2c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc0ef4c6-cdf6-11e4-9959-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc0e2f96-cdf6-11e4-bb2c-705681abff85"], ["organization_id", "cc0ef4c6-cdf6-11e4-9959-705681abff85"], ["created_at", "2015-03-19 05:14:19.717508"], ["updated_at", "2015-03-19 05:14:19.717508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc0c2d4a-cdf6-11e4-b769-705681abff85' LIMIT 1 [["organization_id", "cc0ef4c6-cdf6-11e4-9959-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$vTtqUPlfclVjs4EKVYnSUOPtgu0RACn80npKfNQAiiJraFNuLvklS"], ["created_at", "2015-03-19 05:14:19.728170"], ["updated_at", "2015-03-19 05:14:19.728170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.733727"], ["updated_at", "2015-03-19 05:14:19.733727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cc114794-cdf6-11e4-b8a9-705681abff85' LIMIT 1 [["organization_id", "cc122452-cdf6-11e4-8995-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$i9fZWPOKtd.gtwug8Uh8FO1sJYrdkb1k2pwFFl1aaZ9.a/36sSTmO"], ["created_at", "2015-03-19 05:14:19.743383"], ["updated_at", "2015-03-19 05:14:19.743383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.747726"], ["updated_at", "2015-03-19 05:14:19.747726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cc139922-cdf6-11e4-a4af-705681abff85' LIMIT 1 [["organization_id", "cc143e36-cdf6-11e4-943d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$b1SZuBf.Gu9pl61ORUAkgeWz0MDmxK8L6NIqoE5aOL0jol34emZYC"], ["created_at", "2015-03-19 05:14:19.756822"], ["updated_at", "2015-03-19 05:14:19.756822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.762651"], ["updated_at", "2015-03-19 05:14:19.762651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc15ab04-cdf6-11e4-a7ce-705681abff85' LIMIT 1 [["organization_id", "cc169244-cdf6-11e4-bcde-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (1.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$WF.0WVpoxzw.lm2sThcuy.ezpcHsjdNnaMXbxrsfZ5pnVsfctLiiq"], ["created_at", "2015-03-19 05:14:19.772370"], ["updated_at", "2015-03-19 05:14:19.772370"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.781982"], ["updated_at", "2015-03-19 05:14:19.781982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc184aee-cdf6-11e4-be58-705681abff85' LIMIT 1 [["organization_id", "cc198a80-cdf6-11e4-ad57-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$tAj6R7P6uF72Snvum3aCleI.EUxt6RY8AbhZytGxAteLf3R6wEsNq"], ["created_at", "2015-03-19 05:14:19.792398"], ["updated_at", "2015-03-19 05:14:19.792398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.797115"], ["updated_at", "2015-03-19 05:14:19.797115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$37vCEaeHoUdnWkBDdwNcFe43JrK3HlvtEXBgrC6NvJz/Oq5S9TmXC"], ["created_at", "2015-03-19 05:14:19.803239"], ["updated_at", "2015-03-19 05:14:19.803239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.809020"], ["updated_at", "2015-03-19 05:14:19.809020"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$HJxAh8UxOVfU9TZ5NufZk.0CM.mc4Bf01oNte9Tz5m8aXCgrHxlue"], ["created_at", "2015-03-19 05:14:19.817482"], ["updated_at", "2015-03-19 05:14:19.817482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$HCj0uqqoTBN8r4.CoFdTE.HPNTvz1CdiqtTF2Y1bdE/xxL0YFnqUO"], ["created_at", "2015-03-19 05:14:19.830622"], ["updated_at", "2015-03-19 05:14:19.830622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.833927"], ["updated_at", "2015-03-19 05:14:19.833927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc20e0f0-cdf6-11e4-99b8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc216084-cdf6-11e4-8184-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc20e0f0-cdf6-11e4-99b8-705681abff85"], ["organization_id", "cc216084-cdf6-11e4-8184-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.837235"], ["updated_at", "2015-03-19 05:14:19.837235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cc20e0f0-cdf6-11e4-99b8-705681abff85' LIMIT 1 [["organization_id", "cc216084-cdf6-11e4-8184-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$RNmxyB9HrRUpyv9ahQzaqud6yAldTJ42gEJVPoQA6lLSxnLv3C5zS"], ["created_at", "2015-03-19 05:14:19.844298"], ["updated_at", "2015-03-19 05:14:19.844298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.847822"], ["updated_at", "2015-03-19 05:14:19.847822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc22fcdc-cdf6-11e4-a793-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc237d56-cdf6-11e4-bf65-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc22fcdc-cdf6-11e4-a793-705681abff85"], ["organization_id", "cc237d56-cdf6-11e4-bf65-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.851667"], ["updated_at", "2015-03-19 05:14:19.851667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc22fcdc-cdf6-11e4-a793-705681abff85' LIMIT 1 [["organization_id", "cc237d56-cdf6-11e4-bf65-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$avhc2Uuu5ifuHjxkTqo9w./fzM0wyGfkmTSZBUCEjfN1KU2gr6fHS"], ["created_at", "2015-03-19 05:14:19.860237"], ["updated_at", "2015-03-19 05:14:19.860237"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.865549"], ["updated_at", "2015-03-19 05:14:19.865549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc257ac0-cdf6-11e4-961b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc263b72-cdf6-11e4-96bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc257ac0-cdf6-11e4-961b-705681abff85"], ["organization_id", "cc263b72-cdf6-11e4-96bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.869463"], ["updated_at", "2015-03-19 05:14:19.869463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc257ac0-cdf6-11e4-961b-705681abff85' LIMIT 1 [["organization_id", "cc263b72-cdf6-11e4-96bb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$EIlz1G4kO6RPxbzmNIZJ0eQGa8nv4xuJrvkzDnDuFObDE4WSElN2O"], ["created_at", "2015-03-19 05:14:19.878104"], ["updated_at", "2015-03-19 05:14:19.878104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.881725"], ["updated_at", "2015-03-19 05:14:19.881725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc282658-cdf6-11e4-9107-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc28b14a-cdf6-11e4-9c03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc282658-cdf6-11e4-9107-705681abff85"], ["organization_id", "cc28b14a-cdf6-11e4-9c03-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.885571"], ["updated_at", "2015-03-19 05:14:19.885571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$tBSyj/T7/kMGv4UDGduG/uuzQBkU1r04NhC89vNoDcaQBE3vp6S5."], ["created_at", "2015-03-19 05:14:19.891850"], ["updated_at", "2015-03-19 05:14:19.891850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.895979"], ["updated_at", "2015-03-19 05:14:19.895979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc2a3d30-cdf6-11e4-9103-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc2ae096-cdf6-11e4-a8c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc2a3d30-cdf6-11e4-9103-705681abff85"], ["organization_id", "cc2ae096-cdf6-11e4-a8c0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.899818"], ["updated_at", "2015-03-19 05:14:19.899818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$vYcWwDxm8rE3rar4pjRCP.BWblbqgDs9ierZuk1R9H9lFC9Bx6HGG"], ["created_at", "2015-03-19 05:14:19.906307"], ["updated_at", "2015-03-19 05:14:19.906307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.910624"], ["updated_at", "2015-03-19 05:14:19.910624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc2c6f1a-cdf6-11e4-a5f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc2d1852-cdf6-11e4-b83f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc2c6f1a-cdf6-11e4-a5f4-705681abff85"], ["organization_id", "cc2d1852-cdf6-11e4-b83f-705681abff85"], ["created_at", "2015-03-19 05:14:19.914421"], ["updated_at", "2015-03-19 05:14:19.914421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cc2c6f1a-cdf6-11e4-a5f4-705681abff85' LIMIT 1 [["organization_id", "cc2d1852-cdf6-11e4-b83f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$ADq.1B1CKdlBYkP8t8LU.u095Z2/0zQIR9MM9WlkkJatNzNlbYwmy"], ["created_at", "2015-03-19 05:14:19.921942"], ["updated_at", "2015-03-19 05:14:19.921942"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.926605"], ["updated_at", "2015-03-19 05:14:19.926605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc2ed2dc-cdf6-11e4-91f2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc2f905a-cdf6-11e4-bb14-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc2ed2dc-cdf6-11e4-91f2-705681abff85"], ["organization_id", "cc2f905a-cdf6-11e4-bb14-705681abff85"], ["created_at", "2015-03-19 05:14:19.930576"], ["updated_at", "2015-03-19 05:14:19.930576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc2ed2dc-cdf6-11e4-91f2-705681abff85' LIMIT 1 [["organization_id", "cc2f905a-cdf6-11e4-bb14-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$3Ut7OR.qBO3oqqldf76/Ke3iYJ0.tELTSuRRpbfeeJK4bFzOFeJNy"], ["created_at", "2015-03-19 05:14:19.938371"], ["updated_at", "2015-03-19 05:14:19.938371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.950062"], ["updated_at", "2015-03-19 05:14:19.950062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc31575a-cdf6-11e4-ab0d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc331cc0-cdf6-11e4-bc54-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc31575a-cdf6-11e4-ab0d-705681abff85"], ["organization_id", "cc331cc0-cdf6-11e4-bc54-705681abff85"], ["created_at", "2015-03-19 05:14:19.953659"], ["updated_at", "2015-03-19 05:14:19.953659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc31575a-cdf6-11e4-ab0d-705681abff85' LIMIT 1 [["organization_id", "cc331cc0-cdf6-11e4-bc54-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$npmLfRMdc/q2UjIHldSa5e5w0TSTVtMdAKdOwQzA7.YtNo5kwgqTy"], ["created_at", "2015-03-19 05:14:19.961911"], ["updated_at", "2015-03-19 05:14:19.961911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.965524"], ["updated_at", "2015-03-19 05:14:19.965524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc34efd2-cdf6-11e4-8114-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc357880-cdf6-11e4-a632-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc34efd2-cdf6-11e4-8114-705681abff85"], ["organization_id", "cc357880-cdf6-11e4-a632-705681abff85"], ["created_at", "2015-03-19 05:14:19.969469"], ["updated_at", "2015-03-19 05:14:19.969469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$.sxhbV3Kg7VlPC.p9rBTd.PnPXzq2CENuwUEkcIWQkvYOIJ98xXBq"], ["created_at", "2015-03-19 05:14:19.976813"], ["updated_at", "2015-03-19 05:14:19.976813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.980696"], ["updated_at", "2015-03-19 05:14:19.980696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc374250-cdf6-11e4-85b4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc37c3e2-cdf6-11e4-ba90-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc374250-cdf6-11e4-85b4-705681abff85"], ["organization_id", "cc37c3e2-cdf6-11e4-ba90-705681abff85"], ["created_at", "2015-03-19 05:14:19.983789"], ["updated_at", "2015-03-19 05:14:19.983789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$AKLB.Who049af7vPK/B32e9AWb1vZcrSiu0AMWHnlVMcsmcSjmiRS"], ["created_at", "2015-03-19 05:14:19.989878"], ["updated_at", "2015-03-19 05:14:19.989878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:19.993296"], ["updated_at", "2015-03-19 05:14:19.993296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc393646-cdf6-11e4-b5a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc39b0a8-cdf6-11e4-b06e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc393646-cdf6-11e4-b5a4-705681abff85"], ["organization_id", "cc39b0a8-cdf6-11e4-b06e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:19.996571"], ["updated_at", "2015-03-19 05:14:19.996571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'cc39b0a8-cdf6-11e4-b06e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "cc39b0a8-cdf6-11e4-b06e-705681abff85"], ["created_at", "2015-03-19 05:14:20.008516"], ["updated_at", "2015-03-19 05:14:20.008516"], ["token", "bfeI6F08RpWjN84Qbv11g89GoQXamRapekoi_9mVSko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc393646-cdf6-11e4-b5a4-705681abff85' LIMIT 1 [["organization_id", "cc39b0a8-cdf6-11e4-b06e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$e5ykrhmgw4Eean.0oKquv.zsbaaY8XA8ieqLNSx0SrLWgZ1lXTUhK"], ["created_at", "2015-03-19 05:14:20.017074"], ["updated_at", "2015-03-19 05:14:20.017074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.020225"], ["updated_at", "2015-03-19 05:14:20.020225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc3d53ca-cdf6-11e4-ae7f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc3dcaee-cdf6-11e4-8ef4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc3d53ca-cdf6-11e4-ae7f-705681abff85"], ["organization_id", "cc3dcaee-cdf6-11e4-8ef4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.023531"], ["updated_at", "2015-03-19 05:14:20.023531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'cc3dcaee-cdf6-11e4-8ef4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "cc3dcaee-cdf6-11e4-8ef4-705681abff85"], ["created_at", "2015-03-19 05:14:20.028024"], ["updated_at", "2015-03-19 05:14:20.028024"], ["token", "kQMqO3Atl-ryibJMPj4mVYDEiQR11FJdlYLLOuY2EGU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc3d53ca-cdf6-11e4-ae7f-705681abff85' LIMIT 1 [["organization_id", "cc3dcaee-cdf6-11e4-8ef4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$qm5F8vWnKVYOIk9iotlEIOFleQGm.nA14OhicII96nT1uuwocSUDq"], ["created_at", "2015-03-19 05:14:20.035360"], ["updated_at", "2015-03-19 05:14:20.035360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.038627"], ["updated_at", "2015-03-19 05:14:20.038627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc401e20-cdf6-11e4-a150-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc409ad0-cdf6-11e4-8b9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc401e20-cdf6-11e4-a150-705681abff85"], ["organization_id", "cc409ad0-cdf6-11e4-8b9b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.042376"], ["updated_at", "2015-03-19 05:14:20.042376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'cc409ad0-cdf6-11e4-8b9b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "cc409ad0-cdf6-11e4-8b9b-705681abff85"], ["created_at", "2015-03-19 05:14:20.046030"], ["updated_at", "2015-03-19 05:14:20.046030"], ["token", "lnILw-ayo8qdFjuJkkJ3_F28acmsB1mHNyyYxsOLxuM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc401e20-cdf6-11e4-a150-705681abff85' LIMIT 1 [["organization_id", "cc409ad0-cdf6-11e4-8b9b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$Acc1FvetgMoocsdqXYOcKutd7LM4FQzBIKbkWzUbnTEIugw2ZWxpK"], ["created_at", "2015-03-19 05:14:20.053181"], ["updated_at", "2015-03-19 05:14:20.053181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.056308"], ["updated_at", "2015-03-19 05:14:20.056308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc42d642-cdf6-11e4-b381-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc434d84-cdf6-11e4-b2ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc42d642-cdf6-11e4-b381-705681abff85"], ["organization_id", "cc434d84-cdf6-11e4-b2ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.059977"], ["updated_at", "2015-03-19 05:14:20.059977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'cc434d84-cdf6-11e4-b2ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "cc434d84-cdf6-11e4-b2ab-705681abff85"], ["created_at", "2015-03-19 05:14:20.063814"], ["updated_at", "2015-03-19 05:14:20.063814"], ["token", "vPwnpGu8p4LYQPo7Efw5jc3IlthGgis_N9QtxbL-igU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc42d642-cdf6-11e4-b381-705681abff85' LIMIT 1 [["organization_id", "cc434d84-cdf6-11e4-b2ab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$BWtvwU1ZGRd9T4cIGTC5WeFN5h.98waNa0GXZSXhUd616OfkbwKjG"], ["created_at", "2015-03-19 05:14:20.071220"], ["updated_at", "2015-03-19 05:14:20.071220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.074278"], ["updated_at", "2015-03-19 05:14:20.074278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc4595ee-cdf6-11e4-9fab-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc460dbc-cdf6-11e4-9454-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc4595ee-cdf6-11e4-9fab-705681abff85"], ["organization_id", "cc460dbc-cdf6-11e4-9454-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.078482"], ["updated_at", "2015-03-19 05:14:20.078482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc4595ee-cdf6-11e4-9fab-705681abff85' LIMIT 1 [["organization_id", "cc460dbc-cdf6-11e4-9454-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$O34dVKN0RxBKIuxq4UGSuOcGlMyKDuZwdkKJsa7Fk.ejq/VvCuK8G"], ["created_at", "2015-03-19 05:14:20.086413"], ["updated_at", "2015-03-19 05:14:20.086413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.089484"], ["updated_at", "2015-03-19 05:14:20.089484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc47e632-cdf6-11e4-af32-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc485f54-cdf6-11e4-b0cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc47e632-cdf6-11e4-af32-705681abff85"], ["organization_id", "cc485f54-cdf6-11e4-b0cb-705681abff85"], ["created_at", "2015-03-19 05:14:20.093014"], ["updated_at", "2015-03-19 05:14:20.093014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'cc485f54-cdf6-11e4-b0cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "cc485f54-cdf6-11e4-b0cb-705681abff85"], ["created_at", "2015-03-19 05:14:20.096688"], ["updated_at", "2015-03-19 05:14:20.096688"], ["token", "rN8PFnSAsSfjRt4-ojb09ybfDVKVw0JSDEdPop0xS2E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc47e632-cdf6-11e4-af32-705681abff85' LIMIT 1 [["organization_id", "cc485f54-cdf6-11e4-b0cb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$aN56G2Gg4xsVAD4ODh01CO7759VMS6/PSGSNWTkJ9JW3dUYjrowmm"], ["created_at", "2015-03-19 05:14:20.104187"], ["updated_at", "2015-03-19 05:14:20.104187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.108140"], ["updated_at", "2015-03-19 05:14:20.108140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc4a9ed6-cdf6-11e4-bb85-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc4b377e-cdf6-11e4-a015-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc4a9ed6-cdf6-11e4-bb85-705681abff85"], ["organization_id", "cc4b377e-cdf6-11e4-a015-705681abff85"], ["created_at", "2015-03-19 05:14:20.112011"], ["updated_at", "2015-03-19 05:14:20.112011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'cc4b377e-cdf6-11e4-a015-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "cc4b377e-cdf6-11e4-a015-705681abff85"], ["created_at", "2015-03-19 05:14:20.115603"], ["updated_at", "2015-03-19 05:14:20.115603"], ["token", "xY3R232_l6rjCCe_MwWgV_HpGRhqqWtEPkB5xZkOB-w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc4a9ed6-cdf6-11e4-bb85-705681abff85' LIMIT 1 [["organization_id", "cc4b377e-cdf6-11e4-a015-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$7v3g2xpQX4hyO.4SpiPJ2uLnYorKG1u9gk4f2wenrUiRJ5o8LJqea"], ["created_at", "2015-03-19 05:14:20.122605"], ["updated_at", "2015-03-19 05:14:20.122605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.126057"], ["updated_at", "2015-03-19 05:14:20.126057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc4d6c42-cdf6-11e4-840c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc4e04cc-cdf6-11e4-a9a4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc4d6c42-cdf6-11e4-840c-705681abff85"], ["organization_id", "cc4e04cc-cdf6-11e4-a9a4-705681abff85"], ["created_at", "2015-03-19 05:14:20.130299"], ["updated_at", "2015-03-19 05:14:20.130299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'cc4e04cc-cdf6-11e4-a9a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "cc4e04cc-cdf6-11e4-a9a4-705681abff85"], ["created_at", "2015-03-19 05:14:20.133993"], ["updated_at", "2015-03-19 05:14:20.133993"], ["token", "oCnCfcpuoOdwNqj1pmCLbSXyW71kl__o1UGM6-9eBOc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc4d6c42-cdf6-11e4-840c-705681abff85' LIMIT 1 [["organization_id", "cc4e04cc-cdf6-11e4-a9a4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$UtzPo..S5n2OpgPkhZERaOkjAth3EK169hInTAnuCevRIYbNs0MHy"], ["created_at", "2015-03-19 05:14:20.141165"], ["updated_at", "2015-03-19 05:14:20.141165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (3.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.144235"], ["updated_at", "2015-03-19 05:14:20.144235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc504278-cdf6-11e4-af3e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc50b71c-cdf6-11e4-8393-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc504278-cdf6-11e4-af3e-705681abff85"], ["organization_id", "cc50b71c-cdf6-11e4-8393-705681abff85"], ["created_at", "2015-03-19 05:14:20.151232"], ["updated_at", "2015-03-19 05:14:20.151232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'cc50b71c-cdf6-11e4-8393-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "cc50b71c-cdf6-11e4-8393-705681abff85"], ["created_at", "2015-03-19 05:14:20.155393"], ["updated_at", "2015-03-19 05:14:20.155393"], ["token", "5-5tDFDGsqc-z12duRMJQMxEuFJxjrh8reJedLYHkRs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc504278-cdf6-11e4-af3e-705681abff85' LIMIT 1 [["organization_id", "cc50b71c-cdf6-11e4-8393-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$LbHJW4KxrPZNRkhUxRWpBesi0Qg1AIOexKIHZGL6oIZGXnE9cLmfS"], ["created_at", "2015-03-19 05:14:20.163484"], ["updated_at", "2015-03-19 05:14:20.163484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.166852"], ["updated_at", "2015-03-19 05:14:20.166852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc53ac42-cdf6-11e4-b0c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc542e7e-cdf6-11e4-9197-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc53ac42-cdf6-11e4-b0c5-705681abff85"], ["organization_id", "cc542e7e-cdf6-11e4-9197-705681abff85"], ["created_at", "2015-03-19 05:14:20.170184"], ["updated_at", "2015-03-19 05:14:20.170184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc53ac42-cdf6-11e4-b0c5-705681abff85' LIMIT 1 [["organization_id", "cc542e7e-cdf6-11e4-9197-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$vY3PZM302jlF8z56HOhiY.PRRNqStm9.PUT/23CWJ8KTRkV7UlAeW"], ["created_at", "2015-03-19 05:14:20.179019"], ["updated_at", "2015-03-19 05:14:20.179019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (4.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.199085"], ["updated_at", "2015-03-19 05:14:20.199085"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'cc59ac8c-cdf6-11e4-9320-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "cc59ac8c-cdf6-11e4-9320-705681abff85"], ["created_at", "2015-03-19 05:14:20.214485"], ["updated_at", "2015-03-19 05:14:20.214485"], ["token", "NybQDZJU-vlDy2BOGxt4QGl8omWKTWLiuctwxrjNqZY"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc560992-cdf6-11e4-ad94-705681abff85' LIMIT 1 [["organization_id", "cc59ac8c-cdf6-11e4-9320-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$JNa2vvka1UgQ.clbeLspTelvq3MWd335wRdG0Mwm9XfBJORZAv.iG"], ["created_at", "2015-03-19 05:14:20.231281"], ["updated_at", "2015-03-19 05:14:20.231281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.236529"], ["updated_at", "2015-03-19 05:14:20.236529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'cc5edf9a-cdf6-11e4-b7fc-705681abff85') LIMIT 1 SQL (21.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "cc5edf9a-cdf6-11e4-b7fc-705681abff85"], ["created_at", "2015-03-19 05:14:20.242385"], ["updated_at", "2015-03-19 05:14:20.242385"], ["token", "jd1_Lst6Lzxl1sHdnTKVGlDdrQ6rtwgzCtiybxSKyv0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc5e179a-cdf6-11e4-bd33-705681abff85' LIMIT 1 [["organization_id", "cc5edf9a-cdf6-11e4-b7fc-705681abff85"]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (3.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$z7.ClcmJNYfZFUwajagfxep.RuBJX.SJWqv7SAS84cf97SIcjmXf6"], ["created_at", "2015-03-19 05:14:20.275931"], ["updated_at", "2015-03-19 05:14:20.275931"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.285723"], ["updated_at", "2015-03-19 05:14:20.285723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'cc666382-cdf6-11e4-8fc8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "cc666382-cdf6-11e4-8fc8-705681abff85"], ["created_at", "2015-03-19 05:14:20.291275"], ["updated_at", "2015-03-19 05:14:20.291275"], ["token", "ZfedcsYfvtl0WFzRvoHsOIMk3zs59G5sLykocSSANmY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc656018-cdf6-11e4-9356-705681abff85' LIMIT 1 [["organization_id", "cc666382-cdf6-11e4-8fc8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$FHj.tGIcpehUCFMLVdrCzeAm.9D3wFOmwsDL5PTfR0iqwiASEaZxW"], ["created_at", "2015-03-19 05:14:20.299215"], ["updated_at", "2015-03-19 05:14:20.299215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.302330"], ["updated_at", "2015-03-19 05:14:20.302330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'cc68d78e-cdf6-11e4-b88d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "cc68d78e-cdf6-11e4-b88d-705681abff85"], ["created_at", "2015-03-19 05:14:20.305587"], ["updated_at", "2015-03-19 05:14:20.305587"], ["token", "4lG3QbdZZ89FycwapyH5rBQ44iUaN7aRqycJ364hPmk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc6860d8-cdf6-11e4-9705-705681abff85' LIMIT 1 [["organization_id", "cc68d78e-cdf6-11e4-b88d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$5dRfDG2OZERR/Uk3SZYM.OSwSnQvTf81xOO/fUwVTb5F5wS72c/5S"], ["created_at", "2015-03-19 05:14:20.313866"], ["updated_at", "2015-03-19 05:14:20.313866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.317231"], ["updated_at", "2015-03-19 05:14:20.317231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc6aa0f0-cdf6-11e4-a1f4-705681abff85' LIMIT 1 [["organization_id", "cc6b1e18-cdf6-11e4-9da3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$WQSZ3uuYG/c1tvg0l9DXTOYWTOI7VD8CV8W8WzwNJpKDOHbfy02Ii"], ["created_at", "2015-03-19 05:14:20.324504"], ["updated_at", "2015-03-19 05:14:20.324504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:20.332977"], ["user_id", "cc6c3d5c-cdf6-11e4-820a-705681abff85"], ["created_at", "2015-03-19 05:14:20.334053"], ["updated_at", "2015-03-19 05:14:20.334053"], ["token", "ndtaAh8_bl0ZzRrRzmhapgUXchuSyUVTKTf_P8NuI2o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.338224"], ["updated_at", "2015-03-19 05:14:20.338224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc6c3d5c-cdf6-11e4-820a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc6e5682-cdf6-11e4-877b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc6c3d5c-cdf6-11e4-820a-705681abff85"], ["organization_id", "cc6e5682-cdf6-11e4-877b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.341871"], ["updated_at", "2015-03-19 05:14:20.341871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'cc6e5682-cdf6-11e4-877b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "cc6e5682-cdf6-11e4-877b-705681abff85"], ["created_at", "2015-03-19 05:14:20.345378"], ["updated_at", "2015-03-19 05:14:20.345378"], ["token", "YJvg320FeBuHJ8BVz88EPsV0Gtc5NyQkecN1YaF2qiM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 22:14:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$0d/YK.6r5qNE5f6f4llAdO0cmSWrae0AGJp4AQXNrsDQ2QW6k2JGW"], ["created_at", "2015-03-19 05:14:20.386509"], ["updated_at", "2015-03-19 05:14:20.386509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:20.388331"], ["user_id", "cc75b8aa-cdf6-11e4-b30a-705681abff85"], ["created_at", "2015-03-19 05:14:20.389117"], ["updated_at", "2015-03-19 05:14:20.389117"], ["token", "EuS5xkf8J0dQ9Q8cT_9JTm8ofpwLMybsZW8_D12m-b0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.392615"], ["updated_at", "2015-03-19 05:14:20.392615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc75b8aa-cdf6-11e4-b30a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc769dce-cdf6-11e4-ac26-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc75b8aa-cdf6-11e4-b30a-705681abff85"], ["organization_id", "cc769dce-cdf6-11e4-ac26-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.395866"], ["updated_at", "2015-03-19 05:14:20.395866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'cc769dce-cdf6-11e4-ac26-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "cc769dce-cdf6-11e4-ac26-705681abff85"], ["created_at", "2015-03-19 05:14:20.399181"], ["updated_at", "2015-03-19 05:14:20.399181"], ["token", "3lnKzCSxLHP_VYu74fGjcv2cgkB0n0E_V08enQiHXcc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/cc769dce-cdf6-11e4-ac26-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:14:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"cc769dce-cdf6-11e4-ac26-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:20.405867' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EuS5xkf8J0dQ9Q8cT_9JTm8ofpwLMybsZW8_D12m-b0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:20.407754"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:20.408956"], ["id", "cc761fb6-cdf6-11e4-b5a0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cc769dce-cdf6-11e4-ac26-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc75b8aa-cdf6-11e4-b30a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cc769dce-cdf6-11e4-ac26-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc75b8aa-cdf6-11e4-b30a-705681abff85' LIMIT 1 [["organization_id", "cc769dce-cdf6-11e4-ac26-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'cc769dce-cdf6-11e4-ac26-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$Crq7uj/lc3tIuQC4VChpzeqdxx5/nZLL4TjpcqBCRE7kVDzUTV1Tu"], ["created_at", "2015-03-19 05:14:20.429532"], ["updated_at", "2015-03-19 05:14:20.429532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:20.431166"], ["user_id", "cc7c4422-cdf6-11e4-9001-705681abff85"], ["created_at", "2015-03-19 05:14:20.432088"], ["updated_at", "2015-03-19 05:14:20.432088"], ["token", "Rqi8QPcJEf9FW0kHOZ1yGXfyF7h341HjLyPItAj2Zk0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.435515"], ["updated_at", "2015-03-19 05:14:20.435515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc7c4422-cdf6-11e4-9001-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cc7d29e6-cdf6-11e4-aaff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc7c4422-cdf6-11e4-9001-705681abff85"], ["organization_id", "cc7d29e6-cdf6-11e4-aaff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.438846"], ["updated_at", "2015-03-19 05:14:20.438846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'cc7d29e6-cdf6-11e4-aaff-705681abff85') LIMIT 1 SQL (6.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "cc7d29e6-cdf6-11e4-aaff-705681abff85"], ["created_at", "2015-03-19 05:14:20.442311"], ["updated_at", "2015-03-19 05:14:20.442311"], ["token", "3CwrPP-XXBfGsX3RG70OnmDxfEOj0l4N2C3mVeg5_jM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/cc7d29e6-cdf6-11e4-aaff-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:14:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"cc7d29e6-cdf6-11e4-aaff-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:20.454808' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Rqi8QPcJEf9FW0kHOZ1yGXfyF7h341HjLyPItAj2Zk0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:20.457060"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:20.458143"], ["id", "cc7cad72-cdf6-11e4-a67a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cc7d29e6-cdf6-11e4-aaff-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc7c4422-cdf6-11e4-9001-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cc7d29e6-cdf6-11e4-aaff-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc7c4422-cdf6-11e4-9001-705681abff85' LIMIT 1 [["organization_id", "cc7d29e6-cdf6-11e4-aaff-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'cc7d29e6-cdf6-11e4-aaff-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "cc7d29e6-cdf6-11e4-aaff-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.466336"], ["updated_at", "2015-03-19 05:14:20.466336"], ["token", "Ns38TaNSkWyNVTdlQgSfyYGGCdqgwuDXHFt3tOeWRSU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2d9cb028-26f7-4594-9e76-75a096c5303e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/cc81ec38-cdf6-11e4-85be-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "cc81ec38-cdf6-11e4-85be-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2d9cb028-26f7-4594-9e76-75a096c5303e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/cc81ec38-cdf6-11e4-85be-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [2d9cb028-26f7-4594-9e76-75a096c5303e] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cc7d29e6-cdf6-11e4-aaff-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2d9cb028-26f7-4594-9e76-75a096c5303e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2d9cb028-26f7-4594-9e76-75a096c5303e] Clubhouse::Mailer#invitation: processed outbound mail in 223.4ms [ActiveJob] [ActionMailer::DeliveryJob] [2d9cb028-26f7-4594-9e76-75a096c5303e] Sent mail to email@example.com (8.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [2d9cb028-26f7-4594-9e76-75a096c5303e] Date: Wed, 18 Mar 2015 22:14:20 -0700 From: from@example.com To: email@example.com Message-ID: <550a5b2caff8a_e3603ffe94865bf057649@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/Ns38TaNSkWyNVTdlQgSfyYGGCdqgwuDXHFt3tOeWRSU?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [2d9cb028-26f7-4594-9e76-75a096c5303e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 233.02ms Completed 201 Created in 275ms (Views: 4.0ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$8oi6BSzpJ5SlQmsU4TeAdur8B1ES9kWBIe2Rq0RmAGwkGrBZ3VCB2"], ["created_at", "2015-03-19 05:14:20.736503"], ["updated_at", "2015-03-19 05:14:20.736503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:20.738172"], ["user_id", "ccab1b4e-cdf6-11e4-bf90-705681abff85"], ["created_at", "2015-03-19 05:14:20.738973"], ["updated_at", "2015-03-19 05:14:20.738973"], ["token", "fq8EcMETftgiK-nI68vm1TLAVj_iag_0fV8ieJxWgKk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.742582"], ["updated_at", "2015-03-19 05:14:20.742582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccab1b4e-cdf6-11e4-bf90-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccac0608-cdf6-11e4-96d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccab1b4e-cdf6-11e4-bf90-705681abff85"], ["organization_id", "ccac0608-cdf6-11e4-96d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.745959"], ["updated_at", "2015-03-19 05:14:20.745959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'ccac0608-cdf6-11e4-96d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "ccac0608-cdf6-11e4-96d9-705681abff85"], ["created_at", "2015-03-19 05:14:20.749501"], ["updated_at", "2015-03-19 05:14:20.749501"], ["token", "EqElnkgGo48S1pU1y4inTeVQL_KLGWGlaIhCLzLVCgU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ccac0608-cdf6-11e4-96d9-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:14:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"ccac0608-cdf6-11e4-96d9-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:20.757757' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fq8EcMETftgiK-nI68vm1TLAVj_iag_0fV8ieJxWgKk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:20.759270"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:20.760243"], ["id", "ccab8642-cdf6-11e4-ab61-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ccac0608-cdf6-11e4-96d9-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ccab1b4e-cdf6-11e4-bf90-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ccac0608-cdf6-11e4-96d9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ccab1b4e-cdf6-11e4-bf90-705681abff85' LIMIT 1 [["organization_id", "ccac0608-cdf6-11e4-96d9-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ccac0608-cdf6-11e4-96d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ccac0608-cdf6-11e4-96d9-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.768381"], ["updated_at", "2015-03-19 05:14:20.768381"], ["token", "S75wTQfP6QD8tOUmaS7N2tll8j9SkXDYvH1ZujUvaI8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5382dde7-4f10-4bfa-a6bc-7503b0a66620) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ccafff6a-cdf6-11e4-ac56-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ccafff6a-cdf6-11e4-ac56-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5382dde7-4f10-4bfa-a6bc-7503b0a66620] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ccafff6a-cdf6-11e4-ac56-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [5382dde7-4f10-4bfa-a6bc-7503b0a66620] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ccac0608-cdf6-11e4-96d9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5382dde7-4f10-4bfa-a6bc-7503b0a66620] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [5382dde7-4f10-4bfa-a6bc-7503b0a66620] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [5382dde7-4f10-4bfa-a6bc-7503b0a66620] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [5382dde7-4f10-4bfa-a6bc-7503b0a66620] Date: Wed, 18 Mar 2015 22:14:20 -0700 From: from@example.com To: email@example.com Message-ID: <550a5b2cbd49c_e3603ffe94865bf057794@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/S75wTQfP6QD8tOUmaS7N2tll8j9SkXDYvH1ZujUvaI8?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5382dde7-4f10-4bfa-a6bc-7503b0a66620] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.9ms Completed 201 Created in 20ms (Views: 0.9ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$mqGaIttsBEPB1MiQc3EQjuXO4hKj9Btm4WZkwnrNQSHAtsKhBbeO6"], ["created_at", "2015-03-19 05:14:20.786834"], ["updated_at", "2015-03-19 05:14:20.786834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:20.788562"], ["user_id", "ccb2cc0e-cdf6-11e4-82d0-705681abff85"], ["created_at", "2015-03-19 05:14:20.789303"], ["updated_at", "2015-03-19 05:14:20.789303"], ["token", "8EvPK3fYC9Zts-AMh6tJ1cyvbwEISJz1OJe-IWf1M5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.792518"], ["updated_at", "2015-03-19 05:14:20.792518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccb2cc0e-cdf6-11e4-82d0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccb3a20a-cdf6-11e4-99b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccb2cc0e-cdf6-11e4-82d0-705681abff85"], ["organization_id", "ccb3a20a-cdf6-11e4-99b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.795682"], ["updated_at", "2015-03-19 05:14:20.795682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'ccb3a20a-cdf6-11e4-99b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "ccb3a20a-cdf6-11e4-99b0-705681abff85"], ["created_at", "2015-03-19 05:14:20.799022"], ["updated_at", "2015-03-19 05:14:20.799022"], ["token", "5Zgz90RFWtSr4fqbwxHqKBbx6Dlcyr_Bepr8AYfe3gg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:14:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$an8CQmj6woBc.V4JmLAukOGUkhi/8Mgwv1Nj4uav0WV5tv0ZBH/O2"], ["created_at", "2015-03-19 05:14:20.812032"], ["updated_at", "2015-03-19 05:14:20.812032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:20.814556"], ["user_id", "ccb6b95e-cdf6-11e4-9a37-705681abff85"], ["created_at", "2015-03-19 05:14:20.815395"], ["updated_at", "2015-03-19 05:14:20.815395"], ["token", "jyOe3sTLpeVWlRWkJi9qRZkafrz-JeoiiNoSrwlWjn0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.819806"], ["updated_at", "2015-03-19 05:14:20.819806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccb6b95e-cdf6-11e4-9a37-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccb7d1c2-cdf6-11e4-9078-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccb6b95e-cdf6-11e4-9a37-705681abff85"], ["organization_id", "ccb7d1c2-cdf6-11e4-9078-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.824154"], ["updated_at", "2015-03-19 05:14:20.824154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'ccb7d1c2-cdf6-11e4-9078-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "ccb7d1c2-cdf6-11e4-9078-705681abff85"], ["created_at", "2015-03-19 05:14:20.827703"], ["updated_at", "2015-03-19 05:14:20.827703"], ["token", "29YCKIQDC7darCCicTVBpx5SPAhwt2Xkarubup64z_g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:14:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:20.833022' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jyOe3sTLpeVWlRWkJi9qRZkafrz-JeoiiNoSrwlWjn0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:20.834481"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:20.835382"], ["id", "ccb7321c-cdf6-11e4-b6c2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ccb6b95e-cdf6-11e4-9a37-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ccb7d1c2-cdf6-11e4-9078-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ccb6b95e-cdf6-11e4-9a37-705681abff85' LIMIT 1 [["organization_id", "ccb7d1c2-cdf6-11e4-9078-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'ccb7d1c2-cdf6-11e4-9078-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$vTI8dg/qk9qfoQLPh7ZnFeP8oDTzOYjZNcxfHzLaKj1Vn9bibt3Vy"], ["created_at", "2015-03-19 05:14:20.849158"], ["updated_at", "2015-03-19 05:14:20.849158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:20.850917"], ["user_id", "ccbc5044-cdf6-11e4-ac59-705681abff85"], ["created_at", "2015-03-19 05:14:20.851689"], ["updated_at", "2015-03-19 05:14:20.851689"], ["token", "iIYM4ToXTBkD4CPBC_ZUvYwByBfDx-gUdR8tnqazUz4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.854906"], ["updated_at", "2015-03-19 05:14:20.854906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccbc5044-cdf6-11e4-ac59-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccbd27f8-cdf6-11e4-828f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccbc5044-cdf6-11e4-ac59-705681abff85"], ["organization_id", "ccbd27f8-cdf6-11e4-828f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.857993"], ["updated_at", "2015-03-19 05:14:20.857993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'ccbd27f8-cdf6-11e4-828f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "ccbd27f8-cdf6-11e4-828f-705681abff85"], ["created_at", "2015-03-19 05:14:20.861466"], ["updated_at", "2015-03-19 05:14:20.861466"], ["token", "VzAoPotWpYtjRpCRGZsmiIabrSE5LqxRNJfcpHY_QSg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:14:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:20.866218' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iIYM4ToXTBkD4CPBC_ZUvYwByBfDx-gUdR8tnqazUz4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:20.868264"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:20.870236"], ["id", "ccbcb192-cdf6-11e4-936a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ccbc5044-cdf6-11e4-ac59-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ccbd27f8-cdf6-11e4-828f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ccbc5044-cdf6-11e4-ac59-705681abff85' LIMIT 1 [["organization_id", "ccbd27f8-cdf6-11e4-828f-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ccbd27f8-cdf6-11e4-828f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ccbd27f8-cdf6-11e4-828f-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.880217"], ["updated_at", "2015-03-19 05:14:20.880217"], ["token", "d1mViKby03qaQhf9ZjC-VYgeIWl85E3ZDUSv5XsMyVg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ad7ddd38-9fd4-4586-b923-8cd29c017c7d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ccc12d08-cdf6-11e4-ab4d-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ccc12d08-cdf6-11e4-ab4d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [ad7ddd38-9fd4-4586-b923-8cd29c017c7d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ccc12d08-cdf6-11e4-ab4d-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [ad7ddd38-9fd4-4586-b923-8cd29c017c7d] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ccbd27f8-cdf6-11e4-828f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [ad7ddd38-9fd4-4586-b923-8cd29c017c7d] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [ad7ddd38-9fd4-4586-b923-8cd29c017c7d] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [ad7ddd38-9fd4-4586-b923-8cd29c017c7d] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [ad7ddd38-9fd4-4586-b923-8cd29c017c7d] Date: Wed, 18 Mar 2015 22:14:20 -0700 From: from@example.com To: email@example.com Message-ID: <550a5b2cd8cb2_e3603ffe94865bf057866@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/d1mViKby03qaQhf9ZjC-VYgeIWl85E3ZDUSv5XsMyVg?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [ad7ddd38-9fd4-4586-b923-8cd29c017c7d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.82ms Completed 201 Created in 24ms (Views: 0.8ms | ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$0G3uYq6PSExSgPb5ge8Y6u3nU4QDN3rX1Nxf3H0qxWu3l.hF2VBPa"], ["created_at", "2015-03-19 05:14:20.897635"], ["updated_at", "2015-03-19 05:14:20.897635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:20.899571"], ["user_id", "ccc3ba50-cdf6-11e4-ad4c-705681abff85"], ["created_at", "2015-03-19 05:14:20.900395"], ["updated_at", "2015-03-19 05:14:20.900395"], ["token", "HMUKsHCon4HNGClQXeR0blTRHBJ6y5velFTJ6b80hMw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.903663"], ["updated_at", "2015-03-19 05:14:20.903663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccc3ba50-cdf6-11e4-ad4c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccc4981c-cdf6-11e4-a7ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccc3ba50-cdf6-11e4-ad4c-705681abff85"], ["organization_id", "ccc4981c-cdf6-11e4-a7ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.906727"], ["updated_at", "2015-03-19 05:14:20.906727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = 'ccc4981c-cdf6-11e4-a7ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "ccc4981c-cdf6-11e4-a7ae-705681abff85"], ["created_at", "2015-03-19 05:14:20.909961"], ["updated_at", "2015-03-19 05:14:20.909961"], ["token", "jbgUAmFtYvlWD0nr8r03pFvvg_mH60V01Jgss47cy4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:14:20 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:20.914547' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HMUKsHCon4HNGClQXeR0blTRHBJ6y5velFTJ6b80hMw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:20.915902"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:20.916822"], ["id", "ccc4206c-cdf6-11e4-9cc4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ccc3ba50-cdf6-11e4-ad4c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ccc4981c-cdf6-11e4-a7ae-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ccc3ba50-cdf6-11e4-ad4c-705681abff85' LIMIT 1 [["organization_id", "ccc4981c-cdf6-11e4-a7ae-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ccc4981c-cdf6-11e4-a7ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ccc4981c-cdf6-11e4-a7ae-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.923948"], ["updated_at", "2015-03-19 05:14:20.923948"], ["token", "j6cZh3muWh8tCB-mUvBKL-xDYRajglGzthMiU5vmRY4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 55f287b4-077e-4ed3-8dff-204b03d3ab7c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ccc7ba4c-cdf6-11e4-967b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ccc7ba4c-cdf6-11e4-967b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [55f287b4-077e-4ed3-8dff-204b03d3ab7c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ccc7ba4c-cdf6-11e4-967b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [55f287b4-077e-4ed3-8dff-204b03d3ab7c] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ccc4981c-cdf6-11e4-a7ae-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [55f287b4-077e-4ed3-8dff-204b03d3ab7c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [55f287b4-077e-4ed3-8dff-204b03d3ab7c] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [55f287b4-077e-4ed3-8dff-204b03d3ab7c] Sent mail to email@example.com (2.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [55f287b4-077e-4ed3-8dff-204b03d3ab7c] Date: Wed, 18 Mar 2015 22:14:20 -0700 From: from@example.com To: email@example.com Message-ID: <550a5b2ce375c_e3603ffe94865bf057999@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org/invitations/j6cZh3muWh8tCB-mUvBKL-xDYRajglGzthMiU5vmRY4?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [55f287b4-077e-4ed3-8dff-204b03d3ab7c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.94ms Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$UOy/u.DEwmLIwCiY4cm4ke6gAmeG/oKdHBeZDy.dtMCMIJcg1S2i2"], ["created_at", "2015-03-19 05:14:20.940010"], ["updated_at", "2015-03-19 05:14:20.940010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:20.941528"], ["user_id", "ccca25f2-cdf6-11e4-9ff8-705681abff85"], ["created_at", "2015-03-19 05:14:20.942393"], ["updated_at", "2015-03-19 05:14:20.942393"], ["token", "KGwdPVXFDb5_WhGMzhWIlh4pFFPCFR77xbqiROZ0O_E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.945713"], ["updated_at", "2015-03-19 05:14:20.945713"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccca25f2-cdf6-11e4-9ff8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cccb0602-cdf6-11e4-81b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccca25f2-cdf6-11e4-9ff8-705681abff85"], ["organization_id", "cccb0602-cdf6-11e4-81b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.949446"], ["updated_at", "2015-03-19 05:14:20.949446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'cccb0602-cdf6-11e4-81b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "cccb0602-cdf6-11e4-81b9-705681abff85"], ["created_at", "2015-03-19 05:14:20.952733"], ["updated_at", "2015-03-19 05:14:20.952733"], ["token", "Bn28ZzxaJ0crwUSiTjtnKE3gEhjc2u0nc_8FlaL0ewc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/cccc18b2-cdf6-11e4-a7b6-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:20 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"cccc18b2-cdf6-11e4-a7b6-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:20.957249' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KGwdPVXFDb5_WhGMzhWIlh4pFFPCFR77xbqiROZ0O_E"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:20.959052"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:20.960881"], ["id", "ccca895c-cdf6-11e4-a7c5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "cccc18b2-cdf6-11e4-a7b6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ccca25f2-cdf6-11e4-9ff8-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cccb0602-cdf6-11e4-81b9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ccca25f2-cdf6-11e4-9ff8-705681abff85' LIMIT 1 [["organization_id", "cccb0602-cdf6-11e4-81b9-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."id" != 'cccc18b2-cdf6-11e4-a7b6-705681abff85' AND "clubhouse_invitations"."organization_id" = 'cccb0602-cdf6-11e4-81b9-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:14:20.968725"], ["id", "cccc18b2-cdf6-11e4-a7b6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$Qx.iTiGC/T3oA0/Tl5TbKu/ppe6d/Vxi9euPMXVf15ulQnwpTJ1nS"], ["created_at", "2015-03-19 05:14:20.976851"], ["updated_at", "2015-03-19 05:14:20.976851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:20.978439"], ["user_id", "cccfc638-cdf6-11e4-8c51-705681abff85"], ["created_at", "2015-03-19 05:14:20.979253"], ["updated_at", "2015-03-19 05:14:20.979253"], ["token", "mz_-XGmGhTUnfR0uUJnNXU9VljWcmjZQx8emnCsE9qw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:20.982920"], ["updated_at", "2015-03-19 05:14:20.982920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cccfc638-cdf6-11e4-8c51-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccd0b1ba-cdf6-11e4-95bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cccfc638-cdf6-11e4-8c51-705681abff85"], ["organization_id", "ccd0b1ba-cdf6-11e4-95bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:20.986071"], ["updated_at", "2015-03-19 05:14:20.986071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = 'ccd0b1ba-cdf6-11e4-95bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "ccd0b1ba-cdf6-11e4-95bb-705681abff85"], ["created_at", "2015-03-19 05:14:20.989602"], ["updated_at", "2015-03-19 05:14:20.989602"], ["token", "ZqrRz9GpwFwOQMHedOMbVyvWfxHZPy0KVBgdrfPk93Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 22:14:20 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$6I8YF7RlBDKLHMypYgg7u.eB8JAnf2cKYoom.z1DgXEil8eEIY0p2"], ["created_at", "2015-03-19 05:14:21.000343"], ["updated_at", "2015-03-19 05:14:21.000343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.001993"], ["user_id", "ccd35dac-cdf6-11e4-8d99-705681abff85"], ["created_at", "2015-03-19 05:14:21.002737"], ["updated_at", "2015-03-19 05:14:21.002737"], ["token", "Jz2a_xH6Aa7mRyK3CQ_bUxsXhqcuFT3SQ5SpTDoNSqE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.006670"], ["updated_at", "2015-03-19 05:14:21.006670"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccd35dac-cdf6-11e4-8d99-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccd45b94-cdf6-11e4-9df1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccd35dac-cdf6-11e4-8d99-705681abff85"], ["organization_id", "ccd45b94-cdf6-11e4-9df1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.011120"], ["updated_at", "2015-03-19 05:14:21.011120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = 'ccd45b94-cdf6-11e4-9df1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "ccd45b94-cdf6-11e4-9df1-705681abff85"], ["created_at", "2015-03-19 05:14:21.015056"], ["updated_at", "2015-03-19 05:14:21.015056"], ["token", "aePIJmX4UNV3yT14mwujyZRF71DYxJytURv6vxhifrk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/ccd59dec-cdf6-11e4-8305-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"ccd59dec-cdf6-11e4-8305-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.019681' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Jz2a_xH6Aa7mRyK3CQ_bUxsXhqcuFT3SQ5SpTDoNSqE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.021496"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.023477"], ["id", "ccd3bd1a-cdf6-11e4-bcd0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ccd59dec-cdf6-11e4-8305-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ccd35dac-cdf6-11e4-8d99-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ccd45b94-cdf6-11e4-9df1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ccd35dac-cdf6-11e4-8d99-705681abff85' LIMIT 1 [["organization_id", "ccd45b94-cdf6-11e4-9df1-705681abff85"]] Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$49syceeADSfK8ay5FR9.e.opWb/UmzQTP9mjHhT9Zh0YV9XKAEhzC"], ["created_at", "2015-03-19 05:14:21.036315"], ["updated_at", "2015-03-19 05:14:21.036315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.037979"], ["user_id", "ccd8d930-cdf6-11e4-94c5-705681abff85"], ["created_at", "2015-03-19 05:14:21.038777"], ["updated_at", "2015-03-19 05:14:21.038777"], ["token", "fWINiqdR7Pp7U9F3wLtluDLZFBO14Nx9TB4d6Wc-In0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.042058"], ["updated_at", "2015-03-19 05:14:21.042058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccd8d930-cdf6-11e4-94c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccd9b62a-cdf6-11e4-99f1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccd8d930-cdf6-11e4-94c5-705681abff85"], ["organization_id", "ccd9b62a-cdf6-11e4-99f1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.045180"], ["updated_at", "2015-03-19 05:14:21.045180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = 'ccd9b62a-cdf6-11e4-99f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "ccd9b62a-cdf6-11e4-99f1-705681abff85"], ["created_at", "2015-03-19 05:14:21.049722"], ["updated_at", "2015-03-19 05:14:21.049722"], ["token", "ay0bc5gbtSavQjB3JrL16kL-nGNupt3qka7RbXpWI0s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$mBm3340463qHzgtJHxu.7OZoWu7XKOd48Otu1odRvOiFWaKPh8M4C"], ["created_at", "2015-03-19 05:14:21.061493"], ["updated_at", "2015-03-19 05:14:21.061493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.063995"], ["user_id", "ccdcbe60-cdf6-11e4-8835-705681abff85"], ["created_at", "2015-03-19 05:14:21.064834"], ["updated_at", "2015-03-19 05:14:21.064834"], ["token", "vcg6CBpSuLLDNKVZXPotA8HvcrloKsU4F3cTvLOo6R8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.069281"], ["updated_at", "2015-03-19 05:14:21.069281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccdcbe60-cdf6-11e4-8835-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccddde12-cdf6-11e4-a13f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccdcbe60-cdf6-11e4-8835-705681abff85"], ["organization_id", "ccddde12-cdf6-11e4-a13f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.072435"], ["updated_at", "2015-03-19 05:14:21.072435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'ccddde12-cdf6-11e4-a13f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "ccddde12-cdf6-11e4-a13f-705681abff85"], ["created_at", "2015-03-19 05:14:21.075597"], ["updated_at", "2015-03-19 05:14:21.075597"], ["token", "svYXw9RUt9XVlaU6JDxOch-yhg4v0fJ9XcP-DVBqAWM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$ivwmnJ6ey79k9VQ1cHNpV.3ADjcGiPrjOHIMEKhAWA3Dv.9l0W5fq"], ["created_at", "2015-03-19 05:14:21.080077"], ["updated_at", "2015-03-19 05:14:21.080077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.083439"], ["updated_at", "2015-03-19 05:14:21.083439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccdf837a-cdf6-11e4-9ed6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cce00ad4-cdf6-11e4-95b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ccdf837a-cdf6-11e4-9ed6-705681abff85"], ["organization_id", "cce00ad4-cdf6-11e4-95b6-705681abff85"], ["created_at", "2015-03-19 05:14:21.086700"], ["updated_at", "2015-03-19 05:14:21.086700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/ccddde12-cdf6-11e4-a13f-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"ccddde12-cdf6-11e4-a13f-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.091592' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vcg6CBpSuLLDNKVZXPotA8HvcrloKsU4F3cTvLOo6R8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.093143"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.094075"], ["id", "ccdd3764-cdf6-11e4-81d6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ccddde12-cdf6-11e4-a13f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ccdcbe60-cdf6-11e4-8835-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ccdcbe60-cdf6-11e4-8835-705681abff85' LIMIT 1 [["organization_id", "ccddde12-cdf6-11e4-a13f-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "ccddde12-cdf6-11e4-a13f-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('ccddde12-cdf6-11e4-a13f-705681abff85') Completed 200 OK in 15ms (Views: 6.1ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$hKozZMWGh2WGoaJCrLEcHOgYhq4jO6KvyLMTQVfGSH/yKVKAtkQSq"], ["created_at", "2015-03-19 05:14:21.112630"], ["updated_at", "2015-03-19 05:14:21.112630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.114600"], ["user_id", "cce48528-cdf6-11e4-bb7d-705681abff85"], ["created_at", "2015-03-19 05:14:21.115369"], ["updated_at", "2015-03-19 05:14:21.115369"], ["token", "IihG8jYpzueX69d-MUf3obaUni_wAz30QyeHk59qSbw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.118691"], ["updated_at", "2015-03-19 05:14:21.118691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cce48528-cdf6-11e4-bb7d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cce5677c-cdf6-11e4-b0e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cce48528-cdf6-11e4-bb7d-705681abff85"], ["organization_id", "cce5677c-cdf6-11e4-b0e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.121689"], ["updated_at", "2015-03-19 05:14:21.121689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = 'cce5677c-cdf6-11e4-b0e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "cce5677c-cdf6-11e4-b0e3-705681abff85"], ["created_at", "2015-03-19 05:14:21.124953"], ["updated_at", "2015-03-19 05:14:21.124953"], ["token", "KdtLNumn4yFfpBBbxFBsawFh-h1bxLhw6aZtviAP03E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$cBHjTbnLCSCtYDPLcl3PU.ApHUCliIKh2KIhKkCKXyIzo2s5tlJZ6"], ["created_at", "2015-03-19 05:14:21.129280"], ["updated_at", "2015-03-19 05:14:21.129280"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.132519"], ["updated_at", "2015-03-19 05:14:21.132519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cce70708-cdf6-11e4-936d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cce786f6-cdf6-11e4-94cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cce70708-cdf6-11e4-936d-705681abff85"], ["organization_id", "cce786f6-cdf6-11e4-94cb-705681abff85"], ["created_at", "2015-03-19 05:14:21.135788"], ["updated_at", "2015-03-19 05:14:21.135788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$DJUrKLIpkHfPHQrpN5XpQeOxIKualt/t9R8DWuCtDS2Q91vcZ4Koi"], ["created_at", "2015-03-19 05:14:21.146770"], ["updated_at", "2015-03-19 05:14:21.146770"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.149434"], ["user_id", "cce9c600-cdf6-11e4-a7c2-705681abff85"], ["created_at", "2015-03-19 05:14:21.150200"], ["updated_at", "2015-03-19 05:14:21.150200"], ["token", "APm4zprX8axjJatxbU4u9vmrM-RXG9oSczt-Xzo7gHQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.154236"], ["updated_at", "2015-03-19 05:14:21.154236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cce9c600-cdf6-11e4-a7c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccead554-cdf6-11e4-8e6a-705681abff85') LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cce9c600-cdf6-11e4-a7c2-705681abff85"], ["organization_id", "ccead554-cdf6-11e4-8e6a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.157293"], ["updated_at", "2015-03-19 05:14:21.157293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'ccead554-cdf6-11e4-8e6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "ccead554-cdf6-11e4-8e6a-705681abff85"], ["created_at", "2015-03-19 05:14:21.164716"], ["updated_at", "2015-03-19 05:14:21.164716"], ["token", "-1NhVLaNUVA3FNuqt7fk-e9sGgMeylaz5VDWcn7AN_M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$GCvQMOY6ajgdEDEGbxI0ueFQ13krAuNQbE2WeCpfexpvWw0B86elm"], ["created_at", "2015-03-19 05:14:21.169009"], ["updated_at", "2015-03-19 05:14:21.169009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.171875"], ["updated_at", "2015-03-19 05:14:21.171875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cced1526-cdf6-11e4-9d60-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cced847a-cdf6-11e4-9b1b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cced1526-cdf6-11e4-9d60-705681abff85"], ["organization_id", "cced847a-cdf6-11e4-9b1b-705681abff85"], ["created_at", "2015-03-19 05:14:21.174943"], ["updated_at", "2015-03-19 05:14:21.174943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.179302' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "APm4zprX8axjJatxbU4u9vmrM-RXG9oSczt-Xzo7gHQ"]]  (19.5ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.181135"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.210920"], ["id", "ccea417a-cdf6-11e4-b90c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cce9c600-cdf6-11e4-a7c2-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cce9c600-cdf6-11e4-a7c2-705681abff85' LIMIT 1 [["organization_id", "ccead554-cdf6-11e4-8e6a-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "ccead554-cdf6-11e4-8e6a-705681abff85"]] Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('ccead554-cdf6-11e4-8e6a-705681abff85') Completed 200 OK in 50ms (Views: 5.0ms | ActiveRecord: 23.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$8fnPDPi67vgkcjIo34ptvO3zmyoXQyfoznOD3Q3zROWAsEk0plSB6"], ["created_at", "2015-03-19 05:14:21.239981"], ["updated_at", "2015-03-19 05:14:21.239981"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.242659"], ["user_id", "ccf80076-cdf6-11e4-8742-705681abff85"], ["created_at", "2015-03-19 05:14:21.243923"], ["updated_at", "2015-03-19 05:14:21.243923"], ["token", "WNbRJ9ONYYDoem-cUxvZ18FGPTRrqJ5p30OE46NS_C8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.249737"], ["updated_at", "2015-03-19 05:14:21.249737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccf80076-cdf6-11e4-8742-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccf97906-cdf6-11e4-828c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccf80076-cdf6-11e4-8742-705681abff85"], ["organization_id", "ccf97906-cdf6-11e4-828c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.255161"], ["updated_at", "2015-03-19 05:14:21.255161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'ccf97906-cdf6-11e4-828c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "ccf97906-cdf6-11e4-828c-705681abff85"], ["created_at", "2015-03-19 05:14:21.261821"], ["updated_at", "2015-03-19 05:14:21.261821"], ["token", "utBAu39KZpxqfYSYNTiLblAcNcZF7-wB7hsymeGQ3X4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$MaAWt7IMqhs1N/GZxoQxi.FV1THixkPVKtdxe1joPBUD5iQ0.EliS"], ["created_at", "2015-03-19 05:14:21.267325"], ["updated_at", "2015-03-19 05:14:21.267325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.271279"], ["updated_at", "2015-03-19 05:14:21.271279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccfc2d5e-cdf6-11e4-836c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccfcb120-cdf6-11e4-8762-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ccfc2d5e-cdf6-11e4-836c-705681abff85"], ["organization_id", "ccfcb120-cdf6-11e4-8762-705681abff85"], ["created_at", "2015-03-19 05:14:21.274416"], ["updated_at", "2015-03-19 05:14:21.274416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$TSZCRsPl1AvL6Qd1US1mDeVIyIdHwELdYu.zdR6YU2pDZK5GiBK4O"], ["created_at", "2015-03-19 05:14:21.284701"], ["updated_at", "2015-03-19 05:14:21.284701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.286329"], ["user_id", "ccfec12c-cdf6-11e4-9dba-705681abff85"], ["created_at", "2015-03-19 05:14:21.287346"], ["updated_at", "2015-03-19 05:14:21.287346"], ["token", "IA6m7S0aP509-KN_2RzcSnRVizraKqp_NiNx8OozxRs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.291272"], ["updated_at", "2015-03-19 05:14:21.291272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ccfec12c-cdf6-11e4-9dba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ccffbf96-cdf6-11e4-8bb8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ccfec12c-cdf6-11e4-9dba-705681abff85"], ["organization_id", "ccffbf96-cdf6-11e4-8bb8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.294483"], ["updated_at", "2015-03-19 05:14:21.294483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'ccffbf96-cdf6-11e4-8bb8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "ccffbf96-cdf6-11e4-8bb8-705681abff85"], ["created_at", "2015-03-19 05:14:21.297671"], ["updated_at", "2015-03-19 05:14:21.297671"], ["token", "g9q5hx8h46yhHnapuwvz-ZzJrKFfg8q-hbOgAP2rSjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/cd00bb30-cdf6-11e4-b4bc-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"cd00bb30-cdf6-11e4-b4bc-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.302077' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IA6m7S0aP509-KN_2RzcSnRVizraKqp_NiNx8OozxRs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.303455"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.304417"], ["id", "ccff3b66-cdf6-11e4-b3ea-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "cd00bb30-cdf6-11e4-b4bc-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ccfec12c-cdf6-11e4-9dba-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ccffbf96-cdf6-11e4-8bb8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ccfec12c-cdf6-11e4-9dba-705681abff85' LIMIT 1 [["organization_id", "ccffbf96-cdf6-11e4-8bb8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "cd00bb30-cdf6-11e4-b4bc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$jGKezvOHVRXNyJEMUgbAcezVux5cxfUYgZFR0tCs.nLORl2CY4Sfq"], ["created_at", "2015-03-19 05:14:21.315338"], ["updated_at", "2015-03-19 05:14:21.315338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.317497"], ["user_id", "cd036dee-cdf6-11e4-838d-705681abff85"], ["created_at", "2015-03-19 05:14:21.318321"], ["updated_at", "2015-03-19 05:14:21.318321"], ["token", "198HRTAW-UATA-k6qHz0b_hxGnhVqh6P7ipTStK3qD0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.321801"], ["updated_at", "2015-03-19 05:14:21.321801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd036dee-cdf6-11e4-838d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd04660e-cdf6-11e4-a16e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd036dee-cdf6-11e4-838d-705681abff85"], ["organization_id", "cd04660e-cdf6-11e4-a16e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.324874"], ["updated_at", "2015-03-19 05:14:21.324874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'cd04660e-cdf6-11e4-a16e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "cd04660e-cdf6-11e4-a16e-705681abff85"], ["created_at", "2015-03-19 05:14:21.327978"], ["updated_at", "2015-03-19 05:14:21.327978"], ["token", "QAVJw2d_WljC6Ip7grD2ywxJdfTCIgbpRQ6ixid9BlI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.337190"], ["updated_at", "2015-03-19 05:14:21.337190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.366420"], ["updated_at", "2015-03-19 05:14:21.366420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.371173"], ["updated_at", "2015-03-19 05:14:21.371173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.388923"], ["updated_at", "2015-03-19 05:14:21.388923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.393615"], ["updated_at", "2015-03-19 05:14:21.393615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cd0f5b9a-cdf6-11e4-8108-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$zXNOUiHSgFeWN3c/K/pICuDH0q7BWCklpUaiwe/oInomg1v7t79jC"], ["created_at", "2015-03-19 05:14:21.399976"], ["updated_at", "2015-03-19 05:14:21.399976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.401484"], ["user_id", "cd105522-cdf6-11e4-82f9-705681abff85"], ["created_at", "2015-03-19 05:14:21.402204"], ["updated_at", "2015-03-19 05:14:21.402204"], ["token", "ec6qG0crpM2dsfv3_yPCMr40it7T_COCDECKgXKFfxc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.405441"], ["updated_at", "2015-03-19 05:14:21.405441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd105522-cdf6-11e4-82f9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd1128e4-cdf6-11e4-bd4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd105522-cdf6-11e4-82f9-705681abff85"], ["organization_id", "cd1128e4-cdf6-11e4-bd4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.408794"], ["updated_at", "2015-03-19 05:14:21.408794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/cd1128e4-cdf6-11e4-bd4e-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"cd1128e4-cdf6-11e4-bd4e-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.420733' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ec6qG0crpM2dsfv3_yPCMr40it7T_COCDECKgXKFfxc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.422172"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.423100"], ["id", "cd10afea-cdf6-11e4-bb24-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cd1128e4-cdf6-11e4-bd4e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd105522-cdf6-11e4-82f9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cd105522-cdf6-11e4-82f9-705681abff85' LIMIT 1 [["organization_id", "cd1128e4-cdf6-11e4-bd4e-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$HL38K17qb5pMFSNX/IdYCO80QZJuKVdvIfUyIvzepa9hJB9bWVWbS"], ["created_at", "2015-03-19 05:14:21.435102"], ["updated_at", "2015-03-19 05:14:21.435102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.436808"], ["user_id", "cd15b508-cdf6-11e4-b31f-705681abff85"], ["created_at", "2015-03-19 05:14:21.437634"], ["updated_at", "2015-03-19 05:14:21.437634"], ["token", "YGsE1kOj8tgAYcdcD_0RfLHOKFYmXp99tNUZVS23J1w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.440947"], ["updated_at", "2015-03-19 05:14:21.440947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd15b508-cdf6-11e4-b31f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd16934c-cdf6-11e4-baf7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd15b508-cdf6-11e4-b31f-705681abff85"], ["organization_id", "cd16934c-cdf6-11e4-baf7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.443985"], ["updated_at", "2015-03-19 05:14:21.443985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$.aPuQlslLbjtFb/B9rgVgOVdOIoo0vmX8YiQdul4bY5ciwuPIbx3K"], ["created_at", "2015-03-19 05:14:21.454070"], ["updated_at", "2015-03-19 05:14:21.454070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.455645"], ["user_id", "cd1898b8-cdf6-11e4-ae0f-705681abff85"], ["created_at", "2015-03-19 05:14:21.456402"], ["updated_at", "2015-03-19 05:14:21.456402"], ["token", "5-FVKAr5kTPn1p11ilAEPauwrVDry8jGDloiXdz08do"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.459552"], ["updated_at", "2015-03-19 05:14:21.459552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd1898b8-cdf6-11e4-ae0f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd1969e6-cdf6-11e4-a81c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd1898b8-cdf6-11e4-ae0f-705681abff85"], ["organization_id", "cd1969e6-cdf6-11e4-a81c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.462578"], ["updated_at", "2015-03-19 05:14:21.462578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$AaVlVCYUBYs0v.Vk6CyK/eArhzjyH5jmqYAru6tGVVqrnxNC7z6r2"], ["created_at", "2015-03-19 05:14:21.472634"], ["updated_at", "2015-03-19 05:14:21.472634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.474183"], ["user_id", "cd1b6d18-cdf6-11e4-abd5-705681abff85"], ["created_at", "2015-03-19 05:14:21.474944"], ["updated_at", "2015-03-19 05:14:21.474944"], ["token", "mvzx2SOXiOtVcygMsYD5GC__5n80Jag08EWTYZks8AE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.478547"], ["updated_at", "2015-03-19 05:14:21.478547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd1b6d18-cdf6-11e4-abd5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd1c52a0-cdf6-11e4-856c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd1b6d18-cdf6-11e4-abd5-705681abff85"], ["organization_id", "cd1c52a0-cdf6-11e4-856c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.483613"], ["updated_at", "2015-03-19 05:14:21.483613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/cd1c52a0-cdf6-11e4-856c-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"cd1c52a0-cdf6-11e4-856c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.490587' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mvzx2SOXiOtVcygMsYD5GC__5n80Jag08EWTYZks8AE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.492153"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.493050"], ["id", "cd1bcae2-cdf6-11e4-9019-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cd1c52a0-cdf6-11e4-856c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd1b6d18-cdf6-11e4-abd5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cd1b6d18-cdf6-11e4-abd5-705681abff85' LIMIT 1 [["organization_id", "cd1c52a0-cdf6-11e4-856c-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cd1c52a0-cdf6-11e4-856c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$VFFN3N19We6j6rMWjA59rOM/JGnjYcCFO4gZZaz1g0HWwgL2dofIO"], ["created_at", "2015-03-19 05:14:21.505771"], ["updated_at", "2015-03-19 05:14:21.505771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.507347"], ["user_id", "cd207b0a-cdf6-11e4-8aa4-705681abff85"], ["created_at", "2015-03-19 05:14:21.508091"], ["updated_at", "2015-03-19 05:14:21.508091"], ["token", "ok0qcFHMSw5X9Tu6B5ZCEuwqPkKKIKVpLSmRQ8-sjdg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.511296"], ["updated_at", "2015-03-19 05:14:21.511296"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd207b0a-cdf6-11e4-8aa4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd21512e-cdf6-11e4-b135-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd207b0a-cdf6-11e4-8aa4-705681abff85"], ["organization_id", "cd21512e-cdf6-11e4-b135-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.516971"], ["updated_at", "2015-03-19 05:14:21.516971"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/cd21512e-cdf6-11e4-b135-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"cd21512e-cdf6-11e4-b135-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.523672' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ok0qcFHMSw5X9Tu6B5ZCEuwqPkKKIKVpLSmRQ8-sjdg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.525066"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.525984"], ["id", "cd20d938-cdf6-11e4-b773-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cd21512e-cdf6-11e4-b135-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd207b0a-cdf6-11e4-8aa4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cd207b0a-cdf6-11e4-8aa4-705681abff85' LIMIT 1 [["organization_id", "cd21512e-cdf6-11e4-b135-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cd21512e-cdf6-11e4-b135-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:14:21.532020"], ["id", "cd21512e-cdf6-11e4-b135-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$/6B6wYA4fgLizcHTTewxl.QEeTjpX70D3JCJ9f/dYPcuAwE66HQUW"], ["created_at", "2015-03-19 05:14:21.540490"], ["updated_at", "2015-03-19 05:14:21.540490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.542003"], ["user_id", "cd25c6d2-cdf6-11e4-a917-705681abff85"], ["created_at", "2015-03-19 05:14:21.542777"], ["updated_at", "2015-03-19 05:14:21.542777"], ["token", "AIhuQEGF8rIMEvJupoNB2i_xVT2vvR_dAkQqL_W8iLY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.546074"], ["updated_at", "2015-03-19 05:14:21.546074"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd25c6d2-cdf6-11e4-a917-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd26a016-cdf6-11e4-bdef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd25c6d2-cdf6-11e4-a917-705681abff85"], ["organization_id", "cd26a016-cdf6-11e4-bdef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.549605"], ["updated_at", "2015-03-19 05:14:21.549605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$jXw.NFhDi1pvrAu5Pv2fl.cEqLfHty95DFDbd1AqpAaIxCATndNRW"], ["created_at", "2015-03-19 05:14:21.559294"], ["updated_at", "2015-03-19 05:14:21.559294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.561018"], ["user_id", "cd28a582-cdf6-11e4-8a32-705681abff85"], ["created_at", "2015-03-19 05:14:21.561818"], ["updated_at", "2015-03-19 05:14:21.561818"], ["token", "80TG8pbQpBGdMX3Yc2mRq_W_NKw17thj6pj9B6P-ZL4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.565028"], ["updated_at", "2015-03-19 05:14:21.565028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd28a582-cdf6-11e4-8a32-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd29839e-cdf6-11e4-84ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd28a582-cdf6-11e4-8a32-705681abff85"], ["organization_id", "cd29839e-cdf6-11e4-84ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.568090"], ["updated_at", "2015-03-19 05:14:21.568090"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.573049' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "80TG8pbQpBGdMX3Yc2mRq_W_NKw17thj6pj9B6P-ZL4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.574436"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.575371"], ["id", "cd290d7e-cdf6-11e4-a07f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd28a582-cdf6-11e4-8a32-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$y2mkjy0kiBubxNNtvFbS6utE3Q0H2JMfAhje79V7emsQTuZIN00yW"], ["created_at", "2015-03-19 05:14:21.590045"], ["updated_at", "2015-03-19 05:14:21.590045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.591664"], ["user_id", "cd2d5870-cdf6-11e4-88bb-705681abff85"], ["created_at", "2015-03-19 05:14:21.592528"], ["updated_at", "2015-03-19 05:14:21.592528"], ["token", "iogu5qqt9nhC1SkL4Vo2PPLoLPa4OQgWYway_z4shGE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.595840"], ["updated_at", "2015-03-19 05:14:21.595840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd2d5870-cdf6-11e4-88bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd2e3678-cdf6-11e4-a468-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd2d5870-cdf6-11e4-88bb-705681abff85"], ["organization_id", "cd2e3678-cdf6-11e4-a468-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.599092"], ["updated_at", "2015-03-19 05:14:21.599092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.603446' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iogu5qqt9nhC1SkL4Vo2PPLoLPa4OQgWYway_z4shGE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.604850"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.605775"], ["id", "cd2dbd7e-cdf6-11e4-8818-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd2d5870-cdf6-11e4-88bb-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.610471"], ["updated_at", "2015-03-19 05:14:21.610471"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cd30741a-cdf6-11e4-923f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd2d5870-cdf6-11e4-88bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd30741a-cdf6-11e4-923f-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd2d5870-cdf6-11e4-88bb-705681abff85"], ["admin", "t"], ["organization_id", "cd30741a-cdf6-11e4-923f-705681abff85"], ["created_at", "2015-03-19 05:14:21.614104"], ["updated_at", "2015-03-19 05:14:21.614104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.5ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$BeYIt8AKsgaDjrs4vHQ0POva82rfl0pkboCWWujoT7xS8vfv/69ui"], ["created_at", "2015-03-19 05:14:21.624015"], ["updated_at", "2015-03-19 05:14:21.624015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.625853"], ["user_id", "cd328f66-cdf6-11e4-b3e5-705681abff85"], ["created_at", "2015-03-19 05:14:21.626606"], ["updated_at", "2015-03-19 05:14:21.626606"], ["token", "6uKmle7ofTu7NcXPkoAu3lwPughD7MbDUuv86abV3QA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.629816"], ["updated_at", "2015-03-19 05:14:21.629816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd328f66-cdf6-11e4-b3e5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd3364d6-cdf6-11e4-b087-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd328f66-cdf6-11e4-b3e5-705681abff85"], ["organization_id", "cd3364d6-cdf6-11e4-b087-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.633078"], ["updated_at", "2015-03-19 05:14:21.633078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$/UGbBxN407c5XwJKu1YdCe6U.goex9mnrs/Iny0pU3LIAY/AT.JG6"], ["created_at", "2015-03-19 05:14:21.644850"], ["updated_at", "2015-03-19 05:14:21.644850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.646468"], ["user_id", "cd35b470-cdf6-11e4-991e-705681abff85"], ["created_at", "2015-03-19 05:14:21.647242"], ["updated_at", "2015-03-19 05:14:21.647242"], ["token", "eszYlq6F9TFOGwLZP8QzPdL13Dm9NjtPyxcYklFbBdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.650603"], ["updated_at", "2015-03-19 05:14:21.650603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd35b470-cdf6-11e4-991e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd36999e-cdf6-11e4-821e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd35b470-cdf6-11e4-991e-705681abff85"], ["organization_id", "cd36999e-cdf6-11e4-821e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.654100"], ["updated_at", "2015-03-19 05:14:21.654100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-66" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-66", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.658479' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eszYlq6F9TFOGwLZP8QzPdL13Dm9NjtPyxcYklFbBdA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.660300"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.662243"], ["id", "cd361820-cdf6-11e4-8dce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-66"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd35b470-cdf6-11e4-991e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cd35b470-cdf6-11e4-991e-705681abff85' LIMIT 1 [["organization_id", "cd36999e-cdf6-11e4-821e-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cd36999e-cdf6-11e4-821e-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$DsxPC067q5C3AJPcTMgOxO04HcJ/nj8zA/SmcC6P8EfNrHP9DNMLK"], ["created_at", "2015-03-19 05:14:21.679924"], ["updated_at", "2015-03-19 05:14:21.679924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.681595"], ["user_id", "cd3b0f92-cdf6-11e4-b5b5-705681abff85"], ["created_at", "2015-03-19 05:14:21.682401"], ["updated_at", "2015-03-19 05:14:21.682401"], ["token", "9YY3Cn2-732-YUSmn3gsQpo9SL7woIZRZ3lOm3RQvmQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.686268"], ["updated_at", "2015-03-19 05:14:21.686268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd3b0f92-cdf6-11e4-b5b5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd3c058c-cdf6-11e4-9922-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd3b0f92-cdf6-11e4-b5b5-705681abff85"], ["organization_id", "cd3c058c-cdf6-11e4-9922-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.689467"], ["updated_at", "2015-03-19 05:14:21.689467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-67" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-67", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.693969' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9YY3Cn2-732-YUSmn3gsQpo9SL7woIZRZ3lOm3RQvmQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.695782"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.697642"], ["id", "cd3b7dc4-cdf6-11e4-b0c2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-67"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd3b0f92-cdf6-11e4-b5b5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cd3b0f92-cdf6-11e4-b5b5-705681abff85' LIMIT 1 [["organization_id", "cd3c058c-cdf6-11e4-9922-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cd3c058c-cdf6-11e4-9922-705681abff85') LIMIT 1 SQL (2.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:14:21.704839"], ["id", "cd3c058c-cdf6-11e4-9922-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 4.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$7reubgaercwClXygsL5YAODb98wgYN/EIl79J7XZ8NJv553R2Sayu"], ["created_at", "2015-03-19 05:14:21.714535"], ["updated_at", "2015-03-19 05:14:21.714535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.716303"], ["user_id", "cd40561e-cdf6-11e4-b4cf-705681abff85"], ["created_at", "2015-03-19 05:14:21.717063"], ["updated_at", "2015-03-19 05:14:21.717063"], ["token", "CVVIUkzE_G1gCUkuchwUZhqj64Ye5oTRmyEWsPRd824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.721401"], ["updated_at", "2015-03-19 05:14:21.721401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd40561e-cdf6-11e4-b4cf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd416540-cdf6-11e4-9daf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd40561e-cdf6-11e4-b4cf-705681abff85"], ["organization_id", "cd416540-cdf6-11e4-9daf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.724861"], ["updated_at", "2015-03-19 05:14:21.724861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-68" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-68", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.729389' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CVVIUkzE_G1gCUkuchwUZhqj64Ye5oTRmyEWsPRd824"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.731134"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.732837"], ["id", "cd40bfbe-cdf6-11e4-82a0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-68"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd40561e-cdf6-11e4-b4cf-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cd40561e-cdf6-11e4-b4cf-705681abff85' LIMIT 1 [["organization_id", "cd416540-cdf6-11e4-9daf-705681abff85"]] Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$MOhRIqgh63svLDhn2NE6eOEFN0pIsyKE68YeHvlJKth1D1RoUzTTC"], ["created_at", "2015-03-19 05:14:21.744569"], ["updated_at", "2015-03-19 05:14:21.744569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.746390"], ["user_id", "cd44ecb0-cdf6-11e4-8062-705681abff85"], ["created_at", "2015-03-19 05:14:21.747266"], ["updated_at", "2015-03-19 05:14:21.747266"], ["token", "B9F9p0Jqa_4DXsTvdQq2gjL5j4XDjVsa3gxNXfAW-co"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.750934"], ["updated_at", "2015-03-19 05:14:21.750934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd44ecb0-cdf6-11e4-8062-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd45f3c6-cdf6-11e4-aa0d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd44ecb0-cdf6-11e4-8062-705681abff85"], ["organization_id", "cd45f3c6-cdf6-11e4-aa0d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.754935"], ["updated_at", "2015-03-19 05:14:21.754935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$3F3/RXtzalyWFSGaJGm.zuO2YcVqx3sE857Uy0w3Vxqo86Vqr9aJ."], ["created_at", "2015-03-19 05:14:21.767709"], ["updated_at", "2015-03-19 05:14:21.767709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.770263"], ["user_id", "cd488636-cdf6-11e4-ac0d-705681abff85"], ["created_at", "2015-03-19 05:14:21.771175"], ["updated_at", "2015-03-19 05:14:21.771175"], ["token", "vYMpEmRZixyDWo9wVx0opbvz3e6qoQLlH9kc8zxkD3w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.774394"], ["updated_at", "2015-03-19 05:14:21.774394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd488636-cdf6-11e4-ac0d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd4974ce-cdf6-11e4-98e8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd488636-cdf6-11e4-ac0d-705681abff85"], ["organization_id", "cd4974ce-cdf6-11e4-98e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.777424"], ["updated_at", "2015-03-19 05:14:21.777424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-70" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-70", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.782132' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vYMpEmRZixyDWo9wVx0opbvz3e6qoQLlH9kc8zxkD3w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.783576"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.784550"], ["id", "cd48fe9a-cdf6-11e4-bdcb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-70"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd488636-cdf6-11e4-ac0d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cd488636-cdf6-11e4-ac0d-705681abff85' LIMIT 1 [["organization_id", "cd4974ce-cdf6-11e4-98e8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "cd4974ce-cdf6-11e4-98e8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.8ms)  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$pgtddMFYIFk/cRfXgzmrouBmm2uCwi2phmbNOMtjIjBxV6TOiVJDW"], ["created_at", "2015-03-19 05:14:21.797746"], ["updated_at", "2015-03-19 05:14:21.797746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.799350"], ["user_id", "cd4d097c-cdf6-11e4-b6d8-705681abff85"], ["created_at", "2015-03-19 05:14:21.800142"], ["updated_at", "2015-03-19 05:14:21.800142"], ["token", "KiyyoFzMEemFraAMoPmNtCN9XOvA1yf_iM84cMyquAA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.804454"], ["updated_at", "2015-03-19 05:14:21.804454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd4d097c-cdf6-11e4-b6d8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd4e0be2-cdf6-11e4-aff7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd4d097c-cdf6-11e4-b6d8-705681abff85"], ["organization_id", "cd4e0be2-cdf6-11e4-aff7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.807600"], ["updated_at", "2015-03-19 05:14:21.807600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$q1gfB5n68xdP6JCcY8t7/.hH0XTX5RuzGve02h.9Dc3CqghHL8kXy"], ["created_at", "2015-03-19 05:14:21.818687"], ["updated_at", "2015-03-19 05:14:21.818687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.829740"], ["user_id", "cd51a54a-cdf6-11e4-be2d-705681abff85"], ["created_at", "2015-03-19 05:14:21.830573"], ["updated_at", "2015-03-19 05:14:21.830573"], ["token", "6KNaQLtOaaguozclIQdgehuLPQLtLoLJ4Qk6fiEktDY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.833889"], ["updated_at", "2015-03-19 05:14:21.833889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd51a54a-cdf6-11e4-be2d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd528960-cdf6-11e4-a162-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd51a54a-cdf6-11e4-be2d-705681abff85"], ["organization_id", "cd528960-cdf6-11e4-a162-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.837079"], ["updated_at", "2015-03-19 05:14:21.837079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/cd528960-cdf6-11e4-a162-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"cd528960-cdf6-11e4-a162-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.841411' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6KNaQLtOaaguozclIQdgehuLPQLtLoLJ4Qk6fiEktDY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.843400"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.844464"], ["id", "cd521034-cdf6-11e4-b74a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cd528960-cdf6-11e4-a162-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd51a54a-cdf6-11e4-be2d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cd51a54a-cdf6-11e4-be2d-705681abff85' LIMIT 1 [["organization_id", "cd528960-cdf6-11e4-a162-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "cd528960-cdf6-11e4-a162-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$MYTUy2bvi3kZwpPRESqBUO0wzJWxeefKRLFP43n2jfWSkiK0Hh6jS"], ["created_at", "2015-03-19 05:14:21.859427"], ["updated_at", "2015-03-19 05:14:21.859427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.861113"], ["user_id", "cd56784a-cdf6-11e4-98a7-705681abff85"], ["created_at", "2015-03-19 05:14:21.862147"], ["updated_at", "2015-03-19 05:14:21.862147"], ["token", "iP1GzBfbaMY6dMsaBOjMRsj_JjGsuD-37zZH_9y0Wz4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.866593"], ["updated_at", "2015-03-19 05:14:21.866593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd56784a-cdf6-11e4-98a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd578ad2-cdf6-11e4-aa75-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd56784a-cdf6-11e4-98a7-705681abff85"], ["organization_id", "cd578ad2-cdf6-11e4-aa75-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.871637"], ["updated_at", "2015-03-19 05:14:21.871637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$JhkRIC1/jwQbPmx7u9KAhOT0DV61Oe0pclU36z9IIZLdiWHiyLN.e"], ["created_at", "2015-03-19 05:14:21.882528"], ["updated_at", "2015-03-19 05:14:21.882528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.884774"], ["user_id", "cd5a0c94-cdf6-11e4-bf71-705681abff85"], ["created_at", "2015-03-19 05:14:21.885990"], ["updated_at", "2015-03-19 05:14:21.885990"], ["token", "v5nOnHe1Tlzs-B0jmm_3Zmo6z12xX1jOVghxeXbsUiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (2.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.889396"], ["updated_at", "2015-03-19 05:14:21.889396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd5a0c94-cdf6-11e4-bf71-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd5b036a-cdf6-11e4-8ea9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd5a0c94-cdf6-11e4-bf71-705681abff85"], ["organization_id", "cd5b036a-cdf6-11e4-8ea9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.895989"], ["updated_at", "2015-03-19 05:14:21.895989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$cf/SeFm0YlxOGA9Iief7veJ0ypLy35pCO3p/Uzcd5ClatFBFuwC5q"], ["created_at", "2015-03-19 05:14:21.902295"], ["updated_at", "2015-03-19 05:14:21.902295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.906943"], ["updated_at", "2015-03-19 05:14:21.906943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd5d0390-cdf6-11e4-9b21-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd5db100-cdf6-11e4-a53c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cd5d0390-cdf6-11e4-9b21-705681abff85"], ["organization_id", "cd5db100-cdf6-11e4-a53c-705681abff85"], ["created_at", "2015-03-19 05:14:21.910138"], ["updated_at", "2015-03-19 05:14:21.910138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:21.914997' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v5nOnHe1Tlzs-B0jmm_3Zmo6z12xX1jOVghxeXbsUiY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:21.917013"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:21.918761"], ["id", "cd5a8624-cdf6-11e4-bd52-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd5a0c94-cdf6-11e4-bf71-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "cd5a0c94-cdf6-11e4-bf71-705681abff85"]] Completed 200 OK in 12ms (Views: 2.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$ylDqNDRwwxdHJbN3WrHD0eLF91.AJYXjltKYXRX7DNWb69MWjlLMm"], ["created_at", "2015-03-19 05:14:21.933237"], ["updated_at", "2015-03-19 05:14:21.933237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.934925"], ["user_id", "cd61b70a-cdf6-11e4-8710-705681abff85"], ["created_at", "2015-03-19 05:14:21.935745"], ["updated_at", "2015-03-19 05:14:21.935745"], ["token", "2aKYGDhRL_gztwo6rschqwrvIYTMVK35pI5FP9BMus0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.939312"], ["updated_at", "2015-03-19 05:14:21.939312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd61b70a-cdf6-11e4-8710-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd62a278-cdf6-11e4-b249-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd61b70a-cdf6-11e4-8710-705681abff85"], ["organization_id", "cd62a278-cdf6-11e4-b249-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.942932"], ["updated_at", "2015-03-19 05:14:21.942932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$RcwF.VZR24l8LcTKNKfRiOpL8bmdzNZRTciKKsFK8dXGQYFX.8II."], ["created_at", "2015-03-19 05:14:21.947633"], ["updated_at", "2015-03-19 05:14:21.947633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.951428"], ["updated_at", "2015-03-19 05:14:21.951428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd63e796-cdf6-11e4-9eff-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd647f9e-cdf6-11e4-b550-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cd63e796-cdf6-11e4-9eff-705681abff85"], ["organization_id", "cd647f9e-cdf6-11e4-b550-705681abff85"], ["created_at", "2015-03-19 05:14:21.955229"], ["updated_at", "2015-03-19 05:14:21.955229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$oo/V6W0sR4j/uml2hNzNZ.z5DflV4gmMIqiTLERv3Q/YOLwPI/3Eq"], ["created_at", "2015-03-19 05:14:21.969116"], ["updated_at", "2015-03-19 05:14:21.969116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.971409"], ["user_id", "cd67372a-cdf6-11e4-8876-705681abff85"], ["created_at", "2015-03-19 05:14:21.972204"], ["updated_at", "2015-03-19 05:14:21.972204"], ["token", "14hJmFXUOkEWV64e4ewhE9eY47-FlJGqHc-QoGCwfNQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.975562"], ["updated_at", "2015-03-19 05:14:21.975562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd67372a-cdf6-11e4-8876-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd682d10-cdf6-11e4-adcd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd67372a-cdf6-11e4-8876-705681abff85"], ["organization_id", "cd682d10-cdf6-11e4-adcd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:21.979748"], ["updated_at", "2015-03-19 05:14:21.979748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:14:21 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$onxqVZCEZ2f9Jkm03IdIge2q/DQadxI8WTtnjDFzh8LZB/E6wvNne"], ["created_at", "2015-03-19 05:14:21.989655"], ["updated_at", "2015-03-19 05:14:21.989655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:21.993137"], ["user_id", "cd6a50a4-cdf6-11e4-8c39-705681abff85"], ["created_at", "2015-03-19 05:14:21.993912"], ["updated_at", "2015-03-19 05:14:21.993912"], ["token", "814QA9w1aGs0ZCYosy9vtba1vtRVRZWc5Mr9a7SuJxk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:21.997262"], ["updated_at", "2015-03-19 05:14:21.997262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd6a50a4-cdf6-11e4-8c39-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd6b786c-cdf6-11e4-9df7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd6a50a4-cdf6-11e4-8c39-705681abff85"], ["organization_id", "cd6b786c-cdf6-11e4-9df7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.000375"], ["updated_at", "2015-03-19 05:14:22.000375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.005248' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "814QA9w1aGs0ZCYosy9vtba1vtRVRZWc5Mr9a7SuJxk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.006831"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.007793"], ["id", "cd6b0062-cdf6-11e4-8922-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$nRUkk.D6BWcAnwZhAzg7y.aJqyafj5vGOSWwu1r/UNw.0MjO4ZzDS"], ["created_at", "2015-03-19 05:14:22.018071"], ["updated_at", "2015-03-19 05:14:22.018071"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.021224"], ["user_id", "cd6ec4f4-cdf6-11e4-904f-705681abff85"], ["created_at", "2015-03-19 05:14:22.021992"], ["updated_at", "2015-03-19 05:14:22.021992"], ["token", "KA4SRCYmxIU5dwM5Eed5h2mbm1LE8PiopGif7I6wVD0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.025369"], ["updated_at", "2015-03-19 05:14:22.025369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd6ec4f4-cdf6-11e4-904f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd6fc20a-cdf6-11e4-8906-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd6ec4f4-cdf6-11e4-904f-705681abff85"], ["organization_id", "cd6fc20a-cdf6-11e4-8906-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.028546"], ["updated_at", "2015-03-19 05:14:22.028546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-80" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-80", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.033369' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KA4SRCYmxIU5dwM5Eed5h2mbm1LE8PiopGif7I6wVD0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.034938"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.035901"], ["id", "cd6f48de-cdf6-11e4-a9f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-80"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd6ec4f4-cdf6-11e4-904f-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$o2mC4Kl2Ki4FO.uBGrBgL.DGsTILGZBRN28Ya/.tPUmdkIWe4qH5O"], ["created_at", "2015-03-19 05:14:22.044115"], ["updated_at", "2015-03-19 05:14:22.044115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$ogkuNF0xaBfK.rtyxyYv/.MuJPJqWGHMaznOU0AM5lY/rMWaTZwO6"], ["created_at", "2015-03-19 05:14:22.048608"], ["updated_at", "2015-03-19 05:14:22.048608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.050181"], ["user_id", "cd72a042-cdf6-11e4-8b9a-705681abff85"], ["created_at", "2015-03-19 05:14:22.051190"], ["updated_at", "2015-03-19 05:14:22.051190"], ["token", "AUHc-V6pxirliqWUbI4_EppHco1tF0B10UX6UnrRGFg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.055108"], ["updated_at", "2015-03-19 05:14:22.055108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd72a042-cdf6-11e4-8b9a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd745658-cdf6-11e4-baf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd72a042-cdf6-11e4-8b9a-705681abff85"], ["organization_id", "cd745658-cdf6-11e4-baf3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.058951"], ["updated_at", "2015-03-19 05:14:22.058951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd734f24-cdf6-11e4-9044-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd745658-cdf6-11e4-baf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cd734f24-cdf6-11e4-9044-705681abff85"], ["organization_id", "cd745658-cdf6-11e4-baf3-705681abff85"], ["created_at", "2015-03-19 05:14:22.062039"], ["updated_at", "2015-03-19 05:14:22.062039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$3lub8LAXaoskT.QEllN0BOlrcU7C8lbtxK1rtBTaBKYFUy0Az6oMq"], ["created_at", "2015-03-19 05:14:22.066431"], ["updated_at", "2015-03-19 05:14:22.066431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.068131"], ["user_id", "cd760a5c-cdf6-11e4-9b05-705681abff85"], ["created_at", "2015-03-19 05:14:22.068923"], ["updated_at", "2015-03-19 05:14:22.068923"], ["token", "bDZVmiS38XPaZyy_WSU125QtdVxR1AeNVWOako5vsCQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'cd745658-cdf6-11e4-baf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "cd745658-cdf6-11e4-baf3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.073719"], ["updated_at", "2015-03-19 05:14:22.073719"], ["token", "qVN0r6o4fe2Dhl3ZAuwrfzHtcTb-v0jMQrCedr3mNNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$DwlhYJsa0qLMR/Ido1JlI.g9GUEJEPYQXNyMxMRUsLyp0a853406C"], ["created_at", "2015-03-19 05:14:22.089578"], ["updated_at", "2015-03-19 05:14:22.089578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$sHLneujN8hqh6S.g6HVcvOLaB1O1VMmwbfTkkt0sZ2VWQDVm8GGe2"], ["created_at", "2015-03-19 05:14:22.094021"], ["updated_at", "2015-03-19 05:14:22.094021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.095507"], ["user_id", "cd7994d8-cdf6-11e4-8fa8-705681abff85"], ["created_at", "2015-03-19 05:14:22.096281"], ["updated_at", "2015-03-19 05:14:22.096281"], ["token", "siMcVrEhWEpyafaKFlhxJeKXaa_nTuA7Ax0dG-y9lB0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.099634"], ["updated_at", "2015-03-19 05:14:22.099634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd7994d8-cdf6-11e4-8fa8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd7b1722-cdf6-11e4-a505-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd7994d8-cdf6-11e4-8fa8-705681abff85"], ["organization_id", "cd7b1722-cdf6-11e4-a505-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.103145"], ["updated_at", "2015-03-19 05:14:22.103145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd7a3c3a-cdf6-11e4-876f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd7b1722-cdf6-11e4-a505-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cd7a3c3a-cdf6-11e4-876f-705681abff85"], ["organization_id", "cd7b1722-cdf6-11e4-a505-705681abff85"], ["created_at", "2015-03-19 05:14:22.106371"], ["updated_at", "2015-03-19 05:14:22.106371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$3CkyrV6pjEWviYGulhKGhOQkCvRSKEeTKuJo8GZ.2eF7XhaY2MaGq"], ["created_at", "2015-03-19 05:14:22.110639"], ["updated_at", "2015-03-19 05:14:22.110639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.112353"], ["user_id", "cd7cc856-cdf6-11e4-b22b-705681abff85"], ["created_at", "2015-03-19 05:14:22.113189"], ["updated_at", "2015-03-19 05:14:22.113189"], ["token", "aa03Gdf-FSShKjxW9n21xgX2xuBPHUiLCfEQFls0O-g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = 'cd7b1722-cdf6-11e4-a505-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "cd7b1722-cdf6-11e4-a505-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.116891"], ["updated_at", "2015-03-19 05:14:22.116891"], ["token", "GfQGo8w3a8Di2qmYnaWWvJ1nkC-hRUpGVmoO0BJEXbw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/cd7b1722-cdf6-11e4-a505-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"cd7b1722-cdf6-11e4-a505-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.122391' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aa03Gdf-FSShKjxW9n21xgX2xuBPHUiLCfEQFls0O-g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.123899"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.124886"], ["id", "cd7d31ce-cdf6-11e4-bdeb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cd7b1722-cdf6-11e4-a505-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd7cc856-cdf6-11e4-b22b-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$5QQ6QVd9da6FIUMSZnFyeeU.wP1Xogz8YyAeqKNpcmo01fSLbHMIG"], ["created_at", "2015-03-19 05:14:22.139368"], ["updated_at", "2015-03-19 05:14:22.139368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$rYiU7ciXJO3v1YbmuunIKucYWofr3HZa9OklWnke.kKSVA1SyuUw2"], ["created_at", "2015-03-19 05:14:22.143879"], ["updated_at", "2015-03-19 05:14:22.143879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.145456"], ["user_id", "cd812af4-cdf6-11e4-94a2-705681abff85"], ["created_at", "2015-03-19 05:14:22.146236"], ["updated_at", "2015-03-19 05:14:22.146236"], ["token", "W5_Z6gE_7zjubkGJ7xuZihGm2ZfohZrWyV5b0-NZ1jM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.150096"], ["updated_at", "2015-03-19 05:14:22.150096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd812af4-cdf6-11e4-94a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd82d20a-cdf6-11e4-8034-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd812af4-cdf6-11e4-94a2-705681abff85"], ["organization_id", "cd82d20a-cdf6-11e4-8034-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.153749"], ["updated_at", "2015-03-19 05:14:22.153749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd81d9d6-cdf6-11e4-b207-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd82d20a-cdf6-11e4-8034-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cd81d9d6-cdf6-11e4-b207-705681abff85"], ["organization_id", "cd82d20a-cdf6-11e4-8034-705681abff85"], ["created_at", "2015-03-19 05:14:22.156798"], ["updated_at", "2015-03-19 05:14:22.156798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$B2f1ce6Tf2faUNMbE.Y0uOMWTPopXkvo1ArXZq7CN858TNn7.9a12"], ["created_at", "2015-03-19 05:14:22.160963"], ["updated_at", "2015-03-19 05:14:22.160963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.162510"], ["user_id", "cd8473e4-cdf6-11e4-9bab-705681abff85"], ["created_at", "2015-03-19 05:14:22.163312"], ["updated_at", "2015-03-19 05:14:22.163312"], ["token", "96nD3oXJYJukgTwlYDMxEoAOGq9DTghDNmpeIjCWWx4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'cd82d20a-cdf6-11e4-8034-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "cd82d20a-cdf6-11e4-8034-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.167240"], ["updated_at", "2015-03-19 05:14:22.167240"], ["token", "qZX7flFx-NptxtFKh-jQoIiyYYGdN-PCDzpknT8RQWA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/cd82d20a-cdf6-11e4-8034-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"qZX7flFx-NptxtFKh-jQoIiyYYGdN-PCDzpknT8RQWA", "organization_id"=>"cd82d20a-cdf6-11e4-8034-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.173816' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "96nD3oXJYJukgTwlYDMxEoAOGq9DTghDNmpeIjCWWx4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.175321"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.176262"], ["id", "cd84d56e-cdf6-11e4-bb64-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cd82d20a-cdf6-11e4-8034-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd8473e4-cdf6-11e4-9bab-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "qZX7flFx-NptxtFKh-jQoIiyYYGdN-PCDzpknT8RQWA"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cd82d20a-cdf6-11e4-8034-705681abff85"]] Clubhouse::Membership Exists (21.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd8473e4-cdf6-11e4-9bab-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd82d20a-cdf6-11e4-8034-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "cd82d20a-cdf6-11e4-8034-705681abff85"], ["member_id", "cd8473e4-cdf6-11e4-9bab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.221212"], ["updated_at", "2015-03-19 05:14:22.221212"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "cd856f10-cdf6-11e4-aa44-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 58ms (Views: 7.0ms | ActiveRecord: 23.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$LnGIkeG9pJSdgTkyCYbdVe5MpAqb6FLRlHrdZJKBPxOb/llVE0J36"], ["created_at", "2015-03-19 05:14:22.242475"], ["updated_at", "2015-03-19 05:14:22.242475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$xlv3upqBI8uF4TnwGfrqOe6xSFPHtn4VIRcu4faclv64PXliUSSJi"], ["created_at", "2015-03-19 05:14:22.249720"], ["updated_at", "2015-03-19 05:14:22.249720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.252843"], ["user_id", "cd9119e6-cdf6-11e4-b1d6-705681abff85"], ["created_at", "2015-03-19 05:14:22.254101"], ["updated_at", "2015-03-19 05:14:22.254101"], ["token", "6lArB-nlyPMVyjK31HHly8rNoMVJl1upglm9EHHHw14"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.260674"], ["updated_at", "2015-03-19 05:14:22.260674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd9119e6-cdf6-11e4-b1d6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd93bf8e-cdf6-11e4-95ba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd9119e6-cdf6-11e4-b1d6-705681abff85"], ["organization_id", "cd93bf8e-cdf6-11e4-95ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.266548"], ["updated_at", "2015-03-19 05:14:22.266548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd92284a-cdf6-11e4-9033-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd93bf8e-cdf6-11e4-95ba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cd92284a-cdf6-11e4-9033-705681abff85"], ["organization_id", "cd93bf8e-cdf6-11e4-95ba-705681abff85"], ["created_at", "2015-03-19 05:14:22.271497"], ["updated_at", "2015-03-19 05:14:22.271497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$x.lusOXAcWMKx7uxD.vFI..qkphMDL9rO5ab4mOo05BMnlwKVLN8a"], ["created_at", "2015-03-19 05:14:22.276439"], ["updated_at", "2015-03-19 05:14:22.276439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.278123"], ["user_id", "cd961446-cdf6-11e4-b934-705681abff85"], ["created_at", "2015-03-19 05:14:22.279004"], ["updated_at", "2015-03-19 05:14:22.279004"], ["token", "tnH8UXms-py7Uq8r7zuDBswuNDeYmmIjzeJuKaJRDGY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = 'cd93bf8e-cdf6-11e4-95ba-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "cd93bf8e-cdf6-11e4-95ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.283487"], ["updated_at", "2015-03-19 05:14:22.283487"], ["token", "1VKcoG0KZVGR-opeSUyTyQfutSoV7hCxDbHByESd27I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$dvLW8iwsB2iQCfjlZ8C2YeHR8uN1R5hNXeSmfySHXpebFGFHLCAIa"], ["created_at", "2015-03-19 05:14:22.297456"], ["updated_at", "2015-03-19 05:14:22.297456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$6/5j95zPGt6ZdZSzZtG7sOMXIyNBknD/4lq0rWOY0XSyXvt7G94k2"], ["created_at", "2015-03-19 05:14:22.302971"], ["updated_at", "2015-03-19 05:14:22.302971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.305469"], ["user_id", "cd9948b4-cdf6-11e4-9c97-705681abff85"], ["created_at", "2015-03-19 05:14:22.306219"], ["updated_at", "2015-03-19 05:14:22.306219"], ["token", "CCeVNoSIz-3i4hiJDAh7nzZo9sDg_jfjqoTVoU5g68U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.309547"], ["updated_at", "2015-03-19 05:14:22.309547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd9948b4-cdf6-11e4-9c97-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd9b2314-cdf6-11e4-87cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd9948b4-cdf6-11e4-9c97-705681abff85"], ["organization_id", "cd9b2314-cdf6-11e4-87cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.313125"], ["updated_at", "2015-03-19 05:14:22.313125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd9a2efa-cdf6-11e4-b026-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cd9b2314-cdf6-11e4-87cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cd9a2efa-cdf6-11e4-b026-705681abff85"], ["organization_id", "cd9b2314-cdf6-11e4-87cb-705681abff85"], ["created_at", "2015-03-19 05:14:22.316285"], ["updated_at", "2015-03-19 05:14:22.316285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$bOTvUyOTCf52IM7YarWxHeVuW2ckgQW4oqLSAeSH1tX2r7Rt.AK7e"], ["created_at", "2015-03-19 05:14:22.320914"], ["updated_at", "2015-03-19 05:14:22.320914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.322532"], ["user_id", "cd9cde34-cdf6-11e4-bd11-705681abff85"], ["created_at", "2015-03-19 05:14:22.323275"], ["updated_at", "2015-03-19 05:14:22.323275"], ["token", "qgqMahQ2tMmZCDFfNx7aHQdfkcEsINDBzDGZ0bKGTdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = 'cd9b2314-cdf6-11e4-87cb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "cd9b2314-cdf6-11e4-87cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.326999"], ["updated_at", "2015-03-19 05:14:22.326999"], ["token", "Jopjo1HdJj8WpgcNSYy1ekN3lbB3EOsttHfbE8UWZsM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.332136' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qgqMahQ2tMmZCDFfNx7aHQdfkcEsINDBzDGZ0bKGTdA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.333567"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.334491"], ["id", "cd9d3f6e-cdf6-11e4-ace1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd9cde34-cdf6-11e4-bd11-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$K1PKePOGwmTK/gDCN9En7OOh4qIesaPjUaj0qJW0LVIYyMalG0UiO"], ["created_at", "2015-03-19 05:14:22.346137"], ["updated_at", "2015-03-19 05:14:22.346137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$cYC4Ubs22g0kVhOkwF7v1.FsjbCf3tYJNyu8dRVEnha2yPL3bXzRi"], ["created_at", "2015-03-19 05:14:22.350493"], ["updated_at", "2015-03-19 05:14:22.350493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.352115"], ["user_id", "cda0ba2c-cdf6-11e4-8466-705681abff85"], ["created_at", "2015-03-19 05:14:22.353486"], ["updated_at", "2015-03-19 05:14:22.353486"], ["token", "Bj_VdkuqE9lC20OwHJ1Za_eLKAfNHDlotwkMG17SQsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.357003"], ["updated_at", "2015-03-19 05:14:22.357003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cda0ba2c-cdf6-11e4-8466-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cda25c06-cdf6-11e4-b06c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cda0ba2c-cdf6-11e4-8466-705681abff85"], ["organization_id", "cda25c06-cdf6-11e4-b06c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.360496"], ["updated_at", "2015-03-19 05:14:22.360496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cda15f22-cdf6-11e4-949c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cda25c06-cdf6-11e4-b06c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cda15f22-cdf6-11e4-949c-705681abff85"], ["organization_id", "cda25c06-cdf6-11e4-b06c-705681abff85"], ["created_at", "2015-03-19 05:14:22.363608"], ["updated_at", "2015-03-19 05:14:22.363608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$4IEanJTsUulsbpgvD1j27.JAmuilV8wUCNK.YG72i8Tn0QGDIJVbS"], ["created_at", "2015-03-19 05:14:22.367986"], ["updated_at", "2015-03-19 05:14:22.367986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.369566"], ["user_id", "cda4098e-cdf6-11e4-98a4-705681abff85"], ["created_at", "2015-03-19 05:14:22.370332"], ["updated_at", "2015-03-19 05:14:22.370332"], ["token", "P6nD9hEh368fYbaR-gxyKq7mEWSdJIbl3S93uSgj5ZQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'cda25c06-cdf6-11e4-b06c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "cda25c06-cdf6-11e4-b06c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.374092"], ["updated_at", "2015-03-19 05:14:22.374092"], ["token", "97Elx7WqJLsmboXxIT65QUr60BJIEFsmnNVykCc_FbY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"97Elx7WqJLsmboXxIT65QUr60BJIEFsmnNVykCc_FbY", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.379801' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "P6nD9hEh368fYbaR-gxyKq7mEWSdJIbl3S93uSgj5ZQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.381368"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.382455"], ["id", "cda46d8e-cdf6-11e4-b08a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cda4098e-cdf6-11e4-98a4-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "97Elx7WqJLsmboXxIT65QUr60BJIEFsmnNVykCc_FbY"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cda25c06-cdf6-11e4-b06c-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cda4098e-cdf6-11e4-98a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cda25c06-cdf6-11e4-b06c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "cda25c06-cdf6-11e4-b06c-705681abff85"], ["member_id", "cda4098e-cdf6-11e4-98a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.390335"], ["updated_at", "2015-03-19 05:14:22.390335"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "cda4fd30-cdf6-11e4-befc-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.0ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$M9JE9cXr58bOGVxw9ExC7.Cg7U5yQ8ES9w2gCzgM9/wctUBY0KhBK"], ["created_at", "2015-03-19 05:14:22.399723"], ["updated_at", "2015-03-19 05:14:22.399723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$CVqgqbU3WXLAk24KYrMs.uieRAtjZomqLEHPq6AEZy9G2yi9Jlmei"], ["created_at", "2015-03-19 05:14:22.404126"], ["updated_at", "2015-03-19 05:14:22.404126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.405806"], ["user_id", "cda8e2ce-cdf6-11e4-a567-705681abff85"], ["created_at", "2015-03-19 05:14:22.406619"], ["updated_at", "2015-03-19 05:14:22.406619"], ["token", "Yy6tm8klKU9di9xjoVCSaUIo6eoCZ2PWjWPaznLxkQA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.410053"], ["updated_at", "2015-03-19 05:14:22.410053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cda8e2ce-cdf6-11e4-a567-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdaa745e-cdf6-11e4-9695-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cda8e2ce-cdf6-11e4-a567-705681abff85"], ["organization_id", "cdaa745e-cdf6-11e4-9695-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.413268"], ["updated_at", "2015-03-19 05:14:22.413268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cda98d82-cdf6-11e4-a1d1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdaa745e-cdf6-11e4-9695-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cda98d82-cdf6-11e4-a1d1-705681abff85"], ["organization_id", "cdaa745e-cdf6-11e4-9695-705681abff85"], ["created_at", "2015-03-19 05:14:22.416225"], ["updated_at", "2015-03-19 05:14:22.416225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/cdab63e6-cdf6-11e4-b96e-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"cdab63e6-cdf6-11e4-b96e-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.420752' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Yy6tm8klKU9di9xjoVCSaUIo6eoCZ2PWjWPaznLxkQA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.422209"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.423147"], ["id", "cda9f88a-cdf6-11e4-892c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "cdab63e6-cdf6-11e4-b96e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cda8e2ce-cdf6-11e4-a567-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cdaa745e-cdf6-11e4-9695-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cda8e2ce-cdf6-11e4-a567-705681abff85' LIMIT 1 [["organization_id", "cdaa745e-cdf6-11e4-9695-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cda98d82-cdf6-11e4-a1d1-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cda98d82-cdf6-11e4-a1d1-705681abff85' AND "clubhouse_memberships"."id" != 'cdab63e6-cdf6-11e4-b96e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdaa745e-cdf6-11e4-9695-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:14:22.430604"], ["id", "cdab63e6-cdf6-11e4-b96e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$HER7qp54UVzrn/Ekle8JN.oPchlkL2o6tye/n9yvVe8bOar7lcLiC"], ["created_at", "2015-03-19 05:14:22.440305"], ["updated_at", "2015-03-19 05:14:22.440305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$L7J7XAKgxDwH2ecFNMNsHe3wsUReDnHxqclv0iRscwswyRN/WPsDu"], ["created_at", "2015-03-19 05:14:22.444403"], ["updated_at", "2015-03-19 05:14:22.444403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.446155"], ["user_id", "cdaf152c-cdf6-11e4-9a4c-705681abff85"], ["created_at", "2015-03-19 05:14:22.446887"], ["updated_at", "2015-03-19 05:14:22.446887"], ["token", "CK880oauiK6LMAqBhI1VOnvb6zgv02JmYSRm8aVm1dM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.452505"], ["updated_at", "2015-03-19 05:14:22.452505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdaf152c-cdf6-11e4-9a4c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdb0f05e-cdf6-11e4-ac06-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdaf152c-cdf6-11e4-9a4c-705681abff85"], ["organization_id", "cdb0f05e-cdf6-11e4-ac06-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.455890"], ["updated_at", "2015-03-19 05:14:22.455890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdafbd2e-cdf6-11e4-ac4e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdb0f05e-cdf6-11e4-ac06-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cdafbd2e-cdf6-11e4-ac4e-705681abff85"], ["organization_id", "cdb0f05e-cdf6-11e4-ac06-705681abff85"], ["created_at", "2015-03-19 05:14:22.459241"], ["updated_at", "2015-03-19 05:14:22.459241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$hWh98Z50btAeeubA4SpG5uWC8sO5eNfbMgQFCMFlIVruB1ohVabky"], ["created_at", "2015-03-19 05:14:22.468893"], ["updated_at", "2015-03-19 05:14:22.468893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$RCad6BOAj7bJxs9zv/w47.3oVHr2MmrL5kAritcIbXXwXA6LbpkKe"], ["created_at", "2015-03-19 05:14:22.473721"], ["updated_at", "2015-03-19 05:14:22.473721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.475350"], ["user_id", "cdb372ca-cdf6-11e4-a3c7-705681abff85"], ["created_at", "2015-03-19 05:14:22.476108"], ["updated_at", "2015-03-19 05:14:22.476108"], ["token", "bntu_VW0FOZca64JqM_GT4-iRXpwfpdP8WNVCteQgJA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.479334"], ["updated_at", "2015-03-19 05:14:22.479334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdb372ca-cdf6-11e4-a3c7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdb506d0-cdf6-11e4-9bb3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdb372ca-cdf6-11e4-a3c7-705681abff85"], ["organization_id", "cdb506d0-cdf6-11e4-9bb3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.482387"], ["updated_at", "2015-03-19 05:14:22.482387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdb42e68-cdf6-11e4-8b5a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdb506d0-cdf6-11e4-9bb3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cdb42e68-cdf6-11e4-8b5a-705681abff85"], ["organization_id", "cdb506d0-cdf6-11e4-9bb3-705681abff85"], ["created_at", "2015-03-19 05:14:22.485611"], ["updated_at", "2015-03-19 05:14:22.485611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/cdb57ed0-cdf6-11e4-9523-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"cdb57ed0-cdf6-11e4-9523-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.491271' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bntu_VW0FOZca64JqM_GT4-iRXpwfpdP8WNVCteQgJA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.492638"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.493527"], ["id", "cdb48f0c-cdf6-11e4-ad1d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "cdb57ed0-cdf6-11e4-9523-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cdb372ca-cdf6-11e4-a3c7-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cdb506d0-cdf6-11e4-9bb3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cdb372ca-cdf6-11e4-a3c7-705681abff85' LIMIT 1 [["organization_id", "cdb506d0-cdf6-11e4-9bb3-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cdb372ca-cdf6-11e4-a3c7-705681abff85"]] Completed 200 OK in 8ms (Views: 1.5ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$n2Cppnxei0dPfQ7OxhcxGuaD7PMHhk5hNmyLZDGVQ2KYA6LMJbM/e"], ["created_at", "2015-03-19 05:14:22.505853"], ["updated_at", "2015-03-19 05:14:22.505853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$z419MInAuQ4a.2Ppjf/j6OD1HAaqcwgYi.Y0TMvCpSM0bpvMGs1Ry"], ["created_at", "2015-03-19 05:14:22.509887"], ["updated_at", "2015-03-19 05:14:22.509887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.511277"], ["user_id", "cdb91496-cdf6-11e4-81f9-705681abff85"], ["created_at", "2015-03-19 05:14:22.512008"], ["updated_at", "2015-03-19 05:14:22.512008"], ["token", "PYoFyH_9axxnypHel2e7WrtvB7jxE62eY5yL7ebQ0F4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.515136"], ["updated_at", "2015-03-19 05:14:22.515136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdb91496-cdf6-11e4-81f9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdba7d0e-cdf6-11e4-9b39-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdb91496-cdf6-11e4-81f9-705681abff85"], ["organization_id", "cdba7d0e-cdf6-11e4-9b39-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.518211"], ["updated_at", "2015-03-19 05:14:22.518211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdb9ae9c-cdf6-11e4-8f82-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdba7d0e-cdf6-11e4-9b39-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cdb9ae9c-cdf6-11e4-8f82-705681abff85"], ["organization_id", "cdba7d0e-cdf6-11e4-9b39-705681abff85"], ["created_at", "2015-03-19 05:14:22.521102"], ["updated_at", "2015-03-19 05:14:22.521102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$PoNdQ10IfAcPaR1khSKd4.QUGZh8eVztnsf5zZY7sUX2EE0wHatQq"], ["created_at", "2015-03-19 05:14:22.530556"], ["updated_at", "2015-03-19 05:14:22.530556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$Y7vT9p21gtC5FoVZxNQ5juHS7ChXYyiZlPwGJGHMhZrP6SgAvQ8pC"], ["created_at", "2015-03-19 05:14:22.534767"], ["updated_at", "2015-03-19 05:14:22.534767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.536212"], ["user_id", "cdbcd8ba-cdf6-11e4-b7fc-705681abff85"], ["created_at", "2015-03-19 05:14:22.537200"], ["updated_at", "2015-03-19 05:14:22.537200"], ["token", "TMQ2i-_6LHsIaAxZatoh91eEpAmPeBzf70Rc2QWTZh8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.540827"], ["updated_at", "2015-03-19 05:14:22.540827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdbcd8ba-cdf6-11e4-b7fc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdbe67ac-cdf6-11e4-bc46-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdbcd8ba-cdf6-11e4-b7fc-705681abff85"], ["organization_id", "cdbe67ac-cdf6-11e4-bc46-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.544001"], ["updated_at", "2015-03-19 05:14:22.544001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdbd7c3e-cdf6-11e4-ba5f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdbe67ac-cdf6-11e4-bc46-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cdbd7c3e-cdf6-11e4-ba5f-705681abff85"], ["organization_id", "cdbe67ac-cdf6-11e4-bc46-705681abff85"], ["created_at", "2015-03-19 05:14:22.547189"], ["updated_at", "2015-03-19 05:14:22.547189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/cdbe67ac-cdf6-11e4-bc46-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"cdbe67ac-cdf6-11e4-bc46-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.551737' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TMQ2i-_6LHsIaAxZatoh91eEpAmPeBzf70Rc2QWTZh8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.553688"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.554946"], ["id", "cdbdeae8-cdf6-11e4-9532-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cdbe67ac-cdf6-11e4-bc46-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cdbcd8ba-cdf6-11e4-b7fc-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cdbcd8ba-cdf6-11e4-b7fc-705681abff85' LIMIT 1 [["organization_id", "cdbe67ac-cdf6-11e4-bc46-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "cdbe67ac-cdf6-11e4-bc46-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('cdbcd8ba-cdf6-11e4-b7fc-705681abff85', 'cdbd7c3e-cdf6-11e4-ba5f-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('cdbe67ac-cdf6-11e4-bc46-705681abff85') Completed 200 OK in 13ms (Views: 3.9ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$ZlHUZqBlCXmAGMb39DPksOYVk6heK14T5G5Zc0pA.K5EvjPcQoMEm"], ["created_at", "2015-03-19 05:14:22.571131"], ["updated_at", "2015-03-19 05:14:22.571131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$NRHhr1A8n3KmX.2OMjZL6emAkPighoe3AWtvg6xoGj8Tbp2RMNDKe"], ["created_at", "2015-03-19 05:14:22.575219"], ["updated_at", "2015-03-19 05:14:22.575219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.576626"], ["user_id", "cdc30a0a-cdf6-11e4-a380-705681abff85"], ["created_at", "2015-03-19 05:14:22.577354"], ["updated_at", "2015-03-19 05:14:22.577354"], ["token", "DGm2wupUzUPbl58uanB-Q_fnMGYEmcq17r9MPhFrNXQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.580522"], ["updated_at", "2015-03-19 05:14:22.580522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdc30a0a-cdf6-11e4-a380-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdc475f2-cdf6-11e4-a283-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdc30a0a-cdf6-11e4-a380-705681abff85"], ["organization_id", "cdc475f2-cdf6-11e4-a283-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.583526"], ["updated_at", "2015-03-19 05:14:22.583526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdc3a6b8-cdf6-11e4-ad3e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdc475f2-cdf6-11e4-a283-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cdc3a6b8-cdf6-11e4-ad3e-705681abff85"], ["organization_id", "cdc475f2-cdf6-11e4-a283-705681abff85"], ["created_at", "2015-03-19 05:14:22.586365"], ["updated_at", "2015-03-19 05:14:22.586365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$6cwf3G85ivAQlWkIgxATc.KC/9NwfeFFqa3ZS3O1FK70DdHvQmbHK"], ["created_at", "2015-03-19 05:14:22.595772"], ["updated_at", "2015-03-19 05:14:22.595772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$ABp/9XuI8VqocPT/4Ga10ORpmVD/pPFk8r80Hgi5RBCqoRNsjD6ci"], ["created_at", "2015-03-19 05:14:22.599876"], ["updated_at", "2015-03-19 05:14:22.599876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.601417"], ["user_id", "cdc6cc8a-cdf6-11e4-87d7-705681abff85"], ["created_at", "2015-03-19 05:14:22.602403"], ["updated_at", "2015-03-19 05:14:22.602403"], ["token", "Q1oHCeiiSZd1LXhm5ifC08NX5t7V4sFDAWB4iuB8nWY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.607946"], ["updated_at", "2015-03-19 05:14:22.607946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdc6cc8a-cdf6-11e4-87d7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdc8a988-cdf6-11e4-810c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdc6cc8a-cdf6-11e4-87d7-705681abff85"], ["organization_id", "cdc8a988-cdf6-11e4-810c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.611318"], ["updated_at", "2015-03-19 05:14:22.611318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdc76b22-cdf6-11e4-8c83-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdc8a988-cdf6-11e4-810c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cdc76b22-cdf6-11e4-8c83-705681abff85"], ["organization_id", "cdc8a988-cdf6-11e4-810c-705681abff85"], ["created_at", "2015-03-19 05:14:22.614303"], ["updated_at", "2015-03-19 05:14:22.614303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.618763' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Q1oHCeiiSZd1LXhm5ifC08NX5t7V4sFDAWB4iuB8nWY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.620182"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.621528"], ["id", "cdc7ddd2-cdf6-11e4-8197-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cdc6cc8a-cdf6-11e4-87d7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cdc6cc8a-cdf6-11e4-87d7-705681abff85' LIMIT 1 [["organization_id", "cdc8a988-cdf6-11e4-810c-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "cdc8a988-cdf6-11e4-810c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('cdc6cc8a-cdf6-11e4-87d7-705681abff85', 'cdc76b22-cdf6-11e4-8c83-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('cdc8a988-cdf6-11e4-810c-705681abff85') Completed 200 OK in 12ms (Views: 3.5ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$8LyiabXeNkToy7FyveUpy.n3gWrBTrQ5Slm1DhfqROoLpz9RNFkDm"], ["created_at", "2015-03-19 05:14:22.636637"], ["updated_at", "2015-03-19 05:14:22.636637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$jAYBg4uagpNi04k7b683lu6Ou8PoXRJuKGb9frw2rQmh7rAznHeVm"], ["created_at", "2015-03-19 05:14:22.641087"], ["updated_at", "2015-03-19 05:14:22.641087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.642585"], ["user_id", "cdcd0b9a-cdf6-11e4-a753-705681abff85"], ["created_at", "2015-03-19 05:14:22.643335"], ["updated_at", "2015-03-19 05:14:22.643335"], ["token", "mo8A8pFI2Ov3KCY_WIFVzwaEx0iMdOLpLgmNhyIc4A0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.646563"], ["updated_at", "2015-03-19 05:14:22.646563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdcd0b9a-cdf6-11e4-a753-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdce892a-cdf6-11e4-8bb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdcd0b9a-cdf6-11e4-a753-705681abff85"], ["organization_id", "cdce892a-cdf6-11e4-8bb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.650095"], ["updated_at", "2015-03-19 05:14:22.650095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdcdb612-cdf6-11e4-86aa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdce892a-cdf6-11e4-8bb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cdcdb612-cdf6-11e4-86aa-705681abff85"], ["organization_id", "cdce892a-cdf6-11e4-8bb1-705681abff85"], ["created_at", "2015-03-19 05:14:22.653596"], ["updated_at", "2015-03-19 05:14:22.653596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$fAQVxdd306fm/4oIW2F9Dulwv8/5/v.i0y8g.d1lVv5.gY6v98112"], ["created_at", "2015-03-19 05:14:22.665198"], ["updated_at", "2015-03-19 05:14:22.665198"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$85Sx/yCNCWX3DuLBU.vn/u4eD/X2faDIkP/O4hw0N3BqDEdJ7q3qa"], ["created_at", "2015-03-19 05:14:22.670143"], ["updated_at", "2015-03-19 05:14:22.670143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.672108"], ["user_id", "cdd16640-cdf6-11e4-85e3-705681abff85"], ["created_at", "2015-03-19 05:14:22.672941"], ["updated_at", "2015-03-19 05:14:22.672941"], ["token", "PlvPVt1HwE66rFBU1TZPr4S4jrJWxZrHMMfQ9z54LOw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.676414"], ["updated_at", "2015-03-19 05:14:22.676414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdd16640-cdf6-11e4-85e3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdd31756-cdf6-11e4-8f4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdd16640-cdf6-11e4-85e3-705681abff85"], ["organization_id", "cdd31756-cdf6-11e4-8f4b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.679417"], ["updated_at", "2015-03-19 05:14:22.679417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdd228d2-cdf6-11e4-ab2d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdd31756-cdf6-11e4-8f4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cdd228d2-cdf6-11e4-ab2d-705681abff85"], ["organization_id", "cdd31756-cdf6-11e4-8f4b-705681abff85"], ["created_at", "2015-03-19 05:14:22.682212"], ["updated_at", "2015-03-19 05:14:22.682212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/cdd3fa22-cdf6-11e4-a951-705681abff85" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"cdd3fa22-cdf6-11e4-a951-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:14:22.686651' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PlvPVt1HwE66rFBU1TZPr4S4jrJWxZrHMMfQ9z54LOw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:14:22.688103"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:14:22.689005"], ["id", "cdd29bdc-cdf6-11e4-afbe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "cdd3fa22-cdf6-11e4-a951-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cdd16640-cdf6-11e4-85e3-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cdd31756-cdf6-11e4-8f4b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cdd16640-cdf6-11e4-85e3-705681abff85' LIMIT 1 [["organization_id", "cdd31756-cdf6-11e4-8f4b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cdd228d2-cdf6-11e4-ab2d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "cdd3fa22-cdf6-11e4-a951-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 3.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$9WmtSshM7AN6lPOH3qPFy.bxvPxylb4J7orsYEVXU6SHtXaAvUMVu"], ["created_at", "2015-03-19 05:14:22.701992"], ["updated_at", "2015-03-19 05:14:22.701992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$2p.kVNb1e20ytsL27k27wuohkyEuzKrZ64CA.HiQwLg2QqC7iCi/y"], ["created_at", "2015-03-19 05:14:22.706126"], ["updated_at", "2015-03-19 05:14:22.706126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:14:22.707867"], ["user_id", "cdd70172-cdf6-11e4-a496-705681abff85"], ["created_at", "2015-03-19 05:14:22.708640"], ["updated_at", "2015-03-19 05:14:22.708640"], ["token", "6mPe1Fnv3zKhmbqxBAs0KQDb_eJ_c6clAymhGXsv2k4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.711928"], ["updated_at", "2015-03-19 05:14:22.711928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdd70172-cdf6-11e4-a496-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdd882e0-cdf6-11e4-8e87-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdd70172-cdf6-11e4-a496-705681abff85"], ["organization_id", "cdd882e0-cdf6-11e4-8e87-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:14:22.715008"], ["updated_at", "2015-03-19 05:14:22.715008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdd7a064-cdf6-11e4-abf9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'cdd882e0-cdf6-11e4-8e87-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cdd7a064-cdf6-11e4-abf9-705681abff85"], ["organization_id", "cdd882e0-cdf6-11e4-8e87-705681abff85"], ["created_at", "2015-03-19 05:14:22.718183"], ["updated_at", "2015-03-19 05:14:22.718183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 22:14:22 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.727230"], ["updated_at", "2015-03-19 05:14:22.727230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'cddadd24-cdf6-11e4-a71c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "cddadd24-cdf6-11e4-a71c-705681abff85"], ["created_at", "2015-03-19 05:14:22.731854"], ["updated_at", "2015-03-19 05:14:22.731854"], ["token", "mJaQOJS8d4dJAk2gipkLRDehIhac0_NoToIIH4j8Ng4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.8ms) Date: Wed, 18 Mar 2015 22:14:22 -0700 From: from@example.com To: john@example.com Message-ID: <550a5b2eb3d43_e3603ffe94865bf058096@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org-name/invitations/mJaQOJS8d4dJAk2gipkLRDehIhac0_NoToIIH4j8Ng4?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.741801"], ["updated_at", "2015-03-19 05:14:22.741801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'cddd156c-cdf6-11e4-9f14-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "cddd156c-cdf6-11e4-9f14-705681abff85"], ["created_at", "2015-03-19 05:14:22.745033"], ["updated_at", "2015-03-19 05:14:22.745033"], ["token", "l9lbzItbAgg9IepPCnRl4RB_ZXh9i0-iHl3IehcdSw4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.0ms Sent mail to john@example.com (1.6ms) Date: Wed, 18 Mar 2015 22:14:22 -0700 From: from@example.com To: john@example.com Message-ID: <550a5b2eb6aa8_e3603ffe94865bf058195@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org-name/invitations/l9lbzItbAgg9IepPCnRl4RB_ZXh9i0-iHl3IehcdSw4?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.752671"], ["updated_at", "2015-03-19 05:14:22.752671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'cddebd90-cdf6-11e4-aece-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "cddebd90-cdf6-11e4-aece-705681abff85"], ["created_at", "2015-03-19 05:14:22.756224"], ["updated_at", "2015-03-19 05:14:22.756224"], ["token", "gMXAwwCCMnbmaU9kSIycPGjSkUxeIZX6XtLB8EDZRcQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.0ms Sent mail to john@example.com (1.5ms) Date: Wed, 18 Mar 2015 22:14:22 -0700 From: from@example.com To: john@example.com Message-ID: <550a5b2eb968c_e3603ffe94865bf05827d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org-name/invitations/gMXAwwCCMnbmaU9kSIycPGjSkUxeIZX6XtLB8EDZRcQ?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.764172"], ["updated_at", "2015-03-19 05:14:22.764172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'cde08030-cdf6-11e4-ac22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "cde08030-cdf6-11e4-ac22-705681abff85"], ["created_at", "2015-03-19 05:14:22.767531"], ["updated_at", "2015-03-19 05:14:22.767531"], ["token", "xtT7xTgJq5DRZECy1GFQZhFCratC2mbHQqS1GL5mupU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.0ms Sent mail to john@example.com (1.5ms) Date: Wed, 18 Mar 2015 22:14:22 -0700 From: from@example.com To: john@example.com Message-ID: <550a5b2ebc2a5_e3603ffe94865bf05839c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organization/org-name/invitations/xtT7xTgJq5DRZECy1GFQZhFCratC2mbHQqS1GL5mupU?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.779369"], ["updated_at", "2015-03-19 05:14:22.779369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'cde2cf2a-cdf6-11e4-ba2c-705681abff85') LIMIT 1 SQL (7.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "cde2cf2a-cdf6-11e4-ba2c-705681abff85"], ["created_at", "2015-03-19 05:14:22.782170"], ["updated_at", "2015-03-19 05:14:22.782170"], ["token", "hapRiQaFGkCVfAm_qpvCQaUv2eaQ6KdDlwV83Vju5II"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:14:22.794425"], ["updated_at", "2015-03-19 05:14:22.794425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'cde5202c-cdf6-11e4-8681-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "cde5202c-cdf6-11e4-8681-705681abff85"], ["created_at", "2015-03-19 05:14:22.797553"], ["updated_at", "2015-03-19 05:14:22.797553"], ["token", "N-yCEMdxCvE14N9GfYLnNZicf0hWoSq4K_kA0rXDBlg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cde5202c-cdf6-11e4-8681-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'cde5202c-cdf6-11e4-8681-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cde5202c-cdf6-11e4-8681-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'cde5202c-cdf6-11e4-8681-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$g57fEUWrDQgW6Hbn5tgvvuqeK73JtyZ/uWPx7riBKaPaJHW0EtRJe"], ["created_at", "2015-03-19 05:17:09.039872"], ["updated_at", "2015-03-19 05:17:09.039872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (7.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.103293"], ["user_id", "30ff2e28-cdf7-11e4-b001-705681abff85"], ["created_at", "2015-03-19 05:17:09.110882"], ["updated_at", "2015-03-19 05:17:09.110882"], ["token", "cuKcQxQWRUzliCwPmca7Ger0masPOMKI0pLmlfWL_2M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.128754"], ["updated_at", "2015-03-19 05:17:09.128754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30ff2e28-cdf7-11e4-b001-705681abff85' AND "clubhouse_memberships"."organization_id" = '3109c0c2-cdf7-11e4-9ce3-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "30ff2e28-cdf7-11e4-b001-705681abff85"], ["organization_id", "3109c0c2-cdf7-11e4-9ce3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.140961"], ["updated_at", "2015-03-19 05:17:09.140961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$nEMURj6lGxi2hIc2pjwC/.p/INLlhOprWMLlZBuUy95gN1w1tTcHi"], ["created_at", "2015-03-19 05:17:09.147283"], ["updated_at", "2015-03-19 05:17:09.147283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.150492"], ["updated_at", "2015-03-19 05:17:09.150492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '310c8e42-cdf7-11e4-8259-705681abff85' AND "clubhouse_memberships"."organization_id" = '310d0ade-cdf7-11e4-9335-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "310c8e42-cdf7-11e4-8259-705681abff85"], ["organization_id", "310d0ade-cdf7-11e4-9335-705681abff85"], ["created_at", "2015-03-19 05:17:09.154364"], ["updated_at", "2015-03-19 05:17:09.154364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (1.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.196706' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cuKcQxQWRUzliCwPmca7Ger0masPOMKI0pLmlfWL_2M"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.210698"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.212980"], ["id", "310738b6-cdf7-11e4-859b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "30ff2e28-cdf7-11e4-b001-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "30ff2e28-cdf7-11e4-b001-705681abff85"]] Completed 200 OK in 54ms (Views: 4.3ms | ActiveRecord: 3.3ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$tL3GvSqPYVzQNeBHCktpwOALt/MblREC/5wogLIel2dydBhU3lJBC"], ["created_at", "2015-03-19 05:17:09.260392"], ["updated_at", "2015-03-19 05:17:09.260392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.262160"], ["user_id", "311dd1f2-cdf7-11e4-bb42-705681abff85"], ["created_at", "2015-03-19 05:17:09.263018"], ["updated_at", "2015-03-19 05:17:09.263018"], ["token", "FUhs_UUsUaEG3jxb1LpscFuP8HP0MT4N8GaHhGa4Ib4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.266863"], ["updated_at", "2015-03-19 05:17:09.266863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '311dd1f2-cdf7-11e4-bb42-705681abff85' AND "clubhouse_memberships"."organization_id" = '311ecda0-cdf7-11e4-b519-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "311dd1f2-cdf7-11e4-bb42-705681abff85"], ["organization_id", "311ecda0-cdf7-11e4-b519-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.273225"], ["updated_at", "2015-03-19 05:17:09.273225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$NI/ipAUPnFt5vNCXz97tWeV6o6DJqT3086hK6qlIEanmFI/bLFOcK"], ["created_at", "2015-03-19 05:17:09.278511"], ["updated_at", "2015-03-19 05:17:09.278511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.281997"], ["updated_at", "2015-03-19 05:17:09.281997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '31209acc-cdf7-11e4-9af1-705681abff85' AND "clubhouse_memberships"."organization_id" = '31211b1e-cdf7-11e4-b7e6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "31209acc-cdf7-11e4-9af1-705681abff85"], ["organization_id", "31211b1e-cdf7-11e4-b7e6-705681abff85"], ["created_at", "2015-03-19 05:17:09.285712"], ["updated_at", "2015-03-19 05:17:09.285712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$k3g9fyAk2VRqOq8kx9La4uyYY7rc7KwAcMEENS8OWSFpuNV.ApBfu"], ["created_at", "2015-03-19 05:17:09.297825"], ["updated_at", "2015-03-19 05:17:09.297825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.299474"], ["user_id", "312386d8-cdf7-11e4-bc32-705681abff85"], ["created_at", "2015-03-19 05:17:09.300323"], ["updated_at", "2015-03-19 05:17:09.300323"], ["token", "QPjvCP7qD5RVuSgzmAh8fIUQk9ASbS_JKqWU9DLq-eU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.304043"], ["updated_at", "2015-03-19 05:17:09.304043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '312386d8-cdf7-11e4-bc32-705681abff85' AND "clubhouse_memberships"."organization_id" = '31247b92-cdf7-11e4-b55a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "312386d8-cdf7-11e4-bc32-705681abff85"], ["organization_id", "31247b92-cdf7-11e4-b55a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.307653"], ["updated_at", "2015-03-19 05:17:09.307653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$W9FoEeF8j1tss6o0WmcmB.OFAN0k3MjTbgZBfD.XojrpIgH1Um1Dm"], ["created_at", "2015-03-19 05:17:09.318003"], ["updated_at", "2015-03-19 05:17:09.318003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.319823"], ["user_id", "31269d78-cdf7-11e4-90f6-705681abff85"], ["created_at", "2015-03-19 05:17:09.320743"], ["updated_at", "2015-03-19 05:17:09.320743"], ["token", "sL6K3sGceXU6fttS07niGtlhF8vGsdFc-_k96ii9EYU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.324487"], ["updated_at", "2015-03-19 05:17:09.324487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '31269d78-cdf7-11e4-90f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '312798e0-cdf7-11e4-91ce-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "31269d78-cdf7-11e4-90f6-705681abff85"], ["organization_id", "312798e0-cdf7-11e4-91ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.328596"], ["updated_at", "2015-03-19 05:17:09.328596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-6" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-6", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.335819' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sL6K3sGceXU6fttS07niGtlhF8vGsdFc-_k96ii9EYU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.339723"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.341899"], ["id", "31270e3e-cdf7-11e4-9de7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "31269d78-cdf7-11e4-90f6-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '31269d78-cdf7-11e4-90f6-705681abff85' LIMIT 1 [["organization_id", "312798e0-cdf7-11e4-91ce-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '312798e0-cdf7-11e4-91ce-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 28ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$k1sK164wfPvwApNNNirVE.Z5KjIQb5Q7tB12i6ZCERox63EVXlmhK"], ["created_at", "2015-03-19 05:17:09.368968"], ["updated_at", "2015-03-19 05:17:09.368968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.370543"], ["user_id", "312e604e-cdf7-11e4-843c-705681abff85"], ["created_at", "2015-03-19 05:17:09.371491"], ["updated_at", "2015-03-19 05:17:09.371491"], ["token", "aWhxvGSQb_3_iWQRkvL3PINSmcqJJX1F2Lt7RFNyysQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.374867"], ["updated_at", "2015-03-19 05:17:09.374867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '312e604e-cdf7-11e4-843c-705681abff85' AND "clubhouse_memberships"."organization_id" = '312f42de-cdf7-11e4-a844-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "312e604e-cdf7-11e4-843c-705681abff85"], ["organization_id", "312f42de-cdf7-11e4-a844-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.378442"], ["updated_at", "2015-03-19 05:17:09.378442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-7" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-7", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.382900' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aWhxvGSQb_3_iWQRkvL3PINSmcqJJX1F2Lt7RFNyysQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.384337"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.385283"], ["id", "312ec818-cdf7-11e4-afa6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-7"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "312e604e-cdf7-11e4-843c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '312e604e-cdf7-11e4-843c-705681abff85' LIMIT 1 [["organization_id", "312f42de-cdf7-11e4-a844-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '312f42de-cdf7-11e4-a844-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:17:09.391889"], ["id", "312f42de-cdf7-11e4-a844-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$4ixlVsrky5NXI4qjEjD1Z.0lfZTKKTHYMP.Tpo5pe2LL0HPbD3blK"], ["created_at", "2015-03-19 05:17:09.400244"], ["updated_at", "2015-03-19 05:17:09.400244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.402218"], ["user_id", "3133298a-cdf7-11e4-a4f5-705681abff85"], ["created_at", "2015-03-19 05:17:09.403028"], ["updated_at", "2015-03-19 05:17:09.403028"], ["token", "HfxFLygQzg4-vhhWD_uCuJAHVmYwe2aWZxYwPLE-ZPM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.406496"], ["updated_at", "2015-03-19 05:17:09.406496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3133298a-cdf7-11e4-a4f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '3134175a-cdf7-11e4-bf63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3133298a-cdf7-11e4-a4f5-705681abff85"], ["organization_id", "3134175a-cdf7-11e4-bf63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.409819"], ["updated_at", "2015-03-19 05:17:09.409819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$9qyJ93P2ur/R0czLUeWfSOfW/ot.fSz5l6ex3LilBpFCtfueIgSJS"], ["created_at", "2015-03-19 05:17:09.419918"], ["updated_at", "2015-03-19 05:17:09.419918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.421565"], ["user_id", "3136268a-cdf7-11e4-bad1-705681abff85"], ["created_at", "2015-03-19 05:17:09.422373"], ["updated_at", "2015-03-19 05:17:09.422373"], ["token", "4OWSfjwmtL55yyCgAkCESK-R0aeKmGgeNj35s6VurC8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.426227"], ["updated_at", "2015-03-19 05:17:09.426227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3136268a-cdf7-11e4-bad1-705681abff85' AND "clubhouse_memberships"."organization_id" = '3137212a-cdf7-11e4-acb2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3136268a-cdf7-11e4-bad1-705681abff85"], ["organization_id", "3137212a-cdf7-11e4-acb2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.429815"], ["updated_at", "2015-03-19 05:17:09.429815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.434546' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4OWSfjwmtL55yyCgAkCESK-R0aeKmGgeNj35s6VurC8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.435945"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.436896"], ["id", "31368cf6-cdf7-11e4-83cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$xL/tET3dA9yVmp1TJEMFReHsAcbS.LuNKi/WmRMY0TqOH/OT/bL2i"], ["created_at", "2015-03-19 05:17:09.445495"], ["updated_at", "2015-03-19 05:17:09.445495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.447233"], ["user_id", "313a101a-cdf7-11e4-b306-705681abff85"], ["created_at", "2015-03-19 05:17:09.448085"], ["updated_at", "2015-03-19 05:17:09.448085"], ["token", "kthSp8laj0c1LoRQTGlZ7Zi-OWUzYaNlAZWubUbbQGM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.452119"], ["updated_at", "2015-03-19 05:17:09.452119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '313a101a-cdf7-11e4-b306-705681abff85' AND "clubhouse_memberships"."organization_id" = '313b16cc-cdf7-11e4-8a9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "313a101a-cdf7-11e4-b306-705681abff85"], ["organization_id", "313b16cc-cdf7-11e4-8a9a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.456040"], ["updated_at", "2015-03-19 05:17:09.456040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-10" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.461112' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kthSp8laj0c1LoRQTGlZ7Zi-OWUzYaNlAZWubUbbQGM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.462492"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.463399"], ["id", "313a7780-cdf7-11e4-8b42-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "313a101a-cdf7-11e4-b306-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$bdLwbGDFaf2yM0We2CJ6Tu8t.k2Fj4rq0xWLRMsGjxsPHxdUcogmq"], ["created_at", "2015-03-19 05:17:09.472833"], ["updated_at", "2015-03-19 05:17:09.472833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.474752"], ["user_id", "313e40ea-cdf7-11e4-a52f-705681abff85"], ["created_at", "2015-03-19 05:17:09.475534"], ["updated_at", "2015-03-19 05:17:09.475534"], ["token", "20yrbSJ8ui8l3lhQh4jrn3VrARN1uNLBAdUBOnYNsvY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.479816"], ["updated_at", "2015-03-19 05:17:09.479816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '313e40ea-cdf7-11e4-a52f-705681abff85' AND "clubhouse_memberships"."organization_id" = '313f4a94-cdf7-11e4-82d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "313e40ea-cdf7-11e4-a52f-705681abff85"], ["organization_id", "313f4a94-cdf7-11e4-82d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.483271"], ["updated_at", "2015-03-19 05:17:09.483271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/313f4a94-cdf7-11e4-82d3-705681abff85" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"313f4a94-cdf7-11e4-82d3-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.488062' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "20yrbSJ8ui8l3lhQh4jrn3VrARN1uNLBAdUBOnYNsvY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.496356"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.497377"], ["id", "313eb430-cdf7-11e4-b75d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "313f4a94-cdf7-11e4-82d3-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "313e40ea-cdf7-11e4-a52f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '313e40ea-cdf7-11e4-a52f-705681abff85' LIMIT 1 [["organization_id", "313f4a94-cdf7-11e4-82d3-705681abff85"]] Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$8.D1TppQyHVpnyfYKo5lOOdqag3qIo8lMVXNlXArUqGKPHvPhZYwO"], ["created_at", "2015-03-19 05:17:09.508782"], ["updated_at", "2015-03-19 05:17:09.508782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.510412"], ["user_id", "3143b4ee-cdf7-11e4-944e-705681abff85"], ["created_at", "2015-03-19 05:17:09.511184"], ["updated_at", "2015-03-19 05:17:09.511184"], ["token", "fr9dmnpY5bGLK-CM3if35iXtn9H97RqAB0Xk0PNvW84"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.514489"], ["updated_at", "2015-03-19 05:17:09.514489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3143b4ee-cdf7-11e4-944e-705681abff85' AND "clubhouse_memberships"."organization_id" = '31449148-cdf7-11e4-80d6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3143b4ee-cdf7-11e4-944e-705681abff85"], ["organization_id", "31449148-cdf7-11e4-80d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.517815"], ["updated_at", "2015-03-19 05:17:09.517815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$UH.rR2aOzzFtAJ7O6CIfTeh9RWZ2slupCNoyUJWyikJvlQDYIk4L2"], ["created_at", "2015-03-19 05:17:09.528506"], ["updated_at", "2015-03-19 05:17:09.528506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.530135"], ["user_id", "3146b90a-cdf7-11e4-b48e-705681abff85"], ["created_at", "2015-03-19 05:17:09.530947"], ["updated_at", "2015-03-19 05:17:09.530947"], ["token", "GG5QC5LjWmT_l-UfF4WLsAP9Zc9PBK0Vbpt9KEOqH6g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.534388"], ["updated_at", "2015-03-19 05:17:09.534388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3146b90a-cdf7-11e4-b48e-705681abff85' AND "clubhouse_memberships"."organization_id" = '31479a82-cdf7-11e4-ae85-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3146b90a-cdf7-11e4-b48e-705681abff85"], ["organization_id", "31479a82-cdf7-11e4-ae85-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.537671"], ["updated_at", "2015-03-19 05:17:09.537671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$UPXTl6zQ2OYNdSIXJE6FoOpmfbwoIDovEroZSzyZNCHRB13zjfCvS"], ["created_at", "2015-03-19 05:17:09.550080"], ["updated_at", "2015-03-19 05:17:09.550080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.551683"], ["user_id", "314a031c-cdf7-11e4-958c-705681abff85"], ["created_at", "2015-03-19 05:17:09.552467"], ["updated_at", "2015-03-19 05:17:09.552467"], ["token", "BvOGEJM0wCV6E7wdXvXWb4aus6Izn0BS1KlpIHExuEk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.555793"], ["updated_at", "2015-03-19 05:17:09.555793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '314a031c-cdf7-11e4-958c-705681abff85' AND "clubhouse_memberships"."organization_id" = '314adf08-cdf7-11e4-8150-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "314a031c-cdf7-11e4-958c-705681abff85"], ["organization_id", "314adf08-cdf7-11e4-8150-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.559042"], ["updated_at", "2015-03-19 05:17:09.559042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/314adf08-cdf7-11e4-8150-705681abff85" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"314adf08-cdf7-11e4-8150-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.563947' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BvOGEJM0wCV6E7wdXvXWb4aus6Izn0BS1KlpIHExuEk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.565442"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.566403"], ["id", "314a63e8-cdf7-11e4-9a55-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "314adf08-cdf7-11e4-8150-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "314a031c-cdf7-11e4-958c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '314a031c-cdf7-11e4-958c-705681abff85' LIMIT 1 [["organization_id", "314adf08-cdf7-11e4-8150-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '314adf08-cdf7-11e4-8150-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$SpE2COXCnd4ut3SGEn3L6.S26I7K5Pwu05uizzewrlhWX/JOS.cui"], ["created_at", "2015-03-19 05:17:09.579953"], ["updated_at", "2015-03-19 05:17:09.579953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.581988"], ["user_id", "314e9940-cdf7-11e4-bef1-705681abff85"], ["created_at", "2015-03-19 05:17:09.582843"], ["updated_at", "2015-03-19 05:17:09.582843"], ["token", "d4hbv2DzwCafRqS18ZSi4UzgeKJAZdEo5p9i0fMUaj4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.586211"], ["updated_at", "2015-03-19 05:17:09.586211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '314e9940-cdf7-11e4-bef1-705681abff85' AND "clubhouse_memberships"."organization_id" = '314f81c0-cdf7-11e4-a1f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "314e9940-cdf7-11e4-bef1-705681abff85"], ["organization_id", "314f81c0-cdf7-11e4-a1f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.589555"], ["updated_at", "2015-03-19 05:17:09.589555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/314f81c0-cdf7-11e4-a1f5-705681abff85" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"314f81c0-cdf7-11e4-a1f5-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.595002' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "d4hbv2DzwCafRqS18ZSi4UzgeKJAZdEo5p9i0fMUaj4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.596985"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.599133"], ["id", "314f0a38-cdf7-11e4-a254-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "314f81c0-cdf7-11e4-a1f5-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "314e9940-cdf7-11e4-bef1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '314e9940-cdf7-11e4-bef1-705681abff85' LIMIT 1 [["organization_id", "314f81c0-cdf7-11e4-a1f5-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '314f81c0-cdf7-11e4-a1f5-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:17:09.615955"], ["id", "314f81c0-cdf7-11e4-a1f5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 24ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$AqhyGWlH01N2QLZJURBz6uZZejaS8mPpY6fuixSkQEMoqpNHuAuRW"], ["created_at", "2015-03-19 05:17:09.625696"], ["updated_at", "2015-03-19 05:17:09.625696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.628502"], ["user_id", "3155a348-cdf7-11e4-a358-705681abff85"], ["created_at", "2015-03-19 05:17:09.630910"], ["updated_at", "2015-03-19 05:17:09.630910"], ["token", "FVdHzxlTzCaomG7vVzRCVwOMR5vkof8-RknBQiU5S0Y"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.641836"], ["updated_at", "2015-03-19 05:17:09.641836"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3155a348-cdf7-11e4-a358-705681abff85' AND "clubhouse_memberships"."organization_id" = '3158468e-cdf7-11e4-8e2c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3155a348-cdf7-11e4-a358-705681abff85"], ["organization_id", "3158468e-cdf7-11e4-8e2c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.651592"], ["updated_at", "2015-03-19 05:17:09.651592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$cRI2JSqrluP07T17DPNWeeILU6BrUA1hFNP1TdPD0J/hQoCNM1nbi"], ["created_at", "2015-03-19 05:17:09.664496"], ["updated_at", "2015-03-19 05:17:09.664496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.667164"], ["user_id", "315b8b00-cdf7-11e4-9b9b-705681abff85"], ["created_at", "2015-03-19 05:17:09.668365"], ["updated_at", "2015-03-19 05:17:09.668365"], ["token", "qkqc4DA1J-MfIlw6qu5LfvRb4VghcRMoH64hQXcToJY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.672532"], ["updated_at", "2015-03-19 05:17:09.672532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '315b8b00-cdf7-11e4-9b9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '315caf94-cdf7-11e4-a95b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "315b8b00-cdf7-11e4-9b9b-705681abff85"], ["organization_id", "315caf94-cdf7-11e4-a95b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.676031"], ["updated_at", "2015-03-19 05:17:09.676031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (1.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.701824' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qkqc4DA1J-MfIlw6qu5LfvRb4VghcRMoH64hQXcToJY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.708592"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.714594"], ["id", "315c289e-cdf7-11e4-8a11-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "315b8b00-cdf7-11e4-9b9b-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 33ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$uav1z9gIMzL/Q4C9EiG64O2Bepocm0eK4Q0Kd1CWJry4lfe1BTkti"], ["created_at", "2015-03-19 05:17:09.739898"], ["updated_at", "2015-03-19 05:17:09.739898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.741583"], ["user_id", "3166fbac-cdf7-11e4-86df-705681abff85"], ["created_at", "2015-03-19 05:17:09.742383"], ["updated_at", "2015-03-19 05:17:09.742383"], ["token", "7zDQCLGs3buxDJecG9vlNw1cOmNGqAGNz1j3EwvIG0M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.745885"], ["updated_at", "2015-03-19 05:17:09.745885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3166fbac-cdf7-11e4-86df-705681abff85' AND "clubhouse_memberships"."organization_id" = '3167e4c2-cdf7-11e4-b552-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3166fbac-cdf7-11e4-86df-705681abff85"], ["organization_id", "3167e4c2-cdf7-11e4-b552-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.750217"], ["updated_at", "2015-03-19 05:17:09.750217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.755802' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7zDQCLGs3buxDJecG9vlNw1cOmNGqAGNz1j3EwvIG0M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.757940"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.759215"], ["id", "31675f98-cdf7-11e4-9c92-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3166fbac-cdf7-11e4-86df-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.766497"], ["updated_at", "2015-03-19 05:17:09.766497"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "316b1642-cdf7-11e4-a06f-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3166fbac-cdf7-11e4-86df-705681abff85' AND "clubhouse_memberships"."organization_id" = '316b1642-cdf7-11e4-a06f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3166fbac-cdf7-11e4-86df-705681abff85"], ["admin", "t"], ["organization_id", "316b1642-cdf7-11e4-a06f-705681abff85"], ["created_at", "2015-03-19 05:17:09.775550"], ["updated_at", "2015-03-19 05:17:09.775550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 32ms (Views: 1.6ms | ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$AsXzl4uXZZgNaO88Rme/n.dSNbJNaPzparJ6pgdLkFRT.khDBLUZy"], ["created_at", "2015-03-19 05:17:09.797946"], ["updated_at", "2015-03-19 05:17:09.797946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.800703"], ["user_id", "316fe65e-cdf7-11e4-9fd3-705681abff85"], ["created_at", "2015-03-19 05:17:09.802044"], ["updated_at", "2015-03-19 05:17:09.802044"], ["token", "KHZTOcIxou1QiltiUPsgNN8oiALnVovf8G6w-Hq2R1c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.809414"], ["updated_at", "2015-03-19 05:17:09.809414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '316fe65e-cdf7-11e4-9fd3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3171acfa-cdf7-11e4-a01e-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "316fe65e-cdf7-11e4-9fd3-705681abff85"], ["organization_id", "3171acfa-cdf7-11e4-a01e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.815089"], ["updated_at", "2015-03-19 05:17:09.815089"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-19" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-19", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.824456' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KHZTOcIxou1QiltiUPsgNN8oiALnVovf8G6w-Hq2R1c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.828821"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.829862"], ["id", "3170a3f0-cdf7-11e4-be38-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-19"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "316fe65e-cdf7-11e4-9fd3-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '316fe65e-cdf7-11e4-9fd3-705681abff85' LIMIT 1 [["organization_id", "3171acfa-cdf7-11e4-a01e-705681abff85"]] Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$vKRkqLCEpha9dvT5/CkW4u/tIRxugC6/Y8iNQPKHdfmOss1a6veVK"], ["created_at", "2015-03-19 05:17:09.847989"], ["updated_at", "2015-03-19 05:17:09.847989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.850298"], ["user_id", "31777e82-cdf7-11e4-8e38-705681abff85"], ["created_at", "2015-03-19 05:17:09.851695"], ["updated_at", "2015-03-19 05:17:09.851695"], ["token", "BMocLizSATVMxFEHqS0vKbri0BNIpdPaeTF-DneGqfI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.856189"], ["updated_at", "2015-03-19 05:17:09.856189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '31777e82-cdf7-11e4-8e38-705681abff85' AND "clubhouse_memberships"."organization_id" = '3178c01c-cdf7-11e4-b77c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "31777e82-cdf7-11e4-8e38-705681abff85"], ["organization_id", "3178c01c-cdf7-11e4-b77c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.861749"], ["updated_at", "2015-03-19 05:17:09.861749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$S9g8.Qs2kHlfBB359Bze4Ot9n25cztKiBuJD4ELoZ0wq8QWYZGwfK"], ["created_at", "2015-03-19 05:17:09.880712"], ["updated_at", "2015-03-19 05:17:09.880712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.884378"], ["user_id", "317ca100-cdf7-11e4-9486-705681abff85"], ["created_at", "2015-03-19 05:17:09.885717"], ["updated_at", "2015-03-19 05:17:09.885717"], ["token", "7_k_IWoMSRowRrImOOT8JEBN61xZAFyVcltN2qdQ_JA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.891101"], ["updated_at", "2015-03-19 05:17:09.891101"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '317ca100-cdf7-11e4-9486-705681abff85' AND "clubhouse_memberships"."organization_id" = '317e6a44-cdf7-11e4-9fff-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "317ca100-cdf7-11e4-9486-705681abff85"], ["organization_id", "317e6a44-cdf7-11e4-9fff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.898152"], ["updated_at", "2015-03-19 05:17:09.898152"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/317e6a44-cdf7-11e4-9fff-705681abff85" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"317e6a44-cdf7-11e4-9fff-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.906628' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7_k_IWoMSRowRrImOOT8JEBN61xZAFyVcltN2qdQ_JA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.909050"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.911335"], ["id", "317d5956-cdf7-11e4-8dd2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "317e6a44-cdf7-11e4-9fff-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "317ca100-cdf7-11e4-9486-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '317ca100-cdf7-11e4-9486-705681abff85' LIMIT 1 [["organization_id", "317e6a44-cdf7-11e4-9fff-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "317e6a44-cdf7-11e4-9fff-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 15ms (ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$6iq8Qk0cdAjro2b7qWhcLuFnXdA3vOvyoeW2jmUyd/5NtZYc8g4e."], ["created_at", "2015-03-19 05:17:09.929037"], ["updated_at", "2015-03-19 05:17:09.929037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.931874"], ["user_id", "3183f00e-cdf7-11e4-a539-705681abff85"], ["created_at", "2015-03-19 05:17:09.933132"], ["updated_at", "2015-03-19 05:17:09.933132"], ["token", "t0OpCFFqjq_H9S93JJVOk5beufKXYQTU7j1-UtlHGHo"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.939156"], ["updated_at", "2015-03-19 05:17:09.939156"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3183f00e-cdf7-11e4-a539-705681abff85' AND "clubhouse_memberships"."organization_id" = '31856916-cdf7-11e4-a32c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3183f00e-cdf7-11e4-a539-705681abff85"], ["organization_id", "31856916-cdf7-11e4-a32c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.944615"], ["updated_at", "2015-03-19 05:17:09.944615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.7ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$XYmdpHyAt.dUy5KNKcGau.GSsu48rgVFHtpmC29QPu6vYxMdVYeZi"], ["created_at", "2015-03-19 05:17:09.963606"], ["updated_at", "2015-03-19 05:17:09.963606"]]  (1.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:09.968258"], ["user_id", "318932b2-cdf7-11e4-bf69-705681abff85"], ["created_at", "2015-03-19 05:17:09.969846"], ["updated_at", "2015-03-19 05:17:09.969846"], ["token", "esuPCYZAcIZ-KxRLRrFKGHq1EXj9gBGnWp78SXXe1WY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:09.974457"], ["updated_at", "2015-03-19 05:17:09.974457"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '318932b2-cdf7-11e4-bf69-705681abff85' AND "clubhouse_memberships"."organization_id" = '318acdac-cdf7-11e4-8a58-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "318932b2-cdf7-11e4-bf69-705681abff85"], ["organization_id", "318acdac-cdf7-11e4-8a58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:09.979567"], ["updated_at", "2015-03-19 05:17:09.979567"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-23" for 127.0.0.1 at 2015-03-18 22:17:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-23", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:17:09.991653' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "esuPCYZAcIZ-KxRLRrFKGHq1EXj9gBGnWp78SXXe1WY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:17:09.993452"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:17:09.994837"], ["id", "318a2046-cdf7-11e4-be42-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "318932b2-cdf7-11e4-bf69-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '318932b2-cdf7-11e4-bf69-705681abff85' LIMIT 1 [["organization_id", "318acdac-cdf7-11e4-8a58-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "318acdac-cdf7-11e4-8a58-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$FTUkNOjtseEe2LQRv4q5P.D4Aw.3GOAH/DjazPUvrIxZ5gn75FD/a"], ["created_at", "2015-03-19 05:17:10.010948"], ["updated_at", "2015-03-19 05:17:10.010948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:17:10.012869"], ["user_id", "319058f8-cdf7-11e4-9ce0-705681abff85"], ["created_at", "2015-03-19 05:17:10.013666"], ["updated_at", "2015-03-19 05:17:10.013666"], ["token", "yU1Au6c-L9VjuYXcACL9zHPkyFpz-TqqhHDEeOs7BpI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:17:10.018003"], ["updated_at", "2015-03-19 05:17:10.018003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '319058f8-cdf7-11e4-9ce0-705681abff85' AND "clubhouse_memberships"."organization_id" = '319281e6-cdf7-11e4-b307-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "319058f8-cdf7-11e4-9ce0-705681abff85"], ["organization_id", "319281e6-cdf7-11e4-b307-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:17:10.029387"], ["updated_at", "2015-03-19 05:17:10.029387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:17:10 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (43.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (9.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$bZveQ0IzLpCkxOFrUdEvI.pJd.2n/K.fMZk6bZJ.tW8SDdx.X3RIe"], ["created_at", "2015-03-19 05:18:00.625261"], ["updated_at", "2015-03-19 05:18:00.625261"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (4.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:00.685007"], ["user_id", "4fbcd1ee-cdf7-11e4-bea3-705681abff85"], ["created_at", "2015-03-19 05:18:00.693540"], ["updated_at", "2015-03-19 05:18:00.693540"], ["token", "O95eEzbxnzWojn5yDD9wxVk5nGwXIYDNFSeYvyMEaIk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:00.707802"], ["updated_at", "2015-03-19 05:18:00.707802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fbcd1ee-cdf7-11e4-bea3-705681abff85' AND "clubhouse_memberships"."organization_id" = '4fc81824-cdf7-11e4-9fb2-705681abff85') LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fbcd1ee-cdf7-11e4-bea3-705681abff85"], ["organization_id", "4fc81824-cdf7-11e4-9fb2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:00.719269"], ["updated_at", "2015-03-19 05:18:00.719269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$LYhhnxZYPMiegMFhkRz.G.M4HeiryNwhfMVaaUPT0z5mQVePydqvm"], ["created_at", "2015-03-19 05:18:00.765034"], ["updated_at", "2015-03-19 05:18:00.765034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:00.766769"], ["user_id", "4fd0cd98-cdf7-11e4-a263-705681abff85"], ["created_at", "2015-03-19 05:18:00.767583"], ["updated_at", "2015-03-19 05:18:00.767583"], ["token", "EJ4d8xInJ5I1Vs3NmdWCF0hqsXlB_oEQMLk7GqUrBKk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:00.771667"], ["updated_at", "2015-03-19 05:18:00.771667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fd0cd98-cdf7-11e4-a263-705681abff85' AND "clubhouse_memberships"."organization_id" = '4fd1cd1a-cdf7-11e4-b938-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fd0cd98-cdf7-11e4-a263-705681abff85"], ["organization_id", "4fd1cd1a-cdf7-11e4-b938-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:00.775456"], ["updated_at", "2015-03-19 05:18:00.775456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/4fd1cd1a-cdf7-11e4-b938-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"4fd1cd1a-cdf7-11e4-b938-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:00.783792' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EJ4d8xInJ5I1Vs3NmdWCF0hqsXlB_oEQMLk7GqUrBKk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:00.793400"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:00.794678"], ["id", "4fd1452a-cdf7-11e4-b219-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4fd1cd1a-cdf7-11e4-b938-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4fd0cd98-cdf7-11e4-a263-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4fd0cd98-cdf7-11e4-a263-705681abff85' LIMIT 1 [["organization_id", "4fd1cd1a-cdf7-11e4-b938-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4fd1cd1a-cdf7-11e4-b938-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 45ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$vjhDGtTh9UKUYzRgfOL3FORaXqY3wZS9OIVMzU5tWI/P2wOE70a2u"], ["created_at", "2015-03-19 05:18:00.835142"], ["updated_at", "2015-03-19 05:18:00.835142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:00.836778"], ["user_id", "4fdb7e64-cdf7-11e4-976b-705681abff85"], ["created_at", "2015-03-19 05:18:00.837729"], ["updated_at", "2015-03-19 05:18:00.837729"], ["token", "TfZF8i7-d-SFbF5QiPLV8JYAB9Pm37Cc8YaHMxnOuD8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:00.841633"], ["updated_at", "2015-03-19 05:18:00.841633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fdb7e64-cdf7-11e4-976b-705681abff85' AND "clubhouse_memberships"."organization_id" = '4fdc807a-cdf7-11e4-a452-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fdb7e64-cdf7-11e4-976b-705681abff85"], ["organization_id", "4fdc807a-cdf7-11e4-a452-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:00.845244"], ["updated_at", "2015-03-19 05:18:00.845244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/4fdc807a-cdf7-11e4-a452-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"4fdc807a-cdf7-11e4-a452-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:00.850104' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TfZF8i7-d-SFbF5QiPLV8JYAB9Pm37Cc8YaHMxnOuD8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:00.851529"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:00.852505"], ["id", "4fdbea02-cdf7-11e4-baec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4fdc807a-cdf7-11e4-a452-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4fdb7e64-cdf7-11e4-976b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4fdb7e64-cdf7-11e4-976b-705681abff85' LIMIT 1 [["organization_id", "4fdc807a-cdf7-11e4-a452-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '4fdc807a-cdf7-11e4-a452-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:18:00.859355"], ["id", "4fdc807a-cdf7-11e4-a452-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$qmToUmeRrM6zO.u56ZyqF.0Z9HfDoOEpbc.zI8PZTfAg.fMIxMeXG"], ["created_at", "2015-03-19 05:18:00.871996"], ["updated_at", "2015-03-19 05:18:00.871996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:00.873822"], ["user_id", "4fe12364-cdf7-11e4-ae2c-705681abff85"], ["created_at", "2015-03-19 05:18:00.874624"], ["updated_at", "2015-03-19 05:18:00.874624"], ["token", "NQ5dsIuR-O1_Onnb9vq_pQazt9Fvsf4C1DqtPP9EWBA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:00.878311"], ["updated_at", "2015-03-19 05:18:00.878311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fe12364-cdf7-11e4-ae2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '4fe213aa-cdf7-11e4-81bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fe12364-cdf7-11e4-ae2c-705681abff85"], ["organization_id", "4fe213aa-cdf7-11e4-81bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:00.881794"], ["updated_at", "2015-03-19 05:18:00.881794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:00 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$NoU/cgjmIUHJfqO1czQB8.O87EubFaXa44B9ULLGAXwuBBeYTIREG"], ["created_at", "2015-03-19 05:18:00.891825"], ["updated_at", "2015-03-19 05:18:00.891825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:00.893466"], ["user_id", "4fe42654-cdf7-11e4-83a1-705681abff85"], ["created_at", "2015-03-19 05:18:00.894281"], ["updated_at", "2015-03-19 05:18:00.894281"], ["token", "8Yd9gIhVvyo1Jr3ytSnPrGVmJg-s_HBIKnrHN-2VC48"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:00.898194"], ["updated_at", "2015-03-19 05:18:00.898194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fe42654-cdf7-11e4-83a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '4fe51f96-cdf7-11e4-a6e8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fe42654-cdf7-11e4-83a1-705681abff85"], ["organization_id", "4fe51f96-cdf7-11e4-a6e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:00.902015"], ["updated_at", "2015-03-19 05:18:00.902015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:18:00 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:00.908175' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8Yd9gIhVvyo1Jr3ytSnPrGVmJg-s_HBIKnrHN-2VC48"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:00.909771"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:00.910842"], ["id", "4fe48ebe-cdf7-11e4-abdc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (4.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ehOKWDEpKJD1Ni.kl/N4rugJfrWpnnfx.8d.QzHQ2DkuYNDOyz4cy"], ["created_at", "2015-03-19 05:18:00.920437"], ["updated_at", "2015-03-19 05:18:00.920437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:00.926767"], ["user_id", "4fe8977a-cdf7-11e4-be92-705681abff85"], ["created_at", "2015-03-19 05:18:00.927709"], ["updated_at", "2015-03-19 05:18:00.927709"], ["token", "6j6kl23cirIToHhSb-8qxzSzyxe0_Q2lV5QF_F7Vjn4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:00.931991"], ["updated_at", "2015-03-19 05:18:00.931991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fe8977a-cdf7-11e4-be92-705681abff85' AND "clubhouse_memberships"."organization_id" = '4fea4976-cdf7-11e4-9457-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fe8977a-cdf7-11e4-be92-705681abff85"], ["organization_id", "4fea4976-cdf7-11e4-9457-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:00.936136"], ["updated_at", "2015-03-19 05:18:00.936136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-6" for 127.0.0.1 at 2015-03-18 22:18:00 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:00.940911' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6j6kl23cirIToHhSb-8qxzSzyxe0_Q2lV5QF_F7Vjn4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:00.942351"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:00.943341"], ["id", "4fe9b09c-cdf7-11e4-975a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4fe8977a-cdf7-11e4-be92-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$LD/H/Ao4PfggTnCn2raViOFbvAdDgGEM5rPVjvQ0ei8.ztE6nSYJa"], ["created_at", "2015-03-19 05:18:00.952211"], ["updated_at", "2015-03-19 05:18:00.952211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:00.954260"], ["user_id", "4fed5cba-cdf7-11e4-9e68-705681abff85"], ["created_at", "2015-03-19 05:18:00.955314"], ["updated_at", "2015-03-19 05:18:00.955314"], ["token", "fRy-60l8BB0xjBY46hY2t6fiKrMzFjoh1IjoBEtxZuE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:00.959057"], ["updated_at", "2015-03-19 05:18:00.959057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fed5cba-cdf7-11e4-9e68-705681abff85' AND "clubhouse_memberships"."organization_id" = '4fee67fe-cdf7-11e4-bf3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fed5cba-cdf7-11e4-9e68-705681abff85"], ["organization_id", "4fee67fe-cdf7-11e4-bf3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:00.962662"], ["updated_at", "2015-03-19 05:18:00.962662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$77quDHbLTTLhcbvIhQgQwOiuHsg020VxucLsM7j.raGqapamcryIG"], ["created_at", "2015-03-19 05:18:00.973710"], ["updated_at", "2015-03-19 05:18:00.973710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:00.975376"], ["user_id", "4ff0a348-cdf7-11e4-8551-705681abff85"], ["created_at", "2015-03-19 05:18:00.976147"], ["updated_at", "2015-03-19 05:18:00.976147"], ["token", "9curgCQ76A-nfexHjX74TnFzHBh3FJSvSyPsSsa-Sss"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:00.980054"], ["updated_at", "2015-03-19 05:18:00.980054"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ff0a348-cdf7-11e4-8551-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ff1a158-cdf7-11e4-9f11-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ff0a348-cdf7-11e4-8551-705681abff85"], ["organization_id", "4ff1a158-cdf7-11e4-9f11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:00.984660"], ["updated_at", "2015-03-19 05:18:00.984660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:00.990148' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9curgCQ76A-nfexHjX74TnFzHBh3FJSvSyPsSsa-Sss"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:00.991710"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:00.992852"], ["id", "4ff108b0-cdf7-11e4-a897-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4ff0a348-cdf7-11e4-8551-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 23ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$UDaTs4Xb0lYWQFQ4FGtu6e2NIFt/QoSAeCkzxoUSNY9bdsLwSv6Dy"], ["created_at", "2015-03-19 05:18:01.018041"], ["updated_at", "2015-03-19 05:18:01.018041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.020796"], ["user_id", "4ff772b8-cdf7-11e4-a185-705681abff85"], ["created_at", "2015-03-19 05:18:01.021680"], ["updated_at", "2015-03-19 05:18:01.021680"], ["token", "GIwwcccGpLcQXeWHCZYL5nVGN5GkmV9QXMn9VJWgnM4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.025384"], ["updated_at", "2015-03-19 05:18:01.025384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ff772b8-cdf7-11e4-a185-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ff887e8-cdf7-11e4-abd0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ff772b8-cdf7-11e4-a185-705681abff85"], ["organization_id", "4ff887e8-cdf7-11e4-abd0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.028960"], ["updated_at", "2015-03-19 05:18:01.028960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:01.033809' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GIwwcccGpLcQXeWHCZYL5nVGN5GkmV9QXMn9VJWgnM4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:01.035242"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:01.036342"], ["id", "4ff7fe22-cdf7-11e4-af59-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4ff772b8-cdf7-11e4-a185-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.042451"], ["updated_at", "2015-03-19 05:18:01.042451"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4ffb25f2-cdf7-11e4-b3f7-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ff772b8-cdf7-11e4-a185-705681abff85' AND "clubhouse_memberships"."organization_id" = '4ffb25f2-cdf7-11e4-b3f7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ff772b8-cdf7-11e4-a185-705681abff85"], ["admin", "t"], ["organization_id", "4ffb25f2-cdf7-11e4-b3f7-705681abff85"], ["created_at", "2015-03-19 05:18:01.047771"], ["updated_at", "2015-03-19 05:18:01.047771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.6ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$VXC.pK72b92G0xLIGWOkeuZyo5jk.x.wEKIyaFONHlUvWjtCQB3B2"], ["created_at", "2015-03-19 05:18:01.058265"], ["updated_at", "2015-03-19 05:18:01.058265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.068165"], ["user_id", "4ffebfc8-cdf7-11e4-85f5-705681abff85"], ["created_at", "2015-03-19 05:18:01.069046"], ["updated_at", "2015-03-19 05:18:01.069046"], ["token", "JYTQZvD6mdgCNCdoJCeTpicoT1Xg_81tbMkPw4XanTw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.073875"], ["updated_at", "2015-03-19 05:18:01.073875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ffebfc8-cdf7-11e4-85f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '4fffec2c-cdf7-11e4-a84c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ffebfc8-cdf7-11e4-85f5-705681abff85"], ["organization_id", "4fffec2c-cdf7-11e4-a84c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.077551"], ["updated_at", "2015-03-19 05:18:01.077551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-10" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:01.082830' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JYTQZvD6mdgCNCdoJCeTpicoT1Xg_81tbMkPw4XanTw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:01.084356"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:01.085337"], ["id", "4fff4678-cdf7-11e4-8015-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4ffebfc8-cdf7-11e4-85f5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ffebfc8-cdf7-11e4-85f5-705681abff85' LIMIT 1 [["organization_id", "4fffec2c-cdf7-11e4-a84c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "4fffec2c-cdf7-11e4-a84c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$.IzQH3wayXbSRO7SEPPlAe37ODl3IETG3MQMk4P/pBNmA.hVCsF3q"], ["created_at", "2015-03-19 05:18:01.097753"], ["updated_at", "2015-03-19 05:18:01.097753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.099349"], ["user_id", "50038fee-cdf7-11e4-a772-705681abff85"], ["created_at", "2015-03-19 05:18:01.100136"], ["updated_at", "2015-03-19 05:18:01.100136"], ["token", "jTGRQDM5dDb994_XVwQF7kZwHFzf4-Iag4AM65jiMc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.103483"], ["updated_at", "2015-03-19 05:18:01.103483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50038fee-cdf7-11e4-a772-705681abff85' AND "clubhouse_memberships"."organization_id" = '50046cc0-cdf7-11e4-90cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "50038fee-cdf7-11e4-a772-705681abff85"], ["organization_id", "50046cc0-cdf7-11e4-90cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.106788"], ["updated_at", "2015-03-19 05:18:01.106788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$f2hHsFd5AvTbPmkmpvZCROtm.RDfYui.aFaiANus4k86.F.ma5Eca"], ["created_at", "2015-03-19 05:18:01.116820"], ["updated_at", "2015-03-19 05:18:01.116820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.118536"], ["user_id", "50067b96-cdf7-11e4-9904-705681abff85"], ["created_at", "2015-03-19 05:18:01.119312"], ["updated_at", "2015-03-19 05:18:01.119312"], ["token", "6xQ8tV5Umc7t8X_mfDHQ520UhJaYxqnkehX791bH3TQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (3.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.122714"], ["updated_at", "2015-03-19 05:18:01.122714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50067b96-cdf7-11e4-9904-705681abff85' AND "clubhouse_memberships"."organization_id" = '50075ba6-cdf7-11e4-b69a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "50067b96-cdf7-11e4-9904-705681abff85"], ["organization_id", "50075ba6-cdf7-11e4-b69a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.130291"], ["updated_at", "2015-03-19 05:18:01.130291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-12" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-12", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:01.135249' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6xQ8tV5Umc7t8X_mfDHQ520UhJaYxqnkehX791bH3TQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:01.136687"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:01.138061"], ["id", "5006e068-cdf7-11e4-82f5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "50067b96-cdf7-11e4-9904-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '50067b96-cdf7-11e4-9904-705681abff85' LIMIT 1 [["organization_id", "50075ba6-cdf7-11e4-b69a-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$UxV0HAI4RRbwyoFgSR8oGOnfNIeEi3svWaJKIUfDwmxhXQLceVqcC"], ["created_at", "2015-03-19 05:18:01.149165"], ["updated_at", "2015-03-19 05:18:01.149165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.150718"], ["user_id", "500b65d4-cdf7-11e4-b770-705681abff85"], ["created_at", "2015-03-19 05:18:01.151496"], ["updated_at", "2015-03-19 05:18:01.151496"], ["token", "ugNQk1wba2oUKWt8JVVYv9FdC118IN8DlyHboiOvkEA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.154863"], ["updated_at", "2015-03-19 05:18:01.154863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '500b65d4-cdf7-11e4-b770-705681abff85' AND "clubhouse_memberships"."organization_id" = '500c44a4-cdf7-11e4-95d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "500b65d4-cdf7-11e4-b770-705681abff85"], ["organization_id", "500c44a4-cdf7-11e4-95d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.158406"], ["updated_at", "2015-03-19 05:18:01.158406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ZkPXGIvOpiH7oamD4T7UFegX3gAtNaADD/hDF985obtmDCV9RlKMS"], ["created_at", "2015-03-19 05:18:01.168005"], ["updated_at", "2015-03-19 05:18:01.168005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.169735"], ["user_id", "500e4c90-cdf7-11e4-88fa-705681abff85"], ["created_at", "2015-03-19 05:18:01.170572"], ["updated_at", "2015-03-19 05:18:01.170572"], ["token", "EstwnUGZHzKBacYdulkCXA8SvwSVX28RZlNMcEWgP-0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.173947"], ["updated_at", "2015-03-19 05:18:01.173947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '500e4c90-cdf7-11e4-88fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '500f2caa-cdf7-11e4-b39e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "500e4c90-cdf7-11e4-88fa-705681abff85"], ["organization_id", "500f2caa-cdf7-11e4-b39e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.177105"], ["updated_at", "2015-03-19 05:18:01.177105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.0ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$w768Oo2aKNi22.LjGuAwXecwNDO0v8DNWYNyUHV20eZkpLG8/islS"], ["created_at", "2015-03-19 05:18:01.204435"], ["updated_at", "2015-03-19 05:18:01.204435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (3.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.211693"], ["updated_at", "2015-03-19 05:18:01.211693"]]  (1.8ms) RELEASE SAVEPOINT active_record_1  (2.0ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (8.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5013f0d2-cdf7-11e4-a31c-705681abff85' AND "clubhouse_memberships"."organization_id" = '501540f4-cdf7-11e4-bdb5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5013f0d2-cdf7-11e4-a31c-705681abff85"], ["organization_id", "501540f4-cdf7-11e4-bdb5-705681abff85"], ["created_at", "2015-03-19 05:18:01.232296"], ["updated_at", "2015-03-19 05:18:01.232296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:01.243343' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EstwnUGZHzKBacYdulkCXA8SvwSVX28RZlNMcEWgP-0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:01.245626"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:01.247459"], ["id", "500eb270-cdf7-11e4-9caa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "500e4c90-cdf7-11e4-88fa-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "500e4c90-cdf7-11e4-88fa-705681abff85"]] Completed 200 OK in 16ms (Views: 4.3ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$UFdn.9QfeiaxG51yoB0RY.Q7/R/SfGWjL2pl7uvk0.idCoZwkghZW"], ["created_at", "2015-03-19 05:18:01.267330"], ["updated_at", "2015-03-19 05:18:01.267330"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.269241"], ["user_id", "501d71b6-cdf7-11e4-8d4d-705681abff85"], ["created_at", "2015-03-19 05:18:01.270374"], ["updated_at", "2015-03-19 05:18:01.270374"], ["token", "g0o6UJyXcxHDazAcPJpMe-ganwR8GtMer7orsz4XCwE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.274279"], ["updated_at", "2015-03-19 05:18:01.274279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '501d71b6-cdf7-11e4-8d4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '501e80ce-cdf7-11e4-9825-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "501d71b6-cdf7-11e4-8d4d-705681abff85"], ["organization_id", "501e80ce-cdf7-11e4-9825-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.277773"], ["updated_at", "2015-03-19 05:18:01.277773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$BxBRRkcFQC61eRoYF.sLLOXsjueCXQUyQZmVdKYuTMIe5FoMZ7Kuq"], ["created_at", "2015-03-19 05:18:01.282384"], ["updated_at", "2015-03-19 05:18:01.282384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.285734"], ["updated_at", "2015-03-19 05:18:01.285734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '501fbb42-cdf7-11e4-9764-705681abff85' AND "clubhouse_memberships"."organization_id" = '50203d2e-cdf7-11e4-b66b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "501fbb42-cdf7-11e4-9764-705681abff85"], ["organization_id", "50203d2e-cdf7-11e4-b66b-705681abff85"], ["created_at", "2015-03-19 05:18:01.288996"], ["updated_at", "2015-03-19 05:18:01.288996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$T9D8n7UyqdpLjR33D/GzSe/vOLeYW2ABT1WDm2U/sPuv/uZMEle4i"], ["created_at", "2015-03-19 05:18:01.300416"], ["updated_at", "2015-03-19 05:18:01.300416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.302264"], ["user_id", "50227f08-cdf7-11e4-a6bf-705681abff85"], ["created_at", "2015-03-19 05:18:01.303059"], ["updated_at", "2015-03-19 05:18:01.303059"], ["token", "1KocGKeIEyJtOvniQoBqBHOl198mKuk9z7QVgCeS6TE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.307006"], ["updated_at", "2015-03-19 05:18:01.307006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50227f08-cdf7-11e4-a6bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '50237d54-cdf7-11e4-ab78-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "50227f08-cdf7-11e4-a6bf-705681abff85"], ["organization_id", "50237d54-cdf7-11e4-ab78-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.310312"], ["updated_at", "2015-03-19 05:18:01.310312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/50237d54-cdf7-11e4-ab78-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"50237d54-cdf7-11e4-ab78-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:01.314817' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1KocGKeIEyJtOvniQoBqBHOl198mKuk9z7QVgCeS6TE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:01.316253"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:01.317266"], ["id", "5022ec86-cdf7-11e4-a8ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "50237d54-cdf7-11e4-ab78-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "50227f08-cdf7-11e4-a6bf-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '50227f08-cdf7-11e4-a6bf-705681abff85' LIMIT 1 [["organization_id", "50237d54-cdf7-11e4-ab78-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "50237d54-cdf7-11e4-ab78-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$ENYfUX.AfirVC3wBOCTx4eb3FNSntmMLVpbUWBuOn.DpoWgBT.VmS"], ["created_at", "2015-03-19 05:18:01.328002"], ["updated_at", "2015-03-19 05:18:01.328002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.329594"], ["user_id", "5026b1a4-cdf7-11e4-bbef-705681abff85"], ["created_at", "2015-03-19 05:18:01.330356"], ["updated_at", "2015-03-19 05:18:01.330356"], ["token", "Zgra2sX2vrZp1dqGsMqFiE9Eo2gDDbIxBTBKYFmvy1g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.333639"], ["updated_at", "2015-03-19 05:18:01.333639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5026b1a4-cdf7-11e4-bbef-705681abff85' AND "clubhouse_memberships"."organization_id" = '50278ad4-cdf7-11e4-b115-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5026b1a4-cdf7-11e4-bbef-705681abff85"], ["organization_id", "50278ad4-cdf7-11e4-b115-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.336842"], ["updated_at", "2015-03-19 05:18:01.336842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$q41skgsYVxt5qRYF2CIgX.0aJCceSS.rTAkDNdggIvIO1WzPnNpNG"], ["created_at", "2015-03-19 05:18:01.346333"], ["updated_at", "2015-03-19 05:18:01.346333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.348071"], ["user_id", "50297d94-cdf7-11e4-9ec4-705681abff85"], ["created_at", "2015-03-19 05:18:01.348817"], ["updated_at", "2015-03-19 05:18:01.348817"], ["token", "8IPwxeHvEECG_Mg7UWmCSyQHEgdXqjCtJ5tL3ZQarxI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.352123"], ["updated_at", "2015-03-19 05:18:01.352123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50297d94-cdf7-11e4-9ec4-705681abff85' AND "clubhouse_memberships"."organization_id" = '502a5e08-cdf7-11e4-8d9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "50297d94-cdf7-11e4-9ec4-705681abff85"], ["organization_id", "502a5e08-cdf7-11e4-8d9b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.355355"], ["updated_at", "2015-03-19 05:18:01.355355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/502a5e08-cdf7-11e4-8d9b-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"502a5e08-cdf7-11e4-8d9b-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:01.360202' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8IPwxeHvEECG_Mg7UWmCSyQHEgdXqjCtJ5tL3ZQarxI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:01.361783"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:01.362962"], ["id", "5029e496-cdf7-11e4-a840-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "502a5e08-cdf7-11e4-8d9b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "50297d94-cdf7-11e4-9ec4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '50297d94-cdf7-11e4-9ec4-705681abff85' LIMIT 1 [["organization_id", "502a5e08-cdf7-11e4-8d9b-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$gxYNDsb7XF9QQQ.smCudLOEB4mWOgBP8TkILxAoABgBbIDtK2X02."], ["created_at", "2015-03-19 05:18:01.374709"], ["updated_at", "2015-03-19 05:18:01.374709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.376458"], ["user_id", "502dd5f6-cdf7-11e4-92db-705681abff85"], ["created_at", "2015-03-19 05:18:01.377249"], ["updated_at", "2015-03-19 05:18:01.377249"], ["token", "R8XwZfmiJdmJWuUSqBm5I_Li8gZxyTCxgFepxgq2rfU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.380739"], ["updated_at", "2015-03-19 05:18:01.380739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '502dd5f6-cdf7-11e4-92db-705681abff85' AND "clubhouse_memberships"."organization_id" = '502ec042-cdf7-11e4-b3a8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "502dd5f6-cdf7-11e4-92db-705681abff85"], ["organization_id", "502ec042-cdf7-11e4-b3a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.384253"], ["updated_at", "2015-03-19 05:18:01.384253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$/USBijIUXzKKW/vLcmI3D.ZwnNyGZd2bPX1acuzJ4YFwLjRkPLqpG"], ["created_at", "2015-03-19 05:18:01.394193"], ["updated_at", "2015-03-19 05:18:01.394193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.395835"], ["user_id", "5030cc20-cdf7-11e4-a448-705681abff85"], ["created_at", "2015-03-19 05:18:01.396610"], ["updated_at", "2015-03-19 05:18:01.396610"], ["token", "o5_pzLPwuhTDSoIQ4mYc-n41FiCLWOHGk6SJEdItGyc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.399938"], ["updated_at", "2015-03-19 05:18:01.399938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5030cc20-cdf7-11e4-a448-705681abff85' AND "clubhouse_memberships"."organization_id" = '5031abe0-cdf7-11e4-b96e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5030cc20-cdf7-11e4-a448-705681abff85"], ["organization_id", "5031abe0-cdf7-11e4-b96e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.403463"], ["updated_at", "2015-03-19 05:18:01.403463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$ITRpwgqFKA79Opc3R54rDOVmrrhgZrcTKdHbg0tuDhOg83Gq9RRw."], ["created_at", "2015-03-19 05:18:01.415294"], ["updated_at", "2015-03-19 05:18:01.415294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.416864"], ["user_id", "50340354-cdf7-11e4-9104-705681abff85"], ["created_at", "2015-03-19 05:18:01.417614"], ["updated_at", "2015-03-19 05:18:01.417614"], ["token", "xDqgVDCeK5qxaVI0IpeTn22b6U-GFZ6D_DtJzeKCong"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.421293"], ["updated_at", "2015-03-19 05:18:01.421293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50340354-cdf7-11e4-9104-705681abff85' AND "clubhouse_memberships"."organization_id" = '5034fbe2-cdf7-11e4-9658-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "50340354-cdf7-11e4-9104-705681abff85"], ["organization_id", "5034fbe2-cdf7-11e4-9658-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.427095"], ["updated_at", "2015-03-19 05:18:01.427095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:01.435160' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xDqgVDCeK5qxaVI0IpeTn22b6U-GFZ6D_DtJzeKCong"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:01.436885"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:01.438049"], ["id", "503462f4-cdf7-11e4-a31e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "50340354-cdf7-11e4-9104-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '50340354-cdf7-11e4-9104-705681abff85' LIMIT 1 [["organization_id", "5034fbe2-cdf7-11e4-9658-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5034fbe2-cdf7-11e4-9658-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$8ZyE1jDoRd9oap/kTAMdMeSJOMpN5eiO3/RrLuxREq67F5HXD9Bcy"], ["created_at", "2015-03-19 05:18:01.452393"], ["updated_at", "2015-03-19 05:18:01.452393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:01.456419"], ["user_id", "5039ad40-cdf7-11e4-9d37-705681abff85"], ["created_at", "2015-03-19 05:18:01.457611"], ["updated_at", "2015-03-19 05:18:01.457611"], ["token", "OKJfzBvq3aMmaU4x59W0fvZt6aYxODbCoWnCpx6X7hI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:01.461742"], ["updated_at", "2015-03-19 05:18:01.461742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5039ad40-cdf7-11e4-9d37-705681abff85' AND "clubhouse_memberships"."organization_id" = '503b189c-cdf7-11e4-8722-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5039ad40-cdf7-11e4-9d37-705681abff85"], ["organization_id", "503b189c-cdf7-11e4-8722-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:01.465095"], ["updated_at", "2015-03-19 05:18:01.465095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-03-18 22:18:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:01.470033' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OKJfzBvq3aMmaU4x59W0fvZt6aYxODbCoWnCpx6X7hI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:01.471767"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:01.472917"], ["id", "503a8d28-cdf7-11e4-a9db-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5039ad40-cdf7-11e4-9d37-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5039ad40-cdf7-11e4-9d37-705681abff85' LIMIT 1 [["organization_id", "503b189c-cdf7-11e4-8722-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '503b189c-cdf7-11e4-8722-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:18:01.485444"], ["id", "503b189c-cdf7-11e4-8722-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$JgaCHm0uXXCKeCKPkshEa.L7KFw43bNcm5w.uzJvxc/agAoI21BLi"], ["created_at", "2015-03-19 05:18:12.163440"], ["updated_at", "2015-03-19 05:18:12.163440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.234676"], ["user_id", "569c3e82-cdf7-11e4-a436-705681abff85"], ["created_at", "2015-03-19 05:18:12.244177"], ["updated_at", "2015-03-19 05:18:12.244177"], ["token", "FagrwvuutSKPnsgO8vNjOJt22SDJxtBoCQUIdiI_dmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.259811"], ["updated_at", "2015-03-19 05:18:12.259811"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '569c3e82-cdf7-11e4-a436-705681abff85' AND "clubhouse_memberships"."organization_id" = '56aade10-cdf7-11e4-9ea6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "569c3e82-cdf7-11e4-a436-705681abff85"], ["organization_id", "56aade10-cdf7-11e4-9ea6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.276756"], ["updated_at", "2015-03-19 05:18:12.276756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-1" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.302910' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FagrwvuutSKPnsgO8vNjOJt22SDJxtBoCQUIdiI_dmM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.310610"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.311804"], ["id", "56a896e6-cdf7-11e4-a1a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-1"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "569c3e82-cdf7-11e4-a436-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '569c3e82-cdf7-11e4-a436-705681abff85' LIMIT 1 [["organization_id", "56aade10-cdf7-11e4-9ea6-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "56aade10-cdf7-11e4-9ea6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 29ms (ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$5mdrKjqBk.6A99obZmCVmOGg66HXUUg.ft6C/IhS8T2PCh.TTbgke"], ["created_at", "2015-03-19 05:18:12.339045"], ["updated_at", "2015-03-19 05:18:12.339045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.340902"], ["user_id", "56b6dde6-cdf7-11e4-9d2e-705681abff85"], ["created_at", "2015-03-19 05:18:12.341701"], ["updated_at", "2015-03-19 05:18:12.341701"], ["token", "X96mX62L8kceIVO-mX13bGCNqikRL7K8BXw9MA37nU4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.345539"], ["updated_at", "2015-03-19 05:18:12.345539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56b6dde6-cdf7-11e4-9d2e-705681abff85' AND "clubhouse_memberships"."organization_id" = '56b7d8d6-cdf7-11e4-8f90-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56b6dde6-cdf7-11e4-9d2e-705681abff85"], ["organization_id", "56b7d8d6-cdf7-11e4-8f90-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.349034"], ["updated_at", "2015-03-19 05:18:12.349034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$KJD8lZCOYQIfJd.DYBxdv.3GlhmMvmXSdDs5/XhdQyoQzQBm8Cm16"], ["created_at", "2015-03-19 05:18:12.360403"], ["updated_at", "2015-03-19 05:18:12.360403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.362268"], ["user_id", "56ba1ede-cdf7-11e4-97b1-705681abff85"], ["created_at", "2015-03-19 05:18:12.363217"], ["updated_at", "2015-03-19 05:18:12.363217"], ["token", "PdzgHfosLhY5pcoccSFGzk6Lw8l-tiaXJUXzXsVFfUg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.367525"], ["updated_at", "2015-03-19 05:18:12.367525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56ba1ede-cdf7-11e4-97b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '56bb2f5e-cdf7-11e4-ac3b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56ba1ede-cdf7-11e4-97b1-705681abff85"], ["organization_id", "56bb2f5e-cdf7-11e4-ac3b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.371512"], ["updated_at", "2015-03-19 05:18:12.371512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$/Ogu.MCrCc1iFkKQxq3PEOeXyaOjNsEIqwzEP93kArjbasZ/un4Vu"], ["created_at", "2015-03-19 05:18:12.382996"], ["updated_at", "2015-03-19 05:18:12.382996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.384617"], ["user_id", "56bd8efc-cdf7-11e4-ab8b-705681abff85"], ["created_at", "2015-03-19 05:18:12.385396"], ["updated_at", "2015-03-19 05:18:12.385396"], ["token", "QW0pLRCEdi_viugekATO3Whwp9xTlZzs8FSnmepUQtU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.389044"], ["updated_at", "2015-03-19 05:18:12.389044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56bd8efc-cdf7-11e4-ab8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '56be77cc-cdf7-11e4-aaef-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56bd8efc-cdf7-11e4-ab8b-705681abff85"], ["organization_id", "56be77cc-cdf7-11e4-aaef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.392629"], ["updated_at", "2015-03-19 05:18:12.392629"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.398883' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QW0pLRCEdi_viugekATO3Whwp9xTlZzs8FSnmepUQtU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.400621"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.401635"], ["id", "56bdf036-cdf7-11e4-9582-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$wdWMlrmFT1eeuhAt0G1pJO2nsg/sJg10tbh3Xdxmjg/TXX2lV6Nuq"], ["created_at", "2015-03-19 05:18:12.409588"], ["updated_at", "2015-03-19 05:18:12.409588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.411202"], ["user_id", "56c19d12-cdf7-11e4-9f2f-705681abff85"], ["created_at", "2015-03-19 05:18:12.412021"], ["updated_at", "2015-03-19 05:18:12.412021"], ["token", "kRBwhXu_2oxFF-9GjrM8WHAsS4NnFKQd3hROC2FSwlw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.416233"], ["updated_at", "2015-03-19 05:18:12.416233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56c19d12-cdf7-11e4-9f2f-705681abff85' AND "clubhouse_memberships"."organization_id" = '56c2a00e-cdf7-11e4-b049-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56c19d12-cdf7-11e4-9f2f-705681abff85"], ["organization_id", "56c2a00e-cdf7-11e4-b049-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.419772"], ["updated_at", "2015-03-19 05:18:12.419772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-5" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.424627' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kRBwhXu_2oxFF-9GjrM8WHAsS4NnFKQd3hROC2FSwlw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.426060"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.427014"], ["id", "56c20f18-cdf7-11e4-a2c7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-5"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56c19d12-cdf7-11e4-9f2f-705681abff85"]] Completed 200 OK in 7ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$bHiKEj3EGjIK3x2V7/mLU.YZH4x2KRIdU3RrgvjdWNjsloo/UM59q"], ["created_at", "2015-03-19 05:18:12.439900"], ["updated_at", "2015-03-19 05:18:12.439900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.443835"], ["user_id", "56c65dca-cdf7-11e4-9584-705681abff85"], ["created_at", "2015-03-19 05:18:12.445369"], ["updated_at", "2015-03-19 05:18:12.445369"], ["token", "iA-83HB4Q3mCAPulAXlR8-DCf_KkhX8UeT5fntWq4Ak"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.449712"], ["updated_at", "2015-03-19 05:18:12.449712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56c65dca-cdf7-11e4-9584-705681abff85' AND "clubhouse_memberships"."organization_id" = '56c7baa8-cdf7-11e4-bb30-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56c65dca-cdf7-11e4-9584-705681abff85"], ["organization_id", "56c7baa8-cdf7-11e4-bb30-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.453143"], ["updated_at", "2015-03-19 05:18:12.453143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.458084' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iA-83HB4Q3mCAPulAXlR8-DCf_KkhX8UeT5fntWq4Ak"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.459532"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.460463"], ["id", "56c733bc-cdf7-11e4-a1a7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56c65dca-cdf7-11e4-9584-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '56c65dca-cdf7-11e4-9584-705681abff85' LIMIT 1 [["organization_id", "56c7baa8-cdf7-11e4-bb30-705681abff85"]] Completed 200 OK in 9ms (Views: 2.0ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$vjbe65AkL5dYQY2s3DUjROTXdH9h5MjNqCl7yJVjsHCcShH6XrjiK"], ["created_at", "2015-03-19 05:18:12.474791"], ["updated_at", "2015-03-19 05:18:12.474791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.476568"], ["user_id", "56cb8f98-cdf7-11e4-b60d-705681abff85"], ["created_at", "2015-03-19 05:18:12.477357"], ["updated_at", "2015-03-19 05:18:12.477357"], ["token", "zTZkXQUey2S92fJYtGY6fbF42slWsJ3Z1JDmGYl9_VQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.480725"], ["updated_at", "2015-03-19 05:18:12.480725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56cb8f98-cdf7-11e4-b60d-705681abff85' AND "clubhouse_memberships"."organization_id" = '56cc7e08-cdf7-11e4-a3ef-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56cb8f98-cdf7-11e4-b60d-705681abff85"], ["organization_id", "56cc7e08-cdf7-11e4-a3ef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.484320"], ["updated_at", "2015-03-19 05:18:12.484320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$AUgH6RuSfaz68fll1FCw1.nt/V/Bfa.hvkB7r1tMslZicdKodWUG2"], ["created_at", "2015-03-19 05:18:12.494150"], ["updated_at", "2015-03-19 05:18:12.494150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.495804"], ["user_id", "56ce843c-cdf7-11e4-b61f-705681abff85"], ["created_at", "2015-03-19 05:18:12.496609"], ["updated_at", "2015-03-19 05:18:12.496609"], ["token", "ekGUqs9GGo5l_1_HTAxHqLbneZOcXTHU1EFetapPw8I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.500040"], ["updated_at", "2015-03-19 05:18:12.500040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56ce843c-cdf7-11e4-b61f-705681abff85' AND "clubhouse_memberships"."organization_id" = '56cf6c30-cdf7-11e4-875c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56ce843c-cdf7-11e4-b61f-705681abff85"], ["organization_id", "56cf6c30-cdf7-11e4-875c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.503808"], ["updated_at", "2015-03-19 05:18:12.503808"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$ataowsDl6hqlmI6bXXSofOec7Jc020PfYtpvE32DaIZ3CZeAAwwPe"], ["created_at", "2015-03-19 05:18:12.515392"], ["updated_at", "2015-03-19 05:18:12.515392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.517278"], ["user_id", "56d1c16a-cdf7-11e4-bc4d-705681abff85"], ["created_at", "2015-03-19 05:18:12.518213"], ["updated_at", "2015-03-19 05:18:12.518213"], ["token", "m_Bt1nlF4i7CF55_5KtAvNmqQtev-F9fWpnvtSqRqG8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.521744"], ["updated_at", "2015-03-19 05:18:12.521744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56d1c16a-cdf7-11e4-bc4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '56d2b6c4-cdf7-11e4-aad5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56d1c16a-cdf7-11e4-bc4d-705681abff85"], ["organization_id", "56d2b6c4-cdf7-11e4-aad5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.525172"], ["updated_at", "2015-03-19 05:18:12.525172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.531553' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "m_Bt1nlF4i7CF55_5KtAvNmqQtev-F9fWpnvtSqRqG8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.533320"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.534344"], ["id", "56d23866-cdf7-11e4-810c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56d1c16a-cdf7-11e4-bc4d-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 25ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$45lqqLN73gzU/WupoJDmg.qSbUR0FkMcP.7GOz6BxluPs6Zv4SSUW"], ["created_at", "2015-03-19 05:18:12.564500"], ["updated_at", "2015-03-19 05:18:12.564500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.566903"], ["user_id", "56d957c2-cdf7-11e4-9c96-705681abff85"], ["created_at", "2015-03-19 05:18:12.567742"], ["updated_at", "2015-03-19 05:18:12.567742"], ["token", "6CfBuPgr7eSCgKdJa53nbewKcD_2Xe982lLg9IaiQ4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.571776"], ["updated_at", "2015-03-19 05:18:12.571776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56d957c2-cdf7-11e4-9c96-705681abff85' AND "clubhouse_memberships"."organization_id" = '56da5f96-cdf7-11e4-ab76-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56d957c2-cdf7-11e4-9c96-705681abff85"], ["organization_id", "56da5f96-cdf7-11e4-ab76-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.575601"], ["updated_at", "2015-03-19 05:18:12.575601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.580852' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6CfBuPgr7eSCgKdJa53nbewKcD_2Xe982lLg9IaiQ4E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.583046"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.584378"], ["id", "56d9cb08-cdf7-11e4-ba26-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56d957c2-cdf7-11e4-9c96-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.589888"], ["updated_at", "2015-03-19 05:18:12.589888"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "56dd2096-cdf7-11e4-9d7b-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56d957c2-cdf7-11e4-9c96-705681abff85' AND "clubhouse_memberships"."organization_id" = '56dd2096-cdf7-11e4-9d7b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56d957c2-cdf7-11e4-9c96-705681abff85"], ["admin", "t"], ["organization_id", "56dd2096-cdf7-11e4-9d7b-705681abff85"], ["created_at", "2015-03-19 05:18:12.602909"], ["updated_at", "2015-03-19 05:18:12.602909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 0.5ms | ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Rpmx5mqaQCKLKtKZ8w8JG.vDd.yKw/VmLLlberjg46QlElzO79pKS"], ["created_at", "2015-03-19 05:18:12.611457"], ["updated_at", "2015-03-19 05:18:12.611457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.613081"], ["user_id", "56e0690e-cdf7-11e4-9ea3-705681abff85"], ["created_at", "2015-03-19 05:18:12.613833"], ["updated_at", "2015-03-19 05:18:12.613833"], ["token", "fLZmGwEGW5Je4c70OCGZIr82lgSWhj_WMTb7vLv36Ak"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.617148"], ["updated_at", "2015-03-19 05:18:12.617148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56e0690e-cdf7-11e4-9ea3-705681abff85' AND "clubhouse_memberships"."organization_id" = '56e1446e-cdf7-11e4-8ff3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56e0690e-cdf7-11e4-9ea3-705681abff85"], ["organization_id", "56e1446e-cdf7-11e4-8ff3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.620460"], ["updated_at", "2015-03-19 05:18:12.620460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$SAN/PCII75yZSV8EAooXL.9SDRwzu4WyyBsKhSgib0IRwQw.JBDB6"], ["created_at", "2015-03-19 05:18:12.630275"], ["updated_at", "2015-03-19 05:18:12.630275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.631926"], ["user_id", "56e3496c-cdf7-11e4-84d7-705681abff85"], ["created_at", "2015-03-19 05:18:12.632699"], ["updated_at", "2015-03-19 05:18:12.632699"], ["token", "OGJlXyn9iIuX29wZizSItadaRdtc466LIUbWrUCJ7Zw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.636513"], ["updated_at", "2015-03-19 05:18:12.636513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56e3496c-cdf7-11e4-84d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '56e43e8a-cdf7-11e4-b7d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56e3496c-cdf7-11e4-84d7-705681abff85"], ["organization_id", "56e43e8a-cdf7-11e4-b7d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.640043"], ["updated_at", "2015-03-19 05:18:12.640043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/56e43e8a-cdf7-11e4-b7d6-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"56e43e8a-cdf7-11e4-b7d6-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.645769' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OGJlXyn9iIuX29wZizSItadaRdtc466LIUbWrUCJ7Zw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.647230"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.648160"], ["id", "56e3af24-cdf7-11e4-9ad7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "56e43e8a-cdf7-11e4-b7d6-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56e3496c-cdf7-11e4-84d7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '56e3496c-cdf7-11e4-84d7-705681abff85' LIMIT 1 [["organization_id", "56e43e8a-cdf7-11e4-b7d6-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '56e43e8a-cdf7-11e4-b7d6-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$rEvdshYsPFRf3M3cVREjLOeyZ67hoLZyScr5fHZOAySpnUIqqq5sm"], ["created_at", "2015-03-19 05:18:12.663566"], ["updated_at", "2015-03-19 05:18:12.663566"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.666818"], ["user_id", "56e86fbe-cdf7-11e4-ac26-705681abff85"], ["created_at", "2015-03-19 05:18:12.668271"], ["updated_at", "2015-03-19 05:18:12.668271"], ["token", "HW0SVCznDoMWj86h2XILs-9GYWuoHhspHkoiBWJNMe4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.684912"], ["updated_at", "2015-03-19 05:18:12.684912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56e86fbe-cdf7-11e4-ac26-705681abff85' AND "clubhouse_memberships"."organization_id" = '56ec1060-cdf7-11e4-9a1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56e86fbe-cdf7-11e4-ac26-705681abff85"], ["organization_id", "56ec1060-cdf7-11e4-9a1c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.696087"], ["updated_at", "2015-03-19 05:18:12.696087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/56ec1060-cdf7-11e4-9a1c-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"56ec1060-cdf7-11e4-9a1c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.701569' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HW0SVCznDoMWj86h2XILs-9GYWuoHhspHkoiBWJNMe4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.703094"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.704154"], ["id", "56e92d64-cdf7-11e4-8793-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "56ec1060-cdf7-11e4-9a1c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56e86fbe-cdf7-11e4-ac26-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '56e86fbe-cdf7-11e4-ac26-705681abff85' LIMIT 1 [["organization_id", "56ec1060-cdf7-11e4-9a1c-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '56ec1060-cdf7-11e4-9a1c-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:18:12.710655"], ["id", "56ec1060-cdf7-11e4-9a1c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$W.coAwO6PJMGzbsZwtaSkOKpiaXIoeXz3QY.nOsenFae6JdH64yV."], ["created_at", "2015-03-19 05:18:12.718712"], ["updated_at", "2015-03-19 05:18:12.718712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.720668"], ["user_id", "56f0caf6-cdf7-11e4-b299-705681abff85"], ["created_at", "2015-03-19 05:18:12.721629"], ["updated_at", "2015-03-19 05:18:12.721629"], ["token", "jNhyvR0bhghoAYe81M70Fgu-xCwCFR1CvM2yK8B1g0U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.725627"], ["updated_at", "2015-03-19 05:18:12.725627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56f0caf6-cdf7-11e4-b299-705681abff85' AND "clubhouse_memberships"."organization_id" = '56f1d5f4-cdf7-11e4-8cf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56f0caf6-cdf7-11e4-b299-705681abff85"], ["organization_id", "56f1d5f4-cdf7-11e4-8cf6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.729135"], ["updated_at", "2015-03-19 05:18:12.729135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/56f1d5f4-cdf7-11e4-8cf6-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"56f1d5f4-cdf7-11e4-8cf6-705681abff85", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.734022' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jNhyvR0bhghoAYe81M70Fgu-xCwCFR1CvM2yK8B1g0U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.735607"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.736661"], ["id", "56f1492c-cdf7-11e4-a7a5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "56f1d5f4-cdf7-11e4-8cf6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56f0caf6-cdf7-11e4-b299-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '56f0caf6-cdf7-11e4-b299-705681abff85' LIMIT 1 [["organization_id", "56f1d5f4-cdf7-11e4-8cf6-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$TubJSzBBVbaJA.Q523NaoO8DDOOgbGxRnXHWgNWy18r7N.xuUu4Tm"], ["created_at", "2015-03-19 05:18:12.748303"], ["updated_at", "2015-03-19 05:18:12.748303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.750006"], ["user_id", "56f54b30-cdf7-11e4-b87a-705681abff85"], ["created_at", "2015-03-19 05:18:12.751131"], ["updated_at", "2015-03-19 05:18:12.751131"], ["token", "hIiqVDMj-gCg3BhEHSWRhk64jBtvvP-1UzmdA4jr2m0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.754853"], ["updated_at", "2015-03-19 05:18:12.754853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56f54b30-cdf7-11e4-b87a-705681abff85' AND "clubhouse_memberships"."organization_id" = '56f64a3a-cdf7-11e4-bcd3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56f54b30-cdf7-11e4-b87a-705681abff85"], ["organization_id", "56f64a3a-cdf7-11e4-bcd3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.758211"], ["updated_at", "2015-03-19 05:18:12.758211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$XG89VPGg5gKLus4Z069XQucFDjekZRRvvWGtwHSBrwbeTB9vQdyGu"], ["created_at", "2015-03-19 05:18:12.768349"], ["updated_at", "2015-03-19 05:18:12.768349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.770020"], ["user_id", "56f85d0c-cdf7-11e4-8acf-705681abff85"], ["created_at", "2015-03-19 05:18:12.770792"], ["updated_at", "2015-03-19 05:18:12.770792"], ["token", "A3oaJ1GPDCRkwS1lLoKZW0sw9MDqXfzeKqsAwG9E2JM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.774111"], ["updated_at", "2015-03-19 05:18:12.774111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56f85d0c-cdf7-11e4-8acf-705681abff85' AND "clubhouse_memberships"."organization_id" = '56f939ca-cdf7-11e4-a44f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56f85d0c-cdf7-11e4-8acf-705681abff85"], ["organization_id", "56f939ca-cdf7-11e4-a44f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.777366"], ["updated_at", "2015-03-19 05:18:12.777366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/56f939ca-cdf7-11e4-a44f-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"56f939ca-cdf7-11e4-a44f-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.781806' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A3oaJ1GPDCRkwS1lLoKZW0sw9MDqXfzeKqsAwG9E2JM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.783212"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.784144"], ["id", "56f8bfa4-cdf7-11e4-8d9a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "56f939ca-cdf7-11e4-a44f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56f85d0c-cdf7-11e4-8acf-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '56f85d0c-cdf7-11e4-8acf-705681abff85' LIMIT 1 [["organization_id", "56f939ca-cdf7-11e4-a44f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "56f939ca-cdf7-11e4-a44f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 8ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$RkfGVoOzntKH.MfF77w15uahGkZet0AJIzOZMoIWlx9/4/xQfvfyu"], ["created_at", "2015-03-19 05:18:12.795728"], ["updated_at", "2015-03-19 05:18:12.795728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.797556"], ["user_id", "56fc8ca6-cdf7-11e4-92a8-705681abff85"], ["created_at", "2015-03-19 05:18:12.798450"], ["updated_at", "2015-03-19 05:18:12.798450"], ["token", "pU16oBFL4IwcZXkd7H2LpD9U7xkFr49xefpVyzhPA-I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.802831"], ["updated_at", "2015-03-19 05:18:12.802831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56fc8ca6-cdf7-11e4-92a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '56fd9d76-cdf7-11e4-adec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56fc8ca6-cdf7-11e4-92a8-705681abff85"], ["organization_id", "56fd9d76-cdf7-11e4-adec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.806225"], ["updated_at", "2015-03-19 05:18:12.806225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$38RB2VZxqOl5ySe4783Ty.LiJwtKvgD30RVjYHDcPCVoo.ilEgAPK"], ["created_at", "2015-03-19 05:18:12.816808"], ["updated_at", "2015-03-19 05:18:12.816808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.818619"], ["user_id", "56ffc2ea-cdf7-11e4-a5b4-705681abff85"], ["created_at", "2015-03-19 05:18:12.819439"], ["updated_at", "2015-03-19 05:18:12.819439"], ["token", "HDt4-xs1LHSXYjASdUhu9vXUX_1yN3Cyq40fx9nLM60"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.822734"], ["updated_at", "2015-03-19 05:18:12.822734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56ffc2ea-cdf7-11e4-a5b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5700a82c-cdf7-11e4-a8b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56ffc2ea-cdf7-11e4-a5b4-705681abff85"], ["organization_id", "5700a82c-cdf7-11e4-a8b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.826107"], ["updated_at", "2015-03-19 05:18:12.826107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$c0fGA1qnLW00UJPircXC7eLQVAWHo6C78danPPlW/pVBnr8Lh.y5y"], ["created_at", "2015-03-19 05:18:12.830432"], ["updated_at", "2015-03-19 05:18:12.830432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.833409"], ["updated_at", "2015-03-19 05:18:12.833409"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5701d01c-cdf7-11e4-844f-705681abff85' AND "clubhouse_memberships"."organization_id" = '570243da-cdf7-11e4-ade5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5701d01c-cdf7-11e4-844f-705681abff85"], ["organization_id", "570243da-cdf7-11e4-ade5-705681abff85"], ["created_at", "2015-03-19 05:18:12.837331"], ["updated_at", "2015-03-19 05:18:12.837331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.842107' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HDt4-xs1LHSXYjASdUhu9vXUX_1yN3Cyq40fx9nLM60"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.843577"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.844533"], ["id", "57002c3a-cdf7-11e4-ac5e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56ffc2ea-cdf7-11e4-a5b4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "56ffc2ea-cdf7-11e4-a5b4-705681abff85"]] Completed 200 OK in 11ms (Views: 3.1ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$7ljuc0jnEplxX9Uq0Dab2u8OWJvN1g5BlLvpCG2MWLd/j2HCUWNGO"], ["created_at", "2015-03-19 05:18:12.859033"], ["updated_at", "2015-03-19 05:18:12.859033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.860725"], ["user_id", "570630ee-cdf7-11e4-93ca-705681abff85"], ["created_at", "2015-03-19 05:18:12.861565"], ["updated_at", "2015-03-19 05:18:12.861565"], ["token", "g9YBbj9AabWQUwtnnB8kJ8dfdr5frxUfhhw2xknVwvc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.865539"], ["updated_at", "2015-03-19 05:18:12.865539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '570630ee-cdf7-11e4-93ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '57072c74-cdf7-11e4-983c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "570630ee-cdf7-11e4-93ca-705681abff85"], ["organization_id", "57072c74-cdf7-11e4-983c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.868942"], ["updated_at", "2015-03-19 05:18:12.868942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$q6JFfio8sbAEzuH/VFjq2O25bWnO7ZpRHJ9UjQMxWAT1LJJjo4naq"], ["created_at", "2015-03-19 05:18:12.873609"], ["updated_at", "2015-03-19 05:18:12.873609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.876822"], ["updated_at", "2015-03-19 05:18:12.876822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5708683c-cdf7-11e4-8781-705681abff85' AND "clubhouse_memberships"."organization_id" = '5708e55a-cdf7-11e4-b5c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5708683c-cdf7-11e4-8781-705681abff85"], ["organization_id", "5708e55a-cdf7-11e4-b5c0-705681abff85"], ["created_at", "2015-03-19 05:18:12.880064"], ["updated_at", "2015-03-19 05:18:12.880064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$KBpDivYWJxf7lkTOQlVem.glYNLIjLCc6FJs0WiqrHva4IhODxHaa"], ["created_at", "2015-03-19 05:18:12.890965"], ["updated_at", "2015-03-19 05:18:12.890965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.892899"], ["user_id", "570b1910-cdf7-11e4-b6df-705681abff85"], ["created_at", "2015-03-19 05:18:12.893839"], ["updated_at", "2015-03-19 05:18:12.893839"], ["token", "1SSZtFKrL7ka0WzF6pVW3vaF1SPdCFxSq3zja-sYsyY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.898047"], ["updated_at", "2015-03-19 05:18:12.898047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '570b1910-cdf7-11e4-b6df-705681abff85' AND "clubhouse_memberships"."organization_id" = '570c236e-cdf7-11e4-a17f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "570b1910-cdf7-11e4-b6df-705681abff85"], ["organization_id", "570c236e-cdf7-11e4-a17f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.901527"], ["updated_at", "2015-03-19 05:18:12.901527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$NK9n2NjMgZxRG8EBnpAanelqexHFcGez3Fs.3Wg4SLHxZRGRx9G9q"], ["created_at", "2015-03-19 05:18:12.912098"], ["updated_at", "2015-03-19 05:18:12.912098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.913941"], ["user_id", "570e4ce8-cdf7-11e4-bf92-705681abff85"], ["created_at", "2015-03-19 05:18:12.914777"], ["updated_at", "2015-03-19 05:18:12.914777"], ["token", "4YSeY9SsbKpyZ0U_NSQidYYlzfOYGTL46JfWYInsrA8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.918658"], ["updated_at", "2015-03-19 05:18:12.918658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '570e4ce8-cdf7-11e4-bf92-705681abff85' AND "clubhouse_memberships"."organization_id" = '570f48c8-cdf7-11e4-bb17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "570e4ce8-cdf7-11e4-bf92-705681abff85"], ["organization_id", "570f48c8-cdf7-11e4-bb17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.921953"], ["updated_at", "2015-03-19 05:18:12.921953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.926471' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4YSeY9SsbKpyZ0U_NSQidYYlzfOYGTL46JfWYInsrA8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.928321"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.930360"], ["id", "570ebc82-cdf7-11e4-b21e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "570e4ce8-cdf7-11e4-bf92-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '570e4ce8-cdf7-11e4-bf92-705681abff85' LIMIT 1 [["organization_id", "570f48c8-cdf7-11e4-bb17-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '570f48c8-cdf7-11e4-bb17-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$d4H1OqgblyhaIzQqRcO68OyuJn//TEpXasJJdW7wWXpl9Ke9AhLaC"], ["created_at", "2015-03-19 05:18:12.946050"], ["updated_at", "2015-03-19 05:18:12.946050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:12.948244"], ["user_id", "57138208-cdf7-11e4-9409-705681abff85"], ["created_at", "2015-03-19 05:18:12.949045"], ["updated_at", "2015-03-19 05:18:12.949045"], ["token", "bpZSbYwdkGjYX_kZ4cZ1tjnKXn5m8qapuwmWiCivsqc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:12.952832"], ["updated_at", "2015-03-19 05:18:12.952832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57138208-cdf7-11e4-9409-705681abff85' AND "clubhouse_memberships"."organization_id" = '5714889c-cdf7-11e4-b471-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57138208-cdf7-11e4-9409-705681abff85"], ["organization_id", "5714889c-cdf7-11e4-b471-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:12.957456"], ["updated_at", "2015-03-19 05:18:12.957456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-03-18 22:18:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:12.962478' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bpZSbYwdkGjYX_kZ4cZ1tjnKXn5m8qapuwmWiCivsqc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:12.964830"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:12.966292"], ["id", "5713f51c-cdf7-11e4-bb6e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57138208-cdf7-11e4-9409-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '57138208-cdf7-11e4-9409-705681abff85' LIMIT 1 [["organization_id", "5714889c-cdf7-11e4-b471-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5714889c-cdf7-11e4-b471-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:18:12.978796"], ["id", "5714889c-cdf7-11e4-b471-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$9MMSpdmbg9GWU1i6pwZdBua8gelgjTEV06I8ZJB4trdswMToXoKLO"], ["created_at", "2015-03-19 05:18:21.629144"], ["updated_at", "2015-03-19 05:18:21.629144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:21.671324"], ["user_id", "5c4090b8-cdf7-11e4-94da-705681abff85"], ["created_at", "2015-03-19 05:18:21.677657"], ["updated_at", "2015-03-19 05:18:21.677657"], ["token", "ow2MkaKB0xcoDEk1jJj5OxdsRfOMdclIOlHmQv6t5V4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:21.686986"], ["updated_at", "2015-03-19 05:18:21.686986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c4090b8-cdf7-11e4-94da-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c4946a4-cdf7-11e4-ab11-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c4090b8-cdf7-11e4-94da-705681abff85"], ["organization_id", "5c4946a4-cdf7-11e4-ab11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:21.697853"], ["updated_at", "2015-03-19 05:18:21.697853"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$h8rzixkm7SrzUMKOI34x4.FwoIogIYlz1Tw8dw5z.QPYR7Mnw3N06"], ["created_at", "2015-03-19 05:18:21.732168"], ["updated_at", "2015-03-19 05:18:21.732168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:21.735061"], ["user_id", "5c503aa4-cdf7-11e4-bb4f-705681abff85"], ["created_at", "2015-03-19 05:18:21.735927"], ["updated_at", "2015-03-19 05:18:21.735927"], ["token", "r3wRKoHbqS1lvWFXCHXrnJilfxgs6ZesJXqqlX3Yny0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:21.739681"], ["updated_at", "2015-03-19 05:18:21.739681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c503aa4-cdf7-11e4-bb4f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c5143f4-cdf7-11e4-b4f0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c503aa4-cdf7-11e4-bb4f-705681abff85"], ["organization_id", "5c5143f4-cdf7-11e4-b4f0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:21.743030"], ["updated_at", "2015-03-19 05:18:21.743030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-2" for 127.0.0.1 at 2015-03-18 22:18:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-2", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:21.749778' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r3wRKoHbqS1lvWFXCHXrnJilfxgs6ZesJXqqlX3Yny0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:21.757303"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:21.758603"], ["id", "5c50bc04-cdf7-11e4-989b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-2"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c503aa4-cdf7-11e4-bb4f-705681abff85"]] Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c503aa4-cdf7-11e4-bb4f-705681abff85' LIMIT 1 [["organization_id", "5c5143f4-cdf7-11e4-b4f0-705681abff85"]] Unpermitted parameters: id, organization  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5c5143f4-cdf7-11e4-b4f0-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 52ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$uRsR6lGjbPBSptyat8uKEucCCFt.sK9rEZuXs4OHDnTBLUrUzRngC"], ["created_at", "2015-03-19 05:18:21.807095"], ["updated_at", "2015-03-19 05:18:21.807095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:21.808890"], ["user_id", "5c5b9214-cdf7-11e4-8051-705681abff85"], ["created_at", "2015-03-19 05:18:21.809737"], ["updated_at", "2015-03-19 05:18:21.809737"], ["token", "HwcfUnPED6uZbI41rUSOCObcqSLctPhPsf3-X_rj5rk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:21.813176"], ["updated_at", "2015-03-19 05:18:21.813176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c5b9214-cdf7-11e4-8051-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c5c7a6c-cdf7-11e4-bcf2-705681abff85') LIMIT 1 SQL (5.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c5b9214-cdf7-11e4-8051-705681abff85"], ["organization_id", "5c5c7a6c-cdf7-11e4-bcf2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:21.816545"], ["updated_at", "2015-03-19 05:18:21.816545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-3" for 127.0.0.1 at 2015-03-18 22:18:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-3", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:21.827253' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HwcfUnPED6uZbI41rUSOCObcqSLctPhPsf3-X_rj5rk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:21.828690"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:21.829651"], ["id", "5c5bfd3a-cdf7-11e4-968a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-3"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c5b9214-cdf7-11e4-8051-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c5b9214-cdf7-11e4-8051-705681abff85' LIMIT 1 [["organization_id", "5c5c7a6c-cdf7-11e4-bcf2-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5c5c7a6c-cdf7-11e4-bcf2-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:18:21.836074"], ["id", "5c5c7a6c-cdf7-11e4-bcf2-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 1.6ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$EXQ2Wx6pC0NNeXGd4nnO6.iGA.RcGsU1CepbY/9ozUir43zGzG3IS"], ["created_at", "2015-03-19 05:18:21.848562"], ["updated_at", "2015-03-19 05:18:21.848562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:21.850254"], ["user_id", "5c61e4e8-cdf7-11e4-895a-705681abff85"], ["created_at", "2015-03-19 05:18:21.851056"], ["updated_at", "2015-03-19 05:18:21.851056"], ["token", "hei6DMekJ4yTWBUun8BVq5hEIEecOgPNYUH56IR-vFs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:21.854475"], ["updated_at", "2015-03-19 05:18:21.854475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c61e4e8-cdf7-11e4-895a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c62c980-cdf7-11e4-af60-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c61e4e8-cdf7-11e4-895a-705681abff85"], ["organization_id", "5c62c980-cdf7-11e4-af60-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:21.858053"], ["updated_at", "2015-03-19 05:18:21.858053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/5c62c980-cdf7-11e4-af60-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"5c62c980-cdf7-11e4-af60-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:21.863007' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hei6DMekJ4yTWBUun8BVq5hEIEecOgPNYUH56IR-vFs"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:21.864843"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:21.866155"], ["id", "5c62491a-cdf7-11e4-8f88-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5c62c980-cdf7-11e4-af60-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c61e4e8-cdf7-11e4-895a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c61e4e8-cdf7-11e4-895a-705681abff85' LIMIT 1 [["organization_id", "5c62c980-cdf7-11e4-af60-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "5c62c980-cdf7-11e4-af60-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$P0ZL92ryvzxobkQ0vuGYoOHgQKmNauZVcEl5JaDP6EufuihBw8VaO"], ["created_at", "2015-03-19 05:18:21.879109"], ["updated_at", "2015-03-19 05:18:21.879109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:21.881082"], ["user_id", "5c6694d4-cdf7-11e4-a836-705681abff85"], ["created_at", "2015-03-19 05:18:21.881855"], ["updated_at", "2015-03-19 05:18:21.881855"], ["token", "BKlvwimnJOdc4gyIkIufUsp6ySCD1FTs68Gh9GtuKcE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:21.885323"], ["updated_at", "2015-03-19 05:18:21.885323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c6694d4-cdf7-11e4-a836-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c677cd2-cdf7-11e4-b9ab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c6694d4-cdf7-11e4-a836-705681abff85"], ["organization_id", "5c677cd2-cdf7-11e4-b9ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:21.888617"], ["updated_at", "2015-03-19 05:18:21.888617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$bZnxdHgivlG80xgFfn7p2OdWFPZJBti.qiEDzDsZYLbkYIcBCUGNO"], ["created_at", "2015-03-19 05:18:21.899401"], ["updated_at", "2015-03-19 05:18:21.899401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:21.901021"], ["user_id", "5c69a674-cdf7-11e4-b03c-705681abff85"], ["created_at", "2015-03-19 05:18:21.902072"], ["updated_at", "2015-03-19 05:18:21.902072"], ["token", "efh_DSk2riZ4gCq0St_Su1rKXapqDAJPyXi7_n0mZhE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:21.905429"], ["updated_at", "2015-03-19 05:18:21.905429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c69a674-cdf7-11e4-b03c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c6a8c42-cdf7-11e4-a497-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c69a674-cdf7-11e4-b03c-705681abff85"], ["organization_id", "5c6a8c42-cdf7-11e4-a497-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:21.909191"], ["updated_at", "2015-03-19 05:18:21.909191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$rXnNBAkCQfcvOfHTuHVKXulMnJ/GQ.VS24hNwKgzrOF.8jjdE74Fu"], ["created_at", "2015-03-19 05:18:21.919158"], ["updated_at", "2015-03-19 05:18:21.919158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:21.920799"], ["user_id", "5c6ca78e-cdf7-11e4-ac55-705681abff85"], ["created_at", "2015-03-19 05:18:21.921558"], ["updated_at", "2015-03-19 05:18:21.921558"], ["token", "shDuob9PorzSGipjGKF2pACpF-bjoFMrIymAvoarjpw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:21.925008"], ["updated_at", "2015-03-19 05:18:21.925008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c6ca78e-cdf7-11e4-ac55-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c6d8cb2-cdf7-11e4-9ad5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c6ca78e-cdf7-11e4-ac55-705681abff85"], ["organization_id", "5c6d8cb2-cdf7-11e4-9ad5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:21.928396"], ["updated_at", "2015-03-19 05:18:21.928396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5c6d8cb2-cdf7-11e4-9ad5-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"5c6d8cb2-cdf7-11e4-9ad5-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:21.933481' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "shDuob9PorzSGipjGKF2pACpF-bjoFMrIymAvoarjpw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:21.935000"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:21.936063"], ["id", "5c6d0a6c-cdf7-11e4-8357-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5c6d8cb2-cdf7-11e4-9ad5-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c6ca78e-cdf7-11e4-ac55-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c6ca78e-cdf7-11e4-ac55-705681abff85' LIMIT 1 [["organization_id", "5c6d8cb2-cdf7-11e4-9ad5-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5c6d8cb2-cdf7-11e4-9ad5-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$YzKh56kOhkAaBsSWh7YxoO8apzSn2AjfqchYZ.A/yfGlVjoFNAMAy"], ["created_at", "2015-03-19 05:18:21.951231"], ["updated_at", "2015-03-19 05:18:21.951231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:21.952926"], ["user_id", "5c718eac-cdf7-11e4-84da-705681abff85"], ["created_at", "2015-03-19 05:18:21.953761"], ["updated_at", "2015-03-19 05:18:21.953761"], ["token", "--gy48rdTeGJ-_9Idw3H1LVV8F7QPTzr5-op1wkhgNk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:21.957388"], ["updated_at", "2015-03-19 05:18:21.957388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c718eac-cdf7-11e4-84da-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c727d12-cdf7-11e4-ae3b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c718eac-cdf7-11e4-84da-705681abff85"], ["organization_id", "5c727d12-cdf7-11e4-ae3b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:21.960833"], ["updated_at", "2015-03-19 05:18:21.960833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5c727d12-cdf7-11e4-ae3b-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"5c727d12-cdf7-11e4-ae3b-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:21.965434' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "--gy48rdTeGJ-_9Idw3H1LVV8F7QPTzr5-op1wkhgNk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:21.966830"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:21.967804"], ["id", "5c71f6ee-cdf7-11e4-bcd4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5c727d12-cdf7-11e4-ae3b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c718eac-cdf7-11e4-84da-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c718eac-cdf7-11e4-84da-705681abff85' LIMIT 1 [["organization_id", "5c727d12-cdf7-11e4-ae3b-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5c727d12-cdf7-11e4-ae3b-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:18:21.974229"], ["id", "5c727d12-cdf7-11e4-ae3b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$kySZs.8Qygmj/0rgeUZNtev2OxaPnRpub36KAy34xnRlzgzPAkO96"], ["created_at", "2015-03-19 05:18:21.982847"], ["updated_at", "2015-03-19 05:18:21.982847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:21.984577"], ["user_id", "5c766332-cdf7-11e4-8ab1-705681abff85"], ["created_at", "2015-03-19 05:18:21.985405"], ["updated_at", "2015-03-19 05:18:21.985405"], ["token", "Wj8M_-_2SBGZFO1E3tGsy3U6Z0Y6tGP6y3fWTKq3Q3A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:21.989196"], ["updated_at", "2015-03-19 05:18:21.989196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c766332-cdf7-11e4-8ab1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c77574c-cdf7-11e4-ab24-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c766332-cdf7-11e4-8ab1-705681abff85"], ["organization_id", "5c77574c-cdf7-11e4-ab24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:21.993041"], ["updated_at", "2015-03-19 05:18:21.993041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$1wYC/pFLR9NjijT3nPDdhuZkYWybgDJLtkPNs5.QqiyAR7oMW0IMS"], ["created_at", "2015-03-19 05:18:21.998237"], ["updated_at", "2015-03-19 05:18:21.998237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.001648"], ["updated_at", "2015-03-19 05:18:22.001648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c78b6c8-cdf7-11e4-8be7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c7946ec-cdf7-11e4-a557-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c78b6c8-cdf7-11e4-8be7-705681abff85"], ["organization_id", "5c7946ec-cdf7-11e4-a557-705681abff85"], ["created_at", "2015-03-19 05:18:22.005944"], ["updated_at", "2015-03-19 05:18:22.005944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:22.011594' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Wj8M_-_2SBGZFO1E3tGsy3U6Z0Y6tGP6y3fWTKq3Q3A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:22.013132"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:22.014136"], ["id", "5c76d2ae-cdf7-11e4-8236-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c766332-cdf7-11e4-8ab1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "5c766332-cdf7-11e4-8ab1-705681abff85"]] Completed 200 OK in 24ms (Views: 2.8ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$3fbhSC4MNgjhpAUoLamEaejOMSROid6.2bFZiS.yqx9Yv45xxEOim"], ["created_at", "2015-03-19 05:18:22.041589"], ["updated_at", "2015-03-19 05:18:22.041589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.043224"], ["user_id", "5c7f5708-cdf7-11e4-ab83-705681abff85"], ["created_at", "2015-03-19 05:18:22.044050"], ["updated_at", "2015-03-19 05:18:22.044050"], ["token", "6M0u-de1P8JMnplMicE5Ksg7xl4qjZgwQMo95Fd_aEI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.047343"], ["updated_at", "2015-03-19 05:18:22.047343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c7f5708-cdf7-11e4-ab83-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c8033b2-cdf7-11e4-970f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c7f5708-cdf7-11e4-ab83-705681abff85"], ["organization_id", "5c8033b2-cdf7-11e4-970f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.050752"], ["updated_at", "2015-03-19 05:18:22.050752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$0CmVnaxLGw/gDguhMhApsuzGdxuL8rMcYXv/AzTDcwuKFtPas3db2"], ["created_at", "2015-03-19 05:18:22.055060"], ["updated_at", "2015-03-19 05:18:22.055060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.058486"], ["updated_at", "2015-03-19 05:18:22.058486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c81667e-cdf7-11e4-834d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c81ec70-cdf7-11e4-b912-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c81667e-cdf7-11e4-834d-705681abff85"], ["organization_id", "5c81ec70-cdf7-11e4-b912-705681abff85"], ["created_at", "2015-03-19 05:18:22.061867"], ["updated_at", "2015-03-19 05:18:22.061867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$ylKIH85zoeDGVwh7Dohgb.0RwSprPQGA3/85L3EHDShozRpzG95b."], ["created_at", "2015-03-19 05:18:22.072407"], ["updated_at", "2015-03-19 05:18:22.072407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.074365"], ["user_id", "5c841144-cdf7-11e4-9fa6-705681abff85"], ["created_at", "2015-03-19 05:18:22.075450"], ["updated_at", "2015-03-19 05:18:22.075450"], ["token", "xiHSXsC-YY4IbfgwOOtifymaIEyNqrIVgdfJJDwFfsk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.083006"], ["updated_at", "2015-03-19 05:18:22.083006"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c841144-cdf7-11e4-9fa6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c85b3aa-cdf7-11e4-983c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c841144-cdf7-11e4-9fa6-705681abff85"], ["organization_id", "5c85b3aa-cdf7-11e4-983c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.087579"], ["updated_at", "2015-03-19 05:18:22.087579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$/WYwdkCcLUJTqclpi9/S.uvIks.LPw8QVXWZRJS6JuApjsc75vDmC"], ["created_at", "2015-03-19 05:18:22.097806"], ["updated_at", "2015-03-19 05:18:22.097806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.099529"], ["user_id", "5c87e9d6-cdf7-11e4-aada-705681abff85"], ["created_at", "2015-03-19 05:18:22.100343"], ["updated_at", "2015-03-19 05:18:22.100343"], ["token", "k8mOimtWL7aVygSicfmpHO6FFQoJyNg6kksHAsZb2AE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.104251"], ["updated_at", "2015-03-19 05:18:22.104251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c87e9d6-cdf7-11e4-aada-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c88e4c6-cdf7-11e4-98d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c87e9d6-cdf7-11e4-aada-705681abff85"], ["organization_id", "5c88e4c6-cdf7-11e4-98d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.107472"], ["updated_at", "2015-03-19 05:18:22.107472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:22.112304' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k8mOimtWL7aVygSicfmpHO6FFQoJyNg6kksHAsZb2AE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:22.113719"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:22.114653"], ["id", "5c885362-cdf7-11e4-9d40-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$.dgbIdhBC1pJWSFk9hhv1ebKgg8rXiu1VMFAzN.bGsFxlFWeUbk4e"], ["created_at", "2015-03-19 05:18:22.122216"], ["updated_at", "2015-03-19 05:18:22.122216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.123807"], ["user_id", "5c8ba3a0-cdf7-11e4-b472-705681abff85"], ["created_at", "2015-03-19 05:18:22.124564"], ["updated_at", "2015-03-19 05:18:22.124564"], ["token", "iR1C21-BSg8yEDk-1XcIevXB18NWcVle5W2PP9ZeLiE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.128249"], ["updated_at", "2015-03-19 05:18:22.128249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c8ba3a0-cdf7-11e4-b472-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c8c98dc-cdf7-11e4-9ce6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c8ba3a0-cdf7-11e4-b472-705681abff85"], ["organization_id", "5c8c98dc-cdf7-11e4-9ce6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.132106"], ["updated_at", "2015-03-19 05:18:22.132106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-15" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-15", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:22.136468' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iR1C21-BSg8yEDk-1XcIevXB18NWcVle5W2PP9ZeLiE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:22.138125"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:22.140040"], ["id", "5c8c08a4-cdf7-11e4-8acd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-15"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c8ba3a0-cdf7-11e4-b472-705681abff85"]] Completed 200 OK in 8ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$dOLLc9kd8uMpdzRfEyrd5OecnWhog1zFnMDRqP6g/6GDyF2yTmOua"], ["created_at", "2015-03-19 05:18:22.150356"], ["updated_at", "2015-03-19 05:18:22.150356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.152070"], ["user_id", "5c8ff0ae-cdf7-11e4-9401-705681abff85"], ["created_at", "2015-03-19 05:18:22.152916"], ["updated_at", "2015-03-19 05:18:22.152916"], ["token", "67FtXo6BbFM1Hk3h9VnaOHn_-aPmKhe-8RIan5iD5AY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.156454"], ["updated_at", "2015-03-19 05:18:22.156454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c8ff0ae-cdf7-11e4-9401-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c90dac8-cdf7-11e4-94b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c8ff0ae-cdf7-11e4-9401-705681abff85"], ["organization_id", "5c90dac8-cdf7-11e4-94b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.159782"], ["updated_at", "2015-03-19 05:18:22.159782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-16" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-16", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:22.164412' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "67FtXo6BbFM1Hk3h9VnaOHn_-aPmKhe-8RIan5iD5AY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:22.166251"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:22.167516"], ["id", "5c9059a4-cdf7-11e4-a6c4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5c8ff0ae-cdf7-11e4-9401-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c8ff0ae-cdf7-11e4-9401-705681abff85' LIMIT 1 [["organization_id", "5c90dac8-cdf7-11e4-94b7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "5c90dac8-cdf7-11e4-94b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$9IqbT3XRB2nK5nLoFfjCf.jj.JGg.tLYS8jcPwun3p49aMh0ZQHku"], ["created_at", "2015-03-19 05:18:22.178173"], ["updated_at", "2015-03-19 05:18:22.178173"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (3.3ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.247740"], ["user_id", "5c942de0-cdf7-11e4-9189-705681abff85"], ["created_at", "2015-03-19 05:18:22.252526"], ["updated_at", "2015-03-19 05:18:22.252526"], ["token", "mKx3ALRtmKD7AyF7QP0DBM1WOxfA8AoK09tKzyafpaU"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (4.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.268807"], ["updated_at", "2015-03-19 05:18:22.268807"]]  (6.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c942de0-cdf7-11e4-9189-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ca21d7e-cdf7-11e4-8e2a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c942de0-cdf7-11e4-9189-705681abff85"], ["organization_id", "5ca21d7e-cdf7-11e4-8e2a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.282797"], ["updated_at", "2015-03-19 05:18:22.282797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$mleq6V55dnh1DZO39wPPZ.q3QY.bDTNXfyqGOzyKjAkd0KyzmtQ4e"], ["created_at", "2015-03-19 05:18:22.295800"], ["updated_at", "2015-03-19 05:18:22.295800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.297670"], ["user_id", "5ca62964-cdf7-11e4-8006-705681abff85"], ["created_at", "2015-03-19 05:18:22.298436"], ["updated_at", "2015-03-19 05:18:22.298436"], ["token", "zutHFZkyyUYQ6O_jhlsqIkUGl4TLDxE1beku28FzOvg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.302108"], ["updated_at", "2015-03-19 05:18:22.302108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ca62964-cdf7-11e4-8006-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ca722ce-cdf7-11e4-9fa6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ca62964-cdf7-11e4-8006-705681abff85"], ["organization_id", "5ca722ce-cdf7-11e4-9fa6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.306124"], ["updated_at", "2015-03-19 05:18:22.306124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$P/ML2nDs.Hm4vAQQ/xr2C.eo7SFsk2u3Q.q3ofrl7cUxCSiJ42Kwy"], ["created_at", "2015-03-19 05:18:22.316004"], ["updated_at", "2015-03-19 05:18:22.316004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.317619"], ["user_id", "5ca9378a-cdf7-11e4-9306-705681abff85"], ["created_at", "2015-03-19 05:18:22.318450"], ["updated_at", "2015-03-19 05:18:22.318450"], ["token", "uQ5l6MYchpc2Q9VP12m3sDYdWYP3WUp-mJ8I4G5oWqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.321766"], ["updated_at", "2015-03-19 05:18:22.321766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ca9378a-cdf7-11e4-9306-705681abff85' AND "clubhouse_memberships"."organization_id" = '5caa17ea-cdf7-11e4-9e75-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ca9378a-cdf7-11e4-9306-705681abff85"], ["organization_id", "5caa17ea-cdf7-11e4-9e75-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.325094"], ["updated_at", "2015-03-19 05:18:22.325094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:22.330000' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uQ5l6MYchpc2Q9VP12m3sDYdWYP3WUp-mJ8I4G5oWqM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:22.331853"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:22.332898"], ["id", "5ca99acc-cdf7-11e4-9698-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5ca9378a-cdf7-11e4-9306-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$PjQxPYDx0jMKozqSagrT1ulsoa5elViLY5ik/Q4wrJAA4Y7Gy0NU6"], ["created_at", "2015-03-19 05:18:22.353657"], ["updated_at", "2015-03-19 05:18:22.353657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.357278"], ["user_id", "5caf0b6a-cdf7-11e4-81bb-705681abff85"], ["created_at", "2015-03-19 05:18:22.359014"], ["updated_at", "2015-03-19 05:18:22.359014"], ["token", "ezDzAzgobnL95kEwa_ODuJXGIRa3dU506E3RTCblb3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.363354"], ["updated_at", "2015-03-19 05:18:22.363354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5caf0b6a-cdf7-11e4-81bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cb06cf8-cdf7-11e4-b1ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5caf0b6a-cdf7-11e4-81bb-705681abff85"], ["organization_id", "5cb06cf8-cdf7-11e4-b1ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.366644"], ["updated_at", "2015-03-19 05:18:22.366644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:22.371104' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ezDzAzgobnL95kEwa_ODuJXGIRa3dU506E3RTCblb3U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:22.372448"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:22.373426"], ["id", "5cafe5bc-cdf7-11e4-9d9c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5caf0b6a-cdf7-11e4-81bb-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.378367"], ["updated_at", "2015-03-19 05:18:22.378367"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5cb2b99a-cdf7-11e4-81ee-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5caf0b6a-cdf7-11e4-81bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cb2b99a-cdf7-11e4-81ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5caf0b6a-cdf7-11e4-81bb-705681abff85"], ["admin", "t"], ["organization_id", "5cb2b99a-cdf7-11e4-81ee-705681abff85"], ["created_at", "2015-03-19 05:18:22.382939"], ["updated_at", "2015-03-19 05:18:22.382939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$OkFzO.0yX3M0BhBJrkRYz.4vp0PjeeVG9wOhQpPJyf/lJAHFpS0KO"], ["created_at", "2015-03-19 05:18:22.391617"], ["updated_at", "2015-03-19 05:18:22.391617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.393206"], ["user_id", "5cb4bfce-cdf7-11e4-8867-705681abff85"], ["created_at", "2015-03-19 05:18:22.393971"], ["updated_at", "2015-03-19 05:18:22.393971"], ["token", "2AcWz5T1VgSOf7UF_aD7T2_emE51mU9LueMExUfeNhU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.398145"], ["updated_at", "2015-03-19 05:18:22.398145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cb4bfce-cdf7-11e4-8867-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cb5be06-cdf7-11e4-b518-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cb4bfce-cdf7-11e4-8867-705681abff85"], ["organization_id", "5cb5be06-cdf7-11e4-b518-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.401788"], ["updated_at", "2015-03-19 05:18:22.401788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-21" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-21", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:22.407093' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2AcWz5T1VgSOf7UF_aD7T2_emE51mU9LueMExUfeNhU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:22.408503"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:22.409470"], ["id", "5cb52496-cdf7-11e4-af44-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cb4bfce-cdf7-11e4-8867-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5cb4bfce-cdf7-11e4-8867-705681abff85' LIMIT 1 [["organization_id", "5cb5be06-cdf7-11e4-b518-705681abff85"]] Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 4.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$LGiZhNiOlllVgY.rahYE9ewv.TtUgfsMJQdJVnV4kgp/2XtmaTvMa"], ["created_at", "2015-03-19 05:18:22.425443"], ["updated_at", "2015-03-19 05:18:22.425443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.427250"], ["user_id", "5cb9ea80-cdf7-11e4-8d28-705681abff85"], ["created_at", "2015-03-19 05:18:22.428240"], ["updated_at", "2015-03-19 05:18:22.428240"], ["token", "CK6IywveVTT_1g_TV_HbEj58E0c5p9--euWDliKVqwI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.432150"], ["updated_at", "2015-03-19 05:18:22.432150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cb9ea80-cdf7-11e4-8d28-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cbaeee4-cdf7-11e4-9575-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cb9ea80-cdf7-11e4-8d28-705681abff85"], ["organization_id", "5cbaeee4-cdf7-11e4-9575-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.435856"], ["updated_at", "2015-03-19 05:18:22.435856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$aIt2yjlg.sGvctRUuRAwluBu93z9FUIaAgPwEoiV8ueh1aIPHdHUu"], ["created_at", "2015-03-19 05:18:22.445962"], ["updated_at", "2015-03-19 05:18:22.445962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.447886"], ["user_id", "5cbd12c8-cdf7-11e4-ae06-705681abff85"], ["created_at", "2015-03-19 05:18:22.448727"], ["updated_at", "2015-03-19 05:18:22.448727"], ["token", "JL9tvFUZ9OtcGA12G6-qTT-BTqn3A1uI6E3dEgqlPsU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.452462"], ["updated_at", "2015-03-19 05:18:22.452462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cbd12c8-cdf7-11e4-ae06-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cbe142a-cdf7-11e4-9521-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cbd12c8-cdf7-11e4-ae06-705681abff85"], ["organization_id", "5cbe142a-cdf7-11e4-9521-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.456307"], ["updated_at", "2015-03-19 05:18:22.456307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5cbe142a-cdf7-11e4-9521-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"5cbe142a-cdf7-11e4-9521-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:22.460730' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JL9tvFUZ9OtcGA12G6-qTT-BTqn3A1uI6E3dEgqlPsU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:22.462204"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:22.463153"], ["id", "5cbd7be6-cdf7-11e4-8afc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5cbe142a-cdf7-11e4-9521-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cbd12c8-cdf7-11e4-ae06-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5cbd12c8-cdf7-11e4-ae06-705681abff85' LIMIT 1 [["organization_id", "5cbe142a-cdf7-11e4-9521-705681abff85"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$5kmcpnTsa6cRpvqfu2AbBe1mPDq8GLTXSic3cOmxInbDMKCpcIAOO"], ["created_at", "2015-03-19 05:18:22.479099"], ["updated_at", "2015-03-19 05:18:22.479099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:22.481878"], ["user_id", "5cc238d4-cdf7-11e4-8904-705681abff85"], ["created_at", "2015-03-19 05:18:22.483171"], ["updated_at", "2015-03-19 05:18:22.483171"], ["token", "HXlivJhEXXY4IaRrsLKSeKe1UXFzfknMyRv0wKRcfO8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:22.492174"], ["updated_at", "2015-03-19 05:18:22.492174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cc238d4-cdf7-11e4-8904-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cc417bc-cdf7-11e4-abf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cc238d4-cdf7-11e4-8904-705681abff85"], ["organization_id", "5cc417bc-cdf7-11e4-abf3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:22.503054"], ["updated_at", "2015-03-19 05:18:22.503054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$HT86rDsZ8ENMTiwWVAWU8etLsTPeiZ6/JU/nL5PBNQQlldAFzNqFK"], ["created_at", "2015-03-19 05:18:35.367804"], ["updated_at", "2015-03-19 05:18:35.367804"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.436464"], ["user_id", "6474a102-cdf7-11e4-beea-705681abff85"], ["created_at", "2015-03-19 05:18:35.443227"], ["updated_at", "2015-03-19 05:18:35.443227"], ["token", "Z8EfHFds2ih-Q8fqhedRMSb_MhIiq_BNqF-iIlOd-W8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.453961"], ["updated_at", "2015-03-19 05:18:35.453961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6474a102-cdf7-11e4-beea-705681abff85' AND "clubhouse_memberships"."organization_id" = '647df388-cdf7-11e4-aaf2-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6474a102-cdf7-11e4-beea-705681abff85"], ["organization_id", "647df388-cdf7-11e4-aaf2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.465648"], ["updated_at", "2015-03-19 05:18:35.465648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-1" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:35.495390' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Z8EfHFds2ih-Q8fqhedRMSb_MhIiq_BNqF-iIlOd-W8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:35.503011"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:35.504322"], ["id", "647c5e10-cdf7-11e4-bcd8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-1"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6474a102-cdf7-11e4-beea-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6474a102-cdf7-11e4-beea-705681abff85' LIMIT 1 [["organization_id", "647df388-cdf7-11e4-aaf2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "647df388-cdf7-11e4-aaf2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 31ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$MQvzGhFi2wVDLEk9DUm26uyQEsBZq.1yvft.lJK5wYV2MheFHtKNy"], ["created_at", "2015-03-19 05:18:35.533031"], ["updated_at", "2015-03-19 05:18:35.533031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.534840"], ["user_id", "6489fcc8-cdf7-11e4-b4e9-705681abff85"], ["created_at", "2015-03-19 05:18:35.535669"], ["updated_at", "2015-03-19 05:18:35.535669"], ["token", "DnXl0i4Fy9kGyKS5uxLMHQK9O7u50M1kCEsXWf0ejnk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.539350"], ["updated_at", "2015-03-19 05:18:35.539350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6489fcc8-cdf7-11e4-b4e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '648af84e-cdf7-11e4-87e3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6489fcc8-cdf7-11e4-b4e9-705681abff85"], ["organization_id", "648af84e-cdf7-11e4-87e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.544023"], ["updated_at", "2015-03-19 05:18:35.544023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 2ms  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$T.KfqPToiI9UyjbxpKgzi.1DDxhGOwivJicw5HFzNSlmLOoy29hDS"], ["created_at", "2015-03-19 05:18:35.562476"], ["updated_at", "2015-03-19 05:18:35.562476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.564202"], ["user_id", "648e7866-cdf7-11e4-bdd4-705681abff85"], ["created_at", "2015-03-19 05:18:35.565008"], ["updated_at", "2015-03-19 05:18:35.565008"], ["token", "JwCD5baHsiPzJ_kYgEquIhaxn2wShzw7YY0kWDoxox8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.569055"], ["updated_at", "2015-03-19 05:18:35.569055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '648e7866-cdf7-11e4-bdd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '648f7ca2-cdf7-11e4-b494-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "648e7866-cdf7-11e4-bdd4-705681abff85"], ["organization_id", "648f7ca2-cdf7-11e4-b494-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.572746"], ["updated_at", "2015-03-19 05:18:35.572746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (3.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$iwYfUVdhTMIOrco4iY2NYex3y9CHMAFlyPB8KQiOKJ0Z27F4I.dju"], ["created_at", "2015-03-19 05:18:35.578455"], ["updated_at", "2015-03-19 05:18:35.578455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.585184"], ["updated_at", "2015-03-19 05:18:35.585184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6490f686-cdf7-11e4-a98c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6491ec44-cdf7-11e4-8d8f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6490f686-cdf7-11e4-a98c-705681abff85"], ["organization_id", "6491ec44-cdf7-11e4-8d8f-705681abff85"], ["created_at", "2015-03-19 05:18:35.588754"], ["updated_at", "2015-03-19 05:18:35.588754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:35.597075' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JwCD5baHsiPzJ_kYgEquIhaxn2wShzw7YY0kWDoxox8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:35.599045"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:35.600131"], ["id", "648ee3b4-cdf7-11e4-acd8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "648e7866-cdf7-11e4-bdd4-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "648e7866-cdf7-11e4-bdd4-705681abff85"]] Completed 200 OK in 17ms (Views: 4.2ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$fGWJ3dzODqzxdNGft5LFqe42GpVE57KK3qIJV6qMhiWFsGf0fmy5W"], ["created_at", "2015-03-19 05:18:35.621926"], ["updated_at", "2015-03-19 05:18:35.621926"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.624389"], ["user_id", "64978d2a-cdf7-11e4-bb6a-705681abff85"], ["created_at", "2015-03-19 05:18:35.625248"], ["updated_at", "2015-03-19 05:18:35.625248"], ["token", "50dUUni040EuwYLRwu8VP2qU7-89MoVY_ifpz3Rp86w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.628753"], ["updated_at", "2015-03-19 05:18:35.628753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64978d2a-cdf7-11e4-bb6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '649891ac-cdf7-11e4-a169-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64978d2a-cdf7-11e4-bb6a-705681abff85"], ["organization_id", "649891ac-cdf7-11e4-a169-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.632005"], ["updated_at", "2015-03-19 05:18:35.632005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$.vSumfdm2sRWs30IhONsvexHt60NA/Nj9vYc9evpz6jHojpaNa.2a"], ["created_at", "2015-03-19 05:18:35.637428"], ["updated_at", "2015-03-19 05:18:35.637428"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.641928"], ["updated_at", "2015-03-19 05:18:35.641928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6499fd58-cdf7-11e4-8872-705681abff85' AND "clubhouse_memberships"."organization_id" = '649a977c-cdf7-11e4-a706-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6499fd58-cdf7-11e4-8872-705681abff85"], ["organization_id", "649a977c-cdf7-11e4-a706-705681abff85"], ["created_at", "2015-03-19 05:18:35.645536"], ["updated_at", "2015-03-19 05:18:35.645536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$7HpSu9MtVnCJpTMwVvUP6uz.RdqpQjU7yVnSRMBLuxuXn.VCT6jRe"], ["created_at", "2015-03-19 05:18:35.656911"], ["updated_at", "2015-03-19 05:18:35.656911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.658618"], ["user_id", "649ce0f4-cdf7-11e4-9d65-705681abff85"], ["created_at", "2015-03-19 05:18:35.659446"], ["updated_at", "2015-03-19 05:18:35.659446"], ["token", "0MzfooQEwb163E7NCf4lUQiTrHwSj9do0J2xxeRTUXU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.663540"], ["updated_at", "2015-03-19 05:18:35.663540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '649ce0f4-cdf7-11e4-9d65-705681abff85' AND "clubhouse_memberships"."organization_id" = '649deb0c-cdf7-11e4-a1f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "649ce0f4-cdf7-11e4-9d65-705681abff85"], ["organization_id", "649deb0c-cdf7-11e4-a1f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.667922"], ["updated_at", "2015-03-19 05:18:35.667922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$aZ9A3jsp6AheLlFq5aPzFOwxZG9pJdODMlPuPyyo2CDYWQNhu5Q.."], ["created_at", "2015-03-19 05:18:35.680406"], ["updated_at", "2015-03-19 05:18:35.680406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.682022"], ["user_id", "64a07548-cdf7-11e4-a502-705681abff85"], ["created_at", "2015-03-19 05:18:35.682776"], ["updated_at", "2015-03-19 05:18:35.682776"], ["token", "Mf2YwXuMFvAEl_cDeoP1ppSwk84QFmCC0t0p6AcaUlw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.687089"], ["updated_at", "2015-03-19 05:18:35.687089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64a07548-cdf7-11e4-a502-705681abff85' AND "clubhouse_memberships"."organization_id" = '64a17722-cdf7-11e4-824e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64a07548-cdf7-11e4-a502-705681abff85"], ["organization_id", "64a17722-cdf7-11e4-824e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.690441"], ["updated_at", "2015-03-19 05:18:35.690441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:35.695568' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Mf2YwXuMFvAEl_cDeoP1ppSwk84QFmCC0t0p6AcaUlw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:35.696908"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:35.698128"], ["id", "64a0d600-cdf7-11e4-b75c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$5mN8pwxb7o9mT.WQw9x8heb6tGosLxVNK9eglMbJMqurESx6w/ZHC"], ["created_at", "2015-03-19 05:18:35.706487"], ["updated_at", "2015-03-19 05:18:35.706487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.709271"], ["user_id", "64a475e4-cdf7-11e4-9afe-705681abff85"], ["created_at", "2015-03-19 05:18:35.711017"], ["updated_at", "2015-03-19 05:18:35.711017"], ["token", "3ul3g57f3vpJP9GYly48Z0wDA8sI937gOeScEV1LFXY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.722740"], ["updated_at", "2015-03-19 05:18:35.722740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64a475e4-cdf7-11e4-9afe-705681abff85' AND "clubhouse_memberships"."organization_id" = '64a6ef36-cdf7-11e4-8119-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64a475e4-cdf7-11e4-9afe-705681abff85"], ["organization_id", "64a6ef36-cdf7-11e4-8119-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.726769"], ["updated_at", "2015-03-19 05:18:35.726769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-9" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-9", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:35.731943' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3ul3g57f3vpJP9GYly48Z0wDA8sI937gOeScEV1LFXY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:35.733577"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:35.734599"], ["id", "64a54b18-cdf7-11e4-80d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-9"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64a475e4-cdf7-11e4-9afe-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$KGRg9MACuc3pTIzitgT13uRGn6UdUG.tqGkO5ClMxZVe7r8jb95GK"], ["created_at", "2015-03-19 05:18:35.743716"], ["updated_at", "2015-03-19 05:18:35.743716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.745772"], ["user_id", "64aa1fee-cdf7-11e4-8506-705681abff85"], ["created_at", "2015-03-19 05:18:35.746604"], ["updated_at", "2015-03-19 05:18:35.746604"], ["token", "GW-tUM_kBPPnE6XKj7YR72UHj6Zj_Vczmk5JnN0paqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.750720"], ["updated_at", "2015-03-19 05:18:35.750720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64aa1fee-cdf7-11e4-8506-705681abff85' AND "clubhouse_memberships"."organization_id" = '64ab376c-cdf7-11e4-a14f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64aa1fee-cdf7-11e4-8506-705681abff85"], ["organization_id", "64ab376c-cdf7-11e4-a14f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.754512"], ["updated_at", "2015-03-19 05:18:35.754512"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$haNIPjbZn9lfuVQd4XLplOAP/Ryy43Z1yJ9a.fyv4k951yDT2Y/1S"], ["created_at", "2015-03-19 05:18:35.766651"], ["updated_at", "2015-03-19 05:18:35.766651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.768382"], ["user_id", "64ada010-cdf7-11e4-a905-705681abff85"], ["created_at", "2015-03-19 05:18:35.769257"], ["updated_at", "2015-03-19 05:18:35.769257"], ["token", "usB6dgI5ebYMOCTSHSifDAms-XEf8hWgGUmXn3jZ2Pk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.772884"], ["updated_at", "2015-03-19 05:18:35.772884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64ada010-cdf7-11e4-a905-705681abff85' AND "clubhouse_memberships"."organization_id" = '64ae8f5c-cdf7-11e4-b964-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64ada010-cdf7-11e4-a905-705681abff85"], ["organization_id", "64ae8f5c-cdf7-11e4-b964-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.776332"], ["updated_at", "2015-03-19 05:18:35.776332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:35.783888' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "usB6dgI5ebYMOCTSHSifDAms-XEf8hWgGUmXn3jZ2Pk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:35.785545"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:35.787516"], ["id", "64ae0a5a-cdf7-11e4-af37-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64ada010-cdf7-11e4-a905-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 24ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$6pAqAzNQepmYGPQSd/XvV.fYLZbg4inc6Vu9x9CYopHwh6DeOES.G"], ["created_at", "2015-03-19 05:18:35.813916"], ["updated_at", "2015-03-19 05:18:35.813916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.823707"], ["user_id", "64b60b38-cdf7-11e4-ae0f-705681abff85"], ["created_at", "2015-03-19 05:18:35.824590"], ["updated_at", "2015-03-19 05:18:35.824590"], ["token", "SKEpVDMIqn_6_GaOjAW945XB_u-yfCohrBEWgHd5JBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.828346"], ["updated_at", "2015-03-19 05:18:35.828346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64b60b38-cdf7-11e4-ae0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '64b70b50-cdf7-11e4-9f86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64b60b38-cdf7-11e4-ae0f-705681abff85"], ["organization_id", "64b70b50-cdf7-11e4-9f86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.831965"], ["updated_at", "2015-03-19 05:18:35.831965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:35.836762' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SKEpVDMIqn_6_GaOjAW945XB_u-yfCohrBEWgHd5JBk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:35.838772"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:35.840611"], ["id", "64b681bc-cdf7-11e4-9d07-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64b60b38-cdf7-11e4-ae0f-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.846510"], ["updated_at", "2015-03-19 05:18:35.846510"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "64b9cbf6-cdf7-11e4-98c3-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64b60b38-cdf7-11e4-ae0f-705681abff85' AND "clubhouse_memberships"."organization_id" = '64b9cbf6-cdf7-11e4-98c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64b60b38-cdf7-11e4-ae0f-705681abff85"], ["admin", "t"], ["organization_id", "64b9cbf6-cdf7-11e4-98c3-705681abff85"], ["created_at", "2015-03-19 05:18:35.851505"], ["updated_at", "2015-03-19 05:18:35.851505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.6ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Gnx2SuRLEhbbIfgRict2hOfKUnW8CBqc9/tgtY9I/50qkJE0KdLk6"], ["created_at", "2015-03-19 05:18:35.860519"], ["updated_at", "2015-03-19 05:18:35.860519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.862300"], ["user_id", "64bbf264-cdf7-11e4-a410-705681abff85"], ["created_at", "2015-03-19 05:18:35.863149"], ["updated_at", "2015-03-19 05:18:35.863149"], ["token", "L-wpRIhlY18wV0Q4PY3oO0SCLt314Pq3kvd5UnYMOUc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.867554"], ["updated_at", "2015-03-19 05:18:35.867554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64bbf264-cdf7-11e4-a410-705681abff85' AND "clubhouse_memberships"."organization_id" = '64bd050a-cdf7-11e4-827c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64bbf264-cdf7-11e4-a410-705681abff85"], ["organization_id", "64bd050a-cdf7-11e4-827c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.871020"], ["updated_at", "2015-03-19 05:18:35.871020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$yzn.jjS6lTlUqMvurY8iP.nyacgQXeHlLlnItEw7D.ez7eKIgIrDm"], ["created_at", "2015-03-19 05:18:35.881498"], ["updated_at", "2015-03-19 05:18:35.881498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.883137"], ["user_id", "64bf2510-cdf7-11e4-b212-705681abff85"], ["created_at", "2015-03-19 05:18:35.883955"], ["updated_at", "2015-03-19 05:18:35.883955"], ["token", "gkyzvwYZkd81XCzdmQKVMj5qnmV1q4_FxDxtQcA0hEU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.887744"], ["updated_at", "2015-03-19 05:18:35.887744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64bf2510-cdf7-11e4-b212-705681abff85' AND "clubhouse_memberships"."organization_id" = '64c01934-cdf7-11e4-90a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64bf2510-cdf7-11e4-b212-705681abff85"], ["organization_id", "64c01934-cdf7-11e4-90a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.891240"], ["updated_at", "2015-03-19 05:18:35.891240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/64c01934-cdf7-11e4-90a4-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"64c01934-cdf7-11e4-90a4-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:35.896526' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gkyzvwYZkd81XCzdmQKVMj5qnmV1q4_FxDxtQcA0hEU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:35.897903"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:35.899092"], ["id", "64bf8a0a-cdf7-11e4-8987-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "64c01934-cdf7-11e4-90a4-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64bf2510-cdf7-11e4-b212-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64bf2510-cdf7-11e4-b212-705681abff85' LIMIT 1 [["organization_id", "64c01934-cdf7-11e4-90a4-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '64c01934-cdf7-11e4-90a4-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$oElSX/VLsQVFzV8BLUmNhuCLSXjXYIyFFA/0/0Jg0PENNT3idjv1W"], ["created_at", "2015-03-19 05:18:35.914930"], ["updated_at", "2015-03-19 05:18:35.914930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.917047"], ["user_id", "64c44e8c-cdf7-11e4-9ea8-705681abff85"], ["created_at", "2015-03-19 05:18:35.918012"], ["updated_at", "2015-03-19 05:18:35.918012"], ["token", "qqX88GxudbVqhE5ezJnRhgePHkPsa4ClCVFDeoSc5ts"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.921589"], ["updated_at", "2015-03-19 05:18:35.921589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64c44e8c-cdf7-11e4-9ea8-705681abff85' AND "clubhouse_memberships"."organization_id" = '64c53ed2-cdf7-11e4-813d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64c44e8c-cdf7-11e4-9ea8-705681abff85"], ["organization_id", "64c53ed2-cdf7-11e4-813d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.924859"], ["updated_at", "2015-03-19 05:18:35.924859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/64c53ed2-cdf7-11e4-813d-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"64c53ed2-cdf7-11e4-813d-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:35.929746' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qqX88GxudbVqhE5ezJnRhgePHkPsa4ClCVFDeoSc5ts"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:35.931211"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:35.932194"], ["id", "64c4be8a-cdf7-11e4-b990-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "64c53ed2-cdf7-11e4-813d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64c44e8c-cdf7-11e4-9ea8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64c44e8c-cdf7-11e4-9ea8-705681abff85' LIMIT 1 [["organization_id", "64c53ed2-cdf7-11e4-813d-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '64c53ed2-cdf7-11e4-813d-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:18:35.938666"], ["id", "64c53ed2-cdf7-11e4-813d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$u7rsFMghsIqeE71Yuj70Jul9LQsyu.0aVibqhxg0KtIII1oHSw682"], ["created_at", "2015-03-19 05:18:35.947170"], ["updated_at", "2015-03-19 05:18:35.947170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.948877"], ["user_id", "64c92984-cdf7-11e4-8acf-705681abff85"], ["created_at", "2015-03-19 05:18:35.949907"], ["updated_at", "2015-03-19 05:18:35.949907"], ["token", "Jeid1Ajt9vAa6A9pZdQz0d6nbWo3n6Fa4R0asufCrh4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.955763"], ["updated_at", "2015-03-19 05:18:35.955763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64c92984-cdf7-11e4-8acf-705681abff85' AND "clubhouse_memberships"."organization_id" = '64ca7758-cdf7-11e4-a615-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64c92984-cdf7-11e4-8acf-705681abff85"], ["organization_id", "64ca7758-cdf7-11e4-a615-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.959143"], ["updated_at", "2015-03-19 05:18:35.959143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$D3DY3U144.7TcZE7Ig/1neyA29X4EbCvTc9MUcOHvzDBHEc4pnbS6"], ["created_at", "2015-03-19 05:18:35.973733"], ["updated_at", "2015-03-19 05:18:35.973733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:35.975834"], ["user_id", "64cd3eca-cdf7-11e4-b367-705681abff85"], ["created_at", "2015-03-19 05:18:35.976733"], ["updated_at", "2015-03-19 05:18:35.976733"], ["token", "0YqOVP9WeKMFWtnW_SnhMnNjd2bFU5qeomgxK_iPBM4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:35.980305"], ["updated_at", "2015-03-19 05:18:35.980305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64cd3eca-cdf7-11e4-b367-705681abff85' AND "clubhouse_memberships"."organization_id" = '64ce36fe-cdf7-11e4-a268-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64cd3eca-cdf7-11e4-b367-705681abff85"], ["organization_id", "64ce36fe-cdf7-11e4-a268-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:35.983958"], ["updated_at", "2015-03-19 05:18:35.983958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-17" for 127.0.0.1 at 2015-03-18 22:18:35 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-17", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:35.989186' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0YqOVP9WeKMFWtnW_SnhMnNjd2bFU5qeomgxK_iPBM4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:35.990600"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:35.991534"], ["id", "64cdb3c8-cdf7-11e4-9316-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-17"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64cd3eca-cdf7-11e4-b367-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64cd3eca-cdf7-11e4-b367-705681abff85' LIMIT 1 [["organization_id", "64ce36fe-cdf7-11e4-a268-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '64ce36fe-cdf7-11e4-a268-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$zCKDH2fPeaemajZl1FhJJeTEIKdbRp1UvK/bO9z.X9fPVnJj.Wqb."], ["created_at", "2015-03-19 05:18:36.004665"], ["updated_at", "2015-03-19 05:18:36.004665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:36.006656"], ["user_id", "64d1f6f4-cdf7-11e4-a18c-705681abff85"], ["created_at", "2015-03-19 05:18:36.007606"], ["updated_at", "2015-03-19 05:18:36.007606"], ["token", "dLPwbGtztOP9B7RJyj9w2hFkBvxJC0pjKT-YJfIVzvw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:36.011448"], ["updated_at", "2015-03-19 05:18:36.011448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64d1f6f4-cdf7-11e4-a18c-705681abff85' AND "clubhouse_memberships"."organization_id" = '64d2f68a-cdf7-11e4-874b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64d1f6f4-cdf7-11e4-a18c-705681abff85"], ["organization_id", "64d2f68a-cdf7-11e4-874b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:36.015342"], ["updated_at", "2015-03-19 05:18:36.015342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-18" for 127.0.0.1 at 2015-03-18 22:18:36 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-18", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:36.021318' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dLPwbGtztOP9B7RJyj9w2hFkBvxJC0pjKT-YJfIVzvw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:36.023213"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:36.025154"], ["id", "64d26d6e-cdf7-11e4-abc5-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-18"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64d1f6f4-cdf7-11e4-a18c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64d1f6f4-cdf7-11e4-a18c-705681abff85' LIMIT 1 [["organization_id", "64d2f68a-cdf7-11e4-874b-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '64d2f68a-cdf7-11e4-874b-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:18:36.033518"], ["id", "64d2f68a-cdf7-11e4-874b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$XkdDMNGXVxx5bwuliP1r5.5kUWHaOoXI/Y1gioMojP9xmqV9iyjFy"], ["created_at", "2015-03-19 05:18:36.041744"], ["updated_at", "2015-03-19 05:18:36.041744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:36.043493"], ["user_id", "64d79c62-cdf7-11e4-bc72-705681abff85"], ["created_at", "2015-03-19 05:18:36.044315"], ["updated_at", "2015-03-19 05:18:36.044315"], ["token", "l7SpPpq39WX6-_nxeVq_YVRWfvQegzzmcsruxFQ8Nog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:36.047832"], ["updated_at", "2015-03-19 05:18:36.047832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64d79c62-cdf7-11e4-bc72-705681abff85' AND "clubhouse_memberships"."organization_id" = '64d8826c-cdf7-11e4-b1cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64d79c62-cdf7-11e4-bc72-705681abff85"], ["organization_id", "64d8826c-cdf7-11e4-b1cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:36.051133"], ["updated_at", "2015-03-19 05:18:36.051133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/64d8826c-cdf7-11e4-b1cb-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:36 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"64d8826c-cdf7-11e4-b1cb-705681abff85", "organization"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:36.056254' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "l7SpPpq39WX6-_nxeVq_YVRWfvQegzzmcsruxFQ8Nog"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:36.058120"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:36.059977"], ["id", "64d802ba-cdf7-11e4-be47-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "64d8826c-cdf7-11e4-b1cb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64d79c62-cdf7-11e4-bc72-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64d79c62-cdf7-11e4-bc72-705681abff85' LIMIT 1 [["organization_id", "64d8826c-cdf7-11e4-b1cb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "64d8826c-cdf7-11e4-b1cb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$C6Mb1JnnoGtqLFfBw8kmiOT/y3hq2V8ELTl5zBz9Djhcg8Tdvkmqq"], ["created_at", "2015-03-19 05:18:36.071849"], ["updated_at", "2015-03-19 05:18:36.071849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:36.073848"], ["user_id", "64dc3704-cdf7-11e4-9628-705681abff85"], ["created_at", "2015-03-19 05:18:36.075039"], ["updated_at", "2015-03-19 05:18:36.075039"], ["token", "yxk05Sj-OvA-6sAUMHBbphWj7ALgpfT97mXF6sz8ynI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:36.078643"], ["updated_at", "2015-03-19 05:18:36.078643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64dc3704-cdf7-11e4-9628-705681abff85' AND "clubhouse_memberships"."organization_id" = '64dd37e4-cdf7-11e4-8acc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64dc3704-cdf7-11e4-9628-705681abff85"], ["organization_id", "64dd37e4-cdf7-11e4-8acc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:36.082447"], ["updated_at", "2015-03-19 05:18:36.082447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:36 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$a8jZUMob9kcKQdiM61lSme9.7pxCq16kMx.mguH.BAlly8DT2BUoK"], ["created_at", "2015-03-19 05:18:36.093592"], ["updated_at", "2015-03-19 05:18:36.093592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:36.095283"], ["user_id", "64df81f2-cdf7-11e4-9449-705681abff85"], ["created_at", "2015-03-19 05:18:36.096077"], ["updated_at", "2015-03-19 05:18:36.096077"], ["token", "fieTdzVtlbnJ2qgJtUNG5qpHUmpt2jIctUKg98EXToM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:36.099589"], ["updated_at", "2015-03-19 05:18:36.099589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64df81f2-cdf7-11e4-9449-705681abff85' AND "clubhouse_memberships"."organization_id" = '64e068f6-cdf7-11e4-9ce7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64df81f2-cdf7-11e4-9449-705681abff85"], ["organization_id", "64e068f6-cdf7-11e4-9ce7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:36.102907"], ["updated_at", "2015-03-19 05:18:36.102907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-21" for 127.0.0.1 at 2015-03-18 22:18:36 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-21", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:36.108472' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fieTdzVtlbnJ2qgJtUNG5qpHUmpt2jIctUKg98EXToM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:36.109902"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:36.110895"], ["id", "64dfe912-cdf7-11e4-a489-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64df81f2-cdf7-11e4-9449-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '64df81f2-cdf7-11e4-9449-705681abff85' LIMIT 1 [["organization_id", "64e068f6-cdf7-11e4-9ce7-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$L5P26sfi3BegfOve3ujZFORSglbrQNsSEeX5u6Hm1zHsr9s.tyGIa"], ["created_at", "2015-03-19 05:18:36.121978"], ["updated_at", "2015-03-19 05:18:36.121978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:36.123647"], ["user_id", "64e3d54a-cdf7-11e4-b7ab-705681abff85"], ["created_at", "2015-03-19 05:18:36.125106"], ["updated_at", "2015-03-19 05:18:36.125106"], ["token", "dhltSrK4I7e5t_cme02EUeueejRqCYCG_wZ0fodMK54"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:36.129790"], ["updated_at", "2015-03-19 05:18:36.129790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64e3d54a-cdf7-11e4-b7ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '64e5050a-cdf7-11e4-a570-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64e3d54a-cdf7-11e4-b7ab-705681abff85"], ["organization_id", "64e5050a-cdf7-11e4-a570-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:36.134299"], ["updated_at", "2015-03-19 05:18:36.134299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:36 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$ePbochBQsN5ttsLjb0FZKek4cTfFNleAfK/enchcq.Yai3EHj59fi"], ["created_at", "2015-03-19 05:18:36.144947"], ["updated_at", "2015-03-19 05:18:36.144947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:36.146717"], ["user_id", "64e759e0-cdf7-11e4-b3d5-705681abff85"], ["created_at", "2015-03-19 05:18:36.147514"], ["updated_at", "2015-03-19 05:18:36.147514"], ["token", "BD20hStRHEWkdNLLyXcsaohnTqQks-TJd1LyPKK0PnM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:36.151128"], ["updated_at", "2015-03-19 05:18:36.151128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64e759e0-cdf7-11e4-b3d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '64e84738-cdf7-11e4-81e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64e759e0-cdf7-11e4-b3d5-705681abff85"], ["organization_id", "64e84738-cdf7-11e4-81e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:36.154440"], ["updated_at", "2015-03-19 05:18:36.154440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/64e84738-cdf7-11e4-81e8-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:36 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"64e84738-cdf7-11e4-81e8-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:36.159415' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BD20hStRHEWkdNLLyXcsaohnTqQks-TJd1LyPKK0PnM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:36.160790"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:36.161845"], ["id", "64e7c146-cdf7-11e4-a28a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "64e84738-cdf7-11e4-81e8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64e759e0-cdf7-11e4-b3d5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '64e759e0-cdf7-11e4-b3d5-705681abff85' LIMIT 1 [["organization_id", "64e84738-cdf7-11e4-81e8-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$JDOMMn9C9cJ.lrgc2kYcBu8ZqtkwVfE64avO4tJfGXrbUqe2otdmm"], ["created_at", "2015-03-19 05:18:36.173563"], ["updated_at", "2015-03-19 05:18:36.173563"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:36.175896"], ["user_id", "64ebb7e2-cdf7-11e4-bc4d-705681abff85"], ["created_at", "2015-03-19 05:18:36.177031"], ["updated_at", "2015-03-19 05:18:36.177031"], ["token", "GtOPDLm6dnVNbMa9TeYT-b5J61fHpEVwb5tks-fdDEs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:36.258280"], ["updated_at", "2015-03-19 05:18:36.258280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64ebb7e2-cdf7-11e4-bc4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '64f9b766-cdf7-11e4-90f3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64ebb7e2-cdf7-11e4-bc4d-705681abff85"], ["organization_id", "64f9b766-cdf7-11e4-90f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:36.270379"], ["updated_at", "2015-03-19 05:18:36.270379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:36 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (32.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$qzdoGGKFqb4UnTZBoDC0feA97Fwoq.VtJZqiEf/a5qPp6qEhjvz/C"], ["created_at", "2015-03-19 05:18:47.039331"], ["updated_at", "2015-03-19 05:18:47.039331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.112222"], ["user_id", "6b6aa844-cdf7-11e4-8531-705681abff85"], ["created_at", "2015-03-19 05:18:47.117942"], ["updated_at", "2015-03-19 05:18:47.117942"], ["token", "DHR38bKPv02Bjdp2qREU8zQDsd2AbbyHPz9P5Xx2gIo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.127250"], ["updated_at", "2015-03-19 05:18:47.127250"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b6aa844-cdf7-11e4-8531-705681abff85' AND "clubhouse_memberships"."organization_id" = '6b732136-cdf7-11e4-88be-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6b6aa844-cdf7-11e4-8531-705681abff85"], ["organization_id", "6b732136-cdf7-11e4-88be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.139231"], ["updated_at", "2015-03-19 05:18:47.139231"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Kw2BREQCbz/SPBdl73z4FuFzNzKl2LE4OlDlcEc30Pib4Ev/sKBJa"], ["created_at", "2015-03-19 05:18:47.176438"], ["updated_at", "2015-03-19 05:18:47.176438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.178252"], ["user_id", "6b7a9f60-cdf7-11e4-b31a-705681abff85"], ["created_at", "2015-03-19 05:18:47.208079"], ["updated_at", "2015-03-19 05:18:47.208079"], ["token", "Jp8IdhJQPr2731wLXn7jI5WuBdE_v11Pd4QnhUfP6v4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.214379"], ["updated_at", "2015-03-19 05:18:47.214379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b7a9f60-cdf7-11e4-b31a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6b80750c-cdf7-11e4-b60f-705681abff85') LIMIT 1 SQL (17.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6b7a9f60-cdf7-11e4-b31a-705681abff85"], ["organization_id", "6b80750c-cdf7-11e4-b60f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.219620"], ["updated_at", "2015-03-19 05:18:47.219620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-2" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.271495' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Jp8IdhJQPr2731wLXn7jI5WuBdE_v11Pd4QnhUfP6v4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.279860"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.281078"], ["id", "6b7f9b50-cdf7-11e4-a355-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-2"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6b7a9f60-cdf7-11e4-b31a-705681abff85"]] Completed 200 OK in 20ms (ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$qdMj3Vynp1TIJs5.N1RCSexMradvl.j6AWdOC7Hmmwz8N0ZcpAYA2"], ["created_at", "2015-03-19 05:18:47.298610"], ["updated_at", "2015-03-19 05:18:47.298610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.300298"], ["user_id", "6b8d4250-cdf7-11e4-b5ca-705681abff85"], ["created_at", "2015-03-19 05:18:47.301056"], ["updated_at", "2015-03-19 05:18:47.301056"], ["token", "rLgE4z_kCrOdKIz1bWwtTki6PdSYQKhmEGeMB28OQu0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.304675"], ["updated_at", "2015-03-19 05:18:47.304675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b8d4250-cdf7-11e4-b5ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '6b8e3ac0-cdf7-11e4-89df-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6b8d4250-cdf7-11e4-b5ca-705681abff85"], ["organization_id", "6b8e3ac0-cdf7-11e4-89df-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.308548"], ["updated_at", "2015-03-19 05:18:47.308548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.313757' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rLgE4z_kCrOdKIz1bWwtTki6PdSYQKhmEGeMB28OQu0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.315716"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.317617"], ["id", "6b8da682-cdf7-11e4-90cb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$7VZyYDEEVYwkEogKAcjLROMKb9HHVrN0nP5KLtLJrWvX3cBCdiJsu"], ["created_at", "2015-03-19 05:18:47.326180"], ["updated_at", "2015-03-19 05:18:47.326180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.327766"], ["user_id", "6b917686-cdf7-11e4-a836-705681abff85"], ["created_at", "2015-03-19 05:18:47.328682"], ["updated_at", "2015-03-19 05:18:47.328682"], ["token", "i8FYMlu9DSUfl3IPlId2dPRSAHZ4p_NA1pTe2HTWKEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.332833"], ["updated_at", "2015-03-19 05:18:47.332833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b917686-cdf7-11e4-a836-705681abff85' AND "clubhouse_memberships"."organization_id" = '6b927978-cdf7-11e4-86b2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6b917686-cdf7-11e4-a836-705681abff85"], ["organization_id", "6b927978-cdf7-11e4-86b2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.336160"], ["updated_at", "2015-03-19 05:18:47.336160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$rrZAQkERARmrnu5EX7JVyeQQE3082mFWow72ysUvFUuTdCBfPVHD2"], ["created_at", "2015-03-19 05:18:47.341511"], ["updated_at", "2015-03-19 05:18:47.341511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.345072"], ["updated_at", "2015-03-19 05:18:47.345072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b93d57a-cdf7-11e4-a6f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '6b94569e-cdf7-11e4-9877-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6b93d57a-cdf7-11e4-a6f3-705681abff85"], ["organization_id", "6b94569e-cdf7-11e4-9877-705681abff85"], ["created_at", "2015-03-19 05:18:47.348317"], ["updated_at", "2015-03-19 05:18:47.348317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$UdwFWNe5C1tZ5N.yJ59kQ.tzVH9gSv1rl7dNS52TXC1FoOZbc7Jcy"], ["created_at", "2015-03-19 05:18:47.360093"], ["updated_at", "2015-03-19 05:18:47.360093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.362084"], ["user_id", "6b96a3a4-cdf7-11e4-9f42-705681abff85"], ["created_at", "2015-03-19 05:18:47.362940"], ["updated_at", "2015-03-19 05:18:47.362940"], ["token", "ZKVfuDzuOuvULH7iPStUQukpM6ybYe_yZpYi9kSRmrk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.366482"], ["updated_at", "2015-03-19 05:18:47.366482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b96a3a4-cdf7-11e4-9f42-705681abff85' AND "clubhouse_memberships"."organization_id" = '6b979f52-cdf7-11e4-b794-705681abff85') LIMIT 1 SQL (6.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6b96a3a4-cdf7-11e4-9f42-705681abff85"], ["organization_id", "6b979f52-cdf7-11e4-b794-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.370215"], ["updated_at", "2015-03-19 05:18:47.370215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$aqf5RZc8Q44HCiJQJZMFeuQ5RmZ4B5kcO9TjscU8qRzGBgQUzK5DC"], ["created_at", "2015-03-19 05:18:47.381627"], ["updated_at", "2015-03-19 05:18:47.381627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.385221"], ["updated_at", "2015-03-19 05:18:47.385221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b99eb54-cdf7-11e4-8c8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6b9a75ba-cdf7-11e4-b244-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6b99eb54-cdf7-11e4-8c8a-705681abff85"], ["organization_id", "6b9a75ba-cdf7-11e4-b244-705681abff85"], ["created_at", "2015-03-19 05:18:47.388530"], ["updated_at", "2015-03-19 05:18:47.388530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.393509' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZKVfuDzuOuvULH7iPStUQukpM6ybYe_yZpYi9kSRmrk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.394982"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.395956"], ["id", "6b9719f6-cdf7-11e4-8ae1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6b96a3a4-cdf7-11e4-9f42-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "6b96a3a4-cdf7-11e4-9f42-705681abff85"]] Completed 200 OK in 22ms (Views: 4.3ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$SdJobQIIeYShj39zzBYwA.AcI0WbRe4Zt5ic9VlrSxCT8751iQGHi"], ["created_at", "2015-03-19 05:18:47.423435"], ["updated_at", "2015-03-19 05:18:47.423435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.424977"], ["user_id", "6ba04cf6-cdf7-11e4-b563-705681abff85"], ["created_at", "2015-03-19 05:18:47.425732"], ["updated_at", "2015-03-19 05:18:47.425732"], ["token", "wljk_i9rbA2aHBA9NfjY71RcbZHOX42hVT910NX7ivQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.429589"], ["updated_at", "2015-03-19 05:18:47.429589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ba04cf6-cdf7-11e4-b563-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ba13b20-cdf7-11e4-a08d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ba04cf6-cdf7-11e4-b563-705681abff85"], ["organization_id", "6ba13b20-cdf7-11e4-a08d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.432871"], ["updated_at", "2015-03-19 05:18:47.432871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$r5eoxIKQGG3NNmX2yBw21ehPA2l9TxtI4WiOxThBZ/1iW4p/z4iTG"], ["created_at", "2015-03-19 05:18:47.443818"], ["updated_at", "2015-03-19 05:18:47.443818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.445460"], ["user_id", "6ba36a12-cdf7-11e4-b4b3-705681abff85"], ["created_at", "2015-03-19 05:18:47.446275"], ["updated_at", "2015-03-19 05:18:47.446275"], ["token", "l7ZZJAs4Uiq5zFT4aTwU6p2O6izO9Ze5ZafNXUhKI_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.449705"], ["updated_at", "2015-03-19 05:18:47.449705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ba36a12-cdf7-11e4-b4b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ba44d06-cdf7-11e4-94f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ba36a12-cdf7-11e4-b4b3-705681abff85"], ["organization_id", "6ba44d06-cdf7-11e4-94f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.453061"], ["updated_at", "2015-03-19 05:18:47.453061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.458553' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "l7ZZJAs4Uiq5zFT4aTwU6p2O6izO9Ze5ZafNXUhKI_0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.460588"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.461665"], ["id", "6ba3ce6c-cdf7-11e4-9149-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ba36a12-cdf7-11e4-b4b3-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.469426"], ["updated_at", "2015-03-19 05:18:47.469426"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ba753a2-cdf7-11e4-8bea-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ba36a12-cdf7-11e4-b4b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ba753a2-cdf7-11e4-8bea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ba36a12-cdf7-11e4-b4b3-705681abff85"], ["admin", "t"], ["organization_id", "6ba753a2-cdf7-11e4-8bea-705681abff85"], ["created_at", "2015-03-19 05:18:47.476253"], ["updated_at", "2015-03-19 05:18:47.476253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 0.5ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$paKl21YJHViaOvaMoyjMXe.HVMrTVzZX/FtKpW48vNrPBjHULN9P."], ["created_at", "2015-03-19 05:18:47.484855"], ["updated_at", "2015-03-19 05:18:47.484855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.487206"], ["user_id", "6ba9c5c4-cdf7-11e4-9298-705681abff85"], ["created_at", "2015-03-19 05:18:47.488257"], ["updated_at", "2015-03-19 05:18:47.488257"], ["token", "lBXOzFHPcseXI5ukiAGwkcP7qJOORx785B44FLS07co"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.492039"], ["updated_at", "2015-03-19 05:18:47.492039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ba9c5c4-cdf7-11e4-9298-705681abff85' AND "clubhouse_memberships"."organization_id" = '6baac26c-cdf7-11e4-929f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ba9c5c4-cdf7-11e4-9298-705681abff85"], ["organization_id", "6baac26c-cdf7-11e4-929f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.495830"], ["updated_at", "2015-03-19 05:18:47.495830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.502052' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lBXOzFHPcseXI5ukiAGwkcP7qJOORx785B44FLS07co"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.503530"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.504646"], ["id", "6baa3afe-cdf7-11e4-bd8c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ba9c5c4-cdf7-11e4-9298-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$uxM7SBnzOCo1JOGiB7GhDuZvdqzVFGQ1R9uSjiZw0FoMrxT0vIho6"], ["created_at", "2015-03-19 05:18:47.526412"], ["updated_at", "2015-03-19 05:18:47.526412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.528536"], ["user_id", "6bb00718-cdf7-11e4-97b9-705681abff85"], ["created_at", "2015-03-19 05:18:47.529727"], ["updated_at", "2015-03-19 05:18:47.529727"], ["token", "4jM4qVaBXXYiLCFTmyLwjpMjnjHskKrlPZIseBushko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.534091"], ["updated_at", "2015-03-19 05:18:47.534091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bb00718-cdf7-11e4-97b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bb12eb8-cdf7-11e4-b1be-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bb00718-cdf7-11e4-97b9-705681abff85"], ["organization_id", "6bb12eb8-cdf7-11e4-b1be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.537832"], ["updated_at", "2015-03-19 05:18:47.537832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$tgBm7noUcvyBdj.NdwL81.nbIPxR.gGrdBCdFB.eMSHhPp339W8Di"], ["created_at", "2015-03-19 05:18:47.555545"], ["updated_at", "2015-03-19 05:18:47.555545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.557271"], ["user_id", "6bb477bc-cdf7-11e4-b8a8-705681abff85"], ["created_at", "2015-03-19 05:18:47.558694"], ["updated_at", "2015-03-19 05:18:47.558694"], ["token", "8tOBgOuH676rThLoXSk5XF24SS_Afvr5LSmm7zkbb3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.562940"], ["updated_at", "2015-03-19 05:18:47.562940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bb477bc-cdf7-11e4-b8a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bb596ec-cdf7-11e4-982e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bb477bc-cdf7-11e4-b8a8-705681abff85"], ["organization_id", "6bb596ec-cdf7-11e4-982e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.566377"], ["updated_at", "2015-03-19 05:18:47.566377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/6bb596ec-cdf7-11e4-982e-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"6bb596ec-cdf7-11e4-982e-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.571275' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8tOBgOuH676rThLoXSk5XF24SS_Afvr5LSmm7zkbb3k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.572706"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.574003"], ["id", "6bb4ff8e-cdf7-11e4-a12d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6bb596ec-cdf7-11e4-982e-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6bb477bc-cdf7-11e4-b8a8-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6bb477bc-cdf7-11e4-b8a8-705681abff85' LIMIT 1 [["organization_id", "6bb596ec-cdf7-11e4-982e-705681abff85"]] Completed 200 OK in 13ms (Views: 1.2ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$9nuzy6Pd6vrFTjnWwfLa2eLpLNSa8PjuKYd7SfqHN4wiiv7Jxrtey"], ["created_at", "2015-03-19 05:18:47.592090"], ["updated_at", "2015-03-19 05:18:47.592090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.593798"], ["user_id", "6bba0c04-cdf7-11e4-9d2f-705681abff85"], ["created_at", "2015-03-19 05:18:47.594567"], ["updated_at", "2015-03-19 05:18:47.594567"], ["token", "jSYdCCcenHFICPU4NQWUS0hAMW1attkw9jibs1NiU3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.598155"], ["updated_at", "2015-03-19 05:18:47.598155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bba0c04-cdf7-11e4-9d2f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bbafb00-cdf7-11e4-b729-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bba0c04-cdf7-11e4-9d2f-705681abff85"], ["organization_id", "6bbafb00-cdf7-11e4-b729-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.601935"], ["updated_at", "2015-03-19 05:18:47.601935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$rlgERNPBW0FNtjulANi9l./CJPK6yl9IwJY7V39nWmUV9BnyTr9sy"], ["created_at", "2015-03-19 05:18:47.614557"], ["updated_at", "2015-03-19 05:18:47.614557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.616167"], ["user_id", "6bbd7722-cdf7-11e4-b88d-705681abff85"], ["created_at", "2015-03-19 05:18:47.616959"], ["updated_at", "2015-03-19 05:18:47.616959"], ["token", "tgshgBn1QeriVSJRklV143z2r6T67epVOt3JPYPh6pg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.620247"], ["updated_at", "2015-03-19 05:18:47.620247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bbd7722-cdf7-11e4-b88d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bbe58d6-cdf7-11e4-a2bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bbd7722-cdf7-11e4-b88d-705681abff85"], ["organization_id", "6bbe58d6-cdf7-11e4-a2bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.624799"], ["updated_at", "2015-03-19 05:18:47.624799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-14" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.629072' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tgshgBn1QeriVSJRklV143z2r6T67epVOt3JPYPh6pg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.630898"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.632771"], ["id", "6bbdd8a2-cdf7-11e4-8bd5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-14"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6bbd7722-cdf7-11e4-b88d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6bbd7722-cdf7-11e4-b88d-705681abff85' LIMIT 1 [["organization_id", "6bbe58d6-cdf7-11e4-a2bb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "6bbe58d6-cdf7-11e4-a2bb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$s6SVDR.UyCO/vrPRt6NC5OU.kcjPN6DtDhnTtTyWtyWNefa2vgoBi"], ["created_at", "2015-03-19 05:18:47.646060"], ["updated_at", "2015-03-19 05:18:47.646060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.647634"], ["user_id", "6bc244e6-cdf7-11e4-b040-705681abff85"], ["created_at", "2015-03-19 05:18:47.648409"], ["updated_at", "2015-03-19 05:18:47.648409"], ["token", "HmIAf2PDzz03olU7i0PVt7Uj_SyWC5RqVaMmVQHZMgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.651727"], ["updated_at", "2015-03-19 05:18:47.651727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bc244e6-cdf7-11e4-b040-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bc31f9c-cdf7-11e4-9bdb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bc244e6-cdf7-11e4-b040-705681abff85"], ["organization_id", "6bc31f9c-cdf7-11e4-9bdb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.655114"], ["updated_at", "2015-03-19 05:18:47.655114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$YMDWLbu3MrUJjsOD17YAz.JTz4zMDRVi9zhEqufEbXpS8X2Fr8.sC"], ["created_at", "2015-03-19 05:18:47.664904"], ["updated_at", "2015-03-19 05:18:47.664904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.666593"], ["user_id", "6bc526d4-cdf7-11e4-a5b4-705681abff85"], ["created_at", "2015-03-19 05:18:47.667529"], ["updated_at", "2015-03-19 05:18:47.667529"], ["token", "DzufJ-WAPY2L9TXFBfSOta-EaLcL-EKTTJd4zMLArAI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.670892"], ["updated_at", "2015-03-19 05:18:47.670892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bc526d4-cdf7-11e4-a5b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bc60d1a-cdf7-11e4-96df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bc526d4-cdf7-11e4-a5b4-705681abff85"], ["organization_id", "6bc60d1a-cdf7-11e4-96df-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.674208"], ["updated_at", "2015-03-19 05:18:47.674208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-16" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-16", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.679599' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DzufJ-WAPY2L9TXFBfSOta-EaLcL-EKTTJd4zMLArAI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.681006"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.681911"], ["id", "6bc591dc-cdf7-11e4-a8f0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6bc526d4-cdf7-11e4-a5b4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6bc526d4-cdf7-11e4-a5b4-705681abff85' LIMIT 1 [["organization_id", "6bc60d1a-cdf7-11e4-96df-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$1kDqsrPodZVMhr/Uw1HeJOY3bVIIpNXQWL7Sjhw8CjtvvZFaQlHXC"], ["created_at", "2015-03-19 05:18:47.693627"], ["updated_at", "2015-03-19 05:18:47.693627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.697323"], ["user_id", "6bc98922-cdf7-11e4-a5c1-705681abff85"], ["created_at", "2015-03-19 05:18:47.698101"], ["updated_at", "2015-03-19 05:18:47.698101"], ["token", "2UCfPOniYLsS8m2jozOtfSuB8NlPJOgd7CoZ17BIdnw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.701662"], ["updated_at", "2015-03-19 05:18:47.701662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bc98922-cdf7-11e4-a5c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bcac2e2-cdf7-11e4-afa0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bc98922-cdf7-11e4-a5c1-705681abff85"], ["organization_id", "6bcac2e2-cdf7-11e4-afa0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.705209"], ["updated_at", "2015-03-19 05:18:47.705209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$ED2eLSurvAQX0U99rwVlhuUOcnbSo45lzxwaD4z.qveEmoDI148ci"], ["created_at", "2015-03-19 05:18:47.715429"], ["updated_at", "2015-03-19 05:18:47.715429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.717364"], ["user_id", "6bccdf1e-cdf7-11e4-bd07-705681abff85"], ["created_at", "2015-03-19 05:18:47.718166"], ["updated_at", "2015-03-19 05:18:47.718166"], ["token", "FiWf9KyywNUTHjf6oSxYNqZK0eUXyQsR_KLB5So8mmg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.721626"], ["updated_at", "2015-03-19 05:18:47.721626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bccdf1e-cdf7-11e4-bd07-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bcdc9e2-cdf7-11e4-aa4f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bccdf1e-cdf7-11e4-bd07-705681abff85"], ["organization_id", "6bcdc9e2-cdf7-11e4-aa4f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.725000"], ["updated_at", "2015-03-19 05:18:47.725000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/6bcdc9e2-cdf7-11e4-aa4f-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"6bcdc9e2-cdf7-11e4-aa4f-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.729837' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FiWf9KyywNUTHjf6oSxYNqZK0eUXyQsR_KLB5So8mmg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.731707"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.733595"], ["id", "6bcd4c9c-cdf7-11e4-8ede-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6bcdc9e2-cdf7-11e4-aa4f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6bccdf1e-cdf7-11e4-bd07-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6bccdf1e-cdf7-11e4-bd07-705681abff85' LIMIT 1 [["organization_id", "6bcdc9e2-cdf7-11e4-aa4f-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6bcdc9e2-cdf7-11e4-aa4f-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:18:47.741906"], ["id", "6bcdc9e2-cdf7-11e4-aa4f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$/qk5fOqjc/xe9H6thjpKYOXELl3z/vyESlDjfJcevVT2kBe0Ffq6G"], ["created_at", "2015-03-19 05:18:47.750042"], ["updated_at", "2015-03-19 05:18:47.750042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.751614"], ["user_id", "6bd22262-cdf7-11e4-a44c-705681abff85"], ["created_at", "2015-03-19 05:18:47.752424"], ["updated_at", "2015-03-19 05:18:47.752424"], ["token", "Cq68PMXxOM4pJBPiSrfNuwkrF55Sufc5OT2EkUl0JSI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.755745"], ["updated_at", "2015-03-19 05:18:47.755745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bd22262-cdf7-11e4-a44c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bd2fda4-cdf7-11e4-bb0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bd22262-cdf7-11e4-a44c-705681abff85"], ["organization_id", "6bd2fda4-cdf7-11e4-bb0f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.758891"], ["updated_at", "2015-03-19 05:18:47.758891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/6bd2fda4-cdf7-11e4-bb0f-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"6bd2fda4-cdf7-11e4-bb0f-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.763912' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Cq68PMXxOM4pJBPiSrfNuwkrF55Sufc5OT2EkUl0JSI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.765334"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.766290"], ["id", "6bd283ec-cdf7-11e4-8c63-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6bd2fda4-cdf7-11e4-bb0f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6bd22262-cdf7-11e4-a44c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6bd22262-cdf7-11e4-a44c-705681abff85' LIMIT 1 [["organization_id", "6bd2fda4-cdf7-11e4-bb0f-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6bd2fda4-cdf7-11e4-bb0f-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$0axc4J9iWvilN0R5VXy2PeUpY/LXcQAtB1ptWbi9Tj/qcY9wqNbPe"], ["created_at", "2015-03-19 05:18:47.780897"], ["updated_at", "2015-03-19 05:18:47.780897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.782905"], ["user_id", "6bd6df0a-cdf7-11e4-9e3c-705681abff85"], ["created_at", "2015-03-19 05:18:47.783785"], ["updated_at", "2015-03-19 05:18:47.783785"], ["token", "XJNsM2HtMYmQTvJCad1OY_5rjCnuRkEmmuaVKEyj_9s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.787537"], ["updated_at", "2015-03-19 05:18:47.787537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bd6df0a-cdf7-11e4-9e3c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bd7d8e2-cdf7-11e4-b307-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bd6df0a-cdf7-11e4-9e3c-705681abff85"], ["organization_id", "6bd7d8e2-cdf7-11e4-b307-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.790903"], ["updated_at", "2015-03-19 05:18:47.790903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$AWtfrYpzSiLUAAU908ElJOQb5InO3DdmVFU7eXGoR7avuQaUEvKhS"], ["created_at", "2015-03-19 05:18:47.805857"], ["updated_at", "2015-03-19 05:18:47.805857"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.808865"], ["user_id", "6bdabd78-cdf7-11e4-8654-705681abff85"], ["created_at", "2015-03-19 05:18:47.809806"], ["updated_at", "2015-03-19 05:18:47.809806"], ["token", "d6dcAJkaVU04w1qY7_vnTdX5S5YfIwNCTxNiDuMODF0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.813965"], ["updated_at", "2015-03-19 05:18:47.813965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bdabd78-cdf7-11e4-8654-705681abff85' AND "clubhouse_memberships"."organization_id" = '6bdbe3e2-cdf7-11e4-89f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bdabd78-cdf7-11e4-8654-705681abff85"], ["organization_id", "6bdbe3e2-cdf7-11e4-89f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.817419"], ["updated_at", "2015-03-19 05:18:47.817419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/6bdbe3e2-cdf7-11e4-89f5-705681abff85" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"6bdbe3e2-cdf7-11e4-89f5-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.822747' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "d6dcAJkaVU04w1qY7_vnTdX5S5YfIwNCTxNiDuMODF0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.824192"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.825236"], ["id", "6bdb50d0-cdf7-11e4-8014-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6bdbe3e2-cdf7-11e4-89f5-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6bdabd78-cdf7-11e4-8654-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6bdabd78-cdf7-11e4-8654-705681abff85' LIMIT 1 [["organization_id", "6bdbe3e2-cdf7-11e4-89f5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "6bdbe3e2-cdf7-11e4-89f5-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$32WrvyH/TEFH66NsAvt9gOPOmDaJdbVQIx57kf8YUmkFvdVGLsyjC"], ["created_at", "2015-03-19 05:18:47.838945"], ["updated_at", "2015-03-19 05:18:47.838945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.840774"], ["user_id", "6bdfb77e-cdf7-11e4-82d7-705681abff85"], ["created_at", "2015-03-19 05:18:47.841654"], ["updated_at", "2015-03-19 05:18:47.841654"], ["token", "k0vfyEEpsXfyLyKpkoZt3XFx7lhlPTZ8jmndK5-F7v8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.849028"], ["updated_at", "2015-03-19 05:18:47.849028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bdfb77e-cdf7-11e4-82d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '6be13e50-cdf7-11e4-8bc2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bdfb77e-cdf7-11e4-82d7-705681abff85"], ["organization_id", "6be13e50-cdf7-11e4-8bc2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.852552"], ["updated_at", "2015-03-19 05:18:47.852552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$Ewtm7Gi1Wil47/.LD1jmTehsxEfact98LNMhTZh.VzF24GrGbZlRK"], ["created_at", "2015-03-19 05:18:47.862431"], ["updated_at", "2015-03-19 05:18:47.862431"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.864190"], ["user_id", "6be34a60-cdf7-11e4-9ee1-705681abff85"], ["created_at", "2015-03-19 05:18:47.864973"], ["updated_at", "2015-03-19 05:18:47.864973"], ["token", "K6_AR6j2Pk0rsrfVpf7R_H7Cyqw5P9m5XbqaJT1Oqws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.868867"], ["updated_at", "2015-03-19 05:18:47.868867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6be34a60-cdf7-11e4-9ee1-705681abff85' AND "clubhouse_memberships"."organization_id" = '6be442f8-cdf7-11e4-b0b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6be34a60-cdf7-11e4-9ee1-705681abff85"], ["organization_id", "6be442f8-cdf7-11e4-b0b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.872508"], ["updated_at", "2015-03-19 05:18:47.872508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.878174' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "K6_AR6j2Pk0rsrfVpf7R_H7Cyqw5P9m5XbqaJT1Oqws"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.880357"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.881894"], ["id", "6be3b752-cdf7-11e4-90c5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6be34a60-cdf7-11e4-9ee1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6be34a60-cdf7-11e4-9ee1-705681abff85' LIMIT 1 [["organization_id", "6be442f8-cdf7-11e4-b0b5-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6be442f8-cdf7-11e4-b0b5-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:18:47.888646"], ["id", "6be442f8-cdf7-11e4-b0b5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Yo9lzYe4zzHI8RF341FStOphmyjckkdxm0S7XROu0Tz7f3HEu/.ru"], ["created_at", "2015-03-19 05:18:47.896799"], ["updated_at", "2015-03-19 05:18:47.896799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:18:47.898604"], ["user_id", "6be88b60-cdf7-11e4-b5c5-705681abff85"], ["created_at", "2015-03-19 05:18:47.899666"], ["updated_at", "2015-03-19 05:18:47.899666"], ["token", "ZcPdHkSwa-_2I04YSIa1wej0VeEaP0SF13vfsIrW2w0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:18:47.903533"], ["updated_at", "2015-03-19 05:18:47.903533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6be88b60-cdf7-11e4-b5c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '6be98d3a-cdf7-11e4-8fb2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6be88b60-cdf7-11e4-b5c5-705681abff85"], ["organization_id", "6be98d3a-cdf7-11e4-8fb2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:18:47.906832"], ["updated_at", "2015-03-19 05:18:47.906832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-03-18 22:18:47 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:18:47.912322' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZcPdHkSwa-_2I04YSIa1wej0VeEaP0SF13vfsIrW2w0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:18:47.913760"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:18:47.914734"], ["id", "6be90630-cdf7-11e4-81f7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6be88b60-cdf7-11e4-b5c5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6be88b60-cdf7-11e4-b5c5-705681abff85' LIMIT 1 [["organization_id", "6be98d3a-cdf7-11e4-8fb2-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6be98d3a-cdf7-11e4-8fb2-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (24.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:22:55.290853"], ["updated_at", "2015-03-19 05:22:55.290853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'ff61a1ba-cdf7-11e4-b5de-705681abff85') LIMIT 1 SQL (8.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "ff61a1ba-cdf7-11e4-b5de-705681abff85"], ["created_at", "2015-03-19 05:22:55.331965"], ["updated_at", "2015-03-19 05:22:55.331965"], ["token", "e_TwjCGy2kQxkcllZFm9gIhhOXXUO_ACVMVKnonajdk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.5ms) Clubhouse::Mailer#invitation: processed outbound mail in 28.4ms Sent mail to john@example.com (10.3ms) Date: Wed, 18 Mar 2015 22:22:55 -0700 From: from@example.com To: john@example.com Message-ID: <550a5d2f5cd31_e39f3fc5ed063be4650d7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/e_TwjCGy2kQxkcllZFm9gIhhOXXUO_ACVMVKnonajdk?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:22:55.389875"], ["updated_at", "2015-03-19 05:22:55.389875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'ff6cfb8c-cdf7-11e4-8e91-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "ff6cfb8c-cdf7-11e4-8e91-705681abff85"], ["created_at", "2015-03-19 05:22:55.393524"], ["updated_at", "2015-03-19 05:22:55.393524"], ["token", "8x4HRZKziGboyGlwjbI9m7-RiN_SDz6btbfNzgb5bjY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.7ms Sent mail to john@example.com (2.5ms) Date: Wed, 18 Mar 2015 22:22:55 -0700 From: from@example.com To: john@example.com Message-ID: <550a5d2f6135a_e39f3fc5ed063be4651ed@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/8x4HRZKziGboyGlwjbI9m7-RiN_SDz6btbfNzgb5bjY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:22:55.405762"], ["updated_at", "2015-03-19 05:22:55.405762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'ff6f6eda-cdf7-11e4-9fed-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "ff6f6eda-cdf7-11e4-9fed-705681abff85"], ["created_at", "2015-03-19 05:22:55.411895"], ["updated_at", "2015-03-19 05:22:55.411895"], ["token", "jPWpJPWrg8JQ-WQLWx1tbYlR4VzO6j_DQu_JAlWfZHI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.8ms) Date: Wed, 18 Mar 2015 22:22:55 -0700 From: from@example.com To: john@example.com Message-ID: <550a5d2f65802_e39f3fc5ed063be46527c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/jPWpJPWrg8JQ-WQLWx1tbYlR4VzO6j_DQu_JAlWfZHI?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:22:55.423651"], ["updated_at", "2015-03-19 05:22:55.423651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'ff724f88-cdf7-11e4-a153-705681abff85') LIMIT 1 SQL (6.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "ff724f88-cdf7-11e4-a153-705681abff85"], ["created_at", "2015-03-19 05:22:55.428497"], ["updated_at", "2015-03-19 05:22:55.428497"], ["token", "YEigAUabfglWRHHKEsmfbrEyavEORfqUOHr5jN8fWLg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.5ms Sent mail to john@example.com (2.6ms) Date: Wed, 18 Mar 2015 22:22:55 -0700 From: from@example.com To: john@example.com Message-ID: <550a5d2f6b303_e39f3fc5ed063be465382@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/YEigAUabfglWRHHKEsmfbrEyavEORfqUOHr5jN8fWLg?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$uavnWiRVH2uFZ1tpofyJpe5t2c9wHTuMmZjDX5peahspvm0YOr1VC"], ["created_at", "2015-03-19 05:23:53.602606"], ["updated_at", "2015-03-19 05:23:53.602606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (5.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.649106"], ["updated_at", "2015-03-19 05:23:53.649106"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2222f122-cdf8-11e4-8d00-705681abff85' AND "clubhouse_memberships"."organization_id" = '222818be-cdf8-11e4-a67a-705681abff85') LIMIT 1 SQL (10.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2222f122-cdf8-11e4-8d00-705681abff85"], ["organization_id", "222818be-cdf8-11e4-a67a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:53.686766"], ["updated_at", "2015-03-19 05:23:53.686766"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2222f122-cdf8-11e4-8d00-705681abff85' LIMIT 1 [["organization_id", "222818be-cdf8-11e4-a67a-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$lmTrUCrEEDAMZBF7nV713OUDnNVluf5bk8p.aS029DD8GTu66NShq"], ["created_at", "2015-03-19 05:23:53.723705"], ["updated_at", "2015-03-19 05:23:53.723705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.727169"], ["updated_at", "2015-03-19 05:23:53.727169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2232059a-cdf8-11e4-a131-705681abff85' AND "clubhouse_memberships"."organization_id" = '223287e0-cdf8-11e4-bb54-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2232059a-cdf8-11e4-a131-705681abff85"], ["organization_id", "223287e0-cdf8-11e4-bb54-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:53.730414"], ["updated_at", "2015-03-19 05:23:53.730414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Vji4oGVouKRZR8v5x3usJOw8F/gP11qusvSdDaoRbs0jrOVyZ213u"], ["created_at", "2015-03-19 05:23:53.736178"], ["updated_at", "2015-03-19 05:23:53.736178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2233eeaa-cdf8-11e4-be22-705681abff85' AND "clubhouse_memberships"."organization_id" = '223287e0-cdf8-11e4-bb54-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2233eeaa-cdf8-11e4-be22-705681abff85"], ["organization_id", "223287e0-cdf8-11e4-bb54-705681abff85"], ["created_at", "2015-03-19 05:23:53.739905"], ["updated_at", "2015-03-19 05:23:53.739905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$KW1AAAVUW4mUGsSakWEs7uil6SEgmxaFN.CAEYLt/8fml8jsngGRO"], ["created_at", "2015-03-19 05:23:53.747109"], ["updated_at", "2015-03-19 05:23:53.747109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.751779"], ["updated_at", "2015-03-19 05:23:53.751779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22359bb0-cdf8-11e4-86c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '22365186-cdf8-11e4-bb84-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22359bb0-cdf8-11e4-86c1-705681abff85"], ["organization_id", "22365186-cdf8-11e4-bb84-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:53.756615"], ["updated_at", "2015-03-19 05:23:53.756615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$EnzFufVaGGxPCiVn8TjPLeMiMrAEUMDuLPvc6tWrTLcoLiLsTVOzW"], ["created_at", "2015-03-19 05:23:53.763403"], ["updated_at", "2015-03-19 05:23:53.763403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22381ed0-cdf8-11e4-9354-705681abff85' AND "clubhouse_memberships"."organization_id" = '22365186-cdf8-11e4-bb84-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22381ed0-cdf8-11e4-9354-705681abff85"], ["organization_id", "22365186-cdf8-11e4-bb84-705681abff85"], ["created_at", "2015-03-19 05:23:53.767827"], ["updated_at", "2015-03-19 05:23:53.767827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22359bb0-cdf8-11e4-86c1-705681abff85' LIMIT 1 [["organization_id", "22365186-cdf8-11e4-bb84-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$cgN86uKycbYDAuaa6CRVR.eI9Ly.p/hNdSyjb/hGIhYVSEtWj4FAO"], ["created_at", "2015-03-19 05:23:53.776885"], ["updated_at", "2015-03-19 05:23:53.776885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.780946"], ["updated_at", "2015-03-19 05:23:53.780946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '223a2932-cdf8-11e4-a30c-705681abff85' AND "clubhouse_memberships"."organization_id" = '223ad59e-cdf8-11e4-993f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "223a2932-cdf8-11e4-a30c-705681abff85"], ["organization_id", "223ad59e-cdf8-11e4-993f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:53.785921"], ["updated_at", "2015-03-19 05:23:53.785921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (4.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$wepIbXTXxe1iRZkdEQWYpONzxFx7xSib34ieJ6AgdEG7RUZwC6sry"], ["created_at", "2015-03-19 05:23:53.791444"], ["updated_at", "2015-03-19 05:23:53.791444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '223c65ee-cdf8-11e4-a667-705681abff85' AND "clubhouse_memberships"."organization_id" = '223ad59e-cdf8-11e4-993f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "223c65ee-cdf8-11e4-a667-705681abff85"], ["organization_id", "223ad59e-cdf8-11e4-993f-705681abff85"], ["created_at", "2015-03-19 05:23:53.799881"], ["updated_at", "2015-03-19 05:23:53.799881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '223a2932-cdf8-11e4-a30c-705681abff85' LIMIT 1 [["organization_id", "223ad59e-cdf8-11e4-993f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$eX8zaChUUF4uBDPf2ClXde9x5M92lexB1.dQKGTaT1pSK.ZtthUjO"], ["created_at", "2015-03-19 05:23:53.807699"], ["updated_at", "2015-03-19 05:23:53.807699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.811197"], ["updated_at", "2015-03-19 05:23:53.811197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '223edb4e-cdf8-11e4-ba60-705681abff85' AND "clubhouse_memberships"."organization_id" = '223f5dbc-cdf8-11e4-a9d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "223edb4e-cdf8-11e4-ba60-705681abff85"], ["organization_id", "223f5dbc-cdf8-11e4-a9d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:53.814502"], ["updated_at", "2015-03-19 05:23:53.814502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$S5yZ2I/iyqZhytxaIqtJzOrdltipZhJEw9HOp12CEIQoMXjfd87g6"], ["created_at", "2015-03-19 05:23:53.819742"], ["updated_at", "2015-03-19 05:23:53.819742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2240ab2c-cdf8-11e4-8bea-705681abff85' AND "clubhouse_memberships"."organization_id" = '223f5dbc-cdf8-11e4-a9d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2240ab2c-cdf8-11e4-8bea-705681abff85"], ["organization_id", "223f5dbc-cdf8-11e4-a9d8-705681abff85"], ["created_at", "2015-03-19 05:23:53.823488"], ["updated_at", "2015-03-19 05:23:53.823488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '223edb4e-cdf8-11e4-ba60-705681abff85' LIMIT 1 [["organization_id", "223f5dbc-cdf8-11e4-a9d8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$IIUyCDMo00fRGlyjKLTsOusgdl4lZ4N0R37BV7agcMqfgqdhjCq2C"], ["created_at", "2015-03-19 05:23:53.832599"], ["updated_at", "2015-03-19 05:23:53.832599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.836901"], ["updated_at", "2015-03-19 05:23:53.836901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2242abfc-cdf8-11e4-8ace-705681abff85' AND "clubhouse_memberships"."organization_id" = '22434f76-cdf8-11e4-9565-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2242abfc-cdf8-11e4-8ace-705681abff85"], ["organization_id", "22434f76-cdf8-11e4-9565-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:53.841200"], ["updated_at", "2015-03-19 05:23:53.841200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$5N48dVbrOvagZiDVHmyxI.t0ZhGlnIG9kWQH.2CBu/gNSveExLTXS"], ["created_at", "2015-03-19 05:23:53.848466"], ["updated_at", "2015-03-19 05:23:53.848466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.853040"], ["updated_at", "2015-03-19 05:23:53.853040"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22451e46-cdf8-11e4-9ba1-705681abff85' AND "clubhouse_memberships"."organization_id" = '2245d26e-cdf8-11e4-bf8d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22451e46-cdf8-11e4-9ba1-705681abff85"], ["organization_id", "2245d26e-cdf8-11e4-bf8d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:53.857733"], ["updated_at", "2015-03-19 05:23:53.857733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22451e46-cdf8-11e4-9ba1-705681abff85' LIMIT 1 [["organization_id", "2245d26e-cdf8-11e4-bf8d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$wS0gr40QEtwju04ZTKEx3O1lgPgcN2bTuhJfjPfDBY16tiQsIWLLm"], ["created_at", "2015-03-19 05:23:53.867153"], ["updated_at", "2015-03-19 05:23:53.867153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.871245"], ["updated_at", "2015-03-19 05:23:53.871245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2247ebc6-cdf8-11e4-ab96-705681abff85' AND "clubhouse_memberships"."organization_id" = '22488bbc-cdf8-11e4-a881-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2247ebc6-cdf8-11e4-ab96-705681abff85"], ["organization_id", "22488bbc-cdf8-11e4-a881-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:53.875480"], ["updated_at", "2015-03-19 05:23:53.875480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2247ebc6-cdf8-11e4-ab96-705681abff85' LIMIT 1 [["organization_id", "22488bbc-cdf8-11e4-a881-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$I9P3edsqmHEybDgmD.L.ROSgtorZ6kFC/5qOqguW5/Ks/ZuCdMuOK"], ["created_at", "2015-03-19 05:23:53.883822"], ["updated_at", "2015-03-19 05:23:53.883822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.887621"], ["updated_at", "2015-03-19 05:23:53.887621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '224a7530-cdf8-11e4-aa94-705681abff85' AND "clubhouse_memberships"."organization_id" = '224b0f22-cdf8-11e4-aa25-705681abff85') LIMIT 1 SQL (4.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "224a7530-cdf8-11e4-aa94-705681abff85"], ["organization_id", "224b0f22-cdf8-11e4-aa25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:53.891815"], ["updated_at", "2015-03-19 05:23:53.891815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '224a7530-cdf8-11e4-aa94-705681abff85' LIMIT 1 [["organization_id", "224b0f22-cdf8-11e4-aa25-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$q/tpUgCDFs6dpM/zechlJOib8VuL4LTDZJVXNkmy/QdNU6Xh4/uaq"], ["created_at", "2015-03-19 05:23:53.904962"], ["updated_at", "2015-03-19 05:23:53.904962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$mLXMKwoSItqa1h.Fj784Zee9ERfM.aDLHcQQX1wuaNuu0qkR91IWa"], ["created_at", "2015-03-19 05:23:53.909788"], ["updated_at", "2015-03-19 05:23:53.909788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.913369"], ["updated_at", "2015-03-19 05:23:53.913369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '224e6bcc-cdf8-11e4-ad02-705681abff85' AND "clubhouse_memberships"."organization_id" = '224ef34e-cdf8-11e4-92ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "224e6bcc-cdf8-11e4-ad02-705681abff85"], ["organization_id", "224ef34e-cdf8-11e4-92ce-705681abff85"], ["created_at", "2015-03-19 05:23:53.917030"], ["updated_at", "2015-03-19 05:23:53.917030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$LP6W6j3rWm/HWjdRchqKj..xcdwd4xoUwGRvbh3XNkGkDbcMV/0EG"], ["created_at", "2015-03-19 05:23:53.923036"], ["updated_at", "2015-03-19 05:23:53.923036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$/NCf2qfwBRJNdF.Cviw3YewKxAJFaQX2vh2kg77bwPo5WUjf8CX1S"], ["created_at", "2015-03-19 05:23:53.927638"], ["updated_at", "2015-03-19 05:23:53.927638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.931288"], ["updated_at", "2015-03-19 05:23:53.931288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '225121f0-cdf8-11e4-9df0-705681abff85' AND "clubhouse_memberships"."organization_id" = '2251b656-cdf8-11e4-ae07-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "225121f0-cdf8-11e4-9df0-705681abff85"], ["organization_id", "2251b656-cdf8-11e4-ae07-705681abff85"], ["created_at", "2015-03-19 05:23:53.936549"], ["updated_at", "2015-03-19 05:23:53.936549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22506e40-cdf8-11e4-b7e5-705681abff85' LIMIT 1 [["organization_id", "2251b656-cdf8-11e4-ae07-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$BO0umSb2tUnxPWTgULzgleEFcfr5gsbvxGLfVF.MAf22sy2ReOoEK"], ["created_at", "2015-03-19 05:23:53.955281"], ["updated_at", "2015-03-19 05:23:53.955281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$s7.oyTBmxsFCZ2mWvHlIEuGTnZ8eiTMZX4smLUPMxyyxPajBq67m2"], ["created_at", "2015-03-19 05:23:53.960487"], ["updated_at", "2015-03-19 05:23:53.960487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.964523"], ["updated_at", "2015-03-19 05:23:53.964523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22562b64-cdf8-11e4-b0fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '2256c830-cdf8-11e4-b1dd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22562b64-cdf8-11e4-b0fa-705681abff85"], ["organization_id", "2256c830-cdf8-11e4-b1dd-705681abff85"], ["created_at", "2015-03-19 05:23:53.968629"], ["updated_at", "2015-03-19 05:23:53.968629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22555e3c-cdf8-11e4-a4d8-705681abff85' LIMIT 1 [["organization_id", "2256c830-cdf8-11e4-b1dd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Nz7qwtFDR5e.HNeT3bHLrOkSXiEMel.QICDSmj/kUjcVSK2vRfxiO"], ["created_at", "2015-03-19 05:23:53.977063"], ["updated_at", "2015-03-19 05:23:53.977063"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$Gy2Knb7yTmogGG7W04X13uizdU8mxdaQOkLYMBqqN9GFMRB7r68hW"], ["created_at", "2015-03-19 05:23:53.983025"], ["updated_at", "2015-03-19 05:23:53.983025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:53.986910"], ["updated_at", "2015-03-19 05:23:53.986910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '225997b8-cdf8-11e4-9719-705681abff85' AND "clubhouse_memberships"."organization_id" = '225a3bbe-cdf8-11e4-9550-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "225997b8-cdf8-11e4-9719-705681abff85"], ["organization_id", "225a3bbe-cdf8-11e4-9550-705681abff85"], ["created_at", "2015-03-19 05:23:53.991248"], ["updated_at", "2015-03-19 05:23:53.991248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2258b5e6-cdf8-11e4-a47f-705681abff85' LIMIT 1 [["organization_id", "225a3bbe-cdf8-11e4-9550-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$73ZG95m//zTPoooalS12iOXOn5ZoJB8xc.wQV5YB1tgk5TebSw5sO"], ["created_at", "2015-03-19 05:23:53.999436"], ["updated_at", "2015-03-19 05:23:53.999436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.003156"], ["updated_at", "2015-03-19 05:23:54.003156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '225c1844-cdf8-11e4-ac71-705681abff85' LIMIT 1 [["organization_id", "225ca7b4-cdf8-11e4-ad44-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$eGOGJ0VujhAOJDK//bHI..BqiPMg/ZBkgT8iEN5HwzGgR9gvwtccO"], ["created_at", "2015-03-19 05:23:54.011482"], ["updated_at", "2015-03-19 05:23:54.011482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.015216"], ["updated_at", "2015-03-19 05:23:54.015216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '225decdc-cdf8-11e4-aeab-705681abff85' AND "clubhouse_memberships"."organization_id" = '225e7fb2-cdf8-11e4-8740-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "225decdc-cdf8-11e4-aeab-705681abff85"], ["organization_id", "225e7fb2-cdf8-11e4-8740-705681abff85"], ["created_at", "2015-03-19 05:23:54.018814"], ["updated_at", "2015-03-19 05:23:54.018814"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$61OBHKkJMgWNbm.3b5cCIe52ctirWG1AKesRNgbiSmj5.LceL.39m"], ["created_at", "2015-03-19 05:23:54.025525"], ["updated_at", "2015-03-19 05:23:54.025525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.029095"], ["updated_at", "2015-03-19 05:23:54.029095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22601156-cdf8-11e4-a7d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '2260a288-cdf8-11e4-9f89-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22601156-cdf8-11e4-a7d9-705681abff85"], ["organization_id", "2260a288-cdf8-11e4-9f89-705681abff85"], ["created_at", "2015-03-19 05:23:54.032915"], ["updated_at", "2015-03-19 05:23:54.032915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22601156-cdf8-11e4-a7d9-705681abff85' LIMIT 1 [["organization_id", "2260a288-cdf8-11e4-9f89-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$QdGxv951ie3c0wmyiagsBO8MWgzYg3K.Mo7cn2uD9lKcSPg8NuIuS"], ["created_at", "2015-03-19 05:23:54.040432"], ["updated_at", "2015-03-19 05:23:54.040432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.044367"], ["updated_at", "2015-03-19 05:23:54.044367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22625fb0-cdf8-11e4-a12c-705681abff85' AND "clubhouse_memberships"."organization_id" = '2263042e-cdf8-11e4-be7f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22625fb0-cdf8-11e4-a12c-705681abff85"], ["organization_id", "2263042e-cdf8-11e4-be7f-705681abff85"], ["created_at", "2015-03-19 05:23:54.048884"], ["updated_at", "2015-03-19 05:23:54.048884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22625fb0-cdf8-11e4-a12c-705681abff85' LIMIT 1 [["organization_id", "2263042e-cdf8-11e4-be7f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$yAtjT3mRY4.r3fN0.3iWyu6eOy2K3z5/heLfb.zYIDkIKX7nnRAKS"], ["created_at", "2015-03-19 05:23:54.057596"], ["updated_at", "2015-03-19 05:23:54.057596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.061961"], ["updated_at", "2015-03-19 05:23:54.061961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2264ff0e-cdf8-11e4-9314-705681abff85' AND "clubhouse_memberships"."organization_id" = '2265a256-cdf8-11e4-93f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2264ff0e-cdf8-11e4-9314-705681abff85"], ["organization_id", "2265a256-cdf8-11e4-93f2-705681abff85"], ["created_at", "2015-03-19 05:23:54.066105"], ["updated_at", "2015-03-19 05:23:54.066105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2264ff0e-cdf8-11e4-9314-705681abff85' LIMIT 1 [["organization_id", "2265a256-cdf8-11e4-93f2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$5cPQ.SpL7Ar5TSw8XxBv4ezhv8EE4DiIaFMJYEt1HapTPOZC1XQ5S"], ["created_at", "2015-03-19 05:23:54.075439"], ["updated_at", "2015-03-19 05:23:54.075439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.078973"], ["updated_at", "2015-03-19 05:23:54.078973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2267b35c-cdf8-11e4-9b21-705681abff85' AND "clubhouse_memberships"."organization_id" = '22683674-cdf8-11e4-ac77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2267b35c-cdf8-11e4-9b21-705681abff85"], ["organization_id", "22683674-cdf8-11e4-ac77-705681abff85"], ["created_at", "2015-03-19 05:23:54.082108"], ["updated_at", "2015-03-19 05:23:54.082108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2267b35c-cdf8-11e4-9b21-705681abff85' LIMIT 1 [["organization_id", "22683674-cdf8-11e4-ac77-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$1Iwu8v0cejI6IVCwqHSthebFcwJkMbb5tp9DXFnYrDwTDUYs9vCEK"], ["created_at", "2015-03-19 05:23:54.089111"], ["updated_at", "2015-03-19 05:23:54.089111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.092159"], ["updated_at", "2015-03-19 05:23:54.092159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2269c336-cdf8-11e4-89cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '226a3a1e-cdf8-11e4-802c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2269c336-cdf8-11e4-89cd-705681abff85"], ["organization_id", "226a3a1e-cdf8-11e4-802c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.095553"], ["updated_at", "2015-03-19 05:23:54.095553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '226a3a1e-cdf8-11e4-802c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "226a3a1e-cdf8-11e4-802c-705681abff85"], ["created_at", "2015-03-19 05:23:54.105433"], ["updated_at", "2015-03-19 05:23:54.105433"], ["token", "l8vTyOdUilPwpSevlehrr-uhhysmrTBp8_ulIWYLVaU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2269c336-cdf8-11e4-89cd-705681abff85' LIMIT 1 [["organization_id", "226a3a1e-cdf8-11e4-802c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$dirdURGW5deCWXsAWGqZEO8smaH1NiAeosbEQ/uSBgVhZT5PDrdtm"], ["created_at", "2015-03-19 05:23:54.113102"], ["updated_at", "2015-03-19 05:23:54.113102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.116121"], ["updated_at", "2015-03-19 05:23:54.116121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '226d6c3e-cdf8-11e4-9691-705681abff85' AND "clubhouse_memberships"."organization_id" = '226df4d8-cdf8-11e4-a5fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "226d6c3e-cdf8-11e4-9691-705681abff85"], ["organization_id", "226df4d8-cdf8-11e4-a5fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.120712"], ["updated_at", "2015-03-19 05:23:54.120712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '226df4d8-cdf8-11e4-a5fb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "226df4d8-cdf8-11e4-a5fb-705681abff85"], ["created_at", "2015-03-19 05:23:54.124424"], ["updated_at", "2015-03-19 05:23:54.124424"], ["token", "bfHpg-gRjv0ybUa4k5lutuYU6gK90mBWlIfy96dLwfc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '226d6c3e-cdf8-11e4-9691-705681abff85' LIMIT 1 [["organization_id", "226df4d8-cdf8-11e4-a5fb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$BxKX..pZKGWnsjf4RwY6zuRh4MA4lOuTKeyRMeeSuPWomytnu8STS"], ["created_at", "2015-03-19 05:23:54.131672"], ["updated_at", "2015-03-19 05:23:54.131672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.134910"], ["updated_at", "2015-03-19 05:23:54.134910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '227041b6-cdf8-11e4-8f79-705681abff85' AND "clubhouse_memberships"."organization_id" = '2270bf10-cdf8-11e4-8c7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "227041b6-cdf8-11e4-8f79-705681abff85"], ["organization_id", "2270bf10-cdf8-11e4-8c7a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.138049"], ["updated_at", "2015-03-19 05:23:54.138049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '2270bf10-cdf8-11e4-8c7a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "2270bf10-cdf8-11e4-8c7a-705681abff85"], ["created_at", "2015-03-19 05:23:54.141534"], ["updated_at", "2015-03-19 05:23:54.141534"], ["token", "GSxSw7vuoDjNeiGKqld-MC0elxiAetMeILr91FLCTXc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '227041b6-cdf8-11e4-8f79-705681abff85' LIMIT 1 [["organization_id", "2270bf10-cdf8-11e4-8c7a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$qAPyEwKh3J20aOfLJwccCegPfH/YbPcZBTiWdG786gm8aqSIM.ptG"], ["created_at", "2015-03-19 05:23:54.148973"], ["updated_at", "2015-03-19 05:23:54.148973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.152110"], ["updated_at", "2015-03-19 05:23:54.152110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2272e61e-cdf8-11e4-a1d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '22735fc2-cdf8-11e4-9cb0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2272e61e-cdf8-11e4-a1d1-705681abff85"], ["organization_id", "22735fc2-cdf8-11e4-9cb0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.155498"], ["updated_at", "2015-03-19 05:23:54.155498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '22735fc2-cdf8-11e4-9cb0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "22735fc2-cdf8-11e4-9cb0-705681abff85"], ["created_at", "2015-03-19 05:23:54.158953"], ["updated_at", "2015-03-19 05:23:54.158953"], ["token", "RLWZOiUlpnzIMo9FEEsQgRmB_YOF4C7a13znT-ysaKI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2272e61e-cdf8-11e4-a1d1-705681abff85' LIMIT 1 [["organization_id", "22735fc2-cdf8-11e4-9cb0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$OPMX8UeS0O7n..plOpNzUuJKv/R5El1U0hq70ZacJjgBglI7A.N52"], ["created_at", "2015-03-19 05:23:54.166517"], ["updated_at", "2015-03-19 05:23:54.166517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.171417"], ["updated_at", "2015-03-19 05:23:54.171417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2275a80e-cdf8-11e4-8b74-705681abff85' AND "clubhouse_memberships"."organization_id" = '22765538-cdf8-11e4-aa01-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2275a80e-cdf8-11e4-8b74-705681abff85"], ["organization_id", "22765538-cdf8-11e4-aa01-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.174968"], ["updated_at", "2015-03-19 05:23:54.174968"]]  (3.0ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2275a80e-cdf8-11e4-8b74-705681abff85' LIMIT 1 [["organization_id", "22765538-cdf8-11e4-aa01-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$FY8qAQs.LTDKWJKJTJgWJeynCuzb33LHNWMJ2RnqcTvYIHPqXcI6G"], ["created_at", "2015-03-19 05:23:54.216463"], ["updated_at", "2015-03-19 05:23:54.216463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.230041"], ["updated_at", "2015-03-19 05:23:54.230041"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '227f6f7e-cdf8-11e4-8946-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "227f6f7e-cdf8-11e4-8946-705681abff85"], ["created_at", "2015-03-19 05:23:54.239009"], ["updated_at", "2015-03-19 05:23:54.239009"], ["token", "4oSdITNjsrxVhZjZzAWDXolczPwd8SR-P0_R7qpllIc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '227d48f2-cdf8-11e4-a12c-705681abff85' LIMIT 1 [["organization_id", "227f6f7e-cdf8-11e4-8946-705681abff85"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$Z0K2NutNurZ22N.pVx4gg.aAkrAtnDC9Fe16/qV1ShfycdFoJdQpq"], ["created_at", "2015-03-19 05:23:54.253753"], ["updated_at", "2015-03-19 05:23:54.253753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.257406"], ["updated_at", "2015-03-19 05:23:54.257406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '228374c0-cdf8-11e4-a74c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "228374c0-cdf8-11e4-a74c-705681abff85"], ["created_at", "2015-03-19 05:23:54.261484"], ["updated_at", "2015-03-19 05:23:54.261484"], ["token", "V6FUTW1isk25syymdmPOHJk8EcuhNJ6ZY9BezbcJ12Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2282e97e-cdf8-11e4-9d71-705681abff85' LIMIT 1 [["organization_id", "228374c0-cdf8-11e4-a74c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$bNelgP7z4ayhoZoeS9ANYO5It.TwWoE1lZX.nkn2MISrfK5KpVdNO"], ["created_at", "2015-03-19 05:23:54.270064"], ["updated_at", "2015-03-19 05:23:54.270064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.273244"], ["updated_at", "2015-03-19 05:23:54.273244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '2285da30-cdf8-11e4-96b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "2285da30-cdf8-11e4-96b1-705681abff85"], ["created_at", "2015-03-19 05:23:54.276454"], ["updated_at", "2015-03-19 05:23:54.276454"], ["token", "wvQ1dIXUXfc7uvYfGo0o2xEsLQ6NkDUtde63R9ZiORA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '228560a0-cdf8-11e4-b551-705681abff85' LIMIT 1 [["organization_id", "2285da30-cdf8-11e4-96b1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$fX3Kyy.jmtrtLQwJhEKsQeaKLRE34.wiz1.QeWCJ6zmQd/faziQiu"], ["created_at", "2015-03-19 05:23:54.284132"], ["updated_at", "2015-03-19 05:23:54.284132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.287542"], ["updated_at", "2015-03-19 05:23:54.287542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '22880882-cdf8-11e4-b59e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "22880882-cdf8-11e4-b59e-705681abff85"], ["created_at", "2015-03-19 05:23:54.290805"], ["updated_at", "2015-03-19 05:23:54.290805"], ["token", "uqrQhWNfrIVdpJicLuXb1CcgvkmIEGlb0oQCLGFq9Wc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22878cea-cdf8-11e4-a71e-705681abff85' LIMIT 1 [["organization_id", "22880882-cdf8-11e4-b59e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$qKlYAnhvCW.mCOxBJthSeOuglERtYmf4BmZ67tocObYXJlt4FluE."], ["created_at", "2015-03-19 05:23:54.298138"], ["updated_at", "2015-03-19 05:23:54.298138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.301863"], ["updated_at", "2015-03-19 05:23:54.301863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2289b51a-cdf8-11e4-ab57-705681abff85' LIMIT 1 [["organization_id", "228a38a0-cdf8-11e4-a7a4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$TV9U6.JAekK9DqNanYKOqOaUi/ua9npUXt4Kt2frxSOAum0lffz9e"], ["created_at", "2015-03-19 05:23:54.308987"], ["updated_at", "2015-03-19 05:23:54.308987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.312107"], ["updated_at", "2015-03-19 05:23:54.312107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '228b50dc-cdf8-11e4-bf4f-705681abff85' AND "clubhouse_memberships"."organization_id" = '228bc896-cdf8-11e4-8da5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "228b50dc-cdf8-11e4-bf4f-705681abff85"], ["organization_id", "228bc896-cdf8-11e4-8da5-705681abff85"], ["created_at", "2015-03-19 05:23:54.315226"], ["updated_at", "2015-03-19 05:23:54.315226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '228bc896-cdf8-11e4-8da5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "228bc896-cdf8-11e4-8da5-705681abff85"], ["created_at", "2015-03-19 05:23:54.318604"], ["updated_at", "2015-03-19 05:23:54.318604"], ["token", "xYY7-Xp4FHwwNgDp9rpqsMjKF3avXCicxmkDBFSysNE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '228b50dc-cdf8-11e4-bf4f-705681abff85' LIMIT 1 [["organization_id", "228bc896-cdf8-11e4-8da5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$aJSHMcBqaKDJK4riPfaxXOG/r53KYbPhuxSMrcOPHj.jRaNVQNEYe"], ["created_at", "2015-03-19 05:23:54.326662"], ["updated_at", "2015-03-19 05:23:54.326662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.330395"], ["updated_at", "2015-03-19 05:23:54.330395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '228e041c-cdf8-11e4-a295-705681abff85' AND "clubhouse_memberships"."organization_id" = '228e9a6c-cdf8-11e4-86bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "228e041c-cdf8-11e4-a295-705681abff85"], ["organization_id", "228e9a6c-cdf8-11e4-86bc-705681abff85"], ["created_at", "2015-03-19 05:23:54.333926"], ["updated_at", "2015-03-19 05:23:54.333926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '228e9a6c-cdf8-11e4-86bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "228e9a6c-cdf8-11e4-86bc-705681abff85"], ["created_at", "2015-03-19 05:23:54.337346"], ["updated_at", "2015-03-19 05:23:54.337346"], ["token", "dL3_M5yt8TaUGcrbu-ROzclRT9xz41mW5xz4ui9Bhpg"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '228e041c-cdf8-11e4-a295-705681abff85' LIMIT 1 [["organization_id", "228e9a6c-cdf8-11e4-86bc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$i2zkRXrKfxeRMMhIe.LRJuMKsceTJMGr4mL0ue6dvIucHT715bJ5K"], ["created_at", "2015-03-19 05:23:54.345030"], ["updated_at", "2015-03-19 05:23:54.345030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.348282"], ["updated_at", "2015-03-19 05:23:54.348282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2290d386-cdf8-11e4-b797-705681abff85' AND "clubhouse_memberships"."organization_id" = '22914fb4-cdf8-11e4-8a7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2290d386-cdf8-11e4-b797-705681abff85"], ["organization_id", "22914fb4-cdf8-11e4-8a7c-705681abff85"], ["created_at", "2015-03-19 05:23:54.351701"], ["updated_at", "2015-03-19 05:23:54.351701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '22914fb4-cdf8-11e4-8a7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "22914fb4-cdf8-11e4-8a7c-705681abff85"], ["created_at", "2015-03-19 05:23:54.364019"], ["updated_at", "2015-03-19 05:23:54.364019"], ["token", "4pRaKLHe-Ds9zCgJCCYS0AX8cPDynGSuAXop4yg2SsQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2290d386-cdf8-11e4-b797-705681abff85' LIMIT 1 [["organization_id", "22914fb4-cdf8-11e4-8a7c-705681abff85"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$RriypUZ4mfYV9UhOroIEwO7xOjirTAPnRlsLtfOd8P.NOh6et21X2"], ["created_at", "2015-03-19 05:23:54.372324"], ["updated_at", "2015-03-19 05:23:54.372324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.375545"], ["updated_at", "2015-03-19 05:23:54.375545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2294fb78-cdf8-11e4-8b66-705681abff85' AND "clubhouse_memberships"."organization_id" = '22958584-cdf8-11e4-9326-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2294fb78-cdf8-11e4-8b66-705681abff85"], ["organization_id", "22958584-cdf8-11e4-9326-705681abff85"], ["created_at", "2015-03-19 05:23:54.379460"], ["updated_at", "2015-03-19 05:23:54.379460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '22958584-cdf8-11e4-9326-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "22958584-cdf8-11e4-9326-705681abff85"], ["created_at", "2015-03-19 05:23:54.382897"], ["updated_at", "2015-03-19 05:23:54.382897"], ["token", "Sdkeyg3Qzd2gHn22DZh1aObVmjA6IGmK1s_dThY9VsY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2294fb78-cdf8-11e4-8b66-705681abff85' LIMIT 1 [["organization_id", "22958584-cdf8-11e4-9326-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$jXEb6Ya5tSAZC34nVv0yy.OMbcTMhpRZtB6vIQQtYH85oIfZKtCjG"], ["created_at", "2015-03-19 05:23:54.389879"], ["updated_at", "2015-03-19 05:23:54.389879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.392915"], ["updated_at", "2015-03-19 05:23:54.392915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2297a922-cdf8-11e4-9871-705681abff85' AND "clubhouse_memberships"."organization_id" = '22981c54-cdf8-11e4-a28d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2297a922-cdf8-11e4-9871-705681abff85"], ["organization_id", "22981c54-cdf8-11e4-a28d-705681abff85"], ["created_at", "2015-03-19 05:23:54.396099"], ["updated_at", "2015-03-19 05:23:54.396099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2297a922-cdf8-11e4-9871-705681abff85' LIMIT 1 [["organization_id", "22981c54-cdf8-11e4-a28d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$.g.FCmF/IGoO3olxPCa1bOR7pun0UGs3jW2frwVQkSw6c6/p1HbvW"], ["created_at", "2015-03-19 05:23:54.403613"], ["updated_at", "2015-03-19 05:23:54.403613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.411325"], ["user_id", "2299c036-cdf8-11e4-8f4c-705681abff85"], ["created_at", "2015-03-19 05:23:54.412402"], ["updated_at", "2015-03-19 05:23:54.412402"], ["token", "Rg06QIAnygAPmdeAu0q0vs8lAtl12IW-a1ZR_QZKzY8"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.417582"], ["updated_at", "2015-03-19 05:23:54.417582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2299c036-cdf8-11e4-8f4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '229be2d0-cdf8-11e4-8108-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2299c036-cdf8-11e4-8f4c-705681abff85"], ["organization_id", "229be2d0-cdf8-11e4-8108-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.421106"], ["updated_at", "2015-03-19 05:23:54.421106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$SG0ou0oVZ04MYfQVXeCvJeiqeTkYQx.5cEzHjZUb43UATM.VJm/uW"], ["created_at", "2015-03-19 05:23:54.461554"], ["updated_at", "2015-03-19 05:23:54.461554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.463854"], ["user_id", "22a2af34-cdf8-11e4-8c87-705681abff85"], ["created_at", "2015-03-19 05:23:54.464675"], ["updated_at", "2015-03-19 05:23:54.464675"], ["token", "pFYEaqmysslvJfZvg8eRX3Eu1itdzZjCj-bzvH2UBD8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.468213"], ["updated_at", "2015-03-19 05:23:54.468213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22a2af34-cdf8-11e4-8c87-705681abff85' AND "clubhouse_memberships"."organization_id" = '22a39c46-cdf8-11e4-a24b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22a2af34-cdf8-11e4-8c87-705681abff85"], ["organization_id", "22a39c46-cdf8-11e4-a24b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.472053"], ["updated_at", "2015-03-19 05:23:54.472053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:54.477870' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pFYEaqmysslvJfZvg8eRX3Eu1itdzZjCj-bzvH2UBD8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:54.482026"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:54.483331"], ["id", "22a31c8a-cdf8-11e4-8425-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22a2af34-cdf8-11e4-8c87-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.498993"], ["updated_at", "2015-03-19 05:23:54.498993"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "22a8540c-cdf8-11e4-95a8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22a2af34-cdf8-11e4-8c87-705681abff85' AND "clubhouse_memberships"."organization_id" = '22a8540c-cdf8-11e4-95a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22a2af34-cdf8-11e4-8c87-705681abff85"], ["admin", "t"], ["organization_id", "22a8540c-cdf8-11e4-95a8-705681abff85"], ["created_at", "2015-03-19 05:23:54.503951"], ["updated_at", "2015-03-19 05:23:54.503951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 30ms (Views: 1.9ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$SBKuGikI9g5daZbTDSTZEOy9XAAPXZ7IsL7JsoqlqM3A95kahcMDq"], ["created_at", "2015-03-19 05:23:54.517594"], ["updated_at", "2015-03-19 05:23:54.517594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.519557"], ["user_id", "22ab2c22-cdf8-11e4-b9d6-705681abff85"], ["created_at", "2015-03-19 05:23:54.520372"], ["updated_at", "2015-03-19 05:23:54.520372"], ["token", "wwKdBIR4VMvGBwUb1RcE3UOd6hvLsTLVsqoTLU6D8_A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.524277"], ["updated_at", "2015-03-19 05:23:54.524277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22ab2c22-cdf8-11e4-b9d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '22ac2c3a-cdf8-11e4-b410-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22ab2c22-cdf8-11e4-b9d6-705681abff85"], ["organization_id", "22ac2c3a-cdf8-11e4-b410-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.527838"], ["updated_at", "2015-03-19 05:23:54.527838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:54.534998' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wwKdBIR4VMvGBwUb1RcE3UOd6hvLsTLVsqoTLU6D8_A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:54.536949"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:54.537902"], ["id", "22ab9c3e-cdf8-11e4-9f92-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22ab2c22-cdf8-11e4-b9d6-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$0i3v3iZPCg2waBQfK9mPv.1CJnswNFDHR3LYoR8x.UOTDbXWF4dLC"], ["created_at", "2015-03-19 05:23:54.561583"], ["updated_at", "2015-03-19 05:23:54.561583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.563466"], ["user_id", "22b1e1de-cdf8-11e4-a23b-705681abff85"], ["created_at", "2015-03-19 05:23:54.564315"], ["updated_at", "2015-03-19 05:23:54.564315"], ["token", "d7BvIDo64EpY70ip7De6wYlJ3kU8k4vqTPCkKkoKf2o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.567826"], ["updated_at", "2015-03-19 05:23:54.567826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22b1e1de-cdf8-11e4-a23b-705681abff85' AND "clubhouse_memberships"."organization_id" = '22b2ccfc-cdf8-11e4-acff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22b1e1de-cdf8-11e4-a23b-705681abff85"], ["organization_id", "22b2ccfc-cdf8-11e4-acff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.571067"], ["updated_at", "2015-03-19 05:23:54.571067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$wkpitI03qRI2KMr6qWZKzuP093pkTA6fA3vD4YQqz1VMRGBoP.coi"], ["created_at", "2015-03-19 05:23:54.581271"], ["updated_at", "2015-03-19 05:23:54.581271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.582980"], ["user_id", "22b4e050-cdf8-11e4-a0f7-705681abff85"], ["created_at", "2015-03-19 05:23:54.583740"], ["updated_at", "2015-03-19 05:23:54.583740"], ["token", "2rAOlYjc43CuYbfDHG65573_XGQuwPxRAKWrf5cSGbc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.587314"], ["updated_at", "2015-03-19 05:23:54.587314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22b4e050-cdf8-11e4-a0f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '22b5c7cc-cdf8-11e4-a4d7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22b4e050-cdf8-11e4-a0f7-705681abff85"], ["organization_id", "22b5c7cc-cdf8-11e4-a4d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.590697"], ["updated_at", "2015-03-19 05:23:54.590697"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-39" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-39", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:54.595809' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2rAOlYjc43CuYbfDHG65573_XGQuwPxRAKWrf5cSGbc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:54.597360"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:54.598393"], ["id", "22b5443c-cdf8-11e4-bd63-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-39"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22b4e050-cdf8-11e4-a0f7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22b4e050-cdf8-11e4-a0f7-705681abff85' LIMIT 1 [["organization_id", "22b5c7cc-cdf8-11e4-a4d7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "22b5c7cc-cdf8-11e4-a4d7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$mPTW85Q/EqU0lj/H9yOYhObQPtAzlZUX2BgO0JgZS4lkRWO4vg2w6"], ["created_at", "2015-03-19 05:23:54.610550"], ["updated_at", "2015-03-19 05:23:54.610550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.612189"], ["user_id", "22b954f0-cdf8-11e4-a6f4-705681abff85"], ["created_at", "2015-03-19 05:23:54.612952"], ["updated_at", "2015-03-19 05:23:54.612952"], ["token", "V27YxsWPupKTRm9lx46Ug_eCX6ENvCkdGjx40YtYVxA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.616324"], ["updated_at", "2015-03-19 05:23:54.616324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22b954f0-cdf8-11e4-a6f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '22ba33d4-cdf8-11e4-90ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22b954f0-cdf8-11e4-a6f4-705681abff85"], ["organization_id", "22ba33d4-cdf8-11e4-90ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.619680"], ["updated_at", "2015-03-19 05:23:54.619680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$xkw8hxXUB1Nr2RrIijEWpOdvVJBiqpa8bWIKX0.kvAmk8UfaihlTO"], ["created_at", "2015-03-19 05:23:54.624120"], ["updated_at", "2015-03-19 05:23:54.624120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.627115"], ["updated_at", "2015-03-19 05:23:54.627115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22bb6556-cdf8-11e4-979d-705681abff85' AND "clubhouse_memberships"."organization_id" = '22bbd950-cdf8-11e4-a2f2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22bb6556-cdf8-11e4-979d-705681abff85"], ["organization_id", "22bbd950-cdf8-11e4-a2f2-705681abff85"], ["created_at", "2015-03-19 05:23:54.630638"], ["updated_at", "2015-03-19 05:23:54.630638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$mzOelKOsQLdaiCrN8g0O4.mo84yMq3EUhT5nPRVPOkdSSFEZzzVki"], ["created_at", "2015-03-19 05:23:54.642353"], ["updated_at", "2015-03-19 05:23:54.642353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.644134"], ["user_id", "22be356a-cdf8-11e4-b7f7-705681abff85"], ["created_at", "2015-03-19 05:23:54.644940"], ["updated_at", "2015-03-19 05:23:54.644940"], ["token", "sTIPZrHwul02OfnBgbQJwAXtItgC8d5inIT-3u9rTh4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.655349"], ["updated_at", "2015-03-19 05:23:54.655349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22be356a-cdf8-11e4-b7f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '22c02c3a-cdf8-11e4-9663-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22be356a-cdf8-11e4-b7f7-705681abff85"], ["organization_id", "22c02c3a-cdf8-11e4-9663-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.658866"], ["updated_at", "2015-03-19 05:23:54.658866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$4mnNnFVo1V67le8od.xWzOGeXw9D.RzQOuK2Rw1TqCYwN/K2vEn9e"], ["created_at", "2015-03-19 05:23:54.663096"], ["updated_at", "2015-03-19 05:23:54.663096"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.668242"], ["updated_at", "2015-03-19 05:23:54.668242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22c158d0-cdf8-11e4-b030-705681abff85' AND "clubhouse_memberships"."organization_id" = '22c22d3c-cdf8-11e4-8e3b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22c158d0-cdf8-11e4-b030-705681abff85"], ["organization_id", "22c22d3c-cdf8-11e4-8e3b-705681abff85"], ["created_at", "2015-03-19 05:23:54.671859"], ["updated_at", "2015-03-19 05:23:54.671859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:54.676417' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sTIPZrHwul02OfnBgbQJwAXtItgC8d5inIT-3u9rTh4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:54.677894"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:54.678980"], ["id", "22be992e-cdf8-11e4-8d23-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22be356a-cdf8-11e4-b7f7-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "22be356a-cdf8-11e4-b7f7-705681abff85"]] Completed 200 OK in 10ms (Views: 2.7ms | ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$pyih69whTjBmd1pGFiF5cOw1ZF7sWAcQyu5/IW7fOIQnZu1jadYh2"], ["created_at", "2015-03-19 05:23:54.692209"], ["updated_at", "2015-03-19 05:23:54.692209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.693847"], ["user_id", "22c5cbd6-cdf8-11e4-b234-705681abff85"], ["created_at", "2015-03-19 05:23:54.694626"], ["updated_at", "2015-03-19 05:23:54.694626"], ["token", "N-66wWT8E86g0AQXS2PpKlk52mgzmYLjv-dxAOs8BF4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.706162"], ["updated_at", "2015-03-19 05:23:54.706162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22c5cbd6-cdf8-11e4-b234-705681abff85' AND "clubhouse_memberships"."organization_id" = '22c7ef74-cdf8-11e4-8062-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22c5cbd6-cdf8-11e4-b234-705681abff85"], ["organization_id", "22c7ef74-cdf8-11e4-8062-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.710092"], ["updated_at", "2015-03-19 05:23:54.710092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$U5SKSR466ib8qGAuknMTDeNbAXwyJYN6jo/1YNqsX/O30bB4FSaKK"], ["created_at", "2015-03-19 05:23:54.721161"], ["updated_at", "2015-03-19 05:23:54.721161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.722879"], ["user_id", "22ca373e-cdf8-11e4-b7e2-705681abff85"], ["created_at", "2015-03-19 05:23:54.723775"], ["updated_at", "2015-03-19 05:23:54.723775"], ["token", "IUgtzBwec1APz6ScccIpTUD5lnKi6pLZDTfgT431EyI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.727965"], ["updated_at", "2015-03-19 05:23:54.727965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22ca373e-cdf8-11e4-b7e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '22cb3f26-cdf8-11e4-92fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22ca373e-cdf8-11e4-b7e2-705681abff85"], ["organization_id", "22cb3f26-cdf8-11e4-92fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.731402"], ["updated_at", "2015-03-19 05:23:54.731402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/22cb3f26-cdf8-11e4-92fc-705681abff85" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"22cb3f26-cdf8-11e4-92fc-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:54.736583' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IUgtzBwec1APz6ScccIpTUD5lnKi6pLZDTfgT431EyI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:54.738165"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:54.739168"], ["id", "22cab740-cdf8-11e4-8144-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "22cb3f26-cdf8-11e4-92fc-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22ca373e-cdf8-11e4-b7e2-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22ca373e-cdf8-11e4-b7e2-705681abff85' LIMIT 1 [["organization_id", "22cb3f26-cdf8-11e4-92fc-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '22cb3f26-cdf8-11e4-92fc-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:23:54.747300"], ["id", "22cb3f26-cdf8-11e4-92fc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$B6q7ngp/s45a7Uhk3Sm3oO7Q.7YlLH0oUdq7gt6FdcD3y5FWI6mYS"], ["created_at", "2015-03-19 05:23:54.757000"], ["updated_at", "2015-03-19 05:23:54.757000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.758775"], ["user_id", "22cfb100-cdf8-11e4-a7a8-705681abff85"], ["created_at", "2015-03-19 05:23:54.759592"], ["updated_at", "2015-03-19 05:23:54.759592"], ["token", "OGOJrDWFU2khIua9Yn59u7-Xu2gCE015uR_81hslnP4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.763931"], ["updated_at", "2015-03-19 05:23:54.763931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22cfb100-cdf8-11e4-a7a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '22d0d698-cdf8-11e4-9779-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22cfb100-cdf8-11e4-a7a8-705681abff85"], ["organization_id", "22d0d698-cdf8-11e4-9779-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.768427"], ["updated_at", "2015-03-19 05:23:54.768427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/22d0d698-cdf8-11e4-9779-705681abff85" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"22d0d698-cdf8-11e4-9779-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:54.774102' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OGOJrDWFU2khIua9Yn59u7-Xu2gCE015uR_81hslnP4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:54.775681"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:54.776727"], ["id", "22d01dd4-cdf8-11e4-b149-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "22d0d698-cdf8-11e4-9779-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22cfb100-cdf8-11e4-a7a8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22cfb100-cdf8-11e4-a7a8-705681abff85' LIMIT 1 [["organization_id", "22d0d698-cdf8-11e4-9779-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '22d0d698-cdf8-11e4-9779-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$in7t48RJvFKIvECRKa0cF.jhKvClT/PjgDoX3n2l/flHjp6osKP.i"], ["created_at", "2015-03-19 05:23:54.790482"], ["updated_at", "2015-03-19 05:23:54.790482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.792048"], ["user_id", "22d4ca8c-cdf8-11e4-b186-705681abff85"], ["created_at", "2015-03-19 05:23:54.792836"], ["updated_at", "2015-03-19 05:23:54.792836"], ["token", "PaSHkWfGIvQEPdXKfkxX2jXGeruz1Ny-Pw38C5PNwdE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.796378"], ["updated_at", "2015-03-19 05:23:54.796378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22d4ca8c-cdf8-11e4-b186-705681abff85' AND "clubhouse_memberships"."organization_id" = '22d5ad80-cdf8-11e4-8a5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22d4ca8c-cdf8-11e4-b186-705681abff85"], ["organization_id", "22d5ad80-cdf8-11e4-8a5b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.800232"], ["updated_at", "2015-03-19 05:23:54.800232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$yNdFfW1wgTFOGNx5rjrFleWbzyr9hbJULETh8Tmq/WOeJENVt2wD."], ["created_at", "2015-03-19 05:23:54.811897"], ["updated_at", "2015-03-19 05:23:54.811897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.814337"], ["user_id", "22d823ee-cdf8-11e4-a9fb-705681abff85"], ["created_at", "2015-03-19 05:23:54.815236"], ["updated_at", "2015-03-19 05:23:54.815236"], ["token", "FdVwz9-3ZDziKtmJOEtX8Wxs8kzzO8Et-eRAVX_inGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.818897"], ["updated_at", "2015-03-19 05:23:54.818897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22d823ee-cdf8-11e4-a9fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '22d91e52-cdf8-11e4-b64a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22d823ee-cdf8-11e4-a9fb-705681abff85"], ["organization_id", "22d91e52-cdf8-11e4-b64a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.822537"], ["updated_at", "2015-03-19 05:23:54.822537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/22d91e52-cdf8-11e4-b64a-705681abff85" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"22d91e52-cdf8-11e4-b64a-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:54.827193' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FdVwz9-3ZDziKtmJOEtX8Wxs8kzzO8Et-eRAVX_inGs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:54.828586"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:54.829512"], ["id", "22d897fc-cdf8-11e4-b9ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "22d91e52-cdf8-11e4-b64a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22d823ee-cdf8-11e4-a9fb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '22d823ee-cdf8-11e4-a9fb-705681abff85' LIMIT 1 [["organization_id", "22d91e52-cdf8-11e4-b64a-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$8S85D5bAJina4nikiu/dTOORvUUBA3/ZGHtSD3hPRAHbdV6MxPPJ2"], ["created_at", "2015-03-19 05:23:54.840307"], ["updated_at", "2015-03-19 05:23:54.840307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.842257"], ["user_id", "22dc6ecc-cdf8-11e4-b398-705681abff85"], ["created_at", "2015-03-19 05:23:54.843144"], ["updated_at", "2015-03-19 05:23:54.843144"], ["token", "JE2ZIcIXnuHl_-1yNznJ609mNH4mMNXORsqS4-FnWuc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.846717"], ["updated_at", "2015-03-19 05:23:54.846717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22dc6ecc-cdf8-11e4-b398-705681abff85' AND "clubhouse_memberships"."organization_id" = '22dd5d14-cdf8-11e4-b99b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22dc6ecc-cdf8-11e4-b398-705681abff85"], ["organization_id", "22dd5d14-cdf8-11e4-b99b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.852428"], ["updated_at", "2015-03-19 05:23:54.852428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$xpsENfBakADPqhgKCxIwVeVH/hJDZ.81HkiiV6VR0X7/Bv8zwkKPa"], ["created_at", "2015-03-19 05:23:54.862722"], ["updated_at", "2015-03-19 05:23:54.862722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.864673"], ["user_id", "22dfd076-cdf8-11e4-936e-705681abff85"], ["created_at", "2015-03-19 05:23:54.865498"], ["updated_at", "2015-03-19 05:23:54.865498"], ["token", "syBnAW67P_wFuUWqWyDMvMjkY4AryEetf6pLUsgz9CQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.868879"], ["updated_at", "2015-03-19 05:23:54.868879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22dfd076-cdf8-11e4-936e-705681abff85' AND "clubhouse_memberships"."organization_id" = '22e0bcb6-cdf8-11e4-ac5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22dfd076-cdf8-11e4-936e-705681abff85"], ["organization_id", "22e0bcb6-cdf8-11e4-ac5b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.872562"], ["updated_at", "2015-03-19 05:23:54.872562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-50" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-50", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:54.877173' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "syBnAW67P_wFuUWqWyDMvMjkY4AryEetf6pLUsgz9CQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:54.879057"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:54.881063"], ["id", "22e04376-cdf8-11e4-adda-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-50"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22dfd076-cdf8-11e4-936e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22dfd076-cdf8-11e4-936e-705681abff85' LIMIT 1 [["organization_id", "22e0bcb6-cdf8-11e4-ac5b-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '22e0bcb6-cdf8-11e4-ac5b-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:23:54.888420"], ["id", "22e0bcb6-cdf8-11e4-ac5b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$LWVyz2pUQXWz0EuH/uOGwOGIa83nJscSHm5LJf2d7otebOM2jnpUS"], ["created_at", "2015-03-19 05:23:54.896556"], ["updated_at", "2015-03-19 05:23:54.896556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.898451"], ["user_id", "22e4fb14-cdf8-11e4-b462-705681abff85"], ["created_at", "2015-03-19 05:23:54.899251"], ["updated_at", "2015-03-19 05:23:54.899251"], ["token", "YF6fxPoQf3aAJSAoR6hs-haovCcH65ZLiv4miYoxYig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.902682"], ["updated_at", "2015-03-19 05:23:54.902682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22e4fb14-cdf8-11e4-b462-705681abff85' AND "clubhouse_memberships"."organization_id" = '22e5e5ce-cdf8-11e4-95f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22e4fb14-cdf8-11e4-b462-705681abff85"], ["organization_id", "22e5e5ce-cdf8-11e4-95f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.905901"], ["updated_at", "2015-03-19 05:23:54.905901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-51" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-51", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:54.911150' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YF6fxPoQf3aAJSAoR6hs-haovCcH65ZLiv4miYoxYig"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:54.912566"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:54.913537"], ["id", "22e569f0-cdf8-11e4-a4df-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-51"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22e4fb14-cdf8-11e4-b462-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22e4fb14-cdf8-11e4-b462-705681abff85' LIMIT 1 [["organization_id", "22e5e5ce-cdf8-11e4-95f8-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '22e5e5ce-cdf8-11e4-95f8-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$6TIeaBTbbjAJv0xb2vckn.IKbTWCGXguzxQGX474IzzY3Pdsnjwoy"], ["created_at", "2015-03-19 05:23:54.926511"], ["updated_at", "2015-03-19 05:23:54.926511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.928494"], ["user_id", "22e99278-cdf8-11e4-88a2-705681abff85"], ["created_at", "2015-03-19 05:23:54.929305"], ["updated_at", "2015-03-19 05:23:54.929305"], ["token", "dm6dOPsTm1TFDI1NLmGf5PIgw1bXU4-DMciYB-FpUgk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.933141"], ["updated_at", "2015-03-19 05:23:54.933141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22e99278-cdf8-11e4-88a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '22ea945c-cdf8-11e4-a8a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22e99278-cdf8-11e4-88a2-705681abff85"], ["organization_id", "22ea945c-cdf8-11e4-a8a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.936818"], ["updated_at", "2015-03-19 05:23:54.936818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$04dfThGlJIhTw2cxWmmw0OtHFa3Vt7Pbw8qK2pIaqeKH/a0w0GOaq"], ["created_at", "2015-03-19 05:23:54.948641"], ["updated_at", "2015-03-19 05:23:54.948641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.950621"], ["user_id", "22ecf684-cdf8-11e4-8ce3-705681abff85"], ["created_at", "2015-03-19 05:23:54.951427"], ["updated_at", "2015-03-19 05:23:54.951427"], ["token", "LncX6SPZROhgzzfihQY9Pw10YRTKdiwXQFrCnoozjAE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.954837"], ["updated_at", "2015-03-19 05:23:54.954837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22ecf684-cdf8-11e4-8ce3-705681abff85' AND "clubhouse_memberships"."organization_id" = '22eddbe4-cdf8-11e4-bf98-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22ecf684-cdf8-11e4-8ce3-705681abff85"], ["organization_id", "22eddbe4-cdf8-11e4-bf98-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.958409"], ["updated_at", "2015-03-19 05:23:54.958409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-53" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-53", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:54.963189' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LncX6SPZROhgzzfihQY9Pw10YRTKdiwXQFrCnoozjAE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:54.964840"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:54.966166"], ["id", "22ed6060-cdf8-11e4-9a1b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-53"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22ecf684-cdf8-11e4-8ce3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '22ecf684-cdf8-11e4-8ce3-705681abff85' LIMIT 1 [["organization_id", "22eddbe4-cdf8-11e4-bf98-705681abff85"]] Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$mRF8DmaWofzAEDWXClM.xuCz3cFW0d0m.gPA7kUN/yw2eOidjqzKy"], ["created_at", "2015-03-19 05:23:54.977872"], ["updated_at", "2015-03-19 05:23:54.977872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:54.980099"], ["user_id", "22f16db8-cdf8-11e4-9fef-705681abff85"], ["created_at", "2015-03-19 05:23:54.981260"], ["updated_at", "2015-03-19 05:23:54.981260"], ["token", "_sCaZ2PRsltxrjU7DoQFrOmDilUkOWBhgBanDeYo1HM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:54.985061"], ["updated_at", "2015-03-19 05:23:54.985061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22f16db8-cdf8-11e4-9fef-705681abff85' AND "clubhouse_memberships"."organization_id" = '22f282a2-cdf8-11e4-9e12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22f16db8-cdf8-11e4-9fef-705681abff85"], ["organization_id", "22f282a2-cdf8-11e4-9e12-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:54.988775"], ["updated_at", "2015-03-19 05:23:54.988775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:23:54 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$fUq4WePysx3xhWQpIXRrxOetJx9IHY1wUr3NX5ZpwjbMjH9xP/ZpS"], ["created_at", "2015-03-19 05:23:54.998635"], ["updated_at", "2015-03-19 05:23:54.998635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.000211"], ["user_id", "22f48dea-cdf8-11e4-b5f8-705681abff85"], ["created_at", "2015-03-19 05:23:55.000931"], ["updated_at", "2015-03-19 05:23:55.000931"], ["token", "t2bh4w1EGUPXmcParmMyZ79t5LMtRU2nDuP1qhpDZjk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.004183"], ["updated_at", "2015-03-19 05:23:55.004183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22f48dea-cdf8-11e4-b5f8-705681abff85' AND "clubhouse_memberships"."organization_id" = '22f56314-cdf8-11e4-9814-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22f48dea-cdf8-11e4-b5f8-705681abff85"], ["organization_id", "22f56314-cdf8-11e4-9814-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.007387"], ["updated_at", "2015-03-19 05:23:55.007387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/22f56314-cdf8-11e4-9814-705681abff85" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"22f56314-cdf8-11e4-9814-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:55.012329' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "t2bh4w1EGUPXmcParmMyZ79t5LMtRU2nDuP1qhpDZjk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:55.013805"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:55.014917"], ["id", "22f4e9e8-cdf8-11e4-922e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "22f56314-cdf8-11e4-9814-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22f48dea-cdf8-11e4-b5f8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22f48dea-cdf8-11e4-b5f8-705681abff85' LIMIT 1 [["organization_id", "22f56314-cdf8-11e4-9814-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "22f56314-cdf8-11e4-9814-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$eRJI7BG1CmWOvofe9Fn2AOwo7Qbjm/1jvik2DN9h2D/UA1Qx2wqqC"], ["created_at", "2015-03-19 05:23:55.025601"], ["updated_at", "2015-03-19 05:23:55.025601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.027618"], ["user_id", "22f8b208-cdf8-11e4-8e29-705681abff85"], ["created_at", "2015-03-19 05:23:55.028510"], ["updated_at", "2015-03-19 05:23:55.028510"], ["token", "ycBwG8bsPkv1u5C2ENNYYJA-2eSqTxZk9Y9ebg7-E84"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.039230"], ["updated_at", "2015-03-19 05:23:55.039230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22f8b208-cdf8-11e4-8e29-705681abff85' AND "clubhouse_memberships"."organization_id" = '22fabe9a-cdf8-11e4-bfcc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22f8b208-cdf8-11e4-8e29-705681abff85"], ["organization_id", "22fabe9a-cdf8-11e4-bfcc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.048684"], ["updated_at", "2015-03-19 05:23:55.048684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$2kY9QGpNzzuwArokp4q2JONyOQhrGaMKkVav16BRilBtmk72yc/FO"], ["created_at", "2015-03-19 05:23:55.059036"], ["updated_at", "2015-03-19 05:23:55.059036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.061023"], ["user_id", "22fdcbe4-cdf8-11e4-8094-705681abff85"], ["created_at", "2015-03-19 05:23:55.061860"], ["updated_at", "2015-03-19 05:23:55.061860"], ["token", "vjxacVNAOGNIEu96tDU5aPn0JlT0KILaFQUJ7EV6X3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.065429"], ["updated_at", "2015-03-19 05:23:55.065429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22fdcbe4-cdf8-11e4-8094-705681abff85' AND "clubhouse_memberships"."organization_id" = '22febcb6-cdf8-11e4-9284-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22fdcbe4-cdf8-11e4-8094-705681abff85"], ["organization_id", "22febcb6-cdf8-11e4-9284-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.068892"], ["updated_at", "2015-03-19 05:23:55.068892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-57" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-57", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:55.073465' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vjxacVNAOGNIEu96tDU5aPn0JlT0KILaFQUJ7EV6X3U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:55.074892"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:55.075914"], ["id", "22fe3a3e-cdf8-11e4-8a6e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-57"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22fdcbe4-cdf8-11e4-8094-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$kfr8tXcLd7zWZjyvn1KSA.i/BakyQPPef5xSkYAzexFNbfvNrQX9a"], ["created_at", "2015-03-19 05:23:55.084288"], ["updated_at", "2015-03-19 05:23:55.084288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.085854"], ["user_id", "23019de6-cdf8-11e4-b602-705681abff85"], ["created_at", "2015-03-19 05:23:55.086571"], ["updated_at", "2015-03-19 05:23:55.086571"], ["token", "38Bzl6E42tDF4ZXlUYDXdtt82UZomp1OXtE2Faxo_No"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.090509"], ["updated_at", "2015-03-19 05:23:55.090509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23019de6-cdf8-11e4-b602-705681abff85' AND "clubhouse_memberships"."organization_id" = '230292f0-cdf8-11e4-a37b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23019de6-cdf8-11e4-b602-705681abff85"], ["organization_id", "230292f0-cdf8-11e4-a37b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.094005"], ["updated_at", "2015-03-19 05:23:55.094005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:55.098643' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "38Bzl6E42tDF4ZXlUYDXdtt82UZomp1OXtE2Faxo_No"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:55.100174"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:55.101177"], ["id", "2301fc3c-cdf8-11e4-a24a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.360553"], ["updated_at", "2015-03-19 05:23:55.360553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '232bc4cc-cdf8-11e4-931c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "232bc4cc-cdf8-11e4-931c-705681abff85"], ["created_at", "2015-03-19 05:23:55.365215"], ["updated_at", "2015-03-19 05:23:55.365215"], ["token", "1Iv87nrBDrj2U490VhBcY_M5xN7UNudRWkCcAvY9qB0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.7ms) Clubhouse::Mailer#invitation: processed outbound mail in 21.3ms Sent mail to john@example.com (9.1ms) Date: Wed, 18 Mar 2015 22:23:55 -0700 From: from@example.com To: john@example.com Message-ID: <550a5d6b609db_e3a63fdd64865bec654f7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/1Iv87nrBDrj2U490VhBcY_M5xN7UNudRWkCcAvY9qB0?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.403348"], ["updated_at", "2015-03-19 05:23:55.403348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '23324f4a-cdf8-11e4-a2db-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "23324f4a-cdf8-11e4-a2db-705681abff85"], ["created_at", "2015-03-19 05:23:55.406977"], ["updated_at", "2015-03-19 05:23:55.406977"], ["token", "dQZHLwNE7So5GO24g5q8AKFSfFFx93pXeqcuhS_8dKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (5.1ms) Date: Wed, 18 Mar 2015 22:23:55 -0700 From: from@example.com To: john@example.com Message-ID: <550a5d6b64517_e3a63fdd64865bec65565@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/dQZHLwNE7So5GO24g5q8AKFSfFFx93pXeqcuhS_8dKg?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.421921"], ["updated_at", "2015-03-19 05:23:55.421921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '233523fa-cdf8-11e4-9c27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "233523fa-cdf8-11e4-9c27-705681abff85"], ["created_at", "2015-03-19 05:23:55.425394"], ["updated_at", "2015-03-19 05:23:55.425394"], ["token", "CocEEIkYDZbBVyXm8Jl1lLw2jAqm_AJZtuhDD45RIg8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Wed, 18 Mar 2015 22:23:55 -0700 From: from@example.com To: john@example.com Message-ID: <550a5d6b68aeb_e3a63fdd64865bec6565a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/CocEEIkYDZbBVyXm8Jl1lLw2jAqm_AJZtuhDD45RIg8?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.433767"], ["updated_at", "2015-03-19 05:23:55.433767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '2336f428-cdf8-11e4-b915-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "2336f428-cdf8-11e4-b915-705681abff85"], ["created_at", "2015-03-19 05:23:55.437601"], ["updated_at", "2015-03-19 05:23:55.437601"], ["token", "ep7-Tu-O2hSlfdtfqJDWAaBVTl-fSd-HMiquidP8IgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.5ms) Date: Wed, 18 Mar 2015 22:23:55 -0700 From: from@example.com To: john@example.com Message-ID: <550a5d6b6ba3a_e3a63fdd64865bec657e2@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/ep7-Tu-O2hSlfdtfqJDWAaBVTl-fSd-HMiquidP8IgQ?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$VrV7upus7F4dWOibCglNwehaZR3H7sy.0Rgo1EcZHRd1geb2MjxD2"], ["created_at", "2015-03-19 05:23:55.448781"], ["updated_at", "2015-03-19 05:23:55.448781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$JXDELrdH6Cdp8xA70pCcsuGYfyyQKrDf.EBzPdoufvNPDyPMCTjYa"], ["created_at", "2015-03-19 05:23:55.468823"], ["updated_at", "2015-03-19 05:23:55.468823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.474335"], ["updated_at", "2015-03-19 05:23:55.474335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$VIiprAvhiHLaoS9H5PQdGOqi90LRhYbA0g63WHW5HBSiOJX49usr6"], ["created_at", "2015-03-19 05:23:55.484351"], ["updated_at", "2015-03-19 05:23:55.484351"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.490780"], ["updated_at", "2015-03-19 05:23:55.490780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '233ec284-cdf8-11e4-aecf-705681abff85' LIMIT 1 [["organization_id", "233fa6fe-cdf8-11e4-bb04-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$3bION2sP3mOyPFjL.UWRs.zvWa23KfZarVJc4kerRiwtN7f/L86ZO"], ["created_at", "2015-03-19 05:23:55.497753"], ["updated_at", "2015-03-19 05:23:55.497753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.501118"], ["updated_at", "2015-03-19 05:23:55.501118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2340bdfa-cdf8-11e4-8fca-705681abff85' LIMIT 1 [["organization_id", "23413578-cdf8-11e4-8f6d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$ZioM9Ct6Y52BxJZKqgLNHO46qw3gBs/d7xFTCYzLEXg1kCdxtOOgu"], ["created_at", "2015-03-19 05:23:55.507525"], ["updated_at", "2015-03-19 05:23:55.507525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.510443"], ["updated_at", "2015-03-19 05:23:55.510443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '23423446-cdf8-11e4-9472-705681abff85' LIMIT 1 [["organization_id", "2342a1f6-cdf8-11e4-828d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$TiXXfcNJzaDeBMD89o.KBeo4iXqxyJ7eZaBYk0F0Zam6mYpYVIx1."], ["created_at", "2015-03-19 05:23:55.517998"], ["updated_at", "2015-03-19 05:23:55.517998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.521177"], ["updated_at", "2015-03-19 05:23:55.521177"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$HqiOADw/tSCAOaqZvkxdB.sUmZcUBcnHoOU5HdAsR96OQXWQ5CWw6"], ["created_at", "2015-03-19 05:23:55.526854"], ["updated_at", "2015-03-19 05:23:55.526854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.529904"], ["updated_at", "2015-03-19 05:23:55.529904"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '234525a2-cdf8-11e4-9efd-705681abff85' AND "clubhouse_memberships"."organization_id" = '23459a1e-cdf8-11e4-9ad1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "234525a2-cdf8-11e4-9efd-705681abff85"], ["organization_id", "23459a1e-cdf8-11e4-9ad1-705681abff85"], ["created_at", "2015-03-19 05:23:55.533537"], ["updated_at", "2015-03-19 05:23:55.533537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$kXF61O8R1isE9ffCBOmRV.I8GNdBn4bkOr5Fn5PK7DATBFGUSLaVm"], ["created_at", "2015-03-19 05:23:55.539134"], ["updated_at", "2015-03-19 05:23:55.539134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.542141"], ["updated_at", "2015-03-19 05:23:55.542141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23470430-cdf8-11e4-b2aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '23477a28-cdf8-11e4-9b7a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23470430-cdf8-11e4-b2aa-705681abff85"], ["organization_id", "23477a28-cdf8-11e4-9b7a-705681abff85"], ["created_at", "2015-03-19 05:23:55.547413"], ["updated_at", "2015-03-19 05:23:55.547413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '23470430-cdf8-11e4-b2aa-705681abff85' LIMIT 1 [["organization_id", "23477a28-cdf8-11e4-9b7a-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$AEFhl4y7kGONM6abrDyGcOuh4ljCh28QYzXAKCJNxWMC8Fxrfvq2S"], ["created_at", "2015-03-19 05:23:55.556933"], ["updated_at", "2015-03-19 05:23:55.556933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.562119"], ["updated_at", "2015-03-19 05:23:55.562119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2349bf72-cdf8-11e4-a79f-705681abff85' AND "clubhouse_memberships"."organization_id" = '234a8e8e-cdf8-11e4-969e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2349bf72-cdf8-11e4-a79f-705681abff85"], ["organization_id", "234a8e8e-cdf8-11e4-969e-705681abff85"], ["created_at", "2015-03-19 05:23:55.565736"], ["updated_at", "2015-03-19 05:23:55.565736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2349bf72-cdf8-11e4-a79f-705681abff85' LIMIT 1 [["organization_id", "234a8e8e-cdf8-11e4-969e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$BqhWQIL9DBIp440AQ5QPPeTl6fHQQJffeL7gH13AnM6.akwyXBnxW"], ["created_at", "2015-03-19 05:23:55.572459"], ["updated_at", "2015-03-19 05:23:55.572459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.575583"], ["updated_at", "2015-03-19 05:23:55.575583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '234c1c36-cdf8-11e4-b0ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '234c915c-cdf8-11e4-89dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "234c1c36-cdf8-11e4-b0ec-705681abff85"], ["organization_id", "234c915c-cdf8-11e4-89dc-705681abff85"], ["created_at", "2015-03-19 05:23:55.578557"], ["updated_at", "2015-03-19 05:23:55.578557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '234c1c36-cdf8-11e4-b0ec-705681abff85' LIMIT 1 [["organization_id", "234c915c-cdf8-11e4-89dc-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$BU70bdIcHtfUrBb84p./yOO9Kmp3vB.N3ZXmVOLJ.hFmOGFGou.bq"], ["created_at", "2015-03-19 05:23:55.585522"], ["updated_at", "2015-03-19 05:23:55.585522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.588907"], ["updated_at", "2015-03-19 05:23:55.588907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '234e184c-cdf8-11e4-b290-705681abff85' AND "clubhouse_memberships"."organization_id" = '234e9d1c-cdf8-11e4-a6cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "234e184c-cdf8-11e4-b290-705681abff85"], ["organization_id", "234e9d1c-cdf8-11e4-a6cc-705681abff85"], ["created_at", "2015-03-19 05:23:55.592025"], ["updated_at", "2015-03-19 05:23:55.592025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$why0MGgCclNbTD40G7abbO/nIEXj48Vvl6e6EAnk/pKk67cemA8GS"], ["created_at", "2015-03-19 05:23:55.597865"], ["updated_at", "2015-03-19 05:23:55.597865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.600989"], ["updated_at", "2015-03-19 05:23:55.600989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '234fff72-cdf8-11e4-8c06-705681abff85' AND "clubhouse_memberships"."organization_id" = '23507204-cdf8-11e4-a561-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "234fff72-cdf8-11e4-8c06-705681abff85"], ["organization_id", "23507204-cdf8-11e4-a561-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.604712"], ["updated_at", "2015-03-19 05:23:55.604712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$ytyyy3aV33L1cOSrwmm5mOWfKCQvOTNP1MBfMMMeQDaJ3rYNmW2ue"], ["created_at", "2015-03-19 05:23:55.610489"], ["updated_at", "2015-03-19 05:23:55.610489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.613462"], ["updated_at", "2015-03-19 05:23:55.613462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2351e88c-cdf8-11e4-bd53-705681abff85' AND "clubhouse_memberships"."organization_id" = '2352592a-cdf8-11e4-abe6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2351e88c-cdf8-11e4-bd53-705681abff85"], ["organization_id", "2352592a-cdf8-11e4-abe6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.617213"], ["updated_at", "2015-03-19 05:23:55.617213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2351e88c-cdf8-11e4-bd53-705681abff85' LIMIT 1 [["organization_id", "2352592a-cdf8-11e4-abe6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$wvZ858uUt0TArzaOlBUpmeJ0vwDFvZBrQ9M35pFM/3vd2gtm8Y1Zy"], ["created_at", "2015-03-19 05:23:55.623637"], ["updated_at", "2015-03-19 05:23:55.623637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.626510"], ["updated_at", "2015-03-19 05:23:55.626510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2353e89e-cdf8-11e4-8b54-705681abff85' AND "clubhouse_memberships"."organization_id" = '2354568a-cdf8-11e4-97d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2353e89e-cdf8-11e4-8b54-705681abff85"], ["organization_id", "2354568a-cdf8-11e4-97d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.629668"], ["updated_at", "2015-03-19 05:23:55.629668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2353e89e-cdf8-11e4-8b54-705681abff85' LIMIT 1 [["organization_id", "2354568a-cdf8-11e4-97d9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$6NOcuczbN64KSw0G4aTVlOQPkyhbuUtzTAJjs6odlT4iOGSmAjRnO"], ["created_at", "2015-03-19 05:23:55.637149"], ["updated_at", "2015-03-19 05:23:55.637149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.640164"], ["updated_at", "2015-03-19 05:23:55.640164"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2355fa4e-cdf8-11e4-8e41-705681abff85' AND "clubhouse_memberships"."organization_id" = '23566c40-cdf8-11e4-a01b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2355fa4e-cdf8-11e4-8e41-705681abff85"], ["organization_id", "23566c40-cdf8-11e4-a01b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.643994"], ["updated_at", "2015-03-19 05:23:55.643994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2355fa4e-cdf8-11e4-8e41-705681abff85' LIMIT 1 [["organization_id", "23566c40-cdf8-11e4-a01b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$zLRSS9NZ5P93O9jHHAJqVOAtc.uMygdHHE5giZoT69piXattqG9Ci"], ["created_at", "2015-03-19 05:23:55.651075"], ["updated_at", "2015-03-19 05:23:55.651075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.654292"], ["updated_at", "2015-03-19 05:23:55.654292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23581aea-cdf8-11e4-ac8d-705681abff85' AND "clubhouse_memberships"."organization_id" = '2358948e-cdf8-11e4-bf76-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23581aea-cdf8-11e4-ac8d-705681abff85"], ["organization_id", "2358948e-cdf8-11e4-bf76-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.657508"], ["updated_at", "2015-03-19 05:23:55.657508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$mmXCG7buE47zqIP2SyTJX.FJ.gLi6.j9gP7pGQsxrdiTTwxeMwW1S"], ["created_at", "2015-03-19 05:23:55.670045"], ["updated_at", "2015-03-19 05:23:55.670045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.673340"], ["updated_at", "2015-03-19 05:23:55.673340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '235afe7c-cdf8-11e4-882c-705681abff85' AND "clubhouse_memberships"."organization_id" = '235b7cee-cdf8-11e4-be14-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "235afe7c-cdf8-11e4-882c-705681abff85"], ["organization_id", "235b7cee-cdf8-11e4-be14-705681abff85"], ["created_at", "2015-03-19 05:23:55.675953"], ["updated_at", "2015-03-19 05:23:55.675953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "235afe7c-cdf8-11e4-882c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "235b7cee-cdf8-11e4-be14-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '235afe7c-cdf8-11e4-882c-705681abff85' AND "clubhouse_memberships"."organization_id" = '235b7cee-cdf8-11e4-be14-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "235b7cee-cdf8-11e4-be14-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '235afe7c-cdf8-11e4-882c-705681abff85' AND "clubhouse_memberships"."organization_id" = '235b7cee-cdf8-11e4-be14-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$HmY28vG1IVtlhszU6JAu9eUfMijP45juQniQ0ozC5HA050WH23Khm"], ["created_at", "2015-03-19 05:23:55.698268"], ["updated_at", "2015-03-19 05:23:55.698268"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$xERWcLhCBIqxIJEwi/kLveNII3VG/hrHtScxctoM.XV2juM/cfMEe"], ["created_at", "2015-03-19 05:23:55.702818"], ["updated_at", "2015-03-19 05:23:55.702818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.704321"], ["user_id", "235f4d10-cdf8-11e4-a407-705681abff85"], ["created_at", "2015-03-19 05:23:55.705179"], ["updated_at", "2015-03-19 05:23:55.705179"], ["token", "N789FHka44NS0YxYpD_7bCVgR9Cik6Zd7QdD_ilRCoA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.708379"], ["updated_at", "2015-03-19 05:23:55.708379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '235f4d10-cdf8-11e4-a407-705681abff85' AND "clubhouse_memberships"."organization_id" = '2360d52c-cdf8-11e4-9804-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "235f4d10-cdf8-11e4-a407-705681abff85"], ["organization_id", "2360d52c-cdf8-11e4-9804-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.711397"], ["updated_at", "2015-03-19 05:23:55.711397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '235ffdb4-cdf8-11e4-88cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '2360d52c-cdf8-11e4-9804-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "235ffdb4-cdf8-11e4-88cd-705681abff85"], ["organization_id", "2360d52c-cdf8-11e4-9804-705681abff85"], ["created_at", "2015-03-19 05:23:55.714563"], ["updated_at", "2015-03-19 05:23:55.714563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$1wD5UX3puQV0JUiKZE9hyOO5AU9FlFE1dEgCZjLFADOJGtEEbUQ7G"], ["created_at", "2015-03-19 05:23:55.730743"], ["updated_at", "2015-03-19 05:23:55.730743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$1hOx4sJRX3uSR699yTwZbu.tKupFbq4eTipOUJUg4.ZBk0yrW9JWi"], ["created_at", "2015-03-19 05:23:55.735111"], ["updated_at", "2015-03-19 05:23:55.735111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.736633"], ["user_id", "2364437e-cdf8-11e4-9a6e-705681abff85"], ["created_at", "2015-03-19 05:23:55.737370"], ["updated_at", "2015-03-19 05:23:55.737370"], ["token", "kSOxAfYkR5F5WQAAB09IOhM_Ik43-N8i41l7j6Vd_cA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.740597"], ["updated_at", "2015-03-19 05:23:55.740597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2364437e-cdf8-11e4-9a6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '2365bfe2-cdf8-11e4-9905-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2364437e-cdf8-11e4-9a6e-705681abff85"], ["organization_id", "2365bfe2-cdf8-11e4-9905-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.743724"], ["updated_at", "2015-03-19 05:23:55.743724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2364eb12-cdf8-11e4-a69b-705681abff85' AND "clubhouse_memberships"."organization_id" = '2365bfe2-cdf8-11e4-9905-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2364eb12-cdf8-11e4-a69b-705681abff85"], ["organization_id", "2365bfe2-cdf8-11e4-9905-705681abff85"], ["created_at", "2015-03-19 05:23:55.747159"], ["updated_at", "2015-03-19 05:23:55.747159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/23663bd4-cdf8-11e4-af93-705681abff85" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"23663bd4-cdf8-11e4-af93-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:55.752678' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kSOxAfYkR5F5WQAAB09IOhM_Ik43-N8i41l7j6Vd_cA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:55.754354"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:55.755378"], ["id", "236549fe-cdf8-11e4-ae29-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "23663bd4-cdf8-11e4-af93-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2364437e-cdf8-11e4-9a6e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2365bfe2-cdf8-11e4-9905-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2364437e-cdf8-11e4-9a6e-705681abff85' LIMIT 1 [["organization_id", "2365bfe2-cdf8-11e4-9905-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2364437e-cdf8-11e4-9a6e-705681abff85"]] Completed 200 OK in 12ms (Views: 4.1ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$QXl2wOwJcLrPWS4MsZNBmuel6Z9LmBbYfVNe54r1svMrc3vtUCdk6"], ["created_at", "2015-03-19 05:23:55.771227"], ["updated_at", "2015-03-19 05:23:55.771227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$MAq3.i6Po3g3siTq6kxcaOmAmPPno4HQR4SByLQV9Ig0eJdqDqcMa"], ["created_at", "2015-03-19 05:23:55.775665"], ["updated_at", "2015-03-19 05:23:55.775665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.777068"], ["user_id", "236a7906-cdf8-11e4-954e-705681abff85"], ["created_at", "2015-03-19 05:23:55.777779"], ["updated_at", "2015-03-19 05:23:55.777779"], ["token", "E9m-IEQyPSy0gk4Zfh0d_virOKYU3mnEvMU1wDvEPrM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.781168"], ["updated_at", "2015-03-19 05:23:55.781168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '236a7906-cdf8-11e4-954e-705681abff85' AND "clubhouse_memberships"."organization_id" = '236bf830-cdf8-11e4-a62a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "236a7906-cdf8-11e4-954e-705681abff85"], ["organization_id", "236bf830-cdf8-11e4-a62a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.784569"], ["updated_at", "2015-03-19 05:23:55.784569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '236b1956-cdf8-11e4-9e51-705681abff85' AND "clubhouse_memberships"."organization_id" = '236bf830-cdf8-11e4-a62a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "236b1956-cdf8-11e4-9e51-705681abff85"], ["organization_id", "236bf830-cdf8-11e4-a62a-705681abff85"], ["created_at", "2015-03-19 05:23:55.787421"], ["updated_at", "2015-03-19 05:23:55.787421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$35S58OBii.28KTolkupxnO.S6Hh97msB.dLCkyX5O0cZsPvz4zAUu"], ["created_at", "2015-03-19 05:23:55.797582"], ["updated_at", "2015-03-19 05:23:55.797582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$0P3Dr8cH2Az8cLle2XWBx.52stKSA6OuJAlFikcgfA9h0aGG1ORha"], ["created_at", "2015-03-19 05:23:55.802159"], ["updated_at", "2015-03-19 05:23:55.802159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.804089"], ["user_id", "236e792a-cdf8-11e4-9c04-705681abff85"], ["created_at", "2015-03-19 05:23:55.804873"], ["updated_at", "2015-03-19 05:23:55.804873"], ["token", "RRnmP9qXqAsAgfcDJtjHI3IBGCAMqjH6A0UD_4zT540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.808151"], ["updated_at", "2015-03-19 05:23:55.808151"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '236e792a-cdf8-11e4-9c04-705681abff85' AND "clubhouse_memberships"."organization_id" = '23700ede-cdf8-11e4-9405-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "236e792a-cdf8-11e4-9c04-705681abff85"], ["organization_id", "23700ede-cdf8-11e4-9405-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.813540"], ["updated_at", "2015-03-19 05:23:55.813540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '236f3450-cdf8-11e4-8f0a-705681abff85' AND "clubhouse_memberships"."organization_id" = '23700ede-cdf8-11e4-9405-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "236f3450-cdf8-11e4-8f0a-705681abff85"], ["organization_id", "23700ede-cdf8-11e4-9405-705681abff85"], ["created_at", "2015-03-19 05:23:55.817158"], ["updated_at", "2015-03-19 05:23:55.817158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/23716fc2-cdf8-11e4-919e-705681abff85" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"23716fc2-cdf8-11e4-919e-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:55.821538' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RRnmP9qXqAsAgfcDJtjHI3IBGCAMqjH6A0UD_4zT540"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:55.823374"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:55.824587"], ["id", "236f9710-cdf8-11e4-9937-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "23716fc2-cdf8-11e4-919e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "236e792a-cdf8-11e4-9c04-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "23700ede-cdf8-11e4-9405-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '236e792a-cdf8-11e4-9c04-705681abff85' LIMIT 1 [["organization_id", "23700ede-cdf8-11e4-9405-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "236f3450-cdf8-11e4-8f0a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "23716fc2-cdf8-11e4-919e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$dLPSfyOMZ2yC7ORnfs2liOb2owe2jCZZ1zt62uDPFL3DcaLIgKshO"], ["created_at", "2015-03-19 05:23:55.835719"], ["updated_at", "2015-03-19 05:23:55.835719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$MjdgGAAcPOv9cK8lIBm3iuib54KPZQA6..72Sf7NZJdwULcE4d3YS"], ["created_at", "2015-03-19 05:23:55.839971"], ["updated_at", "2015-03-19 05:23:55.839971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.841445"], ["user_id", "2374460c-cdf8-11e4-9486-705681abff85"], ["created_at", "2015-03-19 05:23:55.842202"], ["updated_at", "2015-03-19 05:23:55.842202"], ["token", "YaAhhv4YymEJ5-5DrYwfIB8IQLi9sOAeH6e-Sf2pGL0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.845397"], ["updated_at", "2015-03-19 05:23:55.845397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2374460c-cdf8-11e4-9486-705681abff85' AND "clubhouse_memberships"."organization_id" = '2375bde8-cdf8-11e4-b16f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2374460c-cdf8-11e4-9486-705681abff85"], ["organization_id", "2375bde8-cdf8-11e4-b16f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.848981"], ["updated_at", "2015-03-19 05:23:55.848981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2374ea44-cdf8-11e4-96bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '2375bde8-cdf8-11e4-b16f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2374ea44-cdf8-11e4-96bd-705681abff85"], ["organization_id", "2375bde8-cdf8-11e4-b16f-705681abff85"], ["created_at", "2015-03-19 05:23:55.852429"], ["updated_at", "2015-03-19 05:23:55.852429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$.5WusKR.sCtQvfBtCgSuYu0KDIFD2D.JPhLQti8hblj5xQy1/KsNm"], ["created_at", "2015-03-19 05:23:55.863248"], ["updated_at", "2015-03-19 05:23:55.863248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$uzppb5lmpuiL62DWqTV9OOqOLJrav/hRNTeKcsJz6tA5KZ8VsrfdO"], ["created_at", "2015-03-19 05:23:55.871430"], ["updated_at", "2015-03-19 05:23:55.871430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.873323"], ["user_id", "23788f00-cdf8-11e4-8e5c-705681abff85"], ["created_at", "2015-03-19 05:23:55.874117"], ["updated_at", "2015-03-19 05:23:55.874117"], ["token", "z2KkZTGjjyNd4hKJj6-g8WitPU5qjWiJ69srZsQjJB4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.877384"], ["updated_at", "2015-03-19 05:23:55.877384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23788f00-cdf8-11e4-8e5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '237a9ea8-cdf8-11e4-ba7b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23788f00-cdf8-11e4-8e5c-705681abff85"], ["organization_id", "237a9ea8-cdf8-11e4-ba7b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.880497"], ["updated_at", "2015-03-19 05:23:55.880497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2379c56e-cdf8-11e4-b333-705681abff85' AND "clubhouse_memberships"."organization_id" = '237a9ea8-cdf8-11e4-ba7b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2379c56e-cdf8-11e4-b333-705681abff85"], ["organization_id", "237a9ea8-cdf8-11e4-ba7b-705681abff85"], ["created_at", "2015-03-19 05:23:55.883402"], ["updated_at", "2015-03-19 05:23:55.883402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/237a9ea8-cdf8-11e4-ba7b-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"237a9ea8-cdf8-11e4-ba7b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:55.887979' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z2KkZTGjjyNd4hKJj6-g8WitPU5qjWiJ69srZsQjJB4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:55.889373"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:55.890348"], ["id", "237a2810-cdf8-11e4-a537-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "237a9ea8-cdf8-11e4-ba7b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23788f00-cdf8-11e4-8e5c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '23788f00-cdf8-11e4-8e5c-705681abff85' LIMIT 1 [["organization_id", "237a9ea8-cdf8-11e4-ba7b-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "237a9ea8-cdf8-11e4-ba7b-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('23788f00-cdf8-11e4-8e5c-705681abff85', '2379c56e-cdf8-11e4-b333-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('237a9ea8-cdf8-11e4-ba7b-705681abff85') Completed 200 OK in 17ms (Views: 9.1ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$VfsfpCocgHU7RfqjnXfb/ulSl144Sb6WY2OqY5Gs0OY6wv/dTNbXa"], ["created_at", "2015-03-19 05:23:55.913392"], ["updated_at", "2015-03-19 05:23:55.913392"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$XhpKiiRQRjpdllbOlq6K.O9kqcF95OTmhTtWZWqlVnh2PvOvVIqda"], ["created_at", "2015-03-19 05:23:55.921306"], ["updated_at", "2015-03-19 05:23:55.921306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.923451"], ["user_id", "238023b4-cdf8-11e4-baef-705681abff85"], ["created_at", "2015-03-19 05:23:55.924341"], ["updated_at", "2015-03-19 05:23:55.924341"], ["token", "Te_eijMzEhsHUcsMRtV8dDmrEXMrbpjvgRJhJkKpd7g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.928827"], ["updated_at", "2015-03-19 05:23:55.928827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '238023b4-cdf8-11e4-baef-705681abff85' AND "clubhouse_memberships"."organization_id" = '23827ede-cdf8-11e4-a613-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "238023b4-cdf8-11e4-baef-705681abff85"], ["organization_id", "23827ede-cdf8-11e4-a613-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.932899"], ["updated_at", "2015-03-19 05:23:55.932899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23815e82-cdf8-11e4-9491-705681abff85' AND "clubhouse_memberships"."organization_id" = '23827ede-cdf8-11e4-a613-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23815e82-cdf8-11e4-9491-705681abff85"], ["organization_id", "23827ede-cdf8-11e4-a613-705681abff85"], ["created_at", "2015-03-19 05:23:55.936045"], ["updated_at", "2015-03-19 05:23:55.936045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$E5eLYO0DzDcNmdc/xchaz.Gt6cvHx2H0DisCRxLHbXD83/iBIOjO6"], ["created_at", "2015-03-19 05:23:55.940196"], ["updated_at", "2015-03-19 05:23:55.940196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.941681"], ["user_id", "238434ae-cdf8-11e4-b32a-705681abff85"], ["created_at", "2015-03-19 05:23:55.942552"], ["updated_at", "2015-03-19 05:23:55.942552"], ["token", "rovI6AA6Ai7-3ZNmGl-hzSquv5z4vTV0HWcreVnbVIU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '23827ede-cdf8-11e4-a613-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "23827ede-cdf8-11e4-a613-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.946615"], ["updated_at", "2015-03-19 05:23:55.946615"], ["token", "tkTi0lWhq3ZTveD9wvx0u2YtweIvxRPwu7GhU3n7I4o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$oFGUm6uJA2WM9WpZd0As6e9d.ZiYLhDP22bm7mw3fW/wal1xdbKKC"], ["created_at", "2015-03-19 05:23:55.958056"], ["updated_at", "2015-03-19 05:23:55.958056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$PaxcWNLiuDhIB92jXQrj0OsNa7KqVJfsq66ph.spG1EzdrNtyfZgK"], ["created_at", "2015-03-19 05:23:55.962166"], ["updated_at", "2015-03-19 05:23:55.962166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.963822"], ["user_id", "2386f18a-cdf8-11e4-b842-705681abff85"], ["created_at", "2015-03-19 05:23:55.964967"], ["updated_at", "2015-03-19 05:23:55.964967"], ["token", "U1URqLqXb_UZJEPnUsJ_f06FoDbHQ5tpYeQmJK3KUTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:55.968868"], ["updated_at", "2015-03-19 05:23:55.968868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2386f18a-cdf8-11e4-b842-705681abff85' AND "clubhouse_memberships"."organization_id" = '23889710-cdf8-11e4-98b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2386f18a-cdf8-11e4-b842-705681abff85"], ["organization_id", "23889710-cdf8-11e4-98b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.972086"], ["updated_at", "2015-03-19 05:23:55.972086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '238793a6-cdf8-11e4-bbfc-705681abff85' AND "clubhouse_memberships"."organization_id" = '23889710-cdf8-11e4-98b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "238793a6-cdf8-11e4-bbfc-705681abff85"], ["organization_id", "23889710-cdf8-11e4-98b4-705681abff85"], ["created_at", "2015-03-19 05:23:55.974904"], ["updated_at", "2015-03-19 05:23:55.974904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$9Z5lD6kvTEbjc8hgxgtJdOMRLdGZzZP3PqgmCsh47SSHJQCr5QEzC"], ["created_at", "2015-03-19 05:23:55.979404"], ["updated_at", "2015-03-19 05:23:55.979404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:55.981282"], ["user_id", "238a3750-cdf8-11e4-a436-705681abff85"], ["created_at", "2015-03-19 05:23:55.982540"], ["updated_at", "2015-03-19 05:23:55.982540"], ["token", "lcEFH6E9FzM3VrNGObiw0Yh6FX8vInz970dy2VsywfQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '23889710-cdf8-11e4-98b4-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "23889710-cdf8-11e4-98b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:55.986837"], ["updated_at", "2015-03-19 05:23:55.986837"], ["token", "6-dPG398nwGiPNwzutdKcK8e9SgolxSJIaYCEN55bNk"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/23889710-cdf8-11e4-98b4-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:23:55 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"6-dPG398nwGiPNwzutdKcK8e9SgolxSJIaYCEN55bNk", "organization_id"=>"23889710-cdf8-11e4-98b4-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:55.995900' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lcEFH6E9FzM3VrNGObiw0Yh6FX8vInz970dy2VsywfQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:55.997513"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:55.998684"], ["id", "238abdc4-cdf8-11e4-bbae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "23889710-cdf8-11e4-98b4-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "238a3750-cdf8-11e4-a436-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "6-dPG398nwGiPNwzutdKcK8e9SgolxSJIaYCEN55bNk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "23889710-cdf8-11e4-98b4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '238a3750-cdf8-11e4-a436-705681abff85' AND "clubhouse_memberships"."organization_id" = '23889710-cdf8-11e4-98b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "23889710-cdf8-11e4-98b4-705681abff85"], ["member_id", "238a3750-cdf8-11e4-a436-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.008036"], ["updated_at", "2015-03-19 05:23:56.008036"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "238b7624-cdf8-11e4-b58c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.0ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$McNvgiGsJgEk35Vn3seOUutHM.mN9t3A52ATC7v4OAqE.Pn9r.FuW"], ["created_at", "2015-03-19 05:23:56.017750"], ["updated_at", "2015-03-19 05:23:56.017750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$OqAQg7IYnzolQlRZm2K32ubr/rQFPLTWb2evlIHrJ/MphkJ80dWuS"], ["created_at", "2015-03-19 05:23:56.022049"], ["updated_at", "2015-03-19 05:23:56.022049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.023479"], ["user_id", "2390104e-cdf8-11e4-9b26-705681abff85"], ["created_at", "2015-03-19 05:23:56.024243"], ["updated_at", "2015-03-19 05:23:56.024243"], ["token", "uVuNfWoN0NYLFJ1WeAbP4gQA3gxsT1pmCYc1d1ASvwY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.027809"], ["updated_at", "2015-03-19 05:23:56.027809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2390104e-cdf8-11e4-9b26-705681abff85' AND "clubhouse_memberships"."organization_id" = '239192de-cdf8-11e4-9a36-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2390104e-cdf8-11e4-9b26-705681abff85"], ["organization_id", "239192de-cdf8-11e4-9a36-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.031293"], ["updated_at", "2015-03-19 05:23:56.031293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2390b22e-cdf8-11e4-8237-705681abff85' AND "clubhouse_memberships"."organization_id" = '239192de-cdf8-11e4-9a36-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2390b22e-cdf8-11e4-8237-705681abff85"], ["organization_id", "239192de-cdf8-11e4-9a36-705681abff85"], ["created_at", "2015-03-19 05:23:56.034550"], ["updated_at", "2015-03-19 05:23:56.034550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$CpSZQthtFiuJ.prOLvNIDesvCkUXMywUzex.2sii2D6AtHlW450Wi"], ["created_at", "2015-03-19 05:23:56.038941"], ["updated_at", "2015-03-19 05:23:56.038941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.040439"], ["user_id", "239347aa-cdf8-11e4-a3f0-705681abff85"], ["created_at", "2015-03-19 05:23:56.041168"], ["updated_at", "2015-03-19 05:23:56.041168"], ["token", "jtaNh30-k1IQv3NxoUISYPJ2lL6tDzpTVYZDDfzQehU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '239192de-cdf8-11e4-9a36-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "239192de-cdf8-11e4-9a36-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.044684"], ["updated_at", "2015-03-19 05:23:56.044684"], ["token", "ebv29lh97C-RaDfQmAmxKU6PBZ6rAlreAMWTVTQBXfQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/239192de-cdf8-11e4-9a36-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"239192de-cdf8-11e4-9a36-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:56.050195' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jtaNh30-k1IQv3NxoUISYPJ2lL6tDzpTVYZDDfzQehU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:56.051637"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:56.052531"], ["id", "2393a330-cdf8-11e4-8783-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "239192de-cdf8-11e4-9a36-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "239347aa-cdf8-11e4-a3f0-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$s6R5CScqGffg.4cAXz5fkOPzEZRKnPqUAoYPjZTgLt.Q9ELfIJ0km"], ["created_at", "2015-03-19 05:23:56.062819"], ["updated_at", "2015-03-19 05:23:56.062819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$aeaQxDHz0qxi9Q0B2coGrOmt9Txg5cDJ1Bn8g/Ud7Vz/WCA7lehQi"], ["created_at", "2015-03-19 05:23:56.067990"], ["updated_at", "2015-03-19 05:23:56.067990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.069569"], ["user_id", "2396f184-cdf8-11e4-b5a5-705681abff85"], ["created_at", "2015-03-19 05:23:56.070393"], ["updated_at", "2015-03-19 05:23:56.070393"], ["token", "cJr3bmGZTR3xOVlMUypB6RqQxo_623PSqI9zv236J_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.074104"], ["updated_at", "2015-03-19 05:23:56.074104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2396f184-cdf8-11e4-b5a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '2398a434-cdf8-11e4-b7a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2396f184-cdf8-11e4-b5a5-705681abff85"], ["organization_id", "2398a434-cdf8-11e4-b7a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.077208"], ["updated_at", "2015-03-19 05:23:56.077208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2397b682-cdf8-11e4-a6aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '2398a434-cdf8-11e4-b7a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2397b682-cdf8-11e4-a6aa-705681abff85"], ["organization_id", "2398a434-cdf8-11e4-b7a9-705681abff85"], ["created_at", "2015-03-19 05:23:56.080198"], ["updated_at", "2015-03-19 05:23:56.080198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$KwTxJ2dmjIssmFvSXv6lSehgA28vYyLN1T3v2IvyNgqi4OMwxlt2K"], ["created_at", "2015-03-19 05:23:56.091905"], ["updated_at", "2015-03-19 05:23:56.091905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$LxrxXaBVAjwKptSuHmARV.PC9OR9nGG9HXOo.cMANruG/kE5FnT8u"], ["created_at", "2015-03-19 05:23:56.096577"], ["updated_at", "2015-03-19 05:23:56.096577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.098219"], ["user_id", "239b5f30-cdf8-11e4-b5ec-705681abff85"], ["created_at", "2015-03-19 05:23:56.098985"], ["updated_at", "2015-03-19 05:23:56.098985"], ["token", "1-5ZNqXGgoM1zpIYLPXt6hd0VSCGW9_nMLu1D7OZReI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.102194"], ["updated_at", "2015-03-19 05:23:56.102194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '239b5f30-cdf8-11e4-b5ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '239ced82-cdf8-11e4-8d4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "239b5f30-cdf8-11e4-b5ec-705681abff85"], ["organization_id", "239ced82-cdf8-11e4-8d4b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.105470"], ["updated_at", "2015-03-19 05:23:56.105470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '239c1682-cdf8-11e4-bd02-705681abff85' AND "clubhouse_memberships"."organization_id" = '239ced82-cdf8-11e4-8d4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "239c1682-cdf8-11e4-bd02-705681abff85"], ["organization_id", "239ced82-cdf8-11e4-8d4b-705681abff85"], ["created_at", "2015-03-19 05:23:56.108388"], ["updated_at", "2015-03-19 05:23:56.108388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/239ddd96-cdf8-11e4-8097-705681abff85" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"239ddd96-cdf8-11e4-8097-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:56.112798' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1-5ZNqXGgoM1zpIYLPXt6hd0VSCGW9_nMLu1D7OZReI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:56.114195"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:56.115187"], ["id", "239c778a-cdf8-11e4-adb4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "239ddd96-cdf8-11e4-8097-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "239b5f30-cdf8-11e4-b5ec-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "239ced82-cdf8-11e4-8d4b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '239b5f30-cdf8-11e4-b5ec-705681abff85' LIMIT 1 [["organization_id", "239ced82-cdf8-11e4-8d4b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "239c1682-cdf8-11e4-bd02-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '239c1682-cdf8-11e4-bd02-705681abff85' AND "clubhouse_memberships"."id" != '239ddd96-cdf8-11e4-8097-705681abff85' AND "clubhouse_memberships"."organization_id" = '239ced82-cdf8-11e4-8d4b-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:23:56.121972"], ["id", "239ddd96-cdf8-11e4-8097-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$5i5yq5V8raMqI4EZDoFudOkou9QfEeYbjHLR.rovHUOLlR2uXS7XW"], ["created_at", "2015-03-19 05:23:56.130106"], ["updated_at", "2015-03-19 05:23:56.130106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$vTNmEk1Ml6bvTpA2kTWz8.6i3JoUNInDvnTp4trv0wpLEyu22bkmu"], ["created_at", "2015-03-19 05:23:56.134973"], ["updated_at", "2015-03-19 05:23:56.134973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.136556"], ["user_id", "23a133e2-cdf8-11e4-9b19-705681abff85"], ["created_at", "2015-03-19 05:23:56.137325"], ["updated_at", "2015-03-19 05:23:56.137325"], ["token", "C2wsFswdzgfD03Vzl5Ugr_l_0e7DzE3wlkhEjtjgOfA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.140494"], ["updated_at", "2015-03-19 05:23:56.140494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23a133e2-cdf8-11e4-9b19-705681abff85' AND "clubhouse_memberships"."organization_id" = '23a2cb08-cdf8-11e4-b803-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23a133e2-cdf8-11e4-9b19-705681abff85"], ["organization_id", "23a2cb08-cdf8-11e4-b803-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.144016"], ["updated_at", "2015-03-19 05:23:56.144016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23a1f138-cdf8-11e4-9073-705681abff85' AND "clubhouse_memberships"."organization_id" = '23a2cb08-cdf8-11e4-b803-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23a1f138-cdf8-11e4-9073-705681abff85"], ["organization_id", "23a2cb08-cdf8-11e4-b803-705681abff85"], ["created_at", "2015-03-19 05:23:56.149710"], ["updated_at", "2015-03-19 05:23:56.149710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$oKr8u9zcF.jolFjhbjp7TeiCJNEQSLhyunOJMZjYTPBSXuXgRiuEy"], ["created_at", "2015-03-19 05:23:56.154102"], ["updated_at", "2015-03-19 05:23:56.154102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.155628"], ["user_id", "23a4d9ac-cdf8-11e4-aead-705681abff85"], ["created_at", "2015-03-19 05:23:56.156396"], ["updated_at", "2015-03-19 05:23:56.156396"], ["token", "bOYOq-VHFyVVHEZzStMsx2prswBI2waj7GZPrEhNtlM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '23a2cb08-cdf8-11e4-b803-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "23a2cb08-cdf8-11e4-b803-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.159958"], ["updated_at", "2015-03-19 05:23:56.159958"], ["token", "IOFmxHR-X1l4-CzNbmbVw89ElSlLZbjmkEcQyjrF_ls"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$W3HrtQBM6jMwbXju7N3Rp.lpwPt3XjfnKxFnq/uKiH2.vrHrY/nKW"], ["created_at", "2015-03-19 05:23:56.173887"], ["updated_at", "2015-03-19 05:23:56.173887"]]  (14.6ms) RELEASE SAVEPOINT active_record_1  (22.5ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$j0odEpO6AYDuOM97cU7pSuIAXQmL0gCbb.FrcKu1C0mzIIhgWSZ8q"], ["created_at", "2015-03-19 05:23:56.225809"], ["updated_at", "2015-03-19 05:23:56.225809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.228538"], ["user_id", "23a7eb74-cdf8-11e4-8e26-705681abff85"], ["created_at", "2015-03-19 05:23:56.229829"], ["updated_at", "2015-03-19 05:23:56.229829"], ["token", "E_1M24JxFo7hu2coSEjibN_nuD8iBJ2Cy-X-6rqvMg4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.249158"], ["updated_at", "2015-03-19 05:23:56.249158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23a7eb74-cdf8-11e4-8e26-705681abff85' AND "clubhouse_memberships"."organization_id" = '23b36e9a-cdf8-11e4-a03e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23a7eb74-cdf8-11e4-8e26-705681abff85"], ["organization_id", "23b36e9a-cdf8-11e4-a03e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.273241"], ["updated_at", "2015-03-19 05:23:56.273241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23afe126-cdf8-11e4-9d88-705681abff85' AND "clubhouse_memberships"."organization_id" = '23b36e9a-cdf8-11e4-a03e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23afe126-cdf8-11e4-9d88-705681abff85"], ["organization_id", "23b36e9a-cdf8-11e4-a03e-705681abff85"], ["created_at", "2015-03-19 05:23:56.279555"], ["updated_at", "2015-03-19 05:23:56.279555"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$EFF1WwppkOM3ayXHXH0Vzulb4kNAvz1aLJcIqtbzOasWhaASLG1um"], ["created_at", "2015-03-19 05:23:56.298861"], ["updated_at", "2015-03-19 05:23:56.298861"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.301992"], ["user_id", "23bb089e-cdf8-11e4-a8a9-705681abff85"], ["created_at", "2015-03-19 05:23:56.303531"], ["updated_at", "2015-03-19 05:23:56.303531"], ["token", "FHf7qFBWYSX946pFoPpIntNEK82tmOonpeL8wEctXLA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '23b36e9a-cdf8-11e4-a03e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "23b36e9a-cdf8-11e4-a03e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.323013"], ["updated_at", "2015-03-19 05:23:56.323013"], ["token", "5Lrl1vqf-xz46FB_lKB74tMIwA4QClHFth__vycZc9U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"5Lrl1vqf-xz46FB_lKB74tMIwA4QClHFth__vycZc9U", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:56.332694' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FHf7qFBWYSX946pFoPpIntNEK82tmOonpeL8wEctXLA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:56.334911"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:56.336378"], ["id", "23bbe71e-cdf8-11e4-bdc1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23bb089e-cdf8-11e4-a8a9-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "5Lrl1vqf-xz46FB_lKB74tMIwA4QClHFth__vycZc9U"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "23b36e9a-cdf8-11e4-a03e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23bb089e-cdf8-11e4-a8a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '23b36e9a-cdf8-11e4-a03e-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "23b36e9a-cdf8-11e4-a03e-705681abff85"], ["member_id", "23bb089e-cdf8-11e4-a8a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.347337"], ["updated_at", "2015-03-19 05:23:56.347337"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "23bed424-cdf8-11e4-b0e8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 21ms (Views: 1.2ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$qzOrOjjixIDVr.2aVFfeNOBAIRmhkzHs5yfi2fkDDk/dkMwwYI11O"], ["created_at", "2015-03-19 05:23:56.360071"], ["updated_at", "2015-03-19 05:23:56.360071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$2IYLBEgMjdJNrN1JTrR8l.b9Xi8nVNBGko2ikLGK5WKViZFcmO6Ly"], ["created_at", "2015-03-19 05:23:56.364299"], ["updated_at", "2015-03-19 05:23:56.364299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.365800"], ["user_id", "23c449ea-cdf8-11e4-95a0-705681abff85"], ["created_at", "2015-03-19 05:23:56.366597"], ["updated_at", "2015-03-19 05:23:56.366597"], ["token", "A5ZJc_o3Q2xvn4zqZTlWtsmScmoHUuHcmhx65W2uJJw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.369956"], ["updated_at", "2015-03-19 05:23:56.369956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23c449ea-cdf8-11e4-95a0-705681abff85' AND "clubhouse_memberships"."organization_id" = '23c5c888-cdf8-11e4-ab57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23c449ea-cdf8-11e4-95a0-705681abff85"], ["organization_id", "23c5c888-cdf8-11e4-ab57-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.373371"], ["updated_at", "2015-03-19 05:23:56.373371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23c4ecb0-cdf8-11e4-83a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '23c5c888-cdf8-11e4-ab57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23c4ecb0-cdf8-11e4-83a5-705681abff85"], ["organization_id", "23c5c888-cdf8-11e4-ab57-705681abff85"], ["created_at", "2015-03-19 05:23:56.376418"], ["updated_at", "2015-03-19 05:23:56.376418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$nfrf0p9.lAkH3ANJc4nPDurcvyjFIrLGQ9mkhsRfpWchkzL0pcOc."], ["created_at", "2015-03-19 05:23:56.380794"], ["updated_at", "2015-03-19 05:23:56.380794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.382343"], ["user_id", "23c77110-cdf8-11e4-aedc-705681abff85"], ["created_at", "2015-03-19 05:23:56.383113"], ["updated_at", "2015-03-19 05:23:56.383113"], ["token", "WKyuPNrS4sfdPkfVy63cY-M5bF7qDatr7N9z3yAVHqA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '23c5c888-cdf8-11e4-ab57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "23c5c888-cdf8-11e4-ab57-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.386685"], ["updated_at", "2015-03-19 05:23:56.386685"], ["token", "wjll8W3kdTQC88vDXu5DoREDXsXl9RIf-bC9xg4sUR8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:56.392182' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WKyuPNrS4sfdPkfVy63cY-M5bF7qDatr7N9z3yAVHqA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:56.393686"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:56.394585"], ["id", "23c7d1dc-cdf8-11e4-99c7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23c77110-cdf8-11e4-aedc-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$HycIIbZlrbZclyHB0jztFuVsZucAp0Azs1ZU6ykKOpOYmfj8mvqwu"], ["created_at", "2015-03-19 05:23:56.404981"], ["updated_at", "2015-03-19 05:23:56.404981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$OOKejSjmvSNR2HyqFx2vJOoXRZN/w5Fk3ItmBrpxEZUD5Qc98xxdu"], ["created_at", "2015-03-19 05:23:56.408957"], ["updated_at", "2015-03-19 05:23:56.408957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.410337"], ["user_id", "23cb2300-cdf8-11e4-83bb-705681abff85"], ["created_at", "2015-03-19 05:23:56.411067"], ["updated_at", "2015-03-19 05:23:56.411067"], ["token", "kbW1FSYeB5WCM-H_DEXnCZfyb0huEoqNmPp8zdWMF-A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.415091"], ["updated_at", "2015-03-19 05:23:56.415091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23cb2300-cdf8-11e4-83bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '23ccae00-cdf8-11e4-b524-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23cb2300-cdf8-11e4-83bb-705681abff85"], ["organization_id", "23ccae00-cdf8-11e4-b524-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.418264"], ["updated_at", "2015-03-19 05:23:56.418264"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23cbbac2-cdf8-11e4-aafe-705681abff85' AND "clubhouse_memberships"."organization_id" = '23ccae00-cdf8-11e4-b524-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23cbbac2-cdf8-11e4-aafe-705681abff85"], ["organization_id", "23ccae00-cdf8-11e4-b524-705681abff85"], ["created_at", "2015-03-19 05:23:56.421459"], ["updated_at", "2015-03-19 05:23:56.421459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$58pjxgnBKwvDviGP8cxhUu6JP5i//t.GgCI6Vq78ckHiHJsTGgUYu"], ["created_at", "2015-03-19 05:23:56.431677"], ["updated_at", "2015-03-19 05:23:56.431677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$nzHfAu0tF1lVQLLP/2ZKd.REC9S7C5cjp5xCdvHryevzoWz4aaKLC"], ["created_at", "2015-03-19 05:23:56.446327"], ["updated_at", "2015-03-19 05:23:56.446327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.449045"], ["user_id", "23cf3abc-cdf8-11e4-82c0-705681abff85"], ["created_at", "2015-03-19 05:23:56.450942"], ["updated_at", "2015-03-19 05:23:56.450942"], ["token", "qITS0IU1JA9A6i76M8L5NcH-pP0KdzUZo3thMhSPbBE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.456654"], ["updated_at", "2015-03-19 05:23:56.456654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23cf3abc-cdf8-11e4-82c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '23d30872-cdf8-11e4-923d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23cf3abc-cdf8-11e4-82c0-705681abff85"], ["organization_id", "23d30872-cdf8-11e4-923d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.460413"], ["updated_at", "2015-03-19 05:23:56.460413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23d182ea-cdf8-11e4-97ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '23d30872-cdf8-11e4-923d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23d182ea-cdf8-11e4-97ef-705681abff85"], ["organization_id", "23d30872-cdf8-11e4-923d-705681abff85"], ["created_at", "2015-03-19 05:23:56.463786"], ["updated_at", "2015-03-19 05:23:56.463786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:56.469626' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qITS0IU1JA9A6i76M8L5NcH-pP0KdzUZo3thMhSPbBE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:56.485978"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:56.487395"], ["id", "23d23d0c-cdf8-11e4-8f33-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23cf3abc-cdf8-11e4-82c0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '23cf3abc-cdf8-11e4-82c0-705681abff85' LIMIT 1 [["organization_id", "23d30872-cdf8-11e4-923d-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "23d30872-cdf8-11e4-923d-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('23cf3abc-cdf8-11e4-82c0-705681abff85', '23d182ea-cdf8-11e4-97ef-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('23d30872-cdf8-11e4-923d-705681abff85') Completed 200 OK in 30ms (Views: 5.0ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.518251"], ["updated_at", "2015-03-19 05:23:56.518251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.541637"], ["updated_at", "2015-03-19 05:23:56.541637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.564483"], ["updated_at", "2015-03-19 05:23:56.564483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.589716"], ["updated_at", "2015-03-19 05:23:56.589716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "23e75b9c-cdf8-11e4-94a9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.596971"], ["updated_at", "2015-03-19 05:23:56.596971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$COvadqNJmIIeQfqphEr/OeM21.5h0ySWjmcwl/Qa1FW6VfLtzCOFq"], ["created_at", "2015-03-19 05:23:56.607754"], ["updated_at", "2015-03-19 05:23:56.607754"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.610186"], ["user_id", "23ea21d8-cdf8-11e4-a91a-705681abff85"], ["created_at", "2015-03-19 05:23:56.611140"], ["updated_at", "2015-03-19 05:23:56.611140"], ["token", "JhJYKZUuchsOb4nSfP3zI5E4zUI7iRx4nXpqfQun4-U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.615217"], ["updated_at", "2015-03-19 05:23:56.615217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23ea21d8-cdf8-11e4-a91a-705681abff85' AND "clubhouse_memberships"."organization_id" = '23eb3d16-cdf8-11e4-b437-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23ea21d8-cdf8-11e4-a91a-705681abff85"], ["organization_id", "23eb3d16-cdf8-11e4-b437-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.618902"], ["updated_at", "2015-03-19 05:23:56.618902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '23eb3d16-cdf8-11e4-b437-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "23eb3d16-cdf8-11e4-b437-705681abff85"], ["created_at", "2015-03-19 05:23:56.622731"], ["updated_at", "2015-03-19 05:23:56.622731"], ["token", "Xp6DZhhgmNoglsypoAWKhN4W5gwSgQn3wegUbduTgCg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$cLys0z1xNjbz0AC4SYY8hebViOREOrTbOUs.vIeFHZuHTtsqLjpR2"], ["created_at", "2015-03-19 05:23:56.640871"], ["updated_at", "2015-03-19 05:23:56.640871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.642510"], ["user_id", "23ef2426-cdf8-11e4-ae03-705681abff85"], ["created_at", "2015-03-19 05:23:56.643289"], ["updated_at", "2015-03-19 05:23:56.643289"], ["token", "lnyQVTTzYnBYw198M9140rLQ1D3KQxXXmPG7v8B6108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.648176"], ["updated_at", "2015-03-19 05:23:56.648176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23ef2426-cdf8-11e4-ae03-705681abff85' AND "clubhouse_memberships"."organization_id" = '23f040b8-cdf8-11e4-b623-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23ef2426-cdf8-11e4-ae03-705681abff85"], ["organization_id", "23f040b8-cdf8-11e4-b623-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.652657"], ["updated_at", "2015-03-19 05:23:56.652657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '23f040b8-cdf8-11e4-b623-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "23f040b8-cdf8-11e4-b623-705681abff85"], ["created_at", "2015-03-19 05:23:56.656880"], ["updated_at", "2015-03-19 05:23:56.656880"], ["token", "DIMM5U7HHRGVSDlZ_VorGXN0rlnDMPP2eUt2K1-iH7o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/23f1a9c6-cdf8-11e4-98b2-705681abff85" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"23f1a9c6-cdf8-11e4-98b2-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:56.663116' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lnyQVTTzYnBYw198M9140rLQ1D3KQxXXmPG7v8B6108"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:56.664733"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:56.665719"], ["id", "23ef8984-cdf8-11e4-972e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "23f1a9c6-cdf8-11e4-98b2-705681abff85"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23ef2426-cdf8-11e4-ae03-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "23f040b8-cdf8-11e4-b623-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '23ef2426-cdf8-11e4-ae03-705681abff85' LIMIT 1 [["organization_id", "23f040b8-cdf8-11e4-b623-705681abff85"]] Completed 200 OK in 23ms (Views: 2.4ms | ActiveRecord: 1.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$yiZW4mqa62P.RORZbhp5PerLP3YRewKigFLLuJ7e9ZaBSNdlNT.M."], ["created_at", "2015-03-19 05:23:56.694899"], ["updated_at", "2015-03-19 05:23:56.694899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.697011"], ["user_id", "23f76e92-cdf8-11e4-be12-705681abff85"], ["created_at", "2015-03-19 05:23:56.697786"], ["updated_at", "2015-03-19 05:23:56.697786"], ["token", "NMBgr69f8tRVXVLkJoE__EE7zvr24hiXBCHF7YsyknI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.702125"], ["updated_at", "2015-03-19 05:23:56.702125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23f76e92-cdf8-11e4-be12-705681abff85' AND "clubhouse_memberships"."organization_id" = '23f88462-cdf8-11e4-8555-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23f76e92-cdf8-11e4-be12-705681abff85"], ["organization_id", "23f88462-cdf8-11e4-8555-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.706764"], ["updated_at", "2015-03-19 05:23:56.706764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '23f88462-cdf8-11e4-8555-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "23f88462-cdf8-11e4-8555-705681abff85"], ["created_at", "2015-03-19 05:23:56.710778"], ["updated_at", "2015-03-19 05:23:56.710778"], ["token", "ycW-nl8LJynd9lHlz32wzWbIpW5aOtH4zzPNjLu9EFc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$oOlh5s/PV..xnbEHu5tEguv/EwJX.gKEIcfxiFoBtz1bnqIBAIhHG"], ["created_at", "2015-03-19 05:23:56.742135"], ["updated_at", "2015-03-19 05:23:56.742135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.744625"], ["user_id", "23fea338-cdf8-11e4-bab1-705681abff85"], ["created_at", "2015-03-19 05:23:56.745869"], ["updated_at", "2015-03-19 05:23:56.745869"], ["token", "Dt3nscBFmj3Ldj4NXJsYCxtknBZVW6ZmBx1AbUqNA_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.751659"], ["updated_at", "2015-03-19 05:23:56.751659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23fea338-cdf8-11e4-bab1-705681abff85' AND "clubhouse_memberships"."organization_id" = '240013da-cdf8-11e4-9d4b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23fea338-cdf8-11e4-bab1-705681abff85"], ["organization_id", "240013da-cdf8-11e4-9d4b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.756930"], ["updated_at", "2015-03-19 05:23:56.756930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '240013da-cdf8-11e4-9d4b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "240013da-cdf8-11e4-9d4b-705681abff85"], ["created_at", "2015-03-19 05:23:56.763053"], ["updated_at", "2015-03-19 05:23:56.763053"], ["token", "a6fmL8IC_mRR54TwKvMGPRUIxwGf17gf4h_3JkZ4SG0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/2401df80-cdf8-11e4-b098-705681abff85" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"2401df80-cdf8-11e4-b098-705681abff85", "invitation"=>{}} Pollett::Session Load (1.1ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:56.773375' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Dt3nscBFmj3Ldj4NXJsYCxtknBZVW6ZmBx1AbUqNA_s"]]  (0.2ms) SAVEPOINT active_record_1 SQL (17.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:56.776860"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:56.778650"], ["id", "23ff3d66-cdf8-11e4-b4db-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2401df80-cdf8-11e4-b098-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23fea338-cdf8-11e4-bab1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "240013da-cdf8-11e4-9d4b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '23fea338-cdf8-11e4-bab1-705681abff85' LIMIT 1 [["organization_id", "240013da-cdf8-11e4-9d4b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "2401df80-cdf8-11e4-b098-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 39ms (ActiveRecord: 20.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (15.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$7Mei4Q9Xe89HraFM981hbe1r6NjMoQxOrsJXz1Z08gzBD0iMeaqTq"], ["created_at", "2015-03-19 05:23:56.823983"], ["updated_at", "2015-03-19 05:23:56.823983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.842417"], ["user_id", "240b2bda-cdf8-11e4-a23e-705681abff85"], ["created_at", "2015-03-19 05:23:56.843511"], ["updated_at", "2015-03-19 05:23:56.843511"], ["token", "-k5V-H2P7tv_4NQWZq4_RdOrIC5U7Nss_HvhVWhIIXI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.852089"], ["updated_at", "2015-03-19 05:23:56.852089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '240b2bda-cdf8-11e4-a23e-705681abff85' AND "clubhouse_memberships"."organization_id" = '240f7294-cdf8-11e4-9323-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "240b2bda-cdf8-11e4-a23e-705681abff85"], ["organization_id", "240f7294-cdf8-11e4-9323-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.858919"], ["updated_at", "2015-03-19 05:23:56.858919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '240f7294-cdf8-11e4-9323-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "240f7294-cdf8-11e4-9323-705681abff85"], ["created_at", "2015-03-19 05:23:56.862917"], ["updated_at", "2015-03-19 05:23:56.862917"], ["token", "NQaL-MhXKMwT4XljTV4lgeTSj9D3VAeZ2D1Jh9_-bLo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$O34tH2Ghm4IuBAlvS63tf.6GIxPLK2HG8gnR40OKKOR4D.8Wjw/xy"], ["created_at", "2015-03-19 05:23:56.867514"], ["updated_at", "2015-03-19 05:23:56.867514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.872830"], ["updated_at", "2015-03-19 05:23:56.872830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2411bfc2-cdf8-11e4-a2cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '24128cd6-cdf8-11e4-a3ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2411bfc2-cdf8-11e4-a2cb-705681abff85"], ["organization_id", "24128cd6-cdf8-11e4-a3ad-705681abff85"], ["created_at", "2015-03-19 05:23:56.877260"], ["updated_at", "2015-03-19 05:23:56.877260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$EvTTe2QJnsg4X5oFfabFZu0BY/AgRkoWzbnKWZA9NMAj54.wa1bFm"], ["created_at", "2015-03-19 05:23:56.891660"], ["updated_at", "2015-03-19 05:23:56.891660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.894872"], ["user_id", "241577e8-cdf8-11e4-bb05-705681abff85"], ["created_at", "2015-03-19 05:23:56.895985"], ["updated_at", "2015-03-19 05:23:56.895985"], ["token", "Tdjhh-wAkY6P3WNkqHy97CQrnx_5MCSRkdZZnHQL0f0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.903100"], ["updated_at", "2015-03-19 05:23:56.903100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '241577e8-cdf8-11e4-bb05-705681abff85' AND "clubhouse_memberships"."organization_id" = '24173be6-cdf8-11e4-9af7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "241577e8-cdf8-11e4-bb05-705681abff85"], ["organization_id", "24173be6-cdf8-11e4-9af7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.909413"], ["updated_at", "2015-03-19 05:23:56.909413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '24173be6-cdf8-11e4-9af7-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "24173be6-cdf8-11e4-9af7-705681abff85"], ["created_at", "2015-03-19 05:23:56.916051"], ["updated_at", "2015-03-19 05:23:56.916051"], ["token", "O7FjjmmfxEE4TYqHpwJIcBEQzxfF9PFdvgFW4_cJr8A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$Mi9a8ZNDKfY3oyb1APUY0.psrmhbsT2z9rZxsyYL4XN0f4tVRbApy"], ["created_at", "2015-03-19 05:23:56.924089"], ["updated_at", "2015-03-19 05:23:56.924089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.928942"], ["updated_at", "2015-03-19 05:23:56.928942"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '241a6a3c-cdf8-11e4-a5dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '241b25bc-cdf8-11e4-a056-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "241a6a3c-cdf8-11e4-a5dc-705681abff85"], ["organization_id", "241b25bc-cdf8-11e4-a056-705681abff85"], ["created_at", "2015-03-19 05:23:56.934391"], ["updated_at", "2015-03-19 05:23:56.934391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/24173be6-cdf8-11e4-9af7-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"24173be6-cdf8-11e4-9af7-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:56.941751' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Tdjhh-wAkY6P3WNkqHy97CQrnx_5MCSRkdZZnHQL0f0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:56.943603"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:56.944774"], ["id", "24166734-cdf8-11e4-965b-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "24173be6-cdf8-11e4-9af7-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "241577e8-cdf8-11e4-bb05-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '241577e8-cdf8-11e4-bb05-705681abff85' LIMIT 1 [["organization_id", "24173be6-cdf8-11e4-9af7-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "24173be6-cdf8-11e4-9af7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('24173be6-cdf8-11e4-9af7-705681abff85') Completed 200 OK in 18ms (Views: 4.3ms | ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$VMNwp0xjtMQP5jK/hGK8euwp/af.4eF2xXDX.ocUBs9k1IowSZmue"], ["created_at", "2015-03-19 05:23:56.968208"], ["updated_at", "2015-03-19 05:23:56.968208"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:56.970811"], ["user_id", "24212282-cdf8-11e4-b314-705681abff85"], ["created_at", "2015-03-19 05:23:56.972224"], ["updated_at", "2015-03-19 05:23:56.972224"], ["token", "fNuiyoDW7SBxgLbVH52GvwISDAM1fzImU7RzEG_ncHc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:56.976335"], ["updated_at", "2015-03-19 05:23:56.976335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24212282-cdf8-11e4-b314-705681abff85' AND "clubhouse_memberships"."organization_id" = '24225918-cdf8-11e4-9ce9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24212282-cdf8-11e4-b314-705681abff85"], ["organization_id", "24225918-cdf8-11e4-9ce9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:56.980199"], ["updated_at", "2015-03-19 05:23:56.980199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '24225918-cdf8-11e4-9ce9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "24225918-cdf8-11e4-9ce9-705681abff85"], ["created_at", "2015-03-19 05:23:56.984406"], ["updated_at", "2015-03-19 05:23:56.984406"], ["token", "pwAkIpSBj0ljbUQKp0AsniRulAFpGh4RNxo2DnbignM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 22:23:56 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$ZosJMKAMH5CH0wKyDsL4T.2q2lMCAvO4sdhkCkSXboShsl1TXw6/G"], ["created_at", "2015-03-19 05:23:56.999048"], ["updated_at", "2015-03-19 05:23:56.999048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.001291"], ["user_id", "2425d8cc-cdf8-11e4-a677-705681abff85"], ["created_at", "2015-03-19 05:23:57.002136"], ["updated_at", "2015-03-19 05:23:57.002136"], ["token", "8dlZP6cXZ6eV9daKbovMp-m7nciN_08MwKBy4UOvPyw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.006382"], ["updated_at", "2015-03-19 05:23:57.006382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2425d8cc-cdf8-11e4-a677-705681abff85' AND "clubhouse_memberships"."organization_id" = '2426e8ac-cdf8-11e4-9895-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2425d8cc-cdf8-11e4-a677-705681abff85"], ["organization_id", "2426e8ac-cdf8-11e4-9895-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.009723"], ["updated_at", "2015-03-19 05:23:57.009723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '2426e8ac-cdf8-11e4-9895-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "2426e8ac-cdf8-11e4-9895-705681abff85"], ["created_at", "2015-03-19 05:23:57.013082"], ["updated_at", "2015-03-19 05:23:57.013082"], ["token", "EI8T7TPGXP56o1RoYpFn9IrpLVVm5_zd6CKqaSWLJ8Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2426e8ac-cdf8-11e4-9895-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"2426e8ac-cdf8-11e4-9895-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:57.018573' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8dlZP6cXZ6eV9daKbovMp-m7nciN_08MwKBy4UOvPyw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:57.020773"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:57.022448"], ["id", "2426525c-cdf8-11e4-966f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2426e8ac-cdf8-11e4-9895-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2425d8cc-cdf8-11e4-a677-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2426e8ac-cdf8-11e4-9895-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2425d8cc-cdf8-11e4-a677-705681abff85' LIMIT 1 [["organization_id", "2426e8ac-cdf8-11e4-9895-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '2426e8ac-cdf8-11e4-9895-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "2426e8ac-cdf8-11e4-9895-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.032885"], ["updated_at", "2015-03-19 05:23:57.032885"], ["token", "NwQyRKLi2NQtO0pUB99ULbiem_fBOS0a6Q1jkkXRego"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5c365865-44e4-4e98-b804-88f624942b15) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/242b113e-cdf8-11e4-a1e4-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "242b113e-cdf8-11e4-a1e4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5c365865-44e4-4e98-b804-88f624942b15] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/242b113e-cdf8-11e4-a1e4-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [5c365865-44e4-4e98-b804-88f624942b15] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2426e8ac-cdf8-11e4-9895-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5c365865-44e4-4e98-b804-88f624942b15] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [5c365865-44e4-4e98-b804-88f624942b15] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [5c365865-44e4-4e98-b804-88f624942b15] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [5c365865-44e4-4e98-b804-88f624942b15] Date: Wed, 18 Mar 2015 22:23:57 -0700 From: from@example.com To: email@example.com Message-ID: <550a5d6d17b88_e3a63fdd64865bec65888@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/NwQyRKLi2NQtO0pUB99ULbiem_fBOS0a6Q1jkkXRego?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5c365865-44e4-4e98-b804-88f624942b15] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.67ms Completed 201 Created in 81ms (Views: 1.1ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$aO5V5SMe0Vq/2zlFzHz.g.zZWWf.a8PuP3dXtRVbPdMTHGo27aoOW"], ["created_at", "2015-03-19 05:23:57.107876"], ["updated_at", "2015-03-19 05:23:57.107876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.109904"], ["user_id", "24366c6e-cdf8-11e4-b469-705681abff85"], ["created_at", "2015-03-19 05:23:57.110910"], ["updated_at", "2015-03-19 05:23:57.110910"], ["token", "gEiCrI-KR7dy7mfsWV5P-pCB26PXnVTnxP3nL3RG5WM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.115324"], ["updated_at", "2015-03-19 05:23:57.115324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24366c6e-cdf8-11e4-b469-705681abff85' AND "clubhouse_memberships"."organization_id" = '2437910c-cdf8-11e4-b25a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24366c6e-cdf8-11e4-b469-705681abff85"], ["organization_id", "2437910c-cdf8-11e4-b25a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.119706"], ["updated_at", "2015-03-19 05:23:57.119706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '2437910c-cdf8-11e4-b25a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "2437910c-cdf8-11e4-b25a-705681abff85"], ["created_at", "2015-03-19 05:23:57.123881"], ["updated_at", "2015-03-19 05:23:57.123881"], ["token", "yqi_I259AVjVrTQMPS41lTyScX8L75xaB_74V5-PFSQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2437910c-cdf8-11e4-b25a-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"2437910c-cdf8-11e4-b25a-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:57.130402' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gEiCrI-KR7dy7mfsWV5P-pCB26PXnVTnxP3nL3RG5WM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:57.132078"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:57.133146"], ["id", "2436ef4a-cdf8-11e4-9708-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2437910c-cdf8-11e4-b25a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24366c6e-cdf8-11e4-b469-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2437910c-cdf8-11e4-b25a-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24366c6e-cdf8-11e4-b469-705681abff85' LIMIT 1 [["organization_id", "2437910c-cdf8-11e4-b25a-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '2437910c-cdf8-11e4-b25a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "2437910c-cdf8-11e4-b25a-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.143580"], ["updated_at", "2015-03-19 05:23:57.143580"], ["token", "Xrh6_N_tZbVXuvFQBY0QS2LG-Xw-aWsH_VCYlmCiK4M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8268e0ac-6347-4161-886d-6598e4eea84b) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/243be9e6-cdf8-11e4-ba21-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "243be9e6-cdf8-11e4-ba21-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8268e0ac-6347-4161-886d-6598e4eea84b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/243be9e6-cdf8-11e4-ba21-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [8268e0ac-6347-4161-886d-6598e4eea84b] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2437910c-cdf8-11e4-b25a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8268e0ac-6347-4161-886d-6598e4eea84b] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [8268e0ac-6347-4161-886d-6598e4eea84b] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [8268e0ac-6347-4161-886d-6598e4eea84b] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [8268e0ac-6347-4161-886d-6598e4eea84b] Date: Wed, 18 Mar 2015 22:23:57 -0700 From: from@example.com To: email@example.com Message-ID: <550a5d6d25278_e3a63fdd64865bec6599e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Xrh6_N_tZbVXuvFQBY0QS2LG-Xw-aWsH_VCYlmCiK4M?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [8268e0ac-6347-4161-886d-6598e4eea84b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.89ms Completed 201 Created in 24ms (Views: 0.9ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$.GoeEezDLMPpwbqfcjFtsOcoaSU8VyeM7nfiU5LrtKE1ARkQRQYgS"], ["created_at", "2015-03-19 05:23:57.163300"], ["updated_at", "2015-03-19 05:23:57.163300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.165336"], ["user_id", "243ee36c-cdf8-11e4-a861-705681abff85"], ["created_at", "2015-03-19 05:23:57.166212"], ["updated_at", "2015-03-19 05:23:57.166212"], ["token", "S6gGfl_OR7him98EDw19WFOHSUUHLVVovU4Pwg8LKww"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.170661"], ["updated_at", "2015-03-19 05:23:57.170661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '243ee36c-cdf8-11e4-a861-705681abff85' AND "clubhouse_memberships"."organization_id" = '243ffd42-cdf8-11e4-a3ff-705681abff85') LIMIT 1 SQL (21.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "243ee36c-cdf8-11e4-a861-705681abff85"], ["organization_id", "243ffd42-cdf8-11e4-a3ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.174646"], ["updated_at", "2015-03-19 05:23:57.174646"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '243ffd42-cdf8-11e4-a3ff-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "243ffd42-cdf8-11e4-a3ff-705681abff85"], ["created_at", "2015-03-19 05:23:57.206647"], ["updated_at", "2015-03-19 05:23:57.206647"], ["token", "RwLjROs6nWZLliI-lbiyqhSRS4HWaX5VcBoOMCelJe4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/243ffd42-cdf8-11e4-a3ff-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"243ffd42-cdf8-11e4-a3ff-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:57.219791' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S6gGfl_OR7him98EDw19WFOHSUUHLVVovU4Pwg8LKww"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:57.222675"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:57.224732"], ["id", "243f57de-cdf8-11e4-90c9-705681abff85"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "243ffd42-cdf8-11e4-a3ff-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "243ee36c-cdf8-11e4-a861-705681abff85"]] Clubhouse::Organization Load (1.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "243ffd42-cdf8-11e4-a3ff-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '243ee36c-cdf8-11e4-a861-705681abff85' LIMIT 1 [["organization_id", "243ffd42-cdf8-11e4-a3ff-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '243ffd42-cdf8-11e4-a3ff-705681abff85') LIMIT 1  (0.9ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 33ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$cYn4gYtzGGvWkQmE8QIu9eSNxLJygr6p9naIkvrZTNOe/72ZxGrjW"], ["created_at", "2015-03-19 05:23:57.269542"], ["updated_at", "2015-03-19 05:23:57.269542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.272623"], ["user_id", "244f29c0-cdf8-11e4-baeb-705681abff85"], ["created_at", "2015-03-19 05:23:57.274031"], ["updated_at", "2015-03-19 05:23:57.274031"], ["token", "NX02UkTi9kyJtiO3VhWMMXVTrsIOS-3BIPAVhQHPIMo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.280982"], ["updated_at", "2015-03-19 05:23:57.280982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '244f29c0-cdf8-11e4-baeb-705681abff85' AND "clubhouse_memberships"."organization_id" = '2450e53a-cdf8-11e4-991b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "244f29c0-cdf8-11e4-baeb-705681abff85"], ["organization_id", "2450e53a-cdf8-11e4-991b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.285848"], ["updated_at", "2015-03-19 05:23:57.285848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '2450e53a-cdf8-11e4-991b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "2450e53a-cdf8-11e4-991b-705681abff85"], ["created_at", "2015-03-19 05:23:57.290385"], ["updated_at", "2015-03-19 05:23:57.290385"], ["token", "h0Hdj9Ml2dlRPU8jBQ5cAby9OVXMUfjoq9yG6b5yMjw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$TAdQ018J.58tgxJUTS6LGe55FhSAyqOTSZahEoAPyyTHUR1X6r2YS"], ["created_at", "2015-03-19 05:23:57.303782"], ["updated_at", "2015-03-19 05:23:57.303782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.305617"], ["user_id", "24544fe0-cdf8-11e4-8784-705681abff85"], ["created_at", "2015-03-19 05:23:57.306564"], ["updated_at", "2015-03-19 05:23:57.306564"], ["token", "9buRW-WmtfmeKsxFLK0cGd23eNcMnyvURp_cmrt0eeg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.313334"], ["updated_at", "2015-03-19 05:23:57.313334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24544fe0-cdf8-11e4-8784-705681abff85' AND "clubhouse_memberships"."organization_id" = '2455dc48-cdf8-11e4-9300-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24544fe0-cdf8-11e4-8784-705681abff85"], ["organization_id", "2455dc48-cdf8-11e4-9300-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.319346"], ["updated_at", "2015-03-19 05:23:57.319346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '2455dc48-cdf8-11e4-9300-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "2455dc48-cdf8-11e4-9300-705681abff85"], ["created_at", "2015-03-19 05:23:57.323747"], ["updated_at", "2015-03-19 05:23:57.323747"], ["token", "UKmW9Kt7fiOQADXhWUEes91VXVmRBCObnGqWY9Z2QCE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/24575a96-cdf8-11e4-91b9-705681abff85" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"24575a96-cdf8-11e4-91b9-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:57.330266' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9buRW-WmtfmeKsxFLK0cGd23eNcMnyvURp_cmrt0eeg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:57.331754"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:57.332777"], ["id", "2454d41a-cdf8-11e4-b15e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "24575a96-cdf8-11e4-91b9-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24544fe0-cdf8-11e4-8784-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2455dc48-cdf8-11e4-9300-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24544fe0-cdf8-11e4-8784-705681abff85' LIMIT 1 [["organization_id", "2455dc48-cdf8-11e4-9300-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."id" != '24575a96-cdf8-11e4-91b9-705681abff85' AND "clubhouse_invitations"."organization_id" = '2455dc48-cdf8-11e4-9300-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:23:57.340170"], ["id", "24575a96-cdf8-11e4-91b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$pkNyCyOQO1jd.qcdpYSnTeFhNoc/2uvqZu2vHETvpx6hSt9hUnqxG"], ["created_at", "2015-03-19 05:23:57.348442"], ["updated_at", "2015-03-19 05:23:57.348442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.350264"], ["user_id", "245b2068-cdf8-11e4-9b6b-705681abff85"], ["created_at", "2015-03-19 05:23:57.351053"], ["updated_at", "2015-03-19 05:23:57.351053"], ["token", "UTmkr1K6anK49KMKG1ErCKNZEHCY8tLK9EJYaLgez6k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.354537"], ["updated_at", "2015-03-19 05:23:57.354537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '245b2068-cdf8-11e4-9b6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '245c09a6-cdf8-11e4-8300-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "245b2068-cdf8-11e4-9b6b-705681abff85"], ["organization_id", "245c09a6-cdf8-11e4-8300-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.358020"], ["updated_at", "2015-03-19 05:23:57.358020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '245c09a6-cdf8-11e4-8300-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "245c09a6-cdf8-11e4-8300-705681abff85"], ["created_at", "2015-03-19 05:23:57.361423"], ["updated_at", "2015-03-19 05:23:57.361423"], ["token", "PU_OqwopqkXC2wJvf8_vZd_3-SlViYRDSXCKw1_rgEw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$RaTEqEeeTCE1WWRJKWZ21OyF.v/nZsCz7j.hJlEV0P1L.7iEEyHxW"], ["created_at", "2015-03-19 05:23:57.371133"], ["updated_at", "2015-03-19 05:23:57.371133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.372958"], ["user_id", "245e96e4-cdf8-11e4-ae03-705681abff85"], ["created_at", "2015-03-19 05:23:57.373785"], ["updated_at", "2015-03-19 05:23:57.373785"], ["token", "aWvRq1YiWQGfEGfvTEZso-FaIXbU2HWI8w0_Q9afTxQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.377625"], ["updated_at", "2015-03-19 05:23:57.377625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '245e96e4-cdf8-11e4-ae03-705681abff85' AND "clubhouse_memberships"."organization_id" = '245f8d38-cdf8-11e4-a7c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "245e96e4-cdf8-11e4-ae03-705681abff85"], ["organization_id", "245f8d38-cdf8-11e4-a7c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.381400"], ["updated_at", "2015-03-19 05:23:57.381400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '245f8d38-cdf8-11e4-a7c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "245f8d38-cdf8-11e4-a7c6-705681abff85"], ["created_at", "2015-03-19 05:23:57.384937"], ["updated_at", "2015-03-19 05:23:57.384937"], ["token", "kW3NWk5PZlUM8TP3dNqZJnhNA3sU-LCKs_-OLl457uc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:57.389539' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aWvRq1YiWQGfEGfvTEZso-FaIXbU2HWI8w0_Q9afTxQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:57.391038"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:57.392037"], ["id", "245f000c-cdf8-11e4-9572-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "245e96e4-cdf8-11e4-ae03-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "245f8d38-cdf8-11e4-a7c6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '245e96e4-cdf8-11e4-ae03-705681abff85' LIMIT 1 [["organization_id", "245f8d38-cdf8-11e4-a7c6-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '245f8d38-cdf8-11e4-a7c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "245f8d38-cdf8-11e4-a7c6-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.399293"], ["updated_at", "2015-03-19 05:23:57.399293"], ["token", "AauGN0qB5K1ToY7AL9xGw2R1ng-L8vBQkiEFBPxpH-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2fbda5e6-1631-4410-a196-80d9d4b9fadc) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2462e3de-cdf8-11e4-bccc-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2462e3de-cdf8-11e4-bccc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2fbda5e6-1631-4410-a196-80d9d4b9fadc] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/2462e3de-cdf8-11e4-bccc-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [2fbda5e6-1631-4410-a196-80d9d4b9fadc] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "245f8d38-cdf8-11e4-a7c6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2fbda5e6-1631-4410-a196-80d9d4b9fadc] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [2fbda5e6-1631-4410-a196-80d9d4b9fadc] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [2fbda5e6-1631-4410-a196-80d9d4b9fadc] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [2fbda5e6-1631-4410-a196-80d9d4b9fadc] Date: Wed, 18 Mar 2015 22:23:57 -0700 From: from@example.com To: email@example.com Message-ID: <550a5d6d63388_e3a63fdd64865bec6605a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/AauGN0qB5K1ToY7AL9xGw2R1ng-L8vBQkiEFBPxpH-s?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [2fbda5e6-1631-4410-a196-80d9d4b9fadc] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.01ms Completed 201 Created in 19ms (Views: 1.1ms | ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$HLohAKcEHue96g55njAfJeX2QikDO.fDPL9Z/9QdNqjOkLli6NHyq"], ["created_at", "2015-03-19 05:23:57.418055"], ["updated_at", "2015-03-19 05:23:57.418055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.419724"], ["user_id", "2465bb0e-cdf8-11e4-b424-705681abff85"], ["created_at", "2015-03-19 05:23:57.420506"], ["updated_at", "2015-03-19 05:23:57.420506"], ["token", "yZ1yJLVzQjHvwZvn0sdpfscl6o_pEpAT10u1Q2Ngb0E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.423783"], ["updated_at", "2015-03-19 05:23:57.423783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2465bb0e-cdf8-11e4-b424-705681abff85' AND "clubhouse_memberships"."organization_id" = '24669632-cdf8-11e4-bc6d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2465bb0e-cdf8-11e4-b424-705681abff85"], ["organization_id", "24669632-cdf8-11e4-bc6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.427374"], ["updated_at", "2015-03-19 05:23:57.427374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '24669632-cdf8-11e4-bc6d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "24669632-cdf8-11e4-bc6d-705681abff85"], ["created_at", "2015-03-19 05:23:57.431076"], ["updated_at", "2015-03-19 05:23:57.431076"], ["token", "egK76_wtSiM0QwWjNbRVjHhYgwgs3CFp1xMYyffOMig"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:57.435765' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yZ1yJLVzQjHvwZvn0sdpfscl6o_pEpAT10u1Q2Ngb0E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:57.437282"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:57.438472"], ["id", "24661d42-cdf8-11e4-8b72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2465bb0e-cdf8-11e4-b424-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "24669632-cdf8-11e4-bc6d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2465bb0e-cdf8-11e4-b424-705681abff85' LIMIT 1 [["organization_id", "24669632-cdf8-11e4-bc6d-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '24669632-cdf8-11e4-bc6d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "24669632-cdf8-11e4-bc6d-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.449882"], ["updated_at", "2015-03-19 05:23:57.449882"], ["token", "rV8azmRDFkq1Wrnz_lyOi06B36yOZU1eiO1CX_rDxhw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fb70af18-5ecf-4609-9725-c2f6496ebc7c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/246aa7e0-cdf8-11e4-9517-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "246aa7e0-cdf8-11e4-9517-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [fb70af18-5ecf-4609-9725-c2f6496ebc7c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/246aa7e0-cdf8-11e4-9517-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [fb70af18-5ecf-4609-9725-c2f6496ebc7c] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "24669632-cdf8-11e4-bc6d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [fb70af18-5ecf-4609-9725-c2f6496ebc7c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [fb70af18-5ecf-4609-9725-c2f6496ebc7c] Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms [ActiveJob] [ActionMailer::DeliveryJob] [fb70af18-5ecf-4609-9725-c2f6496ebc7c] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [fb70af18-5ecf-4609-9725-c2f6496ebc7c] Date: Wed, 18 Mar 2015 22:23:57 -0700 From: from@example.com To: email@example.com Message-ID: <550a5d6d6fc42_e3a63fdd64865bec661a0@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/rV8azmRDFkq1Wrnz_lyOi06B36yOZU1eiO1CX_rDxhw?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [fb70af18-5ecf-4609-9725-c2f6496ebc7c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.37ms Completed 201 Created in 24ms (Views: 0.8ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$wiY5yBQDtiP39OxXaI7ZEOsXbM4wx.hknkxUjkZsctSmXQO1VFnOe"], ["created_at", "2015-03-19 05:23:57.465872"], ["updated_at", "2015-03-19 05:23:57.465872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.467397"], ["user_id", "246d03b4-cdf8-11e4-9271-705681abff85"], ["created_at", "2015-03-19 05:23:57.468129"], ["updated_at", "2015-03-19 05:23:57.468129"], ["token", "vpshbjYklJ-coIS3CCMAnOmDXOlYzaipMgovkpfC878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.471248"], ["updated_at", "2015-03-19 05:23:57.471248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '246d03b4-cdf8-11e4-9271-705681abff85' AND "clubhouse_memberships"."organization_id" = '246dd258-cdf8-11e4-9320-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "246d03b4-cdf8-11e4-9271-705681abff85"], ["organization_id", "246dd258-cdf8-11e4-9320-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.474393"], ["updated_at", "2015-03-19 05:23:57.474393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '246dd258-cdf8-11e4-9320-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "246dd258-cdf8-11e4-9320-705681abff85"], ["created_at", "2015-03-19 05:23:57.478025"], ["updated_at", "2015-03-19 05:23:57.478025"], ["token", "S16B4rB2cQBhMWigwW_X9eIhQx9PtcJhdIR_r0PdXso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:57.482757' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vpshbjYklJ-coIS3CCMAnOmDXOlYzaipMgovkpfC878"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:57.484159"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:57.485062"], ["id", "246d5fbc-cdf8-11e4-bfbc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "246d03b4-cdf8-11e4-9271-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "246dd258-cdf8-11e4-9320-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '246d03b4-cdf8-11e4-9271-705681abff85' LIMIT 1 [["organization_id", "246dd258-cdf8-11e4-9320-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '246dd258-cdf8-11e4-9320-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$fgRoVMbdiVGD2yzURVcoguoHX8fo04OK2fd/RK.zxkblkslhPTzI6"], ["created_at", "2015-03-19 05:23:57.500177"], ["updated_at", "2015-03-19 05:23:57.500177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.501736"], ["user_id", "2472418a-cdf8-11e4-8f60-705681abff85"], ["created_at", "2015-03-19 05:23:57.502481"], ["updated_at", "2015-03-19 05:23:57.502481"], ["token", "p1Alm5w8WCm9TfB6LxoENFBd8w_MXsU_dZASJH3vQvw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.506265"], ["updated_at", "2015-03-19 05:23:57.506265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2472418a-cdf8-11e4-8f60-705681abff85' AND "clubhouse_memberships"."organization_id" = '24732f82-cdf8-11e4-a434-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2472418a-cdf8-11e4-8f60-705681abff85"], ["organization_id", "24732f82-cdf8-11e4-a434-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.509564"], ["updated_at", "2015-03-19 05:23:57.509564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '24732f82-cdf8-11e4-a434-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "24732f82-cdf8-11e4-a434-705681abff85"], ["created_at", "2015-03-19 05:23:57.513249"], ["updated_at", "2015-03-19 05:23:57.513249"], ["token", "Fy2m7KRqWChESoagtlqs_JTCIizaiBqfrkN4tYpfpNU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$N/n4bvF7pnaiVh47uwWiPuoO6SVwz9Yqpn330G0yejIe9M4yJ4X8S"], ["created_at", "2015-03-19 05:23:57.517613"], ["updated_at", "2015-03-19 05:23:57.517613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.520491"], ["updated_at", "2015-03-19 05:23:57.520491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2474e6ba-cdf8-11e4-b421-705681abff85' AND "clubhouse_memberships"."organization_id" = '24755a46-cdf8-11e4-b3d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2474e6ba-cdf8-11e4-b421-705681abff85"], ["organization_id", "24755a46-cdf8-11e4-b3d5-705681abff85"], ["created_at", "2015-03-19 05:23:57.523625"], ["updated_at", "2015-03-19 05:23:57.523625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$qXFtQJ6gQwDPynLZwpnhheqp4ehnwHgVr7VGDAgmY/VHhyPVL.O4G"], ["created_at", "2015-03-19 05:23:57.534879"], ["updated_at", "2015-03-19 05:23:57.534879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:23:57.536687"], ["user_id", "24778df2-cdf8-11e4-9faa-705681abff85"], ["created_at", "2015-03-19 05:23:57.537459"], ["updated_at", "2015-03-19 05:23:57.537459"], ["token", "iizsLIN-PD7cBL2j9cpjKwJ6PF8bPZMqtplXYf2DoSY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.541117"], ["updated_at", "2015-03-19 05:23:57.541117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '24778df2-cdf8-11e4-9faa-705681abff85' AND "clubhouse_memberships"."organization_id" = '24787e4c-cdf8-11e4-945d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "24778df2-cdf8-11e4-9faa-705681abff85"], ["organization_id", "24787e4c-cdf8-11e4-945d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:23:57.544264"], ["updated_at", "2015-03-19 05:23:57.544264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '24787e4c-cdf8-11e4-945d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "24787e4c-cdf8-11e4-945d-705681abff85"], ["created_at", "2015-03-19 05:23:57.547384"], ["updated_at", "2015-03-19 05:23:57.547384"], ["token", "ky0nuGYyF2_t2e8vwrkHyjWSP3SJOcqjJNJlwXkubnQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$vvBw47FujHmZxXTplwu1ke22LWS3r.xGUV3dLGr4xNj700rH702fq"], ["created_at", "2015-03-19 05:23:57.551642"], ["updated_at", "2015-03-19 05:23:57.551642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.554577"], ["updated_at", "2015-03-19 05:23:57.554577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '247a186a-cdf8-11e4-ad6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '247a8a48-cdf8-11e4-9e40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "247a186a-cdf8-11e4-ad6b-705681abff85"], ["organization_id", "247a8a48-cdf8-11e4-9e40-705681abff85"], ["created_at", "2015-03-19 05:23:57.557855"], ["updated_at", "2015-03-19 05:23:57.557855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:23:57 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:23:57.563268' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iizsLIN-PD7cBL2j9cpjKwJ6PF8bPZMqtplXYf2DoSY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:23:57.565383"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:23:57.566472"], ["id", "2477f882-cdf8-11e4-9348-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "24778df2-cdf8-11e4-9faa-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '24778df2-cdf8-11e4-9faa-705681abff85' LIMIT 1 [["organization_id", "24787e4c-cdf8-11e4-945d-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "24787e4c-cdf8-11e4-945d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('24787e4c-cdf8-11e4-945d-705681abff85') Completed 200 OK in 13ms (Views: 3.4ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.586792"], ["updated_at", "2015-03-19 05:23:57.586792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '247f77e2-cdf8-11e4-9863-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "247f77e2-cdf8-11e4-9863-705681abff85"], ["created_at", "2015-03-19 05:23:57.590168"], ["updated_at", "2015-03-19 05:23:57.590168"], ["token", "hdA_wfy0AAguRW8sknswOWMTkMw6YkcwAtdDzuZyqMQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:23:57.597673"], ["updated_at", "2015-03-19 05:23:57.597673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '24811f7a-cdf8-11e4-990b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "24811f7a-cdf8-11e4-990b-705681abff85"], ["created_at", "2015-03-19 05:23:57.600490"], ["updated_at", "2015-03-19 05:23:57.600490"], ["token", "MB-DA3uC5qox0_Jt7QiR2pASzkwVc2Q1Q039Zu44XXk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "24811f7a-cdf8-11e4-990b-705681abff85"]] Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '24811f7a-cdf8-11e4-990b-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "24811f7a-cdf8-11e4-990b-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '24811f7a-cdf8-11e4-990b-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (24.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.440821"], ["updated_at", "2015-03-19 05:25:31.440821"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5c740ed8-cdf8-11e4-b35a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "5c740ed8-cdf8-11e4-b35a-705681abff85"], ["created_at", "2015-03-19 05:25:31.478745"], ["updated_at", "2015-03-19 05:25:31.478745"], ["token", "V8YmdknBLoOJ9m290tbpcXGwO9WQT55kIUSTvtC0BwU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c740ed8-cdf8-11e4-b35a-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5c740ed8-cdf8-11e4-b35a-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5c740ed8-cdf8-11e4-b35a-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5c740ed8-cdf8-11e4-b35a-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.514343"], ["updated_at", "2015-03-19 05:25:31.514343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5c7bade6-cdf8-11e4-ba35-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "5c7bade6-cdf8-11e4-ba35-705681abff85"], ["created_at", "2015-03-19 05:25:31.517392"], ["updated_at", "2015-03-19 05:25:31.517392"], ["token", "7xiX94uEo9VSJqgaie99qOk9qQrd4pRDE3KDHZJuM8A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (5.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$PQcicOdkBkth8fJEL5BznuTrmXZL.a5TXYq2lOyQPcdSRot/G3doy"], ["created_at", "2015-03-19 05:25:31.538759"], ["updated_at", "2015-03-19 05:25:31.538759"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.548045"], ["updated_at", "2015-03-19 05:25:31.548045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c7f74d0-cdf8-11e4-8d02-705681abff85' LIMIT 1 [["organization_id", "5c80d2a8-cdf8-11e4-941e-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$i1N0/a78RHhKKrAYMTmjnOQwdVFSDyZPN5DnYf2VutqZ2g1gk8GDe"], ["created_at", "2015-03-19 05:25:31.582726"], ["updated_at", "2015-03-19 05:25:31.582726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.589990"], ["updated_at", "2015-03-19 05:25:31.589990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$JjEpkA3oW5pB/BLBEwXWgeq83Tj2.7HskCpLY9uth176rQbtQixZK"], ["created_at", "2015-03-19 05:25:31.602821"], ["updated_at", "2015-03-19 05:25:31.602821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.607085"], ["updated_at", "2015-03-19 05:25:31.607085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c8942ee-cdf8-11e4-9576-705681abff85' LIMIT 1 [["organization_id", "5c89dbb4-cdf8-11e4-b848-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ZbsqyNoY./yyKC.4gfdm2OgiN2cFZH.tGoQsE7En8NZ4ihKMxiLBG"], ["created_at", "2015-03-19 05:25:31.618547"], ["updated_at", "2015-03-19 05:25:31.618547"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.624104"], ["updated_at", "2015-03-19 05:25:31.624104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$6.jJHFy0DlEzIkxLG8iyP.mFSCt3nuxK2Dk0ME3uZfToa5azedWFe"], ["created_at", "2015-03-19 05:25:31.630974"], ["updated_at", "2015-03-19 05:25:31.630974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.634671"], ["updated_at", "2015-03-19 05:25:31.634671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c8d7de6-cdf8-11e4-a022-705681abff85' LIMIT 1 [["organization_id", "5c8e0e3c-cdf8-11e4-8c76-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$bUs5JzTW.EgdHCKrpIrV0eXqMhgRGGMGq3PjCovP0P8aIOGyGBOT6"], ["created_at", "2015-03-19 05:25:31.643294"], ["updated_at", "2015-03-19 05:25:31.643294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$eitSX.UYIlpVh0sumEI98..TQrmCDI6DpFi1dbmlN2YD62vZI1AQm"], ["created_at", "2015-03-19 05:25:31.656428"], ["updated_at", "2015-03-19 05:25:31.656428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (16.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.660469"], ["updated_at", "2015-03-19 05:25:31.660469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c916d84-cdf8-11e4-97b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c91f95c-cdf8-11e4-b6e5-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c916d84-cdf8-11e4-97b3-705681abff85"], ["organization_id", "5c91f95c-cdf8-11e4-b6e5-705681abff85"], ["created_at", "2015-03-19 05:25:31.686450"], ["updated_at", "2015-03-19 05:25:31.686450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c916d84-cdf8-11e4-97b3-705681abff85' LIMIT 1 [["organization_id", "5c91f95c-cdf8-11e4-b6e5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$QAQsH8PucW/.P919Anc/Out4waOfa.eEWHjRFDMOpe7Sf/DP2tDp."], ["created_at", "2015-03-19 05:25:31.695303"], ["updated_at", "2015-03-19 05:25:31.695303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.699152"], ["updated_at", "2015-03-19 05:25:31.699152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c975276-cdf8-11e4-9de6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c97e54c-cdf8-11e4-bbff-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c975276-cdf8-11e4-9de6-705681abff85"], ["organization_id", "5c97e54c-cdf8-11e4-bbff-705681abff85"], ["created_at", "2015-03-19 05:25:31.702992"], ["updated_at", "2015-03-19 05:25:31.702992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$m53XPMhwMVT40OdJjsyYVOD0joCMFc787JEOhzGpm06Sr32QCu9.q"], ["created_at", "2015-03-19 05:25:31.709482"], ["updated_at", "2015-03-19 05:25:31.709482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.713397"], ["updated_at", "2015-03-19 05:25:31.713397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c99765a-cdf8-11e4-9548-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c9a1524-cdf8-11e4-a2ba-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c99765a-cdf8-11e4-9548-705681abff85"], ["organization_id", "5c9a1524-cdf8-11e4-a2ba-705681abff85"], ["created_at", "2015-03-19 05:25:31.717578"], ["updated_at", "2015-03-19 05:25:31.717578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5c99765a-cdf8-11e4-9548-705681abff85' LIMIT 1 [["organization_id", "5c9a1524-cdf8-11e4-a2ba-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$cnV24pYDuzXKqbm2DIxlfesvcXF5OsWhFNq0OYB4sNyWFX4BRdShq"], ["created_at", "2015-03-19 05:25:31.727228"], ["updated_at", "2015-03-19 05:25:31.727228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.731216"], ["updated_at", "2015-03-19 05:25:31.731216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c9c33e0-cdf8-11e4-84a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5c9cc882-cdf8-11e4-9559-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c9c33e0-cdf8-11e4-84a1-705681abff85"], ["organization_id", "5c9cc882-cdf8-11e4-9559-705681abff85"], ["created_at", "2015-03-19 05:25:31.735133"], ["updated_at", "2015-03-19 05:25:31.735133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$zYAWV5dz9xoPgG5SdLqyfe0B.Vjv.R3PTgfypsDbqW0Rh3NzIjbOG"], ["created_at", "2015-03-19 05:25:31.751216"], ["updated_at", "2015-03-19 05:25:31.751216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.754726"], ["updated_at", "2015-03-19 05:25:31.754726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c9fd720-cdf8-11e4-afae-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ca05f38-cdf8-11e4-83bc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c9fd720-cdf8-11e4-afae-705681abff85"], ["organization_id", "5ca05f38-cdf8-11e4-83bc-705681abff85"], ["created_at", "2015-03-19 05:25:31.758434"], ["updated_at", "2015-03-19 05:25:31.758434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c9fd720-cdf8-11e4-afae-705681abff85' LIMIT 1 [["organization_id", "5ca05f38-cdf8-11e4-83bc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$G/etZZg12XljLwqNuiIlcuaPaiSCnrKsUyCkSzdFE/OLsGoC8PkxK"], ["created_at", "2015-03-19 05:25:31.766396"], ["updated_at", "2015-03-19 05:25:31.766396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.769893"], ["updated_at", "2015-03-19 05:25:31.769893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ca22598-cdf8-11e4-9f22-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ca2aba8-cdf8-11e4-abb3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ca22598-cdf8-11e4-9f22-705681abff85"], ["organization_id", "5ca2aba8-cdf8-11e4-abb3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:31.773809"], ["updated_at", "2015-03-19 05:25:31.773809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ca22598-cdf8-11e4-9f22-705681abff85' LIMIT 1 [["organization_id", "5ca2aba8-cdf8-11e4-abb3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$msM1uS/G3RSiytX9Ie1Ceeyxvj6/3Tgexv8E1C3lT2GqH8fQRX54S"], ["created_at", "2015-03-19 05:25:31.781884"], ["updated_at", "2015-03-19 05:25:31.781884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (12.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.785681"], ["updated_at", "2015-03-19 05:25:31.785681"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ca48edc-cdf8-11e4-a3ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ca52036-cdf8-11e4-972f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ca48edc-cdf8-11e4-a3ba-705681abff85"], ["organization_id", "5ca52036-cdf8-11e4-972f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:31.804388"], ["updated_at", "2015-03-19 05:25:31.804388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$BtbZkGiFZHlXvKVbUpqyCeaDW0u3uhC.Gt.fCL5bn3xfoxxR9pMtO"], ["created_at", "2015-03-19 05:25:31.811001"], ["updated_at", "2015-03-19 05:25:31.811001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.814089"], ["updated_at", "2015-03-19 05:25:31.814089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ca8f260-cdf8-11e4-a7d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ca96696-cdf8-11e4-94c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ca8f260-cdf8-11e4-a7d7-705681abff85"], ["organization_id", "5ca96696-cdf8-11e4-94c5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:31.817138"], ["updated_at", "2015-03-19 05:25:31.817138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ca8f260-cdf8-11e4-a7d7-705681abff85' LIMIT 1 [["organization_id", "5ca96696-cdf8-11e4-94c5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$oGfiT7NnAY.5pakLUBm6Cu2DVpEfFj5dwUV18EoZQca9MiNhWViHW"], ["created_at", "2015-03-19 05:25:31.823975"], ["updated_at", "2015-03-19 05:25:31.823975"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.827130"], ["updated_at", "2015-03-19 05:25:31.827130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5caaeb92-cdf8-11e4-a958-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cab652c-cdf8-11e4-a03b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5caaeb92-cdf8-11e4-a958-705681abff85"], ["organization_id", "5cab652c-cdf8-11e4-a03b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:31.831566"], ["updated_at", "2015-03-19 05:25:31.831566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$a6S88qsWuJnl/U1S2HdtvOgz6GIibkhp1UA3dqTi1K4KdQ83ZDxo2"], ["created_at", "2015-03-19 05:25:31.837680"], ["updated_at", "2015-03-19 05:25:31.837680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.841051"], ["updated_at", "2015-03-19 05:25:31.841051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cad067a-cdf8-11e4-ba1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cad8500-cdf8-11e4-ad27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cad067a-cdf8-11e4-ba1d-705681abff85"], ["organization_id", "5cad8500-cdf8-11e4-ad27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:31.844643"], ["updated_at", "2015-03-19 05:25:31.844643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5cad067a-cdf8-11e4-ba1d-705681abff85' LIMIT 1 [["organization_id", "5cad8500-cdf8-11e4-ad27-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$8Dx.hFZzoAobwnUTQTpvUeXXvNsaNB87FnBa5RI4d.0ntmwz4qFBS"], ["created_at", "2015-03-19 05:25:31.851844"], ["updated_at", "2015-03-19 05:25:31.851844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:31.860982"], ["user_id", "5caf3738-cdf8-11e4-b166-705681abff85"], ["created_at", "2015-03-19 05:25:31.862038"], ["updated_at", "2015-03-19 05:25:31.862038"], ["token", "rGysWpMEjtiOgXYmh277qGY7CLbVOQV5eBPgtg3BfzM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.868143"], ["updated_at", "2015-03-19 05:25:31.868143"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5caf3738-cdf8-11e4-b166-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cb1aa86-cdf8-11e4-8376-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5caf3738-cdf8-11e4-b166-705681abff85"], ["organization_id", "5cb1aa86-cdf8-11e4-8376-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:31.872111"], ["updated_at", "2015-03-19 05:25:31.872111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:25:31 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$gKzWAN4FUynsagqfY1xhmuQ8jMCK4A9DVG4pj1WqLsPnjGo8SPX2C"], ["created_at", "2015-03-19 05:25:31.905531"], ["updated_at", "2015-03-19 05:25:31.905531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:31.907677"], ["user_id", "5cb76480-cdf8-11e4-9863-705681abff85"], ["created_at", "2015-03-19 05:25:31.908546"], ["updated_at", "2015-03-19 05:25:31.908546"], ["token", "4-_hDPr09xyBkRK8IznRDn0GcvBywOH--vZtXTupq7E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.912100"], ["updated_at", "2015-03-19 05:25:31.912100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cb76480-cdf8-11e4-9863-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cb85d86-cdf8-11e4-8f8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cb76480-cdf8-11e4-9863-705681abff85"], ["organization_id", "5cb85d86-cdf8-11e4-8f8f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:31.915400"], ["updated_at", "2015-03-19 05:25:31.915400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-19" for 127.0.0.1 at 2015-03-18 22:25:31 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-19", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:31.919891' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4-_hDPr09xyBkRK8IznRDn0GcvBywOH--vZtXTupq7E"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:31.921639"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:31.923044"], ["id", "5cb7dd0c-cdf8-11e4-be76-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-19"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cb76480-cdf8-11e4-9863-705681abff85"]] Completed 200 OK in 9ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$vaL8vEQ3qMvFHrUOGW0DY.w8WbrjmkT9m9WrcKtEjDX8YbpUbOXdm"], ["created_at", "2015-03-19 05:25:31.934067"], ["updated_at", "2015-03-19 05:25:31.934067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:31.935652"], ["user_id", "5cbbb86e-cdf8-11e4-ae96-705681abff85"], ["created_at", "2015-03-19 05:25:31.936400"], ["updated_at", "2015-03-19 05:25:31.936400"], ["token", "C7AgjXFt-WRiBTXytLw2v1cWTQImnv3eUO6jzTNIbkY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.941878"], ["updated_at", "2015-03-19 05:25:31.941878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cbbb86e-cdf8-11e4-ae96-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cbce98c-cdf8-11e4-8174-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cbbb86e-cdf8-11e4-ae96-705681abff85"], ["organization_id", "5cbce98c-cdf8-11e4-8174-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:31.945301"], ["updated_at", "2015-03-19 05:25:31.945301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:25:31 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:31.951500' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "C7AgjXFt-WRiBTXytLw2v1cWTQImnv3eUO6jzTNIbkY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:31.952896"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:31.953927"], ["id", "5cbc18b8-cdf8-11e4-ac9d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$DcgJe4VynEOMc1r4bcXZ4eQ1sLjG66GTdJthiUZJ8f4euHMJTcFqi"], ["created_at", "2015-03-19 05:25:31.964059"], ["updated_at", "2015-03-19 05:25:31.964059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:31.965658"], ["user_id", "5cc04c26-cdf8-11e4-bb1f-705681abff85"], ["created_at", "2015-03-19 05:25:31.966399"], ["updated_at", "2015-03-19 05:25:31.966399"], ["token", "mhsaiqCOpILjz2zcg76c04DCkjYd9VTvwLMZoA1VPu4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.970065"], ["updated_at", "2015-03-19 05:25:31.970065"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cc04c26-cdf8-11e4-bb1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cc136f4-cdf8-11e4-aec4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cc04c26-cdf8-11e4-bb1f-705681abff85"], ["organization_id", "5cc136f4-cdf8-11e4-aec4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:31.973751"], ["updated_at", "2015-03-19 05:25:31.973751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:25:31 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$CMUz262xlrIpPripKHaFeefuNxfpJVdBA76SQWNfLd4jO077yFd4K"], ["created_at", "2015-03-19 05:25:31.983892"], ["updated_at", "2015-03-19 05:25:31.983892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:31.985575"], ["user_id", "5cc35588-cdf8-11e4-85a7-705681abff85"], ["created_at", "2015-03-19 05:25:31.986345"], ["updated_at", "2015-03-19 05:25:31.986345"], ["token", "3o5VrFtzZjwtSvnaS_W1o_gRFXXP3QzPgH7oLJrHLvE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:31.989770"], ["updated_at", "2015-03-19 05:25:31.989770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cc35588-cdf8-11e4-85a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cc434ee-cdf8-11e4-8d49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cc35588-cdf8-11e4-85a7-705681abff85"], ["organization_id", "5cc434ee-cdf8-11e4-8d49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:31.993004"], ["updated_at", "2015-03-19 05:25:31.993004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:25:31 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:31.998190' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3o5VrFtzZjwtSvnaS_W1o_gRFXXP3QzPgH7oLJrHLvE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:31.999635"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.000674"], ["id", "5cc3bc30-cdf8-11e4-b09f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cc35588-cdf8-11e4-85a7-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.008506"], ["updated_at", "2015-03-19 05:25:32.008506"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5cc71600-cdf8-11e4-809c-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cc35588-cdf8-11e4-85a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cc71600-cdf8-11e4-809c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cc35588-cdf8-11e4-85a7-705681abff85"], ["admin", "t"], ["organization_id", "5cc71600-cdf8-11e4-809c-705681abff85"], ["created_at", "2015-03-19 05:25:32.012832"], ["updated_at", "2015-03-19 05:25:32.012832"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 2.5ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$tARhmhAby1oje7xUD/uOR.9mC0XzUPe2LUapcD3/P2.Py5GLyKx9a"], ["created_at", "2015-03-19 05:25:32.026160"], ["updated_at", "2015-03-19 05:25:32.026160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.027792"], ["user_id", "5cc9c684-cdf8-11e4-924a-705681abff85"], ["created_at", "2015-03-19 05:25:32.028578"], ["updated_at", "2015-03-19 05:25:32.028578"], ["token", "ZyOhr_OAU0lQgEm89cNi--aE0k0h67-Ql8hEBudUkBY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.031895"], ["updated_at", "2015-03-19 05:25:32.031895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cc9c684-cdf8-11e4-924a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ccaa4fa-cdf8-11e4-9b5e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cc9c684-cdf8-11e4-924a-705681abff85"], ["organization_id", "5ccaa4fa-cdf8-11e4-9b5e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.035151"], ["updated_at", "2015-03-19 05:25:32.035151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.039962' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZyOhr_OAU0lQgEm89cNi--aE0k0h67-Ql8hEBudUkBY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.041379"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.042346"], ["id", "5cca2ade-cdf8-11e4-afe2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cc9c684-cdf8-11e4-924a-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$ZUnOdG/.E1FsN89p1KRIMuOB/PQOpaKv/EMf2HW1h0jaY6Al3j4EW"], ["created_at", "2015-03-19 05:25:32.055466"], ["updated_at", "2015-03-19 05:25:32.055466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.057348"], ["user_id", "5cce3f7a-cdf8-11e4-95b0-705681abff85"], ["created_at", "2015-03-19 05:25:32.058240"], ["updated_at", "2015-03-19 05:25:32.058240"], ["token", "dFANlPOYA0hDM-recIFVg7K-lV3n8NFVf_M0OFRPo_E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.062009"], ["updated_at", "2015-03-19 05:25:32.062009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cce3f7a-cdf8-11e4-95b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ccf3e0c-cdf8-11e4-a478-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cce3f7a-cdf8-11e4-95b0-705681abff85"], ["organization_id", "5ccf3e0c-cdf8-11e4-a478-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.065375"], ["updated_at", "2015-03-19 05:25:32.065375"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$C3gt68wUOKP3pmgkVeq3QOY4/qaNLJ/R7SjCFz7ri4RmqBiPm005i"], ["created_at", "2015-03-19 05:25:32.079894"], ["updated_at", "2015-03-19 05:25:32.079894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.081740"], ["user_id", "5cd1ffde-cdf8-11e4-868f-705681abff85"], ["created_at", "2015-03-19 05:25:32.082679"], ["updated_at", "2015-03-19 05:25:32.082679"], ["token", "QiiQVxs1qIQeS2vkeoAjYZm9qz-QQZURRI59rjaXfc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.086456"], ["updated_at", "2015-03-19 05:25:32.086456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cd1ffde-cdf8-11e4-868f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cd2fb28-cdf8-11e4-bbd5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cd1ffde-cdf8-11e4-868f-705681abff85"], ["organization_id", "5cd2fb28-cdf8-11e4-bbd5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.089970"], ["updated_at", "2015-03-19 05:25:32.089970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-25" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-25", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.102653' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QiiQVxs1qIQeS2vkeoAjYZm9qz-QQZURRI59rjaXfc4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.104149"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.105138"], ["id", "5cd26e92-cdf8-11e4-8b8d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-25"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cd1ffde-cdf8-11e4-868f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5cd1ffde-cdf8-11e4-868f-705681abff85' LIMIT 1 [["organization_id", "5cd2fb28-cdf8-11e4-bbd5-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5cd2fb28-cdf8-11e4-bbd5-705681abff85') LIMIT 1 SQL (2.1ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:25:32.112967"], ["id", "5cd2fb28-cdf8-11e4-bbd5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$1Y8ENESucNQ84BIXVYMEMuu91QR6tUVCdfPqt/D2xp31rQwAcLLee"], ["created_at", "2015-03-19 05:25:32.124185"], ["updated_at", "2015-03-19 05:25:32.124185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.125876"], ["user_id", "5cd8be14-cdf8-11e4-b930-705681abff85"], ["created_at", "2015-03-19 05:25:32.126640"], ["updated_at", "2015-03-19 05:25:32.126640"], ["token", "UWWun785l4BjD3UGPr0Zhi51W8HPSpHBf3_vLDEAH5g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.129917"], ["updated_at", "2015-03-19 05:25:32.129917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cd8be14-cdf8-11e4-b930-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cd99848-cdf8-11e4-9b73-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cd8be14-cdf8-11e4-b930-705681abff85"], ["organization_id", "5cd99848-cdf8-11e4-9b73-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.133532"], ["updated_at", "2015-03-19 05:25:32.133532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-26" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-26", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.138261' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UWWun785l4BjD3UGPr0Zhi51W8HPSpHBf3_vLDEAH5g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.139701"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.140681"], ["id", "5cd9200c-cdf8-11e4-9178-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-26"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cd8be14-cdf8-11e4-b930-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5cd8be14-cdf8-11e4-b930-705681abff85' LIMIT 1 [["organization_id", "5cd99848-cdf8-11e4-9b73-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5cd99848-cdf8-11e4-9b73-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$OC4K2u6eWWMzD3nSc0OmI.B8KR//pdCamBx5W97JZ5OsbTUMHiALW"], ["created_at", "2015-03-19 05:25:32.154469"], ["updated_at", "2015-03-19 05:25:32.154469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.156163"], ["user_id", "5cdd5b0e-cdf8-11e4-8786-705681abff85"], ["created_at", "2015-03-19 05:25:32.157372"], ["updated_at", "2015-03-19 05:25:32.157372"], ["token", "Ao2RdF901PWzmSLIgqae6jFSoOa8zOd3wZ3-oMxIC8Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.161686"], ["updated_at", "2015-03-19 05:25:32.161686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cdd5b0e-cdf8-11e4-8786-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cde743a-cdf8-11e4-874c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cdd5b0e-cdf8-11e4-8786-705681abff85"], ["organization_id", "5cde743a-cdf8-11e4-874c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.165053"], ["updated_at", "2015-03-19 05:25:32.165053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (17.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$hV3D1w8Oa5TqeIBsuKNhNO73uOxstoPlQefLpBu9EdZ0SAzw64126"], ["created_at", "2015-03-19 05:25:32.193154"], ["updated_at", "2015-03-19 05:25:32.193154"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.215011"], ["user_id", "5ce61fdc-cdf8-11e4-a1d9-705681abff85"], ["created_at", "2015-03-19 05:25:32.216584"], ["updated_at", "2015-03-19 05:25:32.216584"], ["token", "0lkO-UWIi7zDyBz3Ppq8fN6ZBoKTXJRHp3LbLdxuti4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.225396"], ["updated_at", "2015-03-19 05:25:32.225396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ce61fdc-cdf8-11e4-a1d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ce83cb8-cdf8-11e4-b660-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ce61fdc-cdf8-11e4-a1d9-705681abff85"], ["organization_id", "5ce83cb8-cdf8-11e4-b660-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.231473"], ["updated_at", "2015-03-19 05:25:32.231473"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-28" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-28", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.240568' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0lkO-UWIi7zDyBz3Ppq8fN6ZBoKTXJRHp3LbLdxuti4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.242607"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.244127"], ["id", "5ce6f4a2-cdf8-11e4-8c5e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-28"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5ce61fdc-cdf8-11e4-a1d9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ce61fdc-cdf8-11e4-a1d9-705681abff85' LIMIT 1 [["organization_id", "5ce83cb8-cdf8-11e4-b660-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "5ce83cb8-cdf8-11e4-b660-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$Txpz1IOmpVLjKbAi3A2aau5UUKdmOe619PzpbGLJnOCvPCA99adDW"], ["created_at", "2015-03-19 05:25:32.262809"], ["updated_at", "2015-03-19 05:25:32.262809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.266932"], ["user_id", "5cedf63a-cdf8-11e4-901c-705681abff85"], ["created_at", "2015-03-19 05:25:32.269002"], ["updated_at", "2015-03-19 05:25:32.269002"], ["token", "P4PnjmcHO3BDP3KVqqseUPfD05Oj8WMPgWrtUdiGCLE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.277269"], ["updated_at", "2015-03-19 05:25:32.277269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cedf63a-cdf8-11e4-901c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cf02a9a-cdf8-11e4-b08a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cedf63a-cdf8-11e4-901c-705681abff85"], ["organization_id", "5cf02a9a-cdf8-11e4-b08a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.283731"], ["updated_at", "2015-03-19 05:25:32.283731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$I/qeg/l2nMgdI7GK/DkKOeAxkoAyVE7MTu8LMWgKEyTluLuUzIwfC"], ["created_at", "2015-03-19 05:25:32.297123"], ["updated_at", "2015-03-19 05:25:32.297123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.298957"], ["user_id", "5cf325e2-cdf8-11e4-8cbf-705681abff85"], ["created_at", "2015-03-19 05:25:32.299769"], ["updated_at", "2015-03-19 05:25:32.299769"], ["token", "72Qmm332mjRBn99y165CLWgyjVq92_y8r5ACMem0D8E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.303186"], ["updated_at", "2015-03-19 05:25:32.303186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cf325e2-cdf8-11e4-8cbf-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cf408b8-cdf8-11e4-a2f7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cf325e2-cdf8-11e4-8cbf-705681abff85"], ["organization_id", "5cf408b8-cdf8-11e4-a2f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.306867"], ["updated_at", "2015-03-19 05:25:32.306867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-30" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-30", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.311833' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "72Qmm332mjRBn99y165CLWgyjVq92_y8r5ACMem0D8E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.313311"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.314351"], ["id", "5cf38d34-cdf8-11e4-b715-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-30"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cf325e2-cdf8-11e4-8cbf-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5cf325e2-cdf8-11e4-8cbf-705681abff85' LIMIT 1 [["organization_id", "5cf408b8-cdf8-11e4-a2f7-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$FFyyF6cxhQra7Veot/gkA.6KAQgO1Km4STWDYf733UE7gmz/BdfPO"], ["created_at", "2015-03-19 05:25:32.325484"], ["updated_at", "2015-03-19 05:25:32.325484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.327075"], ["user_id", "5cf77250-cdf8-11e4-bdf5-705681abff85"], ["created_at", "2015-03-19 05:25:32.327803"], ["updated_at", "2015-03-19 05:25:32.327803"], ["token", "IPE-k7EPj3NQGZOQI3OA21uNFQQuNVo24qTBkqC5qsQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.332355"], ["updated_at", "2015-03-19 05:25:32.332355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cf77250-cdf8-11e4-bdf5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cf885be-cdf8-11e4-a928-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cf77250-cdf8-11e4-bdf5-705681abff85"], ["organization_id", "5cf885be-cdf8-11e4-a928-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.335996"], ["updated_at", "2015-03-19 05:25:32.335996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$i/PCWVecgTiogjfgEixjbe3SNC9QY1xa0wsj4SLa6AnISSu/dKjZK"], ["created_at", "2015-03-19 05:25:32.345930"], ["updated_at", "2015-03-19 05:25:32.345930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.347608"], ["user_id", "5cfa91ec-cdf8-11e4-9c6e-705681abff85"], ["created_at", "2015-03-19 05:25:32.348360"], ["updated_at", "2015-03-19 05:25:32.348360"], ["token", "k67cz85FqVMc5KmwkpXBgIRHJ0880kvFW2tgVztx1tk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.351658"], ["updated_at", "2015-03-19 05:25:32.351658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cfa91ec-cdf8-11e4-9c6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '5cfb6de2-cdf8-11e4-ba24-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cfa91ec-cdf8-11e4-9c6e-705681abff85"], ["organization_id", "5cfb6de2-cdf8-11e4-ba24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.354998"], ["updated_at", "2015-03-19 05:25:32.354998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/5cfb6de2-cdf8-11e4-ba24-705681abff85" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"5cfb6de2-cdf8-11e4-ba24-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.360476' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k67cz85FqVMc5KmwkpXBgIRHJ0880kvFW2tgVztx1tk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.361974"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.362978"], ["id", "5cfaf59c-cdf8-11e4-b7fe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5cfb6de2-cdf8-11e4-ba24-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cfa91ec-cdf8-11e4-9c6e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5cfa91ec-cdf8-11e4-9c6e-705681abff85' LIMIT 1 [["organization_id", "5cfb6de2-cdf8-11e4-ba24-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "5cfb6de2-cdf8-11e4-ba24-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 3.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$pzb/PfB/LW/nuzFXcksSn.VoJH6R4th9MbyeMjHKbqqepwkMeYyrK"], ["created_at", "2015-03-19 05:25:32.376556"], ["updated_at", "2015-03-19 05:25:32.376556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.378144"], ["user_id", "5cff3daa-cdf8-11e4-8ef2-705681abff85"], ["created_at", "2015-03-19 05:25:32.379106"], ["updated_at", "2015-03-19 05:25:32.379106"], ["token", "OcjD8NDGOt5VN_ZT5-c85WOZE6Z1oNqO7_L5hm90PHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.382680"], ["updated_at", "2015-03-19 05:25:32.382680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cff3daa-cdf8-11e4-8ef2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d00308e-cdf8-11e4-9630-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cff3daa-cdf8-11e4-8ef2-705681abff85"], ["organization_id", "5d00308e-cdf8-11e4-9630-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.386265"], ["updated_at", "2015-03-19 05:25:32.386265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$naL5yDkGhHqnQZ7RrdgWEuyaOQwp6ew.t8344lJXtaxREZwoCKMYW"], ["created_at", "2015-03-19 05:25:32.391638"], ["updated_at", "2015-03-19 05:25:32.391638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.395409"], ["updated_at", "2015-03-19 05:25:32.395409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d019942-cdf8-11e4-a4de-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d021d90-cdf8-11e4-a09e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d019942-cdf8-11e4-a4de-705681abff85"], ["organization_id", "5d021d90-cdf8-11e4-a09e-705681abff85"], ["created_at", "2015-03-19 05:25:32.400073"], ["updated_at", "2015-03-19 05:25:32.400073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$lmjekcq9CW.GIv3q3ZH3beE2LULWUQ1bowz.b55.5RJlV9vIRK..q"], ["created_at", "2015-03-19 05:25:32.413602"], ["updated_at", "2015-03-19 05:25:32.413602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.415311"], ["user_id", "5d04e782-cdf8-11e4-bedd-705681abff85"], ["created_at", "2015-03-19 05:25:32.416114"], ["updated_at", "2015-03-19 05:25:32.416114"], ["token", "50kTOvH15iw_cvfXjG4K8i6FBhSNl9JliiH2onqp0pA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.419534"], ["updated_at", "2015-03-19 05:25:32.419534"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d04e782-cdf8-11e4-bedd-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d05caf8-cdf8-11e4-9470-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d04e782-cdf8-11e4-bedd-705681abff85"], ["organization_id", "5d05caf8-cdf8-11e4-9470-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.422862"], ["updated_at", "2015-03-19 05:25:32.422862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$KMBWMXpG.KvhNdXxcQugfekdRVjB9VXsHqf3NeXzaB1Ck2kPduiVa"], ["created_at", "2015-03-19 05:25:32.427313"], ["updated_at", "2015-03-19 05:25:32.427313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.430268"], ["updated_at", "2015-03-19 05:25:32.430268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d06f9e6-cdf8-11e4-82f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d076d04-cdf8-11e4-9373-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d06f9e6-cdf8-11e4-82f4-705681abff85"], ["organization_id", "5d076d04-cdf8-11e4-9373-705681abff85"], ["created_at", "2015-03-19 05:25:32.433558"], ["updated_at", "2015-03-19 05:25:32.433558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.438265' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "50kTOvH15iw_cvfXjG4K8i6FBhSNl9JliiH2onqp0pA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.439883"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.440920"], ["id", "5d054c7c-cdf8-11e4-8b0f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d04e782-cdf8-11e4-bedd-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "5d04e782-cdf8-11e4-bedd-705681abff85"]] Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (3.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$/X6yZiBh2K/hPz6wnt5HNeoLPvQ9oaVUca/TlLplBjyIELg9k767m"], ["created_at", "2015-03-19 05:25:32.454382"], ["updated_at", "2015-03-19 05:25:32.454382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.459627"], ["user_id", "5d0b1db4-cdf8-11e4-867e-705681abff85"], ["created_at", "2015-03-19 05:25:32.460422"], ["updated_at", "2015-03-19 05:25:32.460422"], ["token", "rs3Mco4lpKyMap5C5IBqMVBpPtd6bUIkL2u5pPt8XAc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.463957"], ["updated_at", "2015-03-19 05:25:32.463957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d0b1db4-cdf8-11e4-867e-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d0c9176-cdf8-11e4-bbec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d0b1db4-cdf8-11e4-867e-705681abff85"], ["organization_id", "5d0c9176-cdf8-11e4-bbec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.467446"], ["updated_at", "2015-03-19 05:25:32.467446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$OCu5dWtrn5BV1OZUIoOwP.8bUZKBrEpbFKxdXvMtT5y3cP1sF9vpW"], ["created_at", "2015-03-19 05:25:32.477673"], ["updated_at", "2015-03-19 05:25:32.477673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.479448"], ["user_id", "5d0eae48-cdf8-11e4-b582-705681abff85"], ["created_at", "2015-03-19 05:25:32.480250"], ["updated_at", "2015-03-19 05:25:32.480250"], ["token", "k3oocpCCAajkhuqB-PljBvEg5hW2S83OPdGvMYVLdqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.483672"], ["updated_at", "2015-03-19 05:25:32.483672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d0eae48-cdf8-11e4-b582-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d0f94de-cdf8-11e4-be24-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d0eae48-cdf8-11e4-b582-705681abff85"], ["organization_id", "5d0f94de-cdf8-11e4-be24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.487035"], ["updated_at", "2015-03-19 05:25:32.487035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5d0f94de-cdf8-11e4-be24-705681abff85" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"5d0f94de-cdf8-11e4-be24-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.491809' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k3oocpCCAajkhuqB-PljBvEg5hW2S83OPdGvMYVLdqM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.493612"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.494764"], ["id", "5d0f1630-cdf8-11e4-b1f3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5d0f94de-cdf8-11e4-be24-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d0eae48-cdf8-11e4-b582-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5d0eae48-cdf8-11e4-b582-705681abff85' LIMIT 1 [["organization_id", "5d0f94de-cdf8-11e4-be24-705681abff85"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$MFseZVnEE3dh/N0CqBiTIeFgyHAnB5ni82w43VxHKhZmhhogtYs3S"], ["created_at", "2015-03-19 05:25:32.512642"], ["updated_at", "2015-03-19 05:25:32.512642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.514380"], ["user_id", "5d140550-cdf8-11e4-a39d-705681abff85"], ["created_at", "2015-03-19 05:25:32.515137"], ["updated_at", "2015-03-19 05:25:32.515137"], ["token", "z8UqEME33xhYN6jyg9vg4NYpjYT0cL66OarEr-w7Wus"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.520172"], ["updated_at", "2015-03-19 05:25:32.520172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d140550-cdf8-11e4-a39d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d1534f2-cdf8-11e4-a8a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d140550-cdf8-11e4-a39d-705681abff85"], ["organization_id", "5d1534f2-cdf8-11e4-a8a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.523972"], ["updated_at", "2015-03-19 05:25:32.523972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$.W7W9gwyWcLtH5T4ocs2quUYRbfAmDUfoLlRLmzetaVab146lxDz."], ["created_at", "2015-03-19 05:25:32.533735"], ["updated_at", "2015-03-19 05:25:32.533735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.535353"], ["user_id", "5d173a7c-cdf8-11e4-8738-705681abff85"], ["created_at", "2015-03-19 05:25:32.536113"], ["updated_at", "2015-03-19 05:25:32.536113"], ["token", "tw5JpPt-X5610CbgOPmETt5G0_cbJGhx4It5ZCsR0Fo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.539415"], ["updated_at", "2015-03-19 05:25:32.539415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d173a7c-cdf8-11e4-8738-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d1815aa-cdf8-11e4-bc7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d173a7c-cdf8-11e4-8738-705681abff85"], ["organization_id", "5d1815aa-cdf8-11e4-bc7a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.543227"], ["updated_at", "2015-03-19 05:25:32.543227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5d1815aa-cdf8-11e4-bc7a-705681abff85" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"5d1815aa-cdf8-11e4-bc7a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.547865' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tw5JpPt-X5610CbgOPmETt5G0_cbJGhx4It5ZCsR0Fo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (4.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.550027"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.551205"], ["id", "5d179c1a-cdf8-11e4-a07f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5d1815aa-cdf8-11e4-bc7a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d173a7c-cdf8-11e4-8738-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5d173a7c-cdf8-11e4-8738-705681abff85' LIMIT 1 [["organization_id", "5d1815aa-cdf8-11e4-bc7a-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5d1815aa-cdf8-11e4-bc7a-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:25:32.562548"], ["id", "5d1815aa-cdf8-11e4-bc7a-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 6.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$ufIkNj8IAVm87CnsggqswOD56lvmEqJPt2V55WAGuS5lRwOL5zX9m"], ["created_at", "2015-03-19 05:25:32.570188"], ["updated_at", "2015-03-19 05:25:32.570188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.571797"], ["user_id", "5d1cca82-cdf8-11e4-8a99-705681abff85"], ["created_at", "2015-03-19 05:25:32.572738"], ["updated_at", "2015-03-19 05:25:32.572738"], ["token", "PGZBWf8kaogjzxEJMoU-qmyMv0TbBFYKIMDI4g7uJAg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.576244"], ["updated_at", "2015-03-19 05:25:32.576244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d1cca82-cdf8-11e4-8a99-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d1db32a-cdf8-11e4-999c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d1cca82-cdf8-11e4-8a99-705681abff85"], ["organization_id", "5d1db32a-cdf8-11e4-999c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.579590"], ["updated_at", "2015-03-19 05:25:32.579590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5d1db32a-cdf8-11e4-999c-705681abff85" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"5d1db32a-cdf8-11e4-999c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.584211' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PGZBWf8kaogjzxEJMoU-qmyMv0TbBFYKIMDI4g7uJAg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.586729"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.587728"], ["id", "5d1d3602-cdf8-11e4-aaca-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5d1db32a-cdf8-11e4-999c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d1cca82-cdf8-11e4-8a99-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5d1cca82-cdf8-11e4-8a99-705681abff85' LIMIT 1 [["organization_id", "5d1db32a-cdf8-11e4-999c-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5d1db32a-cdf8-11e4-999c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$9Li1gxcPGbccD4gjqlnAhOTzcvH9Q3rtHW0EjP9BoAyyhZCcOAzSW"], ["created_at", "2015-03-19 05:25:32.601576"], ["updated_at", "2015-03-19 05:25:32.601576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.603438"], ["user_id", "5d219c42-cdf8-11e4-9384-705681abff85"], ["created_at", "2015-03-19 05:25:32.604238"], ["updated_at", "2015-03-19 05:25:32.604238"], ["token", "A_vOpQziH6s0seAg161Vu5x1tPIUZMoBoJFK645Zc30"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.608215"], ["updated_at", "2015-03-19 05:25:32.608215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d219c42-cdf8-11e4-9384-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d229ebc-cdf8-11e4-8e15-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d219c42-cdf8-11e4-9384-705681abff85"], ["organization_id", "5d229ebc-cdf8-11e4-8e15-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.612034"], ["updated_at", "2015-03-19 05:25:32.612034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '5d229ebc-cdf8-11e4-8e15-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "5d229ebc-cdf8-11e4-8e15-705681abff85"], ["created_at", "2015-03-19 05:25:32.615672"], ["updated_at", "2015-03-19 05:25:32.615672"], ["token", "anTzFJM_9MMv-hfzS-s8VQRRJdNdvJmz1_uXrUe8vwo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$6DoOplARHX5w0zFoYGLWb.skBUBMpEhXiWcYgH3F3s/WiMmojR7eO"], ["created_at", "2015-03-19 05:25:32.621300"], ["updated_at", "2015-03-19 05:25:32.621300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.624588"], ["updated_at", "2015-03-19 05:25:32.624588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d2495fa-cdf8-11e4-806c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d25207e-cdf8-11e4-a112-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d2495fa-cdf8-11e4-806c-705681abff85"], ["organization_id", "5d25207e-cdf8-11e4-a112-705681abff85"], ["created_at", "2015-03-19 05:25:32.628346"], ["updated_at", "2015-03-19 05:25:32.628346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$CqXVBIPMHsMuvL4LNglvY.lA6CRf7z1tZzTCt82KUF4k657HzNy12"], ["created_at", "2015-03-19 05:25:32.645306"], ["updated_at", "2015-03-19 05:25:32.645306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.647082"], ["user_id", "5d2843bc-cdf8-11e4-9f73-705681abff85"], ["created_at", "2015-03-19 05:25:32.647899"], ["updated_at", "2015-03-19 05:25:32.647899"], ["token", "Nj3XIivAivXIyikdrc9HnMI-fScWiWEjsz1JdH3mKRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.651591"], ["updated_at", "2015-03-19 05:25:32.651591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d2843bc-cdf8-11e4-9f73-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d2932ea-cdf8-11e4-9128-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d2843bc-cdf8-11e4-9f73-705681abff85"], ["organization_id", "5d2932ea-cdf8-11e4-9128-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.655031"], ["updated_at", "2015-03-19 05:25:32.655031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '5d2932ea-cdf8-11e4-9128-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "5d2932ea-cdf8-11e4-9128-705681abff85"], ["created_at", "2015-03-19 05:25:32.658426"], ["updated_at", "2015-03-19 05:25:32.658426"], ["token", "4hktIFpB0Fl8VSsof68k11d6TnYXXzoNdTVVRNKZ7do"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$B8Dd89NPP1JBCE0Ly5iOHup0fDny.FYB5lLpmUKQDb89/jl5hgfUu"], ["created_at", "2015-03-19 05:25:32.663103"], ["updated_at", "2015-03-19 05:25:32.663103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.666619"], ["updated_at", "2015-03-19 05:25:32.666619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d2af706-cdf8-11e4-8e91-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d2b7f50-cdf8-11e4-ba31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d2af706-cdf8-11e4-8e91-705681abff85"], ["organization_id", "5d2b7f50-cdf8-11e4-ba31-705681abff85"], ["created_at", "2015-03-19 05:25:32.669940"], ["updated_at", "2015-03-19 05:25:32.669940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.675246' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Nj3XIivAivXIyikdrc9HnMI-fScWiWEjsz1JdH3mKRg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.677077"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.678179"], ["id", "5d28af5a-cdf8-11e4-af3a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d2843bc-cdf8-11e4-9f73-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5d2843bc-cdf8-11e4-9f73-705681abff85' LIMIT 1 [["organization_id", "5d2932ea-cdf8-11e4-9128-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "5d2932ea-cdf8-11e4-9128-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('5d2932ea-cdf8-11e4-9128-705681abff85') Completed 200 OK in 20ms (Views: 9.0ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$Gcykc2UDf5SgSkfONI99ReU7WJ34lWhwfx8azQztNmxmhP45Auy8O"], ["created_at", "2015-03-19 05:25:32.702019"], ["updated_at", "2015-03-19 05:25:32.702019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.703712"], ["user_id", "5d30e95e-cdf8-11e4-9853-705681abff85"], ["created_at", "2015-03-19 05:25:32.704518"], ["updated_at", "2015-03-19 05:25:32.704518"], ["token", "kkrqgzZnAWJYqtxM1GTQsUc6UudQpaPBpbF4S63-a2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.707898"], ["updated_at", "2015-03-19 05:25:32.707898"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d30e95e-cdf8-11e4-9853-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d31c9a0-cdf8-11e4-b57b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d30e95e-cdf8-11e4-9853-705681abff85"], ["organization_id", "5d31c9a0-cdf8-11e4-b57b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.712611"], ["updated_at", "2015-03-19 05:25:32.712611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '5d31c9a0-cdf8-11e4-b57b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "5d31c9a0-cdf8-11e4-b57b-705681abff85"], ["created_at", "2015-03-19 05:25:32.716152"], ["updated_at", "2015-03-19 05:25:32.716152"], ["token", "feEMAIIYmQg7LPtt8R_HMf3zikSU6syK0wTXLnZN3nU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$brrnXIS7LpRiZwuUrr1rx.Ia6HIo.tU2Uu1kTD9U/4vtqPtUTUjUC"], ["created_at", "2015-03-19 05:25:32.726130"], ["updated_at", "2015-03-19 05:25:32.726130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.728124"], ["user_id", "5d349572-cdf8-11e4-a61f-705681abff85"], ["created_at", "2015-03-19 05:25:32.729641"], ["updated_at", "2015-03-19 05:25:32.729641"], ["token", "_86I-Fj4GVaM_v0FMBAc7uEif-2RPodC1HojvqhQa_k"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.734500"], ["updated_at", "2015-03-19 05:25:32.734500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d349572-cdf8-11e4-a61f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d35e35a-cdf8-11e4-8336-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d349572-cdf8-11e4-a61f-705681abff85"], ["organization_id", "5d35e35a-cdf8-11e4-8336-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.738171"], ["updated_at", "2015-03-19 05:25:32.738171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '5d35e35a-cdf8-11e4-8336-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "5d35e35a-cdf8-11e4-8336-705681abff85"], ["created_at", "2015-03-19 05:25:32.742656"], ["updated_at", "2015-03-19 05:25:32.742656"], ["token", "jegpgHcPyXDK7Iu6kUvslXYXhNfCn4stvTuza_obVtI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/5d373034-cdf8-11e4-a583-705681abff85" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"5d373034-cdf8-11e4-a583-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.750393' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_86I-Fj4GVaM_v0FMBAc7uEif-2RPodC1HojvqhQa_k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.751861"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.752791"], ["id", "5d353a18-cdf8-11e4-a019-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5d373034-cdf8-11e4-a583-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d349572-cdf8-11e4-a61f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5d35e35a-cdf8-11e4-8336-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5d349572-cdf8-11e4-a61f-705681abff85' LIMIT 1 [["organization_id", "5d35e35a-cdf8-11e4-8336-705681abff85"]] Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$kPdFH1fEbNh5X9OdGSZ1YeILEPAYB10FCY2i0e32hq4H3vRqO/97G"], ["created_at", "2015-03-19 05:25:32.765372"], ["updated_at", "2015-03-19 05:25:32.765372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.767015"], ["user_id", "5d3a938c-cdf8-11e4-99b3-705681abff85"], ["created_at", "2015-03-19 05:25:32.767787"], ["updated_at", "2015-03-19 05:25:32.767787"], ["token", "OgQkYRiCX9JQQTdB4XkoNipllKbyTApVG5v7N7okCRo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.771493"], ["updated_at", "2015-03-19 05:25:32.771493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d3a938c-cdf8-11e4-99b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d3b7fae-cdf8-11e4-8c38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d3a938c-cdf8-11e4-99b3-705681abff85"], ["organization_id", "5d3b7fae-cdf8-11e4-8c38-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.774911"], ["updated_at", "2015-03-19 05:25:32.774911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '5d3b7fae-cdf8-11e4-8c38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "5d3b7fae-cdf8-11e4-8c38-705681abff85"], ["created_at", "2015-03-19 05:25:32.778296"], ["updated_at", "2015-03-19 05:25:32.778296"], ["token", "JpgKeAHL6PcNhAHny0O8U6b-3uJ85OmzfteeP4URSdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$elam6jQPjb9qz266QAkHkeFFDhwEqH9xuiWzoWtUUAMjQFj6xsbR2"], ["created_at", "2015-03-19 05:25:32.788955"], ["updated_at", "2015-03-19 05:25:32.788955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:32.790704"], ["user_id", "5d3e2f42-cdf8-11e4-a783-705681abff85"], ["created_at", "2015-03-19 05:25:32.791476"], ["updated_at", "2015-03-19 05:25:32.791476"], ["token", "vbFO19WCMMFpe5BS0w3Zg2thbr1XlRkwjPyI-zpVN6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:32.794833"], ["updated_at", "2015-03-19 05:25:32.794833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d3e2f42-cdf8-11e4-a783-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d3f0d5e-cdf8-11e4-801a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d3e2f42-cdf8-11e4-a783-705681abff85"], ["organization_id", "5d3f0d5e-cdf8-11e4-801a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.799066"], ["updated_at", "2015-03-19 05:25:32.799066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '5d3f0d5e-cdf8-11e4-801a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "5d3f0d5e-cdf8-11e4-801a-705681abff85"], ["created_at", "2015-03-19 05:25:32.802984"], ["updated_at", "2015-03-19 05:25:32.802984"], ["token", "0ESVfnDjhZky7RPcjejAwlS0e4XgOf0rOgUJHiH9kqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:25:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:32.808036' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vbFO19WCMMFpe5BS0w3Zg2thbr1XlRkwjPyI-zpVN6M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:32.810019"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:32.811173"], ["id", "5d3e93ba-cdf8-11e4-bbf1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d3e2f42-cdf8-11e4-a783-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5d3f0d5e-cdf8-11e4-801a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5d3e2f42-cdf8-11e4-a783-705681abff85' LIMIT 1 [["organization_id", "5d3f0d5e-cdf8-11e4-801a-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5d3f0d5e-cdf8-11e4-801a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5d3f0d5e-cdf8-11e4-801a-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:25:32.822209"], ["updated_at", "2015-03-19 05:25:32.822209"], ["token", "cDg_UQ-y-6lmtDjjRFYuwVeiM08Gyw8YAWZrNr44jVY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fe79f38d-1534-4f7f-87f4-5b6ae851ee95) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5d434c5c-cdf8-11e4-b849-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5d434c5c-cdf8-11e4-b849-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [fe79f38d-1534-4f7f-87f4-5b6ae851ee95] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5d434c5c-cdf8-11e4-b849-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [fe79f38d-1534-4f7f-87f4-5b6ae851ee95] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5d3f0d5e-cdf8-11e4-801a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [fe79f38d-1534-4f7f-87f4-5b6ae851ee95] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [fe79f38d-1534-4f7f-87f4-5b6ae851ee95] Clubhouse::Mailer#invitation: processed outbound mail in 218.1ms [ActiveJob] [ActionMailer::DeliveryJob] [fe79f38d-1534-4f7f-87f4-5b6ae851ee95] Sent mail to email@example.com (12.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [fe79f38d-1534-4f7f-87f4-5b6ae851ee95] Date: Wed, 18 Mar 2015 22:25:33 -0700 From: from@example.com To: email@example.com Message-ID: <550a5dcd141e5_e3af3fcc22433be427997@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/cDg_UQ-y-6lmtDjjRFYuwVeiM08Gyw8YAWZrNr44jVY?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [fe79f38d-1534-4f7f-87f4-5b6ae851ee95] Performed ActionMailer::DeliveryJob from Inline(mailers) in 230.97ms Completed 201 Created in 281ms (Views: 1.3ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$I4jwvmFgGP94SaL1fnP4RuITsa2vGX70Ai9IsryxANUYIXFSQpBm."], ["created_at", "2015-03-19 05:25:33.097087"], ["updated_at", "2015-03-19 05:25:33.097087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.098933"], ["user_id", "5d6d3418-cdf8-11e4-9f9d-705681abff85"], ["created_at", "2015-03-19 05:25:33.099939"], ["updated_at", "2015-03-19 05:25:33.099939"], ["token", "kvU7oH-lsFlID6IJLN69Ucd8rAuzAOcm2uqqgMvSr08"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.111984"], ["updated_at", "2015-03-19 05:25:33.111984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d6d3418-cdf8-11e4-9f9d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d6f776e-cdf8-11e4-be4d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d6d3418-cdf8-11e4-9f9d-705681abff85"], ["organization_id", "5d6f776e-cdf8-11e4-be4d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.116478"], ["updated_at", "2015-03-19 05:25:33.116478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '5d6f776e-cdf8-11e4-be4d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "5d6f776e-cdf8-11e4-be4d-705681abff85"], ["created_at", "2015-03-19 05:25:33.120797"], ["updated_at", "2015-03-19 05:25:33.120797"], ["token", "re-4r3XvF25P9RDcnG-34TkrL1CWqCs4cp_y4un-5XQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:33.129871' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kvU7oH-lsFlID6IJLN69Ucd8rAuzAOcm2uqqgMvSr08"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:33.132290"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:33.134037"], ["id", "5d6daac4-cdf8-11e4-8641-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d6d3418-cdf8-11e4-9f9d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5d6f776e-cdf8-11e4-be4d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5d6d3418-cdf8-11e4-9f9d-705681abff85' LIMIT 1 [["organization_id", "5d6f776e-cdf8-11e4-be4d-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5d6f776e-cdf8-11e4-be4d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5d6f776e-cdf8-11e4-be4d-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.143731"], ["updated_at", "2015-03-19 05:25:33.143731"], ["token", "Kc9WJNo_3GXU7sN2YV9cuQvRup51UDOaEoQd7m694yg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: da7603fb-c819-4dc4-b649-9dc095649a27) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5d747ff2-cdf8-11e4-97d7-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5d747ff2-cdf8-11e4-97d7-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [da7603fb-c819-4dc4-b649-9dc095649a27] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5d747ff2-cdf8-11e4-97d7-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [da7603fb-c819-4dc4-b649-9dc095649a27] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5d6f776e-cdf8-11e4-be4d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [da7603fb-c819-4dc4-b649-9dc095649a27] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [da7603fb-c819-4dc4-b649-9dc095649a27] Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms [ActiveJob] [ActionMailer::DeliveryJob] [da7603fb-c819-4dc4-b649-9dc095649a27] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [da7603fb-c819-4dc4-b649-9dc095649a27] Date: Wed, 18 Mar 2015 22:25:33 -0700 From: from@example.com To: email@example.com Message-ID: <550a5dcd2558e_e3af3fcc22433be428091@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Kc9WJNo_3GXU7sN2YV9cuQvRup51UDOaEoQd7m694yg?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [da7603fb-c819-4dc4-b649-9dc095649a27] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.6ms Completed 201 Created in 26ms (Views: 0.8ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$iILMNeXUjdffLJ4m4Za4duSvcChNEJ2ORjx8kStnUcmnBcdfIX4q6"], ["created_at", "2015-03-19 05:25:33.164538"], ["updated_at", "2015-03-19 05:25:33.164538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.166120"], ["user_id", "5d777a0e-cdf8-11e4-a8b1-705681abff85"], ["created_at", "2015-03-19 05:25:33.166880"], ["updated_at", "2015-03-19 05:25:33.166880"], ["token", "h8jS_THIIWIa7Jry2AP8nqioaNMreaVP98M7dqvAgXg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.170532"], ["updated_at", "2015-03-19 05:25:33.170532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d777a0e-cdf8-11e4-a8b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d786248-cdf8-11e4-be85-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d777a0e-cdf8-11e4-a8b1-705681abff85"], ["organization_id", "5d786248-cdf8-11e4-be85-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.173731"], ["updated_at", "2015-03-19 05:25:33.173731"]]  (14.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '5d786248-cdf8-11e4-be85-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "5d786248-cdf8-11e4-be85-705681abff85"], ["created_at", "2015-03-19 05:25:33.199389"], ["updated_at", "2015-03-19 05:25:33.199389"], ["token", "TP-wbh46lLknAtNnQV3Z1nQtYR9OeBxpksbxnnPeFRc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.9ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:33.208171' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "h8jS_THIIWIa7Jry2AP8nqioaNMreaVP98M7dqvAgXg"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:33.214594"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:33.217224"], ["id", "5d77d968-cdf8-11e4-9a8f-705681abff85"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (1.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d777a0e-cdf8-11e4-a8b1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5d786248-cdf8-11e4-be85-705681abff85"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5d777a0e-cdf8-11e4-a8b1-705681abff85' LIMIT 1 [["organization_id", "5d786248-cdf8-11e4-be85-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '5d786248-cdf8-11e4-be85-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 28ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$SOo6xPhJaQXe4og3mXNaAuV.9qY7T7m..AZySA3fvLZWlEalJ1pnS"], ["created_at", "2015-03-19 05:25:33.243365"], ["updated_at", "2015-03-19 05:25:33.243365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.246121"], ["user_id", "5d8392da-cdf8-11e4-872f-705681abff85"], ["created_at", "2015-03-19 05:25:33.247031"], ["updated_at", "2015-03-19 05:25:33.247031"], ["token", "e3GQZ9DcwbiAKGNQeMycncDE79lFr13BJZ4kgZtRDN4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.251387"], ["updated_at", "2015-03-19 05:25:33.251387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d8392da-cdf8-11e4-872f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d84bdcc-cdf8-11e4-8fad-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d8392da-cdf8-11e4-872f-705681abff85"], ["organization_id", "5d84bdcc-cdf8-11e4-8fad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.254980"], ["updated_at", "2015-03-19 05:25:33.254980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '5d84bdcc-cdf8-11e4-8fad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "5d84bdcc-cdf8-11e4-8fad-705681abff85"], ["created_at", "2015-03-19 05:25:33.258688"], ["updated_at", "2015-03-19 05:25:33.258688"], ["token", "pYmfhOQHREEMR-R4c5rfQygjN92BziBiHS1o3S1KoYE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$tyfQBsjpYP47TB6DmZ.Wpu4CKPiiPmLVrfS9TXRT4KdKgbpG7fyyq"], ["created_at", "2015-03-19 05:25:33.271493"], ["updated_at", "2015-03-19 05:25:33.271493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.273920"], ["user_id", "5d87da5c-cdf8-11e4-904a-705681abff85"], ["created_at", "2015-03-19 05:25:33.274876"], ["updated_at", "2015-03-19 05:25:33.274876"], ["token", "P0of6JeIjU4OX9H6tLKiKO81Zoo05_rJXRaxf63nM6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.279786"], ["updated_at", "2015-03-19 05:25:33.279786"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d87da5c-cdf8-11e4-904a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d8922b8-cdf8-11e4-91c1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d87da5c-cdf8-11e4-904a-705681abff85"], ["organization_id", "5d8922b8-cdf8-11e4-91c1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.295921"], ["updated_at", "2015-03-19 05:25:33.295921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '5d8922b8-cdf8-11e4-91c1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "5d8922b8-cdf8-11e4-91c1-705681abff85"], ["created_at", "2015-03-19 05:25:33.303108"], ["updated_at", "2015-03-19 05:25:33.303108"], ["token", "959_l93I_KnLt94iHShwt-87d0L26-4ZBJWP7KfRuag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/5d8cc3dc-cdf8-11e4-a26b-705681abff85" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"5d8cc3dc-cdf8-11e4-a26b-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:33.309357' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "P0of6JeIjU4OX9H6tLKiKO81Zoo05_rJXRaxf63nM6s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:33.310933"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:33.312032"], ["id", "5d885996-cdf8-11e4-b3a7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5d8cc3dc-cdf8-11e4-a26b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d87da5c-cdf8-11e4-904a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5d8922b8-cdf8-11e4-91c1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5d87da5c-cdf8-11e4-904a-705681abff85' LIMIT 1 [["organization_id", "5d8922b8-cdf8-11e4-91c1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "5d8cc3dc-cdf8-11e4-a26b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$BTqglGICaX71z5b3eq40ROJ2vdQrzQV77Zl3IlCCkjGyOX3ViV8rW"], ["created_at", "2015-03-19 05:25:33.324096"], ["updated_at", "2015-03-19 05:25:33.324096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.326969"], ["user_id", "5d8fda5e-cdf8-11e4-aa35-705681abff85"], ["created_at", "2015-03-19 05:25:33.328480"], ["updated_at", "2015-03-19 05:25:33.328480"], ["token", "qAeSu_LncrvhZd4DYd_1yhjYE1uZH8FQ2x_D3dkufR8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.335192"], ["updated_at", "2015-03-19 05:25:33.335192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d8fda5e-cdf8-11e4-aa35-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d91a1f4-cdf8-11e4-8d65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d8fda5e-cdf8-11e4-aa35-705681abff85"], ["organization_id", "5d91a1f4-cdf8-11e4-8d65-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.340080"], ["updated_at", "2015-03-19 05:25:33.340080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '5d91a1f4-cdf8-11e4-8d65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "5d91a1f4-cdf8-11e4-8d65-705681abff85"], ["created_at", "2015-03-19 05:25:33.343777"], ["updated_at", "2015-03-19 05:25:33.343777"], ["token", "A3LzMJG40n8meXB0_-wqUECKkwZUsDjCPqNxJjF28z4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$.VxscK.KNwiuCeTSP9aG4e8I5k5W1AdUy4fBJNG2SHRRY.c1UMChu"], ["created_at", "2015-03-19 05:25:33.348546"], ["updated_at", "2015-03-19 05:25:33.348546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.352052"], ["updated_at", "2015-03-19 05:25:33.352052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d9391d0-cdf8-11e4-8721-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d9416dc-cdf8-11e4-844d-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d9391d0-cdf8-11e4-8721-705681abff85"], ["organization_id", "5d9416dc-cdf8-11e4-844d-705681abff85"], ["created_at", "2015-03-19 05:25:33.363411"], ["updated_at", "2015-03-19 05:25:33.363411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$U7UaeZpUXUsg9NAhIKwckuJDzLqNQh5UNOB3bKNxt7m3FCvMa9X.y"], ["created_at", "2015-03-19 05:25:33.387077"], ["updated_at", "2015-03-19 05:25:33.387077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.389937"], ["user_id", "5d998504-cdf8-11e4-8bc5-705681abff85"], ["created_at", "2015-03-19 05:25:33.390818"], ["updated_at", "2015-03-19 05:25:33.390818"], ["token", "k75jBadwGFwIMMqxVYZHCqK1377VtRc9o4Sp8niqZK4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.394632"], ["updated_at", "2015-03-19 05:25:33.394632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d998504-cdf8-11e4-8bc5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5d9a9502-cdf8-11e4-b290-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d998504-cdf8-11e4-8bc5-705681abff85"], ["organization_id", "5d9a9502-cdf8-11e4-b290-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.403934"], ["updated_at", "2015-03-19 05:25:33.403934"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '5d9a9502-cdf8-11e4-b290-705681abff85') LIMIT 1 SQL (8.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "5d9a9502-cdf8-11e4-b290-705681abff85"], ["created_at", "2015-03-19 05:25:33.413904"], ["updated_at", "2015-03-19 05:25:33.413904"], ["token", "F_E5OWPA5aq2zD5zjhvui7D-d9juQK7AW_rf02lZmMo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$WurRVmL79nsCLREH98b2J.JVIv67cyl1zGK09FwTi3IaeEoAO6ktK"], ["created_at", "2015-03-19 05:25:33.435217"], ["updated_at", "2015-03-19 05:25:33.435217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.438889"], ["updated_at", "2015-03-19 05:25:33.438889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5da0ca26-cdf8-11e4-adc9-705681abff85' AND "clubhouse_memberships"."organization_id" = '5da1575c-cdf8-11e4-84b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5da0ca26-cdf8-11e4-adc9-705681abff85"], ["organization_id", "5da1575c-cdf8-11e4-84b4-705681abff85"], ["created_at", "2015-03-19 05:25:33.442336"], ["updated_at", "2015-03-19 05:25:33.442336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5d9a9502-cdf8-11e4-b290-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"5d9a9502-cdf8-11e4-b290-705681abff85", "invitation"=>{}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:33.456444' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k75jBadwGFwIMMqxVYZHCqK1377VtRc9o4Sp8niqZK4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:33.459765"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:33.462039"], ["id", "5d9a0c36-cdf8-11e4-a9f2-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5d9a9502-cdf8-11e4-b290-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d998504-cdf8-11e4-8bc5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5d998504-cdf8-11e4-8bc5-705681abff85' LIMIT 1 [["organization_id", "5d9a9502-cdf8-11e4-b290-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "5d9a9502-cdf8-11e4-b290-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('5d9a9502-cdf8-11e4-b290-705681abff85') Completed 200 OK in 25ms (Views: 2.9ms | ActiveRecord: 3.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$brEwFfFfHC3MEzOiyZFdF.fy30kujw6Wa81IC3XMbhUUB5sJM/SPS"], ["created_at", "2015-03-19 05:25:33.487908"], ["updated_at", "2015-03-19 05:25:33.487908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.489463"], ["user_id", "5da8d130-cdf8-11e4-894f-705681abff85"], ["created_at", "2015-03-19 05:25:33.490193"], ["updated_at", "2015-03-19 05:25:33.490193"], ["token", "jzG7oyYEfRKC4cCW4cKFHaopgDGmd2kXT64jyq93H3A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.493440"], ["updated_at", "2015-03-19 05:25:33.493440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5da8d130-cdf8-11e4-894f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5da9a79a-cdf8-11e4-a458-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5da8d130-cdf8-11e4-894f-705681abff85"], ["organization_id", "5da9a79a-cdf8-11e4-a458-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.496634"], ["updated_at", "2015-03-19 05:25:33.496634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '5da9a79a-cdf8-11e4-a458-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "5da9a79a-cdf8-11e4-a458-705681abff85"], ["created_at", "2015-03-19 05:25:33.500135"], ["updated_at", "2015-03-19 05:25:33.500135"], ["token", "D0neVSpnTfap8LoEKJytSBw7gNKOlfsAlcgccHh27L0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$a5QpgfU/Mkj3kNd2tL1iiudtQPbFVZprQrE4uzCkm6Gav4ttvVwTW"], ["created_at", "2015-03-19 05:25:33.510091"], ["updated_at", "2015-03-19 05:25:33.510091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.511655"], ["user_id", "5dac33d4-cdf8-11e4-b62d-705681abff85"], ["created_at", "2015-03-19 05:25:33.512397"], ["updated_at", "2015-03-19 05:25:33.512397"], ["token", "L2rK9qsSL2YITTs-J1OuuQz8tnRqrvVFay0eTj0AckE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.515684"], ["updated_at", "2015-03-19 05:25:33.515684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dac33d4-cdf8-11e4-b62d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dad0bf6-cdf8-11e4-ad47-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dac33d4-cdf8-11e4-b62d-705681abff85"], ["organization_id", "5dad0bf6-cdf8-11e4-ad47-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.519343"], ["updated_at", "2015-03-19 05:25:33.519343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '5dad0bf6-cdf8-11e4-ad47-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "5dad0bf6-cdf8-11e4-ad47-705681abff85"], ["created_at", "2015-03-19 05:25:33.525290"], ["updated_at", "2015-03-19 05:25:33.525290"], ["token", "oAcHaIoFUQ0DiejUzSFEsa4wC-I_zVIzlhCGVmOMhQM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5dad0bf6-cdf8-11e4-ad47-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"5dad0bf6-cdf8-11e4-ad47-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:33.530591' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "L2rK9qsSL2YITTs-J1OuuQz8tnRqrvVFay0eTj0AckE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:33.532489"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:33.533458"], ["id", "5dac919e-cdf8-11e4-8e7a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5dad0bf6-cdf8-11e4-ad47-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5dac33d4-cdf8-11e4-b62d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5dad0bf6-cdf8-11e4-ad47-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dac33d4-cdf8-11e4-b62d-705681abff85' LIMIT 1 [["organization_id", "5dad0bf6-cdf8-11e4-ad47-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5dad0bf6-cdf8-11e4-ad47-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5dad0bf6-cdf8-11e4-ad47-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.540500"], ["updated_at", "2015-03-19 05:25:33.540500"], ["token", "mWFB8jPiAQ-qAYKk3JteOW5krYMQCzAJS3n0AW91m-M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b35dfb7c-9345-43e3-b034-099de6c9bf99) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5db0dd44-cdf8-11e4-a457-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5db0dd44-cdf8-11e4-a457-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b35dfb7c-9345-43e3-b034-099de6c9bf99] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5db0dd44-cdf8-11e4-a457-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [b35dfb7c-9345-43e3-b034-099de6c9bf99] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5dad0bf6-cdf8-11e4-ad47-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b35dfb7c-9345-43e3-b034-099de6c9bf99] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [b35dfb7c-9345-43e3-b034-099de6c9bf99] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [b35dfb7c-9345-43e3-b034-099de6c9bf99] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [b35dfb7c-9345-43e3-b034-099de6c9bf99] Date: Wed, 18 Mar 2015 22:25:33 -0700 From: from@example.com To: email@example.com Message-ID: <550a5dcd859cd_e3af3fcc22433be428158@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/mWFB8jPiAQ-qAYKk3JteOW5krYMQCzAJS3n0AW91m-M?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b35dfb7c-9345-43e3-b034-099de6c9bf99] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.06ms Completed 201 Created in 19ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$Tg3Sc9XOIR5TNBHQn2gN.O0PRDLTNRONiCFckbKPbzsSBEFVkJkHW"], ["created_at", "2015-03-19 05:25:33.555409"], ["updated_at", "2015-03-19 05:25:33.555409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.556993"], ["user_id", "5db31e92-cdf8-11e4-874d-705681abff85"], ["created_at", "2015-03-19 05:25:33.557758"], ["updated_at", "2015-03-19 05:25:33.557758"], ["token", "HObeaTin752UOGcL482YI7Wx_z_NlArLnu_lVWhLeoQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.561010"], ["updated_at", "2015-03-19 05:25:33.561010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5db31e92-cdf8-11e4-874d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5db3f7c2-cdf8-11e4-baa9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5db31e92-cdf8-11e4-874d-705681abff85"], ["organization_id", "5db3f7c2-cdf8-11e4-baa9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.564238"], ["updated_at", "2015-03-19 05:25:33.564238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '5db3f7c2-cdf8-11e4-baa9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "5db3f7c2-cdf8-11e4-baa9-705681abff85"], ["created_at", "2015-03-19 05:25:33.567627"], ["updated_at", "2015-03-19 05:25:33.567627"], ["token", "BT5jxfwzR61bPnK00c-Wg8sj650FPtOpkYRqwXUrrWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5db3f7c2-cdf8-11e4-baa9-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"5db3f7c2-cdf8-11e4-baa9-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:33.572561' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HObeaTin752UOGcL482YI7Wx_z_NlArLnu_lVWhLeoQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:33.574013"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:33.574927"], ["id", "5db37e0a-cdf8-11e4-b0d2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5db3f7c2-cdf8-11e4-baa9-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5db31e92-cdf8-11e4-874d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5db3f7c2-cdf8-11e4-baa9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5db31e92-cdf8-11e4-874d-705681abff85' LIMIT 1 [["organization_id", "5db3f7c2-cdf8-11e4-baa9-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5db3f7c2-cdf8-11e4-baa9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5db3f7c2-cdf8-11e4-baa9-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.582187"], ["updated_at", "2015-03-19 05:25:33.582187"], ["token", "VnVHy7bDql52_sqDu8wG2gnHJJLoa5P7eQH0pfgNCUc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 034f4061-3d6b-496c-90fd-63c51a1f4246) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5db73e6e-cdf8-11e4-a782-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5db73e6e-cdf8-11e4-a782-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [034f4061-3d6b-496c-90fd-63c51a1f4246] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5db73e6e-cdf8-11e4-a782-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [034f4061-3d6b-496c-90fd-63c51a1f4246] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5db3f7c2-cdf8-11e4-baa9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [034f4061-3d6b-496c-90fd-63c51a1f4246] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [034f4061-3d6b-496c-90fd-63c51a1f4246] Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms [ActiveJob] [ActionMailer::DeliveryJob] [034f4061-3d6b-496c-90fd-63c51a1f4246] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [034f4061-3d6b-496c-90fd-63c51a1f4246] Date: Wed, 18 Mar 2015 22:25:33 -0700 From: from@example.com To: email@example.com Message-ID: <550a5dcd901d6_e3af3fcc22433be4282fe@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/VnVHy7bDql52_sqDu8wG2gnHJJLoa5P7eQH0pfgNCUc?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [034f4061-3d6b-496c-90fd-63c51a1f4246] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.36ms Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$ntf/WXdDD29rwqrZoHFgeutI5T2uSjI8mXoxJOf6xevhXp0W/.Uca"], ["created_at", "2015-03-19 05:25:33.601268"], ["updated_at", "2015-03-19 05:25:33.601268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.603407"], ["user_id", "5dba2b74-cdf8-11e4-9d73-705681abff85"], ["created_at", "2015-03-19 05:25:33.604237"], ["updated_at", "2015-03-19 05:25:33.604237"], ["token", "5dv8QN7G7G0PpBEJFbOI_1xd9wlmpMdxtQau6bp3ycA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.607597"], ["updated_at", "2015-03-19 05:25:33.607597"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dba2b74-cdf8-11e4-9d73-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dbb111a-cdf8-11e4-a3d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dba2b74-cdf8-11e4-9d73-705681abff85"], ["organization_id", "5dbb111a-cdf8-11e4-a3d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.611424"], ["updated_at", "2015-03-19 05:25:33.611424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '5dbb111a-cdf8-11e4-a3d3-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "5dbb111a-cdf8-11e4-a3d3-705681abff85"], ["created_at", "2015-03-19 05:25:33.614738"], ["updated_at", "2015-03-19 05:25:33.614738"], ["token", "T-z8uV9iJo2mkx86iaFb3ObINNEcvt0Xijg1GafzZBU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5dbb111a-cdf8-11e4-a3d3-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"5dbb111a-cdf8-11e4-a3d3-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:33.623574' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5dv8QN7G7G0PpBEJFbOI_1xd9wlmpMdxtQau6bp3ycA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:33.625606"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:33.626544"], ["id", "5dba9a00-cdf8-11e4-8afe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5dbb111a-cdf8-11e4-a3d3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5dba2b74-cdf8-11e4-9d73-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5dbb111a-cdf8-11e4-a3d3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dba2b74-cdf8-11e4-9d73-705681abff85' LIMIT 1 [["organization_id", "5dbb111a-cdf8-11e4-a3d3-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '5dbb111a-cdf8-11e4-a3d3-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$h5QqgA4o.Z513IugE8uD9uRyqF.IVNXwneMfCDJiJGquVM60ztzw6"], ["created_at", "2015-03-19 05:25:33.640974"], ["updated_at", "2015-03-19 05:25:33.640974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.642579"], ["user_id", "5dc02cea-cdf8-11e4-ac95-705681abff85"], ["created_at", "2015-03-19 05:25:33.643336"], ["updated_at", "2015-03-19 05:25:33.643336"], ["token", "mkBW4AL7mAPZvTH8mR2nGaMhQcnXLYsYcVZ3Q31GL1c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.646745"], ["updated_at", "2015-03-19 05:25:33.646745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dc02cea-cdf8-11e4-ac95-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dc12e42-cdf8-11e4-acc3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dc02cea-cdf8-11e4-ac95-705681abff85"], ["organization_id", "5dc12e42-cdf8-11e4-acc3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.651322"], ["updated_at", "2015-03-19 05:25:33.651322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '5dc12e42-cdf8-11e4-acc3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "5dc12e42-cdf8-11e4-acc3-705681abff85"], ["created_at", "2015-03-19 05:25:33.654623"], ["updated_at", "2015-03-19 05:25:33.654623"], ["token", "gN5WkQ4v0e3EFp8M98ffi3JSkrflSTfI0Zc8anxaKyQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$zu9Z1WgBrT8l/HcfHkFgqOj7kmzTxDAqUVXDD4KtzJEYgNXx.6xta"], ["created_at", "2015-03-19 05:25:33.665390"], ["updated_at", "2015-03-19 05:25:33.665390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:33.666959"], ["user_id", "5dc3e77c-cdf8-11e4-aa3c-705681abff85"], ["created_at", "2015-03-19 05:25:33.667716"], ["updated_at", "2015-03-19 05:25:33.667716"], ["token", "Ki-cFBAjKXlB3RyWJmXPgSVP_xCwkzhKbYFFgwEu_xU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.671558"], ["updated_at", "2015-03-19 05:25:33.671558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dc3e77c-cdf8-11e4-aa3c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dc4d5b0-cdf8-11e4-a9a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dc3e77c-cdf8-11e4-aa3c-705681abff85"], ["organization_id", "5dc4d5b0-cdf8-11e4-a9a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.674816"], ["updated_at", "2015-03-19 05:25:33.674816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '5dc4d5b0-cdf8-11e4-a9a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "5dc4d5b0-cdf8-11e4-a9a5-705681abff85"], ["created_at", "2015-03-19 05:25:33.677984"], ["updated_at", "2015-03-19 05:25:33.677984"], ["token", "ciMuCGci3mplpSBSlG2gGB3kzTcam5b6VH2NSTrqoWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/5dc5d30c-cdf8-11e4-bed5-705681abff85" for 127.0.0.1 at 2015-03-18 22:25:33 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"5dc5d30c-cdf8-11e4-bed5-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:33.683226' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ki-cFBAjKXlB3RyWJmXPgSVP_xCwkzhKbYFFgwEu_xU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:33.684671"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:33.685602"], ["id", "5dc44726-cdf8-11e4-a23f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5dc5d30c-cdf8-11e4-bed5-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5dc3e77c-cdf8-11e4-aa3c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5dc4d5b0-cdf8-11e4-a9a5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dc3e77c-cdf8-11e4-aa3c-705681abff85' LIMIT 1 [["organization_id", "5dc4d5b0-cdf8-11e4-a9a5-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."id" != '5dc5d30c-cdf8-11e4-bed5-705681abff85' AND "clubhouse_invitations"."organization_id" = '5dc4d5b0-cdf8-11e4-a9a5-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:25:33.692181"], ["id", "5dc5d30c-cdf8-11e4-bed5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.8ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$afPlybHFsRR5eKYOedt0F.zufKakzbk0/Ba/hQCiU76kUrNY5R01m"], ["created_at", "2015-03-19 05:25:33.703889"], ["updated_at", "2015-03-19 05:25:33.703889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.707097"], ["updated_at", "2015-03-19 05:25:33.707097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '5dca4036-cdf8-11e4-aa71-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "5dca4036-cdf8-11e4-aa71-705681abff85"], ["created_at", "2015-03-19 05:25:33.710334"], ["updated_at", "2015-03-19 05:25:33.710334"], ["token", "JFZGbD25eMJ9imVbUb3UarFzJwApejxllTB4_fTFoPU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dc9c82c-cdf8-11e4-a4aa-705681abff85' LIMIT 1 [["organization_id", "5dca4036-cdf8-11e4-aa71-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$/VxNVuVPx.G5wMJnrDSKFuJA1Io25ckSd.JI5PQa757MrSzM7Ru4q"], ["created_at", "2015-03-19 05:25:33.718382"], ["updated_at", "2015-03-19 05:25:33.718382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.721518"], ["updated_at", "2015-03-19 05:25:33.721518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '5dcc7392-cdf8-11e4-a2f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "5dcc7392-cdf8-11e4-a2f6-705681abff85"], ["created_at", "2015-03-19 05:25:33.724734"], ["updated_at", "2015-03-19 05:25:33.724734"], ["token", "t3SkqTFEeYjmxBC_r536bANSsHCN00z38PdC1GUZtls"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dcbfe58-cdf8-11e4-9ec8-705681abff85' LIMIT 1 [["organization_id", "5dcc7392-cdf8-11e4-a2f6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$jq71bYWA/JBvUNFls4OQO..zcAE.q1FXVIR0JVdnaG9NS5IUn8L4O"], ["created_at", "2015-03-19 05:25:33.731665"], ["updated_at", "2015-03-19 05:25:33.731665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.734986"], ["updated_at", "2015-03-19 05:25:33.734986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '5dce88a8-cdf8-11e4-967a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "5dce88a8-cdf8-11e4-967a-705681abff85"], ["created_at", "2015-03-19 05:25:33.738747"], ["updated_at", "2015-03-19 05:25:33.738747"], ["token", "N56WUTBRaOmh0wGZ5_vI2C3YYVras5ra3JOLnS76IX8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dce020c-cdf8-11e4-bcab-705681abff85' LIMIT 1 [["organization_id", "5dce88a8-cdf8-11e4-967a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$7oh5YaQ/oFNLeTQZnQVOu.fzstqQQbOtH2a2bFBEb.j.jP7yUTXri"], ["created_at", "2015-03-19 05:25:33.745756"], ["updated_at", "2015-03-19 05:25:33.745756"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.752449"], ["updated_at", "2015-03-19 05:25:33.752449"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '5dd1557e-cdf8-11e4-937a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "5dd1557e-cdf8-11e4-937a-705681abff85"], ["created_at", "2015-03-19 05:25:33.761262"], ["updated_at", "2015-03-19 05:25:33.761262"], ["token", "W-J0r5l_IIsfRlXXnn-60rch_lZeFBk8_MwYdYSeuJE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dd02cbc-cdf8-11e4-82b6-705681abff85' LIMIT 1 [["organization_id", "5dd1557e-cdf8-11e4-937a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$yXAFAj3G9sHp9Av4Xa8HnOVhEQ5fHEPGddw0DZ990bHUMON/fZFYC"], ["created_at", "2015-03-19 05:25:33.773369"], ["updated_at", "2015-03-19 05:25:33.773369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.776472"], ["updated_at", "2015-03-19 05:25:33.776472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dd460b6-cdf8-11e4-863e-705681abff85' LIMIT 1 [["organization_id", "5dd4d622-cdf8-11e4-b2e4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$e29XF/FiStGEJ/UWFtSb7e1sTWwMlbg8OrZ6lxMX1tpEj6ucfF2f2"], ["created_at", "2015-03-19 05:25:33.783809"], ["updated_at", "2015-03-19 05:25:33.783809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.787567"], ["updated_at", "2015-03-19 05:25:33.787567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dd604fc-cdf8-11e4-a2a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dd68ad0-cdf8-11e4-9d02-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dd604fc-cdf8-11e4-a2a3-705681abff85"], ["organization_id", "5dd68ad0-cdf8-11e4-9d02-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.791041"], ["updated_at", "2015-03-19 05:25:33.791041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '5dd68ad0-cdf8-11e4-9d02-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "5dd68ad0-cdf8-11e4-9d02-705681abff85"], ["created_at", "2015-03-19 05:25:33.794909"], ["updated_at", "2015-03-19 05:25:33.794909"], ["token", "kV3z2uY2jEU--uzD9vI-bIcl-qlTH-ZyOdAwzcpRDk0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dd604fc-cdf8-11e4-a2a3-705681abff85' LIMIT 1 [["organization_id", "5dd68ad0-cdf8-11e4-9d02-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$qvodcf3T5EimTDuaUcrx..66NL7YOXID4uNbcLUsLGLEhzQy00Uq."], ["created_at", "2015-03-19 05:25:33.802797"], ["updated_at", "2015-03-19 05:25:33.802797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.806074"], ["updated_at", "2015-03-19 05:25:33.806074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dd8e050-cdf8-11e4-a949-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dd95abc-cdf8-11e4-a77c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dd8e050-cdf8-11e4-a949-705681abff85"], ["organization_id", "5dd95abc-cdf8-11e4-a77c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.809189"], ["updated_at", "2015-03-19 05:25:33.809189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '5dd95abc-cdf8-11e4-a77c-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "5dd95abc-cdf8-11e4-a77c-705681abff85"], ["created_at", "2015-03-19 05:25:33.812481"], ["updated_at", "2015-03-19 05:25:33.812481"], ["token", "nQ4zD17-F5LiECWGOFfuzJzjrfK6DIOB8qGrgFAnhks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dd8e050-cdf8-11e4-a949-705681abff85' LIMIT 1 [["organization_id", "5dd95abc-cdf8-11e4-a77c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$sj6LLve811x4MeLBlfExCeMLEcBe4rWmqlgPJDhor4Un864OvK2P."], ["created_at", "2015-03-19 05:25:33.821646"], ["updated_at", "2015-03-19 05:25:33.821646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.824817"], ["updated_at", "2015-03-19 05:25:33.824817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ddbc05e-cdf8-11e4-bb2e-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ddc3674-cdf8-11e4-9718-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ddbc05e-cdf8-11e4-bb2e-705681abff85"], ["organization_id", "5ddc3674-cdf8-11e4-9718-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.828124"], ["updated_at", "2015-03-19 05:25:33.828124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '5ddc3674-cdf8-11e4-9718-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "5ddc3674-cdf8-11e4-9718-705681abff85"], ["created_at", "2015-03-19 05:25:33.831559"], ["updated_at", "2015-03-19 05:25:33.831559"], ["token", "nt3GJt6TJoBokgWL1dC79VEB32OngK4-F_Wz63v-zmQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ddbc05e-cdf8-11e4-bb2e-705681abff85' LIMIT 1 [["organization_id", "5ddc3674-cdf8-11e4-9718-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$LPNztnOlbmvoUrsoDoUfeeVgC0jGum.uzfNnKdPGid1whKAsWqF02"], ["created_at", "2015-03-19 05:25:33.839363"], ["updated_at", "2015-03-19 05:25:33.839363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.842396"], ["updated_at", "2015-03-19 05:25:33.842396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dde7114-cdf8-11e4-805a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ddee554-cdf8-11e4-812f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dde7114-cdf8-11e4-805a-705681abff85"], ["organization_id", "5ddee554-cdf8-11e4-812f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.846469"], ["updated_at", "2015-03-19 05:25:33.846469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '5ddee554-cdf8-11e4-812f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "5ddee554-cdf8-11e4-812f-705681abff85"], ["created_at", "2015-03-19 05:25:33.851493"], ["updated_at", "2015-03-19 05:25:33.851493"], ["token", "ioWXrMvDKlaCXQrWI-c1etvtwdnuZdfVEC63P0ba8LY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dde7114-cdf8-11e4-805a-705681abff85' LIMIT 1 [["organization_id", "5ddee554-cdf8-11e4-812f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$/F9mtZRWq0p5V3j0Q7DIQ.AqJu156H5uhn7jZZimPz5.lMhQr849u"], ["created_at", "2015-03-19 05:25:33.858904"], ["updated_at", "2015-03-19 05:25:33.858904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.862028"], ["updated_at", "2015-03-19 05:25:33.862028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5de16c52-cdf8-11e4-b991-705681abff85' AND "clubhouse_memberships"."organization_id" = '5de1f302-cdf8-11e4-86e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5de16c52-cdf8-11e4-b991-705681abff85"], ["organization_id", "5de1f302-cdf8-11e4-86e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:33.865900"], ["updated_at", "2015-03-19 05:25:33.865900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5de16c52-cdf8-11e4-b991-705681abff85' LIMIT 1 [["organization_id", "5de1f302-cdf8-11e4-86e8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$lEhmyxrRDgVOnuYtF35ZcuImoEUcZgxCYA0crdMbgt3cCBJpFZctq"], ["created_at", "2015-03-19 05:25:33.873123"], ["updated_at", "2015-03-19 05:25:33.873123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.876278"], ["updated_at", "2015-03-19 05:25:33.876278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5de39a36-cdf8-11e4-b532-705681abff85' AND "clubhouse_memberships"."organization_id" = '5de41236-cdf8-11e4-b012-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5de39a36-cdf8-11e4-b532-705681abff85"], ["organization_id", "5de41236-cdf8-11e4-b012-705681abff85"], ["created_at", "2015-03-19 05:25:33.879438"], ["updated_at", "2015-03-19 05:25:33.879438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '5de41236-cdf8-11e4-b012-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "5de41236-cdf8-11e4-b012-705681abff85"], ["created_at", "2015-03-19 05:25:33.883505"], ["updated_at", "2015-03-19 05:25:33.883505"], ["token", "Hr2o2HSvKkf4eIsSEoCAmq3Kcu0_4n6TsxquJ-_vCUk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5de39a36-cdf8-11e4-b532-705681abff85' LIMIT 1 [["organization_id", "5de41236-cdf8-11e4-b012-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$1t9vBmE7sjIgu59bNEWKSexosxxxrkK.Hv6wGpWj/q5aa/UYm45hy"], ["created_at", "2015-03-19 05:25:33.891128"], ["updated_at", "2015-03-19 05:25:33.891128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (6.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.894473"], ["updated_at", "2015-03-19 05:25:33.894473"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5de65c58-cdf8-11e4-b519-705681abff85' AND "clubhouse_memberships"."organization_id" = '5de6daac-cdf8-11e4-b6c6-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5de65c58-cdf8-11e4-b519-705681abff85"], ["organization_id", "5de6daac-cdf8-11e4-b6c6-705681abff85"], ["created_at", "2015-03-19 05:25:33.906216"], ["updated_at", "2015-03-19 05:25:33.906216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '5de6daac-cdf8-11e4-b6c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "5de6daac-cdf8-11e4-b6c6-705681abff85"], ["created_at", "2015-03-19 05:25:33.911118"], ["updated_at", "2015-03-19 05:25:33.911118"], ["token", "Za4lDLoV7sv8wnJbQezktc02fI8ivfTntp9zj3NV7y4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5de65c58-cdf8-11e4-b519-705681abff85' LIMIT 1 [["organization_id", "5de6daac-cdf8-11e4-b6c6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$1774FTxGwBo7Blr27NI.s.xsPfNCpPY1XuZCTXH0uUwBGDw/ll8FG"], ["created_at", "2015-03-19 05:25:33.918881"], ["updated_at", "2015-03-19 05:25:33.918881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.922125"], ["updated_at", "2015-03-19 05:25:33.922125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dea964c-cdf8-11e4-9e47-705681abff85' AND "clubhouse_memberships"."organization_id" = '5deb1644-cdf8-11e4-989a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5dea964c-cdf8-11e4-9e47-705681abff85"], ["organization_id", "5deb1644-cdf8-11e4-989a-705681abff85"], ["created_at", "2015-03-19 05:25:33.925456"], ["updated_at", "2015-03-19 05:25:33.925456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '5deb1644-cdf8-11e4-989a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "5deb1644-cdf8-11e4-989a-705681abff85"], ["created_at", "2015-03-19 05:25:33.928952"], ["updated_at", "2015-03-19 05:25:33.928952"], ["token", "gWRhVtvuSx6Ua3Ztod6cla23AO2nszLydUWhJ6o61Mg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5dea964c-cdf8-11e4-9e47-705681abff85' LIMIT 1 [["organization_id", "5deb1644-cdf8-11e4-989a-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$IeBCAeaYihq3y3PWByxzduqK3mTrqMnxpscpNqcdHHsX/uNJUgUBq"], ["created_at", "2015-03-19 05:25:33.937848"], ["updated_at", "2015-03-19 05:25:33.937848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.943027"], ["updated_at", "2015-03-19 05:25:33.943027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ded8776-cdf8-11e4-a1f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '5dee4396-cdf8-11e4-98ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ded8776-cdf8-11e4-a1f0-705681abff85"], ["organization_id", "5dee4396-cdf8-11e4-98ab-705681abff85"], ["created_at", "2015-03-19 05:25:33.946253"], ["updated_at", "2015-03-19 05:25:33.946253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '5dee4396-cdf8-11e4-98ab-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "5dee4396-cdf8-11e4-98ab-705681abff85"], ["created_at", "2015-03-19 05:25:33.953453"], ["updated_at", "2015-03-19 05:25:33.953453"], ["token", "x7WGBTZfGC2kUBSnb4RsV7mtSP_4zfwsg3L8ncrvY0E"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ded8776-cdf8-11e4-a1f0-705681abff85' LIMIT 1 [["organization_id", "5dee4396-cdf8-11e4-98ab-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$Th6IFCsUvK3ZRmtOnapGte5MYuI1Th4pZT7E4tGMsgtoqfN66axC6"], ["created_at", "2015-03-19 05:25:33.964477"], ["updated_at", "2015-03-19 05:25:33.964477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.967898"], ["updated_at", "2015-03-19 05:25:33.967898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5df18876-cdf8-11e4-8616-705681abff85' AND "clubhouse_memberships"."organization_id" = '5df20d82-cdf8-11e4-928b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5df18876-cdf8-11e4-8616-705681abff85"], ["organization_id", "5df20d82-cdf8-11e4-928b-705681abff85"], ["created_at", "2015-03-19 05:25:33.971089"], ["updated_at", "2015-03-19 05:25:33.971089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5df18876-cdf8-11e4-8616-705681abff85' LIMIT 1 [["organization_id", "5df20d82-cdf8-11e4-928b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:33.986116"], ["updated_at", "2015-03-19 05:25:33.986116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.005947"], ["updated_at", "2015-03-19 05:25:34.005947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.025419"], ["updated_at", "2015-03-19 05:25:34.025419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.039402"], ["updated_at", "2015-03-19 05:25:34.039402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5dfcf788-cdf8-11e4-8314-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.044159"], ["updated_at", "2015-03-19 05:25:34.044159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$O2dj0aqpezaJab8wEOJzjuVT.WmAn/ETygvFczHOXoA29/lr87YTa"], ["created_at", "2015-03-19 05:25:34.054120"], ["updated_at", "2015-03-19 05:25:34.054120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$0.tU57YXKBN9.TzfsGz77OJC3foz1arNmOltkWNAJeyYBELaKMZKq"], ["created_at", "2015-03-19 05:25:34.059419"], ["updated_at", "2015-03-19 05:25:34.059419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.061462"], ["user_id", "5dff3764-cdf8-11e4-8767-705681abff85"], ["created_at", "2015-03-19 05:25:34.062586"], ["updated_at", "2015-03-19 05:25:34.062586"], ["token", "UBFnr2pSo-o7kHCl1jB9Ba7qhY1lJWn0H5oLQPHWzX0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.068190"], ["updated_at", "2015-03-19 05:25:34.068190"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5dff3764-cdf8-11e4-8767-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e015dfa-cdf8-11e4-9acc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5dff3764-cdf8-11e4-8767-705681abff85"], ["organization_id", "5e015dfa-cdf8-11e4-9acc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.072479"], ["updated_at", "2015-03-19 05:25:34.072479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e001648-cdf8-11e4-bd5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e015dfa-cdf8-11e4-9acc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e001648-cdf8-11e4-bd5d-705681abff85"], ["organization_id", "5e015dfa-cdf8-11e4-9acc-705681abff85"], ["created_at", "2015-03-19 05:25:34.077520"], ["updated_at", "2015-03-19 05:25:34.077520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$XvGL2IwjR/0vc6dnmlCi5.bVgf09UTM7i6X3/iEElYfkHwT/T2s86"], ["created_at", "2015-03-19 05:25:34.097262"], ["updated_at", "2015-03-19 05:25:34.097262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$1ZrCUOvFwCIiExzcmtdLtOD8FgMrIEo1VfESV2dn9zVsvpIrT9ywO"], ["created_at", "2015-03-19 05:25:34.102362"], ["updated_at", "2015-03-19 05:25:34.102362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.104001"], ["user_id", "5e05cf0c-cdf8-11e4-a63c-705681abff85"], ["created_at", "2015-03-19 05:25:34.104923"], ["updated_at", "2015-03-19 05:25:34.104923"], ["token", "Vl6aHEh1z9l2qa8Lwn9pgxvLV-2ASVhFUOjN7NDE9Ys"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.109961"], ["updated_at", "2015-03-19 05:25:34.109961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e05cf0c-cdf8-11e4-a63c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e07c53c-cdf8-11e4-a596-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e05cf0c-cdf8-11e4-a63c-705681abff85"], ["organization_id", "5e07c53c-cdf8-11e4-a596-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.114186"], ["updated_at", "2015-03-19 05:25:34.114186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e0693ba-cdf8-11e4-8f03-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e07c53c-cdf8-11e4-a596-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e0693ba-cdf8-11e4-8f03-705681abff85"], ["organization_id", "5e07c53c-cdf8-11e4-a596-705681abff85"], ["created_at", "2015-03-19 05:25:34.117925"], ["updated_at", "2015-03-19 05:25:34.117925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:34.123091' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Vl6aHEh1z9l2qa8Lwn9pgxvLV-2ASVhFUOjN7NDE9Ys"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:34.124923"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:34.126793"], ["id", "5e071722-cdf8-11e4-bfe1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e05cf0c-cdf8-11e4-a63c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5e05cf0c-cdf8-11e4-a63c-705681abff85' LIMIT 1 [["organization_id", "5e07c53c-cdf8-11e4-a596-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "5e07c53c-cdf8-11e4-a596-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('5e05cf0c-cdf8-11e4-a63c-705681abff85', '5e0693ba-cdf8-11e4-8f03-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('5e07c53c-cdf8-11e4-a596-705681abff85') Completed 200 OK in 18ms (Views: 6.7ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$wKJX1g4/N13BY750xBbZC.L9h9afQ.L2.c8721k50zDdGkQyGOL5i"], ["created_at", "2015-03-19 05:25:34.149617"], ["updated_at", "2015-03-19 05:25:34.149617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$lP9hG5J7kwzAUXnvzHmt9eWbkUteaonXYGYwXOOsTyb.JIxp1LrfG"], ["created_at", "2015-03-19 05:25:34.155080"], ["updated_at", "2015-03-19 05:25:34.155080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.156713"], ["user_id", "5e0dd972-cdf8-11e4-aa1d-705681abff85"], ["created_at", "2015-03-19 05:25:34.157477"], ["updated_at", "2015-03-19 05:25:34.157477"], ["token", "T25ouyu_4IAOkCOty0o_Z9iXg5kgqpWmmNc73HJ0vJk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.160835"], ["updated_at", "2015-03-19 05:25:34.160835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e0dd972-cdf8-11e4-aa1d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e0f7d90-cdf8-11e4-96d3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e0dd972-cdf8-11e4-aa1d-705681abff85"], ["organization_id", "5e0f7d90-cdf8-11e4-96d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.164167"], ["updated_at", "2015-03-19 05:25:34.164167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e0e9efc-cdf8-11e4-853d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e0f7d90-cdf8-11e4-96d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e0e9efc-cdf8-11e4-853d-705681abff85"], ["organization_id", "5e0f7d90-cdf8-11e4-96d3-705681abff85"], ["created_at", "2015-03-19 05:25:34.167555"], ["updated_at", "2015-03-19 05:25:34.167555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$TiSRw9RNUkrR1/umXabL6uX/XSFc8fuk4VxV1tyosaCGNEsYhNnKa"], ["created_at", "2015-03-19 05:25:34.224164"], ["updated_at", "2015-03-19 05:25:34.224164"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$YaSVvbPOFcoNMtM1MeYUluf/SFsqoXXHV.f8LHl0mCL95n9VY3cra"], ["created_at", "2015-03-19 05:25:34.232936"], ["updated_at", "2015-03-19 05:25:34.232936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.235538"], ["user_id", "5e19518a-cdf8-11e4-8492-705681abff85"], ["created_at", "2015-03-19 05:25:34.236733"], ["updated_at", "2015-03-19 05:25:34.236733"], ["token", "Jl6qiwd3YEeBZHXe7-agbVHyayXviJN2Pac9H_C3VLc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.243499"], ["updated_at", "2015-03-19 05:25:34.243499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e19518a-cdf8-11e4-8492-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e1c3832-cdf8-11e4-ab7c-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e19518a-cdf8-11e4-8492-705681abff85"], ["organization_id", "5e1c3832-cdf8-11e4-ab7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.249298"], ["updated_at", "2015-03-19 05:25:34.249298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e1a91ee-cdf8-11e4-bbec-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e1c3832-cdf8-11e4-ab7c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e1a91ee-cdf8-11e4-bbec-705681abff85"], ["organization_id", "5e1c3832-cdf8-11e4-ab7c-705681abff85"], ["created_at", "2015-03-19 05:25:34.259441"], ["updated_at", "2015-03-19 05:25:34.259441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/5e1d4d44-cdf8-11e4-8590-705681abff85" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"5e1d4d44-cdf8-11e4-8590-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:34.268520' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Jl6qiwd3YEeBZHXe7-agbVHyayXviJN2Pac9H_C3VLc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:34.270934"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:34.273078"], ["id", "5e1b483c-cdf8-11e4-83b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "5e1d4d44-cdf8-11e4-8590-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e19518a-cdf8-11e4-8492-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e1c3832-cdf8-11e4-ab7c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5e19518a-cdf8-11e4-8492-705681abff85' LIMIT 1 [["organization_id", "5e1c3832-cdf8-11e4-ab7c-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e19518a-cdf8-11e4-8492-705681abff85"]] Completed 200 OK in 13ms (Views: 2.3ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$2dUYg8aoc8G44mhXabaDQ.vL2oSciH2qZiHIIpgv4MAVneHXiSuxm"], ["created_at", "2015-03-19 05:25:34.288937"], ["updated_at", "2015-03-19 05:25:34.288937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$0xEdi3bhUx.oOaWBLncg9OiIrtbLbMwTublHtjhZitnkKP15NqejW"], ["created_at", "2015-03-19 05:25:34.293532"], ["updated_at", "2015-03-19 05:25:34.293532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.295226"], ["user_id", "5e230fc2-cdf8-11e4-b07c-705681abff85"], ["created_at", "2015-03-19 05:25:34.295998"], ["updated_at", "2015-03-19 05:25:34.295998"], ["token", "5j4IgrDUdcjcnW26E3iDNgWGRDogY9oe5U-_uIcGVXI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.299934"], ["updated_at", "2015-03-19 05:25:34.299934"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e230fc2-cdf8-11e4-b07c-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e24bc46-cdf8-11e4-b2b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e230fc2-cdf8-11e4-b07c-705681abff85"], ["organization_id", "5e24bc46-cdf8-11e4-b2b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.304054"], ["updated_at", "2015-03-19 05:25:34.304054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e23c138-cdf8-11e4-9776-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e24bc46-cdf8-11e4-b2b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e23c138-cdf8-11e4-9776-705681abff85"], ["organization_id", "5e24bc46-cdf8-11e4-b2b9-705681abff85"], ["created_at", "2015-03-19 05:25:34.307206"], ["updated_at", "2015-03-19 05:25:34.307206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$QDVEgd70ebuTSiNELTDCguwqQp0l9r0u6smYjwwqTywsszhHAT9J6"], ["created_at", "2015-03-19 05:25:34.312946"], ["updated_at", "2015-03-19 05:25:34.312946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.314958"], ["user_id", "5e26c428-cdf8-11e4-83af-705681abff85"], ["created_at", "2015-03-19 05:25:34.315773"], ["updated_at", "2015-03-19 05:25:34.315773"], ["token", "ibWDDyhZtN0PoTB9op8H7DXi6l7CQYWS-pB6h6sxhqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '5e24bc46-cdf8-11e4-b2b9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "5e24bc46-cdf8-11e4-b2b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.320036"], ["updated_at", "2015-03-19 05:25:34.320036"], ["token", "-eK8GlnkwlGZU4UZtUBV60pB57SNAEa5-0zoQudjVU0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$k2cEhepaAfCOQ5YAX1J0H.5pW6ipJND20odK0w1Eyf2uMuuc7oUk2"], ["created_at", "2015-03-19 05:25:34.334727"], ["updated_at", "2015-03-19 05:25:34.334727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$wrScKrxcMC1Cv1GsdMQ1rOFHG.R7rM2NepzAyTbIcXw5DuVdz6UBu"], ["created_at", "2015-03-19 05:25:34.339885"], ["updated_at", "2015-03-19 05:25:34.339885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.341509"], ["user_id", "5e2a1164-cdf8-11e4-949a-705681abff85"], ["created_at", "2015-03-19 05:25:34.342297"], ["updated_at", "2015-03-19 05:25:34.342297"], ["token", "pXPaO-TZZr3N3TQcccxveNX8AWWaldUkUyKwg_KbJLU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.345650"], ["updated_at", "2015-03-19 05:25:34.345650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e2a1164-cdf8-11e4-949a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e2bb172-cdf8-11e4-b0ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e2a1164-cdf8-11e4-949a-705681abff85"], ["organization_id", "5e2bb172-cdf8-11e4-b0ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.349166"], ["updated_at", "2015-03-19 05:25:34.349166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e2ad19e-cdf8-11e4-84b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e2bb172-cdf8-11e4-b0ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e2ad19e-cdf8-11e4-84b4-705681abff85"], ["organization_id", "5e2bb172-cdf8-11e4-b0ff-705681abff85"], ["created_at", "2015-03-19 05:25:34.352510"], ["updated_at", "2015-03-19 05:25:34.352510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$g1TTGdU24A0hxEOyP5gnHuMeNJftZX11Iel5ZUjuGsHYq5XNczteS"], ["created_at", "2015-03-19 05:25:34.358272"], ["updated_at", "2015-03-19 05:25:34.358272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.360638"], ["user_id", "5e2daf5e-cdf8-11e4-9d37-705681abff85"], ["created_at", "2015-03-19 05:25:34.361467"], ["updated_at", "2015-03-19 05:25:34.361467"], ["token", "GSWjZrZNPFjkX8wP6GhNucCBlOOwJGriNJHKxQ0Z-GE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '5e2bb172-cdf8-11e4-b0ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "5e2bb172-cdf8-11e4-b0ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.365308"], ["updated_at", "2015-03-19 05:25:34.365308"], ["token", "CLupbZg2bnv1C52LiZ4VLaLk4yDaIQpNkF0F04cEutw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"CLupbZg2bnv1C52LiZ4VLaLk4yDaIQpNkF0F04cEutw", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:34.371419' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GSWjZrZNPFjkX8wP6GhNucCBlOOwJGriNJHKxQ0Z-GE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:34.373037"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:34.374085"], ["id", "5e2e2498-cdf8-11e4-aa9e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e2daf5e-cdf8-11e4-9d37-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "CLupbZg2bnv1C52LiZ4VLaLk4yDaIQpNkF0F04cEutw"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e2bb172-cdf8-11e4-b0ff-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e2daf5e-cdf8-11e4-9d37-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e2bb172-cdf8-11e4-b0ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "5e2bb172-cdf8-11e4-b0ff-705681abff85"], ["member_id", "5e2daf5e-cdf8-11e4-9d37-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.385663"], ["updated_at", "2015-03-19 05:25:34.385663"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "5e2eb5a2-cdf8-11e4-b96f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$d2zXQdYNzfC0BYcNOk53ieUQSMIQu9UuS2RH5YrfBuXy3orFHAXv2"], ["created_at", "2015-03-19 05:25:34.396476"], ["updated_at", "2015-03-19 05:25:34.396476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (7.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$0/u90qDKmzsbXPloUIgYfOFzl16dgMEcVoTG.1oYtiy9aC/hJ/Ope"], ["created_at", "2015-03-19 05:25:34.401144"], ["updated_at", "2015-03-19 05:25:34.401144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.409993"], ["user_id", "5e33751a-cdf8-11e4-ba54-705681abff85"], ["created_at", "2015-03-19 05:25:34.410986"], ["updated_at", "2015-03-19 05:25:34.410986"], ["token", "AMp3PCZ_p5AJ5BLUm4TTbEtcn17sjNftXAbZz24fZTo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.416983"], ["updated_at", "2015-03-19 05:25:34.416983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e33751a-cdf8-11e4-ba54-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e369baa-cdf8-11e4-babb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e33751a-cdf8-11e4-ba54-705681abff85"], ["organization_id", "5e369baa-cdf8-11e4-babb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.420934"], ["updated_at", "2015-03-19 05:25:34.420934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e343824-cdf8-11e4-899b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e369baa-cdf8-11e4-babb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e343824-cdf8-11e4-899b-705681abff85"], ["organization_id", "5e369baa-cdf8-11e4-babb-705681abff85"], ["created_at", "2015-03-19 05:25:34.424448"], ["updated_at", "2015-03-19 05:25:34.424448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$I2B.TFLTlNi8GtDeHfiMiewTwA48VVHnfQ55oJZl5puH0kVegnhuG"], ["created_at", "2015-03-19 05:25:34.429404"], ["updated_at", "2015-03-19 05:25:34.429404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.431388"], ["user_id", "5e38833e-cdf8-11e4-8a6c-705681abff85"], ["created_at", "2015-03-19 05:25:34.432282"], ["updated_at", "2015-03-19 05:25:34.432282"], ["token", "GkDbgMPDuBnfSQaenn6svDgUApSRcukcJyIMtEyjXfc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '5e369baa-cdf8-11e4-babb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "5e369baa-cdf8-11e4-babb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.436929"], ["updated_at", "2015-03-19 05:25:34.436929"], ["token", "tMLOiRHQPPOdlyT4HceHv1krmlgr4hehCKCUo9Nxv7o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:34.441666' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GkDbgMPDuBnfSQaenn6svDgUApSRcukcJyIMtEyjXfc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:34.444032"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:34.444999"], ["id", "5e38f486-cdf8-11e4-be4a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e38833e-cdf8-11e4-8a6c-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$./j5BYgw8SXhHmP33DvK..KY3iWGeaEMMomdYobuWJNlZao/I9d/u"], ["created_at", "2015-03-19 05:25:34.457220"], ["updated_at", "2015-03-19 05:25:34.457220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$TCtdetensC188ZZUtC1wM.TOhwVWvcNioIgkNfY3k4LlnXDv.//JW"], ["created_at", "2015-03-19 05:25:34.461390"], ["updated_at", "2015-03-19 05:25:34.461390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.462941"], ["user_id", "5e3cba1c-cdf8-11e4-84ff-705681abff85"], ["created_at", "2015-03-19 05:25:34.463821"], ["updated_at", "2015-03-19 05:25:34.463821"], ["token", "8a4o1LaghWn-QC0PDfxyh4IbYwD8Wf8vR7qLaPdsGck"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.467238"], ["updated_at", "2015-03-19 05:25:34.467238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e3cba1c-cdf8-11e4-84ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e3e427e-cdf8-11e4-9382-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e3cba1c-cdf8-11e4-84ff-705681abff85"], ["organization_id", "5e3e427e-cdf8-11e4-9382-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.470633"], ["updated_at", "2015-03-19 05:25:34.470633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e3d5b34-cdf8-11e4-a41b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e3e427e-cdf8-11e4-9382-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e3d5b34-cdf8-11e4-a41b-705681abff85"], ["organization_id", "5e3e427e-cdf8-11e4-9382-705681abff85"], ["created_at", "2015-03-19 05:25:34.473698"], ["updated_at", "2015-03-19 05:25:34.473698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$caqVaYvGpkQpIuiJBdUqH.InxchZjPPIpYcUD.RSQDtJUZOOYWJsu"], ["created_at", "2015-03-19 05:25:34.483957"], ["updated_at", "2015-03-19 05:25:34.483957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$YE24hkNPajypzZnOE9rQuemZW3iWxDrmELbf8j9fV5J42mixb5kiK"], ["created_at", "2015-03-19 05:25:34.489145"], ["updated_at", "2015-03-19 05:25:34.489145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.493188"], ["user_id", "5e40d016-cdf8-11e4-a64a-705681abff85"], ["created_at", "2015-03-19 05:25:34.493983"], ["updated_at", "2015-03-19 05:25:34.493983"], ["token", "wovFaxUQN5ZvkQs4jd-CakFTHIAL5FwMSn_zsuzDyn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.497509"], ["updated_at", "2015-03-19 05:25:34.497509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e40d016-cdf8-11e4-a64a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e42de06-cdf8-11e4-a1b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e40d016-cdf8-11e4-a64a-705681abff85"], ["organization_id", "5e42de06-cdf8-11e4-a1b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.501620"], ["updated_at", "2015-03-19 05:25:34.501620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e41a00e-cdf8-11e4-9042-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e42de06-cdf8-11e4-a1b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e41a00e-cdf8-11e4-9042-705681abff85"], ["organization_id", "5e42de06-cdf8-11e4-a1b0-705681abff85"], ["created_at", "2015-03-19 05:25:34.505767"], ["updated_at", "2015-03-19 05:25:34.505767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5e442040-cdf8-11e4-b5dd-705681abff85" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"5e442040-cdf8-11e4-b5dd-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:34.510647' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wovFaxUQN5ZvkQs4jd-CakFTHIAL5FwMSn_zsuzDyn8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:34.512551"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:34.514489"], ["id", "5e425f80-cdf8-11e4-b2ef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "5e442040-cdf8-11e4-b5dd-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e40d016-cdf8-11e4-a64a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e42de06-cdf8-11e4-a1b0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5e40d016-cdf8-11e4-a64a-705681abff85' LIMIT 1 [["organization_id", "5e42de06-cdf8-11e4-a1b0-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e41a00e-cdf8-11e4-9042-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "5e442040-cdf8-11e4-b5dd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$vsJv2cNKov8IyIO6b5PBjuuFKfp1E1SIOWxaTD7ffzvtmDhXywuY6"], ["created_at", "2015-03-19 05:25:34.527720"], ["updated_at", "2015-03-19 05:25:34.527720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$4XWpQlQO9Fm.jnOLBAwjkOl4IkVf3O6EYp7boz2ptm7vk4.eXg5vK"], ["created_at", "2015-03-19 05:25:34.532062"], ["updated_at", "2015-03-19 05:25:34.532062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.533719"], ["user_id", "5e477de4-cdf8-11e4-8d8a-705681abff85"], ["created_at", "2015-03-19 05:25:34.534519"], ["updated_at", "2015-03-19 05:25:34.534519"], ["token", "dOV6JyGnoLOdNROoz-1GXpvnLQSRGNCVkcoGa44OCsU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.537969"], ["updated_at", "2015-03-19 05:25:34.537969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e477de4-cdf8-11e4-8d8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e490aba-cdf8-11e4-875b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e477de4-cdf8-11e4-8d8a-705681abff85"], ["organization_id", "5e490aba-cdf8-11e4-875b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.541510"], ["updated_at", "2015-03-19 05:25:34.541510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e48242e-cdf8-11e4-9d52-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e490aba-cdf8-11e4-875b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e48242e-cdf8-11e4-9d52-705681abff85"], ["organization_id", "5e490aba-cdf8-11e4-875b-705681abff85"], ["created_at", "2015-03-19 05:25:34.544681"], ["updated_at", "2015-03-19 05:25:34.544681"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$ykvS/nT7OJM9x/4Pw/2yAe204/hXu8Tq3zZK1a/NcnKX9blpT2v/e"], ["created_at", "2015-03-19 05:25:34.555384"], ["updated_at", "2015-03-19 05:25:34.555384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$lf0uh1vxCw4NHfU.GV2VhuT.FVecQOAiobuGY91Q8fUrroPtYQwzG"], ["created_at", "2015-03-19 05:25:34.560115"], ["updated_at", "2015-03-19 05:25:34.560115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.561784"], ["user_id", "5e4bb6a2-cdf8-11e4-8c83-705681abff85"], ["created_at", "2015-03-19 05:25:34.562552"], ["updated_at", "2015-03-19 05:25:34.562552"], ["token", "lE3AwBxOwEO-YH5_yeFXQEMgaAdCTF0_s1j-4Fg47SQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.565998"], ["updated_at", "2015-03-19 05:25:34.565998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e4bb6a2-cdf8-11e4-8c83-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e4d56ce-cdf8-11e4-8dfb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e4bb6a2-cdf8-11e4-8c83-705681abff85"], ["organization_id", "5e4d56ce-cdf8-11e4-8dfb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.570972"], ["updated_at", "2015-03-19 05:25:34.570972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e4c6e94-cdf8-11e4-bd23-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e4d56ce-cdf8-11e4-8dfb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e4c6e94-cdf8-11e4-bd23-705681abff85"], ["organization_id", "5e4d56ce-cdf8-11e4-8dfb-705681abff85"], ["created_at", "2015-03-19 05:25:34.574367"], ["updated_at", "2015-03-19 05:25:34.574367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5e4d56ce-cdf8-11e4-8dfb-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"5e4d56ce-cdf8-11e4-8dfb-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:34.579191' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lE3AwBxOwEO-YH5_yeFXQEMgaAdCTF0_s1j-4Fg47SQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:34.581035"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:34.582703"], ["id", "5e4cd1cc-cdf8-11e4-b3f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5e4d56ce-cdf8-11e4-8dfb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e4bb6a2-cdf8-11e4-8c83-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5e4bb6a2-cdf8-11e4-8c83-705681abff85' LIMIT 1 [["organization_id", "5e4d56ce-cdf8-11e4-8dfb-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "5e4d56ce-cdf8-11e4-8dfb-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('5e4bb6a2-cdf8-11e4-8c83-705681abff85', '5e4c6e94-cdf8-11e4-bd23-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('5e4d56ce-cdf8-11e4-8dfb-705681abff85') Completed 200 OK in 14ms (Views: 4.0ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$JUo/GEEpcsu39Cm.Y3de8uyo5MCYv5FbRYTNcDKHA7zpn/PnuefZW"], ["created_at", "2015-03-19 05:25:34.601716"], ["updated_at", "2015-03-19 05:25:34.601716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$vTpxyOHaY0EBpg6QS.aliO1CalfkaNAcF2cfjuTvcd/bb2sKnAvIC"], ["created_at", "2015-03-19 05:25:34.607385"], ["updated_at", "2015-03-19 05:25:34.607385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.610375"], ["user_id", "5e52c898-cdf8-11e4-a8e9-705681abff85"], ["created_at", "2015-03-19 05:25:34.611750"], ["updated_at", "2015-03-19 05:25:34.611750"], ["token", "jrcv6gK_OqEx8lMp4seesgZ8DzyQor_osMn2rGgKD20"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.615221"], ["updated_at", "2015-03-19 05:25:34.615221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e52c898-cdf8-11e4-a8e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e54da20-cdf8-11e4-b735-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e52c898-cdf8-11e4-a8e9-705681abff85"], ["organization_id", "5e54da20-cdf8-11e4-b735-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.619067"], ["updated_at", "2015-03-19 05:25:34.619067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e53bf50-cdf8-11e4-ac6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e54da20-cdf8-11e4-b735-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e53bf50-cdf8-11e4-ac6b-705681abff85"], ["organization_id", "5e54da20-cdf8-11e4-b735-705681abff85"], ["created_at", "2015-03-19 05:25:34.622207"], ["updated_at", "2015-03-19 05:25:34.622207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$DIry1BJUlgf9DBoB0UUq9O67P0ynNDUNv//.BvCH1vPVD4.lbDjA2"], ["created_at", "2015-03-19 05:25:34.626569"], ["updated_at", "2015-03-19 05:25:34.626569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.628026"], ["user_id", "5e568e88-cdf8-11e4-97a5-705681abff85"], ["created_at", "2015-03-19 05:25:34.628785"], ["updated_at", "2015-03-19 05:25:34.628785"], ["token", "3c1lNpGnlDJjTFlQYsqRJuUWeSXf5S3Qjc_w6ZRl52g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '5e54da20-cdf8-11e4-b735-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "5e54da20-cdf8-11e4-b735-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.633346"], ["updated_at", "2015-03-19 05:25:34.633346"], ["token", "0AJeo_GxawpRbQeb4mPeDFpBPzrXJ4l5RHfCoMWva3w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$DX//EV97LIfRpp4buD.BO.6C61J.T9A3wGx2sPYZBazE/4c82fdIm"], ["created_at", "2015-03-19 05:25:34.644809"], ["updated_at", "2015-03-19 05:25:34.644809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$jeUwxo09i0os/P/XA6D2HulGMdFCiJrIybKak/6yYhA82pWLQDzVm"], ["created_at", "2015-03-19 05:25:34.650230"], ["updated_at", "2015-03-19 05:25:34.650230"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.652577"], ["user_id", "5e5959d8-cdf8-11e4-99cf-705681abff85"], ["created_at", "2015-03-19 05:25:34.653440"], ["updated_at", "2015-03-19 05:25:34.653440"], ["token", "P2YhcHO9bP-WLt1K2zzGtytf8RnciT06-oE9Y8QT-co"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.656819"], ["updated_at", "2015-03-19 05:25:34.656819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e5959d8-cdf8-11e4-99cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e5b2ae2-cdf8-11e4-96b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e5959d8-cdf8-11e4-99cf-705681abff85"], ["organization_id", "5e5b2ae2-cdf8-11e4-96b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.659957"], ["updated_at", "2015-03-19 05:25:34.659957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e5a3b00-cdf8-11e4-85d4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e5b2ae2-cdf8-11e4-96b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e5a3b00-cdf8-11e4-85d4-705681abff85"], ["organization_id", "5e5b2ae2-cdf8-11e4-96b6-705681abff85"], ["created_at", "2015-03-19 05:25:34.663051"], ["updated_at", "2015-03-19 05:25:34.663051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$jKCYH9wHOCEgEw3IWO/hA.YNsW5CXBfazBPoEma5Uj143MoYmgKIa"], ["created_at", "2015-03-19 05:25:34.667641"], ["updated_at", "2015-03-19 05:25:34.667641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.669133"], ["user_id", "5e5cd432-cdf8-11e4-a21b-705681abff85"], ["created_at", "2015-03-19 05:25:34.669886"], ["updated_at", "2015-03-19 05:25:34.669886"], ["token", "FmASyOQVUl9Xp-Vf4TwX8nh2Qmz45f5bIAKtfGL48J8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '5e5b2ae2-cdf8-11e4-96b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "5e5b2ae2-cdf8-11e4-96b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.673486"], ["updated_at", "2015-03-19 05:25:34.673486"], ["token", "JIDg1UTpi0mzT3s4Gq4Qdh52Ge0r8jcw5FaYPUgBf2U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5e5b2ae2-cdf8-11e4-96b6-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"JIDg1UTpi0mzT3s4Gq4Qdh52Ge0r8jcw5FaYPUgBf2U", "organization_id"=>"5e5b2ae2-cdf8-11e4-96b6-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:34.679021' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FmASyOQVUl9Xp-Vf4TwX8nh2Qmz45f5bIAKtfGL48J8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:34.680473"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:34.681441"], ["id", "5e5d3094-cdf8-11e4-a2a5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5e5b2ae2-cdf8-11e4-96b6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e5cd432-cdf8-11e4-a21b-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "JIDg1UTpi0mzT3s4Gq4Qdh52Ge0r8jcw5FaYPUgBf2U"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e5b2ae2-cdf8-11e4-96b6-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e5cd432-cdf8-11e4-a21b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e5b2ae2-cdf8-11e4-96b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "5e5b2ae2-cdf8-11e4-96b6-705681abff85"], ["member_id", "5e5cd432-cdf8-11e4-a21b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.689319"], ["updated_at", "2015-03-19 05:25:34.689319"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "5e5dbafa-cdf8-11e4-9ff5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$.NVWfWSvS5ngcddlQ4Pkg.XTeMFki3frpe4CKIakTAspjeHF5DkQi"], ["created_at", "2015-03-19 05:25:34.698397"], ["updated_at", "2015-03-19 05:25:34.698397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$MtbX2NcULQoA1FVDNPscxubGIu0cIXZa8lxR67Kj1ukz1Cn34Jig."], ["created_at", "2015-03-19 05:25:34.702451"], ["updated_at", "2015-03-19 05:25:34.702451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.703899"], ["user_id", "5e618522-cdf8-11e4-afa6-705681abff85"], ["created_at", "2015-03-19 05:25:34.704640"], ["updated_at", "2015-03-19 05:25:34.704640"], ["token", "3f9RVWWJj35wYQcXokGlknmuMd0X00LpYYM3xKYnNms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.708002"], ["updated_at", "2015-03-19 05:25:34.708002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e618522-cdf8-11e4-afa6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e6300fa-cdf8-11e4-9f38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e618522-cdf8-11e4-afa6-705681abff85"], ["organization_id", "5e6300fa-cdf8-11e4-9f38-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.711396"], ["updated_at", "2015-03-19 05:25:34.711396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e622054-cdf8-11e4-b963-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e6300fa-cdf8-11e4-9f38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e622054-cdf8-11e4-b963-705681abff85"], ["organization_id", "5e6300fa-cdf8-11e4-9f38-705681abff85"], ["created_at", "2015-03-19 05:25:34.714230"], ["updated_at", "2015-03-19 05:25:34.714230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$4D0YdnyHylNgoQ2jKb2hlOq5RvE/L71Osxmghvu619H6.3d2SF0Ju"], ["created_at", "2015-03-19 05:25:34.719859"], ["updated_at", "2015-03-19 05:25:34.719859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.721368"], ["user_id", "5e64c9bc-cdf8-11e4-800a-705681abff85"], ["created_at", "2015-03-19 05:25:34.722113"], ["updated_at", "2015-03-19 05:25:34.722113"], ["token", "bznsKEsNrGco0UDQ05NBNbT3DhJpoUk3Cc9hxGuaM5g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '5e6300fa-cdf8-11e4-9f38-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "5e6300fa-cdf8-11e4-9f38-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.725589"], ["updated_at", "2015-03-19 05:25:34.725589"], ["token", "1lbxu2rZmtYqw69Z34-9oTipDE-ZRlo9FhuqU2Fc2Eg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5e6300fa-cdf8-11e4-9f38-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"5e6300fa-cdf8-11e4-9f38-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:34.731134' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bznsKEsNrGco0UDQ05NBNbT3DhJpoUk3Cc9hxGuaM5g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:34.732666"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:34.733643"], ["id", "5e652844-cdf8-11e4-8896-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5e6300fa-cdf8-11e4-9f38-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e64c9bc-cdf8-11e4-800a-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$BCmWY9ZpzhmZhGusg0RFBOyNSohRNbSceNAhe38DPLX5npP3epjKi"], ["created_at", "2015-03-19 05:25:34.746217"], ["updated_at", "2015-03-19 05:25:34.746217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$Izz3PrGEgWz4iMngE0K9W.b3nkumj2bFefDMEGMJ/rHy4GmcQ0t2G"], ["created_at", "2015-03-19 05:25:34.750289"], ["updated_at", "2015-03-19 05:25:34.750289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.751815"], ["user_id", "5e68d138-cdf8-11e4-b395-705681abff85"], ["created_at", "2015-03-19 05:25:34.752534"], ["updated_at", "2015-03-19 05:25:34.752534"], ["token", "8KTmqn9MjX3taAuG9ao5wKuYwbR89bu4B2yE-pRGudI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.755871"], ["updated_at", "2015-03-19 05:25:34.755871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e68d138-cdf8-11e4-b395-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e6a4996-cdf8-11e4-92c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e68d138-cdf8-11e4-b395-705681abff85"], ["organization_id", "5e6a4996-cdf8-11e4-92c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.759255"], ["updated_at", "2015-03-19 05:25:34.759255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e697214-cdf8-11e4-88d4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e6a4996-cdf8-11e4-92c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e697214-cdf8-11e4-88d4-705681abff85"], ["organization_id", "5e6a4996-cdf8-11e4-92c8-705681abff85"], ["created_at", "2015-03-19 05:25:34.762125"], ["updated_at", "2015-03-19 05:25:34.762125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$OSHrvaH/PofhnxG5zV5DReK3oOVtD/eLeGsvru3e8.OoU9CB33/ua"], ["created_at", "2015-03-19 05:25:34.771541"], ["updated_at", "2015-03-19 05:25:34.771541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$2U/fcgGlloaCTWUb.u0TceWiESbGvcN60bA/mnKBSNNiqU7zKUKae"], ["created_at", "2015-03-19 05:25:34.776940"], ["updated_at", "2015-03-19 05:25:34.776940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:34.779086"], ["user_id", "5e6caf2e-cdf8-11e4-8a83-705681abff85"], ["created_at", "2015-03-19 05:25:34.779937"], ["updated_at", "2015-03-19 05:25:34.779937"], ["token", "9kMcwWn0BwqwlvLKXCKVgiEsFyXsS7Dy4CemtCmhI8k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.783343"], ["updated_at", "2015-03-19 05:25:34.783343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e6caf2e-cdf8-11e4-8a83-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e6e7c3c-cdf8-11e4-bf32-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e6caf2e-cdf8-11e4-8a83-705681abff85"], ["organization_id", "5e6e7c3c-cdf8-11e4-bf32-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.787018"], ["updated_at", "2015-03-19 05:25:34.787018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e6d88ae-cdf8-11e4-af97-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e6e7c3c-cdf8-11e4-bf32-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e6d88ae-cdf8-11e4-af97-705681abff85"], ["organization_id", "5e6e7c3c-cdf8-11e4-bf32-705681abff85"], ["created_at", "2015-03-19 05:25:34.791309"], ["updated_at", "2015-03-19 05:25:34.791309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/5e6fbd5e-cdf8-11e4-a0c7-705681abff85" for 127.0.0.1 at 2015-03-18 22:25:34 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"5e6fbd5e-cdf8-11e4-a0c7-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:34.796025' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9kMcwWn0BwqwlvLKXCKVgiEsFyXsS7Dy4CemtCmhI8k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:34.797531"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:34.798511"], ["id", "5e6e0040-cdf8-11e4-895e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "5e6fbd5e-cdf8-11e4-a0c7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e6caf2e-cdf8-11e4-8a83-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e6e7c3c-cdf8-11e4-bf32-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5e6caf2e-cdf8-11e4-8a83-705681abff85' LIMIT 1 [["organization_id", "5e6e7c3c-cdf8-11e4-bf32-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e6d88ae-cdf8-11e4-af97-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e6d88ae-cdf8-11e4-af97-705681abff85' AND "clubhouse_memberships"."id" != '5e6fbd5e-cdf8-11e4-a0c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e6e7c3c-cdf8-11e4-bf32-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:25:34.805542"], ["id", "5e6fbd5e-cdf8-11e4-a0c7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.813045"], ["updated_at", "2015-03-19 05:25:34.813045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '5e73036a-cdf8-11e4-87b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "5e73036a-cdf8-11e4-87b8-705681abff85"], ["created_at", "2015-03-19 05:25:34.816350"], ["updated_at", "2015-03-19 05:25:34.816350"], ["token", "JXU-N2jHfJesLPZJ1No404rUuRJ80w5V0pd56NxAT6Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.6ms) Date: Wed, 18 Mar 2015 22:25:34 -0700 From: from@example.com To: john@example.com Message-ID: <550a5dcec82ae_e3af3fcc22433be4283d5@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/JXU-N2jHfJesLPZJ1No404rUuRJ80w5V0pd56NxAT6Q?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.824436"], ["updated_at", "2015-03-19 05:25:34.824436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '5e74c312-cdf8-11e4-9922-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "5e74c312-cdf8-11e4-9922-705681abff85"], ["created_at", "2015-03-19 05:25:34.829924"], ["updated_at", "2015-03-19 05:25:34.829924"], ["token", "e60xPZvYBocCCbrGVINSYTxiZYdqe6dnuZIUGN20C0k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.6ms) Date: Wed, 18 Mar 2015 22:25:34 -0700 From: from@example.com To: john@example.com Message-ID: <550a5dcecb759_e3af3fcc22433be428464@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/e60xPZvYBocCCbrGVINSYTxiZYdqe6dnuZIUGN20C0k?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.838005"], ["updated_at", "2015-03-19 05:25:34.838005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '5e76d21a-cdf8-11e4-97b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "5e76d21a-cdf8-11e4-97b4-705681abff85"], ["created_at", "2015-03-19 05:25:34.841228"], ["updated_at", "2015-03-19 05:25:34.841228"], ["token", "2-Y5GYygRg-On3b8xB2NiNelpJcr_TCDqyHufLqC9ac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.8ms) Date: Wed, 18 Mar 2015 22:25:34 -0700 From: from@example.com To: john@example.com Message-ID: <550a5dcece476_e3af3fcc22433be4285a2@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/2-Y5GYygRg-On3b8xB2NiNelpJcr_TCDqyHufLqC9ac?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.849694"], ["updated_at", "2015-03-19 05:25:34.849694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '5e789adc-cdf8-11e4-894c-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "5e789adc-cdf8-11e4-894c-705681abff85"], ["created_at", "2015-03-19 05:25:34.853387"], ["updated_at", "2015-03-19 05:25:34.853387"], ["token", "4xuufejbYwYsfoMdwCRchRXCtdgnGvhKIk-V9MV41zE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.6ms) Date: Wed, 18 Mar 2015 22:25:34 -0700 From: from@example.com To: john@example.com Message-ID: <550a5dced2d74_e3af3fcc22433be4286ea@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/4xuufejbYwYsfoMdwCRchRXCtdgnGvhKIk-V9MV41zE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$hTkIXDI.BlW/sXsYai9/ie2PjFGollz5cSMzhOf7cY9G3kKmpWiqS"], ["created_at", "2015-03-19 05:25:34.869839"], ["updated_at", "2015-03-19 05:25:34.869839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.873421"], ["updated_at", "2015-03-19 05:25:34.873421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e7bae34-cdf8-11e4-8bcb-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e7c38f4-cdf8-11e4-90c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e7bae34-cdf8-11e4-8bcb-705681abff85"], ["organization_id", "5e7c38f4-cdf8-11e4-90c6-705681abff85"], ["created_at", "2015-03-19 05:25:34.876137"], ["updated_at", "2015-03-19 05:25:34.876137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e7bae34-cdf8-11e4-8bcb-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e7c38f4-cdf8-11e4-90c6-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e7bae34-cdf8-11e4-8bcb-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e7c38f4-cdf8-11e4-90c6-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5e7c38f4-cdf8-11e4-90c6-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e7bae34-cdf8-11e4-8bcb-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e7c38f4-cdf8-11e4-90c6-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$M5hqRAG3APIhfeizC46XX.Hw2oMSnLErcznQechl0Iodf8zrKw4MO"], ["created_at", "2015-03-19 05:25:34.900378"], ["updated_at", "2015-03-19 05:25:34.900378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$2tiTXht3xtLuLdolYQE9o.KkHjd4f6XWXlbJaWXIN2un.a4FyLcme"], ["created_at", "2015-03-19 05:25:34.905364"], ["updated_at", "2015-03-19 05:25:34.905364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.908714"], ["updated_at", "2015-03-19 05:25:34.908714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e811ed2-cdf8-11e4-aa44-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e819dbc-cdf8-11e4-84bf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e811ed2-cdf8-11e4-aa44-705681abff85"], ["organization_id", "5e819dbc-cdf8-11e4-84bf-705681abff85"], ["created_at", "2015-03-19 05:25:34.911997"], ["updated_at", "2015-03-19 05:25:34.911997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5e8058bc-cdf8-11e4-a13a-705681abff85' LIMIT 1 [["organization_id", "5e819dbc-cdf8-11e4-84bf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$YoDW5OJYPPr8e9LEaFJble5iKlgY.pzC9nydzTUNvWiHwk3juiPKe"], ["created_at", "2015-03-19 05:25:34.919458"], ["updated_at", "2015-03-19 05:25:34.919458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$71wiGTGToupPNDMAc6J3..aeQO9u5XLKH6FmAN95biBdKC.hFbXXu"], ["created_at", "2015-03-19 05:25:34.923651"], ["updated_at", "2015-03-19 05:25:34.923651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.926546"], ["updated_at", "2015-03-19 05:25:34.926546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e83e162-cdf8-11e4-8a06-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e84582c-cdf8-11e4-88cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e83e162-cdf8-11e4-8a06-705681abff85"], ["organization_id", "5e84582c-cdf8-11e4-88cf-705681abff85"], ["created_at", "2015-03-19 05:25:34.929843"], ["updated_at", "2015-03-19 05:25:34.929843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$DNV4AWRaa3luPrsXsmh7KOiDU4NOH4m3ACWDYB2PeOSMmSkjjr0Lq"], ["created_at", "2015-03-19 05:25:34.935591"], ["updated_at", "2015-03-19 05:25:34.935591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$1EIOmM8ub2kc7zmfEzNuKe6lKLkSIFfqd2y.ffwheCj7TCGjNn0E6"], ["created_at", "2015-03-19 05:25:34.939957"], ["updated_at", "2015-03-19 05:25:34.939957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.943319"], ["updated_at", "2015-03-19 05:25:34.943319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e866964-cdf8-11e4-9717-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e86e25e-cdf8-11e4-a2b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e866964-cdf8-11e4-9717-705681abff85"], ["organization_id", "5e86e25e-cdf8-11e4-a2b3-705681abff85"], ["created_at", "2015-03-19 05:25:34.946311"], ["updated_at", "2015-03-19 05:25:34.946311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5e85b654-cdf8-11e4-baca-705681abff85' LIMIT 1 [["organization_id", "5e86e25e-cdf8-11e4-a2b3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$3f8Uheyre2G7mFwFSca5Gul7uxbHHKclasI/9qpp0gAeyfuBSA9IS"], ["created_at", "2015-03-19 05:25:34.953363"], ["updated_at", "2015-03-19 05:25:34.953363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$S.y2IEuFK5AcqaO6zchfru/Y8y30VpHAoXIm/6bSIwGMz3O5xem42"], ["created_at", "2015-03-19 05:25:34.957929"], ["updated_at", "2015-03-19 05:25:34.957929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.960873"], ["updated_at", "2015-03-19 05:25:34.960873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e891d80-cdf8-11e4-a6b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e898f7c-cdf8-11e4-a4c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e891d80-cdf8-11e4-a6b0-705681abff85"], ["organization_id", "5e898f7c-cdf8-11e4-a4c0-705681abff85"], ["created_at", "2015-03-19 05:25:34.963982"], ["updated_at", "2015-03-19 05:25:34.963982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5e8876a0-cdf8-11e4-abd5-705681abff85' LIMIT 1 [["organization_id", "5e898f7c-cdf8-11e4-a4c0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$dIOK42miWSmksdMaVNBDc.Qe1.SeXdkujLzBUcVjtRO0gVSPmo856"], ["created_at", "2015-03-19 05:25:34.970963"], ["updated_at", "2015-03-19 05:25:34.970963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.974344"], ["updated_at", "2015-03-19 05:25:34.974344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5e8b1eb4-cdf8-11e4-a0e0-705681abff85' LIMIT 1 [["organization_id", "5e8b9f4c-cdf8-11e4-9d9a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$vXN7HkrZAr0bHQuRzxPkZ.H1iDwYk6yg7UK15AeEx3Oj43EBxtYSS"], ["created_at", "2015-03-19 05:25:34.981228"], ["updated_at", "2015-03-19 05:25:34.981228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:34.984195"], ["updated_at", "2015-03-19 05:25:34.984195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e8cacde-cdf8-11e4-9880-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e8d1dfe-cdf8-11e4-a774-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e8cacde-cdf8-11e4-9880-705681abff85"], ["organization_id", "5e8d1dfe-cdf8-11e4-a774-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:34.987677"], ["updated_at", "2015-03-19 05:25:34.987677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$AH/PaOlHkuJIueCVG6uBzeXsIXfPXP6wlbQjOvqSWXycMTo352yky"], ["created_at", "2015-03-19 05:25:34.992734"], ["updated_at", "2015-03-19 05:25:34.992734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e8e701e-cdf8-11e4-8b13-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e8d1dfe-cdf8-11e4-a774-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e8e701e-cdf8-11e4-8b13-705681abff85"], ["organization_id", "5e8d1dfe-cdf8-11e4-a774-705681abff85"], ["created_at", "2015-03-19 05:25:34.995991"], ["updated_at", "2015-03-19 05:25:34.995991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5e8cacde-cdf8-11e4-9880-705681abff85' LIMIT 1 [["organization_id", "5e8d1dfe-cdf8-11e4-a774-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$31yYICagST7QSyRHKUyvpOxneTxm001u9PS7FeTSrzILKCGQk2qte"], ["created_at", "2015-03-19 05:25:35.002701"], ["updated_at", "2015-03-19 05:25:35.002701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.006606"], ["updated_at", "2015-03-19 05:25:35.006606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e8ff56a-cdf8-11e4-806f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e908da4-cdf8-11e4-b538-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e8ff56a-cdf8-11e4-806f-705681abff85"], ["organization_id", "5e908da4-cdf8-11e4-b538-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:35.010068"], ["updated_at", "2015-03-19 05:25:35.010068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$5qZbSVeSD/BFhZ3D1uADnuckiHCD0xPJgkj3ybYHaty0SBKmZOxmW"], ["created_at", "2015-03-19 05:25:35.015837"], ["updated_at", "2015-03-19 05:25:35.015837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e91fe14-cdf8-11e4-bf39-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e908da4-cdf8-11e4-b538-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e91fe14-cdf8-11e4-bf39-705681abff85"], ["organization_id", "5e908da4-cdf8-11e4-b538-705681abff85"], ["created_at", "2015-03-19 05:25:35.019629"], ["updated_at", "2015-03-19 05:25:35.019629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$Km70Grm8MdRxbhC6ygo.E.RvtNDqmAX3gp3E/myGxtsxUb9OPZK06"], ["created_at", "2015-03-19 05:25:35.025311"], ["updated_at", "2015-03-19 05:25:35.025311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.028389"], ["updated_at", "2015-03-19 05:25:35.028389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e93684e-cdf8-11e4-be72-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e93dce8-cdf8-11e4-a480-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e93684e-cdf8-11e4-be72-705681abff85"], ["organization_id", "5e93dce8-cdf8-11e4-a480-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:35.031414"], ["updated_at", "2015-03-19 05:25:35.031414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$MnVDnZ5qZGYwswMPkvRvnupiO8Kzn6VncggtPmfRleBb5LVcaaLeO"], ["created_at", "2015-03-19 05:25:35.035860"], ["updated_at", "2015-03-19 05:25:35.035860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e950294-cdf8-11e4-9fb7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e93dce8-cdf8-11e4-a480-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e950294-cdf8-11e4-9fb7-705681abff85"], ["organization_id", "5e93dce8-cdf8-11e4-a480-705681abff85"], ["created_at", "2015-03-19 05:25:35.039009"], ["updated_at", "2015-03-19 05:25:35.039009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5e93684e-cdf8-11e4-be72-705681abff85' LIMIT 1 [["organization_id", "5e93dce8-cdf8-11e4-a480-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$we7o3U8IofawxqrgyWvBXeoxi33GzeDamhde3YU5tCrKErbCkGlR."], ["created_at", "2015-03-19 05:25:35.046714"], ["updated_at", "2015-03-19 05:25:35.046714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.049718"], ["updated_at", "2015-03-19 05:25:35.049718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e96abda-cdf8-11e4-8361-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e971dcc-cdf8-11e4-bc88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e96abda-cdf8-11e4-8361-705681abff85"], ["organization_id", "5e971dcc-cdf8-11e4-bc88-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:35.053004"], ["updated_at", "2015-03-19 05:25:35.053004"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$4D1oPcWpRwtdz34iORHlGe0svaZZ0sCHy0ftV9hRRIlNEWLUo3WJ6"], ["created_at", "2015-03-19 05:25:35.058219"], ["updated_at", "2015-03-19 05:25:35.058219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e986d80-cdf8-11e4-bc01-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e971dcc-cdf8-11e4-bc88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e986d80-cdf8-11e4-bc01-705681abff85"], ["organization_id", "5e971dcc-cdf8-11e4-bc88-705681abff85"], ["created_at", "2015-03-19 05:25:35.061400"], ["updated_at", "2015-03-19 05:25:35.061400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5e96abda-cdf8-11e4-8361-705681abff85' LIMIT 1 [["organization_id", "5e971dcc-cdf8-11e4-bc88-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$ZdmaLw8sNydXTnx4tKevP.GmZ5qAURp/sYORAjdBR9GlCnYneghU6"], ["created_at", "2015-03-19 05:25:35.068207"], ["updated_at", "2015-03-19 05:25:35.068207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.071270"], ["updated_at", "2015-03-19 05:25:35.071270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e99f42a-cdf8-11e4-b344-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e9a67e8-cdf8-11e4-abe2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e99f42a-cdf8-11e4-b344-705681abff85"], ["organization_id", "5e9a67e8-cdf8-11e4-abe2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:35.074327"], ["updated_at", "2015-03-19 05:25:35.074327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5e99f42a-cdf8-11e4-b344-705681abff85' LIMIT 1 [["organization_id", "5e9a67e8-cdf8-11e4-abe2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$IMta3o3mgLTt/VFCsJTYFOW4jArySkzpq3uR4Ev1pg2VogmBNyYNi"], ["created_at", "2015-03-19 05:25:35.081210"], ["updated_at", "2015-03-19 05:25:35.081210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.084218"], ["updated_at", "2015-03-19 05:25:35.084218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e9bee7e-cdf8-11e4-9a8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e9c6156-cdf8-11e4-a100-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e9bee7e-cdf8-11e4-9a8a-705681abff85"], ["organization_id", "5e9c6156-cdf8-11e4-a100-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:35.087426"], ["updated_at", "2015-03-19 05:25:35.087426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5e9bee7e-cdf8-11e4-9a8a-705681abff85' LIMIT 1 [["organization_id", "5e9c6156-cdf8-11e4-a100-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$KR.U.LyeoI9OWU1gKs6NE.pCWNwlEB2Q8UQwS3tXEjrPYqjzaMKOO"], ["created_at", "2015-03-19 05:25:35.096483"], ["updated_at", "2015-03-19 05:25:35.096483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.099929"], ["updated_at", "2015-03-19 05:25:35.099929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e9e48c2-cdf8-11e4-acd1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5e9ec8ec-cdf8-11e4-97c3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e9e48c2-cdf8-11e4-acd1-705681abff85"], ["organization_id", "5e9ec8ec-cdf8-11e4-97c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:35.103315"], ["updated_at", "2015-03-19 05:25:35.103315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$hMAUgLayXbqMJWDMw.4BEeJN6azSkl.HR3mEx9UOLtC9QGoSd8mFi"], ["created_at", "2015-03-19 05:25:35.109851"], ["updated_at", "2015-03-19 05:25:35.109851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.112912"], ["updated_at", "2015-03-19 05:25:35.112912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ea04d7a-cdf8-11e4-aae7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ea0c8b8-cdf8-11e4-982b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ea04d7a-cdf8-11e4-aae7-705681abff85"], ["organization_id", "5ea0c8b8-cdf8-11e4-982b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:35.116317"], ["updated_at", "2015-03-19 05:25:35.116317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ea04d7a-cdf8-11e4-aae7-705681abff85' LIMIT 1 [["organization_id", "5ea0c8b8-cdf8-11e4-982b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$ktngV1DTFjqxrA6XkCwOLukPxC8uZMiKaUXRn4Uv1W/Odf4Asimea"], ["created_at", "2015-03-19 05:25:35.123572"], ["updated_at", "2015-03-19 05:25:35.123572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.126805"], ["updated_at", "2015-03-19 05:25:35.126805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ea26538-cdf8-11e4-8635-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ea2e292-cdf8-11e4-a498-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ea26538-cdf8-11e4-8635-705681abff85"], ["organization_id", "5ea2e292-cdf8-11e4-a498-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:35.129966"], ["updated_at", "2015-03-19 05:25:35.129966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5ea26538-cdf8-11e4-8635-705681abff85' LIMIT 1 [["organization_id", "5ea2e292-cdf8-11e4-a498-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$AyM/0giR5CpsTcyUoK3vTu7X97Nxrdl2Ief/YwWcdA9wZECeav3K."], ["created_at", "2015-03-19 05:25:35.136927"], ["updated_at", "2015-03-19 05:25:35.136927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.140367"], ["updated_at", "2015-03-19 05:25:35.140367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ea46f04-cdf8-11e4-9dc1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ea5104e-cdf8-11e4-be2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ea46f04-cdf8-11e4-9dc1-705681abff85"], ["organization_id", "5ea5104e-cdf8-11e4-be2f-705681abff85"], ["created_at", "2015-03-19 05:25:35.144262"], ["updated_at", "2015-03-19 05:25:35.144262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ea46f04-cdf8-11e4-9dc1-705681abff85' LIMIT 1 [["organization_id", "5ea5104e-cdf8-11e4-be2f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$6PpmJgudrMmQb9h24Flx8.dy/zJD5ATaLWzR0dMX7LjaNaYPBDqjW"], ["created_at", "2015-03-19 05:25:35.150880"], ["updated_at", "2015-03-19 05:25:35.150880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.154088"], ["updated_at", "2015-03-19 05:25:35.154088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ea68fd2-cdf8-11e4-be61-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ea717a4-cdf8-11e4-ac5c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ea68fd2-cdf8-11e4-be61-705681abff85"], ["organization_id", "5ea717a4-cdf8-11e4-ac5c-705681abff85"], ["created_at", "2015-03-19 05:25:35.158835"], ["updated_at", "2015-03-19 05:25:35.158835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$tux3A/MO.W4w3Ms8EuC3L.NZohiH4o7N9qjH3wAerz2lbELdy/h5y"], ["created_at", "2015-03-19 05:25:35.164615"], ["updated_at", "2015-03-19 05:25:35.164615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.167641"], ["updated_at", "2015-03-19 05:25:35.167641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ea8a830-cdf8-11e4-b940-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ea920b2-cdf8-11e4-a595-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ea8a830-cdf8-11e4-b940-705681abff85"], ["organization_id", "5ea920b2-cdf8-11e4-a595-705681abff85"], ["created_at", "2015-03-19 05:25:35.170837"], ["updated_at", "2015-03-19 05:25:35.170837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ea8a830-cdf8-11e4-b940-705681abff85' LIMIT 1 [["organization_id", "5ea920b2-cdf8-11e4-a595-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (4.0ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$vGyNQaSq8UTLb11THzZuc.6vHM6ArfUXw83qyAPK7eLHXGqcgy4T2"], ["created_at", "2015-03-19 05:25:35.195112"], ["updated_at", "2015-03-19 05:25:35.195112"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (9.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.202021"], ["updated_at", "2015-03-19 05:25:35.202021"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ead6910-cdf8-11e4-8283-705681abff85' AND "clubhouse_memberships"."organization_id" = '5eaea33e-cdf8-11e4-b56a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ead6910-cdf8-11e4-8283-705681abff85"], ["organization_id", "5eaea33e-cdf8-11e4-b56a-705681abff85"], ["created_at", "2015-03-19 05:25:35.219036"], ["updated_at", "2015-03-19 05:25:35.219036"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5ead6910-cdf8-11e4-8283-705681abff85' LIMIT 1 [["organization_id", "5eaea33e-cdf8-11e4-b56a-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$iJmu/Xhll/UjnJAaE5vSS.TTr6OL/Jb7XR9yau48Le7mE0LoIIHGO"], ["created_at", "2015-03-19 05:25:35.235911"], ["updated_at", "2015-03-19 05:25:35.235911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:35.241226"], ["updated_at", "2015-03-19 05:25:35.241226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5eb39c0e-cdf8-11e4-9a4b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5eb46c4c-cdf8-11e4-9510-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5eb39c0e-cdf8-11e4-9a4b-705681abff85"], ["organization_id", "5eb46c4c-cdf8-11e4-9510-705681abff85"], ["created_at", "2015-03-19 05:25:35.246647"], ["updated_at", "2015-03-19 05:25:35.246647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5eb39c0e-cdf8-11e4-9a4b-705681abff85' LIMIT 1 [["organization_id", "5eb46c4c-cdf8-11e4-9510-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (26.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:59.706652"], ["updated_at", "2015-03-19 05:25:59.706652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '6d4d7c62-cdf8-11e4-bbe8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "6d4d7c62-cdf8-11e4-bbe8-705681abff85"], ["created_at", "2015-03-19 05:25:59.753520"], ["updated_at", "2015-03-19 05:25:59.753520"], ["token", "VkBzCFzK59ndyCN09aTTa3BdtXFK0mhdRWdRIpNbx6o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 30.3ms Sent mail to john@example.com (7.6ms) Date: Wed, 18 Mar 2015 22:25:59 -0700 From: from@example.com To: john@example.com Message-ID: <550a5de7c18bc_e3b43ff2b884dbf06767d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/VkBzCFzK59ndyCN09aTTa3BdtXFK0mhdRWdRIpNbx6o?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:59.801688"], ["updated_at", "2015-03-19 05:25:59.801688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '6d57fe3a-cdf8-11e4-b007-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "6d57fe3a-cdf8-11e4-b007-705681abff85"], ["created_at", "2015-03-19 05:25:59.805274"], ["updated_at", "2015-03-19 05:25:59.805274"], ["token", "PkwITAbPNWoLfaegd9scdis6kZJndKt2JMV9-_D64-I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.8ms) Date: Wed, 18 Mar 2015 22:25:59 -0700 From: from@example.com To: john@example.com Message-ID: <550a5de7c5859_e3b43ff2b884dbf06774@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/PkwITAbPNWoLfaegd9scdis6kZJndKt2JMV9-_D64-I?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:59.813704"], ["updated_at", "2015-03-19 05:25:59.813704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '6d59d020-cdf8-11e4-b766-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "6d59d020-cdf8-11e4-b766-705681abff85"], ["created_at", "2015-03-19 05:25:59.817688"], ["updated_at", "2015-03-19 05:25:59.817688"], ["token", "Vk4-_7anAOlppbl1vDd40w0rqRsD9BlDniRM4HB-rtY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Wed, 18 Mar 2015 22:25:59 -0700 From: from@example.com To: john@example.com Message-ID: <550a5de7c873d_e3b43ff2b884dbf0678f4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/Vk4-_7anAOlppbl1vDd40w0rqRsD9BlDniRM4HB-rtY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:59.827377"], ["updated_at", "2015-03-19 05:25:59.827377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '6d5be78e-cdf8-11e4-b56d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "6d5be78e-cdf8-11e4-b56d-705681abff85"], ["created_at", "2015-03-19 05:25:59.830741"], ["updated_at", "2015-03-19 05:25:59.830741"], ["token", "MCq4VFNU2hHsvRPGRxNxV_TGEpuoG9B6vwlRdPI0U0E"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.6ms) Date: Wed, 18 Mar 2015 22:25:59 -0700 From: from@example.com To: john@example.com Message-ID: <550a5de7cbc68_e3b43ff2b884dbf067968@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/MCq4VFNU2hHsvRPGRxNxV_TGEpuoG9B6vwlRdPI0U0E?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$1O.wBUdUd0BzNEcHRvZBxuteVmppNjULOrxMWxRkC9JS9hAWJ86bu"], ["created_at", "2015-03-19 05:25:59.845673"], ["updated_at", "2015-03-19 05:25:59.845673"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:59.854749"], ["user_id", "6d5ebe96-cdf8-11e4-9b23-705681abff85"], ["created_at", "2015-03-19 05:25:59.856104"], ["updated_at", "2015-03-19 05:25:59.856104"], ["token", "cuAr22vaj21sIn940NwqnbT16Ws14Z2NgXYbenTm3PU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:59.860226"], ["updated_at", "2015-03-19 05:25:59.860226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d5ebe96-cdf8-11e4-9b23-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d60e86a-cdf8-11e4-a22d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d5ebe96-cdf8-11e4-9b23-705681abff85"], ["organization_id", "6d60e86a-cdf8-11e4-a22d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:59.871280"], ["updated_at", "2015-03-19 05:25:59.871280"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$4P0syHcGaGIUorCLI/xG8elWN6UoP845u7jrtvI4j/TE/oz4Jxmp6"], ["created_at", "2015-03-19 05:25:59.876951"], ["updated_at", "2015-03-19 05:25:59.876951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:59.880265"], ["updated_at", "2015-03-19 05:25:59.880265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d63771a-cdf8-11e4-b24b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d63fa0a-cdf8-11e4-a877-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6d63771a-cdf8-11e4-b24b-705681abff85"], ["organization_id", "6d63fa0a-cdf8-11e4-a877-705681abff85"], ["created_at", "2015-03-19 05:25:59.883398"], ["updated_at", "2015-03-19 05:25:59.883398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:25:59 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:25:59.916809' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cuAr22vaj21sIn940NwqnbT16Ws14Z2NgXYbenTm3PU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:25:59.923569"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:25:59.924733"], ["id", "6d605ecc-cdf8-11e4-b63c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d5ebe96-cdf8-11e4-9b23-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "6d5ebe96-cdf8-11e4-9b23-705681abff85"]] Completed 200 OK in 30ms (Views: 3.6ms | ActiveRecord: 1.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$/2Iv/C1g8h2mP/d8y2gDoOiLTrjpxmo9KaPQlRamBspCqe5IsNfMa"], ["created_at", "2015-03-19 05:25:59.954760"], ["updated_at", "2015-03-19 05:25:59.954760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:59.956380"], ["user_id", "6d6f568e-cdf8-11e4-b194-705681abff85"], ["created_at", "2015-03-19 05:25:59.957191"], ["updated_at", "2015-03-19 05:25:59.957191"], ["token", "rtnc7IofEUcD7E3D8aAseHTf4z0yq4Af1Rh7GTFaFIw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:59.960643"], ["updated_at", "2015-03-19 05:25:59.960643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d6f568e-cdf8-11e4-b194-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d703b1c-cdf8-11e4-8829-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d6f568e-cdf8-11e4-b194-705681abff85"], ["organization_id", "6d703b1c-cdf8-11e4-8829-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:59.963832"], ["updated_at", "2015-03-19 05:25:59.963832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$ohNoR9rnQJXxKpzXja7JIOACcxH.IaJiWxuOsK/05YaVCHZ5eeZli"], ["created_at", "2015-03-19 05:25:59.969494"], ["updated_at", "2015-03-19 05:25:59.969494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:59.974283"], ["updated_at", "2015-03-19 05:25:59.974283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d71af6a-cdf8-11e4-97cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d724f38-cdf8-11e4-b05b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6d71af6a-cdf8-11e4-97cd-705681abff85"], ["organization_id", "6d724f38-cdf8-11e4-b05b-705681abff85"], ["created_at", "2015-03-19 05:25:59.977388"], ["updated_at", "2015-03-19 05:25:59.977388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-18 22:25:59 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$cpE90yjE9QpvdGkbJgs3jO1sOFW10iz.Uzplq64RYhtsBMMdr0KXG"], ["created_at", "2015-03-19 05:25:59.987961"], ["updated_at", "2015-03-19 05:25:59.987961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:25:59.989641"], ["user_id", "6d746ade-cdf8-11e4-a8b8-705681abff85"], ["created_at", "2015-03-19 05:25:59.990591"], ["updated_at", "2015-03-19 05:25:59.990591"], ["token", "o9FoMsIVzZhR3TRcdQFGLOZki4lRvSBZuNC1Ac4WRr8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:25:59.993973"], ["updated_at", "2015-03-19 05:25:59.993973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d746ade-cdf8-11e4-a8b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d75505c-cdf8-11e4-89ab-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d746ade-cdf8-11e4-a8b8-705681abff85"], ["organization_id", "6d75505c-cdf8-11e4-89ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:25:59.998262"], ["updated_at", "2015-03-19 05:25:59.998262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-5" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.003872' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o9FoMsIVzZhR3TRcdQFGLOZki4lRvSBZuNC1Ac4WRr8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.005834"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.006948"], ["id", "6d74d5a0-cdf8-11e4-be70-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-5"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d746ade-cdf8-11e4-a8b8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d746ade-cdf8-11e4-a8b8-705681abff85' LIMIT 1 [["organization_id", "6d75505c-cdf8-11e4-89ab-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "6d75505c-cdf8-11e4-89ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (41.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$e4K/9OeQ.k6cGiSONA9OD.RQYAj3CcK78vEecjASJwT/Cg6ZxH.96"], ["created_at", "2015-03-19 05:26:00.032272"], ["updated_at", "2015-03-19 05:26:00.032272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.076390"], ["user_id", "6d8185ac-cdf8-11e4-8052-705681abff85"], ["created_at", "2015-03-19 05:26:00.077787"], ["updated_at", "2015-03-19 05:26:00.077787"], ["token", "tjaOKcTpd92HlYVkQoBTMrZIgSCKjCckJqJL_bFqZ1g"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.084090"], ["updated_at", "2015-03-19 05:26:00.084090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d8185ac-cdf8-11e4-8052-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d831160-cdf8-11e4-8a8f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d8185ac-cdf8-11e4-8052-705681abff85"], ["organization_id", "6d831160-cdf8-11e4-8a8f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.087292"], ["updated_at", "2015-03-19 05:26:00.087292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$.jC5Xs4oWfAi4nl577mXv.dtOM1M4Gf9HubGryyjcjm.TmJErZQIC"], ["created_at", "2015-03-19 05:26:00.098608"], ["updated_at", "2015-03-19 05:26:00.098608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.100910"], ["user_id", "6d855b96-cdf8-11e4-a8b9-705681abff85"], ["created_at", "2015-03-19 05:26:00.101693"], ["updated_at", "2015-03-19 05:26:00.101693"], ["token", "14iarBxqOuYcfDnqqkqbtZdWauRLQ4w5Tj5QV71KsNM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.105383"], ["updated_at", "2015-03-19 05:26:00.105383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d855b96-cdf8-11e4-a8b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d865122-cdf8-11e4-8f47-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d855b96-cdf8-11e4-a8b9-705681abff85"], ["organization_id", "6d865122-cdf8-11e4-8f47-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.108604"], ["updated_at", "2015-03-19 05:26:00.108604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/6d865122-cdf8-11e4-8f47-705681abff85" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"6d865122-cdf8-11e4-8f47-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.113439' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "14iarBxqOuYcfDnqqkqbtZdWauRLQ4w5Tj5QV71KsNM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.114836"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.115759"], ["id", "6d85c7a2-cdf8-11e4-bbeb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6d865122-cdf8-11e4-8f47-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d855b96-cdf8-11e4-a8b9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d855b96-cdf8-11e4-a8b9-705681abff85' LIMIT 1 [["organization_id", "6d865122-cdf8-11e4-8f47-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "6d865122-cdf8-11e4-8f47-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$GLCsqX8Pi.NCWZydu8y55OgPzAcSqfoq2c1FDFG.eczPohUV2JB4K"], ["created_at", "2015-03-19 05:26:00.126252"], ["updated_at", "2015-03-19 05:26:00.126252"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.128378"], ["user_id", "6d898360-cdf8-11e4-b452-705681abff85"], ["created_at", "2015-03-19 05:26:00.129264"], ["updated_at", "2015-03-19 05:26:00.129264"], ["token", "0HB_Azr3CJ3LbNCvRdzC60wKHxvxERyJzJR1tmlCt2E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.133564"], ["updated_at", "2015-03-19 05:26:00.133564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d898360-cdf8-11e4-b452-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d8aa90c-cdf8-11e4-aebe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d898360-cdf8-11e4-b452-705681abff85"], ["organization_id", "6d8aa90c-cdf8-11e4-aebe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.137492"], ["updated_at", "2015-03-19 05:26:00.137492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$IqaVdbmWCe/.o.Mk8MghtOl5YzdgXjAJ0JCOOv4BV8Vx.K0iIDKrK"], ["created_at", "2015-03-19 05:26:00.147716"], ["updated_at", "2015-03-19 05:26:00.147716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.149325"], ["user_id", "6d8cc99e-cdf8-11e4-ac5e-705681abff85"], ["created_at", "2015-03-19 05:26:00.150094"], ["updated_at", "2015-03-19 05:26:00.150094"], ["token", "OCQsdVCIZ886moNJDF9otDBMr7GXRhYTxsT6y2pCBtw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.153391"], ["updated_at", "2015-03-19 05:26:00.153391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d8cc99e-cdf8-11e4-ac5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d8da8e6-cdf8-11e4-8229-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d8cc99e-cdf8-11e4-ac5e-705681abff85"], ["organization_id", "6d8da8e6-cdf8-11e4-8229-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.163711"], ["updated_at", "2015-03-19 05:26:00.163711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (16.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$fXS/l74hZ2Oo33pYimyiHOlybiV9VHvTFIISkbq/xmh2Vxrpz4U7u"], ["created_at", "2015-03-19 05:26:00.173423"], ["updated_at", "2015-03-19 05:26:00.173423"]]  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.197034"], ["user_id", "6d92c43e-cdf8-11e4-bacc-705681abff85"], ["created_at", "2015-03-19 05:26:00.198680"], ["updated_at", "2015-03-19 05:26:00.198680"], ["token", "t7HzlxvI-pJDYbWfL6PwUvnwK6OmmsIjVSrSPQ-i5r4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.205917"], ["updated_at", "2015-03-19 05:26:00.205917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d92c43e-cdf8-11e4-bacc-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d95bbbc-cdf8-11e4-bbbd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d92c43e-cdf8-11e4-bacc-705681abff85"], ["organization_id", "6d95bbbc-cdf8-11e4-bbbd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.211133"], ["updated_at", "2015-03-19 05:26:00.211133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/6d95bbbc-cdf8-11e4-bbbd-705681abff85" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"6d95bbbc-cdf8-11e4-bbbd-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.221375' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "t7HzlxvI-pJDYbWfL6PwUvnwK6OmmsIjVSrSPQ-i5r4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.223281"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.224875"], ["id", "6d94bd20-cdf8-11e4-9898-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6d95bbbc-cdf8-11e4-bbbd-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d92c43e-cdf8-11e4-bacc-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d92c43e-cdf8-11e4-bacc-705681abff85' LIMIT 1 [["organization_id", "6d95bbbc-cdf8-11e4-bbbd-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6d95bbbc-cdf8-11e4-bbbd-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$E4EToujEyMfO3okXMx7KQuX0otL9UGGvaonDfdIwijh4uRAKlLSBW"], ["created_at", "2015-03-19 05:26:00.252252"], ["updated_at", "2015-03-19 05:26:00.252252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.255158"], ["user_id", "6d9cd690-cdf8-11e4-853e-705681abff85"], ["created_at", "2015-03-19 05:26:00.256580"], ["updated_at", "2015-03-19 05:26:00.256580"], ["token", "qE-N-LH80H5hDZOnoPH2JkjSW_htqCQnVfbD1B8J8yA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.262666"], ["updated_at", "2015-03-19 05:26:00.262666"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d9cd690-cdf8-11e4-853e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6d9e5e0c-cdf8-11e4-b170-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d9cd690-cdf8-11e4-853e-705681abff85"], ["organization_id", "6d9e5e0c-cdf8-11e4-b170-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.266895"], ["updated_at", "2015-03-19 05:26:00.266895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/6d9e5e0c-cdf8-11e4-b170-705681abff85" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"6d9e5e0c-cdf8-11e4-b170-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.271365' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qE-N-LH80H5hDZOnoPH2JkjSW_htqCQnVfbD1B8J8yA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.272729"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.273869"], ["id", "6d9d8c2a-cdf8-11e4-8708-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6d9e5e0c-cdf8-11e4-b170-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d9cd690-cdf8-11e4-853e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6d9cd690-cdf8-11e4-853e-705681abff85' LIMIT 1 [["organization_id", "6d9e5e0c-cdf8-11e4-b170-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6d9e5e0c-cdf8-11e4-b170-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:26:00.280690"], ["id", "6d9e5e0c-cdf8-11e4-b170-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Nud0bUBAat/1JyyT4GJ/Ve84oBj4yjCPtz5pLfRe2HtUTqzT60fj6"], ["created_at", "2015-03-19 05:26:00.289274"], ["updated_at", "2015-03-19 05:26:00.289274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.290811"], ["user_id", "6da2613c-cdf8-11e4-8986-705681abff85"], ["created_at", "2015-03-19 05:26:00.291552"], ["updated_at", "2015-03-19 05:26:00.291552"], ["token", "bTcfPe5HX-YYUTuWijoHcdUV_0z1Yr_WlkVVmlDqVOE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.294836"], ["updated_at", "2015-03-19 05:26:00.294836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6da2613c-cdf8-11e4-8986-705681abff85' AND "clubhouse_memberships"."organization_id" = '6da33800-cdf8-11e4-b19d-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6da2613c-cdf8-11e4-8986-705681abff85"], ["organization_id", "6da33800-cdf8-11e4-b19d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.298100"], ["updated_at", "2015-03-19 05:26:00.298100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-12" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-12", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.304962' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bTcfPe5HX-YYUTuWijoHcdUV_0z1Yr_WlkVVmlDqVOE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.306423"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.307347"], ["id", "6da2be3e-cdf8-11e4-ae3c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6da2613c-cdf8-11e4-8986-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6da2613c-cdf8-11e4-8986-705681abff85' LIMIT 1 [["organization_id", "6da33800-cdf8-11e4-b19d-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$8xWvJTdHI46Wgpv6SLgt/u7DhlaWntPIeTyzpcmKrNuZmXZsGCobC"], ["created_at", "2015-03-19 05:26:00.317713"], ["updated_at", "2015-03-19 05:26:00.317713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.319243"], ["user_id", "6da6b80e-cdf8-11e4-a892-705681abff85"], ["created_at", "2015-03-19 05:26:00.320654"], ["updated_at", "2015-03-19 05:26:00.320654"], ["token", "wavgHR7JfKbD2nQha0cuRKvVSJZDkLg79TTjf3dHC_k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.324751"], ["updated_at", "2015-03-19 05:26:00.324751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6da6b80e-cdf8-11e4-a892-705681abff85' AND "clubhouse_memberships"."organization_id" = '6da7c8a2-cdf8-11e4-b9ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6da6b80e-cdf8-11e4-a892-705681abff85"], ["organization_id", "6da7c8a2-cdf8-11e4-b9ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.327850"], ["updated_at", "2015-03-19 05:26:00.327850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$OuXAFXq3diKyrFL2VnxPkOPF.6QI7dRMNImdfFUR4QOt.WbhCZMgq"], ["created_at", "2015-03-19 05:26:00.338011"], ["updated_at", "2015-03-19 05:26:00.338011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.339612"], ["user_id", "6da9d160-cdf8-11e4-a66e-705681abff85"], ["created_at", "2015-03-19 05:26:00.340397"], ["updated_at", "2015-03-19 05:26:00.340397"], ["token", "IvcOEVck_2rOh1uCNRid8WmmDjQvgzZ64O3KC6IUsIU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.343834"], ["updated_at", "2015-03-19 05:26:00.343834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6da9d160-cdf8-11e4-a66e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6daab2d8-cdf8-11e4-a99c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6da9d160-cdf8-11e4-a66e-705681abff85"], ["organization_id", "6daab2d8-cdf8-11e4-a99c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.346995"], ["updated_at", "2015-03-19 05:26:00.346995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$/4grEH7FEi2riP2e.u2uvetCDGilSQQNJuaJkZJg1cT0zUO4GvaEe"], ["created_at", "2015-03-19 05:26:00.356910"], ["updated_at", "2015-03-19 05:26:00.356910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.358508"], ["user_id", "6dacb38a-cdf8-11e4-8103-705681abff85"], ["created_at", "2015-03-19 05:26:00.359243"], ["updated_at", "2015-03-19 05:26:00.359243"], ["token", "rLiPsPeV-JTRM0AyQ3WwG_a1tXANbONEGG7iHBUcZoU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.362381"], ["updated_at", "2015-03-19 05:26:00.362381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dacb38a-cdf8-11e4-8103-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dad85e4-cdf8-11e4-920c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dacb38a-cdf8-11e4-8103-705681abff85"], ["organization_id", "6dad85e4-cdf8-11e4-920c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.365597"], ["updated_at", "2015-03-19 05:26:00.365597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-15" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-15", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.370960' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rLiPsPeV-JTRM0AyQ3WwG_a1tXANbONEGG7iHBUcZoU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.372340"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.373281"], ["id", "6dad12e4-cdf8-11e4-b987-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-15"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6dacb38a-cdf8-11e4-8103-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6dacb38a-cdf8-11e4-8103-705681abff85' LIMIT 1 [["organization_id", "6dad85e4-cdf8-11e4-920c-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6dad85e4-cdf8-11e4-920c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$9tuzC01gW.GzN/ZfIBL1YujyLMa9vA11YGB15NH5I4Oogu0pJfB6i"], ["created_at", "2015-03-19 05:26:00.387000"], ["updated_at", "2015-03-19 05:26:00.387000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.388599"], ["user_id", "6db14ba2-cdf8-11e4-ba3b-705681abff85"], ["created_at", "2015-03-19 05:26:00.389608"], ["updated_at", "2015-03-19 05:26:00.389608"], ["token", "BIQlDDLMpEHIeb5_pUBJJzunAtbeO7FgjDbxFxlJuYw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.393241"], ["updated_at", "2015-03-19 05:26:00.393241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6db14ba2-cdf8-11e4-ba3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6db23bd4-cdf8-11e4-9bf8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6db14ba2-cdf8-11e4-ba3b-705681abff85"], ["organization_id", "6db23bd4-cdf8-11e4-9bf8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.396377"], ["updated_at", "2015-03-19 05:26:00.396377"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-16" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-16", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.400791' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BIQlDDLMpEHIeb5_pUBJJzunAtbeO7FgjDbxFxlJuYw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.402160"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.403103"], ["id", "6db1c0a0-cdf8-11e4-a4fd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6db14ba2-cdf8-11e4-ba3b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6db14ba2-cdf8-11e4-ba3b-705681abff85' LIMIT 1 [["organization_id", "6db23bd4-cdf8-11e4-9bf8-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6db23bd4-cdf8-11e4-9bf8-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-19 05:26:00.409457"], ["id", "6db23bd4-cdf8-11e4-9bf8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$wBBlvo4eJXGG/eYnKipfiefn929v9nKEj28wbCSifm5MYr.RnuE/i"], ["created_at", "2015-03-19 05:26:00.417056"], ["updated_at", "2015-03-19 05:26:00.417056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.419018"], ["user_id", "6db5e784-cdf8-11e4-a2c4-705681abff85"], ["created_at", "2015-03-19 05:26:00.420147"], ["updated_at", "2015-03-19 05:26:00.420147"], ["token", "iSb-CGQT0eRa2pnmQ1O9-gOsRYhD9-CA8-0d4DkNxw8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.423660"], ["updated_at", "2015-03-19 05:26:00.423660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6db5e784-cdf8-11e4-a2c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6db6dfcc-cdf8-11e4-9166-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6db5e784-cdf8-11e4-a2c4-705681abff85"], ["organization_id", "6db6dfcc-cdf8-11e4-9166-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.426732"], ["updated_at", "2015-03-19 05:26:00.426732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/6db6dfcc-cdf8-11e4-9166-705681abff85" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"6db6dfcc-cdf8-11e4-9166-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.431348' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iSb-CGQT0eRa2pnmQ1O9-gOsRYhD9-CA8-0d4DkNxw8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.433051"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.434251"], ["id", "6db66754-cdf8-11e4-a97d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6db6dfcc-cdf8-11e4-9166-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6db5e784-cdf8-11e4-a2c4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6db5e784-cdf8-11e4-a2c4-705681abff85' LIMIT 1 [["organization_id", "6db6dfcc-cdf8-11e4-9166-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$xQPntPI2bXbSEsxAiaExheOk0ChDEteitOmq9F6ISwy6Ek7ltMVuG"], ["created_at", "2015-03-19 05:26:00.445233"], ["updated_at", "2015-03-19 05:26:00.445233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.446757"], ["user_id", "6dba2d8a-cdf8-11e4-84df-705681abff85"], ["created_at", "2015-03-19 05:26:00.447606"], ["updated_at", "2015-03-19 05:26:00.447606"], ["token", "gyAsc5WyX0RzAveqbR0pveDibNhjlZ7ru5CyBBK0ppI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.451027"], ["updated_at", "2015-03-19 05:26:00.451027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dba2d8a-cdf8-11e4-84df-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dbb1402-cdf8-11e4-a093-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dba2d8a-cdf8-11e4-84df-705681abff85"], ["organization_id", "6dbb1402-cdf8-11e4-a093-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.454358"], ["updated_at", "2015-03-19 05:26:00.454358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$UTz7YGtgHDCU25Y03YbO7esOdT8XmeDw/TFYPIHtY2xuPOZYMr8Aa"], ["created_at", "2015-03-19 05:26:00.464151"], ["updated_at", "2015-03-19 05:26:00.464151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.465788"], ["user_id", "6dbd118a-cdf8-11e4-afb2-705681abff85"], ["created_at", "2015-03-19 05:26:00.466565"], ["updated_at", "2015-03-19 05:26:00.466565"], ["token", "3QAdd_5s8Wm0E8hhUn_bLCam4KTl63oh5gwP8soR2Ls"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.469853"], ["updated_at", "2015-03-19 05:26:00.469853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dbd118a-cdf8-11e4-afb2-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dbdec2c-cdf8-11e4-8cd7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dbd118a-cdf8-11e4-afb2-705681abff85"], ["organization_id", "6dbdec2c-cdf8-11e4-8cd7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.472926"], ["updated_at", "2015-03-19 05:26:00.472926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$D4Q5lZDBWOn82sTJyRTjP.cILYt5OhRLw3j4w/ra5Yy0/q5KRyinu"], ["created_at", "2015-03-19 05:26:00.483111"], ["updated_at", "2015-03-19 05:26:00.483111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.485250"], ["user_id", "6dbff9e0-cdf8-11e4-b03f-705681abff85"], ["created_at", "2015-03-19 05:26:00.486227"], ["updated_at", "2015-03-19 05:26:00.486227"], ["token", "-MhwqIvpfASA_nqF1ehvJJBZ44bA-Eg9yWhiKASpW7s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.490176"], ["updated_at", "2015-03-19 05:26:00.490176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dbff9e0-cdf8-11e4-b03f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dc10a74-cdf8-11e4-9d08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dbff9e0-cdf8-11e4-b03f-705681abff85"], ["organization_id", "6dc10a74-cdf8-11e4-9d08-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.493627"], ["updated_at", "2015-03-19 05:26:00.493627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.498219' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-MhwqIvpfASA_nqF1ehvJJBZ44bA-Eg9yWhiKASpW7s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.500045"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.501043"], ["id", "6dc07938-cdf8-11e4-b356-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$64n5TXcQEB2LWNtQV.f1gOpCtKajzYLBxSP84fYgP4PYwCj2uTMse"], ["created_at", "2015-03-19 05:26:00.508495"], ["updated_at", "2015-03-19 05:26:00.508495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.510041"], ["user_id", "6dc3d47a-cdf8-11e4-a7d6-705681abff85"], ["created_at", "2015-03-19 05:26:00.510787"], ["updated_at", "2015-03-19 05:26:00.510787"], ["token", "xxZLUwo5-0AfgSdm80nKrAcyzgfsirTGydmlRVEMCJk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.513933"], ["updated_at", "2015-03-19 05:26:00.513933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dc3d47a-cdf8-11e4-a7d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dc4a670-cdf8-11e4-8d85-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dc3d47a-cdf8-11e4-a7d6-705681abff85"], ["organization_id", "6dc4a670-cdf8-11e4-8d85-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.517253"], ["updated_at", "2015-03-19 05:26:00.517253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-21" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-21", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.522225' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xxZLUwo5-0AfgSdm80nKrAcyzgfsirTGydmlRVEMCJk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.523600"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.524611"], ["id", "6dc4323a-cdf8-11e4-a921-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6dc3d47a-cdf8-11e4-a7d6-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$99hMF9MRCPz170nXP2tQJeTmlkyyoDrGIRg.nijNmp9.TLhNm7iqq"], ["created_at", "2015-03-19 05:26:00.533141"], ["updated_at", "2015-03-19 05:26:00.533141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.535208"], ["user_id", "6dc79a06-cdf8-11e4-a787-705681abff85"], ["created_at", "2015-03-19 05:26:00.536139"], ["updated_at", "2015-03-19 05:26:00.536139"], ["token", "qXXD_y51pG2I7nzx4Hl3feQK9RvY7q6X-j6Vx1a93v4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.539712"], ["updated_at", "2015-03-19 05:26:00.539712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dc79a06-cdf8-11e4-a787-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dc8951e-cdf8-11e4-ac8e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dc79a06-cdf8-11e4-a787-705681abff85"], ["organization_id", "6dc8951e-cdf8-11e4-ac8e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.542877"], ["updated_at", "2015-03-19 05:26:00.542877"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$4tZ89XdJ/VnhDyO.IqWZtOi/VO97UhaHe46eOU85aJb7CVlWOCdBm"], ["created_at", "2015-03-19 05:26:00.556435"], ["updated_at", "2015-03-19 05:26:00.556435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.558198"], ["user_id", "6dcb25f4-cdf8-11e4-b9eb-705681abff85"], ["created_at", "2015-03-19 05:26:00.559015"], ["updated_at", "2015-03-19 05:26:00.559015"], ["token", "nLUYGB5loFjzN_azL1SPCqFvPS-gUxCR1NR2x480NuA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.562274"], ["updated_at", "2015-03-19 05:26:00.562274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dcb25f4-cdf8-11e4-b9eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dcc0690-cdf8-11e4-8031-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dcb25f4-cdf8-11e4-b9eb-705681abff85"], ["organization_id", "6dcc0690-cdf8-11e4-8031-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.565504"], ["updated_at", "2015-03-19 05:26:00.565504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.570303' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nLUYGB5loFjzN_azL1SPCqFvPS-gUxCR1NR2x480NuA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.571829"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.573587"], ["id", "6dcb8fd0-cdf8-11e4-9b23-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6dcb25f4-cdf8-11e4-b9eb-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$7UoTWpqtUXPURDkWje3sBOZblcJIGFi8hYdxr8fVSiwhY2glfcPkm"], ["created_at", "2015-03-19 05:26:00.588195"], ["updated_at", "2015-03-19 05:26:00.588195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.589806"], ["user_id", "6dcfffca-cdf8-11e4-8dfa-705681abff85"], ["created_at", "2015-03-19 05:26:00.590622"], ["updated_at", "2015-03-19 05:26:00.590622"], ["token", "yP1iXNKufo5O1OFb_Q3XboYJbjxre9JX1jOgI8nFu4I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.593796"], ["updated_at", "2015-03-19 05:26:00.593796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dcfffca-cdf8-11e4-8dfa-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dd0d580-cdf8-11e4-8273-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dcfffca-cdf8-11e4-8dfa-705681abff85"], ["organization_id", "6dd0d580-cdf8-11e4-8273-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.596846"], ["updated_at", "2015-03-19 05:26:00.596846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.601660' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "yP1iXNKufo5O1OFb_Q3XboYJbjxre9JX1jOgI8nFu4I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.603195"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.604206"], ["id", "6dd061a4-cdf8-11e4-8e75-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6dcfffca-cdf8-11e4-8dfa-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.608808"], ["updated_at", "2015-03-19 05:26:00.608808"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6dd3236c-cdf8-11e4-a5cb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dcfffca-cdf8-11e4-8dfa-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dd3236c-cdf8-11e4-a5cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dcfffca-cdf8-11e4-8dfa-705681abff85"], ["admin", "t"], ["organization_id", "6dd3236c-cdf8-11e4-a5cb-705681abff85"], ["created_at", "2015-03-19 05:26:00.612878"], ["updated_at", "2015-03-19 05:26:00.612878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$s8QMlBLNNwwO5fMCkEktA.GMmz52FAOjqPhmMY8/J6BsbCToAenHu"], ["created_at", "2015-03-19 05:26:00.621215"], ["updated_at", "2015-03-19 05:26:00.621215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$x99jyCWUbOhqkOliS4ESLOeXZxAvxEwe2.TK37IgAAy57ovkt9oIi"], ["created_at", "2015-03-19 05:26:00.625527"], ["updated_at", "2015-03-19 05:26:00.625527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.626957"], ["user_id", "6dd50d58-cdf8-11e4-b84a-705681abff85"], ["created_at", "2015-03-19 05:26:00.627956"], ["updated_at", "2015-03-19 05:26:00.627956"], ["token", "sgHr1PIOJs0yLBsSbNvTanB0e37whzluO-ZFALfX0-M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.631596"], ["updated_at", "2015-03-19 05:26:00.631596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dd50d58-cdf8-11e4-b84a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dd69b78-cdf8-11e4-868f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dd50d58-cdf8-11e4-b84a-705681abff85"], ["organization_id", "6dd69b78-cdf8-11e4-868f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.635618"], ["updated_at", "2015-03-19 05:26:00.635618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dd5ad6c-cdf8-11e4-8c30-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dd69b78-cdf8-11e4-868f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6dd5ad6c-cdf8-11e4-8c30-705681abff85"], ["organization_id", "6dd69b78-cdf8-11e4-868f-705681abff85"], ["created_at", "2015-03-19 05:26:00.638868"], ["updated_at", "2015-03-19 05:26:00.638868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/6dd69b78-cdf8-11e4-868f-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"6dd69b78-cdf8-11e4-868f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.651465' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sgHr1PIOJs0yLBsSbNvTanB0e37whzluO-ZFALfX0-M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.652906"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.653938"], ["id", "6dd61dc4-cdf8-11e4-9227-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6dd69b78-cdf8-11e4-868f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6dd50d58-cdf8-11e4-b84a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6dd50d58-cdf8-11e4-b84a-705681abff85' LIMIT 1 [["organization_id", "6dd69b78-cdf8-11e4-868f-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "6dd69b78-cdf8-11e4-868f-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('6dd50d58-cdf8-11e4-b84a-705681abff85', '6dd5ad6c-cdf8-11e4-8c30-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('6dd69b78-cdf8-11e4-868f-705681abff85') Completed 200 OK in 21ms (Views: 11.9ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$fK/JAGCxluM17.UdTU5cwO9uriJkY7eUHrfeYmX3zaabEcUcfFQIa"], ["created_at", "2015-03-19 05:26:00.679060"], ["updated_at", "2015-03-19 05:26:00.679060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$Vb7WotzGF2OrcXol8u9YMe4lTmMvrmHQ5RLcXxOyy8WR9C.sequBG"], ["created_at", "2015-03-19 05:26:00.683650"], ["updated_at", "2015-03-19 05:26:00.683650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.686089"], ["user_id", "6ddddd5c-cdf8-11e4-90a2-705681abff85"], ["created_at", "2015-03-19 05:26:00.686966"], ["updated_at", "2015-03-19 05:26:00.686966"], ["token", "6I0Pzj0Js5S1cwnOQ0euVl-BHCQWLnZxQ5Sh-6j5CbQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.690483"], ["updated_at", "2015-03-19 05:26:00.690483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ddddd5c-cdf8-11e4-90a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ddf9796-cdf8-11e4-9505-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ddddd5c-cdf8-11e4-90a2-705681abff85"], ["organization_id", "6ddf9796-cdf8-11e4-9505-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.693889"], ["updated_at", "2015-03-19 05:26:00.693889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ddea30e-cdf8-11e4-a722-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ddf9796-cdf8-11e4-9505-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6ddea30e-cdf8-11e4-a722-705681abff85"], ["organization_id", "6ddf9796-cdf8-11e4-9505-705681abff85"], ["created_at", "2015-03-19 05:26:00.696776"], ["updated_at", "2015-03-19 05:26:00.696776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$fNyJbhqOyC4Pgch7W7paC.OF0daSVaMaXDa.wglqnlJ1bQFjSG1Bu"], ["created_at", "2015-03-19 05:26:00.706721"], ["updated_at", "2015-03-19 05:26:00.706721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$dwzzElz//biAkWGE/t1H5uOSd5PGTol4bL/WjHjClnwJVat/cdPwW"], ["created_at", "2015-03-19 05:26:00.711491"], ["updated_at", "2015-03-19 05:26:00.711491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.713093"], ["user_id", "6de214c6-cdf8-11e4-88b1-705681abff85"], ["created_at", "2015-03-19 05:26:00.713846"], ["updated_at", "2015-03-19 05:26:00.713846"], ["token", "zl_P6pyjuNNjjhSbKwlIslU-AUxl7t7HdMUTTqLgwRg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.717366"], ["updated_at", "2015-03-19 05:26:00.717366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6de214c6-cdf8-11e4-88b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '6de3b79a-cdf8-11e4-943c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6de214c6-cdf8-11e4-88b1-705681abff85"], ["organization_id", "6de3b79a-cdf8-11e4-943c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.727360"], ["updated_at", "2015-03-19 05:26:00.727360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6de2cfce-cdf8-11e4-9558-705681abff85' AND "clubhouse_memberships"."organization_id" = '6de3b79a-cdf8-11e4-943c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6de2cfce-cdf8-11e4-9558-705681abff85"], ["organization_id", "6de3b79a-cdf8-11e4-943c-705681abff85"], ["created_at", "2015-03-19 05:26:00.731330"], ["updated_at", "2015-03-19 05:26:00.731330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/6de5d30e-cdf8-11e4-bb1f-705681abff85" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"6de5d30e-cdf8-11e4-bb1f-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.735937' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zl_P6pyjuNNjjhSbKwlIslU-AUxl7t7HdMUTTqLgwRg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.737450"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.738461"], ["id", "6de33342-cdf8-11e4-af97-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "6de5d30e-cdf8-11e4-bb1f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6de214c6-cdf8-11e4-88b1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6de3b79a-cdf8-11e4-943c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6de214c6-cdf8-11e4-88b1-705681abff85' LIMIT 1 [["organization_id", "6de3b79a-cdf8-11e4-943c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6de2cfce-cdf8-11e4-9558-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6de2cfce-cdf8-11e4-9558-705681abff85' AND "clubhouse_memberships"."id" != '6de5d30e-cdf8-11e4-bb1f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6de3b79a-cdf8-11e4-943c-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:26:00.746262"], ["id", "6de5d30e-cdf8-11e4-bb1f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$R.T1tSFJnhXp2LxZlBQ.ru2DNjpSKAvYjAqCl/TCOSLhap8ySjaou"], ["created_at", "2015-03-19 05:26:00.754530"], ["updated_at", "2015-03-19 05:26:00.754530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$amQMND9foBIkmSIS8EKFEuzP3kTVEzM/q0HPAiyXPUud0aFsCNrha"], ["created_at", "2015-03-19 05:26:00.758683"], ["updated_at", "2015-03-19 05:26:00.758683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.760177"], ["user_id", "6de96028-cdf8-11e4-86fa-705681abff85"], ["created_at", "2015-03-19 05:26:00.761083"], ["updated_at", "2015-03-19 05:26:00.761083"], ["token", "sOla403tHvsy_o6jXWQJD2qY2wywGiJbEfE2-5yMBq0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.764582"], ["updated_at", "2015-03-19 05:26:00.764582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6de96028-cdf8-11e4-86fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '6deae63c-cdf8-11e4-aba4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6de96028-cdf8-11e4-86fa-705681abff85"], ["organization_id", "6deae63c-cdf8-11e4-aba4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.767833"], ["updated_at", "2015-03-19 05:26:00.767833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6de9ff6a-cdf8-11e4-93fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '6deae63c-cdf8-11e4-aba4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6de9ff6a-cdf8-11e4-93fe-705681abff85"], ["organization_id", "6deae63c-cdf8-11e4-aba4-705681abff85"], ["created_at", "2015-03-19 05:26:00.770853"], ["updated_at", "2015-03-19 05:26:00.770853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$cBmZhnsI2CZvTNHISWhY5e1mcrgMr8c4ISqPEx1IuYCG6rdSKrOx2"], ["created_at", "2015-03-19 05:26:00.780194"], ["updated_at", "2015-03-19 05:26:00.780194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$ce/tBT1ZJMIcMBAf4l67BOwNWKu3mRxdWtou20kek.WzKO9S9pofm"], ["created_at", "2015-03-19 05:26:00.784567"], ["updated_at", "2015-03-19 05:26:00.784567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.786536"], ["user_id", "6ded4b84-cdf8-11e4-9354-705681abff85"], ["created_at", "2015-03-19 05:26:00.787317"], ["updated_at", "2015-03-19 05:26:00.787317"], ["token", "-LqwzOvn0SN3fYS2JIz6vVCQ3GxPobkGUH6rBsdpcG0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.790701"], ["updated_at", "2015-03-19 05:26:00.790701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ded4b84-cdf8-11e4-9354-705681abff85' AND "clubhouse_memberships"."organization_id" = '6deee188-cdf8-11e4-a5e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ded4b84-cdf8-11e4-9354-705681abff85"], ["organization_id", "6deee188-cdf8-11e4-a5e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.793777"], ["updated_at", "2015-03-19 05:26:00.793777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dedfda4-cdf8-11e4-b1b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '6deee188-cdf8-11e4-a5e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6dedfda4-cdf8-11e4-b1b8-705681abff85"], ["organization_id", "6deee188-cdf8-11e4-a5e4-705681abff85"], ["created_at", "2015-03-19 05:26:00.796595"], ["updated_at", "2015-03-19 05:26:00.796595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$g1pVtIj55onNwFGmcgukeOAYuQDBGYxsZJY/3Y3svehHrfqCYD74m"], ["created_at", "2015-03-19 05:26:00.801315"], ["updated_at", "2015-03-19 05:26:00.801315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.803453"], ["user_id", "6df08cae-cdf8-11e4-a172-705681abff85"], ["created_at", "2015-03-19 05:26:00.804595"], ["updated_at", "2015-03-19 05:26:00.804595"], ["token", "UYGGBFWsBjC7npFFt8oYiOwRkQ4or5ftzRTkYI8tAb8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6deee188-cdf8-11e4-a5e4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "6deee188-cdf8-11e4-a5e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.809559"], ["updated_at", "2015-03-19 05:26:00.809559"], ["token", "ocYT1-FTQnd2j_C8-eZZeAKmz_2UZqwTr-PUsXnJyfY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$pHz7OjQIx4eBWraE7axmW.BohNlTYbHkstRlqKdiZPOI0BDRSaJO6"], ["created_at", "2015-03-19 05:26:00.819885"], ["updated_at", "2015-03-19 05:26:00.819885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$mfdpFPJBhmJh4IFDwvr1PetEn/TPvJ58jKmstMLD0/4EFvL6d1Pw6"], ["created_at", "2015-03-19 05:26:00.824491"], ["updated_at", "2015-03-19 05:26:00.824491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.825975"], ["user_id", "6df35966-cdf8-11e4-804d-705681abff85"], ["created_at", "2015-03-19 05:26:00.826725"], ["updated_at", "2015-03-19 05:26:00.826725"], ["token", "jw3QIjRh-CeUJOqJF7xvZviGfBj8i7ySaaUQ75d2uX8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.832887"], ["updated_at", "2015-03-19 05:26:00.832887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6df35966-cdf8-11e4-804d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6df5546e-cdf8-11e4-aa67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6df35966-cdf8-11e4-804d-705681abff85"], ["organization_id", "6df5546e-cdf8-11e4-aa67-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.836263"], ["updated_at", "2015-03-19 05:26:00.836263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6df40a32-cdf8-11e4-8a2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6df5546e-cdf8-11e4-aa67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6df40a32-cdf8-11e4-8a2c-705681abff85"], ["organization_id", "6df5546e-cdf8-11e4-aa67-705681abff85"], ["created_at", "2015-03-19 05:26:00.839143"], ["updated_at", "2015-03-19 05:26:00.839143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$kM5WouKS3iWPSqKVFwvR5OP1IE.hRPkTa9jurUPsSiN7ZGMCjKUKy"], ["created_at", "2015-03-19 05:26:00.843265"], ["updated_at", "2015-03-19 05:26:00.843265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.844697"], ["user_id", "6df6e716-cdf8-11e4-94be-705681abff85"], ["created_at", "2015-03-19 05:26:00.845433"], ["updated_at", "2015-03-19 05:26:00.845433"], ["token", "hMdBP2_5KPWd0NyXtRCSEp2PV7cCjFcDpo9rA3LO-hM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '6df5546e-cdf8-11e4-aa67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "6df5546e-cdf8-11e4-aa67-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.848919"], ["updated_at", "2015-03-19 05:26:00.848919"], ["token", "7dKnfF8czxqff_DfnfjbNY5Qlx4T1r-vh-DZ0aJqPks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.854872' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hMdBP2_5KPWd0NyXtRCSEp2PV7cCjFcDpo9rA3LO-hM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.856237"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.857303"], ["id", "6df741f2-cdf8-11e4-b3ef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6df6e716-cdf8-11e4-94be-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$besHrnJPDGyjnZJK66z/3eFKQGXZdCfclFNJiNpfEzX5AXXX2VNtG"], ["created_at", "2015-03-19 05:26:00.871621"], ["updated_at", "2015-03-19 05:26:00.871621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$gcLZZRCpZmD/FIgLjrsi3ud0sp5kUlwbubqtLgoElGwn2cY7VNKAi"], ["created_at", "2015-03-19 05:26:00.876177"], ["updated_at", "2015-03-19 05:26:00.876177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.877813"], ["user_id", "6dfb409a-cdf8-11e4-87b9-705681abff85"], ["created_at", "2015-03-19 05:26:00.878581"], ["updated_at", "2015-03-19 05:26:00.878581"], ["token", "EUA4nkfX5pjuiJCmkAcB4jSo8pC1m1mgNcy3YMiGj1o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.882021"], ["updated_at", "2015-03-19 05:26:00.882021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dfb409a-cdf8-11e4-87b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dfcd158-cdf8-11e4-b5ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6dfb409a-cdf8-11e4-87b9-705681abff85"], ["organization_id", "6dfcd158-cdf8-11e4-b5ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.885432"], ["updated_at", "2015-03-19 05:26:00.885432"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dfbed56-cdf8-11e4-a854-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dfcd158-cdf8-11e4-b5ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6dfbed56-cdf8-11e4-a854-705681abff85"], ["organization_id", "6dfcd158-cdf8-11e4-b5ec-705681abff85"], ["created_at", "2015-03-19 05:26:00.888579"], ["updated_at", "2015-03-19 05:26:00.888579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$a8kZ2BLhYxrjYT4MNlytE.MVdPIv4AxY6hSN/ob2svNlIkBhfpZJS"], ["created_at", "2015-03-19 05:26:00.893090"], ["updated_at", "2015-03-19 05:26:00.893090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.894564"], ["user_id", "6dfe823c-cdf8-11e4-b77a-705681abff85"], ["created_at", "2015-03-19 05:26:00.895334"], ["updated_at", "2015-03-19 05:26:00.895334"], ["token", "0ITXd30eC4Ec0abZV7vz_UFLBFG1wFPwOhpwm1z3Wqo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '6dfcd158-cdf8-11e4-b5ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "6dfcd158-cdf8-11e4-b5ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.898942"], ["updated_at", "2015-03-19 05:26:00.898942"], ["token", "TNls5oWjQP4zZUV5xhOTz6frWP_m7cJ2-bLA-P1O2I0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"TNls5oWjQP4zZUV5xhOTz6frWP_m7cJ2-bLA-P1O2I0", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.913021' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0ITXd30eC4Ec0abZV7vz_UFLBFG1wFPwOhpwm1z3Wqo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.914963"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.916111"], ["id", "6dfedfde-cdf8-11e4-8993-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6dfe823c-cdf8-11e4-b77a-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "TNls5oWjQP4zZUV5xhOTz6frWP_m7cJ2-bLA-P1O2I0"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6dfcd158-cdf8-11e4-b5ec-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6dfe823c-cdf8-11e4-b77a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6dfcd158-cdf8-11e4-b5ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "6dfcd158-cdf8-11e4-b5ec-705681abff85"], ["member_id", "6dfe823c-cdf8-11e4-b77a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.925178"], ["updated_at", "2015-03-19 05:26:00.925178"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6dff6b0c-cdf8-11e4-9844-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.0ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$ppKh145ZBiLFwXwFrA8OzuvvGtMEve.8rm2x2THl8rayb2CtlkUhy"], ["created_at", "2015-03-19 05:26:00.935321"], ["updated_at", "2015-03-19 05:26:00.935321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$KZ4Cp9Iv70eINvxZ4rlBk.cMP.69ZiHE9KZhHdQ5m901q4D6NgzCG"], ["created_at", "2015-03-19 05:26:00.939587"], ["updated_at", "2015-03-19 05:26:00.939587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.941125"], ["user_id", "6e04f7c0-cdf8-11e4-934c-705681abff85"], ["created_at", "2015-03-19 05:26:00.941896"], ["updated_at", "2015-03-19 05:26:00.941896"], ["token", "wt6rV_aBl9TV7cTUPC8hx_hEROL3DPxiuAlhy7l356o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.945148"], ["updated_at", "2015-03-19 05:26:00.945148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e04f7c0-cdf8-11e4-934c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e0674ec-cdf8-11e4-98b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e04f7c0-cdf8-11e4-934c-705681abff85"], ["organization_id", "6e0674ec-cdf8-11e4-98b2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.948826"], ["updated_at", "2015-03-19 05:26:00.948826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e059aea-cdf8-11e4-9551-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e0674ec-cdf8-11e4-98b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e059aea-cdf8-11e4-9551-705681abff85"], ["organization_id", "6e0674ec-cdf8-11e4-98b2-705681abff85"], ["created_at", "2015-03-19 05:26:00.953093"], ["updated_at", "2015-03-19 05:26:00.953093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/6e07abf0-cdf8-11e4-bfd5-705681abff85" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"6e07abf0-cdf8-11e4-bfd5-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:00.958817' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wt6rV_aBl9TV7cTUPC8hx_hEROL3DPxiuAlhy7l356o"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:00.962465"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:00.963730"], ["id", "6e05fbd4-cdf8-11e4-9601-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "6e07abf0-cdf8-11e4-bfd5-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6e04f7c0-cdf8-11e4-934c-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6e0674ec-cdf8-11e4-98b2-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e04f7c0-cdf8-11e4-934c-705681abff85' LIMIT 1 [["organization_id", "6e0674ec-cdf8-11e4-98b2-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6e059aea-cdf8-11e4-9551-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "6e07abf0-cdf8-11e4-bfd5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$BdIRG/kfy/yTwy/Tn6alDeHuSpTYzx5wlZlvychFesrbQnLsoUXqO"], ["created_at", "2015-03-19 05:26:00.978991"], ["updated_at", "2015-03-19 05:26:00.978991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$EbhuElrIryxERoP4yx7Oce3ljIDBAPSM/YFeiOfg6A0acaL1prejO"], ["created_at", "2015-03-19 05:26:00.983336"], ["updated_at", "2015-03-19 05:26:00.983336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:00.984796"], ["user_id", "6e0ba4c6-cdf8-11e4-964a-705681abff85"], ["created_at", "2015-03-19 05:26:00.985577"], ["updated_at", "2015-03-19 05:26:00.985577"], ["token", "pV8Dzji0dQBo6XioWAzewcCagIB_hol5xCZdHUPiC4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:00.988933"], ["updated_at", "2015-03-19 05:26:00.988933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e0ba4c6-cdf8-11e4-964a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e0d2044-cdf8-11e4-bcbf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e0ba4c6-cdf8-11e4-964a-705681abff85"], ["organization_id", "6e0d2044-cdf8-11e4-bcbf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:00.992160"], ["updated_at", "2015-03-19 05:26:00.992160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e0c466a-cdf8-11e4-889c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e0d2044-cdf8-11e4-bcbf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e0c466a-cdf8-11e4-889c-705681abff85"], ["organization_id", "6e0d2044-cdf8-11e4-bcbf-705681abff85"], ["created_at", "2015-03-19 05:26:00.995674"], ["updated_at", "2015-03-19 05:26:00.995674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-18 22:26:00 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$aPd05GAZR4mIVfA.5itgbu2r/VQnvAbecyOM37ZkXS9bCN.oKbUtq"], ["created_at", "2015-03-19 05:26:01.007107"], ["updated_at", "2015-03-19 05:26:01.007107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$nmZuxw1G5obFMRE9kyEqZeca066k8OGXJ1IEJLeG3s2aoBb9qPqLa"], ["created_at", "2015-03-19 05:26:01.011906"], ["updated_at", "2015-03-19 05:26:01.011906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:01.014070"], ["user_id", "6e0feac2-cdf8-11e4-b614-705681abff85"], ["created_at", "2015-03-19 05:26:01.014855"], ["updated_at", "2015-03-19 05:26:01.014855"], ["token", "eogTbQxmEq5wIWEUDKM5zp1kBnCZ7QDlSma4isjzhUE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.020226"], ["updated_at", "2015-03-19 05:26:01.020226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e0feac2-cdf8-11e4-b614-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e120672-cdf8-11e4-90d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e0feac2-cdf8-11e4-b614-705681abff85"], ["organization_id", "6e120672-cdf8-11e4-90d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.025009"], ["updated_at", "2015-03-19 05:26:01.025009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e10b7a4-cdf8-11e4-be49-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e120672-cdf8-11e4-90d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e10b7a4-cdf8-11e4-be49-705681abff85"], ["organization_id", "6e120672-cdf8-11e4-90d7-705681abff85"], ["created_at", "2015-03-19 05:26:01.029323"], ["updated_at", "2015-03-19 05:26:01.029323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$uTsIlUdQtLRKR5NNfKq9KO01EmhHGWOPN71RGUAd14PygSa/gihz."], ["created_at", "2015-03-19 05:26:01.033906"], ["updated_at", "2015-03-19 05:26:01.033906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:01.036175"], ["user_id", "6e14155c-cdf8-11e4-b277-705681abff85"], ["created_at", "2015-03-19 05:26:01.036917"], ["updated_at", "2015-03-19 05:26:01.036917"], ["token", "PZoKx2SwsJvP45JXUA6YDpEPp_X7Qp9rPsdtltxKdXA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '6e120672-cdf8-11e4-90d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "6e120672-cdf8-11e4-90d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.041833"], ["updated_at", "2015-03-19 05:26:01.041833"], ["token", "KVv6B65Ml18yuTNgBrRUj_EDyQ0QEm6V2LjsRimpTzk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-18 22:26:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$HQj.kDOWSEJz2kXQT97vnuAUlrBFG9vfnUKr5a.1ZkJ8p9tx.2.5."], ["created_at", "2015-03-19 05:26:01.055354"], ["updated_at", "2015-03-19 05:26:01.055354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$915b0U0uAsdcvIELP3skY.DCLA4bjA5Wn/lsYkEYCjgOP1xsQQpDu"], ["created_at", "2015-03-19 05:26:01.059620"], ["updated_at", "2015-03-19 05:26:01.059620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:01.061521"], ["user_id", "6e174628-cdf8-11e4-b1eb-705681abff85"], ["created_at", "2015-03-19 05:26:01.062372"], ["updated_at", "2015-03-19 05:26:01.062372"], ["token", "5GmieuiwtZWoaI5yPrXO24dnH6d9i0sXDh35U2ryxk4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.066258"], ["updated_at", "2015-03-19 05:26:01.066258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e174628-cdf8-11e4-b1eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e18f036-cdf8-11e4-be31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e174628-cdf8-11e4-b1eb-705681abff85"], ["organization_id", "6e18f036-cdf8-11e4-be31-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.069784"], ["updated_at", "2015-03-19 05:26:01.069784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e17e998-cdf8-11e4-a79c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e18f036-cdf8-11e4-be31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e17e998-cdf8-11e4-a79c-705681abff85"], ["organization_id", "6e18f036-cdf8-11e4-be31-705681abff85"], ["created_at", "2015-03-19 05:26:01.073357"], ["updated_at", "2015-03-19 05:26:01.073357"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$gWgzjdQRgYC9IQ2u/ofv8.pCbDxAHS3sqoOoum61ZRAx1La5QbAUC"], ["created_at", "2015-03-19 05:26:01.078439"], ["updated_at", "2015-03-19 05:26:01.078439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:01.079987"], ["user_id", "6e1acc1c-cdf8-11e4-9177-705681abff85"], ["created_at", "2015-03-19 05:26:01.080804"], ["updated_at", "2015-03-19 05:26:01.080804"], ["token", "NJbjvWhy3ViUcCIMCHi6gBp2zJQ98fCZuAdMyKtheaE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '6e18f036-cdf8-11e4-be31-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "6e18f036-cdf8-11e4-be31-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.084676"], ["updated_at", "2015-03-19 05:26:01.084676"], ["token", "3lgUeX2QbgZAl9Rc36hZdh6dWQ0w9qT4mvbTTfnkLIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/6e18f036-cdf8-11e4-be31-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:26:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"6e18f036-cdf8-11e4-be31-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:01.089773' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NJbjvWhy3ViUcCIMCHi6gBp2zJQ98fCZuAdMyKtheaE"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:01.091865"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:01.093685"], ["id", "6e1b2e3c-cdf8-11e4-b4f7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6e18f036-cdf8-11e4-be31-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6e1acc1c-cdf8-11e4-9177-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$Lc9JIzSp/ETXABDLFU4qfObU/XtPJIOKSZCJe63IV0vjtoBwsYElK"], ["created_at", "2015-03-19 05:26:01.106419"], ["updated_at", "2015-03-19 05:26:01.106419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$U2UHnJIbdAzAWZ9eWMAkc.pkPjVep8GpZQBL3PykmjPLsbbW0MXTS"], ["created_at", "2015-03-19 05:26:01.110922"], ["updated_at", "2015-03-19 05:26:01.110922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:01.112442"], ["user_id", "6e1f13c6-cdf8-11e4-83e3-705681abff85"], ["created_at", "2015-03-19 05:26:01.113182"], ["updated_at", "2015-03-19 05:26:01.113182"], ["token", "7AMd1S_OJMYAJ2g7xT3wdICieu7HleyXTZwOhMonSjs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.116555"], ["updated_at", "2015-03-19 05:26:01.116555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e1f13c6-cdf8-11e4-83e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e209b7e-cdf8-11e4-afd3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e1f13c6-cdf8-11e4-83e3-705681abff85"], ["organization_id", "6e209b7e-cdf8-11e4-afd3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.119765"], ["updated_at", "2015-03-19 05:26:01.119765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e1fc046-cdf8-11e4-86d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e209b7e-cdf8-11e4-afd3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e1fc046-cdf8-11e4-86d7-705681abff85"], ["organization_id", "6e209b7e-cdf8-11e4-afd3-705681abff85"], ["created_at", "2015-03-19 05:26:01.122766"], ["updated_at", "2015-03-19 05:26:01.122766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$EVdgbKygO/OI6nKA3Ktl4utn4pBDAxrIcrMvfCPIk095hFtSxiJpm"], ["created_at", "2015-03-19 05:26:01.126965"], ["updated_at", "2015-03-19 05:26:01.126965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:01.128454"], ["user_id", "6e223254-cdf8-11e4-bef1-705681abff85"], ["created_at", "2015-03-19 05:26:01.129229"], ["updated_at", "2015-03-19 05:26:01.129229"], ["token", "15IP2yI78LMwyCTu-czHOAuIqK0dB0muC4-4IUGSi1c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '6e209b7e-cdf8-11e4-afd3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "6e209b7e-cdf8-11e4-afd3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.133189"], ["updated_at", "2015-03-19 05:26:01.133189"], ["token", "b2GvETtJpJRhRRvfDFQu9Qmyn0e37IXRqsAb9ayGmFc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/6e209b7e-cdf8-11e4-afd3-705681abff85/memberships" for 127.0.0.1 at 2015-03-18 22:26:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"b2GvETtJpJRhRRvfDFQu9Qmyn0e37IXRqsAb9ayGmFc", "organization_id"=>"6e209b7e-cdf8-11e4-afd3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:01.138288' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "15IP2yI78LMwyCTu-czHOAuIqK0dB0muC4-4IUGSi1c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:01.139948"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:01.140921"], ["id", "6e22915e-cdf8-11e4-ad1b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6e209b7e-cdf8-11e4-afd3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6e223254-cdf8-11e4-bef1-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "b2GvETtJpJRhRRvfDFQu9Qmyn0e37IXRqsAb9ayGmFc"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6e209b7e-cdf8-11e4-afd3-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e223254-cdf8-11e4-bef1-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e209b7e-cdf8-11e4-afd3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "6e209b7e-cdf8-11e4-afd3-705681abff85"], ["member_id", "6e223254-cdf8-11e4-bef1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.148296"], ["updated_at", "2015-03-19 05:26:01.148296"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6e232e84-cdf8-11e4-bf33-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.1ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$xJIGCKPSAw2jD74PE684L.IkE4ICI6BIqfjNwu8Jz0fraBl3vW4Xy"], ["created_at", "2015-03-19 05:26:01.158528"], ["updated_at", "2015-03-19 05:26:01.158528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$dxIp/klGRHx8MuPbB3TuA.AKLILq5cftEku/PvonNeRBctrAZfBIS"], ["created_at", "2015-03-19 05:26:01.162859"], ["updated_at", "2015-03-19 05:26:01.162859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:01.164539"], ["user_id", "6e2706a8-cdf8-11e4-aafd-705681abff85"], ["created_at", "2015-03-19 05:26:01.165479"], ["updated_at", "2015-03-19 05:26:01.165479"], ["token", "05shX3koOs_3cmOOFMqF38796DD1ZJSwEJIN2aUZBGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.169141"], ["updated_at", "2015-03-19 05:26:01.169141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e2706a8-cdf8-11e4-aafd-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e28a2e2-cdf8-11e4-b4df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e2706a8-cdf8-11e4-aafd-705681abff85"], ["organization_id", "6e28a2e2-cdf8-11e4-b4df-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.172442"], ["updated_at", "2015-03-19 05:26:01.172442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (62.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (38.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e27ad1a-cdf8-11e4-a75c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e28a2e2-cdf8-11e4-b4df-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e27ad1a-cdf8-11e4-a75c-705681abff85"], ["organization_id", "6e28a2e2-cdf8-11e4-b4df-705681abff85"], ["created_at", "2015-03-19 05:26:01.277672"], ["updated_at", "2015-03-19 05:26:01.277672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-18 22:26:01 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:01.285336' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "05shX3koOs_3cmOOFMqF38796DD1ZJSwEJIN2aUZBGs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:01.286824"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:01.287811"], ["id", "6e281e76-cdf8-11e4-a888-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6e2706a8-cdf8-11e4-aafd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e2706a8-cdf8-11e4-aafd-705681abff85' LIMIT 1 [["organization_id", "6e28a2e2-cdf8-11e4-b4df-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "6e28a2e2-cdf8-11e4-b4df-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('6e2706a8-cdf8-11e4-aafd-705681abff85', '6e27ad1a-cdf8-11e4-a75c-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('6e28a2e2-cdf8-11e4-b4df-705681abff85') Completed 200 OK in 12ms (Views: 4.2ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$1cspUrexZfUHf8UwnuKpnesxZ8ApU6MCsFT/MiUmPQU8BfBTbSUU."], ["created_at", "2015-03-19 05:26:01.304283"], ["updated_at", "2015-03-19 05:26:01.304283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$.VW9MM9oasVvJr/RAKFhR.tEzJKz8FXYarYIYi7hkMRaPX9pOOYEq"], ["created_at", "2015-03-19 05:26:01.308795"], ["updated_at", "2015-03-19 05:26:01.308795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:01.310445"], ["user_id", "6e3d4454-cdf8-11e4-a950-705681abff85"], ["created_at", "2015-03-19 05:26:01.311235"], ["updated_at", "2015-03-19 05:26:01.311235"], ["token", "ViNn00oSHU41JrOKyDaZLwUJ84Hbu2KsJoRcGlvUkEg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.314725"], ["updated_at", "2015-03-19 05:26:01.314725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e3d4454-cdf8-11e4-a950-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e3ed896-cdf8-11e4-912d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e3d4454-cdf8-11e4-a950-705681abff85"], ["organization_id", "6e3ed896-cdf8-11e4-912d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.318257"], ["updated_at", "2015-03-19 05:26:01.318257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e3df41c-cdf8-11e4-bf2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e3ed896-cdf8-11e4-912d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e3df41c-cdf8-11e4-bf2a-705681abff85"], ["organization_id", "6e3ed896-cdf8-11e4-912d-705681abff85"], ["created_at", "2015-03-19 05:26:01.321949"], ["updated_at", "2015-03-19 05:26:01.321949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-18 22:26:01 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$JI6abRfRxrErgTTzbfVaru745i86DoQ4Iw5umUvu3tDiI/c4chL9m"], ["created_at", "2015-03-19 05:26:01.334042"], ["updated_at", "2015-03-19 05:26:01.334042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$fzT6kJHJ9SLwqptQXfwYPugzkJUBlyVcySzEurEcd6nC41spEvJSa"], ["created_at", "2015-03-19 05:26:01.338890"], ["updated_at", "2015-03-19 05:26:01.338890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:01.340488"], ["user_id", "6e41cdd0-cdf8-11e4-9fe5-705681abff85"], ["created_at", "2015-03-19 05:26:01.341270"], ["updated_at", "2015-03-19 05:26:01.341270"], ["token", "ERsXBdwIDjIGb9zIYYsiNB1HOcJB0Hx1NxpUEiCkCFA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.344859"], ["updated_at", "2015-03-19 05:26:01.344859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e41cdd0-cdf8-11e4-9fe5-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e43714e-cdf8-11e4-990d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e41cdd0-cdf8-11e4-9fe5-705681abff85"], ["organization_id", "6e43714e-cdf8-11e4-990d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.348139"], ["updated_at", "2015-03-19 05:26:01.348139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e428a9a-cdf8-11e4-9541-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e43714e-cdf8-11e4-990d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e428a9a-cdf8-11e4-9541-705681abff85"], ["organization_id", "6e43714e-cdf8-11e4-990d-705681abff85"], ["created_at", "2015-03-19 05:26:01.351321"], ["updated_at", "2015-03-19 05:26:01.351321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/6e43f394-cdf8-11e4-bab4-705681abff85" for 127.0.0.1 at 2015-03-18 22:26:01 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"6e43f394-cdf8-11e4-bab4-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:01.357495' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ERsXBdwIDjIGb9zIYYsiNB1HOcJB0Hx1NxpUEiCkCFA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:01.358947"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:01.359917"], ["id", "6e42f44e-cdf8-11e4-9de6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "6e43f394-cdf8-11e4-bab4-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6e41cdd0-cdf8-11e4-9fe5-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6e43714e-cdf8-11e4-990d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e41cdd0-cdf8-11e4-9fe5-705681abff85' LIMIT 1 [["organization_id", "6e43714e-cdf8-11e4-990d-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6e41cdd0-cdf8-11e4-9fe5-705681abff85"]] Completed 200 OK in 9ms (Views: 1.8ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$W0hkCO47lnNwBurnVyYlYOxV7pZ0kY7hNnM3nhAbYlHTVHBn5tCme"], ["created_at", "2015-03-19 05:26:01.372372"], ["updated_at", "2015-03-19 05:26:01.372372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$TTe6f3IcajeGnzKXRY/Sa.WBKoGyRema8uk6KWMWnXn63Gi4Vd7uu"], ["created_at", "2015-03-19 05:26:01.377011"], ["updated_at", "2015-03-19 05:26:01.377011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:01.378558"], ["user_id", "6e47a8c2-cdf8-11e4-8599-705681abff85"], ["created_at", "2015-03-19 05:26:01.379325"], ["updated_at", "2015-03-19 05:26:01.379325"], ["token", "4RywNht7b8bfSL6Bj7XRT4F2i7h2p0lIlJTe7z4qdZc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.382671"], ["updated_at", "2015-03-19 05:26:01.382671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e47a8c2-cdf8-11e4-8599-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e49369c-cdf8-11e4-b08b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e47a8c2-cdf8-11e4-8599-705681abff85"], ["organization_id", "6e49369c-cdf8-11e4-b08b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.385966"], ["updated_at", "2015-03-19 05:26:01.385966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e4859e8-cdf8-11e4-b7a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e49369c-cdf8-11e4-b08b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e4859e8-cdf8-11e4-b7a4-705681abff85"], ["organization_id", "6e49369c-cdf8-11e4-b08b-705681abff85"], ["created_at", "2015-03-19 05:26:01.389649"], ["updated_at", "2015-03-19 05:26:01.389649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-18 22:26:01 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$pusXPmsz13YXoQrEWJ74k.5rHb4zh74L/fUTOMBVl/cvDroYXwVf6"], ["created_at", "2015-03-19 05:26:01.402029"], ["updated_at", "2015-03-19 05:26:01.402029"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$yWZKp5xQi4481.nmac4sBOI7Y.ayPkCL.sTbLeyLrpyE4hjC1IQ1a"], ["created_at", "2015-03-19 05:26:01.406925"], ["updated_at", "2015-03-19 05:26:01.406925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.410122"], ["updated_at", "2015-03-19 05:26:01.410122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e4cecb0-cdf8-11e4-880d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e4d6672-cdf8-11e4-b40a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e4cecb0-cdf8-11e4-880d-705681abff85"], ["organization_id", "6e4d6672-cdf8-11e4-b40a-705681abff85"], ["created_at", "2015-03-19 05:26:01.413816"], ["updated_at", "2015-03-19 05:26:01.413816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e4c2ece-cdf8-11e4-9fb1-705681abff85' LIMIT 1 [["organization_id", "6e4d6672-cdf8-11e4-b40a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$K04VeQeCljgHT1bvE7qBQe3CY3GwM0xbvLhA.xoSycuhr9elvKa7."], ["created_at", "2015-03-19 05:26:01.421219"], ["updated_at", "2015-03-19 05:26:01.421219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$YmrUqZ1UFtIuhI89m6k7gu6qsbkfaX91XdVuFGIinnRbc9Y3aEx1q"], ["created_at", "2015-03-19 05:26:01.426423"], ["updated_at", "2015-03-19 05:26:01.426423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.429512"], ["updated_at", "2015-03-19 05:26:01.429512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e4fe4ce-cdf8-11e4-8ba6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e505c74-cdf8-11e4-ba84-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e4fe4ce-cdf8-11e4-8ba6-705681abff85"], ["organization_id", "6e505c74-cdf8-11e4-ba84-705681abff85"], ["created_at", "2015-03-19 05:26:01.433528"], ["updated_at", "2015-03-19 05:26:01.433528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e4f2b92-cdf8-11e4-8a81-705681abff85' LIMIT 1 [["organization_id", "6e505c74-cdf8-11e4-ba84-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$r7UA2sPVlEF0XS8X.mY2gua1YHumi.z5AoQoGU27Gs8vIC6Mvw1LO"], ["created_at", "2015-03-19 05:26:01.440790"], ["updated_at", "2015-03-19 05:26:01.440790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$9jw42x4uuEnAi0r8HdaM9OF93qXrySNVa8UH2kHItxMASIH4Bbkj2"], ["created_at", "2015-03-19 05:26:01.445021"], ["updated_at", "2015-03-19 05:26:01.445021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.450371"], ["updated_at", "2015-03-19 05:26:01.450371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e52b924-cdf8-11e4-bb71-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e538e26-cdf8-11e4-96e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e52b924-cdf8-11e4-bb71-705681abff85"], ["organization_id", "6e538e26-cdf8-11e4-96e2-705681abff85"], ["created_at", "2015-03-19 05:26:01.453812"], ["updated_at", "2015-03-19 05:26:01.453812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e5218fc-cdf8-11e4-8b7d-705681abff85' LIMIT 1 [["organization_id", "6e538e26-cdf8-11e4-96e2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$FKIr9EWF27om1RVe3iQr3uTSTpRx3tOCktq2jiaX7FNbLnr.QE9n2"], ["created_at", "2015-03-19 05:26:01.461127"], ["updated_at", "2015-03-19 05:26:01.461127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$jZAiCvUz/VA2ZQvUh.Fneuw2.mj793npu234v4UUTHH6T2TzXhqeK"], ["created_at", "2015-03-19 05:26:01.465325"], ["updated_at", "2015-03-19 05:26:01.465325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.468329"], ["updated_at", "2015-03-19 05:26:01.468329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e55d230-cdf8-11e4-baa4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e56485a-cdf8-11e4-9599-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e55d230-cdf8-11e4-baa4-705681abff85"], ["organization_id", "6e56485a-cdf8-11e4-9599-705681abff85"], ["created_at", "2015-03-19 05:26:01.472001"], ["updated_at", "2015-03-19 05:26:01.472001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$YuuZLbBDFsjRZyFOtilkneijtEmGGgzpHeBM8yZNyQCkdZtP8C1eG"], ["created_at", "2015-03-19 05:26:01.478602"], ["updated_at", "2015-03-19 05:26:01.478602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.481948"], ["updated_at", "2015-03-19 05:26:01.481948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e57db7a-cdf8-11e4-90da-705681abff85' LIMIT 1 [["organization_id", "6e585d7a-cdf8-11e4-992f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$q/BDEaOZ64D8K8DEP0VGB.JU.FRavRITybV7DWVLUF2zMMnx9W1P6"], ["created_at", "2015-03-19 05:26:01.489117"], ["updated_at", "2015-03-19 05:26:01.489117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.492196"], ["updated_at", "2015-03-19 05:26:01.492196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e59761a-cdf8-11e4-a528-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e59ebcc-cdf8-11e4-8273-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e59761a-cdf8-11e4-a528-705681abff85"], ["organization_id", "6e59ebcc-cdf8-11e4-8273-705681abff85"], ["created_at", "2015-03-19 05:26:01.497791"], ["updated_at", "2015-03-19 05:26:01.497791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e59761a-cdf8-11e4-a528-705681abff85' LIMIT 1 [["organization_id", "6e59ebcc-cdf8-11e4-8273-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$no0JMEq.LLRhoBUo0BIGKuGdN3wT8/UNiTeJmVeKB40QyjrF5nOeC"], ["created_at", "2015-03-19 05:26:01.506331"], ["updated_at", "2015-03-19 05:26:01.506331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.509922"], ["updated_at", "2015-03-19 05:26:01.509922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e5c2072-cdf8-11e4-97ad-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e5ca1aa-cdf8-11e4-a058-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e5c2072-cdf8-11e4-97ad-705681abff85"], ["organization_id", "6e5ca1aa-cdf8-11e4-a058-705681abff85"], ["created_at", "2015-03-19 05:26:01.513148"], ["updated_at", "2015-03-19 05:26:01.513148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e5c2072-cdf8-11e4-97ad-705681abff85' LIMIT 1 [["organization_id", "6e5ca1aa-cdf8-11e4-a058-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$T8QD4z2TatyYJC8IIuG9luUSFSbCCc34SyAKma/PHBtsdwAX4ZLV6"], ["created_at", "2015-03-19 05:26:01.520052"], ["updated_at", "2015-03-19 05:26:01.520052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.524071"], ["updated_at", "2015-03-19 05:26:01.524071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e5e2fde-cdf8-11e4-803c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e5ecf48-cdf8-11e4-a442-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e5e2fde-cdf8-11e4-803c-705681abff85"], ["organization_id", "6e5ecf48-cdf8-11e4-a442-705681abff85"], ["created_at", "2015-03-19 05:26:01.527531"], ["updated_at", "2015-03-19 05:26:01.527531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e5e2fde-cdf8-11e4-803c-705681abff85' LIMIT 1 [["organization_id", "6e5ecf48-cdf8-11e4-a442-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$6dOEthWmYrNTKyT9bjYWnuNvhqe5qpXzx4ky8ONZXVq3c0XlcNO9."], ["created_at", "2015-03-19 05:26:01.536144"], ["updated_at", "2015-03-19 05:26:01.536144"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.543031"], ["updated_at", "2015-03-19 05:26:01.543031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e60c352-cdf8-11e4-b771-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e61b4ce-cdf8-11e4-b13f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e60c352-cdf8-11e4-b771-705681abff85"], ["organization_id", "6e61b4ce-cdf8-11e4-b13f-705681abff85"], ["created_at", "2015-03-19 05:26:01.546596"], ["updated_at", "2015-03-19 05:26:01.546596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$ZHjGcYXCgPx3izte9BEPIuC.I4juVSMXuDUC2tqpvl3sMRFt3aezm"], ["created_at", "2015-03-19 05:26:01.553882"], ["updated_at", "2015-03-19 05:26:01.553882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.558570"], ["updated_at", "2015-03-19 05:26:01.558570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e635cd4-cdf8-11e4-a4c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e6411ba-cdf8-11e4-a3f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e635cd4-cdf8-11e4-a4c3-705681abff85"], ["organization_id", "6e6411ba-cdf8-11e4-a3f6-705681abff85"], ["created_at", "2015-03-19 05:26:01.561901"], ["updated_at", "2015-03-19 05:26:01.561901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e635cd4-cdf8-11e4-a4c3-705681abff85' LIMIT 1 [["organization_id", "6e6411ba-cdf8-11e4-a3f6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$k.IaBiAh48mVrr75sMcCs.X0vIMCTqhAVazgbpMbHslKQuoWoBV.O"], ["created_at", "2015-03-19 05:26:01.568786"], ["updated_at", "2015-03-19 05:26:01.568786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.572024"], ["updated_at", "2015-03-19 05:26:01.572024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e659e68-cdf8-11e4-bb53-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e662586-cdf8-11e4-9255-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e659e68-cdf8-11e4-bb53-705681abff85"], ["organization_id", "6e662586-cdf8-11e4-9255-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.576475"], ["updated_at", "2015-03-19 05:26:01.576475"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$b4J5xb/UuE19EiieRjiX/uwmzQl3rxDPQcC6xEfLrEqmsGpaj0lBm"], ["created_at", "2015-03-19 05:26:01.581293"], ["updated_at", "2015-03-19 05:26:01.581293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e6786ba-cdf8-11e4-8927-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e662586-cdf8-11e4-9255-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e6786ba-cdf8-11e4-8927-705681abff85"], ["organization_id", "6e662586-cdf8-11e4-9255-705681abff85"], ["created_at", "2015-03-19 05:26:01.585392"], ["updated_at", "2015-03-19 05:26:01.585392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e659e68-cdf8-11e4-bb53-705681abff85' LIMIT 1 [["organization_id", "6e662586-cdf8-11e4-9255-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$kOOJTM1A96qjkiSDQdCPYuo3KE/z3zhCpv5VFX6fGAJ2cV3roleBu"], ["created_at", "2015-03-19 05:26:01.592315"], ["updated_at", "2015-03-19 05:26:01.592315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.595448"], ["updated_at", "2015-03-19 05:26:01.595448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e693690-cdf8-11e4-a0f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e69add2-cdf8-11e4-b091-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e693690-cdf8-11e4-a0f6-705681abff85"], ["organization_id", "6e69add2-cdf8-11e4-b091-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.598844"], ["updated_at", "2015-03-19 05:26:01.598844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$vGcuGqVY6X6SgW9aDw1xiOnTlpBIlIvc1e4XLUPh1IbppoTad29EC"], ["created_at", "2015-03-19 05:26:01.603588"], ["updated_at", "2015-03-19 05:26:01.603588"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e6aeed6-cdf8-11e4-883d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e69add2-cdf8-11e4-b091-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e6aeed6-cdf8-11e4-883d-705681abff85"], ["organization_id", "6e69add2-cdf8-11e4-b091-705681abff85"], ["created_at", "2015-03-19 05:26:01.608220"], ["updated_at", "2015-03-19 05:26:01.608220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e693690-cdf8-11e4-a0f6-705681abff85' LIMIT 1 [["organization_id", "6e69add2-cdf8-11e4-b091-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$hDkJuvjts.OGREO5abaas.aPNpSRLYqss.zNmRBfOQc0yVpZq1b8y"], ["created_at", "2015-03-19 05:26:01.615035"], ["updated_at", "2015-03-19 05:26:01.615035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.618539"], ["updated_at", "2015-03-19 05:26:01.618539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e6cab72-cdf8-11e4-b546-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e6d3380-cdf8-11e4-827c-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e6cab72-cdf8-11e4-b546-705681abff85"], ["organization_id", "6e6d3380-cdf8-11e4-827c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.621888"], ["updated_at", "2015-03-19 05:26:01.621888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$HKrnhHbYt0UPndwKh4oSXOz5.FOXM4PgXYxYWFZVpNgfc2QkHpRj6"], ["created_at", "2015-03-19 05:26:01.628728"], ["updated_at", "2015-03-19 05:26:01.628728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e6ec34e-cdf8-11e4-9037-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e6d3380-cdf8-11e4-827c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e6ec34e-cdf8-11e4-9037-705681abff85"], ["organization_id", "6e6d3380-cdf8-11e4-827c-705681abff85"], ["created_at", "2015-03-19 05:26:01.632723"], ["updated_at", "2015-03-19 05:26:01.632723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e6cab72-cdf8-11e4-b546-705681abff85' LIMIT 1 [["organization_id", "6e6d3380-cdf8-11e4-827c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$JoW0CpJsr5Qygny64Se2zutIeUMwKYO5mTGHPaYTN0jB44n3o/FfK"], ["created_at", "2015-03-19 05:26:01.640871"], ["updated_at", "2015-03-19 05:26:01.640871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.643965"], ["updated_at", "2015-03-19 05:26:01.643965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e709dea-cdf8-11e4-aa6d-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e7115b8-cdf8-11e4-b6b6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e709dea-cdf8-11e4-aa6d-705681abff85"], ["organization_id", "6e7115b8-cdf8-11e4-b6b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.647633"], ["updated_at", "2015-03-19 05:26:01.647633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$oMjIceA6kl3GzNul7v5TQ.spDpRmso1P1zWmj4Im2GxivB9QUXvXu"], ["created_at", "2015-03-19 05:26:01.653452"], ["updated_at", "2015-03-19 05:26:01.653452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e728c72-cdf8-11e4-a0a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e7115b8-cdf8-11e4-b6b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e728c72-cdf8-11e4-a0a8-705681abff85"], ["organization_id", "6e7115b8-cdf8-11e4-b6b6-705681abff85"], ["created_at", "2015-03-19 05:26:01.656978"], ["updated_at", "2015-03-19 05:26:01.656978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$31H58L5hCtDoRnjOk4Ibd.c.Iw3DeRxfg0B7FTmML/qvABccJ9Erq"], ["created_at", "2015-03-19 05:26:01.664053"], ["updated_at", "2015-03-19 05:26:01.664053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.667194"], ["updated_at", "2015-03-19 05:26:01.667194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e742708-cdf8-11e4-a324-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e74a0e8-cdf8-11e4-bcb0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e742708-cdf8-11e4-a324-705681abff85"], ["organization_id", "6e74a0e8-cdf8-11e4-bcb0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.670288"], ["updated_at", "2015-03-19 05:26:01.670288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e742708-cdf8-11e4-a324-705681abff85' LIMIT 1 [["organization_id", "6e74a0e8-cdf8-11e4-bcb0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$hAFw9grZcH2RVbN13EpMGeZZRK7.ozV/6YwZiT/tA5X647hZN7fS6"], ["created_at", "2015-03-19 05:26:01.677910"], ["updated_at", "2015-03-19 05:26:01.677910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.681253"], ["updated_at", "2015-03-19 05:26:01.681253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e764600-cdf8-11e4-833f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e76c544-cdf8-11e4-a1b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e764600-cdf8-11e4-833f-705681abff85"], ["organization_id", "6e76c544-cdf8-11e4-a1b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.684299"], ["updated_at", "2015-03-19 05:26:01.684299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e764600-cdf8-11e4-833f-705681abff85' LIMIT 1 [["organization_id", "6e76c544-cdf8-11e4-a1b1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$1d/..veQcW6iJQyElWoep.XlNfh6hKUKjR2U5.b.jqoAd6J877nrS"], ["created_at", "2015-03-19 05:26:01.691148"], ["updated_at", "2015-03-19 05:26:01.691148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.694226"], ["updated_at", "2015-03-19 05:26:01.694226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e784aa4-cdf8-11e4-a8e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e78bed0-cdf8-11e4-a9cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e784aa4-cdf8-11e4-a8e4-705681abff85"], ["organization_id", "6e78bed0-cdf8-11e4-a9cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.697295"], ["updated_at", "2015-03-19 05:26:01.697295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e784aa4-cdf8-11e4-a8e4-705681abff85' LIMIT 1 [["organization_id", "6e78bed0-cdf8-11e4-a9cc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$31MsW2DuYek8ee9wv6JZleRb5Y6tByqNGqNt0wvLW3f0K0OxSKEfe"], ["created_at", "2015-03-19 05:26:01.703781"], ["updated_at", "2015-03-19 05:26:01.703781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.706720"], ["updated_at", "2015-03-19 05:26:01.706720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e7a35f8-cdf8-11e4-bdbe-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e7aa7d6-cdf8-11e4-abac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e7a35f8-cdf8-11e4-bdbe-705681abff85"], ["organization_id", "6e7aa7d6-cdf8-11e4-abac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.711645"], ["updated_at", "2015-03-19 05:26:01.711645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$VKQuJAaTC3rX9gYVPi.2fORjhbRGCz0NNmL4NRwAVwDrorSkLixBO"], ["created_at", "2015-03-19 05:26:01.717524"], ["updated_at", "2015-03-19 05:26:01.717524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.720508"], ["updated_at", "2015-03-19 05:26:01.720508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e7c51bc-cdf8-11e4-9432-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e7cc17e-cdf8-11e4-929e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e7c51bc-cdf8-11e4-9432-705681abff85"], ["organization_id", "6e7cc17e-cdf8-11e4-929e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.724220"], ["updated_at", "2015-03-19 05:26:01.724220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e7c51bc-cdf8-11e4-9432-705681abff85' LIMIT 1 [["organization_id", "6e7cc17e-cdf8-11e4-929e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.735388"], ["updated_at", "2015-03-19 05:26:01.735388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.739432"], ["updated_at", "2015-03-19 05:26:01.739432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.754647"], ["updated_at", "2015-03-19 05:26:01.754647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.779828"], ["updated_at", "2015-03-19 05:26:01.779828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.784982"], ["updated_at", "2015-03-19 05:26:01.784982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6e869afa-cdf8-11e4-939b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$kXyf2IYfzX5YwOWD6bqJpOTBafmbdDiE400SM4dfaU7aYqIJG.xDy"], ["created_at", "2015-03-19 05:26:01.791137"], ["updated_at", "2015-03-19 05:26:01.791137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.794442"], ["updated_at", "2015-03-19 05:26:01.794442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e878c58-cdf8-11e4-ab4c-705681abff85' LIMIT 1 [["organization_id", "6e880b74-cdf8-11e4-95ae-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$2EvQKn9.wFVW6JYvjn6NfeDfiO9Rb1WUmwWaqO1o3meh8c2cYkNRC"], ["created_at", "2015-03-19 05:26:01.800952"], ["updated_at", "2015-03-19 05:26:01.800952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.804041"], ["updated_at", "2015-03-19 05:26:01.804041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$.TZSjb79khFyEUbecvbBSOifm0auGfraL2zmlLPzsmOq4KGA9fNY."], ["created_at", "2015-03-19 05:26:01.809751"], ["updated_at", "2015-03-19 05:26:01.809751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.812838"], ["updated_at", "2015-03-19 05:26:01.812838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e8a657c-cdf8-11e4-ba1b-705681abff85' LIMIT 1 [["organization_id", "6e8ad84a-cdf8-11e4-986e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$FNjoNaiylchRyro7kPwNpO7dyNnakf6iV4CoECKQoEMyn7OEA8eVC"], ["created_at", "2015-03-19 05:26:01.819362"], ["updated_at", "2015-03-19 05:26:01.819362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.822471"], ["updated_at", "2015-03-19 05:26:01.822471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$XjRDyUFHkwwiGiaoHbdlROmNfIQ6zbOabkjKy7vP7E1ewtMtCRU.."], ["created_at", "2015-03-19 05:26:01.828818"], ["updated_at", "2015-03-19 05:26:01.828818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.831983"], ["updated_at", "2015-03-19 05:26:01.831983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e8d5188-cdf8-11e4-bffc-705681abff85' LIMIT 1 [["organization_id", "6e8dc442-cdf8-11e4-a6bb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$irkpYBY85qy80VKhiDg1MemnGjfnDhaaBvOhXbiJ7gK8oc5p3W4G6"], ["created_at", "2015-03-19 05:26:01.838834"], ["updated_at", "2015-03-19 05:26:01.838834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.841954"], ["updated_at", "2015-03-19 05:26:01.841954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e8ed558-cdf8-11e4-949c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e8f49fc-cdf8-11e4-91c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e8ed558-cdf8-11e4-949c-705681abff85"], ["organization_id", "6e8f49fc-cdf8-11e4-91c6-705681abff85"], ["created_at", "2015-03-19 05:26:01.844948"], ["updated_at", "2015-03-19 05:26:01.844948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e8ed558-cdf8-11e4-949c-705681abff85' LIMIT 1 [["organization_id", "6e8f49fc-cdf8-11e4-91c6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$OF59LCzGLgOa2xSkoOZ/fufqajc3GMtjInU7tpDPd4FrVjDGXDU/a"], ["created_at", "2015-03-19 05:26:01.851506"], ["updated_at", "2015-03-19 05:26:01.851506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.854839"], ["updated_at", "2015-03-19 05:26:01.854839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e90c354-cdf8-11e4-9d04-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e914284-cdf8-11e4-9bf4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e90c354-cdf8-11e4-9d04-705681abff85"], ["organization_id", "6e914284-cdf8-11e4-9bf4-705681abff85"], ["created_at", "2015-03-19 05:26:01.857971"], ["updated_at", "2015-03-19 05:26:01.857971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$AdkfjbHcYffVK0ff8gvhfeACV7nkrpqY78CdWWiL/7.ZZeZtR23ey"], ["created_at", "2015-03-19 05:26:01.863827"], ["updated_at", "2015-03-19 05:26:01.863827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.867312"], ["updated_at", "2015-03-19 05:26:01.867312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e92a4b2-cdf8-11e4-9831-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e932b80-cdf8-11e4-80d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e92a4b2-cdf8-11e4-9831-705681abff85"], ["organization_id", "6e932b80-cdf8-11e4-80d8-705681abff85"], ["created_at", "2015-03-19 05:26:01.870480"], ["updated_at", "2015-03-19 05:26:01.870480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e92a4b2-cdf8-11e4-9831-705681abff85' LIMIT 1 [["organization_id", "6e932b80-cdf8-11e4-80d8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (3.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$shtONdMCQrWTij3o9j26l.AqOiyrqoZrgqhVsmRw8Ga7KMBbj7Ol."], ["created_at", "2015-03-19 05:26:01.885549"], ["updated_at", "2015-03-19 05:26:01.885549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.889131"], ["updated_at", "2015-03-19 05:26:01.889131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e95fbb2-cdf8-11e4-9d81-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e968348-cdf8-11e4-a9f3-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e95fbb2-cdf8-11e4-9d81-705681abff85"], ["organization_id", "6e968348-cdf8-11e4-a9f3-705681abff85"], ["created_at", "2015-03-19 05:26:01.893147"], ["updated_at", "2015-03-19 05:26:01.893147"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$K6t.KGP1Dhks5qba5LvRQ.wUfFCCbp1qLzYxrioKjxPxV4yrT0Udm"], ["created_at", "2015-03-19 05:26:01.900954"], ["updated_at", "2015-03-19 05:26:01.900954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.904247"], ["updated_at", "2015-03-19 05:26:01.904247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e984fca-cdf8-11e4-bcbf-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e98d274-cdf8-11e4-b9b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e984fca-cdf8-11e4-bcbf-705681abff85"], ["organization_id", "6e98d274-cdf8-11e4-b9b4-705681abff85"], ["created_at", "2015-03-19 05:26:01.908002"], ["updated_at", "2015-03-19 05:26:01.908002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e984fca-cdf8-11e4-bcbf-705681abff85' LIMIT 1 [["organization_id", "6e98d274-cdf8-11e4-b9b4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$ioC.flnro1BUkjokqpJdV.bQG.1g575ckUr3juwfy5Dgel2U3Bfba"], ["created_at", "2015-03-19 05:26:01.915094"], ["updated_at", "2015-03-19 05:26:01.915094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.918640"], ["updated_at", "2015-03-19 05:26:01.918640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e9a79a8-cdf8-11e4-8129-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e9b0350-cdf8-11e4-8ae1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e9a79a8-cdf8-11e4-8129-705681abff85"], ["organization_id", "6e9b0350-cdf8-11e4-8ae1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.922085"], ["updated_at", "2015-03-19 05:26:01.922085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6e9a79a8-cdf8-11e4-8129-705681abff85' LIMIT 1 [["organization_id", "6e9b0350-cdf8-11e4-8ae1-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$JlSFBXDzgIifY.XRHjm45eLmu/z945ry1sBthbdC5hu/JzRhM3akK"], ["created_at", "2015-03-19 05:26:01.937647"], ["updated_at", "2015-03-19 05:26:01.937647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.940827"], ["updated_at", "2015-03-19 05:26:01.940827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e9de872-cdf8-11e4-874c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6e9e5faa-cdf8-11e4-99c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e9de872-cdf8-11e4-874c-705681abff85"], ["organization_id", "6e9e5faa-cdf8-11e4-99c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.943808"], ["updated_at", "2015-03-19 05:26:01.943808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$6jMvaHsk8RGyD/UYIICby.10zVrtHu/cwNUw73UBe43oLgqRqKw4C"], ["created_at", "2015-03-19 05:26:01.949573"], ["updated_at", "2015-03-19 05:26:01.949573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.952583"], ["updated_at", "2015-03-19 05:26:01.952583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e9fb90e-cdf8-11e4-aa88-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ea02b32-cdf8-11e4-9731-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e9fb90e-cdf8-11e4-aa88-705681abff85"], ["organization_id", "6ea02b32-cdf8-11e4-9731-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.956139"], ["updated_at", "2015-03-19 05:26:01.956139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6e9fb90e-cdf8-11e4-aa88-705681abff85' LIMIT 1 [["organization_id", "6ea02b32-cdf8-11e4-9731-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$rG801sdocdcIy7pjTwpkyOfUscpdew/tgg7s/ouqgm7Bf/6ZSEzw6"], ["created_at", "2015-03-19 05:26:01.962659"], ["updated_at", "2015-03-19 05:26:01.962659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.965614"], ["updated_at", "2015-03-19 05:26:01.965614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ea1b68c-cdf8-11e4-afd2-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ea227e8-cdf8-11e4-91d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ea1b68c-cdf8-11e4-afd2-705681abff85"], ["organization_id", "6ea227e8-cdf8-11e4-91d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.969413"], ["updated_at", "2015-03-19 05:26:01.969413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$EHkGUXoxqZDwnN.Ncl3oQOpr9kkyfX6caOCCu1F8ZCU.P87nXHi1K"], ["created_at", "2015-03-19 05:26:01.976272"], ["updated_at", "2015-03-19 05:26:01.976272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:01.981972"], ["updated_at", "2015-03-19 05:26:01.981972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ea42250-cdf8-11e4-89d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ea4ab4e-cdf8-11e4-85aa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ea42250-cdf8-11e4-89d6-705681abff85"], ["organization_id", "6ea4ab4e-cdf8-11e4-85aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:01.985353"], ["updated_at", "2015-03-19 05:26:01.985353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6ea42250-cdf8-11e4-89d6-705681abff85' LIMIT 1 [["organization_id", "6ea4ab4e-cdf8-11e4-85aa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$qpe77IEUm27p1KjVbFkqtuk6fBVFuUl3IlClD6.vaDtW0h.qPXcwC"], ["created_at", "2015-03-19 05:26:01.992552"], ["updated_at", "2015-03-19 05:26:01.992552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$8Fv4rP9HMx/EZPNJPta22OjnJaLQ34cPdrmY44/pgNnEnpTRtkV5e"], ["created_at", "2015-03-19 05:26:01.998885"], ["updated_at", "2015-03-19 05:26:01.998885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.002334"], ["updated_at", "2015-03-19 05:26:02.002334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ea73ed6-cdf8-11e4-ad7e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ea7caae-cdf8-11e4-ab04-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6ea73ed6-cdf8-11e4-ad7e-705681abff85"], ["organization_id", "6ea7caae-cdf8-11e4-ab04-705681abff85"], ["created_at", "2015-03-19 05:26:02.005181"], ["updated_at", "2015-03-19 05:26:02.005181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ea73ed6-cdf8-11e4-ad7e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ea7caae-cdf8-11e4-ab04-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ea73ed6-cdf8-11e4-ad7e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ea7caae-cdf8-11e4-ab04-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ea7caae-cdf8-11e4-ab04-705681abff86"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ea73ed6-cdf8-11e4-ad7e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ea7caae-cdf8-11e4-ab04-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$Hu2uVxMcvvQNfpoB8lwkne7xxCwM9BmuwCjuwftxivsu5bn.juZDW"], ["created_at", "2015-03-19 05:26:02.030638"], ["updated_at", "2015-03-19 05:26:02.030638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.032173"], ["user_id", "6eac1726-cdf8-11e4-bc90-705681abff85"], ["created_at", "2015-03-19 05:26:02.032932"], ["updated_at", "2015-03-19 05:26:02.032932"], ["token", "_FYQAkZminJwjp8o0IwV_7OBofDmdZXbFgZhTZgJViA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.036162"], ["updated_at", "2015-03-19 05:26:02.036162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6eac1726-cdf8-11e4-bc90-705681abff85' AND "clubhouse_memberships"."organization_id" = '6eacebec-cdf8-11e4-96f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6eac1726-cdf8-11e4-bc90-705681abff85"], ["organization_id", "6eacebec-cdf8-11e4-96f6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.039243"], ["updated_at", "2015-03-19 05:26:02.039243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '6eacebec-cdf8-11e4-96f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "6eacebec-cdf8-11e4-96f6-705681abff85"], ["created_at", "2015-03-19 05:26:02.042506"], ["updated_at", "2015-03-19 05:26:02.042506"], ["token", "x24ogN7yXOGo8R6jH0mYx2ASgKj09IZ5V0P1l-myZ58"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$UBESCB7gRf8RLEcmwgGbZuAkmaDkx/Tb78E5tThUGk7pkQ.Y7VqRG"], ["created_at", "2015-03-19 05:26:02.047141"], ["updated_at", "2015-03-19 05:26:02.047141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.050166"], ["updated_at", "2015-03-19 05:26:02.050166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6eae9bae-cdf8-11e4-9dbe-705681abff85' AND "clubhouse_memberships"."organization_id" = '6eaf0ed6-cdf8-11e4-b7d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6eae9bae-cdf8-11e4-9dbe-705681abff85"], ["organization_id", "6eaf0ed6-cdf8-11e4-b7d1-705681abff85"], ["created_at", "2015-03-19 05:26:02.053308"], ["updated_at", "2015-03-19 05:26:02.053308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/6eacebec-cdf8-11e4-96f6-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"6eacebec-cdf8-11e4-96f6-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.064374' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_FYQAkZminJwjp8o0IwV_7OBofDmdZXbFgZhTZgJViA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.065760"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.066691"], ["id", "6eac7554-cdf8-11e4-908c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6eacebec-cdf8-11e4-96f6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6eac1726-cdf8-11e4-bc90-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6eac1726-cdf8-11e4-bc90-705681abff85' LIMIT 1 [["organization_id", "6eacebec-cdf8-11e4-96f6-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "6eacebec-cdf8-11e4-96f6-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('6eacebec-cdf8-11e4-96f6-705681abff85') Completed 200 OK in 13ms (Views: 3.9ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$3p9BxjIO4SNfLx2leZz05.EEiM1nZiANweHCag6XAzBxH2V69t4vK"], ["created_at", "2015-03-19 05:26:02.083218"], ["updated_at", "2015-03-19 05:26:02.083218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.084903"], ["user_id", "6eb41e76-cdf8-11e4-a14e-705681abff85"], ["created_at", "2015-03-19 05:26:02.085691"], ["updated_at", "2015-03-19 05:26:02.085691"], ["token", "l2qBN68AOBBkSCNw0NUGLZhwpwZV1v8O0IxGuEs9f00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.089315"], ["updated_at", "2015-03-19 05:26:02.089315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6eb41e76-cdf8-11e4-a14e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6eb5125e-cdf8-11e4-a8b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6eb41e76-cdf8-11e4-a14e-705681abff85"], ["organization_id", "6eb5125e-cdf8-11e4-a8b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.092841"], ["updated_at", "2015-03-19 05:26:02.092841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '6eb5125e-cdf8-11e4-a8b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "6eb5125e-cdf8-11e4-a8b3-705681abff85"], ["created_at", "2015-03-19 05:26:02.096106"], ["updated_at", "2015-03-19 05:26:02.096106"], ["token", "iWbbbjSDP8IM4wkq4QWKGGFm2AIij4hO_1DXqcnn5cc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$05KDRzu5VwsafPwlcsM59OiILT/n.rVWOzPJlm84RW99h7kBf5q02"], ["created_at", "2015-03-19 05:26:02.100754"], ["updated_at", "2015-03-19 05:26:02.100754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.104015"], ["updated_at", "2015-03-19 05:26:02.104015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6eb6cb6c-cdf8-11e4-a0dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '6eb749d4-cdf8-11e4-b100-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6eb6cb6c-cdf8-11e4-a0dd-705681abff85"], ["organization_id", "6eb749d4-cdf8-11e4-b100-705681abff85"], ["created_at", "2015-03-19 05:26:02.107135"], ["updated_at", "2015-03-19 05:26:02.107135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$5U/oEkWSbVWwd66iSmi00.0M2nP8bSKhdZrVkxy./gDqLFGn0XnQK"], ["created_at", "2015-03-19 05:26:02.117341"], ["updated_at", "2015-03-19 05:26:02.117341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.119070"], ["user_id", "6eb9533c-cdf8-11e4-b9ab-705681abff85"], ["created_at", "2015-03-19 05:26:02.119826"], ["updated_at", "2015-03-19 05:26:02.119826"], ["token", "BUauCq6rWppu_RR_lFH6ceBe_0KJZAOFTu6soAUXq9g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.123020"], ["updated_at", "2015-03-19 05:26:02.123020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6eb9533c-cdf8-11e4-b9ab-705681abff85' AND "clubhouse_memberships"."organization_id" = '6eba2fb4-cdf8-11e4-9b88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6eb9533c-cdf8-11e4-b9ab-705681abff85"], ["organization_id", "6eba2fb4-cdf8-11e4-9b88-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.127758"], ["updated_at", "2015-03-19 05:26:02.127758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '6eba2fb4-cdf8-11e4-9b88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "6eba2fb4-cdf8-11e4-9b88-705681abff85"], ["created_at", "2015-03-19 05:26:02.131238"], ["updated_at", "2015-03-19 05:26:02.131238"], ["token", "b2qEdvvh5qfJS5rkRbX72L8jeY-SzyJUTrZG1ZmN9f0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/6ebb73ba-cdf8-11e4-8312-705681abff85" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"6ebb73ba-cdf8-11e4-8312-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.135763' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BUauCq6rWppu_RR_lFH6ceBe_0KJZAOFTu6soAUXq9g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.138295"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.139274"], ["id", "6eb9b7b4-cdf8-11e4-81cb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6ebb73ba-cdf8-11e4-8312-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6eb9533c-cdf8-11e4-b9ab-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6eba2fb4-cdf8-11e4-9b88-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6eb9533c-cdf8-11e4-b9ab-705681abff85' LIMIT 1 [["organization_id", "6eba2fb4-cdf8-11e4-9b88-705681abff85"]] Unpermitted parameters: id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."id" != '6ebb73ba-cdf8-11e4-8312-705681abff85' AND "clubhouse_invitations"."organization_id" = '6eba2fb4-cdf8-11e4-9b88-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-19 05:26:02.147310"], ["id", "6ebb73ba-cdf8-11e4-8312-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.3ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$/2sHjxQ62QMX3FnX2AWWFewpqSBtpWfivfHl79.Fds11wmVywfmpa"], ["created_at", "2015-03-19 05:26:02.156462"], ["updated_at", "2015-03-19 05:26:02.156462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.158084"], ["user_id", "6ebf4c6a-cdf8-11e4-ae97-705681abff85"], ["created_at", "2015-03-19 05:26:02.158887"], ["updated_at", "2015-03-19 05:26:02.158887"], ["token", "FvNpy9ne9NQSVUDnitlFZ6kTQnvURnxnIQMOvnyupMw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.162129"], ["updated_at", "2015-03-19 05:26:02.162129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ebf4c6a-cdf8-11e4-ae97-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ec02450-cdf8-11e4-a75e-705681abff85') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ebf4c6a-cdf8-11e4-ae97-705681abff85"], ["organization_id", "6ec02450-cdf8-11e4-a75e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.174412"], ["updated_at", "2015-03-19 05:26:02.174412"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '6ec02450-cdf8-11e4-a75e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "6ec02450-cdf8-11e4-a75e-705681abff85"], ["created_at", "2015-03-19 05:26:02.241639"], ["updated_at", "2015-03-19 05:26:02.241639"], ["token", "aO9xbhmnxcC_mGlllLkANwXGCbTzLCfHQvItAjyBOFg"]]  (35.6ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$24zWZzoTFEg6a3iiRY4tXOhlaoePNw3FgSTfHDYpkDGYQBhsa9YOS"], ["created_at", "2015-03-19 05:26:02.306660"], ["updated_at", "2015-03-19 05:26:02.306660"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.312968"], ["user_id", "6ed68272-cdf8-11e4-83c3-705681abff85"], ["created_at", "2015-03-19 05:26:02.315622"], ["updated_at", "2015-03-19 05:26:02.315622"], ["token", "KW9sFwjjWKAQNuaIhIv9w1kkKPwZZLKt5NLL_uBzsh8"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.323722"], ["updated_at", "2015-03-19 05:26:02.323722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ed68272-cdf8-11e4-83c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ed8dc2a-cdf8-11e4-961a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ed68272-cdf8-11e4-83c3-705681abff85"], ["organization_id", "6ed8dc2a-cdf8-11e4-961a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.330337"], ["updated_at", "2015-03-19 05:26:02.330337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '6ed8dc2a-cdf8-11e4-961a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "6ed8dc2a-cdf8-11e4-961a-705681abff85"], ["created_at", "2015-03-19 05:26:02.336385"], ["updated_at", "2015-03-19 05:26:02.336385"], ["token", "QmKEDTMQrDFpJwAtcxkXQOzOyN15eIaRnSiNTO4I9bg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$bldbul9KZVBEquYypQnDbeopk.nOO9hmHaLF40YktNic9Z6YeirG6"], ["created_at", "2015-03-19 05:26:02.354155"], ["updated_at", "2015-03-19 05:26:02.354155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.356339"], ["user_id", "6edd7f96-cdf8-11e4-acd7-705681abff85"], ["created_at", "2015-03-19 05:26:02.357259"], ["updated_at", "2015-03-19 05:26:02.357259"], ["token", "8xHeD77SAh4K4csvDGgkxMCIEOFgT8JZATkpeG9GGok"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.364588"], ["updated_at", "2015-03-19 05:26:02.364588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6edd7f96-cdf8-11e4-acd7-705681abff85' AND "clubhouse_memberships"."organization_id" = '6edf0ed8-cdf8-11e4-8b3b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6edd7f96-cdf8-11e4-acd7-705681abff85"], ["organization_id", "6edf0ed8-cdf8-11e4-8b3b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.369029"], ["updated_at", "2015-03-19 05:26:02.369029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '6edf0ed8-cdf8-11e4-8b3b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "6edf0ed8-cdf8-11e4-8b3b-705681abff85"], ["created_at", "2015-03-19 05:26:02.374760"], ["updated_at", "2015-03-19 05:26:02.374760"], ["token", "8HR6In6ZOXRGjThoVBHiGrWkR4yF9MjJOYFrZeNxrZ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.380787' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8xHeD77SAh4K4csvDGgkxMCIEOFgT8JZATkpeG9GGok"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.382580"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.384054"], ["id", "6eddfbe2-cdf8-11e4-af99-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6edd7f96-cdf8-11e4-acd7-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6edf0ed8-cdf8-11e4-8b3b-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6edd7f96-cdf8-11e4-acd7-705681abff85' LIMIT 1 [["organization_id", "6edf0ed8-cdf8-11e4-8b3b-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '6edf0ed8-cdf8-11e4-8b3b-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$qCW1rgsBtNpEip8kqSMPqeGd8qoPAJI91A3GM8XAvkQfnA/Sk2BKq"], ["created_at", "2015-03-19 05:26:02.408653"], ["updated_at", "2015-03-19 05:26:02.408653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.410700"], ["user_id", "6ee5cb10-cdf8-11e4-a40b-705681abff85"], ["created_at", "2015-03-19 05:26:02.411481"], ["updated_at", "2015-03-19 05:26:02.411481"], ["token", "FsoadJgO-eAHaE_ryXCnaO7iyPIdGH8SuMid33SLDe8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.415533"], ["updated_at", "2015-03-19 05:26:02.415533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ee5cb10-cdf8-11e4-a40b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ee6cfe2-cdf8-11e4-a864-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ee5cb10-cdf8-11e4-a40b-705681abff85"], ["organization_id", "6ee6cfe2-cdf8-11e4-a864-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.420063"], ["updated_at", "2015-03-19 05:26:02.420063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '6ee6cfe2-cdf8-11e4-a864-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "6ee6cfe2-cdf8-11e4-a864-705681abff85"], ["created_at", "2015-03-19 05:26:02.425067"], ["updated_at", "2015-03-19 05:26:02.425067"], ["token", "1Sz-S-ZK2OiX67eFpJNqeQTGnWH5-iD1rOug45yrCTg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.429980' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FsoadJgO-eAHaE_ryXCnaO7iyPIdGH8SuMid33SLDe8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.431939"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.433319"], ["id", "6ee63af0-cdf8-11e4-9ff3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ee5cb10-cdf8-11e4-a40b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ee6cfe2-cdf8-11e4-a864-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6ee5cb10-cdf8-11e4-a40b-705681abff85' LIMIT 1 [["organization_id", "6ee6cfe2-cdf8-11e4-a864-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6ee6cfe2-cdf8-11e4-a864-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "6ee6cfe2-cdf8-11e4-a864-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.444220"], ["updated_at", "2015-03-19 05:26:02.444220"], ["token", "KKrGRxkW9slHCLMnaWe7AUSg1JgqNAPe5MnUHdkZk6I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: eebf898a-ac95-4ce3-ab1c-ca79c1e66499) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6eeb6926-cdf8-11e4-aa49-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6eeb6926-cdf8-11e4-aa49-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [eebf898a-ac95-4ce3-ab1c-ca79c1e66499] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6eeb6926-cdf8-11e4-aa49-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [eebf898a-ac95-4ce3-ab1c-ca79c1e66499] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ee6cfe2-cdf8-11e4-a864-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [eebf898a-ac95-4ce3-ab1c-ca79c1e66499] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [eebf898a-ac95-4ce3-ab1c-ca79c1e66499] Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms [ActiveJob] [ActionMailer::DeliveryJob] [eebf898a-ac95-4ce3-ab1c-ca79c1e66499] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [eebf898a-ac95-4ce3-ab1c-ca79c1e66499] Date: Wed, 18 Mar 2015 22:26:02 -0700 From: from@example.com To: email@example.com Message-ID: <550a5dea7448d_e3b43ff2b884dbf06803@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/KKrGRxkW9slHCLMnaWe7AUSg1JgqNAPe5MnUHdkZk6I?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [eebf898a-ac95-4ce3-ab1c-ca79c1e66499] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.22ms Completed 201 Created in 49ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$ZSrt1p4.pI91DWcz8cBsb.S2CIYa3jl.66FTVsIWGsQ7Lt/miAFnC"], ["created_at", "2015-03-19 05:26:02.484253"], ["updated_at", "2015-03-19 05:26:02.484253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.485864"], ["user_id", "6ef14fd0-cdf8-11e4-9ed1-705681abff85"], ["created_at", "2015-03-19 05:26:02.486607"], ["updated_at", "2015-03-19 05:26:02.486607"], ["token", "OVmfAkWgLcldNF0RbkBiElXQ4D1dATunBZAOyOctnOI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.490072"], ["updated_at", "2015-03-19 05:26:02.490072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ef14fd0-cdf8-11e4-9ed1-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ef23256-cdf8-11e4-9118-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ef14fd0-cdf8-11e4-9ed1-705681abff85"], ["organization_id", "6ef23256-cdf8-11e4-9118-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.493355"], ["updated_at", "2015-03-19 05:26:02.493355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '6ef23256-cdf8-11e4-9118-705681abff85') LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "6ef23256-cdf8-11e4-9118-705681abff85"], ["created_at", "2015-03-19 05:26:02.496842"], ["updated_at", "2015-03-19 05:26:02.496842"], ["token", "majE_UlpMTWcksPBaXiX91_eUZ8_RBAO07KRiSgVKrc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.504549' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OVmfAkWgLcldNF0RbkBiElXQ4D1dATunBZAOyOctnOI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.506124"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.507147"], ["id", "6ef1b312-cdf8-11e4-b48b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ef14fd0-cdf8-11e4-9ed1-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ef23256-cdf8-11e4-9118-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6ef14fd0-cdf8-11e4-9ed1-705681abff85' LIMIT 1 [["organization_id", "6ef23256-cdf8-11e4-9118-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6ef23256-cdf8-11e4-9118-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "6ef23256-cdf8-11e4-9118-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.514948"], ["updated_at", "2015-03-19 05:26:02.514948"], ["token", "FEu2fswgtl1Hm3bZ4PgALnkKetkaeWMcxQHqDaY76Jw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1cf17257-4b24-4ee5-b2ba-a441a78a21b7) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6ef6057a-cdf8-11e4-b113-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6ef6057a-cdf8-11e4-b113-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1cf17257-4b24-4ee5-b2ba-a441a78a21b7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6ef6057a-cdf8-11e4-b113-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [1cf17257-4b24-4ee5-b2ba-a441a78a21b7] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ef23256-cdf8-11e4-9118-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [1cf17257-4b24-4ee5-b2ba-a441a78a21b7] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [1cf17257-4b24-4ee5-b2ba-a441a78a21b7] Clubhouse::Mailer#invitation: processed outbound mail in 3.2ms [ActiveJob] [ActionMailer::DeliveryJob] [1cf17257-4b24-4ee5-b2ba-a441a78a21b7] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [1cf17257-4b24-4ee5-b2ba-a441a78a21b7] Date: Wed, 18 Mar 2015 22:26:02 -0700 From: from@example.com To: email@example.com Message-ID: <550a5dea7fe64_e3b43ff2b884dbf0681ed@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/FEu2fswgtl1Hm3bZ4PgALnkKetkaeWMcxQHqDaY76Jw?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [1cf17257-4b24-4ee5-b2ba-a441a78a21b7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.43ms Completed 201 Created in 22ms (Views: 1.0ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$Kx8UB4232D0VzHtpKJbD1.rlfqq8P9oODPptLqaANNwpIh8WFt/va"], ["created_at", "2015-03-19 05:26:02.532973"], ["updated_at", "2015-03-19 05:26:02.532973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.534550"], ["user_id", "6ef8bebe-cdf8-11e4-a724-705681abff85"], ["created_at", "2015-03-19 05:26:02.535319"], ["updated_at", "2015-03-19 05:26:02.535319"], ["token", "bZJFJVcqbh1Yz5RbwCqskGzfugBmQEXcyM38CIo8Wuw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.538561"], ["updated_at", "2015-03-19 05:26:02.538561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ef8bebe-cdf8-11e4-a724-705681abff85' AND "clubhouse_memberships"."organization_id" = '6ef99596-cdf8-11e4-8ddd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ef8bebe-cdf8-11e4-a724-705681abff85"], ["organization_id", "6ef99596-cdf8-11e4-8ddd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.541724"], ["updated_at", "2015-03-19 05:26:02.541724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '6ef99596-cdf8-11e4-8ddd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "6ef99596-cdf8-11e4-8ddd-705681abff85"], ["created_at", "2015-03-19 05:26:02.545059"], ["updated_at", "2015-03-19 05:26:02.545059"], ["token", "lybmczKXechoWDCGr_M8EpGDTKoiRA5sGsU-CLbGyGw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/6efa977a-cdf8-11e4-acb7-705681abff85" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"6efa977a-cdf8-11e4-acb7-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.549823' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bZJFJVcqbh1Yz5RbwCqskGzfugBmQEXcyM38CIo8Wuw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.551205"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.552162"], ["id", "6ef91e2c-cdf8-11e4-b33a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6efa977a-cdf8-11e4-acb7-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ef8bebe-cdf8-11e4-a724-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ef99596-cdf8-11e4-8ddd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6ef8bebe-cdf8-11e4-a724-705681abff85' LIMIT 1 [["organization_id", "6ef99596-cdf8-11e4-8ddd-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6efa977a-cdf8-11e4-acb7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$6Sw1zo2lq0.Kh/vGGV3zUuDpMMnqL8Hp81Q.guCQeYon8S3uhc3Qq"], ["created_at", "2015-03-19 05:26:02.565928"], ["updated_at", "2015-03-19 05:26:02.565928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.567639"], ["user_id", "6efdc846-cdf8-11e4-8557-705681abff85"], ["created_at", "2015-03-19 05:26:02.568401"], ["updated_at", "2015-03-19 05:26:02.568401"], ["token", "0w_4GTs67bMGUsEdEcBqQ2kgvybkSeUfKMtO8XvVLf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.571876"], ["updated_at", "2015-03-19 05:26:02.571876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6efdc846-cdf8-11e4-8557-705681abff85' AND "clubhouse_memberships"."organization_id" = '6efeaf86-cdf8-11e4-ac25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6efdc846-cdf8-11e4-8557-705681abff85"], ["organization_id", "6efeaf86-cdf8-11e4-ac25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.575216"], ["updated_at", "2015-03-19 05:26:02.575216"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '6efeaf86-cdf8-11e4-ac25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "6efeaf86-cdf8-11e4-ac25-705681abff85"], ["created_at", "2015-03-19 05:26:02.579685"], ["updated_at", "2015-03-19 05:26:02.579685"], ["token", "yf5YfGAVzGnzOsTz74uOTvzMkb8Hx-6-mF-fetkGQSc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$EYpmnGhQh.RZubHhw77Nn.eU9RwZw4Qg/u2HRNWimpxR7pPPUpmDe"], ["created_at", "2015-03-19 05:26:02.591003"], ["updated_at", "2015-03-19 05:26:02.591003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.593379"], ["user_id", "6f01abf0-cdf8-11e4-bd15-705681abff85"], ["created_at", "2015-03-19 05:26:02.594126"], ["updated_at", "2015-03-19 05:26:02.594126"], ["token", "ehFPAtUOeSm8F5YlUDJ8YGu_uKDE5tweAwZ_d-ztLqE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.599496"], ["updated_at", "2015-03-19 05:26:02.599496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f01abf0-cdf8-11e4-bd15-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f02e3a8-cdf8-11e4-9a54-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f01abf0-cdf8-11e4-bd15-705681abff85"], ["organization_id", "6f02e3a8-cdf8-11e4-9a54-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.602734"], ["updated_at", "2015-03-19 05:26:02.602734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '6f02e3a8-cdf8-11e4-9a54-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "6f02e3a8-cdf8-11e4-9a54-705681abff85"], ["created_at", "2015-03-19 05:26:02.606397"], ["updated_at", "2015-03-19 05:26:02.606397"], ["token", "z2pe5WCKPbPu7osbXf-AK24BqItCKN-pAz0K_JAC7mk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$9uKhdUqEwDu/QESwFWlH/OT3Q3HlDl5EoHCrPXSV9JZbCqngXJoEO"], ["created_at", "2015-03-19 05:26:02.616733"], ["updated_at", "2015-03-19 05:26:02.616733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.618445"], ["user_id", "6f05887e-cdf8-11e4-a31e-705681abff85"], ["created_at", "2015-03-19 05:26:02.619345"], ["updated_at", "2015-03-19 05:26:02.619345"], ["token", "HC8OjDcGPPf6y14YAaQuSCPimMWvTHcOZsTzcslvUFs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.623239"], ["updated_at", "2015-03-19 05:26:02.623239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f05887e-cdf8-11e4-a31e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f0682e2-cdf8-11e4-a437-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f05887e-cdf8-11e4-a31e-705681abff85"], ["organization_id", "6f0682e2-cdf8-11e4-a437-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.626630"], ["updated_at", "2015-03-19 05:26:02.626630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '6f0682e2-cdf8-11e4-a437-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "6f0682e2-cdf8-11e4-a437-705681abff85"], ["created_at", "2015-03-19 05:26:02.630998"], ["updated_at", "2015-03-19 05:26:02.630998"], ["token", "XWR0RkHEmo9yq5C8xh5pCEDjTWVHhhBm9ViBzG7TW88"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/6f0682e2-cdf8-11e4-a437-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"6f0682e2-cdf8-11e4-a437-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.635769' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HC8OjDcGPPf6y14YAaQuSCPimMWvTHcOZsTzcslvUFs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.637302"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.638296"], ["id", "6f05fb06-cdf8-11e4-9b73-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6f0682e2-cdf8-11e4-a437-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6f05887e-cdf8-11e4-a31e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6f0682e2-cdf8-11e4-a437-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f05887e-cdf8-11e4-a31e-705681abff85' LIMIT 1 [["organization_id", "6f0682e2-cdf8-11e4-a437-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '6f0682e2-cdf8-11e4-a437-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$XPfsIRES4dTO1QDUehQu4.HilErwzrRo897fLnQVnm2viCZS6.k6a"], ["created_at", "2015-03-19 05:26:02.653678"], ["updated_at", "2015-03-19 05:26:02.653678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.656467"], ["user_id", "6f0b42dc-cdf8-11e4-9736-705681abff85"], ["created_at", "2015-03-19 05:26:02.657307"], ["updated_at", "2015-03-19 05:26:02.657307"], ["token", "V2m7JTBPUaLrfCzKxj3QlYyWiYE44a1o4t7wFx_wT9I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.661173"], ["updated_at", "2015-03-19 05:26:02.661173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f0b42dc-cdf8-11e4-9736-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f0c50b4-cdf8-11e4-9d11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f0b42dc-cdf8-11e4-9736-705681abff85"], ["organization_id", "6f0c50b4-cdf8-11e4-9d11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.665068"], ["updated_at", "2015-03-19 05:26:02.665068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '6f0c50b4-cdf8-11e4-9d11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "6f0c50b4-cdf8-11e4-9d11-705681abff85"], ["created_at", "2015-03-19 05:26:02.668694"], ["updated_at", "2015-03-19 05:26:02.668694"], ["token", "2dhIBA_pSJ4Ur0RuXm9v2VWuuirfNOlH5VZcxlXvDtE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/6f0c50b4-cdf8-11e4-9d11-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"6f0c50b4-cdf8-11e4-9d11-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.673533' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "V2m7JTBPUaLrfCzKxj3QlYyWiYE44a1o4t7wFx_wT9I"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.675420"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.677304"], ["id", "6f0bc43c-cdf8-11e4-8847-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6f0c50b4-cdf8-11e4-9d11-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6f0b42dc-cdf8-11e4-9736-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6f0c50b4-cdf8-11e4-9d11-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f0b42dc-cdf8-11e4-9736-705681abff85' LIMIT 1 [["organization_id", "6f0c50b4-cdf8-11e4-9d11-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6f0c50b4-cdf8-11e4-9d11-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "6f0c50b4-cdf8-11e4-9d11-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.685551"], ["updated_at", "2015-03-19 05:26:02.685551"], ["token", "iSXmwSFd2Q5NJD7prec0i3XrN1hO77m1mGE0-1-AJ5Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3b9e2b73-b9f8-4615-a011-975e5e468b55) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6f10115e-cdf8-11e4-802f-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6f10115e-cdf8-11e4-802f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3b9e2b73-b9f8-4615-a011-975e5e468b55] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6f10115e-cdf8-11e4-802f-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [3b9e2b73-b9f8-4615-a011-975e5e468b55] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6f0c50b4-cdf8-11e4-9d11-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3b9e2b73-b9f8-4615-a011-975e5e468b55] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [3b9e2b73-b9f8-4615-a011-975e5e468b55] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [3b9e2b73-b9f8-4615-a011-975e5e468b55] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [3b9e2b73-b9f8-4615-a011-975e5e468b55] Date: Wed, 18 Mar 2015 22:26:02 -0700 From: from@example.com To: email@example.com Message-ID: <550a5deaa933a_e3b43ff2b884dbf06821e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/iSXmwSFd2Q5NJD7prec0i3XrN1hO77m1mGE0-1-AJ5Y?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [3b9e2b73-b9f8-4615-a011-975e5e468b55] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.27ms Completed 201 Created in 22ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$yGcg6QHcx2kdYd/rWhxfMumRfL9klokYS7MDgSP26fjPWX31HDdAG"], ["created_at", "2015-03-19 05:26:02.701697"], ["updated_at", "2015-03-19 05:26:02.701697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.703368"], ["user_id", "6f12807e-cdf8-11e4-96cc-705681abff85"], ["created_at", "2015-03-19 05:26:02.704145"], ["updated_at", "2015-03-19 05:26:02.704145"], ["token", "AHspKoJ5xjCyxvTO6uG90ow7bxzBMjROEr_ho92Wbko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.707529"], ["updated_at", "2015-03-19 05:26:02.707529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f12807e-cdf8-11e4-96cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f13600c-cdf8-11e4-ae6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f12807e-cdf8-11e4-96cc-705681abff85"], ["organization_id", "6f13600c-cdf8-11e4-ae6f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.710965"], ["updated_at", "2015-03-19 05:26:02.710965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '6f13600c-cdf8-11e4-ae6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "6f13600c-cdf8-11e4-ae6f-705681abff85"], ["created_at", "2015-03-19 05:26:02.714957"], ["updated_at", "2015-03-19 05:26:02.714957"], ["token", "16FVHsc5CVMNnNL33kNmwja_QlBuy5QPB93PEXnA1Io"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/6f13600c-cdf8-11e4-ae6f-705681abff85/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"6f13600c-cdf8-11e4-ae6f-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.719595' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AHspKoJ5xjCyxvTO6uG90ow7bxzBMjROEr_ho92Wbko"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.721045"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.722034"], ["id", "6f12e258-cdf8-11e4-9ffb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6f13600c-cdf8-11e4-ae6f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6f12807e-cdf8-11e4-96cc-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6f13600c-cdf8-11e4-ae6f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f12807e-cdf8-11e4-96cc-705681abff85' LIMIT 1 [["organization_id", "6f13600c-cdf8-11e4-ae6f-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6f13600c-cdf8-11e4-ae6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "6f13600c-cdf8-11e4-ae6f-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.729063"], ["updated_at", "2015-03-19 05:26:02.729063"], ["token", "Azn34Ao460wwiqG9wOvhHzDnUBbR17TY9N8GX3n4ewU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d00f2379-aa07-4f6d-82d2-6508a0f794ec) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6f16b4b4-cdf8-11e4-90e3-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6f16b4b4-cdf8-11e4-90e3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d00f2379-aa07-4f6d-82d2-6508a0f794ec] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6f16b4b4-cdf8-11e4-90e3-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [d00f2379-aa07-4f6d-82d2-6508a0f794ec] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6f13600c-cdf8-11e4-ae6f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d00f2379-aa07-4f6d-82d2-6508a0f794ec] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d00f2379-aa07-4f6d-82d2-6508a0f794ec] Clubhouse::Mailer#invitation: processed outbound mail in 2.5ms [ActiveJob] [ActionMailer::DeliveryJob] [d00f2379-aa07-4f6d-82d2-6508a0f794ec] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [d00f2379-aa07-4f6d-82d2-6508a0f794ec] Date: Wed, 18 Mar 2015 22:26:02 -0700 From: from@example.com To: email@example.com Message-ID: <550a5deab3f8a_e3b43ff2b884dbf068362@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Azn34Ao460wwiqG9wOvhHzDnUBbR17TY9N8GX3n4ewU?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d00f2379-aa07-4f6d-82d2-6508a0f794ec] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.78ms Completed 201 Created in 20ms (Views: 0.9ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$K2IMOGTi0tk3VU8pxSKtluAdUpaVWUqtLxgJUZ1l5NCj5O9bQvSDG"], ["created_at", "2015-03-19 05:26:02.746088"], ["updated_at", "2015-03-19 05:26:02.746088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.747992"], ["user_id", "6f194a30-cdf8-11e4-a93e-705681abff85"], ["created_at", "2015-03-19 05:26:02.748791"], ["updated_at", "2015-03-19 05:26:02.748791"], ["token", "clzB4KF6P_yocGmT7TrEcvy9gR0vpa9W7R5kBIr_Me0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.752165"], ["updated_at", "2015-03-19 05:26:02.752165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f194a30-cdf8-11e4-a93e-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f1a2e5a-cdf8-11e4-862e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f194a30-cdf8-11e4-a93e-705681abff85"], ["organization_id", "6f1a2e5a-cdf8-11e4-862e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.755391"], ["updated_at", "2015-03-19 05:26:02.755391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '6f1a2e5a-cdf8-11e4-862e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "6f1a2e5a-cdf8-11e4-862e-705681abff85"], ["created_at", "2015-03-19 05:26:02.758938"], ["updated_at", "2015-03-19 05:26:02.758938"], ["token", "sc3GIuvsPisZTqg4AeC5yEGrBpftdN8jp5SmCvqbfeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$ja.APNW0Lk6Wb95EKGMhS.m65z6EafwG1DFc6UhxLwNPrHVwnXxYu"], ["created_at", "2015-03-19 05:26:02.763479"], ["updated_at", "2015-03-19 05:26:02.763479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.766541"], ["updated_at", "2015-03-19 05:26:02.766541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f1be9de-cdf8-11e4-a75a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f1c60ee-cdf8-11e4-b3e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6f1be9de-cdf8-11e4-a75a-705681abff85"], ["organization_id", "6f1c60ee-cdf8-11e4-b3e0-705681abff85"], ["created_at", "2015-03-19 05:26:02.769766"], ["updated_at", "2015-03-19 05:26:02.769766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.774328' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "clzB4KF6P_yocGmT7TrEcvy9gR0vpa9W7R5kBIr_Me0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.775825"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.776860"], ["id", "6f19b1f0-cdf8-11e4-b483-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6f194a30-cdf8-11e4-a93e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f194a30-cdf8-11e4-a93e-705681abff85' LIMIT 1 [["organization_id", "6f1a2e5a-cdf8-11e4-862e-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "6f1a2e5a-cdf8-11e4-862e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('6f1a2e5a-cdf8-11e4-862e-705681abff85') Completed 200 OK in 12ms (Views: 2.3ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$bJCR1YK6jmNTgqyCfEtve.DqZenKZBnc0Pb2gvVuEX/wTqRfUBrm6"], ["created_at", "2015-03-19 05:26:02.793921"], ["updated_at", "2015-03-19 05:26:02.793921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.796124"], ["user_id", "6f209d30-cdf8-11e4-a404-705681abff85"], ["created_at", "2015-03-19 05:26:02.796907"], ["updated_at", "2015-03-19 05:26:02.796907"], ["token", "MQiNP6DrsvzazwTjArN-Y-Udq53WDEliStvtYyn0zgE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.800629"], ["updated_at", "2015-03-19 05:26:02.800629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f209d30-cdf8-11e4-a404-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f219456-cdf8-11e4-83cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f209d30-cdf8-11e4-a404-705681abff85"], ["organization_id", "6f219456-cdf8-11e4-83cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.803887"], ["updated_at", "2015-03-19 05:26:02.803887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '6f219456-cdf8-11e4-83cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "6f219456-cdf8-11e4-83cc-705681abff85"], ["created_at", "2015-03-19 05:26:02.807729"], ["updated_at", "2015-03-19 05:26:02.807729"], ["token", "BDG5ehHgS3LE9nGSrGLgZ_wIwA8lpM1lbx9mdh6RnEM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$rmhywzX5LsI3JPpxDzvg2.eWfPHLlYHAkcWrEwVZNZfPnPT7mkwti"], ["created_at", "2015-03-19 05:26:02.812262"], ["updated_at", "2015-03-19 05:26:02.812262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.815872"], ["updated_at", "2015-03-19 05:26:02.815872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f2361dc-cdf8-11e4-b308-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f23e9fe-cdf8-11e4-a7ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6f2361dc-cdf8-11e4-b308-705681abff85"], ["organization_id", "6f23e9fe-cdf8-11e4-a7ee-705681abff85"], ["created_at", "2015-03-19 05:26:02.819227"], ["updated_at", "2015-03-19 05:26:02.819227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$4PQLlmYi1Y8ZahFNRc4Xzu2eLknDck66QATM7BUlv9Io6T4fNbklC"], ["created_at", "2015-03-19 05:26:02.829348"], ["updated_at", "2015-03-19 05:26:02.829348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.831799"], ["user_id", "6f260630-cdf8-11e4-89f6-705681abff85"], ["created_at", "2015-03-19 05:26:02.832712"], ["updated_at", "2015-03-19 05:26:02.832712"], ["token", "Wo16Nt6Tru6_5S235DfjJTHJCA7q1PDFUOQwyU0sWuo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.836215"], ["updated_at", "2015-03-19 05:26:02.836215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f260630-cdf8-11e4-89f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f2701a2-cdf8-11e4-a36c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f260630-cdf8-11e4-89f6-705681abff85"], ["organization_id", "6f2701a2-cdf8-11e4-a36c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.839441"], ["updated_at", "2015-03-19 05:26:02.839441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '6f2701a2-cdf8-11e4-a36c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "6f2701a2-cdf8-11e4-a36c-705681abff85"], ["created_at", "2015-03-19 05:26:02.842762"], ["updated_at", "2015-03-19 05:26:02.842762"], ["token", "BG0IM8wpKXrZ7dkbzBKEWQEA-lOsU7UJnl6OeNXsMPU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/6f280598-cdf8-11e4-b4ef-705681abff85" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"6f280598-cdf8-11e4-b4ef-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-05 05:26:02.848541' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Wo16Nt6Tru6_5S235DfjJTHJCA7q1PDFUOQwyU0sWuo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-19 05:26:02.849994"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-19 05:26:02.851194"], ["id", "6f268380-cdf8-11e4-a554-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6f280598-cdf8-11e4-b4ef-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6f260630-cdf8-11e4-89f6-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6f2701a2-cdf8-11e4-a36c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f260630-cdf8-11e4-89f6-705681abff85' LIMIT 1 [["organization_id", "6f2701a2-cdf8-11e4-a36c-705681abff85"]] Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$7sY88AXVDJPzlDwgwUB0j.RjvtUgy2mccfHRl/AUPE4SG.ZOodI6G"], ["created_at", "2015-03-19 05:26:02.862837"], ["updated_at", "2015-03-19 05:26:02.862837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-19 05:26:02.864628"], ["user_id", "6f2b1b3e-cdf8-11e4-be2b-705681abff85"], ["created_at", "2015-03-19 05:26:02.865367"], ["updated_at", "2015-03-19 05:26:02.865367"], ["token", "ieatmFGIcOcTOqr2Ctnn503PMKm2kDqDOS7hJevsaeQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.871096"], ["updated_at", "2015-03-19 05:26:02.871096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f2b1b3e-cdf8-11e4-be2b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f2c55ee-cdf8-11e4-8f18-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f2b1b3e-cdf8-11e4-be2b-705681abff85"], ["organization_id", "6f2c55ee-cdf8-11e4-8f18-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:02.874763"], ["updated_at", "2015-03-19 05:26:02.874763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '6f2c55ee-cdf8-11e4-8f18-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "6f2c55ee-cdf8-11e4-8f18-705681abff85"], ["created_at", "2015-03-19 05:26:02.880279"], ["updated_at", "2015-03-19 05:26:02.880279"], ["token", "q3GwNd02VrM8SisUNy1FBNGfCKOAQgSdG_G1jBOGLE0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-18 22:26:02 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.890142"], ["updated_at", "2015-03-19 05:26:02.890142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '6f2f582a-cdf8-11e4-8946-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "6f2f582a-cdf8-11e4-8946-705681abff85"], ["created_at", "2015-03-19 05:26:02.896246"], ["updated_at", "2015-03-19 05:26:02.896246"], ["token", "aTpxG_2ue8fOj09pl64HWkKKx-lIfXxFmls8pDv4fcg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6f2f582a-cdf8-11e4-8946-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '6f2f582a-cdf8-11e4-8946-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6f2f582a-cdf8-11e4-8946-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '6f2f582a-cdf8-11e4-8946-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.928784"], ["updated_at", "2015-03-19 05:26:02.928784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6f3526c4-cdf8-11e4-a117-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "6f3526c4-cdf8-11e4-a117-705681abff85"], ["created_at", "2015-03-19 05:26:02.931922"], ["updated_at", "2015-03-19 05:26:02.931922"], ["token", "Sh1YYJIdka_nuU6vcYW4K8RpoQCYU76Lhg0Kp1BCV8o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$s1x3D3vK3TC.w2J8bdAwYOQnuL8hBfZDEAJYTd7RiwPYcuHS6.tfa"], ["created_at", "2015-03-19 05:26:02.938397"], ["updated_at", "2015-03-19 05:26:02.938397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.941639"], ["updated_at", "2015-03-19 05:26:02.941639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '6f371894-cdf8-11e4-82a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "6f371894-cdf8-11e4-82a3-705681abff85"], ["created_at", "2015-03-19 05:26:02.945278"], ["updated_at", "2015-03-19 05:26:02.945278"], ["token", "7lJaffSXZf4Mfm-H6ysK7NefCY5V17V9Q56b-f-4744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f369b9e-cdf8-11e4-a368-705681abff85' LIMIT 1 [["organization_id", "6f371894-cdf8-11e4-82a3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$YTKh81FHnHMXJxD.s/1KbenAwSDcytNsfcDchmY2F.t0y2XVN8pNK"], ["created_at", "2015-03-19 05:26:02.952946"], ["updated_at", "2015-03-19 05:26:02.952946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.956031"], ["updated_at", "2015-03-19 05:26:02.956031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '6f394902-cdf8-11e4-9ebd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "6f394902-cdf8-11e4-9ebd-705681abff85"], ["created_at", "2015-03-19 05:26:02.959258"], ["updated_at", "2015-03-19 05:26:02.959258"], ["token", "s80p1KoZ3dgD4uD8Mb5LQhT1RPT_yIBznE5RWcJGyiw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f38d3c8-cdf8-11e4-8fe8-705681abff85' LIMIT 1 [["organization_id", "6f394902-cdf8-11e4-9ebd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$v76M9cRu3cWbq8SnY3mr9O2Hl1UuhFND6/Qc1.yT5UlFBMmOUuz/q"], ["created_at", "2015-03-19 05:26:02.968547"], ["updated_at", "2015-03-19 05:26:02.968547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.972031"], ["updated_at", "2015-03-19 05:26:02.972031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '6f3bc13c-cdf8-11e4-ab3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "6f3bc13c-cdf8-11e4-ab3e-705681abff85"], ["created_at", "2015-03-19 05:26:02.975878"], ["updated_at", "2015-03-19 05:26:02.975878"], ["token", "MhBIHXZepP0zYtIjq7ubfjVkL2NxKEZkzCeuNCiVuog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f3b3668-cdf8-11e4-a6c8-705681abff85' LIMIT 1 [["organization_id", "6f3bc13c-cdf8-11e4-ab3e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$fEmVy9D0yp.TyXtHZpRJg.h4WgR4QQPAEcQNQU3raM8DVk5LGY2MK"], ["created_at", "2015-03-19 05:26:02.983170"], ["updated_at", "2015-03-19 05:26:02.983170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:02.986302"], ["updated_at", "2015-03-19 05:26:02.986302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '6f3de8ae-cdf8-11e4-b441-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "6f3de8ae-cdf8-11e4-b441-705681abff85"], ["created_at", "2015-03-19 05:26:02.989726"], ["updated_at", "2015-03-19 05:26:02.989726"], ["token", "qqgvkCUE5ojTyNv7ZNf7AIOiR6cxluqx4scMU6nyL3Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f3d70cc-cdf8-11e4-8e0e-705681abff85' LIMIT 1 [["organization_id", "6f3de8ae-cdf8-11e4-b441-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$E.sYoxDXzAgdL1RTo1RAJ.YmRVinNgtp1JNaZk2.dpmPO0Llz4Mc2"], ["created_at", "2015-03-19 05:26:02.997692"], ["updated_at", "2015-03-19 05:26:02.997692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.001428"], ["updated_at", "2015-03-19 05:26:03.001428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f3fb148-cdf8-11e4-9c7c-705681abff85' LIMIT 1 [["organization_id", "6f403b2c-cdf8-11e4-a0d1-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$avLot6oCAkrf7bNIjs/MSecQ0FBrYQ9DFHyJlxk8ApUj23cma7EoG"], ["created_at", "2015-03-19 05:26:03.008887"], ["updated_at", "2015-03-19 05:26:03.008887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.012899"], ["updated_at", "2015-03-19 05:26:03.012899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f415b06-cdf8-11e4-9c69-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f42098e-cdf8-11e4-bec6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6f415b06-cdf8-11e4-9c69-705681abff85"], ["organization_id", "6f42098e-cdf8-11e4-bec6-705681abff85"], ["created_at", "2015-03-19 05:26:03.017607"], ["updated_at", "2015-03-19 05:26:03.017607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '6f42098e-cdf8-11e4-bec6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "6f42098e-cdf8-11e4-bec6-705681abff85"], ["created_at", "2015-03-19 05:26:03.021128"], ["updated_at", "2015-03-19 05:26:03.021128"], ["token", "3UfekhO5Rm9KMk7_dyryEHSQSuXIwBvvd1EukULZ6fE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f415b06-cdf8-11e4-9c69-705681abff85' LIMIT 1 [["organization_id", "6f42098e-cdf8-11e4-bec6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$tS5BOBiJ5/5xEQ/LBCAyMelSZHLkeLNBaVjX6p7pxD7hK3/ZvqC6i"], ["created_at", "2015-03-19 05:26:03.029517"], ["updated_at", "2015-03-19 05:26:03.029517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.034261"], ["updated_at", "2015-03-19 05:26:03.034261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f4492a8-cdf8-11e4-89e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f453e74-cdf8-11e4-b349-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6f4492a8-cdf8-11e4-89e4-705681abff85"], ["organization_id", "6f453e74-cdf8-11e4-b349-705681abff85"], ["created_at", "2015-03-19 05:26:03.037951"], ["updated_at", "2015-03-19 05:26:03.037951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '6f453e74-cdf8-11e4-b349-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "6f453e74-cdf8-11e4-b349-705681abff85"], ["created_at", "2015-03-19 05:26:03.041776"], ["updated_at", "2015-03-19 05:26:03.041776"], ["token", "ki5YFs6qTCBAyN7S8_xyfPcIBArq8fU_QqivIutYv-E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f4492a8-cdf8-11e4-89e4-705681abff85' LIMIT 1 [["organization_id", "6f453e74-cdf8-11e4-b349-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$dVIDb.6Eq9zy0q2K4pg.reKonfzYU.xiPw7D8e/10g//zpTkZgRH2"], ["created_at", "2015-03-19 05:26:03.049701"], ["updated_at", "2015-03-19 05:26:03.049701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.052941"], ["updated_at", "2015-03-19 05:26:03.052941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f47991c-cdf8-11e4-b0d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f4811a8-cdf8-11e4-87cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6f47991c-cdf8-11e4-b0d6-705681abff85"], ["organization_id", "6f4811a8-cdf8-11e4-87cd-705681abff85"], ["created_at", "2015-03-19 05:26:03.055881"], ["updated_at", "2015-03-19 05:26:03.055881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '6f4811a8-cdf8-11e4-87cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "6f4811a8-cdf8-11e4-87cd-705681abff85"], ["created_at", "2015-03-19 05:26:03.059039"], ["updated_at", "2015-03-19 05:26:03.059039"], ["token", "4V5E3BbvsSnlC84VipmwtEI0LrdA12LEGBNItPW3iiI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f47991c-cdf8-11e4-b0d6-705681abff85' LIMIT 1 [["organization_id", "6f4811a8-cdf8-11e4-87cd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$HijKXqAL4DorbHPKAn/B0OIvk.vt14pYDVQ1QyFtIDAjTWx1k2iHq"], ["created_at", "2015-03-19 05:26:03.066665"], ["updated_at", "2015-03-19 05:26:03.066665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.071865"], ["updated_at", "2015-03-19 05:26:03.071865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f4a2c9a-cdf8-11e4-9960-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f4afb7a-cdf8-11e4-a3d6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6f4a2c9a-cdf8-11e4-9960-705681abff85"], ["organization_id", "6f4afb7a-cdf8-11e4-a3d6-705681abff85"], ["created_at", "2015-03-19 05:26:03.075606"], ["updated_at", "2015-03-19 05:26:03.075606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '6f4afb7a-cdf8-11e4-a3d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "6f4afb7a-cdf8-11e4-a3d6-705681abff85"], ["created_at", "2015-03-19 05:26:03.079744"], ["updated_at", "2015-03-19 05:26:03.079744"], ["token", "bPdzvK4dn33AhhwwgKzv2BiAh3OoDK-muYqvZEf3z_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f4a2c9a-cdf8-11e4-9960-705681abff85' LIMIT 1 [["organization_id", "6f4afb7a-cdf8-11e4-a3d6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$3tBNDd12u8dDAGrzvktV3OWUMvUsWTF0NNyjIiqIiQwJtz7fJ9r/a"], ["created_at", "2015-03-19 05:26:03.087815"], ["updated_at", "2015-03-19 05:26:03.087815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.091008"], ["updated_at", "2015-03-19 05:26:03.091008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f4d6978-cdf8-11e4-897a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f4de4e8-cdf8-11e4-bd8e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6f4d6978-cdf8-11e4-897a-705681abff85"], ["organization_id", "6f4de4e8-cdf8-11e4-bd8e-705681abff85"], ["created_at", "2015-03-19 05:26:03.094528"], ["updated_at", "2015-03-19 05:26:03.094528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f4d6978-cdf8-11e4-897a-705681abff85' LIMIT 1 [["organization_id", "6f4de4e8-cdf8-11e4-bd8e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$nPcEo/GA2x5oOy13Qp4k/ewyp/5ewd95Xdb6tHTncSjMbUlKAgyAW"], ["created_at", "2015-03-19 05:26:03.102340"], ["updated_at", "2015-03-19 05:26:03.102340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.106107"], ["updated_at", "2015-03-19 05:26:03.106107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f4fa01c-cdf8-11e4-ac5f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f503522-cdf8-11e4-8d11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f4fa01c-cdf8-11e4-ac5f-705681abff85"], ["organization_id", "6f503522-cdf8-11e4-8d11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:03.109541"], ["updated_at", "2015-03-19 05:26:03.109541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '6f503522-cdf8-11e4-8d11-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "6f503522-cdf8-11e4-8d11-705681abff85"], ["created_at", "2015-03-19 05:26:03.113130"], ["updated_at", "2015-03-19 05:26:03.113130"], ["token", "NtcHMPlZgxoOfKtdAbrGRPnzrZ6x3mN3Ka1_jtPYDJ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f4fa01c-cdf8-11e4-ac5f-705681abff85' LIMIT 1 [["organization_id", "6f503522-cdf8-11e4-8d11-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$Xpp/AVssVsA0eVsO/ChiW.busZBO6O9ejeJE5xIo0DFzYYDfism8i"], ["created_at", "2015-03-19 05:26:03.120948"], ["updated_at", "2015-03-19 05:26:03.120948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.124125"], ["updated_at", "2015-03-19 05:26:03.124125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f527580-cdf8-11e4-ac0c-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f52f19a-cdf8-11e4-8c7f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f527580-cdf8-11e4-ac0c-705681abff85"], ["organization_id", "6f52f19a-cdf8-11e4-8c7f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:03.127263"], ["updated_at", "2015-03-19 05:26:03.127263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '6f52f19a-cdf8-11e4-8c7f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "6f52f19a-cdf8-11e4-8c7f-705681abff85"], ["created_at", "2015-03-19 05:26:03.130605"], ["updated_at", "2015-03-19 05:26:03.130605"], ["token", "eFeqVg5SjMXiiqr9WerUfs4kfio8c0gFKHnnNjCcbD0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f527580-cdf8-11e4-ac0c-705681abff85' LIMIT 1 [["organization_id", "6f52f19a-cdf8-11e4-8c7f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$oMcuPzotZylEFAj1ex2XSeEqmU9NG1fSLDQ5hmXuOMcj4ybaGyKTu"], ["created_at", "2015-03-19 05:26:03.137511"], ["updated_at", "2015-03-19 05:26:03.137511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.140446"], ["updated_at", "2015-03-19 05:26:03.140446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f54fb66-cdf8-11e4-9c94-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f556b82-cdf8-11e4-835e-705681abff85') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f54fb66-cdf8-11e4-9c94-705681abff85"], ["organization_id", "6f556b82-cdf8-11e4-835e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:03.144018"], ["updated_at", "2015-03-19 05:26:03.144018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '6f556b82-cdf8-11e4-835e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "6f556b82-cdf8-11e4-835e-705681abff85"], ["created_at", "2015-03-19 05:26:03.149880"], ["updated_at", "2015-03-19 05:26:03.149880"], ["token", "MxBz7QFHWWZ8N-JJLe-ZuIFjLOppLHa-7JDOKcGZk4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f54fb66-cdf8-11e4-9c94-705681abff85' LIMIT 1 [["organization_id", "6f556b82-cdf8-11e4-835e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$SJRkAOiPlLDZak7vmTAitOt/awuUtoIqOSvX0N8PMwIqYE4QmZ.nG"], ["created_at", "2015-03-19 05:26:03.157076"], ["updated_at", "2015-03-19 05:26:03.157076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.160322"], ["updated_at", "2015-03-19 05:26:03.160322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f57f99c-cdf8-11e4-ad2b-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f5877c8-cdf8-11e4-b109-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f57f99c-cdf8-11e4-ad2b-705681abff85"], ["organization_id", "6f5877c8-cdf8-11e4-b109-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:03.164327"], ["updated_at", "2015-03-19 05:26:03.164327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '6f5877c8-cdf8-11e4-b109-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "6f5877c8-cdf8-11e4-b109-705681abff85"], ["created_at", "2015-03-19 05:26:03.168231"], ["updated_at", "2015-03-19 05:26:03.168231"], ["token", "BGuerDYxORBO1PsaKgUcjTxg3g61nZlK1KIG1F4jI94"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f57f99c-cdf8-11e4-ad2b-705681abff85' LIMIT 1 [["organization_id", "6f5877c8-cdf8-11e4-b109-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (5.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$Bo5sEdh6HaelCMfTcAfa5e4UYFfLFibD4aBR4uTkOOmHMnyc/fJlG"], ["created_at", "2015-03-19 05:26:03.201303"], ["updated_at", "2015-03-19 05:26:03.201303"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-19 05:26:03.209313"], ["updated_at", "2015-03-19 05:26:03.209313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f5ed988-cdf8-11e4-8034-705681abff85' AND "clubhouse_memberships"."organization_id" = '6f600cea-cdf8-11e4-a31b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f5ed988-cdf8-11e4-8034-705681abff85"], ["organization_id", "6f600cea-cdf8-11e4-a31b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-19 05:26:03.216589"], ["updated_at", "2015-03-19 05:26:03.216589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6f5ed988-cdf8-11e4-8034-705681abff85' LIMIT 1 [["organization_id", "6f600cea-cdf8-11e4-a31b-705681abff85"]]  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (26.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (9.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$IsJLIeNKHBX/4tX9.q1fkeGBh3etb05nAvJU13ba2lKojrAuARQxi"], ["created_at", "2015-03-20 03:37:45.589051"], ["updated_at", "2015-03-20 03:37:45.589051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (31.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:45.609290"], ["user_id", "78e89100-ceb2-11e4-a310-705681abff85"], ["created_at", "2015-03-20 03:37:45.615181"], ["updated_at", "2015-03-20 03:37:45.615181"], ["token", "lDj14kvE8n5n11hUC-yZLbhcAGRh4gy8hM1-9jfltiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (4.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:45.659122"], ["updated_at", "2015-03-20 03:37:45.659122"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (7.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78e89100-ceb2-11e4-a310-705681abff85' AND "clubhouse_memberships"."organization_id" = '78f2ad52-ceb2-11e4-b34b-705681abff85') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78e89100-ceb2-11e4-a310-705681abff85"], ["organization_id", "78f2ad52-ceb2-11e4-b34b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:45.684795"], ["updated_at", "2015-03-20 03:37:45.684795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-1" for 127.0.0.1 at 2015-03-19 20:37:45 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Session Load (12.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:45.715156' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lDj14kvE8n5n11hUC-yZLbhcAGRh4gy8hM1-9jfltiY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:45.754556"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:45.756702"], ["id", "78eb9b2a-ceb2-11e4-b8d3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-1"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78e89100-ceb2-11e4-a310-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '78e89100-ceb2-11e4-a310-705681abff85' LIMIT 1 [["organization_id", "78f2ad52-ceb2-11e4-b34b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (24.0ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "78f2ad52-ceb2-11e4-b34b-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 98ms (ActiveRecord: 38.3ms)  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$bfvZn5VjQ.hGbNcXbPbkQ.ygyFSW5wMjVWMcuazNRGv2Dsh/AIINu"], ["created_at", "2015-03-20 03:37:45.826643"], ["updated_at", "2015-03-20 03:37:45.826643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:45.828745"], ["user_id", "790bc9cc-ceb2-11e4-afd9-705681abff85"], ["created_at", "2015-03-20 03:37:45.829556"], ["updated_at", "2015-03-20 03:37:45.829556"], ["token", "JfYcYnI9N1hYKewurzx2yu78DyVXxSTpfaZ0E10ybf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:45.833143"], ["updated_at", "2015-03-20 03:37:45.833143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '790bc9cc-ceb2-11e4-afd9-705681abff85' AND "clubhouse_memberships"."organization_id" = '790cc96c-ceb2-11e4-b83c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "790bc9cc-ceb2-11e4-afd9-705681abff85"], ["organization_id", "790cc96c-ceb2-11e4-b83c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:45.836594"], ["updated_at", "2015-03-20 03:37:45.836594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 20:37:45 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$gb4afPkF1BElssvKOVRUCeVumD1cXSdBbC6dez0VY9gWOzMfB03Hu"], ["created_at", "2015-03-20 03:37:45.847733"], ["updated_at", "2015-03-20 03:37:45.847733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:45.849795"], ["user_id", "790f0416-ceb2-11e4-8b30-705681abff85"], ["created_at", "2015-03-20 03:37:45.850644"], ["updated_at", "2015-03-20 03:37:45.850644"], ["token", "3SWM3JdzNozBq9dHpj5Hpq3s8jH0nPUYQIk5k2boFVs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:45.855848"], ["updated_at", "2015-03-20 03:37:45.855848"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '790f0416-ceb2-11e4-8b30-705681abff85' AND "clubhouse_memberships"."organization_id" = '7910512c-ceb2-11e4-83c7-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "790f0416-ceb2-11e4-8b30-705681abff85"], ["organization_id", "7910512c-ceb2-11e4-83c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:45.862725"], ["updated_at", "2015-03-20 03:37:45.862725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 20:37:45 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$aF4zEqPRapdmoLkq1LJJ1.Nrm7FBl7naU7Z/wt4Qwa8vUQVq.oGYC"], ["created_at", "2015-03-20 03:37:45.875031"], ["updated_at", "2015-03-20 03:37:45.875031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:45.876752"], ["user_id", "79132d16-ceb2-11e4-a3d3-705681abff85"], ["created_at", "2015-03-20 03:37:45.877575"], ["updated_at", "2015-03-20 03:37:45.877575"], ["token", "iiNYT2fbnnTTrpo81A-HIQAJnxUBgKT6_zuQico-9xM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:45.881150"], ["updated_at", "2015-03-20 03:37:45.881150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79132d16-ceb2-11e4-a3d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '791419a6-ceb2-11e4-866d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79132d16-ceb2-11e4-a3d3-705681abff85"], ["organization_id", "791419a6-ceb2-11e4-866d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:45.884566"], ["updated_at", "2015-03-20 03:37:45.884566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-4" for 127.0.0.1 at 2015-03-19 20:37:45 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-4", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:45.890973' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "iiNYT2fbnnTTrpo81A-HIQAJnxUBgKT6_zuQico-9xM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:45.892824"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:45.894832"], ["id", "791393b4-ceb2-11e4-85bc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79132d16-ceb2-11e4-a3d3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79132d16-ceb2-11e4-a3d3-705681abff85' LIMIT 1 [["organization_id", "791419a6-ceb2-11e4-866d-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '791419a6-ceb2-11e4-866d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$EeEg1YThL.mlY45z94dVX.TadaNyexeMFcEziBh/DqosO7zKa5Q0S"], ["created_at", "2015-03-20 03:37:45.920533"], ["updated_at", "2015-03-20 03:37:45.920533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:45.923265"], ["user_id", "791a2378-ceb2-11e4-84bb-705681abff85"], ["created_at", "2015-03-20 03:37:45.924174"], ["updated_at", "2015-03-20 03:37:45.924174"], ["token", "Woz05QBt9F2JVSwIJyzG5zMkG_PorKwVOgWVzvKSSyc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:45.927838"], ["updated_at", "2015-03-20 03:37:45.927838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '791a2378-ceb2-11e4-84bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '791b36fa-ceb2-11e4-8cb5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "791a2378-ceb2-11e4-84bb-705681abff85"], ["organization_id", "791b36fa-ceb2-11e4-8cb5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:45.931174"], ["updated_at", "2015-03-20 03:37:45.931174"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-5" for 127.0.0.1 at 2015-03-19 20:37:45 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-5", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:45.936754' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Woz05QBt9F2JVSwIJyzG5zMkG_PorKwVOgWVzvKSSyc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:45.938357"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:45.939403"], ["id", "791ab5e0-ceb2-11e4-930e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-5"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "791a2378-ceb2-11e4-84bb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '791a2378-ceb2-11e4-84bb-705681abff85' LIMIT 1 [["organization_id", "791b36fa-ceb2-11e4-8cb5-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '791b36fa-ceb2-11e4-8cb5-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 03:37:45.946222"], ["id", "791b36fa-ceb2-11e4-8cb5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$cQs5ZARo/VC4gFOzzZpJJey.x0lP.TUuLcrZozhr3Ar05tKEnCzyi"], ["created_at", "2015-03-20 03:37:45.965858"], ["updated_at", "2015-03-20 03:37:45.965858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:45.967479"], ["user_id", "7921080a-ceb2-11e4-a579-705681abff85"], ["created_at", "2015-03-20 03:37:45.968286"], ["updated_at", "2015-03-20 03:37:45.968286"], ["token", "Pn9Fcz8PVxkKqtPvOeJLAKWUFy2in-gtIT1p3aQqAJY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:45.972223"], ["updated_at", "2015-03-20 03:37:45.972223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7921080a-ceb2-11e4-a579-705681abff85' AND "clubhouse_memberships"."organization_id" = '79220caa-ceb2-11e4-88e8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7921080a-ceb2-11e4-a579-705681abff85"], ["organization_id", "79220caa-ceb2-11e4-88e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:45.976149"], ["updated_at", "2015-03-20 03:37:45.976149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-03-19 20:37:45 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:45.981087' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Pn9Fcz8PVxkKqtPvOeJLAKWUFy2in-gtIT1p3aQqAJY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:45.982593"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:45.984431"], ["id", "79216a52-ceb2-11e4-9000-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7921080a-ceb2-11e4-a579-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7921080a-ceb2-11e4-a579-705681abff85' LIMIT 1 [["organization_id", "79220caa-ceb2-11e4-88e8-705681abff85"]] Completed 200 OK in 10ms (Views: 0.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$emh7e.iRgavVOvHoHSEMIuGCOQ7IfSihP91OlekCivzw71s/IqQMq"], ["created_at", "2015-03-20 03:37:45.996599"], ["updated_at", "2015-03-20 03:37:45.996599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:45.998143"], ["user_id", "7925b5ee-ceb2-11e4-92f0-705681abff85"], ["created_at", "2015-03-20 03:37:45.998938"], ["updated_at", "2015-03-20 03:37:45.998938"], ["token", "ks8BZ5XUzOsCwF8Elp_5NxeZgj7qQhgyWP6CD1WpKoE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.002332"], ["updated_at", "2015-03-20 03:37:46.002332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7925b5ee-ceb2-11e4-92f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '792693d8-ceb2-11e4-86b2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7925b5ee-ceb2-11e4-92f0-705681abff85"], ["organization_id", "792693d8-ceb2-11e4-86b2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.005634"], ["updated_at", "2015-03-20 03:37:46.005634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$6/tSNaPhcv372VjOpYFdeummQXoSHZXJhu9xhBjaSXiMtRRvOw7iq"], ["created_at", "2015-03-20 03:37:46.016043"], ["updated_at", "2015-03-20 03:37:46.016043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.017647"], ["user_id", "7928b014-ceb2-11e4-8ee4-705681abff85"], ["created_at", "2015-03-20 03:37:46.018430"], ["updated_at", "2015-03-20 03:37:46.018430"], ["token", "ejOQVOObl8JNm7kkiW2d8YVj3msPMGiJ53s_Nb40uQw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.022035"], ["updated_at", "2015-03-20 03:37:46.022035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7928b014-ceb2-11e4-8ee4-705681abff85' AND "clubhouse_memberships"."organization_id" = '7929acb2-ceb2-11e4-a0f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7928b014-ceb2-11e4-8ee4-705681abff85"], ["organization_id", "7929acb2-ceb2-11e4-a0f4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.026294"], ["updated_at", "2015-03-20 03:37:46.026294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7929acb2-ceb2-11e4-a0f4-705681abff85" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"7929acb2-ceb2-11e4-a0f4-705681abff85", "organization"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.031485' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ejOQVOObl8JNm7kkiW2d8YVj3msPMGiJ53s_Nb40uQw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.033211"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.034541"], ["id", "79290e42-ceb2-11e4-80b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7929acb2-ceb2-11e4-a0f4-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7928b014-ceb2-11e4-8ee4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7928b014-ceb2-11e4-8ee4-705681abff85' LIMIT 1 [["organization_id", "7929acb2-ceb2-11e4-a0f4-705681abff85"]] Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$M8uSsotIO6TFlgQxSMOgDeKf.DhMIgmlAq.tjnvaZiNTWeFy2osrm"], ["created_at", "2015-03-20 03:37:46.047586"], ["updated_at", "2015-03-20 03:37:46.047586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.050276"], ["user_id", "792d934a-ceb2-11e4-b667-705681abff85"], ["created_at", "2015-03-20 03:37:46.051426"], ["updated_at", "2015-03-20 03:37:46.051426"], ["token", "k2LPs5lK--DorGs-vwEVKaxbiL4GxJ1SnqXETA5_Q4k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.055432"], ["updated_at", "2015-03-20 03:37:46.055432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '792d934a-ceb2-11e4-b667-705681abff85' AND "clubhouse_memberships"."organization_id" = '792eb41e-ceb2-11e4-9e9d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "792d934a-ceb2-11e4-b667-705681abff85"], ["organization_id", "792eb41e-ceb2-11e4-9e9d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.059454"], ["updated_at", "2015-03-20 03:37:46.059454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Rwl3FCIcOX/TpsSmWrlh1OunVszD05PYH7uOC7Mq9l0yL30a1IuSC"], ["created_at", "2015-03-20 03:37:46.070421"], ["updated_at", "2015-03-20 03:37:46.070421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.072125"], ["user_id", "7930fc88-ceb2-11e4-aead-705681abff85"], ["created_at", "2015-03-20 03:37:46.073036"], ["updated_at", "2015-03-20 03:37:46.073036"], ["token", "IedUJXpcE7jeBdFOc81V09Uf5vHTY-OZDrZVaBI7n10"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.077452"], ["updated_at", "2015-03-20 03:37:46.077452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7930fc88-ceb2-11e4-aead-705681abff85' AND "clubhouse_memberships"."organization_id" = '79320be6-ceb2-11e4-b197-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7930fc88-ceb2-11e4-aead-705681abff85"], ["organization_id", "79320be6-ceb2-11e4-b197-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.080836"], ["updated_at", "2015-03-20 03:37:46.080836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$76Yv6rbHy.BFR7HKokmMNeJ43GevzPutD6kmXbAZRjagU70piDvBa"], ["created_at", "2015-03-20 03:37:46.085167"], ["updated_at", "2015-03-20 03:37:46.085167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.088529"], ["updated_at", "2015-03-20 03:37:46.088529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '793337fa-ceb2-11e4-b809-705681abff85' AND "clubhouse_memberships"."organization_id" = '7933be28-ceb2-11e4-8a03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "793337fa-ceb2-11e4-b809-705681abff85"], ["organization_id", "7933be28-ceb2-11e4-8a03-705681abff85"], ["created_at", "2015-03-20 03:37:46.091882"], ["updated_at", "2015-03-20 03:37:46.091882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.097353' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IedUJXpcE7jeBdFOc81V09Uf5vHTY-OZDrZVaBI7n10"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.099150"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.100372"], ["id", "793181e4-ceb2-11e4-b382-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7930fc88-ceb2-11e4-aead-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "7930fc88-ceb2-11e4-aead-705681abff85"]] Completed 200 OK in 16ms (Views: 3.1ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$7YAH8Cji1nXeqG6W.fCUFOlAGR9RLh.bo4gMvg/Q8f6tKUal3tUYS"], ["created_at", "2015-03-20 03:37:46.119759"], ["updated_at", "2015-03-20 03:37:46.119759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.121605"], ["user_id", "7938825a-ceb2-11e4-8abc-705681abff85"], ["created_at", "2015-03-20 03:37:46.122483"], ["updated_at", "2015-03-20 03:37:46.122483"], ["token", "G3HEV4JK9ZeR9x9IOOs1NAGmrhfSZSGZHd_swfBK87Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.127114"], ["updated_at", "2015-03-20 03:37:46.127114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7938825a-ceb2-11e4-8abc-705681abff85' AND "clubhouse_memberships"."organization_id" = '7939a180-ceb2-11e4-be47-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7938825a-ceb2-11e4-8abc-705681abff85"], ["organization_id", "7939a180-ceb2-11e4-be47-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.130562"], ["updated_at", "2015-03-20 03:37:46.130562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$2JENHNs8V.wrAunQ2kyWkO2LobmJqedvJuoGCrjWlbd6XXR7HG8Le"], ["created_at", "2015-03-20 03:37:46.134861"], ["updated_at", "2015-03-20 03:37:46.134861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.138009"], ["updated_at", "2015-03-20 03:37:46.138009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '793acdda-ceb2-11e4-9a33-705681abff85' AND "clubhouse_memberships"."organization_id" = '793b4896-ceb2-11e4-a652-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "793acdda-ceb2-11e4-9a33-705681abff85"], ["organization_id", "793b4896-ceb2-11e4-a652-705681abff85"], ["created_at", "2015-03-20 03:37:46.141208"], ["updated_at", "2015-03-20 03:37:46.141208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$vKa3jNXH3.8sugujYb0m3ev9fB7CfdBbzxqXGWyD80WijPoNB1IOK"], ["created_at", "2015-03-20 03:37:46.151491"], ["updated_at", "2015-03-20 03:37:46.151491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.153217"], ["user_id", "793d5cbc-ceb2-11e4-a93c-705681abff85"], ["created_at", "2015-03-20 03:37:46.154064"], ["updated_at", "2015-03-20 03:37:46.154064"], ["token", "IprSYFc6RGsQHm93S0Eq0tCuRSf3B_ZYXdHNJXQN19Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.157707"], ["updated_at", "2015-03-20 03:37:46.157707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '793d5cbc-ceb2-11e4-a93c-705681abff85' AND "clubhouse_memberships"."organization_id" = '793e511c-ceb2-11e4-9c46-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "793d5cbc-ceb2-11e4-a93c-705681abff85"], ["organization_id", "793e511c-ceb2-11e4-9c46-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.161437"], ["updated_at", "2015-03-20 03:37:46.161437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/793e511c-ceb2-11e4-9c46-705681abff85" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"793e511c-ceb2-11e4-9c46-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.166545' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IprSYFc6RGsQHm93S0Eq0tCuRSf3B_ZYXdHNJXQN19Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.167936"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.169126"], ["id", "793dc68e-ceb2-11e4-88fb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "793e511c-ceb2-11e4-9c46-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "793d5cbc-ceb2-11e4-a93c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '793d5cbc-ceb2-11e4-a93c-705681abff85' LIMIT 1 [["organization_id", "793e511c-ceb2-11e4-9c46-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "793e511c-ceb2-11e4-9c46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$g9vNto8l5MmnhsDRVTTnt.2xWny5rhos9OYOY9s1/ddoSbzZGcLTq"], ["created_at", "2015-03-20 03:37:46.181825"], ["updated_at", "2015-03-20 03:37:46.181825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.183491"], ["user_id", "7941fae2-ceb2-11e4-9ab7-705681abff85"], ["created_at", "2015-03-20 03:37:46.184326"], ["updated_at", "2015-03-20 03:37:46.184326"], ["token", "GGBjZU-AilXxDhpz3UbM5n1G_JX4o-n1H0r-whx2emA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.187869"], ["updated_at", "2015-03-20 03:37:46.187869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7941fae2-ceb2-11e4-9ab7-705681abff85' AND "clubhouse_memberships"."organization_id" = '7942e8bc-ceb2-11e4-aa5c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7941fae2-ceb2-11e4-9ab7-705681abff85"], ["organization_id", "7942e8bc-ceb2-11e4-aa5c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.191691"], ["updated_at", "2015-03-20 03:37:46.191691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$hPku7ukpyjDc0SwavrncROjwsynzl7iR10FEVgxrE6zsWDnxU0lm2"], ["created_at", "2015-03-20 03:37:46.201657"], ["updated_at", "2015-03-20 03:37:46.201657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.203405"], ["user_id", "79450494-ceb2-11e4-b192-705681abff85"], ["created_at", "2015-03-20 03:37:46.204202"], ["updated_at", "2015-03-20 03:37:46.204202"], ["token", "lx_7_7TPenUpmufyeflQjMuTfwq4HqUETd82hNsGLMI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.207872"], ["updated_at", "2015-03-20 03:37:46.207872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79450494-ceb2-11e4-b192-705681abff85' AND "clubhouse_memberships"."organization_id" = '7945f39a-ceb2-11e4-a389-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79450494-ceb2-11e4-b192-705681abff85"], ["organization_id", "7945f39a-ceb2-11e4-a389-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.211316"], ["updated_at", "2015-03-20 03:37:46.211316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$aiW4K4FHVkvUXlBc4iWk3uZWzNo2I5C3I3W.r5ZateoD8D7Yg03v."], ["created_at", "2015-03-20 03:37:46.222207"], ["updated_at", "2015-03-20 03:37:46.222207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.224408"], ["user_id", "79482778-ceb2-11e4-898e-705681abff85"], ["created_at", "2015-03-20 03:37:46.225596"], ["updated_at", "2015-03-20 03:37:46.225596"], ["token", "-VncMU8-xZz8_ZQA5KfaDIbhXvSF_o15Nygd5tRENEY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.229387"], ["updated_at", "2015-03-20 03:37:46.229387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79482778-ceb2-11e4-898e-705681abff85' AND "clubhouse_memberships"."organization_id" = '79493a50-ceb2-11e4-afaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79482778-ceb2-11e4-898e-705681abff85"], ["organization_id", "79493a50-ceb2-11e4-afaa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.232808"], ["updated_at", "2015-03-20 03:37:46.232808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.238120' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-VncMU8-xZz8_ZQA5KfaDIbhXvSF_o15Nygd5tRENEY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.239900"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.240970"], ["id", "7948b422-ceb2-11e4-9ea2-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$RydtlUtkpq1bjmkId4Z32Oxfmuh9bhUIfioo2JKo2XlXI4vO0ZZuO"], ["created_at", "2015-03-20 03:37:46.250419"], ["updated_at", "2015-03-20 03:37:46.250419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.252073"], ["user_id", "794c72ba-ceb2-11e4-9a39-705681abff85"], ["created_at", "2015-03-20 03:37:46.252881"], ["updated_at", "2015-03-20 03:37:46.252881"], ["token", "x4_6WmqB2EJrvMkqWHdTiBeEwMnrJZOR4uxSBwslIbs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.256443"], ["updated_at", "2015-03-20 03:37:46.256443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '794c72ba-ceb2-11e4-9a39-705681abff85' AND "clubhouse_memberships"."organization_id" = '794d5a72-ceb2-11e4-b03c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "794c72ba-ceb2-11e4-9a39-705681abff85"], ["organization_id", "794d5a72-ceb2-11e4-b03c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.260224"], ["updated_at", "2015-03-20 03:37:46.260224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-18" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.265502' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "x4_6WmqB2EJrvMkqWHdTiBeEwMnrJZOR4uxSBwslIbs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.266895"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.267870"], ["id", "794cd8fe-ceb2-11e4-8185-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-18"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "794c72ba-ceb2-11e4-9a39-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$tU1cBYkFWPshe4e.9RhJ0uJsUUj7rs/31WiPGmL25OZsA0CLMdbnC"], ["created_at", "2015-03-20 03:37:46.277386"], ["updated_at", "2015-03-20 03:37:46.277386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.279099"], ["user_id", "795090f2-ceb2-11e4-9a77-705681abff85"], ["created_at", "2015-03-20 03:37:46.279925"], ["updated_at", "2015-03-20 03:37:46.279925"], ["token", "EhxrwnVeIMekW8Aws8Tha-TPoaZ63h6fbUBls8dVDAA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.283378"], ["updated_at", "2015-03-20 03:37:46.283378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '795090f2-ceb2-11e4-9a77-705681abff85' AND "clubhouse_memberships"."organization_id" = '79517fe4-ceb2-11e4-b4cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "795090f2-ceb2-11e4-9a77-705681abff85"], ["organization_id", "79517fe4-ceb2-11e4-b4cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.287075"], ["updated_at", "2015-03-20 03:37:46.287075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$Z5x.P0GTwuaG6qNNkpkEU.9gFH7rpZH8wPdB3NMbRC8a4YhYrLCv6"], ["created_at", "2015-03-20 03:37:46.307428"], ["updated_at", "2015-03-20 03:37:46.307428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.309612"], ["user_id", "79552b9e-ceb2-11e4-b977-705681abff85"], ["created_at", "2015-03-20 03:37:46.310667"], ["updated_at", "2015-03-20 03:37:46.310667"], ["token", "3snfu7jrrrNwXb6O7wkuTIKzQb50DBW8xnxFPX00p6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.314355"], ["updated_at", "2015-03-20 03:37:46.314355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79552b9e-ceb2-11e4-b977-705681abff85' AND "clubhouse_memberships"."organization_id" = '79563142-ceb2-11e4-8b1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79552b9e-ceb2-11e4-b977-705681abff85"], ["organization_id", "79563142-ceb2-11e4-8b1c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.317797"], ["updated_at", "2015-03-20 03:37:46.317797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/79563142-ceb2-11e4-8b1c-705681abff85" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"79563142-ceb2-11e4-8b1c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.323172' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3snfu7jrrrNwXb6O7wkuTIKzQb50DBW8xnxFPX00p6A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.325531"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.326548"], ["id", "7955ad80-ceb2-11e4-9a6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "79563142-ceb2-11e4-8b1c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79552b9e-ceb2-11e4-b977-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79552b9e-ceb2-11e4-b977-705681abff85' LIMIT 1 [["organization_id", "79563142-ceb2-11e4-8b1c-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '79563142-ceb2-11e4-8b1c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$iuRnD2dmc21zMzRIubAsTeKmsVEAi5o6Pu/fYjjX79p.RSMaJy5uO"], ["created_at", "2015-03-20 03:37:46.339691"], ["updated_at", "2015-03-20 03:37:46.339691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.341392"], ["user_id", "795a13fc-ceb2-11e4-8d28-705681abff85"], ["created_at", "2015-03-20 03:37:46.342198"], ["updated_at", "2015-03-20 03:37:46.342198"], ["token", "CH4JGwChTl0Pxy6u-aZcd5sGdGb_EP40WPkBBC_nSoo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.345739"], ["updated_at", "2015-03-20 03:37:46.345739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '795a13fc-ceb2-11e4-8d28-705681abff85' AND "clubhouse_memberships"."organization_id" = '795b19d2-ceb2-11e4-b7e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "795a13fc-ceb2-11e4-8d28-705681abff85"], ["organization_id", "795b19d2-ceb2-11e4-b7e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.349937"], ["updated_at", "2015-03-20 03:37:46.349937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/795b19d2-ceb2-11e4-b7e7-705681abff85" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"795b19d2-ceb2-11e4-b7e7-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.355163' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CH4JGwChTl0Pxy6u-aZcd5sGdGb_EP40WPkBBC_nSoo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.356566"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.357634"], ["id", "795a7932-ceb2-11e4-a7f3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "795b19d2-ceb2-11e4-b7e7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "795a13fc-ceb2-11e4-8d28-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '795a13fc-ceb2-11e4-8d28-705681abff85' LIMIT 1 [["organization_id", "795b19d2-ceb2-11e4-b7e7-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '795b19d2-ceb2-11e4-b7e7-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 03:37:46.364171"], ["id", "795b19d2-ceb2-11e4-b7e7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$OxB/RPOMctziOGaH5kaATeNSxUnkitKq9Lq34K4N2GbWIA8WK83O."], ["created_at", "2015-03-20 03:37:46.372600"], ["updated_at", "2015-03-20 03:37:46.372600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.374745"], ["user_id", "795f1d2a-ceb2-11e4-b979-705681abff85"], ["created_at", "2015-03-20 03:37:46.375841"], ["updated_at", "2015-03-20 03:37:46.375841"], ["token", "ln_cWdElLmr46LBat9WD50SYx-lzLRysTpf7Z6B5h4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.379561"], ["updated_at", "2015-03-20 03:37:46.379561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '795f1d2a-ceb2-11e4-b979-705681abff85' AND "clubhouse_memberships"."organization_id" = '7960240e-ceb2-11e4-9277-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "795f1d2a-ceb2-11e4-b979-705681abff85"], ["organization_id", "7960240e-ceb2-11e4-9277-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.382837"], ["updated_at", "2015-03-20 03:37:46.382837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$yrHcEbY2fEDy0e1p.SA8WODmacNXRlM1emT5fKkPq.S73FXavneMa"], ["created_at", "2015-03-20 03:37:46.393445"], ["updated_at", "2015-03-20 03:37:46.393445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.395102"], ["user_id", "7962472a-ceb2-11e4-82d9-705681abff85"], ["created_at", "2015-03-20 03:37:46.396127"], ["updated_at", "2015-03-20 03:37:46.396127"], ["token", "rkgLDnXvuIp1ZsNUHpkvxWc7r4s4nJkcD8ZWxkgRK6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.399910"], ["updated_at", "2015-03-20 03:37:46.399910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7962472a-ceb2-11e4-82d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '796340b2-ceb2-11e4-a9b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7962472a-ceb2-11e4-82d9-705681abff85"], ["organization_id", "796340b2-ceb2-11e4-a9b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.403341"], ["updated_at", "2015-03-20 03:37:46.403341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.408666' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rkgLDnXvuIp1ZsNUHpkvxWc7r4s4nJkcD8ZWxkgRK6M"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.410493"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.412426"], ["id", "7962b43a-ceb2-11e4-94dc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7962472a-ceb2-11e4-82d9-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$v4AR6B8sMr.WwlW.KBcWR.sjrpc26qdRaCuGk8BfKt0fiNKDltnYa"], ["created_at", "2015-03-20 03:37:46.428890"], ["updated_at", "2015-03-20 03:37:46.428890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.430613"], ["user_id", "7967b17e-ceb2-11e4-9db5-705681abff85"], ["created_at", "2015-03-20 03:37:46.431455"], ["updated_at", "2015-03-20 03:37:46.431455"], ["token", "jDuDgjz7g1eiiAZu7R1-u1XsiipEUptIz9mkw9faqkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.434962"], ["updated_at", "2015-03-20 03:37:46.434962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7967b17e-ceb2-11e4-9db5-705681abff85' AND "clubhouse_memberships"."organization_id" = '79689742-ceb2-11e4-9a9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7967b17e-ceb2-11e4-9db5-705681abff85"], ["organization_id", "79689742-ceb2-11e4-9a9a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.438243"], ["updated_at", "2015-03-20 03:37:46.438243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.444103' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jDuDgjz7g1eiiAZu7R1-u1XsiipEUptIz9mkw9faqkA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.445655"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.446693"], ["id", "79681858-ceb2-11e4-a242-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7967b17e-ceb2-11e4-9db5-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.463634"], ["updated_at", "2015-03-20 03:37:46.463634"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "796d3ca2-ceb2-11e4-bdb7-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7967b17e-ceb2-11e4-9db5-705681abff85' AND "clubhouse_memberships"."organization_id" = '796d3ca2-ceb2-11e4-bdb7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7967b17e-ceb2-11e4-9db5-705681abff85"], ["admin", "t"], ["organization_id", "796d3ca2-ceb2-11e4-bdb7-705681abff85"], ["created_at", "2015-03-20 03:37:46.480859"], ["updated_at", "2015-03-20 03:37:46.480859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 42ms (Views: 0.8ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$qwjdB1xsbKKV28TdYyO3CO0zJOmtyp5CUbpG6o5ldNNYdc1Hh8QTK"], ["created_at", "2015-03-20 03:37:46.493269"], ["updated_at", "2015-03-20 03:37:46.493269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.495032"], ["user_id", "797182ee-ceb2-11e4-a5d6-705681abff85"], ["created_at", "2015-03-20 03:37:46.495844"], ["updated_at", "2015-03-20 03:37:46.495844"], ["token", "OtNRd23HKcJ-uVL_MDrwpGW11V2yXniN2q4js1vRVrE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.499339"], ["updated_at", "2015-03-20 03:37:46.499339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '797182ee-ceb2-11e4-a5d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '79726b5a-ceb2-11e4-8dc8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "797182ee-ceb2-11e4-a5d6-705681abff85"], ["organization_id", "79726b5a-ceb2-11e4-8dc8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.502812"], ["updated_at", "2015-03-20 03:37:46.502812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '79726b5a-ceb2-11e4-8dc8-705681abff85') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "79726b5a-ceb2-11e4-8dc8-705681abff85"], ["created_at", "2015-03-20 03:37:46.514766"], ["updated_at", "2015-03-20 03:37:46.514766"], ["token", "4EM8jfJxPjn1tZCOZ1x_z-qhaYuX3qlgRE5MDhKXeX0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$8pmdhQB.FwtZyR0SOGYeIO9kShWjQFrb0dnbqJrWshGU8UOAHv.L."], ["created_at", "2015-03-20 03:37:46.535332"], ["updated_at", "2015-03-20 03:37:46.535332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.537115"], ["user_id", "7977f066-ceb2-11e4-9d71-705681abff85"], ["created_at", "2015-03-20 03:37:46.537961"], ["updated_at", "2015-03-20 03:37:46.537961"], ["token", "NbH8g1YcrK_y8Be7qYYgFGmQKF5K9kVJ_qm6cnvul-g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.541709"], ["updated_at", "2015-03-20 03:37:46.541709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7977f066-ceb2-11e4-9d71-705681abff85' AND "clubhouse_memberships"."organization_id" = '7978f628-ceb2-11e4-bc42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7977f066-ceb2-11e4-9d71-705681abff85"], ["organization_id", "7978f628-ceb2-11e4-bc42-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.546094"], ["updated_at", "2015-03-20 03:37:46.546094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '7978f628-ceb2-11e4-bc42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "7978f628-ceb2-11e4-bc42-705681abff85"], ["created_at", "2015-03-20 03:37:46.549572"], ["updated_at", "2015-03-20 03:37:46.549572"], ["token", "lX8cLCAkQZvOulC97OCX34PRefWPlZ_Tpi5TQ97ihZM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7978f628-ceb2-11e4-bc42-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"7978f628-ceb2-11e4-bc42-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.555255' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NbH8g1YcrK_y8Be7qYYgFGmQKF5K9kVJ_qm6cnvul-g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.556710"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.557757"], ["id", "7978586c-ceb2-11e4-8d23-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7978f628-ceb2-11e4-bc42-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7977f066-ceb2-11e4-9d71-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7978f628-ceb2-11e4-bc42-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7977f066-ceb2-11e4-9d71-705681abff85' LIMIT 1 [["organization_id", "7978f628-ceb2-11e4-bc42-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '7978f628-ceb2-11e4-bc42-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$Kc0Cd6Kl8xCRzHYWUQSCGe8Jt2xY8EXp0sJIoF71.NaiVwWa9E/Ne"], ["created_at", "2015-03-20 03:37:46.578134"], ["updated_at", "2015-03-20 03:37:46.578134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.580043"], ["user_id", "797e792c-ceb2-11e4-9f69-705681abff85"], ["created_at", "2015-03-20 03:37:46.580918"], ["updated_at", "2015-03-20 03:37:46.580918"], ["token", "z_WEhxJXaY9F9wsy41CKjNBrTQR62OArIgz1hMFG1g0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.584680"], ["updated_at", "2015-03-20 03:37:46.584680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '797e792c-ceb2-11e4-9f69-705681abff85' AND "clubhouse_memberships"."organization_id" = '797f71e2-ceb2-11e4-93f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "797e792c-ceb2-11e4-9f69-705681abff85"], ["organization_id", "797f71e2-ceb2-11e4-93f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.587991"], ["updated_at", "2015-03-20 03:37:46.587991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '797f71e2-ceb2-11e4-93f3-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "797f71e2-ceb2-11e4-93f3-705681abff85"], ["created_at", "2015-03-20 03:37:46.591405"], ["updated_at", "2015-03-20 03:37:46.591405"], ["token", "jeNS2F1sS6kmrMNdat6XHzZfNqCLdJahCXhZfj4N_dw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/797f71e2-ceb2-11e4-93f3-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"797f71e2-ceb2-11e4-93f3-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.597523' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z_WEhxJXaY9F9wsy41CKjNBrTQR62OArIgz1hMFG1g0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.599284"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.601167"], ["id", "797eea06-ceb2-11e4-8c03-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "797f71e2-ceb2-11e4-93f3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "797e792c-ceb2-11e4-9f69-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "797f71e2-ceb2-11e4-93f3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '797e792c-ceb2-11e4-9f69-705681abff85' LIMIT 1 [["organization_id", "797f71e2-ceb2-11e4-93f3-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '797f71e2-ceb2-11e4-93f3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "797f71e2-ceb2-11e4-93f3-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.610358"], ["updated_at", "2015-03-20 03:37:46.610358"], ["token", "TsO56b5f0NFUWt6tK5o_7o9_LIIFhEFjEaoYnV3doC0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: de704c57-ee2e-4920-a0ee-5a0fd63e361a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/798369b4-ceb2-11e4-8836-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "798369b4-ceb2-11e4-8836-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [de704c57-ee2e-4920-a0ee-5a0fd63e361a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/798369b4-ceb2-11e4-8836-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [de704c57-ee2e-4920-a0ee-5a0fd63e361a] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "797f71e2-ceb2-11e4-93f3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [de704c57-ee2e-4920-a0ee-5a0fd63e361a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [de704c57-ee2e-4920-a0ee-5a0fd63e361a] Clubhouse::Mailer#invitation: processed outbound mail in 239.9ms [ActiveJob] [ActionMailer::DeliveryJob] [de704c57-ee2e-4920-a0ee-5a0fd63e361a] Sent mail to email@example.com (10.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [de704c57-ee2e-4920-a0ee-5a0fd63e361a] Date: Thu, 19 Mar 2015 20:37:46 -0700 From: from@example.com To: email@example.com Message-ID: <550b960ad7b43_e343ff45d865bf0438fb@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/TsO56b5f0NFUWt6tK5o_7o9_LIIFhEFjEaoYnV3doC0?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [de704c57-ee2e-4920-a0ee-5a0fd63e361a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 251.13ms Completed 201 Created in 294ms (Views: 3.1ms | ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$rkpFVVeggFJ5FbG.urbdiexH3iDrcduP/Nw86n4QB518eC1xy5MkK"], ["created_at", "2015-03-20 03:37:46.899916"], ["updated_at", "2015-03-20 03:37:46.899916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.901632"], ["user_id", "79af8fda-ceb2-11e4-babc-705681abff85"], ["created_at", "2015-03-20 03:37:46.902400"], ["updated_at", "2015-03-20 03:37:46.902400"], ["token", "LMMq3A4t5UTC6_6PLYKU-thp5Ws2Cq--p-2_9R2RdPg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.908520"], ["updated_at", "2015-03-20 03:37:46.908520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79af8fda-ceb2-11e4-babc-705681abff85' AND "clubhouse_memberships"."organization_id" = '79b0f226-ceb2-11e4-94bf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79af8fda-ceb2-11e4-babc-705681abff85"], ["organization_id", "79b0f226-ceb2-11e4-94bf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.913463"], ["updated_at", "2015-03-20 03:37:46.913463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '79b0f226-ceb2-11e4-94bf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "79b0f226-ceb2-11e4-94bf-705681abff85"], ["created_at", "2015-03-20 03:37:46.916900"], ["updated_at", "2015-03-20 03:37:46.916900"], ["token", "vEKljMncK3y8xOWTGYc8QQ5yDJ3sjYW_cqKHalJQ23U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/79b0f226-ceb2-11e4-94bf-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"79b0f226-ceb2-11e4-94bf-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.924647' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LMMq3A4t5UTC6_6PLYKU-thp5Ws2Cq--p-2_9R2RdPg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.926337"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.928032"], ["id", "79aff1d2-ceb2-11e4-900d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "79b0f226-ceb2-11e4-94bf-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79af8fda-ceb2-11e4-babc-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79b0f226-ceb2-11e4-94bf-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79af8fda-ceb2-11e4-babc-705681abff85' LIMIT 1 [["organization_id", "79b0f226-ceb2-11e4-94bf-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '79b0f226-ceb2-11e4-94bf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "79b0f226-ceb2-11e4-94bf-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.936493"], ["updated_at", "2015-03-20 03:37:46.936493"], ["token", "Kb18NqGpXno_mXNw5Q0rsP_-UQq8NgSIR5ntAK3OEWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 180d1202-6230-44b1-b366-8fbcb9757f71) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/79b52512-ceb2-11e4-9fe6-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "79b52512-ceb2-11e4-9fe6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [180d1202-6230-44b1-b366-8fbcb9757f71] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/79b52512-ceb2-11e4-9fe6-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [180d1202-6230-44b1-b366-8fbcb9757f71] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79b0f226-ceb2-11e4-94bf-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [180d1202-6230-44b1-b366-8fbcb9757f71] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [180d1202-6230-44b1-b366-8fbcb9757f71] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [180d1202-6230-44b1-b366-8fbcb9757f71] Sent mail to email@example.com (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [180d1202-6230-44b1-b366-8fbcb9757f71] Date: Thu, 19 Mar 2015 20:37:46 -0700 From: from@example.com To: email@example.com Message-ID: <550b960ae673b_e343ff45d865bf04394a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Kb18NqGpXno_mXNw5Q0rsP_-UQq8NgSIR5ntAK3OEWw?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [180d1202-6230-44b1-b366-8fbcb9757f71] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.73ms Completed 201 Created in 24ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$12MbiVMaPYxFlHKmRTc6deAwxKcfGvEoNyvP5VpzGBghU6MuktDr."], ["created_at", "2015-03-20 03:37:46.951985"], ["updated_at", "2015-03-20 03:37:46.951985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:46.953512"], ["user_id", "79b77cfe-ceb2-11e4-8fc3-705681abff85"], ["created_at", "2015-03-20 03:37:46.954300"], ["updated_at", "2015-03-20 03:37:46.954300"], ["token", "aPAEk22bjYS6wz8aBAkOjepMrxZXThY3k7VUWX1nYQ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.957518"], ["updated_at", "2015-03-20 03:37:46.957518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79b77cfe-ceb2-11e4-8fc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '79b85340-ceb2-11e4-96cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79b77cfe-ceb2-11e4-8fc3-705681abff85"], ["organization_id", "79b85340-ceb2-11e4-96cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:46.960891"], ["updated_at", "2015-03-20 03:37:46.960891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '79b85340-ceb2-11e4-96cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "79b85340-ceb2-11e4-96cb-705681abff85"], ["created_at", "2015-03-20 03:37:46.964157"], ["updated_at", "2015-03-20 03:37:46.964157"], ["token", "Gbi3VyWb13iLzHiWaMxB2hOV9-iT0IOfF_akq5nLoJs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$FIY/mES0vzOIo05dUyBdfuDb1LpspkKGTsZZiOD21u8xOu.2CoXUu"], ["created_at", "2015-03-20 03:37:46.968483"], ["updated_at", "2015-03-20 03:37:46.968483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:46.971499"], ["updated_at", "2015-03-20 03:37:46.971499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79b9ffe2-ceb2-11e4-9664-705681abff85' AND "clubhouse_memberships"."organization_id" = '79ba759e-ceb2-11e4-8583-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79b9ffe2-ceb2-11e4-9664-705681abff85"], ["organization_id", "79ba759e-ceb2-11e4-8583-705681abff85"], ["created_at", "2015-03-20 03:37:46.974538"], ["updated_at", "2015-03-20 03:37:46.974538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/79b85340-ceb2-11e4-96cb-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 20:37:46 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"79b85340-ceb2-11e4-96cb-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:46.979558' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aPAEk22bjYS6wz8aBAkOjepMrxZXThY3k7VUWX1nYQ8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:46.981306"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:46.983180"], ["id", "79b7dc62-ceb2-11e4-9791-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "79b85340-ceb2-11e4-96cb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79b77cfe-ceb2-11e4-8fc3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79b77cfe-ceb2-11e4-8fc3-705681abff85' LIMIT 1 [["organization_id", "79b85340-ceb2-11e4-96cb-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "79b85340-ceb2-11e4-96cb-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('79b85340-ceb2-11e4-96cb-705681abff85') Completed 200 OK in 17ms (Views: 7.3ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$GWZJV5fZzkta3uFtKZIYfuXeVm6.QZO.Ygs7oTiB06gFem5qvcv0a"], ["created_at", "2015-03-20 03:37:47.003427"], ["updated_at", "2015-03-20 03:37:47.003427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.005071"], ["user_id", "79bf596a-ceb2-11e4-9569-705681abff85"], ["created_at", "2015-03-20 03:37:47.005870"], ["updated_at", "2015-03-20 03:37:47.005870"], ["token", "f2YjYT1BDNVTF_c55shMmNpOVnZiQtcv8DUzk26RbQ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.009239"], ["updated_at", "2015-03-20 03:37:47.009239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79bf596a-ceb2-11e4-9569-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c0383a-ceb2-11e4-9e17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79bf596a-ceb2-11e4-9569-705681abff85"], ["organization_id", "79c0383a-ceb2-11e4-9e17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.012441"], ["updated_at", "2015-03-20 03:37:47.012441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '79c0383a-ceb2-11e4-9e17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "79c0383a-ceb2-11e4-9e17-705681abff85"], ["created_at", "2015-03-20 03:37:47.015686"], ["updated_at", "2015-03-20 03:37:47.015686"], ["token", "accl_SoGQnDO_3Hbaw5VectuLTo1lvXGu8bgcK51z9w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$kZy3HSfIeomesF5HvOIl/uyOCRCC6xcXEzzbEy5YbMlOO2RHRJjE6"], ["created_at", "2015-03-20 03:37:47.020009"], ["updated_at", "2015-03-20 03:37:47.020009"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.023360"], ["updated_at", "2015-03-20 03:37:47.023360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c1de1a-ceb2-11e4-aa8b-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c25f34-ceb2-11e4-851c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79c1de1a-ceb2-11e4-aa8b-705681abff85"], ["organization_id", "79c25f34-ceb2-11e4-851c-705681abff85"], ["created_at", "2015-03-20 03:37:47.026485"], ["updated_at", "2015-03-20 03:37:47.026485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$MUz2R5rOpznzslq.nbmAYuiRDg9ADjO8Y6I1NGSkisB9CJZRMZZkW"], ["created_at", "2015-03-20 03:37:47.039012"], ["updated_at", "2015-03-20 03:37:47.039012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.040709"], ["user_id", "79c4c968-ceb2-11e4-b4cf-705681abff85"], ["created_at", "2015-03-20 03:37:47.041535"], ["updated_at", "2015-03-20 03:37:47.041535"], ["token", "LDVCrlJY1x2YuQKitDw4eUMqqxNW9JkwKm-ZEyonAvw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.045553"], ["updated_at", "2015-03-20 03:37:47.045553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c4c968-ceb2-11e4-b4cf-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c5d27c-ceb2-11e4-8bf5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79c4c968-ceb2-11e4-b4cf-705681abff85"], ["organization_id", "79c5d27c-ceb2-11e4-8bf5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.049368"], ["updated_at", "2015-03-20 03:37:47.049368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '79c5d27c-ceb2-11e4-8bf5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "79c5d27c-ceb2-11e4-8bf5-705681abff85"], ["created_at", "2015-03-20 03:37:47.053937"], ["updated_at", "2015-03-20 03:37:47.053937"], ["token", "gP94TG2OMbV5hQX6LoZ4g6trvla0-n9-dLoasXMesD0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$.HgMsXEICPa2sgoelQiIQ.0VZV2N/R22pArCZox9Aaf9WrNvmRE3i"], ["created_at", "2015-03-20 03:37:47.065346"], ["updated_at", "2015-03-20 03:37:47.065346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.066969"], ["user_id", "79c8cb9e-ceb2-11e4-906d-705681abff85"], ["created_at", "2015-03-20 03:37:47.067773"], ["updated_at", "2015-03-20 03:37:47.067773"], ["token", "V469LMBLFb1aF4ptY-QqgLHO_R2FHty2s9Q3GozCwIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.071149"], ["updated_at", "2015-03-20 03:37:47.071149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c8cb9e-ceb2-11e4-906d-705681abff85' AND "clubhouse_memberships"."organization_id" = '79c9ad16-ceb2-11e4-9ec2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79c8cb9e-ceb2-11e4-906d-705681abff85"], ["organization_id", "79c9ad16-ceb2-11e4-9ec2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.074921"], ["updated_at", "2015-03-20 03:37:47.074921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '79c9ad16-ceb2-11e4-9ec2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "79c9ad16-ceb2-11e4-9ec2-705681abff85"], ["created_at", "2015-03-20 03:37:47.078414"], ["updated_at", "2015-03-20 03:37:47.078414"], ["token", "Q5lZZmOIUWJ8thnB-TyZ_eGKR9W5kcEWwg38pl-EJmk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:47.083546' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "V469LMBLFb1aF4ptY-QqgLHO_R2FHty2s9Q3GozCwIM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:47.085092"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:47.086963"], ["id", "79c92e54-ceb2-11e4-8574-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79c8cb9e-ceb2-11e4-906d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79c9ad16-ceb2-11e4-9ec2-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79c8cb9e-ceb2-11e4-906d-705681abff85' LIMIT 1 [["organization_id", "79c9ad16-ceb2-11e4-9ec2-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '79c9ad16-ceb2-11e4-9ec2-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$ckfrmKp6iSAsNX9v2vHh8e5BzjCFWK5lQw3sHh3BwlhLFb5qlmRPu"], ["created_at", "2015-03-20 03:37:47.105267"], ["updated_at", "2015-03-20 03:37:47.105267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.108390"], ["user_id", "79cf0748-ceb2-11e4-bc82-705681abff85"], ["created_at", "2015-03-20 03:37:47.109780"], ["updated_at", "2015-03-20 03:37:47.109780"], ["token", "uskr7wL4ER6uUCk_4PfBCMQeRpEiYUZzOvuhxkTINWg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.114775"], ["updated_at", "2015-03-20 03:37:47.114775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79cf0748-ceb2-11e4-bc82-705681abff85' AND "clubhouse_memberships"."organization_id" = '79d0572e-ceb2-11e4-98ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79cf0748-ceb2-11e4-bc82-705681abff85"], ["organization_id", "79d0572e-ceb2-11e4-98ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.118279"], ["updated_at", "2015-03-20 03:37:47.118279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '79d0572e-ceb2-11e4-98ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "79d0572e-ceb2-11e4-98ab-705681abff85"], ["created_at", "2015-03-20 03:37:47.121683"], ["updated_at", "2015-03-20 03:37:47.121683"], ["token", "5aFxE3H5C22AJzHACTNzdzoYZIjNv8taVnqdhbN2S7M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:47.128618' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uskr7wL4ER6uUCk_4PfBCMQeRpEiYUZzOvuhxkTINWg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:47.130157"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:47.131172"], ["id", "79cfad74-ceb2-11e4-8c52-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79cf0748-ceb2-11e4-bc82-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79d0572e-ceb2-11e4-98ab-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79cf0748-ceb2-11e4-bc82-705681abff85' LIMIT 1 [["organization_id", "79d0572e-ceb2-11e4-98ab-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '79d0572e-ceb2-11e4-98ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "79d0572e-ceb2-11e4-98ab-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.139135"], ["updated_at", "2015-03-20 03:37:47.139135"], ["token", "RdVbK4gkqQ51Z2xB00arfMzwS08CaTSoe0vc8kU5gyQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 067b69ca-d6b9-4f74-ad28-9e499e7ac716) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/79d4122e-ceb2-11e4-a032-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "79d4122e-ceb2-11e4-a032-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [067b69ca-d6b9-4f74-ad28-9e499e7ac716] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/79d4122e-ceb2-11e4-a032-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [067b69ca-d6b9-4f74-ad28-9e499e7ac716] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79d0572e-ceb2-11e4-98ab-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [067b69ca-d6b9-4f74-ad28-9e499e7ac716] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [067b69ca-d6b9-4f74-ad28-9e499e7ac716] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [067b69ca-d6b9-4f74-ad28-9e499e7ac716] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [067b69ca-d6b9-4f74-ad28-9e499e7ac716] Date: Thu, 19 Mar 2015 20:37:47 -0700 From: from@example.com To: email@example.com Message-ID: <550b960b24058_e343ff45d865bf044076@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/RdVbK4gkqQ51Z2xB00arfMzwS08CaTSoe0vc8kU5gyQ?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [067b69ca-d6b9-4f74-ad28-9e499e7ac716] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.53ms Completed 201 Created in 22ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$IFTMzkosNcJxqT1tQ0tXOuvDAaTvO9RsujgsYXQGrd5vDek0OAGmm"], ["created_at", "2015-03-20 03:37:47.157259"], ["updated_at", "2015-03-20 03:37:47.157259"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.160639"], ["user_id", "79d6f340-ceb2-11e4-aa24-705681abff85"], ["created_at", "2015-03-20 03:37:47.161958"], ["updated_at", "2015-03-20 03:37:47.161958"], ["token", "lMeYc8Yu2WIDD6uZy88WNjAApJJWFD02Dzhpj-mTcb0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.167301"], ["updated_at", "2015-03-20 03:37:47.167301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79d6f340-ceb2-11e4-aa24-705681abff85' AND "clubhouse_memberships"."organization_id" = '79d859e2-ceb2-11e4-9903-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79d6f340-ceb2-11e4-aa24-705681abff85"], ["organization_id", "79d859e2-ceb2-11e4-9903-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.170850"], ["updated_at", "2015-03-20 03:37:47.170850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '79d859e2-ceb2-11e4-9903-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "79d859e2-ceb2-11e4-9903-705681abff85"], ["created_at", "2015-03-20 03:37:47.174255"], ["updated_at", "2015-03-20 03:37:47.174255"], ["token", "zqSlTM_wXFCQa1c4IsuZUl705pEcEWaHQ91fPc5VLH0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:47.179684' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lMeYc8Yu2WIDD6uZy88WNjAApJJWFD02Dzhpj-mTcb0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:47.181107"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:47.182063"], ["id", "79d7acfe-ceb2-11e4-9aea-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79d6f340-ceb2-11e4-aa24-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79d859e2-ceb2-11e4-9903-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79d6f340-ceb2-11e4-aa24-705681abff85' LIMIT 1 [["organization_id", "79d859e2-ceb2-11e4-9903-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '79d859e2-ceb2-11e4-9903-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "79d859e2-ceb2-11e4-9903-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.189917"], ["updated_at", "2015-03-20 03:37:47.189917"], ["token", "oMZ_fMQXBw6Lp70aTJ037wt301SySdfiu1sHRbgSG7g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 70dc53d4-2eb6-4c43-a884-82f8593a53d4) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/79dbd0d6-ceb2-11e4-b90c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "79dbd0d6-ceb2-11e4-b90c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [70dc53d4-2eb6-4c43-a884-82f8593a53d4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/79dbd0d6-ceb2-11e4-b90c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [70dc53d4-2eb6-4c43-a884-82f8593a53d4] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79d859e2-ceb2-11e4-9903-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [70dc53d4-2eb6-4c43-a884-82f8593a53d4] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [70dc53d4-2eb6-4c43-a884-82f8593a53d4] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [70dc53d4-2eb6-4c43-a884-82f8593a53d4] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [70dc53d4-2eb6-4c43-a884-82f8593a53d4] Date: Thu, 19 Mar 2015 20:37:47 -0700 From: from@example.com To: email@example.com Message-ID: <550b960b30305_e343ff45d865bf0441a3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/oMZ_fMQXBw6Lp70aTJ037wt301SySdfiu1sHRbgSG7g?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [70dc53d4-2eb6-4c43-a884-82f8593a53d4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.51ms Completed 201 Created in 21ms (Views: 1.7ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$CgkstvWVYlW00gKX5HU60u9fyfyYJqmdKbLofuqRwi9coMYFlAt2i"], ["created_at", "2015-03-20 03:37:47.207479"], ["updated_at", "2015-03-20 03:37:47.207479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.209144"], ["user_id", "79de7c0a-ceb2-11e4-8c45-705681abff85"], ["created_at", "2015-03-20 03:37:47.209976"], ["updated_at", "2015-03-20 03:37:47.209976"], ["token", "FQKzA5FvV0544WzycMSE3-sf2_S-73SHf4okzhpMRhI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.214383"], ["updated_at", "2015-03-20 03:37:47.214383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79de7c0a-ceb2-11e4-8c45-705681abff85' AND "clubhouse_memberships"."organization_id" = '79df892e-ceb2-11e4-95b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79de7c0a-ceb2-11e4-8c45-705681abff85"], ["organization_id", "79df892e-ceb2-11e4-95b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.218007"], ["updated_at", "2015-03-20 03:37:47.218007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '79df892e-ceb2-11e4-95b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "79df892e-ceb2-11e4-95b7-705681abff85"], ["created_at", "2015-03-20 03:37:47.221477"], ["updated_at", "2015-03-20 03:37:47.221477"], ["token", "OiiWGHez_1MujXKfEoYai7yau1YJtkPkjn0M64k8E_U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/79e09f30-ceb2-11e4-a2c6-705681abff85" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"79e09f30-ceb2-11e4-a2c6-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:47.226670' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FQKzA5FvV0544WzycMSE3-sf2_S-73SHf4okzhpMRhI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:47.228397"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:47.229531"], ["id", "79dee410-ceb2-11e4-b5d6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "79e09f30-ceb2-11e4-a2c6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79de7c0a-ceb2-11e4-8c45-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79df892e-ceb2-11e4-95b7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79de7c0a-ceb2-11e4-8c45-705681abff85' LIMIT 1 [["organization_id", "79df892e-ceb2-11e4-95b7-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "79e09f30-ceb2-11e4-a2c6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$aRtb3nqcHYa6wmEgVzcYquAxq1BcNRRxg7Eu3IrOg3Uo3JzaHdh66"], ["created_at", "2015-03-20 03:37:47.240751"], ["updated_at", "2015-03-20 03:37:47.240751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.242303"], ["user_id", "79e38da8-ceb2-11e4-9b1c-705681abff85"], ["created_at", "2015-03-20 03:37:47.243088"], ["updated_at", "2015-03-20 03:37:47.243088"], ["token", "8ejGFI1nnaFQzPysuAznJihhyUUpknpY1EA81a5bgMQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.246490"], ["updated_at", "2015-03-20 03:37:47.246490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79e38da8-ceb2-11e4-9b1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '79e46f8e-ceb2-11e4-8c29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79e38da8-ceb2-11e4-9b1c-705681abff85"], ["organization_id", "79e46f8e-ceb2-11e4-8c29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.252016"], ["updated_at", "2015-03-20 03:37:47.252016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '79e46f8e-ceb2-11e4-8c29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "79e46f8e-ceb2-11e4-8c29-705681abff85"], ["created_at", "2015-03-20 03:37:47.255725"], ["updated_at", "2015-03-20 03:37:47.255725"], ["token", "xM1fThC55I3TnLDtlz1B1ejwT3-bGY6dsHTzpJZ-dA0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$USdd9GAbiNHlTat6RQkOCOds6brt8lcH9eMOtXJgrSqQiZADsqDHi"], ["created_at", "2015-03-20 03:37:47.267176"], ["updated_at", "2015-03-20 03:37:47.267176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.268950"], ["user_id", "79e79830-ceb2-11e4-9b75-705681abff85"], ["created_at", "2015-03-20 03:37:47.269790"], ["updated_at", "2015-03-20 03:37:47.269790"], ["token", "f-IzRIOjZi5jZXQ5WQYKnywmk_nttjBEpJbGLeKBUyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.273178"], ["updated_at", "2015-03-20 03:37:47.273178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79e79830-ceb2-11e4-9b75-705681abff85' AND "clubhouse_memberships"."organization_id" = '79e87dfe-ceb2-11e4-bd47-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79e79830-ceb2-11e4-9b75-705681abff85"], ["organization_id", "79e87dfe-ceb2-11e4-bd47-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.276366"], ["updated_at", "2015-03-20 03:37:47.276366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '79e87dfe-ceb2-11e4-bd47-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "79e87dfe-ceb2-11e4-bd47-705681abff85"], ["created_at", "2015-03-20 03:37:47.279674"], ["updated_at", "2015-03-20 03:37:47.279674"], ["token", "mSZ0w4Ew3Agn7PmNvpKDpCSr8tEzo76UX9RYHC4Hdm4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$brBwjnckIpPaRZMBJxzQdOerkAyZUKtLbdRFmhOhpr.nWOUO4ZYJm"], ["created_at", "2015-03-20 03:37:47.284096"], ["updated_at", "2015-03-20 03:37:47.284096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.287091"], ["updated_at", "2015-03-20 03:37:47.287091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79ea2870-ceb2-11e4-a2e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '79ea9c60-ceb2-11e4-a09c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79ea2870-ceb2-11e4-a2e7-705681abff85"], ["organization_id", "79ea9c60-ceb2-11e4-a09c-705681abff85"], ["created_at", "2015-03-20 03:37:47.290176"], ["updated_at", "2015-03-20 03:37:47.290176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:47.295634' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "f-IzRIOjZi5jZXQ5WQYKnywmk_nttjBEpJbGLeKBUyo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:47.297196"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:47.298379"], ["id", "79e8020c-ceb2-11e4-88fc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79e79830-ceb2-11e4-9b75-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79e79830-ceb2-11e4-9b75-705681abff85' LIMIT 1 [["organization_id", "79e87dfe-ceb2-11e4-bd47-705681abff85"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "79e87dfe-ceb2-11e4-bd47-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('79e87dfe-ceb2-11e4-bd47-705681abff85') Completed 200 OK in 13ms (Views: 3.8ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$rmsev041IXLYqo8TRaWZPOHefsZIM0TGEkmHEdQaQjUe4CzfIBJJe"], ["created_at", "2015-03-20 03:37:47.316024"], ["updated_at", "2015-03-20 03:37:47.316024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.317805"], ["user_id", "79ef0f70-ceb2-11e4-b44b-705681abff85"], ["created_at", "2015-03-20 03:37:47.318860"], ["updated_at", "2015-03-20 03:37:47.318860"], ["token", "hRIF1RL0cEk6vKHAltt1LwFlTZZy4_XIhsdwHDM0hzk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.323119"], ["updated_at", "2015-03-20 03:37:47.323119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79ef0f70-ceb2-11e4-b44b-705681abff85' AND "clubhouse_memberships"."organization_id" = '79f01f82-ceb2-11e4-abbc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79ef0f70-ceb2-11e4-b44b-705681abff85"], ["organization_id", "79f01f82-ceb2-11e4-abbc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.326479"], ["updated_at", "2015-03-20 03:37:47.326479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '79f01f82-ceb2-11e4-abbc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "79f01f82-ceb2-11e4-abbc-705681abff85"], ["created_at", "2015-03-20 03:37:47.330353"], ["updated_at", "2015-03-20 03:37:47.330353"], ["token", "1s26UKiYOErrTTqLHL1FjmtC1dRO4R_nsb7-43Gnjt4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$DaVXyJEdOsImkE2Xgn2TfeUgnwUlzae2qgJirJQ5XCd7Td/72i1w."], ["created_at", "2015-03-20 03:37:47.334882"], ["updated_at", "2015-03-20 03:37:47.334882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.337861"], ["updated_at", "2015-03-20 03:37:47.337861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79f1e880-ceb2-11e4-b058-705681abff85' AND "clubhouse_memberships"."organization_id" = '79f25d7e-ceb2-11e4-90cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79f1e880-ceb2-11e4-b058-705681abff85"], ["organization_id", "79f25d7e-ceb2-11e4-90cf-705681abff85"], ["created_at", "2015-03-20 03:37:47.340942"], ["updated_at", "2015-03-20 03:37:47.340942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$w6bXC8QIIQ4rEVpvyWBfbOKhVUHOhDr73NPEgB5H80HGJ0UBpB4ou"], ["created_at", "2015-03-20 03:37:47.352183"], ["updated_at", "2015-03-20 03:37:47.352183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.353833"], ["user_id", "79f49210-ceb2-11e4-8ba7-705681abff85"], ["created_at", "2015-03-20 03:37:47.354624"], ["updated_at", "2015-03-20 03:37:47.354624"], ["token", "y3xihwM1MpZKI6QeTtR_DpvEkF5y1uro4Dw7NY8Gr5Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.358078"], ["updated_at", "2015-03-20 03:37:47.358078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79f49210-ceb2-11e4-8ba7-705681abff85' AND "clubhouse_memberships"."organization_id" = '79f5728e-ceb2-11e4-a1cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79f49210-ceb2-11e4-8ba7-705681abff85"], ["organization_id", "79f5728e-ceb2-11e4-a1cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.361266"], ["updated_at", "2015-03-20 03:37:47.361266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '79f5728e-ceb2-11e4-a1cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "79f5728e-ceb2-11e4-a1cb-705681abff85"], ["created_at", "2015-03-20 03:37:47.365516"], ["updated_at", "2015-03-20 03:37:47.365516"], ["token", "VIU5lJigieDMW2zaVjLKsM1aKdOUdWmPfErrZikLJ5A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/79f69dee-ceb2-11e4-9ff5-705681abff85" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"79f69dee-ceb2-11e4-9ff5-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:47.370752' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y3xihwM1MpZKI6QeTtR_DpvEkF5y1uro4Dw7NY8Gr5Q"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:47.372749"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:47.374592"], ["id", "79f4f5e8-ceb2-11e4-84cb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "79f69dee-ceb2-11e4-9ff5-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79f49210-ceb2-11e4-8ba7-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79f5728e-ceb2-11e4-a1cb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79f49210-ceb2-11e4-8ba7-705681abff85' LIMIT 1 [["organization_id", "79f5728e-ceb2-11e4-a1cb-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."id" != '79f69dee-ceb2-11e4-9ff5-705681abff85' AND "clubhouse_invitations"."organization_id" = '79f5728e-ceb2-11e4-a1cb-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 03:37:47.382466"], ["id", "79f69dee-ceb2-11e4-9ff5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$VMR1G57VJlM/Kk0En2EcFuDgA7uYANboMDKo.FxviHL33xNHJVIqW"], ["created_at", "2015-03-20 03:37:47.390332"], ["updated_at", "2015-03-20 03:37:47.390332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.391888"], ["user_id", "79fa6014-ceb2-11e4-808b-705681abff85"], ["created_at", "2015-03-20 03:37:47.392659"], ["updated_at", "2015-03-20 03:37:47.392659"], ["token", "8l3fU2P_n0eSv5xYc44Y1jf4QAJBqyt-d75avblcQ0w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.395973"], ["updated_at", "2015-03-20 03:37:47.395973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79fa6014-ceb2-11e4-808b-705681abff85' AND "clubhouse_memberships"."organization_id" = '79fb3ac0-ceb2-11e4-b23c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79fa6014-ceb2-11e4-808b-705681abff85"], ["organization_id", "79fb3ac0-ceb2-11e4-b23c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.399693"], ["updated_at", "2015-03-20 03:37:47.399693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '79fb3ac0-ceb2-11e4-b23c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "79fb3ac0-ceb2-11e4-b23c-705681abff85"], ["created_at", "2015-03-20 03:37:47.403480"], ["updated_at", "2015-03-20 03:37:47.403480"], ["token", "x5fyZmuX0Q5N7cssxm3tuS32t7se91e4GpTJvyaoR6w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$jNTyMLwnWKjf7WRovUb6BuH2Pf8TkatNZUy5wCi6WktBpzcOl2Y/a"], ["created_at", "2015-03-20 03:37:47.416732"], ["updated_at", "2015-03-20 03:37:47.416732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.418410"], ["user_id", "79fe6aba-ceb2-11e4-81a9-705681abff85"], ["created_at", "2015-03-20 03:37:47.419752"], ["updated_at", "2015-03-20 03:37:47.419752"], ["token", "0y_21AbaPBz86g6kf_YUnh9KjRC5324u1pPbfR9WhSM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.425205"], ["updated_at", "2015-03-20 03:37:47.425205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79fe6aba-ceb2-11e4-81a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '79ffb24e-ceb2-11e4-9393-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79fe6aba-ceb2-11e4-81a9-705681abff85"], ["organization_id", "79ffb24e-ceb2-11e4-9393-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.428570"], ["updated_at", "2015-03-20 03:37:47.428570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '79ffb24e-ceb2-11e4-9393-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "79ffb24e-ceb2-11e4-9393-705681abff85"], ["created_at", "2015-03-20 03:37:47.431838"], ["updated_at", "2015-03-20 03:37:47.431838"], ["token", "VYi1fUbRHbDChykJNTerMSrnvSrJh6b5XT-Pwlp3PvA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/7a00bc48-ceb2-11e4-b7a8-705681abff85" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"7a00bc48-ceb2-11e4-b7a8-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:47.438532' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0y_21AbaPBz86g6kf_YUnh9KjRC5324u1pPbfR9WhSM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:47.440541"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:47.442230"], ["id", "79ff05f6-ceb2-11e4-9cf3-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7a00bc48-ceb2-11e4-b7a8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79fe6aba-ceb2-11e4-81a9-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "79ffb24e-ceb2-11e4-9393-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '79fe6aba-ceb2-11e4-81a9-705681abff85' LIMIT 1 [["organization_id", "79ffb24e-ceb2-11e4-9393-705681abff85"]] Completed 200 OK in 19ms (Views: 1.7ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$kSNaWzDUG6nlksPxTI/0Au.IOtKYp9RbCHgB9RqX.lrsZ0DYFEqey"], ["created_at", "2015-03-20 03:37:47.466499"], ["updated_at", "2015-03-20 03:37:47.466499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.468992"], ["user_id", "7a060f9a-ceb2-11e4-a26d-705681abff85"], ["created_at", "2015-03-20 03:37:47.470259"], ["updated_at", "2015-03-20 03:37:47.470259"], ["token", "NDimf3pMg2M6ZMDExHNpkjHQNEGLgtfnAbfA_rFzzQw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.475621"], ["updated_at", "2015-03-20 03:37:47.475621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a060f9a-ceb2-11e4-a26d-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a076dae-ceb2-11e4-a994-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a060f9a-ceb2-11e4-a26d-705681abff85"], ["organization_id", "7a076dae-ceb2-11e4-a994-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.481179"], ["updated_at", "2015-03-20 03:37:47.481179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '7a076dae-ceb2-11e4-a994-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "7a076dae-ceb2-11e4-a994-705681abff85"], ["created_at", "2015-03-20 03:37:47.485580"], ["updated_at", "2015-03-20 03:37:47.485580"], ["token", "BnITyF6-sVOXl4SvRBKBICdplU1xSN0FSiCawbSJcls"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.494871"], ["updated_at", "2015-03-20 03:37:47.494871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.510116"], ["updated_at", "2015-03-20 03:37:47.510116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.532903"], ["updated_at", "2015-03-20 03:37:47.532903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.551064"], ["updated_at", "2015-03-20 03:37:47.551064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.555699"], ["updated_at", "2015-03-20 03:37:47.555699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7a139b1a-ceb2-11e4-a863-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$OrYPDi9XaBU3Q.nz9Gj/ve7nyJDqFQboOr4RJltlllilBJidfJoW."], ["created_at", "2015-03-20 03:37:47.562672"], ["updated_at", "2015-03-20 03:37:47.562672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.567224"], ["updated_at", "2015-03-20 03:37:47.567224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a14c030-ceb2-11e4-b5b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a155dd8-ceb2-11e4-838f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a14c030-ceb2-11e4-b5b2-705681abff85"], ["organization_id", "7a155dd8-ceb2-11e4-838f-705681abff85"], ["created_at", "2015-03-20 03:37:47.570092"], ["updated_at", "2015-03-20 03:37:47.570092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a14c030-ceb2-11e4-b5b2-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a155dd8-ceb2-11e4-838f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a14c030-ceb2-11e4-b5b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a155dd8-ceb2-11e4-838f-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a155dd8-ceb2-11e4-838f-705681abff86"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a14c030-ceb2-11e4-b5b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a155dd8-ceb2-11e4-838f-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.595543"], ["updated_at", "2015-03-20 03:37:47.595543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7a19b306-ceb2-11e4-a95e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7a19b306-ceb2-11e4-a95e-705681abff85"], ["created_at", "2015-03-20 03:37:47.599527"], ["updated_at", "2015-03-20 03:37:47.599527"], ["token", "KbyXxAquT5-fRr1jgJZufEa7cnyp42IRjzJQWKeeg8I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.7ms) Date: Thu, 19 Mar 2015 20:37:47 -0700 From: from@example.com To: john@example.com Message-ID: <550b960b934c2_e343ff45d865bf04425d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/KbyXxAquT5-fRr1jgJZufEa7cnyp42IRjzJQWKeeg8I?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.608020"], ["updated_at", "2015-03-20 03:37:47.608020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7a1b9798-ceb2-11e4-a9b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7a1b9798-ceb2-11e4-a9b5-705681abff85"], ["created_at", "2015-03-20 03:37:47.611342"], ["updated_at", "2015-03-20 03:37:47.611342"], ["token", "wX60VnXcg46-6PIyxBogAmBmbKFZK149uZc89DmrUIA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (2.2ms) Date: Thu, 19 Mar 2015 20:37:47 -0700 From: from@example.com To: john@example.com Message-ID: <550b960b965aa_e343ff45d865bf044395@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/wX60VnXcg46-6PIyxBogAmBmbKFZK149uZc89DmrUIA?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.620861"], ["updated_at", "2015-03-20 03:37:47.620861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7a1d8e4a-ceb2-11e4-b632-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7a1d8e4a-ceb2-11e4-b632-705681abff85"], ["created_at", "2015-03-20 03:37:47.624327"], ["updated_at", "2015-03-20 03:37:47.624327"], ["token", "xYUe9GYyhRzKYYMgQz96OB806TunJIetbPkVmswGbPE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.8ms) Date: Thu, 19 Mar 2015 20:37:47 -0700 From: from@example.com To: john@example.com Message-ID: <550b960b9940f_e343ff45d865bf0444f7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/xYUe9GYyhRzKYYMgQz96OB806TunJIetbPkVmswGbPE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.632892"], ["updated_at", "2015-03-20 03:37:47.632892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7a1f64a4-ceb2-11e4-8756-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7a1f64a4-ceb2-11e4-8756-705681abff85"], ["created_at", "2015-03-20 03:37:47.636332"], ["updated_at", "2015-03-20 03:37:47.636332"], ["token", "KKi4nfRrG8N-6CpmD07a922Y8c-AqaxVDMQoz0VzzEM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Thu, 19 Mar 2015 20:37:47 -0700 From: from@example.com To: john@example.com Message-ID: <550b960b9c325_e343ff45d865bf04452a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/KKi4nfRrG8N-6CpmD07a922Y8c-AqaxVDMQoz0VzzEM?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$7ufY8rAu6tafjPU3o0iKqu62Cmp.Wumz3mroUGUJKCmy3OMzeR0vm"], ["created_at", "2015-03-20 03:37:47.645685"], ["updated_at", "2015-03-20 03:37:47.645685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.648947"], ["updated_at", "2015-03-20 03:37:47.648947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$a/nU3tCGmZv.iswVg6.xJeYm0O4Kz5qYRFDsPzrVEXomfDZwP9B1W"], ["created_at", "2015-03-20 03:37:47.654830"], ["updated_at", "2015-03-20 03:37:47.654830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.659641"], ["updated_at", "2015-03-20 03:37:47.659641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7a22bcb2-ceb2-11e4-80b5-705681abff85' LIMIT 1 [["organization_id", "7a238750-ceb2-11e4-aab2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$l.mO9q4IYJ2SDmNB34Eafei.VxFOrq8nijeBeFeKmbF2C91EDyiQq"], ["created_at", "2015-03-20 03:37:47.667957"], ["updated_at", "2015-03-20 03:37:47.667957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.671203"], ["updated_at", "2015-03-20 03:37:47.671203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7a24bf08-ceb2-11e4-a8b1-705681abff85' LIMIT 1 [["organization_id", "7a253b4a-ceb2-11e4-9e88-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$BvSzB1jtMtKUdBfGC8nzy.cjJTPa3ZKofNQYEeQAYctZX/iehDeZe"], ["created_at", "2015-03-20 03:37:47.678267"], ["updated_at", "2015-03-20 03:37:47.678267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.681597"], ["updated_at", "2015-03-20 03:37:47.681597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$eZE.FCobaxRFJMIBVvV7i.nz8UEz7KmsuKvMyd.SjGS7Gpul0J4mu"], ["created_at", "2015-03-20 03:37:47.687095"], ["updated_at", "2015-03-20 03:37:47.687095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.690089"], ["updated_at", "2015-03-20 03:37:47.690089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7a27a786-ceb2-11e4-b9f3-705681abff85' LIMIT 1 [["organization_id", "7a281aea-ceb2-11e4-9281-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$EHs/cM.V3WAuHkq3Fc8DF.H1ebOF8mzBGGxnDpo30sualHFAUvAEu"], ["created_at", "2015-03-20 03:37:47.697024"], ["updated_at", "2015-03-20 03:37:47.697024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.700544"], ["updated_at", "2015-03-20 03:37:47.700544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a292c6e-ceb2-11e4-b285-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a29b8a0-ceb2-11e4-a153-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a292c6e-ceb2-11e4-b285-705681abff85"], ["organization_id", "7a29b8a0-ceb2-11e4-a153-705681abff85"], ["created_at", "2015-03-20 03:37:47.703975"], ["updated_at", "2015-03-20 03:37:47.703975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$gAYuFXdCwcjzA.t4Ide3seO8PKm.BykmR5TZTDFh.ZohLZTn9vrNW"], ["created_at", "2015-03-20 03:37:47.709513"], ["updated_at", "2015-03-20 03:37:47.709513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.712549"], ["updated_at", "2015-03-20 03:37:47.712549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a2b12fe-ceb2-11e4-a8b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a2b8a7c-ceb2-11e4-acae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a2b12fe-ceb2-11e4-a8b1-705681abff85"], ["organization_id", "7a2b8a7c-ceb2-11e4-acae-705681abff85"], ["created_at", "2015-03-20 03:37:47.716650"], ["updated_at", "2015-03-20 03:37:47.716650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7a2b12fe-ceb2-11e4-a8b1-705681abff85' LIMIT 1 [["organization_id", "7a2b8a7c-ceb2-11e4-acae-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$M7TvCxr2feEpeEcqntu42OsliGCJbfHsw7.NHsoxlFtG8L9JfSZqq"], ["created_at", "2015-03-20 03:37:47.723433"], ["updated_at", "2015-03-20 03:37:47.723433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.728078"], ["updated_at", "2015-03-20 03:37:47.728078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a2d33c2-ceb2-11e4-a7a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a2dfb18-ceb2-11e4-86d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a2d33c2-ceb2-11e4-a7a3-705681abff85"], ["organization_id", "7a2dfb18-ceb2-11e4-86d6-705681abff85"], ["created_at", "2015-03-20 03:37:47.733238"], ["updated_at", "2015-03-20 03:37:47.733238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7a2d33c2-ceb2-11e4-a7a3-705681abff85' LIMIT 1 [["organization_id", "7a2dfb18-ceb2-11e4-86d6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$3v774uqPI6/t1.vMQao5S.4G0wlvh04gUa/OilCRF9m2zjG6ZzxEq"], ["created_at", "2015-03-20 03:37:47.740196"], ["updated_at", "2015-03-20 03:37:47.740196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.743462"], ["updated_at", "2015-03-20 03:37:47.743462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a2fc240-ceb2-11e4-89fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a30412a-ceb2-11e4-831c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a2fc240-ceb2-11e4-89fc-705681abff85"], ["organization_id", "7a30412a-ceb2-11e4-831c-705681abff85"], ["created_at", "2015-03-20 03:37:47.746778"], ["updated_at", "2015-03-20 03:37:47.746778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$u37iBJDe5XSTOCvf/jhhK.cCtMKRCLoIhJcs306CrMRPg1JUVNXQy"], ["created_at", "2015-03-20 03:37:47.752713"], ["updated_at", "2015-03-20 03:37:47.752713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.755837"], ["updated_at", "2015-03-20 03:37:47.755837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a31ac86-ceb2-11e4-88a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a3223fa-ceb2-11e4-8020-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a31ac86-ceb2-11e4-88a2-705681abff85"], ["organization_id", "7a3223fa-ceb2-11e4-8020-705681abff85"], ["created_at", "2015-03-20 03:37:47.758980"], ["updated_at", "2015-03-20 03:37:47.758980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7a31ac86-ceb2-11e4-88a2-705681abff85' LIMIT 1 [["organization_id", "7a3223fa-ceb2-11e4-8020-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$NZxInW.cI6w2y1otRdxGEOs8LbKLaws7n9xt7qkkmXIbpCJQtzt3i"], ["created_at", "2015-03-20 03:37:47.766824"], ["updated_at", "2015-03-20 03:37:47.766824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.770185"], ["updated_at", "2015-03-20 03:37:47.770185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a33d646-ceb2-11e4-9f48-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a345486-ceb2-11e4-9f03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a33d646-ceb2-11e4-9f48-705681abff85"], ["organization_id", "7a345486-ceb2-11e4-9f03-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.773477"], ["updated_at", "2015-03-20 03:37:47.773477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$0VNi1XMWZcyqGFwm2ytlp.JRTUCRV6nSXhEA8pOC9PTR80NFGg0p."], ["created_at", "2015-03-20 03:37:47.778962"], ["updated_at", "2015-03-20 03:37:47.778962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.782096"], ["updated_at", "2015-03-20 03:37:47.782096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a35adae-ceb2-11e4-b72f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a3626d0-ceb2-11e4-8458-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a35adae-ceb2-11e4-b72f-705681abff85"], ["organization_id", "7a3626d0-ceb2-11e4-8458-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.785295"], ["updated_at", "2015-03-20 03:37:47.785295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7a35adae-ceb2-11e4-b72f-705681abff85' LIMIT 1 [["organization_id", "7a3626d0-ceb2-11e4-8458-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$vrjzHE8VQRklO4XK8xGkHOtPctJBXOlmS0HxsD3ByqFyeXMU8XVG6"], ["created_at", "2015-03-20 03:37:47.792020"], ["updated_at", "2015-03-20 03:37:47.792020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.795099"], ["updated_at", "2015-03-20 03:37:47.795099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a37aaaa-ceb2-11e4-8306-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a382110-ceb2-11e4-9463-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a37aaaa-ceb2-11e4-8306-705681abff85"], ["organization_id", "7a382110-ceb2-11e4-9463-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.798358"], ["updated_at", "2015-03-20 03:37:47.798358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7a37aaaa-ceb2-11e4-8306-705681abff85' LIMIT 1 [["organization_id", "7a382110-ceb2-11e4-9463-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$fJPwdPYaIRKQmt8Z7b63SejpI/A/u9dqBAqdGnlIh.Nr89E7HT6MC"], ["created_at", "2015-03-20 03:37:47.805759"], ["updated_at", "2015-03-20 03:37:47.805759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.808944"], ["updated_at", "2015-03-20 03:37:47.808944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a39c416-ceb2-11e4-842b-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a3a3ea0-ceb2-11e4-a135-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a39c416-ceb2-11e4-842b-705681abff85"], ["organization_id", "7a3a3ea0-ceb2-11e4-a135-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.812115"], ["updated_at", "2015-03-20 03:37:47.812115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$WBNjgUskDAfT.u5S6Ythy.5iDKNg1ANcUsSw9V/KHgQzNRZdzk4C2"], ["created_at", "2015-03-20 03:37:47.818585"], ["updated_at", "2015-03-20 03:37:47.818585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.821798"], ["updated_at", "2015-03-20 03:37:47.821798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a3bbab4-ceb2-11e4-a20d-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a3c34e4-ceb2-11e4-9256-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a3bbab4-ceb2-11e4-a20d-705681abff85"], ["organization_id", "7a3c34e4-ceb2-11e4-9256-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.825178"], ["updated_at", "2015-03-20 03:37:47.825178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7a3bbab4-ceb2-11e4-a20d-705681abff85' LIMIT 1 [["organization_id", "7a3c34e4-ceb2-11e4-9256-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$NEUjnYlyrYTJaS8k0/Tk4uktLoAFw8JtBiVmvAkx3e6XU.K3NBhBy"], ["created_at", "2015-03-20 03:37:47.832290"], ["updated_at", "2015-03-20 03:37:47.832290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$M/3DuarQ7BjUN6uxxZEpw.0QgMPl3FCXfqvyQXVDlh0Qv7YnaUpy6"], ["created_at", "2015-03-20 03:37:47.838732"], ["updated_at", "2015-03-20 03:37:47.838732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$XqUBoxBjIPBShXpHE7hDquLDvYp5s1EKzcsq1kngRcen4WA31UYFi"], ["created_at", "2015-03-20 03:37:47.842798"], ["updated_at", "2015-03-20 03:37:47.842798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.844271"], ["user_id", "7a3ecb3c-ceb2-11e4-a77b-705681abff85"], ["created_at", "2015-03-20 03:37:47.845063"], ["updated_at", "2015-03-20 03:37:47.845063"], ["token", "vnx6pdu6FWVxqaHsOLz0ObRwq44RmCHtZLCLrOcFJKc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.848319"], ["updated_at", "2015-03-20 03:37:47.848319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a3ecb3c-ceb2-11e4-a77b-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a403fa8-ceb2-11e4-867c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a3ecb3c-ceb2-11e4-a77b-705681abff85"], ["organization_id", "7a403fa8-ceb2-11e4-867c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.852231"], ["updated_at", "2015-03-20 03:37:47.852231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a3f684e-ceb2-11e4-a02d-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a403fa8-ceb2-11e4-867c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a3f684e-ceb2-11e4-a02d-705681abff85"], ["organization_id", "7a403fa8-ceb2-11e4-867c-705681abff85"], ["created_at", "2015-03-20 03:37:47.855404"], ["updated_at", "2015-03-20 03:37:47.855404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$PqMT1DzqtcmmXzThjW.g7OGAhRPhpVMytD2wwOmjNy.LbB3GJOrPi"], ["created_at", "2015-03-20 03:37:47.859621"], ["updated_at", "2015-03-20 03:37:47.859621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.861104"], ["user_id", "7a41f9ec-ceb2-11e4-8ef8-705681abff85"], ["created_at", "2015-03-20 03:37:47.861860"], ["updated_at", "2015-03-20 03:37:47.861860"], ["token", "KRfqrE1GzCEFMRD9nhCvKXDrX9KM1AGXHlCkaNVtqj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '7a403fa8-ceb2-11e4-867c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "7a403fa8-ceb2-11e4-867c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.866245"], ["updated_at", "2015-03-20 03:37:47.866245"], ["token", "5MFQ2dEcf5Vcn_pEWfgU-t5b1NktwuBlKIgFozyiGkg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$vhaOH874tDXzvUDHrHJAEuqA/RMdBaUFvN/tbn0IPHNW.3lGdtg3e"], ["created_at", "2015-03-20 03:37:47.884177"], ["updated_at", "2015-03-20 03:37:47.884177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$zYnRc1kiPqBVvRe00E7Hv.FJfFYW7cGufd4sH6NZ04235mPMaH/5W"], ["created_at", "2015-03-20 03:37:47.888497"], ["updated_at", "2015-03-20 03:37:47.888497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.889986"], ["user_id", "7a45bfaa-ceb2-11e4-bfa4-705681abff85"], ["created_at", "2015-03-20 03:37:47.890778"], ["updated_at", "2015-03-20 03:37:47.890778"], ["token", "_TWZkmb1L3wu3V1ka135DTQqDweJo1BhHpYTXtRyiaM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.894116"], ["updated_at", "2015-03-20 03:37:47.894116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a45bfaa-ceb2-11e4-bfa4-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a473cfe-ceb2-11e4-b438-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a45bfaa-ceb2-11e4-bfa4-705681abff85"], ["organization_id", "7a473cfe-ceb2-11e4-b438-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.897428"], ["updated_at", "2015-03-20 03:37:47.897428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a466248-ceb2-11e4-bd17-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a473cfe-ceb2-11e4-b438-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a466248-ceb2-11e4-bd17-705681abff85"], ["organization_id", "7a473cfe-ceb2-11e4-b438-705681abff85"], ["created_at", "2015-03-20 03:37:47.900527"], ["updated_at", "2015-03-20 03:37:47.900527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$nZOLfTgZmw2mmF2SKqEODOO8R5JZnBjZiU.6l9lrz9p2r5m3OyL6K"], ["created_at", "2015-03-20 03:37:47.905222"], ["updated_at", "2015-03-20 03:37:47.905222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.906733"], ["user_id", "7a48f134-ceb2-11e4-979e-705681abff85"], ["created_at", "2015-03-20 03:37:47.907513"], ["updated_at", "2015-03-20 03:37:47.907513"], ["token", "ilxbHqecXboi7qENB4wgwQnAhfMDbR6e5_0uHBgnTL8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '7a473cfe-ceb2-11e4-b438-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "7a473cfe-ceb2-11e4-b438-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.911157"], ["updated_at", "2015-03-20 03:37:47.911157"], ["token", "2LRDacMUCJHuS6t7e3Cl-6g3DLslTAv7JzCBJxSpMAk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7a473cfe-ceb2-11e4-b438-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"7a473cfe-ceb2-11e4-b438-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:47.917231' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ilxbHqecXboi7qENB4wgwQnAhfMDbR6e5_0uHBgnTL8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:47.918778"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:47.919805"], ["id", "7a494fee-ceb2-11e4-b46f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7a473cfe-ceb2-11e4-b438-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a48f134-ceb2-11e4-979e-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$Gi3gmzjxieLCZUQVzY.oOuAxOXJGCEfuqC4cLCo9mkOUGtvqG9E0a"], ["created_at", "2015-03-20 03:37:47.934077"], ["updated_at", "2015-03-20 03:37:47.934077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$/ujayVXcz9N3S.GwccpYYOvNZIF4gxHYZgRkgJ3wtVR/Sx9aoSko2"], ["created_at", "2015-03-20 03:37:47.938506"], ["updated_at", "2015-03-20 03:37:47.938506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.940007"], ["user_id", "7a4d5df0-ceb2-11e4-b3ff-705681abff85"], ["created_at", "2015-03-20 03:37:47.940801"], ["updated_at", "2015-03-20 03:37:47.940801"], ["token", "Hoh0lXiSIGdxaxFyEX_6DhVvBB3B7vuiXkHZ_r1r0Gk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:47.944379"], ["updated_at", "2015-03-20 03:37:47.944379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a4d5df0-ceb2-11e4-b3ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a4ee954-ceb2-11e4-af32-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a4d5df0-ceb2-11e4-b3ff-705681abff85"], ["organization_id", "7a4ee954-ceb2-11e4-af32-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.947732"], ["updated_at", "2015-03-20 03:37:47.947732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a4e0390-ceb2-11e4-abf7-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a4ee954-ceb2-11e4-af32-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a4e0390-ceb2-11e4-abf7-705681abff85"], ["organization_id", "7a4ee954-ceb2-11e4-af32-705681abff85"], ["created_at", "2015-03-20 03:37:47.950817"], ["updated_at", "2015-03-20 03:37:47.950817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$mcZwZYt3eXu7RMPmp843JuCR.jALbLIoibfrMLqaPM2tKrA6wuMu6"], ["created_at", "2015-03-20 03:37:47.955060"], ["updated_at", "2015-03-20 03:37:47.955060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:47.956509"], ["user_id", "7a508a52-ceb2-11e4-b9d4-705681abff85"], ["created_at", "2015-03-20 03:37:47.957288"], ["updated_at", "2015-03-20 03:37:47.957288"], ["token", "aNJXZuNzkdCab2yZQfroFHhevQyq7X9rM48DFudKSLI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '7a4ee954-ceb2-11e4-af32-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "7a4ee954-ceb2-11e4-af32-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.969931"], ["updated_at", "2015-03-20 03:37:47.969931"], ["token", "XbYGLrRZe6KGy8TOYA2Gmo4OZky-a3uwQZcJ5AqJ8tc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7a4ee954-ceb2-11e4-af32-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 20:37:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"XbYGLrRZe6KGy8TOYA2Gmo4OZky-a3uwQZcJ5AqJ8tc", "organization_id"=>"7a4ee954-ceb2-11e4-af32-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:47.975369' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aNJXZuNzkdCab2yZQfroFHhevQyq7X9rM48DFudKSLI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:47.976760"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:47.977706"], ["id", "7a50e7f4-ceb2-11e4-88f7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7a4ee954-ceb2-11e4-af32-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a508a52-ceb2-11e4-b9d4-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "XbYGLrRZe6KGy8TOYA2Gmo4OZky-a3uwQZcJ5AqJ8tc"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a4ee954-ceb2-11e4-af32-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a508a52-ceb2-11e4-b9d4-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a4ee954-ceb2-11e4-af32-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "7a4ee954-ceb2-11e4-af32-705681abff85"], ["member_id", "7a508a52-ceb2-11e4-b9d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:47.985476"], ["updated_at", "2015-03-20 03:37:47.985476"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7a52d9ce-ceb2-11e4-a01b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 3.7ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$e4/oTjMXYyVIyjjl20OFpuuc7L7e0WWseftxc0BlrAMWailqfqgJO"], ["created_at", "2015-03-20 03:37:47.998489"], ["updated_at", "2015-03-20 03:37:47.998489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$NQUfITlx093CYdW8fO0vpuXJ086gKPHiGMSr7Kg8WP1WmRrYIgSzq"], ["created_at", "2015-03-20 03:37:48.002910"], ["updated_at", "2015-03-20 03:37:48.002910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.004449"], ["user_id", "7a573190-ceb2-11e4-834e-705681abff85"], ["created_at", "2015-03-20 03:37:48.005250"], ["updated_at", "2015-03-20 03:37:48.005250"], ["token", "ncGkKFw6DkBKFq7UtZB6z4pUvJUJ4iXHGSFiC7A5LWY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.008754"], ["updated_at", "2015-03-20 03:37:48.008754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a573190-ceb2-11e4-834e-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a58bc22-ceb2-11e4-b77b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a573190-ceb2-11e4-834e-705681abff85"], ["organization_id", "7a58bc22-ceb2-11e4-b77b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.012760"], ["updated_at", "2015-03-20 03:37:48.012760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a57d8ac-ceb2-11e4-8712-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a58bc22-ceb2-11e4-b77b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a57d8ac-ceb2-11e4-8712-705681abff85"], ["organization_id", "7a58bc22-ceb2-11e4-b77b-705681abff85"], ["created_at", "2015-03-20 03:37:48.015991"], ["updated_at", "2015-03-20 03:37:48.015991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7a58bc22-ceb2-11e4-b77b-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"7a58bc22-ceb2-11e4-b77b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:48.021372' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ncGkKFw6DkBKFq7UtZB6z4pUvJUJ4iXHGSFiC7A5LWY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:48.023510"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:48.024472"], ["id", "7a583c2a-ceb2-11e4-9c9d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7a58bc22-ceb2-11e4-b77b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a573190-ceb2-11e4-834e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7a573190-ceb2-11e4-834e-705681abff85' LIMIT 1 [["organization_id", "7a58bc22-ceb2-11e4-b77b-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "7a58bc22-ceb2-11e4-b77b-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('7a573190-ceb2-11e4-834e-705681abff85', '7a57d8ac-ceb2-11e4-8712-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('7a58bc22-ceb2-11e4-b77b-705681abff85') Completed 200 OK in 16ms (Views: 5.8ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$fJ/Xa29t42iqk7HBN/72n.Bzc2/WvvEH.oWTj9zHdHA4vRdbhTtdm"], ["created_at", "2015-03-20 03:37:48.046302"], ["updated_at", "2015-03-20 03:37:48.046302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$yaVCsIMQ/wYLKLs6uEWtdeSgs6AhHlBRxKXsaaF214sGPge6irTku"], ["created_at", "2015-03-20 03:37:48.051515"], ["updated_at", "2015-03-20 03:37:48.051515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.053332"], ["user_id", "7a5e7a04-ceb2-11e4-b778-705681abff85"], ["created_at", "2015-03-20 03:37:48.054140"], ["updated_at", "2015-03-20 03:37:48.054140"], ["token", "Y4oODHwLkPwunfD4Jgyv5ijUSOe-nS4d7ogfioQ-kRk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.058891"], ["updated_at", "2015-03-20 03:37:48.058891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a5e7a04-ceb2-11e4-b778-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a60775a-ceb2-11e4-9862-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a5e7a04-ceb2-11e4-b778-705681abff85"], ["organization_id", "7a60775a-ceb2-11e4-9862-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.063884"], ["updated_at", "2015-03-20 03:37:48.063884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a5f4cea-ceb2-11e4-b2a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a60775a-ceb2-11e4-9862-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a5f4cea-ceb2-11e4-b2a9-705681abff85"], ["organization_id", "7a60775a-ceb2-11e4-9862-705681abff85"], ["created_at", "2015-03-20 03:37:48.068702"], ["updated_at", "2015-03-20 03:37:48.068702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$K.Y16faWsQi0DCMQH8VDg.70X4smsvUPahhxRzYZzuIZ5wxnaofBK"], ["created_at", "2015-03-20 03:37:48.081595"], ["updated_at", "2015-03-20 03:37:48.081595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$PMaLhL3D6S/2GypzjkY.SOq37T5acW5oM1lp.MVE3RVfbKFHGa65m"], ["created_at", "2015-03-20 03:37:48.086574"], ["updated_at", "2015-03-20 03:37:48.086574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.088499"], ["user_id", "7a63e14c-ceb2-11e4-96b7-705681abff85"], ["created_at", "2015-03-20 03:37:48.089287"], ["updated_at", "2015-03-20 03:37:48.089287"], ["token", "hC7lu65HLsW88aFHIRVN-tb2zdcLH5w0qVjfqxmlKKs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.093021"], ["updated_at", "2015-03-20 03:37:48.093021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a63e14c-ceb2-11e4-96b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a65992e-ceb2-11e4-b8f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a63e14c-ceb2-11e4-96b7-705681abff85"], ["organization_id", "7a65992e-ceb2-11e4-b8f0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.096374"], ["updated_at", "2015-03-20 03:37:48.096374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a64a046-ceb2-11e4-81bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a65992e-ceb2-11e4-b8f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a64a046-ceb2-11e4-81bf-705681abff85"], ["organization_id", "7a65992e-ceb2-11e4-b8f0-705681abff85"], ["created_at", "2015-03-20 03:37:48.100243"], ["updated_at", "2015-03-20 03:37:48.100243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$gMBzA.9OGQ6qfTXbUtyOqu.8/ksn5M20Rwf14Rz58mq82k/faEXQ6"], ["created_at", "2015-03-20 03:37:48.105404"], ["updated_at", "2015-03-20 03:37:48.105404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.107244"], ["user_id", "7a6780e0-ceb2-11e4-a531-705681abff85"], ["created_at", "2015-03-20 03:37:48.108001"], ["updated_at", "2015-03-20 03:37:48.108001"], ["token", "jkzuGI4GqHvyEDBQyTo4QFkT_YNvhRJSJC5A4NNcjhU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '7a65992e-ceb2-11e4-b8f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "7a65992e-ceb2-11e4-b8f0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.111971"], ["updated_at", "2015-03-20 03:37:48.111971"], ["token", "eI3LEAFRPxw87b54wfOWYIwm8SOiE7pzWA8aKKe20iE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$MsQEUNqNj10Z25c0OfXUo.UlHXv5xXtsLVZCg0jnXK0zU6yqYJL/m"], ["created_at", "2015-03-20 03:37:48.124141"], ["updated_at", "2015-03-20 03:37:48.124141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$xnmT3lz.dbs9Vw/9nbTpgu5owBkVgSqQm5W0ExQCi47TQ6icSd24u"], ["created_at", "2015-03-20 03:37:48.129179"], ["updated_at", "2015-03-20 03:37:48.129179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.130953"], ["user_id", "7a6a7390-ceb2-11e4-b12c-705681abff85"], ["created_at", "2015-03-20 03:37:48.131736"], ["updated_at", "2015-03-20 03:37:48.131736"], ["token", "TSnYw6ers3SZLhT-9-3P6jRqt3znZZ51s2w8vpzCi2o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.137078"], ["updated_at", "2015-03-20 03:37:48.137078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a6a7390-ceb2-11e4-b12c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a6c5192-ceb2-11e4-a740-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a6a7390-ceb2-11e4-b12c-705681abff85"], ["organization_id", "7a6c5192-ceb2-11e4-a740-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.142966"], ["updated_at", "2015-03-20 03:37:48.142966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a6b22b8-ceb2-11e4-b3dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a6c5192-ceb2-11e4-a740-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a6b22b8-ceb2-11e4-b3dd-705681abff85"], ["organization_id", "7a6c5192-ceb2-11e4-a740-705681abff85"], ["created_at", "2015-03-20 03:37:48.147556"], ["updated_at", "2015-03-20 03:37:48.147556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$xXrQnaYukLKOWgNOiwqtj.NWoYleRHTPFTNyWfjROBJ3BO.auHMBW"], ["created_at", "2015-03-20 03:37:48.151848"], ["updated_at", "2015-03-20 03:37:48.151848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.153679"], ["user_id", "7a6e9da8-ceb2-11e4-8dd8-705681abff85"], ["created_at", "2015-03-20 03:37:48.154650"], ["updated_at", "2015-03-20 03:37:48.154650"], ["token", "gUUz5V-I4UFRJ7VTAYE_1dHL9234DR6TAy4U2vX_4Jk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '7a6c5192-ceb2-11e4-a740-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "7a6c5192-ceb2-11e4-a740-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.158825"], ["updated_at", "2015-03-20 03:37:48.158825"], ["token", "V2cnbD6MHIY5t-ZPF7yi5U-WMvDQOMi_z0Ic-xEMsHo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:48.164658' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gUUz5V-I4UFRJ7VTAYE_1dHL9234DR6TAy4U2vX_4Jk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:48.166406"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:48.167610"], ["id", "7a6f10a8-ceb2-11e4-8095-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a6e9da8-ceb2-11e4-8dd8-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$MWtFW166sw2UK5uKPu76vu.qylKMBS9BnITzoS7vuSjP7g1TXz21a"], ["created_at", "2015-03-20 03:37:48.178653"], ["updated_at", "2015-03-20 03:37:48.178653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$KLkNTg/hdUENDskljXFQLu8MAXGzhX0xbj1y47HUQx6IMy8rz.UOG"], ["created_at", "2015-03-20 03:37:48.183026"], ["updated_at", "2015-03-20 03:37:48.183026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.184545"], ["user_id", "7a72ac04-ceb2-11e4-8374-705681abff85"], ["created_at", "2015-03-20 03:37:48.185357"], ["updated_at", "2015-03-20 03:37:48.185357"], ["token", "A-VKm0OS5LoyQSJ6yOh4B2_fwy_yc6g0a5Stk0zmwS0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.188832"], ["updated_at", "2015-03-20 03:37:48.188832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a72ac04-ceb2-11e4-8374-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a743768-ceb2-11e4-bd63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a72ac04-ceb2-11e4-8374-705681abff85"], ["organization_id", "7a743768-ceb2-11e4-bd63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.192140"], ["updated_at", "2015-03-20 03:37:48.192140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a73542e-ceb2-11e4-b2b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a743768-ceb2-11e4-bd63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a73542e-ceb2-11e4-b2b4-705681abff85"], ["organization_id", "7a743768-ceb2-11e4-bd63-705681abff85"], ["created_at", "2015-03-20 03:37:48.195109"], ["updated_at", "2015-03-20 03:37:48.195109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$JI0PZv1LEfxbbIoiQhc3LOiJN6lOHU6YgbtbPYiyfYNGP6XJnLUOy"], ["created_at", "2015-03-20 03:37:48.199905"], ["updated_at", "2015-03-20 03:37:48.199905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.201530"], ["user_id", "7a75ea0e-ceb2-11e4-9b59-705681abff85"], ["created_at", "2015-03-20 03:37:48.202401"], ["updated_at", "2015-03-20 03:37:48.202401"], ["token", "VC_EowdU0oi1OHP5wddKSlrOaMGmORTNU0db0W3Yfbc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '7a743768-ceb2-11e4-bd63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "7a743768-ceb2-11e4-bd63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.206208"], ["updated_at", "2015-03-20 03:37:48.206208"], ["token", "xBFn5R2lxG5zY6ViGr-BsN6cIvehdwnjsNp1jG-JZiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"xBFn5R2lxG5zY6ViGr-BsN6cIvehdwnjsNp1jG-JZiY", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:48.212418' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VC_EowdU0oi1OHP5wddKSlrOaMGmORTNU0db0W3Yfbc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:48.214079"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:48.215228"], ["id", "7a765002-ceb2-11e4-ab91-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a75ea0e-ceb2-11e4-9b59-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "xBFn5R2lxG5zY6ViGr-BsN6cIvehdwnjsNp1jG-JZiY"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a743768-ceb2-11e4-bd63-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a75ea0e-ceb2-11e4-9b59-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a743768-ceb2-11e4-bd63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "7a743768-ceb2-11e4-bd63-705681abff85"], ["member_id", "7a75ea0e-ceb2-11e4-9b59-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.223131"], ["updated_at", "2015-03-20 03:37:48.223131"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7a76e26a-ceb2-11e4-b8c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.0ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$GKAUPWIKne5kiFt8D8z7duNF2Peh1bOfXtb/wHPCQ2j.LYiNBzOze"], ["created_at", "2015-03-20 03:37:48.232802"], ["updated_at", "2015-03-20 03:37:48.232802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$qhWucKAZf/y2yRVH4PjwGuOZcP9YuOsJR58W1S.1j1EwSOXblgS2i"], ["created_at", "2015-03-20 03:37:48.237180"], ["updated_at", "2015-03-20 03:37:48.237180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.238757"], ["user_id", "7a7af2a6-ceb2-11e4-9fec-705681abff85"], ["created_at", "2015-03-20 03:37:48.239540"], ["updated_at", "2015-03-20 03:37:48.239540"], ["token", "hwocAsBZySq9CJQIGjhvCXZdJk1tHM0gzXIHrSW_-cc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.243165"], ["updated_at", "2015-03-20 03:37:48.243165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a7af2a6-ceb2-11e4-9fec-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a7c8102-ceb2-11e4-8434-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a7af2a6-ceb2-11e4-9fec-705681abff85"], ["organization_id", "7a7c8102-ceb2-11e4-8434-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.246472"], ["updated_at", "2015-03-20 03:37:48.246472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a7b972e-ceb2-11e4-8d7f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a7c8102-ceb2-11e4-8434-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a7b972e-ceb2-11e4-8d7f-705681abff85"], ["organization_id", "7a7c8102-ceb2-11e4-8434-705681abff85"], ["created_at", "2015-03-20 03:37:48.249700"], ["updated_at", "2015-03-20 03:37:48.249700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7a7d8098-ceb2-11e4-82c4-705681abff85" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7a7d8098-ceb2-11e4-82c4-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:48.255126' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hwocAsBZySq9CJQIGjhvCXZdJk1tHM0gzXIHrSW_-cc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:48.256984"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:48.258934"], ["id", "7a7bffc0-ceb2-11e4-8f2d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "7a7d8098-ceb2-11e4-82c4-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a7af2a6-ceb2-11e4-9fec-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a7c8102-ceb2-11e4-8434-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7a7af2a6-ceb2-11e4-9fec-705681abff85' LIMIT 1 [["organization_id", "7a7c8102-ceb2-11e4-8434-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a7b972e-ceb2-11e4-8d7f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "7a7d8098-ceb2-11e4-82c4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$eCygB1bXUNoZqKZGwkuxTuLd5DecAI9TKswJcJ4NSm55fB32F8Hui"], ["created_at", "2015-03-20 03:37:48.273760"], ["updated_at", "2015-03-20 03:37:48.273760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$5Z731UgooJKOhaOl7PxFe.i4aHAv75Car5Tjnvbyu/K0uh0Z0.MzW"], ["created_at", "2015-03-20 03:37:48.277983"], ["updated_at", "2015-03-20 03:37:48.277983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.279537"], ["user_id", "7a812ed2-ceb2-11e4-92fa-705681abff85"], ["created_at", "2015-03-20 03:37:48.280352"], ["updated_at", "2015-03-20 03:37:48.280352"], ["token", "pA28zwGdpi8bRqsstSO6jMFyWMeJtmNfH9Y1eWMqq40"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.284256"], ["updated_at", "2015-03-20 03:37:48.284256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a812ed2-ceb2-11e4-92fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a82d1f6-ceb2-11e4-bb72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a812ed2-ceb2-11e4-92fa-705681abff85"], ["organization_id", "7a82d1f6-ceb2-11e4-bb72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.288161"], ["updated_at", "2015-03-20 03:37:48.288161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a81d0d0-ceb2-11e4-87ba-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a82d1f6-ceb2-11e4-bb72-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a81d0d0-ceb2-11e4-87ba-705681abff85"], ["organization_id", "7a82d1f6-ceb2-11e4-bb72-705681abff85"], ["created_at", "2015-03-20 03:37:48.291829"], ["updated_at", "2015-03-20 03:37:48.291829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$i1w7f8JnMT9FUmb/CZD5Wes0N.MShXsLQUca4Gd8g52kEf/In.5hK"], ["created_at", "2015-03-20 03:37:48.303461"], ["updated_at", "2015-03-20 03:37:48.303461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$oPvsA8HQntv4HZNN31mJBumGsFusLIh6faG7cmTskcgVLPpw1ZKtm"], ["created_at", "2015-03-20 03:37:48.308328"], ["updated_at", "2015-03-20 03:37:48.308328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.310092"], ["user_id", "7a85ba74-ceb2-11e4-aa98-705681abff85"], ["created_at", "2015-03-20 03:37:48.310999"], ["updated_at", "2015-03-20 03:37:48.310999"], ["token", "ddWfZzOQo_zvlC6-6hUqGaugMMMtb6-fZ4Fmt-dj68E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.314960"], ["updated_at", "2015-03-20 03:37:48.314960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a85ba74-ceb2-11e4-aa98-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a878c0a-ceb2-11e4-b625-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a85ba74-ceb2-11e4-aa98-705681abff85"], ["organization_id", "7a878c0a-ceb2-11e4-b625-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.320474"], ["updated_at", "2015-03-20 03:37:48.320474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a8677d4-ceb2-11e4-ae92-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a878c0a-ceb2-11e4-b625-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a8677d4-ceb2-11e4-ae92-705681abff85"], ["organization_id", "7a878c0a-ceb2-11e4-b625-705681abff85"], ["created_at", "2015-03-20 03:37:48.324756"], ["updated_at", "2015-03-20 03:37:48.324756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:48.330268' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ddWfZzOQo_zvlC6-6hUqGaugMMMtb6-fZ4Fmt-dj68E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:48.331822"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:48.333437"], ["id", "7a86e6c4-ceb2-11e4-a046-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a85ba74-ceb2-11e4-aa98-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7a85ba74-ceb2-11e4-aa98-705681abff85' LIMIT 1 [["organization_id", "7a878c0a-ceb2-11e4-b625-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "7a878c0a-ceb2-11e4-b625-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('7a85ba74-ceb2-11e4-aa98-705681abff85', '7a8677d4-ceb2-11e4-ae92-705681abff85') Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('7a878c0a-ceb2-11e4-b625-705681abff85') Completed 200 OK in 18ms (Views: 6.5ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$2VNPkXBso/jJzHhN0M3duObNsJeugIp/v.7gNKaGc2xGz5N/fh9wO"], ["created_at", "2015-03-20 03:37:48.355263"], ["updated_at", "2015-03-20 03:37:48.355263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$hmb3rpCPsoJgVFKd7/Skj.nV/YjH1mpdw2UkLCLpH.gHYJQWdnkF."], ["created_at", "2015-03-20 03:37:48.359437"], ["updated_at", "2015-03-20 03:37:48.359437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.360908"], ["user_id", "7a8d9ed8-ceb2-11e4-8f13-705681abff85"], ["created_at", "2015-03-20 03:37:48.361653"], ["updated_at", "2015-03-20 03:37:48.361653"], ["token", "8giWxrC412EDsu6iJOBCgMpe9eGuhAhJ9jg1DXmq1zs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.365043"], ["updated_at", "2015-03-20 03:37:48.365043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a8d9ed8-ceb2-11e4-8f13-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a8f1aba-ceb2-11e4-98c4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a8d9ed8-ceb2-11e4-8f13-705681abff85"], ["organization_id", "7a8f1aba-ceb2-11e4-98c4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.368844"], ["updated_at", "2015-03-20 03:37:48.368844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a8e3d48-ceb2-11e4-aaec-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a8f1aba-ceb2-11e4-98c4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a8e3d48-ceb2-11e4-aaec-705681abff85"], ["organization_id", "7a8f1aba-ceb2-11e4-98c4-705681abff85"], ["created_at", "2015-03-20 03:37:48.371995"], ["updated_at", "2015-03-20 03:37:48.371995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$6efyfz5z36merSTVg3WXjeqnMBxqHS0S0iKQVYRwWGuHjKBvTzR/e"], ["created_at", "2015-03-20 03:37:48.382258"], ["updated_at", "2015-03-20 03:37:48.382258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$PXfizx1rBRXLh.DPG1C5jesRozBHssvCHDIxvIldt5LW971rvbmTy"], ["created_at", "2015-03-20 03:37:48.386879"], ["updated_at", "2015-03-20 03:37:48.386879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.388665"], ["user_id", "7a91be64-ceb2-11e4-bfe8-705681abff85"], ["created_at", "2015-03-20 03:37:48.389537"], ["updated_at", "2015-03-20 03:37:48.389537"], ["token", "O5c9htFhtkKkheLRC2LPl2mGJ_0de_ClAS3b7PA4ywQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.393185"], ["updated_at", "2015-03-20 03:37:48.393185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a91be64-ceb2-11e4-bfe8-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a936714-ceb2-11e4-bd12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a91be64-ceb2-11e4-bfe8-705681abff85"], ["organization_id", "7a936714-ceb2-11e4-bd12-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.396515"], ["updated_at", "2015-03-20 03:37:48.396515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a9277be-ceb2-11e4-9061-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a936714-ceb2-11e4-bd12-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a9277be-ceb2-11e4-9061-705681abff85"], ["organization_id", "7a936714-ceb2-11e4-bd12-705681abff85"], ["created_at", "2015-03-20 03:37:48.399702"], ["updated_at", "2015-03-20 03:37:48.399702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/7a946588-ceb2-11e4-a0ee-705681abff85" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"7a946588-ceb2-11e4-a0ee-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:48.405651' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "O5c9htFhtkKkheLRC2LPl2mGJ_0de_ClAS3b7PA4ywQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:48.407412"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:48.408458"], ["id", "7a92e230-ceb2-11e4-9b6e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "7a946588-ceb2-11e4-a0ee-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a91be64-ceb2-11e4-bfe8-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a936714-ceb2-11e4-bd12-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7a91be64-ceb2-11e4-bfe8-705681abff85' LIMIT 1 [["organization_id", "7a936714-ceb2-11e4-bd12-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a9277be-ceb2-11e4-9061-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a9277be-ceb2-11e4-9061-705681abff85' AND "clubhouse_memberships"."id" != '7a946588-ceb2-11e4-a0ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a936714-ceb2-11e4-bd12-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 03:37:48.415908"], ["id", "7a946588-ceb2-11e4-a0ee-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$G8s0oi5Ny5QJP9kphkBCjeBELT60/e9fcqgE6hQjBCyOup/jjDLKW"], ["created_at", "2015-03-20 03:37:48.424762"], ["updated_at", "2015-03-20 03:37:48.424762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$g4eGu2vKdwZ.cvt0NSIIPOHwuy8S9llYBIGal4yJheFbm6pyypVja"], ["created_at", "2015-03-20 03:37:48.429040"], ["updated_at", "2015-03-20 03:37:48.429040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.430587"], ["user_id", "7a9839f6-ceb2-11e4-82a3-705681abff85"], ["created_at", "2015-03-20 03:37:48.431473"], ["updated_at", "2015-03-20 03:37:48.431473"], ["token", "n0PhqUZiCRcjYuqNEJQ3omTeTuLJ3aWCblANNnnzuMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.435170"], ["updated_at", "2015-03-20 03:37:48.435170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a9839f6-ceb2-11e4-82a3-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a99cf64-ceb2-11e4-b3f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a9839f6-ceb2-11e4-82a3-705681abff85"], ["organization_id", "7a99cf64-ceb2-11e4-b3f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.438507"], ["updated_at", "2015-03-20 03:37:48.438507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a98de9c-ceb2-11e4-be34-705681abff85' AND "clubhouse_memberships"."organization_id" = '7a99cf64-ceb2-11e4-b3f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a98de9c-ceb2-11e4-be34-705681abff85"], ["organization_id", "7a99cf64-ceb2-11e4-b3f8-705681abff85"], ["created_at", "2015-03-20 03:37:48.441549"], ["updated_at", "2015-03-20 03:37:48.441549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (8.9ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$Nr5C8GPt63JxA.dGfF6vKOlPqkZH.WZJja/M1SmmowOPmc.RAKss6"], ["created_at", "2015-03-20 03:37:48.464959"], ["updated_at", "2015-03-20 03:37:48.464959"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$qxdsg3RpSDNCEMk176RtauM5m4nrKEYpcYNTuRSt6BE.5xC9LHEvS"], ["created_at", "2015-03-20 03:37:48.477358"], ["updated_at", "2015-03-20 03:37:48.477358"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.480253"], ["user_id", "7a9ea7aa-ceb2-11e4-bbd4-705681abff85"], ["created_at", "2015-03-20 03:37:48.481787"], ["updated_at", "2015-03-20 03:37:48.481787"], ["token", "jbyi4j70V8T1ufoXA9Ta27aZVLG6A474C5CA1J_hwho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.488526"], ["updated_at", "2015-03-20 03:37:48.488526"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a9ea7aa-ceb2-11e4-bbd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '7aa21fca-ceb2-11e4-a4e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a9ea7aa-ceb2-11e4-bbd4-705681abff85"], ["organization_id", "7aa21fca-ceb2-11e4-a4e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.495257"], ["updated_at", "2015-03-20 03:37:48.495257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aa04e66-ceb2-11e4-84c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7aa21fca-ceb2-11e4-a4e4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7aa04e66-ceb2-11e4-84c9-705681abff85"], ["organization_id", "7aa21fca-ceb2-11e4-a4e4-705681abff85"], ["created_at", "2015-03-20 03:37:48.498709"], ["updated_at", "2015-03-20 03:37:48.498709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/7aa2fce2-ceb2-11e4-8890-705681abff85" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"7aa2fce2-ceb2-11e4-8890-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 03:37:48.505100' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jbyi4j70V8T1ufoXA9Ta27aZVLG6A474C5CA1J_hwho"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 03:37:48.506534"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 03:37:48.507581"], ["id", "7aa110f8-ceb2-11e4-9b57-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "7aa2fce2-ceb2-11e4-8890-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a9ea7aa-ceb2-11e4-bbd4-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7aa21fca-ceb2-11e4-a4e4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7a9ea7aa-ceb2-11e4-bbd4-705681abff85' LIMIT 1 [["organization_id", "7aa21fca-ceb2-11e4-a4e4-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a9ea7aa-ceb2-11e4-bbd4-705681abff85"]] Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$QC0Lnf5HkWanR7Q2hXAh5OCIihuwpPA2aN8VzGy/iDzYIH7K/eqNC"], ["created_at", "2015-03-20 03:37:48.520261"], ["updated_at", "2015-03-20 03:37:48.520261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$mjDTuIiR.u0LQKboGxev1OfMWdRbY.na9zc4VdsxgD8Z1tAFn6NGK"], ["created_at", "2015-03-20 03:37:48.524585"], ["updated_at", "2015-03-20 03:37:48.524585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 03:37:48.526116"], ["user_id", "7aa6ce3a-ceb2-11e4-979c-705681abff85"], ["created_at", "2015-03-20 03:37:48.526942"], ["updated_at", "2015-03-20 03:37:48.526942"], ["token", "DP1ME0sETE3-sj2Aqosl3wJlpH8IXsGN3OPhMFwGGA0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.530324"], ["updated_at", "2015-03-20 03:37:48.530324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aa6ce3a-ceb2-11e4-979c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7aa8521e-ceb2-11e4-8ef9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7aa6ce3a-ceb2-11e4-979c-705681abff85"], ["organization_id", "7aa8521e-ceb2-11e4-8ef9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.533626"], ["updated_at", "2015-03-20 03:37:48.533626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aa77272-ceb2-11e4-bc82-705681abff85' AND "clubhouse_memberships"."organization_id" = '7aa8521e-ceb2-11e4-8ef9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7aa77272-ceb2-11e4-bc82-705681abff85"], ["organization_id", "7aa8521e-ceb2-11e4-8ef9-705681abff85"], ["created_at", "2015-03-20 03:37:48.536710"], ["updated_at", "2015-03-20 03:37:48.536710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 20:37:48 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.556652"], ["updated_at", "2015-03-20 03:37:48.556652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '7aac5da0-ceb2-11e4-a8c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "7aac5da0-ceb2-11e4-a8c9-705681abff85"], ["created_at", "2015-03-20 03:37:48.559874"], ["updated_at", "2015-03-20 03:37:48.559874"], ["token", "TgGSw10IC5O4gvCuoZ_mRflk9EKHuumzrL10m3UraeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7aac5da0-ceb2-11e4-a8c9-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '7aac5da0-ceb2-11e4-a8c9-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7aac5da0-ceb2-11e4-a8c9-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '7aac5da0-ceb2-11e4-a8c9-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.580160"], ["updated_at", "2015-03-20 03:37:48.580160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7aafee2a-ceb2-11e4-b238-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "7aafee2a-ceb2-11e4-b238-705681abff85"], ["created_at", "2015-03-20 03:37:48.583150"], ["updated_at", "2015-03-20 03:37:48.583150"], ["token", "UsF95VlgURtuKmyajdThNmcpJH36vOZs7AReB_OmdPI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$Jfkt.fAUEcaT1EKi.VdV0.KgQWGNJEtz5vEn9yjAsAWBYEgkskX1m"], ["created_at", "2015-03-20 03:37:48.589326"], ["updated_at", "2015-03-20 03:37:48.589326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$eXcra7Y0Cs7F6hjTZuTYTuM6hS4dKeHFWBbOXG4sJ56VBmqbUfPlq"], ["created_at", "2015-03-20 03:37:48.594629"], ["updated_at", "2015-03-20 03:37:48.594629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.598640"], ["updated_at", "2015-03-20 03:37:48.598640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ab23266-ceb2-11e4-832c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ab2bd6c-ceb2-11e4-8cca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ab23266-ceb2-11e4-832c-705681abff85"], ["organization_id", "7ab2bd6c-ceb2-11e4-8cca-705681abff85"], ["created_at", "2015-03-20 03:37:48.601840"], ["updated_at", "2015-03-20 03:37:48.601840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ab153be-ceb2-11e4-8758-705681abff85' LIMIT 1 [["organization_id", "7ab2bd6c-ceb2-11e4-8cca-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$tpMT02MT6caVGx2oN5IX9.bI5ZECMucugtLuHkdBu3Db9J2UbY5n2"], ["created_at", "2015-03-20 03:37:48.608873"], ["updated_at", "2015-03-20 03:37:48.608873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$4lyIAtjYxZxiWXLxZYOs0u2NpbAnkSlXcWoKOE3W7el92dTPlbDlO"], ["created_at", "2015-03-20 03:37:48.612920"], ["updated_at", "2015-03-20 03:37:48.612920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.615878"], ["updated_at", "2015-03-20 03:37:48.615878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ab4eb3c-ceb2-11e4-91a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ab55f5e-ceb2-11e4-8ad6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ab4eb3c-ceb2-11e4-91a7-705681abff85"], ["organization_id", "7ab55f5e-ceb2-11e4-8ad6-705681abff85"], ["created_at", "2015-03-20 03:37:48.619432"], ["updated_at", "2015-03-20 03:37:48.619432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ab44f60-ceb2-11e4-88fd-705681abff85' LIMIT 1 [["organization_id", "7ab55f5e-ceb2-11e4-8ad6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$2N1TDzmGl1hxQ7dNZMaxnukeLfdCuRMyNtDc8IbiKKlTHngZnEw3a"], ["created_at", "2015-03-20 03:37:48.626911"], ["updated_at", "2015-03-20 03:37:48.626911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$qWcD4cuJZ8tWFkaoiRQlpuq0qhAYbrZQhlNzYe9haBHl4qTRv1nei"], ["created_at", "2015-03-20 03:37:48.631369"], ["updated_at", "2015-03-20 03:37:48.631369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.634638"], ["updated_at", "2015-03-20 03:37:48.634638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ab7bbfa-ceb2-11e4-b6ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ab83d78-ceb2-11e4-9bf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ab7bbfa-ceb2-11e4-b6ef-705681abff85"], ["organization_id", "7ab83d78-ceb2-11e4-9bf6-705681abff85"], ["created_at", "2015-03-20 03:37:48.637782"], ["updated_at", "2015-03-20 03:37:48.637782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7ab71eb6-ceb2-11e4-b939-705681abff85' LIMIT 1 [["organization_id", "7ab83d78-ceb2-11e4-9bf6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$kIZ2C70ZB0v3Vi5sJhtEmOltBAYFC6De/WEeiKUm4ai.skjWf0nUC"], ["created_at", "2015-03-20 03:37:48.644238"], ["updated_at", "2015-03-20 03:37:48.644238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$7I5zGJ/rXvqbdb8ORsqSi.Up.q7qYSY/LSfqepzQVuuMURXiUVmWC"], ["created_at", "2015-03-20 03:37:48.648247"], ["updated_at", "2015-03-20 03:37:48.648247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.651201"], ["updated_at", "2015-03-20 03:37:48.651201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aba4e74-ceb2-11e4-beff-705681abff85' AND "clubhouse_memberships"."organization_id" = '7abac246-ceb2-11e4-b14d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7aba4e74-ceb2-11e4-beff-705681abff85"], ["organization_id", "7abac246-ceb2-11e4-b14d-705681abff85"], ["created_at", "2015-03-20 03:37:48.654861"], ["updated_at", "2015-03-20 03:37:48.654861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$0pEvJMFSKTk6wym7.AA9PultfD/U4TEeEBV6bFYWa/XdPNoz4/GQ6"], ["created_at", "2015-03-20 03:37:48.660762"], ["updated_at", "2015-03-20 03:37:48.660762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.663849"], ["updated_at", "2015-03-20 03:37:48.663849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7abc3aea-ceb2-11e4-a602-705681abff85' LIMIT 1 [["organization_id", "7abcb218-ceb2-11e4-8861-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$XQqqKtcVl.8vgSY2rHsVQORZzwGikUrtainCtkbBBn0kqkwiLTRNm"], ["created_at", "2015-03-20 03:37:48.671688"], ["updated_at", "2015-03-20 03:37:48.671688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.674949"], ["updated_at", "2015-03-20 03:37:48.674949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7abde7b4-ceb2-11e4-9aa8-705681abff85' AND "clubhouse_memberships"."organization_id" = '7abe62fc-ceb2-11e4-83e5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7abde7b4-ceb2-11e4-9aa8-705681abff85"], ["organization_id", "7abe62fc-ceb2-11e4-83e5-705681abff85"], ["created_at", "2015-03-20 03:37:48.678059"], ["updated_at", "2015-03-20 03:37:48.678059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7abde7b4-ceb2-11e4-9aa8-705681abff85' LIMIT 1 [["organization_id", "7abe62fc-ceb2-11e4-83e5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$2Q79YTuZkqVI3obdzNE2xeZNowlNMccKJqPJOpNvs.nXY5yMgonXe"], ["created_at", "2015-03-20 03:37:48.685377"], ["updated_at", "2015-03-20 03:37:48.685377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.688443"], ["updated_at", "2015-03-20 03:37:48.688443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7abffc34-ceb2-11e4-b6c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ac0715a-ceb2-11e4-b101-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7abffc34-ceb2-11e4-b6c3-705681abff85"], ["organization_id", "7ac0715a-ceb2-11e4-b101-705681abff85"], ["created_at", "2015-03-20 03:37:48.691483"], ["updated_at", "2015-03-20 03:37:48.691483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7abffc34-ceb2-11e4-b6c3-705681abff85' LIMIT 1 [["organization_id", "7ac0715a-ceb2-11e4-b101-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$do0Wp0EbNPsvjHLLzAl1ieoSojK05WIHVA63YSG6e/ZEeaFJcVMhm"], ["created_at", "2015-03-20 03:37:48.698031"], ["updated_at", "2015-03-20 03:37:48.698031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.701536"], ["updated_at", "2015-03-20 03:37:48.701536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ac1e904-ceb2-11e4-b8f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ac27400-ceb2-11e4-985d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ac1e904-ceb2-11e4-b8f1-705681abff85"], ["organization_id", "7ac27400-ceb2-11e4-985d-705681abff85"], ["created_at", "2015-03-20 03:37:48.705259"], ["updated_at", "2015-03-20 03:37:48.705259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7ac1e904-ceb2-11e4-b8f1-705681abff85' LIMIT 1 [["organization_id", "7ac27400-ceb2-11e4-985d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$IfF3gRup15GQP5YNyUz4nOhCaZgpceoiTO06fF5oJLeZvDhAlZ4L."], ["created_at", "2015-03-20 03:37:48.711990"], ["updated_at", "2015-03-20 03:37:48.711990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.714986"], ["updated_at", "2015-03-20 03:37:48.714986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ac40a7c-ceb2-11e4-a9a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ac47dc2-ceb2-11e4-926f-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ac40a7c-ceb2-11e4-a9a4-705681abff85"], ["organization_id", "7ac47dc2-ceb2-11e4-926f-705681abff85"], ["created_at", "2015-03-20 03:37:48.718075"], ["updated_at", "2015-03-20 03:37:48.718075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$v9wuVj3azpHU.S/A/SzNT.E.Cz897pSeEjvA5QuODy1XRrnCu1RgO"], ["created_at", "2015-03-20 03:37:48.724602"], ["updated_at", "2015-03-20 03:37:48.724602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.727670"], ["updated_at", "2015-03-20 03:37:48.727670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ac5f846-ceb2-11e4-b9fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ac66dbc-ceb2-11e4-b77a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ac5f846-ceb2-11e4-b9fd-705681abff85"], ["organization_id", "7ac66dbc-ceb2-11e4-b77a-705681abff85"], ["created_at", "2015-03-20 03:37:48.730698"], ["updated_at", "2015-03-20 03:37:48.730698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7ac5f846-ceb2-11e4-b9fd-705681abff85' LIMIT 1 [["organization_id", "7ac66dbc-ceb2-11e4-b77a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$B7zL2YEWygkRECbCV892ROolDwH3.1o1mV6jHCxvQ0ZaX2qxeI8em"], ["created_at", "2015-03-20 03:37:48.737722"], ["updated_at", "2015-03-20 03:37:48.737722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.740765"], ["updated_at", "2015-03-20 03:37:48.740765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ac7f862-ceb2-11e4-818a-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ac86d24-ceb2-11e4-b4db-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ac7f862-ceb2-11e4-818a-705681abff85"], ["organization_id", "7ac86d24-ceb2-11e4-b4db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.744173"], ["updated_at", "2015-03-20 03:37:48.744173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$4YPQuJ.6KSbBLY/iWaCWmOxoIvdOONhuA2eq12nL56xWmzXif/aku"], ["created_at", "2015-03-20 03:37:48.748970"], ["updated_at", "2015-03-20 03:37:48.748970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ac9adec-ceb2-11e4-b3e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ac86d24-ceb2-11e4-b4db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ac9adec-ceb2-11e4-b3e7-705681abff85"], ["organization_id", "7ac86d24-ceb2-11e4-b4db-705681abff85"], ["created_at", "2015-03-20 03:37:48.751977"], ["updated_at", "2015-03-20 03:37:48.751977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ac7f862-ceb2-11e4-818a-705681abff85' LIMIT 1 [["organization_id", "7ac86d24-ceb2-11e4-b4db-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$S5bw/yP7bXfyl8J/pfJ24eOFqEudItlCbnmKpF.G16.doz1rKCgvO"], ["created_at", "2015-03-20 03:37:48.759012"], ["updated_at", "2015-03-20 03:37:48.759012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.762092"], ["updated_at", "2015-03-20 03:37:48.762092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7acb38a6-ceb2-11e4-a758-705681abff85' AND "clubhouse_memberships"."organization_id" = '7acbae08-ceb2-11e4-834e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7acb38a6-ceb2-11e4-a758-705681abff85"], ["organization_id", "7acbae08-ceb2-11e4-834e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.765163"], ["updated_at", "2015-03-20 03:37:48.765163"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$CIk81bSSsAO2K9q2zua9aO7/u/4FFNyxwopcaM/wh2D0fEVztLV4."], ["created_at", "2015-03-20 03:37:48.770189"], ["updated_at", "2015-03-20 03:37:48.770189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7accfe7a-ceb2-11e4-a25f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7acbae08-ceb2-11e4-834e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7accfe7a-ceb2-11e4-a25f-705681abff85"], ["organization_id", "7acbae08-ceb2-11e4-834e-705681abff85"], ["created_at", "2015-03-20 03:37:48.774039"], ["updated_at", "2015-03-20 03:37:48.774039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7acb38a6-ceb2-11e4-a758-705681abff85' LIMIT 1 [["organization_id", "7acbae08-ceb2-11e4-834e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$qsj4M.XtVnkCP82gQ2VvLOe.TlvqYcqnsORru5e.K4zO4q44quNRq"], ["created_at", "2015-03-20 03:37:48.780851"], ["updated_at", "2015-03-20 03:37:48.780851"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.784118"], ["updated_at", "2015-03-20 03:37:48.784118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ace8da8-ceb2-11e4-9f3c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7acf0c88-ceb2-11e4-a6a1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ace8da8-ceb2-11e4-9f3c-705681abff85"], ["organization_id", "7acf0c88-ceb2-11e4-a6a1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.787345"], ["updated_at", "2015-03-20 03:37:48.787345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$OnVeB8k5xam6H9DQZoa3XONXENy/SBh.lrk1ItxwSl.sF0GlDd3TW"], ["created_at", "2015-03-20 03:37:48.791505"], ["updated_at", "2015-03-20 03:37:48.791505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad02b40-ceb2-11e4-a778-705681abff85' AND "clubhouse_memberships"."organization_id" = '7acf0c88-ceb2-11e4-a6a1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ad02b40-ceb2-11e4-a778-705681abff85"], ["organization_id", "7acf0c88-ceb2-11e4-a6a1-705681abff85"], ["created_at", "2015-03-20 03:37:48.794505"], ["updated_at", "2015-03-20 03:37:48.794505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7ace8da8-ceb2-11e4-9f3c-705681abff85' LIMIT 1 [["organization_id", "7acf0c88-ceb2-11e4-a6a1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$CouMJTvO1yhuUBZXhd.W0exd1h02q8s8y5P9qtsI2qXS3UL7Ca1C."], ["created_at", "2015-03-20 03:37:48.800947"], ["updated_at", "2015-03-20 03:37:48.800947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.803913"], ["updated_at", "2015-03-20 03:37:48.803913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad19d5e-ceb2-11e4-a166-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ad21518-ceb2-11e4-b608-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ad19d5e-ceb2-11e4-a166-705681abff85"], ["organization_id", "7ad21518-ceb2-11e4-b608-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.807459"], ["updated_at", "2015-03-20 03:37:48.807459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$z0qEk3pPbPNU.Xw0DRgzEe1nt1Yp9VDzQWCjJMR7AU4qM7UqjOhw."], ["created_at", "2015-03-20 03:37:48.811840"], ["updated_at", "2015-03-20 03:37:48.811840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad3462c-ceb2-11e4-9439-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ad21518-ceb2-11e4-b608-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ad3462c-ceb2-11e4-9439-705681abff85"], ["organization_id", "7ad21518-ceb2-11e4-b608-705681abff85"], ["created_at", "2015-03-20 03:37:48.814892"], ["updated_at", "2015-03-20 03:37:48.814892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$y34yPNl/6s6jubTkBXcIWuWhd61xcqlJxdS9pgAE9bmv0UIDCfbQm"], ["created_at", "2015-03-20 03:37:48.821366"], ["updated_at", "2015-03-20 03:37:48.821366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.824596"], ["updated_at", "2015-03-20 03:37:48.824596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad4c010-ceb2-11e4-8842-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ad53856-ceb2-11e4-8a1f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ad4c010-ceb2-11e4-8842-705681abff85"], ["organization_id", "7ad53856-ceb2-11e4-8a1f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.827716"], ["updated_at", "2015-03-20 03:37:48.827716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ad4c010-ceb2-11e4-8842-705681abff85' LIMIT 1 [["organization_id", "7ad53856-ceb2-11e4-8a1f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$J244VqhYeA435VQvVKEEGO.8YK9h3xmiXFzI/qVIsmQfRp.9CiQIa"], ["created_at", "2015-03-20 03:37:48.834372"], ["updated_at", "2015-03-20 03:37:48.834372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.837757"], ["updated_at", "2015-03-20 03:37:48.837757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad6c00e-ceb2-11e4-afd9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ad73a48-ceb2-11e4-9f73-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ad6c00e-ceb2-11e4-afd9-705681abff85"], ["organization_id", "7ad73a48-ceb2-11e4-9f73-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.840865"], ["updated_at", "2015-03-20 03:37:48.840865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ad6c00e-ceb2-11e4-afd9-705681abff85' LIMIT 1 [["organization_id", "7ad73a48-ceb2-11e4-9f73-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$aXXVGf2BSVJ0qdW2ANPD9e.AKvk0SDtWwvzzkmt3MGVyxtV9RFZw."], ["created_at", "2015-03-20 03:37:48.847379"], ["updated_at", "2015-03-20 03:37:48.847379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.850330"], ["updated_at", "2015-03-20 03:37:48.850330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad8b2e2-ceb2-11e4-a376-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ad92a9c-ceb2-11e4-b9d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ad8b2e2-ceb2-11e4-a376-705681abff85"], ["organization_id", "7ad92a9c-ceb2-11e4-b9d2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.853848"], ["updated_at", "2015-03-20 03:37:48.853848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7ad8b2e2-ceb2-11e4-a376-705681abff85' LIMIT 1 [["organization_id", "7ad92a9c-ceb2-11e4-b9d2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$YrYiEQji/lVlQtzdP0EQ4.1/GI/Yt1a.8ctQxQW8Jnf7GipI6TDjS"], ["created_at", "2015-03-20 03:37:48.861274"], ["updated_at", "2015-03-20 03:37:48.861274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.864400"], ["updated_at", "2015-03-20 03:37:48.864400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7adad450-ceb2-11e4-a1c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '7adb4ac0-ceb2-11e4-a33c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7adad450-ceb2-11e4-a1c7-705681abff85"], ["organization_id", "7adb4ac0-ceb2-11e4-a33c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.867496"], ["updated_at", "2015-03-20 03:37:48.867496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$lfzNQj8nv1gRlxs.S1pi2O0TawJWatMtUVf1PJX4stonI7mwUXIWe"], ["created_at", "2015-03-20 03:37:48.874094"], ["updated_at", "2015-03-20 03:37:48.874094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.877215"], ["updated_at", "2015-03-20 03:37:48.877215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7adcc8d2-ceb2-11e4-a72d-705681abff85' AND "clubhouse_memberships"."organization_id" = '7add3f2e-ceb2-11e4-95d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7adcc8d2-ceb2-11e4-a72d-705681abff85"], ["organization_id", "7add3f2e-ceb2-11e4-95d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:48.880317"], ["updated_at", "2015-03-20 03:37:48.880317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7adcc8d2-ceb2-11e4-a72d-705681abff85' LIMIT 1 [["organization_id", "7add3f2e-ceb2-11e4-95d8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$D8akuWe9VkM8yJtCznglT.Piko.YogyXsvMoA02KkDZyy0sGI.ja6"], ["created_at", "2015-03-20 03:37:48.887271"], ["updated_at", "2015-03-20 03:37:48.887271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.890443"], ["updated_at", "2015-03-20 03:37:48.890443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '7adf4418-ceb2-11e4-9e7a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "7adf4418-ceb2-11e4-9e7a-705681abff85"], ["created_at", "2015-03-20 03:37:48.893677"], ["updated_at", "2015-03-20 03:37:48.893677"], ["token", "COY5pAv5wWG_mJuvn8aysQHcy2zpzUxENzkSleO3rk0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7adece2a-ceb2-11e4-ac3a-705681abff85' LIMIT 1 [["organization_id", "7adf4418-ceb2-11e4-9e7a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$fsmANif3JqUM6p1zOqZOi.sfY37AFC8slcDrQOdtyxJ8C6UJ8QJny"], ["created_at", "2015-03-20 03:37:48.900652"], ["updated_at", "2015-03-20 03:37:48.900652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.903705"], ["updated_at", "2015-03-20 03:37:48.903705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '7ae1498e-ceb2-11e4-a036-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "7ae1498e-ceb2-11e4-a036-705681abff85"], ["created_at", "2015-03-20 03:37:48.907544"], ["updated_at", "2015-03-20 03:37:48.907544"], ["token", "dTQ8a39atgeaEo6-tVyBGDu3tZBLX__10r9Rr_m3cQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ae0d544-ceb2-11e4-b417-705681abff85' LIMIT 1 [["organization_id", "7ae1498e-ceb2-11e4-a036-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$kpN.MB1NYSvzwD1JCyz2eOINDgkUxuAROctu9L3xTpkWLKX9rGqOW"], ["created_at", "2015-03-20 03:37:48.914649"], ["updated_at", "2015-03-20 03:37:48.914649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.917684"], ["updated_at", "2015-03-20 03:37:48.917684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '7ae36f02-ceb2-11e4-a875-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "7ae36f02-ceb2-11e4-a875-705681abff85"], ["created_at", "2015-03-20 03:37:48.921833"], ["updated_at", "2015-03-20 03:37:48.921833"], ["token", "Ai44BbNdF9bFtxt-XXlS5xvruycDT6nsNs7Mt2tJETI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ae2f748-ceb2-11e4-832e-705681abff85' LIMIT 1 [["organization_id", "7ae36f02-ceb2-11e4-a875-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$wv7tic0v6o8wAbzGdNq54uAwvJM8c6JOxDJGwZKOhhv8NmHoUSkAW"], ["created_at", "2015-03-20 03:37:48.929293"], ["updated_at", "2015-03-20 03:37:48.929293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.932425"], ["updated_at", "2015-03-20 03:37:48.932425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '7ae5b4ce-ceb2-11e4-9147-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "7ae5b4ce-ceb2-11e4-9147-705681abff85"], ["created_at", "2015-03-20 03:37:48.936102"], ["updated_at", "2015-03-20 03:37:48.936102"], ["token", "2ngW2WN99vprO2je8gG6L7N6haAUU16t1PJddVuQqmE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ae534cc-ceb2-11e4-a84b-705681abff85' LIMIT 1 [["organization_id", "7ae5b4ce-ceb2-11e4-9147-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$KAy0y8sB8CmFIsFPZ0Hie.3Yd2L5qXVKiYhbGQoq3vKe.eC2ialRa"], ["created_at", "2015-03-20 03:37:48.943469"], ["updated_at", "2015-03-20 03:37:48.943469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.946481"], ["updated_at", "2015-03-20 03:37:48.946481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ae75e00-ceb2-11e4-b2e4-705681abff85' LIMIT 1 [["organization_id", "7ae7d0c4-ceb2-11e4-a9a4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$7EC34j8Y8xj43XgJ3hSjhuHFzagNdn/IJzdh1YtQzQ5SXF7WvQmSu"], ["created_at", "2015-03-20 03:37:48.953401"], ["updated_at", "2015-03-20 03:37:48.953401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.956736"], ["updated_at", "2015-03-20 03:37:48.956736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ae8e07c-ceb2-11e4-8655-705681abff85' AND "clubhouse_memberships"."organization_id" = '7ae96542-ceb2-11e4-9a2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ae8e07c-ceb2-11e4-8655-705681abff85"], ["organization_id", "7ae96542-ceb2-11e4-9a2f-705681abff85"], ["created_at", "2015-03-20 03:37:48.960045"], ["updated_at", "2015-03-20 03:37:48.960045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '7ae96542-ceb2-11e4-9a2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "7ae96542-ceb2-11e4-9a2f-705681abff85"], ["created_at", "2015-03-20 03:37:48.963301"], ["updated_at", "2015-03-20 03:37:48.963301"], ["token", "ufmTj-udQstHjd7Uqn-Emm9hWtnFEAGwS3cyW9-tKeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ae8e07c-ceb2-11e4-8655-705681abff85' LIMIT 1 [["organization_id", "7ae96542-ceb2-11e4-9a2f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$5hJo4T0iJgyc45BvMhutLexLBWXsyaPsMgiSv4oMUfyT7AsgZ9PYS"], ["created_at", "2015-03-20 03:37:48.970622"], ["updated_at", "2015-03-20 03:37:48.970622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.974621"], ["updated_at", "2015-03-20 03:37:48.974621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aeb97e0-ceb2-11e4-b579-705681abff85' AND "clubhouse_memberships"."organization_id" = '7aec1d00-ceb2-11e4-bce0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7aeb97e0-ceb2-11e4-b579-705681abff85"], ["organization_id", "7aec1d00-ceb2-11e4-bce0-705681abff85"], ["created_at", "2015-03-20 03:37:48.977727"], ["updated_at", "2015-03-20 03:37:48.977727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '7aec1d00-ceb2-11e4-bce0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "7aec1d00-ceb2-11e4-bce0-705681abff85"], ["created_at", "2015-03-20 03:37:48.980959"], ["updated_at", "2015-03-20 03:37:48.980959"], ["token", "Y5BZrIlzGC0tev-gn6GjfZbH7qK3iqNyEjr_qeh1824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7aeb97e0-ceb2-11e4-b579-705681abff85' LIMIT 1 [["organization_id", "7aec1d00-ceb2-11e4-bce0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$xjY3/Nt8LbXgxdE0mfQC/uiqdl31zDYHUp9rviO.17s/5rRoiQtv6"], ["created_at", "2015-03-20 03:37:48.987721"], ["updated_at", "2015-03-20 03:37:48.987721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:48.990825"], ["updated_at", "2015-03-20 03:37:48.990825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aee1cae-ceb2-11e4-9b1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '7aee953a-ceb2-11e4-b9ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7aee1cae-ceb2-11e4-9b1c-705681abff85"], ["organization_id", "7aee953a-ceb2-11e4-b9ea-705681abff85"], ["created_at", "2015-03-20 03:37:48.994480"], ["updated_at", "2015-03-20 03:37:48.994480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '7aee953a-ceb2-11e4-b9ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "7aee953a-ceb2-11e4-b9ea-705681abff85"], ["created_at", "2015-03-20 03:37:48.997703"], ["updated_at", "2015-03-20 03:37:48.997703"], ["token", "uok7qMAXquNVRvEU88ONPvQ92H8x6VCUTUtp4mWaoTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7aee1cae-ceb2-11e4-9b1c-705681abff85' LIMIT 1 [["organization_id", "7aee953a-ceb2-11e4-b9ea-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$C.BkU3yOH58Z16XMbqejkeyB9UzYJzOlAN7bivde5F5b6P5/NKGTa"], ["created_at", "2015-03-20 03:37:49.004528"], ["updated_at", "2015-03-20 03:37:49.004528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:49.007992"], ["updated_at", "2015-03-20 03:37:49.007992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7af0b00e-ceb2-11e4-ba60-705681abff85' AND "clubhouse_memberships"."organization_id" = '7af13538-ceb2-11e4-a33b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7af0b00e-ceb2-11e4-ba60-705681abff85"], ["organization_id", "7af13538-ceb2-11e4-a33b-705681abff85"], ["created_at", "2015-03-20 03:37:49.011111"], ["updated_at", "2015-03-20 03:37:49.011111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '7af13538-ceb2-11e4-a33b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "7af13538-ceb2-11e4-a33b-705681abff85"], ["created_at", "2015-03-20 03:37:49.014339"], ["updated_at", "2015-03-20 03:37:49.014339"], ["token", "f8GMofR5cnoyJCz-g563AJvUYJF8tPOTwIgIQRqqlac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7af0b00e-ceb2-11e4-ba60-705681abff85' LIMIT 1 [["organization_id", "7af13538-ceb2-11e4-a33b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$g8DoTMxnpcJUp2PHL/8lwuv.ea9lqcCa1pVSvsEFrrqfZQYVjO.ZK"], ["created_at", "2015-03-20 03:37:49.021805"], ["updated_at", "2015-03-20 03:37:49.021805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:49.025426"], ["updated_at", "2015-03-20 03:37:49.025426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7af35d86-ceb2-11e4-b14b-705681abff85' AND "clubhouse_memberships"."organization_id" = '7af3ddc4-ceb2-11e4-9c2c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7af35d86-ceb2-11e4-b14b-705681abff85"], ["organization_id", "7af3ddc4-ceb2-11e4-9c2c-705681abff85"], ["created_at", "2015-03-20 03:37:49.028635"], ["updated_at", "2015-03-20 03:37:49.028635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7af35d86-ceb2-11e4-b14b-705681abff85' LIMIT 1 [["organization_id", "7af3ddc4-ceb2-11e4-9c2c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$.pLcbTSpbuD76MmgTJ6on.SF1BbY7BP8FD6kfIur0e5yx.RHyATKm"], ["created_at", "2015-03-20 03:37:49.035539"], ["updated_at", "2015-03-20 03:37:49.035539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:49.038692"], ["updated_at", "2015-03-20 03:37:49.038692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7af56af4-ceb2-11e4-ba92-705681abff85' AND "clubhouse_memberships"."organization_id" = '7af5e31c-ceb2-11e4-961f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7af56af4-ceb2-11e4-ba92-705681abff85"], ["organization_id", "7af5e31c-ceb2-11e4-961f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:49.041794"], ["updated_at", "2015-03-20 03:37:49.041794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '7af5e31c-ceb2-11e4-961f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "7af5e31c-ceb2-11e4-961f-705681abff85"], ["created_at", "2015-03-20 03:37:49.045098"], ["updated_at", "2015-03-20 03:37:49.045098"], ["token", "7jcrGeFLa5ThO-FMQg83vmG7elxJ0S8f6EcU2c-C808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7af56af4-ceb2-11e4-ba92-705681abff85' LIMIT 1 [["organization_id", "7af5e31c-ceb2-11e4-961f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$UP9gm3gKcq0BUAuhwOAET.C5krkkN0zgY8TpZ0tC2hjUYFh8loeqW"], ["created_at", "2015-03-20 03:37:49.051715"], ["updated_at", "2015-03-20 03:37:49.051715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:49.054674"], ["updated_at", "2015-03-20 03:37:49.054674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7af7e108-ceb2-11e4-998f-705681abff85' AND "clubhouse_memberships"."organization_id" = '7af8541c-ceb2-11e4-945a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7af7e108-ceb2-11e4-998f-705681abff85"], ["organization_id", "7af8541c-ceb2-11e4-945a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:49.058287"], ["updated_at", "2015-03-20 03:37:49.058287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '7af8541c-ceb2-11e4-945a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "7af8541c-ceb2-11e4-945a-705681abff85"], ["created_at", "2015-03-20 03:37:49.061590"], ["updated_at", "2015-03-20 03:37:49.061590"], ["token", "1pcOeuH7qI0ljq7PTJp4vRcI1zRmnITNaQlnBhTJrmo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7af7e108-ceb2-11e4-998f-705681abff85' LIMIT 1 [["organization_id", "7af8541c-ceb2-11e4-945a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$x52NVdwJs84A.bcJ/Tq80ePz9/r3huAmk1VXXmHQCxxQ8euDLMIva"], ["created_at", "2015-03-20 03:37:49.070493"], ["updated_at", "2015-03-20 03:37:49.070493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:49.074905"], ["updated_at", "2015-03-20 03:37:49.074905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7afac454-ceb2-11e4-a5e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '7afb6e72-ceb2-11e4-914d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7afac454-ceb2-11e4-a5e9-705681abff85"], ["organization_id", "7afb6e72-ceb2-11e4-914d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:49.078338"], ["updated_at", "2015-03-20 03:37:49.078338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '7afb6e72-ceb2-11e4-914d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "7afb6e72-ceb2-11e4-914d-705681abff85"], ["created_at", "2015-03-20 03:37:49.081636"], ["updated_at", "2015-03-20 03:37:49.081636"], ["token", "CXS3NvSXFBbrqw357UQlVxQIkgch6qme1M-dGNSctQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7afac454-ceb2-11e4-a5e9-705681abff85' LIMIT 1 [["organization_id", "7afb6e72-ceb2-11e4-914d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$aYhA9UrYXpqbcoflA7JLjOKq6L4wIixxdneCDXkbNpCPqRFBLHI2C"], ["created_at", "2015-03-20 03:37:49.088683"], ["updated_at", "2015-03-20 03:37:49.088683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:49.091755"], ["updated_at", "2015-03-20 03:37:49.091755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7afd8680-ceb2-11e4-b752-705681abff85' AND "clubhouse_memberships"."organization_id" = '7afdfbba-ceb2-11e4-9412-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7afd8680-ceb2-11e4-b752-705681abff85"], ["organization_id", "7afdfbba-ceb2-11e4-9412-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:49.094933"], ["updated_at", "2015-03-20 03:37:49.094933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '7afdfbba-ceb2-11e4-9412-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "7afdfbba-ceb2-11e4-9412-705681abff85"], ["created_at", "2015-03-20 03:37:49.098166"], ["updated_at", "2015-03-20 03:37:49.098166"], ["token", "TbV71VJOVBEqgpQrncKwGDNKPpgROEkETn4ayA8RrC0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7afd8680-ceb2-11e4-b752-705681abff85' LIMIT 1 [["organization_id", "7afdfbba-ceb2-11e4-9412-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$b0iPx9GQEI0PBOHypiB2mehBW8a2oIVcn8YkEYk7P31IEsBAH8cEK"], ["created_at", "2015-03-20 03:37:49.105067"], ["updated_at", "2015-03-20 03:37:49.105067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 03:37:49.108673"], ["updated_at", "2015-03-20 03:37:49.108673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b0005b8-ceb2-11e4-b158-705681abff85' AND "clubhouse_memberships"."organization_id" = '7b0094ec-ceb2-11e4-a3e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b0005b8-ceb2-11e4-b158-705681abff85"], ["organization_id", "7b0094ec-ceb2-11e4-a3e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 03:37:49.112083"], ["updated_at", "2015-03-20 03:37:49.112083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b0005b8-ceb2-11e4-b158-705681abff85' LIMIT 1 [["organization_id", "7b0094ec-ceb2-11e4-a3e7-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (7.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (29.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.566629"], ["updated_at", "2015-03-20 04:45:00.566629"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (7.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'ddf4eb62-cebb-11e4-addc-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "ddf4eb62-cebb-11e4-addc-705681abff85"], ["created_at", "2015-03-20 04:45:00.626335"], ["updated_at", "2015-03-20 04:45:00.626335"], ["token", "QZWEOAFqfru9W-Tg9VtGQzQnYAI-jzby5ats9Kq0rqs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) Clubhouse::Mailer#invitation: processed outbound mail in 29.6ms Sent mail to john@example.com (10.3ms) Date: Thu, 19 Mar 2015 21:45:00 -0700 From: from@example.com To: john@example.com Message-ID: <550ba5cca2d0c_fc03fecde065be859523@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/QZWEOAFqfru9W-Tg9VtGQzQnYAI-jzby5ats9Kq0rqs?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.675083"], ["updated_at", "2015-03-20 04:45:00.675083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'de00ca04-cebb-11e4-9a6b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "de00ca04-cebb-11e4-9a6b-705681abff85"], ["created_at", "2015-03-20 04:45:00.678565"], ["updated_at", "2015-03-20 04:45:00.678565"], ["token", "4Tm29OaXDDSvCzSexewoV291vVdNPTTXYNW5yk28ddI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.5ms) Date: Thu, 19 Mar 2015 21:45:00 -0700 From: from@example.com To: john@example.com Message-ID: <550ba5cca68a2_fc03fecde065be859667@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/4Tm29OaXDDSvCzSexewoV291vVdNPTTXYNW5yk28ddI?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.688289"], ["updated_at", "2015-03-20 04:45:00.688289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'de02d01a-cebb-11e4-ab06-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "de02d01a-cebb-11e4-ab06-705681abff85"], ["created_at", "2015-03-20 04:45:00.691783"], ["updated_at", "2015-03-20 04:45:00.691783"], ["token", "FfA1QP8YFPBYhMv7VfVq0lNN9H8Q5oD3nLuI70x67ZM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.6ms) Date: Thu, 19 Mar 2015 21:45:00 -0700 From: from@example.com To: john@example.com Message-ID: <550ba5cca9c35_fc03fecde065be85979f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/FfA1QP8YFPBYhMv7VfVq0lNN9H8Q5oD3nLuI70x67ZM?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.701234"], ["updated_at", "2015-03-20 04:45:00.701234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'de04c7a8-cebb-11e4-bfcc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "de04c7a8-cebb-11e4-bfcc-705681abff85"], ["created_at", "2015-03-20 04:45:00.704543"], ["updated_at", "2015-03-20 04:45:00.704543"], ["token", "AEKEPCl9S23RU1gOU6aTryc2Wx9zasA0qP48KbF_zWM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.6ms) Date: Thu, 19 Mar 2015 21:45:00 -0700 From: from@example.com To: john@example.com Message-ID: <550ba5ccacefd_fc03fecde065be85986c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/AEKEPCl9S23RU1gOU6aTryc2Wx9zasA0qP48KbF_zWM?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.727461"], ["updated_at", "2015-03-20 04:45:00.727461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'de08cc04-cebb-11e4-8be7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "de08cc04-cebb-11e4-8be7-705681abff85"], ["created_at", "2015-03-20 04:45:00.730675"], ["updated_at", "2015-03-20 04:45:00.730675"], ["token", "lEM8Wi6ANtALj7a7oueCC81zYvMfdF-1lMQKe0XCh3c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.735507"], ["updated_at", "2015-03-20 04:45:00.735507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'de0a02cc-cebb-11e4-b851-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "de0a02cc-cebb-11e4-b851-705681abff85"], ["created_at", "2015-03-20 04:45:00.738441"], ["updated_at", "2015-03-20 04:45:00.738441"], ["token", "zuadxxxZD6iAANrg0Iprdc7YbdUXQSxq-khpWHtHpNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de0a02cc-cebb-11e4-b851-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'de0a02cc-cebb-11e4-b851-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de0a02cc-cebb-11e4-b851-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'de0a02cc-cebb-11e4-b851-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$SfJ0AJHiGg0rdq1vmSDyBe0jwAdwlZp8tRRFkd34YA4U5tkIjwh32"], ["created_at", "2015-03-20 04:45:00.767666"], ["updated_at", "2015-03-20 04:45:00.767666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.771226"], ["updated_at", "2015-03-20 04:45:00.771226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de0ef200-cebb-11e4-9195-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de0f7338-cebb-11e4-84e7-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de0ef200-cebb-11e4-9195-705681abff85"], ["organization_id", "de0f7338-cebb-11e4-84e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:00.783093"], ["updated_at", "2015-03-20 04:45:00.783093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de0ef200-cebb-11e4-9195-705681abff85' LIMIT 1 [["organization_id", "de0f7338-cebb-11e4-84e7-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$AKoiDxK8V8HUhzHJa/ByPu8JmP4Z9gayX6wGh/zdnkgp.uNdVb5qu"], ["created_at", "2015-03-20 04:45:00.801787"], ["updated_at", "2015-03-20 04:45:00.801787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.804882"], ["updated_at", "2015-03-20 04:45:00.804882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de142054-cebb-11e4-bb91-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de14957a-cebb-11e4-b784-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de142054-cebb-11e4-bb91-705681abff85"], ["organization_id", "de14957a-cebb-11e4-b784-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:00.807962"], ["updated_at", "2015-03-20 04:45:00.807962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$pwB6LXds5Xe5SXSDxvZkqO/PzislqXJuWmTRrWAiLIfxPLkxeDI12"], ["created_at", "2015-03-20 04:45:00.814855"], ["updated_at", "2015-03-20 04:45:00.814855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.817988"], ["updated_at", "2015-03-20 04:45:00.817988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de1620d4-cebb-11e4-ba86-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de1695be-cebb-11e4-9ba9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de1620d4-cebb-11e4-ba86-705681abff85"], ["organization_id", "de1695be-cebb-11e4-9ba9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:00.821101"], ["updated_at", "2015-03-20 04:45:00.821101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de1620d4-cebb-11e4-ba86-705681abff85' LIMIT 1 [["organization_id", "de1695be-cebb-11e4-9ba9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Pm3O73LfA8fwIX1wmZfHGuGjqdJibtl/BF/N97Qm1mN4suP1R8LmO"], ["created_at", "2015-03-20 04:45:00.827635"], ["updated_at", "2015-03-20 04:45:00.827635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.830617"], ["updated_at", "2015-03-20 04:45:00.830617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de181146-cebb-11e4-8e05-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de1882b6-cebb-11e4-94ea-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de181146-cebb-11e4-8e05-705681abff85"], ["organization_id", "de1882b6-cebb-11e4-94ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:00.833683"], ["updated_at", "2015-03-20 04:45:00.833683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de181146-cebb-11e4-8e05-705681abff85' LIMIT 1 [["organization_id", "de1882b6-cebb-11e4-94ea-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$miZi4BFyWZ.fFl3NgOBUcOimT8kIsVze56jRL3zwqysmp.F1NDfz6"], ["created_at", "2015-03-20 04:45:00.840863"], ["updated_at", "2015-03-20 04:45:00.840863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.843892"], ["updated_at", "2015-03-20 04:45:00.843892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de1a15e0-cebb-11e4-a529-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de1a89e4-cebb-11e4-b1e7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de1a15e0-cebb-11e4-a529-705681abff85"], ["organization_id", "de1a89e4-cebb-11e4-b1e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:00.847146"], ["updated_at", "2015-03-20 04:45:00.847146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de1a15e0-cebb-11e4-a529-705681abff85' LIMIT 1 [["organization_id", "de1a89e4-cebb-11e4-b1e7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$XPOyy3kquQqwIh9b1TjT7uBJAI/1S0fmVN0reBqtoOEgLOsOI/xY2"], ["created_at", "2015-03-20 04:45:00.854536"], ["updated_at", "2015-03-20 04:45:00.854536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.857534"], ["updated_at", "2015-03-20 04:45:00.857534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de1c2c68-cebb-11e4-b713-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de1c9dce-cebb-11e4-b5e3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de1c2c68-cebb-11e4-b713-705681abff85"], ["organization_id", "de1c9dce-cebb-11e4-b5e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:00.860591"], ["updated_at", "2015-03-20 04:45:00.860591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$h64JN4xkOGcGf0FGCmA1l.01N6miEuVwBwkAc1E/O8F1kEDoGWhzC"], ["created_at", "2015-03-20 04:45:00.865731"], ["updated_at", "2015-03-20 04:45:00.865731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de1de26a-cebb-11e4-9349-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de1c9dce-cebb-11e4-b5e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de1de26a-cebb-11e4-9349-705681abff85"], ["organization_id", "de1c9dce-cebb-11e4-b5e3-705681abff85"], ["created_at", "2015-03-20 04:45:00.869328"], ["updated_at", "2015-03-20 04:45:00.869328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$Texm2ziCMsOYIJ2J9sdtIeosAxzljc.ZF/PRotKthXLN4gMw9l/j2"], ["created_at", "2015-03-20 04:45:00.875487"], ["updated_at", "2015-03-20 04:45:00.875487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.879126"], ["updated_at", "2015-03-20 04:45:00.879126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de1f5dc0-cebb-11e4-aff4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de1fee70-cebb-11e4-aca9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de1f5dc0-cebb-11e4-aff4-705681abff85"], ["organization_id", "de1fee70-cebb-11e4-aca9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:00.882394"], ["updated_at", "2015-03-20 04:45:00.882394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$CgFgPNgCV.YXE.vrNW1HkOTCJZSOtAyxVBp7df9o0pV/EDKkagMOK"], ["created_at", "2015-03-20 04:45:00.886708"], ["updated_at", "2015-03-20 04:45:00.886708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de21198a-cebb-11e4-bdbe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de1fee70-cebb-11e4-aca9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de21198a-cebb-11e4-bdbe-705681abff85"], ["organization_id", "de1fee70-cebb-11e4-aca9-705681abff85"], ["created_at", "2015-03-20 04:45:00.890042"], ["updated_at", "2015-03-20 04:45:00.890042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de1f5dc0-cebb-11e4-aff4-705681abff85' LIMIT 1 [["organization_id", "de1fee70-cebb-11e4-aca9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$M0n1qxyKzYQJ4ZHeUVj5XOy7z3mZuyvdPj7KXvyzGrBT5numsbPD."], ["created_at", "2015-03-20 04:45:00.896637"], ["updated_at", "2015-03-20 04:45:00.896637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.899913"], ["updated_at", "2015-03-20 04:45:00.899913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de229814-cebb-11e4-9d1e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de2318b6-cebb-11e4-a0cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de229814-cebb-11e4-9d1e-705681abff85"], ["organization_id", "de2318b6-cebb-11e4-a0cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:00.903163"], ["updated_at", "2015-03-20 04:45:00.903163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$K3wSB23uQCutukl9RFNkA.KLaEgp02suxJdRAY4tNcm1KMUnd6Ici"], ["created_at", "2015-03-20 04:45:00.907521"], ["updated_at", "2015-03-20 04:45:00.907521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de24401a-cebb-11e4-a6bf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de2318b6-cebb-11e4-a0cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de24401a-cebb-11e4-a6bf-705681abff85"], ["organization_id", "de2318b6-cebb-11e4-a0cb-705681abff85"], ["created_at", "2015-03-20 04:45:00.910625"], ["updated_at", "2015-03-20 04:45:00.910625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de229814-cebb-11e4-9d1e-705681abff85' LIMIT 1 [["organization_id", "de2318b6-cebb-11e4-a0cb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$tNXNzls/2jozdI1kZAJCUe9cAmcMZZBbyW7tkvuIhtRG0Rdflx15i"], ["created_at", "2015-03-20 04:45:00.918397"], ["updated_at", "2015-03-20 04:45:00.918397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.921553"], ["updated_at", "2015-03-20 04:45:00.921553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de25ea3c-cebb-11e4-b68d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de26635e-cebb-11e4-aa1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de25ea3c-cebb-11e4-b68d-705681abff85"], ["organization_id", "de26635e-cebb-11e4-aa1a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:00.924642"], ["updated_at", "2015-03-20 04:45:00.924642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$6ZzqBdvlT.45KgWVmsiZWeWALDsPWs0hPsj/HLVw0Qe2o4L71t9L."], ["created_at", "2015-03-20 04:45:00.928889"], ["updated_at", "2015-03-20 04:45:00.928889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de278414-cebb-11e4-98c6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de26635e-cebb-11e4-aa1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de278414-cebb-11e4-98c6-705681abff85"], ["organization_id", "de26635e-cebb-11e4-aa1a-705681abff85"], ["created_at", "2015-03-20 04:45:00.932101"], ["updated_at", "2015-03-20 04:45:00.932101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de25ea3c-cebb-11e4-b68d-705681abff85' LIMIT 1 [["organization_id", "de26635e-cebb-11e4-aa1a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$ztR0aiPQPo99tOQNsmax3O8eckZy04vfOflL6AVYZIypJ8CVson2C"], ["created_at", "2015-03-20 04:45:00.938983"], ["updated_at", "2015-03-20 04:45:00.938983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.942052"], ["updated_at", "2015-03-20 04:45:00.942052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de290e92-cebb-11e4-b268-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de298408-cebb-11e4-a2e7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de290e92-cebb-11e4-b268-705681abff85"], ["organization_id", "de298408-cebb-11e4-a2e7-705681abff85"], ["created_at", "2015-03-20 04:45:00.945091"], ["updated_at", "2015-03-20 04:45:00.945091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$FkFjfE0nLzzyXru0wp9KCeVXctXddFP4TNvhBnVsD322XbWAaFPbu"], ["created_at", "2015-03-20 04:45:00.951240"], ["updated_at", "2015-03-20 04:45:00.951240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.954464"], ["updated_at", "2015-03-20 04:45:00.954464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de2aee9c-cebb-11e4-9df9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de2b6854-cebb-11e4-be4d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de2aee9c-cebb-11e4-9df9-705681abff85"], ["organization_id", "de2b6854-cebb-11e4-be4d-705681abff85"], ["created_at", "2015-03-20 04:45:00.957454"], ["updated_at", "2015-03-20 04:45:00.957454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de2aee9c-cebb-11e4-9df9-705681abff85' LIMIT 1 [["organization_id", "de2b6854-cebb-11e4-be4d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$4M1UuyZKgrYdAJwDYR5bweeYsdxuiemMXbHGFlZwm9Ihmwgu3MWMy"], ["created_at", "2015-03-20 04:45:00.964499"], ["updated_at", "2015-03-20 04:45:00.964499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.968203"], ["updated_at", "2015-03-20 04:45:00.968203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de2d0330-cebb-11e4-a746-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de2d810c-cebb-11e4-92a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de2d0330-cebb-11e4-a746-705681abff85"], ["organization_id", "de2d810c-cebb-11e4-92a4-705681abff85"], ["created_at", "2015-03-20 04:45:00.971247"], ["updated_at", "2015-03-20 04:45:00.971247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de2d0330-cebb-11e4-a746-705681abff85' LIMIT 1 [["organization_id", "de2d810c-cebb-11e4-92a4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$aNlJT9y84KPrDnHBRY4sueTlNgQJytMy0C8Icu7mXrkUtlJ3XNQbm"], ["created_at", "2015-03-20 04:45:00.977872"], ["updated_at", "2015-03-20 04:45:00.977872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.980855"], ["updated_at", "2015-03-20 04:45:00.980855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de2efd52-cebb-11e4-888e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de2f6ef4-cebb-11e4-8040-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de2efd52-cebb-11e4-888e-705681abff85"], ["organization_id", "de2f6ef4-cebb-11e4-8040-705681abff85"], ["created_at", "2015-03-20 04:45:00.983829"], ["updated_at", "2015-03-20 04:45:00.983829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de2efd52-cebb-11e4-888e-705681abff85' LIMIT 1 [["organization_id", "de2f6ef4-cebb-11e4-8040-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$N/McLHJBPd8K9hZRr1A0Nebe4zsYk7P7nY3PZbgI3cBjWqKAzqkH2"], ["created_at", "2015-03-20 04:45:00.991725"], ["updated_at", "2015-03-20 04:45:00.991725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:00.995213"], ["updated_at", "2015-03-20 04:45:00.995213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de3120be-cebb-11e4-94b9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de31a78c-cebb-11e4-963c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de3120be-cebb-11e4-94b9-705681abff85"], ["organization_id", "de31a78c-cebb-11e4-963c-705681abff85"], ["created_at", "2015-03-20 04:45:00.998584"], ["updated_at", "2015-03-20 04:45:00.998584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de3120be-cebb-11e4-94b9-705681abff85' LIMIT 1 [["organization_id", "de31a78c-cebb-11e4-963c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$3Q1WvEHEAYHMaVgQraohAu92V2LHvfhKkq9J5m0FcZpBiL9HwxodC"], ["created_at", "2015-03-20 04:45:01.005781"], ["updated_at", "2015-03-20 04:45:01.005781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$6G.O/CZb7LTljIsW/xhfz.ASTGaguQiOYvSfzI.6u6M3ZnnLiyDlS"], ["created_at", "2015-03-20 04:45:01.009795"], ["updated_at", "2015-03-20 04:45:01.009795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.012901"], ["updated_at", "2015-03-20 04:45:01.012901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de33d94e-cebb-11e4-afb8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de346792-cebb-11e4-a18d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de33d94e-cebb-11e4-afb8-705681abff85"], ["organization_id", "de346792-cebb-11e4-a18d-705681abff85"], ["created_at", "2015-03-20 04:45:01.017247"], ["updated_at", "2015-03-20 04:45:01.017247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$aaNA7MGgfTplMGXBXAZ94O.fv.F.ioTu28U1Qv7qvwgvBGtSs8sbG"], ["created_at", "2015-03-20 04:45:01.022970"], ["updated_at", "2015-03-20 04:45:01.022970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$.zcwrf2FrLyG5s6JA/4Xr.RGEPgAcNkDbGkV3EvLa6pHS2Ud379Cu"], ["created_at", "2015-03-20 04:45:01.026953"], ["updated_at", "2015-03-20 04:45:01.026953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.030066"], ["updated_at", "2015-03-20 04:45:01.030066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de367758-cebb-11e4-8245-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de36f44e-cebb-11e4-9730-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de367758-cebb-11e4-8245-705681abff85"], ["organization_id", "de36f44e-cebb-11e4-9730-705681abff85"], ["created_at", "2015-03-20 04:45:01.033191"], ["updated_at", "2015-03-20 04:45:01.033191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de35de10-cebb-11e4-822c-705681abff85' LIMIT 1 [["organization_id", "de36f44e-cebb-11e4-9730-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$G81WWhbZUZtE499eNkrdLOHIhXH03ZJdnmJW.azJVObDCQY6qLg8S"], ["created_at", "2015-03-20 04:45:01.039790"], ["updated_at", "2015-03-20 04:45:01.039790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$WSXBx..cWaZ4GQoxriHXKuTbaFP6CfUBl3D792hiFQlBfKKsW1PBO"], ["created_at", "2015-03-20 04:45:01.043868"], ["updated_at", "2015-03-20 04:45:01.043868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.046781"], ["updated_at", "2015-03-20 04:45:01.046781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de390d6a-cebb-11e4-b686-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de39829a-cebb-11e4-960c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de390d6a-cebb-11e4-b686-705681abff85"], ["organization_id", "de39829a-cebb-11e4-960c-705681abff85"], ["created_at", "2015-03-20 04:45:01.050472"], ["updated_at", "2015-03-20 04:45:01.050472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de386fa4-cebb-11e4-a8ba-705681abff85' LIMIT 1 [["organization_id", "de39829a-cebb-11e4-960c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$8SGXiddSGbQfChZljMhgju.VcKd44oRB7Pm.IN6nN0oBDW4fQbl/G"], ["created_at", "2015-03-20 04:45:01.057001"], ["updated_at", "2015-03-20 04:45:01.057001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$3hjBMwQlIVvf671MVruCEObsbZZMMpPneH7x0C/koxxkq1g1tJtea"], ["created_at", "2015-03-20 04:45:01.061277"], ["updated_at", "2015-03-20 04:45:01.061277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.064580"], ["updated_at", "2015-03-20 04:45:01.064580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de3bb90c-cebb-11e4-bd14-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de3c4fca-cebb-11e4-9fe4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de3bb90c-cebb-11e4-bd14-705681abff85"], ["organization_id", "de3c4fca-cebb-11e4-9fe4-705681abff85"], ["created_at", "2015-03-20 04:45:01.068777"], ["updated_at", "2015-03-20 04:45:01.068777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de3b0f66-cebb-11e4-885c-705681abff85' LIMIT 1 [["organization_id", "de3c4fca-cebb-11e4-9fe4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$S5EJCyJzDQIUBGE3z4v.vuOarED4FfxaNU3dEuUEd813OVWwuYaaK"], ["created_at", "2015-03-20 04:45:01.075579"], ["updated_at", "2015-03-20 04:45:01.075579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.078554"], ["updated_at", "2015-03-20 04:45:01.078554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de3de588-cebb-11e4-957c-705681abff85' LIMIT 1 [["organization_id", "de3e5856-cebb-11e4-a275-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$5FmHdYmDCV7l3bzZUxMjgevy7xhU0z17MtL7hPyi8jc4hRqeGnefi"], ["created_at", "2015-03-20 04:45:01.095479"], ["updated_at", "2015-03-20 04:45:01.095479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.098973"], ["updated_at", "2015-03-20 04:45:01.098973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de40f16a-cebb-11e4-add8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de417ac2-cebb-11e4-964b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de40f16a-cebb-11e4-add8-705681abff85"], ["organization_id", "de417ac2-cebb-11e4-964b-705681abff85"], ["created_at", "2015-03-20 04:45:01.102048"], ["updated_at", "2015-03-20 04:45:01.102048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de40f16a-cebb-11e4-add8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de417ac2-cebb-11e4-964b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de40f16a-cebb-11e4-add8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de417ac2-cebb-11e4-964b-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de417ac2-cebb-11e4-964b-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de40f16a-cebb-11e4-add8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de417ac2-cebb-11e4-964b-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$KW4sVb1Agf/90hAfXIwWHev2LdKZPJp8P.WSZN9aKYboVptChXnHq"], ["created_at", "2015-03-20 04:45:01.117452"], ["updated_at", "2015-03-20 04:45:01.117452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$o9f0GUMBmPkEi1aVNFQ4xuV.l0ZkyEHsdPvNWyU1uB6p.GN0te5DG"], ["created_at", "2015-03-20 04:45:01.130306"], ["updated_at", "2015-03-20 04:45:01.130306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.133418"], ["updated_at", "2015-03-20 04:45:01.133418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de4640ca-cebb-11e4-bc1c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de46b744-cebb-11e4-81e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de4640ca-cebb-11e4-bc1c-705681abff85"], ["organization_id", "de46b744-cebb-11e4-81e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.136536"], ["updated_at", "2015-03-20 04:45:01.136536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$.c8a/MYQlyRqSNBBh4nsce3.p0dlfEdkcN4E164HF/lk5BHlXDyQu"], ["created_at", "2015-03-20 04:45:01.141965"], ["updated_at", "2015-03-20 04:45:01.141965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.145003"], ["updated_at", "2015-03-20 04:45:01.145003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de480644-cebb-11e4-b330-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de48842a-cebb-11e4-ad2e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de480644-cebb-11e4-b330-705681abff85"], ["organization_id", "de48842a-cebb-11e4-ad2e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.148633"], ["updated_at", "2015-03-20 04:45:01.148633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$9keQUQtXOs.lGHNy/4Rq8.oDpDmmdtl1nqCuZ1XXCXi7/dGrHNVwm"], ["created_at", "2015-03-20 04:45:01.154568"], ["updated_at", "2015-03-20 04:45:01.154568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.157815"], ["updated_at", "2015-03-20 04:45:01.157815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de49f72e-cebb-11e4-860f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de4a6fba-cebb-11e4-a844-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de49f72e-cebb-11e4-860f-705681abff85"], ["organization_id", "de4a6fba-cebb-11e4-a844-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.160833"], ["updated_at", "2015-03-20 04:45:01.160833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de49f72e-cebb-11e4-860f-705681abff85' LIMIT 1 [["organization_id", "de4a6fba-cebb-11e4-a844-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$EPA6FpumPndBPWy0oXQMCeoXpoJJfpF1ygPzOKamvu3NkEbizwEy6"], ["created_at", "2015-03-20 04:45:01.169523"], ["updated_at", "2015-03-20 04:45:01.169523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.172646"], ["updated_at", "2015-03-20 04:45:01.172646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de4c3d7c-cebb-11e4-bd33-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de4cb34c-cebb-11e4-b6d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de4c3d7c-cebb-11e4-bd33-705681abff85"], ["organization_id", "de4cb34c-cebb-11e4-b6d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.175681"], ["updated_at", "2015-03-20 04:45:01.175681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de4c3d7c-cebb-11e4-bd33-705681abff85' LIMIT 1 [["organization_id", "de4cb34c-cebb-11e4-b6d4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$Fu7wtl68b75rZJXG0TkL4OLyVpqbURVASSRwxF4gFSg0nHOpZj7R6"], ["created_at", "2015-03-20 04:45:01.182702"], ["updated_at", "2015-03-20 04:45:01.182702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.185711"], ["updated_at", "2015-03-20 04:45:01.185711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de4e3e9c-cebb-11e4-adac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de4eb17e-cebb-11e4-ae30-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de4e3e9c-cebb-11e4-adac-705681abff85"], ["organization_id", "de4eb17e-cebb-11e4-ae30-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.188847"], ["updated_at", "2015-03-20 04:45:01.188847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de4e3e9c-cebb-11e4-adac-705681abff85' LIMIT 1 [["organization_id", "de4eb17e-cebb-11e4-ae30-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$y23C9siLs/1X/NswgqnUH.GnhrJJQsofmviiLax5AXahSEkcmxP0a"], ["created_at", "2015-03-20 04:45:01.195620"], ["updated_at", "2015-03-20 04:45:01.195620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.198630"], ["updated_at", "2015-03-20 04:45:01.198630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de503738-cebb-11e4-aa02-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de50ac04-cebb-11e4-8a41-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de503738-cebb-11e4-aa02-705681abff85"], ["organization_id", "de50ac04-cebb-11e4-8a41-705681abff85"], ["created_at", "2015-03-20 04:45:01.202117"], ["updated_at", "2015-03-20 04:45:01.202117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$4Oz4B1lPp6chFJy8WPasZuGH1VF9.flYjv5dHa3yue2hKYLE0wk7u"], ["created_at", "2015-03-20 04:45:01.207733"], ["updated_at", "2015-03-20 04:45:01.207733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.210709"], ["updated_at", "2015-03-20 04:45:01.210709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de520f86-cebb-11e4-8c78-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de52825e-cebb-11e4-8f7e-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de520f86-cebb-11e4-8c78-705681abff85"], ["organization_id", "de52825e-cebb-11e4-8f7e-705681abff85"], ["created_at", "2015-03-20 04:45:01.213850"], ["updated_at", "2015-03-20 04:45:01.213850"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$Ytb4UgfWHg0mmulIT9isIOconyipdfvu84so3W9ZeOmHEZPCrJ0ae"], ["created_at", "2015-03-20 04:45:01.223095"], ["updated_at", "2015-03-20 04:45:01.223095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.226913"], ["updated_at", "2015-03-20 04:45:01.226913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de547f46-cebb-11e4-a0de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de54fb9c-cebb-11e4-933d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de547f46-cebb-11e4-a0de-705681abff85"], ["organization_id", "de54fb9c-cebb-11e4-933d-705681abff85"], ["created_at", "2015-03-20 04:45:01.229947"], ["updated_at", "2015-03-20 04:45:01.229947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de547f46-cebb-11e4-a0de-705681abff85' LIMIT 1 [["organization_id", "de54fb9c-cebb-11e4-933d-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$MIpdnBz4EO.yp6AEor5gku0zydZg.TOBgKyeKzp12vqi7./T7LvZa"], ["created_at", "2015-03-20 04:45:01.237070"], ["updated_at", "2015-03-20 04:45:01.237070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.242087"], ["updated_at", "2015-03-20 04:45:01.242087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de569f2e-cebb-11e4-bdbc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de576382-cebb-11e4-9c58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de569f2e-cebb-11e4-bdbc-705681abff85"], ["organization_id", "de576382-cebb-11e4-9c58-705681abff85"], ["created_at", "2015-03-20 04:45:01.247238"], ["updated_at", "2015-03-20 04:45:01.247238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de569f2e-cebb-11e4-bdbc-705681abff85' LIMIT 1 [["organization_id", "de576382-cebb-11e4-9c58-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$NQstAKyXmjuyFtyxPlzVvOYd7zgAMBY5pIqt16NVI3SKOT9BDiIRi"], ["created_at", "2015-03-20 04:45:01.254245"], ["updated_at", "2015-03-20 04:45:01.254245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.257192"], ["updated_at", "2015-03-20 04:45:01.257192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de5928e8-cebb-11e4-b4e4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de5999ea-cebb-11e4-8327-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de5928e8-cebb-11e4-b4e4-705681abff85"], ["organization_id", "de5999ea-cebb-11e4-8327-705681abff85"], ["created_at", "2015-03-20 04:45:01.260197"], ["updated_at", "2015-03-20 04:45:01.260197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de5928e8-cebb-11e4-b4e4-705681abff85' LIMIT 1 [["organization_id", "de5999ea-cebb-11e4-8327-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$cmxAgj9xNeslRm6G7/p7f./lcTbFWDhYPqL5NQfozapeQ0g.ephmu"], ["created_at", "2015-03-20 04:45:01.268104"], ["updated_at", "2015-03-20 04:45:01.268104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.271475"], ["updated_at", "2015-03-20 04:45:01.271475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$fYv/aBSqbjSGilt0eNSIsuVtH1qER3PArVxddeIsvuT6wxNPj.usC"], ["created_at", "2015-03-20 04:45:01.276907"], ["updated_at", "2015-03-20 04:45:01.276907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.279841"], ["updated_at", "2015-03-20 04:45:01.279841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$oU7fA43I1YhALaeRcovZqOuATu9qAT3Te.TSYwV.RHXx5TilmeiYW"], ["created_at", "2015-03-20 04:45:01.285213"], ["updated_at", "2015-03-20 04:45:01.285213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.288162"], ["updated_at", "2015-03-20 04:45:01.288162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de5de220-cebb-11e4-a4c8-705681abff85' LIMIT 1 [["organization_id", "de5e541c-cebb-11e4-9c3f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$TsxrLdRkIbwGdRXGC2TYN.3JRurSo6tyWQoubU2.zLth.OTBzJDoq"], ["created_at", "2015-03-20 04:45:01.294669"], ["updated_at", "2015-03-20 04:45:01.294669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.297976"], ["updated_at", "2015-03-20 04:45:01.297976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de5f5394-cebb-11e4-87d9-705681abff85' LIMIT 1 [["organization_id", "de5fd7a6-cebb-11e4-8ccf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$E.hpisZ4F40UZPc0YoM.POL.tjX3E9hFzlRsPfnb1686wbbExjc2S"], ["created_at", "2015-03-20 04:45:01.305202"], ["updated_at", "2015-03-20 04:45:01.305202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.308194"], ["updated_at", "2015-03-20 04:45:01.308194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'de60ef7e-cebb-11e4-8230-705681abff85' LIMIT 1 [["organization_id", "de6162a6-cebb-11e4-b54e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.330835"], ["updated_at", "2015-03-20 04:45:01.330835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.350117"], ["updated_at", "2015-03-20 04:45:01.350117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.357559"], ["updated_at", "2015-03-20 04:45:01.357559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.364556"], ["updated_at", "2015-03-20 04:45:01.364556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "de6a0dd4-cebb-11e4-be29-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.370803"], ["updated_at", "2015-03-20 04:45:01.370803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$LsrZdchTB.rpZ3BoPiq0fOkW3SC9K87bLDqDvkj/twvhOZkPw2QJW"], ["created_at", "2015-03-20 04:45:01.381293"], ["updated_at", "2015-03-20 04:45:01.381293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (4.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$nlewZ/ywh1P7XLG1jlHhWO1Jhq2FeInlHXm5EqS9H1qECbXQ22sUy"], ["created_at", "2015-03-20 04:45:01.389837"], ["updated_at", "2015-03-20 04:45:01.389837"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.403707"], ["user_id", "de6c8fbe-cebb-11e4-919c-705681abff85"], ["created_at", "2015-03-20 04:45:01.405466"], ["updated_at", "2015-03-20 04:45:01.405466"], ["token", "93RnuQYMvHxqwNEo_t0QDtZuwUEHhH6flv1adETxnSs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.411834"], ["updated_at", "2015-03-20 04:45:01.411834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de6c8fbe-cebb-11e4-919c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de714464-cebb-11e4-899b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de6c8fbe-cebb-11e4-919c-705681abff85"], ["organization_id", "de714464-cebb-11e4-899b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.417575"], ["updated_at", "2015-03-20 04:45:01.417575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de6df75a-cebb-11e4-a864-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de714464-cebb-11e4-899b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de6df75a-cebb-11e4-a864-705681abff85"], ["organization_id", "de714464-cebb-11e4-899b-705681abff85"], ["created_at", "2015-03-20 04:45:01.422651"], ["updated_at", "2015-03-20 04:45:01.422651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$Z0K8qdV5.OO9dghUQ5BvguDQaht4g9Klgpu5PP1/GwfNNN/CvtLwO"], ["created_at", "2015-03-20 04:45:01.453850"], ["updated_at", "2015-03-20 04:45:01.453850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$.NXlTm.dlS61DkaGPVnr3.AQRA2SyciHKkEnYBD/g2SGHWUD13DnO"], ["created_at", "2015-03-20 04:45:01.459224"], ["updated_at", "2015-03-20 04:45:01.459224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.461597"], ["user_id", "de779f80-cebb-11e4-b271-705681abff85"], ["created_at", "2015-03-20 04:45:01.462491"], ["updated_at", "2015-03-20 04:45:01.462491"], ["token", "89wAcPKKoWqwjJ407g50D0ZLS-l7AnCSCrxDD9PcybQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.465794"], ["updated_at", "2015-03-20 04:45:01.465794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de779f80-cebb-11e4-b271-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de796e82-cebb-11e4-acc5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de779f80-cebb-11e4-b271-705681abff85"], ["organization_id", "de796e82-cebb-11e4-acc5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.468887"], ["updated_at", "2015-03-20 04:45:01.468887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de787f54-cebb-11e4-99d0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de796e82-cebb-11e4-acc5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de787f54-cebb-11e4-99d0-705681abff85"], ["organization_id", "de796e82-cebb-11e4-acc5-705681abff85"], ["created_at", "2015-03-20 04:45:01.471828"], ["updated_at", "2015-03-20 04:45:01.471828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/de796e82-cebb-11e4-acc5-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"de796e82-cebb-11e4-acc5-705681abff85", "membership"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:01.476391' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "89wAcPKKoWqwjJ407g50D0ZLS-l7AnCSCrxDD9PcybQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:01.479335"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:01.480429"], ["id", "de78f588-cebb-11e4-a7b5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "de796e82-cebb-11e4-acc5-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de779f80-cebb-11e4-b271-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de779f80-cebb-11e4-b271-705681abff85' LIMIT 1 [["organization_id", "de796e82-cebb-11e4-acc5-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "de796e82-cebb-11e4-acc5-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('de779f80-cebb-11e4-b271-705681abff85', 'de787f54-cebb-11e4-99d0-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('de796e82-cebb-11e4-acc5-705681abff85') Completed 200 OK in 23ms (Views: 11.2ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$KFav3LLeWuqwGQZFAaJGRuxur1owa6/fAGnD.n/Qwo99t0jLS0uP6"], ["created_at", "2015-03-20 04:45:01.507779"], ["updated_at", "2015-03-20 04:45:01.507779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$rzwtU6oxGY341.d.YxwHuesH/S34PGO6lPBlD0ovVGm5XS5qrExti"], ["created_at", "2015-03-20 04:45:01.511947"], ["updated_at", "2015-03-20 04:45:01.511947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.513393"], ["user_id", "de7fdb6e-cebb-11e4-b177-705681abff85"], ["created_at", "2015-03-20 04:45:01.514178"], ["updated_at", "2015-03-20 04:45:01.514178"], ["token", "xy2qAQE6CNpE23v0-ldH_fn1k287Wz1PfZXcYtzAqgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.517888"], ["updated_at", "2015-03-20 04:45:01.517888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de7fdb6e-cebb-11e4-b177-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de81627c-cebb-11e4-87c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de7fdb6e-cebb-11e4-b177-705681abff85"], ["organization_id", "de81627c-cebb-11e4-87c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.521138"], ["updated_at", "2015-03-20 04:45:01.521138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de80790c-cebb-11e4-80a3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de81627c-cebb-11e4-87c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de80790c-cebb-11e4-80a3-705681abff85"], ["organization_id", "de81627c-cebb-11e4-87c7-705681abff85"], ["created_at", "2015-03-20 04:45:01.523994"], ["updated_at", "2015-03-20 04:45:01.523994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$eAuCggV6aE1mQ3ZnE0BSdejskLdTnCfAKiJt.NibdI35P1MwHHPJK"], ["created_at", "2015-03-20 04:45:01.533413"], ["updated_at", "2015-03-20 04:45:01.533413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$m9ueGjloHYLSU3FQ4DYn2.koOFQ3KVnS.Rgmlo4U1P/pUHcq.hv4O"], ["created_at", "2015-03-20 04:45:01.537897"], ["updated_at", "2015-03-20 04:45:01.537897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.539737"], ["user_id", "de83c67a-cebb-11e4-a6bf-705681abff85"], ["created_at", "2015-03-20 04:45:01.540547"], ["updated_at", "2015-03-20 04:45:01.540547"], ["token", "do7c_wvFWep5_4R4ryuk4WLhX14r4jvdICfZpzp8SpE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.544108"], ["updated_at", "2015-03-20 04:45:01.544108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de83c67a-cebb-11e4-a6bf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de856246-cebb-11e4-9430-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de83c67a-cebb-11e4-a6bf-705681abff85"], ["organization_id", "de856246-cebb-11e4-9430-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.547335"], ["updated_at", "2015-03-20 04:45:01.547335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de847818-cebb-11e4-ad0c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de856246-cebb-11e4-9430-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de847818-cebb-11e4-ad0c-705681abff85"], ["organization_id", "de856246-cebb-11e4-9430-705681abff85"], ["created_at", "2015-03-20 04:45:01.551012"], ["updated_at", "2015-03-20 04:45:01.551012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:01.555695' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "do7c_wvFWep5_4R4ryuk4WLhX14r4jvdICfZpzp8SpE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:01.557096"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:01.558219"], ["id", "de84e23a-cebb-11e4-bf46-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de83c67a-cebb-11e4-a6bf-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de83c67a-cebb-11e4-a6bf-705681abff85' LIMIT 1 [["organization_id", "de856246-cebb-11e4-9430-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "de856246-cebb-11e4-9430-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('de83c67a-cebb-11e4-a6bf-705681abff85', 'de847818-cebb-11e4-ad0c-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('de856246-cebb-11e4-9430-705681abff85') Completed 200 OK in 13ms (Views: 4.3ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$MMS4lIcBIh6v3AnnWlfdQe0/6Q/IEvRbcMv6Ao5kLg.GZc7EoImZC"], ["created_at", "2015-03-20 04:45:01.574447"], ["updated_at", "2015-03-20 04:45:01.574447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$8jeI52rfUmgpIkobuKNDye46XSsHhwF4rW1k7MoFdjRP3zEnL/vxy"], ["created_at", "2015-03-20 04:45:01.578890"], ["updated_at", "2015-03-20 04:45:01.578890"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.580638"], ["user_id", "de8a0526-cebb-11e4-aa09-705681abff85"], ["created_at", "2015-03-20 04:45:01.582156"], ["updated_at", "2015-03-20 04:45:01.582156"], ["token", "rkFFkWiGZMo41Q9daUi9x8TqxZB65rJrdzzqJQATvaU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.586845"], ["updated_at", "2015-03-20 04:45:01.586845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de8a0526-cebb-11e4-aa09-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de8be7a6-cebb-11e4-9552-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de8a0526-cebb-11e4-aa09-705681abff85"], ["organization_id", "de8be7a6-cebb-11e4-9552-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.590181"], ["updated_at", "2015-03-20 04:45:01.590181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de8ab192-cebb-11e4-a9a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de8be7a6-cebb-11e4-9552-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de8ab192-cebb-11e4-a9a2-705681abff85"], ["organization_id", "de8be7a6-cebb-11e4-9552-705681abff85"], ["created_at", "2015-03-20 04:45:01.593113"], ["updated_at", "2015-03-20 04:45:01.593113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$hgZpFCpvpGJKBKkE2Wcan.SUvBr0AKFkIsBJj2z8Sc617KVIl85ui"], ["created_at", "2015-03-20 04:45:01.598113"], ["updated_at", "2015-03-20 04:45:01.598113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.600218"], ["user_id", "de8da258-cebb-11e4-b7cd-705681abff85"], ["created_at", "2015-03-20 04:45:01.601017"], ["updated_at", "2015-03-20 04:45:01.601017"], ["token", "3WksCIIaMSLFM7DRvRE6oKKvy8d29WgX5LoPqdki5Z8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'de8be7a6-cebb-11e4-9552-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "de8be7a6-cebb-11e4-9552-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.604943"], ["updated_at", "2015-03-20 04:45:01.604943"], ["token", "ju7xC3AzGS_C6nF184qxNq8jYZIsyC0tF1SJqNiuGq4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$ffZdVa1Huili6z3W97uLmOyFSoXBU1nlAx2G7Q6XireKTXlDf8tqe"], ["created_at", "2015-03-20 04:45:01.615836"], ["updated_at", "2015-03-20 04:45:01.615836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$thMYkiI0csIcDL41T.mIpOUbJjiTRNxkECARYOKglGLCz0603mmXy"], ["created_at", "2015-03-20 04:45:01.621195"], ["updated_at", "2015-03-20 04:45:01.621195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.622815"], ["user_id", "de905b60-cebb-11e4-9d6e-705681abff85"], ["created_at", "2015-03-20 04:45:01.623568"], ["updated_at", "2015-03-20 04:45:01.623568"], ["token", "qk3GGIVgKJ_a2yRRifHIt7dpHeMeYdFgYCho_98CrlY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.626879"], ["updated_at", "2015-03-20 04:45:01.626879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de905b60-cebb-11e4-9d6e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de920370-cebb-11e4-996d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de905b60-cebb-11e4-9d6e-705681abff85"], ["organization_id", "de920370-cebb-11e4-996d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.630108"], ["updated_at", "2015-03-20 04:45:01.630108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de9126e4-cebb-11e4-8434-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de920370-cebb-11e4-996d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de9126e4-cebb-11e4-8434-705681abff85"], ["organization_id", "de920370-cebb-11e4-996d-705681abff85"], ["created_at", "2015-03-20 04:45:01.634566"], ["updated_at", "2015-03-20 04:45:01.634566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$n4S9nEk4sK.pVXjwbb9P0urYz6j4dCN61WYGG73/AsUdiv2MuS62."], ["created_at", "2015-03-20 04:45:01.640281"], ["updated_at", "2015-03-20 04:45:01.640281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.642292"], ["user_id", "de9418a4-cebb-11e4-9aba-705681abff85"], ["created_at", "2015-03-20 04:45:01.643146"], ["updated_at", "2015-03-20 04:45:01.643146"], ["token", "xJgp03ohX11ZtAaq9gMnph9zX0Ms23qVpylV1txR9pc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'de920370-cebb-11e4-996d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "de920370-cebb-11e4-996d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.659270"], ["updated_at", "2015-03-20 04:45:01.659270"], ["token", "xJJgud3vkcWeZBSnjxNLuTej8LtUdKIeHXqAvFdZ6hA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/de920370-cebb-11e4-996d-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"xJJgud3vkcWeZBSnjxNLuTej8LtUdKIeHXqAvFdZ6hA", "organization_id"=>"de920370-cebb-11e4-996d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:01.664543' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xJgp03ohX11ZtAaq9gMnph9zX0Ms23qVpylV1txR9pc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:01.666056"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:01.667202"], ["id", "de948d20-cebb-11e4-b355-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "de920370-cebb-11e4-996d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de9418a4-cebb-11e4-9aba-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "xJJgud3vkcWeZBSnjxNLuTej8LtUdKIeHXqAvFdZ6hA"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "de920370-cebb-11e4-996d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de9418a4-cebb-11e4-9aba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de920370-cebb-11e4-996d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "de920370-cebb-11e4-996d-705681abff85"], ["member_id", "de9418a4-cebb-11e4-9aba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.677605"], ["updated_at", "2015-03-20 04:45:01.677605"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "de96fec0-cebb-11e4-8246-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$8FCMoSjoyB9PcJKHecR/iOzYDME3m.PUQUTuIutI0LuQc1T5pdxYK"], ["created_at", "2015-03-20 04:45:01.687756"], ["updated_at", "2015-03-20 04:45:01.687756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$8oy7l1y2ol6wIdZXLwMemupZf8WhqFWxbK/Bbt5PfwqzdV5M5hDsq"], ["created_at", "2015-03-20 04:45:01.692016"], ["updated_at", "2015-03-20 04:45:01.692016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.694286"], ["user_id", "de9b520e-cebb-11e4-ab75-705681abff85"], ["created_at", "2015-03-20 04:45:01.695294"], ["updated_at", "2015-03-20 04:45:01.695294"], ["token", "CPthaJOdSH9SB9eeg4MhCkVLn-i_oT1gorqZZfRMirc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.700292"], ["updated_at", "2015-03-20 04:45:01.700292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de9b520e-cebb-11e4-ab75-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de9d3984-cebb-11e4-8127-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de9b520e-cebb-11e4-ab75-705681abff85"], ["organization_id", "de9d3984-cebb-11e4-8127-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.703649"], ["updated_at", "2015-03-20 04:45:01.703649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de9bf740-cebb-11e4-b048-705681abff85' AND "clubhouse_memberships"."organization_id" = 'de9d3984-cebb-11e4-8127-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de9bf740-cebb-11e4-b048-705681abff85"], ["organization_id", "de9d3984-cebb-11e4-8127-705681abff85"], ["created_at", "2015-03-20 04:45:01.706564"], ["updated_at", "2015-03-20 04:45:01.706564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$S8pyjtOHczZn3CjeqMJoquQk0flPBzHl5r6M8lTnUf21af9ZlaGpe"], ["created_at", "2015-03-20 04:45:01.710922"], ["updated_at", "2015-03-20 04:45:01.710922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.712432"], ["user_id", "de9ed6c2-cebb-11e4-a602-705681abff85"], ["created_at", "2015-03-20 04:45:01.713166"], ["updated_at", "2015-03-20 04:45:01.713166"], ["token", "erXIfbwBPwb8Sf2_kOoJFxg0myDGEvXumydnq_0Io_E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'de9d3984-cebb-11e4-8127-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "de9d3984-cebb-11e4-8127-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.716836"], ["updated_at", "2015-03-20 04:45:01.716836"], ["token", "sZtKl3nX0-71MSiZ5J-wngDrEDRDaNVcu3xt3oeUoSY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/de9d3984-cebb-11e4-8127-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"de9d3984-cebb-11e4-8127-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:01.722258' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "erXIfbwBPwb8Sf2_kOoJFxg0myDGEvXumydnq_0Io_E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:01.723673"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:01.725299"], ["id", "de9f352c-cebb-11e4-9bd3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "de9d3984-cebb-11e4-8127-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "de9ed6c2-cebb-11e4-a602-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$KndR8kslvU4WlH5FF7mh.OGB8yDNrHWqZZ4B/lEcgAY9olC.vqWmK"], ["created_at", "2015-03-20 04:45:01.736449"], ["updated_at", "2015-03-20 04:45:01.736449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$2EgU1volP44z7Z6KGvyMU.3L2RZS2bKQ9crDOqhDREk.jCvOvptIG"], ["created_at", "2015-03-20 04:45:01.740668"], ["updated_at", "2015-03-20 04:45:01.740668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.742147"], ["user_id", "dea2c0a2-cebb-11e4-b8a7-705681abff85"], ["created_at", "2015-03-20 04:45:01.742871"], ["updated_at", "2015-03-20 04:45:01.742871"], ["token", "GkEf91Dtl6wNjTxeX7mSB6lMJ77VuHLKGN7RG9_UCRk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.746164"], ["updated_at", "2015-03-20 04:45:01.746164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dea2c0a2-cebb-11e4-b8a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dea43806-cebb-11e4-a88c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dea2c0a2-cebb-11e4-b8a7-705681abff85"], ["organization_id", "dea43806-cebb-11e4-a88c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.749770"], ["updated_at", "2015-03-20 04:45:01.749770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dea36160-cebb-11e4-9dea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dea43806-cebb-11e4-a88c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dea36160-cebb-11e4-9dea-705681abff85"], ["organization_id", "dea43806-cebb-11e4-a88c-705681abff85"], ["created_at", "2015-03-20 04:45:01.753114"], ["updated_at", "2015-03-20 04:45:01.753114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$mtAv4whKJKjLguXCVvVV5e1sXsDdrhAUZakXhJ9m1g6m5Qz39BK56"], ["created_at", "2015-03-20 04:45:01.762759"], ["updated_at", "2015-03-20 04:45:01.762759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$W4TG4G5K.G/6isj6o4H42.l2.00O//5HlErEJJFcrn2guaA0fyH8i"], ["created_at", "2015-03-20 04:45:01.767180"], ["updated_at", "2015-03-20 04:45:01.767180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.768757"], ["user_id", "dea6c332-cebb-11e4-86de-705681abff85"], ["created_at", "2015-03-20 04:45:01.769748"], ["updated_at", "2015-03-20 04:45:01.769748"], ["token", "PHJ8c5baYwCjHNUuadFAI6ZvYm07nLMpkBXUwItxPW8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.773607"], ["updated_at", "2015-03-20 04:45:01.773607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dea6c332-cebb-11e4-86de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dea86750-cebb-11e4-9129-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dea6c332-cebb-11e4-86de-705681abff85"], ["organization_id", "dea86750-cebb-11e4-9129-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.776993"], ["updated_at", "2015-03-20 04:45:01.776993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dea76c74-cebb-11e4-b8ad-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dea86750-cebb-11e4-9129-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dea76c74-cebb-11e4-b8ad-705681abff85"], ["organization_id", "dea86750-cebb-11e4-9129-705681abff85"], ["created_at", "2015-03-20 04:45:01.780361"], ["updated_at", "2015-03-20 04:45:01.780361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/dea9729e-cebb-11e4-b946-705681abff85" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"dea9729e-cebb-11e4-b946-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:01.786948' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PHJ8c5baYwCjHNUuadFAI6ZvYm07nLMpkBXUwItxPW8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:01.788415"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:01.789453"], ["id", "dea7dea2-cebb-11e4-bd3d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "dea9729e-cebb-11e4-b946-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dea6c332-cebb-11e4-86de-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dea86750-cebb-11e4-9129-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dea6c332-cebb-11e4-86de-705681abff85' LIMIT 1 [["organization_id", "dea86750-cebb-11e4-9129-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dea76c74-cebb-11e4-b8ad-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "dea9729e-cebb-11e4-b946-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$sXtDhry0/rc5YokuGG3AF.CSaa5Q2ExcOytIHeJoid1iXY8CWLV4a"], ["created_at", "2015-03-20 04:45:01.801843"], ["updated_at", "2015-03-20 04:45:01.801843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$hI1hWVvIS18D1d7hsyJcSO1NE3k8RTz6aO8jJMIs0zLIEwTYFaOcC"], ["created_at", "2015-03-20 04:45:01.806142"], ["updated_at", "2015-03-20 04:45:01.806142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.807809"], ["user_id", "deacbd28-cebb-11e4-abb6-705681abff85"], ["created_at", "2015-03-20 04:45:01.808569"], ["updated_at", "2015-03-20 04:45:01.808569"], ["token", "KldA5LiEct9uDw0eQA5iaTFN3iHtKPXSCv2CBT98yzs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.812310"], ["updated_at", "2015-03-20 04:45:01.812310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deacbd28-cebb-11e4-abb6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deae591c-cebb-11e4-af74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "deacbd28-cebb-11e4-abb6-705681abff85"], ["organization_id", "deae591c-cebb-11e4-af74-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.816374"], ["updated_at", "2015-03-20 04:45:01.816374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dead5e18-cebb-11e4-9d02-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deae591c-cebb-11e4-af74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dead5e18-cebb-11e4-9d02-705681abff85"], ["organization_id", "deae591c-cebb-11e4-af74-705681abff85"], ["created_at", "2015-03-20 04:45:01.819948"], ["updated_at", "2015-03-20 04:45:01.819948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$PQfeLEHF9jizQsLHChTRS.1sihDoTGQLAZq1TxjtzyLAt4R9Tr5RW"], ["created_at", "2015-03-20 04:45:01.831288"], ["updated_at", "2015-03-20 04:45:01.831288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$gksyHNNp7cBYvqvy5LuJW.Xfnuv8H5PthnW0WwvcGCM4YH0HsnvwC"], ["created_at", "2015-03-20 04:45:01.836396"], ["updated_at", "2015-03-20 04:45:01.836396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.838146"], ["user_id", "deb143fc-cebb-11e4-9a58-705681abff85"], ["created_at", "2015-03-20 04:45:01.839023"], ["updated_at", "2015-03-20 04:45:01.839023"], ["token", "l5bcKBqUd9_A6lI5wElWmPLnb9Th0scY63EuYQPbfMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.842543"], ["updated_at", "2015-03-20 04:45:01.842543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deb143fc-cebb-11e4-9a58-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deb2ec84-cebb-11e4-bf0b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "deb143fc-cebb-11e4-9a58-705681abff85"], ["organization_id", "deb2ec84-cebb-11e4-bf0b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.845853"], ["updated_at", "2015-03-20 04:45:01.845853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deb1ffb8-cebb-11e4-ad08-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deb2ec84-cebb-11e4-bf0b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "deb1ffb8-cebb-11e4-ad08-705681abff85"], ["organization_id", "deb2ec84-cebb-11e4-bf0b-705681abff85"], ["created_at", "2015-03-20 04:45:01.848740"], ["updated_at", "2015-03-20 04:45:01.848740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/deb3de64-cebb-11e4-9b9b-705681abff85" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"deb3de64-cebb-11e4-9b9b-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:01.855038' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "l5bcKBqUd9_A6lI5wElWmPLnb9Th0scY63EuYQPbfMM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:01.856444"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:01.857381"], ["id", "deb26cdc-cebb-11e4-9b06-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "deb3de64-cebb-11e4-9b9b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "deb143fc-cebb-11e4-9a58-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "deb2ec84-cebb-11e4-bf0b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'deb143fc-cebb-11e4-9a58-705681abff85' LIMIT 1 [["organization_id", "deb2ec84-cebb-11e4-bf0b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "deb1ffb8-cebb-11e4-ad08-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deb1ffb8-cebb-11e4-ad08-705681abff85' AND "clubhouse_memberships"."id" != 'deb3de64-cebb-11e4-9b9b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deb2ec84-cebb-11e4-bf0b-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 04:45:01.866423"], ["id", "deb3de64-cebb-11e4-9b9b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.4ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$KNMGunETdHxEaid4WMBvXe0aNWvNOnbWBh4sDx5PlidG19OpgMP2a"], ["created_at", "2015-03-20 04:45:01.876671"], ["updated_at", "2015-03-20 04:45:01.876671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$GM5AqoNlA1O8ne7SbOObSewrErIsujSJ0VLUw7tt8f8abHOLJ3cAK"], ["created_at", "2015-03-20 04:45:01.881211"], ["updated_at", "2015-03-20 04:45:01.881211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.882806"], ["user_id", "deb8241a-cebb-11e4-911f-705681abff85"], ["created_at", "2015-03-20 04:45:01.883617"], ["updated_at", "2015-03-20 04:45:01.883617"], ["token", "77YRTAZimWEYblvkSWHYpcrmoIXWJJLLEFpI6Hl6iyc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.886941"], ["updated_at", "2015-03-20 04:45:01.886941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deb8241a-cebb-11e4-911f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deb9b794-cebb-11e4-bff8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "deb8241a-cebb-11e4-911f-705681abff85"], ["organization_id", "deb9b794-cebb-11e4-bff8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.890548"], ["updated_at", "2015-03-20 04:45:01.890548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deb8d5d6-cebb-11e4-b564-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deb9b794-cebb-11e4-bff8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "deb8d5d6-cebb-11e4-b564-705681abff85"], ["organization_id", "deb9b794-cebb-11e4-bff8-705681abff85"], ["created_at", "2015-03-20 04:45:01.893631"], ["updated_at", "2015-03-20 04:45:01.893631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$510dikjXLirGDSkto8hacOThbtQ2liGjYPd/O9CVcfOR29sjWXX5a"], ["created_at", "2015-03-20 04:45:01.903404"], ["updated_at", "2015-03-20 04:45:01.903404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$L3W0MFUjkBFheYRGIVMbSeeOpwhw8QePDUPjSyuMRxvDLm9GQyEiS"], ["created_at", "2015-03-20 04:45:01.907829"], ["updated_at", "2015-03-20 04:45:01.907829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.909569"], ["user_id", "debc379e-cebb-11e4-807c-705681abff85"], ["created_at", "2015-03-20 04:45:01.910400"], ["updated_at", "2015-03-20 04:45:01.910400"], ["token", "zSMnH0OeVeB-2eX_umHp_NUkWsJPFQDexT2cTmnhl_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.913956"], ["updated_at", "2015-03-20 04:45:01.913956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'debc379e-cebb-11e4-807c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'debdd1c6-cebb-11e4-82da-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "debc379e-cebb-11e4-807c-705681abff85"], ["organization_id", "debdd1c6-cebb-11e4-82da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.917386"], ["updated_at", "2015-03-20 04:45:01.917386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'debce842-cebb-11e4-aaf6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'debdd1c6-cebb-11e4-82da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "debce842-cebb-11e4-aaf6-705681abff85"], ["organization_id", "debdd1c6-cebb-11e4-82da-705681abff85"], ["created_at", "2015-03-20 04:45:01.921356"], ["updated_at", "2015-03-20 04:45:01.921356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/debe5dee-cebb-11e4-8c99-705681abff85" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"debe5dee-cebb-11e4-8c99-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:01.925783' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zSMnH0OeVeB-2eX_umHp_NUkWsJPFQDexT2cTmnhl_0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:01.927165"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:01.928161"], ["id", "debd55a2-cebb-11e4-a577-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "debe5dee-cebb-11e4-8c99-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "debc379e-cebb-11e4-807c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "debdd1c6-cebb-11e4-82da-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'debc379e-cebb-11e4-807c-705681abff85' LIMIT 1 [["organization_id", "debdd1c6-cebb-11e4-82da-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "debc379e-cebb-11e4-807c-705681abff85"]] Completed 200 OK in 8ms (Views: 1.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$ueqCluvYgPp53oEB6O5CJ.E4JQN.0iYHCs9JEgtussAWfwNcjotoS"], ["created_at", "2015-03-20 04:45:01.940470"], ["updated_at", "2015-03-20 04:45:01.940470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$74vEdhZ2VZh78W2BDajFle5ImSEKM04jNQSHmC9JcrI8uilGAfK9a"], ["created_at", "2015-03-20 04:45:01.945099"], ["updated_at", "2015-03-20 04:45:01.945099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.946725"], ["user_id", "dec1e32e-cebb-11e4-b2eb-705681abff85"], ["created_at", "2015-03-20 04:45:01.947458"], ["updated_at", "2015-03-20 04:45:01.947458"], ["token", "PNT1CxXyx1Tafc9lpigVsEztDzrCWd3S1rOrrnbUEhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.950858"], ["updated_at", "2015-03-20 04:45:01.950858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dec1e32e-cebb-11e4-b2eb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dec37806-cebb-11e4-b453-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dec1e32e-cebb-11e4-b2eb-705681abff85"], ["organization_id", "dec37806-cebb-11e4-b453-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.954398"], ["updated_at", "2015-03-20 04:45:01.954398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dec2953a-cebb-11e4-b4d2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dec37806-cebb-11e4-b453-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dec2953a-cebb-11e4-b4d2-705681abff85"], ["organization_id", "dec37806-cebb-11e4-b453-705681abff85"], ["created_at", "2015-03-20 04:45:01.957427"], ["updated_at", "2015-03-20 04:45:01.957427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$mTn0eDPBBsIoreIthky9EeIf8AImhK69uRcCCo8sxPznb5Uv76QUm"], ["created_at", "2015-03-20 04:45:01.961543"], ["updated_at", "2015-03-20 04:45:01.961543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.963493"], ["user_id", "dec514c2-cebb-11e4-aaa9-705681abff85"], ["created_at", "2015-03-20 04:45:01.965037"], ["updated_at", "2015-03-20 04:45:01.965037"], ["token", "z-B2jtESW0Tfc0PSh96hJBBJTOMrwxH9xIh-pGswJqU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'dec37806-cebb-11e4-b453-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "dec37806-cebb-11e4-b453-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.969961"], ["updated_at", "2015-03-20 04:45:01.969961"], ["token", "D0duMpeiZBITeqod4GwK0PUX2Wk34tAI3h_jZabX-xw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 21:45:01 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$FlbtSKw44fpHvLhR3njqNuJ7AWqj0GzEjjGldNUgUUw13nJhwQf1."], ["created_at", "2015-03-20 04:45:01.980556"], ["updated_at", "2015-03-20 04:45:01.980556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$qVwxdmD1V0kYCE5477BTLueGeSMZXiSE6laGjaQana8yLlcrnoPEC"], ["created_at", "2015-03-20 04:45:01.984888"], ["updated_at", "2015-03-20 04:45:01.984888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:01.987313"], ["user_id", "dec7fe62-cebb-11e4-8f4d-705681abff85"], ["created_at", "2015-03-20 04:45:01.988262"], ["updated_at", "2015-03-20 04:45:01.988262"], ["token", "cDBNMrgYAT6uT4CbZuc3bq803roxUmo_WmHewtxcOhc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:01.991874"], ["updated_at", "2015-03-20 04:45:01.991874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dec7fe62-cebb-11e4-8f4d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dec9b5c2-cebb-11e4-9363-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dec7fe62-cebb-11e4-8f4d-705681abff85"], ["organization_id", "dec9b5c2-cebb-11e4-9363-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:01.996840"], ["updated_at", "2015-03-20 04:45:01.996840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dec8ab82-cebb-11e4-8d91-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dec9b5c2-cebb-11e4-9363-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dec8ab82-cebb-11e4-8d91-705681abff85"], ["organization_id", "dec9b5c2-cebb-11e4-9363-705681abff85"], ["created_at", "2015-03-20 04:45:02.000546"], ["updated_at", "2015-03-20 04:45:02.000546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$0BgxTrp7/MHTk5Mc4EYdA.hrFWbP4e51JqpMBDF7Bevob2qPQJft2"], ["created_at", "2015-03-20 04:45:02.005178"], ["updated_at", "2015-03-20 04:45:02.005178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.006706"], ["user_id", "decbbe44-cebb-11e4-a589-705681abff85"], ["created_at", "2015-03-20 04:45:02.007480"], ["updated_at", "2015-03-20 04:45:02.007480"], ["token", "j4dhgrk1Rf4C3jYdxCmYu6VJpYz2W23q3pNf1Wj5A6E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'dec9b5c2-cebb-11e4-9363-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "dec9b5c2-cebb-11e4-9363-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.011170"], ["updated_at", "2015-03-20 04:45:02.011170"], ["token", "kfrLuHu5M2wm0MSVxlPpmSZCPZD_RNBcthiEFdLDbBo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"kfrLuHu5M2wm0MSVxlPpmSZCPZD_RNBcthiEFdLDbBo", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.015769' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "j4dhgrk1Rf4C3jYdxCmYu6VJpYz2W23q3pNf1Wj5A6E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.017208"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.018180"], ["id", "decc1e02-cebb-11e4-b9df-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "decbbe44-cebb-11e4-a589-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "kfrLuHu5M2wm0MSVxlPpmSZCPZD_RNBcthiEFdLDbBo"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dec9b5c2-cebb-11e4-9363-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'decbbe44-cebb-11e4-a589-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dec9b5c2-cebb-11e4-9363-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "dec9b5c2-cebb-11e4-9363-705681abff85"], ["member_id", "decbbe44-cebb-11e4-a589-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.025815"], ["updated_at", "2015-03-20 04:45:02.025815"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "deccad72-cebb-11e4-96f4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 1.0ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$LcYLfhCWZ/9kOekrDI2htusH2htOQsUi35dxo/tM/5g/6kXqktCE."], ["created_at", "2015-03-20 04:45:02.035020"], ["updated_at", "2015-03-20 04:45:02.035020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$pE6vBUkxYtSAdX4sNAghlOmyU7jcM9acArx850aXIvoJ/iIwIQwzS"], ["created_at", "2015-03-20 04:45:02.040292"], ["updated_at", "2015-03-20 04:45:02.040292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.041973"], ["user_id", "ded050bc-cebb-11e4-bcfe-705681abff85"], ["created_at", "2015-03-20 04:45:02.042756"], ["updated_at", "2015-03-20 04:45:02.042756"], ["token", "CBXJl1iSiXYST-pO64r6YhdMQd_-wsAcEHb6Aedbvls"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.046208"], ["updated_at", "2015-03-20 04:45:02.046208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ded050bc-cebb-11e4-bcfe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ded20074-cebb-11e4-97b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ded050bc-cebb-11e4-bcfe-705681abff85"], ["organization_id", "ded20074-cebb-11e4-97b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.049452"], ["updated_at", "2015-03-20 04:45:02.049452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ded11c22-cebb-11e4-9454-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ded20074-cebb-11e4-97b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ded11c22-cebb-11e4-9454-705681abff85"], ["organization_id", "ded20074-cebb-11e4-97b7-705681abff85"], ["created_at", "2015-03-20 04:45:02.052880"], ["updated_at", "2015-03-20 04:45:02.052880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$/zgsxwonxXgxDm4cSpmstOu2wSOyD0vGedN.o6UNF7mjZjg2N5IvK"], ["created_at", "2015-03-20 04:45:02.058164"], ["updated_at", "2015-03-20 04:45:02.058164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.059982"], ["user_id", "ded3d2c8-cebb-11e4-8765-705681abff85"], ["created_at", "2015-03-20 04:45:02.061257"], ["updated_at", "2015-03-20 04:45:02.061257"], ["token", "0jSLLOy4Iwk3BXCgLJbxEnHLSUq7FS4x6-hDTapt93o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'ded20074-cebb-11e4-97b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "ded20074-cebb-11e4-97b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.065704"], ["updated_at", "2015-03-20 04:45:02.065704"], ["token", "EyYZIKSX78VEgPVpMh6KfFNTRSdAU_FFikqWGMZFEjk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.070462' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0jSLLOy4Iwk3BXCgLJbxEnHLSUq7FS4x6-hDTapt93o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.072262"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.073304"], ["id", "ded46b34-cebb-11e4-b2a5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ded3d2c8-cebb-11e4-8765-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$xdMfHzrSGaFTk8IljHw1FOM2/SCzNInEf3UCaUV2HVgmijSP6Oi0O"], ["created_at", "2015-03-20 04:45:02.083701"], ["updated_at", "2015-03-20 04:45:02.083701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.088101"], ["updated_at", "2015-03-20 04:45:02.088101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ded7bbd6-cebb-11e4-b72c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ded8693c-cebb-11e4-9a11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ded7bbd6-cebb-11e4-b72c-705681abff85"], ["organization_id", "ded8693c-cebb-11e4-9a11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.091561"], ["updated_at", "2015-03-20 04:45:02.091561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'ded8693c-cebb-11e4-9a11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "ded8693c-cebb-11e4-9a11-705681abff85"], ["created_at", "2015-03-20 04:45:02.094990"], ["updated_at", "2015-03-20 04:45:02.094990"], ["token", "nOoEE9VfOAsM0KWhaAxhW_OmrttoxsM8yrkzXJuf1-Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ded7bbd6-cebb-11e4-b72c-705681abff85' LIMIT 1 [["organization_id", "ded8693c-cebb-11e4-9a11-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$IbohaDblZ63pt0KHPyBwtuWKwsquYrhVIKKkurZnCA7kX9/XWBrEi"], ["created_at", "2015-03-20 04:45:02.102591"], ["updated_at", "2015-03-20 04:45:02.102591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.105853"], ["updated_at", "2015-03-20 04:45:02.105853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deda9eaa-cebb-11e4-86f7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dedb1a9c-cebb-11e4-8593-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "deda9eaa-cebb-11e4-86f7-705681abff85"], ["organization_id", "dedb1a9c-cebb-11e4-8593-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.109011"], ["updated_at", "2015-03-20 04:45:02.109011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'dedb1a9c-cebb-11e4-8593-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "dedb1a9c-cebb-11e4-8593-705681abff85"], ["created_at", "2015-03-20 04:45:02.112354"], ["updated_at", "2015-03-20 04:45:02.112354"], ["token", "Qw8ww9pu0SmIQu6QReJWIrbLgQg97wkDF4KN3rVRfws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'deda9eaa-cebb-11e4-86f7-705681abff85' LIMIT 1 [["organization_id", "dedb1a9c-cebb-11e4-8593-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$QXUMuzJ2d7IIw/Y1c4s2PO4FRt3RnvW3P3uN6LTLKnjx8z9UE95Lq"], ["created_at", "2015-03-20 04:45:02.119284"], ["updated_at", "2015-03-20 04:45:02.119284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.123279"], ["updated_at", "2015-03-20 04:45:02.123279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dedd2774-cebb-11e4-add9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deddc670-cebb-11e4-9890-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dedd2774-cebb-11e4-add9-705681abff85"], ["organization_id", "deddc670-cebb-11e4-9890-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.126786"], ["updated_at", "2015-03-20 04:45:02.126786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'deddc670-cebb-11e4-9890-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "deddc670-cebb-11e4-9890-705681abff85"], ["created_at", "2015-03-20 04:45:02.130122"], ["updated_at", "2015-03-20 04:45:02.130122"], ["token", "8PY0ietG7vxamKtfuY1GpMM2QqtyskvRCAPR7aiZ5vs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dedd2774-cebb-11e4-add9-705681abff85' LIMIT 1 [["organization_id", "deddc670-cebb-11e4-9890-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$oliwI.bFK/9lLkaKxJAbV.CisQ2gZ6XPFyOShIOpW3PLXA89w8Yhi"], ["created_at", "2015-03-20 04:45:02.137809"], ["updated_at", "2015-03-20 04:45:02.137809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.141300"], ["updated_at", "2015-03-20 04:45:02.141300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dee003e0-cebb-11e4-a02b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dee0831a-cebb-11e4-9e49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dee003e0-cebb-11e4-a02b-705681abff85"], ["organization_id", "dee0831a-cebb-11e4-9e49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.144538"], ["updated_at", "2015-03-20 04:45:02.144538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'dee0831a-cebb-11e4-9e49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "dee0831a-cebb-11e4-9e49-705681abff85"], ["created_at", "2015-03-20 04:45:02.147951"], ["updated_at", "2015-03-20 04:45:02.147951"], ["token", "HjhDYbsfB2m0fgH8nMvVpSUOOxWRmRaW1d-42j5lN7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dee003e0-cebb-11e4-a02b-705681abff85' LIMIT 1 [["organization_id", "dee0831a-cebb-11e4-9e49-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$U/yQ0x5h/H4jlWzqjP6a9uZACPJNy.8x5C0JyPC1CjNGD0LkLd9GS"], ["created_at", "2015-03-20 04:45:02.155239"], ["updated_at", "2015-03-20 04:45:02.155239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.158244"], ["updated_at", "2015-03-20 04:45:02.158244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dee2a456-cebb-11e4-be32-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dee317b0-cebb-11e4-aace-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dee2a456-cebb-11e4-be32-705681abff85"], ["organization_id", "dee317b0-cebb-11e4-aace-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.161628"], ["updated_at", "2015-03-20 04:45:02.161628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dee2a456-cebb-11e4-be32-705681abff85' LIMIT 1 [["organization_id", "dee317b0-cebb-11e4-aace-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$3gkBGE2TkO9KRrGM9l0lS.XA8n4nBrgi07QhlQ//HZP/XF.ta06V."], ["created_at", "2015-03-20 04:45:02.169836"], ["updated_at", "2015-03-20 04:45:02.169836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.173559"], ["updated_at", "2015-03-20 04:45:02.173559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dee4e176-cebb-11e4-8547-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dee5726c-cebb-11e4-b2a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dee4e176-cebb-11e4-8547-705681abff85"], ["organization_id", "dee5726c-cebb-11e4-b2a6-705681abff85"], ["created_at", "2015-03-20 04:45:02.176919"], ["updated_at", "2015-03-20 04:45:02.176919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'dee5726c-cebb-11e4-b2a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "dee5726c-cebb-11e4-b2a6-705681abff85"], ["created_at", "2015-03-20 04:45:02.180279"], ["updated_at", "2015-03-20 04:45:02.180279"], ["token", "omndBLpYXEnA_lS9nRDl28mCnJRMtVmDtBoh66nASms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dee4e176-cebb-11e4-8547-705681abff85' LIMIT 1 [["organization_id", "dee5726c-cebb-11e4-b2a6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$DsxSlj/gxW4pGBsRAIL7juUdmEcb9H.SNmDWz4mGjUsZKazbPE9ia"], ["created_at", "2015-03-20 04:45:02.188084"], ["updated_at", "2015-03-20 04:45:02.188084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.191785"], ["updated_at", "2015-03-20 04:45:02.191785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dee7b630-cebb-11e4-9360-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dee83920-cebb-11e4-8ebf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dee7b630-cebb-11e4-9360-705681abff85"], ["organization_id", "dee83920-cebb-11e4-8ebf-705681abff85"], ["created_at", "2015-03-20 04:45:02.195106"], ["updated_at", "2015-03-20 04:45:02.195106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'dee83920-cebb-11e4-8ebf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "dee83920-cebb-11e4-8ebf-705681abff85"], ["created_at", "2015-03-20 04:45:02.198435"], ["updated_at", "2015-03-20 04:45:02.198435"], ["token", "LI1yU_wtmb5G5IsAeu7kX1-isHVDGl-HBT7xFUdEJjs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dee7b630-cebb-11e4-9360-705681abff85' LIMIT 1 [["organization_id", "dee83920-cebb-11e4-8ebf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$WFZGnl3pMQcbcFs/KI54pOytyVG3eCz69iQ9vVXh.NdrHFJSWKcGW"], ["created_at", "2015-03-20 04:45:02.205771"], ["updated_at", "2015-03-20 04:45:02.205771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.208882"], ["updated_at", "2015-03-20 04:45:02.208882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deea5b88-cebb-11e4-bea7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deead23e-cebb-11e4-8f3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "deea5b88-cebb-11e4-bea7-705681abff85"], ["organization_id", "deead23e-cebb-11e4-8f3e-705681abff85"], ["created_at", "2015-03-20 04:45:02.212055"], ["updated_at", "2015-03-20 04:45:02.212055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'deead23e-cebb-11e4-8f3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "deead23e-cebb-11e4-8f3e-705681abff85"], ["created_at", "2015-03-20 04:45:02.215442"], ["updated_at", "2015-03-20 04:45:02.215442"], ["token", "__a8wfzPrOpxpyIXhONGhVvDY_is_Q4J4H8XkXkuidw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'deea5b88-cebb-11e4-bea7-705681abff85' LIMIT 1 [["organization_id", "deead23e-cebb-11e4-8f3e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$nk1cdN37kzV2002uE/3vxOzKOJnsXvLIyTvKZr1rye8bP4JD5h7LK"], ["created_at", "2015-03-20 04:45:02.222840"], ["updated_at", "2015-03-20 04:45:02.222840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.226391"], ["updated_at", "2015-03-20 04:45:02.226391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deecf848-cebb-11e4-abb7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'deed8074-cebb-11e4-9ad7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "deecf848-cebb-11e4-abb7-705681abff85"], ["organization_id", "deed8074-cebb-11e4-9ad7-705681abff85"], ["created_at", "2015-03-20 04:45:02.229628"], ["updated_at", "2015-03-20 04:45:02.229628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'deed8074-cebb-11e4-9ad7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "deed8074-cebb-11e4-9ad7-705681abff85"], ["created_at", "2015-03-20 04:45:02.233038"], ["updated_at", "2015-03-20 04:45:02.233038"], ["token", "weIwaLP8GoqkP55rD8OeK2BQdd8LYz8zMXRQhvkPvJM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'deecf848-cebb-11e4-abb7-705681abff85' LIMIT 1 [["organization_id", "deed8074-cebb-11e4-9ad7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$2xnEAxTW9VlCyggn/TG6PevlBHEGswoL9IwZu0ld5CbcM6JtENYSu"], ["created_at", "2015-03-20 04:45:02.241021"], ["updated_at", "2015-03-20 04:45:02.241021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.244274"], ["updated_at", "2015-03-20 04:45:02.244274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deefbe5c-cebb-11e4-b5f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'def038fa-cebb-11e4-9c81-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "deefbe5c-cebb-11e4-b5f4-705681abff85"], ["organization_id", "def038fa-cebb-11e4-9c81-705681abff85"], ["created_at", "2015-03-20 04:45:02.247423"], ["updated_at", "2015-03-20 04:45:02.247423"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'deefbe5c-cebb-11e4-b5f4-705681abff85' LIMIT 1 [["organization_id", "def038fa-cebb-11e4-9c81-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$mTcpiA9wzZZCzz5yYRIJnOYMIsBnYAepqDtraZNdSQXTs5c/NXY5a"], ["created_at", "2015-03-20 04:45:02.255510"], ["updated_at", "2015-03-20 04:45:02.255510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.258683"], ["updated_at", "2015-03-20 04:45:02.258683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'def26bde-cebb-11e4-a390-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "def26bde-cebb-11e4-a390-705681abff85"], ["created_at", "2015-03-20 04:45:02.262000"], ["updated_at", "2015-03-20 04:45:02.262000"], ["token", "Pxxh7vNJA6GysirXda_3BH0uMW0z8HmNJkdny21wzk0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'def1f294-cebb-11e4-b807-705681abff85' LIMIT 1 [["organization_id", "def26bde-cebb-11e4-a390-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$cjNNavjIwWdNvAubGbZcVugaiLq8xiBF7fwRYyBXxo8jOGKKZ.9uC"], ["created_at", "2015-03-20 04:45:02.269181"], ["updated_at", "2015-03-20 04:45:02.269181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.272420"], ["updated_at", "2015-03-20 04:45:02.272420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'def48be4-cebb-11e4-9fe9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "def48be4-cebb-11e4-9fe9-705681abff85"], ["created_at", "2015-03-20 04:45:02.276327"], ["updated_at", "2015-03-20 04:45:02.276327"], ["token", "xi6lCIT4ZA3dXp5sQpo-3lg0twwMRn3ljSIxLCgtULQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'def409ee-cebb-11e4-8eb9-705681abff85' LIMIT 1 [["organization_id", "def48be4-cebb-11e4-9fe9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$1DkAPHO/iHvFECy2NXpah.9pHBqpNHQ119KWvssLmdZEbldmAkyEW"], ["created_at", "2015-03-20 04:45:02.283748"], ["updated_at", "2015-03-20 04:45:02.283748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.287131"], ["updated_at", "2015-03-20 04:45:02.287131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'def6d75a-cebb-11e4-b262-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "def6d75a-cebb-11e4-b262-705681abff85"], ["created_at", "2015-03-20 04:45:02.291208"], ["updated_at", "2015-03-20 04:45:02.291208"], ["token", "tD6wpsBCIOWrDO0K4r2a8s6UIKJnyWIEs8Js-bvprJw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'def64042-cebb-11e4-8195-705681abff85' LIMIT 1 [["organization_id", "def6d75a-cebb-11e4-b262-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$0cX1D2ofB6oq/YNN9qXcMuAoj7UTi6sc0HhnJafzXYnWCkLW.QEmi"], ["created_at", "2015-03-20 04:45:02.298151"], ["updated_at", "2015-03-20 04:45:02.298151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.301111"], ["updated_at", "2015-03-20 04:45:02.301111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'def8e356-cebb-11e4-b7b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "def8e356-cebb-11e4-b7b1-705681abff85"], ["created_at", "2015-03-20 04:45:02.304560"], ["updated_at", "2015-03-20 04:45:02.304560"], ["token", "PpbfxtUCk3SKLzZDznF77CNTD5SP3bzlmWfS6VaRAf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'def871e6-cebb-11e4-9367-705681abff85' LIMIT 1 [["organization_id", "def8e356-cebb-11e4-b7b1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$euL.sBfnucWp7biLRAaC.uiOAfw9HAGgqW0B4MHLOeT/2Q5SmY6ce"], ["created_at", "2015-03-20 04:45:02.311798"], ["updated_at", "2015-03-20 04:45:02.311798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.314769"], ["updated_at", "2015-03-20 04:45:02.314769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'defa881e-cebb-11e4-862a-705681abff85' LIMIT 1 [["organization_id", "defaf8c6-cebb-11e4-9c06-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$OWCMOKwvVUjkvViA6s2jzudZbehe6YzDos9nC/Tb5BI21ESJz8/mS"], ["created_at", "2015-03-20 04:45:02.322249"], ["updated_at", "2015-03-20 04:45:02.322249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.323884"], ["user_id", "defc2322-cebb-11e4-99d9-705681abff85"], ["created_at", "2015-03-20 04:45:02.324638"], ["updated_at", "2015-03-20 04:45:02.324638"], ["token", "p4DQsZ8AtMfzLXC2afCdb6uuI2sNJ3VCWtk6e8mbV-Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.327807"], ["updated_at", "2015-03-20 04:45:02.327807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'defc2322-cebb-11e4-99d9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'defcf888-cebb-11e4-9f48-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "defc2322-cebb-11e4-99d9-705681abff85"], ["organization_id", "defcf888-cebb-11e4-9f48-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.330952"], ["updated_at", "2015-03-20 04:45:02.330952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$dm6XSSnZ0/wayRCz7uN04u46gekw55dVDVIDXJCLeWQmxY7lPAg6O"], ["created_at", "2015-03-20 04:45:02.335064"], ["updated_at", "2015-03-20 04:45:02.335064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.339224"], ["updated_at", "2015-03-20 04:45:02.339224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'defe1aa6-cebb-11e4-a0cd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'defeb9de-cebb-11e4-9784-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "defe1aa6-cebb-11e4-a0cd-705681abff85"], ["organization_id", "defeb9de-cebb-11e4-9784-705681abff85"], ["created_at", "2015-03-20 04:45:02.342497"], ["updated_at", "2015-03-20 04:45:02.342497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$9DF3vCLoKBsZbBB3wljd9uo3R1Xk7ctIs9szNGN11sIS7FnQtN/pu"], ["created_at", "2015-03-20 04:45:02.357496"], ["updated_at", "2015-03-20 04:45:02.357496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.359034"], ["user_id", "df018164-cebb-11e4-bd09-705681abff85"], ["created_at", "2015-03-20 04:45:02.359774"], ["updated_at", "2015-03-20 04:45:02.359774"], ["token", "vd3PAH4ZAblL1Sy7ZOqdFEpJbZgU_6NrticNMkvmf6Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.362901"], ["updated_at", "2015-03-20 04:45:02.362901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df018164-cebb-11e4-bd09-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df0250c6-cebb-11e4-9c74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df018164-cebb-11e4-bd09-705681abff85"], ["organization_id", "df0250c6-cebb-11e4-9c74-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.365909"], ["updated_at", "2015-03-20 04:45:02.365909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$Np1YTa39/zajzYK5E5O3lOOWGU32cITTV8/IDNgOyJAuXZuI5unYq"], ["created_at", "2015-03-20 04:45:02.370027"], ["updated_at", "2015-03-20 04:45:02.370027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.372868"], ["updated_at", "2015-03-20 04:45:02.372868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df036862-cebb-11e4-ab67-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df03d608-cebb-11e4-85ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "df036862-cebb-11e4-ab67-705681abff85"], ["organization_id", "df03d608-cebb-11e4-85ec-705681abff85"], ["created_at", "2015-03-20 04:45:02.375772"], ["updated_at", "2015-03-20 04:45:02.375772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.380174' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vd3PAH4ZAblL1Sy7ZOqdFEpJbZgU_6NrticNMkvmf6Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.381680"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.382587"], ["id", "df01de0c-cebb-11e4-8770-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df018164-cebb-11e4-bd09-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "df018164-cebb-11e4-bd09-705681abff85"]] Completed 200 OK in 16ms (Views: 5.1ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$sfzaio9MMCDyN9v8Matup.h1d9hKFwm27QZAWKxEIWbOcsQ761tK2"], ["created_at", "2015-03-20 04:45:02.407858"], ["updated_at", "2015-03-20 04:45:02.407858"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.411118"], ["user_id", "df094f70-cebb-11e4-a08d-705681abff85"], ["created_at", "2015-03-20 04:45:02.412555"], ["updated_at", "2015-03-20 04:45:02.412555"], ["token", "5Q12utMHOrJWLWNCT8nd_U--ReXxTYMoTTqjlqsNej8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.418151"], ["updated_at", "2015-03-20 04:45:02.418151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df094f70-cebb-11e4-a08d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df0ad1ba-cebb-11e4-a1c5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df094f70-cebb-11e4-a08d-705681abff85"], ["organization_id", "df0ad1ba-cebb-11e4-a1c5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.423207"], ["updated_at", "2015-03-20 04:45:02.423207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$lzPfJNWBOQEup7us1OoAAOcE8MQPDwMI.mdTQKbXL544QOZ3SoU8u"], ["created_at", "2015-03-20 04:45:02.433929"], ["updated_at", "2015-03-20 04:45:02.433929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.435552"], ["user_id", "df0d2b68-cebb-11e4-b49b-705681abff85"], ["created_at", "2015-03-20 04:45:02.436321"], ["updated_at", "2015-03-20 04:45:02.436321"], ["token", "ljdfJ3KRkPwsFWUPhRxMQIVRw_fTGrrsp8Rv_5LVDn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.439882"], ["updated_at", "2015-03-20 04:45:02.439882"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df0d2b68-cebb-11e4-b49b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df0e1564-cebb-11e4-93c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df0d2b68-cebb-11e4-b49b-705681abff85"], ["organization_id", "df0e1564-cebb-11e4-93c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.443516"], ["updated_at", "2015-03-20 04:45:02.443516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/df0e1564-cebb-11e4-93c3-705681abff85" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"df0e1564-cebb-11e4-93c3-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.448218' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ljdfJ3KRkPwsFWUPhRxMQIVRw_fTGrrsp8Rv_5LVDn8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.449986"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.451812"], ["id", "df0d9170-cebb-11e4-818b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "df0e1564-cebb-11e4-93c3-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df0d2b68-cebb-11e4-b49b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df0d2b68-cebb-11e4-b49b-705681abff85' LIMIT 1 [["organization_id", "df0e1564-cebb-11e4-93c3-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'df0e1564-cebb-11e4-93c3-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 04:45:02.459668"], ["id", "df0e1564-cebb-11e4-93c3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$3Y5fcQkzvDPbovll/q1BnO6M2TPGiZHH9ECY5.Z4nTVDfltUKRDpe"], ["created_at", "2015-03-20 04:45:02.467077"], ["updated_at", "2015-03-20 04:45:02.467077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.468585"], ["user_id", "df1238ec-cebb-11e4-82e7-705681abff85"], ["created_at", "2015-03-20 04:45:02.469397"], ["updated_at", "2015-03-20 04:45:02.469397"], ["token", "NEn8B0XhzOCk3wenbC9Ei43ge94GVJ-pvpf1jPI-BEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.472995"], ["updated_at", "2015-03-20 04:45:02.472995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df1238ec-cebb-11e4-82e7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df131e88-cebb-11e4-8038-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df1238ec-cebb-11e4-82e7-705681abff85"], ["organization_id", "df131e88-cebb-11e4-8038-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.476037"], ["updated_at", "2015-03-20 04:45:02.476037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/df131e88-cebb-11e4-8038-705681abff85" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"df131e88-cebb-11e4-8038-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.480501' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NEn8B0XhzOCk3wenbC9Ei43ge94GVJ-pvpf1jPI-BEE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.482062"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.483911"], ["id", "df129f9e-cebb-11e4-8171-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "df131e88-cebb-11e4-8038-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df1238ec-cebb-11e4-82e7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df1238ec-cebb-11e4-82e7-705681abff85' LIMIT 1 [["organization_id", "df131e88-cebb-11e4-8038-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'df131e88-cebb-11e4-8038-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$j0xNiWRMbQwf6y16JBAB9eP5jJO0VT9mMoJbZuU7Q60rLiJzUTPOG"], ["created_at", "2015-03-20 04:45:02.497510"], ["updated_at", "2015-03-20 04:45:02.497510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.499363"], ["user_id", "df16e6ee-cebb-11e4-a423-705681abff85"], ["created_at", "2015-03-20 04:45:02.500138"], ["updated_at", "2015-03-20 04:45:02.500138"], ["token", "Zhg2lFTbJ2xPsy3a_xmEWe-Yp_CkeB1GyI_TNv_A2dA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.503433"], ["updated_at", "2015-03-20 04:45:02.503433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df16e6ee-cebb-11e4-a423-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df17c758-cebb-11e4-8a48-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df16e6ee-cebb-11e4-a423-705681abff85"], ["organization_id", "df17c758-cebb-11e4-8a48-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.507379"], ["updated_at", "2015-03-20 04:45:02.507379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$gN../oXlCHDAXo4e0GimiOJPImLto4087WAcg4jR2ND9g936zWD46"], ["created_at", "2015-03-20 04:45:02.516831"], ["updated_at", "2015-03-20 04:45:02.516831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.518360"], ["user_id", "df19d124-cebb-11e4-b7cf-705681abff85"], ["created_at", "2015-03-20 04:45:02.519183"], ["updated_at", "2015-03-20 04:45:02.519183"], ["token", "qCCTZSvkh6XHM5PlQNhpKBLwEsdWbkcbRn88dPSFICs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.522733"], ["updated_at", "2015-03-20 04:45:02.522733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df19d124-cebb-11e4-b7cf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df1ab620-cebb-11e4-b3cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df19d124-cebb-11e4-b7cf-705681abff85"], ["organization_id", "df1ab620-cebb-11e4-b3cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.525812"], ["updated_at", "2015-03-20 04:45:02.525812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-63" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-63", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.530008' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qCCTZSvkh6XHM5PlQNhpKBLwEsdWbkcbRn88dPSFICs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.531412"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.532337"], ["id", "df1a35f6-cebb-11e4-a4f3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-63"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df19d124-cebb-11e4-b7cf-705681abff85"]] Completed 200 OK in 5ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$ofHUAaCiDthR1RF7CA7IgevLbI41aBwNQ/vayHJN0XXzdz5kSxOTW"], ["created_at", "2015-03-20 04:45:02.540611"], ["updated_at", "2015-03-20 04:45:02.540611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.542167"], ["user_id", "df1d7234-cebb-11e4-9b97-705681abff85"], ["created_at", "2015-03-20 04:45:02.542908"], ["updated_at", "2015-03-20 04:45:02.542908"], ["token", "R48y0SdJTEtQ3-fQ9QZfd48ydjxWQu4uCZGudQOHoDY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.546009"], ["updated_at", "2015-03-20 04:45:02.546009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df1d7234-cebb-11e4-9b97-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df1e413c-cebb-11e4-a1e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df1d7234-cebb-11e4-9b97-705681abff85"], ["organization_id", "df1e413c-cebb-11e4-a1e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.549477"], ["updated_at", "2015-03-20 04:45:02.549477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.554069' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "R48y0SdJTEtQ3-fQ9QZfd48ydjxWQu4uCZGudQOHoDY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.555802"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.556844"], ["id", "df1dcfea-cebb-11e4-9c91-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$TSP/tkHE7mwg.dIi1NPQ9.JGzYZqSGmXwJ5m/iS9bW0vQvobBDxiW"], ["created_at", "2015-03-20 04:45:02.564104"], ["updated_at", "2015-03-20 04:45:02.564104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.565638"], ["user_id", "df21078c-cebb-11e4-8c5f-705681abff85"], ["created_at", "2015-03-20 04:45:02.566372"], ["updated_at", "2015-03-20 04:45:02.566372"], ["token", "rJO8CRRyFqR3PtzTxlO_tPThHBPEQ_e3G5bEQIhfeIE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.569514"], ["updated_at", "2015-03-20 04:45:02.569514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df21078c-cebb-11e4-8c5f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df21d8d8-cebb-11e4-8e99-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df21078c-cebb-11e4-8c5f-705681abff85"], ["organization_id", "df21d8d8-cebb-11e4-8e99-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.572597"], ["updated_at", "2015-03-20 04:45:02.572597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$bwVFq2X/ipgFaVndWLuHqOQe6MymB8IAU4.8/UfzAqZqnoCdCSxDW"], ["created_at", "2015-03-20 04:45:02.582128"], ["updated_at", "2015-03-20 04:45:02.582128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.583675"], ["user_id", "df23c7c4-cebb-11e4-9b10-705681abff85"], ["created_at", "2015-03-20 04:45:02.584419"], ["updated_at", "2015-03-20 04:45:02.584419"], ["token", "zXIsdBKSYi_FsMybNUuzgvDAAZodGkQoLalOlK9BjA4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.587647"], ["updated_at", "2015-03-20 04:45:02.587647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df23c7c4-cebb-11e4-9b10-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df24a4b4-cebb-11e4-892e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df23c7c4-cebb-11e4-9b10-705681abff85"], ["organization_id", "df24a4b4-cebb-11e4-892e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.591341"], ["updated_at", "2015-03-20 04:45:02.591341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/df24a4b4-cebb-11e4-892e-705681abff85" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"df24a4b4-cebb-11e4-892e-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.596054' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "zXIsdBKSYi_FsMybNUuzgvDAAZodGkQoLalOlK9BjA4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.597520"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.598445"], ["id", "df242534-cebb-11e4-aac2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "df24a4b4-cebb-11e4-892e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df23c7c4-cebb-11e4-9b10-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'df23c7c4-cebb-11e4-9b10-705681abff85' LIMIT 1 [["organization_id", "df24a4b4-cebb-11e4-892e-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$VRctIpRU4RwY6wn3wP8tKOBFy902hfUQHpPofk/PIZsXWQCFB1OyS"], ["created_at", "2015-03-20 04:45:02.609559"], ["updated_at", "2015-03-20 04:45:02.609559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.611124"], ["user_id", "df27f812-cebb-11e4-90eb-705681abff85"], ["created_at", "2015-03-20 04:45:02.611919"], ["updated_at", "2015-03-20 04:45:02.611919"], ["token", "MIzGOLwzEJ8cMrUqfBlY6LA_qT7EJYtwMZdnaZSMOnw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.615264"], ["updated_at", "2015-03-20 04:45:02.615264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df27f812-cebb-11e4-90eb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df28d3c2-cebb-11e4-8182-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df27f812-cebb-11e4-90eb-705681abff85"], ["organization_id", "df28d3c2-cebb-11e4-8182-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.618327"], ["updated_at", "2015-03-20 04:45:02.618327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$yLuhMobDv3aDXyK/iUYjcOFrUP502T4Q3xLdsIZcFaa8ZDn6e8vie"], ["created_at", "2015-03-20 04:45:02.628278"], ["updated_at", "2015-03-20 04:45:02.628278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.629909"], ["user_id", "df2ad2a8-cebb-11e4-862f-705681abff85"], ["created_at", "2015-03-20 04:45:02.630665"], ["updated_at", "2015-03-20 04:45:02.630665"], ["token", "KiMHk-wgJmW8yZmQpFgzpT0qSQDvV40TyRhLdTkJG70"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.633826"], ["updated_at", "2015-03-20 04:45:02.633826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df2ad2a8-cebb-11e4-862f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df2ba7fa-cebb-11e4-8a3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df2ad2a8-cebb-11e4-862f-705681abff85"], ["organization_id", "df2ba7fa-cebb-11e4-8a3d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.636871"], ["updated_at", "2015-03-20 04:45:02.636871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-68" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-68", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.641659' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KiMHk-wgJmW8yZmQpFgzpT0qSQDvV40TyRhLdTkJG70"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.643168"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.644076"], ["id", "df2b34be-cebb-11e4-937a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-68"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df2ad2a8-cebb-11e4-862f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'df2ad2a8-cebb-11e4-862f-705681abff85' LIMIT 1 [["organization_id", "df2ba7fa-cebb-11e4-8a3d-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$2l.L8d2mOFKj4JQDeUzr6emU46/sqCIWxUhWvD96ZhHtkbgSIC2o2"], ["created_at", "2015-03-20 04:45:02.654551"], ["updated_at", "2015-03-20 04:45:02.654551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.656683"], ["user_id", "df2eda24-cebb-11e4-b567-705681abff85"], ["created_at", "2015-03-20 04:45:02.657512"], ["updated_at", "2015-03-20 04:45:02.657512"], ["token", "Ot3l7xcKmX3SemaHtaab1gpfV1FZJ-D6G5voZoZmQKo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.660889"], ["updated_at", "2015-03-20 04:45:02.660889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df2eda24-cebb-11e4-b567-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df2fc92a-cebb-11e4-bd58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df2eda24-cebb-11e4-b567-705681abff85"], ["organization_id", "df2fc92a-cebb-11e4-bd58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.663888"], ["updated_at", "2015-03-20 04:45:02.663888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$B5yNkze5V7lufVe.0jW.MO6GAOKHZiwTZk40G3666XZkiHAa.lYDe"], ["created_at", "2015-03-20 04:45:02.674139"], ["updated_at", "2015-03-20 04:45:02.674139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.675903"], ["user_id", "df31d2e2-cebb-11e4-aa84-705681abff85"], ["created_at", "2015-03-20 04:45:02.677405"], ["updated_at", "2015-03-20 04:45:02.677405"], ["token", "D2FM6NfqenXFVaGJq0q-1e75M8f_lvs79B8LZIfCuGI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.681787"], ["updated_at", "2015-03-20 04:45:02.681787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df31d2e2-cebb-11e4-aa84-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df32fa5a-cebb-11e4-8b02-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df31d2e2-cebb-11e4-aa84-705681abff85"], ["organization_id", "df32fa5a-cebb-11e4-8b02-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.684939"], ["updated_at", "2015-03-20 04:45:02.684939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-70" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-70", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.689116' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "D2FM6NfqenXFVaGJq0q-1e75M8f_lvs79B8LZIfCuGI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.690553"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.691974"], ["id", "df32742c-cebb-11e4-a2e6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-70"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df31d2e2-cebb-11e4-aa84-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df31d2e2-cebb-11e4-aa84-705681abff85' LIMIT 1 [["organization_id", "df32fa5a-cebb-11e4-8b02-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "df32fa5a-cebb-11e4-8b02-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$PaXxqHusAKbp5dAdyH7Tx.dWV2SKrEzesYIK2pi8anuxqBiJ0CECi"], ["created_at", "2015-03-20 04:45:02.702938"], ["updated_at", "2015-03-20 04:45:02.702938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.704642"], ["user_id", "df363a08-cebb-11e4-b9a3-705681abff85"], ["created_at", "2015-03-20 04:45:02.705440"], ["updated_at", "2015-03-20 04:45:02.705440"], ["token", "Lhc6i89vuq3Pn2QGWJQchAQpFD80Xv21tQgciI-n9vk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.709729"], ["updated_at", "2015-03-20 04:45:02.709729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df363a08-cebb-11e4-b9a3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df373e58-cebb-11e4-ab86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df363a08-cebb-11e4-b9a3-705681abff85"], ["organization_id", "df373e58-cebb-11e4-ab86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.712844"], ["updated_at", "2015-03-20 04:45:02.712844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$5wIgA8SseahFJId9LAuv0OlheRQzsRESh1d1dQqHed0uMpqYVCLre"], ["created_at", "2015-03-20 04:45:02.722744"], ["updated_at", "2015-03-20 04:45:02.722744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.724295"], ["user_id", "df393cc6-cebb-11e4-916e-705681abff85"], ["created_at", "2015-03-20 04:45:02.725038"], ["updated_at", "2015-03-20 04:45:02.725038"], ["token", "Zbg227Wiy1OjB7aqXDzosiX0s1o7Uf8vVTYpDnAJAdI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.728326"], ["updated_at", "2015-03-20 04:45:02.728326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df393cc6-cebb-11e4-916e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df3a1452-cebb-11e4-b092-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df393cc6-cebb-11e4-916e-705681abff85"], ["organization_id", "df3a1452-cebb-11e4-b092-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.731597"], ["updated_at", "2015-03-20 04:45:02.731597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.735974' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Zbg227Wiy1OjB7aqXDzosiX0s1o7Uf8vVTYpDnAJAdI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.737365"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.738330"], ["id", "df399aae-cebb-11e4-a31c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df393cc6-cebb-11e4-916e-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.745296"], ["updated_at", "2015-03-20 04:45:02.745296"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "df3cad7a-cebb-11e4-be83-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df393cc6-cebb-11e4-916e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df3cad7a-cebb-11e4-be83-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df393cc6-cebb-11e4-916e-705681abff85"], ["admin", "t"], ["organization_id", "df3cad7a-cebb-11e4-be83-705681abff85"], ["created_at", "2015-03-20 04:45:02.748903"], ["updated_at", "2015-03-20 04:45:02.748903"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$lvhSyiyTYGRU5Vo9gWEdOeRn/dwrIvIkUTReTWtXNrHZnWxuDbm5W"], ["created_at", "2015-03-20 04:45:02.759536"], ["updated_at", "2015-03-20 04:45:02.759536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.761154"], ["user_id", "df3edc30-cebb-11e4-afb5-705681abff85"], ["created_at", "2015-03-20 04:45:02.761917"], ["updated_at", "2015-03-20 04:45:02.761917"], ["token", "bRiCcHL0ECTuazmekF5vSzHNtJ3gviWkOep2SHd313c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.765060"], ["updated_at", "2015-03-20 04:45:02.765060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df3edc30-cebb-11e4-afb5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df3fae62-cebb-11e4-bf70-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df3edc30-cebb-11e4-afb5-705681abff85"], ["organization_id", "df3fae62-cebb-11e4-bf70-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.768071"], ["updated_at", "2015-03-20 04:45:02.768071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.780615' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bRiCcHL0ECTuazmekF5vSzHNtJ3gviWkOep2SHd313c"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.782474"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.784352"], ["id", "df3f3bee-cebb-11e4-a7a6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df3edc30-cebb-11e4-afb5-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$u/J5omSsQHmiVdfsRGWC7O6EX9k6zvj/X7D.dzY4u9xAQIqz8/9fq"], ["created_at", "2015-03-20 04:45:02.797546"], ["updated_at", "2015-03-20 04:45:02.797546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.799138"], ["user_id", "df44a7be-cebb-11e4-9149-705681abff85"], ["created_at", "2015-03-20 04:45:02.799900"], ["updated_at", "2015-03-20 04:45:02.799900"], ["token", "zgBd817eeZJVLSfFg95sgTW0Ea9GPhdoJF9hOElLw0I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.803153"], ["updated_at", "2015-03-20 04:45:02.803153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df44a7be-cebb-11e4-9149-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df457fcc-cebb-11e4-8b19-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df44a7be-cebb-11e4-9149-705681abff85"], ["organization_id", "df457fcc-cebb-11e4-8b19-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.807056"], ["updated_at", "2015-03-20 04:45:02.807056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$Gb4QeJnINNxxCvcPnqPVUu6B9OcT1lPHocuUijXFAESsULrCEpr3."], ["created_at", "2015-03-20 04:45:02.816739"], ["updated_at", "2015-03-20 04:45:02.816739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.818809"], ["user_id", "df47a50e-cebb-11e4-b780-705681abff85"], ["created_at", "2015-03-20 04:45:02.819580"], ["updated_at", "2015-03-20 04:45:02.819580"], ["token", "OrdyNdAtAGKy8yVKQN7WYLBmwLsiCUrjYud3Np-oLR0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.824036"], ["updated_at", "2015-03-20 04:45:02.824036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df47a50e-cebb-11e4-b780-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df48b05c-cebb-11e4-af95-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df47a50e-cebb-11e4-b780-705681abff85"], ["organization_id", "df48b05c-cebb-11e4-af95-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.828197"], ["updated_at", "2015-03-20 04:45:02.828197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-75" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-75", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.833998' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OrdyNdAtAGKy8yVKQN7WYLBmwLsiCUrjYud3Np-oLR0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.835591"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.837025"], ["id", "df480ef4-cebb-11e4-9829-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-75"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df47a50e-cebb-11e4-b780-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df47a50e-cebb-11e4-b780-705681abff85' LIMIT 1 [["organization_id", "df48b05c-cebb-11e4-af95-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'df48b05c-cebb-11e4-af95-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 04:45:02.845499"], ["id", "df48b05c-cebb-11e4-af95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$qEi8smYBNtrSdqH/Ahm8UuQovFF2F6U6jatITFAK2vJJ7XWKQQjxe"], ["created_at", "2015-03-20 04:45:02.853516"], ["updated_at", "2015-03-20 04:45:02.853516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.855866"], ["user_id", "df4d46a8-cebb-11e4-9566-705681abff85"], ["created_at", "2015-03-20 04:45:02.856921"], ["updated_at", "2015-03-20 04:45:02.856921"], ["token", "wY5uuIe_7x-hXkRhxQpfTHQw3PJMTCVvFggh-U7nxeE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.860972"], ["updated_at", "2015-03-20 04:45:02.860972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df4d46a8-cebb-11e4-9566-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df4e5156-cebb-11e4-abd0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df4d46a8-cebb-11e4-9566-705681abff85"], ["organization_id", "df4e5156-cebb-11e4-abd0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.864667"], ["updated_at", "2015-03-20 04:45:02.864667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-76" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-76", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.869607' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wY5uuIe_7x-hXkRhxQpfTHQw3PJMTCVvFggh-U7nxeE"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.871019"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.872391"], ["id", "df4dd1a4-cebb-11e4-9f88-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-76"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df4d46a8-cebb-11e4-9566-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df4d46a8-cebb-11e4-9566-705681abff85' LIMIT 1 [["organization_id", "df4e5156-cebb-11e4-abd0-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'df4e5156-cebb-11e4-abd0-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$fOe8v6iBEf5tHbPP.VTBBe8avbCjJIRi7j3V7wPtvxKpdgihw0g2O"], ["created_at", "2015-03-20 04:45:02.889089"], ["updated_at", "2015-03-20 04:45:02.889089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.890832"], ["user_id", "df52a332-cebb-11e4-ac76-705681abff85"], ["created_at", "2015-03-20 04:45:02.891730"], ["updated_at", "2015-03-20 04:45:02.891730"], ["token", "ce-P0OlZJAUFjk4vKmXZjBnc1L_paVEwPgTiE4wfNMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.895800"], ["updated_at", "2015-03-20 04:45:02.895800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df52a332-cebb-11e4-ac76-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df53ae80-cebb-11e4-a929-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df52a332-cebb-11e4-ac76-705681abff85"], ["organization_id", "df53ae80-cebb-11e4-a929-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.899435"], ["updated_at", "2015-03-20 04:45:02.899435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$tO6/1ClJQOiW2.zKLv8yrO9RNy3QnVkF3yGDE4rWy4oS/O2.iziOS"], ["created_at", "2015-03-20 04:45:02.910932"], ["updated_at", "2015-03-20 04:45:02.910932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.912622"], ["user_id", "df55f640-cebb-11e4-803b-705681abff85"], ["created_at", "2015-03-20 04:45:02.913430"], ["updated_at", "2015-03-20 04:45:02.913430"], ["token", "s2Z_XsWwNnzUHUY6YleU8B6GauIkMdpdjZg9RJWMx9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.916756"], ["updated_at", "2015-03-20 04:45:02.916756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df55f640-cebb-11e4-803b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df56d5a6-cebb-11e4-84d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df55f640-cebb-11e4-803b-705681abff85"], ["organization_id", "df56d5a6-cebb-11e4-84d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.919986"], ["updated_at", "2015-03-20 04:45:02.919986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/df56d5a6-cebb-11e4-84d4-705681abff85" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"df56d5a6-cebb-11e4-84d4-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:02.925879' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "s2Z_XsWwNnzUHUY6YleU8B6GauIkMdpdjZg9RJWMx9Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:02.927273"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:02.928190"], ["id", "df565b94-cebb-11e4-9b8c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "df56d5a6-cebb-11e4-84d4-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df55f640-cebb-11e4-803b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df55f640-cebb-11e4-803b-705681abff85' LIMIT 1 [["organization_id", "df56d5a6-cebb-11e4-84d4-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "df56d5a6-cebb-11e4-84d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$N9yeYVPsXxvcTd6guVNhje8eoK2QPOsXdxxdd0wd69LLJSyUpykoW"], ["created_at", "2015-03-20 04:45:02.938846"], ["updated_at", "2015-03-20 04:45:02.938846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.940382"], ["user_id", "df5a3638-cebb-11e4-a656-705681abff85"], ["created_at", "2015-03-20 04:45:02.941272"], ["updated_at", "2015-03-20 04:45:02.941272"], ["token", "3Y_QZ7MQnE3lYUpurElzzSjOmc301Aemo-o4g9oxuEU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.945022"], ["updated_at", "2015-03-20 04:45:02.945022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df5a3638-cebb-11e4-a656-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df5b24da-cebb-11e4-b4be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df5a3638-cebb-11e4-a656-705681abff85"], ["organization_id", "df5b24da-cebb-11e4-b4be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.948152"], ["updated_at", "2015-03-20 04:45:02.948152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = 'df5b24da-cebb-11e4-b4be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "df5b24da-cebb-11e4-b4be-705681abff85"], ["created_at", "2015-03-20 04:45:02.951560"], ["updated_at", "2015-03-20 04:45:02.951560"], ["token", "Z9_bjtr6AKWsilWL9Es-MoURQhYMXljYgi-ULGBvvqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$MmcdZAZhCfSM8G/orOxoy.o18eo2fEehTlLCr4qPsihQtSUsT9e9."], ["created_at", "2015-03-20 04:45:02.956222"], ["updated_at", "2015-03-20 04:45:02.956222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.960244"], ["updated_at", "2015-03-20 04:45:02.960244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df5ce28e-cebb-11e4-89d4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df5d7b9a-cebb-11e4-9207-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "df5ce28e-cebb-11e4-89d4-705681abff85"], ["organization_id", "df5d7b9a-cebb-11e4-9207-705681abff85"], ["created_at", "2015-03-20 04:45:02.963539"], ["updated_at", "2015-03-20 04:45:02.963539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 21:45:02 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$O1MnrCHIG1fdmIwaWyQQI..vMGDWBKBUZ1X3neO6V/TZGx1fCBuCe"], ["created_at", "2015-03-20 04:45:02.978682"], ["updated_at", "2015-03-20 04:45:02.978682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:02.980289"], ["user_id", "df604b68-cebb-11e4-ba8a-705681abff85"], ["created_at", "2015-03-20 04:45:02.981044"], ["updated_at", "2015-03-20 04:45:02.981044"], ["token", "YFGv9KyBOp9CCYlL62v73HcmsVscQWVvjRTMsV8cSQs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.984497"], ["updated_at", "2015-03-20 04:45:02.984497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df604b68-cebb-11e4-ba8a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df612c0e-cebb-11e4-849b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df604b68-cebb-11e4-ba8a-705681abff85"], ["organization_id", "df612c0e-cebb-11e4-849b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:02.987777"], ["updated_at", "2015-03-20 04:45:02.987777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'df612c0e-cebb-11e4-849b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "df612c0e-cebb-11e4-849b-705681abff85"], ["created_at", "2015-03-20 04:45:02.991145"], ["updated_at", "2015-03-20 04:45:02.991145"], ["token", "ye6V9j2KCIFC73AD3TLZwFeDu4YCsVjIdqzdL9QvFNs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$0.jllltS7qvZ4W3bjHpAseb2pjVo5kcvPWmjLg950.cSqbpZr95Sa"], ["created_at", "2015-03-20 04:45:02.995529"], ["updated_at", "2015-03-20 04:45:02.995529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:02.999191"], ["updated_at", "2015-03-20 04:45:02.999191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df62dab8-cebb-11e4-a6f3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df637f68-cebb-11e4-8c8c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "df62dab8-cebb-11e4-a6f3-705681abff85"], ["organization_id", "df637f68-cebb-11e4-8c8c-705681abff85"], ["created_at", "2015-03-20 04:45:03.003681"], ["updated_at", "2015-03-20 04:45:03.003681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/df612c0e-cebb-11e4-849b-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"df612c0e-cebb-11e4-849b-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.008911' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YFGv9KyBOp9CCYlL62v73HcmsVscQWVvjRTMsV8cSQs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.010518"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.011610"], ["id", "df60ac3e-cebb-11e4-ab19-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "df612c0e-cebb-11e4-849b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df604b68-cebb-11e4-ba8a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df604b68-cebb-11e4-ba8a-705681abff85' LIMIT 1 [["organization_id", "df612c0e-cebb-11e4-849b-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "df612c0e-cebb-11e4-849b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('df612c0e-cebb-11e4-849b-705681abff85') Completed 200 OK in 12ms (Views: 3.5ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$pZTzbrPWJSuWMJ1xcF7gWuYeDEMEhhNACqAkSgijgz4hKp7z9T/mq"], ["created_at", "2015-03-20 04:45:03.027942"], ["updated_at", "2015-03-20 04:45:03.027942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.029561"], ["user_id", "df67d054-cebb-11e4-9f0e-705681abff85"], ["created_at", "2015-03-20 04:45:03.030313"], ["updated_at", "2015-03-20 04:45:03.030313"], ["token", "3Zt8ay4_r2D6JA233Xx4olnziU3H4AHi1_Xk_CTcqT4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.033599"], ["updated_at", "2015-03-20 04:45:03.033599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df67d054-cebb-11e4-9f0e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df68aa1a-cebb-11e4-8399-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df67d054-cebb-11e4-9f0e-705681abff85"], ["organization_id", "df68aa1a-cebb-11e4-8399-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.037032"], ["updated_at", "2015-03-20 04:45:03.037032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = 'df68aa1a-cebb-11e4-8399-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "df68aa1a-cebb-11e4-8399-705681abff85"], ["created_at", "2015-03-20 04:45:03.041426"], ["updated_at", "2015-03-20 04:45:03.041426"], ["token", "d6wwrO1CzRKwP04ujm8iuGFyofo9jJ1ec6NXfKw4_kU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$1ibRlYf/sG8JhIRj7Qqru.qCKwdy5DrxRfSBVoAzGBH/DG.WK9BIe"], ["created_at", "2015-03-20 04:45:03.046006"], ["updated_at", "2015-03-20 04:45:03.046006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.048948"], ["updated_at", "2015-03-20 04:45:03.048948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df6a8f10-cebb-11e4-8361-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df6b00e4-cebb-11e4-948e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "df6a8f10-cebb-11e4-8361-705681abff85"], ["organization_id", "df6b00e4-cebb-11e4-948e-705681abff85"], ["created_at", "2015-03-20 04:45:03.052155"], ["updated_at", "2015-03-20 04:45:03.052155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$rifEgNiWKhGAkp2RYDSsX.pe7TjGpMhppadjuTjUBXmHYT6uK6eS2"], ["created_at", "2015-03-20 04:45:03.064144"], ["updated_at", "2015-03-20 04:45:03.064144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.065851"], ["user_id", "df6d581c-cebb-11e4-989f-705681abff85"], ["created_at", "2015-03-20 04:45:03.066610"], ["updated_at", "2015-03-20 04:45:03.066610"], ["token", "-8gyT-yfArMUcAmIYU5_5q4Gs4CEKl6jSGwfhagwOYg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.070131"], ["updated_at", "2015-03-20 04:45:03.070131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df6d581c-cebb-11e4-989f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df6e3f20-cebb-11e4-9713-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df6d581c-cebb-11e4-989f-705681abff85"], ["organization_id", "df6e3f20-cebb-11e4-9713-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.073601"], ["updated_at", "2015-03-20 04:45:03.073601"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = 'df6e3f20-cebb-11e4-9713-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "df6e3f20-cebb-11e4-9713-705681abff85"], ["created_at", "2015-03-20 04:45:03.077713"], ["updated_at", "2015-03-20 04:45:03.077713"], ["token", "o5gYzbkarmK_KrZ29uBjAcZ168z-AgaFActyc4iuocQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$J7qvR3TtRLkg3iX9p8qHz.HvEg4O0J/7zuBYpLunSbakU3DXRR1VW"], ["created_at", "2015-03-20 04:45:03.082303"], ["updated_at", "2015-03-20 04:45:03.082303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.085295"], ["updated_at", "2015-03-20 04:45:03.085295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df7019c6-cebb-11e4-a888-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df708dde-cebb-11e4-886e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "df7019c6-cebb-11e4-a888-705681abff85"], ["organization_id", "df708dde-cebb-11e4-886e-705681abff85"], ["created_at", "2015-03-20 04:45:03.088487"], ["updated_at", "2015-03-20 04:45:03.088487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.092991' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-8gyT-yfArMUcAmIYU5_5q4Gs4CEKl6jSGwfhagwOYg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.094821"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.096711"], ["id", "df6dba50-cebb-11e4-a058-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df6d581c-cebb-11e4-989f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df6d581c-cebb-11e4-989f-705681abff85' LIMIT 1 [["organization_id", "df6e3f20-cebb-11e4-9713-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "df6e3f20-cebb-11e4-9713-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('df6e3f20-cebb-11e4-9713-705681abff85') Completed 200 OK in 14ms (Views: 2.4ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$5NcGEt5i4D/JiewAYTO4o.19iVWN0zxlkFEyeGWyrDyIV.KUZMS66"], ["created_at", "2015-03-20 04:45:03.112964"], ["updated_at", "2015-03-20 04:45:03.112964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.114546"], ["user_id", "df74c8d6-cebb-11e4-86bb-705681abff85"], ["created_at", "2015-03-20 04:45:03.115290"], ["updated_at", "2015-03-20 04:45:03.115290"], ["token", "0_X8-8Ac2m-KdNu7WCzjj5UxfOgnRxoUSUZBZn0cOiI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.118643"], ["updated_at", "2015-03-20 04:45:03.118643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df74c8d6-cebb-11e4-86bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df75bf8e-cebb-11e4-b567-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df74c8d6-cebb-11e4-86bb-705681abff85"], ["organization_id", "df75bf8e-cebb-11e4-b567-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.122703"], ["updated_at", "2015-03-20 04:45:03.122703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = 'df75bf8e-cebb-11e4-b567-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "df75bf8e-cebb-11e4-b567-705681abff85"], ["created_at", "2015-03-20 04:45:03.126675"], ["updated_at", "2015-03-20 04:45:03.126675"], ["token", "gPr_N38cIzb38wkzyoYlF-mgC6CN0Art4yGIQqjyGeE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$L2TBa/9/hKAVra9zKSmJleRqsKNOeUvUboE6VWDiGOTfYQB73Y5si"], ["created_at", "2015-03-20 04:45:03.138763"], ["updated_at", "2015-03-20 04:45:03.138763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.140365"], ["user_id", "df78b8ce-cebb-11e4-a671-705681abff85"], ["created_at", "2015-03-20 04:45:03.141138"], ["updated_at", "2015-03-20 04:45:03.141138"], ["token", "uhcufpVvmgtOW-dZP0H57UUHpeEY9m-jEMQK6V-L2FA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.145024"], ["updated_at", "2015-03-20 04:45:03.145024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df78b8ce-cebb-11e4-a671-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df79ab58-cebb-11e4-b1d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df78b8ce-cebb-11e4-a671-705681abff85"], ["organization_id", "df79ab58-cebb-11e4-b1d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.148370"], ["updated_at", "2015-03-20 04:45:03.148370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'df79ab58-cebb-11e4-b1d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "df79ab58-cebb-11e4-b1d3-705681abff85"], ["created_at", "2015-03-20 04:45:03.151784"], ["updated_at", "2015-03-20 04:45:03.151784"], ["token", "6wTh4qjVgc62Yfw3D9oX9Igx7LPCGG-thRVvHenKbH0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/df79ab58-cebb-11e4-b1d3-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"df79ab58-cebb-11e4-b1d3-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.156414' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uhcufpVvmgtOW-dZP0H57UUHpeEY9m-jEMQK6V-L2FA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.158073"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.159425"], ["id", "df791c92-cebb-11e4-b0ef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "df79ab58-cebb-11e4-b1d3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df78b8ce-cebb-11e4-a671-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "df79ab58-cebb-11e4-b1d3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df78b8ce-cebb-11e4-a671-705681abff85' LIMIT 1 [["organization_id", "df79ab58-cebb-11e4-b1d3-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'df79ab58-cebb-11e4-b1d3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "df79ab58-cebb-11e4-b1d3-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.169499"], ["updated_at", "2015-03-20 04:45:03.169499"], ["token", "POM7dXqsz-PiNXrT4UuZt52-XrkH_5pcSQcUWF52zPk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: cac305ef-e0cd-4d72-a872-7f045c3a6d0a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/df7d7594-cebb-11e4-83b3-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "df7d7594-cebb-11e4-83b3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [cac305ef-e0cd-4d72-a872-7f045c3a6d0a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/df7d7594-cebb-11e4-83b3-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [cac305ef-e0cd-4d72-a872-7f045c3a6d0a] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "df79ab58-cebb-11e4-b1d3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [cac305ef-e0cd-4d72-a872-7f045c3a6d0a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [cac305ef-e0cd-4d72-a872-7f045c3a6d0a] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [cac305ef-e0cd-4d72-a872-7f045c3a6d0a] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [cac305ef-e0cd-4d72-a872-7f045c3a6d0a] Date: Thu, 19 Mar 2015 21:45:03 -0700 From: from@example.com To: email@example.com Message-ID: <550ba5cf3011d_fc03fecde065be8599f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/POM7dXqsz-PiNXrT4UuZt52-XrkH_5pcSQcUWF52zPk?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [cac305ef-e0cd-4d72-a872-7f045c3a6d0a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.23ms Completed 201 Created in 43ms (Views: 0.9ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$KSiizQnWTrry/MvwXTmQ4ek7rMY31EZeTDjmKZMYK8dGB758WEm6i"], ["created_at", "2015-03-20 04:45:03.207003"], ["updated_at", "2015-03-20 04:45:03.207003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.209034"], ["user_id", "df832494-cebb-11e4-9aee-705681abff85"], ["created_at", "2015-03-20 04:45:03.209854"], ["updated_at", "2015-03-20 04:45:03.209854"], ["token", "guYgLkKogVOmC08eOHPK8WJqkmyf6eFx2n7WtBGk-00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.213407"], ["updated_at", "2015-03-20 04:45:03.213407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df832494-cebb-11e4-9aee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df8419b2-cebb-11e4-8828-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df832494-cebb-11e4-9aee-705681abff85"], ["organization_id", "df8419b2-cebb-11e4-8828-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.216617"], ["updated_at", "2015-03-20 04:45:03.216617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = 'df8419b2-cebb-11e4-8828-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "df8419b2-cebb-11e4-8828-705681abff85"], ["created_at", "2015-03-20 04:45:03.220121"], ["updated_at", "2015-03-20 04:45:03.220121"], ["token", "AoLdXHPF5T627l-zX_Eb0h9qDrNlR_4vCjcHGZz16ZQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/df8419b2-cebb-11e4-8828-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"df8419b2-cebb-11e4-8828-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.225477' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "guYgLkKogVOmC08eOHPK8WJqkmyf6eFx2n7WtBGk-00"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.226909"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.227882"], ["id", "df839960-cebb-11e4-98d5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "df8419b2-cebb-11e4-8828-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df832494-cebb-11e4-9aee-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "df8419b2-cebb-11e4-8828-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df832494-cebb-11e4-9aee-705681abff85' LIMIT 1 [["organization_id", "df8419b2-cebb-11e4-8828-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'df8419b2-cebb-11e4-8828-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "df8419b2-cebb-11e4-8828-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.235121"], ["updated_at", "2015-03-20 04:45:03.235121"], ["token", "xHiZzxYul1SVPH4TEdv_RXCSHL_Hj5xQzYv-qpVrRUc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8d51cd85-8627-49d4-9f4f-09f470615044) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/df877e54-cebb-11e4-8de0-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "df877e54-cebb-11e4-8de0-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8d51cd85-8627-49d4-9f4f-09f470615044] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/df877e54-cebb-11e4-8de0-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [8d51cd85-8627-49d4-9f4f-09f470615044] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "df8419b2-cebb-11e4-8828-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [8d51cd85-8627-49d4-9f4f-09f470615044] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [8d51cd85-8627-49d4-9f4f-09f470615044] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [8d51cd85-8627-49d4-9f4f-09f470615044] Sent mail to email@example.com (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [8d51cd85-8627-49d4-9f4f-09f470615044] Date: Thu, 19 Mar 2015 21:45:03 -0700 From: from@example.com To: email@example.com Message-ID: <550ba5cf3b7b6_fc03fecde065be860063@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/xHiZzxYul1SVPH4TEdv_RXCSHL_Hj5xQzYv-qpVrRUc?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [8d51cd85-8627-49d4-9f4f-09f470615044] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.13ms Completed 201 Created in 21ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$.y7D4ixdICGXceVpbZpbs.G4mx.S69Ge9c4WGkhxjN6JRwulPcYtm"], ["created_at", "2015-03-20 04:45:03.251688"], ["updated_at", "2015-03-20 04:45:03.251688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.253306"], ["user_id", "df89f2ec-cebb-11e4-9658-705681abff85"], ["created_at", "2015-03-20 04:45:03.254108"], ["updated_at", "2015-03-20 04:45:03.254108"], ["token", "SQQ6CqBcgPnZwDb2hGyYZqzVB2M-1hcfNI9qSlv9-Fw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.257511"], ["updated_at", "2015-03-20 04:45:03.257511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df89f2ec-cebb-11e4-9658-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df8ad45a-cebb-11e4-ae8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df89f2ec-cebb-11e4-9658-705681abff85"], ["organization_id", "df8ad45a-cebb-11e4-ae8f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.260668"], ["updated_at", "2015-03-20 04:45:03.260668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'df8ad45a-cebb-11e4-ae8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "df8ad45a-cebb-11e4-ae8f-705681abff85"], ["created_at", "2015-03-20 04:45:03.264085"], ["updated_at", "2015-03-20 04:45:03.264085"], ["token", "-L9ce74cxQUUAai27ZgfC_ATQ6gjh5L8sTZj2foIfss"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/df8ad45a-cebb-11e4-ae8f-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"df8ad45a-cebb-11e4-ae8f-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.269180' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SQQ6CqBcgPnZwDb2hGyYZqzVB2M-1hcfNI9qSlv9-Fw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.270622"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.271643"], ["id", "df8a5714-cebb-11e4-a745-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "df8ad45a-cebb-11e4-ae8f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df89f2ec-cebb-11e4-9658-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "df8ad45a-cebb-11e4-ae8f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df89f2ec-cebb-11e4-9658-705681abff85' LIMIT 1 [["organization_id", "df8ad45a-cebb-11e4-ae8f-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'df8ad45a-cebb-11e4-ae8f-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$OVGVf5j0gPPlzBA0gzw1OO8C2.PaaODsF8djwvlcIPlqC9YX3E/Wu"], ["created_at", "2015-03-20 04:45:03.287841"], ["updated_at", "2015-03-20 04:45:03.287841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.289834"], ["user_id", "df8f866c-cebb-11e4-8318-705681abff85"], ["created_at", "2015-03-20 04:45:03.290623"], ["updated_at", "2015-03-20 04:45:03.290623"], ["token", "PyDFdYg4WdctEbijRpc6WcqKZGXJ_Kpn0UFijvB_vCE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.294835"], ["updated_at", "2015-03-20 04:45:03.294835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df8f866c-cebb-11e4-8318-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df9089e0-cebb-11e4-aa6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df8f866c-cebb-11e4-8318-705681abff85"], ["organization_id", "df9089e0-cebb-11e4-aa6a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.298210"], ["updated_at", "2015-03-20 04:45:03.298210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'df9089e0-cebb-11e4-aa6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "df9089e0-cebb-11e4-aa6a-705681abff85"], ["created_at", "2015-03-20 04:45:03.301789"], ["updated_at", "2015-03-20 04:45:03.301789"], ["token", "nLzGjhi8rUB9aXzUlf0OY3Na2jNl1t76w6q8S9RaDfs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$EOVD9caQrNorAQuDTpY8vOX8WPPPSb8HUzcbUwStCICHa90RLR4w6"], ["created_at", "2015-03-20 04:45:03.313180"], ["updated_at", "2015-03-20 04:45:03.313180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.315205"], ["user_id", "df9364bc-cebb-11e4-b7de-705681abff85"], ["created_at", "2015-03-20 04:45:03.315971"], ["updated_at", "2015-03-20 04:45:03.315971"], ["token", "TAoI5wWa8dLuIBQqcTPSKok-ll163wjdNaym3U_wwqU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.319287"], ["updated_at", "2015-03-20 04:45:03.319287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df9364bc-cebb-11e4-b7de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df9442c4-cebb-11e4-a88c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df9364bc-cebb-11e4-b7de-705681abff85"], ["organization_id", "df9442c4-cebb-11e4-a88c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.322539"], ["updated_at", "2015-03-20 04:45:03.322539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'df9442c4-cebb-11e4-a88c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "df9442c4-cebb-11e4-a88c-705681abff85"], ["created_at", "2015-03-20 04:45:03.325796"], ["updated_at", "2015-03-20 04:45:03.325796"], ["token", "7H7Uf71A4V75Za8OQ8uPfFyURCVrXsxl8zr9WyXB7-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/df954c28-cebb-11e4-b508-705681abff85" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"df954c28-cebb-11e4-b508-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.330970' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TAoI5wWa8dLuIBQqcTPSKok-ll163wjdNaym3U_wwqU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.332416"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.333390"], ["id", "df93c8bc-cebb-11e4-9f13-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "df954c28-cebb-11e4-b508-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df9364bc-cebb-11e4-b7de-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "df9442c4-cebb-11e4-a88c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df9364bc-cebb-11e4-b7de-705681abff85' LIMIT 1 [["organization_id", "df9442c4-cebb-11e4-a88c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "df954c28-cebb-11e4-b508-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$8sUsXhKtQabZKbRxckr.7uzEL1Hsyidht1JAYJ08MrpISRh4vc/3a"], ["created_at", "2015-03-20 04:45:03.344798"], ["updated_at", "2015-03-20 04:45:03.344798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.346450"], ["user_id", "df9828ee-cebb-11e4-bc0c-705681abff85"], ["created_at", "2015-03-20 04:45:03.347211"], ["updated_at", "2015-03-20 04:45:03.347211"], ["token", "btqjPycQcE8AskWhMb5S-XNd5DnO1gIwgzHxQR_xgBA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.350544"], ["updated_at", "2015-03-20 04:45:03.350544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df9828ee-cebb-11e4-bc0c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df990746-cebb-11e4-92fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df9828ee-cebb-11e4-bc0c-705681abff85"], ["organization_id", "df990746-cebb-11e4-92fe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.353802"], ["updated_at", "2015-03-20 04:45:03.353802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'df990746-cebb-11e4-92fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "df990746-cebb-11e4-92fe-705681abff85"], ["created_at", "2015-03-20 04:45:03.357132"], ["updated_at", "2015-03-20 04:45:03.357132"], ["token", "OnzEu2uBKRyAEGLlWqpgeCjqqKhWMKDWNjMPVVmkSHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$WVlLntDSUwUUn0NV9CpUSeInTk1ZJUWOrwqYhshl1/7YTWflSlEqW"], ["created_at", "2015-03-20 04:45:03.368177"], ["updated_at", "2015-03-20 04:45:03.368177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.369804"], ["user_id", "df9bba4a-cebb-11e4-8182-705681abff85"], ["created_at", "2015-03-20 04:45:03.370577"], ["updated_at", "2015-03-20 04:45:03.370577"], ["token", "os5P9dgxeA8M6_gznR461ihttTJevwGWEEluwg6cgCU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.374003"], ["updated_at", "2015-03-20 04:45:03.374003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df9bba4a-cebb-11e4-8182-705681abff85' AND "clubhouse_memberships"."organization_id" = 'df9ca0a4-cebb-11e4-a14d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df9bba4a-cebb-11e4-8182-705681abff85"], ["organization_id", "df9ca0a4-cebb-11e4-a14d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.377567"], ["updated_at", "2015-03-20 04:45:03.377567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'df9ca0a4-cebb-11e4-a14d-705681abff85') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "df9ca0a4-cebb-11e4-a14d-705681abff85"], ["created_at", "2015-03-20 04:45:03.380944"], ["updated_at", "2015-03-20 04:45:03.380944"], ["token", "56BSOkZgV5-kOiVHEmF9CxKuBRu8hjYnnPg-vTqC4UQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/df9daeea-cebb-11e4-a755-705681abff85" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"df9daeea-cebb-11e4-a755-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.394230' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "os5P9dgxeA8M6_gznR461ihttTJevwGWEEluwg6cgCU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.396559"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.398380"], ["id", "df9c1d6e-cebb-11e4-9cff-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "df9daeea-cebb-11e4-a755-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "df9bba4a-cebb-11e4-8182-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "df9ca0a4-cebb-11e4-a14d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df9bba4a-cebb-11e4-8182-705681abff85' LIMIT 1 [["organization_id", "df9ca0a4-cebb-11e4-a14d-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."id" != 'df9daeea-cebb-11e4-a755-705681abff85' AND "clubhouse_invitations"."organization_id" = 'df9ca0a4-cebb-11e4-a14d-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 04:45:03.409367"], ["id", "df9daeea-cebb-11e4-a755-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 1.2ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$UQyV1Q3ItsxxR.49cEUH6uv48dZKbW7Lwm6Dr8356VOO0b7fI0JIW"], ["created_at", "2015-03-20 04:45:03.422658"], ["updated_at", "2015-03-20 04:45:03.422658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.425261"], ["user_id", "dfa41988-cebb-11e4-a3cf-705681abff85"], ["created_at", "2015-03-20 04:45:03.426140"], ["updated_at", "2015-03-20 04:45:03.426140"], ["token", "pPpyy1qcAa2LAhjGfvjHCo6ng8M2JsAd_ZcDK8IxUF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.429713"], ["updated_at", "2015-03-20 04:45:03.429713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dfa41988-cebb-11e4-a3cf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dfa51f9a-cebb-11e4-aae6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dfa41988-cebb-11e4-a3cf-705681abff85"], ["organization_id", "dfa51f9a-cebb-11e4-aae6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.433424"], ["updated_at", "2015-03-20 04:45:03.433424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = 'dfa51f9a-cebb-11e4-aae6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "dfa51f9a-cebb-11e4-aae6-705681abff85"], ["created_at", "2015-03-20 04:45:03.436912"], ["updated_at", "2015-03-20 04:45:03.436912"], ["token", "2p7IlVpTXhAoXKqXkWcTEb779IBNSBfL-t6UWLu4sCg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$B6zm2DJl3fgyx9y/VJEvt.zRfgoY33FpLQJ0k6xcQk8DJ4ZyECFLi"], ["created_at", "2015-03-20 04:45:03.449037"], ["updated_at", "2015-03-20 04:45:03.449037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.450728"], ["user_id", "dfa8140c-cebb-11e4-9e7b-705681abff85"], ["created_at", "2015-03-20 04:45:03.451695"], ["updated_at", "2015-03-20 04:45:03.451695"], ["token", "MHoyJg_l7MtPHgrV7nHYdHZ1_oF6GKZK2_OVLAYBA_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.455599"], ["updated_at", "2015-03-20 04:45:03.455599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dfa8140c-cebb-11e4-9e7b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dfa90ed4-cebb-11e4-a37e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dfa8140c-cebb-11e4-9e7b-705681abff85"], ["organization_id", "dfa90ed4-cebb-11e4-a37e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.458971"], ["updated_at", "2015-03-20 04:45:03.458971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'dfa90ed4-cebb-11e4-a37e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "dfa90ed4-cebb-11e4-a37e-705681abff85"], ["created_at", "2015-03-20 04:45:03.463375"], ["updated_at", "2015-03-20 04:45:03.463375"], ["token", "5bTG8SHTEUi7DzV3ZQP7BnnZJSe_vdSEA60eANN50Ww"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/dfaa4538-cebb-11e4-bea8-705681abff85" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"dfaa4538-cebb-11e4-bea8-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.468055' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MHoyJg_l7MtPHgrV7nHYdHZ1_oF6GKZK2_OVLAYBA_8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.469533"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.470509"], ["id", "dfa887fc-cebb-11e4-b620-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "dfaa4538-cebb-11e4-bea8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dfa8140c-cebb-11e4-9e7b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dfa90ed4-cebb-11e4-a37e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dfa8140c-cebb-11e4-9e7b-705681abff85' LIMIT 1 [["organization_id", "dfa90ed4-cebb-11e4-a37e-705681abff85"]] Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$XLV4SYMl0TxuUa9bIvDJzOMbFCmxuSq5CvqlIPE2aBSA.gPh0uKSO"], ["created_at", "2015-03-20 04:45:03.482122"], ["updated_at", "2015-03-20 04:45:03.482122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.483751"], ["user_id", "dfad1ee8-cebb-11e4-b786-705681abff85"], ["created_at", "2015-03-20 04:45:03.484528"], ["updated_at", "2015-03-20 04:45:03.484528"], ["token", "nWZ7uOq17MhP1qN-TnMigKYsjxTxBTgUZ9-hW_DZrBE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.487984"], ["updated_at", "2015-03-20 04:45:03.487984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dfad1ee8-cebb-11e4-b786-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dfae0074-cebb-11e4-a863-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dfad1ee8-cebb-11e4-b786-705681abff85"], ["organization_id", "dfae0074-cebb-11e4-a863-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.491261"], ["updated_at", "2015-03-20 04:45:03.491261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = 'dfae0074-cebb-11e4-a863-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "dfae0074-cebb-11e4-a863-705681abff85"], ["created_at", "2015-03-20 04:45:03.495059"], ["updated_at", "2015-03-20 04:45:03.495059"], ["token", "cjmBvGJiN2nvERt-U0ggpn2_ofSQqrnMgrKGMrG7oXc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$/qx2sNnkdmasKkkYYpKIbeODT0PWfpGFwAAoNV5hr.UArXFBd9Biq"], ["created_at", "2015-03-20 04:45:03.505536"], ["updated_at", "2015-03-20 04:45:03.505536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.507171"], ["user_id", "dfb0afea-cebb-11e4-a59f-705681abff85"], ["created_at", "2015-03-20 04:45:03.507901"], ["updated_at", "2015-03-20 04:45:03.507901"], ["token", "oPpmBZFgM3zN0roK4LcQc4o7tEw9Xd-0v5pjWYeUR2I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.511410"], ["updated_at", "2015-03-20 04:45:03.511410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dfb0afea-cebb-11e4-a59f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dfb1920c-cebb-11e4-afc1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dfb0afea-cebb-11e4-a59f-705681abff85"], ["organization_id", "dfb1920c-cebb-11e4-afc1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.515274"], ["updated_at", "2015-03-20 04:45:03.515274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = 'dfb1920c-cebb-11e4-afc1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "dfb1920c-cebb-11e4-afc1-705681abff85"], ["created_at", "2015-03-20 04:45:03.518787"], ["updated_at", "2015-03-20 04:45:03.518787"], ["token", "HEM4U46BgNlygLTk96Ixd-vECiXbGzkN-N1APFJMDxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.524026' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oPpmBZFgM3zN0roK4LcQc4o7tEw9Xd-0v5pjWYeUR2I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.525548"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.526588"], ["id", "dfb112d2-cebb-11e4-916f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dfb0afea-cebb-11e4-a59f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dfb1920c-cebb-11e4-afc1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dfb0afea-cebb-11e4-a59f-705681abff85' LIMIT 1 [["organization_id", "dfb1920c-cebb-11e4-afc1-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'dfb1920c-cebb-11e4-afc1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "dfb1920c-cebb-11e4-afc1-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.534016"], ["updated_at", "2015-03-20 04:45:03.534016"], ["token", "6hLxqjW_y_Ry7RXxSSYt1sXAn-1Uwz32AnXk51r0udU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 11aacec6-d514-4bc5-8776-258fbcd88a7e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/dfb50c16-cebb-11e4-bc0c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "dfb50c16-cebb-11e4-bc0c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [11aacec6-d514-4bc5-8776-258fbcd88a7e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/dfb50c16-cebb-11e4-bc0c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [11aacec6-d514-4bc5-8776-258fbcd88a7e] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dfb1920c-cebb-11e4-afc1-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [11aacec6-d514-4bc5-8776-258fbcd88a7e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [11aacec6-d514-4bc5-8776-258fbcd88a7e] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [11aacec6-d514-4bc5-8776-258fbcd88a7e] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [11aacec6-d514-4bc5-8776-258fbcd88a7e] Date: Thu, 19 Mar 2015 21:45:03 -0700 From: from@example.com To: email@example.com Message-ID: <550ba5cf84045_fc03fecde065be860193@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/6hLxqjW_y_Ry7RXxSSYt1sXAn-1Uwz32AnXk51r0udU?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [11aacec6-d514-4bc5-8776-258fbcd88a7e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.11ms Completed 201 Created in 19ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$RVEJyDIH12vBxOd1bOSMeOFoGJfCh6tYnyLsJ8axC2ZCqMiQbXKs."], ["created_at", "2015-03-20 04:45:03.548797"], ["updated_at", "2015-03-20 04:45:03.548797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.550301"], ["user_id", "dfb74828-cebb-11e4-ab4a-705681abff85"], ["created_at", "2015-03-20 04:45:03.551051"], ["updated_at", "2015-03-20 04:45:03.551051"], ["token", "SFFKDDwOLFN4hBebmAbjzAfynxzKnLWqf6oe9Ru7zjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.554261"], ["updated_at", "2015-03-20 04:45:03.554261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dfb74828-cebb-11e4-ab4a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dfb81adc-cebb-11e4-a47d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dfb74828-cebb-11e4-ab4a-705681abff85"], ["organization_id", "dfb81adc-cebb-11e4-a47d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.557281"], ["updated_at", "2015-03-20 04:45:03.557281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'dfb81adc-cebb-11e4-a47d-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "dfb81adc-cebb-11e4-a47d-705681abff85"], ["created_at", "2015-03-20 04:45:03.560561"], ["updated_at", "2015-03-20 04:45:03.560561"], ["token", "gLUyNEY-a8yyVt87eJ-fUqDwpSdFwa4tZwVCUFV-YMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.565920' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SFFKDDwOLFN4hBebmAbjzAfynxzKnLWqf6oe9Ru7zjE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.567727"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.569562"], ["id", "dfb7a458-cebb-11e4-8c99-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dfb74828-cebb-11e4-ab4a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dfb81adc-cebb-11e4-a47d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dfb74828-cebb-11e4-ab4a-705681abff85' LIMIT 1 [["organization_id", "dfb81adc-cebb-11e4-a47d-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'dfb81adc-cebb-11e4-a47d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "dfb81adc-cebb-11e4-a47d-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.578067"], ["updated_at", "2015-03-20 04:45:03.578067"], ["token", "h1PwfmFt7F2SSHw2J31-Zue5yU6WKRlN23P20pca54Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 283d282a-cc68-4e3c-871f-86e77864deb6) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/dfbbc59c-cebb-11e4-bbaa-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "dfbbc59c-cebb-11e4-bbaa-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [283d282a-cc68-4e3c-871f-86e77864deb6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/dfbbc59c-cebb-11e4-bbaa-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [283d282a-cc68-4e3c-871f-86e77864deb6] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dfb81adc-cebb-11e4-a47d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [283d282a-cc68-4e3c-871f-86e77864deb6] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [283d282a-cc68-4e3c-871f-86e77864deb6] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [283d282a-cc68-4e3c-871f-86e77864deb6] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [283d282a-cc68-4e3c-871f-86e77864deb6] Date: Thu, 19 Mar 2015 21:45:03 -0700 From: from@example.com To: email@example.com Message-ID: <550ba5cf8edd2_fc03fecde065be860290@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/h1PwfmFt7F2SSHw2J31-Zue5yU6WKRlN23P20pca54Q?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [283d282a-cc68-4e3c-871f-86e77864deb6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.78ms Completed 201 Created in 21ms (Views: 0.7ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$BzRUCBumMH4Hj8YtULwS..1qj9IDqRrwHr/M.ziwQRwfQ9Vj8a3Gq"], ["created_at", "2015-03-20 04:45:03.595325"], ["updated_at", "2015-03-20 04:45:03.595325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:45:03.597101"], ["user_id", "dfbe67de-cebb-11e4-bbf3-705681abff85"], ["created_at", "2015-03-20 04:45:03.597879"], ["updated_at", "2015-03-20 04:45:03.597879"], ["token", "Nneyykk14aIo-29cBcts3CKIZuiZ1AWzc5C1qwIhSho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:45:03.601274"], ["updated_at", "2015-03-20 04:45:03.601274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dfbe67de-cebb-11e4-bbf3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'dfbf4820-cebb-11e4-895b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dfbe67de-cebb-11e4-bbf3-705681abff85"], ["organization_id", "dfbf4820-cebb-11e4-895b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:45:03.604549"], ["updated_at", "2015-03-20 04:45:03.604549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'dfbf4820-cebb-11e4-895b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "dfbf4820-cebb-11e4-895b-705681abff85"], ["created_at", "2015-03-20 04:45:03.607850"], ["updated_at", "2015-03-20 04:45:03.607850"], ["token", "CyKrsdQuOIvalQqLzKHEcKMnYLSrglmkT_spBTQ_W9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:45:03 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:45:03.612799' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Nneyykk14aIo-29cBcts3CKIZuiZ1AWzc5C1qwIhSho"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:45:03.614172"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:45:03.615072"], ["id", "dfbecad0-cebb-11e4-9a33-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dfbe67de-cebb-11e4-bbf3-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dfbf4820-cebb-11e4-895b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dfbe67de-cebb-11e4-bbf3-705681abff85' LIMIT 1 [["organization_id", "dfbf4820-cebb-11e4-895b-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'dfbf4820-cebb-11e4-895b-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$gD6qzwjIkJ6ImDbYLktB/.Qg.t3WXQGsg9YS4aWVd.hLmNxQjzXsu"], ["created_at", "2015-03-20 04:54:44.809598"], ["updated_at", "2015-03-20 04:54:44.809598"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (12.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:44.842821"], ["user_id", "3a305082-cebd-11e4-a45f-705681abff85"], ["created_at", "2015-03-20 04:54:44.848433"], ["updated_at", "2015-03-20 04:54:44.848433"], ["token", "rK8f1RhEJbS80nVVem8Q5NHaS6wFdsW4x-jirwPPUY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:44.869218"], ["updated_at", "2015-03-20 04:54:44.869218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a305082-cebd-11e4-a45f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a35c85a-cebd-11e4-b436-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a305082-cebd-11e4-a45f-705681abff85"], ["organization_id", "3a35c85a-cebd-11e4-b436-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:44.884351"], ["updated_at", "2015-03-20 04:54:44.884351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '3a35c85a-cebd-11e4-b436-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "3a35c85a-cebd-11e4-b436-705681abff85"], ["created_at", "2015-03-20 04:54:44.896501"], ["updated_at", "2015-03-20 04:54:44.896501"], ["token", "aFys7mbBDELMVW0Sju952FrUvXmq4T36BqiEgnxS_P4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 21:54:44 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$r7sD31wwHBJokx1.XyMA.On4PuI0Zf8cQCpgAxK0VWEeQ4YLbyKVK"], ["created_at", "2015-03-20 04:54:44.934078"], ["updated_at", "2015-03-20 04:54:44.934078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:44.935786"], ["user_id", "3a3fa60e-cebd-11e4-a0d7-705681abff85"], ["created_at", "2015-03-20 04:54:44.936589"], ["updated_at", "2015-03-20 04:54:44.936589"], ["token", "okUv7domzreugcpM_TZVdQsw92y58iFtPa1GdmbsJE4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:44.940183"], ["updated_at", "2015-03-20 04:54:44.940183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a3fa60e-cebd-11e4-a0d7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a40941a-cebd-11e4-afcd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a3fa60e-cebd-11e4-a0d7-705681abff85"], ["organization_id", "3a40941a-cebd-11e4-afcd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:44.943811"], ["updated_at", "2015-03-20 04:54:44.943811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '3a40941a-cebd-11e4-afcd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "3a40941a-cebd-11e4-afcd-705681abff85"], ["created_at", "2015-03-20 04:54:44.947427"], ["updated_at", "2015-03-20 04:54:44.947427"], ["token", "OCVBsy3jk1eBCHTXkadmoCO-WENOyZCIrBt--jzoU3I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3a40941a-cebd-11e4-afcd-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:54:44 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"3a40941a-cebd-11e4-afcd-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:44.954073' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "okUv7domzreugcpM_TZVdQsw92y58iFtPa1GdmbsJE4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:44.963087"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:44.964512"], ["id", "3a400b6c-cebd-11e4-9f75-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3a40941a-cebd-11e4-afcd-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a3fa60e-cebd-11e4-a0d7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a40941a-cebd-11e4-afcd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a3fa60e-cebd-11e4-a0d7-705681abff85' LIMIT 1 [["organization_id", "3a40941a-cebd-11e4-afcd-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '3a40941a-cebd-11e4-afcd-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 47ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$dcaK9nfMh/ZT7Q9sEJRHYewurMRuY7oQ.Y8eLHNH/42Za0AsbIy7m"], ["created_at", "2015-03-20 04:54:45.005998"], ["updated_at", "2015-03-20 04:54:45.005998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.007633"], ["user_id", "3a4a9de8-cebd-11e4-8bd1-705681abff85"], ["created_at", "2015-03-20 04:54:45.008458"], ["updated_at", "2015-03-20 04:54:45.008458"], ["token", "aWVFHZgy9_qp6HxBNx1b7tUN_MeVRysrkODRWzRO-Ao"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.012365"], ["updated_at", "2015-03-20 04:54:45.012365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a4a9de8-cebd-11e4-8bd1-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a4b94d2-cebd-11e4-8eb8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a4a9de8-cebd-11e4-8bd1-705681abff85"], ["organization_id", "3a4b94d2-cebd-11e4-8eb8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.015658"], ["updated_at", "2015-03-20 04:54:45.015658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '3a4b94d2-cebd-11e4-8eb8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "3a4b94d2-cebd-11e4-8eb8-705681abff85"], ["created_at", "2015-03-20 04:54:45.019140"], ["updated_at", "2015-03-20 04:54:45.019140"], ["token", "SKBrNSXaa3untgMe4oTLho5lxjwN6tJdMVptcj1gAzs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3a4b94d2-cebd-11e4-8eb8-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"3a4b94d2-cebd-11e4-8eb8-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.024140' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aWVFHZgy9_qp6HxBNx1b7tUN_MeVRysrkODRWzRO-Ao"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.025675"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.026772"], ["id", "3a4b08d2-cebd-11e4-aefa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3a4b94d2-cebd-11e4-8eb8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a4a9de8-cebd-11e4-8bd1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a4b94d2-cebd-11e4-8eb8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a4a9de8-cebd-11e4-8bd1-705681abff85' LIMIT 1 [["organization_id", "3a4b94d2-cebd-11e4-8eb8-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3a4b94d2-cebd-11e4-8eb8-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3a4b94d2-cebd-11e4-8eb8-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.035204"], ["updated_at", "2015-03-20 04:54:45.035204"], ["token", "zQaWiQrbzbfeQ2WB9rK8bSVONLW0fYWtX5Pf_XU36gk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fb8c647e-f13f-4eea-b18b-2a9d7fa51940) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a4f2b2e-cebd-11e4-af52-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3a4f2b2e-cebd-11e4-af52-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [fb8c647e-f13f-4eea-b18b-2a9d7fa51940] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a4f2b2e-cebd-11e4-af52-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [fb8c647e-f13f-4eea-b18b-2a9d7fa51940] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a4b94d2-cebd-11e4-8eb8-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [fb8c647e-f13f-4eea-b18b-2a9d7fa51940] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [fb8c647e-f13f-4eea-b18b-2a9d7fa51940] Clubhouse::Mailer#invitation: processed outbound mail in 239.4ms [ActiveJob] [ActionMailer::DeliveryJob] [fb8c647e-f13f-4eea-b18b-2a9d7fa51940] Sent mail to email@example.com (8.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [fb8c647e-f13f-4eea-b18b-2a9d7fa51940] Date: Thu, 19 Mar 2015 21:54:45 -0700 From: from@example.com To: email@example.com Message-ID: <550ba8154ac34_fda3fc544865be81647c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/zQaWiQrbzbfeQ2WB9rK8bSVONLW0fYWtX5Pf_XU36gk?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [fb8c647e-f13f-4eea-b18b-2a9d7fa51940] Performed ActionMailer::DeliveryJob from Inline(mailers) in 248.43ms Completed 201 Created in 289ms (Views: 3.0ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$5ynmwMOHBAxkffr2vKBjS.lxjxv1pMiNLAuOgQYmcDeT.jnnnQlSa"], ["created_at", "2015-03-20 04:54:45.321518"], ["updated_at", "2015-03-20 04:54:45.321518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.323157"], ["user_id", "3a7ac306-cebd-11e4-a541-705681abff85"], ["created_at", "2015-03-20 04:54:45.323948"], ["updated_at", "2015-03-20 04:54:45.323948"], ["token", "gI4yQbh59CjoLxd0V6ZHHaHiES1iR_thh6gTUGrGpqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.327358"], ["updated_at", "2015-03-20 04:54:45.327358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a7ac306-cebd-11e4-a541-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a7ba4d8-cebd-11e4-b9fc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a7ac306-cebd-11e4-a541-705681abff85"], ["organization_id", "3a7ba4d8-cebd-11e4-b9fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.330833"], ["updated_at", "2015-03-20 04:54:45.330833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '3a7ba4d8-cebd-11e4-b9fc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "3a7ba4d8-cebd-11e4-b9fc-705681abff85"], ["created_at", "2015-03-20 04:54:45.335093"], ["updated_at", "2015-03-20 04:54:45.335093"], ["token", "T3w0OVt4IB9Er-a-n9ny6iMxRqhp7GIMPt3lKUWi3HI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3a7ba4d8-cebd-11e4-b9fc-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"3a7ba4d8-cebd-11e4-b9fc-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.340408' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gI4yQbh59CjoLxd0V6ZHHaHiES1iR_thh6gTUGrGpqk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.342522"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.344610"], ["id", "3a7b25da-cebd-11e4-911a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3a7ba4d8-cebd-11e4-b9fc-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a7ac306-cebd-11e4-a541-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a7ba4d8-cebd-11e4-b9fc-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a7ac306-cebd-11e4-a541-705681abff85' LIMIT 1 [["organization_id", "3a7ba4d8-cebd-11e4-b9fc-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3a7ba4d8-cebd-11e4-b9fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3a7ba4d8-cebd-11e4-b9fc-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.355881"], ["updated_at", "2015-03-20 04:54:45.355881"], ["token", "Tc0AZ_8ObfjFZAELL3TDUamEVEKLUbq5vzFce3mUzSU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a999f9b8-4a3d-4d80-abae-b7ab1465fd44) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a8004e2-cebd-11e4-8936-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3a8004e2-cebd-11e4-8936-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a999f9b8-4a3d-4d80-abae-b7ab1465fd44] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a8004e2-cebd-11e4-8936-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [a999f9b8-4a3d-4d80-abae-b7ab1465fd44] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a7ba4d8-cebd-11e4-b9fc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a999f9b8-4a3d-4d80-abae-b7ab1465fd44] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [a999f9b8-4a3d-4d80-abae-b7ab1465fd44] Clubhouse::Mailer#invitation: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [a999f9b8-4a3d-4d80-abae-b7ab1465fd44] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [a999f9b8-4a3d-4d80-abae-b7ab1465fd44] Date: Thu, 19 Mar 2015 21:54:45 -0700 From: from@example.com To: email@example.com Message-ID: <550ba81558de5_fda3fc544865be816592@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Tc0AZ_8ObfjFZAELL3TDUamEVEKLUbq5vzFce3mUzSU?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a999f9b8-4a3d-4d80-abae-b7ab1465fd44] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.45ms Completed 201 Created in 26ms (Views: 0.8ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$I7sittCIFcak9aVEijPfMunnQUtg0rvt8pefc6Z4w9qI.j23HRMy6"], ["created_at", "2015-03-20 04:54:45.374685"], ["updated_at", "2015-03-20 04:54:45.374685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.376324"], ["user_id", "3a82dfaa-cebd-11e4-9e9b-705681abff85"], ["created_at", "2015-03-20 04:54:45.382431"], ["updated_at", "2015-03-20 04:54:45.382431"], ["token", "T-_AQaWYalWLm5g4w0wgPUW2JctWgMDZ0Ok_sw0hmDA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.389804"], ["updated_at", "2015-03-20 04:54:45.389804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a82dfaa-cebd-11e4-9e9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a85433a-cebd-11e4-8786-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a82dfaa-cebd-11e4-9e9b-705681abff85"], ["organization_id", "3a85433a-cebd-11e4-8786-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.396532"], ["updated_at", "2015-03-20 04:54:45.396532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '3a85433a-cebd-11e4-8786-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "3a85433a-cebd-11e4-8786-705681abff85"], ["created_at", "2015-03-20 04:54:45.402492"], ["updated_at", "2015-03-20 04:54:45.402492"], ["token", "HzyELVE3ITFZxvhfj5p9sdkJnqVmGGj5gr-sbGLfg-o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/3a8739a6-cebd-11e4-b5b9-705681abff85" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"3a8739a6-cebd-11e4-b5b9-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.410765' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "T-_AQaWYalWLm5g4w0wgPUW2JctWgMDZ0Ok_sw0hmDA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.413417"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.415012"], ["id", "3a8458ee-cebd-11e4-9e99-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3a8739a6-cebd-11e4-b5b9-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a82dfaa-cebd-11e4-9e9b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a85433a-cebd-11e4-8786-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a82dfaa-cebd-11e4-9e9b-705681abff85' LIMIT 1 [["organization_id", "3a85433a-cebd-11e4-8786-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."id" != '3a8739a6-cebd-11e4-b5b9-705681abff85' AND "clubhouse_invitations"."organization_id" = '3a85433a-cebd-11e4-8786-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 04:54:45.423142"], ["id", "3a8739a6-cebd-11e4-b5b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$bQa3NDLDxpFwtl94iRtiCe/FtXKT5.2xkH08DEQFld94hMjPUkgXu"], ["created_at", "2015-03-20 04:54:45.431250"], ["updated_at", "2015-03-20 04:54:45.431250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.432804"], ["user_id", "3a8b7fde-cebd-11e4-b921-705681abff85"], ["created_at", "2015-03-20 04:54:45.433558"], ["updated_at", "2015-03-20 04:54:45.433558"], ["token", "90VkKTAo-XxUOLKpcB0irb7WPz7iVyJzWU41b0K3wdk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.436769"], ["updated_at", "2015-03-20 04:54:45.436769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a8b7fde-cebd-11e4-b921-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a8c54f4-cebd-11e4-adde-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a8b7fde-cebd-11e4-b921-705681abff85"], ["organization_id", "3a8c54f4-cebd-11e4-adde-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.439804"], ["updated_at", "2015-03-20 04:54:45.439804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '3a8c54f4-cebd-11e4-adde-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "3a8c54f4-cebd-11e4-adde-705681abff85"], ["created_at", "2015-03-20 04:54:45.443128"], ["updated_at", "2015-03-20 04:54:45.443128"], ["token", "2Y6hkstXQdAe-0_rZgpgqb-Hz3oK0Nd6jSugJiknFmc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$07jlQ1YO9ZobqMJE/F1Aqeu26XJpqBj0A1/t.R9uVdhL85RaVLQOq"], ["created_at", "2015-03-20 04:54:45.453231"], ["updated_at", "2015-03-20 04:54:45.453231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.454790"], ["user_id", "3a8edb3e-cebd-11e4-a741-705681abff85"], ["created_at", "2015-03-20 04:54:45.455533"], ["updated_at", "2015-03-20 04:54:45.455533"], ["token", "DLIEKDuTX6VjBZUYqUnrZQ8HFdsHZ-bp9WtfveF9MYI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.458768"], ["updated_at", "2015-03-20 04:54:45.458768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a8edb3e-cebd-11e4-a741-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a8fb072-cebd-11e4-b8d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a8edb3e-cebd-11e4-a741-705681abff85"], ["organization_id", "3a8fb072-cebd-11e4-b8d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.462272"], ["updated_at", "2015-03-20 04:54:45.462272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '3a8fb072-cebd-11e4-b8d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "3a8fb072-cebd-11e4-b8d9-705681abff85"], ["created_at", "2015-03-20 04:54:45.465858"], ["updated_at", "2015-03-20 04:54:45.465858"], ["token", "q7u0zUMj-4nDKy7zzQS-95idasM9O38bmfUCIyqYjdI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$C2RSOd6yj.g.bBkRJL7FrOQw/htbkXY3N3BUMHAb9s3k4H/IquHoS"], ["created_at", "2015-03-20 04:54:45.470094"], ["updated_at", "2015-03-20 04:54:45.470094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.473140"], ["updated_at", "2015-03-20 04:54:45.473140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a916d04-cebd-11e4-8c76-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a91e108-cebd-11e4-a13f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a916d04-cebd-11e4-8c76-705681abff85"], ["organization_id", "3a91e108-cebd-11e4-a13f-705681abff85"], ["created_at", "2015-03-20 04:54:45.476193"], ["updated_at", "2015-03-20 04:54:45.476193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/3a8fb072-cebd-11e4-b8d9-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"3a8fb072-cebd-11e4-b8d9-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.481966' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DLIEKDuTX6VjBZUYqUnrZQ8HFdsHZ-bp9WtfveF9MYI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.483375"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.484285"], ["id", "3a8f3912-cebd-11e4-91b4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3a8fb072-cebd-11e4-b8d9-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a8edb3e-cebd-11e4-a741-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a8edb3e-cebd-11e4-a741-705681abff85' LIMIT 1 [["organization_id", "3a8fb072-cebd-11e4-b8d9-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "3a8fb072-cebd-11e4-b8d9-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('3a8fb072-cebd-11e4-b8d9-705681abff85') Completed 200 OK in 15ms (Views: 6.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$UeH7lhw079uihtkyHfIcdOho0TztzFGaXGwGVctt4Kde/4pYpc.ba"], ["created_at", "2015-03-20 04:54:45.502647"], ["updated_at", "2015-03-20 04:54:45.502647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.504291"], ["user_id", "3a966886-cebd-11e4-8a5f-705681abff85"], ["created_at", "2015-03-20 04:54:45.505063"], ["updated_at", "2015-03-20 04:54:45.505063"], ["token", "XjPq3r45i-Ul46prAOMEIvwbdYmsmVBoRBOKfp0tVE8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.508249"], ["updated_at", "2015-03-20 04:54:45.508249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a966886-cebd-11e4-8a5f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a973c84-cebd-11e4-8ba1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a966886-cebd-11e4-8a5f-705681abff85"], ["organization_id", "3a973c84-cebd-11e4-8ba1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.511565"], ["updated_at", "2015-03-20 04:54:45.511565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '3a973c84-cebd-11e4-8ba1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "3a973c84-cebd-11e4-8ba1-705681abff85"], ["created_at", "2015-03-20 04:54:45.515511"], ["updated_at", "2015-03-20 04:54:45.515511"], ["token", "pP_tXZ1lhL0-2f4klNJhKhZeA0hNdlM-TppQCxuLVng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$UbbNivDSxCClSdAJz.SZGOQs2XgHXlHqvlYsFNqitXThJljUinGd."], ["created_at", "2015-03-20 04:54:45.519965"], ["updated_at", "2015-03-20 04:54:45.519965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.522790"], ["updated_at", "2015-03-20 04:54:45.522790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a990686-cebd-11e4-b4e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a9973c8-cebd-11e4-8491-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a990686-cebd-11e4-b4e4-705681abff85"], ["organization_id", "3a9973c8-cebd-11e4-8491-705681abff85"], ["created_at", "2015-03-20 04:54:45.525819"], ["updated_at", "2015-03-20 04:54:45.525819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$pPQ8Cd/UXTPyFJGVqrOJnuX9RTnPWDeFSDoO12He/K0rPRLLzfXce"], ["created_at", "2015-03-20 04:54:45.536361"], ["updated_at", "2015-03-20 04:54:45.536361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.538041"], ["user_id", "3a9b8a00-cebd-11e4-b7a5-705681abff85"], ["created_at", "2015-03-20 04:54:45.538853"], ["updated_at", "2015-03-20 04:54:45.538853"], ["token", "EwxXXQpGfLyGueDbib1bJ9D1UswfFbabaslKP7oguik"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.542096"], ["updated_at", "2015-03-20 04:54:45.542096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a9b8a00-cebd-11e4-b7a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a9c66e6-cebd-11e4-96ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a9b8a00-cebd-11e4-b7a5-705681abff85"], ["organization_id", "3a9c66e6-cebd-11e4-96ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.545793"], ["updated_at", "2015-03-20 04:54:45.545793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '3a9c66e6-cebd-11e4-96ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "3a9c66e6-cebd-11e4-96ae-705681abff85"], ["created_at", "2015-03-20 04:54:45.549618"], ["updated_at", "2015-03-20 04:54:45.549618"], ["token", "TYXq3th6VLGCsoxooZqP2lDG9AnBn7YsYO6J__0mE7g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$YdFIwJzWcPu1O4QHhX5HNeTMxW/Psg23wIlG8tbDTVXO3HoDlzXoy"], ["created_at", "2015-03-20 04:54:45.554019"], ["updated_at", "2015-03-20 04:54:45.554019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.557044"], ["updated_at", "2015-03-20 04:54:45.557044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a9e3a2a-cebd-11e4-b3f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a9eaea6-cebd-11e4-8ed2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a9e3a2a-cebd-11e4-b3f1-705681abff85"], ["organization_id", "3a9eaea6-cebd-11e4-8ed2-705681abff85"], ["created_at", "2015-03-20 04:54:45.560047"], ["updated_at", "2015-03-20 04:54:45.560047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.564862' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EwxXXQpGfLyGueDbib1bJ9D1UswfFbabaslKP7oguik"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.566663"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.568529"], ["id", "3a9bf01c-cebd-11e4-82a9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a9b8a00-cebd-11e4-b7a5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a9b8a00-cebd-11e4-b7a5-705681abff85' LIMIT 1 [["organization_id", "3a9c66e6-cebd-11e4-96ae-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "3a9c66e6-cebd-11e4-96ae-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('3a9c66e6-cebd-11e4-96ae-705681abff85') Completed 200 OK in 13ms (Views: 2.1ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$kK33AAJSid.2NzSRITaNb.IvHqjqP1YmRdpH/UQBNfUjqa/FWANha"], ["created_at", "2015-03-20 04:54:45.585848"], ["updated_at", "2015-03-20 04:54:45.585848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.588184"], ["user_id", "3aa330ac-cebd-11e4-8ba7-705681abff85"], ["created_at", "2015-03-20 04:54:45.589026"], ["updated_at", "2015-03-20 04:54:45.589026"], ["token", "qeKm6dUbxr0N7tDYeqsO0AG43jGLF5ivJryczu_31ao"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.592457"], ["updated_at", "2015-03-20 04:54:45.592457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aa330ac-cebd-11e4-8ba7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aa41652-cebd-11e4-af55-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aa330ac-cebd-11e4-8ba7-705681abff85"], ["organization_id", "3aa41652-cebd-11e4-af55-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.595940"], ["updated_at", "2015-03-20 04:54:45.595940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '3aa41652-cebd-11e4-af55-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "3aa41652-cebd-11e4-af55-705681abff85"], ["created_at", "2015-03-20 04:54:45.599218"], ["updated_at", "2015-03-20 04:54:45.599218"], ["token", "gF4cE0MkvvFcKFRjPmEWglbsE7tSMau274U2i3kxCLc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Hi8uFoIX5x2NKfNE88lUzuJajimK7d1dTBmy/8wUQDsEaOvAzwrQW"], ["created_at", "2015-03-20 04:54:45.603502"], ["updated_at", "2015-03-20 04:54:45.603502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.606519"], ["updated_at", "2015-03-20 04:54:45.606519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aa5c5e2-cebd-11e4-a89c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aa63bda-cebd-11e4-9a6c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3aa5c5e2-cebd-11e4-a89c-705681abff85"], ["organization_id", "3aa63bda-cebd-11e4-9a6c-705681abff85"], ["created_at", "2015-03-20 04:54:45.609577"], ["updated_at", "2015-03-20 04:54:45.609577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$wnh8sixV3v1vVryqGBgDTetuLblmJmawhGAQ.R9x6vukC4PAdZVmy"], ["created_at", "2015-03-20 04:54:45.620508"], ["updated_at", "2015-03-20 04:54:45.620508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.622034"], ["user_id", "3aa860fe-cebd-11e4-a6b9-705681abff85"], ["created_at", "2015-03-20 04:54:45.622802"], ["updated_at", "2015-03-20 04:54:45.622802"], ["token", "beKayyFTqgZxIojzytArfRPtVep5VNGVPgTiG1njwSU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.625974"], ["updated_at", "2015-03-20 04:54:45.625974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aa860fe-cebd-11e4-a6b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aa932fe-cebd-11e4-b1ad-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aa860fe-cebd-11e4-a6b9-705681abff85"], ["organization_id", "3aa932fe-cebd-11e4-b1ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.629821"], ["updated_at", "2015-03-20 04:54:45.629821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '3aa932fe-cebd-11e4-b1ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "3aa932fe-cebd-11e4-b1ad-705681abff85"], ["created_at", "2015-03-20 04:54:45.633783"], ["updated_at", "2015-03-20 04:54:45.633783"], ["token", "-w4JOg--XBaxCIaNNVAwBL3CPLhOg65J6vnP0mHRfjs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$j3luLRcSQKKQ1pE4B5hu1uU8VkHRSY.jSvGxWDWd7NC8zAoVZHI5."], ["created_at", "2015-03-20 04:54:45.644875"], ["updated_at", "2015-03-20 04:54:45.644875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.647130"], ["user_id", "3aac2ae0-cebd-11e4-9512-705681abff85"], ["created_at", "2015-03-20 04:54:45.647902"], ["updated_at", "2015-03-20 04:54:45.647902"], ["token", "NFRy_Rg2EGTBPOm0DdQ1lB7_m_dRC5E3mbJBp3mcUlM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.651160"], ["updated_at", "2015-03-20 04:54:45.651160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aac2ae0-cebd-11e4-9512-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aad0b7c-cebd-11e4-b909-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aac2ae0-cebd-11e4-9512-705681abff85"], ["organization_id", "3aad0b7c-cebd-11e4-b909-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.654265"], ["updated_at", "2015-03-20 04:54:45.654265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '3aad0b7c-cebd-11e4-b909-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "3aad0b7c-cebd-11e4-b909-705681abff85"], ["created_at", "2015-03-20 04:54:45.657537"], ["updated_at", "2015-03-20 04:54:45.657537"], ["token", "Aksrw3A0yvPKGoZ_0Ehm1NMhrrWBrlK5rxsWde5FTL4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.662750' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NFRy_Rg2EGTBPOm0DdQ1lB7_m_dRC5E3mbJBp3mcUlM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.664361"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.665460"], ["id", "3aac93ea-cebd-11e4-956f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3aac2ae0-cebd-11e4-9512-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3aad0b7c-cebd-11e4-b909-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3aac2ae0-cebd-11e4-9512-705681abff85' LIMIT 1 [["organization_id", "3aad0b7c-cebd-11e4-b909-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '3aad0b7c-cebd-11e4-b909-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$WvLCV5Oucwo8SdnFhfgpa.FibvwvNiimLIgOkDkOCCJWqHq8OtpuK"], ["created_at", "2015-03-20 04:54:45.679440"], ["updated_at", "2015-03-20 04:54:45.679440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.681611"], ["user_id", "3ab170a4-cebd-11e4-a24e-705681abff85"], ["created_at", "2015-03-20 04:54:45.682450"], ["updated_at", "2015-03-20 04:54:45.682450"], ["token", "FL2o__jbY05Wa5y4grzq2D-yPlrV7RNslYK-n1kPv3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.685773"], ["updated_at", "2015-03-20 04:54:45.685773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ab170a4-cebd-11e4-a24e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ab252a8-cebd-11e4-b743-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ab170a4-cebd-11e4-a24e-705681abff85"], ["organization_id", "3ab252a8-cebd-11e4-b743-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.688807"], ["updated_at", "2015-03-20 04:54:45.688807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '3ab252a8-cebd-11e4-b743-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "3ab252a8-cebd-11e4-b743-705681abff85"], ["created_at", "2015-03-20 04:54:45.691948"], ["updated_at", "2015-03-20 04:54:45.691948"], ["token", "iAsqomH8r5W84-Kn18xSaQWsII2HMkl6fi9M4aPQakk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.698899' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FL2o__jbY05Wa5y4grzq2D-yPlrV7RNslYK-n1kPv3U"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.700298"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.702198"], ["id", "3ab1db70-cebd-11e4-8643-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ab170a4-cebd-11e4-a24e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ab252a8-cebd-11e4-b743-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3ab170a4-cebd-11e4-a24e-705681abff85' LIMIT 1 [["organization_id", "3ab252a8-cebd-11e4-b743-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3ab252a8-cebd-11e4-b743-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3ab252a8-cebd-11e4-b743-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.710590"], ["updated_at", "2015-03-20 04:54:45.710590"], ["token", "QO9GvCZXduceITEY7NnBLxUXqvbOmbpNjKEiY74DwjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fd5f69a3-a925-4433-83e7-4b4b18bd6a86) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3ab62572-cebd-11e4-92be-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3ab62572-cebd-11e4-92be-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [fd5f69a3-a925-4433-83e7-4b4b18bd6a86] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3ab62572-cebd-11e4-92be-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [fd5f69a3-a925-4433-83e7-4b4b18bd6a86] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ab252a8-cebd-11e4-b743-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [fd5f69a3-a925-4433-83e7-4b4b18bd6a86] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [fd5f69a3-a925-4433-83e7-4b4b18bd6a86] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [fd5f69a3-a925-4433-83e7-4b4b18bd6a86] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [fd5f69a3-a925-4433-83e7-4b4b18bd6a86] Date: Thu, 19 Mar 2015 21:54:45 -0700 From: from@example.com To: email@example.com Message-ID: <550ba815af479_fda3fc544865be81662a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/QO9GvCZXduceITEY7NnBLxUXqvbOmbpNjKEiY74DwjE?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [fd5f69a3-a925-4433-83e7-4b4b18bd6a86] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.82ms Completed 201 Created in 21ms (Views: 0.9ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$1VLgE/U19WDoa2WVVuqGbO/5CtjzJfa6vrguPAE1/169xAUsCL8um"], ["created_at", "2015-03-20 04:54:45.725359"], ["updated_at", "2015-03-20 04:54:45.725359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.726870"], ["user_id", "3ab85fb8-cebd-11e4-ab69-705681abff85"], ["created_at", "2015-03-20 04:54:45.727716"], ["updated_at", "2015-03-20 04:54:45.727716"], ["token", "3ciFNLgcOsLwO7kiCoI3nbnc2pn2_8dNxOSO-enh02Y"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.732399"], ["updated_at", "2015-03-20 04:54:45.732399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ab85fb8-cebd-11e4-ab69-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ab97498-cebd-11e4-80b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ab85fb8-cebd-11e4-ab69-705681abff85"], ["organization_id", "3ab97498-cebd-11e4-80b9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.735859"], ["updated_at", "2015-03-20 04:54:45.735859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '3ab97498-cebd-11e4-80b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "3ab97498-cebd-11e4-80b9-705681abff85"], ["created_at", "2015-03-20 04:54:45.739072"], ["updated_at", "2015-03-20 04:54:45.739072"], ["token", "HbftRFwrSw_QBK-6QCjYBO5A1ZNsiIoBhqlcvFjWQKI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.743677' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3ciFNLgcOsLwO7kiCoI3nbnc2pn2_8dNxOSO-enh02Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.745139"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.746135"], ["id", "3ab8c674-cebd-11e4-81dd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ab85fb8-cebd-11e4-ab69-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ab97498-cebd-11e4-80b9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3ab85fb8-cebd-11e4-ab69-705681abff85' LIMIT 1 [["organization_id", "3ab97498-cebd-11e4-80b9-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3ab97498-cebd-11e4-80b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3ab97498-cebd-11e4-80b9-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.753038"], ["updated_at", "2015-03-20 04:54:45.753038"], ["token", "i_1-9C4sHNHaWagjgPGAilMR5qn3kwdRKZ6an1WFGBI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 702cdddd-9b48-4603-b067-a3c06aeee6e5) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3abc9f56-cebd-11e4-a975-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3abc9f56-cebd-11e4-a975-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [702cdddd-9b48-4603-b067-a3c06aeee6e5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3abc9f56-cebd-11e4-a975-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [702cdddd-9b48-4603-b067-a3c06aeee6e5] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ab97498-cebd-11e4-80b9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [702cdddd-9b48-4603-b067-a3c06aeee6e5] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [702cdddd-9b48-4603-b067-a3c06aeee6e5] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [702cdddd-9b48-4603-b067-a3c06aeee6e5] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [702cdddd-9b48-4603-b067-a3c06aeee6e5] Date: Thu, 19 Mar 2015 21:54:45 -0700 From: from@example.com To: email@example.com Message-ID: <550ba815b9853_fda3fc544865be8167ea@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/i_1-9C4sHNHaWagjgPGAilMR5qn3kwdRKZ6an1WFGBI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [702cdddd-9b48-4603-b067-a3c06aeee6e5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.9ms Completed 201 Created in 18ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Z0mTjhyhFzLscKKONvmhvOe0t3ENMWs0WU1NwI.hqGDyBTMBgxnM."], ["created_at", "2015-03-20 04:54:45.768048"], ["updated_at", "2015-03-20 04:54:45.768048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.771645"], ["user_id", "3abf0688-cebd-11e4-a04c-705681abff85"], ["created_at", "2015-03-20 04:54:45.772675"], ["updated_at", "2015-03-20 04:54:45.772675"], ["token", "mBRzPUO03T7V1pG4O4_5siJXlomi1H8-irIYJOwmxhA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.776543"], ["updated_at", "2015-03-20 04:54:45.776543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3abf0688-cebd-11e4-a04c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ac02fb8-cebd-11e4-bc58-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3abf0688-cebd-11e4-a04c-705681abff85"], ["organization_id", "3ac02fb8-cebd-11e4-bc58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.779995"], ["updated_at", "2015-03-20 04:54:45.779995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '3ac02fb8-cebd-11e4-bc58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "3ac02fb8-cebd-11e4-bc58-705681abff85"], ["created_at", "2015-03-20 04:54:45.784045"], ["updated_at", "2015-03-20 04:54:45.784045"], ["token", "362aC_Y4lsoMhdJaE3H05pJQsSzACja2oqUMuyl5VTg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/3ac15b86-cebd-11e4-840a-705681abff85" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"3ac15b86-cebd-11e4-840a-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.789301' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mBRzPUO03T7V1pG4O4_5siJXlomi1H8-irIYJOwmxhA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.790742"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.791666"], ["id", "3abfa4b2-cebd-11e4-b20a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3ac15b86-cebd-11e4-840a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3abf0688-cebd-11e4-a04c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ac02fb8-cebd-11e4-bc58-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3abf0688-cebd-11e4-a04c-705681abff85' LIMIT 1 [["organization_id", "3ac02fb8-cebd-11e4-bc58-705681abff85"]] Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$3QWTNDas6ZKErRnHLsQiUeJwyvc3kOtn6Qy3MOih2JBE0KpE9Sx16"], ["created_at", "2015-03-20 04:54:45.802724"], ["updated_at", "2015-03-20 04:54:45.802724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.804205"], ["user_id", "3ac42dca-cebd-11e4-9110-705681abff85"], ["created_at", "2015-03-20 04:54:45.804969"], ["updated_at", "2015-03-20 04:54:45.804969"], ["token", "KDSCq2HFl2FvKCNaYWSseogGOdxTVtPVitWIWZJ8-ms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.808115"], ["updated_at", "2015-03-20 04:54:45.808115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ac42dca-cebd-11e4-9110-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ac4fdb8-cebd-11e4-be97-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ac42dca-cebd-11e4-9110-705681abff85"], ["organization_id", "3ac4fdb8-cebd-11e4-be97-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.811299"], ["updated_at", "2015-03-20 04:54:45.811299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '3ac4fdb8-cebd-11e4-be97-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "3ac4fdb8-cebd-11e4-be97-705681abff85"], ["created_at", "2015-03-20 04:54:45.814880"], ["updated_at", "2015-03-20 04:54:45.814880"], ["token", "gacO7_iRN6IQQQuELO5GqMv4q6RkxvAzqcC3GMaWCy8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$COGVl.TlYpoolVXzzNXeY.20GNNMNEVho.Gbfz8B7XyOxa85xdS/q"], ["created_at", "2015-03-20 04:54:45.824992"], ["updated_at", "2015-03-20 04:54:45.824992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.826497"], ["user_id", "3ac7946a-cebd-11e4-9981-705681abff85"], ["created_at", "2015-03-20 04:54:45.827295"], ["updated_at", "2015-03-20 04:54:45.827295"], ["token", "5X0GE0A7Ob3q49kvGNcOgK9zVLrnYU79njnJU4c5sjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.830535"], ["updated_at", "2015-03-20 04:54:45.830535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ac7946a-cebd-11e4-9981-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ac868e0-cebd-11e4-8c72-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ac7946a-cebd-11e4-9981-705681abff85"], ["organization_id", "3ac868e0-cebd-11e4-8c72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.833717"], ["updated_at", "2015-03-20 04:54:45.833717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '3ac868e0-cebd-11e4-8c72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "3ac868e0-cebd-11e4-8c72-705681abff85"], ["created_at", "2015-03-20 04:54:45.837529"], ["updated_at", "2015-03-20 04:54:45.837529"], ["token", "YtwZKXliQRnvsUJ6BOF3_9lV0HGC_D762B7qHNA23_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/3ac980ea-cebd-11e4-a4d6-705681abff85" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"3ac980ea-cebd-11e4-a4d6-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.842475' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5X0GE0A7Ob3q49kvGNcOgK9zVLrnYU79njnJU4c5sjE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.844121"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.845435"], ["id", "3ac7f2d4-cebd-11e4-a20b-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3ac980ea-cebd-11e4-a4d6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ac7946a-cebd-11e4-9981-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ac868e0-cebd-11e4-8c72-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3ac7946a-cebd-11e4-9981-705681abff85' LIMIT 1 [["organization_id", "3ac868e0-cebd-11e4-8c72-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "3ac980ea-cebd-11e4-a4d6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$M6OmxL82VkmVqAXCCXDDYeRZ7/H8b5rPTKMAirWOdbU8kApRu7l0i"], ["created_at", "2015-03-20 04:54:45.857147"], ["updated_at", "2015-03-20 04:54:45.857147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.858694"], ["user_id", "3acc7ca0-cebd-11e4-ae17-705681abff85"], ["created_at", "2015-03-20 04:54:45.859457"], ["updated_at", "2015-03-20 04:54:45.859457"], ["token", "ARN68DMY_sDy5FVS-UstNsc7EOPAbkl2IEML8XYMv3Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.863101"], ["updated_at", "2015-03-20 04:54:45.863101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3acc7ca0-cebd-11e4-ae17-705681abff85' AND "clubhouse_memberships"."organization_id" = '3acd6534-cebd-11e4-85ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3acc7ca0-cebd-11e4-ae17-705681abff85"], ["organization_id", "3acd6534-cebd-11e4-85ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.866503"], ["updated_at", "2015-03-20 04:54:45.866503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '3acd6534-cebd-11e4-85ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "3acd6534-cebd-11e4-85ab-705681abff85"], ["created_at", "2015-03-20 04:54:45.869852"], ["updated_at", "2015-03-20 04:54:45.869852"], ["token", "SQ6cj64YPMeyYO0O97rMGhECTNjTUWhK7ZNljU1CpqY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$d2azLaWfwB8MYZJ2oHKscekE6KOFanqc5p2mZudK6viz3daIeCSY6"], ["created_at", "2015-03-20 04:54:45.891312"], ["updated_at", "2015-03-20 04:54:45.891312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.894908"], ["updated_at", "2015-03-20 04:54:45.894908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ad1b62a-cebd-11e4-b411-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ad23faa-cebd-11e4-b1de-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ad1b62a-cebd-11e4-b411-705681abff85"], ["organization_id", "3ad23faa-cebd-11e4-b1de-705681abff85"], ["created_at", "2015-03-20 04:54:45.898358"], ["updated_at", "2015-03-20 04:54:45.898358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ad1b62a-cebd-11e4-b411-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ad23faa-cebd-11e4-b1de-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ad1b62a-cebd-11e4-b411-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ad23faa-cebd-11e4-b1de-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ad23faa-cebd-11e4-b1de-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ad1b62a-cebd-11e4-b411-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ad23faa-cebd-11e4-b1de-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$4soEEDbb97PbTraMBeHPfuJ5qPWGou93NAodNSvbEvEpribvTVmaa"], ["created_at", "2015-03-20 04:54:45.915324"], ["updated_at", "2015-03-20 04:54:45.915324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.916891"], ["user_id", "3ad55d66-cebd-11e4-ac02-705681abff85"], ["created_at", "2015-03-20 04:54:45.917637"], ["updated_at", "2015-03-20 04:54:45.917637"], ["token", "uHutq4OZJP0YLKAggC23ZrpjLEBPaPCreHqvIZ20CG4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.920761"], ["updated_at", "2015-03-20 04:54:45.920761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ad55d66-cebd-11e4-ac02-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ad62db8-cebd-11e4-8687-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ad55d66-cebd-11e4-ac02-705681abff85"], ["organization_id", "3ad62db8-cebd-11e4-8687-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.923860"], ["updated_at", "2015-03-20 04:54:45.923860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-6" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.933962' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uHutq4OZJP0YLKAggC23ZrpjLEBPaPCreHqvIZ20CG4"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.935389"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.937318"], ["id", "3ad5bbe4-cebd-11e4-a68c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ad55d66-cebd-11e4-ac02-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3ad55d66-cebd-11e4-ac02-705681abff85' LIMIT 1 [["organization_id", "3ad62db8-cebd-11e4-8687-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "3ad62db8-cebd-11e4-8687-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$.rPQ0zeWjrbgKVEa/vfUSeDX7aqtUAMkVgmZrV8QMYRy7nJakAtoW"], ["created_at", "2015-03-20 04:54:45.949943"], ["updated_at", "2015-03-20 04:54:45.949943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.951510"], ["user_id", "3adaa5b4-cebd-11e4-8b92-705681abff85"], ["created_at", "2015-03-20 04:54:45.952263"], ["updated_at", "2015-03-20 04:54:45.952263"], ["token", "kMzfREWbtryAc76KNPZuF07w-IhQhz9q2A6WAt7NR4o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.955413"], ["updated_at", "2015-03-20 04:54:45.955413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3adaa5b4-cebd-11e4-8b92-705681abff85' AND "clubhouse_memberships"."organization_id" = '3adb77c8-cebd-11e4-b207-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3adaa5b4-cebd-11e4-8b92-705681abff85"], ["organization_id", "3adb77c8-cebd-11e4-b207-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.958516"], ["updated_at", "2015-03-20 04:54:45.958516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$DGzvR4C539oanvF/wouj0OgT9npxmudfbC7F.IIfMSOpSVDkbzYyG"], ["created_at", "2015-03-20 04:54:45.969889"], ["updated_at", "2015-03-20 04:54:45.969889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.971729"], ["user_id", "3addb5f6-cebd-11e4-8765-705681abff85"], ["created_at", "2015-03-20 04:54:45.972545"], ["updated_at", "2015-03-20 04:54:45.972545"], ["token", "kLGHzNv3uBjSqL_QdP-w_rKQph54VWU6SLNPiE2PKsk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:45.976153"], ["updated_at", "2015-03-20 04:54:45.976153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3addb5f6-cebd-11e4-8765-705681abff85' AND "clubhouse_memberships"."organization_id" = '3adea2fe-cebd-11e4-a408-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3addb5f6-cebd-11e4-8765-705681abff85"], ["organization_id", "3adea2fe-cebd-11e4-a408-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:45.979307"], ["updated_at", "2015-03-20 04:54:45.979307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/3adea2fe-cebd-11e4-a408-705681abff85" for 127.0.0.1 at 2015-03-19 21:54:45 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"3adea2fe-cebd-11e4-a408-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:45.983744' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kLGHzNv3uBjSqL_QdP-w_rKQph54VWU6SLNPiE2PKsk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:45.985119"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:45.986026"], ["id", "3ade223e-cebd-11e4-b58a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3adea2fe-cebd-11e4-a408-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3addb5f6-cebd-11e4-8765-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3addb5f6-cebd-11e4-8765-705681abff85' LIMIT 1 [["organization_id", "3adea2fe-cebd-11e4-a408-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$/8yQxaqb.jCX4qiAM28Ox./WR6YowRuyU3vkbGDacgzdF2OzfKcUu"], ["created_at", "2015-03-20 04:54:45.996315"], ["updated_at", "2015-03-20 04:54:45.996315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:45.998002"], ["user_id", "3ae1bb60-cebd-11e4-bf81-705681abff85"], ["created_at", "2015-03-20 04:54:45.998925"], ["updated_at", "2015-03-20 04:54:45.998925"], ["token", "-rrxrkpb22R8kgiGkAydDvPgJN2-tUKXvzf1HNiKiZs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.002708"], ["updated_at", "2015-03-20 04:54:46.002708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ae1bb60-cebd-11e4-bf81-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ae2afe8-cebd-11e4-bcd5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ae1bb60-cebd-11e4-bf81-705681abff85"], ["organization_id", "3ae2afe8-cebd-11e4-bcd5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.005799"], ["updated_at", "2015-03-20 04:54:46.005799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$qFG.CG2rrv2fLOAmLjzBdeq1NAEGfHK9dUVshZkkp5TRQSAi06eAq"], ["created_at", "2015-03-20 04:54:46.015945"], ["updated_at", "2015-03-20 04:54:46.015945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.017688"], ["user_id", "3ae4bc52-cebd-11e4-ae92-705681abff85"], ["created_at", "2015-03-20 04:54:46.018469"], ["updated_at", "2015-03-20 04:54:46.018469"], ["token", "5nTMUmrzHbw2vLEevTzzxnMEQFOKoZERCVGS60A7TJM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.021692"], ["updated_at", "2015-03-20 04:54:46.021692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ae4bc52-cebd-11e4-ae92-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ae594d8-cebd-11e4-b37f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ae4bc52-cebd-11e4-ae92-705681abff85"], ["organization_id", "3ae594d8-cebd-11e4-b37f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.024839"], ["updated_at", "2015-03-20 04:54:46.024839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$UA1yspuicHflFoYtbgOZ7OlCP7FsxdzF8aFnAd95q35YXSlUkHVxG"], ["created_at", "2015-03-20 04:54:46.034228"], ["updated_at", "2015-03-20 04:54:46.034228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.035728"], ["user_id", "3ae78162-cebd-11e4-97d3-705681abff85"], ["created_at", "2015-03-20 04:54:46.036496"], ["updated_at", "2015-03-20 04:54:46.036496"], ["token", "qpElva-jeOU2046mSKM1hFQALaI7l9vjgE6kJi8BvfM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.039620"], ["updated_at", "2015-03-20 04:54:46.039620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ae78162-cebd-11e4-97d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ae8509c-cebd-11e4-a7ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ae78162-cebd-11e4-97d3-705681abff85"], ["organization_id", "3ae8509c-cebd-11e4-a7ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.043170"], ["updated_at", "2015-03-20 04:54:46.043170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/3ae8509c-cebd-11e4-a7ff-705681abff85" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"3ae8509c-cebd-11e4-a7ff-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.047999' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qpElva-jeOU2046mSKM1hFQALaI7l9vjgE6kJi8BvfM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.049478"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.050987"], ["id", "3ae7de14-cebd-11e4-92ea-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3ae8509c-cebd-11e4-a7ff-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ae78162-cebd-11e4-97d3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3ae78162-cebd-11e4-97d3-705681abff85' LIMIT 1 [["organization_id", "3ae8509c-cebd-11e4-a7ff-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3ae8509c-cebd-11e4-a7ff-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$eQF4gI42ik237KDKbtzz6e5bOzkNVN6OEMtlFAcGaZ9BhUve4Y.C6"], ["created_at", "2015-03-20 04:54:46.065327"], ["updated_at", "2015-03-20 04:54:46.065327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.067292"], ["user_id", "3aec4d6e-cebd-11e4-a48c-705681abff85"], ["created_at", "2015-03-20 04:54:46.068077"], ["updated_at", "2015-03-20 04:54:46.068077"], ["token", "hmKGnNCiJurwTn4ErtMSuTnd_uSdaAEoguzTCYUoZ_w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.071424"], ["updated_at", "2015-03-20 04:54:46.071424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aec4d6e-cebd-11e4-a48c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aed2be4-cebd-11e4-9a87-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aec4d6e-cebd-11e4-a48c-705681abff85"], ["organization_id", "3aed2be4-cebd-11e4-9a87-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.075258"], ["updated_at", "2015-03-20 04:54:46.075258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/3aed2be4-cebd-11e4-9a87-705681abff85" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"3aed2be4-cebd-11e4-9a87-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.080935' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hmKGnNCiJurwTn4ErtMSuTnd_uSdaAEoguzTCYUoZ_w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.082415"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.083418"], ["id", "3aecb1b4-cebd-11e4-8a55-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3aed2be4-cebd-11e4-9a87-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3aec4d6e-cebd-11e4-a48c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3aec4d6e-cebd-11e4-a48c-705681abff85' LIMIT 1 [["organization_id", "3aed2be4-cebd-11e4-9a87-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3aed2be4-cebd-11e4-9a87-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 04:54:46.089453"], ["id", "3aed2be4-cebd-11e4-9a87-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$TLj4FJ47B2AxJjg6hYFG7ewD1n9Fi7EbpK/b.zTG6H/FxZ0YYOipK"], ["created_at", "2015-03-20 04:54:46.097087"], ["updated_at", "2015-03-20 04:54:46.097087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.098734"], ["user_id", "3af118ee-cebd-11e4-a5c7-705681abff85"], ["created_at", "2015-03-20 04:54:46.099685"], ["updated_at", "2015-03-20 04:54:46.099685"], ["token", "hbaA1q7NsNposAIZXkCwzUUdrDqIg6q99cYyZiRTlkk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.103223"], ["updated_at", "2015-03-20 04:54:46.103223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3af118ee-cebd-11e4-a5c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3af20600-cebd-11e4-8198-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3af118ee-cebd-11e4-a5c7-705681abff85"], ["organization_id", "3af20600-cebd-11e4-8198-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.106312"], ["updated_at", "2015-03-20 04:54:46.106312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$e52/ntwZeVsuCCHWZDKiN.C/5WJ7FazILCEe5THF7MPx/QdYEZtoa"], ["created_at", "2015-03-20 04:54:46.110528"], ["updated_at", "2015-03-20 04:54:46.110528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.113419"], ["updated_at", "2015-03-20 04:54:46.113419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3af3233c-cebd-11e4-ae32-705681abff85' AND "clubhouse_memberships"."organization_id" = '3af39696-cebd-11e4-8307-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3af3233c-cebd-11e4-ae32-705681abff85"], ["organization_id", "3af39696-cebd-11e4-8307-705681abff85"], ["created_at", "2015-03-20 04:54:46.117253"], ["updated_at", "2015-03-20 04:54:46.117253"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.125446' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hbaA1q7NsNposAIZXkCwzUUdrDqIg6q99cYyZiRTlkk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.126926"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.127988"], ["id", "3af18842-cebd-11e4-bab2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3af118ee-cebd-11e4-a5c7-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "3af118ee-cebd-11e4-a5c7-705681abff85"]] Completed 200 OK in 15ms (Views: 2.5ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$fgs0JKHimyGly28Dr4V2yuRGlEeN8qkvmr51RNj6UnRFpmDTKfSNG"], ["created_at", "2015-03-20 04:54:46.146315"], ["updated_at", "2015-03-20 04:54:46.146315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.148065"], ["user_id", "3af89fb0-cebd-11e4-b253-705681abff85"], ["created_at", "2015-03-20 04:54:46.148832"], ["updated_at", "2015-03-20 04:54:46.148832"], ["token", "sTIhZMh5wC4o15SWfk3cJchwuv2DlryWtpfePGqVeec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.152085"], ["updated_at", "2015-03-20 04:54:46.152085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3af89fb0-cebd-11e4-b253-705681abff85' AND "clubhouse_memberships"."organization_id" = '3af979e4-cebd-11e4-a62f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3af89fb0-cebd-11e4-b253-705681abff85"], ["organization_id", "3af979e4-cebd-11e4-a62f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.155128"], ["updated_at", "2015-03-20 04:54:46.155128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$TLtj5FW6wDJICeKtfPFIXO5QcRCAmeDeTeyLvbn8cOaEbLeK.d3k."], ["created_at", "2015-03-20 04:54:46.159271"], ["updated_at", "2015-03-20 04:54:46.159271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.162863"], ["updated_at", "2015-03-20 04:54:46.162863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3afa9342-cebd-11e4-aaf8-705681abff85' AND "clubhouse_memberships"."organization_id" = '3afb20e6-cebd-11e4-9c1f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3afa9342-cebd-11e4-aaf8-705681abff85"], ["organization_id", "3afb20e6-cebd-11e4-9c1f-705681abff85"], ["created_at", "2015-03-20 04:54:46.166604"], ["updated_at", "2015-03-20 04:54:46.166604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$MQ7y41wt0IHBrEsOU9Gl7OFoEY9gABZSEsXt1hdYvEnVuxzGY1Ep."], ["created_at", "2015-03-20 04:54:46.176542"], ["updated_at", "2015-03-20 04:54:46.176542"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.178942"], ["user_id", "3afd406a-cebd-11e4-bf2b-705681abff85"], ["created_at", "2015-03-20 04:54:46.179721"], ["updated_at", "2015-03-20 04:54:46.179721"], ["token", "79LQ-cmSYJJY8260YFm-kUzgKUSIdw520XfqblsvC-U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.184036"], ["updated_at", "2015-03-20 04:54:46.184036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3afd406a-cebd-11e4-bf2b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3afe5e0a-cebd-11e4-8c1e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3afd406a-cebd-11e4-bf2b-705681abff85"], ["organization_id", "3afe5e0a-cebd-11e4-8c1e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.187291"], ["updated_at", "2015-03-20 04:54:46.187291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$jdA2hLUw41tzW9SowuJFyeY3pxqoA6IOUVi0xcyY2wkeamUsDs.GO"], ["created_at", "2015-03-20 04:54:46.197206"], ["updated_at", "2015-03-20 04:54:46.197206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.199053"], ["user_id", "3b006614-cebd-11e4-a89b-705681abff85"], ["created_at", "2015-03-20 04:54:46.199824"], ["updated_at", "2015-03-20 04:54:46.199824"], ["token", "YW3H1coCiD45piEcKj4pcGxhvJk6pU_bqli-8AQjrPQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.203123"], ["updated_at", "2015-03-20 04:54:46.203123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b006614-cebd-11e4-a89b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b01441c-cebd-11e4-8c41-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b006614-cebd-11e4-a89b-705681abff85"], ["organization_id", "3b01441c-cebd-11e4-8c41-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.206277"], ["updated_at", "2015-03-20 04:54:46.206277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.210602' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YW3H1coCiD45piEcKj4pcGxhvJk6pU_bqli-8AQjrPQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.211956"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.212930"], ["id", "3b00cbf4-cebd-11e4-8878-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$MdVPe29oyd.84RM2DK/LJuhtz18E02TTGnfT5/a1dyOXyyCJmjSXi"], ["created_at", "2015-03-20 04:54:46.220125"], ["updated_at", "2015-03-20 04:54:46.220125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.221678"], ["user_id", "3b03dfec-cebd-11e4-8d86-705681abff85"], ["created_at", "2015-03-20 04:54:46.222404"], ["updated_at", "2015-03-20 04:54:46.222404"], ["token", "LlOlPCTH3p5O26bdP17cMkDVaG_XWy3rpyzWgFWwo7A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.225728"], ["updated_at", "2015-03-20 04:54:46.225728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b03dfec-cebd-11e4-8d86-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b04b714-cebd-11e4-a7df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b03dfec-cebd-11e4-8d86-705681abff85"], ["organization_id", "3b04b714-cebd-11e4-a7df-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.229269"], ["updated_at", "2015-03-20 04:54:46.229269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-19" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-19", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.234822' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LlOlPCTH3p5O26bdP17cMkDVaG_XWy3rpyzWgFWwo7A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.236222"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.237141"], ["id", "3b043e2e-cebd-11e4-965a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-19"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b03dfec-cebd-11e4-8d86-705681abff85"]] Completed 200 OK in 5ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$cR7dWKpL14g6IC0YKknESuJABtU5QUGMY18FhrGt1btvVSifKKQhq"], ["created_at", "2015-03-20 04:54:46.245379"], ["updated_at", "2015-03-20 04:54:46.245379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.246912"], ["user_id", "3b07b928-cebd-11e4-a7c9-705681abff85"], ["created_at", "2015-03-20 04:54:46.247630"], ["updated_at", "2015-03-20 04:54:46.247630"], ["token", "Jic9ZAw_StpX1DsaL4GUEZmjF1pJxGrezig38WqHJ-o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.251029"], ["updated_at", "2015-03-20 04:54:46.251029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b07b928-cebd-11e4-a7c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b089384-cebd-11e4-a541-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b07b928-cebd-11e4-a7c9-705681abff85"], ["organization_id", "3b089384-cebd-11e4-a541-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.254094"], ["updated_at", "2015-03-20 04:54:46.254094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-20" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.258641' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Jic9ZAw_StpX1DsaL4GUEZmjF1pJxGrezig38WqHJ-o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.260090"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.261016"], ["id", "3b0819b8-cebd-11e4-87cb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-20"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b07b928-cebd-11e4-a7c9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b07b928-cebd-11e4-a7c9-705681abff85' LIMIT 1 [["organization_id", "3b089384-cebd-11e4-a541-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$1u.qG5aH39O5HnEVjsnSsu2Wu0N9WhzloMXuPzHN7nqM2aUWb4wh2"], ["created_at", "2015-03-20 04:54:46.271264"], ["updated_at", "2015-03-20 04:54:46.271264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.272778"], ["user_id", "3b0bac2c-cebd-11e4-8926-705681abff85"], ["created_at", "2015-03-20 04:54:46.273560"], ["updated_at", "2015-03-20 04:54:46.273560"], ["token", "uqz9FkTt3Kb4Qlr-YjMDmk4bQksLyZMlIRW7k3RqbJA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.277184"], ["updated_at", "2015-03-20 04:54:46.277184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b0bac2c-cebd-11e4-8926-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b0c94ac-cebd-11e4-875d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b0bac2c-cebd-11e4-8926-705681abff85"], ["organization_id", "3b0c94ac-cebd-11e4-875d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.280584"], ["updated_at", "2015-03-20 04:54:46.280584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$jOkyWfnXOoebAXlSpygZCO2QTFJWrvfUOsBcrWMZiO1Y5YA/an7La"], ["created_at", "2015-03-20 04:54:46.291158"], ["updated_at", "2015-03-20 04:54:46.291158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.292723"], ["user_id", "3b0eb700-cebd-11e4-9a6c-705681abff85"], ["created_at", "2015-03-20 04:54:46.293789"], ["updated_at", "2015-03-20 04:54:46.293789"], ["token", "CBhUVAePhfhk3pC2Z0NKso0d-eLDJcGLvlZ59yr3RO0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.297067"], ["updated_at", "2015-03-20 04:54:46.297067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b0eb700-cebd-11e4-9a6c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b0f9f08-cebd-11e4-8b92-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b0eb700-cebd-11e4-9a6c-705681abff85"], ["organization_id", "3b0f9f08-cebd-11e4-8b92-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.300657"], ["updated_at", "2015-03-20 04:54:46.300657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$LcYQ/NklC5T5qP.OapjLqeNxNih8z6C1pnIFu0T83iqE.FdR9YgbC"], ["created_at", "2015-03-20 04:54:46.309956"], ["updated_at", "2015-03-20 04:54:46.309956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.311530"], ["user_id", "3b1193ee-cebd-11e4-8ebd-705681abff85"], ["created_at", "2015-03-20 04:54:46.312305"], ["updated_at", "2015-03-20 04:54:46.312305"], ["token", "7Uk_IbZ8X2USGuJNMEsYZP_IamoRonAPaR74GN5N40A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.315766"], ["updated_at", "2015-03-20 04:54:46.315766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b1193ee-cebd-11e4-8ebd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b127782-cebd-11e4-9b3c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b1193ee-cebd-11e4-8ebd-705681abff85"], ["organization_id", "3b127782-cebd-11e4-9b3c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.319068"], ["updated_at", "2015-03-20 04:54:46.319068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.323991' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7Uk_IbZ8X2USGuJNMEsYZP_IamoRonAPaR74GN5N40A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.325392"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.326376"], ["id", "3b11f58c-cebd-11e4-949a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b1193ee-cebd-11e4-8ebd-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$ZwxMaJ.bIfzS1fofy0trRuwJuKvWwtX7Aoj/LZshas9FKTsI5kpJ2"], ["created_at", "2015-03-20 04:54:46.343915"], ["updated_at", "2015-03-20 04:54:46.343915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.345526"], ["user_id", "3b16c4e0-cebd-11e4-b8d2-705681abff85"], ["created_at", "2015-03-20 04:54:46.346306"], ["updated_at", "2015-03-20 04:54:46.346306"], ["token", "0pnflo9ZYT71NSIC6QJjzMMt9e1nbzOT__wvHr9zhPA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.349687"], ["updated_at", "2015-03-20 04:54:46.349687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b16c4e0-cebd-11e4-b8d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b17a284-cebd-11e4-9b8c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b16c4e0-cebd-11e4-b8d2-705681abff85"], ["organization_id", "3b17a284-cebd-11e4-9b8c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.352947"], ["updated_at", "2015-03-20 04:54:46.352947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.365158' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0pnflo9ZYT71NSIC6QJjzMMt9e1nbzOT__wvHr9zhPA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.367709"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.369545"], ["id", "3b172552-cebd-11e4-8565-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b16c4e0-cebd-11e4-b8d2-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (4.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.375913"], ["updated_at", "2015-03-20 04:54:46.375913"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b1c0d7e-cebd-11e4-b70b-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b16c4e0-cebd-11e4-b8d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b1c0d7e-cebd-11e4-b70b-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b16c4e0-cebd-11e4-b8d2-705681abff85"], ["admin", "t"], ["organization_id", "3b1c0d7e-cebd-11e4-b70b-705681abff85"], ["created_at", "2015-03-20 04:54:46.388475"], ["updated_at", "2015-03-20 04:54:46.388475"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 28ms (Views: 0.9ms | ActiveRecord: 7.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$UewgqqZ.NpqqMtg.Wt7sjuts2TeBZwMTxXGYymFOzyjL8cFSJ15hS"], ["created_at", "2015-03-20 04:54:46.403683"], ["updated_at", "2015-03-20 04:54:46.403683"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.407049"], ["user_id", "3b2002bc-cebd-11e4-952c-705681abff85"], ["created_at", "2015-03-20 04:54:46.408851"], ["updated_at", "2015-03-20 04:54:46.408851"], ["token", "qPIXa8xwUQp_kmP0HukU1_0xscEyMqaPAMPBj1Y6M2s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.415331"], ["updated_at", "2015-03-20 04:54:46.415331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b2002bc-cebd-11e4-952c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b21bdfa-cebd-11e4-ab58-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b2002bc-cebd-11e4-952c-705681abff85"], ["organization_id", "3b21bdfa-cebd-11e4-ab58-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.420548"], ["updated_at", "2015-03-20 04:54:46.420548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/3b21bdfa-cebd-11e4-ab58-705681abff85" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"3b21bdfa-cebd-11e4-ab58-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.425739' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qPIXa8xwUQp_kmP0HukU1_0xscEyMqaPAMPBj1Y6M2s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.427648"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.428627"], ["id", "3b20d34a-cebd-11e4-8429-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3b21bdfa-cebd-11e4-ab58-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b2002bc-cebd-11e4-952c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b2002bc-cebd-11e4-952c-705681abff85' LIMIT 1 [["organization_id", "3b21bdfa-cebd-11e4-ab58-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "3b21bdfa-cebd-11e4-ab58-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$Jb2mtLYUm.T6t.VFGGNDGeODy4JLXOGFVt/XVIuRf5jyM29L7AmRC"], ["created_at", "2015-03-20 04:54:46.442804"], ["updated_at", "2015-03-20 04:54:46.442804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.444412"], ["user_id", "3b25d994-cebd-11e4-b069-705681abff85"], ["created_at", "2015-03-20 04:54:46.445163"], ["updated_at", "2015-03-20 04:54:46.445163"], ["token", "Tlavevj1lDc9tGz75PdnHr6LoxeNwwqPc_FpfydRiFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.449821"], ["updated_at", "2015-03-20 04:54:46.449821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b25d994-cebd-11e4-b069-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b270ae4-cebd-11e4-854e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b25d994-cebd-11e4-b069-705681abff85"], ["organization_id", "3b270ae4-cebd-11e4-854e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.454873"], ["updated_at", "2015-03-20 04:54:46.454873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$xz4Dhei/O81/H9uM0qEjeesMCpJvOt.e4sekRXOuOlWl558F5AFiO"], ["created_at", "2015-03-20 04:54:46.466744"], ["updated_at", "2015-03-20 04:54:46.466744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.468532"], ["user_id", "3b298404-cebd-11e4-a183-705681abff85"], ["created_at", "2015-03-20 04:54:46.469790"], ["updated_at", "2015-03-20 04:54:46.469790"], ["token", "O4EnTRZFqLZA4uJyC4aWx43tpAiwe9_5wiyM_WrlUjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.473216"], ["updated_at", "2015-03-20 04:54:46.473216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b298404-cebd-11e4-a183-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b2a8084-cebd-11e4-8519-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b298404-cebd-11e4-a183-705681abff85"], ["organization_id", "3b2a8084-cebd-11e4-8519-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.476964"], ["updated_at", "2015-03-20 04:54:46.476964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$cBV91A6NRKOKKesdtnOaMuAScF.C7KK4cx1.SmWOJwMK5eZqmBg0G"], ["created_at", "2015-03-20 04:54:46.489587"], ["updated_at", "2015-03-20 04:54:46.489587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.491184"], ["user_id", "3b2cff08-cebd-11e4-b004-705681abff85"], ["created_at", "2015-03-20 04:54:46.491921"], ["updated_at", "2015-03-20 04:54:46.491921"], ["token", "lv5BeqgHfmxH0dqh8Obf4LBHIAE6EZmoqyOhSXA81hM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.495216"], ["updated_at", "2015-03-20 04:54:46.495216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b2cff08-cebd-11e4-b004-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b2dd554-cebd-11e4-9ded-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b2cff08-cebd-11e4-b004-705681abff85"], ["organization_id", "3b2dd554-cebd-11e4-9ded-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.498334"], ["updated_at", "2015-03-20 04:54:46.498334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-28" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-28", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.504646' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lv5BeqgHfmxH0dqh8Obf4LBHIAE6EZmoqyOhSXA81hM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.506080"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.507092"], ["id", "3b2d5d54-cebd-11e4-a569-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-28"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b2cff08-cebd-11e4-b004-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b2cff08-cebd-11e4-b004-705681abff85' LIMIT 1 [["organization_id", "3b2dd554-cebd-11e4-9ded-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3b2dd554-cebd-11e4-9ded-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$QKIraEncdMLQFC2jXdR0D.E3RoevMAzzMB2JgjbFfYqYndIBJ7vpO"], ["created_at", "2015-03-20 04:54:46.520786"], ["updated_at", "2015-03-20 04:54:46.520786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.522502"], ["user_id", "3b31c09c-cebd-11e4-a380-705681abff85"], ["created_at", "2015-03-20 04:54:46.523257"], ["updated_at", "2015-03-20 04:54:46.523257"], ["token", "Ou9AEQ3OGebZW4n9r-rl3tq-aGQ9-RH74m5ZMG81TRo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.527865"], ["updated_at", "2015-03-20 04:54:46.527865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b31c09c-cebd-11e4-a380-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b32d2e8-cebd-11e4-89c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b31c09c-cebd-11e4-a380-705681abff85"], ["organization_id", "3b32d2e8-cebd-11e4-89c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.531369"], ["updated_at", "2015-03-20 04:54:46.531369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-29" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-29", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:46.537185' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ou9AEQ3OGebZW4n9r-rl3tq-aGQ9-RH74m5ZMG81TRo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:46.540556"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:46.542616"], ["id", "3b3225fa-cebd-11e4-9848-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-29"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b31c09c-cebd-11e4-a380-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b31c09c-cebd-11e4-a380-705681abff85' LIMIT 1 [["organization_id", "3b32d2e8-cebd-11e4-89c6-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3b32d2e8-cebd-11e4-89c6-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 04:54:46.550400"], ["id", "3b32d2e8-cebd-11e4-89c6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$XjrxI3k6BCWAQWyCIceH1uOPBc5saSZlOUD8sHezGX9zabnxvVtc6"], ["created_at", "2015-03-20 04:54:46.558126"], ["updated_at", "2015-03-20 04:54:46.558126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.561152"], ["updated_at", "2015-03-20 04:54:46.561152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b377230-cebd-11e4-a4f3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b37e4b8-cebd-11e4-9a2a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b377230-cebd-11e4-a4f3-705681abff85"], ["organization_id", "3b37e4b8-cebd-11e4-9a2a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.564234"], ["updated_at", "2015-03-20 04:54:46.564234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b377230-cebd-11e4-a4f3-705681abff85' LIMIT 1 [["organization_id", "3b37e4b8-cebd-11e4-9a2a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$xp0beVDfYTvGe.M35PhS2eaQhdG6.QcugfvfrHphTGoQkogcz9mem"], ["created_at", "2015-03-20 04:54:46.572216"], ["updated_at", "2015-03-20 04:54:46.572216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.575305"], ["updated_at", "2015-03-20 04:54:46.575305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b3998f8-cebd-11e4-af87-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b3a0eb4-cebd-11e4-b28b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b3998f8-cebd-11e4-af87-705681abff85"], ["organization_id", "3b3a0eb4-cebd-11e4-b28b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.578404"], ["updated_at", "2015-03-20 04:54:46.578404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b3998f8-cebd-11e4-af87-705681abff85' LIMIT 1 [["organization_id", "3b3a0eb4-cebd-11e4-b28b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$CJvrhrYDf2B7vrE85yPPxupCT7KGBmsFx9eqVBzd1ivuXE9jqEUdq"], ["created_at", "2015-03-20 04:54:46.585792"], ["updated_at", "2015-03-20 04:54:46.585792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.589035"], ["updated_at", "2015-03-20 04:54:46.589035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b3bac24-cebd-11e4-a110-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b3c28fc-cebd-11e4-86b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b3bac24-cebd-11e4-a110-705681abff85"], ["organization_id", "3b3c28fc-cebd-11e4-86b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.592216"], ["updated_at", "2015-03-20 04:54:46.592216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b3bac24-cebd-11e4-a110-705681abff85' LIMIT 1 [["organization_id", "3b3c28fc-cebd-11e4-86b1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$5kAdDkaMfRGZTmfRO574weV8qZx/qXMu1pxZudJ29dMxKrWnHoNSi"], ["created_at", "2015-03-20 04:54:46.598993"], ["updated_at", "2015-03-20 04:54:46.598993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.603189"], ["updated_at", "2015-03-20 04:54:46.603189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b3dae2a-cebd-11e4-9358-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b3e59ce-cebd-11e4-aeb2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b3dae2a-cebd-11e4-9358-705681abff85"], ["organization_id", "3b3e59ce-cebd-11e4-aeb2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.606851"], ["updated_at", "2015-03-20 04:54:46.606851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$ng0sC8J81W8BLG19TUQezuv1FEF.xN6rW8BbAXOKVpKZ4eghcC2.C"], ["created_at", "2015-03-20 04:54:46.612702"], ["updated_at", "2015-03-20 04:54:46.612702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.615806"], ["updated_at", "2015-03-20 04:54:46.615806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b3fc764-cebd-11e4-84af-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b403e10-cebd-11e4-81dc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b3fc764-cebd-11e4-84af-705681abff85"], ["organization_id", "3b403e10-cebd-11e4-81dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.620170"], ["updated_at", "2015-03-20 04:54:46.620170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b3fc764-cebd-11e4-84af-705681abff85' LIMIT 1 [["organization_id", "3b403e10-cebd-11e4-81dc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$SE1f4Ie0eTjwgVHK8Gdnber5NVj9pdqg9jCQqmwk8VVit2qYG4Dn."], ["created_at", "2015-03-20 04:54:46.627683"], ["updated_at", "2015-03-20 04:54:46.627683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.631150"], ["updated_at", "2015-03-20 04:54:46.631150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b4211a4-cebd-11e4-a52a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b4296d8-cebd-11e4-98b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b4211a4-cebd-11e4-a52a-705681abff85"], ["organization_id", "3b4296d8-cebd-11e4-98b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.634684"], ["updated_at", "2015-03-20 04:54:46.634684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$CX2JITnUCp50aKIhSrE8ce8/stGh9YRnvNmRIphf0wHYI04SInJOe"], ["created_at", "2015-03-20 04:54:46.639129"], ["updated_at", "2015-03-20 04:54:46.639129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b43ccf6-cebd-11e4-9524-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b4296d8-cebd-11e4-98b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b43ccf6-cebd-11e4-9524-705681abff85"], ["organization_id", "3b4296d8-cebd-11e4-98b5-705681abff85"], ["created_at", "2015-03-20 04:54:46.642296"], ["updated_at", "2015-03-20 04:54:46.642296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b4211a4-cebd-11e4-a52a-705681abff85' LIMIT 1 [["organization_id", "3b4296d8-cebd-11e4-98b5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$UgzAUH7WRLiBlVugoaYD.uQerqqQ7fqNM6pVNPYZeT7qpU9/hFSTm"], ["created_at", "2015-03-20 04:54:46.649292"], ["updated_at", "2015-03-20 04:54:46.649292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.653023"], ["updated_at", "2015-03-20 04:54:46.653023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b455e9a-cebd-11e4-a83a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b45f08a-cebd-11e4-a2a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b455e9a-cebd-11e4-a83a-705681abff85"], ["organization_id", "3b45f08a-cebd-11e4-a2a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.656869"], ["updated_at", "2015-03-20 04:54:46.656869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$QqhQpqcnHuOL14TfI87c.OnPq0QNn5dDr5ou/GV9uEZXGuvRiMlh."], ["created_at", "2015-03-20 04:54:46.661491"], ["updated_at", "2015-03-20 04:54:46.661491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b4737a6-cebd-11e4-b94d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b45f08a-cebd-11e4-a2a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b4737a6-cebd-11e4-b94d-705681abff85"], ["organization_id", "3b45f08a-cebd-11e4-a2a9-705681abff85"], ["created_at", "2015-03-20 04:54:46.664942"], ["updated_at", "2015-03-20 04:54:46.664942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b455e9a-cebd-11e4-a83a-705681abff85' LIMIT 1 [["organization_id", "3b45f08a-cebd-11e4-a2a9-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$yYcEK2KhQkPH9hPQgdwA7.nTtkyEmAKlp.IOGwmqiwTZ2w.fc/yAu"], ["created_at", "2015-03-20 04:54:46.672885"], ["updated_at", "2015-03-20 04:54:46.672885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.676220"], ["updated_at", "2015-03-20 04:54:46.676220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b48f79e-cebd-11e4-9fb1-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b4976b0-cebd-11e4-9350-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b48f79e-cebd-11e4-9fb1-705681abff85"], ["organization_id", "3b4976b0-cebd-11e4-9350-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.679516"], ["updated_at", "2015-03-20 04:54:46.679516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$x2b/CuVoN0HkveCAXjQh.eqd.AuJ8qSpEdLuy8y0/8.w5PTuCdepy"], ["created_at", "2015-03-20 04:54:46.684259"], ["updated_at", "2015-03-20 04:54:46.684259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b4ab566-cebd-11e4-9041-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b4976b0-cebd-11e4-9350-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b4ab566-cebd-11e4-9041-705681abff85"], ["organization_id", "3b4976b0-cebd-11e4-9350-705681abff85"], ["created_at", "2015-03-20 04:54:46.687770"], ["updated_at", "2015-03-20 04:54:46.687770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$RkuuU.MRQcMw2WRtYGQCJe5aR8lTmxi/Qlug19YUlZ/hyAOozGLuG"], ["created_at", "2015-03-20 04:54:46.693325"], ["updated_at", "2015-03-20 04:54:46.693325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.696725"], ["updated_at", "2015-03-20 04:54:46.696725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b4c13a2-cebd-11e4-a04b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b4c9bd8-cebd-11e4-b12b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b4c13a2-cebd-11e4-a04b-705681abff85"], ["organization_id", "3b4c9bd8-cebd-11e4-b12b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.700382"], ["updated_at", "2015-03-20 04:54:46.700382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$Ulyjgs8Ia9GoFEGBmdTR2OW5CWLg2RUCfa0AsAyE7P.qfTGx1WDy6"], ["created_at", "2015-03-20 04:54:46.706515"], ["updated_at", "2015-03-20 04:54:46.706515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b4e25d4-cebd-11e4-bc49-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b4c9bd8-cebd-11e4-b12b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b4e25d4-cebd-11e4-bc49-705681abff85"], ["organization_id", "3b4c9bd8-cebd-11e4-b12b-705681abff85"], ["created_at", "2015-03-20 04:54:46.710604"], ["updated_at", "2015-03-20 04:54:46.710604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b4c13a2-cebd-11e4-a04b-705681abff85' LIMIT 1 [["organization_id", "3b4c9bd8-cebd-11e4-b12b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$/w0OWtR5V7kFgvW.3ykQB.RylBgv3nAu.DWEp6lth8EUQLxiLwdgW"], ["created_at", "2015-03-20 04:54:46.720004"], ["updated_at", "2015-03-20 04:54:46.720004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.723549"], ["updated_at", "2015-03-20 04:54:46.723549"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b502c9e-cebd-11e4-a75f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b50b1dc-cebd-11e4-9b2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b502c9e-cebd-11e4-a75f-705681abff85"], ["organization_id", "3b50b1dc-cebd-11e4-9b2a-705681abff85"], ["created_at", "2015-03-20 04:54:46.727559"], ["updated_at", "2015-03-20 04:54:46.727559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b502c9e-cebd-11e4-a75f-705681abff85' LIMIT 1 [["organization_id", "3b50b1dc-cebd-11e4-9b2a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$2dTNZWpJJ/WQwER7FatL7O8N6W2ZlsifYM3wPDjstTMfOiiQhq.vy"], ["created_at", "2015-03-20 04:54:46.735533"], ["updated_at", "2015-03-20 04:54:46.735533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.739418"], ["updated_at", "2015-03-20 04:54:46.739418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b52898a-cebd-11e4-a0b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b531fd0-cebd-11e4-845f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b52898a-cebd-11e4-a0b4-705681abff85"], ["organization_id", "3b531fd0-cebd-11e4-845f-705681abff85"], ["created_at", "2015-03-20 04:54:46.743041"], ["updated_at", "2015-03-20 04:54:46.743041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b52898a-cebd-11e4-a0b4-705681abff85' LIMIT 1 [["organization_id", "3b531fd0-cebd-11e4-845f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$l/65qBEdCzCOkMdnsi7Sd.Che8EADaQR6iXpa9UXFXnV.1Y9CB7zu"], ["created_at", "2015-03-20 04:54:46.750825"], ["updated_at", "2015-03-20 04:54:46.750825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.755748"], ["updated_at", "2015-03-20 04:54:46.755748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b54ddac-cebd-11e4-b3dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b559de6-cebd-11e4-a204-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b54ddac-cebd-11e4-b3dd-705681abff85"], ["organization_id", "3b559de6-cebd-11e4-a204-705681abff85"], ["created_at", "2015-03-20 04:54:46.759382"], ["updated_at", "2015-03-20 04:54:46.759382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$ajv.RvlAfj5kFytj/Rcb2.8WK2a29WM3ra22bo.WNyQH.XPj4c1/W"], ["created_at", "2015-03-20 04:54:46.767893"], ["updated_at", "2015-03-20 04:54:46.767893"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.773436"], ["updated_at", "2015-03-20 04:54:46.773436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b578f20-cebd-11e4-8dcd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b585a7c-cebd-11e4-aea2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b578f20-cebd-11e4-8dcd-705681abff85"], ["organization_id", "3b585a7c-cebd-11e4-aea2-705681abff85"], ["created_at", "2015-03-20 04:54:46.777300"], ["updated_at", "2015-03-20 04:54:46.777300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b578f20-cebd-11e4-8dcd-705681abff85' LIMIT 1 [["organization_id", "3b585a7c-cebd-11e4-aea2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$HHPj9DLy5D/5nl5NAoofbOVqbtxfUb6C.l.wK6t6aqws51EgjWHxi"], ["created_at", "2015-03-20 04:54:46.784113"], ["updated_at", "2015-03-20 04:54:46.784113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.787145"], ["updated_at", "2015-03-20 04:54:46.787145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b59ee3c-cebd-11e4-a9ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b5a62d6-cebd-11e4-92e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b59ee3c-cebd-11e4-a9ef-705681abff85"], ["organization_id", "3b5a62d6-cebd-11e4-92e2-705681abff85"], ["created_at", "2015-03-20 04:54:46.790452"], ["updated_at", "2015-03-20 04:54:46.790452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b59ee3c-cebd-11e4-a9ef-705681abff85' LIMIT 1 [["organization_id", "3b5a62d6-cebd-11e4-92e2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$ZOCgf5O3xfig7vZFvjil8uIHXlPZywa6H5xeVpOFtNFuDzdtKT70S"], ["created_at", "2015-03-20 04:54:46.797669"], ["updated_at", "2015-03-20 04:54:46.797669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$h3OVhzfPEp6bfrX10wWbrOC/BZvgW/0eMOqV0nTrgXnvyopAbI6HW"], ["created_at", "2015-03-20 04:54:46.801994"], ["updated_at", "2015-03-20 04:54:46.801994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.805497"], ["updated_at", "2015-03-20 04:54:46.805497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b5ca7a8-cebd-11e4-b78a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b5d3420-cebd-11e4-8367-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b5ca7a8-cebd-11e4-b78a-705681abff85"], ["organization_id", "3b5d3420-cebd-11e4-8367-705681abff85"], ["created_at", "2015-03-20 04:54:46.808938"], ["updated_at", "2015-03-20 04:54:46.808938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b5c0014-cebd-11e4-a7f6-705681abff85' LIMIT 1 [["organization_id", "3b5d3420-cebd-11e4-8367-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$uUb0hioxVW2ygVH9KjNkGeev2HzB6q0xl7t2ACQkP53S58RTS4qAy"], ["created_at", "2015-03-20 04:54:46.815922"], ["updated_at", "2015-03-20 04:54:46.815922"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$l6MTbeZsehrQ35EjPQ9Seu.PJpHB9EMDvBKAiK4gCKlCdYPG0XriO"], ["created_at", "2015-03-20 04:54:46.821736"], ["updated_at", "2015-03-20 04:54:46.821736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.825153"], ["updated_at", "2015-03-20 04:54:46.825153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b5fb128-cebd-11e4-857e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b6030f8-cebd-11e4-8087-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b5fb128-cebd-11e4-857e-705681abff85"], ["organization_id", "3b6030f8-cebd-11e4-8087-705681abff85"], ["created_at", "2015-03-20 04:54:46.828422"], ["updated_at", "2015-03-20 04:54:46.828422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b5ecc7c-cebd-11e4-8c29-705681abff85' LIMIT 1 [["organization_id", "3b6030f8-cebd-11e4-8087-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$qH6L9jizKUtoAYhr4yFDzefiyTQVjoSueCUffPAFOV690j4r8CvoW"], ["created_at", "2015-03-20 04:54:46.835310"], ["updated_at", "2015-03-20 04:54:46.835310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$izpjl9YQNxGPkpZYckTYpeAsSvOAGwwP4oSszTt.v9XefR13DLxPW"], ["created_at", "2015-03-20 04:54:46.839475"], ["updated_at", "2015-03-20 04:54:46.839475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.842658"], ["updated_at", "2015-03-20 04:54:46.842658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b625e8c-cebd-11e4-9c13-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b62dcf4-cebd-11e4-a367-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b625e8c-cebd-11e4-9c13-705681abff85"], ["organization_id", "3b62dcf4-cebd-11e4-a367-705681abff85"], ["created_at", "2015-03-20 04:54:46.845983"], ["updated_at", "2015-03-20 04:54:46.845983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$5b3ElntNA/0JoLJ9JlvSmesShQhW1qsCAVgcI9izogYNIm688wSny"], ["created_at", "2015-03-20 04:54:46.851761"], ["updated_at", "2015-03-20 04:54:46.851761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$u5Be7Ujf6InARw1eukjOIuaGf20ydDAEjLvxNvEodAHLVpwYF25TG"], ["created_at", "2015-03-20 04:54:46.856246"], ["updated_at", "2015-03-20 04:54:46.856246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.859401"], ["updated_at", "2015-03-20 04:54:46.859401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b64f052-cebd-11e4-8951-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b65694c-cebd-11e4-99cb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b64f052-cebd-11e4-8951-705681abff85"], ["organization_id", "3b65694c-cebd-11e4-99cb-705681abff85"], ["created_at", "2015-03-20 04:54:46.862558"], ["updated_at", "2015-03-20 04:54:46.862558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b643f40-cebd-11e4-b15a-705681abff85' LIMIT 1 [["organization_id", "3b65694c-cebd-11e4-99cb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$zbjue8woTJA7Ac2/2mukCeleFvn/uHOHEVTYQhJ4Z605VenTD/mom"], ["created_at", "2015-03-20 04:54:46.871176"], ["updated_at", "2015-03-20 04:54:46.871176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.874885"], ["updated_at", "2015-03-20 04:54:46.874885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b673ff6-cebd-11e4-8e3c-705681abff85' LIMIT 1 [["organization_id", "3b67c75a-cebd-11e4-a666-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.881636"], ["updated_at", "2015-03-20 04:54:46.881636"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '3b68cfc4-cebd-11e4-be87-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "3b68cfc4-cebd-11e4-be87-705681abff85"], ["created_at", "2015-03-20 04:54:46.885840"], ["updated_at", "2015-03-20 04:54:46.885840"], ["token", "wFZh8yW-0tfhLBpmCHdom4Xz8hxeMWFiRcP6qutwXQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.9ms) Date: Thu, 19 Mar 2015 21:54:46 -0700 From: from@example.com To: john@example.com Message-ID: <550ba816d9398_fda3fc544865be816843@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/wFZh8yW-0tfhLBpmCHdom4Xz8hxeMWFiRcP6qutwXQo?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.896823"], ["updated_at", "2015-03-20 04:54:46.896823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '3b6b25a8-cebd-11e4-9dcf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "3b6b25a8-cebd-11e4-9dcf-705681abff85"], ["created_at", "2015-03-20 04:54:46.901413"], ["updated_at", "2015-03-20 04:54:46.901413"], ["token", "t1uVlXYnmb2K_mtC5er6-iAogByEGlB9DhsAa-vY4U8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (3.2ms) Date: Thu, 19 Mar 2015 21:54:46 -0700 From: from@example.com To: john@example.com Message-ID: <550ba816dd18c_fda3fc544865be8169f8@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/t1uVlXYnmb2K_mtC5er6-iAogByEGlB9DhsAa-vY4U8?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.912207"], ["updated_at", "2015-03-20 04:54:46.912207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '3b6d7c7c-cebd-11e4-9d9f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "3b6d7c7c-cebd-11e4-9d9f-705681abff85"], ["created_at", "2015-03-20 04:54:46.915794"], ["updated_at", "2015-03-20 04:54:46.915794"], ["token", "hFwVJ-K6g5FkOGkK4cHKTk5SWvzLjT5MVna29-o1BRU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (2.8ms) Date: Thu, 19 Mar 2015 21:54:46 -0700 From: from@example.com To: john@example.com Message-ID: <550ba816e0be9_fda3fc544865be817046@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/hFwVJ-K6g5FkOGkK4cHKTk5SWvzLjT5MVna29-o1BRU?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.926002"], ["updated_at", "2015-03-20 04:54:46.926002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '3b6f955c-cebd-11e4-b878-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "3b6f955c-cebd-11e4-b878-705681abff85"], ["created_at", "2015-03-20 04:54:46.929452"], ["updated_at", "2015-03-20 04:54:46.929452"], ["token", "XQo2LuLMtHsKjxnP1PL1d3_kzjQdo7ln4qLeXW0xU8s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Thu, 19 Mar 2015 21:54:46 -0700 From: from@example.com To: john@example.com Message-ID: <550ba816e3c46_fda3fc544865be8171b7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/XQo2LuLMtHsKjxnP1PL1d3_kzjQdo7ln4qLeXW0xU8s?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$dYYog1umgegBJIBC9URPgOqppiYGxp8CK0DjAhaUVUTA2IfRiyvg6"], ["created_at", "2015-03-20 04:54:46.939178"], ["updated_at", "2015-03-20 04:54:46.939178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$w68eAnbt.8H15Y/8X5iAfuR9RN2ndS5u7So2uCbyinPKWU05tuJwW"], ["created_at", "2015-03-20 04:54:46.943418"], ["updated_at", "2015-03-20 04:54:46.943418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.945001"], ["user_id", "3b719802-cebd-11e4-a15e-705681abff85"], ["created_at", "2015-03-20 04:54:46.945879"], ["updated_at", "2015-03-20 04:54:46.945879"], ["token", "wQ_qCxIsrfOIrnsso5auZK-ieIWJL8ANEOfHWGBPl3g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.949434"], ["updated_at", "2015-03-20 04:54:46.949434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b719802-cebd-11e4-a15e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b732726-cebd-11e4-8ea0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b719802-cebd-11e4-a15e-705681abff85"], ["organization_id", "3b732726-cebd-11e4-8ea0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.952680"], ["updated_at", "2015-03-20 04:54:46.952680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b723ca8-cebd-11e4-b518-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b732726-cebd-11e4-8ea0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b723ca8-cebd-11e4-b518-705681abff85"], ["organization_id", "3b732726-cebd-11e4-8ea0-705681abff85"], ["created_at", "2015-03-20 04:54:46.956029"], ["updated_at", "2015-03-20 04:54:46.956029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$BcRNPXFwD/iySsJ.Bk7KVusQZM7IAzGP7cF1nNBTouhNyA6PRFe1W"], ["created_at", "2015-03-20 04:54:46.960274"], ["updated_at", "2015-03-20 04:54:46.960274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.961876"], ["user_id", "3b74cefa-cebd-11e4-8620-705681abff85"], ["created_at", "2015-03-20 04:54:46.962645"], ["updated_at", "2015-03-20 04:54:46.962645"], ["token", "M1XWaNzT3mi9Lpl4thAf7lybF5IL04qfSS5Piq8MKuM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '3b732726-cebd-11e4-8ea0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "3b732726-cebd-11e4-8ea0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.966219"], ["updated_at", "2015-03-20 04:54:46.966219"], ["token", "-HT0WFb7irX-YmaT9EyUCZ3PHPwKicYlYN9js0FZfUg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 21:54:46 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$GiFCTR4LkG67ja0/FcqJy.2HeX8zByofe.U8ADsGUe5K59DkmUnVq"], ["created_at", "2015-03-20 04:54:46.986061"], ["updated_at", "2015-03-20 04:54:46.986061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$gvUMNFu2/b3x0soWyumYxuuM7qOuBCLtz1FHAjATZEZUU.8UsMxkm"], ["created_at", "2015-03-20 04:54:46.990355"], ["updated_at", "2015-03-20 04:54:46.990355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:46.991825"], ["user_id", "3b78c302-cebd-11e4-893a-705681abff85"], ["created_at", "2015-03-20 04:54:46.992614"], ["updated_at", "2015-03-20 04:54:46.992614"], ["token", "XVyjaJGHuh54zp-uGyPQ3OQfCnGt5XkJmiuYC_8ggB8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:46.995911"], ["updated_at", "2015-03-20 04:54:46.995911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b78c302-cebd-11e4-893a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b7a3c28-cebd-11e4-94da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b78c302-cebd-11e4-893a-705681abff85"], ["organization_id", "3b7a3c28-cebd-11e4-94da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:46.999064"], ["updated_at", "2015-03-20 04:54:46.999064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b796442-cebd-11e4-ba98-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b7a3c28-cebd-11e4-94da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b796442-cebd-11e4-ba98-705681abff85"], ["organization_id", "3b7a3c28-cebd-11e4-94da-705681abff85"], ["created_at", "2015-03-20 04:54:47.002095"], ["updated_at", "2015-03-20 04:54:47.002095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$NVE2NUxZIUzuAVS9jBhRMOT4Wp0kV23OazRyNU2VWIDIpUlOaBj4m"], ["created_at", "2015-03-20 04:54:47.006301"], ["updated_at", "2015-03-20 04:54:47.006301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.007753"], ["user_id", "3b7bd2fe-cebd-11e4-ba7f-705681abff85"], ["created_at", "2015-03-20 04:54:47.008504"], ["updated_at", "2015-03-20 04:54:47.008504"], ["token", "pybKirj_YAPkwIr95mQa4HFNGU6mUPaVsllqk-kHfCQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '3b7a3c28-cebd-11e4-94da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "3b7a3c28-cebd-11e4-94da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.011994"], ["updated_at", "2015-03-20 04:54:47.011994"], ["token", "egXILprZO51EoShxcXRbdwXcwI_Qq4LXSFZPGy42zB4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3b7a3c28-cebd-11e4-94da-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"3b7a3c28-cebd-11e4-94da-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:47.017645' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pybKirj_YAPkwIr95mQa4HFNGU6mUPaVsllqk-kHfCQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:47.019200"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:47.020592"], ["id", "3b7c2f7e-cebd-11e4-b619-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3b7a3c28-cebd-11e4-94da-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b7bd2fe-cebd-11e4-ba7f-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$3NbvPZ7mKpvbynabNOJkPuXSLqeMI9rJGErZY89UsOc9NuqqVhyE6"], ["created_at", "2015-03-20 04:54:47.033413"], ["updated_at", "2015-03-20 04:54:47.033413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$G3LjQpX3oEpg3YF3rGReG.zhmtHrEHCZVQZuYAKC0SdAV4DsmIkze"], ["created_at", "2015-03-20 04:54:47.037637"], ["updated_at", "2015-03-20 04:54:47.037637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.039117"], ["user_id", "3b7ff802-cebd-11e4-9846-705681abff85"], ["created_at", "2015-03-20 04:54:47.039864"], ["updated_at", "2015-03-20 04:54:47.039864"], ["token", "SisOx95jYzueV3HYsAITo-P-dd8Je5ppKptL6eX37ec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.042980"], ["updated_at", "2015-03-20 04:54:47.042980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b7ff802-cebd-11e4-9846-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b816a3e-cebd-11e4-a3ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b7ff802-cebd-11e4-9846-705681abff85"], ["organization_id", "3b816a3e-cebd-11e4-a3ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.045971"], ["updated_at", "2015-03-20 04:54:47.045971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b809b68-cebd-11e4-8192-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b816a3e-cebd-11e4-a3ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b809b68-cebd-11e4-8192-705681abff85"], ["organization_id", "3b816a3e-cebd-11e4-a3ea-705681abff85"], ["created_at", "2015-03-20 04:54:47.048950"], ["updated_at", "2015-03-20 04:54:47.048950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$1hXhqhofdYBxuefD5MFlle9GwK7VXxYsDVEieGySVAEmGPcyRBVuC"], ["created_at", "2015-03-20 04:54:47.053133"], ["updated_at", "2015-03-20 04:54:47.053133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.054546"], ["user_id", "3b82f7b4-cebd-11e4-9ad7-705681abff85"], ["created_at", "2015-03-20 04:54:47.055297"], ["updated_at", "2015-03-20 04:54:47.055297"], ["token", "KAxpSQIjU-JHqckZvDIvbPGQLAyj6N0sw8-8wru9p_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '3b816a3e-cebd-11e4-a3ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "3b816a3e-cebd-11e4-a3ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.058749"], ["updated_at", "2015-03-20 04:54:47.058749"], ["token", "yvsQhaQaXW6_5d7Dclsh0eJphycwIs3XG2hFZa4hz28"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3b816a3e-cebd-11e4-a3ea-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"yvsQhaQaXW6_5d7Dclsh0eJphycwIs3XG2hFZa4hz28", "organization_id"=>"3b816a3e-cebd-11e4-a3ea-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:47.063940' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KAxpSQIjU-JHqckZvDIvbPGQLAyj6N0sw8-8wru9p_8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:47.065668"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:47.066675"], ["id", "3b8352f4-cebd-11e4-8299-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3b816a3e-cebd-11e4-a3ea-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b82f7b4-cebd-11e4-9ad7-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "yvsQhaQaXW6_5d7Dclsh0eJphycwIs3XG2hFZa4hz28"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b816a3e-cebd-11e4-a3ea-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b82f7b4-cebd-11e4-9ad7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b816a3e-cebd-11e4-a3ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "3b816a3e-cebd-11e4-a3ea-705681abff85"], ["member_id", "3b82f7b4-cebd-11e4-9ad7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.074074"], ["updated_at", "2015-03-20 04:54:47.074074"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "3b83d7c4-cebd-11e4-980c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 3.5ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$hOJGq9MUrhFGJYwG3DUgo.JaZbl6FoR8Q4n2A/efa6hUmTUVwEbwC"], ["created_at", "2015-03-20 04:54:47.087783"], ["updated_at", "2015-03-20 04:54:47.087783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$eRJ9.OeJlBvGenGeXufiz.0i5oVzskbPQFTUoz9BQWQDohjnXLdJe"], ["created_at", "2015-03-20 04:54:47.092215"], ["updated_at", "2015-03-20 04:54:47.092215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.093706"], ["user_id", "3b8849c6-cebd-11e4-a29c-705681abff85"], ["created_at", "2015-03-20 04:54:47.094453"], ["updated_at", "2015-03-20 04:54:47.094453"], ["token", "wv60Yfb6c1g9TBx4d7jwn_xu1AORgRSIWDReyRZPePA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.097631"], ["updated_at", "2015-03-20 04:54:47.097631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b8849c6-cebd-11e4-a29c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b89c0f8-cebd-11e4-8983-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b8849c6-cebd-11e4-a29c-705681abff85"], ["organization_id", "3b89c0f8-cebd-11e4-8983-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.100739"], ["updated_at", "2015-03-20 04:54:47.100739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b88efc0-cebd-11e4-9bac-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b89c0f8-cebd-11e4-8983-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b88efc0-cebd-11e4-9bac-705681abff85"], ["organization_id", "3b89c0f8-cebd-11e4-8983-705681abff85"], ["created_at", "2015-03-20 04:54:47.103906"], ["updated_at", "2015-03-20 04:54:47.103906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/3b8ab7ba-cebd-11e4-87a4-705681abff85" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"3b8ab7ba-cebd-11e4-87a4-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:47.108485' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wv60Yfb6c1g9TBx4d7jwn_xu1AORgRSIWDReyRZPePA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:47.110290"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:47.112126"], ["id", "3b894ce0-cebd-11e4-8846-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "3b8ab7ba-cebd-11e4-87a4-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b8849c6-cebd-11e4-a29c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3b89c0f8-cebd-11e4-8983-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3b8849c6-cebd-11e4-a29c-705681abff85' LIMIT 1 [["organization_id", "3b89c0f8-cebd-11e4-8983-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b88efc0-cebd-11e4-9bac-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b88efc0-cebd-11e4-9bac-705681abff85' AND "clubhouse_memberships"."id" != '3b8ab7ba-cebd-11e4-87a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b89c0f8-cebd-11e4-8983-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 04:54:47.119886"], ["id", "3b8ab7ba-cebd-11e4-87a4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.4ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$VIr8yI7mpDtv9Bf3/VZ99OF3VF0T5kiU9tIxPIn60JWlQPOC6jAvS"], ["created_at", "2015-03-20 04:54:47.128638"], ["updated_at", "2015-03-20 04:54:47.128638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$d0ztMtbQd6x20xkN6xVejeDx9uREcL.ZCYooUC6elFLcc1lwWLgyK"], ["created_at", "2015-03-20 04:54:47.133901"], ["updated_at", "2015-03-20 04:54:47.133901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.135938"], ["user_id", "3b8e7fb2-cebd-11e4-9def-705681abff85"], ["created_at", "2015-03-20 04:54:47.136767"], ["updated_at", "2015-03-20 04:54:47.136767"], ["token", "z0UIrvNWlJOr1-eQk36BMowkzYZGA2IaW_CiYGPkgec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.140945"], ["updated_at", "2015-03-20 04:54:47.140945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b8e7fb2-cebd-11e4-9def-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b905dd2-cebd-11e4-93af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b8e7fb2-cebd-11e4-9def-705681abff85"], ["organization_id", "3b905dd2-cebd-11e4-93af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.143965"], ["updated_at", "2015-03-20 04:54:47.143965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b8f5eb4-cebd-11e4-86cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b905dd2-cebd-11e4-93af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b8f5eb4-cebd-11e4-86cd-705681abff85"], ["organization_id", "3b905dd2-cebd-11e4-93af-705681abff85"], ["created_at", "2015-03-20 04:54:47.146831"], ["updated_at", "2015-03-20 04:54:47.146831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$g/M./CyXYttI48MK/7hN2.7o6HKHaY/.Z.ORURqlzi0S0c1UqtMBu"], ["created_at", "2015-03-20 04:54:47.156549"], ["updated_at", "2015-03-20 04:54:47.156549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$t/2.aE1UCRisO0padnYyUuAZxiwurlZj/TLh7cMWLXPZxfCaL6cYm"], ["created_at", "2015-03-20 04:54:47.160563"], ["updated_at", "2015-03-20 04:54:47.160563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.161954"], ["user_id", "3b92c1e4-cebd-11e4-be8e-705681abff85"], ["created_at", "2015-03-20 04:54:47.162704"], ["updated_at", "2015-03-20 04:54:47.162704"], ["token", "4TC-3QsWk3kni8BTgbStvWbHsVsFvI7B3urVeLA-Ikc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.165860"], ["updated_at", "2015-03-20 04:54:47.165860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b92c1e4-cebd-11e4-be8e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b942a34-cebd-11e4-ac36-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b92c1e4-cebd-11e4-be8e-705681abff85"], ["organization_id", "3b942a34-cebd-11e4-ac36-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.168849"], ["updated_at", "2015-03-20 04:54:47.168849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b935b4a-cebd-11e4-a7c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b942a34-cebd-11e4-ac36-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b935b4a-cebd-11e4-a7c9-705681abff85"], ["organization_id", "3b942a34-cebd-11e4-ac36-705681abff85"], ["created_at", "2015-03-20 04:54:47.171697"], ["updated_at", "2015-03-20 04:54:47.171697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/3b942a34-cebd-11e4-ac36-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"3b942a34-cebd-11e4-ac36-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:47.176486' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4TC-3QsWk3kni8BTgbStvWbHsVsFvI7B3urVeLA-Ikc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:47.178612"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:47.179772"], ["id", "3b93b680-cebd-11e4-9443-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3b942a34-cebd-11e4-ac36-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b92c1e4-cebd-11e4-be8e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b92c1e4-cebd-11e4-be8e-705681abff85' LIMIT 1 [["organization_id", "3b942a34-cebd-11e4-ac36-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "3b942a34-cebd-11e4-ac36-705681abff85"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('3b92c1e4-cebd-11e4-be8e-705681abff85', '3b935b4a-cebd-11e4-a7c9-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('3b942a34-cebd-11e4-ac36-705681abff85') Completed 200 OK in 15ms (Views: 4.4ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$P9BxrThiVh5wnRQTTt6g..YzvIJkTs6yXSHL0jct/uFjeJujzR8CW"], ["created_at", "2015-03-20 04:54:47.197060"], ["updated_at", "2015-03-20 04:54:47.197060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$6vHsFJ4M.TW17sCVqD/cCOb.nn7U4AD3gbRZr9oVqw78el1NVWmx2"], ["created_at", "2015-03-20 04:54:47.201090"], ["updated_at", "2015-03-20 04:54:47.201090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.202567"], ["user_id", "3b98f0be-cebd-11e4-b39a-705681abff85"], ["created_at", "2015-03-20 04:54:47.203323"], ["updated_at", "2015-03-20 04:54:47.203323"], ["token", "P4ciT_JWpNWzXyws1AJBMqIVOb_i3MbV74Nb5p88ODs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.206624"], ["updated_at", "2015-03-20 04:54:47.206624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b98f0be-cebd-11e4-b39a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b9a6368-cebd-11e4-9dbc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b98f0be-cebd-11e4-b39a-705681abff85"], ["organization_id", "3b9a6368-cebd-11e4-9dbc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.209691"], ["updated_at", "2015-03-20 04:54:47.209691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b998a60-cebd-11e4-883f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b9a6368-cebd-11e4-9dbc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b998a60-cebd-11e4-883f-705681abff85"], ["organization_id", "3b9a6368-cebd-11e4-9dbc-705681abff85"], ["created_at", "2015-03-20 04:54:47.212570"], ["updated_at", "2015-03-20 04:54:47.212570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$YU8cr94u2QaGnOD7NPOFhO6d7QMdRxeLJzPXE39TaGe319H1LItsa"], ["created_at", "2015-03-20 04:54:47.222139"], ["updated_at", "2015-03-20 04:54:47.222139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$8aofJ6BeJNgPJi3.FoTMEO7MPsKxbyX.KCI/t8E67M7218UOhR4Ii"], ["created_at", "2015-03-20 04:54:47.226120"], ["updated_at", "2015-03-20 04:54:47.226120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.227647"], ["user_id", "3b9cc43c-cebd-11e4-824d-705681abff85"], ["created_at", "2015-03-20 04:54:47.228558"], ["updated_at", "2015-03-20 04:54:47.228558"], ["token", "10fME3cV24ji8-O6xcEciniH3vX_nMbzYwFaGMW42a8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.232046"], ["updated_at", "2015-03-20 04:54:47.232046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b9cc43c-cebd-11e4-824d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b9e44a6-cebd-11e4-96a8-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b9cc43c-cebd-11e4-824d-705681abff85"], ["organization_id", "3b9e44a6-cebd-11e4-96a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.235120"], ["updated_at", "2015-03-20 04:54:47.235120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b9d5c8a-cebd-11e4-9b60-705681abff85' AND "clubhouse_memberships"."organization_id" = '3b9e44a6-cebd-11e4-96a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3b9d5c8a-cebd-11e4-9b60-705681abff85"], ["organization_id", "3b9e44a6-cebd-11e4-96a8-705681abff85"], ["created_at", "2015-03-20 04:54:47.240554"], ["updated_at", "2015-03-20 04:54:47.240554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:47.245661' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "10fME3cV24ji8-O6xcEciniH3vX_nMbzYwFaGMW42a8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:47.247302"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:47.249184"], ["id", "3b9dc8dc-cebd-11e4-b0aa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b9cc43c-cebd-11e4-824d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b9cc43c-cebd-11e4-824d-705681abff85' LIMIT 1 [["organization_id", "3b9e44a6-cebd-11e4-96a8-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "3b9e44a6-cebd-11e4-96a8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('3b9cc43c-cebd-11e4-824d-705681abff85', '3b9d5c8a-cebd-11e4-9b60-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('3b9e44a6-cebd-11e4-96a8-705681abff85') Completed 200 OK in 13ms (Views: 3.5ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$moouHJ7TeG.G.c52tvreHui2.r0pkBentr1/ZO57wludSiZ.OWy5e"], ["created_at", "2015-03-20 04:54:47.264861"], ["updated_at", "2015-03-20 04:54:47.264861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$ioTVdIJgLHsBa65iUSbBzuFemu7FJ/.EcaTA7vE2ovqMvTPPlWkpS"], ["created_at", "2015-03-20 04:54:47.268774"], ["updated_at", "2015-03-20 04:54:47.268774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.270172"], ["user_id", "3ba348c0-cebd-11e4-b02f-705681abff85"], ["created_at", "2015-03-20 04:54:47.270896"], ["updated_at", "2015-03-20 04:54:47.270896"], ["token", "ckSJLVosyrxFroCHZ5uOfK09iBe3G1EMOJLVb6DlkjM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.274074"], ["updated_at", "2015-03-20 04:54:47.274074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ba348c0-cebd-11e4-b02f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ba4acec-cebd-11e4-ad54-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ba348c0-cebd-11e4-b02f-705681abff85"], ["organization_id", "3ba4acec-cebd-11e4-ad54-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.277023"], ["updated_at", "2015-03-20 04:54:47.277023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ba3dec0-cebd-11e4-8301-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ba4acec-cebd-11e4-ad54-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ba3dec0-cebd-11e4-8301-705681abff85"], ["organization_id", "3ba4acec-cebd-11e4-ad54-705681abff85"], ["created_at", "2015-03-20 04:54:47.279890"], ["updated_at", "2015-03-20 04:54:47.279890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$1pM4cQBYY.SXisZrgWbM3.SAdndcgtfG0kxRJI8iJx0bIsIypTTYe"], ["created_at", "2015-03-20 04:54:47.290050"], ["updated_at", "2015-03-20 04:54:47.290050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$uNqOH.HeNB6ySLXUIkvuUOj0CkxU4uffniquP1s2U2FgtISk0jQNG"], ["created_at", "2015-03-20 04:54:47.294168"], ["updated_at", "2015-03-20 04:54:47.294168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.295721"], ["user_id", "3ba721f2-cebd-11e4-83d2-705681abff85"], ["created_at", "2015-03-20 04:54:47.296658"], ["updated_at", "2015-03-20 04:54:47.296658"], ["token", "kRF79NfIo52IgSh9bWFs3OM0p9S0Ma728hNKC_O2X8Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.300128"], ["updated_at", "2015-03-20 04:54:47.300128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ba721f2-cebd-11e4-83d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ba8a93c-cebd-11e4-8f31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ba721f2-cebd-11e4-83d2-705681abff85"], ["organization_id", "3ba8a93c-cebd-11e4-8f31-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.303306"], ["updated_at", "2015-03-20 04:54:47.303306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ba7bf7c-cebd-11e4-b9cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ba8a93c-cebd-11e4-8f31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ba7bf7c-cebd-11e4-b9cd-705681abff85"], ["organization_id", "3ba8a93c-cebd-11e4-8f31-705681abff85"], ["created_at", "2015-03-20 04:54:47.307021"], ["updated_at", "2015-03-20 04:54:47.307021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$3IoaDYh9Kbsev4oFxp7iyuRegg5ky3za0EWFkeNFS0SisH6kbyL5."], ["created_at", "2015-03-20 04:54:47.311590"], ["updated_at", "2015-03-20 04:54:47.311590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.313122"], ["user_id", "3baa6a60-cebd-11e4-97dd-705681abff85"], ["created_at", "2015-03-20 04:54:47.313852"], ["updated_at", "2015-03-20 04:54:47.313852"], ["token", "5tsX_1ZBdHF5lF3EWIfn7lmxvBPhVCmssArL4K3QwMo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '3ba8a93c-cebd-11e4-8f31-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "3ba8a93c-cebd-11e4-8f31-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.317411"], ["updated_at", "2015-03-20 04:54:47.317411"], ["token", "fuWwjIel4vqf0eh9xyZT8WVswcz11Q_vM8718asFHP0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$yevrP4sdSb1d2BL/F18AZ.OaAF8j8A/ZvZqosmfQCUiAgmnvKrHmq"], ["created_at", "2015-03-20 04:54:47.327424"], ["updated_at", "2015-03-20 04:54:47.327424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$XdxqCyRMKvzOnXXAeWmCEuWzKuLh21s8QYkEw8/7vWqoj7V5itzdG"], ["created_at", "2015-03-20 04:54:47.331570"], ["updated_at", "2015-03-20 04:54:47.331570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.332982"], ["user_id", "3bacd6c4-cebd-11e4-b6b6-705681abff85"], ["created_at", "2015-03-20 04:54:47.333731"], ["updated_at", "2015-03-20 04:54:47.333731"], ["token", "KQsAW_iBViGWEZt5h3R7Nu9P4zHftp9-CFs-5MyL6ao"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.337164"], ["updated_at", "2015-03-20 04:54:47.337164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bacd6c4-cebd-11e4-b6b6-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bae53e6-cebd-11e4-acd9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bacd6c4-cebd-11e4-b6b6-705681abff85"], ["organization_id", "3bae53e6-cebd-11e4-acd9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.340674"], ["updated_at", "2015-03-20 04:54:47.340674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bad73d6-cebd-11e4-bcb4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bae53e6-cebd-11e4-acd9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bad73d6-cebd-11e4-bcb4-705681abff85"], ["organization_id", "3bae53e6-cebd-11e4-acd9-705681abff85"], ["created_at", "2015-03-20 04:54:47.343482"], ["updated_at", "2015-03-20 04:54:47.343482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$1ygYbMmDKwZ/FeCVG.6cTenFduov06.OqbDB.GZ3q.caAvKkq6dlW"], ["created_at", "2015-03-20 04:54:47.347522"], ["updated_at", "2015-03-20 04:54:47.347522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.348922"], ["user_id", "3bafe35a-cebd-11e4-a392-705681abff85"], ["created_at", "2015-03-20 04:54:47.349656"], ["updated_at", "2015-03-20 04:54:47.349656"], ["token", "N9Stq4SHbUgwJoGTzlmfzlOC6JgES_mRlp1-buKyBdc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '3bae53e6-cebd-11e4-acd9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "3bae53e6-cebd-11e4-acd9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.353049"], ["updated_at", "2015-03-20 04:54:47.353049"], ["token", "cJ_eK93nbAcK1MTkbnWahdtAzgsDhuyn1BAy0jLpfek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:47.358365' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N9Stq4SHbUgwJoGTzlmfzlOC6JgES_mRlp1-buKyBdc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:47.359949"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:47.360980"], ["id", "3bb03d50-cebd-11e4-a55c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bafe35a-cebd-11e4-a392-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$lD0197wg/7LdTFn6p18iseddSpngAC8FkAR.DxTdr3RxFCiuZo93i"], ["created_at", "2015-03-20 04:54:47.371445"], ["updated_at", "2015-03-20 04:54:47.371445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$degoTDqL1Od5SG4hS8bjKOs0SzlmxlzwqPwVa8cyTbeJMQE423loy"], ["created_at", "2015-03-20 04:54:47.376756"], ["updated_at", "2015-03-20 04:54:47.376756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.383191"], ["user_id", "3bb39ffe-cebd-11e4-8945-705681abff85"], ["created_at", "2015-03-20 04:54:47.384395"], ["updated_at", "2015-03-20 04:54:47.384395"], ["token", "eOypdqqNU4iM-3td-C8usAT-B4V8p2IF8jLzf_fBSqw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.389720"], ["updated_at", "2015-03-20 04:54:47.389720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bb39ffe-cebd-11e4-8945-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bb66568-cebd-11e4-8cb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bb39ffe-cebd-11e4-8945-705681abff85"], ["organization_id", "3bb66568-cebd-11e4-8cb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.394423"], ["updated_at", "2015-03-20 04:54:47.394423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bb4fc28-cebd-11e4-98c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bb66568-cebd-11e4-8cb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bb4fc28-cebd-11e4-98c2-705681abff85"], ["organization_id", "3bb66568-cebd-11e4-8cb1-705681abff85"], ["created_at", "2015-03-20 04:54:47.398889"], ["updated_at", "2015-03-20 04:54:47.398889"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$yiqeHuIud3F.hUscKeALGe3NizFDa.7ebd956qbFZ7atvB.2OLGX6"], ["created_at", "2015-03-20 04:54:47.405358"], ["updated_at", "2015-03-20 04:54:47.405358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.408126"], ["user_id", "3bb8ca2e-cebd-11e4-9c5d-705681abff85"], ["created_at", "2015-03-20 04:54:47.409213"], ["updated_at", "2015-03-20 04:54:47.409213"], ["token", "r__uMueEWSNbLcfBjje5NGgv4vTWuo9yiO1TouOx1DM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '3bb66568-cebd-11e4-8cb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "3bb66568-cebd-11e4-8cb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.413454"], ["updated_at", "2015-03-20 04:54:47.413454"], ["token", "0vO3Y2n_7q4oUSJNs7fTCq77JKFW59ctBuZG2DefGTs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"0vO3Y2n_7q4oUSJNs7fTCq77JKFW59ctBuZG2DefGTs", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:47.418024' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r__uMueEWSNbLcfBjje5NGgv4vTWuo9yiO1TouOx1DM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:47.419539"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:47.420559"], ["id", "3bb95fde-cebd-11e4-8aa1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bb8ca2e-cebd-11e4-9c5d-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "0vO3Y2n_7q4oUSJNs7fTCq77JKFW59ctBuZG2DefGTs"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3bb66568-cebd-11e4-8cb1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bb8ca2e-cebd-11e4-9c5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bb66568-cebd-11e4-8cb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "3bb66568-cebd-11e4-8cb1-705681abff85"], ["member_id", "3bb8ca2e-cebd-11e4-9c5d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.428430"], ["updated_at", "2015-03-20 04:54:47.428430"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "3bb9fa70-cebd-11e4-b01c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$XYatQvDv9WcEa0aJ585FN.2DxDQjqczio19j1eAyvfbY6DHl4hESW"], ["created_at", "2015-03-20 04:54:47.437200"], ["updated_at", "2015-03-20 04:54:47.437200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$5TpGIMX04vg0kP1MQfeFDOH2FCkDLMJCZ0WDJyyqDrp58hwZKtwaS"], ["created_at", "2015-03-20 04:54:47.441621"], ["updated_at", "2015-03-20 04:54:47.441621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.443069"], ["user_id", "3bbd9784-cebd-11e4-9b86-705681abff85"], ["created_at", "2015-03-20 04:54:47.443814"], ["updated_at", "2015-03-20 04:54:47.443814"], ["token", "PmsSUNQ8GzW6dFkU39ljZBz30XuYEV3BJ71Pk94mzmg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.447032"], ["updated_at", "2015-03-20 04:54:47.447032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bbd9784-cebd-11e4-9b86-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bbf1212-cebd-11e4-80b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bbd9784-cebd-11e4-9b86-705681abff85"], ["organization_id", "3bbf1212-cebd-11e4-80b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.450036"], ["updated_at", "2015-03-20 04:54:47.450036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bbe3fc2-cebd-11e4-a68c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bbf1212-cebd-11e4-80b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bbe3fc2-cebd-11e4-a68c-705681abff85"], ["organization_id", "3bbf1212-cebd-11e4-80b6-705681abff85"], ["created_at", "2015-03-20 04:54:47.452856"], ["updated_at", "2015-03-20 04:54:47.452856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/3bbf8738-cebd-11e4-bfbb-705681abff85" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"3bbf8738-cebd-11e4-bfbb-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:47.457767' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PmsSUNQ8GzW6dFkU39ljZBz30XuYEV3BJ71Pk94mzmg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:47.459108"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:47.460130"], ["id", "3bbe9b5c-cebd-11e4-a09c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "3bbf8738-cebd-11e4-bfbb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bbd9784-cebd-11e4-9b86-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3bbf1212-cebd-11e4-80b6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3bbd9784-cebd-11e4-9b86-705681abff85' LIMIT 1 [["organization_id", "3bbf1212-cebd-11e4-80b6-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bbd9784-cebd-11e4-9b86-705681abff85"]] Completed 200 OK in 8ms (Views: 1.5ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$dz2OH8xNksjhoSjzT2shieNrh2anneqXqUWuWmQBTYpk2SzbjtXdW"], ["created_at", "2015-03-20 04:54:47.472865"], ["updated_at", "2015-03-20 04:54:47.472865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$jBHiko3fFk8fpJXi8J/e8eB4IaqnOobazicaEipYw/uvVDAafLEpK"], ["created_at", "2015-03-20 04:54:47.477499"], ["updated_at", "2015-03-20 04:54:47.477499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.478870"], ["user_id", "3bc317c2-cebd-11e4-87a6-705681abff85"], ["created_at", "2015-03-20 04:54:47.479589"], ["updated_at", "2015-03-20 04:54:47.479589"], ["token", "gkM4qw87up-r82Dx19G1oOzbadKG3w5Dsu_SYi2EozU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.482820"], ["updated_at", "2015-03-20 04:54:47.482820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bc317c2-cebd-11e4-87a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bc489ea-cebd-11e4-83ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bc317c2-cebd-11e4-87a6-705681abff85"], ["organization_id", "3bc489ea-cebd-11e4-83ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.485956"], ["updated_at", "2015-03-20 04:54:47.485956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bc3b826-cebd-11e4-8511-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bc489ea-cebd-11e4-83ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bc3b826-cebd-11e4-8511-705681abff85"], ["organization_id", "3bc489ea-cebd-11e4-83ad-705681abff85"], ["created_at", "2015-03-20 04:54:47.488964"], ["updated_at", "2015-03-20 04:54:47.488964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$P4Hwi/Vl1lcSY5RT6DHodOX354mbTxsTLVQc/KvXVZrJDZh.dDoze"], ["created_at", "2015-03-20 04:54:47.499132"], ["updated_at", "2015-03-20 04:54:47.499132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$rqh5uK/7E.0blViqKHwodObNMca5/URMQrAU63LwmjNJhvnEjzaWK"], ["created_at", "2015-03-20 04:54:47.503146"], ["updated_at", "2015-03-20 04:54:47.503146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.504671"], ["user_id", "3bc70832-cebd-11e4-9c07-705681abff85"], ["created_at", "2015-03-20 04:54:47.505449"], ["updated_at", "2015-03-20 04:54:47.505449"], ["token", "tFsU5KspimQs0oOJbcW4sA3WzTiyYbtmAe_VIyTfwZU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.509117"], ["updated_at", "2015-03-20 04:54:47.509117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bc70832-cebd-11e4-9c07-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bc88c84-cebd-11e4-9b30-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bc70832-cebd-11e4-9c07-705681abff85"], ["organization_id", "3bc88c84-cebd-11e4-9b30-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.512403"], ["updated_at", "2015-03-20 04:54:47.512403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bc7a53a-cebd-11e4-8e93-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bc88c84-cebd-11e4-9b30-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bc7a53a-cebd-11e4-8e93-705681abff85"], ["organization_id", "3bc88c84-cebd-11e4-9b30-705681abff85"], ["created_at", "2015-03-20 04:54:47.524071"], ["updated_at", "2015-03-20 04:54:47.524071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/3bcad80e-cebd-11e4-8c0d-705681abff85" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"3bcad80e-cebd-11e4-8c0d-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:54:47.528626' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tFsU5KspimQs0oOJbcW4sA3WzTiyYbtmAe_VIyTfwZU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:54:47.530036"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:54:47.531013"], ["id", "3bc804b2-cebd-11e4-9fa5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "3bcad80e-cebd-11e4-8c0d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bc70832-cebd-11e4-9c07-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3bc88c84-cebd-11e4-9b30-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bc70832-cebd-11e4-9c07-705681abff85' LIMIT 1 [["organization_id", "3bc88c84-cebd-11e4-9b30-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bc7a53a-cebd-11e4-8e93-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "3bcad80e-cebd-11e4-8c0d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$b7zI.e3gATMY4yi7nq3EEO/JbxrKRXxbxE/yA3pIdZ0Hk6Pyuf/au"], ["created_at", "2015-03-20 04:54:47.542847"], ["updated_at", "2015-03-20 04:54:47.542847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$lJNh/dnHWY2fL7utx3/yKOF1gO.mzLU41haPTsQGHEHyTpvtz80he"], ["created_at", "2015-03-20 04:54:47.547919"], ["updated_at", "2015-03-20 04:54:47.547919"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:54:47.550131"], ["user_id", "3bcdb402-cebd-11e4-a9b4-705681abff85"], ["created_at", "2015-03-20 04:54:47.551501"], ["updated_at", "2015-03-20 04:54:47.551501"], ["token", "y5UZ3aSA3ebuQh_bR_cDB0u07S7RtrybZabYHGm3__c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.556282"], ["updated_at", "2015-03-20 04:54:47.556282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bcdb402-cebd-11e4-a9b4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bcfe3ee-cebd-11e4-aa27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bcdb402-cebd-11e4-a9b4-705681abff85"], ["organization_id", "3bcfe3ee-cebd-11e4-aa27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.562220"], ["updated_at", "2015-03-20 04:54:47.562220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bce79dc-cebd-11e4-be40-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bcfe3ee-cebd-11e4-aa27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bce79dc-cebd-11e4-be40-705681abff85"], ["organization_id", "3bcfe3ee-cebd-11e4-aa27-705681abff85"], ["created_at", "2015-03-20 04:54:47.568176"], ["updated_at", "2015-03-20 04:54:47.568176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 21:54:47 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.600418"], ["updated_at", "2015-03-20 04:54:47.600418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '3bd67de4-cebd-11e4-94b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "3bd67de4-cebd-11e4-94b4-705681abff85"], ["created_at", "2015-03-20 04:54:47.603390"], ["updated_at", "2015-03-20 04:54:47.603390"], ["token", "J4ZYYSL42HIFXnave1EZCaasJ9rrpNaGSw659GivrcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3bd67de4-cebd-11e4-94b4-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '3bd67de4-cebd-11e4-94b4-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3bd67de4-cebd-11e4-94b4-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '3bd67de4-cebd-11e4-94b4-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.621527"], ["updated_at", "2015-03-20 04:54:47.621527"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3bd9c5d0-cebd-11e4-beb7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "3bd9c5d0-cebd-11e4-beb7-705681abff85"], ["created_at", "2015-03-20 04:54:47.626182"], ["updated_at", "2015-03-20 04:54:47.626182"], ["token", "rWPCksd9RvYWAE32Y_bg9_r06jOAZDYGFakds2Kv890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.633954"], ["updated_at", "2015-03-20 04:54:47.633954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.643907"], ["updated_at", "2015-03-20 04:54:47.643907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.656573"], ["updated_at", "2015-03-20 04:54:47.656573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.680572"], ["updated_at", "2015-03-20 04:54:47.680572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.685091"], ["updated_at", "2015-03-20 04:54:47.685091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3be36856-cebd-11e4-9fa4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$eCj0MKb92R0GQwsPPL4fKOoELu1xdkJulcC6joAlhGJz91eeP5vFG"], ["created_at", "2015-03-20 04:54:47.692666"], ["updated_at", "2015-03-20 04:54:47.692666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.696140"], ["updated_at", "2015-03-20 04:54:47.696140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3be495b4-cebd-11e4-84a2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3be5171e-cebd-11e4-80d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3be495b4-cebd-11e4-84a2-705681abff85"], ["organization_id", "3be5171e-cebd-11e4-80d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.699479"], ["updated_at", "2015-03-20 04:54:47.699479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '3be5171e-cebd-11e4-80d1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "3be5171e-cebd-11e4-80d1-705681abff85"], ["created_at", "2015-03-20 04:54:47.702890"], ["updated_at", "2015-03-20 04:54:47.702890"], ["token", "uREU6QKH_tsWpvkw6LRi9KG1lYGcL29TWkUPYQ0JVeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3be495b4-cebd-11e4-84a2-705681abff85' LIMIT 1 [["organization_id", "3be5171e-cebd-11e4-80d1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$jhJe.Utg4WHmNDz1dlk3yOi9p2KDA6dHkkq/ibZ7B0eCfSoU/Bxii"], ["created_at", "2015-03-20 04:54:47.710432"], ["updated_at", "2015-03-20 04:54:47.710432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.713573"], ["updated_at", "2015-03-20 04:54:47.713573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3be74732-cebd-11e4-b9c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '3be7c04a-cebd-11e4-8a5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3be74732-cebd-11e4-b9c0-705681abff85"], ["organization_id", "3be7c04a-cebd-11e4-8a5a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.716811"], ["updated_at", "2015-03-20 04:54:47.716811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '3be7c04a-cebd-11e4-8a5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "3be7c04a-cebd-11e4-8a5a-705681abff85"], ["created_at", "2015-03-20 04:54:47.720113"], ["updated_at", "2015-03-20 04:54:47.720113"], ["token", "304DLHLikSn2lZ0vwzS9ijF_6Lg-H6m0cIibetcU-rE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3be74732-cebd-11e4-b9c0-705681abff85' LIMIT 1 [["organization_id", "3be7c04a-cebd-11e4-8a5a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$5d8iSMeco8DB2xUzb2XQfubJo5qBVO1rPR9zIQTyFDdWgO6prbPnS"], ["created_at", "2015-03-20 04:54:47.727808"], ["updated_at", "2015-03-20 04:54:47.727808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.731128"], ["updated_at", "2015-03-20 04:54:47.731128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3be9eea6-cebd-11e4-8381-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bea6ce6-cebd-11e4-bd0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3be9eea6-cebd-11e4-8381-705681abff85"], ["organization_id", "3bea6ce6-cebd-11e4-bd0f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.734360"], ["updated_at", "2015-03-20 04:54:47.734360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '3bea6ce6-cebd-11e4-bd0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "3bea6ce6-cebd-11e4-bd0f-705681abff85"], ["created_at", "2015-03-20 04:54:47.737650"], ["updated_at", "2015-03-20 04:54:47.737650"], ["token", "CMmU-leFKorG5UFDtJpLARxnbOHsoMFXEhdp76yEMnk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3be9eea6-cebd-11e4-8381-705681abff85' LIMIT 1 [["organization_id", "3bea6ce6-cebd-11e4-bd0f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$sJs6KwC9/AOza1FjbH77fex0Dbhp34MYPSOgRpiziLZ128PlltAWe"], ["created_at", "2015-03-20 04:54:47.745793"], ["updated_at", "2015-03-20 04:54:47.745793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.749120"], ["updated_at", "2015-03-20 04:54:47.749120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3becaf38-cebd-11e4-9c4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bed2b48-cebd-11e4-845d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3becaf38-cebd-11e4-9c4d-705681abff85"], ["organization_id", "3bed2b48-cebd-11e4-845d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.752586"], ["updated_at", "2015-03-20 04:54:47.752586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '3bed2b48-cebd-11e4-845d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "3bed2b48-cebd-11e4-845d-705681abff85"], ["created_at", "2015-03-20 04:54:47.756115"], ["updated_at", "2015-03-20 04:54:47.756115"], ["token", "lQkdu-5E0lUD7ARTcvnQor4Z35gIb8Y9tMm5NdX1-_w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3becaf38-cebd-11e4-9c4d-705681abff85' LIMIT 1 [["organization_id", "3bed2b48-cebd-11e4-845d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$I02ZLNPWepwBQ1m2YwT4QOP20U5dY7jUGcnUEYdpfpOBdw.X85NwS"], ["created_at", "2015-03-20 04:54:47.763536"], ["updated_at", "2015-03-20 04:54:47.763536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.766691"], ["updated_at", "2015-03-20 04:54:47.766691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bef6188-cebd-11e4-8268-705681abff85' AND "clubhouse_memberships"."organization_id" = '3befd8de-cebd-11e4-a0f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bef6188-cebd-11e4-8268-705681abff85"], ["organization_id", "3befd8de-cebd-11e4-a0f9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.769849"], ["updated_at", "2015-03-20 04:54:47.769849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bef6188-cebd-11e4-8268-705681abff85' LIMIT 1 [["organization_id", "3befd8de-cebd-11e4-a0f9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$VbvchAXUhicKHNpYgtCxoO/xaMITSZjpqslgKekVSy00ybjvP72Aq"], ["created_at", "2015-03-20 04:54:47.777553"], ["updated_at", "2015-03-20 04:54:47.777553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.780994"], ["updated_at", "2015-03-20 04:54:47.780994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bf189cc-cebd-11e4-aee2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bf20ab4-cebd-11e4-8b07-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bf189cc-cebd-11e4-aee2-705681abff85"], ["organization_id", "3bf20ab4-cebd-11e4-8b07-705681abff85"], ["created_at", "2015-03-20 04:54:47.784203"], ["updated_at", "2015-03-20 04:54:47.784203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '3bf20ab4-cebd-11e4-8b07-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "3bf20ab4-cebd-11e4-8b07-705681abff85"], ["created_at", "2015-03-20 04:54:47.787639"], ["updated_at", "2015-03-20 04:54:47.787639"], ["token", "0T1NySpHtsWgl3lMSUez81H68RpjvAW4YMpyBENJ6gI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bf189cc-cebd-11e4-aee2-705681abff85' LIMIT 1 [["organization_id", "3bf20ab4-cebd-11e4-8b07-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$Pd3ARLNJ7EY4L7RGR7.QNOhBv2EwQO.IIf0LxiKwU0iPMTrw16XpO"], ["created_at", "2015-03-20 04:54:47.796249"], ["updated_at", "2015-03-20 04:54:47.796249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.799538"], ["updated_at", "2015-03-20 04:54:47.799538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bf45f9e-cebd-11e4-91aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bf4df3c-cebd-11e4-98ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bf45f9e-cebd-11e4-91aa-705681abff85"], ["organization_id", "3bf4df3c-cebd-11e4-98ca-705681abff85"], ["created_at", "2015-03-20 04:54:47.802866"], ["updated_at", "2015-03-20 04:54:47.802866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '3bf4df3c-cebd-11e4-98ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "3bf4df3c-cebd-11e4-98ca-705681abff85"], ["created_at", "2015-03-20 04:54:47.806398"], ["updated_at", "2015-03-20 04:54:47.806398"], ["token", "WbjvQrkSUrKIHMxjvT5X2m9h4JEVCYVy0NwgGMg57VQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bf45f9e-cebd-11e4-91aa-705681abff85' LIMIT 1 [["organization_id", "3bf4df3c-cebd-11e4-98ca-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$NMBbl4o1WhNglW8o9TkDe.RGBWWm7uADwraVN3Xn.hUHvMSy7.Gv6"], ["created_at", "2015-03-20 04:54:47.813487"], ["updated_at", "2015-03-20 04:54:47.813487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.816645"], ["updated_at", "2015-03-20 04:54:47.816645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bf70122-cebd-11e4-9277-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bf779ea-cebd-11e4-b88c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bf70122-cebd-11e4-9277-705681abff85"], ["organization_id", "3bf779ea-cebd-11e4-b88c-705681abff85"], ["created_at", "2015-03-20 04:54:47.819802"], ["updated_at", "2015-03-20 04:54:47.819802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '3bf779ea-cebd-11e4-b88c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "3bf779ea-cebd-11e4-b88c-705681abff85"], ["created_at", "2015-03-20 04:54:47.823224"], ["updated_at", "2015-03-20 04:54:47.823224"], ["token", "Fp-arhUCF1NDSv-3z24PyIkaxsfxqrdrs7MtBDg1JPQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bf70122-cebd-11e4-9277-705681abff85' LIMIT 1 [["organization_id", "3bf779ea-cebd-11e4-b88c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$c.3xl96HMh0gSLgbvrl04u/AO/6Hdv8MwPKcgZCV/X9CKwkeNHGwy"], ["created_at", "2015-03-20 04:54:47.830897"], ["updated_at", "2015-03-20 04:54:47.830897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.834161"], ["updated_at", "2015-03-20 04:54:47.834161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bf9a9b8-cebd-11e4-8a5e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bfa26d6-cebd-11e4-9055-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bf9a9b8-cebd-11e4-8a5e-705681abff85"], ["organization_id", "3bfa26d6-cebd-11e4-9055-705681abff85"], ["created_at", "2015-03-20 04:54:47.837354"], ["updated_at", "2015-03-20 04:54:47.837354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '3bfa26d6-cebd-11e4-9055-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "3bfa26d6-cebd-11e4-9055-705681abff85"], ["created_at", "2015-03-20 04:54:47.843214"], ["updated_at", "2015-03-20 04:54:47.843214"], ["token", "xk51c0UA1kMNBo5VoXkPS51MY2Rvg2K7JO84slNzV3c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bf9a9b8-cebd-11e4-8a5e-705681abff85' LIMIT 1 [["organization_id", "3bfa26d6-cebd-11e4-9055-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$sm/kytbwOVTt3..8G9JCFe4wHIV5nG6rVIXW2dtiGI3k8weqh2oXa"], ["created_at", "2015-03-20 04:54:47.851100"], ["updated_at", "2015-03-20 04:54:47.851100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.854432"], ["updated_at", "2015-03-20 04:54:47.854432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bfcbe1e-cebd-11e4-b570-705681abff85' AND "clubhouse_memberships"."organization_id" = '3bfd3ec0-cebd-11e4-8fc8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3bfcbe1e-cebd-11e4-b570-705681abff85"], ["organization_id", "3bfd3ec0-cebd-11e4-8fc8-705681abff85"], ["created_at", "2015-03-20 04:54:47.857861"], ["updated_at", "2015-03-20 04:54:47.857861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bfcbe1e-cebd-11e4-b570-705681abff85' LIMIT 1 [["organization_id", "3bfd3ec0-cebd-11e4-8fc8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$l/cL2ARGMowuF7AtLgFw0u26dcipQgMa6FQldqSBrQGstsK7NtB.G"], ["created_at", "2015-03-20 04:54:47.865150"], ["updated_at", "2015-03-20 04:54:47.865150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.868237"], ["updated_at", "2015-03-20 04:54:47.868237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '3bff5a0c-cebd-11e4-ae0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "3bff5a0c-cebd-11e4-ae0e-705681abff85"], ["created_at", "2015-03-20 04:54:47.871605"], ["updated_at", "2015-03-20 04:54:47.871605"], ["token", "uOkAnYGt-XDrWp1xWtDHoDiFTyrSqS3q3_X4dP3WOEA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3bfee270-cebd-11e4-be4a-705681abff85' LIMIT 1 [["organization_id", "3bff5a0c-cebd-11e4-ae0e-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$fnh1.Iov03hEOd1iMNCPeeZH7GkSqxmH9Ro5WSfosrBNC4G8nRQi2"], ["created_at", "2015-03-20 04:54:47.879729"], ["updated_at", "2015-03-20 04:54:47.879729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.883103"], ["updated_at", "2015-03-20 04:54:47.883103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '3c019e16-cebd-11e4-b3d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "3c019e16-cebd-11e4-b3d2-705681abff85"], ["created_at", "2015-03-20 04:54:47.886446"], ["updated_at", "2015-03-20 04:54:47.886446"], ["token", "c922HAGFmfWkJQzAw2WyrDNH8Uyc-vgHGA9eGWB2VeI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c011e14-cebd-11e4-bd3b-705681abff85' LIMIT 1 [["organization_id", "3c019e16-cebd-11e4-b3d2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$ScD7byFsaW0Mf5C36tqUb.gz7ZK6spuXfHvYtn4UEAix/zLgpSSDq"], ["created_at", "2015-03-20 04:54:47.894709"], ["updated_at", "2015-03-20 04:54:47.894709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.898042"], ["updated_at", "2015-03-20 04:54:47.898042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '3c03e54a-cebd-11e4-8dd6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "3c03e54a-cebd-11e4-8dd6-705681abff85"], ["created_at", "2015-03-20 04:54:47.901623"], ["updated_at", "2015-03-20 04:54:47.901623"], ["token", "My0dnl9zF_0YGI1kCSkYV86f_LBOEiHjSHko01GDz6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c036836-cebd-11e4-a9cf-705681abff85' LIMIT 1 [["organization_id", "3c03e54a-cebd-11e4-8dd6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$gBAiBxm.ueAbqKMRyRcDrOHth1Q1E5ahh1rBFffqe7Xh55X7bokmW"], ["created_at", "2015-03-20 04:54:47.909376"], ["updated_at", "2015-03-20 04:54:47.909376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.912600"], ["updated_at", "2015-03-20 04:54:47.912600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '3c061f4a-cebd-11e4-a091-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "3c061f4a-cebd-11e4-a091-705681abff85"], ["created_at", "2015-03-20 04:54:47.916128"], ["updated_at", "2015-03-20 04:54:47.916128"], ["token", "VO4fD3sKqgQjNwkFJ6HAi0Xc7cVwpBZXp5CdqLWkSk0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c05a45c-cebd-11e4-b2e0-705681abff85' LIMIT 1 [["organization_id", "3c061f4a-cebd-11e4-a091-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$uq6C8KYgL1Ww9X6Rbp7SfOQmqMPqrV3uDlndP3JTBaRGsnP.W86OG"], ["created_at", "2015-03-20 04:54:47.923384"], ["updated_at", "2015-03-20 04:54:47.923384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.926992"], ["updated_at", "2015-03-20 04:54:47.926992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c07c584-cebd-11e4-b612-705681abff85' LIMIT 1 [["organization_id", "3c08529c-cebd-11e4-b6f4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$2toc94pgTlXTvizC2txj/en/mYB8IUBdcLONk6KxCFf.wStsvtcv."], ["created_at", "2015-03-20 04:54:47.934696"], ["updated_at", "2015-03-20 04:54:47.934696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.937841"], ["updated_at", "2015-03-20 04:54:47.937841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3c09802c-cebd-11e4-8a7b-705681abff85' LIMIT 1 [["organization_id", "3c09f868-cebd-11e4-a752-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$pykJYLRDnfMWZuXImBQOQeP5P1Ql84ZSi3wCwlqZWCleP0c04hxei"], ["created_at", "2015-03-20 04:54:47.945854"], ["updated_at", "2015-03-20 04:54:47.945854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.949127"], ["updated_at", "2015-03-20 04:54:47.949127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$XmcgWargKAusTav2mq.zr.SSIqFDLFjUWq2a4vMpxcV261AAMd3QK"], ["created_at", "2015-03-20 04:54:47.954681"], ["updated_at", "2015-03-20 04:54:47.954681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.957915"], ["updated_at", "2015-03-20 04:54:47.957915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$x9zHHs8RFRxyZpKrmBFFJOjJGtAyrTl91ekhPohOzHlING4kxXDQu"], ["created_at", "2015-03-20 04:54:47.963483"], ["updated_at", "2015-03-20 04:54:47.963483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.966590"], ["updated_at", "2015-03-20 04:54:47.966590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c0de338-cebd-11e4-928d-705681abff85' LIMIT 1 [["organization_id", "3c0e5b74-cebd-11e4-afcf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$50RxlMg0W.u3R6cdVgHq/u4xNdQ0UlKvt9EgP0xOmkqNjiXP8UgTK"], ["created_at", "2015-03-20 04:54:47.973479"], ["updated_at", "2015-03-20 04:54:47.973479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.977083"], ["updated_at", "2015-03-20 04:54:47.977083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c0f6bc2-cebd-11e4-b657-705681abff85' LIMIT 1 [["organization_id", "3c0ff8da-cebd-11e4-8343-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$ctubXW0CU.NLm2rT/RRxP.eKBhi06wXOss.fkFf4F8FmOxiAG38ne"], ["created_at", "2015-03-20 04:54:47.984201"], ["updated_at", "2015-03-20 04:54:47.984201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:47.987395"], ["updated_at", "2015-03-20 04:54:47.987395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c110dce-cebd-11e4-8533-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c118830-cebd-11e4-b5b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c110dce-cebd-11e4-8533-705681abff85"], ["organization_id", "3c118830-cebd-11e4-b5b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:47.990732"], ["updated_at", "2015-03-20 04:54:47.990732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3c110dce-cebd-11e4-8533-705681abff85' LIMIT 1 [["organization_id", "3c118830-cebd-11e4-b5b0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$30WutEWs6iUrC7sl8iP9FODLFIzyoU/wUV0QfQfPnKFIVsaWftzL6"], ["created_at", "2015-03-20 04:54:47.998759"], ["updated_at", "2015-03-20 04:54:47.998759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:48.002001"], ["updated_at", "2015-03-20 04:54:48.002001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c1347f6-cebd-11e4-a955-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c13c334-cebd-11e4-9a7c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c1347f6-cebd-11e4-a955-705681abff85"], ["organization_id", "3c13c334-cebd-11e4-9a7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:48.005231"], ["updated_at", "2015-03-20 04:54:48.005231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$HmkUfyWZUP7fAk2M5Vzjou58q5y56Uu/G7pqIpoHhMbUOl8uPq6Ii"], ["created_at", "2015-03-20 04:54:48.011187"], ["updated_at", "2015-03-20 04:54:48.011187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:48.014459"], ["updated_at", "2015-03-20 04:54:48.014459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c152bac-cebd-11e4-aacd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c15a992-cebd-11e4-ba65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c152bac-cebd-11e4-aacd-705681abff85"], ["organization_id", "3c15a992-cebd-11e4-ba65-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:48.018136"], ["updated_at", "2015-03-20 04:54:48.018136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$gej3cWpFyPq4E1Ej/OJdrubRP3VSD.w1hxKfd1Gnrc933R7Ze.JLK"], ["created_at", "2015-03-20 04:54:48.024843"], ["updated_at", "2015-03-20 04:54:48.024843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:48.028569"], ["updated_at", "2015-03-20 04:54:48.028569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c17427a-cebd-11e4-ae18-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c17d2c6-cebd-11e4-9ff1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c17427a-cebd-11e4-ae18-705681abff85"], ["organization_id", "3c17d2c6-cebd-11e4-9ff1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:48.032289"], ["updated_at", "2015-03-20 04:54:48.032289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c17427a-cebd-11e4-ae18-705681abff85' LIMIT 1 [["organization_id", "3c17d2c6-cebd-11e4-9ff1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$Ysu4qeaN5xrNevZT.gPyW.3nylujH/Mb1w7bcPY.d7leOEuBu6bHa"], ["created_at", "2015-03-20 04:54:48.039505"], ["updated_at", "2015-03-20 04:54:48.039505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:48.043468"], ["updated_at", "2015-03-20 04:54:48.043468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c197e82-cebd-11e4-8bf9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c1a1fae-cebd-11e4-a9cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c197e82-cebd-11e4-8bf9-705681abff85"], ["organization_id", "3c1a1fae-cebd-11e4-a9cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:54:48.047355"], ["updated_at", "2015-03-20 04:54:48.047355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c197e82-cebd-11e4-8bf9-705681abff85' LIMIT 1 [["organization_id", "3c1a1fae-cebd-11e4-a9cc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$FKmXzvFq2/8cNA9r0HJ4zOMljwqo9bRvJ1.VY8EHDVFFF4QogQUQe"], ["created_at", "2015-03-20 04:54:48.054932"], ["updated_at", "2015-03-20 04:54:48.054932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$/U821zMCdplNJHCxhhP9jeozMahp4KFyGdY.YwOjEnE8wrJCNRtgC"], ["created_at", "2015-03-20 04:54:48.061434"], ["updated_at", "2015-03-20 04:54:48.061434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:48.064654"], ["updated_at", "2015-03-20 04:54:48.064654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c1cd712-cebd-11e4-81a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c1d52be-cebd-11e4-b0cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c1cd712-cebd-11e4-81a4-705681abff85"], ["organization_id", "3c1d52be-cebd-11e4-b0cc-705681abff85"], ["created_at", "2015-03-20 04:54:48.067934"], ["updated_at", "2015-03-20 04:54:48.067934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3c1cd712-cebd-11e4-81a4-705681abff85' LIMIT 1 [["organization_id", "3c1d52be-cebd-11e4-b0cc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$t6M4hKEi7fAPbw6bKtj5eeSCyy7osVYDo/XH6lbvf0ilb8IDfeJkW"], ["created_at", "2015-03-20 04:54:48.075563"], ["updated_at", "2015-03-20 04:54:48.075563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:48.079436"], ["updated_at", "2015-03-20 04:54:48.079436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c1f0122-cebd-11e4-95df-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c1f96c8-cebd-11e4-b291-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c1f0122-cebd-11e4-95df-705681abff85"], ["organization_id", "3c1f96c8-cebd-11e4-b291-705681abff85"], ["created_at", "2015-03-20 04:54:48.084087"], ["updated_at", "2015-03-20 04:54:48.084087"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$XFvKfsbDq2ZccymoQulYSu50wx98kLC0Rmpj.yyBSo3EtI/tcabNS"], ["created_at", "2015-03-20 04:54:48.094652"], ["updated_at", "2015-03-20 04:54:48.094652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:48.098250"], ["updated_at", "2015-03-20 04:54:48.098250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c21f076-cebd-11e4-ad58-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c22721c-cebd-11e4-97de-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c21f076-cebd-11e4-ad58-705681abff85"], ["organization_id", "3c22721c-cebd-11e4-97de-705681abff85"], ["created_at", "2015-03-20 04:54:48.101400"], ["updated_at", "2015-03-20 04:54:48.101400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$rJAZwqRvziuYlp5gNaP9G.Cft44GpAdMl9SoInPIPb8Voy3NmRVeO"], ["created_at", "2015-03-20 04:54:48.106936"], ["updated_at", "2015-03-20 04:54:48.106936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:48.110253"], ["updated_at", "2015-03-20 04:54:48.110253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c23c716-cebd-11e4-bded-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c245154-cebd-11e4-9728-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c23c716-cebd-11e4-bded-705681abff85"], ["organization_id", "3c245154-cebd-11e4-9728-705681abff85"], ["created_at", "2015-03-20 04:54:48.114456"], ["updated_at", "2015-03-20 04:54:48.114456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c23c716-cebd-11e4-bded-705681abff85' LIMIT 1 [["organization_id", "3c245154-cebd-11e4-9728-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$d7JCgb/QoZhX3NLvW02a7edgTPbvxZbhpJw9z9Uq8j8eEiS3FoZhK"], ["created_at", "2015-03-20 04:54:48.121698"], ["updated_at", "2015-03-20 04:54:48.121698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:54:48.124918"], ["updated_at", "2015-03-20 04:54:48.124918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c2607d8-cebd-11e4-b445-705681abff85' AND "clubhouse_memberships"."organization_id" = '3c268528-cebd-11e4-a4b7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3c2607d8-cebd-11e4-b445-705681abff85"], ["organization_id", "3c268528-cebd-11e4-a4b7-705681abff85"], ["created_at", "2015-03-20 04:54:48.128614"], ["updated_at", "2015-03-20 04:54:48.128614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3c2607d8-cebd-11e4-b445-705681abff85' LIMIT 1 [["organization_id", "3c268528-cebd-11e4-a4b7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$61k/4HwGxfcSvEgjx/00IeHACKCr90MOzkx9JLHU3Y1GJpulcnL22"], ["created_at", "2015-03-20 04:59:39.072981"], ["updated_at", "2015-03-20 04:59:39.072981"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.111660"], ["updated_at", "2015-03-20 04:59:39.111660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e994eec0-cebd-11e4-a5a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9979d14-cebd-11e4-8700-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e994eec0-cebd-11e4-a5a8-705681abff85"], ["organization_id", "e9979d14-cebd-11e4-8700-705681abff85"], ["created_at", "2015-03-20 04:59:39.116024"], ["updated_at", "2015-03-20 04:59:39.116024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e994eec0-cebd-11e4-a5a8-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e9979d14-cebd-11e4-8700-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e994eec0-cebd-11e4-a5a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9979d14-cebd-11e4-8700-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e9979d14-cebd-11e4-8700-705681abff86"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e994eec0-cebd-11e4-a5a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9979d14-cebd-11e4-8700-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$LsEYcB.6.ndIDstQSe4t9uvfDfNLa0Pvhb75u1l4UtWnTEpoymZpq"], ["created_at", "2015-03-20 04:59:39.165884"], ["updated_at", "2015-03-20 04:59:39.165884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.176128"], ["user_id", "e99feeb0-cebd-11e4-9dee-705681abff85"], ["created_at", "2015-03-20 04:59:39.177902"], ["updated_at", "2015-03-20 04:59:39.177902"], ["token", "48R5OJkKwZNxa7CHDJuNHj1mPbymfbo_EVhHX9zn04Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.183283"], ["updated_at", "2015-03-20 04:59:39.183283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e99feeb0-cebd-11e4-9dee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9a281f2-cebd-11e4-b39b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e99feeb0-cebd-11e4-9dee-705681abff85"], ["organization_id", "e9a281f2-cebd-11e4-b39b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.186830"], ["updated_at", "2015-03-20 04:59:39.186830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'e9a281f2-cebd-11e4-b39b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "e9a281f2-cebd-11e4-b39b-705681abff85"], ["created_at", "2015-03-20 04:59:39.200026"], ["updated_at", "2015-03-20 04:59:39.200026"], ["token", "2i1CoS99Nrc_a56Og3ROm5D6lruZtU3mF7NO7-b1uaQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$Lfs0XRqKgQGsjUOIUnUDyO.P1NkNsgdfrYTYLV.E7.kcfi69JkvhS"], ["created_at", "2015-03-20 04:59:39.235944"], ["updated_at", "2015-03-20 04:59:39.235944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.237741"], ["user_id", "e9aa8f46-cebd-11e4-bfe3-705681abff85"], ["created_at", "2015-03-20 04:59:39.238535"], ["updated_at", "2015-03-20 04:59:39.238535"], ["token", "flj0bGIgR9fO6S79MM14hzlirzQMfDe2Yi_rpRzI4GM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.242867"], ["updated_at", "2015-03-20 04:59:39.242867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9aa8f46-cebd-11e4-bfe3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9abb394-cebd-11e4-ba7c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e9aa8f46-cebd-11e4-bfe3-705681abff85"], ["organization_id", "e9abb394-cebd-11e4-ba7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.247431"], ["updated_at", "2015-03-20 04:59:39.247431"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'e9abb394-cebd-11e4-ba7c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "e9abb394-cebd-11e4-ba7c-705681abff85"], ["created_at", "2015-03-20 04:59:39.252382"], ["updated_at", "2015-03-20 04:59:39.252382"], ["token", "vakmT-M1z6ttTWyYh2pMib7ole77AJdvMymICI32b0c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e9abb394-cebd-11e4-ba7c-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"e9abb394-cebd-11e4-ba7c-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:39.257741' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "flj0bGIgR9fO6S79MM14hzlirzQMfDe2Yi_rpRzI4GM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:39.265815"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:39.267364"], ["id", "e9aaf760-cebd-11e4-9a2c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e9abb394-cebd-11e4-ba7c-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e9aa8f46-cebd-11e4-bfe3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e9abb394-cebd-11e4-ba7c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e9aa8f46-cebd-11e4-bfe3-705681abff85' LIMIT 1 [["organization_id", "e9abb394-cebd-11e4-ba7c-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'e9abb394-cebd-11e4-ba7c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "e9abb394-cebd-11e4-ba7c-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.288851"], ["updated_at", "2015-03-20 04:59:39.288851"], ["token", "m17SMED5EE6UU6fBY61cYGaJIxwHn0amS6lVQR1wW1U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 988f1b80-433b-4f86-8843-8225291bc13a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e9b2a8ac-cebd-11e4-8e96-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "e9b2a8ac-cebd-11e4-8e96-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [988f1b80-433b-4f86-8843-8225291bc13a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e9b2a8ac-cebd-11e4-8e96-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [988f1b80-433b-4f86-8843-8225291bc13a] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e9abb394-cebd-11e4-ba7c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [988f1b80-433b-4f86-8843-8225291bc13a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [988f1b80-433b-4f86-8843-8225291bc13a] Clubhouse::Mailer#invitation: processed outbound mail in 241.1ms [ActiveJob] [ActionMailer::DeliveryJob] [988f1b80-433b-4f86-8843-8225291bc13a] Sent mail to email@example.com (9.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [988f1b80-433b-4f86-8843-8225291bc13a] Date: Thu, 19 Mar 2015 21:59:39 -0700 From: from@example.com To: email@example.com Message-ID: <550ba93b89612_10093fc5e5065be028a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/m17SMED5EE6UU6fBY61cYGaJIxwHn0amS6lVQR1wW1U?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [988f1b80-433b-4f86-8843-8225291bc13a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 250.99ms Completed 201 Created in 313ms (Views: 3.9ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$KsQoi0HNnfUh9mGgHYAscuya9IWvTxUX4YZLZ/ghqIkCHgC8l8C6y"], ["created_at", "2015-03-20 04:59:39.580421"], ["updated_at", "2015-03-20 04:59:39.580421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.583417"], ["user_id", "e9df4e2a-cebd-11e4-8226-705681abff85"], ["created_at", "2015-03-20 04:59:39.584218"], ["updated_at", "2015-03-20 04:59:39.584218"], ["token", "AjZAVME_YrEZJeBvGeNnu9cJ086DJob6m1E3nHvNTYw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.587954"], ["updated_at", "2015-03-20 04:59:39.587954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9df4e2a-cebd-11e4-8226-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9e0405a-cebd-11e4-bd52-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e9df4e2a-cebd-11e4-8226-705681abff85"], ["organization_id", "e9e0405a-cebd-11e4-bd52-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.591534"], ["updated_at", "2015-03-20 04:59:39.591534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'e9e0405a-cebd-11e4-bd52-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "e9e0405a-cebd-11e4-bd52-705681abff85"], ["created_at", "2015-03-20 04:59:39.595417"], ["updated_at", "2015-03-20 04:59:39.595417"], ["token", "0seVu4ef8UbLqTMrhlJNek0k7w8B0_xwbIp26wUDj2I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e9e0405a-cebd-11e4-bd52-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"e9e0405a-cebd-11e4-bd52-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:39.600980' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AjZAVME_YrEZJeBvGeNnu9cJ086DJob6m1E3nHvNTYw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:39.602514"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:39.606668"], ["id", "e9dfb946-cebd-11e4-b69e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e9e0405a-cebd-11e4-bd52-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e9df4e2a-cebd-11e4-8226-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e9e0405a-cebd-11e4-bd52-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e9df4e2a-cebd-11e4-8226-705681abff85' LIMIT 1 [["organization_id", "e9e0405a-cebd-11e4-bd52-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'e9e0405a-cebd-11e4-bd52-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "e9e0405a-cebd-11e4-bd52-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.615456"], ["updated_at", "2015-03-20 04:59:39.615456"], ["token", "E4nCaYQG4iVFb9g7kLUk2WgInAow6BkWhFia8gHo93c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: cf3263af-8341-4705-841d-fcdb4cb7fbe5) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e9e48070-cebd-11e4-815e-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "e9e48070-cebd-11e4-815e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [cf3263af-8341-4705-841d-fcdb4cb7fbe5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/e9e48070-cebd-11e4-815e-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [cf3263af-8341-4705-841d-fcdb4cb7fbe5] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e9e0405a-cebd-11e4-bd52-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [cf3263af-8341-4705-841d-fcdb4cb7fbe5] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [cf3263af-8341-4705-841d-fcdb4cb7fbe5] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [cf3263af-8341-4705-841d-fcdb4cb7fbe5] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [cf3263af-8341-4705-841d-fcdb4cb7fbe5] Date: Thu, 19 Mar 2015 21:59:39 -0700 From: from@example.com To: email@example.com Message-ID: <550ba93b98298_10093fc5e5065be03cb@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/E4nCaYQG4iVFb9g7kLUk2WgInAow6BkWhFia8gHo93c?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [cf3263af-8341-4705-841d-fcdb4cb7fbe5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.92ms Completed 201 Created in 25ms (Views: 1.4ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$6OYg4aJoLCgwEti3ST0SUeK1qIbVDurgKSmx6Tc28eJD5Tk1JsQHK"], ["created_at", "2015-03-20 04:59:39.634411"], ["updated_at", "2015-03-20 04:59:39.634411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.636099"], ["user_id", "e9e75b06-cebd-11e4-9ded-705681abff85"], ["created_at", "2015-03-20 04:59:39.636886"], ["updated_at", "2015-03-20 04:59:39.636886"], ["token", "SMQz21pkIq4AH7BlpDfQUp_OYEv-eszd-HmPay4_858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.640257"], ["updated_at", "2015-03-20 04:59:39.640257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9e75b06-cebd-11e4-9ded-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9e8394a-cebd-11e4-a421-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e9e75b06-cebd-11e4-9ded-705681abff85"], ["organization_id", "e9e8394a-cebd-11e4-a421-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.643663"], ["updated_at", "2015-03-20 04:59:39.643663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'e9e8394a-cebd-11e4-a421-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "e9e8394a-cebd-11e4-a421-705681abff85"], ["created_at", "2015-03-20 04:59:39.647239"], ["updated_at", "2015-03-20 04:59:39.647239"], ["token", "kdD5jZP1SvdkuCMJCEIXPpGPCywMccWWtMBUPBp9RAg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e9e8394a-cebd-11e4-a421-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"e9e8394a-cebd-11e4-a421-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:39.653655' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SMQz21pkIq4AH7BlpDfQUp_OYEv-eszd-HmPay4_858"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:39.655096"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:39.656021"], ["id", "e9e7be16-cebd-11e4-a6db-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e9e8394a-cebd-11e4-a421-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e9e75b06-cebd-11e4-9ded-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e9e8394a-cebd-11e4-a421-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e9e75b06-cebd-11e4-9ded-705681abff85' LIMIT 1 [["organization_id", "e9e8394a-cebd-11e4-a421-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'e9e8394a-cebd-11e4-a421-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$B1Gx/lAdLMSRbTPZ4F9k8e8/J85ECv0h0HjIzSfReeouLYKA6Z95O"], ["created_at", "2015-03-20 04:59:39.670900"], ["updated_at", "2015-03-20 04:59:39.670900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.672443"], ["user_id", "e9ece8dc-cebd-11e4-820f-705681abff85"], ["created_at", "2015-03-20 04:59:39.673217"], ["updated_at", "2015-03-20 04:59:39.673217"], ["token", "SxEGpQNtCCoapNC0ja4ag13bMQAFe9r8XnLto-d0WHA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.676752"], ["updated_at", "2015-03-20 04:59:39.676752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9ece8dc-cebd-11e4-820f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9edcd60-cebd-11e4-8c4c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e9ece8dc-cebd-11e4-820f-705681abff85"], ["organization_id", "e9edcd60-cebd-11e4-8c4c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.680350"], ["updated_at", "2015-03-20 04:59:39.680350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'e9edcd60-cebd-11e4-8c4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "e9edcd60-cebd-11e4-8c4c-705681abff85"], ["created_at", "2015-03-20 04:59:39.683868"], ["updated_at", "2015-03-20 04:59:39.683868"], ["token", "PRWrIe9f1qR50DN4HHDg5x4nQd0_CSGxGjZHeoSuRvI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$sdxxAq.SKGlKamDYw9w5g.ESWb7VTQ/B9Mv/fAyjSKlgSGhlvXTra"], ["created_at", "2015-03-20 04:59:39.688127"], ["updated_at", "2015-03-20 04:59:39.688127"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.692817"], ["updated_at", "2015-03-20 04:59:39.692817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9ef8646-cebd-11e4-866e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9f05198-cebd-11e4-bb4a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e9ef8646-cebd-11e4-866e-705681abff85"], ["organization_id", "e9f05198-cebd-11e4-bb4a-705681abff85"], ["created_at", "2015-03-20 04:59:39.696719"], ["updated_at", "2015-03-20 04:59:39.696719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$pzL9vhQ.E4qI157i9kbg..cZOBlhtzVxJdLGdK2UuYu0y.LjVoHRa"], ["created_at", "2015-03-20 04:59:39.706863"], ["updated_at", "2015-03-20 04:59:39.706863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.708540"], ["user_id", "e9f26762-cebd-11e4-8410-705681abff85"], ["created_at", "2015-03-20 04:59:39.709286"], ["updated_at", "2015-03-20 04:59:39.709286"], ["token", "XGw6AHkSSYN5-idmsbxHdXCOLo3rjrMOZivRBoGC7CU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.712713"], ["updated_at", "2015-03-20 04:59:39.712713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9f26762-cebd-11e4-8410-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9f34830-cebd-11e4-8878-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e9f26762-cebd-11e4-8410-705681abff85"], ["organization_id", "e9f34830-cebd-11e4-8878-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.716071"], ["updated_at", "2015-03-20 04:59:39.716071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'e9f34830-cebd-11e4-8878-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "e9f34830-cebd-11e4-8878-705681abff85"], ["created_at", "2015-03-20 04:59:39.719317"], ["updated_at", "2015-03-20 04:59:39.719317"], ["token", "vsv5OahNAyb6mti7bLW9xKqCn0k5OYlwPeydmU8nO2w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$TQUMVnQpfVhOrv.7ks6Y6.dEOkTkUghtYNJm0i3Vob8amxtWFlsFi"], ["created_at", "2015-03-20 04:59:39.724499"], ["updated_at", "2015-03-20 04:59:39.724499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.727620"], ["updated_at", "2015-03-20 04:59:39.727620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9f5148a-cebd-11e4-aea7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9f58ee2-cebd-11e4-9e2e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e9f5148a-cebd-11e4-aea7-705681abff85"], ["organization_id", "e9f58ee2-cebd-11e4-9e2e-705681abff85"], ["created_at", "2015-03-20 04:59:39.730663"], ["updated_at", "2015-03-20 04:59:39.730663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/e9f34830-cebd-11e4-8878-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"e9f34830-cebd-11e4-8878-705681abff85", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:39.736348' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XGw6AHkSSYN5-idmsbxHdXCOLo3rjrMOZivRBoGC7CU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:39.738307"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:39.739608"], ["id", "e9f2c964-cebd-11e4-9a85-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e9f34830-cebd-11e4-8878-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e9f26762-cebd-11e4-8410-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e9f26762-cebd-11e4-8410-705681abff85' LIMIT 1 [["organization_id", "e9f34830-cebd-11e4-8878-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "e9f34830-cebd-11e4-8878-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('e9f34830-cebd-11e4-8878-705681abff85') Completed 200 OK in 19ms (Views: 8.2ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$DPhjs1cd24g9D7LiGkR.zODikx3dwxRmVRdyNSO3Y2uY.PkyoKgj2"], ["created_at", "2015-03-20 04:59:39.761864"], ["updated_at", "2015-03-20 04:59:39.761864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.764128"], ["user_id", "e9fae004-cebd-11e4-8dfe-705681abff85"], ["created_at", "2015-03-20 04:59:39.764933"], ["updated_at", "2015-03-20 04:59:39.764933"], ["token", "dvyX9QMRunxIm1YRRAUMwioQZsS11zw4mIHP1vUuDhU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.768213"], ["updated_at", "2015-03-20 04:59:39.768213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9fae004-cebd-11e4-8dfe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9fbbeca-cebd-11e4-aa91-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e9fae004-cebd-11e4-8dfe-705681abff85"], ["organization_id", "e9fbbeca-cebd-11e4-aa91-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.771315"], ["updated_at", "2015-03-20 04:59:39.771315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'e9fbbeca-cebd-11e4-aa91-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "e9fbbeca-cebd-11e4-aa91-705681abff85"], ["created_at", "2015-03-20 04:59:39.774639"], ["updated_at", "2015-03-20 04:59:39.774639"], ["token", "lApy27LX-6KRyQoiFvIS4nhg6Qd7TJ58R27QCKN8TZg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$PlZOB3TrzlSUJE4tgL0ov.y1WV4ab13/Pon7u4VDRlMdFElB11dby"], ["created_at", "2015-03-20 04:59:39.784393"], ["updated_at", "2015-03-20 04:59:39.784393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.785922"], ["user_id", "e9fe397a-cebd-11e4-9a1b-705681abff85"], ["created_at", "2015-03-20 04:59:39.786687"], ["updated_at", "2015-03-20 04:59:39.786687"], ["token", "dwoz4vtcOvC7SdZlDUuFFO-E5yQ3uaWz2xdYlZxkSZc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.790005"], ["updated_at", "2015-03-20 04:59:39.790005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9fe397a-cebd-11e4-9a1b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'e9ff119c-cebd-11e4-9bb8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e9fe397a-cebd-11e4-9a1b-705681abff85"], ["organization_id", "e9ff119c-cebd-11e4-9bb8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.793493"], ["updated_at", "2015-03-20 04:59:39.793493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'e9ff119c-cebd-11e4-9bb8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "e9ff119c-cebd-11e4-9bb8-705681abff85"], ["created_at", "2015-03-20 04:59:39.797084"], ["updated_at", "2015-03-20 04:59:39.797084"], ["token", "RNFSSdrUIMxfhZibbzewQYOcar1ciXIQ5qrY59IEsak"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/ea0052dc-cebd-11e4-8641-705681abff85" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"ea0052dc-cebd-11e4-8641-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:39.804884' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dwoz4vtcOvC7SdZlDUuFFO-E5yQ3uaWz2xdYlZxkSZc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:39.806330"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:39.807299"], ["id", "e9fe9b86-cebd-11e4-881a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ea0052dc-cebd-11e4-8641-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e9fe397a-cebd-11e4-9a1b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e9ff119c-cebd-11e4-9bb8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e9fe397a-cebd-11e4-9a1b-705681abff85' LIMIT 1 [["organization_id", "e9ff119c-cebd-11e4-9bb8-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."id" != 'ea0052dc-cebd-11e4-8641-705681abff85' AND "clubhouse_invitations"."organization_id" = 'e9ff119c-cebd-11e4-9bb8-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 04:59:39.814657"], ["id", "ea0052dc-cebd-11e4-8641-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$Y7yKEP9muUdcJg9G1blnDew6eLco7oJHZVURSeY3jmDzo16M5Nhoe"], ["created_at", "2015-03-20 04:59:39.823170"], ["updated_at", "2015-03-20 04:59:39.823170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.824765"], ["user_id", "ea0425ec-cebd-11e4-873c-705681abff85"], ["created_at", "2015-03-20 04:59:39.825538"], ["updated_at", "2015-03-20 04:59:39.825538"], ["token", "J4RW2pUXTK5T5X16xObbpHyxmE5GbCR1cPbK72ci3VY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.829194"], ["updated_at", "2015-03-20 04:59:39.829194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea0425ec-cebd-11e4-873c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea05106a-cebd-11e4-83ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea0425ec-cebd-11e4-873c-705681abff85"], ["organization_id", "ea05106a-cebd-11e4-83ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.832513"], ["updated_at", "2015-03-20 04:59:39.832513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'ea05106a-cebd-11e4-83ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "ea05106a-cebd-11e4-83ad-705681abff85"], ["created_at", "2015-03-20 04:59:39.835857"], ["updated_at", "2015-03-20 04:59:39.835857"], ["token", "q3fxxfFnXxufdV5F_WosfeEDGXGb06ndWu5aXhiCf9g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$b74mhNZRUhZPM1tr/ZgTqOwGXk/H7LjRfTaRxI8sBu7FxKAZUr0/."], ["created_at", "2015-03-20 04:59:39.847954"], ["updated_at", "2015-03-20 04:59:39.847954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.849544"], ["user_id", "ea07ec9a-cebd-11e4-9fca-705681abff85"], ["created_at", "2015-03-20 04:59:39.850312"], ["updated_at", "2015-03-20 04:59:39.850312"], ["token", "z7na-SP4lVKAZ-6kN0ny11bsUa2zAoxNMvcuVKqsnmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.854152"], ["updated_at", "2015-03-20 04:59:39.854152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea07ec9a-cebd-11e4-9fca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea08e26c-cebd-11e4-b0b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea07ec9a-cebd-11e4-9fca-705681abff85"], ["organization_id", "ea08e26c-cebd-11e4-b0b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.857665"], ["updated_at", "2015-03-20 04:59:39.857665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'ea08e26c-cebd-11e4-b0b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "ea08e26c-cebd-11e4-b0b6-705681abff85"], ["created_at", "2015-03-20 04:59:39.861171"], ["updated_at", "2015-03-20 04:59:39.861171"], ["token", "2MWEuK_mKKngbmbViUft1uTAXsiBwrTKnoHXxVvhT0U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/ea09f71a-cebd-11e4-8dd8-705681abff85" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"ea09f71a-cebd-11e4-8dd8-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:39.866669' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "z7na-SP4lVKAZ-6kN0ny11bsUa2zAoxNMvcuVKqsnmM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:39.868159"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:39.869085"], ["id", "ea085266-cebd-11e4-90b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ea09f71a-cebd-11e4-8dd8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea07ec9a-cebd-11e4-9fca-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea08e26c-cebd-11e4-b0b6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea07ec9a-cebd-11e4-9fca-705681abff85' LIMIT 1 [["organization_id", "ea08e26c-cebd-11e4-b0b6-705681abff85"]] Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$UpUd.JxoWXfw46jSfKJyd.UvWT41q3FMl7eBOSSzVJbp7WOyTD3z2"], ["created_at", "2015-03-20 04:59:39.880595"], ["updated_at", "2015-03-20 04:59:39.880595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.882154"], ["user_id", "ea0ce7b8-cebd-11e4-992f-705681abff85"], ["created_at", "2015-03-20 04:59:39.882991"], ["updated_at", "2015-03-20 04:59:39.882991"], ["token", "G2Q3_9mK9ZXCyR88YdDox85NatcXJpxP1WAKbvtFtMw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.886359"], ["updated_at", "2015-03-20 04:59:39.886359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea0ce7b8-cebd-11e4-992f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea0dc6b0-cebd-11e4-8ef8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea0ce7b8-cebd-11e4-992f-705681abff85"], ["organization_id", "ea0dc6b0-cebd-11e4-8ef8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.889555"], ["updated_at", "2015-03-20 04:59:39.889555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'ea0dc6b0-cebd-11e4-8ef8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "ea0dc6b0-cebd-11e4-8ef8-705681abff85"], ["created_at", "2015-03-20 04:59:39.893021"], ["updated_at", "2015-03-20 04:59:39.893021"], ["token", "13KZ8Im2TUpzHPeY2Wuzl9OQJZEe9fzTQoidqEEBGm4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$IDIIP27X5J26VUU83oNrD.rG261a7GrO6WLHGnymMOIY0o3ESiPXa"], ["created_at", "2015-03-20 04:59:39.904248"], ["updated_at", "2015-03-20 04:59:39.904248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.905889"], ["user_id", "ea10865c-cebd-11e4-828f-705681abff85"], ["created_at", "2015-03-20 04:59:39.906668"], ["updated_at", "2015-03-20 04:59:39.906668"], ["token", "twfdz0XarauWVhSRt04zM6Bm10PrN9gNHH60nmTTwVU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.910229"], ["updated_at", "2015-03-20 04:59:39.910229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea10865c-cebd-11e4-828f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea116ce8-cebd-11e4-8e79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea10865c-cebd-11e4-828f-705681abff85"], ["organization_id", "ea116ce8-cebd-11e4-8e79-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.914055"], ["updated_at", "2015-03-20 04:59:39.914055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'ea116ce8-cebd-11e4-8e79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "ea116ce8-cebd-11e4-8e79-705681abff85"], ["created_at", "2015-03-20 04:59:39.917819"], ["updated_at", "2015-03-20 04:59:39.917819"], ["token", "dC-3KBaHNETMIBiBDynbWUQJFqmMYmyfDLFyZmWHo6k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:39.922506' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "twfdz0XarauWVhSRt04zM6Bm10PrN9gNHH60nmTTwVU"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:39.924336"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:39.925617"], ["id", "ea10eba6-cebd-11e4-ac28-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea10865c-cebd-11e4-828f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea116ce8-cebd-11e4-8e79-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea10865c-cebd-11e4-828f-705681abff85' LIMIT 1 [["organization_id", "ea116ce8-cebd-11e4-8e79-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ea116ce8-cebd-11e4-8e79-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ea116ce8-cebd-11e4-8e79-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.934670"], ["updated_at", "2015-03-20 04:59:39.934670"], ["token", "Dn2tQQbMxZ0z_F46Ss5foe0pmOlG8Fp6m9zxYnbrBhc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0b5cb4e7-e2db-4a4b-a3e4-0b180b76f16c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ea152d2e-cebd-11e4-91a4-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ea152d2e-cebd-11e4-91a4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0b5cb4e7-e2db-4a4b-a3e4-0b180b76f16c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ea152d2e-cebd-11e4-91a4-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [0b5cb4e7-e2db-4a4b-a3e4-0b180b76f16c] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea116ce8-cebd-11e4-8e79-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0b5cb4e7-e2db-4a4b-a3e4-0b180b76f16c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [0b5cb4e7-e2db-4a4b-a3e4-0b180b76f16c] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [0b5cb4e7-e2db-4a4b-a3e4-0b180b76f16c] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [0b5cb4e7-e2db-4a4b-a3e4-0b180b76f16c] Date: Thu, 19 Mar 2015 21:59:39 -0700 From: from@example.com To: email@example.com Message-ID: <550ba93be5d91_10093fc5e5065be04c6@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Dn2tQQbMxZ0z_F46Ss5foe0pmOlG8Fp6m9zxYnbrBhc?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0b5cb4e7-e2db-4a4b-a3e4-0b180b76f16c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.0ms Completed 201 Created in 21ms (Views: 0.8ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$sFg7E3VbIzVVIXyOUWUui.BSpiWzg5T/0dNOajgGhhdM06T3KfMOy"], ["created_at", "2015-03-20 04:59:39.949406"], ["updated_at", "2015-03-20 04:59:39.949406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.950957"], ["user_id", "ea1767ce-cebd-11e4-a1fe-705681abff85"], ["created_at", "2015-03-20 04:59:39.951719"], ["updated_at", "2015-03-20 04:59:39.951719"], ["token", "CvqxTKx779T5l6dlgW0CQaaabnsBvju4nHC4gr5BEJI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:39.955004"], ["updated_at", "2015-03-20 04:59:39.955004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea1767ce-cebd-11e4-a1fe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea18404a-cebd-11e4-9682-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea1767ce-cebd-11e4-a1fe-705681abff85"], ["organization_id", "ea18404a-cebd-11e4-9682-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.958422"], ["updated_at", "2015-03-20 04:59:39.958422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'ea18404a-cebd-11e4-9682-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "ea18404a-cebd-11e4-9682-705681abff85"], ["created_at", "2015-03-20 04:59:39.961959"], ["updated_at", "2015-03-20 04:59:39.961959"], ["token", "e5R9nrTKl_b_9XVRGxGlE2iBdfaWA_6Ebd5achiHaL0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:59:39 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:39.966883' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CvqxTKx779T5l6dlgW0CQaaabnsBvju4nHC4gr5BEJI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:39.968268"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:39.969193"], ["id", "ea17c5ac-cebd-11e4-bcce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea1767ce-cebd-11e4-a1fe-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea18404a-cebd-11e4-9682-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea1767ce-cebd-11e4-a1fe-705681abff85' LIMIT 1 [["organization_id", "ea18404a-cebd-11e4-9682-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ea18404a-cebd-11e4-9682-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ea18404a-cebd-11e4-9682-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 04:59:39.976367"], ["updated_at", "2015-03-20 04:59:39.976367"], ["token", "lQwa6plfTk4U4lpTsLYLXLbaAaygu7el1-PxDq7iM2g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7f9a908e-b989-407a-be2d-2d843202c0c3) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ea1b8b4c-cebd-11e4-8e99-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ea1b8b4c-cebd-11e4-8e99-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [7f9a908e-b989-407a-be2d-2d843202c0c3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ea1b8b4c-cebd-11e4-8e99-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [7f9a908e-b989-407a-be2d-2d843202c0c3] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea18404a-cebd-11e4-9682-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [7f9a908e-b989-407a-be2d-2d843202c0c3] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [7f9a908e-b989-407a-be2d-2d843202c0c3] Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms [ActiveJob] [ActionMailer::DeliveryJob] [7f9a908e-b989-407a-be2d-2d843202c0c3] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [7f9a908e-b989-407a-be2d-2d843202c0c3] Date: Thu, 19 Mar 2015 21:59:39 -0700 From: from@example.com To: email@example.com Message-ID: <550ba93bf03f5_10093fc5e5065be05ef@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/lQwa6plfTk4U4lpTsLYLXLbaAaygu7el1-PxDq7iM2g?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [7f9a908e-b989-407a-be2d-2d843202c0c3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.26ms Completed 201 Created in 19ms (Views: 0.7ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$.GrcnwRzFk5s0Lm9Qjlv/ukZb6T860oJFZj3mRsuSI7fVfWD783Uy"], ["created_at", "2015-03-20 04:59:39.995141"], ["updated_at", "2015-03-20 04:59:39.995141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:39.997862"], ["user_id", "ea1e77c6-cebd-11e4-bc6f-705681abff85"], ["created_at", "2015-03-20 04:59:40.000376"], ["updated_at", "2015-03-20 04:59:40.000376"], ["token", "vYWF11i8tbaSmlhFhILtC0mvqcnDBTVlfspytDEq28c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.005457"], ["updated_at", "2015-03-20 04:59:40.005457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea1e77c6-cebd-11e4-bc6f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea1ff92a-cebd-11e4-9b11-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea1e77c6-cebd-11e4-bc6f-705681abff85"], ["organization_id", "ea1ff92a-cebd-11e4-9b11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.009409"], ["updated_at", "2015-03-20 04:59:40.009409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'ea1ff92a-cebd-11e4-9b11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "ea1ff92a-cebd-11e4-9b11-705681abff85"], ["created_at", "2015-03-20 04:59:40.013627"], ["updated_at", "2015-03-20 04:59:40.013627"], ["token", "F6dga2jYRsjpTCcF4pG5ezWEZDXFfuL7X-Fp0I5HIvE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.022561' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vYWF11i8tbaSmlhFhILtC0mvqcnDBTVlfspytDEq28c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.025041"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.026182"], ["id", "ea1f45b6-cebd-11e4-a8c2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea1e77c6-cebd-11e4-bc6f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea1ff92a-cebd-11e4-9b11-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea1e77c6-cebd-11e4-bc6f-705681abff85' LIMIT 1 [["organization_id", "ea1ff92a-cebd-11e4-9b11-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'ea1ff92a-cebd-11e4-9b11-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$lRm7hXtZGZ2KunvIpRTvbO2FcnYxqCe1XbDXKrLJRRw29XLfd/7MO"], ["created_at", "2015-03-20 04:59:40.045114"], ["updated_at", "2015-03-20 04:59:40.045114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.047312"], ["user_id", "ea260ffe-cebd-11e4-a118-705681abff85"], ["created_at", "2015-03-20 04:59:40.048266"], ["updated_at", "2015-03-20 04:59:40.048266"], ["token", "gvcIePnjma4-s7G8wS5iNV1cc-iz4TdZ0ZJIYqdv84s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.052688"], ["updated_at", "2015-03-20 04:59:40.052688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea260ffe-cebd-11e4-a118-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea2732f8-cebd-11e4-ac66-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea260ffe-cebd-11e4-a118-705681abff85"], ["organization_id", "ea2732f8-cebd-11e4-ac66-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.056335"], ["updated_at", "2015-03-20 04:59:40.056335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'ea2732f8-cebd-11e4-ac66-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "ea2732f8-cebd-11e4-ac66-705681abff85"], ["created_at", "2015-03-20 04:59:40.059653"], ["updated_at", "2015-03-20 04:59:40.059653"], ["token", "VzxP7y63cUIwiO3A6iNptUH-eAeq2JmWrUCy36_Avys"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$feLp2n7IJsW92hQ1jZmf1.V9oV/99sCa9tO55RGm0OAZRVTGuPyka"], ["created_at", "2015-03-20 04:59:40.071486"], ["updated_at", "2015-03-20 04:59:40.071486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.073868"], ["user_id", "ea2a18ce-cebd-11e4-ad05-705681abff85"], ["created_at", "2015-03-20 04:59:40.074854"], ["updated_at", "2015-03-20 04:59:40.074854"], ["token", "NMsDplmmc9A6fU_83es9GMci4-Y0UQc6II_mI9tk4KY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.080785"], ["updated_at", "2015-03-20 04:59:40.080785"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea2a18ce-cebd-11e4-ad05-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea2b9546-cebd-11e4-828c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea2a18ce-cebd-11e4-ad05-705681abff85"], ["organization_id", "ea2b9546-cebd-11e4-828c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.086391"], ["updated_at", "2015-03-20 04:59:40.086391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'ea2b9546-cebd-11e4-828c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "ea2b9546-cebd-11e4-828c-705681abff85"], ["created_at", "2015-03-20 04:59:40.092157"], ["updated_at", "2015-03-20 04:59:40.092157"], ["token", "GshCYMckQQtq42vjSQ-Qd8tlQ0xHl8go6AmBlpNqEtI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/ea2d38a6-cebd-11e4-88ed-705681abff85" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"ea2d38a6-cebd-11e4-88ed-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.097023' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NMsDplmmc9A6fU_83es9GMci4-Y0UQc6II_mI9tk4KY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.099071"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.101133"], ["id", "ea2aa780-cebd-11e4-ad1c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ea2d38a6-cebd-11e4-88ed-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea2a18ce-cebd-11e4-ad05-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea2b9546-cebd-11e4-828c-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea2a18ce-cebd-11e4-ad05-705681abff85' LIMIT 1 [["organization_id", "ea2b9546-cebd-11e4-828c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "ea2d38a6-cebd-11e4-88ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 15ms (ActiveRecord: 2.7ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$0f5tEN6RW47UPIYTixKHB./d7ZUaeZCe8BoEDSSkzq0Fs9NOu0ZDu"], ["created_at", "2015-03-20 04:59:40.125405"], ["updated_at", "2015-03-20 04:59:40.125405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.127055"], ["user_id", "ea3245c6-cebd-11e4-a9c9-705681abff85"], ["created_at", "2015-03-20 04:59:40.127803"], ["updated_at", "2015-03-20 04:59:40.127803"], ["token", "oQ0yiQet5Vf1v-Z7N3UAya7Vv78QFM58LlXQKrayPjI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.131259"], ["updated_at", "2015-03-20 04:59:40.131259"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea3245c6-cebd-11e4-a9c9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea333134-cebd-11e4-b674-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea3245c6-cebd-11e4-a9c9-705681abff85"], ["organization_id", "ea333134-cebd-11e4-b674-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.136821"], ["updated_at", "2015-03-20 04:59:40.136821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'ea333134-cebd-11e4-b674-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "ea333134-cebd-11e4-b674-705681abff85"], ["created_at", "2015-03-20 04:59:40.141221"], ["updated_at", "2015-03-20 04:59:40.141221"], ["token", "QphfZArE2bNW2MZ9Imupsq4Xvx6u9iZp5lIJ0Sr7AZA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$0cJioOWFuM4DVVR7SczzqudmaSAxSFmBJf4l4KwTFc4Txm/G/ynMy"], ["created_at", "2015-03-20 04:59:40.145596"], ["updated_at", "2015-03-20 04:59:40.145596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.148895"], ["updated_at", "2015-03-20 04:59:40.148895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea355f18-cebd-11e4-8d9b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea35d614-cebd-11e4-9edd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea355f18-cebd-11e4-8d9b-705681abff85"], ["organization_id", "ea35d614-cebd-11e4-9edd-705681abff85"], ["created_at", "2015-03-20 04:59:40.151943"], ["updated_at", "2015-03-20 04:59:40.151943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$81nWOn8Ha1ds37zf5q1Xx.ELSLdTs1rmD9K.HwZAlSkLsbuAFseUG"], ["created_at", "2015-03-20 04:59:40.161933"], ["updated_at", "2015-03-20 04:59:40.161933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.163668"], ["user_id", "ea37d586-cebd-11e4-bfac-705681abff85"], ["created_at", "2015-03-20 04:59:40.164642"], ["updated_at", "2015-03-20 04:59:40.164642"], ["token", "KJx_QzUTetBPmr-IVe5AxOIR86uSG-7dvN_IqnJaJ3Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.168376"], ["updated_at", "2015-03-20 04:59:40.168376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea37d586-cebd-11e4-bfac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea38cefa-cebd-11e4-8c8d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea37d586-cebd-11e4-bfac-705681abff85"], ["organization_id", "ea38cefa-cebd-11e4-8c8d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.171970"], ["updated_at", "2015-03-20 04:59:40.171970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'ea38cefa-cebd-11e4-8c8d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "ea38cefa-cebd-11e4-8c8d-705681abff85"], ["created_at", "2015-03-20 04:59:40.176008"], ["updated_at", "2015-03-20 04:59:40.176008"], ["token", "qh_FLN87xIEpjhtryCvJ6UpyRdhyC7CFxq_OzFBULps"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$jYNjEwGXHbpMQLE3EskHPe1T6JovVb4S5r9ZlMvBUHHIwxgTEagGq"], ["created_at", "2015-03-20 04:59:40.180466"], ["updated_at", "2015-03-20 04:59:40.180466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.185193"], ["updated_at", "2015-03-20 04:59:40.185193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea3ab12a-cebd-11e4-b963-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea3b6e44-cebd-11e4-9416-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea3ab12a-cebd-11e4-b963-705681abff85"], ["organization_id", "ea3b6e44-cebd-11e4-9416-705681abff85"], ["created_at", "2015-03-20 04:59:40.189762"], ["updated_at", "2015-03-20 04:59:40.189762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.194215' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KJx_QzUTetBPmr-IVe5AxOIR86uSG-7dvN_IqnJaJ3Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.195624"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.196690"], ["id", "ea384ed0-cebd-11e4-a0bc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea37d586-cebd-11e4-bfac-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea37d586-cebd-11e4-bfac-705681abff85' LIMIT 1 [["organization_id", "ea38cefa-cebd-11e4-8c8d-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "ea38cefa-cebd-11e4-8c8d-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('ea38cefa-cebd-11e4-8c8d-705681abff85') Completed 200 OK in 10ms (Views: 2.0ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$QnzfIzH04q/jcKLYSyuD4.O0cO32a8nQFjRI3UNedz6hFSYRYBW6i"], ["created_at", "2015-03-20 04:59:40.212716"], ["updated_at", "2015-03-20 04:59:40.212716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$eixxeXantmnDEjc2DuRnhOhbjNbT6qS6.k7sV3wPtLsk1cIBcpliC"], ["created_at", "2015-03-20 04:59:40.217012"], ["updated_at", "2015-03-20 04:59:40.217012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.218446"], ["user_id", "ea3f9960-cebd-11e4-b3f0-705681abff85"], ["created_at", "2015-03-20 04:59:40.219206"], ["updated_at", "2015-03-20 04:59:40.219206"], ["token", "YIeMR1umNfZMkYrQ9y8vx6d9ELSmeB0as6aZw7J5jps"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.223224"], ["updated_at", "2015-03-20 04:59:40.223224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea3f9960-cebd-11e4-b3f0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea412ff0-cebd-11e4-bafb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea3f9960-cebd-11e4-b3f0-705681abff85"], ["organization_id", "ea412ff0-cebd-11e4-bafb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.226518"], ["updated_at", "2015-03-20 04:59:40.226518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea4039e2-cebd-11e4-a88a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea412ff0-cebd-11e4-bafb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea4039e2-cebd-11e4-a88a-705681abff85"], ["organization_id", "ea412ff0-cebd-11e4-bafb-705681abff85"], ["created_at", "2015-03-20 04:59:40.229484"], ["updated_at", "2015-03-20 04:59:40.229484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$EDQU7ZAVn5R/qBbFqd6U0OQtbTRgEFs5LExazBecTBYJgl0Y22xLC"], ["created_at", "2015-03-20 04:59:40.234200"], ["updated_at", "2015-03-20 04:59:40.234200"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.236174"], ["user_id", "ea42dbde-cebd-11e4-a8b5-705681abff85"], ["created_at", "2015-03-20 04:59:40.237469"], ["updated_at", "2015-03-20 04:59:40.237469"], ["token", "DGB2fgJorlh-1ZYKoSWrJFR_VfxZ0S3YyoV6Iz9iilU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'ea412ff0-cebd-11e4-bafb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "ea412ff0-cebd-11e4-bafb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.241944"], ["updated_at", "2015-03-20 04:59:40.241944"], ["token", "Z7H-4AmorLVdetM3sIQV8zzxl3967VKKG42mfaA6BzI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$oX3d9rbC/If4n3kcV0G5A.YZ4QFZStxTHqsWQwIvLauFObOvL/GnW"], ["created_at", "2015-03-20 04:59:40.259154"], ["updated_at", "2015-03-20 04:59:40.259154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$.s.FnFkWAMhcB2AN/b8sWuxseTfuBrsYXAZMQ1ShKxTbhb3sBbkC2"], ["created_at", "2015-03-20 04:59:40.263489"], ["updated_at", "2015-03-20 04:59:40.263489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.265058"], ["user_id", "ea46ab1a-cebd-11e4-9607-705681abff85"], ["created_at", "2015-03-20 04:59:40.265859"], ["updated_at", "2015-03-20 04:59:40.265859"], ["token", "f0OzHkJ1PyZYZvzv6UBfQxQNTX2BNq2Dbx7omLFG7ME"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.269168"], ["updated_at", "2015-03-20 04:59:40.269168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea46ab1a-cebd-11e4-9607-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea482f80-cebd-11e4-93c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea46ab1a-cebd-11e4-9607-705681abff85"], ["organization_id", "ea482f80-cebd-11e4-93c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.272327"], ["updated_at", "2015-03-20 04:59:40.272327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea4754f2-cebd-11e4-bac7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea482f80-cebd-11e4-93c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea4754f2-cebd-11e4-bac7-705681abff85"], ["organization_id", "ea482f80-cebd-11e4-93c9-705681abff85"], ["created_at", "2015-03-20 04:59:40.275179"], ["updated_at", "2015-03-20 04:59:40.275179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$US4G75iA/TYQpa1dV/kNSepuDaWHX690fNzCBNrcqctTsGIdS.OhO"], ["created_at", "2015-03-20 04:59:40.279710"], ["updated_at", "2015-03-20 04:59:40.279710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.281268"], ["user_id", "ea49cde0-cebd-11e4-9a9f-705681abff85"], ["created_at", "2015-03-20 04:59:40.282071"], ["updated_at", "2015-03-20 04:59:40.282071"], ["token", "KYHouM1ljWXbGZvHhpBKjtnuXEiOR3fV9RbCwovKXfU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = 'ea482f80-cebd-11e4-93c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "ea482f80-cebd-11e4-93c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.285807"], ["updated_at", "2015-03-20 04:59:40.285807"], ["token", "Wb1bzCmfxjbldTOo1cgu1IGUvOoiaXq9NU2viOywif0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ea482f80-cebd-11e4-93c9-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Wb1bzCmfxjbldTOo1cgu1IGUvOoiaXq9NU2viOywif0", "organization_id"=>"ea482f80-cebd-11e4-93c9-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.292074' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KYHouM1ljWXbGZvHhpBKjtnuXEiOR3fV9RbCwovKXfU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.293571"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.294572"], ["id", "ea4a306e-cebd-11e4-9404-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ea482f80-cebd-11e4-93c9-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea49cde0-cebd-11e4-9a9f-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "Wb1bzCmfxjbldTOo1cgu1IGUvOoiaXq9NU2viOywif0"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea482f80-cebd-11e4-93c9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea49cde0-cebd-11e4-9a9f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea482f80-cebd-11e4-93c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "ea482f80-cebd-11e4-93c9-705681abff85"], ["member_id", "ea49cde0-cebd-11e4-9a9f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.304454"], ["updated_at", "2015-03-20 04:59:40.304454"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "ea4abfac-cebd-11e4-82c6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 3.1ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$zvPS.RhvbxvmnRbKZ7PzHelCDqphbqRsNO5Nw.Vle3JSbGnFTkJMa"], ["created_at", "2015-03-20 04:59:40.316418"], ["updated_at", "2015-03-20 04:59:40.316418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$aTP0hfh46wJJtg1hSKlnPOw9sjOcpWxRJuMQkA9NMuTUfbQ2VFjii"], ["created_at", "2015-03-20 04:59:40.320787"], ["updated_at", "2015-03-20 04:59:40.320787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.322229"], ["user_id", "ea4f6d7c-cebd-11e4-9324-705681abff85"], ["created_at", "2015-03-20 04:59:40.322986"], ["updated_at", "2015-03-20 04:59:40.322986"], ["token", "LtAnGwmSUJV198Ch3glidycLkTn2H1a-uOFTHHTbEVk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.326373"], ["updated_at", "2015-03-20 04:59:40.326373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea4f6d7c-cebd-11e4-9324-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea50ea62-cebd-11e4-b973-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea4f6d7c-cebd-11e4-9324-705681abff85"], ["organization_id", "ea50ea62-cebd-11e4-b973-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.329526"], ["updated_at", "2015-03-20 04:59:40.329526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea500fe8-cebd-11e4-83ea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea50ea62-cebd-11e4-b973-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea500fe8-cebd-11e4-83ea-705681abff85"], ["organization_id", "ea50ea62-cebd-11e4-b973-705681abff85"], ["created_at", "2015-03-20 04:59:40.332459"], ["updated_at", "2015-03-20 04:59:40.332459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$bhSAQjb3hF1GIX4HfhnSCujhH2PC/AQJayc6/UFoMhGCGlikruiMu"], ["created_at", "2015-03-20 04:59:40.336834"], ["updated_at", "2015-03-20 04:59:40.336834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.338232"], ["user_id", "ea528246-cebd-11e4-bad0-705681abff85"], ["created_at", "2015-03-20 04:59:40.338985"], ["updated_at", "2015-03-20 04:59:40.338985"], ["token", "mEcsIbid8w9Wt5vxRPpvoe8gRwaTxfQRaPZJXpTy9J0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'ea50ea62-cebd-11e4-b973-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "ea50ea62-cebd-11e4-b973-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.342823"], ["updated_at", "2015-03-20 04:59:40.342823"], ["token", "9RMFuuUoyH8zFtLr4NghgR3rsOUzUQl84OZjMvwk0bU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ea50ea62-cebd-11e4-b973-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"ea50ea62-cebd-11e4-b973-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.349518' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mEcsIbid8w9Wt5vxRPpvoe8gRwaTxfQRaPZJXpTy9J0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.351409"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.352750"], ["id", "ea52dd40-cebd-11e4-a520-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ea50ea62-cebd-11e4-b973-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea528246-cebd-11e4-bad0-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$4In6KVVoXMp1S2qEIXhb7.JFq8J5VMPYXg3Tfncgvy5081BjEsAHm"], ["created_at", "2015-03-20 04:59:40.362897"], ["updated_at", "2015-03-20 04:59:40.362897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$g0ipvn.E99YfIVuK45Mc9eWtVZuBesBQoBbqqjRAUGwQOYPpq1mhu"], ["created_at", "2015-03-20 04:59:40.368309"], ["updated_at", "2015-03-20 04:59:40.368309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.370056"], ["user_id", "ea567eaa-cebd-11e4-934c-705681abff85"], ["created_at", "2015-03-20 04:59:40.370836"], ["updated_at", "2015-03-20 04:59:40.370836"], ["token", "tm6PF4DO4eVn_7BaO-nqXdXwUoVm0qJ78cF-VKbyHe8"]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.389803"], ["updated_at", "2015-03-20 04:59:40.389803"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea567eaa-cebd-11e4-934c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea5abb28-cebd-11e4-9730-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea567eaa-cebd-11e4-934c-705681abff85"], ["organization_id", "ea5abb28-cebd-11e4-9730-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.399316"], ["updated_at", "2015-03-20 04:59:40.399316"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea57571c-cebd-11e4-9830-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea5abb28-cebd-11e4-9730-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea57571c-cebd-11e4-9830-705681abff85"], ["organization_id", "ea5abb28-cebd-11e4-9730-705681abff85"], ["created_at", "2015-03-20 04:59:40.406728"], ["updated_at", "2015-03-20 04:59:40.406728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$IqwDuBEEoavi8KhqAzIE5eaO1IVvN7gH4hNquWiUTK9Q6YyCZ9hQC"], ["created_at", "2015-03-20 04:59:40.418400"], ["updated_at", "2015-03-20 04:59:40.418400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$EqpcHjkqHtQz7rOzEd/MOuEitDkrdor4fraFDhGJGFmYG/SVNh39m"], ["created_at", "2015-03-20 04:59:40.423169"], ["updated_at", "2015-03-20 04:59:40.423169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.424671"], ["user_id", "ea5ef99a-cebd-11e4-8062-705681abff85"], ["created_at", "2015-03-20 04:59:40.425397"], ["updated_at", "2015-03-20 04:59:40.425397"], ["token", "js160iLsAlAiGQlSaRGTwOugIOpOVr4LivNN2_aiWkQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.428656"], ["updated_at", "2015-03-20 04:59:40.428656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea5ef99a-cebd-11e4-8062-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea608968-cebd-11e4-bdd3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea5ef99a-cebd-11e4-8062-705681abff85"], ["organization_id", "ea608968-cebd-11e4-bdd3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.432188"], ["updated_at", "2015-03-20 04:59:40.432188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea5fb0c4-cebd-11e4-9d51-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea608968-cebd-11e4-bdd3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea5fb0c4-cebd-11e4-9d51-705681abff85"], ["organization_id", "ea608968-cebd-11e4-bdd3-705681abff85"], ["created_at", "2015-03-20 04:59:40.435254"], ["updated_at", "2015-03-20 04:59:40.435254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/ea608968-cebd-11e4-bdd3-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"ea608968-cebd-11e4-bdd3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.439735' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "js160iLsAlAiGQlSaRGTwOugIOpOVr4LivNN2_aiWkQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.441129"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.442072"], ["id", "ea600c40-cebd-11e4-a144-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ea608968-cebd-11e4-bdd3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea5ef99a-cebd-11e4-8062-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ea5ef99a-cebd-11e4-8062-705681abff85' LIMIT 1 [["organization_id", "ea608968-cebd-11e4-bdd3-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "ea608968-cebd-11e4-bdd3-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('ea5ef99a-cebd-11e4-8062-705681abff85', 'ea5fb0c4-cebd-11e4-9d51-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('ea608968-cebd-11e4-bdd3-705681abff85') Completed 200 OK in 12ms (Views: 4.1ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$snHVKKAYlDswew5HKzgFZ.l.uM5duMJXCBQeYcKX7mS6l3IjpCJHG"], ["created_at", "2015-03-20 04:59:40.457966"], ["updated_at", "2015-03-20 04:59:40.457966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$.2etfF/B8qPyUJjsPrNWduURWLVWXnOBtbQ5Ez.U/soBdahhtLLP6"], ["created_at", "2015-03-20 04:59:40.462388"], ["updated_at", "2015-03-20 04:59:40.462388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.463911"], ["user_id", "ea6500b0-cebd-11e4-a765-705681abff85"], ["created_at", "2015-03-20 04:59:40.464661"], ["updated_at", "2015-03-20 04:59:40.464661"], ["token", "chbK1AkaEilpSeSyQ7XYNG6dD7pSfn6l5ebAGNNDYOw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.469102"], ["updated_at", "2015-03-20 04:59:40.469102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea6500b0-cebd-11e4-a765-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea66b41e-cebd-11e4-a7b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea6500b0-cebd-11e4-a765-705681abff85"], ["organization_id", "ea66b41e-cebd-11e4-a7b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.472412"], ["updated_at", "2015-03-20 04:59:40.472412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea65ac0e-cebd-11e4-a659-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea66b41e-cebd-11e4-a7b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea65ac0e-cebd-11e4-a659-705681abff85"], ["organization_id", "ea66b41e-cebd-11e4-a7b6-705681abff85"], ["created_at", "2015-03-20 04:59:40.475393"], ["updated_at", "2015-03-20 04:59:40.475393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$6TsgbEbAhabArCO7B/w1Rut5MLqpZt.vQkne3Bm.939XvmZkqc4Xm"], ["created_at", "2015-03-20 04:59:40.485156"], ["updated_at", "2015-03-20 04:59:40.485156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$8RCnrQnVwTqTU1tWXsYfk.LIB6MDiZujaV6rOgMFb/v/s7FKNnUWm"], ["created_at", "2015-03-20 04:59:40.490357"], ["updated_at", "2015-03-20 04:59:40.490357"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.491917"], ["user_id", "ea69355e-cebd-11e4-8c3f-705681abff85"], ["created_at", "2015-03-20 04:59:40.492683"], ["updated_at", "2015-03-20 04:59:40.492683"], ["token", "DFMrUW3deJRatHUMsx-36IXCP-1q6AQrR3Q3IfLCiJI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.496068"], ["updated_at", "2015-03-20 04:59:40.496068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea69355e-cebd-11e4-8c3f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea6ad030-cebd-11e4-aaed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea69355e-cebd-11e4-8c3f-705681abff85"], ["organization_id", "ea6ad030-cebd-11e4-aaed-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.499338"], ["updated_at", "2015-03-20 04:59:40.499338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea69f11a-cebd-11e4-84e4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea6ad030-cebd-11e4-aaed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea69f11a-cebd-11e4-84e4-705681abff85"], ["organization_id", "ea6ad030-cebd-11e4-aaed-705681abff85"], ["created_at", "2015-03-20 04:59:40.502965"], ["updated_at", "2015-03-20 04:59:40.502965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/ea6bdd9a-cebd-11e4-93ae-705681abff85" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"ea6bdd9a-cebd-11e4-93ae-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.508090' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DFMrUW3deJRatHUMsx-36IXCP-1q6AQrR3Q3IfLCiJI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.510546"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.512288"], ["id", "ea6a55f6-cebd-11e4-89fe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "ea6bdd9a-cebd-11e4-93ae-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea69355e-cebd-11e4-8c3f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea6ad030-cebd-11e4-aaed-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea69355e-cebd-11e4-8c3f-705681abff85' LIMIT 1 [["organization_id", "ea6ad030-cebd-11e4-aaed-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea69f11a-cebd-11e4-84e4-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea69f11a-cebd-11e4-84e4-705681abff85' AND "clubhouse_memberships"."id" != 'ea6bdd9a-cebd-11e4-93ae-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea6ad030-cebd-11e4-aaed-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 04:59:40.521653"], ["id", "ea6bdd9a-cebd-11e4-93ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$gk3k0xcyQxYtET6MAWeNHempvPfTP2aHd8lgGkkprRGNzHvR9bMYS"], ["created_at", "2015-03-20 04:59:40.530617"], ["updated_at", "2015-03-20 04:59:40.530617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$0ZgUjw0XPov4w2O.LGTUFeXLVTuKXC47DjvFJSXsPnI7gdpTZuW/W"], ["created_at", "2015-03-20 04:59:40.535151"], ["updated_at", "2015-03-20 04:59:40.535151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.536671"], ["user_id", "ea701c02-cebd-11e4-995b-705681abff85"], ["created_at", "2015-03-20 04:59:40.537387"], ["updated_at", "2015-03-20 04:59:40.537387"], ["token", "k35CaCaZYUhz4sax6ys_fljXHaY7QiWUJBjqCpWCNJg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.540862"], ["updated_at", "2015-03-20 04:59:40.540862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea701c02-cebd-11e4-995b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea71a5ea-cebd-11e4-a437-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea701c02-cebd-11e4-995b-705681abff85"], ["organization_id", "ea71a5ea-cebd-11e4-a437-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.544055"], ["updated_at", "2015-03-20 04:59:40.544055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea70c710-cebd-11e4-8dbf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea71a5ea-cebd-11e4-a437-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea70c710-cebd-11e4-8dbf-705681abff85"], ["organization_id", "ea71a5ea-cebd-11e4-a437-705681abff85"], ["created_at", "2015-03-20 04:59:40.546892"], ["updated_at", "2015-03-20 04:59:40.546892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$4w.5c2N8/2QzSGvZZjL0y.jd81olidH1kC4hBXr0bdXrdTNEyLiba"], ["created_at", "2015-03-20 04:59:40.557489"], ["updated_at", "2015-03-20 04:59:40.557489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$uQRGCQr7xnyF4PTdSgxiBeuXBEekLyPH4Vagrds4VhdQat9htaH6."], ["created_at", "2015-03-20 04:59:40.561906"], ["updated_at", "2015-03-20 04:59:40.561906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.563587"], ["user_id", "ea743274-cebd-11e4-8eaf-705681abff85"], ["created_at", "2015-03-20 04:59:40.564368"], ["updated_at", "2015-03-20 04:59:40.564368"], ["token", "rhwimAR5nBFmXLa59OFMTGTEdtRAEr_jDiETc7V4axM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.568443"], ["updated_at", "2015-03-20 04:59:40.568443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea743274-cebd-11e4-8eaf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea75e88a-cebd-11e4-9a0f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea743274-cebd-11e4-8eaf-705681abff85"], ["organization_id", "ea75e88a-cebd-11e4-9a0f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.572184"], ["updated_at", "2015-03-20 04:59:40.572184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea74dfbc-cebd-11e4-bbfe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea75e88a-cebd-11e4-9a0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea74dfbc-cebd-11e4-bbfe-705681abff85"], ["organization_id", "ea75e88a-cebd-11e4-9a0f-705681abff85"], ["created_at", "2015-03-20 04:59:40.575357"], ["updated_at", "2015-03-20 04:59:40.575357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/ea766dc8-cebd-11e4-b4af-705681abff85" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"ea766dc8-cebd-11e4-b4af-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.579759' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rhwimAR5nBFmXLa59OFMTGTEdtRAEr_jDiETc7V4axM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.581224"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.582245"], ["id", "ea7545ec-cebd-11e4-86b3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "ea766dc8-cebd-11e4-b4af-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea743274-cebd-11e4-8eaf-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea75e88a-cebd-11e4-9a0f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ea743274-cebd-11e4-8eaf-705681abff85' LIMIT 1 [["organization_id", "ea75e88a-cebd-11e4-9a0f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea743274-cebd-11e4-8eaf-705681abff85"]] Completed 200 OK in 9ms (Views: 1.5ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$qh92oPI7QE11GIgujohwYOIhFlThzuj6Rk6HQm/itnnE6CwBJK/ey"], ["created_at", "2015-03-20 04:59:40.594596"], ["updated_at", "2015-03-20 04:59:40.594596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$trt0EpsCRyRvol.ASFytnO41nE11YUJBFXP7xJXMZCqo3Oa7kZBTS"], ["created_at", "2015-03-20 04:59:40.598755"], ["updated_at", "2015-03-20 04:59:40.598755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.600300"], ["user_id", "ea79d99a-cebd-11e4-9c6b-705681abff85"], ["created_at", "2015-03-20 04:59:40.601065"], ["updated_at", "2015-03-20 04:59:40.601065"], ["token", "XQachRD3enlIw7QD7ZCQSTJzK9Y3QCG8aVS_FkZ_8mY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.604412"], ["updated_at", "2015-03-20 04:59:40.604412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea79d99a-cebd-11e4-9c6b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea7b59c8-cebd-11e4-894e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea79d99a-cebd-11e4-9c6b-705681abff85"], ["organization_id", "ea7b59c8-cebd-11e4-894e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.607697"], ["updated_at", "2015-03-20 04:59:40.607697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea7a79d6-cebd-11e4-8f47-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea7b59c8-cebd-11e4-894e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea7a79d6-cebd-11e4-8f47-705681abff85"], ["organization_id", "ea7b59c8-cebd-11e4-894e-705681abff85"], ["created_at", "2015-03-20 04:59:40.610565"], ["updated_at", "2015-03-20 04:59:40.610565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$jZaInuFZ9FX6sz6Bn8h1MO0AEnHpNz7icIVHgeHyoZVA3NCRLGChS"], ["created_at", "2015-03-20 04:59:40.614811"], ["updated_at", "2015-03-20 04:59:40.614811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.616568"], ["user_id", "ea7cee64-cebd-11e4-a809-705681abff85"], ["created_at", "2015-03-20 04:59:40.617332"], ["updated_at", "2015-03-20 04:59:40.617332"], ["token", "C3m5Ipy-p0RsqQLl8yfw1PsG02eWmHMqvdxFShLKDac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = 'ea7b59c8-cebd-11e4-894e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "ea7b59c8-cebd-11e4-894e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.622142"], ["updated_at", "2015-03-20 04:59:40.622142"], ["token", "f8mMyLaCpVegr9sZhSk_105sUIa2_0dvDaKK8ZMa-ws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$Rg8NoP73RnSpr7mhQiu9cus.8aERjuMtIGnqAajjtdCZGA.403YiS"], ["created_at", "2015-03-20 04:59:40.634119"], ["updated_at", "2015-03-20 04:59:40.634119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$KkkuMuCcnxWD4Gw3ModJs.ZGAY9YURiPBntJ74Ci8DaEkj8KeEPbC"], ["created_at", "2015-03-20 04:59:40.639154"], ["updated_at", "2015-03-20 04:59:40.639154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.640659"], ["user_id", "ea7feec0-cebd-11e4-8c1f-705681abff85"], ["created_at", "2015-03-20 04:59:40.641520"], ["updated_at", "2015-03-20 04:59:40.641520"], ["token", "6JSMOuaWdAEwisNuNX4f8CP2WjSwEMlLPKhM9p9f1pY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.644885"], ["updated_at", "2015-03-20 04:59:40.644885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea7feec0-cebd-11e4-8c1f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea8183d4-cebd-11e4-b42c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea7feec0-cebd-11e4-8c1f-705681abff85"], ["organization_id", "ea8183d4-cebd-11e4-b42c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.648072"], ["updated_at", "2015-03-20 04:59:40.648072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea80a4e6-cebd-11e4-a138-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea8183d4-cebd-11e4-b42c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea80a4e6-cebd-11e4-a138-705681abff85"], ["organization_id", "ea8183d4-cebd-11e4-b42c-705681abff85"], ["created_at", "2015-03-20 04:59:40.651204"], ["updated_at", "2015-03-20 04:59:40.651204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$RM9gUtvB9p0sdwlYyzSZ4OhxWLiQOkrH7QA5qQxBzhQYHZJbbaTQm"], ["created_at", "2015-03-20 04:59:40.655583"], ["updated_at", "2015-03-20 04:59:40.655583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.657051"], ["user_id", "ea8326c6-cebd-11e4-a309-705681abff85"], ["created_at", "2015-03-20 04:59:40.657840"], ["updated_at", "2015-03-20 04:59:40.657840"], ["token", "Xsnae3VffbQXs_FKQMBK0qZpyDhWB6nY1eMX2Ba6otU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = 'ea8183d4-cebd-11e4-b42c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "ea8183d4-cebd-11e4-b42c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.661445"], ["updated_at", "2015-03-20 04:59:40.661445"], ["token", "qicRap0T1sVQgWdRdPeFasSvdyRRpM19CzQyLu5yt3E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"qicRap0T1sVQgWdRdPeFasSvdyRRpM19CzQyLu5yt3E", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.666591' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Xsnae3VffbQXs_FKQMBK0qZpyDhWB6nY1eMX2Ba6otU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.667915"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.669069"], ["id", "ea83842c-cebd-11e4-9785-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea8326c6-cebd-11e4-a309-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "qicRap0T1sVQgWdRdPeFasSvdyRRpM19CzQyLu5yt3E"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea8183d4-cebd-11e4-b42c-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea8326c6-cebd-11e4-a309-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea8183d4-cebd-11e4-b42c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "ea8183d4-cebd-11e4-b42c-705681abff85"], ["member_id", "ea8326c6-cebd-11e4-a309-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.676870"], ["updated_at", "2015-03-20 04:59:40.676870"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "ea8410d6-cebd-11e4-b27f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.0ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$X8TxdGlv1qpUI.5lstATnOYovQnS6XSZN8gKOkzMHozvp6Qcyokee"], ["created_at", "2015-03-20 04:59:40.687187"], ["updated_at", "2015-03-20 04:59:40.687187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$zTmNhJY7XSUVs.6Hs.SxP.bCEA/FURR3oiNCpQqPwx6j4NSzCWku."], ["created_at", "2015-03-20 04:59:40.691546"], ["updated_at", "2015-03-20 04:59:40.691546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.701625"], ["user_id", "ea87feb2-cebd-11e4-be54-705681abff85"], ["created_at", "2015-03-20 04:59:40.702493"], ["updated_at", "2015-03-20 04:59:40.702493"], ["token", "eZmabX2p3NnM21bG7TfjtjcX7JG6RhiE_tOBKGLGgas"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.706225"], ["updated_at", "2015-03-20 04:59:40.706225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea87feb2-cebd-11e4-be54-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea8ae05a-cebd-11e4-9066-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea87feb2-cebd-11e4-be54-705681abff85"], ["organization_id", "ea8ae05a-cebd-11e4-9066-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.709592"], ["updated_at", "2015-03-20 04:59:40.709592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea88a358-cebd-11e4-97a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea8ae05a-cebd-11e4-9066-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea88a358-cebd-11e4-97a2-705681abff85"], ["organization_id", "ea8ae05a-cebd-11e4-9066-705681abff85"], ["created_at", "2015-03-20 04:59:40.712732"], ["updated_at", "2015-03-20 04:59:40.712732"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$y1dKzGlWGznADwTCb8BFzeHgphj17fj4jD0JRmntWEpTj.tcpWPsm"], ["created_at", "2015-03-20 04:59:40.717032"], ["updated_at", "2015-03-20 04:59:40.717032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.718588"], ["user_id", "ea8c88ce-cebd-11e4-a44b-705681abff85"], ["created_at", "2015-03-20 04:59:40.719435"], ["updated_at", "2015-03-20 04:59:40.719435"], ["token", "Fw0E_kYhhsLoUjWnG--coIjr2RBU1qJSI51xQjntWNo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = 'ea8ae05a-cebd-11e4-9066-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "ea8ae05a-cebd-11e4-9066-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.723532"], ["updated_at", "2015-03-20 04:59:40.723532"], ["token", "sZTSyzUxw7gYIdAwmjwMXy5wgLQTcDl7mjTyssxI7yA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.730061' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Fw0E_kYhhsLoUjWnG--coIjr2RBU1qJSI51xQjntWNo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.731809"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.734239"], ["id", "ea8cf4f8-cebd-11e4-9095-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea8c88ce-cebd-11e4-a44b-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$TBFfSeBSZyZhhPZxGf6T1.CNmCo7BMhTQGHUFcnF3LFF7uBKu36Da"], ["created_at", "2015-03-20 04:59:40.747893"], ["updated_at", "2015-03-20 04:59:40.747893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$22ikRgqr70iPvOIsn30bWOO3fjKNheMHtcWoGrgoGHx/.MP1nVKue"], ["created_at", "2015-03-20 04:59:40.752983"], ["updated_at", "2015-03-20 04:59:40.752983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.755481"], ["user_id", "ea9142e2-cebd-11e4-bc3a-705681abff85"], ["created_at", "2015-03-20 04:59:40.756371"], ["updated_at", "2015-03-20 04:59:40.756371"], ["token", "Vb9inyhpeg14GzqqveIxnq5YcbJcS7bTi0D_-DeJLF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.760760"], ["updated_at", "2015-03-20 04:59:40.760760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea9142e2-cebd-11e4-bc3a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea9335e8-cebd-11e4-a1d6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea9142e2-cebd-11e4-bc3a-705681abff85"], ["organization_id", "ea9335e8-cebd-11e4-a1d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.766355"], ["updated_at", "2015-03-20 04:59:40.766355"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea921b40-cebd-11e4-9572-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea9335e8-cebd-11e4-a1d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea921b40-cebd-11e4-9572-705681abff85"], ["organization_id", "ea9335e8-cebd-11e4-a1d6-705681abff85"], ["created_at", "2015-03-20 04:59:40.771558"], ["updated_at", "2015-03-20 04:59:40.771558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$wx0zz9Q5XmZKCkfVqUBcf.kMlkhAMVw3T4QeNbJeO5tvEF9Xekug2"], ["created_at", "2015-03-20 04:59:40.782400"], ["updated_at", "2015-03-20 04:59:40.782400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$dEq4J4ifOuKD8hKhAhIrdO9f8uwls7lF5VYf9Ip98Y/1B0WawfDuC"], ["created_at", "2015-03-20 04:59:40.789264"], ["updated_at", "2015-03-20 04:59:40.789264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.790951"], ["user_id", "ea96901c-cebd-11e4-be7f-705681abff85"], ["created_at", "2015-03-20 04:59:40.791777"], ["updated_at", "2015-03-20 04:59:40.791777"], ["token", "htMUr3yF_e-rMqw2_JLmibmwYvtFfGxqZjdQvPGx2oY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.795315"], ["updated_at", "2015-03-20 04:59:40.795315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea96901c-cebd-11e4-be7f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea98945c-cebd-11e4-a22d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea96901c-cebd-11e4-be7f-705681abff85"], ["organization_id", "ea98945c-cebd-11e4-a22d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.800853"], ["updated_at", "2015-03-20 04:59:40.800853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea97905c-cebd-11e4-8c39-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea98945c-cebd-11e4-a22d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea97905c-cebd-11e4-8c39-705681abff85"], ["organization_id", "ea98945c-cebd-11e4-a22d-705681abff85"], ["created_at", "2015-03-20 04:59:40.805486"], ["updated_at", "2015-03-20 04:59:40.805486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/ea9a211e-cebd-11e4-bbfa-705681abff85" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"ea9a211e-cebd-11e4-bbfa-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.811985' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "htMUr3yF_e-rMqw2_JLmibmwYvtFfGxqZjdQvPGx2oY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.813647"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.814829"], ["id", "ea97f6e6-cebd-11e4-babb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "ea9a211e-cebd-11e4-bbfa-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea96901c-cebd-11e4-be7f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ea98945c-cebd-11e4-a22d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea96901c-cebd-11e4-be7f-705681abff85' LIMIT 1 [["organization_id", "ea98945c-cebd-11e4-a22d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea97905c-cebd-11e4-8c39-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "ea9a211e-cebd-11e4-bbfa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$P.ugLOac1EE2oGukfLSC7e5SYDQ8R8pMtwZof46zAVftdTM7X96Hy"], ["created_at", "2015-03-20 04:59:40.830477"], ["updated_at", "2015-03-20 04:59:40.830477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$Rcwcu3jvTQCJMETd2xw/helFvw2OWCyU.Bbgn2ep1bDjY9aDL3mmC"], ["created_at", "2015-03-20 04:59:40.835074"], ["updated_at", "2015-03-20 04:59:40.835074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.837579"], ["user_id", "ea9dda52-cebd-11e4-b5c2-705681abff85"], ["created_at", "2015-03-20 04:59:40.838411"], ["updated_at", "2015-03-20 04:59:40.838411"], ["token", "vZZ-T61thNZn2klLobznVAnhygQABswMu4NEQOGEf4s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.841964"], ["updated_at", "2015-03-20 04:59:40.841964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea9dda52-cebd-11e4-b5c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea9f96b2-cebd-11e4-8ded-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea9dda52-cebd-11e4-b5c2-705681abff85"], ["organization_id", "ea9f96b2-cebd-11e4-8ded-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.845312"], ["updated_at", "2015-03-20 04:59:40.845312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea9ea27a-cebd-11e4-84a7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ea9f96b2-cebd-11e4-8ded-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea9ea27a-cebd-11e4-84a7-705681abff85"], ["organization_id", "ea9f96b2-cebd-11e4-8ded-705681abff85"], ["created_at", "2015-03-20 04:59:40.848479"], ["updated_at", "2015-03-20 04:59:40.848479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$qVVzqCCjSl/uvoMYPVDHzu1EYbSMKOCO5Vmi4G.NbhRcLr4HlXhFW"], ["created_at", "2015-03-20 04:59:40.859077"], ["updated_at", "2015-03-20 04:59:40.859077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$CtcBi8ybGIU4Kp7W3GWui.dxqSsjVEH1I2.2EWobBRwXsj7TJzrme"], ["created_at", "2015-03-20 04:59:40.863476"], ["updated_at", "2015-03-20 04:59:40.863476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:40.865051"], ["user_id", "eaa2378c-cebd-11e4-8f55-705681abff85"], ["created_at", "2015-03-20 04:59:40.865856"], ["updated_at", "2015-03-20 04:59:40.865856"], ["token", "eK57Xfrk9ig1ft3RniXw_yh4QCotOzh4uajnLvbTiv8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.870001"], ["updated_at", "2015-03-20 04:59:40.870001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaa2378c-cebd-11e4-8f55-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eaa3e870-cebd-11e4-997e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eaa2378c-cebd-11e4-8f55-705681abff85"], ["organization_id", "eaa3e870-cebd-11e4-997e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:40.873702"], ["updated_at", "2015-03-20 04:59:40.873702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaa2e1d2-cebd-11e4-a83f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eaa3e870-cebd-11e4-997e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eaa2e1d2-cebd-11e4-a83f-705681abff85"], ["organization_id", "eaa3e870-cebd-11e4-997e-705681abff85"], ["created_at", "2015-03-20 04:59:40.877000"], ["updated_at", "2015-03-20 04:59:40.877000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 21:59:40 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:40.881995' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eK57Xfrk9ig1ft3RniXw_yh4QCotOzh4uajnLvbTiv8"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:40.883815"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:40.885699"], ["id", "eaa348a2-cebd-11e4-8ffa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eaa2378c-cebd-11e4-8f55-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eaa2378c-cebd-11e4-8f55-705681abff85' LIMIT 1 [["organization_id", "eaa3e870-cebd-11e4-997e-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "eaa3e870-cebd-11e4-997e-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('eaa2378c-cebd-11e4-8f55-705681abff85', 'eaa2e1d2-cebd-11e4-a83f-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('eaa3e870-cebd-11e4-997e-705681abff85') Completed 200 OK in 16ms (Views: 4.1ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.903419"], ["updated_at", "2015-03-20 04:59:40.903419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'eaa8fb26-cebd-11e4-8b7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "eaa8fb26-cebd-11e4-8b7d-705681abff85"], ["created_at", "2015-03-20 04:59:40.907130"], ["updated_at", "2015-03-20 04:59:40.907130"], ["token", "fq21SQEy0BkdeCbX322BNlXBr28rvI_yUKL8PSoVcmw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.8ms) Date: Thu, 19 Mar 2015 21:59:40 -0700 From: from@example.com To: john@example.com Message-ID: <550ba93cde707_10093fc5e5065be0632@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/fq21SQEy0BkdeCbX322BNlXBr28rvI_yUKL8PSoVcmw?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.916133"], ["updated_at", "2015-03-20 04:59:40.916133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'eaaaec2e-cebd-11e4-a6fb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "eaaaec2e-cebd-11e4-a6fb-705681abff85"], ["created_at", "2015-03-20 04:59:40.919939"], ["updated_at", "2015-03-20 04:59:40.919939"], ["token", "WQ5G1hhxm1x8A-6KIxE_fgBFdIRzx_uEYWQNR9u65Ng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Thu, 19 Mar 2015 21:59:40 -0700 From: from@example.com To: john@example.com Message-ID: <550ba93ce1834_10093fc5e5065be07ef@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/WQ5G1hhxm1x8A-6KIxE_fgBFdIRzx_uEYWQNR9u65Ng?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.930576"], ["updated_at", "2015-03-20 04:59:40.930576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'eaad228c-cebd-11e4-b94c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "eaad228c-cebd-11e4-b94c-705681abff85"], ["created_at", "2015-03-20 04:59:40.934220"], ["updated_at", "2015-03-20 04:59:40.934220"], ["token", "o_j1Kch9TEKxSCZbejPdj-j6koYtoGMd5UkaH5tndrY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.8ms) Date: Thu, 19 Mar 2015 21:59:40 -0700 From: from@example.com To: john@example.com Message-ID: <550ba93ce50d4_10093fc5e5065be0815@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/o_j1Kch9TEKxSCZbejPdj-j6koYtoGMd5UkaH5tndrY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.943005"], ["updated_at", "2015-03-20 04:59:40.943005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'eaaf0552-cebd-11e4-b7fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "eaaf0552-cebd-11e4-b7fa-705681abff85"], ["created_at", "2015-03-20 04:59:40.946409"], ["updated_at", "2015-03-20 04:59:40.946409"], ["token", "p-i4im53ePOMtLLVSq9TS8letyD94IHKkaFORqM6FiE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.8ms) Date: Thu, 19 Mar 2015 21:59:40 -0700 From: from@example.com To: john@example.com Message-ID: <550ba93ce7e28_10093fc5e5065be09c1@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/p-i4im53ePOMtLLVSq9TS8letyD94IHKkaFORqM6FiE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$xPKIlIQtQgpXL120A6m/uuxrqm8mH6phQE23rrf1dNTruV6B5cViG"], ["created_at", "2015-03-20 04:59:40.957048"], ["updated_at", "2015-03-20 04:59:40.957048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.960283"], ["updated_at", "2015-03-20 04:59:40.960283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'eab1a49c-cebd-11e4-8b50-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "eab1a49c-cebd-11e4-8b50-705681abff85"], ["created_at", "2015-03-20 04:59:40.963535"], ["updated_at", "2015-03-20 04:59:40.963535"], ["token", "sIs6asG9dOQzrcCwXAm1do6qCt8SYFPOGDWveJ-EqZ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eab12b2a-cebd-11e4-810a-705681abff85' LIMIT 1 [["organization_id", "eab1a49c-cebd-11e4-8b50-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$8zwq897uz.kirFIgq6cMwuQbdjEculR3hnnWCvvgnGpokYyacJtHu"], ["created_at", "2015-03-20 04:59:40.971005"], ["updated_at", "2015-03-20 04:59:40.971005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.974137"], ["updated_at", "2015-03-20 04:59:40.974137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = 'eab3c470-cebd-11e4-9b93-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "eab3c470-cebd-11e4-9b93-705681abff85"], ["created_at", "2015-03-20 04:59:40.977608"], ["updated_at", "2015-03-20 04:59:40.977608"], ["token", "Nc5WtR1o5VX5OQhXfehewPovfrsUXSeLkudwHMf6LKk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eab3496e-cebd-11e4-a1c8-705681abff85' LIMIT 1 [["organization_id", "eab3c470-cebd-11e4-9b93-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$JEvqEWu0NHLVFcVrE.BPmOxPTsqL7TWIblXPU.l4J9e6dIKFi.j12"], ["created_at", "2015-03-20 04:59:40.985061"], ["updated_at", "2015-03-20 04:59:40.985061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:40.988776"], ["updated_at", "2015-03-20 04:59:40.988776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'eab603a2-cebd-11e4-9d07-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "eab603a2-cebd-11e4-9d07-705681abff85"], ["created_at", "2015-03-20 04:59:40.992691"], ["updated_at", "2015-03-20 04:59:40.992691"], ["token", "X8dGZ36lQKnDGGoAR1FkXbGkZc3jdWpJk2pWp6S1-08"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eab573ce-cebd-11e4-b2b9-705681abff85' LIMIT 1 [["organization_id", "eab603a2-cebd-11e4-9d07-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$KYDKfnQGugwXN1BJCoRqx.EI5KaR8g5U8yubom1rnARu7ZzSOuX2G"], ["created_at", "2015-03-20 04:59:41.000540"], ["updated_at", "2015-03-20 04:59:41.000540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.004812"], ["updated_at", "2015-03-20 04:59:41.004812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'eab87394-cebd-11e4-ac26-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "eab87394-cebd-11e4-ac26-705681abff85"], ["created_at", "2015-03-20 04:59:41.008313"], ["updated_at", "2015-03-20 04:59:41.008313"], ["token", "ydNoP2pizTUF0ageWMF6FSvz2j4AE_V_fG62Nz2Bf9w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eab7cdd6-cebd-11e4-981b-705681abff85' LIMIT 1 [["organization_id", "eab87394-cebd-11e4-ac26-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$BDnFPk9RqtLrzA/4Drc29uZ6VdoujLIqDcGM94iMuxrkreecVZKLe"], ["created_at", "2015-03-20 04:59:41.017948"], ["updated_at", "2015-03-20 04:59:41.017948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.021453"], ["updated_at", "2015-03-20 04:59:41.021453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eaba75f4-cebd-11e4-b812-705681abff85' LIMIT 1 [["organization_id", "eabafb32-cebd-11e4-baec-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$DSSpw3FyNqw6GRLwXT1h3.JqwroQsNIWSQ4hNqas438lZ3peEQ/F6"], ["created_at", "2015-03-20 04:59:41.028616"], ["updated_at", "2015-03-20 04:59:41.028616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.031821"], ["updated_at", "2015-03-20 04:59:41.031821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eabc13dc-cebd-11e4-bc39-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eabc8f10-cebd-11e4-888d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eabc13dc-cebd-11e4-bc39-705681abff85"], ["organization_id", "eabc8f10-cebd-11e4-888d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.035190"], ["updated_at", "2015-03-20 04:59:41.035190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'eabc8f10-cebd-11e4-888d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "eabc8f10-cebd-11e4-888d-705681abff85"], ["created_at", "2015-03-20 04:59:41.039173"], ["updated_at", "2015-03-20 04:59:41.039173"], ["token", "TefxqoW0d7eD6PVXfSMNSgZLIY6b-yvXanFM7bVjroA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eabc13dc-cebd-11e4-bc39-705681abff85' LIMIT 1 [["organization_id", "eabc8f10-cebd-11e4-888d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$LZ2vLJoNH90zX.G9OEi9f.C7HbnZ4gO/SgmfM7sonX.gzW6MoWeZy"], ["created_at", "2015-03-20 04:59:41.046622"], ["updated_at", "2015-03-20 04:59:41.046622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.049866"], ["updated_at", "2015-03-20 04:59:41.049866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eabed7a2-cebd-11e4-a5de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eabf5114-cebd-11e4-b040-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eabed7a2-cebd-11e4-a5de-705681abff85"], ["organization_id", "eabf5114-cebd-11e4-b040-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.054235"], ["updated_at", "2015-03-20 04:59:41.054235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'eabf5114-cebd-11e4-b040-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "eabf5114-cebd-11e4-b040-705681abff85"], ["created_at", "2015-03-20 04:59:41.058186"], ["updated_at", "2015-03-20 04:59:41.058186"], ["token", "-bA3Iu9SEQBsAkq87tuuTl59_uKlfcAcbFFAZj0xaLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eabed7a2-cebd-11e4-a5de-705681abff85' LIMIT 1 [["organization_id", "eabf5114-cebd-11e4-b040-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$xNdB/K3dTVUxCaSAgu1sHOz2xZEbWaUAbtxYNnpmIPr7/bHPf33f6"], ["created_at", "2015-03-20 04:59:41.065505"], ["updated_at", "2015-03-20 04:59:41.065505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.068799"], ["updated_at", "2015-03-20 04:59:41.068799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eac1b5bc-cebd-11e4-bb35-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eac2383e-cebd-11e4-9d10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eac1b5bc-cebd-11e4-bb35-705681abff85"], ["organization_id", "eac2383e-cebd-11e4-9d10-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.072319"], ["updated_at", "2015-03-20 04:59:41.072319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'eac2383e-cebd-11e4-9d10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "eac2383e-cebd-11e4-9d10-705681abff85"], ["created_at", "2015-03-20 04:59:41.075769"], ["updated_at", "2015-03-20 04:59:41.075769"], ["token", "hz-tLyZS9vVkM0lFD2yd0PxadSPySMTsuDBL1Wn2g4M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eac1b5bc-cebd-11e4-bb35-705681abff85' LIMIT 1 [["organization_id", "eac2383e-cebd-11e4-9d10-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$/wteua9C4EUGUi8qTGHIIuOLa4GSeuJ611XwhE4U28pzb4K7rAFjm"], ["created_at", "2015-03-20 04:59:41.084068"], ["updated_at", "2015-03-20 04:59:41.084068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.088112"], ["updated_at", "2015-03-20 04:59:41.088112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eac48fb2-cebd-11e4-a4bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eac53052-cebd-11e4-ba1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eac48fb2-cebd-11e4-a4bb-705681abff85"], ["organization_id", "eac53052-cebd-11e4-ba1a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.091905"], ["updated_at", "2015-03-20 04:59:41.091905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = 'eac53052-cebd-11e4-ba1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "eac53052-cebd-11e4-ba1a-705681abff85"], ["created_at", "2015-03-20 04:59:41.095758"], ["updated_at", "2015-03-20 04:59:41.095758"], ["token", "WHzeEgohKvjR7Oq3IjlpKXjqiXPSc6yJZS8nsMFMb_Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eac48fb2-cebd-11e4-a4bb-705681abff85' LIMIT 1 [["organization_id", "eac53052-cebd-11e4-ba1a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$98EAioaf745h9V13DyOe2.l2dYAxoHSrVUZlU/zMDmSODYZdJhukq"], ["created_at", "2015-03-20 04:59:41.104020"], ["updated_at", "2015-03-20 04:59:41.104020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.107823"], ["updated_at", "2015-03-20 04:59:41.107823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eac7a1fc-cebd-11e4-a419-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eac82a0a-cebd-11e4-b7a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eac7a1fc-cebd-11e4-a419-705681abff85"], ["organization_id", "eac82a0a-cebd-11e4-b7a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.111983"], ["updated_at", "2015-03-20 04:59:41.111983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eac7a1fc-cebd-11e4-a419-705681abff85' LIMIT 1 [["organization_id", "eac82a0a-cebd-11e4-b7a5-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$8fQMsgYlQlmTSFPnLWUc8eC5OuHk5qbK2WchvGe29oxtkiDpUHGFS"], ["created_at", "2015-03-20 04:59:41.120649"], ["updated_at", "2015-03-20 04:59:41.120649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.124163"], ["updated_at", "2015-03-20 04:59:41.124163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaca259e-cebd-11e4-954b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eacaa820-cebd-11e4-972c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eaca259e-cebd-11e4-954b-705681abff85"], ["organization_id", "eacaa820-cebd-11e4-972c-705681abff85"], ["created_at", "2015-03-20 04:59:41.127598"], ["updated_at", "2015-03-20 04:59:41.127598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'eacaa820-cebd-11e4-972c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "eacaa820-cebd-11e4-972c-705681abff85"], ["created_at", "2015-03-20 04:59:41.131066"], ["updated_at", "2015-03-20 04:59:41.131066"], ["token", "8V98vmREhN2hK1_IShz2Oqr9P5QLxcDVtbP8MAzVLMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eaca259e-cebd-11e4-954b-705681abff85' LIMIT 1 [["organization_id", "eacaa820-cebd-11e4-972c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$P3YAQNZuv97yg0GF3qlwAuheqmDkOd8OZDUglqP5NGRYF19xbky7."], ["created_at", "2015-03-20 04:59:41.138844"], ["updated_at", "2015-03-20 04:59:41.138844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.142324"], ["updated_at", "2015-03-20 04:59:41.142324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaccec34-cebd-11e4-b77c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eacd6e52-cebd-11e4-81c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eaccec34-cebd-11e4-b77c-705681abff85"], ["organization_id", "eacd6e52-cebd-11e4-81c3-705681abff85"], ["created_at", "2015-03-20 04:59:41.145669"], ["updated_at", "2015-03-20 04:59:41.145669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = 'eacd6e52-cebd-11e4-81c3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "eacd6e52-cebd-11e4-81c3-705681abff85"], ["created_at", "2015-03-20 04:59:41.149308"], ["updated_at", "2015-03-20 04:59:41.149308"], ["token", "iE_q0jGD2ZLtQzBlq9F5Q1DMwMFr35sdu0qyTJqB63I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eaccec34-cebd-11e4-b77c-705681abff85' LIMIT 1 [["organization_id", "eacd6e52-cebd-11e4-81c3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$EseOB/USFtTpxLpDZRHZR.NMKadCeN2mLX5WJs/WSwR/6dtuxUYIC"], ["created_at", "2015-03-20 04:59:41.157635"], ["updated_at", "2015-03-20 04:59:41.157635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.161075"], ["updated_at", "2015-03-20 04:59:41.161075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eacfc7d8-cebd-11e4-aa75-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ead049c4-cebd-11e4-b8da-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eacfc7d8-cebd-11e4-aa75-705681abff85"], ["organization_id", "ead049c4-cebd-11e4-b8da-705681abff85"], ["created_at", "2015-03-20 04:59:41.164314"], ["updated_at", "2015-03-20 04:59:41.164314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = 'ead049c4-cebd-11e4-b8da-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "ead049c4-cebd-11e4-b8da-705681abff85"], ["created_at", "2015-03-20 04:59:41.167671"], ["updated_at", "2015-03-20 04:59:41.167671"], ["token", "yFphl-v4vrNP4uWSS3PaoMmW8wU7XdhDFBDfKNWInyA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eacfc7d8-cebd-11e4-aa75-705681abff85' LIMIT 1 [["organization_id", "ead049c4-cebd-11e4-b8da-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$ERHSSQU5VANS.xrSzfpvNee2OJwD3YDDGU8SbuiIFC/JE.kjnI94e"], ["created_at", "2015-03-20 04:59:41.175932"], ["updated_at", "2015-03-20 04:59:41.175932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.179244"], ["updated_at", "2015-03-20 04:59:41.179244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ead291d4-cebd-11e4-acc5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ead30eb6-cebd-11e4-98df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ead291d4-cebd-11e4-acc5-705681abff85"], ["organization_id", "ead30eb6-cebd-11e4-98df-705681abff85"], ["created_at", "2015-03-20 04:59:41.182446"], ["updated_at", "2015-03-20 04:59:41.182446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'ead30eb6-cebd-11e4-98df-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "ead30eb6-cebd-11e4-98df-705681abff85"], ["created_at", "2015-03-20 04:59:41.185937"], ["updated_at", "2015-03-20 04:59:41.185937"], ["token", "byr1CFXK5Z_1qtO-z1HIoxnsh05zJUnDMMJ1HUm4tfQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ead291d4-cebd-11e4-acc5-705681abff85' LIMIT 1 [["organization_id", "ead30eb6-cebd-11e4-98df-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$MOlv4HNoNn6gV.25WuPXWevVK9hIbzNkM4E1tWoCr05zJwANwiNUO"], ["created_at", "2015-03-20 04:59:41.193737"], ["updated_at", "2015-03-20 04:59:41.193737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.196993"], ["updated_at", "2015-03-20 04:59:41.196993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ead547da-cebd-11e4-8acd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ead5c52a-cebd-11e4-9c70-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ead547da-cebd-11e4-8acd-705681abff85"], ["organization_id", "ead5c52a-cebd-11e4-9c70-705681abff85"], ["created_at", "2015-03-20 04:59:41.200455"], ["updated_at", "2015-03-20 04:59:41.200455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ead547da-cebd-11e4-8acd-705681abff85' LIMIT 1 [["organization_id", "ead5c52a-cebd-11e4-9c70-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$aIQXQHOCa/62Gn84BmzsHeUHRHAAlR580CAVW1UcG60pg3Zh8sYuO"], ["created_at", "2015-03-20 04:59:41.209475"], ["updated_at", "2015-03-20 04:59:41.209475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$//3p1wfM6GzxCrG2vUH2Tun.qpKa/gjCAs/ORg8.Srf.UqxjT.9pi"], ["created_at", "2015-03-20 04:59:41.215227"], ["updated_at", "2015-03-20 04:59:41.215227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.219465"], ["updated_at", "2015-03-20 04:59:41.219465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ead8a0ec-cebd-11e4-9dcf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ead93246-cebd-11e4-86fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ead8a0ec-cebd-11e4-9dcf-705681abff85"], ["organization_id", "ead93246-cebd-11e4-86fc-705681abff85"], ["created_at", "2015-03-20 04:59:41.222668"], ["updated_at", "2015-03-20 04:59:41.222668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$0sXGXTHXOyKe5do4wqV2gOGMauJXlZmTghGBsPYmH0qP1HzmYK6Xe"], ["created_at", "2015-03-20 04:59:41.228556"], ["updated_at", "2015-03-20 04:59:41.228556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$Ykdqp36iBkO94Zn0l1xJeeX92YQCiESM0yWWBos5t5FGF30vrrCum"], ["created_at", "2015-03-20 04:59:41.232691"], ["updated_at", "2015-03-20 04:59:41.232691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.235661"], ["updated_at", "2015-03-20 04:59:41.235661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eadb353c-cebd-11e4-a134-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eadbad0a-cebd-11e4-97a1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eadb353c-cebd-11e4-a134-705681abff85"], ["organization_id", "eadbad0a-cebd-11e4-97a1-705681abff85"], ["created_at", "2015-03-20 04:59:41.239016"], ["updated_at", "2015-03-20 04:59:41.239016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eada973a-cebd-11e4-9124-705681abff85' LIMIT 1 [["organization_id", "eadbad0a-cebd-11e4-97a1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$exA2HfexTsK8h/ilqMVz4O8xNYJilMbgxcu7SpJx1PHT.zMLf2W4u"], ["created_at", "2015-03-20 04:59:41.246165"], ["updated_at", "2015-03-20 04:59:41.246165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$q.7EoIRDhKbGkNZZZf.JkuueKihAnF4jIFqAVTdHSvapT0MZTxc2e"], ["created_at", "2015-03-20 04:59:41.250229"], ["updated_at", "2015-03-20 04:59:41.250229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.253555"], ["updated_at", "2015-03-20 04:59:41.253555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eadde3ea-cebd-11e4-a0b3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eade69a0-cebd-11e4-80f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eadde3ea-cebd-11e4-a0b3-705681abff85"], ["organization_id", "eade69a0-cebd-11e4-80f8-705681abff85"], ["created_at", "2015-03-20 04:59:41.257896"], ["updated_at", "2015-03-20 04:59:41.257896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eadd453e-cebd-11e4-8e8a-705681abff85' LIMIT 1 [["organization_id", "eade69a0-cebd-11e4-80f8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$LsEqg4mxKomo6xiCaNSDbeB9J7kFDQXyTtYSS4huMRWbYNYhZ9mVu"], ["created_at", "2015-03-20 04:59:41.264900"], ["updated_at", "2015-03-20 04:59:41.264900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$19SfKZesx3uKSQWx0lyem.m764JZZCA1x6DNXbL.oay4cEx60Kl/q"], ["created_at", "2015-03-20 04:59:41.270629"], ["updated_at", "2015-03-20 04:59:41.270629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.273698"], ["updated_at", "2015-03-20 04:59:41.273698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eae10124-cebd-11e4-b6a0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eae177b2-cebd-11e4-8aac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eae10124-cebd-11e4-b6a0-705681abff85"], ["organization_id", "eae177b2-cebd-11e4-8aac-705681abff85"], ["created_at", "2015-03-20 04:59:41.276828"], ["updated_at", "2015-03-20 04:59:41.276828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eae02100-cebd-11e4-9e8c-705681abff85' LIMIT 1 [["organization_id", "eae177b2-cebd-11e4-8aac-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$1MQE7C7B1iaxfhRttq9s.ecMX.e53Ja/HUOLMM1kwNxzupHYTrJQy"], ["created_at", "2015-03-20 04:59:41.283740"], ["updated_at", "2015-03-20 04:59:41.283740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.286725"], ["updated_at", "2015-03-20 04:59:41.286725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eae300fa-cebd-11e4-a6c3-705681abff85' LIMIT 1 [["organization_id", "eae37378-cebd-11e4-82d5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$KPrjSPZeuuU3JbemLLgXf.fuZG4KPUB2XnJJ9cZpNM/W9d3YvVkEC"], ["created_at", "2015-03-20 04:59:41.294138"], ["updated_at", "2015-03-20 04:59:41.294138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.297212"], ["updated_at", "2015-03-20 04:59:41.297212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eae4983e-cebd-11e4-a6fe-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eae50d78-cebd-11e4-ac17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eae4983e-cebd-11e4-a6fe-705681abff85"], ["organization_id", "eae50d78-cebd-11e4-ac17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.300292"], ["updated_at", "2015-03-20 04:59:41.300292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$SPv/tfJlinKyz3eO0gOEt.u4DEv3FuyEzzyizTn1j.7wrwyNPbQvm"], ["created_at", "2015-03-20 04:59:41.305603"], ["updated_at", "2015-03-20 04:59:41.305603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eae663ee-cebd-11e4-9419-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eae50d78-cebd-11e4-ac17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eae663ee-cebd-11e4-9419-705681abff85"], ["organization_id", "eae50d78-cebd-11e4-ac17-705681abff85"], ["created_at", "2015-03-20 04:59:41.309990"], ["updated_at", "2015-03-20 04:59:41.309990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$5cyaFrFbSED4BIuBe0q61u/Aok4Em8O5ktnFYkXhFiXNnDVk/okZy"], ["created_at", "2015-03-20 04:59:41.315664"], ["updated_at", "2015-03-20 04:59:41.315664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.318716"], ["updated_at", "2015-03-20 04:59:41.318716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eae7e07a-cebd-11e4-98c8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eae85668-cebd-11e4-acea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eae7e07a-cebd-11e4-98c8-705681abff85"], ["organization_id", "eae85668-cebd-11e4-acea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.321879"], ["updated_at", "2015-03-20 04:59:41.321879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$N5r3UJX4kJ8lZBs4zBgO7u9xom1tshEcqaZJUMY6GjPtYlXDs28li"], ["created_at", "2015-03-20 04:59:41.326082"], ["updated_at", "2015-03-20 04:59:41.326082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eae97502-cebd-11e4-8c9c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eae85668-cebd-11e4-acea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eae97502-cebd-11e4-8c9c-705681abff85"], ["organization_id", "eae85668-cebd-11e4-acea-705681abff85"], ["created_at", "2015-03-20 04:59:41.329199"], ["updated_at", "2015-03-20 04:59:41.329199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eae7e07a-cebd-11e4-98c8-705681abff85' LIMIT 1 [["organization_id", "eae85668-cebd-11e4-acea-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$rl5n0G2qrilLS1GoLJ2gueAgTyGNJmkq6Sz3WWwmzQfX4M4fO6yKS"], ["created_at", "2015-03-20 04:59:41.335970"], ["updated_at", "2015-03-20 04:59:41.335970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.339160"], ["updated_at", "2015-03-20 04:59:41.339160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaeafb8e-cebd-11e4-bc9b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eaeb7f1e-cebd-11e4-bc19-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eaeafb8e-cebd-11e4-bc9b-705681abff85"], ["organization_id", "eaeb7f1e-cebd-11e4-bc19-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.342814"], ["updated_at", "2015-03-20 04:59:41.342814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$IvGANmSD7iF2C1IBODvei.Po0Fku/jtTSUSNl5yw0F9CuuVmss9Wu"], ["created_at", "2015-03-20 04:59:41.347139"], ["updated_at", "2015-03-20 04:59:41.347139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaecac0e-cebd-11e4-bc2c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eaeb7f1e-cebd-11e4-bc19-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eaecac0e-cebd-11e4-bc2c-705681abff85"], ["organization_id", "eaeb7f1e-cebd-11e4-bc19-705681abff85"], ["created_at", "2015-03-20 04:59:41.350150"], ["updated_at", "2015-03-20 04:59:41.350150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eaeafb8e-cebd-11e4-bc9b-705681abff85' LIMIT 1 [["organization_id", "eaeb7f1e-cebd-11e4-bc19-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$mL8e6Ng8BkGQTCB37Cob..6ETR/cqpNCP09Ah6SQznGX2RewRibza"], ["created_at", "2015-03-20 04:59:41.358306"], ["updated_at", "2015-03-20 04:59:41.358306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.361548"], ["updated_at", "2015-03-20 04:59:41.361548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaee64e0-cebd-11e4-ad2d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eaeedf74-cebd-11e4-8946-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eaee64e0-cebd-11e4-ad2d-705681abff85"], ["organization_id", "eaeedf74-cebd-11e4-8946-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.364751"], ["updated_at", "2015-03-20 04:59:41.364751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$CvSpGBB4L.1/T.v0PvVBs.nY2cai..ByF1GiJXvbsqecUcJnISGKW"], ["created_at", "2015-03-20 04:59:41.369087"], ["updated_at", "2015-03-20 04:59:41.369087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (5.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaf01f7e-cebd-11e4-9415-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eaeedf74-cebd-11e4-8946-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eaf01f7e-cebd-11e4-9415-705681abff85"], ["organization_id", "eaeedf74-cebd-11e4-8946-705681abff85"], ["created_at", "2015-03-20 04:59:41.383537"], ["updated_at", "2015-03-20 04:59:41.383537"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eaee64e0-cebd-11e4-ad2d-705681abff85' LIMIT 1 [["organization_id", "eaeedf74-cebd-11e4-8946-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$kJZLk3PsmM8gok1AmeFiLuMnqW/1m/7xu6Fmf4GiM7msNloTo1ULS"], ["created_at", "2015-03-20 04:59:41.399615"], ["updated_at", "2015-03-20 04:59:41.399615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.407123"], ["updated_at", "2015-03-20 04:59:41.407123"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaf4da8c-cebd-11e4-aa82-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eaf5dacc-cebd-11e4-ae00-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eaf4da8c-cebd-11e4-aa82-705681abff85"], ["organization_id", "eaf5dacc-cebd-11e4-ae00-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.410762"], ["updated_at", "2015-03-20 04:59:41.410762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eaf4da8c-cebd-11e4-aa82-705681abff85' LIMIT 1 [["organization_id", "eaf5dacc-cebd-11e4-ae00-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$7qFTXDsUblaOITKTiS8H3.RoYNGHfQkCqixkGDc5XjNu.aScpQ4Nm"], ["created_at", "2015-03-20 04:59:41.417375"], ["updated_at", "2015-03-20 04:59:41.417375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.420745"], ["updated_at", "2015-03-20 04:59:41.420745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaf764e6-cebd-11e4-99cc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eaf7ed62-cebd-11e4-a52b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eaf764e6-cebd-11e4-99cc-705681abff85"], ["organization_id", "eaf7ed62-cebd-11e4-a52b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.424269"], ["updated_at", "2015-03-20 04:59:41.424269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$gW3/BYsKeGzO/o4n.3Uw1.5JVI/HLL5qOBxKTwL92PVemcDgLM1MG"], ["created_at", "2015-03-20 04:59:41.429911"], ["updated_at", "2015-03-20 04:59:41.429911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.433052"], ["updated_at", "2015-03-20 04:59:41.433052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaf95134-cebd-11e4-858f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eaf9c79a-cebd-11e4-90f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eaf95134-cebd-11e4-858f-705681abff85"], ["organization_id", "eaf9c79a-cebd-11e4-90f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.436093"], ["updated_at", "2015-03-20 04:59:41.436093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eaf95134-cebd-11e4-858f-705681abff85' LIMIT 1 [["organization_id", "eaf9c79a-cebd-11e4-90f5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$ocq/89yVHUpVyFEbCcZRJuZ9Ug8nvWRqJCinrg.pLRfOlRDsg9ES."], ["created_at", "2015-03-20 04:59:41.443023"], ["updated_at", "2015-03-20 04:59:41.443023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.446165"], ["updated_at", "2015-03-20 04:59:41.446165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eafb5024-cebd-11e4-86d8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eafbc98c-cebd-11e4-a711-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eafb5024-cebd-11e4-86d8-705681abff85"], ["organization_id", "eafbc98c-cebd-11e4-a711-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.449322"], ["updated_at", "2015-03-20 04:59:41.449322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eafb5024-cebd-11e4-86d8-705681abff85' LIMIT 1 [["organization_id", "eafbc98c-cebd-11e4-a711-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$f7YRZCU7fx.uEq272CZNaua2LrQWXIYe6muo0UppjTD/bPGugjBYu"], ["created_at", "2015-03-20 04:59:41.456926"], ["updated_at", "2015-03-20 04:59:41.456926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.460335"], ["updated_at", "2015-03-20 04:59:41.460335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eafd73cc-cebd-11e4-bca5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eafdf2c0-cebd-11e4-a312-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eafd73cc-cebd-11e4-bca5-705681abff85"], ["organization_id", "eafdf2c0-cebd-11e4-a312-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.463578"], ["updated_at", "2015-03-20 04:59:41.463578"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eafd73cc-cebd-11e4-bca5-705681abff85' LIMIT 1 [["organization_id", "eafdf2c0-cebd-11e4-a312-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$cheNYk0UYFbMGfgn5vI.xeP3L2fIB52GGW9VCK7m2OQzGAL8gbgXC"], ["created_at", "2015-03-20 04:59:41.470515"], ["updated_at", "2015-03-20 04:59:41.470515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.473508"], ["updated_at", "2015-03-20 04:59:41.473508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaff80d6-cebd-11e4-a119-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eafff3c2-cebd-11e4-bc64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eaff80d6-cebd-11e4-a119-705681abff85"], ["organization_id", "eafff3c2-cebd-11e4-bc64-705681abff85"], ["created_at", "2015-03-20 04:59:41.476567"], ["updated_at", "2015-03-20 04:59:41.476567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$hPR3R7.vDPXdN45sq87f.O.x/tlYfSV4rGw4L79Lt3GCI9/wa2w/e"], ["created_at", "2015-03-20 04:59:41.481932"], ["updated_at", "2015-03-20 04:59:41.481932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.484929"], ["updated_at", "2015-03-20 04:59:41.484929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb013e58-cebd-11e4-a883-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb01b1b2-cebd-11e4-96d1-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb013e58-cebd-11e4-a883-705681abff85"], ["organization_id", "eb01b1b2-cebd-11e4-96d1-705681abff85"], ["created_at", "2015-03-20 04:59:41.488020"], ["updated_at", "2015-03-20 04:59:41.488020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb013e58-cebd-11e4-a883-705681abff85' LIMIT 1 [["organization_id", "eb01b1b2-cebd-11e4-96d1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$rTN9HVrRuV4i2xqo.7x4w.N0su5HffOrzzPVs48j9sjkIH7F5N/hi"], ["created_at", "2015-03-20 04:59:41.495099"], ["updated_at", "2015-03-20 04:59:41.495099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.498132"], ["updated_at", "2015-03-20 04:59:41.498132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb0341c6-cebd-11e4-8245-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb03b5b6-cebd-11e4-aa48-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb0341c6-cebd-11e4-8245-705681abff85"], ["organization_id", "eb03b5b6-cebd-11e4-aa48-705681abff85"], ["created_at", "2015-03-20 04:59:41.501118"], ["updated_at", "2015-03-20 04:59:41.501118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb0341c6-cebd-11e4-8245-705681abff85' LIMIT 1 [["organization_id", "eb03b5b6-cebd-11e4-aa48-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$BAG8AcFwtyeJBI/C7.j/TOZ.YD5OoWYV4E2JZ36Vzpqs3Kg98dyTe"], ["created_at", "2015-03-20 04:59:41.509062"], ["updated_at", "2015-03-20 04:59:41.509062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.512324"], ["updated_at", "2015-03-20 04:59:41.512324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb0565aa-cebd-11e4-a4fa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb05e0f2-cebd-11e4-9e9d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb0565aa-cebd-11e4-a4fa-705681abff85"], ["organization_id", "eb05e0f2-cebd-11e4-9e9d-705681abff85"], ["created_at", "2015-03-20 04:59:41.515415"], ["updated_at", "2015-03-20 04:59:41.515415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eb0565aa-cebd-11e4-a4fa-705681abff85' LIMIT 1 [["organization_id", "eb05e0f2-cebd-11e4-9e9d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$UU4Xz6exxtUud//cS9xaFuQW7JEMbJR93GaDS2iTEg9/Une7NkU9C"], ["created_at", "2015-03-20 04:59:41.522429"], ["updated_at", "2015-03-20 04:59:41.522429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.525594"], ["updated_at", "2015-03-20 04:59:41.525594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb077016-cebd-11e4-b06e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb07e6a4-cebd-11e4-ab65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb077016-cebd-11e4-b06e-705681abff85"], ["organization_id", "eb07e6a4-cebd-11e4-ab65-705681abff85"], ["created_at", "2015-03-20 04:59:41.528666"], ["updated_at", "2015-03-20 04:59:41.528666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eb077016-cebd-11e4-b06e-705681abff85' LIMIT 1 [["organization_id", "eb07e6a4-cebd-11e4-ab65-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.534248"], ["updated_at", "2015-03-20 04:59:41.534248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.547253"], ["updated_at", "2015-03-20 04:59:41.547253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.577995"], ["updated_at", "2015-03-20 04:59:41.577995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.582102"], ["updated_at", "2015-03-20 04:59:41.582102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "eb10864c-cebd-11e4-8d9c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.586726"], ["updated_at", "2015-03-20 04:59:41.586726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.599667"], ["updated_at", "2015-03-20 04:59:41.599667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'eb1336bc-cebd-11e4-95e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "eb1336bc-cebd-11e4-95e2-705681abff85"], ["created_at", "2015-03-20 04:59:41.602635"], ["updated_at", "2015-03-20 04:59:41.602635"], ["token", "_-YjDvmbMKKswRvNEraqAZW2RnISXlZnrZGHRpLwwkk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "eb1336bc-cebd-11e4-95e2-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'eb1336bc-cebd-11e4-95e2-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "eb1336bc-cebd-11e4-95e2-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'eb1336bc-cebd-11e4-95e2-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.617658"], ["updated_at", "2015-03-20 04:59:41.617658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'eb15f546-cebd-11e4-b706-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "eb15f546-cebd-11e4-b706-705681abff85"], ["created_at", "2015-03-20 04:59:41.620578"], ["updated_at", "2015-03-20 04:59:41.620578"], ["token", "rXHXN8TZPkrOf2syB3xBRmlp-k5WlZs3baZqBs7CXO8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$kWfMK4hTpji8vjtAXLM5y.dv6yUVrTpBFIL2YeoRHknIy4Q.4isf6"], ["created_at", "2015-03-20 04:59:41.634893"], ["updated_at", "2015-03-20 04:59:41.634893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) [1mBEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$2jZnWmnKiV.kg4iO9WDdaONRhUaJkGAyttFOR0NvXYpQGMVVJcsa."], ["created_at", "2015-03-20 04:59:41.647916"], ["updated_at", "2015-03-20 04:59:41.647916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.651028"], ["updated_at", "2015-03-20 04:59:41.651028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$crToCutCVQXqKdyTIvhP4O3ayzq/Lu4VHCGgVHd/kHRjL8AujT/r6"], ["created_at", "2015-03-20 04:59:41.657480"], ["updated_at", "2015-03-20 04:59:41.657480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.661182"], ["updated_at", "2015-03-20 04:59:41.661182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb1c153e-cebd-11e4-800e-705681abff85' LIMIT 1 [["organization_id", "eb1c99c8-cebd-11e4-8be3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$y1agTHZbUUomN7AliklqL.PUhW1eNc9xBpjKwQoo3uJ0uwdiKoZCW"], ["created_at", "2015-03-20 04:59:41.668271"], ["updated_at", "2015-03-20 04:59:41.668271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.671565"], ["updated_at", "2015-03-20 04:59:41.671565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb1db236-cebd-11e4-b152-705681abff85' LIMIT 1 [["organization_id", "eb1e2d88-cebd-11e4-a208-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$2uFFj5CNZzfqfv.QmiHtkekbppBBrl3GCJdwo0RMzLxclBDp0xkRC"], ["created_at", "2015-03-20 04:59:41.678053"], ["updated_at", "2015-03-20 04:59:41.678053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.681061"], ["updated_at", "2015-03-20 04:59:41.681061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eb1f2b2a-cebd-11e4-ac4e-705681abff85' LIMIT 1 [["organization_id", "eb1f9f24-cebd-11e4-b7e2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$0TIF0i88hahAibOSkKEw2OeG.D9tTNZXNpDwUbi4jEwmnPRVi9xYq"], ["created_at", "2015-03-20 04:59:41.687525"], ["updated_at", "2015-03-20 04:59:41.687525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.690747"], ["updated_at", "2015-03-20 04:59:41.690747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$lwc7N8RGS5sjMDIFlGQRaOdwOozbUDdPh3xhwujjZmWap5lxVtzbO"], ["created_at", "2015-03-20 04:59:41.696567"], ["updated_at", "2015-03-20 04:59:41.696567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.699538"], ["updated_at", "2015-03-20 04:59:41.699538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb21ffbc-cebd-11e4-afc5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb227140-cebd-11e4-b310-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb21ffbc-cebd-11e4-afc5-705681abff85"], ["organization_id", "eb227140-cebd-11e4-b310-705681abff85"], ["created_at", "2015-03-20 04:59:41.702647"], ["updated_at", "2015-03-20 04:59:41.702647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$.oYdKl2v6mmIWmHeGAf7A.latyns/t86kvlP0/uFxgzYKFXhqjfq6"], ["created_at", "2015-03-20 04:59:41.709384"], ["updated_at", "2015-03-20 04:59:41.709384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.712759"], ["updated_at", "2015-03-20 04:59:41.712759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb23f736-cebd-11e4-b0ef-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb2476ca-cebd-11e4-801d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb23f736-cebd-11e4-b0ef-705681abff85"], ["organization_id", "eb2476ca-cebd-11e4-801d-705681abff85"], ["created_at", "2015-03-20 04:59:41.715959"], ["updated_at", "2015-03-20 04:59:41.715959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb23f736-cebd-11e4-b0ef-705681abff85' LIMIT 1 [["organization_id", "eb2476ca-cebd-11e4-801d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$iAcNEpIFWNAdCnX5evjBees7etftQqqyFXfD.qTpkAkUO7XACuVji"], ["created_at", "2015-03-20 04:59:41.722889"], ["updated_at", "2015-03-20 04:59:41.722889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.725944"], ["updated_at", "2015-03-20 04:59:41.725944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb26036e-cebd-11e4-96b6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb2678c6-cebd-11e4-9008-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb26036e-cebd-11e4-96b6-705681abff85"], ["organization_id", "eb2678c6-cebd-11e4-9008-705681abff85"], ["created_at", "2015-03-20 04:59:41.729342"], ["updated_at", "2015-03-20 04:59:41.729342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb26036e-cebd-11e4-96b6-705681abff85' LIMIT 1 [["organization_id", "eb2678c6-cebd-11e4-9008-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$3xm6tjuMS2LhXuSvf/dSwemt1N4jrLHJ5NfwzE/8rMVIqvGPuIeyO"], ["created_at", "2015-03-20 04:59:41.735880"], ["updated_at", "2015-03-20 04:59:41.735880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.738845"], ["updated_at", "2015-03-20 04:59:41.738845"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb27fdcc-cebd-11e4-9bc2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb28704a-cebd-11e4-945c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb27fdcc-cebd-11e4-9bc2-705681abff85"], ["organization_id", "eb28704a-cebd-11e4-945c-705681abff85"], ["created_at", "2015-03-20 04:59:41.742808"], ["updated_at", "2015-03-20 04:59:41.742808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eb27fdcc-cebd-11e4-9bc2-705681abff85' LIMIT 1 [["organization_id", "eb28704a-cebd-11e4-945c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$c7bWBnegnp/3KLNlaejuzucgomWY1G.X714kVZvCrvgrO/tFgUY7K"], ["created_at", "2015-03-20 04:59:41.749345"], ["updated_at", "2015-03-20 04:59:41.749345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.752325"], ["updated_at", "2015-03-20 04:59:41.752325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb2a0bda-cebd-11e4-a996-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb2a7f0c-cebd-11e4-8b39-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb2a0bda-cebd-11e4-a996-705681abff85"], ["organization_id", "eb2a7f0c-cebd-11e4-8b39-705681abff85"], ["created_at", "2015-03-20 04:59:41.755538"], ["updated_at", "2015-03-20 04:59:41.755538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$0VumKhVUJ5neEkUfqFCaAu61f7OR1A7a.b1qBNPdNuSwJMNlpzfCW"], ["created_at", "2015-03-20 04:59:41.762701"], ["updated_at", "2015-03-20 04:59:41.762701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.766018"], ["updated_at", "2015-03-20 04:59:41.766018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb2c1858-cebd-11e4-a401-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb2cb042-cebd-11e4-b5c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb2c1858-cebd-11e4-a401-705681abff85"], ["organization_id", "eb2cb042-cebd-11e4-b5c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.770962"], ["updated_at", "2015-03-20 04:59:41.770962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$NN4Td7lQ2Y5lJuJ9Ryx9TulgcnzEm.TALdGFqP.IjaXERH/SiH.ie"], ["created_at", "2015-03-20 04:59:41.777534"], ["updated_at", "2015-03-20 04:59:41.777534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.780527"], ["updated_at", "2015-03-20 04:59:41.780527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb2e5974-cebd-11e4-8b7d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb2ece18-cebd-11e4-8f0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb2e5974-cebd-11e4-8b7d-705681abff85"], ["organization_id", "eb2ece18-cebd-11e4-8f0f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.783615"], ["updated_at", "2015-03-20 04:59:41.783615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb2e5974-cebd-11e4-8b7d-705681abff85' LIMIT 1 [["organization_id", "eb2ece18-cebd-11e4-8f0f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$Vz.bWxNAkZ/Lm8mLupD6b.QO.m30gLggdbsgTswAT1nyjyBeUpIk2"], ["created_at", "2015-03-20 04:59:41.790192"], ["updated_at", "2015-03-20 04:59:41.790192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.793922"], ["updated_at", "2015-03-20 04:59:41.793922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb304a7c-cebd-11e4-aabd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb30da8c-cebd-11e4-8a8b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb304a7c-cebd-11e4-aabd-705681abff85"], ["organization_id", "eb30da8c-cebd-11e4-8a8b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.797189"], ["updated_at", "2015-03-20 04:59:41.797189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb304a7c-cebd-11e4-aabd-705681abff85' LIMIT 1 [["organization_id", "eb30da8c-cebd-11e4-8a8b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$1ugm62vxABybWAHewDiG5eAY6iZ3Dnw536ysJgiJViXuoUAEWssCq"], ["created_at", "2015-03-20 04:59:41.803782"], ["updated_at", "2015-03-20 04:59:41.803782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.807754"], ["updated_at", "2015-03-20 04:59:41.807754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb325b64-cebd-11e4-bc0c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb32fdb2-cebd-11e4-97ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb325b64-cebd-11e4-bc0c-705681abff85"], ["organization_id", "eb32fdb2-cebd-11e4-97ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.811491"], ["updated_at", "2015-03-20 04:59:41.811491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eb325b64-cebd-11e4-bc0c-705681abff85' LIMIT 1 [["organization_id", "eb32fdb2-cebd-11e4-97ec-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$m/VL4MNzMm97V5u9W1nkB.jlzjLylQ9ERUWqrea7wI8tOomzOjGNq"], ["created_at", "2015-03-20 04:59:41.818292"], ["updated_at", "2015-03-20 04:59:41.818292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.821550"], ["updated_at", "2015-03-20 04:59:41.821550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb34937a-cebd-11e4-84a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb3511ba-cebd-11e4-9181-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb34937a-cebd-11e4-84a2-705681abff85"], ["organization_id", "eb3511ba-cebd-11e4-9181-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.824899"], ["updated_at", "2015-03-20 04:59:41.824899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$xdEomVxAifMDoqOzTKDj4O9lZYJhoUkuajxhqnx8BnTWL5iT.B8de"], ["created_at", "2015-03-20 04:59:41.830927"], ["updated_at", "2015-03-20 04:59:41.830927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:41.841146"], ["user_id", "eb37c324-cebd-11e4-b05c-705681abff85"], ["created_at", "2015-03-20 04:59:41.842108"], ["updated_at", "2015-03-20 04:59:41.842108"], ["token", "2-OJK5VDrF1y0J0OAxArWXrYTiCKUkFLy35WpFF9RZc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.847325"], ["updated_at", "2015-03-20 04:59:41.847325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb37c324-cebd-11e4-b05c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb39016c-cebd-11e4-856e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb37c324-cebd-11e4-b05c-705681abff85"], ["organization_id", "eb39016c-cebd-11e4-856e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.850664"], ["updated_at", "2015-03-20 04:59:41.850664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 21:59:41 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$Z4hwwSK/w6K0TEmjIM1BQ.8s1U.plZwWlzKHGesCdeo0q8wZslqkC"], ["created_at", "2015-03-20 04:59:41.870176"], ["updated_at", "2015-03-20 04:59:41.870176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:41.872533"], ["user_id", "eb3c8cb0-cebd-11e4-9575-705681abff85"], ["created_at", "2015-03-20 04:59:41.873743"], ["updated_at", "2015-03-20 04:59:41.873743"], ["token", "cqJ4-mIn_CLRBmbi4tF5-HKQCMInsVinfr8hn1UzR04"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.877779"], ["updated_at", "2015-03-20 04:59:41.877779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb3c8cb0-cebd-11e4-9575-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb3dac3a-cebd-11e4-8a56-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb3c8cb0-cebd-11e4-9575-705681abff85"], ["organization_id", "eb3dac3a-cebd-11e4-8a56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.881927"], ["updated_at", "2015-03-20 04:59:41.881927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/eb3dac3a-cebd-11e4-8a56-705681abff85" for 127.0.0.1 at 2015-03-19 21:59:41 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"eb3dac3a-cebd-11e4-8a56-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:41.886696' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cqJ4-mIn_CLRBmbi4tF5-HKQCMInsVinfr8hn1UzR04"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:41.888090"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:41.889049"], ["id", "eb3d11da-cebd-11e4-be98-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "eb3dac3a-cebd-11e4-8a56-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb3c8cb0-cebd-11e4-9575-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eb3c8cb0-cebd-11e4-9575-705681abff85' LIMIT 1 [["organization_id", "eb3dac3a-cebd-11e4-8a56-705681abff85"]] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$7l.iEO3LwQFP38JOBPuwduQFMsMOeIqXz1aB9xUg3cRhYG/HCQGC2"], ["created_at", "2015-03-20 04:59:41.900688"], ["updated_at", "2015-03-20 04:59:41.900688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:41.902489"], ["user_id", "eb41298c-cebd-11e4-86d2-705681abff85"], ["created_at", "2015-03-20 04:59:41.903267"], ["updated_at", "2015-03-20 04:59:41.903267"], ["token", "uBYPwrbwXZ7kFn-1ar0QkcnH1abJawhSEXXERuYXswU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.907576"], ["updated_at", "2015-03-20 04:59:41.907576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb41298c-cebd-11e4-86d2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb4238cc-cebd-11e4-aadc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb41298c-cebd-11e4-86d2-705681abff85"], ["organization_id", "eb4238cc-cebd-11e4-aadc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.911632"], ["updated_at", "2015-03-20 04:59:41.911632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 21:59:41 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$t3CaHVfBApXQSBorP03lJ.MC1eoRUMr0c5seI3eslMApnzsC.8yye"], ["created_at", "2015-03-20 04:59:41.922587"], ["updated_at", "2015-03-20 04:59:41.922587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:41.924317"], ["user_id", "eb448050-cebd-11e4-b6bb-705681abff85"], ["created_at", "2015-03-20 04:59:41.925640"], ["updated_at", "2015-03-20 04:59:41.925640"], ["token", "XwQJHzn1bZtIIXDzFdWY6nfA3a-ZMXrhuwtMhtRTfZo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.929796"], ["updated_at", "2015-03-20 04:59:41.929796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb448050-cebd-11e4-b6bb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb459832-cebd-11e4-b41c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb448050-cebd-11e4-b6bb-705681abff85"], ["organization_id", "eb459832-cebd-11e4-b41c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.933294"], ["updated_at", "2015-03-20 04:59:41.933294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/eb459832-cebd-11e4-b41c-705681abff85" for 127.0.0.1 at 2015-03-19 21:59:41 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"eb459832-cebd-11e4-b41c-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:41.937851' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XwQJHzn1bZtIIXDzFdWY6nfA3a-ZMXrhuwtMhtRTfZo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:41.939353"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:41.940364"], ["id", "eb450c64-cebd-11e4-a8e0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "eb459832-cebd-11e4-b41c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb448050-cebd-11e4-b6bb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb448050-cebd-11e4-b6bb-705681abff85' LIMIT 1 [["organization_id", "eb459832-cebd-11e4-b41c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "eb459832-cebd-11e4-b41c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$O.Qzl7J2pP3l8eI48Ugd1.7GlEbVXd1Cbr5N65cORvsB/PCAASXfC"], ["created_at", "2015-03-20 04:59:41.952801"], ["updated_at", "2015-03-20 04:59:41.952801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:41.954747"], ["user_id", "eb491b38-cebd-11e4-a824-705681abff85"], ["created_at", "2015-03-20 04:59:41.955955"], ["updated_at", "2015-03-20 04:59:41.955955"], ["token", "IGpgE1l70jmDIjp58d3dNAHAoyTO2NcGX8JNoTmFKxs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.961503"], ["updated_at", "2015-03-20 04:59:41.961503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb491b38-cebd-11e4-a824-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb4a6d8a-cebd-11e4-80b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb491b38-cebd-11e4-a824-705681abff85"], ["organization_id", "eb4a6d8a-cebd-11e4-80b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.965941"], ["updated_at", "2015-03-20 04:59:41.965941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 21:59:41 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$CLQ1G2xFpUBk3.NGj.831.CLy2tEzVD.HkwdlKYC.f3gDWFcV0QBW"], ["created_at", "2015-03-20 04:59:41.979712"], ["updated_at", "2015-03-20 04:59:41.979712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:41.981763"], ["user_id", "eb4d44d8-cebd-11e4-8380-705681abff85"], ["created_at", "2015-03-20 04:59:41.982530"], ["updated_at", "2015-03-20 04:59:41.982530"], ["token", "PP3277ymKV0x45lblJNYPZ4IpeAUIO7dfITv2Pmr40g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:41.987207"], ["updated_at", "2015-03-20 04:59:41.987207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb4d44d8-cebd-11e4-8380-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb4e59d6-cebd-11e4-864f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb4d44d8-cebd-11e4-8380-705681abff85"], ["organization_id", "eb4e59d6-cebd-11e4-864f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:41.990918"], ["updated_at", "2015-03-20 04:59:41.990918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-64" for 127.0.0.1 at 2015-03-19 21:59:41 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-64", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:41.995400' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PP3277ymKV0x45lblJNYPZ4IpeAUIO7dfITv2Pmr40g"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:41.997346"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:41.998538"], ["id", "eb4db9d6-cebd-11e4-8471-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-64"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb4d44d8-cebd-11e4-8380-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb4d44d8-cebd-11e4-8380-705681abff85' LIMIT 1 [["organization_id", "eb4e59d6-cebd-11e4-864f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "eb4e59d6-cebd-11e4-864f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$AmofWdcg24hitBChgOFyMenVp3OtW8WgeIFudPWVda0NVnyk5HamW"], ["created_at", "2015-03-20 04:59:42.009193"], ["updated_at", "2015-03-20 04:59:42.009193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.011034"], ["user_id", "eb51bb8a-cebd-11e4-a7b7-705681abff85"], ["created_at", "2015-03-20 04:59:42.011849"], ["updated_at", "2015-03-20 04:59:42.011849"], ["token", "p8eaA5M43XXFbKBSJTQ1Z6IF9WKu8VXdioUj2Ia5ehw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.015366"], ["updated_at", "2015-03-20 04:59:42.015366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb51bb8a-cebd-11e4-a7b7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb52a5a4-cebd-11e4-8016-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb51bb8a-cebd-11e4-a7b7-705681abff85"], ["organization_id", "eb52a5a4-cebd-11e4-8016-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.018805"], ["updated_at", "2015-03-20 04:59:42.018805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$n7m0YGW0i/E8alOj4zTeXOXZSvcCOZwyWxAFkPYurUgVOp8QjumXW"], ["created_at", "2015-03-20 04:59:42.023352"], ["updated_at", "2015-03-20 04:59:42.023352"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.027954"], ["updated_at", "2015-03-20 04:59:42.027954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb53e41e-cebd-11e4-8165-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb548f36-cebd-11e4-94fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb53e41e-cebd-11e4-8165-705681abff85"], ["organization_id", "eb548f36-cebd-11e4-94fb-705681abff85"], ["created_at", "2015-03-20 04:59:42.031124"], ["updated_at", "2015-03-20 04:59:42.031124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$PZbri9rLrm5jLQBJZQwF1e84y7Oiqtkw2v64FQUe24HArFxrCPHeG"], ["created_at", "2015-03-20 04:59:42.040997"], ["updated_at", "2015-03-20 04:59:42.040997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.042603"], ["user_id", "eb568f52-cebd-11e4-a9ac-705681abff85"], ["created_at", "2015-03-20 04:59:42.043368"], ["updated_at", "2015-03-20 04:59:42.043368"], ["token", "wAjITJw0oW5BN6mcHDe_EfnatOYc0YbBY3bqDcZCo_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.046767"], ["updated_at", "2015-03-20 04:59:42.046767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb568f52-cebd-11e4-a9ac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb576f6c-cebd-11e4-83f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb568f52-cebd-11e4-a9ac-705681abff85"], ["organization_id", "eb576f6c-cebd-11e4-83f6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.050043"], ["updated_at", "2015-03-20 04:59:42.050043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$J1NZT8p58kU/r/qoUiqPbOl8Bk91durMAbLiC.r7.btMaTy6/02cC"], ["created_at", "2015-03-20 04:59:42.054417"], ["updated_at", "2015-03-20 04:59:42.054417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.057739"], ["updated_at", "2015-03-20 04:59:42.057739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb589c98-cebd-11e4-86de-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb591b8c-cebd-11e4-938a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb589c98-cebd-11e4-86de-705681abff85"], ["organization_id", "eb591b8c-cebd-11e4-938a-705681abff85"], ["created_at", "2015-03-20 04:59:42.061389"], ["updated_at", "2015-03-20 04:59:42.061389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:42.066667' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wAjITJw0oW5BN6mcHDe_EfnatOYc0YbBY3bqDcZCo_c"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:42.068527"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:42.069731"], ["id", "eb56efb0-cebd-11e4-b37f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb568f52-cebd-11e4-a9ac-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "eb568f52-cebd-11e4-a9ac-705681abff85"]] Completed 200 OK in 10ms (Views: 2.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$6KuMGefzgThQ85lQeLN0Lur.UmxQmfgw3JhAxYAW4kBExbjQP/pQK"], ["created_at", "2015-03-20 04:59:42.082850"], ["updated_at", "2015-03-20 04:59:42.082850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.084623"], ["user_id", "eb5cf072-cebd-11e4-950c-705681abff85"], ["created_at", "2015-03-20 04:59:42.085959"], ["updated_at", "2015-03-20 04:59:42.085959"], ["token", "ljvKCjuPQ8ttWpFfG7RfMdPkkQ3wT_Tb6Wr7b1hARxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.091106"], ["updated_at", "2015-03-20 04:59:42.091106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb5cf072-cebd-11e4-950c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb5e5354-cebd-11e4-ba41-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb5cf072-cebd-11e4-950c-705681abff85"], ["organization_id", "eb5e5354-cebd-11e4-ba41-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.095575"], ["updated_at", "2015-03-20 04:59:42.095575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$gv9c6KWpz2fgjJD5BpAU.eiSViVVZ68nzoiQznTYQ62FCPVAQ8OvG"], ["created_at", "2015-03-20 04:59:42.105080"], ["updated_at", "2015-03-20 04:59:42.105080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.107447"], ["user_id", "eb6056fe-cebd-11e4-a9c5-705681abff85"], ["created_at", "2015-03-20 04:59:42.108352"], ["updated_at", "2015-03-20 04:59:42.108352"], ["token", "98HdR9EBtjvxpixXVdJ0VKC9NK5isuv6Tu4cCfI-sW8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.111985"], ["updated_at", "2015-03-20 04:59:42.111985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb6056fe-cebd-11e4-a9c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb616030-cebd-11e4-8c38-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb6056fe-cebd-11e4-a9c5-705681abff85"], ["organization_id", "eb616030-cebd-11e4-8c38-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.115177"], ["updated_at", "2015-03-20 04:59:42.115177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:42.120451' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "98HdR9EBtjvxpixXVdJ0VKC9NK5isuv6Tu4cCfI-sW8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:42.121902"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:42.122925"], ["id", "eb60df98-cebd-11e4-8e37-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb6056fe-cebd-11e4-a9c5-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.130687"], ["updated_at", "2015-03-20 04:59:42.130687"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "eb643ea4-cebd-11e4-9f9d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb6056fe-cebd-11e4-a9c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb643ea4-cebd-11e4-9f9d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb6056fe-cebd-11e4-a9c5-705681abff85"], ["admin", "t"], ["organization_id", "eb643ea4-cebd-11e4-9f9d-705681abff85"], ["created_at", "2015-03-20 04:59:42.134619"], ["updated_at", "2015-03-20 04:59:42.134619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.6ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$o7A5tVvU2gtDhdWdlsFtKeGMaANT33Cno3xrM3UuCZfpXqBnOkURO"], ["created_at", "2015-03-20 04:59:42.143525"], ["updated_at", "2015-03-20 04:59:42.143525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.145202"], ["user_id", "eb66361e-cebd-11e4-a6c2-705681abff85"], ["created_at", "2015-03-20 04:59:42.145971"], ["updated_at", "2015-03-20 04:59:42.145971"], ["token", "QykOjgqnNvKzzi7VhBkybBgELGuek8omTLP06Jv7gsg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.149272"], ["updated_at", "2015-03-20 04:59:42.149272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb66361e-cebd-11e4-a6c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb67123c-cebd-11e4-96f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb66361e-cebd-11e4-a6c2-705681abff85"], ["organization_id", "eb67123c-cebd-11e4-96f0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.152467"], ["updated_at", "2015-03-20 04:59:42.152467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:42.157224' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QykOjgqnNvKzzi7VhBkybBgELGuek8omTLP06Jv7gsg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:42.158628"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:42.159609"], ["id", "eb669956-cebd-11e4-83e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb66361e-cebd-11e4-a6c2-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$KqqiRbtm8wWt0tjQDVzCB.99ZBTN32i7XuadIvMdd7p/uokBMkZHK"], ["created_at", "2015-03-20 04:59:42.171088"], ["updated_at", "2015-03-20 04:59:42.171088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.172664"], ["user_id", "eb6a6888-cebd-11e4-822c-705681abff85"], ["created_at", "2015-03-20 04:59:42.173460"], ["updated_at", "2015-03-20 04:59:42.173460"], ["token", "jskWWXYeyLnp77AUru5qg8pJDI-yqUvGKsaf_lhdpTc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.177502"], ["updated_at", "2015-03-20 04:59:42.177502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb6a6888-cebd-11e4-822c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb6b6328-cebd-11e4-91b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb6a6888-cebd-11e4-822c-705681abff85"], ["organization_id", "eb6b6328-cebd-11e4-91b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.180908"], ["updated_at", "2015-03-20 04:59:42.180908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$cFzmqX6xoNMz7YLaGn3Quec2EElxkbPr0CfOw6nGuyh/AYAkAZKXm"], ["created_at", "2015-03-20 04:59:42.193900"], ["updated_at", "2015-03-20 04:59:42.193900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.195707"], ["user_id", "eb6de904-cebd-11e4-b88d-705681abff85"], ["created_at", "2015-03-20 04:59:42.196478"], ["updated_at", "2015-03-20 04:59:42.196478"], ["token", "qQQ6wrkjfv7ZiY_IX0J2HBQKwuRTw8Y_GcjbvbcOpLA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.199948"], ["updated_at", "2015-03-20 04:59:42.199948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb6de904-cebd-11e4-b88d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb6ece28-cebd-11e4-9069-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb6de904-cebd-11e4-b88d-705681abff85"], ["organization_id", "eb6ece28-cebd-11e4-9069-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.203218"], ["updated_at", "2015-03-20 04:59:42.203218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/eb6ece28-cebd-11e4-9069-705681abff85" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"eb6ece28-cebd-11e4-9069-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:42.208225' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qQQ6wrkjfv7ZiY_IX0J2HBQKwuRTw8Y_GcjbvbcOpLA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:42.209717"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:42.210671"], ["id", "eb6e4ef8-cebd-11e4-a0ab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "eb6ece28-cebd-11e4-9069-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb6de904-cebd-11e4-b88d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb6de904-cebd-11e4-b88d-705681abff85' LIMIT 1 [["organization_id", "eb6ece28-cebd-11e4-9069-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'eb6ece28-cebd-11e4-9069-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 04:59:42.216928"], ["id", "eb6ece28-cebd-11e4-9069-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$XTNqgb6sXBOh7u5/tiTbgegp/InR2hx9OJDeII1ZxfCR8OUjCLpAe"], ["created_at", "2015-03-20 04:59:42.224560"], ["updated_at", "2015-03-20 04:59:42.224560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.226182"], ["user_id", "eb72931e-cebd-11e4-9877-705681abff85"], ["created_at", "2015-03-20 04:59:42.227098"], ["updated_at", "2015-03-20 04:59:42.227098"], ["token", "xERdx1zxhYWmdl3H9hr5Yj3A1ihBBxc14wN_AtQRHOQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.231112"], ["updated_at", "2015-03-20 04:59:42.231112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb72931e-cebd-11e4-9877-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb73930e-cebd-11e4-ac9d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb72931e-cebd-11e4-9877-705681abff85"], ["organization_id", "eb73930e-cebd-11e4-ac9d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.234763"], ["updated_at", "2015-03-20 04:59:42.234763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/eb73930e-cebd-11e4-ac9d-705681abff85" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"eb73930e-cebd-11e4-ac9d-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:42.240016' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xERdx1zxhYWmdl3H9hr5Yj3A1ihBBxc14wN_AtQRHOQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:42.241554"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:42.243111"], ["id", "eb730b32-cebd-11e4-b997-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "eb73930e-cebd-11e4-ac9d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb72931e-cebd-11e4-9877-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb72931e-cebd-11e4-9877-705681abff85' LIMIT 1 [["organization_id", "eb73930e-cebd-11e4-ac9d-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'eb73930e-cebd-11e4-ac9d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$2OwzDo5GkToluezOojnCu.71Ah4GY3Z6WbAZf.Qy.ZN09qneQHcOe"], ["created_at", "2015-03-20 04:59:42.259276"], ["updated_at", "2015-03-20 04:59:42.259276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.260954"], ["user_id", "eb77df7c-cebd-11e4-922f-705681abff85"], ["created_at", "2015-03-20 04:59:42.261750"], ["updated_at", "2015-03-20 04:59:42.261750"], ["token", "xlXzH_pajzM55LlCGg5ACgEyZTyqwaeEHd2li-hwr5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.265872"], ["updated_at", "2015-03-20 04:59:42.265872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb77df7c-cebd-11e4-922f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb78e2fa-cebd-11e4-8715-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb77df7c-cebd-11e4-922f-705681abff85"], ["organization_id", "eb78e2fa-cebd-11e4-8715-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.269381"], ["updated_at", "2015-03-20 04:59:42.269381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$LoFVNEZLhYkdFdggGmQzgORPxgJAzqm66.FcSDlYPKJVVBGGOU7gG"], ["created_at", "2015-03-20 04:59:42.279197"], ["updated_at", "2015-03-20 04:59:42.279197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.280795"], ["user_id", "eb7ae76c-cebd-11e4-b9e8-705681abff85"], ["created_at", "2015-03-20 04:59:42.281577"], ["updated_at", "2015-03-20 04:59:42.281577"], ["token", "DDHNIYq4uIabml330GOHcj9L9wIuE1Tt0n4Qbixsh00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.284987"], ["updated_at", "2015-03-20 04:59:42.284987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb7ae76c-cebd-11e4-b9e8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb7bc7a4-cebd-11e4-a9a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb7ae76c-cebd-11e4-b9e8-705681abff85"], ["organization_id", "eb7bc7a4-cebd-11e4-a9a3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.288754"], ["updated_at", "2015-03-20 04:59:42.288754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-76" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-76", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:42.294572' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DDHNIYq4uIabml330GOHcj9L9wIuE1Tt0n4Qbixsh00"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:42.296035"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:42.296999"], ["id", "eb7b4a9a-cebd-11e4-bd36-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-76"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb7ae76c-cebd-11e4-b9e8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'eb7ae76c-cebd-11e4-b9e8-705681abff85' LIMIT 1 [["organization_id", "eb7bc7a4-cebd-11e4-a9a3-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$yrdmN5Gx4mWq4mRF0qleme/4AMYcG70PN0Vly8ToYSYUXIZLJ.T/C"], ["created_at", "2015-03-20 04:59:42.309780"], ["updated_at", "2015-03-20 04:59:42.309780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.311502"], ["user_id", "eb7f94ec-cebd-11e4-81eb-705681abff85"], ["created_at", "2015-03-20 04:59:42.312270"], ["updated_at", "2015-03-20 04:59:42.312270"], ["token", "KU6oTGcc2U76s-BWaSxZU9ij93YO-qVM46MTTNp_xQU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.315599"], ["updated_at", "2015-03-20 04:59:42.315599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb7f94ec-cebd-11e4-81eb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb80738a-cebd-11e4-8b9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb7f94ec-cebd-11e4-81eb-705681abff85"], ["organization_id", "eb80738a-cebd-11e4-8b9e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.318833"], ["updated_at", "2015-03-20 04:59:42.318833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$HS7ZrTfvWT6KkpQ2rz1Lp.Apo75H6Ohce28Q8Mrdu8bmTjgbaoGgK"], ["created_at", "2015-03-20 04:59:42.328725"], ["updated_at", "2015-03-20 04:59:42.328725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.330287"], ["user_id", "eb8275cc-cebd-11e4-8a40-705681abff85"], ["created_at", "2015-03-20 04:59:42.331103"], ["updated_at", "2015-03-20 04:59:42.331103"], ["token", "pIEg987QG12M3-9es1_D0d8f72fjrdSRXjjHbm8yxwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.334355"], ["updated_at", "2015-03-20 04:59:42.334355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb8275cc-cebd-11e4-8a40-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb8350aa-cebd-11e4-91fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb8275cc-cebd-11e4-8a40-705681abff85"], ["organization_id", "eb8350aa-cebd-11e4-91fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.337637"], ["updated_at", "2015-03-20 04:59:42.337637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-78" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-78", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:42.342947' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pIEg987QG12M3-9es1_D0d8f72fjrdSRXjjHbm8yxwc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:42.344339"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:42.345287"], ["id", "eb82d846-cebd-11e4-a4c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-78"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb8275cc-cebd-11e4-8a40-705681abff85"]] Completed 200 OK in 5ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$kD5CZ1ihWvMgSUiGbaBxAOX85Zz4VUMgDyLhYfYU45WX1hy2yPt.y"], ["created_at", "2015-03-20 04:59:42.353307"], ["updated_at", "2015-03-20 04:59:42.353307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.354883"], ["user_id", "eb86368a-cebd-11e4-9da8-705681abff85"], ["created_at", "2015-03-20 04:59:42.355660"], ["updated_at", "2015-03-20 04:59:42.355660"], ["token", "1UrDmEf2dNpslUDho0pAosFs_rZkTr3WOk5DAz_Mf54"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.359218"], ["updated_at", "2015-03-20 04:59:42.359218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb86368a-cebd-11e4-9da8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb8736ca-cebd-11e4-9724-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb86368a-cebd-11e4-9da8-705681abff85"], ["organization_id", "eb8736ca-cebd-11e4-9724-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.363614"], ["updated_at", "2015-03-20 04:59:42.363614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:42.368311' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1UrDmEf2dNpslUDho0pAosFs_rZkTr3WOk5DAz_Mf54"]]  (0.2ms) SAVEPOINT active_record_1 SQL (2.8ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:42.370189"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:42.372096"], ["id", "eb8697d8-cebd-11e4-819f-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$1IKO2VfWuBPBRdLCLIXdIOIaPWYO0/Dd2kItmc5xePmZHdEumMpei"], ["created_at", "2015-03-20 04:59:42.391029"], ["updated_at", "2015-03-20 04:59:42.391029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.394106"], ["user_id", "eb8c1442-cebd-11e4-a7f5-705681abff85"], ["created_at", "2015-03-20 04:59:42.396057"], ["updated_at", "2015-03-20 04:59:42.396057"], ["token", "nOc_v3BnFvaYTVKO-_Z-y7hFMLqyartfqreJLaGIXEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.401987"], ["updated_at", "2015-03-20 04:59:42.401987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb8c1442-cebd-11e4-a7f5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb8db16c-cebd-11e4-a7a9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb8c1442-cebd-11e4-a7f5-705681abff85"], ["organization_id", "eb8db16c-cebd-11e4-a7a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.407599"], ["updated_at", "2015-03-20 04:59:42.407599"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$z42gRYljXAan0dxrKvOKROUesyL5Dj0LeWEROTTyaFsO7elIGVuKK"], ["created_at", "2015-03-20 04:59:42.420878"], ["updated_at", "2015-03-20 04:59:42.420878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.422602"], ["user_id", "eb9087c0-cebd-11e4-a102-705681abff85"], ["created_at", "2015-03-20 04:59:42.423391"], ["updated_at", "2015-03-20 04:59:42.423391"], ["token", "sbfSVwdhUMQWCDhSAhY5c8wMj1qEBpM_qKQjM4b9AAY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.426758"], ["updated_at", "2015-03-20 04:59:42.426758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb9087c0-cebd-11e4-a102-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb91699c-cebd-11e4-b9be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb9087c0-cebd-11e4-a102-705681abff85"], ["organization_id", "eb91699c-cebd-11e4-b9be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.430194"], ["updated_at", "2015-03-20 04:59:42.430194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-81" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-81", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:42.434648' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sbfSVwdhUMQWCDhSAhY5c8wMj1qEBpM_qKQjM4b9AAY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:42.436603"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:42.437672"], ["id", "eb90eea4-cebd-11e4-8327-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-81"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb9087c0-cebd-11e4-a102-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb9087c0-cebd-11e4-a102-705681abff85' LIMIT 1 [["organization_id", "eb91699c-cebd-11e4-b9be-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'eb91699c-cebd-11e4-b9be-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 04:59:42.444316"], ["id", "eb91699c-cebd-11e4-b9be-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$yHyWoQWfqgf8Dx3Y9NzxLevJdsy0JPmez/JC7EfBdygci9q4wsdTq"], ["created_at", "2015-03-20 04:59:42.452334"], ["updated_at", "2015-03-20 04:59:42.452334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 04:59:42.454045"], ["user_id", "eb9556c4-cebd-11e4-9e0a-705681abff85"], ["created_at", "2015-03-20 04:59:42.454825"], ["updated_at", "2015-03-20 04:59:42.454825"], ["token", "91u3hNpT1XLgRwn3RjwIFDtXGeST_aoVlyp5TuP-kyM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 04:59:42.458271"], ["updated_at", "2015-03-20 04:59:42.458271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb9556c4-cebd-11e4-9e0a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'eb963d50-cebd-11e4-b127-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb9556c4-cebd-11e4-9e0a-705681abff85"], ["organization_id", "eb963d50-cebd-11e4-b127-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 04:59:42.462306"], ["updated_at", "2015-03-20 04:59:42.462306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-82" for 127.0.0.1 at 2015-03-19 21:59:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-82", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 04:59:42.467136' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "91u3hNpT1XLgRwn3RjwIFDtXGeST_aoVlyp5TuP-kyM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 04:59:42.468583"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 04:59:42.469518"], ["id", "eb95b9fc-cebd-11e4-9c68-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-82"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb9556c4-cebd-11e4-9e0a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb9556c4-cebd-11e4-9e0a-705681abff85' LIMIT 1 [["organization_id", "eb963d50-cebd-11e4-b127-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'eb963d50-cebd-11e4-b127-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (27.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$JJUyPECgwG2Dstk0eitRyOZ6e9q2s5wK7sQK5fLpeqouQRHOLUWJS"], ["created_at", "2015-03-20 05:11:31.220226"], ["updated_at", "2015-03-20 05:11:31.220226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.256721"], ["updated_at", "2015-03-20 05:11:31.256721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$ZK9wGtj9HW5VD87703K./uIbBNGVEx.lWGWBzbqrpyCFh3ufgqp22"], ["created_at", "2015-03-20 05:11:31.295729"], ["updated_at", "2015-03-20 05:11:31.295729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.299289"], ["updated_at", "2015-03-20 05:11:31.299289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '92164264-cebf-11e4-a5b8-705681abff85' LIMIT 1 [["organization_id", "9216c798-cebf-11e4-a010-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$mNUwvxrpjstBTAbN6PdA8.pQXpSr4dcXpJ01lQZ0Bx4n9ZMdwVClK"], ["created_at", "2015-03-20 05:11:31.327600"], ["updated_at", "2015-03-20 05:11:31.327600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.331318"], ["updated_at", "2015-03-20 05:11:31.331318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$G48TkTNZf.mqFVbSNReLz.joe9AJkXQ6pPtHQ/zjW3m85EYySmowW"], ["created_at", "2015-03-20 05:11:31.336934"], ["updated_at", "2015-03-20 05:11:31.336934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.339993"], ["updated_at", "2015-03-20 05:11:31.339993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '921c8750-cebf-11e4-87df-705681abff85' LIMIT 1 [["organization_id", "921d005e-cebf-11e4-82c6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$kmHN9YeDGhTl0IS21P2leOsGIsbl4bt.KIhGYJrdzAXG77Qda29EO"], ["created_at", "2015-03-20 05:11:31.347011"], ["updated_at", "2015-03-20 05:11:31.347011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.350044"], ["updated_at", "2015-03-20 05:11:31.350044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '921e105c-cebf-11e4-8beb-705681abff85' LIMIT 1 [["organization_id", "921e865e-cebf-11e4-a724-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$OyeQOzm.PAXq9Jy0m2P2JOLvJmxM1WVJv5pRr8CI7SuaIzvtrbo.2"], ["created_at", "2015-03-20 05:11:31.357671"], ["updated_at", "2015-03-20 05:11:31.357671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$H3Q5E7WqJtl9ZlBACknYUeRzievha.CN/mepclXCrHp/ervyN.9xu"], ["created_at", "2015-03-20 05:11:31.378566"], ["updated_at", "2015-03-20 05:11:31.378566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.383871"], ["updated_at", "2015-03-20 05:11:31.383871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9222ef00-cebf-11e4-b376-705681abff85' AND "clubhouse_memberships"."organization_id" = '9223c4ca-cebf-11e4-add5-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9222ef00-cebf-11e4-b376-705681abff85"], ["organization_id", "9223c4ca-cebf-11e4-add5-705681abff85"], ["created_at", "2015-03-20 05:11:31.400782"], ["updated_at", "2015-03-20 05:11:31.400782"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$tUSSs0C8VwkjlDknCIurNepboMtyoIziGvJqfqcENDxUVyY1Z0qkq"], ["created_at", "2015-03-20 05:11:31.408996"], ["updated_at", "2015-03-20 05:11:31.408996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.412528"], ["updated_at", "2015-03-20 05:11:31.412528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9227897a-cebf-11e4-8996-705681abff85' AND "clubhouse_memberships"."organization_id" = '92280fbc-cebf-11e4-89e5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9227897a-cebf-11e4-8996-705681abff85"], ["organization_id", "92280fbc-cebf-11e4-89e5-705681abff85"], ["created_at", "2015-03-20 05:11:31.416063"], ["updated_at", "2015-03-20 05:11:31.416063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9227897a-cebf-11e4-8996-705681abff85' LIMIT 1 [["organization_id", "92280fbc-cebf-11e4-89e5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$.gqdKOy34B4OmNPjPsCkneaRAy9qyEZ5sdbOrxVvl19.zClmwd5p6"], ["created_at", "2015-03-20 05:11:31.423151"], ["updated_at", "2015-03-20 05:11:31.423151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.426465"], ["updated_at", "2015-03-20 05:11:31.426465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9229affc-cebf-11e4-81af-705681abff85' AND "clubhouse_memberships"."organization_id" = '922a3030-cebf-11e4-8111-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9229affc-cebf-11e4-81af-705681abff85"], ["organization_id", "922a3030-cebf-11e4-8111-705681abff85"], ["created_at", "2015-03-20 05:11:31.430174"], ["updated_at", "2015-03-20 05:11:31.430174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$J7YjWKIyGttGKbnngh0NcuvFh.cqyxMQOfxUlHN9QAo.dPILxO8z6"], ["created_at", "2015-03-20 05:11:31.436466"], ["updated_at", "2015-03-20 05:11:31.436466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.439768"], ["updated_at", "2015-03-20 05:11:31.439768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '922bb84c-cebf-11e4-b2da-705681abff85' AND "clubhouse_memberships"."organization_id" = '922c3664-cebf-11e4-8a0c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "922bb84c-cebf-11e4-b2da-705681abff85"], ["organization_id", "922c3664-cebf-11e4-8a0c-705681abff85"], ["created_at", "2015-03-20 05:11:31.443765"], ["updated_at", "2015-03-20 05:11:31.443765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '922bb84c-cebf-11e4-b2da-705681abff85' LIMIT 1 [["organization_id", "922c3664-cebf-11e4-8a0c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$2.XmD1obxB7UhPYHHOy/zOdBDRAEL26caVjES2EX88iK1X9O02V3i"], ["created_at", "2015-03-20 05:11:31.452101"], ["updated_at", "2015-03-20 05:11:31.452101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.456307"], ["updated_at", "2015-03-20 05:11:31.456307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '922e1e52-cebf-11e4-8423-705681abff85' AND "clubhouse_memberships"."organization_id" = '922eca50-cebf-11e4-959e-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "922e1e52-cebf-11e4-8423-705681abff85"], ["organization_id", "922eca50-cebf-11e4-959e-705681abff85"], ["created_at", "2015-03-20 05:11:31.461237"], ["updated_at", "2015-03-20 05:11:31.461237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '922e1e52-cebf-11e4-8423-705681abff85' LIMIT 1 [["organization_id", "922eca50-cebf-11e4-959e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$lyKuHiHLk8pWkGQwOGUEUuTcRGnImHJFbdXOQxbApZ49tLWV.vCzm"], ["created_at", "2015-03-20 05:11:31.470842"], ["updated_at", "2015-03-20 05:11:31.470842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.474430"], ["updated_at", "2015-03-20 05:11:31.474430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9230f9c4-cebf-11e4-b97d-705681abff85' AND "clubhouse_memberships"."organization_id" = '92318268-cebf-11e4-ae43-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9230f9c4-cebf-11e4-b97d-705681abff85"], ["organization_id", "92318268-cebf-11e4-ae43-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.478024"], ["updated_at", "2015-03-20 05:11:31.478024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$sMtFXevaVjKIobtaOUOwMu.ZyKDygzFiFowKlaCZUm0ZB6qPCF31y"], ["created_at", "2015-03-20 05:11:31.484719"], ["updated_at", "2015-03-20 05:11:31.484719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.488213"], ["updated_at", "2015-03-20 05:11:31.488213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '923316aa-cebf-11e4-b839-705681abff85' AND "clubhouse_memberships"."organization_id" = '9233a2aa-cebf-11e4-881a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "923316aa-cebf-11e4-b839-705681abff85"], ["organization_id", "9233a2aa-cebf-11e4-881a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.491841"], ["updated_at", "2015-03-20 05:11:31.491841"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '923316aa-cebf-11e4-b839-705681abff85' LIMIT 1 [["organization_id", "9233a2aa-cebf-11e4-881a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$a/6NhyLYg4IqdORYZesO3.7J2MxCfbN6bh0yM/vkF/LX6ByyYn7Gm"], ["created_at", "2015-03-20 05:11:31.507561"], ["updated_at", "2015-03-20 05:11:31.507561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.513273"], ["updated_at", "2015-03-20 05:11:31.513273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9236aaf4-cebf-11e4-8202-705681abff85' AND "clubhouse_memberships"."organization_id" = '92377736-cebf-11e4-bd21-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9236aaf4-cebf-11e4-8202-705681abff85"], ["organization_id", "92377736-cebf-11e4-bd21-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.517350"], ["updated_at", "2015-03-20 05:11:31.517350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$VTtmTQ4SI8rzpenm1Fu4iuABZ61m7tXWLjB4wMqcu90B/.mxsMC3q"], ["created_at", "2015-03-20 05:11:31.523292"], ["updated_at", "2015-03-20 05:11:31.523292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.527033"], ["updated_at", "2015-03-20 05:11:31.527033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9238f782-cebf-11e4-a297-705681abff85' AND "clubhouse_memberships"."organization_id" = '92398c7e-cebf-11e4-8ae4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9238f782-cebf-11e4-a297-705681abff85"], ["organization_id", "92398c7e-cebf-11e4-8ae4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.531030"], ["updated_at", "2015-03-20 05:11:31.531030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9238f782-cebf-11e4-a297-705681abff85' LIMIT 1 [["organization_id", "92398c7e-cebf-11e4-8ae4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$N0wdGNrfwZZlaxjv8X0O7uJ0D.HFFmDMz/4SVD58Irg.yveYRrxtO"], ["created_at", "2015-03-20 05:11:31.538267"], ["updated_at", "2015-03-20 05:11:31.538267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.541403"], ["updated_at", "2015-03-20 05:11:31.541403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '923b419a-cebf-11e4-9cbe-705681abff85' AND "clubhouse_memberships"."organization_id" = '923bbc88-cebf-11e4-b9b5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "923b419a-cebf-11e4-9cbe-705681abff85"], ["organization_id", "923bbc88-cebf-11e4-b9b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.546266"], ["updated_at", "2015-03-20 05:11:31.546266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '923b419a-cebf-11e4-9cbe-705681abff85' LIMIT 1 [["organization_id", "923bbc88-cebf-11e4-b9b5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$iqIuEpJ5AD93pV4T2l5BQORZKjfuIbAyb9Psm5T6rg2QiIweTcKDu"], ["created_at", "2015-03-20 05:11:31.554124"], ["updated_at", "2015-03-20 05:11:31.554124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.557122"], ["updated_at", "2015-03-20 05:11:31.557122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '923e1db6-cebf-11e4-ad04-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "923e1db6-cebf-11e4-ad04-705681abff85"], ["created_at", "2015-03-20 05:11:31.567846"], ["updated_at", "2015-03-20 05:11:31.567846"], ["token", "DgN4JcUaqRDZfR_RXMmQcBwkjKB77cRBqUAkccqzh98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '923daa66-cebf-11e4-a546-705681abff85' LIMIT 1 [["organization_id", "923e1db6-cebf-11e4-ad04-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Ucl90WnxyVJ8BJGWEaIrvOu5fVCVYSz103PDSSnro.RkKqIEiALfm"], ["created_at", "2015-03-20 05:11:31.577088"], ["updated_at", "2015-03-20 05:11:31.577088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.580714"], ["updated_at", "2015-03-20 05:11:31.580714"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '9241ba3e-cebf-11e4-ab1f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "9241ba3e-cebf-11e4-ab1f-705681abff85"], ["created_at", "2015-03-20 05:11:31.585408"], ["updated_at", "2015-03-20 05:11:31.585408"], ["token", "MeoWXLo8fi2PnAr41HWha0ctrvB8rpe_ISzuVabOHBE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '92413640-cebf-11e4-9c9b-705681abff85' LIMIT 1 [["organization_id", "9241ba3e-cebf-11e4-ab1f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$0TubMrYSEz51Vzg4FJgKWOt3M/LsElo3fNrNYjObbzTn0LF1XkVy."], ["created_at", "2015-03-20 05:11:31.594017"], ["updated_at", "2015-03-20 05:11:31.594017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.598056"], ["updated_at", "2015-03-20 05:11:31.598056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '924460d6-cebf-11e4-9698-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "924460d6-cebf-11e4-9698-705681abff85"], ["created_at", "2015-03-20 05:11:31.602188"], ["updated_at", "2015-03-20 05:11:31.602188"], ["token", "Apg1D33bH298N6nOrCVyosuf-lpJFrGL2uD4qPTytmE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9243c9d2-cebf-11e4-89c8-705681abff85' LIMIT 1 [["organization_id", "924460d6-cebf-11e4-9698-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$9aOLHZaHFtumV2tt6h6yIufU6UXLnrn.jfJKObiNSOc8jirJN4XQe"], ["created_at", "2015-03-20 05:11:31.611913"], ["updated_at", "2015-03-20 05:11:31.611913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.615460"], ["updated_at", "2015-03-20 05:11:31.615460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '924706e2-cebf-11e4-9a1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "924706e2-cebf-11e4-9a1a-705681abff85"], ["created_at", "2015-03-20 05:11:31.618958"], ["updated_at", "2015-03-20 05:11:31.618958"], ["token", "bRP2BMvkyseJczCyuvoUCkcbgS_ZOUXZZdIRIp03hGY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9246814a-cebf-11e4-a437-705681abff85' LIMIT 1 [["organization_id", "924706e2-cebf-11e4-9a1a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$lBhfhQfMkcPKOYM6FuKXxONU3yXMYSJf85sM5zYdyyBX0PyVHjQqu"], ["created_at", "2015-03-20 05:11:31.626833"], ["updated_at", "2015-03-20 05:11:31.626833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.630443"], ["updated_at", "2015-03-20 05:11:31.630443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9248ce96-cebf-11e4-a855-705681abff85' LIMIT 1 [["organization_id", "9249524e-cebf-11e4-9fe2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$00Xlg/y9SCAJ/BHRayIa8OI83EDtPJQdb.1bnpsGmZ4iLHbgc8RQK"], ["created_at", "2015-03-20 05:11:31.639423"], ["updated_at", "2015-03-20 05:11:31.639423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.643212"], ["updated_at", "2015-03-20 05:11:31.643212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '924ab1a2-cebf-11e4-96d2-705681abff85' AND "clubhouse_memberships"."organization_id" = '924b4842-cebf-11e4-854f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "924ab1a2-cebf-11e4-96d2-705681abff85"], ["organization_id", "924b4842-cebf-11e4-854f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.646918"], ["updated_at", "2015-03-20 05:11:31.646918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '924b4842-cebf-11e4-854f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "924b4842-cebf-11e4-854f-705681abff85"], ["created_at", "2015-03-20 05:11:31.650894"], ["updated_at", "2015-03-20 05:11:31.650894"], ["token", "xWRG8UZcLb4hqprZrHBK3_K05bU30oHkktdIVh8VzoI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '924ab1a2-cebf-11e4-96d2-705681abff85' LIMIT 1 [["organization_id", "924b4842-cebf-11e4-854f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$EFp73Di.6GC.0zPB295kdufTRfWp6iocHfSo2EsE4vp3bIvsuN1D2"], ["created_at", "2015-03-20 05:11:31.658703"], ["updated_at", "2015-03-20 05:11:31.658703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.662231"], ["updated_at", "2015-03-20 05:11:31.662231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '924da45c-cebf-11e4-81a1-705681abff85' AND "clubhouse_memberships"."organization_id" = '924e2ada-cebf-11e4-b39c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "924da45c-cebf-11e4-81a1-705681abff85"], ["organization_id", "924e2ada-cebf-11e4-b39c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.666282"], ["updated_at", "2015-03-20 05:11:31.666282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '924e2ada-cebf-11e4-b39c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "924e2ada-cebf-11e4-b39c-705681abff85"], ["created_at", "2015-03-20 05:11:31.670814"], ["updated_at", "2015-03-20 05:11:31.670814"], ["token", "rZw_t1R3kXB1NBYqW8xeKOXMtPp_j5HM7pi3zmMRnHk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '924da45c-cebf-11e4-81a1-705681abff85' LIMIT 1 [["organization_id", "924e2ada-cebf-11e4-b39c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$YqwZymRoDDIQe.sdEeggJ.pxhFfYscPUfTGLYUJlFfbJNbCpDsu1y"], ["created_at", "2015-03-20 05:11:31.678733"], ["updated_at", "2015-03-20 05:11:31.678733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.689821"], ["updated_at", "2015-03-20 05:11:31.689821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9250b598-cebf-11e4-8adf-705681abff85' AND "clubhouse_memberships"."organization_id" = '925264ce-cebf-11e4-9c7b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9250b598-cebf-11e4-8adf-705681abff85"], ["organization_id", "925264ce-cebf-11e4-9c7b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.693710"], ["updated_at", "2015-03-20 05:11:31.693710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '925264ce-cebf-11e4-9c7b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "925264ce-cebf-11e4-9c7b-705681abff85"], ["created_at", "2015-03-20 05:11:31.697860"], ["updated_at", "2015-03-20 05:11:31.697860"], ["token", "MwHDtPw_1VbZWzDfMPRkSumb1x3sfZViDBxT9jmcN8U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9250b598-cebf-11e4-8adf-705681abff85' LIMIT 1 [["organization_id", "925264ce-cebf-11e4-9c7b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$OTSCr3C8Uo.ZVUWdEE.ihO/9xKLTrJL/47RYb1pPauzplSvDQZzLe"], ["created_at", "2015-03-20 05:11:31.705292"], ["updated_at", "2015-03-20 05:11:31.705292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.708560"], ["updated_at", "2015-03-20 05:11:31.708560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9254bdd2-cebf-11e4-9364-705681abff85' AND "clubhouse_memberships"."organization_id" = '9255419e-cebf-11e4-a6de-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9254bdd2-cebf-11e4-9364-705681abff85"], ["organization_id", "9255419e-cebf-11e4-a6de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.712400"], ["updated_at", "2015-03-20 05:11:31.712400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '9255419e-cebf-11e4-a6de-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "9255419e-cebf-11e4-a6de-705681abff85"], ["created_at", "2015-03-20 05:11:31.716155"], ["updated_at", "2015-03-20 05:11:31.716155"], ["token", "0X7R65e9Q-8OOC8S32qR9UTxzu49JHqcxmrO4UjkbDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9254bdd2-cebf-11e4-9364-705681abff85' LIMIT 1 [["organization_id", "9255419e-cebf-11e4-a6de-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$yTzIQ59lS2oRBVkZ2wOa2Oa99pNjpzWnNdmLtN1sfTt2piRT4rtpW"], ["created_at", "2015-03-20 05:11:31.724151"], ["updated_at", "2015-03-20 05:11:31.724151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.727710"], ["updated_at", "2015-03-20 05:11:31.727710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92579f2a-cebf-11e4-a98a-705681abff85' AND "clubhouse_memberships"."organization_id" = '92582b16-cebf-11e4-b74f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "92579f2a-cebf-11e4-a98a-705681abff85"], ["organization_id", "92582b16-cebf-11e4-b74f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.731538"], ["updated_at", "2015-03-20 05:11:31.731538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '92579f2a-cebf-11e4-a98a-705681abff85' LIMIT 1 [["organization_id", "92582b16-cebf-11e4-b74f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$G5hXjo79y93dq5fVS/MxteV2lQgsZAoVWcG1Y2JcYapl.hhuX9ui."], ["created_at", "2015-03-20 05:11:31.739263"], ["updated_at", "2015-03-20 05:11:31.739263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.742778"], ["updated_at", "2015-03-20 05:11:31.742778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9259ee10-cebf-11e4-b626-705681abff85' AND "clubhouse_memberships"."organization_id" = '925a7452-cebf-11e4-9120-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9259ee10-cebf-11e4-b626-705681abff85"], ["organization_id", "925a7452-cebf-11e4-9120-705681abff85"], ["created_at", "2015-03-20 05:11:31.746116"], ["updated_at", "2015-03-20 05:11:31.746116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '925a7452-cebf-11e4-9120-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "925a7452-cebf-11e4-9120-705681abff85"], ["created_at", "2015-03-20 05:11:31.749842"], ["updated_at", "2015-03-20 05:11:31.749842"], ["token", "ur7LAldlZvYlqOqwsoJ5itiqhJYqrBXKFEFOHq9AfJI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9259ee10-cebf-11e4-b626-705681abff85' LIMIT 1 [["organization_id", "925a7452-cebf-11e4-9120-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$F6bWmHYAwvTw.pQF2BFu5.cza9bny3LFvbdiRcAJtnHMi8WFE35Qa"], ["created_at", "2015-03-20 05:11:31.757843"], ["updated_at", "2015-03-20 05:11:31.757843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.761519"], ["updated_at", "2015-03-20 05:11:31.761519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '925cc4be-cebf-11e4-8e1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '925d5226-cebf-11e4-9280-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "925cc4be-cebf-11e4-8e1c-705681abff85"], ["organization_id", "925d5226-cebf-11e4-9280-705681abff85"], ["created_at", "2015-03-20 05:11:31.765066"], ["updated_at", "2015-03-20 05:11:31.765066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '925d5226-cebf-11e4-9280-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "925d5226-cebf-11e4-9280-705681abff85"], ["created_at", "2015-03-20 05:11:31.768975"], ["updated_at", "2015-03-20 05:11:31.768975"], ["token", "4mT0c8VRoHu1iWMvZbxtASkmSrveq-odYEFtP_hRO7U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '925cc4be-cebf-11e4-8e1c-705681abff85' LIMIT 1 [["organization_id", "925d5226-cebf-11e4-9280-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$t5tT9JNi4xubeStkFjq7Je5rxjTr60yTDfii8HEsLmkQ56MtYZHy6"], ["created_at", "2015-03-20 05:11:31.776621"], ["updated_at", "2015-03-20 05:11:31.776621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.780265"], ["updated_at", "2015-03-20 05:11:31.780265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '925fa904-cebf-11e4-9296-705681abff85' AND "clubhouse_memberships"."organization_id" = '92602bae-cebf-11e4-9516-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "925fa904-cebf-11e4-9296-705681abff85"], ["organization_id", "92602bae-cebf-11e4-9516-705681abff85"], ["created_at", "2015-03-20 05:11:31.783675"], ["updated_at", "2015-03-20 05:11:31.783675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '92602bae-cebf-11e4-9516-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "92602bae-cebf-11e4-9516-705681abff85"], ["created_at", "2015-03-20 05:11:31.787522"], ["updated_at", "2015-03-20 05:11:31.787522"], ["token", "7MjbOVxvilN1Qef_SGZVFA9B_D9350gTGwK5lI0shnI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '925fa904-cebf-11e4-9296-705681abff85' LIMIT 1 [["organization_id", "92602bae-cebf-11e4-9516-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$RaKTHAXxl/rZourdwz.BL.JVxm3H5D4iSqsnzLY7KnHNv9c6I6Bw6"], ["created_at", "2015-03-20 05:11:31.795756"], ["updated_at", "2015-03-20 05:11:31.795756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.799464"], ["updated_at", "2015-03-20 05:11:31.799464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92628e4e-cebf-11e4-8ab1-705681abff85' AND "clubhouse_memberships"."organization_id" = '926319fe-cebf-11e4-acd4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "92628e4e-cebf-11e4-8ab1-705681abff85"], ["organization_id", "926319fe-cebf-11e4-acd4-705681abff85"], ["created_at", "2015-03-20 05:11:31.802886"], ["updated_at", "2015-03-20 05:11:31.802886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '926319fe-cebf-11e4-acd4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "926319fe-cebf-11e4-acd4-705681abff85"], ["created_at", "2015-03-20 05:11:31.806448"], ["updated_at", "2015-03-20 05:11:31.806448"], ["token", "E4GHyxlfbQQE1cO4bLFWAeB9n79dhH8NzJGrq5vJkQA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '92628e4e-cebf-11e4-8ab1-705681abff85' LIMIT 1 [["organization_id", "926319fe-cebf-11e4-acd4-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$XG8dlfCdQBG.gP/Yb8o1deVycNyf0jBilgaKQg/USOalPMI6KWcEG"], ["created_at", "2015-03-20 05:11:31.815494"], ["updated_at", "2015-03-20 05:11:31.815494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.819105"], ["updated_at", "2015-03-20 05:11:31.819105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92658eb4-cebf-11e4-9dd4-705681abff85' AND "clubhouse_memberships"."organization_id" = '92661c26-cebf-11e4-b0fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "92658eb4-cebf-11e4-9dd4-705681abff85"], ["organization_id", "92661c26-cebf-11e4-b0fe-705681abff85"], ["created_at", "2015-03-20 05:11:31.822499"], ["updated_at", "2015-03-20 05:11:31.822499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '92658eb4-cebf-11e4-9dd4-705681abff85' LIMIT 1 [["organization_id", "92661c26-cebf-11e4-b0fe-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$pOu9jjAxCLt.lTIl/zhFyeJiIQCA77i/TQl4r2rf8zP99KM/k1Ai6"], ["created_at", "2015-03-20 05:11:31.830290"], ["updated_at", "2015-03-20 05:11:31.830290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$UBobxlLIA/kDyUEqFZoBYeprXjR7KUUxaRaxQf/LngHABOD0Pb6ZW"], ["created_at", "2015-03-20 05:11:31.834721"], ["updated_at", "2015-03-20 05:11:31.834721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.837935"], ["updated_at", "2015-03-20 05:11:31.837935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92687b92-cebf-11e4-826a-705681abff85' AND "clubhouse_memberships"."organization_id" = '9268f7ca-cebf-11e4-a10b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "92687b92-cebf-11e4-826a-705681abff85"], ["organization_id", "9268f7ca-cebf-11e4-a10b-705681abff85"], ["created_at", "2015-03-20 05:11:31.841277"], ["updated_at", "2015-03-20 05:11:31.841277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9267cff8-cebf-11e4-918f-705681abff85' LIMIT 1 [["organization_id", "9268f7ca-cebf-11e4-a10b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$I2Q.Q/yTr9NTZcveU9HUsOWnv6UdVW8pr2EK5OUZOggTqlloqP2mi"], ["created_at", "2015-03-20 05:11:31.849800"], ["updated_at", "2015-03-20 05:11:31.849800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$Ba5SFd3l.ipIAmdGb81A8.TRjRO6vMQSljsfN8YjumijBtBbEask2"], ["created_at", "2015-03-20 05:11:31.854138"], ["updated_at", "2015-03-20 05:11:31.854138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.857534"], ["updated_at", "2015-03-20 05:11:31.857534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '926b7310-cebf-11e4-bf23-705681abff85' AND "clubhouse_memberships"."organization_id" = '926bf772-cebf-11e4-8d08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "926b7310-cebf-11e4-bf23-705681abff85"], ["organization_id", "926bf772-cebf-11e4-8d08-705681abff85"], ["created_at", "2015-03-20 05:11:31.861302"], ["updated_at", "2015-03-20 05:11:31.861302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$CU.7pv9OiXyCRtaz8o1OFOM8.iJXXvDTaW1SzhXFbFf617/LhatPq"], ["created_at", "2015-03-20 05:11:31.868226"], ["updated_at", "2015-03-20 05:11:31.868226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$sf7b93r4ZfJ8fdEevNI5T.db8w/sXXSI.Jkk5f.dHDPbuJ4F5.yz2"], ["created_at", "2015-03-20 05:11:31.873194"], ["updated_at", "2015-03-20 05:11:31.873194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.876788"], ["updated_at", "2015-03-20 05:11:31.876788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '926e5cb0-cebf-11e4-a3e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '926ef53a-cebf-11e4-aca3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "926e5cb0-cebf-11e4-a3e9-705681abff85"], ["organization_id", "926ef53a-cebf-11e4-aca3-705681abff85"], ["created_at", "2015-03-20 05:11:31.881134"], ["updated_at", "2015-03-20 05:11:31.881134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '926da478-cebf-11e4-ba4c-705681abff85' LIMIT 1 [["organization_id", "926ef53a-cebf-11e4-aca3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$GVTmxoY8QcaB37tR8k4RduHiyyT5.smPV1ZJtOuY.b0D5BfP5KBzK"], ["created_at", "2015-03-20 05:11:31.889231"], ["updated_at", "2015-03-20 05:11:31.889231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$PBuTdIKxhgZoJH.cRNB55OiF9wb3VEtPG5pjPoHCllfqS95w8WvPu"], ["created_at", "2015-03-20 05:11:31.893760"], ["updated_at", "2015-03-20 05:11:31.893760"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.899035"], ["updated_at", "2015-03-20 05:11:31.899035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '927180c0-cebf-11e4-a192-705681abff85' AND "clubhouse_memberships"."organization_id" = '927255c2-cebf-11e4-8f1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "927180c0-cebf-11e4-a192-705681abff85"], ["organization_id", "927255c2-cebf-11e4-8f1a-705681abff85"], ["created_at", "2015-03-20 05:11:31.902930"], ["updated_at", "2015-03-20 05:11:31.902930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9270cf5e-cebf-11e4-a218-705681abff85' LIMIT 1 [["organization_id", "927255c2-cebf-11e4-8f1a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$QIWS5eB8c8LSXiFXn3UkYepUGkQcO2HAZaA024azhxeXTn/18.3WK"], ["created_at", "2015-03-20 05:11:31.911276"], ["updated_at", "2015-03-20 05:11:31.911276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.917431"], ["updated_at", "2015-03-20 05:11:31.917431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '92743d92-cebf-11e4-99aa-705681abff85' LIMIT 1 [["organization_id", "92751dd4-cebf-11e4-bc29-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$Dlf1jIBm1F0wG4pPFR.JceJ6utkQZ4istDZMfDQ46bAe4jDzI3Ya2"], ["created_at", "2015-03-20 05:11:31.925216"], ["updated_at", "2015-03-20 05:11:31.925216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.929112"], ["updated_at", "2015-03-20 05:11:31.929112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92764e20-cebf-11e4-9e3f-705681abff85' AND "clubhouse_memberships"."organization_id" = '9276f4e2-cebf-11e4-b812-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "92764e20-cebf-11e4-9e3f-705681abff85"], ["organization_id", "9276f4e2-cebf-11e4-b812-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.933464"], ["updated_at", "2015-03-20 05:11:31.933464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$5Dgg5CjeV4TeqUylY7rOaOPRwDXY/XOm0cuWAok/ZqXEeQIuY5mf6"], ["created_at", "2015-03-20 05:11:31.938097"], ["updated_at", "2015-03-20 05:11:31.938097"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '927843ba-cebf-11e4-b2a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '9276f4e2-cebf-11e4-b812-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "927843ba-cebf-11e4-b2a8-705681abff85"], ["organization_id", "9276f4e2-cebf-11e4-b812-705681abff85"], ["created_at", "2015-03-20 05:11:31.943345"], ["updated_at", "2015-03-20 05:11:31.943345"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '92764e20-cebf-11e4-9e3f-705681abff85' LIMIT 1 [["organization_id", "9276f4e2-cebf-11e4-b812-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$JtP4fF20W0yJKQVRruR0XOfqFiXy19QSNlb8960z/DN5s9.XEJlkm"], ["created_at", "2015-03-20 05:11:31.951544"], ["updated_at", "2015-03-20 05:11:31.951544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.955108"], ["updated_at", "2015-03-20 05:11:31.955108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '927a4f84-cebf-11e4-a430-705681abff85' AND "clubhouse_memberships"."organization_id" = '927ada62-cebf-11e4-bae2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "927a4f84-cebf-11e4-a430-705681abff85"], ["organization_id", "927ada62-cebf-11e4-bae2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.958509"], ["updated_at", "2015-03-20 05:11:31.958509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$KsQT76e16Njgo1usUbxEQO14E9gcZtJKcTidAvjKVq/ajQIitVJO6"], ["created_at", "2015-03-20 05:11:31.963600"], ["updated_at", "2015-03-20 05:11:31.963600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '927c2886-cebf-11e4-9d50-705681abff85' AND "clubhouse_memberships"."organization_id" = '927ada62-cebf-11e4-bae2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "927c2886-cebf-11e4-9d50-705681abff85"], ["organization_id", "927ada62-cebf-11e4-bae2-705681abff85"], ["created_at", "2015-03-20 05:11:31.967538"], ["updated_at", "2015-03-20 05:11:31.967538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$6Re4wLuR6OzbLMsCV6AASOZC4zFkdx8LAbTyuCYFGXCEiDGztPlwG"], ["created_at", "2015-03-20 05:11:31.973606"], ["updated_at", "2015-03-20 05:11:31.973606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:31.977013"], ["updated_at", "2015-03-20 05:11:31.977013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '927daeae-cebf-11e4-88f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '927e34aa-cebf-11e4-8871-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "927daeae-cebf-11e4-88f0-705681abff85"], ["organization_id", "927e34aa-cebf-11e4-8871-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:31.981049"], ["updated_at", "2015-03-20 05:11:31.981049"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$Ol0EyocO.A6LxJrlPQZLmum.6Pd39JtYmj9QmgBaEu9XBzVsjUSBq"], ["created_at", "2015-03-20 05:11:31.988415"], ["updated_at", "2015-03-20 05:11:31.988415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '927ff5ba-cebf-11e4-bd3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '927e34aa-cebf-11e4-8871-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "927ff5ba-cebf-11e4-bd3b-705681abff85"], ["organization_id", "927e34aa-cebf-11e4-8871-705681abff85"], ["created_at", "2015-03-20 05:11:31.992035"], ["updated_at", "2015-03-20 05:11:31.992035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '927daeae-cebf-11e4-88f0-705681abff85' LIMIT 1 [["organization_id", "927e34aa-cebf-11e4-8871-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$6ThuLNJQG9gJZBzQLuaMROKKkJ1QWD7EHttgLmOpaHimnfqU2RRbm"], ["created_at", "2015-03-20 05:11:31.999875"], ["updated_at", "2015-03-20 05:11:31.999875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.003430"], ["updated_at", "2015-03-20 05:11:32.003430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9281b4ea-cebf-11e4-84d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '928239ec-cebf-11e4-ae3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9281b4ea-cebf-11e4-84d0-705681abff85"], ["organization_id", "928239ec-cebf-11e4-ae3d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:32.007089"], ["updated_at", "2015-03-20 05:11:32.007089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$mYYv5raFC2KuWuqorRppG.O2.LzKzkCGSPqRssIJlIWf5kPIv04KO"], ["created_at", "2015-03-20 05:11:32.012095"], ["updated_at", "2015-03-20 05:11:32.012095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '928390e4-cebf-11e4-9dde-705681abff85' AND "clubhouse_memberships"."organization_id" = '928239ec-cebf-11e4-ae3d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "928390e4-cebf-11e4-9dde-705681abff85"], ["organization_id", "928239ec-cebf-11e4-ae3d-705681abff85"], ["created_at", "2015-03-20 05:11:32.015588"], ["updated_at", "2015-03-20 05:11:32.015588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9281b4ea-cebf-11e4-84d0-705681abff85' LIMIT 1 [["organization_id", "928239ec-cebf-11e4-ae3d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$U0Xdoixy29c.n.iwtwI2.ur5WOzEGNpCWtN9C4XCYvZY3IPYiw3pS"], ["created_at", "2015-03-20 05:11:32.023260"], ["updated_at", "2015-03-20 05:11:32.023260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.026730"], ["updated_at", "2015-03-20 05:11:32.026730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '928542fe-cebf-11e4-b9d6-705681abff85' AND "clubhouse_memberships"."organization_id" = '9285cb48-cebf-11e4-977a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "928542fe-cebf-11e4-b9d6-705681abff85"], ["organization_id", "9285cb48-cebf-11e4-977a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:32.030267"], ["updated_at", "2015-03-20 05:11:32.030267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '928542fe-cebf-11e4-b9d6-705681abff85' LIMIT 1 [["organization_id", "9285cb48-cebf-11e4-977a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$HAMok1.Hxhyv/TfAyoDqkeLObTL9QMJA2bDzJIolsygRZNXjBu6Mu"], ["created_at", "2015-03-20 05:11:32.038224"], ["updated_at", "2015-03-20 05:11:32.038224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.041740"], ["updated_at", "2015-03-20 05:11:32.041740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92878b04-cebf-11e4-91fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '92881236-cebf-11e4-8dec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "92878b04-cebf-11e4-91fd-705681abff85"], ["organization_id", "92881236-cebf-11e4-8dec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:32.045094"], ["updated_at", "2015-03-20 05:11:32.045094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '92878b04-cebf-11e4-91fd-705681abff85' LIMIT 1 [["organization_id", "92881236-cebf-11e4-8dec-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$oYCglm610eWYv5Ylgy3Eb.Z0NKSiiEEmrbjt8nSYrlaPGAKXmZ82S"], ["created_at", "2015-03-20 05:11:32.052367"], ["updated_at", "2015-03-20 05:11:32.052367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.055639"], ["updated_at", "2015-03-20 05:11:32.055639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9289b41a-cebf-11e4-82d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '928a3a16-cebf-11e4-947d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9289b41a-cebf-11e4-82d5-705681abff85"], ["organization_id", "928a3a16-cebf-11e4-947d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:32.059525"], ["updated_at", "2015-03-20 05:11:32.059525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$MbA9TBGoROR0D8DOA7KCaOptVBkde.ACXdO/xNa1xCHfPHLmH8nRO"], ["created_at", "2015-03-20 05:11:32.065567"], ["updated_at", "2015-03-20 05:11:32.065567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.074279"], ["updated_at", "2015-03-20 05:11:32.074279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '928bb800-cebf-11e4-930e-705681abff85' AND "clubhouse_memberships"."organization_id" = '928d0cf0-cebf-11e4-819b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "928bb800-cebf-11e4-930e-705681abff85"], ["organization_id", "928d0cf0-cebf-11e4-819b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:32.078643"], ["updated_at", "2015-03-20 05:11:32.078643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '928bb800-cebf-11e4-930e-705681abff85' LIMIT 1 [["organization_id", "928d0cf0-cebf-11e4-819b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$m.9NEU1rDI4H8H37DfUd..yREdtXLy6Nuo1TKUsA.9Sd3ta1lEoja"], ["created_at", "2015-03-20 05:11:32.086731"], ["updated_at", "2015-03-20 05:11:32.086731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.090542"], ["updated_at", "2015-03-20 05:11:32.090542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '928ef4de-cebf-11e4-b538-705681abff85' AND "clubhouse_memberships"."organization_id" = '928f85a2-cebf-11e4-8ce1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "928ef4de-cebf-11e4-b538-705681abff85"], ["organization_id", "928f85a2-cebf-11e4-8ce1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:11:32.094000"], ["updated_at", "2015-03-20 05:11:32.094000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '928ef4de-cebf-11e4-b538-705681abff85' LIMIT 1 [["organization_id", "928f85a2-cebf-11e4-8ce1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$JjIt.GpEcREdJaxdtO7J7u2cSqakcD26X2M1jmHhlQ6346PNDz/1G"], ["created_at", "2015-03-20 05:11:32.102306"], ["updated_at", "2015-03-20 05:11:32.102306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.105950"], ["updated_at", "2015-03-20 05:11:32.105950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '929153c8-cebf-11e4-8c17-705681abff85' AND "clubhouse_memberships"."organization_id" = '9291e068-cebf-11e4-a3e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "929153c8-cebf-11e4-8c17-705681abff85"], ["organization_id", "9291e068-cebf-11e4-a3e9-705681abff85"], ["created_at", "2015-03-20 05:11:32.109340"], ["updated_at", "2015-03-20 05:11:32.109340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '929153c8-cebf-11e4-8c17-705681abff85' LIMIT 1 [["organization_id", "9291e068-cebf-11e4-a3e9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$cUvZQKDSzQUbps3QRZghsOKtZD8vE0YkFgLaZOno3hiaC0dZ68vZm"], ["created_at", "2015-03-20 05:11:32.116547"], ["updated_at", "2015-03-20 05:11:32.116547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.120363"], ["updated_at", "2015-03-20 05:11:32.120363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92938710-cebf-11e4-9ca7-705681abff85' AND "clubhouse_memberships"."organization_id" = '929419aa-cebf-11e4-8420-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "92938710-cebf-11e4-9ca7-705681abff85"], ["organization_id", "929419aa-cebf-11e4-8420-705681abff85"], ["created_at", "2015-03-20 05:11:32.123884"], ["updated_at", "2015-03-20 05:11:32.123884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$JpXi0iRmkMTzp65C2jnrUOA9POZ3i/0jfYrLRKnSJC9jvxweB4jMy"], ["created_at", "2015-03-20 05:11:32.129998"], ["updated_at", "2015-03-20 05:11:32.129998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.133576"], ["updated_at", "2015-03-20 05:11:32.133576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92958b46-cebf-11e4-bd92-705681abff85' AND "clubhouse_memberships"."organization_id" = '92961534-cebf-11e4-aa8b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "92958b46-cebf-11e4-bd92-705681abff85"], ["organization_id", "92961534-cebf-11e4-aa8b-705681abff85"], ["created_at", "2015-03-20 05:11:32.137161"], ["updated_at", "2015-03-20 05:11:32.137161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '92958b46-cebf-11e4-bd92-705681abff85' LIMIT 1 [["organization_id", "92961534-cebf-11e4-aa8b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$GIsP5.MaBzI5fSdYhAttp.N0gU0rEgroJNAYkyG/EYqtT.KX.xR/u"], ["created_at", "2015-03-20 05:11:32.144162"], ["updated_at", "2015-03-20 05:11:32.144162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.147907"], ["updated_at", "2015-03-20 05:11:32.147907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9297bbfa-cebf-11e4-9269-705681abff85' AND "clubhouse_memberships"."organization_id" = '929847be-cebf-11e4-8d6e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9297bbfa-cebf-11e4-9269-705681abff85"], ["organization_id", "929847be-cebf-11e4-8d6e-705681abff85"], ["created_at", "2015-03-20 05:11:32.151260"], ["updated_at", "2015-03-20 05:11:32.151260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9297bbfa-cebf-11e4-9269-705681abff85' LIMIT 1 [["organization_id", "929847be-cebf-11e4-8d6e-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$971mzX0oEXi4OECdd.skMe3vEx6vYoBY/AB9JHHKLdrX9HNckdLba"], ["created_at", "2015-03-20 05:11:32.158609"], ["updated_at", "2015-03-20 05:11:32.158609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:11:32.162314"], ["updated_at", "2015-03-20 05:11:32.162314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9299e8b2-cebf-11e4-916e-705681abff85' AND "clubhouse_memberships"."organization_id" = '929a7bec-cebf-11e4-8274-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9299e8b2-cebf-11e4-916e-705681abff85"], ["organization_id", "929a7bec-cebf-11e4-8274-705681abff85"], ["created_at", "2015-03-20 05:11:32.165933"], ["updated_at", "2015-03-20 05:11:32.165933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9299e8b2-cebf-11e4-916e-705681abff85' LIMIT 1 [["organization_id", "929a7bec-cebf-11e4-8274-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$UBw6r1cGmWbGY8Hzzec0m.XpUomQfmJLdIRCSbVVkoyMsOpPQXvp."], ["created_at", "2015-03-20 05:30:27.502541"], ["updated_at", "2015-03-20 05:30:27.502541"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.538936"], ["user_id", "37558922-cec2-11e4-801d-705681abff85"], ["created_at", "2015-03-20 05:30:27.545076"], ["updated_at", "2015-03-20 05:30:27.545076"], ["token", "TqWs-yAiw0m0ILmUFXLYh0BLAwUzB2oYe8n9UIfHEME"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.554974"], ["updated_at", "2015-03-20 05:30:27.554974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37558922-cec2-11e4-801d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3759afca-cec2-11e4-ac3d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37558922-cec2-11e4-801d-705681abff85"], ["organization_id", "3759afca-cec2-11e4-ac3d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.565708"], ["updated_at", "2015-03-20 05:30:27.565708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$oA8KviGPuIxwUsjTikGJP.13h59/VY8QImP9xmAQ1NLp5A2hIQOVS"], ["created_at", "2015-03-20 05:30:27.599773"], ["updated_at", "2015-03-20 05:30:27.599773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.601450"], ["user_id", "37607be8-cec2-11e4-851d-705681abff85"], ["created_at", "2015-03-20 05:30:27.602218"], ["updated_at", "2015-03-20 05:30:27.602218"], ["token", "Fbx5Vqc6_P5E9aNJFyNZFixXAKyCCsbR9BdyRwi47tQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.606150"], ["updated_at", "2015-03-20 05:30:27.606150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37607be8-cec2-11e4-851d-705681abff85' AND "clubhouse_memberships"."organization_id" = '376173cc-cec2-11e4-8fdc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37607be8-cec2-11e4-851d-705681abff85"], ["organization_id", "376173cc-cec2-11e4-8fdc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.609513"], ["updated_at", "2015-03-20 05:30:27.609513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-2" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:27.614112' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Fbx5Vqc6_P5E9aNJFyNZFixXAKyCCsbR9BdyRwi47tQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:27.624820"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:27.626273"], ["id", "3760e5b0-cec2-11e4-aeb6-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-2"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37607be8-cec2-11e4-851d-705681abff85"]] Completed 200 OK in 28ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$cluseC9CJIs5Mkc0I/ABZuOpEMD4.AcV1vadMnhtbCb4v.Ms43kcW"], ["created_at", "2015-03-20 05:30:27.650111"], ["updated_at", "2015-03-20 05:30:27.650111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.652747"], ["user_id", "37683d42-cec2-11e4-a75e-705681abff85"], ["created_at", "2015-03-20 05:30:27.654569"], ["updated_at", "2015-03-20 05:30:27.654569"], ["token", "X7hv3pCEZ55MfRghr6dpAK8MBSvlQhe7UEB5COopOUg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.659018"], ["updated_at", "2015-03-20 05:30:27.659018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37683d42-cec2-11e4-a75e-705681abff85' AND "clubhouse_memberships"."organization_id" = '37698594-cec2-11e4-9c63-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37683d42-cec2-11e4-a75e-705681abff85"], ["organization_id", "37698594-cec2-11e4-9c63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.662386"], ["updated_at", "2015-03-20 05:30:27.662386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:27.672118' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X7hv3pCEZ55MfRghr6dpAK8MBSvlQhe7UEB5COopOUg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:27.673669"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:27.674602"], ["id", "3768ec1a-cec2-11e4-90f4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$XKAEXSmiXCj9Hl/CkU6d4OaO5NpaKaut2YW9Wd7R/SBjH6JI5v0y."], ["created_at", "2015-03-20 05:30:27.687400"], ["updated_at", "2015-03-20 05:30:27.687400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.689309"], ["user_id", "376de210-cec2-11e4-bf7c-705681abff85"], ["created_at", "2015-03-20 05:30:27.690068"], ["updated_at", "2015-03-20 05:30:27.690068"], ["token", "gUA0CfbqdmDDbRipbEFCqDL174aAjvZEBnjwEz0uM8E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.693449"], ["updated_at", "2015-03-20 05:30:27.693449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '376de210-cec2-11e4-bf7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '376ec3d8-cec2-11e4-b133-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "376de210-cec2-11e4-bf7c-705681abff85"], ["organization_id", "376ec3d8-cec2-11e4-b133-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.696617"], ["updated_at", "2015-03-20 05:30:27.696617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$oM4O6mIDIZjK41AAySadt.Cfz42kqLh1sOEH47uFFQ453djySe6Pa"], ["created_at", "2015-03-20 05:30:27.706747"], ["updated_at", "2015-03-20 05:30:27.706747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.708397"], ["user_id", "3770cfb6-cec2-11e4-af5c-705681abff85"], ["created_at", "2015-03-20 05:30:27.709211"], ["updated_at", "2015-03-20 05:30:27.709211"], ["token", "RCZ_k5_8Fb54h2rlLKMTr4wpRDZZjxv6k-9ZtaLqkAQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.712603"], ["updated_at", "2015-03-20 05:30:27.712603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3770cfb6-cec2-11e4-af5c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3771b2e6-cec2-11e4-a88a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3770cfb6-cec2-11e4-af5c-705681abff85"], ["organization_id", "3771b2e6-cec2-11e4-a88a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.715972"], ["updated_at", "2015-03-20 05:30:27.715972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/3771b2e6-cec2-11e4-a88a-705681abff85" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"3771b2e6-cec2-11e4-a88a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:27.720689' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RCZ_k5_8Fb54h2rlLKMTr4wpRDZZjxv6k-9ZtaLqkAQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:27.722274"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:27.723228"], ["id", "377131cc-cec2-11e4-a6f6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3771b2e6-cec2-11e4-a88a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3770cfb6-cec2-11e4-af5c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3770cfb6-cec2-11e4-af5c-705681abff85' LIMIT 1 [["organization_id", "3771b2e6-cec2-11e4-a88a-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3771b2e6-cec2-11e4-a88a-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:30:27.739727"], ["id", "3771b2e6-cec2-11e4-a88a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 23ms (Views: 1.6ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$V7LAjV38VSfspwlJdagrzO1dhQaNMqFGQ7qkXsFAk5nBe/dIrt8VO"], ["created_at", "2015-03-20 05:30:27.750714"], ["updated_at", "2015-03-20 05:30:27.750714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.752426"], ["user_id", "377784e6-cec2-11e4-9c65-705681abff85"], ["created_at", "2015-03-20 05:30:27.753267"], ["updated_at", "2015-03-20 05:30:27.753267"], ["token", "FU8Bg5QDo8rEFy-BYk0ZPnTAIyuAOd-BXiPJLM5czJU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.757026"], ["updated_at", "2015-03-20 05:30:27.757026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '377784e6-cec2-11e4-9c65-705681abff85' AND "clubhouse_memberships"."organization_id" = '37787c0c-cec2-11e4-8652-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "377784e6-cec2-11e4-9c65-705681abff85"], ["organization_id", "37787c0c-cec2-11e4-8652-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.760484"], ["updated_at", "2015-03-20 05:30:27.760484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/37787c0c-cec2-11e4-8652-705681abff85" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"37787c0c-cec2-11e4-8652-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:27.765196' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FU8Bg5QDo8rEFy-BYk0ZPnTAIyuAOd-BXiPJLM5czJU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:27.766633"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:27.767580"], ["id", "3777f476-cec2-11e4-9272-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "37787c0c-cec2-11e4-8652-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "377784e6-cec2-11e4-9c65-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '377784e6-cec2-11e4-9c65-705681abff85' LIMIT 1 [["organization_id", "37787c0c-cec2-11e4-8652-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '37787c0c-cec2-11e4-8652-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$54k4yBLsoKUw2f7TGv9zwOAUIEwISIqnKmGkujJjR016bHqegQ81e"], ["created_at", "2015-03-20 05:30:27.792663"], ["updated_at", "2015-03-20 05:30:27.792663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.794423"], ["user_id", "377decd2-cec2-11e4-8222-705681abff85"], ["created_at", "2015-03-20 05:30:27.795256"], ["updated_at", "2015-03-20 05:30:27.795256"], ["token", "J9Cxt8eCaGMN6D5we8Vm3MZJaj-sty3Ev4y-pe4rgPA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.798764"], ["updated_at", "2015-03-20 05:30:27.798764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '377decd2-cec2-11e4-8222-705681abff85' AND "clubhouse_memberships"."organization_id" = '377ed6ec-cec2-11e4-9a86-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "377decd2-cec2-11e4-8222-705681abff85"], ["organization_id", "377ed6ec-cec2-11e4-9a86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.802727"], ["updated_at", "2015-03-20 05:30:27.802727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$LEBDsIRCg8WJjrGmMb3m7OYbwcQRU7Sz4vWSjmdiqcPFInPAfK9TS"], ["created_at", "2015-03-20 05:30:27.823629"], ["updated_at", "2015-03-20 05:30:27.823629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.825572"], ["user_id", "3782ad08-cec2-11e4-a726-705681abff85"], ["created_at", "2015-03-20 05:30:27.826367"], ["updated_at", "2015-03-20 05:30:27.826367"], ["token", "jVwN1jHZfudpD-g-myW61Q9YdTdKz7rQTj0WT4sHvr4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.829695"], ["updated_at", "2015-03-20 05:30:27.829695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3782ad08-cec2-11e4-a726-705681abff85' AND "clubhouse_memberships"."organization_id" = '37838dae-cec2-11e4-ab33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3782ad08-cec2-11e4-a726-705681abff85"], ["organization_id", "37838dae-cec2-11e4-ab33-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.832894"], ["updated_at", "2015-03-20 05:30:27.832894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:27.837756' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jVwN1jHZfudpD-g-myW61Q9YdTdKz7rQTj0WT4sHvr4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:27.839444"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:27.840474"], ["id", "37831306-cec2-11e4-b9e0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3782ad08-cec2-11e4-a726-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.851922"], ["updated_at", "2015-03-20 05:30:27.851922"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3786f4c6-cec2-11e4-a058-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3782ad08-cec2-11e4-a726-705681abff85' AND "clubhouse_memberships"."organization_id" = '3786f4c6-cec2-11e4-a058-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3782ad08-cec2-11e4-a726-705681abff85"], ["admin", "t"], ["organization_id", "3786f4c6-cec2-11e4-a058-705681abff85"], ["created_at", "2015-03-20 05:30:27.856851"], ["updated_at", "2015-03-20 05:30:27.856851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 22ms (Views: 0.5ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$XoQey.5n1PYKG90vyBTA/.Y5G9I5KSeOfvOgHvJ0IjqGAPOANDpMK"], ["created_at", "2015-03-20 05:30:27.865064"], ["updated_at", "2015-03-20 05:30:27.865064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.866611"], ["user_id", "3788f4ce-cec2-11e4-96f9-705681abff85"], ["created_at", "2015-03-20 05:30:27.867398"], ["updated_at", "2015-03-20 05:30:27.867398"], ["token", "vHTuM1vYC3kWa33I3JyMlR53RalzH62NfuPbQdovR8U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.870791"], ["updated_at", "2015-03-20 05:30:27.870791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3788f4ce-cec2-11e4-96f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3789e0d2-cec2-11e4-966d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3788f4ce-cec2-11e4-96f9-705681abff85"], ["organization_id", "3789e0d2-cec2-11e4-966d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.874803"], ["updated_at", "2015-03-20 05:30:27.874803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:27.879295' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vHTuM1vYC3kWa33I3JyMlR53RalzH62NfuPbQdovR8U"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:27.881272"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:27.882524"], ["id", "378955cc-cec2-11e4-b447-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3788f4ce-cec2-11e4-96f9-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$IaZJ7fvxYxjcWfwh89p8f..1fvPmEQ.x6FGdf3thfKxz4wOmbv5bG"], ["created_at", "2015-03-20 05:30:27.895391"], ["updated_at", "2015-03-20 05:30:27.895391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.897495"], ["user_id", "378d9ff6-cec2-11e4-96e4-705681abff85"], ["created_at", "2015-03-20 05:30:27.898353"], ["updated_at", "2015-03-20 05:30:27.898353"], ["token", "q8tWl1BIPOz1mrpOGhlzX_Ga0PmMIhHunEd3knbG8F8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.901770"], ["updated_at", "2015-03-20 05:30:27.901770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '378d9ff6-cec2-11e4-96e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '378e8c72-cec2-11e4-807f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "378d9ff6-cec2-11e4-96e4-705681abff85"], ["organization_id", "378e8c72-cec2-11e4-807f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.905518"], ["updated_at", "2015-03-20 05:30:27.905518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$QJTtqtpJSaFidUoWwHpFu.3N8gsZ01yeqGUavobszTp1.Kw5G3dDC"], ["created_at", "2015-03-20 05:30:27.917026"], ["updated_at", "2015-03-20 05:30:27.917026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.919215"], ["user_id", "3790f5b6-cec2-11e4-9e63-705681abff85"], ["created_at", "2015-03-20 05:30:27.919981"], ["updated_at", "2015-03-20 05:30:27.919981"], ["token", "gyEqptTNROmpRSJK1yzXgmrpsNK_uIVU1tRoicCo89E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.924313"], ["updated_at", "2015-03-20 05:30:27.924313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3790f5b6-cec2-11e4-9e63-705681abff85' AND "clubhouse_memberships"."organization_id" = '3791fede-cec2-11e4-913f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3790f5b6-cec2-11e4-9e63-705681abff85"], ["organization_id", "3791fede-cec2-11e4-913f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.927610"], ["updated_at", "2015-03-20 05:30:27.927610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-11" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-11", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:27.932142' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gyEqptTNROmpRSJK1yzXgmrpsNK_uIVU1tRoicCo89E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:27.933529"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:27.934465"], ["id", "37915e16-cec2-11e4-9d25-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-11"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3790f5b6-cec2-11e4-9e63-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3790f5b6-cec2-11e4-9e63-705681abff85' LIMIT 1 [["organization_id", "3791fede-cec2-11e4-913f-705681abff85"]] Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$VauI9mW.JUAChJHc8cLgb.RUi.H5pGhl/Af57UdTg6veS8xC9igPu"], ["created_at", "2015-03-20 05:30:27.945795"], ["updated_at", "2015-03-20 05:30:27.945795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.948273"], ["user_id", "3795569c-cec2-11e4-9f07-705681abff85"], ["created_at", "2015-03-20 05:30:27.949119"], ["updated_at", "2015-03-20 05:30:27.949119"], ["token", "x9YguvjLX95mOV_Up5frwbuAXEUeFk6l1LTuMNJbVYo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.952657"], ["updated_at", "2015-03-20 05:30:27.952657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3795569c-cec2-11e4-9f07-705681abff85' AND "clubhouse_memberships"."organization_id" = '37965132-cec2-11e4-87ed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3795569c-cec2-11e4-9f07-705681abff85"], ["organization_id", "37965132-cec2-11e4-87ed-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.956387"], ["updated_at", "2015-03-20 05:30:27.956387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$FjvpVTXcgDUk8LjWEG8P6OnWCPUX6x/vAO0KSrN5M4Og1aZvVCmtK"], ["created_at", "2015-03-20 05:30:27.967908"], ["updated_at", "2015-03-20 05:30:27.967908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.969533"], ["user_id", "3798a77a-cec2-11e4-888b-705681abff85"], ["created_at", "2015-03-20 05:30:27.970368"], ["updated_at", "2015-03-20 05:30:27.970368"], ["token", "Uwqrh4IdVnXWGgm1qE-nwBwcJoecQsXT6uJI79WLs0k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:27.974070"], ["updated_at", "2015-03-20 05:30:27.974070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3798a77a-cec2-11e4-888b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3799952c-cec2-11e4-a1fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3798a77a-cec2-11e4-888b-705681abff85"], ["organization_id", "3799952c-cec2-11e4-a1fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:27.977296"], ["updated_at", "2015-03-20 05:30:27.977296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/3799952c-cec2-11e4-a1fb-705681abff85" for 127.0.0.1 at 2015-03-19 22:30:27 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"3799952c-cec2-11e4-a1fb-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:27.981938' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Uwqrh4IdVnXWGgm1qE-nwBwcJoecQsXT6uJI79WLs0k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:27.983320"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:27.984246"], ["id", "37991606-cec2-11e4-a3f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3799952c-cec2-11e4-a1fb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3798a77a-cec2-11e4-888b-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3798a77a-cec2-11e4-888b-705681abff85' LIMIT 1 [["organization_id", "3799952c-cec2-11e4-a1fb-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$z.jknxjKW.7ldOZLqEnRDOLyFbRFxawvLiokYriBsIfZFsw6qfsVy"], ["created_at", "2015-03-20 05:30:27.995644"], ["updated_at", "2015-03-20 05:30:27.995644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:27.997443"], ["user_id", "379ce358-cec2-11e4-a594-705681abff85"], ["created_at", "2015-03-20 05:30:27.998400"], ["updated_at", "2015-03-20 05:30:27.998400"], ["token", "cws5So93YtoZm5w1C2gf-BUdaepiEfBUx8JPKz-bz1I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.001921"], ["updated_at", "2015-03-20 05:30:28.001921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '379ce358-cec2-11e4-a594-705681abff85' AND "clubhouse_memberships"."organization_id" = '379dd7e0-cec2-11e4-9757-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "379ce358-cec2-11e4-a594-705681abff85"], ["organization_id", "379dd7e0-cec2-11e4-9757-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.006002"], ["updated_at", "2015-03-20 05:30:28.006002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 22:30:28 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$BTZ73RW/J4B.45tdO/mEAecxUFsSZkxeVmYUXdpVpUz1e9au2s5S."], ["created_at", "2015-03-20 05:30:28.016935"], ["updated_at", "2015-03-20 05:30:28.016935"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:28.019724"], ["user_id", "37a04048-cec2-11e4-a098-705681abff85"], ["created_at", "2015-03-20 05:30:28.020516"], ["updated_at", "2015-03-20 05:30:28.020516"], ["token", "ssd6XwRBHWYXxSh8SzU27A3hyBWAo60Lbxg-lLkxoZ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.024118"], ["updated_at", "2015-03-20 05:30:28.024118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37a04048-cec2-11e4-a098-705681abff85' AND "clubhouse_memberships"."organization_id" = '37a13a7a-cec2-11e4-860f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37a04048-cec2-11e4-a098-705681abff85"], ["organization_id", "37a13a7a-cec2-11e4-860f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.027508"], ["updated_at", "2015-03-20 05:30:28.027508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-15" for 127.0.0.1 at 2015-03-19 22:30:28 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-15", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:28.031870' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ssd6XwRBHWYXxSh8SzU27A3hyBWAo60Lbxg-lLkxoZ8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:28.033242"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:28.034180"], ["id", "37a0b456-cec2-11e4-aea1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-15"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37a04048-cec2-11e4-a098-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37a04048-cec2-11e4-a098-705681abff85' LIMIT 1 [["organization_id", "37a13a7a-cec2-11e4-860f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "37a13a7a-cec2-11e4-860f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$PeCDbolUYv9J1QDBLudH4OJRQkinBYn5gHR6KrHPYK4NUpdn7Gxf."], ["created_at", "2015-03-20 05:30:28.045267"], ["updated_at", "2015-03-20 05:30:28.045267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:28.047193"], ["user_id", "37a47636-cec2-11e4-b2a6-705681abff85"], ["created_at", "2015-03-20 05:30:28.048070"], ["updated_at", "2015-03-20 05:30:28.048070"], ["token", "NC5kimA7k7yI0VtRO74RM3Z3LvfDT-X-SHgB1STbEVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.051584"], ["updated_at", "2015-03-20 05:30:28.051584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37a47636-cec2-11e4-b2a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '37a5688e-cec2-11e4-94fb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37a47636-cec2-11e4-b2a6-705681abff85"], ["organization_id", "37a5688e-cec2-11e4-94fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.056891"], ["updated_at", "2015-03-20 05:30:28.056891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$4WKOdi9PTdtWzUzwBpv0YOEs0dfhuq4fLMzyIJGsnA0pvyOrty99e"], ["created_at", "2015-03-20 05:30:28.062228"], ["updated_at", "2015-03-20 05:30:28.062228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.065326"], ["updated_at", "2015-03-20 05:30:28.065326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37a709b4-cec2-11e4-87a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '37a781be-cec2-11e4-aaa5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37a709b4-cec2-11e4-87a4-705681abff85"], ["organization_id", "37a781be-cec2-11e4-aaa5-705681abff85"], ["created_at", "2015-03-20 05:30:28.069006"], ["updated_at", "2015-03-20 05:30:28.069006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:30:28 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$Bk0v/5QGrKyhKbgqpNu8lOqy7zXRcZnyoMPK4dh0IUjfu/9VyShjC"], ["created_at", "2015-03-20 05:30:28.079663"], ["updated_at", "2015-03-20 05:30:28.079663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:28.081241"], ["user_id", "37a9b4f2-cec2-11e4-9740-705681abff85"], ["created_at", "2015-03-20 05:30:28.082205"], ["updated_at", "2015-03-20 05:30:28.082205"], ["token", "mJcM_mcT4s8HNAYeEKaGRHhioujff1Owqfb2_hS5zZY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.085603"], ["updated_at", "2015-03-20 05:30:28.085603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37a9b4f2-cec2-11e4-9740-705681abff85' AND "clubhouse_memberships"."organization_id" = '37aa9958-cec2-11e4-b209-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37a9b4f2-cec2-11e4-9740-705681abff85"], ["organization_id", "37aa9958-cec2-11e4-b209-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.088945"], ["updated_at", "2015-03-20 05:30:28.088945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$bawfN8XkTDWZ3cffaSvQSe65rxUEztftdL7aubk.eI2bM47.b7iM."], ["created_at", "2015-03-20 05:30:28.093252"], ["updated_at", "2015-03-20 05:30:28.093252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.096384"], ["updated_at", "2015-03-20 05:30:28.096384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37abc616-cec2-11e4-91d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ac405a-cec2-11e4-8f74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37abc616-cec2-11e4-91d0-705681abff85"], ["organization_id", "37ac405a-cec2-11e4-8f74-705681abff85"], ["created_at", "2015-03-20 05:30:28.099573"], ["updated_at", "2015-03-20 05:30:28.099573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:30:28 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:28.104120' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mJcM_mcT4s8HNAYeEKaGRHhioujff1Owqfb2_hS5zZY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:28.105647"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:28.106619"], ["id", "37aa1f6e-cec2-11e4-bd88-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37a9b4f2-cec2-11e4-9740-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$krknHOAVCjCUyEAf8Yiw4u7vHuNRQ/rmxgMMhlj1fWOYiH2vQJPeq"], ["created_at", "2015-03-20 05:30:28.118322"], ["updated_at", "2015-03-20 05:30:28.118322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:28.119976"], ["user_id", "37af9a48-cec2-11e4-b29b-705681abff85"], ["created_at", "2015-03-20 05:30:28.120865"], ["updated_at", "2015-03-20 05:30:28.120865"], ["token", "Fr4_W3nZUaFT45DYDj7tUareIUes746A4zHWO5nV770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.124439"], ["updated_at", "2015-03-20 05:30:28.124439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37af9a48-cec2-11e4-b29b-705681abff85' AND "clubhouse_memberships"."organization_id" = '37b08868-cec2-11e4-b6aa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37af9a48-cec2-11e4-b29b-705681abff85"], ["organization_id", "37b08868-cec2-11e4-b6aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.127800"], ["updated_at", "2015-03-20 05:30:28.127800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 22:30:28 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$jwwq5p8erBW2.CAtHEPJm.FQPHH9z8knpCuVFpM4smPCxxjqcxT4S"], ["created_at", "2015-03-20 05:30:28.146576"], ["updated_at", "2015-03-20 05:30:28.146576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:28.148978"], ["user_id", "37b40538-cec2-11e4-809c-705681abff85"], ["created_at", "2015-03-20 05:30:28.149899"], ["updated_at", "2015-03-20 05:30:28.149899"], ["token", "VgYxuWtQBhPLiFzZIQ2WkbIwKuM8k1RxhTgr9pLeIBM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.153729"], ["updated_at", "2015-03-20 05:30:28.153729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37b40538-cec2-11e4-809c-705681abff85' AND "clubhouse_memberships"."organization_id" = '37b4ffd8-cec2-11e4-b32b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37b40538-cec2-11e4-809c-705681abff85"], ["organization_id", "37b4ffd8-cec2-11e4-b32b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.157108"], ["updated_at", "2015-03-20 05:30:28.157108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-21" for 127.0.0.1 at 2015-03-19 22:30:28 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-21", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:28.161599' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VgYxuWtQBhPLiFzZIQ2WkbIwKuM8k1RxhTgr9pLeIBM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:28.162967"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:28.163908"], ["id", "37b47b62-cec2-11e4-b18a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37b40538-cec2-11e4-809c-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37b40538-cec2-11e4-809c-705681abff85' LIMIT 1 [["organization_id", "37b4ffd8-cec2-11e4-b32b-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '37b4ffd8-cec2-11e4-b32b-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:30:28.170331"], ["id", "37b4ffd8-cec2-11e4-b32b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$XFDpRCVrLGkVCMJgI0W5HeON./q9hyINJ6LxS8QctLq/q3Ks2/hA2"], ["created_at", "2015-03-20 05:30:28.178613"], ["updated_at", "2015-03-20 05:30:28.178613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:28.180217"], ["user_id", "37b8cd5c-cec2-11e4-a874-705681abff85"], ["created_at", "2015-03-20 05:30:28.181373"], ["updated_at", "2015-03-20 05:30:28.181373"], ["token", "2nSVGGpNK-Q0htHC0b5BUiOXPqQgRlDiW5wKX0_0VJ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.185047"], ["updated_at", "2015-03-20 05:30:28.185047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37b8cd5c-cec2-11e4-a874-705681abff85' AND "clubhouse_memberships"."organization_id" = '37b9c66c-cec2-11e4-87d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37b8cd5c-cec2-11e4-a874-705681abff85"], ["organization_id", "37b9c66c-cec2-11e4-87d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.188363"], ["updated_at", "2015-03-20 05:30:28.188363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-22" for 127.0.0.1 at 2015-03-19 22:30:28 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-22", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:28.192924' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2nSVGGpNK-Q0htHC0b5BUiOXPqQgRlDiW5wKX0_0VJ8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:28.194564"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:28.196043"], ["id", "37b945a2-cec2-11e4-ad7f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-22"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37b8cd5c-cec2-11e4-a874-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37b8cd5c-cec2-11e4-a874-705681abff85' LIMIT 1 [["organization_id", "37b9c66c-cec2-11e4-87d4-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '37b9c66c-cec2-11e4-87d4-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$BteDedQnEnfh4CDx2wg0CeqXBaGi/xVmQ7mDjHac9FxVVclrHXq3S"], ["created_at", "2015-03-20 05:30:28.210700"], ["updated_at", "2015-03-20 05:30:28.210700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:28.212429"], ["user_id", "37bdb70e-cec2-11e4-a2f7-705681abff85"], ["created_at", "2015-03-20 05:30:28.213227"], ["updated_at", "2015-03-20 05:30:28.213227"], ["token", "dKkP83fCgzHB1ndG1-YHu-a35v3sYXXTsbO6JC3wz-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.216621"], ["updated_at", "2015-03-20 05:30:28.216621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37bdb70e-cec2-11e4-a2f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '37be989a-cec2-11e4-85b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37bdb70e-cec2-11e4-a2f7-705681abff85"], ["organization_id", "37be989a-cec2-11e4-85b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.219926"], ["updated_at", "2015-03-20 05:30:28.219926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 22:30:28 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$CnJ2iQpqTsZJyMv6pJyg7uQIv23KRK8CDKzM.xfuvhvYg7WGecET6"], ["created_at", "2015-03-20 05:30:28.230225"], ["updated_at", "2015-03-20 05:30:28.230225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:28.231784"], ["user_id", "37c0acd4-cec2-11e4-a044-705681abff85"], ["created_at", "2015-03-20 05:30:28.232562"], ["updated_at", "2015-03-20 05:30:28.232562"], ["token", "gJp2rZwEqgyDYtD4d5KhuCVUEerReHinjVSrH9Xax0o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.235855"], ["updated_at", "2015-03-20 05:30:28.235855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37c0acd4-cec2-11e4-a044-705681abff85' AND "clubhouse_memberships"."organization_id" = '37c18686-cec2-11e4-b660-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37c0acd4-cec2-11e4-a044-705681abff85"], ["organization_id", "37c18686-cec2-11e4-b660-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.239134"], ["updated_at", "2015-03-20 05:30:28.239134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/37c18686-cec2-11e4-b660-705681abff85" for 127.0.0.1 at 2015-03-19 22:30:28 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"37c18686-cec2-11e4-b660-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:28.243628' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gJp2rZwEqgyDYtD4d5KhuCVUEerReHinjVSrH9Xax0o"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:28.245465"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:28.246673"], ["id", "37c10e5e-cec2-11e4-8b95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "37c18686-cec2-11e4-b660-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37c0acd4-cec2-11e4-a044-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37c0acd4-cec2-11e4-a044-705681abff85' LIMIT 1 [["organization_id", "37c18686-cec2-11e4-b660-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "37c18686-cec2-11e4-b660-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.259055"], ["updated_at", "2015-03-20 05:30:28.259055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.284535"], ["updated_at", "2015-03-20 05:30:28.284535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.304184"], ["updated_at", "2015-03-20 05:30:28.304184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.311688"], ["updated_at", "2015-03-20 05:30:28.311688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "37cd1aa0-cec2-11e4-b1bc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.316528"], ["updated_at", "2015-03-20 05:30:28.316528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.334425"], ["updated_at", "2015-03-20 05:30:28.334425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '37d09266-cec2-11e4-8bfd-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "37d09266-cec2-11e4-8bfd-705681abff85"], ["created_at", "2015-03-20 05:30:28.337394"], ["updated_at", "2015-03-20 05:30:28.337394"], ["token", "hC0IvSEjTzl8MKePLti6MXxPvAGBi9GsxKWYpTZVHQI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37d09266-cec2-11e4-8bfd-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '37d09266-cec2-11e4-8bfd-705681abff85') LIMIT 1 Clubhouse::Invitation Load (1.7ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "37d09266-cec2-11e4-8bfd-705681abff86"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '37d09266-cec2-11e4-8bfd-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.373364"], ["updated_at", "2015-03-20 05:30:28.373364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '37d69436-cec2-11e4-8cd0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "37d69436-cec2-11e4-8cd0-705681abff85"], ["created_at", "2015-03-20 05:30:28.378339"], ["updated_at", "2015-03-20 05:30:28.378339"], ["token", "021nuFQhCsGAL5r7N0KzsXqlC5QjJ3NIa4vBGS8zhvw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$nrz.xeCtzO9dRQikWA8oZ.D8wCrbkk9/WUtJHw9nK3i85n04koi0W"], ["created_at", "2015-03-20 05:30:28.395275"], ["updated_at", "2015-03-20 05:30:28.395275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.398571"], ["updated_at", "2015-03-20 05:30:28.398571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37d9deb6-cec2-11e4-acde-705681abff85' AND "clubhouse_memberships"."organization_id" = '37da5aa8-cec2-11e4-b851-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37d9deb6-cec2-11e4-acde-705681abff85"], ["organization_id", "37da5aa8-cec2-11e4-b851-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.401872"], ["updated_at", "2015-03-20 05:30:28.401872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '37da5aa8-cec2-11e4-b851-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "37da5aa8-cec2-11e4-b851-705681abff85"], ["created_at", "2015-03-20 05:30:28.405889"], ["updated_at", "2015-03-20 05:30:28.405889"], ["token", "uDcJ0mPZsDwYHaHZwB6ErndGxXv1_4iztU3n7Tz03UU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37d9deb6-cec2-11e4-acde-705681abff85' LIMIT 1 [["organization_id", "37da5aa8-cec2-11e4-b851-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$BoY.Dd8YEWB9NHaTH.uxOO.hz8M5P1QaV/pL4Vgmey7e92N7eUxvK"], ["created_at", "2015-03-20 05:30:28.413801"], ["updated_at", "2015-03-20 05:30:28.413801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.417001"], ["updated_at", "2015-03-20 05:30:28.417001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37dcb0c8-cec2-11e4-a7cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '37dd2abc-cec2-11e4-b760-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37dcb0c8-cec2-11e4-a7cc-705681abff85"], ["organization_id", "37dd2abc-cec2-11e4-b760-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.420283"], ["updated_at", "2015-03-20 05:30:28.420283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '37dd2abc-cec2-11e4-b760-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "37dd2abc-cec2-11e4-b760-705681abff85"], ["created_at", "2015-03-20 05:30:28.423911"], ["updated_at", "2015-03-20 05:30:28.423911"], ["token", "b5ENWiVf1-vwuzUsUNruRyoIhm5eTFxqW8gxK6_0XMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37dcb0c8-cec2-11e4-a7cc-705681abff85' LIMIT 1 [["organization_id", "37dd2abc-cec2-11e4-b760-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$.gnTRvbuPvWm5hU0Pglrg.vRc1I0hGObk0Ge4Jh9X.kpzmv61KhCu"], ["created_at", "2015-03-20 05:30:28.431742"], ["updated_at", "2015-03-20 05:30:28.431742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.434958"], ["updated_at", "2015-03-20 05:30:28.434958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37df6dd6-cec2-11e4-9efe-705681abff85' AND "clubhouse_memberships"."organization_id" = '37dfe932-cec2-11e4-af9f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37df6dd6-cec2-11e4-9efe-705681abff85"], ["organization_id", "37dfe932-cec2-11e4-af9f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.438600"], ["updated_at", "2015-03-20 05:30:28.438600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '37dfe932-cec2-11e4-af9f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "37dfe932-cec2-11e4-af9f-705681abff85"], ["created_at", "2015-03-20 05:30:28.450332"], ["updated_at", "2015-03-20 05:30:28.450332"], ["token", "0ld8Yj-0m0zTYqezfWKRCr1UN1eYrfd2PLochj3uJoI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37df6dd6-cec2-11e4-9efe-705681abff85' LIMIT 1 [["organization_id", "37dfe932-cec2-11e4-af9f-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$wijWo73ISOBEPhtuo0pREeh3mS0VLgthiYGfZ2FtAqXDCarjyEODa"], ["created_at", "2015-03-20 05:30:28.459273"], ["updated_at", "2015-03-20 05:30:28.459273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.462635"], ["updated_at", "2015-03-20 05:30:28.462635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37e3a496-cec2-11e4-a2a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '37e4225e-cec2-11e4-bcb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37e3a496-cec2-11e4-a2a8-705681abff85"], ["organization_id", "37e4225e-cec2-11e4-bcb9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.465874"], ["updated_at", "2015-03-20 05:30:28.465874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '37e4225e-cec2-11e4-bcb9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "37e4225e-cec2-11e4-bcb9-705681abff85"], ["created_at", "2015-03-20 05:30:28.469293"], ["updated_at", "2015-03-20 05:30:28.469293"], ["token", "zVN2-K0i8HVT_3MJ9ZDPmGfivYH5BrBLEWkjx4E0xtg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37e3a496-cec2-11e4-a2a8-705681abff85' LIMIT 1 [["organization_id", "37e4225e-cec2-11e4-bcb9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$AQYQradqr1KTmmddACF..OFnmKqb7Xg1LBNsimY9Wak8SfbG1YiH."], ["created_at", "2015-03-20 05:30:28.476843"], ["updated_at", "2015-03-20 05:30:28.476843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.479995"], ["updated_at", "2015-03-20 05:30:28.479995"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37e64f2a-cec2-11e4-b41a-705681abff85' AND "clubhouse_memberships"."organization_id" = '37e6c6da-cec2-11e4-a93f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37e64f2a-cec2-11e4-b41a-705681abff85"], ["organization_id", "37e6c6da-cec2-11e4-a93f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.483344"], ["updated_at", "2015-03-20 05:30:28.483344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37e64f2a-cec2-11e4-b41a-705681abff85' LIMIT 1 [["organization_id", "37e6c6da-cec2-11e4-a93f-705681abff85"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$6fXXhdfeor6NUTs7B/rVd.RH9hCFawkrC5uculXbsWonbiOD4Mjb."], ["created_at", "2015-03-20 05:30:28.493598"], ["updated_at", "2015-03-20 05:30:28.493598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.496938"], ["updated_at", "2015-03-20 05:30:28.496938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37e8e230-cec2-11e4-a9f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '37e95d3c-cec2-11e4-9c53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37e8e230-cec2-11e4-a9f7-705681abff85"], ["organization_id", "37e95d3c-cec2-11e4-9c53-705681abff85"], ["created_at", "2015-03-20 05:30:28.500086"], ["updated_at", "2015-03-20 05:30:28.500086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '37e95d3c-cec2-11e4-9c53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "37e95d3c-cec2-11e4-9c53-705681abff85"], ["created_at", "2015-03-20 05:30:28.503464"], ["updated_at", "2015-03-20 05:30:28.503464"], ["token", "SfnISwyiEt_lseos9nPAXl0HpHaSzUG18JgzuCyFlV8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37e8e230-cec2-11e4-a9f7-705681abff85' LIMIT 1 [["organization_id", "37e95d3c-cec2-11e4-9c53-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$IEPjWlq1F6mmVVAIGAFkieF3xFAvGsJtOX8BR4ScZ4dPr3JgpTQxa"], ["created_at", "2015-03-20 05:30:28.510556"], ["updated_at", "2015-03-20 05:30:28.510556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.513645"], ["updated_at", "2015-03-20 05:30:28.513645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37eb734c-cec2-11e4-a7dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ebea2a-cec2-11e4-86b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37eb734c-cec2-11e4-a7dd-705681abff85"], ["organization_id", "37ebea2a-cec2-11e4-86b0-705681abff85"], ["created_at", "2015-03-20 05:30:28.516784"], ["updated_at", "2015-03-20 05:30:28.516784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '37ebea2a-cec2-11e4-86b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "37ebea2a-cec2-11e4-86b0-705681abff85"], ["created_at", "2015-03-20 05:30:28.520196"], ["updated_at", "2015-03-20 05:30:28.520196"], ["token", "Qg5U-lsE89Utzflp8-gDBAaWgT4023s55cG1bKO5Xa0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37eb734c-cec2-11e4-a7dd-705681abff85' LIMIT 1 [["organization_id", "37ebea2a-cec2-11e4-86b0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$6rwkvkBAtWetNz0vtNkmPOKdN0cwBBCHAPKMRU9J3rRymPB8W7qae"], ["created_at", "2015-03-20 05:30:28.527377"], ["updated_at", "2015-03-20 05:30:28.527377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.530490"], ["updated_at", "2015-03-20 05:30:28.530490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37ee047c-cec2-11e4-bbad-705681abff85' AND "clubhouse_memberships"."organization_id" = '37ee7c90-cec2-11e4-972e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37ee047c-cec2-11e4-bbad-705681abff85"], ["organization_id", "37ee7c90-cec2-11e4-972e-705681abff85"], ["created_at", "2015-03-20 05:30:28.533774"], ["updated_at", "2015-03-20 05:30:28.533774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '37ee7c90-cec2-11e4-972e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "37ee7c90-cec2-11e4-972e-705681abff85"], ["created_at", "2015-03-20 05:30:28.537247"], ["updated_at", "2015-03-20 05:30:28.537247"], ["token", "m-mrvHGK-KMclgd0FTQ9HvYPGqgDCkf5R1amyJYmU28"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37ee047c-cec2-11e4-bbad-705681abff85' LIMIT 1 [["organization_id", "37ee7c90-cec2-11e4-972e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$JcfO/U8Eu0cal0VKMC/K..0V1ep0ArjdL/co9mS8NXOHNHi9wqJ5C"], ["created_at", "2015-03-20 05:30:28.544931"], ["updated_at", "2015-03-20 05:30:28.544931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.548154"], ["updated_at", "2015-03-20 05:30:28.548154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37f0b262-cec2-11e4-ac4b-705681abff85' AND "clubhouse_memberships"."organization_id" = '37f12db4-cec2-11e4-b244-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37f0b262-cec2-11e4-ac4b-705681abff85"], ["organization_id", "37f12db4-cec2-11e4-b244-705681abff85"], ["created_at", "2015-03-20 05:30:28.551476"], ["updated_at", "2015-03-20 05:30:28.551476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '37f12db4-cec2-11e4-b244-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "37f12db4-cec2-11e4-b244-705681abff85"], ["created_at", "2015-03-20 05:30:28.554845"], ["updated_at", "2015-03-20 05:30:28.554845"], ["token", "0ixvQO05tFKfhvVNy4A-qz47xUgx889NMLTYcrosFkM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37f0b262-cec2-11e4-ac4b-705681abff85' LIMIT 1 [["organization_id", "37f12db4-cec2-11e4-b244-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$wjZNrHLTrtkmIXGOHXUjB...01J4D20sCAqiIrTeVCM3WnMGkFDWO"], ["created_at", "2015-03-20 05:30:28.562963"], ["updated_at", "2015-03-20 05:30:28.562963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.566153"], ["updated_at", "2015-03-20 05:30:28.566153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37f37434-cec2-11e4-b533-705681abff85' AND "clubhouse_memberships"."organization_id" = '37f3ecca-cec2-11e4-b070-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37f37434-cec2-11e4-b533-705681abff85"], ["organization_id", "37f3ecca-cec2-11e4-b070-705681abff85"], ["created_at", "2015-03-20 05:30:28.569272"], ["updated_at", "2015-03-20 05:30:28.569272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37f37434-cec2-11e4-b533-705681abff85' LIMIT 1 [["organization_id", "37f3ecca-cec2-11e4-b070-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$NUEXV79hP/ff6ocsfT6YjOUiSeuaAUUj5o1.YG43o6kvh6vRqVRP2"], ["created_at", "2015-03-20 05:30:28.576453"], ["updated_at", "2015-03-20 05:30:28.576453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.580267"], ["updated_at", "2015-03-20 05:30:28.580267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '37f617ac-cec2-11e4-b584-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "37f617ac-cec2-11e4-b584-705681abff85"], ["created_at", "2015-03-20 05:30:28.583774"], ["updated_at", "2015-03-20 05:30:28.583774"], ["token", "KSAV_M9EOseHas9lbxNT3gWON8c4I0SbKCesmJsUgUs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37f587ec-cec2-11e4-be21-705681abff85' LIMIT 1 [["organization_id", "37f617ac-cec2-11e4-b584-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$KWmc4qHiSJRltL0sgbuH9eC0/2eZgTU9PhOqki.SoAU/667CpiMG2"], ["created_at", "2015-03-20 05:30:28.591361"], ["updated_at", "2015-03-20 05:30:28.591361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.594744"], ["updated_at", "2015-03-20 05:30:28.594744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '37f84a2c-cec2-11e4-8500-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "37f84a2c-cec2-11e4-8500-705681abff85"], ["created_at", "2015-03-20 05:30:28.598039"], ["updated_at", "2015-03-20 05:30:28.598039"], ["token", "lwjdRmvE5XVFV-bLQPfBrej320sgTa6e5hLvwmxDL_k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37f7ce3a-cec2-11e4-aed4-705681abff85' LIMIT 1 [["organization_id", "37f84a2c-cec2-11e4-8500-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$FEgNkvzX7hEPkiW78e23sOySN.9/OTNeu1eBGw/4wC65w8ZDotSiK"], ["created_at", "2015-03-20 05:30:28.605040"], ["updated_at", "2015-03-20 05:30:28.605040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.608135"], ["updated_at", "2015-03-20 05:30:28.608135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '37fa5628-cec2-11e4-b918-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "37fa5628-cec2-11e4-b918-705681abff85"], ["created_at", "2015-03-20 05:30:28.611515"], ["updated_at", "2015-03-20 05:30:28.611515"], ["token", "IoDhOTjX7OqM1u-Dy2IwR5x0TIgTR2Wcr0Ry-lDkPRI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37f9dd42-cec2-11e4-a12e-705681abff85' LIMIT 1 [["organization_id", "37fa5628-cec2-11e4-b918-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$fsRxjDBDXi3A2jrULi3JSuHuHvFLmO.VDhfuEhVESmTVZ36aduBJi"], ["created_at", "2015-03-20 05:30:28.618840"], ["updated_at", "2015-03-20 05:30:28.618840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.621923"], ["updated_at", "2015-03-20 05:30:28.621923"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '37fc78ea-cec2-11e4-88a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "37fc78ea-cec2-11e4-88a7-705681abff85"], ["created_at", "2015-03-20 05:30:28.626728"], ["updated_at", "2015-03-20 05:30:28.626728"], ["token", "ofe4dIm_sw7qvlRRmx8Ow5C1VPF2DGqtd3xkt12GXI8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37fbf956-cec2-11e4-aa0e-705681abff85' LIMIT 1 [["organization_id", "37fc78ea-cec2-11e4-88a7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$UwsKpS/rjGEOkVjLkeCr2ucXbytqiadIJRnvB8q0OyE4ExHGEOKBO"], ["created_at", "2015-03-20 05:30:28.634309"], ["updated_at", "2015-03-20 05:30:28.634309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.637476"], ["updated_at", "2015-03-20 05:30:28.637476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '37fe54f8-cec2-11e4-8cc2-705681abff85' LIMIT 1 [["organization_id", "37fecfbe-cec2-11e4-b74e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$6TRFNcyJeMyq7IeQNPMAmOIiBxuifQcNZBzMrTs4Cch9JFKg3Xn92"], ["created_at", "2015-03-20 05:30:28.644941"], ["updated_at", "2015-03-20 05:30:28.644941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$XLq8KLxUCa6KJ7LYz5mTh.RuvojhHOc5TQkCAUJcuRL2Hm1BbfChC"], ["created_at", "2015-03-20 05:30:28.650965"], ["updated_at", "2015-03-20 05:30:28.650965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.654033"], ["updated_at", "2015-03-20 05:30:28.654033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3800dfa2-cec2-11e4-a18e-705681abff85' AND "clubhouse_memberships"."organization_id" = '380155d6-cec2-11e4-ae0a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3800dfa2-cec2-11e4-a18e-705681abff85"], ["organization_id", "380155d6-cec2-11e4-ae0a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.657311"], ["updated_at", "2015-03-20 05:30:28.657311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3800dfa2-cec2-11e4-a18e-705681abff85' LIMIT 1 [["organization_id", "380155d6-cec2-11e4-ae0a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$9ZNiQhSzIHrZoAtZULnmk.OpF7OUlxa5hr47WppI.SUOoIdeKsMwG"], ["created_at", "2015-03-20 05:30:28.664086"], ["updated_at", "2015-03-20 05:30:28.664086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.667739"], ["updated_at", "2015-03-20 05:30:28.667739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3802e31a-cec2-11e4-a1e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '38036f88-cec2-11e4-93f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3802e31a-cec2-11e4-a1e4-705681abff85"], ["organization_id", "38036f88-cec2-11e4-93f4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.671113"], ["updated_at", "2015-03-20 05:30:28.671113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3802e31a-cec2-11e4-a1e4-705681abff85' LIMIT 1 [["organization_id", "38036f88-cec2-11e4-93f4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$NuX/6pTOFGWB2YyYx.JKAuBpletuOsPHS2bkn08Rj.23lseVOWWSu"], ["created_at", "2015-03-20 05:30:28.678751"], ["updated_at", "2015-03-20 05:30:28.678751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.681924"], ["updated_at", "2015-03-20 05:30:28.681924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38051d74-cec2-11e4-9db8-705681abff85' AND "clubhouse_memberships"."organization_id" = '380598c6-cec2-11e4-8679-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38051d74-cec2-11e4-9db8-705681abff85"], ["organization_id", "380598c6-cec2-11e4-8679-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.685184"], ["updated_at", "2015-03-20 05:30:28.685184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$.AnM77vM5O.QuCPhVktTQuHYvYnzaF.dNxbMxjXKk/YL/06obZK4u"], ["created_at", "2015-03-20 05:30:28.690859"], ["updated_at", "2015-03-20 05:30:28.690859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.694132"], ["updated_at", "2015-03-20 05:30:28.694132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3806f8d8-cec2-11e4-9116-705681abff85' AND "clubhouse_memberships"."organization_id" = '3807743e-cec2-11e4-8b3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3806f8d8-cec2-11e4-9116-705681abff85"], ["organization_id", "3807743e-cec2-11e4-8b3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.697384"], ["updated_at", "2015-03-20 05:30:28.697384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3806f8d8-cec2-11e4-9116-705681abff85' LIMIT 1 [["organization_id", "3807743e-cec2-11e4-8b3e-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$tescjWzCLPz6SmniTrosk.Lq9W/CYdjuOt0x.vRJ6DzR.BsZribrS"], ["created_at", "2015-03-20 05:30:28.705153"], ["updated_at", "2015-03-20 05:30:28.705153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.708914"], ["updated_at", "2015-03-20 05:30:28.708914"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3809289c-cec2-11e4-883f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3809c50e-cec2-11e4-b96c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3809289c-cec2-11e4-883f-705681abff85"], ["organization_id", "3809c50e-cec2-11e4-b96c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.714251"], ["updated_at", "2015-03-20 05:30:28.714251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$FY44u.k8/li5kZcY.yhx7.MIdDyjoaX0.uVnuTenOFym7xoSTfseG"], ["created_at", "2015-03-20 05:30:28.720322"], ["updated_at", "2015-03-20 05:30:28.720322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.723583"], ["updated_at", "2015-03-20 05:30:28.723583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '380b7462-cec2-11e4-b44a-705681abff85' AND "clubhouse_memberships"."organization_id" = '380bf540-cec2-11e4-8047-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "380b7462-cec2-11e4-b44a-705681abff85"], ["organization_id", "380bf540-cec2-11e4-8047-705681abff85"], ["created_at", "2015-03-20 05:30:28.726819"], ["updated_at", "2015-03-20 05:30:28.726819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '380b7462-cec2-11e4-b44a-705681abff85' LIMIT 1 [["organization_id", "380bf540-cec2-11e4-8047-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$xpRbtP.5WesKvHUIy0nhwuuokbhi1lTwYBCbw282rk369CQJrzcE."], ["created_at", "2015-03-20 05:30:28.733560"], ["updated_at", "2015-03-20 05:30:28.733560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.736713"], ["updated_at", "2015-03-20 05:30:28.736713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '380d7b40-cec2-11e4-991e-705681abff85' AND "clubhouse_memberships"."organization_id" = '380df3f4-cec2-11e4-a3b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "380d7b40-cec2-11e4-991e-705681abff85"], ["organization_id", "380df3f4-cec2-11e4-a3b7-705681abff85"], ["created_at", "2015-03-20 05:30:28.740158"], ["updated_at", "2015-03-20 05:30:28.740158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '380d7b40-cec2-11e4-991e-705681abff85' LIMIT 1 [["organization_id", "380df3f4-cec2-11e4-a3b7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$ZHTNiDfdLg6u3oJEUO1bEObxDlYiCyepXB3lykengFm2DA99kmiKm"], ["created_at", "2015-03-20 05:30:28.747509"], ["updated_at", "2015-03-20 05:30:28.747509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.750732"], ["updated_at", "2015-03-20 05:30:28.750732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '380f9d62-cec2-11e4-9d03-705681abff85' AND "clubhouse_memberships"."organization_id" = '38101d32-cec2-11e4-b8ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "380f9d62-cec2-11e4-9d03-705681abff85"], ["organization_id", "38101d32-cec2-11e4-b8ff-705681abff85"], ["created_at", "2015-03-20 05:30:28.754572"], ["updated_at", "2015-03-20 05:30:28.754572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$iwCnTwEkads6wgmagXslCuhNMiNqvSypHyESry2Vt1zuA1njhI88G"], ["created_at", "2015-03-20 05:30:28.760388"], ["updated_at", "2015-03-20 05:30:28.760388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.769359"], ["updated_at", "2015-03-20 05:30:28.769359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '381269e8-cec2-11e4-8f61-705681abff85' AND "clubhouse_memberships"."organization_id" = '3812f0e8-cec2-11e4-9402-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "381269e8-cec2-11e4-8f61-705681abff85"], ["organization_id", "3812f0e8-cec2-11e4-9402-705681abff85"], ["created_at", "2015-03-20 05:30:28.772655"], ["updated_at", "2015-03-20 05:30:28.772655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '381269e8-cec2-11e4-8f61-705681abff85' LIMIT 1 [["organization_id", "3812f0e8-cec2-11e4-9402-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$zzhTekqmrDUc5e51TteQTu3B96OMgHa.t6HnS/PykivOUadYGc1Zu"], ["created_at", "2015-03-20 05:30:28.780342"], ["updated_at", "2015-03-20 05:30:28.780342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.783435"], ["updated_at", "2015-03-20 05:30:28.783435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38149e16-cec2-11e4-a7e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '38151422-cec2-11e4-bc34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38149e16-cec2-11e4-a7e3-705681abff85"], ["organization_id", "38151422-cec2-11e4-bc34-705681abff85"], ["created_at", "2015-03-20 05:30:28.786519"], ["updated_at", "2015-03-20 05:30:28.786519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$oJcMbkdSi9825aQWUQjmN.MozS0203VUnYehF3Dd.YCjP9Q1SkqbS"], ["created_at", "2015-03-20 05:30:28.792834"], ["updated_at", "2015-03-20 05:30:28.792834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.796355"], ["updated_at", "2015-03-20 05:30:28.796355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3816902c-cec2-11e4-a654-705681abff85' LIMIT 1 [["organization_id", "38170cd2-cec2-11e4-8941-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$SiAmQ08hjtLldT6vIpLPuuAKUuyN3nXgW2PJqXBNrdes2Utji.06G"], ["created_at", "2015-03-20 05:30:28.802931"], ["updated_at", "2015-03-20 05:30:28.802931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.806262"], ["updated_at", "2015-03-20 05:30:28.806262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3818105a-cec2-11e4-bcc3-705681abff85' LIMIT 1 [["organization_id", "381895ca-cec2-11e4-8af1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$EfQt/6EO0qsgx/5V223kyO2jNOMJeXGWFZPsOB0Hy/6v8ziqz6aBu"], ["created_at", "2015-03-20 05:30:28.813676"], ["updated_at", "2015-03-20 05:30:28.813676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.816845"], ["updated_at", "2015-03-20 05:30:28.816845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$v46I.5OMOTCoI9FokSS1/u5FCLUGnnq28CJ0NDuwn4jtyTCCrTDH2"], ["created_at", "2015-03-20 05:30:28.823069"], ["updated_at", "2015-03-20 05:30:28.823069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.826515"], ["updated_at", "2015-03-20 05:30:28.826515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '381b22c2-cec2-11e4-b220-705681abff85' LIMIT 1 [["organization_id", "381badd2-cec2-11e4-9cfb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$kNSNtW4vhhMkKuEHatPcTOa6VDNSwEWK/LPz1K0x5GImU518Pmvuq"], ["created_at", "2015-03-20 05:30:28.833758"], ["updated_at", "2015-03-20 05:30:28.833758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.837390"], ["updated_at", "2015-03-20 05:30:28.837390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$pQgMv/4Ct0pMGdu2jYlCPOx4wGPjshvGSybKeYqHRyQwaBdxcsYPe"], ["created_at", "2015-03-20 05:30:28.854146"], ["updated_at", "2015-03-20 05:30:28.854146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.858054"], ["updated_at", "2015-03-20 05:30:28.858054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '381fe168-cec2-11e4-a811-705681abff85' AND "clubhouse_memberships"."organization_id" = '38207a06-cec2-11e4-985d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "381fe168-cec2-11e4-a811-705681abff85"], ["organization_id", "38207a06-cec2-11e4-985d-705681abff85"], ["created_at", "2015-03-20 05:30:28.861455"], ["updated_at", "2015-03-20 05:30:28.861455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "381fe168-cec2-11e4-a811-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38207a06-cec2-11e4-985d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '381fe168-cec2-11e4-a811-705681abff85' AND "clubhouse_memberships"."organization_id" = '38207a06-cec2-11e4-985d-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38207a06-cec2-11e4-985d-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '381fe168-cec2-11e4-a811-705681abff85' AND "clubhouse_memberships"."organization_id" = '38207a06-cec2-11e4-985d-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$MIIqDQyE.c4cOQwXHk.bCOqP1Yf6r.C784XBEf/kFw5xKymuMQJD."], ["created_at", "2015-03-20 05:30:28.877231"], ["updated_at", "2015-03-20 05:30:28.877231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.881006"], ["updated_at", "2015-03-20 05:30:28.881006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38236f18-cec2-11e4-9f02-705681abff85' AND "clubhouse_memberships"."organization_id" = '3823f988-cec2-11e4-847b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38236f18-cec2-11e4-9f02-705681abff85"], ["organization_id", "3823f988-cec2-11e4-847b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.884283"], ["updated_at", "2015-03-20 05:30:28.884283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '38236f18-cec2-11e4-9f02-705681abff85' LIMIT 1 [["organization_id", "3823f988-cec2-11e4-847b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$Gljs4t4T5jLxTr425.6HdOpPluwBQLTA0zzwv4zZw9GbmYYjcCT7W"], ["created_at", "2015-03-20 05:30:28.891557"], ["updated_at", "2015-03-20 05:30:28.891557"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.895746"], ["updated_at", "2015-03-20 05:30:28.895746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38259acc-cec2-11e4-ab1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '38263978-cec2-11e4-9ea9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38259acc-cec2-11e4-ab1c-705681abff85"], ["organization_id", "38263978-cec2-11e4-9ea9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.899148"], ["updated_at", "2015-03-20 05:30:28.899148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$anf0inDXhd/5pPo6p9xRwe4HH/NHZ1NjqH9s5Zo8/ZpQ9PfmwSbUi"], ["created_at", "2015-03-20 05:30:28.904755"], ["updated_at", "2015-03-20 05:30:28.904755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.908052"], ["updated_at", "2015-03-20 05:30:28.908052"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38279a48-cec2-11e4-984e-705681abff85' AND "clubhouse_memberships"."organization_id" = '38281932-cec2-11e4-8001-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38279a48-cec2-11e4-984e-705681abff85"], ["organization_id", "38281932-cec2-11e4-8001-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.911504"], ["updated_at", "2015-03-20 05:30:28.911504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '38279a48-cec2-11e4-984e-705681abff85' LIMIT 1 [["organization_id", "38281932-cec2-11e4-8001-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$2Csh3JhDzBcoXNnPK9kNqulg8HWIkaWwACdab0miZnvHH33q7fh6m"], ["created_at", "2015-03-20 05:30:28.918462"], ["updated_at", "2015-03-20 05:30:28.918462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.921689"], ["updated_at", "2015-03-20 05:30:28.921689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3829b134-cec2-11e4-b493-705681abff85' AND "clubhouse_memberships"."organization_id" = '382a3d5c-cec2-11e4-9026-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3829b134-cec2-11e4-b493-705681abff85"], ["organization_id", "382a3d5c-cec2-11e4-9026-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.926003"], ["updated_at", "2015-03-20 05:30:28.926003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3829b134-cec2-11e4-b493-705681abff85' LIMIT 1 [["organization_id", "382a3d5c-cec2-11e4-9026-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$61nrP8p14EgM9zwMUV7TOebtUTJ5AevRGwu5/sy6t0VdwWmEkqIfi"], ["created_at", "2015-03-20 05:30:28.933305"], ["updated_at", "2015-03-20 05:30:28.933305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.936347"], ["updated_at", "2015-03-20 05:30:28.936347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '382bf46c-cec2-11e4-96ac-705681abff85' AND "clubhouse_memberships"."organization_id" = '382c6974-cec2-11e4-ae3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "382bf46c-cec2-11e4-96ac-705681abff85"], ["organization_id", "382c6974-cec2-11e4-ae3d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.939565"], ["updated_at", "2015-03-20 05:30:28.939565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '382bf46c-cec2-11e4-96ac-705681abff85' LIMIT 1 [["organization_id", "382c6974-cec2-11e4-ae3d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$SKXe3hnZHo535fRhwrjW7OzOy5FADUcomknhHrY1sNbb4PR8Yx2mC"], ["created_at", "2015-03-20 05:30:28.947007"], ["updated_at", "2015-03-20 05:30:28.947007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.950128"], ["updated_at", "2015-03-20 05:30:28.950128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '382e0d56-cec2-11e4-96e5-705681abff85' AND "clubhouse_memberships"."organization_id" = '382e84a2-cec2-11e4-89c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "382e0d56-cec2-11e4-96e5-705681abff85"], ["organization_id", "382e84a2-cec2-11e4-89c8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.953333"], ["updated_at", "2015-03-20 05:30:28.953333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$DCRwoJffFLgXw3bFru3tl.NCcRO5jYFkpx8SMeKSNzDzgONoTQSE6"], ["created_at", "2015-03-20 05:30:28.958162"], ["updated_at", "2015-03-20 05:30:28.958162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '382fc13c-cec2-11e4-bc1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '382e84a2-cec2-11e4-89c8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "382fc13c-cec2-11e4-bc1a-705681abff85"], ["organization_id", "382e84a2-cec2-11e4-89c8-705681abff85"], ["created_at", "2015-03-20 05:30:28.961875"], ["updated_at", "2015-03-20 05:30:28.961875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$fo8IOF.6l2wz0eUuo6mCeeW8RZvGL4iby04rIzcQdEB3K9fhcekVu"], ["created_at", "2015-03-20 05:30:28.968062"], ["updated_at", "2015-03-20 05:30:28.968062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.971180"], ["updated_at", "2015-03-20 05:30:28.971180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38314520-cec2-11e4-8b3a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3831b99c-cec2-11e4-ad1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38314520-cec2-11e4-8b3a-705681abff85"], ["organization_id", "3831b99c-cec2-11e4-ad1c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.974490"], ["updated_at", "2015-03-20 05:30:28.974490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$9vXPNcDFG4mPyNURuCYTLOkAV9TT2hSQD4UVkNaPcYFwadoqw36jC"], ["created_at", "2015-03-20 05:30:28.979338"], ["updated_at", "2015-03-20 05:30:28.979338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3832fa78-cec2-11e4-b734-705681abff85' AND "clubhouse_memberships"."organization_id" = '3831b99c-cec2-11e4-ad1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3832fa78-cec2-11e4-b734-705681abff85"], ["organization_id", "3831b99c-cec2-11e4-ad1c-705681abff85"], ["created_at", "2015-03-20 05:30:28.982649"], ["updated_at", "2015-03-20 05:30:28.982649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '38314520-cec2-11e4-8b3a-705681abff85' LIMIT 1 [["organization_id", "3831b99c-cec2-11e4-ad1c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$pWF0yJd1pWsrzjE7fTLxb.0KZGeKYLyweRO0QgK16efhs8Z2sMUXS"], ["created_at", "2015-03-20 05:30:28.989455"], ["updated_at", "2015-03-20 05:30:28.989455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:28.992577"], ["updated_at", "2015-03-20 05:30:28.992577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38348708-cec2-11e4-9d28-705681abff85' AND "clubhouse_memberships"."organization_id" = '3834ff08-cec2-11e4-a528-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38348708-cec2-11e4-9d28-705681abff85"], ["organization_id", "3834ff08-cec2-11e4-a528-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:28.996110"], ["updated_at", "2015-03-20 05:30:28.996110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$iiCyyH9vt7PMdMx6WR7.FuntsRUPpIWy142FzKiQgXWtvjc1Vsfxi"], ["created_at", "2015-03-20 05:30:29.001070"], ["updated_at", "2015-03-20 05:30:29.001070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38364f70-cec2-11e4-a1d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '3834ff08-cec2-11e4-a528-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38364f70-cec2-11e4-a1d0-705681abff85"], ["organization_id", "3834ff08-cec2-11e4-a528-705681abff85"], ["created_at", "2015-03-20 05:30:29.004634"], ["updated_at", "2015-03-20 05:30:29.004634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38348708-cec2-11e4-9d28-705681abff85' LIMIT 1 [["organization_id", "3834ff08-cec2-11e4-a528-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$u/QufxsuU.DOWnj.xglWSeVJiBor3Wq2JXipBAiYgYm1K/4bbeZ.O"], ["created_at", "2015-03-20 05:30:29.011746"], ["updated_at", "2015-03-20 05:30:29.011746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.015018"], ["updated_at", "2015-03-20 05:30:29.015018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3837ee98-cec2-11e4-af62-705681abff85' AND "clubhouse_memberships"."organization_id" = '38386bac-cec2-11e4-9e6b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3837ee98-cec2-11e4-af62-705681abff85"], ["organization_id", "38386bac-cec2-11e4-9e6b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.018243"], ["updated_at", "2015-03-20 05:30:29.018243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$SSKgnDGgfT5MMdzjJgqki.GfQWZfYXpyZnmIM94tMxQxh5M2Gv0kC"], ["created_at", "2015-03-20 05:30:29.023818"], ["updated_at", "2015-03-20 05:30:29.023818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3839d294-cec2-11e4-82e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '38386bac-cec2-11e4-9e6b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3839d294-cec2-11e4-82e3-705681abff85"], ["organization_id", "38386bac-cec2-11e4-9e6b-705681abff85"], ["created_at", "2015-03-20 05:30:29.028102"], ["updated_at", "2015-03-20 05:30:29.028102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3837ee98-cec2-11e4-af62-705681abff85' LIMIT 1 [["organization_id", "38386bac-cec2-11e4-9e6b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$jlr25lAiT.mqdXIMtQn77.TBeVr.acBuDai3TeVnv02MhVbKwPAQC"], ["created_at", "2015-03-20 05:30:29.035272"], ["updated_at", "2015-03-20 05:30:29.035272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.038356"], ["updated_at", "2015-03-20 05:30:29.038356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '383b8486-cec2-11e4-8301-705681abff85' AND "clubhouse_memberships"."organization_id" = '383bfdda-cec2-11e4-96e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "383b8486-cec2-11e4-8301-705681abff85"], ["organization_id", "383bfdda-cec2-11e4-96e5-705681abff85"], ["created_at", "2015-03-20 05:30:29.041702"], ["updated_at", "2015-03-20 05:30:29.041702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$AJjPVjCBfbSRVt8.JFtZuOv8CisMj75ysBIWGNC6OBDFUo7SsGQOC"], ["created_at", "2015-03-20 05:30:29.048026"], ["updated_at", "2015-03-20 05:30:29.048026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.051397"], ["updated_at", "2015-03-20 05:30:29.051397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '383d7714-cec2-11e4-b54b-705681abff85' AND "clubhouse_memberships"."organization_id" = '383df964-cec2-11e4-a592-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "383d7714-cec2-11e4-b54b-705681abff85"], ["organization_id", "383df964-cec2-11e4-a592-705681abff85"], ["created_at", "2015-03-20 05:30:29.054705"], ["updated_at", "2015-03-20 05:30:29.054705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '383d7714-cec2-11e4-b54b-705681abff85' LIMIT 1 [["organization_id", "383df964-cec2-11e4-a592-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$kOztyIJuO6q2dBJq5Xf.Se0qvHpQVo4wk84TzN.L0a19YapdoYQ06"], ["created_at", "2015-03-20 05:30:29.061738"], ["updated_at", "2015-03-20 05:30:29.061738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.065057"], ["updated_at", "2015-03-20 05:30:29.065057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '383f8f90-cec2-11e4-b45b-705681abff85' AND "clubhouse_memberships"."organization_id" = '38400e52-cec2-11e4-b742-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "383f8f90-cec2-11e4-b45b-705681abff85"], ["organization_id", "38400e52-cec2-11e4-b742-705681abff85"], ["created_at", "2015-03-20 05:30:29.068274"], ["updated_at", "2015-03-20 05:30:29.068274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '383f8f90-cec2-11e4-b45b-705681abff85' LIMIT 1 [["organization_id", "38400e52-cec2-11e4-b742-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$6Xec4GFBvs.sCvqtNaYrVOoI.Llrf2RMJr3gtuztvwTWplxeZHG.K"], ["created_at", "2015-03-20 05:30:29.084061"], ["updated_at", "2015-03-20 05:30:29.084061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.087263"], ["updated_at", "2015-03-20 05:30:29.087263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3842f77a-cec2-11e4-bb52-705681abff85' AND "clubhouse_memberships"."organization_id" = '38437128-cec2-11e4-bbc6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3842f77a-cec2-11e4-bb52-705681abff85"], ["organization_id", "38437128-cec2-11e4-bbc6-705681abff85"], ["created_at", "2015-03-20 05:30:29.090733"], ["updated_at", "2015-03-20 05:30:29.090733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3842f77a-cec2-11e4-bb52-705681abff85' LIMIT 1 [["organization_id", "38437128-cec2-11e4-bbc6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$zE4ZE8E2chHhRH/uENa3ROaMhF.Lv7MYMC3HVmTjF5ag0pYnYEBSO"], ["created_at", "2015-03-20 05:30:29.097964"], ["updated_at", "2015-03-20 05:30:29.097964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.101042"], ["updated_at", "2015-03-20 05:30:29.101042"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '384514c4-cec2-11e4-824e-705681abff85' AND "clubhouse_memberships"."organization_id" = '38458ada-cec2-11e4-a17a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "384514c4-cec2-11e4-824e-705681abff85"], ["organization_id", "38458ada-cec2-11e4-a17a-705681abff85"], ["created_at", "2015-03-20 05:30:29.104959"], ["updated_at", "2015-03-20 05:30:29.104959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '384514c4-cec2-11e4-824e-705681abff85' LIMIT 1 [["organization_id", "38458ada-cec2-11e4-a17a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$iYAdyMPOLoDDYZzjGes/aeg2FVSlXk2PVBAj5lw0be2Az8Cu8MD7y"], ["created_at", "2015-03-20 05:30:29.111943"], ["updated_at", "2015-03-20 05:30:29.111943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$06BzEEV7ndyYWq9uKX6QWuLM3XEvbr3kEZWsU1FO.MyHXTrb8k8Hu"], ["created_at", "2015-03-20 05:30:29.116189"], ["updated_at", "2015-03-20 05:30:29.116189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.119228"], ["updated_at", "2015-03-20 05:30:29.119228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3847dbe6-cec2-11e4-b1fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '38485116-cec2-11e4-a6eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3847dbe6-cec2-11e4-b1fa-705681abff85"], ["organization_id", "38485116-cec2-11e4-a6eb-705681abff85"], ["created_at", "2015-03-20 05:30:29.122369"], ["updated_at", "2015-03-20 05:30:29.122369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$BFcZoVMJYxyy7wT3inY9ZuTf8rGEq09UPZkEqIex9doHERsnjLXO2"], ["created_at", "2015-03-20 05:30:29.128531"], ["updated_at", "2015-03-20 05:30:29.128531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$v/l2U8/fnQqvnQFyq8EbUe.umKjkNfHkG31689rnH0r8jk5KyZULS"], ["created_at", "2015-03-20 05:30:29.133257"], ["updated_at", "2015-03-20 05:30:29.133257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.136358"], ["updated_at", "2015-03-20 05:30:29.136358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '384a78ec-cec2-11e4-9879-705681abff85' AND "clubhouse_memberships"."organization_id" = '384aedb8-cec2-11e4-b79a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "384a78ec-cec2-11e4-9879-705681abff85"], ["organization_id", "384aedb8-cec2-11e4-b79a-705681abff85"], ["created_at", "2015-03-20 05:30:29.139505"], ["updated_at", "2015-03-20 05:30:29.139505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3849c7c6-cec2-11e4-b5cb-705681abff85' LIMIT 1 [["organization_id", "384aedb8-cec2-11e4-b79a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$bEO2MLx6SlW7avVqDWwxN.2ZXQSf5mHOYITFPTXxVILx19ej73M.q"], ["created_at", "2015-03-20 05:30:29.146336"], ["updated_at", "2015-03-20 05:30:29.146336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$VXB4JVF/zXQVAzViBB272.TGfBl1uWnOeugU/FLF8cVh8I9A99YoW"], ["created_at", "2015-03-20 05:30:29.150500"], ["updated_at", "2015-03-20 05:30:29.150500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.153519"], ["updated_at", "2015-03-20 05:30:29.153519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '384d16f6-cec2-11e4-8912-705681abff85' AND "clubhouse_memberships"."organization_id" = '384d8c80-cec2-11e4-936c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "384d16f6-cec2-11e4-8912-705681abff85"], ["organization_id", "384d8c80-cec2-11e4-936c-705681abff85"], ["created_at", "2015-03-20 05:30:29.157309"], ["updated_at", "2015-03-20 05:30:29.157309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '384c7886-cec2-11e4-8cc3-705681abff85' LIMIT 1 [["organization_id", "384d8c80-cec2-11e4-936c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$MXa3Pm.aEsG.DldBhgYjAOeF1q3mCVu9vkpeGX133fu.SISpSD9ae"], ["created_at", "2015-03-20 05:30:29.164559"], ["updated_at", "2015-03-20 05:30:29.164559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$CwpC5KrTx0oHpZfLJF5tbOnDQ2q7tu8iJJJ2jL.xEHMDS/nSAY1Yq"], ["created_at", "2015-03-20 05:30:29.170045"], ["updated_at", "2015-03-20 05:30:29.170045"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.174184"], ["updated_at", "2015-03-20 05:30:29.174184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '385023dc-cec2-11e4-a107-705681abff85' AND "clubhouse_memberships"."organization_id" = '3850b54a-cec2-11e4-8a74-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "385023dc-cec2-11e4-a107-705681abff85"], ["organization_id", "3850b54a-cec2-11e4-8a74-705681abff85"], ["created_at", "2015-03-20 05:30:29.177547"], ["updated_at", "2015-03-20 05:30:29.177547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '384f3daa-cec2-11e4-8f13-705681abff85' LIMIT 1 [["organization_id", "3850b54a-cec2-11e4-8a74-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$8aj9Ms7Ad0/o4Ewb1esRHeU8/mpkY3zoRemcPOFKGaTxqWiC16VUC"], ["created_at", "2015-03-20 05:30:29.185111"], ["updated_at", "2015-03-20 05:30:29.185111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.188194"], ["updated_at", "2015-03-20 05:30:29.188194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '385260d4-cec2-11e4-91fa-705681abff85' LIMIT 1 [["organization_id", "3852d8c0-cec2-11e4-a751-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.417306"], ["updated_at", "2015-03-20 05:30:29.417306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '3875d37a-cec2-11e4-98f7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "3875d37a-cec2-11e4-98f7-705681abff85"], ["created_at", "2015-03-20 05:30:29.421363"], ["updated_at", "2015-03-20 05:30:29.421363"], ["token", "t82Sw5eEK90kZ2g1FAdVPrZRs1SptjJw75hL5mIxJ60"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 22.3ms Sent mail to john@example.com (9.5ms) Date: Thu, 19 Mar 2015 22:30:29 -0700 From: from@example.com To: john@example.com Message-ID: <550bb0756ebbc_10b53fd979865be028683@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/t82Sw5eEK90kZ2g1FAdVPrZRs1SptjJw75hL5mIxJ60?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.464876"], ["updated_at", "2015-03-20 05:30:29.464876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '387d2972-cec2-11e4-83a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "387d2972-cec2-11e4-83a3-705681abff85"], ["created_at", "2015-03-20 05:30:29.469652"], ["updated_at", "2015-03-20 05:30:29.469652"], ["token", "QEZfBUBYc0VAe6FtZnCKHl6M5WDhB0MYKKMBWmNmRpk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 5.8ms Sent mail to john@example.com (2.1ms) Date: Thu, 19 Mar 2015 22:30:29 -0700 From: from@example.com To: john@example.com Message-ID: <550bb07574b76_10b53fd979865be02872@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/QEZfBUBYc0VAe6FtZnCKHl6M5WDhB0MYKKMBWmNmRpk?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.485551"], ["updated_at", "2015-03-20 05:30:29.485551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '388039be-cec2-11e4-9845-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "388039be-cec2-11e4-9845-705681abff85"], ["created_at", "2015-03-20 05:30:29.489345"], ["updated_at", "2015-03-20 05:30:29.489345"], ["token", "DAlkFN8iwuc0DZ4jYu_iaJa9X7AosqYndoP1UDbhSpk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Thu, 19 Mar 2015 22:30:29 -0700 From: from@example.com To: john@example.com Message-ID: <550bb07578633_10b53fd979865be028842@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/DAlkFN8iwuc0DZ4jYu_iaJa9X7AosqYndoP1UDbhSpk?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.500115"], ["updated_at", "2015-03-20 05:30:29.500115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '38827cec-cec2-11e4-8348-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "38827cec-cec2-11e4-8348-705681abff85"], ["created_at", "2015-03-20 05:30:29.503916"], ["updated_at", "2015-03-20 05:30:29.503916"], ["token", "Wmh4PFo0JbzbEQYNK_ZxS6KM0qK1LaVYRwmOP84QtSY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.6ms) Date: Thu, 19 Mar 2015 22:30:29 -0700 From: from@example.com To: john@example.com Message-ID: <550bb0757bf0f_10b53fd979865be028930@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/Wmh4PFo0JbzbEQYNK_ZxS6KM0qK1LaVYRwmOP84QtSY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$95/1NLR37fbMhS0dGZXW7eybl/Kgob3MtvIYAQ7I3NfTLytX5WjJK"], ["created_at", "2015-03-20 05:30:29.513714"], ["updated_at", "2015-03-20 05:30:29.513714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$Aeoht2OgrEYXZAyJ4/0xreeNUQ92fhivsiK6g/fyH1dIL1VSUxhN2"], ["created_at", "2015-03-20 05:30:29.517914"], ["updated_at", "2015-03-20 05:30:29.517914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.519371"], ["user_id", "388486fe-cec2-11e4-8908-705681abff85"], ["created_at", "2015-03-20 05:30:29.520144"], ["updated_at", "2015-03-20 05:30:29.520144"], ["token", "Tddb2fGq-iQ8Ez3Z1e__bsBVWWrSjF6-5t5sYDCFXKk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.523872"], ["updated_at", "2015-03-20 05:30:29.523872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '388486fe-cec2-11e4-8908-705681abff85' AND "clubhouse_memberships"."organization_id" = '38860fc4-cec2-11e4-80a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "388486fe-cec2-11e4-8908-705681abff85"], ["organization_id", "38860fc4-cec2-11e4-80a0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.527044"], ["updated_at", "2015-03-20 05:30:29.527044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '388526c2-cec2-11e4-a3e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '38860fc4-cec2-11e4-80a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "388526c2-cec2-11e4-a3e8-705681abff85"], ["organization_id", "38860fc4-cec2-11e4-80a0-705681abff85"], ["created_at", "2015-03-20 05:30:29.530465"], ["updated_at", "2015-03-20 05:30:29.530465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 22:30:29 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$0BGHxmpQdFdJxRT12oG3j..72Rz097szPNYlPqWH2slxtkZlZVxKG"], ["created_at", "2015-03-20 05:30:29.546748"], ["updated_at", "2015-03-20 05:30:29.546748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$rc3pjTex.ekM6wAHhpsvTOpQIjZHgBxR0sLBDxNaPlFALHOEhg0WS"], ["created_at", "2015-03-20 05:30:29.551395"], ["updated_at", "2015-03-20 05:30:29.551395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.552871"], ["user_id", "388999d2-cec2-11e4-86f1-705681abff85"], ["created_at", "2015-03-20 05:30:29.553626"], ["updated_at", "2015-03-20 05:30:29.553626"], ["token", "4P-ObZ-8UkyiKHgg0ZUr2eOmmcUXwABCnT-FZMXrttc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.556878"], ["updated_at", "2015-03-20 05:30:29.556878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '388999d2-cec2-11e4-86f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '388b18ca-cec2-11e4-b844-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "388999d2-cec2-11e4-86f1-705681abff85"], ["organization_id", "388b18ca-cec2-11e4-b844-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.559983"], ["updated_at", "2015-03-20 05:30:29.559983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '388a4314-cec2-11e4-997f-705681abff85' AND "clubhouse_memberships"."organization_id" = '388b18ca-cec2-11e4-b844-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "388a4314-cec2-11e4-997f-705681abff85"], ["organization_id", "388b18ca-cec2-11e4-b844-705681abff85"], ["created_at", "2015-03-20 05:30:29.563135"], ["updated_at", "2015-03-20 05:30:29.563135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/388b9188-cec2-11e4-a8f6-705681abff85" for 127.0.0.1 at 2015-03-19 22:30:29 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"388b9188-cec2-11e4-a8f6-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:29.567535' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4P-ObZ-8UkyiKHgg0ZUr2eOmmcUXwABCnT-FZMXrttc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:29.569111"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:29.570085"], ["id", "388aa03e-cec2-11e4-af6b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "388b9188-cec2-11e4-a8f6-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "388999d2-cec2-11e4-86f1-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "388b18ca-cec2-11e4-b844-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '388999d2-cec2-11e4-86f1-705681abff85' LIMIT 1 [["organization_id", "388b18ca-cec2-11e4-b844-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "388999d2-cec2-11e4-86f1-705681abff85"]] Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$DvBXjqCJ6tgwIMpPD2ophew6BMWJLyTSQ/DU5YBNQSXnKqmWQmyEK"], ["created_at", "2015-03-20 05:30:29.585026"], ["updated_at", "2015-03-20 05:30:29.585026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$UDBGKkoHX5BKkt53JBjM2.FLjSft/Bt02GObve5hafvBcjLIYF/CC"], ["created_at", "2015-03-20 05:30:29.589100"], ["updated_at", "2015-03-20 05:30:29.589100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.590591"], ["user_id", "388f6696-cec2-11e4-b6ef-705681abff85"], ["created_at", "2015-03-20 05:30:29.591345"], ["updated_at", "2015-03-20 05:30:29.591345"], ["token", "Ma5X0KovSta4otsOB4it55tpq3qi7RaEitVeYdYBDko"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.594698"], ["updated_at", "2015-03-20 05:30:29.594698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '388f6696-cec2-11e4-b6ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '3890e0e8-cec2-11e4-8688-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "388f6696-cec2-11e4-b6ef-705681abff85"], ["organization_id", "3890e0e8-cec2-11e4-8688-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.598005"], ["updated_at", "2015-03-20 05:30:29.598005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '389002c2-cec2-11e4-b314-705681abff85' AND "clubhouse_memberships"."organization_id" = '3890e0e8-cec2-11e4-8688-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "389002c2-cec2-11e4-b314-705681abff85"], ["organization_id", "3890e0e8-cec2-11e4-8688-705681abff85"], ["created_at", "2015-03-20 05:30:29.600969"], ["updated_at", "2015-03-20 05:30:29.600969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$wEw79K/e1gEsLAM5i0Vra.lBo9iEF8atMun1R7k3pORRKomTCaEXe"], ["created_at", "2015-03-20 05:30:29.605132"], ["updated_at", "2015-03-20 05:30:29.605132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.606598"], ["user_id", "389275fc-cec2-11e4-9a26-705681abff85"], ["created_at", "2015-03-20 05:30:29.607326"], ["updated_at", "2015-03-20 05:30:29.607326"], ["token", "jCsIIUGyOlQsm66ZUG3ZS5BlecM7DXumWnkxiNn_ZfI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '3890e0e8-cec2-11e4-8688-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "3890e0e8-cec2-11e4-8688-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.610811"], ["updated_at", "2015-03-20 05:30:29.610811"], ["token", "ddfIIZI8YFflu4nTuiuUZY9l3XDVAKYlNYjYVVIbvRw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:30:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$T.YbcSHLyigOZEL0qFHVe.iRobJHoUbrhM96Z23baMCNdvFwNBbNa"], ["created_at", "2015-03-20 05:30:29.622655"], ["updated_at", "2015-03-20 05:30:29.622655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$gY3bsSueH61J/IXzRk5BJupCag.iYxBPqpoJd5.Td7qtlndiwrExy"], ["created_at", "2015-03-20 05:30:29.628370"], ["updated_at", "2015-03-20 05:30:29.628370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.630969"], ["user_id", "38952644-cec2-11e4-93ea-705681abff85"], ["created_at", "2015-03-20 05:30:29.632441"], ["updated_at", "2015-03-20 05:30:29.632441"], ["token", "uB1zVjgygFP6BFvBOJd-XOd6zmGf-dNY9gZSzLxNZQE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.638859"], ["updated_at", "2015-03-20 05:30:29.638859"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38952644-cec2-11e4-93ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '3897b292-cec2-11e4-82f3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38952644-cec2-11e4-93ea-705681abff85"], ["organization_id", "3897b292-cec2-11e4-82f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.644489"], ["updated_at", "2015-03-20 05:30:29.644489"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '389619fa-cec2-11e4-8ff7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3897b292-cec2-11e4-82f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "389619fa-cec2-11e4-8ff7-705681abff85"], ["organization_id", "3897b292-cec2-11e4-82f3-705681abff85"], ["created_at", "2015-03-20 05:30:29.648898"], ["updated_at", "2015-03-20 05:30:29.648898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (4.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$c0r0CuFpRX.H4jZHfgGd6uK/oDa5LG6AkpSFBviDXKWhALZrBiF/e"], ["created_at", "2015-03-20 05:30:29.658127"], ["updated_at", "2015-03-20 05:30:29.658127"]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.672915"], ["user_id", "389aaf1a-cec2-11e4-8010-705681abff85"], ["created_at", "2015-03-20 05:30:29.674351"], ["updated_at", "2015-03-20 05:30:29.674351"], ["token", "hrGNWtB_9gqYIcWEqTjFk8cjHwbTKSmBHfImgW3cRgU"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '3897b292-cec2-11e4-82f3-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "3897b292-cec2-11e4-82f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.682410"], ["updated_at", "2015-03-20 05:30:29.682410"], ["token", "OdJrfKNxsiDln4GYJRWltiUsFMkduG7Ri9fwFCm4-xg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:30:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"OdJrfKNxsiDln4GYJRWltiUsFMkduG7Ri9fwFCm4-xg", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:29.692607' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hrGNWtB_9gqYIcWEqTjFk8cjHwbTKSmBHfImgW3cRgU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:29.694877"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:29.696495"], ["id", "389d5008-cec2-11e4-9861-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "389aaf1a-cec2-11e4-8010-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "OdJrfKNxsiDln4GYJRWltiUsFMkduG7Ri9fwFCm4-xg"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3897b292-cec2-11e4-82f3-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '389aaf1a-cec2-11e4-8010-705681abff85' AND "clubhouse_memberships"."organization_id" = '3897b292-cec2-11e4-82f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "3897b292-cec2-11e4-82f3-705681abff85"], ["member_id", "389aaf1a-cec2-11e4-8010-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.724335"], ["updated_at", "2015-03-20 05:30:29.724335"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "389e668c-cec2-11e4-9823-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 36ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$iyYGk7RUIn5sqKKa4qmZzO5wl401Zo7tOXhdi2pGyijYHD7VciQl."], ["created_at", "2015-03-20 05:30:29.734742"], ["updated_at", "2015-03-20 05:30:29.734742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$WSdgaOakSYDwydwDkEZHNehL3FebQ3/ahyWAbiKdJqlMS3d9iU82C"], ["created_at", "2015-03-20 05:30:29.739578"], ["updated_at", "2015-03-20 05:30:29.739578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.741540"], ["user_id", "38a64366-cec2-11e4-8f88-705681abff85"], ["created_at", "2015-03-20 05:30:29.743082"], ["updated_at", "2015-03-20 05:30:29.743082"], ["token", "kRCafz86fibvvvBEO1rCjaSQBOLDAlENN6HTS_E1qho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.747105"], ["updated_at", "2015-03-20 05:30:29.747105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38a64366-cec2-11e4-8f88-705681abff85' AND "clubhouse_memberships"."organization_id" = '38a824c4-cec2-11e4-87bc-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38a64366-cec2-11e4-8f88-705681abff85"], ["organization_id", "38a824c4-cec2-11e4-87bc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.751230"], ["updated_at", "2015-03-20 05:30:29.751230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38a70364-cec2-11e4-97ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '38a824c4-cec2-11e4-87bc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38a70364-cec2-11e4-97ec-705681abff85"], ["organization_id", "38a824c4-cec2-11e4-87bc-705681abff85"], ["created_at", "2015-03-20 05:30:29.756154"], ["updated_at", "2015-03-20 05:30:29.756154"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$3Zrtmc/lRNz3HT1gTQ0QhO9LOcn5o0PUmMhNoa.bBmMXStRBye.Me"], ["created_at", "2015-03-20 05:30:29.763080"], ["updated_at", "2015-03-20 05:30:29.763080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.764861"], ["user_id", "38aa966e-cec2-11e4-bc57-705681abff85"], ["created_at", "2015-03-20 05:30:29.766579"], ["updated_at", "2015-03-20 05:30:29.766579"], ["token", "-UqqGteZLrFLxV599rACzbab79VJBW7tjQgpMTvRbec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '38a824c4-cec2-11e4-87bc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "38a824c4-cec2-11e4-87bc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.771077"], ["updated_at", "2015-03-20 05:30:29.771077"], ["token", "HwLcWjGvqWV3GqyaMqwivj3C2J58om17rugNpFwJeQM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:30:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:29.776202' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-UqqGteZLrFLxV599rACzbab79VJBW7tjQgpMTvRbec"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:29.777600"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:29.778515"], ["id", "38ab33da-cec2-11e4-8ed9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38aa966e-cec2-11e4-bc57-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$IMBKTPCow63L8Q7A7aeOSupT7rRAJ0pMEAAe/UKhsQHFH1s2.mDku"], ["created_at", "2015-03-20 05:30:29.789042"], ["updated_at", "2015-03-20 05:30:29.789042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$pJCx6OlVWy.pTJRrhylUZOZmtsOUvaSKcxSHtLt9WM7NsA7xyhfiq"], ["created_at", "2015-03-20 05:30:29.793216"], ["updated_at", "2015-03-20 05:30:29.793216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.794657"], ["user_id", "38ae8aee-cec2-11e4-9eb6-705681abff85"], ["created_at", "2015-03-20 05:30:29.795405"], ["updated_at", "2015-03-20 05:30:29.795405"], ["token", "Q_LfYr3MYR1M_b8GYnvEaH2wVBoT3MouurkGQehP41Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.798669"], ["updated_at", "2015-03-20 05:30:29.798669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38ae8aee-cec2-11e4-9eb6-705681abff85' AND "clubhouse_memberships"."organization_id" = '38affd52-cec2-11e4-a264-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38ae8aee-cec2-11e4-9eb6-705681abff85"], ["organization_id", "38affd52-cec2-11e4-a264-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.801853"], ["updated_at", "2015-03-20 05:30:29.801853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38af283c-cec2-11e4-a52b-705681abff85' AND "clubhouse_memberships"."organization_id" = '38affd52-cec2-11e4-a264-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38af283c-cec2-11e4-a52b-705681abff85"], ["organization_id", "38affd52-cec2-11e4-a264-705681abff85"], ["created_at", "2015-03-20 05:30:29.804816"], ["updated_at", "2015-03-20 05:30:29.804816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$PPl1E0dWBbvHNwbWJR9A/uFYd8TfQG1qDnpdrv5h2hOhwefwlKRJC"], ["created_at", "2015-03-20 05:30:29.809906"], ["updated_at", "2015-03-20 05:30:29.809906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.812270"], ["user_id", "38b1d3b6-cec2-11e4-b346-705681abff85"], ["created_at", "2015-03-20 05:30:29.813025"], ["updated_at", "2015-03-20 05:30:29.813025"], ["token", "ZZZcrryZpTD52tGjVkRq9c8Avi-YcsTnZ4pzGC_DK_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '38affd52-cec2-11e4-a264-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "38affd52-cec2-11e4-a264-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.818477"], ["updated_at", "2015-03-20 05:30:29.818477"], ["token", "iuCKtWKGZ8LmRtzchoN_qducJ3LLBLeyNrvRgxGVGtQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:30:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$JeuB1l8e0czk4YkaTNDevutJPTHKJoz.1TtrOISrJ3nsvfAvj.R2S"], ["created_at", "2015-03-20 05:30:29.831849"], ["updated_at", "2015-03-20 05:30:29.831849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$FymNUzbjY6/jvjpxB8thsuSeDaA3N7CKHI.AbfmiuPFfkhrRTBw5O"], ["created_at", "2015-03-20 05:30:29.836045"], ["updated_at", "2015-03-20 05:30:29.836045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.837515"], ["user_id", "38b5109e-cec2-11e4-b2af-705681abff85"], ["created_at", "2015-03-20 05:30:29.838294"], ["updated_at", "2015-03-20 05:30:29.838294"], ["token", "oUBE0at_joVQx_Oo1uWccicUx-Ooem7Si_mZkAajHBw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.842709"], ["updated_at", "2015-03-20 05:30:29.842709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38b5109e-cec2-11e4-b2af-705681abff85' AND "clubhouse_memberships"."organization_id" = '38b6b818-cec2-11e4-8a5a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38b5109e-cec2-11e4-b2af-705681abff85"], ["organization_id", "38b6b818-cec2-11e4-8a5a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.845989"], ["updated_at", "2015-03-20 05:30:29.845989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38b5b242-cec2-11e4-b537-705681abff85' AND "clubhouse_memberships"."organization_id" = '38b6b818-cec2-11e4-8a5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38b5b242-cec2-11e4-b537-705681abff85"], ["organization_id", "38b6b818-cec2-11e4-8a5a-705681abff85"], ["created_at", "2015-03-20 05:30:29.849713"], ["updated_at", "2015-03-20 05:30:29.849713"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$jbDseNFIh6t9EisEghBqH.UyXB5YnUfVNaCmhMW3yZOA8LHf9XwWO"], ["created_at", "2015-03-20 05:30:29.855443"], ["updated_at", "2015-03-20 05:30:29.855443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.857158"], ["user_id", "38b8ac5e-cec2-11e4-bf29-705681abff85"], ["created_at", "2015-03-20 05:30:29.857926"], ["updated_at", "2015-03-20 05:30:29.857926"], ["token", "Dt4lFW-cTqXsbTbzuu09kwYt7cvcaqMxiNM1d95DYQM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '38b6b818-cec2-11e4-8a5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "38b6b818-cec2-11e4-8a5a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.861425"], ["updated_at", "2015-03-20 05:30:29.861425"], ["token", "z9meiTG4OmLlYmHnokPtwyk1TuqMLg9E3NCyrrsSDlg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/38b6b818-cec2-11e4-8a5a-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:30:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"z9meiTG4OmLlYmHnokPtwyk1TuqMLg9E3NCyrrsSDlg", "organization_id"=>"38b6b818-cec2-11e4-8a5a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:29.866728' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Dt4lFW-cTqXsbTbzuu09kwYt7cvcaqMxiNM1d95DYQM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:29.868354"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:29.869388"], ["id", "38b90f0a-cec2-11e4-91dd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "38b6b818-cec2-11e4-8a5a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38b8ac5e-cec2-11e4-bf29-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "z9meiTG4OmLlYmHnokPtwyk1TuqMLg9E3NCyrrsSDlg"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38b6b818-cec2-11e4-8a5a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38b8ac5e-cec2-11e4-bf29-705681abff85' AND "clubhouse_memberships"."organization_id" = '38b6b818-cec2-11e4-8a5a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "38b6b818-cec2-11e4-8a5a-705681abff85"], ["member_id", "38b8ac5e-cec2-11e4-bf29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.876450"], ["updated_at", "2015-03-20 05:30:29.876450"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "38b99542-cec2-11e4-b9f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$wFz8h0TW.FL.ZPRdYthswuRgwQFSc6HiePscqR7x/2YxWQJJxpVY6"], ["created_at", "2015-03-20 05:30:29.884696"], ["updated_at", "2015-03-20 05:30:29.884696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$WW5m5oQjde.7PrhIZBkzkeuvEpDPOl7tC6SqsOVBlozn9oeSLQ5Du"], ["created_at", "2015-03-20 05:30:29.889147"], ["updated_at", "2015-03-20 05:30:29.889147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.890612"], ["user_id", "38bd1fd2-cec2-11e4-9493-705681abff85"], ["created_at", "2015-03-20 05:30:29.891354"], ["updated_at", "2015-03-20 05:30:29.891354"], ["token", "yHkZy7mKKRoldcIX5yKHDGe1Ifbp23KbL6rmvnuF-5E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.894475"], ["updated_at", "2015-03-20 05:30:29.894475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38bd1fd2-cec2-11e4-9493-705681abff85' AND "clubhouse_memberships"."organization_id" = '38be9b5a-cec2-11e4-8474-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38bd1fd2-cec2-11e4-9493-705681abff85"], ["organization_id", "38be9b5a-cec2-11e4-8474-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.897469"], ["updated_at", "2015-03-20 05:30:29.897469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38bdcc3e-cec2-11e4-8503-705681abff85' AND "clubhouse_memberships"."organization_id" = '38be9b5a-cec2-11e4-8474-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38bdcc3e-cec2-11e4-8503-705681abff85"], ["organization_id", "38be9b5a-cec2-11e4-8474-705681abff85"], ["created_at", "2015-03-20 05:30:29.900562"], ["updated_at", "2015-03-20 05:30:29.900562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$1swrCTo3CGI9PI.I/zIpfOsLB.6eBOvZIYiPqEiUvszlyGuUw4eZy"], ["created_at", "2015-03-20 05:30:29.904840"], ["updated_at", "2015-03-20 05:30:29.904840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.906311"], ["user_id", "38c032a8-cec2-11e4-9bcc-705681abff85"], ["created_at", "2015-03-20 05:30:29.907058"], ["updated_at", "2015-03-20 05:30:29.907058"], ["token", "LITeisq8pjfLDTZzFaUoqeKl256lA5g5hWx9Toit4CU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '38be9b5a-cec2-11e4-8474-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "38be9b5a-cec2-11e4-8474-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.910522"], ["updated_at", "2015-03-20 05:30:29.910522"], ["token", "-JdTsd2WPlUex2mYiov3UDXmoOxSBA-XgXGu0p62PZg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/38be9b5a-cec2-11e4-8474-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:30:29 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"38be9b5a-cec2-11e4-8474-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:29.915597' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LITeisq8pjfLDTZzFaUoqeKl256lA5g5hWx9Toit4CU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:29.917197"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:29.918200"], ["id", "38c08e1a-cec2-11e4-8ac8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "38be9b5a-cec2-11e4-8474-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38c032a8-cec2-11e4-9bcc-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$4eHtOqklJdur2geYDCK03uknfuDuq/Lt/bxj7L399OPVEhmyOCdPu"], ["created_at", "2015-03-20 05:30:29.928140"], ["updated_at", "2015-03-20 05:30:29.928140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$tsiW3tS3a58L3fG6CJA1i.rQW.YlH75Sv83PDB3PXco6hX1BiRY8y"], ["created_at", "2015-03-20 05:30:29.932595"], ["updated_at", "2015-03-20 05:30:29.932595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.935094"], ["user_id", "38c3c08a-cec2-11e4-a110-705681abff85"], ["created_at", "2015-03-20 05:30:29.935858"], ["updated_at", "2015-03-20 05:30:29.935858"], ["token", "CG6od02tQyYYhXKbydqSsFmJMBiad-2PwDplEa4Sy5Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.939219"], ["updated_at", "2015-03-20 05:30:29.939219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38c3c08a-cec2-11e4-a110-705681abff85' AND "clubhouse_memberships"."organization_id" = '38c56f98-cec2-11e4-bbff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38c3c08a-cec2-11e4-a110-705681abff85"], ["organization_id", "38c56f98-cec2-11e4-bbff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.942283"], ["updated_at", "2015-03-20 05:30:29.942283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38c48128-cec2-11e4-a537-705681abff85' AND "clubhouse_memberships"."organization_id" = '38c56f98-cec2-11e4-bbff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38c48128-cec2-11e4-a537-705681abff85"], ["organization_id", "38c56f98-cec2-11e4-bbff-705681abff85"], ["created_at", "2015-03-20 05:30:29.945174"], ["updated_at", "2015-03-20 05:30:29.945174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:30:29 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$qPnneAZrLX/q/aKPTMDkveqAFRefPsIYTCM.z1.h1MsAgLclZOd9O"], ["created_at", "2015-03-20 05:30:29.954589"], ["updated_at", "2015-03-20 05:30:29.954589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$Y91cHgniWpd7sj0NUUFh2eW41mUgDNm00aGor31AnqQMxMjmATMmy"], ["created_at", "2015-03-20 05:30:29.959179"], ["updated_at", "2015-03-20 05:30:29.959179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:29.960736"], ["user_id", "38c7cbd0-cec2-11e4-b3af-705681abff85"], ["created_at", "2015-03-20 05:30:29.961524"], ["updated_at", "2015-03-20 05:30:29.961524"], ["token", "SfqoooQTEtfaoXh2ht8afAPMB2owBhgVLE9cObOVdDY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:29.965360"], ["updated_at", "2015-03-20 05:30:29.965360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38c7cbd0-cec2-11e4-b3af-705681abff85' AND "clubhouse_memberships"."organization_id" = '38c973ae-cec2-11e4-8512-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38c7cbd0-cec2-11e4-b3af-705681abff85"], ["organization_id", "38c973ae-cec2-11e4-8512-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:29.969082"], ["updated_at", "2015-03-20 05:30:29.969082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38c87cec-cec2-11e4-83bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '38c973ae-cec2-11e4-8512-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38c87cec-cec2-11e4-83bd-705681abff85"], ["organization_id", "38c973ae-cec2-11e4-8512-705681abff85"], ["created_at", "2015-03-20 05:30:29.972642"], ["updated_at", "2015-03-20 05:30:29.972642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:30:29 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:29.977037' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SfqoooQTEtfaoXh2ht8afAPMB2owBhgVLE9cObOVdDY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:29.978409"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:29.979312"], ["id", "38c8ded0-cec2-11e4-a923-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38c7cbd0-cec2-11e4-b3af-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '38c7cbd0-cec2-11e4-b3af-705681abff85' LIMIT 1 [["organization_id", "38c973ae-cec2-11e4-8512-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$L.IOIlurxUPJD5gS9xcWsuxOqkFb0Li96S.fmY5m3H3QQ4YvHKCEC"], ["created_at", "2015-03-20 05:30:29.992280"], ["updated_at", "2015-03-20 05:30:29.992280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$wdL3XTyXmY.DQkYZ/PuOGOmQW19H143/SGSYVTc5i0ge89O2saMEm"], ["created_at", "2015-03-20 05:30:29.997341"], ["updated_at", "2015-03-20 05:30:29.997341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.000029"], ["user_id", "38cd8ba6-cec2-11e4-a3f5-705681abff85"], ["created_at", "2015-03-20 05:30:30.000999"], ["updated_at", "2015-03-20 05:30:30.000999"], ["token", "0MS5kJJsPNgKwxXR9fnsIldAu3F1yWHNSw4_kfDT3Ow"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.004621"], ["updated_at", "2015-03-20 05:30:30.004621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38cd8ba6-cec2-11e4-a3f5-705681abff85' AND "clubhouse_memberships"."organization_id" = '38cf6aa2-cec2-11e4-b15b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38cd8ba6-cec2-11e4-a3f5-705681abff85"], ["organization_id", "38cf6aa2-cec2-11e4-b15b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.007744"], ["updated_at", "2015-03-20 05:30:30.007744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38ce5f68-cec2-11e4-80b0-705681abff85' AND "clubhouse_memberships"."organization_id" = '38cf6aa2-cec2-11e4-b15b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38ce5f68-cec2-11e4-80b0-705681abff85"], ["organization_id", "38cf6aa2-cec2-11e4-b15b-705681abff85"], ["created_at", "2015-03-20 05:30:30.010733"], ["updated_at", "2015-03-20 05:30:30.010733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$Q9y4L8PNWCcwwYPb9iroPOi4/w7Fkx2YNRTHODj1sct6oHF3INkEu"], ["created_at", "2015-03-20 05:30:30.020080"], ["updated_at", "2015-03-20 05:30:30.020080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$gK294omRbY6hbmRkZr.tEujYGZQYWCLDOYALaeTbMMSWz/ol9FBzm"], ["created_at", "2015-03-20 05:30:30.024449"], ["updated_at", "2015-03-20 05:30:30.024449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.026264"], ["user_id", "38d1c8ce-cec2-11e4-b41b-705681abff85"], ["created_at", "2015-03-20 05:30:30.027084"], ["updated_at", "2015-03-20 05:30:30.027084"], ["token", "rJY3FI1-O51xVP4B58WPfb2QXhSv1pB1hZ0S7Ee1WOg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.030473"], ["updated_at", "2015-03-20 05:30:30.030473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38d1c8ce-cec2-11e4-b41b-705681abff85' AND "clubhouse_memberships"."organization_id" = '38d35bc6-cec2-11e4-a318-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38d1c8ce-cec2-11e4-b41b-705681abff85"], ["organization_id", "38d35bc6-cec2-11e4-a318-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.034814"], ["updated_at", "2015-03-20 05:30:30.034814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38d277ec-cec2-11e4-a928-705681abff85' AND "clubhouse_memberships"."organization_id" = '38d35bc6-cec2-11e4-a318-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38d277ec-cec2-11e4-a928-705681abff85"], ["organization_id", "38d35bc6-cec2-11e4-a318-705681abff85"], ["created_at", "2015-03-20 05:30:30.038252"], ["updated_at", "2015-03-20 05:30:30.038252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/38d48afa-cec2-11e4-a842-705681abff85" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"38d48afa-cec2-11e4-a842-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.042486' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rJY3FI1-O51xVP4B58WPfb2QXhSv1pB1hZ0S7Ee1WOg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.044280"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.046089"], ["id", "38d2e1f0-cec2-11e4-894d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "38d48afa-cec2-11e4-a842-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38d1c8ce-cec2-11e4-b41b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38d35bc6-cec2-11e4-a318-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38d1c8ce-cec2-11e4-b41b-705681abff85' LIMIT 1 [["organization_id", "38d35bc6-cec2-11e4-a318-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38d277ec-cec2-11e4-a928-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38d277ec-cec2-11e4-a928-705681abff85' AND "clubhouse_memberships"."id" != '38d48afa-cec2-11e4-a842-705681abff85' AND "clubhouse_memberships"."organization_id" = '38d35bc6-cec2-11e4-a318-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:30:30.053617"], ["id", "38d48afa-cec2-11e4-a842-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$6E8a0EPSLaHhBu3z28jnx.LRU2Xq8EM7iXNYMC13P79o5V7NskYEC"], ["created_at", "2015-03-20 05:30:30.060774"], ["updated_at", "2015-03-20 05:30:30.060774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$ISA8/WUYNUgWOOtuPz21ROZriRyDWClRBLlCJdPDWeoUuzzPuPlEi"], ["created_at", "2015-03-20 05:30:30.065016"], ["updated_at", "2015-03-20 05:30:30.065016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.066671"], ["user_id", "38d7feb0-cec2-11e4-b703-705681abff85"], ["created_at", "2015-03-20 05:30:30.067556"], ["updated_at", "2015-03-20 05:30:30.067556"], ["token", "Ujute80dW2CFi_pqj0BCaiogep18OffF1n1e3_JGnCI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.071088"], ["updated_at", "2015-03-20 05:30:30.071088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38d7feb0-cec2-11e4-b703-705681abff85' AND "clubhouse_memberships"."organization_id" = '38d98eb0-cec2-11e4-87c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38d7feb0-cec2-11e4-b703-705681abff85"], ["organization_id", "38d98eb0-cec2-11e4-87c0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.074164"], ["updated_at", "2015-03-20 05:30:30.074164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38d8a5b8-cec2-11e4-a713-705681abff85' AND "clubhouse_memberships"."organization_id" = '38d98eb0-cec2-11e4-87c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38d8a5b8-cec2-11e4-a713-705681abff85"], ["organization_id", "38d98eb0-cec2-11e4-87c0-705681abff85"], ["created_at", "2015-03-20 05:30:30.077033"], ["updated_at", "2015-03-20 05:30:30.077033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$LHFAizWB2lvwyb/csGPUFOWg5wwLbJ7l8G3GT5x9XpT2rRj5DdYQm"], ["created_at", "2015-03-20 05:30:30.086749"], ["updated_at", "2015-03-20 05:30:30.086749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$RCWoFgxzV1CE47q3YihAOuzPQ5Yyb488pbaxzLnSb0v7BqsK3ZqFm"], ["created_at", "2015-03-20 05:30:30.091992"], ["updated_at", "2015-03-20 05:30:30.091992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.093887"], ["user_id", "38dbf600-cec2-11e4-9373-705681abff85"], ["created_at", "2015-03-20 05:30:30.094774"], ["updated_at", "2015-03-20 05:30:30.094774"], ["token", "Jhjg4Vxp9bs2ed_OTWzZ4f5qq4GNDqfY_uC5M-zny38"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.098327"], ["updated_at", "2015-03-20 05:30:30.098327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38dbf600-cec2-11e4-9373-705681abff85' AND "clubhouse_memberships"."organization_id" = '38ddba4e-cec2-11e4-8202-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38dbf600-cec2-11e4-9373-705681abff85"], ["organization_id", "38ddba4e-cec2-11e4-8202-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.102611"], ["updated_at", "2015-03-20 05:30:30.102611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38dcc68e-cec2-11e4-bbc2-705681abff85' AND "clubhouse_memberships"."organization_id" = '38ddba4e-cec2-11e4-8202-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38dcc68e-cec2-11e4-bbc2-705681abff85"], ["organization_id", "38ddba4e-cec2-11e4-8202-705681abff85"], ["created_at", "2015-03-20 05:30:30.105673"], ["updated_at", "2015-03-20 05:30:30.105673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/38ddba4e-cec2-11e4-8202-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"38ddba4e-cec2-11e4-8202-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.109999' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Jhjg4Vxp9bs2ed_OTWzZ4f5qq4GNDqfY_uC5M-zny38"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.111403"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.112364"], ["id", "38dd3790-cec2-11e4-a44c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "38ddba4e-cec2-11e4-8202-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38dbf600-cec2-11e4-9373-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '38dbf600-cec2-11e4-9373-705681abff85' LIMIT 1 [["organization_id", "38ddba4e-cec2-11e4-8202-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$poXGrkpCNn.SDKIojIbUBeaFn4lZZ7xSQ0Dw55xHcuzit0lUapxhW"], ["created_at", "2015-03-20 05:30:30.124616"], ["updated_at", "2015-03-20 05:30:30.124616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$7IDeqHYAhn16zCehkEy6eulGx4UyaASXrjZZVUSWvFpFoph/gyuyy"], ["created_at", "2015-03-20 05:30:30.129983"], ["updated_at", "2015-03-20 05:30:30.129983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.131484"], ["user_id", "38e1bbe4-cec2-11e4-a20b-705681abff85"], ["created_at", "2015-03-20 05:30:30.132515"], ["updated_at", "2015-03-20 05:30:30.132515"], ["token", "6z05VioE1gP111pvpFxZG7U5uEd6maMk_kpAAnNUqs4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.136710"], ["updated_at", "2015-03-20 05:30:30.136710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38e1bbe4-cec2-11e4-a20b-705681abff85' AND "clubhouse_memberships"."organization_id" = '38e39392-cec2-11e4-a4e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38e1bbe4-cec2-11e4-a20b-705681abff85"], ["organization_id", "38e39392-cec2-11e4-a4e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.140027"], ["updated_at", "2015-03-20 05:30:30.140027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38e28cd6-cec2-11e4-8571-705681abff85' AND "clubhouse_memberships"."organization_id" = '38e39392-cec2-11e4-a4e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38e28cd6-cec2-11e4-8571-705681abff85"], ["organization_id", "38e39392-cec2-11e4-a4e1-705681abff85"], ["created_at", "2015-03-20 05:30:30.142967"], ["updated_at", "2015-03-20 05:30:30.142967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$JuxwCrx271kLg89Y1Aoh6ezzcExeN7Kdxwozeo1QH1wh/e8gun4Fy"], ["created_at", "2015-03-20 05:30:30.152482"], ["updated_at", "2015-03-20 05:30:30.152482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$XaSe9hOZ9AJc1uob/QnzSeyoc9CvwAqunyNJv2ih0sHh8/4r7Z53u"], ["created_at", "2015-03-20 05:30:30.156798"], ["updated_at", "2015-03-20 05:30:30.156798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.158719"], ["user_id", "38e5fd58-cec2-11e4-9739-705681abff85"], ["created_at", "2015-03-20 05:30:30.159533"], ["updated_at", "2015-03-20 05:30:30.159533"], ["token", "7HQcu92sN6nx72jUBJ3COA77algfi4cy3tOvVup3DvI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.162901"], ["updated_at", "2015-03-20 05:30:30.162901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38e5fd58-cec2-11e4-9739-705681abff85' AND "clubhouse_memberships"."organization_id" = '38e792ee-cec2-11e4-a2b5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38e5fd58-cec2-11e4-9739-705681abff85"], ["organization_id", "38e792ee-cec2-11e4-a2b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.166337"], ["updated_at", "2015-03-20 05:30:30.166337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38e6ac1c-cec2-11e4-a5cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '38e792ee-cec2-11e4-a2b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38e6ac1c-cec2-11e4-a5cc-705681abff85"], ["organization_id", "38e792ee-cec2-11e4-a2b5-705681abff85"], ["created_at", "2015-03-20 05:30:30.170070"], ["updated_at", "2015-03-20 05:30:30.170070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/38e8aab2-cec2-11e4-aab3-705681abff85" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"38e8aab2-cec2-11e4-aab3-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.174562' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7HQcu92sN6nx72jUBJ3COA77algfi4cy3tOvVup3DvI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.176385"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.178237"], ["id", "38e71706-cec2-11e4-bf39-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "38e8aab2-cec2-11e4-aab3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38e5fd58-cec2-11e4-9739-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38e792ee-cec2-11e4-a2b5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38e5fd58-cec2-11e4-9739-705681abff85' LIMIT 1 [["organization_id", "38e792ee-cec2-11e4-a2b5-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38e6ac1c-cec2-11e4-a5cc-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "38e8aab2-cec2-11e4-aab3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$fYqgE8s2ZIEbft1KUUsW7ugU7KzBNTp8udhhuDAhH4O13cYgP.8Ea"], ["created_at", "2015-03-20 05:30:30.190754"], ["updated_at", "2015-03-20 05:30:30.190754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.192288"], ["user_id", "38ebd3ae-cec2-11e4-959b-705681abff85"], ["created_at", "2015-03-20 05:30:30.193051"], ["updated_at", "2015-03-20 05:30:30.193051"], ["token", "BM8Q9ux0HzBMHnpTmlBxK_rgCG0zbnt0nmm3VluJIXE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.196225"], ["updated_at", "2015-03-20 05:30:30.196225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38ebd3ae-cec2-11e4-959b-705681abff85' AND "clubhouse_memberships"."organization_id" = '38eca69e-cec2-11e4-a909-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38ebd3ae-cec2-11e4-959b-705681abff85"], ["organization_id", "38eca69e-cec2-11e4-a909-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.199411"], ["updated_at", "2015-03-20 05:30:30.199411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '38eca69e-cec2-11e4-a909-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "38eca69e-cec2-11e4-a909-705681abff85"], ["created_at", "2015-03-20 05:30:30.202733"], ["updated_at", "2015-03-20 05:30:30.202733"], ["token", "28OxTDeA8eKeqWBKUepTsYnkGWVAZB5GJ8Zi-iOIOPU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$T2ch53y222W.Y2RxGwgsU.pn2fd1TFj3ii4d6ZIog3LSyWQaUHb9O"], ["created_at", "2015-03-20 05:30:30.217769"], ["updated_at", "2015-03-20 05:30:30.217769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.219383"], ["user_id", "38eff592-cec2-11e4-91a5-705681abff85"], ["created_at", "2015-03-20 05:30:30.220166"], ["updated_at", "2015-03-20 05:30:30.220166"], ["token", "_pcva8nLLTAe3_7U7mj3eFUwa_xevJhxtN9LZzBlBd4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.224034"], ["updated_at", "2015-03-20 05:30:30.224034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38eff592-cec2-11e4-91a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '38f0ecfe-cec2-11e4-b3a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38eff592-cec2-11e4-91a5-705681abff85"], ["organization_id", "38f0ecfe-cec2-11e4-b3a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.227581"], ["updated_at", "2015-03-20 05:30:30.227581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '38f0ecfe-cec2-11e4-b3a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "38f0ecfe-cec2-11e4-b3a5-705681abff85"], ["created_at", "2015-03-20 05:30:30.231177"], ["updated_at", "2015-03-20 05:30:30.231177"], ["token", "FXPrn9XvEdJU4EeZy4ijR67IoZauBy2l1HLh6VByy-c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/38f202d8-cec2-11e4-856d-705681abff85" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"38f202d8-cec2-11e4-856d-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.238029' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_pcva8nLLTAe3_7U7mj3eFUwa_xevJhxtN9LZzBlBd4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.239427"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.240403"], ["id", "38f054f6-cec2-11e4-83db-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "38f202d8-cec2-11e4-856d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38eff592-cec2-11e4-91a5-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38f0ecfe-cec2-11e4-b3a5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38eff592-cec2-11e4-91a5-705681abff85' LIMIT 1 [["organization_id", "38f0ecfe-cec2-11e4-b3a5-705681abff85"]] Completed 200 OK in 9ms (Views: 1.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$yMsx8cx99WNUMHDuOwCZkeyFFp2p8kxxsy21YV4qwShmZ603ALLD2"], ["created_at", "2015-03-20 05:30:30.253428"], ["updated_at", "2015-03-20 05:30:30.253428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.255152"], ["user_id", "38f5693c-cec2-11e4-bd94-705681abff85"], ["created_at", "2015-03-20 05:30:30.255937"], ["updated_at", "2015-03-20 05:30:30.255937"], ["token", "2chdzXIRqrqjRYG7SXP-2xtHLwipvIamvLXYOq2y3R0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.259191"], ["updated_at", "2015-03-20 05:30:30.259191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38f5693c-cec2-11e4-bd94-705681abff85' AND "clubhouse_memberships"."organization_id" = '38f641fe-cec2-11e4-9ade-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38f5693c-cec2-11e4-bd94-705681abff85"], ["organization_id", "38f641fe-cec2-11e4-9ade-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.263517"], ["updated_at", "2015-03-20 05:30:30.263517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '38f641fe-cec2-11e4-9ade-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "38f641fe-cec2-11e4-9ade-705681abff85"], ["created_at", "2015-03-20 05:30:30.268212"], ["updated_at", "2015-03-20 05:30:30.268212"], ["token", "TAmF64GpE7N-t0viM5fJxPGWbi4hp5XTr0SHLRr1qPc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$z3hJUlEXLcJ4qkCvPiEPEu9U0ZHyT8eDq7ohEp2rba8BDtefJQI5S"], ["created_at", "2015-03-20 05:30:30.278249"], ["updated_at", "2015-03-20 05:30:30.278249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.279804"], ["user_id", "38f92de2-cec2-11e4-bcce-705681abff85"], ["created_at", "2015-03-20 05:30:30.280568"], ["updated_at", "2015-03-20 05:30:30.280568"], ["token", "MuNNNd8N03MMUu35hpGcSzRE5IMehWzGgiBYa-RTOKQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.283763"], ["updated_at", "2015-03-20 05:30:30.283763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38f92de2-cec2-11e4-bcce-705681abff85' AND "clubhouse_memberships"."organization_id" = '38fa073a-cec2-11e4-8087-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38f92de2-cec2-11e4-bcce-705681abff85"], ["organization_id", "38fa073a-cec2-11e4-8087-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.287580"], ["updated_at", "2015-03-20 05:30:30.287580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '38fa073a-cec2-11e4-8087-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "38fa073a-cec2-11e4-8087-705681abff85"], ["created_at", "2015-03-20 05:30:30.291099"], ["updated_at", "2015-03-20 05:30:30.291099"], ["token", "YPByVM0UwQIzgWu2qgDx76ecuonThcwWfv4xA3giguw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.295924' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MuNNNd8N03MMUu35hpGcSzRE5IMehWzGgiBYa-RTOKQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.297330"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.298328"], ["id", "38f98c88-cec2-11e4-8afa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38f92de2-cec2-11e4-bcce-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38fa073a-cec2-11e4-8087-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38f92de2-cec2-11e4-bcce-705681abff85' LIMIT 1 [["organization_id", "38fa073a-cec2-11e4-8087-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '38fa073a-cec2-11e4-8087-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "38fa073a-cec2-11e4-8087-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.308365"], ["updated_at", "2015-03-20 05:30:30.308365"], ["token", "U_mjjSfxxmvw_R0cWw5rHR5jW91Jbq2TmxH7JQGAba4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 39630f65-15c4-43d9-aa20-bcc077703d54) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/38fdd1a8-cec2-11e4-9dce-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "38fdd1a8-cec2-11e4-9dce-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [39630f65-15c4-43d9-aa20-bcc077703d54] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/38fdd1a8-cec2-11e4-9dce-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [39630f65-15c4-43d9-aa20-bcc077703d54] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38fa073a-cec2-11e4-8087-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [39630f65-15c4-43d9-aa20-bcc077703d54] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [39630f65-15c4-43d9-aa20-bcc077703d54] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [39630f65-15c4-43d9-aa20-bcc077703d54] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [39630f65-15c4-43d9-aa20-bcc077703d54] Date: Thu, 19 Mar 2015 22:30:30 -0700 From: from@example.com To: email@example.com Message-ID: <550bb07651aba_10b53fd979865be0290da@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/U_mjjSfxxmvw_R0cWw5rHR5jW91Jbq2TmxH7JQGAba4?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [39630f65-15c4-43d9-aa20-bcc077703d54] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.23ms Completed 201 Created in 41ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$bIQL9BI52NytSgtg97vMP./VUVXCM9Yb4SsUfFrMQ9q9.WwIsa8EK"], ["created_at", "2015-03-20 05:30:30.342667"], ["updated_at", "2015-03-20 05:30:30.342667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.344450"], ["user_id", "39030290-cec2-11e4-b943-705681abff85"], ["created_at", "2015-03-20 05:30:30.345255"], ["updated_at", "2015-03-20 05:30:30.345255"], ["token", "fDy9Cit-rKMewiaQYfO-Ewm3uWbcTG373RXdAR9Slac"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.356460"], ["updated_at", "2015-03-20 05:30:30.356460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39030290-cec2-11e4-b943-705681abff85' AND "clubhouse_memberships"."organization_id" = '3905360a-cec2-11e4-b741-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39030290-cec2-11e4-b943-705681abff85"], ["organization_id", "3905360a-cec2-11e4-b741-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.363097"], ["updated_at", "2015-03-20 05:30:30.363097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '3905360a-cec2-11e4-b741-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "3905360a-cec2-11e4-b741-705681abff85"], ["created_at", "2015-03-20 05:30:30.369110"], ["updated_at", "2015-03-20 05:30:30.369110"], ["token", "5aqOyLESMBagqgMuNtxe5OsXqQ3EMAMt2L_9tVCHXzo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.377933' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fDy9Cit-rKMewiaQYfO-Ewm3uWbcTG373RXdAR9Slac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.379925"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.382426"], ["id", "39036cd0-cec2-11e4-b7d5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39030290-cec2-11e4-b943-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3905360a-cec2-11e4-b741-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39030290-cec2-11e4-b943-705681abff85' LIMIT 1 [["organization_id", "3905360a-cec2-11e4-b741-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3905360a-cec2-11e4-b741-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3905360a-cec2-11e4-b741-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.393997"], ["updated_at", "2015-03-20 05:30:30.393997"], ["token", "WE7hFtU2voI_m0yzuGAcVi8mH8v_DASZkyU53VuY6pM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e148f577-7df7-4665-91af-45fdb6e95d4e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/390adf88-cec2-11e4-8c9f-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "390adf88-cec2-11e4-8c9f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e148f577-7df7-4665-91af-45fdb6e95d4e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/390adf88-cec2-11e4-8c9f-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [e148f577-7df7-4665-91af-45fdb6e95d4e] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3905360a-cec2-11e4-b741-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e148f577-7df7-4665-91af-45fdb6e95d4e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [e148f577-7df7-4665-91af-45fdb6e95d4e] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [e148f577-7df7-4665-91af-45fdb6e95d4e] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [e148f577-7df7-4665-91af-45fdb6e95d4e] Date: Thu, 19 Mar 2015 22:30:30 -0700 From: from@example.com To: email@example.com Message-ID: <550bb07661f57_10b53fd979865be0291a4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/WE7hFtU2voI_m0yzuGAcVi8mH8v_DASZkyU53VuY6pM?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [e148f577-7df7-4665-91af-45fdb6e95d4e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.46ms Completed 201 Created in 26ms (Views: 1.2ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$zeVYobreBDAP9aglHi4vdOUsXZ6kdc.kvm8mZpK2nGDM5ZMpN.yE6"], ["created_at", "2015-03-20 05:30:30.409547"], ["updated_at", "2015-03-20 05:30:30.409547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.411103"], ["user_id", "390d36ca-cec2-11e4-837c-705681abff85"], ["created_at", "2015-03-20 05:30:30.411847"], ["updated_at", "2015-03-20 05:30:30.411847"], ["token", "G5ZTQwkjbMEvjnKDdnN6PxRW9tGAEHziQ6lnfD3m2lg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.415200"], ["updated_at", "2015-03-20 05:30:30.415200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '390d36ca-cec2-11e4-837c-705681abff85' AND "clubhouse_memberships"."organization_id" = '390e154a-cec2-11e4-aef0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "390d36ca-cec2-11e4-837c-705681abff85"], ["organization_id", "390e154a-cec2-11e4-aef0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.418736"], ["updated_at", "2015-03-20 05:30:30.418736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '390e154a-cec2-11e4-aef0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "390e154a-cec2-11e4-aef0-705681abff85"], ["created_at", "2015-03-20 05:30:30.422008"], ["updated_at", "2015-03-20 05:30:30.422008"], ["token", "8GDP_FwBTeK55Ay9kbQRDrEV_hLFSX0Gzg5aes3ttS0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.426674' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "G5ZTQwkjbMEvjnKDdnN6PxRW9tGAEHziQ6lnfD3m2lg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.428070"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.428980"], ["id", "390d94c6-cec2-11e4-84b1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "390d36ca-cec2-11e4-837c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "390e154a-cec2-11e4-aef0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '390d36ca-cec2-11e4-837c-705681abff85' LIMIT 1 [["organization_id", "390e154a-cec2-11e4-aef0-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '390e154a-cec2-11e4-aef0-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$qPK5LN2QNX5TySc10H80yuklvZZxwD5sWXpP37pa9zv2BpJC30jLO"], ["created_at", "2015-03-20 05:30:30.442992"], ["updated_at", "2015-03-20 05:30:30.442992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.444670"], ["user_id", "39125466-cec2-11e4-87e8-705681abff85"], ["created_at", "2015-03-20 05:30:30.445444"], ["updated_at", "2015-03-20 05:30:30.445444"], ["token", "wydE0u6Ff4xTHZXIz5JSWhiLMt3KczNHte3zBTuwhR0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.448719"], ["updated_at", "2015-03-20 05:30:30.448719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39125466-cec2-11e4-87e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '39132dd2-cec2-11e4-afd0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39125466-cec2-11e4-87e8-705681abff85"], ["organization_id", "39132dd2-cec2-11e4-afd0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.452684"], ["updated_at", "2015-03-20 05:30:30.452684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '39132dd2-cec2-11e4-afd0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "39132dd2-cec2-11e4-afd0-705681abff85"], ["created_at", "2015-03-20 05:30:30.456765"], ["updated_at", "2015-03-20 05:30:30.456765"], ["token", "rAuMH9ZPX3ICNJjvT47qvijhU4gaPiNEX-7wFkKnSaI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$z6PD.BHH1ih6vK9ZbsHu6.Tm6TPR.qpJSZgg/KCh.pNILjKKjGXoy"], ["created_at", "2015-03-20 05:30:30.466900"], ["updated_at", "2015-03-20 05:30:30.466900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.468500"], ["user_id", "3915f814-cec2-11e4-8138-705681abff85"], ["created_at", "2015-03-20 05:30:30.469310"], ["updated_at", "2015-03-20 05:30:30.469310"], ["token", "duOTn1dnV8Ib_8uu2YZs-Rq867pxR90o8oqsx0wOeSA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.472659"], ["updated_at", "2015-03-20 05:30:30.472659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3915f814-cec2-11e4-8138-705681abff85' AND "clubhouse_memberships"."organization_id" = '3916d52c-cec2-11e4-90d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3915f814-cec2-11e4-8138-705681abff85"], ["organization_id", "3916d52c-cec2-11e4-90d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.475750"], ["updated_at", "2015-03-20 05:30:30.475750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '3916d52c-cec2-11e4-90d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "3916d52c-cec2-11e4-90d3-705681abff85"], ["created_at", "2015-03-20 05:30:30.478973"], ["updated_at", "2015-03-20 05:30:30.478973"], ["token", "V19YVGeL9RG_ujM7fGrcrNPAqbe6n2TM6scjY9IMm-0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3916d52c-cec2-11e4-90d3-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"3916d52c-cec2-11e4-90d3-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.483665' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "duOTn1dnV8Ib_8uu2YZs-Rq867pxR90o8oqsx0wOeSA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.485145"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.486129"], ["id", "39165b92-cec2-11e4-9690-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3916d52c-cec2-11e4-90d3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3915f814-cec2-11e4-8138-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3916d52c-cec2-11e4-90d3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3915f814-cec2-11e4-8138-705681abff85' LIMIT 1 [["organization_id", "3916d52c-cec2-11e4-90d3-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3916d52c-cec2-11e4-90d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3916d52c-cec2-11e4-90d3-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.492968"], ["updated_at", "2015-03-20 05:30:30.492968"], ["token", "f4bpog3pcEsrqrotYmfg-qZoKuQejz0Drr4tXQ_eAxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9ec6af66-850c-4664-beb9-7d093ab7fa10) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3919f78e-cec2-11e4-b517-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3919f78e-cec2-11e4-b517-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9ec6af66-850c-4664-beb9-7d093ab7fa10] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3919f78e-cec2-11e4-b517-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9ec6af66-850c-4664-beb9-7d093ab7fa10] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3916d52c-cec2-11e4-90d3-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9ec6af66-850c-4664-beb9-7d093ab7fa10] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [9ec6af66-850c-4664-beb9-7d093ab7fa10] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [9ec6af66-850c-4664-beb9-7d093ab7fa10] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [9ec6af66-850c-4664-beb9-7d093ab7fa10] Date: Thu, 19 Mar 2015 22:30:30 -0700 From: from@example.com To: email@example.com Message-ID: <550bb0767a413_10b53fd979865be029231@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/f4bpog3pcEsrqrotYmfg-qZoKuQejz0Drr4tXQ_eAxg?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9ec6af66-850c-4664-beb9-7d093ab7fa10] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.22ms Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$TBa4EbSZ/34QaaS0Ofb2ke/TZRBgZXhSvSia/Wwtlx0ehMM1UiT1y"], ["created_at", "2015-03-20 05:30:30.509462"], ["updated_at", "2015-03-20 05:30:30.509462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.510960"], ["user_id", "391c74dc-cec2-11e4-b95c-705681abff85"], ["created_at", "2015-03-20 05:30:30.511720"], ["updated_at", "2015-03-20 05:30:30.511720"], ["token", "wMtHExiXab6c1on8owtB6Ruzp0lKURyG8fH793Kqo40"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.514954"], ["updated_at", "2015-03-20 05:30:30.514954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '391c74dc-cec2-11e4-b95c-705681abff85' AND "clubhouse_memberships"."organization_id" = '391d48d0-cec2-11e4-bc09-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "391c74dc-cec2-11e4-b95c-705681abff85"], ["organization_id", "391d48d0-cec2-11e4-bc09-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.518170"], ["updated_at", "2015-03-20 05:30:30.518170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '391d48d0-cec2-11e4-bc09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "391d48d0-cec2-11e4-bc09-705681abff85"], ["created_at", "2015-03-20 05:30:30.522492"], ["updated_at", "2015-03-20 05:30:30.522492"], ["token", "BZb0alOLeVKm2j5PmFfuitcN0NIqG0KzxXQOij-nJHE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/391d48d0-cec2-11e4-bc09-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"391d48d0-cec2-11e4-bc09-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.527124' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wMtHExiXab6c1on8owtB6Ruzp0lKURyG8fH793Kqo40"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.528933"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.530695"], ["id", "391cd18e-cec2-11e4-b263-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "391d48d0-cec2-11e4-bc09-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "391c74dc-cec2-11e4-b95c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "391d48d0-cec2-11e4-bc09-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '391c74dc-cec2-11e4-b95c-705681abff85' LIMIT 1 [["organization_id", "391d48d0-cec2-11e4-bc09-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '391d48d0-cec2-11e4-bc09-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "391d48d0-cec2-11e4-bc09-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.538722"], ["updated_at", "2015-03-20 05:30:30.538722"], ["token", "YF078sUKBLwhzYfrS-QLP_Yufapz5Z-VAgoevyKkFX4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: be406987-7f76-4325-bb6a-588356c985c6) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3920f1ce-cec2-11e4-a0fc-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3920f1ce-cec2-11e4-a0fc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [be406987-7f76-4325-bb6a-588356c985c6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3920f1ce-cec2-11e4-a0fc-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [be406987-7f76-4325-bb6a-588356c985c6] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "391d48d0-cec2-11e4-bc09-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [be406987-7f76-4325-bb6a-588356c985c6] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [be406987-7f76-4325-bb6a-588356c985c6] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [be406987-7f76-4325-bb6a-588356c985c6] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [be406987-7f76-4325-bb6a-588356c985c6] Date: Thu, 19 Mar 2015 22:30:30 -0700 From: from@example.com To: email@example.com Message-ID: <550bb07685289_10b53fd979865be029365@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/YF078sUKBLwhzYfrS-QLP_Yufapz5Z-VAgoevyKkFX4?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [be406987-7f76-4325-bb6a-588356c985c6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.9ms Completed 201 Created in 20ms (Views: 0.7ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$C/4fHdorAjOWY.Rw1UiVJeEt2CWZDgbxVgEl6MI3rx.AGNZcrRUta"], ["created_at", "2015-03-20 05:30:30.553113"], ["updated_at", "2015-03-20 05:30:30.553113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.555074"], ["user_id", "3923230e-cec2-11e4-b44e-705681abff85"], ["created_at", "2015-03-20 05:30:30.556888"], ["updated_at", "2015-03-20 05:30:30.556888"], ["token", "-ITlB2WWG7icEOdUGgASOJBSmSow_xmiwThZJuhdUUM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.562793"], ["updated_at", "2015-03-20 05:30:30.562793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3923230e-cec2-11e4-b44e-705681abff85' AND "clubhouse_memberships"."organization_id" = '39249a2c-cec2-11e4-9d67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3923230e-cec2-11e4-b44e-705681abff85"], ["organization_id", "39249a2c-cec2-11e4-9d67-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.575809"], ["updated_at", "2015-03-20 05:30:30.575809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '39249a2c-cec2-11e4-9d67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "39249a2c-cec2-11e4-9d67-705681abff85"], ["created_at", "2015-03-20 05:30:30.579121"], ["updated_at", "2015-03-20 05:30:30.579121"], ["token", "xcrfsnZDQqqjhFTkVJHhP_UWi6hm80CmmR3uGOP9N8g"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/39249a2c-cec2-11e4-9d67-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"39249a2c-cec2-11e4-9d67-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.584569' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-ITlB2WWG7icEOdUGgASOJBSmSow_xmiwThZJuhdUUM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.586079"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.587312"], ["id", "3923e3ca-cec2-11e4-b7af-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "39249a2c-cec2-11e4-9d67-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3923230e-cec2-11e4-b44e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39249a2c-cec2-11e4-9d67-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3923230e-cec2-11e4-b44e-705681abff85' LIMIT 1 [["organization_id", "39249a2c-cec2-11e4-9d67-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '39249a2c-cec2-11e4-9d67-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$/AXe8kfbGGOajVUVlDlvL.QYIUxIZrhptPeV8lRvv4RvUQeX0msJi"], ["created_at", "2015-03-20 05:30:30.602835"], ["updated_at", "2015-03-20 05:30:30.602835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.605137"], ["user_id", "392ab8e4-cec2-11e4-8ca8-705681abff85"], ["created_at", "2015-03-20 05:30:30.606053"], ["updated_at", "2015-03-20 05:30:30.606053"], ["token", "rwBSmk9MW_yyf4q17lLJLuduNt9FQRxidq-WYeYO-cg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.610806"], ["updated_at", "2015-03-20 05:30:30.610806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '392ab8e4-cec2-11e4-8ca8-705681abff85' AND "clubhouse_memberships"."organization_id" = '392bf27c-cec2-11e4-86a4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "392ab8e4-cec2-11e4-8ca8-705681abff85"], ["organization_id", "392bf27c-cec2-11e4-86a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.616484"], ["updated_at", "2015-03-20 05:30:30.616484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '392bf27c-cec2-11e4-86a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "392bf27c-cec2-11e4-86a4-705681abff85"], ["created_at", "2015-03-20 05:30:30.620881"], ["updated_at", "2015-03-20 05:30:30.620881"], ["token", "UITISbBbcJroPJfv2C7vGQKSO2xo51_Nl0Qj606Zd6E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$vzz2Tsg5oRs6cNzXcT8hFe5coJ.xPTdOLQEUuKqRYw8Gq.N1kHQfS"], ["created_at", "2015-03-20 05:30:30.625278"], ["updated_at", "2015-03-20 05:30:30.625278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.628338"], ["updated_at", "2015-03-20 05:30:30.628338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '392e1f7a-cec2-11e4-a019-705681abff85' AND "clubhouse_memberships"."organization_id" = '392e972a-cec2-11e4-93cb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "392e1f7a-cec2-11e4-a019-705681abff85"], ["organization_id", "392e972a-cec2-11e4-93cb-705681abff85"], ["created_at", "2015-03-20 05:30:30.631416"], ["updated_at", "2015-03-20 05:30:30.631416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$5PuLrpzb0D3jz5WQnwQiJeY3H5Fq9fUU0w50Paf0sqEB/UJW95Ra2"], ["created_at", "2015-03-20 05:30:30.643685"], ["updated_at", "2015-03-20 05:30:30.643685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.645442"], ["user_id", "3930f11e-cec2-11e4-8b74-705681abff85"], ["created_at", "2015-03-20 05:30:30.646212"], ["updated_at", "2015-03-20 05:30:30.646212"], ["token", "Lx6pqydUwhu8P-cin_psqKnjgvGMYpsflSi80BGrn4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.651130"], ["updated_at", "2015-03-20 05:30:30.651130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3930f11e-cec2-11e4-8b74-705681abff85' AND "clubhouse_memberships"."organization_id" = '39322606-cec2-11e4-9615-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3930f11e-cec2-11e4-8b74-705681abff85"], ["organization_id", "39322606-cec2-11e4-9615-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.655786"], ["updated_at", "2015-03-20 05:30:30.655786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '39322606-cec2-11e4-9615-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "39322606-cec2-11e4-9615-705681abff85"], ["created_at", "2015-03-20 05:30:30.659966"], ["updated_at", "2015-03-20 05:30:30.659966"], ["token", "BO32a4gHWWQsiLhXlZTZ29rHB53TqQUsz32uADl-y0A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$bU3IEEyJlwt161BJrCSRb.2NWG4kAFUDdMSHlXWpmiKRqB3B814G6"], ["created_at", "2015-03-20 05:30:30.664527"], ["updated_at", "2015-03-20 05:30:30.664527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.668144"], ["updated_at", "2015-03-20 05:30:30.668144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39341d62-cec2-11e4-9dac-705681abff85' AND "clubhouse_memberships"."organization_id" = '3934aaca-cec2-11e4-9c8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39341d62-cec2-11e4-9dac-705681abff85"], ["organization_id", "3934aaca-cec2-11e4-9c8a-705681abff85"], ["created_at", "2015-03-20 05:30:30.672056"], ["updated_at", "2015-03-20 05:30:30.672056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.677500' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Lx6pqydUwhu8P-cin_psqKnjgvGMYpsflSi80BGrn4E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.679434"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.681053"], ["id", "3931731e-cec2-11e4-9314-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3930f11e-cec2-11e4-8b74-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3930f11e-cec2-11e4-8b74-705681abff85' LIMIT 1 [["organization_id", "39322606-cec2-11e4-9615-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$4/d8P6.6M0Nvi2ws2WM5ReCz2f3JSsiH3FEBI9CYqdqEzikRJ27dW"], ["created_at", "2015-03-20 05:30:30.698257"], ["updated_at", "2015-03-20 05:30:30.698257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.701559"], ["user_id", "39395c3c-cec2-11e4-9012-705681abff85"], ["created_at", "2015-03-20 05:30:30.702531"], ["updated_at", "2015-03-20 05:30:30.702531"], ["token", "bCy8hWO21MmYUYDXEIujLgOceKdwLrwKBii65qdeXto"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.707137"], ["updated_at", "2015-03-20 05:30:30.707137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39395c3c-cec2-11e4-9012-705681abff85' AND "clubhouse_memberships"."organization_id" = '393a9dd6-cec2-11e4-aa94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39395c3c-cec2-11e4-9012-705681abff85"], ["organization_id", "393a9dd6-cec2-11e4-aa94-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.710322"], ["updated_at", "2015-03-20 05:30:30.710322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '393a9dd6-cec2-11e4-aa94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "393a9dd6-cec2-11e4-aa94-705681abff85"], ["created_at", "2015-03-20 05:30:30.713948"], ["updated_at", "2015-03-20 05:30:30.713948"], ["token", "X5umqDobyDMj7yYXm7p-o3RkLOhNWAOimvbkwvfpUVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$T4kSFZykEvzmVqxz2gkN2unVJZzGYqhB5C7ohkTitGz9XvqWFF3eG"], ["created_at", "2015-03-20 05:30:30.726486"], ["updated_at", "2015-03-20 05:30:30.726486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.728096"], ["user_id", "393d94be-cec2-11e4-a250-705681abff85"], ["created_at", "2015-03-20 05:30:30.729022"], ["updated_at", "2015-03-20 05:30:30.729022"], ["token", "_qt7hebH7bu9vt2vTx1FJXylHOcAAGFWyuRK8wOLJ1o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.732968"], ["updated_at", "2015-03-20 05:30:30.732968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '393d94be-cec2-11e4-a250-705681abff85' AND "clubhouse_memberships"."organization_id" = '393e8eb4-cec2-11e4-9c94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "393d94be-cec2-11e4-a250-705681abff85"], ["organization_id", "393e8eb4-cec2-11e4-9c94-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.736354"], ["updated_at", "2015-03-20 05:30:30.736354"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '393e8eb4-cec2-11e4-9c94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "393e8eb4-cec2-11e4-9c94-705681abff85"], ["created_at", "2015-03-20 05:30:30.740267"], ["updated_at", "2015-03-20 05:30:30.740267"], ["token", "uJePP7C8PyrwTkNr8y9qIp4VOySJMWXW-GxbSbWAzQA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/393fb8b6-cec2-11e4-bdde-705681abff85" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"393fb8b6-cec2-11e4-bdde-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.745128' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_qt7hebH7bu9vt2vTx1FJXylHOcAAGFWyuRK8wOLJ1o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.746513"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.747457"], ["id", "393dfada-cec2-11e4-b867-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "393fb8b6-cec2-11e4-bdde-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "393d94be-cec2-11e4-a250-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "393e8eb4-cec2-11e4-9c94-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '393d94be-cec2-11e4-a250-705681abff85' LIMIT 1 [["organization_id", "393e8eb4-cec2-11e4-9c94-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."id" != '393fb8b6-cec2-11e4-bdde-705681abff85' AND "clubhouse_invitations"."organization_id" = '393e8eb4-cec2-11e4-9c94-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:30:30.755018"], ["id", "393fb8b6-cec2-11e4-bdde-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$ExYdLUAv5MOhkI30ZCD6aeChg5LtRUw0xqCfV8.pAVxkioa9yq8i2"], ["created_at", "2015-03-20 05:30:30.763418"], ["updated_at", "2015-03-20 05:30:30.763418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.765161"], ["user_id", "39433af4-cec2-11e4-88e9-705681abff85"], ["created_at", "2015-03-20 05:30:30.765922"], ["updated_at", "2015-03-20 05:30:30.765922"], ["token", "x3SrF9aXXHVyxnLFAIWa83Qm_A4tnusVGD6NIKM932A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.769287"], ["updated_at", "2015-03-20 05:30:30.769287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39433af4-cec2-11e4-88e9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3944197e-cec2-11e4-9316-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39433af4-cec2-11e4-88e9-705681abff85"], ["organization_id", "3944197e-cec2-11e4-9316-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.772566"], ["updated_at", "2015-03-20 05:30:30.772566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '3944197e-cec2-11e4-9316-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "3944197e-cec2-11e4-9316-705681abff85"], ["created_at", "2015-03-20 05:30:30.776116"], ["updated_at", "2015-03-20 05:30:30.776116"], ["token", "LDDV1sS8He6AzELfrbiiKTANzH3kXSkqUrJr-eBp-3g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$RdtHD8sjPkrEv689c7Ehw.DsQOYlGEFVNkgIMb1S6dcgqZOYJ6hj2"], ["created_at", "2015-03-20 05:30:30.780595"], ["updated_at", "2015-03-20 05:30:30.780595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.783759"], ["updated_at", "2015-03-20 05:30:30.783759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3945d6e2-cec2-11e4-8550-705681abff85' AND "clubhouse_memberships"."organization_id" = '39464ece-cec2-11e4-8b3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3945d6e2-cec2-11e4-8550-705681abff85"], ["organization_id", "39464ece-cec2-11e4-8b3a-705681abff85"], ["created_at", "2015-03-20 05:30:30.787210"], ["updated_at", "2015-03-20 05:30:30.787210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$fO98KrbgpB3S1HCOW3oKjOyKpf3PTl0m2g7EcBcnCesAwU0dHeZNG"], ["created_at", "2015-03-20 05:30:30.797806"], ["updated_at", "2015-03-20 05:30:30.797806"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.799838"], ["user_id", "394879c4-cec2-11e4-aacd-705681abff85"], ["created_at", "2015-03-20 05:30:30.800655"], ["updated_at", "2015-03-20 05:30:30.800655"], ["token", "bIMLpmGo3ysahhnhs51CBb2NNbBgM70xf53ROwmX-w0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.804398"], ["updated_at", "2015-03-20 05:30:30.804398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '394879c4-cec2-11e4-aacd-705681abff85' AND "clubhouse_memberships"."organization_id" = '39498760-cec2-11e4-9fc1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "394879c4-cec2-11e4-aacd-705681abff85"], ["organization_id", "39498760-cec2-11e4-9fc1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.808441"], ["updated_at", "2015-03-20 05:30:30.808441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '39498760-cec2-11e4-9fc1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "39498760-cec2-11e4-9fc1-705681abff85"], ["created_at", "2015-03-20 05:30:30.811752"], ["updated_at", "2015-03-20 05:30:30.811752"], ["token", "cDgHZ27rOvM23wOGzRY13NlFKoR7ekJdLo6Kv7dfwXw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$d28tGmFZn40NBS6NAr2Bq.Lkrx2bOH.oxtasnAscqKDpfm/HR.3Z6"], ["created_at", "2015-03-20 05:30:30.816226"], ["updated_at", "2015-03-20 05:30:30.816226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.819492"], ["updated_at", "2015-03-20 05:30:30.819492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '394b4672-cec2-11e4-99e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '394bc386-cec2-11e4-a92a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "394b4672-cec2-11e4-99e4-705681abff85"], ["organization_id", "394bc386-cec2-11e4-a92a-705681abff85"], ["created_at", "2015-03-20 05:30:30.822720"], ["updated_at", "2015-03-20 05:30:30.822720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/39498760-cec2-11e4-9fc1-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"39498760-cec2-11e4-9fc1-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.827416' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bIMLpmGo3ysahhnhs51CBb2NNbBgM70xf53ROwmX-w0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.828893"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.830004"], ["id", "3948ea94-cec2-11e4-8239-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "39498760-cec2-11e4-9fc1-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "394879c4-cec2-11e4-aacd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '394879c4-cec2-11e4-aacd-705681abff85' LIMIT 1 [["organization_id", "39498760-cec2-11e4-9fc1-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$wDqj9oT.xzhKAr4XUdFH/OidDwk1c2EtgHt3a2bO5Sn0zkwlI34L6"], ["created_at", "2015-03-20 05:30:30.842687"], ["updated_at", "2015-03-20 05:30:30.842687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.844270"], ["user_id", "394f4ef2-cec2-11e4-ae23-705681abff85"], ["created_at", "2015-03-20 05:30:30.845070"], ["updated_at", "2015-03-20 05:30:30.845070"], ["token", "wuFEU9vxx-i3Z8LW_scX9D3Sl5wUJ3WBlqUr3X5_-4I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.848625"], ["updated_at", "2015-03-20 05:30:30.848625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '394f4ef2-cec2-11e4-ae23-705681abff85' AND "clubhouse_memberships"."organization_id" = '39503506-cec2-11e4-b81c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "394f4ef2-cec2-11e4-ae23-705681abff85"], ["organization_id", "39503506-cec2-11e4-b81c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.851897"], ["updated_at", "2015-03-20 05:30:30.851897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '39503506-cec2-11e4-b81c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "39503506-cec2-11e4-b81c-705681abff85"], ["created_at", "2015-03-20 05:30:30.855317"], ["updated_at", "2015-03-20 05:30:30.855317"], ["token", "eo3BsTJBgwM8H9P6RigcRoPI2ghy3LoItX2aFn8v0Y0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$2Nk6a2onygZ4EPOJWmUe0e88m5j7OHh87aZQONJJTs2W25Dy9UP1a"], ["created_at", "2015-03-20 05:30:30.865401"], ["updated_at", "2015-03-20 05:30:30.865401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:30:30.867016"], ["user_id", "3952c5d2-cec2-11e4-b87e-705681abff85"], ["created_at", "2015-03-20 05:30:30.867773"], ["updated_at", "2015-03-20 05:30:30.867773"], ["token", "BY3yEtcyIw3BA3naOEVCIVeICSSUAL5jqPjC9CGP-bg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:30:30.871482"], ["updated_at", "2015-03-20 05:30:30.871482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3952c5d2-cec2-11e4-b87e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3953b1cc-cec2-11e4-befb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3952c5d2-cec2-11e4-b87e-705681abff85"], ["organization_id", "3953b1cc-cec2-11e4-befb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:30:30.875184"], ["updated_at", "2015-03-20 05:30:30.875184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '3953b1cc-cec2-11e4-befb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "3953b1cc-cec2-11e4-befb-705681abff85"], ["created_at", "2015-03-20 05:30:30.879025"], ["updated_at", "2015-03-20 05:30:30.879025"], ["token", "jHBLfIybOe_di04PAOBQe9j4Cf20iM-KyF6INgo6otA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/3954e074-cec2-11e4-8211-705681abff85" for 127.0.0.1 at 2015-03-19 22:30:30 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"3954e074-cec2-11e4-8211-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:30:30.883765' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BY3yEtcyIw3BA3naOEVCIVeICSSUAL5jqPjC9CGP-bg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:30:30.885157"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:30:30.886187"], ["id", "39532978-cec2-11e4-9cb9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3954e074-cec2-11e4-8211-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3952c5d2-cec2-11e4-b87e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3953b1cc-cec2-11e4-befb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3952c5d2-cec2-11e4-b87e-705681abff85' LIMIT 1 [["organization_id", "3953b1cc-cec2-11e4-befb-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "3954e074-cec2-11e4-8211-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (20.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$285cuNe/CBO.Kr9/fEpg7eyRffsOQ9XuR4EaOVLQLF9QZx5BzSI32"], ["created_at", "2015-03-20 05:31:21.096431"], ["updated_at", "2015-03-20 05:31:21.096431"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.136310"], ["updated_at", "2015-03-20 05:31:21.136310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5746bd50-cec2-11e4-86b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '574994bc-cec2-11e4-8f61-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5746bd50-cec2-11e4-86b1-705681abff85"], ["organization_id", "574994bc-cec2-11e4-8f61-705681abff85"], ["created_at", "2015-03-20 05:31:21.143903"], ["updated_at", "2015-03-20 05:31:21.143903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.7ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5746bd50-cec2-11e4-86b1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "574994bc-cec2-11e4-8f61-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5746bd50-cec2-11e4-86b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '574994bc-cec2-11e4-8f61-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "574994bc-cec2-11e4-8f61-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5746bd50-cec2-11e4-86b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '574994bc-cec2-11e4-8f61-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.421823"], ["updated_at", "2015-03-20 05:31:21.421823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '577524ce-cec2-11e4-bde9-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "577524ce-cec2-11e4-bde9-705681abff85"], ["created_at", "2015-03-20 05:31:21.436256"], ["updated_at", "2015-03-20 05:31:21.436256"], ["token", "2G2xLaM8c8Bd5MX0guhHAHfrIaAJx8RbRCS_eqRf2uU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) Clubhouse::Mailer#invitation: processed outbound mail in 23.2ms Sent mail to john@example.com (11.3ms) Date: Thu, 19 Mar 2015 22:31:21 -0700 From: from@example.com To: john@example.com Message-ID: <550bb0a973245_10b83fe6d8465bf013249@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/2G2xLaM8c8Bd5MX0guhHAHfrIaAJx8RbRCS_eqRf2uU?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.483511"], ["updated_at", "2015-03-20 05:31:21.483511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '577e90f4-cec2-11e4-a5a6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "577e90f4-cec2-11e4-a5a6-705681abff85"], ["created_at", "2015-03-20 05:31:21.487821"], ["updated_at", "2015-03-20 05:31:21.487821"], ["token", "EFe_GWGzm3bHIgdh82CFloy1qvBdk65CCL6I2hzXqDU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.8ms) Date: Thu, 19 Mar 2015 22:31:21 -0700 From: from@example.com To: john@example.com Message-ID: <550bb0a978110_10b83fe6d8465bf01332e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/EFe_GWGzm3bHIgdh82CFloy1qvBdk65CCL6I2hzXqDU?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.497608"], ["updated_at", "2015-03-20 05:31:21.497608"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '5780a718-cec2-11e4-b04a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "5780a718-cec2-11e4-b04a-705681abff85"], ["created_at", "2015-03-20 05:31:21.502289"], ["updated_at", "2015-03-20 05:31:21.502289"], ["token", "F_wuxOaMT4vGki9fUd2PKuRrdtNl9RxLTDZvkn1dbDQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Thu, 19 Mar 2015 22:31:21 -0700 From: from@example.com To: john@example.com Message-ID: <550bb0a97b991_10b83fe6d8465bf0134d5@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/F_wuxOaMT4vGki9fUd2PKuRrdtNl9RxLTDZvkn1dbDQ?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.514277"], ["updated_at", "2015-03-20 05:31:21.514277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '57833e7e-cec2-11e4-b0e9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "57833e7e-cec2-11e4-b0e9-705681abff85"], ["created_at", "2015-03-20 05:31:21.519281"], ["updated_at", "2015-03-20 05:31:21.519281"], ["token", "rHG5Ea5Y-KemBxjzxvKJLyaFpe__lyskuj7xVkBvqRw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.9ms) Date: Thu, 19 Mar 2015 22:31:21 -0700 From: from@example.com To: john@example.com Message-ID: <550bb0a97fa65_10b83fe6d8465bf01351e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/rHG5Ea5Y-KemBxjzxvKJLyaFpe__lyskuj7xVkBvqRw?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$QvtKK1i2.X8.8g5Ttil1ned6jMGzkKmHzW31jnkDmS7e1F3Xf5Nl."], ["created_at", "2015-03-20 05:31:21.530602"], ["updated_at", "2015-03-20 05:31:21.530602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.535543"], ["updated_at", "2015-03-20 05:31:21.535543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5785be4c-cec2-11e4-8638-705681abff85' AND "clubhouse_memberships"."organization_id" = '57866f2c-cec2-11e4-91ad-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5785be4c-cec2-11e4-8638-705681abff85"], ["organization_id", "57866f2c-cec2-11e4-91ad-705681abff85"], ["created_at", "2015-03-20 05:31:21.538946"], ["updated_at", "2015-03-20 05:31:21.538946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5785be4c-cec2-11e4-8638-705681abff85' LIMIT 1 [["organization_id", "57866f2c-cec2-11e4-91ad-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$4NRibMEYFtF/BghEl.QDAeCxIKMALv5fEZEnyV4JjPmFViDM0gnom"], ["created_at", "2015-03-20 05:31:21.559134"], ["updated_at", "2015-03-20 05:31:21.559134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.563174"], ["updated_at", "2015-03-20 05:31:21.563174"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '578a081c-cec2-11e4-8870-705681abff85' AND "clubhouse_memberships"."organization_id" = '578abb7c-cec2-11e4-8329-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "578a081c-cec2-11e4-8870-705681abff85"], ["organization_id", "578abb7c-cec2-11e4-8329-705681abff85"], ["created_at", "2015-03-20 05:31:21.568919"], ["updated_at", "2015-03-20 05:31:21.568919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$.XdsWjUWXqCKZFOM9qCNJ.wl2Vu.hQxZu3FPbu5h56HWtMU0GH4Z6"], ["created_at", "2015-03-20 05:31:21.575337"], ["updated_at", "2015-03-20 05:31:21.575337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.579740"], ["updated_at", "2015-03-20 05:31:21.579740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '578c8114-cec2-11e4-ad44-705681abff85' AND "clubhouse_memberships"."organization_id" = '578d315e-cec2-11e4-8053-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "578c8114-cec2-11e4-ad44-705681abff85"], ["organization_id", "578d315e-cec2-11e4-8053-705681abff85"], ["created_at", "2015-03-20 05:31:21.584557"], ["updated_at", "2015-03-20 05:31:21.584557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$To7dK0iliKbONHq4IAzZEOwoaQJVjBM1FoGP3i0nrtHEnm.MyRT2i"], ["created_at", "2015-03-20 05:31:21.590718"], ["updated_at", "2015-03-20 05:31:21.590718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.594310"], ["updated_at", "2015-03-20 05:31:21.594310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '578ee30a-cec2-11e4-8dd7-705681abff85' AND "clubhouse_memberships"."organization_id" = '578f7ac2-cec2-11e4-8a25-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "578ee30a-cec2-11e4-8dd7-705681abff85"], ["organization_id", "578f7ac2-cec2-11e4-8a25-705681abff85"], ["created_at", "2015-03-20 05:31:21.598835"], ["updated_at", "2015-03-20 05:31:21.598835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '578ee30a-cec2-11e4-8dd7-705681abff85' LIMIT 1 [["organization_id", "578f7ac2-cec2-11e4-8a25-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$NhTm2Z.UZfE1uNzYO1xeHOMatAiR1U.xIPzi2Lfs1k2DP7vTb8D8a"], ["created_at", "2015-03-20 05:31:21.609055"], ["updated_at", "2015-03-20 05:31:21.609055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.613837"], ["updated_at", "2015-03-20 05:31:21.613837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5791a752-cec2-11e4-b7c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '57926b88-cec2-11e4-98f9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5791a752-cec2-11e4-b7c2-705681abff85"], ["organization_id", "57926b88-cec2-11e4-98f9-705681abff85"], ["created_at", "2015-03-20 05:31:21.620055"], ["updated_at", "2015-03-20 05:31:21.620055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5791a752-cec2-11e4-b7c2-705681abff85' LIMIT 1 [["organization_id", "57926b88-cec2-11e4-98f9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$om0NBb5/ZmcIyBTah7K4MuAEm1TSywnxQ85KGCmMGdYqtN/6M02uy"], ["created_at", "2015-03-20 05:31:21.627299"], ["updated_at", "2015-03-20 05:31:21.627299"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$LC9sraRyTB6Z0O4Ky1hbauqYxg9GYlBL.U8PXCKst/5.7UkQ3dDYO"], ["created_at", "2015-03-20 05:31:21.640369"], ["updated_at", "2015-03-20 05:31:21.640369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.644286"], ["updated_at", "2015-03-20 05:31:21.644286"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5796764c-cec2-11e4-b39b-705681abff85' AND "clubhouse_memberships"."organization_id" = '57970666-cec2-11e4-9b05-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5796764c-cec2-11e4-b39b-705681abff85"], ["organization_id", "57970666-cec2-11e4-9b05-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:21.648858"], ["updated_at", "2015-03-20 05:31:21.648858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5796764c-cec2-11e4-b39b-705681abff85' LIMIT 1 [["organization_id", "57970666-cec2-11e4-9b05-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$QoOQ9zxqbD6VycrLkAzu3eDQ8qSTpQQ3Iqz5maKnEgmXklnAK8HXa"], ["created_at", "2015-03-20 05:31:21.658333"], ["updated_at", "2015-03-20 05:31:21.658333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.662247"], ["updated_at", "2015-03-20 05:31:21.662247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5799295a-cec2-11e4-b71d-705681abff85' AND "clubhouse_memberships"."organization_id" = '5799e386-cec2-11e4-a448-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5799295a-cec2-11e4-b71d-705681abff85"], ["organization_id", "5799e386-cec2-11e4-a448-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:21.668032"], ["updated_at", "2015-03-20 05:31:21.668032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$esZGCdPun7mqeiXZBOcwaO6PG/NNFenDHaGVZJoo9csmuqU0jAg2O"], ["created_at", "2015-03-20 05:31:21.674236"], ["updated_at", "2015-03-20 05:31:21.674236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.677843"], ["updated_at", "2015-03-20 05:31:21.677843"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '579b9e24-cec2-11e4-a8cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '579c428e-cec2-11e4-ac63-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "579b9e24-cec2-11e4-a8cd-705681abff85"], ["organization_id", "579c428e-cec2-11e4-ac63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:21.683835"], ["updated_at", "2015-03-20 05:31:21.683835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$0m/5dfkfvnppIHGkHtEOuuf5jWUfZYd1V3d6Trc6MU77oNpLJ1kFm"], ["created_at", "2015-03-20 05:31:21.691352"], ["updated_at", "2015-03-20 05:31:21.691352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.694387"], ["updated_at", "2015-03-20 05:31:21.694387"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '579e3288-cec2-11e4-904e-705681abff85' AND "clubhouse_memberships"."organization_id" = '579eaa10-cec2-11e4-aea3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "579e3288-cec2-11e4-904e-705681abff85"], ["organization_id", "579eaa10-cec2-11e4-aea3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:21.698592"], ["updated_at", "2015-03-20 05:31:21.698592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '579e3288-cec2-11e4-904e-705681abff85' LIMIT 1 [["organization_id", "579eaa10-cec2-11e4-aea3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$PpJgMbZP29v7iJYCoKd26uOBHnWuq6gw1kINtEIQVXiSKPruu5DGy"], ["created_at", "2015-03-20 05:31:21.707044"], ["updated_at", "2015-03-20 05:31:21.707044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.710583"], ["updated_at", "2015-03-20 05:31:21.710583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57a0a2c0-cec2-11e4-93bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '57a12376-cec2-11e4-bb64-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57a0a2c0-cec2-11e4-93bf-705681abff85"], ["organization_id", "57a12376-cec2-11e4-bb64-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:21.715191"], ["updated_at", "2015-03-20 05:31:21.715191"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '57a0a2c0-cec2-11e4-93bf-705681abff85' LIMIT 1 [["organization_id", "57a12376-cec2-11e4-bb64-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$6nUB/FV4BINHdc9OJ7iMeO1wHyQtsb4TcSzpyR79Mp0g6sRNfVzRi"], ["created_at", "2015-03-20 05:31:21.723716"], ["updated_at", "2015-03-20 05:31:21.723716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.726808"], ["updated_at", "2015-03-20 05:31:21.726808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '57a322d4-cec2-11e4-83be-705681abff85' LIMIT 1 [["organization_id", "57a397dc-cec2-11e4-9243-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$NOtJZmjhThcVd0SAn..cZOByLc2nCfp7U1r0w57DvyMkXKzQfmFZy"], ["created_at", "2015-03-20 05:31:21.736382"], ["updated_at", "2015-03-20 05:31:21.736382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.739897"], ["updated_at", "2015-03-20 05:31:21.739897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$sGh5wISC.cv/L3lj.79/pucf4pEcGV/45xerAfaa64E5TNaGtsqXe"], ["created_at", "2015-03-20 05:31:21.745405"], ["updated_at", "2015-03-20 05:31:21.745405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.748980"], ["updated_at", "2015-03-20 05:31:21.748980"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$sKolZb4v8eD.MOcune1lyOU8q8F4uENDqor4sDmc5FsZHrOtEAw/q"], ["created_at", "2015-03-20 05:31:21.755495"], ["updated_at", "2015-03-20 05:31:21.755495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.758696"], ["updated_at", "2015-03-20 05:31:21.758696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '57a7fc3c-cec2-11e4-b5d9-705681abff85' LIMIT 1 [["organization_id", "57a878ba-cec2-11e4-9a49-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$erwqPAVSXVe93zRr11gMOeichZr0oVCR3eeKEeo7GosfRw3MbtBVq"], ["created_at", "2015-03-20 05:31:21.766217"], ["updated_at", "2015-03-20 05:31:21.766217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.770339"], ["updated_at", "2015-03-20 05:31:21.770339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '57a9b09a-cec2-11e4-a76e-705681abff85' LIMIT 1 [["organization_id", "57aa3ef2-cec2-11e4-a572-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$.6ZRuuDcvFUpdww1yJrfHed1fkF9S/iTVh/Q/7mnBUuGBbGEb2aWS"], ["created_at", "2015-03-20 05:31:21.777312"], ["updated_at", "2015-03-20 05:31:21.777312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$RfT7WIw60tQc1QAPCPfhp.hYg/ztgiFitvwlAIJEEpakUdy491TVu"], ["created_at", "2015-03-20 05:31:21.781744"], ["updated_at", "2015-03-20 05:31:21.781744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:21.790692"], ["user_id", "57ab4fcc-cec2-11e4-a7a7-705681abff85"], ["created_at", "2015-03-20 05:31:21.792053"], ["updated_at", "2015-03-20 05:31:21.792053"], ["token", "oj5nz6H73KgqdbSws94pKoSU_oW1yfmUS8MeWxuwaBI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.797000"], ["updated_at", "2015-03-20 05:31:21.797000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57ab4fcc-cec2-11e4-a7a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '57ae530c-cec2-11e4-ad57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57ab4fcc-cec2-11e4-a7a7-705681abff85"], ["organization_id", "57ae530c-cec2-11e4-ad57-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:21.800553"], ["updated_at", "2015-03-20 05:31:21.800553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57ac11be-cec2-11e4-a31d-705681abff85' AND "clubhouse_memberships"."organization_id" = '57ae530c-cec2-11e4-ad57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57ac11be-cec2-11e4-a31d-705681abff85"], ["organization_id", "57ae530c-cec2-11e4-ad57-705681abff85"], ["created_at", "2015-03-20 05:31:21.803709"], ["updated_at", "2015-03-20 05:31:21.803709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:31:21 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$752XKLIhIgkP8.iIaVzoqevgdtTqx.5my6A/f7gk33QKMZOqi4lVa"], ["created_at", "2015-03-20 05:31:21.839744"], ["updated_at", "2015-03-20 05:31:21.839744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$phv/UnN/dbafh1NjfVGXwerkOukPhdp0px4jjOspx3DZO0ryKvi1."], ["created_at", "2015-03-20 05:31:21.845320"], ["updated_at", "2015-03-20 05:31:21.845320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:21.847096"], ["user_id", "57b4f0b8-cec2-11e4-bcf2-705681abff85"], ["created_at", "2015-03-20 05:31:21.847919"], ["updated_at", "2015-03-20 05:31:21.847919"], ["token", "ez7iUIhsCMAD6n-82rkcSHi5aXDXfa6NSkivvU8jPQI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.851790"], ["updated_at", "2015-03-20 05:31:21.851790"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57b4f0b8-cec2-11e4-bcf2-705681abff85' AND "clubhouse_memberships"."organization_id" = '57b6c230-cec2-11e4-aa7c-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57b4f0b8-cec2-11e4-bcf2-705681abff85"], ["organization_id", "57b6c230-cec2-11e4-aa7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:21.865102"], ["updated_at", "2015-03-20 05:31:21.865102"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57b5b0b6-cec2-11e4-860a-705681abff85' AND "clubhouse_memberships"."organization_id" = '57b6c230-cec2-11e4-aa7c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57b5b0b6-cec2-11e4-860a-705681abff85"], ["organization_id", "57b6c230-cec2-11e4-aa7c-705681abff85"], ["created_at", "2015-03-20 05:31:21.874532"], ["updated_at", "2015-03-20 05:31:21.874532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/57b6c230-cec2-11e4-aa7c-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:31:21 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"57b6c230-cec2-11e4-aa7c-705681abff85", "membership"=>{}} Pollett::Session Load (1.0ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:21.882508' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ez7iUIhsCMAD6n-82rkcSHi5aXDXfa6NSkivvU8jPQI"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:21.886888"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:21.889383"], ["id", "57b620e6-cec2-11e4-a32c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "57b6c230-cec2-11e4-aa7c-705681abff85"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57b4f0b8-cec2-11e4-bcf2-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '57b4f0b8-cec2-11e4-bcf2-705681abff85' LIMIT 1 [["organization_id", "57b6c230-cec2-11e4-aa7c-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "57b6c230-cec2-11e4-aa7c-705681abff85"]] User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('57b4f0b8-cec2-11e4-bcf2-705681abff85', '57b5b0b6-cec2-11e4-860a-705681abff85') Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('57b6c230-cec2-11e4-aa7c-705681abff85') Completed 500 Internal Server Error in 39ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$V1NswDvMMuqfrJP0kel68.rN2gDV6wd3sPERrn3gSbYT31Fj2ihtS"], ["created_at", "2015-03-20 05:31:21.929486"], ["updated_at", "2015-03-20 05:31:21.929486"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (2.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$ByIUK9.2D.mVsDxELZOYJORLCvM0JK71MQdROA4ph3yXz33TEsf9W"], ["created_at", "2015-03-20 05:31:21.937960"], ["updated_at", "2015-03-20 05:31:21.937960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:21.944570"], ["user_id", "57c2af28-cec2-11e4-92c9-705681abff85"], ["created_at", "2015-03-20 05:31:21.945779"], ["updated_at", "2015-03-20 05:31:21.945779"], ["token", "ZeQPJUPIRN4AUNRESEiD8OehJlLH-p35pPoxXJngXc8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:21.951338"], ["updated_at", "2015-03-20 05:31:21.951338"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57c2af28-cec2-11e4-92c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '57c5e8aa-cec2-11e4-8128-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57c2af28-cec2-11e4-92c9-705681abff85"], ["organization_id", "57c5e8aa-cec2-11e4-8128-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:21.958223"], ["updated_at", "2015-03-20 05:31:21.958223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57c451c0-cec2-11e4-bccc-705681abff85' AND "clubhouse_memberships"."organization_id" = '57c5e8aa-cec2-11e4-8128-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57c451c0-cec2-11e4-bccc-705681abff85"], ["organization_id", "57c5e8aa-cec2-11e4-8128-705681abff85"], ["created_at", "2015-03-20 05:31:21.965419"], ["updated_at", "2015-03-20 05:31:21.965419"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$wcLio.H6tD9BSFQON.mPG.zWY2z/v8rs/3FJOulolQATUSn4quffG"], ["created_at", "2015-03-20 05:31:21.973718"], ["updated_at", "2015-03-20 05:31:21.973718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:21.975894"], ["user_id", "57c95c10-cec2-11e4-a24e-705681abff85"], ["created_at", "2015-03-20 05:31:21.976653"], ["updated_at", "2015-03-20 05:31:21.976653"], ["token", "u77Bq2Ev376c81g5yTiX_EZJb7W2sALhFlBKi2ckx4E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '57c5e8aa-cec2-11e4-8128-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "57c5e8aa-cec2-11e4-8128-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:21.980876"], ["updated_at", "2015-03-20 05:31:21.980876"], ["token", "Pz8SsuVpc1GhpmL2p2uYs4r1_2NPj-4Js31h1WEXroY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:31:21 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$b7o3Mbu.inpYaVR4JWskV.eOUINeE6Y94P/NwP4Zsr8F92l3eKDgG"], ["created_at", "2015-03-20 05:31:21.992863"], ["updated_at", "2015-03-20 05:31:21.992863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$U0WPJTvFln/QcNWM5CBY0O64d3mRdxbPN6MWvMX/JZ5nBpar4lKOC"], ["created_at", "2015-03-20 05:31:21.997315"], ["updated_at", "2015-03-20 05:31:21.997315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:21.999106"], ["user_id", "57cc353e-cec2-11e4-ae74-705681abff85"], ["created_at", "2015-03-20 05:31:21.999917"], ["updated_at", "2015-03-20 05:31:21.999917"], ["token", "uNGRhaYtPykUVk0fUliOtyyQSy_kLB5Zd_y0Mc32sfg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.003435"], ["updated_at", "2015-03-20 05:31:22.003435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57cc353e-cec2-11e4-ae74-705681abff85' AND "clubhouse_memberships"."organization_id" = '57cdd0f6-cec2-11e4-8ce7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57cc353e-cec2-11e4-ae74-705681abff85"], ["organization_id", "57cdd0f6-cec2-11e4-8ce7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.006711"], ["updated_at", "2015-03-20 05:31:22.006711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57cce588-cec2-11e4-8183-705681abff85' AND "clubhouse_memberships"."organization_id" = '57cdd0f6-cec2-11e4-8ce7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57cce588-cec2-11e4-8183-705681abff85"], ["organization_id", "57cdd0f6-cec2-11e4-8ce7-705681abff85"], ["created_at", "2015-03-20 05:31:22.009581"], ["updated_at", "2015-03-20 05:31:22.009581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$shIp/tlRDICXUmmBnl9weOXJ7wCv2RvbHezlasFnzJYGAQs.pve3i"], ["created_at", "2015-03-20 05:31:22.013821"], ["updated_at", "2015-03-20 05:31:22.013821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.015425"], ["user_id", "57cf68a8-cec2-11e4-9ee8-705681abff85"], ["created_at", "2015-03-20 05:31:22.016531"], ["updated_at", "2015-03-20 05:31:22.016531"], ["token", "2PfgmvO_vdHUYAiq5uT0_iGbzhFhYUnFPSb1x0bAskY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '57cdd0f6-cec2-11e4-8ce7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "57cdd0f6-cec2-11e4-8ce7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.021677"], ["updated_at", "2015-03-20 05:31:22.021677"], ["token", "2o_hIgu6pUd2DBkgen2JsTzZWSk7W9LI6F9-k7W9ve4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/57cdd0f6-cec2-11e4-8ce7-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"2o_hIgu6pUd2DBkgen2JsTzZWSk7W9LI6F9-k7W9ve4", "organization_id"=>"57cdd0f6-cec2-11e4-8ce7-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.027583' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2PfgmvO_vdHUYAiq5uT0_iGbzhFhYUnFPSb1x0bAskY"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.029017"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.030627"], ["id", "57cfeb98-cec2-11e4-9a1f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "57cdd0f6-cec2-11e4-8ce7-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57cf68a8-cec2-11e4-9ee8-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "2o_hIgu6pUd2DBkgen2JsTzZWSk7W9LI6F9-k7W9ve4"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "57cdd0f6-cec2-11e4-8ce7-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57cf68a8-cec2-11e4-9ee8-705681abff85' AND "clubhouse_memberships"."organization_id" = '57cdd0f6-cec2-11e4-8ce7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "57cdd0f6-cec2-11e4-8ce7-705681abff85"], ["member_id", "57cf68a8-cec2-11e4-9ee8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.042550"], ["updated_at", "2015-03-20 05:31:22.042550"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "57d0a2e0-cec2-11e4-992c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$obiH7oiuICRFskJdlF7gMe9/KPeZrmMSir264SX/5EegNPLa0ERqm"], ["created_at", "2015-03-20 05:31:22.051616"], ["updated_at", "2015-03-20 05:31:22.051616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$QNnSrSx4/89rF5IB5T00eOLMiHlUYF0V5JmCbSDxKXlu6b5yAF/eW"], ["created_at", "2015-03-20 05:31:22.055968"], ["updated_at", "2015-03-20 05:31:22.055968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.057455"], ["user_id", "57d530ee-cec2-11e4-a9d1-705681abff85"], ["created_at", "2015-03-20 05:31:22.058215"], ["updated_at", "2015-03-20 05:31:22.058215"], ["token", "0YoymSHcfyLFqUU7p-eYSb-_OPi4Vc_BNaTptkuO_qk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.061542"], ["updated_at", "2015-03-20 05:31:22.061542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57d530ee-cec2-11e4-a9d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '57d6aba4-cec2-11e4-94b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57d530ee-cec2-11e4-a9d1-705681abff85"], ["organization_id", "57d6aba4-cec2-11e4-94b8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.064900"], ["updated_at", "2015-03-20 05:31:22.064900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57d5d2ce-cec2-11e4-a3ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '57d6aba4-cec2-11e4-94b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57d5d2ce-cec2-11e4-a3ce-705681abff85"], ["organization_id", "57d6aba4-cec2-11e4-94b8-705681abff85"], ["created_at", "2015-03-20 05:31:22.067987"], ["updated_at", "2015-03-20 05:31:22.067987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$6JIvKtfR6uZxiitDsiHfguJZO9qPBmZgRsJAKpJBimbBxtJDvLTfO"], ["created_at", "2015-03-20 05:31:22.072435"], ["updated_at", "2015-03-20 05:31:22.072435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.073924"], ["user_id", "57d856e8-cec2-11e4-9fec-705681abff85"], ["created_at", "2015-03-20 05:31:22.074672"], ["updated_at", "2015-03-20 05:31:22.074672"], ["token", "ubTWJpBWdhfysNFeAsiger1VCg2JCa6OXvBC0UHgcao"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '57d6aba4-cec2-11e4-94b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "57d6aba4-cec2-11e4-94b8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.078215"], ["updated_at", "2015-03-20 05:31:22.078215"], ["token", "TI7xzFTiW7MI2C2k0P1sTkpHgMXalnspze-EIzm5xSk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/57d6aba4-cec2-11e4-94b8-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"57d6aba4-cec2-11e4-94b8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.085958' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ubTWJpBWdhfysNFeAsiger1VCg2JCa6OXvBC0UHgcao"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.087406"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.088561"], ["id", "57d8b426-cec2-11e4-b863-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (5.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "57d6aba4-cec2-11e4-94b8-705681abff85"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57d856e8-cec2-11e4-9fec-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 18ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$sAzJOWKHc3QcEUzHDNDIgeof6y1DJLsy.JipWlpqel4yXlSSP5i9W"], ["created_at", "2015-03-20 05:31:22.109303"], ["updated_at", "2015-03-20 05:31:22.109303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$V9Vs86BmJEcxm12ECPlvKet0IXe18uOgaCVHkFeNoJ/aoMkaOswYe"], ["created_at", "2015-03-20 05:31:22.113792"], ["updated_at", "2015-03-20 05:31:22.113792"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.116688"], ["user_id", "57ddfe68-cec2-11e4-8e39-705681abff85"], ["created_at", "2015-03-20 05:31:22.117608"], ["updated_at", "2015-03-20 05:31:22.117608"], ["token", "wXfSw9OvfQs_VYdmdFFe1hU6PTX__RpqCCf9PDR4W0A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.121381"], ["updated_at", "2015-03-20 05:31:22.121381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57ddfe68-cec2-11e4-8e39-705681abff85' AND "clubhouse_memberships"."organization_id" = '57dfcffe-cec2-11e4-8dab-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57ddfe68-cec2-11e4-8e39-705681abff85"], ["organization_id", "57dfcffe-cec2-11e4-8dab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.125114"], ["updated_at", "2015-03-20 05:31:22.125114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57deb998-cec2-11e4-b4b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '57dfcffe-cec2-11e4-8dab-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57deb998-cec2-11e4-b4b8-705681abff85"], ["organization_id", "57dfcffe-cec2-11e4-8dab-705681abff85"], ["created_at", "2015-03-20 05:31:22.129299"], ["updated_at", "2015-03-20 05:31:22.129299"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$m0uU7MRdwgm5TNciU2fb9.4TZlMKVyV.VIFtWDfH4xS8ORwEo9Pia"], ["created_at", "2015-03-20 05:31:22.146164"], ["updated_at", "2015-03-20 05:31:22.146164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$O0eTI7LyfP6028KfGe0mUO/0rDChBhB3nvvCZO3j7jf0CTFKoyTHe"], ["created_at", "2015-03-20 05:31:22.151446"], ["updated_at", "2015-03-20 05:31:22.151446"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.154220"], ["user_id", "57e3a21e-cec2-11e4-80a8-705681abff85"], ["created_at", "2015-03-20 05:31:22.156107"], ["updated_at", "2015-03-20 05:31:22.156107"], ["token", "AVnQYn9WdIJGhhO4mA-0egT7MgaRi-2AuvTAULzgMno"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.164827"], ["updated_at", "2015-03-20 05:31:22.164827"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57e3a21e-cec2-11e4-80a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '57e687cc-cec2-11e4-a957-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57e3a21e-cec2-11e4-80a8-705681abff85"], ["organization_id", "57e687cc-cec2-11e4-a957-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.170652"], ["updated_at", "2015-03-20 05:31:22.170652"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57e4770c-cec2-11e4-bd69-705681abff85' AND "clubhouse_memberships"."organization_id" = '57e687cc-cec2-11e4-a957-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57e4770c-cec2-11e4-bd69-705681abff85"], ["organization_id", "57e687cc-cec2-11e4-a957-705681abff85"], ["created_at", "2015-03-20 05:31:22.176195"], ["updated_at", "2015-03-20 05:31:22.176195"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/57e83f68-cec2-11e4-98a3-705681abff85" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"57e83f68-cec2-11e4-98a3-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.185915' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AVnQYn9WdIJGhhO4mA-0egT7MgaRi-2AuvTAULzgMno"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.188892"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.190235"], ["id", "57e5bd74-cec2-11e4-826a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "57e83f68-cec2-11e4-98a3-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57e3a21e-cec2-11e4-80a8-705681abff85"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "57e687cc-cec2-11e4-a957-705681abff85"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '57e3a21e-cec2-11e4-80a8-705681abff85' LIMIT 1 [["organization_id", "57e687cc-cec2-11e4-a957-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57e4770c-cec2-11e4-bd69-705681abff85"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "57e83f68-cec2-11e4-98a3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 21ms (ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$kUlOv50qi2ho5fwwcf0/3Ojri0O0KRxm/5z0I.dqd2R9dpR3Yq1DG"], ["created_at", "2015-03-20 05:31:22.213276"], ["updated_at", "2015-03-20 05:31:22.213276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$nETDm2xW84A7DS8tFiktlu0tQqyMpmzPtT2XvgloU/5FFmXGpm9QO"], ["created_at", "2015-03-20 05:31:22.220334"], ["updated_at", "2015-03-20 05:31:22.220334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.222405"], ["user_id", "57ede3f0-cec2-11e4-8454-705681abff85"], ["created_at", "2015-03-20 05:31:22.223485"], ["updated_at", "2015-03-20 05:31:22.223485"], ["token", "THXSARNNiFW51r0tAcZosV1ayK-7gMbmIEL-wdhRXUo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.228100"], ["updated_at", "2015-03-20 05:31:22.228100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57ede3f0-cec2-11e4-8454-705681abff85' AND "clubhouse_memberships"."organization_id" = '57f0188c-cec2-11e4-9bf4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57ede3f0-cec2-11e4-8454-705681abff85"], ["organization_id", "57f0188c-cec2-11e4-9bf4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.231458"], ["updated_at", "2015-03-20 05:31:22.231458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57eeefa2-cec2-11e4-b062-705681abff85' AND "clubhouse_memberships"."organization_id" = '57f0188c-cec2-11e4-9bf4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57eeefa2-cec2-11e4-b062-705681abff85"], ["organization_id", "57f0188c-cec2-11e4-9bf4-705681abff85"], ["created_at", "2015-03-20 05:31:22.235026"], ["updated_at", "2015-03-20 05:31:22.235026"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$FtU0VUqq8kA27kbsy08NXuKil5aD44yCzT5sVyi/NP18ca38RMhym"], ["created_at", "2015-03-20 05:31:22.245602"], ["updated_at", "2015-03-20 05:31:22.245602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$pbIPDJOFuP7oZkYgGsbGLu/srfYhiT9SpcwJgPOlXktgKvB8nnku."], ["created_at", "2015-03-20 05:31:22.250582"], ["updated_at", "2015-03-20 05:31:22.250582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.252724"], ["user_id", "57f2c532-cec2-11e4-86bb-705681abff85"], ["created_at", "2015-03-20 05:31:22.253734"], ["updated_at", "2015-03-20 05:31:22.253734"], ["token", "VlYfV2mPVEbb3neOzWcIEkm3PPTzMwFhMdQrL_LPexQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.257292"], ["updated_at", "2015-03-20 05:31:22.257292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57f2c532-cec2-11e4-86bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '57f489da-cec2-11e4-af8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57f2c532-cec2-11e4-86bb-705681abff85"], ["organization_id", "57f489da-cec2-11e4-af8a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.260419"], ["updated_at", "2015-03-20 05:31:22.260419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57f3919c-cec2-11e4-ac3f-705681abff85' AND "clubhouse_memberships"."organization_id" = '57f489da-cec2-11e4-af8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57f3919c-cec2-11e4-ac3f-705681abff85"], ["organization_id", "57f489da-cec2-11e4-af8a-705681abff85"], ["created_at", "2015-03-20 05:31:22.263319"], ["updated_at", "2015-03-20 05:31:22.263319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.268397' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VlYfV2mPVEbb3neOzWcIEkm3PPTzMwFhMdQrL_LPexQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.269838"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.270810"], ["id", "57f40f0a-cec2-11e4-b585-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57f2c532-cec2-11e4-86bb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '57f2c532-cec2-11e4-86bb-705681abff85' LIMIT 1 [["organization_id", "57f489da-cec2-11e4-af8a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "57f489da-cec2-11e4-af8a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('57f2c532-cec2-11e4-86bb-705681abff85', '57f3919c-cec2-11e4-ac3f-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('57f489da-cec2-11e4-af8a-705681abff85') Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$.YnUnCTikRUyqlMTL1fnquXt0/CLZPfHNtslf6bYvqvna.SjEAI46"], ["created_at", "2015-03-20 05:31:22.284762"], ["updated_at", "2015-03-20 05:31:22.284762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$h.aRhenNpDLTUFuI9zrq.u8ufY3CiV/QFvOZ08LZzV0IbLbAlN5O."], ["created_at", "2015-03-20 05:31:22.289106"], ["updated_at", "2015-03-20 05:31:22.289106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.290595"], ["user_id", "57f8c18a-cec2-11e4-b272-705681abff85"], ["created_at", "2015-03-20 05:31:22.291365"], ["updated_at", "2015-03-20 05:31:22.291365"], ["token", "fTcqftilORokaFCYw6HXr8qiEhBri--gPHsgC-fjdmA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.294613"], ["updated_at", "2015-03-20 05:31:22.294613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57f8c18a-cec2-11e4-b272-705681abff85' AND "clubhouse_memberships"."organization_id" = '57fa3c22-cec2-11e4-96d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57f8c18a-cec2-11e4-b272-705681abff85"], ["organization_id", "57fa3c22-cec2-11e4-96d5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.297774"], ["updated_at", "2015-03-20 05:31:22.297774"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57f965ae-cec2-11e4-8dd1-705681abff85' AND "clubhouse_memberships"."organization_id" = '57fa3c22-cec2-11e4-96d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57f965ae-cec2-11e4-8dd1-705681abff85"], ["organization_id", "57fa3c22-cec2-11e4-96d5-705681abff85"], ["created_at", "2015-03-20 05:31:22.301825"], ["updated_at", "2015-03-20 05:31:22.301825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$aTr.aZsZuRTHdTT4dp4J4.kYR5IxVZZdftJQD7ttVK7j/Cxr3/VQ."], ["created_at", "2015-03-20 05:31:22.312756"], ["updated_at", "2015-03-20 05:31:22.312756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$kw6V8xdZKSwqFF8nGMclfO.S6hgdwq9z2OHYfgEm8FT/wsIhxy/ZG"], ["created_at", "2015-03-20 05:31:22.318117"], ["updated_at", "2015-03-20 05:31:22.318117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.320621"], ["user_id", "57fd05ec-cec2-11e4-91e0-705681abff85"], ["created_at", "2015-03-20 05:31:22.321417"], ["updated_at", "2015-03-20 05:31:22.321417"], ["token", "M7ogJ24CU2fkQEKD_oYKW1dnwOoqaUoea1kguA71X1Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.325051"], ["updated_at", "2015-03-20 05:31:22.325051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57fd05ec-cec2-11e4-91e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '57fee330-cec2-11e4-ad0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57fd05ec-cec2-11e4-91e0-705681abff85"], ["organization_id", "57fee330-cec2-11e4-ad0f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.328341"], ["updated_at", "2015-03-20 05:31:22.328341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57fdf1d2-cec2-11e4-af99-705681abff85' AND "clubhouse_memberships"."organization_id" = '57fee330-cec2-11e4-ad0f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57fdf1d2-cec2-11e4-af99-705681abff85"], ["organization_id", "57fee330-cec2-11e4-ad0f-705681abff85"], ["created_at", "2015-03-20 05:31:22.331381"], ["updated_at", "2015-03-20 05:31:22.331381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/57ff62ba-cec2-11e4-adf9-705681abff85" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"57ff62ba-cec2-11e4-adf9-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.337161' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M7ogJ24CU2fkQEKD_oYKW1dnwOoqaUoea1kguA71X1Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.338546"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.339450"], ["id", "57fe60cc-cec2-11e4-b147-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "57ff62ba-cec2-11e4-adf9-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57fd05ec-cec2-11e4-91e0-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "57fee330-cec2-11e4-ad0f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '57fd05ec-cec2-11e4-91e0-705681abff85' LIMIT 1 [["organization_id", "57fee330-cec2-11e4-ad0f-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "57fd05ec-cec2-11e4-91e0-705681abff85"]] Completed 500 Internal Server Error in 8ms  (4.0ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$WyO4DjmgPrhPVSRXVXNft.b0kZjCEPRB.itHGSUCsi721BpvvYaF."], ["created_at", "2015-03-20 05:31:22.360974"], ["updated_at", "2015-03-20 05:31:22.360974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$8NB/YzQgSdn8TzP1tKXxSOWp0Bap/HUusrJDFoMxOtzqH1X.SoP8W"], ["created_at", "2015-03-20 05:31:22.367046"], ["updated_at", "2015-03-20 05:31:22.367046"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.369877"], ["user_id", "5804654e-cec2-11e4-a83b-705681abff85"], ["created_at", "2015-03-20 05:31:22.371163"], ["updated_at", "2015-03-20 05:31:22.371163"], ["token", "SwLvFWl-daM_spxBKpju1fj-Q2dOgj8W3tnjHiVnJeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.377164"], ["updated_at", "2015-03-20 05:31:22.377164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5804654e-cec2-11e4-a83b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5806e774-cec2-11e4-a076-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5804654e-cec2-11e4-a83b-705681abff85"], ["organization_id", "5806e774-cec2-11e4-a076-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.382395"], ["updated_at", "2015-03-20 05:31:22.382395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5805565c-cec2-11e4-818e-705681abff85' AND "clubhouse_memberships"."organization_id" = '5806e774-cec2-11e4-a076-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5805565c-cec2-11e4-818e-705681abff85"], ["organization_id", "5806e774-cec2-11e4-a076-705681abff85"], ["created_at", "2015-03-20 05:31:22.387618"], ["updated_at", "2015-03-20 05:31:22.387618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$XHGlXZSxOKKxIfN6R/tiqeE5NUXLAQo3ghceQbR78WplnpjE1nnAq"], ["created_at", "2015-03-20 05:31:22.400925"], ["updated_at", "2015-03-20 05:31:22.400925"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$WB7YDqRbpOPRWia6R5pf/eBj0oy..fgCXzzaIESqJGeCJvaFZncKG"], ["created_at", "2015-03-20 05:31:22.406199"], ["updated_at", "2015-03-20 05:31:22.406199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.407966"], ["user_id", "580a7e2a-cec2-11e4-b7fe-705681abff85"], ["created_at", "2015-03-20 05:31:22.408800"], ["updated_at", "2015-03-20 05:31:22.408800"], ["token", "S1Ao_i4sBGZewpKh0pjdfYZ5LoeHG24GX1aCcBo9xx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.412405"], ["updated_at", "2015-03-20 05:31:22.412405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '580a7e2a-cec2-11e4-b7fe-705681abff85' AND "clubhouse_memberships"."organization_id" = '580c3648-cec2-11e4-a932-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "580a7e2a-cec2-11e4-b7fe-705681abff85"], ["organization_id", "580c3648-cec2-11e4-a932-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.415715"], ["updated_at", "2015-03-20 05:31:22.415715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '580b4b52-cec2-11e4-928a-705681abff85' AND "clubhouse_memberships"."organization_id" = '580c3648-cec2-11e4-a932-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "580b4b52-cec2-11e4-928a-705681abff85"], ["organization_id", "580c3648-cec2-11e4-a932-705681abff85"], ["created_at", "2015-03-20 05:31:22.419037"], ["updated_at", "2015-03-20 05:31:22.419037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/580d393a-cec2-11e4-be83-705681abff85" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"580d393a-cec2-11e4-be83-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.424430' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S1Ao_i4sBGZewpKh0pjdfYZ5LoeHG24GX1aCcBo9xx0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.425797"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.426915"], ["id", "580bb33a-cec2-11e4-9a6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "580d393a-cec2-11e4-be83-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "580a7e2a-cec2-11e4-b7fe-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "580c3648-cec2-11e4-a932-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '580a7e2a-cec2-11e4-b7fe-705681abff85' LIMIT 1 [["organization_id", "580c3648-cec2-11e4-a932-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "580b4b52-cec2-11e4-928a-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '580b4b52-cec2-11e4-928a-705681abff85' AND "clubhouse_memberships"."id" != '580d393a-cec2-11e4-be83-705681abff85' AND "clubhouse_memberships"."organization_id" = '580c3648-cec2-11e4-a932-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:31:22.434964"], ["id", "580d393a-cec2-11e4-be83-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$iZc.7vgHxTED14So/Nlt9uNct5IxhIUBd9UJD7GfpCe4XR1wnwaVK"], ["created_at", "2015-03-20 05:31:22.443217"], ["updated_at", "2015-03-20 05:31:22.443217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$u6Bx7Ii.cp2y2.3x0zJ45ucQaTBzKH3lPJs0x0J9k2avwEWjVSU3u"], ["created_at", "2015-03-20 05:31:22.447589"], ["updated_at", "2015-03-20 05:31:22.447589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.449270"], ["user_id", "5810eda0-cec2-11e4-8867-705681abff85"], ["created_at", "2015-03-20 05:31:22.450160"], ["updated_at", "2015-03-20 05:31:22.450160"], ["token", "7TO9sJL8NXLgHk-g12toIvOVnBy_ofLuzQRtOvInSCA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.454473"], ["updated_at", "2015-03-20 05:31:22.454473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5810eda0-cec2-11e4-8867-705681abff85' AND "clubhouse_memberships"."organization_id" = '5812a3ca-cec2-11e4-beaf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5810eda0-cec2-11e4-8867-705681abff85"], ["organization_id", "5812a3ca-cec2-11e4-beaf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.457885"], ["updated_at", "2015-03-20 05:31:22.457885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58119566-cec2-11e4-b07a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5812a3ca-cec2-11e4-beaf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58119566-cec2-11e4-b07a-705681abff85"], ["organization_id", "5812a3ca-cec2-11e4-beaf-705681abff85"], ["created_at", "2015-03-20 05:31:22.460842"], ["updated_at", "2015-03-20 05:31:22.460842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$ZVDtU7qtppaI/zNtngPfheJpvVw/tJqI6wxVzylPryT.rXg9xO6v2"], ["created_at", "2015-03-20 05:31:22.464996"], ["updated_at", "2015-03-20 05:31:22.464996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.466528"], ["user_id", "58143e06-cec2-11e4-b671-705681abff85"], ["created_at", "2015-03-20 05:31:22.467500"], ["updated_at", "2015-03-20 05:31:22.467500"], ["token", "yaHRwKZ4RJXZz6wNIO9yuC0C27HXdnXBFsEYlNFygUE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '5812a3ca-cec2-11e4-beaf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "5812a3ca-cec2-11e4-beaf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.471343"], ["updated_at", "2015-03-20 05:31:22.471343"], ["token", "23NZDWouRauYFyllFeQdcJpSw2OIY2k6NBWYYODMYPQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$FxSw4qrjHPEVk03YVEQUGOxnMJbd2F/aUw11l3mseXcAysJNPqHpu"], ["created_at", "2015-03-20 05:31:22.481947"], ["updated_at", "2015-03-20 05:31:22.481947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$5/RlSiIMJ/EkReO8aqTot.Gctfl2XJDWHrr.rd5bAG0aPjugDuDQS"], ["created_at", "2015-03-20 05:31:22.486800"], ["updated_at", "2015-03-20 05:31:22.486800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.488646"], ["user_id", "5816dbac-cec2-11e4-8f5d-705681abff85"], ["created_at", "2015-03-20 05:31:22.489479"], ["updated_at", "2015-03-20 05:31:22.489479"], ["token", "zbKxpu2nVmEsS4vYJ5Yk2kJmf6z6XsGeryuOLBDtDkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.493039"], ["updated_at", "2015-03-20 05:31:22.493039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5816dbac-cec2-11e4-8f5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '581883e4-cec2-11e4-ba29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5816dbac-cec2-11e4-8f5d-705681abff85"], ["organization_id", "581883e4-cec2-11e4-ba29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.496399"], ["updated_at", "2015-03-20 05:31:22.496399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58179a24-cec2-11e4-bec8-705681abff85' AND "clubhouse_memberships"."organization_id" = '581883e4-cec2-11e4-ba29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58179a24-cec2-11e4-bec8-705681abff85"], ["organization_id", "581883e4-cec2-11e4-ba29-705681abff85"], ["created_at", "2015-03-20 05:31:22.499678"], ["updated_at", "2015-03-20 05:31:22.499678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$hF2GptXF3KNOtVPJv6GeDOY3u4PUohp8fcG0jzplEcsC7jsM6lO/u"], ["created_at", "2015-03-20 05:31:22.504530"], ["updated_at", "2015-03-20 05:31:22.504530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.506177"], ["user_id", "581a4a26-cec2-11e4-b9c6-705681abff85"], ["created_at", "2015-03-20 05:31:22.506977"], ["updated_at", "2015-03-20 05:31:22.506977"], ["token", "cwmZlhhPpvHJ2BYaZlf1F13HwMMXT3fuBkP1rXqBnrY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '581883e4-cec2-11e4-ba29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "581883e4-cec2-11e4-ba29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.510639"], ["updated_at", "2015-03-20 05:31:22.510639"], ["token", "Rmd5WP2ephaqP8tLDInMqV1mJjkJrSc4f8rlRFmvDug"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Rmd5WP2ephaqP8tLDInMqV1mJjkJrSc4f8rlRFmvDug", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.516228' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cwmZlhhPpvHJ2BYaZlf1F13HwMMXT3fuBkP1rXqBnrY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.517682"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.518733"], ["id", "581aac6e-cec2-11e4-ac68-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "581a4a26-cec2-11e4-b9c6-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "Rmd5WP2ephaqP8tLDInMqV1mJjkJrSc4f8rlRFmvDug"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "581883e4-cec2-11e4-ba29-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '581a4a26-cec2-11e4-b9c6-705681abff85' AND "clubhouse_memberships"."organization_id" = '581883e4-cec2-11e4-ba29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "581883e4-cec2-11e4-ba29-705681abff85"], ["member_id", "581a4a26-cec2-11e4-b9c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.525539"], ["updated_at", "2015-03-20 05:31:22.525539"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "581b386e-cec2-11e4-be60-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 12ms  (0.2ms) ROLLBACK  (3.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$SbEzlPn7GDzMj4dAkJScO.ZdeMPlJ//6EkdEzofj4fZ9xqaLnxKLi"], ["created_at", "2015-03-20 05:31:22.541297"], ["updated_at", "2015-03-20 05:31:22.541297"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$CZduZIHDT8MEQkdP4WTAHu8T2x.011Hb.H9EoOdVu2iIaN07fepbO"], ["created_at", "2015-03-20 05:31:22.548380"], ["updated_at", "2015-03-20 05:31:22.548380"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.551052"], ["user_id", "581fff84-cec2-11e4-9fd6-705681abff85"], ["created_at", "2015-03-20 05:31:22.552102"], ["updated_at", "2015-03-20 05:31:22.552102"], ["token", "MGpfsFJYXf04KD50gjFccdLfx2FNRY4Z8rvZlIANvSw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.556370"], ["updated_at", "2015-03-20 05:31:22.556370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '581fff84-cec2-11e4-9fd6-705681abff85' AND "clubhouse_memberships"."organization_id" = '582239fc-cec2-11e4-ba91-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "581fff84-cec2-11e4-9fd6-705681abff85"], ["organization_id", "582239fc-cec2-11e4-ba91-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.559996"], ["updated_at", "2015-03-20 05:31:22.559996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '582104c4-cec2-11e4-b792-705681abff85' AND "clubhouse_memberships"."organization_id" = '582239fc-cec2-11e4-ba91-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "582104c4-cec2-11e4-b792-705681abff85"], ["organization_id", "582239fc-cec2-11e4-ba91-705681abff85"], ["created_at", "2015-03-20 05:31:22.562821"], ["updated_at", "2015-03-20 05:31:22.562821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$XYgY9cQ.ZpE3oJ6NK34laeJPHg/G68IUtS//AvTO0Sx6HQBv3Sngy"], ["created_at", "2015-03-20 05:31:22.567838"], ["updated_at", "2015-03-20 05:31:22.567838"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.570627"], ["user_id", "5823f7ce-cec2-11e4-968f-705681abff85"], ["created_at", "2015-03-20 05:31:22.571765"], ["updated_at", "2015-03-20 05:31:22.571765"], ["token", "AVzbF-BZ45U47GMPHwyb6PrgjaKacUt7bCOD3aMNTuY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '582239fc-cec2-11e4-ba91-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "582239fc-cec2-11e4-ba91-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.575578"], ["updated_at", "2015-03-20 05:31:22.575578"], ["token", "OCl1dIj_KsZkwdZu2207GTIXc60LZHWXEM8oI75tcQI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.580131' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AVzbF-BZ45U47GMPHwyb6PrgjaKacUt7bCOD3aMNTuY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.582167"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.583335"], ["id", "582495d0-cec2-11e4-81ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5823f7ce-cec2-11e4-968f-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$fkFWZGDkjfqOq7IYWQqJHO.tmmY833jwDpKDC6A.s7vYkSZx6NUVu"], ["created_at", "2015-03-20 05:31:22.594955"], ["updated_at", "2015-03-20 05:31:22.594955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.596734"], ["user_id", "58281430-cec2-11e4-8171-705681abff85"], ["created_at", "2015-03-20 05:31:22.597478"], ["updated_at", "2015-03-20 05:31:22.597478"], ["token", "Y8wLNwwF0wvrg7z0SukhDNhGL5nDIj_j45hsviDRNBU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.600989"], ["updated_at", "2015-03-20 05:31:22.600989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58281430-cec2-11e4-8171-705681abff85' AND "clubhouse_memberships"."organization_id" = '5828ff1c-cec2-11e4-afeb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58281430-cec2-11e4-8171-705681abff85"], ["organization_id", "5828ff1c-cec2-11e4-afeb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.604298"], ["updated_at", "2015-03-20 05:31:22.604298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$AUEBbv1oSCfT7t/Vr.Dc8.Xwn9hTaRwA7XTGuvzi3Ww1r4id9W5OS"], ["created_at", "2015-03-20 05:31:22.609864"], ["updated_at", "2015-03-20 05:31:22.609864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.613807"], ["updated_at", "2015-03-20 05:31:22.613807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '582a6e92-cec2-11e4-9754-705681abff85' AND "clubhouse_memberships"."organization_id" = '582af6a0-cec2-11e4-a45a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "582a6e92-cec2-11e4-9754-705681abff85"], ["organization_id", "582af6a0-cec2-11e4-a45a-705681abff85"], ["created_at", "2015-03-20 05:31:22.617334"], ["updated_at", "2015-03-20 05:31:22.617334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$1tE3Jcy9NsEQjfJFMDJNmuNWcrkhIlXYrSdT8cYkmxUBEMQwQftq6"], ["created_at", "2015-03-20 05:31:22.634705"], ["updated_at", "2015-03-20 05:31:22.634705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.637123"], ["user_id", "582e38ec-cec2-11e4-936f-705681abff85"], ["created_at", "2015-03-20 05:31:22.637925"], ["updated_at", "2015-03-20 05:31:22.637925"], ["token", "eQQbt2dJ8dYx9BmdyzpCfLJjZ7Y_38Y0E3Thbga2oRE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.641246"], ["updated_at", "2015-03-20 05:31:22.641246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '582e38ec-cec2-11e4-936f-705681abff85' AND "clubhouse_memberships"."organization_id" = '582f2072-cec2-11e4-8014-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "582e38ec-cec2-11e4-936f-705681abff85"], ["organization_id", "582f2072-cec2-11e4-8014-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.644335"], ["updated_at", "2015-03-20 05:31:22.644335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$KbZ1in0F1.cBFbbRN/rbg.Fzw0YgBMcDtb9bU6/TAuCWTp4euc7.e"], ["created_at", "2015-03-20 05:31:22.648503"], ["updated_at", "2015-03-20 05:31:22.648503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.651863"], ["updated_at", "2015-03-20 05:31:22.651863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58303cb4-cec2-11e4-85d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5830c2f6-cec2-11e4-bf20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58303cb4-cec2-11e4-85d5-705681abff85"], ["organization_id", "5830c2f6-cec2-11e4-bf20-705681abff85"], ["created_at", "2015-03-20 05:31:22.655018"], ["updated_at", "2015-03-20 05:31:22.655018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.659512' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eQQbt2dJ8dYx9BmdyzpCfLJjZ7Y_38Y0E3Thbga2oRE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.660942"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.661849"], ["id", "582ea930-cec2-11e4-8e8b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "582e38ec-cec2-11e4-936f-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "582e38ec-cec2-11e4-936f-705681abff85"]] Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$WKUppO5WUVaoZ1LpBvyQGeY5E4IwpXV7wExB/LpvUNVol3RAP/CS."], ["created_at", "2015-03-20 05:31:22.677273"], ["updated_at", "2015-03-20 05:31:22.677273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.678866"], ["user_id", "5834a3bc-cec2-11e4-8837-705681abff85"], ["created_at", "2015-03-20 05:31:22.679634"], ["updated_at", "2015-03-20 05:31:22.679634"], ["token", "FmLDl_9xz8upZLjcNudG818aZWWdMnpPe937RIXWC9o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.682842"], ["updated_at", "2015-03-20 05:31:22.682842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5834a3bc-cec2-11e4-8837-705681abff85' AND "clubhouse_memberships"."organization_id" = '58357e5e-cec2-11e4-b1b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5834a3bc-cec2-11e4-8837-705681abff85"], ["organization_id", "58357e5e-cec2-11e4-b1b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.686962"], ["updated_at", "2015-03-20 05:31:22.686962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$LM1QOhPAf7.jvFmup6NOH.bB4n7WWZNbz/EapcLzzanKDJ0BCdVmu"], ["created_at", "2015-03-20 05:31:22.698802"], ["updated_at", "2015-03-20 05:31:22.698802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.700456"], ["user_id", "5837ec2a-cec2-11e4-85e2-705681abff85"], ["created_at", "2015-03-20 05:31:22.701286"], ["updated_at", "2015-03-20 05:31:22.701286"], ["token", "SBuijMOdKngteKpRaM1UFtPfdbA1Q5XDrb3B2lFX3UI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.704832"], ["updated_at", "2015-03-20 05:31:22.704832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5837ec2a-cec2-11e4-85e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5838d4be-cec2-11e4-8efe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5837ec2a-cec2-11e4-85e2-705681abff85"], ["organization_id", "5838d4be-cec2-11e4-8efe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.708112"], ["updated_at", "2015-03-20 05:31:22.708112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/5838d4be-cec2-11e4-8efe-705681abff85" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"5838d4be-cec2-11e4-8efe-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.713245' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SBuijMOdKngteKpRaM1UFtPfdbA1Q5XDrb3B2lFX3UI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.714643"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.715598"], ["id", "583855ac-cec2-11e4-bcbc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5838d4be-cec2-11e4-8efe-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5837ec2a-cec2-11e4-85e2-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5837ec2a-cec2-11e4-85e2-705681abff85' LIMIT 1 [["organization_id", "5838d4be-cec2-11e4-8efe-705681abff85"]] Completed 200 OK in 19ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$VNd6goGCGr0GO7mW5.v0p.1GrVJhkw7mnpAnRg/KEeT/fE8itHBmq"], ["created_at", "2015-03-20 05:31:22.738600"], ["updated_at", "2015-03-20 05:31:22.738600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.741284"], ["user_id", "583e1618-cec2-11e4-8b5f-705681abff85"], ["created_at", "2015-03-20 05:31:22.742391"], ["updated_at", "2015-03-20 05:31:22.742391"], ["token", "4TS6Irl1A2pGRE0nl7zkM9oR6XxGbk5LANwyNtNLlWU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.746017"], ["updated_at", "2015-03-20 05:31:22.746017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '583e1618-cec2-11e4-8b5f-705681abff85' AND "clubhouse_memberships"."organization_id" = '583f2e7c-cec2-11e4-8260-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "583e1618-cec2-11e4-8b5f-705681abff85"], ["organization_id", "583f2e7c-cec2-11e4-8260-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.749953"], ["updated_at", "2015-03-20 05:31:22.749953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$93S.uaEreP74dUeUJb8WueSzU2R/HFO7PcPsuCnFIMBZonJljLcNG"], ["created_at", "2015-03-20 05:31:22.762937"], ["updated_at", "2015-03-20 05:31:22.762937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.765363"], ["user_id", "5841b516-cec2-11e4-9ea3-705681abff85"], ["created_at", "2015-03-20 05:31:22.766371"], ["updated_at", "2015-03-20 05:31:22.766371"], ["token", "t0EcydUi2oMAjF-hYoyZdHUUAdnjHDfh7Sqv2Q-nSwk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.771808"], ["updated_at", "2015-03-20 05:31:22.771808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5841b516-cec2-11e4-9ea3-705681abff85' AND "clubhouse_memberships"."organization_id" = '58431fd2-cec2-11e4-ad36-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5841b516-cec2-11e4-9ea3-705681abff85"], ["organization_id", "58431fd2-cec2-11e4-ad36-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.779072"], ["updated_at", "2015-03-20 05:31:22.779072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.783993' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "t0EcydUi2oMAjF-hYoyZdHUUAdnjHDfh7Sqv2Q-nSwk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.786806"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.789184"], ["id", "5842557a-cec2-11e4-98bd-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5841b516-cec2-11e4-9ea3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5841b516-cec2-11e4-9ea3-705681abff85' LIMIT 1 [["organization_id", "58431fd2-cec2-11e4-ad36-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '58431fd2-cec2-11e4-ad36-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:31:22.798308"], ["id", "58431fd2-cec2-11e4-ad36-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.6ms | ActiveRecord: 2.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$JnwjAR/uQPJTWEY3cmoKqu.hL3DzTJx9Wah.sLmw0.z6Zz32moTvy"], ["created_at", "2015-03-20 05:31:22.809656"], ["updated_at", "2015-03-20 05:31:22.809656"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.812825"], ["user_id", "5848e8f4-cec2-11e4-be37-705681abff85"], ["created_at", "2015-03-20 05:31:22.813686"], ["updated_at", "2015-03-20 05:31:22.813686"], ["token", "GpjQWZfP64LsFfKVYpeEXmt75Yv4czpg714jp_v25Jg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.818772"], ["updated_at", "2015-03-20 05:31:22.818772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5848e8f4-cec2-11e4-be37-705681abff85' AND "clubhouse_memberships"."organization_id" = '584a4154-cec2-11e4-a0fa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5848e8f4-cec2-11e4-be37-705681abff85"], ["organization_id", "584a4154-cec2-11e4-a0fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.823301"], ["updated_at", "2015-03-20 05:31:22.823301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-25" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-25", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.831433' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GpjQWZfP64LsFfKVYpeEXmt75Yv4czpg714jp_v25Jg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.833174"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.834303"], ["id", "584992a4-cec2-11e4-8bca-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-25"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5848e8f4-cec2-11e4-be37-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5848e8f4-cec2-11e4-be37-705681abff85' LIMIT 1 [["organization_id", "584a4154-cec2-11e4-a0fa-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '584a4154-cec2-11e4-a0fa-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$P3P87XoKLzWUdLeZNspc0OWa5p0M3NBM1EZ9ViQAgmarFQwdRMGlC"], ["created_at", "2015-03-20 05:31:22.853837"], ["updated_at", "2015-03-20 05:31:22.853837"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.857353"], ["user_id", "584fa2fc-cec2-11e4-ac3b-705681abff85"], ["created_at", "2015-03-20 05:31:22.859608"], ["updated_at", "2015-03-20 05:31:22.859608"], ["token", "Rehv2X1YKkkOKEm8yuCeZuGk0JBGlUPVf3uI9BU82qE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.865420"], ["updated_at", "2015-03-20 05:31:22.865420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '584fa2fc-cec2-11e4-ac3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '58515e6c-cec2-11e4-85f5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "584fa2fc-cec2-11e4-ac3b-705681abff85"], ["organization_id", "58515e6c-cec2-11e4-85f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.870625"], ["updated_at", "2015-03-20 05:31:22.870625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$fMvs9yTMNwYtBmp1uAReJOv6c8JwCrYLWI1KtRXA3mHaAFNwBqtzS"], ["created_at", "2015-03-20 05:31:22.883645"], ["updated_at", "2015-03-20 05:31:22.883645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.885617"], ["user_id", "585424a8-cec2-11e4-afc7-705681abff85"], ["created_at", "2015-03-20 05:31:22.886472"], ["updated_at", "2015-03-20 05:31:22.886472"], ["token", "4VQ3fI6lP90aBOK5urhlseUw4C_84hOpfFejPutCHUk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.891879"], ["updated_at", "2015-03-20 05:31:22.891879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '585424a8-cec2-11e4-afc7-705681abff85' AND "clubhouse_memberships"."organization_id" = '585563c2-cec2-11e4-838e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "585424a8-cec2-11e4-afc7-705681abff85"], ["organization_id", "585563c2-cec2-11e4-838e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.895761"], ["updated_at", "2015-03-20 05:31:22.895761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-27" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-27", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.901649' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4VQ3fI6lP90aBOK5urhlseUw4C_84hOpfFejPutCHUk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.903435"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.905680"], ["id", "58549c76-cec2-11e4-89ce-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-27"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "585424a8-cec2-11e4-afc7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '585424a8-cec2-11e4-afc7-705681abff85' LIMIT 1 [["organization_id", "585563c2-cec2-11e4-838e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "585563c2-cec2-11e4-838e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$7xeIgaF0CXYEIDVuFeezCuZc.eKZxgn7IbAaJy2DQgcHKA77RPhTm"], ["created_at", "2015-03-20 05:31:22.919043"], ["updated_at", "2015-03-20 05:31:22.919043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.920905"], ["user_id", "58598d62-cec2-11e4-8641-705681abff85"], ["created_at", "2015-03-20 05:31:22.921881"], ["updated_at", "2015-03-20 05:31:22.921881"], ["token", "z1dDNGVe_1NchwcnlicJNO5t-dvENKMNznzjW0_vySU"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.926738"], ["updated_at", "2015-03-20 05:31:22.926738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58598d62-cec2-11e4-8641-705681abff85' AND "clubhouse_memberships"."organization_id" = '585ab70a-cec2-11e4-a537-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58598d62-cec2-11e4-8641-705681abff85"], ["organization_id", "585ab70a-cec2-11e4-a537-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.930109"], ["updated_at", "2015-03-20 05:31:22.930109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$R0SZwZcLpewGPwfC3sh4aOG0l0itcxJU3LUkO38eUjdXz3fBCQyVy"], ["created_at", "2015-03-20 05:31:22.943054"], ["updated_at", "2015-03-20 05:31:22.943054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.944740"], ["user_id", "585d3282-cec2-11e4-beca-705681abff85"], ["created_at", "2015-03-20 05:31:22.945556"], ["updated_at", "2015-03-20 05:31:22.945556"], ["token", "pc3glacff3wSnb_8XhwzgpBygKQx8s6eB0hqkKf_DOU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.950314"], ["updated_at", "2015-03-20 05:31:22.950314"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '585d3282-cec2-11e4-beca-705681abff85' AND "clubhouse_memberships"."organization_id" = '585e741c-cec2-11e4-8ee6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "585d3282-cec2-11e4-beca-705681abff85"], ["organization_id", "585e741c-cec2-11e4-8ee6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.956655"], ["updated_at", "2015-03-20 05:31:22.956655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-29" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-29", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.961977' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pc3glacff3wSnb_8XhwzgpBygKQx8s6eB0hqkKf_DOU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.963396"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.964326"], ["id", "585d9ccc-cec2-11e4-aa5f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-29"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "585d3282-cec2-11e4-beca-705681abff85"]] Completed 200 OK in 7ms (ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$cxtNa/FB6QApqKy8jye1ee7pCIVKFs9iXD7cOf2XaQI9mx5mUf9/."], ["created_at", "2015-03-20 05:31:22.976455"], ["updated_at", "2015-03-20 05:31:22.976455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:22.978501"], ["user_id", "58625640-cec2-11e4-8b97-705681abff85"], ["created_at", "2015-03-20 05:31:22.979245"], ["updated_at", "2015-03-20 05:31:22.979245"], ["token", "oiNdg00M1BLD_n3bUBMSOn2ESdyy85o1LbZCzTVBbnA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:22.982619"], ["updated_at", "2015-03-20 05:31:22.982619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58625640-cec2-11e4-8b97-705681abff85' AND "clubhouse_memberships"."organization_id" = '5863395c-cec2-11e4-b129-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58625640-cec2-11e4-8b97-705681abff85"], ["organization_id", "5863395c-cec2-11e4-b129-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:22.986289"], ["updated_at", "2015-03-20 05:31:22.986289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 22:31:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:22.992493' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oiNdg00M1BLD_n3bUBMSOn2ESdyy85o1LbZCzTVBbnA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:22.993923"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:22.994836"], ["id", "5862bbbc-cec2-11e4-8d3e-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$oXqSB2frDMtw7NkqrYsnn.ZoRPUrQ0vMmvRoA3kqkk.92tzg72Zju"], ["created_at", "2015-03-20 05:31:23.002850"], ["updated_at", "2015-03-20 05:31:23.002850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.004634"], ["user_id", "586656aa-cec2-11e4-9118-705681abff85"], ["created_at", "2015-03-20 05:31:23.005383"], ["updated_at", "2015-03-20 05:31:23.005383"], ["token", "tk1KYZvSBKpUZNSOACioa6GT6ayMyykhBlbw_oRjqH0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.009113"], ["updated_at", "2015-03-20 05:31:23.009113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '586656aa-cec2-11e4-9118-705681abff85' AND "clubhouse_memberships"."organization_id" = '586749a2-cec2-11e4-809f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "586656aa-cec2-11e4-9118-705681abff85"], ["organization_id", "586749a2-cec2-11e4-809f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.012851"], ["updated_at", "2015-03-20 05:31:23.012851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:31:23 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$0Qg83dHwRb1ppokAq1npd.WW6ZrXLZ3dlgVwNFxMlxr55bE2o2hCm"], ["created_at", "2015-03-20 05:31:23.023565"], ["updated_at", "2015-03-20 05:31:23.023565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.025190"], ["user_id", "58697b28-cec2-11e4-a6a8-705681abff85"], ["created_at", "2015-03-20 05:31:23.026488"], ["updated_at", "2015-03-20 05:31:23.026488"], ["token", "Evg36vL2jcbfY-ZpfRppcRYqnteMZwAQo0hIFFoVl8g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.030122"], ["updated_at", "2015-03-20 05:31:23.030122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58697b28-cec2-11e4-a6a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '586a792e-cec2-11e4-9e7c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58697b28-cec2-11e4-a6a8-705681abff85"], ["organization_id", "586a792e-cec2-11e4-9e7c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.033513"], ["updated_at", "2015-03-20 05:31:23.033513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:31:23 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:23.038757' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Evg36vL2jcbfY-ZpfRppcRYqnteMZwAQo0hIFFoVl8g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:23.040242"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:23.041409"], ["id", "5869f88c-cec2-11e4-8ac9-705681abff85"]]  (5.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "58697b28-cec2-11e4-a6a8-705681abff85"]] Unpermitted parameter: organization  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.059036"], ["updated_at", "2015-03-20 05:31:23.059036"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "586ef486-cec2-11e4-a69d-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58697b28-cec2-11e4-a6a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '586ef486-cec2-11e4-a69d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58697b28-cec2-11e4-a6a8-705681abff85"], ["admin", "t"], ["organization_id", "586ef486-cec2-11e4-a69d-705681abff85"], ["created_at", "2015-03-20 05:31:23.064808"], ["updated_at", "2015-03-20 05:31:23.064808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 29ms (Views: 0.6ms | ActiveRecord: 8.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$sOcRr8VhHeWKmNimyj6mVu0q7qeCTRu78gm3ptvnxw5ozyWVT5XxC"], ["created_at", "2015-03-20 05:31:23.074797"], ["updated_at", "2015-03-20 05:31:23.074797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.076965"], ["user_id", "58715d3e-cec2-11e4-8fc0-705681abff85"], ["created_at", "2015-03-20 05:31:23.077759"], ["updated_at", "2015-03-20 05:31:23.077759"], ["token", "-F6XpNYScn7nyMaSjrWvukMCUd1X4RFIQeg59ppxli4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.081115"], ["updated_at", "2015-03-20 05:31:23.081115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58715d3e-cec2-11e4-8fc0-705681abff85' AND "clubhouse_memberships"."organization_id" = '58724050-cec2-11e4-8007-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58715d3e-cec2-11e4-8fc0-705681abff85"], ["organization_id", "58724050-cec2-11e4-8007-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.084428"], ["updated_at", "2015-03-20 05:31:23.084428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:31:23 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:23.089743' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-F6XpNYScn7nyMaSjrWvukMCUd1X4RFIQeg59ppxli4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:23.091177"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:23.092124"], ["id", "5871c4d6-cec2-11e4-8e51-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "58715d3e-cec2-11e4-8fc0-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$STiTjiKCWZSzjd3b.mqqreZbwI0PPoR5XB/hVa78caYu4FZOTfzUe"], ["created_at", "2015-03-20 05:31:23.104472"], ["updated_at", "2015-03-20 05:31:23.104472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.106123"], ["user_id", "5875d4e0-cec2-11e4-ac75-705681abff85"], ["created_at", "2015-03-20 05:31:23.107023"], ["updated_at", "2015-03-20 05:31:23.107023"], ["token", "7S2GPXRR-1IpA_x-quqHeVhkWrPWiY4zhddeeuEQtK0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.110968"], ["updated_at", "2015-03-20 05:31:23.110968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5875d4e0-cec2-11e4-ac75-705681abff85' AND "clubhouse_memberships"."organization_id" = '5876cecc-cec2-11e4-ac67-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5875d4e0-cec2-11e4-ac75-705681abff85"], ["organization_id", "5876cecc-cec2-11e4-ac67-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.114266"], ["updated_at", "2015-03-20 05:31:23.114266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 22:31:23 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$pigka9WZwL0JmvNerTHtH.UsE58WFr0xdIysxZyRAUk0FKi.Hq7Gm"], ["created_at", "2015-03-20 05:31:23.125045"], ["updated_at", "2015-03-20 05:31:23.125045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.126864"], ["user_id", "5878fc6a-cec2-11e4-80a5-705681abff85"], ["created_at", "2015-03-20 05:31:23.127673"], ["updated_at", "2015-03-20 05:31:23.127673"], ["token", "oBRcYJXSb6WsQxL6j-GmTaEsC6V4A2L8w3NSdbsoFAM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.131092"], ["updated_at", "2015-03-20 05:31:23.131092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5878fc6a-cec2-11e4-80a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5879e0b2-cec2-11e4-b66d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5878fc6a-cec2-11e4-80a5-705681abff85"], ["organization_id", "5879e0b2-cec2-11e4-b66d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.134356"], ["updated_at", "2015-03-20 05:31:23.134356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/5879e0b2-cec2-11e4-b66d-705681abff85" for 127.0.0.1 at 2015-03-19 22:31:23 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"5879e0b2-cec2-11e4-b66d-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:23.139716' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oBRcYJXSb6WsQxL6j-GmTaEsC6V4A2L8w3NSdbsoFAM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:23.141197"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:23.142216"], ["id", "587962e0-cec2-11e4-bc0c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5879e0b2-cec2-11e4-b66d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5878fc6a-cec2-11e4-80a5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5878fc6a-cec2-11e4-80a5-705681abff85' LIMIT 1 [["organization_id", "5879e0b2-cec2-11e4-b66d-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5879e0b2-cec2-11e4-b66d-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:31:23.148533"], ["id", "5879e0b2-cec2-11e4-b66d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$ZS52AGcHkMUDnT1UNJu5MOUlkjztW.YSyy.3WLz5Wr/Oq8M2nO3/K"], ["created_at", "2015-03-20 05:31:23.156697"], ["updated_at", "2015-03-20 05:31:23.156697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.158626"], ["user_id", "587dd1fe-cec2-11e4-9882-705681abff85"], ["created_at", "2015-03-20 05:31:23.159436"], ["updated_at", "2015-03-20 05:31:23.159436"], ["token", "mUuDd8FGu5BEzyFINw985Iufm7YWGywjeRC2cCEgsR4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.162910"], ["updated_at", "2015-03-20 05:31:23.162910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '587dd1fe-cec2-11e4-9882-705681abff85' AND "clubhouse_memberships"."organization_id" = '587ebb0a-cec2-11e4-a06a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "587dd1fe-cec2-11e4-9882-705681abff85"], ["organization_id", "587ebb0a-cec2-11e4-a06a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.166231"], ["updated_at", "2015-03-20 05:31:23.166231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/587ebb0a-cec2-11e4-a06a-705681abff85" for 127.0.0.1 at 2015-03-19 22:31:23 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"587ebb0a-cec2-11e4-a06a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:23.171612' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mUuDd8FGu5BEzyFINw985Iufm7YWGywjeRC2cCEgsR4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:23.173322"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:23.174394"], ["id", "587e3e46-cec2-11e4-be17-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "587ebb0a-cec2-11e4-a06a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "587dd1fe-cec2-11e4-9882-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '587dd1fe-cec2-11e4-9882-705681abff85' LIMIT 1 [["organization_id", "587ebb0a-cec2-11e4-a06a-705681abff85"]] Unpermitted parameters: id, organization  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '587ebb0a-cec2-11e4-a06a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$adR.IxiCY34i7S9H9roy5ue0P1VpWPV/aAV5hXypzY/3UCs5D0WZ."], ["created_at", "2015-03-20 05:31:23.201346"], ["updated_at", "2015-03-20 05:31:23.201346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.203266"], ["user_id", "58849e12-cec2-11e4-994f-705681abff85"], ["created_at", "2015-03-20 05:31:23.204094"], ["updated_at", "2015-03-20 05:31:23.204094"], ["token", "1NM2Dd9jzkSLCKE-JznLGjPbGSPp9ctY2Wa7NoXCImM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.208618"], ["updated_at", "2015-03-20 05:31:23.208618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58849e12-cec2-11e4-994f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5885b6e4-cec2-11e4-9f7f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58849e12-cec2-11e4-994f-705681abff85"], ["organization_id", "5885b6e4-cec2-11e4-9f7f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.211905"], ["updated_at", "2015-03-20 05:31:23.211905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 22:31:23 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$bPnyZncZo44F4fINqyrBhuFLXqzjPbwJpMy971j5nwIqAvD8T4MLu"], ["created_at", "2015-03-20 05:31:23.222494"], ["updated_at", "2015-03-20 05:31:23.222494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.225030"], ["user_id", "5887e05e-cec2-11e4-8bf2-705681abff85"], ["created_at", "2015-03-20 05:31:23.226077"], ["updated_at", "2015-03-20 05:31:23.226077"], ["token", "MRk44BIwnbdbbsssA3q2Q_u9AFv-DX3QLlhIARLSFJk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.229952"], ["updated_at", "2015-03-20 05:31:23.229952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5887e05e-cec2-11e4-8bf2-705681abff85' AND "clubhouse_memberships"."organization_id" = '5888fd5e-cec2-11e4-a378-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5887e05e-cec2-11e4-8bf2-705681abff85"], ["organization_id", "5888fd5e-cec2-11e4-a378-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.233944"], ["updated_at", "2015-03-20 05:31:23.233944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/5888fd5e-cec2-11e4-a378-705681abff85" for 127.0.0.1 at 2015-03-19 22:31:23 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"5888fd5e-cec2-11e4-a378-705681abff85", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:23.239540' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MRk44BIwnbdbbsssA3q2Q_u9AFv-DX3QLlhIARLSFJk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:23.240987"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:23.241948"], ["id", "58886c04-cec2-11e4-ad62-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5888fd5e-cec2-11e4-a378-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5887e05e-cec2-11e4-8bf2-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5887e05e-cec2-11e4-8bf2-705681abff85' LIMIT 1 [["organization_id", "5888fd5e-cec2-11e4-a378-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "5888fd5e-cec2-11e4-a378-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$gB723OZIbsncBrNw8Ksd/Oz3Ys2efpRcW4ihM11O.jV9wDATHuija"], ["created_at", "2015-03-20 05:31:23.252527"], ["updated_at", "2015-03-20 05:31:23.252527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.254756"], ["user_id", "588c6d90-cec2-11e4-97f4-705681abff85"], ["created_at", "2015-03-20 05:31:23.255531"], ["updated_at", "2015-03-20 05:31:23.255531"], ["token", "Pzjq5UytvAJCvrjRxbTeqNavaN0QbWLGv85jxdaQnrU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.259483"], ["updated_at", "2015-03-20 05:31:23.259483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '588c6d90-cec2-11e4-97f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '588d78e8-cec2-11e4-a09e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "588c6d90-cec2-11e4-97f4-705681abff85"], ["organization_id", "588d78e8-cec2-11e4-a09e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.262736"], ["updated_at", "2015-03-20 05:31:23.262736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 22:31:23 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$UUjS.WraX4dZdAGGuO0lXOnzkSlXC8BkTKL7AoMAjy3McQI6xl34y"], ["created_at", "2015-03-20 05:31:23.274498"], ["updated_at", "2015-03-20 05:31:23.274498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.276091"], ["user_id", "588fc530-cec2-11e4-b257-705681abff85"], ["created_at", "2015-03-20 05:31:23.276859"], ["updated_at", "2015-03-20 05:31:23.276859"], ["token", "NemRFZPoVCuF10LIvAxjTA_Zjk0ZfcqRoKi9uoHaVmI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.281211"], ["updated_at", "2015-03-20 05:31:23.281211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '588fc530-cec2-11e4-b257-705681abff85' AND "clubhouse_memberships"."organization_id" = '5890ca7a-cec2-11e4-9d8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "588fc530-cec2-11e4-b257-705681abff85"], ["organization_id", "5890ca7a-cec2-11e4-9d8a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.285245"], ["updated_at", "2015-03-20 05:31:23.285245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-40" for 127.0.0.1 at 2015-03-19 22:31:23 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-40", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:23.291265' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NemRFZPoVCuF10LIvAxjTA_Zjk0ZfcqRoKi9uoHaVmI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:23.292781"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:23.293751"], ["id", "589026d8-cec2-11e4-88cd-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-40"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "588fc530-cec2-11e4-b257-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '588fc530-cec2-11e4-b257-705681abff85' LIMIT 1 [["organization_id", "5890ca7a-cec2-11e4-9d8a-705681abff85"]] Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.331948"], ["updated_at", "2015-03-20 05:31:23.331948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '58988a12-cec2-11e4-8c81-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "58988a12-cec2-11e4-8c81-705681abff85"], ["created_at", "2015-03-20 05:31:23.334992"], ["updated_at", "2015-03-20 05:31:23.334992"], ["token", "QBtQbc6WJdctGqLsrOzXBUFwJJWMx7lL3JtJ37byFXc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.342879"], ["updated_at", "2015-03-20 05:31:23.342879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '589a4082-cec2-11e4-a6fa-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "589a4082-cec2-11e4-a6fa-705681abff85"], ["created_at", "2015-03-20 05:31:23.361617"], ["updated_at", "2015-03-20 05:31:23.361617"], ["token", "SX-PGaWnjk0toWocRrm4Wp8Xeg4CHHwRmSnIweYWcr4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "589a4082-cec2-11e4-a6fa-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '589a4082-cec2-11e4-a6fa-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "589a4082-cec2-11e4-a6fa-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '589a4082-cec2-11e4-a6fa-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$1psTHmKLGy3aBXZdX.OwLesF1ZmfJ2dsPHFIwGokmasccyqxOE7Hi"], ["created_at", "2015-03-20 05:31:23.387029"], ["updated_at", "2015-03-20 05:31:23.387029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.390403"], ["updated_at", "2015-03-20 05:31:23.390403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '58a170e6-cec2-11e4-96ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "58a170e6-cec2-11e4-96ea-705681abff85"], ["created_at", "2015-03-20 05:31:23.393935"], ["updated_at", "2015-03-20 05:31:23.393935"], ["token", "yIPD8qIxM38IPpTN1i30mFDPzUAt2EMaSrPobneqe-4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58a0f3d2-cec2-11e4-98e6-705681abff85' LIMIT 1 [["organization_id", "58a170e6-cec2-11e4-96ea-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$pnbcnnXsnQ8uoq1vLpJAOufgVBZXaplXbZQvq5FqGOq00nQMi72Uu"], ["created_at", "2015-03-20 05:31:23.401071"], ["updated_at", "2015-03-20 05:31:23.401071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.404132"], ["updated_at", "2015-03-20 05:31:23.404132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '58a38ade-cec2-11e4-9e08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "58a38ade-cec2-11e4-9e08-705681abff85"], ["created_at", "2015-03-20 05:31:23.407607"], ["updated_at", "2015-03-20 05:31:23.407607"], ["token", "5ov4Sxmvav-QsgD5s3ZsEm6YbdC7d70Kytlil5edI0s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58a31310-cec2-11e4-9f18-705681abff85' LIMIT 1 [["organization_id", "58a38ade-cec2-11e4-9e08-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$Bd3D4iAy1hl8l.AQQLqOXuKcz0xqVinrfMV/URryj7UTRKMBVx6z2"], ["created_at", "2015-03-20 05:31:23.414959"], ["updated_at", "2015-03-20 05:31:23.414959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.418379"], ["updated_at", "2015-03-20 05:31:23.418379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '58a5beee-cec2-11e4-b51b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "58a5beee-cec2-11e4-b51b-705681abff85"], ["created_at", "2015-03-20 05:31:23.422452"], ["updated_at", "2015-03-20 05:31:23.422452"], ["token", "O_baXdpcK8u0CqKBeWXyOVBjzsnY9ObY0H3jzAvQpaE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58a53258-cec2-11e4-a4de-705681abff85' LIMIT 1 [["organization_id", "58a5beee-cec2-11e4-b51b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$y.e/YTiKaIUEdGzj7mkWGOe9eN2qnPOH8J9KwsTfqKvbJZMZDszPi"], ["created_at", "2015-03-20 05:31:23.430695"], ["updated_at", "2015-03-20 05:31:23.430695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.433833"], ["updated_at", "2015-03-20 05:31:23.433833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '58a81266-cec2-11e4-91b5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "58a81266-cec2-11e4-91b5-705681abff85"], ["created_at", "2015-03-20 05:31:23.437462"], ["updated_at", "2015-03-20 05:31:23.437462"], ["token", "UrDeYPa0mcFzOwnprham0K5p4JPP5odTPYBTAP8nlY8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58a79958-cec2-11e4-a123-705681abff85' LIMIT 1 [["organization_id", "58a81266-cec2-11e4-91b5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$K/UGTD3ExPN15jGTkaoVW.R2pQg0kuDeNmOr2VlZK.7ROreMT/jca"], ["created_at", "2015-03-20 05:31:23.444951"], ["updated_at", "2015-03-20 05:31:23.444951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.448067"], ["updated_at", "2015-03-20 05:31:23.448067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58a9c642-cec2-11e4-be9a-705681abff85' LIMIT 1 [["organization_id", "58aa3d98-cec2-11e4-8aee-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$7CzJvMauygsuCf1lPLnDbu6JBBid.YXS/g/UFSivkaRkRSwMr2uj."], ["created_at", "2015-03-20 05:31:23.456273"], ["updated_at", "2015-03-20 05:31:23.456273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.459641"], ["updated_at", "2015-03-20 05:31:23.459641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58ab8306-cec2-11e4-96a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '58ac01f0-cec2-11e4-a170-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58ab8306-cec2-11e4-96a5-705681abff85"], ["organization_id", "58ac01f0-cec2-11e4-a170-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.463515"], ["updated_at", "2015-03-20 05:31:23.463515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '58ac01f0-cec2-11e4-a170-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "58ac01f0-cec2-11e4-a170-705681abff85"], ["created_at", "2015-03-20 05:31:23.468039"], ["updated_at", "2015-03-20 05:31:23.468039"], ["token", "QVqjhdtYhoYOyQXfofpyqaaEk6Jr2F07S0cL7kuGqEA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58ab8306-cec2-11e4-96a5-705681abff85' LIMIT 1 [["organization_id", "58ac01f0-cec2-11e4-a170-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$xuXOZj0VJZUc/eCEYuy.B.8MkO7fMBMBDkTkzHk/xjpMwI/hYCzMa"], ["created_at", "2015-03-20 05:31:23.476171"], ["updated_at", "2015-03-20 05:31:23.476171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.479801"], ["updated_at", "2015-03-20 05:31:23.479801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58ae8cfe-cec2-11e4-b256-705681abff85' AND "clubhouse_memberships"."organization_id" = '58af15de-cec2-11e4-9b43-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58ae8cfe-cec2-11e4-b256-705681abff85"], ["organization_id", "58af15de-cec2-11e4-9b43-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.483032"], ["updated_at", "2015-03-20 05:31:23.483032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '58af15de-cec2-11e4-9b43-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "58af15de-cec2-11e4-9b43-705681abff85"], ["created_at", "2015-03-20 05:31:23.486305"], ["updated_at", "2015-03-20 05:31:23.486305"], ["token", "t7jg5AW8bfLPaBaI-0A3OZyulYP7OR4uwOVvwBQ_rgs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58ae8cfe-cec2-11e4-b256-705681abff85' LIMIT 1 [["organization_id", "58af15de-cec2-11e4-9b43-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$uS/lpa6U87eFoZB38KgaWu6y3EDKHDotqg4ChxPdh8azppZ0ndnYS"], ["created_at", "2015-03-20 05:31:23.493580"], ["updated_at", "2015-03-20 05:31:23.493580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.496714"], ["updated_at", "2015-03-20 05:31:23.496714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b131d4-cec2-11e4-ae91-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b1a97a-cec2-11e4-b938-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58b131d4-cec2-11e4-ae91-705681abff85"], ["organization_id", "58b1a97a-cec2-11e4-b938-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.499914"], ["updated_at", "2015-03-20 05:31:23.499914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '58b1a97a-cec2-11e4-b938-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "58b1a97a-cec2-11e4-b938-705681abff85"], ["created_at", "2015-03-20 05:31:23.503362"], ["updated_at", "2015-03-20 05:31:23.503362"], ["token", "VCm9ceQAKhcIzNm6ugyu92NW65PAVcpKmb9t1EUyYMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58b131d4-cec2-11e4-ae91-705681abff85' LIMIT 1 [["organization_id", "58b1a97a-cec2-11e4-b938-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$Adu84yqlJj.QxDdpG5KSfuj8UahDRmf/zVb.2rErMr/2XFtwfWAWu"], ["created_at", "2015-03-20 05:31:23.511363"], ["updated_at", "2015-03-20 05:31:23.511363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.514636"], ["updated_at", "2015-03-20 05:31:23.514636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b3e938-cec2-11e4-b444-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b466ba-cec2-11e4-bf50-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58b3e938-cec2-11e4-b444-705681abff85"], ["organization_id", "58b466ba-cec2-11e4-bf50-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.517876"], ["updated_at", "2015-03-20 05:31:23.517876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '58b466ba-cec2-11e4-bf50-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "58b466ba-cec2-11e4-bf50-705681abff85"], ["created_at", "2015-03-20 05:31:23.521241"], ["updated_at", "2015-03-20 05:31:23.521241"], ["token", "zba44b30bNG_pkkz8ImK_oF5SeS8KsMXxPgB6o_oVq8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58b3e938-cec2-11e4-b444-705681abff85' LIMIT 1 [["organization_id", "58b466ba-cec2-11e4-bf50-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$ByQ7YjAPjQpBl3LCVIWyOOF94cIiIF0A3i89GQKMnWgi1Yed3jOS2"], ["created_at", "2015-03-20 05:31:23.529128"], ["updated_at", "2015-03-20 05:31:23.529128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.532196"], ["updated_at", "2015-03-20 05:31:23.532196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b69f20-cec2-11e4-af44-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b7134c-cec2-11e4-b0cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58b69f20-cec2-11e4-af44-705681abff85"], ["organization_id", "58b7134c-cec2-11e4-b0cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.535319"], ["updated_at", "2015-03-20 05:31:23.535319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58b69f20-cec2-11e4-af44-705681abff85' LIMIT 1 [["organization_id", "58b7134c-cec2-11e4-b0cb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$hboYrxj7nYhJhwvC7.QM/emuDmm4gYKdY7MONjGgReuOagi.5OF6O"], ["created_at", "2015-03-20 05:31:23.542700"], ["updated_at", "2015-03-20 05:31:23.542700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.545755"], ["updated_at", "2015-03-20 05:31:23.545755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58b8b0bc-cec2-11e4-b174-705681abff85' AND "clubhouse_memberships"."organization_id" = '58b924d4-cec2-11e4-8df2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58b8b0bc-cec2-11e4-b174-705681abff85"], ["organization_id", "58b924d4-cec2-11e4-8df2-705681abff85"], ["created_at", "2015-03-20 05:31:23.548917"], ["updated_at", "2015-03-20 05:31:23.548917"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '58b924d4-cec2-11e4-8df2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "58b924d4-cec2-11e4-8df2-705681abff85"], ["created_at", "2015-03-20 05:31:23.552466"], ["updated_at", "2015-03-20 05:31:23.552466"], ["token", "QTxA787QiR-b-bkHDjdk0yRchKXgXidBq9ESRY_DM40"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58b8b0bc-cec2-11e4-b174-705681abff85' LIMIT 1 [["organization_id", "58b924d4-cec2-11e4-8df2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$H/ofwqcF4iXmW4ELwSt4qeynDP82lGly0kqUgP77Jp9inn3nSoGPC"], ["created_at", "2015-03-20 05:31:23.559999"], ["updated_at", "2015-03-20 05:31:23.559999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.563421"], ["updated_at", "2015-03-20 05:31:23.563421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58bb5b46-cec2-11e4-bf5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '58bbd7d8-cec2-11e4-b895-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58bb5b46-cec2-11e4-bf5d-705681abff85"], ["organization_id", "58bbd7d8-cec2-11e4-b895-705681abff85"], ["created_at", "2015-03-20 05:31:23.566537"], ["updated_at", "2015-03-20 05:31:23.566537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '58bbd7d8-cec2-11e4-b895-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "58bbd7d8-cec2-11e4-b895-705681abff85"], ["created_at", "2015-03-20 05:31:23.569987"], ["updated_at", "2015-03-20 05:31:23.569987"], ["token", "kb-zs0XNftC2FoQVcwKaPirBp0wVeR6B0xEsUXaXTY8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58bb5b46-cec2-11e4-bf5d-705681abff85' LIMIT 1 [["organization_id", "58bbd7d8-cec2-11e4-b895-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$xNqpUb/Pa6JKzTum/v2qYurLDkiA03AthyJWmuBxoju6TE/UPSfVe"], ["created_at", "2015-03-20 05:31:23.577426"], ["updated_at", "2015-03-20 05:31:23.577426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.580590"], ["updated_at", "2015-03-20 05:31:23.580590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58bdff4a-cec2-11e4-93f0-705681abff85' AND "clubhouse_memberships"."organization_id" = '58be76a0-cec2-11e4-97fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58bdff4a-cec2-11e4-93f0-705681abff85"], ["organization_id", "58be76a0-cec2-11e4-97fd-705681abff85"], ["created_at", "2015-03-20 05:31:23.583803"], ["updated_at", "2015-03-20 05:31:23.583803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '58be76a0-cec2-11e4-97fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "58be76a0-cec2-11e4-97fd-705681abff85"], ["created_at", "2015-03-20 05:31:23.587057"], ["updated_at", "2015-03-20 05:31:23.587057"], ["token", "YqALI9zExBe3xcOhaj7OxK0v0_VymzGUXA1INADZpk0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58bdff4a-cec2-11e4-93f0-705681abff85' LIMIT 1 [["organization_id", "58be76a0-cec2-11e4-97fd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$CXfR9DphjBDs759p/wvBd.XjsebElW6FwOnsFbID305dYi4eKEqfC"], ["created_at", "2015-03-20 05:31:23.594684"], ["updated_at", "2015-03-20 05:31:23.594684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.597781"], ["updated_at", "2015-03-20 05:31:23.597781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58c09f3e-cec2-11e4-bf28-705681abff85' AND "clubhouse_memberships"."organization_id" = '58c11568-cec2-11e4-acaf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58c09f3e-cec2-11e4-bf28-705681abff85"], ["organization_id", "58c11568-cec2-11e4-acaf-705681abff85"], ["created_at", "2015-03-20 05:31:23.600977"], ["updated_at", "2015-03-20 05:31:23.600977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '58c11568-cec2-11e4-acaf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "58c11568-cec2-11e4-acaf-705681abff85"], ["created_at", "2015-03-20 05:31:23.604294"], ["updated_at", "2015-03-20 05:31:23.604294"], ["token", "neIGejTUpm66tmM4SVu4b-xDRCsZd8ZWu7QdC2w30Sc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58c09f3e-cec2-11e4-bf28-705681abff85' LIMIT 1 [["organization_id", "58c11568-cec2-11e4-acaf-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$tRFAkqiB6Ng5fxceeA6qyulQP/f3jDo3Xd5bmG7HjO9YVjovHNs/2"], ["created_at", "2015-03-20 05:31:23.614242"], ["updated_at", "2015-03-20 05:31:23.614242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.618720"], ["updated_at", "2015-03-20 05:31:23.618720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58c3b804-cec2-11e4-a880-705681abff85' AND "clubhouse_memberships"."organization_id" = '58c44b34-cec2-11e4-8a17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58c3b804-cec2-11e4-a880-705681abff85"], ["organization_id", "58c44b34-cec2-11e4-8a17-705681abff85"], ["created_at", "2015-03-20 05:31:23.622303"], ["updated_at", "2015-03-20 05:31:23.622303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58c3b804-cec2-11e4-a880-705681abff85' LIMIT 1 [["organization_id", "58c44b34-cec2-11e4-8a17-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$g1iSP.lN1OXiDMTBmUL7S.PZNlW/n8Qv6O0kq18A18/W0tr6RSEx2"], ["created_at", "2015-03-20 05:31:23.630548"], ["updated_at", "2015-03-20 05:31:23.630548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$/m.HwYZO8VVtQVIK2v9gbO03Ocn5Dqy2TyQ5QKV/Vwv5WyfnsIHTm"], ["created_at", "2015-03-20 05:31:23.634737"], ["updated_at", "2015-03-20 05:31:23.634737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.637724"], ["updated_at", "2015-03-20 05:31:23.637724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58c6b93c-cec2-11e4-88aa-705681abff85' AND "clubhouse_memberships"."organization_id" = '58c72e30-cec2-11e4-a1ef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58c6b93c-cec2-11e4-88aa-705681abff85"], ["organization_id", "58c72e30-cec2-11e4-a1ef-705681abff85"], ["created_at", "2015-03-20 05:31:23.641094"], ["updated_at", "2015-03-20 05:31:23.641094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58c61874-cec2-11e4-89e2-705681abff85' LIMIT 1 [["organization_id", "58c72e30-cec2-11e4-a1ef-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$dtoDGOXNV1OfdZIMB9WOTO.hAI4TOC63YDhwM8IkPqIpAvPxz.tyC"], ["created_at", "2015-03-20 05:31:23.648121"], ["updated_at", "2015-03-20 05:31:23.648121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$QPt170wqG4f37zk/YPwPH.LR5fg5oaAsc4JodhE/1jpKP9.yuUUrW"], ["created_at", "2015-03-20 05:31:23.652242"], ["updated_at", "2015-03-20 05:31:23.652242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.655250"], ["updated_at", "2015-03-20 05:31:23.655250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58c964e8-cec2-11e4-9405-705681abff85' AND "clubhouse_memberships"."organization_id" = '58c9dcfc-cec2-11e4-b466-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58c964e8-cec2-11e4-9405-705681abff85"], ["organization_id", "58c9dcfc-cec2-11e4-b466-705681abff85"], ["created_at", "2015-03-20 05:31:23.658755"], ["updated_at", "2015-03-20 05:31:23.658755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$qUAOezCHb1c/0AshqYhoQuMEq.cQ4fu1wTue7XTv48Q/q4LHzJzBK"], ["created_at", "2015-03-20 05:31:23.664799"], ["updated_at", "2015-03-20 05:31:23.664799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$JHIpsKLcZRSYqf.TQnkWguctP8uQ8.njt3vaqaivG5aWTFEQsQaEO"], ["created_at", "2015-03-20 05:31:23.669890"], ["updated_at", "2015-03-20 05:31:23.669890"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.673885"], ["updated_at", "2015-03-20 05:31:23.673885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58cc2796-cec2-11e4-91bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '58ccbfee-cec2-11e4-aa94-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58cc2796-cec2-11e4-91bd-705681abff85"], ["organization_id", "58ccbfee-cec2-11e4-aa94-705681abff85"], ["created_at", "2015-03-20 05:31:23.677474"], ["updated_at", "2015-03-20 05:31:23.677474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '58cb51ea-cec2-11e4-809e-705681abff85' LIMIT 1 [["organization_id", "58ccbfee-cec2-11e4-aa94-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$yfnXHi9rtXEMIv3u9cGixeITILC8vjMHUupyq6BElF01lCMQIJE3m"], ["created_at", "2015-03-20 05:31:23.684372"], ["updated_at", "2015-03-20 05:31:23.684372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$wdqJFOwTdOpMF6P1as/P8uZASYXzXDFeKp2CSup8dVGN0MHyxjYVi"], ["created_at", "2015-03-20 05:31:23.688558"], ["updated_at", "2015-03-20 05:31:23.688558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.691636"], ["updated_at", "2015-03-20 05:31:23.691636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58ceefb2-cec2-11e4-8e56-705681abff85' AND "clubhouse_memberships"."organization_id" = '58cf680c-cec2-11e4-a3ef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58ceefb2-cec2-11e4-8e56-705681abff85"], ["organization_id", "58cf680c-cec2-11e4-a3ef-705681abff85"], ["created_at", "2015-03-20 05:31:23.694798"], ["updated_at", "2015-03-20 05:31:23.694798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58ce4f26-cec2-11e4-822a-705681abff85' LIMIT 1 [["organization_id", "58cf680c-cec2-11e4-a3ef-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$0u/JWR4gRZGMDTUAn2kTe.D3ANmlT1PXDivKHLGa8XWyyG94dIojm"], ["created_at", "2015-03-20 05:31:23.701688"], ["updated_at", "2015-03-20 05:31:23.701688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.704674"], ["updated_at", "2015-03-20 05:31:23.704674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '58d0f1ea-cec2-11e4-bdf6-705681abff85' LIMIT 1 [["organization_id", "58d16486-cec2-11e4-8f62-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$UJL.MqnKk54YJWIL8ttKGOrkXGheq/yq5zYLmnRFtGy3tyA9mrYRG"], ["created_at", "2015-03-20 05:31:23.712058"], ["updated_at", "2015-03-20 05:31:23.712058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.715873"], ["updated_at", "2015-03-20 05:31:23.715873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58d291ee-cec2-11e4-a848-705681abff85' AND "clubhouse_memberships"."organization_id" = '58d31c7c-cec2-11e4-a1ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58d291ee-cec2-11e4-a848-705681abff85"], ["organization_id", "58d31c7c-cec2-11e4-a1ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.719186"], ["updated_at", "2015-03-20 05:31:23.719186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$zw5UZMtHlfj7T/fAwPVvSuTjEfYN1QQQijI4W9MNYFphuk1btqB3m"], ["created_at", "2015-03-20 05:31:23.724266"], ["updated_at", "2015-03-20 05:31:23.724266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58d48774-cec2-11e4-b667-705681abff85' AND "clubhouse_memberships"."organization_id" = '58d31c7c-cec2-11e4-a1ec-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58d48774-cec2-11e4-b667-705681abff85"], ["organization_id", "58d31c7c-cec2-11e4-a1ec-705681abff85"], ["created_at", "2015-03-20 05:31:23.731485"], ["updated_at", "2015-03-20 05:31:23.731485"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58d291ee-cec2-11e4-a848-705681abff85' LIMIT 1 [["organization_id", "58d31c7c-cec2-11e4-a1ec-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$3P7oVODhdGySlKEGADghJOBPm8iM6wbL/REwxDO6I1JKbcZLac1BC"], ["created_at", "2015-03-20 05:31:23.748429"], ["updated_at", "2015-03-20 05:31:23.748429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.753360"], ["updated_at", "2015-03-20 05:31:23.753360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58d83036-cec2-11e4-a957-705681abff85' AND "clubhouse_memberships"."organization_id" = '58d8dc8e-cec2-11e4-acdb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58d83036-cec2-11e4-a957-705681abff85"], ["organization_id", "58d8dc8e-cec2-11e4-acdb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.757107"], ["updated_at", "2015-03-20 05:31:23.757107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$hAFF.qgZq/u96/Gjaq.rl.480zvowumKPMvLcJGPAO3Rtrkm4q1t6"], ["created_at", "2015-03-20 05:31:23.762574"], ["updated_at", "2015-03-20 05:31:23.762574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58da3fb6-cec2-11e4-927c-705681abff85' AND "clubhouse_memberships"."organization_id" = '58d8dc8e-cec2-11e4-acdb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58da3fb6-cec2-11e4-927c-705681abff85"], ["organization_id", "58d8dc8e-cec2-11e4-acdb-705681abff85"], ["created_at", "2015-03-20 05:31:23.766650"], ["updated_at", "2015-03-20 05:31:23.766650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$BdAiep5w4TWdJYOqx/ebBelEOfv4L9dMrJ/qc4niBN5TZgSumj3Xu"], ["created_at", "2015-03-20 05:31:23.772547"], ["updated_at", "2015-03-20 05:31:23.772547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.775893"], ["updated_at", "2015-03-20 05:31:23.775893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58dbc78c-cec2-11e4-a884-705681abff85' AND "clubhouse_memberships"."organization_id" = '58dc42e8-cec2-11e4-b821-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58dbc78c-cec2-11e4-a884-705681abff85"], ["organization_id", "58dc42e8-cec2-11e4-b821-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.779315"], ["updated_at", "2015-03-20 05:31:23.779315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$2KnQ4G6HKdQfSKHYew1VcuHwheh7YPMb4kBLsoeHBiv0oFFAHnL.i"], ["created_at", "2015-03-20 05:31:23.784581"], ["updated_at", "2015-03-20 05:31:23.784581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58dd992c-cec2-11e4-b63f-705681abff85' AND "clubhouse_memberships"."organization_id" = '58dc42e8-cec2-11e4-b821-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58dd992c-cec2-11e4-b63f-705681abff85"], ["organization_id", "58dc42e8-cec2-11e4-b821-705681abff85"], ["created_at", "2015-03-20 05:31:23.787724"], ["updated_at", "2015-03-20 05:31:23.787724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '58dbc78c-cec2-11e4-a884-705681abff85' LIMIT 1 [["organization_id", "58dc42e8-cec2-11e4-b821-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$dGzgxtjXQUrSmSxuDIqBzuOYPKbz0Wg2eP2oYJWg9RkiIhrK1/c5S"], ["created_at", "2015-03-20 05:31:23.795110"], ["updated_at", "2015-03-20 05:31:23.795110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.798255"], ["updated_at", "2015-03-20 05:31:23.798255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58df33b8-cec2-11e4-b00d-705681abff85' AND "clubhouse_memberships"."organization_id" = '58dfac76-cec2-11e4-8c04-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58df33b8-cec2-11e4-b00d-705681abff85"], ["organization_id", "58dfac76-cec2-11e4-8c04-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.801866"], ["updated_at", "2015-03-20 05:31:23.801866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$n2OgZ7nsUvZt6wxr8AL/pOwc9/dQjVmH6GkeWiBkN299tqTOwMYam"], ["created_at", "2015-03-20 05:31:23.806264"], ["updated_at", "2015-03-20 05:31:23.806264"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58e1236c-cec2-11e4-9caa-705681abff85' AND "clubhouse_memberships"."organization_id" = '58dfac76-cec2-11e4-8c04-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58e1236c-cec2-11e4-9caa-705681abff85"], ["organization_id", "58dfac76-cec2-11e4-8c04-705681abff85"], ["created_at", "2015-03-20 05:31:23.812967"], ["updated_at", "2015-03-20 05:31:23.812967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58df33b8-cec2-11e4-b00d-705681abff85' LIMIT 1 [["organization_id", "58dfac76-cec2-11e4-8c04-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$IueBG8jAitxuoYG7B9nFOuOIpcp4LPUV.26HsZQXLFEl1Jjq5K246"], ["created_at", "2015-03-20 05:31:23.821219"], ["updated_at", "2015-03-20 05:31:23.821219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.826188"], ["updated_at", "2015-03-20 05:31:23.826188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58e3411a-cec2-11e4-bd1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '58e3f52e-cec2-11e4-81f4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58e3411a-cec2-11e4-bd1b-705681abff85"], ["organization_id", "58e3f52e-cec2-11e4-81f4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.832189"], ["updated_at", "2015-03-20 05:31:23.832189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '58e3411a-cec2-11e4-bd1b-705681abff85' LIMIT 1 [["organization_id", "58e3f52e-cec2-11e4-81f4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$.H/tieOKv5Im5AyV8PEA6.spegj0.fBE//YgdeHhcQBe9.RYKJuja"], ["created_at", "2015-03-20 05:31:23.839837"], ["updated_at", "2015-03-20 05:31:23.839837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.844120"], ["updated_at", "2015-03-20 05:31:23.844120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58e6116a-cec2-11e4-9413-705681abff85' AND "clubhouse_memberships"."organization_id" = '58e6adbe-cec2-11e4-a80f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58e6116a-cec2-11e4-9413-705681abff85"], ["organization_id", "58e6adbe-cec2-11e4-a80f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.847400"], ["updated_at", "2015-03-20 05:31:23.847400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58e6116a-cec2-11e4-9413-705681abff85' LIMIT 1 [["organization_id", "58e6adbe-cec2-11e4-a80f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$GodVfS28YrlQYEVRNYzanexbz8l9LVXUSn7.g4pHMXxjavvG5Czzi"], ["created_at", "2015-03-20 05:31:23.854714"], ["updated_at", "2015-03-20 05:31:23.854714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.858142"], ["updated_at", "2015-03-20 05:31:23.858142"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58e84bec-cec2-11e4-bd5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '58e8ed86-cec2-11e4-9d79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58e84bec-cec2-11e4-bd5d-705681abff85"], ["organization_id", "58e8ed86-cec2-11e4-9d79-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.862925"], ["updated_at", "2015-03-20 05:31:23.862925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$lI5ZQwSB3vNInvaJuqlD6.tW8JOUrRoPz.OKvxSJZ8V9rAjsn5bNW"], ["created_at", "2015-03-20 05:31:23.869001"], ["updated_at", "2015-03-20 05:31:23.869001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.872012"], ["updated_at", "2015-03-20 05:31:23.872012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58ea7a20-cec2-11e4-8439-705681abff85' AND "clubhouse_memberships"."organization_id" = '58eaecbc-cec2-11e4-9a12-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58ea7a20-cec2-11e4-8439-705681abff85"], ["organization_id", "58eaecbc-cec2-11e4-9a12-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.876012"], ["updated_at", "2015-03-20 05:31:23.876012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '58ea7a20-cec2-11e4-8439-705681abff85' LIMIT 1 [["organization_id", "58eaecbc-cec2-11e4-9a12-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$BthAsFcyEdaFfQVY/Jhqt.ZSIPxqlreqTY2BMX2f.J8HL9Ps2N5FC"], ["created_at", "2015-03-20 05:31:23.884188"], ["updated_at", "2015-03-20 05:31:23.884188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.887310"], ["updated_at", "2015-03-20 05:31:23.887310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58eccd3e-cec2-11e4-bfc1-705681abff85' AND "clubhouse_memberships"."organization_id" = '58ed4250-cec2-11e4-a185-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58eccd3e-cec2-11e4-bfc1-705681abff85"], ["organization_id", "58ed4250-cec2-11e4-a185-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.890757"], ["updated_at", "2015-03-20 05:31:23.890757"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58eccd3e-cec2-11e4-bfc1-705681abff85' LIMIT 1 [["organization_id", "58ed4250-cec2-11e4-a185-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$SUOFPJJOKupNvav4oSv5R.WYwTIscuJ9X.sNgoJYPzU3xLzow3Lom"], ["created_at", "2015-03-20 05:31:23.898633"], ["updated_at", "2015-03-20 05:31:23.898633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.902616"], ["updated_at", "2015-03-20 05:31:23.902616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58ef14ae-cec2-11e4-b926-705681abff85' AND "clubhouse_memberships"."organization_id" = '58ef99d8-cec2-11e4-b1aa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58ef14ae-cec2-11e4-b926-705681abff85"], ["organization_id", "58ef99d8-cec2-11e4-b1aa-705681abff85"], ["created_at", "2015-03-20 05:31:23.905656"], ["updated_at", "2015-03-20 05:31:23.905656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58ef14ae-cec2-11e4-b926-705681abff85' LIMIT 1 [["organization_id", "58ef99d8-cec2-11e4-b1aa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$AsW5iJQKtnO0J0y5j6L8EuMx9hM7BbM0kFGSdmBDFuomGBrUXid52"], ["created_at", "2015-03-20 05:31:23.913029"], ["updated_at", "2015-03-20 05:31:23.913029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.916753"], ["updated_at", "2015-03-20 05:31:23.916753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58f131ee-cec2-11e4-99e1-705681abff85' AND "clubhouse_memberships"."organization_id" = '58f1c546-cec2-11e4-8b2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58f131ee-cec2-11e4-99e1-705681abff85"], ["organization_id", "58f1c546-cec2-11e4-8b2a-705681abff85"], ["created_at", "2015-03-20 05:31:23.920037"], ["updated_at", "2015-03-20 05:31:23.920037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$KdDvmEALUlZsiSVhuBwBz.fmU43YWsc06YI/hhUPHrE3OM.zanRki"], ["created_at", "2015-03-20 05:31:23.926631"], ["updated_at", "2015-03-20 05:31:23.926631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.930523"], ["updated_at", "2015-03-20 05:31:23.930523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58f3500a-cec2-11e4-8e2b-705681abff85' AND "clubhouse_memberships"."organization_id" = '58f3f460-cec2-11e4-bb87-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58f3500a-cec2-11e4-8e2b-705681abff85"], ["organization_id", "58f3f460-cec2-11e4-bb87-705681abff85"], ["created_at", "2015-03-20 05:31:23.934926"], ["updated_at", "2015-03-20 05:31:23.934926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '58f3500a-cec2-11e4-8e2b-705681abff85' LIMIT 1 [["organization_id", "58f3f460-cec2-11e4-bb87-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$/b5yZXx/lxCC.tCU0o/w5..APZ7qPJqGPj9IBTfjesjJPRuNl/WXK"], ["created_at", "2015-03-20 05:31:23.941691"], ["updated_at", "2015-03-20 05:31:23.941691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.945458"], ["updated_at", "2015-03-20 05:31:23.945458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58f5a058-cec2-11e4-8dbd-705681abff85' AND "clubhouse_memberships"."organization_id" = '58f62316-cec2-11e4-92e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58f5a058-cec2-11e4-8dbd-705681abff85"], ["organization_id", "58f62316-cec2-11e4-92e5-705681abff85"], ["created_at", "2015-03-20 05:31:23.948502"], ["updated_at", "2015-03-20 05:31:23.948502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '58f5a058-cec2-11e4-8dbd-705681abff85' LIMIT 1 [["organization_id", "58f62316-cec2-11e4-92e5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$Uz.exj.kZdwi72gSPBxKZueImEM4emxEVmLtozJlKSyt/zCZ4e.ZS"], ["created_at", "2015-03-20 05:31:23.956118"], ["updated_at", "2015-03-20 05:31:23.956118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.960206"], ["updated_at", "2015-03-20 05:31:23.960206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58f7c914-cec2-11e4-83ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '58f86c5c-cec2-11e4-9eaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58f7c914-cec2-11e4-83ed-705681abff85"], ["organization_id", "58f86c5c-cec2-11e4-9eaa-705681abff85"], ["created_at", "2015-03-20 05:31:23.963864"], ["updated_at", "2015-03-20 05:31:23.963864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '58f7c914-cec2-11e4-83ed-705681abff85' LIMIT 1 [["organization_id", "58f86c5c-cec2-11e4-9eaa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$dllp0C2GTAb8pJ7judm3L.3.4pKesDgWdEoxLt08qCYVtkqTkUvr."], ["created_at", "2015-03-20 05:31:23.970973"], ["updated_at", "2015-03-20 05:31:23.970973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:23.972547"], ["user_id", "58fa099a-cec2-11e4-a0e7-705681abff85"], ["created_at", "2015-03-20 05:31:23.973402"], ["updated_at", "2015-03-20 05:31:23.973402"], ["token", "3UERCL6yNMB_NFdHS3U441IXyID2Kev5k8XdcwKznrg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.977220"], ["updated_at", "2015-03-20 05:31:23.977220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58fa099a-cec2-11e4-a0e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '58fb09da-cec2-11e4-aa29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58fa099a-cec2-11e4-a0e7-705681abff85"], ["organization_id", "58fb09da-cec2-11e4-aa29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:23.981319"], ["updated_at", "2015-03-20 05:31:23.981319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '58fb09da-cec2-11e4-aa29-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "58fb09da-cec2-11e4-aa29-705681abff85"], ["created_at", "2015-03-20 05:31:23.985013"], ["updated_at", "2015-03-20 05:31:23.985013"], ["token", "Igm5nUvMGhSObFhr4imC3M-gTfZIxR4pXXvybtJWBa8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$fnD1HXNiM73oMauoFTjKLe8ejsAZwQ2AQazLQezTsO05vAbAI.1pC"], ["created_at", "2015-03-20 05:31:23.989376"], ["updated_at", "2015-03-20 05:31:23.989376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:23.993029"], ["updated_at", "2015-03-20 05:31:23.993029"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58fcd94a-cec2-11e4-83eb-705681abff85' AND "clubhouse_memberships"."organization_id" = '58fd6a36-cec2-11e4-92c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58fcd94a-cec2-11e4-83eb-705681abff85"], ["organization_id", "58fd6a36-cec2-11e4-92c0-705681abff85"], ["created_at", "2015-03-20 05:31:23.997410"], ["updated_at", "2015-03-20 05:31:23.997410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$ECJTjseLBKO8a1UjPadE/uuczGrN/2SmFBc7q4YB4irbyUkA/Xlvy"], ["created_at", "2015-03-20 05:31:24.022950"], ["updated_at", "2015-03-20 05:31:24.022950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.024785"], ["user_id", "5901fdd0-cec2-11e4-9a64-705681abff85"], ["created_at", "2015-03-20 05:31:24.025869"], ["updated_at", "2015-03-20 05:31:24.025869"], ["token", "aRqL3479fWxq6ILJ0gYOSqIHFJ0awyq2TKbV8aaJc4o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.030203"], ["updated_at", "2015-03-20 05:31:24.030203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5901fdd0-cec2-11e4-9a64-705681abff85' AND "clubhouse_memberships"."organization_id" = '59031c38-cec2-11e4-a619-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5901fdd0-cec2-11e4-9a64-705681abff85"], ["organization_id", "59031c38-cec2-11e4-a619-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.034781"], ["updated_at", "2015-03-20 05:31:24.034781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '59031c38-cec2-11e4-a619-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "59031c38-cec2-11e4-a619-705681abff85"], ["created_at", "2015-03-20 05:31:24.038719"], ["updated_at", "2015-03-20 05:31:24.038719"], ["token", "7bhlw2t_oO46cgpAqJ6NNzZN3P6s8J2OeofzCJzpgzU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$IHcilawrKnx1eRH2Id3igeKI2Z3wYu3i1OwjBzJUKD8FaJA2oDJNO"], ["created_at", "2015-03-20 05:31:24.043612"], ["updated_at", "2015-03-20 05:31:24.043612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.046802"], ["updated_at", "2015-03-20 05:31:24.046802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59051ff6-cec2-11e4-8708-705681abff85' AND "clubhouse_memberships"."organization_id" = '59059a6c-cec2-11e4-be79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59051ff6-cec2-11e4-8708-705681abff85"], ["organization_id", "59059a6c-cec2-11e4-be79-705681abff85"], ["created_at", "2015-03-20 05:31:24.050077"], ["updated_at", "2015-03-20 05:31:24.050077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/59031c38-cec2-11e4-a619-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"59031c38-cec2-11e4-a619-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.056015' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aRqL3479fWxq6ILJ0gYOSqIHFJ0awyq2TKbV8aaJc4o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.057684"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.059147"], ["id", "59027558-cec2-11e4-a702-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "59031c38-cec2-11e4-a619-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5901fdd0-cec2-11e4-9a64-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5901fdd0-cec2-11e4-9a64-705681abff85' LIMIT 1 [["organization_id", "59031c38-cec2-11e4-a619-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "59031c38-cec2-11e4-a619-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('59031c38-cec2-11e4-a619-705681abff85') Completed 200 OK in 16ms (Views: 4.7ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$1AUOTL8GEmHORlZeK9N5seOW45f/Ath1MX1lKJ1Cz89Y612ZhWFXS"], ["created_at", "2015-03-20 05:31:24.080120"], ["updated_at", "2015-03-20 05:31:24.080120"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.082730"], ["user_id", "590acadc-cec2-11e4-ba25-705681abff85"], ["created_at", "2015-03-20 05:31:24.083584"], ["updated_at", "2015-03-20 05:31:24.083584"], ["token", "nkiK7laWCwctO6ht9FfNVoBuq4d7pWNPICYzNq9ZS30"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.088079"], ["updated_at", "2015-03-20 05:31:24.088079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '590acadc-cec2-11e4-ba25-705681abff85' AND "clubhouse_memberships"."organization_id" = '590bf72c-cec2-11e4-9582-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "590acadc-cec2-11e4-ba25-705681abff85"], ["organization_id", "590bf72c-cec2-11e4-9582-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.092300"], ["updated_at", "2015-03-20 05:31:24.092300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '590bf72c-cec2-11e4-9582-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "590bf72c-cec2-11e4-9582-705681abff85"], ["created_at", "2015-03-20 05:31:24.096865"], ["updated_at", "2015-03-20 05:31:24.096865"], ["token", "Q37ksF6iPZImTOsUWJhdpeBBs-NRsIYNct-Z0yPwtLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$nAKgO820khL9FfnGcjrmOe3jsl1D1u7CQfHQJiqCH3pERVhWLGKOG"], ["created_at", "2015-03-20 05:31:24.109868"], ["updated_at", "2015-03-20 05:31:24.109868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.113296"], ["user_id", "590f70f0-cec2-11e4-a18f-705681abff85"], ["created_at", "2015-03-20 05:31:24.114561"], ["updated_at", "2015-03-20 05:31:24.114561"], ["token", "FFFhXBvzrQo6tcvWeNBMIKlJ3jFmbzCBUw2BKerR-xo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.118866"], ["updated_at", "2015-03-20 05:31:24.118866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '590f70f0-cec2-11e4-a18f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5910aa88-cec2-11e4-b800-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "590f70f0-cec2-11e4-a18f-705681abff85"], ["organization_id", "5910aa88-cec2-11e4-b800-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.123592"], ["updated_at", "2015-03-20 05:31:24.123592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '5910aa88-cec2-11e4-b800-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "5910aa88-cec2-11e4-b800-705681abff85"], ["created_at", "2015-03-20 05:31:24.127682"], ["updated_at", "2015-03-20 05:31:24.127682"], ["token", "MT8IUY12YBzHFdh9AnFYi2g2c1ckl1Ezao9VcdkmgUQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5910aa88-cec2-11e4-b800-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"5910aa88-cec2-11e4-b800-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.134105' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FFFhXBvzrQo6tcvWeNBMIKlJ3jFmbzCBUw2BKerR-xo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.135537"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.136851"], ["id", "590ffe8a-cec2-11e4-9a5b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5910aa88-cec2-11e4-b800-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "590f70f0-cec2-11e4-a18f-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5910aa88-cec2-11e4-b800-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '590f70f0-cec2-11e4-a18f-705681abff85' LIMIT 1 [["organization_id", "5910aa88-cec2-11e4-b800-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5910aa88-cec2-11e4-b800-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5910aa88-cec2-11e4-b800-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.150442"], ["updated_at", "2015-03-20 05:31:24.150442"], ["token", "oJzaafYBBk_RC74XN08SWEquGCScF4cQTxHeMJPNfow"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2e6c9072-39e3-49a1-b2ec-3a7c3750d02f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/59157ae0-cec2-11e4-816c-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "59157ae0-cec2-11e4-816c-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2e6c9072-39e3-49a1-b2ec-3a7c3750d02f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/59157ae0-cec2-11e4-816c-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [2e6c9072-39e3-49a1-b2ec-3a7c3750d02f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5910aa88-cec2-11e4-b800-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [2e6c9072-39e3-49a1-b2ec-3a7c3750d02f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2e6c9072-39e3-49a1-b2ec-3a7c3750d02f] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [2e6c9072-39e3-49a1-b2ec-3a7c3750d02f] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [2e6c9072-39e3-49a1-b2ec-3a7c3750d02f] Date: Thu, 19 Mar 2015 22:31:24 -0700 From: from@example.com To: email@example.com Message-ID: <550bb0ac2b6c5_10b83fe6d8465bf013632@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/oJzaafYBBk_RC74XN08SWEquGCScF4cQTxHeMJPNfow?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [2e6c9072-39e3-49a1-b2ec-3a7c3750d02f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.81ms Completed 201 Created in 46ms (Views: 0.9ms | ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$3lqMp/CF4qOut6.TVdeHveelImbIzQbHQaE6vR5bNWY8EiS5T7oiW"], ["created_at", "2015-03-20 05:31:24.187419"], ["updated_at", "2015-03-20 05:31:24.187419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.189235"], ["user_id", "591b13f6-cec2-11e4-abe7-705681abff85"], ["created_at", "2015-03-20 05:31:24.189988"], ["updated_at", "2015-03-20 05:31:24.189988"], ["token", "gwqEe0-bfL1m76cMAyviARB3MYbdUfFv8McAcubbZSI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.194062"], ["updated_at", "2015-03-20 05:31:24.194062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '591b13f6-cec2-11e4-abe7-705681abff85' AND "clubhouse_memberships"."organization_id" = '591c1b98-cec2-11e4-b33b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "591b13f6-cec2-11e4-abe7-705681abff85"], ["organization_id", "591c1b98-cec2-11e4-b33b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.197703"], ["updated_at", "2015-03-20 05:31:24.197703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '591c1b98-cec2-11e4-b33b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "591c1b98-cec2-11e4-b33b-705681abff85"], ["created_at", "2015-03-20 05:31:24.201303"], ["updated_at", "2015-03-20 05:31:24.201303"], ["token", "ra8ZO4csAzeRzjLl16hsigXSIHvkruBCaWNkNdJGiyc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/591c1b98-cec2-11e4-b33b-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"591c1b98-cec2-11e4-b33b-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.206125' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gwqEe0-bfL1m76cMAyviARB3MYbdUfFv8McAcubbZSI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.207934"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.209900"], ["id", "591b7c7e-cec2-11e4-8db6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "591c1b98-cec2-11e4-b33b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "591b13f6-cec2-11e4-abe7-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "591c1b98-cec2-11e4-b33b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '591b13f6-cec2-11e4-abe7-705681abff85' LIMIT 1 [["organization_id", "591c1b98-cec2-11e4-b33b-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '591c1b98-cec2-11e4-b33b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "591c1b98-cec2-11e4-b33b-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.219829"], ["updated_at", "2015-03-20 05:31:24.219829"], ["token", "ERjGPorX2HRhk0lGtXgtBdt6_IrIJeRgFUmdJlL-GwI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 422a4135-1d45-47f2-a462-f2f9049e775a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/59201fb8-cec2-11e4-a254-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "59201fb8-cec2-11e4-a254-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [422a4135-1d45-47f2-a462-f2f9049e775a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/59201fb8-cec2-11e4-a254-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [422a4135-1d45-47f2-a462-f2f9049e775a] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "591c1b98-cec2-11e4-b33b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [422a4135-1d45-47f2-a462-f2f9049e775a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [422a4135-1d45-47f2-a462-f2f9049e775a] Clubhouse::Mailer#invitation: processed outbound mail in 2.5ms [ActiveJob] [ActionMailer::DeliveryJob] [422a4135-1d45-47f2-a462-f2f9049e775a] Sent mail to email@example.com (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [422a4135-1d45-47f2-a462-f2f9049e775a] Date: Thu, 19 Mar 2015 22:31:24 -0700 From: from@example.com To: email@example.com Message-ID: <550bb0ac37d15_10b83fe6d8465bf01372b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/ERjGPorX2HRhk0lGtXgtBdt6_IrIJeRgFUmdJlL-GwI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [422a4135-1d45-47f2-a462-f2f9049e775a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.09ms Completed 201 Created in 25ms (Views: 0.9ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$B.NgpZU3vK5G/BVeC1DCWe1bqU3TI01XNdTDQJV.KO55GOf3jK7My"], ["created_at", "2015-03-20 05:31:24.237129"], ["updated_at", "2015-03-20 05:31:24.237129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.238701"], ["user_id", "5922a788-cec2-11e4-8dba-705681abff85"], ["created_at", "2015-03-20 05:31:24.239474"], ["updated_at", "2015-03-20 05:31:24.239474"], ["token", "diWAjPitp2sE78JvZ2dwhBHOd821cw0gmtf_qW0Lpe4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.243091"], ["updated_at", "2015-03-20 05:31:24.243091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5922a788-cec2-11e4-8dba-705681abff85' AND "clubhouse_memberships"."organization_id" = '59239abc-cec2-11e4-9e80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5922a788-cec2-11e4-8dba-705681abff85"], ["organization_id", "59239abc-cec2-11e4-9e80-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.247045"], ["updated_at", "2015-03-20 05:31:24.247045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '59239abc-cec2-11e4-9e80-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "59239abc-cec2-11e4-9e80-705681abff85"], ["created_at", "2015-03-20 05:31:24.250738"], ["updated_at", "2015-03-20 05:31:24.250738"], ["token", "RsVlBmlS2iS0mTm9fnQ0zfr4dquTjHcPNwSc5DHJqcI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/59239abc-cec2-11e4-9e80-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"59239abc-cec2-11e4-9e80-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.256009' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "diWAjPitp2sE78JvZ2dwhBHOd821cw0gmtf_qW0Lpe4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.257796"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.259089"], ["id", "592307dc-cec2-11e4-9eb1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "59239abc-cec2-11e4-9e80-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5922a788-cec2-11e4-8dba-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "59239abc-cec2-11e4-9e80-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5922a788-cec2-11e4-8dba-705681abff85' LIMIT 1 [["organization_id", "59239abc-cec2-11e4-9e80-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '59239abc-cec2-11e4-9e80-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$mABqYFcPITCdwQreydxCgedcgYA1ZbUGm.ZxKfFO14th1vQOuytdm"], ["created_at", "2015-03-20 05:31:24.275569"], ["updated_at", "2015-03-20 05:31:24.275569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.277672"], ["user_id", "592889d2-cec2-11e4-a2c7-705681abff85"], ["created_at", "2015-03-20 05:31:24.278539"], ["updated_at", "2015-03-20 05:31:24.278539"], ["token", "u00ws8cIFaghtigE-3EkX-OH2ba-kUR0KOrfO2gylvQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.282024"], ["updated_at", "2015-03-20 05:31:24.282024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '592889d2-cec2-11e4-a2c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '59297eaa-cec2-11e4-a32d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "592889d2-cec2-11e4-a2c7-705681abff85"], ["organization_id", "59297eaa-cec2-11e4-a32d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.285487"], ["updated_at", "2015-03-20 05:31:24.285487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '59297eaa-cec2-11e4-a32d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "59297eaa-cec2-11e4-a32d-705681abff85"], ["created_at", "2015-03-20 05:31:24.288903"], ["updated_at", "2015-03-20 05:31:24.288903"], ["token", "T2GP_-PbpSrUqbUJOflMXaF_hZc-z6XLwBpHbm_gRrA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$Xd0jhSXaaTmadXeE/4l2muSLvGELyZhZFslV7WdMgMYIm.T/5NCQi"], ["created_at", "2015-03-20 05:31:24.299712"], ["updated_at", "2015-03-20 05:31:24.299712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.301402"], ["user_id", "592c3550-cec2-11e4-8ebb-705681abff85"], ["created_at", "2015-03-20 05:31:24.302213"], ["updated_at", "2015-03-20 05:31:24.302213"], ["token", "H1wbx9bQZ0fxMN_tY-aQkKZ584BfgpPVskCKNJj4eZs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.305673"], ["updated_at", "2015-03-20 05:31:24.305673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '592c3550-cec2-11e4-8ebb-705681abff85' AND "clubhouse_memberships"."organization_id" = '592d1b14-cec2-11e4-9056-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "592c3550-cec2-11e4-8ebb-705681abff85"], ["organization_id", "592d1b14-cec2-11e4-9056-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.309043"], ["updated_at", "2015-03-20 05:31:24.309043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '592d1b14-cec2-11e4-9056-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "592d1b14-cec2-11e4-9056-705681abff85"], ["created_at", "2015-03-20 05:31:24.313597"], ["updated_at", "2015-03-20 05:31:24.313597"], ["token", "lD58U6vRHFxh-cFD8xlZjB9naUhkCMDVieV5HHAscLc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/592e5dd0-cec2-11e4-8c25-705681abff85" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"592e5dd0-cec2-11e4-8c25-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.318619' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "H1wbx9bQZ0fxMN_tY-aQkKZ584BfgpPVskCKNJj4eZs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.320081"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.321011"], ["id", "592c9bd0-cec2-11e4-8a1a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "592e5dd0-cec2-11e4-8c25-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "592c3550-cec2-11e4-8ebb-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "592d1b14-cec2-11e4-9056-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '592c3550-cec2-11e4-8ebb-705681abff85' LIMIT 1 [["organization_id", "592d1b14-cec2-11e4-9056-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "592e5dd0-cec2-11e4-8c25-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$Bk6F8HjngHwQ7RMfiEHT1ucID6tT5.O6IGsH5ROBiWocO20uGhFZm"], ["created_at", "2015-03-20 05:31:24.332504"], ["updated_at", "2015-03-20 05:31:24.332504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.334236"], ["user_id", "59313690-cec2-11e4-9907-705681abff85"], ["created_at", "2015-03-20 05:31:24.334979"], ["updated_at", "2015-03-20 05:31:24.334979"], ["token", "cH0ss7UB-qeJ97jeKAEBHU6r1qiDwN_bojqXnhr1CIY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.338361"], ["updated_at", "2015-03-20 05:31:24.338361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59313690-cec2-11e4-9907-705681abff85' AND "clubhouse_memberships"."organization_id" = '59321736-cec2-11e4-b435-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59313690-cec2-11e4-9907-705681abff85"], ["organization_id", "59321736-cec2-11e4-b435-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.341875"], ["updated_at", "2015-03-20 05:31:24.341875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (9.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '59321736-cec2-11e4-b435-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "59321736-cec2-11e4-b435-705681abff85"], ["created_at", "2015-03-20 05:31:24.355657"], ["updated_at", "2015-03-20 05:31:24.355657"], ["token", "OYcCjenFIY5kfflLwe_tHGSbmVbRhKVFhabmW25wxe0"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$RXQZyBh5csGc/0TV9PU2HeiSdDdYfxLiCsYJPBHXO/BTp3nDOWBwu"], ["created_at", "2015-03-20 05:31:24.367680"], ["updated_at", "2015-03-20 05:31:24.367680"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.373265"], ["updated_at", "2015-03-20 05:31:24.373265"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5936b53e-cec2-11e4-b20c-705681abff85' AND "clubhouse_memberships"."organization_id" = '59378c48-cec2-11e4-b16a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5936b53e-cec2-11e4-b20c-705681abff85"], ["organization_id", "59378c48-cec2-11e4-b16a-705681abff85"], ["created_at", "2015-03-20 05:31:24.379049"], ["updated_at", "2015-03-20 05:31:24.379049"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$bYZuMkK1ZVkRd.yl1BjD0eUTwRZZohKBlSJiv8UkyCRoyP0Wa0jXi"], ["created_at", "2015-03-20 05:31:24.395611"], ["updated_at", "2015-03-20 05:31:24.395611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.398234"], ["user_id", "593ae758-cec2-11e4-ad05-705681abff85"], ["created_at", "2015-03-20 05:31:24.399742"], ["updated_at", "2015-03-20 05:31:24.399742"], ["token", "AoLLoKxiRp_l9n30Zzcy-fnFjjrpXMZO87skkXypSCo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.404562"], ["updated_at", "2015-03-20 05:31:24.404562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '593ae758-cec2-11e4-ad05-705681abff85' AND "clubhouse_memberships"."organization_id" = '593c3450-cec2-11e4-8137-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "593ae758-cec2-11e4-ad05-705681abff85"], ["organization_id", "593c3450-cec2-11e4-8137-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.408050"], ["updated_at", "2015-03-20 05:31:24.408050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '593c3450-cec2-11e4-8137-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "593c3450-cec2-11e4-8137-705681abff85"], ["created_at", "2015-03-20 05:31:24.412144"], ["updated_at", "2015-03-20 05:31:24.412144"], ["token", "OmSnEc93w38ch6M1UYlXm1xHUqnxYgoTW4HWFDswfto"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$sJ7G4gGEUp5yyXd/FVxcMun2xqDzD.Kg7bjCYvZIs7fPhEpiPxSoi"], ["created_at", "2015-03-20 05:31:24.418900"], ["updated_at", "2015-03-20 05:31:24.418900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.422414"], ["updated_at", "2015-03-20 05:31:24.422414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '593e6be4-cec2-11e4-b67b-705681abff85' AND "clubhouse_memberships"."organization_id" = '593eeb8c-cec2-11e4-aa65-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "593e6be4-cec2-11e4-b67b-705681abff85"], ["organization_id", "593eeb8c-cec2-11e4-aa65-705681abff85"], ["created_at", "2015-03-20 05:31:24.426037"], ["updated_at", "2015-03-20 05:31:24.426037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.432546' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AoLLoKxiRp_l9n30Zzcy-fnFjjrpXMZO87skkXypSCo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.434822"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.436137"], ["id", "593b9fb8-cec2-11e4-bffa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "593ae758-cec2-11e4-ad05-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '593ae758-cec2-11e4-ad05-705681abff85' LIMIT 1 [["organization_id", "593c3450-cec2-11e4-8137-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "593c3450-cec2-11e4-8137-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('593c3450-cec2-11e4-8137-705681abff85') Completed 200 OK in 13ms (Views: 3.3ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$b/PQwhYb/Ozm7ZmlHXiwYuumRYLBVW4prsL/ZF1TwctMPcXbvSGWC"], ["created_at", "2015-03-20 05:31:24.454153"], ["updated_at", "2015-03-20 05:31:24.454153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.455906"], ["user_id", "5943c9cc-cec2-11e4-822a-705681abff85"], ["created_at", "2015-03-20 05:31:24.456692"], ["updated_at", "2015-03-20 05:31:24.456692"], ["token", "TnuSWYuhlmy5Z9nYQ_dLtOEPzVZRQRdwn9CHySqLfM4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.460511"], ["updated_at", "2015-03-20 05:31:24.460511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5943c9cc-cec2-11e4-822a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5944c8c2-cec2-11e4-95bf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5943c9cc-cec2-11e4-822a-705681abff85"], ["organization_id", "5944c8c2-cec2-11e4-95bf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.465411"], ["updated_at", "2015-03-20 05:31:24.465411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '5944c8c2-cec2-11e4-95bf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "5944c8c2-cec2-11e4-95bf-705681abff85"], ["created_at", "2015-03-20 05:31:24.469328"], ["updated_at", "2015-03-20 05:31:24.469328"], ["token", "qo33JnDFWBvQmTTvJl6mD2gjdTCzTCAx7Tmq8y4abSc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$9NL8N.enuFPpqbynnJuiQuM4NIQYRdG6iCx9wTlN.bI8IIFQvbH.2"], ["created_at", "2015-03-20 05:31:24.481588"], ["updated_at", "2015-03-20 05:31:24.481588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.483523"], ["user_id", "5947f966-cec2-11e4-a2bb-705681abff85"], ["created_at", "2015-03-20 05:31:24.485178"], ["updated_at", "2015-03-20 05:31:24.485178"], ["token", "PE_m-OhR4pSuzSqFpvDgvJ6Y1Z79JgvYrHPoWdgrAH8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.491179"], ["updated_at", "2015-03-20 05:31:24.491179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5947f966-cec2-11e4-a2bb-705681abff85' AND "clubhouse_memberships"."organization_id" = '59496ee0-cec2-11e4-aef5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5947f966-cec2-11e4-a2bb-705681abff85"], ["organization_id", "59496ee0-cec2-11e4-aef5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.495584"], ["updated_at", "2015-03-20 05:31:24.495584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '59496ee0-cec2-11e4-aef5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "59496ee0-cec2-11e4-aef5-705681abff85"], ["created_at", "2015-03-20 05:31:24.500131"], ["updated_at", "2015-03-20 05:31:24.500131"], ["token", "DvBf_5r3rBkY4uYLJL3HFq9hKJShwaIoE5RqxmsRmjs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/594acdd0-cec2-11e4-8e1c-705681abff85" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"594acdd0-cec2-11e4-8e1c-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.506060' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PE_m-OhR4pSuzSqFpvDgvJ6Y1Z79JgvYrHPoWdgrAH8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.507807"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.509810"], ["id", "5948ab36-cec2-11e4-bfc6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "594acdd0-cec2-11e4-8e1c-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5947f966-cec2-11e4-a2bb-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "59496ee0-cec2-11e4-aef5-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5947f966-cec2-11e4-a2bb-705681abff85' LIMIT 1 [["organization_id", "59496ee0-cec2-11e4-aef5-705681abff85"]] Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$y.nVHOYDRHtMNngErCnrz.MuYDJfxwJ0GpBs4mRlxRtBf.sZWJdSy"], ["created_at", "2015-03-20 05:31:24.524220"], ["updated_at", "2015-03-20 05:31:24.524220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.526409"], ["user_id", "594e8240-cec2-11e4-9bc9-705681abff85"], ["created_at", "2015-03-20 05:31:24.527465"], ["updated_at", "2015-03-20 05:31:24.527465"], ["token", "zfqcx2odtG-h-47K4p0tp2mrfKRdVDHJxfwCNmsLqfI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.531990"], ["updated_at", "2015-03-20 05:31:24.531990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '594e8240-cec2-11e4-9bc9-705681abff85' AND "clubhouse_memberships"."organization_id" = '594fa616-cec2-11e4-b2a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "594e8240-cec2-11e4-9bc9-705681abff85"], ["organization_id", "594fa616-cec2-11e4-b2a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.535880"], ["updated_at", "2015-03-20 05:31:24.535880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '594fa616-cec2-11e4-b2a8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "594fa616-cec2-11e4-b2a8-705681abff85"], ["created_at", "2015-03-20 05:31:24.539450"], ["updated_at", "2015-03-20 05:31:24.539450"], ["token", "PpMAm-Wl7JsWFMuThTJ0FfrGWNpBg99Zgcte9OxlHHU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$h3./8z57rGWBxGtU9r265upws.gtK3qpzETGAg3JFAYIeh.ev1vr2"], ["created_at", "2015-03-20 05:31:24.552725"], ["updated_at", "2015-03-20 05:31:24.552725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.554935"], ["user_id", "5952da7a-cec2-11e4-a266-705681abff85"], ["created_at", "2015-03-20 05:31:24.555885"], ["updated_at", "2015-03-20 05:31:24.555885"], ["token", "x-wSjMRWMNoovJ6bw7AM26Bm1EFDAWAo_IMq5nRzAhA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.561026"], ["updated_at", "2015-03-20 05:31:24.561026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5952da7a-cec2-11e4-a266-705681abff85' AND "clubhouse_memberships"."organization_id" = '59541a84-cec2-11e4-b5e8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5952da7a-cec2-11e4-a266-705681abff85"], ["organization_id", "59541a84-cec2-11e4-b5e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.565518"], ["updated_at", "2015-03-20 05:31:24.565518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '59541a84-cec2-11e4-b5e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "59541a84-cec2-11e4-b5e8-705681abff85"], ["created_at", "2015-03-20 05:31:24.569603"], ["updated_at", "2015-03-20 05:31:24.569603"], ["token", "emvPRtKhRm8_tpblvW565awqP5M3HFyLHerAXQvACBs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/59556542-cec2-11e4-a60a-705681abff85" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"59556542-cec2-11e4-a60a-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.574383' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "x-wSjMRWMNoovJ6bw7AM26Bm1EFDAWAo_IMq5nRzAhA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.576020"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.577173"], ["id", "5953598c-cec2-11e4-aa28-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "59556542-cec2-11e4-a60a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5952da7a-cec2-11e4-a266-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "59541a84-cec2-11e4-b5e8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5952da7a-cec2-11e4-a266-705681abff85' LIMIT 1 [["organization_id", "59541a84-cec2-11e4-b5e8-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."id" != '59556542-cec2-11e4-a60a-705681abff85' AND "clubhouse_invitations"."organization_id" = '59541a84-cec2-11e4-b5e8-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:31:24.586262"], ["id", "59556542-cec2-11e4-a60a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$bC6KqcygGeALuGg0iWAlEuI6MulRhbkBjZJ5ypMKDzLoSYllstLRy"], ["created_at", "2015-03-20 05:31:24.596854"], ["updated_at", "2015-03-20 05:31:24.596854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.599023"], ["user_id", "5959978e-cec2-11e4-9013-705681abff85"], ["created_at", "2015-03-20 05:31:24.600289"], ["updated_at", "2015-03-20 05:31:24.600289"], ["token", "xjAGpqy35lpOuQUoUINGIli_3FDYlM6dyUQ5YjGMcu8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.604301"], ["updated_at", "2015-03-20 05:31:24.604301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5959978e-cec2-11e4-9013-705681abff85' AND "clubhouse_memberships"."organization_id" = '595aad04-cec2-11e4-b5ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5959978e-cec2-11e4-9013-705681abff85"], ["organization_id", "595aad04-cec2-11e4-b5ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.607606"], ["updated_at", "2015-03-20 05:31:24.607606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '595aad04-cec2-11e4-b5ea-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "595aad04-cec2-11e4-b5ea-705681abff85"], ["created_at", "2015-03-20 05:31:24.611303"], ["updated_at", "2015-03-20 05:31:24.611303"], ["token", "4sZ7xRkryuOfXvYTirSCctEZxb_nrSRyb5NawMQ-1PY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$KPouDhV5m4rnRz5htdzTOO/805/oEMBPDBlSESuGT7PtRw4tnerwu"], ["created_at", "2015-03-20 05:31:24.624781"], ["updated_at", "2015-03-20 05:31:24.624781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.626722"], ["user_id", "595dcf16-cec2-11e4-9fea-705681abff85"], ["created_at", "2015-03-20 05:31:24.627700"], ["updated_at", "2015-03-20 05:31:24.627700"], ["token", "kJsyKYQeW3-rtTPslzQ0oWl-aqg8nrVCtTM-M-af648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.631976"], ["updated_at", "2015-03-20 05:31:24.631976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '595dcf16-cec2-11e4-9fea-705681abff85' AND "clubhouse_memberships"."organization_id" = '595ee5ae-cec2-11e4-b5e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "595dcf16-cec2-11e4-9fea-705681abff85"], ["organization_id", "595ee5ae-cec2-11e4-b5e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.635465"], ["updated_at", "2015-03-20 05:31:24.635465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '595ee5ae-cec2-11e4-b5e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "595ee5ae-cec2-11e4-b5e7-705681abff85"], ["created_at", "2015-03-20 05:31:24.638859"], ["updated_at", "2015-03-20 05:31:24.638859"], ["token", "eYC77CYoa4ytF0OyFY29ZP3pFmeSpuTZj5VResKVeyI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.644012' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kJsyKYQeW3-rtTPslzQ0oWl-aqg8nrVCtTM-M-af648"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.645613"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.647267"], ["id", "595e5396-cec2-11e4-a3c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "595dcf16-cec2-11e4-9fea-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "595ee5ae-cec2-11e4-b5e7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '595dcf16-cec2-11e4-9fea-705681abff85' LIMIT 1 [["organization_id", "595ee5ae-cec2-11e4-b5e7-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '595ee5ae-cec2-11e4-b5e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "595ee5ae-cec2-11e4-b5e7-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.654889"], ["updated_at", "2015-03-20 05:31:24.654889"], ["token", "PGGkFZDgl1Fo7MfF5ZcBt47w9yaVQ6WonisGRD0EXdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 22b0e181-04af-4abf-9772-f6fc445776df) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/59626c60-cec2-11e4-a567-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "59626c60-cec2-11e4-a567-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [22b0e181-04af-4abf-9772-f6fc445776df] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/59626c60-cec2-11e4-a567-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [22b0e181-04af-4abf-9772-f6fc445776df] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "595ee5ae-cec2-11e4-b5e7-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [22b0e181-04af-4abf-9772-f6fc445776df] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [22b0e181-04af-4abf-9772-f6fc445776df] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [22b0e181-04af-4abf-9772-f6fc445776df] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [22b0e181-04af-4abf-9772-f6fc445776df] Date: Thu, 19 Mar 2015 22:31:24 -0700 From: from@example.com To: email@example.com Message-ID: <550bb0aca1a33_10b83fe6d8465bf013811@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/PGGkFZDgl1Fo7MfF5ZcBt47w9yaVQ6WonisGRD0EXdY?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [22b0e181-04af-4abf-9772-f6fc445776df] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.31ms Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$bZl235boswf5uQ30EHHtFuBNPiSAvLfmJwXMx1MJ7aA30dkCGXMPW"], ["created_at", "2015-03-20 05:31:24.671010"], ["updated_at", "2015-03-20 05:31:24.671010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.672617"], ["user_id", "5964dbe4-cec2-11e4-a63b-705681abff85"], ["created_at", "2015-03-20 05:31:24.673356"], ["updated_at", "2015-03-20 05:31:24.673356"], ["token", "4MlX0UbAfupPN_4kk51MEXA5hQUFQO9g5tZFiEpMCfc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.676868"], ["updated_at", "2015-03-20 05:31:24.676868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5964dbe4-cec2-11e4-a63b-705681abff85' AND "clubhouse_memberships"."organization_id" = '5965c4d2-cec2-11e4-bc53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5964dbe4-cec2-11e4-a63b-705681abff85"], ["organization_id", "5965c4d2-cec2-11e4-bc53-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.680496"], ["updated_at", "2015-03-20 05:31:24.680496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '5965c4d2-cec2-11e4-bc53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "5965c4d2-cec2-11e4-bc53-705681abff85"], ["created_at", "2015-03-20 05:31:24.684231"], ["updated_at", "2015-03-20 05:31:24.684231"], ["token", "QGZsIWCV2D1Go4_9IEYZY8EXF-ZFOKskxs3PkchQoOw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.689675' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4MlX0UbAfupPN_4kk51MEXA5hQUFQO9g5tZFiEpMCfc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.691565"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.693474"], ["id", "59653cce-cec2-11e4-9166-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5964dbe4-cec2-11e4-a63b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5965c4d2-cec2-11e4-bc53-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5964dbe4-cec2-11e4-a63b-705681abff85' LIMIT 1 [["organization_id", "5965c4d2-cec2-11e4-bc53-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5965c4d2-cec2-11e4-bc53-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5965c4d2-cec2-11e4-bc53-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.701381"], ["updated_at", "2015-03-20 05:31:24.701381"], ["token", "a1_oyjsjYhrqa3cjRFDzijzfDOh5sv5LkFwb7EpoBpI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3e158894-b01e-48c6-8f47-36b6700d6e66) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/596991ac-cec2-11e4-9c21-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "596991ac-cec2-11e4-9c21-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3e158894-b01e-48c6-8f47-36b6700d6e66] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/596991ac-cec2-11e4-9c21-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [3e158894-b01e-48c6-8f47-36b6700d6e66] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5965c4d2-cec2-11e4-bc53-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3e158894-b01e-48c6-8f47-36b6700d6e66] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [3e158894-b01e-48c6-8f47-36b6700d6e66] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [3e158894-b01e-48c6-8f47-36b6700d6e66] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [3e158894-b01e-48c6-8f47-36b6700d6e66] Date: Thu, 19 Mar 2015 22:31:24 -0700 From: from@example.com To: email@example.com Message-ID: <550bb0acad235_10b83fe6d8465bf0139d3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/a1_oyjsjYhrqa3cjRFDzijzfDOh5sv5LkFwb7EpoBpI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [3e158894-b01e-48c6-8f47-36b6700d6e66] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.14ms Completed 201 Created in 22ms (Views: 0.9ms | ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$cehnMTgNVfizv..gtmG6Q.rju8jC4NTFtRBZ9TVkiNfnVEj9wMmNS"], ["created_at", "2015-03-20 05:31:24.718384"], ["updated_at", "2015-03-20 05:31:24.718384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:31:24.720033"], ["user_id", "596c1800-cec2-11e4-b9b1-705681abff85"], ["created_at", "2015-03-20 05:31:24.720825"], ["updated_at", "2015-03-20 05:31:24.720825"], ["token", "EEGIyaOErVKkWaJm4IE4ufk5sqkVRWlJnwYa2kab1lI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.724362"], ["updated_at", "2015-03-20 05:31:24.724362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '596c1800-cec2-11e4-b9b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '596cfe46-cec2-11e4-8c40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "596c1800-cec2-11e4-b9b1-705681abff85"], ["organization_id", "596cfe46-cec2-11e4-8c40-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:31:24.728079"], ["updated_at", "2015-03-20 05:31:24.728079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '596cfe46-cec2-11e4-8c40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "596cfe46-cec2-11e4-8c40-705681abff85"], ["created_at", "2015-03-20 05:31:24.731696"], ["updated_at", "2015-03-20 05:31:24.731696"], ["token", "AbVqHrFySufN3LYLsKVie4Q8i5JvpK4gKJKTkeCL4NI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:31:24 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:31:24.736402' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EEGIyaOErVKkWaJm4IE4ufk5sqkVRWlJnwYa2kab1lI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:31:24.737818"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:31:24.738739"], ["id", "596c7bd8-cec2-11e4-9f0e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "596c1800-cec2-11e4-b9b1-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "596cfe46-cec2-11e4-8c40-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '596c1800-cec2-11e4-b9b1-705681abff85' LIMIT 1 [["organization_id", "596cfe46-cec2-11e4-8c40-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '596cfe46-cec2-11e4-8c40-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.751584"], ["updated_at", "2015-03-20 05:31:24.751584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.769890"], ["updated_at", "2015-03-20 05:31:24.769890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.773774"], ["updated_at", "2015-03-20 05:31:24.773774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.798231"], ["updated_at", "2015-03-20 05:31:24.798231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "59784a30-cec2-11e4-abb6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:31:24.803263"], ["updated_at", "2015-03-20 05:31:24.803263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$c8rD40IdLQx0JiJhgMc74O463OvC9Kw9OpRPNGDxOAe6CAl27F6Li"], ["created_at", "2015-03-20 05:34:06.315509"], ["updated_at", "2015-03-20 05:34:06.315509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.325069"], ["user_id", "b9be0c68-cec2-11e4-8ddf-705681abff85"], ["created_at", "2015-03-20 05:34:06.329122"], ["updated_at", "2015-03-20 05:34:06.329122"], ["token", "fO8dK1AONmUVJL1u2lSP-ob970N6GkT3Ux0hy0cK5n8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.340296"], ["updated_at", "2015-03-20 05:34:06.340296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9be0c68-cec2-11e4-8ddf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9c1b340-cec2-11e4-a1df-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9be0c68-cec2-11e4-8ddf-705681abff85"], ["organization_id", "b9c1b340-cec2-11e4-a1df-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.365021"], ["updated_at", "2015-03-20 05:34:06.365021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$oFHkU9qrZ4RyDt9u5vEIIurhflgHfwGHnmLMlVhNMgVHacyCn3ucm"], ["created_at", "2015-03-20 05:34:06.406285"], ["updated_at", "2015-03-20 05:34:06.406285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.408267"], ["user_id", "b9cbbffc-cec2-11e4-b082-705681abff85"], ["created_at", "2015-03-20 05:34:06.409081"], ["updated_at", "2015-03-20 05:34:06.409081"], ["token", "uEII0gjmLJkPz06A2bGhpeMaLV9bnRbcK15l7eUj5nY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.412564"], ["updated_at", "2015-03-20 05:34:06.412564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9cbbffc-cec2-11e4-b082-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9cca70a-cec2-11e4-99b2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9cbbffc-cec2-11e4-b082-705681abff85"], ["organization_id", "b9cca70a-cec2-11e4-99b2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.415759"], ["updated_at", "2015-03-20 05:34:06.415759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-2" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.420828' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uEII0gjmLJkPz06A2bGhpeMaLV9bnRbcK15l7eUj5nY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.425929"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.427091"], ["id", "b9cc27e4-cec2-11e4-ba28-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-2"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9cbbffc-cec2-11e4-b082-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9cbbffc-cec2-11e4-b082-705681abff85' LIMIT 1 [["organization_id", "b9cca70a-cec2-11e4-99b2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "b9cca70a-cec2-11e4-99b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 24ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$WmXpYdXq8vZh2bUpAw4SH.GMEoShFkTK9pfTKEqufxLmO5zLZQJQ."], ["created_at", "2015-03-20 05:34:06.451363"], ["updated_at", "2015-03-20 05:34:06.451363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.453194"], ["user_id", "b9d29796-cec2-11e4-a475-705681abff85"], ["created_at", "2015-03-20 05:34:06.454085"], ["updated_at", "2015-03-20 05:34:06.454085"], ["token", "jQTmTSJsQmZ24jK1VZPjkGJjs-r-h2ln6pT93lBzweo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.458621"], ["updated_at", "2015-03-20 05:34:06.458621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d29796-cec2-11e4-a475-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9d3b0ea-cec2-11e4-886d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9d29796-cec2-11e4-a475-705681abff85"], ["organization_id", "b9d3b0ea-cec2-11e4-886d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.461941"], ["updated_at", "2015-03-20 05:34:06.461941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$XIgwd2smQfEFgxNPJuYkAONzRNLC.xs8gp8TjFr.UR7G8noP60Dga"], ["created_at", "2015-03-20 05:34:06.472381"], ["updated_at", "2015-03-20 05:34:06.472381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.474299"], ["user_id", "b9d5cf10-cec2-11e4-846c-705681abff85"], ["created_at", "2015-03-20 05:34:06.475159"], ["updated_at", "2015-03-20 05:34:06.475159"], ["token", "SHEX4VPRURzWXV7nFJ5pQXYJlEj5c17cMDDOqGpdJ78"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.478801"], ["updated_at", "2015-03-20 05:34:06.478801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d5cf10-cec2-11e4-846c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9d6c366-cec2-11e4-8b53-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9d5cf10-cec2-11e4-846c-705681abff85"], ["organization_id", "b9d6c366-cec2-11e4-8b53-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.482027"], ["updated_at", "2015-03-20 05:34:06.482027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-4" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-4", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.486718' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "SHEX4VPRURzWXV7nFJ5pQXYJlEj5c17cMDDOqGpdJ78"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.488525"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.490036"], ["id", "b9d63f9a-cec2-11e4-841b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9d5cf10-cec2-11e4-846c-705681abff85"]] Completed 200 OK in 7ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$8qNFcIa.tQ7A0YwSBTzfWOi4cwTelXGPDRfWmI8XFqGCk8j7aLrBm"], ["created_at", "2015-03-20 05:34:06.499084"], ["updated_at", "2015-03-20 05:34:06.499084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.500650"], ["user_id", "b9d9dcea-cec2-11e4-bbc6-705681abff85"], ["created_at", "2015-03-20 05:34:06.501908"], ["updated_at", "2015-03-20 05:34:06.501908"], ["token", "jamZOoND1X4cytJs3UEUxmvbNtyyh-QguI3r0Bm7hzQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.506773"], ["updated_at", "2015-03-20 05:34:06.506773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d9dcea-cec2-11e4-bbc6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9db22b2-cec2-11e4-b245-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9d9dcea-cec2-11e4-bbc6-705681abff85"], ["organization_id", "b9db22b2-cec2-11e4-b245-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.511766"], ["updated_at", "2015-03-20 05:34:06.511766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.517551' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jamZOoND1X4cytJs3UEUxmvbNtyyh-QguI3r0Bm7hzQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.519273"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.520285"], ["id", "b9da6020-cec2-11e4-8bbe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$4CvT4lJa6j5J1eYX9hCmJul0QM46I1eQJFIX0RRopJfoDVLAzhZUq"], ["created_at", "2015-03-20 05:34:06.528585"], ["updated_at", "2015-03-20 05:34:06.528585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.530271"], ["user_id", "b9de603a-cec2-11e4-b933-705681abff85"], ["created_at", "2015-03-20 05:34:06.531567"], ["updated_at", "2015-03-20 05:34:06.531567"], ["token", "b3rJdYupv9evLPs689vZV35adRXtzRT2NM3_5intOGU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.537294"], ["updated_at", "2015-03-20 05:34:06.537294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9de603a-cec2-11e4-b933-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9dfb78c-cec2-11e4-a465-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9de603a-cec2-11e4-b933-705681abff85"], ["organization_id", "b9dfb78c-cec2-11e4-a465-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.541203"], ["updated_at", "2015-03-20 05:34:06.541203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$wVLsIQXYUzVbD0TLYjvUpeB9ID6oy7B7pRWkaeLk6yvXbJbVLET2m"], ["created_at", "2015-03-20 05:34:06.551312"], ["updated_at", "2015-03-20 05:34:06.551312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.552938"], ["user_id", "b9e1d544-cec2-11e4-932e-705681abff85"], ["created_at", "2015-03-20 05:34:06.553747"], ["updated_at", "2015-03-20 05:34:06.553747"], ["token", "Fn0F2hZImFB7xeaIKSwHZP3Fe_MjCrlj3bbim0lI2yA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.558463"], ["updated_at", "2015-03-20 05:34:06.558463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9e1d544-cec2-11e4-932e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9e2eb32-cec2-11e4-b9be-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9e1d544-cec2-11e4-932e-705681abff85"], ["organization_id", "b9e2eb32-cec2-11e4-b9be-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.561906"], ["updated_at", "2015-03-20 05:34:06.561906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.566613' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Fn0F2hZImFB7xeaIKSwHZP3Fe_MjCrlj3bbim0lI2yA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.568659"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.570482"], ["id", "b9e23ee4-cec2-11e4-b292-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9e1d544-cec2-11e4-932e-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.583974"], ["updated_at", "2015-03-20 05:34:06.583974"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9e6d3b4-cec2-11e4-80ca-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9e1d544-cec2-11e4-932e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9e6d3b4-cec2-11e4-80ca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9e1d544-cec2-11e4-932e-705681abff85"], ["admin", "t"], ["organization_id", "b9e6d3b4-cec2-11e4-80ca-705681abff85"], ["created_at", "2015-03-20 05:34:06.588643"], ["updated_at", "2015-03-20 05:34:06.588643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 34ms (Views: 9.5ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$GY5IJnikEu8XdF2W5B78sOtUh/ZHvwmgOnJRTKX.RN5KOTD2vSYpK"], ["created_at", "2015-03-20 05:34:06.608627"], ["updated_at", "2015-03-20 05:34:06.608627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.610217"], ["user_id", "b9ea94d6-cec2-11e4-8da3-705681abff85"], ["created_at", "2015-03-20 05:34:06.611035"], ["updated_at", "2015-03-20 05:34:06.611035"], ["token", "qSu69Pz_l75P7KPqmPh8fcjbhERZA5ggfDpm8w27m8w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.614297"], ["updated_at", "2015-03-20 05:34:06.614297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ea94d6-cec2-11e4-8da3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9eb6e56-cec2-11e4-be92-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9ea94d6-cec2-11e4-8da3-705681abff85"], ["organization_id", "b9eb6e56-cec2-11e4-be92-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.617442"], ["updated_at", "2015-03-20 05:34:06.617442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.622611' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qSu69Pz_l75P7KPqmPh8fcjbhERZA5ggfDpm8w27m8w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.624015"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.625016"], ["id", "b9eaf700-cec2-11e4-80d8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9ea94d6-cec2-11e4-8da3-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$GPswF1QenBAmMjWms/S8v.INU.LJwBi9tyGgDQtBNd.9SgAfIiubK"], ["created_at", "2015-03-20 05:34:06.641968"], ["updated_at", "2015-03-20 05:34:06.641968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.643741"], ["user_id", "b9efae08-cec2-11e4-b362-705681abff85"], ["created_at", "2015-03-20 05:34:06.644581"], ["updated_at", "2015-03-20 05:34:06.644581"], ["token", "Cm8n1gbNnJ6wR6aC3uT356y7v4p5z7BxXpO5IPSESEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.647933"], ["updated_at", "2015-03-20 05:34:06.647933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9efae08-cec2-11e4-b362-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f091ba-cec2-11e4-a654-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9efae08-cec2-11e4-b362-705681abff85"], ["organization_id", "b9f091ba-cec2-11e4-a654-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.651257"], ["updated_at", "2015-03-20 05:34:06.651257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$8uc/ddg3JiZWvYxWv0b4iOCnJ89Dh57HEaPtVVbZ7bHjdsFBOfRJW"], ["created_at", "2015-03-20 05:34:06.661951"], ["updated_at", "2015-03-20 05:34:06.661951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.663522"], ["user_id", "b9f2b698-cec2-11e4-b251-705681abff85"], ["created_at", "2015-03-20 05:34:06.664293"], ["updated_at", "2015-03-20 05:34:06.664293"], ["token", "jyY4mba5UMJJKSiRx1gdY3EYlN0VGvqYPfOHCGF425o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.667495"], ["updated_at", "2015-03-20 05:34:06.667495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f2b698-cec2-11e4-b251-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f38c08-cec2-11e4-a5c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9f2b698-cec2-11e4-b251-705681abff85"], ["organization_id", "b9f38c08-cec2-11e4-a5c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.670683"], ["updated_at", "2015-03-20 05:34:06.670683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-10" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.675316' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jyY4mba5UMJJKSiRx1gdY3EYlN0VGvqYPfOHCGF425o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.676802"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.677846"], ["id", "b9f315ac-cec2-11e4-871e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9f2b698-cec2-11e4-b251-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b9f2b698-cec2-11e4-b251-705681abff85' LIMIT 1 [["organization_id", "b9f38c08-cec2-11e4-a5c9-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$eEqMshM7TobD6WSXD.NUh.gx/.IDXVWWUdkS7G2s5k2Ovg8JcB4QK"], ["created_at", "2015-03-20 05:34:06.688883"], ["updated_at", "2015-03-20 05:34:06.688883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.690486"], ["user_id", "b9f6d2fa-cec2-11e4-90b5-705681abff85"], ["created_at", "2015-03-20 05:34:06.691220"], ["updated_at", "2015-03-20 05:34:06.691220"], ["token", "24KijZCPQ03n0CDa351K7RRHkH48rLp2EHxvUdmhd84"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.695029"], ["updated_at", "2015-03-20 05:34:06.695029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f6d2fa-cec2-11e4-90b5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f7c19c-cec2-11e4-9e9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9f6d2fa-cec2-11e4-90b5-705681abff85"], ["organization_id", "b9f7c19c-cec2-11e4-9e9e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.698296"], ["updated_at", "2015-03-20 05:34:06.698296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$5ZhNT5DatJ2yTkGsatXItOY2.Kk0fW2eHjhTAzDy2jFUn0nM5OmC2"], ["created_at", "2015-03-20 05:34:06.708829"], ["updated_at", "2015-03-20 05:34:06.708829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.710474"], ["user_id", "b9f9dfd6-cec2-11e4-b199-705681abff85"], ["created_at", "2015-03-20 05:34:06.711342"], ["updated_at", "2015-03-20 05:34:06.711342"], ["token", "lRGnZLBrVfBmvhQP4LiRml_7dpwSwvoQt83fi7OGnh0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.714662"], ["updated_at", "2015-03-20 05:34:06.714662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f9dfd6-cec2-11e4-b199-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9fabf46-cec2-11e4-a2b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9f9dfd6-cec2-11e4-b199-705681abff85"], ["organization_id", "b9fabf46-cec2-11e4-a2b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.717822"], ["updated_at", "2015-03-20 05:34:06.717822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-12" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-12", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.722768' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lRGnZLBrVfBmvhQP4LiRml_7dpwSwvoQt83fi7OGnh0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.724172"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.725122"], ["id", "b9fa44e4-cec2-11e4-beb2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9f9dfd6-cec2-11e4-b199-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9f9dfd6-cec2-11e4-b199-705681abff85' LIMIT 1 [["organization_id", "b9fabf46-cec2-11e4-a2b4-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b9fabf46-cec2-11e4-a2b4-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:34:06.732114"], ["id", "b9fabf46-cec2-11e4-a2b4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$Z3i8BzlFzfQquv11I2DlN.iSrVbuGwJiMxHMMg4Iv/L8zmUzBnDOC"], ["created_at", "2015-03-20 05:34:06.739647"], ["updated_at", "2015-03-20 05:34:06.739647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.741596"], ["user_id", "b9fe9698-cec2-11e4-a9e6-705681abff85"], ["created_at", "2015-03-20 05:34:06.742494"], ["updated_at", "2015-03-20 05:34:06.742494"], ["token", "QqpmkSIW4kSY4OHKu1HuCvE3bB8uiBS9uhCTSx6yd2E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.745985"], ["updated_at", "2015-03-20 05:34:06.745985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9fe9698-cec2-11e4-a9e6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ff86fc-cec2-11e4-9c3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9fe9698-cec2-11e4-a9e6-705681abff85"], ["organization_id", "b9ff86fc-cec2-11e4-9c3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.749274"], ["updated_at", "2015-03-20 05:34:06.749274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-13" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-13", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.754812' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QqpmkSIW4kSY4OHKu1HuCvE3bB8uiBS9uhCTSx6yd2E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.756532"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.758050"], ["id", "b9ff0bfa-cec2-11e4-b76f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9fe9698-cec2-11e4-a9e6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9fe9698-cec2-11e4-a9e6-705681abff85' LIMIT 1 [["organization_id", "b9ff86fc-cec2-11e4-9c3f-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b9ff86fc-cec2-11e4-9c3f-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$pZFwuVaBlewwuAt5JqFyxe1uZ16y52ImYx70a4lJpd7IYxr78iKnm"], ["created_at", "2015-03-20 05:34:06.771996"], ["updated_at", "2015-03-20 05:34:06.771996"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.774148"], ["user_id", "ba038860-cec2-11e4-8802-705681abff85"], ["created_at", "2015-03-20 05:34:06.775067"], ["updated_at", "2015-03-20 05:34:06.775067"], ["token", "z-3wDfCPhNhRr4kJR0drfgBiPrVkjdc5BuF-oiCIjjk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.779153"], ["updated_at", "2015-03-20 05:34:06.779153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba038860-cec2-11e4-8802-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba049868-cec2-11e4-ad17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba038860-cec2-11e4-8802-705681abff85"], ["organization_id", "ba049868-cec2-11e4-ad17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.782447"], ["updated_at", "2015-03-20 05:34:06.782447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$n2cbc1qrHr45UxaSDi1EGOQcTyvQQJ8Uv81NnaQ3TrJXXaSGZdnIK"], ["created_at", "2015-03-20 05:34:06.791977"], ["updated_at", "2015-03-20 05:34:06.791977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.793637"], ["user_id", "ba06906e-cec2-11e4-947d-705681abff85"], ["created_at", "2015-03-20 05:34:06.794418"], ["updated_at", "2015-03-20 05:34:06.794418"], ["token", "3fpQPGTF-CC9Om42KF267dgP6fv_J-wjfPSSsikEoBc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.797717"], ["updated_at", "2015-03-20 05:34:06.797717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba06906e-cec2-11e4-947d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba076b38-cec2-11e4-b7f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba06906e-cec2-11e4-947d-705681abff85"], ["organization_id", "ba076b38-cec2-11e4-b7f2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.800888"], ["updated_at", "2015-03-20 05:34:06.800888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/ba076b38-cec2-11e4-b7f2-705681abff85" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"ba076b38-cec2-11e4-b7f2-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.806072' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3fpQPGTF-CC9Om42KF267dgP6fv_J-wjfPSSsikEoBc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.808149"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.809294"], ["id", "ba06f234-cec2-11e4-bea0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba076b38-cec2-11e4-b7f2-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba06906e-cec2-11e4-947d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba06906e-cec2-11e4-947d-705681abff85' LIMIT 1 [["organization_id", "ba076b38-cec2-11e4-b7f2-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "ba076b38-cec2-11e4-b7f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$UM6BAu4FuRcgBT3zyQwOUOcwmtU0qGYPVf2AQoBRdzNYYtTXKxkKG"], ["created_at", "2015-03-20 05:34:06.820128"], ["updated_at", "2015-03-20 05:34:06.820128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.821753"], ["user_id", "ba0adc50-cec2-11e4-ac13-705681abff85"], ["created_at", "2015-03-20 05:34:06.822554"], ["updated_at", "2015-03-20 05:34:06.822554"], ["token", "vCN4B4r_OYF6wXDDHcVv_CR-U_pQzyCjEIGI6gTzJtg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.825942"], ["updated_at", "2015-03-20 05:34:06.825942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba0adc50-cec2-11e4-ac13-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba0bbdd2-cec2-11e4-a805-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba0adc50-cec2-11e4-ac13-705681abff85"], ["organization_id", "ba0bbdd2-cec2-11e4-a805-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.829251"], ["updated_at", "2015-03-20 05:34:06.829251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$fbCHx0kBe6jki/v3fZS5YuwfhDS2N41APHyHLvAyaxkDndWQ4DbIe"], ["created_at", "2015-03-20 05:34:06.833794"], ["updated_at", "2015-03-20 05:34:06.833794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.836884"], ["updated_at", "2015-03-20 05:34:06.836884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba0ceefa-cec2-11e4-98c2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba0d65ba-cec2-11e4-b70d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba0ceefa-cec2-11e4-98c2-705681abff85"], ["organization_id", "ba0d65ba-cec2-11e4-b70d-705681abff85"], ["created_at", "2015-03-20 05:34:06.840250"], ["updated_at", "2015-03-20 05:34:06.840250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$cR9kIzaYG9E068hIn.jVtO3GuGcPqlWbVsR44TwoXm9DQipISB85K"], ["created_at", "2015-03-20 05:34:06.853294"], ["updated_at", "2015-03-20 05:34:06.853294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.855260"], ["user_id", "ba0ff3b6-cec2-11e4-8a9e-705681abff85"], ["created_at", "2015-03-20 05:34:06.856139"], ["updated_at", "2015-03-20 05:34:06.856139"], ["token", "VTop4VaDX7ykLIZG2IzS2wolzJH1vxYaHFp46g7-Meg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.860697"], ["updated_at", "2015-03-20 05:34:06.860697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba0ff3b6-cec2-11e4-8a9e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba110a9e-cec2-11e4-9dfa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba0ff3b6-cec2-11e4-8a9e-705681abff85"], ["organization_id", "ba110a9e-cec2-11e4-9dfa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.864039"], ["updated_at", "2015-03-20 05:34:06.864039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Uj/0v/9YdkIC8eNR19S/7.KWoEFJRn.qYcsyv2SsVTAJvLGM5ZASy"], ["created_at", "2015-03-20 05:34:06.868283"], ["updated_at", "2015-03-20 05:34:06.868283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.871635"], ["updated_at", "2015-03-20 05:34:06.871635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba123126-cec2-11e4-ad03-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba12b8a8-cec2-11e4-85c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba123126-cec2-11e4-ad03-705681abff85"], ["organization_id", "ba12b8a8-cec2-11e4-85c7-705681abff85"], ["created_at", "2015-03-20 05:34:06.875168"], ["updated_at", "2015-03-20 05:34:06.875168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.879585' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VTop4VaDX7ykLIZG2IzS2wolzJH1vxYaHFp46g7-Meg"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.881456"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.883395"], ["id", "ba10749e-cec2-11e4-a329-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba0ff3b6-cec2-11e4-8a9e-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "ba0ff3b6-cec2-11e4-8a9e-705681abff85"]] Completed 200 OK in 12ms (Views: 3.0ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$d86zwXpQVjl93umd2R5xDedLae/mReZxwB3.xR5cr50j0emMq6Ehy"], ["created_at", "2015-03-20 05:34:06.898294"], ["updated_at", "2015-03-20 05:34:06.898294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.899940"], ["user_id", "ba16c718-cec2-11e4-bbe4-705681abff85"], ["created_at", "2015-03-20 05:34:06.900760"], ["updated_at", "2015-03-20 05:34:06.900760"], ["token", "p5yZ-1VwD8rNeullH7ePoGi9fTYtDyuQN0UpjYN2zXA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.904179"], ["updated_at", "2015-03-20 05:34:06.904179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba16c718-cec2-11e4-bbe4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba17ac96-cec2-11e4-af79-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba16c718-cec2-11e4-bbe4-705681abff85"], ["organization_id", "ba17ac96-cec2-11e4-af79-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.907587"], ["updated_at", "2015-03-20 05:34:06.907587"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$ZWE5b0AL/hs5ErjAlpWJ8eeSYIlKCnB96oYGiM5gkem/6UxV3Mbbq"], ["created_at", "2015-03-20 05:34:06.933759"], ["updated_at", "2015-03-20 05:34:06.933759"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.938807"], ["user_id", "ba1c753c-cec2-11e4-a991-705681abff85"], ["created_at", "2015-03-20 05:34:06.940598"], ["updated_at", "2015-03-20 05:34:06.940598"], ["token", "R0pez_ZCDabeusfcqzLz0xiDaCPh8a9n8y2WDD5wd3g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.945930"], ["updated_at", "2015-03-20 05:34:06.945930"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba1c753c-cec2-11e4-a991-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba1e2cec-cec2-11e4-bbb6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba1c753c-cec2-11e4-a991-705681abff85"], ["organization_id", "ba1e2cec-cec2-11e4-bbb6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.953189"], ["updated_at", "2015-03-20 05:34:06.953189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/ba1e2cec-cec2-11e4-bbb6-705681abff85" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"ba1e2cec-cec2-11e4-bbb6-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:06.959037' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "R0pez_ZCDabeusfcqzLz0xiDaCPh8a9n8y2WDD5wd3g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:06.960513"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:06.961778"], ["id", "ba1d6424-cec2-11e4-a6f9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba1e2cec-cec2-11e4-bbb6-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba1c753c-cec2-11e4-a991-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ba1c753c-cec2-11e4-a991-705681abff85' LIMIT 1 [["organization_id", "ba1e2cec-cec2-11e4-bbb6-705681abff85"]] Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$YA3O5tWaHPrSKz8mdQWuGuvcbhy6TSkNabi4101on5vacNMETVpFq"], ["created_at", "2015-03-20 05:34:06.978628"], ["updated_at", "2015-03-20 05:34:06.978628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:06.980764"], ["user_id", "ba231ac2-cec2-11e4-a337-705681abff85"], ["created_at", "2015-03-20 05:34:06.981565"], ["updated_at", "2015-03-20 05:34:06.981565"], ["token", "XGgv1E1AbfiW0WlKL9blPmX30ccoQLAy9TI1xB5GWBw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:06.985059"], ["updated_at", "2015-03-20 05:34:06.985059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba231ac2-cec2-11e4-a337-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba2402b6-cec2-11e4-905a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba231ac2-cec2-11e4-a337-705681abff85"], ["organization_id", "ba2402b6-cec2-11e4-905a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:06.988567"], ["updated_at", "2015-03-20 05:34:06.988567"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 22:34:06 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$B1Foc.E0F8wlek79ItZ7wePoaoNOT9xdNJG0slc2otNMeGXlEYE6K"], ["created_at", "2015-03-20 05:34:06.999964"], ["updated_at", "2015-03-20 05:34:06.999964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:07.001714"], ["user_id", "ba264ba2-cec2-11e4-bb72-705681abff85"], ["created_at", "2015-03-20 05:34:07.002528"], ["updated_at", "2015-03-20 05:34:07.002528"], ["token", "LBTb5uOZC3CZH050iHJQPZROXdkvXuyWg2qqUQpJrmc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.006041"], ["updated_at", "2015-03-20 05:34:07.006041"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba264ba2-cec2-11e4-bb72-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba273a8a-cec2-11e4-9711-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba264ba2-cec2-11e4-bb72-705681abff85"], ["organization_id", "ba273a8a-cec2-11e4-9711-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.011315"], ["updated_at", "2015-03-20 05:34:07.011315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/ba273a8a-cec2-11e4-9711-705681abff85" for 127.0.0.1 at 2015-03-19 22:34:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"ba273a8a-cec2-11e4-9711-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:07.016378' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LBTb5uOZC3CZH050iHJQPZROXdkvXuyWg2qqUQpJrmc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:07.017796"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:07.018770"], ["id", "ba26b5d8-cec2-11e4-816b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba273a8a-cec2-11e4-9711-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba264ba2-cec2-11e4-bb72-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba264ba2-cec2-11e4-bb72-705681abff85' LIMIT 1 [["organization_id", "ba273a8a-cec2-11e4-9711-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ba273a8a-cec2-11e4-9711-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:34:07.025919"], ["id", "ba273a8a-cec2-11e4-9711-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$Pd8TjypvfVSZfGNsjhONkOjNLVT1RziergAdexocRnKOuc6k7ttwi"], ["created_at", "2015-03-20 05:34:07.034033"], ["updated_at", "2015-03-20 05:34:07.034033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:07.035661"], ["user_id", "ba2b7f78-cec2-11e4-8222-705681abff85"], ["created_at", "2015-03-20 05:34:07.036416"], ["updated_at", "2015-03-20 05:34:07.036416"], ["token", "sZx2RYtM-0FLf_rhu47pi0ht0foC2j1Lhpj1O7hM85Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.041140"], ["updated_at", "2015-03-20 05:34:07.041140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba2b7f78-cec2-11e4-8222-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba2c9d40-cec2-11e4-b01d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba2b7f78-cec2-11e4-8222-705681abff85"], ["organization_id", "ba2c9d40-cec2-11e4-b01d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.045411"], ["updated_at", "2015-03-20 05:34:07.045411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/ba2c9d40-cec2-11e4-b01d-705681abff85" for 127.0.0.1 at 2015-03-19 22:34:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"ba2c9d40-cec2-11e4-b01d-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:07.050622' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sZx2RYtM-0FLf_rhu47pi0ht0foC2j1Lhpj1O7hM85Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:07.052062"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:07.053104"], ["id", "ba2be328-cec2-11e4-b8cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba2c9d40-cec2-11e4-b01d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba2b7f78-cec2-11e4-8222-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba2b7f78-cec2-11e4-8222-705681abff85' LIMIT 1 [["organization_id", "ba2c9d40-cec2-11e4-b01d-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ba2c9d40-cec2-11e4-b01d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.089227"], ["updated_at", "2015-03-20 05:34:07.089227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ba33fd56-cec2-11e4-b61a-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "ba33fd56-cec2-11e4-b61a-705681abff85"], ["created_at", "2015-03-20 05:34:07.094924"], ["updated_at", "2015-03-20 05:34:07.094924"], ["token", "n7_tMI9qW9m2MIwDebvriRtVOP7W-hugoJ46R-5i4fM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.115053"], ["updated_at", "2015-03-20 05:34:07.115053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'ba37dcd2-cec2-11e4-9121-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "ba37dcd2-cec2-11e4-9121-705681abff85"], ["created_at", "2015-03-20 05:34:07.120015"], ["updated_at", "2015-03-20 05:34:07.120015"], ["token", "TOvSH1YT1Um-mWScr0CHJ3MzYv9vSfPIhyn6_HgSBDM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.6ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ba37dcd2-cec2-11e4-9121-705681abff85"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'ba37dcd2-cec2-11e4-9121-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ba37dcd2-cec2-11e4-9121-705681abff86"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'ba37dcd2-cec2-11e4-9121-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$DzNdfRRU2Vk918M/RqOncOLEW0HnQCrrhF8nQVOYGYgtkm5OLPaW6"], ["created_at", "2015-03-20 05:34:07.146365"], ["updated_at", "2015-03-20 05:34:07.146365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.149916"], ["updated_at", "2015-03-20 05:34:07.149916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'ba3d2b06-cec2-11e4-a19e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "ba3d2b06-cec2-11e4-a19e-705681abff85"], ["created_at", "2015-03-20 05:34:07.153407"], ["updated_at", "2015-03-20 05:34:07.153407"], ["token", "JDDYmhUrsfqb5Q82fKw55D1FWsq4rAxbxK8HwPY3F4k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba3ca672-cec2-11e4-a7c0-705681abff85' LIMIT 1 [["organization_id", "ba3d2b06-cec2-11e4-a19e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$MBh13WUbn6AGNDICHReODuu4x6SA1A0JFs.NzxcCoamlZ8gvhL5n."], ["created_at", "2015-03-20 05:34:07.163069"], ["updated_at", "2015-03-20 05:34:07.163069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.167134"], ["updated_at", "2015-03-20 05:34:07.167134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'ba3fcf6e-cec2-11e4-8df0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "ba3fcf6e-cec2-11e4-8df0-705681abff85"], ["created_at", "2015-03-20 05:34:07.170731"], ["updated_at", "2015-03-20 05:34:07.170731"], ["token", "HPI3n-CBrU7eZWpaHBj-ANJZx-JAPJhV60lpfYUw0Uc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba3f445e-cec2-11e4-9aa8-705681abff85' LIMIT 1 [["organization_id", "ba3fcf6e-cec2-11e4-8df0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$p0B2IepPGZw3x7b7le.AfOsa3RQAdpXFe76LN7b7w5yaVAKVoMsVu"], ["created_at", "2015-03-20 05:34:07.179296"], ["updated_at", "2015-03-20 05:34:07.179296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.183918"], ["updated_at", "2015-03-20 05:34:07.183918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'ba425b80-cec2-11e4-8b1e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "ba425b80-cec2-11e4-8b1e-705681abff85"], ["created_at", "2015-03-20 05:34:07.187301"], ["updated_at", "2015-03-20 05:34:07.187301"], ["token", "uoZ4VWIuIyOc8Cf17L1nZE8JUmi3lift5EFw88t-v9g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba41bee6-cec2-11e4-98f3-705681abff85' LIMIT 1 [["organization_id", "ba425b80-cec2-11e4-8b1e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$FQHvxdNeCtlSqOZq43UBHeVQQ6GdCVSrrIUTkwFbpnrhSOV/Gl4HK"], ["created_at", "2015-03-20 05:34:07.194792"], ["updated_at", "2015-03-20 05:34:07.194792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.197974"], ["updated_at", "2015-03-20 05:34:07.197974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'ba447f28-cec2-11e4-9488-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "ba447f28-cec2-11e4-9488-705681abff85"], ["created_at", "2015-03-20 05:34:07.201320"], ["updated_at", "2015-03-20 05:34:07.201320"], ["token", "MkB4wTDFd7SklD2DW8xTXoUYCocS0lV0-_MtCpktBkY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba4404ee-cec2-11e4-a29e-705681abff85' LIMIT 1 [["organization_id", "ba447f28-cec2-11e4-9488-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$5hJnR.rhOW3i7iwlgLNkteW64kyzVzrapcP.gvTgDqoLOLphLLxdW"], ["created_at", "2015-03-20 05:34:07.209051"], ["updated_at", "2015-03-20 05:34:07.209051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.223117"], ["updated_at", "2015-03-20 05:34:07.223117"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba4632c8-cec2-11e4-b273-705681abff85' LIMIT 1 [["organization_id", "ba486bec-cec2-11e4-9032-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$tLZewaxnmgg4fbi2gl3qsOa77NQvJkUnb7ls.xk/DDELuI6.WQb.i"], ["created_at", "2015-03-20 05:34:07.234088"], ["updated_at", "2015-03-20 05:34:07.234088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.237197"], ["updated_at", "2015-03-20 05:34:07.237197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba4a04f2-cec2-11e4-a73e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba4a7b80-cec2-11e4-85c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba4a04f2-cec2-11e4-a73e-705681abff85"], ["organization_id", "ba4a7b80-cec2-11e4-85c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.240530"], ["updated_at", "2015-03-20 05:34:07.240530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'ba4a7b80-cec2-11e4-85c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "ba4a7b80-cec2-11e4-85c6-705681abff85"], ["created_at", "2015-03-20 05:34:07.244031"], ["updated_at", "2015-03-20 05:34:07.244031"], ["token", "CFPcid_p7iISP4Jk7Dg9Z_s-BpXRZigyRsieh-Z20W4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba4a04f2-cec2-11e4-a73e-705681abff85' LIMIT 1 [["organization_id", "ba4a7b80-cec2-11e4-85c6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$dgsab3WCSbjGCcTjDMnf8uxHMyey6Gy/L4cPl4IjUXngqZ/ygbK7W"], ["created_at", "2015-03-20 05:34:07.251948"], ["updated_at", "2015-03-20 05:34:07.251948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.255025"], ["updated_at", "2015-03-20 05:34:07.255025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba4cbd5a-cec2-11e4-a43b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba4d3370-cec2-11e4-997f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba4cbd5a-cec2-11e4-a43b-705681abff85"], ["organization_id", "ba4d3370-cec2-11e4-997f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.259250"], ["updated_at", "2015-03-20 05:34:07.259250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'ba4d3370-cec2-11e4-997f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "ba4d3370-cec2-11e4-997f-705681abff85"], ["created_at", "2015-03-20 05:34:07.262813"], ["updated_at", "2015-03-20 05:34:07.262813"], ["token", "zFlb5vqDFDqrSyA6MvQg5GjjQ8xsQ_E_5gYaZSrZ-zo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba4cbd5a-cec2-11e4-a43b-705681abff85' LIMIT 1 [["organization_id", "ba4d3370-cec2-11e4-997f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$pEsh.e2irn9hvMMGda.T6.fDXMQv7IczYJQQ7rBEDxtsGNuHO76E."], ["created_at", "2015-03-20 05:34:07.270378"], ["updated_at", "2015-03-20 05:34:07.270378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.273865"], ["updated_at", "2015-03-20 05:34:07.273865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba4f8f08-cec2-11e4-86c7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba502b3e-cec2-11e4-8dc2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba4f8f08-cec2-11e4-86c7-705681abff85"], ["organization_id", "ba502b3e-cec2-11e4-8dc2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.277776"], ["updated_at", "2015-03-20 05:34:07.277776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'ba502b3e-cec2-11e4-8dc2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "ba502b3e-cec2-11e4-8dc2-705681abff85"], ["created_at", "2015-03-20 05:34:07.281296"], ["updated_at", "2015-03-20 05:34:07.281296"], ["token", "hsIKksztQWKIasIAf1K5n8KJVKtCa-MucnKimwu2YNk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba4f8f08-cec2-11e4-86c7-705681abff85' LIMIT 1 [["organization_id", "ba502b3e-cec2-11e4-8dc2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$sJY.eCSf.r3A/oNLCmwCdeYz3pM1gjykGfosSJk7Sj68QppKktHUa"], ["created_at", "2015-03-20 05:34:07.288732"], ["updated_at", "2015-03-20 05:34:07.288732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.300699"], ["updated_at", "2015-03-20 05:34:07.300699"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba525e7c-cec2-11e4-acc5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba544016-cec2-11e4-bd5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba525e7c-cec2-11e4-acc5-705681abff85"], ["organization_id", "ba544016-cec2-11e4-bd5b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.304963"], ["updated_at", "2015-03-20 05:34:07.304963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'ba544016-cec2-11e4-bd5b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "ba544016-cec2-11e4-bd5b-705681abff85"], ["created_at", "2015-03-20 05:34:07.308851"], ["updated_at", "2015-03-20 05:34:07.308851"], ["token", "JRHuFn73gyTjXBRNjJsKCGAA2zM2xXYr9iuzTc35N-k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba525e7c-cec2-11e4-acc5-705681abff85' LIMIT 1 [["organization_id", "ba544016-cec2-11e4-bd5b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$N1Sejl1lJ/Wo2RE1dXQ32OyyktydE6WNCPJ8WKl9Z61VoNwjaCRhu"], ["created_at", "2015-03-20 05:34:07.316840"], ["updated_at", "2015-03-20 05:34:07.316840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.319938"], ["updated_at", "2015-03-20 05:34:07.319938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba56a3a6-cec2-11e4-a9c0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba571c1e-cec2-11e4-a780-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba56a3a6-cec2-11e4-a9c0-705681abff85"], ["organization_id", "ba571c1e-cec2-11e4-a780-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.323200"], ["updated_at", "2015-03-20 05:34:07.323200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba56a3a6-cec2-11e4-a9c0-705681abff85' LIMIT 1 [["organization_id", "ba571c1e-cec2-11e4-a780-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$w0KcUoZFri8B8tp068U8Z.XiPkdGxOQLTSnFdZZORjFB5Cx/IYrEW"], ["created_at", "2015-03-20 05:34:07.330504"], ["updated_at", "2015-03-20 05:34:07.330504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.333624"], ["updated_at", "2015-03-20 05:34:07.333624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba58ba92-cec2-11e4-a66c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba5931d4-cec2-11e4-96ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba58ba92-cec2-11e4-a66c-705681abff85"], ["organization_id", "ba5931d4-cec2-11e4-96ce-705681abff85"], ["created_at", "2015-03-20 05:34:07.336831"], ["updated_at", "2015-03-20 05:34:07.336831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'ba5931d4-cec2-11e4-96ce-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "ba5931d4-cec2-11e4-96ce-705681abff85"], ["created_at", "2015-03-20 05:34:07.340256"], ["updated_at", "2015-03-20 05:34:07.340256"], ["token", "5QnPts29JgPiB3cvidwZ_jr5byjubbRTRxc_llObeB4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (4.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba58ba92-cec2-11e4-a66c-705681abff85' LIMIT 1 [["organization_id", "ba5931d4-cec2-11e4-96ce-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$W1uPwzlj505URgHVP7wOe.31IAGZ5/zaX.GhYaDfVyzFqYB790GHq"], ["created_at", "2015-03-20 05:34:07.369810"], ["updated_at", "2015-03-20 05:34:07.369810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.377240"], ["updated_at", "2015-03-20 05:34:07.377240"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba5ed90e-cec2-11e4-aec6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba5ffe6a-cec2-11e4-89a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba5ed90e-cec2-11e4-aec6-705681abff85"], ["organization_id", "ba5ffe6a-cec2-11e4-89a5-705681abff85"], ["created_at", "2015-03-20 05:34:07.383849"], ["updated_at", "2015-03-20 05:34:07.383849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'ba5ffe6a-cec2-11e4-89a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "ba5ffe6a-cec2-11e4-89a5-705681abff85"], ["created_at", "2015-03-20 05:34:07.387493"], ["updated_at", "2015-03-20 05:34:07.387493"], ["token", "sZEgcWUqQ89JS5jU48R6twPq1PmbtaC91azgby0N3Zs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba5ed90e-cec2-11e4-aec6-705681abff85' LIMIT 1 [["organization_id", "ba5ffe6a-cec2-11e4-89a5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$Y81TadoFbVQMDDxyjgS2JOuldYV1vnLTzgz2/Fr5M2SDynR.wlxwu"], ["created_at", "2015-03-20 05:34:07.395300"], ["updated_at", "2015-03-20 05:34:07.395300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.399830"], ["updated_at", "2015-03-20 05:34:07.399830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba629ee0-cec2-11e4-9904-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba634f0c-cec2-11e4-9af0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba629ee0-cec2-11e4-9904-705681abff85"], ["organization_id", "ba634f0c-cec2-11e4-9af0-705681abff85"], ["created_at", "2015-03-20 05:34:07.403109"], ["updated_at", "2015-03-20 05:34:07.403109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'ba634f0c-cec2-11e4-9af0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "ba634f0c-cec2-11e4-9af0-705681abff85"], ["created_at", "2015-03-20 05:34:07.406402"], ["updated_at", "2015-03-20 05:34:07.406402"], ["token", "4zRP6YQALiFViH7PuLNmDtOTyoTczHuOb7PTXQSFYrs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba629ee0-cec2-11e4-9904-705681abff85' LIMIT 1 [["organization_id", "ba634f0c-cec2-11e4-9af0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$TCzw8u6XQx8.b71JUapE8.TjLqHArf/UTzEHaS6QfA7nBlKpHWvi2"], ["created_at", "2015-03-20 05:34:07.414188"], ["updated_at", "2015-03-20 05:34:07.414188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.417320"], ["updated_at", "2015-03-20 05:34:07.417320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba6580b0-cec2-11e4-a6bf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba65f676-cec2-11e4-86e4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba6580b0-cec2-11e4-a6bf-705681abff85"], ["organization_id", "ba65f676-cec2-11e4-86e4-705681abff85"], ["created_at", "2015-03-20 05:34:07.420495"], ["updated_at", "2015-03-20 05:34:07.420495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'ba65f676-cec2-11e4-86e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "ba65f676-cec2-11e4-86e4-705681abff85"], ["created_at", "2015-03-20 05:34:07.424484"], ["updated_at", "2015-03-20 05:34:07.424484"], ["token", "sAAndUNmRBE4o9Kk9sOoeXdxLjNap39ggZtEZCKvj-c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba6580b0-cec2-11e4-a6bf-705681abff85' LIMIT 1 [["organization_id", "ba65f676-cec2-11e4-86e4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$UfUCzNoldexTir/5p81ml.mZ5pB3pe3a8OGEP.JbOIIz7iefuLI3G"], ["created_at", "2015-03-20 05:34:07.432287"], ["updated_at", "2015-03-20 05:34:07.432287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.435556"], ["updated_at", "2015-03-20 05:34:07.435556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba684354-cec2-11e4-9d90-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba68bf50-cec2-11e4-8853-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba684354-cec2-11e4-9d90-705681abff85"], ["organization_id", "ba68bf50-cec2-11e4-8853-705681abff85"], ["created_at", "2015-03-20 05:34:07.438620"], ["updated_at", "2015-03-20 05:34:07.438620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba684354-cec2-11e4-9d90-705681abff85' LIMIT 1 [["organization_id", "ba68bf50-cec2-11e4-8853-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.446018"], ["updated_at", "2015-03-20 05:34:07.446018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.468651"], ["updated_at", "2015-03-20 05:34:07.468651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.484789"], ["updated_at", "2015-03-20 05:34:07.484789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.496496"], ["updated_at", "2015-03-20 05:34:07.496496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba721410-cec2-11e4-afbf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.501658"], ["updated_at", "2015-03-20 05:34:07.501658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$c7DLBBv55s31Fh1ROLvbt./FjppjMzWUU0ijrFdc02NzEKp85KTd6"], ["created_at", "2015-03-20 05:34:07.510445"], ["updated_at", "2015-03-20 05:34:07.510445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$Hig/iyfF/uzSHvz5CIIc2.di/wPYGI74mKXFvpe/KF2IzZEWcHkzm"], ["created_at", "2015-03-20 05:34:07.516619"], ["updated_at", "2015-03-20 05:34:07.516619"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.520188"], ["updated_at", "2015-03-20 05:34:07.520188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$DfxRhXEOJrF7UBTLbvUXf.hnJ9XII0vZCCPjoD9o6PhDg8TwiSkfq"], ["created_at", "2015-03-20 05:34:07.526098"], ["updated_at", "2015-03-20 05:34:07.526098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.529402"], ["updated_at", "2015-03-20 05:34:07.529402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba769292-cec2-11e4-8f3c-705681abff85' LIMIT 1 [["organization_id", "ba7711fe-cec2-11e4-9b59-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$TD/ndOVRij0dm3oBCkYgRexFE6MdJrPpBxAWVjrB3NxcTW40bomF2"], ["created_at", "2015-03-20 05:34:07.536301"], ["updated_at", "2015-03-20 05:34:07.536301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.539350"], ["updated_at", "2015-03-20 05:34:07.539350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$xPfhW.7OspVcIBm6hn/xwuS6x4h07sO8XNr6VG/N/941K1.456aRG"], ["created_at", "2015-03-20 05:34:07.545195"], ["updated_at", "2015-03-20 05:34:07.545195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.548474"], ["updated_at", "2015-03-20 05:34:07.548474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba797d40-cec2-11e4-a2a7-705681abff85' LIMIT 1 [["organization_id", "ba79fa4a-cec2-11e4-9407-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$gRDwLT34QlVfzUD7UpuSCOAZIR6ow/Q/SS9B6VIYTqhkucxP/JCYu"], ["created_at", "2015-03-20 05:34:07.555317"], ["updated_at", "2015-03-20 05:34:07.555317"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.559104"], ["updated_at", "2015-03-20 05:34:07.559104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ba7b08ea-cec2-11e4-9655-705681abff85' LIMIT 1 [["organization_id", "ba7ba11a-cec2-11e4-98d3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$rEeSGNBBAW.MFarAMGWEaeb4xsHJoAMpZe2XYEOGEvvEyUxkSWQ22"], ["created_at", "2015-03-20 05:34:07.566260"], ["updated_at", "2015-03-20 05:34:07.566260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.569659"], ["updated_at", "2015-03-20 05:34:07.569659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba7cb398-cec2-11e4-8374-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba7d3840-cec2-11e4-817c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba7cb398-cec2-11e4-8374-705681abff85"], ["organization_id", "ba7d3840-cec2-11e4-817c-705681abff85"], ["created_at", "2015-03-20 05:34:07.572930"], ["updated_at", "2015-03-20 05:34:07.572930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$wMtaIocyCNy7ajsEAb871O0hXl.OwQ80B5BitvMM4y/LBseQNheMe"], ["created_at", "2015-03-20 05:34:07.578920"], ["updated_at", "2015-03-20 05:34:07.578920"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.585276"], ["updated_at", "2015-03-20 05:34:07.585276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba7ea1f8-cec2-11e4-9bb1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba7f9df6-cec2-11e4-9601-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba7ea1f8-cec2-11e4-9bb1-705681abff85"], ["organization_id", "ba7f9df6-cec2-11e4-9601-705681abff85"], ["created_at", "2015-03-20 05:34:07.588763"], ["updated_at", "2015-03-20 05:34:07.588763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba7ea1f8-cec2-11e4-9bb1-705681abff85' LIMIT 1 [["organization_id", "ba7f9df6-cec2-11e4-9601-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$tw2sV16zBPo20C.OyRj63.R2SCR6sSy2PtYfp9lIE.b2njIaQDJci"], ["created_at", "2015-03-20 05:34:07.596275"], ["updated_at", "2015-03-20 05:34:07.596275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.599838"], ["updated_at", "2015-03-20 05:34:07.599838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba814854-cec2-11e4-a8a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba81d242-cec2-11e4-b568-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba814854-cec2-11e4-a8a8-705681abff85"], ["organization_id", "ba81d242-cec2-11e4-b568-705681abff85"], ["created_at", "2015-03-20 05:34:07.603365"], ["updated_at", "2015-03-20 05:34:07.603365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$ziDqyDOYQoHlhk935ZsOpOYUeXgpli8XcfPyelJ.Pm0tpduZoqxCa"], ["created_at", "2015-03-20 05:34:07.609583"], ["updated_at", "2015-03-20 05:34:07.609583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.613095"], ["updated_at", "2015-03-20 05:34:07.613095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba835586-cec2-11e4-aca6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba83d7a4-cec2-11e4-9499-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba835586-cec2-11e4-aca6-705681abff85"], ["organization_id", "ba83d7a4-cec2-11e4-9499-705681abff85"], ["created_at", "2015-03-20 05:34:07.616306"], ["updated_at", "2015-03-20 05:34:07.616306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba835586-cec2-11e4-aca6-705681abff85' LIMIT 1 [["organization_id", "ba83d7a4-cec2-11e4-9499-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$zfvg3E4MSspZ/ZTlNrpc2.9E5wg/UgHsgqYhq4l7EW8xHU9ODpe2C"], ["created_at", "2015-03-20 05:34:07.623298"], ["updated_at", "2015-03-20 05:34:07.623298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.626822"], ["updated_at", "2015-03-20 05:34:07.626822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba85674a-cec2-11e4-beaa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba85f458-cec2-11e4-928a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba85674a-cec2-11e4-beaa-705681abff85"], ["organization_id", "ba85f458-cec2-11e4-928a-705681abff85"], ["created_at", "2015-03-20 05:34:07.637662"], ["updated_at", "2015-03-20 05:34:07.637662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ba85674a-cec2-11e4-beaa-705681abff85' LIMIT 1 [["organization_id", "ba85f458-cec2-11e4-928a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$rA4kp0uqd9uTHdgf293Xpe3J1cgRlhhpNHVTYngwTqk.losfmQa4."], ["created_at", "2015-03-20 05:34:07.645965"], ["updated_at", "2015-03-20 05:34:07.645965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.649215"], ["updated_at", "2015-03-20 05:34:07.649215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba88dd62-cec2-11e4-995e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba895af8-cec2-11e4-a00d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba88dd62-cec2-11e4-995e-705681abff85"], ["organization_id", "ba895af8-cec2-11e4-a00d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.652544"], ["updated_at", "2015-03-20 05:34:07.652544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$noWBzwvgXGnWGQKAJAauOOA4HOp49yF2VjGd9Bnys5G.89l04ps3K"], ["created_at", "2015-03-20 05:34:07.658508"], ["updated_at", "2015-03-20 05:34:07.658508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.661911"], ["updated_at", "2015-03-20 05:34:07.661911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba8ac74e-cec2-11e4-b78c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba8b4b10-cec2-11e4-ba16-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba8ac74e-cec2-11e4-b78c-705681abff85"], ["organization_id", "ba8b4b10-cec2-11e4-ba16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.665365"], ["updated_at", "2015-03-20 05:34:07.665365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba8ac74e-cec2-11e4-b78c-705681abff85' LIMIT 1 [["organization_id", "ba8b4b10-cec2-11e4-ba16-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$gl2Bm5x6EnygtbVHzrfFI.ntvtm3yQsPyz8vO2fFA4BrWB5W5mBQK"], ["created_at", "2015-03-20 05:34:07.672447"], ["updated_at", "2015-03-20 05:34:07.672447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.676153"], ["updated_at", "2015-03-20 05:34:07.676153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba8ce916-cec2-11e4-815f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba8d7d4a-cec2-11e4-8c28-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba8ce916-cec2-11e4-815f-705681abff85"], ["organization_id", "ba8d7d4a-cec2-11e4-8c28-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.680328"], ["updated_at", "2015-03-20 05:34:07.680328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$3UtxxqsX5/a7G5OOnMl0RuN.C.zukSEgAScoc9oZMb0oZoqERWKnq"], ["created_at", "2015-03-20 05:34:07.686197"], ["updated_at", "2015-03-20 05:34:07.686197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.689423"], ["updated_at", "2015-03-20 05:34:07.689423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba8f0020-cec2-11e4-9a53-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba8f7cda-cec2-11e4-8da6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba8f0020-cec2-11e4-9a53-705681abff85"], ["organization_id", "ba8f7cda-cec2-11e4-8da6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.692701"], ["updated_at", "2015-03-20 05:34:07.692701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba8f0020-cec2-11e4-9a53-705681abff85' LIMIT 1 [["organization_id", "ba8f7cda-cec2-11e4-8da6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$TgHtTCT0ZNswo.H2R5BuouuvuD56bDIzzzufNepEPNL7vUye1PwbC"], ["created_at", "2015-03-20 05:34:07.700050"], ["updated_at", "2015-03-20 05:34:07.700050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.703119"], ["updated_at", "2015-03-20 05:34:07.703119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba911d4c-cec2-11e4-a738-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba919222-cec2-11e4-b4b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba911d4c-cec2-11e4-a738-705681abff85"], ["organization_id", "ba919222-cec2-11e4-b4b8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:07.706454"], ["updated_at", "2015-03-20 05:34:07.706454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ba911d4c-cec2-11e4-a738-705681abff85' LIMIT 1 [["organization_id", "ba919222-cec2-11e4-b4b8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$NpM2B0ffgEszdE0Zzg8fgesNXK7cKHXCcFj/g2N9PTEWAbDnrT18O"], ["created_at", "2015-03-20 05:34:07.714787"], ["updated_at", "2015-03-20 05:34:07.714787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.718698"], ["updated_at", "2015-03-20 05:34:07.718698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba935cf6-cec2-11e4-8b6a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba93f512-cec2-11e4-a868-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba935cf6-cec2-11e4-8b6a-705681abff85"], ["organization_id", "ba93f512-cec2-11e4-a868-705681abff85"], ["created_at", "2015-03-20 05:34:07.721660"], ["updated_at", "2015-03-20 05:34:07.721660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba935cf6-cec2-11e4-8b6a-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ba93f512-cec2-11e4-a868-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba935cf6-cec2-11e4-8b6a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba93f512-cec2-11e4-a868-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ba93f512-cec2-11e4-a868-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba935cf6-cec2-11e4-8b6a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba93f512-cec2-11e4-a868-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.929305"], ["updated_at", "2015-03-20 05:34:07.929305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bab41946-cec2-11e4-b8ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bab41946-cec2-11e4-b8ae-705681abff85"], ["created_at", "2015-03-20 05:34:07.933314"], ["updated_at", "2015-03-20 05:34:07.933314"], ["token", "aHlF73exe3nG3SjcJ81UXdJ6isLbNuj56jILRkskx6I"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 18.5ms Sent mail to john@example.com (7.1ms) Date: Thu, 19 Mar 2015 22:34:07 -0700 From: from@example.com To: john@example.com Message-ID: <550bb14fea468_10cd3ffb4a063be870484@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/aHlF73exe3nG3SjcJ81UXdJ6isLbNuj56jILRkskx6I?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.966087"], ["updated_at", "2015-03-20 05:34:07.966087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bab9b4aa-cec2-11e4-a188-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bab9b4aa-cec2-11e4-a188-705681abff85"], ["created_at", "2015-03-20 05:34:07.969890"], ["updated_at", "2015-03-20 05:34:07.969890"], ["token", "qrib7RvSymc1PSsSRKV-BVmc39W8vNF_hXlNS_JoxUk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.9ms) Date: Thu, 19 Mar 2015 22:34:07 -0700 From: from@example.com To: john@example.com Message-ID: <550bb14fedb2c_10cd3ffb4a063be8705a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/qrib7RvSymc1PSsSRKV-BVmc39W8vNF_hXlNS_JoxUk?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.983234"], ["updated_at", "2015-03-20 05:34:07.983234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'babc535e-cec2-11e4-9a66-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "babc535e-cec2-11e4-9a66-705681abff85"], ["created_at", "2015-03-20 05:34:07.986869"], ["updated_at", "2015-03-20 05:34:07.986869"], ["token", "d6_9zFJMHna27IQ28rToZXkxFMMALXAMhzvSPlKFLZs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.9ms) Date: Thu, 19 Mar 2015 22:34:07 -0700 From: from@example.com To: john@example.com Message-ID: <550bb14ff1d09_10cd3ffb4a063be8706e4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/d6_9zFJMHna27IQ28rToZXkxFMMALXAMhzvSPlKFLZs?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:07.995493"], ["updated_at", "2015-03-20 05:34:07.995493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'babe31f6-cec2-11e4-a37e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "babe31f6-cec2-11e4-a37e-705681abff85"], ["created_at", "2015-03-20 05:34:07.999220"], ["updated_at", "2015-03-20 05:34:07.999220"], ["token", "MbUSzs_13S3Q11kFZqnU1zD_cfrKkhEADu6Pwc6NvjI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.5ms) Date: Thu, 19 Mar 2015 22:34:08 -0700 From: from@example.com To: john@example.com Message-ID: <550bb150a73_10cd3ffb4a063be870710@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/MbUSzs_13S3Q11kFZqnU1zD_cfrKkhEADu6Pwc6NvjI?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$McZvRsHWrYXw2tYTgbhZR.siwWOZeBBFSrLu7B3n5uFzUOx7XeAwy"], ["created_at", "2015-03-20 05:34:08.008553"], ["updated_at", "2015-03-20 05:34:08.008553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$CiclXECnBf86Sm31bwp5mOBkXWA35UGUmDqVNE6JV5SOtk9Fgms6y"], ["created_at", "2015-03-20 05:34:08.012989"], ["updated_at", "2015-03-20 05:34:08.012989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.014594"], ["user_id", "bac03370-cec2-11e4-b7da-705681abff85"], ["created_at", "2015-03-20 05:34:08.015388"], ["updated_at", "2015-03-20 05:34:08.015388"], ["token", "J_IV9RRYP1xsWhATgjf9KrfA7-TBme-1dYF7S19QIFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.018660"], ["updated_at", "2015-03-20 05:34:08.018660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bac03370-cec2-11e4-b7da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bac1b8b2-cec2-11e4-8ab0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bac03370-cec2-11e4-b7da-705681abff85"], ["organization_id", "bac1b8b2-cec2-11e4-8ab0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.021875"], ["updated_at", "2015-03-20 05:34:08.021875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bac0ddc0-cec2-11e4-bf12-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bac1b8b2-cec2-11e4-8ab0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bac0ddc0-cec2-11e4-bf12-705681abff85"], ["organization_id", "bac1b8b2-cec2-11e4-8ab0-705681abff85"], ["created_at", "2015-03-20 05:34:08.024851"], ["updated_at", "2015-03-20 05:34:08.024851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$YexYYsDcg90x1Hd5iZePPefPjeOa8cFfpLZ3/STO1zTa3BnfcIIWO"], ["created_at", "2015-03-20 05:34:08.040248"], ["updated_at", "2015-03-20 05:34:08.040248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$U4df81uwbSHxaVtmBrfnoea8waCvIkh77dZU7qpsv0DmM9aEX0zPm"], ["created_at", "2015-03-20 05:34:08.044743"], ["updated_at", "2015-03-20 05:34:08.044743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.046624"], ["user_id", "bac50b52-cec2-11e4-aa63-705681abff85"], ["created_at", "2015-03-20 05:34:08.047404"], ["updated_at", "2015-03-20 05:34:08.047404"], ["token", "y7SclIVI8XkPXJQ0KGXk3seWOyxynyrmXV2YfudYWds"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.050652"], ["updated_at", "2015-03-20 05:34:08.050652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bac50b52-cec2-11e4-aa63-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bac698f0-cec2-11e4-837b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bac50b52-cec2-11e4-aa63-705681abff85"], ["organization_id", "bac698f0-cec2-11e4-837b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.053682"], ["updated_at", "2015-03-20 05:34:08.053682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bac5bf2a-cec2-11e4-80a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bac698f0-cec2-11e4-837b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bac5bf2a-cec2-11e4-80a8-705681abff85"], ["organization_id", "bac698f0-cec2-11e4-837b-705681abff85"], ["created_at", "2015-03-20 05:34:08.056531"], ["updated_at", "2015-03-20 05:34:08.056531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.061057' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y7SclIVI8XkPXJQ0KGXk3seWOyxynyrmXV2YfudYWds"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.062509"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.063421"], ["id", "bac62320-cec2-11e4-8bb9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bac50b52-cec2-11e4-aa63-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bac50b52-cec2-11e4-aa63-705681abff85' LIMIT 1 [["organization_id", "bac698f0-cec2-11e4-837b-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "bac698f0-cec2-11e4-837b-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('bac50b52-cec2-11e4-aa63-705681abff85', 'bac5bf2a-cec2-11e4-80a8-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('bac698f0-cec2-11e4-837b-705681abff85') Completed 200 OK in 16ms (Views: 8.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$Dd8tGuaaRqsTVGla5yOHOOwPxS7sbp3ZpyUdXcxaQXBW1eS3Hzqj2"], ["created_at", "2015-03-20 05:34:08.083637"], ["updated_at", "2015-03-20 05:34:08.083637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$/W2BjRlXSj5GzbfUCJ9ErO/tyGrci0mUnc8UxROxWw6MueGn0z2hO"], ["created_at", "2015-03-20 05:34:08.088008"], ["updated_at", "2015-03-20 05:34:08.088008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.089524"], ["user_id", "bacba458-cec2-11e4-ba4c-705681abff85"], ["created_at", "2015-03-20 05:34:08.090272"], ["updated_at", "2015-03-20 05:34:08.090272"], ["token", "4AlrhItWaCb4qvkcDILtuvCM9O-4zdhCDGiUobI38Ns"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.093606"], ["updated_at", "2015-03-20 05:34:08.093606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bacba458-cec2-11e4-ba4c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bacd2aa8-cec2-11e4-8844-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bacba458-cec2-11e4-ba4c-705681abff85"], ["organization_id", "bacd2aa8-cec2-11e4-8844-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.097046"], ["updated_at", "2015-03-20 05:34:08.097046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bacc4e76-cec2-11e4-837b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bacd2aa8-cec2-11e4-8844-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bacc4e76-cec2-11e4-837b-705681abff85"], ["organization_id", "bacd2aa8-cec2-11e4-8844-705681abff85"], ["created_at", "2015-03-20 05:34:08.100069"], ["updated_at", "2015-03-20 05:34:08.100069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$zBuSq57l8zNhu3opYffZseO6j5uP696rc6h1Yw.09Oi2TCia895jC"], ["created_at", "2015-03-20 05:34:08.109499"], ["updated_at", "2015-03-20 05:34:08.109499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$At88iHb7/7hC.KjaTHUbxuO5o1G6ZFtmrf/zXs2UEE8ebGmWySAmW"], ["created_at", "2015-03-20 05:34:08.113726"], ["updated_at", "2015-03-20 05:34:08.113726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.115534"], ["user_id", "bacf9aea-cec2-11e4-9f7c-705681abff85"], ["created_at", "2015-03-20 05:34:08.116334"], ["updated_at", "2015-03-20 05:34:08.116334"], ["token", "m-twQU9_zgR9nZwOwQQClkepNnd649qSNS9e7S__3LQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.119604"], ["updated_at", "2015-03-20 05:34:08.119604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bacf9aea-cec2-11e4-9f7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bad11e7e-cec2-11e4-8881-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bacf9aea-cec2-11e4-9f7c-705681abff85"], ["organization_id", "bad11e7e-cec2-11e4-8881-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.122610"], ["updated_at", "2015-03-20 05:34:08.122610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bad03cde-cec2-11e4-935e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bad11e7e-cec2-11e4-8881-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bad03cde-cec2-11e4-935e-705681abff85"], ["organization_id", "bad11e7e-cec2-11e4-8881-705681abff85"], ["created_at", "2015-03-20 05:34:08.125666"], ["updated_at", "2015-03-20 05:34:08.125666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bad1939a-cec2-11e4-af5a-705681abff85" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"bad1939a-cec2-11e4-af5a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.130662' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "m-twQU9_zgR9nZwOwQQClkepNnd649qSNS9e7S__3LQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.132080"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.132994"], ["id", "bad0a9da-cec2-11e4-a359-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "bad1939a-cec2-11e4-af5a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bacf9aea-cec2-11e4-9f7c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bad11e7e-cec2-11e4-8881-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bacf9aea-cec2-11e4-9f7c-705681abff85' LIMIT 1 [["organization_id", "bad11e7e-cec2-11e4-8881-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bacf9aea-cec2-11e4-9f7c-705681abff85"]] Completed 200 OK in 9ms (Views: 1.5ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$TbPil3LjmZKu5zdHMkZzNOLh.blIaZOsgkWW.eX4vidTFA.gFlBgG"], ["created_at", "2015-03-20 05:34:08.146018"], ["updated_at", "2015-03-20 05:34:08.146018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$Tliu3LpcfBkJDJZp0uhk8.V6W5WttVVS.gnc3U.XxTXNaUZwceuq2"], ["created_at", "2015-03-20 05:34:08.151571"], ["updated_at", "2015-03-20 05:34:08.151571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.153126"], ["user_id", "bad5378e-cec2-11e4-a34d-705681abff85"], ["created_at", "2015-03-20 05:34:08.153857"], ["updated_at", "2015-03-20 05:34:08.153857"], ["token", "ExwanEWFX0FajM1ureQVy6YBA47bhZ-3MHAzX4F5Yz4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.157092"], ["updated_at", "2015-03-20 05:34:08.157092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bad5378e-cec2-11e4-a34d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bad6d918-cec2-11e4-96ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bad5378e-cec2-11e4-a34d-705681abff85"], ["organization_id", "bad6d918-cec2-11e4-96ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.160546"], ["updated_at", "2015-03-20 05:34:08.160546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bad60286-cec2-11e4-af0d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bad6d918-cec2-11e4-96ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bad60286-cec2-11e4-af0d-705681abff85"], ["organization_id", "bad6d918-cec2-11e4-96ad-705681abff85"], ["created_at", "2015-03-20 05:34:08.164100"], ["updated_at", "2015-03-20 05:34:08.164100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$7T1B9TMU4q0BAK90My.0me6nm9/KZ.qhhsJMKFAFjVvqt5VdTOcKO"], ["created_at", "2015-03-20 05:34:08.169430"], ["updated_at", "2015-03-20 05:34:08.169430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.171735"], ["user_id", "bad8d36c-cec2-11e4-a7fd-705681abff85"], ["created_at", "2015-03-20 05:34:08.172548"], ["updated_at", "2015-03-20 05:34:08.172548"], ["token", "DURL8I_x2VLhyUgFrAQp5bNomaUHp1PUlV_oFGFhT9Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'bad6d918-cec2-11e4-96ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "bad6d918-cec2-11e4-96ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.176818"], ["updated_at", "2015-03-20 05:34:08.176818"], ["token", "GKLgWhC-RSGBJWoj5lPiZv8xlYqJ282k7P1i7Eqx6ZI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$FQh23RjYGF1.gOqHR6ZPCe7pGpwdJKIKEtjEDzMC.6pSxGkzOdlCS"], ["created_at", "2015-03-20 05:34:08.189060"], ["updated_at", "2015-03-20 05:34:08.189060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$OZmUqlqBO1qp1h3oYl7MKuUHiVjyoVqB6zEzCUpSJ0GbuBszd9LCW"], ["created_at", "2015-03-20 05:34:08.193593"], ["updated_at", "2015-03-20 05:34:08.193593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.195067"], ["user_id", "badbbee2-cec2-11e4-9101-705681abff85"], ["created_at", "2015-03-20 05:34:08.195837"], ["updated_at", "2015-03-20 05:34:08.195837"], ["token", "9y9tG7kozmZYquIA6AiH_40p0WmqiHVfbAzVrdSl-mo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.199009"], ["updated_at", "2015-03-20 05:34:08.199009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'badbbee2-cec2-11e4-9101-705681abff85' AND "clubhouse_memberships"."organization_id" = 'badd3bfa-cec2-11e4-8494-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "badbbee2-cec2-11e4-9101-705681abff85"], ["organization_id", "badd3bfa-cec2-11e4-8494-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.202204"], ["updated_at", "2015-03-20 05:34:08.202204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'badc6a22-cec2-11e4-a6da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'badd3bfa-cec2-11e4-8494-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "badc6a22-cec2-11e4-a6da-705681abff85"], ["organization_id", "badd3bfa-cec2-11e4-8494-705681abff85"], ["created_at", "2015-03-20 05:34:08.205175"], ["updated_at", "2015-03-20 05:34:08.205175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$duYMwsRiaPZ2tGAE3eIvNOZLHwwegxa7K9Z37yObO3IqepgY2JnXG"], ["created_at", "2015-03-20 05:34:08.209395"], ["updated_at", "2015-03-20 05:34:08.209395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.210933"], ["user_id", "baded33e-cec2-11e4-b329-705681abff85"], ["created_at", "2015-03-20 05:34:08.211679"], ["updated_at", "2015-03-20 05:34:08.211679"], ["token", "JcS_2XaXbQ4EalRwR2zq8vndTmmazQ1g3TrVNH-wSPM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'badd3bfa-cec2-11e4-8494-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "badd3bfa-cec2-11e4-8494-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.215578"], ["updated_at", "2015-03-20 05:34:08.215578"], ["token", "O_WDAu5SenKnGrUlCE0kgRWclaggazvoIj6lTf5rJW8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"O_WDAu5SenKnGrUlCE0kgRWclaggazvoIj6lTf5rJW8", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.220959' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JcS_2XaXbQ4EalRwR2zq8vndTmmazQ1g3TrVNH-wSPM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.222682"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.223667"], ["id", "badf3752-cec2-11e4-a25f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "baded33e-cec2-11e4-b329-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "O_WDAu5SenKnGrUlCE0kgRWclaggazvoIj6lTf5rJW8"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "badd3bfa-cec2-11e4-8494-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baded33e-cec2-11e4-b329-705681abff85' AND "clubhouse_memberships"."organization_id" = 'badd3bfa-cec2-11e4-8494-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "badd3bfa-cec2-11e4-8494-705681abff85"], ["member_id", "baded33e-cec2-11e4-b329-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.233537"], ["updated_at", "2015-03-20 05:34:08.233537"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "badfcb72-cec2-11e4-8d58-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.0ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$BMqfjUcfgJOnUtfezSddvuvARy3QDLQZQfMillXwG2c4c/f8oO9qW"], ["created_at", "2015-03-20 05:34:08.243736"], ["updated_at", "2015-03-20 05:34:08.243736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$HZutXNHoFysLOcxORaIgjOOvsvineHFQDiqehZPjiWOPQ7ezksmCG"], ["created_at", "2015-03-20 05:34:08.248442"], ["updated_at", "2015-03-20 05:34:08.248442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.250059"], ["user_id", "bae41632-cec2-11e4-a235-705681abff85"], ["created_at", "2015-03-20 05:34:08.250855"], ["updated_at", "2015-03-20 05:34:08.250855"], ["token", "zXaYxAxqlk97_d0e_gtiudag77jROWVHIvLdarF75b8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.254292"], ["updated_at", "2015-03-20 05:34:08.254292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bae41632-cec2-11e4-a235-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bae5ad30-cec2-11e4-8fa5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bae41632-cec2-11e4-a235-705681abff85"], ["organization_id", "bae5ad30-cec2-11e4-8fa5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.257445"], ["updated_at", "2015-03-20 05:34:08.257445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bae4c974-cec2-11e4-82be-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bae5ad30-cec2-11e4-8fa5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bae4c974-cec2-11e4-82be-705681abff85"], ["organization_id", "bae5ad30-cec2-11e4-8fa5-705681abff85"], ["created_at", "2015-03-20 05:34:08.260722"], ["updated_at", "2015-03-20 05:34:08.260722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$uwtgThmEB794Q57ZZhyscuVPGeQ.GaxEPqA3jIdsMUikfmlClOS1i"], ["created_at", "2015-03-20 05:34:08.265604"], ["updated_at", "2015-03-20 05:34:08.265604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.267239"], ["user_id", "bae769fe-cec2-11e4-8c71-705681abff85"], ["created_at", "2015-03-20 05:34:08.268056"], ["updated_at", "2015-03-20 05:34:08.268056"], ["token", "nx2C6A3vNL1WYN-fbKEmL7Ar9Ch4K3o2DgZKwrf6FzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'bae5ad30-cec2-11e4-8fa5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "bae5ad30-cec2-11e4-8fa5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.272388"], ["updated_at", "2015-03-20 05:34:08.272388"], ["token", "02matQzaIfoqCd5R-LhVrMcLkQeHRNEHenIFlIDGaeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.278515' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nx2C6A3vNL1WYN-fbKEmL7Ar9Ch4K3o2DgZKwrf6FzA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.280182"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.281853"], ["id", "bae7cef8-cec2-11e4-adb8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bae769fe-cec2-11e4-8c71-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$3zecouyu/5YPKKgnOuen3OFsDcvqFaO2iH8v9xN1aKqX1kWVCZG8O"], ["created_at", "2015-03-20 05:34:08.292726"], ["updated_at", "2015-03-20 05:34:08.292726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$8si32F2WNvw7s1M6tuzP2.4l.Wf6ane.rRAoCzVoyklzMDzTTHCGi"], ["created_at", "2015-03-20 05:34:08.296806"], ["updated_at", "2015-03-20 05:34:08.296806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.298410"], ["user_id", "baeb8d22-cec2-11e4-87ad-705681abff85"], ["created_at", "2015-03-20 05:34:08.299173"], ["updated_at", "2015-03-20 05:34:08.299173"], ["token", "QdazwuNa0l45ZMl5mHhWG1XSlP2dbo3PPTihdXVc2xI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.302388"], ["updated_at", "2015-03-20 05:34:08.302388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baeb8d22-cec2-11e4-87ad-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baed0756-cec2-11e4-bb07-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "baeb8d22-cec2-11e4-87ad-705681abff85"], ["organization_id", "baed0756-cec2-11e4-bb07-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.305664"], ["updated_at", "2015-03-20 05:34:08.305664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baec2d90-cec2-11e4-8b93-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baed0756-cec2-11e4-bb07-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "baec2d90-cec2-11e4-8b93-705681abff85"], ["organization_id", "baed0756-cec2-11e4-bb07-705681abff85"], ["created_at", "2015-03-20 05:34:08.308810"], ["updated_at", "2015-03-20 05:34:08.308810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$BAENmugSX9hhcS304VvZm.SYI4jzs..bSYLCH.p5bkOQtoA2kYzPq"], ["created_at", "2015-03-20 05:34:08.319802"], ["updated_at", "2015-03-20 05:34:08.319802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$2Tgyc.KuZH0u3ouTvhk9t..nLXGvssyKuPAVZNeYCi3nshRGpGyE2"], ["created_at", "2015-03-20 05:34:08.324498"], ["updated_at", "2015-03-20 05:34:08.324498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.326135"], ["user_id", "baefaff6-cec2-11e4-8382-705681abff85"], ["created_at", "2015-03-20 05:34:08.326976"], ["updated_at", "2015-03-20 05:34:08.326976"], ["token", "IDz_U5Id8Psywr_OeWwlJzDrBcb4tawHsiXHfFNRQso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.330614"], ["updated_at", "2015-03-20 05:34:08.330614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baefaff6-cec2-11e4-8382-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baf15734-cec2-11e4-b755-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "baefaff6-cec2-11e4-8382-705681abff85"], ["organization_id", "baf15734-cec2-11e4-b755-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.333988"], ["updated_at", "2015-03-20 05:34:08.333988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baf067e8-cec2-11e4-ac8a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baf15734-cec2-11e4-b755-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "baf067e8-cec2-11e4-ac8a-705681abff85"], ["organization_id", "baf15734-cec2-11e4-b755-705681abff85"], ["created_at", "2015-03-20 05:34:08.336944"], ["updated_at", "2015-03-20 05:34:08.336944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/baf2490a-cec2-11e4-96fc-705681abff85" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"baf2490a-cec2-11e4-96fc-705681abff85", "membership"=>{}} Pollett::Session Load (4.1ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.341953' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IDz_U5Id8Psywr_OeWwlJzDrBcb4tawHsiXHfFNRQso"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.347550"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.349998"], ["id", "baf0d1ba-cec2-11e4-8dab-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "baf2490a-cec2-11e4-96fc-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "baefaff6-cec2-11e4-8382-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "baf15734-cec2-11e4-b755-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'baefaff6-cec2-11e4-8382-705681abff85' LIMIT 1 [["organization_id", "baf15734-cec2-11e4-b755-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "baf067e8-cec2-11e4-ac8a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "baf2490a-cec2-11e4-96fc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 19ms (ActiveRecord: 6.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$oivd2sRucsVSvmHgJoViKuOr6BDOGo3waeJu/lFMRHJA.dCK6YF.a"], ["created_at", "2015-03-20 05:34:08.368942"], ["updated_at", "2015-03-20 05:34:08.368942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$Ya7/hhyoHX4SUO0TxwLHQ.mv70oQ5rMhDjB4BHCviuU9WUKqIKTdq"], ["created_at", "2015-03-20 05:34:08.374752"], ["updated_at", "2015-03-20 05:34:08.374752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.377111"], ["user_id", "baf73a5a-cec2-11e4-b283-705681abff85"], ["created_at", "2015-03-20 05:34:08.378346"], ["updated_at", "2015-03-20 05:34:08.378346"], ["token", "fFPvX1gJs1Ry6SZN8mdzk5MWNIlzGE9HtzqtABSY4mg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.383735"], ["updated_at", "2015-03-20 05:34:08.383735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baf73a5a-cec2-11e4-b283-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baf970b8-cec2-11e4-8ebd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "baf73a5a-cec2-11e4-b283-705681abff85"], ["organization_id", "baf970b8-cec2-11e4-8ebd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.387366"], ["updated_at", "2015-03-20 05:34:08.387366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baf81fba-cec2-11e4-8c32-705681abff85' AND "clubhouse_memberships"."organization_id" = 'baf970b8-cec2-11e4-8ebd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "baf81fba-cec2-11e4-8c32-705681abff85"], ["organization_id", "baf970b8-cec2-11e4-8ebd-705681abff85"], ["created_at", "2015-03-20 05:34:08.390548"], ["updated_at", "2015-03-20 05:34:08.390548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$FRMFgrCb6q8eiO9WVdUFN.lKawbmZTAWVdDh56FI3UkXbBpiWGPDq"], ["created_at", "2015-03-20 05:34:08.400997"], ["updated_at", "2015-03-20 05:34:08.400997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$T0VQ4miUVgt5eTjZxlEbeeJFTskK2ABFjVBpAMacrDkhXT3e7RQeK"], ["created_at", "2015-03-20 05:34:08.405428"], ["updated_at", "2015-03-20 05:34:08.405428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.406968"], ["user_id", "bafc11ec-cec2-11e4-ac13-705681abff85"], ["created_at", "2015-03-20 05:34:08.407824"], ["updated_at", "2015-03-20 05:34:08.407824"], ["token", "tYtjuTCgXj27oYzxFw0jdpV0I7r7_0ILuvu3_jEoaHI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.411494"], ["updated_at", "2015-03-20 05:34:08.411494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bafc11ec-cec2-11e4-ac13-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bafdab7e-cec2-11e4-be83-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bafc11ec-cec2-11e4-ac13-705681abff85"], ["organization_id", "bafdab7e-cec2-11e4-be83-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.415026"], ["updated_at", "2015-03-20 05:34:08.415026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bafcbd90-cec2-11e4-98b5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bafdab7e-cec2-11e4-be83-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bafcbd90-cec2-11e4-98b5-705681abff85"], ["organization_id", "bafdab7e-cec2-11e4-be83-705681abff85"], ["created_at", "2015-03-20 05:34:08.417981"], ["updated_at", "2015-03-20 05:34:08.417981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bafdab7e-cec2-11e4-be83-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"bafdab7e-cec2-11e4-be83-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.422887' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tYtjuTCgXj27oYzxFw0jdpV0I7r7_0ILuvu3_jEoaHI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.424501"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.426261"], ["id", "bafd249c-cec2-11e4-b450-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bafdab7e-cec2-11e4-be83-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bafc11ec-cec2-11e4-ac13-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bafc11ec-cec2-11e4-ac13-705681abff85' LIMIT 1 [["organization_id", "bafdab7e-cec2-11e4-be83-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "bafdab7e-cec2-11e4-be83-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('bafc11ec-cec2-11e4-ac13-705681abff85', 'bafcbd90-cec2-11e4-98b5-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('bafdab7e-cec2-11e4-be83-705681abff85') Completed 200 OK in 15ms (Views: 3.8ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$QCY6xr5efloJfKV.m1GRo.kQ.yNP1RQfEkVwi5.BQH8XV6pvH7pwm"], ["created_at", "2015-03-20 05:34:08.444096"], ["updated_at", "2015-03-20 05:34:08.444096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$mAbe3Qcj.MHQZ/ADdBWCmug6I5hd12dHjgbvIkgBn.ijUSTyTKdjC"], ["created_at", "2015-03-20 05:34:08.449314"], ["updated_at", "2015-03-20 05:34:08.449314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.450869"], ["user_id", "bb02a6f6-cec2-11e4-8a6b-705681abff85"], ["created_at", "2015-03-20 05:34:08.451809"], ["updated_at", "2015-03-20 05:34:08.451809"], ["token", "ZMmYf0c9WZirntV0jiLJIOHFE4FEMNSIZAW-qAp7Hpg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.455174"], ["updated_at", "2015-03-20 05:34:08.455174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb02a6f6-cec2-11e4-8a6b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb045550-cec2-11e4-b22a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb02a6f6-cec2-11e4-8a6b-705681abff85"], ["organization_id", "bb045550-cec2-11e4-b22a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.458654"], ["updated_at", "2015-03-20 05:34:08.458654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb03714e-cec2-11e4-8b6c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb045550-cec2-11e4-b22a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb03714e-cec2-11e4-8b6c-705681abff85"], ["organization_id", "bb045550-cec2-11e4-b22a-705681abff85"], ["created_at", "2015-03-20 05:34:08.462092"], ["updated_at", "2015-03-20 05:34:08.462092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$dyeAHV9LazT1e6WOte.hyeHYbZ5QcpxWREgpaiSc/VvoskMuRTULu"], ["created_at", "2015-03-20 05:34:08.466683"], ["updated_at", "2015-03-20 05:34:08.466683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.468476"], ["user_id", "bb061e9e-cec2-11e4-8e33-705681abff85"], ["created_at", "2015-03-20 05:34:08.469238"], ["updated_at", "2015-03-20 05:34:08.469238"], ["token", "QHjjbMhyFq5HJSOqY1WtoX8r38V3e3oBJDdRC4EEQ2c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'bb045550-cec2-11e4-b22a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "bb045550-cec2-11e4-b22a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.472858"], ["updated_at", "2015-03-20 05:34:08.472858"], ["token", "ugR-fmpKMreXgLP_iD8cI6ztg1n_WHnWDgrl1iYA668"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$KV478rGn1/UWEGaR9BpdEOGqqRj/DLXOguR9GbFHjacVGJHBVNGWa"], ["created_at", "2015-03-20 05:34:08.485968"], ["updated_at", "2015-03-20 05:34:08.485968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$LtjvnkNxL0SIFKZlQ0p4juHrKTSUH4t3KD9wP8Kgg9adO2WMcUE6S"], ["created_at", "2015-03-20 05:34:08.491566"], ["updated_at", "2015-03-20 05:34:08.491566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.493275"], ["user_id", "bb0923dc-cec2-11e4-b532-705681abff85"], ["created_at", "2015-03-20 05:34:08.494049"], ["updated_at", "2015-03-20 05:34:08.494049"], ["token", "Sh422OBLGWaEdRIF3fFg7SI1q9w9M66RMu1j3zrEMrs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.497582"], ["updated_at", "2015-03-20 05:34:08.497582"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0923dc-cec2-11e4-b532-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0ad13c-cec2-11e4-a277-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb0923dc-cec2-11e4-b532-705681abff85"], ["organization_id", "bb0ad13c-cec2-11e4-a277-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.502260"], ["updated_at", "2015-03-20 05:34:08.502260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb09e8da-cec2-11e4-ace4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0ad13c-cec2-11e4-a277-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb09e8da-cec2-11e4-ace4-705681abff85"], ["organization_id", "bb0ad13c-cec2-11e4-a277-705681abff85"], ["created_at", "2015-03-20 05:34:08.505497"], ["updated_at", "2015-03-20 05:34:08.505497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$K/Jpcw3n.dPDikLd6saCNu.HdgTWfru8TMmvBPNF/MzkepM6id8Zm"], ["created_at", "2015-03-20 05:34:08.510129"], ["updated_at", "2015-03-20 05:34:08.510129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.511659"], ["user_id", "bb0cb7a4-cec2-11e4-b8dc-705681abff85"], ["created_at", "2015-03-20 05:34:08.512394"], ["updated_at", "2015-03-20 05:34:08.512394"], ["token", "ZC6FUzNXAHjmkGxreILwxYomhBrAbfFNCcBW7T-ltWo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'bb0ad13c-cec2-11e4-a277-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "bb0ad13c-cec2-11e4-a277-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.517298"], ["updated_at", "2015-03-20 05:34:08.517298"], ["token", "vMgeBfYWTryGb-jfFW1zu_eoEUS9UkEkI3krzg_oIqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bb0ad13c-cec2-11e4-a277-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"vMgeBfYWTryGb-jfFW1zu_eoEUS9UkEkI3krzg_oIqk", "organization_id"=>"bb0ad13c-cec2-11e4-a277-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.522435' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZC6FUzNXAHjmkGxreILwxYomhBrAbfFNCcBW7T-ltWo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.524002"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.524974"], ["id", "bb0d1af0-cec2-11e4-8596-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb0ad13c-cec2-11e4-a277-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb0cb7a4-cec2-11e4-b8dc-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "vMgeBfYWTryGb-jfFW1zu_eoEUS9UkEkI3krzg_oIqk"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb0ad13c-cec2-11e4-a277-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0cb7a4-cec2-11e4-b8dc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0ad13c-cec2-11e4-a277-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "bb0ad13c-cec2-11e4-a277-705681abff85"], ["member_id", "bb0cb7a4-cec2-11e4-b8dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.531735"], ["updated_at", "2015-03-20 05:34:08.531735"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "bb0dd95e-cec2-11e4-8475-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$Xlu8fSPISacGScfAM5j81.0s.PzeU6UemfjQE/849iL24gxNSRn/W"], ["created_at", "2015-03-20 05:34:08.542545"], ["updated_at", "2015-03-20 05:34:08.542545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$C4JM7mt8eJlHfhYnuVWfNOVrZF1.EgxVC8azROhs6RWzb3V7sEhf6"], ["created_at", "2015-03-20 05:34:08.546820"], ["updated_at", "2015-03-20 05:34:08.546820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.548709"], ["user_id", "bb11aa5c-cec2-11e4-b8ea-705681abff85"], ["created_at", "2015-03-20 05:34:08.549506"], ["updated_at", "2015-03-20 05:34:08.549506"], ["token", "UX1HBu4nB32h98Zch-BW_jYo3WsLHCgnQzksgNeDaRo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.553093"], ["updated_at", "2015-03-20 05:34:08.553093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb11aa5c-cec2-11e4-b8ea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1345c4-cec2-11e4-8583-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb11aa5c-cec2-11e4-b8ea-705681abff85"], ["organization_id", "bb1345c4-cec2-11e4-8583-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.556513"], ["updated_at", "2015-03-20 05:34:08.556513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb125b78-cec2-11e4-8309-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1345c4-cec2-11e4-8583-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb125b78-cec2-11e4-8309-705681abff85"], ["organization_id", "bb1345c4-cec2-11e4-8583-705681abff85"], ["created_at", "2015-03-20 05:34:08.559591"], ["updated_at", "2015-03-20 05:34:08.559591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$4y.Ntb53g4Y68lwUwA.asOJPotSsKdw9l4abtBtKiBP0o1WTXO/mi"], ["created_at", "2015-03-20 05:34:08.563939"], ["updated_at", "2015-03-20 05:34:08.563939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.565414"], ["user_id", "bb14ed0c-cec2-11e4-a953-705681abff85"], ["created_at", "2015-03-20 05:34:08.566138"], ["updated_at", "2015-03-20 05:34:08.566138"], ["token", "V6F9nSA4wuMAlsEgDKioWc66e_mb_H8ugY0Q-XYAOCY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'bb1345c4-cec2-11e4-8583-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "bb1345c4-cec2-11e4-8583-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.569709"], ["updated_at", "2015-03-20 05:34:08.569709"], ["token", "zeYeekeQY9jOuL13yjukmlCqNqu-jgrTlVCGnaTGrKA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bb1345c4-cec2-11e4-8583-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"bb1345c4-cec2-11e4-8583-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.575775' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "V6F9nSA4wuMAlsEgDKioWc66e_mb_H8ugY0Q-XYAOCY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.577176"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.578110"], ["id", "bb1547e8-cec2-11e4-8a65-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb1345c4-cec2-11e4-8583-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb14ed0c-cec2-11e4-a953-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$fMwk//Vo9Nq5ATaS2jeA8.n7se1aRzAneNR7FhPyuC5qMj44ZxO8S"], ["created_at", "2015-03-20 05:34:08.592005"], ["updated_at", "2015-03-20 05:34:08.592005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$r8LL754qV9z38sSnT4nkCe.eIvWAmdf4uXtcjvSjNv3KYc7T41Iz."], ["created_at", "2015-03-20 05:34:08.596542"], ["updated_at", "2015-03-20 05:34:08.596542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.598390"], ["user_id", "bb193880-cec2-11e4-aefa-705681abff85"], ["created_at", "2015-03-20 05:34:08.599236"], ["updated_at", "2015-03-20 05:34:08.599236"], ["token", "a55KFQG5qiiFmZheNh3owZ8GtoK4fLjCF3BXrL9t_so"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.602718"], ["updated_at", "2015-03-20 05:34:08.602718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb193880-cec2-11e4-aefa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1add98-cec2-11e4-aee9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb193880-cec2-11e4-aefa-705681abff85"], ["organization_id", "bb1add98-cec2-11e4-aee9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.606111"], ["updated_at", "2015-03-20 05:34:08.606111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb19eaf0-cec2-11e4-9da5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1add98-cec2-11e4-aee9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb19eaf0-cec2-11e4-9da5-705681abff85"], ["organization_id", "bb1add98-cec2-11e4-aee9-705681abff85"], ["created_at", "2015-03-20 05:34:08.609143"], ["updated_at", "2015-03-20 05:34:08.609143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$9XoUXFFgJfYZ0vxEEv9vM.059bfpaQfA0P0KTvlm.TFPLD0fYBESG"], ["created_at", "2015-03-20 05:34:08.619509"], ["updated_at", "2015-03-20 05:34:08.619509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$ujXhdZGodzJSSITkHpfZT.gnq1oreSYfLOPmN0MhpU5ssll9q0ls."], ["created_at", "2015-03-20 05:34:08.624184"], ["updated_at", "2015-03-20 05:34:08.624184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.625705"], ["user_id", "bb1d6aa4-cec2-11e4-b083-705681abff85"], ["created_at", "2015-03-20 05:34:08.626512"], ["updated_at", "2015-03-20 05:34:08.626512"], ["token", "dn3zF2oNqgXQnf3ZgTc8lwdc6w4oT4dL2c-wA2mYkKE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.629909"], ["updated_at", "2015-03-20 05:34:08.629909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1d6aa4-cec2-11e4-b083-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1f0030-cec2-11e4-95b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb1d6aa4-cec2-11e4-b083-705681abff85"], ["organization_id", "bb1f0030-cec2-11e4-95b8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.633487"], ["updated_at", "2015-03-20 05:34:08.633487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1e1eae-cec2-11e4-a432-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1f0030-cec2-11e4-95b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb1e1eae-cec2-11e4-a432-705681abff85"], ["organization_id", "bb1f0030-cec2-11e4-95b8-705681abff85"], ["created_at", "2015-03-20 05:34:08.636774"], ["updated_at", "2015-03-20 05:34:08.636774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/bb200eda-cec2-11e4-862e-705681abff85" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"bb200eda-cec2-11e4-862e-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.641559' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dn3zF2oNqgXQnf3ZgTc8lwdc6w4oT4dL2c-wA2mYkKE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.642978"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.644026"], ["id", "bb1e8272-cec2-11e4-8284-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "bb200eda-cec2-11e4-862e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb1d6aa4-cec2-11e4-b083-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb1f0030-cec2-11e4-95b8-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb1d6aa4-cec2-11e4-b083-705681abff85' LIMIT 1 [["organization_id", "bb1f0030-cec2-11e4-95b8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb1e1eae-cec2-11e4-a432-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1e1eae-cec2-11e4-a432-705681abff85' AND "clubhouse_memberships"."id" != 'bb200eda-cec2-11e4-862e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1f0030-cec2-11e4-95b8-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:34:08.651580"], ["id", "bb200eda-cec2-11e4-862e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$OYr.p1X3vUKn2gwi4yXeVOHRFUsdwemuJ3XjOvHlnR66cUgCSJmXm"], ["created_at", "2015-03-20 05:34:08.660280"], ["updated_at", "2015-03-20 05:34:08.660280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.662071"], ["user_id", "bb23a234-cec2-11e4-acd7-705681abff85"], ["created_at", "2015-03-20 05:34:08.662884"], ["updated_at", "2015-03-20 05:34:08.662884"], ["token", "flkmrarkFqts5l7_YW-BeOz5m1dyXgXR-mf2F7K1e-w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.666427"], ["updated_at", "2015-03-20 05:34:08.666427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb23a234-cec2-11e4-acd7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb24923e-cec2-11e4-906b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb23a234-cec2-11e4-acd7-705681abff85"], ["organization_id", "bb24923e-cec2-11e4-906b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.669747"], ["updated_at", "2015-03-20 05:34:08.669747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = 'bb24923e-cec2-11e4-906b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "bb24923e-cec2-11e4-906b-705681abff85"], ["created_at", "2015-03-20 05:34:08.673383"], ["updated_at", "2015-03-20 05:34:08.673383"], ["token", "I8Fn6UOokIVE9q831cyGAWngKoN0GTgwyrjOTVQ-1_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$rC6iNWmO2biCNdDWdN8gkelXhEI4Vqv7BIasUt12DCe6J4ZLHuIe2"], ["created_at", "2015-03-20 05:34:08.678363"], ["updated_at", "2015-03-20 05:34:08.678363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.681680"], ["updated_at", "2015-03-20 05:34:08.681680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb2665d2-cec2-11e4-8223-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb26e638-cec2-11e4-ad8d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb2665d2-cec2-11e4-8223-705681abff85"], ["organization_id", "bb26e638-cec2-11e4-ad8d-705681abff85"], ["created_at", "2015-03-20 05:34:08.685378"], ["updated_at", "2015-03-20 05:34:08.685378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$wv9gJdPRDoXRfuQPOidctusaPcxo4xKH8YL/1wZnrWy26lb/65fPG"], ["created_at", "2015-03-20 05:34:08.703176"], ["updated_at", "2015-03-20 05:34:08.703176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.704763"], ["user_id", "bb2a2e92-cec2-11e4-864a-705681abff85"], ["created_at", "2015-03-20 05:34:08.705553"], ["updated_at", "2015-03-20 05:34:08.705553"], ["token", "vjBYE4lZT2qGtqbv2RpoULSjhj9Uebgkmhpx46jGZyc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.709064"], ["updated_at", "2015-03-20 05:34:08.709064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb2a2e92-cec2-11e4-864a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb2b11e0-cec2-11e4-a06c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb2a2e92-cec2-11e4-864a-705681abff85"], ["organization_id", "bb2b11e0-cec2-11e4-a06c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.712235"], ["updated_at", "2015-03-20 05:34:08.712235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'bb2b11e0-cec2-11e4-a06c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "bb2b11e0-cec2-11e4-a06c-705681abff85"], ["created_at", "2015-03-20 05:34:08.716432"], ["updated_at", "2015-03-20 05:34:08.716432"], ["token", "XzPuAn7M7sT8InMr6gVvVF_gLBTUMw6fH90LDCA8tcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$n423MZ9E0KwZdEhHDAiKQOzRteKYo0NPySu/iC.aNoGPpSmgjVpD."], ["created_at", "2015-03-20 05:34:08.720949"], ["updated_at", "2015-03-20 05:34:08.720949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.724131"], ["updated_at", "2015-03-20 05:34:08.724131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb2ce178-cec2-11e4-a2c4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb2d5f90-cec2-11e4-b033-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb2ce178-cec2-11e4-a2c4-705681abff85"], ["organization_id", "bb2d5f90-cec2-11e4-b033-705681abff85"], ["created_at", "2015-03-20 05:34:08.727268"], ["updated_at", "2015-03-20 05:34:08.727268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.732801' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vjBYE4lZT2qGtqbv2RpoULSjhj9Uebgkmhpx46jGZyc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.734521"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.735513"], ["id", "bb2a8f40-cec2-11e4-9257-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb2a2e92-cec2-11e4-864a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb2a2e92-cec2-11e4-864a-705681abff85' LIMIT 1 [["organization_id", "bb2b11e0-cec2-11e4-a06c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "bb2b11e0-cec2-11e4-a06c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('bb2b11e0-cec2-11e4-a06c-705681abff85') Completed 200 OK in 12ms (Views: 3.0ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$d4sbYJLN5QpZOC69o8C8Hu1t/FGySqvWN9comPsmFHhNGKPQptMqu"], ["created_at", "2015-03-20 05:34:08.751308"], ["updated_at", "2015-03-20 05:34:08.751308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.752859"], ["user_id", "bb3185ca-cec2-11e4-ba80-705681abff85"], ["created_at", "2015-03-20 05:34:08.753623"], ["updated_at", "2015-03-20 05:34:08.753623"], ["token", "APCEk-Tkw-QdGybcFQ-Qmd-UccCwg9ZObqmPsdFDYZw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.757205"], ["updated_at", "2015-03-20 05:34:08.757205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb3185ca-cec2-11e4-ba80-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb326a8a-cec2-11e4-bc40-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb3185ca-cec2-11e4-ba80-705681abff85"], ["organization_id", "bb326a8a-cec2-11e4-bc40-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.760501"], ["updated_at", "2015-03-20 05:34:08.760501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = 'bb326a8a-cec2-11e4-bc40-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "bb326a8a-cec2-11e4-bc40-705681abff85"], ["created_at", "2015-03-20 05:34:08.764313"], ["updated_at", "2015-03-20 05:34:08.764313"], ["token", "AuqEyRcVYQC0urbGOyfsJtbbcffJxSV-KABjBH17fbY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$ss1INungxHobmcT0wRNNNeKkZw7G3UmuHY8a9w.IEff0OljWmoiAK"], ["created_at", "2015-03-20 05:34:08.774738"], ["updated_at", "2015-03-20 05:34:08.774738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.776352"], ["user_id", "bb351938-cec2-11e4-b720-705681abff85"], ["created_at", "2015-03-20 05:34:08.777115"], ["updated_at", "2015-03-20 05:34:08.777115"], ["token", "M3aRdAt1wA_Xa28o_XSMxZGSM_Eb10G6FmpfUYY4e5o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.780575"], ["updated_at", "2015-03-20 05:34:08.780575"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb351938-cec2-11e4-b720-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb3604d8-cec2-11e4-9339-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb351938-cec2-11e4-b720-705681abff85"], ["organization_id", "bb3604d8-cec2-11e4-9339-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.784897"], ["updated_at", "2015-03-20 05:34:08.784897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = 'bb3604d8-cec2-11e4-9339-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "bb3604d8-cec2-11e4-9339-705681abff85"], ["created_at", "2015-03-20 05:34:08.788463"], ["updated_at", "2015-03-20 05:34:08.788463"], ["token", "vffpHCkHkIkEdIMTeic_knzzudRfRj_65eKGxepqcc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/bb373416-cec2-11e4-87f8-705681abff85" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"bb373416-cec2-11e4-87f8-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.793417' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M3aRdAt1wA_Xa28o_XSMxZGSM_Eb10G6FmpfUYY4e5o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.794758"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.795805"], ["id", "bb357aae-cec2-11e4-be08-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bb373416-cec2-11e4-87f8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb351938-cec2-11e4-b720-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb3604d8-cec2-11e4-9339-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb351938-cec2-11e4-b720-705681abff85' LIMIT 1 [["organization_id", "bb3604d8-cec2-11e4-9339-705681abff85"]] Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$4WIKvBaVstRZXI/hzFLCbufzT/bvDK3ppHw/BVQU0MOb24h7uB6NW"], ["created_at", "2015-03-20 05:34:08.807742"], ["updated_at", "2015-03-20 05:34:08.807742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.809384"], ["user_id", "bb3a2374-cec2-11e4-bd09-705681abff85"], ["created_at", "2015-03-20 05:34:08.810128"], ["updated_at", "2015-03-20 05:34:08.810128"], ["token", "utj9MSnwB7RdqdawH6dAZRrSn52Lk7m0jRV5ceILX7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.813610"], ["updated_at", "2015-03-20 05:34:08.813610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb3a2374-cec2-11e4-bd09-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb3b0532-cec2-11e4-81f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb3a2374-cec2-11e4-bd09-705681abff85"], ["organization_id", "bb3b0532-cec2-11e4-81f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.817274"], ["updated_at", "2015-03-20 05:34:08.817274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = 'bb3b0532-cec2-11e4-81f5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "bb3b0532-cec2-11e4-81f5-705681abff85"], ["created_at", "2015-03-20 05:34:08.820880"], ["updated_at", "2015-03-20 05:34:08.820880"], ["token", "7opvVNrxGdcS8j2z9Fq-BU-9CA6L8UogtzWSztbj97s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$ZO7K8.38QP6TL8JAJ.RmaONhd35MtaDmSDFLXKAF5Rw8Zcb5PUkOa"], ["created_at", "2015-03-20 05:34:08.831444"], ["updated_at", "2015-03-20 05:34:08.831444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.833274"], ["user_id", "bb3dc920-cec2-11e4-b4c6-705681abff85"], ["created_at", "2015-03-20 05:34:08.834069"], ["updated_at", "2015-03-20 05:34:08.834069"], ["token", "YvVrIRhukxpmPTJ0I0OU76ioNGp_EHMvLQ8oX_Ph0Yo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.837724"], ["updated_at", "2015-03-20 05:34:08.837724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb3dc920-cec2-11e4-b4c6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb3eba7e-cec2-11e4-8ab8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb3dc920-cec2-11e4-b4c6-705681abff85"], ["organization_id", "bb3eba7e-cec2-11e4-8ab8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.841446"], ["updated_at", "2015-03-20 05:34:08.841446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'bb3eba7e-cec2-11e4-8ab8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "bb3eba7e-cec2-11e4-8ab8-705681abff85"], ["created_at", "2015-03-20 05:34:08.844882"], ["updated_at", "2015-03-20 05:34:08.844882"], ["token", "h79g7B2OzJyNJdIbwVeKgK2uwPx4Kdx9t54QO_ZdcPs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.850109' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YvVrIRhukxpmPTJ0I0OU76ioNGp_EHMvLQ8oX_Ph0Yo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.851605"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.852553"], ["id", "bb3e2bf4-cec2-11e4-af9c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb3dc920-cec2-11e4-b4c6-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb3eba7e-cec2-11e4-8ab8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb3dc920-cec2-11e4-b4c6-705681abff85' LIMIT 1 [["organization_id", "bb3eba7e-cec2-11e4-8ab8-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bb3eba7e-cec2-11e4-8ab8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bb3eba7e-cec2-11e4-8ab8-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.861125"], ["updated_at", "2015-03-20 05:34:08.861125"], ["token", "FWoz1h8WYOu7qu0QrtMl03twzeQHfRjaIHA5dUCratk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: df0c7cfb-22d0-4b91-9642-477c6db04057) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bb425436-cec2-11e4-a479-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bb425436-cec2-11e4-a479-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [df0c7cfb-22d0-4b91-9642-477c6db04057] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bb425436-cec2-11e4-a479-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [df0c7cfb-22d0-4b91-9642-477c6db04057] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb3eba7e-cec2-11e4-8ab8-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [df0c7cfb-22d0-4b91-9642-477c6db04057] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [df0c7cfb-22d0-4b91-9642-477c6db04057] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [df0c7cfb-22d0-4b91-9642-477c6db04057] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [df0c7cfb-22d0-4b91-9642-477c6db04057] Date: Thu, 19 Mar 2015 22:34:08 -0700 From: from@example.com To: email@example.com Message-ID: <550bb150d71fb_10cd3ffb4a063be870835@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/FWoz1h8WYOu7qu0QrtMl03twzeQHfRjaIHA5dUCratk?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [df0c7cfb-22d0-4b91-9642-477c6db04057] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.26ms Completed 201 Created in 33ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$MvwgEr5vWn.Rk9/CJwPlIuNYSGbjkQ0YbQsuBOm5mEOgYloQYWWPi"], ["created_at", "2015-03-20 05:34:08.889221"], ["updated_at", "2015-03-20 05:34:08.889221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.890821"], ["user_id", "bb4690a0-cec2-11e4-898e-705681abff85"], ["created_at", "2015-03-20 05:34:08.891672"], ["updated_at", "2015-03-20 05:34:08.891672"], ["token", "0lPY73lLr7RZJMBaVUFnnAZPpnuc3_tuYA0HCDcJyP4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.895314"], ["updated_at", "2015-03-20 05:34:08.895314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb4690a0-cec2-11e4-898e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb477ce0-cec2-11e4-9aaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb4690a0-cec2-11e4-898e-705681abff85"], ["organization_id", "bb477ce0-cec2-11e4-9aaa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.898635"], ["updated_at", "2015-03-20 05:34:08.898635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = 'bb477ce0-cec2-11e4-9aaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "bb477ce0-cec2-11e4-9aaa-705681abff85"], ["created_at", "2015-03-20 05:34:08.902518"], ["updated_at", "2015-03-20 05:34:08.902518"], ["token", "12hvj2sXITaLp-k-IDi8-xs9hPeu2hBKQxRCyRZo998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.907650' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0lPY73lLr7RZJMBaVUFnnAZPpnuc3_tuYA0HCDcJyP4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.909169"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.910152"], ["id", "bb46f63a-cec2-11e4-94bc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb4690a0-cec2-11e4-898e-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb477ce0-cec2-11e4-9aaa-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb4690a0-cec2-11e4-898e-705681abff85' LIMIT 1 [["organization_id", "bb477ce0-cec2-11e4-9aaa-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bb477ce0-cec2-11e4-9aaa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bb477ce0-cec2-11e4-9aaa-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.919713"], ["updated_at", "2015-03-20 05:34:08.919713"], ["token", "T72_RRfhnEP52BtH5Nb1Pt52kfZJrooeeMSOJjge0E8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9dc0d27f-a07e-45b0-8980-1daa42d5a4c7) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bb4b4c26-cec2-11e4-b6d7-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bb4b4c26-cec2-11e4-b6d7-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9dc0d27f-a07e-45b0-8980-1daa42d5a4c7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bb4b4c26-cec2-11e4-b6d7-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9dc0d27f-a07e-45b0-8980-1daa42d5a4c7] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb477ce0-cec2-11e4-9aaa-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9dc0d27f-a07e-45b0-8980-1daa42d5a4c7] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [9dc0d27f-a07e-45b0-8980-1daa42d5a4c7] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [9dc0d27f-a07e-45b0-8980-1daa42d5a4c7] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [9dc0d27f-a07e-45b0-8980-1daa42d5a4c7] Date: Thu, 19 Mar 2015 22:34:08 -0700 From: from@example.com To: email@example.com Message-ID: <550bb150e265d_10cd3ffb4a063be870927@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/T72_RRfhnEP52BtH5Nb1Pt52kfZJrooeeMSOJjge0E8?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9dc0d27f-a07e-45b0-8980-1daa42d5a4c7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.17ms Completed 201 Created in 22ms (Views: 0.7ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$KcEguJEwbw1VcEhIMXDel..P6lm30LysiZoNTpD6mWKh2pwDcXdhK"], ["created_at", "2015-03-20 05:34:08.935229"], ["updated_at", "2015-03-20 05:34:08.935229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.936807"], ["user_id", "bb4d9558-cec2-11e4-9486-705681abff85"], ["created_at", "2015-03-20 05:34:08.937635"], ["updated_at", "2015-03-20 05:34:08.937635"], ["token", "9dyUYbWx4ybNI_p0m6KcAc7624ZRYD3JafEmwoVBGuo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.941045"], ["updated_at", "2015-03-20 05:34:08.941045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb4d9558-cec2-11e4-9486-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb4e7874-cec2-11e4-bfb1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb4d9558-cec2-11e4-9486-705681abff85"], ["organization_id", "bb4e7874-cec2-11e4-bfb1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.944259"], ["updated_at", "2015-03-20 05:34:08.944259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'bb4e7874-cec2-11e4-bfb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "bb4e7874-cec2-11e4-bfb1-705681abff85"], ["created_at", "2015-03-20 05:34:08.947730"], ["updated_at", "2015-03-20 05:34:08.947730"], ["token", "FVyTvZdAWWOIe4jYFV6Rcbu9-lzEuGjmUsYlUsfgFMU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:08.952444' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9dyUYbWx4ybNI_p0m6KcAc7624ZRYD3JafEmwoVBGuo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:08.954109"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:08.955137"], ["id", "bb4df8ea-cec2-11e4-b5a6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb4d9558-cec2-11e4-9486-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb4e7874-cec2-11e4-bfb1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb4d9558-cec2-11e4-9486-705681abff85' LIMIT 1 [["organization_id", "bb4e7874-cec2-11e4-bfb1-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'bb4e7874-cec2-11e4-bfb1-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$dvzfWfD3V.0KtgZckUeYS.IrHctVcrOANqTMC0tQhyPmJZls18GU6"], ["created_at", "2015-03-20 05:34:08.971600"], ["updated_at", "2015-03-20 05:34:08.971600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.973184"], ["user_id", "bb5322e8-cec2-11e4-a786-705681abff85"], ["created_at", "2015-03-20 05:34:08.973942"], ["updated_at", "2015-03-20 05:34:08.973942"], ["token", "7wqQgnIdJtV-vrDGvEPYkORKYBP1dlTGy98yLs7iD8Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:08.977262"], ["updated_at", "2015-03-20 05:34:08.977262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb5322e8-cec2-11e4-a786-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb53fdc6-cec2-11e4-8310-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb5322e8-cec2-11e4-a786-705681abff85"], ["organization_id", "bb53fdc6-cec2-11e4-8310-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:08.980345"], ["updated_at", "2015-03-20 05:34:08.980345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'bb53fdc6-cec2-11e4-8310-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "bb53fdc6-cec2-11e4-8310-705681abff85"], ["created_at", "2015-03-20 05:34:08.983651"], ["updated_at", "2015-03-20 05:34:08.983651"], ["token", "GU_vpH88GykK7im-JLjMJlKiRcGC7WZSkos7WAGQOEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 22:34:08 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$wpBAnjYhhvmVf/BAowSoDudp5XYGN44A6yH3nnDSJpZTtqMSsMFu6"], ["created_at", "2015-03-20 05:34:08.993846"], ["updated_at", "2015-03-20 05:34:08.993846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:08.995385"], ["user_id", "bb568794-cec2-11e4-82ee-705681abff85"], ["created_at", "2015-03-20 05:34:08.996210"], ["updated_at", "2015-03-20 05:34:08.996210"], ["token", "GOqWOSfOO98CCOZwl6OwOtfuU-KOBWCkpFXyJwrVVi0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.008420"], ["updated_at", "2015-03-20 05:34:09.008420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb568794-cec2-11e4-82ee-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb58c036-cec2-11e4-b5ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb568794-cec2-11e4-82ee-705681abff85"], ["organization_id", "bb58c036-cec2-11e4-b5ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.011668"], ["updated_at", "2015-03-20 05:34:09.011668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'bb58c036-cec2-11e4-b5ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "bb58c036-cec2-11e4-b5ea-705681abff85"], ["created_at", "2015-03-20 05:34:09.015857"], ["updated_at", "2015-03-20 05:34:09.015857"], ["token", "IeFmv_pGrcJATYIIzc0WBD2uOzkIIiT5Y2SwnA4okfU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/bb59f028-cec2-11e4-9858-705681abff85" for 127.0.0.1 at 2015-03-19 22:34:09 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"bb59f028-cec2-11e4-9858-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:09.021233' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GOqWOSfOO98CCOZwl6OwOtfuU-KOBWCkpFXyJwrVVi0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:09.023201"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:09.024766"], ["id", "bb58395e-cec2-11e4-bf95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bb59f028-cec2-11e4-9858-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb568794-cec2-11e4-82ee-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb58c036-cec2-11e4-b5ea-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb568794-cec2-11e4-82ee-705681abff85' LIMIT 1 [["organization_id", "bb58c036-cec2-11e4-b5ea-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "bb59f028-cec2-11e4-9858-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$/DKnuNT.wzPX6FoItY70.ugjnWOG/fXgMMPLTpdoEz5pu3f8Z8BnG"], ["created_at", "2015-03-20 05:34:09.036225"], ["updated_at", "2015-03-20 05:34:09.036225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:09.037983"], ["user_id", "bb5cfe62-cec2-11e4-9d08-705681abff85"], ["created_at", "2015-03-20 05:34:09.038776"], ["updated_at", "2015-03-20 05:34:09.038776"], ["token", "sl4DOPZOa2etD0EcN7__1rHzHhUcgQ6o4XoS3KB8Bnk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.042331"], ["updated_at", "2015-03-20 05:34:09.042331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb5cfe62-cec2-11e4-9d08-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb5dedea-cec2-11e4-9044-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb5cfe62-cec2-11e4-9d08-705681abff85"], ["organization_id", "bb5dedea-cec2-11e4-9044-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.045685"], ["updated_at", "2015-03-20 05:34:09.045685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'bb5dedea-cec2-11e4-9044-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "bb5dedea-cec2-11e4-9044-705681abff85"], ["created_at", "2015-03-20 05:34:09.049465"], ["updated_at", "2015-03-20 05:34:09.049465"], ["token", "ey0XwlWLyvymX7zw1jBXzMNiTUm2TrP0eaUsfkPcsPI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$pGxSlph0QzeDBZVzDLaFhugGZV0I576MS24PtraBc7ifjQr9/yjva"], ["created_at", "2015-03-20 05:34:09.055057"], ["updated_at", "2015-03-20 05:34:09.055057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.058697"], ["updated_at", "2015-03-20 05:34:09.058697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb5fe12c-cec2-11e4-8306-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb606ec6-cec2-11e4-a149-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb5fe12c-cec2-11e4-8306-705681abff85"], ["organization_id", "bb606ec6-cec2-11e4-a149-705681abff85"], ["created_at", "2015-03-20 05:34:09.062649"], ["updated_at", "2015-03-20 05:34:09.062649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 22:34:09 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$f6F10fbRzfukidrIchf9uOG0gd/OwKykSMPTIR0WT2ArRjrXsWWcK"], ["created_at", "2015-03-20 05:34:09.077003"], ["updated_at", "2015-03-20 05:34:09.077003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:09.078837"], ["user_id", "bb633d54-cec2-11e4-aaa7-705681abff85"], ["created_at", "2015-03-20 05:34:09.080506"], ["updated_at", "2015-03-20 05:34:09.080506"], ["token", "gMpKH9W1qZdgfeFRISJpbt3m0oOnkC2W4Fh2TunvHbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.084039"], ["updated_at", "2015-03-20 05:34:09.084039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb633d54-cec2-11e4-aaa7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb644da2-cec2-11e4-811c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb633d54-cec2-11e4-aaa7-705681abff85"], ["organization_id", "bb644da2-cec2-11e4-811c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.089587"], ["updated_at", "2015-03-20 05:34:09.089587"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'bb644da2-cec2-11e4-811c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "bb644da2-cec2-11e4-811c-705681abff85"], ["created_at", "2015-03-20 05:34:09.095716"], ["updated_at", "2015-03-20 05:34:09.095716"], ["token", "adctANHQ7JTKroHNJCKocnPgn0Dbu3GGOhESzLMne-8"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$xr0TpzU1SQ/9QteCQY2w1.jBktOy63P32DNqiHnAk2hmEh4YEq7/K"], ["created_at", "2015-03-20 05:34:09.102328"], ["updated_at", "2015-03-20 05:34:09.102328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.107052"], ["updated_at", "2015-03-20 05:34:09.107052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb67171c-cec2-11e4-a783-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb67d756-cec2-11e4-b044-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb67171c-cec2-11e4-a783-705681abff85"], ["organization_id", "bb67d756-cec2-11e4-b044-705681abff85"], ["created_at", "2015-03-20 05:34:09.112295"], ["updated_at", "2015-03-20 05:34:09.112295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bb644da2-cec2-11e4-811c-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:34:09 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"bb644da2-cec2-11e4-811c-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:09.119038' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gMpKH9W1qZdgfeFRISJpbt3m0oOnkC2W4Fh2TunvHbk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:09.120615"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:09.122193"], ["id", "bb63c936-cec2-11e4-9396-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb644da2-cec2-11e4-811c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb633d54-cec2-11e4-aaa7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb633d54-cec2-11e4-aaa7-705681abff85' LIMIT 1 [["organization_id", "bb644da2-cec2-11e4-811c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "bb644da2-cec2-11e4-811c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('bb644da2-cec2-11e4-811c-705681abff85') Completed 200 OK in 12ms (Views: 2.0ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$HcruAjhTxuLf.MEHqWuot.axTaiNfnHA.PsZAM5KOngRtiN.LmZte"], ["created_at", "2015-03-20 05:34:09.136966"], ["updated_at", "2015-03-20 05:34:09.136966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:09.138583"], ["user_id", "bb6c5dee-cec2-11e4-942a-705681abff85"], ["created_at", "2015-03-20 05:34:09.139325"], ["updated_at", "2015-03-20 05:34:09.139325"], ["token", "cer9NTrHoNMcTd1Bs-cF7HJyrH-0SbP7fVRIvtv81lM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.142743"], ["updated_at", "2015-03-20 05:34:09.142743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb6c5dee-cec2-11e4-942a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb6d3eb2-cec2-11e4-8d33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb6c5dee-cec2-11e4-942a-705681abff85"], ["organization_id", "bb6d3eb2-cec2-11e4-8d33-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.145983"], ["updated_at", "2015-03-20 05:34:09.145983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = 'bb6d3eb2-cec2-11e4-8d33-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "bb6d3eb2-cec2-11e4-8d33-705681abff85"], ["created_at", "2015-03-20 05:34:09.149294"], ["updated_at", "2015-03-20 05:34:09.149294"], ["token", "ThLhdhu7e66qjQdxikBrRonn1FFjo26-oDJJ-D9tWG0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 22:34:09 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$kmL.sC5hmzJsUE9nD8/Eq.WMw7g6Vv.re4Eo1MvG9sFPNHWNV2i.m"], ["created_at", "2015-03-20 05:34:09.163193"], ["updated_at", "2015-03-20 05:34:09.163193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:09.164810"], ["user_id", "bb70602e-cec2-11e4-863f-705681abff85"], ["created_at", "2015-03-20 05:34:09.165835"], ["updated_at", "2015-03-20 05:34:09.165835"], ["token", "PONcasf9lPVmDF8F9L_Zq_hOffqOp8poSYIUCInr4wc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.171784"], ["updated_at", "2015-03-20 05:34:09.171784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb70602e-cec2-11e4-863f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb71b2f8-cec2-11e4-90a6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb70602e-cec2-11e4-863f-705681abff85"], ["organization_id", "bb71b2f8-cec2-11e4-90a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.175471"], ["updated_at", "2015-03-20 05:34:09.175471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'bb71b2f8-cec2-11e4-90a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "bb71b2f8-cec2-11e4-90a6-705681abff85"], ["created_at", "2015-03-20 05:34:09.179198"], ["updated_at", "2015-03-20 05:34:09.179198"], ["token", "CLbURfOIV86YymS3larSC_oooL-qnscGcGP_TNEl8S4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bb71b2f8-cec2-11e4-90a6-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:34:09 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"bb71b2f8-cec2-11e4-90a6-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:09.184518' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PONcasf9lPVmDF8F9L_Zq_hOffqOp8poSYIUCInr4wc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:09.185942"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:09.186963"], ["id", "bb70d2fc-cec2-11e4-b5a4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb71b2f8-cec2-11e4-90a6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb70602e-cec2-11e4-863f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb71b2f8-cec2-11e4-90a6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb70602e-cec2-11e4-863f-705681abff85' LIMIT 1 [["organization_id", "bb71b2f8-cec2-11e4-90a6-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bb71b2f8-cec2-11e4-90a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bb71b2f8-cec2-11e4-90a6-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.194114"], ["updated_at", "2015-03-20 05:34:09.194114"], ["token", "e3-Vf5bxUb02XCIUrNhL-EjxlH5rbfs2jE_3DFDmCsQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 32198fd3-28a0-4911-a891-3fc8874a426f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bb751dda-cec2-11e4-8d81-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bb751dda-cec2-11e4-8d81-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [32198fd3-28a0-4911-a891-3fc8874a426f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bb751dda-cec2-11e4-8d81-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [32198fd3-28a0-4911-a891-3fc8874a426f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb71b2f8-cec2-11e4-90a6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [32198fd3-28a0-4911-a891-3fc8874a426f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [32198fd3-28a0-4911-a891-3fc8874a426f] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [32198fd3-28a0-4911-a891-3fc8874a426f] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [32198fd3-28a0-4911-a891-3fc8874a426f] Date: Thu, 19 Mar 2015 22:34:09 -0700 From: from@example.com To: email@example.com Message-ID: <550bb151318bc_10cd3ffb4a063be871039@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/e3-Vf5bxUb02XCIUrNhL-EjxlH5rbfs2jE_3DFDmCsQ?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [32198fd3-28a0-4911-a891-3fc8874a426f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.74ms Completed 201 Created in 21ms (Views: 0.9ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$9XflE3HMTKchDLdUSgtI8ORbznAhlCCYElqXo5GGi5fGYAaFUC3Ea"], ["created_at", "2015-03-20 05:34:09.211499"], ["updated_at", "2015-03-20 05:34:09.211499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:09.213260"], ["user_id", "bb77bf9a-cec2-11e4-b2fc-705681abff85"], ["created_at", "2015-03-20 05:34:09.214082"], ["updated_at", "2015-03-20 05:34:09.214082"], ["token", "LvILeWWFXjYFrsY8VNqdmpvSRQqM1sTKFGogzifbjpg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.217626"], ["updated_at", "2015-03-20 05:34:09.217626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb77bf9a-cec2-11e4-b2fc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb78ab26-cec2-11e4-8071-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb77bf9a-cec2-11e4-b2fc-705681abff85"], ["organization_id", "bb78ab26-cec2-11e4-8071-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.220889"], ["updated_at", "2015-03-20 05:34:09.220889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = 'bb78ab26-cec2-11e4-8071-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "bb78ab26-cec2-11e4-8071-705681abff85"], ["created_at", "2015-03-20 05:34:09.224671"], ["updated_at", "2015-03-20 05:34:09.224671"], ["token", "vhxFEV3urbG9vvK4Yw8Oy-UwS8ljc11q0caJ1ej1bmk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bb78ab26-cec2-11e4-8071-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:34:09 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"bb78ab26-cec2-11e4-8071-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:09.230036' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LvILeWWFXjYFrsY8VNqdmpvSRQqM1sTKFGogzifbjpg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:09.231451"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:09.232484"], ["id", "bb782b1a-cec2-11e4-b1f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb78ab26-cec2-11e4-8071-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb77bf9a-cec2-11e4-b2fc-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb78ab26-cec2-11e4-8071-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb77bf9a-cec2-11e4-b2fc-705681abff85' LIMIT 1 [["organization_id", "bb78ab26-cec2-11e4-8071-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bb78ab26-cec2-11e4-8071-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bb78ab26-cec2-11e4-8071-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.240288"], ["updated_at", "2015-03-20 05:34:09.240288"], ["token", "UBbcYXFvACuWszOS_rNAFBOSssS6_LsErRgci4nW5XQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 58d376d6-feb5-48cc-80db-1bf25b2c3d6a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bb7c2c06-cec2-11e4-a42d-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bb7c2c06-cec2-11e4-a42d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [58d376d6-feb5-48cc-80db-1bf25b2c3d6a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bb7c2c06-cec2-11e4-a42d-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [58d376d6-feb5-48cc-80db-1bf25b2c3d6a] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb78ab26-cec2-11e4-8071-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [58d376d6-feb5-48cc-80db-1bf25b2c3d6a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [58d376d6-feb5-48cc-80db-1bf25b2c3d6a] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [58d376d6-feb5-48cc-80db-1bf25b2c3d6a] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [58d376d6-feb5-48cc-80db-1bf25b2c3d6a] Date: Thu, 19 Mar 2015 22:34:09 -0700 From: from@example.com To: email@example.com Message-ID: <550bb1513c85b_10cd3ffb4a063be8711b2@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/UBbcYXFvACuWszOS_rNAFBOSssS6_LsErRgci4nW5XQ?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [58d376d6-feb5-48cc-80db-1bf25b2c3d6a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.14ms Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$KdX5ExEJMubiFG16pG6vvORClv4JDS7YSWkcpkmvouGboJe9wCBJ2"], ["created_at", "2015-03-20 05:34:09.256035"], ["updated_at", "2015-03-20 05:34:09.256035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:09.257736"], ["user_id", "bb7e8c30-cec2-11e4-a735-705681abff85"], ["created_at", "2015-03-20 05:34:09.258513"], ["updated_at", "2015-03-20 05:34:09.258513"], ["token", "d_Z95UzNzArReZFoTSk5Beq-l9yqDr9fksKdCEiBipk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.262296"], ["updated_at", "2015-03-20 05:34:09.262296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb7e8c30-cec2-11e4-a735-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb7f7e10-cec2-11e4-a8f0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb7e8c30-cec2-11e4-a735-705681abff85"], ["organization_id", "bb7f7e10-cec2-11e4-a8f0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.265702"], ["updated_at", "2015-03-20 05:34:09.265702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = 'bb7f7e10-cec2-11e4-a8f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "bb7f7e10-cec2-11e4-a8f0-705681abff85"], ["created_at", "2015-03-20 05:34:09.269768"], ["updated_at", "2015-03-20 05:34:09.269768"], ["token", "S2bAiZAcao6P2koZxeikSnvUwSymFko1PP6tWJEkYTI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bb7f7e10-cec2-11e4-a8f0-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:34:09 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"bb7f7e10-cec2-11e4-a8f0-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:09.275120' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "d_Z95UzNzArReZFoTSk5Beq-l9yqDr9fksKdCEiBipk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:09.276572"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:09.277558"], ["id", "bb7ef198-cec2-11e4-bd91-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb7f7e10-cec2-11e4-a8f0-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb7e8c30-cec2-11e4-a735-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb7f7e10-cec2-11e4-a8f0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb7e8c30-cec2-11e4-a735-705681abff85' LIMIT 1 [["organization_id", "bb7f7e10-cec2-11e4-a8f0-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'bb7f7e10-cec2-11e4-a8f0-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$Iig3tPfR4QAgLOVq65B1KuQHimGa/MadeFZ1l.S7YAryj6VbhfYGq"], ["created_at", "2015-03-20 05:34:09.292793"], ["updated_at", "2015-03-20 05:34:09.292793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:09.294361"], ["user_id", "bb8425dc-cec2-11e4-a3a2-705681abff85"], ["created_at", "2015-03-20 05:34:09.295142"], ["updated_at", "2015-03-20 05:34:09.295142"], ["token", "yhVyAyrL10BxwyN9eqUm9nERdhBTY2iR3UWofqVCxqY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.298414"], ["updated_at", "2015-03-20 05:34:09.298414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb8425dc-cec2-11e4-a3a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb84feb2-cec2-11e4-9b17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb8425dc-cec2-11e4-a3a2-705681abff85"], ["organization_id", "bb84feb2-cec2-11e4-9b17-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.302155"], ["updated_at", "2015-03-20 05:34:09.302155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'bb84feb2-cec2-11e4-9b17-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "bb84feb2-cec2-11e4-9b17-705681abff85"], ["created_at", "2015-03-20 05:34:09.306062"], ["updated_at", "2015-03-20 05:34:09.306062"], ["token", "PNV_CXb3m-QRJbunQAVjeMroPS59dLlzVvFlkSTtXOE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 22:34:09 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$uuqlAPhd4.Rxz/FwyxpBY.d0qYetWcA1oGgfTK/IAwQ8bsIK.lT2q"], ["created_at", "2015-03-20 05:34:09.316361"], ["updated_at", "2015-03-20 05:34:09.316361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:34:09.318048"], ["user_id", "bb87c142-cec2-11e4-9aa1-705681abff85"], ["created_at", "2015-03-20 05:34:09.318832"], ["updated_at", "2015-03-20 05:34:09.318832"], ["token", "8FQascTSM9eG8j_2Qskr_zQ7l5e6RttbAGnG0Rngepg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.322307"], ["updated_at", "2015-03-20 05:34:09.322307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb87c142-cec2-11e4-9aa1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb88ab20-cec2-11e4-a73a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb87c142-cec2-11e4-9aa1-705681abff85"], ["organization_id", "bb88ab20-cec2-11e4-a73a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.326139"], ["updated_at", "2015-03-20 05:34:09.326139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'bb88ab20-cec2-11e4-a73a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "bb88ab20-cec2-11e4-a73a-705681abff85"], ["created_at", "2015-03-20 05:34:09.329489"], ["updated_at", "2015-03-20 05:34:09.329489"], ["token", "PTf2mfCRVA1pEXO-rJmS9HjcHlqF_rpIZdmQSwTPt-8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/bb89c1c2-cec2-11e4-8bfa-705681abff85" for 127.0.0.1 at 2015-03-19 22:34:09 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"bb89c1c2-cec2-11e4-8bfa-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:34:09.334836' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8FQascTSM9eG8j_2Qskr_zQ7l5e6RttbAGnG0Rngepg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:34:09.336263"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:34:09.337310"], ["id", "bb882574-cec2-11e4-aa9e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bb89c1c2-cec2-11e4-8bfa-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb87c142-cec2-11e4-9aa1-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb88ab20-cec2-11e4-a73a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb87c142-cec2-11e4-9aa1-705681abff85' LIMIT 1 [["organization_id", "bb88ab20-cec2-11e4-a73a-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."id" != 'bb89c1c2-cec2-11e4-8bfa-705681abff85' AND "clubhouse_invitations"."organization_id" = 'bb88ab20-cec2-11e4-a73a-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:34:09.357434"], ["id", "bb89c1c2-cec2-11e4-8bfa-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 28ms (Views: 2.0ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$9zGGtyhbSUBtKLy8btV14eVPug.Kcee0brpIcchfHSUP8zfyupw9K"], ["created_at", "2015-03-20 05:34:09.375034"], ["updated_at", "2015-03-20 05:34:09.375034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$trvGV0jVs4Xm0mRWs5Ug/.FWAohUL.kIkUgpBlZgETQzKziu2hjWq"], ["created_at", "2015-03-20 05:34:09.382023"], ["updated_at", "2015-03-20 05:34:09.382023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.385691"], ["updated_at", "2015-03-20 05:34:09.385691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb91c570-cec2-11e4-a005-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb9253aa-cec2-11e4-8861-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb91c570-cec2-11e4-a005-705681abff85"], ["organization_id", "bb9253aa-cec2-11e4-8861-705681abff85"], ["created_at", "2015-03-20 05:34:09.389102"], ["updated_at", "2015-03-20 05:34:09.389102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$5o7nwdwJLVKxZguPVXaJR.V3NToc2LSgxZ/c1WNB.ud.mJVTJSJPy"], ["created_at", "2015-03-20 05:34:09.394877"], ["updated_at", "2015-03-20 05:34:09.394877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$YlpoDLS8OqoxHvQPz1vy/e.Zz/QET0.xWt0XpqRr4/ogrvzE99BoS"], ["created_at", "2015-03-20 05:34:09.398976"], ["updated_at", "2015-03-20 05:34:09.398976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.402358"], ["updated_at", "2015-03-20 05:34:09.402358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb9456be-cec2-11e4-ae3f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb94df30-cec2-11e4-9043-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb9456be-cec2-11e4-ae3f-705681abff85"], ["organization_id", "bb94df30-cec2-11e4-9043-705681abff85"], ["created_at", "2015-03-20 05:34:09.405969"], ["updated_at", "2015-03-20 05:34:09.405969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb93b966-cec2-11e4-9634-705681abff85' LIMIT 1 [["organization_id", "bb94df30-cec2-11e4-9043-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$AOjD8qFgHtQmc8xumUiak.EHEPp1l6flNAkPNfrzKJGYCHj8.CQkK"], ["created_at", "2015-03-20 05:34:09.413449"], ["updated_at", "2015-03-20 05:34:09.413449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$mgzWz2KAlOnOwrBjRC.t0ujTBtBb70NWhPCVg3h7tqy.F6LO9N6oi"], ["created_at", "2015-03-20 05:34:09.417667"], ["updated_at", "2015-03-20 05:34:09.417667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.421152"], ["updated_at", "2015-03-20 05:34:09.421152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb97367c-cec2-11e4-a1b0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb97baac-cec2-11e4-9661-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb97367c-cec2-11e4-a1b0-705681abff85"], ["organization_id", "bb97baac-cec2-11e4-9661-705681abff85"], ["created_at", "2015-03-20 05:34:09.424357"], ["updated_at", "2015-03-20 05:34:09.424357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb968ee8-cec2-11e4-9ae4-705681abff85' LIMIT 1 [["organization_id", "bb97baac-cec2-11e4-9661-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$yLLqW3dWyjrfReiMf.3CVeoAQ1PVN1QzHc0wZY57Vo2XZ7Vlfy9Ki"], ["created_at", "2015-03-20 05:34:09.431358"], ["updated_at", "2015-03-20 05:34:09.431358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$5kWWkvBOLrJN61kQgs8sQOe5ZtEb.s8zqdw96soNVRAT2hwAD8X2."], ["created_at", "2015-03-20 05:34:09.435520"], ["updated_at", "2015-03-20 05:34:09.435520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.439223"], ["updated_at", "2015-03-20 05:34:09.439223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb99f812-cec2-11e4-9d8d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb9a7df0-cec2-11e4-8f4a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb99f812-cec2-11e4-9d8d-705681abff85"], ["organization_id", "bb9a7df0-cec2-11e4-8f4a-705681abff85"], ["created_at", "2015-03-20 05:34:09.442545"], ["updated_at", "2015-03-20 05:34:09.442545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bb994b24-cec2-11e4-897f-705681abff85' LIMIT 1 [["organization_id", "bb9a7df0-cec2-11e4-8f4a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$xxJoqgLJStnrQObT9/WfVuLEBK/zUXWnPpvro2Mb1MZgnJD6HOrCu"], ["created_at", "2015-03-20 05:34:09.450173"], ["updated_at", "2015-03-20 05:34:09.450173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.454360"], ["updated_at", "2015-03-20 05:34:09.454360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bb9c2aa6-cec2-11e4-b2cb-705681abff85' LIMIT 1 [["organization_id", "bb9cd456-cec2-11e4-a54e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$l4aSlRXFdQBIpx5h1G/KDOBLGQ0TXLezFDNmU4MlC5j3Snt/Y6PMG"], ["created_at", "2015-03-20 05:34:09.462129"], ["updated_at", "2015-03-20 05:34:09.462129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.465455"], ["updated_at", "2015-03-20 05:34:09.465455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb9e00e2-cec2-11e4-8731-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb9e7c34-cec2-11e4-ba07-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb9e00e2-cec2-11e4-8731-705681abff85"], ["organization_id", "bb9e7c34-cec2-11e4-ba07-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.469032"], ["updated_at", "2015-03-20 05:34:09.469032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$DFthqK619XhZn01AU.cnFuzxQQ1S123dwjNEYyVVbTms2cxeEITV."], ["created_at", "2015-03-20 05:34:09.473610"], ["updated_at", "2015-03-20 05:34:09.473610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb9fbc7a-cec2-11e4-94f3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb9e7c34-cec2-11e4-ba07-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb9fbc7a-cec2-11e4-94f3-705681abff85"], ["organization_id", "bb9e7c34-cec2-11e4-ba07-705681abff85"], ["created_at", "2015-03-20 05:34:09.476802"], ["updated_at", "2015-03-20 05:34:09.476802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$KuUMJiU.rDn9iDHz6p54K.C5hliy2CBlI3AAqAjy/s1oirsWAVDv."], ["created_at", "2015-03-20 05:34:09.482895"], ["updated_at", "2015-03-20 05:34:09.482895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.486122"], ["updated_at", "2015-03-20 05:34:09.486122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bba1281c-cec2-11e4-a21d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba1a396-cec2-11e4-a28c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bba1281c-cec2-11e4-a21d-705681abff85"], ["organization_id", "bba1a396-cec2-11e4-a28c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.489396"], ["updated_at", "2015-03-20 05:34:09.489396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$tdQBAfhWNcxSf5Te6f1n0uwoe.Ic1Aqpsm1gMx5K9xxjskchcW5Pi"], ["created_at", "2015-03-20 05:34:09.494197"], ["updated_at", "2015-03-20 05:34:09.494197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bba2e166-cec2-11e4-9b75-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba1a396-cec2-11e4-a28c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bba2e166-cec2-11e4-9b75-705681abff85"], ["organization_id", "bba1a396-cec2-11e4-a28c-705681abff85"], ["created_at", "2015-03-20 05:34:09.497414"], ["updated_at", "2015-03-20 05:34:09.497414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bba1281c-cec2-11e4-a21d-705681abff85' LIMIT 1 [["organization_id", "bba1a396-cec2-11e4-a28c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$d/yFz1m2hkLgrpw5nZ9abeJRVq0Kz3ENFqrNVLo//ayYnjbP8fJIS"], ["created_at", "2015-03-20 05:34:09.504953"], ["updated_at", "2015-03-20 05:34:09.504953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.508148"], ["updated_at", "2015-03-20 05:34:09.508148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bba48656-cec2-11e4-8d18-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba50054-cec2-11e4-b8c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bba48656-cec2-11e4-8d18-705681abff85"], ["organization_id", "bba50054-cec2-11e4-b8c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.511388"], ["updated_at", "2015-03-20 05:34:09.511388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$NPh1hHFmi2RVEhRHlgRc9OwwQtX98t7iV11e.AEJBDc5MxTNYyemC"], ["created_at", "2015-03-20 05:34:09.516064"], ["updated_at", "2015-03-20 05:34:09.516064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bba63668-cec2-11e4-9539-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba50054-cec2-11e4-b8c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bba63668-cec2-11e4-9539-705681abff85"], ["organization_id", "bba50054-cec2-11e4-b8c6-705681abff85"], ["created_at", "2015-03-20 05:34:09.519596"], ["updated_at", "2015-03-20 05:34:09.519596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bba48656-cec2-11e4-8d18-705681abff85' LIMIT 1 [["organization_id", "bba50054-cec2-11e4-b8c6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$8bxfixvmeMGIGJcj7J7xxOvTRwpHfjNQDOBZ4nt1z3HO52O55sj3K"], ["created_at", "2015-03-20 05:34:09.526862"], ["updated_at", "2015-03-20 05:34:09.526862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.530046"], ["updated_at", "2015-03-20 05:34:09.530046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bba7ddb0-cec2-11e4-b83c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba85740-cec2-11e4-b245-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bba7ddb0-cec2-11e4-b83c-705681abff85"], ["organization_id", "bba85740-cec2-11e4-b245-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.533275"], ["updated_at", "2015-03-20 05:34:09.533275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$PAule0GNPL6xX.htPcHMHOI.gQ15EYEFnGm3OXmpa6rDUg8hhClI."], ["created_at", "2015-03-20 05:34:09.539316"], ["updated_at", "2015-03-20 05:34:09.539316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bba9ca8a-cec2-11e4-9254-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba85740-cec2-11e4-b245-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bba9ca8a-cec2-11e4-9254-705681abff85"], ["organization_id", "bba85740-cec2-11e4-b245-705681abff85"], ["created_at", "2015-03-20 05:34:09.543232"], ["updated_at", "2015-03-20 05:34:09.543232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bba7ddb0-cec2-11e4-b83c-705681abff85' LIMIT 1 [["organization_id", "bba85740-cec2-11e4-b245-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$YaI1GbnIr/38b3j4rcUwoOrwe.QM0gZMEymYTIoHf0AKJIdhU386W"], ["created_at", "2015-03-20 05:34:09.550338"], ["updated_at", "2015-03-20 05:34:09.550338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.553707"], ["updated_at", "2015-03-20 05:34:09.553707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbab718c-cec2-11e4-9db2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbabf38c-cec2-11e4-89e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbab718c-cec2-11e4-9db2-705681abff85"], ["organization_id", "bbabf38c-cec2-11e4-89e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.556802"], ["updated_at", "2015-03-20 05:34:09.556802"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bbab718c-cec2-11e4-9db2-705681abff85' LIMIT 1 [["organization_id", "bbabf38c-cec2-11e4-89e1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$xoT/8LZLOuMggtrHkhgIBeaOl/yiCXmr.UGGGpO6lQ/nqsKs3wTSa"], ["created_at", "2015-03-20 05:34:09.565481"], ["updated_at", "2015-03-20 05:34:09.565481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.569017"], ["updated_at", "2015-03-20 05:34:09.569017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbadc4f0-cec2-11e4-afa5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbae4d9e-cec2-11e4-9462-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbadc4f0-cec2-11e4-afa5-705681abff85"], ["organization_id", "bbae4d9e-cec2-11e4-9462-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.572399"], ["updated_at", "2015-03-20 05:34:09.572399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$oIw/jsTUNv9/9OASC16XD.sqAPeYdAw1OgN6Y/sgX2UNWQKUxbdd6"], ["created_at", "2015-03-20 05:34:09.578573"], ["updated_at", "2015-03-20 05:34:09.578573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.582236"], ["updated_at", "2015-03-20 05:34:09.582236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbafc12e-cec2-11e4-963b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbb059f4-cec2-11e4-b650-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbafc12e-cec2-11e4-963b-705681abff85"], ["organization_id", "bbb059f4-cec2-11e4-b650-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.586032"], ["updated_at", "2015-03-20 05:34:09.586032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbafc12e-cec2-11e4-963b-705681abff85' LIMIT 1 [["organization_id", "bbb059f4-cec2-11e4-b650-705681abff85"]]  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$ERcWjdw6NkS/3je5rMjm/uvXaw3Hy/YF3AujYSSohAztWGs0fc1S2"], ["created_at", "2015-03-20 05:34:09.599327"], ["updated_at", "2015-03-20 05:34:09.599327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.605719"], ["updated_at", "2015-03-20 05:34:09.605719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbb2ef3e-cec2-11e4-ae0b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbb3e808-cec2-11e4-bb92-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbb2ef3e-cec2-11e4-ae0b-705681abff85"], ["organization_id", "bbb3e808-cec2-11e4-bb92-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.609826"], ["updated_at", "2015-03-20 05:34:09.609826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbb2ef3e-cec2-11e4-ae0b-705681abff85' LIMIT 1 [["organization_id", "bbb3e808-cec2-11e4-bb92-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$J5N7a/br4XKJH5Ml6gTUtu/QEixNrrQGDEZZqP6t9JoCjXHumCQ8a"], ["created_at", "2015-03-20 05:34:09.618872"], ["updated_at", "2015-03-20 05:34:09.618872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.622862"], ["updated_at", "2015-03-20 05:34:09.622862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbb5eac2-cec2-11e4-a70d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbb69148-cec2-11e4-8316-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbb5eac2-cec2-11e4-a70d-705681abff85"], ["organization_id", "bbb69148-cec2-11e4-8316-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:34:09.627042"], ["updated_at", "2015-03-20 05:34:09.627042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bbb5eac2-cec2-11e4-a70d-705681abff85' LIMIT 1 [["organization_id", "bbb69148-cec2-11e4-8316-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$kFTOT22Ul1lORyJvMXskUO2L5FoR.CmTwHg3Xj2xB30ePJTC2FIx6"], ["created_at", "2015-03-20 05:34:09.634471"], ["updated_at", "2015-03-20 05:34:09.634471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.638846"], ["updated_at", "2015-03-20 05:34:09.638846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbb84d6c-cec2-11e4-b8b6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbb8f56e-cec2-11e4-82ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbb84d6c-cec2-11e4-b8b6-705681abff85"], ["organization_id", "bbb8f56e-cec2-11e4-82ae-705681abff85"], ["created_at", "2015-03-20 05:34:09.642966"], ["updated_at", "2015-03-20 05:34:09.642966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$7LuOLHaaI4xWKt5ApMvSleROuqBPsh.SHvMX0D1eYTGZhxCfLbWCa"], ["created_at", "2015-03-20 05:34:09.649365"], ["updated_at", "2015-03-20 05:34:09.649365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.652483"], ["updated_at", "2015-03-20 05:34:09.652483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbba8d66-cec2-11e4-84b4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbbb0926-cec2-11e4-9363-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbba8d66-cec2-11e4-84b4-705681abff85"], ["organization_id", "bbbb0926-cec2-11e4-9363-705681abff85"], ["created_at", "2015-03-20 05:34:09.656693"], ["updated_at", "2015-03-20 05:34:09.656693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbba8d66-cec2-11e4-84b4-705681abff85' LIMIT 1 [["organization_id", "bbbb0926-cec2-11e4-9363-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$bvmzk2HwgL5stOANIs9kA.R.f1A7CTmn1b5CUMkBtJNoQpPlMfSca"], ["created_at", "2015-03-20 05:34:09.665238"], ["updated_at", "2015-03-20 05:34:09.665238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.670091"], ["updated_at", "2015-03-20 05:34:09.670091"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbbd1446-cec2-11e4-867e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbbdbde2-cec2-11e4-96c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbbd1446-cec2-11e4-867e-705681abff85"], ["organization_id", "bbbdbde2-cec2-11e4-96c9-705681abff85"], ["created_at", "2015-03-20 05:34:09.674660"], ["updated_at", "2015-03-20 05:34:09.674660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbbd1446-cec2-11e4-867e-705681abff85' LIMIT 1 [["organization_id", "bbbdbde2-cec2-11e4-96c9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$xy5/LNyZKQiVEy4DxchbLOoscPNy0dqsJWwAnqU82/kahfJoegLWG"], ["created_at", "2015-03-20 05:34:09.681999"], ["updated_at", "2015-03-20 05:34:09.681999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.685202"], ["updated_at", "2015-03-20 05:34:09.685202"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbbf89d8-cec2-11e4-93d1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc008cc-cec2-11e4-a25f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbbf89d8-cec2-11e4-93d1-705681abff85"], ["organization_id", "bbc008cc-cec2-11e4-a25f-705681abff85"], ["created_at", "2015-03-20 05:34:09.689107"], ["updated_at", "2015-03-20 05:34:09.689107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bbbf89d8-cec2-11e4-93d1-705681abff85' LIMIT 1 [["organization_id", "bbc008cc-cec2-11e4-a25f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$6jxslIr/YV1IGUrat00qse0FridfA46HR3kBUosUTK1CYC6ILu4FC"], ["created_at", "2015-03-20 05:34:09.697264"], ["updated_at", "2015-03-20 05:34:09.697264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:34:09.700377"], ["updated_at", "2015-03-20 05:34:09.700377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc1dda0-cec2-11e4-a3d8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc255e6-cec2-11e4-8b6a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbc1dda0-cec2-11e4-a3d8-705681abff85"], ["organization_id", "bbc255e6-cec2-11e4-8b6a-705681abff85"], ["created_at", "2015-03-20 05:34:09.704855"], ["updated_at", "2015-03-20 05:34:09.704855"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bbc1dda0-cec2-11e4-a3d8-705681abff85' LIMIT 1 [["organization_id", "bbc255e6-cec2-11e4-8b6a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (27.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.569735"], ["updated_at", "2015-03-20 05:43:50.569735"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '15fffef4-cec4-11e4-bca7-705681abff85') LIMIT 1 SQL (6.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "15fffef4-cec4-11e4-bca7-705681abff85"], ["created_at", "2015-03-20 05:43:50.615212"], ["updated_at", "2015-03-20 05:43:50.615212"], ["token", "5mdlYviYqKS2XtEu8oPjL64WmLOAxiaoAnAhZ-OxBDc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) Clubhouse::Mailer#invitation: processed outbound mail in 30.0ms Sent mail to john@example.com (9.6ms) Date: Thu, 19 Mar 2015 22:43:50 -0700 From: from@example.com To: john@example.com Message-ID: <550bb396a174c_11253ffa06065be0969d0@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/5mdlYviYqKS2XtEu8oPjL64WmLOAxiaoAnAhZ-OxBDc?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.669680"], ["updated_at", "2015-03-20 05:43:50.669680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '160b38a0-cec4-11e4-aec3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "160b38a0-cec4-11e4-aec3-705681abff85"], ["created_at", "2015-03-20 05:43:50.673140"], ["updated_at", "2015-03-20 05:43:50.673140"], ["token", "WRj2iES-D6jPEq7-4HhkqRqFujQl8-DhKFuKeFbyKrg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Thu, 19 Mar 2015 22:43:50 -0700 From: from@example.com To: john@example.com Message-ID: <550bb396a535e_11253ffa06065be097024@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/WRj2iES-D6jPEq7-4HhkqRqFujQl8-DhKFuKeFbyKrg?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.683762"], ["updated_at", "2015-03-20 05:43:50.683762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '160d64d6-cec4-11e4-9517-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "160d64d6-cec4-11e4-9517-705681abff85"], ["created_at", "2015-03-20 05:43:50.687468"], ["updated_at", "2015-03-20 05:43:50.687468"], ["token", "NNrzfYdbbSsiaotjswBX9Q_f_HsnGDiSuy4_O9EFBSs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.9ms) Date: Thu, 19 Mar 2015 22:43:50 -0700 From: from@example.com To: john@example.com Message-ID: <550bb396a8cbc_11253ffa06065be097131@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/NNrzfYdbbSsiaotjswBX9Q_f_HsnGDiSuy4_O9EFBSs?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.696226"], ["updated_at", "2015-03-20 05:43:50.696226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '160f4472-cec4-11e4-ae9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "160f4472-cec4-11e4-ae9c-705681abff85"], ["created_at", "2015-03-20 05:43:50.699425"], ["updated_at", "2015-03-20 05:43:50.699425"], ["token", "TK11aQm8mQKeG3xF5FWGqtPWqcUZUgguFyfTAugqgwE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.5ms) Date: Thu, 19 Mar 2015 22:43:50 -0700 From: from@example.com To: john@example.com Message-ID: <550bb396abb92_11253ffa06065be097231@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/TK11aQm8mQKeG3xF5FWGqtPWqcUZUgguFyfTAugqgwE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$6QbVuYQOA23LR404JI2OH.Za.zzd8oz77YKiSgIQinlsTgh4c217m"], ["created_at", "2015-03-20 05:43:50.727595"], ["updated_at", "2015-03-20 05:43:50.727595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.731239"], ["updated_at", "2015-03-20 05:43:50.731239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '161415a6-cec4-11e4-bbb7-705681abff85' AND "clubhouse_memberships"."organization_id" = '1614adae-cec4-11e4-9ea4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "161415a6-cec4-11e4-bbb7-705681abff85"], ["organization_id", "1614adae-cec4-11e4-9ea4-705681abff85"], ["created_at", "2015-03-20 05:43:50.734658"], ["updated_at", "2015-03-20 05:43:50.734658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "161415a6-cec4-11e4-bbb7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1614adae-cec4-11e4-9ea4-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '161415a6-cec4-11e4-bbb7-705681abff85' AND "clubhouse_memberships"."organization_id" = '1614adae-cec4-11e4-9ea4-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1614adae-cec4-11e4-9ea4-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '161415a6-cec4-11e4-bbb7-705681abff85' AND "clubhouse_memberships"."organization_id" = '1614adae-cec4-11e4-9ea4-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$hY2kOAJG0/TEl3/YeZBqHeN52sUHK4afewS07Q24OcXSapheokHxa"], ["created_at", "2015-03-20 05:43:50.760828"], ["updated_at", "2015-03-20 05:43:50.760828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.763843"], ["updated_at", "2015-03-20 05:43:50.763843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1619215e-cec4-11e4-be72-705681abff85' AND "clubhouse_memberships"."organization_id" = '161993aa-cec4-11e4-9919-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1619215e-cec4-11e4-be72-705681abff85"], ["organization_id", "161993aa-cec4-11e4-9919-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:50.767101"], ["updated_at", "2015-03-20 05:43:50.767101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1619215e-cec4-11e4-be72-705681abff85' LIMIT 1 [["organization_id", "161993aa-cec4-11e4-9919-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$4qz21bYW7soIQKMkAaOC9.QVWWFh91VPdf91l9SLWsrlOVISlxbxi"], ["created_at", "2015-03-20 05:43:50.785802"], ["updated_at", "2015-03-20 05:43:50.785802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.789556"], ["updated_at", "2015-03-20 05:43:50.789556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '161cf7d4-cec4-11e4-b771-705681abff85' AND "clubhouse_memberships"."organization_id" = '161d8366-cec4-11e4-9969-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "161cf7d4-cec4-11e4-b771-705681abff85"], ["organization_id", "161d8366-cec4-11e4-9969-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:50.792827"], ["updated_at", "2015-03-20 05:43:50.792827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$g64E10t3AoB3kSGdP6pQV.P6fEXnfFSZ8.rB6U75zsqcivRjKXfDa"], ["created_at", "2015-03-20 05:43:50.797534"], ["updated_at", "2015-03-20 05:43:50.797534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '161ebb64-cec4-11e4-a181-705681abff85' AND "clubhouse_memberships"."organization_id" = '161d8366-cec4-11e4-9969-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "161ebb64-cec4-11e4-a181-705681abff85"], ["organization_id", "161d8366-cec4-11e4-9969-705681abff85"], ["created_at", "2015-03-20 05:43:50.801031"], ["updated_at", "2015-03-20 05:43:50.801031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$FpEeYYK3yoOWhAEYoAeTouUJUmHtU17pL3B5PBI8cGbv4SyawiNzO"], ["created_at", "2015-03-20 05:43:50.806863"], ["updated_at", "2015-03-20 05:43:50.806863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.809880"], ["updated_at", "2015-03-20 05:43:50.809880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1620272e-cec4-11e4-a13b-705681abff85' AND "clubhouse_memberships"."organization_id" = '16209b14-cec4-11e4-be85-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1620272e-cec4-11e4-a13b-705681abff85"], ["organization_id", "16209b14-cec4-11e4-be85-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:50.813068"], ["updated_at", "2015-03-20 05:43:50.813068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$iZsaK57nbgqb7D12hKx7yusXKGSe7c8Fof1bbcBUtViltCBx.RIWG"], ["created_at", "2015-03-20 05:43:50.817361"], ["updated_at", "2015-03-20 05:43:50.817361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1621bfa8-cec4-11e4-9408-705681abff85' AND "clubhouse_memberships"."organization_id" = '16209b14-cec4-11e4-be85-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1621bfa8-cec4-11e4-9408-705681abff85"], ["organization_id", "16209b14-cec4-11e4-be85-705681abff85"], ["created_at", "2015-03-20 05:43:50.820387"], ["updated_at", "2015-03-20 05:43:50.820387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1620272e-cec4-11e4-a13b-705681abff85' LIMIT 1 [["organization_id", "16209b14-cec4-11e4-be85-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Pw6utGpXk6vrk4JwkwSy3Obx31RjyFoOW58xz4dro8M8ZU.tQ0VjW"], ["created_at", "2015-03-20 05:43:50.827437"], ["updated_at", "2015-03-20 05:43:50.827437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.830634"], ["updated_at", "2015-03-20 05:43:50.830634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16234972-cec4-11e4-9b4e-705681abff85' AND "clubhouse_memberships"."organization_id" = '1623c50a-cec4-11e4-b6f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16234972-cec4-11e4-9b4e-705681abff85"], ["organization_id", "1623c50a-cec4-11e4-b6f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:50.833926"], ["updated_at", "2015-03-20 05:43:50.833926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$JhhU8XA36FJfZ7meP.FTGuaeAquNDKgSwL/Mr8JOBZzwIsJ1lmQI6"], ["created_at", "2015-03-20 05:43:50.838792"], ["updated_at", "2015-03-20 05:43:50.838792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16250956-cec4-11e4-bd7e-705681abff85' AND "clubhouse_memberships"."organization_id" = '1623c50a-cec4-11e4-b6f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16250956-cec4-11e4-bd7e-705681abff85"], ["organization_id", "1623c50a-cec4-11e4-b6f8-705681abff85"], ["created_at", "2015-03-20 05:43:50.842142"], ["updated_at", "2015-03-20 05:43:50.842142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16234972-cec4-11e4-9b4e-705681abff85' LIMIT 1 [["organization_id", "1623c50a-cec4-11e4-b6f8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$5rNRwhZboQs4dP3y.Vd06.zNLYQ2ymblSvUFHJK0pJIGfsBEg86Ga"], ["created_at", "2015-03-20 05:43:50.849001"], ["updated_at", "2015-03-20 05:43:50.849001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.852262"], ["updated_at", "2015-03-20 05:43:50.852262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16269906-cec4-11e4-93ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '162714d0-cec4-11e4-97c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16269906-cec4-11e4-93ee-705681abff85"], ["organization_id", "162714d0-cec4-11e4-97c0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:50.855535"], ["updated_at", "2015-03-20 05:43:50.855535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$QrHFnvgoJS83yoxmlKtN2u6xaDcDwG3XQA5fF2W3XTxAQcM/.ycP."], ["created_at", "2015-03-20 05:43:50.859777"], ["updated_at", "2015-03-20 05:43:50.859777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1628384c-cec4-11e4-a978-705681abff85' AND "clubhouse_memberships"."organization_id" = '162714d0-cec4-11e4-97c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1628384c-cec4-11e4-a978-705681abff85"], ["organization_id", "162714d0-cec4-11e4-97c0-705681abff85"], ["created_at", "2015-03-20 05:43:50.863021"], ["updated_at", "2015-03-20 05:43:50.863021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '16269906-cec4-11e4-93ee-705681abff85' LIMIT 1 [["organization_id", "162714d0-cec4-11e4-97c0-705681abff85"]]  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$qm6QTvfNpbUIvjlO6Ijj8uEt1xrNtf1cWsEfBjnGq/DdIBJOpng1."], ["created_at", "2015-03-20 05:43:50.873583"], ["updated_at", "2015-03-20 05:43:50.873583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.877042"], ["updated_at", "2015-03-20 05:43:50.877042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '162a588e-cec4-11e4-bedc-705681abff85' AND "clubhouse_memberships"."organization_id" = '162add22-cec4-11e4-aad3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "162a588e-cec4-11e4-bedc-705681abff85"], ["organization_id", "162add22-cec4-11e4-aad3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:50.880752"], ["updated_at", "2015-03-20 05:43:50.880752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$gp5JT701ZWP9hH85GFp4Ouacqbjui.DaRvGc27XlK0P0lDwfq.B1C"], ["created_at", "2015-03-20 05:43:50.886655"], ["updated_at", "2015-03-20 05:43:50.886655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.889777"], ["updated_at", "2015-03-20 05:43:50.889777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '162c5418-cec4-11e4-a308-705681abff85' AND "clubhouse_memberships"."organization_id" = '162ccba0-cec4-11e4-a150-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "162c5418-cec4-11e4-a308-705681abff85"], ["organization_id", "162ccba0-cec4-11e4-a150-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:50.893004"], ["updated_at", "2015-03-20 05:43:50.893004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '162c5418-cec4-11e4-a308-705681abff85' LIMIT 1 [["organization_id", "162ccba0-cec4-11e4-a150-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$j2VvidtN7OtV6ctQcNvlI.LoDyMM5M2IZima1Id3LFMSP8tvR4.tS"], ["created_at", "2015-03-20 05:43:50.899969"], ["updated_at", "2015-03-20 05:43:50.899969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.903483"], ["updated_at", "2015-03-20 05:43:50.903483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '162e6352-cec4-11e4-8ecc-705681abff85' AND "clubhouse_memberships"."organization_id" = '162ee3c2-cec4-11e4-ba52-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "162e6352-cec4-11e4-8ecc-705681abff85"], ["organization_id", "162ee3c2-cec4-11e4-ba52-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:50.906733"], ["updated_at", "2015-03-20 05:43:50.906733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '162e6352-cec4-11e4-8ecc-705681abff85' LIMIT 1 [["organization_id", "162ee3c2-cec4-11e4-ba52-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$fDgmJogMlZ4FQrunDq66xea91a9XvZiY6HjW7Gq1WTbRXEVLpvJ9K"], ["created_at", "2015-03-20 05:43:50.913769"], ["updated_at", "2015-03-20 05:43:50.913769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.917369"], ["updated_at", "2015-03-20 05:43:50.917369"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '163077d2-cec4-11e4-89ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '16310648-cec4-11e4-a86c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "163077d2-cec4-11e4-89ca-705681abff85"], ["organization_id", "16310648-cec4-11e4-a86c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:50.921534"], ["updated_at", "2015-03-20 05:43:50.921534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '163077d2-cec4-11e4-89ca-705681abff85' LIMIT 1 [["organization_id", "16310648-cec4-11e4-a86c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$4Y6ZZR8kLZ9QY7xjt1qOx.IfTfP71IOTDI7useAJsfJr8aEcl0f2u"], ["created_at", "2015-03-20 05:43:50.929022"], ["updated_at", "2015-03-20 05:43:50.929022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$LgfKl4J/WYyT5MSCtN/93uQeXgaBEknbGoITjhkSZBgaK3WWjjy0."], ["created_at", "2015-03-20 05:43:50.933295"], ["updated_at", "2015-03-20 05:43:50.933295"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.937714"], ["updated_at", "2015-03-20 05:43:50.937714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1633727a-cec4-11e4-bc35-705681abff85' AND "clubhouse_memberships"."organization_id" = '16341dba-cec4-11e4-a785-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1633727a-cec4-11e4-bc35-705681abff85"], ["organization_id", "16341dba-cec4-11e4-a785-705681abff85"], ["created_at", "2015-03-20 05:43:50.941030"], ["updated_at", "2015-03-20 05:43:50.941030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$9XCXEQIt0RE2LCbjAT8Tye4YVkJSKe8LjCwRXJkALB3fmHKRZ8pC."], ["created_at", "2015-03-20 05:43:50.947027"], ["updated_at", "2015-03-20 05:43:50.947027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$WX2W0DnjeIZu3cmLfGb5S.F9mjTl8Hp7Qyu3jCijf8BSS/q4MpS1u"], ["created_at", "2015-03-20 05:43:50.952165"], ["updated_at", "2015-03-20 05:43:50.952165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.956349"], ["updated_at", "2015-03-20 05:43:50.956349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16365e54-cec4-11e4-8e02-705681abff85' AND "clubhouse_memberships"."organization_id" = '1636f832-cec4-11e4-9e9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16365e54-cec4-11e4-8e02-705681abff85"], ["organization_id", "1636f832-cec4-11e4-9e9c-705681abff85"], ["created_at", "2015-03-20 05:43:50.959796"], ["updated_at", "2015-03-20 05:43:50.959796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16358c2c-cec4-11e4-80f5-705681abff85' LIMIT 1 [["organization_id", "1636f832-cec4-11e4-9e9c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$sASS8eFtbkGn.gM1rLf.l.m8fHCfSh49JZ4awQU9LiT6PRppLKY3q"], ["created_at", "2015-03-20 05:43:50.967384"], ["updated_at", "2015-03-20 05:43:50.967384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$QVSwgSksQrlewSNJxG5pzuIF90AFSZyKBgKO9l3ZCYJ8xY968DsPa"], ["created_at", "2015-03-20 05:43:50.971526"], ["updated_at", "2015-03-20 05:43:50.971526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.974708"], ["updated_at", "2015-03-20 05:43:50.974708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '163944d4-cec4-11e4-8eb2-705681abff85' AND "clubhouse_memberships"."organization_id" = '1639c080-cec4-11e4-a3f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "163944d4-cec4-11e4-8eb2-705681abff85"], ["organization_id", "1639c080-cec4-11e4-a3f3-705681abff85"], ["created_at", "2015-03-20 05:43:50.978153"], ["updated_at", "2015-03-20 05:43:50.978153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1638a5e2-cec4-11e4-a108-705681abff85' LIMIT 1 [["organization_id", "1639c080-cec4-11e4-a3f3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$YH2jVXq9m2KIhU8BSi6L.uABRz3ffSxudAucg7hLY2SFP3/z.XqUi"], ["created_at", "2015-03-20 05:43:50.985584"], ["updated_at", "2015-03-20 05:43:50.985584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$16rGkxYxM/4NDjRNsjFJMeLIsFYsGKsBDVObT5SUhKnOYdz3uMftW"], ["created_at", "2015-03-20 05:43:50.992117"], ["updated_at", "2015-03-20 05:43:50.992117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:50.995697"], ["updated_at", "2015-03-20 05:43:50.995697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '163c73ca-cec4-11e4-9dd8-705681abff85' AND "clubhouse_memberships"."organization_id" = '163cf61a-cec4-11e4-8229-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "163c73ca-cec4-11e4-9dd8-705681abff85"], ["organization_id", "163cf61a-cec4-11e4-8229-705681abff85"], ["created_at", "2015-03-20 05:43:50.999318"], ["updated_at", "2015-03-20 05:43:50.999318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '163b711e-cec4-11e4-addb-705681abff85' LIMIT 1 [["organization_id", "163cf61a-cec4-11e4-8229-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$Z0Je7RZrYJCvN8.Ka19tted8Oi7dbtAxGB5YlekEM63pQtJMzuohS"], ["created_at", "2015-03-20 05:43:51.006795"], ["updated_at", "2015-03-20 05:43:51.006795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.009879"], ["updated_at", "2015-03-20 05:43:51.009879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '163ea906-cec4-11e4-8a68-705681abff85' LIMIT 1 [["organization_id", "163f1e9a-cec4-11e4-82ce-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$0JMjdtfa0hghpxB7uSmbHuy.cvM.z8aqoGJHDdPpESCRekWmRi0Lu"], ["created_at", "2015-03-20 05:43:51.017602"], ["updated_at", "2015-03-20 05:43:51.017602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.021285"], ["updated_at", "2015-03-20 05:43:51.021285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16405a94-cec4-11e4-8489-705681abff85' AND "clubhouse_memberships"."organization_id" = '1640dd3e-cec4-11e4-a357-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16405a94-cec4-11e4-8489-705681abff85"], ["organization_id", "1640dd3e-cec4-11e4-a357-705681abff85"], ["created_at", "2015-03-20 05:43:51.024417"], ["updated_at", "2015-03-20 05:43:51.024417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$HtcKUswgSLlZuZUY.fwpkOCP5/L3cx9U9kGJMqVJZWAjFnlXgg0be"], ["created_at", "2015-03-20 05:43:51.030406"], ["updated_at", "2015-03-20 05:43:51.030406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.033567"], ["updated_at", "2015-03-20 05:43:51.033567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16424354-cec4-11e4-bfa3-705681abff85' AND "clubhouse_memberships"."organization_id" = '1642be74-cec4-11e4-9827-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16424354-cec4-11e4-bfa3-705681abff85"], ["organization_id", "1642be74-cec4-11e4-9827-705681abff85"], ["created_at", "2015-03-20 05:43:51.037456"], ["updated_at", "2015-03-20 05:43:51.037456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16424354-cec4-11e4-bfa3-705681abff85' LIMIT 1 [["organization_id", "1642be74-cec4-11e4-9827-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$4TeDN0D.iahrSCAjO9gxuO9U4ZFDaZlrkiYGSffaKOnY01HSSBAlu"], ["created_at", "2015-03-20 05:43:51.044633"], ["updated_at", "2015-03-20 05:43:51.044633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.047807"], ["updated_at", "2015-03-20 05:43:51.047807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16447070-cec4-11e4-af85-705681abff85' AND "clubhouse_memberships"."organization_id" = '1644e7e4-cec4-11e4-9883-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16447070-cec4-11e4-af85-705681abff85"], ["organization_id", "1644e7e4-cec4-11e4-9883-705681abff85"], ["created_at", "2015-03-20 05:43:51.050918"], ["updated_at", "2015-03-20 05:43:51.050918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16447070-cec4-11e4-af85-705681abff85' LIMIT 1 [["organization_id", "1644e7e4-cec4-11e4-9883-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$B2uH3uq3VJHgeMVYR1HWS.0CfDfn3kXWl.VNQYVFYZezBbF4J1HT."], ["created_at", "2015-03-20 05:43:51.058049"], ["updated_at", "2015-03-20 05:43:51.058049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.061555"], ["updated_at", "2015-03-20 05:43:51.061555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16467ad2-cec4-11e4-a43c-705681abff85' AND "clubhouse_memberships"."organization_id" = '16470402-cec4-11e4-9d00-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16467ad2-cec4-11e4-a43c-705681abff85"], ["organization_id", "16470402-cec4-11e4-9d00-705681abff85"], ["created_at", "2015-03-20 05:43:51.065887"], ["updated_at", "2015-03-20 05:43:51.065887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '16467ad2-cec4-11e4-a43c-705681abff85' LIMIT 1 [["organization_id", "16470402-cec4-11e4-9d00-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$sxtDl4la3yi9Ptt/wXQBp.y2fNNyDDjIT4L0a4gp6hMh/KLLiWeMi"], ["created_at", "2015-03-20 05:43:51.073815"], ["updated_at", "2015-03-20 05:43:51.073815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.077331"], ["updated_at", "2015-03-20 05:43:51.077331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1648e3e4-cec4-11e4-9fdd-705681abff85' AND "clubhouse_memberships"."organization_id" = '16496b70-cec4-11e4-81f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1648e3e4-cec4-11e4-9fdd-705681abff85"], ["organization_id", "16496b70-cec4-11e4-81f6-705681abff85"], ["created_at", "2015-03-20 05:43:51.080563"], ["updated_at", "2015-03-20 05:43:51.080563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1648e3e4-cec4-11e4-9fdd-705681abff85' LIMIT 1 [["organization_id", "16496b70-cec4-11e4-81f6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$KoNbNZeTtFW6jx/PJWDGLu64XY0aoc/Vakkio7QPrwSgj1tqKiiOm"], ["created_at", "2015-03-20 05:43:51.087857"], ["updated_at", "2015-03-20 05:43:51.087857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.090934"], ["updated_at", "2015-03-20 05:43:51.090934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '164b075a-cec4-11e4-9207-705681abff85' AND "clubhouse_memberships"."organization_id" = '164b7cbc-cec4-11e4-bf9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "164b075a-cec4-11e4-9207-705681abff85"], ["organization_id", "164b7cbc-cec4-11e4-bf9c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.094195"], ["updated_at", "2015-03-20 05:43:51.094195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '164b7cbc-cec4-11e4-bf9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "164b7cbc-cec4-11e4-bf9c-705681abff85"], ["created_at", "2015-03-20 05:43:51.097517"], ["updated_at", "2015-03-20 05:43:51.097517"], ["token", "hM63kryLj0wFh6QJtcP8-D6XAV7yunC6rVY8U3Mq2Q4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '164b075a-cec4-11e4-9207-705681abff85' LIMIT 1 [["organization_id", "164b7cbc-cec4-11e4-bf9c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$D.m85dnph/0c51iFw6YI5.Iuh1HJZhE4PofXbT5mi5kdHkL1bjPqe"], ["created_at", "2015-03-20 05:43:51.104714"], ["updated_at", "2015-03-20 05:43:51.104714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.107913"], ["updated_at", "2015-03-20 05:43:51.107913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '164d9a74-cec4-11e4-af41-705681abff85' AND "clubhouse_memberships"."organization_id" = '164e1940-cec4-11e4-8b9f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "164d9a74-cec4-11e4-af41-705681abff85"], ["organization_id", "164e1940-cec4-11e4-8b9f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.111531"], ["updated_at", "2015-03-20 05:43:51.111531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '164e1940-cec4-11e4-8b9f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "164e1940-cec4-11e4-8b9f-705681abff85"], ["created_at", "2015-03-20 05:43:51.114986"], ["updated_at", "2015-03-20 05:43:51.114986"], ["token", "hk_M8nK1z28WXRIde-kOLffh7-BCAwHaFn6C_8xrJeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '164d9a74-cec4-11e4-af41-705681abff85' LIMIT 1 [["organization_id", "164e1940-cec4-11e4-8b9f-705681abff85"]]  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$MYoIX42lHMRPvZK47/mJyuUz0dkPHhsJedGsWLL6.cOA8DfuQ.htC"], ["created_at", "2015-03-20 05:43:51.124644"], ["updated_at", "2015-03-20 05:43:51.124644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.128190"], ["updated_at", "2015-03-20 05:43:51.128190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1650a912-cec4-11e4-a152-705681abff85' AND "clubhouse_memberships"."organization_id" = '16512fd6-cec4-11e4-b328-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1650a912-cec4-11e4-a152-705681abff85"], ["organization_id", "16512fd6-cec4-11e4-b328-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.131600"], ["updated_at", "2015-03-20 05:43:51.131600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '16512fd6-cec4-11e4-b328-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "16512fd6-cec4-11e4-b328-705681abff85"], ["created_at", "2015-03-20 05:43:51.135318"], ["updated_at", "2015-03-20 05:43:51.135318"], ["token", "zoWQpYCzzXet23-qV4WkTOsrcaCdYWanjiPX8qrp0fY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1650a912-cec4-11e4-a152-705681abff85' LIMIT 1 [["organization_id", "16512fd6-cec4-11e4-b328-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$THEoEH63/zrMc2szkawBd.UHYifpHp3dl9thUhBcGnptqsRGM5AoG"], ["created_at", "2015-03-20 05:43:51.142391"], ["updated_at", "2015-03-20 05:43:51.142391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.145665"], ["updated_at", "2015-03-20 05:43:51.145665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16535ebe-cec4-11e4-b3f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '1653d6e6-cec4-11e4-8039-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16535ebe-cec4-11e4-b3f1-705681abff85"], ["organization_id", "1653d6e6-cec4-11e4-8039-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.148792"], ["updated_at", "2015-03-20 05:43:51.148792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '1653d6e6-cec4-11e4-8039-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "1653d6e6-cec4-11e4-8039-705681abff85"], ["created_at", "2015-03-20 05:43:51.152273"], ["updated_at", "2015-03-20 05:43:51.152273"], ["token", "G0XbREfWT-rSeY5nANZ1_UNF3YRd7kPO1YgIv-jK6K4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16535ebe-cec4-11e4-b3f1-705681abff85' LIMIT 1 [["organization_id", "1653d6e6-cec4-11e4-8039-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$dpCHcb0hu4Gw56AOmoK2f.6YqM04p31SgoLsXqsGyCFWjMvTHNJ8G"], ["created_at", "2015-03-20 05:43:51.160071"], ["updated_at", "2015-03-20 05:43:51.160071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.163733"], ["updated_at", "2015-03-20 05:43:51.163733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16560e7a-cec4-11e4-a26c-705681abff85' AND "clubhouse_memberships"."organization_id" = '16569dd6-cec4-11e4-9042-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16560e7a-cec4-11e4-a26c-705681abff85"], ["organization_id", "16569dd6-cec4-11e4-9042-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.167322"], ["updated_at", "2015-03-20 05:43:51.167322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16560e7a-cec4-11e4-a26c-705681abff85' LIMIT 1 [["organization_id", "16569dd6-cec4-11e4-9042-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$Adtm9PxWGGVMVj1YVKTJ6OmENWWMY4D4sjHqJ/nYh8ZbscXcYP9M6"], ["created_at", "2015-03-20 05:43:51.175769"], ["updated_at", "2015-03-20 05:43:51.175769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.178944"], ["updated_at", "2015-03-20 05:43:51.178944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '1658eb54-cec4-11e4-9304-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "1658eb54-cec4-11e4-9304-705681abff85"], ["created_at", "2015-03-20 05:43:51.182199"], ["updated_at", "2015-03-20 05:43:51.182199"], ["token", "MFg8heIsQ0WHxu0vjBlQWffVCijkgwHShWZWDtge0zw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16587372-cec4-11e4-86be-705681abff85' LIMIT 1 [["organization_id", "1658eb54-cec4-11e4-9304-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$jJy4NyFIdFVRGjEBfaEfC.9xx9acGk0WuFDPORUuMxCbb2buGbPzO"], ["created_at", "2015-03-20 05:43:51.189712"], ["updated_at", "2015-03-20 05:43:51.189712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.192879"], ["updated_at", "2015-03-20 05:43:51.192879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '165b10d2-cec4-11e4-81d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "165b10d2-cec4-11e4-81d4-705681abff85"], ["created_at", "2015-03-20 05:43:51.196506"], ["updated_at", "2015-03-20 05:43:51.196506"], ["token", "1ropFKGokuRK9BlbpiZoZC8q9ULSKVSc9QSWm4BoDww"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '165a92c4-cec4-11e4-a667-705681abff85' LIMIT 1 [["organization_id", "165b10d2-cec4-11e4-81d4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$aPqxGugbQICjOjXfwQxv/OT5GIcDSG/Dtqt8VB7jwSkrZEQEQ.GOW"], ["created_at", "2015-03-20 05:43:51.204035"], ["updated_at", "2015-03-20 05:43:51.204035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.207754"], ["updated_at", "2015-03-20 05:43:51.207754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '165d5450-cec4-11e4-8ba8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "165d5450-cec4-11e4-8ba8-705681abff85"], ["created_at", "2015-03-20 05:43:51.211331"], ["updated_at", "2015-03-20 05:43:51.211331"], ["token", "nXhAHsleaSouHikYdL87OvSufPZCofEDynMxFg-A8m8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '165cc486-cec4-11e4-80a0-705681abff85' LIMIT 1 [["organization_id", "165d5450-cec4-11e4-8ba8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$c6BPR6epe1jVF83/RqCiX.tOGRUeNeTfsyK4VkZMFM21sAsF4XJje"], ["created_at", "2015-03-20 05:43:51.218546"], ["updated_at", "2015-03-20 05:43:51.218546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.221614"], ["updated_at", "2015-03-20 05:43:51.221614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '165f6d80-cec4-11e4-a277-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "165f6d80-cec4-11e4-a277-705681abff85"], ["created_at", "2015-03-20 05:43:51.225128"], ["updated_at", "2015-03-20 05:43:51.225128"], ["token", "XtLD7XzS24u4BwAfWIbSdR1E0rpsnezDcGYUkDqmKlY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '165ef8dc-cec4-11e4-9e32-705681abff85' LIMIT 1 [["organization_id", "165f6d80-cec4-11e4-a277-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$j6/NGYRGF3yb5R.H9h2FHeWgm2SyE77BGov0KffiXJ6xniHxQH4hq"], ["created_at", "2015-03-20 05:43:51.232253"], ["updated_at", "2015-03-20 05:43:51.232253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.235660"], ["updated_at", "2015-03-20 05:43:51.235660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16610f28-cec4-11e4-b928-705681abff85' LIMIT 1 [["organization_id", "1661965a-cec4-11e4-acc9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$Urbkjjgo/i87WLt/cOVfFOeRF4QaLe6bR7Q//.Ku16twSSNdFJxOy"], ["created_at", "2015-03-20 05:43:51.243130"], ["updated_at", "2015-03-20 05:43:51.243130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.246285"], ["updated_at", "2015-03-20 05:43:51.246285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1662ba08-cec4-11e4-bf63-705681abff85' AND "clubhouse_memberships"."organization_id" = '16633488-cec4-11e4-8921-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1662ba08-cec4-11e4-bf63-705681abff85"], ["organization_id", "16633488-cec4-11e4-8921-705681abff85"], ["created_at", "2015-03-20 05:43:51.249928"], ["updated_at", "2015-03-20 05:43:51.249928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '16633488-cec4-11e4-8921-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "16633488-cec4-11e4-8921-705681abff85"], ["created_at", "2015-03-20 05:43:51.254545"], ["updated_at", "2015-03-20 05:43:51.254545"], ["token", "YtE3rMQHQW-9DpTbknVOWhQc_oIgZ8TZNKeZvjzqBPc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1662ba08-cec4-11e4-bf63-705681abff85' LIMIT 1 [["organization_id", "16633488-cec4-11e4-8921-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$LPy.ZfA.oxptjgVBqdgrK.YOYC6nSPEomV07.fNGO0.aJ0A3ywx2G"], ["created_at", "2015-03-20 05:43:51.264515"], ["updated_at", "2015-03-20 05:43:51.264515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.267694"], ["updated_at", "2015-03-20 05:43:51.267694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1665fcf4-cec4-11e4-bd8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '16668066-cec4-11e4-b90f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1665fcf4-cec4-11e4-bd8a-705681abff85"], ["organization_id", "16668066-cec4-11e4-b90f-705681abff85"], ["created_at", "2015-03-20 05:43:51.271148"], ["updated_at", "2015-03-20 05:43:51.271148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '16668066-cec4-11e4-b90f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "16668066-cec4-11e4-b90f-705681abff85"], ["created_at", "2015-03-20 05:43:51.274520"], ["updated_at", "2015-03-20 05:43:51.274520"], ["token", "eqB6EYTKe1qQQ3GuAMAu6zEi43gr_oGJVuSyEvo8kt0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1665fcf4-cec4-11e4-bd8a-705681abff85' LIMIT 1 [["organization_id", "16668066-cec4-11e4-b90f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$64/1q8LgA4B3rgnJ1Wy4IezogYkoilinLwB9OWIHvsPkj1xV2GtSe"], ["created_at", "2015-03-20 05:43:51.281848"], ["updated_at", "2015-03-20 05:43:51.281848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.284920"], ["updated_at", "2015-03-20 05:43:51.284920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1668a0ee-cec4-11e4-ac5a-705681abff85' AND "clubhouse_memberships"."organization_id" = '16691bd2-cec4-11e4-b8e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1668a0ee-cec4-11e4-ac5a-705681abff85"], ["organization_id", "16691bd2-cec4-11e4-b8e2-705681abff85"], ["created_at", "2015-03-20 05:43:51.288580"], ["updated_at", "2015-03-20 05:43:51.288580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '16691bd2-cec4-11e4-b8e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "16691bd2-cec4-11e4-b8e2-705681abff85"], ["created_at", "2015-03-20 05:43:51.291950"], ["updated_at", "2015-03-20 05:43:51.291950"], ["token", "IgoPnCZumDjglNR8ejFK10xCD1osZPMLG8oO8FJWIzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1668a0ee-cec4-11e4-ac5a-705681abff85' LIMIT 1 [["organization_id", "16691bd2-cec4-11e4-b8e2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$tN33psapyBhwaKYLIF8GpOczb6Vpq5zLXuLeXQQUrvRbDOefRzPKS"], ["created_at", "2015-03-20 05:43:51.299250"], ["updated_at", "2015-03-20 05:43:51.299250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.302421"], ["updated_at", "2015-03-20 05:43:51.302421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '166b49c0-cec4-11e4-afe8-705681abff85' AND "clubhouse_memberships"."organization_id" = '166bc648-cec4-11e4-9247-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "166b49c0-cec4-11e4-afe8-705681abff85"], ["organization_id", "166bc648-cec4-11e4-9247-705681abff85"], ["created_at", "2015-03-20 05:43:51.306879"], ["updated_at", "2015-03-20 05:43:51.306879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '166bc648-cec4-11e4-9247-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "166bc648-cec4-11e4-9247-705681abff85"], ["created_at", "2015-03-20 05:43:51.313182"], ["updated_at", "2015-03-20 05:43:51.313182"], ["token", "7S_V5YXn0ZHttaxDSDBJbq1GtO-XSZ-is742ULoOLSg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '166b49c0-cec4-11e4-afe8-705681abff85' LIMIT 1 [["organization_id", "166bc648-cec4-11e4-9247-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$swpBDeKUuWTDTItcqgEBBeyqIh1TBkgEgQR5D//rLGZRdwVPSRJxK"], ["created_at", "2015-03-20 05:43:51.320702"], ["updated_at", "2015-03-20 05:43:51.320702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.323962"], ["updated_at", "2015-03-20 05:43:51.323962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '166e8f72-cec4-11e4-9261-705681abff85' AND "clubhouse_memberships"."organization_id" = '166f0bf0-cec4-11e4-8263-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "166e8f72-cec4-11e4-9261-705681abff85"], ["organization_id", "166f0bf0-cec4-11e4-8263-705681abff85"], ["created_at", "2015-03-20 05:43:51.327516"], ["updated_at", "2015-03-20 05:43:51.327516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '166e8f72-cec4-11e4-9261-705681abff85' LIMIT 1 [["organization_id", "166f0bf0-cec4-11e4-8263-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (3.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$gqr3FvzHwnkT8Mz1N5naN.dxEb6Th5Nc0BQ47MW7/Nbg4OglHuNcW"], ["created_at", "2015-03-20 05:43:51.342724"], ["updated_at", "2015-03-20 05:43:51.342724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$9P6mb3b35X8R.0J1uZvJquVT3acqWTo0C0ITzP0z9mWc209HcHE2K"], ["created_at", "2015-03-20 05:43:51.357983"], ["updated_at", "2015-03-20 05:43:51.357983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.362858"], ["updated_at", "2015-03-20 05:43:51.362858"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16745182-cec4-11e4-845a-705681abff85' AND "clubhouse_memberships"."organization_id" = '16750c1c-cec4-11e4-9d9e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16745182-cec4-11e4-845a-705681abff85"], ["organization_id", "16750c1c-cec4-11e4-9d9e-705681abff85"], ["created_at", "2015-03-20 05:43:51.368501"], ["updated_at", "2015-03-20 05:43:51.368501"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$tcLV1zx2GWHbTgD33Yajz.uOYO5OF9YGyueKUBRE0HzcJ5dB9bNxS"], ["created_at", "2015-03-20 05:43:51.376145"], ["updated_at", "2015-03-20 05:43:51.376145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.379388"], ["updated_at", "2015-03-20 05:43:51.379388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1677095e-cec4-11e4-a8dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '16777fe2-cec4-11e4-b5a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1677095e-cec4-11e4-a8dc-705681abff85"], ["organization_id", "16777fe2-cec4-11e4-b5a5-705681abff85"], ["created_at", "2015-03-20 05:43:51.382399"], ["updated_at", "2015-03-20 05:43:51.382399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1677095e-cec4-11e4-a8dc-705681abff85' LIMIT 1 [["organization_id", "16777fe2-cec4-11e4-b5a5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$AikfEWgOIq9DQItyWv874eEcPrh3EiCzS4ShiJicAgBV5zUakmzmC"], ["created_at", "2015-03-20 05:43:51.389648"], ["updated_at", "2015-03-20 05:43:51.389648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.392856"], ["updated_at", "2015-03-20 05:43:51.392856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16791398-cec4-11e4-92ce-705681abff85' AND "clubhouse_memberships"."organization_id" = '167990fc-cec4-11e4-bb70-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16791398-cec4-11e4-92ce-705681abff85"], ["organization_id", "167990fc-cec4-11e4-bb70-705681abff85"], ["created_at", "2015-03-20 05:43:51.396099"], ["updated_at", "2015-03-20 05:43:51.396099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16791398-cec4-11e4-92ce-705681abff85' LIMIT 1 [["organization_id", "167990fc-cec4-11e4-bb70-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$n9oWJ/adbCUqgx87j6qK7u09VDVHKqhwF8J6y2U6JjTdQb7Fbcb0S"], ["created_at", "2015-03-20 05:43:51.402968"], ["updated_at", "2015-03-20 05:43:51.402968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.406322"], ["updated_at", "2015-03-20 05:43:51.406322"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '167b1fbc-cec4-11e4-80d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '167baa18-cec4-11e4-b7c1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "167b1fbc-cec4-11e4-80d5-705681abff85"], ["organization_id", "167baa18-cec4-11e4-b7c1-705681abff85"], ["created_at", "2015-03-20 05:43:51.410373"], ["updated_at", "2015-03-20 05:43:51.410373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '167b1fbc-cec4-11e4-80d5-705681abff85' LIMIT 1 [["organization_id", "167baa18-cec4-11e4-b7c1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$2j89uCYBGF0fVmfaVCKxRuZSs98j7EFvGV8coDdNouACnhshirT/6"], ["created_at", "2015-03-20 05:43:51.417140"], ["updated_at", "2015-03-20 05:43:51.417140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.420740"], ["updated_at", "2015-03-20 05:43:51.420740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '167d4508-cec4-11e4-8455-705681abff85' AND "clubhouse_memberships"."organization_id" = '167dd4be-cec4-11e4-89b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "167d4508-cec4-11e4-8455-705681abff85"], ["organization_id", "167dd4be-cec4-11e4-89b6-705681abff85"], ["created_at", "2015-03-20 05:43:51.424157"], ["updated_at", "2015-03-20 05:43:51.424157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$1Ttskj3JXm3ZweR3NZUt0OPYGfObKusImkLY3MfbNw.mKQKjrYhT2"], ["created_at", "2015-03-20 05:43:51.430251"], ["updated_at", "2015-03-20 05:43:51.430251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.433899"], ["updated_at", "2015-03-20 05:43:51.433899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$4rjgegtiyU3LFavyNQgHrO3njuDiIxYMQLraGxXC0ZRlEiDpnsA9u"], ["created_at", "2015-03-20 05:43:51.439970"], ["updated_at", "2015-03-20 05:43:51.439970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.443375"], ["updated_at", "2015-03-20 05:43:51.443375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1680c9e4-cec4-11e4-a49e-705681abff85' LIMIT 1 [["organization_id", "16814478-cec4-11e4-bcd8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$cUepMwjYBX4E2P5jQ2K/Uer1o5xk95JsnofGWUbi/DDp2uDufLe5i"], ["created_at", "2015-03-20 05:43:51.450357"], ["updated_at", "2015-03-20 05:43:51.450357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.453585"], ["updated_at", "2015-03-20 05:43:51.453585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '168258b8-cec4-11e4-98d2-705681abff85' LIMIT 1 [["organization_id", "1682d306-cec4-11e4-ae03-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$rT39yovVl7S5gZG9R12wd.6k1VkyVQblkrbmSiPzraW5yGXJnLzsO"], ["created_at", "2015-03-20 05:43:51.460976"], ["updated_at", "2015-03-20 05:43:51.460976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.464201"], ["updated_at", "2015-03-20 05:43:51.464201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1683f6c8-cec4-11e4-a008-705681abff85' LIMIT 1 [["organization_id", "1684710c-cec4-11e4-ac41-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$RiQr3fkSC1xLBYrtAT1veOPNZSyYTTl9WaQYOjhky2wsWpkJh2o7W"], ["created_at", "2015-03-20 05:43:51.471147"], ["updated_at", "2015-03-20 05:43:51.471147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.474531"], ["updated_at", "2015-03-20 05:43:51.474531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$ertUZqcMxDunU3QO7PO96O3aa/cNRrcGBaAJipQloPnzJJP70tE/6"], ["created_at", "2015-03-20 05:43:51.480133"], ["updated_at", "2015-03-20 05:43:51.480133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.483119"], ["updated_at", "2015-03-20 05:43:51.483119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1686e126-cec4-11e4-9eda-705681abff85' AND "clubhouse_memberships"."organization_id" = '168753ae-cec4-11e4-9e0a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1686e126-cec4-11e4-9eda-705681abff85"], ["organization_id", "168753ae-cec4-11e4-9e0a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.486318"], ["updated_at", "2015-03-20 05:43:51.486318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$q6VyfPGbT1jYxeQgMIb/9ezmfJnlaW4FCwPO1ZYSAhOndXzcUabTa"], ["created_at", "2015-03-20 05:43:51.492437"], ["updated_at", "2015-03-20 05:43:51.492437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.496118"], ["updated_at", "2015-03-20 05:43:51.496118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1688ca18-cec4-11e4-aab4-705681abff85' AND "clubhouse_memberships"."organization_id" = '1689514a-cec4-11e4-81fb-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1688ca18-cec4-11e4-aab4-705681abff85"], ["organization_id", "1689514a-cec4-11e4-81fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.500873"], ["updated_at", "2015-03-20 05:43:51.500873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1688ca18-cec4-11e4-aab4-705681abff85' LIMIT 1 [["organization_id", "1689514a-cec4-11e4-81fb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$V90nRpv6ltjMfXRqSAMDC.VinI8p3T46NgBUSzSQNk5W2a1blgRoy"], ["created_at", "2015-03-20 05:43:51.509745"], ["updated_at", "2015-03-20 05:43:51.509745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.512914"], ["updated_at", "2015-03-20 05:43:51.512914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '168b678c-cec4-11e4-9798-705681abff85' AND "clubhouse_memberships"."organization_id" = '168be0ae-cec4-11e4-a795-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "168b678c-cec4-11e4-9798-705681abff85"], ["organization_id", "168be0ae-cec4-11e4-a795-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.515999"], ["updated_at", "2015-03-20 05:43:51.515999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '168b678c-cec4-11e4-9798-705681abff85' LIMIT 1 [["organization_id", "168be0ae-cec4-11e4-a795-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$8VK1NFaiS0XTtLlf2sRTfOuhoZDINFyJ77.3IqWSGG2a8Nnjlgxua"], ["created_at", "2015-03-20 05:43:51.522930"], ["updated_at", "2015-03-20 05:43:51.522930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.526411"], ["updated_at", "2015-03-20 05:43:51.526411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '168d732e-cec4-11e4-aead-705681abff85' AND "clubhouse_memberships"."organization_id" = '168df4e8-cec4-11e4-ba32-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "168d732e-cec4-11e4-aead-705681abff85"], ["organization_id", "168df4e8-cec4-11e4-ba32-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.529797"], ["updated_at", "2015-03-20 05:43:51.529797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '168d732e-cec4-11e4-aead-705681abff85' LIMIT 1 [["organization_id", "168df4e8-cec4-11e4-ba32-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$WdsvFdHmqsEEQes.BcWMaeDvsWMdGnSf43i1D.raC5NdPT3zIAA.u"], ["created_at", "2015-03-20 05:43:51.536593"], ["updated_at", "2015-03-20 05:43:51.536593"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.540195"], ["updated_at", "2015-03-20 05:43:51.540195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '168f82ea-cec4-11e4-bc81-705681abff85' AND "clubhouse_memberships"."organization_id" = '16901084-cec4-11e4-a0b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "168f82ea-cec4-11e4-bc81-705681abff85"], ["organization_id", "16901084-cec4-11e4-a0b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.543877"], ["updated_at", "2015-03-20 05:43:51.543877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.554946"], ["updated_at", "2015-03-20 05:43:51.554946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.584763"], ["updated_at", "2015-03-20 05:43:51.584763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.594809"], ["updated_at", "2015-03-20 05:43:51.594809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.599070"], ["updated_at", "2015-03-20 05:43:51.599070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1699082e-cec4-11e4-affe-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.603951"], ["updated_at", "2015-03-20 05:43:51.603951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$.c8CFN1hiqWH2UWhPxAicOYCobMiLLlL9lEdBWqTYhOhWzTLcdDuW"], ["created_at", "2015-03-20 05:43:51.614173"], ["updated_at", "2015-03-20 05:43:51.614173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:51.622178"], ["user_id", "169b5908-cec4-11e4-b750-705681abff85"], ["created_at", "2015-03-20 05:43:51.623440"], ["updated_at", "2015-03-20 05:43:51.623440"], ["token", "AHR3qlOUkbkC3Gjg4eoXim9PXuBzrhax0G0iDvuTgOE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.627579"], ["updated_at", "2015-03-20 05:43:51.627579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '169b5908-cec4-11e4-b750-705681abff85' AND "clubhouse_memberships"."organization_id" = '169d5fbe-cec4-11e4-9d13-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "169b5908-cec4-11e4-b750-705681abff85"], ["organization_id", "169d5fbe-cec4-11e4-9d13-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.630965"], ["updated_at", "2015-03-20 05:43:51.630965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '169d5fbe-cec4-11e4-9d13-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "169d5fbe-cec4-11e4-9d13-705681abff85"], ["created_at", "2015-03-20 05:43:51.634274"], ["updated_at", "2015-03-20 05:43:51.634274"], ["token", "KfasrGzooJD8zVl947TiwObkamyI6GElpEiuAlbYbc8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$tj.TNi70Q38kLh.qRxtfR.HRHzABPP3S5lQpaf/z7uoKIt4BvNhPG"], ["created_at", "2015-03-20 05:43:51.639829"], ["updated_at", "2015-03-20 05:43:51.639829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.642825"], ["updated_at", "2015-03-20 05:43:51.642825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '169f3ece-cec4-11e4-a513-705681abff85' AND "clubhouse_memberships"."organization_id" = '169fb23c-cec4-11e4-9b0c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "169f3ece-cec4-11e4-a513-705681abff85"], ["organization_id", "169fb23c-cec4-11e4-9b0c-705681abff85"], ["created_at", "2015-03-20 05:43:51.645838"], ["updated_at", "2015-03-20 05:43:51.645838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 22:43:51 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 2ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$dWL6jGNPDaFlzlQyM.92QuukzAEXJlL786rBRSi1N..eiDAL3Qktq"], ["created_at", "2015-03-20 05:43:51.700548"], ["updated_at", "2015-03-20 05:43:51.700548"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:51.704115"], ["user_id", "16a8a7fc-cec4-11e4-b32c-705681abff85"], ["created_at", "2015-03-20 05:43:51.706340"], ["updated_at", "2015-03-20 05:43:51.706340"], ["token", "kvKjQu7d9wM1vhwvM2vKLoLccnClTJMSsVInpBhSfOk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.710879"], ["updated_at", "2015-03-20 05:43:51.710879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16a8a7fc-cec4-11e4-b32c-705681abff85' AND "clubhouse_memberships"."organization_id" = '16aa1844-cec4-11e4-9d5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16a8a7fc-cec4-11e4-b32c-705681abff85"], ["organization_id", "16aa1844-cec4-11e4-9d5b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.714701"], ["updated_at", "2015-03-20 05:43:51.714701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '16aa1844-cec4-11e4-9d5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "16aa1844-cec4-11e4-9d5b-705681abff85"], ["created_at", "2015-03-20 05:43:51.718235"], ["updated_at", "2015-03-20 05:43:51.718235"], ["token", "w6TH02vlqRbSEibqXfxwMnF-tGtcxxaoVYvzp0S_jR8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$FsogWHHiwa6VuxTDstsK2Ou850j.8cCKsCZKlKwXdFulCj243Nrpy"], ["created_at", "2015-03-20 05:43:51.722840"], ["updated_at", "2015-03-20 05:43:51.722840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.725900"], ["updated_at", "2015-03-20 05:43:51.725900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16abe91c-cec4-11e4-9444-705681abff85' AND "clubhouse_memberships"."organization_id" = '16ac66b2-cec4-11e4-8992-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "16abe91c-cec4-11e4-9444-705681abff85"], ["organization_id", "16ac66b2-cec4-11e4-8992-705681abff85"], ["created_at", "2015-03-20 05:43:51.729375"], ["updated_at", "2015-03-20 05:43:51.729375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/16aa1844-cec4-11e4-9d5b-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:43:51 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"16aa1844-cec4-11e4-9d5b-705681abff85", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:51.734895' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kvKjQu7d9wM1vhwvM2vKLoLccnClTJMSsVInpBhSfOk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:51.738388"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:51.740515"], ["id", "16a98848-cec4-11e4-8753-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "16aa1844-cec4-11e4-9d5b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16a8a7fc-cec4-11e4-b32c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16a8a7fc-cec4-11e4-b32c-705681abff85' LIMIT 1 [["organization_id", "16aa1844-cec4-11e4-9d5b-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "16aa1844-cec4-11e4-9d5b-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('16aa1844-cec4-11e4-9d5b-705681abff85') Completed 200 OK in 24ms (Views: 8.8ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$dtJhViXg3H3Lu5isd9LPveiuj7TgdOm0ic10dJoapoOKjzIXTIZ2u"], ["created_at", "2015-03-20 05:43:51.767650"], ["updated_at", "2015-03-20 05:43:51.767650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:51.769443"], ["user_id", "16b2c62e-cec4-11e4-92ae-705681abff85"], ["created_at", "2015-03-20 05:43:51.770263"], ["updated_at", "2015-03-20 05:43:51.770263"], ["token", "QS4mH_Vef7xIpsGzcoxTi8WsMMkJaS3BO43bnebI6o0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.774619"], ["updated_at", "2015-03-20 05:43:51.774619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16b2c62e-cec4-11e4-92ae-705681abff85' AND "clubhouse_memberships"."organization_id" = '16b3d3ac-cec4-11e4-84d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16b2c62e-cec4-11e4-92ae-705681abff85"], ["organization_id", "16b3d3ac-cec4-11e4-84d5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.778748"], ["updated_at", "2015-03-20 05:43:51.778748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '16b3d3ac-cec4-11e4-84d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "16b3d3ac-cec4-11e4-84d5-705681abff85"], ["created_at", "2015-03-20 05:43:51.782500"], ["updated_at", "2015-03-20 05:43:51.782500"], ["token", "64PTepyoZfH7r_IccsgKx958Ajp7aCVfUFr2sNQltQM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 22:43:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$YvGCpe/AJxl3VTrhdlQgfu6ChX39mqoHteqDzs50zaQAu3VD3kZZi"], ["created_at", "2015-03-20 05:43:51.795934"], ["updated_at", "2015-03-20 05:43:51.795934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:51.797758"], ["user_id", "16b7160c-cec4-11e4-9a24-705681abff85"], ["created_at", "2015-03-20 05:43:51.798735"], ["updated_at", "2015-03-20 05:43:51.798735"], ["token", "y3E_kLSSiRXlrm6ua9ZB7N1cIqYoJ9befDxgbYcms1g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.802704"], ["updated_at", "2015-03-20 05:43:51.802704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16b7160c-cec4-11e4-9a24-705681abff85' AND "clubhouse_memberships"."organization_id" = '16b82cfe-cec4-11e4-b306-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16b7160c-cec4-11e4-9a24-705681abff85"], ["organization_id", "16b82cfe-cec4-11e4-b306-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.807166"], ["updated_at", "2015-03-20 05:43:51.807166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '16b82cfe-cec4-11e4-b306-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "16b82cfe-cec4-11e4-b306-705681abff85"], ["created_at", "2015-03-20 05:43:51.811501"], ["updated_at", "2015-03-20 05:43:51.811501"], ["token", "L31A3198Jq8HNU_PUvHFriINg3a3nmTE48VZR_H2PxM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/16b82cfe-cec4-11e4-b306-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:43:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"16b82cfe-cec4-11e4-b306-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:51.816968' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "y3E_kLSSiRXlrm6ua9ZB7N1cIqYoJ9befDxgbYcms1g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:51.818428"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:51.819691"], ["id", "16b78b6e-cec4-11e4-a8cf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "16b82cfe-cec4-11e4-b306-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16b7160c-cec4-11e4-9a24-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16b82cfe-cec4-11e4-b306-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16b7160c-cec4-11e4-9a24-705681abff85' LIMIT 1 [["organization_id", "16b82cfe-cec4-11e4-b306-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '16b82cfe-cec4-11e4-b306-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "16b82cfe-cec4-11e4-b306-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.834380"], ["updated_at", "2015-03-20 05:43:51.834380"], ["token", "M41h7BNRld_yQRvlrcGr-BnvBnc-NChDUterOw-kA6Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 3ff1d92c-5cbb-4655-b17c-7db69a61fa5f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/16bd008a-cec4-11e4-aed0-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "16bd008a-cec4-11e4-aed0-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3ff1d92c-5cbb-4655-b17c-7db69a61fa5f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/16bd008a-cec4-11e4-aed0-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [3ff1d92c-5cbb-4655-b17c-7db69a61fa5f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16b82cfe-cec4-11e4-b306-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [3ff1d92c-5cbb-4655-b17c-7db69a61fa5f] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [3ff1d92c-5cbb-4655-b17c-7db69a61fa5f] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [3ff1d92c-5cbb-4655-b17c-7db69a61fa5f] Sent mail to email@example.com (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [3ff1d92c-5cbb-4655-b17c-7db69a61fa5f] Date: Thu, 19 Mar 2015 22:43:51 -0700 From: from@example.com To: email@example.com Message-ID: <550bb397d323a_11253ffa06065be09737a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/M41h7BNRld_yQRvlrcGr-BnvBnc-NChDUterOw-kA6Y?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [3ff1d92c-5cbb-4655-b17c-7db69a61fa5f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.89ms Completed 201 Created in 51ms (Views: 1.2ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$dlMbdWsd3JisHkqP4Y58qux1vSj6/qzMDy9KXLO2exls5W/gY26gi"], ["created_at", "2015-03-20 05:43:51.874547"], ["updated_at", "2015-03-20 05:43:51.874547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:51.876395"], ["user_id", "16c310d8-cec4-11e4-8b95-705681abff85"], ["created_at", "2015-03-20 05:43:51.877165"], ["updated_at", "2015-03-20 05:43:51.877165"], ["token", "YYD9dgn9aqTqwq-YJbdgjbxNhVMb2N0W8Q9zHuI8RNI"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.881365"], ["updated_at", "2015-03-20 05:43:51.881365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16c310d8-cec4-11e4-8b95-705681abff85' AND "clubhouse_memberships"."organization_id" = '16c426b2-cec4-11e4-a672-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16c310d8-cec4-11e4-8b95-705681abff85"], ["organization_id", "16c426b2-cec4-11e4-a672-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.885369"], ["updated_at", "2015-03-20 05:43:51.885369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '16c426b2-cec4-11e4-a672-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "16c426b2-cec4-11e4-a672-705681abff85"], ["created_at", "2015-03-20 05:43:51.889263"], ["updated_at", "2015-03-20 05:43:51.889263"], ["token", "8GJZZyWs74X2H_JO21H1gK6YPIyvl3Zu-71eNx2sTzI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/16c426b2-cec4-11e4-a672-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:43:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"16c426b2-cec4-11e4-a672-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:51.895464' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YYD9dgn9aqTqwq-YJbdgjbxNhVMb2N0W8Q9zHuI8RNI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:51.896913"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:51.897860"], ["id", "16c38c16-cec4-11e4-bac8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "16c426b2-cec4-11e4-a672-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16c310d8-cec4-11e4-8b95-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16c426b2-cec4-11e4-a672-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16c310d8-cec4-11e4-8b95-705681abff85' LIMIT 1 [["organization_id", "16c426b2-cec4-11e4-a672-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '16c426b2-cec4-11e4-a672-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "16c426b2-cec4-11e4-a672-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.906180"], ["updated_at", "2015-03-20 05:43:51.906180"], ["token", "39eFhSmty8_rBuT9gtMMg5MlIQRn7_A-sZqYAEsT_Q8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 80839ab7-945b-460b-81a0-23a6ab9e0d14) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/16c7f396-cec4-11e4-83c0-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "16c7f396-cec4-11e4-83c0-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [80839ab7-945b-460b-81a0-23a6ab9e0d14] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/16c7f396-cec4-11e4-83c0-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [80839ab7-945b-460b-81a0-23a6ab9e0d14] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16c426b2-cec4-11e4-a672-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [80839ab7-945b-460b-81a0-23a6ab9e0d14] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [80839ab7-945b-460b-81a0-23a6ab9e0d14] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [80839ab7-945b-460b-81a0-23a6ab9e0d14] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [80839ab7-945b-460b-81a0-23a6ab9e0d14] Date: Thu, 19 Mar 2015 22:43:51 -0700 From: from@example.com To: email@example.com Message-ID: <550bb397df1eb_11253ffa06065be09741@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/39eFhSmty8_rBuT9gtMMg5MlIQRn7_A-sZqYAEsT_Q8?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [80839ab7-945b-460b-81a0-23a6ab9e0d14] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.14ms Completed 201 Created in 21ms (Views: 0.7ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$Evf/XsPnbK0lvkHG/cD7/ucRXXm7mcGH0sxde1m0wB90Sb5GzTOlO"], ["created_at", "2015-03-20 05:43:51.922323"], ["updated_at", "2015-03-20 05:43:51.922323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:51.924417"], ["user_id", "16ca6b80-cec4-11e4-b196-705681abff85"], ["created_at", "2015-03-20 05:43:51.925246"], ["updated_at", "2015-03-20 05:43:51.925246"], ["token", "nkuJFgYmFqlftINJPT8gF1MPXwl75c_0kR3ya21SkS4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.928892"], ["updated_at", "2015-03-20 05:43:51.928892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16ca6b80-cec4-11e4-b196-705681abff85' AND "clubhouse_memberships"."organization_id" = '16cb5a5e-cec4-11e4-8888-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16ca6b80-cec4-11e4-b196-705681abff85"], ["organization_id", "16cb5a5e-cec4-11e4-8888-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.932171"], ["updated_at", "2015-03-20 05:43:51.932171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '16cb5a5e-cec4-11e4-8888-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "16cb5a5e-cec4-11e4-8888-705681abff85"], ["created_at", "2015-03-20 05:43:51.935665"], ["updated_at", "2015-03-20 05:43:51.935665"], ["token", "MjP-dOqemkI6IMxfITsIRvN_6tqY0o6eNUCjgGTJdeI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/16cb5a5e-cec4-11e4-8888-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:43:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"16cb5a5e-cec4-11e4-8888-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:51.941074' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nkuJFgYmFqlftINJPT8gF1MPXwl75c_0kR3ya21SkS4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:51.942652"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:51.943718"], ["id", "16cad584-cec4-11e4-9632-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "16cb5a5e-cec4-11e4-8888-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16ca6b80-cec4-11e4-b196-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16cb5a5e-cec4-11e4-8888-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16ca6b80-cec4-11e4-b196-705681abff85' LIMIT 1 [["organization_id", "16cb5a5e-cec4-11e4-8888-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '16cb5a5e-cec4-11e4-8888-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$SqcTYEgKJnGHNqM0F7eFxuaD8DamLN12GozgYw/F4llQYpuXA2Ngu"], ["created_at", "2015-03-20 05:43:51.961533"], ["updated_at", "2015-03-20 05:43:51.961533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:51.963239"], ["user_id", "16d05a36-cec4-11e4-bf86-705681abff85"], ["created_at", "2015-03-20 05:43:51.964078"], ["updated_at", "2015-03-20 05:43:51.964078"], ["token", "Yqw2Y5vvM20HnHoVoj51eAMVEkdTFiOdI-ocv0IAvOM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.967629"], ["updated_at", "2015-03-20 05:43:51.967629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16d05a36-cec4-11e4-bf86-705681abff85' AND "clubhouse_memberships"."organization_id" = '16d14540-cec4-11e4-9a21-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16d05a36-cec4-11e4-bf86-705681abff85"], ["organization_id", "16d14540-cec4-11e4-9a21-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.971069"], ["updated_at", "2015-03-20 05:43:51.971069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '16d14540-cec4-11e4-9a21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "16d14540-cec4-11e4-9a21-705681abff85"], ["created_at", "2015-03-20 05:43:51.975299"], ["updated_at", "2015-03-20 05:43:51.975299"], ["token", "QHAgAe1-KIExf9_bShhxesYl9Q5G9JYBJqlXwtPw1us"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:43:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$VbTN0dtGUgJCP3DmoRL4J.fzmnHLquPqVZ9WKCEblykRIFL807B6a"], ["created_at", "2015-03-20 05:43:51.985921"], ["updated_at", "2015-03-20 05:43:51.985921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:51.987563"], ["user_id", "16d4122a-cec4-11e4-b7b2-705681abff85"], ["created_at", "2015-03-20 05:43:51.988366"], ["updated_at", "2015-03-20 05:43:51.988366"], ["token", "M2x-1B-NFdF3olbYjyWncSg52ZOArYW5O-euAcVM9Gk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:51.992852"], ["updated_at", "2015-03-20 05:43:51.992852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16d4122a-cec4-11e4-b7b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '16d51ecc-cec4-11e4-85d9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16d4122a-cec4-11e4-b7b2-705681abff85"], ["organization_id", "16d51ecc-cec4-11e4-85d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:51.996385"], ["updated_at", "2015-03-20 05:43:51.996385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '16d51ecc-cec4-11e4-85d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "16d51ecc-cec4-11e4-85d9-705681abff85"], ["created_at", "2015-03-20 05:43:52.000120"], ["updated_at", "2015-03-20 05:43:52.000120"], ["token", "ey-PqB2mN3ePjy6POQKfwL4jeXot9OL7RbjJf6Oxw6I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.005069' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "M2x-1B-NFdF3olbYjyWncSg52ZOArYW5O-euAcVM9Gk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.006725"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.007825"], ["id", "16d47cba-cec4-11e4-acd5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16d4122a-cec4-11e4-b7b2-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16d51ecc-cec4-11e4-85d9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16d4122a-cec4-11e4-b7b2-705681abff85' LIMIT 1 [["organization_id", "16d51ecc-cec4-11e4-85d9-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '16d51ecc-cec4-11e4-85d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "16d51ecc-cec4-11e4-85d9-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.015323"], ["updated_at", "2015-03-20 05:43:52.015323"], ["token", "Hl_6zFKBtfRAe4USDm4_7tYmTGgy00LcKMGjkUHiPy8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 48e67685-ccc7-4319-9e6b-a942a1b9c981) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/16d89246-cec4-11e4-aa10-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "16d89246-cec4-11e4-aa10-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [48e67685-ccc7-4319-9e6b-a942a1b9c981] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/16d89246-cec4-11e4-aa10-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [48e67685-ccc7-4319-9e6b-a942a1b9c981] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16d51ecc-cec4-11e4-85d9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [48e67685-ccc7-4319-9e6b-a942a1b9c981] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [48e67685-ccc7-4319-9e6b-a942a1b9c981] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [48e67685-ccc7-4319-9e6b-a942a1b9c981] Sent mail to email@example.com (2.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [48e67685-ccc7-4319-9e6b-a942a1b9c981] Date: Thu, 19 Mar 2015 22:43:52 -0700 From: from@example.com To: email@example.com Message-ID: <550bb3985bbf_11253ffa06065be09751c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Hl_6zFKBtfRAe4USDm4_7tYmTGgy00LcKMGjkUHiPy8?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [48e67685-ccc7-4319-9e6b-a942a1b9c981] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.54ms Completed 201 Created in 21ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$p3r.vjvhxeUw2ZzOz3TjwOsPxw6t/jtcspBf4HWmy5Ft9DVpbS./S"], ["created_at", "2015-03-20 05:43:52.032132"], ["updated_at", "2015-03-20 05:43:52.032132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.033819"], ["user_id", "16db1da4-cec4-11e4-b085-705681abff85"], ["created_at", "2015-03-20 05:43:52.034778"], ["updated_at", "2015-03-20 05:43:52.034778"], ["token", "QkiJrTGo_tzW178HEAploMl_TU4DJlJ9c223Fo7s66w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.038429"], ["updated_at", "2015-03-20 05:43:52.038429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16db1da4-cec4-11e4-b085-705681abff85' AND "clubhouse_memberships"."organization_id" = '16dc142a-cec4-11e4-ab22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16db1da4-cec4-11e4-b085-705681abff85"], ["organization_id", "16dc142a-cec4-11e4-ab22-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.042235"], ["updated_at", "2015-03-20 05:43:52.042235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '16dc142a-cec4-11e4-ab22-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "16dc142a-cec4-11e4-ab22-705681abff85"], ["created_at", "2015-03-20 05:43:52.045693"], ["updated_at", "2015-03-20 05:43:52.045693"], ["token", "xsnvHpveOjXms4gmGfee07sfm6ctde1rO4Le_cbA32k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.050365' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QkiJrTGo_tzW178HEAploMl_TU4DJlJ9c223Fo7s66w"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.052081"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.054072"], ["id", "16db8fc8-cec4-11e4-8eb5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16db1da4-cec4-11e4-b085-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16dc142a-cec4-11e4-ab22-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16db1da4-cec4-11e4-b085-705681abff85' LIMIT 1 [["organization_id", "16dc142a-cec4-11e4-ab22-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '16dc142a-cec4-11e4-ab22-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "16dc142a-cec4-11e4-ab22-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.063875"], ["updated_at", "2015-03-20 05:43:52.063875"], ["token", "Nig9rYyaEp-ZZaAK9t4g1KOXLzCijPNNlVfM9tW72os"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4e7f10e0-658a-4536-a067-3e52af17c1dd) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/16e00512-cec4-11e4-a373-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "16e00512-cec4-11e4-a373-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4e7f10e0-658a-4536-a067-3e52af17c1dd] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/16e00512-cec4-11e4-a373-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [4e7f10e0-658a-4536-a067-3e52af17c1dd] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16dc142a-cec4-11e4-ab22-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4e7f10e0-658a-4536-a067-3e52af17c1dd] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4e7f10e0-658a-4536-a067-3e52af17c1dd] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [4e7f10e0-658a-4536-a067-3e52af17c1dd] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [4e7f10e0-658a-4536-a067-3e52af17c1dd] Date: Thu, 19 Mar 2015 22:43:52 -0700 From: from@example.com To: email@example.com Message-ID: <550bb398117d5_11253ffa06065be0976fa@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Nig9rYyaEp-ZZaAK9t4g1KOXLzCijPNNlVfM9tW72os?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4e7f10e0-658a-4536-a067-3e52af17c1dd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.41ms Completed 201 Created in 24ms (Views: 1.1ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$7oiIWzUY1wZsgDLvgPJC6.a8rWIhgwRzbe3gW3ByqhLpnJrcIR1z2"], ["created_at", "2015-03-20 05:43:52.080166"], ["updated_at", "2015-03-20 05:43:52.080166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.081710"], ["user_id", "16e2711c-cec4-11e4-9760-705681abff85"], ["created_at", "2015-03-20 05:43:52.082469"], ["updated_at", "2015-03-20 05:43:52.082469"], ["token", "Fv8_L6vOC9o-SlhnPmwZYcz3Od9xyScgEjHjBmOTc9Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.085747"], ["updated_at", "2015-03-20 05:43:52.085747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16e2711c-cec4-11e4-9760-705681abff85' AND "clubhouse_memberships"."organization_id" = '16e3489e-cec4-11e4-a9cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16e2711c-cec4-11e4-9760-705681abff85"], ["organization_id", "16e3489e-cec4-11e4-a9cf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.089211"], ["updated_at", "2015-03-20 05:43:52.089211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '16e3489e-cec4-11e4-a9cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "16e3489e-cec4-11e4-a9cf-705681abff85"], ["created_at", "2015-03-20 05:43:52.092796"], ["updated_at", "2015-03-20 05:43:52.092796"], ["token", "StXdXCUEUZFG_Cru0L3HakZCOszvSjSGsyfyKasl_4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.098044' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Fv8_L6vOC9o-SlhnPmwZYcz3Od9xyScgEjHjBmOTc9Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.099467"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.100510"], ["id", "16e2d0a8-cec4-11e4-ac0f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16e2711c-cec4-11e4-9760-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16e3489e-cec4-11e4-a9cf-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16e2711c-cec4-11e4-9760-705681abff85' LIMIT 1 [["organization_id", "16e3489e-cec4-11e4-a9cf-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '16e3489e-cec4-11e4-a9cf-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$RsgHIArsemkf.MjFZy2kVOBuWtnkSPr0jGNu6y53/5/NueV222J6O"], ["created_at", "2015-03-20 05:43:52.115869"], ["updated_at", "2015-03-20 05:43:52.115869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.117438"], ["user_id", "16e7e462-cec4-11e4-ad0e-705681abff85"], ["created_at", "2015-03-20 05:43:52.118337"], ["updated_at", "2015-03-20 05:43:52.118337"], ["token", "-xe-YmNghWuDoW4Ngb6EPkglPg6PDy09_imcd-_TlFs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.121687"], ["updated_at", "2015-03-20 05:43:52.121687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16e7e462-cec4-11e4-ad0e-705681abff85' AND "clubhouse_memberships"."organization_id" = '16e8c6d4-cec4-11e4-9c26-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16e7e462-cec4-11e4-ad0e-705681abff85"], ["organization_id", "16e8c6d4-cec4-11e4-9c26-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.125449"], ["updated_at", "2015-03-20 05:43:52.125449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '16e8c6d4-cec4-11e4-9c26-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "16e8c6d4-cec4-11e4-9c26-705681abff85"], ["created_at", "2015-03-20 05:43:52.128855"], ["updated_at", "2015-03-20 05:43:52.128855"], ["token", "3VIl1J85xnaJxEnxWdDpEC1qEW7kGJrgDf7GEdFYPnI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$2DtSgrt4eTrv3hZ1oFvRiOo9phEV5DD8ExQ9d0tOjamlzwDsKOR.G"], ["created_at", "2015-03-20 05:43:52.139412"], ["updated_at", "2015-03-20 05:43:52.139412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.141127"], ["user_id", "16eb8054-cec4-11e4-aacd-705681abff85"], ["created_at", "2015-03-20 05:43:52.141940"], ["updated_at", "2015-03-20 05:43:52.141940"], ["token", "kCBPm6SxaEp7Sq4FFcuXSkEInxNKp6TSgX6u6qHRf30"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.145515"], ["updated_at", "2015-03-20 05:43:52.145515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16eb8054-cec4-11e4-aacd-705681abff85' AND "clubhouse_memberships"."organization_id" = '16ec697e-cec4-11e4-823d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16eb8054-cec4-11e4-aacd-705681abff85"], ["organization_id", "16ec697e-cec4-11e4-823d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.149350"], ["updated_at", "2015-03-20 05:43:52.149350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '16ec697e-cec4-11e4-823d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "16ec697e-cec4-11e4-823d-705681abff85"], ["created_at", "2015-03-20 05:43:52.152798"], ["updated_at", "2015-03-20 05:43:52.152798"], ["token", "8fkVKwVKhHxus82DCfqoMWugrdqHkxWQQgn_idfOBP4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/16ed8c64-cec4-11e4-b71b-705681abff85" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"16ed8c64-cec4-11e4-b71b-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.158403' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kCBPm6SxaEp7Sq4FFcuXSkEInxNKp6TSgX6u6qHRf30"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.159865"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.160856"], ["id", "16ebe71a-cec4-11e4-993d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "16ed8c64-cec4-11e4-b71b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16eb8054-cec4-11e4-aacd-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16ec697e-cec4-11e4-823d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16eb8054-cec4-11e4-aacd-705681abff85' LIMIT 1 [["organization_id", "16ec697e-cec4-11e4-823d-705681abff85"]] Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$BE7UQrnFumAhb08CyE1KAOCjy7B7flB.urKODBZY2xeC5xuxwtnTi"], ["created_at", "2015-03-20 05:43:52.173600"], ["updated_at", "2015-03-20 05:43:52.173600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.175250"], ["user_id", "16f0b574-cec4-11e4-a073-705681abff85"], ["created_at", "2015-03-20 05:43:52.176087"], ["updated_at", "2015-03-20 05:43:52.176087"], ["token", "WKwc7C7IgBUxjuMcAs7cnZXSNsHPXHBiRfv8HrGa8uo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.179583"], ["updated_at", "2015-03-20 05:43:52.179583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16f0b574-cec4-11e4-a073-705681abff85' AND "clubhouse_memberships"."organization_id" = '16f19ad4-cec4-11e4-8cfc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16f0b574-cec4-11e4-a073-705681abff85"], ["organization_id", "16f19ad4-cec4-11e4-8cfc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.182802"], ["updated_at", "2015-03-20 05:43:52.182802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '16f19ad4-cec4-11e4-8cfc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "16f19ad4-cec4-11e4-8cfc-705681abff85"], ["created_at", "2015-03-20 05:43:52.186145"], ["updated_at", "2015-03-20 05:43:52.186145"], ["token", "9XMNprmthnzB0iFkVSd_nrQILIs_2Hsik5f7imaGNzM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$SjQgukK1lK/eR3qWde/o..PHergD5dbwsiRs36k82QbVHe1XDvJGO"], ["created_at", "2015-03-20 05:43:52.197486"], ["updated_at", "2015-03-20 05:43:52.197486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.199176"], ["user_id", "16f45abc-cec4-11e4-86f9-705681abff85"], ["created_at", "2015-03-20 05:43:52.199999"], ["updated_at", "2015-03-20 05:43:52.199999"], ["token", "a2xow5ioF6AC-qBUjLgdnQ2o6zLwkNTiI9t9s6WNnR4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.203465"], ["updated_at", "2015-03-20 05:43:52.203465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16f45abc-cec4-11e4-86f9-705681abff85' AND "clubhouse_memberships"."organization_id" = '16f54698-cec4-11e4-a6c6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16f45abc-cec4-11e4-86f9-705681abff85"], ["organization_id", "16f54698-cec4-11e4-a6c6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.207581"], ["updated_at", "2015-03-20 05:43:52.207581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '16f54698-cec4-11e4-a6c6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "16f54698-cec4-11e4-a6c6-705681abff85"], ["created_at", "2015-03-20 05:43:52.211697"], ["updated_at", "2015-03-20 05:43:52.211697"], ["token", "RbnMxN_lc9xjb6fREE9DOlJL-uoLZgvHTNFyV0VPG98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/16f687b0-cec4-11e4-93c6-705681abff85" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"16f687b0-cec4-11e4-93c6-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.217039' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "a2xow5ioF6AC-qBUjLgdnQ2o6zLwkNTiI9t9s6WNnR4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.218789"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.220685"], ["id", "16f4c22c-cec4-11e4-a20d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "16f687b0-cec4-11e4-93c6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16f45abc-cec4-11e4-86f9-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16f54698-cec4-11e4-a6c6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16f45abc-cec4-11e4-86f9-705681abff85' LIMIT 1 [["organization_id", "16f54698-cec4-11e4-a6c6-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."id" != '16f687b0-cec4-11e4-93c6-705681abff85' AND "clubhouse_invitations"."organization_id" = '16f54698-cec4-11e4-a6c6-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:43:52.229674"], ["id", "16f687b0-cec4-11e4-93c6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$wQctGjmuk.mbAyTX8FL3jOTkpJC73P2rI/n8s4wq2gy55iYYxlqlm"], ["created_at", "2015-03-20 05:43:52.238342"], ["updated_at", "2015-03-20 05:43:52.238342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.240248"], ["user_id", "16fa95bc-cec4-11e4-ada0-705681abff85"], ["created_at", "2015-03-20 05:43:52.241491"], ["updated_at", "2015-03-20 05:43:52.241491"], ["token", "i-pz65iyaqn1jv01C_D7c-vO3azZfJD8oespjkQhyj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.245242"], ["updated_at", "2015-03-20 05:43:52.245242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16fa95bc-cec4-11e4-ada0-705681abff85' AND "clubhouse_memberships"."organization_id" = '16fba060-cec4-11e4-b5ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16fa95bc-cec4-11e4-ada0-705681abff85"], ["organization_id", "16fba060-cec4-11e4-b5ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.248553"], ["updated_at", "2015-03-20 05:43:52.248553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '16fba060-cec4-11e4-b5ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "16fba060-cec4-11e4-b5ba-705681abff85"], ["created_at", "2015-03-20 05:43:52.251982"], ["updated_at", "2015-03-20 05:43:52.251982"], ["token", "b3X4xeYWquPB2NxfJC-LS2oqaPCo1JZCYhKWsspCYBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$SAzta76AqWyBvk89DzR2HO/f5llgB134ase0ckYDcY3Q79FKAtaEa"], ["created_at", "2015-03-20 05:43:52.263131"], ["updated_at", "2015-03-20 05:43:52.263131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.264802"], ["user_id", "16fe5ef4-cec4-11e4-b3ec-705681abff85"], ["created_at", "2015-03-20 05:43:52.265628"], ["updated_at", "2015-03-20 05:43:52.265628"], ["token", "Sa8_cQaM0rf6qNQhgFte1EL8UR4PNWShAxCRXsEh3Lc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.269548"], ["updated_at", "2015-03-20 05:43:52.269548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16fe5ef4-cec4-11e4-b3ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '16ff5976-cec4-11e4-8b99-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16fe5ef4-cec4-11e4-b3ec-705681abff85"], ["organization_id", "16ff5976-cec4-11e4-8b99-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.273361"], ["updated_at", "2015-03-20 05:43:52.273361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '16ff5976-cec4-11e4-8b99-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "16ff5976-cec4-11e4-8b99-705681abff85"], ["created_at", "2015-03-20 05:43:52.277008"], ["updated_at", "2015-03-20 05:43:52.277008"], ["token", "8np_iunBirAcUfFRxct32vxzP5l9fFJvwRVqBmsXeCw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/17008058-cec4-11e4-a218-705681abff85" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"17008058-cec4-11e4-a218-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.282655' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Sa8_cQaM0rf6qNQhgFte1EL8UR4PNWShAxCRXsEh3Lc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.284385"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.286376"], ["id", "16fec52e-cec4-11e4-b98c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "17008058-cec4-11e4-a218-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "16fe5ef4-cec4-11e4-b3ec-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "16ff5976-cec4-11e4-8b99-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '16fe5ef4-cec4-11e4-b3ec-705681abff85' LIMIT 1 [["organization_id", "16ff5976-cec4-11e4-8b99-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "17008058-cec4-11e4-a218-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$62aTm9BqHJmn8FMKsJhu6u1J.SjIeAv8B2dlc24C7RP64s6onIVH6"], ["created_at", "2015-03-20 05:43:52.298882"], ["updated_at", "2015-03-20 05:43:52.298882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.300404"], ["user_id", "1703d140-cec4-11e4-a5e3-705681abff85"], ["created_at", "2015-03-20 05:43:52.301198"], ["updated_at", "2015-03-20 05:43:52.301198"], ["token", "oHdsIggJQDea8Cv_i-3IrtF7jFvm8OX-emAzGXUFpTc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.304532"], ["updated_at", "2015-03-20 05:43:52.304532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1703d140-cec4-11e4-a5e3-705681abff85' AND "clubhouse_memberships"."organization_id" = '1704aa7a-cec4-11e4-942f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1703d140-cec4-11e4-a5e3-705681abff85"], ["organization_id", "1704aa7a-cec4-11e4-942f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.307716"], ["updated_at", "2015-03-20 05:43:52.307716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '1704aa7a-cec4-11e4-942f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "1704aa7a-cec4-11e4-942f-705681abff85"], ["created_at", "2015-03-20 05:43:52.310953"], ["updated_at", "2015-03-20 05:43:52.310953"], ["token", "CUF3i1oGMticRbfgCVCltcYy6F8K7VbFlP7kUiWoy4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$gUbm4KWx/rgX6g0uUOFH5uG5TRUCIXKrtEd6ZaGGqhK.M5hAYExJu"], ["created_at", "2015-03-20 05:43:52.315219"], ["updated_at", "2015-03-20 05:43:52.315219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.318119"], ["updated_at", "2015-03-20 05:43:52.318119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17064c7c-cec4-11e4-8b8f-705681abff85' AND "clubhouse_memberships"."organization_id" = '1706bcca-cec4-11e4-a66c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "17064c7c-cec4-11e4-8b8f-705681abff85"], ["organization_id", "1706bcca-cec4-11e4-a66c-705681abff85"], ["created_at", "2015-03-20 05:43:52.321313"], ["updated_at", "2015-03-20 05:43:52.321313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$ORPHPVEUMYPC4jszTFhHEeVNxV239sPVv.2Hft04/GQc699sLuNUq"], ["created_at", "2015-03-20 05:43:52.332181"], ["updated_at", "2015-03-20 05:43:52.332181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.334075"], ["user_id", "1708e7fc-cec4-11e4-95e8-705681abff85"], ["created_at", "2015-03-20 05:43:52.338623"], ["updated_at", "2015-03-20 05:43:52.338623"], ["token", "XSfcbWAKRtVKrdUyMcXI5egubXhvzBQlFjwlEGh4oe8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.346350"], ["updated_at", "2015-03-20 05:43:52.346350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1708e7fc-cec4-11e4-95e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '170b2846-cec4-11e4-bc5c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1708e7fc-cec4-11e4-95e8-705681abff85"], ["organization_id", "170b2846-cec4-11e4-bc5c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.352858"], ["updated_at", "2015-03-20 05:43:52.352858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '170b2846-cec4-11e4-bc5c-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "170b2846-cec4-11e4-bc5c-705681abff85"], ["created_at", "2015-03-20 05:43:52.359810"], ["updated_at", "2015-03-20 05:43:52.359810"], ["token", "M519Nps109fZLZ6j0cF98rcJ2zddaZA89x2RxgpmJ4o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$ogPly/IL5i7ZJF0iEPkklOTJ6HQWW4quZZEBG6SAJKel78f39CRKm"], ["created_at", "2015-03-20 05:43:52.367800"], ["updated_at", "2015-03-20 05:43:52.367800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.373432"], ["updated_at", "2015-03-20 05:43:52.373432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '170e62c2-cec4-11e4-b807-705681abff85' AND "clubhouse_memberships"."organization_id" = '170f44b2-cec4-11e4-be7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "170e62c2-cec4-11e4-b807-705681abff85"], ["organization_id", "170f44b2-cec4-11e4-be7d-705681abff85"], ["created_at", "2015-03-20 05:43:52.378997"], ["updated_at", "2015-03-20 05:43:52.378997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.384309' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XSfcbWAKRtVKrdUyMcXI5egubXhvzBQlFjwlEGh4oe8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.385702"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.386733"], ["id", "170a17d0-cec4-11e4-a698-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1708e7fc-cec4-11e4-95e8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1708e7fc-cec4-11e4-95e8-705681abff85' LIMIT 1 [["organization_id", "170b2846-cec4-11e4-bc5c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "170b2846-cec4-11e4-bc5c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('170b2846-cec4-11e4-bc5c-705681abff85') Completed 200 OK in 10ms (Views: 2.2ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$Rbrr6pTX8FioZ4cw0n4kg.6wc7lu..r.TZB6CxOVBZROQxJBCqVia"], ["created_at", "2015-03-20 05:43:52.402746"], ["updated_at", "2015-03-20 05:43:52.402746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$4yrH2S48jm1RW9gXDlgnUe.5MoI/puWYfLm6QPzHQfwJNJyvGPDuq"], ["created_at", "2015-03-20 05:43:52.407449"], ["updated_at", "2015-03-20 05:43:52.407449"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.409321"], ["user_id", "1713b998-cec4-11e4-a4e7-705681abff85"], ["created_at", "2015-03-20 05:43:52.410162"], ["updated_at", "2015-03-20 05:43:52.410162"], ["token", "hJyxOO9-mDk-2JemQjSZmVJR375jduzbXuEeIHqvpdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.413579"], ["updated_at", "2015-03-20 05:43:52.413579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1713b998-cec4-11e4-a4e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '1715503c-cec4-11e4-9eec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1713b998-cec4-11e4-a4e7-705681abff85"], ["organization_id", "1715503c-cec4-11e4-9eec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.416781"], ["updated_at", "2015-03-20 05:43:52.416781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17146244-cec4-11e4-a1be-705681abff85' AND "clubhouse_memberships"."organization_id" = '1715503c-cec4-11e4-9eec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "17146244-cec4-11e4-a1be-705681abff85"], ["organization_id", "1715503c-cec4-11e4-9eec-705681abff85"], ["created_at", "2015-03-20 05:43:52.419780"], ["updated_at", "2015-03-20 05:43:52.419780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$l6VaEUP3RG/vaCzMWembd.iGpl0CJ.3jAaJDLlO49m5XymsGL2uWa"], ["created_at", "2015-03-20 05:43:52.435938"], ["updated_at", "2015-03-20 05:43:52.435938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$kG3ak.p58slSGC4cOY3M8ubFZff1yF7.dte95pzMaAwwatb2mnsua"], ["created_at", "2015-03-20 05:43:52.440145"], ["updated_at", "2015-03-20 05:43:52.440145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.441624"], ["user_id", "1718bdee-cec4-11e4-9fc5-705681abff85"], ["created_at", "2015-03-20 05:43:52.442413"], ["updated_at", "2015-03-20 05:43:52.442413"], ["token", "PmlbRj6t2SZ70C69qYybd-Q0HDYP35YtGrGyF7mLhd8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.446195"], ["updated_at", "2015-03-20 05:43:52.446195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1718bdee-cec4-11e4-9fc5-705681abff85' AND "clubhouse_memberships"."organization_id" = '171a495c-cec4-11e4-9fb3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1718bdee-cec4-11e4-9fc5-705681abff85"], ["organization_id", "171a495c-cec4-11e4-9fb3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.449510"], ["updated_at", "2015-03-20 05:43:52.449510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17195c72-cec4-11e4-b88d-705681abff85' AND "clubhouse_memberships"."organization_id" = '171a495c-cec4-11e4-9fb3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "17195c72-cec4-11e4-b88d-705681abff85"], ["organization_id", "171a495c-cec4-11e4-9fb3-705681abff85"], ["created_at", "2015-03-20 05:43:52.452604"], ["updated_at", "2015-03-20 05:43:52.452604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/171a495c-cec4-11e4-9fb3-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"171a495c-cec4-11e4-9fb3-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.458921' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PmlbRj6t2SZ70C69qYybd-Q0HDYP35YtGrGyF7mLhd8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.460817"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.462142"], ["id", "1719bece-cec4-11e4-9fcd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "171a495c-cec4-11e4-9fb3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1718bdee-cec4-11e4-9fc5-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1718bdee-cec4-11e4-9fc5-705681abff85' LIMIT 1 [["organization_id", "171a495c-cec4-11e4-9fb3-705681abff85"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "171a495c-cec4-11e4-9fb3-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('1718bdee-cec4-11e4-9fc5-705681abff85', '17195c72-cec4-11e4-b88d-705681abff85') Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('171a495c-cec4-11e4-9fb3-705681abff85') Completed 200 OK in 17ms (Views: 7.6ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$ZtiT2wsv5Bx5W1kZtUFPH.7a6cBPRYOk2FCiW9rxy8buTIVAqpXTm"], ["created_at", "2015-03-20 05:43:52.482489"], ["updated_at", "2015-03-20 05:43:52.482489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$d1GTvRo8ViSSuqAQGRWBDuJqxVLKEHDyPcfytGmSEOfO4BytFWu/u"], ["created_at", "2015-03-20 05:43:52.486752"], ["updated_at", "2015-03-20 05:43:52.486752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.488549"], ["user_id", "171fd50c-cec4-11e4-ad68-705681abff85"], ["created_at", "2015-03-20 05:43:52.489358"], ["updated_at", "2015-03-20 05:43:52.489358"], ["token", "VXNPyk3lzYYMTns7fjggo7Q4LkiN_dq2A7uKeO1Jjhg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.492814"], ["updated_at", "2015-03-20 05:43:52.492814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '171fd50c-cec4-11e4-ad68-705681abff85' AND "clubhouse_memberships"."organization_id" = '17216d36-cec4-11e4-8b2b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "171fd50c-cec4-11e4-ad68-705681abff85"], ["organization_id", "17216d36-cec4-11e4-8b2b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.496476"], ["updated_at", "2015-03-20 05:43:52.496476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1720822c-cec4-11e4-8d73-705681abff85' AND "clubhouse_memberships"."organization_id" = '17216d36-cec4-11e4-8b2b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1720822c-cec4-11e4-8d73-705681abff85"], ["organization_id", "17216d36-cec4-11e4-8b2b-705681abff85"], ["created_at", "2015-03-20 05:43:52.499392"], ["updated_at", "2015-03-20 05:43:52.499392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$luDC8PQGMMntS3Qcl3d/teKhmQi.HamtLC5ldM/QHZ6l8hSXFNWFy"], ["created_at", "2015-03-20 05:43:52.503632"], ["updated_at", "2015-03-20 05:43:52.503632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.505099"], ["user_id", "17230dda-cec4-11e4-9b61-705681abff85"], ["created_at", "2015-03-20 05:43:52.505847"], ["updated_at", "2015-03-20 05:43:52.505847"], ["token", "haSp8bUdkBIwBfNMz9uN1n79Sk76RZ4Lty0GoDA0tx8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '17216d36-cec4-11e4-8b2b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "17216d36-cec4-11e4-8b2b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.509419"], ["updated_at", "2015-03-20 05:43:52.509419"], ["token", "x7REeUjxezvvtIpWsDSLTlAlPwDWgTmtHDSGAbgcR8U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$wdLCPK4chdtMxtWcsBpZMeW7rqrr4.hKZAoL5FodoTlHLuBNd/0JS"], ["created_at", "2015-03-20 05:43:52.520435"], ["updated_at", "2015-03-20 05:43:52.520435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$yTfJARMtFrVKEQiLoji57uX9HkusisxLMo0u1gAmVOr0Is/exS8kW"], ["created_at", "2015-03-20 05:43:52.525712"], ["updated_at", "2015-03-20 05:43:52.525712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.527964"], ["user_id", "1725a090-cec4-11e4-995f-705681abff85"], ["created_at", "2015-03-20 05:43:52.529166"], ["updated_at", "2015-03-20 05:43:52.529166"], ["token", "lso2PJLqoUqdWyFpT-4Tzj-XlOuE3-0NkBapmHTf6aM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.532544"], ["updated_at", "2015-03-20 05:43:52.532544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1725a090-cec4-11e4-995f-705681abff85' AND "clubhouse_memberships"."organization_id" = '17277578-cec4-11e4-94fa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1725a090-cec4-11e4-995f-705681abff85"], ["organization_id", "17277578-cec4-11e4-94fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.535618"], ["updated_at", "2015-03-20 05:43:52.535618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '172677a4-cec4-11e4-94c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '17277578-cec4-11e4-94fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "172677a4-cec4-11e4-94c9-705681abff85"], ["organization_id", "17277578-cec4-11e4-94fa-705681abff85"], ["created_at", "2015-03-20 05:43:52.538941"], ["updated_at", "2015-03-20 05:43:52.538941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$fkmkHgj/JKysdEznE.Z8UeX.0JC4XUZziKIpygCRMdpzQltU2wTCm"], ["created_at", "2015-03-20 05:43:52.543343"], ["updated_at", "2015-03-20 05:43:52.543343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.545153"], ["user_id", "172924cc-cec4-11e4-b4d3-705681abff85"], ["created_at", "2015-03-20 05:43:52.545974"], ["updated_at", "2015-03-20 05:43:52.545974"], ["token", "cBM6DpNmotNLNjVVWIv7pX3QCNf9Ybt0EJPG-OoTMyA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '17277578-cec4-11e4-94fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "17277578-cec4-11e4-94fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.549551"], ["updated_at", "2015-03-20 05:43:52.549551"], ["token", "ueCLVLOpaBav-KH5ROExHKsuh4Fat9Kwpkocl3mxWvI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/17277578-cec4-11e4-94fa-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"ueCLVLOpaBav-KH5ROExHKsuh4Fat9Kwpkocl3mxWvI", "organization_id"=>"17277578-cec4-11e4-94fa-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.555029' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cBM6DpNmotNLNjVVWIv7pX3QCNf9Ybt0EJPG-OoTMyA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.556499"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.557441"], ["id", "17298a70-cec4-11e4-a966-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "17277578-cec4-11e4-94fa-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "172924cc-cec4-11e4-b4d3-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "ueCLVLOpaBav-KH5ROExHKsuh4Fat9Kwpkocl3mxWvI"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "17277578-cec4-11e4-94fa-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '172924cc-cec4-11e4-b4d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '17277578-cec4-11e4-94fa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "17277578-cec4-11e4-94fa-705681abff85"], ["member_id", "172924cc-cec4-11e4-b4d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.568091"], ["updated_at", "2015-03-20 05:43:52.568091"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "172a12c4-cec4-11e4-85cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.1ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$OHAcpcPh7/.guZL8IP/KSuIVvGZ9mSMlayej2sD9PxY5zcervboUa"], ["created_at", "2015-03-20 05:43:52.578021"], ["updated_at", "2015-03-20 05:43:52.578021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$GaaOb4Dl4k9Bdwpteh0RmuXOl/R2TmOmECQzAoS8r64PKc/WsV1ki"], ["created_at", "2015-03-20 05:43:52.582244"], ["updated_at", "2015-03-20 05:43:52.582244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.583701"], ["user_id", "172e6b3a-cec4-11e4-adc7-705681abff85"], ["created_at", "2015-03-20 05:43:52.584445"], ["updated_at", "2015-03-20 05:43:52.584445"], ["token", "xvredr163zZLWjW9g_mReEVWNvH0XCzIRp7yLH34XzQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.587653"], ["updated_at", "2015-03-20 05:43:52.587653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '172e6b3a-cec4-11e4-adc7-705681abff85' AND "clubhouse_memberships"."organization_id" = '172fdd62-cec4-11e4-bd59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "172e6b3a-cec4-11e4-adc7-705681abff85"], ["organization_id", "172fdd62-cec4-11e4-bd59-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.590607"], ["updated_at", "2015-03-20 05:43:52.590607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '172f0b44-cec4-11e4-aedb-705681abff85' AND "clubhouse_memberships"."organization_id" = '172fdd62-cec4-11e4-bd59-705681abff85') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "172f0b44-cec4-11e4-aedb-705681abff85"], ["organization_id", "172fdd62-cec4-11e4-bd59-705681abff85"], ["created_at", "2015-03-20 05:43:52.593486"], ["updated_at", "2015-03-20 05:43:52.593486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$Td8YrxGuUigbOnpuhPqdxOtXOPe64ffSEzk.hQqlQ0Q4VTbDuCNGO"], ["created_at", "2015-03-20 05:43:52.597575"], ["updated_at", "2015-03-20 05:43:52.597575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.599001"], ["user_id", "1731616e-cec4-11e4-b4d6-705681abff85"], ["created_at", "2015-03-20 05:43:52.599743"], ["updated_at", "2015-03-20 05:43:52.599743"], ["token", "DxEHT34QCb48bNmy7w1qOw5FxFxF5-c7LizUKGWvY2A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '172fdd62-cec4-11e4-bd59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "172fdd62-cec4-11e4-bd59-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.603261"], ["updated_at", "2015-03-20 05:43:52.603261"], ["token", "6gWfmRmACDy9gOIJC86scz6r0-P0RLklCgsEbAcybe8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/172fdd62-cec4-11e4-bd59-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"172fdd62-cec4-11e4-bd59-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.608557' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DxEHT34QCb48bNmy7w1qOw5FxFxF5-c7LizUKGWvY2A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.610294"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.611420"], ["id", "1731bdd0-cec4-11e4-83bf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "172fdd62-cec4-11e4-bd59-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1731616e-cec4-11e4-b4d6-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$39LoUddwup44pvcgo/eSKulus91do7Z4AW70UUeNLI5Y6D3eP9tKu"], ["created_at", "2015-03-20 05:43:52.621885"], ["updated_at", "2015-03-20 05:43:52.621885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$AqTC5F28k3TrtLnHkqcigOkjnC1fT1dsiliaido31lzg3uCbSxQti"], ["created_at", "2015-03-20 05:43:52.625987"], ["updated_at", "2015-03-20 05:43:52.625987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.627412"], ["user_id", "17351c00-cec4-11e4-be16-705681abff85"], ["created_at", "2015-03-20 05:43:52.628160"], ["updated_at", "2015-03-20 05:43:52.628160"], ["token", "vTbuOQvoVt4K5MZKTOaPyqR_T79uJmWY6Nab616VHns"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.631538"], ["updated_at", "2015-03-20 05:43:52.631538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17351c00-cec4-11e4-be16-705681abff85' AND "clubhouse_memberships"."organization_id" = '173691d4-cec4-11e4-a98a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17351c00-cec4-11e4-be16-705681abff85"], ["organization_id", "173691d4-cec4-11e4-a98a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.634676"], ["updated_at", "2015-03-20 05:43:52.634676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1735b76e-cec4-11e4-b7ac-705681abff85' AND "clubhouse_memberships"."organization_id" = '173691d4-cec4-11e4-a98a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1735b76e-cec4-11e4-b7ac-705681abff85"], ["organization_id", "173691d4-cec4-11e4-a98a-705681abff85"], ["created_at", "2015-03-20 05:43:52.637602"], ["updated_at", "2015-03-20 05:43:52.637602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$aN7ai1AcSUBELG9HOxFQMePY/dDHrSpbiBz3XmWUHfDPsj5gmO2ky"], ["created_at", "2015-03-20 05:43:52.641785"], ["updated_at", "2015-03-20 05:43:52.641785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.643649"], ["user_id", "173824fe-cec4-11e4-b1a4-705681abff85"], ["created_at", "2015-03-20 05:43:52.644822"], ["updated_at", "2015-03-20 05:43:52.644822"], ["token", "oacDDarE6uzDSU4g8_Dj42KH4ngU6fAKLgl7fQJfEQQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '173691d4-cec4-11e4-a98a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "173691d4-cec4-11e4-a98a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.648327"], ["updated_at", "2015-03-20 05:43:52.648327"], ["token", "azc8bXKlebUzmb0kVKil12gpDHiAPxJZzHjJToJoeS4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$zPImA9kZxspSDqsbiaTPoeOPLtyX23vjkMlDN7Q4is8x7Vl1p0kh2"], ["created_at", "2015-03-20 05:43:52.659276"], ["updated_at", "2015-03-20 05:43:52.659276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$/6ou0p0/Qzuv/zmNUaXKt.XRiN.KCWUHwBgyA9tSOH3MCb.K9447u"], ["created_at", "2015-03-20 05:43:52.663641"], ["updated_at", "2015-03-20 05:43:52.663641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.665095"], ["user_id", "173ad28a-cec4-11e4-9de8-705681abff85"], ["created_at", "2015-03-20 05:43:52.665884"], ["updated_at", "2015-03-20 05:43:52.665884"], ["token", "_7NKzIcC8N2YHLj582uqwY9iTxwJuo84CFWd9f3b1QY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.669201"], ["updated_at", "2015-03-20 05:43:52.669201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '173ad28a-cec4-11e4-9de8-705681abff85' AND "clubhouse_memberships"."organization_id" = '173c4ff2-cec4-11e4-89ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "173ad28a-cec4-11e4-9de8-705681abff85"], ["organization_id", "173c4ff2-cec4-11e4-89ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.672358"], ["updated_at", "2015-03-20 05:43:52.672358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '173b7762-cec4-11e4-9d76-705681abff85' AND "clubhouse_memberships"."organization_id" = '173c4ff2-cec4-11e4-89ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "173b7762-cec4-11e4-9d76-705681abff85"], ["organization_id", "173c4ff2-cec4-11e4-89ad-705681abff85"], ["created_at", "2015-03-20 05:43:52.675196"], ["updated_at", "2015-03-20 05:43:52.675196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$pQ96DAfcNrMG.H0za1F./OxHwXnVXk/doqg9REjgbVXbK9Fyiv.JC"], ["created_at", "2015-03-20 05:43:52.679472"], ["updated_at", "2015-03-20 05:43:52.679472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.680945"], ["user_id", "173de240-cec4-11e4-9885-705681abff85"], ["created_at", "2015-03-20 05:43:52.681709"], ["updated_at", "2015-03-20 05:43:52.681709"], ["token", "V_As5vY--y7wW53ouIQBq8vXnQW8mMxvYOf2nAyHrhg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '173c4ff2-cec4-11e4-89ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "173c4ff2-cec4-11e4-89ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.685365"], ["updated_at", "2015-03-20 05:43:52.685365"], ["token", "CVQHqNrhSBPGIO0GqjbtJZhrrvjQvO5GvIQTxQMn2ZI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"CVQHqNrhSBPGIO0GqjbtJZhrrvjQvO5GvIQTxQMn2ZI", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.690905' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "V_As5vY--y7wW53ouIQBq8vXnQW8mMxvYOf2nAyHrhg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.692397"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.693496"], ["id", "173e415e-cec4-11e4-b68b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "173de240-cec4-11e4-9885-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "CVQHqNrhSBPGIO0GqjbtJZhrrvjQvO5GvIQTxQMn2ZI"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "173c4ff2-cec4-11e4-89ad-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '173de240-cec4-11e4-9885-705681abff85' AND "clubhouse_memberships"."organization_id" = '173c4ff2-cec4-11e4-89ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "173c4ff2-cec4-11e4-89ad-705681abff85"], ["member_id", "173de240-cec4-11e4-9885-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.700268"], ["updated_at", "2015-03-20 05:43:52.700268"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "173ecc1e-cec4-11e4-9201-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 1.0ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$Y7ube7dhhKUBJtXaOl2Hjurp8zcFx1MWuS8evIdtnY55rcDVcZrUO"], ["created_at", "2015-03-20 05:43:52.709643"], ["updated_at", "2015-03-20 05:43:52.709643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$RzicmLwM9pmQMtzEpyYk1uahj82nVTjr9KX.t76LrHwe4PoMxy5RK"], ["created_at", "2015-03-20 05:43:52.713785"], ["updated_at", "2015-03-20 05:43:52.713785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.715279"], ["user_id", "17427eea-cec4-11e4-9ab0-705681abff85"], ["created_at", "2015-03-20 05:43:52.716042"], ["updated_at", "2015-03-20 05:43:52.716042"], ["token", "agHo64rgbxtHKVieklLd3woqLPweQVA8UlsgZ5OofwE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.719399"], ["updated_at", "2015-03-20 05:43:52.719399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17427eea-cec4-11e4-9ab0-705681abff85' AND "clubhouse_memberships"."organization_id" = '1743f8a6-cec4-11e4-b104-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17427eea-cec4-11e4-9ab0-705681abff85"], ["organization_id", "1743f8a6-cec4-11e4-b104-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.722504"], ["updated_at", "2015-03-20 05:43:52.722504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17431ee0-cec4-11e4-b164-705681abff85' AND "clubhouse_memberships"."organization_id" = '1743f8a6-cec4-11e4-b104-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "17431ee0-cec4-11e4-b164-705681abff85"], ["organization_id", "1743f8a6-cec4-11e4-b104-705681abff85"], ["created_at", "2015-03-20 05:43:52.725620"], ["updated_at", "2015-03-20 05:43:52.725620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$djc7ZS423Bref.Due30gW.bdp2sn7uzEgTUw6ZR.rHHteHIm6bqQq"], ["created_at", "2015-03-20 05:43:52.729882"], ["updated_at", "2015-03-20 05:43:52.729882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.731358"], ["user_id", "1745935a-cec4-11e4-93a9-705681abff85"], ["created_at", "2015-03-20 05:43:52.732115"], ["updated_at", "2015-03-20 05:43:52.732115"], ["token", "tkipgERCKe87823U-dOqyyYaVTf0wd1DY-VGKXb0Wqc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '1743f8a6-cec4-11e4-b104-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "1743f8a6-cec4-11e4-b104-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.736049"], ["updated_at", "2015-03-20 05:43:52.736049"], ["token", "0lqdFwvOhFIozjmFSzqlU6N3_7uozIAXAj2EYvJB314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.741875' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tkipgERCKe87823U-dOqyyYaVTf0wd1DY-VGKXb0Wqc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.743330"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.744313"], ["id", "1745f02a-cec4-11e4-b7e5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1745935a-cec4-11e4-93a9-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$iOqueyQRSpPsQzbSufTQGe/neiL3P2JLXHAh0TpPc0PwDxEqWsqAO"], ["created_at", "2015-03-20 05:43:52.754806"], ["updated_at", "2015-03-20 05:43:52.754806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$o5OXRSfmfPSjke4HgiegL.CmY5oFeE2sW59XAozadVKhZEvQqe1mi"], ["created_at", "2015-03-20 05:43:52.758862"], ["updated_at", "2015-03-20 05:43:52.758862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.760762"], ["user_id", "174962e6-cec4-11e4-a3c9-705681abff85"], ["created_at", "2015-03-20 05:43:52.761566"], ["updated_at", "2015-03-20 05:43:52.761566"], ["token", "Wtvz1m04t2ZErkUkGTAWeGqBKSivCM5jvFcMxTu24q0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.764937"], ["updated_at", "2015-03-20 05:43:52.764937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '174962e6-cec4-11e4-a3c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '174aeb16-cec4-11e4-afcc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "174962e6-cec4-11e4-a3c9-705681abff85"], ["organization_id", "174aeb16-cec4-11e4-afcc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.768044"], ["updated_at", "2015-03-20 05:43:52.768044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '174a0c1e-cec4-11e4-9cd7-705681abff85' AND "clubhouse_memberships"."organization_id" = '174aeb16-cec4-11e4-afcc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "174a0c1e-cec4-11e4-9cd7-705681abff85"], ["organization_id", "174aeb16-cec4-11e4-afcc-705681abff85"], ["created_at", "2015-03-20 05:43:52.770943"], ["updated_at", "2015-03-20 05:43:52.770943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$oTwI7XcFZj8wJAeTErSGlev8M/Dn3MbJDQus8KsDmco9bNHY6i.bu"], ["created_at", "2015-03-20 05:43:52.782696"], ["updated_at", "2015-03-20 05:43:52.782696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$rDhFH3VzAguui69JeVkjPeBaERI28empFZDk92Yk3y9dWRSFph4ru"], ["created_at", "2015-03-20 05:43:52.788295"], ["updated_at", "2015-03-20 05:43:52.788295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.790024"], ["user_id", "174db79c-cec4-11e4-a24f-705681abff85"], ["created_at", "2015-03-20 05:43:52.790808"], ["updated_at", "2015-03-20 05:43:52.790808"], ["token", "0Qcv6Fozp6P5xviEPvHUOhfEHo2xCysXArTmDJseh8w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.794290"], ["updated_at", "2015-03-20 05:43:52.794290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '174db79c-cec4-11e4-a24f-705681abff85' AND "clubhouse_memberships"."organization_id" = '174f68e4-cec4-11e4-b028-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "174db79c-cec4-11e4-a24f-705681abff85"], ["organization_id", "174f68e4-cec4-11e4-b028-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.797595"], ["updated_at", "2015-03-20 05:43:52.797595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '174e82a8-cec4-11e4-9303-705681abff85' AND "clubhouse_memberships"."organization_id" = '174f68e4-cec4-11e4-b028-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "174e82a8-cec4-11e4-9303-705681abff85"], ["organization_id", "174f68e4-cec4-11e4-b028-705681abff85"], ["created_at", "2015-03-20 05:43:52.800513"], ["updated_at", "2015-03-20 05:43:52.800513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/174fe792-cec4-11e4-8c7f-705681abff85" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"174fe792-cec4-11e4-8c7f-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.805381' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0Qcv6Fozp6P5xviEPvHUOhfEHo2xCysXArTmDJseh8w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.806742"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.807670"], ["id", "174ee694-cec4-11e4-b682-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "174fe792-cec4-11e4-8c7f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "174db79c-cec4-11e4-a24f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "174f68e4-cec4-11e4-b028-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '174db79c-cec4-11e4-a24f-705681abff85' LIMIT 1 [["organization_id", "174f68e4-cec4-11e4-b028-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "174db79c-cec4-11e4-a24f-705681abff85"]] Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$Nm9LQqLXXG9ynm2CaMesCeU2/l77wjR3mcXWONfrwlDgafb83XiLW"], ["created_at", "2015-03-20 05:43:52.820800"], ["updated_at", "2015-03-20 05:43:52.820800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$BXOrbkkjI.qjBo6kVtXSt.zsqtYLVvb8ysx5AgQZ7WcWCwdQ5BFEu"], ["created_at", "2015-03-20 05:43:52.824919"], ["updated_at", "2015-03-20 05:43:52.824919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.826506"], ["user_id", "175374c0-cec4-11e4-ac76-705681abff85"], ["created_at", "2015-03-20 05:43:52.827279"], ["updated_at", "2015-03-20 05:43:52.827279"], ["token", "akwl_LhF0Evsft9UE_p77YwjFRvVioPCkBukkZxnxjY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.830673"], ["updated_at", "2015-03-20 05:43:52.830673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '175374c0-cec4-11e4-ac76-705681abff85' AND "clubhouse_memberships"."organization_id" = '1754f2e6-cec4-11e4-b8a4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "175374c0-cec4-11e4-ac76-705681abff85"], ["organization_id", "1754f2e6-cec4-11e4-b8a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.842773"], ["updated_at", "2015-03-20 05:43:52.842773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1754131c-cec4-11e4-9750-705681abff85' AND "clubhouse_memberships"."organization_id" = '1754f2e6-cec4-11e4-b8a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1754131c-cec4-11e4-9750-705681abff85"], ["organization_id", "1754f2e6-cec4-11e4-b8a4-705681abff85"], ["created_at", "2015-03-20 05:43:52.846265"], ["updated_at", "2015-03-20 05:43:52.846265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$U0iGpQgCu3/OYvd8/TS0muLvEH0tGoLzmV3eNB0vnazf4Z4Ywu1g2"], ["created_at", "2015-03-20 05:43:52.856802"], ["updated_at", "2015-03-20 05:43:52.856802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$TFsbH7iiUzzHyycX1XpZQui1yRp5CFEBhH6grAvD6ilnAnThSzI3m"], ["created_at", "2015-03-20 05:43:52.861153"], ["updated_at", "2015-03-20 05:43:52.861153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.862724"], ["user_id", "1758f60c-cec4-11e4-b8a7-705681abff85"], ["created_at", "2015-03-20 05:43:52.863604"], ["updated_at", "2015-03-20 05:43:52.863604"], ["token", "Tl-4hyjzm2irlsMJLmvzEVPLdUjbWoa9GPnf9YUSg6k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.867102"], ["updated_at", "2015-03-20 05:43:52.867102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1758f60c-cec4-11e4-b8a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '175a827e-cec4-11e4-9435-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1758f60c-cec4-11e4-b8a7-705681abff85"], ["organization_id", "175a827e-cec4-11e4-9435-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.870516"], ["updated_at", "2015-03-20 05:43:52.870516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17599a1c-cec4-11e4-aec6-705681abff85' AND "clubhouse_memberships"."organization_id" = '175a827e-cec4-11e4-9435-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "17599a1c-cec4-11e4-aec6-705681abff85"], ["organization_id", "175a827e-cec4-11e4-9435-705681abff85"], ["created_at", "2015-03-20 05:43:52.874151"], ["updated_at", "2015-03-20 05:43:52.874151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/175bad7a-cec4-11e4-bbb7-705681abff85" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"175bad7a-cec4-11e4-bbb7-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.881368' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Tl-4hyjzm2irlsMJLmvzEVPLdUjbWoa9GPnf9YUSg6k"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.884216"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.887811"], ["id", "175a05a6-cec4-11e4-b303-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "175bad7a-cec4-11e4-bbb7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1758f60c-cec4-11e4-b8a7-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "175a827e-cec4-11e4-9435-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1758f60c-cec4-11e4-b8a7-705681abff85' LIMIT 1 [["organization_id", "175a827e-cec4-11e4-9435-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17599a1c-cec4-11e4-aec6-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17599a1c-cec4-11e4-aec6-705681abff85' AND "clubhouse_memberships"."id" != '175bad7a-cec4-11e4-bbb7-705681abff85' AND "clubhouse_memberships"."organization_id" = '175a827e-cec4-11e4-9435-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:43:52.897122"], ["id", "175bad7a-cec4-11e4-bbb7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$UMdCKV3rs7ktsHguDbpIb.w8L.tIR295oajJf755Zgmzp2XzwaQoK"], ["created_at", "2015-03-20 05:43:52.908015"], ["updated_at", "2015-03-20 05:43:52.908015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$v5zkGv0rRGQrDaN6ZiZdb./e1DRm5bsTGsvju0dLd3LGXLfj2c9we"], ["created_at", "2015-03-20 05:43:52.912964"], ["updated_at", "2015-03-20 05:43:52.912964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.914750"], ["user_id", "1760c594-cec4-11e4-a8ea-705681abff85"], ["created_at", "2015-03-20 05:43:52.915582"], ["updated_at", "2015-03-20 05:43:52.915582"], ["token", "I8ih-mmZgYFKIixjN3uS8MbkZsY0mbfgFwIIm7GPl3E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.919917"], ["updated_at", "2015-03-20 05:43:52.919917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1760c594-cec4-11e4-a8ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '176291e4-cec4-11e4-a2a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1760c594-cec4-11e4-a8ea-705681abff85"], ["organization_id", "176291e4-cec4-11e4-a2a7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.923209"], ["updated_at", "2015-03-20 05:43:52.923209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '176186dc-cec4-11e4-8e60-705681abff85' AND "clubhouse_memberships"."organization_id" = '176291e4-cec4-11e4-a2a7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "176186dc-cec4-11e4-8e60-705681abff85"], ["organization_id", "176291e4-cec4-11e4-a2a7-705681abff85"], ["created_at", "2015-03-20 05:43:52.927231"], ["updated_at", "2015-03-20 05:43:52.927231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$4pAVkMjT7AL2PK3x4GgWAusg7EoSbISHMpN9wB8FBAWZ4Gr1FTn2q"], ["created_at", "2015-03-20 05:43:52.939970"], ["updated_at", "2015-03-20 05:43:52.939970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$Cnxsx3eD5MSk1Ut4qj7UiOg6iZ4TvXhqNMzJMoB0rjCFkCrq/wp0y"], ["created_at", "2015-03-20 05:43:52.944539"], ["updated_at", "2015-03-20 05:43:52.944539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.946148"], ["user_id", "1765a9a6-cec4-11e4-a329-705681abff85"], ["created_at", "2015-03-20 05:43:52.946972"], ["updated_at", "2015-03-20 05:43:52.946972"], ["token", "pgn6csY6RE0NAsy6BQI1yB2nSzeeHBQ-mwk-f7rgOwE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.950427"], ["updated_at", "2015-03-20 05:43:52.950427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1765a9a6-cec4-11e4-a329-705681abff85' AND "clubhouse_memberships"."organization_id" = '176739f6-cec4-11e4-ae3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1765a9a6-cec4-11e4-a329-705681abff85"], ["organization_id", "176739f6-cec4-11e4-ae3a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.953653"], ["updated_at", "2015-03-20 05:43:52.953653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17665716-cec4-11e4-b6d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '176739f6-cec4-11e4-ae3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "17665716-cec4-11e4-b6d9-705681abff85"], ["organization_id", "176739f6-cec4-11e4-ae3a-705681abff85"], ["created_at", "2015-03-20 05:43:52.957073"], ["updated_at", "2015-03-20 05:43:52.957073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/17683fb8-cec4-11e4-876c-705681abff85" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"17683fb8-cec4-11e4-876c-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:52.962405' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pgn6csY6RE0NAsy6BQI1yB2nSzeeHBQ-mwk-f7rgOwE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:52.965003"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:52.966477"], ["id", "1766bbf2-cec4-11e4-81ef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "17683fb8-cec4-11e4-876c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1765a9a6-cec4-11e4-a329-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "176739f6-cec4-11e4-ae3a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1765a9a6-cec4-11e4-a329-705681abff85' LIMIT 1 [["organization_id", "176739f6-cec4-11e4-ae3a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17665716-cec4-11e4-b6d9-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "17683fb8-cec4-11e4-876c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$qSnm6PuvBmH6T7WZbXAnzOBrnMt6KNNK.TfDWo8oHDLbIRdf/0YVm"], ["created_at", "2015-03-20 05:43:52.979014"], ["updated_at", "2015-03-20 05:43:52.979014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$oQTJb0.w1KtDXYxj1CV1wuBI9WBQ0K3r/fH3pJpV2ejfzkZqHrwF."], ["created_at", "2015-03-20 05:43:52.983439"], ["updated_at", "2015-03-20 05:43:52.983439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:52.984903"], ["user_id", "176b9e6a-cec4-11e4-af3b-705681abff85"], ["created_at", "2015-03-20 05:43:52.985693"], ["updated_at", "2015-03-20 05:43:52.985693"], ["token", "7Sp9yMRGQsK8OzkaCff7BqSLH8s-Za4wgN_1N3GOqLk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:52.989118"], ["updated_at", "2015-03-20 05:43:52.989118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '176b9e6a-cec4-11e4-af3b-705681abff85' AND "clubhouse_memberships"."organization_id" = '176d2316-cec4-11e4-8e08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "176b9e6a-cec4-11e4-af3b-705681abff85"], ["organization_id", "176d2316-cec4-11e4-8e08-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:52.992435"], ["updated_at", "2015-03-20 05:43:52.992435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '176c4392-cec4-11e4-918c-705681abff85' AND "clubhouse_memberships"."organization_id" = '176d2316-cec4-11e4-8e08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "176c4392-cec4-11e4-918c-705681abff85"], ["organization_id", "176d2316-cec4-11e4-8e08-705681abff85"], ["created_at", "2015-03-20 05:43:52.995664"], ["updated_at", "2015-03-20 05:43:52.995664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:43:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$JeD.bJ.vOlSGYM.ZZ0.ghOuds2O9tpoVz6GtgUjdJ0pEhWwm/mpYi"], ["created_at", "2015-03-20 05:43:53.009036"], ["updated_at", "2015-03-20 05:43:53.009036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$3PKflJiFJsknKo90hI3tuONNpPaqKtsFq1PbSQbe1wCHlRS45uUqy"], ["created_at", "2015-03-20 05:43:53.015180"], ["updated_at", "2015-03-20 05:43:53.015180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.017188"], ["user_id", "17704514-cec4-11e4-9ea7-705681abff85"], ["created_at", "2015-03-20 05:43:53.018058"], ["updated_at", "2015-03-20 05:43:53.018058"], ["token", "cgSd_N8lrfEjeib1QaGuwSFtlyKbPiJwRXVGAjsWxwU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.021868"], ["updated_at", "2015-03-20 05:43:53.021868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17704514-cec4-11e4-9ea7-705681abff85' AND "clubhouse_memberships"."organization_id" = '17722294-cec4-11e4-a0a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17704514-cec4-11e4-9ea7-705681abff85"], ["organization_id", "17722294-cec4-11e4-a0a3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.025631"], ["updated_at", "2015-03-20 05:43:53.025631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17712948-cec4-11e4-8abd-705681abff85' AND "clubhouse_memberships"."organization_id" = '17722294-cec4-11e4-a0a3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "17712948-cec4-11e4-8abd-705681abff85"], ["organization_id", "17722294-cec4-11e4-a0a3-705681abff85"], ["created_at", "2015-03-20 05:43:53.029204"], ["updated_at", "2015-03-20 05:43:53.029204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.034663' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cgSd_N8lrfEjeib1QaGuwSFtlyKbPiJwRXVGAjsWxwU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.036115"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.037104"], ["id", "177196a8-cec4-11e4-ab9e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17704514-cec4-11e4-9ea7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '17704514-cec4-11e4-9ea7-705681abff85' LIMIT 1 [["organization_id", "17722294-cec4-11e4-a0a3-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "17722294-cec4-11e4-a0a3-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('17704514-cec4-11e4-9ea7-705681abff85', '17712948-cec4-11e4-8abd-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('17722294-cec4-11e4-a0a3-705681abff85') Completed 200 OK in 12ms (Views: 3.9ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.061943"], ["updated_at", "2015-03-20 05:43:53.061943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '17784642-cec4-11e4-a497-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "17784642-cec4-11e4-a497-705681abff85"], ["created_at", "2015-03-20 05:43:53.065460"], ["updated_at", "2015-03-20 05:43:53.065460"], ["token", "_9TeuRbha3C759HiVNNPAEsJeBAEhLxaYL3bLQhJc9A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "17784642-cec4-11e4-a497-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '17784642-cec4-11e4-a497-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "17784642-cec4-11e4-a497-705681abff86"]] Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '17784642-cec4-11e4-a497-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.081093"], ["updated_at", "2015-03-20 05:43:53.081093"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '177b2dee-cec4-11e4-94b4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "177b2dee-cec4-11e4-94b4-705681abff85"], ["created_at", "2015-03-20 05:43:53.085354"], ["updated_at", "2015-03-20 05:43:53.085354"], ["token", "33Kv80PXBHTH9dCewT5VN0VOwRCtQGdMOkKTrBeJ8pk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$pssAZegAEZy59saPfJKj3eTkuR.zsdLr7WVFMJJjGVX22HTz5f3EG"], ["created_at", "2015-03-20 05:43:53.098263"], ["updated_at", "2015-03-20 05:43:53.098263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.099998"], ["user_id", "177dce46-cec4-11e4-9c2a-705681abff85"], ["created_at", "2015-03-20 05:43:53.100795"], ["updated_at", "2015-03-20 05:43:53.100795"], ["token", "Yu-mKClUhiw-d9o0Hwyxw4ho3SsbJyot3aLbAf3rDc0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.104192"], ["updated_at", "2015-03-20 05:43:53.104192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '177dce46-cec4-11e4-9c2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '177eb0b8-cec4-11e4-b8fc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "177dce46-cec4-11e4-9c2a-705681abff85"], ["organization_id", "177eb0b8-cec4-11e4-b8fc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.107832"], ["updated_at", "2015-03-20 05:43:53.107832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$ZjzaOqWqylhAQ1u9w0r0KuTGmASFprM9jTMaKwfH.kvKpJiRxMGb2"], ["created_at", "2015-03-20 05:43:53.112600"], ["updated_at", "2015-03-20 05:43:53.112600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.116105"], ["updated_at", "2015-03-20 05:43:53.116105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1780026a-cec4-11e4-9fe5-705681abff85' AND "clubhouse_memberships"."organization_id" = '178083a2-cec4-11e4-9f93-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1780026a-cec4-11e4-9fe5-705681abff85"], ["organization_id", "178083a2-cec4-11e4-9f93-705681abff85"], ["created_at", "2015-03-20 05:43:53.119362"], ["updated_at", "2015-03-20 05:43:53.119362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$PuWpwc8YNT5QePutLzZdFOEeAOJ5/AV/78qwNvIah0GffdDuQ031m"], ["created_at", "2015-03-20 05:43:53.136570"], ["updated_at", "2015-03-20 05:43:53.136570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.138276"], ["user_id", "1783a64a-cec4-11e4-abc1-705681abff85"], ["created_at", "2015-03-20 05:43:53.139163"], ["updated_at", "2015-03-20 05:43:53.139163"], ["token", "r7t6TAvgrtMJWBsfX1O_7WnyrTfXldUFZu0qfL0eaVM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.142473"], ["updated_at", "2015-03-20 05:43:53.142473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1783a64a-cec4-11e4-abc1-705681abff85' AND "clubhouse_memberships"."organization_id" = '17848786-cec4-11e4-829e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1783a64a-cec4-11e4-abc1-705681abff85"], ["organization_id", "17848786-cec4-11e4-829e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.145780"], ["updated_at", "2015-03-20 05:43:53.145780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$loz4hOoVReqHWzUZ9gA5yeuZQdnp4BeDwbM1nvSXKerpaCRy5aUai"], ["created_at", "2015-03-20 05:43:53.150319"], ["updated_at", "2015-03-20 05:43:53.150319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.153419"], ["updated_at", "2015-03-20 05:43:53.153419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1785bba6-cec4-11e4-8f8f-705681abff85' AND "clubhouse_memberships"."organization_id" = '178633d8-cec4-11e4-a559-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1785bba6-cec4-11e4-8f8f-705681abff85"], ["organization_id", "178633d8-cec4-11e4-a559-705681abff85"], ["created_at", "2015-03-20 05:43:53.156553"], ["updated_at", "2015-03-20 05:43:53.156553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.161481' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "r7t6TAvgrtMJWBsfX1O_7WnyrTfXldUFZu0qfL0eaVM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.163363"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.165284"], ["id", "17840e8c-cec4-11e4-9700-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1783a64a-cec4-11e4-abc1-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "1783a64a-cec4-11e4-abc1-705681abff85"]] Completed 200 OK in 13ms (Views: 3.0ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$DTxh31lHTewMJi2Dq2kBIuXKzQo8ZkKF3fJoba/9uerYwqDpeg3aC"], ["created_at", "2015-03-20 05:43:53.180484"], ["updated_at", "2015-03-20 05:43:53.180484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.182176"], ["user_id", "178a58f0-cec4-11e4-aac6-705681abff85"], ["created_at", "2015-03-20 05:43:53.183311"], ["updated_at", "2015-03-20 05:43:53.183311"], ["token", "PBxA_RKwHTjrYS9FQx1laKFQgDG81n0y0qknTfCxZ2Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.187587"], ["updated_at", "2015-03-20 05:43:53.187587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '178a58f0-cec4-11e4-aac6-705681abff85' AND "clubhouse_memberships"."organization_id" = '178b6b5a-cec4-11e4-8fef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "178a58f0-cec4-11e4-aac6-705681abff85"], ["organization_id", "178b6b5a-cec4-11e4-8fef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.191323"], ["updated_at", "2015-03-20 05:43:53.191323"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$R6xu9o9vNocRqaMAndojSuFcTuBRGn1t3GUkPdjCvfMukkCNY9fGe"], ["created_at", "2015-03-20 05:43:53.202977"], ["updated_at", "2015-03-20 05:43:53.202977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.204625"], ["user_id", "178dc788-cec4-11e4-98f2-705681abff85"], ["created_at", "2015-03-20 05:43:53.205407"], ["updated_at", "2015-03-20 05:43:53.205407"], ["token", "9inq29DWrYL8TKwIZdphOTrwGSZcFFSPmc_rw3tSYKQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.208809"], ["updated_at", "2015-03-20 05:43:53.208809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '178dc788-cec4-11e4-98f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '178ea6c6-cec4-11e4-bac7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "178dc788-cec4-11e4-98f2-705681abff85"], ["organization_id", "178ea6c6-cec4-11e4-bac7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.212890"], ["updated_at", "2015-03-20 05:43:53.212890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/178ea6c6-cec4-11e4-bac7-705681abff85" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"178ea6c6-cec4-11e4-bac7-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.218181' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9inq29DWrYL8TKwIZdphOTrwGSZcFFSPmc_rw3tSYKQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.219615"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.220550"], ["id", "178e2b06-cec4-11e4-82f1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "178ea6c6-cec4-11e4-bac7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "178dc788-cec4-11e4-98f2-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '178dc788-cec4-11e4-98f2-705681abff85' LIMIT 1 [["organization_id", "178ea6c6-cec4-11e4-bac7-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$1x/Miqtrosh7/6eGMTBpROVXNdwj5N8HggVPmWSo.mEXSaNcVEW0q"], ["created_at", "2015-03-20 05:43:53.231830"], ["updated_at", "2015-03-20 05:43:53.231830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.233413"], ["user_id", "17922d82-cec4-11e4-b139-705681abff85"], ["created_at", "2015-03-20 05:43:53.234245"], ["updated_at", "2015-03-20 05:43:53.234245"], ["token", "sshns-WdNrGP_Oj2VIFTrFepiVsgOMaG8AhQuANT9gY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.237736"], ["updated_at", "2015-03-20 05:43:53.237736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17922d82-cec4-11e4-b139-705681abff85' AND "clubhouse_memberships"."organization_id" = '17931abc-cec4-11e4-93eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17922d82-cec4-11e4-b139-705681abff85"], ["organization_id", "17931abc-cec4-11e4-93eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.241572"], ["updated_at", "2015-03-20 05:43:53.241572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$26ked7t1/Hs6asDRum3OGuFgAsIKIQx0qt/acGaKzlhC/FgHCGr5O"], ["created_at", "2015-03-20 05:43:53.253525"], ["updated_at", "2015-03-20 05:43:53.253525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.255247"], ["user_id", "17957ed8-cec4-11e4-8497-705681abff85"], ["created_at", "2015-03-20 05:43:53.256064"], ["updated_at", "2015-03-20 05:43:53.256064"], ["token", "p4gJFeAFS3Aq1bmPeOfPacQjB2hyHlLoVEmf31G-DG0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.259458"], ["updated_at", "2015-03-20 05:43:53.259458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17957ed8-cec4-11e4-8497-705681abff85' AND "clubhouse_memberships"."organization_id" = '17966168-cec4-11e4-ad48-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17957ed8-cec4-11e4-8497-705681abff85"], ["organization_id", "17966168-cec4-11e4-ad48-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.263177"], ["updated_at", "2015-03-20 05:43:53.263177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/17966168-cec4-11e4-ad48-705681abff85" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"17966168-cec4-11e4-ad48-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.268879' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "p4gJFeAFS3Aq1bmPeOfPacQjB2hyHlLoVEmf31G-DG0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.270328"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.271446"], ["id", "1795e698-cec4-11e4-a367-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "17966168-cec4-11e4-ad48-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17957ed8-cec4-11e4-8497-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '17957ed8-cec4-11e4-8497-705681abff85' LIMIT 1 [["organization_id", "17966168-cec4-11e4-ad48-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '17966168-cec4-11e4-ad48-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:43:53.278036"], ["id", "17966168-cec4-11e4-ad48-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$.v7NwWiG2qdpCy5qnxpFsu7FOyyE3vAUeZ4ZNkJJWsKQBePsupCX6"], ["created_at", "2015-03-20 05:43:53.286016"], ["updated_at", "2015-03-20 05:43:53.286016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.287743"], ["user_id", "179a74c4-cec4-11e4-9560-705681abff85"], ["created_at", "2015-03-20 05:43:53.288580"], ["updated_at", "2015-03-20 05:43:53.288580"], ["token", "JbqynQu-4L0fRuoYcnqxW1tVbMo7gXAKGwTZTF8WoyU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.292109"], ["updated_at", "2015-03-20 05:43:53.292109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '179a74c4-cec4-11e4-9560-705681abff85' AND "clubhouse_memberships"."organization_id" = '179b5d6c-cec4-11e4-9e3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "179a74c4-cec4-11e4-9560-705681abff85"], ["organization_id", "179b5d6c-cec4-11e4-9e3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.295381"], ["updated_at", "2015-03-20 05:43:53.295381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/179b5d6c-cec4-11e4-9e3f-705681abff85" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"179b5d6c-cec4-11e4-9e3f-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.300970' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JbqynQu-4L0fRuoYcnqxW1tVbMo7gXAKGwTZTF8WoyU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.302939"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.304845"], ["id", "179adf36-cec4-11e4-820c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "179b5d6c-cec4-11e4-9e3f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "179a74c4-cec4-11e4-9560-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '179a74c4-cec4-11e4-9560-705681abff85' LIMIT 1 [["organization_id", "179b5d6c-cec4-11e4-9e3f-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '179b5d6c-cec4-11e4-9e3f-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$cD3pMol/.JMC5F.I4U8PVelWNH9C9wA0AVyv9mFyeng40wXlkcqSW"], ["created_at", "2015-03-20 05:43:53.319371"], ["updated_at", "2015-03-20 05:43:53.319371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.321274"], ["user_id", "179f8ee6-cec4-11e4-a8fa-705681abff85"], ["created_at", "2015-03-20 05:43:53.322111"], ["updated_at", "2015-03-20 05:43:53.322111"], ["token", "dJSASfEty2vRPecMOyiuIaVP2yZKbQe1BqMVl8cqOFY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.325686"], ["updated_at", "2015-03-20 05:43:53.325686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '179f8ee6-cec4-11e4-a8fa-705681abff85' AND "clubhouse_memberships"."organization_id" = '17a07d60-cec4-11e4-9dca-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "179f8ee6-cec4-11e4-a8fa-705681abff85"], ["organization_id", "17a07d60-cec4-11e4-9dca-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.329348"], ["updated_at", "2015-03-20 05:43:53.329348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$mEk83PAxAowlTBSeFAUrvOZTt.d1TyhV87nEAXHzVphsAn3GnWsSS"], ["created_at", "2015-03-20 05:43:53.347179"], ["updated_at", "2015-03-20 05:43:53.347179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.350256"], ["user_id", "17a3e75c-cec4-11e4-a7e6-705681abff85"], ["created_at", "2015-03-20 05:43:53.351560"], ["updated_at", "2015-03-20 05:43:53.351560"], ["token", "c4bnWAIjQnmYqJiaWmVp1Wea8JPMZgnjAdIYiza0wkU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.357139"], ["updated_at", "2015-03-20 05:43:53.357139"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17a3e75c-cec4-11e4-a7e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '17a55cb8-cec4-11e4-936e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17a3e75c-cec4-11e4-a7e6-705681abff85"], ["organization_id", "17a55cb8-cec4-11e4-936e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.362498"], ["updated_at", "2015-03-20 05:43:53.362498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.370497' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "c4bnWAIjQnmYqJiaWmVp1Wea8JPMZgnjAdIYiza0wkU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.372220"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.373340"], ["id", "17a48c66-cec4-11e4-9870-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17a3e75c-cec4-11e4-a7e6-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.381674"], ["updated_at", "2015-03-20 05:43:53.381674"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "17a90dea-cec4-11e4-a1d7-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17a3e75c-cec4-11e4-a7e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '17a90dea-cec4-11e4-a1d7-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17a3e75c-cec4-11e4-a7e6-705681abff85"], ["admin", "t"], ["organization_id", "17a90dea-cec4-11e4-a1d7-705681abff85"], ["created_at", "2015-03-20 05:43:53.385888"], ["updated_at", "2015-03-20 05:43:53.385888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 0.9ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$JvzR/BDufeQMMD/Ckn3H4ORBj5GgUscp2MXV2CZs/j5pDChsQNhim"], ["created_at", "2015-03-20 05:43:53.396353"], ["updated_at", "2015-03-20 05:43:53.396353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.397977"], ["user_id", "17ab495c-cec4-11e4-9e53-705681abff85"], ["created_at", "2015-03-20 05:43:53.398780"], ["updated_at", "2015-03-20 05:43:53.398780"], ["token", "JbvD5Mg2YIqT6jykZqGw_NPE-EPVTI4NFVGmNgfjibo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.402154"], ["updated_at", "2015-03-20 05:43:53.402154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17ab495c-cec4-11e4-9e53-705681abff85' AND "clubhouse_memberships"."organization_id" = '17ac2b38-cec4-11e4-8d81-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17ab495c-cec4-11e4-9e53-705681abff85"], ["organization_id", "17ac2b38-cec4-11e4-8d81-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.405945"], ["updated_at", "2015-03-20 05:43:53.405945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.411090' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JbvD5Mg2YIqT6jykZqGw_NPE-EPVTI4NFVGmNgfjibo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.412545"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.413605"], ["id", "17abad8e-cec4-11e4-9b2f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17ab495c-cec4-11e4-9e53-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$7hG7minUHPmUXAV6thuve.TnwyFaVXO3.7b5UQbNeaE0xnqGbY1Pq"], ["created_at", "2015-03-20 05:43:53.428324"], ["updated_at", "2015-03-20 05:43:53.428324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.430390"], ["user_id", "17b02db4-cec4-11e4-9996-705681abff85"], ["created_at", "2015-03-20 05:43:53.431405"], ["updated_at", "2015-03-20 05:43:53.431405"], ["token", "xcXsBhAPj-qFC4o9AbyMSV2_Rj-6qjDdUpqUWdO5Ggc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.435016"], ["updated_at", "2015-03-20 05:43:53.435016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17b02db4-cec4-11e4-9996-705681abff85' AND "clubhouse_memberships"."organization_id" = '17b12c0a-cec4-11e4-a783-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17b02db4-cec4-11e4-9996-705681abff85"], ["organization_id", "17b12c0a-cec4-11e4-a783-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.438438"], ["updated_at", "2015-03-20 05:43:53.438438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$ZHtLA6JhM4r/LMbELona..PqgfZ4KPGv7vdw.2R2zCvBpeFA8c0iS"], ["created_at", "2015-03-20 05:43:53.449999"], ["updated_at", "2015-03-20 05:43:53.449999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.451995"], ["user_id", "17b37adc-cec4-11e4-8659-705681abff85"], ["created_at", "2015-03-20 05:43:53.453057"], ["updated_at", "2015-03-20 05:43:53.453057"], ["token", "ULyoW1VP9KMXMcPjFGq1ke1knWDgmsecj9f74wSfj98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.456855"], ["updated_at", "2015-03-20 05:43:53.456855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17b37adc-cec4-11e4-8659-705681abff85' AND "clubhouse_memberships"."organization_id" = '17b48328-cec4-11e4-a065-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17b37adc-cec4-11e4-8659-705681abff85"], ["organization_id", "17b48328-cec4-11e4-a065-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.460263"], ["updated_at", "2015-03-20 05:43:53.460263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-72" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-72", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.465784' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ULyoW1VP9KMXMcPjFGq1ke1knWDgmsecj9f74wSfj98"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.467348"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.468400"], ["id", "17b3fd9a-cec4-11e4-af3e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-72"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17b37adc-cec4-11e4-8659-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '17b37adc-cec4-11e4-8659-705681abff85' LIMIT 1 [["organization_id", "17b48328-cec4-11e4-a065-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '17b48328-cec4-11e4-a065-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:43:53.475144"], ["id", "17b48328-cec4-11e4-a065-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$mMONuZ2GSMGT3VxBaxPjFebRvkEgZuPOLPuFn5niAYGhtc.l95yIm"], ["created_at", "2015-03-20 05:43:53.483281"], ["updated_at", "2015-03-20 05:43:53.483281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.485025"], ["user_id", "17b88e14-cec4-11e4-8f8c-705681abff85"], ["created_at", "2015-03-20 05:43:53.485932"], ["updated_at", "2015-03-20 05:43:53.485932"], ["token", "3KQ1482GjJqjXNILZyY6ahWH69_aiWsfjtMoRlPJ72Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.489736"], ["updated_at", "2015-03-20 05:43:53.489736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17b88e14-cec4-11e4-8f8c-705681abff85' AND "clubhouse_memberships"."organization_id" = '17b985b2-cec4-11e4-837c-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17b88e14-cec4-11e4-8f8c-705681abff85"], ["organization_id", "17b985b2-cec4-11e4-837c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.493048"], ["updated_at", "2015-03-20 05:43:53.493048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-73" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-73", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.500843' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3KQ1482GjJqjXNILZyY6ahWH69_aiWsfjtMoRlPJ72Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.502490"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.503602"], ["id", "17b90272-cec4-11e4-ab7f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-73"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17b88e14-cec4-11e4-8f8c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '17b88e14-cec4-11e4-8f8c-705681abff85' LIMIT 1 [["organization_id", "17b985b2-cec4-11e4-837c-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '17b985b2-cec4-11e4-837c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$bc9qAAlMFjAzevaC2SEtJuPGsldBi3Rhw8gHBHKAOv/pTtxsL1Siu"], ["created_at", "2015-03-20 05:43:53.517036"], ["updated_at", "2015-03-20 05:43:53.517036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.518795"], ["user_id", "17bdb45c-cec4-11e4-9bcf-705681abff85"], ["created_at", "2015-03-20 05:43:53.519597"], ["updated_at", "2015-03-20 05:43:53.519597"], ["token", "DzaMS_mfQ3Oxy86dwym7toWgg681pBAvBi6ToG3rmg0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.523028"], ["updated_at", "2015-03-20 05:43:53.523028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17bdb45c-cec4-11e4-9bcf-705681abff85' AND "clubhouse_memberships"."organization_id" = '17be9a20-cec4-11e4-b7e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17bdb45c-cec4-11e4-9bcf-705681abff85"], ["organization_id", "17be9a20-cec4-11e4-b7e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.526311"], ["updated_at", "2015-03-20 05:43:53.526311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$H9HuKSvsrzVBd8M4BiCif..tLT4fFP1T0bAMxR0q2CPzBYBC67mTi"], ["created_at", "2015-03-20 05:43:53.537123"], ["updated_at", "2015-03-20 05:43:53.537123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.538832"], ["user_id", "17c0c4d0-cec4-11e4-bac9-705681abff85"], ["created_at", "2015-03-20 05:43:53.539636"], ["updated_at", "2015-03-20 05:43:53.539636"], ["token", "kvVc2_PwLnifPlcDB0goiqMV-97ngTe3jcTILK_P36M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.543159"], ["updated_at", "2015-03-20 05:43:53.543159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17c0c4d0-cec4-11e4-bac9-705681abff85' AND "clubhouse_memberships"."organization_id" = '17c1aa76-cec4-11e4-8519-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17c0c4d0-cec4-11e4-bac9-705681abff85"], ["organization_id", "17c1aa76-cec4-11e4-8519-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.546290"], ["updated_at", "2015-03-20 05:43:53.546290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-75" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-75", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.552135' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kvVc2_PwLnifPlcDB0goiqMV-97ngTe3jcTILK_P36M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.553617"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.554657"], ["id", "17c12d08-cec4-11e4-b572-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-75"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17c0c4d0-cec4-11e4-bac9-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '17c0c4d0-cec4-11e4-bac9-705681abff85' LIMIT 1 [["organization_id", "17c1aa76-cec4-11e4-8519-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$m/r3r9/S8kTSjHru0i79hOh/0ieqE/JCWpfA/0FSRq31noiClLtIO"], ["created_at", "2015-03-20 05:43:53.565424"], ["updated_at", "2015-03-20 05:43:53.565424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.567146"], ["user_id", "17c51544-cec4-11e4-85f4-705681abff85"], ["created_at", "2015-03-20 05:43:53.568411"], ["updated_at", "2015-03-20 05:43:53.568411"], ["token", "Lah_nMEvb5iKOO8FyXNTMoJEHfSARFVta_YBLQik8rE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.573039"], ["updated_at", "2015-03-20 05:43:53.573039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17c51544-cec4-11e4-85f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '17c63d48-cec4-11e4-97e0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17c51544-cec4-11e4-85f4-705681abff85"], ["organization_id", "17c63d48-cec4-11e4-97e0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.576386"], ["updated_at", "2015-03-20 05:43:53.576386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$/rBxlMt2NEpN1pQxrFINqe/iNUDizqMlGbpWwD6sg/Nu.4euXOBiy"], ["created_at", "2015-03-20 05:43:53.587980"], ["updated_at", "2015-03-20 05:43:53.587980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.589844"], ["user_id", "17c88f44-cec4-11e4-8a95-705681abff85"], ["created_at", "2015-03-20 05:43:53.590631"], ["updated_at", "2015-03-20 05:43:53.590631"], ["token", "PpkcbebluCnEjB36GxhpJeu6asuEsZEIy_hIchO57aM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.593891"], ["updated_at", "2015-03-20 05:43:53.593891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17c88f44-cec4-11e4-8a95-705681abff85' AND "clubhouse_memberships"."organization_id" = '17c967b6-cec4-11e4-9959-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17c88f44-cec4-11e4-8a95-705681abff85"], ["organization_id", "17c967b6-cec4-11e4-9959-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.597403"], ["updated_at", "2015-03-20 05:43:53.597403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/17c967b6-cec4-11e4-9959-705681abff85" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"17c967b6-cec4-11e4-9959-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.602573' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PpkcbebluCnEjB36GxhpJeu6asuEsZEIy_hIchO57aM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.603957"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.604874"], ["id", "17c8f196-cec4-11e4-bf33-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "17c967b6-cec4-11e4-9959-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17c88f44-cec4-11e4-8a95-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '17c88f44-cec4-11e4-8a95-705681abff85' LIMIT 1 [["organization_id", "17c967b6-cec4-11e4-9959-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "17c967b6-cec4-11e4-9959-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$F3KhK/6KPPev7HwMqbjd7eboDpLzx5KrBpOpxDpmgiUgXVRYnar/2"], ["created_at", "2015-03-20 05:43:53.615317"], ["updated_at", "2015-03-20 05:43:53.615317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.616851"], ["user_id", "17ccb060-cec4-11e4-a1dc-705681abff85"], ["created_at", "2015-03-20 05:43:53.617623"], ["updated_at", "2015-03-20 05:43:53.617623"], ["token", "4_BA48gHs9zVUVsHBvB2OGO58MdKw56ilU5yi2SvkDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.621020"], ["updated_at", "2015-03-20 05:43:53.621020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17ccb060-cec4-11e4-a1dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '17cd8d28-cec4-11e4-89d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17ccb060-cec4-11e4-a1dc-705681abff85"], ["organization_id", "17cd8d28-cec4-11e4-89d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.625630"], ["updated_at", "2015-03-20 05:43:53.625630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$KOor4q2q/LsqCLPjk86U9uMkp2GXyTiRBRp4kZFQaZUY6Fky8vmgS"], ["created_at", "2015-03-20 05:43:53.637347"], ["updated_at", "2015-03-20 05:43:53.637347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.639391"], ["user_id", "17d01b7e-cec4-11e4-b082-705681abff85"], ["created_at", "2015-03-20 05:43:53.640194"], ["updated_at", "2015-03-20 05:43:53.640194"], ["token", "dcCFQRHXCgpQdM7622oJbC-1q4daAxXAeOeAQgaH1tM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.643498"], ["updated_at", "2015-03-20 05:43:53.643498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17d01b7e-cec4-11e4-b082-705681abff85' AND "clubhouse_memberships"."organization_id" = '17d0fa08-cec4-11e4-832c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17d01b7e-cec4-11e4-b082-705681abff85"], ["organization_id", "17d0fa08-cec4-11e4-832c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.646934"], ["updated_at", "2015-03-20 05:43:53.646934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-79" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-79", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.651580' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dcCFQRHXCgpQdM7622oJbC-1q4daAxXAeOeAQgaH1tM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.653630"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.655493"], ["id", "17d08262-cec4-11e4-a01e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-79"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17d01b7e-cec4-11e4-b082-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '17d01b7e-cec4-11e4-b082-705681abff85' LIMIT 1 [["organization_id", "17d0fa08-cec4-11e4-832c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "17d0fa08-cec4-11e4-832c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$3TkPMWj4y6lVZJYpoKnQZepHgt4.ytu8/4ssAS7Tl4S7Pq3aphTES"], ["created_at", "2015-03-20 05:43:53.666918"], ["updated_at", "2015-03-20 05:43:53.666918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.668456"], ["user_id", "17d4903c-cec4-11e4-9d78-705681abff85"], ["created_at", "2015-03-20 05:43:53.669340"], ["updated_at", "2015-03-20 05:43:53.669340"], ["token", "mT4ajrmJX7cZtbvEZfcv3nY-Qy1_SR49Qy_cxdr5s2w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.672579"], ["updated_at", "2015-03-20 05:43:53.672579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17d4903c-cec4-11e4-9d78-705681abff85' AND "clubhouse_memberships"."organization_id" = '17d5698a-cec4-11e4-9319-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17d4903c-cec4-11e4-9d78-705681abff85"], ["organization_id", "17d5698a-cec4-11e4-9319-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.675631"], ["updated_at", "2015-03-20 05:43:53.675631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$JqVzHeZKblghOvGmT2ckAOCcRqZ0HGGkaEjldt.W7/tStNA.b8f5O"], ["created_at", "2015-03-20 05:43:53.685736"], ["updated_at", "2015-03-20 05:43:53.685736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.687303"], ["user_id", "17d7702c-cec4-11e4-afdc-705681abff85"], ["created_at", "2015-03-20 05:43:53.688160"], ["updated_at", "2015-03-20 05:43:53.688160"], ["token", "BFPz5I9joq8yQcWSLy_A5BFdFhwmTJss4B1pMfP_g7A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.691455"], ["updated_at", "2015-03-20 05:43:53.691455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17d7702c-cec4-11e4-afdc-705681abff85' AND "clubhouse_memberships"."organization_id" = '17d84aa6-cec4-11e4-883b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17d7702c-cec4-11e4-afdc-705681abff85"], ["organization_id", "17d84aa6-cec4-11e4-883b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.694489"], ["updated_at", "2015-03-20 05:43:53.694489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-81" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-81", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.699595' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BFPz5I9joq8yQcWSLy_A5BFdFhwmTJss4B1pMfP_g7A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.701027"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.701965"], ["id", "17d7d38c-cec4-11e4-a114-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-81"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17d7702c-cec4-11e4-afdc-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$HRl32cCHcD./A.OcKCe4k.OFiI.VEKLZmpvI/zB4J76dk7Y0VrNQe"], ["created_at", "2015-03-20 05:43:53.710301"], ["updated_at", "2015-03-20 05:43:53.710301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:43:53.711790"], ["user_id", "17db2e1a-cec4-11e4-a9fd-705681abff85"], ["created_at", "2015-03-20 05:43:53.712547"], ["updated_at", "2015-03-20 05:43:53.712547"], ["token", "obadeaSKWDYfF4ixhS-JTkBNzUdWzvbgZUDjlQrDSu4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:43:53.716202"], ["updated_at", "2015-03-20 05:43:53.716202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17db2e1a-cec4-11e4-a9fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '17dc13d4-cec4-11e4-bf9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17db2e1a-cec4-11e4-a9fd-705681abff85"], ["organization_id", "17dc13d4-cec4-11e4-bf9a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:43:53.719386"], ["updated_at", "2015-03-20 05:43:53.719386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 22:43:53 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:43:53.724325' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "obadeaSKWDYfF4ixhS-JTkBNzUdWzvbgZUDjlQrDSu4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:43:53.726037"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:43:53.727884"], ["id", "17db8a72-cec4-11e4-aec2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (25.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$tSIWDmlPYJkG5MSCFrvTJ.9Pbgr9UIN6CmjmqSgGOxKydkJdlKZQ6"], ["created_at", "2015-03-20 05:45:53.845559"], ["updated_at", "2015-03-20 05:45:53.845559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:53.879862"], ["user_id", "5f7a2f8c-cec4-11e4-95a5-705681abff85"], ["created_at", "2015-03-20 05:45:53.887740"], ["updated_at", "2015-03-20 05:45:53.887740"], ["token", "NaTzD1ybvMMEO-p5ymOCCeSRNhcbE5qQUFq9gWa5YTs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:53.897173"], ["updated_at", "2015-03-20 05:45:53.897173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f7a2f8c-cec4-11e4-95a5-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f7e4b44-cec4-11e4-962e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f7a2f8c-cec4-11e4-95a5-705681abff85"], ["organization_id", "5f7e4b44-cec4-11e4-962e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:53.910703"], ["updated_at", "2015-03-20 05:45:53.910703"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5f7e4b44-cec4-11e4-962e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "5f7e4b44-cec4-11e4-962e-705681abff85"], ["created_at", "2015-03-20 05:45:53.920526"], ["updated_at", "2015-03-20 05:45:53.920526"], ["token", "Kc6vrEj-bGzMS7KcIvDgd_7Qa35JdNg9c2TAZYdIKNA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$P/voJneMztMrycwa4yeSh.gb6RBHdHvZkiA86Ai4BDt8EhTho4vdy"], ["created_at", "2015-03-20 05:45:53.925614"], ["updated_at", "2015-03-20 05:45:53.925614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:53.928749"], ["updated_at", "2015-03-20 05:45:53.928749"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f8295e6-cec4-11e4-a834-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f831174-cec4-11e4-bf06-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f8295e6-cec4-11e4-a834-705681abff85"], ["organization_id", "5f831174-cec4-11e4-bf06-705681abff85"], ["created_at", "2015-03-20 05:45:53.932389"], ["updated_at", "2015-03-20 05:45:53.932389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:45:53 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$0ndym4WfmBk8U8WC2rCT0e27qLmHmKTqgtrcruB0KWcxRQbsIpu4O"], ["created_at", "2015-03-20 05:45:53.966569"], ["updated_at", "2015-03-20 05:45:53.966569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:53.968289"], ["user_id", "5f88d938-cec4-11e4-be68-705681abff85"], ["created_at", "2015-03-20 05:45:53.969066"], ["updated_at", "2015-03-20 05:45:53.969066"], ["token", "0CY7XgbIccSNeGCcemtRPHl55-2sdCLePDFukGFD9Hg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:53.972544"], ["updated_at", "2015-03-20 05:45:53.972544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f88d938-cec4-11e4-be68-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f89bccc-cec4-11e4-b044-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f88d938-cec4-11e4-be68-705681abff85"], ["organization_id", "5f89bccc-cec4-11e4-b044-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:53.975957"], ["updated_at", "2015-03-20 05:45:53.975957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '5f89bccc-cec4-11e4-b044-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "5f89bccc-cec4-11e4-b044-705681abff85"], ["created_at", "2015-03-20 05:45:53.979748"], ["updated_at", "2015-03-20 05:45:53.979748"], ["token", "a66HVTtQ3bZIXdAAPHWv0tvUpwIX0Yhou8At5E0gs40"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$MP3NbJe4ETebvAS/iQvbde8m4eilNqVh5Wmeg0IYFD9qdIWZooOyy"], ["created_at", "2015-03-20 05:45:53.985500"], ["updated_at", "2015-03-20 05:45:53.985500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:53.989598"], ["updated_at", "2015-03-20 05:45:53.989598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f8bc760-cec4-11e4-a98f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f8c5874-cec4-11e4-ac13-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f8bc760-cec4-11e4-a98f-705681abff85"], ["organization_id", "5f8c5874-cec4-11e4-ac13-705681abff85"], ["created_at", "2015-03-20 05:45:53.992783"], ["updated_at", "2015-03-20 05:45:53.992783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:45:53 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:53.998926' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0CY7XgbIccSNeGCcemtRPHl55-2sdCLePDFukGFD9Hg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.005870"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.007030"], ["id", "5f893d4c-cec4-11e4-8775-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f88d938-cec4-11e4-be68-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5f88d938-cec4-11e4-be68-705681abff85' LIMIT 1 [["organization_id", "5f89bccc-cec4-11e4-b044-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "5f89bccc-cec4-11e4-b044-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('5f89bccc-cec4-11e4-b044-705681abff85') Completed 200 OK in 37ms (Views: 8.8ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Yx786OlDZcieeBvwYfK4ZenCIfd16GLOqmJlopn9S4OQhK/6xt99K"], ["created_at", "2015-03-20 05:45:54.045279"], ["updated_at", "2015-03-20 05:45:54.045279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.047209"], ["user_id", "5f94e0e8-cec4-11e4-9774-705681abff85"], ["created_at", "2015-03-20 05:45:54.048000"], ["updated_at", "2015-03-20 05:45:54.048000"], ["token", "MvsvySsnGizUkS1HKKzp1oNGFYhUEjNeCpV27FJQEMw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.051545"], ["updated_at", "2015-03-20 05:45:54.051545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f94e0e8-cec4-11e4-9774-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f95d7d2-cec4-11e4-a2cc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f94e0e8-cec4-11e4-9774-705681abff85"], ["organization_id", "5f95d7d2-cec4-11e4-a2cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.055375"], ["updated_at", "2015-03-20 05:45:54.055375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '5f95d7d2-cec4-11e4-a2cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "5f95d7d2-cec4-11e4-a2cc-705681abff85"], ["created_at", "2015-03-20 05:45:54.059200"], ["updated_at", "2015-03-20 05:45:54.059200"], ["token", "oAoOWySs-T2TU1eUg2PoLRjPWrv0jSqliNP91Ob8WAo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$aPSbQFB2bdckGYZ2.XXq/u1ILSYOrmzg7jDdNQKx91Ph4abPe8yy."], ["created_at", "2015-03-20 05:45:54.072256"], ["updated_at", "2015-03-20 05:45:54.072256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.074080"], ["user_id", "5f98fb6a-cec4-11e4-a8c1-705681abff85"], ["created_at", "2015-03-20 05:45:54.075073"], ["updated_at", "2015-03-20 05:45:54.075073"], ["token", "jPKdH67w0WZSIlot8quw0_MorJmyblAjMg3xO5mfnZc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.079392"], ["updated_at", "2015-03-20 05:45:54.079392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f98fb6a-cec4-11e4-a8c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '5f9a0ec4-cec4-11e4-ac2f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5f98fb6a-cec4-11e4-a8c1-705681abff85"], ["organization_id", "5f9a0ec4-cec4-11e4-ac2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.082916"], ["updated_at", "2015-03-20 05:45:54.082916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '5f9a0ec4-cec4-11e4-ac2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "5f9a0ec4-cec4-11e4-ac2f-705681abff85"], ["created_at", "2015-03-20 05:45:54.086482"], ["updated_at", "2015-03-20 05:45:54.086482"], ["token", "X5jG2ESCKeVBcoO54R_CvHkdJ_sFTcW1pAPu2K7Nchs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5f9a0ec4-cec4-11e4-ac2f-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"5f9a0ec4-cec4-11e4-ac2f-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:54.091327' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jPKdH67w0WZSIlot8quw0_MorJmyblAjMg3xO5mfnZc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.092737"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.093731"], ["id", "5f9979b4-cec4-11e4-a05b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5f9a0ec4-cec4-11e4-ac2f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5f98fb6a-cec4-11e4-a8c1-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f9a0ec4-cec4-11e4-ac2f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5f98fb6a-cec4-11e4-a8c1-705681abff85' LIMIT 1 [["organization_id", "5f9a0ec4-cec4-11e4-ac2f-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5f9a0ec4-cec4-11e4-ac2f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5f9a0ec4-cec4-11e4-ac2f-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.105501"], ["updated_at", "2015-03-20 05:45:54.105501"], ["token", "iZ3zujPZqee1K81QvMYUhaDuSmi7EZQiNeWbSbyCxgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9719ad4c-abf2-4f4b-a4b8-a9bffa9b650c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5f9e15c8-cec4-11e4-ba1a-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5f9e15c8-cec4-11e4-ba1a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9719ad4c-abf2-4f4b-a4b8-a9bffa9b650c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5f9e15c8-cec4-11e4-ba1a-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [9719ad4c-abf2-4f4b-a4b8-a9bffa9b650c] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5f9a0ec4-cec4-11e4-ac2f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [9719ad4c-abf2-4f4b-a4b8-a9bffa9b650c] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [9719ad4c-abf2-4f4b-a4b8-a9bffa9b650c] Clubhouse::Mailer#invitation: processed outbound mail in 253.2ms [ActiveJob] [ActionMailer::DeliveryJob] [9719ad4c-abf2-4f4b-a4b8-a9bffa9b650c] Sent mail to email@example.com (8.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [9719ad4c-abf2-4f4b-a4b8-a9bffa9b650c] Date: Thu, 19 Mar 2015 22:45:54 -0700 From: from@example.com To: email@example.com Message-ID: <550bb4126241d_113a3fd564845bd8205c3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/iZ3zujPZqee1K81QvMYUhaDuSmi7EZQiNeWbSbyCxgQ?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9719ad4c-abf2-4f4b-a4b8-a9bffa9b650c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 262.37ms Completed 201 Created in 317ms (Views: 1.2ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$sPCjXu4o4OSSaU26jSE9uez5mn4yRbBbYMjFp6ktZ51Yk1jJNEJca"], ["created_at", "2015-03-20 05:45:54.415820"], ["updated_at", "2015-03-20 05:45:54.415820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.418099"], ["user_id", "5fcd66c0-cec4-11e4-a100-705681abff85"], ["created_at", "2015-03-20 05:45:54.419485"], ["updated_at", "2015-03-20 05:45:54.419485"], ["token", "nQ7B2LJ96KhuK7TO4kmvBogJ_CJoD15aTLTht2ZwArg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.424354"], ["updated_at", "2015-03-20 05:45:54.424354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fcd66c0-cec4-11e4-a100-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fceafda-cec4-11e4-8cee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fcd66c0-cec4-11e4-a100-705681abff85"], ["organization_id", "5fceafda-cec4-11e4-8cee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.427838"], ["updated_at", "2015-03-20 05:45:54.427838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '5fceafda-cec4-11e4-8cee-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "5fceafda-cec4-11e4-8cee-705681abff85"], ["created_at", "2015-03-20 05:45:54.431636"], ["updated_at", "2015-03-20 05:45:54.431636"], ["token", "WpWELflcrJLYzzDH_BXlwczbhwqi-60rY31cN4XVoUI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5fceafda-cec4-11e4-8cee-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"5fceafda-cec4-11e4-8cee-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:54.436937' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nQ7B2LJ96KhuK7TO4kmvBogJ_CJoD15aTLTht2ZwArg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.438523"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.439600"], ["id", "5fce0e86-cec4-11e4-8483-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5fceafda-cec4-11e4-8cee-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fcd66c0-cec4-11e4-a100-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5fceafda-cec4-11e4-8cee-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5fcd66c0-cec4-11e4-a100-705681abff85' LIMIT 1 [["organization_id", "5fceafda-cec4-11e4-8cee-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5fceafda-cec4-11e4-8cee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5fceafda-cec4-11e4-8cee-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.448264"], ["updated_at", "2015-03-20 05:45:54.448264"], ["token", "gcgbLWfzWwZ1gJ1tRs8MkJIrkbiXt0cN8LciosJS4QY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5cc95ddf-50b2-48c8-b617-e57c1b1b4bff) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5fd25f0e-cec4-11e4-8425-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5fd25f0e-cec4-11e4-8425-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5cc95ddf-50b2-48c8-b617-e57c1b1b4bff] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5fd25f0e-cec4-11e4-8425-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [5cc95ddf-50b2-48c8-b617-e57c1b1b4bff] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5fceafda-cec4-11e4-8cee-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5cc95ddf-50b2-48c8-b617-e57c1b1b4bff] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [5cc95ddf-50b2-48c8-b617-e57c1b1b4bff] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [5cc95ddf-50b2-48c8-b617-e57c1b1b4bff] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [5cc95ddf-50b2-48c8-b617-e57c1b1b4bff] Date: Thu, 19 Mar 2015 22:45:54 -0700 From: from@example.com To: email@example.com Message-ID: <550bb4126f624_113a3fd564845bd8206ea@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/gcgbLWfzWwZ1gJ1tRs8MkJIrkbiXt0cN8LciosJS4QY?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5cc95ddf-50b2-48c8-b617-e57c1b1b4bff] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.67ms Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$9LnWjrXgB2WR1I3mkDCvEOpCCSwUDwj9hsNQcLpnGnLU.sAsq9b1S"], ["created_at", "2015-03-20 05:45:54.465708"], ["updated_at", "2015-03-20 05:45:54.465708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.467344"], ["user_id", "5fd50150-cec4-11e4-85f6-705681abff85"], ["created_at", "2015-03-20 05:45:54.468150"], ["updated_at", "2015-03-20 05:45:54.468150"], ["token", "_7PbDlsoU8rxJEDHbfnagiLgar8zO2zxSm2BP6GeFuk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.471631"], ["updated_at", "2015-03-20 05:45:54.471631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fd50150-cec4-11e4-85f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fd5e368-cec4-11e4-bb25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fd50150-cec4-11e4-85f6-705681abff85"], ["organization_id", "5fd5e368-cec4-11e4-bb25-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.474705"], ["updated_at", "2015-03-20 05:45:54.474705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '5fd5e368-cec4-11e4-bb25-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "5fd5e368-cec4-11e4-bb25-705681abff85"], ["created_at", "2015-03-20 05:45:54.477906"], ["updated_at", "2015-03-20 05:45:54.477906"], ["token", "FsFrJY1502zriYg0MBkFXZhkv4RUFuvQpngpMz_1mq4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5fd5e368-cec4-11e4-bb25-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"5fd5e368-cec4-11e4-bb25-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:54.484537' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_7PbDlsoU8rxJEDHbfnagiLgar8zO2zxSm2BP6GeFuk"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.486730"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.488530"], ["id", "5fd566a4-cec4-11e4-9bad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5fd5e368-cec4-11e4-bb25-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fd50150-cec4-11e4-85f6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5fd5e368-cec4-11e4-bb25-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5fd50150-cec4-11e4-85f6-705681abff85' LIMIT 1 [["organization_id", "5fd5e368-cec4-11e4-bb25-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '5fd5e368-cec4-11e4-bb25-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$viwRAfRCUGGHqpqo5uI3feFin9msc70xQaViUTXFdZ6QtqyCJw0yq"], ["created_at", "2015-03-20 05:45:54.504273"], ["updated_at", "2015-03-20 05:45:54.504273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.505793"], ["user_id", "5fdae066-cec4-11e4-b9db-705681abff85"], ["created_at", "2015-03-20 05:45:54.506531"], ["updated_at", "2015-03-20 05:45:54.506531"], ["token", "im9UP9IvvH158EmIDm-qNoe9HLZNIWS2gXPrTgf8VGw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.509719"], ["updated_at", "2015-03-20 05:45:54.509719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fdae066-cec4-11e4-b9db-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fdbb306-cec4-11e4-853b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fdae066-cec4-11e4-b9db-705681abff85"], ["organization_id", "5fdbb306-cec4-11e4-853b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.512763"], ["updated_at", "2015-03-20 05:45:54.512763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '5fdbb306-cec4-11e4-853b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "5fdbb306-cec4-11e4-853b-705681abff85"], ["created_at", "2015-03-20 05:45:54.516048"], ["updated_at", "2015-03-20 05:45:54.516048"], ["token", "qDh3ZHsRagxDPG7jKZulQ6X-GvLkwsMWb250aJFnnjU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$tHGF2gjxNfSIriMdidDlMeWzvYVMaN53NOSLYfcoat4NDawFWeNYS"], ["created_at", "2015-03-20 05:45:54.525683"], ["updated_at", "2015-03-20 05:45:54.525683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.527226"], ["user_id", "5fde250a-cec4-11e4-bb79-705681abff85"], ["created_at", "2015-03-20 05:45:54.527964"], ["updated_at", "2015-03-20 05:45:54.527964"], ["token", "8r4EE_VBEx9KqZLqP25JUL-wwNitMt3OOVNwwbXFcu8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.531753"], ["updated_at", "2015-03-20 05:45:54.531753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fde250a-cec4-11e4-bb79-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fdf1cda-cec4-11e4-8cef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fde250a-cec4-11e4-bb79-705681abff85"], ["organization_id", "5fdf1cda-cec4-11e4-8cef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.535738"], ["updated_at", "2015-03-20 05:45:54.535738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '5fdf1cda-cec4-11e4-8cef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "5fdf1cda-cec4-11e4-8cef-705681abff85"], ["created_at", "2015-03-20 05:45:54.539146"], ["updated_at", "2015-03-20 05:45:54.539146"], ["token", "DKCCWa2SaF31Hk0xQOqcTHV3i5SXx22KlO_JCHHj8gQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/5fe03476-cec4-11e4-8d02-705681abff85" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"5fe03476-cec4-11e4-8d02-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:54.543713' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8r4EE_VBEx9KqZLqP25JUL-wwNitMt3OOVNwwbXFcu8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.545175"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.546130"], ["id", "5fde8202-cec4-11e4-bf07-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5fe03476-cec4-11e4-8d02-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fde250a-cec4-11e4-bb79-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5fdf1cda-cec4-11e4-8cef-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5fde250a-cec4-11e4-bb79-705681abff85' LIMIT 1 [["organization_id", "5fdf1cda-cec4-11e4-8cef-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "5fe03476-cec4-11e4-8d02-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$H/Z8.1RNV7tPMRyA8e.zPurhJSfA7Gd0/RG4nKgWA/yTTJWhw6g9C"], ["created_at", "2015-03-20 05:45:54.557629"], ["updated_at", "2015-03-20 05:45:54.557629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.559140"], ["user_id", "5fe30494-cec4-11e4-afc8-705681abff85"], ["created_at", "2015-03-20 05:45:54.559876"], ["updated_at", "2015-03-20 05:45:54.559876"], ["token", "vCNai5_0rtwI6jjD2VutshM7HvRlxofF6FDw2dONzKc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.563037"], ["updated_at", "2015-03-20 05:45:54.563037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fe30494-cec4-11e4-afc8-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fe3d7fc-cec4-11e4-b95b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fe30494-cec4-11e4-afc8-705681abff85"], ["organization_id", "5fe3d7fc-cec4-11e4-b95b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.566399"], ["updated_at", "2015-03-20 05:45:54.566399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '5fe3d7fc-cec4-11e4-b95b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "5fe3d7fc-cec4-11e4-b95b-705681abff85"], ["created_at", "2015-03-20 05:45:54.569601"], ["updated_at", "2015-03-20 05:45:54.569601"], ["token", "V-QDRPpoBfx8CcooY_mSw2awyJXhZSflnPdrlBAZzs8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$cmO4KyImQdRFandKZeEgJO17ReDpfpxOAzbGuDaHIG.IAyYb9IYZ."], ["created_at", "2015-03-20 05:45:54.579656"], ["updated_at", "2015-03-20 05:45:54.579656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.581512"], ["user_id", "5fe66346-cec4-11e4-a1a4-705681abff85"], ["created_at", "2015-03-20 05:45:54.582654"], ["updated_at", "2015-03-20 05:45:54.582654"], ["token", "N5-fWwmuHe-wfrT-5VdQqt-I8prP5CuElt0PID75-gY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.586045"], ["updated_at", "2015-03-20 05:45:54.586045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fe66346-cec4-11e4-a1a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fe7586e-cec4-11e4-9f2d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fe66346-cec4-11e4-a1a4-705681abff85"], ["organization_id", "5fe7586e-cec4-11e4-9f2d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.589623"], ["updated_at", "2015-03-20 05:45:54.589623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '5fe7586e-cec4-11e4-9f2d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "5fe7586e-cec4-11e4-9f2d-705681abff85"], ["created_at", "2015-03-20 05:45:54.593275"], ["updated_at", "2015-03-20 05:45:54.593275"], ["token", "iutwSavc2YL2FuUmL0KQFzn3zp_IAfktw3jpoanMSn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/5fe87708-cec4-11e4-8bca-705681abff85" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"5fe87708-cec4-11e4-8bca-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:54.597821' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N5-fWwmuHe-wfrT-5VdQqt-I8prP5CuElt0PID75-gY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.599214"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.600154"], ["id", "5fe6df06-cec4-11e4-b45f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5fe87708-cec4-11e4-8bca-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5fe66346-cec4-11e4-a1a4-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5fe7586e-cec4-11e4-9f2d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5fe66346-cec4-11e4-a1a4-705681abff85' LIMIT 1 [["organization_id", "5fe7586e-cec4-11e4-9f2d-705681abff85"]] Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$w65zi.ak8p5QGFokrwOEVOOsaEAKHty.qgR736QoYX3KMNwnXLCnG"], ["created_at", "2015-03-20 05:45:54.611395"], ["updated_at", "2015-03-20 05:45:54.611395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.612919"], ["user_id", "5feb3916-cec4-11e4-bc7f-705681abff85"], ["created_at", "2015-03-20 05:45:54.613655"], ["updated_at", "2015-03-20 05:45:54.613655"], ["token", "bB9YjVfvBzKJP8E06bEYvux1pE63xraCgz-p7ra6d14"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.617086"], ["updated_at", "2015-03-20 05:45:54.617086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5feb3916-cec4-11e4-bc7f-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fec161a-cec4-11e4-b2c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5feb3916-cec4-11e4-bc7f-705681abff85"], ["organization_id", "5fec161a-cec4-11e4-b2c3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.620342"], ["updated_at", "2015-03-20 05:45:54.620342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '5fec161a-cec4-11e4-b2c3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "5fec161a-cec4-11e4-b2c3-705681abff85"], ["created_at", "2015-03-20 05:45:54.623526"], ["updated_at", "2015-03-20 05:45:54.623526"], ["token", "tCvAcePr_keZoK8R3zeY3f5NRDTxeP5MklwHX-8amX8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$Jatgsrmx0MlJAijrnZrrC.CPlxLLunYOqSYWexSTawRyhnfb0DPa2"], ["created_at", "2015-03-20 05:45:54.635707"], ["updated_at", "2015-03-20 05:45:54.635707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.637307"], ["user_id", "5feef0ce-cec4-11e4-a14a-705681abff85"], ["created_at", "2015-03-20 05:45:54.638074"], ["updated_at", "2015-03-20 05:45:54.638074"], ["token", "Tab5HdWIW29ieyN3zCvHDBUZIaId6OduiIARoIWvtvY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.641263"], ["updated_at", "2015-03-20 05:45:54.641263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5feef0ce-cec4-11e4-a14a-705681abff85' AND "clubhouse_memberships"."organization_id" = '5fefc4cc-cec4-11e4-9a59-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5feef0ce-cec4-11e4-a14a-705681abff85"], ["organization_id", "5fefc4cc-cec4-11e4-9a59-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.644746"], ["updated_at", "2015-03-20 05:45:54.644746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '5fefc4cc-cec4-11e4-9a59-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "5fefc4cc-cec4-11e4-9a59-705681abff85"], ["created_at", "2015-03-20 05:45:54.648154"], ["updated_at", "2015-03-20 05:45:54.648154"], ["token", "fXGr4JV_TFYbmf3vedZUyymkc5aDiY17xqR_khswGoQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:54.653739' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Tab5HdWIW29ieyN3zCvHDBUZIaId6OduiIARoIWvtvY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.655123"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.656107"], ["id", "5fef50be-cec4-11e4-9d23-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5feef0ce-cec4-11e4-a14a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5fefc4cc-cec4-11e4-9a59-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5feef0ce-cec4-11e4-a14a-705681abff85' LIMIT 1 [["organization_id", "5fefc4cc-cec4-11e4-9a59-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5fefc4cc-cec4-11e4-9a59-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5fefc4cc-cec4-11e4-9a59-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.664405"], ["updated_at", "2015-03-20 05:45:54.664405"], ["token", "38zxuuc37mZ_7hD0r2nzYaOZ8blyfZwwHOZZ1g7gRVA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b1833254-67af-4623-8968-ae8bcccb75b4) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5ff359c0-cec4-11e4-b43d-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5ff359c0-cec4-11e4-b43d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b1833254-67af-4623-8968-ae8bcccb75b4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5ff359c0-cec4-11e4-b43d-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [b1833254-67af-4623-8968-ae8bcccb75b4] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5fefc4cc-cec4-11e4-9a59-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b1833254-67af-4623-8968-ae8bcccb75b4] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [b1833254-67af-4623-8968-ae8bcccb75b4] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [b1833254-67af-4623-8968-ae8bcccb75b4] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [b1833254-67af-4623-8968-ae8bcccb75b4] Date: Thu, 19 Mar 2015 22:45:54 -0700 From: from@example.com To: email@example.com Message-ID: <550bb412a406f_113a3fd564845bd820799@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/38zxuuc37mZ_7hD0r2nzYaOZ8blyfZwwHOZZ1g7gRVA?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b1833254-67af-4623-8968-ae8bcccb75b4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.24ms Completed 201 Created in 21ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$1V0mJZEm97QE.9SkT0HMbOFLWx/.J0etIooRkzlOF5zA3FP.4S2xO"], ["created_at", "2015-03-20 05:45:54.679923"], ["updated_at", "2015-03-20 05:45:54.679923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.681741"], ["user_id", "5ff5adf6-cec4-11e4-82d9-705681abff85"], ["created_at", "2015-03-20 05:45:54.682613"], ["updated_at", "2015-03-20 05:45:54.682613"], ["token", "W3d9iUfrKL2a9_F8m3iMuKi1Cxz8JfJlupiad8TBrQc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.686074"], ["updated_at", "2015-03-20 05:45:54.686074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ff5adf6-cec4-11e4-82d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ff69b9e-cec4-11e4-868a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ff5adf6-cec4-11e4-82d9-705681abff85"], ["organization_id", "5ff69b9e-cec4-11e4-868a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.689178"], ["updated_at", "2015-03-20 05:45:54.689178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '5ff69b9e-cec4-11e4-868a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "5ff69b9e-cec4-11e4-868a-705681abff85"], ["created_at", "2015-03-20 05:45:54.692353"], ["updated_at", "2015-03-20 05:45:54.692353"], ["token", "l-q9ls3xhtVX4yZxKH5s6DDulw5LBJIZIcvwQCuE8UM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:54.698112' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "W3d9iUfrKL2a9_F8m3iMuKi1Cxz8JfJlupiad8TBrQc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.699617"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.700872"], ["id", "5ff61fde-cec4-11e4-a9d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5ff5adf6-cec4-11e4-82d9-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5ff69b9e-cec4-11e4-868a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ff5adf6-cec4-11e4-82d9-705681abff85' LIMIT 1 [["organization_id", "5ff69b9e-cec4-11e4-868a-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5ff69b9e-cec4-11e4-868a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5ff69b9e-cec4-11e4-868a-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.708051"], ["updated_at", "2015-03-20 05:45:54.708051"], ["token", "RIJn8YEBy8chl6salCe0ipccO1eWIZXpos1SwdAXoVA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c95f3d63-555c-4025-ae41-f070bae1e44a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5ff9fece-cec4-11e4-981e-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5ff9fece-cec4-11e4-981e-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c95f3d63-555c-4025-ae41-f070bae1e44a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5ff9fece-cec4-11e4-981e-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [c95f3d63-555c-4025-ae41-f070bae1e44a] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5ff69b9e-cec4-11e4-868a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c95f3d63-555c-4025-ae41-f070bae1e44a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [c95f3d63-555c-4025-ae41-f070bae1e44a] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [c95f3d63-555c-4025-ae41-f070bae1e44a] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [c95f3d63-555c-4025-ae41-f070bae1e44a] Date: Thu, 19 Mar 2015 22:45:54 -0700 From: from@example.com To: email@example.com Message-ID: <550bb412af1c8_113a3fd564845bd820824@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/RIJn8YEBy8chl6salCe0ipccO1eWIZXpos1SwdAXoVA?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [c95f3d63-555c-4025-ae41-f070bae1e44a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.68ms Completed 201 Created in 21ms (Views: 0.9ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$abFVYLuT2TD5Oyjoui3CI.HTPmNZ9J5NVKXHP8/JKk0nCmPSGKBUe"], ["created_at", "2015-03-20 05:45:54.726356"], ["updated_at", "2015-03-20 05:45:54.726356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.727966"], ["user_id", "5ffcc474-cec4-11e4-88a7-705681abff85"], ["created_at", "2015-03-20 05:45:54.728810"], ["updated_at", "2015-03-20 05:45:54.728810"], ["token", "JdNN_rqjKb7ek1LUXBtR3XZqClerMTRgTR_uNsRIarM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.732703"], ["updated_at", "2015-03-20 05:45:54.732703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ffcc474-cec4-11e4-88a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '5ffdbf5a-cec4-11e4-8f69-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ffcc474-cec4-11e4-88a7-705681abff85"], ["organization_id", "5ffdbf5a-cec4-11e4-8f69-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.736566"], ["updated_at", "2015-03-20 05:45:54.736566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '5ffdbf5a-cec4-11e4-8f69-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "5ffdbf5a-cec4-11e4-8f69-705681abff85"], ["created_at", "2015-03-20 05:45:54.739763"], ["updated_at", "2015-03-20 05:45:54.739763"], ["token", "y-sdLxoiEGd-N3sYUp0WHJMpmd2_rEoH_666kIT3S1M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:54.744434' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JdNN_rqjKb7ek1LUXBtR3XZqClerMTRgTR_uNsRIarM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.745819"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.746905"], ["id", "5ffd32b0-cec4-11e4-86f5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5ffcc474-cec4-11e4-88a7-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5ffdbf5a-cec4-11e4-8f69-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5ffcc474-cec4-11e4-88a7-705681abff85' LIMIT 1 [["organization_id", "5ffdbf5a-cec4-11e4-8f69-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '5ffdbf5a-cec4-11e4-8f69-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$LHt1ga9VnKJj40gxAQGE9.kaRYgRqiaZC3R0jG.NieJ7zD6ePfVZK"], ["created_at", "2015-03-20 05:45:54.761846"], ["updated_at", "2015-03-20 05:45:54.761846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.763395"], ["user_id", "60022e6e-cec4-11e4-ab1b-705681abff85"], ["created_at", "2015-03-20 05:45:54.764116"], ["updated_at", "2015-03-20 05:45:54.764116"], ["token", "c99IYCOSUXnax2CKGNP16zubk_pmH09y6YHpuu_9lg0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.767698"], ["updated_at", "2015-03-20 05:45:54.767698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60022e6e-cec4-11e4-ab1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '600311b2-cec4-11e4-b42b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60022e6e-cec4-11e4-ab1b-705681abff85"], ["organization_id", "600311b2-cec4-11e4-b42b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.770870"], ["updated_at", "2015-03-20 05:45:54.770870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '600311b2-cec4-11e4-b42b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "600311b2-cec4-11e4-b42b-705681abff85"], ["created_at", "2015-03-20 05:45:54.774043"], ["updated_at", "2015-03-20 05:45:54.774043"], ["token", "dYGqsdMnGez5IvPBpTYQazVk_55PIpvV2WIVwMsu4Q0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$jvfzL6tYHgPkV4lcjboDYeabqm3Sf0pZD2zREgiIBI.pkHnhzPNy6"], ["created_at", "2015-03-20 05:45:54.784815"], ["updated_at", "2015-03-20 05:45:54.784815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.786407"], ["user_id", "6005b138-cec4-11e4-8d16-705681abff85"], ["created_at", "2015-03-20 05:45:54.787174"], ["updated_at", "2015-03-20 05:45:54.787174"], ["token", "oDG0DrR9oQR6zbIV6qH7hCbY7wQnPl_joBqUK4bDqp8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.790363"], ["updated_at", "2015-03-20 05:45:54.790363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6005b138-cec4-11e4-8d16-705681abff85' AND "clubhouse_memberships"."organization_id" = '6006869e-cec4-11e4-839d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6005b138-cec4-11e4-8d16-705681abff85"], ["organization_id", "6006869e-cec4-11e4-839d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.794077"], ["updated_at", "2015-03-20 05:45:54.794077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '6006869e-cec4-11e4-839d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "6006869e-cec4-11e4-839d-705681abff85"], ["created_at", "2015-03-20 05:45:54.797523"], ["updated_at", "2015-03-20 05:45:54.797523"], ["token", "ymvD5ynr-PlegeLTrfC9JaufNBEUQAy95ESrWyVXRd0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/6007a36c-cec4-11e4-aa5b-705681abff85" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"6007a36c-cec4-11e4-aa5b-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:54.802508' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "oDG0DrR9oQR6zbIV6qH7hCbY7wQnPl_joBqUK4bDqp8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.803874"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.804935"], ["id", "60060fac-cec4-11e4-8313-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6007a36c-cec4-11e4-aa5b-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6005b138-cec4-11e4-8d16-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6006869e-cec4-11e4-839d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6005b138-cec4-11e4-8d16-705681abff85' LIMIT 1 [["organization_id", "6006869e-cec4-11e4-839d-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."id" != '6007a36c-cec4-11e4-aa5b-705681abff85' AND "clubhouse_invitations"."organization_id" = '6006869e-cec4-11e4-839d-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:45:54.811992"], ["id", "6007a36c-cec4-11e4-aa5b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Rpc/nCxD8jnkYxd2dnGfFuzXJENdVaNhViBY4msZLsFAH4osdAZ3O"], ["created_at", "2015-03-20 05:45:54.820226"], ["updated_at", "2015-03-20 05:45:54.820226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.821770"], ["user_id", "600b161e-cec4-11e4-a01e-705681abff85"], ["created_at", "2015-03-20 05:45:54.822510"], ["updated_at", "2015-03-20 05:45:54.822510"], ["token", "bbOAKGy2PQjv-rgN6hzMmtyqkal3YA9WlHVD3SPYPrA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.825665"], ["updated_at", "2015-03-20 05:45:54.825665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '600b161e-cec4-11e4-a01e-705681abff85' AND "clubhouse_memberships"."organization_id" = '600be800-cec4-11e4-aeec-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "600b161e-cec4-11e4-a01e-705681abff85"], ["organization_id", "600be800-cec4-11e4-aeec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.828765"], ["updated_at", "2015-03-20 05:45:54.828765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '600be800-cec4-11e4-aeec-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "600be800-cec4-11e4-aeec-705681abff85"], ["created_at", "2015-03-20 05:45:54.832670"], ["updated_at", "2015-03-20 05:45:54.832670"], ["token", "lYSJDUuKP-Qctx0qXyZqLil-F5BEohYhkt8LI8YFFTU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$lVoEGyGuZwUjXRnT67iUaOjPr1stH0tZ4bxJXr2Vv8kFoPZqZkqKm"], ["created_at", "2015-03-20 05:45:54.837781"], ["updated_at", "2015-03-20 05:45:54.837781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.840702"], ["updated_at", "2015-03-20 05:45:54.840702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '600dc33c-cec4-11e4-843a-705681abff85' AND "clubhouse_memberships"."organization_id" = '600e3330-cec4-11e4-992b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "600dc33c-cec4-11e4-843a-705681abff85"], ["organization_id", "600e3330-cec4-11e4-992b-705681abff85"], ["created_at", "2015-03-20 05:45:54.843652"], ["updated_at", "2015-03-20 05:45:54.843652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$UCHYkOcdW.JFLHc1Fk4apO88SKzF.Km10g9Nw5Hqon8HYfCC4S7iC"], ["created_at", "2015-03-20 05:45:54.854190"], ["updated_at", "2015-03-20 05:45:54.854190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:54.855761"], ["user_id", "601045ee-cec4-11e4-ae4d-705681abff85"], ["created_at", "2015-03-20 05:45:54.856560"], ["updated_at", "2015-03-20 05:45:54.856560"], ["token", "TLH8-pbtGm2QovKISyUSaBG5WAgIcI_NocevN2PXCiU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.859845"], ["updated_at", "2015-03-20 05:45:54.859845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '601045ee-cec4-11e4-ae4d-705681abff85' AND "clubhouse_memberships"."organization_id" = '60111f8c-cec4-11e4-a482-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "601045ee-cec4-11e4-ae4d-705681abff85"], ["organization_id", "60111f8c-cec4-11e4-a482-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:54.863201"], ["updated_at", "2015-03-20 05:45:54.863201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '60111f8c-cec4-11e4-a482-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "60111f8c-cec4-11e4-a482-705681abff85"], ["created_at", "2015-03-20 05:45:54.866802"], ["updated_at", "2015-03-20 05:45:54.866802"], ["token", "KslO3UJs6z2WmXnHgD0bDOaf17D774dRIGjEZvCsHV8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$IvYwQfjcwZEpq1wCjhgncOSZbByxA7zLG8HP8QJpWYIWH1hiNWcfy"], ["created_at", "2015-03-20 05:45:54.871130"], ["updated_at", "2015-03-20 05:45:54.871130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.873967"], ["updated_at", "2015-03-20 05:45:54.873967"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6012d8d6-cec4-11e4-8aec-705681abff85' AND "clubhouse_memberships"."organization_id" = '601346ae-cec4-11e4-ad52-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6012d8d6-cec4-11e4-8aec-705681abff85"], ["organization_id", "601346ae-cec4-11e4-ad52-705681abff85"], ["created_at", "2015-03-20 05:45:54.878029"], ["updated_at", "2015-03-20 05:45:54.878029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/60111f8c-cec4-11e4-a482-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:45:54 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"60111f8c-cec4-11e4-a482-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:54.882966' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TLH8-pbtGm2QovKISyUSaBG5WAgIcI_NocevN2PXCiU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:54.884430"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:54.885425"], ["id", "6010a78c-cec4-11e4-b631-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "60111f8c-cec4-11e4-a482-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "601045ee-cec4-11e4-ae4d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '601045ee-cec4-11e4-ae4d-705681abff85' LIMIT 1 [["organization_id", "60111f8c-cec4-11e4-a482-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "60111f8c-cec4-11e4-a482-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('60111f8c-cec4-11e4-a482-705681abff85') Completed 200 OK in 10ms (Views: 2.0ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$coMd1k36RUr6Nc1/wGAhHuji0ja/qUjkou36o.3AafbB.h0UtcnGi"], ["created_at", "2015-03-20 05:45:54.898758"], ["updated_at", "2015-03-20 05:45:54.898758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$uqoAX5HRuFfIvlfZSCgdc.ufmjwVkv8v/tzibVTJpCKDe1KV14MEi"], ["created_at", "2015-03-20 05:45:54.903059"], ["updated_at", "2015-03-20 05:45:54.903059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.906100"], ["updated_at", "2015-03-20 05:45:54.906100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6017b91e-cec4-11e4-868a-705681abff85' AND "clubhouse_memberships"."organization_id" = '60182f84-cec4-11e4-a0e6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6017b91e-cec4-11e4-868a-705681abff85"], ["organization_id", "60182f84-cec4-11e4-a0e6-705681abff85"], ["created_at", "2015-03-20 05:45:54.909371"], ["updated_at", "2015-03-20 05:45:54.909371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '601713a6-cec4-11e4-a39d-705681abff85' LIMIT 1 [["organization_id", "60182f84-cec4-11e4-a0e6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$ZjAwgEmxHA31yxClrpaciOCo2avtPNOLGTGZXVD4udKaNyWcQjS6O"], ["created_at", "2015-03-20 05:45:54.916451"], ["updated_at", "2015-03-20 05:45:54.916451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$CLxd9bIkGbOO.JtzMIctsOa5xoru.2Q76ufEaoxJ5D3/FFZJZipCC"], ["created_at", "2015-03-20 05:45:54.920628"], ["updated_at", "2015-03-20 05:45:54.920628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.923502"], ["updated_at", "2015-03-20 05:45:54.923502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '601a657e-cec4-11e4-91b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '601ad568-cec4-11e4-9922-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "601a657e-cec4-11e4-91b7-705681abff85"], ["organization_id", "601ad568-cec4-11e4-9922-705681abff85"], ["created_at", "2015-03-20 05:45:54.926493"], ["updated_at", "2015-03-20 05:45:54.926493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6019c6b4-cec4-11e4-98b7-705681abff85' LIMIT 1 [["organization_id", "601ad568-cec4-11e4-9922-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$z7KYLQ9qHj0Rig2.osEHpumSe1COm.L3nylwkYyggjxPhuLxPvfBi"], ["created_at", "2015-03-20 05:45:54.933313"], ["updated_at", "2015-03-20 05:45:54.933313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$JfdCz5jzGk8ROmBKMP1Weem4I5DkkES5HmUHeEGdzx3aIVoabMfpO"], ["created_at", "2015-03-20 05:45:54.937687"], ["updated_at", "2015-03-20 05:45:54.937687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.941036"], ["updated_at", "2015-03-20 05:45:54.941036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '601d07c0-cec4-11e4-9264-705681abff85' AND "clubhouse_memberships"."organization_id" = '601d8916-cec4-11e4-9e82-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "601d07c0-cec4-11e4-9264-705681abff85"], ["organization_id", "601d8916-cec4-11e4-9e82-705681abff85"], ["created_at", "2015-03-20 05:45:54.944376"], ["updated_at", "2015-03-20 05:45:54.944376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$8CWrEm4q92CJOa1DBCr0KOwFzbm2E16Tz10R4UFTvJyq16e/ameUy"], ["created_at", "2015-03-20 05:45:54.950232"], ["updated_at", "2015-03-20 05:45:54.950232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$CkhawlQD9tIU43M5gaz.BuGGazLtUYnv/8D3pCGuk3OdrGI02zSJC"], ["created_at", "2015-03-20 05:45:54.954478"], ["updated_at", "2015-03-20 05:45:54.954478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.957447"], ["updated_at", "2015-03-20 05:45:54.957447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '601f9044-cec4-11e4-af56-705681abff85' AND "clubhouse_memberships"."organization_id" = '602003a8-cec4-11e4-b232-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "601f9044-cec4-11e4-af56-705681abff85"], ["organization_id", "602003a8-cec4-11e4-b232-705681abff85"], ["created_at", "2015-03-20 05:45:54.960489"], ["updated_at", "2015-03-20 05:45:54.960489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '601eedd8-cec4-11e4-a0d0-705681abff85' LIMIT 1 [["organization_id", "602003a8-cec4-11e4-b232-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$ZN/E/ysuBWQNulZ37PaWHuDUDA/TuZnBlCewrTwAxkRonccTo5qTS"], ["created_at", "2015-03-20 05:45:54.968255"], ["updated_at", "2015-03-20 05:45:54.968255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.971358"], ["updated_at", "2015-03-20 05:45:54.971358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6021adb6-cec4-11e4-9126-705681abff85' LIMIT 1 [["organization_id", "602224a8-cec4-11e4-98b3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$3j3bGBCrjGHbOwjbKxCOp.DLythlJNJY91RP7kXAeHzzQvSbkXWq6"], ["created_at", "2015-03-20 05:45:54.978025"], ["updated_at", "2015-03-20 05:45:54.978025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.981108"], ["updated_at", "2015-03-20 05:45:54.981108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60232c40-cec4-11e4-82e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '6023a080-cec4-11e4-a70c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60232c40-cec4-11e4-82e0-705681abff85"], ["organization_id", "6023a080-cec4-11e4-a70c-705681abff85"], ["created_at", "2015-03-20 05:45:54.984416"], ["updated_at", "2015-03-20 05:45:54.984416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60232c40-cec4-11e4-82e0-705681abff85' LIMIT 1 [["organization_id", "6023a080-cec4-11e4-a70c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$GLwqBaa/E629AFzyqatnLei1FU4hDObD.Ribq64LSQDIMT7E4E7Cu"], ["created_at", "2015-03-20 05:45:54.991267"], ["updated_at", "2015-03-20 05:45:54.991267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:54.994351"], ["updated_at", "2015-03-20 05:45:54.994351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6025301c-cec4-11e4-9616-705681abff85' AND "clubhouse_memberships"."organization_id" = '6025a650-cec4-11e4-9cf3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6025301c-cec4-11e4-9616-705681abff85"], ["organization_id", "6025a650-cec4-11e4-9cf3-705681abff85"], ["created_at", "2015-03-20 05:45:54.997475"], ["updated_at", "2015-03-20 05:45:54.997475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6025301c-cec4-11e4-9616-705681abff85' LIMIT 1 [["organization_id", "6025a650-cec4-11e4-9cf3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$gK2AaHK7eP5yyfU6ZropPePBFN1MU/qvlnuGHoQsnkQwOzfRlZxJ6"], ["created_at", "2015-03-20 05:45:55.004719"], ["updated_at", "2015-03-20 05:45:55.004719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.007891"], ["updated_at", "2015-03-20 05:45:55.007891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60273e48-cec4-11e4-bba5-705681abff85' AND "clubhouse_memberships"."organization_id" = '6027b742-cec4-11e4-8599-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60273e48-cec4-11e4-bba5-705681abff85"], ["organization_id", "6027b742-cec4-11e4-8599-705681abff85"], ["created_at", "2015-03-20 05:45:55.010997"], ["updated_at", "2015-03-20 05:45:55.010997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$FghZ7Zcb/e9J1qYLyywwRuuaij4mTXZBkkey17LkqYE8VupSN9hK2"], ["created_at", "2015-03-20 05:45:55.016662"], ["updated_at", "2015-03-20 05:45:55.016662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.019869"], ["updated_at", "2015-03-20 05:45:55.019869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60291218-cec4-11e4-b9d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '60298c5c-cec4-11e4-84af-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60291218-cec4-11e4-b9d3-705681abff85"], ["organization_id", "60298c5c-cec4-11e4-84af-705681abff85"], ["created_at", "2015-03-20 05:45:55.023037"], ["updated_at", "2015-03-20 05:45:55.023037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60291218-cec4-11e4-b9d3-705681abff85' LIMIT 1 [["organization_id", "60298c5c-cec4-11e4-84af-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$C.4.j8rJ0TtUiPOBxZw5OuSkW1BjJHf.NFf5H9tvVd8kdirgmUdzm"], ["created_at", "2015-03-20 05:45:55.029901"], ["updated_at", "2015-03-20 05:45:55.029901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.032964"], ["updated_at", "2015-03-20 05:45:55.032964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '602b1482-cec4-11e4-85fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '602b8c1e-cec4-11e4-bb18-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "602b1482-cec4-11e4-85fb-705681abff85"], ["organization_id", "602b8c1e-cec4-11e4-bb18-705681abff85"], ["created_at", "2015-03-20 05:45:55.036499"], ["updated_at", "2015-03-20 05:45:55.036499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '602b1482-cec4-11e4-85fb-705681abff85' LIMIT 1 [["organization_id", "602b8c1e-cec4-11e4-bb18-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$nhdGwk8KqNBEtru1lNxWUuZBfHtwkfBZJkclSTgKXmDdqvc0vcWRu"], ["created_at", "2015-03-20 05:45:55.043798"], ["updated_at", "2015-03-20 05:45:55.043798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.046907"], ["updated_at", "2015-03-20 05:45:55.046907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '602d3500-cec4-11e4-8716-705681abff85' AND "clubhouse_memberships"."organization_id" = '602dab98-cec4-11e4-8b86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "602d3500-cec4-11e4-8716-705681abff85"], ["organization_id", "602dab98-cec4-11e4-8b86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.050061"], ["updated_at", "2015-03-20 05:45:55.050061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$lePoXNSlG0FUxKvntbHgR.1nKmpeTxFBwvFRjeeEHtgfYRZ/TitZe"], ["created_at", "2015-03-20 05:45:55.055259"], ["updated_at", "2015-03-20 05:45:55.055259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '602ef336-cec4-11e4-bdb9-705681abff85' AND "clubhouse_memberships"."organization_id" = '602dab98-cec4-11e4-8b86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "602ef336-cec4-11e4-bdb9-705681abff85"], ["organization_id", "602dab98-cec4-11e4-8b86-705681abff85"], ["created_at", "2015-03-20 05:45:55.059770"], ["updated_at", "2015-03-20 05:45:55.059770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '602d3500-cec4-11e4-8716-705681abff85' LIMIT 1 [["organization_id", "602dab98-cec4-11e4-8b86-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$c7E4xvK07Yq6D302ZFfMN.mc2B7MBBJi84DDpu/i/L5aBKoKsCw0K"], ["created_at", "2015-03-20 05:45:55.066960"], ["updated_at", "2015-03-20 05:45:55.066960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.074345"], ["updated_at", "2015-03-20 05:45:55.074345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6030dfca-cec4-11e4-8e80-705681abff85' AND "clubhouse_memberships"."organization_id" = '6031e85c-cec4-11e4-8900-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6030dfca-cec4-11e4-8e80-705681abff85"], ["organization_id", "6031e85c-cec4-11e4-8900-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.078530"], ["updated_at", "2015-03-20 05:45:55.078530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$Gcg2JxdPkQciEwjuFWpZDOvGHMMgvJ3iLBQPnFKB9bSLXji70Y6Wm"], ["created_at", "2015-03-20 05:45:55.084306"], ["updated_at", "2015-03-20 05:45:55.084306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '603373de-cec4-11e4-9495-705681abff85' AND "clubhouse_memberships"."organization_id" = '6031e85c-cec4-11e4-8900-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "603373de-cec4-11e4-9495-705681abff85"], ["organization_id", "6031e85c-cec4-11e4-8900-705681abff85"], ["created_at", "2015-03-20 05:45:55.088561"], ["updated_at", "2015-03-20 05:45:55.088561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6030dfca-cec4-11e4-8e80-705681abff85' LIMIT 1 [["organization_id", "6031e85c-cec4-11e4-8900-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$ZpZwVHeN14SzztGVJ0.GzeUbTu7duZGY/vo06G6KcCReNCvnyOq/2"], ["created_at", "2015-03-20 05:45:55.095370"], ["updated_at", "2015-03-20 05:45:55.095370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.098509"], ["updated_at", "2015-03-20 05:45:55.098509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60351324-cec4-11e4-9a2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '60358ade-cec4-11e4-9aed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60351324-cec4-11e4-9a2a-705681abff85"], ["organization_id", "60358ade-cec4-11e4-9aed-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.101862"], ["updated_at", "2015-03-20 05:45:55.101862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$7RRhgV49NtVwRrbDmp8q.e8EZnJOdCaFEPBcD3.unbA8t3n6YUX7m"], ["created_at", "2015-03-20 05:45:55.106112"], ["updated_at", "2015-03-20 05:45:55.106112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6036b44a-cec4-11e4-b523-705681abff85' AND "clubhouse_memberships"."organization_id" = '60358ade-cec4-11e4-9aed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6036b44a-cec4-11e4-b523-705681abff85"], ["organization_id", "60358ade-cec4-11e4-9aed-705681abff85"], ["created_at", "2015-03-20 05:45:55.109177"], ["updated_at", "2015-03-20 05:45:55.109177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$p9BDdV5mbe3KL061/4NcIO/YcFvPX7IwAj2odbNSkWm139KEdDKsW"], ["created_at", "2015-03-20 05:45:55.114749"], ["updated_at", "2015-03-20 05:45:55.114749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.117983"], ["updated_at", "2015-03-20 05:45:55.117983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6038064c-cec4-11e4-b114-705681abff85' AND "clubhouse_memberships"."organization_id" = '6038840a-cec4-11e4-9d2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6038064c-cec4-11e4-b114-705681abff85"], ["organization_id", "6038840a-cec4-11e4-9d2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.121124"], ["updated_at", "2015-03-20 05:45:55.121124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$9PnsyVgfW5gMvePxKSkVv.dF1m0hHLLgzdzfATW7db67u1oSC0.sm"], ["created_at", "2015-03-20 05:45:55.125305"], ["updated_at", "2015-03-20 05:45:55.125305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6039a18c-cec4-11e4-9b9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '6038840a-cec4-11e4-9d2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6039a18c-cec4-11e4-9b9f-705681abff85"], ["organization_id", "6038840a-cec4-11e4-9d2f-705681abff85"], ["created_at", "2015-03-20 05:45:55.128878"], ["updated_at", "2015-03-20 05:45:55.128878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6038064c-cec4-11e4-b114-705681abff85' LIMIT 1 [["organization_id", "6038840a-cec4-11e4-9d2f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$OOBLB7O2hiL.ed0n2kRBHe7b7gRffPSdG1W/bo6zLqmnZ/3eIAFDG"], ["created_at", "2015-03-20 05:45:55.136018"], ["updated_at", "2015-03-20 05:45:55.136018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.139101"], ["updated_at", "2015-03-20 05:45:55.139101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '603b4672-cec4-11e4-abb3-705681abff85' AND "clubhouse_memberships"."organization_id" = '603bbcb0-cec4-11e4-9a78-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "603b4672-cec4-11e4-abb3-705681abff85"], ["organization_id", "603bbcb0-cec4-11e4-9a78-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.142338"], ["updated_at", "2015-03-20 05:45:55.142338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '603b4672-cec4-11e4-abb3-705681abff85' LIMIT 1 [["organization_id", "603bbcb0-cec4-11e4-9a78-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$XTXeUOMXlmAflWJCAXTqFec1vb.3qRWn3enEijkQ7q9DwAGmZjfhy"], ["created_at", "2015-03-20 05:45:55.157267"], ["updated_at", "2015-03-20 05:45:55.157267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.160421"], ["updated_at", "2015-03-20 05:45:55.160421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '603e84e0-cec4-11e4-9bd8-705681abff85' AND "clubhouse_memberships"."organization_id" = '603efe5c-cec4-11e4-8112-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "603e84e0-cec4-11e4-9bd8-705681abff85"], ["organization_id", "603efe5c-cec4-11e4-8112-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.163705"], ["updated_at", "2015-03-20 05:45:55.163705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '603e84e0-cec4-11e4-9bd8-705681abff85' LIMIT 1 [["organization_id", "603efe5c-cec4-11e4-8112-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$CEtjZBw3nhhSVZrywg5LVuNJTk8kYH9dM6PHLitg7rZkiPt04qFCO"], ["created_at", "2015-03-20 05:45:55.170920"], ["updated_at", "2015-03-20 05:45:55.170920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.174639"], ["updated_at", "2015-03-20 05:45:55.174639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60409a46-cec4-11e4-a21f-705681abff85' AND "clubhouse_memberships"."organization_id" = '60412a9c-cec4-11e4-836a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60409a46-cec4-11e4-a21f-705681abff85"], ["organization_id", "60412a9c-cec4-11e4-836a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.179008"], ["updated_at", "2015-03-20 05:45:55.179008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$aUtc.3Nz2xr2I2h5QLXRD.ZUdsfI3QXodxEZIuJ7HlxWvBOHq2GVC"], ["created_at", "2015-03-20 05:45:55.185795"], ["updated_at", "2015-03-20 05:45:55.185795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.189660"], ["updated_at", "2015-03-20 05:45:55.189660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6042ebac-cec4-11e4-a6d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '604374a0-cec4-11e4-8955-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6042ebac-cec4-11e4-a6d3-705681abff85"], ["organization_id", "604374a0-cec4-11e4-8955-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.193781"], ["updated_at", "2015-03-20 05:45:55.193781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6042ebac-cec4-11e4-a6d3-705681abff85' LIMIT 1 [["organization_id", "604374a0-cec4-11e4-8955-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$Tfk4CrSaFi5PO7xrU5edjuRPD0NulgMVaTVF.HKIzyLLqNNKR2Fsa"], ["created_at", "2015-03-20 05:45:55.202077"], ["updated_at", "2015-03-20 05:45:55.202077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.206647"], ["updated_at", "2015-03-20 05:45:55.206647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6045834e-cec4-11e4-95cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '60460eae-cec4-11e4-8a86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6045834e-cec4-11e4-95cd-705681abff85"], ["organization_id", "60460eae-cec4-11e4-8a86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.210224"], ["updated_at", "2015-03-20 05:45:55.210224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6045834e-cec4-11e4-95cd-705681abff85' LIMIT 1 [["organization_id", "60460eae-cec4-11e4-8a86-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.219554"], ["updated_at", "2015-03-20 05:45:55.219554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '60480858-cec4-11e4-ab1a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "60480858-cec4-11e4-ab1a-705681abff85"], ["created_at", "2015-03-20 05:45:55.223723"], ["updated_at", "2015-03-20 05:45:55.223723"], ["token", "tgCmsOxERyJ5wYynt-DZXjEqfzzsTM6XPCd-FACLMYY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60480858-cec4-11e4-ab1a-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '60480858-cec4-11e4-ab1a-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60480858-cec4-11e4-ab1a-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '60480858-cec4-11e4-ab1a-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.244040"], ["updated_at", "2015-03-20 05:45:55.244040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '604bce8e-cec4-11e4-b1ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "604bce8e-cec4-11e4-b1ec-705681abff85"], ["created_at", "2015-03-20 05:45:55.247741"], ["updated_at", "2015-03-20 05:45:55.247741"], ["token", "y-VXxUBS1CTkE6OIbjRhwzFNr5nm2cpEXytW8FKMebw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$y9wOmz.m.oc9tXvNgdq33.6mYPSo.K/SfpsZNpczZKAxUfw5AEnsK"], ["created_at", "2015-03-20 05:45:55.264834"], ["updated_at", "2015-03-20 05:45:55.264834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.268924"], ["updated_at", "2015-03-20 05:45:55.268924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '604ef596-cec4-11e4-87ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '604f96cc-cec4-11e4-ad53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "604ef596-cec4-11e4-87ed-705681abff85"], ["organization_id", "604f96cc-cec4-11e4-ad53-705681abff85"], ["created_at", "2015-03-20 05:45:55.272075"], ["updated_at", "2015-03-20 05:45:55.272075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "604ef596-cec4-11e4-87ed-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "604f96cc-cec4-11e4-ad53-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '604ef596-cec4-11e4-87ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '604f96cc-cec4-11e4-ad53-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "604f96cc-cec4-11e4-ad53-705681abff86"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '604ef596-cec4-11e4-87ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '604f96cc-cec4-11e4-ad53-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$PZGHjX9b/C9vp0LzVxjLFeMXxQ6yOgN9hoVRTM4W45q0wlWyejEpi"], ["created_at", "2015-03-20 05:45:55.303224"], ["updated_at", "2015-03-20 05:45:55.303224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.306693"], ["updated_at", "2015-03-20 05:45:55.306693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6054d0b0-cec4-11e4-9757-705681abff85' AND "clubhouse_memberships"."organization_id" = '60555008-cec4-11e4-b878-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6054d0b0-cec4-11e4-9757-705681abff85"], ["organization_id", "60555008-cec4-11e4-b878-705681abff85"], ["created_at", "2015-03-20 05:45:55.310044"], ["updated_at", "2015-03-20 05:45:55.310044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6054d0b0-cec4-11e4-9757-705681abff85' LIMIT 1 [["organization_id", "60555008-cec4-11e4-b878-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$y22paQxOwD3r3AlBa5bI7u1FSTwEgBOaQ5Tvpg/7We4bWDBEODYFy"], ["created_at", "2015-03-20 05:45:55.316780"], ["updated_at", "2015-03-20 05:45:55.316780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.320082"], ["updated_at", "2015-03-20 05:45:55.320082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6056dab8-cec4-11e4-b369-705681abff85' AND "clubhouse_memberships"."organization_id" = '6057619a-cec4-11e4-b6cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6056dab8-cec4-11e4-b369-705681abff85"], ["organization_id", "6057619a-cec4-11e4-b6cc-705681abff85"], ["created_at", "2015-03-20 05:45:55.323597"], ["updated_at", "2015-03-20 05:45:55.323597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6056dab8-cec4-11e4-b369-705681abff85' LIMIT 1 [["organization_id", "6057619a-cec4-11e4-b6cc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$aqpkBPAcy9ZLEaHcjrAzCOZOvLrwxtZ10zDHWB7iZCVPPzKG0FJSC"], ["created_at", "2015-03-20 05:45:55.330846"], ["updated_at", "2015-03-20 05:45:55.330846"]]  (3.5ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.340774"], ["updated_at", "2015-03-20 05:45:55.340774"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60590176-cec4-11e4-afd6-705681abff85' AND "clubhouse_memberships"."organization_id" = '605aa396-cec4-11e4-91d0-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60590176-cec4-11e4-afd6-705681abff85"], ["organization_id", "605aa396-cec4-11e4-91d0-705681abff85"], ["created_at", "2015-03-20 05:45:55.347540"], ["updated_at", "2015-03-20 05:45:55.347540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60590176-cec4-11e4-afd6-705681abff85' LIMIT 1 [["organization_id", "605aa396-cec4-11e4-91d0-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$qaRETnRLp6ZHB8F7ks9rTuagXcG6B/nIBnFU1XRqS5KaQl/QZ4ho6"], ["created_at", "2015-03-20 05:45:55.358924"], ["updated_at", "2015-03-20 05:45:55.358924"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.365840"], ["updated_at", "2015-03-20 05:45:55.365840"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '605d6202-cec4-11e4-982c-705681abff85' AND "clubhouse_memberships"."organization_id" = '605e6116-cec4-11e4-9ece-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "605d6202-cec4-11e4-982c-705681abff85"], ["organization_id", "605e6116-cec4-11e4-9ece-705681abff85"], ["created_at", "2015-03-20 05:45:55.372161"], ["updated_at", "2015-03-20 05:45:55.372161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$EjIQmfDszBpwPyXkWXKVZOc7qNvFsLyYM.cQ/.POB3PUxiJ5wdMDW"], ["created_at", "2015-03-20 05:45:55.379597"], ["updated_at", "2015-03-20 05:45:55.379597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.382742"], ["updated_at", "2015-03-20 05:45:55.382742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '606072bc-cec4-11e4-9490-705681abff85' AND "clubhouse_memberships"."organization_id" = '6060ea80-cec4-11e4-9fe7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "606072bc-cec4-11e4-9490-705681abff85"], ["organization_id", "6060ea80-cec4-11e4-9fe7-705681abff85"], ["created_at", "2015-03-20 05:45:55.385903"], ["updated_at", "2015-03-20 05:45:55.385903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$fMFDkFX6hLCvT9z1gp1nduXOoWGtYgZfJs/bB.fW2FWv4N8EKZ.Aa"], ["created_at", "2015-03-20 05:45:55.391793"], ["updated_at", "2015-03-20 05:45:55.391793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.395377"], ["updated_at", "2015-03-20 05:45:55.395377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60624c9a-cec4-11e4-90ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '6062d9b2-cec4-11e4-9b4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60624c9a-cec4-11e4-90ef-705681abff85"], ["organization_id", "6062d9b2-cec4-11e4-9b4b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.398652"], ["updated_at", "2015-03-20 05:45:55.398652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60624c9a-cec4-11e4-90ef-705681abff85' LIMIT 1 [["organization_id", "6062d9b2-cec4-11e4-9b4b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$tLE.iEy9LlzDOPLjdfytYuk3DuITimB7iJUQBXgamkWeDDP2FDLqC"], ["created_at", "2015-03-20 05:45:55.406269"], ["updated_at", "2015-03-20 05:45:55.406269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.410680"], ["updated_at", "2015-03-20 05:45:55.410680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60648726-cec4-11e4-918a-705681abff85' AND "clubhouse_memberships"."organization_id" = '60653b9e-cec4-11e4-9125-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60648726-cec4-11e4-918a-705681abff85"], ["organization_id", "60653b9e-cec4-11e4-9125-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.414544"], ["updated_at", "2015-03-20 05:45:55.414544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '60648726-cec4-11e4-918a-705681abff85' LIMIT 1 [["organization_id", "60653b9e-cec4-11e4-9125-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$jqzF7I8LjajJWvXX1.SFlel9GgBoQ3qXv8Du77ZPNneVFuedSEg02"], ["created_at", "2015-03-20 05:45:55.421698"], ["updated_at", "2015-03-20 05:45:55.421698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.426669"], ["updated_at", "2015-03-20 05:45:55.426669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6066e4ee-cec4-11e4-aa08-705681abff85' AND "clubhouse_memberships"."organization_id" = '6067a8d4-cec4-11e4-ba82-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6066e4ee-cec4-11e4-aa08-705681abff85"], ["organization_id", "6067a8d4-cec4-11e4-ba82-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.430553"], ["updated_at", "2015-03-20 05:45:55.430553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6066e4ee-cec4-11e4-aa08-705681abff85' LIMIT 1 [["organization_id", "6067a8d4-cec4-11e4-ba82-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$4fQ/VdHXMvw7EWwZcUdtMuqT1VSnV/Pis0E9Ych1JwXrlwUjIrdyO"], ["created_at", "2015-03-20 05:45:55.438241"], ["updated_at", "2015-03-20 05:45:55.438241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.441366"], ["updated_at", "2015-03-20 05:45:55.441366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60696552-cec4-11e4-b065-705681abff85' AND "clubhouse_memberships"."organization_id" = '6069dc9e-cec4-11e4-bd49-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60696552-cec4-11e4-b065-705681abff85"], ["organization_id", "6069dc9e-cec4-11e4-bd49-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.445413"], ["updated_at", "2015-03-20 05:45:55.445413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$hujwCyx8zuawwfk.LOZJG.T8vYgzWbQCnPv6/H85Z0zbUxcq1KDVK"], ["created_at", "2015-03-20 05:45:55.451215"], ["updated_at", "2015-03-20 05:45:55.451215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.455549"], ["updated_at", "2015-03-20 05:45:55.455549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '606b6b9a-cec4-11e4-949c-705681abff85' AND "clubhouse_memberships"."organization_id" = '606c08ca-cec4-11e4-a853-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "606b6b9a-cec4-11e4-949c-705681abff85"], ["organization_id", "606c08ca-cec4-11e4-a853-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.458888"], ["updated_at", "2015-03-20 05:45:55.458888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$PlptLuvAb1wOuiYKDYrOI.PhmlVRtOG2WenOmCxBh4iCQRQT1DnuG"], ["created_at", "2015-03-20 05:45:55.464829"], ["updated_at", "2015-03-20 05:45:55.464829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$bi5qec02Tsbl1iKacmswk.kEIeVnHqYxhNf74SyYBk0Z/HM67HE.y"], ["created_at", "2015-03-20 05:45:55.475564"], ["updated_at", "2015-03-20 05:45:55.475564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.478996"], ["updated_at", "2015-03-20 05:45:55.478996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '606f1664-cec4-11e4-ae24-705681abff85' LIMIT 1 [["organization_id", "606f9c06-cec4-11e4-8231-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$qX/WNR2iaMMW7xpaY0RBNO8m6X9xdXcWm8Re5.XkNNj5dTP6kkMSS"], ["created_at", "2015-03-20 05:45:55.485970"], ["updated_at", "2015-03-20 05:45:55.485970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.489173"], ["updated_at", "2015-03-20 05:45:55.489173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6070ae98-cec4-11e4-b48f-705681abff85' LIMIT 1 [["organization_id", "60712742-cec4-11e4-8921-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$zce23wnJAdULJbee0FzJ7.xgzuQCTf9lFZujqlEqsjrM3Ly.zMmyK"], ["created_at", "2015-03-20 05:45:55.496421"], ["updated_at", "2015-03-20 05:45:55.496421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.499733"], ["updated_at", "2015-03-20 05:45:55.499733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60724a46-cec4-11e4-90f2-705681abff85' LIMIT 1 [["organization_id", "6072c426-cec4-11e4-b5f5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$WizFet0Rw.PXcd1XVkHdseTspP2gJeGlfHRc6ElxexM0Z6WHjbuES"], ["created_at", "2015-03-20 05:45:55.507240"], ["updated_at", "2015-03-20 05:45:55.507240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.510393"], ["updated_at", "2015-03-20 05:45:55.510393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$64XwkOUqbTkqTZHVquQW2u2pT0rwxUxgZotH.Qo2W4PoPSkZmtzWy"], ["created_at", "2015-03-20 05:45:55.515841"], ["updated_at", "2015-03-20 05:45:55.515841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.519115"], ["updated_at", "2015-03-20 05:45:55.519115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$BOAO..a8lGyLkNgI2pj8K.8Pp18yUXHSZ6Hh4FLs7dhtP9a7xRR5a"], ["created_at", "2015-03-20 05:45:55.525177"], ["updated_at", "2015-03-20 05:45:55.525177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.528442"], ["updated_at", "2015-03-20 05:45:55.528442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '60772692-cec4-11e4-b1f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "60772692-cec4-11e4-b1f9-705681abff85"], ["created_at", "2015-03-20 05:45:55.531885"], ["updated_at", "2015-03-20 05:45:55.531885"], ["token", "F0KRhc5KQOeRBpJZ0-IFFd--2VMKapV6x3z6pmx46UE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6076ad5c-cec4-11e4-8561-705681abff85' LIMIT 1 [["organization_id", "60772692-cec4-11e4-b1f9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$2VnPc//Rc3uQNvHkcIbkoekYxRFmJyJZil1VHWjeyNbzZQF6RRX7O"], ["created_at", "2015-03-20 05:45:55.539408"], ["updated_at", "2015-03-20 05:45:55.539408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.542865"], ["updated_at", "2015-03-20 05:45:55.542865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '6079624a-cec4-11e4-9ac4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "6079624a-cec4-11e4-9ac4-705681abff85"], ["created_at", "2015-03-20 05:45:55.546576"], ["updated_at", "2015-03-20 05:45:55.546576"], ["token", "U2R0I0_eJF5LPheOdbS-loNu-a0Nf9L60y7fcSt2Nfg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6078d83e-cec4-11e4-9b3c-705681abff85' LIMIT 1 [["organization_id", "6079624a-cec4-11e4-9ac4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$8/WG3/r0FGvsuAIB.g8NE.T/0FPeyeQobpPCx8t3nHLRtW1eT2m42"], ["created_at", "2015-03-20 05:45:55.554838"], ["updated_at", "2015-03-20 05:45:55.554838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.558257"], ["updated_at", "2015-03-20 05:45:55.558257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '607bb4b4-cec4-11e4-b9f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "607bb4b4-cec4-11e4-b9f9-705681abff85"], ["created_at", "2015-03-20 05:45:55.561851"], ["updated_at", "2015-03-20 05:45:55.561851"], ["token", "QqDfXCJEqQSgS9SMBnOWohQuJx2LMrJ6T4kdPwZYwKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '607b33f4-cec4-11e4-bc01-705681abff85' LIMIT 1 [["organization_id", "607bb4b4-cec4-11e4-b9f9-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$O0eAR7CcHzB..oO2qZ61qeZv9uLPTUdkWl8qVTsNaJsU4h2y6DJR6"], ["created_at", "2015-03-20 05:45:55.570309"], ["updated_at", "2015-03-20 05:45:55.570309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.573571"], ["updated_at", "2015-03-20 05:45:55.573571"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '607e0962-cec4-11e4-a1c5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "607e0962-cec4-11e4-a1c5-705681abff85"], ["created_at", "2015-03-20 05:45:55.577819"], ["updated_at", "2015-03-20 05:45:55.577819"], ["token", "MRDB1LEG1XJeJU9q5tpZHNb8vu1S7J2uAwjhMDsUtdQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '607d8f82-cec4-11e4-bde7-705681abff85' LIMIT 1 [["organization_id", "607e0962-cec4-11e4-a1c5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$z0iFvFVL9UV0LTg5hwzOwuAHgRR.HKKNFzTaXWsklOgm1B66JRy5."], ["created_at", "2015-03-20 05:45:55.586081"], ["updated_at", "2015-03-20 05:45:55.586081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.589438"], ["updated_at", "2015-03-20 05:45:55.589438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '607ff6c8-cec4-11e4-8506-705681abff85' LIMIT 1 [["organization_id", "608074fe-cec4-11e4-817f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$mEPM9GXd4noooegBY4m1nuOPhGHgAGk5AoUx8ln4WZGj5ZI.XKkBG"], ["created_at", "2015-03-20 05:45:55.596871"], ["updated_at", "2015-03-20 05:45:55.596871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.600030"], ["updated_at", "2015-03-20 05:45:55.600030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60819a3c-cec4-11e4-bb8d-705681abff85' AND "clubhouse_memberships"."organization_id" = '608212fa-cec4-11e4-9e57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60819a3c-cec4-11e4-bb8d-705681abff85"], ["organization_id", "608212fa-cec4-11e4-9e57-705681abff85"], ["created_at", "2015-03-20 05:45:55.603417"], ["updated_at", "2015-03-20 05:45:55.603417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '608212fa-cec4-11e4-9e57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "608212fa-cec4-11e4-9e57-705681abff85"], ["created_at", "2015-03-20 05:45:55.606859"], ["updated_at", "2015-03-20 05:45:55.606859"], ["token", "u4_q0I44x6zBGnFIm8xohiW1FwjeA1R7-THldSgXPjI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60819a3c-cec4-11e4-bb8d-705681abff85' LIMIT 1 [["organization_id", "608212fa-cec4-11e4-9e57-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$BA2TawHg4l8EObu1P8c4/OkqVLozcHtvOqSRWgoZ9NsJmtXkffzK2"], ["created_at", "2015-03-20 05:45:55.613921"], ["updated_at", "2015-03-20 05:45:55.613921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.617067"], ["updated_at", "2015-03-20 05:45:55.617067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '608432b0-cec4-11e4-a821-705681abff85' AND "clubhouse_memberships"."organization_id" = '6084abe6-cec4-11e4-9746-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "608432b0-cec4-11e4-a821-705681abff85"], ["organization_id", "6084abe6-cec4-11e4-9746-705681abff85"], ["created_at", "2015-03-20 05:45:55.620239"], ["updated_at", "2015-03-20 05:45:55.620239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '6084abe6-cec4-11e4-9746-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "6084abe6-cec4-11e4-9746-705681abff85"], ["created_at", "2015-03-20 05:45:55.623525"], ["updated_at", "2015-03-20 05:45:55.623525"], ["token", "Y0gbtS1JT447KAGHkpjooQi-JufSJfjqRDeG4wZj0Es"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '608432b0-cec4-11e4-a821-705681abff85' LIMIT 1 [["organization_id", "6084abe6-cec4-11e4-9746-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$Tp8T4ojQf/EBchqm1/c7PO5TlcMp25qfu4JH7EIVYANh0KLq.TL4a"], ["created_at", "2015-03-20 05:45:55.631697"], ["updated_at", "2015-03-20 05:45:55.631697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.635052"], ["updated_at", "2015-03-20 05:45:55.635052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6086ebf4-cec4-11e4-ae04-705681abff85' AND "clubhouse_memberships"."organization_id" = '60876e26-cec4-11e4-bc5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6086ebf4-cec4-11e4-ae04-705681abff85"], ["organization_id", "60876e26-cec4-11e4-bc5f-705681abff85"], ["created_at", "2015-03-20 05:45:55.638888"], ["updated_at", "2015-03-20 05:45:55.638888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '60876e26-cec4-11e4-bc5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "60876e26-cec4-11e4-bc5f-705681abff85"], ["created_at", "2015-03-20 05:45:55.642349"], ["updated_at", "2015-03-20 05:45:55.642349"], ["token", "MfHzTazBKTVceQ-Vvs9rAtWlG4mqezVTkZZO5vUkFUI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6086ebf4-cec4-11e4-ae04-705681abff85' LIMIT 1 [["organization_id", "60876e26-cec4-11e4-bc5f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$ndkBOhM/8qtt.Hk2GUxqEuwCKb9gSeq961iKgeOp.8F5FeeVziO/a"], ["created_at", "2015-03-20 05:45:55.649122"], ["updated_at", "2015-03-20 05:45:55.649122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.652147"], ["updated_at", "2015-03-20 05:45:55.652147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60899052-cec4-11e4-8e89-705681abff85' AND "clubhouse_memberships"."organization_id" = '608a0640-cec4-11e4-9891-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60899052-cec4-11e4-8e89-705681abff85"], ["organization_id", "608a0640-cec4-11e4-9891-705681abff85"], ["created_at", "2015-03-20 05:45:55.655281"], ["updated_at", "2015-03-20 05:45:55.655281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '608a0640-cec4-11e4-9891-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "608a0640-cec4-11e4-9891-705681abff85"], ["created_at", "2015-03-20 05:45:55.658665"], ["updated_at", "2015-03-20 05:45:55.658665"], ["token", "046Om9o3gWl-gfaix4BslEPd_P8Px91lrHflzw8WoYw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60899052-cec4-11e4-8e89-705681abff85' LIMIT 1 [["organization_id", "608a0640-cec4-11e4-9891-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$6UQ6fnHBrlJUnqkGncJfbuKkEKI.GHd1HY2By6pULEmVQCktLbM/O"], ["created_at", "2015-03-20 05:45:55.665975"], ["updated_at", "2015-03-20 05:45:55.665975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.669298"], ["updated_at", "2015-03-20 05:45:55.669298"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '608c242a-cec4-11e4-aa05-705681abff85' AND "clubhouse_memberships"."organization_id" = '608cbae8-cec4-11e4-9f31-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "608c242a-cec4-11e4-aa05-705681abff85"], ["organization_id", "608cbae8-cec4-11e4-9f31-705681abff85"], ["created_at", "2015-03-20 05:45:55.674394"], ["updated_at", "2015-03-20 05:45:55.674394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '608c242a-cec4-11e4-aa05-705681abff85' LIMIT 1 [["organization_id", "608cbae8-cec4-11e4-9f31-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$EZfzYrnVeFRlCSClQciqmuxqfxnMwcY6akPQlgPf6.syKGXYxI9jm"], ["created_at", "2015-03-20 05:45:55.682925"], ["updated_at", "2015-03-20 05:45:55.682925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.686128"], ["updated_at", "2015-03-20 05:45:55.686128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '608ebaaa-cec4-11e4-889b-705681abff85' AND "clubhouse_memberships"."organization_id" = '608f3d9a-cec4-11e4-9cc0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "608ebaaa-cec4-11e4-889b-705681abff85"], ["organization_id", "608f3d9a-cec4-11e4-9cc0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.690197"], ["updated_at", "2015-03-20 05:45:55.690197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '608f3d9a-cec4-11e4-9cc0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "608f3d9a-cec4-11e4-9cc0-705681abff85"], ["created_at", "2015-03-20 05:45:55.693875"], ["updated_at", "2015-03-20 05:45:55.693875"], ["token", "ba3g9A1SZc9VgDyGTBAzWMM1JPoCw5XxTpG9ZE19eqs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '608ebaaa-cec4-11e4-889b-705681abff85' LIMIT 1 [["organization_id", "608f3d9a-cec4-11e4-9cc0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$oV6fobnfEnADRhPE16QGcuNxPsxBKJUC..Ww2WVSY5dtF.0P/l8fC"], ["created_at", "2015-03-20 05:45:55.701318"], ["updated_at", "2015-03-20 05:45:55.701318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.704696"], ["updated_at", "2015-03-20 05:45:55.704696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '609188b6-cec4-11e4-b97f-705681abff85' AND "clubhouse_memberships"."organization_id" = '60921290-cec4-11e4-8179-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "609188b6-cec4-11e4-b97f-705681abff85"], ["organization_id", "60921290-cec4-11e4-8179-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.708304"], ["updated_at", "2015-03-20 05:45:55.708304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '60921290-cec4-11e4-8179-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "60921290-cec4-11e4-8179-705681abff85"], ["created_at", "2015-03-20 05:45:55.711609"], ["updated_at", "2015-03-20 05:45:55.711609"], ["token", "4t7WM7XsoWe99gyoUNtCs28GVL2OrviaHr6HIOOQNjY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '609188b6-cec4-11e4-b97f-705681abff85' LIMIT 1 [["organization_id", "60921290-cec4-11e4-8179-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$uKFZqZZxh3NevC6lUc46Xe8QI99cMGoYg9G0OSOyvTCkt4mN4C8oW"], ["created_at", "2015-03-20 05:45:55.719940"], ["updated_at", "2015-03-20 05:45:55.719940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.723165"], ["updated_at", "2015-03-20 05:45:55.723165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60946356-cec4-11e4-a345-705681abff85' AND "clubhouse_memberships"."organization_id" = '6094dba6-cec4-11e4-984a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60946356-cec4-11e4-a345-705681abff85"], ["organization_id", "6094dba6-cec4-11e4-984a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.726644"], ["updated_at", "2015-03-20 05:45:55.726644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '6094dba6-cec4-11e4-984a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "6094dba6-cec4-11e4-984a-705681abff85"], ["created_at", "2015-03-20 05:45:55.729995"], ["updated_at", "2015-03-20 05:45:55.729995"], ["token", "HMOY9vyOGlvmufrD8yTxbaND5rW8VOMgulshpmf_788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60946356-cec4-11e4-a345-705681abff85' LIMIT 1 [["organization_id", "6094dba6-cec4-11e4-984a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$gKPGrurV8AN3F6qG9Z2vhud.huQ9w4/.rycV8D.na.Q0DMTa..YeW"], ["created_at", "2015-03-20 05:45:55.737529"], ["updated_at", "2015-03-20 05:45:55.737529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.740927"], ["updated_at", "2015-03-20 05:45:55.740927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60971966-cec4-11e4-a3ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '60979166-cec4-11e4-81b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60971966-cec4-11e4-a3ee-705681abff85"], ["organization_id", "60979166-cec4-11e4-81b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.744018"], ["updated_at", "2015-03-20 05:45:55.744018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '60979166-cec4-11e4-81b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "60979166-cec4-11e4-81b6-705681abff85"], ["created_at", "2015-03-20 05:45:55.747231"], ["updated_at", "2015-03-20 05:45:55.747231"], ["token", "hH8EczA5kFsRHgeDAgjMevnlX2gfDD7jaOkAcJFsXrU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60971966-cec4-11e4-a3ee-705681abff85' LIMIT 1 [["organization_id", "60979166-cec4-11e4-81b6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$J6CEPZxWaG6p3RPdtObJcub7CvoE4sNLIcqmPCnYTpA0HBPQ7UfWC"], ["created_at", "2015-03-20 05:45:55.754215"], ["updated_at", "2015-03-20 05:45:55.754215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.757216"], ["updated_at", "2015-03-20 05:45:55.757216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60999ace-cec4-11e4-9358-705681abff85' AND "clubhouse_memberships"."organization_id" = '609a0d24-cec4-11e4-bc6c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60999ace-cec4-11e4-9358-705681abff85"], ["organization_id", "609a0d24-cec4-11e4-bc6c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.761697"], ["updated_at", "2015-03-20 05:45:55.761697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60999ace-cec4-11e4-9358-705681abff85' LIMIT 1 [["organization_id", "609a0d24-cec4-11e4-bc6c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.767917"], ["updated_at", "2015-03-20 05:45:55.767917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '609bb854-cec4-11e4-a8f2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "609bb854-cec4-11e4-a8f2-705681abff85"], ["created_at", "2015-03-20 05:45:55.772079"], ["updated_at", "2015-03-20 05:45:55.772079"], ["token", "qg_v40lctt2s724TCNl44zLiQ9U-F0PZSNrxHWW24PA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (2.0ms) Date: Thu, 19 Mar 2015 22:45:55 -0700 From: from@example.com To: john@example.com Message-ID: <550bb413bd6bb_113a3fd564845bd82099d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/qg_v40lctt2s724TCNl44zLiQ9U-F0PZSNrxHWW24PA?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.780785"], ["updated_at", "2015-03-20 05:45:55.780785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '609da77c-cec4-11e4-93c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "609da77c-cec4-11e4-93c9-705681abff85"], ["created_at", "2015-03-20 05:45:55.784073"], ["updated_at", "2015-03-20 05:45:55.784073"], ["token", "raGdwZ7DtB0bZV8ahQ10gUhct-xNG0biTEtyaZDGJk4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.6ms) Date: Thu, 19 Mar 2015 22:45:55 -0700 From: from@example.com To: john@example.com Message-ID: <550bb413c043f_113a3fd564845bd821053@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/raGdwZ7DtB0bZV8ahQ10gUhct-xNG0biTEtyaZDGJk4?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.792448"], ["updated_at", "2015-03-20 05:45:55.792448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '609f7034-cec4-11e4-a7dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "609f7034-cec4-11e4-a7dc-705681abff85"], ["created_at", "2015-03-20 05:45:55.795852"], ["updated_at", "2015-03-20 05:45:55.795852"], ["token", "cb-QbtFti607woiUFeNk0v1AQ3iwkcuAkuGRun-lnNQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.0ms Sent mail to john@example.com (1.5ms) Date: Thu, 19 Mar 2015 22:45:55 -0700 From: from@example.com To: john@example.com Message-ID: <550bb413c31e0_113a3fd564845bd82116@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/cb-QbtFti607woiUFeNk0v1AQ3iwkcuAkuGRun-lnNQ?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.803759"], ["updated_at", "2015-03-20 05:45:55.803759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '60a12ab4-cec4-11e4-a1fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "60a12ab4-cec4-11e4-a1fd-705681abff85"], ["created_at", "2015-03-20 05:45:55.807068"], ["updated_at", "2015-03-20 05:45:55.807068"], ["token", "su7jGXlrM0Bts9LGOb9SoQlCaM3HYbZgmfgkS6fZwNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.5ms) Date: Thu, 19 Mar 2015 22:45:55 -0700 From: from@example.com To: john@example.com Message-ID: <550bb413c5dcf_113a3fd564845bd82124f@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/su7jGXlrM0Bts9LGOb9SoQlCaM3HYbZgmfgkS6fZwNY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$dd/VnwEjmwABiuwi6emaA.ayVin4oxI88GaQppZdybT/YfdfpQ6Q6"], ["created_at", "2015-03-20 05:45:55.816530"], ["updated_at", "2015-03-20 05:45:55.816530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:55.818031"], ["user_id", "60a31c34-cec4-11e4-8b7a-705681abff85"], ["created_at", "2015-03-20 05:45:55.818801"], ["updated_at", "2015-03-20 05:45:55.818801"], ["token", "6l0w9EpTrUCx-BoydN4-_oo6kBiMPuhQrvXQmGnoMzA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.822060"], ["updated_at", "2015-03-20 05:45:55.822060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60a31c34-cec4-11e4-8b7a-705681abff85' AND "clubhouse_memberships"."organization_id" = '60a3f320-cec4-11e4-af6e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60a31c34-cec4-11e4-8b7a-705681abff85"], ["organization_id", "60a3f320-cec4-11e4-af6e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.825654"], ["updated_at", "2015-03-20 05:45:55.825654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 22:45:55 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$iGx1Z6wmbf5.uF.SsR.yoecBwJ303q8P3IE6g8VQMzM5pIqojKdU."], ["created_at", "2015-03-20 05:45:55.841357"], ["updated_at", "2015-03-20 05:45:55.841357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:55.842908"], ["user_id", "60a6e760-cec4-11e4-bc10-705681abff85"], ["created_at", "2015-03-20 05:45:55.843982"], ["updated_at", "2015-03-20 05:45:55.843982"], ["token", "LthdXnYk-2O890exdhAxaMIhIY02cSLNPB5zGepARfI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.847428"], ["updated_at", "2015-03-20 05:45:55.847428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60a6e760-cec4-11e4-bc10-705681abff85' AND "clubhouse_memberships"."organization_id" = '60a7d5ee-cec4-11e4-afbf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60a6e760-cec4-11e4-bc10-705681abff85"], ["organization_id", "60a7d5ee-cec4-11e4-afbf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.850934"], ["updated_at", "2015-03-20 05:45:55.850934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-58" for 127.0.0.1 at 2015-03-19 22:45:55 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-58", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:55.855553' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LthdXnYk-2O890exdhAxaMIhIY02cSLNPB5zGepARfI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:55.856958"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:55.857949"], ["id", "60a7543e-cec4-11e4-b672-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-58"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60a6e760-cec4-11e4-bc10-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$Sz7gymbgqjG7RictXLZOTu13Q0oLURdV2rf4jZQlHWizinQW03cK6"], ["created_at", "2015-03-20 05:45:55.866787"], ["updated_at", "2015-03-20 05:45:55.866787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:55.868355"], ["user_id", "60aac920-cec4-11e4-8bbc-705681abff85"], ["created_at", "2015-03-20 05:45:55.869106"], ["updated_at", "2015-03-20 05:45:55.869106"], ["token", "PtrBmLbHjrviiugBce4691qXi6wyWH8tegQZRix0mR8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.872842"], ["updated_at", "2015-03-20 05:45:55.872842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60aac920-cec4-11e4-8bbc-705681abff85' AND "clubhouse_memberships"."organization_id" = '60abb2f4-cec4-11e4-a1f3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60aac920-cec4-11e4-8bbc-705681abff85"], ["organization_id", "60abb2f4-cec4-11e4-a1f3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.876001"], ["updated_at", "2015-03-20 05:45:55.876001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 22:45:55 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:55.881037' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PtrBmLbHjrviiugBce4691qXi6wyWH8tegQZRix0mR8"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:55.882406"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:55.884263"], ["id", "60ab2898-cec4-11e4-a111-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$OjPTLaM9qA0CqEtaBMX0MeFevOqcSI0/qgwpUvBZiIs3bx02nRRq6"], ["created_at", "2015-03-20 05:45:55.893087"], ["updated_at", "2015-03-20 05:45:55.893087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:55.894616"], ["user_id", "60aecb38-cec4-11e4-8f23-705681abff85"], ["created_at", "2015-03-20 05:45:55.895330"], ["updated_at", "2015-03-20 05:45:55.895330"], ["token", "VnC1EoPhFi_4l7pj1yQfwQxu5XimbypXQZ45HT5r3NU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.898943"], ["updated_at", "2015-03-20 05:45:55.898943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60aecb38-cec4-11e4-8f23-705681abff85' AND "clubhouse_memberships"."organization_id" = '60afaf44-cec4-11e4-bac1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60aecb38-cec4-11e4-8f23-705681abff85"], ["organization_id", "60afaf44-cec4-11e4-bac1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.903760"], ["updated_at", "2015-03-20 05:45:55.903760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 22:45:55 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$vElo.3ay2NET2QTvmxvA2uiHPCFyQuDD/Btb62zKEQxDO0TLj9b9."], ["created_at", "2015-03-20 05:45:55.913214"], ["updated_at", "2015-03-20 05:45:55.913214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:55.914970"], ["user_id", "60b1e2b4-cec4-11e4-b4bf-705681abff85"], ["created_at", "2015-03-20 05:45:55.915725"], ["updated_at", "2015-03-20 05:45:55.915725"], ["token", "xA1YoTMhGLOddzgN-geKJKEc-n6itZhulmvopMsjznM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.918996"], ["updated_at", "2015-03-20 05:45:55.918996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60b1e2b4-cec4-11e4-b4bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '60b2bca2-cec4-11e4-97e1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60b1e2b4-cec4-11e4-b4bf-705681abff85"], ["organization_id", "60b2bca2-cec4-11e4-97e1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.922112"], ["updated_at", "2015-03-20 05:45:55.922112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/60b2bca2-cec4-11e4-97e1-705681abff85" for 127.0.0.1 at 2015-03-19 22:45:55 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"60b2bca2-cec4-11e4-97e1-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:55.926731' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xA1YoTMhGLOddzgN-geKJKEc-n6itZhulmvopMsjznM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:55.928115"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:55.929083"], ["id", "60b2452e-cec4-11e4-8d8c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "60b2bca2-cec4-11e4-97e1-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60b1e2b4-cec4-11e4-b4bf-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60b1e2b4-cec4-11e4-b4bf-705681abff85' LIMIT 1 [["organization_id", "60b2bca2-cec4-11e4-97e1-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "60b2bca2-cec4-11e4-97e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$OtaPqdi.CC4xlsENGqNzE.bRnGVwYFC6Mf4L9SuUrzxJwixWRvJ3S"], ["created_at", "2015-03-20 05:45:55.939532"], ["updated_at", "2015-03-20 05:45:55.939532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:55.941211"], ["user_id", "60b5e2ec-cec4-11e4-99d3-705681abff85"], ["created_at", "2015-03-20 05:45:55.941965"], ["updated_at", "2015-03-20 05:45:55.941965"], ["token", "0KSmaNY0Uxa7MVGRPpw3qlbrQP5rjXBprYqDk1EqRRE"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.946274"], ["updated_at", "2015-03-20 05:45:55.946274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60b5e2ec-cec4-11e4-99d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '60b6e958-cec4-11e4-9003-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60b5e2ec-cec4-11e4-99d3-705681abff85"], ["organization_id", "60b6e958-cec4-11e4-9003-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.949634"], ["updated_at", "2015-03-20 05:45:55.949634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 22:45:55 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$elFkbHU4PrNRfopG6.zb1OIrxD3.1rqHSHxXIQRzXD1hHN5k6Eh4W"], ["created_at", "2015-03-20 05:45:55.959453"], ["updated_at", "2015-03-20 05:45:55.959453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:55.960981"], ["user_id", "60b8eb90-cec4-11e4-ace7-705681abff85"], ["created_at", "2015-03-20 05:45:55.961690"], ["updated_at", "2015-03-20 05:45:55.961690"], ["token", "KBkw07plgLRzKKLg2YJDOUOlJ4hVaLEwbYoYO7mzKLM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.964768"], ["updated_at", "2015-03-20 05:45:55.964768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60b8eb90-cec4-11e4-ace7-705681abff85' AND "clubhouse_memberships"."organization_id" = '60b9b7e6-cec4-11e4-a721-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60b8eb90-cec4-11e4-ace7-705681abff85"], ["organization_id", "60b9b7e6-cec4-11e4-a721-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.967901"], ["updated_at", "2015-03-20 05:45:55.967901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/60b9b7e6-cec4-11e4-a721-705681abff85" for 127.0.0.1 at 2015-03-19 22:45:55 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"60b9b7e6-cec4-11e4-a721-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:55.974270' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KBkw07plgLRzKKLg2YJDOUOlJ4hVaLEwbYoYO7mzKLM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:55.975669"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:55.976650"], ["id", "60b94716-cec4-11e4-94e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "60b9b7e6-cec4-11e4-a721-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60b8eb90-cec4-11e4-ace7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '60b8eb90-cec4-11e4-ace7-705681abff85' LIMIT 1 [["organization_id", "60b9b7e6-cec4-11e4-a721-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$eTqPjl6/tcsVwMdYCHL0UeeCchKSxihnrRLEqKewFdkAD5E0m3BAK"], ["created_at", "2015-03-20 05:45:55.987076"], ["updated_at", "2015-03-20 05:45:55.987076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:55.988667"], ["user_id", "60bd2386-cec4-11e4-bee3-705681abff85"], ["created_at", "2015-03-20 05:45:55.989584"], ["updated_at", "2015-03-20 05:45:55.989584"], ["token", "78fOoK59-uTyZAleOvT_nkdhmeN9ebPAplG5PPiOaus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:55.993317"], ["updated_at", "2015-03-20 05:45:55.993317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60bd2386-cec4-11e4-bee3-705681abff85' AND "clubhouse_memberships"."organization_id" = '60be149e-cec4-11e4-b789-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60bd2386-cec4-11e4-bee3-705681abff85"], ["organization_id", "60be149e-cec4-11e4-b789-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:55.996585"], ["updated_at", "2015-03-20 05:45:55.996585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:45:55 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$TBgZbIEx1kIJjjSqD.8dLee.yGpXLIJehlX.Kpn1V5u5VHHRoH05m"], ["created_at", "2015-03-20 05:45:56.005929"], ["updated_at", "2015-03-20 05:45:56.005929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.007426"], ["user_id", "60c00308-cec4-11e4-a5c1-705681abff85"], ["created_at", "2015-03-20 05:45:56.008180"], ["updated_at", "2015-03-20 05:45:56.008180"], ["token", "ENPjOZCywkw0mUou7daZQw4CVv1bSCfYiqN2T0ZWBk0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.011392"], ["updated_at", "2015-03-20 05:45:56.011392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60c00308-cec4-11e4-a5c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '60c0d5da-cec4-11e4-b67d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60c00308-cec4-11e4-a5c1-705681abff85"], ["organization_id", "60c0d5da-cec4-11e4-b67d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.014473"], ["updated_at", "2015-03-20 05:45:56.014473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.019200' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ENPjOZCywkw0mUou7daZQw4CVv1bSCfYiqN2T0ZWBk0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.020577"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.021513"], ["id", "60c05f06-cec4-11e4-b4b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60c00308-cec4-11e4-a5c1-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.028571"], ["updated_at", "2015-03-20 05:45:56.028571"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "60c37a9c-cec4-11e4-90fb-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60c00308-cec4-11e4-a5c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '60c37a9c-cec4-11e4-90fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60c00308-cec4-11e4-a5c1-705681abff85"], ["admin", "t"], ["organization_id", "60c37a9c-cec4-11e4-90fb-705681abff85"], ["created_at", "2015-03-20 05:45:56.032369"], ["updated_at", "2015-03-20 05:45:56.032369"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.9ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$lVhOiWqM2EBm0gJvcTgHFekcKhgGsV5ObC5RLhhga4qpAqBB2lqRa"], ["created_at", "2015-03-20 05:45:56.042140"], ["updated_at", "2015-03-20 05:45:56.042140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.043779"], ["user_id", "60c589fe-cec4-11e4-af45-705681abff85"], ["created_at", "2015-03-20 05:45:56.044561"], ["updated_at", "2015-03-20 05:45:56.044561"], ["token", "cYfqs4u0pP7OC25kQY9D57PU676naFHNqV_f_hfdTzM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.047940"], ["updated_at", "2015-03-20 05:45:56.047940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60c589fe-cec4-11e4-af45-705681abff85' AND "clubhouse_memberships"."organization_id" = '60c669b4-cec4-11e4-af6d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60c589fe-cec4-11e4-af45-705681abff85"], ["organization_id", "60c669b4-cec4-11e4-af6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.051056"], ["updated_at", "2015-03-20 05:45:56.051056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.055542' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cYfqs4u0pP7OC25kQY9D57PU676naFHNqV_f_hfdTzM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.056985"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.057986"], ["id", "60c5effc-cec4-11e4-945e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60c589fe-cec4-11e4-af45-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$If7EDTQ4hHK65TBOIZqVYeqYXjGEzmkFFl21hi3tcgkfg6D.YpsXq"], ["created_at", "2015-03-20 05:45:56.068917"], ["updated_at", "2015-03-20 05:45:56.068917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.070681"], ["user_id", "60c9a642-cec4-11e4-8e9b-705681abff85"], ["created_at", "2015-03-20 05:45:56.071433"], ["updated_at", "2015-03-20 05:45:56.071433"], ["token", "1-5q0vnQWRcEmiYkQTGyGdYVUsR4uJSRWd3jXuTx_nA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.074952"], ["updated_at", "2015-03-20 05:45:56.074952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60c9a642-cec4-11e4-8e9b-705681abff85' AND "clubhouse_memberships"."organization_id" = '60ca8b5c-cec4-11e4-a1ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60c9a642-cec4-11e4-8e9b-705681abff85"], ["organization_id", "60ca8b5c-cec4-11e4-a1ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.078349"], ["updated_at", "2015-03-20 05:45:56.078349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$cpj1gDnwe8OIZv0Ewv4r/uqpWksQrhZXrOemojG4CgbW0JBD9EDEC"], ["created_at", "2015-03-20 05:45:56.082789"], ["updated_at", "2015-03-20 05:45:56.082789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.085765"], ["updated_at", "2015-03-20 05:45:56.085765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60cbbd74-cec4-11e4-9080-705681abff85' AND "clubhouse_memberships"."organization_id" = '60cc2ec6-cec4-11e4-be98-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60cbbd74-cec4-11e4-9080-705681abff85"], ["organization_id", "60cc2ec6-cec4-11e4-be98-705681abff85"], ["created_at", "2015-03-20 05:45:56.088893"], ["updated_at", "2015-03-20 05:45:56.088893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$LOjY7EgPXFH8BPGoR5daSeX.kUgUcEEAp5a8xyhj3KGA7eVnbdb7e"], ["created_at", "2015-03-20 05:45:56.098553"], ["updated_at", "2015-03-20 05:45:56.098553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.100110"], ["user_id", "60ce256e-cec4-11e4-82c9-705681abff85"], ["created_at", "2015-03-20 05:45:56.101214"], ["updated_at", "2015-03-20 05:45:56.101214"], ["token", "aL0DvzuGBKCkGgMG7JT0BG7DgVbamDvjqm1F61bKeso"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.105832"], ["updated_at", "2015-03-20 05:45:56.105832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60ce256e-cec4-11e4-82c9-705681abff85' AND "clubhouse_memberships"."organization_id" = '60cf3fc6-cec4-11e4-bf9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60ce256e-cec4-11e4-82c9-705681abff85"], ["organization_id", "60cf3fc6-cec4-11e4-bf9e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.109056"], ["updated_at", "2015-03-20 05:45:56.109056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$vFpJeRvXicgxZPkLjjk5Je2LFDpWsfySYQXwNhPuThT00hKaNRemC"], ["created_at", "2015-03-20 05:45:56.113343"], ["updated_at", "2015-03-20 05:45:56.113343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.116357"], ["updated_at", "2015-03-20 05:45:56.116357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60d06626-cec4-11e4-914d-705681abff85' AND "clubhouse_memberships"."organization_id" = '60d0da34-cec4-11e4-b153-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60d06626-cec4-11e4-914d-705681abff85"], ["organization_id", "60d0da34-cec4-11e4-b153-705681abff85"], ["created_at", "2015-03-20 05:45:56.119362"], ["updated_at", "2015-03-20 05:45:56.119362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.124244' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aL0DvzuGBKCkGgMG7JT0BG7DgVbamDvjqm1F61bKeso"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.125626"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.126548"], ["id", "60cead4a-cec4-11e4-88e8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60ce256e-cec4-11e4-82c9-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "60ce256e-cec4-11e4-82c9-705681abff85"]] Completed 200 OK in 9ms (Views: 2.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$Hraa3tjJzx1pqilEEwP6cOEPiBoBhreKGjFjFn4/zWe.F1hverpU."], ["created_at", "2015-03-20 05:45:56.139669"], ["updated_at", "2015-03-20 05:45:56.139669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.141260"], ["user_id", "60d46c1c-cec4-11e4-b744-705681abff85"], ["created_at", "2015-03-20 05:45:56.142024"], ["updated_at", "2015-03-20 05:45:56.142024"], ["token", "qqAlJIHskgaPaZj-P3cFuuT5yJHqkI5Rh-wmp17jwk0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.145203"], ["updated_at", "2015-03-20 05:45:56.145203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60d46c1c-cec4-11e4-b744-705681abff85' AND "clubhouse_memberships"."organization_id" = '60d542fe-cec4-11e4-afd6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60d46c1c-cec4-11e4-b744-705681abff85"], ["organization_id", "60d542fe-cec4-11e4-afd6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.148436"], ["updated_at", "2015-03-20 05:45:56.148436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$j5jbT0ZOxb4bjQJO4uKsR.fE1KgAnOJ1gRzo5SstsMnOX1fLM4nnO"], ["created_at", "2015-03-20 05:45:56.159699"], ["updated_at", "2015-03-20 05:45:56.159699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.161658"], ["user_id", "60d789f6-cec4-11e4-82df-705681abff85"], ["created_at", "2015-03-20 05:45:56.162394"], ["updated_at", "2015-03-20 05:45:56.162394"], ["token", "tDT10suJKUbPVe0wDh-FIF2nx2_AYt776woWmYY7rr4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.165585"], ["updated_at", "2015-03-20 05:45:56.165585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60d789f6-cec4-11e4-82df-705681abff85' AND "clubhouse_memberships"."organization_id" = '60d86a06-cec4-11e4-8baa-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60d789f6-cec4-11e4-82df-705681abff85"], ["organization_id", "60d86a06-cec4-11e4-8baa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.170958"], ["updated_at", "2015-03-20 05:45:56.170958"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-72" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-72", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.177410' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tDT10suJKUbPVe0wDh-FIF2nx2_AYt776woWmYY7rr4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.178882"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.179810"], ["id", "60d7e81a-cec4-11e4-820c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-72"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60d789f6-cec4-11e4-82df-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60d789f6-cec4-11e4-82df-705681abff85' LIMIT 1 [["organization_id", "60d86a06-cec4-11e4-8baa-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '60d86a06-cec4-11e4-8baa-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:45:56.185894"], ["id", "60d86a06-cec4-11e4-8baa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$Xzg0glpmsnXnULXNxmFJHu4eiCJcAFeqkUqWjzbOwhoTNAw5o/Y6K"], ["created_at", "2015-03-20 05:45:56.193368"], ["updated_at", "2015-03-20 05:45:56.193368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.194959"], ["user_id", "60dc9c7a-cec4-11e4-9cd8-705681abff85"], ["created_at", "2015-03-20 05:45:56.195894"], ["updated_at", "2015-03-20 05:45:56.195894"], ["token", "EN0Fwodwuy5xMV3jBL-LKJ-UKTSTmCgN9IIC91ASiVU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.199396"], ["updated_at", "2015-03-20 05:45:56.199396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60dc9c7a-cec4-11e4-9cd8-705681abff85' AND "clubhouse_memberships"."organization_id" = '60dd870c-cec4-11e4-8f3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60dc9c7a-cec4-11e4-9cd8-705681abff85"], ["organization_id", "60dd870c-cec4-11e4-8f3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.202575"], ["updated_at", "2015-03-20 05:45:56.202575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-73" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-73", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.207785' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EN0Fwodwuy5xMV3jBL-LKJ-UKTSTmCgN9IIC91ASiVU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.209220"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.210209"], ["id", "60dd084a-cec4-11e4-b508-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-73"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60dc9c7a-cec4-11e4-9cd8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60dc9c7a-cec4-11e4-9cd8-705681abff85' LIMIT 1 [["organization_id", "60dd870c-cec4-11e4-8f3f-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '60dd870c-cec4-11e4-8f3f-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$13vCv42o6F0p7diiO.wzROS6CCy4XYTOFS9PQrr9WvUNylh0LZMSq"], ["created_at", "2015-03-20 05:45:56.222555"], ["updated_at", "2015-03-20 05:45:56.222555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.224436"], ["user_id", "60e11336-cec4-11e4-87c2-705681abff85"], ["created_at", "2015-03-20 05:45:56.225354"], ["updated_at", "2015-03-20 05:45:56.225354"], ["token", "TmkupQXiwNyzSrbSotNHrqMIKvaKZAzZ9hjGD9GveC8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.228838"], ["updated_at", "2015-03-20 05:45:56.228838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60e11336-cec4-11e4-87c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '60e20476-cec4-11e4-9fe0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60e11336-cec4-11e4-87c2-705681abff85"], ["organization_id", "60e20476-cec4-11e4-9fe0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.231945"], ["updated_at", "2015-03-20 05:45:56.231945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$qvDhOEEHJP9Hf6RpkwNY3umVsis3ugG7kEmEw7R.B9c6IZeAFMz.O"], ["created_at", "2015-03-20 05:45:56.242761"], ["updated_at", "2015-03-20 05:45:56.242761"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.245204"], ["user_id", "60e43048-cec4-11e4-973c-705681abff85"], ["created_at", "2015-03-20 05:45:56.246179"], ["updated_at", "2015-03-20 05:45:56.246179"], ["token", "1HDZOVWpKbztUPNE4Kw15rVQr06NAhroivMmOWd9gdM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.249523"], ["updated_at", "2015-03-20 05:45:56.249523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60e43048-cec4-11e4-973c-705681abff85' AND "clubhouse_memberships"."organization_id" = '60e52db8-cec4-11e4-b47e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60e43048-cec4-11e4-973c-705681abff85"], ["organization_id", "60e52db8-cec4-11e4-b47e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.252714"], ["updated_at", "2015-03-20 05:45:56.252714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-75" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-75", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.265569' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1HDZOVWpKbztUPNE4Kw15rVQr06NAhroivMmOWd9gdM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.267330"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.269231"], ["id", "60e4b194-cec4-11e4-99b8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-75"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60e43048-cec4-11e4-973c-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '60e43048-cec4-11e4-973c-705681abff85' LIMIT 1 [["organization_id", "60e52db8-cec4-11e4-b47e-705681abff85"]] Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$Ozs0wYXb7JfS3kkM.9XoIeQcfL48r.14ESKai.HvNCN1hqqaQTFHu"], ["created_at", "2015-03-20 05:45:56.283621"], ["updated_at", "2015-03-20 05:45:56.283621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.285762"], ["user_id", "60ea6616-cec4-11e4-b0c0-705681abff85"], ["created_at", "2015-03-20 05:45:56.286662"], ["updated_at", "2015-03-20 05:45:56.286662"], ["token", "ZNAc2btdoS8V9rf166Xdo0h7oP6sX_6lDrkam_5WJus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.290917"], ["updated_at", "2015-03-20 05:45:56.290917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60ea6616-cec4-11e4-b0c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '60eb7f88-cec4-11e4-8a1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60ea6616-cec4-11e4-b0c0-705681abff85"], ["organization_id", "60eb7f88-cec4-11e4-8a1c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.295204"], ["updated_at", "2015-03-20 05:45:56.295204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$etuUqUIRxE6YlnxOz6bY1.RIUMLC/yUF2qSjGbF3UaLYfM4d.IyW."], ["created_at", "2015-03-20 05:45:56.305608"], ["updated_at", "2015-03-20 05:45:56.305608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.307438"], ["user_id", "60edbf8c-cec4-11e4-8efb-705681abff85"], ["created_at", "2015-03-20 05:45:56.309198"], ["updated_at", "2015-03-20 05:45:56.309198"], ["token", "BgMfoYqosvg-2R5QOdBXZbjD1k8qRBZU60TeQovBK1w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.313473"], ["updated_at", "2015-03-20 05:45:56.313473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60edbf8c-cec4-11e4-8efb-705681abff85' AND "clubhouse_memberships"."organization_id" = '60eef94c-cec4-11e4-a178-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60edbf8c-cec4-11e4-8efb-705681abff85"], ["organization_id", "60eef94c-cec4-11e4-a178-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.317511"], ["updated_at", "2015-03-20 05:45:56.317511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/60eef94c-cec4-11e4-a178-705681abff85" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"60eef94c-cec4-11e4-a178-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.322664' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BgMfoYqosvg-2R5QOdBXZbjD1k8qRBZU60TeQovBK1w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.324626"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.325589"], ["id", "60ee53f2-cec4-11e4-9d02-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "60eef94c-cec4-11e4-a178-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60edbf8c-cec4-11e4-8efb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60edbf8c-cec4-11e4-8efb-705681abff85' LIMIT 1 [["organization_id", "60eef94c-cec4-11e4-a178-705681abff85"]] Unpermitted parameters: id, organization  (1.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '60eef94c-cec4-11e4-a178-705681abff85') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:45:56.340780"], ["id", "60eef94c-cec4-11e4-a178-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 23ms (Views: 1.0ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$h7Zt50voZpl/cWMMWCGou.6HWGnMaAbiepTrQ1Me4GNVLa3pSscSq"], ["created_at", "2015-03-20 05:45:56.357040"], ["updated_at", "2015-03-20 05:45:56.357040"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.361988"], ["user_id", "60f5b9da-cec4-11e4-bf5b-705681abff85"], ["created_at", "2015-03-20 05:45:56.363198"], ["updated_at", "2015-03-20 05:45:56.363198"], ["token", "YJTmp8dKtQdFGpaAdf4tCK-0zgAOFMIc21dFacylMy0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.369628"], ["updated_at", "2015-03-20 05:45:56.369628"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60f5b9da-cec4-11e4-bf5b-705681abff85' AND "clubhouse_memberships"."organization_id" = '60f7c3ec-cec4-11e4-a6bf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60f5b9da-cec4-11e4-bf5b-705681abff85"], ["organization_id", "60f7c3ec-cec4-11e4-a6bf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.376739"], ["updated_at", "2015-03-20 05:45:56.376739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/60f7c3ec-cec4-11e4-a6bf-705681abff85" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"60f7c3ec-cec4-11e4-a6bf-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.382080' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YJTmp8dKtQdFGpaAdf4tCK-0zgAOFMIc21dFacylMy0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.383756"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.385203"], ["id", "60f6bba0-cec4-11e4-abe2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (1.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "60f7c3ec-cec4-11e4-a6bf-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60f5b9da-cec4-11e4-bf5b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '60f5b9da-cec4-11e4-bf5b-705681abff85' LIMIT 1 [["organization_id", "60f7c3ec-cec4-11e4-a6bf-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '60f7c3ec-cec4-11e4-a6bf-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$lJqGGY.BJnwVhqDE.YNCxuCU6r6fvF9MiHqCQDgqxZBfjBRQnbaYq"], ["created_at", "2015-03-20 05:45:56.402256"], ["updated_at", "2015-03-20 05:45:56.402256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.403882"], ["user_id", "60fc7d56-cec4-11e4-b70a-705681abff85"], ["created_at", "2015-03-20 05:45:56.404579"], ["updated_at", "2015-03-20 05:45:56.404579"], ["token", "lRqHaKL_qloUy6y0aEf4yV2RKEtzfGGxVL_OJg4DJNs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.408229"], ["updated_at", "2015-03-20 05:45:56.408229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60fc7d56-cec4-11e4-b70a-705681abff85' AND "clubhouse_memberships"."organization_id" = '60fd6f2c-cec4-11e4-8490-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60fc7d56-cec4-11e4-b70a-705681abff85"], ["organization_id", "60fd6f2c-cec4-11e4-8490-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.412345"], ["updated_at", "2015-03-20 05:45:56.412345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$a0JLp2MylprFvlRp8S8DkekP2t/zoat9kcrl.6IupMRHdG1wWpNdS"], ["created_at", "2015-03-20 05:45:56.426336"], ["updated_at", "2015-03-20 05:45:56.426336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.428998"], ["user_id", "61003072-cec4-11e4-abc3-705681abff85"], ["created_at", "2015-03-20 05:45:56.430364"], ["updated_at", "2015-03-20 05:45:56.430364"], ["token", "aRZc4dO2jgqTeneyE0qkVAEzmkwO1wb98wIbPyepMf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.435238"], ["updated_at", "2015-03-20 05:45:56.435238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61003072-cec4-11e4-abc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '61018616-cec4-11e4-ad6c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "61003072-cec4-11e4-abc3-705681abff85"], ["organization_id", "61018616-cec4-11e4-ad6c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.438778"], ["updated_at", "2015-03-20 05:45:56.438778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-80" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-80", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.443453' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aRZc4dO2jgqTeneyE0qkVAEzmkwO1wb98wIbPyepMf4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.444835"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.445922"], ["id", "6100d9b4-cec4-11e4-933d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-80"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "61003072-cec4-11e4-abc3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '61003072-cec4-11e4-abc3-705681abff85' LIMIT 1 [["organization_id", "61018616-cec4-11e4-ad6c-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "61018616-cec4-11e4-ad6c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.467872"], ["updated_at", "2015-03-20 05:45:56.467872"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.491437"], ["updated_at", "2015-03-20 05:45:56.491437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.502153"], ["updated_at", "2015-03-20 05:45:56.502153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.506575"], ["updated_at", "2015-03-20 05:45:56.506575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "610c6c0c-cec4-11e4-b3e6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.511944"], ["updated_at", "2015-03-20 05:45:56.511944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$sFeFVNI3jsqNvKhnfYLYNumsoiDLilFYKRAXf4Fnd1K38ycsEqvLa"], ["created_at", "2015-03-20 05:45:56.520052"], ["updated_at", "2015-03-20 05:45:56.520052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$gOLGrwiLvrmvJwoDShhfB.lIb11iWTSDn6acVnsPbD5TwO5NmeqUW"], ["created_at", "2015-03-20 05:45:56.524626"], ["updated_at", "2015-03-20 05:45:56.524626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.526399"], ["user_id", "610e76dc-cec4-11e4-ae21-705681abff85"], ["created_at", "2015-03-20 05:45:56.527163"], ["updated_at", "2015-03-20 05:45:56.527163"], ["token", "isZpKucNXz-6Yy_i_VSvwpx49gUBPvg7H0YwW7bJUN0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.530553"], ["updated_at", "2015-03-20 05:45:56.530553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '610e76dc-cec4-11e4-ae21-705681abff85' AND "clubhouse_memberships"."organization_id" = '61101168-cec4-11e4-91a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "610e76dc-cec4-11e4-ae21-705681abff85"], ["organization_id", "61101168-cec4-11e4-91a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.533959"], ["updated_at", "2015-03-20 05:45:56.533959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '610f2c9e-cec4-11e4-a3f4-705681abff85' AND "clubhouse_memberships"."organization_id" = '61101168-cec4-11e4-91a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "610f2c9e-cec4-11e4-a3f4-705681abff85"], ["organization_id", "61101168-cec4-11e4-91a9-705681abff85"], ["created_at", "2015-03-20 05:45:56.537028"], ["updated_at", "2015-03-20 05:45:56.537028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$eDGj0jQxJCkvP0Lv41hmaewFY4G2i5c8fY72GPmpq9S7anPHJJQXK"], ["created_at", "2015-03-20 05:45:56.552492"], ["updated_at", "2015-03-20 05:45:56.552492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$0vntbP7FlZBTlHjnz1qUkO0LHfA4xy9e2g3bL/VluoS6FVvfVgNWe"], ["created_at", "2015-03-20 05:45:56.556623"], ["updated_at", "2015-03-20 05:45:56.556623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.558863"], ["user_id", "61136ba6-cec4-11e4-b207-705681abff85"], ["created_at", "2015-03-20 05:45:56.559696"], ["updated_at", "2015-03-20 05:45:56.559696"], ["token", "sznYkm4GwFXFSaOezDK-6AljMvpO3Th5D1KfgTgVRvE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.563317"], ["updated_at", "2015-03-20 05:45:56.563317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61136ba6-cec4-11e4-b207-705681abff85' AND "clubhouse_memberships"."organization_id" = '61150e52-cec4-11e4-96a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "61136ba6-cec4-11e4-b207-705681abff85"], ["organization_id", "61150e52-cec4-11e4-96a0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.566547"], ["updated_at", "2015-03-20 05:45:56.566547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '611415ec-cec4-11e4-b55e-705681abff85' AND "clubhouse_memberships"."organization_id" = '61150e52-cec4-11e4-96a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "611415ec-cec4-11e4-b55e-705681abff85"], ["organization_id", "61150e52-cec4-11e4-96a0-705681abff85"], ["created_at", "2015-03-20 05:45:56.569664"], ["updated_at", "2015-03-20 05:45:56.569664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.574437' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "sznYkm4GwFXFSaOezDK-6AljMvpO3Th5D1KfgTgVRvE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.575900"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.576894"], ["id", "61148de2-cec4-11e4-9452-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "61136ba6-cec4-11e4-b207-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '61136ba6-cec4-11e4-b207-705681abff85' LIMIT 1 [["organization_id", "61150e52-cec4-11e4-96a0-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "61150e52-cec4-11e4-96a0-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('61136ba6-cec4-11e4-b207-705681abff85', '611415ec-cec4-11e4-b55e-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('61150e52-cec4-11e4-96a0-705681abff85') Completed 200 OK in 16ms (Views: 6.8ms | ActiveRecord: 2.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$kZN.idUjmhJXrM9c51gT7er4tV51NJMFGeRYEJ.DJCGE3LBcnjV1y"], ["created_at", "2015-03-20 05:45:56.596911"], ["updated_at", "2015-03-20 05:45:56.596911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$ISy2cLsH6fFRibB1pBAtPOHO/9Pzojm5fpoh2Frfh8i./m0C2ywjG"], ["created_at", "2015-03-20 05:45:56.601384"], ["updated_at", "2015-03-20 05:45:56.601384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.603063"], ["user_id", "611a32b0-cec4-11e4-a2ff-705681abff85"], ["created_at", "2015-03-20 05:45:56.603801"], ["updated_at", "2015-03-20 05:45:56.603801"], ["token", "EK4_3917qVeRthMSI-QR3fdJqRV55RUUKbj2OPUbePc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.607169"], ["updated_at", "2015-03-20 05:45:56.607169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '611a32b0-cec4-11e4-a2ff-705681abff85' AND "clubhouse_memberships"."organization_id" = '611bc026-cec4-11e4-b7b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "611a32b0-cec4-11e4-a2ff-705681abff85"], ["organization_id", "611bc026-cec4-11e4-b7b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.610539"], ["updated_at", "2015-03-20 05:45:56.610539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '611adf58-cec4-11e4-810e-705681abff85' AND "clubhouse_memberships"."organization_id" = '611bc026-cec4-11e4-b7b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "611adf58-cec4-11e4-810e-705681abff85"], ["organization_id", "611bc026-cec4-11e4-b7b0-705681abff85"], ["created_at", "2015-03-20 05:45:56.613612"], ["updated_at", "2015-03-20 05:45:56.613612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$ONkg2quxdo5.YnyWG34dfOfdbQoxjHf/Y6j/Ck1lAJTbnMDcJezmS"], ["created_at", "2015-03-20 05:45:56.618894"], ["updated_at", "2015-03-20 05:45:56.618894"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.621896"], ["user_id", "611da21a-cec4-11e4-bafd-705681abff85"], ["created_at", "2015-03-20 05:45:56.623004"], ["updated_at", "2015-03-20 05:45:56.623004"], ["token", "AUvXvsddhIMxacP8o0nfcg7w8i7QHgDnTEf1mVsxvQ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '611bc026-cec4-11e4-b7b0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "611bc026-cec4-11e4-b7b0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.627801"], ["updated_at", "2015-03-20 05:45:56.627801"], ["token", "Jn69U9BsnksvMeszToYARCUbrxiRxmq_VvebEwsYgXQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$Pf9INHIwlO0KW4JPhz1UguvKX1VWKS25gI6oNRc/w4bXUqzGeFrc2"], ["created_at", "2015-03-20 05:45:56.638692"], ["updated_at", "2015-03-20 05:45:56.638692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$c6/hmfwRvi8Vs8KKScHQV.ylO5fUXK5k1pl6grNUrLNjzKR5t4xHa"], ["created_at", "2015-03-20 05:45:56.643857"], ["updated_at", "2015-03-20 05:45:56.643857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.645566"], ["user_id", "612091fa-cec4-11e4-bf86-705681abff85"], ["created_at", "2015-03-20 05:45:56.646422"], ["updated_at", "2015-03-20 05:45:56.646422"], ["token", "CT3GgqxrvrJbt7wGNjgamEL_-Ohc8jopOqrPvv1CPFU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.649974"], ["updated_at", "2015-03-20 05:45:56.649974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '612091fa-cec4-11e4-bf86-705681abff85' AND "clubhouse_memberships"."organization_id" = '61224806-cec4-11e4-a002-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "612091fa-cec4-11e4-bf86-705681abff85"], ["organization_id", "61224806-cec4-11e4-a002-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.653275"], ["updated_at", "2015-03-20 05:45:56.653275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61215bf8-cec4-11e4-88cc-705681abff85' AND "clubhouse_memberships"."organization_id" = '61224806-cec4-11e4-a002-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "61215bf8-cec4-11e4-88cc-705681abff85"], ["organization_id", "61224806-cec4-11e4-a002-705681abff85"], ["created_at", "2015-03-20 05:45:56.656301"], ["updated_at", "2015-03-20 05:45:56.656301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$sbT0Q/HPWZlBpij3kGG07.49JgRQKhjNbaakbV//lwKjhMyIlUP2i"], ["created_at", "2015-03-20 05:45:56.661092"], ["updated_at", "2015-03-20 05:45:56.661092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.662700"], ["user_id", "6123fbf6-cec4-11e4-873a-705681abff85"], ["created_at", "2015-03-20 05:45:56.663494"], ["updated_at", "2015-03-20 05:45:56.663494"], ["token", "cJC3MvRVpmT_xt9SYeOpcweEQYafuySID84Dh_juUGA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '61224806-cec4-11e4-a002-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "61224806-cec4-11e4-a002-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.667129"], ["updated_at", "2015-03-20 05:45:56.667129"], ["token", "Wn9GfEEtdWlIct02_wXJcoqQ0h0rlTtEO18bSNmf36k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/61224806-cec4-11e4-a002-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Wn9GfEEtdWlIct02_wXJcoqQ0h0rlTtEO18bSNmf36k", "organization_id"=>"61224806-cec4-11e4-a002-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.672619' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cJC3MvRVpmT_xt9SYeOpcweEQYafuySID84Dh_juUGA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.674297"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.675370"], ["id", "6124608c-cec4-11e4-9529-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "61224806-cec4-11e4-a002-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6123fbf6-cec4-11e4-873a-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "Wn9GfEEtdWlIct02_wXJcoqQ0h0rlTtEO18bSNmf36k"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "61224806-cec4-11e4-a002-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6123fbf6-cec4-11e4-873a-705681abff85' AND "clubhouse_memberships"."organization_id" = '61224806-cec4-11e4-a002-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "61224806-cec4-11e4-a002-705681abff85"], ["member_id", "6123fbf6-cec4-11e4-873a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.685502"], ["updated_at", "2015-03-20 05:45:56.685502"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6124ea7a-cec4-11e4-b21b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.1ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$m7bpMMD5ovN0HktjuaG/PeKC2lo3BP3FFxFCTrq0A/Zel3essdGy."], ["created_at", "2015-03-20 05:45:56.696294"], ["updated_at", "2015-03-20 05:45:56.696294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$ANIv7qP7XCOHeAPAaARZ4O.XEq1FgCpTCdIvlFPjXa2eUUw3kNS.K"], ["created_at", "2015-03-20 05:45:56.700495"], ["updated_at", "2015-03-20 05:45:56.700495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.701965"], ["user_id", "61295c4a-cec4-11e4-96f6-705681abff85"], ["created_at", "2015-03-20 05:45:56.702716"], ["updated_at", "2015-03-20 05:45:56.702716"], ["token", "YOTqZBmPQVXKeEQVZfnTfWI9tTZZHCBJQh1wfQO1SVc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.706178"], ["updated_at", "2015-03-20 05:45:56.706178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61295c4a-cec4-11e4-96f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '612adae8-cec4-11e4-88d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "61295c4a-cec4-11e4-96f6-705681abff85"], ["organization_id", "612adae8-cec4-11e4-88d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.710111"], ["updated_at", "2015-03-20 05:45:56.710111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6129fcb8-cec4-11e4-a52e-705681abff85' AND "clubhouse_memberships"."organization_id" = '612adae8-cec4-11e4-88d8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6129fcb8-cec4-11e4-a52e-705681abff85"], ["organization_id", "612adae8-cec4-11e4-88d8-705681abff85"], ["created_at", "2015-03-20 05:45:56.713514"], ["updated_at", "2015-03-20 05:45:56.713514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$cdydKkxZeWkVosJ.9fjYxuZbA.KBUq2NnrQMRD/krY/8dT.n6tkki"], ["created_at", "2015-03-20 05:45:56.717917"], ["updated_at", "2015-03-20 05:45:56.717917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.719435"], ["user_id", "612ca616-cec4-11e4-8dd8-705681abff85"], ["created_at", "2015-03-20 05:45:56.720174"], ["updated_at", "2015-03-20 05:45:56.720174"], ["token", "kdbc3xWLlzCuwGfkC8ou2If-AMYqniDH-ynhGsOyf-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '612adae8-cec4-11e4-88d8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "612adae8-cec4-11e4-88d8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.723794"], ["updated_at", "2015-03-20 05:45:56.723794"], ["token", "_0lCwdaZHk1RckrduFfGxlAu1Mha-ddhrZJ76Lh89z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/612adae8-cec4-11e4-88d8-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"612adae8-cec4-11e4-88d8-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.730201' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kdbc3xWLlzCuwGfkC8ou2If-AMYqniDH-ynhGsOyf-s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.731644"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.732589"], ["id", "612d055c-cec4-11e4-a7bf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "612adae8-cec4-11e4-88d8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "612ca616-cec4-11e4-8dd8-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$xx3qBjNRpZTXzJyaU7bgt.IKN5bmAyKLpsrR6r0z3hSB3ttj5QAW2"], ["created_at", "2015-03-20 05:45:56.743882"], ["updated_at", "2015-03-20 05:45:56.743882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$empw90SDhZ6e3JiMec6jdeTYotpkIhGuaTaZQ6KxmIivWSitTb1I2"], ["created_at", "2015-03-20 05:45:56.748309"], ["updated_at", "2015-03-20 05:45:56.748309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.749810"], ["user_id", "6130a28e-cec4-11e4-9887-705681abff85"], ["created_at", "2015-03-20 05:45:56.750561"], ["updated_at", "2015-03-20 05:45:56.750561"], ["token", "snQ3rRBbmPjU6OUPsc0na6957IufCT5nHIxtHSwnxmg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.753959"], ["updated_at", "2015-03-20 05:45:56.753959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6130a28e-cec4-11e4-9887-705681abff85' AND "clubhouse_memberships"."organization_id" = '61322514-cec4-11e4-b5e6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6130a28e-cec4-11e4-9887-705681abff85"], ["organization_id", "61322514-cec4-11e4-b5e6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.757200"], ["updated_at", "2015-03-20 05:45:56.757200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '613149b4-cec4-11e4-886d-705681abff85' AND "clubhouse_memberships"."organization_id" = '61322514-cec4-11e4-b5e6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "613149b4-cec4-11e4-886d-705681abff85"], ["organization_id", "61322514-cec4-11e4-b5e6-705681abff85"], ["created_at", "2015-03-20 05:45:56.760760"], ["updated_at", "2015-03-20 05:45:56.760760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$e3/hxUKUlofGiXADxpgiReYFx8D4f0z7auoSnIkRse2iMoVbXSlVa"], ["created_at", "2015-03-20 05:45:56.770484"], ["updated_at", "2015-03-20 05:45:56.770484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$dGSkrSO4tPUetLcbhl.ile8SKeVLyv5RaGe71Lnah3UXwN6C8GUCO"], ["created_at", "2015-03-20 05:45:56.775100"], ["updated_at", "2015-03-20 05:45:56.775100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.777237"], ["user_id", "6134adac-cec4-11e4-a9e4-705681abff85"], ["created_at", "2015-03-20 05:45:56.778170"], ["updated_at", "2015-03-20 05:45:56.778170"], ["token", "fVmFyFEDzuQ40_B--SYm-jMndvmQfynobeSen6RB-Rk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.781944"], ["updated_at", "2015-03-20 05:45:56.781944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6134adac-cec4-11e4-a9e4-705681abff85' AND "clubhouse_memberships"."organization_id" = '61366c8c-cec4-11e4-a050-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6134adac-cec4-11e4-a9e4-705681abff85"], ["organization_id", "61366c8c-cec4-11e4-a050-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.785555"], ["updated_at", "2015-03-20 05:45:56.785555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61356846-cec4-11e4-9084-705681abff85' AND "clubhouse_memberships"."organization_id" = '61366c8c-cec4-11e4-a050-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "61356846-cec4-11e4-9084-705681abff85"], ["organization_id", "61366c8c-cec4-11e4-a050-705681abff85"], ["created_at", "2015-03-20 05:45:56.788666"], ["updated_at", "2015-03-20 05:45:56.788666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/6137705a-cec4-11e4-bade-705681abff85" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"6137705a-cec4-11e4-bade-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.794276' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fVmFyFEDzuQ40_B--SYm-jMndvmQfynobeSen6RB-Rk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.795788"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.796860"], ["id", "6135e1f4-cec4-11e4-853e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "6137705a-cec4-11e4-bade-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6134adac-cec4-11e4-a9e4-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "61366c8c-cec4-11e4-a050-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6134adac-cec4-11e4-a9e4-705681abff85' LIMIT 1 [["organization_id", "61366c8c-cec4-11e4-a050-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "61356846-cec4-11e4-9084-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "6137705a-cec4-11e4-bade-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$0IGLNSMrwsLACL8O79du6eM/VdasIiczRerygYRTjwHLFX3ZGHMvi"], ["created_at", "2015-03-20 05:45:56.808799"], ["updated_at", "2015-03-20 05:45:56.808799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$IMo2F.3UTkO.El/eomSPguQclaJUwhKYBGmEhl3RumwzHm6tS4VnS"], ["created_at", "2015-03-20 05:45:56.813410"], ["updated_at", "2015-03-20 05:45:56.813410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.814976"], ["user_id", "613a8be6-cec4-11e4-8cc4-705681abff85"], ["created_at", "2015-03-20 05:45:56.815927"], ["updated_at", "2015-03-20 05:45:56.815927"], ["token", "5HMMBwfGG9IPNtDemAYQo5w4JMWbfnFhp0ltH7Azr50"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.819514"], ["updated_at", "2015-03-20 05:45:56.819514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '613a8be6-cec4-11e4-8cc4-705681abff85' AND "clubhouse_memberships"."organization_id" = '613c2762-cec4-11e4-9a6b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "613a8be6-cec4-11e4-8cc4-705681abff85"], ["organization_id", "613c2762-cec4-11e4-9a6b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.822720"], ["updated_at", "2015-03-20 05:45:56.822720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '613b399c-cec4-11e4-92a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '613c2762-cec4-11e4-9a6b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "613b399c-cec4-11e4-92a4-705681abff85"], ["organization_id", "613c2762-cec4-11e4-9a6b-705681abff85"], ["created_at", "2015-03-20 05:45:56.826318"], ["updated_at", "2015-03-20 05:45:56.826318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$Y7zOuyofi2EJfC6fc6LOFuPrYhCNKkKPonJ/NM8E5xUGlwmK1IES2"], ["created_at", "2015-03-20 05:45:56.836414"], ["updated_at", "2015-03-20 05:45:56.836414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$E1.5u4FBMLGGgRkONVWzgugKVK9Blw.zzlmoWP6htSaCzRIegyOyq"], ["created_at", "2015-03-20 05:45:56.841144"], ["updated_at", "2015-03-20 05:45:56.841144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.843004"], ["user_id", "613ebf36-cec4-11e4-ab77-705681abff85"], ["created_at", "2015-03-20 05:45:56.843912"], ["updated_at", "2015-03-20 05:45:56.843912"], ["token", "urNbfSpKnn71nYVODsDmpFSbXCzNeJasgs61-2AIKPw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.847771"], ["updated_at", "2015-03-20 05:45:56.847771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '613ebf36-cec4-11e4-ab77-705681abff85' AND "clubhouse_memberships"."organization_id" = '614078e4-cec4-11e4-8ed8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "613ebf36-cec4-11e4-ab77-705681abff85"], ["organization_id", "614078e4-cec4-11e4-8ed8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.851252"], ["updated_at", "2015-03-20 05:45:56.851252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '613f79b2-cec4-11e4-a924-705681abff85' AND "clubhouse_memberships"."organization_id" = '614078e4-cec4-11e4-8ed8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "613f79b2-cec4-11e4-a924-705681abff85"], ["organization_id", "614078e4-cec4-11e4-8ed8-705681abff85"], ["created_at", "2015-03-20 05:45:56.854344"], ["updated_at", "2015-03-20 05:45:56.854344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/61410016-cec4-11e4-adcb-705681abff85" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"61410016-cec4-11e4-adcb-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.859644' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "urNbfSpKnn71nYVODsDmpFSbXCzNeJasgs61-2AIKPw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.861176"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.862212"], ["id", "613ff18a-cec4-11e4-9c51-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "61410016-cec4-11e4-adcb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "613ebf36-cec4-11e4-ab77-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "614078e4-cec4-11e4-8ed8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '613ebf36-cec4-11e4-ab77-705681abff85' LIMIT 1 [["organization_id", "614078e4-cec4-11e4-8ed8-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "613ebf36-cec4-11e4-ab77-705681abff85"]] Completed 200 OK in 9ms (Views: 1.7ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$NdIM2.b4Bi/63IdwW3WGuebH4xg7h4qqQIUnGwnHtO9ha2iVF5qHq"], ["created_at", "2015-03-20 05:45:56.874789"], ["updated_at", "2015-03-20 05:45:56.874789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$2BXgHQlrmxBJv6oi9.LakO4Hht9snAZmaNxX492TOlEEip4xm7pcS"], ["created_at", "2015-03-20 05:45:56.878919"], ["updated_at", "2015-03-20 05:45:56.878919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.880417"], ["user_id", "614498f2-cec4-11e4-ba55-705681abff85"], ["created_at", "2015-03-20 05:45:56.881140"], ["updated_at", "2015-03-20 05:45:56.881140"], ["token", "4w0UZCNXoPW6Nx3n0ALfNnBWnzfv2WTu2L85MU9YLLo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.884489"], ["updated_at", "2015-03-20 05:45:56.884489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '614498f2-cec4-11e4-ba55-705681abff85' AND "clubhouse_memberships"."organization_id" = '614610ba-cec4-11e4-96ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "614498f2-cec4-11e4-ba55-705681abff85"], ["organization_id", "614610ba-cec4-11e4-96ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.887857"], ["updated_at", "2015-03-20 05:45:56.887857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61453546-cec4-11e4-80a6-705681abff85' AND "clubhouse_memberships"."organization_id" = '614610ba-cec4-11e4-96ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "61453546-cec4-11e4-80a6-705681abff85"], ["organization_id", "614610ba-cec4-11e4-96ba-705681abff85"], ["created_at", "2015-03-20 05:45:56.890842"], ["updated_at", "2015-03-20 05:45:56.890842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$/RNl4cQoZRHmohyEvzEjhOdHo53UYUy9O42v60pH0unnO6hA2llQC"], ["created_at", "2015-03-20 05:45:56.895441"], ["updated_at", "2015-03-20 05:45:56.895441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.896936"], ["user_id", "6147bd34-cec4-11e4-b077-705681abff85"], ["created_at", "2015-03-20 05:45:56.897673"], ["updated_at", "2015-03-20 05:45:56.897673"], ["token", "2Soy6f9lJjL1Na-ZWgdC5aai6ezCEJoXXCI6qFThH3E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '614610ba-cec4-11e4-96ba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "614610ba-cec4-11e4-96ba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.901156"], ["updated_at", "2015-03-20 05:45:56.901156"], ["token", "IUsa_wXjOLbSGEQU-tchHK6ab2DkLxNbzaZ6TPgQOA0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$aZ9x8QJHfcZHM31JIUW/Pu6ldvKN7B6pN7CwN41ynQwUotfl9k6Ve"], ["created_at", "2015-03-20 05:45:56.911853"], ["updated_at", "2015-03-20 05:45:56.911853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (3.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$sHiRgMIFszIgyZATgjGEkOdABdeKe7WxKAqE8FbusT/mZTErlzuM6"], ["created_at", "2015-03-20 05:45:56.916109"], ["updated_at", "2015-03-20 05:45:56.916109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.921682"], ["user_id", "614a3eec-cec4-11e4-8227-705681abff85"], ["created_at", "2015-03-20 05:45:56.922719"], ["updated_at", "2015-03-20 05:45:56.922719"], ["token", "DTZjccFBhkdFORBlh8FO11fkbA6uI8KCGJgVkVJuDDg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.926259"], ["updated_at", "2015-03-20 05:45:56.926259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '614a3eec-cec4-11e4-8227-705681abff85' AND "clubhouse_memberships"."organization_id" = '614c7392-cec4-11e4-9c10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "614a3eec-cec4-11e4-8227-705681abff85"], ["organization_id", "614c7392-cec4-11e4-9c10-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.929674"], ["updated_at", "2015-03-20 05:45:56.929674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '614aed56-cec4-11e4-aa5f-705681abff85' AND "clubhouse_memberships"."organization_id" = '614c7392-cec4-11e4-9c10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "614aed56-cec4-11e4-aa5f-705681abff85"], ["organization_id", "614c7392-cec4-11e4-9c10-705681abff85"], ["created_at", "2015-03-20 05:45:56.932505"], ["updated_at", "2015-03-20 05:45:56.932505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$F.ZP5WSgzClSE8GB3Zp/o.aon0Zdls6lhItnDSwtY0WQefQVH0fEe"], ["created_at", "2015-03-20 05:45:56.936700"], ["updated_at", "2015-03-20 05:45:56.936700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.938131"], ["user_id", "614e06da-cec4-11e4-9a86-705681abff85"], ["created_at", "2015-03-20 05:45:56.938842"], ["updated_at", "2015-03-20 05:45:56.938842"], ["token", "Y11xCul0h4W-PVGlR_H19k63b24W1tbwhkwNvn5CPcg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '614c7392-cec4-11e4-9c10-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "614c7392-cec4-11e4-9c10-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.942400"], ["updated_at", "2015-03-20 05:45:56.942400"], ["token", "DqFQqbdkCwIc8vftJKAaf_jISenqqA5ZCtfoNLj8ElU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"DqFQqbdkCwIc8vftJKAaf_jISenqqA5ZCtfoNLj8ElU", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.947594' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y11xCul0h4W-PVGlR_H19k63b24W1tbwhkwNvn5CPcg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.948970"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:56.949931"], ["id", "614e60ee-cec4-11e4-a0da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "614e06da-cec4-11e4-9a86-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "DqFQqbdkCwIc8vftJKAaf_jISenqqA5ZCtfoNLj8ElU"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "614c7392-cec4-11e4-9c10-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '614e06da-cec4-11e4-9a86-705681abff85' AND "clubhouse_memberships"."organization_id" = '614c7392-cec4-11e4-9c10-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "614c7392-cec4-11e4-9c10-705681abff85"], ["member_id", "614e06da-cec4-11e4-9a86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.956815"], ["updated_at", "2015-03-20 05:45:56.956815"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "614ef3ba-cec4-11e4-90a3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 1.3ms | ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$Q5A/mz.Urhua4InICtR56eMkOhsXK75cur4BmGQDj2kyQhg5dxF1W"], ["created_at", "2015-03-20 05:45:56.967446"], ["updated_at", "2015-03-20 05:45:56.967446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$GLAQ6IS.X9IzFRBDFPldxObuIZaHDpAdXMjMqdxDM5tGu0OZa7vSm"], ["created_at", "2015-03-20 05:45:56.971505"], ["updated_at", "2015-03-20 05:45:56.971505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.973091"], ["user_id", "6152b9b4-cec4-11e4-9f9a-705681abff85"], ["created_at", "2015-03-20 05:45:56.973828"], ["updated_at", "2015-03-20 05:45:56.973828"], ["token", "H2Se9t8YXQXar21tgCSNyL795HbinGxWWazj4lsjEY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:56.977159"], ["updated_at", "2015-03-20 05:45:56.977159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6152b9b4-cec4-11e4-9f9a-705681abff85' AND "clubhouse_memberships"."organization_id" = '61543532-cec4-11e4-bde1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6152b9b4-cec4-11e4-9f9a-705681abff85"], ["organization_id", "61543532-cec4-11e4-bde1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.980401"], ["updated_at", "2015-03-20 05:45:56.980401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61535a9a-cec4-11e4-8110-705681abff85' AND "clubhouse_memberships"."organization_id" = '61543532-cec4-11e4-bde1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "61535a9a-cec4-11e4-8110-705681abff85"], ["organization_id", "61543532-cec4-11e4-bde1-705681abff85"], ["created_at", "2015-03-20 05:45:56.983315"], ["updated_at", "2015-03-20 05:45:56.983315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$ZMYvCueU0nFc0baNeNcUXu0PleVrGTJuiTThxUyo.ooFOMo05ohuq"], ["created_at", "2015-03-20 05:45:56.987365"], ["updated_at", "2015-03-20 05:45:56.987365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:56.988787"], ["user_id", "6155c17c-cec4-11e4-a13d-705681abff85"], ["created_at", "2015-03-20 05:45:56.989544"], ["updated_at", "2015-03-20 05:45:56.989544"], ["token", "-55uNhwsWeMHZbqxVRv3O7qsIuHr1P8CF_Bh7CIDJ0s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '61543532-cec4-11e4-bde1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "61543532-cec4-11e4-bde1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:56.993141"], ["updated_at", "2015-03-20 05:45:56.993141"], ["token", "_zvsVf4XuAC6XMOJI_3jdfXPPDJ5RRBXsebaUc6haPY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:45:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:56.997877' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-55uNhwsWeMHZbqxVRv3O7qsIuHr1P8CF_Bh7CIDJ0s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:56.999835"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:57.000816"], ["id", "61561f5a-cec4-11e4-866f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6155c17c-cec4-11e4-a13d-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$n8/rr7Glf.RV3TIkuXFwn.gogr59S6Gg6xxs8HrUMEj/bun8WwGl."], ["created_at", "2015-03-20 05:45:57.011051"], ["updated_at", "2015-03-20 05:45:57.011051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$Wtds8y1nsACvctSsPHe1NeBDYTtkW1gqX9bUdip8zD9Ue2EuZgSn6"], ["created_at", "2015-03-20 05:45:57.015116"], ["updated_at", "2015-03-20 05:45:57.015116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:57.016499"], ["user_id", "615962c8-cec4-11e4-9d8e-705681abff85"], ["created_at", "2015-03-20 05:45:57.017229"], ["updated_at", "2015-03-20 05:45:57.017229"], ["token", "kMGi7THAjRPhJBnomfE64k5tN7y4Oig9s6QrpLn2skE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:57.020401"], ["updated_at", "2015-03-20 05:45:57.020401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '615962c8-cec4-11e4-9d8e-705681abff85' AND "clubhouse_memberships"."organization_id" = '615acb90-cec4-11e4-8f6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "615962c8-cec4-11e4-9d8e-705681abff85"], ["organization_id", "615acb90-cec4-11e4-8f6a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:57.023659"], ["updated_at", "2015-03-20 05:45:57.023659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6159fcce-cec4-11e4-9e1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '615acb90-cec4-11e4-8f6a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6159fcce-cec4-11e4-9e1b-705681abff85"], ["organization_id", "615acb90-cec4-11e4-8f6a-705681abff85"], ["created_at", "2015-03-20 05:45:57.026740"], ["updated_at", "2015-03-20 05:45:57.026740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 22:45:57 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$TZmauH./SbeHiM6cooWuNuU4dnn9bGi0OBa7hxIgqR/wuZQXLG7cC"], ["created_at", "2015-03-20 05:45:57.036908"], ["updated_at", "2015-03-20 05:45:57.036908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$xTGqhQZYZpkRcSccYwofoOm9aY7GoTxI/hPHNJJn8bNxibMhSeVya"], ["created_at", "2015-03-20 05:45:57.041890"], ["updated_at", "2015-03-20 05:45:57.041890"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:57.044940"], ["user_id", "615d57f2-cec4-11e4-a3c3-705681abff85"], ["created_at", "2015-03-20 05:45:57.045847"], ["updated_at", "2015-03-20 05:45:57.045847"], ["token", "9f1hdMx2DjzURRH4SWOtyrZi8HPIATKybyqTZe5wgxw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:57.049659"], ["updated_at", "2015-03-20 05:45:57.049659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '615d57f2-cec4-11e4-a3c3-705681abff85' AND "clubhouse_memberships"."organization_id" = '615f48d2-cec4-11e4-8223-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "615d57f2-cec4-11e4-a3c3-705681abff85"], ["organization_id", "615f48d2-cec4-11e4-8223-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:57.053265"], ["updated_at", "2015-03-20 05:45:57.053265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '615e2a9c-cec4-11e4-97fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '615f48d2-cec4-11e4-8223-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "615e2a9c-cec4-11e4-97fb-705681abff85"], ["organization_id", "615f48d2-cec4-11e4-8223-705681abff85"], ["created_at", "2015-03-20 05:45:57.056763"], ["updated_at", "2015-03-20 05:45:57.056763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/61605de4-cec4-11e4-bf37-705681abff85" for 127.0.0.1 at 2015-03-19 22:45:57 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"61605de4-cec4-11e4-bf37-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:57.061982' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9f1hdMx2DjzURRH4SWOtyrZi8HPIATKybyqTZe5wgxw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:57.063663"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:57.064964"], ["id", "615ebb7e-cec4-11e4-a896-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "61605de4-cec4-11e4-bf37-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "615d57f2-cec4-11e4-a3c3-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "615f48d2-cec4-11e4-8223-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '615d57f2-cec4-11e4-a3c3-705681abff85' LIMIT 1 [["organization_id", "615f48d2-cec4-11e4-8223-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "615e2a9c-cec4-11e4-97fb-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '615e2a9c-cec4-11e4-97fb-705681abff85' AND "clubhouse_memberships"."id" != '61605de4-cec4-11e4-bf37-705681abff85' AND "clubhouse_memberships"."organization_id" = '615f48d2-cec4-11e4-8223-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:45:57.074144"], ["id", "61605de4-cec4-11e4-bf37-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$iK2niFx/pO9N1amrJ4a5fu5B6qL6rBR0O/PMWzm0P8Jl993ooj7pi"], ["created_at", "2015-03-20 05:45:57.082562"], ["updated_at", "2015-03-20 05:45:57.082562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$YokQQUOmSIeWw23qwIKxYOmKwfO24ik.6MCDX8IqsI9YeDFS03KKy"], ["created_at", "2015-03-20 05:45:57.086802"], ["updated_at", "2015-03-20 05:45:57.086802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:57.088270"], ["user_id", "61644b0c-cec4-11e4-806a-705681abff85"], ["created_at", "2015-03-20 05:45:57.089007"], ["updated_at", "2015-03-20 05:45:57.089007"], ["token", "hiHEr4o3IhrKx6YbETfWcc6gpY2bV7ZcwieNopbUg8o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:57.092288"], ["updated_at", "2015-03-20 05:45:57.092288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61644b0c-cec4-11e4-806a-705681abff85' AND "clubhouse_memberships"."organization_id" = '6165c4b4-cec4-11e4-8a7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "61644b0c-cec4-11e4-806a-705681abff85"], ["organization_id", "6165c4b4-cec4-11e4-8a7d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:57.095394"], ["updated_at", "2015-03-20 05:45:57.095394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6164ee7c-cec4-11e4-a628-705681abff85' AND "clubhouse_memberships"."organization_id" = '6165c4b4-cec4-11e4-8a7d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6164ee7c-cec4-11e4-a628-705681abff85"], ["organization_id", "6165c4b4-cec4-11e4-8a7d-705681abff85"], ["created_at", "2015-03-20 05:45:57.098278"], ["updated_at", "2015-03-20 05:45:57.098278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:45:57 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$.u2sYAzgUWnfV43D1r6WseTx7tW1Ws3mpI.QeiE.mG2N1xMg5S9F6"], ["created_at", "2015-03-20 05:45:57.107652"], ["updated_at", "2015-03-20 05:45:57.107652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$loyOP/9y47lK24eAVQ5HG.gQOnetBZKNYC4.lYgZxIrI91qXnR7ta"], ["created_at", "2015-03-20 05:45:57.111967"], ["updated_at", "2015-03-20 05:45:57.111967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:45:57.113619"], ["user_id", "6168216e-cec4-11e4-a547-705681abff85"], ["created_at", "2015-03-20 05:45:57.114504"], ["updated_at", "2015-03-20 05:45:57.114504"], ["token", "YvZ85wGW6dkfSL2Gk--fXUV1kHDvZi7g37O6K7506P0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:45:57.117896"], ["updated_at", "2015-03-20 05:45:57.117896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6168216e-cec4-11e4-a547-705681abff85' AND "clubhouse_memberships"."organization_id" = '6169aca0-cec4-11e4-ab42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6168216e-cec4-11e4-a547-705681abff85"], ["organization_id", "6169aca0-cec4-11e4-ab42-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:45:57.120978"], ["updated_at", "2015-03-20 05:45:57.120978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6168c6aa-cec4-11e4-8596-705681abff85' AND "clubhouse_memberships"."organization_id" = '6169aca0-cec4-11e4-ab42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6168c6aa-cec4-11e4-8596-705681abff85"], ["organization_id", "6169aca0-cec4-11e4-ab42-705681abff85"], ["created_at", "2015-03-20 05:45:57.124038"], ["updated_at", "2015-03-20 05:45:57.124038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/6169aca0-cec4-11e4-ab42-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:45:57 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"6169aca0-cec4-11e4-ab42-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:45:57.128809' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YvZ85wGW6dkfSL2Gk--fXUV1kHDvZi7g37O6K7506P0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:45:57.130207"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:45:57.131187"], ["id", "616932e8-cec4-11e4-b31b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6169aca0-cec4-11e4-ab42-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6168216e-cec4-11e4-a547-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6168216e-cec4-11e4-a547-705681abff85' LIMIT 1 [["organization_id", "6169aca0-cec4-11e4-ab42-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "6169aca0-cec4-11e4-ab42-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('6168216e-cec4-11e4-a547-705681abff85', '6168c6aa-cec4-11e4-8596-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('6169aca0-cec4-11e4-ab42-705681abff85') Completed 200 OK in 11ms (Views: 3.3ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$IOauLsWqSNLZ06YsemoPQuX.HZ.G4VhdZZTTAdnHQZyMAhhewk5W6"], ["created_at", "2015-03-20 05:51:58.745759"], ["updated_at", "2015-03-20 05:51:58.745759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.756046"], ["updated_at", "2015-03-20 05:51:58.756046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38f5dc0c-cec5-11e4-b9c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '38f75776-cec5-11e4-988e-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "38f5dc0c-cec5-11e4-b9c7-705681abff85"], ["organization_id", "38f75776-cec5-11e4-988e-705681abff85"], ["created_at", "2015-03-20 05:51:58.760040"], ["updated_at", "2015-03-20 05:51:58.760040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38f5dc0c-cec5-11e4-b9c7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38f75776-cec5-11e4-988e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38f5dc0c-cec5-11e4-b9c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '38f75776-cec5-11e4-988e-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "38f75776-cec5-11e4-988e-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38f5dc0c-cec5-11e4-b9c7-705681abff85' AND "clubhouse_memberships"."organization_id" = '38f75776-cec5-11e4-988e-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$AYQtxEOEd0CG80fWVCTJOeQeqh.fbvXZlWCVz6JUaFkqn1ERpN/R."], ["created_at", "2015-03-20 05:51:58.792282"], ["updated_at", "2015-03-20 05:51:58.792282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.796122"], ["updated_at", "2015-03-20 05:51:58.796122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38fcdb38-cec5-11e4-876d-705681abff85' AND "clubhouse_memberships"."organization_id" = '38fd70de-cec5-11e4-9c0e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38fcdb38-cec5-11e4-876d-705681abff85"], ["organization_id", "38fd70de-cec5-11e4-9c0e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:58.800180"], ["updated_at", "2015-03-20 05:51:58.800180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '38fcdb38-cec5-11e4-876d-705681abff85' LIMIT 1 [["organization_id", "38fd70de-cec5-11e4-9c0e-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$ivT3OOlCXH6cf/PdBFcfHOtJk2EO1erQuJayNiQ6/DkuuJ7r1oMO."], ["created_at", "2015-03-20 05:51:58.820164"], ["updated_at", "2015-03-20 05:51:58.820164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.824752"], ["updated_at", "2015-03-20 05:51:58.824752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '390136d8-cec5-11e4-92ac-705681abff85' AND "clubhouse_memberships"."organization_id" = '3901c9b8-cec5-11e4-bcd7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "390136d8-cec5-11e4-92ac-705681abff85"], ["organization_id", "3901c9b8-cec5-11e4-bcd7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:58.828477"], ["updated_at", "2015-03-20 05:51:58.828477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$bVJpGDF0B1CTB3YXjohlMezZF4hRh6Gh/4ZuFLP6lG5I2zXt3EOrS"], ["created_at", "2015-03-20 05:51:58.833937"], ["updated_at", "2015-03-20 05:51:58.833937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39033460-cec5-11e4-b82c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3901c9b8-cec5-11e4-bcd7-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39033460-cec5-11e4-b82c-705681abff85"], ["organization_id", "3901c9b8-cec5-11e4-bcd7-705681abff85"], ["created_at", "2015-03-20 05:51:58.838043"], ["updated_at", "2015-03-20 05:51:58.838043"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$svVUjUpby719qkBdp9Yp/OH7ckSYznwq5/2kvrLIF9G.Hp4fz/.km"], ["created_at", "2015-03-20 05:51:58.846267"], ["updated_at", "2015-03-20 05:51:58.846267"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.850987"], ["updated_at", "2015-03-20 05:51:58.850987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '390519ba-cec5-11e4-a586-705681abff85' AND "clubhouse_memberships"."organization_id" = '3905d170-cec5-11e4-a697-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "390519ba-cec5-11e4-a586-705681abff85"], ["organization_id", "3905d170-cec5-11e4-a697-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:58.856011"], ["updated_at", "2015-03-20 05:51:58.856011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$bYgyzuqp8sLw9jx0IRf7cuTE4HShE9Gqr7Nv0CSK4ijzbH4kG5uOu"], ["created_at", "2015-03-20 05:51:58.861238"], ["updated_at", "2015-03-20 05:51:58.861238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39075b62-cec5-11e4-af41-705681abff85' AND "clubhouse_memberships"."organization_id" = '3905d170-cec5-11e4-a697-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39075b62-cec5-11e4-af41-705681abff85"], ["organization_id", "3905d170-cec5-11e4-a697-705681abff85"], ["created_at", "2015-03-20 05:51:58.864741"], ["updated_at", "2015-03-20 05:51:58.864741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '390519ba-cec5-11e4-a586-705681abff85' LIMIT 1 [["organization_id", "3905d170-cec5-11e4-a697-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$ocvO5kEaFVRgUFE0U7g09uhE9FWXSFsCeqEJPKD2cldUEeBQ3QZwq"], ["created_at", "2015-03-20 05:51:58.871865"], ["updated_at", "2015-03-20 05:51:58.871865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.875358"], ["updated_at", "2015-03-20 05:51:58.875358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3908f760-cec5-11e4-bcaa-705681abff85' AND "clubhouse_memberships"."organization_id" = '390980e0-cec5-11e4-b46d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3908f760-cec5-11e4-bcaa-705681abff85"], ["organization_id", "390980e0-cec5-11e4-b46d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:58.879532"], ["updated_at", "2015-03-20 05:51:58.879532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$SDLdZggZ53avMtHyEn5jEuaJxY9tVYAllB6wg/esfOyqx02wrN7Qu"], ["created_at", "2015-03-20 05:51:58.884122"], ["updated_at", "2015-03-20 05:51:58.884122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '390ad422-cec5-11e4-8b9e-705681abff85' AND "clubhouse_memberships"."organization_id" = '390980e0-cec5-11e4-b46d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "390ad422-cec5-11e4-8b9e-705681abff85"], ["organization_id", "390980e0-cec5-11e4-b46d-705681abff85"], ["created_at", "2015-03-20 05:51:58.887283"], ["updated_at", "2015-03-20 05:51:58.887283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3908f760-cec5-11e4-bcaa-705681abff85' LIMIT 1 [["organization_id", "390980e0-cec5-11e4-b46d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$Sigwb7/yQCSm.Ircao9GGurM4HN2/fJ9IXTDEhd7FzsxpqbujUHWa"], ["created_at", "2015-03-20 05:51:58.895061"], ["updated_at", "2015-03-20 05:51:58.895061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.898268"], ["updated_at", "2015-03-20 05:51:58.898268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '390c81b4-cec5-11e4-b714-705681abff85' AND "clubhouse_memberships"."organization_id" = '390cfd7e-cec5-11e4-96d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "390c81b4-cec5-11e4-b714-705681abff85"], ["organization_id", "390cfd7e-cec5-11e4-96d5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:58.901539"], ["updated_at", "2015-03-20 05:51:58.901539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$1KShx3.jbEVW0F7LJ6SW5OBvucG0kFxunsAlT15NnchwhAhGAlI0a"], ["created_at", "2015-03-20 05:51:58.906246"], ["updated_at", "2015-03-20 05:51:58.906246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '390e3be4-cec5-11e4-aa64-705681abff85' AND "clubhouse_memberships"."organization_id" = '390cfd7e-cec5-11e4-96d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "390e3be4-cec5-11e4-aa64-705681abff85"], ["organization_id", "390cfd7e-cec5-11e4-96d5-705681abff85"], ["created_at", "2015-03-20 05:51:58.910158"], ["updated_at", "2015-03-20 05:51:58.910158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '390c81b4-cec5-11e4-b714-705681abff85' LIMIT 1 [["organization_id", "390cfd7e-cec5-11e4-96d5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$i0SgKn1b621kLL7g4Jusge2ftIjpVBSiBDLR/uqd2D82BewiLEeVW"], ["created_at", "2015-03-20 05:51:58.917674"], ["updated_at", "2015-03-20 05:51:58.917674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.921044"], ["updated_at", "2015-03-20 05:51:58.921044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '390ff5e2-cec5-11e4-9ddd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3910790e-cec5-11e4-a95c-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "390ff5e2-cec5-11e4-9ddd-705681abff85"], ["organization_id", "3910790e-cec5-11e4-a95c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:58.926977"], ["updated_at", "2015-03-20 05:51:58.926977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$GebWqjtsjBoitcjSGuok7.e2k8XekB9xM/v.haAAxXGWPaX4LS7NC"], ["created_at", "2015-03-20 05:51:58.933869"], ["updated_at", "2015-03-20 05:51:58.933869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.937348"], ["updated_at", "2015-03-20 05:51:58.937348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39126f52-cec5-11e4-a2ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '3912f792-cec5-11e4-8a69-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39126f52-cec5-11e4-a2ec-705681abff85"], ["organization_id", "3912f792-cec5-11e4-8a69-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:58.940951"], ["updated_at", "2015-03-20 05:51:58.940951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39126f52-cec5-11e4-a2ec-705681abff85' LIMIT 1 [["organization_id", "3912f792-cec5-11e4-8a69-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$d/aAkjp/YOkZCbqvt2XEY.H5lGUQGJ7UpCVjHLD/LRvs.2dc2MVeG"], ["created_at", "2015-03-20 05:51:58.948052"], ["updated_at", "2015-03-20 05:51:58.948052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.951430"], ["updated_at", "2015-03-20 05:51:58.951430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39149aca-cec5-11e4-9c41-705681abff85' AND "clubhouse_memberships"."organization_id" = '391519a0-cec5-11e4-95d1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39149aca-cec5-11e4-9c41-705681abff85"], ["organization_id", "391519a0-cec5-11e4-95d1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:58.955273"], ["updated_at", "2015-03-20 05:51:58.955273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39149aca-cec5-11e4-9c41-705681abff85' LIMIT 1 [["organization_id", "391519a0-cec5-11e4-95d1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$FTQAo5nLgyU3uwgw8LRoKO1DkiLX2DUWSZbqTiVJ9xRkJYWViwrvC"], ["created_at", "2015-03-20 05:51:58.964411"], ["updated_at", "2015-03-20 05:51:58.964411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.968350"], ["updated_at", "2015-03-20 05:51:58.968350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3917245c-cec5-11e4-abc5-705681abff85' AND "clubhouse_memberships"."organization_id" = '3917b020-cec5-11e4-8c3d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3917245c-cec5-11e4-abc5-705681abff85"], ["organization_id", "3917b020-cec5-11e4-8c3d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:58.971965"], ["updated_at", "2015-03-20 05:51:58.971965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3917245c-cec5-11e4-abc5-705681abff85' LIMIT 1 [["organization_id", "3917b020-cec5-11e4-8c3d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$2m2T.QIjMZZWjfi85dZ8X.JUSiCvqUevzJsP2zVSMXy.9.MDbVQzu"], ["created_at", "2015-03-20 05:51:58.979662"], ["updated_at", "2015-03-20 05:51:58.979662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$1lTayldy38sQlJFVxSWSeOwk07x14Tm0sODrKJB8KmvzbbGhvHo96"], ["created_at", "2015-03-20 05:51:58.984099"], ["updated_at", "2015-03-20 05:51:58.984099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:58.987330"], ["updated_at", "2015-03-20 05:51:58.987330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '391a161c-cec5-11e4-860d-705681abff85' AND "clubhouse_memberships"."organization_id" = '391a93f8-cec5-11e4-bf9c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "391a161c-cec5-11e4-860d-705681abff85"], ["organization_id", "391a93f8-cec5-11e4-bf9c-705681abff85"], ["created_at", "2015-03-20 05:51:58.991391"], ["updated_at", "2015-03-20 05:51:58.991391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$Ep/dEKaOb1xobMywjARkDOoj08MSckoi9AMKJ.oxRKKvid3pq.Xdu"], ["created_at", "2015-03-20 05:51:58.997767"], ["updated_at", "2015-03-20 05:51:58.997767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$qWvYUNuhRnkPw4ZERkFLmuuiefRAw/J9/Lj63GHka2uM8IUbrzjhS"], ["created_at", "2015-03-20 05:51:59.010982"], ["updated_at", "2015-03-20 05:51:59.010982"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.015203"], ["updated_at", "2015-03-20 05:51:59.015203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '391e3b02-cec5-11e4-a99c-705681abff85' AND "clubhouse_memberships"."organization_id" = '391ed396-cec5-11e4-8293-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "391e3b02-cec5-11e4-a99c-705681abff85"], ["organization_id", "391ed396-cec5-11e4-8293-705681abff85"], ["created_at", "2015-03-20 05:51:59.018343"], ["updated_at", "2015-03-20 05:51:59.018343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '391d5a2a-cec5-11e4-9e7d-705681abff85' LIMIT 1 [["organization_id", "391ed396-cec5-11e4-8293-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$rCiGN965t35KkkIdpVD.R.kjVsVv1LoewmKqa7gODq8yCBZfwCHOa"], ["created_at", "2015-03-20 05:51:59.025918"], ["updated_at", "2015-03-20 05:51:59.025918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$pSc4sFk6WSYI6nJ//Frj1OyctdsPwu6W4I6mZDarMgR1OYXRK3LDy"], ["created_at", "2015-03-20 05:51:59.030400"], ["updated_at", "2015-03-20 05:51:59.030400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.033581"], ["updated_at", "2015-03-20 05:51:59.033581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3921260a-cec5-11e4-a151-705681abff85' AND "clubhouse_memberships"."organization_id" = '3921a170-cec5-11e4-8f15-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3921260a-cec5-11e4-a151-705681abff85"], ["organization_id", "3921a170-cec5-11e4-8f15-705681abff85"], ["created_at", "2015-03-20 05:51:59.036712"], ["updated_at", "2015-03-20 05:51:59.036712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39207bf6-cec5-11e4-bc70-705681abff85' LIMIT 1 [["organization_id", "3921a170-cec5-11e4-8f15-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$CttLoCbVsWLfoR.BHvUE5O3oOyfH2x3NxKmSX6FAgltITbgEpN/Me"], ["created_at", "2015-03-20 05:51:59.044340"], ["updated_at", "2015-03-20 05:51:59.044340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$BqVa/nWV0arlhJhjdHwuOuk1g5muyxroXdocU6yHV4FaboKaxaSDy"], ["created_at", "2015-03-20 05:51:59.048613"], ["updated_at", "2015-03-20 05:51:59.048613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.051827"], ["updated_at", "2015-03-20 05:51:59.051827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3923ec82-cec5-11e4-96ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '39246a9a-cec5-11e4-b7cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3923ec82-cec5-11e4-96ed-705681abff85"], ["organization_id", "39246a9a-cec5-11e4-b7cf-705681abff85"], ["created_at", "2015-03-20 05:51:59.055041"], ["updated_at", "2015-03-20 05:51:59.055041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '39234944-cec5-11e4-8ff6-705681abff85' LIMIT 1 [["organization_id", "39246a9a-cec5-11e4-b7cf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$D3lxfTmPYwXWN4HCjeyHruJrD89.ESPg1Fyailymmgt.MwvTAJQVC"], ["created_at", "2015-03-20 05:51:59.063113"], ["updated_at", "2015-03-20 05:51:59.063113"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.068433"], ["updated_at", "2015-03-20 05:51:59.068433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '392625e2-cec5-11e4-8e08-705681abff85' LIMIT 1 [["organization_id", "3926f68e-cec5-11e4-b361-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$stx.8OX/O.To9XhVWXN8meTDTpI4zQgY7Bk0ixkEUXQ1YArRfOJgS"], ["created_at", "2015-03-20 05:51:59.075738"], ["updated_at", "2015-03-20 05:51:59.075738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.079262"], ["updated_at", "2015-03-20 05:51:59.079262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39281500-cec5-11e4-9ae7-705681abff85' AND "clubhouse_memberships"."organization_id" = '39289a34-cec5-11e4-bd46-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39281500-cec5-11e4-9ae7-705681abff85"], ["organization_id", "39289a34-cec5-11e4-bd46-705681abff85"], ["created_at", "2015-03-20 05:51:59.082505"], ["updated_at", "2015-03-20 05:51:59.082505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$5oTwNVbdpchn9JOONznnlORQk2WEkiU65wvbI2xiJH6gOfX0unRgu"], ["created_at", "2015-03-20 05:51:59.088232"], ["updated_at", "2015-03-20 05:51:59.088232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.091472"], ["updated_at", "2015-03-20 05:51:59.091472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3929fb86-cec5-11e4-953b-705681abff85' AND "clubhouse_memberships"."organization_id" = '392a7714-cec5-11e4-af0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3929fb86-cec5-11e4-953b-705681abff85"], ["organization_id", "392a7714-cec5-11e4-af0e-705681abff85"], ["created_at", "2015-03-20 05:51:59.094789"], ["updated_at", "2015-03-20 05:51:59.094789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3929fb86-cec5-11e4-953b-705681abff85' LIMIT 1 [["organization_id", "392a7714-cec5-11e4-af0e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$PdmEcQ7Xkg.2ra/r0UQj.ubDEs3fHfN0ltoXps8uE3QVi.zmvfHSe"], ["created_at", "2015-03-20 05:51:59.103092"], ["updated_at", "2015-03-20 05:51:59.103092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.106368"], ["updated_at", "2015-03-20 05:51:59.106368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '392c4152-cec5-11e4-96b1-705681abff85' AND "clubhouse_memberships"."organization_id" = '392cbfd8-cec5-11e4-8004-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "392c4152-cec5-11e4-96b1-705681abff85"], ["organization_id", "392cbfd8-cec5-11e4-8004-705681abff85"], ["created_at", "2015-03-20 05:51:59.109816"], ["updated_at", "2015-03-20 05:51:59.109816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '392c4152-cec5-11e4-96b1-705681abff85' LIMIT 1 [["organization_id", "392cbfd8-cec5-11e4-8004-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$6o.jbYPpMNX3TUO51NeHVuxjcYCsWAZ4C0ncX4c61Day9.p..oIMG"], ["created_at", "2015-03-20 05:51:59.116947"], ["updated_at", "2015-03-20 05:51:59.116947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.120268"], ["updated_at", "2015-03-20 05:51:59.120268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '392e5d16-cec5-11e4-93e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '392edaf2-cec5-11e4-b25b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "392e5d16-cec5-11e4-93e6-705681abff85"], ["organization_id", "392edaf2-cec5-11e4-b25b-705681abff85"], ["created_at", "2015-03-20 05:51:59.123479"], ["updated_at", "2015-03-20 05:51:59.123479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '392e5d16-cec5-11e4-93e6-705681abff85' LIMIT 1 [["organization_id", "392edaf2-cec5-11e4-b25b-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$Nya8Kea6Q0xCNGK5SPYb5.1blsiRwBx5Rsn7ec4pB1rEwdyJyJiEO"], ["created_at", "2015-03-20 05:51:59.131362"], ["updated_at", "2015-03-20 05:51:59.131362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.135052"], ["updated_at", "2015-03-20 05:51:59.135052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '393091da-cec5-11e4-b5d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '39311f4c-cec5-11e4-bbf2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "393091da-cec5-11e4-b5d5-705681abff85"], ["organization_id", "39311f4c-cec5-11e4-bbf2-705681abff85"], ["created_at", "2015-03-20 05:51:59.138382"], ["updated_at", "2015-03-20 05:51:59.138382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '393091da-cec5-11e4-b5d5-705681abff85' LIMIT 1 [["organization_id", "39311f4c-cec5-11e4-bbf2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$ZdDFxWuhjPJ7giFRToyf5.cwSLbHLadOk2T0Ku/KVjSAC1/k6/1OG"], ["created_at", "2015-03-20 05:51:59.146352"], ["updated_at", "2015-03-20 05:51:59.146352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$Nd.ovQQCY5kfTnorcLNe0uDE53GAJKf3vXVfIjJ5Pp/35QfUvwKcu"], ["created_at", "2015-03-20 05:51:59.150700"], ["updated_at", "2015-03-20 05:51:59.150700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.158458"], ["user_id", "3932d9fe-cec5-11e4-8229-705681abff85"], ["created_at", "2015-03-20 05:51:59.159552"], ["updated_at", "2015-03-20 05:51:59.159552"], ["token", "7Fk6sHJ9q7rUfWl9A0tMA3lGPmrjYSae_9HM7OUP9z8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.164234"], ["updated_at", "2015-03-20 05:51:59.164234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3932d9fe-cec5-11e4-8229-705681abff85' AND "clubhouse_memberships"."organization_id" = '39359298-cec5-11e4-89ef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3932d9fe-cec5-11e4-8229-705681abff85"], ["organization_id", "39359298-cec5-11e4-89ef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.167558"], ["updated_at", "2015-03-20 05:51:59.167558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '393380a2-cec5-11e4-b894-705681abff85' AND "clubhouse_memberships"."organization_id" = '39359298-cec5-11e4-89ef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "393380a2-cec5-11e4-b894-705681abff85"], ["organization_id", "39359298-cec5-11e4-89ef-705681abff85"], ["created_at", "2015-03-20 05:51:59.170681"], ["updated_at", "2015-03-20 05:51:59.170681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$tIHplIl0ZNzX1GANE3Ve0u6PrtVD86V1MfdfHwkfCIP/9X3yOJUNW"], ["created_at", "2015-03-20 05:51:59.204409"], ["updated_at", "2015-03-20 05:51:59.204409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$hZm3kNCAy0TMc4MMZdCYpObZ8sk1yL1voZIhUYMN7kbJfPVs.lR9S"], ["created_at", "2015-03-20 05:51:59.209696"], ["updated_at", "2015-03-20 05:51:59.209696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.211708"], ["user_id", "393bca3c-cec5-11e4-93fd-705681abff85"], ["created_at", "2015-03-20 05:51:59.212561"], ["updated_at", "2015-03-20 05:51:59.212561"], ["token", "b34K8sygRSHY-VT3PgWPqfATx9B5WQvd5z9RfjNPH-M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.216331"], ["updated_at", "2015-03-20 05:51:59.216331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '393bca3c-cec5-11e4-93fd-705681abff85' AND "clubhouse_memberships"."organization_id" = '393d84da-cec5-11e4-9084-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "393bca3c-cec5-11e4-93fd-705681abff85"], ["organization_id", "393d84da-cec5-11e4-9084-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.219711"], ["updated_at", "2015-03-20 05:51:59.219711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '393c88b4-cec5-11e4-9c58-705681abff85' AND "clubhouse_memberships"."organization_id" = '393d84da-cec5-11e4-9084-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "393c88b4-cec5-11e4-9c58-705681abff85"], ["organization_id", "393d84da-cec5-11e4-9084-705681abff85"], ["created_at", "2015-03-20 05:51:59.222926"], ["updated_at", "2015-03-20 05:51:59.222926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/393d84da-cec5-11e4-9084-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"393d84da-cec5-11e4-9084-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:51:59.228700' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "b34K8sygRSHY-VT3PgWPqfATx9B5WQvd5z9RfjNPH-M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:51:59.230623"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:51:59.231863"], ["id", "393cfd3a-cec5-11e4-8320-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "393d84da-cec5-11e4-9084-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "393bca3c-cec5-11e4-93fd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '393bca3c-cec5-11e4-93fd-705681abff85' LIMIT 1 [["organization_id", "393d84da-cec5-11e4-9084-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "393d84da-cec5-11e4-9084-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('393bca3c-cec5-11e4-93fd-705681abff85', '393c88b4-cec5-11e4-9c58-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('393d84da-cec5-11e4-9084-705681abff85') Completed 200 OK in 24ms (Views: 12.0ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$ojNdSSFRtzqrF/g8gz4GO.aXpVfrbFUzT4TvICofcGUXGkYoim0oe"], ["created_at", "2015-03-20 05:51:59.262247"], ["updated_at", "2015-03-20 05:51:59.262247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$UmSQzIh3OuaWxYgYY4/Tyu/vjlFmUoKI/WLPjY7oWoc2W2NzL7EWC"], ["created_at", "2015-03-20 05:51:59.266938"], ["updated_at", "2015-03-20 05:51:59.266938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.268535"], ["user_id", "39448ea6-cec5-11e4-865a-705681abff85"], ["created_at", "2015-03-20 05:51:59.269353"], ["updated_at", "2015-03-20 05:51:59.269353"], ["token", "VMb07QNhY9hv9HpRpzJm7VsXQnuJnV846LvDxcg_zO0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.272922"], ["updated_at", "2015-03-20 05:51:59.272922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39448ea6-cec5-11e4-865a-705681abff85' AND "clubhouse_memberships"."organization_id" = '39462784-cec5-11e4-bce7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39448ea6-cec5-11e4-865a-705681abff85"], ["organization_id", "39462784-cec5-11e4-bce7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.276371"], ["updated_at", "2015-03-20 05:51:59.276371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39453e8c-cec5-11e4-add8-705681abff85' AND "clubhouse_memberships"."organization_id" = '39462784-cec5-11e4-bce7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39453e8c-cec5-11e4-add8-705681abff85"], ["organization_id", "39462784-cec5-11e4-bce7-705681abff85"], ["created_at", "2015-03-20 05:51:59.279879"], ["updated_at", "2015-03-20 05:51:59.279879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$BuPbFZMxKtkdgFGWPUu/Ku3UX9ZmXtoHjziJHiAD2/Ok3aGPOhZFK"], ["created_at", "2015-03-20 05:51:59.290470"], ["updated_at", "2015-03-20 05:51:59.290470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$7ZL2/Bm2LhJ835uFOkUMrugKd9WcTqrRvmPPsHu/SJtjp08QYGhGK"], ["created_at", "2015-03-20 05:51:59.295739"], ["updated_at", "2015-03-20 05:51:59.295739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.297459"], ["user_id", "3948ddf8-cec5-11e4-be05-705681abff85"], ["created_at", "2015-03-20 05:51:59.298365"], ["updated_at", "2015-03-20 05:51:59.298365"], ["token", "_vTrR_bXgLMVt4FqBWGFkLNVxVqTEhWKlMUPWy2FgZU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.302018"], ["updated_at", "2015-03-20 05:51:59.302018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3948ddf8-cec5-11e4-be05-705681abff85' AND "clubhouse_memberships"."organization_id" = '394a97e2-cec5-11e4-90ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3948ddf8-cec5-11e4-be05-705681abff85"], ["organization_id", "394a97e2-cec5-11e4-90ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.305538"], ["updated_at", "2015-03-20 05:51:59.305538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3949a65c-cec5-11e4-b9e6-705681abff85' AND "clubhouse_memberships"."organization_id" = '394a97e2-cec5-11e4-90ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3949a65c-cec5-11e4-b9e6-705681abff85"], ["organization_id", "394a97e2-cec5-11e4-90ad-705681abff85"], ["created_at", "2015-03-20 05:51:59.308753"], ["updated_at", "2015-03-20 05:51:59.308753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/394b22f2-cec5-11e4-b7cf-705681abff85" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"394b22f2-cec5-11e4-b7cf-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:51:59.314382' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_vTrR_bXgLMVt4FqBWGFkLNVxVqTEhWKlMUPWy2FgZU"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:51:59.315892"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:51:59.317924"], ["id", "394a142a-cec5-11e4-a823-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "394b22f2-cec5-11e4-b7cf-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3948ddf8-cec5-11e4-be05-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "394a97e2-cec5-11e4-90ad-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3948ddf8-cec5-11e4-be05-705681abff85' LIMIT 1 [["organization_id", "394a97e2-cec5-11e4-90ad-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3948ddf8-cec5-11e4-be05-705681abff85"]] Completed 200 OK in 13ms (Views: 2.0ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$FDiXVAI8htCYyynBZ0wDc.Elqg08bjPht4Lka1T7XOj2SxqATGMZS"], ["created_at", "2015-03-20 05:51:59.340567"], ["updated_at", "2015-03-20 05:51:59.340567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$7hBxfmjCFMn6Z26GO/MQHO6rLVH.ZvDrENnLKpqiHUB3uvf.gGHBu"], ["created_at", "2015-03-20 05:51:59.347142"], ["updated_at", "2015-03-20 05:51:59.347142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.359810"], ["user_id", "3950928c-cec5-11e4-bfbd-705681abff85"], ["created_at", "2015-03-20 05:51:59.361005"], ["updated_at", "2015-03-20 05:51:59.361005"], ["token", "jRN0xOLowGZIOu-SzjEgrTEHwee4WMLr-hL92QLoNx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.364910"], ["updated_at", "2015-03-20 05:51:59.364910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3950928c-cec5-11e4-bfbd-705681abff85' AND "clubhouse_memberships"."organization_id" = '395431a8-cec5-11e4-be11-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3950928c-cec5-11e4-bfbd-705681abff85"], ["organization_id", "395431a8-cec5-11e4-be11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.368306"], ["updated_at", "2015-03-20 05:51:59.368306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39530882-cec5-11e4-acee-705681abff85' AND "clubhouse_memberships"."organization_id" = '395431a8-cec5-11e4-be11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39530882-cec5-11e4-acee-705681abff85"], ["organization_id", "395431a8-cec5-11e4-be11-705681abff85"], ["created_at", "2015-03-20 05:51:59.371975"], ["updated_at", "2015-03-20 05:51:59.371975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$lTwQ/NboCVi1KZyBgxbFkugT33iRB7gWapUPGYW9GKhTx7p7mxgp6"], ["created_at", "2015-03-20 05:51:59.382670"], ["updated_at", "2015-03-20 05:51:59.382670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$Vx6X5jo4lG78vv4gHJgQOui9GDZF.I6FsxrE7UOYWArgip7mGRXoK"], ["created_at", "2015-03-20 05:51:59.387074"], ["updated_at", "2015-03-20 05:51:59.387074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.388638"], ["user_id", "3956eab0-cec5-11e4-b4dd-705681abff85"], ["created_at", "2015-03-20 05:51:59.389487"], ["updated_at", "2015-03-20 05:51:59.389487"], ["token", "skxXTseCNxmLDYw5zDH1wIWQt5e6VS9cyaTL9etz4ZI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.393349"], ["updated_at", "2015-03-20 05:51:59.393349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3956eab0-cec5-11e4-b4dd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3958878a-cec5-11e4-9992-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3956eab0-cec5-11e4-b4dd-705681abff85"], ["organization_id", "3958878a-cec5-11e4-9992-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.396678"], ["updated_at", "2015-03-20 05:51:59.396678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3957933e-cec5-11e4-828b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3958878a-cec5-11e4-9992-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3957933e-cec5-11e4-828b-705681abff85"], ["organization_id", "3958878a-cec5-11e4-9992-705681abff85"], ["created_at", "2015-03-20 05:51:59.399760"], ["updated_at", "2015-03-20 05:51:59.399760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/3959804a-cec5-11e4-9615-705681abff85" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"3959804a-cec5-11e4-9615-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:51:59.404548' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "skxXTseCNxmLDYw5zDH1wIWQt5e6VS9cyaTL9etz4ZI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:51:59.406334"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:51:59.408045"], ["id", "395803c8-cec5-11e4-a292-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.5ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "3959804a-cec5-11e4-9615-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3956eab0-cec5-11e4-b4dd-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3958878a-cec5-11e4-9992-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3956eab0-cec5-11e4-b4dd-705681abff85' LIMIT 1 [["organization_id", "3958878a-cec5-11e4-9992-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3957933e-cec5-11e4-828b-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "3959804a-cec5-11e4-9615-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$lpIjsp2QfPI9C04Y1Qgtuu2FGXOYGDEcAJyR8j6LlmMKKoiv/v.Ce"], ["created_at", "2015-03-20 05:51:59.422027"], ["updated_at", "2015-03-20 05:51:59.422027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$chC2xARhLFygoxKJMOyiX.Crd510Ti5qZB7IzGU5aRTptuY0r.u3."], ["created_at", "2015-03-20 05:51:59.427604"], ["updated_at", "2015-03-20 05:51:59.427604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.430183"], ["user_id", "395ce9ec-cec5-11e4-bbad-705681abff85"], ["created_at", "2015-03-20 05:51:59.430994"], ["updated_at", "2015-03-20 05:51:59.430994"], ["token", "4ZgEYc0dudt6iCRQrJWuuFt3fZmLHda-Wt4nYPGvXEw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.434490"], ["updated_at", "2015-03-20 05:51:59.434490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '395ce9ec-cec5-11e4-bbad-705681abff85' AND "clubhouse_memberships"."organization_id" = '395ece38-cec5-11e4-a34a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "395ce9ec-cec5-11e4-bbad-705681abff85"], ["organization_id", "395ece38-cec5-11e4-a34a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.437887"], ["updated_at", "2015-03-20 05:51:59.437887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '395dd3fc-cec5-11e4-ba10-705681abff85' AND "clubhouse_memberships"."organization_id" = '395ece38-cec5-11e4-a34a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "395dd3fc-cec5-11e4-ba10-705681abff85"], ["organization_id", "395ece38-cec5-11e4-a34a-705681abff85"], ["created_at", "2015-03-20 05:51:59.441105"], ["updated_at", "2015-03-20 05:51:59.441105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$Jza1QyByUMbFnjPojhNHVeB7iR0Ugp4jldhJ21WmbezqmMcT5xnx."], ["created_at", "2015-03-20 05:51:59.445592"], ["updated_at", "2015-03-20 05:51:59.445592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.447159"], ["user_id", "3960807a-cec5-11e4-a8d1-705681abff85"], ["created_at", "2015-03-20 05:51:59.447950"], ["updated_at", "2015-03-20 05:51:59.447950"], ["token", "fDkuOg6HjWGdoGC1LZV3aDMCNgJULZyqBbHyUqoAR9g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '395ece38-cec5-11e4-a34a-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "395ece38-cec5-11e4-a34a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.458507"], ["updated_at", "2015-03-20 05:51:59.458507"], ["token", "z-gHrUiSqFtCNU2qTqQrgtgyAWIdLvdJt8uthPx8MA8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$apM8FoyChnTJvT.hVvS8eurDO.8GjgElv4bOJ5/7XUSt8fl3qhkwu"], ["created_at", "2015-03-20 05:51:59.471454"], ["updated_at", "2015-03-20 05:51:59.471454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$nhB93SbqAiGDOp/kuQz/JeP3ug9tY9ihOciZ974WpAGtxEqTieKza"], ["created_at", "2015-03-20 05:51:59.475913"], ["updated_at", "2015-03-20 05:51:59.475913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.477494"], ["user_id", "39647608-cec5-11e4-ab17-705681abff85"], ["created_at", "2015-03-20 05:51:59.478472"], ["updated_at", "2015-03-20 05:51:59.478472"], ["token", "rJhER6mLyGz84LQmygL04RBp_jfMVg5EhQq4mkTBEho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.482001"], ["updated_at", "2015-03-20 05:51:59.482001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39647608-cec5-11e4-ab17-705681abff85' AND "clubhouse_memberships"."organization_id" = '39660e78-cec5-11e4-9f16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39647608-cec5-11e4-ab17-705681abff85"], ["organization_id", "39660e78-cec5-11e4-9f16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.485271"], ["updated_at", "2015-03-20 05:51:59.485271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '396521b6-cec5-11e4-ad17-705681abff85' AND "clubhouse_memberships"."organization_id" = '39660e78-cec5-11e4-9f16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "396521b6-cec5-11e4-ad17-705681abff85"], ["organization_id", "39660e78-cec5-11e4-9f16-705681abff85"], ["created_at", "2015-03-20 05:51:59.488376"], ["updated_at", "2015-03-20 05:51:59.488376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$o29B9qXEcXj9ElKx0RYWpOMNQw9KHOTW3MNKZ2fYCAjw5XBHp1Cka"], ["created_at", "2015-03-20 05:51:59.492759"], ["updated_at", "2015-03-20 05:51:59.492759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.494452"], ["user_id", "3967b57a-cec5-11e4-8060-705681abff85"], ["created_at", "2015-03-20 05:51:59.495292"], ["updated_at", "2015-03-20 05:51:59.495292"], ["token", "QukcBWqh9VfXDtbc0uR4gt1c47n4OfXN1jCxSomtBIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '39660e78-cec5-11e4-9f16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "39660e78-cec5-11e4-9f16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.499080"], ["updated_at", "2015-03-20 05:51:59.499080"], ["token", "NU-yjjEugbc6Hq4bAKdV6CxHVcQqoA13FGKVbgjDSpI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/39660e78-cec5-11e4-9f16-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"NU-yjjEugbc6Hq4bAKdV6CxHVcQqoA13FGKVbgjDSpI", "organization_id"=>"39660e78-cec5-11e4-9f16-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:51:59.504635' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QukcBWqh9VfXDtbc0uR4gt1c47n4OfXN1jCxSomtBIM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:51:59.506108"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:51:59.507092"], ["id", "39681eac-cec5-11e4-91da-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "39660e78-cec5-11e4-9f16-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3967b57a-cec5-11e4-8060-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "NU-yjjEugbc6Hq4bAKdV6CxHVcQqoA13FGKVbgjDSpI"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39660e78-cec5-11e4-9f16-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3967b57a-cec5-11e4-8060-705681abff85' AND "clubhouse_memberships"."organization_id" = '39660e78-cec5-11e4-9f16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "39660e78-cec5-11e4-9f16-705681abff85"], ["member_id", "3967b57a-cec5-11e4-8060-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.517003"], ["updated_at", "2015-03-20 05:51:59.517003"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "3968aec6-cec5-11e4-a2e9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.1ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$qD5.IGS9XDd.yYrlfexY3.8R585swNJ8p1/c4risWA5e0Y9xFOB4C"], ["created_at", "2015-03-20 05:51:59.526992"], ["updated_at", "2015-03-20 05:51:59.526992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$1HRhm3nm4E2o6Gf5Z.sbveXgg3j3pIdsLqiE5wYQvVcFETXtcqBNG"], ["created_at", "2015-03-20 05:51:59.531929"], ["updated_at", "2015-03-20 05:51:59.531929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.533519"], ["user_id", "396cefea-cec5-11e4-9fd2-705681abff85"], ["created_at", "2015-03-20 05:51:59.534326"], ["updated_at", "2015-03-20 05:51:59.534326"], ["token", "B9OftGuLGIA7Hx_l4IRaQiqwHOMaN0ghidhrFPhj-ew"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.537815"], ["updated_at", "2015-03-20 05:51:59.537815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '396cefea-cec5-11e4-9fd2-705681abff85' AND "clubhouse_memberships"."organization_id" = '396e919c-cec5-11e4-a99b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "396cefea-cec5-11e4-9fd2-705681abff85"], ["organization_id", "396e919c-cec5-11e4-a99b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.541254"], ["updated_at", "2015-03-20 05:51:59.541254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '396dae12-cec5-11e4-a387-705681abff85' AND "clubhouse_memberships"."organization_id" = '396e919c-cec5-11e4-a99b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "396dae12-cec5-11e4-a387-705681abff85"], ["organization_id", "396e919c-cec5-11e4-a99b-705681abff85"], ["created_at", "2015-03-20 05:51:59.544499"], ["updated_at", "2015-03-20 05:51:59.544499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$sII8xmSbJuIux97h4GvgtedNnc8KmFUJa9KQ52dEH.6PHSc8Zn1zG"], ["created_at", "2015-03-20 05:51:59.548915"], ["updated_at", "2015-03-20 05:51:59.548915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.550474"], ["user_id", "397044e2-cec5-11e4-9a3b-705681abff85"], ["created_at", "2015-03-20 05:51:59.551264"], ["updated_at", "2015-03-20 05:51:59.551264"], ["token", "hawXRyaBNNCf9im9OjZ5JUfSdnqc3WJsRc-YGi6IKms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '396e919c-cec5-11e4-a99b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "396e919c-cec5-11e4-a99b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.555081"], ["updated_at", "2015-03-20 05:51:59.555081"], ["token", "9TCbs73ip9nOwSZQTXLA5MVCdlq08dgt2SNNtuO4US4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/396e919c-cec5-11e4-a99b-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"396e919c-cec5-11e4-a99b-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:51:59.562706' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hawXRyaBNNCf9im9OjZ5JUfSdnqc3WJsRc-YGi6IKms"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:51:59.564276"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:51:59.565299"], ["id", "3970a95a-cec5-11e4-99ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "396e919c-cec5-11e4-a99b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "397044e2-cec5-11e4-9a3b-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$y6IopZds81FyiYJlBpL4v.9oqR13BIIEkDJm98/iCTwZgV04dWmtW"], ["created_at", "2015-03-20 05:51:59.576162"], ["updated_at", "2015-03-20 05:51:59.576162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$8wHc7a9ebdnhh54m5uQemeYe4pWWOIZUFTNfqLRAtHhpDhpeOodgS"], ["created_at", "2015-03-20 05:51:59.580440"], ["updated_at", "2015-03-20 05:51:59.580440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.582052"], ["user_id", "39746f04-cec5-11e4-aeba-705681abff85"], ["created_at", "2015-03-20 05:51:59.582861"], ["updated_at", "2015-03-20 05:51:59.582861"], ["token", "0VLEm1v3-aXJYX-Rtm2EqGLo3WbHa20LI9lrsTZSvl0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.586307"], ["updated_at", "2015-03-20 05:51:59.586307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39746f04-cec5-11e4-aeba-705681abff85' AND "clubhouse_memberships"."organization_id" = '3975f8ec-cec5-11e4-b4b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39746f04-cec5-11e4-aeba-705681abff85"], ["organization_id", "3975f8ec-cec5-11e4-b4b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.589575"], ["updated_at", "2015-03-20 05:51:59.589575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3975136e-cec5-11e4-994c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3975f8ec-cec5-11e4-b4b3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3975136e-cec5-11e4-994c-705681abff85"], ["organization_id", "3975f8ec-cec5-11e4-b4b3-705681abff85"], ["created_at", "2015-03-20 05:51:59.592966"], ["updated_at", "2015-03-20 05:51:59.592966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$AthRQ9vTE/4QttneEX8eT.dA8JZD2a3Or5XwD0YPDwgJC7GRq6Q9G"], ["created_at", "2015-03-20 05:51:59.598462"], ["updated_at", "2015-03-20 05:51:59.598462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.600028"], ["user_id", "3977d522-cec5-11e4-8ebd-705681abff85"], ["created_at", "2015-03-20 05:51:59.600822"], ["updated_at", "2015-03-20 05:51:59.600822"], ["token", "jA_OSnMLCzfzSN8wg8bwN6og0T-pDGbDXPZhaxqGJ_g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '3975f8ec-cec5-11e4-b4b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "3975f8ec-cec5-11e4-b4b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.604591"], ["updated_at", "2015-03-20 05:51:59.604591"], ["token", "HkqSsXK8TISalrgBZw_gr_Z8KMbcpUbs416bi0uUXp8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$IgqzAsO4FQgKkQhgHJ2NuukJM07q8p1tpo41GyrV2tdoYWlHOPxw6"], ["created_at", "2015-03-20 05:51:59.616089"], ["updated_at", "2015-03-20 05:51:59.616089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$kx4ap0Z4jVP03IXmq85TheGkFaLiFUPl4uZCRb5Dub06I8HWWhWhe"], ["created_at", "2015-03-20 05:51:59.620601"], ["updated_at", "2015-03-20 05:51:59.620601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.622263"], ["user_id", "397a8830-cec5-11e4-aab9-705681abff85"], ["created_at", "2015-03-20 05:51:59.623065"], ["updated_at", "2015-03-20 05:51:59.623065"], ["token", "XvrIirlyOf7ebCeB54Bhrne_oVjEqyWefCu7_deqibg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.626593"], ["updated_at", "2015-03-20 05:51:59.626593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '397a8830-cec5-11e4-aab9-705681abff85' AND "clubhouse_memberships"."organization_id" = '397c2a64-cec5-11e4-8e2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "397a8830-cec5-11e4-aab9-705681abff85"], ["organization_id", "397c2a64-cec5-11e4-8e2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.630613"], ["updated_at", "2015-03-20 05:51:59.630613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '397b35dc-cec5-11e4-82d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '397c2a64-cec5-11e4-8e2f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "397b35dc-cec5-11e4-82d1-705681abff85"], ["organization_id", "397c2a64-cec5-11e4-8e2f-705681abff85"], ["created_at", "2015-03-20 05:51:59.633773"], ["updated_at", "2015-03-20 05:51:59.633773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$WVDIywUpryLkRCgT6ngVqOy6WU8DoWrqif2sqWEG5xerhIZrGPjPm"], ["created_at", "2015-03-20 05:51:59.638015"], ["updated_at", "2015-03-20 05:51:59.638015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.639553"], ["user_id", "397ddc92-cec5-11e4-8c52-705681abff85"], ["created_at", "2015-03-20 05:51:59.640341"], ["updated_at", "2015-03-20 05:51:59.640341"], ["token", "RimMIbre_KWdlXl0eRJS-Zeg15M2uvl2BeQ9CGwZMAE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '397c2a64-cec5-11e4-8e2f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "397c2a64-cec5-11e4-8e2f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.644189"], ["updated_at", "2015-03-20 05:51:59.644189"], ["token", "fhxhbSO8lNiEytli4bzVQO-MXlqMghNlS-mn7U1iAto"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"fhxhbSO8lNiEytli4bzVQO-MXlqMghNlS-mn7U1iAto", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:51:59.650522' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RimMIbre_KWdlXl0eRJS-Zeg15M2uvl2BeQ9CGwZMAE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:51:59.652490"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:51:59.653760"], ["id", "397e3ea8-cec5-11e4-a4dc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "397ddc92-cec5-11e4-8c52-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "fhxhbSO8lNiEytli4bzVQO-MXlqMghNlS-mn7U1iAto"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "397c2a64-cec5-11e4-8e2f-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '397ddc92-cec5-11e4-8c52-705681abff85' AND "clubhouse_memberships"."organization_id" = '397c2a64-cec5-11e4-8e2f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "397c2a64-cec5-11e4-8e2f-705681abff85"], ["member_id", "397ddc92-cec5-11e4-8c52-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.661678"], ["updated_at", "2015-03-20 05:51:59.661678"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "397edfc0-cec5-11e4-93f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.1ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$riHwRHwyRKRh/01PYLlyeOTyAdarJVLdYxnjh2pVzFQZVy.xUw4CC"], ["created_at", "2015-03-20 05:51:59.680253"], ["updated_at", "2015-03-20 05:51:59.680253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$UYd.7wRolE7V0gzSOzxzCunCao.Ew6vTNfvvbWaezRuscV9z4hMeO"], ["created_at", "2015-03-20 05:51:59.684895"], ["updated_at", "2015-03-20 05:51:59.684895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.686459"], ["user_id", "39845630-cec5-11e4-b51c-705681abff85"], ["created_at", "2015-03-20 05:51:59.687302"], ["updated_at", "2015-03-20 05:51:59.687302"], ["token", "MhmkpCLVIozYXtXWFImncqll9v2bZIuV1iRrmH9ajbU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.690779"], ["updated_at", "2015-03-20 05:51:59.690779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39845630-cec5-11e4-b51c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3985e8b0-cec5-11e4-89cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39845630-cec5-11e4-b51c-705681abff85"], ["organization_id", "3985e8b0-cec5-11e4-89cf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.694068"], ["updated_at", "2015-03-20 05:51:59.694068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39850418-cec5-11e4-9386-705681abff85' AND "clubhouse_memberships"."organization_id" = '3985e8b0-cec5-11e4-89cf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39850418-cec5-11e4-9386-705681abff85"], ["organization_id", "3985e8b0-cec5-11e4-89cf-705681abff85"], ["created_at", "2015-03-20 05:51:59.697653"], ["updated_at", "2015-03-20 05:51:59.697653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$A4cHvKbk.PowK18D9LF56.0Q7jgnZ04mVo8glM9c5tiykCWo762sS"], ["created_at", "2015-03-20 05:51:59.702169"], ["updated_at", "2015-03-20 05:51:59.702169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.704054"], ["user_id", "3987ae7a-cec5-11e4-ac41-705681abff85"], ["created_at", "2015-03-20 05:51:59.704903"], ["updated_at", "2015-03-20 05:51:59.704903"], ["token", "BcfGdflqMm1tavw3z9fCpTGp3uQQyXCfzO8q4a5-ov0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '3985e8b0-cec5-11e4-89cf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "3985e8b0-cec5-11e4-89cf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.708739"], ["updated_at", "2015-03-20 05:51:59.708739"], ["token", "FZbOsQ1qBeQWjlQ0IMs0P_OhLRRLHtItC2gHQuZNpCQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:51:59.714705' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BcfGdflqMm1tavw3z9fCpTGp3uQQyXCfzO8q4a5-ov0"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:51:59.716615"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:51:59.718368"], ["id", "39881a2c-cec5-11e4-a3c9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3987ae7a-cec5-11e4-ac41-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$dtjJKNTMYphAnv6kMPqiLOC1rK5tVAXRDx9YbWk4HRcQmgcz1zvcO"], ["created_at", "2015-03-20 05:51:59.731940"], ["updated_at", "2015-03-20 05:51:59.731940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$YBqROV9GytKwz3krFwSCoeY76YuZINuqkz3QSn4aEsl02q1anFowO"], ["created_at", "2015-03-20 05:51:59.736279"], ["updated_at", "2015-03-20 05:51:59.736279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.737816"], ["user_id", "398c35f8-cec5-11e4-b764-705681abff85"], ["created_at", "2015-03-20 05:51:59.738628"], ["updated_at", "2015-03-20 05:51:59.738628"], ["token", "l2XNCHWylyX2d2IQq4ORZ5Mfae7_lplyqreNNIqM9HA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.742060"], ["updated_at", "2015-03-20 05:51:59.742060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '398c35f8-cec5-11e4-b764-705681abff85' AND "clubhouse_memberships"."organization_id" = '398dbce8-cec5-11e4-b631-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "398c35f8-cec5-11e4-b764-705681abff85"], ["organization_id", "398dbce8-cec5-11e4-b631-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.746018"], ["updated_at", "2015-03-20 05:51:59.746018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '398cdbde-cec5-11e4-b160-705681abff85' AND "clubhouse_memberships"."organization_id" = '398dbce8-cec5-11e4-b631-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "398cdbde-cec5-11e4-b160-705681abff85"], ["organization_id", "398dbce8-cec5-11e4-b631-705681abff85"], ["created_at", "2015-03-20 05:51:59.749451"], ["updated_at", "2015-03-20 05:51:59.749451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$UzJ4OZ9d/0HXKsSQ4/.YF.5OpWhIimnkLXPnKIPO7HCU2YfF9k/wi"], ["created_at", "2015-03-20 05:51:59.761100"], ["updated_at", "2015-03-20 05:51:59.761100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$KjMrsp5fQWknkLz9S1G5nOv/mz/lWDgzqLmbUGQf0JiMfk9oQJZYG"], ["created_at", "2015-03-20 05:51:59.766518"], ["updated_at", "2015-03-20 05:51:59.766518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.768228"], ["user_id", "3990bcea-cec5-11e4-9d4c-705681abff85"], ["created_at", "2015-03-20 05:51:59.769039"], ["updated_at", "2015-03-20 05:51:59.769039"], ["token", "bUNaJuzw57Nn-zsdm0BU2WBGVESuMQ15qH7JAo5Uims"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.772536"], ["updated_at", "2015-03-20 05:51:59.772536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3990bcea-cec5-11e4-9d4c-705681abff85' AND "clubhouse_memberships"."organization_id" = '39926414-cec5-11e4-8c64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3990bcea-cec5-11e4-9d4c-705681abff85"], ["organization_id", "39926414-cec5-11e4-8c64-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.775937"], ["updated_at", "2015-03-20 05:51:59.775937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39917ad6-cec5-11e4-9416-705681abff85' AND "clubhouse_memberships"."organization_id" = '39926414-cec5-11e4-8c64-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39917ad6-cec5-11e4-9416-705681abff85"], ["organization_id", "39926414-cec5-11e4-8c64-705681abff85"], ["created_at", "2015-03-20 05:51:59.779521"], ["updated_at", "2015-03-20 05:51:59.779521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/399375fc-cec5-11e4-9e7a-705681abff85" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"399375fc-cec5-11e4-9e7a-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:51:59.784579' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bUNaJuzw57Nn-zsdm0BU2WBGVESuMQ15qH7JAo5Uims"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:51:59.786368"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:51:59.788349"], ["id", "3991e3f4-cec5-11e4-8be9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "399375fc-cec5-11e4-9e7a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3990bcea-cec5-11e4-9d4c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39926414-cec5-11e4-8c64-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3990bcea-cec5-11e4-9d4c-705681abff85' LIMIT 1 [["organization_id", "39926414-cec5-11e4-8c64-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39917ad6-cec5-11e4-9416-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39917ad6-cec5-11e4-9416-705681abff85' AND "clubhouse_memberships"."id" != '399375fc-cec5-11e4-9e7a-705681abff85' AND "clubhouse_memberships"."organization_id" = '39926414-cec5-11e4-8c64-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:51:59.797512"], ["id", "399375fc-cec5-11e4-9e7a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 1.1ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$MoESRYTKJKxqMC9mMvnyWuwhcRo6IZbQ523bYZTeio1ZWjVYpLiRu"], ["created_at", "2015-03-20 05:51:59.807102"], ["updated_at", "2015-03-20 05:51:59.807102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$chsX5Yr.5jCS4NlbQFd2huwiFn9V30PikDmkPS/X8FaZV/NpCUmkO"], ["created_at", "2015-03-20 05:51:59.812061"], ["updated_at", "2015-03-20 05:51:59.812061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.814112"], ["user_id", "3997ae38-cec5-11e4-bfb8-705681abff85"], ["created_at", "2015-03-20 05:51:59.815025"], ["updated_at", "2015-03-20 05:51:59.815025"], ["token", "tNappb7ps7u7ijZHXRjLLwzknYzIzvQG_-pOqGRvVlk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.818827"], ["updated_at", "2015-03-20 05:51:59.818827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3997ae38-cec5-11e4-bfb8-705681abff85' AND "clubhouse_memberships"."organization_id" = '3999759c-cec5-11e4-ac90-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3997ae38-cec5-11e4-bfb8-705681abff85"], ["organization_id", "3999759c-cec5-11e4-ac90-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.822239"], ["updated_at", "2015-03-20 05:51:59.822239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '399878d6-cec5-11e4-afec-705681abff85' AND "clubhouse_memberships"."organization_id" = '3999759c-cec5-11e4-ac90-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "399878d6-cec5-11e4-afec-705681abff85"], ["organization_id", "3999759c-cec5-11e4-ac90-705681abff85"], ["created_at", "2015-03-20 05:51:59.825382"], ["updated_at", "2015-03-20 05:51:59.825382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$4Jjx8L2gxMvd8Fh5AMl2aOu/DQo.8ttboiZuG/7PYVwTwnglutQGe"], ["created_at", "2015-03-20 05:51:59.836504"], ["updated_at", "2015-03-20 05:51:59.836504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$Ak6dfZIEBU6NsRUOVEoG9OoA2E1lnYhknaZWsQZuwKHZ7HuDIFeJi"], ["created_at", "2015-03-20 05:51:59.841470"], ["updated_at", "2015-03-20 05:51:59.841470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:51:59.843144"], ["user_id", "399c2e90-cec5-11e4-a6df-705681abff85"], ["created_at", "2015-03-20 05:51:59.844023"], ["updated_at", "2015-03-20 05:51:59.844023"], ["token", "a1EEMyLDrcQBSSBKpUeYb_u2ihBrS2GUWfbWbFiJaUY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:51:59.847839"], ["updated_at", "2015-03-20 05:51:59.847839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '399c2e90-cec5-11e4-a6df-705681abff85' AND "clubhouse_memberships"."organization_id" = '399de668-cec5-11e4-87db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "399c2e90-cec5-11e4-a6df-705681abff85"], ["organization_id", "399de668-cec5-11e4-87db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:51:59.851504"], ["updated_at", "2015-03-20 05:51:59.851504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '399cea74-cec5-11e4-bc1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '399de668-cec5-11e4-87db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "399cea74-cec5-11e4-bc1c-705681abff85"], ["organization_id", "399de668-cec5-11e4-87db-705681abff85"], ["created_at", "2015-03-20 05:51:59.854651"], ["updated_at", "2015-03-20 05:51:59.854651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:51:59 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:51:59.859577' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "a1EEMyLDrcQBSSBKpUeYb_u2ihBrS2GUWfbWbFiJaUY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:51:59.861367"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:51:59.862862"], ["id", "399d55b8-cec5-11e4-98d1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "399c2e90-cec5-11e4-a6df-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '399c2e90-cec5-11e4-a6df-705681abff85' LIMIT 1 [["organization_id", "399de668-cec5-11e4-87db-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "399de668-cec5-11e4-87db-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN ('399c2e90-cec5-11e4-a6df-705681abff85', '399cea74-cec5-11e4-bc1c-705681abff85') Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('399de668-cec5-11e4-87db-705681abff85') Completed 200 OK in 15ms (Views: 3.9ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.101748"], ["updated_at", "2015-03-20 05:52:00.101748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '39c4a47e-cec5-11e4-a4ca-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "39c4a47e-cec5-11e4-a4ca-705681abff85"], ["created_at", "2015-03-20 05:52:00.105430"], ["updated_at", "2015-03-20 05:52:00.105430"], ["token", "JZflX4LPckN5DiHpMkB5NdUFsB6Vr9rkySIW7r1WAWo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.7ms) Clubhouse::Mailer#invitation: processed outbound mail in 19.2ms Sent mail to john@example.com (8.2ms) Date: Thu, 19 Mar 2015 22:52:00 -0700 From: from@example.com To: john@example.com Message-ID: <550bb58020917_11503fd9fe05dbd4825d4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/JZflX4LPckN5DiHpMkB5NdUFsB6Vr9rkySIW7r1WAWo?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.141123"], ["updated_at", "2015-03-20 05:52:00.141123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '39caa374-cec5-11e4-b965-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "39caa374-cec5-11e4-b965-705681abff85"], ["created_at", "2015-03-20 05:52:00.144620"], ["updated_at", "2015-03-20 05:52:00.144620"], ["token", "HNuu8guYuCqz_hk7G-1m9JJURgtnN5UB8bbyPODKaPk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (4.4ms) Date: Thu, 19 Mar 2015 22:52:00 -0700 From: from@example.com To: john@example.com Message-ID: <550bb58024619_11503fd9fe05dbd4826b1@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/HNuu8guYuCqz_hk7G-1m9JJURgtnN5UB8bbyPODKaPk?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.157903"], ["updated_at", "2015-03-20 05:52:00.157903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '39cd30ee-cec5-11e4-983e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "39cd30ee-cec5-11e4-983e-705681abff85"], ["created_at", "2015-03-20 05:52:00.161695"], ["updated_at", "2015-03-20 05:52:00.161695"], ["token", "xAXqlHyN-t1MmjSzW_yxU02zU_YHRMEcHVmfnMEsDTA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (1.8ms) Date: Thu, 19 Mar 2015 22:52:00 -0700 From: from@example.com To: john@example.com Message-ID: <550bb580287b1_11503fd9fe05dbd482712@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/xAXqlHyN-t1MmjSzW_yxU02zU_YHRMEcHVmfnMEsDTA?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.170762"], ["updated_at", "2015-03-20 05:52:00.170762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '39cf26c4-cec5-11e4-9b4d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "39cf26c4-cec5-11e4-9b4d-705681abff85"], ["created_at", "2015-03-20 05:52:00.174503"], ["updated_at", "2015-03-20 05:52:00.174503"], ["token", "0N95-75nbylxqb3rdaoy8ddPnmmiZ26uF7OWnXHhjB8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.6ms) Date: Thu, 19 Mar 2015 22:52:00 -0700 From: from@example.com To: john@example.com Message-ID: <550bb5802b75a_11503fd9fe05dbd482877@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/0N95-75nbylxqb3rdaoy8ddPnmmiZ26uF7OWnXHhjB8?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$t94LDvzld8fJxTZiX8xzWOWPjIV.JmvhD5AUnYmy3nwcQKkNi/8EW"], ["created_at", "2015-03-20 05:52:00.183995"], ["updated_at", "2015-03-20 05:52:00.183995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.185509"], ["user_id", "39d12c30-cec5-11e4-a347-705681abff85"], ["created_at", "2015-03-20 05:52:00.186270"], ["updated_at", "2015-03-20 05:52:00.186270"], ["token", "WXQruPGDdMX-jyCxF07NfUne5771YSDhSEZNNjNWvkY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.189432"], ["updated_at", "2015-03-20 05:52:00.189432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39d12c30-cec5-11e4-a347-705681abff85' AND "clubhouse_memberships"."organization_id" = '39d1fff2-cec5-11e4-8f9e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39d12c30-cec5-11e4-a347-705681abff85"], ["organization_id", "39d1fff2-cec5-11e4-8f9e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.192541"], ["updated_at", "2015-03-20 05:52:00.192541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '39d1fff2-cec5-11e4-8f9e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "39d1fff2-cec5-11e4-8f9e-705681abff85"], ["created_at", "2015-03-20 05:52:00.196185"], ["updated_at", "2015-03-20 05:52:00.196185"], ["token", "ZOC5fkLmWiCuKNcBqBRmG0Sgbo0TDUAIjawSiCDkqqw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$XQY1d8NXDK0UsvFLllj.pOGANsVE0Pz4YPdlyusy9PJ/X0DNxRwHu"], ["created_at", "2015-03-20 05:52:00.201097"], ["updated_at", "2015-03-20 05:52:00.201097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.204086"], ["updated_at", "2015-03-20 05:52:00.204086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39d3c7d8-cec5-11e4-a72b-705681abff85' AND "clubhouse_memberships"."organization_id" = '39d43b00-cec5-11e4-acb1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39d3c7d8-cec5-11e4-a72b-705681abff85"], ["organization_id", "39d43b00-cec5-11e4-acb1-705681abff85"], ["created_at", "2015-03-20 05:52:00.207152"], ["updated_at", "2015-03-20 05:52:00.207152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$kWt4rKXXJtxAK7TzhT9XPO1Tl7/Rn7XOumxb0XnD9A2wmR6cn3EsO"], ["created_at", "2015-03-20 05:52:00.224005"], ["updated_at", "2015-03-20 05:52:00.224005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.225620"], ["user_id", "39d7484a-cec5-11e4-98e0-705681abff85"], ["created_at", "2015-03-20 05:52:00.226393"], ["updated_at", "2015-03-20 05:52:00.226393"], ["token", "ov-4TuSVSX88LswOJk6Mu62KNEP2rZwnN2BTUBtxeO8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.230017"], ["updated_at", "2015-03-20 05:52:00.230017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39d7484a-cec5-11e4-98e0-705681abff85' AND "clubhouse_memberships"."organization_id" = '39d8391c-cec5-11e4-a0ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39d7484a-cec5-11e4-98e0-705681abff85"], ["organization_id", "39d8391c-cec5-11e4-a0ff-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.233620"], ["updated_at", "2015-03-20 05:52:00.233620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '39d8391c-cec5-11e4-a0ff-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "39d8391c-cec5-11e4-a0ff-705681abff85"], ["created_at", "2015-03-20 05:52:00.236852"], ["updated_at", "2015-03-20 05:52:00.236852"], ["token", "KUG6QbBEn1-6mQ8xUFhsESCVrbIYamB6CavvZ_7KYmQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$H7vJYmpNs9NGkvhkYnopfOJWwcLMp1svp8vbNZrx3oidhTLZHm3MS"], ["created_at", "2015-03-20 05:52:00.241215"], ["updated_at", "2015-03-20 05:52:00.241215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.244394"], ["updated_at", "2015-03-20 05:52:00.244394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39d9e67c-cec5-11e4-8a7f-705681abff85' AND "clubhouse_memberships"."organization_id" = '39da66ce-cec5-11e4-90f1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39d9e67c-cec5-11e4-8a7f-705681abff85"], ["organization_id", "39da66ce-cec5-11e4-90f1-705681abff85"], ["created_at", "2015-03-20 05:52:00.248137"], ["updated_at", "2015-03-20 05:52:00.248137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/39d8391c-cec5-11e4-a0ff-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"39d8391c-cec5-11e4-a0ff-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.253745' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ov-4TuSVSX88LswOJk6Mu62KNEP2rZwnN2BTUBtxeO8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.255172"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.256433"], ["id", "39d7acc2-cec5-11e4-a271-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "39d8391c-cec5-11e4-a0ff-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39d7484a-cec5-11e4-98e0-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39d7484a-cec5-11e4-98e0-705681abff85' LIMIT 1 [["organization_id", "39d8391c-cec5-11e4-a0ff-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "39d8391c-cec5-11e4-a0ff-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('39d8391c-cec5-11e4-a0ff-705681abff85') Completed 200 OK in 15ms (Views: 4.3ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$YBGlW6sgssp6FHSmFeWibuf3UG.9AuF8Feudl.LquGsDT8Phn/y.K"], ["created_at", "2015-03-20 05:52:00.276750"], ["updated_at", "2015-03-20 05:52:00.276750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.278654"], ["user_id", "39df5db4-cec5-11e4-9e34-705681abff85"], ["created_at", "2015-03-20 05:52:00.279764"], ["updated_at", "2015-03-20 05:52:00.279764"], ["token", "CVPnE2EEeauE9cM8FA-xBv-5ctda8GYVtKgf_NAkxfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.283691"], ["updated_at", "2015-03-20 05:52:00.283691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39df5db4-cec5-11e4-9e34-705681abff85' AND "clubhouse_memberships"."organization_id" = '39e0639e-cec5-11e4-adf5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39df5db4-cec5-11e4-9e34-705681abff85"], ["organization_id", "39e0639e-cec5-11e4-adf5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.287088"], ["updated_at", "2015-03-20 05:52:00.287088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '39e0639e-cec5-11e4-adf5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "39e0639e-cec5-11e4-adf5-705681abff85"], ["created_at", "2015-03-20 05:52:00.290315"], ["updated_at", "2015-03-20 05:52:00.290315"], ["token", "eEF37FrO8rus_Y3uhBoqjEV8arPEQ2SvTmD5cDgq_ZE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$Vkb7RZ/ixKOjM00AjRxeM.5bPD/QWiM49wPZUk2SehZ.NrJxNt4rW"], ["created_at", "2015-03-20 05:52:00.301177"], ["updated_at", "2015-03-20 05:52:00.301177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.302819"], ["user_id", "39e3101c-cec5-11e4-88d3-705681abff85"], ["created_at", "2015-03-20 05:52:00.303570"], ["updated_at", "2015-03-20 05:52:00.303570"], ["token", "JljopR-gyfGgd_NLaV7v_KD5-gxuvh7O6g2Kh-t73Aw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.307291"], ["updated_at", "2015-03-20 05:52:00.307291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39e3101c-cec5-11e4-88d3-705681abff85' AND "clubhouse_memberships"."organization_id" = '39e3fcfc-cec5-11e4-a187-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39e3101c-cec5-11e4-88d3-705681abff85"], ["organization_id", "39e3fcfc-cec5-11e4-a187-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.311130"], ["updated_at", "2015-03-20 05:52:00.311130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '39e3fcfc-cec5-11e4-a187-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "39e3fcfc-cec5-11e4-a187-705681abff85"], ["created_at", "2015-03-20 05:52:00.315110"], ["updated_at", "2015-03-20 05:52:00.315110"], ["token", "qSLXSSgz-cyuPvokiaX9f3T5pkrK1vY2DDFjCdX1CHs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/39e5334c-cec5-11e4-8ae3-705681abff85" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"39e5334c-cec5-11e4-8ae3-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.320435' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JljopR-gyfGgd_NLaV7v_KD5-gxuvh7O6g2Kh-t73Aw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.321812"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.322742"], ["id", "39e37160-cec5-11e4-bf72-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "39e5334c-cec5-11e4-8ae3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39e3101c-cec5-11e4-88d3-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39e3fcfc-cec5-11e4-a187-705681abff85"]] Clubhouse::Membership Exists (6.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39e3101c-cec5-11e4-88d3-705681abff85' LIMIT 1 [["organization_id", "39e3fcfc-cec5-11e4-a187-705681abff85"]] Completed 200 OK in 16ms (Views: 2.0ms | ActiveRecord: 7.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$QOZTfzwT8x0vGI3iT7Ez2.b50t6BKy7OGgTMy9GaBB8/zMkFyxX3u"], ["created_at", "2015-03-20 05:52:00.346556"], ["updated_at", "2015-03-20 05:52:00.346556"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.349855"], ["user_id", "39ea186c-cec5-11e4-908e-705681abff85"], ["created_at", "2015-03-20 05:52:00.351557"], ["updated_at", "2015-03-20 05:52:00.351557"], ["token", "PU6RgJhSagvyvmPpeN77qihPMyEjV7CqwcEs-kaw0vI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.358031"], ["updated_at", "2015-03-20 05:52:00.358031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39ea186c-cec5-11e4-908e-705681abff85' AND "clubhouse_memberships"."organization_id" = '39ebbfc8-cec5-11e4-9352-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39ea186c-cec5-11e4-908e-705681abff85"], ["organization_id", "39ebbfc8-cec5-11e4-9352-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.363245"], ["updated_at", "2015-03-20 05:52:00.363245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '39ebbfc8-cec5-11e4-9352-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "39ebbfc8-cec5-11e4-9352-705681abff85"], ["created_at", "2015-03-20 05:52:00.368794"], ["updated_at", "2015-03-20 05:52:00.368794"], ["token", "YVAottrsc8QcvW7E4JFMcy95IEc2mEhYwSc8ZI92AU8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$36cBQwol2pc1.DZlNl0ZeOI0wWYoqw9SAAL4DuxswxTig.Mrky/mO"], ["created_at", "2015-03-20 05:52:00.381191"], ["updated_at", "2015-03-20 05:52:00.381191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.382855"], ["user_id", "39ef4620-cec5-11e4-adb2-705681abff85"], ["created_at", "2015-03-20 05:52:00.383656"], ["updated_at", "2015-03-20 05:52:00.383656"], ["token", "jgJPcZygKavTPBnpCzE-0R_L8cgLnTFZtz0PcYIKyOk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.387005"], ["updated_at", "2015-03-20 05:52:00.387005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39ef4620-cec5-11e4-adb2-705681abff85' AND "clubhouse_memberships"."organization_id" = '39f0248c-cec5-11e4-b1b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39ef4620-cec5-11e4-adb2-705681abff85"], ["organization_id", "39f0248c-cec5-11e4-b1b8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.390162"], ["updated_at", "2015-03-20 05:52:00.390162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '39f0248c-cec5-11e4-b1b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "39f0248c-cec5-11e4-b1b8-705681abff85"], ["created_at", "2015-03-20 05:52:00.393454"], ["updated_at", "2015-03-20 05:52:00.393454"], ["token", "jkUGzEEeLDzqgG-nG4y36LoiawIgsOj0jPBivNGh4b4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/39f12512-cec5-11e4-8c50-705681abff85" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"39f12512-cec5-11e4-8c50-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.398832' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jgJPcZygKavTPBnpCzE-0R_L8cgLnTFZtz0PcYIKyOk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.400235"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.401185"], ["id", "39efab56-cec5-11e4-962f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "39f12512-cec5-11e4-8c50-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39ef4620-cec5-11e4-adb2-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39f0248c-cec5-11e4-b1b8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39ef4620-cec5-11e4-adb2-705681abff85' LIMIT 1 [["organization_id", "39f0248c-cec5-11e4-b1b8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "39f12512-cec5-11e4-8c50-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$N4o/MViDF9ru0UkqxtUEyuDmBhkFk7VuCrwCFvKYvBm.6.9Zf.Ox6"], ["created_at", "2015-03-20 05:52:00.412493"], ["updated_at", "2015-03-20 05:52:00.412493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.414220"], ["user_id", "39f40ec6-cec5-11e4-a9fc-705681abff85"], ["created_at", "2015-03-20 05:52:00.415118"], ["updated_at", "2015-03-20 05:52:00.415118"], ["token", "GsK7OxMIXPKSSv6cXFLSyrzszhtflTW6tIPQK-t_tdw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.418570"], ["updated_at", "2015-03-20 05:52:00.418570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39f40ec6-cec5-11e4-a9fc-705681abff85' AND "clubhouse_memberships"."organization_id" = '39f4faf2-cec5-11e4-8879-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39f40ec6-cec5-11e4-a9fc-705681abff85"], ["organization_id", "39f4faf2-cec5-11e4-8879-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.422049"], ["updated_at", "2015-03-20 05:52:00.422049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '39f4faf2-cec5-11e4-8879-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "39f4faf2-cec5-11e4-8879-705681abff85"], ["created_at", "2015-03-20 05:52:00.425372"], ["updated_at", "2015-03-20 05:52:00.425372"], ["token", "KIUtvxBoPm830xcx0WfzMd-f_teNsVhm0cuCqNk5xJ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$MT936Q0Y7BzRV1fYatuzwOCVOTqPSdPYRX/waZ3znE4B6ShXWZnvW"], ["created_at", "2015-03-20 05:52:00.436254"], ["updated_at", "2015-03-20 05:52:00.436254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.437862"], ["user_id", "39f7ac5c-cec5-11e4-b956-705681abff85"], ["created_at", "2015-03-20 05:52:00.438642"], ["updated_at", "2015-03-20 05:52:00.438642"], ["token", "0Gl6VNrDq3hiDC_PkE7MRnJI1aBUPBztr4LHWS_iJ1w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.441975"], ["updated_at", "2015-03-20 05:52:00.441975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39f7ac5c-cec5-11e4-b956-705681abff85' AND "clubhouse_memberships"."organization_id" = '39f887da-cec5-11e4-9518-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39f7ac5c-cec5-11e4-b956-705681abff85"], ["organization_id", "39f887da-cec5-11e4-9518-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.445248"], ["updated_at", "2015-03-20 05:52:00.445248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '39f887da-cec5-11e4-9518-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "39f887da-cec5-11e4-9518-705681abff85"], ["created_at", "2015-03-20 05:52:00.448653"], ["updated_at", "2015-03-20 05:52:00.448653"], ["token", "R_3i9pIYt3TxEE7G5pTZGdMijOvSWJwuM3CPzs_Cibc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/39f887da-cec5-11e4-9518-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"39f887da-cec5-11e4-9518-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.453955' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0Gl6VNrDq3hiDC_PkE7MRnJI1aBUPBztr4LHWS_iJ1w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.455298"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.456223"], ["id", "39f80dd2-cec5-11e4-899f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "39f887da-cec5-11e4-9518-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39f7ac5c-cec5-11e4-b956-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39f887da-cec5-11e4-9518-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '39f7ac5c-cec5-11e4-b956-705681abff85' LIMIT 1 [["organization_id", "39f887da-cec5-11e4-9518-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '39f887da-cec5-11e4-9518-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "39f887da-cec5-11e4-9518-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.466067"], ["updated_at", "2015-03-20 05:52:00.466067"], ["token", "rW3fuDBcAlFbfwFHWWo_cWZcjFBR78RCd_jxG4cTkus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ca76bab6-3068-4bfd-925a-3b1a59224829) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/39fc4f82-cec5-11e4-9c30-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "39fc4f82-cec5-11e4-9c30-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [ca76bab6-3068-4bfd-925a-3b1a59224829] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/39fc4f82-cec5-11e4-9c30-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [ca76bab6-3068-4bfd-925a-3b1a59224829] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39f887da-cec5-11e4-9518-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [ca76bab6-3068-4bfd-925a-3b1a59224829] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [ca76bab6-3068-4bfd-925a-3b1a59224829] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [ca76bab6-3068-4bfd-925a-3b1a59224829] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [ca76bab6-3068-4bfd-925a-3b1a59224829] Date: Thu, 19 Mar 2015 22:52:00 -0700 From: from@example.com To: email@example.com Message-ID: <550bb580781b2_11503fd9fe05dbd482963@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/rW3fuDBcAlFbfwFHWWo_cWZcjFBR78RCd_jxG4cTkus?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [ca76bab6-3068-4bfd-925a-3b1a59224829] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.06ms Completed 201 Created in 40ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$gZRYyrz.MBZX8Hbm4peuJeZkhsvBBk8cgs8ng0sSGmIZfmXxx74Iu"], ["created_at", "2015-03-20 05:52:00.500232"], ["updated_at", "2015-03-20 05:52:00.500232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.501849"], ["user_id", "3a016e54-cec5-11e4-83b2-705681abff85"], ["created_at", "2015-03-20 05:52:00.502622"], ["updated_at", "2015-03-20 05:52:00.502622"], ["token", "ecb3-uGk-g0a1J-o8El6EyEMIm4Bvoq58pVZDQpE_vA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.505885"], ["updated_at", "2015-03-20 05:52:00.505885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a016e54-cec5-11e4-83b2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a0247de-cec5-11e4-a34b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a016e54-cec5-11e4-83b2-705681abff85"], ["organization_id", "3a0247de-cec5-11e4-a34b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.508960"], ["updated_at", "2015-03-20 05:52:00.508960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '3a0247de-cec5-11e4-a34b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "3a0247de-cec5-11e4-a34b-705681abff85"], ["created_at", "2015-03-20 05:52:00.512257"], ["updated_at", "2015-03-20 05:52:00.512257"], ["token", "Dk_kwejW1SjMzw_AUwgrNfN7_1VMNXpUr3D81NHbVaI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3a0247de-cec5-11e4-a34b-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"3a0247de-cec5-11e4-a34b-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.517857' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ecb3-uGk-g0a1J-o8El6EyEMIm4Bvoq58pVZDQpE_vA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.519309"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.520320"], ["id", "3a01d038-cec5-11e4-b9dd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3a0247de-cec5-11e4-a34b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a016e54-cec5-11e4-83b2-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a0247de-cec5-11e4-a34b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a016e54-cec5-11e4-83b2-705681abff85' LIMIT 1 [["organization_id", "3a0247de-cec5-11e4-a34b-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3a0247de-cec5-11e4-a34b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3a0247de-cec5-11e4-a34b-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.527755"], ["updated_at", "2015-03-20 05:52:00.527755"], ["token", "tC8QY8rWG7aMPNuuK7mnxq56v8vxgbrHqjOfOCp-bxg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 12d0fd8d-61c6-4060-8c68-6810fce4bf03) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a05a6f4-cec5-11e4-9844-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3a05a6f4-cec5-11e4-9844-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [12d0fd8d-61c6-4060-8c68-6810fce4bf03] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a05a6f4-cec5-11e4-9844-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [12d0fd8d-61c6-4060-8c68-6810fce4bf03] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a0247de-cec5-11e4-a34b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [12d0fd8d-61c6-4060-8c68-6810fce4bf03] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [12d0fd8d-61c6-4060-8c68-6810fce4bf03] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [12d0fd8d-61c6-4060-8c68-6810fce4bf03] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [12d0fd8d-61c6-4060-8c68-6810fce4bf03] Date: Thu, 19 Mar 2015 22:52:00 -0700 From: from@example.com To: email@example.com Message-ID: <550bb58082b3e_11503fd9fe05dbd483016@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/tC8QY8rWG7aMPNuuK7mnxq56v8vxgbrHqjOfOCp-bxg?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [12d0fd8d-61c6-4060-8c68-6810fce4bf03] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.22ms Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$KnwHfUr1AUMZN6Zy6fOfs.if3WU4kjw77PLg/eE2PiYtcTXqebqq2"], ["created_at", "2015-03-20 05:52:00.544507"], ["updated_at", "2015-03-20 05:52:00.544507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.546798"], ["user_id", "3a0833ec-cec5-11e4-9faf-705681abff85"], ["created_at", "2015-03-20 05:52:00.547606"], ["updated_at", "2015-03-20 05:52:00.547606"], ["token", "fGO85a7A8BHydR2swRnYhB6QfY6sXyJQz4I6eNwSpDA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.551119"], ["updated_at", "2015-03-20 05:52:00.551119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a0833ec-cec5-11e4-9faf-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a093062-cec5-11e4-92d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a0833ec-cec5-11e4-9faf-705681abff85"], ["organization_id", "3a093062-cec5-11e4-92d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.554365"], ["updated_at", "2015-03-20 05:52:00.554365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '3a093062-cec5-11e4-92d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "3a093062-cec5-11e4-92d4-705681abff85"], ["created_at", "2015-03-20 05:52:00.557605"], ["updated_at", "2015-03-20 05:52:00.557605"], ["token", "uuJGrN-_vjeLMfwTtzMthzqR58Mm0h4u0Zi-vve3daE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/3a093062-cec5-11e4-92d4-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"3a093062-cec5-11e4-92d4-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.562860' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fGO85a7A8BHydR2swRnYhB6QfY6sXyJQz4I6eNwSpDA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.564471"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.565481"], ["id", "3a08b060-cec5-11e4-911c-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3a093062-cec5-11e4-92d4-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a0833ec-cec5-11e4-9faf-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a093062-cec5-11e4-92d4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a0833ec-cec5-11e4-9faf-705681abff85' LIMIT 1 [["organization_id", "3a093062-cec5-11e4-92d4-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '3a093062-cec5-11e4-92d4-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$zUVGApoN7g9dmw.rNj2ice/pEikkaY4q0Kyt7d/l7xPGF2Y5sOQQa"], ["created_at", "2015-03-20 05:52:00.582573"], ["updated_at", "2015-03-20 05:52:00.582573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.584246"], ["user_id", "3a0e0268-cec5-11e4-9d86-705681abff85"], ["created_at", "2015-03-20 05:52:00.585036"], ["updated_at", "2015-03-20 05:52:00.585036"], ["token", "FSkUcjucnEMc3CWrrj9pxXHmEusn35chC_oRFP2M9zQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.588452"], ["updated_at", "2015-03-20 05:52:00.588452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a0e0268-cec5-11e4-9d86-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a0ee1e2-cec5-11e4-aaad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a0e0268-cec5-11e4-9d86-705681abff85"], ["organization_id", "3a0ee1e2-cec5-11e4-aaad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.591645"], ["updated_at", "2015-03-20 05:52:00.591645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '3a0ee1e2-cec5-11e4-aaad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "3a0ee1e2-cec5-11e4-aaad-705681abff85"], ["created_at", "2015-03-20 05:52:00.594918"], ["updated_at", "2015-03-20 05:52:00.594918"], ["token", "t7Bo7MN24_naEZHUaYgJseU4nrKOe0W-Nvm458zjKyw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$tnMCy7qN3b6d8ilrX.UE1uNBiIWQTV9A7WxOM0osXeUrqiaLw/quC"], ["created_at", "2015-03-20 05:52:00.606099"], ["updated_at", "2015-03-20 05:52:00.606099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.607674"], ["user_id", "3a11969e-cec5-11e4-89f7-705681abff85"], ["created_at", "2015-03-20 05:52:00.608425"], ["updated_at", "2015-03-20 05:52:00.608425"], ["token", "-EIf0pzlXuNfG7yzwtoHgsxuTpkm_DUZY7neBFv2nEw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.613402"], ["updated_at", "2015-03-20 05:52:00.613402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a11969e-cec5-11e4-89f7-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a12b48e-cec5-11e4-ba53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a11969e-cec5-11e4-89f7-705681abff85"], ["organization_id", "3a12b48e-cec5-11e4-ba53-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.617169"], ["updated_at", "2015-03-20 05:52:00.617169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '3a12b48e-cec5-11e4-ba53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "3a12b48e-cec5-11e4-ba53-705681abff85"], ["created_at", "2015-03-20 05:52:00.620755"], ["updated_at", "2015-03-20 05:52:00.620755"], ["token", "EKJHav48fz0fJtnYaEuHIuoxJHVG8hDyH3em-vKfLds"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.626039' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-EIf0pzlXuNfG7yzwtoHgsxuTpkm_DUZY7neBFv2nEw"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.627880"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.629705"], ["id", "3a11f56c-cec5-11e4-8bfa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a11969e-cec5-11e4-89f7-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a12b48e-cec5-11e4-ba53-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a11969e-cec5-11e4-89f7-705681abff85' LIMIT 1 [["organization_id", "3a12b48e-cec5-11e4-ba53-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3a12b48e-cec5-11e4-ba53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3a12b48e-cec5-11e4-ba53-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.637498"], ["updated_at", "2015-03-20 05:52:00.637498"], ["token", "DOIYGesYupSAPPThZ49NEE9xqlXlKTPVC71QfqdfCRc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 89709f9c-23ef-4081-abc2-527af7de2363) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a166570-cec5-11e4-af54-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3a166570-cec5-11e4-af54-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [89709f9c-23ef-4081-abc2-527af7de2363] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a166570-cec5-11e4-af54-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [89709f9c-23ef-4081-abc2-527af7de2363] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a12b48e-cec5-11e4-ba53-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [89709f9c-23ef-4081-abc2-527af7de2363] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [89709f9c-23ef-4081-abc2-527af7de2363] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [89709f9c-23ef-4081-abc2-527af7de2363] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [89709f9c-23ef-4081-abc2-527af7de2363] Date: Thu, 19 Mar 2015 22:52:00 -0700 From: from@example.com To: email@example.com Message-ID: <550bb5809d5c5_11503fd9fe05dbd4831b6@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/DOIYGesYupSAPPThZ49NEE9xqlXlKTPVC71QfqdfCRc?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [89709f9c-23ef-4081-abc2-527af7de2363] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.17ms Completed 201 Created in 21ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$tS.NQ6re.4HH7GB4wpk/Nem6WFkMOIzl.ZQqivXN4GFaz6mvqM8cW"], ["created_at", "2015-03-20 05:52:00.653878"], ["updated_at", "2015-03-20 05:52:00.653878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.656208"], ["user_id", "3a18f2b8-cec5-11e4-8b2c-705681abff85"], ["created_at", "2015-03-20 05:52:00.656982"], ["updated_at", "2015-03-20 05:52:00.656982"], ["token", "q0ErRRC6orT08qQk9Ux4ipG6gYYu0P7gs4BkNgObL6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.660412"], ["updated_at", "2015-03-20 05:52:00.660412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a18f2b8-cec5-11e4-8b2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a19dcc8-cec5-11e4-a6f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a18f2b8-cec5-11e4-8b2c-705681abff85"], ["organization_id", "3a19dcc8-cec5-11e4-a6f9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.663696"], ["updated_at", "2015-03-20 05:52:00.663696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '3a19dcc8-cec5-11e4-a6f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "3a19dcc8-cec5-11e4-a6f9-705681abff85"], ["created_at", "2015-03-20 05:52:00.667022"], ["updated_at", "2015-03-20 05:52:00.667022"], ["token", "Ayaxu-GlcOezP5aQWJ0k8ZHj2GcJhPWmf1d57fSGfIE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.672105' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "q0ErRRC6orT08qQk9Ux4ipG6gYYu0P7gs4BkNgObL6A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.673408"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.674321"], ["id", "3a195ed8-cec5-11e4-9fdc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a18f2b8-cec5-11e4-8b2c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a19dcc8-cec5-11e4-a6f9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a18f2b8-cec5-11e4-8b2c-705681abff85' LIMIT 1 [["organization_id", "3a19dcc8-cec5-11e4-a6f9-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3a19dcc8-cec5-11e4-a6f9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "3a19dcc8-cec5-11e4-a6f9-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.681497"], ["updated_at", "2015-03-20 05:52:00.681497"], ["token", "ztmOpiGeKfWT9IOn_W38Huo8a03ltpk_kc_hj-umhQI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4a22b4c0-1778-490f-976a-3e66114c2a9a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a1d1c12-cec5-11e4-b556-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3a1d1c12-cec5-11e4-b556-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4a22b4c0-1778-490f-976a-3e66114c2a9a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a1d1c12-cec5-11e4-b556-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [4a22b4c0-1778-490f-976a-3e66114c2a9a] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a19dcc8-cec5-11e4-a6f9-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4a22b4c0-1778-490f-976a-3e66114c2a9a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4a22b4c0-1778-490f-976a-3e66114c2a9a] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [4a22b4c0-1778-490f-976a-3e66114c2a9a] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [4a22b4c0-1778-490f-976a-3e66114c2a9a] Date: Thu, 19 Mar 2015 22:52:00 -0700 From: from@example.com To: email@example.com Message-ID: <550bb580a83ea_11503fd9fe05dbd483236@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/ztmOpiGeKfWT9IOn_W38Huo8a03ltpk_kc_hj-umhQI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4a22b4c0-1778-490f-976a-3e66114c2a9a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.4ms Completed 201 Created in 19ms (Views: 0.8ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$CBN5GOrNjVm94D2pjlhPSO8pzOjqjdpC608pV2B3bI0clZ0KiyJp6"], ["created_at", "2015-03-20 05:52:00.697341"], ["updated_at", "2015-03-20 05:52:00.697341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.699038"], ["user_id", "3a1f8470-cec5-11e4-8dc3-705681abff85"], ["created_at", "2015-03-20 05:52:00.699828"], ["updated_at", "2015-03-20 05:52:00.699828"], ["token", "JGEs3hTdpFBAoCQN4hYwVIArcPm6318otNooMrvQNDE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.703547"], ["updated_at", "2015-03-20 05:52:00.703547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a1f8470-cec5-11e4-8dc3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a207506-cec5-11e4-b075-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a1f8470-cec5-11e4-8dc3-705681abff85"], ["organization_id", "3a207506-cec5-11e4-b075-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.707012"], ["updated_at", "2015-03-20 05:52:00.707012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '3a207506-cec5-11e4-b075-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "3a207506-cec5-11e4-b075-705681abff85"], ["created_at", "2015-03-20 05:52:00.710336"], ["updated_at", "2015-03-20 05:52:00.710336"], ["token", "gztGXk6o4JSlDzlmor-1uv3GuJBD_2HTsFBjJHlAAIY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.715689' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JGEs3hTdpFBAoCQN4hYwVIArcPm6318otNooMrvQNDE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.717007"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.717931"], ["id", "3a1fefa0-cec5-11e4-b7f2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a1f8470-cec5-11e4-8dc3-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a207506-cec5-11e4-b075-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a1f8470-cec5-11e4-8dc3-705681abff85' LIMIT 1 [["organization_id", "3a207506-cec5-11e4-b075-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '3a207506-cec5-11e4-b075-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$zhGtlSXJB.y5rgJHIh2tWOdkjSxMLIL62K9XhjP..OQwd8lX3CerO"], ["created_at", "2015-03-20 05:52:00.732683"], ["updated_at", "2015-03-20 05:52:00.732683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.734406"], ["user_id", "3a24ea28-cec5-11e4-bc8a-705681abff85"], ["created_at", "2015-03-20 05:52:00.735232"], ["updated_at", "2015-03-20 05:52:00.735232"], ["token", "HRkrMzzYstemD-UE6ePFFpEg1GWhPmRryl12a_JEOV4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.738695"], ["updated_at", "2015-03-20 05:52:00.738695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a24ea28-cec5-11e4-bc8a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a25ce7a-cec5-11e4-9483-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a24ea28-cec5-11e4-bc8a-705681abff85"], ["organization_id", "3a25ce7a-cec5-11e4-9483-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.741885"], ["updated_at", "2015-03-20 05:52:00.741885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '3a25ce7a-cec5-11e4-9483-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "3a25ce7a-cec5-11e4-9483-705681abff85"], ["created_at", "2015-03-20 05:52:00.745586"], ["updated_at", "2015-03-20 05:52:00.745586"], ["token", "f4SY-zhBtB2cEJSpiI8pyWTGlGSv-0p64NDQHPFbK4A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$M7E1FcqxrBcg9r7/x11QgeOyauhzteiHctIxHdGh2i7oZ/0sN6xrS"], ["created_at", "2015-03-20 05:52:00.756540"], ["updated_at", "2015-03-20 05:52:00.756540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.758349"], ["user_id", "3a288dae-cec5-11e4-a027-705681abff85"], ["created_at", "2015-03-20 05:52:00.759558"], ["updated_at", "2015-03-20 05:52:00.759558"], ["token", "8s5-7NdBxhN8XI50SAVlth2BpMzm7Fnsij_7rFrK1A0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.764209"], ["updated_at", "2015-03-20 05:52:00.764209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a288dae-cec5-11e4-a027-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a29ba08-cec5-11e4-837c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a288dae-cec5-11e4-a027-705681abff85"], ["organization_id", "3a29ba08-cec5-11e4-837c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.768040"], ["updated_at", "2015-03-20 05:52:00.768040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '3a29ba08-cec5-11e4-837c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "3a29ba08-cec5-11e4-837c-705681abff85"], ["created_at", "2015-03-20 05:52:00.771633"], ["updated_at", "2015-03-20 05:52:00.771633"], ["token", "hVgkA4rCYmAzE-KcZJR2DRi8k_6yLk3CigQR9PCvWAk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/3a2adb86-cec5-11e4-8a59-705681abff85" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"3a2adb86-cec5-11e4-8a59-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.776851' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8s5-7NdBxhN8XI50SAVlth2BpMzm7Fnsij_7rFrK1A0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.778259"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.779243"], ["id", "3a29275a-cec5-11e4-aff1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3a2adb86-cec5-11e4-8a59-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a288dae-cec5-11e4-a027-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a29ba08-cec5-11e4-837c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a288dae-cec5-11e4-a027-705681abff85' LIMIT 1 [["organization_id", "3a29ba08-cec5-11e4-837c-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."id" != '3a2adb86-cec5-11e4-8a59-705681abff85' AND "clubhouse_invitations"."organization_id" = '3a29ba08-cec5-11e4-837c-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:52:00.786333"], ["id", "3a2adb86-cec5-11e4-8a59-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$Wqa7BOlVy9aXbzjP8fC4FuSwUhG9ot5Jx.U8baotrNByNJLPcjKGi"], ["created_at", "2015-03-20 05:52:00.795063"], ["updated_at", "2015-03-20 05:52:00.795063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.796695"], ["user_id", "3a2e6c56-cec5-11e4-8cf6-705681abff85"], ["created_at", "2015-03-20 05:52:00.797503"], ["updated_at", "2015-03-20 05:52:00.797503"], ["token", "8TK9-Lyr_A0KC3IK1UI-kjnjq8iU5e_d2KICtdizZUg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.801196"], ["updated_at", "2015-03-20 05:52:00.801196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a2e6c56-cec5-11e4-8cf6-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a2f5a30-cec5-11e4-ae1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a2e6c56-cec5-11e4-8cf6-705681abff85"], ["organization_id", "3a2f5a30-cec5-11e4-ae1c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.804595"], ["updated_at", "2015-03-20 05:52:00.804595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '3a2f5a30-cec5-11e4-ae1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "3a2f5a30-cec5-11e4-ae1c-705681abff85"], ["created_at", "2015-03-20 05:52:00.807854"], ["updated_at", "2015-03-20 05:52:00.807854"], ["token", "OneJrIR5okXLBkBwfMYweD8O3_cbKJ1HqIdpPwZKCpA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$44r7vr2461u/EdGQoXhrJ.GfXpcIHLdTqqp5.cb6ZLd10OJcywe5O"], ["created_at", "2015-03-20 05:52:00.812699"], ["updated_at", "2015-03-20 05:52:00.812699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.815779"], ["updated_at", "2015-03-20 05:52:00.815779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a311afa-cec5-11e4-95dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a31932c-cec5-11e4-bac7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a311afa-cec5-11e4-95dc-705681abff85"], ["organization_id", "3a31932c-cec5-11e4-bac7-705681abff85"], ["created_at", "2015-03-20 05:52:00.819004"], ["updated_at", "2015-03-20 05:52:00.819004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$BXAgJdiVFuu486kIJ7EGL.Xm/bxW1LZeOz/xuQjWzQyoFakNLySDW"], ["created_at", "2015-03-20 05:52:00.830042"], ["updated_at", "2015-03-20 05:52:00.830042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:00.831998"], ["user_id", "3a33c3cc-cec5-11e4-af74-705681abff85"], ["created_at", "2015-03-20 05:52:00.832851"], ["updated_at", "2015-03-20 05:52:00.832851"], ["token", "BJ3crO5GDO741HSX2ze4hhwdFj6NDCsqR71nlDxJVOw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.836928"], ["updated_at", "2015-03-20 05:52:00.836928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a33c3cc-cec5-11e4-af74-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a34cd4e-cec5-11e4-9fcc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a33c3cc-cec5-11e4-af74-705681abff85"], ["organization_id", "3a34cd4e-cec5-11e4-9fcc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:00.840190"], ["updated_at", "2015-03-20 05:52:00.840190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '3a34cd4e-cec5-11e4-9fcc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "3a34cd4e-cec5-11e4-9fcc-705681abff85"], ["created_at", "2015-03-20 05:52:00.844101"], ["updated_at", "2015-03-20 05:52:00.844101"], ["token", "m73WDVPAa1mAWiDJdL15Rq49yPNLDSLYJzsgaVxX92A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$DpnEZiyQPl8U/mP12QfQ2eo5mBk6SG.O.1aTzrj6KmyWCo5DdIBoG"], ["created_at", "2015-03-20 05:52:00.848802"], ["updated_at", "2015-03-20 05:52:00.848802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.852313"], ["updated_at", "2015-03-20 05:52:00.852313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a36a01a-cec5-11e4-8562-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a372652-cec5-11e4-8710-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a36a01a-cec5-11e4-8562-705681abff85"], ["organization_id", "3a372652-cec5-11e4-8710-705681abff85"], ["created_at", "2015-03-20 05:52:00.855475"], ["updated_at", "2015-03-20 05:52:00.855475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:52:00 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:00.860703' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BJ3crO5GDO741HSX2ze4hhwdFj6NDCsqR71nlDxJVOw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:00.862374"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:00.863381"], ["id", "3a343fa0-cec5-11e4-b07a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a33c3cc-cec5-11e4-af74-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a33c3cc-cec5-11e4-af74-705681abff85' LIMIT 1 [["organization_id", "3a34cd4e-cec5-11e4-9fcc-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "3a34cd4e-cec5-11e4-9fcc-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" IN ('3a34cd4e-cec5-11e4-9fcc-705681abff85') Completed 200 OK in 11ms (Views: 2.2ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$cTyxiwUCmhvqhA8h55MqG./CUxO4Pvujss8J55fRC/fCpbFAw1Zp6"], ["created_at", "2015-03-20 05:52:00.877657"], ["updated_at", "2015-03-20 05:52:00.877657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$Iffbj9m5DnNSQbhEGfHINutEW/cR9XK1ZBn8LkGA1ZxaJrb2rsukq"], ["created_at", "2015-03-20 05:52:00.888640"], ["updated_at", "2015-03-20 05:52:00.888640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.893080"], ["updated_at", "2015-03-20 05:52:00.893080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a3cb3f6-cec5-11e4-92db-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a3d5fe0-cec5-11e4-acaa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a3cb3f6-cec5-11e4-92db-705681abff85"], ["organization_id", "3a3d5fe0-cec5-11e4-acaa-705681abff85"], ["created_at", "2015-03-20 05:52:00.896471"], ["updated_at", "2015-03-20 05:52:00.896471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$SY/ric56H2qMvRXQ4SDSfuUTuKV5EUlZIqqDEn5X7AvLHYWjR4/cK"], ["created_at", "2015-03-20 05:52:00.902404"], ["updated_at", "2015-03-20 05:52:00.902404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.905636"], ["updated_at", "2015-03-20 05:52:00.905636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a3ece98-cec5-11e4-84c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a3f47e2-cec5-11e4-aa34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a3ece98-cec5-11e4-84c2-705681abff85"], ["organization_id", "3a3f47e2-cec5-11e4-aa34-705681abff85"], ["created_at", "2015-03-20 05:52:00.909202"], ["updated_at", "2015-03-20 05:52:00.909202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a3ece98-cec5-11e4-84c2-705681abff85' LIMIT 1 [["organization_id", "3a3f47e2-cec5-11e4-aa34-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$Z1c7WSeDSqX29fHzmRBLk.zaB3w.s5IzymWGkb52pxSLxa1RppSDO"], ["created_at", "2015-03-20 05:52:00.916618"], ["updated_at", "2015-03-20 05:52:00.916618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.919904"], ["updated_at", "2015-03-20 05:52:00.919904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a40f9de-cec5-11e4-9549-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a417530-cec5-11e4-9983-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a40f9de-cec5-11e4-9549-705681abff85"], ["organization_id", "3a417530-cec5-11e4-9983-705681abff85"], ["created_at", "2015-03-20 05:52:00.923055"], ["updated_at", "2015-03-20 05:52:00.923055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3a40f9de-cec5-11e4-9549-705681abff85' LIMIT 1 [["organization_id", "3a417530-cec5-11e4-9983-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$sXyGZjlyvQNhaGTtymyPIeeRweAESj3ExczqSEPljuFwshwuwakyG"], ["created_at", "2015-03-20 05:52:00.930201"], ["updated_at", "2015-03-20 05:52:00.930201"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.934498"], ["updated_at", "2015-03-20 05:52:00.934498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a431386-cec5-11e4-9266-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a43c498-cec5-11e4-8ae1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a431386-cec5-11e4-9266-705681abff85"], ["organization_id", "3a43c498-cec5-11e4-8ae1-705681abff85"], ["created_at", "2015-03-20 05:52:00.939432"], ["updated_at", "2015-03-20 05:52:00.939432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a431386-cec5-11e4-9266-705681abff85' LIMIT 1 [["organization_id", "3a43c498-cec5-11e4-8ae1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$B4shEihCCw75wHVIoVn2we1AqSyoaHvzQKEvM67CP13HoG/Vh6qpi"], ["created_at", "2015-03-20 05:52:00.947109"], ["updated_at", "2015-03-20 05:52:00.947109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.951041"], ["updated_at", "2015-03-20 05:52:00.951041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a45a38a-cec5-11e4-b5c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a463a34-cec5-11e4-92fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a45a38a-cec5-11e4-b5c2-705681abff85"], ["organization_id", "3a463a34-cec5-11e4-92fd-705681abff85"], ["created_at", "2015-03-20 05:52:00.954429"], ["updated_at", "2015-03-20 05:52:00.954429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$1l5o81BCFFxbOd/lNoF5Q.pnOoartbblp620HsQKyc5JqjlJIdLtu"], ["created_at", "2015-03-20 05:52:00.960393"], ["updated_at", "2015-03-20 05:52:00.960393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.963840"], ["updated_at", "2015-03-20 05:52:00.963840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$ZMB6VqBEOqb129aAGoWMuOIze1u5uKCXySBVIUpe6/RySQRNpgw/e"], ["created_at", "2015-03-20 05:52:00.969476"], ["updated_at", "2015-03-20 05:52:00.969476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.972704"], ["updated_at", "2015-03-20 05:52:00.972704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a490778-cec5-11e4-9cfb-705681abff85' LIMIT 1 [["organization_id", "3a4993aa-cec5-11e4-84ea-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$Xv8HVBqPdKOHMKB7FcpEee8azo054u1PH1tkp3hK4VUmYDCf0D.y2"], ["created_at", "2015-03-20 05:52:00.979704"], ["updated_at", "2015-03-20 05:52:00.979704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.982716"], ["updated_at", "2015-03-20 05:52:00.982716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3a4a966a-cec5-11e4-b0cd-705681abff85' LIMIT 1 [["organization_id", "3a4b09f6-cec5-11e4-972c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$z.r40yqcNCDkethwcQDw9u7rxFVEYeAHQLHtzLWIdP2kJCRcQtTQu"], ["created_at", "2015-03-20 05:52:00.989263"], ["updated_at", "2015-03-20 05:52:00.989263"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:00.992999"], ["updated_at", "2015-03-20 05:52:00.992999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a4c0c0c-cec5-11e4-a590-705681abff85' LIMIT 1 [["organization_id", "3a4c9f6e-cec5-11e4-8caa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$p5hYMBgtIGgBVxAMLlePAenSJ2KvCiwZ0hQUOIvpbecAmgHJ1EKzq"], ["created_at", "2015-03-20 05:52:00.999842"], ["updated_at", "2015-03-20 05:52:00.999842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.003396"], ["updated_at", "2015-03-20 05:52:01.003396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$PqQGf9zXYE7IeBPxl7HmHusf9mVLllzSj6bVW6FKna7W3vz1Jj7z6"], ["created_at", "2015-03-20 05:52:01.009167"], ["updated_at", "2015-03-20 05:52:01.009167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.012236"], ["updated_at", "2015-03-20 05:52:01.012236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a4f15e6-cec5-11e4-8818-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a4f8bb6-cec5-11e4-8c06-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a4f15e6-cec5-11e4-8818-705681abff85"], ["organization_id", "3a4f8bb6-cec5-11e4-8c06-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.015853"], ["updated_at", "2015-03-20 05:52:01.015853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$ZlsguFO2o/SBoBPjM9ZwV.jA0IicScmsU2qaH9lgs14rmaZtbtDDO"], ["created_at", "2015-03-20 05:52:01.021414"], ["updated_at", "2015-03-20 05:52:01.021414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.024796"], ["updated_at", "2015-03-20 05:52:01.024796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a50f3b6-cec5-11e4-80b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a51824a-cec5-11e4-8128-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a50f3b6-cec5-11e4-80b9-705681abff85"], ["organization_id", "3a51824a-cec5-11e4-8128-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.028339"], ["updated_at", "2015-03-20 05:52:01.028339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a50f3b6-cec5-11e4-80b9-705681abff85' LIMIT 1 [["organization_id", "3a51824a-cec5-11e4-8128-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$u0GME/7ljiTJcsEIrpjnre9XeuaIHf12SZK5qlzGT0vO3gVd7UWh."], ["created_at", "2015-03-20 05:52:01.035922"], ["updated_at", "2015-03-20 05:52:01.035922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.039388"], ["updated_at", "2015-03-20 05:52:01.039388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a532ffa-cec5-11e4-9802-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a53b326-cec5-11e4-9369-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a532ffa-cec5-11e4-9802-705681abff85"], ["organization_id", "3a53b326-cec5-11e4-9369-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.042727"], ["updated_at", "2015-03-20 05:52:01.042727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3a532ffa-cec5-11e4-9802-705681abff85' LIMIT 1 [["organization_id", "3a53b326-cec5-11e4-9369-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$rVW/416US8hGNTKlIrt5ZOfauC/2Yir3ehRdsyjsFuWTuJ.6ToUva"], ["created_at", "2015-03-20 05:52:01.049481"], ["updated_at", "2015-03-20 05:52:01.049481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.052516"], ["updated_at", "2015-03-20 05:52:01.052516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a553d40-cec5-11e4-83f1-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a55b0d6-cec5-11e4-9146-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a553d40-cec5-11e4-83f1-705681abff85"], ["organization_id", "3a55b0d6-cec5-11e4-9146-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.055681"], ["updated_at", "2015-03-20 05:52:01.055681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a553d40-cec5-11e4-83f1-705681abff85' LIMIT 1 [["organization_id", "3a55b0d6-cec5-11e4-9146-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$p5BUKcZDK8sdOcqTnWJQuuFY1JVvjc2/8BMP1ndDFN25sSjAESPhe"], ["created_at", "2015-03-20 05:52:01.062376"], ["updated_at", "2015-03-20 05:52:01.062376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.065403"], ["updated_at", "2015-03-20 05:52:01.065403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a573406-cec5-11e4-825f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a57b674-cec5-11e4-acf1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a573406-cec5-11e4-825f-705681abff85"], ["organization_id", "3a57b674-cec5-11e4-acf1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.069433"], ["updated_at", "2015-03-20 05:52:01.069433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$bdj5igrpbwaYMIOU8MHxP.VAZIvi/mfC90OyhVvImfP9WmA3wyoZ."], ["created_at", "2015-03-20 05:52:01.075476"], ["updated_at", "2015-03-20 05:52:01.075476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.080193"], ["updated_at", "2015-03-20 05:52:01.080193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a5933a0-cec5-11e4-bc04-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a59fa92-cec5-11e4-9525-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a5933a0-cec5-11e4-bc04-705681abff85"], ["organization_id", "3a59fa92-cec5-11e4-9525-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.084056"], ["updated_at", "2015-03-20 05:52:01.084056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '3a59fa92-cec5-11e4-9525-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "3a59fa92-cec5-11e4-9525-705681abff85"], ["created_at", "2015-03-20 05:52:01.087524"], ["updated_at", "2015-03-20 05:52:01.087524"], ["token", "vjSAxXUa8Eh1enhlle4iKlUrmyiD5ZQdfF0xoF0LW5Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a5933a0-cec5-11e4-bc04-705681abff85' LIMIT 1 [["organization_id", "3a59fa92-cec5-11e4-9525-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$PxhTJdI76wSd1rH8Pk/iDez8Yd.kPSmA3AMOFab6utOYtdC0wvTWa"], ["created_at", "2015-03-20 05:52:01.094621"], ["updated_at", "2015-03-20 05:52:01.094621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.097695"], ["updated_at", "2015-03-20 05:52:01.097695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a5c210a-cec5-11e4-b61e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a5c95c2-cec5-11e4-8bcd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a5c210a-cec5-11e4-b61e-705681abff85"], ["organization_id", "3a5c95c2-cec5-11e4-8bcd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.100819"], ["updated_at", "2015-03-20 05:52:01.100819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '3a5c95c2-cec5-11e4-8bcd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "3a5c95c2-cec5-11e4-8bcd-705681abff85"], ["created_at", "2015-03-20 05:52:01.104005"], ["updated_at", "2015-03-20 05:52:01.104005"], ["token", "CkcxVtgrx4qM8jwKqj5u64AkNqT2PD_SXqs5VNoNy0c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a5c210a-cec5-11e4-b61e-705681abff85' LIMIT 1 [["organization_id", "3a5c95c2-cec5-11e4-8bcd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$xvhTd3erWmAv1yIoRRy7k.tn7RuCxBGx/vkwg.hdOUKxH5wmKm1SC"], ["created_at", "2015-03-20 05:52:01.111604"], ["updated_at", "2015-03-20 05:52:01.111604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.114837"], ["updated_at", "2015-03-20 05:52:01.114837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a5eba1e-cec5-11e4-a963-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a5f341c-cec5-11e4-b3fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a5eba1e-cec5-11e4-a963-705681abff85"], ["organization_id", "3a5f341c-cec5-11e4-b3fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.118285"], ["updated_at", "2015-03-20 05:52:01.118285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '3a5f341c-cec5-11e4-b3fb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "3a5f341c-cec5-11e4-b3fb-705681abff85"], ["created_at", "2015-03-20 05:52:01.121684"], ["updated_at", "2015-03-20 05:52:01.121684"], ["token", "zOtEZjbaiZJSdo_MuZ75USFQStITgqQMx1LHDmJoKAQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a5eba1e-cec5-11e4-a963-705681abff85' LIMIT 1 [["organization_id", "3a5f341c-cec5-11e4-b3fb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$dDc/wMowLs/IeObTg9UckuczAIb8wb258DCxst/kHlpi1wO13nM.y"], ["created_at", "2015-03-20 05:52:01.129651"], ["updated_at", "2015-03-20 05:52:01.129651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.132753"], ["updated_at", "2015-03-20 05:52:01.132753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a617916-cec5-11e4-9b9f-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a61f8d2-cec5-11e4-9d69-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a617916-cec5-11e4-9b9f-705681abff85"], ["organization_id", "3a61f8d2-cec5-11e4-9d69-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.136814"], ["updated_at", "2015-03-20 05:52:01.136814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '3a61f8d2-cec5-11e4-9d69-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "3a61f8d2-cec5-11e4-9d69-705681abff85"], ["created_at", "2015-03-20 05:52:01.140339"], ["updated_at", "2015-03-20 05:52:01.140339"], ["token", "EaAE0lFecArB72qiaovkBT4SqzxHSnyQKKXPGC2eeV4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a617916-cec5-11e4-9b9f-705681abff85' LIMIT 1 [["organization_id", "3a61f8d2-cec5-11e4-9d69-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$0u91vEEtySqtT.hv.CgvTOtQTvhQ4iWLAPxVCR9M8QcyOpLEgi83m"], ["created_at", "2015-03-20 05:52:01.148160"], ["updated_at", "2015-03-20 05:52:01.148160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.151434"], ["updated_at", "2015-03-20 05:52:01.151434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a644c7c-cec5-11e4-8531-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a64caa8-cec5-11e4-bd8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a644c7c-cec5-11e4-8531-705681abff85"], ["organization_id", "3a64caa8-cec5-11e4-bd8a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.154694"], ["updated_at", "2015-03-20 05:52:01.154694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a644c7c-cec5-11e4-8531-705681abff85' LIMIT 1 [["organization_id", "3a64caa8-cec5-11e4-bd8a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$UFOuX4reQNGeXFWEx8iQQucqEsopt3knj8tayqns7GW5UZt6cy1ke"], ["created_at", "2015-03-20 05:52:01.162117"], ["updated_at", "2015-03-20 05:52:01.162117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.165218"], ["updated_at", "2015-03-20 05:52:01.165218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '3a66e3a6-cec5-11e4-911c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "3a66e3a6-cec5-11e4-911c-705681abff85"], ["created_at", "2015-03-20 05:52:01.169063"], ["updated_at", "2015-03-20 05:52:01.169063"], ["token", "IL7d_IHy0ZZHAk1figNm0qKqHtvKk9SHwn1jJ6A6qcQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a666d68-cec5-11e4-acc8-705681abff85' LIMIT 1 [["organization_id", "3a66e3a6-cec5-11e4-911c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$bYzfPY8p4tLPv3TweGyAtelydWD7rjjW5Y3uWsr5BNB5DhHgj/N3e"], ["created_at", "2015-03-20 05:52:01.176581"], ["updated_at", "2015-03-20 05:52:01.176581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.180086"], ["updated_at", "2015-03-20 05:52:01.180086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '3a692bb6-cec5-11e4-b4ab-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "3a692bb6-cec5-11e4-b4ab-705681abff85"], ["created_at", "2015-03-20 05:52:01.183650"], ["updated_at", "2015-03-20 05:52:01.183650"], ["token", "QyIS0U-k4aV8crI3FdxbkjlGQemC4cgmn4a5iwwwvGE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a68a24a-cec5-11e4-a5d3-705681abff85' LIMIT 1 [["organization_id", "3a692bb6-cec5-11e4-b4ab-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$NnyNgjK6FinOJPiei8eehOjf9ms0qlDx/8Dn43RigrZbUhO9yk8xm"], ["created_at", "2015-03-20 05:52:01.202331"], ["updated_at", "2015-03-20 05:52:01.202331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.205855"], ["updated_at", "2015-03-20 05:52:01.205855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '3a6d18c0-cec5-11e4-b207-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "3a6d18c0-cec5-11e4-b207-705681abff85"], ["created_at", "2015-03-20 05:52:01.209327"], ["updated_at", "2015-03-20 05:52:01.209327"], ["token", "HWd0BBlobRhgL0Qs6IqnFtFMmiSlMX0-NkXk-8xQe5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a6c95c6-cec5-11e4-bd69-705681abff85' LIMIT 1 [["organization_id", "3a6d18c0-cec5-11e4-b207-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$tsWkKARCKgjjHo.cGAEm4uWxS0PTk10BnVj8z/OMH/SDAiEMi2.dK"], ["created_at", "2015-03-20 05:52:01.216604"], ["updated_at", "2015-03-20 05:52:01.216604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.221054"], ["updated_at", "2015-03-20 05:52:01.221054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '3a6f7d5e-cec5-11e4-a7ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "3a6f7d5e-cec5-11e4-a7ae-705681abff85"], ["created_at", "2015-03-20 05:52:01.225669"], ["updated_at", "2015-03-20 05:52:01.225669"], ["token", "gjC_nelc9esMqSjuXj6p_3BSKcBmKblPXsOkqLNsfjM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a6ecea4-cec5-11e4-9615-705681abff85' LIMIT 1 [["organization_id", "3a6f7d5e-cec5-11e4-a7ae-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$0.xLN.BY0ZQkVWs7zZVx1.oBoByK9pyYO6ZN9.CUWSyF9F.j8fBwO"], ["created_at", "2015-03-20 05:52:01.234626"], ["updated_at", "2015-03-20 05:52:01.234626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.239588"], ["updated_at", "2015-03-20 05:52:01.239588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a719990-cec5-11e4-a157-705681abff85' LIMIT 1 [["organization_id", "3a72405c-cec5-11e4-996b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$eZlkUHVjO7WL3BYNXq7p0.iIWuXa3vEHHuGjIsRwaEkCyDLx6eHGy"], ["created_at", "2015-03-20 05:52:01.247814"], ["updated_at", "2015-03-20 05:52:01.247814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.251515"], ["updated_at", "2015-03-20 05:52:01.251515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a738a02-cec5-11e4-81bd-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a7424e4-cec5-11e4-8111-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a738a02-cec5-11e4-81bd-705681abff85"], ["organization_id", "3a7424e4-cec5-11e4-8111-705681abff85"], ["created_at", "2015-03-20 05:52:01.255806"], ["updated_at", "2015-03-20 05:52:01.255806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '3a7424e4-cec5-11e4-8111-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "3a7424e4-cec5-11e4-8111-705681abff85"], ["created_at", "2015-03-20 05:52:01.260690"], ["updated_at", "2015-03-20 05:52:01.260690"], ["token", "tGxBrhtY-iaDpeQ_ceKjvx1kFh3X01sexu4dEtEYxAY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a738a02-cec5-11e4-81bd-705681abff85' LIMIT 1 [["organization_id", "3a7424e4-cec5-11e4-8111-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$LZUu93vGLVxKfO1ym3If.exz0.P5Yrtsxdie8.f/dodQtnRl3GH1."], ["created_at", "2015-03-20 05:52:01.268884"], ["updated_at", "2015-03-20 05:52:01.268884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.272157"], ["updated_at", "2015-03-20 05:52:01.272157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a76b86c-cec5-11e4-8ab3-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a7736d4-cec5-11e4-9136-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a76b86c-cec5-11e4-8ab3-705681abff85"], ["organization_id", "3a7736d4-cec5-11e4-9136-705681abff85"], ["created_at", "2015-03-20 05:52:01.275928"], ["updated_at", "2015-03-20 05:52:01.275928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '3a7736d4-cec5-11e4-9136-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "3a7736d4-cec5-11e4-9136-705681abff85"], ["created_at", "2015-03-20 05:52:01.280034"], ["updated_at", "2015-03-20 05:52:01.280034"], ["token", "a49TZ88faUJDQoPyCaemXNsvgxPheH1i0c20QKaBoWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a76b86c-cec5-11e4-8ab3-705681abff85' LIMIT 1 [["organization_id", "3a7736d4-cec5-11e4-9136-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$1A1fcL45xvAOSIwonlpmneq6z64UQoe6oKlV6RObfCdYJMtYp32hu"], ["created_at", "2015-03-20 05:52:01.289548"], ["updated_at", "2015-03-20 05:52:01.289548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.293721"], ["updated_at", "2015-03-20 05:52:01.293721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a79e578-cec5-11e4-bc9d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a7a8208-cec5-11e4-ab9f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a79e578-cec5-11e4-bc9d-705681abff85"], ["organization_id", "3a7a8208-cec5-11e4-ab9f-705681abff85"], ["created_at", "2015-03-20 05:52:01.298428"], ["updated_at", "2015-03-20 05:52:01.298428"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '3a7a8208-cec5-11e4-ab9f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "3a7a8208-cec5-11e4-ab9f-705681abff85"], ["created_at", "2015-03-20 05:52:01.303058"], ["updated_at", "2015-03-20 05:52:01.303058"], ["token", "iflL2oLglGm6p7nSAbzYb4UJZRzTTTNzBfu2xKnInrg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a79e578-cec5-11e4-bc9d-705681abff85' LIMIT 1 [["organization_id", "3a7a8208-cec5-11e4-ab9f-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$GAzpOZPLFzJjB9swDmLPjeuK9LIubcFBFjnBnIo8I9Tx78IaecM7O"], ["created_at", "2015-03-20 05:52:01.314305"], ["updated_at", "2015-03-20 05:52:01.314305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.318921"], ["updated_at", "2015-03-20 05:52:01.318921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a7dc030-cec5-11e4-a434-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a7e621a-cec5-11e4-a191-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a7dc030-cec5-11e4-a434-705681abff85"], ["organization_id", "3a7e621a-cec5-11e4-a191-705681abff85"], ["created_at", "2015-03-20 05:52:01.322750"], ["updated_at", "2015-03-20 05:52:01.322750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '3a7e621a-cec5-11e4-a191-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "3a7e621a-cec5-11e4-a191-705681abff85"], ["created_at", "2015-03-20 05:52:01.327416"], ["updated_at", "2015-03-20 05:52:01.327416"], ["token", "57sTm8H9nbXIjxh-hwhNR6oAWuY1CL6FUwqA0-OqT80"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a7dc030-cec5-11e4-a434-705681abff85' LIMIT 1 [["organization_id", "3a7e621a-cec5-11e4-a191-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$2Eoi4J0STYTeTtnJmg/O9OJSfcRggodHG51pYssWDdnC3eF7LBWPq"], ["created_at", "2015-03-20 05:52:01.346640"], ["updated_at", "2015-03-20 05:52:01.346640"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.351928"], ["updated_at", "2015-03-20 05:52:01.351928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a82a4d8-cec5-11e4-81db-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a83726e-cec5-11e4-a36e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a82a4d8-cec5-11e4-81db-705681abff85"], ["organization_id", "3a83726e-cec5-11e4-a36e-705681abff85"], ["created_at", "2015-03-20 05:52:01.357037"], ["updated_at", "2015-03-20 05:52:01.357037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a82a4d8-cec5-11e4-81db-705681abff85' LIMIT 1 [["organization_id", "3a83726e-cec5-11e4-a36e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.372432"], ["updated_at", "2015-03-20 05:52:01.372432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '3a868652-cec5-11e4-8530-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "3a868652-cec5-11e4-8530-705681abff85"], ["created_at", "2015-03-20 05:52:01.375896"], ["updated_at", "2015-03-20 05:52:01.375896"], ["token", "nLqjLmEhrNQ_GJZp0Dww7KMvop0NRgJne1KJtYmLImY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a868652-cec5-11e4-8530-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '3a868652-cec5-11e4-8530-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3a868652-cec5-11e4-8530-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '3a868652-cec5-11e4-8530-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.393202"], ["updated_at", "2015-03-20 05:52:01.393202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '3a89b0f2-cec5-11e4-988d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "3a89b0f2-cec5-11e4-988d-705681abff85"], ["created_at", "2015-03-20 05:52:01.396271"], ["updated_at", "2015-03-20 05:52:01.396271"], ["token", "72JyrJY-iDqIltojSAvOD2vJNTJrH8PnRazYeZCMPeg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.406360"], ["updated_at", "2015-03-20 05:52:01.406360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.422348"], ["updated_at", "2015-03-20 05:52:01.422348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.456399"], ["updated_at", "2015-03-20 05:52:01.456399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.461777"], ["updated_at", "2015-03-20 05:52:01.461777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3a9440e4-cec5-11e4-ac38-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.467933"], ["updated_at", "2015-03-20 05:52:01.467933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$Bb/6W3bAHs3XNu2Y6he1iuqbFMtvB9OTkLoRsqqJFIC3wR0WC4d9e"], ["created_at", "2015-03-20 05:52:01.476702"], ["updated_at", "2015-03-20 05:52:01.476702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.478309"], ["user_id", "3a966de2-cec5-11e4-a612-705681abff85"], ["created_at", "2015-03-20 05:52:01.479218"], ["updated_at", "2015-03-20 05:52:01.479218"], ["token", "2R-xexe2C1qEvHYclattr8kC-h8OT2QvIQ3l1kWDfIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.482725"], ["updated_at", "2015-03-20 05:52:01.482725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a966de2-cec5-11e4-a612-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a97577a-cec5-11e4-bac2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a966de2-cec5-11e4-a612-705681abff85"], ["organization_id", "3a97577a-cec5-11e4-bac2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.486117"], ["updated_at", "2015-03-20 05:52:01.486117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$vDXCRGNpglIdynMdDtiGxupxmTuv4BYfRclsoojWI6k4V8A4.WNci"], ["created_at", "2015-03-20 05:52:01.504583"], ["updated_at", "2015-03-20 05:52:01.504583"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.506979"], ["user_id", "3a9ab8ca-cec5-11e4-9b74-705681abff85"], ["created_at", "2015-03-20 05:52:01.508366"], ["updated_at", "2015-03-20 05:52:01.508366"], ["token", "NyibsyCZecrkERn9avfb8ANGrTmA5Icg821iXhE7_RM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.512267"], ["updated_at", "2015-03-20 05:52:01.512267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a9ab8ca-cec5-11e4-9b74-705681abff85' AND "clubhouse_memberships"."organization_id" = '3a9bda98-cec5-11e4-8829-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a9ab8ca-cec5-11e4-9b74-705681abff85"], ["organization_id", "3a9bda98-cec5-11e4-8829-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.515624"], ["updated_at", "2015-03-20 05:52:01.515624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/3a9bda98-cec5-11e4-8829-705681abff85" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"3a9bda98-cec5-11e4-8829-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:01.521022' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NyibsyCZecrkERn9avfb8ANGrTmA5Icg821iXhE7_RM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:01.522516"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:01.523524"], ["id", "3a9b5672-cec5-11e4-a79c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3a9bda98-cec5-11e4-8829-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a9ab8ca-cec5-11e4-9b74-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3a9ab8ca-cec5-11e4-9b74-705681abff85' LIMIT 1 [["organization_id", "3a9bda98-cec5-11e4-8829-705681abff85"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$ubZMMorG9rkjPDyarA5BUuVeueBCklqnHpib9cl.lCwezRQ5ulvSK"], ["created_at", "2015-03-20 05:52:01.535501"], ["updated_at", "2015-03-20 05:52:01.535501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.537560"], ["user_id", "3a9f70a4-cec5-11e4-a49b-705681abff85"], ["created_at", "2015-03-20 05:52:01.538429"], ["updated_at", "2015-03-20 05:52:01.538429"], ["token", "yo5BxrOL7N1PUceYgftC9tpCX4j5s-e7jM0bfPCdw1Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.542012"], ["updated_at", "2015-03-20 05:52:01.542012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a9f70a4-cec5-11e4-a49b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aa06478-cec5-11e4-9103-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a9f70a4-cec5-11e4-a49b-705681abff85"], ["organization_id", "3aa06478-cec5-11e4-9103-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.545320"], ["updated_at", "2015-03-20 05:52:01.545320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$N5p3ZIVS1CbY5.jZTzoTBeNd1nPvdw3Xso1s9CRwhoX9tXaoBI6wC"], ["created_at", "2015-03-20 05:52:01.556943"], ["updated_at", "2015-03-20 05:52:01.556943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.558755"], ["user_id", "3aa2b066-cec5-11e4-88f2-705681abff85"], ["created_at", "2015-03-20 05:52:01.559644"], ["updated_at", "2015-03-20 05:52:01.559644"], ["token", "ILzz6Qwh3U-UJHbSoiGsmzJGuH27psezTW0g3zNc1c8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.563178"], ["updated_at", "2015-03-20 05:52:01.563178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aa2b066-cec5-11e4-88f2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aa39dbe-cec5-11e4-ad41-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aa2b066-cec5-11e4-88f2-705681abff85"], ["organization_id", "3aa39dbe-cec5-11e4-ad41-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.566470"], ["updated_at", "2015-03-20 05:52:01.566470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/3aa39dbe-cec5-11e4-ad41-705681abff85" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"3aa39dbe-cec5-11e4-ad41-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:01.573068' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ILzz6Qwh3U-UJHbSoiGsmzJGuH27psezTW0g3zNc1c8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:01.574565"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:01.575666"], ["id", "3aa31cae-cec5-11e4-8789-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3aa39dbe-cec5-11e4-ad41-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3aa2b066-cec5-11e4-88f2-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3aa2b066-cec5-11e4-88f2-705681abff85' LIMIT 1 [["organization_id", "3aa39dbe-cec5-11e4-ad41-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3aa39dbe-cec5-11e4-ad41-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:52:01.582222"], ["id", "3aa39dbe-cec5-11e4-ad41-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$N0k5n6zKQP3E5yH6korzt.xzprz427tpM7Ia9LqL44..Rh4.Ak/Qq"], ["created_at", "2015-03-20 05:52:01.590608"], ["updated_at", "2015-03-20 05:52:01.590608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.592408"], ["user_id", "3aa7d460-cec5-11e4-bc6e-705681abff85"], ["created_at", "2015-03-20 05:52:01.593273"], ["updated_at", "2015-03-20 05:52:01.593273"], ["token", "1CiYjQ5X0_XrzFqmfFIPQdM62g497HuhkAoRHnbL5Rs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.596796"], ["updated_at", "2015-03-20 05:52:01.596796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aa7d460-cec5-11e4-bc6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aa8bf9c-cec5-11e4-bbfd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aa7d460-cec5-11e4-bc6e-705681abff85"], ["organization_id", "3aa8bf9c-cec5-11e4-bbfd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.600086"], ["updated_at", "2015-03-20 05:52:01.600086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/3aa8bf9c-cec5-11e4-bbfd-705681abff85" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"3aa8bf9c-cec5-11e4-bbfd-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:01.605676' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1CiYjQ5X0_XrzFqmfFIPQdM62g497HuhkAoRHnbL5Rs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:01.607107"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:01.608154"], ["id", "3aa83ffe-cec5-11e4-acd6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3aa8bf9c-cec5-11e4-bbfd-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3aa7d460-cec5-11e4-bc6e-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3aa7d460-cec5-11e4-bc6e-705681abff85' LIMIT 1 [["organization_id", "3aa8bf9c-cec5-11e4-bbfd-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3aa8bf9c-cec5-11e4-bbfd-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$68GAvkLRUmsldHanw5//vOCTchhNFPB07doc47oHw5D/seTou1cMa"], ["created_at", "2015-03-20 05:52:01.621738"], ["updated_at", "2015-03-20 05:52:01.621738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.623820"], ["user_id", "3aac9b44-cec5-11e4-8d1b-705681abff85"], ["created_at", "2015-03-20 05:52:01.624706"], ["updated_at", "2015-03-20 05:52:01.624706"], ["token", "15tBd6AnMH7BNmaVlZuKCXxY8Xek8EgqE3DcozyA6y8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.628345"], ["updated_at", "2015-03-20 05:52:01.628345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aac9b44-cec5-11e4-8d1b-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aad9116-cec5-11e4-a9a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aac9b44-cec5-11e4-8d1b-705681abff85"], ["organization_id", "3aad9116-cec5-11e4-a9a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.631919"], ["updated_at", "2015-03-20 05:52:01.631919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$nQpiZ2gJOsqjFJwKdMMs.ezwqCwdNJbQ/E/Mz1oHM5IMG69G8aCdi"], ["created_at", "2015-03-20 05:52:01.643729"], ["updated_at", "2015-03-20 05:52:01.643729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.645443"], ["user_id", "3aafec4a-cec5-11e4-bbd6-705681abff85"], ["created_at", "2015-03-20 05:52:01.646244"], ["updated_at", "2015-03-20 05:52:01.646244"], ["token", "Ft0mYqD_x_uRfP0FSHJMBDagKU7w5YlWXs3lSxhWUYc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.649669"], ["updated_at", "2015-03-20 05:52:01.649669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aafec4a-cec5-11e4-bbd6-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ab0d2a4-cec5-11e4-adb8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aafec4a-cec5-11e4-bbd6-705681abff85"], ["organization_id", "3ab0d2a4-cec5-11e4-adb8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.653432"], ["updated_at", "2015-03-20 05:52:01.653432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-65" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-65", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:01.659186' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ft0mYqD_x_uRfP0FSHJMBDagKU7w5YlWXs3lSxhWUYc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:01.660738"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:01.662622"], ["id", "3ab05400-cec5-11e4-b17e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-65"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3aafec4a-cec5-11e4-bbd6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3aafec4a-cec5-11e4-bbd6-705681abff85' LIMIT 1 [["organization_id", "3ab0d2a4-cec5-11e4-adb8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "3ab0d2a4-cec5-11e4-adb8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$p/M6M0UXwUBQ.rtPreM4nukdharJjqqdIn68/qgGkZpqh81G5QW76"], ["created_at", "2015-03-20 05:52:01.675450"], ["updated_at", "2015-03-20 05:52:01.675450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.677155"], ["user_id", "3ab4c4c2-cec5-11e4-8fe2-705681abff85"], ["created_at", "2015-03-20 05:52:01.677991"], ["updated_at", "2015-03-20 05:52:01.677991"], ["token", "XRBxMZw6b3_UO0Lcu73M4PXt5r22VKScXgG_NoSLe3w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.681504"], ["updated_at", "2015-03-20 05:52:01.681504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ab4c4c2-cec5-11e4-8fe2-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ab5ad9c-cec5-11e4-a5fd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ab4c4c2-cec5-11e4-8fe2-705681abff85"], ["organization_id", "3ab5ad9c-cec5-11e4-a5fd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.684872"], ["updated_at", "2015-03-20 05:52:01.684872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$3pt7LCqh48ngEvaoEDVGKOdSQ9cPc1ihyYyqbFpBLGVrZgiebm65K"], ["created_at", "2015-03-20 05:52:01.690017"], ["updated_at", "2015-03-20 05:52:01.690017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.693325"], ["updated_at", "2015-03-20 05:52:01.693325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ab6fd6e-cec5-11e4-92df-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ab77a14-cec5-11e4-8ae4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ab6fd6e-cec5-11e4-92df-705681abff85"], ["organization_id", "3ab77a14-cec5-11e4-8ae4-705681abff85"], ["created_at", "2015-03-20 05:52:01.696541"], ["updated_at", "2015-03-20 05:52:01.696541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$vjTcst8LfIo1BXrV4LqY1u/FzT59UQsiA6dVkS06c7vlPSzpc1WFK"], ["created_at", "2015-03-20 05:52:01.708170"], ["updated_at", "2015-03-20 05:52:01.708170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.709906"], ["user_id", "3ab9c346-cec5-11e4-a3c0-705681abff85"], ["created_at", "2015-03-20 05:52:01.711292"], ["updated_at", "2015-03-20 05:52:01.711292"], ["token", "7q5cZdEhk0xLTqv0CumRTReIi-2zRxb8L49VXDYKZNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.715808"], ["updated_at", "2015-03-20 05:52:01.715808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ab9c346-cec5-11e4-a3c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '3abae9ba-cec5-11e4-a3bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ab9c346-cec5-11e4-a3c0-705681abff85"], ["organization_id", "3abae9ba-cec5-11e4-a3bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.719256"], ["updated_at", "2015-03-20 05:52:01.719256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$emK7TAnjaHpaY2uKeVAwyenu4yCKGPQ/Tv.nCOZgwLJcHtSmkXrA6"], ["created_at", "2015-03-20 05:52:01.723998"], ["updated_at", "2015-03-20 05:52:01.723998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.727112"], ["updated_at", "2015-03-20 05:52:01.727112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3abc28f2-cec5-11e4-a995-705681abff85' AND "clubhouse_memberships"."organization_id" = '3abca156-cec5-11e4-bee9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3abc28f2-cec5-11e4-a995-705681abff85"], ["organization_id", "3abca156-cec5-11e4-bee9-705681abff85"], ["created_at", "2015-03-20 05:52:01.730305"], ["updated_at", "2015-03-20 05:52:01.730305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:01.735236' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7q5cZdEhk0xLTqv0CumRTReIi-2zRxb8L49VXDYKZNc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:01.737210"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:01.739212"], ["id", "3aba6346-cec5-11e4-9180-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ab9c346-cec5-11e4-a3c0-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "3ab9c346-cec5-11e4-a3c0-705681abff85"]] Completed 200 OK in 13ms (Views: 2.6ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$74M54ExhfokhJBQthudbdeBi4dryTaWXh.6aAhv/e.r8hBnqJ86fa"], ["created_at", "2015-03-20 05:52:01.754061"], ["updated_at", "2015-03-20 05:52:01.754061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.755957"], ["user_id", "3ac0c8d0-cec5-11e4-937a-705681abff85"], ["created_at", "2015-03-20 05:52:01.756815"], ["updated_at", "2015-03-20 05:52:01.756815"], ["token", "HsdQodb_8Fyj3XbSjhxZV90kBcofKI0KJR33DSGskn8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.760282"], ["updated_at", "2015-03-20 05:52:01.760282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ac0c8d0-cec5-11e4-937a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ac1b010-cec5-11e4-a7d9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ac0c8d0-cec5-11e4-937a-705681abff85"], ["organization_id", "3ac1b010-cec5-11e4-a7d9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.763469"], ["updated_at", "2015-03-20 05:52:01.763469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$cFQf9.plEPruvQHuTLSyhegW9gw.Y.nbUWIKsjFMmvnN7OraqX.my"], ["created_at", "2015-03-20 05:52:01.774623"], ["updated_at", "2015-03-20 05:52:01.774623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.776813"], ["user_id", "3ac3f726-cec5-11e4-9cbe-705681abff85"], ["created_at", "2015-03-20 05:52:01.777628"], ["updated_at", "2015-03-20 05:52:01.777628"], ["token", "k9dC7zk2WfH65HsFlsAiusdB03L3oxmc8qgwRVODvtU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.780948"], ["updated_at", "2015-03-20 05:52:01.780948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ac3f726-cec5-11e4-9cbe-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ac4d75e-cec5-11e4-bad8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ac3f726-cec5-11e4-9cbe-705681abff85"], ["organization_id", "3ac4d75e-cec5-11e4-bad8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.784166"], ["updated_at", "2015-03-20 05:52:01.784166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/3ac4d75e-cec5-11e4-bad8-705681abff85" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"3ac4d75e-cec5-11e4-bad8-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:01.789905' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k9dC7zk2WfH65HsFlsAiusdB03L3oxmc8qgwRVODvtU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:01.791437"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:01.792489"], ["id", "3ac45f72-cec5-11e4-89b9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3ac4d75e-cec5-11e4-bad8-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ac3f726-cec5-11e4-9cbe-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3ac3f726-cec5-11e4-9cbe-705681abff85' LIMIT 1 [["organization_id", "3ac4d75e-cec5-11e4-bad8-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "3ac4d75e-cec5-11e4-bad8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$moilreElbSvSoz97fHJ3luy1sx8PMF24s82Th13NfhbnwYD6Anw9C"], ["created_at", "2015-03-20 05:52:01.803552"], ["updated_at", "2015-03-20 05:52:01.803552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.805217"], ["user_id", "3ac84fd8-cec5-11e4-b922-705681abff85"], ["created_at", "2015-03-20 05:52:01.806196"], ["updated_at", "2015-03-20 05:52:01.806196"], ["token", "WCknHvkd3cP4P5yei__dKGD9oA-x5h4Rf_Onjz_Mivo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.809747"], ["updated_at", "2015-03-20 05:52:01.809747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ac84fd8-cec5-11e4-b922-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ac93c5e-cec5-11e4-b6cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ac84fd8-cec5-11e4-b922-705681abff85"], ["organization_id", "3ac93c5e-cec5-11e4-b6cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.812898"], ["updated_at", "2015-03-20 05:52:01.812898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$WBvHQnpYYwpalWR580GB8e3mRV5nxAKBtcmn0JBm9GVU7Na52Prdy"], ["created_at", "2015-03-20 05:52:01.825340"], ["updated_at", "2015-03-20 05:52:01.825340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.827349"], ["user_id", "3acba2aa-cec5-11e4-a492-705681abff85"], ["created_at", "2015-03-20 05:52:01.828870"], ["updated_at", "2015-03-20 05:52:01.828870"], ["token", "rkXxXOgMr7BDd25rJ_rcGHpikvF97F4LJgqfi9RiWs8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.833237"], ["updated_at", "2015-03-20 05:52:01.833237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3acba2aa-cec5-11e4-a492-705681abff85' AND "clubhouse_memberships"."organization_id" = '3accd666-cec5-11e4-ad02-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3acba2aa-cec5-11e4-a492-705681abff85"], ["organization_id", "3accd666-cec5-11e4-ad02-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.836965"], ["updated_at", "2015-03-20 05:52:01.836965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-73" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-73", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:01.842416' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rkXxXOgMr7BDd25rJ_rcGHpikvF97F4LJgqfi9RiWs8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:01.843894"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:01.845075"], ["id", "3acc48e0-cec5-11e4-b837-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-73"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3acba2aa-cec5-11e4-a492-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3acba2aa-cec5-11e4-a492-705681abff85' LIMIT 1 [["organization_id", "3accd666-cec5-11e4-ad02-705681abff85"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3accd666-cec5-11e4-ad02-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:52:01.853193"], ["id", "3accd666-cec5-11e4-ad02-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$SaJxWFLuDriUzwud0Jf6qumnnGQDoPs73h4d3ej5HX7fAE6DY4lq2"], ["created_at", "2015-03-20 05:52:01.861126"], ["updated_at", "2015-03-20 05:52:01.861126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.862698"], ["user_id", "3ad1174e-cec5-11e4-8894-705681abff85"], ["created_at", "2015-03-20 05:52:01.863504"], ["updated_at", "2015-03-20 05:52:01.863504"], ["token", "Fbosho90mg0e6oAofYPvVWFKEPPC78aRfHtYYqkVCmk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.866753"], ["updated_at", "2015-03-20 05:52:01.866753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ad1174e-cec5-11e4-8894-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ad1eebc-cec5-11e4-af67-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ad1174e-cec5-11e4-8894-705681abff85"], ["organization_id", "3ad1eebc-cec5-11e4-af67-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.869947"], ["updated_at", "2015-03-20 05:52:01.869947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-74" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-74", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:01.875877' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Fbosho90mg0e6oAofYPvVWFKEPPC78aRfHtYYqkVCmk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:01.877361"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:01.878353"], ["id", "3ad177f2-cec5-11e4-b9cb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-74"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ad1174e-cec5-11e4-8894-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3ad1174e-cec5-11e4-8894-705681abff85' LIMIT 1 [["organization_id", "3ad1eebc-cec5-11e4-af67-705681abff85"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3ad1eebc-cec5-11e4-af67-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$nThfoGkJJS2hpHAhU4.ivewXjxtRFTT0qzVcM4poYK2vVdP/RMe4C"], ["created_at", "2015-03-20 05:52:01.894095"], ["updated_at", "2015-03-20 05:52:01.894095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.896349"], ["user_id", "3ad63602-cec5-11e4-b68d-705681abff85"], ["created_at", "2015-03-20 05:52:01.897190"], ["updated_at", "2015-03-20 05:52:01.897190"], ["token", "6lbbMpSAmpWnC1lwf4GpDFyo_W22b6COuHRyMoc_-NA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.900701"], ["updated_at", "2015-03-20 05:52:01.900701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ad63602-cec5-11e4-b68d-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ad71d1a-cec5-11e4-bb06-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ad63602-cec5-11e4-b68d-705681abff85"], ["organization_id", "3ad71d1a-cec5-11e4-bb06-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.903988"], ["updated_at", "2015-03-20 05:52:01.903988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$sgpf6P2S1yb/jUIxD8J8H.Z.P4ZKGrGa841JiMScE/hfgjLDPrHdW"], ["created_at", "2015-03-20 05:52:01.914919"], ["updated_at", "2015-03-20 05:52:01.914919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.916683"], ["user_id", "3ad94f0e-cec5-11e4-ac81-705681abff85"], ["created_at", "2015-03-20 05:52:01.917490"], ["updated_at", "2015-03-20 05:52:01.917490"], ["token", "X3W99kexhfisymQB4jSrYelbH-z4guAwk-RDvdpJCXY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.921248"], ["updated_at", "2015-03-20 05:52:01.921248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ad94f0e-cec5-11e4-ac81-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ada4350-cec5-11e4-a3b3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ad94f0e-cec5-11e4-ac81-705681abff85"], ["organization_id", "3ada4350-cec5-11e4-a3b3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.924528"], ["updated_at", "2015-03-20 05:52:01.924528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:01.929715' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "X3W99kexhfisymQB4jSrYelbH-z4guAwk-RDvdpJCXY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:01.931540"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:01.933384"], ["id", "3ad9b62e-cec5-11e4-b866-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ad94f0e-cec5-11e4-ac81-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.942712"], ["updated_at", "2015-03-20 05:52:01.942712"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3add9a00-cec5-11e4-9b8b-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ad94f0e-cec5-11e4-ac81-705681abff85' AND "clubhouse_memberships"."organization_id" = '3add9a00-cec5-11e4-9b8b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ad94f0e-cec5-11e4-ac81-705681abff85"], ["admin", "t"], ["organization_id", "3add9a00-cec5-11e4-9b8b-705681abff85"], ["created_at", "2015-03-20 05:52:01.948536"], ["updated_at", "2015-03-20 05:52:01.948536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 21ms (Views: 0.5ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$YEFelbONL1r1cS6C8iLbkOs0AXGiXrOt9G70wOy9KJfsMQYfU0.oy"], ["created_at", "2015-03-20 05:52:01.956845"], ["updated_at", "2015-03-20 05:52:01.956845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.958424"], ["user_id", "3adfb2cc-cec5-11e4-a387-705681abff85"], ["created_at", "2015-03-20 05:52:01.959207"], ["updated_at", "2015-03-20 05:52:01.959207"], ["token", "nV6XH5DBUEYDnVRTvnx8XrYuCt2CeeFmiM5S7YGPRvU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.962484"], ["updated_at", "2015-03-20 05:52:01.962484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3adfb2cc-cec5-11e4-a387-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ae08a30-cec5-11e4-944e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3adfb2cc-cec5-11e4-a387-705681abff85"], ["organization_id", "3ae08a30-cec5-11e4-944e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.965769"], ["updated_at", "2015-03-20 05:52:01.965769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:01.970685' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nV6XH5DBUEYDnVRTvnx8XrYuCt2CeeFmiM5S7YGPRvU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:01.972038"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:01.973058"], ["id", "3ae01294-cec5-11e4-8ec4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3adfb2cc-cec5-11e4-a387-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$W2Gc1kqfa0e8DRl93TAHAutfqBSi8cwn8R5UCagW7F6wUfoDo.k4y"], ["created_at", "2015-03-20 05:52:01.984221"], ["updated_at", "2015-03-20 05:52:01.984221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:01.985831"], ["user_id", "3ae3de38-cec5-11e4-98b9-705681abff85"], ["created_at", "2015-03-20 05:52:01.986854"], ["updated_at", "2015-03-20 05:52:01.986854"], ["token", "JJLIaeXts2V3w20HiBQpVDmH8L7v3L1jm0HnpSCJOmU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:01.991036"], ["updated_at", "2015-03-20 05:52:01.991036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ae3de38-cec5-11e4-98b9-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ae4ec10-cec5-11e4-8acc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ae3de38-cec5-11e4-98b9-705681abff85"], ["organization_id", "3ae4ec10-cec5-11e4-8acc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:01.994566"], ["updated_at", "2015-03-20 05:52:01.994566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 22:52:01 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$.PrJ4vR8SxOP8sNf7KMgAeP7HPRYTGWebfdeNq6D/8A.PFHnLIdv6"], ["created_at", "2015-03-20 05:52:02.005008"], ["updated_at", "2015-03-20 05:52:02.005008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:02.006610"], ["user_id", "3ae70c16-cec5-11e4-9e7e-705681abff85"], ["created_at", "2015-03-20 05:52:02.007383"], ["updated_at", "2015-03-20 05:52:02.007383"], ["token", "GqjPPx5rxNY75r1kjCfbOHXd6X2OXjhx1zekrEgmPNs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:02.010655"], ["updated_at", "2015-03-20 05:52:02.010655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ae70c16-cec5-11e4-9e7e-705681abff85' AND "clubhouse_memberships"."organization_id" = '3ae7e712-cec5-11e4-944d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ae70c16-cec5-11e4-9e7e-705681abff85"], ["organization_id", "3ae7e712-cec5-11e4-944d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:02.013891"], ["updated_at", "2015-03-20 05:52:02.013891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-79" for 127.0.0.1 at 2015-03-19 22:52:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-79", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:02.018598' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GqjPPx5rxNY75r1kjCfbOHXd6X2OXjhx1zekrEgmPNs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:02.020058"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:02.021548"], ["id", "3ae76c92-cec5-11e4-a9ce-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-79"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3ae70c16-cec5-11e4-9e7e-705681abff85"]] Completed 200 OK in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$oXJ9mgJC0RDbNRVh..METOZ23NdPAust.7pDStz7eulZGGxZRX70O"], ["created_at", "2015-03-20 05:52:02.030877"], ["updated_at", "2015-03-20 05:52:02.030877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:02.032508"], ["user_id", "3aeaff24-cec5-11e4-b557-705681abff85"], ["created_at", "2015-03-20 05:52:02.033296"], ["updated_at", "2015-03-20 05:52:02.033296"], ["token", "ahH2cAM2cfHvjkZaJKDM5KTlytbBb9ubLXxCF1arn_Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:02.037283"], ["updated_at", "2015-03-20 05:52:02.037283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aeaff24-cec5-11e4-b557-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aebfae6-cec5-11e4-a546-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aeaff24-cec5-11e4-b557-705681abff85"], ["organization_id", "3aebfae6-cec5-11e4-a546-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:02.041116"], ["updated_at", "2015-03-20 05:52:02.041116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 22:52:02 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:02.046318' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ahH2cAM2cfHvjkZaJKDM5KTlytbBb9ubLXxCF1arn_Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:02.047636"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:02.048611"], ["id", "3aeb6126-cec5-11e4-98a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$RNc3beibDvH29DIA59T06ObakSd5vd4PsJSpq1JgHYKB70F5xGKre"], ["created_at", "2015-03-20 05:52:02.056408"], ["updated_at", "2015-03-20 05:52:02.056408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:02.057972"], ["user_id", "3aeee2f6-cec5-11e4-bf27-705681abff85"], ["created_at", "2015-03-20 05:52:02.058754"], ["updated_at", "2015-03-20 05:52:02.058754"], ["token", "8p8iVTSYZUGhC2_g-6xwOLIcstwNQTdvXoiGaG59QiY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:02.062080"], ["updated_at", "2015-03-20 05:52:02.062080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aeee2f6-cec5-11e4-bf27-705681abff85' AND "clubhouse_memberships"."organization_id" = '3aefbd16-cec5-11e4-92a3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aeee2f6-cec5-11e4-bf27-705681abff85"], ["organization_id", "3aefbd16-cec5-11e4-92a3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:02.065172"], ["updated_at", "2015-03-20 05:52:02.065172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 22:52:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$MK5a5CC41.k5BdRiyA4ty.09WHPdk0ZXfJjq5fd3kMXcOi5lb7SqO"], ["created_at", "2015-03-20 05:52:02.074747"], ["updated_at", "2015-03-20 05:52:02.074747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:52:02.076332"], ["user_id", "3af1aed2-cec5-11e4-b58a-705681abff85"], ["created_at", "2015-03-20 05:52:02.077127"], ["updated_at", "2015-03-20 05:52:02.077127"], ["token", "A9QppUb_lIfbkrix8QU-9kLathOnPrni6tEuyqg6JrA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:52:02.080424"], ["updated_at", "2015-03-20 05:52:02.080424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3af1aed2-cec5-11e4-b58a-705681abff85' AND "clubhouse_memberships"."organization_id" = '3af2897e-cec5-11e4-ac2b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3af1aed2-cec5-11e4-b58a-705681abff85"], ["organization_id", "3af2897e-cec5-11e4-ac2b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:52:02.083526"], ["updated_at", "2015-03-20 05:52:02.083526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-82" for 127.0.0.1 at 2015-03-19 22:52:02 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-82", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:52:02.088764' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "A9QppUb_lIfbkrix8QU-9kLathOnPrni6tEuyqg6JrA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:52:02.090357"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:52:02.091359"], ["id", "3af2112e-cec5-11e4-a5ee-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-82"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3af1aed2-cec5-11e4-b58a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3af1aed2-cec5-11e4-b58a-705681abff85' LIMIT 1 [["organization_id", "3af2897e-cec5-11e4-ac2b-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$wJ/i.sVAG9du7Evy1Szj7uBYnwgsxA0Pz7t8nzJPI7.PqGjtr4qRe"], ["created_at", "2015-03-20 05:56:19.695254"], ["updated_at", "2015-03-20 05:56:19.695254"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.728883"], ["updated_at", "2015-03-20 05:56:19.728883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4827d74-cec5-11e4-aaa5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4849f46-cec5-11e4-a07d-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4827d74-cec5-11e4-aaa5-705681abff85"], ["organization_id", "d4849f46-cec5-11e4-a07d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:19.746027"], ["updated_at", "2015-03-20 05:56:19.746027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'd4849f46-cec5-11e4-a07d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "d4849f46-cec5-11e4-a07d-705681abff85"], ["created_at", "2015-03-20 05:56:19.759173"], ["updated_at", "2015-03-20 05:56:19.759173"], ["token", "cR_141csWeC0QtLkVrSDI8Mp0WWPSzphOjBrSP5egU8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd4827d74-cec5-11e4-aaa5-705681abff85' LIMIT 1 [["organization_id", "d4849f46-cec5-11e4-a07d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$w1x/JA9iOnLtkbJxRGW35OfkZbSLr5dhxr6PqgEgtTiuFr49nzuoi"], ["created_at", "2015-03-20 05:56:19.782785"], ["updated_at", "2015-03-20 05:56:19.782785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.786179"], ["updated_at", "2015-03-20 05:56:19.786179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd48cd030-cec5-11e4-9423-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd48d53c0-cec5-11e4-8ccf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d48cd030-cec5-11e4-9423-705681abff85"], ["organization_id", "d48d53c0-cec5-11e4-8ccf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:19.790172"], ["updated_at", "2015-03-20 05:56:19.790172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'd48d53c0-cec5-11e4-8ccf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "d48d53c0-cec5-11e4-8ccf-705681abff85"], ["created_at", "2015-03-20 05:56:19.794021"], ["updated_at", "2015-03-20 05:56:19.794021"], ["token", "Y4Ir355D5QWbdNuEg0LtidvAXB3dKukby2wN1R3K_xg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd48cd030-cec5-11e4-9423-705681abff85' LIMIT 1 [["organization_id", "d48d53c0-cec5-11e4-8ccf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$RmlD9FFzSSlZ99P3qj2Dz.KoyU.TZGuhXp15LuJucigQXQZL0RFnC"], ["created_at", "2015-03-20 05:56:19.801761"], ["updated_at", "2015-03-20 05:56:19.801761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.806073"], ["updated_at", "2015-03-20 05:56:19.806073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd48fc0b0-cec5-11e4-b844-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd49069d4-cec5-11e4-a507-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d48fc0b0-cec5-11e4-b844-705681abff85"], ["organization_id", "d49069d4-cec5-11e4-a507-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:19.809991"], ["updated_at", "2015-03-20 05:56:19.809991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'd49069d4-cec5-11e4-a507-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "d49069d4-cec5-11e4-a507-705681abff85"], ["created_at", "2015-03-20 05:56:19.814066"], ["updated_at", "2015-03-20 05:56:19.814066"], ["token", "d8o_RTOJkYBzA-vm2-udQqlXgtLlzrzVCF_KZ3d-sf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd48fc0b0-cec5-11e4-b844-705681abff85' LIMIT 1 [["organization_id", "d49069d4-cec5-11e4-a507-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$qwce3I3XVjmQuGwE68J7mOyUG/HDAX9mogD2Fi14BCBmlK7wpyRZe"], ["created_at", "2015-03-20 05:56:19.822090"], ["updated_at", "2015-03-20 05:56:19.822090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.827053"], ["updated_at", "2015-03-20 05:56:19.827053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd492e5d8-cec5-11e4-a469-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4939226-cec5-11e4-92bb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d492e5d8-cec5-11e4-a469-705681abff85"], ["organization_id", "d4939226-cec5-11e4-92bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:19.830507"], ["updated_at", "2015-03-20 05:56:19.830507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'd4939226-cec5-11e4-92bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "d4939226-cec5-11e4-92bb-705681abff85"], ["created_at", "2015-03-20 05:56:19.834267"], ["updated_at", "2015-03-20 05:56:19.834267"], ["token", "R3_kxB8F-6Qx3O3A9axAG1AEJs5UrD9WMaLwYzGU_dQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd492e5d8-cec5-11e4-a469-705681abff85' LIMIT 1 [["organization_id", "d4939226-cec5-11e4-92bb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$qDKIsAXeohHQD6MRjKbLs.kAx/9KS4QoiqGUXmIv7Qjris4ic5GlC"], ["created_at", "2015-03-20 05:56:19.841780"], ["updated_at", "2015-03-20 05:56:19.841780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.844910"], ["updated_at", "2015-03-20 05:56:19.844910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd495cf8c-cec5-11e4-918e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd49647a0-cec5-11e4-b0a2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d495cf8c-cec5-11e4-918e-705681abff85"], ["organization_id", "d49647a0-cec5-11e4-b0a2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:19.848094"], ["updated_at", "2015-03-20 05:56:19.848094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd495cf8c-cec5-11e4-918e-705681abff85' LIMIT 1 [["organization_id", "d49647a0-cec5-11e4-b0a2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$qP6xMLtG5rDWaPMyhLVa1uy/XjvG2ki.URffnf0V2yng7uY4D7Dki"], ["created_at", "2015-03-20 05:56:19.856614"], ["updated_at", "2015-03-20 05:56:19.856614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.859819"], ["updated_at", "2015-03-20 05:56:19.859819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'd49891ea-cec5-11e4-b8a8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "d49891ea-cec5-11e4-b8a8-705681abff85"], ["created_at", "2015-03-20 05:56:19.863284"], ["updated_at", "2015-03-20 05:56:19.863284"], ["token", "6KRn8E7ZDcGzgXxP7paZH6rxpko5K1XsIYTutGXMKuQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd4981468-cec5-11e4-93ff-705681abff85' LIMIT 1 [["organization_id", "d49891ea-cec5-11e4-b8a8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$g2XwLv5LBvX3rb0bqqOeZul8wp5HbrNQWcQjR8pJIpFOtzGaoptmK"], ["created_at", "2015-03-20 05:56:19.870448"], ["updated_at", "2015-03-20 05:56:19.870448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.873956"], ["updated_at", "2015-03-20 05:56:19.873956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'd49ab722-cec5-11e4-a467-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "d49ab722-cec5-11e4-a467-705681abff85"], ["created_at", "2015-03-20 05:56:19.877359"], ["updated_at", "2015-03-20 05:56:19.877359"], ["token", "tVnRzUMiu1l8lK_spYsMV4-8Za5tODzUXGA20ZqOtuM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd49a34aa-cec5-11e4-b88f-705681abff85' LIMIT 1 [["organization_id", "d49ab722-cec5-11e4-a467-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$YUvlhL9KsscncMfmd9AfuO8fHhlFoY.vvQrGOiztxI9X6YSPNDHdS"], ["created_at", "2015-03-20 05:56:19.884399"], ["updated_at", "2015-03-20 05:56:19.884399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.887559"], ["updated_at", "2015-03-20 05:56:19.887559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'd49cce18-cec5-11e4-be9f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "d49cce18-cec5-11e4-be9f-705681abff85"], ["created_at", "2015-03-20 05:56:19.891249"], ["updated_at", "2015-03-20 05:56:19.891249"], ["token", "mctD-W9HbO5CRPTd_XnMUmKA145AX0azS_YIcH8nrSo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd49c4f38-cec5-11e4-aa0d-705681abff85' LIMIT 1 [["organization_id", "d49cce18-cec5-11e4-be9f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$HtLT1e88lTqEpLULBPnbJ.PKThx3HlglvZ6wq1IBFrt5jelhhD/Ia"], ["created_at", "2015-03-20 05:56:19.898541"], ["updated_at", "2015-03-20 05:56:19.898541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.902301"], ["updated_at", "2015-03-20 05:56:19.902301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'd49f0d72-cec5-11e4-9489-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "d49f0d72-cec5-11e4-9489-705681abff85"], ["created_at", "2015-03-20 05:56:19.906161"], ["updated_at", "2015-03-20 05:56:19.906161"], ["token", "K79Baxs1JgnorEcJl9p7Dt0dWk8HnNOcQNCOn6F95ng"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd49e7984-cec5-11e4-a726-705681abff85' LIMIT 1 [["organization_id", "d49f0d72-cec5-11e4-9489-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$Iy.dLa8/HDqSe24wKICju.pjgL58FIOsvZtgHGdofr3PJkIkRhH7u"], ["created_at", "2015-03-20 05:56:19.913726"], ["updated_at", "2015-03-20 05:56:19.913726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.917198"], ["updated_at", "2015-03-20 05:56:19.917198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd4a0ce5a-cec5-11e4-9623-705681abff85' LIMIT 1 [["organization_id", "d4a1506e-cec5-11e4-bb29-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$qqTqxXJnOzJReWzs5y6UfemxRALdDndL.gFbPH/NzFhlWkMj3IxRa"], ["created_at", "2015-03-20 05:56:19.924895"], ["updated_at", "2015-03-20 05:56:19.924895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.928667"], ["updated_at", "2015-03-20 05:56:19.928667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4a281dc-cec5-11e4-b13d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4a316f6-cec5-11e4-aa09-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d4a281dc-cec5-11e4-b13d-705681abff85"], ["organization_id", "d4a316f6-cec5-11e4-aa09-705681abff85"], ["created_at", "2015-03-20 05:56:19.932541"], ["updated_at", "2015-03-20 05:56:19.932541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'd4a316f6-cec5-11e4-aa09-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "d4a316f6-cec5-11e4-aa09-705681abff85"], ["created_at", "2015-03-20 05:56:19.936196"], ["updated_at", "2015-03-20 05:56:19.936196"], ["token", "WR54_6a1ZV7K3n_APlXopzCQ781wWbbcqSHVhVrRw_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd4a281dc-cec5-11e4-b13d-705681abff85' LIMIT 1 [["organization_id", "d4a316f6-cec5-11e4-aa09-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$uUV5k46gz.6fV2avViNT4.tPNf.twbpxszdh2Lz9KfW6.QsNBkpbK"], ["created_at", "2015-03-20 05:56:19.944371"], ["updated_at", "2015-03-20 05:56:19.944371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.947879"], ["updated_at", "2015-03-20 05:56:19.947879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4a5772a-cec5-11e4-a179-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4a6024e-cec5-11e4-85c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d4a5772a-cec5-11e4-a179-705681abff85"], ["organization_id", "d4a6024e-cec5-11e4-85c9-705681abff85"], ["created_at", "2015-03-20 05:56:19.951249"], ["updated_at", "2015-03-20 05:56:19.951249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'd4a6024e-cec5-11e4-85c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "d4a6024e-cec5-11e4-85c9-705681abff85"], ["created_at", "2015-03-20 05:56:19.955068"], ["updated_at", "2015-03-20 05:56:19.955068"], ["token", "c4lxUJ_0GTXMiPVB_d7pchnq2n4vrMNYZcG-hM209HQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd4a5772a-cec5-11e4-a179-705681abff85' LIMIT 1 [["organization_id", "d4a6024e-cec5-11e4-85c9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$G6nsmLuJ5Gb.txY6mqUhZeqDI0bmytsq1hEWKwyblbrX515rLeaMC"], ["created_at", "2015-03-20 05:56:19.962494"], ["updated_at", "2015-03-20 05:56:19.962494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.965977"], ["updated_at", "2015-03-20 05:56:19.965977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4a83f28-cec5-11e4-9017-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4a8c254-cec5-11e4-9ff6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d4a83f28-cec5-11e4-9017-705681abff85"], ["organization_id", "d4a8c254-cec5-11e4-9ff6-705681abff85"], ["created_at", "2015-03-20 05:56:19.969337"], ["updated_at", "2015-03-20 05:56:19.969337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'd4a8c254-cec5-11e4-9ff6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "d4a8c254-cec5-11e4-9ff6-705681abff85"], ["created_at", "2015-03-20 05:56:19.972877"], ["updated_at", "2015-03-20 05:56:19.972877"], ["token", "Rupo_VhwJj9hvxzmIVVPBiqKKZMLWjJVYAIIcUwdEnI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd4a83f28-cec5-11e4-9017-705681abff85' LIMIT 1 [["organization_id", "d4a8c254-cec5-11e4-9ff6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$yZ9VFv5r0ax0WPz/f1VxauDoox9/luidAyrftW8BXgaCrTQCXIqSG"], ["created_at", "2015-03-20 05:56:19.980888"], ["updated_at", "2015-03-20 05:56:19.980888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:19.984215"], ["updated_at", "2015-03-20 05:56:19.984215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4ab0cc6-cec5-11e4-a4c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4ab8b88-cec5-11e4-a935-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d4ab0cc6-cec5-11e4-a4c5-705681abff85"], ["organization_id", "d4ab8b88-cec5-11e4-a935-705681abff85"], ["created_at", "2015-03-20 05:56:19.995323"], ["updated_at", "2015-03-20 05:56:19.995323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'd4ab8b88-cec5-11e4-a935-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "d4ab8b88-cec5-11e4-a935-705681abff85"], ["created_at", "2015-03-20 05:56:19.998668"], ["updated_at", "2015-03-20 05:56:19.998668"], ["token", "1lGhLmSz-7UNdQMNKvnUI5i2gQ5_UNPRGFY9DQy5MBk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd4ab0cc6-cec5-11e4-a4c5-705681abff85' LIMIT 1 [["organization_id", "d4ab8b88-cec5-11e4-a935-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$1yU16c5c2YGARMk698bAS.WdVrYyBWHur8Ro10l5wrgAE2/XlMfcW"], ["created_at", "2015-03-20 05:56:20.005776"], ["updated_at", "2015-03-20 05:56:20.005776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.009085"], ["updated_at", "2015-03-20 05:56:20.009085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4aeda5e-cec5-11e4-922b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4af5466-cec5-11e4-a6ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d4aeda5e-cec5-11e4-922b-705681abff85"], ["organization_id", "d4af5466-cec5-11e4-a6ee-705681abff85"], ["created_at", "2015-03-20 05:56:20.012629"], ["updated_at", "2015-03-20 05:56:20.012629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd4aeda5e-cec5-11e4-922b-705681abff85' LIMIT 1 [["organization_id", "d4af5466-cec5-11e4-a6ee-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.226558"], ["updated_at", "2015-03-20 05:56:20.226558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd4d085aa-cec5-11e4-a143-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d4d085aa-cec5-11e4-a143-705681abff85"], ["created_at", "2015-03-20 05:56:20.231421"], ["updated_at", "2015-03-20 05:56:20.231421"], ["token", "sPsbRd3qDuTNKV4K_vNMC9KIHVDmMUqs-laJo-nDwJs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.6ms) Clubhouse::Mailer#invitation: processed outbound mail in 30.5ms Sent mail to john@example.com (8.6ms) Date: Thu, 19 Mar 2015 22:56:20 -0700 From: from@example.com To: john@example.com Message-ID: <550bb684425e8_11573ffcd5065bf07687b@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/sPsbRd3qDuTNKV4K_vNMC9KIHVDmMUqs-laJo-nDwJs?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.280786"], ["updated_at", "2015-03-20 05:56:20.280786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd4d8d494-cec5-11e4-9f12-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d4d8d494-cec5-11e4-9f12-705681abff85"], ["created_at", "2015-03-20 05:56:20.285029"], ["updated_at", "2015-03-20 05:56:20.285029"], ["token", "xnJCryCJu7MNcPRohJyOUmrtoFkSOXNGRLSJc0BnOXI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (5.1ms) Date: Thu, 19 Mar 2015 22:56:20 -0700 From: from@example.com To: john@example.com Message-ID: <550bb68447801_11573ffcd5065bf07696e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/xnJCryCJu7MNcPRohJyOUmrtoFkSOXNGRLSJc0BnOXI?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.299933"], ["updated_at", "2015-03-20 05:56:20.299933"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd4dbbc86-cec5-11e4-9b6c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d4dbbc86-cec5-11e4-9b6c-705681abff85"], ["created_at", "2015-03-20 05:56:20.303935"], ["updated_at", "2015-03-20 05:56:20.303935"], ["token", "HmynOAYbsuuEbd1nqNXbpwxSKpIMwBzxYBxvEUeKo24"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Thu, 19 Mar 2015 22:56:20 -0700 From: from@example.com To: john@example.com Message-ID: <550bb6844b25a_11573ffcd5065bf0770b7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/HmynOAYbsuuEbd1nqNXbpwxSKpIMwBzxYBxvEUeKo24?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.313822"], ["updated_at", "2015-03-20 05:56:20.313822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'd4dddc8c-cec5-11e4-a9ef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "d4dddc8c-cec5-11e4-a9ef-705681abff85"], ["created_at", "2015-03-20 05:56:20.317889"], ["updated_at", "2015-03-20 05:56:20.317889"], ["token", "khfzUV6OdG04gXT4CK-mWLhVN7pgdF-VLbgHZIw6ZWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.5ms Sent mail to john@example.com (6.1ms) Date: Thu, 19 Mar 2015 22:56:20 -0700 From: from@example.com To: john@example.com Message-ID: <550bb6844ec13_11573ffcd5065bf077176@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/khfzUV6OdG04gXT4CK-mWLhVN7pgdF-VLbgHZIw6ZWs?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$xWZyoLecGSrJoKESK2c3aeG6hRbo7vCHK1YiSCtBXMZDTvieCW82a"], ["created_at", "2015-03-20 05:56:20.358443"], ["updated_at", "2015-03-20 05:56:20.358443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.364782"], ["updated_at", "2015-03-20 05:56:20.364782"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4e4ceca-cec5-11e4-9d11-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4e5a0a2-cec5-11e4-b5b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d4e4ceca-cec5-11e4-9d11-705681abff85"], ["organization_id", "d4e5a0a2-cec5-11e4-b5b5-705681abff85"], ["created_at", "2015-03-20 05:56:20.368576"], ["updated_at", "2015-03-20 05:56:20.368576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d4e4ceca-cec5-11e4-9d11-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d4e5a0a2-cec5-11e4-b5b5-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4e4ceca-cec5-11e4-9d11-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4e5a0a2-cec5-11e4-b5b5-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d4e5a0a2-cec5-11e4-b5b5-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4e4ceca-cec5-11e4-9d11-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4e5a0a2-cec5-11e4-b5b5-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$I2rsZBU8uikm2KDCjsMuceTG22k3aanRfZCS6wv1HmAyLGckuk.JG"], ["created_at", "2015-03-20 05:56:20.392738"], ["updated_at", "2015-03-20 05:56:20.392738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$35JUhmcw9Ax26WJDXSbXCu31fz3sY5UwYjoSb69Vhm1ZVMBF4dxEC"], ["created_at", "2015-03-20 05:56:20.396932"], ["updated_at", "2015-03-20 05:56:20.396932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.403988"], ["user_id", "d4e9e1bc-cec5-11e4-b1ed-705681abff85"], ["created_at", "2015-03-20 05:56:20.404955"], ["updated_at", "2015-03-20 05:56:20.404955"], ["token", "kFhckIw8pyZIQFGsWTZh6nvD7KROJxOAp5ZfJwqu60Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.409995"], ["updated_at", "2015-03-20 05:56:20.409995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4e9e1bc-cec5-11e4-b1ed-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4ec841c-cec5-11e4-ad82-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4e9e1bc-cec5-11e4-b1ed-705681abff85"], ["organization_id", "d4ec841c-cec5-11e4-ad82-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.413206"], ["updated_at", "2015-03-20 05:56:20.413206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4ea8284-cec5-11e4-b672-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4ec841c-cec5-11e4-ad82-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d4ea8284-cec5-11e4-b672-705681abff85"], ["organization_id", "d4ec841c-cec5-11e4-ad82-705681abff85"], ["created_at", "2015-03-20 05:56:20.416170"], ["updated_at", "2015-03-20 05:56:20.416170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$vXY/ni0m15mNuyqJQA9VEe8R5gp53ln7tQRgHw6VBmqZrqoMUi892"], ["created_at", "2015-03-20 05:56:20.448107"], ["updated_at", "2015-03-20 05:56:20.448107"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$91ppMoeegNh3pdXYSqoyWe.hC/ib4XBtqvisCorq9ZAQYuORS4yY6"], ["created_at", "2015-03-20 05:56:20.452984"], ["updated_at", "2015-03-20 05:56:20.452984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.454717"], ["user_id", "d4f255fe-cec5-11e4-b1a2-705681abff85"], ["created_at", "2015-03-20 05:56:20.455499"], ["updated_at", "2015-03-20 05:56:20.455499"], ["token", "eniUGp2iljUEFFkEqni8Ja_OEbx6cR3-Gv4JoXUGKmk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.458853"], ["updated_at", "2015-03-20 05:56:20.458853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4f255fe-cec5-11e4-b1a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4f3f4f4-cec5-11e4-ac39-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4f255fe-cec5-11e4-b1a2-705681abff85"], ["organization_id", "d4f3f4f4-cec5-11e4-ac39-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.461903"], ["updated_at", "2015-03-20 05:56:20.461903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4f31110-cec5-11e4-afca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4f3f4f4-cec5-11e4-ac39-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d4f31110-cec5-11e4-afca-705681abff85"], ["organization_id", "d4f3f4f4-cec5-11e4-ac39-705681abff85"], ["created_at", "2015-03-20 05:56:20.464718"], ["updated_at", "2015-03-20 05:56:20.464718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/d4f3f4f4-cec5-11e4-ac39-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"d4f3f4f4-cec5-11e4-ac39-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:20.469239' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eniUGp2iljUEFFkEqni8Ja_OEbx6cR3-Gv4JoXUGKmk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:20.472571"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:20.473722"], ["id", "d4f37a60-cec5-11e4-832b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d4f3f4f4-cec5-11e4-ac39-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d4f255fe-cec5-11e4-b1a2-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd4f255fe-cec5-11e4-b1a2-705681abff85' LIMIT 1 [["organization_id", "d4f3f4f4-cec5-11e4-ac39-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "d4f3f4f4-cec5-11e4-ac39-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d4f3f4f4-cec5-11e4-ac39-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d4f255fe-cec5-11e4-b1a2-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d4f3f4f4-cec5-11e4-ac39-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d4f31110-cec5-11e4-afca-705681abff85"]] Completed 200 OK in 23ms (Views: 9.6ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$bTli/NLEq21HSxWmu/m5e.aaJbDYdBDRaJ4EsTxL6Yp/o364WxIXG"], ["created_at", "2015-03-20 05:56:20.499710"], ["updated_at", "2015-03-20 05:56:20.499710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$v9c3NTxQH/KFwpu88u9fnOgKvVOGxguRLYdIz.jVNJ4KzLiLOZGOy"], ["created_at", "2015-03-20 05:56:20.504776"], ["updated_at", "2015-03-20 05:56:20.504776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.506528"], ["user_id", "d4fa34e0-cec5-11e4-8f29-705681abff85"], ["created_at", "2015-03-20 05:56:20.507296"], ["updated_at", "2015-03-20 05:56:20.507296"], ["token", "1EcCfDBfnuNxuDGoy3DpRkPRBWQQSYo_zLiNKFMGOIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.510626"], ["updated_at", "2015-03-20 05:56:20.510626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4fa34e0-cec5-11e4-8f29-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4fbdcfa-cec5-11e4-a7eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4fa34e0-cec5-11e4-8f29-705681abff85"], ["organization_id", "d4fbdcfa-cec5-11e4-a7eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.513846"], ["updated_at", "2015-03-20 05:56:20.513846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4faff56-cec5-11e4-aded-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd4fbdcfa-cec5-11e4-a7eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d4faff56-cec5-11e4-aded-705681abff85"], ["organization_id", "d4fbdcfa-cec5-11e4-a7eb-705681abff85"], ["created_at", "2015-03-20 05:56:20.517138"], ["updated_at", "2015-03-20 05:56:20.517138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$JxulARL92hZjfabHGmjXeOkhqXvJknJ5rlBVptWyeLqhHpU.at7L2"], ["created_at", "2015-03-20 05:56:20.521428"], ["updated_at", "2015-03-20 05:56:20.521428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.523390"], ["user_id", "d4fd8b22-cec5-11e4-a869-705681abff85"], ["created_at", "2015-03-20 05:56:20.524934"], ["updated_at", "2015-03-20 05:56:20.524934"], ["token", "gRoFFTLvqsT8M1jt_c9TbAUf3GicFGO5YgKLIA3D5OU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'd4fbdcfa-cec5-11e4-a7eb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "d4fbdcfa-cec5-11e4-a7eb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.529584"], ["updated_at", "2015-03-20 05:56:20.529584"], ["token", "3SJ9T-6JBcNW6U1bhWZXZ2eV5Psb8o1W-tbbcIPhbgA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$GmIgd6x9LRQVWpTU2fHymeKQEqSRTF2bvgVS8zGTSco7ECa7zNH7W"], ["created_at", "2015-03-20 05:56:20.540491"], ["updated_at", "2015-03-20 05:56:20.540491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$vBDPBKYPkWHkHmrNip6X4OBKG5KDB2B4RPJbv9h2HAckKHtoDreum"], ["created_at", "2015-03-20 05:56:20.544718"], ["updated_at", "2015-03-20 05:56:20.544718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.546178"], ["user_id", "d5006df6-cec5-11e4-8d70-705681abff85"], ["created_at", "2015-03-20 05:56:20.546975"], ["updated_at", "2015-03-20 05:56:20.546975"], ["token", "1R6HdNfqjeA3VyqTENuHBZqH9HgdW8y1fmnCE3C6T0Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.550729"], ["updated_at", "2015-03-20 05:56:20.550729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5006df6-cec5-11e4-8d70-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd501fa7c-cec5-11e4-be54-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5006df6-cec5-11e4-8d70-705681abff85"], ["organization_id", "d501fa7c-cec5-11e4-be54-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.553870"], ["updated_at", "2015-03-20 05:56:20.553870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5010f86-cec5-11e4-8ac3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd501fa7c-cec5-11e4-be54-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5010f86-cec5-11e4-8ac3-705681abff85"], ["organization_id", "d501fa7c-cec5-11e4-be54-705681abff85"], ["created_at", "2015-03-20 05:56:20.557303"], ["updated_at", "2015-03-20 05:56:20.557303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$YOWpkaLJ/WyBnNfhXQ3Jeu/oeMbREZiKviEBr/Lg26/v7/ZFK0y4C"], ["created_at", "2015-03-20 05:56:20.563278"], ["updated_at", "2015-03-20 05:56:20.563278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.567097"], ["user_id", "d5040754-cec5-11e4-b51a-705681abff85"], ["created_at", "2015-03-20 05:56:20.568650"], ["updated_at", "2015-03-20 05:56:20.568650"], ["token", "aO2J3O__Wh_DsCcmrxg1Q4f9_jHTvJyMrtwM3wXpFJU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'd501fa7c-cec5-11e4-be54-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "d501fa7c-cec5-11e4-be54-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.573196"], ["updated_at", "2015-03-20 05:56:20.573196"], ["token", "EWrqEOriFft5Or_HILO5VTQ8mGY5XcCsQLQTXdbluz8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/d501fa7c-cec5-11e4-be54-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"EWrqEOriFft5Or_HILO5VTQ8mGY5XcCsQLQTXdbluz8", "organization_id"=>"d501fa7c-cec5-11e4-be54-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:20.578040' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aO2J3O__Wh_DsCcmrxg1Q4f9_jHTvJyMrtwM3wXpFJU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:20.579566"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:20.580595"], ["id", "d504c414-cec5-11e4-b8eb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d501fa7c-cec5-11e4-be54-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5040754-cec5-11e4-b51a-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "EWrqEOriFft5Or_HILO5VTQ8mGY5XcCsQLQTXdbluz8"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d501fa7c-cec5-11e4-be54-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5040754-cec5-11e4-b51a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd501fa7c-cec5-11e4-be54-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "d501fa7c-cec5-11e4-be54-705681abff85"], ["member_id", "d5040754-cec5-11e4-b51a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.590271"], ["updated_at", "2015-03-20 05:56:20.590271"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "d5057102-cec5-11e4-b266-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 1.0ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$n8oR/zigrfbU064e7KTyR.duPU1diGKOBHZTrYzqSJ0wDrFgNgWeS"], ["created_at", "2015-03-20 05:56:20.600300"], ["updated_at", "2015-03-20 05:56:20.600300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$YH1apfvyaxP1/guqmLvBvupnMRIb0sA7sLPUkfSfgmbnYciqtPq2q"], ["created_at", "2015-03-20 05:56:20.604530"], ["updated_at", "2015-03-20 05:56:20.604530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.606082"], ["user_id", "d5098e40-cec5-11e4-898b-705681abff85"], ["created_at", "2015-03-20 05:56:20.606887"], ["updated_at", "2015-03-20 05:56:20.606887"], ["token", "ywYwiDViAN8LMtE-FAPeVNOBdAgMurGJ-LOmbvH0ytU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.610477"], ["updated_at", "2015-03-20 05:56:20.610477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5098e40-cec5-11e4-898b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd50b17e2-cec5-11e4-a475-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5098e40-cec5-11e4-898b-705681abff85"], ["organization_id", "d50b17e2-cec5-11e4-a475-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.614041"], ["updated_at", "2015-03-20 05:56:20.614041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd50a2f9e-cec5-11e4-a6fa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd50b17e2-cec5-11e4-a475-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d50a2f9e-cec5-11e4-a6fa-705681abff85"], ["organization_id", "d50b17e2-cec5-11e4-a475-705681abff85"], ["created_at", "2015-03-20 05:56:20.617094"], ["updated_at", "2015-03-20 05:56:20.617094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$MoMWwbUfPJduUhFeF5yB7eaSr0ixZ0EvpryDQw9OoM7wsPoaauf5W"], ["created_at", "2015-03-20 05:56:20.621540"], ["updated_at", "2015-03-20 05:56:20.621540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.623067"], ["user_id", "d50cc9d4-cec5-11e4-a617-705681abff85"], ["created_at", "2015-03-20 05:56:20.623855"], ["updated_at", "2015-03-20 05:56:20.623855"], ["token", "4i6FmhX-v-vF1AzpCSEjLVxM3j3jRjXEXNJzbzvvNko"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'd50b17e2-cec5-11e4-a475-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "d50b17e2-cec5-11e4-a475-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.629659"], ["updated_at", "2015-03-20 05:56:20.629659"], ["token", "mClyyzHq4mSShMsADllPMhY1isoEu-93v9gQCSfUF6k"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/d50b17e2-cec5-11e4-a475-705681abff85/memberships" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"d50b17e2-cec5-11e4-a475-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:20.636682' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4i6FmhX-v-vF1AzpCSEjLVxM3j3jRjXEXNJzbzvvNko"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:20.638062"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:20.638982"], ["id", "d50d2e2e-cec5-11e4-b7d0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d50b17e2-cec5-11e4-a475-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d50cc9d4-cec5-11e4-a617-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$Ck0.avLs8TYcd9lbIjgHbO9bPHhHXsZfvVWhdkAtvmwwYXij5rhjq"], ["created_at", "2015-03-20 05:56:20.650538"], ["updated_at", "2015-03-20 05:56:20.650538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$aO0PtrP4y5Rq4FUvbGb4NO0G1ApohF2ejMTGOOm4gzvfvkUCo0gyq"], ["created_at", "2015-03-20 05:56:20.655849"], ["updated_at", "2015-03-20 05:56:20.655849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.658063"], ["user_id", "d5113a82-cec5-11e4-9704-705681abff85"], ["created_at", "2015-03-20 05:56:20.659176"], ["updated_at", "2015-03-20 05:56:20.659176"], ["token", "aCAqX6A1mQPHfcLB4MspbHgjqCmLUv4jdILAgf8NWcY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.662707"], ["updated_at", "2015-03-20 05:56:20.662707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5113a82-cec5-11e4-9704-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5131398-cec5-11e4-b819-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5113a82-cec5-11e4-9704-705681abff85"], ["organization_id", "d5131398-cec5-11e4-b819-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.666197"], ["updated_at", "2015-03-20 05:56:20.666197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5121bf0-cec5-11e4-9b94-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5131398-cec5-11e4-b819-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5121bf0-cec5-11e4-9b94-705681abff85"], ["organization_id", "d5131398-cec5-11e4-b819-705681abff85"], ["created_at", "2015-03-20 05:56:20.670366"], ["updated_at", "2015-03-20 05:56:20.670366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$bZgIeCTb4DKwttkFKplFpev0N31.Rof8BtzbEa..vPfF5f4yE/Yai"], ["created_at", "2015-03-20 05:56:20.681083"], ["updated_at", "2015-03-20 05:56:20.681083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$L2h4.f870qlnAmVkltFJguZMa2yOAVzv8qn6zeul1mcLAKYpmvKI."], ["created_at", "2015-03-20 05:56:20.685608"], ["updated_at", "2015-03-20 05:56:20.685608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.687041"], ["user_id", "d515ea46-cec5-11e4-99ba-705681abff85"], ["created_at", "2015-03-20 05:56:20.687782"], ["updated_at", "2015-03-20 05:56:20.687782"], ["token", "aODg2JkH84cWWj38dZ60Ip7jMilXvmGkrFCT5FFUNNA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.691337"], ["updated_at", "2015-03-20 05:56:20.691337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd515ea46-cec5-11e4-99ba-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd517723a-cec5-11e4-aca9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d515ea46-cec5-11e4-99ba-705681abff85"], ["organization_id", "d517723a-cec5-11e4-aca9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.694860"], ["updated_at", "2015-03-20 05:56:20.694860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5168e42-cec5-11e4-8af5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd517723a-cec5-11e4-aca9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5168e42-cec5-11e4-8af5-705681abff85"], ["organization_id", "d517723a-cec5-11e4-aca9-705681abff85"], ["created_at", "2015-03-20 05:56:20.697835"], ["updated_at", "2015-03-20 05:56:20.697835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/d517f8ae-cec5-11e4-a09a-705681abff85" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"d517f8ae-cec5-11e4-a09a-705681abff85", "membership"=>{}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:20.703493' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aODg2JkH84cWWj38dZ60Ip7jMilXvmGkrFCT5FFUNNA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:20.706934"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:20.709694"], ["id", "d516ebee-cec5-11e4-b077-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "d517f8ae-cec5-11e4-a09a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d515ea46-cec5-11e4-99ba-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d517723a-cec5-11e4-aca9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd515ea46-cec5-11e4-99ba-705681abff85' LIMIT 1 [["organization_id", "d517723a-cec5-11e4-aca9-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d515ea46-cec5-11e4-99ba-705681abff85"]] Completed 200 OK in 16ms (Views: 1.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$y8JLY8EyrQXmz5/vHyV2AO98.xsSuI35MmnONaidjddb/B0OQqcYq"], ["created_at", "2015-03-20 05:56:20.725314"], ["updated_at", "2015-03-20 05:56:20.725314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$OdhBzrRK214XnX29DgbXgOI7xBj.Nqmz9CdtldG71ZBv6/sNFeuP2"], ["created_at", "2015-03-20 05:56:20.731455"], ["updated_at", "2015-03-20 05:56:20.731455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.733105"], ["user_id", "d51cb6c8-cec5-11e4-865b-705681abff85"], ["created_at", "2015-03-20 05:56:20.733877"], ["updated_at", "2015-03-20 05:56:20.733877"], ["token", "oVGM3-ppGSxZ1eMyzBdMp-4Zxbrp6xECJD7SzpNDmX0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.737515"], ["updated_at", "2015-03-20 05:56:20.737515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd51cb6c8-cec5-11e4-865b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd51e7a44-cec5-11e4-b445-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d51cb6c8-cec5-11e4-865b-705681abff85"], ["organization_id", "d51e7a44-cec5-11e4-b445-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.740583"], ["updated_at", "2015-03-20 05:56:20.740583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd51d92aa-cec5-11e4-988e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd51e7a44-cec5-11e4-b445-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d51d92aa-cec5-11e4-988e-705681abff85"], ["organization_id", "d51e7a44-cec5-11e4-b445-705681abff85"], ["created_at", "2015-03-20 05:56:20.744199"], ["updated_at", "2015-03-20 05:56:20.744199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$OftNbUDIgtShnMkRnBn8Pua6ppPVanzavNPZA57upDq9TuunXYxni"], ["created_at", "2015-03-20 05:56:20.753590"], ["updated_at", "2015-03-20 05:56:20.753590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$X0AMQVo.LP3mIsgIwVIyMOvt/JwWq6deLOUL2O803p0xjYBBWjENO"], ["created_at", "2015-03-20 05:56:20.758475"], ["updated_at", "2015-03-20 05:56:20.758475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.760335"], ["user_id", "d520f49a-cec5-11e4-b689-705681abff85"], ["created_at", "2015-03-20 05:56:20.761123"], ["updated_at", "2015-03-20 05:56:20.761123"], ["token", "juz31gYjo-tpTijNYcE2Tmo-d8JP83Z2FwdBX2j9aQU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.765216"], ["updated_at", "2015-03-20 05:56:20.765216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd520f49a-cec5-11e4-b689-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd522b780-cec5-11e4-9191-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d520f49a-cec5-11e4-b689-705681abff85"], ["organization_id", "d522b780-cec5-11e4-9191-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.768471"], ["updated_at", "2015-03-20 05:56:20.768471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd521b844-cec5-11e4-b04a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd522b780-cec5-11e4-9191-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d521b844-cec5-11e4-b04a-705681abff85"], ["organization_id", "d522b780-cec5-11e4-9191-705681abff85"], ["created_at", "2015-03-20 05:56:20.771273"], ["updated_at", "2015-03-20 05:56:20.771273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/d5239efc-cec5-11e4-9b53-705681abff85" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"d5239efc-cec5-11e4-9b53-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:20.775776' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "juz31gYjo-tpTijNYcE2Tmo-d8JP83Z2FwdBX2j9aQU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:20.777346"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:20.778246"], ["id", "d5221bf4-cec5-11e4-8578-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "d5239efc-cec5-11e4-9b53-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d520f49a-cec5-11e4-b689-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d522b780-cec5-11e4-9191-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd520f49a-cec5-11e4-b689-705681abff85' LIMIT 1 [["organization_id", "d522b780-cec5-11e4-9191-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d521b844-cec5-11e4-b04a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "d5239efc-cec5-11e4-9b53-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$C.XD4Cg5Z0I/TZTnOX37uus4hk7LvJUuLx1n7ThOyuaeo5Efx3shq"], ["created_at", "2015-03-20 05:56:20.789718"], ["updated_at", "2015-03-20 05:56:20.789718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$W0C4WJCNrD4EJRR2HVhCwuskM0uHilGCevD.VVa4vqI78fNKf9pSi"], ["created_at", "2015-03-20 05:56:20.794414"], ["updated_at", "2015-03-20 05:56:20.794414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.795941"], ["user_id", "d52673fc-cec5-11e4-a4a8-705681abff85"], ["created_at", "2015-03-20 05:56:20.796836"], ["updated_at", "2015-03-20 05:56:20.796836"], ["token", "3CqJwRRl9WCN3o5vSLzrdsSFObOsQ00xvnr4WDi3Kc8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.800182"], ["updated_at", "2015-03-20 05:56:20.800182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd52673fc-cec5-11e4-a4a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd52809b0-cec5-11e4-bd96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d52673fc-cec5-11e4-a4a8-705681abff85"], ["organization_id", "d52809b0-cec5-11e4-bd96-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.803257"], ["updated_at", "2015-03-20 05:56:20.803257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5272ab8-cec5-11e4-89ef-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd52809b0-cec5-11e4-bd96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5272ab8-cec5-11e4-89ef-705681abff85"], ["organization_id", "d52809b0-cec5-11e4-bd96-705681abff85"], ["created_at", "2015-03-20 05:56:20.806194"], ["updated_at", "2015-03-20 05:56:20.806194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$TdUmvxjK6ePEuvdBu6j0reFhhznnTUdY7vTltqgPqlKGDn1jf7HEO"], ["created_at", "2015-03-20 05:56:20.810580"], ["updated_at", "2015-03-20 05:56:20.810580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.812021"], ["user_id", "d529a068-cec5-11e4-9023-705681abff85"], ["created_at", "2015-03-20 05:56:20.812814"], ["updated_at", "2015-03-20 05:56:20.812814"], ["token", "cVvmHgTW-GGKEolAE2aZuSwtLXVO4WdtrXEmOYNNy4Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'd52809b0-cec5-11e4-bd96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "d52809b0-cec5-11e4-bd96-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.816846"], ["updated_at", "2015-03-20 05:56:20.816846"], ["token", "J6uoJjpADjEu-L4FOBunn91sgM9NJEOhX6q8YXeedJE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$c.eRIyDjnTIyR.wx/oZEJ.Ju/cwgfzW8wAJCh0sTr5ddfb7eoWBr2"], ["created_at", "2015-03-20 05:56:20.828567"], ["updated_at", "2015-03-20 05:56:20.828567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$I6gYApBP7t2Xi5JTFcVV.OJGCsGgcje39qTKxV4eeCrcRdwMddXsy"], ["created_at", "2015-03-20 05:56:20.833269"], ["updated_at", "2015-03-20 05:56:20.833269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.834791"], ["user_id", "d52c6640-cec5-11e4-b7d6-705681abff85"], ["created_at", "2015-03-20 05:56:20.835567"], ["updated_at", "2015-03-20 05:56:20.835567"], ["token", "FAyFAgC5DkFlPjIiW9Tsnsa6aptOFt5tHVNEnn0tMdE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.838768"], ["updated_at", "2015-03-20 05:56:20.838768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd52c6640-cec5-11e4-b7d6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd52df08c-cec5-11e4-af8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d52c6640-cec5-11e4-b7d6-705681abff85"], ["organization_id", "d52df08c-cec5-11e4-af8f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.842021"], ["updated_at", "2015-03-20 05:56:20.842021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd52d18ec-cec5-11e4-b0ea-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd52df08c-cec5-11e4-af8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d52d18ec-cec5-11e4-b0ea-705681abff85"], ["organization_id", "d52df08c-cec5-11e4-af8f-705681abff85"], ["created_at", "2015-03-20 05:56:20.844924"], ["updated_at", "2015-03-20 05:56:20.844924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$TEr.Uw8h.cbfYPjTFraxa.U2ufOQNAtB89vn1cLnkLdb2LSQqoOte"], ["created_at", "2015-03-20 05:56:20.849135"], ["updated_at", "2015-03-20 05:56:20.849135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.850602"], ["user_id", "d52f832a-cec5-11e4-aeb2-705681abff85"], ["created_at", "2015-03-20 05:56:20.851346"], ["updated_at", "2015-03-20 05:56:20.851346"], ["token", "RyYE3IJ7tMV6KcjwIC4ke5xqmxSt3sINPQp1-NzDYCI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'd52df08c-cec5-11e4-af8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "d52df08c-cec5-11e4-af8f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.854811"], ["updated_at", "2015-03-20 05:56:20.854811"], ["token", "_icZJoSZLDn_Xmodh-t-TbBFDS6p6CdUnEEufJiu_Hs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"_icZJoSZLDn_Xmodh-t-TbBFDS6p6CdUnEEufJiu_Hs", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:20.860079' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RyYE3IJ7tMV6KcjwIC4ke5xqmxSt3sINPQp1-NzDYCI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:20.861804"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:20.862755"], ["id", "d52fdf1e-cec5-11e4-998d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d52f832a-cec5-11e4-aeb2-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "_icZJoSZLDn_Xmodh-t-TbBFDS6p6CdUnEEufJiu_Hs"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d52df08c-cec5-11e4-af8f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd52f832a-cec5-11e4-aeb2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd52df08c-cec5-11e4-af8f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "d52df08c-cec5-11e4-af8f-705681abff85"], ["member_id", "d52f832a-cec5-11e4-aeb2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.869678"], ["updated_at", "2015-03-20 05:56:20.869678"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "d5306498-cec5-11e4-b0f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.1ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$hkQ08RRKwjlBbSTN7lg4L.FrcbblJcAof9oI3f/kJKAvSPNlOr95y"], ["created_at", "2015-03-20 05:56:20.879689"], ["updated_at", "2015-03-20 05:56:20.879689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$gPU4cX5Tomr5rn3vox.AZ.OUnxkvY7miXAGcTry/h.5fqXxiZVGZq"], ["created_at", "2015-03-20 05:56:20.883845"], ["updated_at", "2015-03-20 05:56:20.883845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.885302"], ["user_id", "d5342e5c-cec5-11e4-b456-705681abff85"], ["created_at", "2015-03-20 05:56:20.886056"], ["updated_at", "2015-03-20 05:56:20.886056"], ["token", "ZnIJuVsAqfxVN7eTkFkDEpA1PgTPkDa03MUZzNpsa50"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.889340"], ["updated_at", "2015-03-20 05:56:20.889340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5342e5c-cec5-11e4-b456-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd535a48a-cec5-11e4-bf0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5342e5c-cec5-11e4-b456-705681abff85"], ["organization_id", "d535a48a-cec5-11e4-bf0e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.892698"], ["updated_at", "2015-03-20 05:56:20.892698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd534ce66-cec5-11e4-9bad-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd535a48a-cec5-11e4-bf0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d534ce66-cec5-11e4-9bad-705681abff85"], ["organization_id", "d535a48a-cec5-11e4-bf0e-705681abff85"], ["created_at", "2015-03-20 05:56:20.895688"], ["updated_at", "2015-03-20 05:56:20.895688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$I4Vpk7AvnTFtmRjU.dDGDuC2dk87ZJLW3YNal.Oay7nAjdKBaApd2"], ["created_at", "2015-03-20 05:56:20.899807"], ["updated_at", "2015-03-20 05:56:20.899807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.901238"], ["user_id", "d5373db8-cec5-11e4-910d-705681abff85"], ["created_at", "2015-03-20 05:56:20.901998"], ["updated_at", "2015-03-20 05:56:20.901998"], ["token", "s0y-ZKSqeMj61FUXz2l-TJGuw7Qm38I_eZA6FXh2qFE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'd535a48a-cec5-11e4-bf0e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "d535a48a-cec5-11e4-bf0e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.905414"], ["updated_at", "2015-03-20 05:56:20.905414"], ["token", "JRKiIl7EUMgxrzGoGSwWtFhycLvP7x5m5WdrEJg49NU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:20.911077' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "s0y-ZKSqeMj61FUXz2l-TJGuw7Qm38I_eZA6FXh2qFE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:20.912727"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:20.913739"], ["id", "d53798da-cec5-11e4-8998-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5373db8-cec5-11e4-910d-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$VoCJoc2pvjcEZ9NLbLLoOu7so4LjHrI2pb8dcxHLj25xIxzOv8uyS"], ["created_at", "2015-03-20 05:56:20.923834"], ["updated_at", "2015-03-20 05:56:20.923834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$g7XJqkcbRCupxTyMblcs4OUDk2hv8jIwG4ZPRnU4QwDO0wOTPpRj."], ["created_at", "2015-03-20 05:56:20.928144"], ["updated_at", "2015-03-20 05:56:20.928144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.929686"], ["user_id", "d53aea94-cec5-11e4-9c5f-705681abff85"], ["created_at", "2015-03-20 05:56:20.930450"], ["updated_at", "2015-03-20 05:56:20.930450"], ["token", "TFC6EJOO_2Ywy6epcCeM7IdZ0SyJ7IcwfwYv_3mhx6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.933681"], ["updated_at", "2015-03-20 05:56:20.933681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd53aea94-cec5-11e4-9c5f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd53c67fc-cec5-11e4-a045-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d53aea94-cec5-11e4-9c5f-705681abff85"], ["organization_id", "d53c67fc-cec5-11e4-a045-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.936836"], ["updated_at", "2015-03-20 05:56:20.936836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd53b93cc-cec5-11e4-9128-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd53c67fc-cec5-11e4-a045-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d53b93cc-cec5-11e4-9128-705681abff85"], ["organization_id", "d53c67fc-cec5-11e4-a045-705681abff85"], ["created_at", "2015-03-20 05:56:20.939807"], ["updated_at", "2015-03-20 05:56:20.939807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$G/YI21.scGX/hxl32lm5AOt3XDMpGWi7fNE3FNgvLB21N7EYacYYe"], ["created_at", "2015-03-20 05:56:20.949581"], ["updated_at", "2015-03-20 05:56:20.949581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$YdoIZAfuySoQ4WKndf6F4OU4EF5KTptC26o3kpBHjjoh97QQBPOUu"], ["created_at", "2015-03-20 05:56:20.953658"], ["updated_at", "2015-03-20 05:56:20.953658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.955193"], ["user_id", "d53ed974-cec5-11e4-bbf3-705681abff85"], ["created_at", "2015-03-20 05:56:20.956114"], ["updated_at", "2015-03-20 05:56:20.956114"], ["token", "rRRmZ3Cfd_zaCuWALb4fRuSo0NyT8DQvyc48FClx8Yg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.959651"], ["updated_at", "2015-03-20 05:56:20.959651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd53ed974-cec5-11e4-bbf3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5405f06-cec5-11e4-8458-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d53ed974-cec5-11e4-bbf3-705681abff85"], ["organization_id", "d5405f06-cec5-11e4-8458-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:20.962864"], ["updated_at", "2015-03-20 05:56:20.962864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd53f741a-cec5-11e4-9634-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5405f06-cec5-11e4-8458-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d53f741a-cec5-11e4-9634-705681abff85"], ["organization_id", "d5405f06-cec5-11e4-8458-705681abff85"], ["created_at", "2015-03-20 05:56:20.965844"], ["updated_at", "2015-03-20 05:56:20.965844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-19 22:56:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:20.970197' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rRRmZ3Cfd_zaCuWALb4fRuSo0NyT8DQvyc48FClx8Yg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:20.971580"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:20.972566"], ["id", "d53fe03a-cec5-11e4-b3ec-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d53ed974-cec5-11e4-bbf3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd53ed974-cec5-11e4-bbf3-705681abff85' LIMIT 1 [["organization_id", "d5405f06-cec5-11e4-8458-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "d5405f06-cec5-11e4-8458-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d5405f06-cec5-11e4-8458-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d53ed974-cec5-11e4-bbf3-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d5405f06-cec5-11e4-8458-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d53f741a-cec5-11e4-9634-705681abff85"]] Completed 200 OK in 11ms (Views: 3.7ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$MrnTy9n3GoksFx2mcQXD4uQbFZByifuvnpYW.lMmOtPFcLcQtL8n2"], ["created_at", "2015-03-20 05:56:20.989248"], ["updated_at", "2015-03-20 05:56:20.989248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$hkkiOH0WIfE6bqnqGo9sWutWhmMf4EFIFtMlnfVy8WDiJY0PSLQSW"], ["created_at", "2015-03-20 05:56:20.993521"], ["updated_at", "2015-03-20 05:56:20.993521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:20.994964"], ["user_id", "d544e7ba-cec5-11e4-8542-705681abff85"], ["created_at", "2015-03-20 05:56:20.995713"], ["updated_at", "2015-03-20 05:56:20.995713"], ["token", "cSNFAEfeH_BTkP36g9_22LeNITO3mE6CcdKsfWJ03LY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:20.999489"], ["updated_at", "2015-03-20 05:56:20.999489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd544e7ba-cec5-11e4-8542-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5467a12-cec5-11e4-9c03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d544e7ba-cec5-11e4-8542-705681abff85"], ["organization_id", "d5467a12-cec5-11e4-9c03-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.003109"], ["updated_at", "2015-03-20 05:56:21.003109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd54589ae-cec5-11e4-a200-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5467a12-cec5-11e4-9c03-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d54589ae-cec5-11e4-a200-705681abff85"], ["organization_id", "d5467a12-cec5-11e4-9c03-705681abff85"], ["created_at", "2015-03-20 05:56:21.006056"], ["updated_at", "2015-03-20 05:56:21.006056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$2PwQ/OTGmWmPjy5sI/p4ae0rmeDsZxu4LBa95vSJAzYMt3fPQsIny"], ["created_at", "2015-03-20 05:56:21.015860"], ["updated_at", "2015-03-20 05:56:21.015860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$j3eMctyDO9KKB3n9pbhBBefqOYjx3HRTwPwvSKwWu/6sQcLUe3eo6"], ["created_at", "2015-03-20 05:56:21.020810"], ["updated_at", "2015-03-20 05:56:21.020810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.022803"], ["user_id", "d548f5e4-cec5-11e4-9aa9-705681abff85"], ["created_at", "2015-03-20 05:56:21.023986"], ["updated_at", "2015-03-20 05:56:21.023986"], ["token", "__ln10QMeTtbERA6I15XPcxOJC2rxxNBIzdjKrBDmr0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.027337"], ["updated_at", "2015-03-20 05:56:21.027337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd548f5e4-cec5-11e4-9aa9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd54ab460-cec5-11e4-baa3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d548f5e4-cec5-11e4-9aa9-705681abff85"], ["organization_id", "d54ab460-cec5-11e4-baa3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.030483"], ["updated_at", "2015-03-20 05:56:21.030483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd549b84e-cec5-11e4-8e22-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd54ab460-cec5-11e4-baa3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d549b84e-cec5-11e4-8e22-705681abff85"], ["organization_id", "d54ab460-cec5-11e4-baa3-705681abff85"], ["created_at", "2015-03-20 05:56:21.033466"], ["updated_at", "2015-03-20 05:56:21.033466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/d54ba280-cec5-11e4-87aa-705681abff85" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"d54ba280-cec5-11e4-87aa-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.037802' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "__ln10QMeTtbERA6I15XPcxOJC2rxxNBIzdjKrBDmr0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.039798"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.040790"], ["id", "d54a38f0-cec5-11e4-a02d-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "d54ba280-cec5-11e4-87aa-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d548f5e4-cec5-11e4-9aa9-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d54ab460-cec5-11e4-baa3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd548f5e4-cec5-11e4-9aa9-705681abff85' LIMIT 1 [["organization_id", "d54ab460-cec5-11e4-baa3-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d549b84e-cec5-11e4-8e22-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd549b84e-cec5-11e4-8e22-705681abff85' AND "clubhouse_memberships"."id" != 'd54ba280-cec5-11e4-87aa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd54ab460-cec5-11e4-baa3-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:56:21.048974"], ["id", "d54ba280-cec5-11e4-87aa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$TmWrAaK5ZBGetWyTpV7s2uRXPBAC9yW0j5/4.kWjY43CVJhc7vDie"], ["created_at", "2015-03-20 05:56:21.057274"], ["updated_at", "2015-03-20 05:56:21.057274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.058878"], ["user_id", "d54f482c-cec5-11e4-a829-705681abff85"], ["created_at", "2015-03-20 05:56:21.059648"], ["updated_at", "2015-03-20 05:56:21.059648"], ["token", "ghcgbSbxH8ZQoGMANMmRbRM0hikVXgezIPnhIl1KJxc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.063268"], ["updated_at", "2015-03-20 05:56:21.063268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd54f482c-cec5-11e4-a829-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5502f1c-cec5-11e4-8666-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d54f482c-cec5-11e4-a829-705681abff85"], ["organization_id", "d5502f1c-cec5-11e4-8666-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.066484"], ["updated_at", "2015-03-20 05:56:21.066484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'd5502f1c-cec5-11e4-8666-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "d5502f1c-cec5-11e4-8666-705681abff85"], ["created_at", "2015-03-20 05:56:21.069779"], ["updated_at", "2015-03-20 05:56:21.069779"], ["token", "Qk8SMRW2_MnjdzZ-rzDeEoEujZJdFtBrep7eGOpw5X0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$LjAU14weYKQeY8SysLfjoeYmJ8hV4IZyNLddvmQuDtRCCl802L1H2"], ["created_at", "2015-03-20 05:56:21.074237"], ["updated_at", "2015-03-20 05:56:21.074237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.077386"], ["updated_at", "2015-03-20 05:56:21.077386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd551de5c-cec5-11e4-9685-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd55255ee-cec5-11e4-9d2b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d551de5c-cec5-11e4-9685-705681abff85"], ["organization_id", "d55255ee-cec5-11e4-9d2b-705681abff85"], ["created_at", "2015-03-20 05:56:21.080382"], ["updated_at", "2015-03-20 05:56:21.080382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$pnYZNfzVzhOZnefQy5IzkOywLe1N0gypTozokMgQITu5ArSfxGQeq"], ["created_at", "2015-03-20 05:56:21.098548"], ["updated_at", "2015-03-20 05:56:21.098548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.100138"], ["user_id", "d55594c0-cec5-11e4-b838-705681abff85"], ["created_at", "2015-03-20 05:56:21.100903"], ["updated_at", "2015-03-20 05:56:21.100903"], ["token", "ZX0brztF3F9fxkIeh7lbvccTdClumAxjkzVBmm5_Oc0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.104126"], ["updated_at", "2015-03-20 05:56:21.104126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd55594c0-cec5-11e4-b838-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd55669fe-cec5-11e4-8bf6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d55594c0-cec5-11e4-b838-705681abff85"], ["organization_id", "d55669fe-cec5-11e4-8bf6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.108845"], ["updated_at", "2015-03-20 05:56:21.108845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = 'd55669fe-cec5-11e4-8bf6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "d55669fe-cec5-11e4-8bf6-705681abff85"], ["created_at", "2015-03-20 05:56:21.112999"], ["updated_at", "2015-03-20 05:56:21.112999"], ["token", "axHMZkqD_Z5LWt2EFnOYRIpoeVhRCCD1O9z-rLztRGo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$Mn2mjbfXdzcn9wVw4R1/5.hwrXTDLxdEzpkcWWZrfOvBiKhHOO942"], ["created_at", "2015-03-20 05:56:21.117498"], ["updated_at", "2015-03-20 05:56:21.117498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.120625"], ["updated_at", "2015-03-20 05:56:21.120625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd55877d0-cec5-11e4-88b5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd558ef26-cec5-11e4-8625-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d55877d0-cec5-11e4-88b5-705681abff85"], ["organization_id", "d558ef26-cec5-11e4-8625-705681abff85"], ["created_at", "2015-03-20 05:56:21.124036"], ["updated_at", "2015-03-20 05:56:21.124036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/d55669fe-cec5-11e4-8bf6-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"d55669fe-cec5-11e4-8bf6-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.129485' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZX0brztF3F9fxkIeh7lbvccTdClumAxjkzVBmm5_Oc0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.131030"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.131980"], ["id", "d555f4e2-cec5-11e4-827b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d55669fe-cec5-11e4-8bf6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d55594c0-cec5-11e4-b838-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd55594c0-cec5-11e4-b838-705681abff85' LIMIT 1 [["organization_id", "d55669fe-cec5-11e4-8bf6-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "d55669fe-cec5-11e4-8bf6-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d55669fe-cec5-11e4-8bf6-705681abff85"]] Completed 200 OK in 12ms (Views: 3.6ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$dC5KHJpKx1e.EfQtL3Fqfuw2Ti.3sA8FzfBzUlc2gcBu5bzYUD5Rq"], ["created_at", "2015-03-20 05:56:21.147476"], ["updated_at", "2015-03-20 05:56:21.147476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.149028"], ["user_id", "d55d0a8e-cec5-11e4-968a-705681abff85"], ["created_at", "2015-03-20 05:56:21.149872"], ["updated_at", "2015-03-20 05:56:21.149872"], ["token", "eXcYxeR1lfNwgSGahBLNh_8kqeBd0oxesz5M86NYmWk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.153088"], ["updated_at", "2015-03-20 05:56:21.153088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd55d0a8e-cec5-11e4-968a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd55de350-cec5-11e4-8ad2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d55d0a8e-cec5-11e4-968a-705681abff85"], ["organization_id", "d55de350-cec5-11e4-8ad2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.156262"], ["updated_at", "2015-03-20 05:56:21.156262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'd55de350-cec5-11e4-8ad2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "d55de350-cec5-11e4-8ad2-705681abff85"], ["created_at", "2015-03-20 05:56:21.159542"], ["updated_at", "2015-03-20 05:56:21.159542"], ["token", "5aLvDPg4i_mkHFRmYkB_yLB9zmWoh5hwwJ7_MFNwTkg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$iYX8I7d6ZNiII4PuvNZYmeDcsgcX8IS0CDMJVmlaob9l.nPGRVy/m"], ["created_at", "2015-03-20 05:56:21.170238"], ["updated_at", "2015-03-20 05:56:21.170238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.171870"], ["user_id", "d5608650-cec5-11e4-8375-705681abff85"], ["created_at", "2015-03-20 05:56:21.172634"], ["updated_at", "2015-03-20 05:56:21.172634"], ["token", "J1za-OhMuQi7FKDHzJIE_W6-_V-DD1sBjzwj4S6Ruxo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.176067"], ["updated_at", "2015-03-20 05:56:21.176067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5608650-cec5-11e4-8375-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd561666a-cec5-11e4-9ae4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5608650-cec5-11e4-8375-705681abff85"], ["organization_id", "d561666a-cec5-11e4-9ae4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.180221"], ["updated_at", "2015-03-20 05:56:21.180221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = 'd561666a-cec5-11e4-9ae4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "d561666a-cec5-11e4-9ae4-705681abff85"], ["created_at", "2015-03-20 05:56:21.183649"], ["updated_at", "2015-03-20 05:56:21.183649"], ["token", "0nKlIedBVpBa4wGSn2vwi31RcdVQ3vtOvwdURz9dEws"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/d561666a-cec5-11e4-9ae4-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"d561666a-cec5-11e4-9ae4-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.188244' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "J1za-OhMuQi7FKDHzJIE_W6-_V-DD1sBjzwj4S6Ruxo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.190059"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.191914"], ["id", "d560e46a-cec5-11e4-9322-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d561666a-cec5-11e4-9ae4-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5608650-cec5-11e4-8375-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d561666a-cec5-11e4-9ae4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5608650-cec5-11e4-8375-705681abff85' LIMIT 1 [["organization_id", "d561666a-cec5-11e4-9ae4-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'd561666a-cec5-11e4-9ae4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "d561666a-cec5-11e4-9ae4-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.202268"], ["updated_at", "2015-03-20 05:56:21.202268"], ["token", "ubkqIMA8kgcr9wIpFxh2pSplh8t0VfHAJDWiVwYLd1Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 624ce26f-dd5e-4db1-a5b2-a8d5345234ba) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d56572a0-cec5-11e4-ba26-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d56572a0-cec5-11e4-ba26-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [624ce26f-dd5e-4db1-a5b2-a8d5345234ba] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d56572a0-cec5-11e4-ba26-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [624ce26f-dd5e-4db1-a5b2-a8d5345234ba] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d561666a-cec5-11e4-9ae4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [624ce26f-dd5e-4db1-a5b2-a8d5345234ba] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [624ce26f-dd5e-4db1-a5b2-a8d5345234ba] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [624ce26f-dd5e-4db1-a5b2-a8d5345234ba] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [624ce26f-dd5e-4db1-a5b2-a8d5345234ba] Date: Thu, 19 Mar 2015 22:56:21 -0700 From: from@example.com To: email@example.com Message-ID: <550bb6853719b_11573ffcd5065bf0772ee@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/ubkqIMA8kgcr9wIpFxh2pSplh8t0VfHAJDWiVwYLd1Y?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [624ce26f-dd5e-4db1-a5b2-a8d5345234ba] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.06ms Completed 201 Created in 40ms (Views: 1.0ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$nqpc.qrsweg0FWOEUM1cV.7RT.OquefJ9kWWTisK5tSEb/EI5/Hiq"], ["created_at", "2015-03-20 05:56:21.235264"], ["updated_at", "2015-03-20 05:56:21.235264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.237224"], ["user_id", "d56a7fb6-cec5-11e4-801d-705681abff85"], ["created_at", "2015-03-20 05:56:21.238071"], ["updated_at", "2015-03-20 05:56:21.238071"], ["token", "nrbIc6Q5D7vho40u7scXhUW7j5zq3y9_dvffYiIqD-M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.241564"], ["updated_at", "2015-03-20 05:56:21.241564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd56a7fb6-cec5-11e4-801d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd56b649e-cec5-11e4-a1b1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d56a7fb6-cec5-11e4-801d-705681abff85"], ["organization_id", "d56b649e-cec5-11e4-a1b1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.244868"], ["updated_at", "2015-03-20 05:56:21.244868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = 'd56b649e-cec5-11e4-a1b1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "d56b649e-cec5-11e4-a1b1-705681abff85"], ["created_at", "2015-03-20 05:56:21.248779"], ["updated_at", "2015-03-20 05:56:21.248779"], ["token", "yq5aEiTvF8dPsQw-kK70Azlhd15z9sfiYDuHNVWzqYk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/d56b649e-cec5-11e4-a1b1-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"d56b649e-cec5-11e4-a1b1-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.253370' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nrbIc6Q5D7vho40u7scXhUW7j5zq3y9_dvffYiIqD-M"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.255173"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.257053"], ["id", "d56ae4d8-cec5-11e4-8fb5-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d56b649e-cec5-11e4-a1b1-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d56a7fb6-cec5-11e4-801d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d56b649e-cec5-11e4-a1b1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd56a7fb6-cec5-11e4-801d-705681abff85' LIMIT 1 [["organization_id", "d56b649e-cec5-11e4-a1b1-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'd56b649e-cec5-11e4-a1b1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "d56b649e-cec5-11e4-a1b1-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.266843"], ["updated_at", "2015-03-20 05:56:21.266843"], ["token", "SmkOzWm60q_nT-dl7lg4_oGQk4N3MGBLvz-8nRKWDAM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4ab011cd-e7ab-430e-b9a8-421e6ea45cfd) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d56f49d8-cec5-11e4-af3b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d56f49d8-cec5-11e4-af3b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4ab011cd-e7ab-430e-b9a8-421e6ea45cfd] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d56f49d8-cec5-11e4-af3b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [4ab011cd-e7ab-430e-b9a8-421e6ea45cfd] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d56b649e-cec5-11e4-a1b1-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [4ab011cd-e7ab-430e-b9a8-421e6ea45cfd] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4ab011cd-e7ab-430e-b9a8-421e6ea45cfd] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [4ab011cd-e7ab-430e-b9a8-421e6ea45cfd] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [4ab011cd-e7ab-430e-b9a8-421e6ea45cfd] Date: Thu, 19 Mar 2015 22:56:21 -0700 From: from@example.com To: email@example.com Message-ID: <550bb68542dee_11573ffcd5065bf0773bd@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/SmkOzWm60q_nT-dl7lg4_oGQk4N3MGBLvz-8nRKWDAM?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4ab011cd-e7ab-430e-b9a8-421e6ea45cfd] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.04ms Completed 201 Created in 23ms (Views: 0.7ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$pcZKUT9X9YIlZgGBFTTjqu2moOjSg8qYSJyY4atVlPxpbGly85w.."], ["created_at", "2015-03-20 05:56:21.282495"], ["updated_at", "2015-03-20 05:56:21.282495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.284174"], ["user_id", "d571a4f8-cec5-11e4-8387-705681abff85"], ["created_at", "2015-03-20 05:56:21.285685"], ["updated_at", "2015-03-20 05:56:21.285685"], ["token", "2wDvh59sgU92xDVG3jNX5cP1SbRxXAguEAbE-zLR0v8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.289479"], ["updated_at", "2015-03-20 05:56:21.289479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd571a4f8-cec5-11e4-8387-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd572b596-cec5-11e4-ac7b-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d571a4f8-cec5-11e4-8387-705681abff85"], ["organization_id", "d572b596-cec5-11e4-ac7b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.292780"], ["updated_at", "2015-03-20 05:56:21.292780"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = 'd572b596-cec5-11e4-ac7b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "d572b596-cec5-11e4-ac7b-705681abff85"], ["created_at", "2015-03-20 05:56:21.299772"], ["updated_at", "2015-03-20 05:56:21.299772"], ["token", "K6csI3v5x8xPq9abZA9S6s5zbj8xCj2i9TfeRbGJDrE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/d572b596-cec5-11e4-ac7b-705681abff85/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"d572b596-cec5-11e4-ac7b-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.307047' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2wDvh59sgU92xDVG3jNX5cP1SbRxXAguEAbE-zLR0v8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.308548"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.309487"], ["id", "d5722e28-cec5-11e4-836b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d572b596-cec5-11e4-ac7b-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d571a4f8-cec5-11e4-8387-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d572b596-cec5-11e4-ac7b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd571a4f8-cec5-11e4-8387-705681abff85' LIMIT 1 [["organization_id", "d572b596-cec5-11e4-ac7b-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'd572b596-cec5-11e4-ac7b-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$G5E3HxzYZPAdWzaRwdhP4.ELnIqxWxyG31SU5PBNzxOQVRIWWZMMm"], ["created_at", "2015-03-20 05:56:21.336856"], ["updated_at", "2015-03-20 05:56:21.336856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.350541"], ["user_id", "d57bafb6-cec5-11e4-9434-705681abff85"], ["created_at", "2015-03-20 05:56:21.351713"], ["updated_at", "2015-03-20 05:56:21.351713"], ["token", "E3lO1_bd3Kjx56i1WMpLA4WBdB731xYHI0BBdAcdPiU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.357468"], ["updated_at", "2015-03-20 05:56:21.357468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd57bafb6-cec5-11e4-9434-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd57d28a0-cec5-11e4-ad4e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d57bafb6-cec5-11e4-9434-705681abff85"], ["organization_id", "d57d28a0-cec5-11e4-ad4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.363008"], ["updated_at", "2015-03-20 05:56:21.363008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'd57d28a0-cec5-11e4-ad4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "d57d28a0-cec5-11e4-ad4e-705681abff85"], ["created_at", "2015-03-20 05:56:21.367034"], ["updated_at", "2015-03-20 05:56:21.367034"], ["token", "abemy_BM1C9sHzuALOgUSOjzlgDs7Ma---XXm3lj6xg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$Z./elvH1VU3S34NPux0WY.ouIR89glRCU3/u/tPDQJNth9aHZkqCm"], ["created_at", "2015-03-20 05:56:21.378388"], ["updated_at", "2015-03-20 05:56:21.378388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.380583"], ["user_id", "d5805c14-cec5-11e4-a3e9-705681abff85"], ["created_at", "2015-03-20 05:56:21.381342"], ["updated_at", "2015-03-20 05:56:21.381342"], ["token", "v3U6H5F8O8Erz8V5X6zA3EQMAZJgwIzCUwtIgA7hGRw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.385147"], ["updated_at", "2015-03-20 05:56:21.385147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5805c14-cec5-11e4-a3e9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5815b5a-cec5-11e4-a4d6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5805c14-cec5-11e4-a3e9-705681abff85"], ["organization_id", "d5815b5a-cec5-11e4-a4d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.389720"], ["updated_at", "2015-03-20 05:56:21.389720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = 'd5815b5a-cec5-11e4-a4d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "d5815b5a-cec5-11e4-a4d6-705681abff85"], ["created_at", "2015-03-20 05:56:21.393279"], ["updated_at", "2015-03-20 05:56:21.393279"], ["token", "Gi1gggfSGuDR3EjmVOCf66kbvIlVAUJa18eTSaNtNqc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/d5828f70-cec5-11e4-b7ce-705681abff85" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"d5828f70-cec5-11e4-b7ce-705681abff85", "invitation"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.398090' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "v3U6H5F8O8Erz8V5X6zA3EQMAZJgwIzCUwtIgA7hGRw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.399514"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.400534"], ["id", "d580bfce-cec5-11e4-a173-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d5828f70-cec5-11e4-b7ce-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5805c14-cec5-11e4-a3e9-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d5815b5a-cec5-11e4-a4d6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5805c14-cec5-11e4-a3e9-705681abff85' LIMIT 1 [["organization_id", "d5815b5a-cec5-11e4-a4d6-705681abff85"]] Completed 200 OK in 9ms (Views: 1.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$0ogO9XQEHion3ORwufhMPu3KOqabqe9ydjZP79W5PeP.76GMMWcIG"], ["created_at", "2015-03-20 05:56:21.414396"], ["updated_at", "2015-03-20 05:56:21.414396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.415989"], ["user_id", "d585c6fe-cec5-11e4-9611-705681abff85"], ["created_at", "2015-03-20 05:56:21.416845"], ["updated_at", "2015-03-20 05:56:21.416845"], ["token", "47NojmN5XPxIFQxEKUxizuj1PVR81Uy2qdNqZ-o0ukM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.420962"], ["updated_at", "2015-03-20 05:56:21.420962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd585c6fe-cec5-11e4-9611-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd586c536-cec5-11e4-916e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d585c6fe-cec5-11e4-9611-705681abff85"], ["organization_id", "d586c536-cec5-11e4-916e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.424791"], ["updated_at", "2015-03-20 05:56:21.424791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'd586c536-cec5-11e4-916e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "d586c536-cec5-11e4-916e-705681abff85"], ["created_at", "2015-03-20 05:56:21.428304"], ["updated_at", "2015-03-20 05:56:21.428304"], ["token", "aemwerAAMYyHI_bEZmaTSgqrvx0S03XE8mYAg5olZys"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$wTz3NfpRj3HYGmiwJcZBAeRybdCp6iiMmZyWzu4diLdju4yNqwhRO"], ["created_at", "2015-03-20 05:56:21.439159"], ["updated_at", "2015-03-20 05:56:21.439159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.440742"], ["user_id", "d5898d98-cec5-11e4-8a00-705681abff85"], ["created_at", "2015-03-20 05:56:21.442318"], ["updated_at", "2015-03-20 05:56:21.442318"], ["token", "MwHFAONfrRI7iufnsSCOBsTNiyKVd_RAw27RAFkcI94"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.446426"], ["updated_at", "2015-03-20 05:56:21.446426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5898d98-cec5-11e4-8a00-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd58aa8ae-cec5-11e4-a79a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5898d98-cec5-11e4-8a00-705681abff85"], ["organization_id", "d58aa8ae-cec5-11e4-a79a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.450507"], ["updated_at", "2015-03-20 05:56:21.450507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'd58aa8ae-cec5-11e4-a79a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "d58aa8ae-cec5-11e4-a79a-705681abff85"], ["created_at", "2015-03-20 05:56:21.454976"], ["updated_at", "2015-03-20 05:56:21.454976"], ["token", "uvfAdN-aZAoN9cPjsCaXmHYSgwbcIWzbV5Ayvpv4_V4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/d58bf934-cec5-11e4-8e96-705681abff85" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"d58bf934-cec5-11e4-8e96-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.462592' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MwHFAONfrRI7iufnsSCOBsTNiyKVd_RAw27RAFkcI94"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.464778"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.465963"], ["id", "d58a1308-cec5-11e4-8c50-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d58bf934-cec5-11e4-8e96-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5898d98-cec5-11e4-8a00-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d58aa8ae-cec5-11e4-a79a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5898d98-cec5-11e4-8a00-705681abff85' LIMIT 1 [["organization_id", "d58aa8ae-cec5-11e4-a79a-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "d58bf934-cec5-11e4-8e96-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$wboCr.4MU3wwFzNXc0HS/OVd5LbvLuVDl73Co0PSdyjn02thY..UK"], ["created_at", "2015-03-20 05:56:21.481567"], ["updated_at", "2015-03-20 05:56:21.481567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.484692"], ["user_id", "d590252c-cec5-11e4-9d9d-705681abff85"], ["created_at", "2015-03-20 05:56:21.485718"], ["updated_at", "2015-03-20 05:56:21.485718"], ["token", "1YkKlrxanB8jDCaidaQTLJH9dkPeOOYIdWxAaReyrcU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.491814"], ["updated_at", "2015-03-20 05:56:21.491814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd590252c-cec5-11e4-9d9d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd59194f2-cec5-11e4-a868-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d590252c-cec5-11e4-9d9d-705681abff85"], ["organization_id", "d59194f2-cec5-11e4-a868-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.496271"], ["updated_at", "2015-03-20 05:56:21.496271"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'd59194f2-cec5-11e4-a868-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "d59194f2-cec5-11e4-a868-705681abff85"], ["created_at", "2015-03-20 05:56:21.502119"], ["updated_at", "2015-03-20 05:56:21.502119"], ["token", "VT83QyQGtkXS9zbq2-nKJ993Fw2J2h_9n1C3kKg-B5o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$COO5CrpEu7CR1U7k.nW2Qeboe3DzyglVzqhl5z4BPAQakWa2KL.6S"], ["created_at", "2015-03-20 05:56:21.514086"], ["updated_at", "2015-03-20 05:56:21.514086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.515677"], ["user_id", "d594fba6-cec5-11e4-bead-705681abff85"], ["created_at", "2015-03-20 05:56:21.516499"], ["updated_at", "2015-03-20 05:56:21.516499"], ["token", "2-ftEpCaHLmExPkXhTjQ_HO9BGCkYvx0w-f0TIiPtKQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.519894"], ["updated_at", "2015-03-20 05:56:21.519894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd594fba6-cec5-11e4-bead-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd595dc74-cec5-11e4-ac1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d594fba6-cec5-11e4-bead-705681abff85"], ["organization_id", "d595dc74-cec5-11e4-ac1d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.523025"], ["updated_at", "2015-03-20 05:56:21.523025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'd595dc74-cec5-11e4-ac1d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "d595dc74-cec5-11e4-ac1d-705681abff85"], ["created_at", "2015-03-20 05:56:21.526360"], ["updated_at", "2015-03-20 05:56:21.526360"], ["token", "4iNlEzlIZDXRmSWyWUawJy4cvkPR4fNm_Qxm-o_0e1I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.531285' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2-ftEpCaHLmExPkXhTjQ_HO9BGCkYvx0w-f0TIiPtKQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.532700"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.533663"], ["id", "d5955ff6-cec5-11e4-ba13-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d594fba6-cec5-11e4-bead-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d595dc74-cec5-11e4-ac1d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd594fba6-cec5-11e4-bead-705681abff85' LIMIT 1 [["organization_id", "d595dc74-cec5-11e4-ac1d-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'd595dc74-cec5-11e4-ac1d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "d595dc74-cec5-11e4-ac1d-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.541159"], ["updated_at", "2015-03-20 05:56:21.541159"], ["token", "ud0nGSv2Bk9nqHcVDpxb4X8lJo_A2f5V3PkT9dzReu4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b3b53099-e774-458c-beef-3384f9ce8ea1) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d599258c-cec5-11e4-9e2a-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d599258c-cec5-11e4-9e2a-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b3b53099-e774-458c-beef-3384f9ce8ea1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d599258c-cec5-11e4-9e2a-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [b3b53099-e774-458c-beef-3384f9ce8ea1] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d595dc74-cec5-11e4-ac1d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b3b53099-e774-458c-beef-3384f9ce8ea1] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [b3b53099-e774-458c-beef-3384f9ce8ea1] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [b3b53099-e774-458c-beef-3384f9ce8ea1] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [b3b53099-e774-458c-beef-3384f9ce8ea1] Date: Thu, 19 Mar 2015 22:56:21 -0700 From: from@example.com To: email@example.com Message-ID: <550bb6858605d_11573ffcd5065bf0774c0@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/ud0nGSv2Bk9nqHcVDpxb4X8lJo_A2f5V3PkT9dzReu4?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b3b53099-e774-458c-beef-3384f9ce8ea1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.8ms Completed 201 Created in 20ms (Views: 0.9ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$39sOGsVzSSMc4iXYWEWR6OhKnjLnUIx4NASypJmKsySzQKtfnzNLm"], ["created_at", "2015-03-20 05:56:21.557185"], ["updated_at", "2015-03-20 05:56:21.557185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.558715"], ["user_id", "d59b8e6c-cec5-11e4-b51a-705681abff85"], ["created_at", "2015-03-20 05:56:21.559523"], ["updated_at", "2015-03-20 05:56:21.559523"], ["token", "gCo6BDAtnLJ-bP4w06pt1iKk7RRE_8ejBdejXtjGwps"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.562865"], ["updated_at", "2015-03-20 05:56:21.562865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd59b8e6c-cec5-11e4-b51a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd59c69b8-cec5-11e4-8e20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d59b8e6c-cec5-11e4-b51a-705681abff85"], ["organization_id", "d59c69b8-cec5-11e4-8e20-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.565994"], ["updated_at", "2015-03-20 05:56:21.565994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'd59c69b8-cec5-11e4-8e20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "d59c69b8-cec5-11e4-8e20-705681abff85"], ["created_at", "2015-03-20 05:56:21.569303"], ["updated_at", "2015-03-20 05:56:21.569303"], ["token", "38BmWHsMQN9Huj5alZ40wcky13hc4o-aeGhH7mWJy6k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.574299' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gCo6BDAtnLJ-bP4w06pt1iKk7RRE_8ejBdejXtjGwps"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.576038"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.578063"], ["id", "d59bf014-cec5-11e4-8b04-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d59b8e6c-cec5-11e4-b51a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d59c69b8-cec5-11e4-8e20-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd59b8e6c-cec5-11e4-b51a-705681abff85' LIMIT 1 [["organization_id", "d59c69b8-cec5-11e4-8e20-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'd59c69b8-cec5-11e4-8e20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "d59c69b8-cec5-11e4-8e20-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.585820"], ["updated_at", "2015-03-20 05:56:21.585820"], ["token", "fhGq7LN-qaOMoj9dj7J0PE60d9usFvEVFCCE3b8_Hxk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0c9bb446-a2dd-4928-8d1a-4d02913d5d7e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d59ff74a-cec5-11e4-b5ff-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d59ff74a-cec5-11e4-b5ff-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0c9bb446-a2dd-4928-8d1a-4d02913d5d7e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/d59ff74a-cec5-11e4-b5ff-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [0c9bb446-a2dd-4928-8d1a-4d02913d5d7e] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d59c69b8-cec5-11e4-8e20-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [0c9bb446-a2dd-4928-8d1a-4d02913d5d7e] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [0c9bb446-a2dd-4928-8d1a-4d02913d5d7e] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [0c9bb446-a2dd-4928-8d1a-4d02913d5d7e] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [0c9bb446-a2dd-4928-8d1a-4d02913d5d7e] Date: Thu, 19 Mar 2015 22:56:21 -0700 From: from@example.com To: email@example.com Message-ID: <550bb68590dff_11573ffcd5065bf077531@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/fhGq7LN-qaOMoj9dj7J0PE60d9usFvEVFCCE3b8_Hxk?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0c9bb446-a2dd-4928-8d1a-4d02913d5d7e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.02ms Completed 201 Created in 21ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$3Eu49qo8Z8ocQ69M981bw.xYjsAQlIr15Boap7qiVY7SnxdPY6pES"], ["created_at", "2015-03-20 05:56:21.603383"], ["updated_at", "2015-03-20 05:56:21.603383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.605009"], ["user_id", "d5a29d4c-cec5-11e4-bd46-705681abff85"], ["created_at", "2015-03-20 05:56:21.605773"], ["updated_at", "2015-03-20 05:56:21.605773"], ["token", "7iizkCbu5YRnZz6JGy8cJlnqLzOiENr8Tx9ZFEa2dYQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.609206"], ["updated_at", "2015-03-20 05:56:21.609206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5a29d4c-cec5-11e4-bd46-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5a37e1a-cec5-11e4-a1de-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5a29d4c-cec5-11e4-bd46-705681abff85"], ["organization_id", "d5a37e1a-cec5-11e4-a1de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.613348"], ["updated_at", "2015-03-20 05:56:21.613348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = 'd5a37e1a-cec5-11e4-a1de-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "d5a37e1a-cec5-11e4-a1de-705681abff85"], ["created_at", "2015-03-20 05:56:21.617140"], ["updated_at", "2015-03-20 05:56:21.617140"], ["token", "CzIYZKFa9PdmoFZH9OyLAJ_LONw8x_h_L9AZUWE4fuw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.623491' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7iizkCbu5YRnZz6JGy8cJlnqLzOiENr8Tx9ZFEa2dYQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.625014"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.625993"], ["id", "d5a2ff4e-cec5-11e4-a7e9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5a29d4c-cec5-11e4-bd46-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d5a37e1a-cec5-11e4-a1de-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5a29d4c-cec5-11e4-bd46-705681abff85' LIMIT 1 [["organization_id", "d5a37e1a-cec5-11e4-a1de-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'd5a37e1a-cec5-11e4-a1de-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$7UACgOXGjmQiU1JXeD.pB.adC4uHOypGFOnxS1x.MwcZs2LGKu9zy"], ["created_at", "2015-03-20 05:56:21.643534"], ["updated_at", "2015-03-20 05:56:21.643534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.645185"], ["user_id", "d5a8bec0-cec5-11e4-b7af-705681abff85"], ["created_at", "2015-03-20 05:56:21.645986"], ["updated_at", "2015-03-20 05:56:21.645986"], ["token", "FKfxDWdOZNz9KjebB5gVLVm3h9IChIcYPRpS8IpJ0pA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.650574"], ["updated_at", "2015-03-20 05:56:21.650574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5a8bec0-cec5-11e4-b7af-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5a9dc88-cec5-11e4-a6b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5a8bec0-cec5-11e4-b7af-705681abff85"], ["organization_id", "d5a9dc88-cec5-11e4-a6b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.654372"], ["updated_at", "2015-03-20 05:56:21.654372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'd5a9dc88-cec5-11e4-a6b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "d5a9dc88-cec5-11e4-a6b5-705681abff85"], ["created_at", "2015-03-20 05:56:21.657776"], ["updated_at", "2015-03-20 05:56:21.657776"], ["token", "Y-8gPjN8EhmQs59vC1KRMMhXo_Gd-B84Obz4v776FNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$IcnXd4eTJbW06/9tQsbEAeoo4hrYliSZQRMhPgDAH2HwD.vOpm5WW"], ["created_at", "2015-03-20 05:56:21.662528"], ["updated_at", "2015-03-20 05:56:21.662528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.666815"], ["updated_at", "2015-03-20 05:56:21.666815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5aba7d4-cec5-11e4-9cbb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5ac4c66-cec5-11e4-905d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5aba7d4-cec5-11e4-9cbb-705681abff85"], ["organization_id", "d5ac4c66-cec5-11e4-905d-705681abff85"], ["created_at", "2015-03-20 05:56:21.670214"], ["updated_at", "2015-03-20 05:56:21.670214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$05ToKTR1DY2dLQBBNJuSReZjX6RZuFzNzmqMQ97fkTbwHEtYaSR2e"], ["created_at", "2015-03-20 05:56:21.680973"], ["updated_at", "2015-03-20 05:56:21.680973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.682582"], ["user_id", "d5ae741e-cec5-11e4-b2b9-705681abff85"], ["created_at", "2015-03-20 05:56:21.683546"], ["updated_at", "2015-03-20 05:56:21.683546"], ["token", "tj6wShCAlICxdBOZDZlaeiFdFtyoZd2E553o85zUfgE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.687435"], ["updated_at", "2015-03-20 05:56:21.687435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5ae741e-cec5-11e4-b2b9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5af6e8c-cec5-11e4-a3f6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5ae741e-cec5-11e4-b2b9-705681abff85"], ["organization_id", "d5af6e8c-cec5-11e4-a3f6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.690964"], ["updated_at", "2015-03-20 05:56:21.690964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = 'd5af6e8c-cec5-11e4-a3f6-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "d5af6e8c-cec5-11e4-a3f6-705681abff85"], ["created_at", "2015-03-20 05:56:21.695509"], ["updated_at", "2015-03-20 05:56:21.695509"], ["token", "SJqmhbaCGnA9kYEOaZJ4cLDma-6x7gewc6dRTwGf5eA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$PJu0mAPwABwDfbZJ8jYUfuNnjJCSY4XNRr0IVUeEYwacaaiZuABfS"], ["created_at", "2015-03-20 05:56:21.702994"], ["updated_at", "2015-03-20 05:56:21.702994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.707332"], ["updated_at", "2015-03-20 05:56:21.707332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5b1dea6-cec5-11e4-8112-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5b27a1e-cec5-11e4-9a18-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5b1dea6-cec5-11e4-8112-705681abff85"], ["organization_id", "d5b27a1e-cec5-11e4-9a18-705681abff85"], ["created_at", "2015-03-20 05:56:21.710811"], ["updated_at", "2015-03-20 05:56:21.710811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.716882' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tj6wShCAlICxdBOZDZlaeiFdFtyoZd2E553o85zUfgE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.718387"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.719334"], ["id", "d5aeed72-cec5-11e4-8648-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5ae741e-cec5-11e4-b2b9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5ae741e-cec5-11e4-b2b9-705681abff85' LIMIT 1 [["organization_id", "d5af6e8c-cec5-11e4-a3f6-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "d5af6e8c-cec5-11e4-a3f6-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d5af6e8c-cec5-11e4-a3f6-705681abff85"]] Completed 200 OK in 10ms (Views: 2.0ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$I5V8U0iGCcqZb6O0I6CWcu5MRMyC4Npe/wlCPt4xwNER6hp.VZ2mi"], ["created_at", "2015-03-20 05:56:21.736342"], ["updated_at", "2015-03-20 05:56:21.736342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.738090"], ["user_id", "d5b6e95a-cec5-11e4-ab3b-705681abff85"], ["created_at", "2015-03-20 05:56:21.738954"], ["updated_at", "2015-03-20 05:56:21.738954"], ["token", "zRSjf_a5uqvAkbCoQivnEdVDb60X-cPaW8euFwGJRzc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.742686"], ["updated_at", "2015-03-20 05:56:21.742686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5b6e95a-cec5-11e4-ab3b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5b7dbee-cec5-11e4-89a1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5b6e95a-cec5-11e4-ab3b-705681abff85"], ["organization_id", "d5b7dbee-cec5-11e4-89a1-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.745878"], ["updated_at", "2015-03-20 05:56:21.745878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = 'd5b7dbee-cec5-11e4-89a1-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "d5b7dbee-cec5-11e4-89a1-705681abff85"], ["created_at", "2015-03-20 05:56:21.749767"], ["updated_at", "2015-03-20 05:56:21.749767"], ["token", "bQB4xhf2s7XfU674066fZyx4HLupMxrdzfwnhwcaIDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$VnfibrckSEBoJfj5zbj82e7zUjjt9ihkZiIsipmCsm4fKDge0820e"], ["created_at", "2015-03-20 05:56:21.759795"], ["updated_at", "2015-03-20 05:56:21.759795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.761482"], ["user_id", "d5ba7d36-cec5-11e4-a051-705681abff85"], ["created_at", "2015-03-20 05:56:21.762236"], ["updated_at", "2015-03-20 05:56:21.762236"], ["token", "m1lfw6ZzzPmGjCQmDXhdkaC8VJunUiPKKmSfywU4uSY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.766336"], ["updated_at", "2015-03-20 05:56:21.766336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5ba7d36-cec5-11e4-a051-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5bb7a2e-cec5-11e4-93fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5ba7d36-cec5-11e4-a051-705681abff85"], ["organization_id", "d5bb7a2e-cec5-11e4-93fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.769734"], ["updated_at", "2015-03-20 05:56:21.769734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'd5bb7a2e-cec5-11e4-93fa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "d5bb7a2e-cec5-11e4-93fa-705681abff85"], ["created_at", "2015-03-20 05:56:21.773016"], ["updated_at", "2015-03-20 05:56:21.773016"], ["token", "-KrkkIU5wIA-ttoN9W2IJ-4xbr-2-lDfExMIySZ1ucQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/d5bc8158-cec5-11e4-a4e3-705681abff85" for 127.0.0.1 at 2015-03-19 22:56:21 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"d5bc8158-cec5-11e4-a4e3-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:21.777582' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "m1lfw6ZzzPmGjCQmDXhdkaC8VJunUiPKKmSfywU4uSY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:21.778995"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:21.780005"], ["id", "d5bae050-cec5-11e4-ba56-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d5bc8158-cec5-11e4-a4e3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5ba7d36-cec5-11e4-a051-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d5bb7a2e-cec5-11e4-93fa-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5ba7d36-cec5-11e4-a051-705681abff85' LIMIT 1 [["organization_id", "d5bb7a2e-cec5-11e4-93fa-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."id" != 'd5bc8158-cec5-11e4-a4e3-705681abff85' AND "clubhouse_invitations"."organization_id" = 'd5bb7a2e-cec5-11e4-93fa-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 05:56:21.786914"], ["id", "d5bc8158-cec5-11e4-a4e3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$/AHeR5DV9Jz4/kGhOI0fe.N0PXbV9BeMgPVqu1bRqhltdBDj2TqPW"], ["created_at", "2015-03-20 05:56:21.795461"], ["updated_at", "2015-03-20 05:56:21.795461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$A4ANERrpzXlUlgBQixlRt.yRJ2LIt7QCNVHwA9NHBTQJw3Z7q0XW6"], ["created_at", "2015-03-20 05:56:21.807033"], ["updated_at", "2015-03-20 05:56:21.807033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.810286"], ["updated_at", "2015-03-20 05:56:21.810286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5c1b2ae-cec5-11e4-b891-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5c22b62-cec5-11e4-87c4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5c1b2ae-cec5-11e4-b891-705681abff85"], ["organization_id", "d5c22b62-cec5-11e4-87c4-705681abff85"], ["created_at", "2015-03-20 05:56:21.813706"], ["updated_at", "2015-03-20 05:56:21.813706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$lQe1.yJKSWxVKasr7ubOWOWIDMTPx0H0a4WCOFf0j7uNuZsRTSaLK"], ["created_at", "2015-03-20 05:56:21.819643"], ["updated_at", "2015-03-20 05:56:21.819643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.822755"], ["updated_at", "2015-03-20 05:56:21.822755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5c39b82-cec5-11e4-8197-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5c41300-cec5-11e4-9c4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5c39b82-cec5-11e4-8197-705681abff85"], ["organization_id", "d5c41300-cec5-11e4-9c4e-705681abff85"], ["created_at", "2015-03-20 05:56:21.825907"], ["updated_at", "2015-03-20 05:56:21.825907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd5c39b82-cec5-11e4-8197-705681abff85' LIMIT 1 [["organization_id", "d5c41300-cec5-11e4-9c4e-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$qAT2moHjMmOAaI6IM8.ZRuyinR.BbpqdiIDQkjfxnS5eg1RZ7Omcu"], ["created_at", "2015-03-20 05:56:21.833506"], ["updated_at", "2015-03-20 05:56:21.833506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.836876"], ["updated_at", "2015-03-20 05:56:21.836876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5c5ba98-cec5-11e4-9db9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5c63b9e-cec5-11e4-8c77-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5c5ba98-cec5-11e4-9db9-705681abff85"], ["organization_id", "d5c63b9e-cec5-11e4-8c77-705681abff85"], ["created_at", "2015-03-20 05:56:21.840688"], ["updated_at", "2015-03-20 05:56:21.840688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5c5ba98-cec5-11e4-9db9-705681abff85' LIMIT 1 [["organization_id", "d5c63b9e-cec5-11e4-8c77-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$tJ9QrMCfxw3RNJlPP2ZA5uwuiUmmH6l/mjKI3E5e4jrvzkdNfTodm"], ["created_at", "2015-03-20 05:56:21.847849"], ["updated_at", "2015-03-20 05:56:21.847849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.851330"], ["updated_at", "2015-03-20 05:56:21.851330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5c7ebd8-cec5-11e4-9b97-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5c87526-cec5-11e4-b117-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5c7ebd8-cec5-11e4-9b97-705681abff85"], ["organization_id", "d5c87526-cec5-11e4-b117-705681abff85"], ["created_at", "2015-03-20 05:56:21.855680"], ["updated_at", "2015-03-20 05:56:21.855680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5c7ebd8-cec5-11e4-9b97-705681abff85' LIMIT 1 [["organization_id", "d5c87526-cec5-11e4-b117-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$8IXsPdCaRegDJgpy06H/rOlR/GhCqLK03wwY.kVJyNG0xgsD.5K5e"], ["created_at", "2015-03-20 05:56:21.862928"], ["updated_at", "2015-03-20 05:56:21.862928"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.867040"], ["updated_at", "2015-03-20 05:56:21.867040"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5ca3cbc-cec5-11e4-bb8f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5cae3a6-cec5-11e4-a024-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5ca3cbc-cec5-11e4-bb8f-705681abff85"], ["organization_id", "d5cae3a6-cec5-11e4-a024-705681abff85"], ["created_at", "2015-03-20 05:56:21.872390"], ["updated_at", "2015-03-20 05:56:21.872390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$ZAVjiNxKfpU.t715x9rc5O7Osh83qW9pGW0TdlWAFouuKsw.mEpV6"], ["created_at", "2015-03-20 05:56:21.879787"], ["updated_at", "2015-03-20 05:56:21.879787"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.885048"], ["updated_at", "2015-03-20 05:56:21.885048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$iYXs0cJF.tQEyGxlQpQY3eVJbsIzlW5TUVY./8pqp57WBLLmdPV7q"], ["created_at", "2015-03-20 05:56:21.890920"], ["updated_at", "2015-03-20 05:56:21.890920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.895062"], ["updated_at", "2015-03-20 05:56:21.895062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd5ce7c00-cec5-11e4-94f8-705681abff85' LIMIT 1 [["organization_id", "d5cf1f84-cec5-11e4-be12-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$Uc2y/vsMSuxJlEjMQgZSWuf2q0LBXCuwYT2Yni4ZG6zSzZRf.o4RK"], ["created_at", "2015-03-20 05:56:21.902106"], ["updated_at", "2015-03-20 05:56:21.902106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.905174"], ["updated_at", "2015-03-20 05:56:21.905174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5d03216-cec5-11e4-9ccd-705681abff85' LIMIT 1 [["organization_id", "d5d0a4da-cec5-11e4-81aa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$V9sl3C/PKsDvjHec9kxUQOD2HPhHX4U6u5zu3CCVWfzthRlARtAz2"], ["created_at", "2015-03-20 05:56:21.911981"], ["updated_at", "2015-03-20 05:56:21.911981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.915446"], ["updated_at", "2015-03-20 05:56:21.915446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5d1b5b4-cec5-11e4-a98b-705681abff85' LIMIT 1 [["organization_id", "d5d239c6-cec5-11e4-a975-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$jANJlnCYf1RI7MDj7ZLOwOowD1AtrL0F8XRYIOtQOjeOBD6OgKE3C"], ["created_at", "2015-03-20 05:56:21.922048"], ["updated_at", "2015-03-20 05:56:21.922048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.925329"], ["updated_at", "2015-03-20 05:56:21.925329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$Z9ddm5BY7riq3Uj2H3or0u1jx.H70JLO.vWR4nNgmVn/e2qN5i.Ky"], ["created_at", "2015-03-20 05:56:21.931326"], ["updated_at", "2015-03-20 05:56:21.931326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.934566"], ["updated_at", "2015-03-20 05:56:21.934566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5d4aa26-cec5-11e4-b970-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5d52136-cec5-11e4-aee7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5d4aa26-cec5-11e4-b970-705681abff85"], ["organization_id", "d5d52136-cec5-11e4-aee7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.937553"], ["updated_at", "2015-03-20 05:56:21.937553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$ECr74wM7rHAl4Bk9gLDkXuGpPfn9yqi4bk5D1hxYRSoyp/gJjUwr2"], ["created_at", "2015-03-20 05:56:21.942958"], ["updated_at", "2015-03-20 05:56:21.942958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.945922"], ["updated_at", "2015-03-20 05:56:21.945922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5d66ae6-cec5-11e4-be5c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5d6dd14-cec5-11e4-9723-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5d66ae6-cec5-11e4-be5c-705681abff85"], ["organization_id", "d5d6dd14-cec5-11e4-9723-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.948978"], ["updated_at", "2015-03-20 05:56:21.948978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd5d66ae6-cec5-11e4-be5c-705681abff85' LIMIT 1 [["organization_id", "d5d6dd14-cec5-11e4-9723-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$Kf32LOwpqJ81o3NjMsdUB.525l5a1qiGObl32cgW7iP8XYCc3NeYq"], ["created_at", "2015-03-20 05:56:21.955894"], ["updated_at", "2015-03-20 05:56:21.955894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.958932"], ["updated_at", "2015-03-20 05:56:21.958932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5d86526-cec5-11e4-9454-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5d8d934-cec5-11e4-b0ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5d86526-cec5-11e4-9454-705681abff85"], ["organization_id", "d5d8d934-cec5-11e4-b0ad-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.961907"], ["updated_at", "2015-03-20 05:56:21.961907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5d86526-cec5-11e4-9454-705681abff85' LIMIT 1 [["organization_id", "d5d8d934-cec5-11e4-b0ad-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$8aXoCh3LgQ1XHe0Tg.WLFumUTTZ.lUr8QcsyC23I/izZS8NvW8B4W"], ["created_at", "2015-03-20 05:56:21.968721"], ["updated_at", "2015-03-20 05:56:21.968721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.971838"], ["updated_at", "2015-03-20 05:56:21.971838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5da5a34-cec5-11e4-801a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5dad158-cec5-11e4-93de-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5da5a34-cec5-11e4-801a-705681abff85"], ["organization_id", "d5dad158-cec5-11e4-93de-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.974842"], ["updated_at", "2015-03-20 05:56:21.974842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5da5a34-cec5-11e4-801a-705681abff85' LIMIT 1 [["organization_id", "d5dad158-cec5-11e4-93de-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$mhe90XOS2jYTiFzmVdwf2ePqN0YRSeBNDxWmiMkOC3lrcNB3RUHqi"], ["created_at", "2015-03-20 05:56:21.981330"], ["updated_at", "2015-03-20 05:56:21.981330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.984256"], ["updated_at", "2015-03-20 05:56:21.984256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5dc45c4-cec5-11e4-8222-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5dcb676-cec5-11e4-94a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5dc45c4-cec5-11e4-8222-705681abff85"], ["organization_id", "d5dcb676-cec5-11e4-94a4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:21.987218"], ["updated_at", "2015-03-20 05:56:21.987218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$mOSmM7TKw1LnCI5nDXDESeiND4WFTbE/lafKsMB2g1TOAurRMrnzO"], ["created_at", "2015-03-20 05:56:21.993058"], ["updated_at", "2015-03-20 05:56:21.993058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:21.994534"], ["user_id", "d5de0fbc-cec5-11e4-b22d-705681abff85"], ["created_at", "2015-03-20 05:56:21.995683"], ["updated_at", "2015-03-20 05:56:21.995683"], ["token", "xTJy6SmUmw8RJAYkcvIwHzj2faR1otgCOWESQdOFod4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:21.999729"], ["updated_at", "2015-03-20 05:56:21.999729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5de0fbc-cec5-11e4-b22d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5df44ae-cec5-11e4-9c57-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5de0fbc-cec5-11e4-b22d-705681abff85"], ["organization_id", "d5df44ae-cec5-11e4-9c57-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.005373"], ["updated_at", "2015-03-20 05:56:22.005373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$NgDDGMB7itLlb6eTsvtWTOoIeE1iI17Qv9mwNqfW.gk/Njh7Dc/Em"], ["created_at", "2015-03-20 05:56:22.009808"], ["updated_at", "2015-03-20 05:56:22.009808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.012672"], ["updated_at", "2015-03-20 05:56:22.012672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5e09e6c-cec5-11e4-8e46-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5e10c30-cec5-11e4-8d7a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5e09e6c-cec5-11e4-8e46-705681abff85"], ["organization_id", "d5e10c30-cec5-11e4-8d7a-705681abff85"], ["created_at", "2015-03-20 05:56:22.016018"], ["updated_at", "2015-03-20 05:56:22.016018"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$50hWx4D7NyrSuXAk5azWSOi.OFZAuF9z7GhgRJMYy0DyjwftjNCnO"], ["created_at", "2015-03-20 05:56:22.035330"], ["updated_at", "2015-03-20 05:56:22.035330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.037119"], ["user_id", "d5e48b44-cec5-11e4-bc20-705681abff85"], ["created_at", "2015-03-20 05:56:22.037901"], ["updated_at", "2015-03-20 05:56:22.037901"], ["token", "QbpC8T_CR15hUy9EFbSdbvQM0kd6IWW7cLentHbrKqI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.042148"], ["updated_at", "2015-03-20 05:56:22.042148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5e48b44-cec5-11e4-bc20-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5e59048-cec5-11e4-a77a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5e48b44-cec5-11e4-bc20-705681abff85"], ["organization_id", "d5e59048-cec5-11e4-a77a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.045369"], ["updated_at", "2015-03-20 05:56:22.045369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$fbXayETOjik7Nr.UtEuLAOf1CYTLUUMjSAqJD8axZ0wuwYvx22PSm"], ["created_at", "2015-03-20 05:56:22.049704"], ["updated_at", "2015-03-20 05:56:22.049704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.052986"], ["updated_at", "2015-03-20 05:56:22.052986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5e6b6a8-cec5-11e4-ba8b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5e7340c-cec5-11e4-a0cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d5e6b6a8-cec5-11e4-ba8b-705681abff85"], ["organization_id", "d5e7340c-cec5-11e4-a0cc-705681abff85"], ["created_at", "2015-03-20 05:56:22.055917"], ["updated_at", "2015-03-20 05:56:22.055917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.061633' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QbpC8T_CR15hUy9EFbSdbvQM0kd6IWW7cLentHbrKqI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.063988"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.065547"], ["id", "d5e4edd2-cec5-11e4-94c3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5e48b44-cec5-11e4-bc20-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "d5e48b44-cec5-11e4-bc20-705681abff85"]] Completed 200 OK in 14ms (Views: 3.3ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$KQ7MSKUGP2/qUBdei3oSjumPjsEMsfOvhMw7v9LbukJDunHFsBXoi"], ["created_at", "2015-03-20 05:56:22.081261"], ["updated_at", "2015-03-20 05:56:22.081261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.083978"], ["user_id", "d5eb9efc-cec5-11e4-8c1e-705681abff85"], ["created_at", "2015-03-20 05:56:22.085157"], ["updated_at", "2015-03-20 05:56:22.085157"], ["token", "MuxIZqe6AHPnpZx5nJ-FVajAdcJxA2yrSRQ3zhSryEY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.088529"], ["updated_at", "2015-03-20 05:56:22.088529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5eb9efc-cec5-11e4-8c1e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5ec9f46-cec5-11e4-b481-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5eb9efc-cec5-11e4-8c1e-705681abff85"], ["organization_id", "d5ec9f46-cec5-11e4-b481-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.091573"], ["updated_at", "2015-03-20 05:56:22.091573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$FX6KQ5kY/P1FCZ8.2H55h.Yn4pNvJeKpwRPho4spIEYWFVI9UiIsa"], ["created_at", "2015-03-20 05:56:22.101622"], ["updated_at", "2015-03-20 05:56:22.101622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.103604"], ["user_id", "d5eeab2e-cec5-11e4-86d4-705681abff85"], ["created_at", "2015-03-20 05:56:22.104369"], ["updated_at", "2015-03-20 05:56:22.104369"], ["token", "lxnvumQ805lJNsxleQ4aLSLbz-b8xP0bvlCxxtcxr8I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.107672"], ["updated_at", "2015-03-20 05:56:22.107672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5eeab2e-cec5-11e4-86d4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5ef8cec-cec5-11e4-8510-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5eeab2e-cec5-11e4-86d4-705681abff85"], ["organization_id", "d5ef8cec-cec5-11e4-8510-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.110807"], ["updated_at", "2015-03-20 05:56:22.110807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/d5ef8cec-cec5-11e4-8510-705681abff85" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"d5ef8cec-cec5-11e4-8510-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.115660' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lxnvumQ805lJNsxleQ4aLSLbz-b8xP0bvlCxxtcxr8I"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.117067"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.118043"], ["id", "d5ef14ec-cec5-11e4-9f8d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d5ef8cec-cec5-11e4-8510-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5eeab2e-cec5-11e4-86d4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd5eeab2e-cec5-11e4-86d4-705681abff85' LIMIT 1 [["organization_id", "d5ef8cec-cec5-11e4-8510-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d5ef8cec-cec5-11e4-8510-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$gd05e.KgM7mR8hz1kx6mXu0cyzBbBKASvYgmpBrNSBU9ERhrfNR6G"], ["created_at", "2015-03-20 05:56:22.128745"], ["updated_at", "2015-03-20 05:56:22.128745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.130264"], ["user_id", "d5f2c4fc-cec5-11e4-a14f-705681abff85"], ["created_at", "2015-03-20 05:56:22.130999"], ["updated_at", "2015-03-20 05:56:22.130999"], ["token", "jHJ3peVEqIygK4n-6qOy1maKfH05J9JQSLkJs0g15S0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.134145"], ["updated_at", "2015-03-20 05:56:22.134145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5f2c4fc-cec5-11e4-a14f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5f394fe-cec5-11e4-bd62-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5f2c4fc-cec5-11e4-a14f-705681abff85"], ["organization_id", "d5f394fe-cec5-11e4-bd62-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.137248"], ["updated_at", "2015-03-20 05:56:22.137248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$glZlixqBC74P18nibWvRnuVLyE/zqrLIGN5jpvBRXi8NkJt.NCGKW"], ["created_at", "2015-03-20 05:56:22.147162"], ["updated_at", "2015-03-20 05:56:22.147162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.148918"], ["user_id", "d5f59844-cec5-11e4-8194-705681abff85"], ["created_at", "2015-03-20 05:56:22.149717"], ["updated_at", "2015-03-20 05:56:22.149717"], ["token", "k-D3sxDYD7JaG9CjCRgKbJF-OCsxtdhIJsymJ_-BALM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.153352"], ["updated_at", "2015-03-20 05:56:22.153352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5f59844-cec5-11e4-8194-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5f6847a-cec5-11e4-9acf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5f59844-cec5-11e4-8194-705681abff85"], ["organization_id", "d5f6847a-cec5-11e4-9acf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.156377"], ["updated_at", "2015-03-20 05:56:22.156377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.161048' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "k-D3sxDYD7JaG9CjCRgKbJF-OCsxtdhIJsymJ_-BALM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.162449"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.163341"], ["id", "d5f60090-cec5-11e4-b470-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5f59844-cec5-11e4-8194-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.169466"], ["updated_at", "2015-03-20 05:56:22.169466"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d5f8fba6-cec5-11e4-bdee-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5f59844-cec5-11e4-8194-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5f8fba6-cec5-11e4-bdee-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5f59844-cec5-11e4-8194-705681abff85"], ["admin", "t"], ["organization_id", "d5f8fba6-cec5-11e4-bdee-705681abff85"], ["created_at", "2015-03-20 05:56:22.173866"], ["updated_at", "2015-03-20 05:56:22.173866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.5ms | ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$eWCyIs9k4psCtFPc5R62JO5LMwRHKngfr7RB40m9rxgr4HIaJ3wVq"], ["created_at", "2015-03-20 05:56:22.183598"], ["updated_at", "2015-03-20 05:56:22.183598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.185551"], ["user_id", "d5fb2926-cec5-11e4-b86a-705681abff85"], ["created_at", "2015-03-20 05:56:22.186705"], ["updated_at", "2015-03-20 05:56:22.186705"], ["token", "gqiyVkOqIKyoCQRC7e0WG1AZY_E2QJealfzH0_ANQYg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.191544"], ["updated_at", "2015-03-20 05:56:22.191544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5fb2926-cec5-11e4-b86a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd5fc5c56-cec5-11e4-a9da-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5fb2926-cec5-11e4-b86a-705681abff85"], ["organization_id", "d5fc5c56-cec5-11e4-a9da-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.195262"], ["updated_at", "2015-03-20 05:56:22.195262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.201263' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gqiyVkOqIKyoCQRC7e0WG1AZY_E2QJealfzH0_ANQYg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.203066"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.204164"], ["id", "d5fbb332-cec5-11e4-9971-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5fb2926-cec5-11e4-b86a-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$Ucd1T2gifV6G.YFJSUUOPeTcEJnmUu2/UiPV6RKlnh9dT0t4.0jAy"], ["created_at", "2015-03-20 05:56:22.215384"], ["updated_at", "2015-03-20 05:56:22.215384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.217040"], ["user_id", "d6000126-cec5-11e4-97d0-705681abff85"], ["created_at", "2015-03-20 05:56:22.217823"], ["updated_at", "2015-03-20 05:56:22.217823"], ["token", "LpHCNJogswAEKYpZ9TPA4i0XuneunlyMIhKU0_c3Aks"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.220990"], ["updated_at", "2015-03-20 05:56:22.220990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6000126-cec5-11e4-97d0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd600d600-cec5-11e4-a63f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6000126-cec5-11e4-97d0-705681abff85"], ["organization_id", "d600d600-cec5-11e4-a63f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.223980"], ["updated_at", "2015-03-20 05:56:22.223980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$TjvsebMCr3AkubsVC8m8Ou15ZQ69XEhvg/3KvdvLvQpcj30wE98qq"], ["created_at", "2015-03-20 05:56:22.234455"], ["updated_at", "2015-03-20 05:56:22.234455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.236119"], ["user_id", "d602e97c-cec5-11e4-92b7-705681abff85"], ["created_at", "2015-03-20 05:56:22.236915"], ["updated_at", "2015-03-20 05:56:22.236915"], ["token", "j31CjWzBUeGKnscLvy85VbC32ouO_9W-8DVGPZM2FtE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.240164"], ["updated_at", "2015-03-20 05:56:22.240164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd602e97c-cec5-11e4-92b7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd603c270-cec5-11e4-9d88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d602e97c-cec5-11e4-92b7-705681abff85"], ["organization_id", "d603c270-cec5-11e4-9d88-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.243610"], ["updated_at", "2015-03-20 05:56:22.243610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/d603c270-cec5-11e4-9d88-705681abff85" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"d603c270-cec5-11e4-9d88-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.249417' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "j31CjWzBUeGKnscLvy85VbC32ouO_9W-8DVGPZM2FtE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.251097"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.252282"], ["id", "d6034c46-cec5-11e4-95e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d603c270-cec5-11e4-9d88-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d602e97c-cec5-11e4-92b7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd602e97c-cec5-11e4-92b7-705681abff85' LIMIT 1 [["organization_id", "d603c270-cec5-11e4-9d88-705681abff85"]] Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$oZErDAX.fSRD/YFYlqrTk.IhikrnfFZZWnv5g1yLhDt57DAIiiLta"], ["created_at", "2015-03-20 05:56:22.265025"], ["updated_at", "2015-03-20 05:56:22.265025"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.267741"], ["user_id", "d6079d1e-cec5-11e4-9536-705681abff85"], ["created_at", "2015-03-20 05:56:22.268952"], ["updated_at", "2015-03-20 05:56:22.268952"], ["token", "TIRGwHegDbHDmBC_ghKP19iphl_jghwlpXh4hMXpxJE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.272372"], ["updated_at", "2015-03-20 05:56:22.272372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6079d1e-cec5-11e4-9536-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd608accc-cec5-11e4-9da3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6079d1e-cec5-11e4-9536-705681abff85"], ["organization_id", "d608accc-cec5-11e4-9da3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.275387"], ["updated_at", "2015-03-20 05:56:22.275387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$qWHXCrCyU2nmWT35FfFAveuJo.EqWSWxxbKH0zAKLQTkurcMD8foC"], ["created_at", "2015-03-20 05:56:22.285562"], ["updated_at", "2015-03-20 05:56:22.285562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.287731"], ["user_id", "d60ac458-cec5-11e4-8c66-705681abff85"], ["created_at", "2015-03-20 05:56:22.288470"], ["updated_at", "2015-03-20 05:56:22.288470"], ["token", "W5sjGmHaNiU7PlQiaFaVCK899BdLfZ08kac8AK0q0-k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.292447"], ["updated_at", "2015-03-20 05:56:22.292447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd60ac458-cec5-11e4-8c66-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd60bc27c-cec5-11e4-9a8a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d60ac458-cec5-11e4-8c66-705681abff85"], ["organization_id", "d60bc27c-cec5-11e4-9a8a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.295811"], ["updated_at", "2015-03-20 05:56:22.295811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-48" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-48", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.300382' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "W5sjGmHaNiU7PlQiaFaVCK899BdLfZ08kac8AK0q0-k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.301988"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.302938"], ["id", "d60b2bfa-cec5-11e4-a84a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-48"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d60ac458-cec5-11e4-8c66-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd60ac458-cec5-11e4-8c66-705681abff85' LIMIT 1 [["organization_id", "d60bc27c-cec5-11e4-9a8a-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd60bc27c-cec5-11e4-9a8a-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:56:22.309269"], ["id", "d60bc27c-cec5-11e4-9a8a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$miqp8bzgAn8UMFoi8C.to.7Z4p1cekM9UKcOQ02/LxxK3E70VCIFO"], ["created_at", "2015-03-20 05:56:22.317167"], ["updated_at", "2015-03-20 05:56:22.317167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.318847"], ["user_id", "d60f8b1e-cec5-11e4-ada3-705681abff85"], ["created_at", "2015-03-20 05:56:22.319645"], ["updated_at", "2015-03-20 05:56:22.319645"], ["token", "RS-v_KDGtlBtZG89NanZdN7JMspRSnE9pSMVjahhcLs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (1.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.323269"], ["updated_at", "2015-03-20 05:56:22.323269"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd60f8b1e-cec5-11e4-ada3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd6112dd4-cec5-11e4-b5aa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d60f8b1e-cec5-11e4-ada3-705681abff85"], ["organization_id", "d6112dd4-cec5-11e4-b5aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.334253"], ["updated_at", "2015-03-20 05:56:22.334253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-49" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-49", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.346806' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "RS-v_KDGtlBtZG89NanZdN7JMspRSnE9pSMVjahhcLs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.351199"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.353276"], ["id", "d60fec58-cec5-11e4-9f65-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-49"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d60f8b1e-cec5-11e4-ada3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd60f8b1e-cec5-11e4-ada3-705681abff85' LIMIT 1 [["organization_id", "d6112dd4-cec5-11e4-b5aa-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd6112dd4-cec5-11e4-b5aa-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$qZG2Vh7fiwR307QsbxaNse.YuC.ioUfhJaCYqFfIw3K74.HFTmM1K"], ["created_at", "2015-03-20 05:56:22.371452"], ["updated_at", "2015-03-20 05:56:22.371452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.372973"], ["user_id", "d617cdce-cec5-11e4-b85c-705681abff85"], ["created_at", "2015-03-20 05:56:22.373725"], ["updated_at", "2015-03-20 05:56:22.373725"], ["token", "vtsyCzutpnEZ3rgjyFRkhqwuhteKjP0BmZkk_IC_SrQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.376879"], ["updated_at", "2015-03-20 05:56:22.376879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd617cdce-cec5-11e4-b85c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd6189ed4-cec5-11e4-9b87-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d617cdce-cec5-11e4-b85c-705681abff85"], ["organization_id", "d6189ed4-cec5-11e4-9b87-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.379850"], ["updated_at", "2015-03-20 05:56:22.379850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$53//fbtmH33uWXOfXbWVvO5zZPfD86JIuIRODLRjsrHx1T5vI054m"], ["created_at", "2015-03-20 05:56:22.390143"], ["updated_at", "2015-03-20 05:56:22.390143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.392264"], ["user_id", "d61ab890-cec5-11e4-80bd-705681abff85"], ["created_at", "2015-03-20 05:56:22.393145"], ["updated_at", "2015-03-20 05:56:22.393145"], ["token", "IUTkG58l7UwMTJjPBn0hooj7juC5LNzMpC-OxgqHgLo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.397249"], ["updated_at", "2015-03-20 05:56:22.397249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd61ab890-cec5-11e4-80bd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd61bbba0-cec5-11e4-bf09-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d61ab890-cec5-11e4-80bd-705681abff85"], ["organization_id", "d61bbba0-cec5-11e4-bf09-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.400692"], ["updated_at", "2015-03-20 05:56:22.400692"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-51" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-51", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.408854' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IUTkG58l7UwMTJjPBn0hooj7juC5LNzMpC-OxgqHgLo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.411132"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.412192"], ["id", "d61b348c-cec5-11e4-bc62-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-51"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d61ab890-cec5-11e4-80bd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd61ab890-cec5-11e4-80bd-705681abff85' LIMIT 1 [["organization_id", "d61bbba0-cec5-11e4-bf09-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d61bbba0-cec5-11e4-bf09-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$6tgiVJHSi8W3sVTruDR.JeYldVvNYUKFIvVXZu6iXb7jI3oYtQ9ZO"], ["created_at", "2015-03-20 05:56:22.424277"], ["updated_at", "2015-03-20 05:56:22.424277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.425875"], ["user_id", "d61fdda2-cec5-11e4-b7f4-705681abff85"], ["created_at", "2015-03-20 05:56:22.426675"], ["updated_at", "2015-03-20 05:56:22.426675"], ["token", "k9HQVFSQ-Jr7JmJaRKA3gt-souRJCWHleCS09DJFE60"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.429819"], ["updated_at", "2015-03-20 05:56:22.429819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd61fdda2-cec5-11e4-b7f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd620b2fe-cec5-11e4-af37-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d61fdda2-cec5-11e4-b7f4-705681abff85"], ["organization_id", "d620b2fe-cec5-11e4-af37-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.433201"], ["updated_at", "2015-03-20 05:56:22.433201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$0wH6rguju67Qzcb8xpnxy.llGJExnki/3KGFcz9AiFNyFjvUmJaq2"], ["created_at", "2015-03-20 05:56:22.442832"], ["updated_at", "2015-03-20 05:56:22.442832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.444426"], ["user_id", "d622b43c-cec5-11e4-bcd8-705681abff85"], ["created_at", "2015-03-20 05:56:22.445191"], ["updated_at", "2015-03-20 05:56:22.445191"], ["token", "5z7aDiEuGtkNovfHdTojxwJlWniNdMsXPolv8Y_KziA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.448358"], ["updated_at", "2015-03-20 05:56:22.448358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd622b43c-cec5-11e4-bcd8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd62386fa-cec5-11e4-bb1c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d622b43c-cec5-11e4-bcd8-705681abff85"], ["organization_id", "d62386fa-cec5-11e4-bb1c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.451838"], ["updated_at", "2015-03-20 05:56:22.451838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/d62386fa-cec5-11e4-bb1c-705681abff85" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"d62386fa-cec5-11e4-bb1c-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.456992' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5z7aDiEuGtkNovfHdTojxwJlWniNdMsXPolv8Y_KziA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.458410"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.459372"], ["id", "d6231328-cec5-11e4-b86a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d62386fa-cec5-11e4-bb1c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d622b43c-cec5-11e4-bcd8-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd622b43c-cec5-11e4-bcd8-705681abff85' LIMIT 1 [["organization_id", "d62386fa-cec5-11e4-bb1c-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd62386fa-cec5-11e4-bb1c-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 05:56:22.465301"], ["id", "d62386fa-cec5-11e4-bb1c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$NORL2U77ulWxMQGAWXdOm.61e3Sml.ObFr2Y9rBuvMYDDBLJjt01S"], ["created_at", "2015-03-20 05:56:22.472434"], ["updated_at", "2015-03-20 05:56:22.472434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.474090"], ["user_id", "d62736ce-cec5-11e4-a6a1-705681abff85"], ["created_at", "2015-03-20 05:56:22.474882"], ["updated_at", "2015-03-20 05:56:22.474882"], ["token", "2tUUm3aRIyxb_onrDPhaz6eptEsV2foYJYXgP1e24jc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.478100"], ["updated_at", "2015-03-20 05:56:22.478100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd62736ce-cec5-11e4-a6a1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd62810b2-cec5-11e4-91ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d62736ce-cec5-11e4-a6a1-705681abff85"], ["organization_id", "d62810b2-cec5-11e4-91ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.481091"], ["updated_at", "2015-03-20 05:56:22.481091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/d62810b2-cec5-11e4-91ae-705681abff85" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"d62810b2-cec5-11e4-91ae-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.486109' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2tUUm3aRIyxb_onrDPhaz6eptEsV2foYJYXgP1e24jc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.487525"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.488432"], ["id", "d6279c0e-cec5-11e4-8a54-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d62810b2-cec5-11e4-91ae-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d62736ce-cec5-11e4-a6a1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd62736ce-cec5-11e4-a6a1-705681abff85' LIMIT 1 [["organization_id", "d62810b2-cec5-11e4-91ae-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd62810b2-cec5-11e4-91ae-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$C3P77x0v7rRv/RG/RapaMu4BYsQSOE7c8KA7raFT7dDJesq72JyYC"], ["created_at", "2015-03-20 05:56:22.501904"], ["updated_at", "2015-03-20 05:56:22.501904"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.503671"], ["user_id", "d62bb78a-cec5-11e4-ab5b-705681abff85"], ["created_at", "2015-03-20 05:56:22.504637"], ["updated_at", "2015-03-20 05:56:22.504637"], ["token", "8G6WSrPBrex-501djK2SjWaNeWIyLcwVMJY0nVvfVEw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.508069"], ["updated_at", "2015-03-20 05:56:22.508069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd62bb78a-cec5-11e4-ab5b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd62ca3ca-cec5-11e4-8627-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d62bb78a-cec5-11e4-ab5b-705681abff85"], ["organization_id", "d62ca3ca-cec5-11e4-8627-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.511275"], ["updated_at", "2015-03-20 05:56:22.511275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$znXs5R5N5LDvF0b2vsggPO/Md.iV8RNSNa3CXEsNcjL2mmu/msEbO"], ["created_at", "2015-03-20 05:56:22.530518"], ["updated_at", "2015-03-20 05:56:22.530518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.532232"], ["user_id", "d63015be-cec5-11e4-b6eb-705681abff85"], ["created_at", "2015-03-20 05:56:22.533149"], ["updated_at", "2015-03-20 05:56:22.533149"], ["token", "lL5Dh8MPbqVaF9KUmXDy_J1pS6d1qY_iz4PG7Sa8u7Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.537234"], ["updated_at", "2015-03-20 05:56:22.537234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd63015be-cec5-11e4-b6eb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd63117fc-cec5-11e4-b23b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d63015be-cec5-11e4-b6eb-705681abff85"], ["organization_id", "d63117fc-cec5-11e4-b23b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.540448"], ["updated_at", "2015-03-20 05:56:22.540448"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-56" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-56", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.545167' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "lL5Dh8MPbqVaF9KUmXDy_J1pS6d1qY_iz4PG7Sa8u7Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.546980"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.548472"], ["id", "d6309052-cec5-11e4-bfdd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-56"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d63015be-cec5-11e4-b6eb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd63015be-cec5-11e4-b6eb-705681abff85' LIMIT 1 [["organization_id", "d63117fc-cec5-11e4-b23b-705681abff85"]] Completed 200 OK in 10ms (Views: 1.1ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$MmOkX/LxJjHppn2nlQa.Zu80HJmNRsVCEbzHMdYNZNs7/SbVc3jum"], ["created_at", "2015-03-20 05:56:22.562279"], ["updated_at", "2015-03-20 05:56:22.562279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.564361"], ["user_id", "d634eefe-cec5-11e4-86ec-705681abff85"], ["created_at", "2015-03-20 05:56:22.565106"], ["updated_at", "2015-03-20 05:56:22.565106"], ["token", "lc_WjwFZCnF0A0963QJvTVc1K4IHRRxeS-Yd6tKVK14"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.570158"], ["updated_at", "2015-03-20 05:56:22.570158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd634eefe-cec5-11e4-86ec-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd63623f0-cec5-11e4-9a60-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d634eefe-cec5-11e4-86ec-705681abff85"], ["organization_id", "d63623f0-cec5-11e4-9a60-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.573870"], ["updated_at", "2015-03-20 05:56:22.573870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$AybxyfUmg/CI58OF5DrJWu2D3QNBAivYd/W1y7.F3MFePus.60gc6"], ["created_at", "2015-03-20 05:56:22.587394"], ["updated_at", "2015-03-20 05:56:22.587394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.589849"], ["user_id", "d638cf88-cec5-11e4-9977-705681abff85"], ["created_at", "2015-03-20 05:56:22.590753"], ["updated_at", "2015-03-20 05:56:22.590753"], ["token", "ubpr3u3DQdoiME8pPYCEoFBDMOSBbSDy3SJalZ1eENA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.595626"], ["updated_at", "2015-03-20 05:56:22.595626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd638cf88-cec5-11e4-9977-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd63a0538-cec5-11e4-8f51-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d638cf88-cec5-11e4-9977-705681abff85"], ["organization_id", "d63a0538-cec5-11e4-8f51-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.599407"], ["updated_at", "2015-03-20 05:56:22.599407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-58" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-58", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.605198' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ubpr3u3DQdoiME8pPYCEoFBDMOSBbSDy3SJalZ1eENA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.606611"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.607550"], ["id", "d6394d1e-cec5-11e4-a204-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-58"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d638cf88-cec5-11e4-9977-705681abff85"]] Completed 200 OK in 7ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$9wSj8CdfLfL2.6vBARVfG.MUNnHgAVTL2k.mspfmUDi2JsvR7Ew06"], ["created_at", "2015-03-20 05:56:22.617207"], ["updated_at", "2015-03-20 05:56:22.617207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 05:56:22.618922"], ["user_id", "d63d4f9a-cec5-11e4-815c-705681abff85"], ["created_at", "2015-03-20 05:56:22.620484"], ["updated_at", "2015-03-20 05:56:22.620484"], ["token", "eJiVUwKz0nYM__w2BfA6AD6qj6necNMiNdeudzujyUU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.624474"], ["updated_at", "2015-03-20 05:56:22.624474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd63d4f9a-cec5-11e4-815c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd63e6ac4-cec5-11e4-8edb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d63d4f9a-cec5-11e4-815c-705681abff85"], ["organization_id", "d63e6ac4-cec5-11e4-8edb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.628763"], ["updated_at", "2015-03-20 05:56:22.628763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-19 22:56:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 05:56:22.633341' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eJiVUwKz0nYM__w2BfA6AD6qj6necNMiNdeudzujyUU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 05:56:22.635107"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 05:56:22.637103"], ["id", "d63dd712-cec5-11e4-8d01-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 7ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$WVdrbrGNrLSNbUmwogrS9eQ05P84r27YiOaTB3jvU0RVGo3dgxeFy"], ["created_at", "2015-03-20 05:56:22.646030"], ["updated_at", "2015-03-20 05:56:22.646030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.650580"], ["updated_at", "2015-03-20 05:56:22.650580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd641c4bc-cec5-11e4-a1a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd6427088-cec5-11e4-9f99-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d641c4bc-cec5-11e4-a1a4-705681abff85"], ["organization_id", "d6427088-cec5-11e4-9f99-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.654486"], ["updated_at", "2015-03-20 05:56:22.654486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd641c4bc-cec5-11e4-a1a4-705681abff85' LIMIT 1 [["organization_id", "d6427088-cec5-11e4-9f99-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$7o8iiTaU3nlxRf5Kb3yUIe3tzJ6OMScgCI54yEKPjjS9hE2T3FOVq"], ["created_at", "2015-03-20 05:56:22.661630"], ["updated_at", "2015-03-20 05:56:22.661630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.664698"], ["updated_at", "2015-03-20 05:56:22.664698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd644160e-cec5-11e4-825e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd6448ac6-cec5-11e4-94d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d644160e-cec5-11e4-825e-705681abff85"], ["organization_id", "d6448ac6-cec5-11e4-94d5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.668082"], ["updated_at", "2015-03-20 05:56:22.668082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$jd9KuSn1KH18HYfa66Qt/.bQJhRewt9xQ/8hpKHNzYrakREgz58Ey"], ["created_at", "2015-03-20 05:56:22.672748"], ["updated_at", "2015-03-20 05:56:22.672748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd645cb98-cec5-11e4-8c79-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd6448ac6-cec5-11e4-94d5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d645cb98-cec5-11e4-8c79-705681abff85"], ["organization_id", "d6448ac6-cec5-11e4-94d5-705681abff85"], ["created_at", "2015-03-20 05:56:22.676192"], ["updated_at", "2015-03-20 05:56:22.676192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$9LLc7SgA04gQchPa7u2gieYpXVsuuKk4vSjVuyoVqno7EhoQUI4YC"], ["created_at", "2015-03-20 05:56:22.681746"], ["updated_at", "2015-03-20 05:56:22.681746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.686680"], ["updated_at", "2015-03-20 05:56:22.686680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6472948-cec5-11e4-8f89-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd647ecca-cec5-11e4-9427-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6472948-cec5-11e4-8f89-705681abff85"], ["organization_id", "d647ecca-cec5-11e4-9427-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.690195"], ["updated_at", "2015-03-20 05:56:22.690195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$0tcDN6O.us7WQMH77ZJHG.Lc5NbDtXl./lSBaws9A7idA0QSfpcbm"], ["created_at", "2015-03-20 05:56:22.694933"], ["updated_at", "2015-03-20 05:56:22.694933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6492ae0-cec5-11e4-8e06-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd647ecca-cec5-11e4-9427-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d6492ae0-cec5-11e4-8e06-705681abff85"], ["organization_id", "d647ecca-cec5-11e4-9427-705681abff85"], ["created_at", "2015-03-20 05:56:22.698228"], ["updated_at", "2015-03-20 05:56:22.698228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd6472948-cec5-11e4-8f89-705681abff85' LIMIT 1 [["organization_id", "d647ecca-cec5-11e4-9427-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$88qHlfCaUgrv7TmU9KaJJu56/X3zdxJcjVejwPc55Vwx/iAFGaGmC"], ["created_at", "2015-03-20 05:56:22.705268"], ["updated_at", "2015-03-20 05:56:22.705268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.708383"], ["updated_at", "2015-03-20 05:56:22.708383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd64abe8c-cec5-11e4-a349-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd64b3524-cec5-11e4-8d3b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d64abe8c-cec5-11e4-a349-705681abff85"], ["organization_id", "d64b3524-cec5-11e4-8d3b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.711491"], ["updated_at", "2015-03-20 05:56:22.711491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$HzmdY4OeN6tDJmpPDuoZ5.O8kxGV9aTB3MygCTgTmlzOJ6I.TnSv."], ["created_at", "2015-03-20 05:56:22.716196"], ["updated_at", "2015-03-20 05:56:22.716196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd64c743e-cec5-11e4-9a8b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd64b3524-cec5-11e4-8d3b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d64c743e-cec5-11e4-9a8b-705681abff85"], ["organization_id", "d64b3524-cec5-11e4-8d3b-705681abff85"], ["created_at", "2015-03-20 05:56:22.720793"], ["updated_at", "2015-03-20 05:56:22.720793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd64abe8c-cec5-11e4-a349-705681abff85' LIMIT 1 [["organization_id", "d64b3524-cec5-11e4-8d3b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$SlrpZuCLoux8mceYzY7nJOuFZqpBSwgAFllb9Nno68m99PCDa0db6"], ["created_at", "2015-03-20 05:56:22.728002"], ["updated_at", "2015-03-20 05:56:22.728002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.731055"], ["updated_at", "2015-03-20 05:56:22.731055"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd64e36c0-cec5-11e4-9ca7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd64ead1c-cec5-11e4-8bc6-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d64e36c0-cec5-11e4-9ca7-705681abff85"], ["organization_id", "d64ead1c-cec5-11e4-8bc6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.736538"], ["updated_at", "2015-03-20 05:56:22.736538"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$hQ/PlDe4UwvZI.jAYkAlDOPiuRPpCuj.1JhuidPQ6LXbq8lLo19NK"], ["created_at", "2015-03-20 05:56:22.746367"], ["updated_at", "2015-03-20 05:56:22.746367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6510792-cec5-11e4-8260-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd64ead1c-cec5-11e4-8bc6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d6510792-cec5-11e4-8260-705681abff85"], ["organization_id", "d64ead1c-cec5-11e4-8bc6-705681abff85"], ["created_at", "2015-03-20 05:56:22.749797"], ["updated_at", "2015-03-20 05:56:22.749797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd64e36c0-cec5-11e4-9ca7-705681abff85' LIMIT 1 [["organization_id", "d64ead1c-cec5-11e4-8bc6-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$GJdsLXWnFN3NWJYhd2CkielAQJ2hM9AmftwTWLwsrhfM7A9cK/N16"], ["created_at", "2015-03-20 05:56:22.758751"], ["updated_at", "2015-03-20 05:56:22.758751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.761958"], ["updated_at", "2015-03-20 05:56:22.761958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd652e878-cec5-11e4-801b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd6536532-cec5-11e4-a469-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d652e878-cec5-11e4-801b-705681abff85"], ["organization_id", "d6536532-cec5-11e4-a469-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.765249"], ["updated_at", "2015-03-20 05:56:22.765249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$4XMKtjuoQEzuCdczdE57uuyGom3ynr58W23Rx6/qT/DjculLxqZTm"], ["created_at", "2015-03-20 05:56:22.770922"], ["updated_at", "2015-03-20 05:56:22.770922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.774221"], ["updated_at", "2015-03-20 05:56:22.774221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd654c3b4-cec5-11e4-b5a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd6554348-cec5-11e4-8219-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d654c3b4-cec5-11e4-b5a2-705681abff85"], ["organization_id", "d6554348-cec5-11e4-8219-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.777483"], ["updated_at", "2015-03-20 05:56:22.777483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd654c3b4-cec5-11e4-b5a2-705681abff85' LIMIT 1 [["organization_id", "d6554348-cec5-11e4-8219-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$SUkAEQJo6S3UIVQ.msrwz.C9y4tagpXP9lrz5CO5wnn0hoE6.RQ/y"], ["created_at", "2015-03-20 05:56:22.784239"], ["updated_at", "2015-03-20 05:56:22.784239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.787724"], ["updated_at", "2015-03-20 05:56:22.787724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd656cee8-cec5-11e4-ad26-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd6575250-cec5-11e4-9519-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d656cee8-cec5-11e4-ad26-705681abff85"], ["organization_id", "d6575250-cec5-11e4-9519-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.791390"], ["updated_at", "2015-03-20 05:56:22.791390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd656cee8-cec5-11e4-ad26-705681abff85' LIMIT 1 [["organization_id", "d6575250-cec5-11e4-9519-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$YWnqQB2dlnMh6ImCEjr/ueJIWdBxu5l3lB4sS2b83O4AdDGpScNMu"], ["created_at", "2015-03-20 05:56:22.798596"], ["updated_at", "2015-03-20 05:56:22.798596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.801831"], ["updated_at", "2015-03-20 05:56:22.801831"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd658fd12-cec5-11e4-afe4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd659807a-cec5-11e4-9a35-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d658fd12-cec5-11e4-afe4-705681abff85"], ["organization_id", "d659807a-cec5-11e4-9a35-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 05:56:22.806459"], ["updated_at", "2015-03-20 05:56:22.806459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd658fd12-cec5-11e4-afe4-705681abff85' LIMIT 1 [["organization_id", "d659807a-cec5-11e4-9a35-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$LwNXDdJwoBo/ZIb2LNNoEON54KqxCcCM9Ntu3JMm1GAk1DILQ7cqG"], ["created_at", "2015-03-20 05:56:22.814125"], ["updated_at", "2015-03-20 05:56:22.814125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$BDrO30THKF4gRWWlou3SCutle3.rvFmTCs8VscLijtcFE6pQxAeJ."], ["created_at", "2015-03-20 05:56:22.818288"], ["updated_at", "2015-03-20 05:56:22.818288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.822306"], ["updated_at", "2015-03-20 05:56:22.822306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd65bfdfa-cec5-11e4-b0c8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd65cb70e-cec5-11e4-a2d7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d65bfdfa-cec5-11e4-b0c8-705681abff85"], ["organization_id", "d65cb70e-cec5-11e4-a2d7-705681abff85"], ["created_at", "2015-03-20 05:56:22.828634"], ["updated_at", "2015-03-20 05:56:22.828634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$v.bIrJF7k64CM4jmsA4eX.sOWKkYoR2OcY0BJuOKqkljrrVEXz3sm"], ["created_at", "2015-03-20 05:56:22.835268"], ["updated_at", "2015-03-20 05:56:22.835268"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$7OhyhahmNRjmTzeby8/JJOfvPWhjfdwgNcoQE581kkKcDK.ZQjXFG"], ["created_at", "2015-03-20 05:56:22.841116"], ["updated_at", "2015-03-20 05:56:22.841116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.844224"], ["updated_at", "2015-03-20 05:56:22.844224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd65f7994-cec5-11e4-9a30-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd65fef64-cec5-11e4-8603-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d65f7994-cec5-11e4-9a30-705681abff85"], ["organization_id", "d65fef64-cec5-11e4-8603-705681abff85"], ["created_at", "2015-03-20 05:56:22.847289"], ["updated_at", "2015-03-20 05:56:22.847289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd65e9a6a-cec5-11e4-a2ff-705681abff85' LIMIT 1 [["organization_id", "d65fef64-cec5-11e4-8603-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$vcmfD3nXlyvt/qzl6ITF0.Yx4ErKVDY/1DxxpoCD1liwgNYTLPqLW"], ["created_at", "2015-03-20 05:56:22.854503"], ["updated_at", "2015-03-20 05:56:22.854503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$SwAZjheqAWPQmWdGScIiFuaHRI/FX/A0wHjQTnGji1FYAn0b5N4JC"], ["created_at", "2015-03-20 05:56:22.858933"], ["updated_at", "2015-03-20 05:56:22.858933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.861995"], ["updated_at", "2015-03-20 05:56:22.861995"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd662301c-cec5-11e4-aacc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd662a646-cec5-11e4-b7ad-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d662301c-cec5-11e4-aacc-705681abff85"], ["organization_id", "d662a646-cec5-11e4-b7ad-705681abff85"], ["created_at", "2015-03-20 05:56:22.865058"], ["updated_at", "2015-03-20 05:56:22.865058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd6618770-cec5-11e4-b413-705681abff85' LIMIT 1 [["organization_id", "d662a646-cec5-11e4-b7ad-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$QoPo5Xjv39gbFX6GScWFau4/iznaDBUE.C2gu0H9KW.OqcBrZvaZ6"], ["created_at", "2015-03-20 05:56:22.872561"], ["updated_at", "2015-03-20 05:56:22.872561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$P8.cV1xprtcYtFNxVsXVXu/GfSadcRdp3z0yPxV/aGZx.oFTQRcnO"], ["created_at", "2015-03-20 05:56:22.877006"], ["updated_at", "2015-03-20 05:56:22.877006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.880330"], ["updated_at", "2015-03-20 05:56:22.880330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd664f554-cec5-11e4-b2ff-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd66572e0-cec5-11e4-8954-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d664f554-cec5-11e4-b2ff-705681abff85"], ["organization_id", "d66572e0-cec5-11e4-8954-705681abff85"], ["created_at", "2015-03-20 05:56:22.883534"], ["updated_at", "2015-03-20 05:56:22.883534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd6644938-cec5-11e4-992a-705681abff85' LIMIT 1 [["organization_id", "d66572e0-cec5-11e4-8954-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$uqRxBFKN06fb5Aey4kgBpereiRmMAxt3hUGRA8JCiKWX1ld8RPu4m"], ["created_at", "2015-03-20 05:56:22.890773"], ["updated_at", "2015-03-20 05:56:22.890773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.893930"], ["updated_at", "2015-03-20 05:56:22.893930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd6670ce0-cec5-11e4-ac7f-705681abff85' LIMIT 1 [["organization_id", "d667862a-cec5-11e4-8900-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$GD.0Bh2qdHClBqY7FD3xW.9DZLsDoLcA14.JgWHgP5ZpSqJ.OHWnC"], ["created_at", "2015-03-20 05:56:22.901348"], ["updated_at", "2015-03-20 05:56:22.901348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.906071"], ["updated_at", "2015-03-20 05:56:22.906071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd668ba2c-cec5-11e4-be1d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd669647c-cec5-11e4-90ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d668ba2c-cec5-11e4-be1d-705681abff85"], ["organization_id", "d669647c-cec5-11e4-90ac-705681abff85"], ["created_at", "2015-03-20 05:56:22.909519"], ["updated_at", "2015-03-20 05:56:22.909519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$f6A8OQ..HkE6iflnIxQoJO5ud7yWI4wyZoEDUO/BcHS/SeVMMLF4q"], ["created_at", "2015-03-20 05:56:22.915072"], ["updated_at", "2015-03-20 05:56:22.915072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.918205"], ["updated_at", "2015-03-20 05:56:22.918205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd66ac24a-cec5-11e4-b930-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd66b3c3e-cec5-11e4-b975-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d66ac24a-cec5-11e4-b930-705681abff85"], ["organization_id", "d66b3c3e-cec5-11e4-b975-705681abff85"], ["created_at", "2015-03-20 05:56:22.923695"], ["updated_at", "2015-03-20 05:56:22.923695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd66ac24a-cec5-11e4-b930-705681abff85' LIMIT 1 [["organization_id", "d66b3c3e-cec5-11e4-b975-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$eCgkKfQPVsB5GR19rXODT.leOguyTZaoNHTp.3UomX5DgM4s2GZva"], ["created_at", "2015-03-20 05:56:22.932994"], ["updated_at", "2015-03-20 05:56:22.932994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.936513"], ["updated_at", "2015-03-20 05:56:22.936513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd66d7e4a-cec5-11e4-a488-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd66e2444-cec5-11e4-9176-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d66d7e4a-cec5-11e4-a488-705681abff85"], ["organization_id", "d66e2444-cec5-11e4-9176-705681abff85"], ["created_at", "2015-03-20 05:56:22.941460"], ["updated_at", "2015-03-20 05:56:22.941460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd66d7e4a-cec5-11e4-a488-705681abff85' LIMIT 1 [["organization_id", "d66e2444-cec5-11e4-9176-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$iZlPFBta7KUBxWpQyxKfGOr956J.RRKCo1NRuEtjed8vVKWDWtUUe"], ["created_at", "2015-03-20 05:56:22.948148"], ["updated_at", "2015-03-20 05:56:22.948148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.951240"], ["updated_at", "2015-03-20 05:56:22.951240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd66fccfe-cec5-11e4-96d2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd6704418-cec5-11e4-8315-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d66fccfe-cec5-11e4-96d2-705681abff85"], ["organization_id", "d6704418-cec5-11e4-8315-705681abff85"], ["created_at", "2015-03-20 05:56:22.954923"], ["updated_at", "2015-03-20 05:56:22.954923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd66fccfe-cec5-11e4-96d2-705681abff85' LIMIT 1 [["organization_id", "d6704418-cec5-11e4-8315-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$mcVFdwVH8FcPHPefzcvewOea8MEY7pIvd3C7aJJJkXvNgQNHJC6bW"], ["created_at", "2015-03-20 05:56:22.962030"], ["updated_at", "2015-03-20 05:56:22.962030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.965605"], ["updated_at", "2015-03-20 05:56:22.965605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd671ed4a-cec5-11e4-a81f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'd67276a2-cec5-11e4-a9b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d671ed4a-cec5-11e4-a81f-705681abff85"], ["organization_id", "d67276a2-cec5-11e4-a9b7-705681abff85"], ["created_at", "2015-03-20 05:56:22.968790"], ["updated_at", "2015-03-20 05:56:22.968790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd671ed4a-cec5-11e4-a81f-705681abff85' LIMIT 1 [["organization_id", "d67276a2-cec5-11e4-a9b7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.983669"], ["updated_at", "2015-03-20 05:56:22.983669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:22.994711"], ["updated_at", "2015-03-20 05:56:22.994711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:23.005080"], ["updated_at", "2015-03-20 05:56:23.005080"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:23.029453"], ["updated_at", "2015-03-20 05:56:23.029453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d67c3494-cec5-11e4-b2e5-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:23.034306"], ["updated_at", "2015-03-20 05:56:23.034306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:23.055113"], ["updated_at", "2015-03-20 05:56:23.055113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'd68034b8-cec5-11e4-8927-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "d68034b8-cec5-11e4-8927-705681abff85"], ["created_at", "2015-03-20 05:56:23.059740"], ["updated_at", "2015-03-20 05:56:23.059740"], ["token", "SKbR4bTibdasilO6zxLDFn43njZXfiu1XKs9ACU8zfc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 05:56:23.065545"], ["updated_at", "2015-03-20 05:56:23.065545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'd681d282-cec5-11e4-ab58-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "d681d282-cec5-11e4-ab58-705681abff85"], ["created_at", "2015-03-20 05:56:23.071258"], ["updated_at", "2015-03-20 05:56:23.071258"], ["token", "1sJzlv4RL2gMf86f0MpvbA7wuytsCQdW-IfjMb8d5SU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d681d282-cec5-11e4-ab58-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'd681d282-cec5-11e4-ab58-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d681d282-cec5-11e4-ab58-705681abff86"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'd681d282-cec5-11e4-ab58-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (22.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$ADQaIR3FJgUB4SKoC9PsdOcRmh9f9aiaS5IB4JoUL3snJsdhApjDm"], ["created_at", "2015-03-20 07:14:17.148029"], ["updated_at", "2015-03-20 07:14:17.148029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.179368"], ["updated_at", "2015-03-20 07:14:17.179368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (7.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'b87eea58-ced0-11e4-ac5d-705681abff85') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "b87eea58-ced0-11e4-ac5d-705681abff85"], ["created_at", "2015-03-20 07:14:17.208346"], ["updated_at", "2015-03-20 07:14:17.208346"], ["token", "9TbY3ba1xAkZykdkeTeLgSqd6sSgw34QJ8cVywb7wuw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b87d93c4-ced0-11e4-925b-705681abff85' LIMIT 1 [["organization_id", "b87eea58-ced0-11e4-ac5d-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$oYkxTjUJPHn6nlGQQXDyneOZcCQeCdw9b31pSYZTvXaC4GyGaQLzu"], ["created_at", "2015-03-20 07:14:17.239499"], ["updated_at", "2015-03-20 07:14:17.239499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.243209"], ["updated_at", "2015-03-20 07:14:17.243209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'b888a30e-ced0-11e4-bda7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "b888a30e-ced0-11e4-bda7-705681abff85"], ["created_at", "2015-03-20 07:14:17.246705"], ["updated_at", "2015-03-20 07:14:17.246705"], ["token", "2b4pUbJQOpQozwZcRAD-QP-FZ7f6ayDKp4DcnYAdfok"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b888157e-ced0-11e4-99e1-705681abff85' LIMIT 1 [["organization_id", "b888a30e-ced0-11e4-bda7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$WJpYBNLKoYCj3MHmiH9D9.v06BcAzK9vzT1fe2lIwn.iB0Tg2jlBS"], ["created_at", "2015-03-20 07:14:17.254304"], ["updated_at", "2015-03-20 07:14:17.254304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.257555"], ["updated_at", "2015-03-20 07:14:17.257555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'b88acf58-ced0-11e4-9ddb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "b88acf58-ced0-11e4-9ddb-705681abff85"], ["created_at", "2015-03-20 07:14:17.260833"], ["updated_at", "2015-03-20 07:14:17.260833"], ["token", "gDrSK0KXkQ-VwP-wsWq_WSS8VhgUbyP1xotOUMzdyNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b88a54ba-ced0-11e4-972f-705681abff85' LIMIT 1 [["organization_id", "b88acf58-ced0-11e4-9ddb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$4DZ.Z1CU0qQNuMk/IJzHWuLEtCjiIK4axkK7/apZbc3qE24LL/aL."], ["created_at", "2015-03-20 07:14:17.268214"], ["updated_at", "2015-03-20 07:14:17.268214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.271885"], ["updated_at", "2015-03-20 07:14:17.271885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'b88d06c4-ced0-11e4-9cc6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "b88d06c4-ced0-11e4-9cc6-705681abff85"], ["created_at", "2015-03-20 07:14:17.275625"], ["updated_at", "2015-03-20 07:14:17.275625"], ["token", "vWh_Nn_xtWUxLWtLWg7vFaXO6vhGRpH5vclG9Wfw-L8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b88c7164-ced0-11e4-b20f-705681abff85' LIMIT 1 [["organization_id", "b88d06c4-ced0-11e4-9cc6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$7k4UR/lPhtiupSfw3lfMlu3rGnizxx6/BUjsh/6FAkdodaHCklHjK"], ["created_at", "2015-03-20 07:14:17.282889"], ["updated_at", "2015-03-20 07:14:17.282889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.287160"], ["updated_at", "2015-03-20 07:14:17.287160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b88eb5d2-ced0-11e4-b7f6-705681abff85' LIMIT 1 [["organization_id", "b88f5a0a-ced0-11e4-b7e3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$c7Ca20sqNflkFD4Ipiz56ORDKxRr5981IU42kxId8nJd7FLejm.Ke"], ["created_at", "2015-03-20 07:14:17.295120"], ["updated_at", "2015-03-20 07:14:17.295120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.298446"], ["updated_at", "2015-03-20 07:14:17.298446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8908d3a-ced0-11e4-9fbb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b89110b6-ced0-11e4-9ce0-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8908d3a-ced0-11e4-9fbb-705681abff85"], ["organization_id", "b89110b6-ced0-11e4-9ce0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:17.307838"], ["updated_at", "2015-03-20 07:14:17.307838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'b89110b6-ced0-11e4-9ce0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "b89110b6-ced0-11e4-9ce0-705681abff85"], ["created_at", "2015-03-20 07:14:17.311861"], ["updated_at", "2015-03-20 07:14:17.311861"], ["token", "fv9DfPjoUHg1M7sauKNqxP4IImcuvQYO1RQzxFMSn98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8908d3a-ced0-11e4-9fbb-705681abff85' LIMIT 1 [["organization_id", "b89110b6-ced0-11e4-9ce0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$9ncvJ6L33a1IzfPRGdO8MuZwAP9PgzKCcK0/UGIpUg6r/nnQhmk4m"], ["created_at", "2015-03-20 07:14:17.320403"], ["updated_at", "2015-03-20 07:14:17.320403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.323946"], ["updated_at", "2015-03-20 07:14:17.323946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8947062-ced0-11e4-b6e2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b894f06e-ced0-11e4-a719-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8947062-ced0-11e4-b6e2-705681abff85"], ["organization_id", "b894f06e-ced0-11e4-a719-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:17.327540"], ["updated_at", "2015-03-20 07:14:17.327540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'b894f06e-ced0-11e4-a719-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "b894f06e-ced0-11e4-a719-705681abff85"], ["created_at", "2015-03-20 07:14:17.331039"], ["updated_at", "2015-03-20 07:14:17.331039"], ["token", "gcdOIdrHMxENge5cf9A5bfLeAmEgm_-V82TSDgIlOX4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8947062-ced0-11e4-b6e2-705681abff85' LIMIT 1 [["organization_id", "b894f06e-ced0-11e4-a719-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$xVJm8mwpxjYIiyMBiZ/e2uDbtMenaYzDkqSqs1mwcRipazOrIAGlu"], ["created_at", "2015-03-20 07:14:17.339518"], ["updated_at", "2015-03-20 07:14:17.339518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.342849"], ["updated_at", "2015-03-20 07:14:17.342849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b897526e-ced0-11e4-a89d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b897d8ba-ced0-11e4-ac7e-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b897526e-ced0-11e4-a89d-705681abff85"], ["organization_id", "b897d8ba-ced0-11e4-ac7e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:17.346399"], ["updated_at", "2015-03-20 07:14:17.346399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'b897d8ba-ced0-11e4-ac7e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "b897d8ba-ced0-11e4-ac7e-705681abff85"], ["created_at", "2015-03-20 07:14:17.350464"], ["updated_at", "2015-03-20 07:14:17.350464"], ["token", "hE-W1kWVJS1BlDBG7msSkivHBmZyDJ3ltDulzK-WQT0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b897526e-ced0-11e4-a89d-705681abff85' LIMIT 1 [["organization_id", "b897d8ba-ced0-11e4-ac7e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$gk0P1wZeHLcbgv1eEvit5eyRzzw7vsC2gEjlEXgWAwHUH6ACFc10."], ["created_at", "2015-03-20 07:14:17.357728"], ["updated_at", "2015-03-20 07:14:17.357728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.360871"], ["updated_at", "2015-03-20 07:14:17.360871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b89a1b34-ced0-11e4-974c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b89a92bc-ced0-11e4-a219-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b89a1b34-ced0-11e4-974c-705681abff85"], ["organization_id", "b89a92bc-ced0-11e4-a219-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:17.364304"], ["updated_at", "2015-03-20 07:14:17.364304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'b89a92bc-ced0-11e4-a219-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "b89a92bc-ced0-11e4-a219-705681abff85"], ["created_at", "2015-03-20 07:14:17.368516"], ["updated_at", "2015-03-20 07:14:17.368516"], ["token", "nvqRae8qnklo4xGF2MmkUy0LzYzybWFhGqK-ijPmXro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b89a1b34-ced0-11e4-974c-705681abff85' LIMIT 1 [["organization_id", "b89a92bc-ced0-11e4-a219-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$eMg49XIvXdD0ApXxmWTazunqIrbDv0cIKE9KED2CplHjc8ZDKj1du"], ["created_at", "2015-03-20 07:14:17.376562"], ["updated_at", "2015-03-20 07:14:17.376562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.379941"], ["updated_at", "2015-03-20 07:14:17.379941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b89cfa70-ced0-11e4-b581-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b89d7d42-ced0-11e4-8d82-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b89cfa70-ced0-11e4-b581-705681abff85"], ["organization_id", "b89d7d42-ced0-11e4-8d82-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:17.383686"], ["updated_at", "2015-03-20 07:14:17.383686"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b89cfa70-ced0-11e4-b581-705681abff85' LIMIT 1 [["organization_id", "b89d7d42-ced0-11e4-8d82-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$rfNrmRfDQNRpvx6TFiwRdur72DGGozS1kxL6/9lwp1K4vF2uIeer2"], ["created_at", "2015-03-20 07:14:17.392546"], ["updated_at", "2015-03-20 07:14:17.392546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.396118"], ["updated_at", "2015-03-20 07:14:17.396118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b89f719c-ced0-11e4-a0aa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b89ff66c-ced0-11e4-ab71-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b89f719c-ced0-11e4-a0aa-705681abff85"], ["organization_id", "b89ff66c-ced0-11e4-ab71-705681abff85"], ["created_at", "2015-03-20 07:14:17.399692"], ["updated_at", "2015-03-20 07:14:17.399692"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'b89ff66c-ced0-11e4-ab71-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "b89ff66c-ced0-11e4-ab71-705681abff85"], ["created_at", "2015-03-20 07:14:17.404572"], ["updated_at", "2015-03-20 07:14:17.404572"], ["token", "B2UNRf_3n7EKUJjbAN2B5WOMiCYWBxRae99Qvk_afpk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b89f719c-ced0-11e4-a0aa-705681abff85' LIMIT 1 [["organization_id", "b89ff66c-ced0-11e4-ab71-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$WJO5nCVVqzChBdLsIf9sYuGQ4HXIGc.LdvcO5NB/je1gh0NYtzaOa"], ["created_at", "2015-03-20 07:14:17.411830"], ["updated_at", "2015-03-20 07:14:17.411830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.415011"], ["updated_at", "2015-03-20 07:14:17.415011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8a25c9a-ced0-11e4-923b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8a2d5ee-ced0-11e4-97b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8a25c9a-ced0-11e4-923b-705681abff85"], ["organization_id", "b8a2d5ee-ced0-11e4-97b8-705681abff85"], ["created_at", "2015-03-20 07:14:17.418246"], ["updated_at", "2015-03-20 07:14:17.418246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'b8a2d5ee-ced0-11e4-97b8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "b8a2d5ee-ced0-11e4-97b8-705681abff85"], ["created_at", "2015-03-20 07:14:17.422589"], ["updated_at", "2015-03-20 07:14:17.422589"], ["token", "jsIwIuJtHKRIvwLzgRO1em8J6YYRoHY-nkNI_K455Ck"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8a25c9a-ced0-11e4-923b-705681abff85' LIMIT 1 [["organization_id", "b8a2d5ee-ced0-11e4-97b8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$5Gj8pPdwIdFK1/v2Ll6kV.qkC.E3C8oysOgW4t5BThanC7JiG9ZrO"], ["created_at", "2015-03-20 07:14:17.430386"], ["updated_at", "2015-03-20 07:14:17.430386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.433717"], ["updated_at", "2015-03-20 07:14:17.433717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8a53226-ced0-11e4-a081-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8a5b6ec-ced0-11e4-ab53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8a53226-ced0-11e4-a081-705681abff85"], ["organization_id", "b8a5b6ec-ced0-11e4-ab53-705681abff85"], ["created_at", "2015-03-20 07:14:17.438302"], ["updated_at", "2015-03-20 07:14:17.438302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'b8a5b6ec-ced0-11e4-ab53-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "b8a5b6ec-ced0-11e4-ab53-705681abff85"], ["created_at", "2015-03-20 07:14:17.442200"], ["updated_at", "2015-03-20 07:14:17.442200"], ["token", "mLBeSrN5tuxc_ZR7RMb4GaW85MujM4570o47h8pniXs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8a53226-ced0-11e4-a081-705681abff85' LIMIT 1 [["organization_id", "b8a5b6ec-ced0-11e4-ab53-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$XNjIurFdeSVYBQ3ceoiLhuz1ZIFhj28eu0i4LHeIRIgDiax.qdGaK"], ["created_at", "2015-03-20 07:14:17.449929"], ["updated_at", "2015-03-20 07:14:17.449929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.453434"], ["updated_at", "2015-03-20 07:14:17.453434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8a830c0-ced0-11e4-98d4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8a8b73e-ced0-11e4-9693-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8a830c0-ced0-11e4-98d4-705681abff85"], ["organization_id", "b8a8b73e-ced0-11e4-9693-705681abff85"], ["created_at", "2015-03-20 07:14:17.466147"], ["updated_at", "2015-03-20 07:14:17.466147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'b8a8b73e-ced0-11e4-9693-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "b8a8b73e-ced0-11e4-9693-705681abff85"], ["created_at", "2015-03-20 07:14:17.470014"], ["updated_at", "2015-03-20 07:14:17.470014"], ["token", "lHW33QZIgP9gp2naoF3f6xhynUHxahovkn7j9C6Gfvc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8a830c0-ced0-11e4-98d4-705681abff85' LIMIT 1 [["organization_id", "b8a8b73e-ced0-11e4-9693-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$YQjWCKDLc3kYo2bX745zH.vmN2npCvyDXbpvzEOsa3tCSN02XdQZ."], ["created_at", "2015-03-20 07:14:17.478030"], ["updated_at", "2015-03-20 07:14:17.478030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.481227"], ["updated_at", "2015-03-20 07:14:17.481227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8ac78f6-ced0-11e4-a923-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8acefb6-ced0-11e4-b835-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8ac78f6-ced0-11e4-a923-705681abff85"], ["organization_id", "b8acefb6-ced0-11e4-b835-705681abff85"], ["created_at", "2015-03-20 07:14:17.484642"], ["updated_at", "2015-03-20 07:14:17.484642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8ac78f6-ced0-11e4-a923-705681abff85' LIMIT 1 [["organization_id", "b8acefb6-ced0-11e4-b835-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$UJjxtcsEBbqxf4vcwB4b7OUo5biujj8cx1UP3l486GMkuQ74qBMLq"], ["created_at", "2015-03-20 07:14:17.493214"], ["updated_at", "2015-03-20 07:14:17.493214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.496527"], ["updated_at", "2015-03-20 07:14:17.496527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8aec5de-ced0-11e4-963b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8af4734-ced0-11e4-aed5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8aec5de-ced0-11e4-963b-705681abff85"], ["organization_id", "b8af4734-ced0-11e4-aed5-705681abff85"], ["created_at", "2015-03-20 07:14:17.499303"], ["updated_at", "2015-03-20 07:14:17.499303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8aec5de-ced0-11e4-963b-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b8af4734-ced0-11e4-aed5-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8aec5de-ced0-11e4-963b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8af4734-ced0-11e4-aed5-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b8af4734-ced0-11e4-aed5-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8aec5de-ced0-11e4-963b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8af4734-ced0-11e4-aed5-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.733421"], ["updated_at", "2015-03-20 07:14:17.733421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'b8d36d76-ced0-11e4-ac29-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "b8d36d76-ced0-11e4-ac29-705681abff85"], ["created_at", "2015-03-20 07:14:17.737382"], ["updated_at", "2015-03-20 07:14:17.737382"], ["token", "EhayAn7T1SEHCC4VU3oKG-5VsTusehxtGgBnOyRR6HE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 18.8ms Sent mail to john@example.com (10.2ms) Date: Fri, 20 Mar 2015 00:14:17 -0700 From: from@example.com To: john@example.com Message-ID: <550bc8c9bade0_11913fdedd865be05738@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/EhayAn7T1SEHCC4VU3oKG-5VsTusehxtGgBnOyRR6HE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.775627"], ["updated_at", "2015-03-20 07:14:17.775627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'b8d9e1d8-ced0-11e4-b630-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "b8d9e1d8-ced0-11e4-b630-705681abff85"], ["created_at", "2015-03-20 07:14:17.779267"], ["updated_at", "2015-03-20 07:14:17.779267"], ["token", "eSwzWzaxD4Ul4VzQ4N-IXGe1lfMvNiTIOcUBn8Cemqs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (2.0ms) Date: Fri, 20 Mar 2015 00:14:17 -0700 From: from@example.com To: john@example.com Message-ID: <550bc8c9bf299_11913fdedd865be058a4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/eSwzWzaxD4Ul4VzQ4N-IXGe1lfMvNiTIOcUBn8Cemqs?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.788417"], ["updated_at", "2015-03-20 07:14:17.788417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'b8dbda06-ced0-11e4-9e89-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "b8dbda06-ced0-11e4-9e89-705681abff85"], ["created_at", "2015-03-20 07:14:17.794989"], ["updated_at", "2015-03-20 07:14:17.794989"], ["token", "qSRnG7G_fpj2M6TAz063b4d6cR40iCaF_CBhQh82Unc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (1.6ms) Date: Fri, 20 Mar 2015 00:14:17 -0700 From: from@example.com To: john@example.com Message-ID: <550bc8c9c32c4_11913fdedd865be059b4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/qSRnG7G_fpj2M6TAz063b4d6cR40iCaF_CBhQh82Unc?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.804042"], ["updated_at", "2015-03-20 07:14:17.804042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'b8de33aa-ced0-11e4-a65b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "b8de33aa-ced0-11e4-a65b-705681abff85"], ["created_at", "2015-03-20 07:14:17.808017"], ["updated_at", "2015-03-20 07:14:17.808017"], ["token", "gAWWg0NyQp5SYoDuwbKU5x7XofzPRHM9aRLAJNyNUnA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.8ms) Date: Fri, 20 Mar 2015 00:14:17 -0700 From: from@example.com To: john@example.com Message-ID: <550bc8c9c6286_11913fdedd865be0607c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/gAWWg0NyQp5SYoDuwbKU5x7XofzPRHM9aRLAJNyNUnA?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.817983"], ["updated_at", "2015-03-20 07:14:17.817983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'b8e055e0-ced0-11e4-8ab6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "b8e055e0-ced0-11e4-8ab6-705681abff85"], ["created_at", "2015-03-20 07:14:17.821305"], ["updated_at", "2015-03-20 07:14:17.821305"], ["token", "5May-XLuQbnJz84inmTgu0cr1yLUyLPsj383cjvkdbw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b8e055e0-ced0-11e4-8ab6-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'b8e055e0-ced0-11e4-8ab6-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b8e055e0-ced0-11e4-8ab6-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'b8e055e0-ced0-11e4-8ab6-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.837553"], ["updated_at", "2015-03-20 07:14:17.837553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'b8e35100-ced0-11e4-ab2e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "b8e35100-ced0-11e4-ab2e-705681abff85"], ["created_at", "2015-03-20 07:14:17.840442"], ["updated_at", "2015-03-20 07:14:17.840442"], ["token", "V6M3GY2J6viUVVH8zFxUunxo9O6M0zxRWAsix0xjRx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$Jfln.QFLfqc/w5k/mE.W.edduIxdFvNEbVTs.1qivSJHve2Iv2mS6"], ["created_at", "2015-03-20 07:14:17.861104"], ["updated_at", "2015-03-20 07:14:17.861104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$hdhsy/UPobmAnd0gJ.HnZ.J/TZNDtVD4EZCjb.xxB0qTyVSJUPLjG"], ["created_at", "2015-03-20 07:14:17.865197"], ["updated_at", "2015-03-20 07:14:17.865197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.868636"], ["updated_at", "2015-03-20 07:14:17.868636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8e78590-ced0-11e4-befd-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8e80fec-ced0-11e4-a2f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8e78590-ced0-11e4-befd-705681abff85"], ["organization_id", "b8e80fec-ced0-11e4-a2f0-705681abff85"], ["created_at", "2015-03-20 07:14:17.872922"], ["updated_at", "2015-03-20 07:14:17.872922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8e6e842-ced0-11e4-b4be-705681abff85' LIMIT 1 [["organization_id", "b8e80fec-ced0-11e4-a2f0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$ypaRvZelLCl2ziMYP.4ebeOc3JQ.Ru0Az1mnIX077KJ8khOmFKupe"], ["created_at", "2015-03-20 07:14:17.879898"], ["updated_at", "2015-03-20 07:14:17.879898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$uHO6wsbjfjjjxO.oOoWPAu4V27e36aPrRQSbOOU1YKo9qCvnGpDsG"], ["created_at", "2015-03-20 07:14:17.884004"], ["updated_at", "2015-03-20 07:14:17.884004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.887262"], ["updated_at", "2015-03-20 07:14:17.887262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8ea656c-ced0-11e4-a2c6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8eae97e-ced0-11e4-a0fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8ea656c-ced0-11e4-a2c6-705681abff85"], ["organization_id", "b8eae97e-ced0-11e4-a0fb-705681abff85"], ["created_at", "2015-03-20 07:14:17.890672"], ["updated_at", "2015-03-20 07:14:17.890672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8e9c63e-ced0-11e4-bfa0-705681abff85' LIMIT 1 [["organization_id", "b8eae97e-ced0-11e4-a0fb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$o/DqokZDxYeCL3O/cl1v4ejxVCymoJAk8720Gi8UPqWMoMrs2qwsG"], ["created_at", "2015-03-20 07:14:17.897588"], ["updated_at", "2015-03-20 07:14:17.897588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$bApqgXKhmUgS40HAZwCOCOHW.UemrImOPG7czbEI71CHIuLZCceJa"], ["created_at", "2015-03-20 07:14:17.901918"], ["updated_at", "2015-03-20 07:14:17.901918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.905115"], ["updated_at", "2015-03-20 07:14:17.905115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8ed2504-ced0-11e4-bf00-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8eda786-ced0-11e4-8094-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8ed2504-ced0-11e4-bf00-705681abff85"], ["organization_id", "b8eda786-ced0-11e4-8094-705681abff85"], ["created_at", "2015-03-20 07:14:17.908693"], ["updated_at", "2015-03-20 07:14:17.908693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$TDCZP0Ok4UJjN5IAPwIz2u0LdAOWgrNg27QjRn7tBwAK6SpzkbD7u"], ["created_at", "2015-03-20 07:14:17.914246"], ["updated_at", "2015-03-20 07:14:17.914246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$N9gjegsY3qWKsYFLV8bF6e98kUIHsBHlo2Wd2dWt4VfABYEtlUqUG"], ["created_at", "2015-03-20 07:14:17.918565"], ["updated_at", "2015-03-20 07:14:17.918565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.922724"], ["updated_at", "2015-03-20 07:14:17.922724"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8efb224-ced0-11e4-ba38-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8f05382-ced0-11e4-b144-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8efb224-ced0-11e4-ba38-705681abff85"], ["organization_id", "b8f05382-ced0-11e4-b144-705681abff85"], ["created_at", "2015-03-20 07:14:17.926247"], ["updated_at", "2015-03-20 07:14:17.926247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b8ef046e-ced0-11e4-b31c-705681abff85' LIMIT 1 [["organization_id", "b8f05382-ced0-11e4-b144-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$G7GbHXikGoI.dlqA3ebIgeF8bFXNT7h7cJ7jJVBokeEWgipTSkxaK"], ["created_at", "2015-03-20 07:14:17.933186"], ["updated_at", "2015-03-20 07:14:17.933186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.936596"], ["updated_at", "2015-03-20 07:14:17.936596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b8f1e86e-ced0-11e4-9713-705681abff85' LIMIT 1 [["organization_id", "b8f270d6-ced0-11e4-99ee-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$Boz4rwQsflXte13XdGcqduVaYCWsvHIeTF9C0U1pddZIgDbGKgI3S"], ["created_at", "2015-03-20 07:14:17.943563"], ["updated_at", "2015-03-20 07:14:17.943563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.946532"], ["updated_at", "2015-03-20 07:14:17.946532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8f37d28-ced0-11e4-a38b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8f3ef4c-ced0-11e4-ad95-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8f37d28-ced0-11e4-a38b-705681abff85"], ["organization_id", "b8f3ef4c-ced0-11e4-ad95-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:17.949635"], ["updated_at", "2015-03-20 07:14:17.949635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$0gxrDa1SZOjo.ogVd92hXuL5knWZ4T.9fznFr2FkuLXWmTcnPj8WW"], ["created_at", "2015-03-20 07:14:17.953844"], ["updated_at", "2015-03-20 07:14:17.953844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8f50d00-ced0-11e4-bb63-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8f3ef4c-ced0-11e4-ad95-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8f50d00-ced0-11e4-bb63-705681abff85"], ["organization_id", "b8f3ef4c-ced0-11e4-ad95-705681abff85"], ["created_at", "2015-03-20 07:14:17.957483"], ["updated_at", "2015-03-20 07:14:17.957483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8f37d28-ced0-11e4-a38b-705681abff85' LIMIT 1 [["organization_id", "b8f3ef4c-ced0-11e4-ad95-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$9K7yIHRhCKMeBVJhKRKHluhA7tC9nUA82dwwTjCGNUqwO9zFkAAxi"], ["created_at", "2015-03-20 07:14:17.964311"], ["updated_at", "2015-03-20 07:14:17.964311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.967492"], ["updated_at", "2015-03-20 07:14:17.967492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8f6a93a-ced0-11e4-b1c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8f7240a-ced0-11e4-9ddf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8f6a93a-ced0-11e4-b1c5-705681abff85"], ["organization_id", "b8f7240a-ced0-11e4-9ddf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:17.970885"], ["updated_at", "2015-03-20 07:14:17.970885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$1kI.pjo/WCcfLJuENNONBuMGLdajVgpXESmx/gArW6vzwCgSsg7y2"], ["created_at", "2015-03-20 07:14:17.976142"], ["updated_at", "2015-03-20 07:14:17.976142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8f875bc-ced0-11e4-8e0e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8f7240a-ced0-11e4-9ddf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8f875bc-ced0-11e4-8e0e-705681abff85"], ["organization_id", "b8f7240a-ced0-11e4-9ddf-705681abff85"], ["created_at", "2015-03-20 07:14:17.979241"], ["updated_at", "2015-03-20 07:14:17.979241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8f6a93a-ced0-11e4-b1c5-705681abff85' LIMIT 1 [["organization_id", "b8f7240a-ced0-11e4-9ddf-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$BZX/xrTas1nU.wJxMeIp5.GQEodIpwsXc7eNzApajGr9dqkuxfrn2"], ["created_at", "2015-03-20 07:14:17.986054"], ["updated_at", "2015-03-20 07:14:17.986054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:17.989270"], ["updated_at", "2015-03-20 07:14:17.989270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8f9fc52-ced0-11e4-839c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8fa7484-ced0-11e4-b3ea-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8f9fc52-ced0-11e4-839c-705681abff85"], ["organization_id", "b8fa7484-ced0-11e4-b3ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:17.993184"], ["updated_at", "2015-03-20 07:14:17.993184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$mLfEHsnOT85xKjcBuk4MyOMUjAGKBncJzEJFL3DVIyOoD1/wXsrBW"], ["created_at", "2015-03-20 07:14:17.998109"], ["updated_at", "2015-03-20 07:14:17.998109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8fbcef6-ced0-11e4-9760-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8fa7484-ced0-11e4-b3ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8fbcef6-ced0-11e4-9760-705681abff85"], ["organization_id", "b8fa7484-ced0-11e4-b3ea-705681abff85"], ["created_at", "2015-03-20 07:14:18.001262"], ["updated_at", "2015-03-20 07:14:18.001262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$Vvr7xitcorayua/daEB3beZEujmuFuaRSKui/jvYbO6a/N4QC1pFG"], ["created_at", "2015-03-20 07:14:18.007365"], ["updated_at", "2015-03-20 07:14:18.007365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.010429"], ["updated_at", "2015-03-20 07:14:18.010429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8fd3afc-ced0-11e4-bb11-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8fdae88-ced0-11e4-840b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8fd3afc-ced0-11e4-bb11-705681abff85"], ["organization_id", "b8fdae88-ced0-11e4-840b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.013559"], ["updated_at", "2015-03-20 07:14:18.013559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$CW9fOYQhZ1HrU./f7Zx46.elVCYj9RUMCbTKKt8ATzvQPfw35JRg6"], ["created_at", "2015-03-20 07:14:18.018069"], ["updated_at", "2015-03-20 07:14:18.018069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8fedede-ced0-11e4-a020-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b8fdae88-ced0-11e4-840b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8fedede-ced0-11e4-a020-705681abff85"], ["organization_id", "b8fdae88-ced0-11e4-840b-705681abff85"], ["created_at", "2015-03-20 07:14:18.021818"], ["updated_at", "2015-03-20 07:14:18.021818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b8fd3afc-ced0-11e4-bb11-705681abff85' LIMIT 1 [["organization_id", "b8fdae88-ced0-11e4-840b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$hiN4CgaOdScB1MvbtmseUeTJlqNP/Xr08ToujpjQGRTL8CcqR27uC"], ["created_at", "2015-03-20 07:14:18.029419"], ["updated_at", "2015-03-20 07:14:18.029419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.032467"], ["updated_at", "2015-03-20 07:14:18.032467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9009850-ced0-11e4-ae8f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9010d30-ced0-11e4-b516-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9009850-ced0-11e4-ae8f-705681abff85"], ["organization_id", "b9010d30-ced0-11e4-b516-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.035576"], ["updated_at", "2015-03-20 07:14:18.035576"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b9009850-ced0-11e4-ae8f-705681abff85' LIMIT 1 [["organization_id", "b9010d30-ced0-11e4-b516-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$W0XedKR2u8Gi1ovjD2tWj.PgxbAHm483G8we/yPK6k96zqTX26oZG"], ["created_at", "2015-03-20 07:14:18.043240"], ["updated_at", "2015-03-20 07:14:18.043240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.046419"], ["updated_at", "2015-03-20 07:14:18.046419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b902b46e-ced0-11e4-91d7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9032d86-ced0-11e4-b61a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b902b46e-ced0-11e4-91d7-705681abff85"], ["organization_id", "b9032d86-ced0-11e4-b61a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.049490"], ["updated_at", "2015-03-20 07:14:18.049490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b902b46e-ced0-11e4-91d7-705681abff85' LIMIT 1 [["organization_id", "b9032d86-ced0-11e4-b61a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$cUqKQbHWqO062mqO/RtBLOxriLGbAvBsca9ZyE7tsP6tlITKgQHo."], ["created_at", "2015-03-20 07:14:18.056491"], ["updated_at", "2015-03-20 07:14:18.056491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.059660"], ["updated_at", "2015-03-20 07:14:18.059660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b904ba16-ced0-11e4-828f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9053964-ced0-11e4-aa2b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b904ba16-ced0-11e4-828f-705681abff85"], ["organization_id", "b9053964-ced0-11e4-aa2b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.063302"], ["updated_at", "2015-03-20 07:14:18.063302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b904ba16-ced0-11e4-828f-705681abff85' LIMIT 1 [["organization_id", "b9053964-ced0-11e4-aa2b-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$LkctuGNV/ydWfJjC3vJJ6.YEZvBEpupHyBhSCk5ESVKLdT1bbj11e"], ["created_at", "2015-03-20 07:14:18.070103"], ["updated_at", "2015-03-20 07:14:18.070103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.074300"], ["updated_at", "2015-03-20 07:14:18.074300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b906d08a-ced0-11e4-8f7c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9077422-ced0-11e4-9690-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b906d08a-ced0-11e4-8f7c-705681abff85"], ["organization_id", "b9077422-ced0-11e4-9690-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.077989"], ["updated_at", "2015-03-20 07:14:18.077989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$uqVPtdO.bI9jF3QLmc0GjuHJCYzvDUXSR2kzek/r9Nw63MKrXWZOu"], ["created_at", "2015-03-20 07:14:18.083685"], ["updated_at", "2015-03-20 07:14:18.083685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.086803"], ["updated_at", "2015-03-20 07:14:18.086803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b908df74-ced0-11e4-bd19-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9095c38-ced0-11e4-9d2d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b908df74-ced0-11e4-bd19-705681abff85"], ["organization_id", "b9095c38-ced0-11e4-9d2d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.090344"], ["updated_at", "2015-03-20 07:14:18.090344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b908df74-ced0-11e4-bd19-705681abff85' LIMIT 1 [["organization_id", "b9095c38-ced0-11e4-9d2d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$jg.2dlP4GdVFhLHAytwBTusFWYeOSujs3Mo.Li.xPiDU7IeTREWH2"], ["created_at", "2015-03-20 07:14:18.097326"], ["updated_at", "2015-03-20 07:14:18.097326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.100751"], ["updated_at", "2015-03-20 07:14:18.100751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b90af548-ced0-11e4-bef3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b90b78ba-ced0-11e4-8707-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b90af548-ced0-11e4-bef3-705681abff85"], ["organization_id", "b90b78ba-ced0-11e4-8707-705681abff85"], ["created_at", "2015-03-20 07:14:18.103858"], ["updated_at", "2015-03-20 07:14:18.103858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b90af548-ced0-11e4-bef3-705681abff85' LIMIT 1 [["organization_id", "b90b78ba-ced0-11e4-8707-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$/.8stIHhOSDL14mCJSQyh.7qKMaz4sOc5i0KX2gLY7V7bv0RDdw96"], ["created_at", "2015-03-20 07:14:18.110859"], ["updated_at", "2015-03-20 07:14:18.110859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.113826"], ["updated_at", "2015-03-20 07:14:18.113826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b90d03ec-ced0-11e4-b394-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b90d7836-ced0-11e4-88e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b90d03ec-ced0-11e4-b394-705681abff85"], ["organization_id", "b90d7836-ced0-11e4-88e8-705681abff85"], ["created_at", "2015-03-20 07:14:18.117077"], ["updated_at", "2015-03-20 07:14:18.117077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b90d03ec-ced0-11e4-b394-705681abff85' LIMIT 1 [["organization_id", "b90d7836-ced0-11e4-88e8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$8PqM5Ord1OkajWXbOsAmaOAW1PjnfqlhwIM5DHoUf6/M57C0aBiCi"], ["created_at", "2015-03-20 07:14:18.124729"], ["updated_at", "2015-03-20 07:14:18.124729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.127990"], ["updated_at", "2015-03-20 07:14:18.127990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b90f27ee-ced0-11e4-9d93-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b90f9ef4-ced0-11e4-ba1b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b90f27ee-ced0-11e4-9d93-705681abff85"], ["organization_id", "b90f9ef4-ced0-11e4-ba1b-705681abff85"], ["created_at", "2015-03-20 07:14:18.131068"], ["updated_at", "2015-03-20 07:14:18.131068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$lpJP.YfFtTnXTw225w/u4e2L5uyu2PeablpHRDSb70jUKbgo4G8HO"], ["created_at", "2015-03-20 07:14:18.136973"], ["updated_at", "2015-03-20 07:14:18.136973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.140195"], ["updated_at", "2015-03-20 07:14:18.140195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9110122-ced0-11e4-a169-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b91180de-ced0-11e4-a1b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9110122-ced0-11e4-a169-705681abff85"], ["organization_id", "b91180de-ced0-11e4-a1b9-705681abff85"], ["created_at", "2015-03-20 07:14:18.143402"], ["updated_at", "2015-03-20 07:14:18.143402"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b9110122-ced0-11e4-a169-705681abff85' LIMIT 1 [["organization_id", "b91180de-ced0-11e4-a1b9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$vAHtiNHnjHb8Gxe5XCUMKekQ5KhjnTFq2q2rF3nXPAZtcSuocF0sa"], ["created_at", "2015-03-20 07:14:18.150959"], ["updated_at", "2015-03-20 07:14:18.150959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.153997"], ["updated_at", "2015-03-20 07:14:18.153997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9132272-ced0-11e4-a884-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9139d56-ced0-11e4-8157-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9132272-ced0-11e4-a884-705681abff85"], ["organization_id", "b9139d56-ced0-11e4-8157-705681abff85"], ["created_at", "2015-03-20 07:14:18.157985"], ["updated_at", "2015-03-20 07:14:18.157985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b9132272-ced0-11e4-a884-705681abff85' LIMIT 1 [["organization_id", "b9139d56-ced0-11e4-8157-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$86NViVRWoF61U.I/xmhHUOrFrvZfG/oDOYFObX6b/3Qef3V/psPVW"], ["created_at", "2015-03-20 07:14:18.165006"], ["updated_at", "2015-03-20 07:14:18.165006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.168049"], ["updated_at", "2015-03-20 07:14:18.168049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b91546c4-ced0-11e4-b43f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b915be38-ced0-11e4-be55-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b91546c4-ced0-11e4-b43f-705681abff85"], ["organization_id", "b915be38-ced0-11e4-be55-705681abff85"], ["created_at", "2015-03-20 07:14:18.171515"], ["updated_at", "2015-03-20 07:14:18.171515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b91546c4-ced0-11e4-b43f-705681abff85' LIMIT 1 [["organization_id", "b915be38-ced0-11e4-be55-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$npL8Saw4IuK49dlDpmyp6eVRiR7.oHvAZ/FP2/KkhY5zqI8CBABT6"], ["created_at", "2015-03-20 07:14:18.178820"], ["updated_at", "2015-03-20 07:14:18.178820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.182063"], ["updated_at", "2015-03-20 07:14:18.182063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9176594-ced0-11e4-93a4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b917e000-ced0-11e4-b12b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9176594-ced0-11e4-93a4-705681abff85"], ["organization_id", "b917e000-ced0-11e4-b12b-705681abff85"], ["created_at", "2015-03-20 07:14:18.185057"], ["updated_at", "2015-03-20 07:14:18.185057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9176594-ced0-11e4-93a4-705681abff85' LIMIT 1 [["organization_id", "b917e000-ced0-11e4-b12b-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$MOk6Y5bVa/sYM/z0NC43UeEAcwRm8Q6v3VbpOQ.SJD09gXP43PIiS"], ["created_at", "2015-03-20 07:14:18.196260"], ["updated_at", "2015-03-20 07:14:18.196260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.201168"], ["updated_at", "2015-03-20 07:14:18.201168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b91a20cc-ced0-11e4-82a2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b91adb48-ced0-11e4-9994-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b91a20cc-ced0-11e4-82a2-705681abff85"], ["organization_id", "b91adb48-ced0-11e4-9994-705681abff85"], ["created_at", "2015-03-20 07:14:18.206647"], ["updated_at", "2015-03-20 07:14:18.206647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b91a20cc-ced0-11e4-82a2-705681abff85' LIMIT 1 [["organization_id", "b91adb48-ced0-11e4-9994-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$9oQErSWCpSRtOLchkP03LeIPZDVx9vYae4jIX4p7S/hU1Z4iQq7H6"], ["created_at", "2015-03-20 07:14:18.216446"], ["updated_at", "2015-03-20 07:14:18.216446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.221696"], ["updated_at", "2015-03-20 07:14:18.221696"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b91d349c-ced0-11e4-b018-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b91e0584-ced0-11e4-8458-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b91d349c-ced0-11e4-b018-705681abff85"], ["organization_id", "b91e0584-ced0-11e4-8458-705681abff85"], ["created_at", "2015-03-20 07:14:18.226867"], ["updated_at", "2015-03-20 07:14:18.226867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$lHHFyRdHzpN7xCYVe52fE.i0wmumDrAEwmB0dmLOzNpkCQw4u6OPC"], ["created_at", "2015-03-20 07:14:18.232618"], ["updated_at", "2015-03-20 07:14:18.232618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.235728"], ["updated_at", "2015-03-20 07:14:18.235728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b91f99da-ced0-11e4-981a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b920102c-ced0-11e4-8ce3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b91f99da-ced0-11e4-981a-705681abff85"], ["organization_id", "b920102c-ced0-11e4-8ce3-705681abff85"], ["created_at", "2015-03-20 07:14:18.239247"], ["updated_at", "2015-03-20 07:14:18.239247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$cGt6H2Sk2uEEdJVXA16nkeIOgx/PBwPdizoALv6dcEMEKurimOPO6"], ["created_at", "2015-03-20 07:14:18.245065"], ["updated_at", "2015-03-20 07:14:18.245065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.248249"], ["updated_at", "2015-03-20 07:14:18.248249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9217e58-ced0-11e4-9bec-705681abff85' LIMIT 1 [["organization_id", "b921fa36-ced0-11e4-bebc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$uESr/af/1nswXGezkW3PxOXqG/CRAI7pSF0jX/UdoixG7uScqVgYy"], ["created_at", "2015-03-20 07:14:18.255002"], ["updated_at", "2015-03-20 07:14:18.255002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.258066"], ["updated_at", "2015-03-20 07:14:18.258066"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9230232-ced0-11e4-b395-705681abff85' LIMIT 1 [["organization_id", "b9237da2-ced0-11e4-8ba3-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$dX5ke6h0xygxYwwnPj5ll.S8g5f8KoO3IOzSzD8xGbnxGI.UPinVi"], ["created_at", "2015-03-20 07:14:18.265276"], ["updated_at", "2015-03-20 07:14:18.265276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.268244"], ["updated_at", "2015-03-20 07:14:18.268244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b92493cc-ced0-11e4-b99b-705681abff85' LIMIT 1 [["organization_id", "b9250668-ced0-11e4-b42e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$MyMbW9UfCz/a.kngG3bvROL32UikC6IImQ0VvEH6sZ9.jqcgnmvV6"], ["created_at", "2015-03-20 07:14:18.275909"], ["updated_at", "2015-03-20 07:14:18.275909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.279047"], ["updated_at", "2015-03-20 07:14:18.279047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$W30DNVx3maoWWFh/oPI9eueZ3dM3KOGQUG79Ztu0sVFinWNWght7."], ["created_at", "2015-03-20 07:14:18.284664"], ["updated_at", "2015-03-20 07:14:18.284664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.287943"], ["updated_at", "2015-03-20 07:14:18.287943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$IKBYT9OPelclR/j7mE0XoO2/9DFtjiKK10IopjX.TvlrYR4t8m/u6"], ["created_at", "2015-03-20 07:14:18.293541"], ["updated_at", "2015-03-20 07:14:18.293541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$BCvdLWPda8yMNa6iteHkXeYt1i.0SuWcT0Uy1DGtpNO2oiW9geYcm"], ["created_at", "2015-03-20 07:14:18.304000"], ["updated_at", "2015-03-20 07:14:18.304000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.307422"], ["updated_at", "2015-03-20 07:14:18.307422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b92a7f4e-ced0-11e4-a0f3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b92b027a-ced0-11e4-b72d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b92a7f4e-ced0-11e4-a0f3-705681abff85"], ["organization_id", "b92b027a-ced0-11e4-b72d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.311354"], ["updated_at", "2015-03-20 07:14:18.311354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b92a7f4e-ced0-11e4-a0f3-705681abff85' LIMIT 1 [["organization_id", "b92b027a-ced0-11e4-b72d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$AfymswinbdiDn6un/ydqN.odU9SyClAK11e84X7Ft8tG0HvIJP.fG"], ["created_at", "2015-03-20 07:14:18.318026"], ["updated_at", "2015-03-20 07:14:18.318026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.322016"], ["updated_at", "2015-03-20 07:14:18.322016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b92cacc4-ced0-11e4-826c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b92d3db0-ced0-11e4-a1e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b92cacc4-ced0-11e4-826c-705681abff85"], ["organization_id", "b92d3db0-ced0-11e4-a1e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.327033"], ["updated_at", "2015-03-20 07:14:18.327033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b92cacc4-ced0-11e4-826c-705681abff85' LIMIT 1 [["organization_id", "b92d3db0-ced0-11e4-a1e4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$ZWGB1fnzpSZ.a.//N8efvO9J65vPcR.aRmQXKRkTvA/HPVUR4K.Nq"], ["created_at", "2015-03-20 07:14:18.333873"], ["updated_at", "2015-03-20 07:14:18.333873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.337015"], ["updated_at", "2015-03-20 07:14:18.337015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b92f0cda-ced0-11e4-8a2a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b92f85e8-ced0-11e4-8719-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b92f0cda-ced0-11e4-8a2a-705681abff85"], ["organization_id", "b92f85e8-ced0-11e4-8719-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.340587"], ["updated_at", "2015-03-20 07:14:18.340587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b92f0cda-ced0-11e4-8a2a-705681abff85' LIMIT 1 [["organization_id", "b92f85e8-ced0-11e4-8719-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$va2zCabjnWsv9B2.GlnHjOjbweVJj/zwReKGROIV1KclG1eEqAUa."], ["created_at", "2015-03-20 07:14:18.347450"], ["updated_at", "2015-03-20 07:14:18.347450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.350888"], ["updated_at", "2015-03-20 07:14:18.350888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9312588-ced0-11e4-8fca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b931a2e2-ced0-11e4-be9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9312588-ced0-11e4-8fca-705681abff85"], ["organization_id", "b931a2e2-ced0-11e4-be9b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.354106"], ["updated_at", "2015-03-20 07:14:18.354106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$JyUN3MY0x467QjnpxzbcP.pAPxyynwOIUWpKdJ54U/DFmns5Sbi3m"], ["created_at", "2015-03-20 07:14:18.359839"], ["updated_at", "2015-03-20 07:14:18.359839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.363704"], ["updated_at", "2015-03-20 07:14:18.363704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9330f10-ced0-11e4-b108-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9339868-ced0-11e4-9209-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9330f10-ced0-11e4-b108-705681abff85"], ["organization_id", "b9339868-ced0-11e4-9209-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.366957"], ["updated_at", "2015-03-20 07:14:18.366957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$7dg.VQJmbEuOYGqpTQ.VQemGF04iS5iz0Skq8RlqFOaVAoduiVH9u"], ["created_at", "2015-03-20 07:14:18.373180"], ["updated_at", "2015-03-20 07:14:18.373180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.381494"], ["user_id", "b93521a6-ced0-11e4-a425-705681abff85"], ["created_at", "2015-03-20 07:14:18.383106"], ["updated_at", "2015-03-20 07:14:18.383106"], ["token", "7DukhdCHjydHofZDlWdWC_CHz3BPRYW1M2qf2mZF3HE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.389593"], ["updated_at", "2015-03-20 07:14:18.389593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b93521a6-ced0-11e4-a425-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9379120-ced0-11e4-8402-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b93521a6-ced0-11e4-a425-705681abff85"], ["organization_id", "b9379120-ced0-11e4-8402-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.393118"], ["updated_at", "2015-03-20 07:14:18.393118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'b9379120-ced0-11e4-8402-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "b9379120-ced0-11e4-8402-705681abff85"], ["created_at", "2015-03-20 07:14:18.396299"], ["updated_at", "2015-03-20 07:14:18.396299"], ["token", "t5JiQOK3BBAANdVGAA5OD5X5-McVL3iVCKttWS2aqkg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$5B8yuooUnCws81I3h4U4E.pmOJRsCoVWKX1mg1tipZDYRnBU/wgmK"], ["created_at", "2015-03-20 07:14:18.427623"], ["updated_at", "2015-03-20 07:14:18.427623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.429223"], ["user_id", "b93d5c68-ced0-11e4-a3e3-705681abff85"], ["created_at", "2015-03-20 07:14:18.429995"], ["updated_at", "2015-03-20 07:14:18.429995"], ["token", "gGUgFJkcC8VGRcz1RhH5UGSY4AL7b5Tcq_4DfakK63A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.433279"], ["updated_at", "2015-03-20 07:14:18.433279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b93d5c68-ced0-11e4-a3e3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b93e3462-ced0-11e4-8f86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b93d5c68-ced0-11e4-a3e3-705681abff85"], ["organization_id", "b93e3462-ced0-11e4-8f86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.436680"], ["updated_at", "2015-03-20 07:14:18.436680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'b93e3462-ced0-11e4-8f86-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "b93e3462-ced0-11e4-8f86-705681abff85"], ["created_at", "2015-03-20 07:14:18.439978"], ["updated_at", "2015-03-20 07:14:18.439978"], ["token", "X5Vwjqr86woCudvbdHaUu0pRkTtMDc0Vyk5VW0l4EsU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/b93f3eac-ced0-11e4-8f12-705681abff85" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"b93f3eac-ced0-11e4-8f12-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.6ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:18.444678' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gGUgFJkcC8VGRcz1RhH5UGSY4AL7b5Tcq_4DfakK63A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:18.447958"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:18.449050"], ["id", "b93dbc30-ced0-11e4-a835-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "b93f3eac-ced0-11e4-8f12-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b93d5c68-ced0-11e4-a3e3-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b93e3462-ced0-11e4-8f86-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b93d5c68-ced0-11e4-a3e3-705681abff85' LIMIT 1 [["organization_id", "b93e3462-ced0-11e4-8f86-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."id" != 'b93f3eac-ced0-11e4-8f12-705681abff85' AND "clubhouse_invitations"."organization_id" = 'b93e3462-ced0-11e4-8f86-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 07:14:18.458244"], ["id", "b93f3eac-ced0-11e4-8f12-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 2.9ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$SEG4.DRH1DI6i.UIo8dNG.ZjZ1IL7zjugSGIZ/T6y5tGTUyhMGE5."], ["created_at", "2015-03-20 07:14:18.470915"], ["updated_at", "2015-03-20 07:14:18.470915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.472704"], ["user_id", "b943f712-ced0-11e4-acc9-705681abff85"], ["created_at", "2015-03-20 07:14:18.473562"], ["updated_at", "2015-03-20 07:14:18.473562"], ["token", "17nFGpoGXqUdhPz7bNB1_N-zTYh6ZLzWfNTuc-k3u0k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.478204"], ["updated_at", "2015-03-20 07:14:18.478204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b943f712-ced0-11e4-acc9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b94510f2-ced0-11e4-b8e7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b943f712-ced0-11e4-acc9-705681abff85"], ["organization_id", "b94510f2-ced0-11e4-b8e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.481700"], ["updated_at", "2015-03-20 07:14:18.481700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'b94510f2-ced0-11e4-b8e7-705681abff85') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "b94510f2-ced0-11e4-b8e7-705681abff85"], ["created_at", "2015-03-20 07:14:18.485170"], ["updated_at", "2015-03-20 07:14:18.485170"], ["token", "qZ-DxcphpX6MWvWLK8sWSj5nDVyXO03MfZ8rnKNJ2MQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$LfS3yV9wwNUHKXMzUfiwY.NjNtUdxjU/j/9XhnUEy55rVxojDqC/u"], ["created_at", "2015-03-20 07:14:18.495812"], ["updated_at", "2015-03-20 07:14:18.495812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.497398"], ["user_id", "b947c2fc-ced0-11e4-a076-705681abff85"], ["created_at", "2015-03-20 07:14:18.498170"], ["updated_at", "2015-03-20 07:14:18.498170"], ["token", "WcjfgU4MmNIfgxg8Yx7qQ6AnZW3X_tgATmkNb8OSBVY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.501615"], ["updated_at", "2015-03-20 07:14:18.501615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b947c2fc-ced0-11e4-a076-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b948a546-ced0-11e4-a64e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b947c2fc-ced0-11e4-a076-705681abff85"], ["organization_id", "b948a546-ced0-11e4-a64e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.505033"], ["updated_at", "2015-03-20 07:14:18.505033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'b948a546-ced0-11e4-a64e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "b948a546-ced0-11e4-a64e-705681abff85"], ["created_at", "2015-03-20 07:14:18.508828"], ["updated_at", "2015-03-20 07:14:18.508828"], ["token", "-VRcyCigqHx5MSRpu0IpCpNI2HSaJPMgZBE1V_3QbuI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/b949c7d2-ced0-11e4-94c8-705681abff85" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"b949c7d2-ced0-11e4-94c8-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:18.513674' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WcjfgU4MmNIfgxg8Yx7qQ6AnZW3X_tgATmkNb8OSBVY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:18.515507"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:18.516877"], ["id", "b9482454-ced0-11e4-98ef-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "b949c7d2-ced0-11e4-94c8-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b947c2fc-ced0-11e4-a076-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b948a546-ced0-11e4-a64e-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b947c2fc-ced0-11e4-a076-705681abff85' LIMIT 1 [["organization_id", "b948a546-ced0-11e4-a64e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "b949c7d2-ced0-11e4-94c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$4R0XxCiFEttmwsw4X82LAefZdlCH5XQOWjlAwmTRBsAhCHH9jiVuy"], ["created_at", "2015-03-20 07:14:18.530310"], ["updated_at", "2015-03-20 07:14:18.530310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.531892"], ["user_id", "b94d0708-ced0-11e4-a402-705681abff85"], ["created_at", "2015-03-20 07:14:18.532652"], ["updated_at", "2015-03-20 07:14:18.532652"], ["token", "gNyY8no6WT61AFylJhd6udvfpMxQyMs9xtbobsKOLCM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.535952"], ["updated_at", "2015-03-20 07:14:18.535952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b94d0708-ced0-11e4-a402-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b94ddee4-ced0-11e4-920b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b94d0708-ced0-11e4-a402-705681abff85"], ["organization_id", "b94ddee4-ced0-11e4-920b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.539072"], ["updated_at", "2015-03-20 07:14:18.539072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'b94ddee4-ced0-11e4-920b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "b94ddee4-ced0-11e4-920b-705681abff85"], ["created_at", "2015-03-20 07:14:18.542874"], ["updated_at", "2015-03-20 07:14:18.542874"], ["token", "-aodV6qlrjhXHUTjCZE3KgiMEupLB4ICvXoBmj1dxDQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$tBUfbZ.AvX9W6bdcAvMxjuxy6.dhKmc5VMCsizFI.HRG9T15qlvc6"], ["created_at", "2015-03-20 07:14:18.553830"], ["updated_at", "2015-03-20 07:14:18.553830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.555482"], ["user_id", "b9509d1e-ced0-11e4-bce4-705681abff85"], ["created_at", "2015-03-20 07:14:18.556255"], ["updated_at", "2015-03-20 07:14:18.556255"], ["token", "7p7t2GLxTo1wpoBaPHtU-cnUYaOHfg0rRxRm6F8eO10"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.559558"], ["updated_at", "2015-03-20 07:14:18.559558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9509d1e-ced0-11e4-bce4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9517928-ced0-11e4-9e72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9509d1e-ced0-11e4-bce4-705681abff85"], ["organization_id", "b9517928-ced0-11e4-9e72-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.563311"], ["updated_at", "2015-03-20 07:14:18.563311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'b9517928-ced0-11e4-9e72-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "b9517928-ced0-11e4-9e72-705681abff85"], ["created_at", "2015-03-20 07:14:18.566849"], ["updated_at", "2015-03-20 07:14:18.566849"], ["token", "MvcUEXovQ1T5m9Cx3LS-x8M3D_Iqz2KZHumm_fLzRk0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/b9517928-ced0-11e4-9e72-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"b9517928-ced0-11e4-9e72-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:18.571474' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7p7t2GLxTo1wpoBaPHtU-cnUYaOHfg0rRxRm6F8eO10"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:18.572851"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:18.573870"], ["id", "b95101be-ced0-11e4-91f1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b9517928-ced0-11e4-9e72-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9509d1e-ced0-11e4-bce4-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9517928-ced0-11e4-9e72-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9509d1e-ced0-11e4-bce4-705681abff85' LIMIT 1 [["organization_id", "b9517928-ced0-11e4-9e72-705681abff85"]] Completed 500 Internal Server Error in 14ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$2uu9x7cE1jOKKiw5PjQkhORLGFQw7pI0TrQIy1GVSnb1remCy2QGG"], ["created_at", "2015-03-20 07:14:18.590363"], ["updated_at", "2015-03-20 07:14:18.590363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.591899"], ["user_id", "b9562fc2-ced0-11e4-a4ac-705681abff85"], ["created_at", "2015-03-20 07:14:18.592648"], ["updated_at", "2015-03-20 07:14:18.592648"], ["token", "nAl65zEdckYUqEqjNxBT3p2U3d6w7R61fFplesogyhw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.595923"], ["updated_at", "2015-03-20 07:14:18.595923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9562fc2-ced0-11e4-a4ac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b95705e6-ced0-11e4-aa24-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9562fc2-ced0-11e4-a4ac-705681abff85"], ["organization_id", "b95705e6-ced0-11e4-aa24-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.600225"], ["updated_at", "2015-03-20 07:14:18.600225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = 'b95705e6-ced0-11e4-aa24-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "b95705e6-ced0-11e4-aa24-705681abff85"], ["created_at", "2015-03-20 07:14:18.605015"], ["updated_at", "2015-03-20 07:14:18.605015"], ["token", "sEsXSZx7bltCkHNzpDO4tqygp0bNQ3-zXSDUcFQ-lWU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/b95705e6-ced0-11e4-aa24-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"b95705e6-ced0-11e4-aa24-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:18.610328' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nAl65zEdckYUqEqjNxBT3p2U3d6w7R61fFplesogyhw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:18.611778"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:18.612731"], ["id", "b9568fa8-ced0-11e4-b979-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b95705e6-ced0-11e4-aa24-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9562fc2-ced0-11e4-a4ac-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b95705e6-ced0-11e4-aa24-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9562fc2-ced0-11e4-a4ac-705681abff85' LIMIT 1 [["organization_id", "b95705e6-ced0-11e4-aa24-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$Pbpf/KtWyseQMIt7MvEDa.Q4xU2kvpq0ngxLWEUz1swRdE44FeYTa"], ["created_at", "2015-03-20 07:14:18.624378"], ["updated_at", "2015-03-20 07:14:18.624378"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.626446"], ["user_id", "b95b6564-ced0-11e4-8eb5-705681abff85"], ["created_at", "2015-03-20 07:14:18.627302"], ["updated_at", "2015-03-20 07:14:18.627302"], ["token", "kPoAHtXj_ENuHT5-mjhbQnYlWUd5sgo5kgrxqOHM4XQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.631012"], ["updated_at", "2015-03-20 07:14:18.631012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b95b6564-ced0-11e4-8eb5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b95c616c-ced0-11e4-beee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b95b6564-ced0-11e4-8eb5-705681abff85"], ["organization_id", "b95c616c-ced0-11e4-beee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.634269"], ["updated_at", "2015-03-20 07:14:18.634269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'b95c616c-ced0-11e4-beee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "b95c616c-ced0-11e4-beee-705681abff85"], ["created_at", "2015-03-20 07:14:18.637607"], ["updated_at", "2015-03-20 07:14:18.637607"], ["token", "yGjsXUIoVxcqsZs7UZOEySh8X85_bDS0YGOkwhlGzNQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/b95c616c-ced0-11e4-beee-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"b95c616c-ced0-11e4-beee-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:18.644801' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "kPoAHtXj_ENuHT5-mjhbQnYlWUd5sgo5kgrxqOHM4XQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:18.646264"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:18.647191"], ["id", "b95bdda0-ced0-11e4-8607-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b95c616c-ced0-11e4-beee-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b95b6564-ced0-11e4-8eb5-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b95c616c-ced0-11e4-beee-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b95b6564-ced0-11e4-8eb5-705681abff85' LIMIT 1 [["organization_id", "b95c616c-ced0-11e4-beee-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$XqDxJlWHGRhXdVnG6hvhwO7nux3PZu.9jjWLePWbPEA0D7HW2quL."], ["created_at", "2015-03-20 07:14:18.660046"], ["updated_at", "2015-03-20 07:14:18.660046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.661663"], ["user_id", "b960d1a2-ced0-11e4-9f34-705681abff85"], ["created_at", "2015-03-20 07:14:18.662411"], ["updated_at", "2015-03-20 07:14:18.662411"], ["token", "JSmtO9MR6ityEYo3d8QMHr5n4joG3D-_nrQdgfGNgXA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.665722"], ["updated_at", "2015-03-20 07:14:18.665722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b960d1a2-ced0-11e4-9f34-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b961ac62-ced0-11e4-b9a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b960d1a2-ced0-11e4-9f34-705681abff85"], ["organization_id", "b961ac62-ced0-11e4-b9a6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.669156"], ["updated_at", "2015-03-20 07:14:18.669156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = 'b961ac62-ced0-11e4-b9a6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "b961ac62-ced0-11e4-b9a6-705681abff85"], ["created_at", "2015-03-20 07:14:18.672399"], ["updated_at", "2015-03-20 07:14:18.672399"], ["token", "jtiMUl-B54TYV7XUg5wynZbXyJ0QYZN9DMYkXQRnANU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$bVRl3L3/mq9zpX0CKiPDZOaSPr8CPkIK/VZVKXi491/eQXnhoEYmu"], ["created_at", "2015-03-20 07:14:18.684139"], ["updated_at", "2015-03-20 07:14:18.684139"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.686179"], ["user_id", "b9647fdc-ced0-11e4-b6ae-705681abff85"], ["created_at", "2015-03-20 07:14:18.687499"], ["updated_at", "2015-03-20 07:14:18.687499"], ["token", "HyxdFesXxYVMQFJTjVPlxD8WD_S-pzX-npOeewYTZ_4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.692376"], ["updated_at", "2015-03-20 07:14:18.692376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9647fdc-ced0-11e4-b6ae-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b965c50e-ced0-11e4-8aef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9647fdc-ced0-11e4-b6ae-705681abff85"], ["organization_id", "b965c50e-ced0-11e4-8aef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.695845"], ["updated_at", "2015-03-20 07:14:18.695845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = 'b965c50e-ced0-11e4-8aef-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "b965c50e-ced0-11e4-8aef-705681abff85"], ["created_at", "2015-03-20 07:14:18.699263"], ["updated_at", "2015-03-20 07:14:18.699263"], ["token", "NZG7N9OBC8I5JKMBEpCRLJiR4HDef6nQCGo-uNEcAzU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/b966cf58-ced0-11e4-b5c0-705681abff85" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"b966cf58-ced0-11e4-b5c0-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:18.703907' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HyxdFesXxYVMQFJTjVPlxD8WD_S-pzX-npOeewYTZ_4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:18.705363"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:18.706321"], ["id", "b9651d02-ced0-11e4-9604-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "b966cf58-ced0-11e4-b5c0-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9647fdc-ced0-11e4-b6ae-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b965c50e-ced0-11e4-8aef-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9647fdc-ced0-11e4-b6ae-705681abff85' LIMIT 1 [["organization_id", "b965c50e-ced0-11e4-8aef-705681abff85"]] Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$qH9DX8Z4NIp25.qTlPZqAuPkKQdjereQQ.Ym/52hkeoUidzDiWKSy"], ["created_at", "2015-03-20 07:14:18.719446"], ["updated_at", "2015-03-20 07:14:18.719446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.721271"], ["user_id", "b969e7ce-ced0-11e4-9f39-705681abff85"], ["created_at", "2015-03-20 07:14:18.721998"], ["updated_at", "2015-03-20 07:14:18.721998"], ["token", "wqpYj4Na62jjeE2eEMC7Zo1O76EwsVyWfO3DIS4Pu8k"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.726565"], ["updated_at", "2015-03-20 07:14:18.726565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b969e7ce-ced0-11e4-9f39-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b96af97a-ced0-11e4-829f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b969e7ce-ced0-11e4-9f39-705681abff85"], ["organization_id", "b96af97a-ced0-11e4-829f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.729928"], ["updated_at", "2015-03-20 07:14:18.729928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = 'b96af97a-ced0-11e4-829f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "b96af97a-ced0-11e4-829f-705681abff85"], ["created_at", "2015-03-20 07:14:18.734503"], ["updated_at", "2015-03-20 07:14:18.734503"], ["token", "ubtVwAPsuSXwbzklq9_AuQec30aqRW3ntlGhGgfeYmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$NpiWfmcLSrGx4YoP7jtdUebbtWTYSTFXEG1jcNV665/9ar7yjq/kS"], ["created_at", "2015-03-20 07:14:18.744322"], ["updated_at", "2015-03-20 07:14:18.744322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.746023"], ["user_id", "b96dadf0-ced0-11e4-9b8d-705681abff85"], ["created_at", "2015-03-20 07:14:18.746882"], ["updated_at", "2015-03-20 07:14:18.746882"], ["token", "hYmGsQpvmHkUukj4-HLkJrycEQLheOSsqH_pfGkwcEU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.750741"], ["updated_at", "2015-03-20 07:14:18.750741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b96dadf0-ced0-11e4-9b8d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b96eadd6-ced0-11e4-ac9f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b96dadf0-ced0-11e4-9b8d-705681abff85"], ["organization_id", "b96eadd6-ced0-11e4-ac9f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.754205"], ["updated_at", "2015-03-20 07:14:18.754205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'b96eadd6-ced0-11e4-ac9f-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "b96eadd6-ced0-11e4-ac9f-705681abff85"], ["created_at", "2015-03-20 07:14:18.758076"], ["updated_at", "2015-03-20 07:14:18.758076"], ["token", "faJNQ5oH852Q1bH236Qf1NE0O7mTu0aEzD37KZOtJpU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:18.763580' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hYmGsQpvmHkUukj4-HLkJrycEQLheOSsqH_pfGkwcEU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:18.765033"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:18.766016"], ["id", "b96e1998-ced0-11e4-8589-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b96dadf0-ced0-11e4-9b8d-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b96eadd6-ced0-11e4-ac9f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b96dadf0-ced0-11e4-9b8d-705681abff85' LIMIT 1 [["organization_id", "b96eadd6-ced0-11e4-ac9f-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$CuBsMKVrzqNT/lm32a24o.GAvWWglrT7PjNlgcQ8hbdFmGbvwnwyW"], ["created_at", "2015-03-20 07:14:18.778422"], ["updated_at", "2015-03-20 07:14:18.778422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.780053"], ["user_id", "b972e356-ced0-11e4-8780-705681abff85"], ["created_at", "2015-03-20 07:14:18.780779"], ["updated_at", "2015-03-20 07:14:18.780779"], ["token", "vLz_kx4QRDBii2iDxQG16z29n_ToVfyjePyh1PVkEwI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.785065"], ["updated_at", "2015-03-20 07:14:18.785065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b972e356-ced0-11e4-8780-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b973e4d6-ced0-11e4-8ddc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b972e356-ced0-11e4-8780-705681abff85"], ["organization_id", "b973e4d6-ced0-11e4-8ddc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.788327"], ["updated_at", "2015-03-20 07:14:18.788327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = 'b973e4d6-ced0-11e4-8ddc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "b973e4d6-ced0-11e4-8ddc-705681abff85"], ["created_at", "2015-03-20 07:14:18.791815"], ["updated_at", "2015-03-20 07:14:18.791815"], ["token", "4GOtFGU3x6yGeWAFEBYJb0pzWAMLT68QiC9BbAAW6zU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:18.797181' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vLz_kx4QRDBii2iDxQG16z29n_ToVfyjePyh1PVkEwI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:18.798559"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:18.799485"], ["id", "b97342d8-ced0-11e4-bcda-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b972e356-ced0-11e4-8780-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b973e4d6-ced0-11e4-8ddc-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b972e356-ced0-11e4-8780-705681abff85' LIMIT 1 [["organization_id", "b973e4d6-ced0-11e4-8ddc-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$J4AruKLteF48oYzsqgWW.OAk3DyUnhpzBhu4gg9a2sib.pd47vNzC"], ["created_at", "2015-03-20 07:14:18.811154"], ["updated_at", "2015-03-20 07:14:18.811154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.813067"], ["user_id", "b977e8c4-ced0-11e4-8438-705681abff85"], ["created_at", "2015-03-20 07:14:18.813884"], ["updated_at", "2015-03-20 07:14:18.813884"], ["token", "upDA0nsKKnsj5mOzsnaduxR9Cn6LNSaQ87KpXzCZERY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.817203"], ["updated_at", "2015-03-20 07:14:18.817203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b977e8c4-ced0-11e4-8438-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b978c910-ced0-11e4-b03c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b977e8c4-ced0-11e4-8438-705681abff85"], ["organization_id", "b978c910-ced0-11e4-b03c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.820445"], ["updated_at", "2015-03-20 07:14:18.820445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'b978c910-ced0-11e4-b03c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "b978c910-ced0-11e4-b03c-705681abff85"], ["created_at", "2015-03-20 07:14:18.823944"], ["updated_at", "2015-03-20 07:14:18.823944"], ["token", "iZUVQnfHeK9t1ldzHHpYkWVNf-EaNlNgTkUr-6Gv2hY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:18.837714' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "upDA0nsKKnsj5mOzsnaduxR9Cn6LNSaQ87KpXzCZERY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:18.839479"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:18.840943"], ["id", "b978526e-ced0-11e4-94a8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b977e8c4-ced0-11e4-8438-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b978c910-ced0-11e4-b03c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b977e8c4-ced0-11e4-8438-705681abff85' LIMIT 1 [["organization_id", "b978c910-ced0-11e4-b03c-705681abff85"]] Completed 500 Internal Server Error in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$mtJOuP72F4JvxvkMzEJYFuaRPk5JOFvX9QWX.qs211H4mOLehh3BS"], ["created_at", "2015-03-20 07:14:18.854680"], ["updated_at", "2015-03-20 07:14:18.854680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.856309"], ["user_id", "b97e84cc-ced0-11e4-a437-705681abff85"], ["created_at", "2015-03-20 07:14:18.857052"], ["updated_at", "2015-03-20 07:14:18.857052"], ["token", "OrhtnpeLUxxM6XfOFrGYBiUuY48_IXLm7rWnbwzbI_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.860597"], ["updated_at", "2015-03-20 07:14:18.860597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b97e84cc-ced0-11e4-a437-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b97f6a86-ced0-11e4-8ec2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b97e84cc-ced0-11e4-a437-705681abff85"], ["organization_id", "b97f6a86-ced0-11e4-8ec2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.864490"], ["updated_at", "2015-03-20 07:14:18.864490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'b97f6a86-ced0-11e4-8ec2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "b97f6a86-ced0-11e4-8ec2-705681abff85"], ["created_at", "2015-03-20 07:14:18.869436"], ["updated_at", "2015-03-20 07:14:18.869436"], ["token", "rIyxiLNVMco5UJgxFvjxFJfJa_uNLBGpgbUsW2IowRk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$VpiKfb9PJFLjRX9nTWzXvuvohH5ORwfRqd4aoOsKSiqNfg3IP94h2"], ["created_at", "2015-03-20 07:14:18.875354"], ["updated_at", "2015-03-20 07:14:18.875354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.881407"], ["updated_at", "2015-03-20 07:14:18.881407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b981bc46-ced0-11e4-a310-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9829814-ced0-11e4-b8d4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b981bc46-ced0-11e4-a310-705681abff85"], ["organization_id", "b9829814-ced0-11e4-b8d4-705681abff85"], ["created_at", "2015-03-20 07:14:18.884976"], ["updated_at", "2015-03-20 07:14:18.884976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$Te4zeZwjvuQE6Nv3OzhsDuQFMfT/ol9/hONxYX0lc7ZY27A4JEfSq"], ["created_at", "2015-03-20 07:14:18.897642"], ["updated_at", "2015-03-20 07:14:18.897642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.900018"], ["user_id", "b9852b10-ced0-11e4-9279-705681abff85"], ["created_at", "2015-03-20 07:14:18.900904"], ["updated_at", "2015-03-20 07:14:18.900904"], ["token", "2nP3gd7ZqVMtQfkAL1voUpuTbour5ykebRRVQ0MNXQM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.904452"], ["updated_at", "2015-03-20 07:14:18.904452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9852b10-ced0-11e4-9279-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9861a48-ced0-11e4-a2e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9852b10-ced0-11e4-9279-705681abff85"], ["organization_id", "b9861a48-ced0-11e4-a2e3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.908537"], ["updated_at", "2015-03-20 07:14:18.908537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'b9861a48-ced0-11e4-a2e3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "b9861a48-ced0-11e4-a2e3-705681abff85"], ["created_at", "2015-03-20 07:14:18.912975"], ["updated_at", "2015-03-20 07:14:18.912975"], ["token", "rrjZA97b2CQtbP6IQEmEPr58LcPhwARzqV7s0ZQeSVA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$TLrlEZ3aNGAm5rdDYOCja.HO7aLYwRnXOwJKLNOzWvO/SYvhZ70oS"], ["created_at", "2015-03-20 07:14:18.919273"], ["updated_at", "2015-03-20 07:14:18.919273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.922428"], ["updated_at", "2015-03-20 07:14:18.922428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9886046-ced0-11e4-a3f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b988f1d2-ced0-11e4-ba78-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9886046-ced0-11e4-a3f4-705681abff85"], ["organization_id", "b988f1d2-ced0-11e4-ba78-705681abff85"], ["created_at", "2015-03-20 07:14:18.926392"], ["updated_at", "2015-03-20 07:14:18.926392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/b9861a48-ced0-11e4-a2e3-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"b9861a48-ced0-11e4-a2e3-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:18.931759' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2nP3gd7ZqVMtQfkAL1voUpuTbour5ykebRRVQ0MNXQM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:18.933167"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:18.934249"], ["id", "b9859f5a-ced0-11e4-b4ed-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b9861a48-ced0-11e4-a2e3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9852b10-ced0-11e4-9279-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9852b10-ced0-11e4-9279-705681abff85' LIMIT 1 [["organization_id", "b9861a48-ced0-11e4-a2e3-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "b9861a48-ced0-11e4-a2e3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9861a48-ced0-11e4-a2e3-705681abff85"]] Completed 200 OK in 13ms (Views: 3.6ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$zHZc6fYc/GTD4XBnoYkD..JjIua4EgEFYOtkay3aUmQVUt.4h2C5C"], ["created_at", "2015-03-20 07:14:18.950869"], ["updated_at", "2015-03-20 07:14:18.950869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.952476"], ["user_id", "b98d33fa-ced0-11e4-9cb8-705681abff85"], ["created_at", "2015-03-20 07:14:18.953207"], ["updated_at", "2015-03-20 07:14:18.953207"], ["token", "Y4HLhreQJQrOlnbfOIp_CtK3TneT8JL0wQ9RXrihCOQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.956458"], ["updated_at", "2015-03-20 07:14:18.956458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b98d33fa-ced0-11e4-9cb8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b98e09b0-ced0-11e4-844f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b98d33fa-ced0-11e4-9cb8-705681abff85"], ["organization_id", "b98e09b0-ced0-11e4-844f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.960432"], ["updated_at", "2015-03-20 07:14:18.960432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'b98e09b0-ced0-11e4-844f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "b98e09b0-ced0-11e4-844f-705681abff85"], ["created_at", "2015-03-20 07:14:18.964061"], ["updated_at", "2015-03-20 07:14:18.964061"], ["token", "g1RxlX-_b9QlED1i3O-RKvi_Aynb_j0CJGuIgca5NtQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$d9DUTvyTSuXOwMZf7.xn5usABF5sKtdL11Z2V35of7jrh/Z9rvMeq"], ["created_at", "2015-03-20 07:14:18.968536"], ["updated_at", "2015-03-20 07:14:18.968536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.972102"], ["updated_at", "2015-03-20 07:14:18.972102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b98febea-ced0-11e4-a97a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9906dc2-ced0-11e4-afa9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b98febea-ced0-11e4-a97a-705681abff85"], ["organization_id", "b9906dc2-ced0-11e4-afa9-705681abff85"], ["created_at", "2015-03-20 07:14:18.975259"], ["updated_at", "2015-03-20 07:14:18.975259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-20 00:14:18 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$H9rK1//.CtvEh5/Fmq31juV.6682O4TeXgo.wjD.I8luxswQ9267m"], ["created_at", "2015-03-20 07:14:18.985493"], ["updated_at", "2015-03-20 07:14:18.985493"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:18.987620"], ["user_id", "b9927b62-ced0-11e4-afeb-705681abff85"], ["created_at", "2015-03-20 07:14:18.989123"], ["updated_at", "2015-03-20 07:14:18.989123"], ["token", "TPYNCO1DoXuviLm-j_H3xO2V7GAqAGPNr81DG7ugDh0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:18.994436"], ["updated_at", "2015-03-20 07:14:18.994436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9927b62-ced0-11e4-afeb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b993ebd2-ced0-11e4-95bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9927b62-ced0-11e4-afeb-705681abff85"], ["organization_id", "b993ebd2-ced0-11e4-95bc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:18.998313"], ["updated_at", "2015-03-20 07:14:18.998313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'b993ebd2-ced0-11e4-95bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "b993ebd2-ced0-11e4-95bc-705681abff85"], ["created_at", "2015-03-20 07:14:19.001550"], ["updated_at", "2015-03-20 07:14:19.001550"], ["token", "mkIxfYeLLbqzlw-Zcts5siZSsgkhT5ZcG728MYU33WM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$WTalN.tmNmMeW/xRJ9xjj.AR1IQQn5mq7C0DMu/ExJsGvndK.kC5y"], ["created_at", "2015-03-20 07:14:19.006198"], ["updated_at", "2015-03-20 07:14:19.006198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.009554"], ["updated_at", "2015-03-20 07:14:19.009554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b995a198-ced0-11e4-9de2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9962410-ced0-11e4-9f88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b995a198-ced0-11e4-9de2-705681abff85"], ["organization_id", "b9962410-ced0-11e4-9f88-705681abff85"], ["created_at", "2015-03-20 07:14:19.013515"], ["updated_at", "2015-03-20 07:14:19.013515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.018743' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TPYNCO1DoXuviLm-j_H3xO2V7GAqAGPNr81DG7ugDh0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.020196"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.021434"], ["id", "b9930d48-ced0-11e4-a0bd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9927b62-ced0-11e4-afeb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9927b62-ced0-11e4-afeb-705681abff85' LIMIT 1 [["organization_id", "b993ebd2-ced0-11e4-95bc-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "b993ebd2-ced0-11e4-95bc-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b993ebd2-ced0-11e4-95bc-705681abff85"]] Completed 200 OK in 13ms (Views: 2.5ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.040224"], ["updated_at", "2015-03-20 07:14:19.040224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.083662"], ["updated_at", "2015-03-20 07:14:19.083662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.090471"], ["updated_at", "2015-03-20 07:14:19.090471"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.097910"], ["updated_at", "2015-03-20 07:14:19.097910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b9a3a400-ced0-11e4-9bc4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.102952"], ["updated_at", "2015-03-20 07:14:19.102952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$qWyRhMtZCWhaaxCFlRqa0OvcqlC2SLhi1sP/c5r8XVXenpAsyjREW"], ["created_at", "2015-03-20 07:14:19.111984"], ["updated_at", "2015-03-20 07:14:19.111984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$jhn2ExN7kHgyHoYsSi9thu72JGWhQNgo53VCa82ZjJKA9gNR3Uu6."], ["created_at", "2015-03-20 07:14:19.116435"], ["updated_at", "2015-03-20 07:14:19.116435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.117987"], ["user_id", "b9a5c78a-ced0-11e4-ba73-705681abff85"], ["created_at", "2015-03-20 07:14:19.118802"], ["updated_at", "2015-03-20 07:14:19.118802"], ["token", "abijrn25RsebCKau0dWChzF31suFDExOyD2jTMYTIiM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.122344"], ["updated_at", "2015-03-20 07:14:19.122344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9a5c78a-ced0-11e4-ba73-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9a75bcc-ced0-11e4-a409-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9a5c78a-ced0-11e4-ba73-705681abff85"], ["organization_id", "b9a75bcc-ced0-11e4-a409-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.125682"], ["updated_at", "2015-03-20 07:14:19.125682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9a67446-ced0-11e4-a8f4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9a75bcc-ced0-11e4-a409-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9a67446-ced0-11e4-a8f4-705681abff85"], ["organization_id", "b9a75bcc-ced0-11e4-a409-705681abff85"], ["created_at", "2015-03-20 07:14:19.128840"], ["updated_at", "2015-03-20 07:14:19.128840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$m74zSYiaz4Pk95LbeVAW2OWxw/1yxExw/Sphtx8nnUM/Qc4WMhpfe"], ["created_at", "2015-03-20 07:14:19.146176"], ["updated_at", "2015-03-20 07:14:19.146176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$qv9NKFjV3chtIz7HWnBngOGsvP7L.wBA2MpFLgQ2AcgZsDk67mTte"], ["created_at", "2015-03-20 07:14:19.150797"], ["updated_at", "2015-03-20 07:14:19.150797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.152322"], ["user_id", "b9ab081c-ced0-11e4-b913-705681abff85"], ["created_at", "2015-03-20 07:14:19.153107"], ["updated_at", "2015-03-20 07:14:19.153107"], ["token", "qMijZ4rysUkqy2Tl0cT5XuvdUFcvhaauvKDmXuEP1xg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.156832"], ["updated_at", "2015-03-20 07:14:19.156832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ab081c-ced0-11e4-b913-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ac9e8e-ced0-11e4-bc42-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9ab081c-ced0-11e4-b913-705681abff85"], ["organization_id", "b9ac9e8e-ced0-11e4-bc42-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.160211"], ["updated_at", "2015-03-20 07:14:19.160211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9abb258-ced0-11e4-abde-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ac9e8e-ced0-11e4-bc42-705681abff85') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9abb258-ced0-11e4-abde-705681abff85"], ["organization_id", "b9ac9e8e-ced0-11e4-bc42-705681abff85"], ["created_at", "2015-03-20 07:14:19.163245"], ["updated_at", "2015-03-20 07:14:19.163245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/b9ad983e-ced0-11e4-a646-705681abff85" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"b9ad983e-ced0-11e4-a646-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.168134' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qMijZ4rysUkqy2Tl0cT5XuvdUFcvhaauvKDmXuEP1xg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.169568"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.170507"], ["id", "b9ac13ba-ced0-11e4-9d15-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "b9ad983e-ced0-11e4-a646-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9ab081c-ced0-11e4-b913-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9ac9e8e-ced0-11e4-bc42-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9ab081c-ced0-11e4-b913-705681abff85' LIMIT 1 [["organization_id", "b9ac9e8e-ced0-11e4-bc42-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9abb258-ced0-11e4-abde-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9abb258-ced0-11e4-abde-705681abff85' AND "clubhouse_memberships"."id" != 'b9ad983e-ced0-11e4-a646-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ac9e8e-ced0-11e4-bc42-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 07:14:19.179312"], ["id", "b9ad983e-ced0-11e4-a646-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 3.0ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (4.0ms) SAVEPOINT active_record_1 User Exists (4.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$Q3JAKM4mi5kk9Rnne6Wwm.MeRjrqWO2KTT373OSUolZYjDWA7teNG"], ["created_at", "2015-03-20 07:14:19.199223"], ["updated_at", "2015-03-20 07:14:19.199223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$W4Wez1rPx3VdiEaBfFKiKu2GhBZheRXnLSqVY2tDmWM5F4wqwpM5C"], ["created_at", "2015-03-20 07:14:19.207145"], ["updated_at", "2015-03-20 07:14:19.207145"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.210695"], ["user_id", "b9b33ac8-ced0-11e4-ba16-705681abff85"], ["created_at", "2015-03-20 07:14:19.212477"], ["updated_at", "2015-03-20 07:14:19.212477"], ["token", "eA3_PF3GKd3kJ1YVm3ryQFMm_bIVlMTjZ7UHUqJvB9A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.220072"], ["updated_at", "2015-03-20 07:14:19.220072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9b33ac8-ced0-11e4-ba16-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9b65280-ced0-11e4-b7fb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9b33ac8-ced0-11e4-ba16-705681abff85"], ["organization_id", "b9b65280-ced0-11e4-b7fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.225717"], ["updated_at", "2015-03-20 07:14:19.225717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9b46e34-ced0-11e4-96f5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9b65280-ced0-11e4-b7fb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9b46e34-ced0-11e4-96f5-705681abff85"], ["organization_id", "b9b65280-ced0-11e4-b7fb-705681abff85"], ["created_at", "2015-03-20 07:14:19.231300"], ["updated_at", "2015-03-20 07:14:19.231300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$6rIyjOE6165umw83coXzC.P2stxhKUMsLHAGyQlXzq0nYdDEu2mRq"], ["created_at", "2015-03-20 07:14:19.243277"], ["updated_at", "2015-03-20 07:14:19.243277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$bS0prw5K1IBl0Ubrn/qfFOM16e/9N4gfyVX9s3q30jf8/5smsb/KC"], ["created_at", "2015-03-20 07:14:19.248434"], ["updated_at", "2015-03-20 07:14:19.248434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.250129"], ["user_id", "b9b9d630-ced0-11e4-a786-705681abff85"], ["created_at", "2015-03-20 07:14:19.250954"], ["updated_at", "2015-03-20 07:14:19.250954"], ["token", "UoCSpqxvjE0j5Zq15VDiHw6zKnO2vnNk5yxv3W2etlg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.254757"], ["updated_at", "2015-03-20 07:14:19.254757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9b9d630-ced0-11e4-a786-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9bb8f66-ced0-11e4-aa05-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9b9d630-ced0-11e4-a786-705681abff85"], ["organization_id", "b9bb8f66-ced0-11e4-aa05-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.258060"], ["updated_at", "2015-03-20 07:14:19.258060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ba9b24-ced0-11e4-96cf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9bb8f66-ced0-11e4-aa05-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9ba9b24-ced0-11e4-96cf-705681abff85"], ["organization_id", "b9bb8f66-ced0-11e4-aa05-705681abff85"], ["created_at", "2015-03-20 07:14:19.261596"], ["updated_at", "2015-03-20 07:14:19.261596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/b9bc9dfc-ced0-11e4-9e6c-705681abff85" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"b9bc9dfc-ced0-11e4-9e6c-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.266126' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UoCSpqxvjE0j5Zq15VDiHw6zKnO2vnNk5yxv3W2etlg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.267560"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.268573"], ["id", "b9bb06a4-ced0-11e4-9ac3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "b9bc9dfc-ced0-11e4-9e6c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9b9d630-ced0-11e4-a786-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9bb8f66-ced0-11e4-aa05-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b9b9d630-ced0-11e4-a786-705681abff85' LIMIT 1 [["organization_id", "b9bb8f66-ced0-11e4-aa05-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9ba9b24-ced0-11e4-96cf-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "b9bc9dfc-ced0-11e4-9e6c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$Fqy/XPkslOE.dg2AP03tPuaNKTIIcF58yNJFijBjCAsWGgAhUvAnK"], ["created_at", "2015-03-20 07:14:19.280777"], ["updated_at", "2015-03-20 07:14:19.280777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$/5WQmiJRsZuwDzRxOzQSKO/TyFVmIbV4mt/g2c4YFVJdA6XkD0gHq"], ["created_at", "2015-03-20 07:14:19.285398"], ["updated_at", "2015-03-20 07:14:19.285398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.286913"], ["user_id", "b9bf919c-ced0-11e4-9ecc-705681abff85"], ["created_at", "2015-03-20 07:14:19.287675"], ["updated_at", "2015-03-20 07:14:19.287675"], ["token", "jqMX9J3YJs_SHpIonbikzlXLGbCQJHwYCWf3uVJ5qnw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.291021"], ["updated_at", "2015-03-20 07:14:19.291021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9bf919c-ced0-11e4-9ecc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9c11684-ced0-11e4-aa4e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9bf919c-ced0-11e4-9ecc-705681abff85"], ["organization_id", "b9c11684-ced0-11e4-aa4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.294635"], ["updated_at", "2015-03-20 07:14:19.294635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9c03ba6-ced0-11e4-be3b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9c11684-ced0-11e4-aa4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9c03ba6-ced0-11e4-be3b-705681abff85"], ["organization_id", "b9c11684-ced0-11e4-aa4e-705681abff85"], ["created_at", "2015-03-20 07:14:19.298590"], ["updated_at", "2015-03-20 07:14:19.298590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$8D.S2qQewR987X1l5l170.J/Y7Wb1oo6BPyRHofwuxao1EBNoSHxC"], ["created_at", "2015-03-20 07:14:19.303085"], ["updated_at", "2015-03-20 07:14:19.303085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.304653"], ["user_id", "b9c2eff4-ced0-11e4-aa8b-705681abff85"], ["created_at", "2015-03-20 07:14:19.305437"], ["updated_at", "2015-03-20 07:14:19.305437"], ["token", "Gg6TBYZnkQwuvoUdg_xQWJvziRF5YKzfPqtX5Y_vdQc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = 'b9c11684-ced0-11e4-aa4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "b9c11684-ced0-11e4-aa4e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.309497"], ["updated_at", "2015-03-20 07:14:19.309497"], ["token", "YbeLh0XgMw20tJhbF6yxcT4ScfkjxQC8NRyysCwCp08"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$lOHAoD6WqfBs0tsQsMiC5OIsoo.cefbw2Nqo8yNTRQol9n4nDE2Iy"], ["created_at", "2015-03-20 07:14:19.320890"], ["updated_at", "2015-03-20 07:14:19.320890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$ruhtnwi810O.JbCflklDX.ZqOYG/3ZXyKgmXaLlvjbb6HuPfkM8e2"], ["created_at", "2015-03-20 07:14:19.325134"], ["updated_at", "2015-03-20 07:14:19.325134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.326630"], ["user_id", "b9c5a942-ced0-11e4-b86d-705681abff85"], ["created_at", "2015-03-20 07:14:19.327706"], ["updated_at", "2015-03-20 07:14:19.327706"], ["token", "gnp-WV3P3C6cbiG3Y_Ts4f_rkI14v7E24NoRvX3wXzQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.331686"], ["updated_at", "2015-03-20 07:14:19.331686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9c5a942-ced0-11e4-b86d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9c74f86-ced0-11e4-81fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9c5a942-ced0-11e4-b86d-705681abff85"], ["organization_id", "b9c74f86-ced0-11e4-81fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.335307"], ["updated_at", "2015-03-20 07:14:19.335307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9c64b36-ced0-11e4-8e80-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9c74f86-ced0-11e4-81fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9c64b36-ced0-11e4-8e80-705681abff85"], ["organization_id", "b9c74f86-ced0-11e4-81fb-705681abff85"], ["created_at", "2015-03-20 07:14:19.338384"], ["updated_at", "2015-03-20 07:14:19.338384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$ghFlWtwRHSVdjqOCW.Djfe0nawwyL2QL8j4Oy5RbdJpd29mziJtH6"], ["created_at", "2015-03-20 07:14:19.343041"], ["updated_at", "2015-03-20 07:14:19.343041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.344573"], ["user_id", "b9c90862-ced0-11e4-b0db-705681abff85"], ["created_at", "2015-03-20 07:14:19.345392"], ["updated_at", "2015-03-20 07:14:19.345392"], ["token", "pRZgL8dCHPYOh8YAShCpUKO58tloapfbmXJelNWh7kg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'b9c74f86-ced0-11e4-81fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "b9c74f86-ced0-11e4-81fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.349166"], ["updated_at", "2015-03-20 07:14:19.349166"], ["token", "a9YfX9RJiQM5FKEQZd7ZNTHVhMXMBShObalW4X5XofE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/b9c74f86-ced0-11e4-81fb-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"a9YfX9RJiQM5FKEQZd7ZNTHVhMXMBShObalW4X5XofE", "organization_id"=>"b9c74f86-ced0-11e4-81fb-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.355062' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pRZgL8dCHPYOh8YAShCpUKO58tloapfbmXJelNWh7kg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.356443"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.357529"], ["id", "b9c96b72-ced0-11e4-917e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b9c74f86-ced0-11e4-81fb-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9c90862-ced0-11e4-b0db-705681abff85"]] Completed 500 Internal Server Error in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$/V.LenJ7V0Wd8XmjxQL3feXcZxpK/.Yhw7mvN2HS1afyMLj7lrOuG"], ["created_at", "2015-03-20 07:14:19.370596"], ["updated_at", "2015-03-20 07:14:19.370596"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$VhEbvzAtuwCDuVMJhF7ECOWLRViESbfOk8kTgaLfEVLq.k9vHMD8q"], ["created_at", "2015-03-20 07:14:19.375146"], ["updated_at", "2015-03-20 07:14:19.375146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.377072"], ["user_id", "b9cd4300-ced0-11e4-9434-705681abff85"], ["created_at", "2015-03-20 07:14:19.377963"], ["updated_at", "2015-03-20 07:14:19.377963"], ["token", "wG6Bm1KfKmjR3nDRSbsDaCR67ftaGT4li-d1MsY1dl4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.381644"], ["updated_at", "2015-03-20 07:14:19.381644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9cd4300-ced0-11e4-9434-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ceeb6a-ced0-11e4-a0cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9cd4300-ced0-11e4-9434-705681abff85"], ["organization_id", "b9ceeb6a-ced0-11e4-a0cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.384997"], ["updated_at", "2015-03-20 07:14:19.384997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9cdf6f6-ced0-11e4-a70d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ceeb6a-ced0-11e4-a0cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9cdf6f6-ced0-11e4-a70d-705681abff85"], ["organization_id", "b9ceeb6a-ced0-11e4-a0cb-705681abff85"], ["created_at", "2015-03-20 07:14:19.388252"], ["updated_at", "2015-03-20 07:14:19.388252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$z.2ywVcu4s8ADj5c6NfVeug//8RdJ/yH6pv/e8uE0KJnDkrraLrwu"], ["created_at", "2015-03-20 07:14:19.392614"], ["updated_at", "2015-03-20 07:14:19.392614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.394191"], ["user_id", "b9d09a28-ced0-11e4-9f6d-705681abff85"], ["created_at", "2015-03-20 07:14:19.394954"], ["updated_at", "2015-03-20 07:14:19.394954"], ["token", "_Wsee0sOZwymyul1_aCxra49taHE9Qh6zKxk8QWVfgE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = 'b9ceeb6a-ced0-11e4-a0cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "b9ceeb6a-ced0-11e4-a0cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.398915"], ["updated_at", "2015-03-20 07:14:19.398915"], ["token", "US6_AHqWWBLeuDbLq7pnl2gKbD7-0-BAAbNnT-6hIQY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/b9ceeb6a-ced0-11e4-a0cb-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"b9ceeb6a-ced0-11e4-a0cb-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.404482' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_Wsee0sOZwymyul1_aCxra49taHE9Qh6zKxk8QWVfgE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.405998"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.406966"], ["id", "b9d0fc02-ced0-11e4-8442-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b9ceeb6a-ced0-11e4-a0cb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9d09a28-ced0-11e4-9f6d-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$rPY80R7iH1c880vJ3VO1sOqaSLFNz5rHxQvWGsrCV0khmhnAksF1q"], ["created_at", "2015-03-20 07:14:19.420097"], ["updated_at", "2015-03-20 07:14:19.420097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$m7VW3XV4r8Y0BFU/Bzq3QeUvTXZCJaJkNK5kgb/WYHADe/BaPangK"], ["created_at", "2015-03-20 07:14:19.424547"], ["updated_at", "2015-03-20 07:14:19.424547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.426082"], ["user_id", "b9d4cc10-ced0-11e4-a55d-705681abff85"], ["created_at", "2015-03-20 07:14:19.426854"], ["updated_at", "2015-03-20 07:14:19.426854"], ["token", "e9MZYFCDuOZ7HxYue4eG1xHnuOds0oTjVUQc_uOQxv4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.430246"], ["updated_at", "2015-03-20 07:14:19.430246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d4cc10-ced0-11e4-a55d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9d65760-ced0-11e4-8b4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9d4cc10-ced0-11e4-a55d-705681abff85"], ["organization_id", "b9d65760-ced0-11e4-8b4b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.433814"], ["updated_at", "2015-03-20 07:14:19.433814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d5785e-ced0-11e4-a89f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9d65760-ced0-11e4-8b4b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9d5785e-ced0-11e4-a89f-705681abff85"], ["organization_id", "b9d65760-ced0-11e4-8b4b-705681abff85"], ["created_at", "2015-03-20 07:14:19.437144"], ["updated_at", "2015-03-20 07:14:19.437144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$2lFmBmKWN8.0/ye.BmTOvOaWb0udxA.Ej8g9Hs5MvZij96GmEYd4e"], ["created_at", "2015-03-20 07:14:19.447497"], ["updated_at", "2015-03-20 07:14:19.447497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$..1WhYw5pXi0aRdTI9lonuVPIpn7Yc8arhRIvbTYp21ItuxgiVXUu"], ["created_at", "2015-03-20 07:14:19.452129"], ["updated_at", "2015-03-20 07:14:19.452129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.453997"], ["user_id", "b9d8fc22-ced0-11e4-924a-705681abff85"], ["created_at", "2015-03-20 07:14:19.454797"], ["updated_at", "2015-03-20 07:14:19.454797"], ["token", "idLPIpJM8Bx9ioEofv4KiCQVkybhsG6iWZviEbNX6rI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.458626"], ["updated_at", "2015-03-20 07:14:19.458626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d8fc22-ced0-11e4-924a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9daaa90-ced0-11e4-b412-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9d8fc22-ced0-11e4-924a-705681abff85"], ["organization_id", "b9daaa90-ced0-11e4-b412-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.461974"], ["updated_at", "2015-03-20 07:14:19.461974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9d9b5fe-ced0-11e4-9298-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9daaa90-ced0-11e4-b412-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9d9b5fe-ced0-11e4-9298-705681abff85"], ["organization_id", "b9daaa90-ced0-11e4-b412-705681abff85"], ["created_at", "2015-03-20 07:14:19.465913"], ["updated_at", "2015-03-20 07:14:19.465913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/b9db42fc-ced0-11e4-93b7-705681abff85" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"b9db42fc-ced0-11e4-93b7-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.472131' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "idLPIpJM8Bx9ioEofv4KiCQVkybhsG6iWZviEbNX6rI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.474346"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.475914"], ["id", "b9da1f12-ced0-11e4-8467-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "b9db42fc-ced0-11e4-93b7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9d8fc22-ced0-11e4-924a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9daaa90-ced0-11e4-b412-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b9d8fc22-ced0-11e4-924a-705681abff85' LIMIT 1 [["organization_id", "b9daaa90-ced0-11e4-b412-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9d8fc22-ced0-11e4-924a-705681abff85"]] Completed 200 OK in 10ms (Views: 1.6ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$qTCYueyv1cYx0YsgChr9guL//.G1L4pco0An5mG.78djjUqUnGR56"], ["created_at", "2015-03-20 07:14:19.488248"], ["updated_at", "2015-03-20 07:14:19.488248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$1sdVOg3pc1B4nQkV044kSu0Th/UvVMCFp8BUBJ50EZ13FCcpefEdm"], ["created_at", "2015-03-20 07:14:19.492396"], ["updated_at", "2015-03-20 07:14:19.492396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.493998"], ["user_id", "b9df3092-ced0-11e4-b43f-705681abff85"], ["created_at", "2015-03-20 07:14:19.494794"], ["updated_at", "2015-03-20 07:14:19.494794"], ["token", "NtYEC-ZefIjg4ISSC0hKm5HmgQX_SdOTdLJKoeNFdG0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.498189"], ["updated_at", "2015-03-20 07:14:19.498189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9df3092-ced0-11e4-b43f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9e0b228-ced0-11e4-b7ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9df3092-ced0-11e4-b43f-705681abff85"], ["organization_id", "b9e0b228-ced0-11e4-b7ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.501796"], ["updated_at", "2015-03-20 07:14:19.501796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9dfd556-ced0-11e4-bc8e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9e0b228-ced0-11e4-b7ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9dfd556-ced0-11e4-bc8e-705681abff85"], ["organization_id", "b9e0b228-ced0-11e4-b7ce-705681abff85"], ["created_at", "2015-03-20 07:14:19.504722"], ["updated_at", "2015-03-20 07:14:19.504722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$sLkt.2cCyYQ.yg/rG6HbzOWiKQ2SzPg2JDywDcmBZfelSYKytkNRK"], ["created_at", "2015-03-20 07:14:19.509077"], ["updated_at", "2015-03-20 07:14:19.509077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.510593"], ["user_id", "b9e25d80-ced0-11e4-ae98-705681abff85"], ["created_at", "2015-03-20 07:14:19.511327"], ["updated_at", "2015-03-20 07:14:19.511327"], ["token", "LMPyTHa27mPL79fce2TvxE1HHzukmcP05iRlZYS0J_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = 'b9e0b228-ced0-11e4-b7ce-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "b9e0b228-ced0-11e4-b7ce-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.514860"], ["updated_at", "2015-03-20 07:14:19.514860"], ["token", "vwx3T_QzkQOADVKimQW2osDBm5_NCOwpJrZX1dW5cT0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$0FfFqeFkxc.gsoZtypsQ8.zPvHGUMsGVVZWTr3x.X0nKgw1c.VvKO"], ["created_at", "2015-03-20 07:14:19.525870"], ["updated_at", "2015-03-20 07:14:19.525870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$2vx1hgZ2VEHSwic.xPKAG.ykLvQ6kNA8vIcVmRMcdyw4UawlhPGm2"], ["created_at", "2015-03-20 07:14:19.531118"], ["updated_at", "2015-03-20 07:14:19.531118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.532969"], ["user_id", "b9e4f6e4-ced0-11e4-b37a-705681abff85"], ["created_at", "2015-03-20 07:14:19.533794"], ["updated_at", "2015-03-20 07:14:19.533794"], ["token", "CleDoPLw7W1_idhi7rGDOxLwaKIDlKA-pV-NN3xhP0g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.537111"], ["updated_at", "2015-03-20 07:14:19.537111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9e4f6e4-ced0-11e4-b37a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9e6a32c-ced0-11e4-acbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9e4f6e4-ced0-11e4-b37a-705681abff85"], ["organization_id", "b9e6a32c-ced0-11e4-acbe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.540355"], ["updated_at", "2015-03-20 07:14:19.540355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9e5c3c6-ced0-11e4-bdc0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9e6a32c-ced0-11e4-acbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9e5c3c6-ced0-11e4-bdc0-705681abff85"], ["organization_id", "b9e6a32c-ced0-11e4-acbe-705681abff85"], ["created_at", "2015-03-20 07:14:19.543201"], ["updated_at", "2015-03-20 07:14:19.543201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$SiqGOCcqCfgUhaPIBHV1EupvHlTmaVpS8oOpB8TtJlnvTIqW5AvTi"], ["created_at", "2015-03-20 07:14:19.547353"], ["updated_at", "2015-03-20 07:14:19.547353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.548777"], ["user_id", "b9e83354-ced0-11e4-bcbc-705681abff85"], ["created_at", "2015-03-20 07:14:19.549595"], ["updated_at", "2015-03-20 07:14:19.549595"], ["token", "PqAqgyGB8UyXWy7A2s6VwRqdsr7y2dXj4Ou9EnZAQ1g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'b9e6a32c-ced0-11e4-acbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "b9e6a32c-ced0-11e4-acbe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.553260"], ["updated_at", "2015-03-20 07:14:19.553260"], ["token", "VwwyEUkaz3thelPYxcyU5k13Vl9sGG9fqCZTaaxvKJY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"VwwyEUkaz3thelPYxcyU5k13Vl9sGG9fqCZTaaxvKJY", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.557871' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PqAqgyGB8UyXWy7A2s6VwRqdsr7y2dXj4Ou9EnZAQ1g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.559380"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.560417"], ["id", "b9e89326-ced0-11e4-a37b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9e83354-ced0-11e4-bcbc-705681abff85"]] Completed 500 Internal Server Error in 7ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$QjJJBsvWyDCf1aCnAOwD6uwkGY.WEQEnNJNd0JoCLSt9QNL01D65W"], ["created_at", "2015-03-20 07:14:19.570670"], ["updated_at", "2015-03-20 07:14:19.570670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$4R3boDJw/G6OFPLrd3Yyb.ZTF.h3AtJP1aJvO3weXqGOO89LCfpGi"], ["created_at", "2015-03-20 07:14:19.574770"], ["updated_at", "2015-03-20 07:14:19.574770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.576185"], ["user_id", "b9ebc42e-ced0-11e4-8497-705681abff85"], ["created_at", "2015-03-20 07:14:19.576970"], ["updated_at", "2015-03-20 07:14:19.576970"], ["token", "lhrzYb2SSRbkqnpu78BdocDeZjHfo6sJ4_nAjWKayDA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.581202"], ["updated_at", "2015-03-20 07:14:19.581202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ebc42e-ced0-11e4-8497-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ed66d0-ced0-11e4-bbbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9ebc42e-ced0-11e4-8497-705681abff85"], ["organization_id", "b9ed66d0-ced0-11e4-bbbe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.584762"], ["updated_at", "2015-03-20 07:14:19.584762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ec619a-ced0-11e4-a32f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ed66d0-ced0-11e4-bbbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9ec619a-ced0-11e4-a32f-705681abff85"], ["organization_id", "b9ed66d0-ced0-11e4-bbbe-705681abff85"], ["created_at", "2015-03-20 07:14:19.587956"], ["updated_at", "2015-03-20 07:14:19.587956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$TmL3EsBmSpTYRXN/vh9dheieSEb74LI34i8SZ3KN2UuTdvYo2vAEe"], ["created_at", "2015-03-20 07:14:19.592196"], ["updated_at", "2015-03-20 07:14:19.592196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.593721"], ["user_id", "b9ef0ada-ced0-11e4-b050-705681abff85"], ["created_at", "2015-03-20 07:14:19.594489"], ["updated_at", "2015-03-20 07:14:19.594489"], ["token", "MXzyu9aJhqdl_cFs2fflfCM8wFQAttwFomVdyBAJXhY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'b9ed66d0-ced0-11e4-bbbe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "b9ed66d0-ced0-11e4-bbbe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.598575"], ["updated_at", "2015-03-20 07:14:19.598575"], ["token", "vQ_JTu3LZUDlIIfRfOKx3fPYZF8mOCqXhnY8R86GAAM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.603553' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MXzyu9aJhqdl_cFs2fflfCM8wFQAttwFomVdyBAJXhY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.605670"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.606901"], ["id", "b9ef7092-ced0-11e4-b645-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9ef0ada-ced0-11e4-b050-705681abff85"]] Completed 500 Internal Server Error in 8ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$1v79jnGs70w7zQ/DvLPxbe54d4lYX/k3/LJR7wXSGfgVDolKQMqWu"], ["created_at", "2015-03-20 07:14:19.618895"], ["updated_at", "2015-03-20 07:14:19.618895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$8ZX1AxKu17xAOPFrf4gnhOVlMz9GzAWJu7W.GsHphUsM6uWPWGp3O"], ["created_at", "2015-03-20 07:14:19.623238"], ["updated_at", "2015-03-20 07:14:19.623238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.624743"], ["user_id", "b9f32606-ced0-11e4-af07-705681abff85"], ["created_at", "2015-03-20 07:14:19.625479"], ["updated_at", "2015-03-20 07:14:19.625479"], ["token", "np5OIFpwWq8i9NV7oW5Rr_oFFE47mDhEU3OX23ungnA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.628911"], ["updated_at", "2015-03-20 07:14:19.628911"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f32606-ced0-11e4-af07-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f4ab02-ced0-11e4-b85a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9f32606-ced0-11e4-af07-705681abff85"], ["organization_id", "b9f4ab02-ced0-11e4-b85a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.633097"], ["updated_at", "2015-03-20 07:14:19.633097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f3c8d6-ced0-11e4-b3e4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f4ab02-ced0-11e4-b85a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9f3c8d6-ced0-11e4-b3e4-705681abff85"], ["organization_id", "b9f4ab02-ced0-11e4-b85a-705681abff85"], ["created_at", "2015-03-20 07:14:19.636083"], ["updated_at", "2015-03-20 07:14:19.636083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$t2b4NPhf/gsvtASIUBRdMOm/nTKbTiA448CaOgGQT8Lmprvgg3iy6"], ["created_at", "2015-03-20 07:14:19.646532"], ["updated_at", "2015-03-20 07:14:19.646532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$sV1SfQrJxaQdEbCWWK78ou.FTNlRohzQVrfygAyUV0hNOivvHSXNC"], ["created_at", "2015-03-20 07:14:19.650897"], ["updated_at", "2015-03-20 07:14:19.650897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.652367"], ["user_id", "b9f75a5a-ced0-11e4-9c8b-705681abff85"], ["created_at", "2015-03-20 07:14:19.653107"], ["updated_at", "2015-03-20 07:14:19.653107"], ["token", "QVIoysFfFTOoqb4GXze6A7Lu1ymi41-CJsXQj-PnDlc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.656431"], ["updated_at", "2015-03-20 07:14:19.656431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f75a5a-ced0-11e4-9c8b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f8d88a-ced0-11e4-ab3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9f75a5a-ced0-11e4-9c8b-705681abff85"], ["organization_id", "b9f8d88a-ced0-11e4-ab3a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.659474"], ["updated_at", "2015-03-20 07:14:19.659474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9f800cc-ced0-11e4-bf37-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9f8d88a-ced0-11e4-ab3a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9f800cc-ced0-11e4-bf37-705681abff85"], ["organization_id", "b9f8d88a-ced0-11e4-ab3a-705681abff85"], ["created_at", "2015-03-20 07:14:19.662556"], ["updated_at", "2015-03-20 07:14:19.662556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/b9f8d88a-ced0-11e4-ab3a-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"b9f8d88a-ced0-11e4-ab3a-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.668502' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QVIoysFfFTOoqb4GXze6A7Lu1ymi41-CJsXQj-PnDlc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.669974"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.670877"], ["id", "b9f861ac-ced0-11e4-a46b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b9f8d88a-ced0-11e4-ab3a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9f75a5a-ced0-11e4-9c8b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b9f75a5a-ced0-11e4-9c8b-705681abff85' LIMIT 1 [["organization_id", "b9f8d88a-ced0-11e4-ab3a-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "b9f8d88a-ced0-11e4-ab3a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9f8d88a-ced0-11e4-ab3a-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9f75a5a-ced0-11e4-9c8b-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b9f8d88a-ced0-11e4-ab3a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9f800cc-ced0-11e4-bf37-705681abff85"]] Completed 200 OK in 13ms (Views: 4.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$yhyZ7tYaNZqFqAigxKc8QuMY7qHiUZXey5Uqk1gqol2Yl.bRgT1YK"], ["created_at", "2015-03-20 07:14:19.687437"], ["updated_at", "2015-03-20 07:14:19.687437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$iPCLDk5ZCvn0jfXM5.3Cves8/WY0WNWO6ldOng1hL1qMdgmLSSViS"], ["created_at", "2015-03-20 07:14:19.691870"], ["updated_at", "2015-03-20 07:14:19.691870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.693394"], ["user_id", "b9fd9564-ced0-11e4-a620-705681abff85"], ["created_at", "2015-03-20 07:14:19.694127"], ["updated_at", "2015-03-20 07:14:19.694127"], ["token", "bzONLcoZKBx5dSulL_eKf8sLY2Sfh_eiyfmB8s67P-E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.697365"], ["updated_at", "2015-03-20 07:14:19.697365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9fd9564-ced0-11e4-a620-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ff1646-ced0-11e4-a1c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9fd9564-ced0-11e4-a620-705681abff85"], ["organization_id", "b9ff1646-ced0-11e4-a1c7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.700474"], ["updated_at", "2015-03-20 07:14:19.700474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9fe41f8-ced0-11e4-bc09-705681abff85' AND "clubhouse_memberships"."organization_id" = 'b9ff1646-ced0-11e4-a1c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b9fe41f8-ced0-11e4-bc09-705681abff85"], ["organization_id", "b9ff1646-ced0-11e4-a1c7-705681abff85"], ["created_at", "2015-03-20 07:14:19.703540"], ["updated_at", "2015-03-20 07:14:19.703540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$ejradaeAcW/zVRXRmWpXieeKidv7gDQdzJV33tm6TKOpFp.ojN10m"], ["created_at", "2015-03-20 07:14:19.713137"], ["updated_at", "2015-03-20 07:14:19.713137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$BpsVxiT3Npn84ljt4FoSVOC/WbWnyZnpZaoK..tI0Ikn7iYPVWEIW"], ["created_at", "2015-03-20 07:14:19.717730"], ["updated_at", "2015-03-20 07:14:19.717730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.719494"], ["user_id", "ba0186ce-ced0-11e4-899d-705681abff85"], ["created_at", "2015-03-20 07:14:19.720405"], ["updated_at", "2015-03-20 07:14:19.720405"], ["token", "Qs3xDcXCua29lxaQsIkA3APDCYUO22JtGHYGDgGXhk4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.724151"], ["updated_at", "2015-03-20 07:14:19.724151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba0186ce-ced0-11e4-899d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba032ea2-ced0-11e4-bf45-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba0186ce-ced0-11e4-899d-705681abff85"], ["organization_id", "ba032ea2-ced0-11e4-bf45-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.727254"], ["updated_at", "2015-03-20 07:14:19.727254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba023808-ced0-11e4-a6ac-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba032ea2-ced0-11e4-bf45-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba023808-ced0-11e4-a6ac-705681abff85"], ["organization_id", "ba032ea2-ced0-11e4-bf45-705681abff85"], ["created_at", "2015-03-20 07:14:19.730970"], ["updated_at", "2015-03-20 07:14:19.730970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.735931' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Qs3xDcXCua29lxaQsIkA3APDCYUO22JtGHYGDgGXhk4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.737306"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.738211"], ["id", "ba02a586-ced0-11e4-b1c3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba0186ce-ced0-11e4-899d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ba0186ce-ced0-11e4-899d-705681abff85' LIMIT 1 [["organization_id", "ba032ea2-ced0-11e4-bf45-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "ba032ea2-ced0-11e4-bf45-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ba032ea2-ced0-11e4-bf45-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba0186ce-ced0-11e4-899d-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ba032ea2-ced0-11e4-bf45-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba023808-ced0-11e4-a6ac-705681abff85"]] Completed 200 OK in 13ms (Views: 4.8ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$iTzCZc7jcv7Zqmo.UQJrv.xsYisuC9mbX9K22rkzLyXpgVUAymyq6"], ["created_at", "2015-03-20 07:14:19.754593"], ["updated_at", "2015-03-20 07:14:19.754593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.756278"], ["user_id", "ba07d60a-ced0-11e4-8a07-705681abff85"], ["created_at", "2015-03-20 07:14:19.757048"], ["updated_at", "2015-03-20 07:14:19.757048"], ["token", "8pY0MQbmNefN15wNdRXtZzA7oCVDliHJvTPn1vgAZR8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.760439"], ["updated_at", "2015-03-20 07:14:19.760439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba07d60a-ced0-11e4-8a07-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba08b688-ced0-11e4-8f11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba07d60a-ced0-11e4-8a07-705681abff85"], ["organization_id", "ba08b688-ced0-11e4-8f11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.763687"], ["updated_at", "2015-03-20 07:14:19.763687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$qnLzMYqHyUh6aYt8LYaajeX6swPE5c4WpoOeUsytUcu5Wucgn5I8."], ["created_at", "2015-03-20 07:14:19.778004"], ["updated_at", "2015-03-20 07:14:19.778004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.779829"], ["user_id", "ba0b6c0c-ced0-11e4-b82d-705681abff85"], ["created_at", "2015-03-20 07:14:19.780675"], ["updated_at", "2015-03-20 07:14:19.780675"], ["token", "WQd-oGNCXzzeRJMNS-FhLuW3RFQ7Sdm6uYU5It7mdck"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.784241"], ["updated_at", "2015-03-20 07:14:19.784241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba0b6c0c-ced0-11e4-b82d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba0c58c4-ced0-11e4-bdbf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba0b6c0c-ced0-11e4-b82d-705681abff85"], ["organization_id", "ba0c58c4-ced0-11e4-bdbf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.787845"], ["updated_at", "2015-03-20 07:14:19.787845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.792463' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WQd-oGNCXzzeRJMNS-FhLuW3RFQ7Sdm6uYU5It7mdck"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.793997"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.794983"], ["id", "ba0bdb60-ced0-11e4-b971-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba0b6c0c-ced0-11e4-b82d-705681abff85"]] Completed 500 Internal Server Error in 9ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$uPrx7PVK2e1YyVWXrjurGO38qHpfWgsyT53B4WWEG7WedrI8eSP9y"], ["created_at", "2015-03-20 07:14:19.806094"], ["updated_at", "2015-03-20 07:14:19.806094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.807757"], ["user_id", "ba0fb3ac-ced0-11e4-9161-705681abff85"], ["created_at", "2015-03-20 07:14:19.808546"], ["updated_at", "2015-03-20 07:14:19.808546"], ["token", "978NpM238TglWAAj76lj3gG448mEUIHQlNa0C5ARbZE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.811752"], ["updated_at", "2015-03-20 07:14:19.811752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba0fb3ac-ced0-11e4-9161-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba108c0a-ced0-11e4-9a05-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba0fb3ac-ced0-11e4-9161-705681abff85"], ["organization_id", "ba108c0a-ced0-11e4-9a05-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.814860"], ["updated_at", "2015-03-20 07:14:19.814860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.819616' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "978NpM238TglWAAj76lj3gG448mEUIHQlNa0C5ARbZE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.821006"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.822053"], ["id", "ba101662-ced0-11e4-adc9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba0fb3ac-ced0-11e4-9161-705681abff85"]] Completed 500 Internal Server Error in 6ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$.oWK15trOgq266IVO1tdtuv28pEU21DcpRCKCA2Umt7mx/Yp3DGtq"], ["created_at", "2015-03-20 07:14:19.833590"], ["updated_at", "2015-03-20 07:14:19.833590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.835490"], ["user_id", "ba13ebde-ced0-11e4-aa81-705681abff85"], ["created_at", "2015-03-20 07:14:19.836355"], ["updated_at", "2015-03-20 07:14:19.836355"], ["token", "diXtOQ9Bco_oaHsxXHVKOg8auOV99GISBUSNFBSjsuU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.840201"], ["updated_at", "2015-03-20 07:14:19.840201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba13ebde-ced0-11e4-aa81-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba14e548-ced0-11e4-9293-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba13ebde-ced0-11e4-aa81-705681abff85"], ["organization_id", "ba14e548-ced0-11e4-9293-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.843427"], ["updated_at", "2015-03-20 07:14:19.843427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$zOIc1VtwWKUZbMTBrLCY7.CNfsf4iQBxvkPwi04ARhYmSDph/zXSG"], ["created_at", "2015-03-20 07:14:19.854435"], ["updated_at", "2015-03-20 07:14:19.854435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.856003"], ["user_id", "ba171174-ced0-11e4-b711-705681abff85"], ["created_at", "2015-03-20 07:14:19.856740"], ["updated_at", "2015-03-20 07:14:19.856740"], ["token", "qqoseBT-LQslGLToTIzphgTLqwee3h3k3seRcdjjEew"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.859912"], ["updated_at", "2015-03-20 07:14:19.859912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba171174-ced0-11e4-b711-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba17e414-ced0-11e4-a29e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba171174-ced0-11e4-b711-705681abff85"], ["organization_id", "ba17e414-ced0-11e4-a29e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.863157"], ["updated_at", "2015-03-20 07:14:19.863157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/ba17e414-ced0-11e4-a29e-705681abff85" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"ba17e414-ced0-11e4-a29e-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.867885' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qqoseBT-LQslGLToTIzphgTLqwee3h3k3seRcdjjEew"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.869233"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.870149"], ["id", "ba176f7a-ced0-11e4-98fa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba17e414-ced0-11e4-a29e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba171174-ced0-11e4-b711-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ba171174-ced0-11e4-b711-705681abff85' LIMIT 1 [["organization_id", "ba17e414-ced0-11e4-a29e-705681abff85"]] Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$4L1teKUFwrcT8t0QiyBOqu1gh.yl8uhQTqdIytRKzLbSNXYhYS282"], ["created_at", "2015-03-20 07:14:19.881291"], ["updated_at", "2015-03-20 07:14:19.881291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.882819"], ["user_id", "ba1b2a20-ced0-11e4-9a22-705681abff85"], ["created_at", "2015-03-20 07:14:19.883654"], ["updated_at", "2015-03-20 07:14:19.883654"], ["token", "CFt7L4g9bdbe9jsCWI-nLFUSRJA588eUq8tPp07BHSw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.887818"], ["updated_at", "2015-03-20 07:14:19.887818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba1b2a20-ced0-11e4-9a22-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba1c2b32-ced0-11e4-a62f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba1b2a20-ced0-11e4-9a22-705681abff85"], ["organization_id", "ba1c2b32-ced0-11e4-a62f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.891532"], ["updated_at", "2015-03-20 07:14:19.891532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$EgroDCpn2BfefQOz/0Kve.efXENwtGpIBeslJXzTsbjf60QkBax.6"], ["created_at", "2015-03-20 07:14:19.896216"], ["updated_at", "2015-03-20 07:14:19.896216"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.900284"], ["updated_at", "2015-03-20 07:14:19.900284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba1d72a8-ced0-11e4-9bf7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba1e1244-ced0-11e4-b103-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba1d72a8-ced0-11e4-9bf7-705681abff85"], ["organization_id", "ba1e1244-ced0-11e4-b103-705681abff85"], ["created_at", "2015-03-20 07:14:19.903464"], ["updated_at", "2015-03-20 07:14:19.903464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$U2cmhFYoFW94nF.4anI.xe0PoAyxO9NnJ1pL/QPr8sWNJKTO5wXoO"], ["created_at", "2015-03-20 07:14:19.913260"], ["updated_at", "2015-03-20 07:14:19.913260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.914849"], ["user_id", "ba200c8e-ced0-11e4-a94b-705681abff85"], ["created_at", "2015-03-20 07:14:19.915646"], ["updated_at", "2015-03-20 07:14:19.915646"], ["token", "2aq_R8XkkpXov1FTlkKhwwIa2nO0OKzY-roRa3DUJwA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.918824"], ["updated_at", "2015-03-20 07:14:19.918824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba200c8e-ced0-11e4-a94b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba20e140-ced0-11e4-9783-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba200c8e-ced0-11e4-a94b-705681abff85"], ["organization_id", "ba20e140-ced0-11e4-9783-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.921998"], ["updated_at", "2015-03-20 07:14:19.921998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$KeQzAD5zThYxrCNqaXvl.OxAbRu0Z1iUygVSoGJcSDsZE4JiMXNsy"], ["created_at", "2015-03-20 07:14:19.926516"], ["updated_at", "2015-03-20 07:14:19.926516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.929493"], ["updated_at", "2015-03-20 07:14:19.929493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba220fc0-ced0-11e4-95ff-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba228702-ced0-11e4-91d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ba220fc0-ced0-11e4-95ff-705681abff85"], ["organization_id", "ba228702-ced0-11e4-91d4-705681abff85"], ["created_at", "2015-03-20 07:14:19.932906"], ["updated_at", "2015-03-20 07:14:19.932906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.937579' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "2aq_R8XkkpXov1FTlkKhwwIa2nO0OKzY-roRa3DUJwA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.938997"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:19.939967"], ["id", "ba206da0-ced0-11e4-ac6a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba200c8e-ced0-11e4-a94b-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "ba200c8e-ced0-11e4-a94b-705681abff85"]] Completed 200 OK in 10ms (Views: 3.3ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$aI5qzsUWLxezuI0HrOudQ.9tXIJbTCCQvttZXezpQGn4g7U18nzyW"], ["created_at", "2015-03-20 07:14:19.964052"], ["updated_at", "2015-03-20 07:14:19.964052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.966459"], ["user_id", "ba27d9dc-ced0-11e4-b172-705681abff85"], ["created_at", "2015-03-20 07:14:19.967245"], ["updated_at", "2015-03-20 07:14:19.967245"], ["token", "D7I-pmN3mgcuPd5wUSw4qgNOhfUJqnFni3f7UZBSlVg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.971111"], ["updated_at", "2015-03-20 07:14:19.971111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba27d9dc-ced0-11e4-b172-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba28dd96-ced0-11e4-bb90-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba27d9dc-ced0-11e4-b172-705681abff85"], ["organization_id", "ba28dd96-ced0-11e4-bb90-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.974325"], ["updated_at", "2015-03-20 07:14:19.974325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$lYRITqN.d2HjDdYgrUmmM.jc9Nz.SR63B3WQfSj//Sr0ES4zf32SS"], ["created_at", "2015-03-20 07:14:19.984493"], ["updated_at", "2015-03-20 07:14:19.984493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:19.986110"], ["user_id", "ba2aeb86-ced0-11e4-b070-705681abff85"], ["created_at", "2015-03-20 07:14:19.986960"], ["updated_at", "2015-03-20 07:14:19.986960"], ["token", "ZuVOoT9i_PwE3Cmy7rtHxJxN1zgD__z6YBqzwo2bXaI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:19.990426"], ["updated_at", "2015-03-20 07:14:19.990426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba2aeb86-ced0-11e4-b070-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba2bd5d2-ced0-11e4-bda4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba2aeb86-ced0-11e4-b070-705681abff85"], ["organization_id", "ba2bd5d2-ced0-11e4-bda4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:19.993853"], ["updated_at", "2015-03-20 07:14:19.993853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-69" for 127.0.0.1 at 2015-03-20 00:14:19 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-69", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:19.998285' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZuVOoT9i_PwE3Cmy7rtHxJxN1zgD__z6YBqzwo2bXaI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:19.999746"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:20.000916"], ["id", "ba2b5418-ced0-11e4-a18b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-69"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba2aeb86-ced0-11e4-b070-705681abff85"]] Completed 200 OK in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$hRHmJ5HRdXHyVuTZTpn.e.xUycfotT0xrujtUrJmi8Z1LCbL5PmWi"], ["created_at", "2015-03-20 07:14:20.011343"], ["updated_at", "2015-03-20 07:14:20.011343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.013047"], ["user_id", "ba2f07e8-ced0-11e4-b4b0-705681abff85"], ["created_at", "2015-03-20 07:14:20.013897"], ["updated_at", "2015-03-20 07:14:20.013897"], ["token", "0mhlmt2bWPzaayQ2bLcjcwP6kL1vIRddstab9Y45ROI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.020277"], ["updated_at", "2015-03-20 07:14:20.020277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba2f07e8-ced0-11e4-b4b0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba30644e-ced0-11e4-a2a2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba2f07e8-ced0-11e4-b4b0-705681abff85"], ["organization_id", "ba30644e-ced0-11e4-a2a2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.023770"], ["updated_at", "2015-03-20 07:14:20.023770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:20.029307' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0mhlmt2bWPzaayQ2bLcjcwP6kL1vIRddstab9Y45ROI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:20.030926"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:20.032008"], ["id", "ba2f9a64-ced0-11e4-92d9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$irri.dQy/NzkJYeQa.gP1OzFnhAMQvNocSZwPB.nOk5TYvXGsrsbi"], ["created_at", "2015-03-20 07:14:20.040342"], ["updated_at", "2015-03-20 07:14:20.040342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.043249"], ["user_id", "ba3389da-ced0-11e4-8239-705681abff85"], ["created_at", "2015-03-20 07:14:20.044475"], ["updated_at", "2015-03-20 07:14:20.044475"], ["token", "yAo4qZxjdxl9UAYfMVrLiwrplBqDMakgzyuKcQshH_M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.049691"], ["updated_at", "2015-03-20 07:14:20.049691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba3389da-ced0-11e4-8239-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba34e6ea-ced0-11e4-ae06-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba3389da-ced0-11e4-8239-705681abff85"], ["organization_id", "ba34e6ea-ced0-11e4-ae06-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.054547"], ["updated_at", "2015-03-20 07:14:20.054547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$jHrbbf4JN2rED5/.ut30AO3gURK4USLVQHCl2Qa.EPGtc/H5jYa5O"], ["created_at", "2015-03-20 07:14:20.069615"], ["updated_at", "2015-03-20 07:14:20.069615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.071583"], ["user_id", "ba37ee26-ced0-11e4-8c43-705681abff85"], ["created_at", "2015-03-20 07:14:20.072528"], ["updated_at", "2015-03-20 07:14:20.072528"], ["token", "D9Pc-8rqdOQhMjOrfgph0a0_RmE13lug8t1cQzjvk0M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.076732"], ["updated_at", "2015-03-20 07:14:20.076732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba37ee26-ced0-11e4-8c43-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba38fb0e-ced0-11e4-9ab2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba37ee26-ced0-11e4-8c43-705681abff85"], ["organization_id", "ba38fb0e-ced0-11e4-9ab2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.079999"], ["updated_at", "2015-03-20 07:14:20.079999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/ba38fb0e-ced0-11e4-9ab2-705681abff85" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"ba38fb0e-ced0-11e4-9ab2-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:20.084816' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "D9Pc-8rqdOQhMjOrfgph0a0_RmE13lug8t1cQzjvk0M"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:20.086291"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:20.087364"], ["id", "ba387972-ced0-11e4-84ae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba38fb0e-ced0-11e4-9ab2-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba37ee26-ced0-11e4-8c43-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba37ee26-ced0-11e4-8c43-705681abff85' LIMIT 1 [["organization_id", "ba38fb0e-ced0-11e4-9ab2-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ba38fb0e-ced0-11e4-9ab2-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 07:14:20.093534"], ["id", "ba38fb0e-ced0-11e4-9ab2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$TEQsjMkt5k4QiGVTY1ftZeYy9l/wJO4tFxZahScHSeFlvIkuV/S8m"], ["created_at", "2015-03-20 07:14:20.101676"], ["updated_at", "2015-03-20 07:14:20.101676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.103572"], ["user_id", "ba3cd224-ced0-11e4-8a2c-705681abff85"], ["created_at", "2015-03-20 07:14:20.104403"], ["updated_at", "2015-03-20 07:14:20.104403"], ["token", "Pf8Rz4o6Nmm-uv-v16XDYSs5n517QQEypOBjov8OMlc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.108250"], ["updated_at", "2015-03-20 07:14:20.108250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba3cd224-ced0-11e4-8a2c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba3dcb70-ced0-11e4-923a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba3cd224-ced0-11e4-8a2c-705681abff85"], ["organization_id", "ba3dcb70-ced0-11e4-923a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.111489"], ["updated_at", "2015-03-20 07:14:20.111489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/ba3dcb70-ced0-11e4-923a-705681abff85" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"ba3dcb70-ced0-11e4-923a-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:20.117260' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Pf8Rz4o6Nmm-uv-v16XDYSs5n517QQEypOBjov8OMlc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:20.118759"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:20.119737"], ["id", "ba3d3e8a-ced0-11e4-999e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba3dcb70-ced0-11e4-923a-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba3cd224-ced0-11e4-8a2c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba3cd224-ced0-11e4-8a2c-705681abff85' LIMIT 1 [["organization_id", "ba3dcb70-ced0-11e4-923a-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ba3dcb70-ced0-11e4-923a-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$qxbMYClYsF/08vN2UK.tneJ3GoVAcERs58Ua.zpRmBuM0Vhktf0X2"], ["created_at", "2015-03-20 07:14:20.133509"], ["updated_at", "2015-03-20 07:14:20.133509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.135118"], ["user_id", "ba41a77c-ced0-11e4-bef7-705681abff85"], ["created_at", "2015-03-20 07:14:20.135873"], ["updated_at", "2015-03-20 07:14:20.135873"], ["token", "9R-Atd-p3_e_Tauxmnhbt1KS11T4nG7hdP1cvu2ZyKk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.139186"], ["updated_at", "2015-03-20 07:14:20.139186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba41a77c-ced0-11e4-bef7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba42835e-ced0-11e4-bfd2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba41a77c-ced0-11e4-bef7-705681abff85"], ["organization_id", "ba42835e-ced0-11e4-bfd2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.142685"], ["updated_at", "2015-03-20 07:14:20.142685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$LbjDuTkaaIBrEG3V0KFLyOlJnzEhxdjxUHZCALYaeLGErMPpIQMiO"], ["created_at", "2015-03-20 07:14:20.152237"], ["updated_at", "2015-03-20 07:14:20.152237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.154027"], ["user_id", "ba4483de-ced0-11e4-9fe1-705681abff85"], ["created_at", "2015-03-20 07:14:20.154873"], ["updated_at", "2015-03-20 07:14:20.154873"], ["token", "Y7jdd28b0A3EluXtEOkMyxM_OlujPaxkHY9zMlMTY1Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.158322"], ["updated_at", "2015-03-20 07:14:20.158322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba4483de-ced0-11e4-9fe1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba456f56-ced0-11e4-a9f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba4483de-ced0-11e4-9fe1-705681abff85"], ["organization_id", "ba456f56-ced0-11e4-a9f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.161702"], ["updated_at", "2015-03-20 07:14:20.161702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-75" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-75", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:20.167498' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Y7jdd28b0A3EluXtEOkMyxM_OlujPaxkHY9zMlMTY1Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:20.169061"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:20.170007"], ["id", "ba44effe-ced0-11e4-8faf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-75"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba4483de-ced0-11e4-9fe1-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba4483de-ced0-11e4-9fe1-705681abff85' LIMIT 1 [["organization_id", "ba456f56-ced0-11e4-a9f8-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ba456f56-ced0-11e4-a9f8-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 07:14:20.176131"], ["id", "ba456f56-ced0-11e4-a9f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$TBpUb0mDJO0yVBVF36oeNuMEru1A8lvPl06Cu/emHcXBzMP1SRLXS"], ["created_at", "2015-03-20 07:14:20.184508"], ["updated_at", "2015-03-20 07:14:20.184508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.186175"], ["user_id", "ba497236-ced0-11e4-b102-705681abff85"], ["created_at", "2015-03-20 07:14:20.186943"], ["updated_at", "2015-03-20 07:14:20.186943"], ["token", "AfUaVN_z2DVs0X_IQgbDo7SM-DeoFB6OMMDPIawNyME"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.9ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.197407"], ["updated_at", "2015-03-20 07:14:20.197407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba497236-ced0-11e4-b102-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba4b8a3a-ced0-11e4-995c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba497236-ced0-11e4-b102-705681abff85"], ["organization_id", "ba4b8a3a-ced0-11e4-995c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.203171"], ["updated_at", "2015-03-20 07:14:20.203171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-76" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-76", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:20.210340' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "AfUaVN_z2DVs0X_IQgbDo7SM-DeoFB6OMMDPIawNyME"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:20.212443"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:20.213917"], ["id", "ba49d2b2-ced0-11e4-987a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-76"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba497236-ced0-11e4-b102-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba497236-ced0-11e4-b102-705681abff85' LIMIT 1 [["organization_id", "ba4b8a3a-ced0-11e4-995c-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ba4b8a3a-ced0-11e4-995c-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$fJbshF5vIZHgA99PTCTZseOUMRkDKtesYkS7er434jeFSAZ4sm/1u"], ["created_at", "2015-03-20 07:14:20.232860"], ["updated_at", "2015-03-20 07:14:20.232860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.235380"], ["user_id", "ba50e66a-ced0-11e4-8292-705681abff85"], ["created_at", "2015-03-20 07:14:20.236192"], ["updated_at", "2015-03-20 07:14:20.236192"], ["token", "yUjIRaDMH3xVeupi_e1LMZSXaNYJl8k3xgQ2KBC3EZY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.239624"], ["updated_at", "2015-03-20 07:14:20.239624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba50e66a-ced0-11e4-8292-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba51db10-ced0-11e4-9a8e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba50e66a-ced0-11e4-8292-705681abff85"], ["organization_id", "ba51db10-ced0-11e4-9a8e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.243077"], ["updated_at", "2015-03-20 07:14:20.243077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$BuYOagUgL1dvmitaH0pbQ.4jPZR24BrQsyH3Dor/Ml8Qvtzkvuo5e"], ["created_at", "2015-03-20 07:14:20.253016"], ["updated_at", "2015-03-20 07:14:20.253016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.254601"], ["user_id", "ba53e306-ced0-11e4-80b9-705681abff85"], ["created_at", "2015-03-20 07:14:20.255387"], ["updated_at", "2015-03-20 07:14:20.255387"], ["token", "hyCHxYi8U6cVAacR9_D_E5LQrV-kay3UcSLjL5WdKMQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.258812"], ["updated_at", "2015-03-20 07:14:20.258812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba53e306-ced0-11e4-80b9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba54c578-ced0-11e4-b492-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba53e306-ced0-11e4-80b9-705681abff85"], ["organization_id", "ba54c578-ced0-11e4-b492-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.262276"], ["updated_at", "2015-03-20 07:14:20.262276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/ba54c578-ced0-11e4-b492-705681abff85" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"ba54c578-ced0-11e4-b492-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:20.266578' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "hyCHxYi8U6cVAacR9_D_E5LQrV-kay3UcSLjL5WdKMQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:20.268063"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:20.269628"], ["id", "ba544594-ced0-11e4-b0d8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ba54c578-ced0-11e4-b492-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba53e306-ced0-11e4-80b9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba53e306-ced0-11e4-80b9-705681abff85' LIMIT 1 [["organization_id", "ba54c578-ced0-11e4-b492-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "ba54c578-ced0-11e4-b492-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$v4aHrQfbwky2Idq7qqKRKeNIvl2K/N2BG.wdSZcRWV7VCqFzWv1Zu"], ["created_at", "2015-03-20 07:14:20.280768"], ["updated_at", "2015-03-20 07:14:20.280768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.282712"], ["user_id", "ba5825ec-ced0-11e4-9a88-705681abff85"], ["created_at", "2015-03-20 07:14:20.284066"], ["updated_at", "2015-03-20 07:14:20.284066"], ["token", "OokCr66nn6sux6gimGBX3b8YznuTnZxRgZGKeKYGtHA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.287736"], ["updated_at", "2015-03-20 07:14:20.287736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba5825ec-ced0-11e4-9a88-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba592d16-ced0-11e4-a7b7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba5825ec-ced0-11e4-9a88-705681abff85"], ["organization_id", "ba592d16-ced0-11e4-a7b7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.291065"], ["updated_at", "2015-03-20 07:14:20.291065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$YGp.ckyMmNOlhM0CO.oCLOTresyjaCnMHNzStI7sx514FzyZtgB6O"], ["created_at", "2015-03-20 07:14:20.300629"], ["updated_at", "2015-03-20 07:14:20.300629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.302268"], ["user_id", "ba5b28f0-ced0-11e4-a110-705681abff85"], ["created_at", "2015-03-20 07:14:20.303069"], ["updated_at", "2015-03-20 07:14:20.303069"], ["token", "1U2IoWLxgebeiK7UOAIKPjZFczBGyOZs8hsZ-sUa4Z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.306497"], ["updated_at", "2015-03-20 07:14:20.306497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba5b28f0-ced0-11e4-a110-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba5c090a-ced0-11e4-911d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba5b28f0-ced0-11e4-a110-705681abff85"], ["organization_id", "ba5c090a-ced0-11e4-911d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.309684"], ["updated_at", "2015-03-20 07:14:20.309684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-80" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-80", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:20.314656' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1U2IoWLxgebeiK7UOAIKPjZFczBGyOZs8hsZ-sUa4Z0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:20.316218"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:20.317184"], ["id", "ba5b8ba6-ced0-11e4-a5c6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-80"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba5b28f0-ced0-11e4-a110-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ba5b28f0-ced0-11e4-a110-705681abff85' LIMIT 1 [["organization_id", "ba5c090a-ced0-11e4-911d-705681abff85"]] Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$hHDrCBpqYMAmVlYGHYMWAOIRVY6xUwyPxZMGnGBWa4c32E0eJjRiC"], ["created_at", "2015-03-20 07:14:20.328872"], ["updated_at", "2015-03-20 07:14:20.328872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.330491"], ["user_id", "ba5f7720-ced0-11e4-bcdf-705681abff85"], ["created_at", "2015-03-20 07:14:20.331401"], ["updated_at", "2015-03-20 07:14:20.331401"], ["token", "OcwHtNS1GBgi1MVX7WqiEqttMyUTB0aSc0mp9G_4uPw"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.336323"], ["updated_at", "2015-03-20 07:14:20.336323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba5f7720-ced0-11e4-bcdf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba609f74-ced0-11e4-8d54-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba5f7720-ced0-11e4-bcdf-705681abff85"], ["organization_id", "ba609f74-ced0-11e4-8d54-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.340088"], ["updated_at", "2015-03-20 07:14:20.340088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$zxfcaK7SEfw9bCrZTy5Y8.i2iFLDMI8f6nLK6e1MKeVhVwiI/1eUm"], ["created_at", "2015-03-20 07:14:20.349842"], ["updated_at", "2015-03-20 07:14:20.349842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:14:20.351763"], ["user_id", "ba62b2f0-ced0-11e4-a224-705681abff85"], ["created_at", "2015-03-20 07:14:20.352579"], ["updated_at", "2015-03-20 07:14:20.352579"], ["token", "t2S3dHFv15744HgGfM7jSzFRj_5bZldkQ0rxVrY9doE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:14:20.356393"], ["updated_at", "2015-03-20 07:14:20.356393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba62b2f0-ced0-11e4-a224-705681abff85' AND "clubhouse_memberships"."organization_id" = 'ba63a7fa-ced0-11e4-ab6f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba62b2f0-ced0-11e4-a224-705681abff85"], ["organization_id", "ba63a7fa-ced0-11e4-ab6f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:14:20.359609"], ["updated_at", "2015-03-20 07:14:20.359609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-82" for 127.0.0.1 at 2015-03-20 00:14:20 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-82", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:14:20.364563' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "t2S3dHFv15744HgGfM7jSzFRj_5bZldkQ0rxVrY9doE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:14:20.366112"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:14:20.367082"], ["id", "ba6324a6-ced0-11e4-84c1-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-82"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba62b2f0-ced0-11e4-a224-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ba62b2f0-ced0-11e4-a224-705681abff85' LIMIT 1 [["organization_id", "ba63a7fa-ced0-11e4-ab6f-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "ba63a7fa-ced0-11e4-ab6f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$YgB4K7ogP/pSSJ3u2/Aldew02SLOsPMNmxBwNppa.LDjgHF59vWv2"], ["created_at", "2015-03-20 07:16:39.934200"], ["updated_at", "2015-03-20 07:16:39.934200"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:39.968901"], ["updated_at", "2015-03-20 07:16:39.968901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d9871c6-ced1-11e4-bebd-705681abff85' AND "clubhouse_memberships"."organization_id" = '0d9aded4-ced1-11e4-acfb-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d9871c6-ced1-11e4-bebd-705681abff85"], ["organization_id", "0d9aded4-ced1-11e4-acfb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:39.984712"], ["updated_at", "2015-03-20 07:16:39.984712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0d9aded4-ced1-11e4-acfb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "0d9aded4-ced1-11e4-acfb-705681abff85"], ["created_at", "2015-03-20 07:16:39.995808"], ["updated_at", "2015-03-20 07:16:39.995808"], ["token", "5CwmSHWD9RcKVBbpU7CPxyYuakNW9C1QtQweeOOhIZ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0d9871c6-ced1-11e4-bebd-705681abff85' LIMIT 1 [["organization_id", "0d9aded4-ced1-11e4-acfb-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$Cb8pNN9e8wpnNqp4ZWZoGODCbWSZcIpXaI45D6xsPsE0fgBh9l9J6"], ["created_at", "2015-03-20 07:16:40.017856"], ["updated_at", "2015-03-20 07:16:40.017856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.021227"], ["updated_at", "2015-03-20 07:16:40.021227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0da25114-ced1-11e4-9d1a-705681abff85' AND "clubhouse_memberships"."organization_id" = '0da2d346-ced1-11e4-8c12-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0da25114-ced1-11e4-9d1a-705681abff85"], ["organization_id", "0da2d346-ced1-11e4-8c12-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.024651"], ["updated_at", "2015-03-20 07:16:40.024651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '0da2d346-ced1-11e4-8c12-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "0da2d346-ced1-11e4-8c12-705681abff85"], ["created_at", "2015-03-20 07:16:40.028642"], ["updated_at", "2015-03-20 07:16:40.028642"], ["token", "5Q49wl7RxrkAjVhrOPdmpPZcsVu5uK452E1f6jt2FJ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0da25114-ced1-11e4-9d1a-705681abff85' LIMIT 1 [["organization_id", "0da2d346-ced1-11e4-8c12-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$NVmToeMIhKGAqqsuEmhhUe1RCZlPSMB4Q.bhIZkQqsdY8y0aJvENq"], ["created_at", "2015-03-20 07:16:40.036207"], ["updated_at", "2015-03-20 07:16:40.036207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.039554"], ["updated_at", "2015-03-20 07:16:40.039554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0da51eb2-ced1-11e4-8e19-705681abff85' AND "clubhouse_memberships"."organization_id" = '0da5a3e6-ced1-11e4-abbd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0da51eb2-ced1-11e4-8e19-705681abff85"], ["organization_id", "0da5a3e6-ced1-11e4-abbd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.043110"], ["updated_at", "2015-03-20 07:16:40.043110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '0da5a3e6-ced1-11e4-abbd-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "0da5a3e6-ced1-11e4-abbd-705681abff85"], ["created_at", "2015-03-20 07:16:40.046785"], ["updated_at", "2015-03-20 07:16:40.046785"], ["token", "jkG4VzfrqzFa0LsE4tRa6p905MJzEMOVj9dOWNoNDj8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0da51eb2-ced1-11e4-8e19-705681abff85' LIMIT 1 [["organization_id", "0da5a3e6-ced1-11e4-abbd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$MZUupFXPqLdLCgYkGSRBkuWnaWirplSUw0.THvg6O.VEk6vNsL7su"], ["created_at", "2015-03-20 07:16:40.054746"], ["updated_at", "2015-03-20 07:16:40.054746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.057986"], ["updated_at", "2015-03-20 07:16:40.057986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0da7f240-ced1-11e4-a22b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0da86e8c-ced1-11e4-be86-705681abff85') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0da7f240-ced1-11e4-a22b-705681abff85"], ["organization_id", "0da86e8c-ced1-11e4-be86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.061596"], ["updated_at", "2015-03-20 07:16:40.061596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '0da86e8c-ced1-11e4-be86-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "0da86e8c-ced1-11e4-be86-705681abff85"], ["created_at", "2015-03-20 07:16:40.066953"], ["updated_at", "2015-03-20 07:16:40.066953"], ["token", "_6zvneQBBgKZ6A5_prG1CRbNTjt4F4l3wY7QsSNby0Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0da7f240-ced1-11e4-a22b-705681abff85' LIMIT 1 [["organization_id", "0da86e8c-ced1-11e4-be86-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$QrOTJSZ.uB3PiuITPwQVOONqauPhpKc5CjYIs8rvi6Bsc1fcYF0dK"], ["created_at", "2015-03-20 07:16:40.074909"], ["updated_at", "2015-03-20 07:16:40.074909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.078205"], ["updated_at", "2015-03-20 07:16:40.078205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0dab05de-ced1-11e4-9b7c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0dab86b2-ced1-11e4-83fb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0dab05de-ced1-11e4-9b7c-705681abff85"], ["organization_id", "0dab86b2-ced1-11e4-83fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.081638"], ["updated_at", "2015-03-20 07:16:40.081638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dab05de-ced1-11e4-9b7c-705681abff85' LIMIT 1 [["organization_id", "0dab86b2-ced1-11e4-83fb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$M/cyeDfsuAf/HILWqo3Q6OSA0zs.A/QGVJ9SLnBBQZ20R37xeTF.a"], ["created_at", "2015-03-20 07:16:40.089978"], ["updated_at", "2015-03-20 07:16:40.089978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.093254"], ["updated_at", "2015-03-20 07:16:40.093254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0dad5294-ced1-11e4-9cc8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0dadcfd0-ced1-11e4-9af1-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0dad5294-ced1-11e4-9cc8-705681abff85"], ["organization_id", "0dadcfd0-ced1-11e4-9af1-705681abff85"], ["created_at", "2015-03-20 07:16:40.096579"], ["updated_at", "2015-03-20 07:16:40.096579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '0dadcfd0-ced1-11e4-9af1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "0dadcfd0-ced1-11e4-9af1-705681abff85"], ["created_at", "2015-03-20 07:16:40.101055"], ["updated_at", "2015-03-20 07:16:40.101055"], ["token", "EGuoy3VAt3AxcWbCkXxPBTnGKNIdOxgE57rxJus0iDc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dad5294-ced1-11e4-9cc8-705681abff85' LIMIT 1 [["organization_id", "0dadcfd0-ced1-11e4-9af1-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$3U4GZzo/Oslbz8qye9yWcOxpyjSEt5s1bb7c32ftZ8i8ubjzUTt1i"], ["created_at", "2015-03-20 07:16:40.108466"], ["updated_at", "2015-03-20 07:16:40.108466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.111819"], ["updated_at", "2015-03-20 07:16:40.111819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0db023ac-ced1-11e4-ba37-705681abff85' AND "clubhouse_memberships"."organization_id" = '0db0a5ac-ced1-11e4-a2b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0db023ac-ced1-11e4-ba37-705681abff85"], ["organization_id", "0db0a5ac-ced1-11e4-a2b0-705681abff85"], ["created_at", "2015-03-20 07:16:40.116406"], ["updated_at", "2015-03-20 07:16:40.116406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '0db0a5ac-ced1-11e4-a2b0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "0db0a5ac-ced1-11e4-a2b0-705681abff85"], ["created_at", "2015-03-20 07:16:40.120323"], ["updated_at", "2015-03-20 07:16:40.120323"], ["token", "nTupaMwMcnLtCTGRocOHET5UGSReShHNsdDWOlsjios"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0db023ac-ced1-11e4-ba37-705681abff85' LIMIT 1 [["organization_id", "0db0a5ac-ced1-11e4-a2b0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$ZUFwEagZX5KK2Z64xN21N.INzafB7fHGQhHT0Bq6azHksHXKJYr02"], ["created_at", "2015-03-20 07:16:40.127728"], ["updated_at", "2015-03-20 07:16:40.127728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.130816"], ["updated_at", "2015-03-20 07:16:40.130816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0db31422-ced1-11e4-9a90-705681abff85' AND "clubhouse_memberships"."organization_id" = '0db38a7e-ced1-11e4-b2ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0db31422-ced1-11e4-9a90-705681abff85"], ["organization_id", "0db38a7e-ced1-11e4-b2ea-705681abff85"], ["created_at", "2015-03-20 07:16:40.134338"], ["updated_at", "2015-03-20 07:16:40.134338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '0db38a7e-ced1-11e4-b2ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "0db38a7e-ced1-11e4-b2ea-705681abff85"], ["created_at", "2015-03-20 07:16:40.138131"], ["updated_at", "2015-03-20 07:16:40.138131"], ["token", "1agpo2flclaOj_cOjNS4_w1YYpeHfUaVqhYvNp-jtC0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0db31422-ced1-11e4-9a90-705681abff85' LIMIT 1 [["organization_id", "0db38a7e-ced1-11e4-b2ea-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$rHgVAyGiP1qajCCFWVdApeIBwv6nv52L.2Qq9w9XHPC233COy6r/C"], ["created_at", "2015-03-20 07:16:40.146462"], ["updated_at", "2015-03-20 07:16:40.146462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.150335"], ["updated_at", "2015-03-20 07:16:40.150335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0db5f5a2-ced1-11e4-a271-705681abff85' AND "clubhouse_memberships"."organization_id" = '0db68882-ced1-11e4-9a65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0db5f5a2-ced1-11e4-a271-705681abff85"], ["organization_id", "0db68882-ced1-11e4-9a65-705681abff85"], ["created_at", "2015-03-20 07:16:40.153908"], ["updated_at", "2015-03-20 07:16:40.153908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '0db68882-ced1-11e4-9a65-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "0db68882-ced1-11e4-9a65-705681abff85"], ["created_at", "2015-03-20 07:16:40.157788"], ["updated_at", "2015-03-20 07:16:40.157788"], ["token", "SzneGTxJhUO_UUucvlMDbSXDwQPZactyISPaEsPVH2g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0db5f5a2-ced1-11e4-a271-705681abff85' LIMIT 1 [["organization_id", "0db68882-ced1-11e4-9a65-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$KfmLmtYVTAKTMz.rERd9f.bcWos4djfk4.0gZ.9Ryi.HdlVBA2U52"], ["created_at", "2015-03-20 07:16:40.166264"], ["updated_at", "2015-03-20 07:16:40.166264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.170502"], ["updated_at", "2015-03-20 07:16:40.170502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0db8fc70-ced1-11e4-9bf6-705681abff85' AND "clubhouse_memberships"."organization_id" = '0db99bda-ced1-11e4-a36d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0db8fc70-ced1-11e4-9bf6-705681abff85"], ["organization_id", "0db99bda-ced1-11e4-a36d-705681abff85"], ["created_at", "2015-03-20 07:16:40.174007"], ["updated_at", "2015-03-20 07:16:40.174007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0db8fc70-ced1-11e4-9bf6-705681abff85' LIMIT 1 [["organization_id", "0db99bda-ced1-11e4-a36d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$VdEZhC1OS74TTKs9wpWI9u63kQVuuPiJDq5H98TpUsZgvzn.HQlZa"], ["created_at", "2015-03-20 07:16:40.181487"], ["updated_at", "2015-03-20 07:16:40.181487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.184919"], ["updated_at", "2015-03-20 07:16:40.184919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '0dbbcc2a-ced1-11e4-909d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "0dbbcc2a-ced1-11e4-909d-705681abff85"], ["created_at", "2015-03-20 07:16:40.199607"], ["updated_at", "2015-03-20 07:16:40.199607"], ["token", "7Bo4ej2kLKtQ5EeeA2rItIcIMpWZ57j46frwSZLpmFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dbb4e8a-ced1-11e4-b94e-705681abff85' LIMIT 1 [["organization_id", "0dbbcc2a-ced1-11e4-909d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$MLYMtLRsX0O9y2A6zgvOHecci.ai3dDJD2wimVUeSi1KVER7r46nK"], ["created_at", "2015-03-20 07:16:40.210581"], ["updated_at", "2015-03-20 07:16:40.210581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.216569"], ["updated_at", "2015-03-20 07:16:40.216569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '0dc0b852-ced1-11e4-a054-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "0dc0b852-ced1-11e4-a054-705681abff85"], ["created_at", "2015-03-20 07:16:40.222513"], ["updated_at", "2015-03-20 07:16:40.222513"], ["token", "0-PB5K3zQV2IsD0adyYeYXWW6PhDhSujqUF95yuzVLE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dbfc51e-ced1-11e4-8e45-705681abff85' LIMIT 1 [["organization_id", "0dc0b852-ced1-11e4-a054-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$M8ltEQyCsWO1qrcHkGIqY.5a0GsMMmojEfTOy6cShW3iD63Zsg.tq"], ["created_at", "2015-03-20 07:16:40.233083"], ["updated_at", "2015-03-20 07:16:40.233083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.236793"], ["updated_at", "2015-03-20 07:16:40.236793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '0dc3c1f0-ced1-11e4-a841-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "0dc3c1f0-ced1-11e4-a841-705681abff85"], ["created_at", "2015-03-20 07:16:40.240751"], ["updated_at", "2015-03-20 07:16:40.240751"], ["token", "22pf8YWWInoidI8I65Orf5nQ-RBVjwDm4V-ihvsh4B4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dc32a06-ced1-11e4-8836-705681abff85' LIMIT 1 [["organization_id", "0dc3c1f0-ced1-11e4-a841-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$lVlGiX0Lyb8loGLlgyKb4u2rbPxQ9WreP58bjrIYSArV4YAUDKMSC"], ["created_at", "2015-03-20 07:16:40.257089"], ["updated_at", "2015-03-20 07:16:40.257089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.260533"], ["updated_at", "2015-03-20 07:16:40.260533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '0dc7575c-ced1-11e4-9f06-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "0dc7575c-ced1-11e4-9f06-705681abff85"], ["created_at", "2015-03-20 07:16:40.264684"], ["updated_at", "2015-03-20 07:16:40.264684"], ["token", "O5tXcT3m1uIj_LJGYvYu9vauxGHckK8oU2O_ZDMCCag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dc6d534-ced1-11e4-a830-705681abff85' LIMIT 1 [["organization_id", "0dc7575c-ced1-11e4-9f06-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$TCahkLa8/9RwU7aHlFuU7Oo0B39hwQcJQXBG2qbIdxnANDoexT54O"], ["created_at", "2015-03-20 07:16:40.273356"], ["updated_at", "2015-03-20 07:16:40.273356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.276822"], ["updated_at", "2015-03-20 07:16:40.276822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dc94de6-ced1-11e4-ba20-705681abff85' LIMIT 1 [["organization_id", "0dc9d28e-ced1-11e4-bfa6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$.q63NZu0G5sTL0RuWFQxq.XQ6ArE6bX6FqNcnSVw/cZaVwoxa8hma"], ["created_at", "2015-03-20 07:16:40.284268"], ["updated_at", "2015-03-20 07:16:40.284268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.287365"], ["updated_at", "2015-03-20 07:16:40.287365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0dcaf718-ced1-11e4-851e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0dcb6d06-ced1-11e4-9223-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0dcaf718-ced1-11e4-851e-705681abff85"], ["organization_id", "0dcb6d06-ced1-11e4-9223-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.290606"], ["updated_at", "2015-03-20 07:16:40.290606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$B/zbiYc80haKrzOYL0LMgeylnmY1H7txQ2Z0D6PW.nJp4znzUZw1S"], ["created_at", "2015-03-20 07:16:40.296559"], ["updated_at", "2015-03-20 07:16:40.296559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.300291"], ["updated_at", "2015-03-20 07:16:40.300291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0dccd7fe-ced1-11e4-9c53-705681abff85' AND "clubhouse_memberships"."organization_id" = '0dcd6a98-ced1-11e4-97ea-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0dccd7fe-ced1-11e4-9c53-705681abff85"], ["organization_id", "0dcd6a98-ced1-11e4-97ea-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.303789"], ["updated_at", "2015-03-20 07:16:40.303789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$rYz7/zNmmeFGRQ1VcoQLfuEB/GZym8CmQx/b/7tL3KmhAL5eXvGia"], ["created_at", "2015-03-20 07:16:40.309603"], ["updated_at", "2015-03-20 07:16:40.309603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.313131"], ["updated_at", "2015-03-20 07:16:40.313131"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0dced356-ced1-11e4-88d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0dcf62f8-ced1-11e4-abe8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0dced356-ced1-11e4-88d1-705681abff85"], ["organization_id", "0dcf62f8-ced1-11e4-abe8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.317574"], ["updated_at", "2015-03-20 07:16:40.317574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dced356-ced1-11e4-88d1-705681abff85' LIMIT 1 [["organization_id", "0dcf62f8-ced1-11e4-abe8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$8cBoNgj9b/x62yKnBmT.OOkSiv3IODBk2skudu7jhgHD88rAd1YY6"], ["created_at", "2015-03-20 07:16:40.325035"], ["updated_at", "2015-03-20 07:16:40.325035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.328191"], ["updated_at", "2015-03-20 07:16:40.328191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0dd12f84-ced1-11e4-8df8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0dd1aa7c-ced1-11e4-b118-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0dd12f84-ced1-11e4-8df8-705681abff85"], ["organization_id", "0dd1aa7c-ced1-11e4-b118-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.331617"], ["updated_at", "2015-03-20 07:16:40.331617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dd12f84-ced1-11e4-8df8-705681abff85' LIMIT 1 [["organization_id", "0dd1aa7c-ced1-11e4-b118-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$v6/ImU8Oz2bmMwy9/BXJ2uptJpdbZ/Qw3WVhjt1GvT0UPwVmOBib."], ["created_at", "2015-03-20 07:16:40.338830"], ["updated_at", "2015-03-20 07:16:40.338830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.342103"], ["updated_at", "2015-03-20 07:16:40.342103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0dd349fe-ced1-11e4-9b75-705681abff85' AND "clubhouse_memberships"."organization_id" = '0dd3c780-ced1-11e4-803c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0dd349fe-ced1-11e4-9b75-705681abff85"], ["organization_id", "0dd3c780-ced1-11e4-803c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.345461"], ["updated_at", "2015-03-20 07:16:40.345461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0dd349fe-ced1-11e4-9b75-705681abff85' LIMIT 1 [["organization_id", "0dd3c780-ced1-11e4-803c-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$2vEgmUimft2vKe68pNPjkucq/jBpiqr9kr4UTHVaDeHsD024pJoDm"], ["created_at", "2015-03-20 07:16:40.353448"], ["updated_at", "2015-03-20 07:16:40.353448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$4XUgms/KR9Yvr4a7ftDH.Oh/mZwjeihg85Em0rNEx/5qlU1I7EYOe"], ["created_at", "2015-03-20 07:16:40.365724"], ["updated_at", "2015-03-20 07:16:40.365724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.369458"], ["updated_at", "2015-03-20 07:16:40.369458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$Vs76JpUBKWng1UCDBDSZROgvRzNB24SZrpsYPXdMF3csjZW9bPySm"], ["created_at", "2015-03-20 07:16:40.375272"], ["updated_at", "2015-03-20 07:16:40.375272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.378802"], ["updated_at", "2015-03-20 07:16:40.378802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$/J5duJs1po8DkZZGAxagKeK01fGkLAWXBRnOiHXxpdu8J14oOSO8K"], ["created_at", "2015-03-20 07:16:40.384727"], ["updated_at", "2015-03-20 07:16:40.384727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.387904"], ["updated_at", "2015-03-20 07:16:40.387904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dda4a4c-ced1-11e4-8287-705681abff85' LIMIT 1 [["organization_id", "0ddac8f0-ced1-11e4-b047-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$KV.Juq2nS3t.NCpykvofR.o.cJX2QGy3U72Am.w.sUIKYBbzdlpqW"], ["created_at", "2015-03-20 07:16:40.394875"], ["updated_at", "2015-03-20 07:16:40.394875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.397965"], ["updated_at", "2015-03-20 07:16:40.397965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0ddbd7a4-ced1-11e4-869b-705681abff85' LIMIT 1 [["organization_id", "0ddc51ca-ced1-11e4-a7db-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$1WQZoAGlLTRjeJCivns5D.RbomuMdGBgx7yqeTWdry7VR1M5jaGaa"], ["created_at", "2015-03-20 07:16:40.405884"], ["updated_at", "2015-03-20 07:16:40.405884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.409080"], ["updated_at", "2015-03-20 07:16:40.409080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0ddd86b2-ced1-11e4-b506-705681abff85' LIMIT 1 [["organization_id", "0dddffc0-ced1-11e4-bc40-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$pEPjRXW5jvwqkC9AvImJBefCZUc9cG0tFHqqFs/PYUwAWK0kckcOy"], ["created_at", "2015-03-20 07:16:40.417692"], ["updated_at", "2015-03-20 07:16:40.417692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.421118"], ["updated_at", "2015-03-20 07:16:40.421118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ddf5578-ced1-11e4-bee6-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ddfd674-ced1-11e4-8842-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0ddf5578-ced1-11e4-bee6-705681abff85"], ["organization_id", "0ddfd674-ced1-11e4-8842-705681abff85"], ["created_at", "2015-03-20 07:16:40.424535"], ["updated_at", "2015-03-20 07:16:40.424535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$ZJvjtVl2IADSEezEHVuXWO5gx07Nt0P.t8ETmOvSa4aXQVnsgfXRq"], ["created_at", "2015-03-20 07:16:40.430635"], ["updated_at", "2015-03-20 07:16:40.430635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.433921"], ["updated_at", "2015-03-20 07:16:40.433921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0de14cc0-ced1-11e4-8be8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0de1cd6c-ced1-11e4-bcb9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0de14cc0-ced1-11e4-8be8-705681abff85"], ["organization_id", "0de1cd6c-ced1-11e4-bcb9-705681abff85"], ["created_at", "2015-03-20 07:16:40.437283"], ["updated_at", "2015-03-20 07:16:40.437283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$JafIR5yR5aEIw2U1cxBnO./QxbDdzEjtsHqqiDmJOB/ORHblMNkYW"], ["created_at", "2015-03-20 07:16:40.443226"], ["updated_at", "2015-03-20 07:16:40.443226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.446566"], ["updated_at", "2015-03-20 07:16:40.446566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0de337ba-ced1-11e4-a9f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '0de3bc08-ced1-11e4-be4e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0de337ba-ced1-11e4-a9f6-705681abff85"], ["organization_id", "0de3bc08-ced1-11e4-be4e-705681abff85"], ["created_at", "2015-03-20 07:16:40.450368"], ["updated_at", "2015-03-20 07:16:40.450368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0de337ba-ced1-11e4-a9f6-705681abff85' LIMIT 1 [["organization_id", "0de3bc08-ced1-11e4-be4e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$kD96aCKlkc.d1Q46xB0u0uAllOQMqqviVb/Bohf26Mkfr6GWztvpe"], ["created_at", "2015-03-20 07:16:40.457662"], ["updated_at", "2015-03-20 07:16:40.457662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.462404"], ["updated_at", "2015-03-20 07:16:40.462404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0de57cd2-ced1-11e4-8ae2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0de63564-ced1-11e4-b8ff-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0de57cd2-ced1-11e4-8ae2-705681abff85"], ["organization_id", "0de63564-ced1-11e4-b8ff-705681abff85"], ["created_at", "2015-03-20 07:16:40.468254"], ["updated_at", "2015-03-20 07:16:40.468254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0de57cd2-ced1-11e4-8ae2-705681abff85' LIMIT 1 [["organization_id", "0de63564-ced1-11e4-b8ff-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$w0EMCdrUyYxsO4TFof9Pb.5f7.Wy9PLbOVXN44QG4SHiPkY3RVdfi"], ["created_at", "2015-03-20 07:16:40.476980"], ["updated_at", "2015-03-20 07:16:40.476980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.481320"], ["updated_at", "2015-03-20 07:16:40.481320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0de870b8-ced1-11e4-b89e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0de90b90-ced1-11e4-ae55-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0de870b8-ced1-11e4-b89e-705681abff85"], ["organization_id", "0de90b90-ced1-11e4-ae55-705681abff85"], ["created_at", "2015-03-20 07:16:40.485151"], ["updated_at", "2015-03-20 07:16:40.485151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0de870b8-ced1-11e4-b89e-705681abff85' LIMIT 1 [["organization_id", "0de90b90-ced1-11e4-ae55-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.703231"], ["updated_at", "2015-03-20 07:16:40.703231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0e0ae544-ced1-11e4-b7f9-705681abff85') LIMIT 1 SQL (6.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0e0ae544-ced1-11e4-b7f9-705681abff85"], ["created_at", "2015-03-20 07:16:40.707071"], ["updated_at", "2015-03-20 07:16:40.707071"], ["token", "GBer4f8C2r_K6pbcmyZc1Nr7Qc4ENAWsooSTSW58OCY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.7ms) Clubhouse::Mailer#invitation: processed outbound mail in 28.2ms Sent mail to john@example.com (9.3ms) Date: Fri, 20 Mar 2015 00:16:40 -0700 From: from@example.com To: john@example.com Message-ID: <550bc958b7e23_11963fda0d465bf043cc@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/GBer4f8C2r_K6pbcmyZc1Nr7Qc4ENAWsooSTSW58OCY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.762238"], ["updated_at", "2015-03-20 07:16:40.762238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0e13e7de-ced1-11e4-9204-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0e13e7de-ced1-11e4-9204-705681abff85"], ["created_at", "2015-03-20 07:16:40.766836"], ["updated_at", "2015-03-20 07:16:40.766836"], ["token", "94LFFvUvovJBkN9tRa1TavWv8jgSbtmlex5Jw4EC1Ms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms Sent mail to john@example.com (2.7ms) Date: Fri, 20 Mar 2015 00:16:40 -0700 From: from@example.com To: john@example.com Message-ID: <550bc958bd29a_11963fda0d465bf04489@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/94LFFvUvovJBkN9tRa1TavWv8jgSbtmlex5Jw4EC1Ms?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.781460"], ["updated_at", "2015-03-20 07:16:40.781460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0e16ed94-ced1-11e4-a72d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0e16ed94-ced1-11e4-a72d-705681abff85"], ["created_at", "2015-03-20 07:16:40.786221"], ["updated_at", "2015-03-20 07:16:40.786221"], ["token", "qwG0syIa-bD4vhbP3rN31-2ZzeFbXx3qspmo_POaWF4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.8ms) Date: Fri, 20 Mar 2015 00:16:40 -0700 From: from@example.com To: john@example.com Message-ID: <550bc958c0cbf_11963fda0d465bf045be@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/qwG0syIa-bD4vhbP3rN31-2ZzeFbXx3qspmo_POaWF4?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.796427"], ["updated_at", "2015-03-20 07:16:40.796427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '0e191c5e-ced1-11e4-b713-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "0e191c5e-ced1-11e4-b713-705681abff85"], ["created_at", "2015-03-20 07:16:40.800050"], ["updated_at", "2015-03-20 07:16:40.800050"], ["token", "Y3LzBdL3MYkExJ8f4xm3sHyrOhbYsMsDAVw1bUosk9s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.6ms) Date: Fri, 20 Mar 2015 00:16:40 -0700 From: from@example.com To: john@example.com Message-ID: <550bc958c4535_11963fda0d465bf046db@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/Y3LzBdL3MYkExJ8f4xm3sHyrOhbYsMsDAVw1bUosk9s?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$IUHHe0badzwEJpUeenYIM.QHF2x/LWnUlqrWOZIO8JSby7EaRCQm2"], ["created_at", "2015-03-20 07:16:40.810270"], ["updated_at", "2015-03-20 07:16:40.810270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:40.818296"], ["user_id", "0e1b3dc2-ced1-11e4-bc8c-705681abff85"], ["created_at", "2015-03-20 07:16:40.819373"], ["updated_at", "2015-03-20 07:16:40.819373"], ["token", "exuF4bFDwXse7csu9DR1II9J-cVNIuHmf6G-PxDTESk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.823766"], ["updated_at", "2015-03-20 07:16:40.823766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e1b3dc2-ced1-11e4-bc8c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e1d4b6c-ced1-11e4-9db5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e1b3dc2-ced1-11e4-bc8c-705681abff85"], ["organization_id", "0e1d4b6c-ced1-11e4-9db5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.827219"], ["updated_at", "2015-03-20 07:16:40.827219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:16:40 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$4xGOHzyE8p4HfpgQxbvnOuVVrDyQJAHa2RV/lBP06H0N0je4MnV0a"], ["created_at", "2015-03-20 07:16:40.860950"], ["updated_at", "2015-03-20 07:16:40.860950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:40.862487"], ["user_id", "0e22f4cc-ced1-11e4-b398-705681abff85"], ["created_at", "2015-03-20 07:16:40.863257"], ["updated_at", "2015-03-20 07:16:40.863257"], ["token", "dRFZSVUwv5Fb2do7UrTfI7IFTGfiMImdKSek9om1PTk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.867140"], ["updated_at", "2015-03-20 07:16:40.867140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e22f4cc-ced1-11e4-b398-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e23e5a8-ced1-11e4-9a41-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e22f4cc-ced1-11e4-b398-705681abff85"], ["organization_id", "0e23e5a8-ced1-11e4-9a41-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.870666"], ["updated_at", "2015-03-20 07:16:40.870666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:16:40 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:40.877378' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dRFZSVUwv5Fb2do7UrTfI7IFTGfiMImdKSek9om1PTk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:40.881678"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:40.882815"], ["id", "0e235700-ced1-11e4-9491-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e22f4cc-ced1-11e4-b398-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$PsXutkYJIx/8HIyAVJ.7FugTGgyarbWNJBNFNWQnuhUFhBjoFgeMa"], ["created_at", "2015-03-20 07:16:40.899911"], ["updated_at", "2015-03-20 07:16:40.899911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:40.902202"], ["user_id", "0e28fca0-ced1-11e4-a78e-705681abff85"], ["created_at", "2015-03-20 07:16:40.903029"], ["updated_at", "2015-03-20 07:16:40.903029"], ["token", "PwgQTn8elJMvX7f0gPKQPPUHWUT6_KZG5PZPa0BW1ek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.906581"], ["updated_at", "2015-03-20 07:16:40.906581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e28fca0-ced1-11e4-a78e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e29e818-ced1-11e4-8c9e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e28fca0-ced1-11e4-a78e-705681abff85"], ["organization_id", "0e29e818-ced1-11e4-8c9e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.909661"], ["updated_at", "2015-03-20 07:16:40.909661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:16:40 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:40.914181' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PwgQTn8elJMvX7f0gPKQPPUHWUT6_KZG5PZPa0BW1ek"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:40.915711"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:40.917553"], ["id", "0e296b9a-ced1-11e4-9586-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e28fca0-ced1-11e4-a78e-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.924095"], ["updated_at", "2015-03-20 07:16:40.924095"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e2c981a-ced1-11e4-a8cc-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e28fca0-ced1-11e4-a78e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e2c981a-ced1-11e4-a8cc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e28fca0-ced1-11e4-a78e-705681abff85"], ["admin", "t"], ["organization_id", "0e2c981a-ced1-11e4-a8cc-705681abff85"], ["created_at", "2015-03-20 07:16:40.928594"], ["updated_at", "2015-03-20 07:16:40.928594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 1.7ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$dcikmeq025JbLqL7dZpAre4yfmZx4G8ko7G/EbshPM/vlB05fRkGS"], ["created_at", "2015-03-20 07:16:40.939797"], ["updated_at", "2015-03-20 07:16:40.939797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:40.941506"], ["user_id", "0e2f0208-ced1-11e4-b340-705681abff85"], ["created_at", "2015-03-20 07:16:40.942268"], ["updated_at", "2015-03-20 07:16:40.942268"], ["token", "efx9M-AfNMsj9Qz38kXWTblxm2nOQzGINqW1LUpm4PQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.945789"], ["updated_at", "2015-03-20 07:16:40.945789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e2f0208-ced1-11e4-b340-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e2fe9d4-ced1-11e4-b240-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e2f0208-ced1-11e4-b340-705681abff85"], ["organization_id", "0e2fe9d4-ced1-11e4-b240-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.949269"], ["updated_at", "2015-03-20 07:16:40.949269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$Y8hyn2oGi9f3NEyn55fh/u5.Mga7Tb0R6yFKEHaK9GATwOoeNJYTq"], ["created_at", "2015-03-20 07:16:40.954624"], ["updated_at", "2015-03-20 07:16:40.954624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.957871"], ["updated_at", "2015-03-20 07:16:40.957871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e313f14-ced1-11e4-b8ea-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e31bc5a-ced1-11e4-bc74-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e313f14-ced1-11e4-b8ea-705681abff85"], ["organization_id", "0e31bc5a-ced1-11e4-bc74-705681abff85"], ["created_at", "2015-03-20 07:16:40.960946"], ["updated_at", "2015-03-20 07:16:40.960946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-20 00:16:40 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:40.965281' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "efx9M-AfNMsj9Qz38kXWTblxm2nOQzGINqW1LUpm4PQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:40.966622"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:40.967542"], ["id", "0e2f6216-ced1-11e4-a41d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e2f0208-ced1-11e4-b340-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "0e2f0208-ced1-11e4-b340-705681abff85"]] Completed 200 OK in 10ms (Views: 2.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$iZCqj0CbcbfTobEMFaRgG.5uFs41DcWV4gB.7XT7Zo1ULf1Lmc.Rq"], ["created_at", "2015-03-20 07:16:40.980883"], ["updated_at", "2015-03-20 07:16:40.980883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:40.982641"], ["user_id", "0e354154-ced1-11e4-9cfd-705681abff85"], ["created_at", "2015-03-20 07:16:40.983507"], ["updated_at", "2015-03-20 07:16:40.983507"], ["token", "1SYD4eI2uipr6VpuLgjF2-ggJ2Y4DMC2oFBBRkEFQVA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.987568"], ["updated_at", "2015-03-20 07:16:40.987568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e354154-ced1-11e4-9cfd-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e3645cc-ced1-11e4-840d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e354154-ced1-11e4-9cfd-705681abff85"], ["organization_id", "0e3645cc-ced1-11e4-840d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:40.990762"], ["updated_at", "2015-03-20 07:16:40.990762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$tYqSJNVesWBlM6XRxmVEAeSypjI6s34o4ZFEVEdzoUewP1CAtJQoW"], ["created_at", "2015-03-20 07:16:40.995155"], ["updated_at", "2015-03-20 07:16:40.995155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:40.998215"], ["updated_at", "2015-03-20 07:16:40.998215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e376cea-ced1-11e4-8a59-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e37e4f4-ced1-11e4-8539-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e376cea-ced1-11e4-8a59-705681abff85"], ["organization_id", "0e37e4f4-ced1-11e4-8539-705681abff85"], ["created_at", "2015-03-20 07:16:41.002153"], ["updated_at", "2015-03-20 07:16:41.002153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$IOlJ2bf59Y5c1P11/m4vZeLFL9RzHXzFY7ShyeAycW9wPba0HSR1G"], ["created_at", "2015-03-20 07:16:41.014738"], ["updated_at", "2015-03-20 07:16:41.014738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.016848"], ["user_id", "0e3a78ae-ced1-11e4-b5b7-705681abff85"], ["created_at", "2015-03-20 07:16:41.017709"], ["updated_at", "2015-03-20 07:16:41.017709"], ["token", "PQXb_QagYd1JU7RU19z8zA3ApuLuqow9thl0Lhxb_f0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.021100"], ["updated_at", "2015-03-20 07:16:41.021100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e3a78ae-ced1-11e4-b5b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e3b637c-ced1-11e4-b59f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e3a78ae-ced1-11e4-b5b7-705681abff85"], ["organization_id", "0e3b637c-ced1-11e4-b59f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.024479"], ["updated_at", "2015-03-20 07:16:41.024479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/0e3b637c-ced1-11e4-b59f-705681abff85" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"0e3b637c-ced1-11e4-b59f-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.029723' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PQXb_QagYd1JU7RU19z8zA3ApuLuqow9thl0Lhxb_f0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.031114"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.032095"], ["id", "0e3ae9ce-ced1-11e4-ac3d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0e3b637c-ced1-11e4-b59f-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e3a78ae-ced1-11e4-b5b7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0e3a78ae-ced1-11e4-b5b7-705681abff85' LIMIT 1 [["organization_id", "0e3b637c-ced1-11e4-b59f-705681abff85"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$jIif1ZW2/C8OOr7UOTY7xOYfG25DA36wt0C5bAOKlS6nAYdn2QCja"], ["created_at", "2015-03-20 07:16:41.044221"], ["updated_at", "2015-03-20 07:16:41.044221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.045982"], ["user_id", "0e3ef032-ced1-11e4-bf06-705681abff85"], ["created_at", "2015-03-20 07:16:41.046802"], ["updated_at", "2015-03-20 07:16:41.046802"], ["token", "flZleltNlwTZCdkKH8LydieVQwP-hiGz-7WIn8CDN7E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.050851"], ["updated_at", "2015-03-20 07:16:41.050851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e3ef032-ced1-11e4-bf06-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e400274-ced1-11e4-8989-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e3ef032-ced1-11e4-bf06-705681abff85"], ["organization_id", "0e400274-ced1-11e4-8989-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.055101"], ["updated_at", "2015-03-20 07:16:41.055101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$5v1oUagOGD16dS6H6I2/fuGk5vWrEhs91xXZpYbvPTgj0hmbmTQKW"], ["created_at", "2015-03-20 07:16:41.066582"], ["updated_at", "2015-03-20 07:16:41.066582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.068520"], ["user_id", "0e425e5c-ced1-11e4-89a4-705681abff85"], ["created_at", "2015-03-20 07:16:41.069346"], ["updated_at", "2015-03-20 07:16:41.069346"], ["token", "YIWk_npZvSfla5-HNqKzezyHvHP9vxPwS3MTTgP0tOw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.072621"], ["updated_at", "2015-03-20 07:16:41.072621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e425e5c-ced1-11e4-89a4-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e434966-ced1-11e4-b8fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e425e5c-ced1-11e4-89a4-705681abff85"], ["organization_id", "0e434966-ced1-11e4-b8fe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.076356"], ["updated_at", "2015-03-20 07:16:41.076356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-40" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-40", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.081116' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YIWk_npZvSfla5-HNqKzezyHvHP9vxPwS3MTTgP0tOw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.082521"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.083455"], ["id", "0e42c77a-ced1-11e4-a213-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-40"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e425e5c-ced1-11e4-89a4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0e425e5c-ced1-11e4-89a4-705681abff85' LIMIT 1 [["organization_id", "0e434966-ced1-11e4-b8fe-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "0e434966-ced1-11e4-b8fe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$C8biyQ3fIv.XP5F.bvMt..SXG.IIVwnXUNXD.DHkWLk17n8tlsrDW"], ["created_at", "2015-03-20 07:16:41.094614"], ["updated_at", "2015-03-20 07:16:41.094614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.096415"], ["user_id", "0e469d14-ced1-11e4-b26b-705681abff85"], ["created_at", "2015-03-20 07:16:41.097323"], ["updated_at", "2015-03-20 07:16:41.097323"], ["token", "0UScGVBBnohGCvdtNEE3qKwmjcHyevVJostQmHyTHiw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.101257"], ["updated_at", "2015-03-20 07:16:41.101257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e469d14-ced1-11e4-b26b-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e47b2c6-ced1-11e4-b0bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e469d14-ced1-11e4-b26b-705681abff85"], ["organization_id", "0e47b2c6-ced1-11e4-b0bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.105445"], ["updated_at", "2015-03-20 07:16:41.105445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$yvDLe./dmwvnWd0GJJDTvu9xJd4b2DdgJAb4ZT55GgQ5ugk.wI.UW"], ["created_at", "2015-03-20 07:16:41.115353"], ["updated_at", "2015-03-20 07:16:41.115353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.116890"], ["user_id", "0e49c692-ced1-11e4-aa58-705681abff85"], ["created_at", "2015-03-20 07:16:41.117650"], ["updated_at", "2015-03-20 07:16:41.117650"], ["token", "mX8Oh1OO46eg7jUpB3qqABkw7OK5ZoP5aJyuUBXpi3M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.121143"], ["updated_at", "2015-03-20 07:16:41.121143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e49c692-ced1-11e4-aa58-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e4aa7a6-ced1-11e4-84fe-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e49c692-ced1-11e4-aa58-705681abff85"], ["organization_id", "0e4aa7a6-ced1-11e4-84fe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.124597"], ["updated_at", "2015-03-20 07:16:41.124597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$ap0i1lTSNiG31VnKLIUfGuiELK6.jyXicdAo9Zr5h9IKdHgFvZFAC"], ["created_at", "2015-03-20 07:16:41.135643"], ["updated_at", "2015-03-20 07:16:41.135643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.137318"], ["user_id", "0e4ce228-ced1-11e4-a0c5-705681abff85"], ["created_at", "2015-03-20 07:16:41.138107"], ["updated_at", "2015-03-20 07:16:41.138107"], ["token", "eXj0DDboSm-K5EcoQhBqsYkiuoGPOSGKTny5PLoSbd0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.141401"], ["updated_at", "2015-03-20 07:16:41.141401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e4ce228-ced1-11e4-a0c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e4dbcde-ced1-11e4-8020-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e4ce228-ced1-11e4-a0c5-705681abff85"], ["organization_id", "0e4dbcde-ced1-11e4-8020-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.144726"], ["updated_at", "2015-03-20 07:16:41.144726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.150636' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "eXj0DDboSm-K5EcoQhBqsYkiuoGPOSGKTny5PLoSbd0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.152729"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.153749"], ["id", "0e4d4538-ced1-11e4-a934-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$.YMASp.XPAX.URROSDjgVeaPDyw3wMIpsmZShyHl8quHCvml/lqc2"], ["created_at", "2015-03-20 07:16:41.161381"], ["updated_at", "2015-03-20 07:16:41.161381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.162928"], ["user_id", "0e50cbe0-ced1-11e4-b267-705681abff85"], ["created_at", "2015-03-20 07:16:41.163682"], ["updated_at", "2015-03-20 07:16:41.163682"], ["token", "jR1OUSB1k_Q5twgNEmmVqaj2SF9ZKEFTBrrdIxIPf4w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.167172"], ["updated_at", "2015-03-20 07:16:41.167172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e50cbe0-ced1-11e4-b267-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e51b032-ced1-11e4-8380-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e50cbe0-ced1-11e4-b267-705681abff85"], ["organization_id", "0e51b032-ced1-11e4-8380-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.170592"], ["updated_at", "2015-03-20 07:16:41.170592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-44" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-44", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.175124' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jR1OUSB1k_Q5twgNEmmVqaj2SF9ZKEFTBrrdIxIPf4w"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.176920"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.178804"], ["id", "0e5129e6-ced1-11e4-b699-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-44"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e50cbe0-ced1-11e4-b267-705681abff85"]] Completed 200 OK in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$9WOugDByij51aOUhinXjTeF9sfp07VolYdDF6imHyVwQg6q2crHwq"], ["created_at", "2015-03-20 07:16:41.193805"], ["updated_at", "2015-03-20 07:16:41.193805"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.197000"], ["user_id", "0e55dcde-ced1-11e4-8386-705681abff85"], ["created_at", "2015-03-20 07:16:41.198487"], ["updated_at", "2015-03-20 07:16:41.198487"], ["token", "Cu9VDkOpHbYp7Vry-VLt7mJeArdvnduQzDF3SHBgkv8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.205584"], ["updated_at", "2015-03-20 07:16:41.205584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e55dcde-ced1-11e4-8386-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e57a208-ced1-11e4-b525-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e55dcde-ced1-11e4-8386-705681abff85"], ["organization_id", "0e57a208-ced1-11e4-b525-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.212193"], ["updated_at", "2015-03-20 07:16:41.212193"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$oaKxT.sZK/4v0sUFHVc1IeanTQLE/eEHqB5eM5HvQ8lXDcQNHpSky"], ["created_at", "2015-03-20 07:16:41.229425"], ["updated_at", "2015-03-20 07:16:41.229425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.231473"], ["user_id", "0e5b3c2e-ced1-11e4-a6cd-705681abff85"], ["created_at", "2015-03-20 07:16:41.232255"], ["updated_at", "2015-03-20 07:16:41.232255"], ["token", "3haJsGAK7urwNgWnEggSJxbkuS81wx-PhtBtPuilNDg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.235965"], ["updated_at", "2015-03-20 07:16:41.235965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e5b3c2e-ced1-11e4-a6cd-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e5c2db4-ced1-11e4-8bcf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e5b3c2e-ced1-11e4-a6cd-705681abff85"], ["organization_id", "0e5c2db4-ced1-11e4-8bcf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.239384"], ["updated_at", "2015-03-20 07:16:41.239384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/0e5c2db4-ced1-11e4-8bcf-705681abff85" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"0e5c2db4-ced1-11e4-8bcf-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.244395' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3haJsGAK7urwNgWnEggSJxbkuS81wx-PhtBtPuilNDg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.245772"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.246696"], ["id", "0e5ba394-ced1-11e4-999e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0e5c2db4-ced1-11e4-8bcf-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e5b3c2e-ced1-11e4-a6cd-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0e5b3c2e-ced1-11e4-a6cd-705681abff85' LIMIT 1 [["organization_id", "0e5c2db4-ced1-11e4-8bcf-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '0e5c2db4-ced1-11e4-8bcf-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$QunDslZFNttdeQAzg77ie.HPRYtl0NNveGe4PjJs6JYU902KSFd7S"], ["created_at", "2015-03-20 07:16:41.261167"], ["updated_at", "2015-03-20 07:16:41.261167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.262790"], ["user_id", "0e600696-ced1-11e4-a6ca-705681abff85"], ["created_at", "2015-03-20 07:16:41.263558"], ["updated_at", "2015-03-20 07:16:41.263558"], ["token", "5mbzsZljqaTo_DPuln87s_Xoi5l-XfU_C2giDwRhnKU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.266903"], ["updated_at", "2015-03-20 07:16:41.266903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e600696-ced1-11e4-a6ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e60eb06-ced1-11e4-8cac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e600696-ced1-11e4-a6ca-705681abff85"], ["organization_id", "0e60eb06-ced1-11e4-8cac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.271216"], ["updated_at", "2015-03-20 07:16:41.271216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/0e60eb06-ced1-11e4-8cac-705681abff85" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"0e60eb06-ced1-11e4-8cac-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.275840' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5mbzsZljqaTo_DPuln87s_Xoi5l-XfU_C2giDwRhnKU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.277650"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.278816"], ["id", "0e60682a-ced1-11e4-9a99-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0e60eb06-ced1-11e4-8cac-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e600696-ced1-11e4-a6ca-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0e600696-ced1-11e4-a6ca-705681abff85' LIMIT 1 [["organization_id", "0e60eb06-ced1-11e4-8cac-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '0e60eb06-ced1-11e4-8cac-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 07:16:41.285492"], ["id", "0e60eb06-ced1-11e4-8cac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$2dXxl75KGS9wf7HfkoZfquQViK9A1tOTYKP3ek0GBOYvcBZigpyAO"], ["created_at", "2015-03-20 07:16:41.293060"], ["updated_at", "2015-03-20 07:16:41.293060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.294830"], ["user_id", "0e64e9d6-ced1-11e4-9819-705681abff85"], ["created_at", "2015-03-20 07:16:41.295650"], ["updated_at", "2015-03-20 07:16:41.295650"], ["token", "HvGQAGUJSKfwlFKZEj04SDvkA5T0hAYPH4-ef5WVoLI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.298947"], ["updated_at", "2015-03-20 07:16:41.298947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e64e9d6-ced1-11e4-9819-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e65c7de-ced1-11e4-a727-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e64e9d6-ced1-11e4-9819-705681abff85"], ["organization_id", "0e65c7de-ced1-11e4-a727-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.302155"], ["updated_at", "2015-03-20 07:16:41.302155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$1O.EoGTXt3L29t0CHY6jDeAZlJ2zioLipS2PHNvLC5wiVHzdUtLEu"], ["created_at", "2015-03-20 07:16:41.312436"], ["updated_at", "2015-03-20 07:16:41.312436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.314024"], ["user_id", "0e67d9ac-ced1-11e4-bd42-705681abff85"], ["created_at", "2015-03-20 07:16:41.314808"], ["updated_at", "2015-03-20 07:16:41.314808"], ["token", "CMrofK3v0EI4gOL1UvXbqkopc2n5AvOQnjUSjuyVVNY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.318790"], ["updated_at", "2015-03-20 07:16:41.318790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e67d9ac-ced1-11e4-bd42-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e68d2d0-ced1-11e4-8507-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e67d9ac-ced1-11e4-bd42-705681abff85"], ["organization_id", "0e68d2d0-ced1-11e4-8507-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.322207"], ["updated_at", "2015-03-20 07:16:41.322207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-49" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-49", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.327525' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CMrofK3v0EI4gOL1UvXbqkopc2n5AvOQnjUSjuyVVNY"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.329178"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.331002"], ["id", "0e683aaa-ced1-11e4-80ba-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-49"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e67d9ac-ced1-11e4-bd42-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0e67d9ac-ced1-11e4-bd42-705681abff85' LIMIT 1 [["organization_id", "0e68d2d0-ced1-11e4-8507-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '0e68d2d0-ced1-11e4-8507-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$WutM0GUA88CqdE8DuhVzxe/jNuy/CPXdIqNa8TBz3qWu/p8onNSR2"], ["created_at", "2015-03-20 07:16:41.346248"], ["updated_at", "2015-03-20 07:16:41.346248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.347991"], ["user_id", "0e6d0210-ced1-11e4-88a7-705681abff85"], ["created_at", "2015-03-20 07:16:41.348867"], ["updated_at", "2015-03-20 07:16:41.348867"], ["token", "NbzcWZ8fEcySXWf8QJcTZWzSguWeKw6FETnVf-v6qGc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.352630"], ["updated_at", "2015-03-20 07:16:41.352630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e6d0210-ced1-11e4-88a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e6dfbca-ced1-11e4-8a95-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e6d0210-ced1-11e4-88a7-705681abff85"], ["organization_id", "0e6dfbca-ced1-11e4-8a95-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.355964"], ["updated_at", "2015-03-20 07:16:41.355964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-50" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-50", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.360821' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NbzcWZ8fEcySXWf8QJcTZWzSguWeKw6FETnVf-v6qGc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.362352"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.363442"], ["id", "0e6d6f3e-ced1-11e4-bbd5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-50"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e6d0210-ced1-11e4-88a7-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0e6d0210-ced1-11e4-88a7-705681abff85' LIMIT 1 [["organization_id", "0e6dfbca-ced1-11e4-8a95-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '0e6dfbca-ced1-11e4-8a95-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 07:16:41.369782"], ["id", "0e6dfbca-ced1-11e4-8a95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$Dbr38SkA6gur0IlaePVA..s7jLIGXvHMehSJ2ktlw4lM7LEidOwT2"], ["created_at", "2015-03-20 07:16:41.377731"], ["updated_at", "2015-03-20 07:16:41.377731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.379466"], ["user_id", "0e71d362-ced1-11e4-90db-705681abff85"], ["created_at", "2015-03-20 07:16:41.380267"], ["updated_at", "2015-03-20 07:16:41.380267"], ["token", "WDR1R1AKIKcRjOMqriu1MvQEfvjI54oc8T8x7GCAT6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.383511"], ["updated_at", "2015-03-20 07:16:41.383511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e71d362-ced1-11e4-90db-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e72ae2c-ced1-11e4-8297-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e71d362-ced1-11e4-90db-705681abff85"], ["organization_id", "0e72ae2c-ced1-11e4-8297-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.387677"], ["updated_at", "2015-03-20 07:16:41.387677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-51" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-51", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.392439' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WDR1R1AKIKcRjOMqriu1MvQEfvjI54oc8T8x7GCAT6A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.393897"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.394928"], ["id", "0e72376c-ced1-11e4-85d9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-51"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e71d362-ced1-11e4-90db-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0e71d362-ced1-11e4-90db-705681abff85' LIMIT 1 [["organization_id", "0e72ae2c-ced1-11e4-8297-705681abff85"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$NfZXpL5ZZ1.R09NoIkhTAucYsRdcWOHJ6mp6vGtZIl96Ji1kRWSge"], ["created_at", "2015-03-20 07:16:41.405809"], ["updated_at", "2015-03-20 07:16:41.405809"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.407789"], ["user_id", "0e761828-ced1-11e4-a469-705681abff85"], ["created_at", "2015-03-20 07:16:41.408586"], ["updated_at", "2015-03-20 07:16:41.408586"], ["token", "IoSc72uwST9am1615N32BXS1aktEaLdGE1wewYNahpk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.412052"], ["updated_at", "2015-03-20 07:16:41.412052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e761828-ced1-11e4-a469-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e7709fe-ced1-11e4-bf16-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e761828-ced1-11e4-a469-705681abff85"], ["organization_id", "0e7709fe-ced1-11e4-bf16-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.415327"], ["updated_at", "2015-03-20 07:16:41.415327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$NltFF6ZkK1ygHdGpX.xnEe8ucfD/L5FnoNw2BLNL6IUJ8OU1NOKlO"], ["created_at", "2015-03-20 07:16:41.428015"], ["updated_at", "2015-03-20 07:16:41.428015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.429577"], ["user_id", "0e797c2a-ced1-11e4-b43c-705681abff85"], ["created_at", "2015-03-20 07:16:41.430368"], ["updated_at", "2015-03-20 07:16:41.430368"], ["token", "EwBiVUpbVLWz7kXoWtm9_41jGOQTx5-nxZgE1KKWtaI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.433784"], ["updated_at", "2015-03-20 07:16:41.433784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e797c2a-ced1-11e4-b43c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e7a5f8c-ced1-11e4-9c99-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e797c2a-ced1-11e4-b43c-705681abff85"], ["organization_id", "0e7a5f8c-ced1-11e4-9c99-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.438061"], ["updated_at", "2015-03-20 07:16:41.438061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/0e7a5f8c-ced1-11e4-9c99-705681abff85" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"0e7a5f8c-ced1-11e4-9c99-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.442846' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EwBiVUpbVLWz7kXoWtm9_41jGOQTx5-nxZgE1KKWtaI"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.444223"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.445226"], ["id", "0e79dc7e-ced1-11e4-b862-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0e7a5f8c-ced1-11e4-9c99-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e797c2a-ced1-11e4-b43c-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0e797c2a-ced1-11e4-b43c-705681abff85' LIMIT 1 [["organization_id", "0e7a5f8c-ced1-11e4-9c99-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "0e7a5f8c-ced1-11e4-9c99-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$RWdMIYGUqkk75vwyrItKaO8tTu/x6584yS28vTBd56U/98xWbB/Qm"], ["created_at", "2015-03-20 07:16:41.456667"], ["updated_at", "2015-03-20 07:16:41.456667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.458463"], ["user_id", "0e7de094-ced1-11e4-9a57-705681abff85"], ["created_at", "2015-03-20 07:16:41.459295"], ["updated_at", "2015-03-20 07:16:41.459295"], ["token", "3SWOw9a9YYSahWDR63AlvIioDfdx7hN9ypmbEqlF_dE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.462669"], ["updated_at", "2015-03-20 07:16:41.462669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e7de094-ced1-11e4-9a57-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e7ec270-ced1-11e4-94c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e7de094-ced1-11e4-9a57-705681abff85"], ["organization_id", "0e7ec270-ced1-11e4-94c5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.465802"], ["updated_at", "2015-03-20 07:16:41.465802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$W9Jghs4qm/wiYVwLzWhRTuABeMqw2luXM5O5hChjGtqaTpl3IkaAK"], ["created_at", "2015-03-20 07:16:41.479207"], ["updated_at", "2015-03-20 07:16:41.479207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$5ONoITNJ6Kr2V.giYKFmw.7kIM1UoIOISBBOPBjq9N5pZ5ho5C44W"], ["created_at", "2015-03-20 07:16:41.483951"], ["updated_at", "2015-03-20 07:16:41.483951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.485670"], ["user_id", "0e8152f6-ced1-11e4-b454-705681abff85"], ["created_at", "2015-03-20 07:16:41.486490"], ["updated_at", "2015-03-20 07:16:41.486490"], ["token", "5SjjVKuSbUKCcARmbYP4CjsNzGkhzhj2zU-nr4o5DQE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.490599"], ["updated_at", "2015-03-20 07:16:41.490599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e8152f6-ced1-11e4-b454-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e830f4c-ced1-11e4-a7a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e8152f6-ced1-11e4-b454-705681abff85"], ["organization_id", "0e830f4c-ced1-11e4-a7a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.494142"], ["updated_at", "2015-03-20 07:16:41.494142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e820502-ced1-11e4-b340-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e830f4c-ced1-11e4-a7a5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e820502-ced1-11e4-b340-705681abff85"], ["organization_id", "0e830f4c-ced1-11e4-a7a5-705681abff85"], ["created_at", "2015-03-20 07:16:41.497313"], ["updated_at", "2015-03-20 07:16:41.497313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/0e8390d4-ced1-11e4-a4d6-705681abff85" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"0e8390d4-ced1-11e4-a4d6-705681abff85", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.509702' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5SjjVKuSbUKCcARmbYP4CjsNzGkhzhj2zU-nr4o5DQE"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.511865"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.513696"], ["id", "0e826fd8-ced1-11e4-8f3e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "0e8390d4-ced1-11e4-a4d6-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e8152f6-ced1-11e4-b454-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e830f4c-ced1-11e4-a7a5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0e8152f6-ced1-11e4-b454-705681abff85' LIMIT 1 [["organization_id", "0e830f4c-ced1-11e4-a7a5-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e8152f6-ced1-11e4-b454-705681abff85"]] Completed 200 OK in 16ms (Views: 5.3ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$KKy7GWfYeZPy212XKYUTNecxdMSRnUmfIF5ABqNBH5iEWqO1kK5LC"], ["created_at", "2015-03-20 07:16:41.532223"], ["updated_at", "2015-03-20 07:16:41.532223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$LwP0dlzPVrnCUCLeiJ3KHuyNis4v0nbrC1fPgg0zcUJ7.yjlALpnu"], ["created_at", "2015-03-20 07:16:41.536469"], ["updated_at", "2015-03-20 07:16:41.536469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.538135"], ["user_id", "0e896310-ced1-11e4-af80-705681abff85"], ["created_at", "2015-03-20 07:16:41.538927"], ["updated_at", "2015-03-20 07:16:41.538927"], ["token", "WnWIvqiRgqFVLCZv1zJos18XDjt-K2BJ-fp4PVU0zFE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.542412"], ["updated_at", "2015-03-20 07:16:41.542412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e896310-ced1-11e4-af80-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e8af6da-ced1-11e4-a9a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e896310-ced1-11e4-af80-705681abff85"], ["organization_id", "0e8af6da-ced1-11e4-a9a9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.545997"], ["updated_at", "2015-03-20 07:16:41.545997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e8a07de-ced1-11e4-81b7-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e8af6da-ced1-11e4-a9a9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e8a07de-ced1-11e4-81b7-705681abff85"], ["organization_id", "0e8af6da-ced1-11e4-a9a9-705681abff85"], ["created_at", "2015-03-20 07:16:41.549049"], ["updated_at", "2015-03-20 07:16:41.549049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$Swdd7Rd96zB3B/DxstY68.8EBvoaQ1XnJd3OsJImxBhAyFt/PDkjK"], ["created_at", "2015-03-20 07:16:41.559094"], ["updated_at", "2015-03-20 07:16:41.559094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$QAYGa5Ie3WF6y9ROkwhPx.ua5M947AqDBizSnM9N6ahA07tQGh5HS"], ["created_at", "2015-03-20 07:16:41.564014"], ["updated_at", "2015-03-20 07:16:41.564014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.565755"], ["user_id", "0e8d7be4-ced1-11e4-b0f6-705681abff85"], ["created_at", "2015-03-20 07:16:41.566547"], ["updated_at", "2015-03-20 07:16:41.566547"], ["token", "6l_N9sZFzOtcRC-Zi83SXO_GP7LPb9ZHuf-6Kn502RM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.570179"], ["updated_at", "2015-03-20 07:16:41.570179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e8d7be4-ced1-11e4-b0f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e8f3916-ced1-11e4-83d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e8d7be4-ced1-11e4-b0f6-705681abff85"], ["organization_id", "0e8f3916-ced1-11e4-83d7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.574199"], ["updated_at", "2015-03-20 07:16:41.574199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e8e3f52-ced1-11e4-9d1c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e8f3916-ced1-11e4-83d7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e8e3f52-ced1-11e4-9d1c-705681abff85"], ["organization_id", "0e8f3916-ced1-11e4-83d7-705681abff85"], ["created_at", "2015-03-20 07:16:41.577413"], ["updated_at", "2015-03-20 07:16:41.577413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/0e8f3916-ced1-11e4-83d7-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"0e8f3916-ced1-11e4-83d7-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.581958' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6l_N9sZFzOtcRC-Zi83SXO_GP7LPb9ZHuf-6Kn502RM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.583357"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.584420"], ["id", "0e8ea5aa-ced1-11e4-b4b6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0e8f3916-ced1-11e4-83d7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e8d7be4-ced1-11e4-b0f6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0e8d7be4-ced1-11e4-b0f6-705681abff85' LIMIT 1 [["organization_id", "0e8f3916-ced1-11e4-83d7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "0e8f3916-ced1-11e4-83d7-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e8f3916-ced1-11e4-83d7-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e8d7be4-ced1-11e4-b0f6-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e8f3916-ced1-11e4-83d7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e8e3f52-ced1-11e4-9d1c-705681abff85"]] Completed 200 OK in 13ms (Views: 4.4ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$rlphxQXIqlP0LfzTPEl6neXw6VauZ85aIvQT3nvF9nVNm6YWM5QTm"], ["created_at", "2015-03-20 07:16:41.600656"], ["updated_at", "2015-03-20 07:16:41.600656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$oL0lT.p7/wXVWlwJaXdcEu8/0y.6Xk38WEdOb7uWxAigPvAzUhuDO"], ["created_at", "2015-03-20 07:16:41.605175"], ["updated_at", "2015-03-20 07:16:41.605175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.606817"], ["user_id", "0e93d32c-ced1-11e4-b8af-705681abff85"], ["created_at", "2015-03-20 07:16:41.607711"], ["updated_at", "2015-03-20 07:16:41.607711"], ["token", "YgZ3ysrvNb5Od-2heX2N0tkbmRk9f-sMoTZZSF-LzE0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.612590"], ["updated_at", "2015-03-20 07:16:41.612590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e93d32c-ced1-11e4-b8af-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e95c664-ced1-11e4-b9d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e93d32c-ced1-11e4-b8af-705681abff85"], ["organization_id", "0e95c664-ced1-11e4-b9d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.617425"], ["updated_at", "2015-03-20 07:16:41.617425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e948588-ced1-11e4-986c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e95c664-ced1-11e4-b9d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e948588-ced1-11e4-986c-705681abff85"], ["organization_id", "0e95c664-ced1-11e4-b9d4-705681abff85"], ["created_at", "2015-03-20 07:16:41.620679"], ["updated_at", "2015-03-20 07:16:41.620679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$wzgp77i8qnBiNyhocwHrQeCi8EK.qDiMtzcOE4eyyPRRmNnBwjeqG"], ["created_at", "2015-03-20 07:16:41.630658"], ["updated_at", "2015-03-20 07:16:41.630658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$XJpy6gWmBPCy7FxGRNIMpuOOckhMtJVPSSqcqFI7OiwqDZ0URVBHG"], ["created_at", "2015-03-20 07:16:41.635476"], ["updated_at", "2015-03-20 07:16:41.635476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.637460"], ["user_id", "0e987198-ced1-11e4-90dc-705681abff85"], ["created_at", "2015-03-20 07:16:41.638568"], ["updated_at", "2015-03-20 07:16:41.638568"], ["token", "nrh-t9xXrV84107EWY_VLlqNRJ81Yro2BqhuLifn-GA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.642425"], ["updated_at", "2015-03-20 07:16:41.642425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e987198-ced1-11e4-90dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e9a36ea-ced1-11e4-ab00-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e987198-ced1-11e4-90dc-705681abff85"], ["organization_id", "0e9a36ea-ced1-11e4-ab00-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.645807"], ["updated_at", "2015-03-20 07:16:41.645807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e992c3c-ced1-11e4-a1ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e9a36ea-ced1-11e4-ab00-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e992c3c-ced1-11e4-a1ec-705681abff85"], ["organization_id", "0e9a36ea-ced1-11e4-ab00-705681abff85"], ["created_at", "2015-03-20 07:16:41.648694"], ["updated_at", "2015-03-20 07:16:41.648694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/0e9b2384-ced1-11e4-b9b3-705681abff85" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"0e9b2384-ced1-11e4-b9b3-705681abff85", "membership"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.653014' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nrh-t9xXrV84107EWY_VLlqNRJ81Yro2BqhuLifn-GA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.654477"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.655410"], ["id", "0e99a91e-ced1-11e4-9d0d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "0e9b2384-ced1-11e4-b9b3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e987198-ced1-11e4-90dc-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e9a36ea-ced1-11e4-ab00-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0e987198-ced1-11e4-90dc-705681abff85' LIMIT 1 [["organization_id", "0e9a36ea-ced1-11e4-ab00-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e992c3c-ced1-11e4-a1ec-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "0e9b2384-ced1-11e4-b9b3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$BenO5dpHxUGxesEbEnGxN.1SDf7jBFwpt2hh/nJau0u9aol1jX.iG"], ["created_at", "2015-03-20 07:16:41.666777"], ["updated_at", "2015-03-20 07:16:41.666777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$ohRxfPQBfrZ004ZQlT/liOFd/M1iVO1AVc6rIhMprpHCVLl/nVDv2"], ["created_at", "2015-03-20 07:16:41.671385"], ["updated_at", "2015-03-20 07:16:41.671385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.672956"], ["user_id", "0e9dea9c-ced1-11e4-99e2-705681abff85"], ["created_at", "2015-03-20 07:16:41.673740"], ["updated_at", "2015-03-20 07:16:41.673740"], ["token", "wicMqXcafbtdscOzBBE7LEguQONm-KPFIR778HWoKpE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.677275"], ["updated_at", "2015-03-20 07:16:41.677275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e9dea9c-ced1-11e4-99e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e9f860e-ced1-11e4-b367-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e9dea9c-ced1-11e4-99e2-705681abff85"], ["organization_id", "0e9f860e-ced1-11e4-b367-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.680816"], ["updated_at", "2015-03-20 07:16:41.680816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e9e9dac-ced1-11e4-b741-705681abff85' AND "clubhouse_memberships"."organization_id" = '0e9f860e-ced1-11e4-b367-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e9e9dac-ced1-11e4-b741-705681abff85"], ["organization_id", "0e9f860e-ced1-11e4-b367-705681abff85"], ["created_at", "2015-03-20 07:16:41.683827"], ["updated_at", "2015-03-20 07:16:41.683827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$odMrWYPjpmXXlrMC/7HuuulEYeuqIgH5HjExYoOeSxIluMiRYTq7S"], ["created_at", "2015-03-20 07:16:41.694174"], ["updated_at", "2015-03-20 07:16:41.694174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$D7C6hFfJjRdtsEYTycgIw.QeMVVBqPHDEo31f/nqQeiDIhE/p2IyO"], ["created_at", "2015-03-20 07:16:41.698977"], ["updated_at", "2015-03-20 07:16:41.698977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.700782"], ["user_id", "0ea219a0-ced1-11e4-9ab5-705681abff85"], ["created_at", "2015-03-20 07:16:41.701630"], ["updated_at", "2015-03-20 07:16:41.701630"], ["token", "GZBRMFLYeat7kW4BWqYOqzxY30k08owmDQrL65xS39w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.705972"], ["updated_at", "2015-03-20 07:16:41.705972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ea219a0-ced1-11e4-9ab5-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ea3e91a-ced1-11e4-8b11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ea219a0-ced1-11e4-9ab5-705681abff85"], ["organization_id", "0ea3e91a-ced1-11e4-8b11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.709511"], ["updated_at", "2015-03-20 07:16:41.709511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ea2d552-ced1-11e4-8c6a-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ea3e91a-ced1-11e4-8b11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0ea2d552-ced1-11e4-8c6a-705681abff85"], ["organization_id", "0ea3e91a-ced1-11e4-8b11-705681abff85"], ["created_at", "2015-03-20 07:16:41.712707"], ["updated_at", "2015-03-20 07:16:41.712707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/0ea4ea7c-ced1-11e4-93a9-705681abff85" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"0ea4ea7c-ced1-11e4-93a9-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.717733' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GZBRMFLYeat7kW4BWqYOqzxY30k08owmDQrL65xS39w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.719686"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.720755"], ["id", "0ea3450a-ced1-11e4-af1a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "0ea4ea7c-ced1-11e4-93a9-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ea219a0-ced1-11e4-9ab5-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0ea3e91a-ced1-11e4-8b11-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0ea219a0-ced1-11e4-9ab5-705681abff85' LIMIT 1 [["organization_id", "0ea3e91a-ced1-11e4-8b11-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ea2d552-ced1-11e4-8c6a-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ea2d552-ced1-11e4-8c6a-705681abff85' AND "clubhouse_memberships"."id" != '0ea4ea7c-ced1-11e4-93a9-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ea3e91a-ced1-11e4-8b11-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 07:16:41.727601"], ["id", "0ea4ea7c-ced1-11e4-93a9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$51ydaGrcOkuB3aDXZ/ENU.KY9XiRoyuQxfKUgGK7hZXIt0HMjaxq6"], ["created_at", "2015-03-20 07:16:41.735846"], ["updated_at", "2015-03-20 07:16:41.735846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$MjLtsVMKXfGrza8Htcm6NulobscvHNQQGR5YsvPe0XbIn7/mLmpv6"], ["created_at", "2015-03-20 07:16:41.740426"], ["updated_at", "2015-03-20 07:16:41.740426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.741918"], ["user_id", "0ea877be-ced1-11e4-9b02-705681abff85"], ["created_at", "2015-03-20 07:16:41.742683"], ["updated_at", "2015-03-20 07:16:41.742683"], ["token", "XM2kKbbJ-Q-NM2J0uUILL0XWir3PlcF6C_msoVhSKdw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.746177"], ["updated_at", "2015-03-20 07:16:41.746177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ea877be-ced1-11e4-9b02-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eaa0aac-ced1-11e4-bd6d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ea877be-ced1-11e4-9b02-705681abff85"], ["organization_id", "0eaa0aac-ced1-11e4-bd6d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.749522"], ["updated_at", "2015-03-20 07:16:41.749522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ea92592-ced1-11e4-906d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eaa0aac-ced1-11e4-bd6d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0ea92592-ced1-11e4-906d-705681abff85"], ["organization_id", "0eaa0aac-ced1-11e4-bd6d-705681abff85"], ["created_at", "2015-03-20 07:16:41.752705"], ["updated_at", "2015-03-20 07:16:41.752705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$kT1.TrxpgUsrgsAc5J2kROOzymWNUNsvUD3j.vqSt3.Jf3.H2pfzu"], ["created_at", "2015-03-20 07:16:41.763368"], ["updated_at", "2015-03-20 07:16:41.763368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$Zv7QY56h10vla1kgBwuWbuuFGQ1tXVB7rt5sQN6EM1wdwvRh515Bq"], ["created_at", "2015-03-20 07:16:41.768110"], ["updated_at", "2015-03-20 07:16:41.768110"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.770049"], ["user_id", "0eaca9e2-ced1-11e4-bb72-705681abff85"], ["created_at", "2015-03-20 07:16:41.770975"], ["updated_at", "2015-03-20 07:16:41.770975"], ["token", "Ay4eaHRxJmW9nGP8rHtFGH4aT8QLLrPL-NoVeVbhRvg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.775616"], ["updated_at", "2015-03-20 07:16:41.775616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0eaca9e2-ced1-11e4-bb72-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eae8488-ced1-11e4-8874-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0eaca9e2-ced1-11e4-bb72-705681abff85"], ["organization_id", "0eae8488-ced1-11e4-8874-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.778882"], ["updated_at", "2015-03-20 07:16:41.778882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ead6404-ced1-11e4-9ab5-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eae8488-ced1-11e4-8874-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0ead6404-ced1-11e4-9ab5-705681abff85"], ["organization_id", "0eae8488-ced1-11e4-8874-705681abff85"], ["created_at", "2015-03-20 07:16:41.781978"], ["updated_at", "2015-03-20 07:16:41.781978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.786830' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Ay4eaHRxJmW9nGP8rHtFGH4aT8QLLrPL-NoVeVbhRvg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.788280"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.789298"], ["id", "0eadf59a-ced1-11e4-b1c8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0eaca9e2-ced1-11e4-bb72-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0eaca9e2-ced1-11e4-bb72-705681abff85' LIMIT 1 [["organization_id", "0eae8488-ced1-11e4-8874-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "0eae8488-ced1-11e4-8874-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0eae8488-ced1-11e4-8874-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0eaca9e2-ced1-11e4-bb72-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0eae8488-ced1-11e4-8874-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ead6404-ced1-11e4-9ab5-705681abff85"]] Completed 200 OK in 12ms (Views: 4.2ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$bcd1oBhzjT4bzI9IR08tXOT8Uyh3dwUqpa1nWV9KGkggEX6MdYyd6"], ["created_at", "2015-03-20 07:16:41.804809"], ["updated_at", "2015-03-20 07:16:41.804809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$273yVuCwrUsNZ4/czxNi2.4aNOSvLR6iFaipG7fgASR3sWrj6tuRm"], ["created_at", "2015-03-20 07:16:41.808982"], ["updated_at", "2015-03-20 07:16:41.808982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.810595"], ["user_id", "0eb2fb58-ced1-11e4-94da-705681abff85"], ["created_at", "2015-03-20 07:16:41.811371"], ["updated_at", "2015-03-20 07:16:41.811371"], ["token", "E8RxtyyHFL9vjgAU3kL0OzPSPOo4Up3KyXom-Rwh1SM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.814677"], ["updated_at", "2015-03-20 07:16:41.814677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0eb2fb58-ced1-11e4-94da-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eb4785c-ced1-11e4-b6d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0eb2fb58-ced1-11e4-94da-705681abff85"], ["organization_id", "0eb4785c-ced1-11e4-b6d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.817953"], ["updated_at", "2015-03-20 07:16:41.817953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0eb39a54-ced1-11e4-8ed2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eb4785c-ced1-11e4-b6d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0eb39a54-ced1-11e4-8ed2-705681abff85"], ["organization_id", "0eb4785c-ced1-11e4-b6d3-705681abff85"], ["created_at", "2015-03-20 07:16:41.820991"], ["updated_at", "2015-03-20 07:16:41.820991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$PizQyfcl7CpuKjyJzNfqE.EaG0iem4ldx37pFkBEQ.lldIvXO5YCa"], ["created_at", "2015-03-20 07:16:41.831869"], ["updated_at", "2015-03-20 07:16:41.831869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$po0zMzdTkI/k8L5umY4Wq.W3RmVMmX8fFg8kT80N.Xqq4mfxFsqIi"], ["created_at", "2015-03-20 07:16:41.846035"], ["updated_at", "2015-03-20 07:16:41.846035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.847727"], ["user_id", "0eb71b84-ced1-11e4-aa2c-705681abff85"], ["created_at", "2015-03-20 07:16:41.848488"], ["updated_at", "2015-03-20 07:16:41.848488"], ["token", "QvRzUqtBHFxkq3UmatfBPwwo_ziW3b5f446FDHDuVhE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.852324"], ["updated_at", "2015-03-20 07:16:41.852324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0eb71b84-ced1-11e4-aa2c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eba3eb8-ced1-11e4-8181-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0eb71b84-ced1-11e4-aa2c-705681abff85"], ["organization_id", "0eba3eb8-ced1-11e4-8181-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.856892"], ["updated_at", "2015-03-20 07:16:41.856892"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0eb945bc-ced1-11e4-85e2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eba3eb8-ced1-11e4-8181-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0eb945bc-ced1-11e4-85e2-705681abff85"], ["organization_id", "0eba3eb8-ced1-11e4-8181-705681abff85"], ["created_at", "2015-03-20 07:16:41.861659"], ["updated_at", "2015-03-20 07:16:41.861659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$v3UQlhUMa0udMfhEd47WNuCQqEBVCC/Y.KiYIpLss11fo9jpJIPr6"], ["created_at", "2015-03-20 07:16:41.866220"], ["updated_at", "2015-03-20 07:16:41.866220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.867692"], ["user_id", "0ebc566c-ced1-11e4-9e3a-705681abff85"], ["created_at", "2015-03-20 07:16:41.868522"], ["updated_at", "2015-03-20 07:16:41.868522"], ["token", "cWa0WAb9z25bZ3b5jSr7r2bCT6X8GmKqW1OjZbznzu0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '0eba3eb8-ced1-11e4-8181-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "0eba3eb8-ced1-11e4-8181-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.874138"], ["updated_at", "2015-03-20 07:16:41.874138"], ["token", "B2oKHA_yNQMkzroR6UL17A6BacQRZnkoaBKg-2EwR70"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$sQGaLedra3CZqt.3HIr5OuRgnxzPVSm6E7zSW3BgPEjDTr3A9F4RG"], ["created_at", "2015-03-20 07:16:41.888851"], ["updated_at", "2015-03-20 07:16:41.888851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$UzX6/zmkmb8l/1G0Gst5..wAUT8ECRr3w3DYvhjVSzVQZIYZAuiJe"], ["created_at", "2015-03-20 07:16:41.894827"], ["updated_at", "2015-03-20 07:16:41.894827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.897578"], ["user_id", "0ebfec46-ced1-11e4-ad59-705681abff85"], ["created_at", "2015-03-20 07:16:41.899109"], ["updated_at", "2015-03-20 07:16:41.899109"], ["token", "ifMdXlmC1XNjSMQ997cFoDCYzxRM5nlghUVpY53_q5E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.904091"], ["updated_at", "2015-03-20 07:16:41.904091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ebfec46-ced1-11e4-ad59-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ec22466-ced1-11e4-acf5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ebfec46-ced1-11e4-ad59-705681abff85"], ["organization_id", "0ec22466-ced1-11e4-acf5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.908387"], ["updated_at", "2015-03-20 07:16:41.908387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ec0c7d8-ced1-11e4-84ed-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ec22466-ced1-11e4-acf5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0ec0c7d8-ced1-11e4-84ed-705681abff85"], ["organization_id", "0ec22466-ced1-11e4-acf5-705681abff85"], ["created_at", "2015-03-20 07:16:41.912514"], ["updated_at", "2015-03-20 07:16:41.912514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$3sXOYEpBjiQcKLDv0zCYK.ejD22PhdbKif/8YJXSWYiIBbVb/Rxxm"], ["created_at", "2015-03-20 07:16:41.917797"], ["updated_at", "2015-03-20 07:16:41.917797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.919582"], ["user_id", "0ec43d6e-ced1-11e4-b553-705681abff85"], ["created_at", "2015-03-20 07:16:41.920540"], ["updated_at", "2015-03-20 07:16:41.920540"], ["token", "6Qq9E2I3YNL7OVRQrWIacY7lSPc-4jEG_07bAOFcJTg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '0ec22466-ced1-11e4-acf5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "0ec22466-ced1-11e4-acf5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.925517"], ["updated_at", "2015-03-20 07:16:41.925517"], ["token", "o9-gEEeHw51aCvPqFLnW1LGrGS9lh_Pv6bxDWLDIivc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.932201' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "6Qq9E2I3YNL7OVRQrWIacY7lSPc-4jEG_07bAOFcJTg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.933651"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.934724"], ["id", "0ec4b8f2-ced1-11e4-97a6-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ec43d6e-ced1-11e4-b553-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$RwoTnwYgbQFPlphdNis3XeW9wUzl80gXwdbv7MEYaW0Wgq/Ohc2Ha"], ["created_at", "2015-03-20 07:16:41.951115"], ["updated_at", "2015-03-20 07:16:41.951115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$XfEHLdOSmRJm/hgKYeirPeKQalfhrYp9cSGWEVY9Jcz/q29bL6XRC"], ["created_at", "2015-03-20 07:16:41.956558"], ["updated_at", "2015-03-20 07:16:41.956558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.958122"], ["user_id", "0ec96082-ced1-11e4-aeb8-705681abff85"], ["created_at", "2015-03-20 07:16:41.958938"], ["updated_at", "2015-03-20 07:16:41.958938"], ["token", "OzOPh_962v0yFJwRlyQWBgirZSDlar35JjjBrimrXww"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:41.963177"], ["updated_at", "2015-03-20 07:16:41.963177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ec96082-ced1-11e4-aeb8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ecb25c0-ced1-11e4-ac33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ec96082-ced1-11e4-aeb8-705681abff85"], ["organization_id", "0ecb25c0-ced1-11e4-ac33-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.967287"], ["updated_at", "2015-03-20 07:16:41.967287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0eca21f2-ced1-11e4-a021-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ecb25c0-ced1-11e4-ac33-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0eca21f2-ced1-11e4-a021-705681abff85"], ["organization_id", "0ecb25c0-ced1-11e4-ac33-705681abff85"], ["created_at", "2015-03-20 07:16:41.972145"], ["updated_at", "2015-03-20 07:16:41.972145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$/vYGfTHhU.6DPTbc0OH.y.5YyiegEjBp.G3KFM9i/zvOyYt/PBZ5y"], ["created_at", "2015-03-20 07:16:41.977964"], ["updated_at", "2015-03-20 07:16:41.977964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:41.980203"], ["user_id", "0ecd6dd0-ced1-11e4-a405-705681abff85"], ["created_at", "2015-03-20 07:16:41.981075"], ["updated_at", "2015-03-20 07:16:41.981075"], ["token", "XuqOZQZ8893QmPcIIKDUg6pi9w4LnwdnhQbzjW3RCjM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '0ecb25c0-ced1-11e4-ac33-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "0ecb25c0-ced1-11e4-ac33-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:41.986894"], ["updated_at", "2015-03-20 07:16:41.986894"], ["token", "F_Gl3uMYC2Pb2owBFnTBskgXSzdmxRRZtGVdybWqiRk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:16:41 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"F_Gl3uMYC2Pb2owBFnTBskgXSzdmxRRZtGVdybWqiRk", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:41.994875' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XuqOZQZ8893QmPcIIKDUg6pi9w4LnwdnhQbzjW3RCjM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:41.996556"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:41.997993"], ["id", "0ece15d2-ced1-11e4-b389-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ecd6dd0-ced1-11e4-a405-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "F_Gl3uMYC2Pb2owBFnTBskgXSzdmxRRZtGVdybWqiRk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0ecb25c0-ced1-11e4-ac33-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ecd6dd0-ced1-11e4-a405-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ecb25c0-ced1-11e4-ac33-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "0ecb25c0-ced1-11e4-ac33-705681abff85"], ["member_id", "0ecd6dd0-ced1-11e4-a405-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.006597"], ["updated_at", "2015-03-20 07:16:42.006597"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "0ecee0d4-ced1-11e4-94f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$VGmJskFwgtM/zt8oq/72husjrBzf6dWycZL/JB9in4kSRp6Znd.OW"], ["created_at", "2015-03-20 07:16:42.016457"], ["updated_at", "2015-03-20 07:16:42.016457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$WMvE0pDc8SAUoCZZo5vFu.2cRNolDYKsSnn8H.mAV1QH.XNxcLDyi"], ["created_at", "2015-03-20 07:16:42.020876"], ["updated_at", "2015-03-20 07:16:42.020876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.022442"], ["user_id", "0ed347f0-ced1-11e4-b74c-705681abff85"], ["created_at", "2015-03-20 07:16:42.023244"], ["updated_at", "2015-03-20 07:16:42.023244"], ["token", "Dw9EZKkhfOMMm-XJDWnlqjBZNZXZNYq8RCUO89V5ZPw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.027070"], ["updated_at", "2015-03-20 07:16:42.027070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ed347f0-ced1-11e4-b74c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ed4e47a-ced1-11e4-bc9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ed347f0-ced1-11e4-b74c-705681abff85"], ["organization_id", "0ed4e47a-ced1-11e4-bc9a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.030552"], ["updated_at", "2015-03-20 07:16:42.030552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ed3f326-ced1-11e4-b398-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ed4e47a-ced1-11e4-bc9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0ed3f326-ced1-11e4-b398-705681abff85"], ["organization_id", "0ed4e47a-ced1-11e4-bc9a-705681abff85"], ["created_at", "2015-03-20 07:16:42.033689"], ["updated_at", "2015-03-20 07:16:42.033689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$Y7.D0bSdlUL0jqly2.ui2u2siv3Z3rtmBBwxuJ/ecRXQcrJDGf8Xi"], ["created_at", "2015-03-20 07:16:42.038309"], ["updated_at", "2015-03-20 07:16:42.038309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.039889"], ["user_id", "0ed69c8e-ced1-11e4-9481-705681abff85"], ["created_at", "2015-03-20 07:16:42.040686"], ["updated_at", "2015-03-20 07:16:42.040686"], ["token", "8Ay2UsCDfNYfOIDoUSgpt_NaAHL6wnWv_e3SW8gmQWo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '0ed4e47a-ced1-11e4-bc9a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "0ed4e47a-ced1-11e4-bc9a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.044376"], ["updated_at", "2015-03-20 07:16:42.044376"], ["token", "89gtbwBN2-ZMaTIR4LhQn0cr87jdzFny62YvQBWp_6Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$HJNAHYljWOLdsaLLOMI3EOMB5v.zEX6fY.w4UjBYnJQYWs0DjL2kq"], ["created_at", "2015-03-20 07:16:42.056414"], ["updated_at", "2015-03-20 07:16:42.056414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$Y6nnmXxWJWpFHneoOAdMfudivbb6iNNqLdQx/RH4o9MAf9wKd.BHe"], ["created_at", "2015-03-20 07:16:42.061488"], ["updated_at", "2015-03-20 07:16:42.061488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.063112"], ["user_id", "0ed96fe0-ced1-11e4-b602-705681abff85"], ["created_at", "2015-03-20 07:16:42.063997"], ["updated_at", "2015-03-20 07:16:42.063997"], ["token", "KyhPdsqgDA-nUi0KZbs_WMg6d_0FYWLKrXKLDNhRAgU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.067459"], ["updated_at", "2015-03-20 07:16:42.067459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ed96fe0-ced1-11e4-b602-705681abff85' AND "clubhouse_memberships"."organization_id" = '0edb0ac6-ced1-11e4-af34-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ed96fe0-ced1-11e4-b602-705681abff85"], ["organization_id", "0edb0ac6-ced1-11e4-af34-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.070654"], ["updated_at", "2015-03-20 07:16:42.070654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0eda225a-ced1-11e4-b2c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0edb0ac6-ced1-11e4-af34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0eda225a-ced1-11e4-b2c1-705681abff85"], ["organization_id", "0edb0ac6-ced1-11e4-af34-705681abff85"], ["created_at", "2015-03-20 07:16:42.073917"], ["updated_at", "2015-03-20 07:16:42.073917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$EpQvzPjX6ZvKNCrxR2wfsuPbj0Mwp7Jd9v/b0zY7W.SsizgGRS.U."], ["created_at", "2015-03-20 07:16:42.079751"], ["updated_at", "2015-03-20 07:16:42.079751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.081707"], ["user_id", "0edcfbb0-ced1-11e4-96af-705681abff85"], ["created_at", "2015-03-20 07:16:42.082804"], ["updated_at", "2015-03-20 07:16:42.082804"], ["token", "EwPULv34PrayWjDEYurWoVGe3lfg3d4vHGq6BT5yLkE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '0edb0ac6-ced1-11e4-af34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "0edb0ac6-ced1-11e4-af34-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.086860"], ["updated_at", "2015-03-20 07:16:42.086860"], ["token", "sqsr1IEi0LIAeHZ3X3xafbcf6wzhMa5v_bdL8CyojW0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0edb0ac6-ced1-11e4-af34-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"0edb0ac6-ced1-11e4-af34-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:42.092422' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "EwPULv34PrayWjDEYurWoVGe3lfg3d4vHGq6BT5yLkE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:42.093973"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:42.095084"], ["id", "0edd741e-ced1-11e4-9fd5-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0edb0ac6-ced1-11e4-af34-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0edcfbb0-ced1-11e4-96af-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$W4.efCzydujbl3rVUjpXBeQXTGjwc2bfGV.tx9QSsMFgspmw3qYKO"], ["created_at", "2015-03-20 07:16:42.105450"], ["updated_at", "2015-03-20 07:16:42.105450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$Bw8fHZKe9yPpPbh1ff/Sbuf1zVhADTqUWOhU6WrQUY7u9Ys8p8.ba"], ["created_at", "2015-03-20 07:16:42.110942"], ["updated_at", "2015-03-20 07:16:42.110942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.112538"], ["user_id", "0ee0f634-ced1-11e4-aff3-705681abff85"], ["created_at", "2015-03-20 07:16:42.113313"], ["updated_at", "2015-03-20 07:16:42.113313"], ["token", "7US6UZBDl7GuE83evVWCKXbGYHSgBpTwMvCPvlDSGZY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.116683"], ["updated_at", "2015-03-20 07:16:42.116683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ee0f634-ced1-11e4-aff3-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ee28f76-ced1-11e4-a946-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ee0f634-ced1-11e4-aff3-705681abff85"], ["organization_id", "0ee28f76-ced1-11e4-a946-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.120145"], ["updated_at", "2015-03-20 07:16:42.120145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ee1b182-ced1-11e4-a576-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ee28f76-ced1-11e4-a946-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0ee1b182-ced1-11e4-a576-705681abff85"], ["organization_id", "0ee28f76-ced1-11e4-a946-705681abff85"], ["created_at", "2015-03-20 07:16:42.123599"], ["updated_at", "2015-03-20 07:16:42.123599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$yXW1/kIv3uywBXdi3mJWFuEkwrkG8ECelLVpKRE/UPuiSC9e2YMPe"], ["created_at", "2015-03-20 07:16:42.129585"], ["updated_at", "2015-03-20 07:16:42.129585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.131442"], ["user_id", "0ee48f7e-ced1-11e4-9c43-705681abff85"], ["created_at", "2015-03-20 07:16:42.132266"], ["updated_at", "2015-03-20 07:16:42.132266"], ["token", "1Yd4sZ-UN54PnHyzyQA8RNBKpnQjarHd2s4-rv7IB7Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '0ee28f76-ced1-11e4-a946-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "0ee28f76-ced1-11e4-a946-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.136132"], ["updated_at", "2015-03-20 07:16:42.136132"], ["token", "i8WSqgG0UThSQZfSgLDdYOuNIcp7Of1zT2LcOOKpQ5k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0ee28f76-ced1-11e4-a946-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"i8WSqgG0UThSQZfSgLDdYOuNIcp7Of1zT2LcOOKpQ5k", "organization_id"=>"0ee28f76-ced1-11e4-a946-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:42.141342' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1Yd4sZ-UN54PnHyzyQA8RNBKpnQjarHd2s4-rv7IB7Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:42.142968"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:42.143987"], ["id", "0ee4f946-ced1-11e4-8cd8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0ee28f76-ced1-11e4-a946-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ee48f7e-ced1-11e4-9c43-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "i8WSqgG0UThSQZfSgLDdYOuNIcp7Of1zT2LcOOKpQ5k"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0ee28f76-ced1-11e4-a946-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ee48f7e-ced1-11e4-9c43-705681abff85' AND "clubhouse_memberships"."organization_id" = '0ee28f76-ced1-11e4-a946-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "0ee28f76-ced1-11e4-a946-705681abff85"], ["member_id", "0ee48f7e-ced1-11e4-9c43-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.150974"], ["updated_at", "2015-03-20 07:16:42.150974"]] SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "0ee58cc6-ced1-11e4-85ad-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.6ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$TEZM9XMlUcDewknHc3Ae9OLh5WipV730mqNSPebhNnU2QdaROw4y2"], ["created_at", "2015-03-20 07:16:42.172936"], ["updated_at", "2015-03-20 07:16:42.172936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.176434"], ["updated_at", "2015-03-20 07:16:42.176434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0eeb269a-ced1-11e4-b76e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eebaca0-ced1-11e4-baee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0eeb269a-ced1-11e4-b76e-705681abff85"], ["organization_id", "0eebaca0-ced1-11e4-baee-705681abff85"], ["created_at", "2015-03-20 07:16:42.179190"], ["updated_at", "2015-03-20 07:16:42.179190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0eeb269a-ced1-11e4-b76e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0eebaca0-ced1-11e4-baee-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0eeb269a-ced1-11e4-b76e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eebaca0-ced1-11e4-baee-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0eebaca0-ced1-11e4-baee-705681abff86"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0eeb269a-ced1-11e4-b76e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0eebaca0-ced1-11e4-baee-705681abff86') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.221857"], ["updated_at", "2015-03-20 07:16:42.221857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.227038"], ["updated_at", "2015-03-20 07:16:42.227038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.230975"], ["updated_at", "2015-03-20 07:16:42.230975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.262495"], ["updated_at", "2015-03-20 07:16:42.262495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.267369"], ["updated_at", "2015-03-20 07:16:42.267369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0ef98e10-ced1-11e4-824a-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.284751"], ["updated_at", "2015-03-20 07:16:42.284751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0efc38fe-ced1-11e4-92f0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "0efc38fe-ced1-11e4-92f0-705681abff85"], ["created_at", "2015-03-20 07:16:42.287990"], ["updated_at", "2015-03-20 07:16:42.287990"], ["token", "iIJXP2UrNHAEPPKQMnTvpUxT4Zdln4tnVJI0leaslFk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.293630"], ["updated_at", "2015-03-20 07:16:42.293630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '0efd9294-ced1-11e4-a758-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "0efd9294-ced1-11e4-a758-705681abff85"], ["created_at", "2015-03-20 07:16:42.296907"], ["updated_at", "2015-03-20 07:16:42.296907"], ["token", "5Y0u2eX8LGxa_d3MYyPoWQOna4Hvj99b4AnbwvgESKc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0efd9294-ced1-11e4-a758-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '0efd9294-ced1-11e4-a758-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0efd9294-ced1-11e4-a758-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '0efd9294-ced1-11e4-a758-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$AOZZ8uY4paM1/7B3U8Flv.ZvU6TidrK4XDhgefqtmUNPO9zqScm8q"], ["created_at", "2015-03-20 07:16:42.316299"], ["updated_at", "2015-03-20 07:16:42.316299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.319457"], ["updated_at", "2015-03-20 07:16:42.319457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f0106fe-ced1-11e4-a1b3-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f017fe4-ced1-11e4-b02c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f0106fe-ced1-11e4-a1b3-705681abff85"], ["organization_id", "0f017fe4-ced1-11e4-b02c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.323252"], ["updated_at", "2015-03-20 07:16:42.323252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f0106fe-ced1-11e4-a1b3-705681abff85' LIMIT 1 [["organization_id", "0f017fe4-ced1-11e4-b02c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$t/CfmenTSxK9FZWoJWTCk.jeNNFudarkgIy62QqXYBCFSMdD5T9D2"], ["created_at", "2015-03-20 07:16:42.331081"], ["updated_at", "2015-03-20 07:16:42.331081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.334223"], ["updated_at", "2015-03-20 07:16:42.334223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f03493c-ced1-11e4-b45d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f03c04c-ced1-11e4-8ffd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f03493c-ced1-11e4-b45d-705681abff85"], ["organization_id", "0f03c04c-ced1-11e4-8ffd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.337461"], ["updated_at", "2015-03-20 07:16:42.337461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f03493c-ced1-11e4-b45d-705681abff85' LIMIT 1 [["organization_id", "0f03c04c-ced1-11e4-8ffd-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$/OgTmvf5.ryelGthFVc3iu2uFhEhpTzzYFD7Y6Xy9hmnuhPhizaAK"], ["created_at", "2015-03-20 07:16:42.345007"], ["updated_at", "2015-03-20 07:16:42.345007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.348498"], ["updated_at", "2015-03-20 07:16:42.348498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f056db6-ced1-11e4-87d5-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f05eff2-ced1-11e4-a656-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f056db6-ced1-11e4-87d5-705681abff85"], ["organization_id", "0f05eff2-ced1-11e4-a656-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.352137"], ["updated_at", "2015-03-20 07:16:42.352137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$nBx0HyUMQQE./lPGqG2LX.CVfG.dXNrOBNBOCDBpGVl/phiFN9712"], ["created_at", "2015-03-20 07:16:42.358756"], ["updated_at", "2015-03-20 07:16:42.358756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.362920"], ["updated_at", "2015-03-20 07:16:42.362920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f078d6c-ced1-11e4-9a79-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f0825d8-ced1-11e4-acba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f078d6c-ced1-11e4-9a79-705681abff85"], ["organization_id", "0f0825d8-ced1-11e4-acba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.366535"], ["updated_at", "2015-03-20 07:16:42.366535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f078d6c-ced1-11e4-9a79-705681abff85' LIMIT 1 [["organization_id", "0f0825d8-ced1-11e4-acba-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$9xAv8i7PKOC/IPpnLIh8.O0fomVesznrOYlj4ORYoh1Qds1Qo4UUW"], ["created_at", "2015-03-20 07:16:42.374296"], ["updated_at", "2015-03-20 07:16:42.374296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.377379"], ["updated_at", "2015-03-20 07:16:42.377379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f09dfae-ced1-11e4-85bf-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f0a5592-ced1-11e4-9518-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f09dfae-ced1-11e4-85bf-705681abff85"], ["organization_id", "0f0a5592-ced1-11e4-9518-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.380484"], ["updated_at", "2015-03-20 07:16:42.380484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f09dfae-ced1-11e4-85bf-705681abff85' LIMIT 1 [["organization_id", "0f0a5592-ced1-11e4-9518-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$bZcDDbsMYB2B.ZqznPNb2OqPPtW0pNHYTvSIiNvbTB6crKZ9MVi62"], ["created_at", "2015-03-20 07:16:42.387441"], ["updated_at", "2015-03-20 07:16:42.387441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.390836"], ["updated_at", "2015-03-20 07:16:42.390836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f0be344-ced1-11e4-a337-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f0c6436-ced1-11e4-9ec4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f0be344-ced1-11e4-a337-705681abff85"], ["organization_id", "0f0c6436-ced1-11e4-9ec4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.394714"], ["updated_at", "2015-03-20 07:16:42.394714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$EOzS26XkUqGXJe/G2ujdLeTzeor0wR6L0ppDpenPJoDcDyr.gT/d2"], ["created_at", "2015-03-20 07:16:42.399369"], ["updated_at", "2015-03-20 07:16:42.399369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f0db188-ced1-11e4-bb58-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f0c6436-ced1-11e4-9ec4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f0db188-ced1-11e4-bb58-705681abff85"], ["organization_id", "0f0c6436-ced1-11e4-9ec4-705681abff85"], ["created_at", "2015-03-20 07:16:42.402455"], ["updated_at", "2015-03-20 07:16:42.402455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f0be344-ced1-11e4-a337-705681abff85' LIMIT 1 [["organization_id", "0f0c6436-ced1-11e4-9ec4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$g52GoWPDzxcOLngHwSwaueS.OYMllZoyCDQlSllzk0AytAieA8yyG"], ["created_at", "2015-03-20 07:16:42.410016"], ["updated_at", "2015-03-20 07:16:42.410016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.413450"], ["updated_at", "2015-03-20 07:16:42.413450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f0f58e4-ced1-11e4-b22f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f0fd76a-ced1-11e4-a0dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f0f58e4-ced1-11e4-b22f-705681abff85"], ["organization_id", "0f0fd76a-ced1-11e4-a0dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.416738"], ["updated_at", "2015-03-20 07:16:42.416738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$ilyuHvsqb/SGA2.UYkVe0eH3mA9ijG6EH915Ic5K4nYJKRkpdgfei"], ["created_at", "2015-03-20 07:16:42.421265"], ["updated_at", "2015-03-20 07:16:42.421265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f11093c-ced1-11e4-917f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f0fd76a-ced1-11e4-a0dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f11093c-ced1-11e4-917f-705681abff85"], ["organization_id", "0f0fd76a-ced1-11e4-a0dc-705681abff85"], ["created_at", "2015-03-20 07:16:42.424565"], ["updated_at", "2015-03-20 07:16:42.424565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$0dDMy.2f6S1NgKKj4ajwx.HN9dOHvTQlldUFTrzzq45mCPaerSTHK"], ["created_at", "2015-03-20 07:16:42.430145"], ["updated_at", "2015-03-20 07:16:42.430145"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.433566"], ["updated_at", "2015-03-20 07:16:42.433566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f12635e-ced1-11e4-b94a-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f12e8d8-ced1-11e4-8855-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f12635e-ced1-11e4-b94a-705681abff85"], ["organization_id", "0f12e8d8-ced1-11e4-8855-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.436727"], ["updated_at", "2015-03-20 07:16:42.436727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$p/PCnR/ebjM9RbPqrO6gHOoK3FThZwHteROvvMKPxPoERnNj798oG"], ["created_at", "2015-03-20 07:16:42.441259"], ["updated_at", "2015-03-20 07:16:42.441259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f141640-ced1-11e4-bcce-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f12e8d8-ced1-11e4-8855-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f141640-ced1-11e4-bcce-705681abff85"], ["organization_id", "0f12e8d8-ced1-11e4-8855-705681abff85"], ["created_at", "2015-03-20 07:16:42.445060"], ["updated_at", "2015-03-20 07:16:42.445060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f12635e-ced1-11e4-b94a-705681abff85' LIMIT 1 [["organization_id", "0f12e8d8-ced1-11e4-8855-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$1KOy5Sqd/wXPbAmFHFFMmOJ8rh.dmoEUoH5YVJOnzsXrwB8IaFhHa"], ["created_at", "2015-03-20 07:16:42.452081"], ["updated_at", "2015-03-20 07:16:42.452081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (1.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.455448"], ["updated_at", "2015-03-20 07:16:42.455448"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f15be32-ced1-11e4-aa5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f1674f8-ced1-11e4-a41d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f15be32-ced1-11e4-aa5d-705681abff85"], ["organization_id", "0f1674f8-ced1-11e4-a41d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.461718"], ["updated_at", "2015-03-20 07:16:42.461718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$rVkyJAyifXEi0dObnioYHODvQaDe0GrIKnjR3OPdjqmbsoNk4AGFK"], ["created_at", "2015-03-20 07:16:42.467721"], ["updated_at", "2015-03-20 07:16:42.467721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f1830fe-ced1-11e4-9749-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f1674f8-ced1-11e4-a41d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f1830fe-ced1-11e4-9749-705681abff85"], ["organization_id", "0f1674f8-ced1-11e4-a41d-705681abff85"], ["created_at", "2015-03-20 07:16:42.472000"], ["updated_at", "2015-03-20 07:16:42.472000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f15be32-ced1-11e4-aa5d-705681abff85' LIMIT 1 [["organization_id", "0f1674f8-ced1-11e4-a41d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$1BJ9hX2hAoLrnEg89BVBauM9USnHm4kDHgBwkkK6v/y69Krg9.yJO"], ["created_at", "2015-03-20 07:16:42.479319"], ["updated_at", "2015-03-20 07:16:42.479319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.482390"], ["updated_at", "2015-03-20 07:16:42.482390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f19e69c-ced1-11e4-8f95-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f1a5b40-ced1-11e4-b4a4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f19e69c-ced1-11e4-8f95-705681abff85"], ["organization_id", "0f1a5b40-ced1-11e4-b4a4-705681abff85"], ["created_at", "2015-03-20 07:16:42.485471"], ["updated_at", "2015-03-20 07:16:42.485471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f19e69c-ced1-11e4-8f95-705681abff85' LIMIT 1 [["organization_id", "0f1a5b40-ced1-11e4-b4a4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$KCdreSF8Iyvgp7Y0wgoVQutjS7uWxcmqCnhfFZp3vAThLewvmGo16"], ["created_at", "2015-03-20 07:16:42.492338"], ["updated_at", "2015-03-20 07:16:42.492338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.495899"], ["updated_at", "2015-03-20 07:16:42.495899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f1bea78-ced1-11e4-9508-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f1c6d68-ced1-11e4-9353-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f1bea78-ced1-11e4-9508-705681abff85"], ["organization_id", "0f1c6d68-ced1-11e4-9353-705681abff85"], ["created_at", "2015-03-20 07:16:42.499174"], ["updated_at", "2015-03-20 07:16:42.499174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$PN5bYrzu76f/ufSkc.LNRObvvu/nKlQ5N61fA./pB3rXHUK72X4ta"], ["created_at", "2015-03-20 07:16:42.504872"], ["updated_at", "2015-03-20 07:16:42.504872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.508046"], ["updated_at", "2015-03-20 07:16:42.508046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f1dccee-ced1-11e4-9280-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f1e57cc-ced1-11e4-9bfb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f1dccee-ced1-11e4-9280-705681abff85"], ["organization_id", "0f1e57cc-ced1-11e4-9bfb-705681abff85"], ["created_at", "2015-03-20 07:16:42.512421"], ["updated_at", "2015-03-20 07:16:42.512421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f1dccee-ced1-11e4-9280-705681abff85' LIMIT 1 [["organization_id", "0f1e57cc-ced1-11e4-9bfb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$3MCEBEj1i1gsNt.EsxjNneKoiek58/ZTFMisq5SMAVVDe8Ufg0ZdW"], ["created_at", "2015-03-20 07:16:42.519475"], ["updated_at", "2015-03-20 07:16:42.519475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.522816"], ["updated_at", "2015-03-20 07:16:42.522816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f200644-ced1-11e4-8704-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f208b0a-ced1-11e4-9aef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f200644-ced1-11e4-8704-705681abff85"], ["organization_id", "0f208b0a-ced1-11e4-9aef-705681abff85"], ["created_at", "2015-03-20 07:16:42.526696"], ["updated_at", "2015-03-20 07:16:42.526696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f200644-ced1-11e4-8704-705681abff85' LIMIT 1 [["organization_id", "0f208b0a-ced1-11e4-9aef-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$gofFQK/pVt50kUgmhPT/a.LdVrSmaNAjFy2bqo.8yzIL61VZeY.v6"], ["created_at", "2015-03-20 07:16:42.535462"], ["updated_at", "2015-03-20 07:16:42.535462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.538991"], ["updated_at", "2015-03-20 07:16:42.538991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f228180-ced1-11e4-8ba2-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f22ff84-ced1-11e4-a42e-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f228180-ced1-11e4-8ba2-705681abff85"], ["organization_id", "0f22ff84-ced1-11e4-a42e-705681abff85"], ["created_at", "2015-03-20 07:16:42.542326"], ["updated_at", "2015-03-20 07:16:42.542326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f228180-ced1-11e4-8ba2-705681abff85' LIMIT 1 [["organization_id", "0f22ff84-ced1-11e4-a42e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$5gtutBAYjcZwA.axsKi3eOupX4SeVfq88dc2uzSzBtyQxSpy8LzaG"], ["created_at", "2015-03-20 07:16:42.550727"], ["updated_at", "2015-03-20 07:16:42.550727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$odoODpC5BJ2ULYtAq7XHD.xTD/yDD3F8V3l0KNVx7SwHjjuOH0tr6"], ["created_at", "2015-03-20 07:16:42.554906"], ["updated_at", "2015-03-20 07:16:42.554906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.558036"], ["updated_at", "2015-03-20 07:16:42.558036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f256c4c-ced1-11e4-96e7-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f25e9b0-ced1-11e4-8871-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f256c4c-ced1-11e4-96e7-705681abff85"], ["organization_id", "0f25e9b0-ced1-11e4-8871-705681abff85"], ["created_at", "2015-03-20 07:16:42.562147"], ["updated_at", "2015-03-20 07:16:42.562147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f24cc56-ced1-11e4-bf88-705681abff85' LIMIT 1 [["organization_id", "0f25e9b0-ced1-11e4-8871-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$VADVojUQwRHxZySBxLs1tOQkSkZaBO28D2oiUtUVW6gI68vX9zsJu"], ["created_at", "2015-03-20 07:16:42.569250"], ["updated_at", "2015-03-20 07:16:42.569250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$xik.jDAdZz244teukc0wfOg1RvFG0tWUa0OlKhInrURmtF.6ylok."], ["created_at", "2015-03-20 07:16:42.573721"], ["updated_at", "2015-03-20 07:16:42.573721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.577180"], ["updated_at", "2015-03-20 07:16:42.577180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f285402-ced1-11e4-bfd1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f28d292-ced1-11e4-9df5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f285402-ced1-11e4-bfd1-705681abff85"], ["organization_id", "0f28d292-ced1-11e4-9df5-705681abff85"], ["created_at", "2015-03-20 07:16:42.580245"], ["updated_at", "2015-03-20 07:16:42.580245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$UsqOe2NBmi48oSIVuymtWufszndIrsUJeGmhj8ALdEWQ.EXs/R5r2"], ["created_at", "2015-03-20 07:16:42.585750"], ["updated_at", "2015-03-20 07:16:42.585750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$RMxnAvj8blRKXkTBEsB/yuyDYKVvh9CJgxC6FIlqw2h6/OZ5HRLwK"], ["created_at", "2015-03-20 07:16:42.589958"], ["updated_at", "2015-03-20 07:16:42.589958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.593140"], ["updated_at", "2015-03-20 07:16:42.593140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f2ac82c-ced1-11e4-8b43-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f2b469e-ced1-11e4-94aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f2ac82c-ced1-11e4-8b43-705681abff85"], ["organization_id", "0f2b469e-ced1-11e4-94aa-705681abff85"], ["created_at", "2015-03-20 07:16:42.596827"], ["updated_at", "2015-03-20 07:16:42.596827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f2a2188-ced1-11e4-9a61-705681abff85' LIMIT 1 [["organization_id", "0f2b469e-ced1-11e4-94aa-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$CgYPCKrI0pVuAVQ8.muqQ.cWzc/6qGSgz8QtPuxRajT8Euo0N964u"], ["created_at", "2015-03-20 07:16:42.603455"], ["updated_at", "2015-03-20 07:16:42.603455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$YJSoUj3ZRpPRjCeI99uEAemh6neiOyc6aCVpWpdq2PmzHhR/fp.KW"], ["created_at", "2015-03-20 07:16:42.607819"], ["updated_at", "2015-03-20 07:16:42.607819"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.612109"], ["updated_at", "2015-03-20 07:16:42.612109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f2d8350-ced1-11e4-959e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f2e3f7a-ced1-11e4-9757-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f2d8350-ced1-11e4-959e-705681abff85"], ["organization_id", "0f2e3f7a-ced1-11e4-9757-705681abff85"], ["created_at", "2015-03-20 07:16:42.617107"], ["updated_at", "2015-03-20 07:16:42.617107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f2cd5a4-ced1-11e4-af6f-705681abff85' LIMIT 1 [["organization_id", "0f2e3f7a-ced1-11e4-9757-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$t2bI8mWsKOZhK.AK7GW/4uAD2uLbP9NfLIR5XW2g/uDx2v0oDRSZm"], ["created_at", "2015-03-20 07:16:42.624714"], ["updated_at", "2015-03-20 07:16:42.624714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.627953"], ["updated_at", "2015-03-20 07:16:42.627953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0f301692-ced1-11e4-9533-705681abff85' LIMIT 1 [["organization_id", "0f30920c-ced1-11e4-8e16-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$2Vfo8RUAm9gmqiME20s6..6nsrRZxggsNFZSWGyzMLpWf6VwX19t2"], ["created_at", "2015-03-20 07:16:42.635334"], ["updated_at", "2015-03-20 07:16:42.635334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.636878"], ["user_id", "0f31b448-ced1-11e4-887e-705681abff85"], ["created_at", "2015-03-20 07:16:42.637685"], ["updated_at", "2015-03-20 07:16:42.637685"], ["token", "3Zw6EyQjFuxatMyos20vkGHQoBw-HdLRUoYkUkSsezo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.641116"], ["updated_at", "2015-03-20 07:16:42.641116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f31b448-ced1-11e4-887e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f3293f4-ced1-11e4-96b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f31b448-ced1-11e4-887e-705681abff85"], ["organization_id", "0f3293f4-ced1-11e4-96b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.644527"], ["updated_at", "2015-03-20 07:16:42.644527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '0f3293f4-ced1-11e4-96b6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "0f3293f4-ced1-11e4-96b6-705681abff85"], ["created_at", "2015-03-20 07:16:42.648057"], ["updated_at", "2015-03-20 07:16:42.648057"], ["token", "L8e5eno7VwgNbIhQg-aqVVbb57S_BGkMpIbrZyRqV7I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/0f33a79e-ced1-11e4-aeba-705681abff85" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"0f33a79e-ced1-11e4-aeba-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:42.659315' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3Zw6EyQjFuxatMyos20vkGHQoBw-HdLRUoYkUkSsezo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:42.661521"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:42.662639"], ["id", "0f321596-ced1-11e4-abd3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0f33a79e-ced1-11e4-aeba-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f31b448-ced1-11e4-887e-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f3293f4-ced1-11e4-96b6-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f31b448-ced1-11e4-887e-705681abff85' LIMIT 1 [["organization_id", "0f3293f4-ced1-11e4-96b6-705681abff85"]] Completed 200 OK in 11ms (Views: 2.1ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$PKxFuiA3HOtdl6bLhOaUdONXu05aE6vrem2ES9JzpYuM3KjUjHS.e"], ["created_at", "2015-03-20 07:16:42.676530"], ["updated_at", "2015-03-20 07:16:42.676530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.678150"], ["user_id", "0f37fe16-ced1-11e4-a890-705681abff85"], ["created_at", "2015-03-20 07:16:42.678917"], ["updated_at", "2015-03-20 07:16:42.678917"], ["token", "WfXV9DgXUs1t7NGsiNYdow17D3aZdFdK01-ld-L1z2g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.682233"], ["updated_at", "2015-03-20 07:16:42.682233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f37fe16-ced1-11e4-a890-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f38d98a-ced1-11e4-acac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f37fe16-ced1-11e4-a890-705681abff85"], ["organization_id", "0f38d98a-ced1-11e4-acac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.685403"], ["updated_at", "2015-03-20 07:16:42.685403"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '0f38d98a-ced1-11e4-acac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "0f38d98a-ced1-11e4-acac-705681abff85"], ["created_at", "2015-03-20 07:16:42.688990"], ["updated_at", "2015-03-20 07:16:42.688990"], ["token", "oreHnOjfTnomWL0HrBK8L3pSnz2MoqD3YR5Ab5N9lK8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$b8MCMynkd9dPKegD.xGXy.nVhWSEsU9u9Cx0Njojhfl5KFxNRLyqS"], ["created_at", "2015-03-20 07:16:42.700339"], ["updated_at", "2015-03-20 07:16:42.700339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.701906"], ["user_id", "0f3ba0c0-ced1-11e4-bc6f-705681abff85"], ["created_at", "2015-03-20 07:16:42.702692"], ["updated_at", "2015-03-20 07:16:42.702692"], ["token", "xYDj-Tx84-VivUdP7AY0jQ6DDB-nvm4nUOBaBTj9bYo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.706443"], ["updated_at", "2015-03-20 07:16:42.706443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f3ba0c0-ced1-11e4-bc6f-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f3c9214-ced1-11e4-820c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f3ba0c0-ced1-11e4-bc6f-705681abff85"], ["organization_id", "0f3c9214-ced1-11e4-820c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.710506"], ["updated_at", "2015-03-20 07:16:42.710506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '0f3c9214-ced1-11e4-820c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "0f3c9214-ced1-11e4-820c-705681abff85"], ["created_at", "2015-03-20 07:16:42.714325"], ["updated_at", "2015-03-20 07:16:42.714325"], ["token", "oZe769iLHsU8OBGoZnQ_aSqifqLzn6lOu0fnbqOc9yI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$yuN3pplu.aWmk1ZT5Wi47..dgBHpaWhBuGkptpycCPybXx6r0dfhm"], ["created_at", "2015-03-20 07:16:42.718738"], ["updated_at", "2015-03-20 07:16:42.718738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.721864"], ["updated_at", "2015-03-20 07:16:42.721864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f3e6c38-ced1-11e4-a87c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f3efdb0-ced1-11e4-a354-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f3e6c38-ced1-11e4-a87c-705681abff85"], ["organization_id", "0f3efdb0-ced1-11e4-a354-705681abff85"], ["created_at", "2015-03-20 07:16:42.725567"], ["updated_at", "2015-03-20 07:16:42.725567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/0f3c9214-ced1-11e4-820c-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"0f3c9214-ced1-11e4-820c-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:42.732212' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xYDj-Tx84-VivUdP7AY0jQ6DDB-nvm4nUOBaBTj9bYo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:42.733679"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:42.734678"], ["id", "0f3c015a-ced1-11e4-8758-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0f3c9214-ced1-11e4-820c-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f3ba0c0-ced1-11e4-bc6f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f3ba0c0-ced1-11e4-bc6f-705681abff85' LIMIT 1 [["organization_id", "0f3c9214-ced1-11e4-820c-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "0f3c9214-ced1-11e4-820c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f3c9214-ced1-11e4-820c-705681abff85"]] Completed 200 OK in 11ms (Views: 2.6ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$BNjF9UclKTRyGZ48neiaYuX2Rc3pQ.Re.4BgkfCi5EnvKGUb/gePe"], ["created_at", "2015-03-20 07:16:42.749173"], ["updated_at", "2015-03-20 07:16:42.749173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.750680"], ["user_id", "0f4312d8-ced1-11e4-893c-705681abff85"], ["created_at", "2015-03-20 07:16:42.751443"], ["updated_at", "2015-03-20 07:16:42.751443"], ["token", "i-aKRgGRRLTAB3IBY7mY7z_VuxgqNseUuIwncy3Bw1c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.754837"], ["updated_at", "2015-03-20 07:16:42.754837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f4312d8-ced1-11e4-893c-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f43ed70-ced1-11e4-931a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f4312d8-ced1-11e4-893c-705681abff85"], ["organization_id", "0f43ed70-ced1-11e4-931a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.758391"], ["updated_at", "2015-03-20 07:16:42.758391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '0f43ed70-ced1-11e4-931a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "0f43ed70-ced1-11e4-931a-705681abff85"], ["created_at", "2015-03-20 07:16:42.761711"], ["updated_at", "2015-03-20 07:16:42.761711"], ["token", "pMX_iAFvAb5RVF61wBsdmcZ2Xd-iD2rLiY3grmPsuT4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$isRoX0HrRBmwTJrfssjU/uEJiQrE3W4PLVafaPHHHH8tYxYPCNGhy"], ["created_at", "2015-03-20 07:16:42.765967"], ["updated_at", "2015-03-20 07:16:42.765967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.768992"], ["updated_at", "2015-03-20 07:16:42.768992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f459fda-ced1-11e4-b8d0-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f461730-ced1-11e4-9be4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f459fda-ced1-11e4-b8d0-705681abff85"], ["organization_id", "0f461730-ced1-11e4-9be4-705681abff85"], ["created_at", "2015-03-20 07:16:42.772101"], ["updated_at", "2015-03-20 07:16:42.772101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$7/rxXZLrA0KYL98XFuLd5uIoEF8lQWV9Q4qrg2ZOIYjIwvlRIN8pq"], ["created_at", "2015-03-20 07:16:42.783529"], ["updated_at", "2015-03-20 07:16:42.783529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.785285"], ["user_id", "0f48554a-ced1-11e4-b6d8-705681abff85"], ["created_at", "2015-03-20 07:16:42.786104"], ["updated_at", "2015-03-20 07:16:42.786104"], ["token", "Vl3-mGOK3K5iU-NNtwXfhZpauG92Lve-Ke5qs94ULnY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.789468"], ["updated_at", "2015-03-20 07:16:42.789468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f48554a-ced1-11e4-b6d8-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f49369a-ced1-11e4-b34d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f48554a-ced1-11e4-b6d8-705681abff85"], ["organization_id", "0f49369a-ced1-11e4-b34d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.792907"], ["updated_at", "2015-03-20 07:16:42.792907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '0f49369a-ced1-11e4-b34d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "0f49369a-ced1-11e4-b34d-705681abff85"], ["created_at", "2015-03-20 07:16:42.797372"], ["updated_at", "2015-03-20 07:16:42.797372"], ["token", "d0Iqr3Gr91HoCAqJBp1nD5h9nCPiNj9qGpsOg9geZkQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/0f4a7384-ced1-11e4-94bf-705681abff85" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"0f4a7384-ced1-11e4-94bf-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:42.802870' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Vl3-mGOK3K5iU-NNtwXfhZpauG92Lve-Ke5qs94ULnY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:42.804240"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:42.805176"], ["id", "0f48bd6e-ced1-11e4-888e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0f4a7384-ced1-11e4-94bf-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f48554a-ced1-11e4-b6d8-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f49369a-ced1-11e4-b34d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f48554a-ced1-11e4-b6d8-705681abff85' LIMIT 1 [["organization_id", "0f49369a-ced1-11e4-b34d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "0f4a7384-ced1-11e4-94bf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$kT/j4mv/Aq.FgHPKELovE.huFzwEDZkuYB.OuJCGd.rPO0w..g0Rm"], ["created_at", "2015-03-20 07:16:42.816466"], ["updated_at", "2015-03-20 07:16:42.816466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.818028"], ["user_id", "0f4d58ce-ced1-11e4-be8e-705681abff85"], ["created_at", "2015-03-20 07:16:42.818852"], ["updated_at", "2015-03-20 07:16:42.818852"], ["token", "_hN0Azytl0cQpzwAtOmCb_xDX6WpyWBlYSvvwi2NYv8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.822184"], ["updated_at", "2015-03-20 07:16:42.822184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f4d58ce-ced1-11e4-be8e-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f4e344c-ced1-11e4-bc88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f4d58ce-ced1-11e4-be8e-705681abff85"], ["organization_id", "0f4e344c-ced1-11e4-bc88-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.825513"], ["updated_at", "2015-03-20 07:16:42.825513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '0f4e344c-ced1-11e4-bc88-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "0f4e344c-ced1-11e4-bc88-705681abff85"], ["created_at", "2015-03-20 07:16:42.829055"], ["updated_at", "2015-03-20 07:16:42.829055"], ["token", "BtXRMK4ZAtqaYJxplUZfLR59A_c5x5gJu4GZCQ7fXJY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$MqFmuBTmk2Wteou4TLV.ee5u1eKa.AstwBIOuT.jbS9Jiyrac1mU."], ["created_at", "2015-03-20 07:16:42.839695"], ["updated_at", "2015-03-20 07:16:42.839695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.841325"], ["user_id", "0f50e4f8-ced1-11e4-8e32-705681abff85"], ["created_at", "2015-03-20 07:16:42.842106"], ["updated_at", "2015-03-20 07:16:42.842106"], ["token", "PaXu11_30K4kWCp-kZeDD0U203qzpq4TRU4ZGPHmWYo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.845479"], ["updated_at", "2015-03-20 07:16:42.845479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f50e4f8-ced1-11e4-8e32-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f51c288-ced1-11e4-ad04-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f50e4f8-ced1-11e4-8e32-705681abff85"], ["organization_id", "0f51c288-ced1-11e4-ad04-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.849007"], ["updated_at", "2015-03-20 07:16:42.849007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '0f51c288-ced1-11e4-ad04-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "0f51c288-ced1-11e4-ad04-705681abff85"], ["created_at", "2015-03-20 07:16:42.852709"], ["updated_at", "2015-03-20 07:16:42.852709"], ["token", "jhn0NB2s5IojFcn-bX6w5w8lovLsXbKKXsHDOUWMBgk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/0f52e19a-ced1-11e4-9ceb-705681abff85" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"0f52e19a-ced1-11e4-9ceb-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:42.857970' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "PaXu11_30K4kWCp-kZeDD0U203qzpq4TRU4ZGPHmWYo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:42.859462"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:42.860933"], ["id", "0f5148da-ced1-11e4-9b42-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0f52e19a-ced1-11e4-9ceb-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f50e4f8-ced1-11e4-8e32-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f51c288-ced1-11e4-ad04-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f50e4f8-ced1-11e4-8e32-705681abff85' LIMIT 1 [["organization_id", "0f51c288-ced1-11e4-ad04-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."id" != '0f52e19a-ced1-11e4-9ceb-705681abff85' AND "clubhouse_invitations"."organization_id" = '0f51c288-ced1-11e4-ad04-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 07:16:42.869336"], ["id", "0f52e19a-ced1-11e4-9ceb-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$PdGFFbdZAori8V6t4jUBZOwR56VXPKOf/2Jt4v0Zr7TvpZejlWpUe"], ["created_at", "2015-03-20 07:16:42.877816"], ["updated_at", "2015-03-20 07:16:42.877816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.879428"], ["user_id", "0f56b662-ced1-11e4-a86a-705681abff85"], ["created_at", "2015-03-20 07:16:42.880202"], ["updated_at", "2015-03-20 07:16:42.880202"], ["token", "fsbBQH6uJNMdBusRTxI0k7fGiqkgRN77N9zFHhcVgl4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.883466"], ["updated_at", "2015-03-20 07:16:42.883466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f56b662-ced1-11e4-a86a-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f5790f0-ced1-11e4-afbc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f56b662-ced1-11e4-a86a-705681abff85"], ["organization_id", "0f5790f0-ced1-11e4-afbc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.886927"], ["updated_at", "2015-03-20 07:16:42.886927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '0f5790f0-ced1-11e4-afbc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "0f5790f0-ced1-11e4-afbc-705681abff85"], ["created_at", "2015-03-20 07:16:42.890173"], ["updated_at", "2015-03-20 07:16:42.890173"], ["token", "pho-FwBtQRb-lYLkE3DwkLCEa0yZCvpFgDie95TNzqE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$NW3TU.2JO1nnxqMUPILs2edDp6vUn5cbHAW2uLeTtzEloydYuxmbO"], ["created_at", "2015-03-20 07:16:42.901689"], ["updated_at", "2015-03-20 07:16:42.901689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.903336"], ["user_id", "0f5a5b14-ced1-11e4-a046-705681abff85"], ["created_at", "2015-03-20 07:16:42.904156"], ["updated_at", "2015-03-20 07:16:42.904156"], ["token", "1hrplEcMGhw2O1DyFzi6MxpI63yBp3bPccysEqLZkeU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.907630"], ["updated_at", "2015-03-20 07:16:42.907630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f5a5b14-ced1-11e4-a046-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f5b4434-ced1-11e4-95fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f5a5b14-ced1-11e4-a046-705681abff85"], ["organization_id", "0f5b4434-ced1-11e4-95fb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.911277"], ["updated_at", "2015-03-20 07:16:42.911277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '0f5b4434-ced1-11e4-95fb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "0f5b4434-ced1-11e4-95fb-705681abff85"], ["created_at", "2015-03-20 07:16:42.914625"], ["updated_at", "2015-03-20 07:16:42.914625"], ["token", "qNuDWHdSuDO0gnphqdzX_K55fq9Hb5G2VRaPmfQ6HWs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$uruhEXg2iQPHPfHnJzpi2Oh70yMk15awCH4VsAeZE0WDTrfHynqBy"], ["created_at", "2015-03-20 07:16:42.920296"], ["updated_at", "2015-03-20 07:16:42.920296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.924364"], ["updated_at", "2015-03-20 07:16:42.924364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f5d2fe2-ced1-11e4-87d1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f5dcc72-ced1-11e4-91ca-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f5d2fe2-ced1-11e4-87d1-705681abff85"], ["organization_id", "0f5dcc72-ced1-11e4-91ca-705681abff85"], ["created_at", "2015-03-20 07:16:42.927654"], ["updated_at", "2015-03-20 07:16:42.927654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:42.933809' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1hrplEcMGhw2O1DyFzi6MxpI63yBp3bPccysEqLZkeU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:42.935373"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:42.936624"], ["id", "0f5abf00-ced1-11e4-84c3-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f5a5b14-ced1-11e4-a046-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f5a5b14-ced1-11e4-a046-705681abff85' LIMIT 1 [["organization_id", "0f5b4434-ced1-11e4-95fb-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "0f5b4434-ced1-11e4-95fb-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f5b4434-ced1-11e4-95fb-705681abff85"]] Completed 200 OK in 11ms (Views: 2.2ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$lTGdfrmty5OYyexOI24TOOjIGeRMpvMPI2xCQ4xKu7EroJ4UVzEyu"], ["created_at", "2015-03-20 07:16:42.950445"], ["updated_at", "2015-03-20 07:16:42.950445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.952055"], ["user_id", "0f61cb60-ced1-11e4-9513-705681abff85"], ["created_at", "2015-03-20 07:16:42.952827"], ["updated_at", "2015-03-20 07:16:42.952827"], ["token", "Y3-vi31_ZqslTgc5_toBptT0yPrIFPRrtpzw5RvaQd0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.956241"], ["updated_at", "2015-03-20 07:16:42.956241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f61cb60-ced1-11e4-9513-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f62a9a4-ced1-11e4-84cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f61cb60-ced1-11e4-9513-705681abff85"], ["organization_id", "0f62a9a4-ced1-11e4-84cd-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:42.959711"], ["updated_at", "2015-03-20 07:16:42.959711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '0f62a9a4-ced1-11e4-84cd-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "0f62a9a4-ced1-11e4-84cd-705681abff85"], ["created_at", "2015-03-20 07:16:42.963168"], ["updated_at", "2015-03-20 07:16:42.963168"], ["token", "8WLJN4ETkTNTp2fcj2VM-8P3fbLwx9CMfEmlMAGQv6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$D0gNt3.t/FyNrUPkvhK9/O4qb.PW0eWcGbluIGkDKs/JDJN91ylXe"], ["created_at", "2015-03-20 07:16:42.967612"], ["updated_at", "2015-03-20 07:16:42.967612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:42.970665"], ["updated_at", "2015-03-20 07:16:42.970665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f646640-ced1-11e4-a97d-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f64dc92-ced1-11e4-8c95-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f646640-ced1-11e4-a97d-705681abff85"], ["organization_id", "0f64dc92-ced1-11e4-8c95-705681abff85"], ["created_at", "2015-03-20 07:16:42.973698"], ["updated_at", "2015-03-20 07:16:42.973698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-20 00:16:42 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$DDPZ/8vva7aa/QWvLhO38u197DOiKXvmquRExq/ire9Nyw9XlqWPq"], ["created_at", "2015-03-20 07:16:42.984789"], ["updated_at", "2015-03-20 07:16:42.984789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:42.986419"], ["user_id", "0f6708e6-ced1-11e4-9cbb-705681abff85"], ["created_at", "2015-03-20 07:16:42.987703"], ["updated_at", "2015-03-20 07:16:42.987703"], ["token", "mi8ci9FNJJCfSqtOlnvytQzIqSnK41DIWGtRtl_dr8o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:43.001427"], ["updated_at", "2015-03-20 07:16:43.001427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f6708e6-ced1-11e4-9cbb-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f69934a-ced1-11e4-916f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f6708e6-ced1-11e4-9cbb-705681abff85"], ["organization_id", "0f69934a-ced1-11e4-916f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.005079"], ["updated_at", "2015-03-20 07:16:43.005079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '0f69934a-ced1-11e4-916f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "0f69934a-ced1-11e4-916f-705681abff85"], ["created_at", "2015-03-20 07:16:43.008454"], ["updated_at", "2015-03-20 07:16:43.008454"], ["token", "vKF7-efjpDoPqCVmVbKJ8Muu58ijTI5-PBrnnIF4YDM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-20 00:16:43 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$Q2EUzMxx1Y3SyjU/YRh9Xua/h.UMIVF2fZqu89MPEtTIbNiXwyXFu"], ["created_at", "2015-03-20 07:16:43.021899"], ["updated_at", "2015-03-20 07:16:43.021899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:43.023984"], ["user_id", "0f6cb5b6-ced1-11e4-9e60-705681abff85"], ["created_at", "2015-03-20 07:16:43.024868"], ["updated_at", "2015-03-20 07:16:43.024868"], ["token", "IUUO9seSG5YtIxZ9UY4opErHPGEms9aqsTNGK9IRlgI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:43.030074"], ["updated_at", "2015-03-20 07:16:43.030074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f6cb5b6-ced1-11e4-9e60-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f6df20a-ced1-11e4-8166-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f6cb5b6-ced1-11e4-9e60-705681abff85"], ["organization_id", "0f6df20a-ced1-11e4-8166-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.034235"], ["updated_at", "2015-03-20 07:16:43.034235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '0f6df20a-ced1-11e4-8166-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "0f6df20a-ced1-11e4-8166-705681abff85"], ["created_at", "2015-03-20 07:16:43.039258"], ["updated_at", "2015-03-20 07:16:43.039258"], ["token", "qUH2DjvUo2o1BTc2cl4Q07OcZRHphgom9j5A_k2sIc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:16:43 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:43.044913' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IUUO9seSG5YtIxZ9UY4opErHPGEms9aqsTNGK9IRlgI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:43.047321"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:43.048942"], ["id", "0f6d48b4-ced1-11e4-85e8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f6cb5b6-ced1-11e4-9e60-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f6df20a-ced1-11e4-8166-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f6cb5b6-ced1-11e4-9e60-705681abff85' LIMIT 1 [["organization_id", "0f6df20a-ced1-11e4-8166-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '0f6df20a-ced1-11e4-8166-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$YPvFbJNlas8htflRDTVNSuoDNS3xTX5eYLXfXyNKEIdThY7o0wqm2"], ["created_at", "2015-03-20 07:16:43.070135"], ["updated_at", "2015-03-20 07:16:43.070135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:43.071901"], ["user_id", "0f740f78-ced1-11e4-b167-705681abff85"], ["created_at", "2015-03-20 07:16:43.072676"], ["updated_at", "2015-03-20 07:16:43.072676"], ["token", "_yLz3VR8vFsqiK63OxfV25cvTxpEgLTh5LZFrIhLtD8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:43.076956"], ["updated_at", "2015-03-20 07:16:43.076956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f740f78-ced1-11e4-b167-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f7528f4-ced1-11e4-b26b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f740f78-ced1-11e4-b167-705681abff85"], ["organization_id", "0f7528f4-ced1-11e4-b26b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.081302"], ["updated_at", "2015-03-20 07:16:43.081302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '0f7528f4-ced1-11e4-b26b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "0f7528f4-ced1-11e4-b26b-705681abff85"], ["created_at", "2015-03-20 07:16:43.085628"], ["updated_at", "2015-03-20 07:16:43.085628"], ["token", "MiyB-UyZpc7Tr9yvru79x7pTgHqupIVvpTNChfV5hv4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:16:43 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:43.091844' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_yLz3VR8vFsqiK63OxfV25cvTxpEgLTh5LZFrIhLtD8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:43.094349"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:43.096005"], ["id", "0f748520-ced1-11e4-a4e1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f740f78-ced1-11e4-b167-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f7528f4-ced1-11e4-b26b-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f740f78-ced1-11e4-b167-705681abff85' LIMIT 1 [["organization_id", "0f7528f4-ced1-11e4-b26b-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0f7528f4-ced1-11e4-b26b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "0f7528f4-ced1-11e4-b26b-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.106865"], ["updated_at", "2015-03-20 07:16:43.106865"], ["token", "RJkPSIugFqK13rxLn9L4GhFHrRGcNewa0HQMbsisE68"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c6f23314-d7c4-4190-8ce6-9d620ada31a7) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0f79b8a6-ced1-11e4-b889-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0f79b8a6-ced1-11e4-b889-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c6f23314-d7c4-4190-8ce6-9d620ada31a7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0f79b8a6-ced1-11e4-b889-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [c6f23314-d7c4-4190-8ce6-9d620ada31a7] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f7528f4-ced1-11e4-b26b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [c6f23314-d7c4-4190-8ce6-9d620ada31a7] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [c6f23314-d7c4-4190-8ce6-9d620ada31a7] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [c6f23314-d7c4-4190-8ce6-9d620ada31a7] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [c6f23314-d7c4-4190-8ce6-9d620ada31a7] Date: Fri, 20 Mar 2015 00:16:43 -0700 From: from@example.com To: email@example.com Message-ID: <550bc95b210ad_11963fda0d465bf047b3@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/RJkPSIugFqK13rxLn9L4GhFHrRGcNewa0HQMbsisE68?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [c6f23314-d7c4-4190-8ce6-9d620ada31a7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.39ms Completed 201 Created in 46ms (Views: 0.8ms | ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$5KvMsEFCb4B5wWya5tEZi.Zk99B7cWJxrOSwBSq8OhGS9c.l5wEXq"], ["created_at", "2015-03-20 07:16:43.143859"], ["updated_at", "2015-03-20 07:16:43.143859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:43.145889"], ["user_id", "0f7f58b0-ced1-11e4-81c1-705681abff85"], ["created_at", "2015-03-20 07:16:43.146732"], ["updated_at", "2015-03-20 07:16:43.146732"], ["token", "n0LvDIRt5GF4hrFCCwZCveZ3nXu-KUrdWeGabGwdJfQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:43.150160"], ["updated_at", "2015-03-20 07:16:43.150160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f7f58b0-ced1-11e4-81c1-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f804158-ced1-11e4-8ecb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f7f58b0-ced1-11e4-81c1-705681abff85"], ["organization_id", "0f804158-ced1-11e4-8ecb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.153596"], ["updated_at", "2015-03-20 07:16:43.153596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '0f804158-ced1-11e4-8ecb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "0f804158-ced1-11e4-8ecb-705681abff85"], ["created_at", "2015-03-20 07:16:43.156916"], ["updated_at", "2015-03-20 07:16:43.156916"], ["token", "D57jCKNJFOXQOnSZPDfdnL93fahmfklDdqaSzG4CWGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:16:43 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:43.162820' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "n0LvDIRt5GF4hrFCCwZCveZ3nXu-KUrdWeGabGwdJfQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:43.164412"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:43.165414"], ["id", "0f7fc386-ced1-11e4-b307-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f7f58b0-ced1-11e4-81c1-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f804158-ced1-11e4-8ecb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f7f58b0-ced1-11e4-81c1-705681abff85' LIMIT 1 [["organization_id", "0f804158-ced1-11e4-8ecb-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0f804158-ced1-11e4-8ecb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "0f804158-ced1-11e4-8ecb-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.172729"], ["updated_at", "2015-03-20 07:16:43.172729"], ["token", "CHUfnOfQnZ55MX6PhGwi3_MB22wjRIZimG6epeSWPKc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7561e282-3b8a-4f10-a941-2891f6e3a3d3) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0f83bc16-ced1-11e4-8af8-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0f83bc16-ced1-11e4-8af8-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [7561e282-3b8a-4f10-a941-2891f6e3a3d3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0f83bc16-ced1-11e4-8af8-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [7561e282-3b8a-4f10-a941-2891f6e3a3d3] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f804158-ced1-11e4-8ecb-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [7561e282-3b8a-4f10-a941-2891f6e3a3d3] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [7561e282-3b8a-4f10-a941-2891f6e3a3d3] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [7561e282-3b8a-4f10-a941-2891f6e3a3d3] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [7561e282-3b8a-4f10-a941-2891f6e3a3d3] Date: Fri, 20 Mar 2015 00:16:43 -0700 From: from@example.com To: email@example.com Message-ID: <550bc95b2c3b6_11963fda0d465bf04845@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/CHUfnOfQnZ55MX6PhGwi3_MB22wjRIZimG6epeSWPKc?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [7561e282-3b8a-4f10-a941-2891f6e3a3d3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.89ms Completed 201 Created in 21ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (3.0ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$kVa1XGj5L.ke0jspCX0IFeSBmvGmHC6hKickzeUWzyiL/ul72xPR."], ["created_at", "2015-03-20 07:16:43.197895"], ["updated_at", "2015-03-20 07:16:43.197895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:43.201191"], ["user_id", "0f87ac9a-ced1-11e4-8440-705681abff85"], ["created_at", "2015-03-20 07:16:43.202696"], ["updated_at", "2015-03-20 07:16:43.202696"], ["token", "df2rBPeGzAQd0v8X4uk-k5cFZ3smE3dZuHOKCE13OnM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:43.210180"], ["updated_at", "2015-03-20 07:16:43.210180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f87ac9a-ced1-11e4-8440-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f89870e-ced1-11e4-aba8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f87ac9a-ced1-11e4-8440-705681abff85"], ["organization_id", "0f89870e-ced1-11e4-aba8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.216663"], ["updated_at", "2015-03-20 07:16:43.216663"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '0f89870e-ced1-11e4-aba8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "0f89870e-ced1-11e4-aba8-705681abff85"], ["created_at", "2015-03-20 07:16:43.223188"], ["updated_at", "2015-03-20 07:16:43.223188"], ["token", "FirBURbuW87rjIWIjp5iYeo9wUlONcoC5c_5SbTvAX4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-20 00:16:43 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$d0zM9KTB8Rio2rBgQEA1O.FmS6EJfG6.ZT8bfrle.7bhQwc8Egnzy"], ["created_at", "2015-03-20 07:16:43.237396"], ["updated_at", "2015-03-20 07:16:43.237396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:43.238988"], ["user_id", "0f8d93b2-ced1-11e4-8de9-705681abff85"], ["created_at", "2015-03-20 07:16:43.239792"], ["updated_at", "2015-03-20 07:16:43.239792"], ["token", "VqTfZNLdkyYmn4MCWYVPg-fFRT4D3luRsYGFNJnZzaY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:43.243078"], ["updated_at", "2015-03-20 07:16:43.243078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f8d93b2-ced1-11e4-8de9-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f8e708e-ced1-11e4-ab63-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f8d93b2-ced1-11e4-8de9-705681abff85"], ["organization_id", "0f8e708e-ced1-11e4-ab63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.246735"], ["updated_at", "2015-03-20 07:16:43.246735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '0f8e708e-ced1-11e4-ab63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "0f8e708e-ced1-11e4-ab63-705681abff85"], ["created_at", "2015-03-20 07:16:43.250218"], ["updated_at", "2015-03-20 07:16:43.250218"], ["token", "BGlYNpP0fE3YO3UUvWx5Y0lGpykM4K2OF6eQA1hXzUE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0f8e708e-ced1-11e4-ab63-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:16:43 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"0f8e708e-ced1-11e4-ab63-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:43.254990' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VqTfZNLdkyYmn4MCWYVPg-fFRT4D3luRsYGFNJnZzaY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:43.256825"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:43.257864"], ["id", "0f8df4e2-ced1-11e4-9baf-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0f8e708e-ced1-11e4-ab63-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f8d93b2-ced1-11e4-8de9-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f8e708e-ced1-11e4-ab63-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f8d93b2-ced1-11e4-8de9-705681abff85' LIMIT 1 [["organization_id", "0f8e708e-ced1-11e4-ab63-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '0f8e708e-ced1-11e4-ab63-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$NaDybpFgrToaOXr88CIFa.lWsyI7hz5AGma.JVgBWxXm.wIs3znka"], ["created_at", "2015-03-20 07:16:43.274068"], ["updated_at", "2015-03-20 07:16:43.274068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:43.275740"], ["user_id", "0f932d18-ced1-11e4-9328-705681abff85"], ["created_at", "2015-03-20 07:16:43.276541"], ["updated_at", "2015-03-20 07:16:43.276541"], ["token", "jrRv08FlftQKFOTwpvl55tqJHiiZ23IK0U3hWGMc2ZI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:43.281217"], ["updated_at", "2015-03-20 07:16:43.281217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f932d18-ced1-11e4-9328-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f94477a-ced1-11e4-b0ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f932d18-ced1-11e4-9328-705681abff85"], ["organization_id", "0f94477a-ced1-11e4-b0ee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.284726"], ["updated_at", "2015-03-20 07:16:43.284726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '0f94477a-ced1-11e4-b0ee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "0f94477a-ced1-11e4-b0ee-705681abff85"], ["created_at", "2015-03-20 07:16:43.288141"], ["updated_at", "2015-03-20 07:16:43.288141"], ["token", "F5lYDLCf0AfqZ5Y3-8f0oQEJ6a4pWIZLs-nnKKZVbOc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0f94477a-ced1-11e4-b0ee-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:16:43 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"0f94477a-ced1-11e4-b0ee-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:43.292984' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "jrRv08FlftQKFOTwpvl55tqJHiiZ23IK0U3hWGMc2ZI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:43.294481"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:43.295588"], ["id", "0f939442-ced1-11e4-a148-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0f94477a-ced1-11e4-b0ee-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f932d18-ced1-11e4-9328-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f94477a-ced1-11e4-b0ee-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f932d18-ced1-11e4-9328-705681abff85' LIMIT 1 [["organization_id", "0f94477a-ced1-11e4-b0ee-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0f94477a-ced1-11e4-b0ee-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "0f94477a-ced1-11e4-b0ee-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.303462"], ["updated_at", "2015-03-20 07:16:43.303462"], ["token", "TDpWy8z49T64mN7XBe1ddLElFjCS7yEL29-rLagajCA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 11f0741e-8dee-4471-8c0b-31898485541b) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0f97afdc-ced1-11e4-93e8-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0f97afdc-ced1-11e4-93e8-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [11f0741e-8dee-4471-8c0b-31898485541b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0f97afdc-ced1-11e4-93e8-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [11f0741e-8dee-4471-8c0b-31898485541b] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f94477a-ced1-11e4-b0ee-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [11f0741e-8dee-4471-8c0b-31898485541b] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [11f0741e-8dee-4471-8c0b-31898485541b] Clubhouse::Mailer#invitation: processed outbound mail in 2.5ms [ActiveJob] [ActionMailer::DeliveryJob] [11f0741e-8dee-4471-8c0b-31898485541b] Sent mail to email@example.com (3.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [11f0741e-8dee-4471-8c0b-31898485541b] Date: Fri, 20 Mar 2015 00:16:43 -0700 From: from@example.com To: email@example.com Message-ID: <550bc95b4c2c9_11963fda0d465bf04994@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/TDpWy8z49T64mN7XBe1ddLElFjCS7yEL29-rLagajCA?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [11f0741e-8dee-4471-8c0b-31898485541b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.47ms Completed 201 Created in 22ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$hbavcPKbq35SjZ3WlVRkhOSqfclrMZP6lVKHDK8Y/wP/ppObM.3P6"], ["created_at", "2015-03-20 07:16:43.321048"], ["updated_at", "2015-03-20 07:16:43.321048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:16:43.322647"], ["user_id", "0f9a571e-ced1-11e4-975a-705681abff85"], ["created_at", "2015-03-20 07:16:43.323425"], ["updated_at", "2015-03-20 07:16:43.323425"], ["token", "NMuX8EHnT9rUhiOgmT6zxRaxoxcwvLNO0ovbtHQ8ZbA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:16:43.327295"], ["updated_at", "2015-03-20 07:16:43.327295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f9a571e-ced1-11e4-975a-705681abff85' AND "clubhouse_memberships"."organization_id" = '0f9b4fa2-ced1-11e4-b3bf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f9a571e-ced1-11e4-975a-705681abff85"], ["organization_id", "0f9b4fa2-ced1-11e4-b3bf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.331916"], ["updated_at", "2015-03-20 07:16:43.331916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '0f9b4fa2-ced1-11e4-b3bf-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "0f9b4fa2-ced1-11e4-b3bf-705681abff85"], ["created_at", "2015-03-20 07:16:43.335602"], ["updated_at", "2015-03-20 07:16:43.335602"], ["token", "NBTpBZxlLDQPAWRwXH32KWEfP6YxtX9XoKtKj3VxTok"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0f9b4fa2-ced1-11e4-b3bf-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:16:43 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"0f9b4fa2-ced1-11e4-b3bf-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:16:43.340748' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NMuX8EHnT9rUhiOgmT6zxRaxoxcwvLNO0ovbtHQ8ZbA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:16:43.342197"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:16:43.343175"], ["id", "0f9ab8e4-ced1-11e4-8516-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0f9b4fa2-ced1-11e4-b3bf-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f9a571e-ced1-11e4-975a-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f9b4fa2-ced1-11e4-b3bf-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0f9a571e-ced1-11e4-975a-705681abff85' LIMIT 1 [["organization_id", "0f9b4fa2-ced1-11e4-b3bf-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0f9b4fa2-ced1-11e4-b3bf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "0f9b4fa2-ced1-11e4-b3bf-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:16:43.351074"], ["updated_at", "2015-03-20 07:16:43.351074"], ["token", "ssy4XHl3GVtwpLGl5vzQvXqJSmG6gACI7ptG_i9bR14"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a800a83b-23a9-495e-aa66-d66c1156ac84) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0f9ef45e-ced1-11e4-a844-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0f9ef45e-ced1-11e4-a844-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a800a83b-23a9-495e-aa66-d66c1156ac84] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0f9ef45e-ced1-11e4-a844-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [a800a83b-23a9-495e-aa66-d66c1156ac84] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0f9b4fa2-ced1-11e4-b3bf-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a800a83b-23a9-495e-aa66-d66c1156ac84] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [a800a83b-23a9-495e-aa66-d66c1156ac84] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [a800a83b-23a9-495e-aa66-d66c1156ac84] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [a800a83b-23a9-495e-aa66-d66c1156ac84] Date: Fri, 20 Mar 2015 00:16:43 -0700 From: from@example.com To: email@example.com Message-ID: <550bc95b577e1_11963fda0d465bf050a7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/ssy4XHl3GVtwpLGl5vzQvXqJSmG6gACI7ptG_i9bR14?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a800a83b-23a9-495e-aa66-d66c1156ac84] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.05ms Completed 201 Created in 20ms (Views: 0.9ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (21.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$BgampnTKTXdH584VxfV75eJhkyE5mRCfK9tZjL2wy/yYrkP7Jj9Hq"], ["created_at", "2015-03-20 07:21:30.924998"], ["updated_at", "2015-03-20 07:21:30.924998"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (5.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:30.963405"], ["updated_at", "2015-03-20 07:21:30.963405"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0a80b0-ced1-11e4-a454-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0d1d70-ced1-11e4-8c00-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb0a80b0-ced1-11e4-a454-705681abff85"], ["organization_id", "bb0d1d70-ced1-11e4-8c00-705681abff85"], ["created_at", "2015-03-20 07:21:30.973723"], ["updated_at", "2015-03-20 07:21:30.973723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb0a80b0-ced1-11e4-a454-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb0d1d70-ced1-11e4-8c00-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0a80b0-ced1-11e4-a454-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0d1d70-ced1-11e4-8c00-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb0d1d70-ced1-11e4-8c00-705681abff86"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0a80b0-ced1-11e4-a454-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb0d1d70-ced1-11e4-8c00-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$OeB1efPuAVtzbLUoFOuGK.52CbMjhyJkwmZhF68Q0X/xL4hh2/fP2"], ["created_at", "2015-03-20 07:21:31.014525"], ["updated_at", "2015-03-20 07:21:31.014525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.022557"], ["user_id", "bb14e230-ced1-11e4-849d-705681abff85"], ["created_at", "2015-03-20 07:21:31.023665"], ["updated_at", "2015-03-20 07:21:31.023665"], ["token", "WCFZ9ZjNHwSip2kKDc3komr_MpdKYoxS1vzxgAzO5j0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.027900"], ["updated_at", "2015-03-20 07:21:31.027900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb14e230-ced1-11e4-849d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb16f0de-ced1-11e4-b821-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb14e230-ced1-11e4-849d-705681abff85"], ["organization_id", "bb16f0de-ced1-11e4-b821-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.031754"], ["updated_at", "2015-03-20 07:21:31.031754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$YiyTOkAOCiW1lk699x061.2x8RgmCnAraAgj12EIZ9MDj.Ozx3zn6"], ["created_at", "2015-03-20 07:21:31.064134"], ["updated_at", "2015-03-20 07:21:31.064134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.065848"], ["user_id", "bb1c76da-ced1-11e4-a1a8-705681abff85"], ["created_at", "2015-03-20 07:21:31.066682"], ["updated_at", "2015-03-20 07:21:31.066682"], ["token", "R74QFHjxqIBaJG3F_o06msqGp_N-GlZ8AG6YfQNPmcQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.070185"], ["updated_at", "2015-03-20 07:21:31.070185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb1c76da-ced1-11e4-a1a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb1d5d48-ced1-11e4-b8ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb1c76da-ced1-11e4-a1a8-705681abff85"], ["organization_id", "bb1d5d48-ced1-11e4-b8ae-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.073373"], ["updated_at", "2015-03-20 07:21:31.073373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bb1d5d48-ced1-11e4-b8ae-705681abff85" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"bb1d5d48-ced1-11e4-b8ae-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.078706' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "R74QFHjxqIBaJG3F_o06msqGp_N-GlZ8AG6YfQNPmcQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.085009"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.086730"], ["id", "bb1cdeb8-ced1-11e4-9251-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb1d5d48-ced1-11e4-b8ae-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb1c76da-ced1-11e4-a1a8-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bb1c76da-ced1-11e4-a1a8-705681abff85' LIMIT 1 [["organization_id", "bb1d5d48-ced1-11e4-b8ae-705681abff85"]] Completed 200 OK in 24ms (Views: 1.4ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$KinPom.zrYLqF7w/oYDq5OsfOdDnRgE/UMjHU9I54RZtMw9wbamKy"], ["created_at", "2015-03-20 07:21:31.111295"], ["updated_at", "2015-03-20 07:21:31.111295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.113135"], ["user_id", "bb23a928-ced1-11e4-bd06-705681abff85"], ["created_at", "2015-03-20 07:21:31.114345"], ["updated_at", "2015-03-20 07:21:31.114345"], ["token", "eRK07OWCJUieMYW-gWzCXNdxW5VzXDBvr_39O_BWLj0"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.120985"], ["updated_at", "2015-03-20 07:21:31.120985"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb23a928-ced1-11e4-bd06-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb253d56-ced1-11e4-b2cc-705681abff85') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb23a928-ced1-11e4-bd06-705681abff85"], ["organization_id", "bb253d56-ced1-11e4-b2cc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.133524"], ["updated_at", "2015-03-20 07:21:31.133524"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$Pi0Hb8QB7WquZvE5rNZ22eF5DrHZSiBHqNBha37v0wDfIDqV378a2"], ["created_at", "2015-03-20 07:21:31.153747"], ["updated_at", "2015-03-20 07:21:31.153747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.155650"], ["user_id", "bb2a2488-ced1-11e4-8ae5-705681abff85"], ["created_at", "2015-03-20 07:21:31.156717"], ["updated_at", "2015-03-20 07:21:31.156717"], ["token", "knzpIAniW2q58Bm9vneVcooYqfH5ajxKqMkBxujxnSs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.160650"], ["updated_at", "2015-03-20 07:21:31.160650"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb2a2488-ced1-11e4-8ae5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb2b2d24-ced1-11e4-bece-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb2a2488-ced1-11e4-8ae5-705681abff85"], ["organization_id", "bb2b2d24-ced1-11e4-bece-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.171590"], ["updated_at", "2015-03-20 07:21:31.171590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bb2b2d24-ced1-11e4-bece-705681abff85" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"bb2b2d24-ced1-11e4-bece-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.180187' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "knzpIAniW2q58Bm9vneVcooYqfH5ajxKqMkBxujxnSs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (4.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.181705"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.188230"], ["id", "bb2aa778-ced1-11e4-b8b4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb2b2d24-ced1-11e4-bece-705681abff85"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb2a2488-ced1-11e4-8ae5-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb2a2488-ced1-11e4-8ae5-705681abff85' LIMIT 1 [["organization_id", "bb2b2d24-ced1-11e4-bece-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bb2b2d24-ced1-11e4-bece-705681abff85') LIMIT 1 SQL (0.5ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 07:21:31.207788"], ["id", "bb2b2d24-ced1-11e4-bece-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 32ms (Views: 0.8ms | ActiveRecord: 7.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$ze4hR0Aondb8/s4/4C6XsO4dT48yhTLCVHXL0AoNM24rrKEPP3fRe"], ["created_at", "2015-03-20 07:21:31.222997"], ["updated_at", "2015-03-20 07:21:31.222997"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.226936"], ["user_id", "bb34dbc6-ced1-11e4-aa39-705681abff85"], ["created_at", "2015-03-20 07:21:31.228951"], ["updated_at", "2015-03-20 07:21:31.228951"], ["token", "GNipJiNpM1ouoYlWo7Lv54v6_ndyP7vOC_Ug8XZcUrE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.236940"], ["updated_at", "2015-03-20 07:21:31.236940"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb34dbc6-ced1-11e4-aa39-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb36f3c0-ced1-11e4-ae9d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb34dbc6-ced1-11e4-aa39-705681abff85"], ["organization_id", "bb36f3c0-ced1-11e4-ae9d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.243552"], ["updated_at", "2015-03-20 07:21:31.243552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bb36f3c0-ced1-11e4-ae9d-705681abff85" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"bb36f3c0-ced1-11e4-ae9d-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.251749' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GNipJiNpM1ouoYlWo7Lv54v6_ndyP7vOC_Ug8XZcUrE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.253336"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.254431"], ["id", "bb35c932-ced1-11e4-855d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb36f3c0-ced1-11e4-ae9d-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb34dbc6-ced1-11e4-aa39-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb34dbc6-ced1-11e4-aa39-705681abff85' LIMIT 1 [["organization_id", "bb36f3c0-ced1-11e4-ae9d-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bb36f3c0-ced1-11e4-ae9d-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 26ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$l4AZ4H/oFEntsmqIIXfodOWantmw0iL8s8k..maLY1M3KkVBpdpeK"], ["created_at", "2015-03-20 07:21:31.284078"], ["updated_at", "2015-03-20 07:21:31.284078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.286040"], ["user_id", "bb3e07dc-ced1-11e4-a23d-705681abff85"], ["created_at", "2015-03-20 07:21:31.286860"], ["updated_at", "2015-03-20 07:21:31.286860"], ["token", "wC8kH5_314jk5jBc9nQ-KrchCma95RhcLChz8PJsXvU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.290679"], ["updated_at", "2015-03-20 07:21:31.290679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb3e07dc-ced1-11e4-a23d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb3f09f2-ced1-11e4-b093-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb3e07dc-ced1-11e4-a23d-705681abff85"], ["organization_id", "bb3f09f2-ced1-11e4-b093-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.294441"], ["updated_at", "2015-03-20 07:21:31.294441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (2.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$.g2qNJUEGakkGw.NMSXF1epGp2G6mGPkPk/n86GXJVOHmuYAc8gFa"], ["created_at", "2015-03-20 07:21:31.308965"], ["updated_at", "2015-03-20 07:21:31.308965"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.312344"], ["user_id", "bb41e80c-ced1-11e4-8bb5-705681abff85"], ["created_at", "2015-03-20 07:21:31.316063"], ["updated_at", "2015-03-20 07:21:31.316063"], ["token", "uFmEJ8wgZzxZdDHrOx3bmXPvZxOkiZjr1AiFXD4mJRo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.322801"], ["updated_at", "2015-03-20 07:21:31.322801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb41e80c-ced1-11e4-8bb5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb43fcdc-ced1-11e4-ab27-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb41e80c-ced1-11e4-8bb5-705681abff85"], ["organization_id", "bb43fcdc-ced1-11e4-ab27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.327591"], ["updated_at", "2015-03-20 07:21:31.327591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-8" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-8", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.334147' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uFmEJ8wgZzxZdDHrOx3bmXPvZxOkiZjr1AiFXD4mJRo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.335596"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.336612"], ["id", "bb43087c-ced1-11e4-a46a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-8"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb41e80c-ced1-11e4-8bb5-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb41e80c-ced1-11e4-8bb5-705681abff85' LIMIT 1 [["organization_id", "bb43fcdc-ced1-11e4-ab27-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bb43fcdc-ced1-11e4-ab27-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$u.4KVGMjCkcvvNdpRFBrLegVy8fsPqa8XEN0.p2un4HXc4T8FrCnS"], ["created_at", "2015-03-20 07:21:31.348371"], ["updated_at", "2015-03-20 07:21:31.348371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.350041"], ["user_id", "bb47d3e8-ced1-11e4-a8b9-705681abff85"], ["created_at", "2015-03-20 07:21:31.350817"], ["updated_at", "2015-03-20 07:21:31.350817"], ["token", "qUDtvtWWwxqAG4eCE-3fAjorKQNIZ414eSKyEllnYgc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.354191"], ["updated_at", "2015-03-20 07:21:31.354191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb47d3e8-ced1-11e4-a8b9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb48b344-ced1-11e4-baa8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb47d3e8-ced1-11e4-a8b9-705681abff85"], ["organization_id", "bb48b344-ced1-11e4-baa8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.357589"], ["updated_at", "2015-03-20 07:21:31.357589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$e0/Iy6fKSkHe0saBDcGXXu7SyO7TqgBOfOIteDqe5iw6sL3MQiuOO"], ["created_at", "2015-03-20 07:21:31.367693"], ["updated_at", "2015-03-20 07:21:31.367693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.369463"], ["user_id", "bb4ac706-ced1-11e4-897a-705681abff85"], ["created_at", "2015-03-20 07:21:31.370263"], ["updated_at", "2015-03-20 07:21:31.370263"], ["token", "cPM7S2hPVCFJl5T70VB8ROdnGdJLETOmYwykP1t7YWc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.373682"], ["updated_at", "2015-03-20 07:21:31.373682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb4ac706-ced1-11e4-897a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb4bab44-ced1-11e4-8756-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb4ac706-ced1-11e4-897a-705681abff85"], ["organization_id", "bb4bab44-ced1-11e4-8756-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.377016"], ["updated_at", "2015-03-20 07:21:31.377016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.382659' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cPM7S2hPVCFJl5T70VB8ROdnGdJLETOmYwykP1t7YWc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.384112"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.385186"], ["id", "bb4b30a6-ced1-11e4-bcb0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb4ac706-ced1-11e4-897a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb4ac706-ced1-11e4-897a-705681abff85' LIMIT 1 [["organization_id", "bb4bab44-ced1-11e4-8756-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bb4bab44-ced1-11e4-8756-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 07:21:31.392355"], ["id", "bb4bab44-ced1-11e4-8756-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$ayXClEGeuN7G4E4QstbSTeHCNOKvNqoU/FdcvZs5AZnp7S/Z9Kzs2"], ["created_at", "2015-03-20 07:21:31.401387"], ["updated_at", "2015-03-20 07:21:31.401387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.403073"], ["user_id", "bb4feb8c-ced1-11e4-8c7b-705681abff85"], ["created_at", "2015-03-20 07:21:31.403852"], ["updated_at", "2015-03-20 07:21:31.403852"], ["token", "nCFqIrHMcCkzGvELiHOc7cX5K7pAKnSdxrhUmtHahzI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.407478"], ["updated_at", "2015-03-20 07:21:31.407478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb4feb8c-ced1-11e4-8c7b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb50d650-ced1-11e4-b7bc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb4feb8c-ced1-11e4-8c7b-705681abff85"], ["organization_id", "bb50d650-ced1-11e4-b7bc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.410891"], ["updated_at", "2015-03-20 07:21:31.410891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-11" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-11", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.415959' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "nCFqIrHMcCkzGvELiHOc7cX5K7pAKnSdxrhUmtHahzI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.417329"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.418295"], ["id", "bb504e24-ced1-11e4-93f8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-11"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb4feb8c-ced1-11e4-8c7b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb4feb8c-ced1-11e4-8c7b-705681abff85' LIMIT 1 [["organization_id", "bb50d650-ced1-11e4-b7bc-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bb50d650-ced1-11e4-b7bc-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$BJB7TgLGmZdRb6CrAeZ6uueWZ2Uo6UUhXTAwAxFFBQWBm2H06YlMi"], ["created_at", "2015-03-20 07:21:31.431646"], ["updated_at", "2015-03-20 07:21:31.431646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.433512"], ["user_id", "bb54884a-ced1-11e4-81c7-705681abff85"], ["created_at", "2015-03-20 07:21:31.434534"], ["updated_at", "2015-03-20 07:21:31.434534"], ["token", "JlTzEkVpjwnInnMfQ297FOviMN0gC2OlfgrNJQilF3g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.438367"], ["updated_at", "2015-03-20 07:21:31.438367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb54884a-ced1-11e4-81c7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb558bd2-ced1-11e4-913c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb54884a-ced1-11e4-81c7-705681abff85"], ["organization_id", "bb558bd2-ced1-11e4-913c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.441820"], ["updated_at", "2015-03-20 07:21:31.441820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$lzgsjf7wriB28EkXrLf4.ena6nWvsk8VDDEIFhO8qVSa8FgnKtDYu"], ["created_at", "2015-03-20 07:21:31.453172"], ["updated_at", "2015-03-20 07:21:31.453172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.454791"], ["user_id", "bb57cff0-ced1-11e4-965d-705681abff85"], ["created_at", "2015-03-20 07:21:31.456074"], ["updated_at", "2015-03-20 07:21:31.456074"], ["token", "ceZSY60Rd0U6nUSdBnX7oQHvXddc84x5chMXs0ADe3w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.461465"], ["updated_at", "2015-03-20 07:21:31.461465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb57cff0-ced1-11e4-965d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb591158-ced1-11e4-92e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb57cff0-ced1-11e4-965d-705681abff85"], ["organization_id", "bb591158-ced1-11e4-92e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.465273"], ["updated_at", "2015-03-20 07:21:31.465273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.470340' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ceZSY60Rd0U6nUSdBnX7oQHvXddc84x5chMXs0ADe3w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.471912"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.472854"], ["id", "bb586b5e-ced1-11e4-8b44-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb57cff0-ced1-11e4-965d-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.485044"], ["updated_at", "2015-03-20 07:21:31.485044"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb5cafc0-ced1-11e4-ab3f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb57cff0-ced1-11e4-965d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb5cafc0-ced1-11e4-ab3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb57cff0-ced1-11e4-965d-705681abff85"], ["admin", "t"], ["organization_id", "bb5cafc0-ced1-11e4-ab3f-705681abff85"], ["created_at", "2015-03-20 07:21:31.489133"], ["updated_at", "2015-03-20 07:21:31.489133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 21ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$lM/Blkg9bxC5.syG7UqfkOPbMbDDa/m0F0ZAu5SFSM6hIZ3aqTpFq"], ["created_at", "2015-03-20 07:21:31.497368"], ["updated_at", "2015-03-20 07:21:31.497368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.499450"], ["user_id", "bb5e9394-ced1-11e4-9c9f-705681abff85"], ["created_at", "2015-03-20 07:21:31.500691"], ["updated_at", "2015-03-20 07:21:31.500691"], ["token", "HBbg1GBGfrd90H1pAEyCuVLIjeaaBc0K-t_f9Nl2MDg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.504698"], ["updated_at", "2015-03-20 07:21:31.504698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb5e9394-ced1-11e4-9c9f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb5facb6-ced1-11e4-84e9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb5e9394-ced1-11e4-9c9f-705681abff85"], ["organization_id", "bb5facb6-ced1-11e4-84e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.507945"], ["updated_at", "2015-03-20 07:21:31.507945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.512479' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HBbg1GBGfrd90H1pAEyCuVLIjeaaBc0K-t_f9Nl2MDg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.513916"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.514885"], ["id", "bb5f1b70-ced1-11e4-adcc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb5e9394-ced1-11e4-9c9f-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$dXnYSXOXZ5JEVSpVx4QbOO9itNm9A4Sa0i3HvACgqkC0uzjT4IXoq"], ["created_at", "2015-03-20 07:21:31.527762"], ["updated_at", "2015-03-20 07:21:31.527762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.529376"], ["user_id", "bb6332c8-ced1-11e4-8446-705681abff85"], ["created_at", "2015-03-20 07:21:31.530202"], ["updated_at", "2015-03-20 07:21:31.530202"], ["token", "Ah7aeBVVfBxfwmgBNjvzEnibfhyz9G6DebexsAyxXho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.534174"], ["updated_at", "2015-03-20 07:21:31.534174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb6332c8-ced1-11e4-8446-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb64329a-ced1-11e4-824f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb6332c8-ced1-11e4-8446-705681abff85"], ["organization_id", "bb64329a-ced1-11e4-824f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.537883"], ["updated_at", "2015-03-20 07:21:31.537883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$495yqB0dUgD0T1v3uQqsze/gm4n6iyXmFZunGwVG8FRPIJOtVEY9u"], ["created_at", "2015-03-20 07:21:31.542446"], ["updated_at", "2015-03-20 07:21:31.542446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.546199"], ["updated_at", "2015-03-20 07:21:31.546199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb656e9e-ced1-11e4-bc2c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb660048-ced1-11e4-9d64-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb656e9e-ced1-11e4-bc2c-705681abff85"], ["organization_id", "bb660048-ced1-11e4-9d64-705681abff85"], ["created_at", "2015-03-20 07:21:31.550080"], ["updated_at", "2015-03-20 07:21:31.550080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$xeDJEq6gp.tS0PlKNFqkW.h8ZBbJ2Bk7NvW4tDLFAYPTS/VkGBAem"], ["created_at", "2015-03-20 07:21:31.560803"], ["updated_at", "2015-03-20 07:21:31.560803"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.562953"], ["user_id", "bb683dd6-ced1-11e4-80a0-705681abff85"], ["created_at", "2015-03-20 07:21:31.563766"], ["updated_at", "2015-03-20 07:21:31.563766"], ["token", "4fDqy388tgs7J1RLepAI9sCdjrav8PGh_GaHEn0LqEo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.567343"], ["updated_at", "2015-03-20 07:21:31.567343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb683dd6-ced1-11e4-80a0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb693b5a-ced1-11e4-8645-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb683dd6-ced1-11e4-80a0-705681abff85"], ["organization_id", "bb693b5a-ced1-11e4-8645-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.570682"], ["updated_at", "2015-03-20 07:21:31.570682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$ZdXZyNnYAEOWK.O7MA653epx59VFXcDkzig5Y8lljGeUfMI/P/MnS"], ["created_at", "2015-03-20 07:21:31.575305"], ["updated_at", "2015-03-20 07:21:31.575305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.578568"], ["updated_at", "2015-03-20 07:21:31.578568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb6a73f8-ced1-11e4-a990-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb6aefea-ced1-11e4-a45a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb6a73f8-ced1-11e4-a990-705681abff85"], ["organization_id", "bb6aefea-ced1-11e4-a45a-705681abff85"], ["created_at", "2015-03-20 07:21:31.582022"], ["updated_at", "2015-03-20 07:21:31.582022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.587311' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4fDqy388tgs7J1RLepAI9sCdjrav8PGh_GaHEn0LqEo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.588872"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.589858"], ["id", "bb68b892-ced1-11e4-a5c1-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb683dd6-ced1-11e4-80a0-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "bb683dd6-ced1-11e4-80a0-705681abff85"]] Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$W9w3FwIYDiUkOg2ILlT5JOpQuAgIPuOYXHNdTJ4PIOg.QpL4Y4qUy"], ["created_at", "2015-03-20 07:21:31.604761"], ["updated_at", "2015-03-20 07:21:31.604761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.606503"], ["user_id", "bb6ef554-ced1-11e4-9c3d-705681abff85"], ["created_at", "2015-03-20 07:21:31.614847"], ["updated_at", "2015-03-20 07:21:31.614847"], ["token", "i-jzF_yZXYia5lj965oCBy8M5FR9wpkxeQH1ba2Wwfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.618607"], ["updated_at", "2015-03-20 07:21:31.618607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb6ef554-ced1-11e4-9c3d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb710c18-ced1-11e4-a9f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb6ef554-ced1-11e4-9c3d-705681abff85"], ["organization_id", "bb710c18-ced1-11e4-a9f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.622068"], ["updated_at", "2015-03-20 07:21:31.622068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$OImqIjgrledMiHOt07O/W.zDQ1SuiD7rPfCyYFH.2oPlEWNa.nUDO"], ["created_at", "2015-03-20 07:21:31.635661"], ["updated_at", "2015-03-20 07:21:31.635661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.638874"], ["user_id", "bb73ca48-ced1-11e4-8ad6-705681abff85"], ["created_at", "2015-03-20 07:21:31.640116"], ["updated_at", "2015-03-20 07:21:31.640116"], ["token", "cGD02k7A9jcvTCMuc8O9uBYYCuV4ubagt9wNsgrBbUI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.644289"], ["updated_at", "2015-03-20 07:21:31.644289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb73ca48-ced1-11e4-8ad6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb74fb02-ced1-11e4-ab5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb73ca48-ced1-11e4-8ad6-705681abff85"], ["organization_id", "bb74fb02-ced1-11e4-ab5f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.647716"], ["updated_at", "2015-03-20 07:21:31.647716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-20" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.653332' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cGD02k7A9jcvTCMuc8O9uBYYCuV4ubagt9wNsgrBbUI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.654738"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.655826"], ["id", "bb7463e0-ced1-11e4-a0e2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-20"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb73ca48-ced1-11e4-8ad6-705681abff85"]] Completed 200 OK in 6ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$v5Leiq3NBjekiG3xIAqB.uD6yTeVc8zryTw8N55Mh31MF09Mz7tem"], ["created_at", "2015-03-20 07:21:31.664324"], ["updated_at", "2015-03-20 07:21:31.664324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.666168"], ["user_id", "bb780afe-ced1-11e4-be31-705681abff85"], ["created_at", "2015-03-20 07:21:31.667067"], ["updated_at", "2015-03-20 07:21:31.667067"], ["token", "8lX60J9WZMF3e5O9d1pEcdsKzDCgAYeGNDNw9apKcCA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.670556"], ["updated_at", "2015-03-20 07:21:31.670556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb780afe-ced1-11e4-be31-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb78fa36-ced1-11e4-9645-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb780afe-ced1-11e4-be31-705681abff85"], ["organization_id", "bb78fa36-ced1-11e4-9645-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.674104"], ["updated_at", "2015-03-20 07:21:31.674104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.678848' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "8lX60J9WZMF3e5O9d1pEcdsKzDCgAYeGNDNw9apKcCA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.680200"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.681214"], ["id", "bb787c00-ced1-11e4-815d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$K5SLNQQZsOLal/k9kFz3tu9cYMkzvU8RYNIHjXJSIABrggjpXjiYu"], ["created_at", "2015-03-20 07:21:31.689061"], ["updated_at", "2015-03-20 07:21:31.689061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.690803"], ["user_id", "bb7bd242-ced1-11e4-b8d9-705681abff85"], ["created_at", "2015-03-20 07:21:31.691547"], ["updated_at", "2015-03-20 07:21:31.691547"], ["token", "aOErh2eqJsr50MkqiiIQFAZKL1DajVLA08utclCkiNw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.694930"], ["updated_at", "2015-03-20 07:21:31.694930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb7bd242-ced1-11e4-b8d9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb7cb8d8-ced1-11e4-bf3f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb7bd242-ced1-11e4-b8d9-705681abff85"], ["organization_id", "bb7cb8d8-ced1-11e4-bf3f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.698712"], ["updated_at", "2015-03-20 07:21:31.698712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$5GVNBHu2gfigO.57fOyjK.EqmQ5Naq7tzA8gPTKp8lHKdro/bq7Ri"], ["created_at", "2015-03-20 07:21:31.710010"], ["updated_at", "2015-03-20 07:21:31.710010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.711583"], ["user_id", "bb7f00a2-ced1-11e4-9515-705681abff85"], ["created_at", "2015-03-20 07:21:31.712356"], ["updated_at", "2015-03-20 07:21:31.712356"], ["token", "mieL1bIxlBXUJyUQJOcDRSYcXKrtSpp2TJlHy-gOQvE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.715846"], ["updated_at", "2015-03-20 07:21:31.715846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb7f00a2-ced1-11e4-9515-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb7fe1ac-ced1-11e4-a413-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb7f00a2-ced1-11e4-9515-705681abff85"], ["organization_id", "bb7fe1ac-ced1-11e4-a413-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.719366"], ["updated_at", "2015-03-20 07:21:31.719366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/bb7fe1ac-ced1-11e4-a413-705681abff85" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"bb7fe1ac-ced1-11e4-a413-705681abff85", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.726805' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mieL1bIxlBXUJyUQJOcDRSYcXKrtSpp2TJlHy-gOQvE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.729234"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.730392"], ["id", "bb7f64b6-ced1-11e4-8c29-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb7fe1ac-ced1-11e4-a413-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb7f00a2-ced1-11e4-9515-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb7f00a2-ced1-11e4-9515-705681abff85' LIMIT 1 [["organization_id", "bb7fe1ac-ced1-11e4-a413-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bb7fe1ac-ced1-11e4-a413-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$qXqo1ICGjHyoutvy7yONyOlMdhNuiGFBL6f8ljbilFloUIBeedJL2"], ["created_at", "2015-03-20 07:21:31.742462"], ["updated_at", "2015-03-20 07:21:31.742462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.744135"], ["user_id", "bb83f67a-ced1-11e4-bfa7-705681abff85"], ["created_at", "2015-03-20 07:21:31.744945"], ["updated_at", "2015-03-20 07:21:31.744945"], ["token", "tKj3NYuiHy2OYY7YN8uKBDqdLTesMrZfN7liVJtttFY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.748591"], ["updated_at", "2015-03-20 07:21:31.748591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb83f67a-ced1-11e4-bfa7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb84e6d4-ced1-11e4-bfac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb83f67a-ced1-11e4-bfa7-705681abff85"], ["organization_id", "bb84e6d4-ced1-11e4-bfac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.752722"], ["updated_at", "2015-03-20 07:21:31.752722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$nZ1rIbae2hs8riJ7Lj.Ngug4dN43uAHnbiNXiJ3hLbn5LjILvc.Xe"], ["created_at", "2015-03-20 07:21:31.762404"], ["updated_at", "2015-03-20 07:21:31.762404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.764008"], ["user_id", "bb870040-ced1-11e4-b83f-705681abff85"], ["created_at", "2015-03-20 07:21:31.764815"], ["updated_at", "2015-03-20 07:21:31.764815"], ["token", "9YrSeWF35AdN8v5xxhzDrcZ-v3cUwd5rhdTsLpvCYHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.768606"], ["updated_at", "2015-03-20 07:21:31.768606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb870040-ced1-11e4-b83f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb87effa-ced1-11e4-a766-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb870040-ced1-11e4-b83f-705681abff85"], ["organization_id", "bb87effa-ced1-11e4-a766-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.772301"], ["updated_at", "2015-03-20 07:21:31.772301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-25" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-25", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.778549' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9YrSeWF35AdN8v5xxhzDrcZ-v3cUwd5rhdTsLpvCYHY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.780092"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.781253"], ["id", "bb876b48-ced1-11e4-9ad2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-25"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb870040-ced1-11e4-b83f-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bb870040-ced1-11e4-b83f-705681abff85' LIMIT 1 [["organization_id", "bb87effa-ced1-11e4-a766-705681abff85"]] Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.815111"], ["updated_at", "2015-03-20 07:21:31.815111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bb8f0d94-ced1-11e4-9c63-705681abff85') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "bb8f0d94-ced1-11e4-9c63-705681abff85"], ["created_at", "2015-03-20 07:21:31.818450"], ["updated_at", "2015-03-20 07:21:31.818450"], ["token", "E4XKJxpm8DVvKJMYzyY4Ac9ZUpkNnXIbmg8-L3GzGh8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.824522"], ["updated_at", "2015-03-20 07:21:31.824522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bb9078d2-ced1-11e4-b448-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "bb9078d2-ced1-11e4-b448-705681abff85"], ["created_at", "2015-03-20 07:21:31.827495"], ["updated_at", "2015-03-20 07:21:31.827495"], ["token", "Jq3iroG_DSVmYUogHbW24nmwP0qpJwnoQxVdPpol9Lo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb9078d2-ced1-11e4-b448-705681abff85"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bb9078d2-ced1-11e4-b448-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb9078d2-ced1-11e4-b448-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bb9078d2-ced1-11e4-b448-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$XQsVkj1B2hsF6sngUJEoPejlhWjgSS2A4NmqLKN32HS3iGFStppY."], ["created_at", "2015-03-20 07:21:31.843702"], ["updated_at", "2015-03-20 07:21:31.843702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$nsQ.zRl7oxq2xr9S7OEZoufJ2YcDbEYqHScxtqobBdpfeA.eqewKS"], ["created_at", "2015-03-20 07:21:31.848289"], ["updated_at", "2015-03-20 07:21:31.848289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.850049"], ["user_id", "bb936740-ced1-11e4-bd6c-705681abff85"], ["created_at", "2015-03-20 07:21:31.851407"], ["updated_at", "2015-03-20 07:21:31.851407"], ["token", "5n71Hxg2nSF5EUJq8pkPL6K9IdtA1vk_UJp63z0lJnk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.855368"], ["updated_at", "2015-03-20 07:21:31.855368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb936740-ced1-11e4-bd6c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb952d32-ced1-11e4-bf01-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb936740-ced1-11e4-bd6c-705681abff85"], ["organization_id", "bb952d32-ced1-11e4-bf01-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.858628"], ["updated_at", "2015-03-20 07:21:31.858628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb941b54-ced1-11e4-ae63-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb952d32-ced1-11e4-bf01-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb941b54-ced1-11e4-ae63-705681abff85"], ["organization_id", "bb952d32-ced1-11e4-bf01-705681abff85"], ["created_at", "2015-03-20 07:21:31.861617"], ["updated_at", "2015-03-20 07:21:31.861617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$8ow0yBV1HBrAKXsvl3kv7.TvcAkzOky9bVimQRiI8Me3f/Duvvqai"], ["created_at", "2015-03-20 07:21:31.876701"], ["updated_at", "2015-03-20 07:21:31.876701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$Rhk5O.9pTKXbBqP301U77et0q5Wmyn4y0nqzFOq1MhiBOQA5g/pY."], ["created_at", "2015-03-20 07:21:31.881881"], ["updated_at", "2015-03-20 07:21:31.881881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.883724"], ["user_id", "bb987410-ced1-11e4-b797-705681abff85"], ["created_at", "2015-03-20 07:21:31.884629"], ["updated_at", "2015-03-20 07:21:31.884629"], ["token", "xc0huNCcxmYj5WGXF1cCe0Tcb9h8_6yfIIEo-sbbV-Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.888762"], ["updated_at", "2015-03-20 07:21:31.888762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb987410-ced1-11e4-b797-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb9a472c-ced1-11e4-acb3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb987410-ced1-11e4-b797-705681abff85"], ["organization_id", "bb9a472c-ced1-11e4-acb3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.892267"], ["updated_at", "2015-03-20 07:21:31.892267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb993fda-ced1-11e4-9ae5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bb9a472c-ced1-11e4-acb3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb993fda-ced1-11e4-9ae5-705681abff85"], ["organization_id", "bb9a472c-ced1-11e4-acb3-705681abff85"], ["created_at", "2015-03-20 07:21:31.895424"], ["updated_at", "2015-03-20 07:21:31.895424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/bb9b4924-ced1-11e4-8dac-705681abff85" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"bb9b4924-ced1-11e4-8dac-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.900358' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "xc0huNCcxmYj5WGXF1cCe0Tcb9h8_6yfIIEo-sbbV-Q"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:31.902427"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:31.903497"], ["id", "bb99b5a0-ced1-11e4-8ecc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "bb9b4924-ced1-11e4-8dac-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb987410-ced1-11e4-b797-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bb9a472c-ced1-11e4-acb3-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb987410-ced1-11e4-b797-705681abff85' LIMIT 1 [["organization_id", "bb9a472c-ced1-11e4-acb3-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb993fda-ced1-11e4-9ae5-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "bb9b4924-ced1-11e4-8dac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$qM3JJDFC3TWo2ri1N58wR.aGl4iXCwJvFgW2u3uZO1yhWmFnYLjLK"], ["created_at", "2015-03-20 07:21:31.916229"], ["updated_at", "2015-03-20 07:21:31.916229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$bXHmRNhUr/yQrgdr3dl5weEJJAOhohDsEAxDp73w49hYMQdEIxQVa"], ["created_at", "2015-03-20 07:21:31.920915"], ["updated_at", "2015-03-20 07:21:31.920915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.922569"], ["user_id", "bb9e7e32-ced1-11e4-b829-705681abff85"], ["created_at", "2015-03-20 07:21:31.923409"], ["updated_at", "2015-03-20 07:21:31.923409"], ["token", "ExvfgeKgNY7naoY5KcoXikunb5DJnS_5pu_B81Decbs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.926947"], ["updated_at", "2015-03-20 07:21:31.926947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb9e7e32-ced1-11e4-b829-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba01a3a-ced1-11e4-8b5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb9e7e32-ced1-11e4-b829-705681abff85"], ["organization_id", "bba01a3a-ced1-11e4-8b5b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.938551"], ["updated_at", "2015-03-20 07:21:31.938551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb9f2d3c-ced1-11e4-95d3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba01a3a-ced1-11e4-8b5b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb9f2d3c-ced1-11e4-95d3-705681abff85"], ["organization_id", "bba01a3a-ced1-11e4-8b5b-705681abff85"], ["created_at", "2015-03-20 07:21:31.941625"], ["updated_at", "2015-03-20 07:21:31.941625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$GMsvmyqxcwYphmwQ7.6vVefYW0CkePQM84tNEUPG1oBKtcC5vnshe"], ["created_at", "2015-03-20 07:21:31.946072"], ["updated_at", "2015-03-20 07:21:31.946072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.948029"], ["user_id", "bba3100a-ced1-11e4-82c3-705681abff85"], ["created_at", "2015-03-20 07:21:31.948888"], ["updated_at", "2015-03-20 07:21:31.948888"], ["token", "mrmykSQbrWtCbTwVJNQH4bpNhgVqRe1LLEwkkOPtTbo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'bba01a3a-ced1-11e4-8b5b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "bba01a3a-ced1-11e4-8b5b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.954203"], ["updated_at", "2015-03-20 07:21:31.954203"], ["token", "9S8QtE5HxvUK_00GDoC_0B2FZnyLhn8ihMfMckrKI6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$Zy7tSNWbxBiVNgA/qs1W9u5JbjnYE2s5oO9rTYJiJcxjPNDtL7viC"], ["created_at", "2015-03-20 07:21:31.965126"], ["updated_at", "2015-03-20 07:21:31.965126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$GyFRWMiuCvIK7SLXcFoOnukEGNZldaZdUqbE8EoOnAIXUo9ZxwepK"], ["created_at", "2015-03-20 07:21:31.969560"], ["updated_at", "2015-03-20 07:21:31.969560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.971162"], ["user_id", "bba5ede8-ced1-11e4-95a0-705681abff85"], ["created_at", "2015-03-20 07:21:31.972006"], ["updated_at", "2015-03-20 07:21:31.972006"], ["token", "vOcC5S1aBEUay3mMBIWNWXWWcJBex-kJRX4R_NxGwmo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:31.975372"], ["updated_at", "2015-03-20 07:21:31.975372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bba5ede8-ced1-11e4-95a0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba77b0e-ced1-11e4-b8c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bba5ede8-ced1-11e4-95a0-705681abff85"], ["organization_id", "bba77b0e-ced1-11e4-b8c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.978523"], ["updated_at", "2015-03-20 07:21:31.978523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bba698f6-ced1-11e4-ad28-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba77b0e-ced1-11e4-b8c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bba698f6-ced1-11e4-ad28-705681abff85"], ["organization_id", "bba77b0e-ced1-11e4-b8c9-705681abff85"], ["created_at", "2015-03-20 07:21:31.981660"], ["updated_at", "2015-03-20 07:21:31.981660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$lxgVxr5NKZmzRUic9gbEJ.ylqPvOVeDDSoDBqoQk/IDzoYsdgnD/y"], ["created_at", "2015-03-20 07:21:31.986363"], ["updated_at", "2015-03-20 07:21:31.986363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:31.988096"], ["user_id", "bba92d46-ced1-11e4-8ee4-705681abff85"], ["created_at", "2015-03-20 07:21:31.988968"], ["updated_at", "2015-03-20 07:21:31.988968"], ["token", "qOXIuSKXGJtwf_wbmrItUvGG4DeUzLYesxPU9Gxx7JQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'bba77b0e-ced1-11e4-b8c9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "bba77b0e-ced1-11e4-b8c9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:31.992981"], ["updated_at", "2015-03-20 07:21:31.992981"], ["token", "DDsMIO9DjvF9DK2-JO-l_GerL29wgPvWoxWB1w1eu6o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bba77b0e-ced1-11e4-b8c9-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:21:31 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"DDsMIO9DjvF9DK2-JO-l_GerL29wgPvWoxWB1w1eu6o", "organization_id"=>"bba77b0e-ced1-11e4-b8c9-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:31.998810' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "qOXIuSKXGJtwf_wbmrItUvGG4DeUzLYesxPU9Gxx7JQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.000285"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.001337"], ["id", "bba998ee-ced1-11e4-94ea-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bba77b0e-ced1-11e4-b8c9-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bba92d46-ced1-11e4-8ee4-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "DDsMIO9DjvF9DK2-JO-l_GerL29wgPvWoxWB1w1eu6o"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bba77b0e-ced1-11e4-b8c9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bba92d46-ced1-11e4-8ee4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bba77b0e-ced1-11e4-b8c9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "bba77b0e-ced1-11e4-b8c9-705681abff85"], ["member_id", "bba92d46-ced1-11e4-8ee4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.011407"], ["updated_at", "2015-03-20 07:21:32.011407"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "bbaa3434-ced1-11e4-953b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 3.1ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$xXc696XRNjqrlu6YiszADuSAhN.r6c6gI/q4NKsa394QuKCaRPwfm"], ["created_at", "2015-03-20 07:21:32.023201"], ["updated_at", "2015-03-20 07:21:32.023201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$xbRkvBx.O5FE7CM3oVPGP.HsvHRGhFuLOiL6JMh3kGSXE14rWcV0a"], ["created_at", "2015-03-20 07:21:32.027589"], ["updated_at", "2015-03-20 07:21:32.027589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.029106"], ["user_id", "bbaecbd4-ced1-11e4-a1ff-705681abff85"], ["created_at", "2015-03-20 07:21:32.029866"], ["updated_at", "2015-03-20 07:21:32.029866"], ["token", "cHLJF2k-kDyxFs4qwSlK394Zx_zqXbIXiOcQqJmFIh4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.033737"], ["updated_at", "2015-03-20 07:21:32.033737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbaecbd4-ced1-11e4-a1ff-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbb06a34-ced1-11e4-b9aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbaecbd4-ced1-11e4-a1ff-705681abff85"], ["organization_id", "bbb06a34-ced1-11e4-b9aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.037376"], ["updated_at", "2015-03-20 07:21:32.037376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbaf741c-ced1-11e4-a6d2-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbb06a34-ced1-11e4-b9aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbaf741c-ced1-11e4-a6d2-705681abff85"], ["organization_id", "bbb06a34-ced1-11e4-b9aa-705681abff85"], ["created_at", "2015-03-20 07:21:32.040844"], ["updated_at", "2015-03-20 07:21:32.040844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$2yzuCWgc0WnsAKbso3AOV.1lmkarFofNtvF6V.1MZG5KWaeUTr77e"], ["created_at", "2015-03-20 07:21:32.045311"], ["updated_at", "2015-03-20 07:21:32.045311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.046882"], ["user_id", "bbb229f0-ced1-11e4-838b-705681abff85"], ["created_at", "2015-03-20 07:21:32.047670"], ["updated_at", "2015-03-20 07:21:32.047670"], ["token", "mOg6dSkj36javkD47h-XdLoV1bl3o-A_mWK_OMNAPHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'bbb06a34-ced1-11e4-b9aa-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "bbb06a34-ced1-11e4-b9aa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.051632"], ["updated_at", "2015-03-20 07:21:32.051632"], ["token", "xmIefHCrVPw-vvqt348Lh8cWjYlYusUPR5EOdxFE2zI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bbb06a34-ced1-11e4-b9aa-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"bbb06a34-ced1-11e4-b9aa-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:32.057137' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "mOg6dSkj36javkD47h-XdLoV1bl3o-A_mWK_OMNAPHY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.058845"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.059859"], ["id", "bbb28bb6-ced1-11e4-b590-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bbb06a34-ced1-11e4-b9aa-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbb229f0-ced1-11e4-838b-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$jyidfCMPnApifDxP.SW1Nu7WWBHj22heayuvkTW6cZIHRmehRELmm"], ["created_at", "2015-03-20 07:21:32.071674"], ["updated_at", "2015-03-20 07:21:32.071674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$MBNtD2qQQXjI3b/XYubmjOG/.RJI5ciyJ19ANjlbw/l6GX7z8mGye"], ["created_at", "2015-03-20 07:21:32.076215"], ["updated_at", "2015-03-20 07:21:32.076215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.077892"], ["user_id", "bbb63338-ced1-11e4-a70f-705681abff85"], ["created_at", "2015-03-20 07:21:32.078687"], ["updated_at", "2015-03-20 07:21:32.078687"], ["token", "V82SDQqRhMlqvBUoK8rOw9J2-RHgee6GEWii_yHptog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.082025"], ["updated_at", "2015-03-20 07:21:32.082025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbb63338-ced1-11e4-a70f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbb7c20c-ced1-11e4-9d4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbb63338-ced1-11e4-a70f-705681abff85"], ["organization_id", "bbb7c20c-ced1-11e4-9d4c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.085574"], ["updated_at", "2015-03-20 07:21:32.085574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbb6e418-ced1-11e4-9b64-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbb7c20c-ced1-11e4-9d4c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbb6e418-ced1-11e4-9b64-705681abff85"], ["organization_id", "bbb7c20c-ced1-11e4-9d4c-705681abff85"], ["created_at", "2015-03-20 07:21:32.089014"], ["updated_at", "2015-03-20 07:21:32.089014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$45Ilmg3Kw3bmCWsrA6d6Z.WqEbHCNdfzEFTYPITWN6dLS0TkbZen."], ["created_at", "2015-03-20 07:21:32.101534"], ["updated_at", "2015-03-20 07:21:32.101534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$B5.IH7fiIqHhoEc8n3jZ2.LXEIOePWMZ5bhiVsV51szhLvfqcrQtS"], ["created_at", "2015-03-20 07:21:32.106696"], ["updated_at", "2015-03-20 07:21:32.106696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.108422"], ["user_id", "bbbad1b8-ced1-11e4-a563-705681abff85"], ["created_at", "2015-03-20 07:21:32.109220"], ["updated_at", "2015-03-20 07:21:32.109220"], ["token", "Bm-NDUToDK5STxjZdNMd6_MHAzsN2Rfmd3d2p_VImsY"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.113009"], ["updated_at", "2015-03-20 07:21:32.113009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbbad1b8-ced1-11e4-a563-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbbc7d2e-ced1-11e4-bc5f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbbad1b8-ced1-11e4-a563-705681abff85"], ["organization_id", "bbbc7d2e-ced1-11e4-bc5f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.116258"], ["updated_at", "2015-03-20 07:21:32.116258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbbb8874-ced1-11e4-82e5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbbc7d2e-ced1-11e4-bc5f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbbb8874-ced1-11e4-82e5-705681abff85"], ["organization_id", "bbbc7d2e-ced1-11e4-bc5f-705681abff85"], ["created_at", "2015-03-20 07:21:32.120546"], ["updated_at", "2015-03-20 07:21:32.120546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/bbbda686-ced1-11e4-aad0-705681abff85" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"bbbda686-ced1-11e4-aad0-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:32.125589' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Bm-NDUToDK5STxjZdNMd6_MHAzsN2Rfmd3d2p_VImsY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.127042"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.128080"], ["id", "bbbbf0c0-ced1-11e4-9b20-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "bbbda686-ced1-11e4-aad0-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbbad1b8-ced1-11e4-a563-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbbc7d2e-ced1-11e4-bc5f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbbad1b8-ced1-11e4-a563-705681abff85' LIMIT 1 [["organization_id", "bbbc7d2e-ced1-11e4-bc5f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbbb8874-ced1-11e4-82e5-705681abff85"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbbb8874-ced1-11e4-82e5-705681abff85' AND "clubhouse_memberships"."id" != 'bbbda686-ced1-11e4-aad0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbbc7d2e-ced1-11e4-bc5f-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 07:21:32.135214"], ["id", "bbbda686-ced1-11e4-aad0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$v6JTHJIC.5FiV0EOBDFUVewZv8F4fh2Zng/h2rx6khkH0y0XAU1bG"], ["created_at", "2015-03-20 07:21:32.144096"], ["updated_at", "2015-03-20 07:21:32.144096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$9Co3Z1mtz1Y.M2aciBhpDeF.9WazWsxGoWZzNHAbXptL3fkHbg./a"], ["created_at", "2015-03-20 07:21:32.148376"], ["updated_at", "2015-03-20 07:21:32.148376"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.150217"], ["user_id", "bbc13ecc-ced1-11e4-abeb-705681abff85"], ["created_at", "2015-03-20 07:21:32.150992"], ["updated_at", "2015-03-20 07:21:32.150992"], ["token", "5WsTI1UM9QcbDRKd5EF5-wLiBdAEXhUI-x7OlRNask4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.154852"], ["updated_at", "2015-03-20 07:21:32.154852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc13ecc-ced1-11e4-abeb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc2e308-ced1-11e4-8914-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbc13ecc-ced1-11e4-abeb-705681abff85"], ["organization_id", "bbc2e308-ced1-11e4-8914-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.158409"], ["updated_at", "2015-03-20 07:21:32.158409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc1e1ba-ced1-11e4-9d2c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc2e308-ced1-11e4-8914-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbc1e1ba-ced1-11e4-9d2c-705681abff85"], ["organization_id", "bbc2e308-ced1-11e4-8914-705681abff85"], ["created_at", "2015-03-20 07:21:32.161422"], ["updated_at", "2015-03-20 07:21:32.161422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$gu16z.LCag8745GsSXy04eMutIq2Xdm/s09Pe.VdkBzzGmktZXN.y"], ["created_at", "2015-03-20 07:21:32.171423"], ["updated_at", "2015-03-20 07:21:32.171423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$eBxYLUV7W1J9opcCoZNGOuI6kYh8EmPRujO5pinDADosG2mZd0Fda"], ["created_at", "2015-03-20 07:21:32.176218"], ["updated_at", "2015-03-20 07:21:32.176218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.177961"], ["user_id", "bbc56e34-ced1-11e4-99c0-705681abff85"], ["created_at", "2015-03-20 07:21:32.178781"], ["updated_at", "2015-03-20 07:21:32.178781"], ["token", "BUuphnbFg7OcmjupsgD82QyTD014KMCMK1SceEdLUcc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (3.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.185333"], ["updated_at", "2015-03-20 07:21:32.185333"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc56e34-ced1-11e4-99c0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc7f8ca-ced1-11e4-ac86-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbc56e34-ced1-11e4-99c0-705681abff85"], ["organization_id", "bbc7f8ca-ced1-11e4-ac86-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.195773"], ["updated_at", "2015-03-20 07:21:32.195773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbc624a0-ced1-11e4-a3a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbc7f8ca-ced1-11e4-ac86-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbc624a0-ced1-11e4-a3a8-705681abff85"], ["organization_id", "bbc7f8ca-ced1-11e4-ac86-705681abff85"], ["created_at", "2015-03-20 07:21:32.201278"], ["updated_at", "2015-03-20 07:21:32.201278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/bbc93a3c-ced1-11e4-949e-705681abff85" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"bbc93a3c-ced1-11e4-949e-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:32.208532' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "BUuphnbFg7OcmjupsgD82QyTD014KMCMK1SceEdLUcc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.210508"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.212190"], ["id", "bbc68f1c-ced1-11e4-bf02-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "bbc93a3c-ced1-11e4-949e-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbc56e34-ced1-11e4-99c0-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbc7f8ca-ced1-11e4-ac86-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bbc56e34-ced1-11e4-99c0-705681abff85' LIMIT 1 [["organization_id", "bbc7f8ca-ced1-11e4-ac86-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbc56e34-ced1-11e4-99c0-705681abff85"]] Completed 200 OK in 13ms (Views: 1.9ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$exAim06y.ONHJgHy7tcn8uWXSQm42egQvmeWdd6sJ8ZcOwBeSvmpm"], ["created_at", "2015-03-20 07:21:32.227843"], ["updated_at", "2015-03-20 07:21:32.227843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$HU7D24LHqrIVRmyyD6y7me3AmQLFhUOp6ymu7EfpEFPLGylaMrAHa"], ["created_at", "2015-03-20 07:21:32.231968"], ["updated_at", "2015-03-20 07:21:32.231968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.233462"], ["user_id", "bbce04c2-ced1-11e4-aa43-705681abff85"], ["created_at", "2015-03-20 07:21:32.234264"], ["updated_at", "2015-03-20 07:21:32.234264"], ["token", "sGRgzeM50L7jPuSzfz6JAx7emCpVxgmXtNzCJt3_5vo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.238057"], ["updated_at", "2015-03-20 07:21:32.238057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbce04c2-ced1-11e4-aa43-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbcf9274-ced1-11e4-90e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbce04c2-ced1-11e4-aa43-705681abff85"], ["organization_id", "bbcf9274-ced1-11e4-90e4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.241507"], ["updated_at", "2015-03-20 07:21:32.241507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbcea2ce-ced1-11e4-b6bf-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbcf9274-ced1-11e4-90e4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbcea2ce-ced1-11e4-b6bf-705681abff85"], ["organization_id", "bbcf9274-ced1-11e4-90e4-705681abff85"], ["created_at", "2015-03-20 07:21:32.244606"], ["updated_at", "2015-03-20 07:21:32.244606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$YGinvKDSjeA27axPjoOUS.w/fK6tSc7NalbIo..jn0F02Ciz4ENHW"], ["created_at", "2015-03-20 07:21:32.254945"], ["updated_at", "2015-03-20 07:21:32.254945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$8U7Fm1RNLia9ZyL5NXwQF.pGrO3mS3eOhPlVnELcl9kag7YhSjAJu"], ["created_at", "2015-03-20 07:21:32.259755"], ["updated_at", "2015-03-20 07:21:32.259755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.261476"], ["user_id", "bbd22868-ced1-11e4-a810-705681abff85"], ["created_at", "2015-03-20 07:21:32.262292"], ["updated_at", "2015-03-20 07:21:32.262292"], ["token", "wfOFRBPjwUu7Q_OjmD1VKvLUA1t-grocdu8gaqw4-jg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.273713"], ["updated_at", "2015-03-20 07:21:32.273713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd22868-ced1-11e4-a810-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbd5079a-ced1-11e4-81f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbd22868-ced1-11e4-a810-705681abff85"], ["organization_id", "bbd5079a-ced1-11e4-81f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.277356"], ["updated_at", "2015-03-20 07:21:32.277356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd2e712-ced1-11e4-8400-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbd5079a-ced1-11e4-81f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbd2e712-ced1-11e4-8400-705681abff85"], ["organization_id", "bbd5079a-ced1-11e4-81f7-705681abff85"], ["created_at", "2015-03-20 07:21:32.280402"], ["updated_at", "2015-03-20 07:21:32.280402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bbd5079a-ced1-11e4-81f7-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"bbd5079a-ced1-11e4-81f7-705681abff85", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:32.284993' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "wfOFRBPjwUu7Q_OjmD1VKvLUA1t-grocdu8gaqw4-jg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.286647"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.287594"], ["id", "bbd34c66-ced1-11e4-bf29-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bbd5079a-ced1-11e4-81f7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbd22868-ced1-11e4-a810-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bbd22868-ced1-11e4-a810-705681abff85' LIMIT 1 [["organization_id", "bbd5079a-ced1-11e4-81f7-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "bbd5079a-ced1-11e4-81f7-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbd5079a-ced1-11e4-81f7-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbd22868-ced1-11e4-a810-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbd5079a-ced1-11e4-81f7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbd2e712-ced1-11e4-8400-705681abff85"]] Completed 200 OK in 13ms (Views: 4.7ms | ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$I/ZeZndTdvwKfMaWMZmRf.LNE5nFHSU/wG9Sl.VMZjFKIYNr6r9qC"], ["created_at", "2015-03-20 07:21:32.304383"], ["updated_at", "2015-03-20 07:21:32.304383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$lGg/gj6H5Zw55zGtuefbG.GL1KWmjh8uz.zmfgGO6MsoRgoAqVe7G"], ["created_at", "2015-03-20 07:21:32.308641"], ["updated_at", "2015-03-20 07:21:32.308641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.310226"], ["user_id", "bbd9b5e2-ced1-11e4-b6c5-705681abff85"], ["created_at", "2015-03-20 07:21:32.311031"], ["updated_at", "2015-03-20 07:21:32.311031"], ["token", "rJ75b6Dta2nJyg0SyqKCsx_IayPo16BixzBb8z3TB-Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.314291"], ["updated_at", "2015-03-20 07:21:32.314291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbd9b5e2-ced1-11e4-b6c5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbdb3340-ced1-11e4-858d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbd9b5e2-ced1-11e4-b6c5-705681abff85"], ["organization_id", "bbdb3340-ced1-11e4-858d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.317944"], ["updated_at", "2015-03-20 07:21:32.317944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbda5862-ced1-11e4-be65-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbdb3340-ced1-11e4-858d-705681abff85') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbda5862-ced1-11e4-be65-705681abff85"], ["organization_id", "bbdb3340-ced1-11e4-858d-705681abff85"], ["created_at", "2015-03-20 07:21:32.321160"], ["updated_at", "2015-03-20 07:21:32.321160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$WqctG3SKgIiH9ig0l2uuc.cNPS5fsPqNX1lrOCRlWl7J48Vw5LKW2"], ["created_at", "2015-03-20 07:21:32.331072"], ["updated_at", "2015-03-20 07:21:32.331072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$B1sVy6s49x3XABhzE3N1Mui9.163YJUfdc/mrW1uzCkDpA.ttGrHm"], ["created_at", "2015-03-20 07:21:32.335715"], ["updated_at", "2015-03-20 07:21:32.335715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.337652"], ["user_id", "bbddc556-ced1-11e4-ae60-705681abff85"], ["created_at", "2015-03-20 07:21:32.338496"], ["updated_at", "2015-03-20 07:21:32.338496"], ["token", "cqwqSPnqPoV_-IjZn8811zzhsVjZYJSk0rgt4czva5g"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.342018"], ["updated_at", "2015-03-20 07:21:32.342018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbddc556-ced1-11e4-ae60-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbdf700e-ced1-11e4-a5ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbddc556-ced1-11e4-ae60-705681abff85"], ["organization_id", "bbdf700e-ced1-11e4-a5ac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.345435"], ["updated_at", "2015-03-20 07:21:32.345435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbde8388-ced1-11e4-bc57-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbdf700e-ced1-11e4-a5ac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbde8388-ced1-11e4-bc57-705681abff85"], ["organization_id", "bbdf700e-ced1-11e4-a5ac-705681abff85"], ["created_at", "2015-03-20 07:21:32.348426"], ["updated_at", "2015-03-20 07:21:32.348426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:32.353602' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "cqwqSPnqPoV_-IjZn8811zzhsVjZYJSk0rgt4czva5g"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.355447"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.356551"], ["id", "bbdeee36-ced1-11e4-aeac-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbddc556-ced1-11e4-ae60-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bbddc556-ced1-11e4-ae60-705681abff85' LIMIT 1 [["organization_id", "bbdf700e-ced1-11e4-a5ac-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "bbdf700e-ced1-11e4-a5ac-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbdf700e-ced1-11e4-a5ac-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbddc556-ced1-11e4-ae60-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbdf700e-ced1-11e4-a5ac-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbde8388-ced1-11e4-bc57-705681abff85"]] Completed 200 OK in 13ms (Views: 3.9ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$llV.qOwLSLK8.//D9Q.e9uUd6QR4YjtkGr3B0BSjpZrs6HOH2eXDG"], ["created_at", "2015-03-20 07:21:32.372541"], ["updated_at", "2015-03-20 07:21:32.372541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$VRQYUM5CHPbi9kOlB/vituonQbM6Ipp4wO2inm8AFmnEV1O0MbFqG"], ["created_at", "2015-03-20 07:21:32.377177"], ["updated_at", "2015-03-20 07:21:32.377177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.378958"], ["user_id", "bbe417f8-ced1-11e4-95df-705681abff85"], ["created_at", "2015-03-20 07:21:32.379761"], ["updated_at", "2015-03-20 07:21:32.379761"], ["token", "punrZsp20pWOd78-JITLgvTp8sN2XJSV7Kmu48Qnbw0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.383166"], ["updated_at", "2015-03-20 07:21:32.383166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbe417f8-ced1-11e4-95df-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbe5b6b2-ced1-11e4-8269-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbe417f8-ced1-11e4-95df-705681abff85"], ["organization_id", "bbe5b6b2-ced1-11e4-8269-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.386443"], ["updated_at", "2015-03-20 07:21:32.386443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbe4cfcc-ced1-11e4-afa4-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbe5b6b2-ced1-11e4-8269-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbe4cfcc-ced1-11e4-afa4-705681abff85"], ["organization_id", "bbe5b6b2-ced1-11e4-8269-705681abff85"], ["created_at", "2015-03-20 07:21:32.389391"], ["updated_at", "2015-03-20 07:21:32.389391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$4UXn8P9EcmbxZvEpV1jt.Oz5pMD1THo1uhEuqkfXEYeyaF3S6Vm0K"], ["created_at", "2015-03-20 07:21:32.393860"], ["updated_at", "2015-03-20 07:21:32.393860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.395987"], ["user_id", "bbe763f4-ced1-11e4-9441-705681abff85"], ["created_at", "2015-03-20 07:21:32.396784"], ["updated_at", "2015-03-20 07:21:32.396784"], ["token", "cK9RpFtyQ_8ydbpUK_nRKEls-9CgJ1UzSq-Km50LbUA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'bbe5b6b2-ced1-11e4-8269-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "bbe5b6b2-ced1-11e4-8269-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.400611"], ["updated_at", "2015-03-20 07:21:32.400611"], ["token", "XJwNCwwhW9x8BAkdeqSFr7q6li3xlhWt-BrbmjHwL1c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$/bEHuVwLZhEkFWMhrAttzuQa0gSQLgX0mO62FYQkFOSdfWymMaXri"], ["created_at", "2015-03-20 07:21:32.412769"], ["updated_at", "2015-03-20 07:21:32.412769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$7C64d3lEqQXhZpJJA82jTeCqdKyZbWYPkD0mbFoE1XTqL.bULeEWu"], ["created_at", "2015-03-20 07:21:32.417412"], ["updated_at", "2015-03-20 07:21:32.417412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.419173"], ["user_id", "bbea3fe8-ced1-11e4-ad31-705681abff85"], ["created_at", "2015-03-20 07:21:32.420488"], ["updated_at", "2015-03-20 07:21:32.420488"], ["token", "PDR4aFbzGLZlqJmWrV7EnH1n_h-CpDqB1GP-AfYL7cs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.424637"], ["updated_at", "2015-03-20 07:21:32.424637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbea3fe8-ced1-11e4-ad31-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbec0c38-ced1-11e4-ae21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbea3fe8-ced1-11e4-ad31-705681abff85"], ["organization_id", "bbec0c38-ced1-11e4-ae21-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.427953"], ["updated_at", "2015-03-20 07:21:32.427953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbeaf366-ced1-11e4-96b0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbec0c38-ced1-11e4-ae21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbeaf366-ced1-11e4-96b0-705681abff85"], ["organization_id", "bbec0c38-ced1-11e4-ae21-705681abff85"], ["created_at", "2015-03-20 07:21:32.431092"], ["updated_at", "2015-03-20 07:21:32.431092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$yUDofEqfxZkfXGswRinnHu4omF5de65SRhHL8qR0cH4yu9ayzp1ze"], ["created_at", "2015-03-20 07:21:32.435950"], ["updated_at", "2015-03-20 07:21:32.435950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.438102"], ["user_id", "bbedd004-ced1-11e4-8594-705681abff85"], ["created_at", "2015-03-20 07:21:32.439131"], ["updated_at", "2015-03-20 07:21:32.439131"], ["token", "-mu3DlZeZkriRlCDebC2--JPouZVaYhNVw3SSx6_U7A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'bbec0c38-ced1-11e4-ae21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "bbec0c38-ced1-11e4-ae21-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.443831"], ["updated_at", "2015-03-20 07:21:32.443831"], ["token", "Ae8DgV0OukT8_7K0hQk8QfzQ8q0jxlekusgfJJsHSDw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Ae8DgV0OukT8_7K0hQk8QfzQ8q0jxlekusgfJJsHSDw", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:32.448941' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-mu3DlZeZkriRlCDebC2--JPouZVaYhNVw3SSx6_U7A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.450793"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.451997"], ["id", "bbee5970-ced1-11e4-bc3f-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbedd004-ced1-11e4-8594-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "Ae8DgV0OukT8_7K0hQk8QfzQ8q0jxlekusgfJJsHSDw"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bbec0c38-ced1-11e4-ae21-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbedd004-ced1-11e4-8594-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbec0c38-ced1-11e4-ae21-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "bbec0c38-ced1-11e4-ae21-705681abff85"], ["member_id", "bbedd004-ced1-11e4-8594-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.459618"], ["updated_at", "2015-03-20 07:21:32.459618"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "bbef023a-ced1-11e4-b97e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$louZRJsg0BsgGfE/VAX9VurMdDfBu6Xm5gveo8E4YryWPcvjkDbO6"], ["created_at", "2015-03-20 07:21:32.469283"], ["updated_at", "2015-03-20 07:21:32.469283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$.lBOGE8KYGbnJwUm2Aw8ru8.W/aaJFRUq7MeUw9IDd0tYHWaoW7he"], ["created_at", "2015-03-20 07:21:32.475575"], ["updated_at", "2015-03-20 07:21:32.475575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.477332"], ["user_id", "bbf2e0b2-ced1-11e4-b997-705681abff85"], ["created_at", "2015-03-20 07:21:32.478105"], ["updated_at", "2015-03-20 07:21:32.478105"], ["token", "1r2Hvfho1vkj0Hl2P8NSotj9VljLaqbp9c7OukLG8pw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.481825"], ["updated_at", "2015-03-20 07:21:32.481825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbf2e0b2-ced1-11e4-b997-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbf4c42c-ced1-11e4-88d3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbf2e0b2-ced1-11e4-b997-705681abff85"], ["organization_id", "bbf4c42c-ced1-11e4-88d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.485728"], ["updated_at", "2015-03-20 07:21:32.485728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbf3d4fe-ced1-11e4-b0a9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbf4c42c-ced1-11e4-88d3-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbf3d4fe-ced1-11e4-b0a9-705681abff85"], ["organization_id", "bbf4c42c-ced1-11e4-88d3-705681abff85"], ["created_at", "2015-03-20 07:21:32.489773"], ["updated_at", "2015-03-20 07:21:32.489773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$UZdPYUK30cxV1IVXo25qRuVbJ0duhyJAX2MmowMPPQr22Xg0ry5ga"], ["created_at", "2015-03-20 07:21:32.494644"], ["updated_at", "2015-03-20 07:21:32.494644"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.496466"], ["user_id", "bbf6ba98-ced1-11e4-9763-705681abff85"], ["created_at", "2015-03-20 07:21:32.497461"], ["updated_at", "2015-03-20 07:21:32.497461"], ["token", "YFccfZCGoCH2GFv3y6qjdgec3rnqf0p3mzW0t2VXVEc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'bbf4c42c-ced1-11e4-88d3-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "bbf4c42c-ced1-11e4-88d3-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.501695"], ["updated_at", "2015-03-20 07:21:32.501695"], ["token", "I336f03WFwr7_iGC4TIEqhW_Nlkl4hETk_9-HGYB28Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:32.507256' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YFccfZCGoCH2GFv3y6qjdgec3rnqf0p3mzW0t2VXVEc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.508813"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.510005"], ["id", "bbf7386a-ced1-11e4-badd-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbf6ba98-ced1-11e4-9763-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$kMNnftcCCORXjEc9XovVTOa8v227kl9ABtfEF7ywDYjfE1MdXSvmK"], ["created_at", "2015-03-20 07:21:32.522129"], ["updated_at", "2015-03-20 07:21:32.522129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.524182"], ["user_id", "bbfaf874-ced1-11e4-a5ca-705681abff85"], ["created_at", "2015-03-20 07:21:32.525009"], ["updated_at", "2015-03-20 07:21:32.525009"], ["token", "pZSaaTfIZgFZv5U3WqOX0lrDYxTsN8NnYuTQ2yXjKnM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.529464"], ["updated_at", "2015-03-20 07:21:32.529464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbfaf874-ced1-11e4-a5ca-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bbfc094e-ced1-11e4-b8dc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbfaf874-ced1-11e4-a5ca-705681abff85"], ["organization_id", "bbfc094e-ced1-11e4-b8dc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.533096"], ["updated_at", "2015-03-20 07:21:32.533096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'bbfc094e-ced1-11e4-b8dc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "bbfc094e-ced1-11e4-b8dc-705681abff85"], ["created_at", "2015-03-20 07:21:32.536842"], ["updated_at", "2015-03-20 07:21:32.536842"], ["token", "dKDROte5faaoir8MYnTDnidYfWZ9kfTh8Vj0I7lUWBI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$OXHShZ8u5oBD53ftwmhBz.TnIoq.NqwFFRGmCkbm3vssl.0AYC7VS"], ["created_at", "2015-03-20 07:21:32.553477"], ["updated_at", "2015-03-20 07:21:32.553477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.555693"], ["user_id", "bbffba9e-ced1-11e4-8979-705681abff85"], ["created_at", "2015-03-20 07:21:32.556555"], ["updated_at", "2015-03-20 07:21:32.556555"], ["token", "Jj8uoujjnfI3b3ZI8Z8XsEu25MnOf6ywjBECxHhunH0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.560103"], ["updated_at", "2015-03-20 07:21:32.560103"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbffba9e-ced1-11e4-8979-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc00c0f6-ced1-11e4-979d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbffba9e-ced1-11e4-8979-705681abff85"], ["organization_id", "bc00c0f6-ced1-11e4-979d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.563950"], ["updated_at", "2015-03-20 07:21:32.563950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'bc00c0f6-ced1-11e4-979d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "bc00c0f6-ced1-11e4-979d-705681abff85"], ["created_at", "2015-03-20 07:21:32.567851"], ["updated_at", "2015-03-20 07:21:32.567851"], ["token", "s3814PlklOAWfT-ttwjUw4dSBYL7jxccaNG0rrjfctM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/bc01eabc-ced1-11e4-86d7-705681abff85" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"bc01eabc-ced1-11e4-86d7-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:32.572866' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Jj8uoujjnfI3b3ZI8Z8XsEu25MnOf6ywjBECxHhunH0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.574380"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.575407"], ["id", "bc00362c-ced1-11e4-90d4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc01eabc-ced1-11e4-86d7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbffba9e-ced1-11e4-8979-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc00c0f6-ced1-11e4-979d-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbffba9e-ced1-11e4-8979-705681abff85' LIMIT 1 [["organization_id", "bc00c0f6-ced1-11e4-979d-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "bc01eabc-ced1-11e4-86d7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 15ms (ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$sKwV9KF0YxV.iLa3fi6ppuKnB4Owb2Zdor0chw0P0snyiVvTy2.d2"], ["created_at", "2015-03-20 07:21:32.594363"], ["updated_at", "2015-03-20 07:21:32.594363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.596570"], ["user_id", "bc060156-ced1-11e4-bb63-705681abff85"], ["created_at", "2015-03-20 07:21:32.597432"], ["updated_at", "2015-03-20 07:21:32.597432"], ["token", "Od19NXK6L1bx1PEwYoLGMo5-6twCK2hOQ5Jol0cGDBs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.601874"], ["updated_at", "2015-03-20 07:21:32.601874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc060156-ced1-11e4-bb63-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc071ce4-ced1-11e4-8d63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc060156-ced1-11e4-bb63-705681abff85"], ["organization_id", "bc071ce4-ced1-11e4-8d63-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.605780"], ["updated_at", "2015-03-20 07:21:32.605780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'bc071ce4-ced1-11e4-8d63-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "bc071ce4-ced1-11e4-8d63-705681abff85"], ["created_at", "2015-03-20 07:21:32.609482"], ["updated_at", "2015-03-20 07:21:32.609482"], ["token", "2H7yqwCjrNGwto_n2gHvg-53CVfs5pAzc2mJRYFMM7U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$PxW7YUOch00gHwxzvG4US.qgaI9tS01rfoBujY1cPvqYkGf9Hclzq"], ["created_at", "2015-03-20 07:21:32.621016"], ["updated_at", "2015-03-20 07:21:32.621016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.623319"], ["user_id", "bc0a148a-ced1-11e4-81be-705681abff85"], ["created_at", "2015-03-20 07:21:32.624110"], ["updated_at", "2015-03-20 07:21:32.624110"], ["token", "l9x0h51acNrBrldOeWogk0aVVuNRgKOOujUdoY6_GQc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.628267"], ["updated_at", "2015-03-20 07:21:32.628267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc0a148a-ced1-11e4-81be-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc0b1d1c-ced1-11e4-901f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc0a148a-ced1-11e4-81be-705681abff85"], ["organization_id", "bc0b1d1c-ced1-11e4-901f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.631703"], ["updated_at", "2015-03-20 07:21:32.631703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'bc0b1d1c-ced1-11e4-901f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "bc0b1d1c-ced1-11e4-901f-705681abff85"], ["created_at", "2015-03-20 07:21:32.635217"], ["updated_at", "2015-03-20 07:21:32.635217"], ["token", "mv7bE2cIU0c97OL6Ersvi5PUtTx_pt13-_3N7iUP7AQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bc0b1d1c-ced1-11e4-901f-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"bc0b1d1c-ced1-11e4-901f-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:32.642697' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "l9x0h51acNrBrldOeWogk0aVVuNRgKOOujUdoY6_GQc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.644202"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.645235"], ["id", "bc0a8b90-ced1-11e4-bbd8-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bc0b1d1c-ced1-11e4-901f-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc0a148a-ced1-11e4-81be-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc0b1d1c-ced1-11e4-901f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc0a148a-ced1-11e4-81be-705681abff85' LIMIT 1 [["organization_id", "bc0b1d1c-ced1-11e4-901f-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bc0b1d1c-ced1-11e4-901f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bc0b1d1c-ced1-11e4-901f-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.655307"], ["updated_at", "2015-03-20 07:21:32.655307"], ["token", "0oPMXYrG9JD5JhADumX9DD1ONo_FhAAUlhXpQJ8IQzE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: eb46f940-4da4-435b-9189-f5705a6b8f17) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc0f48d8-ced1-11e4-8d10-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc0f48d8-ced1-11e4-8d10-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [eb46f940-4da4-435b-9189-f5705a6b8f17] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc0f48d8-ced1-11e4-8d10-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [eb46f940-4da4-435b-9189-f5705a6b8f17] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc0b1d1c-ced1-11e4-901f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [eb46f940-4da4-435b-9189-f5705a6b8f17] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [eb46f940-4da4-435b-9189-f5705a6b8f17] Clubhouse::Mailer#invitation: processed outbound mail in 233.1ms [ActiveJob] [ActionMailer::DeliveryJob] [eb46f940-4da4-435b-9189-f5705a6b8f17] Sent mail to email@example.com (16.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [eb46f940-4da4-435b-9189-f5705a6b8f17] Date: Fri, 20 Mar 2015 00:21:32 -0700 From: from@example.com To: email@example.com Message-ID: <550bca7ce0e95_11be3ffe0cc65bc062aa@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/0oPMXYrG9JD5JhADumX9DD1ONo_FhAAUlhXpQJ8IQzE?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [eb46f940-4da4-435b-9189-f5705a6b8f17] Performed ActionMailer::DeliveryJob from Inline(mailers) in 250.65ms Completed 201 Created in 292ms (Views: 3.6ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$kuDsEquI0pBvKRdMxKH5/uwK48XxzJPgiSAeqqjLrEhvQwckzHnOy"], ["created_at", "2015-03-20 07:21:32.948189"], ["updated_at", "2015-03-20 07:21:32.948189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:32.951900"], ["user_id", "bc3c0d8c-ced1-11e4-916c-705681abff85"], ["created_at", "2015-03-20 07:21:32.953136"], ["updated_at", "2015-03-20 07:21:32.953136"], ["token", "YLLw4JcM1HlX0jjSkMGWfmUZmyPPL2L_sqD3sz08D5A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:32.963143"], ["updated_at", "2015-03-20 07:21:32.963143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc3c0d8c-ced1-11e4-916c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc3e4aac-ced1-11e4-93a5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc3c0d8c-ced1-11e4-916c-705681abff85"], ["organization_id", "bc3e4aac-ced1-11e4-93a5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:32.968908"], ["updated_at", "2015-03-20 07:21:32.968908"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'bc3e4aac-ced1-11e4-93a5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "bc3e4aac-ced1-11e4-93a5-705681abff85"], ["created_at", "2015-03-20 07:21:32.976785"], ["updated_at", "2015-03-20 07:21:32.976785"], ["token", "hPrNKq4LfdhpUjZ2ygB_HLDfLzu-2fP7Ad4TDnhc7iI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bc3e4aac-ced1-11e4-93a5-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:21:32 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"bc3e4aac-ced1-11e4-93a5-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:32.989476' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "YLLw4JcM1HlX0jjSkMGWfmUZmyPPL2L_sqD3sz08D5A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:32.991732"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:32.992900"], ["id", "bc3d10a6-ced1-11e4-8f94-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bc3e4aac-ced1-11e4-93a5-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc3c0d8c-ced1-11e4-916c-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc3e4aac-ced1-11e4-93a5-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc3c0d8c-ced1-11e4-916c-705681abff85' LIMIT 1 [["organization_id", "bc3e4aac-ced1-11e4-93a5-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bc3e4aac-ced1-11e4-93a5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bc3e4aac-ced1-11e4-93a5-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.004357"], ["updated_at", "2015-03-20 07:21:33.004357"], ["token", "VvEu1Wmyr3mk0hF2B0vTtBrC_2j_Jsc4p8TZ0jdCuOE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 96f4130b-247c-4912-b5ee-2c62c7c55c4a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc448da4-ced1-11e4-b015-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc448da4-ced1-11e4-b015-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [96f4130b-247c-4912-b5ee-2c62c7c55c4a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc448da4-ced1-11e4-b015-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [96f4130b-247c-4912-b5ee-2c62c7c55c4a] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc3e4aac-ced1-11e4-93a5-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [96f4130b-247c-4912-b5ee-2c62c7c55c4a] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [96f4130b-247c-4912-b5ee-2c62c7c55c4a] Clubhouse::Mailer#invitation: processed outbound mail in 1.9ms [ActiveJob] [ActionMailer::DeliveryJob] [96f4130b-247c-4912-b5ee-2c62c7c55c4a] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [96f4130b-247c-4912-b5ee-2c62c7c55c4a] Date: Fri, 20 Mar 2015 00:21:33 -0700 From: from@example.com To: email@example.com Message-ID: <550bca7d5499_11be3ffe0cc65bc063cf@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/VvEu1Wmyr3mk0hF2B0vTtBrC_2j_Jsc4p8TZ0jdCuOE?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [96f4130b-247c-4912-b5ee-2c62c7c55c4a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.09ms Completed 201 Created in 35ms (Views: 0.8ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$pCot.q7RMMEWefpi83ND9edGlWyuDsN/KDulL9KDB7Il4M6ujQh/i"], ["created_at", "2015-03-20 07:21:33.031579"], ["updated_at", "2015-03-20 07:21:33.031579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.033553"], ["user_id", "bc48b154-ced1-11e4-b833-705681abff85"], ["created_at", "2015-03-20 07:21:33.034497"], ["updated_at", "2015-03-20 07:21:33.034497"], ["token", "pEDb1VaR5_CXcnTgLx5FHJ2m9CFEbF01HSIhzqVs86Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.037857"], ["updated_at", "2015-03-20 07:21:33.037857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc48b154-ced1-11e4-b833-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc499aba-ced1-11e4-8b12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc48b154-ced1-11e4-b833-705681abff85"], ["organization_id", "bc499aba-ced1-11e4-8b12-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.041170"], ["updated_at", "2015-03-20 07:21:33.041170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'bc499aba-ced1-11e4-8b12-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "bc499aba-ced1-11e4-8b12-705681abff85"], ["created_at", "2015-03-20 07:21:33.044504"], ["updated_at", "2015-03-20 07:21:33.044504"], ["token", "XDggxnasCIolBsda6_tES8gyIjMHUn_K2l_crrc40b8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bc499aba-ced1-11e4-8b12-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"bc499aba-ced1-11e4-8b12-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:33.049569' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pEDb1VaR5_CXcnTgLx5FHJ2m9CFEbF01HSIhzqVs86Q"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:33.050924"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:33.052764"], ["id", "bc4921b6-ced1-11e4-85f0-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bc499aba-ced1-11e4-8b12-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc48b154-ced1-11e4-b833-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc499aba-ced1-11e4-8b12-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc48b154-ced1-11e4-b833-705681abff85' LIMIT 1 [["organization_id", "bc499aba-ced1-11e4-8b12-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'bc499aba-ced1-11e4-8b12-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$TJGWQQ9yBisNWNDNIy./tuxQXb0f./.k796G5lQPcIqms3i2sJkqC"], ["created_at", "2015-03-20 07:21:33.069337"], ["updated_at", "2015-03-20 07:21:33.069337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.071234"], ["user_id", "bc4e71e8-ced1-11e4-b4c9-705681abff85"], ["created_at", "2015-03-20 07:21:33.072137"], ["updated_at", "2015-03-20 07:21:33.072137"], ["token", "2FLor0bqLo-Iwvw_fF_NugxhO4B2heaGt7KimFZQfpM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.076486"], ["updated_at", "2015-03-20 07:21:33.076486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc4e71e8-ced1-11e4-b4c9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc4f82ae-ced1-11e4-bd20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc4e71e8-ced1-11e4-b4c9-705681abff85"], ["organization_id", "bc4f82ae-ced1-11e4-bd20-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.079784"], ["updated_at", "2015-03-20 07:21:33.079784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'bc4f82ae-ced1-11e4-bd20-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "bc4f82ae-ced1-11e4-bd20-705681abff85"], ["created_at", "2015-03-20 07:21:33.083011"], ["updated_at", "2015-03-20 07:21:33.083011"], ["token", "X0Sp8_k9HfhAci92jnaFQJSedhk6GUOZ-LRwCmrXlwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$H5kkwiIgB9fZ9qsPYtKx7OMADiNba2dhUd45GV6Ud7kotsdE8NSR6"], ["created_at", "2015-03-20 07:21:33.093307"], ["updated_at", "2015-03-20 07:21:33.093307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.094994"], ["user_id", "bc521438-ced1-11e4-9ba0-705681abff85"], ["created_at", "2015-03-20 07:21:33.095754"], ["updated_at", "2015-03-20 07:21:33.095754"], ["token", "5xDu-5IYEIHAJgs4YdMvPrsObzKYTWtWtRi4z3D6tqc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.099093"], ["updated_at", "2015-03-20 07:21:33.099093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc521438-ced1-11e4-9ba0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc52f2f4-ced1-11e4-9aba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc521438-ced1-11e4-9ba0-705681abff85"], ["organization_id", "bc52f2f4-ced1-11e4-9aba-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.102332"], ["updated_at", "2015-03-20 07:21:33.102332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'bc52f2f4-ced1-11e4-9aba-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "bc52f2f4-ced1-11e4-9aba-705681abff85"], ["created_at", "2015-03-20 07:21:33.105537"], ["updated_at", "2015-03-20 07:21:33.105537"], ["token", "SWdJ4nZzWjks-43bfP347vCWaQw75_p0WCj9ZtFfaqg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/bc53f262-ced1-11e4-b30d-705681abff85" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"bc53f262-ced1-11e4-b30d-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:33.110706' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5xDu-5IYEIHAJgs4YdMvPrsObzKYTWtWtRi4z3D6tqc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:33.112502"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:33.113447"], ["id", "bc527860-ced1-11e4-b02a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc53f262-ced1-11e4-b30d-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc521438-ced1-11e4-9ba0-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc52f2f4-ced1-11e4-9aba-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc521438-ced1-11e4-9ba0-705681abff85' LIMIT 1 [["organization_id", "bc52f2f4-ced1-11e4-9aba-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."id" != 'bc53f262-ced1-11e4-b30d-705681abff85' AND "clubhouse_invitations"."organization_id" = 'bc52f2f4-ced1-11e4-9aba-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 07:21:33.119699"], ["id", "bc53f262-ced1-11e4-b30d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$RcRzwguVxkHchLrU6BHwju/f6nRn0K7rwcrmVOnMt5dw4Q85OY2x."], ["created_at", "2015-03-20 07:21:33.129148"], ["updated_at", "2015-03-20 07:21:33.129148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.130835"], ["user_id", "bc578e7c-ced1-11e4-8e18-705681abff85"], ["created_at", "2015-03-20 07:21:33.131670"], ["updated_at", "2015-03-20 07:21:33.131670"], ["token", "ErH46qlpdfTp4OEEhLtKJ_4YLnQKHtKu8R96zMPQfmM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.135457"], ["updated_at", "2015-03-20 07:21:33.135457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc578e7c-ced1-11e4-8e18-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc588052-ced1-11e4-bd60-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc578e7c-ced1-11e4-8e18-705681abff85"], ["organization_id", "bc588052-ced1-11e4-bd60-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.138906"], ["updated_at", "2015-03-20 07:21:33.138906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'bc588052-ced1-11e4-bd60-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "bc588052-ced1-11e4-bd60-705681abff85"], ["created_at", "2015-03-20 07:21:33.143204"], ["updated_at", "2015-03-20 07:21:33.143204"], ["token", "67PCe7D3wj-ZYIwHvi9M-hHdl_Sxhm_4TSkgOXg-5Lw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$eYBM8NLz79JQczHbecdVhe2SQgDHO.KllzEoQ94sP1hT7xn01kFk6"], ["created_at", "2015-03-20 07:21:33.153431"], ["updated_at", "2015-03-20 07:21:33.153431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.154953"], ["user_id", "bc5b3f40-ced1-11e4-a83c-705681abff85"], ["created_at", "2015-03-20 07:21:33.155747"], ["updated_at", "2015-03-20 07:21:33.155747"], ["token", "_UZdypptdyGLYt8gXUzPbR4JZq34Q64NrhnHOKL6Ja4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.160276"], ["updated_at", "2015-03-20 07:21:33.160276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc5b3f40-ced1-11e4-a83c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc5c4fca-ced1-11e4-93db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc5b3f40-ced1-11e4-a83c-705681abff85"], ["organization_id", "bc5c4fca-ced1-11e4-93db-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.163806"], ["updated_at", "2015-03-20 07:21:33.163806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'bc5c4fca-ced1-11e4-93db-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "bc5c4fca-ced1-11e4-93db-705681abff85"], ["created_at", "2015-03-20 07:21:33.167013"], ["updated_at", "2015-03-20 07:21:33.167013"], ["token", "tY7C619PkrCqelOQuKsrFGZYJoERflk4gtK1iqtYwVc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/bc5d5398-ced1-11e4-a583-705681abff85" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"bc5d5398-ced1-11e4-a583-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:33.171741' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_UZdypptdyGLYt8gXUzPbR4JZq34Q64NrhnHOKL6Ja4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:33.173396"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:33.174776"], ["id", "bc5ba5ca-ced1-11e4-b016-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc5d5398-ced1-11e4-a583-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc5b3f40-ced1-11e4-a83c-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc5c4fca-ced1-11e4-93db-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc5b3f40-ced1-11e4-a83c-705681abff85' LIMIT 1 [["organization_id", "bc5c4fca-ced1-11e4-93db-705681abff85"]] Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.4ms)  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$59byI918NEGoH/nQV4fo0uvc8BIjg4HCb0y3Dw456m8P.OJ7kkVRS"], ["created_at", "2015-03-20 07:21:33.193966"], ["updated_at", "2015-03-20 07:21:33.193966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.196594"], ["user_id", "bc618418-ced1-11e4-bd19-705681abff85"], ["created_at", "2015-03-20 07:21:33.197943"], ["updated_at", "2015-03-20 07:21:33.197943"], ["token", "Je8V6oweIXWlPlVlxttRLjDny6fYkPJG1O0ziAoCl1Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.203236"], ["updated_at", "2015-03-20 07:21:33.203236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc618418-ced1-11e4-bd19-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc62ed12-ced1-11e4-b96d-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc618418-ced1-11e4-bd19-705681abff85"], ["organization_id", "bc62ed12-ced1-11e4-b96d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.208481"], ["updated_at", "2015-03-20 07:21:33.208481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'bc62ed12-ced1-11e4-b96d-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "bc62ed12-ced1-11e4-b96d-705681abff85"], ["created_at", "2015-03-20 07:21:33.213598"], ["updated_at", "2015-03-20 07:21:33.213598"], ["token", "mThqYu7jgJH115HaFUgwvihCjRcy9jubVQx_OO90uUw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$DjcgiiHNeRA0FMd6la16.eHI8feYXkzts06EVpCIBnhdo5MWsDWkC"], ["created_at", "2015-03-20 07:21:33.221965"], ["updated_at", "2015-03-20 07:21:33.221965"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.228996"], ["updated_at", "2015-03-20 07:21:33.228996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc65eecc-ced1-11e4-9162-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc66db84-ced1-11e4-b7c5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc65eecc-ced1-11e4-9162-705681abff85"], ["organization_id", "bc66db84-ced1-11e4-b7c5-705681abff85"], ["created_at", "2015-03-20 07:21:33.234682"], ["updated_at", "2015-03-20 07:21:33.234682"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$.Iz5mhR88xluy20PWvfazei7C7UdJ2h5boL6aTELwoA6O07o2ngGi"], ["created_at", "2015-03-20 07:21:33.254527"], ["updated_at", "2015-03-20 07:21:33.254527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.256422"], ["user_id", "bc6ab2f4-ced1-11e4-8b1f-705681abff85"], ["created_at", "2015-03-20 07:21:33.257315"], ["updated_at", "2015-03-20 07:21:33.257315"], ["token", "dqrkhdc8ZFzGUT6rzEg7R3ER3JD9TVk-HDtJUZ-fj0k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.261310"], ["updated_at", "2015-03-20 07:21:33.261310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc6ab2f4-ced1-11e4-8b1f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc6bb97e-ced1-11e4-a157-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc6ab2f4-ced1-11e4-8b1f-705681abff85"], ["organization_id", "bc6bb97e-ced1-11e4-a157-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.265002"], ["updated_at", "2015-03-20 07:21:33.265002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'bc6bb97e-ced1-11e4-a157-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "bc6bb97e-ced1-11e4-a157-705681abff85"], ["created_at", "2015-03-20 07:21:33.269047"], ["updated_at", "2015-03-20 07:21:33.269047"], ["token", "7JMYlrQEoZSCBFELl5Vrz6X1nV9wLYc7S-ImxrfhK7w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$CxLnCICD9Y2MgarZ1bxxB.BlWz44PXX9syCn5I.B6H6A9qgSY42WW"], ["created_at", "2015-03-20 07:21:33.275021"], ["updated_at", "2015-03-20 07:21:33.275021"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.279599"], ["updated_at", "2015-03-20 07:21:33.279599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc6ddb82-ced1-11e4-8238-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc6e8726-ced1-11e4-a1e9-705681abff85') LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc6ddb82-ced1-11e4-8238-705681abff85"], ["organization_id", "bc6e8726-ced1-11e4-a1e9-705681abff85"], ["created_at", "2015-03-20 07:21:33.284648"], ["updated_at", "2015-03-20 07:21:33.284648"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bc6bb97e-ced1-11e4-a157-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"bc6bb97e-ced1-11e4-a157-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:33.292393' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dqrkhdc8ZFzGUT6rzEg7R3ER3JD9TVk-HDtJUZ-fj0k"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:33.293900"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:33.294831"], ["id", "bc6b2aae-ced1-11e4-804c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bc6bb97e-ced1-11e4-a157-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc6ab2f4-ced1-11e4-8b1f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc6ab2f4-ced1-11e4-8b1f-705681abff85' LIMIT 1 [["organization_id", "bc6bb97e-ced1-11e4-a157-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "bc6bb97e-ced1-11e4-a157-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc6bb97e-ced1-11e4-a157-705681abff85"]] Completed 200 OK in 12ms (Views: 2.6ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$u5TEwfkcSuML6frohaHqOeSvuygPm35iXOZC7HH9SMQDy28IGUjWy"], ["created_at", "2015-03-20 07:21:33.310167"], ["updated_at", "2015-03-20 07:21:33.310167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.311786"], ["user_id", "bc732a10-ced1-11e4-b3f0-705681abff85"], ["created_at", "2015-03-20 07:21:33.312540"], ["updated_at", "2015-03-20 07:21:33.312540"], ["token", "vakb0xQoWhaR2UUDofhCKasjbzdH6v-PEuD_QYDyLJk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.315743"], ["updated_at", "2015-03-20 07:21:33.315743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc732a10-ced1-11e4-b3f0-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc740232-ced1-11e4-bf91-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc732a10-ced1-11e4-b3f0-705681abff85"], ["organization_id", "bc740232-ced1-11e4-bf91-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.319203"], ["updated_at", "2015-03-20 07:21:33.319203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = 'bc740232-ced1-11e4-bf91-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "bc740232-ced1-11e4-bf91-705681abff85"], ["created_at", "2015-03-20 07:21:33.322681"], ["updated_at", "2015-03-20 07:21:33.322681"], ["token", "66gJ1NQWY58QzqOqC0gT6lQQFpHN4bQY38yEyFP7ibs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$1xt3BNeyDc5XKGFv40A/0.eTpvPiA.RS6QvCJ0bUw2dyNPZ9DtOdy"], ["created_at", "2015-03-20 07:21:33.327468"], ["updated_at", "2015-03-20 07:21:33.327468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.330499"], ["updated_at", "2015-03-20 07:21:33.330499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc75cd9c-ced1-11e4-bc62-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc764718-ced1-11e4-96d6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc75cd9c-ced1-11e4-bc62-705681abff85"], ["organization_id", "bc764718-ced1-11e4-96d6-705681abff85"], ["created_at", "2015-03-20 07:21:33.334045"], ["updated_at", "2015-03-20 07:21:33.334045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$VcTIL1JJM1pIXdCy8i4UjuAMWc1dIaDOuGZc8vqK10jfeHObGycoy"], ["created_at", "2015-03-20 07:21:33.344535"], ["updated_at", "2015-03-20 07:21:33.344535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.346153"], ["user_id", "bc786b74-ced1-11e4-82cc-705681abff85"], ["created_at", "2015-03-20 07:21:33.347189"], ["updated_at", "2015-03-20 07:21:33.347189"], ["token", "odx8H3CqeoWlqr1RLfh7lxxPJLiu_cbhen_e3VDkZ1c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.351208"], ["updated_at", "2015-03-20 07:21:33.351208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc786b74-ced1-11e4-82cc-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc796e5c-ced1-11e4-b07b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc786b74-ced1-11e4-82cc-705681abff85"], ["organization_id", "bc796e5c-ced1-11e4-b07b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.354622"], ["updated_at", "2015-03-20 07:21:33.354622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'bc796e5c-ced1-11e4-b07b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "bc796e5c-ced1-11e4-b07b-705681abff85"], ["created_at", "2015-03-20 07:21:33.357967"], ["updated_at", "2015-03-20 07:21:33.357967"], ["token", "PYL-WnqL1-wdSs-a-pDp2VGKfFOXFdFxfSzILZsn7mM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$YPfnptPY.4X7PGWjjSkDz.l3kRvIGx21Wa3Q8sIu.C/AsIPd4HYae"], ["created_at", "2015-03-20 07:21:33.363252"], ["updated_at", "2015-03-20 07:21:33.363252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.366577"], ["updated_at", "2015-03-20 07:21:33.366577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7b4236-ced1-11e4-b0df-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc7bc332-ced1-11e4-9056-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc7b4236-ced1-11e4-b0df-705681abff85"], ["organization_id", "bc7bc332-ced1-11e4-9056-705681abff85"], ["created_at", "2015-03-20 07:21:33.369661"], ["updated_at", "2015-03-20 07:21:33.369661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:33.374079' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "odx8H3CqeoWlqr1RLfh7lxxPJLiu_cbhen_e3VDkZ1c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:33.375462"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:33.376402"], ["id", "bc78ea4a-ced1-11e4-a14b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc786b74-ced1-11e4-82cc-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc786b74-ced1-11e4-82cc-705681abff85' LIMIT 1 [["organization_id", "bc796e5c-ced1-11e4-b07b-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "bc796e5c-ced1-11e4-b07b-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc796e5c-ced1-11e4-b07b-705681abff85"]] Completed 200 OK in 10ms (Views: 2.1ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$YPZFaqOFOtH/LoTNyQ9wdOQgeFMR6iG2Al673ZPBw043ZNQm9pGIG"], ["created_at", "2015-03-20 07:21:33.389644"], ["updated_at", "2015-03-20 07:21:33.389644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.391319"], ["user_id", "bc7f4bce-ced1-11e4-8554-705681abff85"], ["created_at", "2015-03-20 07:21:33.392188"], ["updated_at", "2015-03-20 07:21:33.392188"], ["token", "TW4lwnPz7XKD5aW_tm8xh4vBASTaPNnglg3AmJrbrwM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.396336"], ["updated_at", "2015-03-20 07:21:33.396336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7f4bce-ced1-11e4-8554-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc804fe2-ced1-11e4-8eed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc7f4bce-ced1-11e4-8554-705681abff85"], ["organization_id", "bc804fe2-ced1-11e4-8eed-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.399531"], ["updated_at", "2015-03-20 07:21:33.399531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = 'bc804fe2-ced1-11e4-8eed-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "bc804fe2-ced1-11e4-8eed-705681abff85"], ["created_at", "2015-03-20 07:21:33.402939"], ["updated_at", "2015-03-20 07:21:33.402939"], ["token", "ziXBMhUcj6G2PiUqLpMjZdaDaONVkwK-NwAr2MSqea0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$/qEtoxlRBCxAUj7uzZ0fCOnonvpS5EvXDELUol41Xl17FhzhAPjkG"], ["created_at", "2015-03-20 07:21:33.413488"], ["updated_at", "2015-03-20 07:21:33.413488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.415138"], ["user_id", "bc82f012-ced1-11e4-8933-705681abff85"], ["created_at", "2015-03-20 07:21:33.415941"], ["updated_at", "2015-03-20 07:21:33.415941"], ["token", "vPlGKL7A5CPhiMhGIooKYiclL9EnvhlE51k8S-FRyGQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.419183"], ["updated_at", "2015-03-20 07:21:33.419183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc82f012-ced1-11e4-8933-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc83ce7e-ced1-11e4-b94f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc82f012-ced1-11e4-8933-705681abff85"], ["organization_id", "bc83ce7e-ced1-11e4-b94f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.422632"], ["updated_at", "2015-03-20 07:21:33.422632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = 'bc83ce7e-ced1-11e4-b94f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "bc83ce7e-ced1-11e4-b94f-705681abff85"], ["created_at", "2015-03-20 07:21:33.425997"], ["updated_at", "2015-03-20 07:21:33.425997"], ["token", "GRRAu20feiZTrJvEm125y7eITeeLFMs2kpd4OKCWWTk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:33.430843' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vPlGKL7A5CPhiMhGIooKYiclL9EnvhlE51k8S-FRyGQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:33.432382"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:33.433324"], ["id", "bc83537c-ced1-11e4-b23a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc82f012-ced1-11e4-8933-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc83ce7e-ced1-11e4-b94f-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc82f012-ced1-11e4-8933-705681abff85' LIMIT 1 [["organization_id", "bc83ce7e-ced1-11e4-b94f-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bc83ce7e-ced1-11e4-b94f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bc83ce7e-ced1-11e4-b94f-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.440395"], ["updated_at", "2015-03-20 07:21:33.440395"], ["token", "0vaYvSJ1cfyCrr5HKSMB_VFuLBt13IuHwbIE7fl0cHs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5d938afd-9b5f-45d3-8b36-20a7c9eb9316) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc870f94-ced1-11e4-82a6-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc870f94-ced1-11e4-82a6-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5d938afd-9b5f-45d3-8b36-20a7c9eb9316] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc870f94-ced1-11e4-82a6-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [5d938afd-9b5f-45d3-8b36-20a7c9eb9316] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc83ce7e-ced1-11e4-b94f-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [5d938afd-9b5f-45d3-8b36-20a7c9eb9316] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [5d938afd-9b5f-45d3-8b36-20a7c9eb9316] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [5d938afd-9b5f-45d3-8b36-20a7c9eb9316] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [5d938afd-9b5f-45d3-8b36-20a7c9eb9316] Date: Fri, 20 Mar 2015 00:21:33 -0700 From: from@example.com To: email@example.com Message-ID: <550bca7d6d695_11be3ffe0cc65bc06466@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/0vaYvSJ1cfyCrr5HKSMB_VFuLBt13IuHwbIE7fl0cHs?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5d938afd-9b5f-45d3-8b36-20a7c9eb9316] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.4ms Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$uJs6tXZF6NmVHKe1qOKV0uQtHNa289ZupadpOGDfxVVPoz6KhbpUa"], ["created_at", "2015-03-20 07:21:33.457290"], ["updated_at", "2015-03-20 07:21:33.457290"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.459542"], ["user_id", "bc89a13c-ced1-11e4-b9c3-705681abff85"], ["created_at", "2015-03-20 07:21:33.460857"], ["updated_at", "2015-03-20 07:21:33.460857"], ["token", "gUNig17-lOb4byJ94hcnKhjeERWdZFVoyQWYnHTXf1w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.464378"], ["updated_at", "2015-03-20 07:21:33.464378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc89a13c-ced1-11e4-b9c3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc8aaf0a-ced1-11e4-b660-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc89a13c-ced1-11e4-b9c3-705681abff85"], ["organization_id", "bc8aaf0a-ced1-11e4-b660-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.467579"], ["updated_at", "2015-03-20 07:21:33.467579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = 'bc8aaf0a-ced1-11e4-b660-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "bc8aaf0a-ced1-11e4-b660-705681abff85"], ["created_at", "2015-03-20 07:21:33.471120"], ["updated_at", "2015-03-20 07:21:33.471120"], ["token", "C-r-5t2hsAkgeRX0DYEZZkN0WsCZKVjJ0KuHWhSMGCU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:33.476064' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "gUNig17-lOb4byJ94hcnKhjeERWdZFVoyQWYnHTXf1w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:33.477519"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:33.478507"], ["id", "bc8a33ae-ced1-11e4-b40c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc89a13c-ced1-11e4-b9c3-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc8aaf0a-ced1-11e4-b660-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc89a13c-ced1-11e4-b9c3-705681abff85' LIMIT 1 [["organization_id", "bc8aaf0a-ced1-11e4-b660-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bc8aaf0a-ced1-11e4-b660-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bc8aaf0a-ced1-11e4-b660-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.485775"], ["updated_at", "2015-03-20 07:21:33.485775"], ["token", "RrKcxouWl8NqX17ZYgQXfiiWwo4depbyOZFWAhPsV3k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b1011cb2-6ec6-4d78-90da-80bc00ed25e1) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc8dfb6a-ced1-11e4-9c64-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc8dfb6a-ced1-11e4-9c64-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b1011cb2-6ec6-4d78-90da-80bc00ed25e1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc8dfb6a-ced1-11e4-9c64-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [b1011cb2-6ec6-4d78-90da-80bc00ed25e1] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc8aaf0a-ced1-11e4-b660-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b1011cb2-6ec6-4d78-90da-80bc00ed25e1] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [b1011cb2-6ec6-4d78-90da-80bc00ed25e1] Clubhouse::Mailer#invitation: processed outbound mail in 1.8ms [ActiveJob] [ActionMailer::DeliveryJob] [b1011cb2-6ec6-4d78-90da-80bc00ed25e1] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [b1011cb2-6ec6-4d78-90da-80bc00ed25e1] Date: Fri, 20 Mar 2015 00:21:33 -0700 From: from@example.com To: email@example.com Message-ID: <550bca7d78344_11be3ffe0cc65bc0652d@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/RrKcxouWl8NqX17ZYgQXfiiWwo4depbyOZFWAhPsV3k?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b1011cb2-6ec6-4d78-90da-80bc00ed25e1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.83ms Completed 201 Created in 19ms (Views: 0.9ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$/sp2aIuu26kWYSQxIdfmnuiTRg8P3XZp0ljFAlt8kUJonSGmfzI1S"], ["created_at", "2015-03-20 07:21:33.500619"], ["updated_at", "2015-03-20 07:21:33.500619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:21:33.502396"], ["user_id", "bc9038c6-ced1-11e4-adbb-705681abff85"], ["created_at", "2015-03-20 07:21:33.503542"], ["updated_at", "2015-03-20 07:21:33.503542"], ["token", "9zoF2LO5GnPfK_YIcl0AhYmvLqeEy2pmJpOWfxfJxfQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.507295"], ["updated_at", "2015-03-20 07:21:33.507295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9038c6-ced1-11e4-adbb-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc913e1a-ced1-11e4-ad08-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc9038c6-ced1-11e4-adbb-705681abff85"], ["organization_id", "bc913e1a-ced1-11e4-ad08-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.511498"], ["updated_at", "2015-03-20 07:21:33.511498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'bc913e1a-ced1-11e4-ad08-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "bc913e1a-ced1-11e4-ad08-705681abff85"], ["created_at", "2015-03-20 07:21:33.515197"], ["updated_at", "2015-03-20 07:21:33.515197"], ["token", "43iFeUPwEh4Wz3eOe1Wn4mCZVlXlIEiy8UCCqqWYEFk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:21:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:21:33.519876' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9zoF2LO5GnPfK_YIcl0AhYmvLqeEy2pmJpOWfxfJxfQ"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:21:33.521700"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:21:33.523520"], ["id", "bc90b0ee-ced1-11e4-92a2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc9038c6-ced1-11e4-adbb-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc913e1a-ced1-11e4-ad08-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc9038c6-ced1-11e4-adbb-705681abff85' LIMIT 1 [["organization_id", "bc913e1a-ced1-11e4-ad08-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'bc913e1a-ced1-11e4-ad08-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$lpds./Gj9FMJYdK2jqbZ8uNhOQEe8nKaLe6GQwJIW.yAvZBo2ZazC"], ["created_at", "2015-03-20 07:21:33.537933"], ["updated_at", "2015-03-20 07:21:33.537933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.541671"], ["updated_at", "2015-03-20 07:21:33.541671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc95ea78-ced1-11e4-b90e-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc96803c-ced1-11e4-b016-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc95ea78-ced1-11e4-b90e-705681abff85"], ["organization_id", "bc96803c-ced1-11e4-b016-705681abff85"], ["created_at", "2015-03-20 07:21:33.545189"], ["updated_at", "2015-03-20 07:21:33.545189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bc95ea78-ced1-11e4-b90e-705681abff85' LIMIT 1 [["organization_id", "bc96803c-ced1-11e4-b016-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$52KrFL49z2V3HmDdQlykK.9itxGb9JJx3.rX44XaKN8k2SE1IMf4W"], ["created_at", "2015-03-20 07:21:33.552805"], ["updated_at", "2015-03-20 07:21:33.552805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.556121"], ["updated_at", "2015-03-20 07:21:33.556121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc983274-ced1-11e4-b7e7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc98b258-ced1-11e4-93bb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc983274-ced1-11e4-b7e7-705681abff85"], ["organization_id", "bc98b258-ced1-11e4-93bb-705681abff85"], ["created_at", "2015-03-20 07:21:33.559946"], ["updated_at", "2015-03-20 07:21:33.559946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$qOqw5Y2roH6VginMzf7vZuvDFvJj9nPZgXonEuZE2rix7Iv3pVEYO"], ["created_at", "2015-03-20 07:21:33.567464"], ["updated_at", "2015-03-20 07:21:33.567464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.570578"], ["updated_at", "2015-03-20 07:21:33.570578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9a6c92-ced1-11e4-8f40-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc9ae528-ced1-11e4-89c5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc9a6c92-ced1-11e4-8f40-705681abff85"], ["organization_id", "bc9ae528-ced1-11e4-89c5-705681abff85"], ["created_at", "2015-03-20 07:21:33.573712"], ["updated_at", "2015-03-20 07:21:33.573712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$oTajKxY5NdhXIQRbYrmDnezKOXhemhMdiFxw39lGITu.UYBG0BEf2"], ["created_at", "2015-03-20 07:21:33.579395"], ["updated_at", "2015-03-20 07:21:33.579395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.582425"], ["updated_at", "2015-03-20 07:21:33.582425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9c3e5a-ced1-11e4-94d7-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc9cb204-ced1-11e4-93f6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc9c3e5a-ced1-11e4-94d7-705681abff85"], ["organization_id", "bc9cb204-ced1-11e4-93f6-705681abff85"], ["created_at", "2015-03-20 07:21:33.585624"], ["updated_at", "2015-03-20 07:21:33.585624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc9c3e5a-ced1-11e4-94d7-705681abff85' LIMIT 1 [["organization_id", "bc9cb204-ced1-11e4-93f6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$maG6hSSAJvOEcs.MePhAW.px3TlGCjpMhv43fIIf4h/afXrSz7rtO"], ["created_at", "2015-03-20 07:21:33.592454"], ["updated_at", "2015-03-20 07:21:33.592454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.595807"], ["updated_at", "2015-03-20 07:21:33.595807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9e3fac-ced1-11e4-b994-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bc9ebd38-ced1-11e4-af52-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc9e3fac-ced1-11e4-b994-705681abff85"], ["organization_id", "bc9ebd38-ced1-11e4-af52-705681abff85"], ["created_at", "2015-03-20 07:21:33.599295"], ["updated_at", "2015-03-20 07:21:33.599295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc9e3fac-ced1-11e4-b994-705681abff85' LIMIT 1 [["organization_id", "bc9ebd38-ced1-11e4-af52-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$h9Uy3FtfRMWpwgBR044j3uSF4WazSRBnM6ORSTJ6KiODinUNZuFq6"], ["created_at", "2015-03-20 07:21:33.606391"], ["updated_at", "2015-03-20 07:21:33.606391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$6XG20XRSzIeNGjvKo8WRtO1yB3CH1Qc4ahc8G5Gp8WqPIeT5maAGG"], ["created_at", "2015-03-20 07:21:33.614346"], ["updated_at", "2015-03-20 07:21:33.614346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.618284"], ["updated_at", "2015-03-20 07:21:33.618284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca1a246-ced1-11e4-8e22-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca22c20-ced1-11e4-94f8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca1a246-ced1-11e4-8e22-705681abff85"], ["organization_id", "bca22c20-ced1-11e4-94f8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.621609"], ["updated_at", "2015-03-20 07:21:33.621609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bca1a246-ced1-11e4-8e22-705681abff85' LIMIT 1 [["organization_id", "bca22c20-ced1-11e4-94f8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$PzwVJt2ZZ99BPNVclYlHJOg6kVSLG0RNQqPNQvhwkAeWYjz/w9jGe"], ["created_at", "2015-03-20 07:21:33.628727"], ["updated_at", "2015-03-20 07:21:33.628727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.632232"], ["updated_at", "2015-03-20 07:21:33.632232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca3c6ac-ced1-11e4-a19f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca451ee-ced1-11e4-a12f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca3c6ac-ced1-11e4-a19f-705681abff85"], ["organization_id", "bca451ee-ced1-11e4-a12f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.635660"], ["updated_at", "2015-03-20 07:21:33.635660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$J1G6eGQ6SBSOIzdtBFhepOe.04n6SKUIVeoXy6G0m1yncodyb40W2"], ["created_at", "2015-03-20 07:21:33.641379"], ["updated_at", "2015-03-20 07:21:33.641379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.644810"], ["updated_at", "2015-03-20 07:21:33.644810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca5b3cc-ced1-11e4-a4af-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca6467a-ced1-11e4-8e99-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca5b3cc-ced1-11e4-a4af-705681abff85"], ["organization_id", "bca6467a-ced1-11e4-8e99-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.650566"], ["updated_at", "2015-03-20 07:21:33.650566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$dnRc9MgvpXrPDlLi5cq4MuclNF64.334P9OxyaKdx62KbR4b9/HHG"], ["created_at", "2015-03-20 07:21:33.657254"], ["updated_at", "2015-03-20 07:21:33.657254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.660873"], ["updated_at", "2015-03-20 07:21:33.660873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca821ca-ced1-11e4-b082-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bca8bd9c-ced1-11e4-a49e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca821ca-ced1-11e4-b082-705681abff85"], ["organization_id", "bca8bd9c-ced1-11e4-a49e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.664829"], ["updated_at", "2015-03-20 07:21:33.664829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bca821ca-ced1-11e4-b082-705681abff85' LIMIT 1 [["organization_id", "bca8bd9c-ced1-11e4-a49e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$FtSDJezWkiKfnU2DV/X.eel2weauZxGmv58d9dDalQTZirjyuv3fG"], ["created_at", "2015-03-20 07:21:33.671485"], ["updated_at", "2015-03-20 07:21:33.671485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.674440"], ["updated_at", "2015-03-20 07:21:33.674440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcaa4afe-ced1-11e4-8983-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcaac344-ced1-11e4-9264-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcaa4afe-ced1-11e4-8983-705681abff85"], ["organization_id", "bcaac344-ced1-11e4-9264-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.677886"], ["updated_at", "2015-03-20 07:21:33.677886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcaa4afe-ced1-11e4-8983-705681abff85' LIMIT 1 [["organization_id", "bcaac344-ced1-11e4-9264-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$irUMIl567pGigpAViTwg2.ar/xHfOINKriJVNiuBPNgQRmoAsOP.C"], ["created_at", "2015-03-20 07:21:33.684771"], ["updated_at", "2015-03-20 07:21:33.684771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.687836"], ["updated_at", "2015-03-20 07:21:33.687836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bcac51dc-ced1-11e4-90a7-705681abff85' LIMIT 1 [["organization_id", "bcacc888-ced1-11e4-bc54-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$m4hvZ8oNK5aBmEWynlMPp.tlhbUUOOB8AvmXOPMuq38glvQ/6XlO."], ["created_at", "2015-03-20 07:21:33.694750"], ["updated_at", "2015-03-20 07:21:33.694750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.698534"], ["updated_at", "2015-03-20 07:21:33.698534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$bq0p6HgbeV7o1H9Kd06YfuW5KZ8I5rjSEkPD2pK06py.RfNcUiVUe"], ["created_at", "2015-03-20 07:21:33.704099"], ["updated_at", "2015-03-20 07:21:33.704099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.707046"], ["updated_at", "2015-03-20 07:21:33.707046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$h73bRBLNmBc4dRU.legGmeRkjP9eQsI14tMsqX7qFNFwVZl7kd4xG"], ["created_at", "2015-03-20 07:21:33.713853"], ["updated_at", "2015-03-20 07:21:33.713853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.717276"], ["updated_at", "2015-03-20 07:21:33.717276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcb0c9e2-ced1-11e4-8bcb-705681abff85' LIMIT 1 [["organization_id", "bcb14638-ced1-11e4-ad1c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$8IM2S1TUKZuIaaCtqyI9yOKYKXUyVje/6NMSFNpKFoubLmZEAv82G"], ["created_at", "2015-03-20 07:21:33.723836"], ["updated_at", "2015-03-20 07:21:33.723836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.726840"], ["updated_at", "2015-03-20 07:21:33.726840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcb247ae-ced1-11e4-88e2-705681abff85' LIMIT 1 [["organization_id", "bcb2bb12-ced1-11e4-8fed-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$PvJdRAwn5aHEpxs9kMMRPOk6v7x0wO7UNbvFfSNyALad8XXUUNYA."], ["created_at", "2015-03-20 07:21:33.733845"], ["updated_at", "2015-03-20 07:21:33.733845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$uinsoEwGVV56g.wNWGEmH.fWU103tUoDASOFra/h13L.QZXJh0VzO"], ["created_at", "2015-03-20 07:21:33.738466"], ["updated_at", "2015-03-20 07:21:33.738466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.741754"], ["updated_at", "2015-03-20 07:21:33.741754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcb485dc-ced1-11e4-a745-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcb50408-ced1-11e4-87be-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcb485dc-ced1-11e4-a745-705681abff85"], ["organization_id", "bcb50408-ced1-11e4-87be-705681abff85"], ["created_at", "2015-03-20 07:21:33.745922"], ["updated_at", "2015-03-20 07:21:33.745922"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcb3d18c-ced1-11e4-960c-705681abff85' LIMIT 1 [["organization_id", "bcb50408-ced1-11e4-87be-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$07r0dq18qnZc.2aGw/EzvebhXIzfCKqNDYZ6d4tukeP6KXFN0to8G"], ["created_at", "2015-03-20 07:21:33.754343"], ["updated_at", "2015-03-20 07:21:33.754343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$QlCevgiU/kOK3W4rqaBOieTFQ4m0qCFJqlM2slcCqck7t5MpHV11O"], ["created_at", "2015-03-20 07:21:33.758613"], ["updated_at", "2015-03-20 07:21:33.758613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.762609"], ["updated_at", "2015-03-20 07:21:33.762609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcb79a74-ced1-11e4-b15c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcb83416-ced1-11e4-a3e5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcb79a74-ced1-11e4-b15c-705681abff85"], ["organization_id", "bcb83416-ced1-11e4-a3e5-705681abff85"], ["created_at", "2015-03-20 07:21:33.765984"], ["updated_at", "2015-03-20 07:21:33.765984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$CCncj38R1qtmKHUjcXxyR.OvmejvthcdTO7iByLNhoCocc4eQlDjC"], ["created_at", "2015-03-20 07:21:33.771613"], ["updated_at", "2015-03-20 07:21:33.771613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$L7zw2Tez3yNgdwUnUX5B9.aPDzfhN5QyPWd/Yia4iMRaFh/ntVBGS"], ["created_at", "2015-03-20 07:21:33.775864"], ["updated_at", "2015-03-20 07:21:33.775864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.779379"], ["updated_at", "2015-03-20 07:21:33.779379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcba4062-ced1-11e4-91e5-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcbac00a-ced1-11e4-86b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcba4062-ced1-11e4-91e5-705681abff85"], ["organization_id", "bcbac00a-ced1-11e4-86b4-705681abff85"], ["created_at", "2015-03-20 07:21:33.782410"], ["updated_at", "2015-03-20 07:21:33.782410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bcb99482-ced1-11e4-9e0f-705681abff85' LIMIT 1 [["organization_id", "bcbac00a-ced1-11e4-86b4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$XB8cYNOhQbGaN9eKDb3duOC7.hUh30eLRU4rHPH8muXQEdrS4Z84W"], ["created_at", "2015-03-20 07:21:33.789356"], ["updated_at", "2015-03-20 07:21:33.789356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$FroNEoZ/IlWubFpyc77.dOgBRcSnpuHTi/Yi6me0hov1gK5f5e2XS"], ["created_at", "2015-03-20 07:21:33.793487"], ["updated_at", "2015-03-20 07:21:33.793487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.796778"], ["updated_at", "2015-03-20 07:21:33.796778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcbce678-ced1-11e4-a630-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcbd7430-ced1-11e4-9999-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcbce678-ced1-11e4-a630-705681abff85"], ["organization_id", "bcbd7430-ced1-11e4-9999-705681abff85"], ["created_at", "2015-03-20 07:21:33.800631"], ["updated_at", "2015-03-20 07:21:33.800631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcbc497a-ced1-11e4-b584-705681abff85' LIMIT 1 [["organization_id", "bcbd7430-ced1-11e4-9999-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$3zbNd5EKaq0ZugHwtK2nwuxROVOLST/BTkDQwj520T3MQRtR7FiKm"], ["created_at", "2015-03-20 07:21:33.807454"], ["updated_at", "2015-03-20 07:21:33.807454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.810805"], ["updated_at", "2015-03-20 07:21:33.810805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bcbf0c78-ced1-11e4-94f8-705681abff85' LIMIT 1 [["organization_id", "bcbf9d46-ced1-11e4-a40d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$Q61YA5M1j8caGZyNNBJXWu5l/QdZLtYRq4RjWNSie8hordMazhiE2"], ["created_at", "2015-03-20 07:21:33.818676"], ["updated_at", "2015-03-20 07:21:33.818676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.822045"], ["updated_at", "2015-03-20 07:21:33.822045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc0c4f0-ced1-11e4-a8d8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc143da-ced1-11e4-98c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcc0c4f0-ced1-11e4-a8d8-705681abff85"], ["organization_id", "bcc143da-ced1-11e4-98c0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.825218"], ["updated_at", "2015-03-20 07:21:33.825218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$5NFVRt86Bm4xoHw1023Sc.OFSq2phsxtkKkRohZjQ7QT45uzNuBbm"], ["created_at", "2015-03-20 07:21:33.829620"], ["updated_at", "2015-03-20 07:21:33.829620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc26cce-ced1-11e4-a516-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc143da-ced1-11e4-98c0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcc26cce-ced1-11e4-a516-705681abff85"], ["organization_id", "bcc143da-ced1-11e4-98c0-705681abff85"], ["created_at", "2015-03-20 07:21:33.833157"], ["updated_at", "2015-03-20 07:21:33.833157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcc0c4f0-ced1-11e4-a8d8-705681abff85' LIMIT 1 [["organization_id", "bcc143da-ced1-11e4-98c0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$OGB3JGMJWtLO4MZ9DpFAFeNapLgJw1A/qZMkK7qllJ9kEZYaGGQG."], ["created_at", "2015-03-20 07:21:33.840045"], ["updated_at", "2015-03-20 07:21:33.840045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.843227"], ["updated_at", "2015-03-20 07:21:33.843227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc4037c-ced1-11e4-a265-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc480fe-ced1-11e4-bc11-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcc4037c-ced1-11e4-a265-705681abff85"], ["organization_id", "bcc480fe-ced1-11e4-bc11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.846859"], ["updated_at", "2015-03-20 07:21:33.846859"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$XHbEy9hNsRiGQqUpXmYztOyZ/AS6HfXOPDHhSEqo98yvJhbAExzFW"], ["created_at", "2015-03-20 07:21:33.851689"], ["updated_at", "2015-03-20 07:21:33.851689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc5c9e6-ced1-11e4-a197-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc480fe-ced1-11e4-bc11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcc5c9e6-ced1-11e4-a197-705681abff85"], ["organization_id", "bcc480fe-ced1-11e4-bc11-705681abff85"], ["created_at", "2015-03-20 07:21:33.854773"], ["updated_at", "2015-03-20 07:21:33.854773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$zYLgrAVneFdixFKHgtPRGOkL.XvuJ0DoD7Ea7evuS1FPcLiLSEyB."], ["created_at", "2015-03-20 07:21:33.860831"], ["updated_at", "2015-03-20 07:21:33.860831"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.866633"], ["updated_at", "2015-03-20 07:21:33.866633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc73844-ced1-11e4-921b-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc8279a-ced1-11e4-a757-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcc73844-ced1-11e4-921b-705681abff85"], ["organization_id", "bcc8279a-ced1-11e4-a757-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.870893"], ["updated_at", "2015-03-20 07:21:33.870893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$A0ftDBxzwJWlzhJ9Ns87g.XYw8Ancjr0P4N9iIF2tpEMWP5M6ij9W"], ["created_at", "2015-03-20 07:21:33.875787"], ["updated_at", "2015-03-20 07:21:33.875787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc978d4-ced1-11e4-840f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcc8279a-ced1-11e4-a757-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcc978d4-ced1-11e4-840f-705681abff85"], ["organization_id", "bcc8279a-ced1-11e4-a757-705681abff85"], ["created_at", "2015-03-20 07:21:33.879412"], ["updated_at", "2015-03-20 07:21:33.879412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bcc73844-ced1-11e4-921b-705681abff85' LIMIT 1 [["organization_id", "bcc8279a-ced1-11e4-a757-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$e0GK9TKUTRtPZeocsQAclO8759.z8rTHLAlkDMgbYDT0hbt5j5DOC"], ["created_at", "2015-03-20 07:21:33.886294"], ["updated_at", "2015-03-20 07:21:33.886294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.889445"], ["updated_at", "2015-03-20 07:21:33.889445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bccb1270-ced1-11e4-8a35-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bccb8b6a-ced1-11e4-bfd4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bccb1270-ced1-11e4-8a35-705681abff85"], ["organization_id", "bccb8b6a-ced1-11e4-bfd4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.892803"], ["updated_at", "2015-03-20 07:21:33.892803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$PardOtnxYuKdqP/oYQdOSua/8/Slhyhkc9GT6.iVep7yk.MlzAVHi"], ["created_at", "2015-03-20 07:21:33.897728"], ["updated_at", "2015-03-20 07:21:33.897728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bccccfe8-ced1-11e4-be11-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bccb8b6a-ced1-11e4-bfd4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bccccfe8-ced1-11e4-be11-705681abff85"], ["organization_id", "bccb8b6a-ced1-11e4-bfd4-705681abff85"], ["created_at", "2015-03-20 07:21:33.901936"], ["updated_at", "2015-03-20 07:21:33.901936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bccb1270-ced1-11e4-8a35-705681abff85' LIMIT 1 [["organization_id", "bccb8b6a-ced1-11e4-bfd4-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$M3t48bJ9.ah8Tl1bdHI/De4ermLbx8vLL7KOj7OVyS2W1TWTYPiBG"], ["created_at", "2015-03-20 07:21:33.909456"], ["updated_at", "2015-03-20 07:21:33.909456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.914192"], ["updated_at", "2015-03-20 07:21:33.914192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bccea1c4-ced1-11e4-9130-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bccf551a-ced1-11e4-b630-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bccea1c4-ced1-11e4-9130-705681abff85"], ["organization_id", "bccf551a-ced1-11e4-b630-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.917479"], ["updated_at", "2015-03-20 07:21:33.917479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bccea1c4-ced1-11e4-9130-705681abff85' LIMIT 1 [["organization_id", "bccf551a-ced1-11e4-b630-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$/8mpOLGV..OthjGN6QZHIeMZLd/76mn.fXcifayW5UdZMrP3OtXIC"], ["created_at", "2015-03-20 07:21:33.924574"], ["updated_at", "2015-03-20 07:21:33.924574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.927844"], ["updated_at", "2015-03-20 07:21:33.927844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcd0ea7e-ced1-11e4-abec-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcd16c6a-ced1-11e4-bed7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcd0ea7e-ced1-11e4-abec-705681abff85"], ["organization_id", "bcd16c6a-ced1-11e4-bed7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.931240"], ["updated_at", "2015-03-20 07:21:33.931240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcd0ea7e-ced1-11e4-abec-705681abff85' LIMIT 1 [["organization_id", "bcd16c6a-ced1-11e4-bed7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$bWu/HWfp.UTnY3GRuHyKCe/NQ/mSUho9.V.xqr2kh1KJCIrk1NgoK"], ["created_at", "2015-03-20 07:21:33.938293"], ["updated_at", "2015-03-20 07:21:33.938293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.941385"], ["updated_at", "2015-03-20 07:21:33.941385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcd30368-ced1-11e4-b3da-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcd377f8-ced1-11e4-96ab-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcd30368-ced1-11e4-b3da-705681abff85"], ["organization_id", "bcd377f8-ced1-11e4-96ab-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.944424"], ["updated_at", "2015-03-20 07:21:33.944424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$NtQLdXF8HuHn3N9H1D7V3uNA1psPbTm79u1y7HNgv7LsRSpnr1uDK"], ["created_at", "2015-03-20 07:21:33.951731"], ["updated_at", "2015-03-20 07:21:33.951731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.954866"], ["updated_at", "2015-03-20 07:21:33.954866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcd50f32-ced1-11e4-986a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcd5862e-ced1-11e4-9277-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcd50f32-ced1-11e4-986a-705681abff85"], ["organization_id", "bcd5862e-ced1-11e4-9277-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.958036"], ["updated_at", "2015-03-20 07:21:33.958036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bcd50f32-ced1-11e4-986a-705681abff85' LIMIT 1 [["organization_id", "bcd5862e-ced1-11e4-9277-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$gghmOHBymxsa8dcfqxtaYOv9TdiOvH9vXHlQs0948IwVz5o/6jFjG"], ["created_at", "2015-03-20 07:21:33.965910"], ["updated_at", "2015-03-20 07:21:33.965910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.969051"], ["updated_at", "2015-03-20 07:21:33.969051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcd7392e-ced1-11e4-853a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcd7b688-ced1-11e4-b6e2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcd7392e-ced1-11e4-853a-705681abff85"], ["organization_id", "bcd7b688-ced1-11e4-b6e2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:33.972547"], ["updated_at", "2015-03-20 07:21:33.972547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcd7392e-ced1-11e4-853a-705681abff85' LIMIT 1 [["organization_id", "bcd7b688-ced1-11e4-b6e2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$DsnWTcinSlA.2md7B0KtaegQSw0Xrx8Pn5X61ymIEn/GkQXlqQWlm"], ["created_at", "2015-03-20 07:21:33.979543"], ["updated_at", "2015-03-20 07:21:33.979543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.983701"], ["updated_at", "2015-03-20 07:21:33.983701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcd94c3c-ced1-11e4-9070-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcd9eeda-ced1-11e4-a065-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcd94c3c-ced1-11e4-9070-705681abff85"], ["organization_id", "bcd9eeda-ced1-11e4-a065-705681abff85"], ["created_at", "2015-03-20 07:21:33.986896"], ["updated_at", "2015-03-20 07:21:33.986896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcd94c3c-ced1-11e4-9070-705681abff85' LIMIT 1 [["organization_id", "bcd9eeda-ced1-11e4-a065-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$UGA6X1KJJLxJnbWaAYOiyu1Ogk28V9oeFl/HXw/qYMdLs0rHaxauS"], ["created_at", "2015-03-20 07:21:33.993625"], ["updated_at", "2015-03-20 07:21:33.993625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:33.996984"], ["updated_at", "2015-03-20 07:21:33.996984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcdb74b2-ced1-11e4-83d6-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcdbf540-ced1-11e4-8129-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcdb74b2-ced1-11e4-83d6-705681abff85"], ["organization_id", "bcdbf540-ced1-11e4-8129-705681abff85"], ["created_at", "2015-03-20 07:21:34.001071"], ["updated_at", "2015-03-20 07:21:34.001071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$BiK0xuJccEIH/IKKnObLD.VWOWKWPSn67sD4jac7VCqwboBMfXx2K"], ["created_at", "2015-03-20 07:21:34.006607"], ["updated_at", "2015-03-20 07:21:34.006607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.009618"], ["updated_at", "2015-03-20 07:21:34.009618"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcdd6d76-ced1-11e4-8a4c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcdde274-ced1-11e4-9fff-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcdd6d76-ced1-11e4-8a4c-705681abff85"], ["organization_id", "bcdde274-ced1-11e4-9fff-705681abff85"], ["created_at", "2015-03-20 07:21:34.013512"], ["updated_at", "2015-03-20 07:21:34.013512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bcdd6d76-ced1-11e4-8a4c-705681abff85' LIMIT 1 [["organization_id", "bcdde274-ced1-11e4-9fff-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$JQ2M8I6l9cQrB6sScVagtO43NQoJfMcyW9CbHFDjER0f9qCXLMqCe"], ["created_at", "2015-03-20 07:21:34.021199"], ["updated_at", "2015-03-20 07:21:34.021199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.024434"], ["updated_at", "2015-03-20 07:21:34.024434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcdfad02-ced1-11e4-b8aa-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bce0261a-ced1-11e4-873e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bcdfad02-ced1-11e4-b8aa-705681abff85"], ["organization_id", "bce0261a-ced1-11e4-873e-705681abff85"], ["created_at", "2015-03-20 07:21:34.027616"], ["updated_at", "2015-03-20 07:21:34.027616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcdfad02-ced1-11e4-b8aa-705681abff85' LIMIT 1 [["organization_id", "bce0261a-ced1-11e4-873e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$z4x67zcKnCaZJHe272h2g.V1Ml8RBxz2gpx8wX5grM4UE6o.j0Lte"], ["created_at", "2015-03-20 07:21:34.034364"], ["updated_at", "2015-03-20 07:21:34.034364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.037365"], ["updated_at", "2015-03-20 07:21:34.037365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bce1aa8a-ced1-11e4-9e1c-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bce226d6-ced1-11e4-925c-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bce1aa8a-ced1-11e4-9e1c-705681abff85"], ["organization_id", "bce226d6-ced1-11e4-925c-705681abff85"], ["created_at", "2015-03-20 07:21:34.041021"], ["updated_at", "2015-03-20 07:21:34.041021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bce1aa8a-ced1-11e4-9e1c-705681abff85' LIMIT 1 [["organization_id", "bce226d6-ced1-11e4-925c-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$./1bsEo4oRbde7dRTRRb..zrdQuAe4qY26lZ6Vmawdl8YPw9sm7wS"], ["created_at", "2015-03-20 07:21:34.050026"], ["updated_at", "2015-03-20 07:21:34.050026"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.055005"], ["updated_at", "2015-03-20 07:21:34.055005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = 'bce4e286-ced1-11e4-b165-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "bce4e286-ced1-11e4-b165-705681abff85"], ["created_at", "2015-03-20 07:21:34.060733"], ["updated_at", "2015-03-20 07:21:34.060733"], ["token", "Kr4TUAg6Vf-1XfbcUbOnDmh6CPRRbBDf589mwSMcvDk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bce41ea0-ced1-11e4-974a-705681abff85' LIMIT 1 [["organization_id", "bce4e286-ced1-11e4-b165-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$sCq6W1wxIDmL3gPCJEgA1ef34RHeQt5EgmEHuIrQu1kcPsa/Yrche"], ["created_at", "2015-03-20 07:21:34.068750"], ["updated_at", "2015-03-20 07:21:34.068750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.071854"], ["updated_at", "2015-03-20 07:21:34.071854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'bce76542-ced1-11e4-9f83-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "bce76542-ced1-11e4-9f83-705681abff85"], ["created_at", "2015-03-20 07:21:34.075753"], ["updated_at", "2015-03-20 07:21:34.075753"], ["token", "jAEYpYRIx9c-lu6D2QAuuOGRJTX0lU5FJMPknjjU2Dk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bce6ea90-ced1-11e4-b434-705681abff85' LIMIT 1 [["organization_id", "bce76542-ced1-11e4-9f83-705681abff85"]]  (0.2ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$Ba.q93ME6Btxexgv46NSrOrd5nAiDt.bqwM4x1L6dNlhU22N.gbHu"], ["created_at", "2015-03-20 07:21:34.088611"], ["updated_at", "2015-03-20 07:21:34.088611"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.104934"], ["updated_at", "2015-03-20 07:21:34.104934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'bcec6f38-ced1-11e4-aebc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "bcec6f38-ced1-11e4-aebc-705681abff85"], ["created_at", "2015-03-20 07:21:34.108173"], ["updated_at", "2015-03-20 07:21:34.108173"], ["token", "TILtjjQpE0nEf38HnfTVfWwolz57zbbhCNGFSI_-8yA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcea1562-ced1-11e4-9b87-705681abff85' LIMIT 1 [["organization_id", "bcec6f38-ced1-11e4-aebc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$W7Sn9SRpzi3t5PtNgOMkre/YOR66G53NBaajrdkM66lsH3Oq5Xfwm"], ["created_at", "2015-03-20 07:21:34.115671"], ["updated_at", "2015-03-20 07:21:34.115671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.119207"], ["updated_at", "2015-03-20 07:21:34.119207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'bcee9bc8-ced1-11e4-82c2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "bcee9bc8-ced1-11e4-82c2-705681abff85"], ["created_at", "2015-03-20 07:21:34.123720"], ["updated_at", "2015-03-20 07:21:34.123720"], ["token", "bY7rBJEkgDWSrTdL8MLvYi8xj8jPMCMHldtw5b2ZOek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcee1310-ced1-11e4-8dee-705681abff85' LIMIT 1 [["organization_id", "bcee9bc8-ced1-11e4-82c2-705681abff85"]]  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$O.6FgdzohuIiIGncge8gDuMChvnpSNAktCM14py3/9dkxwgXoSZy."], ["created_at", "2015-03-20 07:21:34.136692"], ["updated_at", "2015-03-20 07:21:34.136692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.142642"], ["updated_at", "2015-03-20 07:21:34.142642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcf162c2-ced1-11e4-9ed8-705681abff85' LIMIT 1 [["organization_id", "bcf2327e-ced1-11e4-a869-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$sCjb1TSaq7l3117A2sj.hu4ODp23FV351HY1h94S.77FWUjdp5d7S"], ["created_at", "2015-03-20 07:21:34.151642"], ["updated_at", "2015-03-20 07:21:34.151642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.155854"], ["updated_at", "2015-03-20 07:21:34.155854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcf391aa-ced1-11e4-8d6f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcf434de-ced1-11e4-a818-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcf391aa-ced1-11e4-8d6f-705681abff85"], ["organization_id", "bcf434de-ced1-11e4-a818-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:34.159832"], ["updated_at", "2015-03-20 07:21:34.159832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'bcf434de-ced1-11e4-a818-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "bcf434de-ced1-11e4-a818-705681abff85"], ["created_at", "2015-03-20 07:21:34.163830"], ["updated_at", "2015-03-20 07:21:34.163830"], ["token", "SWmdpKe_NQKK7SlSOaoDFKhJvioI20wLE2OzijZ14MM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcf391aa-ced1-11e4-8d6f-705681abff85' LIMIT 1 [["organization_id", "bcf434de-ced1-11e4-a818-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$WG1EGBYTEPL.7rF./nf4ju5rK5e3s9eIGijXkj14SIQu6fiGBzoiK"], ["created_at", "2015-03-20 07:21:34.173040"], ["updated_at", "2015-03-20 07:21:34.173040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.176615"], ["updated_at", "2015-03-20 07:21:34.176615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcf6d28e-ced1-11e4-a6d3-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcf75f88-ced1-11e4-b93b-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcf6d28e-ced1-11e4-a6d3-705681abff85"], ["organization_id", "bcf75f88-ced1-11e4-b93b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:34.181520"], ["updated_at", "2015-03-20 07:21:34.181520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'bcf75f88-ced1-11e4-b93b-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "bcf75f88-ced1-11e4-b93b-705681abff85"], ["created_at", "2015-03-20 07:21:34.199096"], ["updated_at", "2015-03-20 07:21:34.199096"], ["token", "aler9ipt29hwqUGDa7XQPzZGjUTMgwXYALZO1Zw5mmY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcf6d28e-ced1-11e4-a6d3-705681abff85' LIMIT 1 [["organization_id", "bcf75f88-ced1-11e4-b93b-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$Ov.oby6VeTb/49jpeI8xMucJNuwU8Vq/6K1F67vVbwsAE1ECgO7Sm"], ["created_at", "2015-03-20 07:21:34.211333"], ["updated_at", "2015-03-20 07:21:34.211333"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.218271"], ["updated_at", "2015-03-20 07:21:34.218271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcfcbf0a-ced1-11e4-982f-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bcfdca76-ced1-11e4-a1f7-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcfcbf0a-ced1-11e4-982f-705681abff85"], ["organization_id", "bcfdca76-ced1-11e4-a1f7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:34.222450"], ["updated_at", "2015-03-20 07:21:34.222450"]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = 'bcfdca76-ced1-11e4-a1f7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "bcfdca76-ced1-11e4-a1f7-705681abff85"], ["created_at", "2015-03-20 07:21:34.233925"], ["updated_at", "2015-03-20 07:21:34.233925"], ["token", "oPqHg6Xst7k0m4H8S_PEdwzhcU6KWwiA5ZDKpwcP-Ro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcfcbf0a-ced1-11e4-982f-705681abff85' LIMIT 1 [["organization_id", "bcfdca76-ced1-11e4-a1f7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$ge1zqXTRejb8Qm2Bn4EQ5uwVlIpaBXVMsSuWnvylbHDSptLUjjAaW"], ["created_at", "2015-03-20 07:21:34.241801"], ["updated_at", "2015-03-20 07:21:34.241801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.245442"], ["updated_at", "2015-03-20 07:21:34.245442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bd01536c-ced1-11e4-b53a-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bd01e1e2-ced1-11e4-b8cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bd01536c-ced1-11e4-b53a-705681abff85"], ["organization_id", "bd01e1e2-ced1-11e4-b8cb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:34.249560"], ["updated_at", "2015-03-20 07:21:34.249560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'bd01e1e2-ced1-11e4-b8cb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "bd01e1e2-ced1-11e4-b8cb-705681abff85"], ["created_at", "2015-03-20 07:21:34.254322"], ["updated_at", "2015-03-20 07:21:34.254322"], ["token", "ZOgUZ32C73ZvVeWUHDLQ-xogKuyvwe0wumiVq6tBi-E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bd01536c-ced1-11e4-b53a-705681abff85' LIMIT 1 [["organization_id", "bd01e1e2-ced1-11e4-b8cb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$IZ49.Zg1U.zDMti/fyx8x.E3xs/C3X.uu0q8Jl7w4T5cvAlH7x.Xy"], ["created_at", "2015-03-20 07:21:34.263869"], ["updated_at", "2015-03-20 07:21:34.263869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.268336"], ["updated_at", "2015-03-20 07:21:34.268336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bd04b8a4-ced1-11e4-81a8-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bd055dae-ced1-11e4-80b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bd04b8a4-ced1-11e4-81a8-705681abff85"], ["organization_id", "bd055dae-ced1-11e4-80b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:21:34.271713"], ["updated_at", "2015-03-20 07:21:34.271713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bd04b8a4-ced1-11e4-81a8-705681abff85' LIMIT 1 [["organization_id", "bd055dae-ced1-11e4-80b6-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$IT5BDlmvLrZuNIY7E4.znufUHk7/mqiBppNDzpCRjZ736/1yuesEW"], ["created_at", "2015-03-20 07:21:34.279842"], ["updated_at", "2015-03-20 07:21:34.279842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.283612"], ["updated_at", "2015-03-20 07:21:34.283612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bd072fd0-ced1-11e4-80a9-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bd07b1e4-ced1-11e4-bbee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bd072fd0-ced1-11e4-80a9-705681abff85"], ["organization_id", "bd07b1e4-ced1-11e4-bbee-705681abff85"], ["created_at", "2015-03-20 07:21:34.286809"], ["updated_at", "2015-03-20 07:21:34.286809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = 'bd07b1e4-ced1-11e4-bbee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "bd07b1e4-ced1-11e4-bbee-705681abff85"], ["created_at", "2015-03-20 07:21:34.290284"], ["updated_at", "2015-03-20 07:21:34.290284"], ["token", "EDivzxmVjf5vzBFso9tv1ZQZQoUvO-pLJRb2NB8wdfk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bd072fd0-ced1-11e4-80a9-705681abff85' LIMIT 1 [["organization_id", "bd07b1e4-ced1-11e4-bbee-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$WIoOYk1V1Om0F/0JHYpBEeez0CJc3y32gWlg9Vq2Gibd84O6Bw01K"], ["created_at", "2015-03-20 07:21:34.297397"], ["updated_at", "2015-03-20 07:21:34.297397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.300463"], ["updated_at", "2015-03-20 07:21:34.300463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bd09cd62-ced1-11e4-9c70-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bd0a442c-ced1-11e4-86c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bd09cd62-ced1-11e4-9c70-705681abff85"], ["organization_id", "bd0a442c-ced1-11e4-86c7-705681abff85"], ["created_at", "2015-03-20 07:21:34.303529"], ["updated_at", "2015-03-20 07:21:34.303529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = 'bd0a442c-ced1-11e4-86c7-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "bd0a442c-ced1-11e4-86c7-705681abff85"], ["created_at", "2015-03-20 07:21:34.307316"], ["updated_at", "2015-03-20 07:21:34.307316"], ["token", "ilpTsW9esN60dW7WT_tTRVkFhiwB5OouPn8WmG1mEIM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bd09cd62-ced1-11e4-9c70-705681abff85' LIMIT 1 [["organization_id", "bd0a442c-ced1-11e4-86c7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$Mbm64x/tU.BO1eoe4GbUm.LwHQwwbz2aB.5El25nZ4PiP0Hslxg8O"], ["created_at", "2015-03-20 07:21:34.314517"], ["updated_at", "2015-03-20 07:21:34.314517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.318725"], ["updated_at", "2015-03-20 07:21:34.318725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bd0c715c-ced1-11e4-8b84-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bd0d126a-ced1-11e4-9b9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bd0c715c-ced1-11e4-8b84-705681abff85"], ["organization_id", "bd0d126a-ced1-11e4-9b9b-705681abff85"], ["created_at", "2015-03-20 07:21:34.322060"], ["updated_at", "2015-03-20 07:21:34.322060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'bd0d126a-ced1-11e4-9b9b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "bd0d126a-ced1-11e4-9b9b-705681abff85"], ["created_at", "2015-03-20 07:21:34.325374"], ["updated_at", "2015-03-20 07:21:34.325374"], ["token", "pSpJzFKy_vmM2cEciULk_Hvw3kEOeVUWCKK5YM6S4Z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bd0c715c-ced1-11e4-8b84-705681abff85' LIMIT 1 [["organization_id", "bd0d126a-ced1-11e4-9b9b-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$ce66PXbe3aLwTLTSsieQJOiS8Upey/pXEWvgnVlpeHwLAm/F8UEh6"], ["created_at", "2015-03-20 07:21:34.333625"], ["updated_at", "2015-03-20 07:21:34.333625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.336981"], ["updated_at", "2015-03-20 07:21:34.336981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bd0f5854-ced1-11e4-a57d-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bd0fd748-ced1-11e4-be50-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bd0f5854-ced1-11e4-a57d-705681abff85"], ["organization_id", "bd0fd748-ced1-11e4-be50-705681abff85"], ["created_at", "2015-03-20 07:21:34.340196"], ["updated_at", "2015-03-20 07:21:34.340196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'bd0fd748-ced1-11e4-be50-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "bd0fd748-ced1-11e4-be50-705681abff85"], ["created_at", "2015-03-20 07:21:34.343701"], ["updated_at", "2015-03-20 07:21:34.343701"], ["token", "Ue_7fnssLLJcu8i_C8Wyn87j6FzJSfT4CxwykuT_1WQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bd0f5854-ced1-11e4-a57d-705681abff85' LIMIT 1 [["organization_id", "bd0fd748-ced1-11e4-be50-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$/ipVsLSln9u1ts/rPs4xxe9mDzscGxidht0L1fWrfrEanDhs2ARVa"], ["created_at", "2015-03-20 07:21:34.351728"], ["updated_at", "2015-03-20 07:21:34.351728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.355082"], ["updated_at", "2015-03-20 07:21:34.355082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bd1219c2-ced1-11e4-a1f1-705681abff85' AND "clubhouse_memberships"."organization_id" = 'bd129a8c-ced1-11e4-b5bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bd1219c2-ced1-11e4-a1f1-705681abff85"], ["organization_id", "bd129a8c-ced1-11e4-b5bb-705681abff85"], ["created_at", "2015-03-20 07:21:34.358274"], ["updated_at", "2015-03-20 07:21:34.358274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bd1219c2-ced1-11e4-a1f1-705681abff85' LIMIT 1 [["organization_id", "bd129a8c-ced1-11e4-b5bb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.364859"], ["updated_at", "2015-03-20 07:21:34.364859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bd1418a8-ced1-11e4-9c96-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bd1418a8-ced1-11e4-9c96-705681abff85"], ["created_at", "2015-03-20 07:21:34.369362"], ["updated_at", "2015-03-20 07:21:34.369362"], ["token", "-JdUzYyLarZlpH8Uc7Q7xS0wv5rF-dxMCcPMBuxAXL4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.7ms) Date: Fri, 20 Mar 2015 00:21:34 -0700 From: from@example.com To: john@example.com Message-ID: <550bca7e5b18c_11be3ffe0cc65bc0663a@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/-JdUzYyLarZlpH8Uc7Q7xS0wv5rF-dxMCcPMBuxAXL4?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.378104"], ["updated_at", "2015-03-20 07:21:34.378104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bd16233c-ced1-11e4-a4ae-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bd16233c-ced1-11e4-a4ae-705681abff85"], ["created_at", "2015-03-20 07:21:34.383155"], ["updated_at", "2015-03-20 07:21:34.383155"], ["token", "K28i47Din-fw-JZaG5b05kRWKeichAa1mTqi89sDn4M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.9ms) Date: Fri, 20 Mar 2015 00:21:34 -0700 From: from@example.com To: john@example.com Message-ID: <550bca7e5e7b7_11be3ffe0cc65bc06795@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/K28i47Din-fw-JZaG5b05kRWKeichAa1mTqi89sDn4M?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.392037"], ["updated_at", "2015-03-20 07:21:34.392037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bd183e60-ced1-11e4-9639-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bd183e60-ced1-11e4-9639-705681abff85"], ["created_at", "2015-03-20 07:21:34.395645"], ["updated_at", "2015-03-20 07:21:34.395645"], ["token", "dLALTUgRXh6OLsrFKcpuOxgM-9DbeEfmud3SamArTB0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.8ms) Date: Fri, 20 Mar 2015 00:21:34 -0700 From: from@example.com To: john@example.com Message-ID: <550bca7e617ca_11be3ffe0cc65bc0686@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/dLALTUgRXh6OLsrFKcpuOxgM-9DbeEfmud3SamArTB0?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.404256"], ["updated_at", "2015-03-20 07:21:34.404256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'bd1a1b22-ced1-11e4-9bee-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "bd1a1b22-ced1-11e4-9bee-705681abff85"], ["created_at", "2015-03-20 07:21:34.407755"], ["updated_at", "2015-03-20 07:21:34.407755"], ["token", "y9LN_391-PVH3PEd8n1h2QYDnCJcEq0xAV6GW2CLG0Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.9ms) Date: Fri, 20 Mar 2015 00:21:34 -0700 From: from@example.com To: john@example.com Message-ID: <550bca7e64742_11be3ffe0cc65bc06956@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/y9LN_391-PVH3PEd8n1h2QYDnCJcEq0xAV6GW2CLG0Q?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.416706"], ["updated_at", "2015-03-20 07:21:34.416706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.426141"], ["updated_at", "2015-03-20 07:21:34.426141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.437887"], ["updated_at", "2015-03-20 07:21:34.437887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.467600"], ["updated_at", "2015-03-20 07:21:34.467600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bd23cffa-ced1-11e4-98d7-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:21:34.472990"], ["updated_at", "2015-03-20 07:21:34.472990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (24.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$imeCNGnxPG3DcyJKTn9Pmudb6ccBZxCJzEZZ8PtPCAfHwNjcQ18f2"], ["created_at", "2015-03-20 07:24:21.239787"], ["updated_at", "2015-03-20 07:24:21.239787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.273894"], ["user_id", "208eed5e-ced2-11e4-8c7a-705681abff85"], ["created_at", "2015-03-20 07:24:21.281194"], ["updated_at", "2015-03-20 07:24:21.281194"], ["token", "ZSXpwJMYqVg9-vR7QTDLiBhSxzteqHjde2mMxIP5UmQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.296586"], ["updated_at", "2015-03-20 07:24:21.296586"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '208eed5e-ced2-11e4-8c7a-705681abff85' AND "clubhouse_memberships"."organization_id" = '2093ebc4-ced2-11e4-afde-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "208eed5e-ced2-11e4-8c7a-705681abff85"], ["organization_id", "2093ebc4-ced2-11e4-afde-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.308266"], ["updated_at", "2015-03-20 07:24:21.308266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2093ebc4-ced2-11e4-afde-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "2093ebc4-ced2-11e4-afde-705681abff85"], ["created_at", "2015-03-20 07:24:21.319370"], ["updated_at", "2015-03-20 07:24:21.319370"], ["token", "UCZWisOIHTU8ZThZ9tG5Z1x5X3LYPSfGZhFhviKgkSY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$jtJg8CXnMcD7yDg1km9vZeA4cM.TGkhyQfuZK3huQkg9Sf1Af0JYa"], ["created_at", "2015-03-20 07:24:21.324737"], ["updated_at", "2015-03-20 07:24:21.324737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.328166"], ["updated_at", "2015-03-20 07:24:21.328166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20982f04-ced2-11e4-8d3c-705681abff85' AND "clubhouse_memberships"."organization_id" = '2098ad08-ced2-11e4-80ae-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20982f04-ced2-11e4-8d3c-705681abff85"], ["organization_id", "2098ad08-ced2-11e4-80ae-705681abff85"], ["created_at", "2015-03-20 07:24:21.331881"], ["updated_at", "2015-03-20 07:24:21.331881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-03-20 00:24:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$.0CvJgqdkNV/loJB1otiL.iUIZbEv3isDt9i.g9MXGbydODmSexea"], ["created_at", "2015-03-20 07:24:21.366582"], ["updated_at", "2015-03-20 07:24:21.366582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.368409"], ["user_id", "209e9074-ced2-11e4-b988-705681abff85"], ["created_at", "2015-03-20 07:24:21.369220"], ["updated_at", "2015-03-20 07:24:21.369220"], ["token", "j8jO74Ro5xJHOF4hgZyZNzK-dFPyebNkWAfBkcIvdj8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.372832"], ["updated_at", "2015-03-20 07:24:21.372832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '209e9074-ced2-11e4-b988-705681abff85' AND "clubhouse_memberships"."organization_id" = '209f7de0-ced2-11e4-9e14-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "209e9074-ced2-11e4-b988-705681abff85"], ["organization_id", "209f7de0-ced2-11e4-9e14-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.376343"], ["updated_at", "2015-03-20 07:24:21.376343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '209f7de0-ced2-11e4-9e14-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "209f7de0-ced2-11e4-9e14-705681abff85"], ["created_at", "2015-03-20 07:24:21.380177"], ["updated_at", "2015-03-20 07:24:21.380177"], ["token", "POF3QHst_SzI-NBRM_daCjelBBMciw_CH8G9GuNmIPc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$hOAUtJT3of0bfHfy/Xb7aekTdw1XIzipt2kHIjt93Q.PICWC.S41O"], ["created_at", "2015-03-20 07:24:21.385476"], ["updated_at", "2015-03-20 07:24:21.385476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.388606"], ["updated_at", "2015-03-20 07:24:21.388606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20a16d6c-ced2-11e4-92ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '20a1e56c-ced2-11e4-9bf2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20a16d6c-ced2-11e4-92ca-705681abff85"], ["organization_id", "20a1e56c-ced2-11e4-9bf2-705681abff85"], ["created_at", "2015-03-20 07:24:21.392118"], ["updated_at", "2015-03-20 07:24:21.392118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:24:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:21.399409' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "j8jO74Ro5xJHOF4hgZyZNzK-dFPyebNkWAfBkcIvdj8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:21.407958"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:21.409278"], ["id", "209ef852-ced2-11e4-a59d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "209e9074-ced2-11e4-b988-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '209e9074-ced2-11e4-b988-705681abff85' LIMIT 1 [["organization_id", "209f7de0-ced2-11e4-9e14-705681abff85"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "209f7de0-ced2-11e4-9e14-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "209f7de0-ced2-11e4-9e14-705681abff85"]] Completed 200 OK in 37ms (Views: 6.2ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$jxr0Ktbi2mQtMw5C.k/xhOth6OI0snmPz9P8OhnN/9kfFQMDuFBYS"], ["created_at", "2015-03-20 07:24:21.446071"], ["updated_at", "2015-03-20 07:24:21.446071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.448265"], ["user_id", "20aab71e-ced2-11e4-8744-705681abff85"], ["created_at", "2015-03-20 07:24:21.449333"], ["updated_at", "2015-03-20 07:24:21.449333"], ["token", "s2j4jhSHQCtxse-zso1Nrz3H8iA1eQmx8TqOgCFYOfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.453359"], ["updated_at", "2015-03-20 07:24:21.453359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20aab71e-ced2-11e4-8744-705681abff85' AND "clubhouse_memberships"."organization_id" = '20abc9b0-ced2-11e4-8514-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20aab71e-ced2-11e4-8744-705681abff85"], ["organization_id", "20abc9b0-ced2-11e4-8514-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.457267"], ["updated_at", "2015-03-20 07:24:21.457267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '20abc9b0-ced2-11e4-8514-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "20abc9b0-ced2-11e4-8514-705681abff85"], ["created_at", "2015-03-20 07:24:21.461124"], ["updated_at", "2015-03-20 07:24:21.461124"], ["token", "UAvfYj3F96bNhLnW1ymJrhjumf3B25mY1XXVkOz5x9Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-03-20 00:24:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$2DPIgskaGoW0fhorVb1CT.Sxq4/kacnnpOBgpr3d8nyvFEbg.2VC2"], ["created_at", "2015-03-20 07:24:21.472425"], ["updated_at", "2015-03-20 07:24:21.472425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.474366"], ["user_id", "20aeb558-ced2-11e4-ba28-705681abff85"], ["created_at", "2015-03-20 07:24:21.475210"], ["updated_at", "2015-03-20 07:24:21.475210"], ["token", "ZN0JyeHe2VUpHW7_afH9k6m51N18zJ-3jTDjQIjcri0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.480364"], ["updated_at", "2015-03-20 07:24:21.480364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20aeb558-ced2-11e4-ba28-705681abff85' AND "clubhouse_memberships"."organization_id" = '20afef22-ced2-11e4-a4b4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20aeb558-ced2-11e4-ba28-705681abff85"], ["organization_id", "20afef22-ced2-11e4-a4b4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.484617"], ["updated_at", "2015-03-20 07:24:21.484617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '20afef22-ced2-11e4-a4b4-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "20afef22-ced2-11e4-a4b4-705681abff85"], ["created_at", "2015-03-20 07:24:21.488563"], ["updated_at", "2015-03-20 07:24:21.488563"], ["token", "qkqfpLzg4BIfOkGr_h0wQiNTEVVpM7rV2if8z0BMFT8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/20afef22-ced2-11e4-a4b4-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:24:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"20afef22-ced2-11e4-a4b4-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:21.493621' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZN0JyeHe2VUpHW7_afH9k6m51N18zJ-3jTDjQIjcri0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:21.495068"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:21.496024"], ["id", "20af3794-ced2-11e4-91a9-705681abff85"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "20afef22-ced2-11e4-a4b4-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20aeb558-ced2-11e4-ba28-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "20afef22-ced2-11e4-a4b4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '20aeb558-ced2-11e4-ba28-705681abff85' LIMIT 1 [["organization_id", "20afef22-ced2-11e4-a4b4-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '20afef22-ced2-11e4-a4b4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "20afef22-ced2-11e4-a4b4-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.508131"], ["updated_at", "2015-03-20 07:24:21.508131"], ["token", "3IHzxdRd0pNB-L2HAK3X0Ua_43Rbb4zHj1Kz8jnhKYY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 32cca994-f2e3-41d7-a7c4-2a0a37087945) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/20b43e38-ced2-11e4-ab6b-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "20b43e38-ced2-11e4-ab6b-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [32cca994-f2e3-41d7-a7c4-2a0a37087945] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/20b43e38-ced2-11e4-ab6b-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [32cca994-f2e3-41d7-a7c4-2a0a37087945] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "20afef22-ced2-11e4-a4b4-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [32cca994-f2e3-41d7-a7c4-2a0a37087945] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [32cca994-f2e3-41d7-a7c4-2a0a37087945] Clubhouse::Mailer#invitation: processed outbound mail in 229.6ms [ActiveJob] [ActionMailer::DeliveryJob] [32cca994-f2e3-41d7-a7c4-2a0a37087945] Sent mail to email@example.com (8.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [32cca994-f2e3-41d7-a7c4-2a0a37087945] Date: Fri, 20 Mar 2015 00:24:21 -0700 From: from@example.com To: email@example.com Message-ID: <550bcb25be500_11e33ffe99865bf0102e0@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/3IHzxdRd0pNB-L2HAK3X0Ua_43Rbb4zHj1Kz8jnhKYY?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [32cca994-f2e3-41d7-a7c4-2a0a37087945] Performed ActionMailer::DeliveryJob from Inline(mailers) in 238.39ms Completed 201 Created in 291ms (Views: 0.9ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$jRdhbwI590VmQLxQTgIskuKmaLgVOO7fNikbhnfTIH45LNTYR6Q0G"], ["created_at", "2015-03-20 07:24:21.790800"], ["updated_at", "2015-03-20 07:24:21.790800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.792508"], ["user_id", "20df4664-ced2-11e4-ae20-705681abff85"], ["created_at", "2015-03-20 07:24:21.793282"], ["updated_at", "2015-03-20 07:24:21.793282"], ["token", "JIsAE77-jAMSG_QUIZbwF7QeSAeoib04-J-ybOevq4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.798077"], ["updated_at", "2015-03-20 07:24:21.798077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20df4664-ced2-11e4-ae20-705681abff85' AND "clubhouse_memberships"."organization_id" = '20e06350-ced2-11e4-aaac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20df4664-ced2-11e4-ae20-705681abff85"], ["organization_id", "20e06350-ced2-11e4-aaac-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.801970"], ["updated_at", "2015-03-20 07:24:21.801970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '20e06350-ced2-11e4-aaac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "20e06350-ced2-11e4-aaac-705681abff85"], ["created_at", "2015-03-20 07:24:21.805539"], ["updated_at", "2015-03-20 07:24:21.805539"], ["token", "U_Cwvhxejaa39DTbYZWK8qCKHcUivV5WmDxdZw_lzwI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/20e06350-ced2-11e4-aaac-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:24:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"20e06350-ced2-11e4-aaac-705681abff85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:21.810391' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JIsAE77-jAMSG_QUIZbwF7QeSAeoib04-J-ybOevq4c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:21.811963"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:21.813103"], ["id", "20dfae42-ced2-11e4-bf95-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "20e06350-ced2-11e4-aaac-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20df4664-ced2-11e4-ae20-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "20e06350-ced2-11e4-aaac-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '20df4664-ced2-11e4-ae20-705681abff85' LIMIT 1 [["organization_id", "20e06350-ced2-11e4-aaac-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '20e06350-ced2-11e4-aaac-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "20e06350-ced2-11e4-aaac-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.825422"], ["updated_at", "2015-03-20 07:24:21.825422"], ["token", "NDkTSdNzOPx5Vg7NXTdebeWOSHeLZ8ILOmMhP4WZ8Eo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 45a2b497-a5e4-40cd-827f-2df515819943) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/20e49484-ced2-11e4-ae98-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "20e49484-ced2-11e4-ae98-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [45a2b497-a5e4-40cd-827f-2df515819943] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/20e49484-ced2-11e4-ae98-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [45a2b497-a5e4-40cd-827f-2df515819943] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "20e06350-ced2-11e4-aaac-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [45a2b497-a5e4-40cd-827f-2df515819943] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [45a2b497-a5e4-40cd-827f-2df515819943] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [45a2b497-a5e4-40cd-827f-2df515819943] Sent mail to email@example.com (3.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [45a2b497-a5e4-40cd-827f-2df515819943] Date: Fri, 20 Mar 2015 00:24:21 -0700 From: from@example.com To: email@example.com Message-ID: <550bcb25cb824_11e33ffe99865bf010350@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/NDkTSdNzOPx5Vg7NXTdebeWOSHeLZ8ILOmMhP4WZ8Eo?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [45a2b497-a5e4-40cd-827f-2df515819943] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.24ms Completed 201 Created in 27ms (Views: 1.1ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$YiCd.sg9mn39C9NQmH0esurNo6hcRKdnp4XG7MkLx43kEqL5jXRv6"], ["created_at", "2015-03-20 07:24:21.844619"], ["updated_at", "2015-03-20 07:24:21.844619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.846234"], ["user_id", "20e77bfe-ced2-11e4-9705-705681abff85"], ["created_at", "2015-03-20 07:24:21.847031"], ["updated_at", "2015-03-20 07:24:21.847031"], ["token", "NyaqQfjUi8LO24kS9NtN3nPRNzu29lGNb01GvpgiVeY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.850908"], ["updated_at", "2015-03-20 07:24:21.850908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20e77bfe-ced2-11e4-9705-705681abff85' AND "clubhouse_memberships"."organization_id" = '20e86fb4-ced2-11e4-979b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20e77bfe-ced2-11e4-9705-705681abff85"], ["organization_id", "20e86fb4-ced2-11e4-979b-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.854297"], ["updated_at", "2015-03-20 07:24:21.854297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '20e86fb4-ced2-11e4-979b-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "20e86fb4-ced2-11e4-979b-705681abff85"], ["created_at", "2015-03-20 07:24:21.857557"], ["updated_at", "2015-03-20 07:24:21.857557"], ["token", "aNDodJS5CBNmVSkmcx8wYNMjbs3690hoPVWhd1LBlv4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/20e86fb4-ced2-11e4-979b-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:24:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"20e86fb4-ced2-11e4-979b-705681abff85", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:21.863789' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "NyaqQfjUi8LO24kS9NtN3nPRNzu29lGNb01GvpgiVeY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:21.865370"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:21.866421"], ["id", "20e7ec2e-ced2-11e4-8ef9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "20e86fb4-ced2-11e4-979b-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20e77bfe-ced2-11e4-9705-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "20e86fb4-ced2-11e4-979b-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '20e77bfe-ced2-11e4-9705-705681abff85' LIMIT 1 [["organization_id", "20e86fb4-ced2-11e4-979b-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '20e86fb4-ced2-11e4-979b-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$DPXuR5ZsBKANlpTDVXBMKe5XIBArfuYInQHb7cYvGHm9KJjBzIdQO"], ["created_at", "2015-03-20 07:24:21.882638"], ["updated_at", "2015-03-20 07:24:21.882638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.884775"], ["user_id", "20ed5862-ced2-11e4-baad-705681abff85"], ["created_at", "2015-03-20 07:24:21.885848"], ["updated_at", "2015-03-20 07:24:21.885848"], ["token", "9p7vbvOaDnagy4X1vC6LdDny4c9arpxORXfDeHeXRwc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.889414"], ["updated_at", "2015-03-20 07:24:21.889414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20ed5862-ced2-11e4-baad-705681abff85' AND "clubhouse_memberships"."organization_id" = '20ee4f7e-ced2-11e4-90ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20ed5862-ced2-11e4-baad-705681abff85"], ["organization_id", "20ee4f7e-ced2-11e4-90ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.892664"], ["updated_at", "2015-03-20 07:24:21.892664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '20ee4f7e-ced2-11e4-90ec-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "20ee4f7e-ced2-11e4-90ec-705681abff85"], ["created_at", "2015-03-20 07:24:21.896403"], ["updated_at", "2015-03-20 07:24:21.896403"], ["token", "TQjtcibPM9HMySaEOvx3BrPKrm_IaMN1UCOm1p9zMfo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-03-20 00:24:21 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$A909acTO1oC1I1ps//vVjeeEud0ZFe6rxYUyxGpZa/NK/J7PDH7Qi"], ["created_at", "2015-03-20 07:24:21.907296"], ["updated_at", "2015-03-20 07:24:21.907296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.908901"], ["user_id", "20f10d22-ced2-11e4-9842-705681abff85"], ["created_at", "2015-03-20 07:24:21.909671"], ["updated_at", "2015-03-20 07:24:21.909671"], ["token", "ug4STLc5OHWBXFogyz068VEK-Elf2Cq73B7ggMXmTCo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.913216"], ["updated_at", "2015-03-20 07:24:21.913216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20f10d22-ced2-11e4-9842-705681abff85' AND "clubhouse_memberships"."organization_id" = '20f1f5fc-ced2-11e4-a238-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20f10d22-ced2-11e4-9842-705681abff85"], ["organization_id", "20f1f5fc-ced2-11e4-a238-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.916842"], ["updated_at", "2015-03-20 07:24:21.916842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '20f1f5fc-ced2-11e4-a238-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "20f1f5fc-ced2-11e4-a238-705681abff85"], ["created_at", "2015-03-20 07:24:21.921326"], ["updated_at", "2015-03-20 07:24:21.921326"], ["token", "5qbeeV5xuE0InInO-99GJEKkL9CIcNwCtr5nQvkfPes"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/20f33444-ced2-11e4-be37-705681abff85" for 127.0.0.1 at 2015-03-20 00:24:21 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"20f33444-ced2-11e4-be37-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:21.926103' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ug4STLc5OHWBXFogyz068VEK-Elf2Cq73B7ggMXmTCo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:21.927561"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:21.928605"], ["id", "20f16dd0-ced2-11e4-b68c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "20f33444-ced2-11e4-be37-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20f10d22-ced2-11e4-9842-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "20f1f5fc-ced2-11e4-a238-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '20f10d22-ced2-11e4-9842-705681abff85' LIMIT 1 [["organization_id", "20f1f5fc-ced2-11e4-a238-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "20f33444-ced2-11e4-be37-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$SzDdqb1H5MQd9kgvcZBL6eSi6dT.55Tb8ojn3Jk7u.myljxiLB4LO"], ["created_at", "2015-03-20 07:24:21.940770"], ["updated_at", "2015-03-20 07:24:21.940770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.942434"], ["user_id", "20f62a46-ced2-11e4-b50c-705681abff85"], ["created_at", "2015-03-20 07:24:21.943237"], ["updated_at", "2015-03-20 07:24:21.943237"], ["token", "ETESo6_eMGyZgqnDxTidNi9ycI4vqK-Wl9AM3Mk0dRU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.946922"], ["updated_at", "2015-03-20 07:24:21.946922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20f62a46-ced2-11e4-b50c-705681abff85' AND "clubhouse_memberships"."organization_id" = '20f71582-ced2-11e4-8a35-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20f62a46-ced2-11e4-b50c-705681abff85"], ["organization_id", "20f71582-ced2-11e4-8a35-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.950274"], ["updated_at", "2015-03-20 07:24:21.950274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '20f71582-ced2-11e4-8a35-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "20f71582-ced2-11e4-8a35-705681abff85"], ["created_at", "2015-03-20 07:24:21.954114"], ["updated_at", "2015-03-20 07:24:21.954114"], ["token", "tOuQ7Oahey96wnSZsBmcZYnXqAe6IF9bjhEOVVTuRMk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-03-20 00:24:21 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$/ufbsEHEHxd5vY4XOAuhkeb5WqL3x0WIqFd32ZFrZidk70SEHw02e"], ["created_at", "2015-03-20 07:24:21.964400"], ["updated_at", "2015-03-20 07:24:21.964400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.966180"], ["user_id", "20f9c8ea-ced2-11e4-bf60-705681abff85"], ["created_at", "2015-03-20 07:24:21.967001"], ["updated_at", "2015-03-20 07:24:21.967001"], ["token", "aql35Huv2tG3hfjateXoWuO1QCY3JvpN--425fzDzsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:21.970349"], ["updated_at", "2015-03-20 07:24:21.970349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20f9c8ea-ced2-11e4-bf60-705681abff85' AND "clubhouse_memberships"."organization_id" = '20faaf62-ced2-11e4-8580-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20f9c8ea-ced2-11e4-bf60-705681abff85"], ["organization_id", "20faaf62-ced2-11e4-8580-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:21.974078"], ["updated_at", "2015-03-20 07:24:21.974078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '20faaf62-ced2-11e4-8580-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "20faaf62-ced2-11e4-8580-705681abff85"], ["created_at", "2015-03-20 07:24:21.977631"], ["updated_at", "2015-03-20 07:24:21.977631"], ["token", "dkGAaI9jaYGCF69bXChkl39v7zfcRvcTUJxiITTe30A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/20fbca14-ced2-11e4-9937-705681abff85" for 127.0.0.1 at 2015-03-20 00:24:21 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"20fbca14-ced2-11e4-9937-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:21.982152' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "aql35Huv2tG3hfjateXoWuO1QCY3JvpN--425fzDzsA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:21.983662"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:21.984727"], ["id", "20fa2eac-ced2-11e4-ab99-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "20fbca14-ced2-11e4-9937-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20f9c8ea-ced2-11e4-bf60-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "20faaf62-ced2-11e4-8580-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '20f9c8ea-ced2-11e4-bf60-705681abff85' LIMIT 1 [["organization_id", "20faaf62-ced2-11e4-8580-705681abff85"]] Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$g.W9mCC.34M/pdAWwlSL9OvdslnfL9/CcNQKNPTQfYtXmF8bE2Y8C"], ["created_at", "2015-03-20 07:24:21.997625"], ["updated_at", "2015-03-20 07:24:21.997625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:21.999536"], ["user_id", "20fedc54-ced2-11e4-bcbd-705681abff85"], ["created_at", "2015-03-20 07:24:22.000375"], ["updated_at", "2015-03-20 07:24:22.000375"], ["token", "k8Wxmmgbp1BnBPuR8ZFBwmzeMpATATPUW7DjeypFb7A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.004510"], ["updated_at", "2015-03-20 07:24:22.004510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20fedc54-ced2-11e4-bcbd-705681abff85' AND "clubhouse_memberships"."organization_id" = '20ffe11c-ced2-11e4-9308-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20fedc54-ced2-11e4-bcbd-705681abff85"], ["organization_id", "20ffe11c-ced2-11e4-9308-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.008022"], ["updated_at", "2015-03-20 07:24:22.008022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '20ffe11c-ced2-11e4-9308-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "20ffe11c-ced2-11e4-9308-705681abff85"], ["created_at", "2015-03-20 07:24:22.011713"], ["updated_at", "2015-03-20 07:24:22.011713"], ["token", "MidJhSaBBc8AljW88xRUJKvbJD-vDgf9wttRIalJKbI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$jpxW42pdMxO1zxhNXtR91OflIkJhqpQmlBoOsZdo0BcZw1GPL/8uu"], ["created_at", "2015-03-20 07:24:22.016325"], ["updated_at", "2015-03-20 07:24:22.016325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.019573"], ["updated_at", "2015-03-20 07:24:22.019573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2101af88-ced2-11e4-92cb-705681abff85' AND "clubhouse_memberships"."organization_id" = '21022cce-ced2-11e4-a68a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2101af88-ced2-11e4-92cb-705681abff85"], ["organization_id", "21022cce-ced2-11e4-a68a-705681abff85"], ["created_at", "2015-03-20 07:24:22.023077"], ["updated_at", "2015-03-20 07:24:22.023077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$mqCLTD.m7qDfial1psWZEe02h6UHu5F.4EKOE2BYV0DySQtQUt76i"], ["created_at", "2015-03-20 07:24:22.033508"], ["updated_at", "2015-03-20 07:24:22.033508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.035387"], ["user_id", "21045044-ced2-11e4-9444-705681abff85"], ["created_at", "2015-03-20 07:24:22.036469"], ["updated_at", "2015-03-20 07:24:22.036469"], ["token", "ZQT_kj-XF-9vZLq_nj2-Lv4HK-fGdpCq9SgPj7VwIAg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.040348"], ["updated_at", "2015-03-20 07:24:22.040348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21045044-ced2-11e4-9444-705681abff85' AND "clubhouse_memberships"."organization_id" = '21055976-ced2-11e4-abb4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21045044-ced2-11e4-9444-705681abff85"], ["organization_id", "21055976-ced2-11e4-abb4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.043614"], ["updated_at", "2015-03-20 07:24:22.043614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '21055976-ced2-11e4-abb4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "21055976-ced2-11e4-abb4-705681abff85"], ["created_at", "2015-03-20 07:24:22.047689"], ["updated_at", "2015-03-20 07:24:22.047689"], ["token", "8QHaJrRhJgsZH7r4MPoz0jeH8zdwrkxxdvG7q7V1Bbs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$RuQFo.DkDBb38Id.3dGjMe4nk4vq5GhuuLtHW9L5HMf3r/Fpj.Y9W"], ["created_at", "2015-03-20 07:24:22.052983"], ["updated_at", "2015-03-20 07:24:22.052983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.056813"], ["updated_at", "2015-03-20 07:24:22.056813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21075032-ced2-11e4-b286-705681abff85' AND "clubhouse_memberships"."organization_id" = '2107f0a0-ced2-11e4-9637-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "21075032-ced2-11e4-b286-705681abff85"], ["organization_id", "2107f0a0-ced2-11e4-9637-705681abff85"], ["created_at", "2015-03-20 07:24:22.060765"], ["updated_at", "2015-03-20 07:24:22.060765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/21055976-ced2-11e4-abb4-705681abff85/invitations" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"21055976-ced2-11e4-abb4-705681abff85", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.065708' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZQT_kj-XF-9vZLq_nj2-Lv4HK-fGdpCq9SgPj7VwIAg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.067248"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.068528"], ["id", "2104d03c-ced2-11e4-be70-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "21055976-ced2-11e4-abb4-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "21045044-ced2-11e4-9444-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '21045044-ced2-11e4-9444-705681abff85' LIMIT 1 [["organization_id", "21055976-ced2-11e4-abb4-705681abff85"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "21055976-ced2-11e4-abb4-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "21055976-ced2-11e4-abb4-705681abff85"]] Completed 200 OK in 11ms (Views: 2.0ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$ZdV9UNdXzUeZg3pjAm.jeet2EYcDgfgz/WuoP.8GB5vgW2H6X2BLC"], ["created_at", "2015-03-20 07:24:22.083366"], ["updated_at", "2015-03-20 07:24:22.083366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.085180"], ["user_id", "210bef5c-ced2-11e4-a65c-705681abff85"], ["created_at", "2015-03-20 07:24:22.086305"], ["updated_at", "2015-03-20 07:24:22.086305"], ["token", "H9-nVQ6X1JgqZ7MrcIzkPNed2gKhaCWbg9rQ_4QfMJU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.090300"], ["updated_at", "2015-03-20 07:24:22.090300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '210bef5c-ced2-11e4-a65c-705681abff85' AND "clubhouse_memberships"."organization_id" = '210cf898-ced2-11e4-bb41-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "210bef5c-ced2-11e4-a65c-705681abff85"], ["organization_id", "210cf898-ced2-11e4-bb41-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.093699"], ["updated_at", "2015-03-20 07:24:22.093699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '210cf898-ced2-11e4-bb41-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "210cf898-ced2-11e4-bb41-705681abff85"], ["created_at", "2015-03-20 07:24:22.097131"], ["updated_at", "2015-03-20 07:24:22.097131"], ["token", "8NgzlhAgxYeg8G1fQwL5B1pMB1weiE1606pE3TDn2sc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$nvn1bztOY3k722pSpmxGNOoaAChqIifm5xmU1iRupYKswDBYoeib."], ["created_at", "2015-03-20 07:24:22.108020"], ["updated_at", "2015-03-20 07:24:22.108020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.109638"], ["user_id", "210fad7c-ced2-11e4-a2c0-705681abff85"], ["created_at", "2015-03-20 07:24:22.110436"], ["updated_at", "2015-03-20 07:24:22.110436"], ["token", "9dWn6DvF9RUruYVoMntv6B3EjkyTAxU_g8Cd4TARyUk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.113811"], ["updated_at", "2015-03-20 07:24:22.113811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '210fad7c-ced2-11e4-a2c0-705681abff85' AND "clubhouse_memberships"."organization_id" = '2110914c-ced2-11e4-94d0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "210fad7c-ced2-11e4-a2c0-705681abff85"], ["organization_id", "2110914c-ced2-11e4-94d0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.117268"], ["updated_at", "2015-03-20 07:24:22.117268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '2110914c-ced2-11e4-94d0-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "2110914c-ced2-11e4-94d0-705681abff85"], ["created_at", "2015-03-20 07:24:22.121101"], ["updated_at", "2015-03-20 07:24:22.121101"], ["token", "R2ED9nCiJNuuT3fegnS5Td9gEhKA9wpek-G9OGPVOVI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/2111b752-ced2-11e4-acab-705681abff85" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"2111b752-ced2-11e4-acab-705681abff85", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.127367' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "9dWn6DvF9RUruYVoMntv6B3EjkyTAxU_g8Cd4TARyUk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.128910"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.130481"], ["id", "211010f0-ced2-11e4-9aae-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2111b752-ced2-11e4-acab-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "210fad7c-ced2-11e4-a2c0-705681abff85"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2110914c-ced2-11e4-94d0-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '210fad7c-ced2-11e4-a2c0-705681abff85' LIMIT 1 [["organization_id", "2110914c-ced2-11e4-94d0-705681abff85"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."id" != '2111b752-ced2-11e4-acab-705681abff85' AND "clubhouse_invitations"."organization_id" = '2110914c-ced2-11e4-94d0-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 07:24:22.142694"], ["id", "2111b752-ced2-11e4-acab-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.3ms | ActiveRecord: 3.2ms)  (19.1ms) ROLLBACK  (2.4ms) BEGIN  (2.3ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$Fpk5c/2rbHHK77lGKcxxceACmhwLoKlESo7eaczjZVGOLldEecmvO"], ["created_at", "2015-03-20 07:24:22.195214"], ["updated_at", "2015-03-20 07:24:22.195214"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.200332"], ["user_id", "211d3712-ced2-11e4-a8c8-705681abff85"], ["created_at", "2015-03-20 07:24:22.202141"], ["updated_at", "2015-03-20 07:24:22.202141"], ["token", "eV5jH9sNrtJvmG9K1S3D7vmfj_oqBZw0ePHk699BaRc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.208964"], ["updated_at", "2015-03-20 07:24:22.208964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '211d3712-ced2-11e4-a8c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '211f2356-ced2-11e4-96bf-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "211d3712-ced2-11e4-a8c8-705681abff85"], ["organization_id", "211f2356-ced2-11e4-96bf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.214911"], ["updated_at", "2015-03-20 07:24:22.214911"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '211f2356-ced2-11e4-96bf-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "211f2356-ced2-11e4-96bf-705681abff85"], ["created_at", "2015-03-20 07:24:22.224320"], ["updated_at", "2015-03-20 07:24:22.224320"], ["token", "-DZDQU0dPOA5kiAfTfr2duuceevCLkSiZTUyhINwxQs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$PL6WMRu5pJo/4kmZD.CHge6P0saa9olym.EGhoscwY6cuSwFMXT.a"], ["created_at", "2015-03-20 07:24:22.241290"], ["updated_at", "2015-03-20 07:24:22.241290"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.245150"], ["user_id", "2124344a-ced2-11e4-8a83-705681abff85"], ["created_at", "2015-03-20 07:24:22.246873"], ["updated_at", "2015-03-20 07:24:22.246873"], ["token", "UH_2qC9m9NlpyfEyvwK0hiNu-mJPzkLX3UFQwCMuwOI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.255582"], ["updated_at", "2015-03-20 07:24:22.255582"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2124344a-ced2-11e4-8a83-705681abff85' AND "clubhouse_memberships"."organization_id" = '21264bae-ced2-11e4-bddc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2124344a-ced2-11e4-8a83-705681abff85"], ["organization_id", "21264bae-ced2-11e4-bddc-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.263334"], ["updated_at", "2015-03-20 07:24:22.263334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '21264bae-ced2-11e4-bddc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "21264bae-ced2-11e4-bddc-705681abff85"], ["created_at", "2015-03-20 07:24:22.268782"], ["updated_at", "2015-03-20 07:24:22.268782"], ["token", "BsX4e1gC04kiI7QRiv65t6lBNXLtDMbQnUE6wKj88PQ"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.278269' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UH_2qC9m9NlpyfEyvwK0hiNu-mJPzkLX3UFQwCMuwOI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.280181"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.281403"], ["id", "212523aa-ced2-11e4-9e60-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2124344a-ced2-11e4-8a83-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "21264bae-ced2-11e4-bddc-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2124344a-ced2-11e4-8a83-705681abff85' LIMIT 1 [["organization_id", "21264bae-ced2-11e4-bddc-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '21264bae-ced2-11e4-bddc-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "21264bae-ced2-11e4-bddc-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.292464"], ["updated_at", "2015-03-20 07:24:22.292464"], ["token", "dcW3hWgQlpnJ0tQxuNnQgLM30bUmhkinK3v370yUXvA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b37d59eb-1447-4998-927b-4f52a82dc3f1) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/212bf87e-ced2-11e4-9d9d-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "212bf87e-ced2-11e4-9d9d-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b37d59eb-1447-4998-927b-4f52a82dc3f1] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/212bf87e-ced2-11e4-9d9d-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [b37d59eb-1447-4998-927b-4f52a82dc3f1] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "21264bae-ced2-11e4-bddc-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [b37d59eb-1447-4998-927b-4f52a82dc3f1] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [b37d59eb-1447-4998-927b-4f52a82dc3f1] Clubhouse::Mailer#invitation: processed outbound mail in 3.7ms [ActiveJob] [ActionMailer::DeliveryJob] [b37d59eb-1447-4998-927b-4f52a82dc3f1] Sent mail to email@example.com (2.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [b37d59eb-1447-4998-927b-4f52a82dc3f1] Date: Fri, 20 Mar 2015 00:24:22 -0700 From: from@example.com To: email@example.com Message-ID: <550bcb264a58b_11e33ffe99865bf0104e4@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/dcW3hWgQlpnJ0tQxuNnQgLM30bUmhkinK3v370yUXvA?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b37d59eb-1447-4998-927b-4f52a82dc3f1] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.14ms Completed 201 Created in 30ms (Views: 1.4ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$y0TzzxwqeMwHwPZLlT92G.FGbztgXw/LOASU8yxL.KsGrgJktK0b2"], ["created_at", "2015-03-20 07:24:22.315352"], ["updated_at", "2015-03-20 07:24:22.315352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.319101"], ["user_id", "212f684c-ced2-11e4-87e8-705681abff85"], ["created_at", "2015-03-20 07:24:22.320789"], ["updated_at", "2015-03-20 07:24:22.320789"], ["token", "pRytrYwV7FFtwmJMYJFqi3rCoCkmGB9s8aubGY0apvs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.328224"], ["updated_at", "2015-03-20 07:24:22.328224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '212f684c-ced2-11e4-87e8-705681abff85' AND "clubhouse_memberships"."organization_id" = '21315e40-ced2-11e4-adbb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "212f684c-ced2-11e4-87e8-705681abff85"], ["organization_id", "21315e40-ced2-11e4-adbb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.334628"], ["updated_at", "2015-03-20 07:24:22.334628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '21315e40-ced2-11e4-adbb-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "21315e40-ced2-11e4-adbb-705681abff85"], ["created_at", "2015-03-20 07:24:22.342633"], ["updated_at", "2015-03-20 07:24:22.342633"], ["token", "8480c3c5P0kODDEvVl9MFXBeokJIT4Z-1m3opGped9w"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.363536' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "pRytrYwV7FFtwmJMYJFqi3rCoCkmGB9s8aubGY0apvs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.365765"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.367685"], ["id", "213061de-ced2-11e4-b4fe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "212f684c-ced2-11e4-87e8-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "21315e40-ced2-11e4-adbb-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '212f684c-ced2-11e4-87e8-705681abff85' LIMIT 1 [["organization_id", "21315e40-ced2-11e4-adbb-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '21315e40-ced2-11e4-adbb-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "21315e40-ced2-11e4-adbb-705681abff85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.391628"], ["updated_at", "2015-03-20 07:24:22.391628"], ["token", "ZARzpe7epjWUt3hvMavJ5wpmvMm0e9NpDYSepJSNs-I"]]  (2.6ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a5f1d7bc-eb2d-458c-9165-daf9379f8d90) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/213b2696-ced2-11e4-b673-705681abff85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "213b2696-ced2-11e4-b673-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a5f1d7bc-eb2d-458c-9165-daf9379f8d90] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/213b2696-ced2-11e4-b673-705681abff85 [ActiveJob] [ActionMailer::DeliveryJob] [a5f1d7bc-eb2d-458c-9165-daf9379f8d90] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "21315e40-ced2-11e4-adbb-705681abff85"]] [ActiveJob] [ActionMailer::DeliveryJob] [a5f1d7bc-eb2d-458c-9165-daf9379f8d90] Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [a5f1d7bc-eb2d-458c-9165-daf9379f8d90] Clubhouse::Mailer#invitation: processed outbound mail in 18.3ms [ActiveJob] [ActionMailer::DeliveryJob] [a5f1d7bc-eb2d-458c-9165-daf9379f8d90] Sent mail to email@example.com (10.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [a5f1d7bc-eb2d-458c-9165-daf9379f8d90] Date: Fri, 20 Mar 2015 00:24:22 -0700 From: from@example.com To: email@example.com Message-ID: <550bcb2668c97_11e33ffe99865bf01057e@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/ZARzpe7epjWUt3hvMavJ5wpmvMm0e9NpDYSepJSNs-I?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a5f1d7bc-eb2d-458c-9165-daf9379f8d90] Performed ActionMailer::DeliveryJob from Inline(mailers) in 30.45ms Completed 201 Created in 80ms (Views: 4.0ms | ActiveRecord: 6.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$q/2NTsPz2KeuGNHS5mY8cO8YXCZG.wdO8qWHO5CLyPHaNbFe0k06m"], ["created_at", "2015-03-20 07:24:22.460725"], ["updated_at", "2015-03-20 07:24:22.460725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.462483"], ["user_id", "2145835c-ced2-11e4-a097-705681abff85"], ["created_at", "2015-03-20 07:24:22.463586"], ["updated_at", "2015-03-20 07:24:22.463586"], ["token", "ohTfRfiM-O47A1zxeYK9IkRdLfPXscp5ocuiuU633CI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.468794"], ["updated_at", "2015-03-20 07:24:22.468794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2145835c-ced2-11e4-a097-705681abff85' AND "clubhouse_memberships"."organization_id" = '2146c1fe-ced2-11e4-a4d4-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2145835c-ced2-11e4-a097-705681abff85"], ["organization_id", "2146c1fe-ced2-11e4-a4d4-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.473434"], ["updated_at", "2015-03-20 07:24:22.473434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '2146c1fe-ced2-11e4-a4d4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "2146c1fe-ced2-11e4-a4d4-705681abff85"], ["created_at", "2015-03-20 07:24:22.477171"], ["updated_at", "2015-03-20 07:24:22.477171"], ["token", "p63RwOumXG55j1MjhuOGlW0KCZctq40-B9QV7sO_oDY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.484802' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ohTfRfiM-O47A1zxeYK9IkRdLfPXscp5ocuiuU633CI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.486670"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.488690"], ["id", "2145f918-ced2-11e4-b5b7-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2145835c-ced2-11e4-a097-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2146c1fe-ced2-11e4-a4d4-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2145835c-ced2-11e4-a097-705681abff85' LIMIT 1 [["organization_id", "2146c1fe-ced2-11e4-a4d4-705681abff85"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '2146c1fe-ced2-11e4-a4d4-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$EIB5c9RoD5MLB3hIPTfxxOodtMH.bxlcG9KkdAv88d4JwFJTbVjVG"], ["created_at", "2015-03-20 07:24:22.506136"], ["updated_at", "2015-03-20 07:24:22.506136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.509941"], ["updated_at", "2015-03-20 07:24:22.509941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '214c6cbc-ced2-11e4-9003-705681abff85' AND "clubhouse_memberships"."organization_id" = '214d001e-ced2-11e4-87d2-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "214c6cbc-ced2-11e4-9003-705681abff85"], ["organization_id", "214d001e-ced2-11e4-87d2-705681abff85"], ["created_at", "2015-03-20 07:24:22.512721"], ["updated_at", "2015-03-20 07:24:22.512721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "214c6cbc-ced2-11e4-9003-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "214d001e-ced2-11e4-87d2-705681abff85"]] Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '214c6cbc-ced2-11e4-9003-705681abff85' AND "clubhouse_memberships"."organization_id" = '214d001e-ced2-11e4-87d2-705681abff85') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "214d001e-ced2-11e4-87d2-705681abff86"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '214c6cbc-ced2-11e4-9003-705681abff85' AND "clubhouse_memberships"."organization_id" = '214d001e-ced2-11e4-87d2-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$tTfnU5bzhX4CK0llfsCB1u2AHC.VxBORykMOOVxbJ2TCJkN0U7KZq"], ["created_at", "2015-03-20 07:24:22.551468"], ["updated_at", "2015-03-20 07:24:22.551468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.553884"], ["user_id", "2153630a-ced2-11e4-8406-705681abff85"], ["created_at", "2015-03-20 07:24:22.555109"], ["updated_at", "2015-03-20 07:24:22.555109"], ["token", "IwabsOcLt90JyTXd4CnumV-AbtQLq-s41n9lYhTodRg"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.563769"], ["updated_at", "2015-03-20 07:24:22.563769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2153630a-ced2-11e4-8406-705681abff85' AND "clubhouse_memberships"."organization_id" = '215552be-ced2-11e4-bea7-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2153630a-ced2-11e4-8406-705681abff85"], ["organization_id", "215552be-ced2-11e4-bea7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.568291"], ["updated_at", "2015-03-20 07:24:22.568291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$5mBRx0wpUsksPRiZckDr9.oVilQpvvyDB1ceydWXjgsG99Caddxl2"], ["created_at", "2015-03-20 07:24:22.586066"], ["updated_at", "2015-03-20 07:24:22.586066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.588119"], ["user_id", "2158aa40-ced2-11e4-9ffe-705681abff85"], ["created_at", "2015-03-20 07:24:22.589110"], ["updated_at", "2015-03-20 07:24:22.589110"], ["token", "d0toIvrjK5rnULSu0fRbj-mGDuvHx9TqfPmCKrR-ZBM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.595511"], ["updated_at", "2015-03-20 07:24:22.595511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2158aa40-ced2-11e4-9ffe-705681abff85' AND "clubhouse_memberships"."organization_id" = '215a2a78-ced2-11e4-94fe-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2158aa40-ced2-11e4-9ffe-705681abff85"], ["organization_id", "215a2a78-ced2-11e4-94fe-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.604108"], ["updated_at", "2015-03-20 07:24:22.604108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-7" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-7", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.612036' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "d0toIvrjK5rnULSu0fRbj-mGDuvHx9TqfPmCKrR-ZBM"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.614154"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.615312"], ["id", "215949fa-ced2-11e4-8d80-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-7"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2158aa40-ced2-11e4-9ffe-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2158aa40-ced2-11e4-9ffe-705681abff85' LIMIT 1 [["organization_id", "215a2a78-ced2-11e4-94fe-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '215a2a78-ced2-11e4-94fe-705681abff85') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 07:24:22.622666"], ["id", "215a2a78-ced2-11e4-94fe-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$RGpIpSxskfOFqgA64pIkMeQP7/AwTOkv3/RzCoWxxHbEbhOcgYY2G"], ["created_at", "2015-03-20 07:24:22.630754"], ["updated_at", "2015-03-20 07:24:22.630754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.632486"], ["user_id", "215f7028-ced2-11e4-93dc-705681abff85"], ["created_at", "2015-03-20 07:24:22.633781"], ["updated_at", "2015-03-20 07:24:22.633781"], ["token", "FtEgpt8V9JCZiyxm9GK9WHBaF0vd-6IJaZnt1oXzt-o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.637654"], ["updated_at", "2015-03-20 07:24:22.637654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '215f7028-ced2-11e4-93dc-705681abff85' AND "clubhouse_memberships"."organization_id" = '21608f12-ced2-11e4-9cb0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "215f7028-ced2-11e4-93dc-705681abff85"], ["organization_id", "21608f12-ced2-11e4-9cb0-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.644753"], ["updated_at", "2015-03-20 07:24:22.644753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-8" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-8", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.649698' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FtEgpt8V9JCZiyxm9GK9WHBaF0vd-6IJaZnt1oXzt-o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.651233"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.652443"], ["id", "215ff26e-ced2-11e4-acd8-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-8"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "215f7028-ced2-11e4-93dc-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '215f7028-ced2-11e4-93dc-705681abff85' LIMIT 1 [["organization_id", "21608f12-ced2-11e4-9cb0-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '21608f12-ced2-11e4-9cb0-705681abff85') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$eVys8zsFoTQBe6BBAFFgAOHZh502LH.83Yj.N53b9DYtleKTEGbXm"], ["created_at", "2015-03-20 07:24:22.675083"], ["updated_at", "2015-03-20 07:24:22.675083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.677911"], ["user_id", "21664af6-ced2-11e4-829f-705681abff85"], ["created_at", "2015-03-20 07:24:22.679949"], ["updated_at", "2015-03-20 07:24:22.679949"], ["token", "Ay7XUUIZq4VIkysxORVLZhWOHZJX4AN8_2tWxCIbCjc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.684864"], ["updated_at", "2015-03-20 07:24:22.684864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21664af6-ced2-11e4-829f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2167ba1c-ced2-11e4-91f5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21664af6-ced2-11e4-829f-705681abff85"], ["organization_id", "2167ba1c-ced2-11e4-91f5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.689508"], ["updated_at", "2015-03-20 07:24:22.689508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$HALDlveHW.sThyaNEGUw/elmjjuBnTLxrHDFz8dZPs7dZd3bC6SRG"], ["created_at", "2015-03-20 07:24:22.707218"], ["updated_at", "2015-03-20 07:24:22.707218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.711390"], ["user_id", "216b6edc-ced2-11e4-aeea-705681abff85"], ["created_at", "2015-03-20 07:24:22.712552"], ["updated_at", "2015-03-20 07:24:22.712552"], ["token", "OTU00Ts6f00RN0YOXsj9yTbT5kBILXeKNw-dLkqKpLE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.722842"], ["updated_at", "2015-03-20 07:24:22.722842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '216b6edc-ced2-11e4-aeea-705681abff85' AND "clubhouse_memberships"."organization_id" = '216d9d7e-ced2-11e4-9e34-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "216b6edc-ced2-11e4-aeea-705681abff85"], ["organization_id", "216d9d7e-ced2-11e4-9e34-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.727827"], ["updated_at", "2015-03-20 07:24:22.727827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/216d9d7e-ced2-11e4-9e34-705681abff85" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"216d9d7e-ced2-11e4-9e34-705681abff85", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.735542' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "OTU00Ts6f00RN0YOXsj9yTbT5kBILXeKNw-dLkqKpLE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.738379"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.740390"], ["id", "216c739a-ced2-11e4-a0c9-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "216d9d7e-ced2-11e4-9e34-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "216b6edc-ced2-11e4-aeea-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '216b6edc-ced2-11e4-aeea-705681abff85' LIMIT 1 [["organization_id", "216d9d7e-ced2-11e4-9e34-705681abff85"]] Completed 200 OK in 13ms (Views: 1.5ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$A1v05V2osVa1zhnLgW26ROCWqC6ybiOWPKaEuxQ6aofIQn/au2fSe"], ["created_at", "2015-03-20 07:24:22.757973"], ["updated_at", "2015-03-20 07:24:22.757973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.760818"], ["user_id", "2172f10c-ced2-11e4-a9bc-705681abff85"], ["created_at", "2015-03-20 07:24:22.762323"], ["updated_at", "2015-03-20 07:24:22.762323"], ["token", "VEe4vBJCcG4t-02s4s4S4-CnAPAxgr7XSRzNx6sd6tk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.767952"], ["updated_at", "2015-03-20 07:24:22.767952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2172f10c-ced2-11e4-a9bc-705681abff85' AND "clubhouse_memberships"."organization_id" = '21746172-ced2-11e4-a8e9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2172f10c-ced2-11e4-a9bc-705681abff85"], ["organization_id", "21746172-ced2-11e4-a8e9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.773829"], ["updated_at", "2015-03-20 07:24:22.773829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$aTYYylDYFmD4bSbkayJYvegS/FYByBls6CKdmeOPC9FHK74al0cXG"], ["created_at", "2015-03-20 07:24:22.794496"], ["updated_at", "2015-03-20 07:24:22.794496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.797216"], ["user_id", "2178836a-ced2-11e4-ab87-705681abff85"], ["created_at", "2015-03-20 07:24:22.799089"], ["updated_at", "2015-03-20 07:24:22.799089"], ["token", "h8pn4BefBEOfT9Q7apOLUsu0tx5b7p0zX_-sKyBXNWk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.804250"], ["updated_at", "2015-03-20 07:24:22.804250"]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2178836a-ced2-11e4-ab87-705681abff85' AND "clubhouse_memberships"."organization_id" = '2179fd6c-ced2-11e4-8b11-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2178836a-ced2-11e4-ab87-705681abff85"], ["organization_id", "2179fd6c-ced2-11e4-8b11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.813768"], ["updated_at", "2015-03-20 07:24:22.813768"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/2179fd6c-ced2-11e4-8b11-705681abff85" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"2179fd6c-ced2-11e4-8b11-705681abff85", "organization"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.824820' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "h8pn4BefBEOfT9Q7apOLUsu0tx5b7p0zX_-sKyBXNWk"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.826660"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.827774"], ["id", "21794520-ced2-11e4-a0d5-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2179fd6c-ced2-11e4-8b11-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2178836a-ced2-11e4-ab87-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2178836a-ced2-11e4-ab87-705681abff85' LIMIT 1 [["organization_id", "2179fd6c-ced2-11e4-8b11-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "2179fd6c-ced2-11e4-8b11-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$NTAlFOuaHo0dh3WJtvGVJu.fsv4mkIUYOa8rtL0dTufVqhm5q8e56"], ["created_at", "2015-03-20 07:24:22.843680"], ["updated_at", "2015-03-20 07:24:22.843680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.845483"], ["user_id", "217ff33e-ced2-11e4-bf6e-705681abff85"], ["created_at", "2015-03-20 07:24:22.846380"], ["updated_at", "2015-03-20 07:24:22.846380"], ["token", "h8V-q_OCdCtVdEYILK_LEUsZ6lFHIkUIUDsIe5hxPfw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.849868"], ["updated_at", "2015-03-20 07:24:22.849868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '217ff33e-ced2-11e4-bf6e-705681abff85' AND "clubhouse_memberships"."organization_id" = '2180de8e-ced2-11e4-803c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "217ff33e-ced2-11e4-bf6e-705681abff85"], ["organization_id", "2180de8e-ced2-11e4-803c-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.853416"], ["updated_at", "2015-03-20 07:24:22.853416"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$x.K1aeOM/piwRpYoFBlulu812fTYtLKrmPKXqqTMRzNAbq5DVsrf."], ["created_at", "2015-03-20 07:24:22.866543"], ["updated_at", "2015-03-20 07:24:22.866543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.870046"], ["user_id", "21837f0e-ced2-11e4-9c66-705681abff85"], ["created_at", "2015-03-20 07:24:22.871065"], ["updated_at", "2015-03-20 07:24:22.871065"], ["token", "FkBCOdIgn4AXNYAMFwrrlG1g-UdHGETTExmKo6zyvEw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.879140"], ["updated_at", "2015-03-20 07:24:22.879140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21837f0e-ced2-11e4-9c66-705681abff85' AND "clubhouse_memberships"."organization_id" = '21855e1e-ced2-11e4-9e3e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21837f0e-ced2-11e4-9c66-705681abff85"], ["organization_id", "21855e1e-ced2-11e4-9e3e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.883192"], ["updated_at", "2015-03-20 07:24:22.883192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-14" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.889144' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "FkBCOdIgn4AXNYAMFwrrlG1g-UdHGETTExmKo6zyvEw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.890652"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.891746"], ["id", "2184c396-ced2-11e4-9957-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-14"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "21837f0e-ced2-11e4-9c66-705681abff85"]] Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '21837f0e-ced2-11e4-9c66-705681abff85' LIMIT 1 [["organization_id", "21855e1e-ced2-11e4-9e3e-705681abff85"]] Completed 200 OK in 11ms (Views: 1.2ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$N39.1WwEZwTDQROs7YLRfOVgzCmof4rQAzVPCgRIiDtZq5g4Vi29S"], ["created_at", "2015-03-20 07:24:22.911037"], ["updated_at", "2015-03-20 07:24:22.911037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.913692"], ["user_id", "218a4a50-ced2-11e4-bf71-705681abff85"], ["created_at", "2015-03-20 07:24:22.914988"], ["updated_at", "2015-03-20 07:24:22.914988"], ["token", "HVsq2FE2-D5zs0kReI9_W6YnGdlXcXxdnO78AZ6827Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.922319"], ["updated_at", "2015-03-20 07:24:22.922319"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '218a4a50-ced2-11e4-bf71-705681abff85' AND "clubhouse_memberships"."organization_id" = '218c03d6-ced2-11e4-9153-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "218a4a50-ced2-11e4-bf71-705681abff85"], ["organization_id", "218c03d6-ced2-11e4-9153-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.927985"], ["updated_at", "2015-03-20 07:24:22.927985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$tx8hYl7MXbEGRVsjqGuou.f2RfRPRqHgi76Qm9FHkAv/.yOC24vzO"], ["created_at", "2015-03-20 07:24:22.946481"], ["updated_at", "2015-03-20 07:24:22.946481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.948912"], ["user_id", "218fb8e6-ced2-11e4-abb0-705681abff85"], ["created_at", "2015-03-20 07:24:22.949712"], ["updated_at", "2015-03-20 07:24:22.949712"], ["token", "XDVPL8RvQ8wZNoL0_ubAjuam4gsaOVSn_0DYzMs6CRo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:22.954862"], ["updated_at", "2015-03-20 07:24:22.954862"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '218fb8e6-ced2-11e4-abb0-705681abff85' AND "clubhouse_memberships"."organization_id" = '2190f8d2-ced2-11e4-bc92-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "218fb8e6-ced2-11e4-abb0-705681abff85"], ["organization_id", "2190f8d2-ced2-11e4-bc92-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:22.962578"], ["updated_at", "2015-03-20 07:24:22.962578"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-16" for 127.0.0.1 at 2015-03-20 00:24:22 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-16", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:22.972655' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XDVPL8RvQ8wZNoL0_ubAjuam4gsaOVSn_0DYzMs6CRo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:22.975275"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:22.976965"], ["id", "21902f7e-ced2-11e4-852d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "218fb8e6-ced2-11e4-abb0-705681abff85"]] Completed 200 OK in 10ms (ActiveRecord: 1.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$9Xnl5XsUZz613A53b.kCb.qPE80VVCkgF3I.LL1GGpA1S2CMq/yES"], ["created_at", "2015-03-20 07:24:22.992179"], ["updated_at", "2015-03-20 07:24:22.992179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:22.994086"], ["user_id", "21969c42-ced2-11e4-a84e-705681abff85"], ["created_at", "2015-03-20 07:24:22.994903"], ["updated_at", "2015-03-20 07:24:22.994903"], ["token", "syCVGyD2HT8344v0FbWv6MqFcoxXWForpaZXf5t6-Tw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.000127"], ["updated_at", "2015-03-20 07:24:23.000127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21969c42-ced2-11e4-a84e-705681abff85' AND "clubhouse_memberships"."organization_id" = '2197eeb2-ced2-11e4-a3ee-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21969c42-ced2-11e4-a84e-705681abff85"], ["organization_id", "2197eeb2-ced2-11e4-a3ee-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.007540"], ["updated_at", "2015-03-20 07:24:23.007540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:23.017029' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "syCVGyD2HT8344v0FbWv6MqFcoxXWForpaZXf5t6-Tw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:23.019023"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:23.025588"], ["id", "21970e0c-ced2-11e4-aee4-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 17ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$xcUxSLh7TFQeRflG4g6B4.PsjL4hwJThhXWlD9SxmzqSV0BLyedZS"], ["created_at", "2015-03-20 07:24:23.042559"], ["updated_at", "2015-03-20 07:24:23.042559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:23.045389"], ["user_id", "219e5edc-ced2-11e4-880e-705681abff85"], ["created_at", "2015-03-20 07:24:23.046972"], ["updated_at", "2015-03-20 07:24:23.046972"], ["token", "xaeAH1c5pCtYd7ytJogGnj_jcOEGn3dplGVs-QIgXLc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.054596"], ["updated_at", "2015-03-20 07:24:23.054596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '219e5edc-ced2-11e4-880e-705681abff85' AND "clubhouse_memberships"."organization_id" = '21a03f2c-ced2-11e4-b4b6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "219e5edc-ced2-11e4-880e-705681abff85"], ["organization_id", "21a03f2c-ced2-11e4-b4b6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.060663"], ["updated_at", "2015-03-20 07:24:23.060663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$Bm.xw7G8GNLR0LT2CwrEau2tN6gR/SRvdUb.4GoeSCThL7fzZw5hy"], ["created_at", "2015-03-20 07:24:23.078343"], ["updated_at", "2015-03-20 07:24:23.078343"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:23.081684"], ["user_id", "21a3cd2c-ced2-11e4-a72b-705681abff85"], ["created_at", "2015-03-20 07:24:23.083938"], ["updated_at", "2015-03-20 07:24:23.083938"], ["token", "4UlG9us96_l77zsUolXCDGBPvvIPDW2bFJ8bEVyUVRM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (5.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.095573"], ["updated_at", "2015-03-20 07:24:23.095573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21a3cd2c-ced2-11e4-a72b-705681abff85' AND "clubhouse_memberships"."organization_id" = '21a66d70-ced2-11e4-a57e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21a3cd2c-ced2-11e4-a72b-705681abff85"], ["organization_id", "21a66d70-ced2-11e4-a57e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.100302"], ["updated_at", "2015-03-20 07:24:23.100302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/21a66d70-ced2-11e4-a57e-705681abff85" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"21a66d70-ced2-11e4-a57e-705681abff85", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:23.108609' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "4UlG9us96_l77zsUolXCDGBPvvIPDW2bFJ8bEVyUVRM"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:23.110885"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:23.112657"], ["id", "21a4ba52-ced2-11e4-b0fa-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "21a66d70-ced2-11e4-a57e-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "21a3cd2c-ced2-11e4-a72b-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '21a3cd2c-ced2-11e4-a72b-705681abff85' LIMIT 1 [["organization_id", "21a66d70-ced2-11e4-a57e-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '21a66d70-ced2-11e4-a57e-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-03-20 07:24:23.126816"], ["id", "21a66d70-ced2-11e4-a57e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 0.7ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$wtyp.0mb1oUQ9BZgbkWRwOkFfrC8l4wtQFUtA6gVluLi9.3QMnFu6"], ["created_at", "2015-03-20 07:24:23.141663"], ["updated_at", "2015-03-20 07:24:23.141663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:23.144439"], ["user_id", "21ad89c0-ced2-11e4-abae-705681abff85"], ["created_at", "2015-03-20 07:24:23.145240"], ["updated_at", "2015-03-20 07:24:23.145240"], ["token", "HeJmHPk-zGHgR0G8do0L-eJddapirTPQy5ysVa39R1E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.150057"], ["updated_at", "2015-03-20 07:24:23.150057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21ad89c0-ced2-11e4-abae-705681abff85' AND "clubhouse_memberships"."organization_id" = '21aec024-ced2-11e4-9967-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21ad89c0-ced2-11e4-abae-705681abff85"], ["organization_id", "21aec024-ced2-11e4-9967-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.159838"], ["updated_at", "2015-03-20 07:24:23.159838"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/21aec024-ced2-11e4-9967-705681abff85" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"21aec024-ced2-11e4-9967-705681abff85", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:23.167016' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "HeJmHPk-zGHgR0G8do0L-eJddapirTPQy5ysVa39R1E"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:23.168499"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:23.170129"], ["id", "21adf9f0-ced2-11e4-93b2-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "21aec024-ced2-11e4-9967-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "21ad89c0-ced2-11e4-abae-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '21ad89c0-ced2-11e4-abae-705681abff85' LIMIT 1 [["organization_id", "21aec024-ced2-11e4-9967-705681abff85"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '21aec024-ced2-11e4-9967-705681abff85') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 44ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$/RVmBT.XFbatCvjOC1TPbOL4qxeO1YdN0f1lltIMUzk8Z/0G2dN7W"], ["created_at", "2015-03-20 07:24:23.220411"], ["updated_at", "2015-03-20 07:24:23.220411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:23.223001"], ["user_id", "21b97c62-ced2-11e4-a689-705681abff85"], ["created_at", "2015-03-20 07:24:23.224056"], ["updated_at", "2015-03-20 07:24:23.224056"], ["token", "9KQnY5YsFPk0PdRWyfCAuoEHiigtDoL0zL5tH0udbxQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.227993"], ["updated_at", "2015-03-20 07:24:23.227993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21b97c62-ced2-11e4-a689-705681abff85' AND "clubhouse_memberships"."organization_id" = '21baa24a-ced2-11e4-ab11-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21b97c62-ced2-11e4-a689-705681abff85"], ["organization_id", "21baa24a-ced2-11e4-ab11-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.232289"], ["updated_at", "2015-03-20 07:24:23.232289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$39VV9DNlLgV.YDlu8Bmbl.UsrQBTZmWHaLreJquNT0K5EY0utR6yO"], ["created_at", "2015-03-20 07:24:23.244249"], ["updated_at", "2015-03-20 07:24:23.244249"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:23.247955"], ["user_id", "21bd2b32-ced2-11e4-9145-705681abff85"], ["created_at", "2015-03-20 07:24:23.249936"], ["updated_at", "2015-03-20 07:24:23.249936"], ["token", "GmOICbwY6zfjimjs-Xi9m1pJdWrTTIe3QQaTVZtsxtg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.254317"], ["updated_at", "2015-03-20 07:24:23.254317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21bd2b32-ced2-11e4-9145-705681abff85' AND "clubhouse_memberships"."organization_id" = '21be979c-ced2-11e4-9364-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21bd2b32-ced2-11e4-9145-705681abff85"], ["organization_id", "21be979c-ced2-11e4-9364-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.259159"], ["updated_at", "2015-03-20 07:24:23.259159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:23.264401' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "GmOICbwY6zfjimjs-Xi9m1pJdWrTTIe3QQaTVZtsxtg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:23.266574"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:23.267972"], ["id", "21be0c96-ced2-11e4-9a7b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "21bd2b32-ced2-11e4-9145-705681abff85"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.281725"], ["updated_at", "2015-03-20 07:24:23.281725"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "21c2d816-ced2-11e4-afde-705681abff85"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21bd2b32-ced2-11e4-9145-705681abff85' AND "clubhouse_memberships"."organization_id" = '21c2d816-ced2-11e4-afde-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21bd2b32-ced2-11e4-9145-705681abff85"], ["admin", "t"], ["organization_id", "21c2d816-ced2-11e4-afde-705681abff85"], ["created_at", "2015-03-20 07:24:23.287297"], ["updated_at", "2015-03-20 07:24:23.287297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 0.6ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$SeQDBqltmEui7e3UKn6cNeSOPoRVOeRm4Vr8Eoh9j.09A2uAzesAi"], ["created_at", "2015-03-20 07:24:23.298204"], ["updated_at", "2015-03-20 07:24:23.298204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:23.300712"], ["user_id", "21c55488-ced2-11e4-85a7-705681abff85"], ["created_at", "2015-03-20 07:24:23.304496"], ["updated_at", "2015-03-20 07:24:23.304496"], ["token", "MPTXscuDzZ8tupmAPnuV26qVeHOBupdj2BtYyROz7RA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.310121"], ["updated_at", "2015-03-20 07:24:23.310121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21c55488-ced2-11e4-85a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '21c7290c-ced2-11e4-a693-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21c55488-ced2-11e4-85a7-705681abff85"], ["organization_id", "21c7290c-ced2-11e4-a693-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.315663"], ["updated_at", "2015-03-20 07:24:23.315663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:23.330012' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "MPTXscuDzZ8tupmAPnuV26qVeHOBupdj2BtYyROz7RA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:23.332114"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:23.333242"], ["id", "21c66ef4-ced2-11e4-977e-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "21c55488-ced2-11e4-85a7-705681abff85"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$nxXoEFgNaZE7goXzRx0VAugIqskRscYe17TBxUCbgXdnL2mPBYi7S"], ["created_at", "2015-03-20 07:24:23.356278"], ["updated_at", "2015-03-20 07:24:23.356278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:23.358139"], ["user_id", "21ce2a5e-ced2-11e4-a330-705681abff85"], ["created_at", "2015-03-20 07:24:23.358997"], ["updated_at", "2015-03-20 07:24:23.358997"], ["token", "pWInt4HDIA5vQg4z-0zas7aRTWPJWrYkjQflaucsvbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.363726"], ["updated_at", "2015-03-20 07:24:23.363726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21ce2a5e-ced2-11e4-a330-705681abff85' AND "clubhouse_memberships"."organization_id" = '21cf5c30-ced2-11e4-8662-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21ce2a5e-ced2-11e4-a330-705681abff85"], ["organization_id", "21cf5c30-ced2-11e4-8662-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.367965"], ["updated_at", "2015-03-20 07:24:23.367965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$jYsmJ90apePcvgdGLvGsUuqTgveCSb3SQCTCvKgfJzQZjkVEJ0qfW"], ["created_at", "2015-03-20 07:24:23.372840"], ["updated_at", "2015-03-20 07:24:23.372840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.377381"], ["updated_at", "2015-03-20 07:24:23.377381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21d0adec-ced2-11e4-b578-705681abff85' AND "clubhouse_memberships"."organization_id" = '21d16cdc-ced2-11e4-8ca1-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "21d0adec-ced2-11e4-b578-705681abff85"], ["organization_id", "21d16cdc-ced2-11e4-8ca1-705681abff85"], ["created_at", "2015-03-20 07:24:23.396125"], ["updated_at", "2015-03-20 07:24:23.396125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$cjN5uTDgw8PIyJHpFP/1EeVo9gQxlypx0MtXX3WeMuHmGggiQzRIS"], ["created_at", "2015-03-20 07:24:23.409670"], ["updated_at", "2015-03-20 07:24:23.409670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:23.411747"], ["user_id", "21d65a62-ced2-11e4-90a8-705681abff85"], ["created_at", "2015-03-20 07:24:23.412829"], ["updated_at", "2015-03-20 07:24:23.412829"], ["token", "JH4MPnk13AKMgsZ_z_e-lqklhbntYPXvl9Dp1l2mtGA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.417159"], ["updated_at", "2015-03-20 07:24:23.417159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21d65a62-ced2-11e4-90a8-705681abff85' AND "clubhouse_memberships"."organization_id" = '21d77118-ced2-11e4-a769-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21d65a62-ced2-11e4-90a8-705681abff85"], ["organization_id", "21d77118-ced2-11e4-a769-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.420970"], ["updated_at", "2015-03-20 07:24:23.420970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$pJjV1iuZbTZYrX37X2YDWeryXLto.Ox6Pf9ylbuSr4Tfk5dFXQdP."], ["created_at", "2015-03-20 07:24:23.429080"], ["updated_at", "2015-03-20 07:24:23.429080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.432633"], ["updated_at", "2015-03-20 07:24:23.432633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21d9488a-ced2-11e4-8272-705681abff85' AND "clubhouse_memberships"."organization_id" = '21d9ca6c-ced2-11e4-9352-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "21d9488a-ced2-11e4-8272-705681abff85"], ["organization_id", "21d9ca6c-ced2-11e4-9352-705681abff85"], ["created_at", "2015-03-20 07:24:23.436014"], ["updated_at", "2015-03-20 07:24:23.436014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:23.443704' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "JH4MPnk13AKMgsZ_z_e-lqklhbntYPXvl9Dp1l2mtGA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:23.445753"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:23.446901"], ["id", "21d6de10-ced2-11e4-b626-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "21d65a62-ced2-11e4-90a8-705681abff85"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "21d65a62-ced2-11e4-90a8-705681abff85"]] Completed 200 OK in 12ms (Views: 3.4ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$b91oCrlG.U3XOjiEeQGGC.x5y0n/YggYZmkLBH3gW1nwTtbawrz4O"], ["created_at", "2015-03-20 07:24:23.463404"], ["updated_at", "2015-03-20 07:24:23.463404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:23.465727"], ["user_id", "21de83ea-ced2-11e4-a384-705681abff85"], ["created_at", "2015-03-20 07:24:23.466692"], ["updated_at", "2015-03-20 07:24:23.466692"], ["token", "iwrjAmog5WfAqzw18Gt--o36YFooE_P1AhCca1kZBrs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.471330"], ["updated_at", "2015-03-20 07:24:23.471330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21de83ea-ced2-11e4-a384-705681abff85' AND "clubhouse_memberships"."organization_id" = '21dfd1dc-ced2-11e4-9f07-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21de83ea-ced2-11e4-a384-705681abff85"], ["organization_id", "21dfd1dc-ced2-11e4-9f07-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.479876"], ["updated_at", "2015-03-20 07:24:23.479876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$wFYasQm/CproE4h4WKQ.yOLL8lIoq/xh4eC3guiE7HaAxPJreGkRu"], ["created_at", "2015-03-20 07:24:23.492457"], ["updated_at", "2015-03-20 07:24:23.492457"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:23.494681"], ["user_id", "21e2f1c8-ced2-11e4-b117-705681abff85"], ["created_at", "2015-03-20 07:24:23.497062"], ["updated_at", "2015-03-20 07:24:23.497062"], ["token", "epgdqKojkObhLpVScSrPRvxpZLho4g7gxcDexfJWPEs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.501400"], ["updated_at", "2015-03-20 07:24:23.501400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21e2f1c8-ced2-11e4-b117-705681abff85' AND "clubhouse_memberships"."organization_id" = '21e44bd6-ced2-11e4-980e-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21e2f1c8-ced2-11e4-b117-705681abff85"], ["organization_id", "21e44bd6-ced2-11e4-980e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.506878"], ["updated_at", "2015-03-20 07:24:23.506878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-29" for 127.0.0.1 at 2015-03-20 00:24:23 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-29", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:23.514330' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "epgdqKojkObhLpVScSrPRvxpZLho4g7gxcDexfJWPEs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:23.515837"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:23.517289"], ["id", "21e3bf86-ced2-11e4-b894-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-29"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "21e2f1c8-ced2-11e4-b117-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '21e2f1c8-ced2-11e4-b117-705681abff85' LIMIT 1 [["organization_id", "21e44bd6-ced2-11e4-980e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "21e44bd6-ced2-11e4-980e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.534412"], ["updated_at", "2015-03-20 07:24:23.534412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.551388"], ["updated_at", "2015-03-20 07:24:23.551388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.604105"], ["updated_at", "2015-03-20 07:24:23.604105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.608901"], ["updated_at", "2015-03-20 07:24:23.608901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "21f4c650-ced2-11e4-a5e4-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.616689"], ["updated_at", "2015-03-20 07:24:23.616689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.626302"], ["updated_at", "2015-03-20 07:24:23.626302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '21f769e6-ced2-11e4-b218-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "21f769e6-ced2-11e4-b218-705681abff85"], ["created_at", "2015-03-20 07:24:23.632626"], ["updated_at", "2015-03-20 07:24:23.632626"], ["token", "dEQbq8IW4hvBkBW4_n1FLj3us4hH0CVsi-F7DUhMakc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.654673"], ["updated_at", "2015-03-20 07:24:23.654673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '21fbad9e-ced2-11e4-9dea-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "21fbad9e-ced2-11e4-9dea-705681abff85"], ["created_at", "2015-03-20 07:24:23.658072"], ["updated_at", "2015-03-20 07:24:23.658072"], ["token", "GZ-AFZ2Y0cBAC0TEs4sk9zRSX4icwejMZq85grEVnOo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "21fbad9e-ced2-11e4-9dea-705681abff85"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '21fbad9e-ced2-11e4-9dea-705681abff85') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "21fbad9e-ced2-11e4-9dea-705681abff86"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '21fbad9e-ced2-11e4-9dea-705681abff86') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$VkhB8frY3r5RYObzPVUGgufBOvwB9DunDUO4CKTVi8RR0PdcFtYy."], ["created_at", "2015-03-20 07:24:23.677917"], ["updated_at", "2015-03-20 07:24:23.677917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$Ecf0PMIEvIWGyuR8w1NcYet.qxLn5pu4qd8V3GbCZQtLqv/WmoXBe"], ["created_at", "2015-03-20 07:24:23.684699"], ["updated_at", "2015-03-20 07:24:23.684699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.688044"], ["updated_at", "2015-03-20 07:24:23.688044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22004520-ced2-11e4-b66f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2200c3b0-ced2-11e4-9cfc-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22004520-ced2-11e4-b66f-705681abff85"], ["organization_id", "2200c3b0-ced2-11e4-9cfc-705681abff85"], ["created_at", "2015-03-20 07:24:23.691658"], ["updated_at", "2015-03-20 07:24:23.691658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '21ff5b56-ced2-11e4-8560-705681abff85' LIMIT 1 [["organization_id", "2200c3b0-ced2-11e4-9cfc-705681abff85"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$5XA/G//JNKsseWek7V5Vp.t5d9u2BIHucObZq5rS8Vj3OOuEUqbfW"], ["created_at", "2015-03-20 07:24:23.700845"], ["updated_at", "2015-03-20 07:24:23.700845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$QeolIDGJfDiCrKMMxl0p8OJekxRF8PBwxdqYP0ndneWHIoWfO2Uye"], ["created_at", "2015-03-20 07:24:23.705299"], ["updated_at", "2015-03-20 07:24:23.705299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.709022"], ["updated_at", "2015-03-20 07:24:23.709022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2203676e-ced2-11e4-99c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2203ff9e-ced2-11e4-b2b4-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2203676e-ced2-11e4-99c2-705681abff85"], ["organization_id", "2203ff9e-ced2-11e4-b2b4-705681abff85"], ["created_at", "2015-03-20 07:24:23.715334"], ["updated_at", "2015-03-20 07:24:23.715334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$/rEnEMmSuzxX7E9m0wH4ouDTTVP4FK2Dzk2JGpUp6UTCMhYoRz03S"], ["created_at", "2015-03-20 07:24:23.721378"], ["updated_at", "2015-03-20 07:24:23.721378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$Jc0d4cLjIpUY2QakmvurQuTOuFbugrff61A0fvYTbA11xaFBPNXGS"], ["created_at", "2015-03-20 07:24:23.725885"], ["updated_at", "2015-03-20 07:24:23.725885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.730160"], ["updated_at", "2015-03-20 07:24:23.730160"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22068ce6-ced2-11e4-b5c8-705681abff85' AND "clubhouse_memberships"."organization_id" = '2207347a-ced2-11e4-9461-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22068ce6-ced2-11e4-b5c8-705681abff85"], ["organization_id", "2207347a-ced2-11e4-9461-705681abff85"], ["created_at", "2015-03-20 07:24:23.735371"], ["updated_at", "2015-03-20 07:24:23.735371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2205db48-ced2-11e4-a280-705681abff85' LIMIT 1 [["organization_id", "2207347a-ced2-11e4-9461-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$wabl9KIOOlAxkOK1b5e9fOKSSC4ESnwJlLQpIZo5uk7yo.n2UaXI."], ["created_at", "2015-03-20 07:24:23.743206"], ["updated_at", "2015-03-20 07:24:23.743206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$wkTKrZibqdFIZATpC6Ev.eo7x749IWvs9Z8VV4VTXdXslDlCLmVvC"], ["created_at", "2015-03-20 07:24:23.749346"], ["updated_at", "2015-03-20 07:24:23.749346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.752977"], ["updated_at", "2015-03-20 07:24:23.752977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '220a2342-ced2-11e4-9779-705681abff85' AND "clubhouse_memberships"."organization_id" = '220aacae-ced2-11e4-8b18-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "220a2342-ced2-11e4-9779-705681abff85"], ["organization_id", "220aacae-ced2-11e4-8b18-705681abff85"], ["created_at", "2015-03-20 07:24:23.756313"], ["updated_at", "2015-03-20 07:24:23.756313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22094530-ced2-11e4-b341-705681abff85' LIMIT 1 [["organization_id", "220aacae-ced2-11e4-8b18-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$utzADmI9YCVcEwboOpowROMX6/lD5grlrTI8m8CgVf711ntSdL8hS"], ["created_at", "2015-03-20 07:24:23.765910"], ["updated_at", "2015-03-20 07:24:23.765910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.769505"], ["updated_at", "2015-03-20 07:24:23.769505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '220cabf8-ced2-11e4-80c1-705681abff85' LIMIT 1 [["organization_id", "220d33fc-ced2-11e4-bab6-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$qvL1ut2QdqromyB/5riH8eXzziqFV5.lM59J8VKrcGm/9VoD6KdYq"], ["created_at", "2015-03-20 07:24:23.777483"], ["updated_at", "2015-03-20 07:24:23.777483"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.783537"], ["updated_at", "2015-03-20 07:24:23.783537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '220e84c8-ced2-11e4-b533-705681abff85' AND "clubhouse_memberships"."organization_id" = '220f5876-ced2-11e4-94bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "220e84c8-ced2-11e4-b533-705681abff85"], ["organization_id", "220f5876-ced2-11e4-94bb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.787364"], ["updated_at", "2015-03-20 07:24:23.787364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$asSlK.YTLNyHrBGf6GRoPefvV/b.k3afsgAq80rCMXpx85kSj7sUu"], ["created_at", "2015-03-20 07:24:23.792559"], ["updated_at", "2015-03-20 07:24:23.792559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2210b8ce-ced2-11e4-bf85-705681abff85' AND "clubhouse_memberships"."organization_id" = '220f5876-ced2-11e4-94bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2210b8ce-ced2-11e4-bf85-705681abff85"], ["organization_id", "220f5876-ced2-11e4-94bb-705681abff85"], ["created_at", "2015-03-20 07:24:23.796932"], ["updated_at", "2015-03-20 07:24:23.796932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '220e84c8-ced2-11e4-b533-705681abff85' LIMIT 1 [["organization_id", "220f5876-ced2-11e4-94bb-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$1CXgs5pAaMt2LYCT41Q5Cu68nf4RZQjJte1ySsrjJkAK97wK6i3oy"], ["created_at", "2015-03-20 07:24:23.805164"], ["updated_at", "2015-03-20 07:24:23.805164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.808316"], ["updated_at", "2015-03-20 07:24:23.808316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2212a3a0-ced2-11e4-b75f-705681abff85' AND "clubhouse_memberships"."organization_id" = '22131c9a-ced2-11e4-aa71-705681abff85') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2212a3a0-ced2-11e4-b75f-705681abff85"], ["organization_id", "22131c9a-ced2-11e4-aa71-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.812802"], ["updated_at", "2015-03-20 07:24:23.812802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$hMbOGDybbLwDaRkxNkixLu8.bQb86rgu9tBuo/dFAkuRc6viiyGny"], ["created_at", "2015-03-20 07:24:23.819587"], ["updated_at", "2015-03-20 07:24:23.819587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2214d832-ced2-11e4-9fb5-705681abff85' AND "clubhouse_memberships"."organization_id" = '22131c9a-ced2-11e4-aa71-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2214d832-ced2-11e4-9fb5-705681abff85"], ["organization_id", "22131c9a-ced2-11e4-aa71-705681abff85"], ["created_at", "2015-03-20 07:24:23.823180"], ["updated_at", "2015-03-20 07:24:23.823180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$eQosCRi4fHTUiw0A5JqmfepgB2a5z5e9lr0eqkCi6y93QU9b8E/da"], ["created_at", "2015-03-20 07:24:23.830799"], ["updated_at", "2015-03-20 07:24:23.830799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.836252"], ["updated_at", "2015-03-20 07:24:23.836252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2216a414-ced2-11e4-bfab-705681abff85' AND "clubhouse_memberships"."organization_id" = '221763f4-ced2-11e4-b5b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2216a414-ced2-11e4-bfab-705681abff85"], ["organization_id", "221763f4-ced2-11e4-b5b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.840057"], ["updated_at", "2015-03-20 07:24:23.840057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$5cJmN9Isd69x7stiYzM.W.utXzaWovXzvt5drnaxcEWIJFPnssVVK"], ["created_at", "2015-03-20 07:24:23.845572"], ["updated_at", "2015-03-20 07:24:23.845572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2218e382-ced2-11e4-a7be-705681abff85' AND "clubhouse_memberships"."organization_id" = '221763f4-ced2-11e4-b5b5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2218e382-ced2-11e4-a7be-705681abff85"], ["organization_id", "221763f4-ced2-11e4-b5b5-705681abff85"], ["created_at", "2015-03-20 07:24:23.850472"], ["updated_at", "2015-03-20 07:24:23.850472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2216a414-ced2-11e4-bfab-705681abff85' LIMIT 1 [["organization_id", "221763f4-ced2-11e4-b5b5-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$GuEad5AgS3e7FHSFW0N2/ueEO/SCwUJZdQXwztBunnXDsLJA.zX7."], ["created_at", "2015-03-20 07:24:23.858073"], ["updated_at", "2015-03-20 07:24:23.858073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.862490"], ["updated_at", "2015-03-20 07:24:23.862490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '221ab69e-ced2-11e4-906a-705681abff85' AND "clubhouse_memberships"."organization_id" = '221b91ea-ced2-11e4-86c2-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "221ab69e-ced2-11e4-906a-705681abff85"], ["organization_id", "221b91ea-ced2-11e4-86c2-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.868132"], ["updated_at", "2015-03-20 07:24:23.868132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$tlpYR4UXwzIiDBIZTa1wpu15ELUNvgAliup2kuZGxGDzEj4s8v5Tm"], ["created_at", "2015-03-20 07:24:23.872924"], ["updated_at", "2015-03-20 07:24:23.872924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '221cfa94-ced2-11e4-bcb9-705681abff85' AND "clubhouse_memberships"."organization_id" = '221b91ea-ced2-11e4-86c2-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "221cfa94-ced2-11e4-bcb9-705681abff85"], ["organization_id", "221b91ea-ced2-11e4-86c2-705681abff85"], ["created_at", "2015-03-20 07:24:23.877047"], ["updated_at", "2015-03-20 07:24:23.877047"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '221ab69e-ced2-11e4-906a-705681abff85' LIMIT 1 [["organization_id", "221b91ea-ced2-11e4-86c2-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$xLq3tDOIen9sJLQklfDjYu3PrfkZ3JBAfbhElOA8FuVQobrDSJ.f2"], ["created_at", "2015-03-20 07:24:23.887140"], ["updated_at", "2015-03-20 07:24:23.887140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.893124"], ["updated_at", "2015-03-20 07:24:23.893124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '221f50fa-ced2-11e4-9e6b-705681abff85' AND "clubhouse_memberships"."organization_id" = '22201490-ced2-11e4-a89d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "221f50fa-ced2-11e4-9e6b-705681abff85"], ["organization_id", "22201490-ced2-11e4-a89d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.897563"], ["updated_at", "2015-03-20 07:24:23.897563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '221f50fa-ced2-11e4-9e6b-705681abff85' LIMIT 1 [["organization_id", "22201490-ced2-11e4-a89d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$HLVaK9Z7CAptzLT0a.LFmOdeKZlogUWtIzcPn5SwCu1XMpS8rkR0e"], ["created_at", "2015-03-20 07:24:23.905861"], ["updated_at", "2015-03-20 07:24:23.905861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.909044"], ["updated_at", "2015-03-20 07:24:23.909044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22220142-ced2-11e4-827e-705681abff85' AND "clubhouse_memberships"."organization_id" = '22227d16-ced2-11e4-b2a8-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22220142-ced2-11e4-827e-705681abff85"], ["organization_id", "22227d16-ced2-11e4-b2a8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.912745"], ["updated_at", "2015-03-20 07:24:23.912745"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22220142-ced2-11e4-827e-705681abff85' LIMIT 1 [["organization_id", "22227d16-ced2-11e4-b2a8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$ROvRNS8ag3Bojby0jMPyZufRjNGJCrblfRwDkaLod6UfDkPg6nu3i"], ["created_at", "2015-03-20 07:24:23.923126"], ["updated_at", "2015-03-20 07:24:23.923126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.926648"], ["updated_at", "2015-03-20 07:24:23.926648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2224a514-ced2-11e4-94ef-705681abff85' AND "clubhouse_memberships"."organization_id" = '22253e48-ced2-11e4-af80-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2224a514-ced2-11e4-94ef-705681abff85"], ["organization_id", "22253e48-ced2-11e4-af80-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.931706"], ["updated_at", "2015-03-20 07:24:23.931706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$U1nUHfMWxHLWyLsHeHyf4.9wDHFih1Q8sSjyhAt0QN5yM7bi3tGh."], ["created_at", "2015-03-20 07:24:23.938859"], ["updated_at", "2015-03-20 07:24:23.938859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.942183"], ["updated_at", "2015-03-20 07:24:23.942183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22270ce6-ced2-11e4-b149-705681abff85' AND "clubhouse_memberships"."organization_id" = '22279ac6-ced2-11e4-ac90-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22270ce6-ced2-11e4-b149-705681abff85"], ["organization_id", "22279ac6-ced2-11e4-ac90-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.946131"], ["updated_at", "2015-03-20 07:24:23.946131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '22270ce6-ced2-11e4-b149-705681abff85' LIMIT 1 [["organization_id", "22279ac6-ced2-11e4-ac90-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$cv1dzcKjQuNRb9ldgGM8JOGTLnbmPuZxGbVEDwDvNux3aESyxLcO2"], ["created_at", "2015-03-20 07:24:23.954568"], ["updated_at", "2015-03-20 07:24:23.954568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.958025"], ["updated_at", "2015-03-20 07:24:23.958025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2229736e-ced2-11e4-b23a-705681abff85' AND "clubhouse_memberships"."organization_id" = '2229f5be-ced2-11e4-b562-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2229736e-ced2-11e4-b23a-705681abff85"], ["organization_id", "2229f5be-ced2-11e4-b562-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:23.962317"], ["updated_at", "2015-03-20 07:24:23.962317"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2229736e-ced2-11e4-b23a-705681abff85' LIMIT 1 [["organization_id", "2229f5be-ced2-11e4-b562-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$MG5L.AH5ObK.gULzoKLDTuSYqQae7MBGb4PTqnU/Punsn/tH3WxU6"], ["created_at", "2015-03-20 07:24:23.972248"], ["updated_at", "2015-03-20 07:24:23.972248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.975848"], ["updated_at", "2015-03-20 07:24:23.975848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '222c2460-ced2-11e4-894c-705681abff85' AND "clubhouse_memberships"."organization_id" = '222cb33a-ced2-11e4-8d7f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "222c2460-ced2-11e4-894c-705681abff85"], ["organization_id", "222cb33a-ced2-11e4-8d7f-705681abff85"], ["created_at", "2015-03-20 07:24:23.981173"], ["updated_at", "2015-03-20 07:24:23.981173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '222c2460-ced2-11e4-894c-705681abff85' LIMIT 1 [["organization_id", "222cb33a-ced2-11e4-8d7f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$vG4z0Rt4Dd8UBO.U.Ht0fuB4rrVmTNmbprEnsy8yTDNGZqo.E7ndO"], ["created_at", "2015-03-20 07:24:23.989185"], ["updated_at", "2015-03-20 07:24:23.989185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:23.995689"], ["updated_at", "2015-03-20 07:24:23.995689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '222ecc42-ced2-11e4-a36c-705681abff85' AND "clubhouse_memberships"."organization_id" = '222fc14c-ced2-11e4-9a4c-705681abff85') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "222ecc42-ced2-11e4-a36c-705681abff85"], ["organization_id", "222fc14c-ced2-11e4-9a4c-705681abff85"], ["created_at", "2015-03-20 07:24:23.999982"], ["updated_at", "2015-03-20 07:24:23.999982"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$6YwGJmyS4Wd/lMk8pqvznekq/7adH1vLpZTuqezzbjr8FJBk7Xly2"], ["created_at", "2015-03-20 07:24:24.010092"], ["updated_at", "2015-03-20 07:24:24.010092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.016167"], ["updated_at", "2015-03-20 07:24:24.016167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22320f1a-ced2-11e4-9828-705681abff85' AND "clubhouse_memberships"."organization_id" = '22330384-ced2-11e4-9abc-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22320f1a-ced2-11e4-9828-705681abff85"], ["organization_id", "22330384-ced2-11e4-9abc-705681abff85"], ["created_at", "2015-03-20 07:24:24.021418"], ["updated_at", "2015-03-20 07:24:24.021418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '22320f1a-ced2-11e4-9828-705681abff85' LIMIT 1 [["organization_id", "22330384-ced2-11e4-9abc-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$KxWQ8WFxkO8sVKL6pRfVP.ZAGrf1U3CcHIsAIF2M27VF7LGzAFyha"], ["created_at", "2015-03-20 07:24:24.032730"], ["updated_at", "2015-03-20 07:24:24.032730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.037595"], ["updated_at", "2015-03-20 07:24:24.037595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '223564e4-ced2-11e4-930d-705681abff85' AND "clubhouse_memberships"."organization_id" = '22362d0c-ced2-11e4-8408-705681abff85') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "223564e4-ced2-11e4-930d-705681abff85"], ["organization_id", "22362d0c-ced2-11e4-8408-705681abff85"], ["created_at", "2015-03-20 07:24:24.044291"], ["updated_at", "2015-03-20 07:24:24.044291"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '223564e4-ced2-11e4-930d-705681abff85' LIMIT 1 [["organization_id", "22362d0c-ced2-11e4-8408-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$88qAYs4b7D5.0wgLnq0wtuDl5W9.1IuQklLWZn6FlrDhROlMpWosK"], ["created_at", "2015-03-20 07:24:24.056471"], ["updated_at", "2015-03-20 07:24:24.056471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (3.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.062983"], ["updated_at", "2015-03-20 07:24:24.062983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (10.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22392980-ced2-11e4-85fb-705681abff85' AND "clubhouse_memberships"."organization_id" = '223a2010-ced2-11e4-960b-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22392980-ced2-11e4-85fb-705681abff85"], ["organization_id", "223a2010-ced2-11e4-960b-705681abff85"], ["created_at", "2015-03-20 07:24:24.082728"], ["updated_at", "2015-03-20 07:24:24.082728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '22392980-ced2-11e4-85fb-705681abff85' LIMIT 1 [["organization_id", "223a2010-ced2-11e4-960b-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (6.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$ERw53oUi.NRhxoUksLwCP.pLXUV9hPrbJEpg3uGEIOmqhcCMiuqRa"], ["created_at", "2015-03-20 07:24:24.101434"], ["updated_at", "2015-03-20 07:24:24.101434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.107778"], ["updated_at", "2015-03-20 07:24:24.107778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '223ff314-ced2-11e4-bafa-705681abff85' AND "clubhouse_memberships"."organization_id" = '2240e698-ced2-11e4-bc96-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "223ff314-ced2-11e4-bafa-705681abff85"], ["organization_id", "2240e698-ced2-11e4-bc96-705681abff85"], ["created_at", "2015-03-20 07:24:24.118110"], ["updated_at", "2015-03-20 07:24:24.118110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '223ff314-ced2-11e4-bafa-705681abff85' LIMIT 1 [["organization_id", "2240e698-ced2-11e4-bc96-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$QLHiGS65aXf36b1KNjkVBO3K2ksN33sNMZSRosuNnO0jWu00BOBv2"], ["created_at", "2015-03-20 07:24:24.137974"], ["updated_at", "2015-03-20 07:24:24.137974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (3.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.147671"], ["updated_at", "2015-03-20 07:24:24.147671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22459f44-ced2-11e4-a644-705681abff85' AND "clubhouse_memberships"."organization_id" = '2247af5a-ced2-11e4-a359-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22459f44-ced2-11e4-a644-705681abff85"], ["organization_id", "2247af5a-ced2-11e4-a359-705681abff85"], ["created_at", "2015-03-20 07:24:24.158375"], ["updated_at", "2015-03-20 07:24:24.158375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '22459f44-ced2-11e4-a644-705681abff85' LIMIT 1 [["organization_id", "2247af5a-ced2-11e4-a359-705681abff85"]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$RzItS4xSEmTX13xEOw/zxu2vUbqJhGpBTatmqE2aGmgW0euXYYwBC"], ["created_at", "2015-03-20 07:24:24.202304"], ["updated_at", "2015-03-20 07:24:24.202304"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.219739"], ["updated_at", "2015-03-20 07:24:24.219739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (5.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22501ce4-ced2-11e4-8b2b-705681abff85' AND "clubhouse_memberships"."organization_id" = '22522976-ced2-11e4-85fd-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22501ce4-ced2-11e4-8b2b-705681abff85"], ["organization_id", "22522976-ced2-11e4-85fd-705681abff85"], ["created_at", "2015-03-20 07:24:24.233039"], ["updated_at", "2015-03-20 07:24:24.233039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$/yAd.E9aBDWhFrtk4KxqSebkmQp06bUDSLTZIFSrDmGciR9yE5r0S"], ["created_at", "2015-03-20 07:24:24.241170"], ["updated_at", "2015-03-20 07:24:24.241170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.244532"], ["updated_at", "2015-03-20 07:24:24.244532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22552ce8-ced2-11e4-aea2-705681abff85' AND "clubhouse_memberships"."organization_id" = '2255b028-ced2-11e4-9202-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22552ce8-ced2-11e4-aea2-705681abff85"], ["organization_id", "2255b028-ced2-11e4-9202-705681abff85"], ["created_at", "2015-03-20 07:24:24.250398"], ["updated_at", "2015-03-20 07:24:24.250398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$44ebxCY44bkoRrMQM9NCI.55frDA0HrT6nbp1V51l8cBv5f94js.W"], ["created_at", "2015-03-20 07:24:24.259408"], ["updated_at", "2015-03-20 07:24:24.259408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.264786"], ["updated_at", "2015-03-20 07:24:24.264786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2257f82e-ced2-11e4-bdb9-705681abff85' AND "clubhouse_memberships"."organization_id" = '2258d992-ced2-11e4-8c61-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2257f82e-ced2-11e4-bdb9-705681abff85"], ["organization_id", "2258d992-ced2-11e4-8c61-705681abff85"], ["created_at", "2015-03-20 07:24:24.270052"], ["updated_at", "2015-03-20 07:24:24.270052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2257f82e-ced2-11e4-bdb9-705681abff85' LIMIT 1 [["organization_id", "2258d992-ced2-11e4-8c61-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$Nlbkufuhbly.GbujXrmDD.RxLmPB9GjRGFwhYj8yfSQiipd2z4LJa"], ["created_at", "2015-03-20 07:24:24.283159"], ["updated_at", "2015-03-20 07:24:24.283159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$59Gm8PMy/zMp9qmCgancl.XhJZXhLkhv3ih6RuJ4BNIDf1rRIA2.i"], ["created_at", "2015-03-20 07:24:24.292777"], ["updated_at", "2015-03-20 07:24:24.292777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.303479"], ["updated_at", "2015-03-20 07:24:24.303479"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '225d0cb0-ced2-11e4-90f6-705681abff85' AND "clubhouse_memberships"."organization_id" = '225ec99c-ced2-11e4-8ddf-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "225d0cb0-ced2-11e4-90f6-705681abff85"], ["organization_id", "225ec99c-ced2-11e4-8ddf-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:24.312159"], ["updated_at", "2015-03-20 07:24:24.312159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '225d0cb0-ced2-11e4-90f6-705681abff85' LIMIT 1 [["organization_id", "225ec99c-ced2-11e4-8ddf-705681abff85"]]  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$klliovuyxdrLspTBUmmIx.cZVuDOcloBP0nD8YcClo.vUiGBQA3J2"], ["created_at", "2015-03-20 07:24:24.327750"], ["updated_at", "2015-03-20 07:24:24.327750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.334012"], ["updated_at", "2015-03-20 07:24:24.334012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22628b36-ced2-11e4-812f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2263661e-ced2-11e4-8b29-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22628b36-ced2-11e4-812f-705681abff85"], ["organization_id", "2263661e-ced2-11e4-8b29-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:24.339307"], ["updated_at", "2015-03-20 07:24:24.339307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '22628b36-ced2-11e4-812f-705681abff85' LIMIT 1 [["organization_id", "2263661e-ced2-11e4-8b29-705681abff85"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$GXDMuftwaWNIGpR8UTCRXuES58Fsj0zU43rDgGWrFwFcG5qadmKmq"], ["created_at", "2015-03-20 07:24:24.352687"], ["updated_at", "2015-03-20 07:24:24.352687"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.362083"], ["updated_at", "2015-03-20 07:24:24.362083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22664adc-ced2-11e4-91c4-705681abff85' AND "clubhouse_memberships"."organization_id" = '2267ad1e-ced2-11e4-ad56-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22664adc-ced2-11e4-91c4-705681abff85"], ["organization_id", "2267ad1e-ced2-11e4-ad56-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:24.369591"], ["updated_at", "2015-03-20 07:24:24.369591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$3V4pJcw6FbZj59d2V.GLOePQq/ThW6Da.OKTSWX4GAUNm3EdqoMX2"], ["created_at", "2015-03-20 07:24:24.387424"], ["updated_at", "2015-03-20 07:24:24.387424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.392818"], ["updated_at", "2015-03-20 07:24:24.392818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '226b8e66-ced2-11e4-a92d-705681abff85' AND "clubhouse_memberships"."organization_id" = '226ebe74-ced2-11e4-b1e7-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "226b8e66-ced2-11e4-a92d-705681abff85"], ["organization_id", "226ebe74-ced2-11e4-b1e7-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:24.414912"], ["updated_at", "2015-03-20 07:24:24.414912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$yaY4c4cLQe8BQc78C9JDvuFRHGrqVri1.DkvaOcFSuIf6O9d1aLYe"], ["created_at", "2015-03-20 07:24:24.428788"], ["updated_at", "2015-03-20 07:24:24.428788"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.435780"], ["updated_at", "2015-03-20 07:24:24.435780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '227207be-ced2-11e4-abb4-705681abff85' AND "clubhouse_memberships"."organization_id" = '2272e742-ced2-11e4-8b62-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "227207be-ced2-11e4-abb4-705681abff85"], ["organization_id", "2272e742-ced2-11e4-8b62-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:24.440948"], ["updated_at", "2015-03-20 07:24:24.440948"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '227207be-ced2-11e4-abb4-705681abff85' LIMIT 1 [["organization_id", "2272e742-ced2-11e4-8b62-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$wfsW0SEs6HeOkWjoGGSe8efaAgdbO.44QSENku/vXOUJYJa9jlL7a"], ["created_at", "2015-03-20 07:24:24.472719"], ["updated_at", "2015-03-20 07:24:24.472719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.477125"], ["updated_at", "2015-03-20 07:24:24.477125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22789de0-ced2-11e4-9064-705681abff85' LIMIT 1 [["organization_id", "22792c42-ced2-11e4-b27d-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$9DBalHwdhUj7bImajKASHupoI0cAs66u.Nr1.TXcUvkDfma5iC1YW"], ["created_at", "2015-03-20 07:24:24.488006"], ["updated_at", "2015-03-20 07:24:24.488006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.505652"], ["updated_at", "2015-03-20 07:24:24.505652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '227ae622-ced2-11e4-aad5-705681abff85' LIMIT 1 [["organization_id", "227d9912-ced2-11e4-b1f8-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$y5JSi9b8oOEfRZHukxtARuJd5NfQRfS96EcUgB95S82zpVAsVI96i"], ["created_at", "2015-03-20 07:24:24.516212"], ["updated_at", "2015-03-20 07:24:24.516212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.523242"], ["updated_at", "2015-03-20 07:24:24.523242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$yOjUlywr0/Jw8Dso9e8T5ef7357EZRR/Epw.FBNuEcAWxeV.FDWgu"], ["created_at", "2015-03-20 07:24:24.538881"], ["updated_at", "2015-03-20 07:24:24.538881"]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.546525"], ["updated_at", "2015-03-20 07:24:24.546525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$ZkRwPqFS7YsoEUvyk1igueWI9cck5V0pG/qFLae8MBBB8TfuBWOl."], ["created_at", "2015-03-20 07:24:24.554754"], ["updated_at", "2015-03-20 07:24:24.554754"]]  (21.4ms) RELEASE SAVEPOINT active_record_1  (2.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.589450"], ["updated_at", "2015-03-20 07:24:24.589450"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '228515f2-ced2-11e4-9c93-705681abff85' LIMIT 1 [["organization_id", "228a9716-ced2-11e4-86c3-705681abff85"]]  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (3.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$VDFkj7fbKvq2k4pkoaRAUOCM8aS8t.J352CsdM34aXW79RLo077Ni"], ["created_at", "2015-03-20 07:24:24.654069"], ["updated_at", "2015-03-20 07:24:24.654069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.670377"], ["updated_at", "2015-03-20 07:24:24.670377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '2296d1d4-ced2-11e4-851c-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "2296d1d4-ced2-11e4-851c-705681abff85"], ["created_at", "2015-03-20 07:24:24.678135"], ["updated_at", "2015-03-20 07:24:24.678135"], ["token", "v-hwMCeHXINN5XpYvphiEA0JQ7xWJpspIwpYSsfn2hQ"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2294dffa-ced2-11e4-b093-705681abff85' LIMIT 1 [["organization_id", "2296d1d4-ced2-11e4-851c-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$pi/jNcxpDqaqZVa8Fs2Iseaa8vBbKs9okGruIWrxrm9dzjb1xty7S"], ["created_at", "2015-03-20 07:24:24.708784"], ["updated_at", "2015-03-20 07:24:24.708784"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.716148"], ["updated_at", "2015-03-20 07:24:24.716148"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '229db454-ced2-11e4-9781-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "229db454-ced2-11e4-9781-705681abff85"], ["created_at", "2015-03-20 07:24:24.722126"], ["updated_at", "2015-03-20 07:24:24.722126"], ["token", "XWiymwrkBxH_V6DOmcVNl6235jc8afMtK2nyzD5-guw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '229ca032-ced2-11e4-ac1e-705681abff85' LIMIT 1 [["organization_id", "229db454-ced2-11e4-9781-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$T3afVQL99m.7BizaNRcuHeA/EGyM2YfkvleIWHJOj4Oud3FgSMgmS"], ["created_at", "2015-03-20 07:24:24.737916"], ["updated_at", "2015-03-20 07:24:24.737916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.742661"], ["updated_at", "2015-03-20 07:24:24.742661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '22a1b996-ced2-11e4-8c79-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "22a1b996-ced2-11e4-8c79-705681abff85"], ["created_at", "2015-03-20 07:24:24.751396"], ["updated_at", "2015-03-20 07:24:24.751396"], ["token", "Xk7_Zo7qrHDo0C9ANsS0MR4gx-YAKvL4p5juLGk3QoU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22a10910-ced2-11e4-b0e3-705681abff85' LIMIT 1 [["organization_id", "22a1b996-ced2-11e4-8c79-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$N69zfnIzJK4iFTDEi/ljhebTNm.XZgk0lhJHzqkS5GwHahwqF0K9C"], ["created_at", "2015-03-20 07:24:24.767046"], ["updated_at", "2015-03-20 07:24:24.767046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.772500"], ["updated_at", "2015-03-20 07:24:24.772500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '22a6475e-ced2-11e4-bf11-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "22a6475e-ced2-11e4-bf11-705681abff85"], ["created_at", "2015-03-20 07:24:24.777646"], ["updated_at", "2015-03-20 07:24:24.777646"], ["token", "DvvtSP3rXDNZNgpCeupBuXvkpWB1yvFSdusJ6ZOBOP8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22a591a6-ced2-11e4-830f-705681abff85' LIMIT 1 [["organization_id", "22a6475e-ced2-11e4-bf11-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$GE1lrC5shl3Vy3QF7EqKaui7pe1YnGhnPFMM74AbyvGBy0lAJ5wS."], ["created_at", "2015-03-20 07:24:24.788562"], ["updated_at", "2015-03-20 07:24:24.788562"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.792910"], ["updated_at", "2015-03-20 07:24:24.792910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22a8b7e6-ced2-11e4-8f14-705681abff85' LIMIT 1 [["organization_id", "22a97ae6-ced2-11e4-905e-705681abff85"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$DsIem/7rjGZeRIGapg3HBuJ4TNQ.UYhBw4KtXuC5NClFr0zFdyH46"], ["created_at", "2015-03-20 07:24:24.804559"], ["updated_at", "2015-03-20 07:24:24.804559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.809032"], ["updated_at", "2015-03-20 07:24:24.809032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22ab2ca6-ced2-11e4-b951-705681abff85' AND "clubhouse_memberships"."organization_id" = '22abdad4-ced2-11e4-a04f-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22ab2ca6-ced2-11e4-b951-705681abff85"], ["organization_id", "22abdad4-ced2-11e4-a04f-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:24.813024"], ["updated_at", "2015-03-20 07:24:24.813024"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '22abdad4-ced2-11e4-a04f-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "22abdad4-ced2-11e4-a04f-705681abff85"], ["created_at", "2015-03-20 07:24:24.818866"], ["updated_at", "2015-03-20 07:24:24.818866"], ["token", "dxKL0bz4cYzyW_6QWcInjONGH_QEDEc7On9eyJgH98o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22ab2ca6-ced2-11e4-b951-705681abff85' LIMIT 1 [["organization_id", "22abdad4-ced2-11e4-a04f-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$ZgtcRFMgr8q03wRG2G0IBe5hSszVbQZQgFhG9WM6dZq1w0UAgeyXO"], ["created_at", "2015-03-20 07:24:24.826432"], ["updated_at", "2015-03-20 07:24:24.826432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.830228"], ["updated_at", "2015-03-20 07:24:24.830228"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22ae7e92-ced2-11e4-845e-705681abff85' AND "clubhouse_memberships"."organization_id" = '22af25e0-ced2-11e4-9006-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22ae7e92-ced2-11e4-845e-705681abff85"], ["organization_id", "22af25e0-ced2-11e4-9006-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:24.835556"], ["updated_at", "2015-03-20 07:24:24.835556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '22af25e0-ced2-11e4-9006-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "22af25e0-ced2-11e4-9006-705681abff85"], ["created_at", "2015-03-20 07:24:24.839725"], ["updated_at", "2015-03-20 07:24:24.839725"], ["token", "osp2pMSFrdj8P5M3LvY8iPhqsk_UAzxxiqBUA-XayEQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22ae7e92-ced2-11e4-845e-705681abff85' LIMIT 1 [["organization_id", "22af25e0-ced2-11e4-9006-705681abff85"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$l.4UEFW7skmfxBkydoQsYuvEu2w9QJESaUH33D7Tx0A85DQrlJK5C"], ["created_at", "2015-03-20 07:24:24.850387"], ["updated_at", "2015-03-20 07:24:24.850387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.854381"], ["updated_at", "2015-03-20 07:24:24.854381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22b234ba-ced2-11e4-92c5-705681abff85' AND "clubhouse_memberships"."organization_id" = '22b2bcfa-ced2-11e4-886e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22b234ba-ced2-11e4-92c5-705681abff85"], ["organization_id", "22b2bcfa-ced2-11e4-886e-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:24.857754"], ["updated_at", "2015-03-20 07:24:24.857754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '22b2bcfa-ced2-11e4-886e-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "22b2bcfa-ced2-11e4-886e-705681abff85"], ["created_at", "2015-03-20 07:24:24.861489"], ["updated_at", "2015-03-20 07:24:24.861489"], ["token", "w_8rgvdxsmIA49OQt-I11t1lc2FdAkYX46ecKuZoJs8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22b234ba-ced2-11e4-92c5-705681abff85' LIMIT 1 [["organization_id", "22b2bcfa-ced2-11e4-886e-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$xvpcLDh9Hn8733RC7Aply.a66Bkg9w3Kvt92w4eY7CzTFeM5nndhe"], ["created_at", "2015-03-20 07:24:24.871424"], ["updated_at", "2015-03-20 07:24:24.871424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.874596"], ["updated_at", "2015-03-20 07:24:24.874596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22b55618-ced2-11e4-b638-705681abff85' AND "clubhouse_memberships"."organization_id" = '22b5d278-ced2-11e4-89b5-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22b55618-ced2-11e4-b638-705681abff85"], ["organization_id", "22b5d278-ced2-11e4-89b5-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:24.878463"], ["updated_at", "2015-03-20 07:24:24.878463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '22b5d278-ced2-11e4-89b5-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "22b5d278-ced2-11e4-89b5-705681abff85"], ["created_at", "2015-03-20 07:24:24.884200"], ["updated_at", "2015-03-20 07:24:24.884200"], ["token", "rEvQ4MbM7WK4GwJlt4ZfOk4qeThvdMQlfdOvrBpQFvM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22b55618-ced2-11e4-b638-705681abff85' LIMIT 1 [["organization_id", "22b5d278-ced2-11e4-89b5-705681abff85"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$WbAwtAgpx5vc1dJgIVBve.fVZrPHrh9A513nOqUsnJFXLoaGdQco."], ["created_at", "2015-03-20 07:24:24.893729"], ["updated_at", "2015-03-20 07:24:24.893729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.896810"], ["updated_at", "2015-03-20 07:24:24.896810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22b8bd12-ced2-11e4-8dff-705681abff85' AND "clubhouse_memberships"."organization_id" = '22b9386e-ced2-11e4-9417-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22b8bd12-ced2-11e4-8dff-705681abff85"], ["organization_id", "22b9386e-ced2-11e4-9417-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:24.902939"], ["updated_at", "2015-03-20 07:24:24.902939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22b8bd12-ced2-11e4-8dff-705681abff85' LIMIT 1 [["organization_id", "22b9386e-ced2-11e4-9417-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$KW48vasj4cbiUkjR4w9MMuY1TMUzT.WsVvo7/gwu4IeDSF5agD4Cu"], ["created_at", "2015-03-20 07:24:24.910357"], ["updated_at", "2015-03-20 07:24:24.910357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.913766"], ["updated_at", "2015-03-20 07:24:24.913766"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22bb48d4-ced2-11e4-b69e-705681abff85' AND "clubhouse_memberships"."organization_id" = '22bbf130-ced2-11e4-b5a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22bb48d4-ced2-11e4-b69e-705681abff85"], ["organization_id", "22bbf130-ced2-11e4-b5a0-705681abff85"], ["created_at", "2015-03-20 07:24:24.919155"], ["updated_at", "2015-03-20 07:24:24.919155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '22bbf130-ced2-11e4-b5a0-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "22bbf130-ced2-11e4-b5a0-705681abff85"], ["created_at", "2015-03-20 07:24:24.922655"], ["updated_at", "2015-03-20 07:24:24.922655"], ["token", "bboIOXvOXn9RAqPNGop9B-yDv4rEqY2iAMGc0epjJDw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22bb48d4-ced2-11e4-b69e-705681abff85' LIMIT 1 [["organization_id", "22bbf130-ced2-11e4-b5a0-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$eN34Zgs3sQU.qiTo5YCweuw2icNNtUvlyXzpuN2HTOhUzIxDkFiji"], ["created_at", "2015-03-20 07:24:24.931367"], ["updated_at", "2015-03-20 07:24:24.931367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.935630"], ["updated_at", "2015-03-20 07:24:24.935630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22be937c-ced2-11e4-aa88-705681abff85' AND "clubhouse_memberships"."organization_id" = '22bf2c1a-ced2-11e4-b8b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22be937c-ced2-11e4-aa88-705681abff85"], ["organization_id", "22bf2c1a-ced2-11e4-b8b9-705681abff85"], ["created_at", "2015-03-20 07:24:24.939614"], ["updated_at", "2015-03-20 07:24:24.939614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '22bf2c1a-ced2-11e4-b8b9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "22bf2c1a-ced2-11e4-b8b9-705681abff85"], ["created_at", "2015-03-20 07:24:24.942935"], ["updated_at", "2015-03-20 07:24:24.942935"], ["token", "e0RggeZdKsgKRh6H-p_v8jWN8N8BCbSLp2hO3DoKPqs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22be937c-ced2-11e4-aa88-705681abff85' LIMIT 1 [["organization_id", "22bf2c1a-ced2-11e4-b8b9-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$qWlmTQhCtEKBsl4YSNdwrui216no90P8VtnPgnExSMqpxz747sCDO"], ["created_at", "2015-03-20 07:24:24.952069"], ["updated_at", "2015-03-20 07:24:24.952069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.955348"], ["updated_at", "2015-03-20 07:24:24.955348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22c1a88c-ced2-11e4-aceb-705681abff85' AND "clubhouse_memberships"."organization_id" = '22c221cc-ced2-11e4-99bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22c1a88c-ced2-11e4-aceb-705681abff85"], ["organization_id", "22c221cc-ced2-11e4-99bb-705681abff85"], ["created_at", "2015-03-20 07:24:24.958377"], ["updated_at", "2015-03-20 07:24:24.958377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '22c221cc-ced2-11e4-99bb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "22c221cc-ced2-11e4-99bb-705681abff85"], ["created_at", "2015-03-20 07:24:24.962001"], ["updated_at", "2015-03-20 07:24:24.962001"], ["token", "7Xk1H4ynYLLBkoTTKI5kn91Xe8TlCrrhsYfCH5FlB18"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22c1a88c-ced2-11e4-aceb-705681abff85' LIMIT 1 [["organization_id", "22c221cc-ced2-11e4-99bb-705681abff85"]]  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$Y7a6MWF0o3Z/1RjjZvkpUuBKwbIuAo6W0305R0BGK3jHeNRKt0WOe"], ["created_at", "2015-03-20 07:24:24.973555"], ["updated_at", "2015-03-20 07:24:24.973555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:24.978876"], ["updated_at", "2015-03-20 07:24:24.978876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22c4eb46-ced2-11e4-98ac-705681abff85' AND "clubhouse_memberships"."organization_id" = '22c5d5a6-ced2-11e4-bc19-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22c4eb46-ced2-11e4-98ac-705681abff85"], ["organization_id", "22c5d5a6-ced2-11e4-bc19-705681abff85"], ["created_at", "2015-03-20 07:24:24.991122"], ["updated_at", "2015-03-20 07:24:24.991122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '22c5d5a6-ced2-11e4-bc19-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "22c5d5a6-ced2-11e4-bc19-705681abff85"], ["created_at", "2015-03-20 07:24:24.994938"], ["updated_at", "2015-03-20 07:24:24.994938"], ["token", "XAzCXp8glGByKAjcHGUfwmhfVVd5HzxgZpG4OwahZsE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22c4eb46-ced2-11e4-98ac-705681abff85' LIMIT 1 [["organization_id", "22c5d5a6-ced2-11e4-bc19-705681abff85"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$wJkEKVmmDGbuWJ8I.f4Q1.RtaS.NBCi1au5.apACT.pIde.xA25rG"], ["created_at", "2015-03-20 07:24:25.005964"], ["updated_at", "2015-03-20 07:24:25.005964"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.020656"], ["updated_at", "2015-03-20 07:24:25.020656"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22c9f7da-ced2-11e4-ab53-705681abff85' AND "clubhouse_memberships"."organization_id" = '22cc3266-ced2-11e4-9d7d-705681abff85') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22c9f7da-ced2-11e4-ab53-705681abff85"], ["organization_id", "22cc3266-ced2-11e4-9d7d-705681abff85"], ["created_at", "2015-03-20 07:24:25.028607"], ["updated_at", "2015-03-20 07:24:25.028607"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '22c9f7da-ced2-11e4-ab53-705681abff85' LIMIT 1 [["organization_id", "22cc3266-ced2-11e4-9d7d-705681abff85"]]  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (4.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.063058"], ["updated_at", "2015-03-20 07:24:25.063058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '22d2e76e-ced2-11e4-b2b0-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "22d2e76e-ced2-11e4-b2b0-705681abff85"], ["created_at", "2015-03-20 07:24:25.070910"], ["updated_at", "2015-03-20 07:24:25.070910"], ["token", "-fKYs9ePaorz9eRZVaToQ4NhZ_shzxBQ2jQcl1W0OgE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms Sent mail to john@example.com (4.1ms) Date: Fri, 20 Mar 2015 00:24:25 -0700 From: from@example.com To: john@example.com Message-ID: <550bcb2913942_11e33ffe99865bf010695@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/-fKYs9ePaorz9eRZVaToQ4NhZ_shzxBQ2jQcl1W0OgE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.090537"], ["updated_at", "2015-03-20 07:24:25.090537"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '22d6fc1e-ced2-11e4-b573-705681abff85') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "22d6fc1e-ced2-11e4-b573-705681abff85"], ["created_at", "2015-03-20 07:24:25.097937"], ["updated_at", "2015-03-20 07:24:25.097937"], ["token", "tq-ZrD0qkUsjtRGQTcVFASjgauTAIpwkTJ1pyu-cr1E"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 3.8ms Sent mail to john@example.com (4.5ms) Date: Fri, 20 Mar 2015 00:24:25 -0700 From: from@example.com To: john@example.com Message-ID: <550bcb291bc49_11e33ffe99865bf010738@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/tq-ZrD0qkUsjtRGQTcVFASjgauTAIpwkTJ1pyu-cr1E?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.126779"], ["updated_at", "2015-03-20 07:24:25.126779"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '22dc642e-ced2-11e4-b3d5-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "22dc642e-ced2-11e4-b3d5-705681abff85"], ["created_at", "2015-03-20 07:24:25.133754"], ["updated_at", "2015-03-20 07:24:25.133754"], ["token", "wOW-XAEWmQRNuvPOP5PKY7JeCL5fmkFP-xLcJPyrPF4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (2.2ms) Date: Fri, 20 Mar 2015 00:24:25 -0700 From: from@example.com To: john@example.com Message-ID: <550bcb2921b77_11e33ffe99865bf01082c@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/wOW-XAEWmQRNuvPOP5PKY7JeCL5fmkFP-xLcJPyrPF4?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.145559"], ["updated_at", "2015-03-20 07:24:25.145559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '22df2b00-ced2-11e4-b190-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "22df2b00-ced2-11e4-b190-705681abff85"], ["created_at", "2015-03-20 07:24:25.149032"], ["updated_at", "2015-03-20 07:24:25.149032"], ["token", "Gdv79tXAUeFabaDcqYpU6-6m1kZs4sY3r_C_T0LyfOQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Developer/rails_projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (2.0ms) Date: Fri, 20 Mar 2015 00:24:25 -0700 From: from@example.com To: john@example.com Message-ID: <550bcb2925a26_11e33ffe99865bf0109f7@Jasons-MacBook-Air-2.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/Gdv79tXAUeFabaDcqYpU6-6m1kZs4sY3r_C_T0LyfOQ?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$LtAb6zAvTwZi4yCTSzU8nea8dnZasF6fXxzT3Qc/99A9SQ/UtlckO"], ["created_at", "2015-03-20 07:24:25.161412"], ["updated_at", "2015-03-20 07:24:25.161412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$OYIexhQV5WBteRPwREYKmeMNb7cO/IOGJm9v3M98oo6AcXJC7Vj5C"], ["created_at", "2015-03-20 07:24:25.166066"], ["updated_at", "2015-03-20 07:24:25.166066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.167952"], ["user_id", "22e19944-ced2-11e4-8267-705681abff85"], ["created_at", "2015-03-20 07:24:25.168792"], ["updated_at", "2015-03-20 07:24:25.168792"], ["token", "UXb_Vx0GE8YNGbM9hHgJkhJ--AkQ7O9uvf3jF5kR_zM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.174851"], ["updated_at", "2015-03-20 07:24:25.174851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22e19944-ced2-11e4-8267-705681abff85' AND "clubhouse_memberships"."organization_id" = '22e3aefa-ced2-11e4-8a4a-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22e19944-ced2-11e4-8267-705681abff85"], ["organization_id", "22e3aefa-ced2-11e4-8a4a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.196514"], ["updated_at", "2015-03-20 07:24:25.196514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22e24c7c-ced2-11e4-b03b-705681abff85' AND "clubhouse_memberships"."organization_id" = '22e3aefa-ced2-11e4-8a4a-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22e24c7c-ced2-11e4-b03b-705681abff85"], ["organization_id", "22e3aefa-ced2-11e4-8a4a-705681abff85"], ["created_at", "2015-03-20 07:24:25.207202"], ["updated_at", "2015-03-20 07:24:25.207202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$/MoHKt45.EpMuGSfZ8OM4e64VP5noV8fbTR7H7nyGCBtBWF.uB65a"], ["created_at", "2015-03-20 07:24:25.231865"], ["updated_at", "2015-03-20 07:24:25.231865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$3hvtRgpCwcLpWo3ZKzlw9.0s2gYQDeC0PDwbHZ9M1nAi6wdbm.BKm"], ["created_at", "2015-03-20 07:24:25.238100"], ["updated_at", "2015-03-20 07:24:25.238100"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.240792"], ["user_id", "22ec65c2-ced2-11e4-9582-705681abff85"], ["created_at", "2015-03-20 07:24:25.242576"], ["updated_at", "2015-03-20 07:24:25.242576"], ["token", "CddGrF3wsz2LGK_-GW4udhzfpEGOM72PAajrP0J8PNE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.247680"], ["updated_at", "2015-03-20 07:24:25.247680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22ec65c2-ced2-11e4-9582-705681abff85' AND "clubhouse_memberships"."organization_id" = '22eebed0-ced2-11e4-97e8-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22ec65c2-ced2-11e4-9582-705681abff85"], ["organization_id", "22eebed0-ced2-11e4-97e8-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.251952"], ["updated_at", "2015-03-20 07:24:25.251952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22ed578e-ced2-11e4-b672-705681abff85' AND "clubhouse_memberships"."organization_id" = '22eebed0-ced2-11e4-97e8-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22ed578e-ced2-11e4-b672-705681abff85"], ["organization_id", "22eebed0-ced2-11e4-97e8-705681abff85"], ["created_at", "2015-03-20 07:24:25.255884"], ["updated_at", "2015-03-20 07:24:25.255884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:25.262158' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CddGrF3wsz2LGK_-GW4udhzfpEGOM72PAajrP0J8PNE"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:25.263742"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:25.264770"], ["id", "22ee204c-ced2-11e4-8a0b-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22ec65c2-ced2-11e4-9582-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '22ec65c2-ced2-11e4-9582-705681abff85' LIMIT 1 [["organization_id", "22eebed0-ced2-11e4-97e8-705681abff85"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "22eebed0-ced2-11e4-97e8-705681abff85"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "22eebed0-ced2-11e4-97e8-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22ec65c2-ced2-11e4-9582-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "22eebed0-ced2-11e4-97e8-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22ed578e-ced2-11e4-b672-705681abff85"]] Completed 200 OK in 19ms (Views: 9.2ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$yg2KySwRBHqRuB2RSYBBrey0k7dfVxthK0.FYAs5N6qsRS/favnxC"], ["created_at", "2015-03-20 07:24:25.289051"], ["updated_at", "2015-03-20 07:24:25.289051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$8jpi7ZDypR.Fh5gYVBix0uAbLgzG0RyP2MvWySbIQoW1d6Ux0U9.C"], ["created_at", "2015-03-20 07:24:25.294935"], ["updated_at", "2015-03-20 07:24:25.294935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.297608"], ["user_id", "22f5142e-ced2-11e4-a804-705681abff85"], ["created_at", "2015-03-20 07:24:25.298580"], ["updated_at", "2015-03-20 07:24:25.298580"], ["token", "yYg7qLNI8u1QDspnBixWxjUtAhT-AOkKMBJ1WjVpMM8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.312869"], ["updated_at", "2015-03-20 07:24:25.312869"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22f5142e-ced2-11e4-a804-705681abff85' AND "clubhouse_memberships"."organization_id" = '22f8b192-ced2-11e4-9e27-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22f5142e-ced2-11e4-a804-705681abff85"], ["organization_id", "22f8b192-ced2-11e4-9e27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.316497"], ["updated_at", "2015-03-20 07:24:25.316497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22f60ff0-ced2-11e4-939c-705681abff85' AND "clubhouse_memberships"."organization_id" = '22f8b192-ced2-11e4-9e27-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22f60ff0-ced2-11e4-939c-705681abff85"], ["organization_id", "22f8b192-ced2-11e4-9e27-705681abff85"], ["created_at", "2015-03-20 07:24:25.320503"], ["updated_at", "2015-03-20 07:24:25.320503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$29FBvnIvEV9x5sScxLT8N.fpMLYR5Q.B6hO/XfagJBsWY3gH/Irf6"], ["created_at", "2015-03-20 07:24:25.326848"], ["updated_at", "2015-03-20 07:24:25.326848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.328428"], ["user_id", "22fad454-ced2-11e4-a1e0-705681abff85"], ["created_at", "2015-03-20 07:24:25.329323"], ["updated_at", "2015-03-20 07:24:25.329323"], ["token", "WhnmdO8vXE790edMvBH7wSCSx4ngxMYv1tWs_aSZjXw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '22f8b192-ced2-11e4-9e27-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "22f8b192-ced2-11e4-9e27-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.333300"], ["updated_at", "2015-03-20 07:24:25.333300"], ["token", "V7zAWQAwn178OCrkjBzXBQZew6nZzL2GofHMNqMePgc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$K6dNd.VY1AHqCrTUtG4/g.KV3NbzcuUTfb7BXCedjtpz7zfDgbDAm"], ["created_at", "2015-03-20 07:24:25.347831"], ["updated_at", "2015-03-20 07:24:25.347831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$Qz7O9lkWzBEbHrazvxQabu8c1a2xIZUughdHUwWndIuYMsezdQSum"], ["created_at", "2015-03-20 07:24:25.352898"], ["updated_at", "2015-03-20 07:24:25.352898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.356155"], ["user_id", "22fe0732-ced2-11e4-b240-705681abff85"], ["created_at", "2015-03-20 07:24:25.357641"], ["updated_at", "2015-03-20 07:24:25.357641"], ["token", "id3Bw3IhIxM8c2oOoVgquo4GxOp3D7JKl4b-HgqXIDQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.363131"], ["updated_at", "2015-03-20 07:24:25.363131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22fe0732-ced2-11e4-b240-705681abff85' AND "clubhouse_memberships"."organization_id" = '23005c08-ced2-11e4-bee9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22fe0732-ced2-11e4-b240-705681abff85"], ["organization_id", "23005c08-ced2-11e4-bee9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.366646"], ["updated_at", "2015-03-20 07:24:25.366646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22ff0290-ced2-11e4-ab55-705681abff85' AND "clubhouse_memberships"."organization_id" = '23005c08-ced2-11e4-bee9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22ff0290-ced2-11e4-ab55-705681abff85"], ["organization_id", "23005c08-ced2-11e4-bee9-705681abff85"], ["created_at", "2015-03-20 07:24:25.370489"], ["updated_at", "2015-03-20 07:24:25.370489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$WMlEGkWkG8VcT63t7fh77u4kt6A7DDTa0QaSIJVC6tZK8b7N53zM2"], ["created_at", "2015-03-20 07:24:25.376078"], ["updated_at", "2015-03-20 07:24:25.376078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.378623"], ["user_id", "23026034-ced2-11e4-89ec-705681abff85"], ["created_at", "2015-03-20 07:24:25.379461"], ["updated_at", "2015-03-20 07:24:25.379461"], ["token", "3dAyEz-rNBl6nXXh7QT1lldklA-nu2oOhJfuFg8q4As"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '23005c08-ced2-11e4-bee9-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "23005c08-ced2-11e4-bee9-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.384926"], ["updated_at", "2015-03-20 07:24:25.384926"], ["token", "QhfqNnawjOZr78Lkpy1Al0zFYmJaIR_xAtOwHP0ElBk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/23005c08-ced2-11e4-bee9-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"QhfqNnawjOZr78Lkpy1Al0zFYmJaIR_xAtOwHP0ElBk", "organization_id"=>"23005c08-ced2-11e4-bee9-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:25.394104' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "3dAyEz-rNBl6nXXh7QT1lldklA-nu2oOhJfuFg8q4As"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:25.395639"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:25.397004"], ["id", "2302f5bc-ced2-11e4-96f4-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "23005c08-ced2-11e4-bee9-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23026034-ced2-11e4-89ec-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "QhfqNnawjOZr78Lkpy1Al0zFYmJaIR_xAtOwHP0ElBk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "23005c08-ced2-11e4-bee9-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23026034-ced2-11e4-89ec-705681abff85' AND "clubhouse_memberships"."organization_id" = '23005c08-ced2-11e4-bee9-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "23005c08-ced2-11e4-bee9-705681abff85"], ["member_id", "23026034-ced2-11e4-89ec-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.411016"], ["updated_at", "2015-03-20 07:24:25.411016"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "2303b98e-ced2-11e4-8a82-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 22ms (Views: 1.3ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$br/4.Bg7cm1G/u.dlWrmFeti8FPV2cmOOEf/Wnh.S9xhc4OFGsAEi"], ["created_at", "2015-03-20 07:24:25.423578"], ["updated_at", "2015-03-20 07:24:25.423578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$c.OU8w2no2QqLqeOlSboOeSEwsyHafZHQ/a5EcMMD.ZedhysSPXje"], ["created_at", "2015-03-20 07:24:25.429331"], ["updated_at", "2015-03-20 07:24:25.429331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.431556"], ["user_id", "2309a2ea-ced2-11e4-971f-705681abff85"], ["created_at", "2015-03-20 07:24:25.432360"], ["updated_at", "2015-03-20 07:24:25.432360"], ["token", "5Tyiwcq25VbejekWuxgX5uh91R9GlJlg7Uvhz4bgLcg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.437691"], ["updated_at", "2015-03-20 07:24:25.437691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2309a2ea-ced2-11e4-971f-705681abff85' AND "clubhouse_memberships"."organization_id" = '230bce44-ced2-11e4-a097-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2309a2ea-ced2-11e4-971f-705681abff85"], ["organization_id", "230bce44-ced2-11e4-a097-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.443301"], ["updated_at", "2015-03-20 07:24:25.443301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '230a821e-ced2-11e4-a800-705681abff85' AND "clubhouse_memberships"."organization_id" = '230bce44-ced2-11e4-a097-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "230a821e-ced2-11e4-a800-705681abff85"], ["organization_id", "230bce44-ced2-11e4-a097-705681abff85"], ["created_at", "2015-03-20 07:24:25.447682"], ["updated_at", "2015-03-20 07:24:25.447682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$RkVIe1pXZ7i8x1hGGhO.vuF18GK43sSa0/P3m7Ikgc2kvo0sAay/a"], ["created_at", "2015-03-20 07:24:25.453200"], ["updated_at", "2015-03-20 07:24:25.453200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.455789"], ["user_id", "230e31fc-ced2-11e4-9ca9-705681abff85"], ["created_at", "2015-03-20 07:24:25.456838"], ["updated_at", "2015-03-20 07:24:25.456838"], ["token", "o5gQIV03ttAccvmd2dJFyqDFQkThy87bBlwX4jhmdCg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '230bce44-ced2-11e4-a097-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "230bce44-ced2-11e4-a097-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.461496"], ["updated_at", "2015-03-20 07:24:25.461496"], ["token", "YvsIuDguC88CF9c_vPZbhWEYSRQjAVNwoVaH-WOnS3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/230bce44-ced2-11e4-a097-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"230bce44-ced2-11e4-a097-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:25.466217' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "o5gQIV03ttAccvmd2dJFyqDFQkThy87bBlwX4jhmdCg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:25.467712"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:25.468758"], ["id", "230ec1ee-ced2-11e4-be73-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "230bce44-ced2-11e4-a097-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "230e31fc-ced2-11e4-9ca9-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$noi54P5s1kw2ZhTyB3VHr.7JsPN5j39T3uWKvTSvld3XXEt5A4Pke"], ["created_at", "2015-03-20 07:24:25.482346"], ["updated_at", "2015-03-20 07:24:25.482346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$RKitzFdmKtWZ9tMqUPs4buRDJRRMojdLng4Zb7ulTwfFUZi9glXOe"], ["created_at", "2015-03-20 07:24:25.487730"], ["updated_at", "2015-03-20 07:24:25.487730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.490081"], ["user_id", "2312904e-ced2-11e4-a860-705681abff85"], ["created_at", "2015-03-20 07:24:25.490985"], ["updated_at", "2015-03-20 07:24:25.490985"], ["token", "EzmytIzc9ln3hUIeSqMqIE15mzs2YP83YB6Ya6OTSAs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.495120"], ["updated_at", "2015-03-20 07:24:25.495120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2312904e-ced2-11e4-a860-705681abff85' AND "clubhouse_memberships"."organization_id" = '23147fee-ced2-11e4-961d-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2312904e-ced2-11e4-a860-705681abff85"], ["organization_id", "23147fee-ced2-11e4-961d-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.498807"], ["updated_at", "2015-03-20 07:24:25.498807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2313685c-ced2-11e4-8101-705681abff85' AND "clubhouse_memberships"."organization_id" = '23147fee-ced2-11e4-961d-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2313685c-ced2-11e4-8101-705681abff85"], ["organization_id", "23147fee-ced2-11e4-961d-705681abff85"], ["created_at", "2015-03-20 07:24:25.502233"], ["updated_at", "2015-03-20 07:24:25.502233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$jjWFjkeR4iqlY/U12mD3Iu088hiyUPMlzQSjY03F3Lcfe21o8myr6"], ["created_at", "2015-03-20 07:24:25.514169"], ["updated_at", "2015-03-20 07:24:25.514169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$LLFokq5uYaq8JA4jeIVOmeKlKxQ4JsPhVDgLDgis7//qjSSryO.AK"], ["created_at", "2015-03-20 07:24:25.519077"], ["updated_at", "2015-03-20 07:24:25.519077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.521155"], ["user_id", "23176d58-ced2-11e4-859f-705681abff85"], ["created_at", "2015-03-20 07:24:25.523080"], ["updated_at", "2015-03-20 07:24:25.523080"], ["token", "P7NBvQq5P0tu_oOt2Yo_LWEFXW518_BawFC2nEDI6n4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.528044"], ["updated_at", "2015-03-20 07:24:25.528044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23176d58-ced2-11e4-859f-705681abff85' AND "clubhouse_memberships"."organization_id" = '2319866a-ced2-11e4-8d2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23176d58-ced2-11e4-859f-705681abff85"], ["organization_id", "2319866a-ced2-11e4-8d2a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.531386"], ["updated_at", "2015-03-20 07:24:25.531386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23182dc4-ced2-11e4-829e-705681abff85' AND "clubhouse_memberships"."organization_id" = '2319866a-ced2-11e4-8d2a-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23182dc4-ced2-11e4-829e-705681abff85"], ["organization_id", "2319866a-ced2-11e4-8d2a-705681abff85"], ["created_at", "2015-03-20 07:24:25.534548"], ["updated_at", "2015-03-20 07:24:25.534548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/231a870e-ced2-11e4-8c61-705681abff85" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"231a870e-ced2-11e4-8c61-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:25.541174' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "P7NBvQq5P0tu_oOt2Yo_LWEFXW518_BawFC2nEDI6n4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:25.542821"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:25.543892"], ["id", "2318e46c-ced2-11e4-9e9a-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "231a870e-ced2-11e4-8c61-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23176d58-ced2-11e4-859f-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2319866a-ced2-11e4-8d2a-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '23176d58-ced2-11e4-859f-705681abff85' LIMIT 1 [["organization_id", "2319866a-ced2-11e4-8d2a-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23182dc4-ced2-11e4-829e-705681abff85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "231a870e-ced2-11e4-8c61-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$WsGGDXV1a7HEaEy/ieo/FefbwAPQeAP2OP7NlJ51OJgmaYe16ITrO"], ["created_at", "2015-03-20 07:24:25.557182"], ["updated_at", "2015-03-20 07:24:25.557182"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$iNeR4xzmD82mDYQ8IKO0ne6rQITksfb5qRmrCM6NhwHpKeWNsBsWm"], ["created_at", "2015-03-20 07:24:25.562657"], ["updated_at", "2015-03-20 07:24:25.562657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.564416"], ["user_id", "231e01c2-ced2-11e4-842e-705681abff85"], ["created_at", "2015-03-20 07:24:25.565248"], ["updated_at", "2015-03-20 07:24:25.565248"], ["token", "eM1o5-wicJkVoewTpOrOyzEqVykatQmE8nTnM8peddk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.568722"], ["updated_at", "2015-03-20 07:24:25.568722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '231e01c2-ced2-11e4-842e-705681abff85' AND "clubhouse_memberships"."organization_id" = '231fc17e-ced2-11e4-9c06-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "231e01c2-ced2-11e4-842e-705681abff85"], ["organization_id", "231fc17e-ced2-11e4-9c06-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.573002"], ["updated_at", "2015-03-20 07:24:25.573002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '231ed3c2-ced2-11e4-b787-705681abff85' AND "clubhouse_memberships"."organization_id" = '231fc17e-ced2-11e4-9c06-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "231ed3c2-ced2-11e4-b787-705681abff85"], ["organization_id", "231fc17e-ced2-11e4-9c06-705681abff85"], ["created_at", "2015-03-20 07:24:25.579301"], ["updated_at", "2015-03-20 07:24:25.579301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$GZIr2jaLnhplu3xUFuMDwOZKPP9Ww1Y.Pa2zWh5otcb1vckEnaMcm"], ["created_at", "2015-03-20 07:24:25.593186"], ["updated_at", "2015-03-20 07:24:25.593186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$qUFKVT9LRh89XIV8eEaPNebkNKR/04F7v0lIlsjB/jrUo2UVcZAp."], ["created_at", "2015-03-20 07:24:25.597692"], ["updated_at", "2015-03-20 07:24:25.597692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.599521"], ["user_id", "2323783c-ced2-11e4-8ecc-705681abff85"], ["created_at", "2015-03-20 07:24:25.600385"], ["updated_at", "2015-03-20 07:24:25.600385"], ["token", "IMh9kcFN9luylfvb3YnyGS_8rDmIgy6ItcXbLenbJQU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.606496"], ["updated_at", "2015-03-20 07:24:25.606496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2323783c-ced2-11e4-8ecc-705681abff85' AND "clubhouse_memberships"."organization_id" = '23258d8e-ced2-11e4-8feb-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2323783c-ced2-11e4-8ecc-705681abff85"], ["organization_id", "23258d8e-ced2-11e4-8feb-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.613633"], ["updated_at", "2015-03-20 07:24:25.613633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23242868-ced2-11e4-b27b-705681abff85' AND "clubhouse_memberships"."organization_id" = '23258d8e-ced2-11e4-8feb-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23242868-ced2-11e4-b27b-705681abff85"], ["organization_id", "23258d8e-ced2-11e4-8feb-705681abff85"], ["created_at", "2015-03-20 07:24:25.617006"], ["updated_at", "2015-03-20 07:24:25.617006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/23269af8-ced2-11e4-94d7-705681abff85" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"23269af8-ced2-11e4-94d7-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:25.623635' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "IMh9kcFN9luylfvb3YnyGS_8rDmIgy6ItcXbLenbJQU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:25.625586"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:25.626704"], ["id", "23249942-ced2-11e4-9844-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "23269af8-ced2-11e4-94d7-705681abff85"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2323783c-ced2-11e4-8ecc-705681abff85"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "23258d8e-ced2-11e4-8feb-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2323783c-ced2-11e4-8ecc-705681abff85' LIMIT 1 [["organization_id", "23258d8e-ced2-11e4-8feb-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2323783c-ced2-11e4-8ecc-705681abff85"]] Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$t3HKZpfARERYULEn1hCwVOdtKmYJzKrTpAkuS6t/JaYvGx2CkM4V."], ["created_at", "2015-03-20 07:24:25.640479"], ["updated_at", "2015-03-20 07:24:25.640479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$0B6.t5jzkS8OeeOZL/R23eLqQOpbovV.LXDNuYP2Gxi0UU/jgrCie"], ["created_at", "2015-03-20 07:24:25.645788"], ["updated_at", "2015-03-20 07:24:25.645788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.647686"], ["user_id", "232abdea-ced2-11e4-b1a7-705681abff85"], ["created_at", "2015-03-20 07:24:25.648469"], ["updated_at", "2015-03-20 07:24:25.648469"], ["token", "tVdnJGmwvy_hBh8dM-6HZl6RXHrKs3T9x0YvWl1qTlk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.652205"], ["updated_at", "2015-03-20 07:24:25.652205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '232abdea-ced2-11e4-b1a7-705681abff85' AND "clubhouse_memberships"."organization_id" = '232c7d92-ced2-11e4-9355-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "232abdea-ced2-11e4-b1a7-705681abff85"], ["organization_id", "232c7d92-ced2-11e4-9355-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.656872"], ["updated_at", "2015-03-20 07:24:25.656872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '232b87e8-ced2-11e4-ad0c-705681abff85' AND "clubhouse_memberships"."organization_id" = '232c7d92-ced2-11e4-9355-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "232b87e8-ced2-11e4-ad0c-705681abff85"], ["organization_id", "232c7d92-ced2-11e4-9355-705681abff85"], ["created_at", "2015-03-20 07:24:25.661179"], ["updated_at", "2015-03-20 07:24:25.661179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$8Qbx9fg5Hmabm50acMjWReYXAr6IyDgisHvMsoQnPssvOgY/oQ37q"], ["created_at", "2015-03-20 07:24:25.672001"], ["updated_at", "2015-03-20 07:24:25.672001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$sBpxrrEXDg8pJP3Git0AseaB60qnisHbHSMENn3wGqpHJYwcjUwz."], ["created_at", "2015-03-20 07:24:25.677235"], ["updated_at", "2015-03-20 07:24:25.677235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.679049"], ["user_id", "232f8e2e-ced2-11e4-86d9-705681abff85"], ["created_at", "2015-03-20 07:24:25.679981"], ["updated_at", "2015-03-20 07:24:25.679981"], ["token", "49EXYqgmyyQqC9QNdYPwRdhE0L9UeZfLKlK0bdcIwO8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.683697"], ["updated_at", "2015-03-20 07:24:25.683697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '232f8e2e-ced2-11e4-86d9-705681abff85' AND "clubhouse_memberships"."organization_id" = '233143fe-ced2-11e4-a875-705681abff85') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "232f8e2e-ced2-11e4-86d9-705681abff85"], ["organization_id", "233143fe-ced2-11e4-a875-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.687322"], ["updated_at", "2015-03-20 07:24:25.687322"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23304f4e-ced2-11e4-b5ee-705681abff85' AND "clubhouse_memberships"."organization_id" = '233143fe-ced2-11e4-a875-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23304f4e-ced2-11e4-b5ee-705681abff85"], ["organization_id", "233143fe-ced2-11e4-a875-705681abff85"], ["created_at", "2015-03-20 07:24:25.693305"], ["updated_at", "2015-03-20 07:24:25.693305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/233143fe-ced2-11e4-a875-705681abff85/memberships" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"233143fe-ced2-11e4-a875-705681abff85", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:25.699939' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "49EXYqgmyyQqC9QNdYPwRdhE0L9UeZfLKlK0bdcIwO8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:25.702126"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:25.704567"], ["id", "2330c122-ced2-11e4-973c-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "233143fe-ced2-11e4-a875-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "232f8e2e-ced2-11e4-86d9-705681abff85"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '232f8e2e-ced2-11e4-86d9-705681abff85' LIMIT 1 [["organization_id", "233143fe-ced2-11e4-a875-705681abff85"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "233143fe-ced2-11e4-a875-705681abff85"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "233143fe-ced2-11e4-a875-705681abff85"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "232f8e2e-ced2-11e4-86d9-705681abff85"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "233143fe-ced2-11e4-a875-705681abff85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23304f4e-ced2-11e4-b5ee-705681abff85"]] Completed 200 OK in 21ms (Views: 7.9ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$Pj3miIaxPYzWI2twJC52iOdPl/h9MjqWVv9b5Uyrge1qG.I77x6dq"], ["created_at", "2015-03-20 07:24:25.729593"], ["updated_at", "2015-03-20 07:24:25.729593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$o6epr3V2U54d8ltwDGdx1.zQ9uhNYkuLiItCfwQykZ8yLZGNT.B9m"], ["created_at", "2015-03-20 07:24:25.735469"], ["updated_at", "2015-03-20 07:24:25.735469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.738371"], ["user_id", "23385612-ced2-11e4-a001-705681abff85"], ["created_at", "2015-03-20 07:24:25.739552"], ["updated_at", "2015-03-20 07:24:25.739552"], ["token", "SHfmdWB47PtEs9zOBp9E6K80SqC6rWXzX906lJKJTZc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.744845"], ["updated_at", "2015-03-20 07:24:25.744845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23385612-ced2-11e4-a001-705681abff85' AND "clubhouse_memberships"."organization_id" = '233aa85e-ced2-11e4-83ef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23385612-ced2-11e4-a001-705681abff85"], ["organization_id", "233aa85e-ced2-11e4-83ef-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.750207"], ["updated_at", "2015-03-20 07:24:25.750207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23393c80-ced2-11e4-980e-705681abff85' AND "clubhouse_memberships"."organization_id" = '233aa85e-ced2-11e4-83ef-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23393c80-ced2-11e4-980e-705681abff85"], ["organization_id", "233aa85e-ced2-11e4-83ef-705681abff85"], ["created_at", "2015-03-20 07:24:25.755802"], ["updated_at", "2015-03-20 07:24:25.755802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$aIWObd7kIgHY6FfNXym1/O4lgEKH/0Vasv3ABiG7vLQQejIMXf.W6"], ["created_at", "2015-03-20 07:24:25.769220"], ["updated_at", "2015-03-20 07:24:25.769220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$u9DIo/wxAxx5Cs4Km7VWPeA1T43QyvNfpNXx6siYumSsNRJKVcNcm"], ["created_at", "2015-03-20 07:24:25.776088"], ["updated_at", "2015-03-20 07:24:25.776088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.778516"], ["user_id", "233e5a76-ced2-11e4-a0b8-705681abff85"], ["created_at", "2015-03-20 07:24:25.780520"], ["updated_at", "2015-03-20 07:24:25.780520"], ["token", "5BIafVKHuSfTG_1cnow6SRt0oxzUY3gtKhzS2wOGk0Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.786202"], ["updated_at", "2015-03-20 07:24:25.786202"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '233e5a76-ced2-11e4-a0b8-705681abff85' AND "clubhouse_memberships"."organization_id" = '23410668-ced2-11e4-b6af-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "233e5a76-ced2-11e4-a0b8-705681abff85"], ["organization_id", "23410668-ced2-11e4-b6af-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.791809"], ["updated_at", "2015-03-20 07:24:25.791809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '233f706e-ced2-11e4-8819-705681abff85' AND "clubhouse_memberships"."organization_id" = '23410668-ced2-11e4-b6af-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "233f706e-ced2-11e4-8819-705681abff85"], ["organization_id", "23410668-ced2-11e4-b6af-705681abff85"], ["created_at", "2015-03-20 07:24:25.796975"], ["updated_at", "2015-03-20 07:24:25.796975"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/23429b54-ced2-11e4-ac5d-705681abff85" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"23429b54-ced2-11e4-ac5d-705681abff85", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:25.804414' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "5BIafVKHuSfTG_1cnow6SRt0oxzUY3gtKhzS2wOGk0Y"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:25.806552"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:25.808621"], ["id", "234034c2-ced2-11e4-8740-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "23429b54-ced2-11e4-ac5d-705681abff85"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "233e5a76-ced2-11e4-a0b8-705681abff85"]] Clubhouse::Organization Load (2.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "23410668-ced2-11e4-b6af-705681abff85"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '233e5a76-ced2-11e4-a0b8-705681abff85' LIMIT 1 [["organization_id", "23410668-ced2-11e4-b6af-705681abff85"]] User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "233f706e-ced2-11e4-8819-705681abff85"]] Unpermitted parameters: id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '233f706e-ced2-11e4-8819-705681abff85' AND "clubhouse_memberships"."id" != '23429b54-ced2-11e4-ac5d-705681abff85' AND "clubhouse_memberships"."organization_id" = '23410668-ced2-11e4-b6af-705681abff85') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-03-20 07:24:25.826380"], ["id", "23429b54-ced2-11e4-ac5d-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 26ms (Views: 1.6ms | ActiveRecord: 5.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$1Tgd7GMg0MsdKDGyI.NUtOQbW.A/3/dpTYIDgEXQs5zyOr6BvALyK"], ["created_at", "2015-03-20 07:24:25.839032"], ["updated_at", "2015-03-20 07:24:25.839032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$mydMSQQf98Rv0XBps9ihEuPVBucZvH4VrbNqbujMAVPXbKjli9.Mm"], ["created_at", "2015-03-20 07:24:25.845775"], ["updated_at", "2015-03-20 07:24:25.845775"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.848135"], ["user_id", "23490a2a-ced2-11e4-a7c2-705681abff85"], ["created_at", "2015-03-20 07:24:25.849638"], ["updated_at", "2015-03-20 07:24:25.849638"], ["token", "dU2xt0lOCXgC1H1g2Rh-1bmSQfNGRuxHCN7_0N6QtWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.857242"], ["updated_at", "2015-03-20 07:24:25.857242"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23490a2a-ced2-11e4-a7c2-705681abff85' AND "clubhouse_memberships"."organization_id" = '234c3204-ced2-11e4-a6d6-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23490a2a-ced2-11e4-a7c2-705681abff85"], ["organization_id", "234c3204-ced2-11e4-a6d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.868239"], ["updated_at", "2015-03-20 07:24:25.868239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '234a100a-ced2-11e4-9cc5-705681abff85' AND "clubhouse_memberships"."organization_id" = '234c3204-ced2-11e4-a6d6-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "234a100a-ced2-11e4-9cc5-705681abff85"], ["organization_id", "234c3204-ced2-11e4-a6d6-705681abff85"], ["created_at", "2015-03-20 07:24:25.873691"], ["updated_at", "2015-03-20 07:24:25.873691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$vFFGYbeAxAzS8COMDxKfL.k4Ph74Iej12RbRtOtTwS.jiF/FAK/J."], ["created_at", "2015-03-20 07:24:25.878356"], ["updated_at", "2015-03-20 07:24:25.878356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.879872"], ["user_id", "234efa3e-ced2-11e4-87a2-705681abff85"], ["created_at", "2015-03-20 07:24:25.880646"], ["updated_at", "2015-03-20 07:24:25.880646"], ["token", "BfxXmefzEusZvvJu12nfRxmYtObcOrM0PAWfRzAvnsU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '234c3204-ced2-11e4-a6d6-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "234c3204-ced2-11e4-a6d6-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.884383"], ["updated_at", "2015-03-20 07:24:25.884383"], ["token", "z-HnDMU4thicXbDtZIGa6lLVOb17pLkoGQcy5H4_Dqw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (5.7ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$ZcEuBe0ppr2OMGAHcmKzhulyPjrUhjQUsIQV4gDiPO3ETm2cde5ei"], ["created_at", "2015-03-20 07:24:25.909638"], ["updated_at", "2015-03-20 07:24:25.909638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$l9MX.3pErlWdY3.NwUVh1ORTD/g3ChANLDhk0efeprI1SmBdhbvjS"], ["created_at", "2015-03-20 07:24:25.915576"], ["updated_at", "2015-03-20 07:24:25.915576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.917992"], ["user_id", "2353ced8-ced2-11e4-a0ca-705681abff85"], ["created_at", "2015-03-20 07:24:25.919268"], ["updated_at", "2015-03-20 07:24:25.919268"], ["token", "AdZ3LxK7IKdgjQgc_esiKyaOAR8zgXsg9tIO-v7MKGY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.924576"], ["updated_at", "2015-03-20 07:24:25.924576"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2353ced8-ced2-11e4-a0ca-705681abff85' AND "clubhouse_memberships"."organization_id" = '23561300-ced2-11e4-b892-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2353ced8-ced2-11e4-a0ca-705681abff85"], ["organization_id", "23561300-ced2-11e4-b892-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.930126"], ["updated_at", "2015-03-20 07:24:25.930126"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2354b794-ced2-11e4-8635-705681abff85' AND "clubhouse_memberships"."organization_id" = '23561300-ced2-11e4-b892-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2354b794-ced2-11e4-8635-705681abff85"], ["organization_id", "23561300-ced2-11e4-b892-705681abff85"], ["created_at", "2015-03-20 07:24:25.935778"], ["updated_at", "2015-03-20 07:24:25.935778"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$vWleNmn/tj2eaDXvywjQuOq7ppG/Qk.R0YasdpWznedUG8Bm0cidW"], ["created_at", "2015-03-20 07:24:25.942351"], ["updated_at", "2015-03-20 07:24:25.942351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.943995"], ["user_id", "2358c06e-ced2-11e4-ae2a-705681abff85"], ["created_at", "2015-03-20 07:24:25.944891"], ["updated_at", "2015-03-20 07:24:25.944891"], ["token", "drJMyI0rnJjCOAQ4uciAAQcr8PTzJYHaZfdxdWrF1ak"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '23561300-ced2-11e4-b892-705681abff85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "23561300-ced2-11e4-b892-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.948884"], ["updated_at", "2015-03-20 07:24:25.948884"], ["token", "-CK-fvqU3JhV_dmIPY5cv1mud5HnnDf2fa_8jQqC9Mk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:24:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"-CK-fvqU3JhV_dmIPY5cv1mud5HnnDf2fa_8jQqC9Mk", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:25.954161' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "drJMyI0rnJjCOAQ4uciAAQcr8PTzJYHaZfdxdWrF1ak"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:25.956587"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:25.958275"], ["id", "23592e3c-ced2-11e4-88cc-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2358c06e-ced2-11e4-ae2a-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "-CK-fvqU3JhV_dmIPY5cv1mud5HnnDf2fa_8jQqC9Mk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "23561300-ced2-11e4-b892-705681abff85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2358c06e-ced2-11e4-ae2a-705681abff85' AND "clubhouse_memberships"."organization_id" = '23561300-ced2-11e4-b892-705681abff85') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "23561300-ced2-11e4-b892-705681abff85"], ["member_id", "2358c06e-ced2-11e4-ae2a-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:25.969239"], ["updated_at", "2015-03-20 07:24:25.969239"]] SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "2359c400-ced2-11e4-a273-705681abff85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 21ms (Views: 1.5ms | ActiveRecord: 3.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$4ySF.6sKwtAK4i0B95l1QOl5GSqnqXZFUYlJiwAis72oH82FuFTBi"], ["created_at", "2015-03-20 07:24:25.983219"], ["updated_at", "2015-03-20 07:24:25.983219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$atP4QViP2aQ0Ai6oPfdTrOdoEjx9.4/HJxYoR26HSVP9cA.aRysxS"], ["created_at", "2015-03-20 07:24:25.989882"], ["updated_at", "2015-03-20 07:24:25.989882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:25.992139"], ["user_id", "235f097e-ced2-11e4-a894-705681abff85"], ["created_at", "2015-03-20 07:24:25.993288"], ["updated_at", "2015-03-20 07:24:25.993288"], ["token", "GdkSPjw3dHAoKka176-4frjb2m2sV545b1kYuEgo_a0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-03-20 07:24:25.998719"], ["updated_at", "2015-03-20 07:24:25.998719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '235f097e-ced2-11e4-a894-705681abff85' AND "clubhouse_memberships"."organization_id" = '236163a4-ced2-11e4-96fa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "235f097e-ced2-11e4-a894-705681abff85"], ["organization_id", "236163a4-ced2-11e4-96fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:26.003774"], ["updated_at", "2015-03-20 07:24:26.003774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23600a2c-ced2-11e4-b347-705681abff85' AND "clubhouse_memberships"."organization_id" = '236163a4-ced2-11e4-96fa-705681abff85') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "23600a2c-ced2-11e4-b347-705681abff85"], ["organization_id", "236163a4-ced2-11e4-96fa-705681abff85"], ["created_at", "2015-03-20 07:24:26.008787"], ["updated_at", "2015-03-20 07:24:26.008787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$KtO2Jr.77bDeGDN7o5V2ZO3b.gubVpgv2R9v6D1XkQplY1TWFgo5q"], ["created_at", "2015-03-20 07:24:26.015495"], ["updated_at", "2015-03-20 07:24:26.015495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-03-20 07:24:26.017875"], ["user_id", "2363f5ec-ced2-11e4-b856-705681abff85"], ["created_at", "2015-03-20 07:24:26.019063"], ["updated_at", "2015-03-20 07:24:26.019063"], ["token", "Z9KpGXm-ogp42Dlw7zLnzUNK8q5x4ibuqupyJDyM5yI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '236163a4-ced2-11e4-96fa-705681abff85') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "236163a4-ced2-11e4-96fa-705681abff85"], ["admin", "t"], ["created_at", "2015-03-20 07:24:26.024602"], ["updated_at", "2015-03-20 07:24:26.024602"], ["token", "OkAu06MDLu0c0o3xjjqtCi3ctTt_hJU4sy8tVoU8sf0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-03-20 00:24:26 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-03-06 07:24:26.032351' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Z9KpGXm-ogp42Dlw7zLnzUNK8q5x4ibuqupyJDyM5yI"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-03-20 07:24:26.034108"], ["ip", "127.0.0.1"], ["updated_at", "2015-03-20 07:24:26.035558"], ["id", "236486d8-ced2-11e4-959e-705681abff85"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2363f5ec-ced2-11e4-b856-705681abff85"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (10.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.1@example.com"], ["password_digest", "$2a$04$cY7xL1Em.dzzDmM1zbMXzeUi.Eet/NyfPMgxj19xbdxm8QbjniNK2"], ["created_at", "2015-06-02 23:46:51.999456"], ["updated_at", "2015-06-02 23:46:51.999456"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (3.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.025847"], ["updated_at", "2015-06-02 23:46:52.025847"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a48171ba-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4854132-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a48171ba-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4854132-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.058098"], ["updated_at", "2015-06-02 23:46:52.058098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a48171ba-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4854132-0981-11e5-9eb2-a8667f0424ad"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.2@example.com"], ["password_digest", "$2a$04$uIyGgedc6pKY.TlfUWDYJ.NnyAizWsbF74jUDKVKiWC8X/VJRCAcq"], ["created_at", "2015-06-02 23:46:52.088183"], ["updated_at", "2015-06-02 23:46:52.088183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.091805"], ["updated_at", "2015-06-02 23:46:52.091805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a48e5132-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a48ee2be-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a48e5132-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a48ee2be-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.096079"], ["updated_at", "2015-06-02 23:46:52.096079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a48e5132-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a48ee2be-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.3@example.com"], ["password_digest", "$2a$04$8qdZVfGmBrfhfLWky60YhOKNSGvXEDHOoxqRPIsghEGqNIDz.TVhy"], ["created_at", "2015-06-02 23:46:52.104235"], ["updated_at", "2015-06-02 23:46:52.104235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.107727"], ["updated_at", "2015-06-02 23:46:52.107727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a490c6ec-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4914806-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a490c6ec-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4914806-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.111359"], ["updated_at", "2015-06-02 23:46:52.111359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.4@example.com"], ["password_digest", "$2a$04$Ig84fH9MgxaWHvR27rOnTOUmvFh3U57TDMq/gVTVVcoEJy5DuWyY2"], ["created_at", "2015-06-02 23:46:52.117723"], ["updated_at", "2015-06-02 23:46:52.117723"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.122669"], ["updated_at", "2015-06-02 23:46:52.122669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a492de00-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a49399d0-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a492de00-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a49399d0-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.126879"], ["updated_at", "2015-06-02 23:46:52.126879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a492de00-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a49399d0-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.5@example.com"], ["password_digest", "$2a$04$mVLa/xJArAkB/wGKybVrKeRva1zs2BXZBs7f10Jm2S7ZlXXK7Dt/O"], ["created_at", "2015-06-02 23:46:52.134955"], ["updated_at", "2015-06-02 23:46:52.134955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.139268"], ["updated_at", "2015-06-02 23:46:52.139268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a49571ce-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4962dc6-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a49571ce-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4962dc6-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.144059"], ["updated_at", "2015-06-02 23:46:52.144059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a49571ce-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4962dc6-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.6@example.com"], ["password_digest", "$2a$04$dypZE7aH8/TM4.vJ4bloVOsgAQEesljFPra462gtCcODwf219NjVm"], ["created_at", "2015-06-02 23:46:52.153223"], ["updated_at", "2015-06-02 23:46:52.153223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.158017"], ["updated_at", "2015-06-02 23:46:52.158017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4984732-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a498f8e4-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4984732-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a498f8e4-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.161779"], ["updated_at", "2015-06-02 23:46:52.161779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4984732-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a498f8e4-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.7@example.com"], ["password_digest", "$2a$04$Vv670SS4kCBxv/Jt8dFpvOwg6Epju9.OkrDA.JuUtqQhbR4syt0EG"], ["created_at", "2015-06-02 23:46:52.170578"], ["updated_at", "2015-06-02 23:46:52.170578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.174933"], ["updated_at", "2015-06-02 23:46:52.174933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a49ae564-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a49b9392-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a49ae564-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a49b9392-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.178916"], ["updated_at", "2015-06-02 23:46:52.178916"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a49ae564-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a49b9392-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.8@example.com"], ["password_digest", "$2a$04$sUT1yALUoaTQi/GK0e/qEemmCwzydVu8S5smxhk3JMQxcTEDeOGLO"], ["created_at", "2015-06-02 23:46:52.198165"], ["updated_at", "2015-06-02 23:46:52.198165"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.204550"], ["updated_at", "2015-06-02 23:46:52.204550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a49f2c32-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4a01eb2-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a49f2c32-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4a01eb2-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.209491"], ["updated_at", "2015-06-02 23:46:52.209491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.9@example.com"], ["password_digest", "$2a$04$6/XK3joXPYDlhJbkXzycGuYRM1E33NP8.HZUHvnGPZc1S2bdnx9lS"], ["created_at", "2015-06-02 23:46:52.216036"], ["updated_at", "2015-06-02 23:46:52.216036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.219782"], ["updated_at", "2015-06-02 23:46:52.219782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4a1cf14-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4a267f8-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4a1cf14-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4a267f8-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.224235"], ["updated_at", "2015-06-02 23:46:52.224235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4a1cf14-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4a267f8-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.10@example.com"], ["password_digest", "$2a$04$aSpoSPUIyiDdFkvbBgTW6O1VUHhE4k.JM8hZmnwKs52c2L7ofIuIG"], ["created_at", "2015-06-02 23:46:52.233201"], ["updated_at", "2015-06-02 23:46:52.233201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.237071"], ["updated_at", "2015-06-02 23:46:52.237071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4a4748a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4a50512-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4a4748a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4a50512-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.241327"], ["updated_at", "2015-06-02 23:46:52.241327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a4a4748a-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4a50512-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.11@example.com"], ["password_digest", "$2a$04$Q1nylgHQcGYtIVm9tSpae.D1AqiYOB0lK784a2N6z8763Bp5agEEu"], ["created_at", "2015-06-02 23:46:52.249767"], ["updated_at", "2015-06-02 23:46:52.249767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.253906"], ["updated_at", "2015-06-02 23:46:52.253906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4a7011e-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4a7957a-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4a7011e-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4a7957a-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.258113"], ["updated_at", "2015-06-02 23:46:52.258113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.12@example.com"], ["password_digest", "$2a$04$UfiSTxrtobxKv4o/2RkqBe3ETU7Bx8kfLiSmfzNck21WT2zOsP3S."], ["created_at", "2015-06-02 23:46:52.262908"], ["updated_at", "2015-06-02 23:46:52.262908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4a8f6d6-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4a7957a-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4a8f6d6-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4a7957a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.266273"], ["updated_at", "2015-06-02 23:46:52.266273"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4a7011e-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4a7957a-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.13@example.com"], ["password_digest", "$2a$04$NBcesJdfM3uxFPHCqJ.bJe.xdR8V9urIt030/jjopt6vCvAO7Txm."], ["created_at", "2015-06-02 23:46:52.274552"], ["updated_at", "2015-06-02 23:46:52.274552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.278731"], ["updated_at", "2015-06-02 23:46:52.278731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4aabf84-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4ab6cb8-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4aabf84-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4ab6cb8-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.283117"], ["updated_at", "2015-06-02 23:46:52.283117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.14@example.com"], ["password_digest", "$2a$04$9FYutQCBD7edPVTy.6OS7eoyiCmn5.YRkcurjiOTwfhZgmD.aPIni"], ["created_at", "2015-06-02 23:46:52.289751"], ["updated_at", "2015-06-02 23:46:52.289751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4ad141e-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4ab6cb8-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4ad141e-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4ab6cb8-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.294073"], ["updated_at", "2015-06-02 23:46:52.294073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a4aabf84-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4ab6cb8-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.15@example.com"], ["password_digest", "$2a$04$FekMrx.bFI96x3ywGqVaXOoS2L54ojo1GBKSaNEDO7fthdj8H8q8O"], ["created_at", "2015-06-02 23:46:52.302581"], ["updated_at", "2015-06-02 23:46:52.302581"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.307571"], ["updated_at", "2015-06-02 23:46:52.307571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4af05da-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4afc8b2-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4af05da-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4afc8b2-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.312111"], ["updated_at", "2015-06-02 23:46:52.312111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.16@example.com"], ["password_digest", "$2a$04$0tqvHppG/ADT/EjvCge.Pu3PywjFHbsaa4ovNNAuUJYJ/0wJHRfLK"], ["created_at", "2015-06-02 23:46:52.316891"], ["updated_at", "2015-06-02 23:46:52.316891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4b1321a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4afc8b2-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4b1321a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4afc8b2-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.321275"], ["updated_at", "2015-06-02 23:46:52.321275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.17@example.com"], ["password_digest", "$2a$04$YxAMxePB21X4zlYxDTtzWOO5lS2QhRqx3YD/PZ2LdEjIcssNu1EqO"], ["created_at", "2015-06-02 23:46:52.327309"], ["updated_at", "2015-06-02 23:46:52.327309"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.332226"], ["updated_at", "2015-06-02 23:46:52.332226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4b2cab2-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4b38f88-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4b2cab2-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4b38f88-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.336309"], ["updated_at", "2015-06-02 23:46:52.336309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.18@example.com"], ["password_digest", "$2a$04$GZdZ.NxWk0fwlXeh2U6MGOjRE4RdMP6oEphiRvwT.KlXIqlj1aum6"], ["created_at", "2015-06-02 23:46:52.341195"], ["updated_at", "2015-06-02 23:46:52.341195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4b4e5fe-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4b38f88-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4b4e5fe-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4b38f88-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.344494"], ["updated_at", "2015-06-02 23:46:52.344494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4b2cab2-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4b38f88-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.19@example.com"], ["password_digest", "$2a$04$dHOWY3ttgxL4mtOketbNY.qpNhv2hAK5ElXxHH//qD3sx88MlqPpy"], ["created_at", "2015-06-02 23:46:52.353936"], ["updated_at", "2015-06-02 23:46:52.353936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.20@example.com"], ["password_digest", "$2a$04$DGylVwL2.zVc5Um84b51Aud0TKJSh.Xg6p/ftN4wHfAE9WLoC6uQe"], ["created_at", "2015-06-02 23:46:52.361128"], ["updated_at", "2015-06-02 23:46:52.361128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.365086"], ["updated_at", "2015-06-02 23:46:52.365086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4b7f3a2-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4b88c7c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4b7f3a2-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4b88c7c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.368429"], ["updated_at", "2015-06-02 23:46:52.368429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4b6e110-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4b88c7c-0981-11e5-9eb2-a8667f0424ad"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.21@example.com"], ["password_digest", "$2a$04$wPs0qeuP3Us9LYY32XDWt.SOxMz00PURCUL96eBA78JNlTQrWQcj."], ["created_at", "2015-06-02 23:46:52.378397"], ["updated_at", "2015-06-02 23:46:52.378397"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.22@example.com"], ["password_digest", "$2a$04$..WWzxuAvTfIeKwvNPxfcuLQ3oUmKEaJIOCFb/T7vtBoVGXku5Sk."], ["created_at", "2015-06-02 23:46:52.385122"], ["updated_at", "2015-06-02 23:46:52.385122"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.392899"], ["updated_at", "2015-06-02 23:46:52.392899"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4bbaba0-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4bd1558-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4bbaba0-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4bd1558-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.403116"], ["updated_at", "2015-06-02 23:46:52.403116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a4ba9e04-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4bd1558-0981-11e5-9eb2-a8667f0424ad"]]  (0.9ms) ROLLBACK  (0.5ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.23@example.com"], ["password_digest", "$2a$04$TUz4GGT9c48O3BjufuhyruUpAA9q0n0TndTa1FtNar8.ylT1mdcUS"], ["created_at", "2015-06-02 23:46:52.421534"], ["updated_at", "2015-06-02 23:46:52.421534"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.24@example.com"], ["password_digest", "$2a$04$6LVJp1e9QR67RxKZZGFHa.Cj1hHUgn52/TsLn4gwmI67MByPYrTqu"], ["created_at", "2015-06-02 23:46:52.435500"], ["updated_at", "2015-06-02 23:46:52.435500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.444664"], ["updated_at", "2015-06-02 23:46:52.444664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4c3b32c-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4c5090c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4c3b32c-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4c5090c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.453726"], ["updated_at", "2015-06-02 23:46:52.453726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.25@example.com"], ["password_digest", "$2a$04$DOIJuwadRKlhMQ0lpNEIa.esenMFtofEcV9hK6V9yMRQ7EXHXZWRa"], ["created_at", "2015-06-02 23:46:52.464920"], ["updated_at", "2015-06-02 23:46:52.464920"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.26@example.com"], ["password_digest", "$2a$04$ChwzB378htZlzRN1VNQMtOj/ZXmWy9zze9cqijnGvEWlusyOg1ZwC"], ["created_at", "2015-06-02 23:46:52.473265"], ["updated_at", "2015-06-02 23:46:52.473265"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (6.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.487471"], ["updated_at", "2015-06-02 23:46:52.487471"]]  (3.3ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4c91c86-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4cb88f4-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4c91c86-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4cb88f4-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.502388"], ["updated_at", "2015-06-02 23:46:52.502388"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4c7fe96-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4cb88f4-0981-11e5-9eb2-a8667f0424ad"]]  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.27@example.com"], ["password_digest", "$2a$04$cucWiPT/Moq2AD5yWDbwSetUrvisFe0z.hmx9at2sdRrlZre.04Oe"], ["created_at", "2015-06-02 23:46:52.526185"], ["updated_at", "2015-06-02 23:46:52.526185"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.536584"], ["updated_at", "2015-06-02 23:46:52.536584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a4d15bd0-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4d2d0c8-0981-11e5-9eb2-a8667f0424ad"]]  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.28@example.com"], ["password_digest", "$2a$04$DdAVloHmgHgPLJTVJZvwz.4iJ5iCiil5ABF941e6jtPThgOEjQSP6"], ["created_at", "2015-06-02 23:46:52.561050"], ["updated_at", "2015-06-02 23:46:52.561050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.573234"], ["updated_at", "2015-06-02 23:46:52.573234"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4d695a0-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4d885d6-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4d695a0-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4d885d6-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.580259"], ["updated_at", "2015-06-02 23:46:52.580259"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a4d885d6-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (7.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a4d885d6-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.603989"], ["updated_at", "2015-06-02 23:46:52.603989"], ["token", "6H2Cz44j8-mVe2WtBTRXQTziVAd2HsSO0fUg-VC4PJw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4d695a0-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4d885d6-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.29@example.com"], ["password_digest", "$2a$04$iQTjv/y64NjUVMrILYOQwutkJEIiuoQqKL9QVzx/aG7CYFl92Aao."], ["created_at", "2015-06-02 23:46:52.625836"], ["updated_at", "2015-06-02 23:46:52.625836"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.637082"], ["updated_at", "2015-06-02 23:46:52.637082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4e06990-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4e21eca-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4e06990-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4e21eca-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.645163"], ["updated_at", "2015-06-02 23:46:52.645163"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a4e21eca-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a4e21eca-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.652009"], ["updated_at", "2015-06-02 23:46:52.652009"], ["token", "mbiSi5j0fgoZwZGVdVVvM6TwOMX7JPyoWvWkEqbn078"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4e06990-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4e21eca-0981-11e5-9eb2-a8667f0424ad"]]  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.30@example.com"], ["password_digest", "$2a$04$O.OGYKT4XjVxPBlLhaxIGuWqSucxyIdZk6F05ep3jTTxES9TzUi5C"], ["created_at", "2015-06-02 23:46:52.670982"], ["updated_at", "2015-06-02 23:46:52.670982"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.679454"], ["updated_at", "2015-06-02 23:46:52.679454"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4e742ce-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4e8acfe-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4e742ce-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4e8acfe-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.686561"], ["updated_at", "2015-06-02 23:46:52.686561"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a4e8acfe-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a4e8acfe-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.698014"], ["updated_at", "2015-06-02 23:46:52.698014"], ["token", "UATBG7jkH3q4ulbtRsZ9ukE0RAb0O-8Nbjf6FHfwUDo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4e742ce-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4e8acfe-0981-11e5-9eb2-a8667f0424ad"]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.31@example.com"], ["password_digest", "$2a$04$v9YySXlk4dsXa6oDQfUYEuSilgeZe8GA.bpoQKC9dY.8wMTdj0Z2u"], ["created_at", "2015-06-02 23:46:52.719848"], ["updated_at", "2015-06-02 23:46:52.719848"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.725419"], ["updated_at", "2015-06-02 23:46:52.725419"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4eec2a6-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4ef9d5c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4eec2a6-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4ef9d5c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.735260"], ["updated_at", "2015-06-02 23:46:52.735260"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a4ef9d5c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a4ef9d5c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.743988"], ["updated_at", "2015-06-02 23:46:52.743988"], ["token", "nst6BPEACl9FWw4ZsFyWYksQmLl54bAgmgh6Jr23U5A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4eec2a6-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4ef9d5c-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.32@example.com"], ["password_digest", "$2a$04$wt.WH3I3puceTiuuJN0jA.wAAl0SPqaLPVBIm7OVOIu.PFrbHmzyC"], ["created_at", "2015-06-02 23:46:52.757628"], ["updated_at", "2015-06-02 23:46:52.757628"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (2.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.766867"], ["updated_at", "2015-06-02 23:46:52.766867"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4f4a180-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4f6589a-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4f4a180-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4f6589a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.781529"], ["updated_at", "2015-06-02 23:46:52.781529"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4f4a180-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4f6589a-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.33@example.com"], ["password_digest", "$2a$04$6Wo0NZ4BMH0T0LMeBQMDdeIo9k8qHGTqM9z1rYjEkutfvZ0Xovwiq"], ["created_at", "2015-06-02 23:46:52.807224"], ["updated_at", "2015-06-02 23:46:52.807224"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.816762"], ["updated_at", "2015-06-02 23:46:52.816762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4fc379c-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a4fd8aca-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a4fc379c-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a4fd8aca-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.824350"], ["updated_at", "2015-06-02 23:46:52.824350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a4fd8aca-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a4fd8aca-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.834586"], ["updated_at", "2015-06-02 23:46:52.834586"], ["token", "kQXQZCo3FOzX831lruifn0_7hKYc-tJGDe1lMNXCggI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a4fc379c-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a4fd8aca-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.34@example.com"], ["password_digest", "$2a$04$woemfuEPBrx9UAU2qSzKtO//2W/gWmi9665Ta6xC3ElVksB32AZPC"], ["created_at", "2015-06-02 23:46:52.851474"], ["updated_at", "2015-06-02 23:46:52.851474"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.862121"], ["updated_at", "2015-06-02 23:46:52.862121"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a502c904-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5047b00-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a502c904-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5047b00-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.875892"], ["updated_at", "2015-06-02 23:46:52.875892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a5047b00-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a5047b00-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.884667"], ["updated_at", "2015-06-02 23:46:52.884667"], ["token", "EoV8s0_KBHPNPelO5_Z5GyVcuViZ_oCMBAdBc9vW8KQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a502c904-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5047b00-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.35@example.com"], ["password_digest", "$2a$04$6EnVYzsxJlZ1CwSaOyvgT.SzouZTl9CexmbNEriz4zeggo8YoLPBm"], ["created_at", "2015-06-02 23:46:52.898919"], ["updated_at", "2015-06-02 23:46:52.898919"]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.907022"], ["updated_at", "2015-06-02 23:46:52.907022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a50a1df8-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a50b4106-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a50a1df8-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a50b4106-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.915010"], ["updated_at", "2015-06-02 23:46:52.915010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'a50b4106-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "a50b4106-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.919938"], ["updated_at", "2015-06-02 23:46:52.919938"], ["token", "TT3vrg6hE48fNPer9VrXlx5PpetuIoVlTgKXvhHdoC0"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a50a1df8-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a50b4106-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.36@example.com"], ["password_digest", "$2a$04$sLlcFDt.pHM4b9cokZMLsu7CZwnDL3Du4b7wqCeTHSwF/rDo7oLmK"], ["created_at", "2015-06-02 23:46:52.943964"], ["updated_at", "2015-06-02 23:46:52.943964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:52.948906"], ["updated_at", "2015-06-02 23:46:52.948906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a510eda4-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a511af3c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a510eda4-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a511af3c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:52.959771"], ["updated_at", "2015-06-02 23:46:52.959771"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'a511af3c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "a511af3c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:52.978885"], ["updated_at", "2015-06-02 23:46:52.978885"], ["token", "4gLTBhdDdvC-1WMd0ipktFUFxZMT7FZrcOk7_WCemB8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a510eda4-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a511af3c-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.37@example.com"], ["password_digest", "$2a$04$45AjQhcRzwXl1j7LkTOAz.LSRqC6ji8xAKhVBW6ecC4Th/qBJnV76"], ["created_at", "2015-06-02 23:46:52.995200"], ["updated_at", "2015-06-02 23:46:52.995200"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.000720"], ["updated_at", "2015-06-02 23:46:53.000720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a518d1e0-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5199a44-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a518d1e0-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5199a44-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.007128"], ["updated_at", "2015-06-02 23:46:53.007128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a518d1e0-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5199a44-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.38@example.com"], ["password_digest", "$2a$04$PpnyWrBGUBaYwokhp3nwgOvb5PdvkwBaaoEm//63QuHiGd8YOVCdm"], ["created_at", "2015-06-02 23:46:53.018873"], ["updated_at", "2015-06-02 23:46:53.018873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.023384"], ["updated_at", "2015-06-02 23:46:53.023384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'a51d0ada-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "a51d0ada-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.027950"], ["updated_at", "2015-06-02 23:46:53.027950"], ["token", "1PdfedhzcveAzC7IjwKmf0XQKD4rnkTeP8vbDtkhnxk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a51c5284-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a51d0ada-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.39@example.com"], ["password_digest", "$2a$04$xTcK33zDSXcCt/e4CvTN1.tgZ7b0ySUwVDOlorKpOD6h/jqrsBU3O"], ["created_at", "2015-06-02 23:46:53.037526"], ["updated_at", "2015-06-02 23:46:53.037526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.041719"], ["updated_at", "2015-06-02 23:46:53.041719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'a51fce6e-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "a51fce6e-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.045536"], ["updated_at", "2015-06-02 23:46:53.045536"], ["token", "VkAcTC2kLXit4VjCSYRAzQ9PuHJAVo8xY3E3-Zr4uEE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a51f306c-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a51fce6e-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.40@example.com"], ["password_digest", "$2a$04$pSgPdtzq6mdgQoiByzzjyeE6SFDOKUsOpzK4VgtNWCQDLZwYTtU6G"], ["created_at", "2015-06-02 23:46:53.053778"], ["updated_at", "2015-06-02 23:46:53.053778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.058624"], ["updated_at", "2015-06-02 23:46:53.058624"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'a5226638-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "a5226638-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.063446"], ["updated_at", "2015-06-02 23:46:53.063446"], ["token", "r1mcP53KiHfRnMzCLsAEoyUwTrFm-NQyk_zafpPnGNo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a521b7f6-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5226638-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.41@example.com"], ["password_digest", "$2a$04$f71lE0ejk9HSex6cWTkylunRWE9dgoESuGqngYVVd0JHvY6eaNIGO"], ["created_at", "2015-06-02 23:46:53.073865"], ["updated_at", "2015-06-02 23:46:53.073865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.077357"], ["updated_at", "2015-06-02 23:46:53.077357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'a5253854-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "a5253854-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.081071"], ["updated_at", "2015-06-02 23:46:53.081071"], ["token", "LTY-uUAYWZx5L14zhNNXv_GdJouuqiEafTfjgO-nvF4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a524b488-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5253854-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.42@example.com"], ["password_digest", "$2a$04$OwnKtZ226ThVF47cNPKqs.XGPqeI7QOjcHwVGNBfP8UU6iSTCByFC"], ["created_at", "2015-06-02 23:46:53.089533"], ["updated_at", "2015-06-02 23:46:53.089533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.093948"], ["updated_at", "2015-06-02 23:46:53.093948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a52722e0-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a527c4ac-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.43@example.com"], ["password_digest", "$2a$04$qAJFQFi/tMKYd1G0.JHqTOkwscauoQNT5XjyPHf3RbmsRk/f9EdFq"], ["created_at", "2015-06-02 23:46:53.102029"], ["updated_at", "2015-06-02 23:46:53.102029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.110800"], ["user_id", "a5290150-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.112346"], ["updated_at", "2015-06-02 23:46:53.112346"], ["token", "0jnBvUaWCRQQQ7u24W7f0aWVDr0jYwqHMJ9pDKd56to"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.117478"], ["updated_at", "2015-06-02 23:46:53.117478"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5290150-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a52b66de-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5290150-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a52b66de-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.122162"], ["updated_at", "2015-06-02 23:46:53.122162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.44@example.com"], ["password_digest", "$2a$04$XJjKAAXSyhYFJNdQCnbKNOiFhTH2QpL3dSE.JnCzhbzl/ZDnJRF1S"], ["created_at", "2015-06-02 23:46:53.162839"], ["updated_at", "2015-06-02 23:46:53.162839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.164648"], ["user_id", "a5324d14-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.165464"], ["updated_at", "2015-06-02 23:46:53.165464"], ["token", "S-rKLEuuK2jtdae8h_G1rMGNcRYB9wNCRKbfgsaGfjU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.169779"], ["updated_at", "2015-06-02 23:46:53.169779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5324d14-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a533629e-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5324d14-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a533629e-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.174398"], ["updated_at", "2015-06-02 23:46:53.174398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.185206' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "S-rKLEuuK2jtdae8h_G1rMGNcRYB9wNCRKbfgsaGfjU"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.193023"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.197254"], ["id", "a532b4fc-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5324d14-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 49ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.45@example.com"], ["password_digest", "$2a$04$zJIbeSy86qfae0ZhJj6lB.gTObSIrELQ92xDyri/IGVqTJ0KVowje"], ["created_at", "2015-06-02 23:46:53.239830"], ["updated_at", "2015-06-02 23:46:53.239830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.242776"], ["user_id", "a53e145a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.245745"], ["updated_at", "2015-06-02 23:46:53.245745"], ["token", "CmVErBdRODYCTQpwCGWMNep52x-5OyYIHPCSTucOidA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.251581"], ["updated_at", "2015-06-02 23:46:53.251581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a53e145a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a53fe71c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a53e145a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a53fe71c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.256746"], ["updated_at", "2015-06-02 23:46:53.256746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.264446' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CmVErBdRODYCTQpwCGWMNep52x-5OyYIHPCSTucOidA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.266263"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.267709"], ["id", "a53f0784-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a53e145a-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.276802"], ["updated_at", "2015-06-02 23:46:53.276802"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a543ba86-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a53e145a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a543ba86-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a53e145a-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["organization_id", "a543ba86-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.283437"], ["updated_at", "2015-06-02 23:46:53.283437"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 23ms (Views: 1.5ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.46@example.com"], ["password_digest", "$2a$04$i4Gimqgxh1ZnUn9pMyfuGujAgeXlByE7OLsEQsEnrJGo/6fNIWDXW"], ["created_at", "2015-06-02 23:46:53.299877"], ["updated_at", "2015-06-02 23:46:53.299877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.301961"], ["user_id", "a5473bde-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.302835"], ["updated_at", "2015-06-02 23:46:53.302835"], ["token", "RAZ3KCbVUUyaDeMD6Bn0xdAW3D83U0B2TqEA_IjrLK8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.307661"], ["updated_at", "2015-06-02 23:46:53.307661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5473bde-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5487224-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5473bde-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5487224-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.311993"], ["updated_at", "2015-06-02 23:46:53.311993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.47@example.com"], ["password_digest", "$2a$04$UYuroho/YahtxUDyBnXSQOn9Ok2THcWUGUxbJe2eopR5y0/A2LYm6"], ["created_at", "2015-06-02 23:46:53.323993"], ["updated_at", "2015-06-02 23:46:53.323993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.325548"], ["user_id", "a54adc76-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.326349"], ["updated_at", "2015-06-02 23:46:53.326349"], ["token", "VTft6FZ3yxhs4N6UG7k2pj4BLQVLRrJE28KmOcXWstY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.330236"], ["updated_at", "2015-06-02 23:46:53.330236"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a54adc76-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a54bdb58-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a54adc76-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a54bdb58-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.336384"], ["updated_at", "2015-06-02 23:46:53.336384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a54bdb58-0981-11e5-9eb2-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"a54bdb58-0981-11e5-9eb2-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.344612' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "VTft6FZ3yxhs4N6UG7k2pj4BLQVLRrJE28KmOcXWstY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.346474"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.347602"], ["id", "a54b3fcc-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a54bdb58-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a54adc76-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a54adc76-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a54bdb58-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a54bdb58-0981-11e5-9eb2-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.48@example.com"], ["password_digest", "$2a$04$ZUsB4hk3wNrvzsEjkX8iW.NAVWoX/yod5t6hBLRUnn6VnRXDBR9iO"], ["created_at", "2015-06-02 23:46:53.364754"], ["updated_at", "2015-06-02 23:46:53.364754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.366490"], ["user_id", "a55117a8-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.367806"], ["updated_at", "2015-06-02 23:46:53.367806"], ["token", "LKWJZb76i_Hoijzl50a-0lHSyyg7Ltk0DX93T_nE1ts"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.372053"], ["updated_at", "2015-06-02 23:46:53.372053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a55117a8-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5523598-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a55117a8-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5523598-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.375729"], ["updated_at", "2015-06-02 23:46:53.375729"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a5523598-0981-11e5-9eb2-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"a5523598-0981-11e5-9eb2-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.384201' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LKWJZb76i_Hoijzl50a-0lHSyyg7Ltk0DX93T_nE1ts"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.386012"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.388185"], ["id", "a5519516-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a5523598-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a55117a8-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a55117a8-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5523598-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a5523598-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:46:53.396355"], ["id", "a5523598-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.49@example.com"], ["password_digest", "$2a$04$dXq9BRV2HNodqOlleLw20uCATv.VuMBhAVYKRW3xQc1yQim9KZ91."], ["created_at", "2015-06-02 23:46:53.406741"], ["updated_at", "2015-06-02 23:46:53.406741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.408981"], ["user_id", "a5578c32-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.409938"], ["updated_at", "2015-06-02 23:46:53.409938"], ["token", "_eozyHVjIt3qefUjlfatZxFWyiUiiGdOGEfO-RyTypU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.413991"], ["updated_at", "2015-06-02 23:46:53.413991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5578c32-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a558aedc-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5578c32-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a558aedc-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.418649"], ["updated_at", "2015-06-02 23:46:53.418649"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/a558aedc-0981-11e5-9eb2-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"a558aedc-0981-11e5-9eb2-a8667f0424ad", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.425696' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_eozyHVjIt3qefUjlfatZxFWyiUiiGdOGEfO-RyTypU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.427677"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.428876"], ["id", "a5580bf8-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a558aedc-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5578c32-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a5578c32-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a558aedc-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a558aedc-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.50@example.com"], ["password_digest", "$2a$04$/CrVnIQfC5SC.NU6FYGSl.cqZ50umrbfdjAmBXK73T7d3sx4z2V7K"], ["created_at", "2015-06-02 23:46:53.443107"], ["updated_at", "2015-06-02 23:46:53.443107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.444949"], ["user_id", "a55d0fa4-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.445773"], ["updated_at", "2015-06-02 23:46:53.445773"], ["token", "ndv01FPvCummkgbnRDbrfJ_cRMFJY0vhEU32TOrz1fo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.449395"], ["updated_at", "2015-06-02 23:46:53.449395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a55d0fa4-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a55e001c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a55d0fa4-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a55e001c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.452825"], ["updated_at", "2015-06-02 23:46:53.452825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.51@example.com"], ["password_digest", "$2a$04$vF8G.2xycYL1SdXo/veXDeLRuBei6/uEnb5BsWOzDx1WBVE4/hsWO"], ["created_at", "2015-06-02 23:46:53.466200"], ["updated_at", "2015-06-02 23:46:53.466200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.468522"], ["user_id", "a5609ebc-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.469467"], ["updated_at", "2015-06-02 23:46:53.469467"], ["token", "LfVk_L7t3wf93LwRWMm_lOsB01oHxI8JlPBwyNtELr0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.473161"], ["updated_at", "2015-06-02 23:46:53.473161"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5609ebc-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a561a5fa-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (1.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5609ebc-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a561a5fa-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.478677"], ["updated_at", "2015-06-02 23:46:53.478677"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-43" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-43", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.488774' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LfVk_L7t3wf93LwRWMm_lOsB01oHxI8JlPBwyNtELr0"]]  (0.5ms) SAVEPOINT active_record_1 SQL (1.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.490890"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.492716"], ["id", "a5611982-0981-11e5-9eb2-a8667f0424ad"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-43"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5609ebc-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a5609ebc-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a561a5fa-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a561a5fa-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 18ms (ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.52@example.com"], ["password_digest", "$2a$04$vgtMDqYWMOl63PUijDxKpefJq8r/u.l2UdNRnPF4xRPUDsw6xLt/m"], ["created_at", "2015-06-02 23:46:53.512816"], ["updated_at", "2015-06-02 23:46:53.512816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.514748"], ["user_id", "a567b580-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.515598"], ["updated_at", "2015-06-02 23:46:53.515598"], ["token", "iuJms_9DdESL_JUe6M-fhRsNdjBb2DdskpG1pO-c5HI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.519821"], ["updated_at", "2015-06-02 23:46:53.519821"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a567b580-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a568c20e-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a567b580-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a568c20e-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.525071"], ["updated_at", "2015-06-02 23:46:53.525071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.53@example.com"], ["password_digest", "$2a$04$UMRHCyXFTg5YrMyDeAA37Oia3PKP7n0.khxebgGtgvtFG/wr5fOZK"], ["created_at", "2015-06-02 23:46:53.538759"], ["updated_at", "2015-06-02 23:46:53.538759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.540358"], ["user_id", "a56ba28a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.541163"], ["updated_at", "2015-06-02 23:46:53.541163"], ["token", "oxhCARPnRMz3I03CDShriTF054Z0j53NGmWBi_oTel8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.545407"], ["updated_at", "2015-06-02 23:46:53.545407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a56ba28a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a56ca766-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a56ba28a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a56ca766-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.549178"], ["updated_at", "2015-06-02 23:46:53.549178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.54@example.com"], ["password_digest", "$2a$04$MBuk5IX0BizBvBBxp/68..88EMM3gZdn1O1VHAur1rTESo6Vzd4Ma"], ["created_at", "2015-06-02 23:46:53.563798"], ["updated_at", "2015-06-02 23:46:53.563798"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.566294"], ["user_id", "a56f83f0-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.567589"], ["updated_at", "2015-06-02 23:46:53.567589"], ["token", "fuNfEKcVnmV1lbrDPItWHeP42gcFTlgmrIlDqbzCxvc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.572275"], ["updated_at", "2015-06-02 23:46:53.572275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a56f83f0-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a570c166-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a56f83f0-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a570c166-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.576171"], ["updated_at", "2015-06-02 23:46:53.576171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-46" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-46", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.584715' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "fuNfEKcVnmV1lbrDPItWHeP42gcFTlgmrIlDqbzCxvc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.586477"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.587595"], ["id", "a5702184-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-46"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a56f83f0-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a56f83f0-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a570c166-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a570c166-0981-11e5-9eb2-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.55@example.com"], ["password_digest", "$2a$04$BGTuiV63foTfWMlCfTeI4Om7s23l9Zhg9MML1goQo5.IrSkauaAny"], ["created_at", "2015-06-02 23:46:53.603322"], ["updated_at", "2015-06-02 23:46:53.603322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.605916"], ["user_id", "a5758f48-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.606922"], ["updated_at", "2015-06-02 23:46:53.606922"], ["token", "UgpbylQTzfH5o7yJHXVWMWgrewFHzb65SA1Zv8DhW5s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.611115"], ["updated_at", "2015-06-02 23:46:53.611115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5758f48-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a576af22-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5758f48-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a576af22-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.614869"], ["updated_at", "2015-06-02 23:46:53.614869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-47" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-47", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.622273' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UgpbylQTzfH5o7yJHXVWMWgrewFHzb65SA1Zv8DhW5s"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.624237"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.625436"], ["id", "a57614fe-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-47"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5758f48-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a5758f48-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a576af22-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a576af22-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:46:53.633944"], ["id", "a576af22-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.56@example.com"], ["password_digest", "$2a$04$JyOyXHnBHIusNtYGsGKt8uhG9r.bKxo3.3qMY1e1WhXh7BUWN4pKe"], ["created_at", "2015-06-02 23:46:53.643687"], ["updated_at", "2015-06-02 23:46:53.643687"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.649037"], ["user_id", "a57ba7ac-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.650101"], ["updated_at", "2015-06-02 23:46:53.650101"], ["token", "wmaSCj4KZfZJ3B28K8691E9fEp4PLU5vTNRwhP_q7G8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.654235"], ["updated_at", "2015-06-02 23:46:53.654235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a57ba7ac-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a57d421a-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a57ba7ac-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a57d421a-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.658964"], ["updated_at", "2015-06-02 23:46:53.658964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.57@example.com"], ["password_digest", "$2a$04$TePq8rCVJZl8TS2pJQvREOvEj0m9UIGFt5P8XZDVqv36n46LYEY3i"], ["created_at", "2015-06-02 23:46:53.672533"], ["updated_at", "2015-06-02 23:46:53.672533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.675221"], ["user_id", "a5801666-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.676298"], ["updated_at", "2015-06-02 23:46:53.676298"], ["token", "Kpvn5DvM-o8f1fnIplismg9IwVQhSFijtUK8cpq-c74"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.680319"], ["updated_at", "2015-06-02 23:46:53.680319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5801666-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5813c62-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5801666-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5813c62-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.693762"], ["updated_at", "2015-06-02 23:46:53.693762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.701227' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "Kpvn5DvM-o8f1fnIplismg9IwVQhSFijtUK8cpq-c74"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.703462"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.705476"], ["id", "a580b03a-0981-11e5-9eb2-a8667f0424ad"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 13ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.58@example.com"], ["password_digest", "$2a$04$CuQtGHaXTYaq4e35cXMvOuMBSsZVu/sUGXczeO2IVlPdv59EK89Lm"], ["created_at", "2015-06-02 23:46:53.723871"], ["updated_at", "2015-06-02 23:46:53.723871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.729080"], ["user_id", "a5883a44-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.730565"], ["updated_at", "2015-06-02 23:46:53.730565"], ["token", "dQYBMiAPaNM-W-MwEPEXxpqiJsMaRA-SSn1BtNr7pIU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.736827"], ["updated_at", "2015-06-02 23:46:53.736827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5883a44-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a589f35c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5883a44-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a589f35c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.743709"], ["updated_at", "2015-06-02 23:46:53.743709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-50" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-50", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.750736' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "dQYBMiAPaNM-W-MwEPEXxpqiJsMaRA-SSn1BtNr7pIU"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.752359"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.753572"], ["id", "a5890c9e-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-50"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5883a44-0981-11e5-9eb2-a8667f0424ad"]] Completed 200 OK in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.59@example.com"], ["password_digest", "$2a$04$QYfZwRvefeEuCOVTtQ4q4eqioD5uZuPmXDOg/xHL.8s.kixvP4lTq"], ["created_at", "2015-06-02 23:46:53.765529"], ["updated_at", "2015-06-02 23:46:53.765529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.767518"], ["user_id", "a58e43ee-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.768464"], ["updated_at", "2015-06-02 23:46:53.768464"], ["token", "bHn6ylY6hACWCyi2GLCJxpMzbMUqYUI6kJCnlVkO8jc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.772379"], ["updated_at", "2015-06-02 23:46:53.772379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a58e43ee-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a58f4988-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a58e43ee-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a58f4988-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.776674"], ["updated_at", "2015-06-02 23:46:53.776674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-51" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-51", "organization"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.785366' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "bHn6ylY6hACWCyi2GLCJxpMzbMUqYUI6kJCnlVkO8jc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.788036"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.789681"], ["id", "a58ebd74-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-51"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a58e43ee-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a58e43ee-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a58f4988-0981-11e5-9eb2-a8667f0424ad"]] Completed 200 OK in 13ms (Views: 0.8ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.60@example.com"], ["password_digest", "$2a$04$pC/MYtQee500GTrTpKX/Q.dBkfML3e6Q2fD4GqxuocUXe97tHKIji"], ["created_at", "2015-06-02 23:46:53.805838"], ["updated_at", "2015-06-02 23:46:53.805838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.807804"], ["user_id", "a5946a26-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.808753"], ["updated_at", "2015-06-02 23:46:53.808753"], ["token", "LwR2X2uFEcuOsRUR2QUMdlNbNAOHLkcraAKFChJJz8E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.813103"], ["updated_at", "2015-06-02 23:46:53.813103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5946a26-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5958230-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5946a26-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5958230-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.817323"], ["updated_at", "2015-06-02 23:46:53.817323"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.61@example.com"], ["password_digest", "$2a$04$l8zeyqkfY7CvOLHMp/SGlOqWwoa7.P5FIo5X6l7wWCw8CN5EQQOK."], ["created_at", "2015-06-02 23:46:53.832273"], ["updated_at", "2015-06-02 23:46:53.832273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.834424"], ["user_id", "a5987b70-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.835382"], ["updated_at", "2015-06-02 23:46:53.835382"], ["token", "vJMmDRkFwF884DM6q4y4jSCy2ZzFA3IqSeEPdD9MpZY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.839837"], ["updated_at", "2015-06-02 23:46:53.839837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5987b70-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a599958c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5987b70-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a599958c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.844014"], ["updated_at", "2015-06-02 23:46:53.844014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.62@example.com"], ["password_digest", "$2a$04$jnAt80uzdWT04F7dPWBmV.G.1b5bTFgCkbX1sZeUaxJJSeehZJLTK"], ["created_at", "2015-06-02 23:46:53.849060"], ["updated_at", "2015-06-02 23:46:53.849060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.852539"], ["updated_at", "2015-06-02 23:46:53.852539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a59afbca-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a59b83ce-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a59afbca-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a59b83ce-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.856493"], ["updated_at", "2015-06-02 23:46:53.856493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Session Load (0.2ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.863602' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vJMmDRkFwF884DM6q4y4jSCy2ZzFA3IqSeEPdD9MpZY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.865307"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.866552"], ["id", "a598f834-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5987b70-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a5987b70-0981-11e5-9eb2-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 3.5ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.63@example.com"], ["password_digest", "$2a$04$spBICmQSfnu0gjO2duoD1eJ8WQn8.dYnqyqVQU9RXf01pPaSk5Hmy"], ["created_at", "2015-06-02 23:46:53.886812"], ["updated_at", "2015-06-02 23:46:53.886812"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.890027"], ["user_id", "a5a0e04e-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.891365"], ["updated_at", "2015-06-02 23:46:53.891365"], ["token", "QC-t2XR-Ul7wr07vScqrCRphCb2HnUNFoNB6vy0DOiU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.897959"], ["updated_at", "2015-06-02 23:46:53.897959"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5a0e04e-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5a287be-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5a0e04e-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5a287be-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.907916"], ["updated_at", "2015-06-02 23:46:53.907916"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.64@example.com"], ["password_digest", "$2a$04$b1tsHb4w9YjSjhB2Z.t/vOIsDWvNdpciqHiBJUcVA2ZK81DmNPlcu"], ["created_at", "2015-06-02 23:46:53.917576"], ["updated_at", "2015-06-02 23:46:53.917576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.922279"], ["updated_at", "2015-06-02 23:46:53.922279"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5a57866-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5a63e04-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5a57866-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5a63e04-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.929411"], ["updated_at", "2015-06-02 23:46:53.929411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.65@example.com"], ["password_digest", "$2a$04$VIdNQyq4JzN43lwZghW0UuEvhjq4o7b4/TmmmTmYzHIQwWmZwrx26"], ["created_at", "2015-06-02 23:46:53.944872"], ["updated_at", "2015-06-02 23:46:53.944872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.947836"], ["user_id", "a5a9b444-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.949388"], ["updated_at", "2015-06-02 23:46:53.949388"], ["token", "QRvnXyjxsN5rc9waJfqTA5kdM4BcJElAKWK6v4d6vRw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.955030"], ["updated_at", "2015-06-02 23:46:53.955030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5a9b444-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5ab32ec-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5a9b444-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5ab32ec-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.959434"], ["updated_at", "2015-06-02 23:46:53.959434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a5ab32ec-0981-11e5-9eb2-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:46:53 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"a5ab32ec-0981-11e5-9eb2-a8667f0424ad", "organization"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:53.967580' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "QRvnXyjxsN5rc9waJfqTA5kdM4BcJElAKWK6v4d6vRw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:53.969353"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:53.970962"], ["id", "a5aa5d9a-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a5ab32ec-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5a9b444-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a5a9b444-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5ab32ec-0981-11e5-9eb2-a8667f0424ad"]] Completed 200 OK in 11ms (Views: 0.8ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.66@example.com"], ["password_digest", "$2a$04$qD.cl.u.WBUMA.cvUwl4pOLV1/YOv5pPXVDqZDiohVb/am2eq3L9e"], ["created_at", "2015-06-02 23:46:53.985695"], ["updated_at", "2015-06-02 23:46:53.985695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:53.987895"], ["user_id", "a5afd8b0-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:53.988946"], ["updated_at", "2015-06-02 23:46:53.988946"], ["token", "90-ynQqU1ij-zKEbw2ZJRyrVhSIGFXL8BlU0Th3dZms"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:53.992894"], ["updated_at", "2015-06-02 23:46:53.992894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5afd8b0-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5b0eeee-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5afd8b0-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5b0eeee-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:53.996633"], ["updated_at", "2015-06-02 23:46:53.996633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:46:54 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.67@example.com"], ["password_digest", "$2a$04$SqnkkfIjGXvZSHXJHQ08fOhShsqUTmCgeiw4386aSYc2FnA3ZJnfW"], ["created_at", "2015-06-02 23:46:54.013122"], ["updated_at", "2015-06-02 23:46:54.013122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.020320"], ["updated_at", "2015-06-02 23:46:54.020320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a5b41a92-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5b534ae-0981-11e5-9eb2-a8667f0424ad"]]  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.68@example.com"], ["password_digest", "$2a$04$9q.Gr7PKI2LKoLq2r.Nl1.8vvuJXOtSUGNSzgNGmtfO5VYCLcUeT6"], ["created_at", "2015-06-02 23:46:54.031717"], ["updated_at", "2015-06-02 23:46:54.031717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.036611"], ["updated_at", "2015-06-02 23:46:54.036611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a5b6e916-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5b7af0e-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.69@example.com"], ["password_digest", "$2a$04$2bZMMEMePaM5ufILE437PO.N.z4zBNuoQCJesDKAMchwhwhwjzVd2"], ["created_at", "2015-06-02 23:46:54.045669"], ["updated_at", "2015-06-02 23:46:54.045669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.049234"], ["updated_at", "2015-06-02 23:46:54.049234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.70@example.com"], ["password_digest", "$2a$04$eWByheg0sDjLxdiz0ztOveHqS.IjxLmlKw5p/XS8RcMVUm5srSNK."], ["created_at", "2015-06-02 23:46:54.056867"], ["updated_at", "2015-06-02 23:46:54.056867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.061484"], ["updated_at", "2015-06-02 23:46:54.061484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.71@example.com"], ["password_digest", "$2a$04$aGU.h5m1KkMjel0sCGIrX.NUUi2v/c1ZNWg49OorzK45PxflBSOKW"], ["created_at", "2015-06-02 23:46:54.068822"], ["updated_at", "2015-06-02 23:46:54.068822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.073233"], ["updated_at", "2015-06-02 23:46:54.073233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a5bc86f0-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5bd3672-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.72@example.com"], ["password_digest", "$2a$04$i0GFwX/oZi.PZgtwTaR99uxxEFktNe2ldQkghTsYXLIJkH1N39S46"], ["created_at", "2015-06-02 23:46:54.082195"], ["updated_at", "2015-06-02 23:46:54.082195"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.087732"], ["updated_at", "2015-06-02 23:46:54.087732"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5be9de6-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5bf8bb6-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5be9de6-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5bf8bb6-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.099548"], ["updated_at", "2015-06-02 23:46:54.099548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a5be9de6-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5bf8bb6-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.73@example.com"], ["password_digest", "$2a$04$FUeix5qB2FGOyAMsSfUxauG4A88uLi6uIjcVcxAykkUjXyJ1tM0L."], ["created_at", "2015-06-02 23:46:54.110412"], ["updated_at", "2015-06-02 23:46:54.110412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.115075"], ["updated_at", "2015-06-02 23:46:54.115075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5c2fe54-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5c3965c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5c2fe54-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5c3965c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.119015"], ["updated_at", "2015-06-02 23:46:54.119015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a5c2fe54-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5c3965c-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.74@example.com"], ["password_digest", "$2a$04$qF4nuIxeBVSJrpc/plQ9tu4Au0k4j/TATuw9CFV/Sa9UF6oGFcoXy"], ["created_at", "2015-06-02 23:46:54.128284"], ["updated_at", "2015-06-02 23:46:54.128284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.132564"], ["updated_at", "2015-06-02 23:46:54.132564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5c59fc4-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5c64e92-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5c59fc4-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5c64e92-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.137751"], ["updated_at", "2015-06-02 23:46:54.137751"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.75@example.com"], ["password_digest", "$2a$04$f3skSQWbxBw3TS4lycqW6OGA7ll0bRjCEs1Abnz8Yc2Zd9/AXW8RO"], ["created_at", "2015-06-02 23:46:54.144586"], ["updated_at", "2015-06-02 23:46:54.144586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.148957"], ["updated_at", "2015-06-02 23:46:54.148957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5c81466-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5c8c8ca-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5c81466-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5c8c8ca-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.153064"], ["updated_at", "2015-06-02 23:46:54.153064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.76@example.com"], ["password_digest", "$2a$04$y/fqrCR0W6VwJcevipJDA.hbNtXXj4LhvIiKi7SSz9KcYEm2wX07i"], ["created_at", "2015-06-02 23:46:54.160851"], ["updated_at", "2015-06-02 23:46:54.160851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.165110"], ["updated_at", "2015-06-02 23:46:54.165110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5ca9a06-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5cb37c2-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5ca9a06-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5cb37c2-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.168672"], ["updated_at", "2015-06-02 23:46:54.168672"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a5ca9a06-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5cb37c2-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.77@example.com"], ["password_digest", "$2a$04$nOpozec.Jq5iqVuEcv1T6.MvbvdsXMTCxbRFcTQLRscjs.NZxsHw2"], ["created_at", "2015-06-02 23:46:54.178090"], ["updated_at", "2015-06-02 23:46:54.178090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.78@example.com"], ["password_digest", "$2a$04$y7/eamiTskwbxR6MHgbnUeWWWLPEn5HUgI2VEnRB.WwrJpUIKLBUe"], ["created_at", "2015-06-02 23:46:54.185191"], ["updated_at", "2015-06-02 23:46:54.185191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.190092"], ["updated_at", "2015-06-02 23:46:54.190092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5ce55ce-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5cf1428-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5ce55ce-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5cf1428-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.194541"], ["updated_at", "2015-06-02 23:46:54.194541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a5ce55ce-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5cf1428-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.79@example.com"], ["password_digest", "$2a$04$dOvHQUL8a82Xu6fpwa5yf.kCf3B4q5fVczZkM/25fcYQKQFEzcJRq"], ["created_at", "2015-06-02 23:46:54.202096"], ["updated_at", "2015-06-02 23:46:54.202096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.205877"], ["updated_at", "2015-06-02 23:46:54.205877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5d0dc9a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5d16c46-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5d0dc9a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5d16c46-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.209262"], ["updated_at", "2015-06-02 23:46:54.209262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a5d0dc9a-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5d16c46-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.80@example.com"], ["password_digest", "$2a$04$8.nMrPORdW2y.lDuZ4S3iusd.jtO86k3BtC.1OyOexNPir7kHTuHe"], ["created_at", "2015-06-02 23:46:54.220035"], ["updated_at", "2015-06-02 23:46:54.220035"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.226714"], ["updated_at", "2015-06-02 23:46:54.226714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5d3b046-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5d4b036-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5d3b046-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5d4b036-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.231405"], ["updated_at", "2015-06-02 23:46:54.231405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.81@example.com"], ["password_digest", "$2a$04$vclTMHL.AM.hohIsMXMzeu9qfmeV3tzNdXzMrGxGpdXDaq2K6btFG"], ["created_at", "2015-06-02 23:46:54.238452"], ["updated_at", "2015-06-02 23:46:54.238452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.242474"], ["updated_at", "2015-06-02 23:46:54.242474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5d6706a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5d70e76-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5d6706a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5d70e76-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.246936"], ["updated_at", "2015-06-02 23:46:54.246936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.82@example.com"], ["password_digest", "$2a$04$WKckZR2pvmyq2ZManOr6GeEM7wb7VysIn/oe/DnTVDVyKTWL/.E9C"], ["created_at", "2015-06-02 23:46:54.253737"], ["updated_at", "2015-06-02 23:46:54.253737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.258444"], ["updated_at", "2015-06-02 23:46:54.258444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5d8cd06-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a5d97972-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a5d8cd06-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a5d97972-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.262553"], ["updated_at", "2015-06-02 23:46:54.262553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a5d8cd06-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a5d97972-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.504899"], ["updated_at", "2015-06-02 23:46:54.504899"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a5ff244c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a5ff244c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.511233"], ["updated_at", "2015-06-02 23:46:54.511233"], ["token", "DN-ke7luDZDvaE8sz6kR8XRjBk8bwzr6OJqK_nbmx78"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.5ms) Clubhouse::Mailer#invitation: processed outbound mail in 51.3ms Sent mail to john@example.com (10.3ms) Date: Tue, 02 Jun 2015 16:46:54 -0700 From: from@example.com To: john@example.com Message-ID: <556e406e8bf94_daed3ff1f1c60200718e2@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/DN-ke7luDZDvaE8sz6kR8XRjBk8bwzr6OJqK_nbmx78?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.584588"], ["updated_at", "2015-06-02 23:46:54.584588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a60b4178-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a60b4178-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.589718"], ["updated_at", "2015-06-02 23:46:54.589718"], ["token", "EPPklpomcDgfT97vV0vMwOQv5yLYYw_AmnNE7bf6CNU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.7ms Sent mail to john@example.com (2.1ms) Date: Tue, 02 Jun 2015 16:46:54 -0700 From: from@example.com To: john@example.com Message-ID: <556e406e912e4_daed3ff1f1c6020071962@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/EPPklpomcDgfT97vV0vMwOQv5yLYYw_AmnNE7bf6CNU?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.601147"], ["updated_at", "2015-06-02 23:46:54.601147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a60dc2b8-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a60dc2b8-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.605333"], ["updated_at", "2015-06-02 23:46:54.605333"], ["token", "UJrPYvIrbivHHYfpgv6WLvHGDMu0lAV1UDwQtdtYtIY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.6ms) Date: Tue, 02 Jun 2015 16:46:54 -0700 From: from@example.com To: john@example.com Message-ID: <556e406e94b59_daed3ff1f1c60200720cc@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/UJrPYvIrbivHHYfpgv6WLvHGDMu0lAV1UDwQtdtYtIY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.614845"], ["updated_at", "2015-06-02 23:46:54.614845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a60ffd1c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a60ffd1c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.619975"], ["updated_at", "2015-06-02 23:46:54.619975"], ["token", "RE5cHnEA4-IYxSFPGBG1ON-TmkEful-7U50Zwu4Q3Z8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.5ms) Date: Tue, 02 Jun 2015 16:46:54 -0700 From: from@example.com To: john@example.com Message-ID: <556e406e985d7_daed3ff1f1c60200721bb@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/RE5cHnEA4-IYxSFPGBG1ON-TmkEful-7U50Zwu4Q3Z8?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.83@example.com"], ["password_digest", "$2a$04$thrmtnpjWXoUtvTXXs/Q.ODQ4.Ii2qHpJAxObaxF5IsfFkvAyeM/S"], ["created_at", "2015-06-02 23:46:54.631374"], ["updated_at", "2015-06-02 23:46:54.631374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:54.633244"], ["user_id", "a6126070-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.634157"], ["updated_at", "2015-06-02 23:46:54.634157"], ["token", "7i9xNdkd7u4oJ2CGcnQTmDWBtmQ84Wqg_NyK-m-8TsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.638127"], ["updated_at", "2015-06-02 23:46:54.638127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6126070-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a61371e0-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6126070-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a61371e0-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.642622"], ["updated_at", "2015-06-02 23:46:54.642622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'a61371e0-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "a61371e0-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.646818"], ["updated_at", "2015-06-02 23:46:54.646818"], ["token", "74vEBMmYq1EZkwou6OxQfUjD3AvtVhZT-kwW-59teqE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/a614be92-0981-11e5-9eb2-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:46:54 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"a614be92-0981-11e5-9eb2-a8667f0424ad", "invitation"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:54.661012' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "7i9xNdkd7u4oJ2CGcnQTmDWBtmQ84Wqg_NyK-m-8TsA"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:54.663174"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:54.665258"], ["id", "a612ce02-0981-11e5-9eb2-a8667f0424ad"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a614be92-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6126070-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a61371e0-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a6126070-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a61371e0-0981-11e5-9eb2-a8667f0424ad"]] Completed 200 OK in 18ms (Views: 2.7ms | ActiveRecord: 2.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.84@example.com"], ["password_digest", "$2a$04$Yghyduehy7DFEEaVtB6Vd.iC1UHi1Nq2a.QXYTsVjU0A7pSYCLeA6"], ["created_at", "2015-06-02 23:46:54.693460"], ["updated_at", "2015-06-02 23:46:54.693460"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:54.698765"], ["user_id", "a61be2c6-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.700351"], ["updated_at", "2015-06-02 23:46:54.700351"], ["token", "KKXYMxktoKINgushzZIg1GStHwNcsfAmCQBoDfj6JP0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.705615"], ["updated_at", "2015-06-02 23:46:54.705615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a61be2c6-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a61dc154-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a61be2c6-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a61dc154-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.714558"], ["updated_at", "2015-06-02 23:46:54.714558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'a61dc154-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "a61dc154-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.720433"], ["updated_at", "2015-06-02 23:46:54.720433"], ["token", "_-vu5mk-4UcatSJo6ctDIR3si-xISShtOCdI62BWdm4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 16:46:54 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.85@example.com"], ["password_digest", "$2a$04$S1Rit1Qwj8H0aO1TJthPr.7Uxy/NMcwTThdyulzAUUUbnpTnfvddS"], ["created_at", "2015-06-02 23:46:54.735722"], ["updated_at", "2015-06-02 23:46:54.735722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:54.737939"], ["user_id", "a6224c6a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.739130"], ["updated_at", "2015-06-02 23:46:54.739130"], ["token", "-4QKEnwtvrljnJcxd8fNiHongKjnlFD3EqF29c6tuxw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.743334"], ["updated_at", "2015-06-02 23:46:54.743334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6224c6a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a623757c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6224c6a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a623757c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.747563"], ["updated_at", "2015-06-02 23:46:54.747563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'a623757c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "a623757c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.752436"], ["updated_at", "2015-06-02 23:46:54.752436"], ["token", "g0BN0B4HaGZdbkie-kZAkkDLrg6KE7D3a_n8IixT5T8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/a624ddcc-0981-11e5-9eb2-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:46:54 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"a624ddcc-0981-11e5-9eb2-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:54.759673' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "-4QKEnwtvrljnJcxd8fNiHongKjnlFD3EqF29c6tuxw"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:54.761640"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:54.762842"], ["id", "a622da90-0981-11e5-9eb2-a8667f0424ad"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a624ddcc-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6224c6a-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a623757c-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a6224c6a-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a623757c-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."id" != 'a624ddcc-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = 'a623757c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.5ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-02 23:46:54.774072"], ["id", "a624ddcc-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 0.9ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.86@example.com"], ["password_digest", "$2a$04$Fgsk8qXlSfReXu/cM9CpvegAhwXMyZCVCnVgzmQrZl0JitDH/diN6"], ["created_at", "2015-06-02 23:46:54.788206"], ["updated_at", "2015-06-02 23:46:54.788206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:54.790726"], ["user_id", "a62a5b08-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.791783"], ["updated_at", "2015-06-02 23:46:54.791783"], ["token", "vkDAGgA18FHcRyKvwNGtu6ZoO3PR5mzp1HykYzlcZEw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.796682"], ["updated_at", "2015-06-02 23:46:54.796682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a62a5b08-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a62b94a0-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a62a5b08-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a62b94a0-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.801658"], ["updated_at", "2015-06-02 23:46:54.801658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'a62b94a0-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "a62b94a0-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.806720"], ["updated_at", "2015-06-02 23:46:54.806720"], ["token", "BbSVHD9Q-gbvgi0_UhRIMZgIewhF3Sd42QHDfGcIfiw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 16:46:54 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.87@example.com"], ["password_digest", "$2a$04$2a8ACxkGtyTiNDWW5bTru.Zgjlb3Obyk6KyLl15jcA0f2RIfTO.IW"], ["created_at", "2015-06-02 23:46:54.823009"], ["updated_at", "2015-06-02 23:46:54.823009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:54.825400"], ["user_id", "a62faf22-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.826690"], ["updated_at", "2015-06-02 23:46:54.826690"], ["token", "vRl2FJkRdq0LLMC1JdEaiRLHZo69iILzxSq03-POL8A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.832574"], ["updated_at", "2015-06-02 23:46:54.832574"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a62faf22-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6311fec-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a62faf22-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6311fec-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.838366"], ["updated_at", "2015-06-02 23:46:54.838366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'a6311fec-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "a6311fec-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.842438"], ["updated_at", "2015-06-02 23:46:54.842438"], ["token", "fw9rC5gaah0IBaVUJVy2BlnLPsSvHl5f0ybfJIRuki8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/a632932c-0981-11e5-9eb2-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:46:54 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"a632932c-0981-11e5-9eb2-a8667f0424ad", "invitation"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:54.848732' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "vRl2FJkRdq0LLMC1JdEaiRLHZo69iILzxSq03-POL8A"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:54.850542"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:54.852086"], ["id", "a63033ac-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a632932c-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a62faf22-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6311fec-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a62faf22-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a6311fec-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a632932c-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.88@example.com"], ["password_digest", "$2a$04$yuMtv1io7r79upqoStoTlusPrAOdyJAnQUHJSEKXfbk19Qu/8Ekqq"], ["created_at", "2015-06-02 23:46:54.867615"], ["updated_at", "2015-06-02 23:46:54.867615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:54.870372"], ["user_id", "a636764a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.871580"], ["updated_at", "2015-06-02 23:46:54.871580"], ["token", "X8K9L-uShRGO-1rTKgJggip_7aYfOr39Jq2LcBaWxHQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.877465"], ["updated_at", "2015-06-02 23:46:54.877465"]]  (3.3ms) RELEASE SAVEPOINT active_record_1  (2.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a636764a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a63835e8-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a636764a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a63835e8-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.891864"], ["updated_at", "2015-06-02 23:46:54.891864"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'a63835e8-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "a63835e8-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.903633"], ["updated_at", "2015-06-02 23:46:54.903633"], ["token", "nWJz2fX7mMq2wG-9IwArKCxrtGSn2x46jl5YV7gjQz8"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 16:46:54 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.89@example.com"], ["password_digest", "$2a$04$H6hZQR98qvg0m2sgk6gk5e9tbzHcv3xenj3rn9IHMbkbv0xu3/sE."], ["created_at", "2015-06-02 23:46:54.922460"], ["updated_at", "2015-06-02 23:46:54.922460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:54.924619"], ["user_id", "a63ed2ea-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.925720"], ["updated_at", "2015-06-02 23:46:54.925720"], ["token", "XKB26cZWadujMH9eSDK1qxHsA8e96sP1y-HX3heBM8o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.929512"], ["updated_at", "2015-06-02 23:46:54.929512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a63ed2ea-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a63fe432-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a63ed2ea-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a63fe432-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.933854"], ["updated_at", "2015-06-02 23:46:54.933854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'a63fe432-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "a63fe432-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.939208"], ["updated_at", "2015-06-02 23:46:54.939208"], ["token", "6aI4WenlYmqYV9TezCeAsz6m8o8jnqjgiXEtRGVkz3o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.90@example.com"], ["password_digest", "$2a$04$8uLNKczw8rMZcQwmo9lbeOkhPK9.TgoOcOFeHtYXNskRCzVNjJRyi"], ["created_at", "2015-06-02 23:46:54.945283"], ["updated_at", "2015-06-02 23:46:54.945283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.949321"], ["updated_at", "2015-06-02 23:46:54.949321"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6424952-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a642f0aa-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6424952-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a642f0aa-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.955428"], ["updated_at", "2015-06-02 23:46:54.955428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 16:46:54 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:54.963667' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "XKB26cZWadujMH9eSDK1qxHsA8e96sP1y-HX3heBM8o"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:54.965346"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:54.966403"], ["id", "a63f4bb2-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a63ed2ea-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a63ed2ea-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a63fe432-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "a63fe432-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a63fe432-0981-11e5-9eb2-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 3.6ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.91@example.com"], ["password_digest", "$2a$04$daXoep7oO9lQduDccfm4muGTQzZQyUJetmvpi4mp6h5pJBBU56OFG"], ["created_at", "2015-06-02 23:46:54.982495"], ["updated_at", "2015-06-02 23:46:54.982495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:54.984135"], ["user_id", "a647f1fe-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.984950"], ["updated_at", "2015-06-02 23:46:54.984950"], ["token", "40OkdXSrZjLSDa4AP3Q0t29vvMvvfoy_BAf3pRq55sU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:54.988423"], ["updated_at", "2015-06-02 23:46:54.988423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a647f1fe-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a648d2fe-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a647f1fe-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a648d2fe-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:54.992271"], ["updated_at", "2015-06-02 23:46:54.992271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = 'a648d2fe-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "a648d2fe-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:54.996027"], ["updated_at", "2015-06-02 23:46:54.996027"], ["token", "6eSkP59uBBivODe2lyOU7Z7ABl6geISQNfBqOowLXb0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.92@example.com"], ["password_digest", "$2a$04$YQZnfAQC6Se6OV/TbfWmDOwPM2nH.UF9QJtPFwdKUK48vKaxcqf6G"], ["created_at", "2015-06-02 23:46:55.001069"], ["updated_at", "2015-06-02 23:46:55.001069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.004236"], ["updated_at", "2015-06-02 23:46:55.004236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a64ac4c4-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a64b3c92-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a64ac4c4-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a64b3c92-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.007300"], ["updated_at", "2015-06-02 23:46:55.007300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.93@example.com"], ["password_digest", "$2a$04$9.jgJpjXbpxd4E62uBUrFeuanQEQPNc1kewvcE8FAjvjGt.1iEhwy"], ["created_at", "2015-06-02 23:46:55.021067"], ["updated_at", "2015-06-02 23:46:55.021067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.022782"], ["user_id", "a64dd542-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.023761"], ["updated_at", "2015-06-02 23:46:55.023761"], ["token", "-VHZ5V8gsYXCfTYu6G-boaynmSrHexyJd6TUlk0cqsc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.028732"], ["updated_at", "2015-06-02 23:46:55.028732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a64dd542-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a64f0336-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a64dd542-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a64f0336-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.032909"], ["updated_at", "2015-06-02 23:46:55.032909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'a64f0336-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "a64f0336-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.036921"], ["updated_at", "2015-06-02 23:46:55.036921"], ["token", "zJ2ZZ_rojLAYt7mm4QXETUXraW2wmL_nCxobcrphSEo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.94@example.com"], ["password_digest", "$2a$04$S13Yxlu0CRwCUgvWXDqxDuPtxSg49n3qHf1bAtk7veeZcuTnMw4v."], ["created_at", "2015-06-02 23:46:55.050410"], ["updated_at", "2015-06-02 23:46:55.050410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.052868"], ["user_id", "a65258f6-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.053714"], ["updated_at", "2015-06-02 23:46:55.053714"], ["token", "CfR56YcS2azK9yLz3krt9o6ZtVJfvbUKAF1aLubVffg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.057685"], ["updated_at", "2015-06-02 23:46:55.057685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a65258f6-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6537e52-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a65258f6-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6537e52-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.062078"], ["updated_at", "2015-06-02 23:46:55.062078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = 'a6537e52-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "a6537e52-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.066447"], ["updated_at", "2015-06-02 23:46:55.066447"], ["token", "dA-Ekm2bl0Vl_7f25BHZLV0-haaL7P6dCifGP4hAMfQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.076079' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "CfR56YcS2azK9yLz3krt9o6ZtVJfvbUKAF1aLubVffg"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.078162"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.079436"], ["id", "a652d722-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a65258f6-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6537e52-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a65258f6-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a6537e52-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'a6537e52-0981-11e5-9eb2-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.95@example.com"], ["password_digest", "$2a$04$ixJig2fat1aKsCxuT2g1BexHvedfMaAAt/unhuoxrqooR5Wi1OQzq"], ["created_at", "2015-06-02 23:46:55.103207"], ["updated_at", "2015-06-02 23:46:55.103207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.104929"], ["user_id", "a65a5f1a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.105731"], ["updated_at", "2015-06-02 23:46:55.105731"], ["token", "rwJHPbrs8MdzSaOq49-Xc0GfPNc78P0VfIyKEhZ0_Ww"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.109144"], ["updated_at", "2015-06-02 23:46:55.109144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a65a5f1a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a65b4e98-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a65a5f1a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a65b4e98-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.113679"], ["updated_at", "2015-06-02 23:46:55.113679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = 'a65b4e98-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "a65b4e98-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.118054"], ["updated_at", "2015-06-02 23:46:55.118054"], ["token", "S_oy4-eEaEKL5Yqo1D81uBVmNiiYm-7y4BZLI0_RD2U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.125288' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "rwJHPbrs8MdzSaOq49-Xc0GfPNc78P0VfIyKEhZ0_Ww"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.127206"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.128308"], ["id", "a65abf14-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a65a5f1a-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a65b4e98-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a65a5f1a-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a65b4e98-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a65b4e98-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "a65b4e98-0981-11e5-9eb2-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.137475"], ["updated_at", "2015-06-02 23:46:55.137475"], ["token", "P7LPkeocnb0uCnclPBQ5pyihPYX1FEP5zqNPczNdC04"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d9b5e4d0-3800-4c13-8bcf-3d4d5525981a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a65f9fb6-0981-11e5-9eb2-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a65f9fb6-0981-11e5-9eb2-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [d9b5e4d0-3800-4c13-8bcf-3d4d5525981a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a65f9fb6-0981-11e5-9eb2-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [d9b5e4d0-3800-4c13-8bcf-3d4d5525981a] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a65b4e98-0981-11e5-9eb2-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [d9b5e4d0-3800-4c13-8bcf-3d4d5525981a] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [d9b5e4d0-3800-4c13-8bcf-3d4d5525981a] Clubhouse::Mailer#invitation: processed outbound mail in 3.5ms [ActiveJob] [ActionMailer::DeliveryJob] [d9b5e4d0-3800-4c13-8bcf-3d4d5525981a] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [d9b5e4d0-3800-4c13-8bcf-3d4d5525981a] Date: Tue, 02 Jun 2015 16:46:55 -0700 From: from@example.com To: email@example.com Message-ID: <556e406f28f1c_daed3ff1f1c60200722ae@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/P7LPkeocnb0uCnclPBQ5pyihPYX1FEP5zqNPczNdC04?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d9b5e4d0-3800-4c13-8bcf-3d4d5525981a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.01ms Completed 201 Created in 45ms (Views: 1.1ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.96@example.com"], ["password_digest", "$2a$04$xpHleC8iNP1ro4j4XH79r.P.sYLAzGJ8fwpEkRg2hf/AV0OnZtrQO"], ["created_at", "2015-06-02 23:46:55.177890"], ["updated_at", "2015-06-02 23:46:55.177890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.179954"], ["user_id", "a665c5a8-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.180979"], ["updated_at", "2015-06-02 23:46:55.180979"], ["token", "TY9i1OErcSA5xbUSlOKqnUuZg3EuOA1Z2uvk3zaNa90"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.184775"], ["updated_at", "2015-06-02 23:46:55.184775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a665c5a8-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a666c8ae-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a665c5a8-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a666c8ae-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.197218"], ["updated_at", "2015-06-02 23:46:55.197218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = 'a666c8ae-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "a666c8ae-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.201360"], ["updated_at", "2015-06-02 23:46:55.201360"], ["token", "FW4R6TRXtu4rrwWI_azyYMLmXihq4yMPfK6R5sI9fEU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.210087' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "TY9i1OErcSA5xbUSlOKqnUuZg3EuOA1Z2uvk3zaNa90"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.212088"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.213262"], ["id", "a666482a-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a665c5a8-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a666c8ae-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a665c5a8-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a666c8ae-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a666c8ae-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "a666c8ae-0981-11e5-9eb2-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.222518"], ["updated_at", "2015-06-02 23:46:55.222518"], ["token", "ZPl531XQeUnUgxXpMA7aCddXnFXjI19rYKSNM7XjdlE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: aeffc74e-2bed-4c97-b7b8-4c93ebb48684) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a66c9b12-0981-11e5-9eb2-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a66c9b12-0981-11e5-9eb2-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [aeffc74e-2bed-4c97-b7b8-4c93ebb48684] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a66c9b12-0981-11e5-9eb2-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [aeffc74e-2bed-4c97-b7b8-4c93ebb48684] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a666c8ae-0981-11e5-9eb2-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [aeffc74e-2bed-4c97-b7b8-4c93ebb48684] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [aeffc74e-2bed-4c97-b7b8-4c93ebb48684] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [aeffc74e-2bed-4c97-b7b8-4c93ebb48684] Sent mail to email@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [aeffc74e-2bed-4c97-b7b8-4c93ebb48684] Date: Tue, 02 Jun 2015 16:46:55 -0700 From: from@example.com To: email@example.com Message-ID: <556e406f38485_daed3ff1f1c602007236f@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/ZPl531XQeUnUgxXpMA7aCddXnFXjI19rYKSNM7XjdlE?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [aeffc74e-2bed-4c97-b7b8-4c93ebb48684] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.08ms Completed 201 Created in 24ms (Views: 1.5ms | ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.97@example.com"], ["password_digest", "$2a$04$V.Y5HqadjhJ6lhFzRvqYxupYw7SCsHgCtu6aqwRpSnf2yUThUZk6G"], ["created_at", "2015-06-02 23:46:55.242751"], ["updated_at", "2015-06-02 23:46:55.242751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.244659"], ["user_id", "a66facbc-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.245570"], ["updated_at", "2015-06-02 23:46:55.245570"], ["token", "UQzdgGYuWdKc_-h6ZfLckelvMF4fyQ5OA-yLradRcIc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.249619"], ["updated_at", "2015-06-02 23:46:55.249619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a66facbc-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a670bac6-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a66facbc-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a670bac6-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.253562"], ["updated_at", "2015-06-02 23:46:55.253562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'a670bac6-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "a670bac6-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.257934"], ["updated_at", "2015-06-02 23:46:55.257934"], ["token", "1KAY0hUYBK87qe39Ff64linGABPkkroT6x_eazzD2wY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.98@example.com"], ["password_digest", "$2a$04$GwtYEDzQPd7iDsJkLKuZ8eN9Kov84WvgN80yHsOOzOEIbBrRWT1ki"], ["created_at", "2015-06-02 23:46:55.263159"], ["updated_at", "2015-06-02 23:46:55.263159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.267349"], ["updated_at", "2015-06-02 23:46:55.267349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a672d284-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6736a64-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a672d284-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6736a64-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.271973"], ["updated_at", "2015-06-02 23:46:55.271973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a670bac6-0981-11e5-9eb2-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"a670bac6-0981-11e5-9eb2-a8667f0424ad", "invitation"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.280160' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "UQzdgGYuWdKc_-h6ZfLckelvMF4fyQ5OA-yLradRcIc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.282270"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.283710"], ["id", "a6701a30-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a670bac6-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a66facbc-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a66facbc-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a670bac6-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "a670bac6-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a670bac6-0981-11e5-9eb2-a8667f0424ad"]] Completed 200 OK in 13ms (Views: 2.3ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.99@example.com"], ["password_digest", "$2a$04$2l7lAgGXr9UaSqikndt9cOOD9ooZzPeYAgnQw6CSNl6bUz5NUJ156"], ["created_at", "2015-06-02 23:46:55.300745"], ["updated_at", "2015-06-02 23:46:55.300745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.302532"], ["user_id", "a6787f72-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.303473"], ["updated_at", "2015-06-02 23:46:55.303473"], ["token", "SMO2n9QCZ1_-VImqrkta1iMlwNpTs62T8y1LjYLVpjQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.307633"], ["updated_at", "2015-06-02 23:46:55.307633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6787f72-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a67999ac-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6787f72-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a67999ac-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.311867"], ["updated_at", "2015-06-02 23:46:55.311867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = 'a67999ac-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "a67999ac-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.315963"], ["updated_at", "2015-06-02 23:46:55.315963"], ["token", "yW9TgkuZZVY06-KVsiPPvNaXlj9_6f4RXLeTxgtgZfM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.100@example.com"], ["password_digest", "$2a$04$p3KOhcF7z5U3Yd3/ZjxGT.xrPOc3e5kK8ejz1zoa8nhDc.C6Sj6zq"], ["created_at", "2015-06-02 23:46:55.321133"], ["updated_at", "2015-06-02 23:46:55.321133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.324366"], ["updated_at", "2015-06-02 23:46:55.324366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a67b9b44-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a67c175e-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a67b9b44-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a67c175e-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.327621"], ["updated_at", "2015-06-02 23:46:55.327621"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.101@example.com"], ["password_digest", "$2a$04$AfX3odkkllnWsvdQOYav1eISToMPlGDn7xXi9uViI8Kv.THsSUDpW"], ["created_at", "2015-06-02 23:46:55.346566"], ["updated_at", "2015-06-02 23:46:55.346566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.351704"], ["user_id", "a67fef00-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.352953"], ["updated_at", "2015-06-02 23:46:55.352953"], ["token", "4d9Ee9JBA3-_p5srB_i2o-vGNHgm7nulI60CbjbQPTc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.360339"], ["updated_at", "2015-06-02 23:46:55.360339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a67fef00-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a681999a-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a67fef00-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a681999a-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.365040"], ["updated_at", "2015-06-02 23:46:55.365040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'a681999a-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "a681999a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.369491"], ["updated_at", "2015-06-02 23:46:55.369491"], ["token", "rUZwIne0HCOXmADr9Pi5JvTrQrcwiQdi6PI3ATS5z8A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.102@example.com"], ["password_digest", "$2a$04$j3Dkt0ZCDGVZTksxa2ldyueb2rFHV35JinD0MUbc3cARTH2V8uTgy"], ["created_at", "2015-06-02 23:46:55.383653"], ["updated_at", "2015-06-02 23:46:55.383653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.385416"], ["user_id", "a68527e0-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.386513"], ["updated_at", "2015-06-02 23:46:55.386513"], ["token", "ftsBQgdH5PbVma6Ry93fpBk2Lcija3Fkwnu9-lZwTFA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.391334"], ["updated_at", "2015-06-02 23:46:55.391334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a68527e0-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6865dd6-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a68527e0-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6865dd6-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.395559"], ["updated_at", "2015-06-02 23:46:55.395559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'a6865dd6-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "a6865dd6-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.399726"], ["updated_at", "2015-06-02 23:46:55.399726"], ["token", "cPofIvuU0T3WDoatOiuSW6ZTJUP_hGdFcN9oV0maUT0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a6865dd6-0981-11e5-9eb2-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"a6865dd6-0981-11e5-9eb2-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.407148' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ftsBQgdH5PbVma6Ry93fpBk2Lcija3Fkwnu9-lZwTFA"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.408921"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.410079"], ["id", "a6859e78-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a6865dd6-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a68527e0-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6865dd6-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a68527e0-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a6865dd6-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'a6865dd6-0981-11e5-9eb2-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.103@example.com"], ["password_digest", "$2a$04$3PuaoSEN82IiokahmOe2guO.8MG5ylXi6rlczW2TlBeSo6NWgUuke"], ["created_at", "2015-06-02 23:46:55.429477"], ["updated_at", "2015-06-02 23:46:55.429477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.431982"], ["user_id", "a68c3364-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.433060"], ["updated_at", "2015-06-02 23:46:55.433060"], ["token", "_W3BgDt3Djm_lUuJb-rVuJPKbKg-NI2mlKEK3YZD-pU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.436793"], ["updated_at", "2015-06-02 23:46:55.436793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a68c3364-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a68d3f98-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a68c3364-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a68d3f98-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.441095"], ["updated_at", "2015-06-02 23:46:55.441095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'a68d3f98-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "a68d3f98-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.445688"], ["updated_at", "2015-06-02 23:46:55.445688"], ["token", "IY1d8P9Usv34JAz1ASS5XmmB076XMTIwDFnkerl1x6s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a68d3f98-0981-11e5-9eb2-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"a68d3f98-0981-11e5-9eb2-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.7ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.453743' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "_W3BgDt3Djm_lUuJb-rVuJPKbKg-NI2mlKEK3YZD-pU"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.456247"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.457755"], ["id", "a68cb8de-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a68d3f98-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a68c3364-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a68d3f98-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a68c3364-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a68d3f98-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a68d3f98-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "a68d3f98-0981-11e5-9eb2-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.469596"], ["updated_at", "2015-06-02 23:46:55.469596"], ["token", "mLz1jORUYyYqS9bI7YHyO4o-98WqCLokYjp6XPqOTrg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4c81c833-09c1-435f-a0a0-484be87d3915) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a6924d26-0981-11e5-9eb2-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a6924d26-0981-11e5-9eb2-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [4c81c833-09c1-435f-a0a0-484be87d3915] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a6924d26-0981-11e5-9eb2-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [4c81c833-09c1-435f-a0a0-484be87d3915] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a68d3f98-0981-11e5-9eb2-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [4c81c833-09c1-435f-a0a0-484be87d3915] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4c81c833-09c1-435f-a0a0-484be87d3915] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [4c81c833-09c1-435f-a0a0-484be87d3915] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [4c81c833-09c1-435f-a0a0-484be87d3915] Date: Tue, 02 Jun 2015 16:46:55 -0700 From: from@example.com To: email@example.com Message-ID: <556e406f74a63_daed3ff1f1c602007246d@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/mLz1jORUYyYqS9bI7YHyO4o-98WqCLokYjp6XPqOTrg?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4c81c833-09c1-435f-a0a0-484be87d3915] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.88ms Completed 201 Created in 27ms (Views: 1.7ms | ActiveRecord: 3.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.104@example.com"], ["password_digest", "$2a$04$uSNO9LdIlxFxFllhuJz.hO3vGH8ckc5WWgOGm10nogQWhdE3EeFpG"], ["created_at", "2015-06-02 23:46:55.492309"], ["updated_at", "2015-06-02 23:46:55.492309"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.495415"], ["user_id", "a695d180-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.496351"], ["updated_at", "2015-06-02 23:46:55.496351"], ["token", "0o9HwMhXtm910XlU9Oq-R2q4fU7qwL0zxGPyBgQlE_Y"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.504779"], ["updated_at", "2015-06-02 23:46:55.504779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a695d180-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a697ac6c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a695d180-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a697ac6c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.509655"], ["updated_at", "2015-06-02 23:46:55.509655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'a697ac6c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "a697ac6c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.514022"], ["updated_at", "2015-06-02 23:46:55.514022"], ["token", "tlByKsB6mB3y3jIrNAv7uM-I20QNhL8oX_LamsoQ9Ak"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a697ac6c-0981-11e5-9eb2-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"a697ac6c-0981-11e5-9eb2-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.521933' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "0o9HwMhXtm910XlU9Oq-R2q4fU7qwL0zxGPyBgQlE_Y"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.523948"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.525754"], ["id", "a696702c-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a697ac6c-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a695d180-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a697ac6c-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a695d180-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a697ac6c-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a697ac6c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "a697ac6c-0981-11e5-9eb2-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.535232"], ["updated_at", "2015-06-02 23:46:55.535232"], ["token", "tge856tPjihvcRdmrCWi58sNcbNo9Ivw-qKyC48henw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: da2ffa4d-f21e-4d48-bedc-7726c194f74d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a69c5208-0981-11e5-9eb2-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a69c5208-0981-11e5-9eb2-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [da2ffa4d-f21e-4d48-bedc-7726c194f74d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a69c5208-0981-11e5-9eb2-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [da2ffa4d-f21e-4d48-bedc-7726c194f74d] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a697ac6c-0981-11e5-9eb2-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [da2ffa4d-f21e-4d48-bedc-7726c194f74d] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [da2ffa4d-f21e-4d48-bedc-7726c194f74d] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [da2ffa4d-f21e-4d48-bedc-7726c194f74d] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [da2ffa4d-f21e-4d48-bedc-7726c194f74d] Date: Tue, 02 Jun 2015 16:46:55 -0700 From: from@example.com To: email@example.com Message-ID: <556e406f84a32_daed3ff1f1c60200725c0@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/tge856tPjihvcRdmrCWi58sNcbNo9Ivw-qKyC48henw?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [da2ffa4d-f21e-4d48-bedc-7726c194f74d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.29ms Completed 201 Created in 25ms (Views: 1.5ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.553470"], ["updated_at", "2015-06-02 23:46:55.553470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'a69f0e94-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "a69f0e94-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.556485"], ["updated_at", "2015-06-02 23:46:55.556485"], ["token", "FZ0zjZ3uaYBC70ao90Xzm3h1qqPQyyVrRBCAMeKshHs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a69f0e94-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'a69f0e94-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a69f0e94-0981-11e5-9eb2-a8667f0424ae"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'a69f0e94-0981-11e5-9eb2-a8667f0424ae') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.572316"], ["updated_at", "2015-06-02 23:46:55.572316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a6a1f924-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "a6a1f924-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.576093"], ["updated_at", "2015-06-02 23:46:55.576093"], ["token", "qVwbAvZxh-DLObOvsr93nawtDrAPgbLucVegEjDdgv4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.604707"], ["updated_at", "2015-06-02 23:46:55.604707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.637033"], ["updated_at", "2015-06-02 23:46:55.637033"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.643366"], ["updated_at", "2015-06-02 23:46:55.643366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.657879"], ["updated_at", "2015-06-02 23:46:55.657879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.664327"], ["updated_at", "2015-06-02 23:46:55.664327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a6b00352-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.105@example.com"], ["password_digest", "$2a$04$L2LrsqnS3.3x3I9g9Q0kOei7vavW6YHP/ctHsWSIdqCRaNGWDDkdy"], ["created_at", "2015-06-02 23:46:55.672027"], ["updated_at", "2015-06-02 23:46:55.672027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.106@example.com"], ["password_digest", "$2a$04$VorBE/ZMbgjZawW9YjepRulxmGoDCLgmCcllq.kjue.gvmv4pLKSa"], ["created_at", "2015-06-02 23:46:55.676478"], ["updated_at", "2015-06-02 23:46:55.676478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.678042"], ["user_id", "a6b12eda-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.679075"], ["updated_at", "2015-06-02 23:46:55.679075"], ["token", "DwCgDN57POlzHzbth4ujjfAXKTABwBbJEEOlTxLzLX4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.683211"], ["updated_at", "2015-06-02 23:46:55.683211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6b12eda-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6b2d938-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6b12eda-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6b2d938-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.686571"], ["updated_at", "2015-06-02 23:46:55.686571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6b1d0ce-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6b2d938-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6b1d0ce-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6b2d938-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.689622"], ["updated_at", "2015-06-02 23:46:55.689622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/a6b35b2e-0981-11e5-9eb2-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"a6b35b2e-0981-11e5-9eb2-a8667f0424ad", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.702720' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "DwCgDN57POlzHzbth4ujjfAXKTABwBbJEEOlTxLzLX4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.704383"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.705655"], ["id", "a6b24b30-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "a6b35b2e-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6b12eda-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6b2d938-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a6b12eda-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a6b2d938-0981-11e5-9eb2-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6b12eda-0981-11e5-9eb2-a8667f0424ad"]] Completed 200 OK in 13ms (Views: 3.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.107@example.com"], ["password_digest", "$2a$04$7D1K7mjoaKpcPU2H4EiNte9WoJ5RVS0xglkBmBRHuoENoo.GuFX3a"], ["created_at", "2015-06-02 23:46:55.722530"], ["updated_at", "2015-06-02 23:46:55.722530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.108@example.com"], ["password_digest", "$2a$04$skieLFC5CV1KQAqt732IWeAzpwpb8jBj3VKJohnKs3aDOZ44eeLny"], ["created_at", "2015-06-02 23:46:55.726979"], ["updated_at", "2015-06-02 23:46:55.726979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.728571"], ["user_id", "a6b8de28-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.729333"], ["updated_at", "2015-06-02 23:46:55.729333"], ["token", "mqUa-H2RXyot3afbJtk0Gy6Lu7aRQ3-nLZxan3DcOlI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.733526"], ["updated_at", "2015-06-02 23:46:55.733526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6b8de28-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6ba8f70-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6b8de28-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6ba8f70-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.737539"], ["updated_at", "2015-06-02 23:46:55.737539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6b98882-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6ba8f70-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6b98882-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6ba8f70-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.740544"], ["updated_at", "2015-06-02 23:46:55.740544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.109@example.com"], ["password_digest", "$2a$04$cShGUHiYbRpe35eV4llPYOnhvxcbWrjPcc85qD77E8tAGlf6/WiYO"], ["created_at", "2015-06-02 23:46:55.754788"], ["updated_at", "2015-06-02 23:46:55.754788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.110@example.com"], ["password_digest", "$2a$04$H9WdPwnL1MTo4tj6dRgax.0K.ImpxAt3JyUlj768qf8DWJvV/9EvK"], ["created_at", "2015-06-02 23:46:55.760365"], ["updated_at", "2015-06-02 23:46:55.760365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.762076"], ["user_id", "a6bdcc26-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.762956"], ["updated_at", "2015-06-02 23:46:55.762956"], ["token", "KsjW6HxZAeWMfUt7UaNr2R5UvODPDMXsDZZIGfp42ZQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.767115"], ["updated_at", "2015-06-02 23:46:55.767115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6bdcc26-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6bfa988-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6bdcc26-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6bfa988-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.770709"], ["updated_at", "2015-06-02 23:46:55.770709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6bea2ae-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6bfa988-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6bea2ae-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6bfa988-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.773870"], ["updated_at", "2015-06-02 23:46:55.773870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/a6c0acf2-0981-11e5-9eb2-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"a6c0acf2-0981-11e5-9eb2-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.781473' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "KsjW6HxZAeWMfUt7UaNr2R5UvODPDMXsDZZIGfp42ZQ"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.783710"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.784988"], ["id", "a6bf0ff0-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "a6c0acf2-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6bdcc26-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6bfa988-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a6bdcc26-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a6bfa988-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6bea2ae-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6bea2ae-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."id" != 'a6c0acf2-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6bfa988-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-02 23:46:55.793692"], ["id", "a6c0acf2-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.0ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.111@example.com"], ["password_digest", "$2a$04$uq6tYrkg9II6ZD8QiuFKXOitx28CSXqMAdcfzKOE2XBNq4WSCEov2"], ["created_at", "2015-06-02 23:46:55.803157"], ["updated_at", "2015-06-02 23:46:55.803157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.112@example.com"], ["password_digest", "$2a$04$7u6qP.vy443JOWJdNpMUOuItEEuAdtPghgNwbH0phnKYlBWKrMJLu"], ["created_at", "2015-06-02 23:46:55.810661"], ["updated_at", "2015-06-02 23:46:55.810661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.812724"], ["user_id", "a6c52cfa-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.813650"], ["updated_at", "2015-06-02 23:46:55.813650"], ["token", "H6iJ5K4dputKOzgPRp6Ygn7uan3blUINVuzBM5RZNZ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.817983"], ["updated_at", "2015-06-02 23:46:55.817983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6c52cfa-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6c76ac4-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6c52cfa-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6c76ac4-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.822976"], ["updated_at", "2015-06-02 23:46:55.822976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6c658aa-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6c76ac4-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6c658aa-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6c76ac4-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.828532"], ["updated_at", "2015-06-02 23:46:55.828532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.113@example.com"], ["password_digest", "$2a$04$f2p3eBSJOeOknIkAy41l3OzZb..gxA2l.59Fc.LZEKTzLPxnz1e5C"], ["created_at", "2015-06-02 23:46:55.848646"], ["updated_at", "2015-06-02 23:46:55.848646"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.114@example.com"], ["password_digest", "$2a$04$arBGgJaFiKFJ8HWVR2iMUevJyEeclg5UPG/7LzXpZVaYk8gY0iIfe"], ["created_at", "2015-06-02 23:46:55.855246"], ["updated_at", "2015-06-02 23:46:55.855246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.857144"], ["user_id", "a6cc2096-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.858225"], ["updated_at", "2015-06-02 23:46:55.858225"], ["token", "WpPzv912HqAbbRu-pvhy22B8kRsOsk_YY3x3dcA-CMs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.862099"], ["updated_at", "2015-06-02 23:46:55.862099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6cc2096-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6ce2422-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6cc2096-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6ce2422-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.866708"], ["updated_at", "2015-06-02 23:46:55.866708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6cd2266-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6ce2422-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6cd2266-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6ce2422-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.870795"], ["updated_at", "2015-06-02 23:46:55.870795"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/a6cf7bb0-0981-11e5-9eb2-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"a6cf7bb0-0981-11e5-9eb2-a8667f0424ad", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.878808' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "WpPzv912HqAbbRu-pvhy22B8kRsOsk_YY3x3dcA-CMs"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.880801"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.882029"], ["id", "a6cd9ba6-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "a6cf7bb0-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6cc2096-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6ce2422-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a6cc2096-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a6ce2422-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6cd2266-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "a6cf7bb0-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.115@example.com"], ["password_digest", "$2a$04$uF.pzlP.BRKo430zHWrjzO9pvfZd303cPyTl4y/uscFr49ujLr1eS"], ["created_at", "2015-06-02 23:46:55.896996"], ["updated_at", "2015-06-02 23:46:55.896996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.116@example.com"], ["password_digest", "$2a$04$EEe664ruu8ZestJ3bl.GHOaTXNeZQCGgJo0BRGZqca.odc7I9mb0."], ["created_at", "2015-06-02 23:46:55.901958"], ["updated_at", "2015-06-02 23:46:55.901958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.904051"], ["user_id", "a6d384f8-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.904948"], ["updated_at", "2015-06-02 23:46:55.904948"], ["token", "ywLKqcgZpoAGjqGk-dH9kzgAaEv8eKhIf3xH7a97m_I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.908802"], ["updated_at", "2015-06-02 23:46:55.908802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6d384f8-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6d54874-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6d384f8-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6d54874-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.912497"], ["updated_at", "2015-06-02 23:46:55.912497"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6d4474e-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6d54874-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6d4474e-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6d54874-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.918551"], ["updated_at", "2015-06-02 23:46:55.918551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.117@example.com"], ["password_digest", "$2a$04$ufN5hoBG7cCC1ZgynHZBRuFB/OTjOFelEPoxLCG.ljbmbRzqBKBQC"], ["created_at", "2015-06-02 23:46:55.941273"], ["updated_at", "2015-06-02 23:46:55.941273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.118@example.com"], ["password_digest", "$2a$04$XALTaFWkXninyKMlTwGgl.cSGJr7G/RHKEA4FLRzuCCl.Es7f4njC"], ["created_at", "2015-06-02 23:46:55.946813"], ["updated_at", "2015-06-02 23:46:55.946813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:55.949217"], ["user_id", "a6da47d4-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.950374"], ["updated_at", "2015-06-02 23:46:55.950374"], ["token", "ZqSPtkJv7rHlddvmPuc5U-P5IRWFpwo70JoZq-thYm4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:55.956748"], ["updated_at", "2015-06-02 23:46:55.956748"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6da47d4-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6dca4ca-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6da47d4-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6dca4ca-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:55.961800"], ["updated_at", "2015-06-02 23:46:55.961800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6db25be-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6dca4ca-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6db25be-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6dca4ca-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:55.965663"], ["updated_at", "2015-06-02 23:46:55.965663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 16:46:55 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:55.972951' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "ZqSPtkJv7rHlddvmPuc5U-P5IRWFpwo70JoZq-thYm4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:55.975030"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:55.976551"], ["id", "a6dbab42-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6da47d4-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a6da47d4-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a6dca4ca-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "a6dca4ca-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6dca4ca-0981-11e5-9eb2-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6da47d4-0981-11e5-9eb2-a8667f0424ad"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6dca4ca-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6db25be-0981-11e5-9eb2-a8667f0424ad"]] Completed 200 OK in 15ms (Views: 4.8ms | ActiveRecord: 1.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.119@example.com"], ["password_digest", "$2a$04$kZqVY1QRagfub68jIPvUEeqCs4aUZs9bGOGxQoA5LXJSV7VEUB5jC"], ["created_at", "2015-06-02 23:46:55.999881"], ["updated_at", "2015-06-02 23:46:55.999881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.120@example.com"], ["password_digest", "$2a$04$2FXEW8gkrEl/EM7hlUWu6OIBwR2MZWJKVHDqNM.ARRjOqQZRVg3Xe"], ["created_at", "2015-06-02 23:46:56.005495"], ["updated_at", "2015-06-02 23:46:56.005495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.007231"], ["user_id", "a6e32e4e-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.008179"], ["updated_at", "2015-06-02 23:46:56.008179"], ["token", "PQremWIV2FxDl-CvOjsJObphY61ph9M5rUKUVLaklYU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:56.012642"], ["updated_at", "2015-06-02 23:46:56.012642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6e32e4e-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6e51f06-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6e32e4e-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6e51f06-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.016923"], ["updated_at", "2015-06-02 23:46:56.016923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6e40a1c-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6e51f06-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6e40a1c-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6e51f06-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.020725"], ["updated_at", "2015-06-02 23:46:56.020725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 16:46:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.121@example.com"], ["password_digest", "$2a$04$Z1NpgjIm5HdUmWDfhFJxqeetO3OY2CnLv1y0VUUkSwsEwHnrjWWWG"], ["created_at", "2015-06-02 23:46:56.035892"], ["updated_at", "2015-06-02 23:46:56.035892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.122@example.com"], ["password_digest", "$2a$04$ewmgd/gjKmBQtqEJzVWIE.cZNOL0rjzPmVLBSUbbsnNrLs5GkrlIW"], ["created_at", "2015-06-02 23:46:56.043303"], ["updated_at", "2015-06-02 23:46:56.043303"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.046964"], ["user_id", "a6e8aef0-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.049238"], ["updated_at", "2015-06-02 23:46:56.049238"], ["token", "EY3liILNzLwGruVrFIyeV0w8p2ygryCVXVmo1tFNr7s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:56.054237"], ["updated_at", "2015-06-02 23:46:56.054237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6e8aef0-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6eb761c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6e8aef0-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6eb761c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.058499"], ["updated_at", "2015-06-02 23:46:56.058499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6e9e66c-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6eb761c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6e9e66c-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6eb761c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.062560"], ["updated_at", "2015-06-02 23:46:56.062560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.123@example.com"], ["password_digest", "$2a$04$0bZD.gd9tLu.y2YcMCLrI.K3Udf5qc4DIyBF5P.zf5GwzsoQxgcFa"], ["created_at", "2015-06-02 23:46:56.068813"], ["updated_at", "2015-06-02 23:46:56.068813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.070473"], ["user_id", "a6edb38c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.071255"], ["updated_at", "2015-06-02 23:46:56.071255"], ["token", "UA_hc0rj1PNiFmM9fyy8tzc0w5-SWeiJma77ZTGVuhQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = 'a6eb761c-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "a6eb761c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.076153"], ["updated_at", "2015-06-02 23:46:56.076153"], ["token", "Ge6ZavlcfRhheXUwRuwy38MFIdJzYrrWlIRDW3S-YJY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 16:46:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.124@example.com"], ["password_digest", "$2a$04$oJp1r0kVEPYZ4kEjFOIC4OQbbNRd7boq1vb3fr7ixPGN/61dN8Jq."], ["created_at", "2015-06-02 23:46:56.092430"], ["updated_at", "2015-06-02 23:46:56.092430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.125@example.com"], ["password_digest", "$2a$04$txq91QHsK4o1wJcCVxg57.MQGQ33TyGOKd.PHeT60s6dyfpD4jVf6"], ["created_at", "2015-06-02 23:46:56.098167"], ["updated_at", "2015-06-02 23:46:56.098167"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.100684"], ["user_id", "a6f1529e-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.101664"], ["updated_at", "2015-06-02 23:46:56.101664"], ["token", "Qmnx-WLxAaFWwIdWFZ1ryPzYhiWkAUbn6hkJULhNPcI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:56.106310"], ["updated_at", "2015-06-02 23:46:56.106310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6f1529e-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6f36dfe-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6f1529e-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6f36dfe-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.110038"], ["updated_at", "2015-06-02 23:46:56.110038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6f2401e-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6f36dfe-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6f2401e-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6f36dfe-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.114082"], ["updated_at", "2015-06-02 23:46:56.114082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.126@example.com"], ["password_digest", "$2a$04$ayBY1cKNZcGzA0nmA5UOqu2abL1K97TSUnb41pJ//faQiiBDYMN6m"], ["created_at", "2015-06-02 23:46:56.120643"], ["updated_at", "2015-06-02 23:46:56.120643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.122658"], ["user_id", "a6f59c64-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.123857"], ["updated_at", "2015-06-02 23:46:56.123857"], ["token", "uWDhEnJU6K5xjDomkUEkNWvzEt8kQCiBedc61KBkKr0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'a6f36dfe-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "a6f36dfe-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.128048"], ["updated_at", "2015-06-02 23:46:56.128048"], ["token", "tc2kzBrLVSUOYuzAc9YwGd0LtGQHyCL8vmbju6Xggk4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 16:46:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:56.135491' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "uWDhEnJU6K5xjDomkUEkNWvzEt8kQCiBedc61KBkKr0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:56.137176"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:56.138331"], ["id", "a6f62274-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6f59c64-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.127@example.com"], ["password_digest", "$2a$04$9b6ib.AK2sFM4XU3Kw4sLe/.84jjXl2SLMGgBQWXD3K1o5tqZMflm"], ["created_at", "2015-06-02 23:46:56.151864"], ["updated_at", "2015-06-02 23:46:56.151864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.128@example.com"], ["password_digest", "$2a$04$6IxKGrBznM/.bkx63priwem8PRfQzbfgSS8cBP.1pakK7pOIHZ.PS"], ["created_at", "2015-06-02 23:46:56.156660"], ["updated_at", "2015-06-02 23:46:56.156660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.158239"], ["user_id", "a6fa61c2-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.159293"], ["updated_at", "2015-06-02 23:46:56.159293"], ["token", "iE5eV4ZEXs37-gVnsF0H_9xT2AsTMrN48yoaRULUsqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:56.162934"], ["updated_at", "2015-06-02 23:46:56.162934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6fa61c2-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6fc0d92-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6fa61c2-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6fc0d92-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.167067"], ["updated_at", "2015-06-02 23:46:56.167067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6fb1824-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6fc0d92-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a6fb1824-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a6fc0d92-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.171077"], ["updated_at", "2015-06-02 23:46:56.171077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.129@example.com"], ["password_digest", "$2a$04$Vix5SRCvL2RPlhQ/VYv5rubnpwls4DUn2NKyXIeWRQ78nDW.buAB6"], ["created_at", "2015-06-02 23:46:56.175805"], ["updated_at", "2015-06-02 23:46:56.175805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.177348"], ["user_id", "a6fe046c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.178081"], ["updated_at", "2015-06-02 23:46:56.178081"], ["token", "LBsL4mP3WiaVwtJeFm4DVKwcfoYM4WdIYrSvl8ISoDo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = 'a6fc0d92-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "a6fc0d92-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.182840"], ["updated_at", "2015-06-02 23:46:56.182840"], ["token", "OuLtZPRB0Tqk2GXJ8mC23GpZaknI9Z1QD8FsjDiLe_E"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 16:46:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"OuLtZPRB0Tqk2GXJ8mC23GpZaknI9Z1QD8FsjDiLe_E", "organization_id"=>"org", "membership"=>{}} Pollett::Session Load (0.5ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:56.192811' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "LBsL4mP3WiaVwtJeFm4DVKwcfoYM4WdIYrSvl8ISoDo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:56.195017"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:56.196156"], ["id", "a6fe62ea-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6fe046c-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "OuLtZPRB0Tqk2GXJ8mC23GpZaknI9Z1QD8FsjDiLe_E"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6fc0d92-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6fe046c-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a6fc0d92-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "a6fc0d92-0981-11e5-9eb2-a8667f0424ad"], ["member_id", "a6fe046c-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.204774"], ["updated_at", "2015-06-02 23:46:56.204774"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a6ff471e-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.130@example.com"], ["password_digest", "$2a$04$69uC8Ah4RkIInhUDQQG/8OwFC9uxMZVQTMIQ0HObOBYUQwMy3lUg."], ["created_at", "2015-06-02 23:46:56.215683"], ["updated_at", "2015-06-02 23:46:56.215683"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.131@example.com"], ["password_digest", "$2a$04$Qcsa0RQXrZczCx4lcbXLLOi2Ia6kdKPqtN5ZqzH26b1Z7zpavlgB6"], ["created_at", "2015-06-02 23:46:56.220828"], ["updated_at", "2015-06-02 23:46:56.220828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.222409"], ["user_id", "a704231a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.223155"], ["updated_at", "2015-06-02 23:46:56.223155"], ["token", "tSoEPlxfE8vU7bVIWtcRGdGLHbCZbbIHCoemc_LlH7w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:56.226683"], ["updated_at", "2015-06-02 23:46:56.226683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a704231a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a705c652-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a704231a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a705c652-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.230091"], ["updated_at", "2015-06-02 23:46:56.230091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a704e3ea-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a705c652-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a704e3ea-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a705c652-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.233758"], ["updated_at", "2015-06-02 23:46:56.233758"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a705c652-0981-11e5-9eb2-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 16:46:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"a705c652-0981-11e5-9eb2-a8667f0424ad", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:56.241882' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "tSoEPlxfE8vU7bVIWtcRGdGLHbCZbbIHCoemc_LlH7w"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:56.243688"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:56.245251"], ["id", "a7054560-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a705c652-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a704231a-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a704231a-0981-11e5-9eb2-a8667f0424ad' LIMIT 1 [["organization_id", "a705c652-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "a705c652-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a705c652-0981-11e5-9eb2-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a704231a-0981-11e5-9eb2-a8667f0424ad"]] CACHE (0.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a705c652-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a704e3ea-0981-11e5-9eb2-a8667f0424ad"]] Completed 200 OK in 17ms (Views: 6.1ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.132@example.com"], ["password_digest", "$2a$04$IcPbw.gm3.s5QZXFCJ.wceWibBPHW4qhlWQp6QdVMGGF/OMAS9SiW"], ["created_at", "2015-06-02 23:46:56.267333"], ["updated_at", "2015-06-02 23:46:56.267333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.133@example.com"], ["password_digest", "$2a$04$9W.pfxGWfOh0brnab3mKJeeKqHrECjfKqaNSoQSAEB0OAWanSCeDe"], ["created_at", "2015-06-02 23:46:56.273563"], ["updated_at", "2015-06-02 23:46:56.273563"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.289295"], ["user_id", "a70c1a5c-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.291130"], ["updated_at", "2015-06-02 23:46:56.291130"], ["token", "asBQXyvnlgrxA8y9fE7akAYSEpy2d7PPMsUKUO4GSHU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:56.298183"], ["updated_at", "2015-06-02 23:46:56.298183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a70c1a5c-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a710bb84-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a70c1a5c-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a710bb84-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.305772"], ["updated_at", "2015-06-02 23:46:56.305772"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a70cfb98-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a710bb84-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a70cfb98-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a710bb84-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.310972"], ["updated_at", "2015-06-02 23:46:56.310972"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 16:46:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.134@example.com"], ["password_digest", "$2a$04$SkJ2mvI2144.8VRAHSpWj.CJBKT/4ccmyRszX9EcUr8sJGZ3EhYrO"], ["created_at", "2015-06-02 23:46:56.327975"], ["updated_at", "2015-06-02 23:46:56.327975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.135@example.com"], ["password_digest", "$2a$04$3ehTCAzR3PbPHEf.jGghOeisIWt7qV3Dpyo7a.UAzdt6ei5bL1JTa"], ["created_at", "2015-06-02 23:46:56.333753"], ["updated_at", "2015-06-02 23:46:56.333753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.335617"], ["user_id", "a7154276-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.336594"], ["updated_at", "2015-06-02 23:46:56.336594"], ["token", "3n4fSmHOtrKES_vM0-8E8uE4V9xqdYqBjsagadtyxGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:56.340569"], ["updated_at", "2015-06-02 23:46:56.340569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7154276-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a7172afa-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7154276-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a7172afa-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.345535"], ["updated_at", "2015-06-02 23:46:56.345535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a716224a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a7172afa-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a716224a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a7172afa-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.349426"], ["updated_at", "2015-06-02 23:46:56.349426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.136@example.com"], ["password_digest", "$2a$04$vldBv.lVPS89Abp0pCE3kex2OoCsc82jGMjDYu3S9QcH7aws3lOEm"], ["created_at", "2015-06-02 23:46:56.355110"], ["updated_at", "2015-06-02 23:46:56.355110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.357193"], ["user_id", "a7196c7a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.358324"], ["updated_at", "2015-06-02 23:46:56.358324"], ["token", "mk4BoM61K8bgoGD5G1kt106rcb6r6PlfkmOtGKOAERI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = 'a7172afa-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "a7172afa-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.362757"], ["updated_at", "2015-06-02 23:46:56.362757"], ["token", "pLAOzUMYPHFwmruP-RQbov8mRO4rMhBn7PMMkmE3SqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 16:46:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.137@example.com"], ["password_digest", "$2a$04$egmcrncP2fksu5nPpf628eOHoEZL21FtrzIiFGYQn9l995ch9KFNy"], ["created_at", "2015-06-02 23:46:56.377364"], ["updated_at", "2015-06-02 23:46:56.377364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.138@example.com"], ["password_digest", "$2a$04$AyRHTSMWhk7I6YeAIZTbGeT0M76ZAu.KgriIA80e8s0qpKlQaTly2"], ["created_at", "2015-06-02 23:46:56.382808"], ["updated_at", "2015-06-02 23:46:56.382808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.385710"], ["user_id", "a71ccc3a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.388878"], ["updated_at", "2015-06-02 23:46:56.388878"], ["token", "7QFI1KNfpoC_OReIRR3itNpkylX9YfsK8AxUYO4n900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:56.397333"], ["updated_at", "2015-06-02 23:46:56.397333"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a71ccc3a-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a71fe88e-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a71ccc3a-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a71fe88e-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.404510"], ["updated_at", "2015-06-02 23:46:56.404510"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a71db5dc-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a71fe88e-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a71db5dc-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a71fe88e-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.410775"], ["updated_at", "2015-06-02 23:46:56.410775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.139@example.com"], ["password_digest", "$2a$04$KqnUtery8g9RmSMjr3n76OB9H5w8O/CYq7UkEONFPzOtFlpAMZ.b."], ["created_at", "2015-06-02 23:46:56.416896"], ["updated_at", "2015-06-02 23:46:56.416896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.419459"], ["user_id", "a722ddaa-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.420813"], ["updated_at", "2015-06-02 23:46:56.420813"], ["token", "N8D4UDsSpbCxcUZYX6pjUkKBSYCDZ0ShBR8LxJ6b0g8"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'a71fe88e-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "a71fe88e-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.427573"], ["updated_at", "2015-06-02 23:46:56.427573"], ["token", "yMr5YMJgPFFZjAqgUL0fevTF-lNt9ZuNfaQ-0EdoQZY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a71fe88e-0981-11e5-9eb2-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 16:46:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"a71fe88e-0981-11e5-9eb2-a8667f0424ad", "membership"=>{}} Pollett::Session Load (0.3ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:56.436342' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "N8D4UDsSpbCxcUZYX6pjUkKBSYCDZ0ShBR8LxJ6b0g8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:56.437928"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:56.439058"], ["id", "a7237eea-0981-11e5-9eb2-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a71fe88e-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a722ddaa-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 14ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (1.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.140@example.com"], ["password_digest", "$2a$04$en1WZcxcS6hnwvEKbUZRSeOqBCd0wdPZ35WjA02.TbcrhFSzosau."], ["created_at", "2015-06-02 23:46:56.461452"], ["updated_at", "2015-06-02 23:46:56.461452"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.141@example.com"], ["password_digest", "$2a$04$VPn4ab/pahjJyPCsx/gKMutA90KV/Bg8BD0w6ovCGV0miNEDANUOC"], ["created_at", "2015-06-02 23:46:56.468428"], ["updated_at", "2015-06-02 23:46:56.468428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.470868"], ["user_id", "a729b0ee-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.472273"], ["updated_at", "2015-06-02 23:46:56.472273"], ["token", "LZ8aZnkgZ5sBq95NRs-HgEOzoogtapkpQ_xV_cUjpTA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (6.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:56.484002"], ["updated_at", "2015-06-02 23:46:56.484002"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a729b0ee-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a72d39f8-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (3.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a729b0ee-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a72d39f8-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.491810"], ["updated_at", "2015-06-02 23:46:56.491810"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a72aba34-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a72d39f8-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a72aba34-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a72d39f8-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.502768"], ["updated_at", "2015-06-02 23:46:56.502768"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.142@example.com"], ["password_digest", "$2a$04$NTXQV4E56BRhquJk.JwVKO0wZf6Ul5BU5f5mROCxihXMDKwkgaDU."], ["created_at", "2015-06-02 23:46:56.512475"], ["updated_at", "2015-06-02 23:46:56.512475"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_sessions" ("accessed_at", "user_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["accessed_at", "2015-06-02 23:46:56.516378"], ["user_id", "a7319480-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.517610"], ["updated_at", "2015-06-02 23:46:56.517610"], ["token", "1fG2RdeQS50aLxL8H6mvPQEEidei08XTzYnlN20E8wY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'a72d39f8-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "a72d39f8-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.522328"], ["updated_at", "2015-06-02 23:46:56.522328"], ["token", "UqIv045ee7BVEiKZCgKt2ZH3MRMCl3fNg7-9F9OQwps"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a72d39f8-0981-11e5-9eb2-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 16:46:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"UqIv045ee7BVEiKZCgKt2ZH3MRMCl3fNg7-9F9OQwps", "organization_id"=>"a72d39f8-0981-11e5-9eb2-a8667f0424ad", "membership"=>{}} Pollett::Session Load (0.4ms) SELECT "pollett_sessions".* FROM "pollett_sessions" WHERE (accessed_at >= '2015-05-19 23:46:56.531675' AND revoked_at IS NULL) AND "pollett_sessions"."token" = $1 LIMIT 1 [["token", "1fG2RdeQS50aLxL8H6mvPQEEidei08XTzYnlN20E8wY"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "pollett_sessions" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_sessions"."id" = $4 [["accessed_at", "2015-06-02 23:46:56.536229"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:46:56.537753"], ["id", "a7323af2-0981-11e5-9eb2-a8667f0424ad"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a72d39f8-0981-11e5-9eb2-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7319480-0981-11e5-9eb2-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.8ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "UqIv045ee7BVEiKZCgKt2ZH3MRMCl3fNg7-9F9OQwps"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a72d39f8-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7319480-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a72d39f8-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "a72d39f8-0981-11e5-9eb2-a8667f0424ad"], ["member_id", "a7319480-0981-11e5-9eb2-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:46:56.552677"], ["updated_at", "2015-06-02 23:46:56.552677"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a732ee02-0981-11e5-9eb2-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 1.3ms | ActiveRecord: 4.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.7ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (1.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "user.143@example.com"], ["password_digest", "$2a$04$D90rt5mLvR9Sa0D/lSDAeuMm/j4iLT7F6Y0ukNjuGJ.i5uHaq1VbG"], ["created_at", "2015-06-02 23:46:56.590591"], ["updated_at", "2015-06-02 23:46:56.590591"]]  (4.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:46:56.609579"], ["updated_at", "2015-06-02 23:46:56.609579"]]  (4.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a73de1a4-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a7408a3a-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a73de1a4-0981-11e5-9eb2-a8667f0424ad"], ["organization_id", "a7408a3a-0981-11e5-9eb2-a8667f0424ad"], ["created_at", "2015-06-02 23:46:56.625236"], ["updated_at", "2015-06-02 23:46:56.625236"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.5ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a73de1a4-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a7408a3a-0981-11e5-9eb2-a8667f0424ad"]] Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a73de1a4-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a7408a3a-0981-11e5-9eb2-a8667f0424ad') LIMIT 1 Clubhouse::Membership Load (0.7ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a7408a3a-0981-11e5-9eb2-a8667f0424ae"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a73de1a4-0981-11e5-9eb2-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a7408a3a-0981-11e5-9eb2-a8667f0424ae') LIMIT 1  (1.7ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.007650"], ["updated_at", "2015-06-02 23:49:00.007650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'f0cdc2c6-0981-11e5-a88b-a8667f0424ad') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "f0cdc2c6-0981-11e5-a88b-a8667f0424ad"], ["created_at", "2015-06-02 23:49:00.016545"], ["updated_at", "2015-06-02 23:49:00.016545"], ["token", "p_TfC55Oq4JXt_81SFoGqvEN8skYRiXQWKkTkqSLjjg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (1.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f0cdc2c6-0981-11e5-a88b-a8667f0424ad"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'f0cdc2c6-0981-11e5-a88b-a8667f0424ad') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f0cdc2c6-0981-11e5-a88b-a8667f0424ae"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'f0cdc2c6-0981-11e5-a88b-a8667f0424ae') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.051267"], ["updated_at", "2015-06-02 23:49:00.051267"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'f0d3f34e-0981-11e5-a88b-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "f0d3f34e-0981-11e5-a88b-a8667f0424ad"], ["created_at", "2015-06-02 23:49:00.057687"], ["updated_at", "2015-06-02 23:49:00.057687"], ["token", "h2aIGzb6fFQYYmKdFSwOrTh1SUu3ob2MPGyxRPeGMhc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.8ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.317051"], ["updated_at", "2015-06-02 23:49:00.317051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.329037"], ["updated_at", "2015-06-02 23:49:00.329037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.356737"], ["updated_at", "2015-06-02 23:49:00.356737"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.387686"], ["updated_at", "2015-06-02 23:49:00.387686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.396985"], ["updated_at", "2015-06-02 23:49:00.396985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f108b84a-0981-11e5-a88b-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) 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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (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) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (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 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.797349"], ["updated_at", "2015-06-02 23:49:00.797349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'f145cbf4-0981-11e5-a88b-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "f145cbf4-0981-11e5-a88b-a8667f0424ad"], ["created_at", "2015-06-02 23:49:00.802209"], ["updated_at", "2015-06-02 23:49:00.802209"], ["token", "VHJ-rYkgHsPgVErB_fm1iLotPgU6hp2pOJgljA5wimw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.7ms) Clubhouse::Mailer#invitation: processed outbound mail in 49.6ms Sent mail to john@example.com (12.7ms) Date: Tue, 02 Jun 2015 16:49:00 -0700 From: from@example.com To: john@example.com Message-ID: <556e40ecd3025_de003fd5090601f8438ee@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/VHJ-rYkgHsPgVErB_fm1iLotPgU6hp2pOJgljA5wimw?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.876711"], ["updated_at", "2015-06-02 23:49:00.876711"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'f151ef38-0981-11e5-a88b-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "f151ef38-0981-11e5-a88b-a8667f0424ad"], ["created_at", "2015-06-02 23:49:00.882477"], ["updated_at", "2015-06-02 23:49:00.882477"], ["token", "lySn_WDoPrt6pBt71TaKdUNWqf7IzwQk95j6KOV0stk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.3ms) Date: Tue, 02 Jun 2015 16:49:00 -0700 From: from@example.com To: john@example.com Message-ID: <556e40ecd884d_de003fd5090601f84391d@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/lySn_WDoPrt6pBt71TaKdUNWqf7IzwQk95j6KOV0stk?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.894995"], ["updated_at", "2015-06-02 23:49:00.894995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'f154b3da-0981-11e5-a88b-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "f154b3da-0981-11e5-a88b-a8667f0424ad"], ["created_at", "2015-06-02 23:49:00.900485"], ["updated_at", "2015-06-02 23:49:00.900485"], ["token", "jv8JPxSBc6qKF-_qesJd4xA5s1n1FWEaKwclyhvQC40"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.5ms Sent mail to john@example.com (1.5ms) Date: Tue, 02 Jun 2015 16:49:00 -0700 From: from@example.com To: john@example.com Message-ID: <556e40ecdcd53_de003fd5090601f844085@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/jv8JPxSBc6qKF-_qesJd4xA5s1n1FWEaKwclyhvQC40?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:49:00.911085"], ["updated_at", "2015-06-02 23:49:00.911085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'f1571ee0-0981-11e5-a88b-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "f1571ee0-0981-11e5-a88b-a8667f0424ad"], ["created_at", "2015-06-02 23:49:00.916314"], ["updated_at", "2015-06-02 23:49:00.916314"], ["token", "YArmfNkdKuzCTM1l1tNMLcBXEz6UJFEuvpBZfQmpYWM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.7ms Sent mail to john@example.com (2.6ms) Date: Tue, 02 Jun 2015 16:49:00 -0700 From: from@example.com To: john@example.com Message-ID: <556e40ece0da1_de003fd5090601f844186@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/YArmfNkdKuzCTM1l1tNMLcBXEz6UJFEuvpBZfQmpYWM?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (2.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:17.354521"], ["updated_at", "2015-06-02 23:50:17.354521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:17.402837"], ["updated_at", "2015-06-02 23:50:17.402837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:17.422498"], ["updated_at", "2015-06-02 23:50:17.422498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:17.428315"], ["updated_at", "2015-06-02 23:50:17.428315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1ef2b490-0982-11e5-b669-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:17.439933"], ["updated_at", "2015-06-02 23:50:17.439933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (2.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1  (1.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:17.761815"], ["updated_at", "2015-06-02 23:50:17.761815"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1f25bcb4-0982-11e5-b669-a8667f0424ad') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1f25bcb4-0982-11e5-b669-a8667f0424ad"], ["created_at", "2015-06-02 23:50:17.789869"], ["updated_at", "2015-06-02 23:50:17.789869"], ["token", "TLcbBFToOZ04IzxOTbviS63EoTyQARAHOzC3RXWnt9M"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.0ms) Clubhouse::Mailer#invitation: processed outbound mail in 50.5ms Sent mail to john@example.com (10.5ms) Date: Tue, 02 Jun 2015 16:50:17 -0700 From: from@example.com To: john@example.com Message-ID: <556e4139d045c_de583fc80943a2049247e@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/TLcbBFToOZ04IzxOTbviS63EoTyQARAHOzC3RXWnt9M?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:17.864995"], ["updated_at", "2015-06-02 23:50:17.864995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1f356088-0982-11e5-b669-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1f356088-0982-11e5-b669-a8667f0424ad"], ["created_at", "2015-06-02 23:50:17.871168"], ["updated_at", "2015-06-02 23:50:17.871168"], ["token", "an2Mg10gk0kaKZyj5EzrCDUMH6okCiI4jbBphu5hlLY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms Sent mail to john@example.com (2.4ms) Date: Tue, 02 Jun 2015 16:50:17 -0700 From: from@example.com To: john@example.com Message-ID: <556e4139d6374_de583fc80943a204925ea@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/an2Mg10gk0kaKZyj5EzrCDUMH6okCiI4jbBphu5hlLY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:17.888949"], ["updated_at", "2015-06-02 23:50:17.888949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1f3915ca-0982-11e5-b669-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1f3915ca-0982-11e5-b669-a8667f0424ad"], ["created_at", "2015-06-02 23:50:17.896224"], ["updated_at", "2015-06-02 23:50:17.896224"], ["token", "6ivQFD0xinDlHmoLbO2MmN3OIhGXfnS18paiwcCQCmM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms Sent mail to john@example.com (3.8ms) Date: Tue, 02 Jun 2015 16:50:17 -0700 From: from@example.com To: john@example.com Message-ID: <556e4139dc764_de583fc80943a204926ac@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/6ivQFD0xinDlHmoLbO2MmN3OIhGXfnS18paiwcCQCmM?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:17.912666"], ["updated_at", "2015-06-02 23:50:17.912666"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1f3ca9ce-0982-11e5-b669-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1f3ca9ce-0982-11e5-b669-a8667f0424ad"], ["created_at", "2015-06-02 23:50:17.918500"], ["updated_at", "2015-06-02 23:50:17.918500"], ["token", "wkgQQI9GrB-2JF_nxr1x5TQKtYVtDpBrveJVJVA8ps0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.5ms) Date: Tue, 02 Jun 2015 16:50:17 -0700 From: from@example.com To: john@example.com Message-ID: <556e4139e1308_de583fc80943a204927e6@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/wkgQQI9GrB-2JF_nxr1x5TQKtYVtDpBrveJVJVA8ps0?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:18.084063"], ["updated_at", "2015-06-02 23:50:18.084063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '1f56c296-0982-11e5-b669-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "1f56c296-0982-11e5-b669-a8667f0424ad"], ["created_at", "2015-06-02 23:50:18.090839"], ["updated_at", "2015-06-02 23:50:18.090839"], ["token", "oZugNgZZjXeyT06-MsG8BD12lIMazaIUoJA6ZRzwXGo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1f56c296-0982-11e5-b669-a8667f0424ad"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '1f56c296-0982-11e5-b669-a8667f0424ad') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1f56c296-0982-11e5-b669-a8667f0424ae"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '1f56c296-0982-11e5-b669-a8667f0424ae') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:18.120209"], ["updated_at", "2015-06-02 23:50:18.120209"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '1f5c4914-0982-11e5-b669-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "1f5c4914-0982-11e5-b669-a8667f0424ad"], ["created_at", "2015-06-02 23:50:18.125007"], ["updated_at", "2015-06-02 23:50:18.125007"], ["token", "bXccYjqalVzbeVbFmGzx02pnOhcM6JxLV6EDuGKeheQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (4.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$5VZaXqg5jsTtOiGplob9FeAbqWGAiwRJfhnGkrj4NvTTsZjjgdM8q"], ["created_at", "2015-06-02 23:50:49.535976"], ["updated_at", "2015-06-02 23:50:49.535976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$UEYL6fPP8wwfF4pZcayn5O4QzMk2bjt7vRJC0TqnkerzQCuKZZ6h."], ["created_at", "2015-06-02 23:50:49.551300"], ["updated_at", "2015-06-02 23:50:49.551300"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$O5o3AsSYEGfmyZkMW8u51uPcoR7b35rCRM3UI5v1uVjwIQFZrqDom"], ["created_at", "2015-06-02 23:50:49.568002"], ["updated_at", "2015-06-02 23:50:49.568002"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$FnJStcoRzvpW509F0zXzXeGrm/ovrRBXF8i7OnL9fRe6q/jI9p/Cq"], ["created_at", "2015-06-02 23:50:49.577848"], ["updated_at", "2015-06-02 23:50:49.577848"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$N/43/FAF5GpUEhXfUhmGz.gVj73.HLD1Ub.C0i3ckQ5xb0eEpo932"], ["created_at", "2015-06-02 23:50:49.593019"], ["updated_at", "2015-06-02 23:50:49.593019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$BIqmvKNeH2YIr6qivqnWROOAaOxexB.zhy4HCe/16pdQt5mnwrzRS"], ["created_at", "2015-06-02 23:50:49.602718"], ["updated_at", "2015-06-02 23:50:49.602718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$QSrR4Drvd7yK1S5drruluu/YxgAVaJJ0QLB4gm97u9wQRjhcIT6sq"], ["created_at", "2015-06-02 23:50:49.616971"], ["updated_at", "2015-06-02 23:50:49.616971"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$vxilhepSN.QdYgCL6ZTi7O5G04alYyO05jC5ZteldGSIcnfmYuKfO"], ["created_at", "2015-06-02 23:50:49.666040"], ["updated_at", "2015-06-02 23:50:49.666040"]]  (1.5ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$OTxINmj.5lH/yaWbMj7P2uc9.fEqIngBVApTbVeFdi3t0Xk7Pniba"], ["created_at", "2015-06-02 23:50:49.685277"], ["updated_at", "2015-06-02 23:50:49.685277"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$AbS75apAy/dPVR4oNZ7CKud0XqYZQdFIJ9Xa0RhRaCuxuYliRjd/S"], ["created_at", "2015-06-02 23:50:49.696875"], ["updated_at", "2015-06-02 23:50:49.696875"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$D4QZkMFe1OeEiBNjGRIMfuzCbSAScqpFc2o1x/2mSWaHOHekvSmMa"], ["created_at", "2015-06-02 23:50:49.706895"], ["updated_at", "2015-06-02 23:50:49.706895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$EfoCCzuEj1CPa.j4G4EBl./2CmLoB1aDXHRSeg.2SxHdAKeAJBEXG"], ["created_at", "2015-06-02 23:50:49.714836"], ["updated_at", "2015-06-02 23:50:49.714836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$.ZuPYo.Poz0Ymwzr0uTRw.RXJEdu5J4wX55NlhGnkWUNqTw1RYXv."], ["created_at", "2015-06-02 23:50:49.724323"], ["updated_at", "2015-06-02 23:50:49.724323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$EVtLcdNlT4dpYb68IAfEBuDn5qGI/GuqKeeYn7rOom44AphiZHCwa"], ["created_at", "2015-06-02 23:50:49.733116"], ["updated_at", "2015-06-02 23:50:49.733116"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$VstNRoo7wnedzRMf8Iagbek.z1TAeuT4mff3ouRfm8KBaN9RNnmh6"], ["created_at", "2015-06-02 23:50:49.741896"], ["updated_at", "2015-06-02 23:50:49.741896"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$rY4eVe8s5Jo5p/vDRv3yP.Dv0QrNS5.WI1bQKxp1QZAeiyH5xaIdS"], ["created_at", "2015-06-02 23:50:49.748642"], ["updated_at", "2015-06-02 23:50:49.748642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$0qUgg5UzDWmb27LnIvM1JOa06023LxFYFXp5zt3fGGm92ypTUGz3m"], ["created_at", "2015-06-02 23:50:49.758308"], ["updated_at", "2015-06-02 23:50:49.758308"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$zvnVYaiB8RAQgmGNAIURNO.hWchSMw1Pl4Zvf9YA2xX0n/q0H/HGm"], ["created_at", "2015-06-02 23:50:49.769775"], ["updated_at", "2015-06-02 23:50:49.769775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$pKlD/qRXKiKMpme/5440POV5yRloHmrVfKPKMwmZir5d.KY3H6Usi"], ["created_at", "2015-06-02 23:50:49.780694"], ["updated_at", "2015-06-02 23:50:49.780694"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$csBYlhoq6EnpTBM1E1cNkuDxhuMUfBhyBau8hqrhfzXpot9tY5YzS"], ["created_at", "2015-06-02 23:50:49.787943"], ["updated_at", "2015-06-02 23:50:49.787943"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$njZeg0fJIlAb/RQykHZtlupVgLP7/crKjuU8uCeYk/fPwG0a5bXhm"], ["created_at", "2015-06-02 23:50:49.797419"], ["updated_at", "2015-06-02 23:50:49.797419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$Ti0g.oWbTzT/b1ZhzcBY8.GfzKu49lT9/7RBBnWGC8TQf7/bwFXfq"], ["created_at", "2015-06-02 23:50:49.806908"], ["updated_at", "2015-06-02 23:50:49.806908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$M27VGTivkNqkHQL1aTLBE.P/1OIO5dR6ENMXImwjtythBHrimx1mi"], ["created_at", "2015-06-02 23:50:49.818954"], ["updated_at", "2015-06-02 23:50:49.818954"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$mDW25lG8n/lQCfb6GGJg7.2EMLH8s.MqOK7notSImbBDiY2cGAdN2"], ["created_at", "2015-06-02 23:50:49.825815"], ["updated_at", "2015-06-02 23:50:49.825815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$FRO46xs0PCGTsavdlEglDu.be4jIz0qKUqcs5e2dqt7u0NX7f7aiq"], ["created_at", "2015-06-02 23:50:49.834195"], ["updated_at", "2015-06-02 23:50:49.834195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$tI7H2ZYyEwy754VWLIG.aeLUditiFIBcseAl0L9XXTFRnbu9ruoZ."], ["created_at", "2015-06-02 23:50:49.842781"], ["updated_at", "2015-06-02 23:50:49.842781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$tnnsFrhho01DeOZCTbXR8.738C3znc.BD1xL71NQFV7yBXVzN/0Ei"], ["created_at", "2015-06-02 23:50:49.856418"], ["updated_at", "2015-06-02 23:50:49.856418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$ynnR.KiaCtUyRWQbczI5NeXNZ3/IkP2/d.qx4Y.B4uPKb.y1EtYqy"], ["created_at", "2015-06-02 23:50:49.863097"], ["updated_at", "2015-06-02 23:50:49.863097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$HUEvb158xdxZoI2y7k6Uo.taU1Ym7XzZw1FM8/AJe5qOumUOWMeJe"], ["created_at", "2015-06-02 23:50:49.872059"], ["updated_at", "2015-06-02 23:50:49.872059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$eWuti4FhQAh5A1i9vkQYW.Xee1EN3nmo21lXLv0aNGEgq4fx/2WZO"], ["created_at", "2015-06-02 23:50:49.878035"], ["updated_at", "2015-06-02 23:50:49.878035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$i2mm2aiEM3za8.hCP4b36uu55Yj4ZrLE9rRAx1MUfDNo54pcX9wla"], ["created_at", "2015-06-02 23:50:49.886997"], ["updated_at", "2015-06-02 23:50:49.886997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$tiK1Xl.CVmu13OM1FJNDZ.8mVJs1mQ1dCzIZiFpi7x57rd1shLPwa"], ["created_at", "2015-06-02 23:50:49.893316"], ["updated_at", "2015-06-02 23:50:49.893316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$TqfritJo9swUsz7oyf/te.GQxaF8SPFAoU68maDBbQRXF6SG4zyhm"], ["created_at", "2015-06-02 23:50:49.902834"], ["updated_at", "2015-06-02 23:50:49.902834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$5z6T.VBlT4hARHWeRJr1feO2QaMk8yoWLzzuXuLTuuD/oNvtNqgvq"], ["created_at", "2015-06-02 23:50:49.911003"], ["updated_at", "2015-06-02 23:50:49.911003"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$1CLMVseVgq9hn4eN53dc6eQey6tgOpiTvKnGO/j7czYt2Z2LZZ1VG"], ["created_at", "2015-06-02 23:50:49.921725"], ["updated_at", "2015-06-02 23:50:49.921725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$iCa6aPk9dUWgCQQEegOSQuO.iGIqZZczgghThVzkdUQT.KulpCAEa"], ["created_at", "2015-06-02 23:50:49.933359"], ["updated_at", "2015-06-02 23:50:49.933359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$YCEwlMnEKov4lvUONinrUuG9Lbm8zfXayrZDMVfV5m0SENyH1kcj6"], ["created_at", "2015-06-02 23:50:49.942965"], ["updated_at", "2015-06-02 23:50:49.942965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$4.wgSKC8EGYS.SO9JkLEe.ePdjwwBShV10hS/0Vvny.0HI7GJMPpm"], ["created_at", "2015-06-02 23:50:49.955356"], ["updated_at", "2015-06-02 23:50:49.955356"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 39"], ["email", "user.39@example.com"], ["password_digest", "$2a$04$YzRs4O/hcdIVz.fToASAkOqWmQBXlhZvXBlqbewucv.jFCN2H5roW"], ["created_at", "2015-06-02 23:50:49.981939"], ["updated_at", "2015-06-02 23:50:49.981939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 40"], ["email", "user.40@example.com"], ["password_digest", "$2a$04$OOapb5wMn8WqEXGTpL.Is.aBDsqEYP6qlFoFnhjdRK3uMQPfS3nSy"], ["created_at", "2015-06-02 23:50:49.992394"], ["updated_at", "2015-06-02 23:50:49.992394"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 41"], ["email", "user.41@example.com"], ["password_digest", "$2a$04$oJrvoRbLH17jRm3f8dkfc.M9dhoYAmkZV1Xt75wfnrlqcU/KUiQeC"], ["created_at", "2015-06-02 23:50:50.007483"], ["updated_at", "2015-06-02 23:50:50.007483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 42"], ["email", "user.42@example.com"], ["password_digest", "$2a$04$HGlKk2kSq./ZLGhZtfEPB.WbB2BNNYoVpqign3iXEXEjSHW2S0cjC"], ["created_at", "2015-06-02 23:50:50.023698"], ["updated_at", "2015-06-02 23:50:50.023698"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 43"], ["email", "user.43@example.com"], ["password_digest", "$2a$04$9nwkzBblNlQNIyWKZYlr0OHEcqBlF7OugOQRrXuWhBzjrgZMj0jKe"], ["created_at", "2015-06-02 23:50:50.040869"], ["updated_at", "2015-06-02 23:50:50.040869"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 44"], ["email", "user.44@example.com"], ["password_digest", "$2a$04$MjnLRs.NzhgGGYq1xJv/TueOR0YhDDq9gt3BczuLCdZPHRLt92zam"], ["created_at", "2015-06-02 23:50:50.064291"], ["updated_at", "2015-06-02 23:50:50.064291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (2.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 45"], ["email", "user.45@example.com"], ["password_digest", "$2a$04$s6chyXmbaReyth5O8Yq08ukqsuU9O6Fcqd33b5diU0CjfinuX/.4O"], ["created_at", "2015-06-02 23:50:50.086818"], ["updated_at", "2015-06-02 23:50:50.086818"]]  (160.8ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (8.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 46"], ["email", "user.46@example.com"], ["password_digest", "$2a$04$50.gOKiiLaOIAswTBq0SwuHwejThsWKXLzATYsgrrsQLZ49b.EpgC"], ["created_at", "2015-06-02 23:50:50.281617"], ["updated_at", "2015-06-02 23:50:50.281617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (4.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 47"], ["email", "user.47@example.com"], ["password_digest", "$2a$04$bl3HMj0zzpfdfAA14ZFMGeR99RLIvQLMCea3KUCKPZFQMeOMIlpSS"], ["created_at", "2015-06-02 23:50:50.308600"], ["updated_at", "2015-06-02 23:50:50.308600"]]  (1.4ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (2.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 48"], ["email", "user.48@example.com"], ["password_digest", "$2a$04$vvDHiGICpJPbJsN67b/EgOk1wTSoEoxIgn8d9mMiOJV6ZmAy4089u"], ["created_at", "2015-06-02 23:50:50.326087"], ["updated_at", "2015-06-02 23:50:50.326087"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 49"], ["email", "user.49@example.com"], ["password_digest", "$2a$04$g.Y5bucvuQooqV1suTuzVuchWt3SIxKlHChqpWNzQ7J6cH.UWLLlq"], ["created_at", "2015-06-02 23:50:50.345220"], ["updated_at", "2015-06-02 23:50:50.345220"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 50"], ["email", "user.50@example.com"], ["password_digest", "$2a$04$nGEDYw15dQSX3nFqXYt/r.N5/QbZapv3nqOERn5ruq9LNx01LvNVq"], ["created_at", "2015-06-02 23:50:50.360928"], ["updated_at", "2015-06-02 23:50:50.360928"]]  (1.3ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 51"], ["email", "user.51@example.com"], ["password_digest", "$2a$04$uANf/USVD/hMKX8/6z/Eqe/y.8k2l5UljCsXfa.sA9gRBv2F2GLj."], ["created_at", "2015-06-02 23:50:50.382728"], ["updated_at", "2015-06-02 23:50:50.382728"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.5ms) ROLLBACK  (14.7ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 52"], ["email", "user.52@example.com"], ["password_digest", "$2a$04$m3WlvI6Cw85Ckrdvs9AA7eLaa6S3rbf3i7xRn34IV.0cV6JCW9JsW"], ["created_at", "2015-06-02 23:50:50.447802"], ["updated_at", "2015-06-02 23:50:50.447802"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (72.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 53"], ["email", "user.53@example.com"], ["password_digest", "$2a$04$4eSjpf9xENewodufy/f6qub2raiQ.l.tS6.i3.SFBajozl4elfDXq"], ["created_at", "2015-06-02 23:50:50.466424"], ["updated_at", "2015-06-02 23:50:50.466424"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 54"], ["email", "user.54@example.com"], ["password_digest", "$2a$04$8sfvhzPG94omypVMVV72xuqtXRv2Pcg.br4Mf4W.f4IUtwjuEWz0G"], ["created_at", "2015-06-02 23:50:50.556940"], ["updated_at", "2015-06-02 23:50:50.556940"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 55"], ["email", "user.55@example.com"], ["password_digest", "$2a$04$xFvt58gVeFWGSlwy7U2PX.MF55M5SxwSSj03AvhoS80TcyiEWd2RK"], ["created_at", "2015-06-02 23:50:50.663480"], ["updated_at", "2015-06-02 23:50:50.663480"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:50.710143"], ["updated_at", "2015-06-02 23:50:50.710143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32c2098a-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32c95974-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32c2098a-0982-11e5-868a-a8667f0424ad"], ["organization_id", "32c95974-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:50.715370"], ["updated_at", "2015-06-02 23:50:50.715370"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.8ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "32c2098a-0982-11e5-868a-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "32c95974-0982-11e5-868a-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32c2098a-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32c95974-0982-11e5-868a-a8667f0424ad') LIMIT 1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "32c95974-0982-11e5-868a-a8667f0424ae"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32c2098a-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32c95974-0982-11e5-868a-a8667f0424ae') LIMIT 1  (0.3ms) ROLLBACK  (0.4ms) BEGIN Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:50.778845"], ["updated_at", "2015-06-02 23:50:50.778845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '32d39fec-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "32d39fec-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:50.784015"], ["updated_at", "2015-06-02 23:50:50.784015"], ["token", "Md1Vc9sOpuFm8sDg4Agls_Phs4BeyxIufvM5Zs12pf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:50.829754"], ["updated_at", "2015-06-02 23:50:50.829754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '32db6c04-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "32db6c04-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:50.834612"], ["updated_at", "2015-06-02 23:50:50.834612"], ["token", "Z5l542kn0t2zdZjfJv3QxgmO92_swPfVPxGVz4iIx5w"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "32db6c04-0982-11e5-868a-a8667f0424ad"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '32db6c04-0982-11e5-868a-a8667f0424ad') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "32db6c04-0982-11e5-868a-a8667f0424ae"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '32db6c04-0982-11e5-868a-a8667f0424ae') LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 56"], ["email", "user.56@example.com"], ["password_digest", "$2a$04$7j/fFMIPo88Yf8iTcGPCR.gAV3zTtrQrZdl4jm7hEOMtk99l/eW.S"], ["created_at", "2015-06-02 23:50:50.861588"], ["updated_at", "2015-06-02 23:50:50.861588"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:50.869459"], ["updated_at", "2015-06-02 23:50:50.869459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32e0561a-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32e176ee-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32e0561a-0982-11e5-868a-a8667f0424ad"], ["organization_id", "32e176ee-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:50.873739"], ["updated_at", "2015-06-02 23:50:50.873739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '32e0561a-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "32e176ee-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 57"], ["email", "user.57@example.com"], ["password_digest", "$2a$04$IfgAY1w/sl3PiAfjgYDtzOPZDtWQFxHSqTyN3VMKAnrDqIJfOkLLi"], ["created_at", "2015-06-02 23:50:50.919632"], ["updated_at", "2015-06-02 23:50:50.919632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:50.925364"], ["updated_at", "2015-06-02 23:50:50.925364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32e91a52-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32ea01d8-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32e91a52-0982-11e5-868a-a8667f0424ad"], ["organization_id", "32ea01d8-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:50.929473"], ["updated_at", "2015-06-02 23:50:50.929473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '32e91a52-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "32ea01d8-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 58"], ["email", "user.58@example.com"], ["password_digest", "$2a$04$rPzNA/wsEQk1F97BmdOjEef98m5E.aAAZM.t7DJkfaikgVmuXo1WC"], ["created_at", "2015-06-02 23:50:50.938093"], ["updated_at", "2015-06-02 23:50:50.938093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:50.942920"], ["updated_at", "2015-06-02 23:50:50.942920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32ebe57a-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32ecad8e-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32ebe57a-0982-11e5-868a-a8667f0424ad"], ["organization_id", "32ecad8e-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:50.946534"], ["updated_at", "2015-06-02 23:50:50.946534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 59"], ["email", "user.59@example.com"], ["password_digest", "$2a$04$d0fgQLfa.MxIYRPOkM78Xe6tBQV9y3/9PUjfchprJr1SBNYl2Psve"], ["created_at", "2015-06-02 23:50:50.957022"], ["updated_at", "2015-06-02 23:50:50.957022"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:50.963285"], ["updated_at", "2015-06-02 23:50:50.963285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32eedbc2-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32efbe8e-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32eedbc2-0982-11e5-868a-a8667f0424ad"], ["organization_id", "32efbe8e-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:50.966479"], ["updated_at", "2015-06-02 23:50:50.966479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '32eedbc2-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "32efbe8e-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 60"], ["email", "user.60@example.com"], ["password_digest", "$2a$04$vCHefIHVRzOt1Jpw0KGNGOcZGbrPqo83QosJAbD3P4II4M7Q9dJb."], ["created_at", "2015-06-02 23:50:50.977532"], ["updated_at", "2015-06-02 23:50:50.977532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:50.982585"], ["updated_at", "2015-06-02 23:50:50.982585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32f1f910-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32f2b422-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32f1f910-0982-11e5-868a-a8667f0424ad"], ["organization_id", "32f2b422-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:50.986804"], ["updated_at", "2015-06-02 23:50:50.986804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '32f1f910-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "32f2b422-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 61"], ["email", "user.61@example.com"], ["password_digest", "$2a$04$x3uCDFNCxlder3q.ymDRmea3IgPWvyJEvIfsZm6DwyoaxyA9BAfDS"], ["created_at", "2015-06-02 23:50:50.996767"], ["updated_at", "2015-06-02 23:50:50.996767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 62"], ["email", "user.62@example.com"], ["password_digest", "$2a$04$KgmHVg/TgNlzf3hwt/WnjOwdCN4QiiYmBCWr2gLaRjUF9v03fhGEO"], ["created_at", "2015-06-02 23:50:51.004082"], ["updated_at", "2015-06-02 23:50:51.004082"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.012386"], ["updated_at", "2015-06-02 23:50:51.012386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32f60a6e-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32f75306-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32f60a6e-0982-11e5-868a-a8667f0424ad"], ["organization_id", "32f75306-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.017219"], ["updated_at", "2015-06-02 23:50:51.017219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '32f4e3a0-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "32f75306-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 63"], ["email", "user.63@example.com"], ["password_digest", "$2a$04$488CXBjaIeXBvOGN8pVRb.w9hMtsnDkOXcPpUgjm1pG.RarX9qu46"], ["created_at", "2015-06-02 23:50:51.026797"], ["updated_at", "2015-06-02 23:50:51.026797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 64"], ["email", "user.64@example.com"], ["password_digest", "$2a$04$PQTXuuyMdo2sTqywxH.nFueW1w/b.UOzbv24WNWtyXCJlL.2RsxS6"], ["created_at", "2015-06-02 23:50:51.033052"], ["updated_at", "2015-06-02 23:50:51.033052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.037478"], ["updated_at", "2015-06-02 23:50:51.037478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32fa6546-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32fb1040-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32fa6546-0982-11e5-868a-a8667f0424ad"], ["organization_id", "32fb1040-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.040676"], ["updated_at", "2015-06-02 23:50:51.040676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '32f97afa-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "32fb1040-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 65"], ["email", "user.65@example.com"], ["password_digest", "$2a$04$wtIDhDY/FL2Wcb/YUXNj2eU83.18aC/stWyNQZjn0gdZ.xaS7lgiC"], ["created_at", "2015-06-02 23:50:51.050950"], ["updated_at", "2015-06-02 23:50:51.050950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 66"], ["email", "user.66@example.com"], ["password_digest", "$2a$04$gHGtfxdtgOUnHel.vi0KZu5nc6/meP6pqsN2zh5hczwYcZPWnrSaa"], ["created_at", "2015-06-02 23:50:51.061064"], ["updated_at", "2015-06-02 23:50:51.061064"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.067285"], ["updated_at", "2015-06-02 23:50:51.067285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32fecbc2-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '32ffa182-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32fecbc2-0982-11e5-868a-a8667f0424ad"], ["organization_id", "32ffa182-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.071001"], ["updated_at", "2015-06-02 23:50:51.071001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 67"], ["email", "user.67@example.com"], ["password_digest", "$2a$04$lBiBcJt8MyZIdqAazmWi9ubWrD00so/1bdZSRjmXkrn18hedSJYg2"], ["created_at", "2015-06-02 23:50:51.081981"], ["updated_at", "2015-06-02 23:50:51.081981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 68"], ["email", "user.68@example.com"], ["password_digest", "$2a$04$EeSzGc/yyHGhx3AN/yexe.L.Pyahxy8Aha1RxIKu/sa7ApToutWVm"], ["created_at", "2015-06-02 23:50:51.089797"], ["updated_at", "2015-06-02 23:50:51.089797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.094474"], ["updated_at", "2015-06-02 23:50:51.094474"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33031b14-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3303bff6-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33031b14-0982-11e5-868a-a8667f0424ad"], ["organization_id", "3303bff6-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.101369"], ["updated_at", "2015-06-02 23:50:51.101369"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3301ebae-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "3303bff6-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 69"], ["email", "user.69@example.com"], ["password_digest", "$2a$04$P0dVH3Hlik5GNwZN9w8dYOR702cNmzOMQYS0fDGJrNx/9TkgbernG"], ["created_at", "2015-06-02 23:50:51.117055"], ["updated_at", "2015-06-02 23:50:51.117055"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.123403"], ["updated_at", "2015-06-02 23:50:51.123403"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '33073cf8-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "330849ae-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 70"], ["email", "user.70@example.com"], ["password_digest", "$2a$04$gFg6.Tj6hIHqd/nmECpwuemHw00ct0jraIlU/XzMWvG/9nqUs4bha"], ["created_at", "2015-06-02 23:50:51.138674"], ["updated_at", "2015-06-02 23:50:51.138674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.150344"], ["updated_at", "2015-06-02 23:50:51.150344"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '330aa302-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '330c7308-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "330aa302-0982-11e5-868a-a8667f0424ad"], ["organization_id", "330c7308-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:51.158850"], ["updated_at", "2015-06-02 23:50:51.158850"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '330aa302-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "330c7308-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 71"], ["email", "user.71@example.com"], ["password_digest", "$2a$04$gq9RjRj/ohq2ngREaQr2WudUzFKX2iyq/WwY..hRWrNJzkZK.i7QW"], ["created_at", "2015-06-02 23:50:51.174869"], ["updated_at", "2015-06-02 23:50:51.174869"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.191464"], ["updated_at", "2015-06-02 23:50:51.191464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33101c10-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33129760-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33101c10-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33129760-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:51.196962"], ["updated_at", "2015-06-02 23:50:51.196962"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33101c10-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33129760-0982-11e5-868a-a8667f0424ad"]]  (3.0ms) ROLLBACK  (1.6ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (1.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 72"], ["email", "user.72@example.com"], ["password_digest", "$2a$04$M.Az0XkzJrzConpjyFPNieGKDtmQisYwwju.v.zWH2wa0jgym.z0m"], ["created_at", "2015-06-02 23:50:51.223200"], ["updated_at", "2015-06-02 23:50:51.223200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.232810"], ["updated_at", "2015-06-02 23:50:51.232810"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3317bcd6-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3318e9da-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3317bcd6-0982-11e5-868a-a8667f0424ad"], ["organization_id", "3318e9da-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:51.238057"], ["updated_at", "2015-06-02 23:50:51.238057"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 73"], ["email", "user.73@example.com"], ["password_digest", "$2a$04$l0r5cOjVIynkif7npJj96.MCwWR0FvmgFgYXO8QqRwlAi9447kZjG"], ["created_at", "2015-06-02 23:50:51.249577"], ["updated_at", "2015-06-02 23:50:51.249577"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.258773"], ["updated_at", "2015-06-02 23:50:51.258773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '331ba95e-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '331ce350-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "331ba95e-0982-11e5-868a-a8667f0424ad"], ["organization_id", "331ce350-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:51.264879"], ["updated_at", "2015-06-02 23:50:51.264879"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '331ba95e-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "331ce350-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 74"], ["email", "user.74@example.com"], ["password_digest", "$2a$04$U1l0w/CLKnsa2e.1un80hO9NSRZqB8cO3TrZ1akyM1uz1P19xFrMC"], ["created_at", "2015-06-02 23:50:51.275463"], ["updated_at", "2015-06-02 23:50:51.275463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.280868"], ["updated_at", "2015-06-02 23:50:51.280868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '331f6878-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33204144-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "331f6878-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33204144-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:51.285133"], ["updated_at", "2015-06-02 23:50:51.285133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 75"], ["email", "user.75@example.com"], ["password_digest", "$2a$04$Gf1HjZQYmNGAlpM6ERuSpO3PLYqZkp8ZW7BBjgbQNVESvT0mtDIh6"], ["created_at", "2015-06-02 23:50:51.292839"], ["updated_at", "2015-06-02 23:50:51.292839"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33221208-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33204144-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33221208-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33204144-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.298135"], ["updated_at", "2015-06-02 23:50:51.298135"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '331f6878-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33204144-0982-11e5-868a-a8667f0424ad"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 76"], ["email", "user.76@example.com"], ["password_digest", "$2a$04$7d.il8VwbXAIpxDZrNBBtuDFf310qQRQ4P9TerehbAURQuNaISNgy"], ["created_at", "2015-06-02 23:50:51.316594"], ["updated_at", "2015-06-02 23:50:51.316594"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.328132"], ["updated_at", "2015-06-02 23:50:51.328132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33260af2-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3327a8d0-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33260af2-0982-11e5-868a-a8667f0424ad"], ["organization_id", "3327a8d0-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:51.334394"], ["updated_at", "2015-06-02 23:50:51.334394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 77"], ["email", "user.77@example.com"], ["password_digest", "$2a$04$QSYVgYUkfvYy2tMJpWxlTeVWTHHT0aUMyZ4XTU54CN.9kgkeXWpDS"], ["created_at", "2015-06-02 23:50:51.341633"], ["updated_at", "2015-06-02 23:50:51.341633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3329b88c-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3327a8d0-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3329b88c-0982-11e5-868a-a8667f0424ad"], ["organization_id", "3327a8d0-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.348196"], ["updated_at", "2015-06-02 23:50:51.348196"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33260af2-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "3327a8d0-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 78"], ["email", "user.78@example.com"], ["password_digest", "$2a$04$fxTPETnIr6aOD908g4Qq1O0rfeBUViZB.xKuj.5P1h1u9E6kySJcO"], ["created_at", "2015-06-02 23:50:51.361924"], ["updated_at", "2015-06-02 23:50:51.361924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.367005"], ["updated_at", "2015-06-02 23:50:51.367005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '332c98ae-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '332d6ea0-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "332c98ae-0982-11e5-868a-a8667f0424ad"], ["organization_id", "332d6ea0-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:51.371864"], ["updated_at", "2015-06-02 23:50:51.371864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 79"], ["email", "user.79@example.com"], ["password_digest", "$2a$04$TmWGkNCswM19.EDo7042yOhseSYkjS2lVDtdrWUejZlBspZ9p8WLy"], ["created_at", "2015-06-02 23:50:51.378431"], ["updated_at", "2015-06-02 23:50:51.378431"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '332f1b42-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '332d6ea0-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "332f1b42-0982-11e5-868a-a8667f0424ad"], ["organization_id", "332d6ea0-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.385009"], ["updated_at", "2015-06-02 23:50:51.385009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 80"], ["email", "user.80@example.com"], ["password_digest", "$2a$04$NKNuRqo7T2JslMJjlzO6Wu6lgYR1AqXPGlFutZLaCoPh99y4gPAe2"], ["created_at", "2015-06-02 23:50:51.394520"], ["updated_at", "2015-06-02 23:50:51.394520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.401330"], ["updated_at", "2015-06-02 23:50:51.401330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33319d2c-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3332be6e-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33319d2c-0982-11e5-868a-a8667f0424ad"], ["organization_id", "3332be6e-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:51.408774"], ["updated_at", "2015-06-02 23:50:51.408774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 81"], ["email", "user.81@example.com"], ["password_digest", "$2a$04$KlosTyon0UhiGRwPktKJYOvGRaFvB6DS.mBszpAPliPVcBy66O8Da"], ["created_at", "2015-06-02 23:50:51.417425"], ["updated_at", "2015-06-02 23:50:51.417425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3335154c-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3332be6e-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3335154c-0982-11e5-868a-a8667f0424ad"], ["organization_id", "3332be6e-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.422643"], ["updated_at", "2015-06-02 23:50:51.422643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33319d2c-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "3332be6e-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 82"], ["email", "user.82@example.com"], ["password_digest", "$2a$04$LT8f6dAk8x9bCsEEvfBazu4ReIaDgFHheOc0r.Ye23D9oaE76Iaci"], ["created_at", "2015-06-02 23:50:51.434119"], ["updated_at", "2015-06-02 23:50:51.434119"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.439729"], ["updated_at", "2015-06-02 23:50:51.439729"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3337a032-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3338755c-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3337a032-0982-11e5-868a-a8667f0424ad"], ["organization_id", "3338755c-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:51.443960"], ["updated_at", "2015-06-02 23:50:51.443960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3337a032-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "3338755c-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 83"], ["email", "user.83@example.com"], ["password_digest", "$2a$04$WXRJceT2ZDyfaQqk27rSgePS6BRFkpCSFa5Sx/5IMlnc6bHI21Sse"], ["created_at", "2015-06-02 23:50:51.455718"], ["updated_at", "2015-06-02 23:50:51.455718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 84"], ["email", "user.84@example.com"], ["password_digest", "$2a$04$/jObi238xRW3cwopj6sIDelA8VptM6KFcn6Y1LWeNqJ/U8H/fzCkS"], ["created_at", "2015-06-02 23:50:51.468555"], ["updated_at", "2015-06-02 23:50:51.468555"]]  (3.5ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (1.4ms) ROLLBACK  (4.3ms) BEGIN  (7.1ms) SAVEPOINT active_record_1 User Exists (8.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 85"], ["email", "user.85@example.com"], ["password_digest", "$2a$04$4NaKIRF/g.8AhIEa2tdsMu1avB8gQUVzArfGwOSrKW7OpRuDlTO/G"], ["created_at", "2015-06-02 23:50:51.512923"], ["updated_at", "2015-06-02 23:50:51.512923"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.6ms) ROLLBACK  (5.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 86"], ["email", "user.86@example.com"], ["password_digest", "$2a$04$Uos1NidXKD.kn.K68fBYGuV8G1pAfGwOQQuqPUvEde4WLrHVXst5W"], ["created_at", "2015-06-02 23:50:51.536157"], ["updated_at", "2015-06-02 23:50:51.536157"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 87"], ["email", "user.87@example.com"], ["password_digest", "$2a$04$GWZhh6M/tu90bFupXKKhF.14XgPGTZUqnwhGEPP5/7IMLuIChHZBK"], ["created_at", "2015-06-02 23:50:51.546907"], ["updated_at", "2015-06-02 23:50:51.546907"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 88"], ["email", "user.88@example.com"], ["password_digest", "$2a$04$OI230q0bXNKX/3xp4qLHI.P5qIRXujuD88pvfe7TiZ/lv52vSDh3y"], ["created_at", "2015-06-02 23:50:51.561942"], ["updated_at", "2015-06-02 23:50:51.561942"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 89"], ["email", "user.89@example.com"], ["password_digest", "$2a$04$P/OO6q..Pu5gdWlqtH/10.yEM0T93kOb.8qhzKdQzuP8bx1RfdSK6"], ["created_at", "2015-06-02 23:50:51.572134"], ["updated_at", "2015-06-02 23:50:51.572134"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 90"], ["email", "user.90@example.com"], ["password_digest", "$2a$04$w3yGat2he9ldm.Urv4P3Au3yPxujfLzpCW7slpNRK4aMiBQOvZfZS"], ["created_at", "2015-06-02 23:50:51.581785"], ["updated_at", "2015-06-02 23:50:51.581785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 91"], ["email", "user.91@example.com"], ["password_digest", "$2a$04$dsbdECs3Byac0WeDC5FRQeg.AaF1tZGrmTqTPK7JMXJSzLIEX0ZT."], ["created_at", "2015-06-02 23:50:51.593969"], ["updated_at", "2015-06-02 23:50:51.593969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 92"], ["email", "user.92@example.com"], ["password_digest", "$2a$04$KBZgzXd4y5qdGDSnrILtWO7.yu1ZOAHOcmf/FT5VoeasCMr3gfh8e"], ["created_at", "2015-06-02 23:50:51.605508"], ["updated_at", "2015-06-02 23:50:51.605508"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 93"], ["email", "user.93@example.com"], ["password_digest", "$2a$04$8DmSM0BonpTWxN6BiraZd.VOBFWS.ErgXfIil1ryvxZBhhGb0IovS"], ["created_at", "2015-06-02 23:50:51.619202"], ["updated_at", "2015-06-02 23:50:51.619202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 94"], ["email", "user.94@example.com"], ["password_digest", "$2a$04$JobG.9HrqyrEAJbtinq5DeJwI1XZnbLO8z28ROxqFMtkRwsCITJXq"], ["created_at", "2015-06-02 23:50:51.630651"], ["updated_at", "2015-06-02 23:50:51.630651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 95"], ["email", "user.95@example.com"], ["password_digest", "$2a$04$Jh3RbVdeDRnV0dSH/TWgS.AtnTsVqNDK811N/Qg34XXoo2a4s7ZnG"], ["created_at", "2015-06-02 23:50:51.639133"], ["updated_at", "2015-06-02 23:50:51.639133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 96"], ["email", "user.96@example.com"], ["password_digest", "$2a$04$VD1B4k79K0jEL5zJ3X/5g.1fqPmDiq2XuY/xmGi4mAMMq41EhYSaS"], ["created_at", "2015-06-02 23:50:51.649365"], ["updated_at", "2015-06-02 23:50:51.649365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 97"], ["email", "user.97@example.com"], ["password_digest", "$2a$04$czG7GG6t.v8L/3/rccfif.qWHrY5sHGnuIK2JlxqVoXv5qQPmNMjK"], ["created_at", "2015-06-02 23:50:51.664686"], ["updated_at", "2015-06-02 23:50:51.664686"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 98"], ["email", "user.98@example.com"], ["password_digest", "$2a$04$BDLr6oXJ49VNUsN0EIHyX.p9fb8OydIxntFfSVmNhvde/hSD4mEo6"], ["created_at", "2015-06-02 23:50:51.673785"], ["updated_at", "2015-06-02 23:50:51.673785"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 99"], ["email", "user.99@example.com"], ["password_digest", "$2a$04$Npe6bI1M1S/lVvwP1dheBOLcBzNdaISTC/ohmuGbP/NcEv4t6Dye6"], ["created_at", "2015-06-02 23:50:51.684882"], ["updated_at", "2015-06-02 23:50:51.684882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 100"], ["email", "user.100@example.com"], ["password_digest", "$2a$04$Of7UBz5DAk0Yg1GP03iXoue7vQ5onfDFavkQSVBGLt2.AMKgg0nsm"], ["created_at", "2015-06-02 23:50:51.698611"], ["updated_at", "2015-06-02 23:50:51.698611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "pollett_contexts" does not exist LINE 5: WHERE a.attrelid = '"pollett_contexts"'::regc... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"pollett_contexts"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 101"], ["email", "user.101@example.com"], ["password_digest", "$2a$04$12zRREjUfKRjR3/C5rxkSOBfvC.c/E8ejcRn/i6.2KWV84ENlwXPi"], ["created_at", "2015-06-02 23:50:51.708881"], ["updated_at", "2015-06-02 23:50:51.708881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.718380"], ["updated_at", "2015-06-02 23:50:51.718380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3361b5de-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3362fc3c-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3361b5de-0982-11e5-868a-a8667f0424ad"], ["organization_id", "3362fc3c-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.722162"], ["updated_at", "2015-06-02 23:50:51.722162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '3362fc3c-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "3362fc3c-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.729617"], ["updated_at", "2015-06-02 23:50:51.729617"], ["token", "Fa7lInxWfifuT7ZCXB8s4lHkQF6Q8cWQMOTQf3Jv6gU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3361b5de-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "3362fc3c-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 102"], ["email", "user.102@example.com"], ["password_digest", "$2a$04$GfGhf.81YA/thPpLJLyFEulFWoIrfe6Kil1yv8sSAwM6bhbFvZCVy"], ["created_at", "2015-06-02 23:50:51.742088"], ["updated_at", "2015-06-02 23:50:51.742088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.749564"], ["updated_at", "2015-06-02 23:50:51.749564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3366b70a-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3367cf50-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3366b70a-0982-11e5-868a-a8667f0424ad"], ["organization_id", "3367cf50-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.754599"], ["updated_at", "2015-06-02 23:50:51.754599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '3367cf50-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "3367cf50-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.761219"], ["updated_at", "2015-06-02 23:50:51.761219"], ["token", "1FA9S0SfdDG_7eHkBvzue94yRA2SN1mdbzVF2NMKFYE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3366b70a-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "3367cf50-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 103"], ["email", "user.103@example.com"], ["password_digest", "$2a$04$vhPU.k3S1SoTnlg6yaMJUea7xrRMm/suTzUyZLzxmgvm5ZU.RQG3S"], ["created_at", "2015-06-02 23:50:51.773551"], ["updated_at", "2015-06-02 23:50:51.773551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.782560"], ["updated_at", "2015-06-02 23:50:51.782560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '336b8e56-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '336cda04-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "336b8e56-0982-11e5-868a-a8667f0424ad"], ["organization_id", "336cda04-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.787142"], ["updated_at", "2015-06-02 23:50:51.787142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '336cda04-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "336cda04-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.793811"], ["updated_at", "2015-06-02 23:50:51.793811"], ["token", "q1bhdq02sKibzljx6jHeUAyTFjoUwbtfc1xmM031OFo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '336b8e56-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "336cda04-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 104"], ["email", "user.104@example.com"], ["password_digest", "$2a$04$sLaxn0MSnkkPGsLX3cNaQ.UpL3CSTOQuvuJWKAGBslF9TZXepM31q"], ["created_at", "2015-06-02 23:50:51.806125"], ["updated_at", "2015-06-02 23:50:51.806125"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.812807"], ["updated_at", "2015-06-02 23:50:51.812807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33705f4e-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '337166c8-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33705f4e-0982-11e5-868a-a8667f0424ad"], ["organization_id", "337166c8-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.817417"], ["updated_at", "2015-06-02 23:50:51.817417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '337166c8-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "337166c8-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.824086"], ["updated_at", "2015-06-02 23:50:51.824086"], ["token", "8yZayVvbUBU7hnvENpqls3NYji71I7zpKDbx6HJNQwk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33705f4e-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "337166c8-0982-11e5-868a-a8667f0424ad"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 105"], ["email", "user.105@example.com"], ["password_digest", "$2a$04$fdZ5ruCVrwRy7mvi/bzgw.9oHYs2Dz8TpWZLuIjx1CuuwMdcmGQ2S"], ["created_at", "2015-06-02 23:50:51.838312"], ["updated_at", "2015-06-02 23:50:51.838312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.845721"], ["updated_at", "2015-06-02 23:50:51.845721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '337549f0-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33766df8-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "337549f0-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33766df8-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.850133"], ["updated_at", "2015-06-02 23:50:51.850133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '337549f0-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33766df8-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 106"], ["email", "user.106@example.com"], ["password_digest", "$2a$04$n/o7KBvGcux/o7/ZJjfHQe863KnQeAikkI4bXmadh3yb1TPU2pv1G"], ["created_at", "2015-06-02 23:50:51.862730"], ["updated_at", "2015-06-02 23:50:51.862730"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.869208"], ["updated_at", "2015-06-02 23:50:51.869208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '337a051c-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "337a051c-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.876161"], ["updated_at", "2015-06-02 23:50:51.876161"], ["token", "CH6pM2RSACh_E81LI2N0PnVIgK_6s6j42t6_AGI_7RE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '337918c8-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "337a051c-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 107"], ["email", "user.107@example.com"], ["password_digest", "$2a$04$VmpMCkNUBHaGxYxE9gX4CeYiSZ/nR.kqGf/bSFkNUEqJtQBj1qpZi"], ["created_at", "2015-06-02 23:50:51.888932"], ["updated_at", "2015-06-02 23:50:51.888932"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.896027"], ["updated_at", "2015-06-02 23:50:51.896027"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '337e1814-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "337e1814-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.903477"], ["updated_at", "2015-06-02 23:50:51.903477"], ["token", "t0kv8WD-enEucpm_IGGM4q3speuBRd9c84sZFONr8Yg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '337d021c-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "337e1814-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 108"], ["email", "user.108@example.com"], ["password_digest", "$2a$04$JdQNMdD6enELz5rSBWX2ge/yjI3y0DYtvzasFwHYbvQki2td5v.Va"], ["created_at", "2015-06-02 23:50:51.915904"], ["updated_at", "2015-06-02 23:50:51.915904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.924156"], ["updated_at", "2015-06-02 23:50:51.924156"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '33827f1c-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "33827f1c-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.934741"], ["updated_at", "2015-06-02 23:50:51.934741"], ["token", "45q39VJ5J_ZxikaLQX2CuZYNE-q81JAcV9z45A9Usfk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33816d02-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33827f1c-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 109"], ["email", "user.109@example.com"], ["password_digest", "$2a$04$qnWj9pth7bobqjYWV28sCOBQRPUSAdFoMC2mV86nDRL1hU28ndqE."], ["created_at", "2015-06-02 23:50:51.946564"], ["updated_at", "2015-06-02 23:50:51.946564"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.955024"], ["updated_at", "2015-06-02 23:50:51.955024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '33872a62-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "33872a62-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:51.962292"], ["updated_at", "2015-06-02 23:50:51.962292"], ["token", "Fkb9Lt_2K6DnL_YoJAxyYu-7T9YqqPhYteJnJCRP4mA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3385d680-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33872a62-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 110"], ["email", "user.110@example.com"], ["password_digest", "$2a$04$NZZ3ZrCugKpqFllXLW6bHu9JxTCyaE/0p/mVMGv.K0Og9jpk8rPhi"], ["created_at", "2015-06-02 23:50:51.976476"], ["updated_at", "2015-06-02 23:50:51.976476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:51.982517"], ["updated_at", "2015-06-02 23:50:51.982517"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '338a6cae-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "338b5060-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 111"], ["email", "user.111@example.com"], ["password_digest", "$2a$04$S5Eyk22bYjezzoGu0SNYz.6t9VLhVNtTaGxijSq8G2Isu.e.lXXaO"], ["created_at", "2015-06-02 23:50:51.997276"], ["updated_at", "2015-06-02 23:50:51.997276"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.005269"], ["updated_at", "2015-06-02 23:50:52.005269"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '338d89e8-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '338eeba8-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "338d89e8-0982-11e5-868a-a8667f0424ad"], ["organization_id", "338eeba8-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:52.012838"], ["updated_at", "2015-06-02 23:50:52.012838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '338eeba8-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "338eeba8-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.018003"], ["updated_at", "2015-06-02 23:50:52.018003"], ["token", "BI43ylJBe8eRfgSDguk6bHQ0EIWNlaPDb-0d6boLHFc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '338d89e8-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "338eeba8-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 112"], ["email", "user.112@example.com"], ["password_digest", "$2a$04$M/dmtUCkRApjMqE5fX9Gx.jeKyPx06iesq3ojD0Ev8nyQG6DQYEGa"], ["created_at", "2015-06-02 23:50:52.028985"], ["updated_at", "2015-06-02 23:50:52.028985"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.066499"], ["updated_at", "2015-06-02 23:50:52.066499"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33925e5a-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3398f45e-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33925e5a-0982-11e5-868a-a8667f0424ad"], ["organization_id", "3398f45e-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:52.082952"], ["updated_at", "2015-06-02 23:50:52.082952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '3398f45e-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "3398f45e-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.117987"], ["updated_at", "2015-06-02 23:50:52.117987"], ["token", "1wsRwU89tJ1kpu4J4Ey9AFiW8cB0X02QZfYz8PKY5fg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33925e5a-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "3398f45e-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 113"], ["email", "user.113@example.com"], ["password_digest", "$2a$04$zU/hocXmK5zn3Xyl6.jP6.BXWCjpUtG5H5Iytquya.DxzkhXtjjfK"], ["created_at", "2015-06-02 23:50:52.133179"], ["updated_at", "2015-06-02 23:50:52.133179"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.151144"], ["updated_at", "2015-06-02 23:50:52.151144"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33a25d46-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33a52b02-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33a25d46-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33a52b02-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:52.162257"], ["updated_at", "2015-06-02 23:50:52.162257"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '33a52b02-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "33a52b02-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.179953"], ["updated_at", "2015-06-02 23:50:52.179953"], ["token", "XCtBMJAhQ6gepuDQPrsAehuXQHswCE1KYrnaFOljInw"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33a25d46-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33a52b02-0982-11e5-868a-a8667f0424ad"]]  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 114"], ["email", "user.114@example.com"], ["password_digest", "$2a$04$WwArpbAYZvkla.z/axgf..lJ4uaNAMODjXAGc7B4eufyvTFEDX.Rm"], ["created_at", "2015-06-02 23:50:52.201441"], ["updated_at", "2015-06-02 23:50:52.201441"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.209603"], ["updated_at", "2015-06-02 23:50:52.209603"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33acc18c-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33ae2266-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33acc18c-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33ae2266-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:52.232223"], ["updated_at", "2015-06-02 23:50:52.232223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '33ae2266-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (17.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "33ae2266-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.345513"], ["updated_at", "2015-06-02 23:50:52.345513"], ["token", "QW2B20BdOeLL0TR8tRtB6Go6v8X60Vkite9t8n64xWM"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33acc18c-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33ae2266-0982-11e5-868a-a8667f0424ad"]]  (0.3ms) ROLLBACK  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 115"], ["email", "user.115@example.com"], ["password_digest", "$2a$04$GOpwu5zMLHjsndzTi2UJyO.hirxXqYwp97wo5xPderMo9DLDlRJJm"], ["created_at", "2015-06-02 23:50:52.413606"], ["updated_at", "2015-06-02 23:50:52.413606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.420702"], ["updated_at", "2015-06-02 23:50:52.420702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33cd2ba2-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33ce3d4e-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33cd2ba2-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33ce3d4e-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:52.426187"], ["updated_at", "2015-06-02 23:50:52.426187"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33cd2ba2-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33ce3d4e-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 116"], ["email", "user.116@example.com"], ["password_digest", "$2a$04$bGM3RAByP/HjGuuH82aUnOZ5w0bGMLqgLpNY0lj9Ki5rhtrxpes.y"], ["created_at", "2015-06-02 23:50:52.442814"], ["updated_at", "2015-06-02 23:50:52.442814"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.450551"], ["updated_at", "2015-06-02 23:50:52.450551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33d193fe-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33d2b8b0-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33d193fe-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33d2b8b0-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:52.454620"], ["updated_at", "2015-06-02 23:50:52.454620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 117"], ["email", "user.117@example.com"], ["password_digest", "$2a$04$bLV2TZQ9GzGpak7e0E1C..DjbEGdx5ywXY1W4f4.rYqLpvuZYwl/."], ["created_at", "2015-06-02 23:50:52.462327"], ["updated_at", "2015-06-02 23:50:52.462327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.467222"], ["updated_at", "2015-06-02 23:50:52.467222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33d48898-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33d54062-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33d48898-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33d54062-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:52.471259"], ["updated_at", "2015-06-02 23:50:52.471259"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33d48898-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33d54062-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 118"], ["email", "user.118@example.com"], ["password_digest", "$2a$04$FVNRhut2fq1z64LSceKxFuvH1EEdVn2L29yNYW5JJOY.jO34.2K9K"], ["created_at", "2015-06-02 23:50:52.503524"], ["updated_at", "2015-06-02 23:50:52.503524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.509126"], ["updated_at", "2015-06-02 23:50:52.509126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33dad126-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33dbace0-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33dad126-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33dbace0-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:52.514326"], ["updated_at", "2015-06-02 23:50:52.514326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '33dad126-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33dbace0-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 119"], ["email", "user.119@example.com"], ["password_digest", "$2a$04$Js0G5NjfFe5l/QnmbDL.tOsSb1JsY.IV3Vm1TXhJxsOp9.xz4jzOO"], ["created_at", "2015-06-02 23:50:52.525729"], ["updated_at", "2015-06-02 23:50:52.525729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.530618"], ["updated_at", "2015-06-02 23:50:52.530618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33de2f6a-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33dee4dc-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33de2f6a-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33dee4dc-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:52.534288"], ["updated_at", "2015-06-02 23:50:52.534288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 120"], ["email", "user.120@example.com"], ["password_digest", "$2a$04$Azv0A9KNxBo1WidMrYHk8uf/jv8CB4iB7NMkNAqLugrZLRnS/bVcC"], ["created_at", "2015-06-02 23:50:52.541884"], ["updated_at", "2015-06-02 23:50:52.541884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.545835"], ["updated_at", "2015-06-02 23:50:52.545835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33e09eee-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33e13642-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "33e09eee-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33e13642-0982-11e5-868a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:50:52.548837"], ["updated_at", "2015-06-02 23:50:52.548837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33e09eee-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33e13642-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 121"], ["email", "user.121@example.com"], ["password_digest", "$2a$04$a5ms2z9yZKs3XFlv.3eEOO9I5A6nwOPy17Piy6x9gcS9YucPnbBtG"], ["created_at", "2015-06-02 23:50:52.558395"], ["updated_at", "2015-06-02 23:50:52.558395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.562564"], ["updated_at", "2015-06-02 23:50:52.562564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33e32416-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33e3c47a-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33e32416-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33e3c47a-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.565733"], ["updated_at", "2015-06-02 23:50:52.565733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 122"], ["email", "user.122@example.com"], ["password_digest", "$2a$04$FsA3giQBgckTk45w5ix.RuMhlIQPTHg5lGxc9fOtey/.VQbe2nG7a"], ["created_at", "2015-06-02 23:50:52.575744"], ["updated_at", "2015-06-02 23:50:52.575744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.579884"], ["updated_at", "2015-06-02 23:50:52.579884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33e5ccde-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33e668f6-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33e5ccde-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33e668f6-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.583231"], ["updated_at", "2015-06-02 23:50:52.583231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33e5ccde-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33e668f6-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 123"], ["email", "user.123@example.com"], ["password_digest", "$2a$04$yx8MpIPswVAgq2EQfg5aUebp64n51htkB3ldPsOmQYL/zPdyr42w."], ["created_at", "2015-06-02 23:50:52.593545"], ["updated_at", "2015-06-02 23:50:52.593545"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.599694"], ["updated_at", "2015-06-02 23:50:52.599694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33e88d8e-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33e97294-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33e88d8e-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33e97294-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.603296"], ["updated_at", "2015-06-02 23:50:52.603296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '33e88d8e-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33e97294-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 124"], ["email", "user.124@example.com"], ["password_digest", "$2a$04$gBO9vETgEEp.5PWZ4Wsp4OaNg0EM4jp5MRNmfoNdqZJhC/QEdbaO6"], ["created_at", "2015-06-02 23:50:52.612090"], ["updated_at", "2015-06-02 23:50:52.612090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.616539"], ["updated_at", "2015-06-02 23:50:52.616539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33eb551e-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33ec00fe-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33eb551e-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33ec00fe-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.620522"], ["updated_at", "2015-06-02 23:50:52.620522"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 125"], ["email", "user.125@example.com"], ["password_digest", "$2a$04$osj11e4CsL.F0sekoNOj5.5X/nDD2JXe9N7HPo5co2qtSKE8kJ1Jm"], ["created_at", "2015-06-02 23:50:52.629808"], ["updated_at", "2015-06-02 23:50:52.629808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.634329"], ["updated_at", "2015-06-02 23:50:52.634329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '33ee0f16-0982-11e5-868a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '33eeb9f2-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "33ee0f16-0982-11e5-868a-a8667f0424ad"], ["organization_id", "33eeb9f2-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.637486"], ["updated_at", "2015-06-02 23:50:52.637486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33ee0f16-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33eeb9f2-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 126"], ["email", "user.126@example.com"], ["password_digest", "$2a$04$VY6W9FLhfUgUubTOHdXxhe/OI9wBvk2S0VlWMp/8kGdns6cPHPuHq"], ["created_at", "2015-06-02 23:50:52.648213"], ["updated_at", "2015-06-02 23:50:52.648213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 127"], ["email", "user.127@example.com"], ["password_digest", "$2a$04$gGGS8iWx.fN0fVNHW1sTROVXUcwmvtb6IFVaNnpcvigKeQjei170i"], ["created_at", "2015-06-02 23:50:52.662228"], ["updated_at", "2015-06-02 23:50:52.662228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.666718"], ["updated_at", "2015-06-02 23:50:52.666718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 128"], ["email", "user.128@example.com"], ["password_digest", "$2a$04$2htEGcxyEe1oLUiF2VCyEesg/XDoO1G4EYwqLqXbLGz5Yv1rtDhHO"], ["created_at", "2015-06-02 23:50:52.676754"], ["updated_at", "2015-06-02 23:50:52.676754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.693908"], ["updated_at", "2015-06-02 23:50:52.693908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33f538ea-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33f7de60-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 129"], ["email", "user.129@example.com"], ["password_digest", "$2a$04$c6i5VgTNHGvTw1bq77jqw.b5CEx1FBu3CwZNHqzzIyHhfxyrbJcZ6"], ["created_at", "2015-06-02 23:50:52.704982"], ["updated_at", "2015-06-02 23:50:52.704982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.710748"], ["updated_at", "2015-06-02 23:50:52.710748"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '33f99174-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33fa7e5e-0982-11e5-868a-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 130"], ["email", "user.130@example.com"], ["password_digest", "$2a$04$VbN2QMihJ18W81vshFsoUe1cNjW5P7Yh8J8lQ.L8jMskWM25eFJyy"], ["created_at", "2015-06-02 23:50:52.723589"], ["updated_at", "2015-06-02 23:50:52.723589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.729495"], ["updated_at", "2015-06-02 23:50:52.729495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 131"], ["email", "user.131@example.com"], ["password_digest", "$2a$04$8GpFjjT8Q1WybNb3Qigoze2x052myaScsXDVrdhlwZStlIYxQoU2i"], ["created_at", "2015-06-02 23:50:52.738224"], ["updated_at", "2015-06-02 23:50:52.738224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.743732"], ["updated_at", "2015-06-02 23:50:52.743732"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '33fe95a2-0982-11e5-868a-a8667f0424ad' LIMIT 1 [["organization_id", "33ff871e-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.925459"], ["updated_at", "2015-06-02 23:50:52.925459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '341b3252-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "341b3252-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.930289"], ["updated_at", "2015-06-02 23:50:52.930289"], ["token", "c4mXxO_tlPzZpWwCAUEcSwnblgv2gCWSPk9Rc0kYssw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.8ms) Clubhouse::Mailer#invitation: processed outbound mail in 36.6ms Sent mail to john@example.com (7.8ms) Date: Tue, 02 Jun 2015 16:50:52 -0700 From: from@example.com To: john@example.com Message-ID: <556e415cee2cc_de853fc9104602085556e@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/c4mXxO_tlPzZpWwCAUEcSwnblgv2gCWSPk9Rc0kYssw?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:52.984671"], ["updated_at", "2015-06-02 23:50:52.984671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '342430d2-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "342430d2-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:52.988950"], ["updated_at", "2015-06-02 23:50:52.988950"], ["token", "kzW8RfpMoXJnVfIAHhEP4dlRloR79lI_e4RtIBhIpsw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.5ms Sent mail to john@example.com (1.6ms) Date: Tue, 02 Jun 2015 16:50:52 -0700 From: from@example.com To: john@example.com Message-ID: <556e415cf2904_de853fc910460208556e7@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/kzW8RfpMoXJnVfIAHhEP4dlRloR79lI_e4RtIBhIpsw?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:53.002484"], ["updated_at", "2015-06-02 23:50:53.002484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '3426f362-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "3426f362-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:53.008293"], ["updated_at", "2015-06-02 23:50:53.008293"], ["token", "s3hneWwMgiQABnU2bqmEfzCCRB4i3Oayqkm9t-OYMW8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.6ms) Date: Tue, 02 Jun 2015 16:50:53 -0700 From: from@example.com To: john@example.com Message-ID: <556e415d30b9_de853fc91046020855740@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/s3hneWwMgiQABnU2bqmEfzCCRB4i3Oayqkm9t-OYMW8?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:53.019831"], ["updated_at", "2015-06-02 23:50:53.019831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '34299392-0982-11e5-868a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "34299392-0982-11e5-868a-a8667f0424ad"], ["created_at", "2015-06-02 23:50:53.025064"], ["updated_at", "2015-06-02 23:50:53.025064"], ["token", "LGlt78xp0mgYRgqZ_kmim8qiGdjuK_JD4wZc5XeamSM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.6ms) Date: Tue, 02 Jun 2015 16:50:53 -0700 From: from@example.com To: john@example.com Message-ID: <556e415d70c5_de853fc910460208558ca@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/LGlt78xp0mgYRgqZ_kmim8qiGdjuK_JD4wZc5XeamSM?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:53.034873"], ["updated_at", "2015-06-02 23:50:53.034873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:53.040279"], ["updated_at", "2015-06-02 23:50:53.040279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:53.045934"], ["updated_at", "2015-06-02 23:50:53.045934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:53.108199"], ["updated_at", "2015-06-02 23:50:53.108199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "34370b8a-0982-11e5-868a-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:50:53.115018"], ["updated_at", "2015-06-02 23:50:53.115018"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (2.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$Mha/eCwwj60byEN77XNK3eNMBM08Nws.RDHAJT8pKFQ2LddbCYB0e"], ["created_at", "2015-06-02 23:52:10.918110"], ["updated_at", "2015-06-02 23:52:10.918110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:10.936818"], ["user_id", "6298324c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:10.946355"], ["updated_at", "2015-06-02 23:52:10.946355"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:10.961310"], ["updated_at", "2015-06-02 23:52:10.961310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6298324c-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '629eb4a0-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6298324c-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "629eb4a0-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:10.975671"], ["updated_at", "2015-06-02 23:52:10.975671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:52:10 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$NWaiacoMeytKwLCzaaHYQ.0x6rvEJ2Ezg0GoVmSJet4MXJ4VvrFYy"], ["created_at", "2015-06-02 23:52:11.023589"], ["updated_at", "2015-06-02 23:52:11.023589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.027030"], ["user_id", "62a8193c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.028452"], ["updated_at", "2015-06-02 23:52:11.028452"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.035928"], ["updated_at", "2015-06-02 23:52:11.035928"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62a8193c-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62a9e42e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62a8193c-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62a9e42e-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.040814"], ["updated_at", "2015-06-02 23:52:11.040814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/62a9e42e-0982-11e5-83ca-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"62a9e42e-0982-11e5-83ca-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.044523') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b47ccefe-a0f4-4add-a889-42a9151503c9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.056334"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.057522"], ["id", "b47ccefe-a0f4-4add-a889-42a9151503c9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "62a9e42e-0982-11e5-83ca-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62a8193c-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '62a8193c-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "62a9e42e-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '62a9e42e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:52:11.088222"], ["id", "62a9e42e-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 55ms (Views: 8.7ms | ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$Pih/ZHuTA/fDgs.r3VCVy.2Md54qbj8fClJt19o4MVwaC1vbfWv0m"], ["created_at", "2015-06-02 23:52:11.107911"], ["updated_at", "2015-06-02 23:52:11.107911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.109716"], ["user_id", "62b4d96a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.110650"], ["updated_at", "2015-06-02 23:52:11.110650"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.115193"], ["updated_at", "2015-06-02 23:52:11.115193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62b4d96a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62b5f3fe-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62b4d96a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62b5f3fe-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.118537"], ["updated_at", "2015-06-02 23:52:11.118537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/62b5f3fe-0982-11e5-83ca-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"62b5f3fe-0982-11e5-83ca-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.123853') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "223404f4-e8a7-4605-b02a-6550dbc30ce0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.125552"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.126325"], ["id", "223404f4-e8a7-4605-b02a-6550dbc30ce0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "62b5f3fe-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62b4d96a-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '62b4d96a-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "62b5f3fe-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '62b5f3fe-0982-11e5-83ca-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 30ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$0IJifq7dBcz7ocomb3vlh.0mnWyw.VmCjaED8OwRtu3kQbJFwvg7G"], ["created_at", "2015-06-02 23:52:11.170547"], ["updated_at", "2015-06-02 23:52:11.170547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.172187"], ["user_id", "62be6660-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.172768"], ["updated_at", "2015-06-02 23:52:11.172768"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.176974"], ["updated_at", "2015-06-02 23:52:11.176974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62be6660-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62bf5d54-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62be6660-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62bf5d54-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.180455"], ["updated_at", "2015-06-02 23:52:11.180455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$pdDUTpmMWrWjPw/drAUI9OuPGnQc2.6mWL2gcnS//7wJQINOow3MC"], ["created_at", "2015-06-02 23:52:11.189819"], ["updated_at", "2015-06-02 23:52:11.189819"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.192428"], ["user_id", "62c17026-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.193127"], ["updated_at", "2015-06-02 23:52:11.193127"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.199718"], ["updated_at", "2015-06-02 23:52:11.199718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62c17026-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62c2dba0-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62c17026-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62c2dba0-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.202932"], ["updated_at", "2015-06-02 23:52:11.202932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/62c2dba0-0982-11e5-83ca-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"62c2dba0-0982-11e5-83ca-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.205641') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ac6c74e2-4654-449b-88fa-3de6d022a834"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.206949"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.207624"], ["id", "ac6c74e2-4654-449b-88fa-3de6d022a834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "62c2dba0-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62c17026-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '62c17026-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "62c2dba0-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "62c2dba0-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$p91GMXZwV.aI3bilK9Y6/ulks.FhjbE4oOetaBg14aJO3yZqRCcr2"], ["created_at", "2015-06-02 23:52:11.220227"], ["updated_at", "2015-06-02 23:52:11.220227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.221830"], ["user_id", "62c5fa6a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.222419"], ["updated_at", "2015-06-02 23:52:11.222419"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.226468"], ["updated_at", "2015-06-02 23:52:11.226468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62c5fa6a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62c6ecae-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62c5fa6a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62c6ecae-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.229403"], ["updated_at", "2015-06-02 23:52:11.229403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$nKV1NfthxWki51pAJdEL4.zxNrhQOkfCPXDuHnZAoQtNWdNsyLDJW"], ["created_at", "2015-06-02 23:52:11.238367"], ["updated_at", "2015-06-02 23:52:11.238367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.240223"], ["user_id", "62c8c6fa-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.240851"], ["updated_at", "2015-06-02 23:52:11.240851"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.245818"], ["updated_at", "2015-06-02 23:52:11.245818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62c8c6fa-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62c9e45e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62c8c6fa-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62c9e45e-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.249249"], ["updated_at", "2015-06-02 23:52:11.249249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-7" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.254501') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cabd5bc7-e9e3-401d-bd17-ec806e55bf9e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.256458"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.257255"], ["id", "cabd5bc7-e9e3-401d-bd17-ec806e55bf9e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-7"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62c8c6fa-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '62c8c6fa-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "62c9e45e-0982-11e5-83ca-a8667f0424ad"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "62c9e45e-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$AYG3BQNABEaVUisAqgJJcebFm2lilpe2hX.0O9.YUpLAiREH6mwTq"], ["created_at", "2015-06-02 23:52:11.274130"], ["updated_at", "2015-06-02 23:52:11.274130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.275913"], ["user_id", "62ce37de-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.276616"], ["updated_at", "2015-06-02 23:52:11.276616"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.280754"], ["updated_at", "2015-06-02 23:52:11.280754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62ce37de-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62cf358a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62ce37de-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62cf358a-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.284531"], ["updated_at", "2015-06-02 23:52:11.284531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$eeXt5SzdcPV0NnokVcKdbO776WrVJDTCvm9Iw2dwBU4JTbd9WVYKS"], ["created_at", "2015-06-02 23:52:11.297603"], ["updated_at", "2015-06-02 23:52:11.297603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.300371"], ["user_id", "62d1d5e2-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.301664"], ["updated_at", "2015-06-02 23:52:11.301664"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.309000"], ["updated_at", "2015-06-02 23:52:11.309000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62d1d5e2-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62d38acc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62d1d5e2-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62d38acc-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.313060"], ["updated_at", "2015-06-02 23:52:11.313060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.317978') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "70010845-590d-43d1-ad01-3729389bece1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.319879"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.320814"], ["id", "70010845-590d-43d1-ad01-3729389bece1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-9"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62d1d5e2-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '62d1d5e2-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "62d38acc-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '62d38acc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:52:11.329305"], ["id", "62d38acc-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$jxRzmJ.DI0gSaPATJcp4P.EwCsO.UL7P/v4eRE5/gzaL3DJROHko6"], ["created_at", "2015-06-02 23:52:11.339593"], ["updated_at", "2015-06-02 23:52:11.339593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.341682"], ["user_id", "62d837a2-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.342253"], ["updated_at", "2015-06-02 23:52:11.342253"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.346303"], ["updated_at", "2015-06-02 23:52:11.346303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62d837a2-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62d934e0-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62d837a2-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62d934e0-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.349780"], ["updated_at", "2015-06-02 23:52:11.349780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.352914') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "92edb4fd-8b63-47a9-a1ea-1ad624871d50"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.354416"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.355213"], ["id", "92edb4fd-8b63-47a9-a1ea-1ad624871d50"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62d837a2-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '62d837a2-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "62d934e0-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '62d934e0-0982-11e5-83ca-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms (ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$D2JuYP3ixBXGRcV0UmUmZe3flc36BXKF4mssnDCYeMgloj1uKuu3K"], ["created_at", "2015-06-02 23:52:11.371777"], ["updated_at", "2015-06-02 23:52:11.371777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.373729"], ["user_id", "62dd2686-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.374367"], ["updated_at", "2015-06-02 23:52:11.374367"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.379754"], ["updated_at", "2015-06-02 23:52:11.379754"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62dd2686-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62de829c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62dd2686-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62de829c-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.384845"], ["updated_at", "2015-06-02 23:52:11.384845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:52:11 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$XXfxeoRsFVBife9U09t4vumjoL0VJGqC6W1C9yHXnPAKtSVgdQqLa"], ["created_at", "2015-06-02 23:52:11.393207"], ["updated_at", "2015-06-02 23:52:11.393207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.395018"], ["user_id", "62e060ee-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.395719"], ["updated_at", "2015-06-02 23:52:11.395719"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.400996"], ["updated_at", "2015-06-02 23:52:11.400996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62e060ee-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62e18c44-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62e060ee-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62e18c44-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.404447"], ["updated_at", "2015-06-02 23:52:11.404447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-12" for 127.0.0.1 at 2015-06-02 16:52:11 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$gjtnSmBzRlVQ6R5JiuKcPeVGa2etkguJsYEXtozKFkPGJbmV5UIsG"], ["created_at", "2015-06-02 23:52:11.412210"], ["updated_at", "2015-06-02 23:52:11.412210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.414065"], ["user_id", "62e34692-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.414765"], ["updated_at", "2015-06-02 23:52:11.414765"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.418828"], ["updated_at", "2015-06-02 23:52:11.418828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62e34692-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62e444ca-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62e34692-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62e444ca-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.422336"], ["updated_at", "2015-06-02 23:52:11.422336"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:52:11 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$pA9/WtAnp86tqAwnvZC4uu90FdBHnymQ09m4RQW0cdjK94NwDG3g."], ["created_at", "2015-06-02 23:52:11.435307"], ["updated_at", "2015-06-02 23:52:11.435307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.437024"], ["user_id", "62e6ce8e-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.437608"], ["updated_at", "2015-06-02 23:52:11.437608"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.441891"], ["updated_at", "2015-06-02 23:52:11.441891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62e6ce8e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62e7cb7c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62e6ce8e-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62e7cb7c-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.445273"], ["updated_at", "2015-06-02 23:52:11.445273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$Gk7KStLxKwnTFyHAZRaKO.ad1JE73y7sHt5oQWc.0SfiySQo/2tYS"], ["created_at", "2015-06-02 23:52:11.457405"], ["updated_at", "2015-06-02 23:52:11.457405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.459778"], ["user_id", "62ea35d8-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.460441"], ["updated_at", "2015-06-02 23:52:11.460441"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.465501"], ["updated_at", "2015-06-02 23:52:11.465501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62ea35d8-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62eb6d68-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62ea35d8-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62eb6d68-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.469915"], ["updated_at", "2015-06-02 23:52:11.469915"]]  (1.7ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/62eb6d68-0982-11e5-83ca-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"62eb6d68-0982-11e5-83ca-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.8ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.476828') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "227c313b-202a-464b-ab27-126a4c63dc9b"]]  (1.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.480548"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.483190"], ["id", "227c313b-202a-464b-ab27-126a4c63dc9b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "62eb6d68-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62ea35d8-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '62ea35d8-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "62eb6d68-0982-11e5-83ca-a8667f0424ad"]] Completed 200 OK in 16ms (Views: 0.7ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$asWJWpLj/BZZOd9OoseUv.wcxQvgKMTlcLqSd23txGZgUymHHudf."], ["created_at", "2015-06-02 23:52:11.499979"], ["updated_at", "2015-06-02 23:52:11.499979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.501903"], ["user_id", "62f0adfa-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.502582"], ["updated_at", "2015-06-02 23:52:11.502582"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.507100"], ["updated_at", "2015-06-02 23:52:11.507100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62f0adfa-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62f1c000-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62f0adfa-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62f1c000-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.510427"], ["updated_at", "2015-06-02 23:52:11.510427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$yRawXvI3mJOh4sUZirk9yuB4Fftlu1SSVqOxFwbFboWLOvgZFPAbe"], ["created_at", "2015-06-02 23:52:11.516998"], ["updated_at", "2015-06-02 23:52:11.516998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.521400"], ["updated_at", "2015-06-02 23:52:11.521400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62f3483a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62f3ee7a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "62f3483a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62f3ee7a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.525102"], ["updated_at", "2015-06-02 23:52:11.525102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$L3vgjr2ykUtfz0G8p4XJEun8bYSQywBvohzCuIa.st6/rBMAz8niG"], ["created_at", "2015-06-02 23:52:11.536167"], ["updated_at", "2015-06-02 23:52:11.536167"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.538709"], ["user_id", "62f63374-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.539557"], ["updated_at", "2015-06-02 23:52:11.539557"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.544543"], ["updated_at", "2015-06-02 23:52:11.544543"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62f63374-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62f776b2-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62f63374-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62f776b2-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.550891"], ["updated_at", "2015-06-02 23:52:11.550891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$FIVay289fSVGuQSnTpnvUe9nr2pRlWzRUDLOmVk0P6QB7YTMdLYF6"], ["created_at", "2015-06-02 23:52:11.558049"], ["updated_at", "2015-06-02 23:52:11.558049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.562391"], ["updated_at", "2015-06-02 23:52:11.562391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62f98b0a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '62fa3780-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "62f98b0a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "62fa3780-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.566208"], ["updated_at", "2015-06-02 23:52:11.566208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.569449') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3b1beba2-2c85-4d51-8ffc-010569f0fba4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.570814"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.571565"], ["id", "3b1beba2-2c85-4d51-8ffc-010569f0fba4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62f63374-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "62f63374-0982-11e5-83ca-a8667f0424ad"]] Completed 200 OK in 16ms (Views: 3.0ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$uUb9TOq0d1IBBacAtUttsu2iLA4bQZsBYgU9XshCRS83.kVgY1syq"], ["created_at", "2015-06-02 23:52:11.593212"], ["updated_at", "2015-06-02 23:52:11.593212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.595491"], ["user_id", "62fee7d0-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.596578"], ["updated_at", "2015-06-02 23:52:11.596578"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.603334"], ["updated_at", "2015-06-02 23:52:11.603334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62fee7d0-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63006cd6-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "62fee7d0-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63006cd6-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.606459"], ["updated_at", "2015-06-02 23:52:11.606459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$psIehCcAwy6OhUd8s0eAteW/qoYT2MX5v08UsPNBSOOUNwrmgJbMa"], ["created_at", "2015-06-02 23:52:11.617296"], ["updated_at", "2015-06-02 23:52:11.617296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.619457"], ["user_id", "63029948-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.620153"], ["updated_at", "2015-06-02 23:52:11.620153"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.624472"], ["updated_at", "2015-06-02 23:52:11.624472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63029948-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6303a554-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63029948-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6303a554-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.627311"], ["updated_at", "2015-06-02 23:52:11.627311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.630000') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5e802fb4-494d-4a83-a0f8-0cff89e3c866"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.631852"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.632895"], ["id", "5e802fb4-494d-4a83-a0f8-0cff89e3c866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63029948-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.642549"], ["updated_at", "2015-06-02 23:52:11.642549"]] Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63029948-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6306803a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63029948-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["organization_id", "6306803a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.648644"], ["updated_at", "2015-06-02 23:52:11.648644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 22ms (Views: 0.6ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$zGmjAxE16BnTX0Iouv.T.OohcFhzvC.Ofd1CUep7hfehTZOJyCFaW"], ["created_at", "2015-06-02 23:52:11.658577"], ["updated_at", "2015-06-02 23:52:11.658577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.660128"], ["user_id", "6308dc04-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.660725"], ["updated_at", "2015-06-02 23:52:11.660725"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.665199"], ["updated_at", "2015-06-02 23:52:11.665199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6308dc04-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6309efae-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6308dc04-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6309efae-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.669883"], ["updated_at", "2015-06-02 23:52:11.669883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.672820') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e42b7a95-c92f-4e34-83a5-259ecb4d1ff7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.674154"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.674844"], ["id", "e42b7a95-c92f-4e34-83a5-259ecb4d1ff7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6308dc04-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$/Igozm33zJ9TuGWzvgjKcOZ/qbuAsl0cXPHMl97N50FvFzCG2NZ2."], ["created_at", "2015-06-02 23:52:11.691633"], ["updated_at", "2015-06-02 23:52:11.691633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.693943"], ["user_id", "630def14-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.694842"], ["updated_at", "2015-06-02 23:52:11.694842"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.701659"], ["updated_at", "2015-06-02 23:52:11.701659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '630def14-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '630f7230-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "630def14-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "630f7230-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.704773"], ["updated_at", "2015-06-02 23:52:11.704773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$zRkIwSmyxd1kV5lBKUsS7.J1DUc5LGLRy7wBfBZDhTiKSzMQ2WHsq"], ["created_at", "2015-06-02 23:52:11.713315"], ["updated_at", "2015-06-02 23:52:11.713315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:11.714847"], ["user_id", "631135ca-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.715419"], ["updated_at", "2015-06-02 23:52:11.715419"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.719956"], ["updated_at", "2015-06-02 23:52:11.719956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '631135ca-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '631242e4-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "631135ca-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "631242e4-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.723566"], ["updated_at", "2015-06-02 23:52:11.723566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-24" for 127.0.0.1 at 2015-06-02 16:52:11 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-24", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:11.726473') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "21fbb598-dd67-4c95-a2bc-55a7bdbdd19b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:11.727756"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:11.728474"], ["id", "21fbb598-dd67-4c95-a2bc-55a7bdbdd19b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "631135ca-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '631135ca-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "631242e4-0982-11e5-83ca-a8667f0424ad"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$mvCkrw9cXXVsCB2OgbKXnu7n68rMvX7VkfxYnxFpxWMKy84oiX5Ku"], ["created_at", "2015-06-02 23:52:11.740282"], ["updated_at", "2015-06-02 23:52:11.740282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.744901"], ["updated_at", "2015-06-02 23:52:11.744901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '631554ac-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63160cee-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "631554ac-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63160cee-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.749131"], ["updated_at", "2015-06-02 23:52:11.749131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$hwxcJ5SvQzUtrc8m377sW.D5oih00TbljoFBSe/rVNdsdFouTv73O"], ["created_at", "2015-06-02 23:52:11.757268"], ["updated_at", "2015-06-02 23:52:11.757268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.761829"], ["updated_at", "2015-06-02 23:52:11.761829"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6317f234-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6318a242-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6317f234-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6318a242-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.767486"], ["updated_at", "2015-06-02 23:52:11.767486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6317f234-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "6318a242-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$LT8dFUOoibLMcZ4EakFNl.ZtWrAIb3YrlrjiltzSinsZcItqvIzc2"], ["created_at", "2015-06-02 23:52:11.777723"], ["updated_at", "2015-06-02 23:52:11.777723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.782915"], ["updated_at", "2015-06-02 23:52:11.782915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '631b13ba-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '631be59c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "631b13ba-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "631be59c-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.787931"], ["updated_at", "2015-06-02 23:52:11.787931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '631b13ba-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "631be59c-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$jG.vJGgjnXqXUMyg8WK4K.IxEN52FcI3Z5NT4Vngny4BCJYjP.4Ga"], ["created_at", "2015-06-02 23:52:11.797618"], ["updated_at", "2015-06-02 23:52:11.797618"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.805271"], ["updated_at", "2015-06-02 23:52:11.805271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '631e21d6-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '631f5484-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "631e21d6-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "631f5484-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.810313"], ["updated_at", "2015-06-02 23:52:11.810313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$HiR4TnRr8oajUb8tFJwJzuiNiWjrGBmT3vtGkftSozbc.L5TReiFW"], ["created_at", "2015-06-02 23:52:11.819635"], ["updated_at", "2015-06-02 23:52:11.819635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.824977"], ["updated_at", "2015-06-02 23:52:11.824977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '632179b2-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63225238-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "632179b2-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63225238-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:11.829635"], ["updated_at", "2015-06-02 23:52:11.829635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '632179b2-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63225238-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$kfGqJ5t0ja82unIa7Dklce9nRrgiZzfeshWBRSbPFQ/RTFlGMMOv6"], ["created_at", "2015-06-02 23:52:11.839729"], ["updated_at", "2015-06-02 23:52:11.839729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.844470"], ["updated_at", "2015-06-02 23:52:11.844470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63248a08-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '632540e2-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63248a08-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "632540e2-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.848113"], ["updated_at", "2015-06-02 23:52:11.848113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$bNZi1coqmGO6ummA.SmIOOiZdRwKoDsXuu9MbYU.qw7C2FKeQLu/S"], ["created_at", "2015-06-02 23:52:11.859264"], ["updated_at", "2015-06-02 23:52:11.859264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.867519"], ["updated_at", "2015-06-02 23:52:11.867519"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63278938-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6328d27a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63278938-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6328d27a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.873846"], ["updated_at", "2015-06-02 23:52:11.873846"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '63278938-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "6328d27a-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$MZHVmEL6t6.ZZtJQQQwLKeGc18IGKI58JnPEi/rrc6smACJv/LkXe"], ["created_at", "2015-06-02 23:52:11.884928"], ["updated_at", "2015-06-02 23:52:11.884928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.889045"], ["updated_at", "2015-06-02 23:52:11.889045"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '632b6bf2-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '632c0b52-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "632b6bf2-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "632c0b52-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.892581"], ["updated_at", "2015-06-02 23:52:11.892581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '632b6bf2-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "632c0b52-0982-11e5-83ca-a8667f0424ad"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$PDtFWpeXgEP61Dkji49ziurrb.vK1wpx0aahZMo8Nf2qJeg.ZGb8m"], ["created_at", "2015-06-02 23:52:11.902146"], ["updated_at", "2015-06-02 23:52:11.902146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.908446"], ["updated_at", "2015-06-02 23:52:11.908446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '632e188e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '632f00fa-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "632e188e-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "632f00fa-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.912452"], ["updated_at", "2015-06-02 23:52:11.912452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$JDSuFa1Zal225z.PHF.pROd040NWwYb8tsGnPn8/RchR/Rm3AgGxu"], ["created_at", "2015-06-02 23:52:11.921189"], ["updated_at", "2015-06-02 23:52:11.921189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.925492"], ["updated_at", "2015-06-02 23:52:11.925492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6330eee2-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '633198d8-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6330eee2-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "633198d8-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:11.928555"], ["updated_at", "2015-06-02 23:52:11.928555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6330eee2-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "633198d8-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$gEkwTbvKyJPJJI7hgcP3/urSAKwxbdqMQWt82RBpiikf/I15Php2a"], ["created_at", "2015-06-02 23:52:11.937549"], ["updated_at", "2015-06-02 23:52:11.937549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$xxZGmePszX1qDOeiYRvBZeKDZueMS88KsutFoTtrj71zeUAqAV8nG"], ["created_at", "2015-06-02 23:52:11.945594"], ["updated_at", "2015-06-02 23:52:11.945594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.951562"], ["updated_at", "2015-06-02 23:52:11.951562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.8ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$IgkW0HHIPFNqWcyXPjw4keE8sCHVsq73taQaKJ6.9jG6QszBZaMXu"], ["created_at", "2015-06-02 23:52:11.961928"], ["updated_at", "2015-06-02 23:52:11.961928"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.969063"], ["updated_at", "2015-06-02 23:52:11.969063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6337345a-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63384318-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$DPMofjYLLwXpO5OK1mfr2..ZBQCgtQl0tbxwatdcLu8nkvZ3ONp.y"], ["created_at", "2015-06-02 23:52:11.977544"], ["updated_at", "2015-06-02 23:52:11.977544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.981488"], ["updated_at", "2015-06-02 23:52:11.981488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63398bb0-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "633a1f94-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 39"], ["email", "user.39@example.com"], ["password_digest", "$2a$04$1CPS9cRNnw7uhijN6GyA6.agfqgWzsrn8/pQUvCgAI3V7szt9QBiW"], ["created_at", "2015-06-02 23:52:11.990211"], ["updated_at", "2015-06-02 23:52:11.990211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:11.994626"], ["updated_at", "2015-06-02 23:52:11.994626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 40"], ["email", "user.40@example.com"], ["password_digest", "$2a$04$LqtjcbDoPLU8rhCfZ29FgOS3zB011644xWeCt6SvtizxDO13Y6.AC"], ["created_at", "2015-06-02 23:52:12.001307"], ["updated_at", "2015-06-02 23:52:12.001307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.006003"], ["updated_at", "2015-06-02 23:52:12.006003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '633d2f9a-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "633de30e-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 41"], ["email", "user.41@example.com"], ["password_digest", "$2a$04$uiLaw0Oe0FXuaAIzRFLFIuaHwA6CkKIaI7RkiI4qBc5E6pw2xr76W"], ["created_at", "2015-06-02 23:52:12.018184"], ["updated_at", "2015-06-02 23:52:12.018184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.022738"], ["updated_at", "2015-06-02 23:52:12.022738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '633fc458-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63406d0e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "633fc458-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63406d0e-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.025699"], ["updated_at", "2015-06-02 23:52:12.025699"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '633fc458-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63406d0e-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 42"], ["email", "user.42@example.com"], ["password_digest", "$2a$04$SF6ZQm7NwRjtHGHWoWfqUuqq7WisK5HNtK7XdU/E4hy7DIfJT7R56"], ["created_at", "2015-06-02 23:52:12.034581"], ["updated_at", "2015-06-02 23:52:12.034581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.039184"], ["updated_at", "2015-06-02 23:52:12.039184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6342403e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6342f8ee-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6342403e-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6342f8ee-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.043469"], ["updated_at", "2015-06-02 23:52:12.043469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6342403e-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "6342f8ee-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 43"], ["email", "user.43@example.com"], ["password_digest", "$2a$04$UI9RacSXjthA/8cDt3XliOXEDmbmB9hdhmrIDoDAaz6x/sJZYgIFG"], ["created_at", "2015-06-02 23:52:12.054683"], ["updated_at", "2015-06-02 23:52:12.054683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.059737"], ["updated_at", "2015-06-02 23:52:12.059737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63455b7a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63461268-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63455b7a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63461268-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.064292"], ["updated_at", "2015-06-02 23:52:12.064292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 44"], ["email", "user.44@example.com"], ["password_digest", "$2a$04$NvEaHM58wL7/CIhF34o5f.eR06p.393wrW0kb7hfbM/sPnOjKpkDS"], ["created_at", "2015-06-02 23:52:12.073927"], ["updated_at", "2015-06-02 23:52:12.073927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.078781"], ["updated_at", "2015-06-02 23:52:12.078781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63483f84-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63491788-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63483f84-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63491788-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.083875"], ["updated_at", "2015-06-02 23:52:12.083875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63483f84-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63491788-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 45"], ["email", "user.45@example.com"], ["password_digest", "$2a$04$YYemglGE/RH/TRfRrGZfmubBKo0bLBSYo79l/VmNR36pBQi1RjLK6"], ["created_at", "2015-06-02 23:52:12.095259"], ["updated_at", "2015-06-02 23:52:12.095259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.100780"], ["updated_at", "2015-06-02 23:52:12.100780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '634b9a62-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '634c597a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "634b9a62-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "634c597a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.104598"], ["updated_at", "2015-06-02 23:52:12.104598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '634b9a62-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "634c597a-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 46"], ["email", "user.46@example.com"], ["password_digest", "$2a$04$/W2s16iC5XKARwaO1sfXSe5l1.4Idq3ePLpKTZAvxD2gCVQxnntqa"], ["created_at", "2015-06-02 23:52:12.115937"], ["updated_at", "2015-06-02 23:52:12.115937"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 47"], ["email", "user.47@example.com"], ["password_digest", "$2a$04$LtXzWWQ3ooyrrRNL8/kEpuw39gw8B2kXOeVd5rEnobuCmXx/MbREC"], ["created_at", "2015-06-02 23:52:12.122535"], ["updated_at", "2015-06-02 23:52:12.122535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.126426"], ["updated_at", "2015-06-02 23:52:12.126426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '634fa864-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63503dd8-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "634fa864-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63503dd8-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.129817"], ["updated_at", "2015-06-02 23:52:12.129817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '634ec700-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63503dd8-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 48"], ["email", "user.48@example.com"], ["password_digest", "$2a$04$gFjf3pM0RsRNZ9Zrt7mbu.KyjS.V8Rbekmm01wOJlAUp03lBI0hLC"], ["created_at", "2015-06-02 23:52:12.140155"], ["updated_at", "2015-06-02 23:52:12.140155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 49"], ["email", "user.49@example.com"], ["password_digest", "$2a$04$obQUPCVDZeAFugF50fTSJeYIwHowfi5nlSOCw6nY/UuZmLNvbqg4e"], ["created_at", "2015-06-02 23:52:12.145407"], ["updated_at", "2015-06-02 23:52:12.145407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.151748"], ["updated_at", "2015-06-02 23:52:12.151748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '635339e8-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63542de4-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "635339e8-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63542de4-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.156381"], ["updated_at", "2015-06-02 23:52:12.156381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63525a32-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63542de4-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 50"], ["email", "user.50@example.com"], ["password_digest", "$2a$04$f19p.jUUikOFOjfaHEtSSuskwNUe31GHVFLWyz2ovvqo7tqtHkEQu"], ["created_at", "2015-06-02 23:52:12.167860"], ["updated_at", "2015-06-02 23:52:12.167860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 51"], ["email", "user.51@example.com"], ["password_digest", "$2a$04$7SVVJLM1urm.4HFlSwcYL.J5thw6sbreoG68WcItnIz5SDaonfJQq"], ["created_at", "2015-06-02 23:52:12.173402"], ["updated_at", "2015-06-02 23:52:12.173402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.177609"], ["updated_at", "2015-06-02 23:52:12.177609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63576ee6-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63580c20-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63576ee6-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63580c20-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.181934"], ["updated_at", "2015-06-02 23:52:12.181934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 52"], ["email", "user.52@example.com"], ["password_digest", "$2a$04$quz1F3KXLC4pfgIF1QTR9.MYmOt28.yCpxPNkqguRIn1rVHzSrdS6"], ["created_at", "2015-06-02 23:52:12.191405"], ["updated_at", "2015-06-02 23:52:12.191405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 53"], ["email", "user.53@example.com"], ["password_digest", "$2a$04$qPSQ71iXWcdyq4oOhgYNdOSmLgtK2oU319S6Sifnln/ztgjrebav6"], ["created_at", "2015-06-02 23:52:12.197307"], ["updated_at", "2015-06-02 23:52:12.197307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.204494"], ["updated_at", "2015-06-02 23:52:12.204494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '635b2630-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '635c364c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "635b2630-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "635c364c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.208647"], ["updated_at", "2015-06-02 23:52:12.208647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '635a2e2e-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "635c364c-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 54"], ["email", "user.54@example.com"], ["password_digest", "$2a$04$lJI5lWaLTT.nNmqjNGwnKORyYdua3QyoPsua5rJ2AQnsjeVv1DtFy"], ["created_at", "2015-06-02 23:52:12.221148"], ["updated_at", "2015-06-02 23:52:12.221148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.225136"], ["updated_at", "2015-06-02 23:52:12.225136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '635eb4d0-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "635f5700-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 55"], ["email", "user.55@example.com"], ["password_digest", "$2a$04$ICjjslZtJdF0jj9yR/j7Re3A8hfUOoaLfjigUDR3b0aULi6mxdj0C"], ["created_at", "2015-06-02 23:52:12.234911"], ["updated_at", "2015-06-02 23:52:12.234911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.239841"], ["updated_at", "2015-06-02 23:52:12.239841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6360e124-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63618d18-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6360e124-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63618d18-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.242865"], ["updated_at", "2015-06-02 23:52:12.242865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6360e124-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63618d18-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 56"], ["email", "user.56@example.com"], ["password_digest", "$2a$04$jctnoMLO8ET14z5t1xBszOC634opQBjqUV8A2mJY6c8xfwIFPMNgC"], ["created_at", "2015-06-02 23:52:12.254192"], ["updated_at", "2015-06-02 23:52:12.254192"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.259764"], ["updated_at", "2015-06-02 23:52:12.259764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6363d5f0-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63649c56-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6363d5f0-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63649c56-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.265466"], ["updated_at", "2015-06-02 23:52:12.265466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6363d5f0-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63649c56-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 57"], ["email", "user.57@example.com"], ["password_digest", "$2a$04$wDjbiTvweGnAfCufI2.E2OQx4nhoIRfk/tBV/4Hx1qMYzMkp.NReK"], ["created_at", "2015-06-02 23:52:12.275225"], ["updated_at", "2015-06-02 23:52:12.275225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.279663"], ["updated_at", "2015-06-02 23:52:12.279663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6366f3fc-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6367a2f2-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6366f3fc-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6367a2f2-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.283231"], ["updated_at", "2015-06-02 23:52:12.283231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 58"], ["email", "user.58@example.com"], ["password_digest", "$2a$04$o5crL0TpDTFt32xwT8A7POeQFcj8CIf88cj6cQOnaPm5nTVG6DOKy"], ["created_at", "2015-06-02 23:52:12.290136"], ["updated_at", "2015-06-02 23:52:12.290136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.294299"], ["updated_at", "2015-06-02 23:52:12.294299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '636940ee-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6369e396-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "636940ee-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6369e396-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.298183"], ["updated_at", "2015-06-02 23:52:12.298183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '636940ee-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "6369e396-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 59"], ["email", "user.59@example.com"], ["password_digest", "$2a$04$ZSaqVF0XoDbLLTzMDH6H3eYtrYsb.aqKmdvgfaGdDeqx.AXUYZuMW"], ["created_at", "2015-06-02 23:52:12.307412"], ["updated_at", "2015-06-02 23:52:12.307412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.311810"], ["updated_at", "2015-06-02 23:52:12.311810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '636be646-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '636c89c0-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "636be646-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "636c89c0-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.317741"], ["updated_at", "2015-06-02 23:52:12.317741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 60"], ["email", "user.60@example.com"], ["password_digest", "$2a$04$s2yoLIPeKj/XCZbBzuQ4au6EB74wCJica8/QGtvh00vBk.J9YoAKa"], ["created_at", "2015-06-02 23:52:12.323814"], ["updated_at", "2015-06-02 23:52:12.323814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '636e64f2-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '636c89c0-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "636e64f2-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "636c89c0-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.327053"], ["updated_at", "2015-06-02 23:52:12.327053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '636be646-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "636c89c0-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 61"], ["email", "user.61@example.com"], ["password_digest", "$2a$04$Poa24LVWcPQdsA7SQVgzveRtNvRlcHpnbqFp4vpU8.nGK56Bl3f5i"], ["created_at", "2015-06-02 23:52:12.337106"], ["updated_at", "2015-06-02 23:52:12.337106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.341693"], ["updated_at", "2015-06-02 23:52:12.341693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '637069e6-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '637117d8-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "637069e6-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "637117d8-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.344842"], ["updated_at", "2015-06-02 23:52:12.344842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 62"], ["email", "user.62@example.com"], ["password_digest", "$2a$04$8Ka2rb8EyuveE09PwK4vk.Xn8ij0hHqvSzTwFJItvAIvt1af1qSHm"], ["created_at", "2015-06-02 23:52:12.351412"], ["updated_at", "2015-06-02 23:52:12.351412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6372a508-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '637117d8-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6372a508-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "637117d8-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.356818"], ["updated_at", "2015-06-02 23:52:12.356818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '637069e6-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "637117d8-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 63"], ["email", "user.63@example.com"], ["password_digest", "$2a$04$Kch0r5NFYq552sT/EU0R0eBsn3a5UHHViNT5anXWQpVcBoQdhRPr6"], ["created_at", "2015-06-02 23:52:12.368200"], ["updated_at", "2015-06-02 23:52:12.368200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.373120"], ["updated_at", "2015-06-02 23:52:12.373120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63752f44-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6375e60a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63752f44-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6375e60a-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.377090"], ["updated_at", "2015-06-02 23:52:12.377090"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 64"], ["email", "user.64@example.com"], ["password_digest", "$2a$04$50PISwHdSIo6jst2X98BqeWxx1PRCU9GyG.e8tEqQWkEolvMmSaha"], ["created_at", "2015-06-02 23:52:12.385065"], ["updated_at", "2015-06-02 23:52:12.385065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6377bd22-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6375e60a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6377bd22-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6375e60a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.388421"], ["updated_at", "2015-06-02 23:52:12.388421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 65"], ["email", "user.65@example.com"], ["password_digest", "$2a$04$S4bSP7UU9HRuzG4xzaYVVuXiNPfsXk5.pVCu885wA2kVfudKRWFeK"], ["created_at", "2015-06-02 23:52:12.395063"], ["updated_at", "2015-06-02 23:52:12.395063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.399614"], ["updated_at", "2015-06-02 23:52:12.399614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63794278-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6379f916-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63794278-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6379f916-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.403656"], ["updated_at", "2015-06-02 23:52:12.403656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 66"], ["email", "user.66@example.com"], ["password_digest", "$2a$04$RbTVk7E/NB8B2WCfLjzSJORYjvHoR3Ap8u4F.DLB7Wa3/57teO7be"], ["created_at", "2015-06-02 23:52:12.409366"], ["updated_at", "2015-06-02 23:52:12.409366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '637b720a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6379f916-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "637b720a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6379f916-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.412969"], ["updated_at", "2015-06-02 23:52:12.412969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63794278-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "6379f916-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 67"], ["email", "user.67@example.com"], ["password_digest", "$2a$04$K8jsrUYhTeLclI99e4YXrekPyp8rHzg6PPd9omQh5HezqjD2YG3dy"], ["created_at", "2015-06-02 23:52:12.422337"], ["updated_at", "2015-06-02 23:52:12.422337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.427902"], ["updated_at", "2015-06-02 23:52:12.427902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '637d6de4-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '637e4d5e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "637d6de4-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "637e4d5e-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.433102"], ["updated_at", "2015-06-02 23:52:12.433102"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '637d6de4-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "637e4d5e-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 68"], ["email", "user.68@example.com"], ["password_digest", "$2a$04$gYhBduJRxhmBTlYJHLEEzuKOdN9y1yMoL0c5VzSxIfq20PZ.6cfza"], ["created_at", "2015-06-02 23:52:12.442900"], ["updated_at", "2015-06-02 23:52:12.442900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:12.444456"], ["user_id", "63808af6-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.445026"], ["updated_at", "2015-06-02 23:52:12.445026"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.451588"], ["updated_at", "2015-06-02 23:52:12.451588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63808af6-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6381e9dc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63808af6-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6381e9dc-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.455789"], ["updated_at", "2015-06-02 23:52:12.455789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6381e9dc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "6381e9dc-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.466741"], ["updated_at", "2015-06-02 23:52:12.466741"], ["token", "SvCYtzTGBFEg1cHzBSXYvd9NAleHIOZu219TAZ-rPus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 16:52:12 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 69"], ["email", "user.69@example.com"], ["password_digest", "$2a$04$5JrC0aNJEJPu4W2D/loY..sjHULKwGpF.4mwXiTwy29OpkYWzl8Dm"], ["created_at", "2015-06-02 23:52:12.487313"], ["updated_at", "2015-06-02 23:52:12.487313"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:12.496976"], ["user_id", "63878518-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.500512"], ["updated_at", "2015-06-02 23:52:12.500512"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.507679"], ["updated_at", "2015-06-02 23:52:12.507679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63878518-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '638a7908-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63878518-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "638a7908-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.511417"], ["updated_at", "2015-06-02 23:52:12.511417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '638a7908-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "638a7908-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.516338"], ["updated_at", "2015-06-02 23:52:12.516338"], ["token", "KY2pBmWDskjlGE4sx2Zv99IyVRuavJWZ8e2PAw03Gkc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/638bd8de-0982-11e5-83ca-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:12 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"638bd8de-0982-11e5-83ca-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:12.520533') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "eda9aae1-de5f-4c66-9b62-02acdf8a6406"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:12.521941"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:12.522692"], ["id", "eda9aae1-de5f-4c66-9b62-02acdf8a6406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "638bd8de-0982-11e5-83ca-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63878518-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "638a7908-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63878518-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "638a7908-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "638bd8de-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 70"], ["email", "user.70@example.com"], ["password_digest", "$2a$04$v6C5qDzPogTeUtcxGgu.UeU.u2w/NtbVl2k6FAVurXlCm2jIsN8LK"], ["created_at", "2015-06-02 23:52:12.549251"], ["updated_at", "2015-06-02 23:52:12.549251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:12.551307"], ["user_id", "6390d050-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.552080"], ["updated_at", "2015-06-02 23:52:12.552080"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.556873"], ["updated_at", "2015-06-02 23:52:12.556873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6390d050-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6391efbc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6390d050-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6391efbc-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.559913"], ["updated_at", "2015-06-02 23:52:12.559913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '6391efbc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "6391efbc-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.564823"], ["updated_at", "2015-06-02 23:52:12.564823"], ["token", "X3ChnDXMIUzWpKTwH08U1B5npIDTP4YLrshPm4Io-RU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 16:52:12 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 71"], ["email", "user.71@example.com"], ["password_digest", "$2a$04$b6XlE.IpPc/n1XMR1XRjjOI3c6chH8IT2j0FEVGpNyIBuACaX2WPa"], ["created_at", "2015-06-02 23:52:12.578304"], ["updated_at", "2015-06-02 23:52:12.578304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:12.581705"], ["user_id", "63956304-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.582552"], ["updated_at", "2015-06-02 23:52:12.582552"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.588151"], ["updated_at", "2015-06-02 23:52:12.588151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63956304-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6396b60a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63956304-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6396b60a-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.591345"], ["updated_at", "2015-06-02 23:52:12.591345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '6396b60a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "6396b60a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.595592"], ["updated_at", "2015-06-02 23:52:12.595592"], ["token", "cKM4mtgwWGNUC0tVbvKX19zdAdvojxCmcJHbp3ifoXg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/63982ada-0982-11e5-83ca-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:12 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"63982ada-0982-11e5-83ca-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:12.602507') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "641218db-c744-487b-9a95-67c95685b64b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:12.604172"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:12.605041"], ["id", "641218db-c744-487b-9a95-67c95685b64b"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "63982ada-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63956304-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6396b60a-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63956304-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "6396b60a-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."id" != '63982ada-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = '6396b60a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.5ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-02 23:52:12.615800"], ["id", "63982ada-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 2.8ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 72"], ["email", "user.72@example.com"], ["password_digest", "$2a$04$3k6pYoMGjmfx69D1KIdKSOTsSQJ512Wb9kcWZFvn70zMYX4gs0VXO"], ["created_at", "2015-06-02 23:52:12.631748"], ["updated_at", "2015-06-02 23:52:12.631748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:12.634060"], ["user_id", "639d611c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.635251"], ["updated_at", "2015-06-02 23:52:12.635251"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.640800"], ["updated_at", "2015-06-02 23:52:12.640800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '639d611c-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '639ec340-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "639d611c-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "639ec340-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.644408"], ["updated_at", "2015-06-02 23:52:12.644408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '639ec340-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "639ec340-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.649381"], ["updated_at", "2015-06-02 23:52:12.649381"], ["token", "qWyHIV0pHQhPlbMXvIgvxOHtUEhHk35vj5TPw4qCkO0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 73"], ["email", "user.73@example.com"], ["password_digest", "$2a$04$m08CAacK0gXdqWgZSoRIJO/08KWthsfwS9R/f7FG.NNzycvR1TwPO"], ["created_at", "2015-06-02 23:52:12.656207"], ["updated_at", "2015-06-02 23:52:12.656207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.661828"], ["updated_at", "2015-06-02 23:52:12.661828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63a11bfe-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63a1ffe2-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63a11bfe-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63a1ffe2-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.665878"], ["updated_at", "2015-06-02 23:52:12.665878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 16:52:12 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 74"], ["email", "user.74@example.com"], ["password_digest", "$2a$04$OABZTjFu7IBnmUYY27VgxutM9yQd9c2wh2fSelXe5zKKDgYyjJ3VG"], ["created_at", "2015-06-02 23:52:12.678103"], ["updated_at", "2015-06-02 23:52:12.678103"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:12.682681"], ["user_id", "63a47e8e-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.683676"], ["updated_at", "2015-06-02 23:52:12.683676"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.688805"], ["updated_at", "2015-06-02 23:52:12.688805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63a47e8e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63a61096-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63a47e8e-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63a61096-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.692130"], ["updated_at", "2015-06-02 23:52:12.692130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '63a61096-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "63a61096-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.696183"], ["updated_at", "2015-06-02 23:52:12.696183"], ["token", "gJdmQucn7kJMQaO7HaWimKFqxt4LqS9gf0HJ_Y4uLXY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 75"], ["email", "user.75@example.com"], ["password_digest", "$2a$04$Q.93s6AahmxEMMVQVqtdMOXxFTn470sbXAEJcwjgK7eGpwxEgKKAu"], ["created_at", "2015-06-02 23:52:12.702800"], ["updated_at", "2015-06-02 23:52:12.702800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.708274"], ["updated_at", "2015-06-02 23:52:12.708274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63a851e4-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63a90eea-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63a851e4-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63a90eea-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.712146"], ["updated_at", "2015-06-02 23:52:12.712146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 16:52:12 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:12.716631') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c6cce5b5-b535-4741-9f57-0e5d7767eadc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:12.719738"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:12.721216"], ["id", "c6cce5b5-b535-4741-9f57-0e5d7767eadc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63a47e8e-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63a47e8e-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63a61096-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "63a61096-0982-11e5-83ca-a8667f0424ad"]] Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 76"], ["email", "user.76@example.com"], ["password_digest", "$2a$04$bx47DKItCGdnowCELGfM6Oebje4E5wyy/EW7dg36sCIBdkx1VFeMK"], ["created_at", "2015-06-02 23:52:12.744405"], ["updated_at", "2015-06-02 23:52:12.744405"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:12.748068"], ["user_id", "63aeaefe-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.749125"], ["updated_at", "2015-06-02 23:52:12.749125"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.755676"], ["updated_at", "2015-06-02 23:52:12.755676"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63aeaefe-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63b05830-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63aeaefe-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63b05830-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.761112"], ["updated_at", "2015-06-02 23:52:12.761112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '63b05830-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "63b05830-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.766920"], ["updated_at", "2015-06-02 23:52:12.766920"], ["token", "aHsX6egB4GasTOFc4ratbQG-XKw-yH6RNJufp6qPAgs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 16:52:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 77"], ["email", "user.77@example.com"], ["password_digest", "$2a$04$Kc3rBwNmrtjCokVPCgn2iesS7AcJV.sIg.N3p7aq2jSFGrrHuUKLi"], ["created_at", "2015-06-02 23:52:12.781154"], ["updated_at", "2015-06-02 23:52:12.781154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:12.783248"], ["user_id", "63b4304a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.784166"], ["updated_at", "2015-06-02 23:52:12.784166"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:12.790066"], ["updated_at", "2015-06-02 23:52:12.790066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63b4304a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63b59dcc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63b4304a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63b59dcc-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.794655"], ["updated_at", "2015-06-02 23:52:12.794655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '63b59dcc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "63b59dcc-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:12.801588"], ["updated_at", "2015-06-02 23:52:12.801588"], ["token", "htm7ZGS1oIImeaUUYka9WcM25RNJqFt-Lhm2bTFz2w4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/63b59dcc-0982-11e5-83ca-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 16:52:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"63b59dcc-0982-11e5-83ca-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:12.804956') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e6bbc68f-653e-463c-8e44-093bc9b6605a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:12.806540"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:12.807485"], ["id", "e6bbc68f-653e-463c-8e44-093bc9b6605a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63b59dcc-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63b4304a-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63b4304a-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63b59dcc-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '63b59dcc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "63b59dcc-0982-11e5-83ca-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-02 23:52:12.818005"], ["updated_at", "2015-06-02 23:52:12.818005"], ["token", "Vm2vppCbX0H92bxsh20sfYZ_s8zam-xkmIR30dTe-BY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 36b72f13-681c-4078-a847-0c7486724bc3) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/63b9d22a-0982-11e5-83ca-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "63b9d22a-0982-11e5-83ca-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [36b72f13-681c-4078-a847-0c7486724bc3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/63b9d22a-0982-11e5-83ca-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [36b72f13-681c-4078-a847-0c7486724bc3] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63b59dcc-0982-11e5-83ca-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [36b72f13-681c-4078-a847-0c7486724bc3] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [36b72f13-681c-4078-a847-0c7486724bc3] Clubhouse::Mailer#invitation: processed outbound mail in 215.4ms [ActiveJob] [ActionMailer::DeliveryJob] [36b72f13-681c-4078-a847-0c7486724bc3] Sent mail to email@example.com (8.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [36b72f13-681c-4078-a847-0c7486724bc3] Date: Tue, 02 Jun 2015 16:52:13 -0700 From: from@example.com To: email@example.com Message-ID: <556e41ad11077_deed3fd5c0460200957c6@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Vm2vppCbX0H92bxsh20sfYZ_s8zam-xkmIR30dTe-BY?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [36b72f13-681c-4078-a847-0c7486724bc3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 224.62ms Completed 201 Created in 270ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 78"], ["email", "user.78@example.com"], ["password_digest", "$2a$04$AuNPNR5L0PyNS3UJzNdp/Ov6cPd0bW6.aiynSKaCiPs.UA8YDMDwG"], ["created_at", "2015-06-02 23:52:13.084377"], ["updated_at", "2015-06-02 23:52:13.084377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.086434"], ["user_id", "63e275fe-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.087055"], ["updated_at", "2015-06-02 23:52:13.087055"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.091644"], ["updated_at", "2015-06-02 23:52:13.091644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63e275fe-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63e38aac-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63e275fe-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63e38aac-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.095049"], ["updated_at", "2015-06-02 23:52:13.095049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '63e38aac-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "63e38aac-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.103063"], ["updated_at", "2015-06-02 23:52:13.103063"], ["token", "YcjrHxxQbFUCwbVgkebD0uef5_z-SBjS7LoKiGINg5E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/63e38aac-0982-11e5-83ca-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"63e38aac-0982-11e5-83ca-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.106218') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0e95aa01-153a-46c2-a5c0-00f95215eddb"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.107857"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.108628"], ["id", "0e95aa01-153a-46c2-a5c0-00f95215eddb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63e38aac-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63e275fe-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63e275fe-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63e38aac-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '63e38aac-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "63e38aac-0982-11e5-83ca-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.120827"], ["updated_at", "2015-06-02 23:52:13.120827"], ["token", "F9i2KRP5LwZ1CHyXxk1PSeslZJHCDybgq1q0sd81cPY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5b512ba3-e670-4093-a9d5-0ede5575aa4d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/63e80a14-0982-11e5-83ca-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "63e80a14-0982-11e5-83ca-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [5b512ba3-e670-4093-a9d5-0ede5575aa4d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/63e80a14-0982-11e5-83ca-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [5b512ba3-e670-4093-a9d5-0ede5575aa4d] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63e38aac-0982-11e5-83ca-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [5b512ba3-e670-4093-a9d5-0ede5575aa4d] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [5b512ba3-e670-4093-a9d5-0ede5575aa4d] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [5b512ba3-e670-4093-a9d5-0ede5575aa4d] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [5b512ba3-e670-4093-a9d5-0ede5575aa4d] Date: Tue, 02 Jun 2015 16:52:13 -0700 From: from@example.com To: email@example.com Message-ID: <556e41ad1f250_deed3fd5c046020095837@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/F9i2KRP5LwZ1CHyXxk1PSeslZJHCDybgq1q0sd81cPY?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5b512ba3-e670-4093-a9d5-0ede5575aa4d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.84ms Completed 201 Created in 24ms (Views: 1.0ms | ActiveRecord: 4.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 79"], ["email", "user.79@example.com"], ["password_digest", "$2a$04$MXSi/sdr6N6IFXcELW2Ahekn9sXRHS/S.QRpIP8SzUIz3lyj3BsY6"], ["created_at", "2015-06-02 23:52:13.141970"], ["updated_at", "2015-06-02 23:52:13.141970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.144065"], ["user_id", "63eb3d6a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.144692"], ["updated_at", "2015-06-02 23:52:13.144692"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.148910"], ["updated_at", "2015-06-02 23:52:13.148910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63eb3d6a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63ec51b4-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63eb3d6a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63ec51b4-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.152690"], ["updated_at", "2015-06-02 23:52:13.152690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '63ec51b4-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "63ec51b4-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.157382"], ["updated_at", "2015-06-02 23:52:13.157382"], ["token", "zD_yVHN_SXg-_ngVaS9zWWG5kt-8a-q9iR39gEK9_Fs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/63ec51b4-0982-11e5-83ca-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"63ec51b4-0982-11e5-83ca-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.160406') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6a09338d-24f5-4cd0-b313-3e756b4f9623"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.161728"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.162475"], ["id", "6a09338d-24f5-4cd0-b313-3e756b4f9623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63ec51b4-0982-11e5-83ca-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63eb3d6a-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63eb3d6a-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63ec51b4-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '63ec51b4-0982-11e5-83ca-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 80"], ["email", "user.80@example.com"], ["password_digest", "$2a$04$zCYYlBDzXvW5tDkse/4GB.G3Y.k42jofl9tRtKwupkW4wIBXPMZaW"], ["created_at", "2015-06-02 23:52:13.181680"], ["updated_at", "2015-06-02 23:52:13.181680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.185131"], ["user_id", "63f17e8c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.185776"], ["updated_at", "2015-06-02 23:52:13.185776"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.189895"], ["updated_at", "2015-06-02 23:52:13.189895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63f17e8c-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63f2853e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63f17e8c-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63f2853e-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.192816"], ["updated_at", "2015-06-02 23:52:13.192816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '63f2853e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "63f2853e-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.196762"], ["updated_at", "2015-06-02 23:52:13.196762"], ["token", "ctvsOXFMYA-8StxKxquZrmFWGc398AUdFdJ0QRBkwrc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 81"], ["email", "user.81@example.com"], ["password_digest", "$2a$04$jD28Mv6Vsch2w.qRy6tOcuX4ZGTesRp0TN5znpoNw3XOgDx8TwZpy"], ["created_at", "2015-06-02 23:52:13.202539"], ["updated_at", "2015-06-02 23:52:13.202539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.208100"], ["updated_at", "2015-06-02 23:52:13.208100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63f47fb0-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63f564ca-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63f47fb0-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63f564ca-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.212637"], ["updated_at", "2015-06-02 23:52:13.212637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 82"], ["email", "user.82@example.com"], ["password_digest", "$2a$04$6mQcom2MOM2iC5r06XXSlOvSOjex2BljCnSqp3qgGBJwucmKSaAbK"], ["created_at", "2015-06-02 23:52:13.225013"], ["updated_at", "2015-06-02 23:52:13.225013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.226798"], ["user_id", "63f7e56a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.227498"], ["updated_at", "2015-06-02 23:52:13.227498"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.234285"], ["updated_at", "2015-06-02 23:52:13.234285"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63f7e56a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63f95f30-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "63f7e56a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63f95f30-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.239453"], ["updated_at", "2015-06-02 23:52:13.239453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '63f95f30-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "63f95f30-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.244131"], ["updated_at", "2015-06-02 23:52:13.244131"], ["token", "Xu5eO09YE3VyL7-P8FI55ofQdk3JXpKpd8uIjeezkuA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 83"], ["email", "user.83@example.com"], ["password_digest", "$2a$04$jPvG4Ma3edXa0ENpjTpp4OICp7.fNzPr8oLVIE/KgLopCaOEX3fZG"], ["created_at", "2015-06-02 23:52:13.250864"], ["updated_at", "2015-06-02 23:52:13.250864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.257554"], ["updated_at", "2015-06-02 23:52:13.257554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63fbd6de-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '63fce056-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63fbd6de-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "63fce056-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.261661"], ["updated_at", "2015-06-02 23:52:13.261661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/63f95f30-0982-11e5-83ca-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"63f95f30-0982-11e5-83ca-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.264957') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4e4bbca7-abc6-472c-97c3-3c123d7e07d0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.266393"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.267495"], ["id", "4e4bbca7-abc6-472c-97c3-3c123d7e07d0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "63f95f30-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "63f7e56a-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '63f7e56a-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "63f95f30-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "63f95f30-0982-11e5-83ca-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 1.5ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 84"], ["email", "user.84@example.com"], ["password_digest", "$2a$04$B2QXpg1ZFAFohwSdUX/N/eU2BoDPa6PUjGOfnJhxKXa1L1xAO12f6"], ["created_at", "2015-06-02 23:52:13.286032"], ["updated_at", "2015-06-02 23:52:13.286032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.287832"], ["user_id", "64013674-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.288427"], ["updated_at", "2015-06-02 23:52:13.288427"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.292483"], ["updated_at", "2015-06-02 23:52:13.292483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64013674-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64023088-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64013674-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64023088-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.296393"], ["updated_at", "2015-06-02 23:52:13.296393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '64023088-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "64023088-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.301425"], ["updated_at", "2015-06-02 23:52:13.301425"], ["token", "TLqln51O0yhLYQCQQljNLsK5lqLFvwyEDg9ajeqDHwE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 85"], ["email", "user.85@example.com"], ["password_digest", "$2a$04$y120qs1Xik.hxGJ9bYSFEuvaYcPeNRT469dEJBRp0gyilnEda.m9S"], ["created_at", "2015-06-02 23:52:13.311194"], ["updated_at", "2015-06-02 23:52:13.311194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.313398"], ["user_id", "64051816-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.314338"], ["updated_at", "2015-06-02 23:52:13.314338"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.319398"], ["updated_at", "2015-06-02 23:52:13.319398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64051816-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '640653fc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64051816-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "640653fc-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.324020"], ["updated_at", "2015-06-02 23:52:13.324020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '640653fc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "640653fc-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.329085"], ["updated_at", "2015-06-02 23:52:13.329085"], ["token", "yEFwqlrEAlbqiGeZ5WqdaYEMU30phsyBB1tvNB-f2LE"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/6407e1c2-0982-11e5-83ca-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"6407e1c2-0982-11e5-83ca-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.335091') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4b06f3f4-a7f3-4ec4-96e5-1ae4fb749955"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.336815"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.337677"], ["id", "4b06f3f4-a7f3-4ec4-96e5-1ae4fb749955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6407e1c2-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64051816-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "640653fc-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64051816-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "640653fc-0982-11e5-83ca-a8667f0424ad"]] Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 1.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 86"], ["email", "user.86@example.com"], ["password_digest", "$2a$04$w/imhopEbzeGZ7jIAit9vOsTX7OW6dhL7zRXEzQMElTctKl3lTA4K"], ["created_at", "2015-06-02 23:52:13.353298"], ["updated_at", "2015-06-02 23:52:13.353298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.355114"], ["user_id", "640b79cc-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.355771"], ["updated_at", "2015-06-02 23:52:13.355771"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.359951"], ["updated_at", "2015-06-02 23:52:13.359951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '640b79cc-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '640c7a2a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "640b79cc-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "640c7a2a-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.363011"], ["updated_at", "2015-06-02 23:52:13.363011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '640c7a2a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "640c7a2a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.367901"], ["updated_at", "2015-06-02 23:52:13.367901"], ["token", "RCVYrJcKIRi4CN-OORkFDPw0vVc_WuvWY1gXFiYFUdk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 87"], ["email", "user.87@example.com"], ["password_digest", "$2a$04$B4mwxDXtUxoHYrC6gRjESeoZpyzahTbYP26Rdo9yv8m19buULrXtm"], ["created_at", "2015-06-02 23:52:13.380078"], ["updated_at", "2015-06-02 23:52:13.380078"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.384426"], ["user_id", "640f9e76-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.385379"], ["updated_at", "2015-06-02 23:52:13.385379"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.391483"], ["updated_at", "2015-06-02 23:52:13.391483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '640f9e76-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64114c8a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "640f9e76-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64114c8a-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.394903"], ["updated_at", "2015-06-02 23:52:13.394903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '64114c8a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "64114c8a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.401787"], ["updated_at", "2015-06-02 23:52:13.401787"], ["token", "HGk-ycfxmfAXgXSuryuKkbMhAdhuaZ6OcxmDUzlqmmQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.405229') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f77867f4-8000-46b1-9ccd-db05aa3adbc8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.406523"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.407229"], ["id", "f77867f4-8000-46b1-9ccd-db05aa3adbc8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "640f9e76-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '640f9e76-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64114c8a-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '64114c8a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "64114c8a-0982-11e5-83ca-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.415114"], ["updated_at", "2015-06-02 23:52:13.415114"], ["token", "Dx4lHvXxB14TPiNj7EfgP8jJeeovf5uBhuVHX-EDDF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 47018e8c-55e9-4fc7-93ad-a2ddd99b703d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6414ea02-0982-11e5-83ca-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6414ea02-0982-11e5-83ca-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [47018e8c-55e9-4fc7-93ad-a2ddd99b703d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6414ea02-0982-11e5-83ca-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [47018e8c-55e9-4fc7-93ad-a2ddd99b703d] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "64114c8a-0982-11e5-83ca-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [47018e8c-55e9-4fc7-93ad-a2ddd99b703d] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [47018e8c-55e9-4fc7-93ad-a2ddd99b703d] Clubhouse::Mailer#invitation: processed outbound mail in 2.5ms [ActiveJob] [ActionMailer::DeliveryJob] [47018e8c-55e9-4fc7-93ad-a2ddd99b703d] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [47018e8c-55e9-4fc7-93ad-a2ddd99b703d] Date: Tue, 02 Jun 2015 16:52:13 -0700 From: from@example.com To: email@example.com Message-ID: <556e41ad673ab_deed3fd5c0460200959ab@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Dx4lHvXxB14TPiNj7EfgP8jJeeovf5uBhuVHX-EDDF8?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [47018e8c-55e9-4fc7-93ad-a2ddd99b703d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.33ms Completed 201 Created in 19ms (Views: 0.6ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 88"], ["email", "user.88@example.com"], ["password_digest", "$2a$04$vDkJUMxq0.wm4Hkv4I9xhe.xCtwzmVXsCH9tcxfsWRijhUtK2Rgk."], ["created_at", "2015-06-02 23:52:13.431217"], ["updated_at", "2015-06-02 23:52:13.431217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.432831"], ["user_id", "64175b02-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.433671"], ["updated_at", "2015-06-02 23:52:13.433671"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.438907"], ["updated_at", "2015-06-02 23:52:13.438907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64175b02-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '641883a6-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64175b02-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "641883a6-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.441987"], ["updated_at", "2015-06-02 23:52:13.441987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '641883a6-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "641883a6-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.445950"], ["updated_at", "2015-06-02 23:52:13.445950"], ["token", "jD_mXqsoJa4WRQ3AlkGA0y3dXt2mbxlZmxiGI1BJb6w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.449126') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "97144bab-11b3-47ef-bdca-9cd247e96204"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.450794"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.451879"], ["id", "97144bab-11b3-47ef-bdca-9cd247e96204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64175b02-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64175b02-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "641883a6-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '641883a6-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "641883a6-0982-11e5-83ca-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.461996"], ["updated_at", "2015-06-02 23:52:13.461996"], ["token", "koVbfgk6wvXec8Moa5Y8tQHzLbaoXefoo-_3JbxJc6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: cdab8d88-4ca6-4f97-99f4-45850d55202f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/641c1444-0982-11e5-83ca-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "641c1444-0982-11e5-83ca-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [cdab8d88-4ca6-4f97-99f4-45850d55202f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/641c1444-0982-11e5-83ca-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [cdab8d88-4ca6-4f97-99f4-45850d55202f] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "641883a6-0982-11e5-83ca-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [cdab8d88-4ca6-4f97-99f4-45850d55202f] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [cdab8d88-4ca6-4f97-99f4-45850d55202f] Clubhouse::Mailer#invitation: processed outbound mail in 3.1ms [ActiveJob] [ActionMailer::DeliveryJob] [cdab8d88-4ca6-4f97-99f4-45850d55202f] Sent mail to email@example.com (2.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [cdab8d88-4ca6-4f97-99f4-45850d55202f] Date: Tue, 02 Jun 2015 16:52:13 -0700 From: from@example.com To: email@example.com Message-ID: <556e41ad72e55_deed3fd5c0460200960df@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/koVbfgk6wvXec8Moa5Y8tQHzLbaoXefoo-_3JbxJc6s?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [cdab8d88-4ca6-4f97-99f4-45850d55202f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.4ms Completed 201 Created in 25ms (Views: 1.5ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 89"], ["email", "user.89@example.com"], ["password_digest", "$2a$04$5XDmyO5Sknx/RXJs2iwIGOhYUQmPBwypgdHDG8OQOgiq4pVXaOtMO"], ["created_at", "2015-06-02 23:52:13.485236"], ["updated_at", "2015-06-02 23:52:13.485236"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.488277"], ["user_id", "641fa37a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.489061"], ["updated_at", "2015-06-02 23:52:13.489061"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.493542"], ["updated_at", "2015-06-02 23:52:13.493542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '641fa37a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6420da24-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "641fa37a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6420da24-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.496539"], ["updated_at", "2015-06-02 23:52:13.496539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '6420da24-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "6420da24-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.502195"], ["updated_at", "2015-06-02 23:52:13.502195"], ["token", "up8uWow-NDV2J3T01lcaaG_dE40D-CPHgYQ77b3q6u4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.506757') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0fbec08a-dd03-478b-9e72-0c4a034a6842"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.508344"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.509061"], ["id", "0fbec08a-dd03-478b-9e72-0c4a034a6842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "641fa37a-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '641fa37a-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "6420da24-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '6420da24-0982-11e5-83ca-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 90"], ["email", "user.90@example.com"], ["password_digest", "$2a$04$m3zLtKxjgPCaRHho75sPnu0SuNq0/gRweIj1OFybcoFTA.BBIB0qm"], ["created_at", "2015-06-02 23:52:13.530766"], ["updated_at", "2015-06-02 23:52:13.530766"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 91"], ["email", "user.91@example.com"], ["password_digest", "$2a$04$2Ol..M2tUCEFvBfGzixI7OgJIZSzadSAyPZoQZ2WtZ6ngxFIKk/UG"], ["created_at", "2015-06-02 23:52:13.539925"], ["updated_at", "2015-06-02 23:52:13.539925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.541820"], ["user_id", "6426cf1a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.542797"], ["updated_at", "2015-06-02 23:52:13.542797"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.548191"], ["updated_at", "2015-06-02 23:52:13.548191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6426cf1a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6429332c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6426cf1a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6429332c-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.552281"], ["updated_at", "2015-06-02 23:52:13.552281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6427f214-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6429332c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6427f214-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6429332c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.556867"], ["updated_at", "2015-06-02 23:52:13.556867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 92"], ["email", "user.92@example.com"], ["password_digest", "$2a$04$HnUt/6cWO8KCIR.iRItHTukhjGzbXAxYCYZpJxb0qLU7Chx26Pv1W"], ["created_at", "2015-06-02 23:52:13.577511"], ["updated_at", "2015-06-02 23:52:13.577511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 93"], ["email", "user.93@example.com"], ["password_digest", "$2a$04$cbTQ3NfyUdSXAYeZxPMXKueZ7zGoiBqWfcHRrtp7G7kuAg76AHWvG"], ["created_at", "2015-06-02 23:52:13.586106"], ["updated_at", "2015-06-02 23:52:13.586106"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.588367"], ["user_id", "642db6d6-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.589371"], ["updated_at", "2015-06-02 23:52:13.589371"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.593985"], ["updated_at", "2015-06-02 23:52:13.593985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '642db6d6-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64302c04-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "642db6d6-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64302c04-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.597321"], ["updated_at", "2015-06-02 23:52:13.597321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '642f0180-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64302c04-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "642f0180-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64302c04-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.600811"], ["updated_at", "2015-06-02 23:52:13.600811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/64313c34-0982-11e5-83ca-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"64313c34-0982-11e5-83ca-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.604289') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "da5302f3-70b4-48c0-9a21-289cbe3028c9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.606388"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.607412"], ["id", "da5302f3-70b4-48c0-9a21-289cbe3028c9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "64313c34-0982-11e5-83ca-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "642db6d6-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "64302c04-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '642db6d6-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64302c04-0982-11e5-83ca-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "642f0180-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "64313c34-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 94"], ["email", "user.94@example.com"], ["password_digest", "$2a$04$khmEzBJ4kY5m7Jsm2UsY5O4obcC8H5C9wwfTE3NlmYYY66l3c2nie"], ["created_at", "2015-06-02 23:52:13.626507"], ["updated_at", "2015-06-02 23:52:13.626507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 95"], ["email", "user.95@example.com"], ["password_digest", "$2a$04$sAV57SyLqgUSY24kbyxvrOrl5K8pPGV4L1Za3BrGyui7Ej6.vXKSC"], ["created_at", "2015-06-02 23:52:13.635953"], ["updated_at", "2015-06-02 23:52:13.635953"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.638617"], ["user_id", "643542d4-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.639457"], ["updated_at", "2015-06-02 23:52:13.639457"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.643848"], ["updated_at", "2015-06-02 23:52:13.643848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '643542d4-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6437c84c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "643542d4-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6437c84c-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.646831"], ["updated_at", "2015-06-02 23:52:13.646831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6436a066-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6437c84c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6436a066-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6437c84c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.649495"], ["updated_at", "2015-06-02 23:52:13.649495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 96"], ["email", "user.96@example.com"], ["password_digest", "$2a$04$..YCiPBFjxINYNvY8jwzZ.Dp1og5cTwLDuYfrnjpbIdj1A.WK881y"], ["created_at", "2015-06-02 23:52:13.659927"], ["updated_at", "2015-06-02 23:52:13.659927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 97"], ["email", "user.97@example.com"], ["password_digest", "$2a$04$uLtZ6hHtw2nJS4DsTel5k.Nn972E1Nl46nYLUqudv0sXRMsHoxMcK"], ["created_at", "2015-06-02 23:52:13.667458"], ["updated_at", "2015-06-02 23:52:13.667458"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.669645"], ["user_id", "643a4fea-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.670608"], ["updated_at", "2015-06-02 23:52:13.670608"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.676161"], ["updated_at", "2015-06-02 23:52:13.676161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '643a4fea-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '643cbff0-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "643a4fea-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "643cbff0-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.679820"], ["updated_at", "2015-06-02 23:52:13.679820"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '643b6772-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '643cbff0-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "643b6772-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "643cbff0-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.686047"], ["updated_at", "2015-06-02 23:52:13.686047"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/643e47e4-0982-11e5-83ca-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"643e47e4-0982-11e5-83ca-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.689678') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "db9d6699-5361-42c8-8dc9-383d958f5179"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.691277"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.692340"], ["id", "db9d6699-5361-42c8-8dc9-383d958f5179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "643e47e4-0982-11e5-83ca-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "643a4fea-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "643cbff0-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '643a4fea-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "643cbff0-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "643b6772-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '643b6772-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."id" != '643e47e4-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '643cbff0-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-02 23:52:13.700886"], ["id", "643e47e4-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 33ms (Views: 20.2ms | ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 98"], ["email", "user.98@example.com"], ["password_digest", "$2a$04$/JMUjG8MR..4ZYF1cj.67.m4F8ZP0PYlYOZ7Z4aUJv7rI0ner.Zrm"], ["created_at", "2015-06-02 23:52:13.736158"], ["updated_at", "2015-06-02 23:52:13.736158"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 99"], ["email", "user.99@example.com"], ["password_digest", "$2a$04$/F0tEk6bX/z8efRj0SCPouG8f53toKYHlzMQIVM4OmmwRP3UeluCO"], ["created_at", "2015-06-02 23:52:13.747468"], ["updated_at", "2015-06-02 23:52:13.747468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.749848"], ["user_id", "6445fba6-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.750776"], ["updated_at", "2015-06-02 23:52:13.750776"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.756913"], ["updated_at", "2015-06-02 23:52:13.756913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6445fba6-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6449198a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6445fba6-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6449198a-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.761904"], ["updated_at", "2015-06-02 23:52:13.761904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6447a7da-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6449198a-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6447a7da-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6449198a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.767199"], ["updated_at", "2015-06-02 23:52:13.767199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 100"], ["email", "user.100@example.com"], ["password_digest", "$2a$04$xTOT0m2AM/eRefqYjJhl9.SjkXzMOk4AkYSFkbGYA73J6J5sOYHgy"], ["created_at", "2015-06-02 23:52:13.779370"], ["updated_at", "2015-06-02 23:52:13.779370"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 101"], ["email", "user.101@example.com"], ["password_digest", "$2a$04$tT05PfxbZjDK55RFm2AcrOrghhow4Z5hJcM7ZTb1EECWlI3uUwWeK"], ["created_at", "2015-06-02 23:52:13.789508"], ["updated_at", "2015-06-02 23:52:13.789508"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.791878"], ["user_id", "644c9218-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.793197"], ["updated_at", "2015-06-02 23:52:13.793197"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.799153"], ["updated_at", "2015-06-02 23:52:13.799153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '644c9218-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '644f7ed8-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "644c9218-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "644f7ed8-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.802484"], ["updated_at", "2015-06-02 23:52:13.802484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '644e0b0c-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '644f7ed8-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "644e0b0c-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "644f7ed8-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.805663"], ["updated_at", "2015-06-02 23:52:13.805663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.808247') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "87baa8a4-e077-46fc-8624-ad9f10b57d32"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.809537"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.810410"], ["id", "87baa8a4-e077-46fc-8624-ad9f10b57d32"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "644c9218-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '644c9218-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "644f7ed8-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "644f7ed8-0982-11e5-83ca-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "644c9218-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "644e0b0c-0982-11e5-83ca-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 5.0ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 102"], ["email", "user.102@example.com"], ["password_digest", "$2a$04$0Drrh2/9yQuy/XwudVdAie1Mf8C6w.WHmwBA1hMR.zIOkq/zEn42."], ["created_at", "2015-06-02 23:52:13.829917"], ["updated_at", "2015-06-02 23:52:13.829917"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 103"], ["email", "user.103@example.com"], ["password_digest", "$2a$04$EJ3z2jXLFbnFRQt6drmnG.aOjOQHdkBtGsnsFSkxkN8PBnX1jUN/i"], ["created_at", "2015-06-02 23:52:13.837652"], ["updated_at", "2015-06-02 23:52:13.837652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.839298"], ["user_id", "64543ab8-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.840039"], ["updated_at", "2015-06-02 23:52:13.840039"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.844216"], ["updated_at", "2015-06-02 23:52:13.844216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64543ab8-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64566130-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64543ab8-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64566130-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.847449"], ["updated_at", "2015-06-02 23:52:13.847449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64555ed4-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64566130-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64555ed4-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64566130-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.851579"], ["updated_at", "2015-06-02 23:52:13.851579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 104"], ["email", "user.104@example.com"], ["password_digest", "$2a$04$S6Ia0YrNsf.6eoMVYyT.suRSpHym1NqUluulfW3Rlk/k4nc1wMorq"], ["created_at", "2015-06-02 23:52:13.857032"], ["updated_at", "2015-06-02 23:52:13.857032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.858868"], ["user_id", "645858c8-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.859455"], ["updated_at", "2015-06-02 23:52:13.859455"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '64566130-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "64566130-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.864625"], ["updated_at", "2015-06-02 23:52:13.864625"], ["token", "rc6xFrihA-HpjKNiFCds-ZUl9eln1fMWBk10B37cFDY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 105"], ["email", "user.105@example.com"], ["password_digest", "$2a$04$rwYlJ3S1VMI0ybno.knm/uEBeJb9/xDo8.q0tFT99ceHhy0D.6GSe"], ["created_at", "2015-06-02 23:52:13.876397"], ["updated_at", "2015-06-02 23:52:13.876397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 106"], ["email", "user.106@example.com"], ["password_digest", "$2a$04$Or5vJ4eu72HY89fIzOUHnuZM6tydbfB7VSzukahFcFi5GWAiBwla6"], ["created_at", "2015-06-02 23:52:13.885856"], ["updated_at", "2015-06-02 23:52:13.885856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.888964"], ["user_id", "645b500a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.889863"], ["updated_at", "2015-06-02 23:52:13.889863"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.894315"], ["updated_at", "2015-06-02 23:52:13.894315"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '645b500a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '645e055c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "645b500a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "645e055c-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.898057"], ["updated_at", "2015-06-02 23:52:13.898057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '645cd39e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '645e055c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "645cd39e-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "645e055c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.901159"], ["updated_at", "2015-06-02 23:52:13.901159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 107"], ["email", "user.107@example.com"], ["password_digest", "$2a$04$8TtuRas9qhL8qjISjoaX/O6SWp3obu.7gKtlB.OyKE2qZ.QLenXUe"], ["created_at", "2015-06-02 23:52:13.909750"], ["updated_at", "2015-06-02 23:52:13.909750"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.913761"], ["user_id", "64608872-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.915869"], ["updated_at", "2015-06-02 23:52:13.915869"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '645e055c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "645e055c-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.925067"], ["updated_at", "2015-06-02 23:52:13.925067"], ["token", "M5hx-PyVOg9mdeoLEWoqtGPA6ytAQTnJUfkdwJ5LQvw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/645e055c-0982-11e5-83ca-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 16:52:13 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"M5hx-PyVOg9mdeoLEWoqtGPA6ytAQTnJUfkdwJ5LQvw", "organization_id"=>"645e055c-0982-11e5-83ca-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:13.929043') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f9a27f99-c2ce-4b9a-b304-23b156c6179d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:13.931868"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:13.933590"], ["id", "f9a27f99-c2ce-4b9a-b304-23b156c6179d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "645e055c-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64608872-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (1.9ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "M5hx-PyVOg9mdeoLEWoqtGPA6ytAQTnJUfkdwJ5LQvw"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "645e055c-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64608872-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '645e055c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "645e055c-0982-11e5-83ca-a8667f0424ad"], ["member_id", "64608872-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.950096"], ["updated_at", "2015-06-02 23:52:13.950096"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6462c1dc-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 26ms (Views: 0.9ms | ActiveRecord: 5.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 108"], ["email", "user.108@example.com"], ["password_digest", "$2a$04$rQzOBpDgFEiDsuTQPoC3VOfh1UI5qSeeTyIMN8.CebNXtHiQrcw0."], ["created_at", "2015-06-02 23:52:13.965099"], ["updated_at", "2015-06-02 23:52:13.965099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 109"], ["email", "user.109@example.com"], ["password_digest", "$2a$04$E0a4OM21E9pUBXuLfhzHSOYCymXOZwTHtIJyJX5ZynZTgStwRrUyq"], ["created_at", "2015-06-02 23:52:13.971447"], ["updated_at", "2015-06-02 23:52:13.971447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.974082"], ["user_id", "6468dfd6-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.975061"], ["updated_at", "2015-06-02 23:52:13.975061"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:13.980208"], ["updated_at", "2015-06-02 23:52:13.980208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6468dfd6-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '646b208e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6468dfd6-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "646b208e-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:13.983791"], ["updated_at", "2015-06-02 23:52:13.983791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6469d12a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '646b208e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6469d12a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "646b208e-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.988133"], ["updated_at", "2015-06-02 23:52:13.988133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 110"], ["email", "user.110@example.com"], ["password_digest", "$2a$04$.0vsTtk97K7uGEqZArJoNuOcBrbNztOz3cFCSzisHj/CS0dHwC1Um"], ["created_at", "2015-06-02 23:52:13.994689"], ["updated_at", "2015-06-02 23:52:13.994689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:13.996903"], ["user_id", "646d5e9e-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:13.997667"], ["updated_at", "2015-06-02 23:52:13.997667"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '646b208e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "646b208e-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.003208"], ["updated_at", "2015-06-02 23:52:14.003208"], ["token", "SgF_JuuLc9H0pU-ZRWIWTjIubUJAXU2XFpNajgLcIa0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/646b208e-0982-11e5-83ca-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 16:52:14 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"646b208e-0982-11e5-83ca-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:14.007041') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "17ce0ae1-afef-4684-96b0-5afe28c0d789"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:14.008591"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:14.009972"], ["id", "17ce0ae1-afef-4684-96b0-5afe28c0d789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "646b208e-0982-11e5-83ca-a8667f0424ad"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "646d5e9e-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 13ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 111"], ["email", "user.111@example.com"], ["password_digest", "$2a$04$Bcd7CkKiniSlw1tgKnKaNOFsiHaPTss8.HPqkN6Cv/MQTavjRF/.C"], ["created_at", "2015-06-02 23:52:14.026077"], ["updated_at", "2015-06-02 23:52:14.026077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 112"], ["email", "user.112@example.com"], ["password_digest", "$2a$04$slsVIZLYKhhYNAD3XZKRZO9Ezl5u5luCBXaHDrVl/hwujDif8109m"], ["created_at", "2015-06-02 23:52:14.032213"], ["updated_at", "2015-06-02 23:52:14.032213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:14.034500"], ["user_id", "64721f1a-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.035444"], ["updated_at", "2015-06-02 23:52:14.035444"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.040789"], ["updated_at", "2015-06-02 23:52:14.040789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64721f1a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64745de8-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64721f1a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64745de8-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.043996"], ["updated_at", "2015-06-02 23:52:14.043996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '647310e6-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64745de8-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "647310e6-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64745de8-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.048021"], ["updated_at", "2015-06-02 23:52:14.048021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 16:52:14 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 113"], ["email", "user.113@example.com"], ["password_digest", "$2a$04$zy5Ht3EFx0jwg4jrdMjiG.pxPU/DhFGGQLQi3yXZSfpcVBEkDGEmq"], ["created_at", "2015-06-02 23:52:14.058596"], ["updated_at", "2015-06-02 23:52:14.058596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 114"], ["email", "user.114@example.com"], ["password_digest", "$2a$04$ZAH5QWDs5qIFd7oMkhljlOAjaRy0OHZTaYz/C6xmG.G.3XN.cy99i"], ["created_at", "2015-06-02 23:52:14.065265"], ["updated_at", "2015-06-02 23:52:14.065265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:14.067576"], ["user_id", "64771fb0-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.068289"], ["updated_at", "2015-06-02 23:52:14.068289"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.072641"], ["updated_at", "2015-06-02 23:52:14.072641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64771fb0-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6479380e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64771fb0-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6479380e-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.075737"], ["updated_at", "2015-06-02 23:52:14.075737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64782414-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6479380e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64782414-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6479380e-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.078498"], ["updated_at", "2015-06-02 23:52:14.078498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/6479380e-0982-11e5-83ca-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 16:52:14 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"6479380e-0982-11e5-83ca-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:14.083954') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9f0a3a6a-d861-4f49-b2d9-57fab11708cf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:14.085431"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:14.086315"], ["id", "9f0a3a6a-d861-4f49-b2d9-57fab11708cf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6479380e-0982-11e5-83ca-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64771fb0-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '64771fb0-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "6479380e-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "6479380e-0982-11e5-83ca-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64771fb0-0982-11e5-83ca-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64782414-0982-11e5-83ca-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 3.1ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 115"], ["email", "user.115@example.com"], ["password_digest", "$2a$04$U1U8uknjK.GXQ7rsD.MS.ufDOj7PmBKz0eJSd2t92n7ibe7ac.v6W"], ["created_at", "2015-06-02 23:52:14.103393"], ["updated_at", "2015-06-02 23:52:14.103393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 116"], ["email", "user.116@example.com"], ["password_digest", "$2a$04$1EBSOuBAQiqbtVwaggWq6.uXR2Ziahlf1uIvJlppKbH8HuyapV8ju"], ["created_at", "2015-06-02 23:52:14.108694"], ["updated_at", "2015-06-02 23:52:14.108694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:14.110440"], ["user_id", "647de9bc-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.111077"], ["updated_at", "2015-06-02 23:52:14.111077"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.115972"], ["updated_at", "2015-06-02 23:52:14.115972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '647de9bc-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '647fd6be-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "647de9bc-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "647fd6be-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.119884"], ["updated_at", "2015-06-02 23:52:14.119884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '647ebcfc-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '647fd6be-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "647ebcfc-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "647fd6be-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.122928"], ["updated_at", "2015-06-02 23:52:14.122928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 16:52:14 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 117"], ["email", "user.117@example.com"], ["password_digest", "$2a$04$2ohW43542XfbU5.qWvnZieHso.D72oP1DX/6nKEhubZKV6qXkvqgu"], ["created_at", "2015-06-02 23:52:14.132728"], ["updated_at", "2015-06-02 23:52:14.132728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 118"], ["email", "user.118@example.com"], ["password_digest", "$2a$04$MjVt3twWNT4tIwnA/RlHEe7YLlgX4.aXWQltZdv3dugjIZVqdbjz6"], ["created_at", "2015-06-02 23:52:14.139167"], ["updated_at", "2015-06-02 23:52:14.139167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:14.141035"], ["user_id", "64826e92-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.141825"], ["updated_at", "2015-06-02 23:52:14.141825"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.147624"], ["updated_at", "2015-06-02 23:52:14.147624"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64826e92-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6484c5fc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64826e92-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6484c5fc-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.153346"], ["updated_at", "2015-06-02 23:52:14.153346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64836464-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6484c5fc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64836464-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "6484c5fc-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.156290"], ["updated_at", "2015-06-02 23:52:14.156290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/64858ae6-0982-11e5-83ca-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:14 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"64858ae6-0982-11e5-83ca-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:14.159159') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "83485cc3-e86a-43bf-abdd-86daf45e8b6a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:14.160821"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:14.161630"], ["id", "83485cc3-e86a-43bf-abdd-86daf45e8b6a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "64858ae6-0982-11e5-83ca-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64826e92-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6484c5fc-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '64826e92-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "6484c5fc-0982-11e5-83ca-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64826e92-0982-11e5-83ca-a8667f0424ad"]] Completed 200 OK in 10ms (Views: 1.3ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 119"], ["email", "user.119@example.com"], ["password_digest", "$2a$04$oyWNlOFFTppdMiVaQGE2BumoWejU/MWCv/taVqZiZ7zMo24z4LOge"], ["created_at", "2015-06-02 23:52:14.176310"], ["updated_at", "2015-06-02 23:52:14.176310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 120"], ["email", "user.120@example.com"], ["password_digest", "$2a$04$/QkV5hd96o53TCzE6b/da.XHrQLiXp2eFjlgb5enr5gE7PHeYUsX2"], ["created_at", "2015-06-02 23:52:14.181917"], ["updated_at", "2015-06-02 23:52:14.181917"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:14.184081"], ["user_id", "64890cc0-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.184908"], ["updated_at", "2015-06-02 23:52:14.184908"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.189584"], ["updated_at", "2015-06-02 23:52:14.189584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64890cc0-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '648b1eb6-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64890cc0-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "648b1eb6-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.193289"], ["updated_at", "2015-06-02 23:52:14.193289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6489e42e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '648b1eb6-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6489e42e-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "648b1eb6-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.196574"], ["updated_at", "2015-06-02 23:52:14.196574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 121"], ["email", "user.121@example.com"], ["password_digest", "$2a$04$miQzcDdR1OYvTgDcrllnbepDr/6gkZdXhiyfncLu8Ya3DBhpY2LWS"], ["created_at", "2015-06-02 23:52:14.203403"], ["updated_at", "2015-06-02 23:52:14.203403"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:14.205471"], ["user_id", "648d2c9c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.206290"], ["updated_at", "2015-06-02 23:52:14.206290"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '648b1eb6-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "648b1eb6-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.212007"], ["updated_at", "2015-06-02 23:52:14.212007"], ["token", "ch2mrTedkWCfqvM7-oMMp8X8gTpfrAIzmdMIeXl0aVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 16:52:14 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 122"], ["email", "user.122@example.com"], ["password_digest", "$2a$04$uCnQi5Ecc.6DOdgea6MueuE2kqqvBzXP8LM6NVdEt5Paq2MFtpfnK"], ["created_at", "2015-06-02 23:52:14.223900"], ["updated_at", "2015-06-02 23:52:14.223900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 123"], ["email", "user.123@example.com"], ["password_digest", "$2a$04$0s.nl8S9Ahdlo7M9ZjXFF.ZibIjSYk3hDT80o8LBl/cFn1jRPvg.S"], ["created_at", "2015-06-02 23:52:14.228976"], ["updated_at", "2015-06-02 23:52:14.228976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:14.230425"], ["user_id", "64905160-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.230971"], ["updated_at", "2015-06-02 23:52:14.230971"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.236470"], ["updated_at", "2015-06-02 23:52:14.236470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64905160-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64924eca-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64905160-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64924eca-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.241217"], ["updated_at", "2015-06-02 23:52:14.241217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64911096-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64924eca-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64911096-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64924eca-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.244293"], ["updated_at", "2015-06-02 23:52:14.244293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 124"], ["email", "user.124@example.com"], ["password_digest", "$2a$04$k9lEm3Sxd9hkViv5o2A6berMAsvbQEuIPCz.g3HUmsDnaOw9M6fG."], ["created_at", "2015-06-02 23:52:14.250491"], ["updated_at", "2015-06-02 23:52:14.250491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:14.252278"], ["user_id", "64946250-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.253342"], ["updated_at", "2015-06-02 23:52:14.253342"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '64924eca-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "64924eca-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.259766"], ["updated_at", "2015-06-02 23:52:14.259766"], ["token", "OfbxIvPMG8QNjumH5NEqRWFUR9TikZzbGYdnqBE7RXg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 16:52:14 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"OfbxIvPMG8QNjumH5NEqRWFUR9TikZzbGYdnqBE7RXg", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:14.263753') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7f0e7195-3e88-4a1f-81bb-6ec97266e6c3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:14.267088"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:14.268097"], ["id", "7f0e7195-3e88-4a1f-81bb-6ec97266e6c3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64946250-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "OfbxIvPMG8QNjumH5NEqRWFUR9TikZzbGYdnqBE7RXg"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "64924eca-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64946250-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64924eca-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "64924eca-0982-11e5-83ca-a8667f0424ad"], ["member_id", "64946250-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.275849"], ["updated_at", "2015-06-02 23:52:14.275849"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6495d5cc-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 125"], ["email", "user.125@example.com"], ["password_digest", "$2a$04$iNd4R7ZyJgPMpKbhn//u9O/klRS9GxzYFlPLCFOqA796yrIuq8OZG"], ["created_at", "2015-06-02 23:52:14.286876"], ["updated_at", "2015-06-02 23:52:14.286876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 126"], ["email", "user.126@example.com"], ["password_digest", "$2a$04$fSci7iXTaPA7hkJ/Jd5yuerz2UW1fufLKMDecBCxnpAlJXie5CCfi"], ["created_at", "2015-06-02 23:52:14.293379"], ["updated_at", "2015-06-02 23:52:14.293379"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:14.295519"], ["user_id", "6499f0ee-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.296358"], ["updated_at", "2015-06-02 23:52:14.296358"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.302506"], ["updated_at", "2015-06-02 23:52:14.302506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6499f0ee-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '649c5726-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6499f0ee-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "649c5726-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.306309"], ["updated_at", "2015-06-02 23:52:14.306309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '649aea80-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '649c5726-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "649aea80-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "649c5726-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.309839"], ["updated_at", "2015-06-02 23:52:14.309839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 127"], ["email", "user.127@example.com"], ["password_digest", "$2a$04$qhANl/Ty0kd.o1NpducmR.O7X.GuX3mLtYdFTKyG7jsfh3bugEkyS"], ["created_at", "2015-06-02 23:52:14.315101"], ["updated_at", "2015-06-02 23:52:14.315101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:14.317080"], ["user_id", "649e3e06-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.317786"], ["updated_at", "2015-06-02 23:52:14.317786"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '649c5726-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "649c5726-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.323674"], ["updated_at", "2015-06-02 23:52:14.323674"], ["token", "60efXICY2BfvBf0E7hRMW_-mPtYtutFQtdXGyrKOU-0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 16:52:14 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:14.327892') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "25a64731-3179-422b-9775-aa0e05f619ef"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:14.329375"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:14.330242"], ["id", "25a64731-3179-422b-9775-aa0e05f619ef"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "649e3e06-0982-11e5-83ca-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.355352"], ["updated_at", "2015-06-02 23:52:14.355352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '64a466a0-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "64a466a0-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.360289"], ["updated_at", "2015-06-02 23:52:14.360289"], ["token", "sn60yU_MXSgdcCR-5XL2vc5OytV8erKUQNM8u8gaBlk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.373429"], ["updated_at", "2015-06-02 23:52:14.373429"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '64a71e22-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "64a71e22-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.379399"], ["updated_at", "2015-06-02 23:52:14.379399"], ["token", "a4MuGmYN48jJQbCYjCRuvsBh8fnUvLGa96oCBuECeqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "64a71e22-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '64a71e22-0982-11e5-83ca-a8667f0424ad') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "64a71e22-0982-11e5-83ca-a8667f0424ae"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '64a71e22-0982-11e5-83ca-a8667f0424ae') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 128"], ["email", "user.128@example.com"], ["password_digest", "$2a$04$MTi2NikNNHpYzacXyX0DA.UNIhm9anSzyHIPRXCshWuUO2yRSQe2i"], ["created_at", "2015-06-02 23:52:14.408030"], ["updated_at", "2015-06-02 23:52:14.408030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.412103"], ["updated_at", "2015-06-02 23:52:14.412103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64ac681e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64ad0b16-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64ac681e-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64ad0b16-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.415219"], ["updated_at", "2015-06-02 23:52:14.415219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64ac681e-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "64ad0b16-0982-11e5-83ca-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64ac681e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64ad0b16-0982-11e5-83ca-a8667f0424ad') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "64ad0b16-0982-11e5-83ca-a8667f0424ae"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64ac681e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64ad0b16-0982-11e5-83ca-a8667f0424ae') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.436431"], ["updated_at", "2015-06-02 23:52:14.436431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '64b0c472-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "64b0c472-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.441833"], ["updated_at", "2015-06-02 23:52:14.441833"], ["token", "LJe8yVsJ1PByg2FCUVXO6Nvk8UIOEHDmAbgpcLO_i8w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms Sent mail to john@example.com (2.7ms) Date: Tue, 02 Jun 2015 16:52:14 -0700 From: from@example.com To: john@example.com Message-ID: <556e41ae6cff0_deed3fd5c046020096111@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/LJe8yVsJ1PByg2FCUVXO6Nvk8UIOEHDmAbgpcLO_i8w?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.454371"], ["updated_at", "2015-06-02 23:52:14.454371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '64b3783e-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "64b3783e-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.458938"], ["updated_at", "2015-06-02 23:52:14.458938"], ["token", "2eRjGnDuoypqVCN2FtY7juNSUxUZw_ktfsd5r5iKFqY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.7ms) Date: Tue, 02 Jun 2015 16:52:14 -0700 From: from@example.com To: john@example.com Message-ID: <556e41ae70e19_deed3fd5c0460200962bd@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/2eRjGnDuoypqVCN2FtY7juNSUxUZw_ktfsd5r5iKFqY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.469130"], ["updated_at", "2015-06-02 23:52:14.469130"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '64b5d78c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "64b5d78c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.477344"], ["updated_at", "2015-06-02 23:52:14.477344"], ["token", "gdabl-Lo8cXlk-VdRVG_AHYrNe2IhYojHjHpqzTrm-w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.2ms Sent mail to john@example.com (21.7ms) Date: Tue, 02 Jun 2015 16:52:14 -0700 From: from@example.com To: john@example.com Message-ID: <556e41ae761f6_deed3fd5c0460200963c1@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/gdabl-Lo8cXlk-VdRVG_AHYrNe2IhYojHjHpqzTrm-w?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.515523"], ["updated_at", "2015-06-02 23:52:14.515523"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '64bd12cc-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "64bd12cc-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.524243"], ["updated_at", "2015-06-02 23:52:14.524243"], ["token", "FqZdWLQ8WsT3ptj4t3svZjHNlNGuVkeJE7WHPT-h4yw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (1.7ms) Date: Tue, 02 Jun 2015 16:52:14 -0700 From: from@example.com To: john@example.com Message-ID: <556e41ae810b4_deed3fd5c04602009643c@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/FqZdWLQ8WsT3ptj4t3svZjHNlNGuVkeJE7WHPT-h4yw?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 129"], ["email", "user.129@example.com"], ["password_digest", "$2a$04$lEGgSCaOu48.8ER284lQnOEh.Wt6PiZWpX66SlEQXsg8n3oLuEAoK"], ["created_at", "2015-06-02 23:52:14.537411"], ["updated_at", "2015-06-02 23:52:14.537411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.544036"], ["updated_at", "2015-06-02 23:52:14.544036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64c02fe8-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64c13c30-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64c02fe8-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64c13c30-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.549791"], ["updated_at", "2015-06-02 23:52:14.549791"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '64c13c30-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "64c13c30-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.557011"], ["updated_at", "2015-06-02 23:52:14.557011"], ["token", "loW4-6sdpSn4Nk8KD90XvSYD3UEZiFOSFNf8S0ilTzM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64c02fe8-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64c13c30-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 130"], ["email", "user.130@example.com"], ["password_digest", "$2a$04$Quya4145bCHX/38RofNrBu9lVW0Xx3x5FTV9Vp6dboUvcMGJgQpNC"], ["created_at", "2015-06-02 23:52:14.569803"], ["updated_at", "2015-06-02 23:52:14.569803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.574750"], ["updated_at", "2015-06-02 23:52:14.574750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64c51c6a-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64c5e2a8-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64c51c6a-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64c5e2a8-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.578779"], ["updated_at", "2015-06-02 23:52:14.578779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '64c5e2a8-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "64c5e2a8-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.583855"], ["updated_at", "2015-06-02 23:52:14.583855"], ["token", "M6oGuLUl9O98cvlIN7ul7vaUc-WmxM9ovAAy0R-7Fsk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64c51c6a-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64c5e2a8-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 131"], ["email", "user.131@example.com"], ["password_digest", "$2a$04$/Xuz5xlwrt0pGJkAjOrQlu7qxpIn1NRULxvJp5knBeqGVxJTQ8o5."], ["created_at", "2015-06-02 23:52:14.592675"], ["updated_at", "2015-06-02 23:52:14.592675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.597903"], ["updated_at", "2015-06-02 23:52:14.597903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64c8acfe-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64c95d16-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64c8acfe-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64c95d16-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.601642"], ["updated_at", "2015-06-02 23:52:14.601642"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '64c95d16-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "64c95d16-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.611909"], ["updated_at", "2015-06-02 23:52:14.611909"], ["token", "YwK0frDipRz2YO-xaRUEjl4d722sO5c24aZIUL2T8eQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64c8acfe-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64c95d16-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 132"], ["email", "user.132@example.com"], ["password_digest", "$2a$04$9fzcvHInMv.wyQtGwvsPgOFvJZyuyJkvRcGmr2LlPMs3N/56Dmiku"], ["created_at", "2015-06-02 23:52:14.622250"], ["updated_at", "2015-06-02 23:52:14.622250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.626653"], ["updated_at", "2015-06-02 23:52:14.626653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64cd248c-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64cdbe10-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64cd248c-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64cdbe10-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.630348"], ["updated_at", "2015-06-02 23:52:14.630348"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '64cdbe10-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "64cdbe10-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.637559"], ["updated_at", "2015-06-02 23:52:14.637559"], ["token", "6WOVXqOqbHiIimCw-bJrPPurCKYJbNxpvirK7fRK21A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64cd248c-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64cdbe10-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 133"], ["email", "user.133@example.com"], ["password_digest", "$2a$04$lTWTQmFToOQUY86huAimjuFPI6Td98QdmNcBS3ZuWujI3QPLuob/K"], ["created_at", "2015-06-02 23:52:14.648056"], ["updated_at", "2015-06-02 23:52:14.648056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.652397"], ["updated_at", "2015-06-02 23:52:14.652397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64d10c1e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64d1ac82-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64d10c1e-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64d1ac82-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.656346"], ["updated_at", "2015-06-02 23:52:14.656346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64d10c1e-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64d1ac82-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 134"], ["email", "user.134@example.com"], ["password_digest", "$2a$04$wq40WYoWMWrb2lHs5if7Le2gFD3B7Qq1nqGPY9FCK2mXRbg.yuvES"], ["created_at", "2015-06-02 23:52:14.664622"], ["updated_at", "2015-06-02 23:52:14.664622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.668696"], ["updated_at", "2015-06-02 23:52:14.668696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '64d43f38-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "64d43f38-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.675433"], ["updated_at", "2015-06-02 23:52:14.675433"], ["token", "rj_lWrmDkDvYzaFOvXRagWTQGg2v1QKiXliFaG_HcPY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64d38da4-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64d43f38-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 135"], ["email", "user.135@example.com"], ["password_digest", "$2a$04$sdwGpS1clOeDHuYuFDBt4.H771oQwhADLMAp9LavXWEyb87Bduzja"], ["created_at", "2015-06-02 23:52:14.689287"], ["updated_at", "2015-06-02 23:52:14.689287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.694789"], ["updated_at", "2015-06-02 23:52:14.694789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '64d827ec-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "64d827ec-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.700855"], ["updated_at", "2015-06-02 23:52:14.700855"], ["token", "lrAC6QhVQKfd0gSyEtC2sIuoW0BuJUkrIePSmrCWTvk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64d76078-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64d827ec-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 136"], ["email", "user.136@example.com"], ["password_digest", "$2a$04$5t0KhiHjAU3iMiatsmeDTuodqQO6mATdNah5zNan0UEvtLGUDOtuS"], ["created_at", "2015-06-02 23:52:14.711608"], ["updated_at", "2015-06-02 23:52:14.711608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.716757"], ["updated_at", "2015-06-02 23:52:14.716757"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '64dba0ac-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "64dba0ac-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.725688"], ["updated_at", "2015-06-02 23:52:14.725688"], ["token", "UyiRIQmIdkuDQr0RLn1NKxA7sW9ICEblfW5k5xQq9cw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64dac362-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64dba0ac-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 137"], ["email", "user.137@example.com"], ["password_digest", "$2a$04$Zbk3pPMSJcATN2dlhXoTsOWrVQ/TewCxgfI6OMXYBHXA6VXIR6hlm"], ["created_at", "2015-06-02 23:52:14.737735"], ["updated_at", "2015-06-02 23:52:14.737735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.743254"], ["updated_at", "2015-06-02 23:52:14.743254"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '64df8a96-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "64df8a96-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.748252"], ["updated_at", "2015-06-02 23:52:14.748252"], ["token", "D3MKV8MkQN3VNe_kQOTVEi1hmdfWjW26na_3mWvpX5I"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64decab6-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64df8a96-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 138"], ["email", "user.138@example.com"], ["password_digest", "$2a$04$2yTfJ/Y/.B3BupV/DhrkPOh2W03O5oDVRWmUoW4A4A8NzNwL.osI2"], ["created_at", "2015-06-02 23:52:14.760201"], ["updated_at", "2015-06-02 23:52:14.760201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.766020"], ["updated_at", "2015-06-02 23:52:14.766020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64e244fc-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64e3064e-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 139"], ["email", "user.139@example.com"], ["password_digest", "$2a$04$W8kQIeS1MOMJsJ0j/Va2KuymDhtevUmi7GRBP87lSlIBCpq7C/xVS"], ["created_at", "2015-06-02 23:52:14.780332"], ["updated_at", "2015-06-02 23:52:14.780332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.787358"], ["updated_at", "2015-06-02 23:52:14.787358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64e57898-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64e65768-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64e57898-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64e65768-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.791156"], ["updated_at", "2015-06-02 23:52:14.791156"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '64e65768-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "64e65768-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.799743"], ["updated_at", "2015-06-02 23:52:14.799743"], ["token", "aESrEXR7tH1NAcJppG9hCioMhZ8QFsrU7JhdbpgizWI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64e57898-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64e65768-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 140"], ["email", "user.140@example.com"], ["password_digest", "$2a$04$EmoAelPONvPjVZ4el5CDA.8Ffz5ocZpB4LwXLbbd4Sc5N2STV/SQa"], ["created_at", "2015-06-02 23:52:14.812352"], ["updated_at", "2015-06-02 23:52:14.812352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.816855"], ["updated_at", "2015-06-02 23:52:14.816855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64ea210e-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64eac62c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64ea210e-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64eac62c-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.820208"], ["updated_at", "2015-06-02 23:52:14.820208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '64eac62c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "64eac62c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.825219"], ["updated_at", "2015-06-02 23:52:14.825219"], ["token", "BMd3ePf45-EKvWSMfzZ9X5FwQmQmCWjQF8JfbylqrIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64ea210e-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64eac62c-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 141"], ["email", "user.141@example.com"], ["password_digest", "$2a$04$BgwK/CYxPglnBGsg1p.GGODl97R7JzOIdsPznFBW4Bk7Na4iP/nGi"], ["created_at", "2015-06-02 23:52:14.837118"], ["updated_at", "2015-06-02 23:52:14.837118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.841528"], ["updated_at", "2015-06-02 23:52:14.841528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64ede1f4-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64ee8802-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64ede1f4-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64ee8802-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.844279"], ["updated_at", "2015-06-02 23:52:14.844279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '64ee8802-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "64ee8802-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.849421"], ["updated_at", "2015-06-02 23:52:14.849421"], ["token", "dPfpxVJTCsSdHG9eXK72bVIplSj52H3QOW5lbpJ2s_8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64ede1f4-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64ee8802-0982-11e5-83ca-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 142"], ["email", "user.142@example.com"], ["password_digest", "$2a$04$xTGG/XQp7tnBqNPKH6WXOeeTPrkgnUpEd5LN.xI/x3oxl0fmvBBMm"], ["created_at", "2015-06-02 23:52:14.860064"], ["updated_at", "2015-06-02 23:52:14.860064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.863749"], ["updated_at", "2015-06-02 23:52:14.863749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64f15eec-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64f1ec7c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64f15eec-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64f1ec7c-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.867423"], ["updated_at", "2015-06-02 23:52:14.867423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '64f1ec7c-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "64f1ec7c-0982-11e5-83ca-a8667f0424ad"], ["created_at", "2015-06-02 23:52:14.873139"], ["updated_at", "2015-06-02 23:52:14.873139"], ["token", "8o_Mmt1RzIv6LeNpNGciFo4gMSr1HNCmhEqbTEfNeik"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64f15eec-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64f1ec7c-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 143"], ["email", "user.143@example.com"], ["password_digest", "$2a$04$gORa/WO2zUO/xcjnEsaM6eF2nCi7i6RLixS665TqZThL//sQIAUMC"], ["created_at", "2015-06-02 23:52:14.885022"], ["updated_at", "2015-06-02 23:52:14.885022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.889812"], ["updated_at", "2015-06-02 23:52:14.889812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64f53b34-0982-11e5-83ca-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '64f5e6ec-0982-11e5-83ca-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64f53b34-0982-11e5-83ca-a8667f0424ad"], ["organization_id", "64f5e6ec-0982-11e5-83ca-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:14.893222"], ["updated_at", "2015-06-02 23:52:14.893222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '64f53b34-0982-11e5-83ca-a8667f0424ad' LIMIT 1 [["organization_id", "64f5e6ec-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.899738"], ["updated_at", "2015-06-02 23:52:14.899738"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.921533"], ["updated_at", "2015-06-02 23:52:14.921533"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.938267"], ["updated_at", "2015-06-02 23:52:14.938267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.974856"], ["updated_at", "2015-06-02 23:52:14.974856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6502f13e-0982-11e5-83ca-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:14.982888"], ["updated_at", "2015-06-02 23:52:14.982888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$GqIGmH818wD8fiIKhwwKDufVKoaKJO7ZL8bZQtui4MI/mk8xfeb1i"], ["created_at", "2015-06-02 23:52:43.085065"], ["updated_at", "2015-06-02 23:52:43.085065"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:43.121004"], ["user_id", "75c4b930-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.131621"], ["updated_at", "2015-06-02 23:52:43.131621"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.150014"], ["updated_at", "2015-06-02 23:52:43.150014"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75c4b930-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '75cfdfe0-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75c4b930-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "75cfdfe0-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:43.220786"], ["updated_at", "2015-06-02 23:52:43.220786"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-1" for 127.0.0.1 at 2015-06-02 16:52:43 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:43.333652') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4b7542bc-dc5a-4fbc-b0e3-06e5703b469d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:43.345821"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:43.347449"], ["id", "4b7542bc-dc5a-4fbc-b0e3-06e5703b469d"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-1"]] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "75c4b930-0982-11e5-b4c7-a8667f0424ad"]] Clubhouse::Membership Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '75c4b930-0982-11e5-b4c7-a8667f0424ad' LIMIT 1 [["organization_id", "75cfdfe0-0982-11e5-b4c7-a8667f0424ad"]] Completed 200 OK in 98ms (Views: 13.5ms | ActiveRecord: 4.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$kAGNtO.kAO5jr97AvQKTie8mry3o6e8xep5H1HGsnRt3ZWH8IoHyq"], ["created_at", "2015-06-02 23:52:43.444440"], ["updated_at", "2015-06-02 23:52:43.444440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:43.446724"], ["user_id", "75fb0b84-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.447702"], ["updated_at", "2015-06-02 23:52:43.447702"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.467506"], ["updated_at", "2015-06-02 23:52:43.467506"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75fb0b84-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '75feaf50-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (7.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75fb0b84-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "75feaf50-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:43.489718"], ["updated_at", "2015-06-02 23:52:43.489718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:52:43 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)  (4.0ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$N2jgsnEKKlFM1A9skrxKVeH.2ji9.fye5CGQs9lFUQcafdjsY6unG"], ["created_at", "2015-06-02 23:52:43.543094"], ["updated_at", "2015-06-02 23:52:43.543094"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:43.547700"], ["user_id", "760a42de-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.550850"], ["updated_at", "2015-06-02 23:52:43.550850"], ["client", "App"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.561819"], ["updated_at", "2015-06-02 23:52:43.561819"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '760a42de-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '760d0f28-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "760a42de-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "760d0f28-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:43.574633"], ["updated_at", "2015-06-02 23:52:43.574633"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/760d0f28-0982-11e5-b4c7-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:43 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"760d0f28-0982-11e5-b4c7-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:43.590836') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "61afa62c-a087-4b79-9a74-021b4fe6b66a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:43.593087"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:43.594093"], ["id", "61afa62c-a087-4b79-9a74-021b4fe6b66a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "760d0f28-0982-11e5-b4c7-a8667f0424ad"]] User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "760a42de-0982-11e5-b4c7-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '760a42de-0982-11e5-b4c7-a8667f0424ad' LIMIT 1 [["organization_id", "760d0f28-0982-11e5-b4c7-a8667f0424ad"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "760d0f28-0982-11e5-b4c7-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 20ms (ActiveRecord: 4.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$4/wbfUuoI9.soe8Hj7/uEOCbMqeprxRA3o.oAdm3NjhXLgm1tO552"], ["created_at", "2015-06-02 23:52:43.619870"], ["updated_at", "2015-06-02 23:52:43.619870"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:43.623054"], ["user_id", "7615d55e-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.624434"], ["updated_at", "2015-06-02 23:52:43.624434"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.631720"], ["updated_at", "2015-06-02 23:52:43.631720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7615d55e-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7617a9f6-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7615d55e-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "7617a9f6-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:43.636813"], ["updated_at", "2015-06-02 23:52:43.636813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:52:43 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$j0sBpDVDEJkCanWC2nsCPu6orXE.AK9gnBxXY440HkmgoHZwxOIOa"], ["created_at", "2015-06-02 23:52:43.653089"], ["updated_at", "2015-06-02 23:52:43.653089"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:43.658439"], ["user_id", "761af804-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.661313"], ["updated_at", "2015-06-02 23:52:43.661313"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.674100"], ["updated_at", "2015-06-02 23:52:43.674100"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '761af804-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '761e4a40-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "761af804-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "761e4a40-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:43.686020"], ["updated_at", "2015-06-02 23:52:43.686020"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:52:43 -0700  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$QUMn3j.Lwuds/wLPXsp/F.j6o7lYZjpMr7xkzsglVLSPiLGysN58i"], ["created_at", "2015-06-02 23:52:43.705428"], ["updated_at", "2015-06-02 23:52:43.705428"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:43.708228"], ["user_id", "7622e05a-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.709025"], ["updated_at", "2015-06-02 23:52:43.709025"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.717026"], ["updated_at", "2015-06-02 23:52:43.717026"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7622e05a-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7624c154-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7622e05a-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "7624c154-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:43.727074"], ["updated_at", "2015-06-02 23:52:43.727074"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:52:43 -0700  (0.2ms) ROLLBACK  (2.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$pb9ELjx4qf3Ra9Nb6jeucerKAg03qX4wsXASPxOo7LWYKP1mMhCcq"], ["created_at", "2015-06-02 23:52:43.764482"], ["updated_at", "2015-06-02 23:52:43.764482"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:43.769344"], ["user_id", "762be7ea-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.770196"], ["updated_at", "2015-06-02 23:52:43.770196"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.777216"], ["updated_at", "2015-06-02 23:52:43.777216"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '762be7ea-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '762dcbf0-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "762be7ea-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "762dcbf0-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:43.787523"], ["updated_at", "2015-06-02 23:52:43.787523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-7" for 127.0.0.1 at 2015-06-02 16:52:43 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$VokL4NzpY/BA3m.8QUzF3Of.dIUDjhfpenhpu6LVxk6ANzvO2OTQO"], ["created_at", "2015-06-02 23:52:43.798730"], ["updated_at", "2015-06-02 23:52:43.798730"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:43.803684"], ["user_id", "76314410-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.805282"], ["updated_at", "2015-06-02 23:52:43.805282"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.822267"], ["updated_at", "2015-06-02 23:52:43.822267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.0ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76314410-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7634eaa2-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76314410-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "7634eaa2-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:43.832273"], ["updated_at", "2015-06-02 23:52:43.832273"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$4cH4BXGCwaZqE2AVYGDugeTTbZO0ba8uxRqvqbHmJXBP3YG9pXEv."], ["created_at", "2015-06-02 23:52:43.848017"], ["updated_at", "2015-06-02 23:52:43.848017"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.856354"], ["updated_at", "2015-06-02 23:52:43.856354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7638a098-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7639e3cc-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7638a098-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "7639e3cc-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.861729"], ["updated_at", "2015-06-02 23:52:43.861729"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:52:43 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:43.868842') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e928b454-b855-4be7-a9ed-433032ff670d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:43.870740"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:43.872534"], ["id", "e928b454-b855-4be7-a9ed-433032ff670d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "76314410-0982-11e5-b4c7-a8667f0424ad"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "76314410-0982-11e5-b4c7-a8667f0424ad"]] Completed 200 OK in 36ms (Views: 3.9ms | ActiveRecord: 1.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$Zp5MhGvQvQPB.ZXQK/.iX.8Y.TD.9P4ghZwqr2hVZClMLaqcjrBD2"], ["created_at", "2015-06-02 23:52:43.914663"], ["updated_at", "2015-06-02 23:52:43.914663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:43.922666"], ["user_id", "7643534e-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.925249"], ["updated_at", "2015-06-02 23:52:43.925249"], ["client", "App"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.944695"], ["updated_at", "2015-06-02 23:52:43.944695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7643534e-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '76475e44-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7643534e-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "76475e44-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:43.949921"], ["updated_at", "2015-06-02 23:52:43.949921"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$hSBtAEtPy9tDBq2IZXZz4O7Eti8RG.Uyh5HgvRZx2wm3bvL3Vz.Iq"], ["created_at", "2015-06-02 23:52:43.958595"], ["updated_at", "2015-06-02 23:52:43.958595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:43.963459"], ["updated_at", "2015-06-02 23:52:43.963459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76497580-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '764a47e4-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76497580-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "764a47e4-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.970627"], ["updated_at", "2015-06-02 23:52:43.970627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:52:43 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$SpavZhsZ/H7vPTWhiIlOEeKc3y3eEUSmoA3ilB8/3Ou3R49frNxVC"], ["created_at", "2015-06-02 23:52:43.986083"], ["updated_at", "2015-06-02 23:52:43.986083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:43.990499"], ["user_id", "764dbfdc-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:43.995955"], ["updated_at", "2015-06-02 23:52:43.995955"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.006279"], ["updated_at", "2015-06-02 23:52:44.006279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '764dbfdc-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7650e1e4-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "764dbfdc-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "7650e1e4-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.011384"], ["updated_at", "2015-06-02 23:52:44.011384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$TiIthW87/wyFguSfu/77muF2AI0PdV3sgZIW2pqSaNQBMD7448Q4O"], ["created_at", "2015-06-02 23:52:44.023162"], ["updated_at", "2015-06-02 23:52:44.023162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.025483"], ["user_id", "76535adc-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.026289"], ["updated_at", "2015-06-02 23:52:44.026289"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.030928"], ["updated_at", "2015-06-02 23:52:44.030928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76535adc-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '76547e76-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76535adc-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "76547e76-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.034441"], ["updated_at", "2015-06-02 23:52:44.034441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-13" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-13", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:44.037944') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "305fb9e7-295f-417f-9be3-75fb4da64b6b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:44.040044"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:44.041141"], ["id", "305fb9e7-295f-417f-9be3-75fb4da64b6b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "76535adc-0982-11e5-b4c7-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '76535adc-0982-11e5-b4c7-a8667f0424ad' LIMIT 1 [["organization_id", "76547e76-0982-11e5-b4c7-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '76547e76-0982-11e5-b4c7-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 24ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$Z46cFtuTKnvEf3ZNlHPrteE7DuoA4uhMslAKm3gXCa1AjX0FvvQIG"], ["created_at", "2015-06-02 23:52:44.070248"], ["updated_at", "2015-06-02 23:52:44.070248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.073056"], ["user_id", "765a85a0-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.073899"], ["updated_at", "2015-06-02 23:52:44.073899"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.079192"], ["updated_at", "2015-06-02 23:52:44.079192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '765a85a0-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '765bdfcc-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "765a85a0-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "765bdfcc-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.082833"], ["updated_at", "2015-06-02 23:52:44.082833"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-14" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-14", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:44.085938') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "13e8b7b3-8eec-43fb-8d1a-a175d9ee0b21"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:44.087336"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:44.088160"], ["id", "13e8b7b3-8eec-43fb-8d1a-a175d9ee0b21"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-14"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "765a85a0-0982-11e5-b4c7-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '765a85a0-0982-11e5-b4c7-a8667f0424ad' LIMIT 1 [["organization_id", "765bdfcc-0982-11e5-b4c7-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '765bdfcc-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:52:44.098082"], ["id", "765bdfcc-0982-11e5-b4c7-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$F0hTB9XXOEtQmK7NEmmf..krHGf6FeOpT2CbfU14p1JYjG7psxgw."], ["created_at", "2015-06-02 23:52:44.109412"], ["updated_at", "2015-06-02 23:52:44.109412"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.112127"], ["user_id", "76608928-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.113141"], ["updated_at", "2015-06-02 23:52:44.113141"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.119069"], ["updated_at", "2015-06-02 23:52:44.119069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76608928-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7661faec-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76608928-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "7661faec-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.123060"], ["updated_at", "2015-06-02 23:52:44.123060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$bnPEaSp4mvzvyEjgqWenOeGNJTrrOeY7mPGGv7bajUBiiS4MtntK."], ["created_at", "2015-06-02 23:52:44.133803"], ["updated_at", "2015-06-02 23:52:44.133803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.136004"], ["user_id", "766437c6-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.136685"], ["updated_at", "2015-06-02 23:52:44.136685"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.142031"], ["updated_at", "2015-06-02 23:52:44.142031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '766437c6-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '76657bf4-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "766437c6-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "76657bf4-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.145621"], ["updated_at", "2015-06-02 23:52:44.145621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/76657bf4-0982-11e5-b4c7-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"76657bf4-0982-11e5-b4c7-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:44.149177') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3d8501ef-8194-4d1b-80e0-98d872ab8a8a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:44.150951"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:44.151870"], ["id", "3d8501ef-8194-4d1b-80e0-98d872ab8a8a"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "76657bf4-0982-11e5-b4c7-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "766437c6-0982-11e5-b4c7-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '766437c6-0982-11e5-b4c7-a8667f0424ad' LIMIT 1 [["organization_id", "76657bf4-0982-11e5-b4c7-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '76657bf4-0982-11e5-b4c7-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$iStX7NKLmsUEtS/v5wyleOIQ4sEuLYghWpxdCfxCYksOJaNS3Bg2e"], ["created_at", "2015-06-02 23:52:44.171609"], ["updated_at", "2015-06-02 23:52:44.171609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.173481"], ["user_id", "7669f774-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.174169"], ["updated_at", "2015-06-02 23:52:44.174169"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.178807"], ["updated_at", "2015-06-02 23:52:44.178807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7669f774-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '766b1c6c-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7669f774-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "766b1c6c-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.183660"], ["updated_at", "2015-06-02 23:52:44.183660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/766b1c6c-0982-11e5-b4c7-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"766b1c6c-0982-11e5-b4c7-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:44.187199') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3121db6f-4d53-4179-b723-99c2b641f454"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:44.188849"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:44.189725"], ["id", "3121db6f-4d53-4179-b723-99c2b641f454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "766b1c6c-0982-11e5-b4c7-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7669f774-0982-11e5-b4c7-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7669f774-0982-11e5-b4c7-a8667f0424ad' LIMIT 1 [["organization_id", "766b1c6c-0982-11e5-b4c7-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '766b1c6c-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:52:44.197661"], ["id", "766b1c6c-0982-11e5-b4c7-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$kjDCyKc7Ov6k5PmL039fEevHKeyMTeg.fkOY0IYW3IDbwKCTq6aau"], ["created_at", "2015-06-02 23:52:44.209682"], ["updated_at", "2015-06-02 23:52:44.209682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.211940"], ["user_id", "766fca00-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.212920"], ["updated_at", "2015-06-02 23:52:44.212920"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.218710"], ["updated_at", "2015-06-02 23:52:44.218710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '766fca00-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '767130c0-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "766fca00-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "767130c0-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.223300"], ["updated_at", "2015-06-02 23:52:44.223300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-18" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:44.226425') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "73e3495d-5104-4db4-96da-f95189d194e1"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:44.227955"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:44.229234"], ["id", "73e3495d-5104-4db4-96da-f95189d194e1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-18"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "766fca00-0982-11e5-b4c7-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '766fca00-0982-11e5-b4c7-a8667f0424ad' LIMIT 1 [["organization_id", "767130c0-0982-11e5-b4c7-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "767130c0-0982-11e5-b4c7-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$x0HJ0xNZZVJ7bGmG4Qmunu4R4wa1B/Pf6UOXwr0sM7uP/fvVu7vJS"], ["created_at", "2015-06-02 23:52:44.244933"], ["updated_at", "2015-06-02 23:52:44.244933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.247204"], ["user_id", "767530c6-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.248028"], ["updated_at", "2015-06-02 23:52:44.248028"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.253919"], ["updated_at", "2015-06-02 23:52:44.253919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '767530c6-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '76768aca-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "767530c6-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "76768aca-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.257599"], ["updated_at", "2015-06-02 23:52:44.257599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$Nw8oZ4gKd2TpCN/HhW8qh.LVn0Ycqh0pLn1YcJAm7ad0XVqb5UTK."], ["created_at", "2015-06-02 23:52:44.267846"], ["updated_at", "2015-06-02 23:52:44.267846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.270394"], ["user_id", "7678b390-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.271197"], ["updated_at", "2015-06-02 23:52:44.271197"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.276093"], ["updated_at", "2015-06-02 23:52:44.276093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7678b390-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7679ecb0-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7678b390-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "7679ecb0-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.280122"], ["updated_at", "2015-06-02 23:52:44.280122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7679ecb0-0982-11e5-b4c7-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"7679ecb0-0982-11e5-b4c7-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:44.284431') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "01bbd93e-1d37-4543-b9ad-5728e27a6c5c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:44.286185"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:44.287065"], ["id", "01bbd93e-1d37-4543-b9ad-5728e27a6c5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7679ecb0-0982-11e5-b4c7-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7678b390-0982-11e5-b4c7-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7678b390-0982-11e5-b4c7-a8667f0424ad' LIMIT 1 [["organization_id", "7679ecb0-0982-11e5-b4c7-a8667f0424ad"]] Completed 200 OK in 20ms (Views: 1.1ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$B3UqXFgLgccjOm6Gx7kYk.mBE5i.raD9Q/I7QX38fubHu/x3bM1QW"], ["created_at", "2015-06-02 23:52:44.313031"], ["updated_at", "2015-06-02 23:52:44.313031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.315244"], ["user_id", "767f9408-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.315979"], ["updated_at", "2015-06-02 23:52:44.315979"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.321250"], ["updated_at", "2015-06-02 23:52:44.321250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '767f9408-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7680cbfc-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "767f9408-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "7680cbfc-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.324860"], ["updated_at", "2015-06-02 23:52:44.324860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$UlFcEJ18WviKZlC/alK4C.sa7Jk.mqR0Ys5pGi6zhAaZo.ZLTU5le"], ["created_at", "2015-06-02 23:52:44.334508"], ["updated_at", "2015-06-02 23:52:44.334508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.336339"], ["user_id", "7682d384-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.336980"], ["updated_at", "2015-06-02 23:52:44.336980"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.342859"], ["updated_at", "2015-06-02 23:52:44.342859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7682d384-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '76841ee2-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7682d384-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "76841ee2-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.347150"], ["updated_at", "2015-06-02 23:52:44.347150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$Kskp11V1SrsoQq/Vf4/62eo.z9NGG4b9JoCldUfltRxu9GtfnWHkO"], ["created_at", "2015-06-02 23:52:44.357116"], ["updated_at", "2015-06-02 23:52:44.357116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.359141"], ["user_id", "76864bc2-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.359782"], ["updated_at", "2015-06-02 23:52:44.359782"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.364345"], ["updated_at", "2015-06-02 23:52:44.364345"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76864bc2-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '76876728-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76864bc2-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "76876728-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.369331"], ["updated_at", "2015-06-02 23:52:44.369331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:44.373472') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3120a610-6894-42ec-a3b0-f6fd121c6980"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:44.375315"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:44.376403"], ["id", "3120a610-6894-42ec-a3b0-f6fd121c6980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "76864bc2-0982-11e5-b4c7-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms (ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$7P5BtKn9GlfArUUwQDfMz.oTiTmQUfIKpQt3tbp5JhtAwP7j1w7DG"], ["created_at", "2015-06-02 23:52:44.396674"], ["updated_at", "2015-06-02 23:52:44.396674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:52:44.398549"], ["user_id", "768c517a-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.399247"], ["updated_at", "2015-06-02 23:52:44.399247"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.403755"], ["updated_at", "2015-06-02 23:52:44.403755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '768c517a-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '768d744c-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "768c517a-0982-11e5-b4c7-a8667f0424ad"], ["organization_id", "768d744c-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:52:44.408676"], ["updated_at", "2015-06-02 23:52:44.408676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:52:44 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:52:44.412681') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2d2dbb83-6e70-45c8-a6b9-274fa1ab399c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:52:44.414305"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:52:44.415309"], ["id", "2d2dbb83-6e70-45c8-a6b9-274fa1ab399c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "768c517a-0982-11e5-b4c7-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:52:44.432138"], ["updated_at", "2015-06-02 23:52:44.432138"]] Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '768c517a-0982-11e5-b4c7-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '76920174-0982-11e5-b4c7-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "768c517a-0982-11e5-b4c7-a8667f0424ad"], ["admin", "t"], ["organization_id", "76920174-0982-11e5-b4c7-a8667f0424ad"], ["created_at", "2015-06-02 23:52:44.440729"], ["updated_at", "2015-06-02 23:52:44.440729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 33ms (Views: 0.9ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$xjuJ6xF.pFU4P3IPPh6SXuCu6CRDLSZJVQPSfYNYGhly3AJ3V1iAa"], ["created_at", "2015-06-02 23:53:12.464010"], ["updated_at", "2015-06-02 23:53:12.464010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.499380"], ["user_id", "87478cf0-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.510599"], ["updated_at", "2015-06-02 23:53:12.510599"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.524249"], ["updated_at", "2015-06-02 23:53:12.524249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87478cf0-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '875052ae-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87478cf0-0982-11e5-8948-a8667f0424ad"], ["organization_id", "875052ae-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.537410"], ["updated_at", "2015-06-02 23:53:12.537410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:53:12 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$U3cYae.iS6dtajeL5kcYeuYmy.WhHqZULudkfpKV6St44vS/KWN/i"], ["created_at", "2015-06-02 23:53:12.576441"], ["updated_at", "2015-06-02 23:53:12.576441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.578322"], ["user_id", "87583424-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.579175"], ["updated_at", "2015-06-02 23:53:12.579175"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.584448"], ["updated_at", "2015-06-02 23:53:12.584448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87583424-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87596bd2-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87583424-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87596bd2-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.587795"], ["updated_at", "2015-06-02 23:53:12.587795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:53:12 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (1.0ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:12.591723') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "915062c8-52e7-4fac-a262-86baf5ed69aa"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:12.601265"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:12.602874"], ["id", "915062c8-52e7-4fac-a262-86baf5ed69aa"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "87583424-0982-11e5-8948-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.639195"], ["updated_at", "2015-06-02 23:53:12.639195"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87583424-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8761cd9a-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87583424-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["organization_id", "8761cd9a-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.644266"], ["updated_at", "2015-06-02 23:53:12.644266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 64ms (Views: 9.4ms | ActiveRecord: 4.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$L0857iqmSlJJoLGi6Eq/O.F8OfYItnfaD/sXdsWdgeawE1ZW6C6P."], ["created_at", "2015-06-02 23:53:12.666544"], ["updated_at", "2015-06-02 23:53:12.666544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.668467"], ["user_id", "8765f6ae-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.669156"], ["updated_at", "2015-06-02 23:53:12.669156"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.675030"], ["updated_at", "2015-06-02 23:53:12.675030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8765f6ae-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '876745e0-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8765f6ae-0982-11e5-8948-a8667f0424ad"], ["organization_id", "876745e0-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.679561"], ["updated_at", "2015-06-02 23:53:12.679561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:53:12 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:12.686643') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3526f6f5-b068-4ff6-b3f8-c31a9154d5a0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:12.689588"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:12.690854"], ["id", "3526f6f5-b068-4ff6-b3f8-c31a9154d5a0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8765f6ae-0982-11e5-8948-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 27ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$qg/Am/dE06kfQeRgq2QcIO0yvXQRGm3t0cZpa/sYoq7VP5s246F.K"], ["created_at", "2015-06-02 23:53:12.722433"], ["updated_at", "2015-06-02 23:53:12.722433"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.725883"], ["user_id", "876e9ae8-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.727252"], ["updated_at", "2015-06-02 23:53:12.727252"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.735076"], ["updated_at", "2015-06-02 23:53:12.735076"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '876e9ae8-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87707656-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "876e9ae8-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87707656-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.739920"], ["updated_at", "2015-06-02 23:53:12.739920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:53:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$4wIXXlv4Beo4g/SyhE57weWp9mvLWEv4wkamLmS0e6v2uxaxU5nhC"], ["created_at", "2015-06-02 23:53:12.751158"], ["updated_at", "2015-06-02 23:53:12.751158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.753914"], ["user_id", "8772f58e-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.755113"], ["updated_at", "2015-06-02 23:53:12.755113"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.759982"], ["updated_at", "2015-06-02 23:53:12.759982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8772f58e-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87743250-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8772f58e-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87743250-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.763176"], ["updated_at", "2015-06-02 23:53:12.763176"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/87743250-0982-11e5-8948-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:53:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"87743250-0982-11e5-8948-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:12.768745') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e1882b75-e916-4047-8119-8fcc55429c93"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:12.770924"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:12.771957"], ["id", "e1882b75-e916-4047-8119-8fcc55429c93"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "87743250-0982-11e5-8948-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8772f58e-0982-11e5-8948-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8772f58e-0982-11e5-8948-a8667f0424ad' LIMIT 1 [["organization_id", "87743250-0982-11e5-8948-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "87743250-0982-11e5-8948-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$QU11Tr1tKfx/6vPPDtlpS.f6UqQgFaxHJafqAjQ3JE5ic7LMpbnLS"], ["created_at", "2015-06-02 23:53:12.790173"], ["updated_at", "2015-06-02 23:53:12.790173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.792038"], ["user_id", "8778d2a6-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.792713"], ["updated_at", "2015-06-02 23:53:12.792713"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.797032"], ["updated_at", "2015-06-02 23:53:12.797032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8778d2a6-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8779d8cc-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8778d2a6-0982-11e5-8948-a8667f0424ad"], ["organization_id", "8779d8cc-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.800441"], ["updated_at", "2015-06-02 23:53:12.800441"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:53:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$V.uAMsikxW0Dy/DSZ..dn.1ITJQDKO5chWwT7PAfqiuYZvZ6QGz4O"], ["created_at", "2015-06-02 23:53:12.814041"], ["updated_at", "2015-06-02 23:53:12.814041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.816941"], ["user_id", "877c7ec4-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.817747"], ["updated_at", "2015-06-02 23:53:12.817747"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.824225"], ["updated_at", "2015-06-02 23:53:12.824225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '877c7ec4-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '877e096a-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "877c7ec4-0982-11e5-8948-a8667f0424ad"], ["organization_id", "877e096a-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.839406"], ["updated_at", "2015-06-02 23:53:12.839406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-7" for 127.0.0.1 at 2015-06-02 16:53:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:12.842766') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1de30b9c-f70c-4dd8-90ff-f4b096f6811f"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:12.844894"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:12.846499"], ["id", "1de30b9c-f70c-4dd8-90ff-f4b096f6811f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-7"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "877c7ec4-0982-11e5-8948-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '877c7ec4-0982-11e5-8948-a8667f0424ad' LIMIT 1 [["organization_id", "877e096a-0982-11e5-8948-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "877e096a-0982-11e5-8948-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$vHTNCwYBZSUi6BzRRrh.1uXxTmkz7nVwoYAKm5D7LPUuMuH.1UJ5u"], ["created_at", "2015-06-02 23:53:12.863463"], ["updated_at", "2015-06-02 23:53:12.863463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.865277"], ["user_id", "878401b2-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.865963"], ["updated_at", "2015-06-02 23:53:12.865963"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.870356"], ["updated_at", "2015-06-02 23:53:12.870356"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '878401b2-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87852970-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "878401b2-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87852970-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.875783"], ["updated_at", "2015-06-02 23:53:12.875783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:53:12 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$GhrAEXu9lxAZvptSE6n/hOrqLluVlRyRDE1RMiWgullA9fPorwQLW"], ["created_at", "2015-06-02 23:53:12.887496"], ["updated_at", "2015-06-02 23:53:12.887496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.890280"], ["user_id", "8787bdde-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.891334"], ["updated_at", "2015-06-02 23:53:12.891334"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.897181"], ["updated_at", "2015-06-02 23:53:12.897181"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8787bdde-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87892ae8-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8787bdde-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87892ae8-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.904050"], ["updated_at", "2015-06-02 23:53:12.904050"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/87892ae8-0982-11e5-8948-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:53:12 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"87892ae8-0982-11e5-8948-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:12.908886') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1356add1-9ca9-4f06-be35-d7391532869f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:12.910913"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:12.911867"], ["id", "1356add1-9ca9-4f06-be35-d7391532869f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "87892ae8-0982-11e5-8948-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8787bdde-0982-11e5-8948-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '8787bdde-0982-11e5-8948-a8667f0424ad' LIMIT 1 [["organization_id", "87892ae8-0982-11e5-8948-a8667f0424ad"]] Completed 200 OK in 10ms (Views: 0.8ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$wDulP6ub34xtvNYE5u1QU.KntqNLuGGlegodY.mHddSg3s0t9kS06"], ["created_at", "2015-06-02 23:53:12.925374"], ["updated_at", "2015-06-02 23:53:12.925374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.927603"], ["user_id", "878d75c6-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.928331"], ["updated_at", "2015-06-02 23:53:12.928331"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.932761"], ["updated_at", "2015-06-02 23:53:12.932761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '878d75c6-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '878e8eac-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "878d75c6-0982-11e5-8948-a8667f0424ad"], ["organization_id", "878e8eac-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.936539"], ["updated_at", "2015-06-02 23:53:12.936539"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:53:12 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$q5Lz8MD30fYSRBHiVz8Mh.zWb0nfZVNwXAtnV7caVgNiDtxKQcdMe"], ["created_at", "2015-06-02 23:53:12.950031"], ["updated_at", "2015-06-02 23:53:12.950031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.952720"], ["user_id", "87914b74-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.953789"], ["updated_at", "2015-06-02 23:53:12.953789"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.960670"], ["updated_at", "2015-06-02 23:53:12.960670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87914b74-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8792e3c6-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87914b74-0982-11e5-8948-a8667f0424ad"], ["organization_id", "8792e3c6-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.965851"], ["updated_at", "2015-06-02 23:53:12.965851"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-11" for 127.0.0.1 at 2015-06-02 16:53:12 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$JCZR.KkeQcwH0vypDkwGXuPVEgmbGdQgC3ZdYMbZWLX43txM35.Xm"], ["created_at", "2015-06-02 23:53:12.977340"], ["updated_at", "2015-06-02 23:53:12.977340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:12.979694"], ["user_id", "8795692a-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:12.980422"], ["updated_at", "2015-06-02 23:53:12.980422"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:12.985668"], ["updated_at", "2015-06-02 23:53:12.985668"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8795692a-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8796aba0-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8795692a-0982-11e5-8948-a8667f0424ad"], ["organization_id", "8796aba0-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:12.989978"], ["updated_at", "2015-06-02 23:53:12.989978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:53:12 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$Csk6krmVNsqerzHjMeaxDO4qk0j9PNDpHazJXGlm6ESpNmuVqaugm"], ["created_at", "2015-06-02 23:53:13.000745"], ["updated_at", "2015-06-02 23:53:13.000745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:13.003029"], ["user_id", "8798fc02-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.003829"], ["updated_at", "2015-06-02 23:53:13.003829"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.009617"], ["updated_at", "2015-06-02 23:53:13.009617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8798fc02-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '879a5dfe-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8798fc02-0982-11e5-8948-a8667f0424ad"], ["organization_id", "879a5dfe-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:13.014569"], ["updated_at", "2015-06-02 23:53:13.014569"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:53:13 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$Nv1Di08ZiYrf7hlRYm4H9.58Y9c1ZV4t7LMQ78zt2CcDx0seD.rWK"], ["created_at", "2015-06-02 23:53:13.027124"], ["updated_at", "2015-06-02 23:53:13.027124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:13.028877"], ["user_id", "879cf8a2-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.029610"], ["updated_at", "2015-06-02 23:53:13.029610"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.035178"], ["updated_at", "2015-06-02 23:53:13.035178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '879cf8a2-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '879e32d0-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "879cf8a2-0982-11e5-8948-a8667f0424ad"], ["organization_id", "879e32d0-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:13.038776"], ["updated_at", "2015-06-02 23:53:13.038776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-14" for 127.0.0.1 at 2015-06-02 16:53:13 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:13.042568') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c7824ee2-5750-41d8-ac05-b230d9b67c06"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:13.044172"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:13.045012"], ["id", "c7824ee2-5750-41d8-ac05-b230d9b67c06"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-14"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "879cf8a2-0982-11e5-8948-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '879cf8a2-0982-11e5-8948-a8667f0424ad' LIMIT 1 [["organization_id", "879e32d0-0982-11e5-8948-a8667f0424ad"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$.3WMc7ztH7OzqXMqt1nFBeONxTmDlfw8b3x4oQxrC7oXqu6lyAxTq"], ["created_at", "2015-06-02 23:53:13.058456"], ["updated_at", "2015-06-02 23:53:13.058456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:13.060827"], ["user_id", "87a1c8fa-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.061754"], ["updated_at", "2015-06-02 23:53:13.061754"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.068811"], ["updated_at", "2015-06-02 23:53:13.068811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87a1c8fa-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87a35774-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87a1c8fa-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87a35774-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:13.072578"], ["updated_at", "2015-06-02 23:53:13.072578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:53:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$t/M9hjaa.Lkm2rDK/nEiQuej7bIhIx2n5MdXvHRMs8u3utS8ZvqHK"], ["created_at", "2015-06-02 23:53:13.085252"], ["updated_at", "2015-06-02 23:53:13.085252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:13.087387"], ["user_id", "87a5de7c-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.088162"], ["updated_at", "2015-06-02 23:53:13.088162"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.094201"], ["updated_at", "2015-06-02 23:53:13.094201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87a5de7c-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87a74370-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87a5de7c-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87a74370-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:13.100040"], ["updated_at", "2015-06-02 23:53:13.100040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-16" for 127.0.0.1 at 2015-06-02 16:53:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-16", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:13.103254') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c6b833ab-5e07-42a6-9bbc-2dd68af52410"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:13.104633"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:13.105423"], ["id", "c6b833ab-5e07-42a6-9bbc-2dd68af52410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "87a5de7c-0982-11e5-8948-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '87a5de7c-0982-11e5-8948-a8667f0424ad' LIMIT 1 [["organization_id", "87a74370-0982-11e5-8948-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '87a74370-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:53:13.114804"], ["id", "87a74370-0982-11e5-8948-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$USFO7G3njTA3fKIKam55eu2lamNDq8uNQ/AmgwlC7PMtt7agsiuIK"], ["created_at", "2015-06-02 23:53:13.125700"], ["updated_at", "2015-06-02 23:53:13.125700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:13.128104"], ["user_id", "87ac0edc-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.128934"], ["updated_at", "2015-06-02 23:53:13.128934"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.136203"], ["updated_at", "2015-06-02 23:53:13.136203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87ac0edc-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87ada418-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87ac0edc-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87ada418-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:13.141053"], ["updated_at", "2015-06-02 23:53:13.141053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-17" for 127.0.0.1 at 2015-06-02 16:53:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-17", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:13.146559') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2d0daf88-e224-495d-bd80-33089fecb3f1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:13.149092"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:13.150165"], ["id", "2d0daf88-e224-495d-bd80-33089fecb3f1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-17"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "87ac0edc-0982-11e5-8948-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '87ac0edc-0982-11e5-8948-a8667f0424ad' LIMIT 1 [["organization_id", "87ada418-0982-11e5-8948-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '87ada418-0982-11e5-8948-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$2wFj8hVjxKZHD01gEiR9xuuWwqVI59VQvZHZrfbQop77tS1PGzY9i"], ["created_at", "2015-06-02 23:53:13.168292"], ["updated_at", "2015-06-02 23:53:13.168292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:13.170609"], ["user_id", "87b28b4a-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.171616"], ["updated_at", "2015-06-02 23:53:13.171616"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.176664"], ["updated_at", "2015-06-02 23:53:13.176664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87b28b4a-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87b3d040-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87b28b4a-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87b3d040-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:13.180106"], ["updated_at", "2015-06-02 23:53:13.180106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:53:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$KJFlHrVZQzrUBWXwwbx2KOIez/Fqm/lNptjEZetztZ5Tn86fJi2.q"], ["created_at", "2015-06-02 23:53:13.194409"], ["updated_at", "2015-06-02 23:53:13.194409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:13.196893"], ["user_id", "87b68fa6-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.197853"], ["updated_at", "2015-06-02 23:53:13.197853"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.203480"], ["updated_at", "2015-06-02 23:53:13.203480"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87b68fa6-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87b7e9a0-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87b68fa6-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87b7e9a0-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:13.208727"], ["updated_at", "2015-06-02 23:53:13.208727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/87b7e9a0-0982-11e5-8948-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:53:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"87b7e9a0-0982-11e5-8948-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:13.212367') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "99eaa911-3726-4829-b4dc-81685edb4f3f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:13.213807"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:13.214627"], ["id", "99eaa911-3726-4829-b4dc-81685edb4f3f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "87b7e9a0-0982-11e5-8948-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "87b68fa6-0982-11e5-8948-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '87b68fa6-0982-11e5-8948-a8667f0424ad' LIMIT 1 [["organization_id", "87b7e9a0-0982-11e5-8948-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '87b7e9a0-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:53:13.224980"], ["id", "87b7e9a0-0982-11e5-8948-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.7ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$Y.1xRZBAdWcC7nVMb/uSiu5/VQFzRN4ilJBcN4eatr5O4gjnP2sZC"], ["created_at", "2015-06-02 23:53:13.246361"], ["updated_at", "2015-06-02 23:53:13.246361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:13.249975"], ["user_id", "87be82d8-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.251538"], ["updated_at", "2015-06-02 23:53:13.251538"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.257243"], ["updated_at", "2015-06-02 23:53:13.257243"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87be82d8-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87c01d5a-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87be82d8-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87c01d5a-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:13.261947"], ["updated_at", "2015-06-02 23:53:13.261947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/87c01d5a-0982-11e5-8948-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:53:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"87c01d5a-0982-11e5-8948-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:13.266262') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b131d332-185f-4fcc-a237-415f646c6971"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:13.268007"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:13.269318"], ["id", "b131d332-185f-4fcc-a237-415f646c6971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "87c01d5a-0982-11e5-8948-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "87be82d8-0982-11e5-8948-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '87be82d8-0982-11e5-8948-a8667f0424ad' LIMIT 1 [["organization_id", "87c01d5a-0982-11e5-8948-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '87c01d5a-0982-11e5-8948-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$sp1az/KhoQXvBvUsyQCgQuACTxfNcS.Y19zzE.pGpDhiXDyEKjz7e"], ["created_at", "2015-06-02 23:53:13.295096"], ["updated_at", "2015-06-02 23:53:13.295096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:13.297533"], ["user_id", "87c5e76c-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.298267"], ["updated_at", "2015-06-02 23:53:13.298267"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.303384"], ["updated_at", "2015-06-02 23:53:13.303384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87c5e76c-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87c735a4-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87c5e76c-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87c735a4-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:13.308643"], ["updated_at", "2015-06-02 23:53:13.308643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$ohu4o19iU/EzV5WQpOzr8ucGRbNZZHeL3ohgULKrMSPSK2Yl1MzcS"], ["created_at", "2015-06-02 23:53:13.316834"], ["updated_at", "2015-06-02 23:53:13.316834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.322874"], ["updated_at", "2015-06-02 23:53:13.322874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87c94308-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87ca269c-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "87c94308-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87ca269c-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.327372"], ["updated_at", "2015-06-02 23:53:13.327372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:53:13 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$4RaqG7X6XfdK9tNzjbIJ/OEkrPfY9AJA7hC71aXEvsJ3/jNiM.oJ."], ["created_at", "2015-06-02 23:53:13.342418"], ["updated_at", "2015-06-02 23:53:13.342418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:13.345494"], ["user_id", "87cd21ee-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.346410"], ["updated_at", "2015-06-02 23:53:13.346410"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.353543"], ["updated_at", "2015-06-02 23:53:13.353543"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87cd21ee-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87ced46c-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87cd21ee-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87ced46c-0982-11e5-8948-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:13.358183"], ["updated_at", "2015-06-02 23:53:13.358183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$B1FIWV0ud8dPeKdX.VIOPeXTSjLPMu9Z45G7EcOKZXQZm7ulu3mqa"], ["created_at", "2015-06-02 23:53:13.364352"], ["updated_at", "2015-06-02 23:53:13.364352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:13.371953"], ["updated_at", "2015-06-02 23:53:13.371953"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87d08398-0982-11e5-8948-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '87d1adb8-0982-11e5-8948-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "87d08398-0982-11e5-8948-a8667f0424ad"], ["organization_id", "87d1adb8-0982-11e5-8948-a8667f0424ad"], ["created_at", "2015-06-02 23:53:13.377566"], ["updated_at", "2015-06-02 23:53:13.377566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:53:13 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:13.381390') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a7322cb8-2566-46b5-a9a7-7727330366c9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:13.385241"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:13.386629"], ["id", "a7322cb8-2566-46b5-a9a7-7727330366c9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "87cd21ee-0982-11e5-8948-a8667f0424ad"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "87cd21ee-0982-11e5-8948-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 2.4ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$wnk5POjLHPhJCK0OWUAJ5e1MQ4NSsEnS0SMDf1Z9Hu8dcQCZTI8re"], ["created_at", "2015-06-02 23:53:55.802112"], ["updated_at", "2015-06-02 23:53:55.802112"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:55.832804"], ["user_id", "a11c7686-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:55.839702"], ["updated_at", "2015-06-02 23:53:55.839702"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:55.851973"], ["updated_at", "2015-06-02 23:53:55.851973"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a11c7686-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1238d72-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a11c7686-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a1238d72-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:55.864936"], ["updated_at", "2015-06-02 23:53:55.864936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:53:55 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$8wGNbHiJQ38O8SbgjZqtHubahMGAaxAdgUzJois2NWRR1BEzAx87q"], ["created_at", "2015-06-02 23:53:55.901948"], ["updated_at", "2015-06-02 23:53:55.901948"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:55.904770"], ["user_id", "a12b2ad2-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:55.905687"], ["updated_at", "2015-06-02 23:53:55.905687"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:55.910655"], ["updated_at", "2015-06-02 23:53:55.910655"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a12b2ad2-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a12c7720-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a12b2ad2-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a12c7720-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:55.915601"], ["updated_at", "2015-06-02 23:53:55.915601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a12c7720-0982-11e5-8c65-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:53:55 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"a12c7720-0982-11e5-8c65-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:55.919091') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f7962825-ec67-4705-9a51-977535103908"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:55.927472"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:55.929057"], ["id", "f7962825-ec67-4705-9a51-977535103908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a12c7720-0982-11e5-8c65-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a12b2ad2-0982-11e5-8c65-a8667f0424ad"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a12b2ad2-0982-11e5-8c65-a8667f0424ad' LIMIT 1 [["organization_id", "a12c7720-0982-11e5-8c65-a8667f0424ad"]] Completed 200 OK in 59ms (Views: 16.0ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$vCgG4UxRgdo4Bwev2PHmFOpj2dTmhE8NcAvRyP0XEIdQNwWDeRJSa"], ["created_at", "2015-06-02 23:53:55.988175"], ["updated_at", "2015-06-02 23:53:55.988175"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:55.991512"], ["user_id", "a1386364-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:55.992683"], ["updated_at", "2015-06-02 23:53:55.992683"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:55.998654"], ["updated_at", "2015-06-02 23:53:55.998654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1386364-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a139e7ca-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1386364-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a139e7ca-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.004007"], ["updated_at", "2015-06-02 23:53:56.004007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$dlHVvV0T7rJMcCPz0WrieuX1MjZhy.gn5l/y0CBK1MBaEph52U/Dm"], ["created_at", "2015-06-02 23:53:56.009711"], ["updated_at", "2015-06-02 23:53:56.009711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.015522"], ["updated_at", "2015-06-02 23:53:56.015522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a13b9ec6-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a13c9dc6-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a13b9ec6-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a13c9dc6-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.020468"], ["updated_at", "2015-06-02 23:53:56.020468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$aJ57JMhvLSX/tUAHZqdzuupaOWK4JLDOA.0r6g99gjp6b1O8beN7C"], ["created_at", "2015-06-02 23:53:56.032118"], ["updated_at", "2015-06-02 23:53:56.032118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.035112"], ["user_id", "a13f0d04-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.036446"], ["updated_at", "2015-06-02 23:53:56.036446"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.041868"], ["updated_at", "2015-06-02 23:53:56.041868"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a13f0d04-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a14080a8-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a13f0d04-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a14080a8-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.048139"], ["updated_at", "2015-06-02 23:53:56.048139"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$PFND0ft41hpaZHfnUyJkQeoppHhZz5taNRd2awdckcoJdGyUQcIxi"], ["created_at", "2015-06-02 23:53:56.059040"], ["updated_at", "2015-06-02 23:53:56.059040"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.066979"], ["updated_at", "2015-06-02 23:53:56.066979"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1434478-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a14469b6-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1434478-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a14469b6-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.073035"], ["updated_at", "2015-06-02 23:53:56.073035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:56.076777') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e32ded34-1a74-443f-8a54-d90d972f189c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:56.078459"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:56.080922"], ["id", "e32ded34-1a74-443f-8a54-d90d972f189c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a13f0d04-0982-11e5-8c65-a8667f0424ad"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a13f0d04-0982-11e5-8c65-a8667f0424ad"]] Completed 200 OK in 19ms (Views: 3.2ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$FinwlPQKsPnpV2NEJ/vByuCd.sDOjuNcf.0Ucac4tyKC6v0t4JNyq"], ["created_at", "2015-06-02 23:53:56.107072"], ["updated_at", "2015-06-02 23:53:56.107072"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.109354"], ["user_id", "a14a76da-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.110490"], ["updated_at", "2015-06-02 23:53:56.110490"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.115947"], ["updated_at", "2015-06-02 23:53:56.115947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a14a76da-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a14bd214-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a14a76da-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a14bd214-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.120924"], ["updated_at", "2015-06-02 23:53:56.120924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$1QlDa4/XstgWOO.WXTjz1O6h0xVRPEAitGQj/Dmh.ZxUXve8YjgP2"], ["created_at", "2015-06-02 23:53:56.132535"], ["updated_at", "2015-06-02 23:53:56.132535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.135122"], ["user_id", "a14e6ccc-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.136633"], ["updated_at", "2015-06-02 23:53:56.136633"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.143594"], ["updated_at", "2015-06-02 23:53:56.143594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a14e6ccc-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1500762-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a14e6ccc-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a1500762-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.146980"], ["updated_at", "2015-06-02 23:53:56.146980"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-8" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-8", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:56.151119') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7eba93dd-6aad-424e-9661-b4513386fbcd"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:56.152697"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:56.153951"], ["id", "7eba93dd-6aad-424e-9661-b4513386fbcd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-8"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a14e6ccc-0982-11e5-8c65-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a14e6ccc-0982-11e5-8c65-a8667f0424ad' LIMIT 1 [["organization_id", "a1500762-0982-11e5-8c65-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a1500762-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:53:56.165159"], ["id", "a1500762-0982-11e5-8c65-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$rORyqiBNZBVXfer0m7dkEOPfA37jdukTPTx/CbPgra7mvdZYhstou"], ["created_at", "2015-06-02 23:53:56.177019"], ["updated_at", "2015-06-02 23:53:56.177019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.189342"], ["user_id", "a1552170-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.190407"], ["updated_at", "2015-06-02 23:53:56.190407"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.196451"], ["updated_at", "2015-06-02 23:53:56.196451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1552170-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a15815f6-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1552170-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a15815f6-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.199673"], ["updated_at", "2015-06-02 23:53:56.199673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:56.204667') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9573d096-6cf0-43c5-94b7-620345c3e038"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:56.206580"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:56.207804"], ["id", "9573d096-6cf0-43c5-94b7-620345c3e038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-9"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1552170-0982-11e5-8c65-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a1552170-0982-11e5-8c65-a8667f0424ad' LIMIT 1 [["organization_id", "a15815f6-0982-11e5-8c65-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a15815f6-0982-11e5-8c65-a8667f0424ad') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 26ms (ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$yCBKDOOHQ6hBexUxdwxA8uSwcaeO6By7nigDr8InSZllXwILjOZ7e"], ["created_at", "2015-06-02 23:53:56.243775"], ["updated_at", "2015-06-02 23:53:56.243775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.246379"], ["user_id", "a15f5b68-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.247293"], ["updated_at", "2015-06-02 23:53:56.247293"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.254245"], ["updated_at", "2015-06-02 23:53:56.254245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a15f5b68-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a160fe46-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a15f5b68-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a160fe46-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.258947"], ["updated_at", "2015-06-02 23:53:56.258947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:53:56 -0700  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$.HFD40BiITXzsI6wtj8lUOglDJH2/wsjhJCWaTSATe/tkGGQVeFVu"], ["created_at", "2015-06-02 23:53:56.269997"], ["updated_at", "2015-06-02 23:53:56.269997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.272301"], ["user_id", "a163590c-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.273030"], ["updated_at", "2015-06-02 23:53:56.273030"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.279181"], ["updated_at", "2015-06-02 23:53:56.279181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a163590c-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a164be78-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a163590c-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a164be78-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.282817"], ["updated_at", "2015-06-02 23:53:56.282817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-11" for 127.0.0.1 at 2015-06-02 16:53:56 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$XMeLjflMkm8UPjiZ5TGzd.1x3YBfHv7TcauE/KBq4saXgtG6buBn2"], ["created_at", "2015-06-02 23:53:56.291751"], ["updated_at", "2015-06-02 23:53:56.291751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.293500"], ["user_id", "a1669fcc-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.294218"], ["updated_at", "2015-06-02 23:53:56.294218"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.299885"], ["updated_at", "2015-06-02 23:53:56.299885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1669fcc-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a167de46-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1669fcc-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a167de46-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.303242"], ["updated_at", "2015-06-02 23:53:56.303242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:53:56 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$FcpPTjIqsUcvMvToyvProOr3IWW3i2A16KqsBa.dOb004PKAm5X1."], ["created_at", "2015-06-02 23:53:56.313162"], ["updated_at", "2015-06-02 23:53:56.313162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.315541"], ["user_id", "a169f640-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.316264"], ["updated_at", "2015-06-02 23:53:56.316264"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.321184"], ["updated_at", "2015-06-02 23:53:56.321184"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a169f640-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a16b4554-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a169f640-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a16b4554-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.326260"], ["updated_at", "2015-06-02 23:53:56.326260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$1DiDcWDIHuJYAG4FuLbqqusGdXUs8FxCKKY58MYvw5k9JYlC2u3Ni"], ["created_at", "2015-06-02 23:53:56.335950"], ["updated_at", "2015-06-02 23:53:56.335950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.337801"], ["user_id", "a16d642e-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.338450"], ["updated_at", "2015-06-02 23:53:56.338450"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.342529"], ["updated_at", "2015-06-02 23:53:56.342529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a16d642e-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a16e5c1c-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a16d642e-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a16e5c1c-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.345539"], ["updated_at", "2015-06-02 23:53:56.345539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/a16e5c1c-0982-11e5-8c65-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"a16e5c1c-0982-11e5-8c65-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:56.349169') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "eccce099-27cf-42e1-a4ef-a73246e85251"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:56.350685"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:56.351518"], ["id", "eccce099-27cf-42e1-a4ef-a73246e85251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a16e5c1c-0982-11e5-8c65-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a16d642e-0982-11e5-8c65-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a16d642e-0982-11e5-8c65-a8667f0424ad' LIMIT 1 [["organization_id", "a16e5c1c-0982-11e5-8c65-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a16e5c1c-0982-11e5-8c65-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$US6rrUeJT7ve9eFunzijzOnQAjjhqvMyUtHjEzM5AhytwUDP1nAa2"], ["created_at", "2015-06-02 23:53:56.378514"], ["updated_at", "2015-06-02 23:53:56.378514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.382258"], ["user_id", "a173fafa-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.390141"], ["updated_at", "2015-06-02 23:53:56.390141"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.405123"], ["updated_at", "2015-06-02 23:53:56.405123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a173fafa-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1781e6e-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a173fafa-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a1781e6e-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.410554"], ["updated_at", "2015-06-02 23:53:56.410554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$FnZ.Vk6ZuCtKbEjtmINidufhuWZ035KhDt2RFf9qxw7M0YT/Kuo.O"], ["created_at", "2015-06-02 23:53:56.421636"], ["updated_at", "2015-06-02 23:53:56.421636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.424328"], ["user_id", "a17a85dc-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.425192"], ["updated_at", "2015-06-02 23:53:56.425192"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.429701"], ["updated_at", "2015-06-02 23:53:56.429701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a17a85dc-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a17bae26-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a17a85dc-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a17bae26-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.433687"], ["updated_at", "2015-06-02 23:53:56.433687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-16" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-16", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:56.438042') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "54f99957-ee53-42bd-959d-87b784e8f535"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:56.439993"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:56.441238"], ["id", "54f99957-ee53-42bd-959d-87b784e8f535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a17a85dc-0982-11e5-8c65-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a17a85dc-0982-11e5-8c65-a8667f0424ad' LIMIT 1 [["organization_id", "a17bae26-0982-11e5-8c65-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a17bae26-0982-11e5-8c65-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$1USz2AECA0Q0eSJ2sZisd.qhljh4Y/l4Fd7KBR44XDv3s1BBDMIIK"], ["created_at", "2015-06-02 23:53:56.456976"], ["updated_at", "2015-06-02 23:53:56.456976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.459436"], ["user_id", "a17fdf6e-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.460199"], ["updated_at", "2015-06-02 23:53:56.460199"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.464724"], ["updated_at", "2015-06-02 23:53:56.464724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a17fdf6e-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1810466-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a17fdf6e-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a1810466-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.470109"], ["updated_at", "2015-06-02 23:53:56.470109"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (3.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$0VCKfdmZseNBQxbJ1u7bReiqpACy.VvUKP.3nbqvZ0W8duQ6BsyHC"], ["created_at", "2015-06-02 23:53:56.519095"], ["updated_at", "2015-06-02 23:53:56.519095"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.525648"], ["user_id", "a1899838-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.528198"], ["updated_at", "2015-06-02 23:53:56.528198"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.538573"], ["updated_at", "2015-06-02 23:53:56.538573"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1899838-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a18c77ec-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1899838-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a18c77ec-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.546572"], ["updated_at", "2015-06-02 23:53:56.546572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-18" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:56.549985') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1e569ac6-d08d-47ec-a913-a64fa96c4cb3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:56.551366"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:56.552146"], ["id", "1e569ac6-d08d-47ec-a913-a64fa96c4cb3"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-18"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1899838-0982-11e5-8c65-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a1899838-0982-11e5-8c65-a8667f0424ad' LIMIT 1 [["organization_id", "a18c77ec-0982-11e5-8c65-a8667f0424ad"]] Completed 200 OK in 10ms (Views: 1.1ms | ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$nzWcajmk6m4oDN6uSJApR.i3NwuWUthBPtjSADXl2btxcE2oZWUFm"], ["created_at", "2015-06-02 23:53:56.568335"], ["updated_at", "2015-06-02 23:53:56.568335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.571210"], ["user_id", "a190e764-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.572071"], ["updated_at", "2015-06-02 23:53:56.572071"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.579838"], ["updated_at", "2015-06-02 23:53:56.579838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a190e764-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a192cade-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a190e764-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a192cade-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.585757"], ["updated_at", "2015-06-02 23:53:56.585757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$NWXoTY/5dk8H3WG.m71YS.pu7f..Y82g0Mdv1mU41PyArzsJWeHR2"], ["created_at", "2015-06-02 23:53:56.598407"], ["updated_at", "2015-06-02 23:53:56.598407"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.600924"], ["user_id", "a1957a18-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.601827"], ["updated_at", "2015-06-02 23:53:56.601827"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.606989"], ["updated_at", "2015-06-02 23:53:56.606989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1957a18-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a196c44a-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1957a18-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a196c44a-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.611803"], ["updated_at", "2015-06-02 23:53:56.611803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:56.615306') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9c37e5ac-01c9-44a0-9d06-e671872834f3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:56.616870"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:56.617713"], ["id", "9c37e5ac-01c9-44a0-9d06-e671872834f3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1957a18-0982-11e5-8c65-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.627000"], ["updated_at", "2015-06-02 23:53:56.627000"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1957a18-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a199dfa4-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1957a18-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["organization_id", "a199dfa4-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.631553"], ["updated_at", "2015-06-02 23:53:56.631553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 0.6ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$KBeZwrbCKsLSj12RcD.YUu0j/ntaJAgDGlngTT0W3ncE2k.Icgl8a"], ["created_at", "2015-06-02 23:53:56.641790"], ["updated_at", "2015-06-02 23:53:56.641790"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.643727"], ["user_id", "a19c09d2-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.644798"], ["updated_at", "2015-06-02 23:53:56.644798"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.658720"], ["updated_at", "2015-06-02 23:53:56.658720"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a19c09d2-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a19eb4f2-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a19c09d2-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a19eb4f2-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.664206"], ["updated_at", "2015-06-02 23:53:56.664206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:56.668771') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "34919f3e-52ee-405e-a9c4-e4dee1d813fd"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:56.670902"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:56.672268"], ["id", "34919f3e-52ee-405e-a9c4-e4dee1d813fd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a19c09d2-0982-11e5-8c65-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$4Dh443caA/jDqbX8Xtuw5ens8MRUDlJEXVyXpL8Zjh190UEDRF/l2"], ["created_at", "2015-06-02 23:53:56.689724"], ["updated_at", "2015-06-02 23:53:56.689724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.691647"], ["user_id", "a1a35f48-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.692336"], ["updated_at", "2015-06-02 23:53:56.692336"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.697175"], ["updated_at", "2015-06-02 23:53:56.697175"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1a35f48-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1a48e04-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1a35f48-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a1a48e04-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.701673"], ["updated_at", "2015-06-02 23:53:56.701673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$gx5LmtXK33dFxIqKfNKrlOfTJBmoT8aTjjfrxSC38FyqoO1dOM82q"], ["created_at", "2015-06-02 23:53:56.712116"], ["updated_at", "2015-06-02 23:53:56.712116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.713884"], ["user_id", "a1a6c6f6-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.714497"], ["updated_at", "2015-06-02 23:53:56.714497"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.719659"], ["updated_at", "2015-06-02 23:53:56.719659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1a6c6f6-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1a7f3d2-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1a6c6f6-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a1a7f3d2-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.724621"], ["updated_at", "2015-06-02 23:53:56.724621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a1a7f3d2-0982-11e5-8c65-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"a1a7f3d2-0982-11e5-8c65-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:56.728148') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e3605b3d-dd10-4248-abf4-32456d8d33af"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:56.729476"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:56.730268"], ["id", "e3605b3d-dd10-4248-abf4-32456d8d33af"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a1a7f3d2-0982-11e5-8c65-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1a6c6f6-0982-11e5-8c65-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a1a6c6f6-0982-11e5-8c65-a8667f0424ad' LIMIT 1 [["organization_id", "a1a7f3d2-0982-11e5-8c65-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a1a7f3d2-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:53:56.739537"], ["id", "a1a7f3d2-0982-11e5-8c65-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$eSGoUcNXpSir0cMNUvBMH.XM2sc0uBjrehGZhFe7kRvQ5JQfYitHS"], ["created_at", "2015-06-02 23:53:56.749670"], ["updated_at", "2015-06-02 23:53:56.749670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:53:56.751958"], ["user_id", "a1ac89f6-0982-11e5-8c65-a8667f0424ad"], ["created_at", "2015-06-02 23:53:56.752686"], ["updated_at", "2015-06-02 23:53:56.752686"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:53:56.757383"], ["updated_at", "2015-06-02 23:53:56.757383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1ac89f6-0982-11e5-8c65-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1adaaac-0982-11e5-8c65-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1ac89f6-0982-11e5-8c65-a8667f0424ad"], ["organization_id", "a1adaaac-0982-11e5-8c65-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:53:56.760756"], ["updated_at", "2015-06-02 23:53:56.760756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a1adaaac-0982-11e5-8c65-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:53:56 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"a1adaaac-0982-11e5-8c65-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:53:56.763951') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "eefd0fc0-8d57-4fc2-8f9d-28b791fc19b5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:53:56.765329"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:53:56.766124"], ["id", "eefd0fc0-8d57-4fc2-8f9d-28b791fc19b5"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a1adaaac-0982-11e5-8c65-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1ac89f6-0982-11e5-8c65-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a1ac89f6-0982-11e5-8c65-a8667f0424ad' LIMIT 1 [["organization_id", "a1adaaac-0982-11e5-8c65-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a1adaaac-0982-11e5-8c65-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms (ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$8s09Ufb8sQpC6hpon1fXne.ZAgSSFhMp893eBdoJ1sZO9XGOBpHUm"], ["created_at", "2015-06-02 23:54:09.324729"], ["updated_at", "2015-06-02 23:54:09.324729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.348688"], ["user_id", "a92b8a56-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.358832"], ["updated_at", "2015-06-02 23:54:09.358832"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.379796"], ["updated_at", "2015-06-02 23:54:09.379796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a92b8a56-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a933da3a-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a92b8a56-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a933da3a-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.395428"], ["updated_at", "2015-06-02 23:54:09.395428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$iIexj.bKpk5ZNuH1meNA0.f8JXzFGy/0E1fWmnkUo5g60tb5iM9oy"], ["created_at", "2015-06-02 23:54:09.430859"], ["updated_at", "2015-06-02 23:54:09.430859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.432709"], ["user_id", "a93b8172-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.433398"], ["updated_at", "2015-06-02 23:54:09.433398"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.437646"], ["updated_at", "2015-06-02 23:54:09.437646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a93b8172-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a93c87a2-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a93b8172-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a93c87a2-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.442205"], ["updated_at", "2015-06-02 23:54:09.442205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a93c87a2-0982-11e5-846e-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"a93c87a2-0982-11e5-846e-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:09.445660') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "71f5ff5a-b2db-4e82-be1a-ae5d8beb4da0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:09.454298"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:09.455486"], ["id", "71f5ff5a-b2db-4e82-be1a-ae5d8beb4da0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a93c87a2-0982-11e5-846e-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a93b8172-0982-11e5-846e-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a93b8172-0982-11e5-846e-a8667f0424ad' LIMIT 1 [["organization_id", "a93c87a2-0982-11e5-846e-a8667f0424ad"]] Completed 200 OK in 55ms (Views: 13.9ms | ActiveRecord: 1.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$r.Mt3PqDIOlasC6g/Zy9o.Fyk4AkUYUo2sBywskrzm4VvXE6QdWdS"], ["created_at", "2015-06-02 23:54:09.518637"], ["updated_at", "2015-06-02 23:54:09.518637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.522094"], ["user_id", "a949082e-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.523169"], ["updated_at", "2015-06-02 23:54:09.523169"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.528930"], ["updated_at", "2015-06-02 23:54:09.528930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a949082e-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a94a88e8-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a949082e-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a94a88e8-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.532970"], ["updated_at", "2015-06-02 23:54:09.532970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$VNahhjPI0zVdawY0tgUmIeCWGFWU1Pr5OSrU1o7q2yasi9MW04PU."], ["created_at", "2015-06-02 23:54:09.542481"], ["updated_at", "2015-06-02 23:54:09.542481"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.545084"], ["user_id", "a94c8832-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.546048"], ["updated_at", "2015-06-02 23:54:09.546048"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.556590"], ["updated_at", "2015-06-02 23:54:09.556590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a94c8832-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a94ec35e-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a94c8832-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a94ec35e-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.561853"], ["updated_at", "2015-06-02 23:54:09.561853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a94ec35e-0982-11e5-846e-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"a94ec35e-0982-11e5-846e-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:09.565513') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6230c586-755a-4370-946c-a8a1259235ae"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:09.567112"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:09.567897"], ["id", "6230c586-755a-4370-946c-a8a1259235ae"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a94ec35e-0982-11e5-846e-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a94c8832-0982-11e5-846e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a94c8832-0982-11e5-846e-a8667f0424ad' LIMIT 1 [["organization_id", "a94ec35e-0982-11e5-846e-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a94ec35e-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:54:09.577608"], ["id", "a94ec35e-0982-11e5-846e-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$8ratIj9dB73D0JrgWKzvbOI8uME1gxfFHm5/ee6AmCQZCgiJHAy1y"], ["created_at", "2015-06-02 23:54:09.587981"], ["updated_at", "2015-06-02 23:54:09.587981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.590214"], ["user_id", "a9537c32-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.590865"], ["updated_at", "2015-06-02 23:54:09.590865"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.595138"], ["updated_at", "2015-06-02 23:54:09.595138"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9537c32-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a9548d2a-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9537c32-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a9548d2a-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.600579"], ["updated_at", "2015-06-02 23:54:09.600579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a9548d2a-0982-11e5-846e-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"a9548d2a-0982-11e5-846e-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:09.605976') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3b0cab68-7123-4dd0-8a78-53378c91c451"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:09.607686"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:09.608453"], ["id", "3b0cab68-7123-4dd0-8a78-53378c91c451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a9548d2a-0982-11e5-846e-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9537c32-0982-11e5-846e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9537c32-0982-11e5-846e-a8667f0424ad' LIMIT 1 [["organization_id", "a9548d2a-0982-11e5-846e-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a9548d2a-0982-11e5-846e-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$0B8vIFg8vYG2I11L7pjlou8v5rKwweVK.nMle0XTyVkALadPGA3I2"], ["created_at", "2015-06-02 23:54:09.632509"], ["updated_at", "2015-06-02 23:54:09.632509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.634380"], ["user_id", "a95a44e0-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.635230"], ["updated_at", "2015-06-02 23:54:09.635230"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.639613"], ["updated_at", "2015-06-02 23:54:09.639613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a95a44e0-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a95b60aa-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a95a44e0-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a95b60aa-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.643073"], ["updated_at", "2015-06-02 23:54:09.643073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$ac.U3/T0j.hOS9tj4VL/QOEHf6bmrdLyxrwXY5s3eTh6BqNAAgyne"], ["created_at", "2015-06-02 23:54:09.653185"], ["updated_at", "2015-06-02 23:54:09.653185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.655639"], ["user_id", "a95d7e08-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.656466"], ["updated_at", "2015-06-02 23:54:09.656466"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.660756"], ["updated_at", "2015-06-02 23:54:09.660756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a95d7e08-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a95e8e92-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a95d7e08-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a95e8e92-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.664944"], ["updated_at", "2015-06-02 23:54:09.664944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-7" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:09.668093') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fa638bde-6814-4b22-a270-d7bc119d01e4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:09.669579"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:09.670342"], ["id", "fa638bde-6814-4b22-a270-d7bc119d01e4"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-7"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a95d7e08-0982-11e5-846e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a95d7e08-0982-11e5-846e-a8667f0424ad' LIMIT 1 [["organization_id", "a95e8e92-0982-11e5-846e-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a95e8e92-0982-11e5-846e-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 20ms (ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$du8YUXdFjCFpuKkljvCOSe.vy33I1MnEaY7rwkYjxz30v6FJWXh.i"], ["created_at", "2015-06-02 23:54:09.695826"], ["updated_at", "2015-06-02 23:54:09.695826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.697670"], ["user_id", "a963ee32-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.698354"], ["updated_at", "2015-06-02 23:54:09.698354"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.702580"], ["updated_at", "2015-06-02 23:54:09.702580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a963ee32-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a964f318-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a963ee32-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a964f318-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.705949"], ["updated_at", "2015-06-02 23:54:09.705949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:09 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$sLrpHw4kyryCrOm/pJTqlObcnNvLZvm6nrkXXwHm.hZic95PDHQKS"], ["created_at", "2015-06-02 23:54:09.715671"], ["updated_at", "2015-06-02 23:54:09.715671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.717395"], ["user_id", "a966f514-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.718018"], ["updated_at", "2015-06-02 23:54:09.718018"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.723789"], ["updated_at", "2015-06-02 23:54:09.723789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a966f514-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a9684fcc-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a966f514-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a9684fcc-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.728855"], ["updated_at", "2015-06-02 23:54:09.728855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-9" for 127.0.0.1 at 2015-06-02 16:54:09 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$3kF1Y3ieVirxGJL1yiTfxuBY66MOSq6WWrzMRi1TQ2yDBJLUuOdMK"], ["created_at", "2015-06-02 23:54:09.737717"], ["updated_at", "2015-06-02 23:54:09.737717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.739862"], ["user_id", "a96a5c54-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.740755"], ["updated_at", "2015-06-02 23:54:09.740755"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.745835"], ["updated_at", "2015-06-02 23:54:09.745835"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a96a5c54-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a96b9786-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a96a5c54-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a96b9786-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.750714"], ["updated_at", "2015-06-02 23:54:09.750714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:54:09 -0700  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$9HfXw8udJ.0/soUwRmfaz.w.i/ucyJwxV6yFdKmQGvCEI7eMK13me"], ["created_at", "2015-06-02 23:54:09.761066"], ["updated_at", "2015-06-02 23:54:09.761066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.763051"], ["user_id", "a96de716-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.763795"], ["updated_at", "2015-06-02 23:54:09.763795"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.768538"], ["updated_at", "2015-06-02 23:54:09.768538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a96de716-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a96f0baa-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a96de716-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a96f0baa-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.772568"], ["updated_at", "2015-06-02 23:54:09.772568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$fyD4IEYTTulyTIN//.C3Iurco9w1eFFY4VI9xMVGUgooi3w5r6aia"], ["created_at", "2015-06-02 23:54:09.778689"], ["updated_at", "2015-06-02 23:54:09.778689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.782926"], ["updated_at", "2015-06-02 23:54:09.782926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a97094f2-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a97133b2-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a97094f2-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a97133b2-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.786616"], ["updated_at", "2015-06-02 23:54:09.786616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$E26qm1iSeVJh5yulrU56WOg0SR4cO5KHpN18r/8xpGLeQplHcsedG"], ["created_at", "2015-06-02 23:54:09.798104"], ["updated_at", "2015-06-02 23:54:09.798104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.800294"], ["user_id", "a9739418-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.801003"], ["updated_at", "2015-06-02 23:54:09.801003"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.805631"], ["updated_at", "2015-06-02 23:54:09.805631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9739418-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a974bd48-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9739418-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a974bd48-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.809651"], ["updated_at", "2015-06-02 23:54:09.809651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$H.qzuFUpV3joe28aoSYX5e./4p0sjWG/gp4TQT5W0aWCi0OWWbKYa"], ["created_at", "2015-06-02 23:54:09.815691"], ["updated_at", "2015-06-02 23:54:09.815691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.819868"], ["updated_at", "2015-06-02 23:54:09.819868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a976398e-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a976d77c-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a976398e-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a976d77c-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.823131"], ["updated_at", "2015-06-02 23:54:09.823131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:09.826158') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0272633c-3dd8-409a-bbc1-14e178706a9f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:09.827695"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:09.828615"], ["id", "0272633c-3dd8-409a-bbc1-14e178706a9f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9739418-0982-11e5-846e-a8667f0424ad"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "a9739418-0982-11e5-846e-a8667f0424ad"]] Completed 200 OK in 17ms (Views: 3.1ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$/Ot6zjVnsKq2CFkPe//KQOsPUKGRMNfSVa9OBkFX3x6QDJwrBELSq"], ["created_at", "2015-06-02 23:54:09.852032"], ["updated_at", "2015-06-02 23:54:09.852032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.853862"], ["user_id", "a97bc6a6-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.854489"], ["updated_at", "2015-06-02 23:54:09.854489"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.859159"], ["updated_at", "2015-06-02 23:54:09.859159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a97bc6a6-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a97ce482-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a97bc6a6-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a97ce482-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.862816"], ["updated_at", "2015-06-02 23:54:09.862816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$JVaIFhVwACzOTuTWUndbo.c4nP/41x2fJCtt.LBgkMpp/3Flp1FSe"], ["created_at", "2015-06-02 23:54:09.872828"], ["updated_at", "2015-06-02 23:54:09.872828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.874777"], ["user_id", "a97ef3e4-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.875484"], ["updated_at", "2015-06-02 23:54:09.875484"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.880456"], ["updated_at", "2015-06-02 23:54:09.880456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a97ef3e4-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a9802fde-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a97ef3e4-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a9802fde-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.884943"], ["updated_at", "2015-06-02 23:54:09.884943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:09.888614') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b88fbd2c-3a73-46ce-975a-9cc38899bdf7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:09.890433"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:09.891367"], ["id", "b88fbd2c-3a73-46ce-975a-9cc38899bdf7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a97ef3e4-0982-11e5-846e-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.899340"], ["updated_at", "2015-06-02 23:54:09.899340"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a97ef3e4-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a982fe9e-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a97ef3e4-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["organization_id", "a982fe9e-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.903136"], ["updated_at", "2015-06-02 23:54:09.903136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.7ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$ZMH6181SCGgeXiNJ1RzfyurYkmq7GuvKBa1l2Hp327afR0.h1sLLu"], ["created_at", "2015-06-02 23:54:09.913933"], ["updated_at", "2015-06-02 23:54:09.913933"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.916656"], ["user_id", "a98539e8-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.917749"], ["updated_at", "2015-06-02 23:54:09.917749"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.924323"], ["updated_at", "2015-06-02 23:54:09.924323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a98539e8-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a986cd58-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a98539e8-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a986cd58-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.928451"], ["updated_at", "2015-06-02 23:54:09.928451"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (2.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:09.934376') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cd33fe48-20a5-41f2-8730-8f7dc01376d3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:09.940219"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:09.942324"], ["id", "cd33fe48-20a5-41f2-8730-8f7dc01376d3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a98539e8-0982-11e5-846e-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 25ms (ActiveRecord: 4.6ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$dN3B/RjxjvkP60zg/sdPTuuFmVz8zywroAfu/JEeXfHJOKzNKLVNG"], ["created_at", "2015-06-02 23:54:09.970321"], ["updated_at", "2015-06-02 23:54:09.970321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:09.973414"], ["user_id", "a98de426-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:09.974476"], ["updated_at", "2015-06-02 23:54:09.974476"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:09.979814"], ["updated_at", "2015-06-02 23:54:09.979814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a98de426-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a98f4c58-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a98de426-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a98f4c58-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:09.984242"], ["updated_at", "2015-06-02 23:54:09.984242"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$s9TwtIeGu7UXFbqFvED4OONytS/Y.kfoxrg5Fv29y3E/WN.Nvdisa"], ["created_at", "2015-06-02 23:54:09.996866"], ["updated_at", "2015-06-02 23:54:09.996866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:10.000383"], ["user_id", "a9920bbe-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:10.001730"], ["updated_at", "2015-06-02 23:54:10.001730"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:10.013354"], ["updated_at", "2015-06-02 23:54:10.013354"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9920bbe-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a9947494-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9920bbe-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a9947494-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:10.020621"], ["updated_at", "2015-06-02 23:54:10.020621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-19" for 127.0.0.1 at 2015-06-02 16:54:10 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-19", "organization"=>{}} Pollett::Context Load (0.8ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:10.027434') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a061d4b3-0ca6-4680-8a59-c1b36fcd1b64"]]  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:10.031329"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:10.034581"], ["id", "a061d4b3-0ca6-4680-8a59-c1b36fcd1b64"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-19"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9920bbe-0982-11e5-846e-a8667f0424ad"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a9920bbe-0982-11e5-846e-a8667f0424ad' LIMIT 1 [["organization_id", "a9947494-0982-11e5-846e-a8667f0424ad"]] Completed 200 OK in 23ms (Views: 2.0ms | ActiveRecord: 3.8ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$pY/hi/pTbDeaNADbu9ooC.8NN2IL.Isj8.tOc8mku7TWKfnOD3VHS"], ["created_at", "2015-06-02 23:54:10.067895"], ["updated_at", "2015-06-02 23:54:10.067895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:10.071530"], ["user_id", "a99cc3d8-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:10.072656"], ["updated_at", "2015-06-02 23:54:10.072656"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:10.079402"], ["updated_at", "2015-06-02 23:54:10.079402"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a99cc3d8-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a99e84e8-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a99cc3d8-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a99e84e8-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:10.085158"], ["updated_at", "2015-06-02 23:54:10.085158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:10 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$/v.HxxTcwZnsjQp1TSw78u.oCa2BOQ9bhnmBC/rPYWC5j27uAFTda"], ["created_at", "2015-06-02 23:54:10.114827"], ["updated_at", "2015-06-02 23:54:10.114827"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:10.122676"], ["user_id", "a9a41d4a-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:10.125959"], ["updated_at", "2015-06-02 23:54:10.125959"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:10.136936"], ["updated_at", "2015-06-02 23:54:10.136936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9a41d4a-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a9a743da-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9a41d4a-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a9a743da-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:10.141936"], ["updated_at", "2015-06-02 23:54:10.141936"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-21" for 127.0.0.1 at 2015-06-02 16:54:10 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-21", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:10.150449') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8ed51615-d24a-4bb4-9614-3c07b4ed8e58"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:10.154786"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:10.155993"], ["id", "8ed51615-d24a-4bb4-9614-3c07b4ed8e58"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9a41d4a-0982-11e5-846e-a8667f0424ad"]] Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9a41d4a-0982-11e5-846e-a8667f0424ad' LIMIT 1 [["organization_id", "a9a743da-0982-11e5-846e-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a9a743da-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.9ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:54:10.177835"], ["id", "a9a743da-0982-11e5-846e-a8667f0424ad"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 38ms (Views: 3.9ms | ActiveRecord: 5.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$XGk2UEol52ocDYEACuLH3u24VACYL9NCz6WiIBP/BYKs7Gk48Z33C"], ["created_at", "2015-06-02 23:54:10.197831"], ["updated_at", "2015-06-02 23:54:10.197831"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:10.205090"], ["user_id", "a9b0e584-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:10.206459"], ["updated_at", "2015-06-02 23:54:10.206459"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:10.216079"], ["updated_at", "2015-06-02 23:54:10.216079"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9b0e584-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a9b3c092-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9b0e584-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a9b3c092-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:10.225728"], ["updated_at", "2015-06-02 23:54:10.225728"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-22" for 127.0.0.1 at 2015-06-02 16:54:10 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-22", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:10.236121') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "60bcf339-2e90-46c2-8583-59fbcf2f9c45"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:10.238320"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:10.239728"], ["id", "60bcf339-2e90-46c2-8583-59fbcf2f9c45"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-22"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9b0e584-0982-11e5-846e-a8667f0424ad"]] Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9b0e584-0982-11e5-846e-a8667f0424ad' LIMIT 1 [["organization_id", "a9b3c092-0982-11e5-846e-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a9b3c092-0982-11e5-846e-a8667f0424ad') LIMIT 1  (0.9ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 31ms (ActiveRecord: 5.1ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$o5t1duHPDuUmbs8iSAp4ju7j14LtNudU9OdpHViYHNFCbm/3TnPzC"], ["created_at", "2015-06-02 23:54:10.279248"], ["updated_at", "2015-06-02 23:54:10.279248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:10.282326"], ["user_id", "a9bd2060-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:10.286486"], ["updated_at", "2015-06-02 23:54:10.286486"], ["client", "App"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:10.297387"], ["updated_at", "2015-06-02 23:54:10.297387"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9bd2060-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a9bfd508-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9bd2060-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a9bfd508-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:10.308803"], ["updated_at", "2015-06-02 23:54:10.308803"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:10 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$KkoAAeZQtZFSlKNOTjt0oe9iH.xj8ipC84ooCePYqUX98teBNLYe2"], ["created_at", "2015-06-02 23:54:10.326993"], ["updated_at", "2015-06-02 23:54:10.326993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:10.331458"], ["user_id", "a9c49692-0982-11e5-846e-a8667f0424ad"], ["created_at", "2015-06-02 23:54:10.332741"], ["updated_at", "2015-06-02 23:54:10.332741"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:10.340881"], ["updated_at", "2015-06-02 23:54:10.340881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9c49692-0982-11e5-846e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a9c66fa8-0982-11e5-846e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9c49692-0982-11e5-846e-a8667f0424ad"], ["organization_id", "a9c66fa8-0982-11e5-846e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:10.346650"], ["updated_at", "2015-06-02 23:54:10.346650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/a9c66fa8-0982-11e5-846e-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:10 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"a9c66fa8-0982-11e5-846e-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:10.350398') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9dd96a24-f926-4476-90dd-6c7a3a9ef204"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:10.352524"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:10.353625"], ["id", "9dd96a24-f926-4476-90dd-6c7a3a9ef204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a9c66fa8-0982-11e5-846e-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9c49692-0982-11e5-846e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9c49692-0982-11e5-846e-a8667f0424ad' LIMIT 1 [["organization_id", "a9c66fa8-0982-11e5-846e-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "a9c66fa8-0982-11e5-846e-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$3JVqRM1J.lgKNQC5Nsk3seKKDiWVbVzp1y6WhVQfo4A05NzQQ9X9."], ["created_at", "2015-06-02 23:54:19.817261"], ["updated_at", "2015-06-02 23:54:19.817261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:19.842758"], ["user_id", "af6c8e88-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:19.850244"], ["updated_at", "2015-06-02 23:54:19.850244"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:19.864544"], ["updated_at", "2015-06-02 23:54:19.864544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'af6c8e88-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'af73a8e4-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "af6c8e88-0982-11e5-874f-a8667f0424ad"], ["organization_id", "af73a8e4-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:19.886942"], ["updated_at", "2015-06-02 23:54:19.886942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:19 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$qBIivbc7lMnto7Sf6uHaKubz.Vy8KkJEkf.RYCseyPga4X8Rqvlka"], ["created_at", "2015-06-02 23:54:19.925324"], ["updated_at", "2015-06-02 23:54:19.925324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:19.927266"], ["user_id", "af7cd6d0-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:19.928072"], ["updated_at", "2015-06-02 23:54:19.928072"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:19.933586"], ["updated_at", "2015-06-02 23:54:19.933586"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'af7cd6d0-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'af7e1cd4-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "af7cd6d0-0982-11e5-874f-a8667f0424ad"], ["organization_id", "af7e1cd4-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:19.937961"], ["updated_at", "2015-06-02 23:54:19.937961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/af7e1cd4-0982-11e5-874f-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:19 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"af7e1cd4-0982-11e5-874f-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.8ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:19.941597') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4081f5e4-3317-4ed2-8723-e5d11e352d14"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:19.952205"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:19.954513"], ["id", "4081f5e4-3317-4ed2-8723-e5d11e352d14"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "af7e1cd4-0982-11e5-874f-a8667f0424ad"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "af7cd6d0-0982-11e5-874f-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'af7cd6d0-0982-11e5-874f-a8667f0424ad' LIMIT 1 [["organization_id", "af7e1cd4-0982-11e5-874f-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'af7e1cd4-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:54:19.984685"], ["id", "af7e1cd4-0982-11e5-874f-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 56ms (Views: 8.9ms | ActiveRecord: 3.6ms)  (1.9ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$h6UAFepcKXcRYW.WIMxw/eMXwLPH746TUO8TN4uCJ.D2fLGf.uvkK"], ["created_at", "2015-06-02 23:54:20.016563"], ["updated_at", "2015-06-02 23:54:20.016563"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.024074"], ["user_id", "af8af116-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.025701"], ["updated_at", "2015-06-02 23:54:20.025701"], ["client", "App"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.037328"], ["updated_at", "2015-06-02 23:54:20.037328"]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'af8af116-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'af8e1a26-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "af8af116-0982-11e5-874f-a8667f0424ad"], ["organization_id", "af8e1a26-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.050991"], ["updated_at", "2015-06-02 23:54:20.050991"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/af8e1a26-0982-11e5-874f-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"af8e1a26-0982-11e5-874f-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:20.060586') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "30e908ac-f7b2-4c21-ad67-1d8797a56e8f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:20.062403"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:20.063817"], ["id", "30e908ac-f7b2-4c21-ad67-1d8797a56e8f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "af8e1a26-0982-11e5-874f-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "af8af116-0982-11e5-874f-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'af8af116-0982-11e5-874f-a8667f0424ad' LIMIT 1 [["organization_id", "af8e1a26-0982-11e5-874f-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'af8e1a26-0982-11e5-874f-a8667f0424ad') LIMIT 1  (1.7ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 43ms (ActiveRecord: 4.7ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$jP0/BAoa3tlh9ZQKtvvFweo5K7q0rCsy2XFPknuTbul2kbOArobCa"], ["created_at", "2015-06-02 23:54:20.116535"], ["updated_at", "2015-06-02 23:54:20.116535"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.120284"], ["user_id", "af9a20dc-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.122557"], ["updated_at", "2015-06-02 23:54:20.122557"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.140821"], ["updated_at", "2015-06-02 23:54:20.140821"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'af9a20dc-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'af9dddf8-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "af9a20dc-0982-11e5-874f-a8667f0424ad"], ["organization_id", "af9dddf8-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.147940"], ["updated_at", "2015-06-02 23:54:20.147940"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$q6L1ZclXaSCD3xToeZqosOs6SE650s05mRDMEOLyYwmCZBt/0miv6"], ["created_at", "2015-06-02 23:54:20.164123"], ["updated_at", "2015-06-02 23:54:20.164123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.172232"], ["updated_at", "2015-06-02 23:54:20.172232"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afa1c5ee-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afa27e26-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "afa1c5ee-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afa27e26-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.176758"], ["updated_at", "2015-06-02 23:54:20.176758"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$KhSqNwQ.2kgkj6XaZV8CeuMaXR3fHkBHTNtkIFVGkc.0ve6pywiuq"], ["created_at", "2015-06-02 23:54:20.193348"], ["updated_at", "2015-06-02 23:54:20.193348"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.197745"], ["user_id", "afa5df94-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.199503"], ["updated_at", "2015-06-02 23:54:20.199503"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.210192"], ["updated_at", "2015-06-02 23:54:20.210192"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afa5df94-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afa8a30a-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afa5df94-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afa8a30a-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.220694"], ["updated_at", "2015-06-02 23:54:20.220694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$2eKqz6aJ4tfk3TBco.jkAOAmvH5S5yvJHkemrqGOfUwqrGWZQw3z2"], ["created_at", "2015-06-02 23:54:20.229541"], ["updated_at", "2015-06-02 23:54:20.229541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.236365"], ["updated_at", "2015-06-02 23:54:20.236365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afab5d84-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afac53d8-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "afab5d84-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afac53d8-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.241067"], ["updated_at", "2015-06-02 23:54:20.241067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:20.245141') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7a6a5fd0-0273-4b78-a9ef-b9092476326a"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:20.248602"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:20.250622"], ["id", "7a6a5fd0-0273-4b78-a9ef-b9092476326a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "afa5df94-0982-11e5-874f-a8667f0424ad"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "afa5df94-0982-11e5-874f-a8667f0424ad"]] Completed 200 OK in 24ms (Views: 3.2ms | ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$5g9lZ18ephaUHz1wbiRLAu5otsmC9pL9VU7KeyWqZm9SYaLGGtkKq"], ["created_at", "2015-06-02 23:54:20.278670"], ["updated_at", "2015-06-02 23:54:20.278670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.290442"], ["user_id", "afb435da-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.291302"], ["updated_at", "2015-06-02 23:54:20.291302"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.297107"], ["updated_at", "2015-06-02 23:54:20.297107"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afb435da-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afb5ac62-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afb435da-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afb5ac62-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.303797"], ["updated_at", "2015-06-02 23:54:20.303797"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$FNrtdufkRENtfWsypi5vHeWio.SAWXh48iAnXKdMImNTsSBtj0AKC"], ["created_at", "2015-06-02 23:54:20.316924"], ["updated_at", "2015-06-02 23:54:20.316924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.318723"], ["user_id", "afb89594-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.319357"], ["updated_at", "2015-06-02 23:54:20.319357"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.324649"], ["updated_at", "2015-06-02 23:54:20.324649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afb89594-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afb9c7c0-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afb89594-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afb9c7c0-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.328404"], ["updated_at", "2015-06-02 23:54:20.328404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:20.332033') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a5a88cd4-4f93-4868-82f6-86d3d3c96e84"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:20.333852"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:20.334762"], ["id", "a5a88cd4-4f93-4868-82f6-86d3d3c96e84"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-9"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "afb89594-0982-11e5-874f-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'afb89594-0982-11e5-874f-a8667f0424ad' LIMIT 1 [["organization_id", "afb9c7c0-0982-11e5-874f-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'afb9c7c0-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:54:20.343446"], ["id", "afb9c7c0-0982-11e5-874f-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.7ms | ActiveRecord: 2.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$MdZIWnWfv/ZUgSFy5qaqee1XnTMagLa4DtuMLCj/uh4yVjEEB2h0a"], ["created_at", "2015-06-02 23:54:20.357620"], ["updated_at", "2015-06-02 23:54:20.357620"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.360413"], ["user_id", "afbedfbc-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.361286"], ["updated_at", "2015-06-02 23:54:20.361286"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.367292"], ["updated_at", "2015-06-02 23:54:20.367292"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afbedfbc-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afc097f8-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afbedfbc-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afc097f8-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.380264"], ["updated_at", "2015-06-02 23:54:20.380264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.9ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:20.390128') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "85314866-7495-404b-b1db-d03d5e1d7b13"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:20.394929"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:20.399201"], ["id", "85314866-7495-404b-b1db-d03d5e1d7b13"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "afbedfbc-0982-11e5-874f-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'afbedfbc-0982-11e5-874f-a8667f0424ad' LIMIT 1 [["organization_id", "afc097f8-0982-11e5-874f-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'afc097f8-0982-11e5-874f-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 26ms (ActiveRecord: 3.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$PyPMPok2vPP2Pl1lwxt31uLNP70dTZrsICGyWacWEzLxfFV2aObTW"], ["created_at", "2015-06-02 23:54:20.424318"], ["updated_at", "2015-06-02 23:54:20.424318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.426220"], ["user_id", "afc8f9a2-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.426978"], ["updated_at", "2015-06-02 23:54:20.426978"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.433479"], ["updated_at", "2015-06-02 23:54:20.433479"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afc8f9a2-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afca64ea-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afc8f9a2-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afca64ea-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.438086"], ["updated_at", "2015-06-02 23:54:20.438086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$zXzOOHxhRuP5e9D63T6OuO69NjyZEnv5nvLflgGwrU6LQBi1HOHzS"], ["created_at", "2015-06-02 23:54:20.461726"], ["updated_at", "2015-06-02 23:54:20.461726"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.465950"], ["user_id", "afceb37e-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.470134"], ["updated_at", "2015-06-02 23:54:20.470134"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (3.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.479665"], ["updated_at", "2015-06-02 23:54:20.479665"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afceb37e-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afd1d446-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afceb37e-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afd1d446-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.503399"], ["updated_at", "2015-06-02 23:54:20.503399"]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/afd1d446-0982-11e5-874f-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"afd1d446-0982-11e5-874f-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:20.515750') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "320d3118-7015-4ed3-9d28-6dd29f20c7ca"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:20.520736"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:20.526449"], ["id", "320d3118-7015-4ed3-9d28-6dd29f20c7ca"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "afd1d446-0982-11e5-874f-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "afceb37e-0982-11e5-874f-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'afceb37e-0982-11e5-874f-a8667f0424ad' LIMIT 1 [["organization_id", "afd1d446-0982-11e5-874f-a8667f0424ad"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "afd1d446-0982-11e5-874f-a8667f0424ad"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 25ms (ActiveRecord: 4.8ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$Lo/VjvVo760zKmZbBcNbIObsXjMBM6dA1kqkqB97g8TUgqiv9KSTm"], ["created_at", "2015-06-02 23:54:20.560826"], ["updated_at", "2015-06-02 23:54:20.560826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.564065"], ["user_id", "afdddebc-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.564848"], ["updated_at", "2015-06-02 23:54:20.564848"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.570329"], ["updated_at", "2015-06-02 23:54:20.570329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afdddebc-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afdf4220-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afdddebc-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afdf4220-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.575321"], ["updated_at", "2015-06-02 23:54:20.575321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$7nameIhaSLiS/XBixPWc8eDmhpxHx08bQOiJEtfI6274AoU3AOPe."], ["created_at", "2015-06-02 23:54:20.587016"], ["updated_at", "2015-06-02 23:54:20.587016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.589553"], ["user_id", "afe1d3c8-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.590552"], ["updated_at", "2015-06-02 23:54:20.590552"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.597320"], ["updated_at", "2015-06-02 23:54:20.597320"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afe1d3c8-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afe37f8e-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afe1d3c8-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afe37f8e-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.605648"], ["updated_at", "2015-06-02 23:54:20.605648"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-14" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-14", "organization"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:20.611851') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4db96a54-9c91-4c2d-8de1-a9a588ee6889"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:20.614180"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:20.615508"], ["id", "4db96a54-9c91-4c2d-8de1-a9a588ee6889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-14"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "afe1d3c8-0982-11e5-874f-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'afe1d3c8-0982-11e5-874f-a8667f0424ad' LIMIT 1 [["organization_id", "afe37f8e-0982-11e5-874f-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "afe37f8e-0982-11e5-874f-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$xyvGsQt7sty830JFbz.BluqjJBjS73mGvlw5B/MKtBtdhweclxPkS"], ["created_at", "2015-06-02 23:54:20.632084"], ["updated_at", "2015-06-02 23:54:20.632084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.634095"], ["user_id", "afe8ae14-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.634799"], ["updated_at", "2015-06-02 23:54:20.634799"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.640998"], ["updated_at", "2015-06-02 23:54:20.640998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afe8ae14-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afea1970-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afe8ae14-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afea1970-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.646495"], ["updated_at", "2015-06-02 23:54:20.646495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$WiTr4I4.jV2dRMvJj4OPIO/RO2iPodDpsFxU1/wfDxduRaF4ifYum"], ["created_at", "2015-06-02 23:54:20.661830"], ["updated_at", "2015-06-02 23:54:20.661830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.665059"], ["user_id", "afed40d2-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.665897"], ["updated_at", "2015-06-02 23:54:20.665897"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.671650"], ["updated_at", "2015-06-02 23:54:20.671650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afed40d2-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'afeeb4da-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afed40d2-0982-11e5-874f-a8667f0424ad"], ["organization_id", "afeeb4da-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.675302"], ["updated_at", "2015-06-02 23:54:20.675302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:20.678524') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d3ed373b-3243-4d24-9d5c-8373e1c99fd3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:20.680647"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:20.681681"], ["id", "d3ed373b-3243-4d24-9d5c-8373e1c99fd3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "afed40d2-0982-11e5-874f-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.692705"], ["updated_at", "2015-06-02 23:54:20.692705"]] Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afed40d2-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'aff204e6-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afed40d2-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["organization_id", "aff204e6-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.700936"], ["updated_at", "2015-06-02 23:54:20.700936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 28ms (Views: 0.8ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$5Wytx6tgZfahQ5nhMEpKhOmNIMYBkw0sxY8MkZGRmIwI1xixYT.My"], ["created_at", "2015-06-02 23:54:20.716693"], ["updated_at", "2015-06-02 23:54:20.716693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.719263"], ["user_id", "aff5a01a-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.720062"], ["updated_at", "2015-06-02 23:54:20.720062"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.725298"], ["updated_at", "2015-06-02 23:54:20.725298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aff5a01a-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'aff6e628-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aff5a01a-0982-11e5-874f-a8667f0424ad"], ["organization_id", "aff6e628-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.728825"], ["updated_at", "2015-06-02 23:54:20.728825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:20.733028') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7e2eee81-80e8-4ed7-8a06-6c878209d05d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:20.734804"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:20.735768"], ["id", "7e2eee81-80e8-4ed7-8a06-6c878209d05d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aff5a01a-0982-11e5-874f-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$1svje37kR1EXRt73nT4q8uWcyQ4e5ceFo1oKVo0nxOEHqB3wvs8TS"], ["created_at", "2015-06-02 23:54:20.756946"], ["updated_at", "2015-06-02 23:54:20.756946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.759869"], ["user_id", "affbd264-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.761384"], ["updated_at", "2015-06-02 23:54:20.761384"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.768294"], ["updated_at", "2015-06-02 23:54:20.768294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'affbd264-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'affd75d8-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "affbd264-0982-11e5-874f-a8667f0424ad"], ["organization_id", "affd75d8-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.772148"], ["updated_at", "2015-06-02 23:54:20.772148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:20 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$Gy2ejnC9AUEKXZQp/6UTgukClXTQoepOA9PhHlOSa3WSb3cEoYQru"], ["created_at", "2015-06-02 23:54:20.782101"], ["updated_at", "2015-06-02 23:54:20.782101"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.785480"], ["user_id", "afffbbea-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.786429"], ["updated_at", "2015-06-02 23:54:20.786429"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.791827"], ["updated_at", "2015-06-02 23:54:20.791827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afffbbea-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b0011738-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afffbbea-0982-11e5-874f-a8667f0424ad"], ["organization_id", "b0011738-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.796284"], ["updated_at", "2015-06-02 23:54:20.796284"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-19" for 127.0.0.1 at 2015-06-02 16:54:20 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$UuB2sewVX1kOk2vHiK1/o.5S9JWhvyj.GADnJjn2TebRO7iEUFHCu"], ["created_at", "2015-06-02 23:54:20.819654"], ["updated_at", "2015-06-02 23:54:20.819654"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.822941"], ["user_id", "b0056284-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.824127"], ["updated_at", "2015-06-02 23:54:20.824127"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.832943"], ["updated_at", "2015-06-02 23:54:20.832943"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b0056284-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b0076520-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b0056284-0982-11e5-874f-a8667f0424ad"], ["organization_id", "b0076520-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.840448"], ["updated_at", "2015-06-02 23:54:20.840448"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:54:20 -0700  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$DQHAmNCOSJHfMTPIrybPAeJc8AQRDwsdzo02WCWuUMs1erSQbm6fG"], ["created_at", "2015-06-02 23:54:20.859746"], ["updated_at", "2015-06-02 23:54:20.859746"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.862871"], ["user_id", "b00b734a-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.865065"], ["updated_at", "2015-06-02 23:54:20.865065"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.874547"], ["updated_at", "2015-06-02 23:54:20.874547"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b00b734a-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b00e421e-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b00b734a-0982-11e5-874f-a8667f0424ad"], ["organization_id", "b00e421e-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.886118"], ["updated_at", "2015-06-02 23:54:20.886118"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$hSOwqFLxBsKfvAju07/3su231AwE8tCI8XnNBJETL7O5R5ThdVn.O"], ["created_at", "2015-06-02 23:54:20.896952"], ["updated_at", "2015-06-02 23:54:20.896952"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.899972"], ["user_id", "b01124c0-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.901902"], ["updated_at", "2015-06-02 23:54:20.901902"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.910422"], ["updated_at", "2015-06-02 23:54:20.910422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b01124c0-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b0132afe-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b01124c0-0982-11e5-874f-a8667f0424ad"], ["organization_id", "b0132afe-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.914856"], ["updated_at", "2015-06-02 23:54:20.914856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/b0132afe-0982-11e5-874f-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"b0132afe-0982-11e5-874f-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:20.918305') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6391dd62-cc97-4329-8080-22c19b875a97"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:20.919712"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:20.920506"], ["id", "6391dd62-cc97-4329-8080-22c19b875a97"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b0132afe-0982-11e5-874f-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b01124c0-0982-11e5-874f-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b01124c0-0982-11e5-874f-a8667f0424ad' LIMIT 1 [["organization_id", "b0132afe-0982-11e5-874f-a8667f0424ad"]] Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$A3CeVmthpp1M.kOR8SFdFeKEe.V0ZNxsXANsvc.BW0AhG8OXPav0m"], ["created_at", "2015-06-02 23:54:20.937437"], ["updated_at", "2015-06-02 23:54:20.937437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.939270"], ["user_id", "b017456c-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.940254"], ["updated_at", "2015-06-02 23:54:20.940254"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.947505"], ["updated_at", "2015-06-02 23:54:20.947505"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b017456c-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b018e1ce-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b017456c-0982-11e5-874f-a8667f0424ad"], ["organization_id", "b018e1ce-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.954393"], ["updated_at", "2015-06-02 23:54:20.954393"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$UQyyV0M0/v3TdTAqcK18x.uEuS6R0f.Y7GnFGDYCrTbO5hIjpILvu"], ["created_at", "2015-06-02 23:54:20.971629"], ["updated_at", "2015-06-02 23:54:20.971629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:20.975119"], ["user_id", "b01ca52a-0982-11e5-874f-a8667f0424ad"], ["created_at", "2015-06-02 23:54:20.976460"], ["updated_at", "2015-06-02 23:54:20.976460"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:20.982567"], ["updated_at", "2015-06-02 23:54:20.982567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b01ca52a-0982-11e5-874f-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b01e2486-0982-11e5-874f-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b01ca52a-0982-11e5-874f-a8667f0424ad"], ["organization_id", "b01e2486-0982-11e5-874f-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:20.986466"], ["updated_at", "2015-06-02 23:54:20.986466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-24" for 127.0.0.1 at 2015-06-02 16:54:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-24", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:20.989817') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4389582f-9102-406d-9e0f-caf32a7aca56"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:20.991149"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:20.991895"], ["id", "4389582f-9102-406d-9e0f-caf32a7aca56"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b01ca52a-0982-11e5-874f-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b01ca52a-0982-11e5-874f-a8667f0424ad' LIMIT 1 [["organization_id", "b01e2486-0982-11e5-874f-a8667f0424ad"]] Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$lVRnOffvPSXUaehcfRI59eUCvQTGFLifbDPuqqs3TmgJJXkYVcI4q"], ["created_at", "2015-06-02 23:54:34.317582"], ["updated_at", "2015-06-02 23:54:34.317582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.357459"], ["user_id", "b8113980-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.365322"], ["updated_at", "2015-06-02 23:54:34.365322"], ["client", "App"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.384914"], ["updated_at", "2015-06-02 23:54:34.384914"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8113980-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b81b4a10-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8113980-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b81b4a10-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.399374"], ["updated_at", "2015-06-02 23:54:34.399374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$MNUB2QfoBao2f3Y73.Xjju399QWHerO7oJ6xsKQG/im/FxORsVaHS"], ["created_at", "2015-06-02 23:54:34.406863"], ["updated_at", "2015-06-02 23:54:34.406863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.411419"], ["updated_at", "2015-06-02 23:54:34.411419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b81e90da-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b81f38b4-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b81e90da-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b81f38b4-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.415064"], ["updated_at", "2015-06-02 23:54:34.415064"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:34.439584') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "23607317-90ad-404d-87c0-a51e008a69ff"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:34.450870"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:34.453648"], ["id", "23607317-90ad-404d-87c0-a51e008a69ff"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8113980-0982-11e5-9078-a8667f0424ad"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "b8113980-0982-11e5-9078-a8667f0424ad"]] Completed 200 OK in 83ms (Views: 10.4ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$PFzxyUCIrfF.RR/OfFBhZuU5F.1i3jav3.xhFvp7w44V8FL/xSamy"], ["created_at", "2015-06-02 23:54:34.536104"], ["updated_at", "2015-06-02 23:54:34.536104"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.538732"], ["user_id", "b8324b34-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.539669"], ["updated_at", "2015-06-02 23:54:34.539669"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.545426"], ["updated_at", "2015-06-02 23:54:34.545426"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8324b34-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b833d152-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8324b34-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b833d152-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.552931"], ["updated_at", "2015-06-02 23:54:34.552931"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$jesvHDC1XhBX6lzi/JWf4e4SwUOCws62bYDRHFmtSZXercPs0585q"], ["created_at", "2015-06-02 23:54:34.561857"], ["updated_at", "2015-06-02 23:54:34.561857"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.567541"], ["updated_at", "2015-06-02 23:54:34.567541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b836371c-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b8370f5c-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b836371c-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b8370f5c-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.571322"], ["updated_at", "2015-06-02 23:54:34.571322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$nIRJGDN6aS8ZplW0Pb2LveibUmmXwj.iKL5onYwpwVEAhPFqCw8uS"], ["created_at", "2015-06-02 23:54:34.585999"], ["updated_at", "2015-06-02 23:54:34.585999"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.589266"], ["user_id", "b839eef2-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.590226"], ["updated_at", "2015-06-02 23:54:34.590226"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.597226"], ["updated_at", "2015-06-02 23:54:34.597226"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b839eef2-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b83bbb9c-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (1.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b839eef2-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b83bbb9c-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.607557"], ["updated_at", "2015-06-02 23:54:34.607557"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$k16ss69lBeOCPKNleIHriuvvc7sdlooQwIjluz3ck.AZTYVUGVI92"], ["created_at", "2015-06-02 23:54:34.623727"], ["updated_at", "2015-06-02 23:54:34.623727"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.626824"], ["user_id", "b83fbb5c-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.627904"], ["updated_at", "2015-06-02 23:54:34.627904"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.635077"], ["updated_at", "2015-06-02 23:54:34.635077"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b83fbb5c-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b8416c9a-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b83fbb5c-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b8416c9a-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.642027"], ["updated_at", "2015-06-02 23:54:34.642027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (1.1ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:34.648912') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b09f3777-944b-453c-8b82-11fbaed27933"]]  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:34.652361"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:34.653721"], ["id", "b09f3777-944b-453c-8b82-11fbaed27933"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b83fbb5c-0982-11e5-9078-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (2.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 41ms (ActiveRecord: 7.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$mcpQ2iZxbgJuIm6YNb4FqOKANy4ZeCz9IX2Yq1bDtiDxfnqPTSxnm"], ["created_at", "2015-06-02 23:54:34.701515"], ["updated_at", "2015-06-02 23:54:34.701515"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.705443"], ["user_id", "b84b9e68-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.709191"], ["updated_at", "2015-06-02 23:54:34.709191"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.721466"], ["updated_at", "2015-06-02 23:54:34.721466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b84b9e68-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b84e95b4-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b84b9e68-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b84e95b4-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.726054"], ["updated_at", "2015-06-02 23:54:34.726054"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:34.731458') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "02134ab0-9e65-45f9-9c0c-4ef6ed2e0190"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:34.733423"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:34.734606"], ["id", "02134ab0-9e65-45f9-9c0c-4ef6ed2e0190"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b84b9e68-0982-11e5-9078-a8667f0424ad"]] Unpermitted parameter: organization  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.749964"], ["updated_at", "2015-06-02 23:54:34.749964"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b84b9e68-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b853520c-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b84b9e68-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["organization_id", "b853520c-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.757554"], ["updated_at", "2015-06-02 23:54:34.757554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 31ms (Views: 0.7ms | ActiveRecord: 6.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (9.9ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$f5HSGgexoOxDI9OdraqD6.jzPsMN1FpKF3.iqMBJfhQPGVzz9Hpui"], ["created_at", "2015-06-02 23:54:34.784498"], ["updated_at", "2015-06-02 23:54:34.784498"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.787376"], ["user_id", "b8583362-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.788184"], ["updated_at", "2015-06-02 23:54:34.788184"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.794101"], ["updated_at", "2015-06-02 23:54:34.794101"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8583362-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b859af94-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8583362-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b859af94-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.800342"], ["updated_at", "2015-06-02 23:54:34.800342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/b859af94-0982-11e5-9078-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"b859af94-0982-11e5-9078-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:34.806322') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0c7f7159-56c8-41e1-bb1f-e178515e37b9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:34.808234"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:34.809161"], ["id", "0c7f7159-56c8-41e1-bb1f-e178515e37b9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b859af94-0982-11e5-9078-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8583362-0982-11e5-9078-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b8583362-0982-11e5-9078-a8667f0424ad' LIMIT 1 [["organization_id", "b859af94-0982-11e5-9078-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$e7VNVvtae3Lxwy35ZvnesecmnfjhglfNSTwp3UIfN4QtHN/5nldnq"], ["created_at", "2015-06-02 23:54:34.825581"], ["updated_at", "2015-06-02 23:54:34.825581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.827283"], ["user_id", "b85e6bce-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.828034"], ["updated_at", "2015-06-02 23:54:34.828034"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.832703"], ["updated_at", "2015-06-02 23:54:34.832703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b85e6bce-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b85f8554-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b85e6bce-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b85f8554-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.836504"], ["updated_at", "2015-06-02 23:54:34.836504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$yzfNRO0E51hA6apcU8VZteeWbfzyjL45li.ipHdc8Y/ApmbQ4IJLy"], ["created_at", "2015-06-02 23:54:34.847438"], ["updated_at", "2015-06-02 23:54:34.847438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.849878"], ["user_id", "b861cdc8-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.850758"], ["updated_at", "2015-06-02 23:54:34.850758"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.856750"], ["updated_at", "2015-06-02 23:54:34.856750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b861cdc8-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b8633636-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b861cdc8-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b8633636-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.860870"], ["updated_at", "2015-06-02 23:54:34.860870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$xDkfXlfEgSVpWf3Kw5bmLepdtiOYZ.1rFeAaJUF2ZKBrPIwLs0RBO"], ["created_at", "2015-06-02 23:54:34.871869"], ["updated_at", "2015-06-02 23:54:34.871869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.874575"], ["user_id", "b865925a-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.875489"], ["updated_at", "2015-06-02 23:54:34.875489"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.881270"], ["updated_at", "2015-06-02 23:54:34.881270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b865925a-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b866f6ea-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b865925a-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b866f6ea-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.885152"], ["updated_at", "2015-06-02 23:54:34.885152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-11" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-11", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:34.888273') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5b9afe54-9224-4796-9d74-c6318c29ef20"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:34.890063"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:34.891128"], ["id", "5b9afe54-9224-4796-9d74-c6318c29ef20"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-11"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b865925a-0982-11e5-9078-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b865925a-0982-11e5-9078-a8667f0424ad' LIMIT 1 [["organization_id", "b866f6ea-0982-11e5-9078-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b866f6ea-0982-11e5-9078-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$qrgq.qHPdyIvU4UowkIHlOtst3kR9m2iQDb4Wxy7McNkEfMIF5jRK"], ["created_at", "2015-06-02 23:54:34.912038"], ["updated_at", "2015-06-02 23:54:34.912038"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.914368"], ["user_id", "b86ba104-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.915552"], ["updated_at", "2015-06-02 23:54:34.915552"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.921228"], ["updated_at", "2015-06-02 23:54:34.921228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b86ba104-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b86d0bca-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b86ba104-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b86d0bca-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.925494"], ["updated_at", "2015-06-02 23:54:34.925494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-12" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-12", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:34.928711') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fe643166-4b5c-4365-b669-72e9b09a5b90"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:34.930529"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:34.931676"], ["id", "fe643166-4b5c-4365-b669-72e9b09a5b90"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b86ba104-0982-11e5-9078-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b86ba104-0982-11e5-9078-a8667f0424ad' LIMIT 1 [["organization_id", "b86d0bca-0982-11e5-9078-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b86d0bca-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:54:34.939883"], ["id", "b86d0bca-0982-11e5-9078-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$eKLwWcE6Rj2PmooNPRQApeCE0.RYVB31gLdAmfy/nBBa7.yhqwmiC"], ["created_at", "2015-06-02 23:54:34.952082"], ["updated_at", "2015-06-02 23:54:34.952082"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:34.955199"], ["user_id", "b871caac-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:34.958460"], ["updated_at", "2015-06-02 23:54:34.958460"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:34.964861"], ["updated_at", "2015-06-02 23:54:34.964861"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b871caac-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b873b3da-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b871caac-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b873b3da-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:34.969554"], ["updated_at", "2015-06-02 23:54:34.969554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/b873b3da-0982-11e5-9078-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:34 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"b873b3da-0982-11e5-9078-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:34.974131') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c2f92519-4e14-49e6-823c-ad2d629c1f62"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:34.976530"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:34.978365"], ["id", "c2f92519-4e14-49e6-823c-ad2d629c1f62"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b873b3da-0982-11e5-9078-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b871caac-0982-11e5-9078-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b871caac-0982-11e5-9078-a8667f0424ad' LIMIT 1 [["organization_id", "b873b3da-0982-11e5-9078-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "b873b3da-0982-11e5-9078-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 16ms (ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$iwaL8.CdQPcpEdXUpfBD.OJwpkJq0HuhIJtcC2WsnrI.hYhTUcQKu"], ["created_at", "2015-06-02 23:54:34.998343"], ["updated_at", "2015-06-02 23:54:34.998343"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.003194"], ["user_id", "b878f638-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.004596"], ["updated_at", "2015-06-02 23:54:35.004596"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.017286"], ["updated_at", "2015-06-02 23:54:35.017286"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b878f638-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b87bbe40-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b878f638-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b87bbe40-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.031170"], ["updated_at", "2015-06-02 23:54:35.031170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:35 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (2.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$2tm2MXHNc83xvKnLfy855OPeTNFojWFySmAtMKDXYIP9LG11jB7W."], ["created_at", "2015-06-02 23:54:35.061275"], ["updated_at", "2015-06-02 23:54:35.061275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.063714"], ["user_id", "b882719a-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.065772"], ["updated_at", "2015-06-02 23:54:35.065772"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.085857"], ["updated_at", "2015-06-02 23:54:35.085857"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b882719a-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b886c876-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b882719a-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b886c876-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.099532"], ["updated_at", "2015-06-02 23:54:35.099532"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:35 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$L6I0CtSaV4zqGFajcy.q6eC1rrhmBxKr5I2huIy/DyhBOH83niV6m"], ["created_at", "2015-06-02 23:54:35.113544"], ["updated_at", "2015-06-02 23:54:35.113544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.116122"], ["user_id", "b88a74a8-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.116965"], ["updated_at", "2015-06-02 23:54:35.116965"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.123685"], ["updated_at", "2015-06-02 23:54:35.123685"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b88a74a8-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b88c0d90-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b88a74a8-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b88c0d90-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.129575"], ["updated_at", "2015-06-02 23:54:35.129575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:54:35 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$YUwpqsQtPxrcw5KgPfRzDumkqBMvwL1FOC2vYDXwLgFNB20JNH6U6"], ["created_at", "2015-06-02 23:54:35.140866"], ["updated_at", "2015-06-02 23:54:35.140866"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.143330"], ["user_id", "b88e8e80-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.144367"], ["updated_at", "2015-06-02 23:54:35.144367"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.149465"], ["updated_at", "2015-06-02 23:54:35.149465"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b88e8e80-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b88fde52-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b88e8e80-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b88fde52-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.155501"], ["updated_at", "2015-06-02 23:54:35.155501"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-17" for 127.0.0.1 at 2015-06-02 16:54:35 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$c0Y3ovCVwY/JlqmOdX3b7uK6/dzM80foJCPleLKZOA2GJCVIoT9w2"], ["created_at", "2015-06-02 23:54:35.169624"], ["updated_at", "2015-06-02 23:54:35.169624"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.174706"], ["user_id", "b893415a-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.178103"], ["updated_at", "2015-06-02 23:54:35.178103"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.190217"], ["updated_at", "2015-06-02 23:54:35.190217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b893415a-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b8962f1e-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b893415a-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b8962f1e-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.203714"], ["updated_at", "2015-06-02 23:54:35.203714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-18" for 127.0.0.1 at 2015-06-02 16:54:35 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:35.208136') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7e1014e2-3456-434b-aae3-b37786a54550"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:35.210160"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:35.211414"], ["id", "7e1014e2-3456-434b-aae3-b37786a54550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-18"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b893415a-0982-11e5-9078-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b893415a-0982-11e5-9078-a8667f0424ad' LIMIT 1 [["organization_id", "b8962f1e-0982-11e5-9078-a8667f0424ad"]] Completed 200 OK in 13ms (Views: 1.4ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$hhJ4wBTDwKQTSI3jjRxWYujSbxJVOaJtcer2sRQUyjQW0BVFO2TBe"], ["created_at", "2015-06-02 23:54:35.231374"], ["updated_at", "2015-06-02 23:54:35.231374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.234202"], ["user_id", "b89c6a96-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.235101"], ["updated_at", "2015-06-02 23:54:35.235101"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.239949"], ["updated_at", "2015-06-02 23:54:35.239949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b89c6a96-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b89db248-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b89c6a96-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b89db248-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.244844"], ["updated_at", "2015-06-02 23:54:35.244844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:35 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$n61Mkl36QRwc5m3FQdivS.djUgbPhR6n4YqBqAKW5oHq0h3uCcxMC"], ["created_at", "2015-06-02 23:54:35.257688"], ["updated_at", "2015-06-02 23:54:35.257688"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.261581"], ["user_id", "b8a06e70-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.262551"], ["updated_at", "2015-06-02 23:54:35.262551"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.268392"], ["updated_at", "2015-06-02 23:54:35.268392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8a06e70-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b8a20244-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8a06e70-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b8a20244-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.272073"], ["updated_at", "2015-06-02 23:54:35.272073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:35 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$eOU8CifI/wkU5CtuU13Ia.ZiGYwqEcMfxBm6GigQrVWEyUGxQjcEi"], ["created_at", "2015-06-02 23:54:35.290403"], ["updated_at", "2015-06-02 23:54:35.290403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.293013"], ["user_id", "b8a562ea-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.293885"], ["updated_at", "2015-06-02 23:54:35.293885"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.299460"], ["updated_at", "2015-06-02 23:54:35.299460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8a562ea-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b8a6d954-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8a562ea-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b8a6d954-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.305189"], ["updated_at", "2015-06-02 23:54:35.305189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/b8a6d954-0982-11e5-9078-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:35 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"b8a6d954-0982-11e5-9078-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:35.310795') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5c7dec26-1ba1-41a1-8803-2ab7f7bb6420"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:35.313510"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:35.314835"], ["id", "5c7dec26-1ba1-41a1-8803-2ab7f7bb6420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b8a6d954-0982-11e5-9078-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8a562ea-0982-11e5-9078-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8a562ea-0982-11e5-9078-a8667f0424ad' LIMIT 1 [["organization_id", "b8a6d954-0982-11e5-9078-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b8a6d954-0982-11e5-9078-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$gV4PIEmq17lG2tGxqYD4N.hc8y94loSZfWhBCmUz9Oh2oOpH4rTBa"], ["created_at", "2015-06-02 23:54:35.334801"], ["updated_at", "2015-06-02 23:54:35.334801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.336739"], ["user_id", "b8ac2530-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.337403"], ["updated_at", "2015-06-02 23:54:35.337403"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.342570"], ["updated_at", "2015-06-02 23:54:35.342570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8ac2530-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b8ad532e-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8ac2530-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b8ad532e-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.347805"], ["updated_at", "2015-06-02 23:54:35.347805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/b8ad532e-0982-11e5-9078-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:35 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"b8ad532e-0982-11e5-9078-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:35.352130') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "59fa6cc3-66df-4b46-bfeb-96592e53f250"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:35.354093"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:35.354849"], ["id", "59fa6cc3-66df-4b46-bfeb-96592e53f250"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b8ad532e-0982-11e5-9078-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8ac2530-0982-11e5-9078-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8ac2530-0982-11e5-9078-a8667f0424ad' LIMIT 1 [["organization_id", "b8ad532e-0982-11e5-9078-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b8ad532e-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:54:35.368787"], ["id", "b8ad532e-0982-11e5-9078-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 1.0ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$fiEs5LaGB02BpFSV/RH0m.1IN.QBw7Xw6KdVENWhZJ3DwM58ADA7S"], ["created_at", "2015-06-02 23:54:35.382755"], ["updated_at", "2015-06-02 23:54:35.382755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.385376"], ["user_id", "b8b37f1a-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.386172"], ["updated_at", "2015-06-02 23:54:35.386172"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.391240"], ["updated_at", "2015-06-02 23:54:35.391240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8b37f1a-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b8b4d144-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8b37f1a-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b8b4d144-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.395697"], ["updated_at", "2015-06-02 23:54:35.395697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-23" for 127.0.0.1 at 2015-06-02 16:54:35 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-23", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:35.400686') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4b5c59d7-4689-46be-938a-fee0a4287762"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:35.402846"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:35.403879"], ["id", "4b5c59d7-4689-46be-938a-fee0a4287762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8b37f1a-0982-11e5-9078-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8b37f1a-0982-11e5-9078-a8667f0424ad' LIMIT 1 [["organization_id", "b8b4d144-0982-11e5-9078-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "b8b4d144-0982-11e5-9078-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$sqyoDjuMM3MqxWGveCSS4emFiQXhqg6G1hiNabnYz6DT31LUUnCA6"], ["created_at", "2015-06-02 23:54:35.421103"], ["updated_at", "2015-06-02 23:54:35.421103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:35.423471"], ["user_id", "b8b950ca-0982-11e5-9078-a8667f0424ad"], ["created_at", "2015-06-02 23:54:35.424461"], ["updated_at", "2015-06-02 23:54:35.424461"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:35.429787"], ["updated_at", "2015-06-02 23:54:35.429787"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8b950ca-0982-11e5-9078-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'b8baac7c-0982-11e5-9078-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b8b950ca-0982-11e5-9078-a8667f0424ad"], ["organization_id", "b8baac7c-0982-11e5-9078-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:35.436197"], ["updated_at", "2015-06-02 23:54:35.436197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:35 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$eL1pZada0A7SdhtLpRocUO4oqxoc0pK3RE7UrNGFTa/zEWi1ot.kS"], ["created_at", "2015-06-02 23:54:47.530073"], ["updated_at", "2015-06-02 23:54:47.530073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.559288"], ["user_id", "bff12f48-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.566817"], ["updated_at", "2015-06-02 23:54:47.566817"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.579092"], ["updated_at", "2015-06-02 23:54:47.579092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bff12f48-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bff88db0-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bff12f48-0982-11e5-b310-a8667f0424ad"], ["organization_id", "bff88db0-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:47.595490"], ["updated_at", "2015-06-02 23:54:47.595490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/bff88db0-0982-11e5-b310-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:47 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"bff88db0-0982-11e5-b310-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:47.620142') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3f7800ad-e426-4505-bdeb-9a1d3e515eba"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:47.628308"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:47.629458"], ["id", "3f7800ad-e426-4505-bdeb-9a1d3e515eba"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bff88db0-0982-11e5-b310-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bff12f48-0982-11e5-b310-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bff12f48-0982-11e5-b310-a8667f0424ad' LIMIT 1 [["organization_id", "bff88db0-0982-11e5-b310-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bff88db0-0982-11e5-b310-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 40ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$phJngYkWkhhuDnF3yY2w4O/Y6wAUBWLcl0Kq67beSqN44tdHL2qOu"], ["created_at", "2015-06-02 23:54:47.668512"], ["updated_at", "2015-06-02 23:54:47.668512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.670165"], ["user_id", "c00618c2-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.670778"], ["updated_at", "2015-06-02 23:54:47.670778"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.675872"], ["updated_at", "2015-06-02 23:54:47.675872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c00618c2-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c0073e0a-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c00618c2-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c0073e0a-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:47.679512"], ["updated_at", "2015-06-02 23:54:47.679512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:47 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$dyy40PVaxNtyWmZHyKZz5OL.STNcaOBLW364UIHe5wsWeWKFhsGgW"], ["created_at", "2015-06-02 23:54:47.690237"], ["updated_at", "2015-06-02 23:54:47.690237"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.692989"], ["user_id", "c0097b84-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.693741"], ["updated_at", "2015-06-02 23:54:47.693741"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.698986"], ["updated_at", "2015-06-02 23:54:47.698986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c0097b84-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c00acb10-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c0097b84-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c00acb10-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:47.702731"], ["updated_at", "2015-06-02 23:54:47.702731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:47 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$u0jCwTbQSwuU/DX4O4/lp.ZUuJaj3iMpbgv4efGejBuCtymYwH15y"], ["created_at", "2015-06-02 23:54:47.711598"], ["updated_at", "2015-06-02 23:54:47.711598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.713341"], ["user_id", "c00cae8a-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.713932"], ["updated_at", "2015-06-02 23:54:47.713932"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.718165"], ["updated_at", "2015-06-02 23:54:47.718165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c00cae8a-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c00dace0-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c00cae8a-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c00dace0-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:47.721423"], ["updated_at", "2015-06-02 23:54:47.721423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:54:47 -0700  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$sH4FEUMLwYJOKBebYxlBoeskJ.HHHzqoBOWrQLEJ5ypGzy5XW.wx."], ["created_at", "2015-06-02 23:54:47.740338"], ["updated_at", "2015-06-02 23:54:47.740338"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.744273"], ["user_id", "c01132c0-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.745601"], ["updated_at", "2015-06-02 23:54:47.745601"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.753148"], ["updated_at", "2015-06-02 23:54:47.753148"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c01132c0-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c01313ec-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c01132c0-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c01313ec-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:47.760069"], ["updated_at", "2015-06-02 23:54:47.760069"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-5" for 127.0.0.1 at 2015-06-02 16:54:47 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$WDwmPWHuzIMJFtBblYV.uuR.xtaDBsJz7pOWkSr3IS3.O.VIrfOAC"], ["created_at", "2015-06-02 23:54:47.772467"], ["updated_at", "2015-06-02 23:54:47.772467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.774255"], ["user_id", "c015f756-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.774920"], ["updated_at", "2015-06-02 23:54:47.774920"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.779184"], ["updated_at", "2015-06-02 23:54:47.779184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c015f756-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c016f8c2-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c015f756-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c016f8c2-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:47.782274"], ["updated_at", "2015-06-02 23:54:47.782274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-06-02 16:54:47 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:47.785738') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ee88e1b2-db7a-4eab-9c8c-00a7c4f20357"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:47.787275"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:47.788304"], ["id", "ee88e1b2-db7a-4eab-9c8c-00a7c4f20357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c015f756-0982-11e5-b310-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c015f756-0982-11e5-b310-a8667f0424ad' LIMIT 1 [["organization_id", "c016f8c2-0982-11e5-b310-a8667f0424ad"]] Completed 200 OK in 23ms (Views: 14.9ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$QWj1lKut432zCPz2se4k8uC/GDc91dFVIm.gJv/GCDZzmq.Bo369K"], ["created_at", "2015-06-02 23:54:47.826465"], ["updated_at", "2015-06-02 23:54:47.826465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.830393"], ["user_id", "c01e7494-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.831266"], ["updated_at", "2015-06-02 23:54:47.831266"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.836214"], ["updated_at", "2015-06-02 23:54:47.836214"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c01e7494-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c01fbbc4-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c01e7494-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c01fbbc4-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:47.841530"], ["updated_at", "2015-06-02 23:54:47.841530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:47 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$llYKTnnTNuflSGDnMK62teaMsjbCOM5oVzSNNPeVSV8fEKrB0Bduu"], ["created_at", "2015-06-02 23:54:47.855789"], ["updated_at", "2015-06-02 23:54:47.855789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.858329"], ["user_id", "c022bb94-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.859101"], ["updated_at", "2015-06-02 23:54:47.859101"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.864411"], ["updated_at", "2015-06-02 23:54:47.864411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c022bb94-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c0240422-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c022bb94-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c0240422-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:47.868845"], ["updated_at", "2015-06-02 23:54:47.868845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c0240422-0982-11e5-b310-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:47 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"c0240422-0982-11e5-b310-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:47.872044') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "88cae7d2-c386-4e59-943b-6315ac64e2f4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:47.874058"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:47.875066"], ["id", "88cae7d2-c386-4e59-943b-6315ac64e2f4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c0240422-0982-11e5-b310-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c022bb94-0982-11e5-b310-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c022bb94-0982-11e5-b310-a8667f0424ad' LIMIT 1 [["organization_id", "c0240422-0982-11e5-b310-a8667f0424ad"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$KJSatfEt/FFei0R2407sNO9fOAMkipVcfzlhCa/YCFevKvpUkSJIG"], ["created_at", "2015-06-02 23:54:47.887997"], ["updated_at", "2015-06-02 23:54:47.887997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.890045"], ["user_id", "c0279934-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.890943"], ["updated_at", "2015-06-02 23:54:47.890943"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.905965"], ["updated_at", "2015-06-02 23:54:47.905965"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c0279934-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c02a6d30-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c0279934-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c02a6d30-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:47.911696"], ["updated_at", "2015-06-02 23:54:47.911696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:47 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$cswrW9a0o6z.1w7HCjuGN.ShvqA66R3TbRFjzcBxxu3o945F4iRQW"], ["created_at", "2015-06-02 23:54:47.925296"], ["updated_at", "2015-06-02 23:54:47.925296"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.929318"], ["user_id", "c02d7c0a-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.930759"], ["updated_at", "2015-06-02 23:54:47.930759"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.943595"], ["updated_at", "2015-06-02 23:54:47.943595"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c02d7c0a-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c030252c-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c02d7c0a-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c030252c-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:47.949283"], ["updated_at", "2015-06-02 23:54:47.949283"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:54:47 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$heBLo/HpXW5ozMMjUz7mPu5AbwJm1o7eyNFps68Sc7J71N.mfE8M."], ["created_at", "2015-06-02 23:54:47.978608"], ["updated_at", "2015-06-02 23:54:47.978608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:47.982824"], ["user_id", "c03576a8-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:47.983902"], ["updated_at", "2015-06-02 23:54:47.983902"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:47.997168"], ["updated_at", "2015-06-02 23:54:47.997168"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c03576a8-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c03863ea-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c03576a8-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c03863ea-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.010193"], ["updated_at", "2015-06-02 23:54:48.010193"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c03863ea-0982-11e5-b310-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"c03863ea-0982-11e5-b310-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:48.019316') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "693670bc-2e05-485a-8800-53d99b35d496"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:48.021367"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:48.022501"], ["id", "693670bc-2e05-485a-8800-53d99b35d496"]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c03863ea-0982-11e5-b310-a8667f0424ad"]] User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c03576a8-0982-11e5-b310-a8667f0424ad"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c03576a8-0982-11e5-b310-a8667f0424ad' LIMIT 1 [["organization_id", "c03863ea-0982-11e5-b310-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c03863ea-0982-11e5-b310-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 56ms (ActiveRecord: 5.1ms)  (1.5ms) ROLLBACK  (1.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (5.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (3.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$xBe5wcHy.18yst1JBIhWtuxrou.dwCqUN3uG.0UObxPmzKHr3h796"], ["created_at", "2015-06-02 23:54:48.114193"], ["updated_at", "2015-06-02 23:54:48.114193"]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (2.4ms) SAVEPOINT active_record_1 SQL (3.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.139311"], ["user_id", "c04d2302-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.147369"], ["updated_at", "2015-06-02 23:54:48.147369"], ["client", "App"]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.166548"], ["updated_at", "2015-06-02 23:54:48.166548"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c04d2302-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c0525e44-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c04d2302-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c0525e44-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.179504"], ["updated_at", "2015-06-02 23:54:48.179504"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c0525e44-0982-11e5-b310-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"c0525e44-0982-11e5-b310-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.9ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:48.186311') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fa2fd8a2-8340-49d4-a513-227697315e3c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:48.189332"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:48.190663"], ["id", "fa2fd8a2-8340-49d4-a513-227697315e3c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c0525e44-0982-11e5-b310-a8667f0424ad"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c04d2302-0982-11e5-b310-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c04d2302-0982-11e5-b310-a8667f0424ad' LIMIT 1 [["organization_id", "c0525e44-0982-11e5-b310-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (3.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c0525e44-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (1.5ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:54:48.209170"], ["id", "c0525e44-0982-11e5-b310-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 33ms (Views: 0.6ms | ActiveRecord: 7.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$6jtA.hAtgOSPuBVLriY0AuWtlHfxwKE0WmMHiP/GezwzFu8GFOxgS"], ["created_at", "2015-06-02 23:54:48.229559"], ["updated_at", "2015-06-02 23:54:48.229559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.231590"], ["user_id", "c05bbafc-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.232299"], ["updated_at", "2015-06-02 23:54:48.232299"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.239550"], ["updated_at", "2015-06-02 23:54:48.239550"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c05bbafc-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c05d6316-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c05bbafc-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c05d6316-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.250083"], ["updated_at", "2015-06-02 23:54:48.250083"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-13" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:48.260144') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "504cd293-9ea4-4d8d-98b8-3d7503e1ea50"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:48.263019"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:48.264569"], ["id", "504cd293-9ea4-4d8d-98b8-3d7503e1ea50"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c05bbafc-0982-11e5-b310-a8667f0424ad"]] Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c05bbafc-0982-11e5-b310-a8667f0424ad' LIMIT 1 [["organization_id", "c05d6316-0982-11e5-b310-a8667f0424ad"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "c05d6316-0982-11e5-b310-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 23ms (ActiveRecord: 4.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$EOaggH76rwNrm3UJPkF9FeXz8X1irs9KkYERE6a04m1.Zl1hKfsN6"], ["created_at", "2015-06-02 23:54:48.290811"], ["updated_at", "2015-06-02 23:54:48.290811"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.295415"], ["user_id", "c065257e-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.298956"], ["updated_at", "2015-06-02 23:54:48.298956"], ["client", "App"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.313057"], ["updated_at", "2015-06-02 23:54:48.313057"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c065257e-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c068c6a2-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (3.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c065257e-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c068c6a2-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.322381"], ["updated_at", "2015-06-02 23:54:48.322381"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$CdkZ0RgQMl38HAyfUctZ8ekq/6v3mbaXMoyG.Kq1sJ56P2z70anGa"], ["created_at", "2015-06-02 23:54:48.346572"], ["updated_at", "2015-06-02 23:54:48.346572"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.351369"], ["user_id", "c06dc5b2-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.352128"], ["updated_at", "2015-06-02 23:54:48.352128"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.356927"], ["updated_at", "2015-06-02 23:54:48.356927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c06dc5b2-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c06f268c-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c06dc5b2-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c06f268c-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.361862"], ["updated_at", "2015-06-02 23:54:48.361862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$v9DeA2YvdxrOV09ZEU61j.1FdACZE7dbLqLvKcK3UWAT2pjTxdsFO"], ["created_at", "2015-06-02 23:54:48.372550"], ["updated_at", "2015-06-02 23:54:48.372550"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.379129"], ["user_id", "c071caa4-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.383109"], ["updated_at", "2015-06-02 23:54:48.383109"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.397267"], ["updated_at", "2015-06-02 23:54:48.397267"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c071caa4-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c07560f6-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c071caa4-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c07560f6-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.403952"], ["updated_at", "2015-06-02 23:54:48.403952"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-16" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-16", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.8ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:48.409275') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7af112d1-44b1-47c6-b784-1dbd25126739"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:48.413673"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:48.416888"], ["id", "7af112d1-44b1-47c6-b784-1dbd25126739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c071caa4-0982-11e5-b310-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c071caa4-0982-11e5-b310-a8667f0424ad' LIMIT 1 [["organization_id", "c07560f6-0982-11e5-b310-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c07560f6-0982-11e5-b310-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 26ms (ActiveRecord: 3.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$/UPxmV78prSJHq9CpKAlSevWPXamGLpZgPvd73qnGTykYbRZZZj6m"], ["created_at", "2015-06-02 23:54:48.443958"], ["updated_at", "2015-06-02 23:54:48.443958"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.446934"], ["user_id", "c07c7878-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.448117"], ["updated_at", "2015-06-02 23:54:48.448117"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.452621"], ["updated_at", "2015-06-02 23:54:48.452621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c07c7878-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c07dba62-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c07c7878-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c07dba62-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.456319"], ["updated_at", "2015-06-02 23:54:48.456319"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-17" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-17", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:48.461327') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "efad30be-7a7f-4213-a234-73d920bcb36d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:48.463816"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:48.465078"], ["id", "efad30be-7a7f-4213-a234-73d920bcb36d"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-17"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c07c7878-0982-11e5-b310-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c07c7878-0982-11e5-b310-a8667f0424ad' LIMIT 1 [["organization_id", "c07dba62-0982-11e5-b310-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c07dba62-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:54:48.477083"], ["id", "c07dba62-0982-11e5-b310-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 0.7ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (1.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$ymvyYVO6J6ULyo/52C/J1enRuVqc2eVBQTdxRisAMGFPH0cja3GtW"], ["created_at", "2015-06-02 23:54:48.487859"], ["updated_at", "2015-06-02 23:54:48.487859"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.492100"], ["user_id", "c0836052-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.493376"], ["updated_at", "2015-06-02 23:54:48.493376"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.503011"], ["updated_at", "2015-06-02 23:54:48.503011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c0836052-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c085833c-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c0836052-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c085833c-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.511395"], ["updated_at", "2015-06-02 23:54:48.511395"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$QSxrs5IsQx5ciCdES3.UF.2gPEGCnhW7b9fCkKBq6zsQy4EtkFcfe"], ["created_at", "2015-06-02 23:54:48.523820"], ["updated_at", "2015-06-02 23:54:48.523820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.530051"], ["updated_at", "2015-06-02 23:54:48.530051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c088af08-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c0899b20-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c088af08-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c0899b20-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.534716"], ["updated_at", "2015-06-02 23:54:48.534716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:48.538298') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "26cc759a-5f71-4873-8cae-f9143dc904d4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:48.539795"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:48.541894"], ["id", "26cc759a-5f71-4873-8cae-f9143dc904d4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c0836052-0982-11e5-b310-a8667f0424ad"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "c0836052-0982-11e5-b310-a8667f0424ad"]] Completed 200 OK in 18ms (Views: 3.0ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$2TULddBukRFGJemmcVcMtONjJ9bPpPRxoFeJ/DMk3rJZcYVMmBDN6"], ["created_at", "2015-06-02 23:54:48.564445"], ["updated_at", "2015-06-02 23:54:48.564445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.566568"], ["user_id", "c08eda36-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.567200"], ["updated_at", "2015-06-02 23:54:48.567200"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.579468"], ["updated_at", "2015-06-02 23:54:48.579468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c08eda36-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c091174c-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c08eda36-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c091174c-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.582737"], ["updated_at", "2015-06-02 23:54:48.582737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$NikFVGwveufYqe1L3rLNq.3tLE0.QqEKQhREkblfUjSmDTvW9gMHW"], ["created_at", "2015-06-02 23:54:48.588124"], ["updated_at", "2015-06-02 23:54:48.588124"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.593329"], ["updated_at", "2015-06-02 23:54:48.593329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c09269b2-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c0933cc0-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c09269b2-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c0933cc0-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.597713"], ["updated_at", "2015-06-02 23:54:48.597713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$aj6/cimd155pz.rgQaircu.p/E3q8pZicN5Ip5QJAik1n8ztGidRq"], ["created_at", "2015-06-02 23:54:48.609502"], ["updated_at", "2015-06-02 23:54:48.609502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.613218"], ["user_id", "c095f08c-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.614213"], ["updated_at", "2015-06-02 23:54:48.614213"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.619787"], ["updated_at", "2015-06-02 23:54:48.619787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c095f08c-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c09741ee-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c095f08c-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c09741ee-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.623274"], ["updated_at", "2015-06-02 23:54:48.623274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$CeN7LDcTzBcW5frFn5/pz.ZpLuMd3LbGXiURFu0xvGkB5XyBeghAC"], ["created_at", "2015-06-02 23:54:48.634830"], ["updated_at", "2015-06-02 23:54:48.634830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.637069"], ["user_id", "c099934a-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.637821"], ["updated_at", "2015-06-02 23:54:48.637821"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.643079"], ["updated_at", "2015-06-02 23:54:48.643079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c099934a-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c09ace68-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c099934a-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c09ace68-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.647804"], ["updated_at", "2015-06-02 23:54:48.647804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:48.651592') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4ba594b9-08f2-4157-b2d9-287f6f0c9b2b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:48.653478"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:48.654459"], ["id", "4ba594b9-08f2-4157-b2d9-287f6f0c9b2b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c099934a-0982-11e5-b310-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$bwX6W09hjdcutGGgBX8cI.Jco8EegXdGca11xk8wGMfAA.2QWzwZu"], ["created_at", "2015-06-02 23:54:48.677913"], ["updated_at", "2015-06-02 23:54:48.677913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:54:48.680184"], ["user_id", "c0a02462-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.681331"], ["updated_at", "2015-06-02 23:54:48.681331"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.687998"], ["updated_at", "2015-06-02 23:54:48.687998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c0a02462-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c0a1b16a-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c0a02462-0982-11e5-b310-a8667f0424ad"], ["organization_id", "c0a1b16a-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:54:48.692210"], ["updated_at", "2015-06-02 23:54:48.692210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:54:48 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:54:48.695716') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d66f1a74-9316-487c-8fec-aea578141e39"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:54:48.697643"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:54:48.699072"], ["id", "d66f1a74-9316-487c-8fec-aea578141e39"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c0a02462-0982-11e5-b310-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:54:48.707862"], ["updated_at", "2015-06-02 23:54:48.707862"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c0a02462-0982-11e5-b310-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c0a4c3a0-0982-11e5-b310-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c0a02462-0982-11e5-b310-a8667f0424ad"], ["admin", "t"], ["organization_id", "c0a4c3a0-0982-11e5-b310-a8667f0424ad"], ["created_at", "2015-06-02 23:54:48.712141"], ["updated_at", "2015-06-02 23:54:48.712141"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$kuwhGHK0m0rx1neASSZxjOOup7./EmwbjrsnsdbJYoB1AO9Orr2/a"], ["created_at", "2015-06-02 23:55:07.326366"], ["updated_at", "2015-06-02 23:55:07.326366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.355302"], ["user_id", "cbbe135e-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.362091"], ["updated_at", "2015-06-02 23:55:07.362091"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.372398"], ["updated_at", "2015-06-02 23:55:07.372398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbbe135e-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cbc4d8e2-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbbe135e-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cbc4d8e2-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.386922"], ["updated_at", "2015-06-02 23:55:07.386922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$C6yFEPGGDkBKErPa2EHrNe7iikP/2KqiVJRhb7wyoa8ZkHqige.3S"], ["created_at", "2015-06-02 23:55:07.415467"], ["updated_at", "2015-06-02 23:55:07.415467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.417088"], ["user_id", "cbcb3dfe-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.418146"], ["updated_at", "2015-06-02 23:55:07.418146"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.426635"], ["updated_at", "2015-06-02 23:55:07.426635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbcb3dfe-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cbcd081e-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbcb3dfe-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cbcd081e-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.432697"], ["updated_at", "2015-06-02 23:55:07.432697"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:07.440591') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f30a9f47-119e-48a7-a3b4-a34afbcfa1e1"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:07.451659"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:07.452937"], ["id", "f30a9f47-119e-48a7-a3b4-a34afbcfa1e1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbcb3dfe-0982-11e5-9691-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 62ms (ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$bAmes4H0XbkSCZp0et7sb.v28m5zCMGSWu/9orIcaW.gHLrnEHpvW"], ["created_at", "2015-06-02 23:55:07.511266"], ["updated_at", "2015-06-02 23:55:07.511266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.513014"], ["user_id", "cbd9ddc8-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.513757"], ["updated_at", "2015-06-02 23:55:07.513757"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.519114"], ["updated_at", "2015-06-02 23:55:07.519114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbd9ddc8-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cbdb0c52-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbd9ddc8-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cbdb0c52-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.522201"], ["updated_at", "2015-06-02 23:55:07.522201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:07.525173') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f802b548-e0e8-423a-84f7-6dcedf80e7a0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:07.527240"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:07.528179"], ["id", "f802b548-e0e8-423a-84f7-6dcedf80e7a0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbd9ddc8-0982-11e5-9691-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.544430"], ["updated_at", "2015-06-02 23:55:07.544430"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbd9ddc8-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cbdf00d2-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbd9ddc8-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["organization_id", "cbdf00d2-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.550753"], ["updated_at", "2015-06-02 23:55:07.550753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 37ms (Views: 8.9ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$bqgovxHDiY/X8e5fscF6IO.riXT6QX9GOGtOHTZrPzrCwz5FBfHEO"], ["created_at", "2015-06-02 23:55:07.579667"], ["updated_at", "2015-06-02 23:55:07.579667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.582879"], ["user_id", "cbe467b6-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.584087"], ["updated_at", "2015-06-02 23:55:07.584087"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.590534"], ["updated_at", "2015-06-02 23:55:07.590534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe467b6-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cbe5fa2c-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbe467b6-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cbe5fa2c-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.594532"], ["updated_at", "2015-06-02 23:55:07.594532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$3DNUJKM/bqHNSGlMnRyjO.0wQCb4hZM.4Sdo1C1bmX.qUINfZ1DMy"], ["created_at", "2015-06-02 23:55:07.602577"], ["updated_at", "2015-06-02 23:55:07.602577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.609484"], ["updated_at", "2015-06-02 23:55:07.609484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe7d2e8-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cbe8ece6-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbe7d2e8-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cbe8ece6-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.613943"], ["updated_at", "2015-06-02 23:55:07.613943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:07.618608') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "afe70815-1e9b-4950-a83c-a7f4512e952e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:07.620481"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:07.621505"], ["id", "afe70815-1e9b-4950-a83c-a7f4512e952e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbe467b6-0982-11e5-9691-a8667f0424ad"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "cbe467b6-0982-11e5-9691-a8667f0424ad"]] Completed 200 OK in 11ms (Views: 2.4ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$iKhdEqDrlpPzn/nk3FzPtOXLAdy1ASpJ219MYpv/TPyzYvaKf79mG"], ["created_at", "2015-06-02 23:55:07.636639"], ["updated_at", "2015-06-02 23:55:07.636639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.638725"], ["user_id", "cbecfd68-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.639978"], ["updated_at", "2015-06-02 23:55:07.639978"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.648372"], ["updated_at", "2015-06-02 23:55:07.648372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbecfd68-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cbeeddae-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbecfd68-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cbeeddae-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.653166"], ["updated_at", "2015-06-02 23:55:07.653166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$6j5ZHKSxouaOuO7U7FFXZ.JKX/OWWaJPa0UqFr3lab/BuKtam9RtC"], ["created_at", "2015-06-02 23:55:07.661644"], ["updated_at", "2015-06-02 23:55:07.661644"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.669031"], ["updated_at", "2015-06-02 23:55:07.669031"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbf0f954-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cbf1f994-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbf0f954-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cbf1f994-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.674465"], ["updated_at", "2015-06-02 23:55:07.674465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$gyoFdox.uJjXwS.m4uUqhO8Q0CY54/fROdTg8TB1B9FlGwhCs.hNy"], ["created_at", "2015-06-02 23:55:07.697104"], ["updated_at", "2015-06-02 23:55:07.697104"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.699836"], ["user_id", "cbf642ba-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.700789"], ["updated_at", "2015-06-02 23:55:07.700789"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.706195"], ["updated_at", "2015-06-02 23:55:07.706195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbf642ba-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cbf79b24-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbf642ba-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cbf79b24-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.709981"], ["updated_at", "2015-06-02 23:55:07.709981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-8" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-8", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:07.712918') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c231668a-f5d5-466c-a3b7-140d5146bae4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:07.714436"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:07.715688"], ["id", "c231668a-f5d5-466c-a3b7-140d5146bae4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-8"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbf642ba-0982-11e5-9691-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cbf642ba-0982-11e5-9691-a8667f0424ad' LIMIT 1 [["organization_id", "cbf79b24-0982-11e5-9691-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "cbf79b24-0982-11e5-9691-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$2XOrMR1vLpf.FSU96/V0ueBVbYDOs4LIP6HBHsPRW8kAq3Lrvt8Tu"], ["created_at", "2015-06-02 23:55:07.733388"], ["updated_at", "2015-06-02 23:55:07.733388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.735536"], ["user_id", "cbfbc29e-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.736378"], ["updated_at", "2015-06-02 23:55:07.736378"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.741347"], ["updated_at", "2015-06-02 23:55:07.741347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbfbc29e-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cbfcf89e-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbfbc29e-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cbfcf89e-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.744631"], ["updated_at", "2015-06-02 23:55:07.744631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$sHoijmBARfjw0kkTaUEO/uiKDQSF6ib6ssYRGf4BZfPtsRGB6laYS"], ["created_at", "2015-06-02 23:55:07.754697"], ["updated_at", "2015-06-02 23:55:07.754697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.757506"], ["user_id", "cbff1da4-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.758771"], ["updated_at", "2015-06-02 23:55:07.758771"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.763964"], ["updated_at", "2015-06-02 23:55:07.763964"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbff1da4-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc007014-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbff1da4-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc007014-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.767878"], ["updated_at", "2015-06-02 23:55:07.767878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$cjRrcTXWIrtk8EFEsjhleexjLbHqcRR6tN/YVz0Yqky/DXDUStC1y"], ["created_at", "2015-06-02 23:55:07.779375"], ["updated_at", "2015-06-02 23:55:07.779375"]]  (1.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.783207"], ["user_id", "cc02c65c-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.784364"], ["updated_at", "2015-06-02 23:55:07.784364"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.790216"], ["updated_at", "2015-06-02 23:55:07.790216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc02c65c-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc047466-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc02c65c-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc047466-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.794501"], ["updated_at", "2015-06-02 23:55:07.794501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-11" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-11", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:07.798122') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1d54fc57-0f0d-4575-be0f-13a7f390262e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:07.799534"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:07.800362"], ["id", "1d54fc57-0f0d-4575-be0f-13a7f390262e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-11"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc02c65c-0982-11e5-9691-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc02c65c-0982-11e5-9691-a8667f0424ad' LIMIT 1 [["organization_id", "cc047466-0982-11e5-9691-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cc047466-0982-11e5-9691-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$zKD2G2T486OsZ4otanPas.J9gH9f/aIUY6ikYFmNyxExHukYybQf6"], ["created_at", "2015-06-02 23:55:07.818858"], ["updated_at", "2015-06-02 23:55:07.818858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.820548"], ["user_id", "cc08ca84-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.821276"], ["updated_at", "2015-06-02 23:55:07.821276"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.826283"], ["updated_at", "2015-06-02 23:55:07.826283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc08ca84-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc09f15c-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc08ca84-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc09f15c-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.830267"], ["updated_at", "2015-06-02 23:55:07.830267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-12" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-12", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:07.833179') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "33e24b4b-9960-4590-8a0e-85c8e09495b7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:07.834735"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:07.835615"], ["id", "33e24b4b-9960-4590-8a0e-85c8e09495b7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc08ca84-0982-11e5-9691-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc08ca84-0982-11e5-9691-a8667f0424ad' LIMIT 1 [["organization_id", "cc09f15c-0982-11e5-9691-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cc09f15c-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:55:07.844439"], ["id", "cc09f15c-0982-11e5-9691-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$SjzXm.iGFrSl9VzHLl7Ciu4J6.PezmxFIa148kaq6qgw86ZB6dIj."], ["created_at", "2015-06-02 23:55:07.855300"], ["updated_at", "2015-06-02 23:55:07.855300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.858307"], ["user_id", "cc0e706a-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.862271"], ["updated_at", "2015-06-02 23:55:07.862271"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.869495"], ["updated_at", "2015-06-02 23:55:07.869495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc0e706a-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc108cce-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc0e706a-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc108cce-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.877565"], ["updated_at", "2015-06-02 23:55:07.877565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-13" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:07.883149') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fc7db0b1-a45e-4a2d-8a77-a4f0d28d3cdd"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:07.887972"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:07.889858"], ["id", "fc7db0b1-a45e-4a2d-8a77-a4f0d28d3cdd"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc0e706a-0982-11e5-9691-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cc0e706a-0982-11e5-9691-a8667f0424ad' LIMIT 1 [["organization_id", "cc108cce-0982-11e5-9691-a8667f0424ad"]] Completed 200 OK in 18ms (Views: 1.1ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (1.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$d7Os1/0BXmcpZFJHW5Nl8.BF7ry/JU8rdycFn2FBopm/L9SisZ9La"], ["created_at", "2015-06-02 23:55:07.920743"], ["updated_at", "2015-06-02 23:55:07.920743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.923781"], ["user_id", "cc186c14-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.925119"], ["updated_at", "2015-06-02 23:55:07.925119"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:07.935956"], ["updated_at", "2015-06-02 23:55:07.935956"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc186c14-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc1b122a-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (3.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc186c14-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc1b122a-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:07.948322"], ["updated_at", "2015-06-02 23:55:07.948322"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:55:07 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.9ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$yy7J/SdjC3B5xCkBeF4hxOJO6IMluvjfURP6BuXds5WeiqHd.ZIFG"], ["created_at", "2015-06-02 23:55:07.976433"], ["updated_at", "2015-06-02 23:55:07.976433"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:07.984103"], ["user_id", "cc211580-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:07.986720"], ["updated_at", "2015-06-02 23:55:07.986720"], ["client", "App"]]  (3.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:08.007557"], ["updated_at", "2015-06-02 23:55:08.007557"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc211580-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc25cd78-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc211580-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc25cd78-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:08.022216"], ["updated_at", "2015-06-02 23:55:08.022216"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:55:08 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$lxfmFR5pbOMN6P23KYzhUOYYe1EgyhwcWq7CzzFVE3Hy/baGoSuVO"], ["created_at", "2015-06-02 23:55:08.048968"], ["updated_at", "2015-06-02 23:55:08.048968"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:08.057668"], ["user_id", "cc2c775e-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:08.060198"], ["updated_at", "2015-06-02 23:55:08.060198"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:08.079448"], ["updated_at", "2015-06-02 23:55:08.079448"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc2c775e-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc30b8f0-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (2.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc2c775e-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc30b8f0-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:08.094005"], ["updated_at", "2015-06-02 23:55:08.094005"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/cc30b8f0-0982-11e5-9691-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:55:08 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"cc30b8f0-0982-11e5-9691-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (1.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:08.122972') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "852b96b0-a3a8-4692-a1b7-4b2cc26e58c6"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:08.128986"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:08.138770"], ["id", "852b96b0-a3a8-4692-a1b7-4b2cc26e58c6"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cc30b8f0-0982-11e5-9691-a8667f0424ad"]] User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc2c775e-0982-11e5-9691-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc2c775e-0982-11e5-9691-a8667f0424ad' LIMIT 1 [["organization_id", "cc30b8f0-0982-11e5-9691-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cc30b8f0-0982-11e5-9691-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 55ms (ActiveRecord: 5.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$jcSdmiEymxPbF9givGE/w.RxHEHqV5sp.kLCuuk4pr7T5/RM7yCKG"], ["created_at", "2015-06-02 23:55:08.193783"], ["updated_at", "2015-06-02 23:55:08.193783"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:08.205375"], ["user_id", "cc4272de-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:08.207324"], ["updated_at", "2015-06-02 23:55:08.207324"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:08.229342"], ["updated_at", "2015-06-02 23:55:08.229342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc4272de-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc488854-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc4272de-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc488854-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:08.247771"], ["updated_at", "2015-06-02 23:55:08.247771"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/cc488854-0982-11e5-9691-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:55:08 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"cc488854-0982-11e5-9691-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:08.259740') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b5d58da7-5342-4611-b50e-fdc83729c093"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:08.264319"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:08.266262"], ["id", "b5d58da7-5342-4611-b50e-fdc83729c093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cc488854-0982-11e5-9691-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc4272de-0982-11e5-9691-a8667f0424ad"]] Clubhouse::Membership Exists (2.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc4272de-0982-11e5-9691-a8667f0424ad' LIMIT 1 [["organization_id", "cc488854-0982-11e5-9691-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'cc488854-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:55:08.292749"], ["id", "cc488854-0982-11e5-9691-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 37ms (Views: 1.0ms | ActiveRecord: 5.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$tdcIPD0FFK/HnRPjj2cSG.AWVwDBz7aDi0LFkDVJIyt.hxG3PVCYu"], ["created_at", "2015-06-02 23:55:08.318447"], ["updated_at", "2015-06-02 23:55:08.318447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:08.326806"], ["user_id", "cc55eabc-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:08.327732"], ["updated_at", "2015-06-02 23:55:08.327732"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:08.338518"], ["updated_at", "2015-06-02 23:55:08.338518"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc55eabc-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc583eb6-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc55eabc-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc583eb6-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:08.354690"], ["updated_at", "2015-06-02 23:55:08.354690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/cc583eb6-0982-11e5-9691-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:55:08 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"cc583eb6-0982-11e5-9691-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:08.362529') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7fc41235-424c-4407-83a0-0acffccb401d"]]  (0.3ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:08.365157"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:08.367669"], ["id", "7fc41235-424c-4407-83a0-0acffccb401d"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cc583eb6-0982-11e5-9691-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc55eabc-0982-11e5-9691-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cc55eabc-0982-11e5-9691-a8667f0424ad' LIMIT 1 [["organization_id", "cc583eb6-0982-11e5-9691-a8667f0424ad"]] Completed 200 OK in 29ms (Views: 0.8ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$DWoyUpnbCyIJqHvLH4hHl.38gXnTQ8xNVnChTxfhWUxjJVh6cu5UC"], ["created_at", "2015-06-02 23:55:08.410347"], ["updated_at", "2015-06-02 23:55:08.410347"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:08.423781"], ["user_id", "cc644576-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:08.425666"], ["updated_at", "2015-06-02 23:55:08.425666"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:08.457934"], ["updated_at", "2015-06-02 23:55:08.457934"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (11.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc644576-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc6a697e-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc644576-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc6a697e-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:08.478132"], ["updated_at", "2015-06-02 23:55:08.478132"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:55:08 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$nfEv1HCfN/nyPYdimX0z3OcwcKiUbQV5z/cSDMJInDXpFN28KEegq"], ["created_at", "2015-06-02 23:55:08.527168"], ["updated_at", "2015-06-02 23:55:08.527168"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:08.533786"], ["user_id", "cc74ed22-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:08.535659"], ["updated_at", "2015-06-02 23:55:08.535659"], ["client", "App"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (3.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:08.554444"], ["updated_at", "2015-06-02 23:55:08.554444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc74ed22-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc792b30-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc74ed22-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc792b30-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:08.561881"], ["updated_at", "2015-06-02 23:55:08.561881"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:55:08 -0700  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$HuJAaxgHozuAXwarCo416eddI9kqTWUVBCgv7J81Ng.qd5aJvid2m"], ["created_at", "2015-06-02 23:55:08.583459"], ["updated_at", "2015-06-02 23:55:08.583459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:08.587241"], ["user_id", "cc7da6ba-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:08.588223"], ["updated_at", "2015-06-02 23:55:08.588223"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:08.597745"], ["updated_at", "2015-06-02 23:55:08.597745"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc7da6ba-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc7fc01c-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc7da6ba-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc7fc01c-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:08.613900"], ["updated_at", "2015-06-02 23:55:08.613900"]]  (1.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:55:08 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (1.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$gjn/xjVvOfhaHMHRqfrwA.AOcqWTqHJ89JQNojsOTSprpOdE2gf0i"], ["created_at", "2015-06-02 23:55:08.644729"], ["updated_at", "2015-06-02 23:55:08.644729"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:08.655156"], ["user_id", "cc87307c-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:08.656003"], ["updated_at", "2015-06-02 23:55:08.656003"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:08.664733"], ["updated_at", "2015-06-02 23:55:08.664733"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc87307c-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc8a32fe-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc87307c-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc8a32fe-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:08.682366"], ["updated_at", "2015-06-02 23:55:08.682366"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-22" for 127.0.0.1 at 2015-06-02 16:55:08 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$ZvSeshZvBhTccHSD76vdg.WSRljsy1wwguf39d8wH/drgGcNtzCxG"], ["created_at", "2015-06-02 23:55:08.702989"], ["updated_at", "2015-06-02 23:55:08.702989"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:08.709724"], ["user_id", "cc902c7c-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:08.710645"], ["updated_at", "2015-06-02 23:55:08.710645"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:08.725117"], ["updated_at", "2015-06-02 23:55:08.725117"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc902c7c-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cc9361d0-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cc902c7c-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cc9361d0-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:08.745302"], ["updated_at", "2015-06-02 23:55:08.745302"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/cc9361d0-0982-11e5-9691-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:55:08 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"cc9361d0-0982-11e5-9691-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:08.761740') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e3358e07-7644-460d-90dd-a39da3a8f51f"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:08.772547"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:08.775034"], ["id", "e3358e07-7644-460d-90dd-a39da3a8f51f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cc9361d0-0982-11e5-9691-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc902c7c-0982-11e5-9691-a8667f0424ad"]] Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cc902c7c-0982-11e5-9691-a8667f0424ad' LIMIT 1 [["organization_id", "cc9361d0-0982-11e5-9691-a8667f0424ad"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "cc9361d0-0982-11e5-9691-a8667f0424ad"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 32ms (ActiveRecord: 5.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$2TRmFSD.PaWnU2HD66JygOAL8UHrEGDXGYYhzV/ER78C0AydA2KLu"], ["created_at", "2015-06-02 23:55:08.810803"], ["updated_at", "2015-06-02 23:55:08.810803"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:08.821491"], ["user_id", "cca076b8-0982-11e5-9691-a8667f0424ad"], ["created_at", "2015-06-02 23:55:08.825024"], ["updated_at", "2015-06-02 23:55:08.825024"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:08.845822"], ["updated_at", "2015-06-02 23:55:08.845822"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cca076b8-0982-11e5-9691-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'cca598b4-0982-11e5-9691-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cca076b8-0982-11e5-9691-a8667f0424ad"], ["organization_id", "cca598b4-0982-11e5-9691-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:08.857491"], ["updated_at", "2015-06-02 23:55:08.857491"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:55:08 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$M/lNW.0MvrnQ0zSq54S4MuzGilsZ2nD57u2lsRXVt4FiqjrxBrJU."], ["created_at", "2015-06-02 23:55:24.770959"], ["updated_at", "2015-06-02 23:55:24.770959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:24.802360"], ["user_id", "d623d068-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:24.808891"], ["updated_at", "2015-06-02 23:55:24.808891"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:24.823609"], ["updated_at", "2015-06-02 23:55:24.823609"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd623d068-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd62bc156-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d623d068-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d62bc156-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:24.840635"], ["updated_at", "2015-06-02 23:55:24.840635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/d62bc156-0982-11e5-a228-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:55:24 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"d62bc156-0982-11e5-a228-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:24.865111') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a0578937-09db-468d-bc49-a8bbdb5e80ec"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:24.873969"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:24.875267"], ["id", "a0578937-09db-468d-bc49-a8bbdb5e80ec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d62bc156-0982-11e5-a228-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d623d068-0982-11e5-a228-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd623d068-0982-11e5-a228-a8667f0424ad' LIMIT 1 [["organization_id", "d62bc156-0982-11e5-a228-a8667f0424ad"]] Completed 200 OK in 38ms (Views: 6.3ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$sVgovCtFlWoG.N5R1eZBSuHGTwJL5.bC.Ar09VsxcMgHi55/qVjsq"], ["created_at", "2015-06-02 23:55:24.913689"], ["updated_at", "2015-06-02 23:55:24.913689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:24.915987"], ["user_id", "d63949f2-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:24.916920"], ["updated_at", "2015-06-02 23:55:24.916920"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:24.922019"], ["updated_at", "2015-06-02 23:55:24.922019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd63949f2-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd63a8894-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d63949f2-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d63a8894-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:24.925778"], ["updated_at", "2015-06-02 23:55:24.925778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:55:24 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$i1GLvW7riRiisWZYd6XJ8.fIRaVBEOcht4hS99or7lzhInI47wKIe"], ["created_at", "2015-06-02 23:55:24.938047"], ["updated_at", "2015-06-02 23:55:24.938047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:24.939857"], ["user_id", "d63cfde0-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:24.940503"], ["updated_at", "2015-06-02 23:55:24.940503"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:24.947899"], ["updated_at", "2015-06-02 23:55:24.947899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd63cfde0-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd63e8bd8-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d63cfde0-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d63e8bd8-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:24.952452"], ["updated_at", "2015-06-02 23:55:24.952452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-3" for 127.0.0.1 at 2015-06-02 16:55:24 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-3", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:24.956075') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7702cec3-ee7c-44b8-8f82-dff9a968d2ad"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:24.958004"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:24.959415"], ["id", "7702cec3-ee7c-44b8-8f82-dff9a968d2ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-3"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d63cfde0-0982-11e5-a228-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd63cfde0-0982-11e5-a228-a8667f0424ad' LIMIT 1 [["organization_id", "d63e8bd8-0982-11e5-a228-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 1.5ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$FRRRyCyzDyjQQbVwqkohIe5lvQzZP9yRIhu6NyT1b40I4HLtwlice"], ["created_at", "2015-06-02 23:55:24.978014"], ["updated_at", "2015-06-02 23:55:24.978014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:24.981031"], ["user_id", "d6432274-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:24.982187"], ["updated_at", "2015-06-02 23:55:24.982187"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:24.987710"], ["updated_at", "2015-06-02 23:55:24.987710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6432274-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd644a356-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6432274-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d644a356-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:24.992110"], ["updated_at", "2015-06-02 23:55:24.992110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:55:24 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$MxacAokbXUouC1mVbHqYpuD9uvoe7VadBNaLla24cEJGmAgjdqQVG"], ["created_at", "2015-06-02 23:55:25.004605"], ["updated_at", "2015-06-02 23:55:25.004605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.006517"], ["user_id", "d647282e-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.007479"], ["updated_at", "2015-06-02 23:55:25.007479"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.013626"], ["updated_at", "2015-06-02 23:55:25.013626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd647282e-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd64898e4-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d647282e-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d64898e4-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.018590"], ["updated_at", "2015-06-02 23:55:25.018590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$DoDo74EFbt1F./DVKOwPN.wlwGh/3qOFPU6pu1nZEqlZm1/tIj4rm"], ["created_at", "2015-06-02 23:55:25.029391"], ["updated_at", "2015-06-02 23:55:25.029391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.032489"], ["user_id", "d64b0a8e-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.033377"], ["updated_at", "2015-06-02 23:55:25.033377"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.038621"], ["updated_at", "2015-06-02 23:55:25.038621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd64b0a8e-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd64c54e8-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d64b0a8e-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d64c54e8-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.042148"], ["updated_at", "2015-06-02 23:55:25.042148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/d64c54e8-0982-11e5-a228-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"d64c54e8-0982-11e5-a228-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:25.049202') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e95e597e-3020-4824-b266-7456218d866b"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:25.052007"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:25.053118"], ["id", "e95e597e-3020-4824-b266-7456218d866b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d64c54e8-0982-11e5-a228-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d64b0a8e-0982-11e5-a228-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd64b0a8e-0982-11e5-a228-a8667f0424ad' LIMIT 1 [["organization_id", "d64c54e8-0982-11e5-a228-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd64c54e8-0982-11e5-a228-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$aeATIORc6Tl0UcmP76anh.3m0r2I3NItpt73WPiwsa91zv/rkuRda"], ["created_at", "2015-06-02 23:55:25.077898"], ["updated_at", "2015-06-02 23:55:25.077898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.080236"], ["user_id", "d6525c30-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.081119"], ["updated_at", "2015-06-02 23:55:25.081119"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.087416"], ["updated_at", "2015-06-02 23:55:25.087416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6525c30-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd653c408-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6525c30-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d653c408-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.090898"], ["updated_at", "2015-06-02 23:55:25.090898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/d653c408-0982-11e5-a228-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"d653c408-0982-11e5-a228-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:25.094372') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e5f1d224-7421-452a-b2f9-25ae1eba94b9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:25.096319"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:25.097264"], ["id", "e5f1d224-7421-452a-b2f9-25ae1eba94b9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d653c408-0982-11e5-a228-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d6525c30-0982-11e5-a228-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd6525c30-0982-11e5-a228-a8667f0424ad' LIMIT 1 [["organization_id", "d653c408-0982-11e5-a228-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd653c408-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:55:25.121215"], ["id", "d653c408-0982-11e5-a228-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 31ms (Views: 1.0ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$lkP10DWb4wj7LAeoM1EI3.bCv8XkPFMuRoY.w5Wro4tsz27oKA5tq"], ["created_at", "2015-06-02 23:55:25.136738"], ["updated_at", "2015-06-02 23:55:25.136738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.139244"], ["user_id", "d65b5768-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.139989"], ["updated_at", "2015-06-02 23:55:25.139989"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.145329"], ["updated_at", "2015-06-02 23:55:25.145329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd65b5768-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd65ca35c-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d65b5768-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d65ca35c-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.149087"], ["updated_at", "2015-06-02 23:55:25.149087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/d65ca35c-0982-11e5-a228-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"d65ca35c-0982-11e5-a228-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:25.153245') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f51aae0a-2a00-4a24-9e46-8c4a1013c637"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:25.154993"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:25.155906"], ["id", "f51aae0a-2a00-4a24-9e46-8c4a1013c637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d65ca35c-0982-11e5-a228-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d65b5768-0982-11e5-a228-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd65b5768-0982-11e5-a228-a8667f0424ad' LIMIT 1 [["organization_id", "d65ca35c-0982-11e5-a228-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d65ca35c-0982-11e5-a228-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$/AdkEKKJgvb62HN.NVynvu1j8pIjXc0L3DqAOV61Uo5F4j0cKAOWW"], ["created_at", "2015-06-02 23:55:25.171350"], ["updated_at", "2015-06-02 23:55:25.171350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.173424"], ["user_id", "d66096f6-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.174160"], ["updated_at", "2015-06-02 23:55:25.174160"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.178728"], ["updated_at", "2015-06-02 23:55:25.178728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd66096f6-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd661b3a6-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d66096f6-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d661b3a6-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.182752"], ["updated_at", "2015-06-02 23:55:25.182752"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$eth3KBFFNdmHxhHYrZasDufQI4zZ91ENkiA.CYnDfkyBg7woTaXN."], ["created_at", "2015-06-02 23:55:25.193619"], ["updated_at", "2015-06-02 23:55:25.193619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.195440"], ["user_id", "d663fb20-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.196078"], ["updated_at", "2015-06-02 23:55:25.196078"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.201572"], ["updated_at", "2015-06-02 23:55:25.201572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd663fb20-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd66538e6-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d663fb20-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d66538e6-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.206000"], ["updated_at", "2015-06-02 23:55:25.206000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:55:25 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$zG3VjMrN4eAmFzoqOy6yJu2M0Jyo2PrDceBEjY7gHdog7STwSyuk."], ["created_at", "2015-06-02 23:55:25.216479"], ["updated_at", "2015-06-02 23:55:25.216479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.219266"], ["user_id", "d66790c8-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.220077"], ["updated_at", "2015-06-02 23:55:25.220077"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.225222"], ["updated_at", "2015-06-02 23:55:25.225222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd66790c8-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd668f2f6-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d66790c8-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d668f2f6-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.230487"], ["updated_at", "2015-06-02 23:55:25.230487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:55:25 -0700  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$9PzhGEAPYdRWc54jfp3t5urLHBX9iu8zxtcmIJVrwntEKec2cCiDC"], ["created_at", "2015-06-02 23:55:25.241438"], ["updated_at", "2015-06-02 23:55:25.241438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.243874"], ["user_id", "d66b506e-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.244582"], ["updated_at", "2015-06-02 23:55:25.244582"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.250382"], ["updated_at", "2015-06-02 23:55:25.250382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd66b506e-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd66caa9a-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d66b506e-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d66caa9a-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.254526"], ["updated_at", "2015-06-02 23:55:25.254526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-12" for 127.0.0.1 at 2015-06-02 16:55:25 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$pG8zGIKs01JHpwMIjttPHes.1/9hdFPmyk9wmR7Yoj.YNITNAgvaW"], ["created_at", "2015-06-02 23:55:25.264728"], ["updated_at", "2015-06-02 23:55:25.264728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.267638"], ["user_id", "d66ede28-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.268422"], ["updated_at", "2015-06-02 23:55:25.268422"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.273493"], ["updated_at", "2015-06-02 23:55:25.273493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd66ede28-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd67033d6-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d66ede28-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d67033d6-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.277181"], ["updated_at", "2015-06-02 23:55:25.277181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$HmWof.dkuqXM.TxJ.fJ2V.4h2Zs6pSA8J0f3l36.Uu39V7jIY5BKq"], ["created_at", "2015-06-02 23:55:25.290416"], ["updated_at", "2015-06-02 23:55:25.290416"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.293377"], ["user_id", "d672d1e0-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.294259"], ["updated_at", "2015-06-02 23:55:25.294259"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.298916"], ["updated_at", "2015-06-02 23:55:25.298916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd672d1e0-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd6740f10-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d672d1e0-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d6740f10-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.302997"], ["updated_at", "2015-06-02 23:55:25.302997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-14" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-14", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:25.306006') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ec1d2f4f-88a8-4ea3-b2a9-d497559b295e"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:25.307697"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:25.309103"], ["id", "ec1d2f4f-88a8-4ea3-b2a9-d497559b295e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-14"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d672d1e0-0982-11e5-a228-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd672d1e0-0982-11e5-a228-a8667f0424ad' LIMIT 1 [["organization_id", "d6740f10-0982-11e5-a228-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd6740f10-0982-11e5-a228-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$9zgf.24xnQl93b27vMp3a.mB8VJj0R5Er4Rp59yAn2y46MOwkl0Ay"], ["created_at", "2015-06-02 23:55:25.328605"], ["updated_at", "2015-06-02 23:55:25.328605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.330406"], ["user_id", "d6789418-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.331080"], ["updated_at", "2015-06-02 23:55:25.331080"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.336673"], ["updated_at", "2015-06-02 23:55:25.336673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6789418-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd679d594-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6789418-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d679d594-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.340364"], ["updated_at", "2015-06-02 23:55:25.340364"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-15" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-15", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:25.345010') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "093dc430-4732-4b80-9f3a-fbccd1f97b19"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:25.346715"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:25.347608"], ["id", "093dc430-4732-4b80-9f3a-fbccd1f97b19"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-15"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d6789418-0982-11e5-a228-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd6789418-0982-11e5-a228-a8667f0424ad' LIMIT 1 [["organization_id", "d679d594-0982-11e5-a228-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd679d594-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:55:25.357424"], ["id", "d679d594-0982-11e5-a228-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.7ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$8w4.E8TJrkYXDapdH1ivYuoZsIV2inCFwfMPd5Qg1fDsAWiJsEFuG"], ["created_at", "2015-06-02 23:55:25.369346"], ["updated_at", "2015-06-02 23:55:25.369346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.371759"], ["user_id", "d67ed580-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.372475"], ["updated_at", "2015-06-02 23:55:25.372475"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.377681"], ["updated_at", "2015-06-02 23:55:25.377681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd67ed580-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd6802232-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d67ed580-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d6802232-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.381610"], ["updated_at", "2015-06-02 23:55:25.381610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$C.U2tx13xskwWeJN1yzp6.IIDXGzwp19RukPXm6Odg.OfHuyGnC6G"], ["created_at", "2015-06-02 23:55:25.388908"], ["updated_at", "2015-06-02 23:55:25.388908"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.394520"], ["updated_at", "2015-06-02 23:55:25.394520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd681cbe6-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd682ad04-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d681cbe6-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d682ad04-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.399841"], ["updated_at", "2015-06-02 23:55:25.399841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:25.403919') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7ecdced9-7596-402c-9b38-a1512b8ff430"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:25.405384"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:25.406295"], ["id", "7ecdced9-7596-402c-9b38-a1512b8ff430"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d67ed580-0982-11e5-a228-a8667f0424ad"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "d67ed580-0982-11e5-a228-a8667f0424ad"]] Completed 200 OK in 18ms (Views: 3.4ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$UrmxG1rX3f.zMncSjzDf5OzIvmOyUfM1KOggDhpGk3iyM9xqN6rKC"], ["created_at", "2015-06-02 23:55:25.430447"], ["updated_at", "2015-06-02 23:55:25.430447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.432539"], ["user_id", "d6881eba-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.433473"], ["updated_at", "2015-06-02 23:55:25.433473"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.440035"], ["updated_at", "2015-06-02 23:55:25.440035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6881eba-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd689a32a-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6881eba-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d689a32a-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.444176"], ["updated_at", "2015-06-02 23:55:25.444176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$c83HRvcUowpm0kn7eyPnc.vWHacvNAYrcXRD6o9s4fIOqmrkcb0NS"], ["created_at", "2015-06-02 23:55:25.452418"], ["updated_at", "2015-06-02 23:55:25.452418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.458351"], ["updated_at", "2015-06-02 23:55:25.458351"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd68b85be-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd68c6042-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d68b85be-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d68c6042-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.463044"], ["updated_at", "2015-06-02 23:55:25.463044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (2.1ms) ROLLBACK  (0.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$aSodFkSUnE79CdZlQ73wDO9E/9gC9LJowRgBWBUM1MsfioSjM6Y/i"], ["created_at", "2015-06-02 23:55:25.494173"], ["updated_at", "2015-06-02 23:55:25.494173"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.497551"], ["user_id", "d691edd2-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.498875"], ["updated_at", "2015-06-02 23:55:25.498875"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.505381"], ["updated_at", "2015-06-02 23:55:25.505381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd691edd2-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd693a60e-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d691edd2-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d693a60e-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.510156"], ["updated_at", "2015-06-02 23:55:25.510156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$2jf2/zFFbU/.asOL5UJOAuOF.m5IfUHuxcNWKngiukHG320r4fO/q"], ["created_at", "2015-06-02 23:55:25.523849"], ["updated_at", "2015-06-02 23:55:25.523849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.534632"], ["user_id", "d69666a0-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.535667"], ["updated_at", "2015-06-02 23:55:25.535667"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.543172"], ["updated_at", "2015-06-02 23:55:25.543172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd69666a0-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd69951f8-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d69666a0-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d69951f8-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.547180"], ["updated_at", "2015-06-02 23:55:25.547180"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:25.551679') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9ca2a4ac-2179-4004-9184-2b91a55382a7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:25.553595"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:25.555073"], ["id", "9ca2a4ac-2179-4004-9184-2b91a55382a7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d69666a0-0982-11e5-a228-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$EdjlGP5SN0OLe.iWJzcpXeCl6o7saU.RArRw79syo5pPGWpn8EgNa"], ["created_at", "2015-06-02 23:55:25.574971"], ["updated_at", "2015-06-02 23:55:25.574971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.576977"], ["user_id", "d69e2f20-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.579267"], ["updated_at", "2015-06-02 23:55:25.579267"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.586963"], ["updated_at", "2015-06-02 23:55:25.586963"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd69e2f20-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd6a00eee-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d69e2f20-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d6a00eee-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.592356"], ["updated_at", "2015-06-02 23:55:25.592356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:25.597282') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a66eb48d-b56b-468a-878b-ee9d0adfc785"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:25.599040"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:25.600275"], ["id", "a66eb48d-b56b-468a-878b-ee9d0adfc785"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d69e2f20-0982-11e5-a228-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.613121"], ["updated_at", "2015-06-02 23:55:25.613121"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd69e2f20-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd6a40b8e-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d69e2f20-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["organization_id", "d6a40b8e-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.617453"], ["updated_at", "2015-06-02 23:55:25.617453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 1.2ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$CFmzgQ3MOhe1DVSiEWaK6u3yhk9zMQlqE3fqqBgRerMd3Hjw1REPy"], ["created_at", "2015-06-02 23:55:25.634463"], ["updated_at", "2015-06-02 23:55:25.634463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.638065"], ["user_id", "d6a75f46-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.639519"], ["updated_at", "2015-06-02 23:55:25.639519"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.647036"], ["updated_at", "2015-06-02 23:55:25.647036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6a75f46-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd6a93712-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6a75f46-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d6a93712-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.653100"], ["updated_at", "2015-06-02 23:55:25.653100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-23" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-23", "organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:55:25.658839') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "63da2488-e748-4dda-936e-b18e58f0563f"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:55:25.661515"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:55:25.662951"], ["id", "63da2488-e748-4dda-936e-b18e58f0563f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d6a75f46-0982-11e5-a228-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd6a75f46-0982-11e5-a228-a8667f0424ad' LIMIT 1 [["organization_id", "d6a93712-0982-11e5-a228-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d6a93712-0982-11e5-a228-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 17ms (ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$4UxRhjtPRlmJ2GMJa/0pVOYsmAHUY5mW1xoah9ryYMCPzDKPdhLvO"], ["created_at", "2015-06-02 23:55:25.683504"], ["updated_at", "2015-06-02 23:55:25.683504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:55:25.690896"], ["user_id", "d6af88ba-0982-11e5-a228-a8667f0424ad"], ["created_at", "2015-06-02 23:55:25.691612"], ["updated_at", "2015-06-02 23:55:25.691612"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:55:25.696728"], ["updated_at", "2015-06-02 23:55:25.696728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6af88ba-0982-11e5-a228-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'd6b0c54a-0982-11e5-a228-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6af88ba-0982-11e5-a228-a8667f0424ad"], ["organization_id", "d6b0c54a-0982-11e5-a228-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:55:25.700229"], ["updated_at", "2015-06-02 23:55:25.700229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:55:25 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$TwsJNq9ullPnmTxowv3oReh3vS5BfFoxazqTb8q3FFJvnKMvfFDhS"], ["created_at", "2015-06-02 23:59:50.954177"], ["updated_at", "2015-06-02 23:59:50.954177"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:50.990453"], ["user_id", "74cc4646-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:50.998060"], ["updated_at", "2015-06-02 23:59:50.998060"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.011540"], ["updated_at", "2015-06-02 23:59:51.011540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74cc4646-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74d4b15a-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74cc4646-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "74d4b15a-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.026801"], ["updated_at", "2015-06-02 23:59:51.026801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$JKA1UMdsqnE1rhjSb72w3OxTVedWh.C/VO6fpmrzJ8sBRZIsX1dbq"], ["created_at", "2015-06-02 23:59:51.033983"], ["updated_at", "2015-06-02 23:59:51.033983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.039298"], ["updated_at", "2015-06-02 23:59:51.039298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74d808be-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74d8ce8e-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "74d808be-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "74d8ce8e-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.042518"], ["updated_at", "2015-06-02 23:59:51.042518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.066071') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d1dfac9c-19a6-4eb4-b40f-8e5b0793d1c8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.079410"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.081030"], ["id", "d1dfac9c-19a6-4eb4-b40f-8e5b0793d1c8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74cc4646-0983-11e5-ac42-a8667f0424ad"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "74cc4646-0983-11e5-ac42-a8667f0424ad"]] Completed 200 OK in 58ms (Views: 10.9ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$BNxl9Zu/oPK/7jjsUkFNZev8YKr5JVsv3aqNNEKmfv/prWY3WZcxW"], ["created_at", "2015-06-02 23:59:51.136418"], ["updated_at", "2015-06-02 23:59:51.136418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.138922"], ["user_id", "74e7b07a-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.139643"], ["updated_at", "2015-06-02 23:59:51.139643"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.145218"], ["updated_at", "2015-06-02 23:59:51.145218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74e7b07a-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74e8f7f0-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74e7b07a-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "74e8f7f0-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.148666"], ["updated_at", "2015-06-02 23:59:51.148666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$N5LI2/wWG/JiiojRtSc5BuPup2ZArc.oxRxZNsMUmEwvV6hsCFOB6"], ["created_at", "2015-06-02 23:59:51.154855"], ["updated_at", "2015-06-02 23:59:51.154855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.159353"], ["updated_at", "2015-06-02 23:59:51.159353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74ea76e8-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74eb1e9a-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "74ea76e8-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "74eb1e9a-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.162574"], ["updated_at", "2015-06-02 23:59:51.162574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$7Vx1rWzS2UM6IZqo4Gzqn.o5/56EIOg.M9VO/VW8g66QFwEWpKNG6"], ["created_at", "2015-06-02 23:59:51.175360"], ["updated_at", "2015-06-02 23:59:51.175360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.177496"], ["user_id", "74ed962a-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.178691"], ["updated_at", "2015-06-02 23:59:51.178691"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.184914"], ["updated_at", "2015-06-02 23:59:51.184914"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74ed962a-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74ef4448-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74ed962a-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "74ef4448-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.190799"], ["updated_at", "2015-06-02 23:59:51.190799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-5" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.194855') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "96a5430e-ab7a-4a48-876e-6ca6bdc245b9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.196555"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.197388"], ["id", "96a5430e-ab7a-4a48-876e-6ca6bdc245b9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-5"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74ed962a-0983-11e5-ac42-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '74ed962a-0983-11e5-ac42-a8667f0424ad' LIMIT 1 [["organization_id", "74ef4448-0983-11e5-ac42-a8667f0424ad"]] Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$Ix4ebbRX/pTFbDpAfyhGPuNaRSmkM4OsLuzce/67TEw38x4.lyyqm"], ["created_at", "2015-06-02 23:59:51.215634"], ["updated_at", "2015-06-02 23:59:51.215634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.217428"], ["user_id", "74f3b79e-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.218089"], ["updated_at", "2015-06-02 23:59:51.218089"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.223151"], ["updated_at", "2015-06-02 23:59:51.223151"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74f3b79e-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74f4e786-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74f3b79e-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "74f4e786-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.227994"], ["updated_at", "2015-06-02 23:59:51.227994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$RIIaGl0vfbG7MsW.iISpi.ICbOYtePXb6DPh0UnlsANt1nrvAg4YG"], ["created_at", "2015-06-02 23:59:51.239783"], ["updated_at", "2015-06-02 23:59:51.239783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.241598"], ["user_id", "74f767d6-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.242311"], ["updated_at", "2015-06-02 23:59:51.242311"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.247809"], ["updated_at", "2015-06-02 23:59:51.247809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74f767d6-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74f89d90-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74f767d6-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "74f89d90-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.251036"], ["updated_at", "2015-06-02 23:59:51.251036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 16:59:51 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$GjRZcvOyhC/7x.X5K1cbaOqfXlKnPNabPKO4M6zHDWjQ4P2OgIoNC"], ["created_at", "2015-06-02 23:59:51.260914"], ["updated_at", "2015-06-02 23:59:51.260914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.263351"], ["user_id", "74faae78-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.264923"], ["updated_at", "2015-06-02 23:59:51.264923"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.271785"], ["updated_at", "2015-06-02 23:59:51.271785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74faae78-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74fc54d0-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74faae78-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "74fc54d0-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.276231"], ["updated_at", "2015-06-02 23:59:51.276231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 16:59:51 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$9nnEt/BPeQEqFxO/6ADCA.RNr3HrPiSuRZAY/bHZdS2twpg7GbYh."], ["created_at", "2015-06-02 23:59:51.290277"], ["updated_at", "2015-06-02 23:59:51.290277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.292530"], ["user_id", "74ff20b6-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.293232"], ["updated_at", "2015-06-02 23:59:51.293232"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.298676"], ["updated_at", "2015-06-02 23:59:51.298676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74ff20b6-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '75006782-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74ff20b6-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "75006782-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.302548"], ["updated_at", "2015-06-02 23:59:51.302548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-9" for 127.0.0.1 at 2015-06-02 16:59:51 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$/luzgx3mkwqV75h3OAKipeE0yiY9rjEeOvdf.Spg20UqENk.2s1AO"], ["created_at", "2015-06-02 23:59:51.322016"], ["updated_at", "2015-06-02 23:59:51.322016"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.324770"], ["user_id", "750405fe-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.325634"], ["updated_at", "2015-06-02 23:59:51.325634"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.330030"], ["updated_at", "2015-06-02 23:59:51.330030"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '750405fe-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '75052a7e-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "750405fe-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "75052a7e-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.335089"], ["updated_at", "2015-06-02 23:59:51.335089"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$nKUucQBRZsJ43ISHn6x3Re/WCycrpOyD9PJqkMe20GtaBssFov7qu"], ["created_at", "2015-06-02 23:59:51.346947"], ["updated_at", "2015-06-02 23:59:51.346947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.348624"], ["user_id", "7507c02c-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.349548"], ["updated_at", "2015-06-02 23:59:51.349548"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.355252"], ["updated_at", "2015-06-02 23:59:51.355252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7507c02c-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7509093c-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7507c02c-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "7509093c-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.358899"], ["updated_at", "2015-06-02 23:59:51.358899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/7509093c-0983-11e5-ac42-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"7509093c-0983-11e5-ac42-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.362331') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a75255d4-d8f7-4a08-9e85-c80c920dc2eb"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.364125"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.365242"], ["id", "a75255d4-d8f7-4a08-9e85-c80c920dc2eb"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7509093c-0983-11e5-ac42-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7507c02c-0983-11e5-ac42-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7507c02c-0983-11e5-ac42-a8667f0424ad' LIMIT 1 [["organization_id", "7509093c-0983-11e5-ac42-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7509093c-0983-11e5-ac42-a8667f0424ad') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 26ms (ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$p1Jm0eVJNIhnr7Pzkzm3H.sr5QkJQ7NVR07KZjZIRl3mzu82JO3ka"], ["created_at", "2015-06-02 23:59:51.396374"], ["updated_at", "2015-06-02 23:59:51.396374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.398526"], ["user_id", "750f54d6-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.399201"], ["updated_at", "2015-06-02 23:59:51.399201"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.404208"], ["updated_at", "2015-06-02 23:59:51.404208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '750f54d6-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '751081f8-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "750f54d6-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "751081f8-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.407854"], ["updated_at", "2015-06-02 23:59:51.407854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/751081f8-0983-11e5-ac42-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"751081f8-0983-11e5-ac42-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.410918') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "07615d4f-8e1a-401f-b319-c380895aa92d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.412441"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.413278"], ["id", "07615d4f-8e1a-401f-b319-c380895aa92d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "751081f8-0983-11e5-ac42-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "750f54d6-0983-11e5-ac42-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '750f54d6-0983-11e5-ac42-a8667f0424ad' LIMIT 1 [["organization_id", "751081f8-0983-11e5-ac42-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '751081f8-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:59:51.422859"], ["id", "751081f8-0983-11e5-ac42-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.0ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$J.Tm.F/iPiCluNPckYn3tekeR.MCXEu1neCzSts5S9fMusnJ1VugC"], ["created_at", "2015-06-02 23:59:51.434522"], ["updated_at", "2015-06-02 23:59:51.434522"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.438293"], ["user_id", "751554a8-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.439133"], ["updated_at", "2015-06-02 23:59:51.439133"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.444550"], ["updated_at", "2015-06-02 23:59:51.444550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '751554a8-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7516afc4-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "751554a8-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "7516afc4-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.448366"], ["updated_at", "2015-06-02 23:59:51.448366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/7516afc4-0983-11e5-ac42-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"7516afc4-0983-11e5-ac42-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.452235') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "986ce8bc-c8cc-495f-afd1-cecd27f42861"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.453861"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.454855"], ["id", "986ce8bc-c8cc-495f-afd1-cecd27f42861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7516afc4-0983-11e5-ac42-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "751554a8-0983-11e5-ac42-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '751554a8-0983-11e5-ac42-a8667f0424ad' LIMIT 1 [["organization_id", "7516afc4-0983-11e5-ac42-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "7516afc4-0983-11e5-ac42-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$K2MpHqUoNMQe2QDU1NIEeulqGSb31iWjnsvkoJYqCu7RrqMQAHYlm"], ["created_at", "2015-06-02 23:59:51.471918"], ["updated_at", "2015-06-02 23:59:51.471918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.475747"], ["user_id", "751afaa2-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.476984"], ["updated_at", "2015-06-02 23:59:51.476984"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.484263"], ["updated_at", "2015-06-02 23:59:51.484263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '751afaa2-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '751cf3b6-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "751afaa2-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "751cf3b6-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.490982"], ["updated_at", "2015-06-02 23:59:51.490982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$Hm4QFkQKnczgCz0wVeFH4OzpVGmyxpePENdfQDXUonEhc8ySN7KYy"], ["created_at", "2015-06-02 23:59:51.501328"], ["updated_at", "2015-06-02 23:59:51.501328"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.504536"], ["user_id", "751f67c2-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.505607"], ["updated_at", "2015-06-02 23:59:51.505607"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.511918"], ["updated_at", "2015-06-02 23:59:51.511918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '751f67c2-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7521037a-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "751f67c2-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "7521037a-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.517144"], ["updated_at", "2015-06-02 23:59:51.517144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7521037a-0983-11e5-ac42-a8667f0424ad" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"7521037a-0983-11e5-ac42-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.520684') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "30d14745-ac97-47ef-88d2-dc168d017562"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.522543"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.523455"], ["id", "30d14745-ac97-47ef-88d2-dc168d017562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7521037a-0983-11e5-ac42-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "751f67c2-0983-11e5-ac42-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '751f67c2-0983-11e5-ac42-a8667f0424ad' LIMIT 1 [["organization_id", "7521037a-0983-11e5-ac42-a8667f0424ad"]] Completed 200 OK in 10ms (Views: 0.8ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$LTBrgwGVrxyB.FIbfVqTPOFA0kdeIOXS8tbGrylC2otHO6d2CgrJO"], ["created_at", "2015-06-02 23:59:51.539626"], ["updated_at", "2015-06-02 23:59:51.539626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.541800"], ["user_id", "75252bf8-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.542451"], ["updated_at", "2015-06-02 23:59:51.542451"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.546932"], ["updated_at", "2015-06-02 23:59:51.546932"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75252bf8-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '75264074-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75252bf8-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "75264074-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.553302"], ["updated_at", "2015-06-02 23:59:51.553302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$ZxpeT..JV8U.FPWMUJxTDO0eUkYOLijcBQtOaEmtrp1ifJVEcvpJm"], ["created_at", "2015-06-02 23:59:51.564271"], ["updated_at", "2015-06-02 23:59:51.564271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.566222"], ["user_id", "7528ebf8-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.567127"], ["updated_at", "2015-06-02 23:59:51.567127"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.571907"], ["updated_at", "2015-06-02 23:59:51.571907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7528ebf8-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '752a162c-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7528ebf8-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "752a162c-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.576417"], ["updated_at", "2015-06-02 23:59:51.576417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$QnJWc00cWp8YEuiPL.wZxOALtFCEHBDO96.J3z0U8YPga.MLbgz5y"], ["created_at", "2015-06-02 23:59:51.586871"], ["updated_at", "2015-06-02 23:59:51.586871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.590042"], ["user_id", "752c6710-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.591036"], ["updated_at", "2015-06-02 23:59:51.591036"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.595858"], ["updated_at", "2015-06-02 23:59:51.595858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '752c6710-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '752db980-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "752c6710-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "752db980-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.600296"], ["updated_at", "2015-06-02 23:59:51.600296"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-18" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-18", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.605818') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7fbda738-b2dd-46ed-bba5-c167cdae6d39"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.607477"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.608247"], ["id", "7fbda738-b2dd-46ed-bba5-c167cdae6d39"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-18"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "752c6710-0983-11e5-ac42-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '752c6710-0983-11e5-ac42-a8667f0424ad' LIMIT 1 [["organization_id", "752db980-0983-11e5-ac42-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '752db980-0983-11e5-ac42-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$I5wBxpZe9KAVYus3lkvn3uAYoPXns2jG4FqJQ5Xm0y8BQ7j4huT7i"], ["created_at", "2015-06-02 23:59:51.625496"], ["updated_at", "2015-06-02 23:59:51.625496"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.628490"], ["user_id", "75325008-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.629381"], ["updated_at", "2015-06-02 23:59:51.629381"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.634139"], ["updated_at", "2015-06-02 23:59:51.634139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75325008-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7533af02-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75325008-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "7533af02-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.639774"], ["updated_at", "2015-06-02 23:59:51.639774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-19" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-19", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.643479') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bb3c5c16-dcb6-4164-9f52-d8f87285f842"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.644929"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.645809"], ["id", "bb3c5c16-dcb6-4164-9f52-d8f87285f842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-19"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "75325008-0983-11e5-ac42-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '75325008-0983-11e5-ac42-a8667f0424ad' LIMIT 1 [["organization_id", "7533af02-0983-11e5-ac42-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7533af02-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-02 23:59:51.653669"], ["id", "7533af02-0983-11e5-ac42-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.0ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$0eheyS1gPiznPkbHB6xwFOvD5s/7hoVbD7zjdaQWr7lutqvp4FReC"], ["created_at", "2015-06-02 23:59:51.664893"], ["updated_at", "2015-06-02 23:59:51.664893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.667821"], ["user_id", "7538530e-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.669278"], ["updated_at", "2015-06-02 23:59:51.669278"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.674861"], ["updated_at", "2015-06-02 23:59:51.674861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7538530e-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7539d008-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7538530e-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "7539d008-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.678830"], ["updated_at", "2015-06-02 23:59:51.678830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-20" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.682128') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "41b624af-d97b-4b0e-b7d8-8bd780b3f511"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.684032"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.685109"], ["id", "41b624af-d97b-4b0e-b7d8-8bd780b3f511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-20"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7538530e-0983-11e5-ac42-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7538530e-0983-11e5-ac42-a8667f0424ad' LIMIT 1 [["organization_id", "7539d008-0983-11e5-ac42-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "7539d008-0983-11e5-ac42-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 19ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$uS0vxaNUr5jcD/jRiFctv.ZTH0.tFWvFV6m3TmARoXlB4GI/xiILy"], ["created_at", "2015-06-02 23:59:51.709699"], ["updated_at", "2015-06-02 23:59:51.709699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.712341"], ["user_id", "753f2ba2-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.713260"], ["updated_at", "2015-06-02 23:59:51.713260"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.720482"], ["updated_at", "2015-06-02 23:59:51.720482"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '753f2ba2-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7540cef8-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "753f2ba2-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "7540cef8-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.725170"], ["updated_at", "2015-06-02 23:59:51.725170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$8Mg3257ongw2wqmI9sHkPu53zTAnvhujVkNNM8mLNgZSe4Ll/OROG"], ["created_at", "2015-06-02 23:59:51.736436"], ["updated_at", "2015-06-02 23:59:51.736436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.738756"], ["user_id", "754337c4-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.739501"], ["updated_at", "2015-06-02 23:59:51.739501"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.744997"], ["updated_at", "2015-06-02 23:59:51.744997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '754337c4-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '75447c4c-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "754337c4-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "75447c4c-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.748394"], ["updated_at", "2015-06-02 23:59:51.748394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$U3vmhY20zkCIsTB18gassu49HM7xfR8ByY44jqTOU7LNfh58p4XOq"], ["created_at", "2015-06-02 23:59:51.759354"], ["updated_at", "2015-06-02 23:59:51.759354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.762427"], ["user_id", "7546caec-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.763363"], ["updated_at", "2015-06-02 23:59:51.763363"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.769887"], ["updated_at", "2015-06-02 23:59:51.769887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7546caec-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '75484ebc-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7546caec-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "75484ebc-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.773556"], ["updated_at", "2015-06-02 23:59:51.773556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.777578') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "90daa960-b3e9-4717-b84b-0c2d80389707"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.779511"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.780397"], ["id", "90daa960-b3e9-4717-b84b-0c2d80389707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7546caec-0983-11e5-ac42-a8667f0424ad"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$EgCXB/Pl7PsnLxN4J61dh.Y.cmL7eX/bQa5luw/w.ez1f1DrqQAwe"], ["created_at", "2015-06-02 23:59:51.802092"], ["updated_at", "2015-06-02 23:59:51.802092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-02 23:59:51.803910"], ["user_id", "754d3670-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.804698"], ["updated_at", "2015-06-02 23:59:51.804698"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.809636"], ["updated_at", "2015-06-02 23:59:51.809636"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '754d3670-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '754e5b90-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "754d3670-0983-11e5-ac42-a8667f0424ad"], ["organization_id", "754e5b90-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-02 23:59:51.814682"], ["updated_at", "2015-06-02 23:59:51.814682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 16:59:51 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-19 23:59:51.818846') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7b14bdd6-b3cd-4dbe-9139-8bf842fd8a51"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-02 23:59:51.820442"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-02 23:59:51.821321"], ["id", "7b14bdd6-b3cd-4dbe-9139-8bf842fd8a51"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "754d3670-0983-11e5-ac42-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-02 23:59:51.829803"], ["updated_at", "2015-06-02 23:59:51.829803"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '754d3670-0983-11e5-ac42-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '75518784-0983-11e5-ac42-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "754d3670-0983-11e5-ac42-a8667f0424ad"], ["admin", "t"], ["organization_id", "75518784-0983-11e5-ac42-a8667f0424ad"], ["created_at", "2015-06-02 23:59:51.835384"], ["updated_at", "2015-06-02 23:59:51.835384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 0.7ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$mhrQ3uMiF5X00/L/aW68uO5Up3eAkFlNzoV0TUqEj13ar/z0DRKdq"], ["created_at", "2015-06-03 00:01:50.173480"], ["updated_at", "2015-06-03 00:01:50.173480"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:50.205751"], ["user_id", "bbdba75c-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.212190"], ["updated_at", "2015-06-03 00:01:50.212190"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.223474"], ["updated_at", "2015-06-03 00:01:50.223474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbdba75c-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bbe2f458-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbdba75c-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bbe2f458-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:50.235356"], ["updated_at", "2015-06-03 00:01:50.235356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bbe2f458-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "bbe2f458-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.249657"], ["updated_at", "2015-06-03 00:01:50.249657"], ["token", "6XIDiPgSlp5kJzN0_pVau6R5saopBLfuyEfi9Ax5Dxo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$Fq2uhffM3qU6oBkDWpx6UO0VQ35/P4DrmXObw9DMjUQBDRuqto7YS"], ["created_at", "2015-06-03 00:01:50.258364"], ["updated_at", "2015-06-03 00:01:50.258364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.263235"], ["updated_at", "2015-06-03 00:01:50.263235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbe83580-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bbe8f0ba-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbe83580-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bbe8f0ba-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.266688"], ["updated_at", "2015-06-03 00:01:50.266688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:01:50 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:50.296684') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cada2ea4-6c54-4c0e-8749-cda56b834647"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:50.305504"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:50.306860"], ["id", "cada2ea4-6c54-4c0e-8749-cda56b834647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bbdba75c-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bbdba75c-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bbe2f458-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "bbe2f458-0983-11e5-8275-a8667f0424ad"]] Completed 200 OK in 70ms (Views: 21.6ms | ActiveRecord: 2.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$d//t2T9VVp47eqQZScpJmudyPUnFINiUL5nMUNTGJ.hLsCv4T/MPS"], ["created_at", "2015-06-03 00:01:50.379186"], ["updated_at", "2015-06-03 00:01:50.379186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:50.382365"], ["user_id", "bbfac4a2-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.383486"], ["updated_at", "2015-06-03 00:01:50.383486"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.389725"], ["updated_at", "2015-06-03 00:01:50.389725"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbfac4a2-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bbfc4df4-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bbfac4a2-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bbfc4df4-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:50.394975"], ["updated_at", "2015-06-03 00:01:50.394975"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'bbfc4df4-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "bbfc4df4-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.401566"], ["updated_at", "2015-06-03 00:01:50.401566"], ["token", "K5zSs8DAnfJWak0-CTAwavlApEnGUhBWkywHS8m1EcM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (1.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$ys4B1YzUZbnejwGbRa12aO1X5k.Pq5PWyDnykTq94nSmbikbp05mG"], ["created_at", "2015-06-03 00:01:50.415711"], ["updated_at", "2015-06-03 00:01:50.415711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.424442"], ["updated_at", "2015-06-03 00:01:50.424442"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc003fcc-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc0212ca-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc003fcc-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc0212ca-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.434664"], ["updated_at", "2015-06-03 00:01:50.434664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:01:50 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$qV2.jIxRcbTWJXcFr9o7KupkUQfhCj2NVE1UFMfCMJBXA1mj748Ue"], ["created_at", "2015-06-03 00:01:50.450737"], ["updated_at", "2015-06-03 00:01:50.450737"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:50.453507"], ["user_id", "bc059c7e-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.454541"], ["updated_at", "2015-06-03 00:01:50.454541"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (10.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.462824"], ["updated_at", "2015-06-03 00:01:50.462824"]]  (15.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc059c7e-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc07b3e2-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc059c7e-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc07b3e2-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:50.505181"], ["updated_at", "2015-06-03 00:01:50.505181"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'bc07b3e2-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "bc07b3e2-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.516588"], ["updated_at", "2015-06-03 00:01:50.516588"], ["token", "FrYXrEM5kUMW81LBVFAH8-xaADpSWRlgBK-4Ga2w7VE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$j7zPEjaW312n6QFfDwM1jOOlY4esclF0VkI6fB3/sq635mltf/I3e"], ["created_at", "2015-06-03 00:01:50.529020"], ["updated_at", "2015-06-03 00:01:50.529020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.535824"], ["updated_at", "2015-06-03 00:01:50.535824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc118566-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc1299c4-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc118566-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc1299c4-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.546494"], ["updated_at", "2015-06-03 00:01:50.546494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/bc07b3e2-0983-11e5-8275-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:01:50 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"bc07b3e2-0983-11e5-8275-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:50.561758') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "08a60b1a-5f8d-4d9d-b637-0e292aab114a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:50.563501"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:50.564629"], ["id", "08a60b1a-5f8d-4d9d-b637-0e292aab114a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bc07b3e2-0983-11e5-8275-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc059c7e-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc059c7e-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bc07b3e2-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "bc07b3e2-0983-11e5-8275-a8667f0424ad"]] Completed 200 OK in 13ms (Views: 1.9ms | ActiveRecord: 1.7ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$qvd8AlP01tQH1BRNCCblJuoDOcsz29FLwDXQqmr.Q25knMvD6X7Ly"], ["created_at", "2015-06-03 00:01:50.584817"], ["updated_at", "2015-06-03 00:01:50.584817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:50.586725"], ["user_id", "bc1a01c8-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.587390"], ["updated_at", "2015-06-03 00:01:50.587390"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.594843"], ["updated_at", "2015-06-03 00:01:50.594843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc1a01c8-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc1b9830-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc1a01c8-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc1b9830-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:50.599748"], ["updated_at", "2015-06-03 00:01:50.599748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'bc1b9830-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "bc1b9830-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.605967"], ["updated_at", "2015-06-03 00:01:50.605967"], ["token", "ex0_VuUxrG1rESrOj4tWm1-YrC43_LULXNmu-tySFdA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$VLgMF6WRX3L1B//MlDLAkuzbCo8AKbFjH1OTrMfOwo8//hPDlLIgS"], ["created_at", "2015-06-03 00:01:50.611865"], ["updated_at", "2015-06-03 00:01:50.611865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.617928"], ["updated_at", "2015-06-03 00:01:50.617928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc1e346e-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc1f0d1c-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc1e346e-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc1f0d1c-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.621456"], ["updated_at", "2015-06-03 00:01:50.621456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 17:01:50 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$pXN7496U.EaGTIBA9z.0Eu47VUp.VD3zylHOkfY/2BjMNUboI1ede"], ["created_at", "2015-06-03 00:01:50.634751"], ["updated_at", "2015-06-03 00:01:50.634751"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:50.637562"], ["user_id", "bc21b472-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.638375"], ["updated_at", "2015-06-03 00:01:50.638375"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.643851"], ["updated_at", "2015-06-03 00:01:50.643851"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc21b472-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc2302c8-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc21b472-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc2302c8-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:50.657458"], ["updated_at", "2015-06-03 00:01:50.657458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (4.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'bc2302c8-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "bc2302c8-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.667217"], ["updated_at", "2015-06-03 00:01:50.667217"], ["token", "6_8LPU192VegCCaddH2uyWqalaIaKuuWtZTH_LGEDXI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/bc26b2a6-0983-11e5-8275-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:01:50 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"bc26b2a6-0983-11e5-8275-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:50.672274') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dafcfe10-7ae1-41a5-b19b-19f96ebe105a"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:50.674256"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:50.675271"], ["id", "dafcfe10-7ae1-41a5-b19b-19f96ebe105a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc26b2a6-0983-11e5-8275-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc21b472-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc2302c8-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc21b472-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bc2302c8-0983-11e5-8275-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$lRkpr7QJQOwyWGXoxm0BV.tKgEqj9xXVIR2oCzG8uJobU1cmOUNCy"], ["created_at", "2015-06-03 00:01:50.693489"], ["updated_at", "2015-06-03 00:01:50.693489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:50.695553"], ["user_id", "bc2a9cc2-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.696403"], ["updated_at", "2015-06-03 00:01:50.696403"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.701351"], ["updated_at", "2015-06-03 00:01:50.701351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc2a9cc2-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc2bcdea-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc2a9cc2-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc2bcdea-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:50.705101"], ["updated_at", "2015-06-03 00:01:50.705101"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'bc2bcdea-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "bc2bcdea-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.711139"], ["updated_at", "2015-06-03 00:01:50.711139"], ["token", "Ifw46kdLn2AOSueOJAxnEga3Eak7iNXrStjCoFIroD4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 17:01:50 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$Dasw/SEcdV2XQQTHzZtKqeY.sU1Qb.9vc5i3ou3mgnYJoTbkFkFJW"], ["created_at", "2015-06-03 00:01:50.723612"], ["updated_at", "2015-06-03 00:01:50.723612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:50.726020"], ["user_id", "bc2f3c3c-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.726750"], ["updated_at", "2015-06-03 00:01:50.726750"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.731193"], ["updated_at", "2015-06-03 00:01:50.731193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc2f3c3c-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc3054aa-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc2f3c3c-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc3054aa-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:50.735383"], ["updated_at", "2015-06-03 00:01:50.735383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'bc3054aa-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "bc3054aa-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.741430"], ["updated_at", "2015-06-03 00:01:50.741430"], ["token", "GCsbJPn71TWjydsZMe2uvHkmdgExs4GBAAdwunsK_7I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:01:50 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$iD6mUkoZXutoEd4f2bAXIesPUa.KFfb1EfQbKyKfqQw0z6kY28cWC"], ["created_at", "2015-06-03 00:01:50.752895"], ["updated_at", "2015-06-03 00:01:50.752895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:50.757208"], ["user_id", "bc33d97c-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.760192"], ["updated_at", "2015-06-03 00:01:50.760192"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.768668"], ["updated_at", "2015-06-03 00:01:50.768668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc33d97c-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc36193a-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc33d97c-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc36193a-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:50.773467"], ["updated_at", "2015-06-03 00:01:50.773467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'bc36193a-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "bc36193a-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.778323"], ["updated_at", "2015-06-03 00:01:50.778323"], ["token", "XxQlAEto0j71y1Aw_b5xG_Om8ZrwVPtbIkOi36s-lf8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:01:50 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:50.785456') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "05d1405e-e345-4de0-99a4-d17fc345603e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:50.787274"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:50.788497"], ["id", "05d1405e-e345-4de0-99a4-d17fc345603e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc33d97c-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc33d97c-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bc36193a-0983-11e5-8275-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'bc36193a-0983-11e5-8275-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms (ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$cUSqhU842C/WSJ77fOboC.ADkF490SWLYTf2ReQCXG7i9xeSoSh/6"], ["created_at", "2015-06-03 00:01:50.816350"], ["updated_at", "2015-06-03 00:01:50.816350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:50.818628"], ["user_id", "bc3d608c-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.819419"], ["updated_at", "2015-06-03 00:01:50.819419"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:50.825404"], ["updated_at", "2015-06-03 00:01:50.825404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc3d608c-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc3ec3d2-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc3d608c-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc3ec3d2-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:50.829231"], ["updated_at", "2015-06-03 00:01:50.829231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'bc3ec3d2-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "bc3ec3d2-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:50.833641"], ["updated_at", "2015-06-03 00:01:50.833641"], ["token", "U9vYRWeTUm7qGb5HjB-JqlUvDX42tpAuuAm9wivI8Hg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:01:50 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:50.838023') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a5bfcd12-6588-4178-a044-9b3823e5cfd9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:50.840760"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:50.841937"], ["id", "a5bfcd12-6588-4178-a044-9b3823e5cfd9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc3d608c-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc3d608c-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bc3ec3d2-0983-11e5-8275-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bc3ec3d2-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bc3ec3d2-0983-11e5-8275-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:01:50.854084"], ["updated_at", "2015-06-03 00:01:50.854084"], ["token", "N85MlBJ478YFf81szQ0fuaKO_TLuefPWL_GxaBnvmUk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 653d073d-e8af-48e2-9a5f-a663564439d3) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc432f8a-0983-11e5-8275-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc432f8a-0983-11e5-8275-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [653d073d-e8af-48e2-9a5f-a663564439d3] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc432f8a-0983-11e5-8275-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [653d073d-e8af-48e2-9a5f-a663564439d3] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc3ec3d2-0983-11e5-8275-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [653d073d-e8af-48e2-9a5f-a663564439d3] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [653d073d-e8af-48e2-9a5f-a663564439d3] Clubhouse::Mailer#invitation: processed outbound mail in 306.9ms [ActiveJob] [ActionMailer::DeliveryJob] [653d073d-e8af-48e2-9a5f-a663564439d3] Sent mail to email@example.com (8.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [653d073d-e8af-48e2-9a5f-a663564439d3] Date: Tue, 02 Jun 2015 17:01:51 -0700 From: from@example.com To: email@example.com Message-ID: <556e43ef31758_e1293fc1018601f8808dd@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/N85MlBJ478YFf81szQ0fuaKO_TLuefPWL_GxaBnvmUk?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [653d073d-e8af-48e2-9a5f-a663564439d3] Performed ActionMailer::DeliveryJob from Inline(mailers) in 315.72ms Completed 201 Created in 370ms (Views: 1.2ms | ActiveRecord: 3.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$Lvs9YFu7Vfmmqnp0a1vYoeTNjto1.sKRY4nU7I/SjoQVhfECvsSrG"], ["created_at", "2015-06-03 00:01:51.218915"], ["updated_at", "2015-06-03 00:01:51.218915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:51.221452"], ["user_id", "bc7aceb8-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.222335"], ["updated_at", "2015-06-03 00:01:51.222335"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:51.227434"], ["updated_at", "2015-06-03 00:01:51.227434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7aceb8-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc7c11a6-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc7aceb8-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc7c11a6-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.230780"], ["updated_at", "2015-06-03 00:01:51.230780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'bc7c11a6-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "bc7c11a6-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.235186"], ["updated_at", "2015-06-03 00:01:51.235186"], ["token", "kRYFINYYXeCGKtHLLOyTwAlM-kjIPwz4KyTG8M8vUz8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:01:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:51.239142') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "da9520d0-ff02-4135-93ad-2904419f8518"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:51.240974"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:51.241917"], ["id", "da9520d0-ff02-4135-93ad-2904419f8518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7aceb8-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc7aceb8-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bc7c11a6-0983-11e5-8275-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bc7c11a6-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bc7c11a6-0983-11e5-8275-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.251916"], ["updated_at", "2015-06-03 00:01:51.251916"], ["token", "WVwqQG-ZZWyaP172H_w69-QDWapjqr_DWJ11Ko-G3Jc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 07ff6da8-ca50-4509-8131-b58da75e0300) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc7fdef8-0983-11e5-8275-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc7fdef8-0983-11e5-8275-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [07ff6da8-ca50-4509-8131-b58da75e0300] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bc7fdef8-0983-11e5-8275-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [07ff6da8-ca50-4509-8131-b58da75e0300] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc7c11a6-0983-11e5-8275-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [07ff6da8-ca50-4509-8131-b58da75e0300] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [07ff6da8-ca50-4509-8131-b58da75e0300] Clubhouse::Mailer#invitation: processed outbound mail in 2.9ms [ActiveJob] [ActionMailer::DeliveryJob] [07ff6da8-ca50-4509-8131-b58da75e0300] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [07ff6da8-ca50-4509-8131-b58da75e0300] Date: Tue, 02 Jun 2015 17:01:51 -0700 From: from@example.com To: email@example.com Message-ID: <556e43ef3fac9_e1293fc1018601f880940@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/WVwqQG-ZZWyaP172H_w69-QDWapjqr_DWJ11Ko-G3Jc?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [07ff6da8-ca50-4509-8131-b58da75e0300] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.19ms Completed 201 Created in 24ms (Views: 0.7ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$pIh1FJpgfuZXRVpmIGWPbunu2K/0dQAq1RKa3buwyZSUeqZb0rEN2"], ["created_at", "2015-06-03 00:01:51.270421"], ["updated_at", "2015-06-03 00:01:51.270421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:51.272128"], ["user_id", "bc829eb8-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.273175"], ["updated_at", "2015-06-03 00:01:51.273175"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:51.279014"], ["updated_at", "2015-06-03 00:01:51.279014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc829eb8-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc83f3ee-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc829eb8-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc83f3ee-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.283007"], ["updated_at", "2015-06-03 00:01:51.283007"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'bc83f3ee-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "bc83f3ee-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.289251"], ["updated_at", "2015-06-03 00:01:51.289251"], ["token", "VhWjeyw7wGArWGA7UVEuFoVWVxn5pbbK-mxQ-SG8URY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/bc85a0b8-0983-11e5-8275-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:01:51 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"bc85a0b8-0983-11e5-8275-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:51.294023') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a3ed1243-1a56-4b7f-911f-28302d8dd8e6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:51.295443"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:51.296249"], ["id", "a3ed1243-1a56-4b7f-911f-28302d8dd8e6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc85a0b8-0983-11e5-8275-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc829eb8-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc83f3ee-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc829eb8-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bc83f3ee-0983-11e5-8275-a8667f0424ad"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."id" != 'bc85a0b8-0983-11e5-8275-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = 'bc83f3ee-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:01:51.306479"], ["id", "bc85a0b8-0983-11e5-8275-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$Nfhdu9g3oCCB5ApDrwHvQ.YZ9pwj3uq2v9fc4vC0Zn23/rN.NTkiW"], ["created_at", "2015-06-03 00:01:51.316095"], ["updated_at", "2015-06-03 00:01:51.316095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:51.317747"], ["user_id", "bc8996dc-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.318418"], ["updated_at", "2015-06-03 00:01:51.318418"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:51.324535"], ["updated_at", "2015-06-03 00:01:51.324535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8996dc-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc8aecb2-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc8996dc-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc8aecb2-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.328459"], ["updated_at", "2015-06-03 00:01:51.328459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'bc8aecb2-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "bc8aecb2-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.332467"], ["updated_at", "2015-06-03 00:01:51.332467"], ["token", "OUwvYy_I8zbQiFywhl5oqd4q7F2fPRvKpPLjlbn3bbw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 17:01:51 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$oWX9Todd7xiO4c7JmvaA9OHjWlXXn7VV1dcNayx9HPs4C/DWrh.GK"], ["created_at", "2015-06-03 00:01:51.342266"], ["updated_at", "2015-06-03 00:01:51.342266"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:51.344714"], ["user_id", "bc8d9822-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.345792"], ["updated_at", "2015-06-03 00:01:51.345792"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:51.350765"], ["updated_at", "2015-06-03 00:01:51.350765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc8d9822-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc8ee114-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc8d9822-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc8ee114-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.354123"], ["updated_at", "2015-06-03 00:01:51.354123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'bc8ee114-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "bc8ee114-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.358807"], ["updated_at", "2015-06-03 00:01:51.358807"], ["token", "N_cOYaGZAwfbxu3Jm_0nWcm_l54RUpkjo6D_bReo5KQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/bc902614-0983-11e5-8275-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:01:51 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"bc902614-0983-11e5-8275-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:51.362325') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4aba18f2-d056-4abf-9543-80d24612c4cf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:51.363775"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:51.364701"], ["id", "4aba18f2-d056-4abf-9543-80d24612c4cf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bc902614-0983-11e5-8275-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc8d9822-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bc8ee114-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc8d9822-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bc8ee114-0983-11e5-8275-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "bc902614-0983-11e5-8275-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$kwbQcHLACsJ7vfu99KYXT.tOYWNsRfNwqk.Hiq37xS051zyrPzGgS"], ["created_at", "2015-06-03 00:01:51.378434"], ["updated_at", "2015-06-03 00:01:51.378434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:51.380422"], ["user_id", "bc93195a-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.381649"], ["updated_at", "2015-06-03 00:01:51.381649"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:51.391409"], ["updated_at", "2015-06-03 00:01:51.391409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc93195a-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc95504e-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc93195a-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc95504e-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.400025"], ["updated_at", "2015-06-03 00:01:51.400025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'bc95504e-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "bc95504e-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.404568"], ["updated_at", "2015-06-03 00:01:51.404568"], ["token", "u6yWIJe7ioiNobUs8BM957nJyyMdmIKuJBX0D0xhebE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 17:01:51 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$bI2A0IrXIj46ttdyu9PL9.o97NUTItBYNUO5N8fSRfC9WvvhdP8R."], ["created_at", "2015-06-03 00:01:51.418127"], ["updated_at", "2015-06-03 00:01:51.418127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:51.420006"], ["user_id", "bc992bec-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.420672"], ["updated_at", "2015-06-03 00:01:51.420672"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:51.426069"], ["updated_at", "2015-06-03 00:01:51.426069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc992bec-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc9a6408-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc992bec-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc9a6408-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.430512"], ["updated_at", "2015-06-03 00:01:51.430512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'bc9a6408-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "bc9a6408-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.435622"], ["updated_at", "2015-06-03 00:01:51.435622"], ["token", "ko0FuOl0KZY1TVA0JdQaoiqjndA4puXanIYsPOUqtag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 17:01:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$HEqYfvxOOLTBihSJGM/iOuTDb5bVILiGn88rA5gOJQM7Idt9dmOCG"], ["created_at", "2015-06-03 00:01:51.446756"], ["updated_at", "2015-06-03 00:01:51.446756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:51.448976"], ["user_id", "bc9d8804-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.449984"], ["updated_at", "2015-06-03 00:01:51.449984"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:51.456160"], ["updated_at", "2015-06-03 00:01:51.456160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc9d8804-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bc9f0030-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc9d8804-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bc9f0030-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.460714"], ["updated_at", "2015-06-03 00:01:51.460714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'bc9f0030-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "bc9f0030-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.466794"], ["updated_at", "2015-06-03 00:01:51.466794"], ["token", "Fm0d1QZhQFBA92h3SVMfHVvZLYB5Oqcm375ycn-_MS0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bc9f0030-0983-11e5-8275-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:01:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"bc9f0030-0983-11e5-8275-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:51.471302') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cb8d6683-d0b6-4fb2-a297-aefe27f866e7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:51.472979"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:51.473765"], ["id", "cb8d6683-d0b6-4fb2-a297-aefe27f866e7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bc9f0030-0983-11e5-8275-a8667f0424ad"]] User Load (2.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc9d8804-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bc9d8804-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bc9f0030-0983-11e5-8275-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'bc9f0030-0983-11e5-8275-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms (ActiveRecord: 5.4ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$wKwl0.lrk7i9j2/BH4vgtuZmWcr2nnsdaYG.VhhOiRrdo6auq57Vm"], ["created_at", "2015-06-03 00:01:51.499973"], ["updated_at", "2015-06-03 00:01:51.499973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:51.502593"], ["user_id", "bca5b434-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.503563"], ["updated_at", "2015-06-03 00:01:51.503563"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:51.508811"], ["updated_at", "2015-06-03 00:01:51.508811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bca5b434-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bca70744-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bca5b434-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bca70744-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.512911"], ["updated_at", "2015-06-03 00:01:51.512911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'bca70744-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "bca70744-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.519308"], ["updated_at", "2015-06-03 00:01:51.519308"], ["token", "RnXAXmhfd7YGNiXLR9c9TQAT1ssU-cwglkjp2NVbxKI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bca70744-0983-11e5-8275-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:01:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"bca70744-0983-11e5-8275-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:51.523190') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "06094baf-58d8-4a2e-b815-5b404a4147fd"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:51.525558"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:51.526620"], ["id", "06094baf-58d8-4a2e-b815-5b404a4147fd"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bca70744-0983-11e5-8275-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bca5b434-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bca5b434-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bca70744-0983-11e5-8275-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bca70744-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bca70744-0983-11e5-8275-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.538561"], ["updated_at", "2015-06-03 00:01:51.538561"], ["token", "F-6WL7DSjg_HfYFFNMaFUIiUTM42h4l1WsV1eoKiI3s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a37e9c62-b5e1-4904-b0a8-4d381e986e0a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bcab937c-0983-11e5-8275-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bcab937c-0983-11e5-8275-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [a37e9c62-b5e1-4904-b0a8-4d381e986e0a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bcab937c-0983-11e5-8275-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [a37e9c62-b5e1-4904-b0a8-4d381e986e0a] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bca70744-0983-11e5-8275-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [a37e9c62-b5e1-4904-b0a8-4d381e986e0a] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [a37e9c62-b5e1-4904-b0a8-4d381e986e0a] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [a37e9c62-b5e1-4904-b0a8-4d381e986e0a] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [a37e9c62-b5e1-4904-b0a8-4d381e986e0a] Date: Tue, 02 Jun 2015 17:01:51 -0700 From: from@example.com To: email@example.com Message-ID: <556e43ef85516_e1293fc1018601f881067@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/F-6WL7DSjg_HfYFFNMaFUIiUTM42h4l1WsV1eoKiI3s?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a37e9c62-b5e1-4904-b0a8-4d381e986e0a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.43ms Completed 201 Created in 25ms (Views: 0.9ms | ActiveRecord: 3.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$GWASoikWR9ZTprpswGdkaO7SZdGst1f2a16llQU5Xap/f.9XFeeBe"], ["created_at", "2015-06-03 00:01:51.555683"], ["updated_at", "2015-06-03 00:01:51.555683"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:01:51.557846"], ["user_id", "bcae2b28-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.558695"], ["updated_at", "2015-06-03 00:01:51.558695"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:01:51.563308"], ["updated_at", "2015-06-03 00:01:51.563308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcae2b28-0983-11e5-8275-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'bcaf59ee-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcae2b28-0983-11e5-8275-a8667f0424ad"], ["organization_id", "bcaf59ee-0983-11e5-8275-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.567212"], ["updated_at", "2015-06-03 00:01:51.567212"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'bcaf59ee-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "bcaf59ee-0983-11e5-8275-a8667f0424ad"], ["created_at", "2015-06-03 00:01:51.573167"], ["updated_at", "2015-06-03 00:01:51.573167"], ["token", "IRlfx8zYUGwcLnjXK3tWL2EHD6Bwh0oWqysJyioQkFM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/bcaf59ee-0983-11e5-8275-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:01:51 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"bcaf59ee-0983-11e5-8275-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:01:51.576796') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7ca5c334-7557-4249-8763-a773eafff2c7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:01:51.578682"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:01:51.579609"], ["id", "7ca5c334-7557-4249-8763-a773eafff2c7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bcaf59ee-0983-11e5-8275-a8667f0424ad"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcae2b28-0983-11e5-8275-a8667f0424ad"]] Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bcae2b28-0983-11e5-8275-a8667f0424ad' LIMIT 1 [["organization_id", "bcaf59ee-0983-11e5-8275-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'bcaf59ee-0983-11e5-8275-a8667f0424ad') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "bcaf59ee-0983-11e5-8275-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:01:51.597029"], ["updated_at", "2015-06-03 00:01:51.597029"], ["token", "8Y83SXqOjxh0lgQGqYWXCxITWS4hvg6aPVL7zzBiu30"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5430fe1f-e946-435c-a4f3-f981f3b594d8) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bcb4a0f2-0983-11e5-8275-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bcb4a0f2-0983-11e5-8275-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [5430fe1f-e946-435c-a4f3-f981f3b594d8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bcb4a0f2-0983-11e5-8275-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [5430fe1f-e946-435c-a4f3-f981f3b594d8] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bcaf59ee-0983-11e5-8275-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [5430fe1f-e946-435c-a4f3-f981f3b594d8] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [5430fe1f-e946-435c-a4f3-f981f3b594d8] Clubhouse::Mailer#invitation: processed outbound mail in 7.9ms [ActiveJob] [ActionMailer::DeliveryJob] [5430fe1f-e946-435c-a4f3-f981f3b594d8] Sent mail to email@example.com (4.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [5430fe1f-e946-435c-a4f3-f981f3b594d8] Date: Tue, 02 Jun 2015 17:01:51 -0700 From: from@example.com To: email@example.com Message-ID: <556e43ef964a5_e1293fc1018601f88119a@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/8Y83SXqOjxh0lgQGqYWXCxITWS4hvg6aPVL7zzBiu30?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5430fe1f-e946-435c-a4f3-f981f3b594d8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 13.33ms Completed 201 Created in 43ms (Views: 1.2ms | ActiveRecord: 6.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$PtxWmYqdjYfJAH8ET8wGo.e09ie94P8ohBdAzTDBYFpgaAai1LG1S"], ["created_at", "2015-06-03 00:03:15.456120"], ["updated_at", "2015-06-03 00:03:15.456120"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:15.494046"], ["user_id", "eeb0c676-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.501224"], ["updated_at", "2015-06-03 00:03:15.501224"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:15.512526"], ["updated_at", "2015-06-03 00:03:15.512526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eeb0c676-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'eeb90070-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eeb0c676-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "eeb90070-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:15.528400"], ["updated_at", "2015-06-03 00:03:15.528400"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'eeb90070-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "eeb90070-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.549104"], ["updated_at", "2015-06-03 00:03:15.549104"], ["token", "6OizbS-jfpIMdLuwFU8sbnDgnXxGPdoG9BJb9ZYppKY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/eebea53e-0983-11e5-8f87-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:03:15 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"eebea53e-0983-11e5-8f87-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:15.578022') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "79ef669d-aaee-4101-a278-f602850294db"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:15.588845"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:15.590124"], ["id", "79ef669d-aaee-4101-a278-f602850294db"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "eebea53e-0983-11e5-8f87-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eeb0c676-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "eeb90070-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eeb0c676-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "eeb90070-0983-11e5-8f87-a8667f0424ad"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."id" != 'eebea53e-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = 'eeb90070-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:03:15.627613"], ["id", "eebea53e-0983-11e5-8f87-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 68ms (Views: 13.3ms | ActiveRecord: 4.2ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$1Ncuci6NZ2yDg4pNsuP3LeFhK/cF/LylB5n/VBGXf5KIWW7dtPshK"], ["created_at", "2015-06-03 00:03:15.660471"], ["updated_at", "2015-06-03 00:03:15.660471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:15.662554"], ["user_id", "eecf8d4a-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.663252"], ["updated_at", "2015-06-03 00:03:15.663252"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:15.670145"], ["updated_at", "2015-06-03 00:03:15.670145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eecf8d4a-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'eed10454-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eecf8d4a-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "eed10454-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:15.674545"], ["updated_at", "2015-06-03 00:03:15.674545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'eed10454-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "eed10454-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.679367"], ["updated_at", "2015-06-03 00:03:15.679367"], ["token", "Tzo_p4uffKxqzGKbAjLx7jxB_SCZKHHQPcLkpmudfwk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 17:03:15 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$vLUiwEet.6SUnbBSZ75.4uguJNIgNDJ9joqy8yJ3nkvTej7NTYo9a"], ["created_at", "2015-06-03 00:03:15.693201"], ["updated_at", "2015-06-03 00:03:15.693201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:15.695256"], ["user_id", "eed4858e-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.695856"], ["updated_at", "2015-06-03 00:03:15.695856"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:15.701874"], ["updated_at", "2015-06-03 00:03:15.701874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eed4858e-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'eed5de52-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eed4858e-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "eed5de52-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:15.709709"], ["updated_at", "2015-06-03 00:03:15.709709"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'eed5de52-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "eed5de52-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.719651"], ["updated_at", "2015-06-03 00:03:15.719651"], ["token", "YjydOC99G51WzHxtzX8nztcuvxBMoVC8jKMoZGRbd24"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$Zk/LjH/McHXBMswQc/WPW.qgwYTpLkRRzhR.mcZmBif5YsrzNfMYa"], ["created_at", "2015-06-03 00:03:15.728908"], ["updated_at", "2015-06-03 00:03:15.728908"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:15.736874"], ["updated_at", "2015-06-03 00:03:15.736874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eeda0fe0-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'eedb36b8-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eeda0fe0-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "eedb36b8-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.741935"], ["updated_at", "2015-06-03 00:03:15.741935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/eed5de52-0983-11e5-8f87-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:03:15 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"eed5de52-0983-11e5-8f87-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:15.747152') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ebe41f29-4a39-4102-801f-205d2708bbe4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:15.749257"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:15.750370"], ["id", "ebe41f29-4a39-4102-801f-205d2708bbe4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "eed5de52-0983-11e5-8f87-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eed4858e-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eed4858e-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "eed5de52-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "eed5de52-0983-11e5-8f87-a8667f0424ad"]] Completed 200 OK in 20ms (Views: 3.0ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$3MPKgtV7sJYbUsIbKRL/JOykg/ldAw63gTrmsMrLDktAuvVHRsf/e"], ["created_at", "2015-06-03 00:03:15.774187"], ["updated_at", "2015-06-03 00:03:15.774187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:15.777349"], ["user_id", "eee0e900-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.778057"], ["updated_at", "2015-06-03 00:03:15.778057"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:15.783866"], ["updated_at", "2015-06-03 00:03:15.783866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eee0e900-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'eee2595c-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eee0e900-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "eee2595c-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:15.787838"], ["updated_at", "2015-06-03 00:03:15.787838"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'eee2595c-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "eee2595c-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.794973"], ["updated_at", "2015-06-03 00:03:15.794973"], ["token", "mGTHJMHEtyyn9rBU_VCzxQq1yK9h2Q55O2_aIIFeFj8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$vQw80nm5ZxgyJUoui2H9dukGyUIcSjnovw/ebEO1.fZq.WhDvpXCa"], ["created_at", "2015-06-03 00:03:15.803150"], ["updated_at", "2015-06-03 00:03:15.803150"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:15.809324"], ["updated_at", "2015-06-03 00:03:15.809324"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eee55288-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'eee67e24-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eee55288-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "eee67e24-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.816394"], ["updated_at", "2015-06-03 00:03:15.816394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 17:03:15 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$q1bqICB3PGwHzJzD6XIrtu5uJ6F1ZZ61d9Bu/O7b.6GDfWqgnHCyW"], ["created_at", "2015-06-03 00:03:15.827868"], ["updated_at", "2015-06-03 00:03:15.827868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:15.829841"], ["user_id", "eee91346-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.831171"], ["updated_at", "2015-06-03 00:03:15.831171"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:15.836740"], ["updated_at", "2015-06-03 00:03:15.836740"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eee91346-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'eeea6976-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eee91346-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "eeea6976-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:15.840990"], ["updated_at", "2015-06-03 00:03:15.840990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'eeea6976-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "eeea6976-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.845644"], ["updated_at", "2015-06-03 00:03:15.845644"], ["token", "UvF--rSyPrqBYlEhFKM7l1RotL9i0MDp_6vHHMohvF0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:03:15 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$.BWXIU4P3sYmTpaSymJ6Kukb01/LAQDDa9iY4ClhtzIxgfkJSzdVi"], ["created_at", "2015-06-03 00:03:15.857702"], ["updated_at", "2015-06-03 00:03:15.857702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:15.870887"], ["user_id", "eeef48ce-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.872201"], ["updated_at", "2015-06-03 00:03:15.872201"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:15.877719"], ["updated_at", "2015-06-03 00:03:15.877719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eeef48ce-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'eef0ab74-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eeef48ce-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "eef0ab74-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:15.881825"], ["updated_at", "2015-06-03 00:03:15.881825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'eef0ab74-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "eef0ab74-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.887001"], ["updated_at", "2015-06-03 00:03:15.887001"], ["token", "sfapqnhw0S9FoZcNPd0of8IU_SNsh05rr5Kx5SskMWA"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:03:15 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:15.894665') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6d2f738d-51cb-4b23-bc98-d9226fb38d67"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:15.896771"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:15.897970"], ["id", "6d2f738d-51cb-4b23-bc98-d9226fb38d67"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eeef48ce-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eeef48ce-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "eef0ab74-0983-11e5-8f87-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'eef0ab74-0983-11e5-8f87-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 28ms (ActiveRecord: 2.5ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$3BXmThb6.QGMwHBowZXgJuZVleoMwR8w1jTA3VQGWuigyyHfbx2Ki"], ["created_at", "2015-06-03 00:03:15.936690"], ["updated_at", "2015-06-03 00:03:15.936690"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:15.941457"], ["user_id", "eefa01ce-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.942241"], ["updated_at", "2015-06-03 00:03:15.942241"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:15.947993"], ["updated_at", "2015-06-03 00:03:15.947993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eefa01ce-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'eefb76ee-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eefa01ce-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "eefb76ee-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:15.952633"], ["updated_at", "2015-06-03 00:03:15.952633"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'eefb76ee-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "eefb76ee-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:15.960456"], ["updated_at", "2015-06-03 00:03:15.960456"], ["token", "s9YUNldrJjdee8oTeo1JKDdzU0Yu7aVTQObEhC2buZI"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:03:15 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:15.965950') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "637aea6e-97af-405a-b1ac-f703d1cf8757"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:15.967741"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:15.968694"], ["id", "637aea6e-97af-405a-b1ac-f703d1cf8757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eefa01ce-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eefa01ce-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "eefb76ee-0983-11e5-8f87-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'eefb76ee-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "eefb76ee-0983-11e5-8f87-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:03:15.981229"], ["updated_at", "2015-06-03 00:03:15.981229"], ["token", "RKdVID3HE6Z2FcFU6J4cbZCGt1zbpT_8QVfN284fW1o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: acad35c6-a5e7-4e16-af0e-1cf1a5427863) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ef009016-0983-11e5-8f87-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ef009016-0983-11e5-8f87-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [acad35c6-a5e7-4e16-af0e-1cf1a5427863] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ef009016-0983-11e5-8f87-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [acad35c6-a5e7-4e16-af0e-1cf1a5427863] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "eefb76ee-0983-11e5-8f87-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [acad35c6-a5e7-4e16-af0e-1cf1a5427863] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (3.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [acad35c6-a5e7-4e16-af0e-1cf1a5427863] Clubhouse::Mailer#invitation: processed outbound mail in 344.3ms [ActiveJob] [ActionMailer::DeliveryJob] [acad35c6-a5e7-4e16-af0e-1cf1a5427863] Sent mail to email@example.com (24.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [acad35c6-a5e7-4e16-af0e-1cf1a5427863] Date: Tue, 02 Jun 2015 17:03:16 -0700 From: from@example.com To: email@example.com Message-ID: <556e44445cc60_e1593fd33a42020067954@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/RKdVID3HE6Z2FcFU6J4cbZCGt1zbpT_8QVfN284fW1o?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [acad35c6-a5e7-4e16-af0e-1cf1a5427863] Performed ActionMailer::DeliveryJob from Inline(mailers) in 369.53ms Completed 201 Created in 424ms (Views: 3.1ms | ActiveRecord: 3.3ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$Ka6JDLCfUhn62UDdGktyDO5nwmZcwz8APRf.gty5Lgl6Cxb2Iqhsy"], ["created_at", "2015-06-03 00:03:16.414799"], ["updated_at", "2015-06-03 00:03:16.414799"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:16.421681"], ["user_id", "ef430e1e-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.423066"], ["updated_at", "2015-06-03 00:03:16.423066"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (3.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:16.437154"], ["updated_at", "2015-06-03 00:03:16.437154"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (1.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (4.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef430e1e-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ef468738-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (16.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef430e1e-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "ef468738-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:16.465556"], ["updated_at", "2015-06-03 00:03:16.465556"]]  (48.4ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'ef468738-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "ef468738-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.574446"], ["updated_at", "2015-06-03 00:03:16.574446"], ["token", "IsP6m-yujB5OK6cnRmCZ9BoBhY2HAldAuSLOMitBwWI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:03:16 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:16.580617') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d68251a3-6b85-4629-8ea1-14d1e11d858d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:16.582676"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:16.583668"], ["id", "d68251a3-6b85-4629-8ea1-14d1e11d858d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (3.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef430e1e-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ef430e1e-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "ef468738-0983-11e5-8f87-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ef468738-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ef468738-0983-11e5-8f87-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:03:16.618066"], ["updated_at", "2015-06-03 00:03:16.618066"], ["token", "PiQnHH3P2KohBle8Y2RnP7Ia0GrtfhHlJ3AieUOLLBQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0eaaa93e-4ee1-4958-998f-b1223f975a61) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ef61bdc8-0983-11e5-8f87-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (1.8ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ef61bdc8-0983-11e5-8f87-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [0eaaa93e-4ee1-4958-998f-b1223f975a61] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ef61bdc8-0983-11e5-8f87-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [0eaaa93e-4ee1-4958-998f-b1223f975a61] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ef468738-0983-11e5-8f87-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [0eaaa93e-4ee1-4958-998f-b1223f975a61] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [0eaaa93e-4ee1-4958-998f-b1223f975a61] Clubhouse::Mailer#invitation: processed outbound mail in 4.2ms [ActiveJob] [ActionMailer::DeliveryJob] [0eaaa93e-4ee1-4958-998f-b1223f975a61] Sent mail to email@example.com (5.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [0eaaa93e-4ee1-4958-998f-b1223f975a61] Date: Tue, 02 Jun 2015 17:03:16 -0700 From: from@example.com To: email@example.com Message-ID: <556e44449ac9a_e1593fd33a42020068011@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/PiQnHH3P2KohBle8Y2RnP7Ia0GrtfhHlJ3AieUOLLBQ?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0eaaa93e-4ee1-4958-998f-b1223f975a61] Performed ActionMailer::DeliveryJob from Inline(mailers) in 10.53ms Completed 201 Created in 62ms (Views: 2.6ms | ActiveRecord: 9.1ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$04xOk9rGBaERSR9VWDJNnevg19YosARzapPo1rpZ/pq1eXbULilw6"], ["created_at", "2015-06-03 00:03:16.664587"], ["updated_at", "2015-06-03 00:03:16.664587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:16.669427"], ["user_id", "ef69248c-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.670756"], ["updated_at", "2015-06-03 00:03:16.670756"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:16.680617"], ["updated_at", "2015-06-03 00:03:16.680617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef69248c-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ef6b3de4-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef69248c-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "ef6b3de4-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:16.685773"], ["updated_at", "2015-06-03 00:03:16.685773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'ef6b3de4-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "ef6b3de4-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.691239"], ["updated_at", "2015-06-03 00:03:16.691239"], ["token", "BeqRF-0iaJf7vfdvTVuqgWjmowwQpHaoYPmhTXtkLJ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$Ouo3nPuDTNZDhHW8SaBYieoxYnysgWnRnlFxZGaH2ab1cTQ/236D6"], ["created_at", "2015-06-03 00:03:16.699285"], ["updated_at", "2015-06-03 00:03:16.699285"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:16.709421"], ["updated_at", "2015-06-03 00:03:16.709421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef6e3026-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ef6faf00-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ef6e3026-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "ef6faf00-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.715737"], ["updated_at", "2015-06-03 00:03:16.715737"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:03:16 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:16.731889') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1143684f-665e-48f3-a822-fda84813747f"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:16.733983"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:16.735401"], ["id", "1143684f-665e-48f3-a822-fda84813747f"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef69248c-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ef69248c-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "ef6b3de4-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Invitation Load (0.9ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "ef6b3de4-0983-11e5-8f87-a8667f0424ad"]] Completed 200 OK in 25ms (Views: 5.1ms | ActiveRecord: 4.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$ukcBP9mxc1KLIJ1r5qoHNOTwiGvc53VIzZBZ3OI4j.KaC.AlQMFVK"], ["created_at", "2015-06-03 00:03:16.766500"], ["updated_at", "2015-06-03 00:03:16.766500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:16.769047"], ["user_id", "ef785222-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.770127"], ["updated_at", "2015-06-03 00:03:16.770127"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:16.778976"], ["updated_at", "2015-06-03 00:03:16.778976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef785222-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ef7a3cb8-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef785222-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "ef7a3cb8-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:16.784139"], ["updated_at", "2015-06-03 00:03:16.784139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'ef7a3cb8-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "ef7a3cb8-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.789289"], ["updated_at", "2015-06-03 00:03:16.789289"], ["token", "p0Edp-PaNPfzvNMy0GJPzD3pa70SIPjM5TwDY1-bRAI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$s5znaJCGn.8ro4IP42WGtup4Qkfeghk7G7lrzBcRGrqsatAIDJ8om"], ["created_at", "2015-06-03 00:03:16.795871"], ["updated_at", "2015-06-03 00:03:16.795871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:16.802727"], ["updated_at", "2015-06-03 00:03:16.802727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef7ccd20-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ef7dd742-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ef7ccd20-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "ef7dd742-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.807550"], ["updated_at", "2015-06-03 00:03:16.807550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:03:16 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$gT1at00LfnSwP3FDe3sY6OWPRoxFQAnpn4oOXeYIwhqCJv4/8AbmK"], ["created_at", "2015-06-03 00:03:16.822838"], ["updated_at", "2015-06-03 00:03:16.822838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:16.825239"], ["user_id", "ef80ee3c-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.826143"], ["updated_at", "2015-06-03 00:03:16.826143"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:16.832190"], ["updated_at", "2015-06-03 00:03:16.832190"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef80ee3c-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ef8268e8-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef80ee3c-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "ef8268e8-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:16.844216"], ["updated_at", "2015-06-03 00:03:16.844216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'ef8268e8-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "ef8268e8-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.850746"], ["updated_at", "2015-06-03 00:03:16.850746"], ["token", "Z1p0WtN_qviKS5OPrm_BHm7pb_Qorq5PYFZfsoq5Pgo"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/ef852790-0983-11e5-8f87-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:03:16 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"ef852790-0983-11e5-8f87-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:16.855006') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "05e009b0-2e37-4432-88e8-3385facda922"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:16.856869"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:16.857783"], ["id", "05e009b0-2e37-4432-88e8-3385facda922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ef852790-0983-11e5-8f87-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef80ee3c-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ef8268e8-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ef80ee3c-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "ef8268e8-0983-11e5-8f87-a8667f0424ad"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "ef852790-0983-11e5-8f87-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$LnbB8XwSqMpvgdXazxOnSeJGy5UAcRe7xr4CeZXMBEditDyawTsHG"], ["created_at", "2015-06-03 00:03:16.876367"], ["updated_at", "2015-06-03 00:03:16.876367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:16.878712"], ["user_id", "ef891328-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.880100"], ["updated_at", "2015-06-03 00:03:16.880100"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:16.885351"], ["updated_at", "2015-06-03 00:03:16.885351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef891328-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ef8a6d2c-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef891328-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "ef8a6d2c-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:16.890658"], ["updated_at", "2015-06-03 00:03:16.890658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'ef8a6d2c-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "ef8a6d2c-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.897260"], ["updated_at", "2015-06-03 00:03:16.897260"], ["token", "gnoZeU3_PVyREdG3ZYiEmjK608g9gI3hAnEqZy5qfVA"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 17:03:16 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$4B/UmbXlo85x/DzfqProdO64krBRdGdFpe3hUYXqqpsy2entQGnFq"], ["created_at", "2015-06-03 00:03:16.912337"], ["updated_at", "2015-06-03 00:03:16.912337"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:16.914942"], ["user_id", "ef8e9e60-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.915853"], ["updated_at", "2015-06-03 00:03:16.915853"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:16.922331"], ["updated_at", "2015-06-03 00:03:16.922331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef8e9e60-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ef902ed8-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef8e9e60-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "ef902ed8-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:16.929340"], ["updated_at", "2015-06-03 00:03:16.929340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'ef902ed8-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "ef902ed8-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.935273"], ["updated_at", "2015-06-03 00:03:16.935273"], ["token", "SI5JrZwYtrbTkIzgk3UuLQzEGcBLyKI9XOTyLXVq7EE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 17:03:16 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$/Dw22mcJZChciV95HYx9NeixMTG22OU1RtAYG72RHVBfOK23mHV1e"], ["created_at", "2015-06-03 00:03:16.953288"], ["updated_at", "2015-06-03 00:03:16.953288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:16.956200"], ["user_id", "ef94ebc6-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.957109"], ["updated_at", "2015-06-03 00:03:16.957109"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:16.962983"], ["updated_at", "2015-06-03 00:03:16.962983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef94ebc6-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ef96491c-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef94ebc6-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "ef96491c-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:16.967779"], ["updated_at", "2015-06-03 00:03:16.967779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'ef96491c-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "ef96491c-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:16.972871"], ["updated_at", "2015-06-03 00:03:16.972871"], ["token", "soAblPlzzZNyBdYz8JGlabSyVbhh_TN2Iw1tzTIi4Wg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ef96491c-0983-11e5-8f87-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:03:16 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"ef96491c-0983-11e5-8f87-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:16.976415') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2b5f6f50-9568-4dcb-93a4-11d3027cc3e6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:16.978122"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:16.979333"], ["id", "2b5f6f50-9568-4dcb-93a4-11d3027cc3e6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ef96491c-0983-11e5-8f87-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef94ebc6-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ef94ebc6-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "ef96491c-0983-11e5-8f87-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'ef96491c-0983-11e5-8f87-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$Vie.XL98i6h0zcVQHsSkYOCK8opPkgkeZI3Rj5a0wkp42olGvq2JC"], ["created_at", "2015-06-03 00:03:17.001532"], ["updated_at", "2015-06-03 00:03:17.001532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:17.004680"], ["user_id", "ef9c4722-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:17.005562"], ["updated_at", "2015-06-03 00:03:17.005562"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:17.010216"], ["updated_at", "2015-06-03 00:03:17.010216"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef9c4722-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ef9d7782-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef9c4722-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "ef9d7782-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:17.015453"], ["updated_at", "2015-06-03 00:03:17.015453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'ef9d7782-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "ef9d7782-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:17.021656"], ["updated_at", "2015-06-03 00:03:17.021656"], ["token", "0khkodZAyul_40j6C-P9J7Nu08J056VcVE3OxTdPBnc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ef9d7782-0983-11e5-8f87-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:03:17 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"ef9d7782-0983-11e5-8f87-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:17.025498') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0b5e6adc-1eff-42d8-86f3-9ccf24185317"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:17.027540"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:17.028778"], ["id", "0b5e6adc-1eff-42d8-86f3-9ccf24185317"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ef9d7782-0983-11e5-8f87-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef9c4722-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ef9c4722-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "ef9d7782-0983-11e5-8f87-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ef9d7782-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ef9d7782-0983-11e5-8f87-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:03:17.040510"], ["updated_at", "2015-06-03 00:03:17.040510"], ["token", "1TUeLAwonyL7B1o2LstcT7eLFqqlgZFhdJMkElVfZpo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: dc470e09-bbee-45f0-b5cd-96cbc9f4d0b8) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/efa2257a-0983-11e5-8f87-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "efa2257a-0983-11e5-8f87-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [dc470e09-bbee-45f0-b5cd-96cbc9f4d0b8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/efa2257a-0983-11e5-8f87-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [dc470e09-bbee-45f0-b5cd-96cbc9f4d0b8] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ef9d7782-0983-11e5-8f87-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [dc470e09-bbee-45f0-b5cd-96cbc9f4d0b8] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [dc470e09-bbee-45f0-b5cd-96cbc9f4d0b8] Clubhouse::Mailer#invitation: processed outbound mail in 2.9ms [ActiveJob] [ActionMailer::DeliveryJob] [dc470e09-bbee-45f0-b5cd-96cbc9f4d0b8] Sent mail to email@example.com (2.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [dc470e09-bbee-45f0-b5cd-96cbc9f4d0b8] Date: Tue, 02 Jun 2015 17:03:17 -0700 From: from@example.com To: email@example.com Message-ID: <556e4445bfca_e1593fd33a420200681f3@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/1TUeLAwonyL7B1o2LstcT7eLFqqlgZFhdJMkElVfZpo?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [dc470e09-bbee-45f0-b5cd-96cbc9f4d0b8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.33ms Completed 201 Created in 28ms (Views: 2.0ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$z9QcvHuiPs29QqbF8xukAe5hFfbiJb7w13dZicScBMmn7e./mFP4a"], ["created_at", "2015-06-03 00:03:17.061726"], ["updated_at", "2015-06-03 00:03:17.061726"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:17.064294"], ["user_id", "efa558f8-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:17.065144"], ["updated_at", "2015-06-03 00:03:17.065144"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:17.071481"], ["updated_at", "2015-06-03 00:03:17.071481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'efa558f8-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'efa6e042-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "efa558f8-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "efa6e042-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:17.075861"], ["updated_at", "2015-06-03 00:03:17.075861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'efa6e042-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "efa6e042-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:17.081570"], ["updated_at", "2015-06-03 00:03:17.081570"], ["token", "b4OfVcSDHKt2TX6-buwIHwxEDw1ihwOd-8p625PoLPk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/efa6e042-0983-11e5-8f87-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:03:17 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"efa6e042-0983-11e5-8f87-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:17.086578') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "431d80d8-bec4-4264-a814-dea0b70e8fd9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:17.088367"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:17.089290"], ["id", "431d80d8-bec4-4264-a814-dea0b70e8fd9"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "efa6e042-0983-11e5-8f87-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "efa558f8-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'efa558f8-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "efa6e042-0983-11e5-8f87-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'efa6e042-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "efa6e042-0983-11e5-8f87-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:03:17.100559"], ["updated_at", "2015-06-03 00:03:17.100559"], ["token", "0EqsOtVDTigT0CeVX6FQM3FNosByszuV6Wlyz3GXaaE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 455e7eb4-55b5-442b-94f8-099222e8b5ea) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/efab690a-0983-11e5-8f87-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "efab690a-0983-11e5-8f87-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [455e7eb4-55b5-442b-94f8-099222e8b5ea] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/efab690a-0983-11e5-8f87-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [455e7eb4-55b5-442b-94f8-099222e8b5ea] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "efa6e042-0983-11e5-8f87-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [455e7eb4-55b5-442b-94f8-099222e8b5ea] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [455e7eb4-55b5-442b-94f8-099222e8b5ea] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [455e7eb4-55b5-442b-94f8-099222e8b5ea] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [455e7eb4-55b5-442b-94f8-099222e8b5ea] Date: Tue, 02 Jun 2015 17:03:17 -0700 From: from@example.com To: email@example.com Message-ID: <556e44451ab44_e1593fd33a420200682a2@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/0EqsOtVDTigT0CeVX6FQM3FNosByszuV6Wlyz3GXaaE?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [455e7eb4-55b5-442b-94f8-099222e8b5ea] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.47ms Completed 201 Created in 25ms (Views: 1.0ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$yYweKSpDjdBOEmAGHTXHFO5rpcIgz.OXfMBYm8N1thptiV662sJSC"], ["created_at", "2015-06-03 00:03:17.119683"], ["updated_at", "2015-06-03 00:03:17.119683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:17.121645"], ["user_id", "efae33c4-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:17.122459"], ["updated_at", "2015-06-03 00:03:17.122459"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:17.127124"], ["updated_at", "2015-06-03 00:03:17.127124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'efae33c4-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'efaf5bb4-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "efae33c4-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "efaf5bb4-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:17.131644"], ["updated_at", "2015-06-03 00:03:17.131644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'efaf5bb4-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "efaf5bb4-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:17.137616"], ["updated_at", "2015-06-03 00:03:17.137616"], ["token", "Y4wINoZ7TpTfQ939VLeHRgvTaR1qTIqP8U6lJ1mAYec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/efb0f488-0983-11e5-8f87-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:03:17 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"efb0f488-0983-11e5-8f87-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:03:17.141911') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c3889894-e835-4297-b492-e6d7f4707fa6"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:03:17.143843"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:03:17.144800"], ["id", "c3889894-e835-4297-b492-e6d7f4707fa6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "efb0f488-0983-11e5-8f87-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "efae33c4-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "efaf5bb4-0983-11e5-8f87-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'efae33c4-0983-11e5-8f87-a8667f0424ad' LIMIT 1 [["organization_id", "efaf5bb4-0983-11e5-8f87-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 1.5ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$EzkFUw442U9JwbvCpxkuKu3WB6MKrzSKZwmMUjTGMrXnja/AvceXq"], ["created_at", "2015-06-03 00:03:17.162022"], ["updated_at", "2015-06-03 00:03:17.162022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:03:17.163817"], ["user_id", "efb4a57e-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:17.164677"], ["updated_at", "2015-06-03 00:03:17.164677"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:03:17.174275"], ["updated_at", "2015-06-03 00:03:17.174275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'efb4a57e-0983-11e5-8f87-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'efb68b1e-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "efb4a57e-0983-11e5-8f87-a8667f0424ad"], ["organization_id", "efb68b1e-0983-11e5-8f87-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:03:17.178856"], ["updated_at", "2015-06-03 00:03:17.178856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'efb68b1e-0983-11e5-8f87-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "efb68b1e-0983-11e5-8f87-a8667f0424ad"], ["created_at", "2015-06-03 00:03:17.185417"], ["updated_at", "2015-06-03 00:03:17.185417"], ["token", "Xz8Gia3HZr9uJvJeMSJwlerIyw15iEY26_w6Rt1t5hQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 17:03:17 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$x5wiwPBaMla6RQr4aIZAEeqneSfs18ZNfSQSWBcsNqZDubxOVUULC"], ["created_at", "2015-06-03 00:07:11.692616"], ["updated_at", "2015-06-03 00:07:11.692616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:11.729351"], ["user_id", "7b7fa270-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:11.736934"], ["updated_at", "2015-06-03 00:07:11.736934"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:11.752474"], ["updated_at", "2015-06-03 00:07:11.752474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b7fa270-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b88f8de-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b7fa270-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7b88f8de-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:11.776756"], ["updated_at", "2015-06-03 00:07:11.776756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '7b88f8de-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "7b88f8de-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:11.791257"], ["updated_at", "2015-06-03 00:07:11.791257"], ["token", "4w53loinm-JuQsXgvFiHamj-QghmEsxnHQ5bR6FORqc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:07:11 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$7KBH6UTcvCHdUbwAQq49J.RTORcy40mMYCqt5bNr.YZyLUWo7tT6a"], ["created_at", "2015-06-03 00:07:11.825674"], ["updated_at", "2015-06-03 00:07:11.825674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:11.829233"], ["user_id", "7b939f14-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:11.830396"], ["updated_at", "2015-06-03 00:07:11.830396"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:11.836794"], ["updated_at", "2015-06-03 00:07:11.836794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b939f14-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b953194-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b939f14-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7b953194-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:11.841453"], ["updated_at", "2015-06-03 00:07:11.841453"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '7b953194-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "7b953194-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:11.847370"], ["updated_at", "2015-06-03 00:07:11.847370"], ["token", "ozeLdMBM-66Tojpc6sSvOmt8in25HkIDUcpXkfQhU0o"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:11 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:11.854630') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1b3315c4-4367-40c3-8de2-4e79ae54659d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:11.864431"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:11.865989"], ["id", "1b3315c4-4367-40c3-8de2-4e79ae54659d"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b939f14-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b939f14-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7b953194-0984-11e5-99eb-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '7b953194-0984-11e5-99eb-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 61ms (ActiveRecord: 4.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$sJ.BE0XqGZ0PJ8wB8Cz5r.DwhWi36rkz.UALb10yVY2u/pSsBC6Qa"], ["created_at", "2015-06-03 00:07:11.924177"], ["updated_at", "2015-06-03 00:07:11.924177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:11.926884"], ["user_id", "7ba2903c-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:11.927767"], ["updated_at", "2015-06-03 00:07:11.927767"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:11.932474"], ["updated_at", "2015-06-03 00:07:11.932474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ba2903c-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7ba3c25e-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ba2903c-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7ba3c25e-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:11.937159"], ["updated_at", "2015-06-03 00:07:11.937159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '7ba3c25e-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "7ba3c25e-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:11.943396"], ["updated_at", "2015-06-03 00:07:11.943396"], ["token", "gmsOvl1R34Xb7GV2_lY8CYBev3oFTQM0FNP1h4uJZAk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:11 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:11.947981') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "87a58368-498e-43e6-a0e4-944f09b73243"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:11.949615"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:11.950563"], ["id", "87a58368-498e-43e6-a0e4-944f09b73243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7ba2903c-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ba2903c-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7ba3c25e-0984-11e5-99eb-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7ba3c25e-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "7ba3c25e-0984-11e5-99eb-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:11.964678"], ["updated_at", "2015-06-03 00:07:11.964678"], ["token", "ZelH2vmJTRoqvCy-jiqj3xwP2Z_4EiBfa3C1j_Zpb8Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: f9fe2796-75ce-466e-90a8-8bd4139460d4) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7ba8c222-0984-11e5-99eb-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7ba8c222-0984-11e5-99eb-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [f9fe2796-75ce-466e-90a8-8bd4139460d4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7ba8c222-0984-11e5-99eb-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [f9fe2796-75ce-466e-90a8-8bd4139460d4] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7ba3c25e-0984-11e5-99eb-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [f9fe2796-75ce-466e-90a8-8bd4139460d4] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [f9fe2796-75ce-466e-90a8-8bd4139460d4] Clubhouse::Mailer#invitation: processed outbound mail in 224.2ms [ActiveJob] [ActionMailer::DeliveryJob] [f9fe2796-75ce-466e-90a8-8bd4139460d4] Sent mail to email@example.com (11.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [f9fe2796-75ce-466e-90a8-8bd4139460d4] Date: Tue, 02 Jun 2015 17:07:12 -0700 From: from@example.com To: email@example.com Message-ID: <556e453039c1d_e1a43fdc304601f86384@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/ZelH2vmJTRoqvCy-jiqj3xwP2Z_4EiBfa3C1j_Zpb8Y?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [f9fe2796-75ce-466e-90a8-8bd4139460d4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 236.52ms Completed 201 Created in 307ms (Views: 13.4ms | ActiveRecord: 4.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$zs.W/BWI3tzbriB7Xe/GXeKu3dRNNJwYxC1SH0qTCU7FiB3djTpgW"], ["created_at", "2015-06-03 00:07:12.267704"], ["updated_at", "2015-06-03 00:07:12.267704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.269959"], ["user_id", "7bd6f408-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.271926"], ["updated_at", "2015-06-03 00:07:12.271926"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.277700"], ["updated_at", "2015-06-03 00:07:12.277700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bd6f408-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7bd870da-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bd6f408-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7bd870da-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.281185"], ["updated_at", "2015-06-03 00:07:12.281185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '7bd870da-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "7bd870da-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.286554"], ["updated_at", "2015-06-03 00:07:12.286554"], ["token", "bSTu1cbXYPNSFD_JK21fAsFh0eyrp1bjC-GdtHlb6lY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:12.291220') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b4f27182-34dc-4202-bd31-d405a68452e0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:12.292910"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:12.293879"], ["id", "b4f27182-34dc-4202-bd31-d405a68452e0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7bd6f408-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7bd6f408-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7bd870da-0984-11e5-99eb-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7bd870da-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "7bd870da-0984-11e5-99eb-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.303807"], ["updated_at", "2015-06-03 00:07:12.303807"], ["token", "jLfvGY4YIEmD1vm9UOaQhwMyYw57w1jXeeNWmj9Vi2Y"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 06409947-8531-48a0-a4e0-c1f626e16364) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7bdc80d0-0984-11e5-99eb-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7bdc80d0-0984-11e5-99eb-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [06409947-8531-48a0-a4e0-c1f626e16364] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7bdc80d0-0984-11e5-99eb-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [06409947-8531-48a0-a4e0-c1f626e16364] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7bd870da-0984-11e5-99eb-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [06409947-8531-48a0-a4e0-c1f626e16364] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [06409947-8531-48a0-a4e0-c1f626e16364] Clubhouse::Mailer#invitation: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [06409947-8531-48a0-a4e0-c1f626e16364] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [06409947-8531-48a0-a4e0-c1f626e16364] Date: Tue, 02 Jun 2015 17:07:12 -0700 From: from@example.com To: email@example.com Message-ID: <556e45304ce8a_e1a43fdc304601f86448@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/jLfvGY4YIEmD1vm9UOaQhwMyYw57w1jXeeNWmj9Vi2Y?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [06409947-8531-48a0-a4e0-c1f626e16364] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.77ms Completed 201 Created in 27ms (Views: 1.3ms | ActiveRecord: 4.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$lHvTYVIb3yGnNinhemuSmOGW4AFO7eo9yN5IX4Q8z9AhzXAmh4JCC"], ["created_at", "2015-06-03 00:07:12.330074"], ["updated_at", "2015-06-03 00:07:12.330074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.332627"], ["user_id", "7be083e2-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.333404"], ["updated_at", "2015-06-03 00:07:12.333404"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.338166"], ["updated_at", "2015-06-03 00:07:12.338166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7be083e2-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7be1b988-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7be083e2-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7be1b988-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.343164"], ["updated_at", "2015-06-03 00:07:12.343164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '7be1b988-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "7be1b988-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.349934"], ["updated_at", "2015-06-03 00:07:12.349934"], ["token", "Euc7Y0mbBQr9cGEM4ryi4DTreqds26HNE8EofpMpvyQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/7be38060-0984-11e5-99eb-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"7be38060-0984-11e5-99eb-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:12.354188') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7f9c0b4b-933e-4f43-80ad-ce182725d170"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:12.356062"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:12.357050"], ["id", "7f9c0b4b-933e-4f43-80ad-ce182725d170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7be38060-0984-11e5-99eb-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7be083e2-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7be1b988-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7be083e2-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7be1b988-0984-11e5-99eb-a8667f0424ad"]] Unpermitted parameters: id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."id" != '7be38060-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = '7be1b988-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.8ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:07:12.371551"], ["id", "7be38060-0984-11e5-99eb-a8667f0424ad"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 24ms (Views: 1.6ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$LbmgPDic.GcXghRArNxYqunzfC6kkY7FbIinBi.KPz9tapTtMWpY2"], ["created_at", "2015-06-03 00:07:12.388520"], ["updated_at", "2015-06-03 00:07:12.388520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.391004"], ["user_id", "7be96fe8-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.392460"], ["updated_at", "2015-06-03 00:07:12.392460"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.398590"], ["updated_at", "2015-06-03 00:07:12.398590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7be96fe8-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7beaea58-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7be96fe8-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7beaea58-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.402757"], ["updated_at", "2015-06-03 00:07:12.402757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '7beaea58-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "7beaea58-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.407782"], ["updated_at", "2015-06-03 00:07:12.407782"], ["token", "bqN13cjLRCCGbgLZIAOwwGcqpmUFd6eZazrEFN8mD0E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$GugjK32ppk1ZASYFnKRnCeKQzePGqdialPgBzLmMawELkockHb.NC"], ["created_at", "2015-06-03 00:07:12.421927"], ["updated_at", "2015-06-03 00:07:12.421927"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.424583"], ["user_id", "7bee7cb8-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.426053"], ["updated_at", "2015-06-03 00:07:12.426053"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.431714"], ["updated_at", "2015-06-03 00:07:12.431714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bee7cb8-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7beff228-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bee7cb8-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7beff228-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.435356"], ["updated_at", "2015-06-03 00:07:12.435356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '7beff228-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "7beff228-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.442738"], ["updated_at", "2015-06-03 00:07:12.442738"], ["token", "VtmJGM_8k54WZtJb24xwVmtAd0uHqu49X_namQyyenk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$CDKP6P6uSn/TN1WJmy2z5.VQn0Mg5.TOXhC1SXxVjnKlYUJRz/OLS"], ["created_at", "2015-06-03 00:07:12.449814"], ["updated_at", "2015-06-03 00:07:12.449814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.456897"], ["updated_at", "2015-06-03 00:07:12.456897"]]  (2.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bf2b60c-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7bf3db72-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7bf2b60c-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7bf3db72-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.466353"], ["updated_at", "2015-06-03 00:07:12.466353"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:12.472201') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5016bed2-b220-49fd-9cf8-bb27a86da9e2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:12.474781"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:12.476722"], ["id", "5016bed2-b220-49fd-9cf8-bb27a86da9e2"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7bee7cb8-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7bee7cb8-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7beff228-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "7beff228-0984-11e5-99eb-a8667f0424ad"]] Completed 200 OK in 20ms (Views: 3.5ms | ActiveRecord: 2.9ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$LoYMx.O3E/jdDbeGy7cQOeojquAU1PZpuZsO1NoNiUThcSJCDfFuq"], ["created_at", "2015-06-03 00:07:12.504572"], ["updated_at", "2015-06-03 00:07:12.504572"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.507517"], ["user_id", "7bfb2044-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.508783"], ["updated_at", "2015-06-03 00:07:12.508783"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.517473"], ["updated_at", "2015-06-03 00:07:12.517473"]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bfb2044-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7bfd1b4c-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bfb2044-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7bfd1b4c-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.525867"], ["updated_at", "2015-06-03 00:07:12.525867"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '7bfd1b4c-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "7bfd1b4c-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.534550"], ["updated_at", "2015-06-03 00:07:12.534550"], ["token", "ULSOyxYyN94RW-LbGIg6cB9ZNenUk8yM-LQMyqAUcek"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$oxjHHqdkpw8DmXWdrGS6tezeZpQ54LrM4WtTCwHLi/kSkDgWfJ602"], ["created_at", "2015-06-03 00:07:12.544444"], ["updated_at", "2015-06-03 00:07:12.544444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.549711"], ["updated_at", "2015-06-03 00:07:12.549711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c012f20-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c020652-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7c012f20-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c020652-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.554160"], ["updated_at", "2015-06-03 00:07:12.554160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$1FLt20MBNCIBlxtmiDncUuOSj5sevLIctTI4Xpaf8917qSg8oYOnu"], ["created_at", "2015-06-03 00:07:12.566042"], ["updated_at", "2015-06-03 00:07:12.566042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.568390"], ["user_id", "7c047d42-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.569264"], ["updated_at", "2015-06-03 00:07:12.569264"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.576018"], ["updated_at", "2015-06-03 00:07:12.576018"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c047d42-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c060a2c-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c047d42-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c060a2c-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.581733"], ["updated_at", "2015-06-03 00:07:12.581733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '7c060a2c-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "7c060a2c-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.587394"], ["updated_at", "2015-06-03 00:07:12.587394"], ["token", "CRR8Ip_M3aW5Nnn-Vi5L4NtKNCBVceoh0ZW4U3EgBio"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$yu5dh/eRT5cZ0VCNGMFr7OWzQWNx4UYsuCcGdJOOadswP8rQleSUq"], ["created_at", "2015-06-03 00:07:12.593258"], ["updated_at", "2015-06-03 00:07:12.593258"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.600802"], ["updated_at", "2015-06-03 00:07:12.600802"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c08a098-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c09c72a-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7c08a098-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c09c72a-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.608470"], ["updated_at", "2015-06-03 00:07:12.608470"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7c060a2c-0984-11e5-99eb-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"7c060a2c-0984-11e5-99eb-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:12.613390') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d401afab-37d7-4ae2-985e-2cc18d5fc1d9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:12.615476"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:12.616568"], ["id", "d401afab-37d7-4ae2-985e-2cc18d5fc1d9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7c060a2c-0984-11e5-99eb-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c047d42-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c047d42-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7c060a2c-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "7c060a2c-0984-11e5-99eb-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$S3Xfx3VEsITDb33xE4ip6upb8ygWbMZeYj8KG42IYUEJVyYaqvIu2"], ["created_at", "2015-06-03 00:07:12.634776"], ["updated_at", "2015-06-03 00:07:12.634776"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.636933"], ["user_id", "7c0ef04c-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.638286"], ["updated_at", "2015-06-03 00:07:12.638286"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.643490"], ["updated_at", "2015-06-03 00:07:12.643490"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c0ef04c-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c1041e0-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c0ef04c-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c1041e0-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.648467"], ["updated_at", "2015-06-03 00:07:12.648467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '7c1041e0-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "7c1041e0-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.654008"], ["updated_at", "2015-06-03 00:07:12.654008"], ["token", "u7eRNttwdGrcO45mhY-wltVkEjuXeMlK5NykgK-WtCk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$RGbxT6UNaoTQQ6pd7DQxgeVR.vS3ncq1dnysFwlPK2wV.IA1mRtWa"], ["created_at", "2015-06-03 00:07:12.661417"], ["updated_at", "2015-06-03 00:07:12.661417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.668766"], ["updated_at", "2015-06-03 00:07:12.668766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c131ae6-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c1422d8-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7c131ae6-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c1422d8-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.674837"], ["updated_at", "2015-06-03 00:07:12.674837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$cTsOdxXjQ.uv/qCdfg4y8ekeAtPRuz/7D6N59Z/kC5v1NZAPuHMsC"], ["created_at", "2015-06-03 00:07:12.687154"], ["updated_at", "2015-06-03 00:07:12.687154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.689346"], ["user_id", "7c16f0c6-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.690142"], ["updated_at", "2015-06-03 00:07:12.690142"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.695695"], ["updated_at", "2015-06-03 00:07:12.695695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c16f0c6-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c183b66-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c16f0c6-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c183b66-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.700913"], ["updated_at", "2015-06-03 00:07:12.700913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '7c183b66-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "7c183b66-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.706938"], ["updated_at", "2015-06-03 00:07:12.706938"], ["token", "93HvlqtfJ9NnuawHpy_4KoFZNAwhi_wwS0a_o4Xt7x8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$uBwzkZQnU5hySeXatnzV2OxmUiQjcBZ2WPX907pdP51Ry0Z7wuAQu"], ["created_at", "2015-06-03 00:07:12.723884"], ["updated_at", "2015-06-03 00:07:12.723884"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.730177"], ["user_id", "7c1cb8e4-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.731891"], ["updated_at", "2015-06-03 00:07:12.731891"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.739169"], ["updated_at", "2015-06-03 00:07:12.739169"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c1cb8e4-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c1f3236-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c1cb8e4-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c1f3236-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.750877"], ["updated_at", "2015-06-03 00:07:12.750877"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (5.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '7c1f3236-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "7c1f3236-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.775777"], ["updated_at", "2015-06-03 00:07:12.775777"], ["token", "5OeNZNXEOGJQZHdReC9VT6ny5O9T3zn4VJfjBcTAvNk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7c1f3236-0984-11e5-99eb-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"7c1f3236-0984-11e5-99eb-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:12.799660') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "135e36eb-8a26-4b4b-9e13-98d51c5dd7db"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:12.816826"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:12.817836"], ["id", "135e36eb-8a26-4b4b-9e13-98d51c5dd7db"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7c1f3236-0984-11e5-99eb-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c1cb8e4-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c1cb8e4-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7c1f3236-0984-11e5-99eb-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '7c1f3236-0984-11e5-99eb-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 36ms (ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$FMTF9kQ9rTBwxe554vRHfO9b/N/EymsAmYw.7ARa9L90Lj/LY1Fca"], ["created_at", "2015-06-03 00:07:12.862896"], ["updated_at", "2015-06-03 00:07:12.862896"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.865638"], ["user_id", "7c31c446-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.866667"], ["updated_at", "2015-06-03 00:07:12.866667"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.872700"], ["updated_at", "2015-06-03 00:07:12.872700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c31c446-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c33462c-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c31c446-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c33462c-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.876818"], ["updated_at", "2015-06-03 00:07:12.876818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '7c33462c-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "7c33462c-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.882686"], ["updated_at", "2015-06-03 00:07:12.882686"], ["token", "Ywno867AfkLxkYDI0LkPaVWxHOxbweVrFhOIXnMWiRE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7c33462c-0984-11e5-99eb-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"7c33462c-0984-11e5-99eb-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:12.886469') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f724e6b8-9640-4973-8f86-b9abc9387700"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:12.888132"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:12.889154"], ["id", "f724e6b8-9640-4973-8f86-b9abc9387700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7c33462c-0984-11e5-99eb-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c31c446-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c31c446-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7c33462c-0984-11e5-99eb-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7c33462c-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "7c33462c-0984-11e5-99eb-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.899856"], ["updated_at", "2015-06-03 00:07:12.899856"], ["token", "qf_nmAT9vYZczHj741Y6O6UbAboYD1OdNz_1AQ-L5Rs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 5d51d689-c67e-4b67-9623-80f566951b16) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c376f2c-0984-11e5-99eb-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c376f2c-0984-11e5-99eb-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [5d51d689-c67e-4b67-9623-80f566951b16] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c376f2c-0984-11e5-99eb-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [5d51d689-c67e-4b67-9623-80f566951b16] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c33462c-0984-11e5-99eb-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [5d51d689-c67e-4b67-9623-80f566951b16] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [5d51d689-c67e-4b67-9623-80f566951b16] Clubhouse::Mailer#invitation: processed outbound mail in 3.9ms [ActiveJob] [ActionMailer::DeliveryJob] [5d51d689-c67e-4b67-9623-80f566951b16] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [5d51d689-c67e-4b67-9623-80f566951b16] Date: Tue, 02 Jun 2015 17:07:12 -0700 From: from@example.com To: email@example.com Message-ID: <556e4530de132_e1a43fdc304601f8653b@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/qf_nmAT9vYZczHj741Y6O6UbAboYD1OdNz_1AQ-L5Rs?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [5d51d689-c67e-4b67-9623-80f566951b16] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.94ms Completed 201 Created in 25ms (Views: 0.7ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$N1Z8KTAzAWJqiypsqvXfp..6dEy2JyFXvlbm5hmzTAKG1PvhJkp6e"], ["created_at", "2015-06-03 00:07:12.918575"], ["updated_at", "2015-06-03 00:07:12.918575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.920368"], ["user_id", "7c3a3cd4-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.921572"], ["updated_at", "2015-06-03 00:07:12.921572"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.926859"], ["updated_at", "2015-06-03 00:07:12.926859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c3a3cd4-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c3b8378-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c3a3cd4-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c3b8378-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.931479"], ["updated_at", "2015-06-03 00:07:12.931479"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '7c3b8378-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "7c3b8378-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.936956"], ["updated_at", "2015-06-03 00:07:12.936956"], ["token", "T8QPLhKAxl46VeMgrQrJ_8V4hcuOFTAGY-dHmOaukGE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7c3b8378-0984-11e5-99eb-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"7c3b8378-0984-11e5-99eb-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:12.941114') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9b0701f4-04ab-4898-8a4b-76d1a65b57a1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:12.942476"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:12.943265"], ["id", "9b0701f4-04ab-4898-8a4b-76d1a65b57a1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7c3b8378-0984-11e5-99eb-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c3a3cd4-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c3a3cd4-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7c3b8378-0984-11e5-99eb-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7c3b8378-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "7c3b8378-0984-11e5-99eb-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.953085"], ["updated_at", "2015-06-03 00:07:12.953085"], ["token", "4h3aZL7gAUzoLgoi6bc67Q6OtBp9Vde5R2rtGy9Rkq0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 25a55925-44ef-465c-9b77-3c430bfcc42d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c3f9094-0984-11e5-99eb-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c3f9094-0984-11e5-99eb-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [25a55925-44ef-465c-9b77-3c430bfcc42d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c3f9094-0984-11e5-99eb-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [25a55925-44ef-465c-9b77-3c430bfcc42d] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c3b8378-0984-11e5-99eb-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [25a55925-44ef-465c-9b77-3c430bfcc42d] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [25a55925-44ef-465c-9b77-3c430bfcc42d] Clubhouse::Mailer#invitation: processed outbound mail in 3.0ms [ActiveJob] [ActionMailer::DeliveryJob] [25a55925-44ef-465c-9b77-3c430bfcc42d] Sent mail to email@example.com (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [25a55925-44ef-465c-9b77-3c430bfcc42d] Date: Tue, 02 Jun 2015 17:07:12 -0700 From: from@example.com To: email@example.com Message-ID: <556e4530eb4a7_e1a43fdc304601f866d8@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/4h3aZL7gAUzoLgoi6bc67Q6OtBp9Vde5R2rtGy9Rkq0?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [25a55925-44ef-465c-9b77-3c430bfcc42d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.6ms Completed 201 Created in 25ms (Views: 1.1ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$JKeqPlyEzREIlq.vn8TrLOsyCSyGN8G9QA.JI1zqDPFjIb99DorDG"], ["created_at", "2015-06-03 00:07:12.974323"], ["updated_at", "2015-06-03 00:07:12.974323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:12.975994"], ["user_id", "7c42bc1a-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.976898"], ["updated_at", "2015-06-03 00:07:12.976898"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:12.983245"], ["updated_at", "2015-06-03 00:07:12.983245"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c42bc1a-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c4424ce-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c42bc1a-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c4424ce-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:12.989224"], ["updated_at", "2015-06-03 00:07:12.989224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '7c4424ce-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "7c4424ce-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:12.993851"], ["updated_at", "2015-06-03 00:07:12.993851"], ["token", "y6gC9y7fXcH_AijBVnp86VJ0hiEl80FpMcwf5OWU9Yg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/7c45b71c-0984-11e5-99eb-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:07:12 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"7c45b71c-0984-11e5-99eb-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:12.996957') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c9761915-d58c-463a-9bae-1bbe88cc8905"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:12.998512"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:12.999709"], ["id", "c9761915-d58c-463a-9bae-1bbe88cc8905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c45b71c-0984-11e5-99eb-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c42bc1a-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c4424ce-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c42bc1a-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7c4424ce-0984-11e5-99eb-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$Phs//e0ZT1tKdNv/6GH3veYbjGYgQUBKBt1uyfsYnYCTNM9SvjDWq"], ["created_at", "2015-06-03 00:07:13.017421"], ["updated_at", "2015-06-03 00:07:13.017421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:13.019848"], ["user_id", "7c495cf0-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:13.020773"], ["updated_at", "2015-06-03 00:07:13.020773"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:13.028424"], ["updated_at", "2015-06-03 00:07:13.028424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c495cf0-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c4afefc-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c495cf0-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c4afefc-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:13.032956"], ["updated_at", "2015-06-03 00:07:13.032956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '7c4afefc-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "7c4afefc-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:13.038738"], ["updated_at", "2015-06-03 00:07:13.038738"], ["token", "iXHOy1Y-XZ0TDQE4KAV37NHYoX_PQ8HqLBjOhZ4x-v4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 17:07:13 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$Ypj1ZINMU9./XfZy93N1kut.0rYySdAQdYCtL.9XTsplVJz.IpMx."], ["created_at", "2015-06-03 00:07:13.048641"], ["updated_at", "2015-06-03 00:07:13.048641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:13.050927"], ["user_id", "7c4e1768-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:13.051915"], ["updated_at", "2015-06-03 00:07:13.051915"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:13.058824"], ["updated_at", "2015-06-03 00:07:13.058824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c4e1768-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c4fa34e-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c4e1768-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c4fa34e-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:13.062556"], ["updated_at", "2015-06-03 00:07:13.062556"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '7c4fa34e-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "7c4fa34e-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:13.067656"], ["updated_at", "2015-06-03 00:07:13.067656"], ["token", "k4KGxJ79yNrAzwXJHAfm5rjEX-1U_wJsUHvewG93ggE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/7c50fb40-0984-11e5-99eb-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:07:13 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"7c50fb40-0984-11e5-99eb-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:13.071856') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "35dd97af-b6ff-412b-bcba-2eb45a3207e8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:13.075596"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:13.076644"], ["id", "35dd97af-b6ff-412b-bcba-2eb45a3207e8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c50fb40-0984-11e5-99eb-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c4e1768-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c4fa34e-0984-11e5-99eb-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c4e1768-0984-11e5-99eb-a8667f0424ad' LIMIT 1 [["organization_id", "7c4fa34e-0984-11e5-99eb-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7c50fb40-0984-11e5-99eb-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$hq1rdw3rfT8yheGVvl1y8uWCwaJVgXWsZNd9CYpL2wl3H/dgTZrKK"], ["created_at", "2015-06-03 00:07:13.092172"], ["updated_at", "2015-06-03 00:07:13.092172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:13.094017"], ["user_id", "7c54bb36-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:13.094669"], ["updated_at", "2015-06-03 00:07:13.094669"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:13.100024"], ["updated_at", "2015-06-03 00:07:13.100024"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c54bb36-0984-11e5-99eb-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c55f956-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c54bb36-0984-11e5-99eb-a8667f0424ad"], ["organization_id", "7c55f956-0984-11e5-99eb-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:13.105664"], ["updated_at", "2015-06-03 00:07:13.105664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '7c55f956-0984-11e5-99eb-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "7c55f956-0984-11e5-99eb-a8667f0424ad"], ["created_at", "2015-06-03 00:07:13.112708"], ["updated_at", "2015-06-03 00:07:13.112708"], ["token", "uZZ_ACO8QOeD_mZbONeWhLoQBz6uUgL0K43XdpYp5A8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 17:07:13 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$OaqnvR2BeiipBBPH2wnv8OwcEOJd7T16DGokMxJ4uI0haH2OmSfSG"], ["created_at", "2015-06-03 00:07:24.680624"], ["updated_at", "2015-06-03 00:07:24.680624"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:24.723814"], ["user_id", "833d723a-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:24.730494"], ["updated_at", "2015-06-03 00:07:24.730494"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:24.750521"], ["updated_at", "2015-06-03 00:07:24.750521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '833d723a-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8347d25c-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "833d723a-0984-11e5-9642-a8667f0424ad"], ["organization_id", "8347d25c-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:24.775205"], ["updated_at", "2015-06-03 00:07:24.775205"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8347d25c-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "8347d25c-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:24.806744"], ["updated_at", "2015-06-03 00:07:24.806744"], ["token", "-7vL0zraafK1KOJt3BSDjVeAQlLTpB08IXHKFxRkplQ"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/8350be26-0984-11e5-9642-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:07:24 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"8350be26-0984-11e5-9642-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:24.844328') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6df35e96-a9e4-4bc5-9e7b-74aad31ad6fa"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:24.853210"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:24.854674"], ["id", "6df35e96-a9e4-4bc5-9e7b-74aad31ad6fa"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8350be26-0984-11e5-9642-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "833d723a-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8347d25c-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '833d723a-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "8347d25c-0984-11e5-9642-a8667f0424ad"]] Completed 200 OK in 49ms (Views: 11.9ms | ActiveRecord: 2.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$F27rA9fByhhQIPIV6mUwguG41KmT/zTOIb14lJuTHsPwlUqD2dVkO"], ["created_at", "2015-06-03 00:07:24.911611"], ["updated_at", "2015-06-03 00:07:24.911611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:24.913402"], ["user_id", "83603a36-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:24.914047"], ["updated_at", "2015-06-03 00:07:24.914047"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:24.920674"], ["updated_at", "2015-06-03 00:07:24.920674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83603a36-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8361c7a2-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83603a36-0984-11e5-9642-a8667f0424ad"], ["organization_id", "8361c7a2-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:24.929582"], ["updated_at", "2015-06-03 00:07:24.929582"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '8361c7a2-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "8361c7a2-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:24.942003"], ["updated_at", "2015-06-03 00:07:24.942003"], ["token", "BaBiDTJWDdIlwpX4rfSdetmJp7nHv6baVZBAkMVB2-E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 17:07:24 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$OhwWtxvKEN4FAkHPewoUn.fNEdOglDsoqgHN7Yd1zK8OLrIvQAfh6"], ["created_at", "2015-06-03 00:07:24.962134"], ["updated_at", "2015-06-03 00:07:24.962134"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:24.964599"], ["user_id", "8367fcd0-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:24.965575"], ["updated_at", "2015-06-03 00:07:24.965575"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:24.972003"], ["updated_at", "2015-06-03 00:07:24.972003"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8367fcd0-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8369763c-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8367fcd0-0984-11e5-9642-a8667f0424ad"], ["organization_id", "8369763c-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:24.976408"], ["updated_at", "2015-06-03 00:07:24.976408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '8369763c-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "8369763c-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:24.982513"], ["updated_at", "2015-06-03 00:07:24.982513"], ["token", "x9FKUMlI3aOBDSDRv-3eSj--0y-VyPi_jrLZsLk6B50"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$/K9cKm3l7W.NNWCeALgoUO4xf/OLMa4HtrtNAqoKEYlWzmzdEYlaC"], ["created_at", "2015-06-03 00:07:24.989095"], ["updated_at", "2015-06-03 00:07:24.989095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:24.993974"], ["updated_at", "2015-06-03 00:07:24.993974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '836c0b72-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '836cd66a-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "836c0b72-0984-11e5-9642-a8667f0424ad"], ["organization_id", "836cd66a-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:24.998451"], ["updated_at", "2015-06-03 00:07:24.998451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:25.002841') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5d817271-08d0-44d9-ad0d-e8248b83018a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:25.004626"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:25.005631"], ["id", "5d817271-08d0-44d9-ad0d-e8248b83018a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8367fcd0-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8367fcd0-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "8369763c-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "8369763c-0984-11e5-9642-a8667f0424ad"]] Completed 200 OK in 16ms (Views: 4.3ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$ptdryGyQvNtKZ9qeYdOYoeR6NZrFb84VoUywqyCqj9mZE54nLJ3iO"], ["created_at", "2015-06-03 00:07:25.026491"], ["updated_at", "2015-06-03 00:07:25.026491"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.028550"], ["user_id", "8371c580-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.029234"], ["updated_at", "2015-06-03 00:07:25.029234"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.034785"], ["updated_at", "2015-06-03 00:07:25.034785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8371c580-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '837310b6-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8371c580-0984-11e5-9642-a8667f0424ad"], ["organization_id", "837310b6-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.038413"], ["updated_at", "2015-06-03 00:07:25.038413"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '837310b6-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "837310b6-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.045985"], ["updated_at", "2015-06-03 00:07:25.045985"], ["token", "QxhSGJGjqzwrwYs687mdiJf3ukMrAJqcDHAdJlLzatg"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$tvHuVqKEJQdTpTRCTcFO9ef6by7YZ0RGeWELRKOWUD5uUEVTHItS2"], ["created_at", "2015-06-03 00:07:25.062891"], ["updated_at", "2015-06-03 00:07:25.062891"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.069133"], ["updated_at", "2015-06-03 00:07:25.069133"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83776378-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '83784edc-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83776378-0984-11e5-9642-a8667f0424ad"], ["organization_id", "83784edc-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.073741"], ["updated_at", "2015-06-03 00:07:25.073741"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$jsVKHyhMIr0rOY2gg3LsxuA9uvTU.hfNP5orlD51QUzLVEocWEKGm"], ["created_at", "2015-06-03 00:07:25.086556"], ["updated_at", "2015-06-03 00:07:25.086556"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.088883"], ["user_id", "837af650-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.089607"], ["updated_at", "2015-06-03 00:07:25.089607"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.094316"], ["updated_at", "2015-06-03 00:07:25.094316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '837af650-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '837c179c-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "837af650-0984-11e5-9642-a8667f0424ad"], ["organization_id", "837c179c-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.097618"], ["updated_at", "2015-06-03 00:07:25.097618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '837c179c-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "837c179c-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.102446"], ["updated_at", "2015-06-03 00:07:25.102446"], ["token", "8W-E5HV0qF5M4mGQjTALCx3vB9RglcwKgmgBEY4Wxo4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$Qg1W0x7YXv03vuMT1qCVl..jHu0ggGy0xU8NTwcLjFilSUeKU6F5K"], ["created_at", "2015-06-03 00:07:25.110000"], ["updated_at", "2015-06-03 00:07:25.110000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.116534"], ["updated_at", "2015-06-03 00:07:25.116534"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '837e8c98-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '837f9782-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "837e8c98-0984-11e5-9642-a8667f0424ad"], ["organization_id", "837f9782-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.122139"], ["updated_at", "2015-06-03 00:07:25.122139"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/837c179c-0984-11e5-9642-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"837c179c-0984-11e5-9642-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:25.138726') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1ed558ae-5081-4826-95b9-65a857621ee4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:25.141125"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:25.142280"], ["id", "1ed558ae-5081-4826-95b9-65a857621ee4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "837c179c-0984-11e5-9642-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "837af650-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '837af650-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "837c179c-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "837c179c-0984-11e5-9642-a8667f0424ad"]] Completed 200 OK in 15ms (Views: 2.6ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$xgibehpAGBjEAjmGbcb/OeNTqLAyUtpA/TioH85TXB8IRCIyprgW2"], ["created_at", "2015-06-03 00:07:25.162737"], ["updated_at", "2015-06-03 00:07:25.162737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.164782"], ["user_id", "8386919a-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.165411"], ["updated_at", "2015-06-03 00:07:25.165411"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.170908"], ["updated_at", "2015-06-03 00:07:25.170908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8386919a-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8387d1fe-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8386919a-0984-11e5-9642-a8667f0424ad"], ["organization_id", "8387d1fe-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.174739"], ["updated_at", "2015-06-03 00:07:25.174739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '8387d1fe-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "8387d1fe-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.181075"], ["updated_at", "2015-06-03 00:07:25.181075"], ["token", "uB5DDpxf3SSlqsM7B--dEdPgozh4qzThT1jQA4zzZsE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$iiWGDGfRi42E7FCJ/wz2e.SfQTFVkV6O.VeingSOCL8fcy916vE.O"], ["created_at", "2015-06-03 00:07:25.188833"], ["updated_at", "2015-06-03 00:07:25.188833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.194624"], ["updated_at", "2015-06-03 00:07:25.194624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '838a8de0-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '838b6bb6-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "838a8de0-0984-11e5-9642-a8667f0424ad"], ["organization_id", "838b6bb6-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.198966"], ["updated_at", "2015-06-03 00:07:25.198966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$79Ke.xA0c5UtZ8KErgtMj.q/Lb///WYyG/bm.c1sLhy6uytRht2NC"], ["created_at", "2015-06-03 00:07:25.208532"], ["updated_at", "2015-06-03 00:07:25.208532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.210245"], ["user_id", "838d882e-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.210919"], ["updated_at", "2015-06-03 00:07:25.210919"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.215586"], ["updated_at", "2015-06-03 00:07:25.215586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '838d882e-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '838ea0a6-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "838d882e-0984-11e5-9642-a8667f0424ad"], ["organization_id", "838ea0a6-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.219754"], ["updated_at", "2015-06-03 00:07:25.219754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '838ea0a6-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "838ea0a6-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.223867"], ["updated_at", "2015-06-03 00:07:25.223867"], ["token", "FDSiGbV08vofBBjKEI8sJdmjGR7sFRYbU7KRp1Fz3GQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$RcW6NPXCBTDDsWvMrPFaoOiN4cc4jK/HF31OjtNIi42duff8mV7q2"], ["created_at", "2015-06-03 00:07:25.233358"], ["updated_at", "2015-06-03 00:07:25.233358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.235548"], ["user_id", "839158c8-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.236201"], ["updated_at", "2015-06-03 00:07:25.236201"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.241331"], ["updated_at", "2015-06-03 00:07:25.241331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '839158c8-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '83928b08-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "839158c8-0984-11e5-9642-a8667f0424ad"], ["organization_id", "83928b08-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.244570"], ["updated_at", "2015-06-03 00:07:25.244570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '83928b08-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "83928b08-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.248665"], ["updated_at", "2015-06-03 00:07:25.248665"], ["token", "kmwY6ZCmN2__ZaeMPWx7BneqOgSuM48RTapixltSD9Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:25.253878') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "905f2392-8014-458e-96b0-19389950e4eb"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:25.255537"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:25.256635"], ["id", "905f2392-8014-458e-96b0-19389950e4eb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "839158c8-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '839158c8-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "83928b08-0984-11e5-9642-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '83928b08-0984-11e5-9642-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 25ms (ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$G197LgzIulQTHEPu9CmVveKMzfic3SLWAm2SLwJM9YUngZKydaFea"], ["created_at", "2015-06-03 00:07:25.289074"], ["updated_at", "2015-06-03 00:07:25.289074"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.294019"], ["user_id", "8399f37a-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.295427"], ["updated_at", "2015-06-03 00:07:25.295427"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.300501"], ["updated_at", "2015-06-03 00:07:25.300501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8399f37a-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '839ba7f6-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8399f37a-0984-11e5-9642-a8667f0424ad"], ["organization_id", "839ba7f6-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.305725"], ["updated_at", "2015-06-03 00:07:25.305725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '839ba7f6-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "839ba7f6-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.310950"], ["updated_at", "2015-06-03 00:07:25.310950"], ["token", "A90sJRKw6JkeV8RGDyRyKThxCjs0vwt0gK4mzYOT2uQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:25.314274') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "97c23d8d-96fc-4c6e-b03b-5b36b30a915a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:25.316077"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:25.317113"], ["id", "97c23d8d-96fc-4c6e-b03b-5b36b30a915a"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8399f37a-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8399f37a-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "839ba7f6-0984-11e5-9642-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '839ba7f6-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "839ba7f6-0984-11e5-9642-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.332202"], ["updated_at", "2015-06-03 00:07:25.332202"], ["token", "qKy0MJY4PI_1exnqUTKwx2BSjfAwuHEQRiTU3r1nLTo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 58360297-1de9-4a4d-b89e-81b006cacb6c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/83a07d30-0984-11e5-9642-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "83a07d30-0984-11e5-9642-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [58360297-1de9-4a4d-b89e-81b006cacb6c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/83a07d30-0984-11e5-9642-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [58360297-1de9-4a4d-b89e-81b006cacb6c] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "839ba7f6-0984-11e5-9642-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [58360297-1de9-4a4d-b89e-81b006cacb6c] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [58360297-1de9-4a4d-b89e-81b006cacb6c] Clubhouse::Mailer#invitation: processed outbound mail in 311.0ms [ActiveJob] [ActionMailer::DeliveryJob] [58360297-1de9-4a4d-b89e-81b006cacb6c] Sent mail to email@example.com (9.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [58360297-1de9-4a4d-b89e-81b006cacb6c] Date: Tue, 02 Jun 2015 17:07:25 -0700 From: from@example.com To: email@example.com Message-ID: <556e453da64b7_e1ca3feb19c601f859843@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/qKy0MJY4PI_1exnqUTKwx2BSjfAwuHEQRiTU3r1nLTo?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [58360297-1de9-4a4d-b89e-81b006cacb6c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 321.42ms Completed 201 Created in 372ms (Views: 1.0ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$ArcZ31z/DDTTmbisne3qLuYSAeAksSlzkncmUzIWtu6ipbk99CSfi"], ["created_at", "2015-06-03 00:07:25.695920"], ["updated_at", "2015-06-03 00:07:25.695920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.698184"], ["user_id", "83d7ef5e-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.698935"], ["updated_at", "2015-06-03 00:07:25.698935"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.706360"], ["updated_at", "2015-06-03 00:07:25.706360"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83d7ef5e-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '83d9ec1e-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83d7ef5e-0984-11e5-9642-a8667f0424ad"], ["organization_id", "83d9ec1e-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.715303"], ["updated_at", "2015-06-03 00:07:25.715303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '83d9ec1e-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "83d9ec1e-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.721880"], ["updated_at", "2015-06-03 00:07:25.721880"], ["token", "NccBZlKoE48bGHPp4VzvqvBi-v4tOzASBZWeXP99z20"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:25.726673') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d42e570a-277a-4a42-a187-4255fa8c5b6f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:25.728498"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:25.729973"], ["id", "d42e570a-277a-4a42-a187-4255fa8c5b6f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83d7ef5e-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83d7ef5e-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "83d9ec1e-0984-11e5-9642-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '83d9ec1e-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "83d9ec1e-0984-11e5-9642-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.741608"], ["updated_at", "2015-06-03 00:07:25.741608"], ["token", "b-rEWc9TShPm35HkDF59LP-Ho2o-HDALmsaGil7IRyQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 09b35c37-6d55-48fd-87f1-7fb65bcd944b) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/83deeaa2-0984-11e5-9642-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "83deeaa2-0984-11e5-9642-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [09b35c37-6d55-48fd-87f1-7fb65bcd944b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/83deeaa2-0984-11e5-9642-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [09b35c37-6d55-48fd-87f1-7fb65bcd944b] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83d9ec1e-0984-11e5-9642-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [09b35c37-6d55-48fd-87f1-7fb65bcd944b] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [09b35c37-6d55-48fd-87f1-7fb65bcd944b] Clubhouse::Mailer#invitation: processed outbound mail in 6.0ms [ActiveJob] [ActionMailer::DeliveryJob] [09b35c37-6d55-48fd-87f1-7fb65bcd944b] Sent mail to email@example.com (3.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [09b35c37-6d55-48fd-87f1-7fb65bcd944b] Date: Tue, 02 Jun 2015 17:07:25 -0700 From: from@example.com To: email@example.com Message-ID: <556e453db837e_e1ca3feb19c601f8599c1@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/b-rEWc9TShPm35HkDF59LP-Ho2o-HDALmsaGil7IRyQ?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [09b35c37-6d55-48fd-87f1-7fb65bcd944b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 10.13ms Completed 201 Created in 33ms (Views: 1.4ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$mWj4d0eCUU49ZRzwmvbtSOl6Pg72eK6/7beezkHu5l1e/y/1wEdsi"], ["created_at", "2015-06-03 00:07:25.769996"], ["updated_at", "2015-06-03 00:07:25.769996"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.773835"], ["user_id", "83e347d2-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.774809"], ["updated_at", "2015-06-03 00:07:25.774809"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.779043"], ["updated_at", "2015-06-03 00:07:25.779043"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83e347d2-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '83e49e84-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83e347d2-0984-11e5-9642-a8667f0424ad"], ["organization_id", "83e49e84-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.783510"], ["updated_at", "2015-06-03 00:07:25.783510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '83e49e84-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "83e49e84-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.788488"], ["updated_at", "2015-06-03 00:07:25.788488"], ["token", "QJ9231GGEVlR1IKymdhtFIfu_SsxZFoW0sI1n8ZYIxw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/83e609ea-0984-11e5-9642-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"83e609ea-0984-11e5-9642-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:25.791835') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e5f170ae-2958-4209-808a-f85b52b59da5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:25.793487"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:25.794417"], ["id", "e5f170ae-2958-4209-808a-f85b52b59da5"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "83e609ea-0984-11e5-9642-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83e347d2-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83e49e84-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83e347d2-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "83e49e84-0984-11e5-9642-a8667f0424ad"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."id" != '83e609ea-0984-11e5-9642-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = '83e49e84-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:07:25.807718"], ["id", "83e609ea-0984-11e5-9642-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 1.2ms | ActiveRecord: 4.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$i5Y8NA0LeMS82nJM/DLzJe8Jz.yANOxhitaFOqw..HclS8bG7jsCu"], ["created_at", "2015-06-03 00:07:25.828299"], ["updated_at", "2015-06-03 00:07:25.828299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.829954"], ["user_id", "83ec1a2e-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.830550"], ["updated_at", "2015-06-03 00:07:25.830550"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.835485"], ["updated_at", "2015-06-03 00:07:25.835485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83ec1a2e-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '83ed3198-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83ec1a2e-0984-11e5-9642-a8667f0424ad"], ["organization_id", "83ed3198-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.838762"], ["updated_at", "2015-06-03 00:07:25.838762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '83ed3198-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "83ed3198-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.843442"], ["updated_at", "2015-06-03 00:07:25.843442"], ["token", "P79rE-ArIec4j1I7nZCaFNhd4lNlM8LF90Kf-460Qw8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$ArV.AJwfRm4Mp.wSsnekaeLSDX0dyYTxp0p.KDdUMIHvvU2KyFqn2"], ["created_at", "2015-06-03 00:07:25.855659"], ["updated_at", "2015-06-03 00:07:25.855659"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.858299"], ["user_id", "83f04d10-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.859326"], ["updated_at", "2015-06-03 00:07:25.859326"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.864898"], ["updated_at", "2015-06-03 00:07:25.864898"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83f04d10-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '83f1b4f2-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83f04d10-0984-11e5-9642-a8667f0424ad"], ["organization_id", "83f1b4f2-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.869892"], ["updated_at", "2015-06-03 00:07:25.869892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '83f1b4f2-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "83f1b4f2-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.875675"], ["updated_at", "2015-06-03 00:07:25.875675"], ["token", "Ka08EluFg5s3ewjYFEEWIPmmq876O_A6llrnx7WG_1k"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/83f3bd42-0984-11e5-9642-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"83f3bd42-0984-11e5-9642-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:25.888317') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8a7db36c-b3d8-44a5-b569-14f57708af3f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:25.889864"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:25.890619"], ["id", "8a7db36c-b3d8-44a5-b569-14f57708af3f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "83f3bd42-0984-11e5-9642-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83f04d10-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83f1b4f2-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83f04d10-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "83f1b4f2-0984-11e5-9642-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "83f3bd42-0984-11e5-9642-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$.tcvVhzMNEECxWVC348pQu84dxMZsXcgXybv6buiqvO84SUuLKVvK"], ["created_at", "2015-06-03 00:07:25.904105"], ["updated_at", "2015-06-03 00:07:25.904105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.907192"], ["user_id", "83f7c202-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.908049"], ["updated_at", "2015-06-03 00:07:25.908049"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.914122"], ["updated_at", "2015-06-03 00:07:25.914122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83f7c202-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '83f9320e-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83f7c202-0984-11e5-9642-a8667f0424ad"], ["organization_id", "83f9320e-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.917839"], ["updated_at", "2015-06-03 00:07:25.917839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '83f9320e-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "83f9320e-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.928070"], ["updated_at", "2015-06-03 00:07:25.928070"], ["token", "bqa8MHvzfylVw5jVbLABhbKq_4_jSpx-g_TfqF79yO8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$eWoVofIodZRv1sA7BtT4P.MKVVK5.tfB5wObg0aaAQTzFvH.m0nk."], ["created_at", "2015-06-03 00:07:25.944476"], ["updated_at", "2015-06-03 00:07:25.944476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.946338"], ["user_id", "83fdd62e-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.947017"], ["updated_at", "2015-06-03 00:07:25.947017"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.952612"], ["updated_at", "2015-06-03 00:07:25.952612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83fdd62e-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '83ff13fe-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83fdd62e-0984-11e5-9642-a8667f0424ad"], ["organization_id", "83ff13fe-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.955909"], ["updated_at", "2015-06-03 00:07:25.955909"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '83ff13fe-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "83ff13fe-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.961763"], ["updated_at", "2015-06-03 00:07:25.961763"], ["token", "JVs_CRdnZ3JMcdS7xi2sc5-CHLZk9LOWzOTiZF8Mpp8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$cBvxLY07xqclL6AI3pxqWum24g4XtR6jKx4.ONwAfWs4x.5Kq7OwW"], ["created_at", "2015-06-03 00:07:25.971197"], ["updated_at", "2015-06-03 00:07:25.971197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:25.972785"], ["user_id", "8401e692-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.973374"], ["updated_at", "2015-06-03 00:07:25.973374"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:25.979297"], ["updated_at", "2015-06-03 00:07:25.979297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8401e692-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '840328e0-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8401e692-0984-11e5-9642-a8667f0424ad"], ["organization_id", "840328e0-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:25.982952"], ["updated_at", "2015-06-03 00:07:25.982952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '840328e0-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "840328e0-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:25.988483"], ["updated_at", "2015-06-03 00:07:25.988483"], ["token", "8UDgTVPanSaP5194Av_I19Quoscae895PrB9puVzTzw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/840328e0-0984-11e5-9642-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:25 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"840328e0-0984-11e5-9642-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:25.992981') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f52d2fa2-446f-414a-8e20-19c78d17c6bf"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:25.995108"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:25.996349"], ["id", "f52d2fa2-446f-414a-8e20-19c78d17c6bf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "840328e0-0984-11e5-9642-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8401e692-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8401e692-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "840328e0-0984-11e5-9642-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '840328e0-0984-11e5-9642-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 2.4ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$RHDYu6vR.6JcK1HzWT6rle5Alc/PcBiScLGwKM1TE6ONBb0DzU1Qm"], ["created_at", "2015-06-03 00:07:26.021528"], ["updated_at", "2015-06-03 00:07:26.021528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:26.023226"], ["user_id", "840992e8-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:26.026490"], ["updated_at", "2015-06-03 00:07:26.026490"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:26.031369"], ["updated_at", "2015-06-03 00:07:26.031369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '840992e8-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '840b2a04-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "840992e8-0984-11e5-9642-a8667f0424ad"], ["organization_id", "840b2a04-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:26.036442"], ["updated_at", "2015-06-03 00:07:26.036442"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '840b2a04-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "840b2a04-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:26.042627"], ["updated_at", "2015-06-03 00:07:26.042627"], ["token", "83wyZDAPlBeaBdwnshkftkUK1q2KBqGLLiQ3AVLq-Zk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/840b2a04-0984-11e5-9642-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"840b2a04-0984-11e5-9642-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:26.046996') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "06a5b2da-f6a1-4601-8a0f-7d6b1f14cb4e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:26.048815"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:26.049706"], ["id", "06a5b2da-f6a1-4601-8a0f-7d6b1f14cb4e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "840b2a04-0984-11e5-9642-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "840992e8-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '840992e8-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "840b2a04-0984-11e5-9642-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '840b2a04-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "840b2a04-0984-11e5-9642-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:26.057745"], ["updated_at", "2015-06-03 00:07:26.057745"], ["token", "sVuZkn-7OX6G0gk4gpEvvGvQ4PbIWhPBNFkd1woCIiI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b25a0ab3-ed69-4cd8-a3af-d5455346cd8a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/840f2686-0984-11e5-9642-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "840f2686-0984-11e5-9642-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [b25a0ab3-ed69-4cd8-a3af-d5455346cd8a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/840f2686-0984-11e5-9642-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [b25a0ab3-ed69-4cd8-a3af-d5455346cd8a] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "840b2a04-0984-11e5-9642-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [b25a0ab3-ed69-4cd8-a3af-d5455346cd8a] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [b25a0ab3-ed69-4cd8-a3af-d5455346cd8a] Clubhouse::Mailer#invitation: processed outbound mail in 3.0ms [ActiveJob] [ActionMailer::DeliveryJob] [b25a0ab3-ed69-4cd8-a3af-d5455346cd8a] Sent mail to email@example.com (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [b25a0ab3-ed69-4cd8-a3af-d5455346cd8a] Date: Tue, 02 Jun 2015 17:07:26 -0700 From: from@example.com To: email@example.com Message-ID: <556e453e10456_e1ca3feb19c601f8600d5@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/sVuZkn-7OX6G0gk4gpEvvGvQ4PbIWhPBNFkd1woCIiI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b25a0ab3-ed69-4cd8-a3af-d5455346cd8a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.77ms Completed 201 Created in 22ms (Views: 1.0ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$BC4rUNclvC5Bp94i45z5J.IVzzb9iJmS5pZ8gRPydaGqr4L0AtK2W"], ["created_at", "2015-06-03 00:07:26.075607"], ["updated_at", "2015-06-03 00:07:26.075607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:26.077562"], ["user_id", "8411d502-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:26.078325"], ["updated_at", "2015-06-03 00:07:26.078325"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:26.082595"], ["updated_at", "2015-06-03 00:07:26.082595"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8411d502-0984-11e5-9642-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8412f518-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8411d502-0984-11e5-9642-a8667f0424ad"], ["organization_id", "8412f518-0984-11e5-9642-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:26.087695"], ["updated_at", "2015-06-03 00:07:26.087695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '8412f518-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "8412f518-0984-11e5-9642-a8667f0424ad"], ["created_at", "2015-06-03 00:07:26.092473"], ["updated_at", "2015-06-03 00:07:26.092473"], ["token", "6cz_u7vQ4Eg1ZnRWZz02xTDGI_caRPsGxq_Lcw_R-3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/8412f518-0984-11e5-9642-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"8412f518-0984-11e5-9642-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:26.096332') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "56ebced4-d94d-4540-90a6-d0ddbdf249e8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:26.097652"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:26.098392"], ["id", "56ebced4-d94d-4540-90a6-d0ddbdf249e8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "8412f518-0984-11e5-9642-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8411d502-0984-11e5-9642-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8411d502-0984-11e5-9642-a8667f0424ad' LIMIT 1 [["organization_id", "8412f518-0984-11e5-9642-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8412f518-0984-11e5-9642-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "8412f518-0984-11e5-9642-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:26.107812"], ["updated_at", "2015-06-03 00:07:26.107812"], ["token", "AgPdo8U3zRHQ1PZ1QyemEXQ6C953qbSUfIaYL3JoY9o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a2d93faa-9215-41dc-bfab-214e089a53d8) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8416c418-0984-11e5-9642-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8416c418-0984-11e5-9642-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [a2d93faa-9215-41dc-bfab-214e089a53d8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8416c418-0984-11e5-9642-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [a2d93faa-9215-41dc-bfab-214e089a53d8] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8412f518-0984-11e5-9642-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [a2d93faa-9215-41dc-bfab-214e089a53d8] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [a2d93faa-9215-41dc-bfab-214e089a53d8] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [a2d93faa-9215-41dc-bfab-214e089a53d8] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [a2d93faa-9215-41dc-bfab-214e089a53d8] Date: Tue, 02 Jun 2015 17:07:26 -0700 From: from@example.com To: email@example.com Message-ID: <556e453e1be0f_e1ca3feb19c601f860139@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/AgPdo8U3zRHQ1PZ1QyemEXQ6C953qbSUfIaYL3JoY9o?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a2d93faa-9215-41dc-bfab-214e089a53d8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.04ms Completed 201 Created in 20ms (Views: 0.9ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$1jvfn1MADeD6pQ1MO.08pOfpFWuVUsJRHYB/ixgeQOzpxZFBIHtBW"], ["created_at", "2015-06-03 00:07:39.246665"], ["updated_at", "2015-06-03 00:07:39.246665"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:39.283978"], ["user_id", "8bec04e6-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.294966"], ["updated_at", "2015-06-03 00:07:39.294966"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.312391"], ["updated_at", "2015-06-03 00:07:39.312391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bec04e6-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8bf5ae1a-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bec04e6-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8bf5ae1a-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:39.324520"], ["updated_at", "2015-06-03 00:07:39.324520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '8bf5ae1a-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "8bf5ae1a-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.336529"], ["updated_at", "2015-06-03 00:07:39.336529"], ["token", "I2A_VOX_jtE3ShG-EqLiyhaDsam1y_hF64CkQaXd3yA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 17:07:39 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$ExouBUn3Nm/nJGubOHk/oe3Q6Dp8LSP3X.OgtmA5UjGABrmARapB2"], ["created_at", "2015-06-03 00:07:39.368667"], ["updated_at", "2015-06-03 00:07:39.368667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:39.370466"], ["user_id", "8bfe3436-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.371075"], ["updated_at", "2015-06-03 00:07:39.371075"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.375917"], ["updated_at", "2015-06-03 00:07:39.375917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bfe3436-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8bff4c0e-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bfe3436-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8bff4c0e-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:39.379041"], ["updated_at", "2015-06-03 00:07:39.379041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '8bff4c0e-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "8bff4c0e-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.384983"], ["updated_at", "2015-06-03 00:07:39.384983"], ["token", "NsXWN5O9VSTsjDfGKMtlpiffmKKBvP7Eq9CDaSr029I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/8c00bdfa-0984-11e5-ba36-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:07:39 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"8c00bdfa-0984-11e5-ba36-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:39.388580') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f3545c86-38ff-46ab-a079-0894a15d45a5"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:39.396801"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:39.398325"], ["id", "f3545c86-38ff-46ab-a079-0894a15d45a5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8c00bdfa-0984-11e5-ba36-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8bfe3436-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8bff4c0e-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8bfe3436-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8bff4c0e-0984-11e5-ba36-a8667f0424ad"]] Completed 200 OK in 50ms (Views: 12.2ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$9YYoCXaiSywRQIxbcHdbkeArjNo27GNSL.a1B6SpFzRUciuIJyRcO"], ["created_at", "2015-06-03 00:07:39.449671"], ["updated_at", "2015-06-03 00:07:39.449671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:39.451881"], ["user_id", "8c0a976c-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.452583"], ["updated_at", "2015-06-03 00:07:39.452583"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.461135"], ["updated_at", "2015-06-03 00:07:39.461135"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c0a976c-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c0c62ea-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c0a976c-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c0c62ea-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:39.466455"], ["updated_at", "2015-06-03 00:07:39.466455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '8c0c62ea-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "8c0c62ea-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.471438"], ["updated_at", "2015-06-03 00:07:39.471438"], ["token", "DJgoyBtmoJTduylVXsDNWEMMx4zPhLqH916MXfY3JUc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$9y1AJH97ArW3TGr6TflZYugeHAFB3bXTVcreZyJCcRADNylk8l8Ii"], ["created_at", "2015-06-03 00:07:39.480932"], ["updated_at", "2015-06-03 00:07:39.480932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.486405"], ["updated_at", "2015-06-03 00:07:39.486405"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c0f6620-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c1033ca-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c0f6620-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c1033ca-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.490314"], ["updated_at", "2015-06-03 00:07:39.490314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:07:39 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$oXWEZopRbpWPar0GiIvpFuSyYL0veIM74tSNHFJskodHAhmd998N6"], ["created_at", "2015-06-03 00:07:39.502598"], ["updated_at", "2015-06-03 00:07:39.502598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:39.504560"], ["user_id", "8c12a510-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.505320"], ["updated_at", "2015-06-03 00:07:39.505320"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.510404"], ["updated_at", "2015-06-03 00:07:39.510404"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c12a510-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c13d606-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c12a510-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c13d606-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:39.515012"], ["updated_at", "2015-06-03 00:07:39.515012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '8c13d606-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "8c13d606-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.519736"], ["updated_at", "2015-06-03 00:07:39.519736"], ["token", "07o2QYWidmyICHI6m0uEnM729KmJG8svFzRw6Op_yyg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$IWTPEEFoIbpT7zIDfakcju0EAKSkzETrWoE0geOmzhZoN9rkAuoa6"], ["created_at", "2015-06-03 00:07:39.525307"], ["updated_at", "2015-06-03 00:07:39.525307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.530293"], ["updated_at", "2015-06-03 00:07:39.530293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c161fec-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c16ddc4-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c161fec-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c16ddc4-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.534148"], ["updated_at", "2015-06-03 00:07:39.534148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:39 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:39.537217') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "086c8ec5-2ced-4b15-bc91-a1f772c08e55"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:39.539535"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:39.540447"], ["id", "086c8ec5-2ced-4b15-bc91-a1f772c08e55"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c12a510-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c12a510-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8c13d606-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "8c13d606-0984-11e5-ba36-a8667f0424ad"]] Completed 200 OK in 16ms (Views: 2.3ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$C3euEQCpwfvadCfuuoDOsuPfpifQkVPsVdL0n.Y4kGDkFnLGWyBYu"], ["created_at", "2015-06-03 00:07:39.561440"], ["updated_at", "2015-06-03 00:07:39.561440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:39.563491"], ["user_id", "8c1b9efe-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.564371"], ["updated_at", "2015-06-03 00:07:39.564371"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.569652"], ["updated_at", "2015-06-03 00:07:39.569652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c1b9efe-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c1ceaca-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c1b9efe-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c1ceaca-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:39.574039"], ["updated_at", "2015-06-03 00:07:39.574039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '8c1ceaca-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "8c1ceaca-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.579271"], ["updated_at", "2015-06-03 00:07:39.579271"], ["token", "N_eWreHDoTlJEV3OOKP_Yfr9t9h9ed6covtDsLqGkNw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$69V16u833GGqWSpYIF30L.Qd88nACqZqHF1MiDYq1/xrWLgvZs6PC"], ["created_at", "2015-06-03 00:07:39.585004"], ["updated_at", "2015-06-03 00:07:39.585004"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.590760"], ["updated_at", "2015-06-03 00:07:39.590760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c1f3802-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c2036bc-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c1f3802-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c2036bc-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.596266"], ["updated_at", "2015-06-03 00:07:39.596266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 17:07:39 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$oRHZTqJDw6rr4thb3sBxN.nGEWstw75t3xVMdi1XAEgI40R6EayeW"], ["created_at", "2015-06-03 00:07:39.619900"], ["updated_at", "2015-06-03 00:07:39.619900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:39.622595"], ["user_id", "8c2493b0-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.623305"], ["updated_at", "2015-06-03 00:07:39.623305"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.627601"], ["updated_at", "2015-06-03 00:07:39.627601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c2493b0-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c25b164-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c2493b0-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c25b164-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:39.631379"], ["updated_at", "2015-06-03 00:07:39.631379"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '8c25b164-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "8c25b164-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.637653"], ["updated_at", "2015-06-03 00:07:39.637653"], ["token", "gwMe7A3DXZSFYsxAEKwusa17EyO5aXUVDe-ekSE2ahA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$RdOpWT9mDZ80AHvvVJrxauN9sjmvYoREEJPmMnzSVf2AiCn2ZybLm"], ["created_at", "2015-06-03 00:07:39.644569"], ["updated_at", "2015-06-03 00:07:39.644569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.651037"], ["updated_at", "2015-06-03 00:07:39.651037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c2875fc-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c2953d2-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8c2875fc-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c2953d2-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.654976"], ["updated_at", "2015-06-03 00:07:39.654976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/8c25b164-0984-11e5-ba36-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:39 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"8c25b164-0984-11e5-ba36-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:39.658025') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ed624251-2c57-4b2a-8d91-d395ce24079e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:39.659348"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:39.660082"], ["id", "ed624251-2c57-4b2a-8d91-d395ce24079e"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "8c25b164-0984-11e5-ba36-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c2493b0-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c2493b0-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8c25b164-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "8c25b164-0984-11e5-ba36-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 2.1ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$441NllpnP/UtZQxl/Siscuy.I1ftSo4jC0d6VlyPLSeg/fUXY4O/u"], ["created_at", "2015-06-03 00:07:39.678698"], ["updated_at", "2015-06-03 00:07:39.678698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:39.681103"], ["user_id", "8c2d890c-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.682117"], ["updated_at", "2015-06-03 00:07:39.682117"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.689090"], ["updated_at", "2015-06-03 00:07:39.689090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c2d890c-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c2f23e8-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c2d890c-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c2f23e8-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:39.693400"], ["updated_at", "2015-06-03 00:07:39.693400"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '8c2f23e8-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "8c2f23e8-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.699241"], ["updated_at", "2015-06-03 00:07:39.699241"], ["token", "20btjHA878bUsf_Z-EVR6dCAJ7gIS_J6UO2A17sN6j4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:07:39 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$wy2u4Yn4uwSJ66vLyX1M9egFK.1gps.TWCZ67t77/NTyeFDrygqsu"], ["created_at", "2015-06-03 00:07:39.710782"], ["updated_at", "2015-06-03 00:07:39.710782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:39.713369"], ["user_id", "8c32746c-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.714239"], ["updated_at", "2015-06-03 00:07:39.714239"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:39.720409"], ["updated_at", "2015-06-03 00:07:39.720409"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c32746c-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c33ee8c-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c32746c-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c33ee8c-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:39.725847"], ["updated_at", "2015-06-03 00:07:39.725847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '8c33ee8c-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "8c33ee8c-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:39.733115"], ["updated_at", "2015-06-03 00:07:39.733115"], ["token", "e5yvJeaDQ4Ts_EYn9srgriurq1FSQ-WsRgVV7qmZwAc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:39 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:39.736940') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dcc81f59-32e4-4e07-a682-9dfdeb6693b3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:39.738543"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:39.739330"], ["id", "dcc81f59-32e4-4e07-a682-9dfdeb6693b3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c32746c-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c32746c-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8c33ee8c-0984-11e5-ba36-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8c33ee8c-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "8c33ee8c-0984-11e5-ba36-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:39.749482"], ["updated_at", "2015-06-03 00:07:39.749482"], ["token", "UH8ZqDC29rKSUElUo4wdzv6qLOn092B6vQ5grRL65II"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0b26eea0-e29a-4cf1-a2a8-66d53fd91e03) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c38577e-0984-11e5-ba36-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8c38577e-0984-11e5-ba36-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [0b26eea0-e29a-4cf1-a2a8-66d53fd91e03] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c38577e-0984-11e5-ba36-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [0b26eea0-e29a-4cf1-a2a8-66d53fd91e03] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c33ee8c-0984-11e5-ba36-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [0b26eea0-e29a-4cf1-a2a8-66d53fd91e03] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [0b26eea0-e29a-4cf1-a2a8-66d53fd91e03] Clubhouse::Mailer#invitation: processed outbound mail in 285.9ms [ActiveJob] [ActionMailer::DeliveryJob] [0b26eea0-e29a-4cf1-a2a8-66d53fd91e03] Sent mail to email@example.com (9.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [0b26eea0-e29a-4cf1-a2a8-66d53fd91e03] Date: Tue, 02 Jun 2015 17:07:40 -0700 From: from@example.com To: email@example.com Message-ID: <556e454c11d7a_e1f23fee0d45e1fc8347a@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/UH8ZqDC29rKSUElUo4wdzv6qLOn092B6vQ5grRL65II?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0b26eea0-e29a-4cf1-a2a8-66d53fd91e03] Performed ActionMailer::DeliveryJob from Inline(mailers) in 295.79ms Completed 201 Created in 342ms (Views: 1.1ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$5alVz7bJZBEZjOGtDgndsemzdKB99y.3Z6yMfkBm5lWfnda9395ly"], ["created_at", "2015-06-03 00:07:40.087470"], ["updated_at", "2015-06-03 00:07:40.087470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:40.089576"], ["user_id", "8c6be6c0-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.090151"], ["updated_at", "2015-06-03 00:07:40.090151"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:40.097054"], ["updated_at", "2015-06-03 00:07:40.097054"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c6be6c0-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c6d6d06-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c6be6c0-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c6d6d06-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.101447"], ["updated_at", "2015-06-03 00:07:40.101447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '8c6d6d06-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "8c6d6d06-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.106726"], ["updated_at", "2015-06-03 00:07:40.106726"], ["token", "4QyD--KJAnDxLl5IcCETX-c_QIWv54oRd4VLh4jmV3I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:40 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:40.110475') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c585dd12-ba08-4ac6-8bc3-95ab915be5f9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:40.112152"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:40.112956"], ["id", "c585dd12-ba08-4ac6-8bc3-95ab915be5f9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c6be6c0-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c6be6c0-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8c6d6d06-0984-11e5-ba36-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8c6d6d06-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "8c6d6d06-0984-11e5-ba36-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.123893"], ["updated_at", "2015-06-03 00:07:40.123893"], ["token", "vfPIlnBS_VZlL_1cXlg_-ibCRuotnwp9-TVEeIJxdTI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d75966a8-d6da-4577-87d6-d5de2224c442) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c717806-0984-11e5-ba36-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8c717806-0984-11e5-ba36-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [d75966a8-d6da-4577-87d6-d5de2224c442] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c717806-0984-11e5-ba36-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [d75966a8-d6da-4577-87d6-d5de2224c442] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c6d6d06-0984-11e5-ba36-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [d75966a8-d6da-4577-87d6-d5de2224c442] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [d75966a8-d6da-4577-87d6-d5de2224c442] Clubhouse::Mailer#invitation: processed outbound mail in 3.8ms [ActiveJob] [ActionMailer::DeliveryJob] [d75966a8-d6da-4577-87d6-d5de2224c442] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [d75966a8-d6da-4577-87d6-d5de2224c442] Date: Tue, 02 Jun 2015 17:07:40 -0700 From: from@example.com To: email@example.com Message-ID: <556e454c205b6_e1f23fee0d45e1fc8354a@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/vfPIlnBS_VZlL_1cXlg_-ibCRuotnwp9-TVEeIJxdTI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d75966a8-d6da-4577-87d6-d5de2224c442] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.55ms Completed 201 Created in 25ms (Views: 0.9ms | ActiveRecord: 3.1ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$cqLjihwBf1K1uPcqXstpUOy008fVSkdB6HOSxXu79Y9DSQq/uyWBC"], ["created_at", "2015-06-03 00:07:40.146385"], ["updated_at", "2015-06-03 00:07:40.146385"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:40.149018"], ["user_id", "8c74e6c6-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.149805"], ["updated_at", "2015-06-03 00:07:40.149805"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:40.153936"], ["updated_at", "2015-06-03 00:07:40.153936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c74e6c6-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c7600e2-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c74e6c6-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c7600e2-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.157423"], ["updated_at", "2015-06-03 00:07:40.157423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '8c7600e2-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "8c7600e2-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.161652"], ["updated_at", "2015-06-03 00:07:40.161652"], ["token", "X5I4vRtyriXfMs2XXHGmKwKZsQxrqDFV37gcFzTF8NQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:07:40 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:40.168061') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a86ee305-2ad3-4550-b551-932e2a4739e5"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:40.170786"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:40.172116"], ["id", "a86ee305-2ad3-4550-b551-932e2a4739e5"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c74e6c6-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c74e6c6-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8c7600e2-0984-11e5-ba36-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '8c7600e2-0984-11e5-ba36-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms (ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$AuSRIY4IUygDEadbWDhqlevSmn.A3Fd62LZazN1SrWztCfF7udb/S"], ["created_at", "2015-06-03 00:07:40.195703"], ["updated_at", "2015-06-03 00:07:40.195703"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:40.199316"], ["user_id", "8c7c7c06-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.200029"], ["updated_at", "2015-06-03 00:07:40.200029"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:40.206623"], ["updated_at", "2015-06-03 00:07:40.206623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c7c7c06-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c7e18d6-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c7c7c06-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c7e18d6-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.210718"], ["updated_at", "2015-06-03 00:07:40.210718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '8c7e18d6-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "8c7e18d6-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.216255"], ["updated_at", "2015-06-03 00:07:40.216255"], ["token", "w_TfAIbZMTB9UQR-iXGruRvP1eC-wYkFfVC_5SSPOrs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 17:07:40 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$THSRziTTJpgt7NzFx4rZquV3/fvUpQSy4G5bT9kN4aD5H3b0dj/lG"], ["created_at", "2015-06-03 00:07:40.226937"], ["updated_at", "2015-06-03 00:07:40.226937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:40.228549"], ["user_id", "8c8127ba-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.229116"], ["updated_at", "2015-06-03 00:07:40.229116"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:40.234317"], ["updated_at", "2015-06-03 00:07:40.234317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c8127ba-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c824d20-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c8127ba-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c824d20-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.237699"], ["updated_at", "2015-06-03 00:07:40.237699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '8c824d20-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "8c824d20-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.244488"], ["updated_at", "2015-06-03 00:07:40.244488"], ["token", "P2teyfLMvxk_dSB6Yi8rdA4Rf2FXUqeSs5Eb4zK4ldk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/8c8400e8-0984-11e5-ba36-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:07:40 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"8c8400e8-0984-11e5-ba36-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:40.249791') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "118574b0-b88a-487f-9343-3041a5563e16"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:40.251432"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:40.252256"], ["id", "118574b0-b88a-487f-9343-3041a5563e16"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8c8400e8-0984-11e5-ba36-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c8127ba-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c824d20-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c8127ba-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8c824d20-0984-11e5-ba36-a8667f0424ad"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."id" != '8c8400e8-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = '8c824d20-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:07:40.261653"], ["id", "8c8400e8-0984-11e5-ba36-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 1.1ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$f0gwaCz/UyHV2XWWEM7gTumeXmPDxG1Cx6kiil9OVfJOe90gbVCOO"], ["created_at", "2015-06-03 00:07:40.276232"], ["updated_at", "2015-06-03 00:07:40.276232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:40.278368"], ["user_id", "8c88b214-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.279389"], ["updated_at", "2015-06-03 00:07:40.279389"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:40.284992"], ["updated_at", "2015-06-03 00:07:40.284992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c88b214-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c8a0286-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c88b214-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c8a0286-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.288015"], ["updated_at", "2015-06-03 00:07:40.288015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '8c8a0286-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "8c8a0286-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.292671"], ["updated_at", "2015-06-03 00:07:40.292671"], ["token", "vJ5zn9uxdaUcKB2iwyPsTvWHy1FP7OE7W1DCEQ77OkA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 17:07:40 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$lo0Xn7NpVWkw/x019WIE8edkLZTgRmsJgB3a/Ebf9gXgJTjS9srfa"], ["created_at", "2015-06-03 00:07:40.302235"], ["updated_at", "2015-06-03 00:07:40.302235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:40.303836"], ["user_id", "8c8ca3e2-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.304866"], ["updated_at", "2015-06-03 00:07:40.304866"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:40.310426"], ["updated_at", "2015-06-03 00:07:40.310426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c8ca3e2-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c8dee3c-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c8ca3e2-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c8dee3c-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.316113"], ["updated_at", "2015-06-03 00:07:40.316113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '8c8dee3c-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "8c8dee3c-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.320562"], ["updated_at", "2015-06-03 00:07:40.320562"], ["token", "lERKmqArI3VvdCPKf7DQ198G3DKZ9hGAryR9qZscvmw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/8c8f7072-0984-11e5-ba36-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:07:40 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"8c8f7072-0984-11e5-ba36-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:40.323463') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "45978a23-9116-4bf4-9e65-9ff905f072aa"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:40.324759"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:40.325607"], ["id", "45978a23-9116-4bf4-9e65-9ff905f072aa"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8c8f7072-0984-11e5-ba36-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c8ca3e2-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c8dee3c-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c8ca3e2-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8c8dee3c-0984-11e5-ba36-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "8c8f7072-0984-11e5-ba36-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$WXQHnpxn0GvkXKNvMa5/aecYYWUh28iYj3UOP2PvZq2pXDBJKrCnm"], ["created_at", "2015-06-03 00:07:40.338479"], ["updated_at", "2015-06-03 00:07:40.338479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:40.340462"], ["user_id", "8c92350a-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.341060"], ["updated_at", "2015-06-03 00:07:40.341060"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:40.345081"], ["updated_at", "2015-06-03 00:07:40.345081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c92350a-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c932b36-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c92350a-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c932b36-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.348204"], ["updated_at", "2015-06-03 00:07:40.348204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '8c932b36-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "8c932b36-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.352777"], ["updated_at", "2015-06-03 00:07:40.352777"], ["token", "ogVpra0FnwM93OWymWK3szfuqF3h5bz1PfpuDQr8o_k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 17:07:40 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$l3Km2jm23LHHIXWm03OZ4.yChiYPB0zd5qumbCRby29pafPBkZKgS"], ["created_at", "2015-06-03 00:07:40.363036"], ["updated_at", "2015-06-03 00:07:40.363036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:40.365272"], ["user_id", "8c95f7e4-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.365952"], ["updated_at", "2015-06-03 00:07:40.365952"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:40.371418"], ["updated_at", "2015-06-03 00:07:40.371418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c95f7e4-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c97464e-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c95f7e4-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c97464e-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.375281"], ["updated_at", "2015-06-03 00:07:40.375281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '8c97464e-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "8c97464e-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.381796"], ["updated_at", "2015-06-03 00:07:40.381796"], ["token", "pBYlRUDYfoLBKYV-CB9hIYBe2TIzTbH-m_tXefMqr6M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/8c97464e-0984-11e5-ba36-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:40 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"8c97464e-0984-11e5-ba36-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:40.385417') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "13a62c1a-f259-4ab3-a8fb-83b4b32c93c2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:40.386768"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:40.387490"], ["id", "13a62c1a-f259-4ab3-a8fb-83b4b32c93c2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "8c97464e-0984-11e5-ba36-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c95f7e4-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c95f7e4-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8c97464e-0984-11e5-ba36-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8c97464e-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "8c97464e-0984-11e5-ba36-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.397207"], ["updated_at", "2015-06-03 00:07:40.397207"], ["token", "Alce_hZ6w5YTbd67jE3nrBO0kpe4_abZr20VbsBTOlA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 38c6494a-80bd-4528-a550-7403f929808a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c9b372c-0984-11e5-ba36-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8c9b372c-0984-11e5-ba36-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [38c6494a-80bd-4528-a550-7403f929808a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c9b372c-0984-11e5-ba36-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [38c6494a-80bd-4528-a550-7403f929808a] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c97464e-0984-11e5-ba36-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [38c6494a-80bd-4528-a550-7403f929808a] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [38c6494a-80bd-4528-a550-7403f929808a] Clubhouse::Mailer#invitation: processed outbound mail in 3.1ms [ActiveJob] [ActionMailer::DeliveryJob] [38c6494a-80bd-4528-a550-7403f929808a] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [38c6494a-80bd-4528-a550-7403f929808a] Date: Tue, 02 Jun 2015 17:07:40 -0700 From: from@example.com To: email@example.com Message-ID: <556e454c631c9_e1f23fee0d45e1fc83695@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Alce_hZ6w5YTbd67jE3nrBO0kpe4_abZr20VbsBTOlA?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [38c6494a-80bd-4528-a550-7403f929808a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.58ms Completed 201 Created in 23ms (Views: 0.9ms | ActiveRecord: 3.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$yQE23Fsveih4XJElIChFpOQnv8q/Ec0mXvyA7vQ8xoOf0/gG3jA3S"], ["created_at", "2015-06-03 00:07:40.417033"], ["updated_at", "2015-06-03 00:07:40.417033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:40.418998"], ["user_id", "8c9e2e6e-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.419715"], ["updated_at", "2015-06-03 00:07:40.419715"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:40.424753"], ["updated_at", "2015-06-03 00:07:40.424753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8c9e2e6e-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8c9f54d8-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8c9e2e6e-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8c9f54d8-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.428897"], ["updated_at", "2015-06-03 00:07:40.428897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '8c9f54d8-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "8c9f54d8-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.433686"], ["updated_at", "2015-06-03 00:07:40.433686"], ["token", "jAq8YhPM5mqH_Ke144EDNg0YcNMyevFhF56Ds-UNoro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/8c9f54d8-0984-11e5-ba36-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:40 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"8c9f54d8-0984-11e5-ba36-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:40.436866') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ee3a73d6-95c3-4a3f-a89c-cb93c5702b8d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:40.438467"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:40.439254"], ["id", "ee3a73d6-95c3-4a3f-a89c-cb93c5702b8d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "8c9f54d8-0984-11e5-ba36-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8c9e2e6e-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8c9e2e6e-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8c9f54d8-0984-11e5-ba36-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8c9f54d8-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "8c9f54d8-0984-11e5-ba36-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.449682"], ["updated_at", "2015-06-03 00:07:40.449682"], ["token", "5JhpubfFMrRAR9y_ifWuBETJTASSt3fhvOd41Weeih4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 57142a97-fcbb-4140-9e60-a60eadf45c15) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8ca332a6-0984-11e5-ba36-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8ca332a6-0984-11e5-ba36-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [57142a97-fcbb-4140-9e60-a60eadf45c15] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8ca332a6-0984-11e5-ba36-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [57142a97-fcbb-4140-9e60-a60eadf45c15] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8c9f54d8-0984-11e5-ba36-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [57142a97-fcbb-4140-9e60-a60eadf45c15] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [57142a97-fcbb-4140-9e60-a60eadf45c15] Clubhouse::Mailer#invitation: processed outbound mail in 3.4ms [ActiveJob] [ActionMailer::DeliveryJob] [57142a97-fcbb-4140-9e60-a60eadf45c15] Sent mail to email@example.com (2.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [57142a97-fcbb-4140-9e60-a60eadf45c15] Date: Tue, 02 Jun 2015 17:07:40 -0700 From: from@example.com To: email@example.com Message-ID: <556e454c708f1_e1f23fee0d45e1fc8377d@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/5JhpubfFMrRAR9y_ifWuBETJTASSt3fhvOd41Weeih4?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [57142a97-fcbb-4140-9e60-a60eadf45c15] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.69ms Completed 201 Created in 28ms (Views: 1.7ms | ActiveRecord: 3.3ms)  (1.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$EUkIhFpaBTeXPsC0MaaUvO74kE8YQDFSPYSpuFYbQxs4E9vn7W3v."], ["created_at", "2015-06-03 00:07:40.476670"], ["updated_at", "2015-06-03 00:07:40.476670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:07:40.478756"], ["user_id", "8ca74ab2-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.479491"], ["updated_at", "2015-06-03 00:07:40.479491"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:07:40.492371"], ["updated_at", "2015-06-03 00:07:40.492371"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ca74ab2-0984-11e5-ba36-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '8ca9ace4-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ca74ab2-0984-11e5-ba36-a8667f0424ad"], ["organization_id", "8ca9ace4-0984-11e5-ba36-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:07:40.497594"], ["updated_at", "2015-06-03 00:07:40.497594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '8ca9ace4-0984-11e5-ba36-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "8ca9ace4-0984-11e5-ba36-a8667f0424ad"], ["created_at", "2015-06-03 00:07:40.503558"], ["updated_at", "2015-06-03 00:07:40.503558"], ["token", "XKYBU1zBpJa5sn42gDapCTl5Rk6vqHMpZOcPbGlHLLE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/8ca9ace4-0984-11e5-ba36-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:07:40 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"8ca9ace4-0984-11e5-ba36-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:07:40.507927') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fb454fe5-a27e-488a-be83-0aa5499cdf40"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:07:40.509641"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:07:40.510550"], ["id", "fb454fe5-a27e-488a-be83-0aa5499cdf40"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "8ca9ace4-0984-11e5-ba36-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8ca74ab2-0984-11e5-ba36-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8ca74ab2-0984-11e5-ba36-a8667f0424ad' LIMIT 1 [["organization_id", "8ca9ace4-0984-11e5-ba36-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '8ca9ace4-0984-11e5-ba36-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (3.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$AT28dJpI.0eZMTIF38TKEOK6KykN0Fp2HUg5PR0RnH3TmxcDMAgn."], ["created_at", "2015-06-03 00:08:15.639894"], ["updated_at", "2015-06-03 00:08:15.639894"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:15.669354"], ["user_id", "a19d3544-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.677343"], ["updated_at", "2015-06-03 00:08:15.677343"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:15.689094"], ["updated_at", "2015-06-03 00:08:15.689094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a19d3544-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1a44dca-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a19d3544-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a1a44dca-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:15.701606"], ["updated_at", "2015-06-03 00:08:15.701606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a1a44dca-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a1a44dca-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.716713"], ["updated_at", "2015-06-03 00:08:15.716713"], ["token", "EBFJi4-vhHvjVFy4Y_fLy0Y9gH9kU-e-UiMyIonOns4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 17:08:15 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$6Qjx5NcSWLKhRXQ9we4NqeRet7Ka.5/Rui3PAxR9Frxc3CBxqI.6."], ["created_at", "2015-06-03 00:08:15.750972"], ["updated_at", "2015-06-03 00:08:15.750972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:15.753923"], ["user_id", "a1adcb7a-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.754879"], ["updated_at", "2015-06-03 00:08:15.754879"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:15.759692"], ["updated_at", "2015-06-03 00:08:15.759692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1adcb7a-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1af05b2-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1adcb7a-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a1af05b2-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:15.763371"], ["updated_at", "2015-06-03 00:08:15.763371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'a1af05b2-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "a1af05b2-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.768592"], ["updated_at", "2015-06-03 00:08:15.768592"], ["token", "shmHl9CNbVjtxAC8zIAv0Quc3mnXrrJOzDx4XGY-oUE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/a1b06eac-0984-11e5-8bd0-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:08:15 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"a1b06eac-0984-11e5-8bd0-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:15.772100') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "647e60a8-038b-40eb-9c7e-374c1195ee5a"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:15.779997"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:15.781905"], ["id", "647e60a8-038b-40eb-9c7e-374c1195ee5a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a1b06eac-0984-11e5-8bd0-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1adcb7a-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a1af05b2-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a1adcb7a-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a1af05b2-0984-11e5-8bd0-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a1b06eac-0984-11e5-8bd0-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 46ms (ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$KMXxWmuzS4WN2pFSJNq2xuqWjPvPG5a6mkhhsifKXYASQfoe9/Ary"], ["created_at", "2015-06-03 00:08:15.829116"], ["updated_at", "2015-06-03 00:08:15.829116"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:15.832005"], ["user_id", "a1b9ae90-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.832914"], ["updated_at", "2015-06-03 00:08:15.832914"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:15.837824"], ["updated_at", "2015-06-03 00:08:15.837824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1b9ae90-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1baf16a-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1b9ae90-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a1baf16a-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:15.841884"], ["updated_at", "2015-06-03 00:08:15.841884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a1baf16a-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a1baf16a-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.848366"], ["updated_at", "2015-06-03 00:08:15.848366"], ["token", "o9Hw9B64UO_SL6Fs7ftyPm8z2pQg2Hh5nFTgCv0D0is"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$9KaTEGFcdj5Z6oNn5L5ePOcdswm5PKAFjUVlPClRos80w7Y.A0MP2"], ["created_at", "2015-06-03 00:08:15.856810"], ["updated_at", "2015-06-03 00:08:15.856810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:15.863485"], ["updated_at", "2015-06-03 00:08:15.863485"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1be081e-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1bee766-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1be081e-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a1bee766-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.869307"], ["updated_at", "2015-06-03 00:08:15.869307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 17:08:15 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$3fvFvLktAJb6QaBBRwXlleQgfemL7DMY1E9k5ovEdr7ph3fzhR9vG"], ["created_at", "2015-06-03 00:08:15.884614"], ["updated_at", "2015-06-03 00:08:15.884614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:15.886820"], ["user_id", "a1c21cec-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.888218"], ["updated_at", "2015-06-03 00:08:15.888218"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:15.894524"], ["updated_at", "2015-06-03 00:08:15.894524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1c21cec-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1c3a206-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1c21cec-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a1c3a206-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:15.898708"], ["updated_at", "2015-06-03 00:08:15.898708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a1c3a206-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a1c3a206-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.903631"], ["updated_at", "2015-06-03 00:08:15.903631"], ["token", "5FmwbJMgLWD8_t7Q1Qzsq83oOZSHA3hb7mIu9sRN3_Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$GXQGai5TKTD867KF/RtBSOqnVCVdM7SjG5JJoKZRt/l02m637jgUK"], ["created_at", "2015-06-03 00:08:15.911073"], ["updated_at", "2015-06-03 00:08:15.911073"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:15.917062"], ["updated_at", "2015-06-03 00:08:15.917062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1c626c0-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1c70cac-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a1c626c0-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a1c70cac-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.920786"], ["updated_at", "2015-06-03 00:08:15.920786"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/a1c3a206-0984-11e5-8bd0-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:08:15 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"a1c3a206-0984-11e5-8bd0-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:15.926448') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ae453421-8f34-43f6-9f3a-13c52d3c96b7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:15.928686"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:15.929891"], ["id", "ae453421-8f34-43f6-9f3a-13c52d3c96b7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a1c3a206-0984-11e5-8bd0-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1c21cec-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a1c21cec-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a1c3a206-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "a1c3a206-0984-11e5-8bd0-a8667f0424ad"]] Completed 200 OK in 25ms (Views: 11.0ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$Cpxcb2K1ZxjTvMnG/LY8zevoJFnVxR9LuzTnC756l0gk85QStvL/G"], ["created_at", "2015-06-03 00:08:15.961013"], ["updated_at", "2015-06-03 00:08:15.961013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:15.963026"], ["user_id", "a1cdc376-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.963812"], ["updated_at", "2015-06-03 00:08:15.963812"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:15.969721"], ["updated_at", "2015-06-03 00:08:15.969721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1cdc376-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1cf1d5c-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1cdc376-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a1cf1d5c-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:15.975112"], ["updated_at", "2015-06-03 00:08:15.975112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'a1cf1d5c-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "a1cf1d5c-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:15.981090"], ["updated_at", "2015-06-03 00:08:15.981090"], ["token", "i9NXCkydjN9Ycbq3W7hu6-l33hIshISpa_3j9eQKH-A"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:08:15 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$EBpXyPqCxTTygosHwNTfS.XjXR.vO.WOixVLOUp1kYJ8RVjX.apT."], ["created_at", "2015-06-03 00:08:15.999029"], ["updated_at", "2015-06-03 00:08:15.999029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.001318"], ["user_id", "a1d395bc-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.002301"], ["updated_at", "2015-06-03 00:08:16.002301"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.009186"], ["updated_at", "2015-06-03 00:08:16.009186"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1d395bc-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a1d6a3ec-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1d395bc-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a1d6a3ec-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.024257"], ["updated_at", "2015-06-03 00:08:16.024257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a1d6a3ec-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a1d6a3ec-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.029247"], ["updated_at", "2015-06-03 00:08:16.029247"], ["token", "-THLz2PS-ZVgpw2cxrZnxr0S7gU9aV7lX3x5AwhegIc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:16.034006') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d120cbd5-e293-4557-a3b4-15c08b4a867c"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:16.036569"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:16.038510"], ["id", "d120cbd5-e293-4557-a3b4-15c08b4a867c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a1d395bc-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a1d395bc-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a1d6a3ec-0984-11e5-8bd0-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a1d6a3ec-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "a1d6a3ec-0984-11e5-8bd0-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.057462"], ["updated_at", "2015-06-03 00:08:16.057462"], ["token", "wruUEkHtWS0V8zaJnrPPWzWZyIJz07_yC8zkOiDw-ho"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 87b6b4aa-e30c-4d6c-9999-a85269148a9f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a1dc918a-0984-11e5-8bd0-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a1dc918a-0984-11e5-8bd0-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [87b6b4aa-e30c-4d6c-9999-a85269148a9f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a1dc918a-0984-11e5-8bd0-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [87b6b4aa-e30c-4d6c-9999-a85269148a9f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a1d6a3ec-0984-11e5-8bd0-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [87b6b4aa-e30c-4d6c-9999-a85269148a9f] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [87b6b4aa-e30c-4d6c-9999-a85269148a9f] Clubhouse::Mailer#invitation: processed outbound mail in 308.5ms [ActiveJob] [ActionMailer::DeliveryJob] [87b6b4aa-e30c-4d6c-9999-a85269148a9f] Sent mail to email@example.com (7.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [87b6b4aa-e30c-4d6c-9999-a85269148a9f] Date: Tue, 02 Jun 2015 17:08:16 -0700 From: from@example.com To: email@example.com Message-ID: <556e457063870_e21b3fc4d6060204594de@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/wruUEkHtWS0V8zaJnrPPWzWZyIJz07_yC8zkOiDw-ho?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [87b6b4aa-e30c-4d6c-9999-a85269148a9f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 316.78ms Completed 201 Created in 378ms (Views: 1.0ms | ActiveRecord: 4.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$sGl8A/JNySoyKqCB/NPZ.uJNTzLTZVVjbc1U32d723atViMNcrNFO"], ["created_at", "2015-06-03 00:08:16.421941"], ["updated_at", "2015-06-03 00:08:16.421941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.424619"], ["user_id", "a2142384-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.425599"], ["updated_at", "2015-06-03 00:08:16.425599"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.430567"], ["updated_at", "2015-06-03 00:08:16.430567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2142384-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a21566ae-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2142384-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a21566ae-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.434706"], ["updated_at", "2015-06-03 00:08:16.434706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'a21566ae-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "a21566ae-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.440365"], ["updated_at", "2015-06-03 00:08:16.440365"], ["token", "sgonQzew1fFxzJzEQIbPTYMXKKxrQAdTteDnrwNOJDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:16.444602') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6c479c2c-8363-4196-9e96-83288105d1d4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:16.446449"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:16.447340"], ["id", "6c479c2c-8363-4196-9e96-83288105d1d4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2142384-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a2142384-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a21566ae-0984-11e5-8bd0-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a21566ae-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "a21566ae-0984-11e5-8bd0-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.464741"], ["updated_at", "2015-06-03 00:08:16.464741"], ["token", "-36EtaJXRSf9Sgc17ENjsepUcCY3cLSp1MDVjqQ8jW0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 6c077d44-2d79-4b3f-bc92-053ea99092a8) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a21ab744-0984-11e5-8bd0-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a21ab744-0984-11e5-8bd0-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [6c077d44-2d79-4b3f-bc92-053ea99092a8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a21ab744-0984-11e5-8bd0-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [6c077d44-2d79-4b3f-bc92-053ea99092a8] Clubhouse::Organization Load (0.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a21566ae-0984-11e5-8bd0-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [6c077d44-2d79-4b3f-bc92-053ea99092a8] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [6c077d44-2d79-4b3f-bc92-053ea99092a8] Clubhouse::Mailer#invitation: processed outbound mail in 5.9ms [ActiveJob] [ActionMailer::DeliveryJob] [6c077d44-2d79-4b3f-bc92-053ea99092a8] Sent mail to email@example.com (2.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [6c077d44-2d79-4b3f-bc92-053ea99092a8] Date: Tue, 02 Jun 2015 17:08:16 -0700 From: from@example.com To: email@example.com Message-ID: <556e457074e97_e21b3fc4d6060204595a6@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/-36EtaJXRSf9Sgc17ENjsepUcCY3cLSp1MDVjqQ8jW0?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [6c077d44-2d79-4b3f-bc92-053ea99092a8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 9.55ms Completed 201 Created in 38ms (Views: 1.4ms | ActiveRecord: 5.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$TzDsB3rnjmP7Vc1vWoSg4.4.8e707XpHPy4kXUFdb1zJsG1y1xlG2"], ["created_at", "2015-06-03 00:08:16.492427"], ["updated_at", "2015-06-03 00:08:16.492427"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.494851"], ["user_id", "a21edd06-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.495682"], ["updated_at", "2015-06-03 00:08:16.495682"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.499980"], ["updated_at", "2015-06-03 00:08:16.499980"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a21edd06-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a21ff7f4-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a21edd06-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a21ff7f4-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.504705"], ["updated_at", "2015-06-03 00:08:16.504705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'a21ff7f4-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "a21ff7f4-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.509758"], ["updated_at", "2015-06-03 00:08:16.509758"], ["token", "kce9_zyI8QKvXJQ7x8eR0RpSLo7JW2l4Rwycr3Xc7B4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:16.516156') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bc740fe4-436a-455e-b072-5f13b7a3210d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:16.517894"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:16.518860"], ["id", "bc740fe4-436a-455e-b072-5f13b7a3210d"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a21edd06-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a21edd06-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a21ff7f4-0984-11e5-8bd0-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'a21ff7f4-0984-11e5-8bd0-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms (ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$LzdABNoqR1krRjrYIcvoYeJySD2AGG9Znq4ZjmjdImA948IhnSe9i"], ["created_at", "2015-06-03 00:08:16.543535"], ["updated_at", "2015-06-03 00:08:16.543535"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.545893"], ["user_id", "a226a9c8-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.546680"], ["updated_at", "2015-06-03 00:08:16.546680"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.551471"], ["updated_at", "2015-06-03 00:08:16.551471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a226a9c8-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a227d4b0-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a226a9c8-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a227d4b0-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.555096"], ["updated_at", "2015-06-03 00:08:16.555096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'a227d4b0-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "a227d4b0-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.560550"], ["updated_at", "2015-06-03 00:08:16.560550"], ["token", "hC9P1EeIFd4CFAjCuuVmK05STwigzt2eun5dcXpn9sQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$L9Qpr7MjhzvmtcYwGgd9oe5MuzDpuCUvTeUBM4FORL2Npa2PzQhRC"], ["created_at", "2015-06-03 00:08:16.572503"], ["updated_at", "2015-06-03 00:08:16.572503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.574898"], ["user_id", "a22b1ddc-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.575583"], ["updated_at", "2015-06-03 00:08:16.575583"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.581296"], ["updated_at", "2015-06-03 00:08:16.581296"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a22b1ddc-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a22c64e4-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a22b1ddc-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a22c64e4-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.586721"], ["updated_at", "2015-06-03 00:08:16.586721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'a22c64e4-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "a22c64e4-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.594544"], ["updated_at", "2015-06-03 00:08:16.594544"], ["token", "fJKHfzCFp1fzS1NfI1r8vkEzM7gAELQal6JtZb2hQIA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/a22e6cda-0984-11e5-8bd0-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"a22e6cda-0984-11e5-8bd0-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:16.597453') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bfe88120-c098-4de6-a311-f4a10fcebfd0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:16.598889"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:16.599646"], ["id", "bfe88120-c098-4de6-a311-f4a10fcebfd0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a22e6cda-0984-11e5-8bd0-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a22b1ddc-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a22c64e4-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a22b1ddc-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a22c64e4-0984-11e5-8bd0-a8667f0424ad"]] Completed 200 OK in 11ms (Views: 1.2ms | ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$7GeQaBRaReX8pkBSIMMCxOPbYHKiwUhhMh/tVzpvut99wtB4A8qoC"], ["created_at", "2015-06-03 00:08:16.617794"], ["updated_at", "2015-06-03 00:08:16.617794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.619637"], ["user_id", "a231fb34-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.620270"], ["updated_at", "2015-06-03 00:08:16.620270"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.626720"], ["updated_at", "2015-06-03 00:08:16.626720"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a231fb34-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a233781a-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a231fb34-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a233781a-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.633352"], ["updated_at", "2015-06-03 00:08:16.633352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'a233781a-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "a233781a-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.638948"], ["updated_at", "2015-06-03 00:08:16.638948"], ["token", "bTEGEN1Ikr68V-9vqu_jyWqnwkYLMwWof3vtUyYDWcg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$TkCJfUJ5Q.er/Ty12Ibl1eHe/eMRjBzRjSbco2tZot236ee6pyrcK"], ["created_at", "2015-06-03 00:08:16.649254"], ["updated_at", "2015-06-03 00:08:16.649254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.651131"], ["user_id", "a236c826-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.651807"], ["updated_at", "2015-06-03 00:08:16.651807"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.658613"], ["updated_at", "2015-06-03 00:08:16.658613"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a236c826-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a2383896-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a236c826-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a2383896-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.663375"], ["updated_at", "2015-06-03 00:08:16.663375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'a2383896-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "a2383896-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.668939"], ["updated_at", "2015-06-03 00:08:16.668939"], ["token", "8i1SBaaQ4y2V6Icf6xAu9W4ZhJ4QFswVc6ADR6ardEM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/a239cbca-0984-11e5-8bd0-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"a239cbca-0984-11e5-8bd0-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:16.672698') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dde426c7-d175-431f-9e3f-4d3e8455113e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:16.674091"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:16.674881"], ["id", "dde426c7-d175-431f-9e3f-4d3e8455113e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a239cbca-0984-11e5-8bd0-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a236c826-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a2383896-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a236c826-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a2383896-0984-11e5-8bd0-a8667f0424ad"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."id" != 'a239cbca-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = 'a2383896-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:08:16.685879"], ["id", "a239cbca-0984-11e5-8bd0-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$KsW2a.nA5g0c.LhsSWVikONiutWRDthJSiIsA/rQJsi2XYYuVMKYW"], ["created_at", "2015-06-03 00:08:16.697650"], ["updated_at", "2015-06-03 00:08:16.697650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.699547"], ["user_id", "a23e2c06-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.700202"], ["updated_at", "2015-06-03 00:08:16.700202"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.704384"], ["updated_at", "2015-06-03 00:08:16.704384"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a23e2c06-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a23f31be-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a23e2c06-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a23f31be-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.708360"], ["updated_at", "2015-06-03 00:08:16.708360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'a23f31be-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "a23f31be-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.713796"], ["updated_at", "2015-06-03 00:08:16.713796"], ["token", "vBV4_KUBWjfKA8Sql4xQANPvcBYUjyjXsLiD-AHNQyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$Z5dfZ5rm3zRhB3JOWqZopubKoZol2ERGrjoRHjy8Hn2mi0ydbvu8O"], ["created_at", "2015-06-03 00:08:16.725029"], ["updated_at", "2015-06-03 00:08:16.725029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.728242"], ["user_id", "a2425fb0-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.729231"], ["updated_at", "2015-06-03 00:08:16.729231"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.733771"], ["updated_at", "2015-06-03 00:08:16.733771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a2425fb0-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a243a528-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a2425fb0-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a243a528-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.736866"], ["updated_at", "2015-06-03 00:08:16.736866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'a243a528-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "a243a528-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.743299"], ["updated_at", "2015-06-03 00:08:16.743299"], ["token", "Cr8ZqmRZQ5u2wdW3DLevT8xOG5fPhNgTDxCi4zEndLA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a243a528-0984-11e5-8bd0-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"a243a528-0984-11e5-8bd0-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:16.748013') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "52b0093f-e3d9-4597-8ae2-2200f6e54c6a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:16.749722"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:16.750688"], ["id", "52b0093f-e3d9-4597-8ae2-2200f6e54c6a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a243a528-0984-11e5-8bd0-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2425fb0-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a2425fb0-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a243a528-0984-11e5-8bd0-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a243a528-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "a243a528-0984-11e5-8bd0-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.759061"], ["updated_at", "2015-06-03 00:08:16.759061"], ["token", "t86J6k-D4SrfHMVJ6lG9-MKAxqWLjJDegM61-0pQbAY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b3d2e937-a404-4ac5-907b-958d58d33085) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a24786ac-0984-11e5-8bd0-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a24786ac-0984-11e5-8bd0-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [b3d2e937-a404-4ac5-907b-958d58d33085] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a24786ac-0984-11e5-8bd0-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [b3d2e937-a404-4ac5-907b-958d58d33085] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a243a528-0984-11e5-8bd0-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [b3d2e937-a404-4ac5-907b-958d58d33085] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [b3d2e937-a404-4ac5-907b-958d58d33085] Clubhouse::Mailer#invitation: processed outbound mail in 4.2ms [ActiveJob] [ActionMailer::DeliveryJob] [b3d2e937-a404-4ac5-907b-958d58d33085] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [b3d2e937-a404-4ac5-907b-958d58d33085] Date: Tue, 02 Jun 2015 17:08:16 -0700 From: from@example.com To: email@example.com Message-ID: <556e4570bb800_e21b3fc4d6060204596c7@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/t86J6k-D4SrfHMVJ6lG9-MKAxqWLjJDegM61-0pQbAY?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b3d2e937-a404-4ac5-907b-958d58d33085] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.66ms Completed 201 Created in 23ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$M4BsDbKDQAKwynw1gpCU7e1lHmBdnpt8KKh6taR0nDrBtqdJmsKYa"], ["created_at", "2015-06-03 00:08:16.777664"], ["updated_at", "2015-06-03 00:08:16.777664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.779426"], ["user_id", "a24a5b52-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.780323"], ["updated_at", "2015-06-03 00:08:16.780323"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.786163"], ["updated_at", "2015-06-03 00:08:16.786163"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a24a5b52-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a24bac46-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a24a5b52-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a24bac46-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.791328"], ["updated_at", "2015-06-03 00:08:16.791328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'a24bac46-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "a24bac46-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.796329"], ["updated_at", "2015-06-03 00:08:16.796329"], ["token", "RrfRGe3YHhRzx8P5MmYIo7z3IFToLeLPJ5R6iyH70gU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a24bac46-0984-11e5-8bd0-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"a24bac46-0984-11e5-8bd0-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:16.802266') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "18ccb1db-1008-48d1-8bef-2e1410ea3cf7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:16.804605"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:16.805794"], ["id", "18ccb1db-1008-48d1-8bef-2e1410ea3cf7"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a24bac46-0984-11e5-8bd0-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a24a5b52-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a24a5b52-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a24bac46-0984-11e5-8bd0-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a24bac46-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "a24bac46-0984-11e5-8bd0-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.825666"], ["updated_at", "2015-06-03 00:08:16.825666"], ["token", "fg47x11qWTiYlEfF6pQlslV0nbyuyKz8nMBALj04gGc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 46160fa1-4e82-44d5-ba29-cbf2e53f3f4d) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a251c4be-0984-11e5-8bd0-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a251c4be-0984-11e5-8bd0-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [46160fa1-4e82-44d5-ba29-cbf2e53f3f4d] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a251c4be-0984-11e5-8bd0-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [46160fa1-4e82-44d5-ba29-cbf2e53f3f4d] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a24bac46-0984-11e5-8bd0-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [46160fa1-4e82-44d5-ba29-cbf2e53f3f4d] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [46160fa1-4e82-44d5-ba29-cbf2e53f3f4d] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [46160fa1-4e82-44d5-ba29-cbf2e53f3f4d] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [46160fa1-4e82-44d5-ba29-cbf2e53f3f4d] Date: Tue, 02 Jun 2015 17:08:16 -0700 From: from@example.com To: email@example.com Message-ID: <556e4570cbdf9_e21b3fc4d606020459711@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/fg47x11qWTiYlEfF6pQlslV0nbyuyKz8nMBALj04gGc?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [46160fa1-4e82-44d5-ba29-cbf2e53f3f4d] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.37ms Completed 201 Created in 36ms (Views: 0.9ms | ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$kU1yFrgZI3j3xXZYxPCdu.Zg/rDx0HlsjBtW1uR4fXXMaVMgLKICO"], ["created_at", "2015-06-03 00:08:16.845108"], ["updated_at", "2015-06-03 00:08:16.845108"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.847606"], ["user_id", "a254acb0-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.848329"], ["updated_at", "2015-06-03 00:08:16.848329"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.853280"], ["updated_at", "2015-06-03 00:08:16.853280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a254acb0-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a255ee54-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a254acb0-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a255ee54-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.858215"], ["updated_at", "2015-06-03 00:08:16.858215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'a255ee54-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "a255ee54-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.862970"], ["updated_at", "2015-06-03 00:08:16.862970"], ["token", "eQUNwFAIUq1zkvEmBneSU2Rm9Xl_ATGq3F2T2kEGaJs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a255ee54-0984-11e5-8bd0-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"a255ee54-0984-11e5-8bd0-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.8ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:16.866316') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6e9f4529-dcd2-4f6d-8f1a-adac10a0bd2d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:16.868925"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:16.870143"], ["id", "6e9f4529-dcd2-4f6d-8f1a-adac10a0bd2d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a255ee54-0984-11e5-8bd0-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a254acb0-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a254acb0-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a255ee54-0984-11e5-8bd0-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'a255ee54-0984-11e5-8bd0-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$r/tIpc5zWi40haQpM8D3S.raM.DcTacSN1E3rfo.Ym.hWvEdu7ADW"], ["created_at", "2015-06-03 00:08:16.890927"], ["updated_at", "2015-06-03 00:08:16.890927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.894025"], ["user_id", "a25bd698-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.894695"], ["updated_at", "2015-06-03 00:08:16.894695"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.898863"], ["updated_at", "2015-06-03 00:08:16.898863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a25bd698-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a25ceb00-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a25bd698-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a25ceb00-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.904441"], ["updated_at", "2015-06-03 00:08:16.904441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'a25ceb00-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "a25ceb00-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.910722"], ["updated_at", "2015-06-03 00:08:16.910722"], ["token", "kZVokUgUhHJwpWl0BT9aKTTCafvlW7iqIq0lEfi3vro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$UKJOknGHsap1GfTftbkV2OawHQo9aSxDdAoPCLxwJTgbgNK3rFhyW"], ["created_at", "2015-06-03 00:08:16.917176"], ["updated_at", "2015-06-03 00:08:16.917176"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.923573"], ["updated_at", "2015-06-03 00:08:16.923573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a25fafde-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a260a420-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a25fafde-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a260a420-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.928496"], ["updated_at", "2015-06-03 00:08:16.928496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$IjFMyGYWsHYkFp.CCQffgexJRWE9qGFA78QvkbYNg6jEz7MoFKV.."], ["created_at", "2015-06-03 00:08:16.943802"], ["updated_at", "2015-06-03 00:08:16.943802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:16.945796"], ["user_id", "a263bafc-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.946476"], ["updated_at", "2015-06-03 00:08:16.946476"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.950816"], ["updated_at", "2015-06-03 00:08:16.950816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a263bafc-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a264c47e-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a263bafc-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a264c47e-0984-11e5-8bd0-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:16.954990"], ["updated_at", "2015-06-03 00:08:16.954990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'a264c47e-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "a264c47e-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.961481"], ["updated_at", "2015-06-03 00:08:16.961481"], ["token", "bJnKlIdMc3PWhnkEW0zNZJsHwcykdN_ZvAjKc-x5pK0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$pNBj6ol8t4EuB0QC3ecTF.RWemlM6OGv.6giRtmJb99QuBPfc4KiS"], ["created_at", "2015-06-03 00:08:16.969258"], ["updated_at", "2015-06-03 00:08:16.969258"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:16.975987"], ["updated_at", "2015-06-03 00:08:16.975987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a267abe4-0984-11e5-8bd0-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'a268a59e-0984-11e5-8bd0-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a267abe4-0984-11e5-8bd0-a8667f0424ad"], ["organization_id", "a268a59e-0984-11e5-8bd0-a8667f0424ad"], ["created_at", "2015-06-03 00:08:16.980301"], ["updated_at", "2015-06-03 00:08:16.980301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:08:16 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:16.983356') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a935c945-7738-425f-915a-57d0d26e1ba5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:16.984732"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:16.985503"], ["id", "a935c945-7738-425f-915a-57d0d26e1ba5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (1.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a263bafc-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a263bafc-0984-11e5-8bd0-a8667f0424ad' LIMIT 1 [["organization_id", "a264c47e-0984-11e5-8bd0-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "a264c47e-0984-11e5-8bd0-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 1.5ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (3.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (5.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$TQb4805vrjS4SEK0xM0spuXSDoe7gtRMOFp5WQ4/.OmP/BQayP.1i"], ["created_at", "2015-06-03 00:08:34.091463"], ["updated_at", "2015-06-03 00:08:34.091463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.155618"], ["user_id", "ac9d9aa6-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.166456"], ["updated_at", "2015-06-03 00:08:34.166456"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.190632"], ["updated_at", "2015-06-03 00:08:34.190632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ac9d9aa6-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'acabb87a-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (3.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ac9d9aa6-0984-11e5-a729-a8667f0424ad"], ["organization_id", "acabb87a-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.217837"], ["updated_at", "2015-06-03 00:08:34.217837"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (3.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'acabb87a-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "acabb87a-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.253540"], ["updated_at", "2015-06-03 00:08:34.253540"], ["token", "DIwFgqD8pMEwNJLme-s9Syn9V_aWVld6czCiA1CjoK0"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/acb568fc-0984-11e5-a729-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"acb568fc-0984-11e5-a729-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.9ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:34.309623') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1576f75f-31db-4dcb-8b61-bb64172e13ce"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:34.324273"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:34.328134"], ["id", "1576f75f-31db-4dcb-8b61-bb64172e13ce"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "acb568fc-0984-11e5-a729-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ac9d9aa6-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "acabb87a-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ac9d9aa6-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "acabb87a-0984-11e5-a729-a8667f0424ad"]] Completed 200 OK in 61ms (Views: 10.4ms | ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$d07KTJ2cgl3c3JOZxwOqXumgKBxbqqlQu5XNQclznXRY0IbX.WDUC"], ["created_at", "2015-06-03 00:08:34.385966"], ["updated_at", "2015-06-03 00:08:34.385966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.388181"], ["user_id", "acc9385a-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.388865"], ["updated_at", "2015-06-03 00:08:34.388865"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.395384"], ["updated_at", "2015-06-03 00:08:34.395384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acc9385a-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'accaa4c4-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "acc9385a-0984-11e5-a729-a8667f0424ad"], ["organization_id", "accaa4c4-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.399337"], ["updated_at", "2015-06-03 00:08:34.399337"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'accaa4c4-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "accaa4c4-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.404846"], ["updated_at", "2015-06-03 00:08:34.404846"], ["token", "N0SqjiZsTggA4lV5pN3v1xuDjNBxq4ImPuOtM3XBvDc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$EJixXDukLCiPGeRV1/VqAuASWoOzAnL6A20Rbbv1HjLe45UVzTxJq"], ["created_at", "2015-06-03 00:08:34.419047"], ["updated_at", "2015-06-03 00:08:34.419047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.420989"], ["user_id", "acce3c4c-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.421767"], ["updated_at", "2015-06-03 00:08:34.421767"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.427379"], ["updated_at", "2015-06-03 00:08:34.427379"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acce3c4c-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'accf8d0e-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "acce3c4c-0984-11e5-a729-a8667f0424ad"], ["organization_id", "accf8d0e-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.431549"], ["updated_at", "2015-06-03 00:08:34.431549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'accf8d0e-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "accf8d0e-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.438085"], ["updated_at", "2015-06-03 00:08:34.438085"], ["token", "SL7x0RdPOZoG7kL_CSL07fl1F40hz7TITdD2PdXvnro"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$ywVdSMRDaKDj1jeoz5O/p.CQx7PT4zY93Bg2TNINgCqByvmynqPcO"], ["created_at", "2015-06-03 00:08:34.445198"], ["updated_at", "2015-06-03 00:08:34.445198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.450823"], ["updated_at", "2015-06-03 00:08:34.450823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acd2429c-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'acd332b0-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "acd2429c-0984-11e5-a729-a8667f0424ad"], ["organization_id", "acd332b0-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.455929"], ["updated_at", "2015-06-03 00:08:34.455929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:34.465561') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cbf48acb-3cab-42eb-b5fa-ff8d99ce56bb"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:34.467236"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:34.468185"], ["id", "cbf48acb-3cab-42eb-b5fa-ff8d99ce56bb"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "acce3c4c-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'acce3c4c-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "accf8d0e-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "accf8d0e-0984-11e5-a729-a8667f0424ad"]] Completed 200 OK in 20ms (Views: 2.4ms | ActiveRecord: 2.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$qtGFmC6cYHb.veKKA7GwQuFxvfkCpI68.zVxs8Kw01x7T7f683YCO"], ["created_at", "2015-06-03 00:08:34.496204"], ["updated_at", "2015-06-03 00:08:34.496204"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.503329"], ["user_id", "acda465e-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.505241"], ["updated_at", "2015-06-03 00:08:34.505241"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.513221"], ["updated_at", "2015-06-03 00:08:34.513221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acda465e-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'acdc951c-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "acda465e-0984-11e5-a729-a8667f0424ad"], ["organization_id", "acdc951c-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.517028"], ["updated_at", "2015-06-03 00:08:34.517028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'acdc951c-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "acdc951c-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.526188"], ["updated_at", "2015-06-03 00:08:34.526188"], ["token", "fwOS3wB4z1SY_deoduVql-4YsbZIP12cjTRWBxzFZ7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$5SZOrdcQ3e8kHuYFxbxQvujNC5daZ0Brd7dFHe6EEWjHrMdVoT.zi"], ["created_at", "2015-06-03 00:08:34.533857"], ["updated_at", "2015-06-03 00:08:34.533857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.539310"], ["updated_at", "2015-06-03 00:08:34.539310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acdfcf84-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ace0a38c-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "acdfcf84-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ace0a38c-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.544584"], ["updated_at", "2015-06-03 00:08:34.544584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$3YRj9X5YH66BO8IHAxxuCOEKQtaZHyUM6Nq87N/XPHjMErwjZhq3a"], ["created_at", "2015-06-03 00:08:34.555402"], ["updated_at", "2015-06-03 00:08:34.555402"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.558360"], ["user_id", "ace307d0-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.559555"], ["updated_at", "2015-06-03 00:08:34.559555"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.565290"], ["updated_at", "2015-06-03 00:08:34.565290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ace307d0-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ace48b82-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ace307d0-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ace48b82-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.569348"], ["updated_at", "2015-06-03 00:08:34.569348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'ace48b82-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "ace48b82-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.576959"], ["updated_at", "2015-06-03 00:08:34.576959"], ["token", "dWx23ciNg_96mIZaIpDLOeTaBQ9EXqGHeIdHyRPUQF0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/ace66042-0984-11e5-a729-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"ace66042-0984-11e5-a729-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:34.581871') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6f3ba494-b2ac-4bf7-8c1b-0ad70bdb134b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:34.584283"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:34.585208"], ["id", "6f3ba494-b2ac-4bf7-8c1b-0ad70bdb134b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ace66042-0984-11e5-a729-a8667f0424ad"]] User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ace307d0-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ace48b82-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ace307d0-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "ace48b82-0984-11e5-a729-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "ace66042-0984-11e5-a729-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 22ms (ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (1.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$iksOFQG5eCCNBSLAH9dZPeg5wOb25ZGfxbJAAff2nKkGZxpymvhji"], ["created_at", "2015-06-03 00:08:34.613970"], ["updated_at", "2015-06-03 00:08:34.613970"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.616792"], ["user_id", "acec01c8-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.617823"], ["updated_at", "2015-06-03 00:08:34.617823"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.627414"], ["updated_at", "2015-06-03 00:08:34.627414"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acec01c8-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'acee185a-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "acec01c8-0984-11e5-a729-a8667f0424ad"], ["organization_id", "acee185a-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.633065"], ["updated_at", "2015-06-03 00:08:34.633065"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'acee185a-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "acee185a-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.641813"], ["updated_at", "2015-06-03 00:08:34.641813"], ["token", "fSK4DMJZL7N73FEK6Byz6nvsZ5-C6RArJaaod6AIZzY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$kMOg6Ypp8pm4V40eMCMzY.DYGCAa58DNh7hHc6ItFbabU.f6oDLTG"], ["created_at", "2015-06-03 00:08:34.657713"], ["updated_at", "2015-06-03 00:08:34.657713"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.662724"], ["user_id", "acf2fd70-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.663858"], ["updated_at", "2015-06-03 00:08:34.663858"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.668705"], ["updated_at", "2015-06-03 00:08:34.668705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acf2fd70-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'acf44f22-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "acf2fd70-0984-11e5-a729-a8667f0424ad"], ["organization_id", "acf44f22-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.671969"], ["updated_at", "2015-06-03 00:08:34.671969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'acf44f22-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "acf44f22-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.678017"], ["updated_at", "2015-06-03 00:08:34.678017"], ["token", "OHbq4wACL1KVEBU_QCJTuIvieTTJWzSULx6SoN8rsOs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/acf5d39c-0984-11e5-a729-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"acf5d39c-0984-11e5-a729-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:34.682467') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "702b41c9-2de7-4ead-bb91-9cb76ccd9552"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:34.684970"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:34.686149"], ["id", "702b41c9-2de7-4ead-bb91-9cb76ccd9552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.8ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "acf5d39c-0984-11e5-a729-a8667f0424ad"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "acf2fd70-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "acf44f22-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'acf2fd70-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "acf44f22-0984-11e5-a729-a8667f0424ad"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."id" != 'acf5d39c-0984-11e5-a729-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = 'acf44f22-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:08:34.699910"], ["id", "acf5d39c-0984-11e5-a729-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 1.0ms | ActiveRecord: 4.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$pY04W704lSio/6cxK9rE1.d7apmWZdeu65b4oag59yjqjTmnI7DQS"], ["created_at", "2015-06-03 00:08:34.713659"], ["updated_at", "2015-06-03 00:08:34.713659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.716188"], ["user_id", "acfb38be-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.717042"], ["updated_at", "2015-06-03 00:08:34.717042"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.721731"], ["updated_at", "2015-06-03 00:08:34.721731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acfb38be-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'acfc673e-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "acfb38be-0984-11e5-a729-a8667f0424ad"], ["organization_id", "acfc673e-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.728620"], ["updated_at", "2015-06-03 00:08:34.728620"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'acfc673e-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "acfc673e-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.735172"], ["updated_at", "2015-06-03 00:08:34.735172"], ["token", "ekDMubRZaqwD9asjAgqxQwdg88ulWDAqH_-k75EOFzM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$tsE7Wvl5l2qJDtMYIIAeke9xK6auG11CYawu6.Q1kitV9677y0NqO"], ["created_at", "2015-06-03 00:08:34.748739"], ["updated_at", "2015-06-03 00:08:34.748739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.750884"], ["user_id", "ad008d00-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.751584"], ["updated_at", "2015-06-03 00:08:34.751584"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.759333"], ["updated_at", "2015-06-03 00:08:34.759333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad008d00-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad022b24-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad008d00-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad022b24-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.763792"], ["updated_at", "2015-06-03 00:08:34.763792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'ad022b24-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "ad022b24-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.768275"], ["updated_at", "2015-06-03 00:08:34.768275"], ["token", "VtVIi9fW_pk8GOJZU8BUFzReqpi2YMM8WzYhYizz8DA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$Ye8hq0EVDf4kKrFi44ScZuRPaZM0gQ2ekUr4vZfI5nTunWcEK6AoK"], ["created_at", "2015-06-03 00:08:34.774633"], ["updated_at", "2015-06-03 00:08:34.774633"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.782535"], ["updated_at", "2015-06-03 00:08:34.782535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad048f04-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad05ba50-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad048f04-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad05ba50-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.787052"], ["updated_at", "2015-06-03 00:08:34.787052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/ad022b24-0984-11e5-a729-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"ad022b24-0984-11e5-a729-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:34.791823') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a4a24aca-5c11-4f6a-95db-951269c46fa6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:34.793799"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:34.794876"], ["id", "a4a24aca-5c11-4f6a-95db-951269c46fa6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ad022b24-0984-11e5-a729-a8667f0424ad"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad008d00-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ad008d00-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "ad022b24-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "ad022b24-0984-11e5-a729-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 1.7ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$vL9wGvSUWDCQzGQMH.xAPuEHpFqTurjaNjgdtw7v8VVF.rkwq8MT."], ["created_at", "2015-06-03 00:08:34.812199"], ["updated_at", "2015-06-03 00:08:34.812199"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.814632"], ["user_id", "ad0a3fa8-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.815625"], ["updated_at", "2015-06-03 00:08:34.815625"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.820240"], ["updated_at", "2015-06-03 00:08:34.820240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad0a3fa8-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad0b7012-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad0a3fa8-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad0b7012-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.824578"], ["updated_at", "2015-06-03 00:08:34.824578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'ad0b7012-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "ad0b7012-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.829964"], ["updated_at", "2015-06-03 00:08:34.829964"], ["token", "zjK1Nk-MyXtzCYockW_2MU0HBInCbkA4ll4ySv_pz1Y"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$SD5PuvsoWalx3kUPgdBX9uR.n1j7DC.HV0cpvVcrRhxjOyDVXfkbe"], ["created_at", "2015-06-03 00:08:34.841730"], ["updated_at", "2015-06-03 00:08:34.841730"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.851326"], ["updated_at", "2015-06-03 00:08:34.851326"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad0f08e4-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad103962-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad0f08e4-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad103962-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.860513"], ["updated_at", "2015-06-03 00:08:34.860513"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$JYHDBLUzI64JeMo/52/kpOkdSvpMXkuNv6db40aKlqwhF/Y1Hh.b."], ["created_at", "2015-06-03 00:08:34.881786"], ["updated_at", "2015-06-03 00:08:34.881786"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.890361"], ["user_id", "ad1540e2-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.892022"], ["updated_at", "2015-06-03 00:08:34.892022"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (4.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.901798"], ["updated_at", "2015-06-03 00:08:34.901798"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad1540e2-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad185606-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad1540e2-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad185606-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:34.915151"], ["updated_at", "2015-06-03 00:08:34.915151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'ad185606-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "ad185606-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.924136"], ["updated_at", "2015-06-03 00:08:34.924136"], ["token", "aPfL_6Vrm2LEHvnDO7y4BRr24Qnm2q7ZWeR3IRob874"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:08:34 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (9.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$anSvJh/XP2PsBi.PA3tS2OAw3DDljQtsSXh9jxT/o5fKJD5OCuPRy"], ["created_at", "2015-06-03 00:08:34.941620"], ["updated_at", "2015-06-03 00:08:34.941620"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:34.961342"], ["user_id", "ad1eba00-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:34.965570"], ["updated_at", "2015-06-03 00:08:34.965570"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (2.7ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (3.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:34.984062"], ["updated_at", "2015-06-03 00:08:34.984062"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (4.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad1eba00-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad258722-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad1eba00-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad258722-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.012275"], ["updated_at", "2015-06-03 00:08:35.012275"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'ad258722-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "ad258722-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.027408"], ["updated_at", "2015-06-03 00:08:35.027408"], ["token", "6Nvw-lKD7F9E4QemazW5ALyTPMhODOe-fUin0uZCiNE"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:08:35 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:35.048539') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9a7adb23-12f3-4da5-9fe6-cab2d198b029"]]  (1.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:35.053282"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:35.058837"], ["id", "9a7adb23-12f3-4da5-9fe6-cab2d198b029"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad1eba00-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ad1eba00-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "ad258722-0984-11e5-a729-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'ad258722-0984-11e5-a729-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 66ms (ActiveRecord: 4.8ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$K2fzZqlSkLSWqY58r0RtROOyEYVTi.oagp0U0AsXkJBoSDKFwE9sG"], ["created_at", "2015-06-03 00:08:35.125531"], ["updated_at", "2015-06-03 00:08:35.125531"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:35.129934"], ["user_id", "ad3a36f4-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.130751"], ["updated_at", "2015-06-03 00:08:35.130751"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:35.136012"], ["updated_at", "2015-06-03 00:08:35.136012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad3a36f4-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad3badf4-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad3a36f4-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad3badf4-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.140758"], ["updated_at", "2015-06-03 00:08:35.140758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'ad3badf4-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "ad3badf4-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.147132"], ["updated_at", "2015-06-03 00:08:35.147132"], ["token", "cR1sDg3eG9OzP4UJis6crw6jPuEspfxHG-ByZNS9R7o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:08:35 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:35.150895') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d8463547-ed8a-4fc9-bd8e-900508bdab68"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:35.153098"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:35.155517"], ["id", "d8463547-ed8a-4fc9-bd8e-900508bdab68"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad3a36f4-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ad3a36f4-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "ad3badf4-0984-11e5-a729-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ad3badf4-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ad3badf4-0984-11e5-a729-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.166826"], ["updated_at", "2015-06-03 00:08:35.166826"], ["token", "_CNc3x4eNlTdq1Y2Gl9J_0hKJMk4O2ugrQOCoIIPXDI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 78de7a2f-c18c-4383-a1cf-b134dfcb0241) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ad406f92-0984-11e5-a729-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ad406f92-0984-11e5-a729-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [78de7a2f-c18c-4383-a1cf-b134dfcb0241] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ad406f92-0984-11e5-a729-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [78de7a2f-c18c-4383-a1cf-b134dfcb0241] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ad3badf4-0984-11e5-a729-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [78de7a2f-c18c-4383-a1cf-b134dfcb0241] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [78de7a2f-c18c-4383-a1cf-b134dfcb0241] Clubhouse::Mailer#invitation: processed outbound mail in 339.7ms [ActiveJob] [ActionMailer::DeliveryJob] [78de7a2f-c18c-4383-a1cf-b134dfcb0241] Sent mail to email@example.com (9.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [78de7a2f-c18c-4383-a1cf-b134dfcb0241] Date: Tue, 02 Jun 2015 17:08:35 -0700 From: from@example.com To: email@example.com Message-ID: <556e4583899dc_e2423feca0460204709bc@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/_CNc3x4eNlTdq1Y2Gl9J_0hKJMk4O2ugrQOCoIIPXDI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [78de7a2f-c18c-4383-a1cf-b134dfcb0241] Performed ActionMailer::DeliveryJob from Inline(mailers) in 350.03ms Completed 201 Created in 419ms (Views: 1.2ms | ActiveRecord: 3.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$wheB8YCjpYK4H0pDfGu4hu8HWr/1.mav1HKOjO2cPZW7cLZuPjwMG"], ["created_at", "2015-06-03 00:08:35.584847"], ["updated_at", "2015-06-03 00:08:35.584847"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:35.589032"], ["user_id", "ad804540-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.590400"], ["updated_at", "2015-06-03 00:08:35.590400"], ["client", "App"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:35.598220"], ["updated_at", "2015-06-03 00:08:35.598220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad804540-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad822f9a-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad804540-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad822f9a-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.602959"], ["updated_at", "2015-06-03 00:08:35.602959"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'ad822f9a-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "ad822f9a-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.610980"], ["updated_at", "2015-06-03 00:08:35.610980"], ["token", "zGqvVH1hDQZeloJYB3_nJrS4U6zVwMhxqqJLKM4U80U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:08:35 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:35.616470') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "46b54117-8b06-4e9c-9bda-90738a6ca001"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:35.618486"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:35.619718"], ["id", "46b54117-8b06-4e9c-9bda-90738a6ca001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad804540-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ad804540-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "ad822f9a-0984-11e5-a729-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ad822f9a-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ad822f9a-0984-11e5-a729-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.633021"], ["updated_at", "2015-06-03 00:08:35.633021"], ["token", "FxQdjW2diDLcJoGhPL9cMdTY99165mZdOvYNxDn-R1A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b494ddd5-d163-471a-bf47-e10191212182) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ad8783dc-0984-11e5-a729-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ad8783dc-0984-11e5-a729-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [b494ddd5-d163-471a-bf47-e10191212182] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ad8783dc-0984-11e5-a729-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [b494ddd5-d163-471a-bf47-e10191212182] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ad822f9a-0984-11e5-a729-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [b494ddd5-d163-471a-bf47-e10191212182] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [b494ddd5-d163-471a-bf47-e10191212182] Clubhouse::Mailer#invitation: processed outbound mail in 3.4ms [ActiveJob] [ActionMailer::DeliveryJob] [b494ddd5-d163-471a-bf47-e10191212182] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [b494ddd5-d163-471a-bf47-e10191212182] Date: Tue, 02 Jun 2015 17:08:35 -0700 From: from@example.com To: email@example.com Message-ID: <556e45839ce11_e2423feca046020471044@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/FxQdjW2diDLcJoGhPL9cMdTY99165mZdOvYNxDn-R1A?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b494ddd5-d163-471a-bf47-e10191212182] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.93ms Completed 201 Created in 29ms (Views: 1.0ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$V3R9KWjQxgFsOqa.uSRY0ukW1MojzgoM0Bcba9ZvL/3e5IBn6Rp4i"], ["created_at", "2015-06-03 00:08:35.653219"], ["updated_at", "2015-06-03 00:08:35.653219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:35.654942"], ["user_id", "ad8a899c-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.655775"], ["updated_at", "2015-06-03 00:08:35.655775"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:35.660499"], ["updated_at", "2015-06-03 00:08:35.660499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad8a899c-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad8ba3f4-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad8a899c-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad8ba3f4-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.663953"], ["updated_at", "2015-06-03 00:08:35.663953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'ad8ba3f4-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "ad8ba3f4-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.668243"], ["updated_at", "2015-06-03 00:08:35.668243"], ["token", "OKyuOkP9dPcw8nDpbqHKX2FHyhTnUkASobt8r-wOsgU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 17:08:35 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$W1PW.EtBinlA6DCAmHlucuv8Vli5Rdtj74KMqc5BrPUFV5ycZNi8q"], ["created_at", "2015-06-03 00:08:35.678177"], ["updated_at", "2015-06-03 00:08:35.678177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:35.679975"], ["user_id", "ad8e59aa-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.680636"], ["updated_at", "2015-06-03 00:08:35.680636"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:35.685755"], ["updated_at", "2015-06-03 00:08:35.685755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad8e59aa-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad8f8cb2-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad8e59aa-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad8f8cb2-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.689882"], ["updated_at", "2015-06-03 00:08:35.689882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'ad8f8cb2-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "ad8f8cb2-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.694950"], ["updated_at", "2015-06-03 00:08:35.694950"], ["token", "Ktm9MjZk9x16QZfCpcxpgyEFZ7gG5uYO762xecyRrRY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ad8f8cb2-0984-11e5-a729-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:08:35 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"ad8f8cb2-0984-11e5-a729-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:35.698460') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6eddde24-d12e-4b49-82f7-ed26afd44351"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:35.699838"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:35.700939"], ["id", "6eddde24-d12e-4b49-82f7-ed26afd44351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ad8f8cb2-0984-11e5-a729-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad8e59aa-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ad8e59aa-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "ad8f8cb2-0984-11e5-a729-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'ad8f8cb2-0984-11e5-a729-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$8Iu4i5T3JyrfsXu4E.pOdeEFyTPeYagO3/Q6ywcq0trkd0xLeHX8G"], ["created_at", "2015-06-03 00:08:35.719276"], ["updated_at", "2015-06-03 00:08:35.719276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:35.720974"], ["user_id", "ad949e00-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.721627"], ["updated_at", "2015-06-03 00:08:35.721627"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:35.725811"], ["updated_at", "2015-06-03 00:08:35.725811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad949e00-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad95997c-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad949e00-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad95997c-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.730283"], ["updated_at", "2015-06-03 00:08:35.730283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'ad95997c-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "ad95997c-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.735474"], ["updated_at", "2015-06-03 00:08:35.735474"], ["token", "-NQmPnX-3LMlt-rdC75Dsd7Ociv8BZW-Mo-RGgu0saY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ad95997c-0984-11e5-a729-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:08:35 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"ad95997c-0984-11e5-a729-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:35.738615') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5ec8b474-e107-4782-8a8f-1f4b9408750f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:35.739921"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:35.740701"], ["id", "5ec8b474-e107-4782-8a8f-1f4b9408750f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ad95997c-0984-11e5-a729-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad949e00-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ad949e00-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "ad95997c-0984-11e5-a729-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ad95997c-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ad95997c-0984-11e5-a729-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.749988"], ["updated_at", "2015-06-03 00:08:35.749988"], ["token", "i8xy0uCWljL_32idlkyC2wNt829HVt3As8xB6WSMU-U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9f2d693d-2b6d-44c0-9395-9749cec6590e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ad9962f0-0984-11e5-a729-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ad9962f0-0984-11e5-a729-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [9f2d693d-2b6d-44c0-9395-9749cec6590e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ad9962f0-0984-11e5-a729-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [9f2d693d-2b6d-44c0-9395-9749cec6590e] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ad95997c-0984-11e5-a729-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [9f2d693d-2b6d-44c0-9395-9749cec6590e] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [9f2d693d-2b6d-44c0-9395-9749cec6590e] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [9f2d693d-2b6d-44c0-9395-9749cec6590e] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [9f2d693d-2b6d-44c0-9395-9749cec6590e] Date: Tue, 02 Jun 2015 17:08:35 -0700 From: from@example.com To: email@example.com Message-ID: <556e4583b9377_e2423feca04602047111d@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/i8xy0uCWljL_32idlkyC2wNt829HVt3As8xB6WSMU-U?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9f2d693d-2b6d-44c0-9395-9749cec6590e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.88ms Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$zMUAbVvLgV.nwQgLMrHGce3JlhKx7OqC0SsHjbfuDGa0pST6OdLmS"], ["created_at", "2015-06-03 00:08:35.767412"], ["updated_at", "2015-06-03 00:08:35.767412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:08:35.769543"], ["user_id", "ad9bfbbe-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.770214"], ["updated_at", "2015-06-03 00:08:35.770214"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:08:35.774927"], ["updated_at", "2015-06-03 00:08:35.774927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad9bfbbe-0984-11e5-a729-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'ad9d2142-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad9bfbbe-0984-11e5-a729-a8667f0424ad"], ["organization_id", "ad9d2142-0984-11e5-a729-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.778786"], ["updated_at", "2015-06-03 00:08:35.778786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'ad9d2142-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "ad9d2142-0984-11e5-a729-a8667f0424ad"], ["created_at", "2015-06-03 00:08:35.784212"], ["updated_at", "2015-06-03 00:08:35.784212"], ["token", "fR_RDoFDRw0x1ZThGTu-ar_20VH_-EkMg_jnfDmtjag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ad9d2142-0984-11e5-a729-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:08:35 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"ad9d2142-0984-11e5-a729-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:08:35.787742') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4a0621fd-6fbd-4ea1-bbfc-74f370031958"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:08:35.789612"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:08:35.790710"], ["id", "4a0621fd-6fbd-4ea1-bbfc-74f370031958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ad9d2142-0984-11e5-a729-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad9bfbbe-0984-11e5-a729-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ad9bfbbe-0984-11e5-a729-a8667f0424ad' LIMIT 1 [["organization_id", "ad9d2142-0984-11e5-a729-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'ad9d2142-0984-11e5-a729-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "ad9d2142-0984-11e5-a729-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:08:35.801008"], ["updated_at", "2015-06-03 00:08:35.801008"], ["token", "NzTirOp4LvGxVb_0DM1eK-KV1i_vr56b1eA9qaTSteQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 871045d6-bcb6-4d54-bce4-c6c82e6dc8ef) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ada1260c-0984-11e5-a729-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ada1260c-0984-11e5-a729-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [871045d6-bcb6-4d54-bce4-c6c82e6dc8ef] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ada1260c-0984-11e5-a729-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [871045d6-bcb6-4d54-bce4-c6c82e6dc8ef] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ad9d2142-0984-11e5-a729-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [871045d6-bcb6-4d54-bce4-c6c82e6dc8ef] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [871045d6-bcb6-4d54-bce4-c6c82e6dc8ef] Clubhouse::Mailer#invitation: processed outbound mail in 2.5ms [ActiveJob] [ActionMailer::DeliveryJob] [871045d6-bcb6-4d54-bce4-c6c82e6dc8ef] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [871045d6-bcb6-4d54-bce4-c6c82e6dc8ef] Date: Tue, 02 Jun 2015 17:08:35 -0700 From: from@example.com To: email@example.com Message-ID: <556e4583c55c6_e2423feca046020471226@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/NzTirOp4LvGxVb_0DM1eK-KV1i_vr56b1eA9qaTSteQ?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [871045d6-bcb6-4d54-bce4-c6c82e6dc8ef] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.27ms Completed 201 Created in 23ms (Views: 1.0ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$TY4PzZsptfGPH6dSluS02eSw6vGdAv9XTYVP6V1lt5fPphvLjeuju"], ["created_at", "2015-06-03 00:09:21.572538"], ["updated_at", "2015-06-03 00:09:21.572538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:21.598856"], ["user_id", "c8e9a9e8-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.609480"], ["updated_at", "2015-06-03 00:09:21.609480"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:21.625122"], ["updated_at", "2015-06-03 00:09:21.625122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8e9a9e8-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c8f15b48-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8e9a9e8-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c8f15b48-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:21.638572"], ["updated_at", "2015-06-03 00:09:21.638572"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'c8f15b48-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "c8f15b48-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.652062"], ["updated_at", "2015-06-03 00:09:21.652062"], ["token", "nHnRl5jZ7IZuSymhqcHKww6kMXvepZz-ygxaQZasjN0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$/DeaNEdOwwyoSrKBDEOKceAOKLjAdytm9/lPB2LGO0WjUk6WSKTq2"], ["created_at", "2015-06-03 00:09:21.659843"], ["updated_at", "2015-06-03 00:09:21.659843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:21.663983"], ["updated_at", "2015-06-03 00:09:21.663983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8f69b26-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c8f73612-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8f69b26-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c8f73612-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.667377"], ["updated_at", "2015-06-03 00:09:21.667377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 17:09:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$fL4lSDK18.LaehXLyQRzAOFg9/Hf0Nce7vkN.kaCCexvkJIJBSP.6"], ["created_at", "2015-06-03 00:09:21.696969"], ["updated_at", "2015-06-03 00:09:21.696969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:21.698680"], ["user_id", "c8fc4134-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.699299"], ["updated_at", "2015-06-03 00:09:21.699299"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:21.703437"], ["updated_at", "2015-06-03 00:09:21.703437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8fc4134-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c8fd3abc-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8fc4134-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c8fd3abc-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:21.706625"], ["updated_at", "2015-06-03 00:09:21.706625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'c8fd3abc-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "c8fd3abc-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.711734"], ["updated_at", "2015-06-03 00:09:21.711734"], ["token", "ita59zKJZWb5H-m-fD7FdOC0UWRBzpkch7vhGvSc5BA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$6RypiYYeunF0o35wHKUXbuSH3IXOktMrSP1v8BFQuTwnv4GeSSiBG"], ["created_at", "2015-06-03 00:09:21.720258"], ["updated_at", "2015-06-03 00:09:21.720258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:21.727946"], ["updated_at", "2015-06-03 00:09:21.727946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8ffeaf0-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c9010534-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c8ffeaf0-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c9010534-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.731704"], ["updated_at", "2015-06-03 00:09:21.731704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c8fd3abc-0984-11e5-9e1e-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:09:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"c8fd3abc-0984-11e5-9e1e-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:21.735036') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "70353f1a-2cdd-41d6-9903-b1d49e2fdf78"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:21.743846"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:21.745369"], ["id", "70353f1a-2cdd-41d6-9903-b1d49e2fdf78"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c8fd3abc-0984-11e5-9e1e-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c8fc4134-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c8fc4134-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c8fd3abc-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "c8fd3abc-0984-11e5-9e1e-a8667f0424ad"]] Completed 200 OK in 53ms (Views: 11.9ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$4H2ZOEmNMi24eK2L0Bn4b.T2Fie/OygV3dEMjhZ6amSKdU01.XmHK"], ["created_at", "2015-06-03 00:09:21.801796"], ["updated_at", "2015-06-03 00:09:21.801796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:21.803718"], ["user_id", "c90c4638-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.804443"], ["updated_at", "2015-06-03 00:09:21.804443"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:21.810473"], ["updated_at", "2015-06-03 00:09:21.810473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c90c4638-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c90d98b2-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c90c4638-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c90d98b2-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:21.814528"], ["updated_at", "2015-06-03 00:09:21.814528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c90d98b2-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c90d98b2-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.818955"], ["updated_at", "2015-06-03 00:09:21.818955"], ["token", "12d0TD0kX3dpP0P8qtifbz0z01dHeikdO2XEbitxmlA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$yKYlGVYqQvLca9jf5Tq/IeG41S/ip6UGKIhs9LJWVgZwwt2CpiYfe"], ["created_at", "2015-06-03 00:09:21.825920"], ["updated_at", "2015-06-03 00:09:21.825920"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:21.835525"], ["updated_at", "2015-06-03 00:09:21.835525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c90ffe0e-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c9117446-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c90ffe0e-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c9117446-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.840000"], ["updated_at", "2015-06-03 00:09:21.840000"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:09:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$x13TlbjWSIo7zXyiqhsMOOMzUhTcl.CYGvZBkedYjSrl1DEBDhwmG"], ["created_at", "2015-06-03 00:09:21.853590"], ["updated_at", "2015-06-03 00:09:21.853590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:21.855834"], ["user_id", "c91436ae-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.856464"], ["updated_at", "2015-06-03 00:09:21.856464"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:21.861552"], ["updated_at", "2015-06-03 00:09:21.861552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c91436ae-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c9155cbe-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c91436ae-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c9155cbe-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:21.864624"], ["updated_at", "2015-06-03 00:09:21.864624"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'c9155cbe-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "c9155cbe-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.870107"], ["updated_at", "2015-06-03 00:09:21.870107"], ["token", "QRt6_1S5C1Ra43mVo8THd4XqmJyil1NSAHBUU3QZxe8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$9V4Y9nr1QT.On3rXX8iIMe/6wwfK6Ec9yosSLHEYhOL4XfSVI3xeC"], ["created_at", "2015-06-03 00:09:21.876203"], ["updated_at", "2015-06-03 00:09:21.876203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:21.880910"], ["updated_at", "2015-06-03 00:09:21.880910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9179b00-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c91859a0-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c9179b00-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c91859a0-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.884743"], ["updated_at", "2015-06-03 00:09:21.884743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:09:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:21.887663') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1aca536b-a890-43c7-9e28-75f24ad711a6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:21.889027"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:21.889834"], ["id", "1aca536b-a890-43c7-9e28-75f24ad711a6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c91436ae-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c91436ae-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c9155cbe-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "c9155cbe-0984-11e5-9e1e-a8667f0424ad"]] Completed 200 OK in 11ms (Views: 1.5ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$O8S0T9HB9979CEfkKwtvDOVn/gyhfCJR8K0u18VXypVNrYkAhBrYu"], ["created_at", "2015-06-03 00:09:21.905574"], ["updated_at", "2015-06-03 00:09:21.905574"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:21.916165"], ["user_id", "c91c189c-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.917061"], ["updated_at", "2015-06-03 00:09:21.917061"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:21.922136"], ["updated_at", "2015-06-03 00:09:21.922136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c91c189c-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c91e9e78-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c91c189c-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c91e9e78-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:21.926202"], ["updated_at", "2015-06-03 00:09:21.926202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'c91e9e78-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "c91e9e78-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.931210"], ["updated_at", "2015-06-03 00:09:21.931210"], ["token", "cFjx4Tys0Cyc_pBTL2Kr2G0nd0f5jMb-T5b6jLAqyDE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 17:09:21 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$yH0zixXb2l72VSb7KF8YwOgcei.LfYj/2h4P21B7qR.CeEEaWsMqK"], ["created_at", "2015-06-03 00:09:21.942328"], ["updated_at", "2015-06-03 00:09:21.942328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:21.944875"], ["user_id", "c921ba04-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.945559"], ["updated_at", "2015-06-03 00:09:21.945559"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:21.951153"], ["updated_at", "2015-06-03 00:09:21.951153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c921ba04-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c9230fb2-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c921ba04-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c9230fb2-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:21.955329"], ["updated_at", "2015-06-03 00:09:21.955329"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'c9230fb2-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "c9230fb2-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.961877"], ["updated_at", "2015-06-03 00:09:21.961877"], ["token", "4ChLD7aGwXUEI7e3dlLrcF0w0tG-qArH27eBIEk-0fM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/c924b15a-0984-11e5-9e1e-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:09:21 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"c924b15a-0984-11e5-9e1e-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:21.965391') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "91a758b3-fc26-4947-a0a7-604b302a4a5d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:21.966852"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:21.967712"], ["id", "91a758b3-fc26-4947-a0a7-604b302a4a5d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c924b15a-0984-11e5-9e1e-a8667f0424ad"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c921ba04-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c9230fb2-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c921ba04-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c9230fb2-0984-11e5-9e1e-a8667f0424ad"]] Unpermitted parameters: id, invitation  (1.0ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."id" != 'c924b15a-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = 'c9230fb2-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:09:21.982932"], ["id", "c924b15a-0984-11e5-9e1e-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 1.2ms | ActiveRecord: 4.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$mzN3oJOlwxbqalsMGhSYT.6nZfsIfF2BpbmkIdS9YQ3VWi96.AK1G"], ["created_at", "2015-06-03 00:09:21.993615"], ["updated_at", "2015-06-03 00:09:21.993615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:21.996603"], ["user_id", "c929a728-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:21.997294"], ["updated_at", "2015-06-03 00:09:21.997294"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.001665"], ["updated_at", "2015-06-03 00:09:22.001665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c929a728-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c92ad5f8-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c929a728-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c92ad5f8-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.005577"], ["updated_at", "2015-06-03 00:09:22.005577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'c92ad5f8-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "c92ad5f8-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.010511"], ["updated_at", "2015-06-03 00:09:22.010511"], ["token", "Ho3f1gKn5TOcZu4317RVZixqfVxL3fGfK44pviWAyJc"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$BopiCNFIha/BImklBptdt.IpxIVIUfi7bNmLYN8w2YSXWyt.8J6wi"], ["created_at", "2015-06-03 00:09:22.021814"], ["updated_at", "2015-06-03 00:09:22.021814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.023850"], ["user_id", "c92dd352-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.024831"], ["updated_at", "2015-06-03 00:09:22.024831"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.031356"], ["updated_at", "2015-06-03 00:09:22.031356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c92dd352-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c92f5ad8-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c92dd352-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c92f5ad8-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.036109"], ["updated_at", "2015-06-03 00:09:22.036109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'c92f5ad8-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "c92f5ad8-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.040911"], ["updated_at", "2015-06-03 00:09:22.040911"], ["token", "rxNaVPuh-GAu899rd6nGV3h8N5wYbtXWa3U_UB38BK8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/c930c738-0984-11e5-9e1e-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"c930c738-0984-11e5-9e1e-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:22.044419') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "38a78f9f-ab0f-4cb2-b29e-7eb36b47a7ec"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:22.046031"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:22.047466"], ["id", "38a78f9f-ab0f-4cb2-b29e-7eb36b47a7ec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c930c738-0984-11e5-9e1e-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c92dd352-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c92f5ad8-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c92dd352-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c92f5ad8-0984-11e5-9e1e-a8667f0424ad"]] Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$jiRdC10ybyLKvpn8sHRrCedzBD0hIdYjtiCDsnX59RgS.mP6eJ5tK"], ["created_at", "2015-06-03 00:09:22.062509"], ["updated_at", "2015-06-03 00:09:22.062509"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.065656"], ["user_id", "c934171c-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.066387"], ["updated_at", "2015-06-03 00:09:22.066387"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.071744"], ["updated_at", "2015-06-03 00:09:22.071744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c934171c-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c9357508-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c934171c-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c9357508-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.075265"], ["updated_at", "2015-06-03 00:09:22.075265"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'c9357508-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "c9357508-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.080905"], ["updated_at", "2015-06-03 00:09:22.080905"], ["token", "FxkoSYwPFYstuzDO5E-nlllNsMFYDZm00lHO-5JE1Zg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$IHy.rbhxdPFLvwCdc9eULumMpkn6Qn/ffFC4KOxRyCyBF0jAR.0UG"], ["created_at", "2015-06-03 00:09:22.091819"], ["updated_at", "2015-06-03 00:09:22.091819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.094251"], ["user_id", "c938912a-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.095111"], ["updated_at", "2015-06-03 00:09:22.095111"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.100296"], ["updated_at", "2015-06-03 00:09:22.100296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c938912a-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c939d5bc-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c938912a-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c939d5bc-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.104520"], ["updated_at", "2015-06-03 00:09:22.104520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'c939d5bc-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "c939d5bc-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.109667"], ["updated_at", "2015-06-03 00:09:22.109667"], ["token", "C1dDDvY9ZeaCTLDnus_LImXbg6NSM77JW9M2t1KhXi0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:22.112932') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e16ab29e-450f-4b2d-8f2c-d3dbfb8e0129"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:22.114287"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:22.115677"], ["id", "e16ab29e-450f-4b2d-8f2c-d3dbfb8e0129"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c938912a-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c938912a-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c939d5bc-0984-11e5-9e1e-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'c939d5bc-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "c939d5bc-0984-11e5-9e1e-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.128177"], ["updated_at", "2015-06-03 00:09:22.128177"], ["token", "7pvfe7opM5tNAmMthkydNcTr0uVrEU1w1kOXmN347jU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a500e436-1604-4d05-add5-3efcf97ec9e0) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c93e179e-0984-11e5-9e1e-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c93e179e-0984-11e5-9e1e-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [a500e436-1604-4d05-add5-3efcf97ec9e0] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c93e179e-0984-11e5-9e1e-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [a500e436-1604-4d05-add5-3efcf97ec9e0] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c939d5bc-0984-11e5-9e1e-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [a500e436-1604-4d05-add5-3efcf97ec9e0] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [a500e436-1604-4d05-add5-3efcf97ec9e0] Clubhouse::Mailer#invitation: processed outbound mail in 324.3ms [ActiveJob] [ActionMailer::DeliveryJob] [a500e436-1604-4d05-add5-3efcf97ec9e0] Sent mail to email@example.com (12.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [a500e436-1604-4d05-add5-3efcf97ec9e0] Date: Tue, 02 Jun 2015 17:09:22 -0700 From: from@example.com To: email@example.com Message-ID: <556e45b27b2c3_e26e3fc33486020457528@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/7pvfe7opM5tNAmMthkydNcTr0uVrEU1w1kOXmN347jU?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a500e436-1604-4d05-add5-3efcf97ec9e0] Performed ActionMailer::DeliveryJob from Inline(mailers) in 337.07ms Completed 201 Created in 398ms (Views: 1.2ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$bj7LIh1V4P.EMbeS4cWojecrmO.13hc.PwOA3NUJ6T1aKQpYj5R92"], ["created_at", "2015-06-03 00:09:22.520557"], ["updated_at", "2015-06-03 00:09:22.520557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.523069"], ["user_id", "c979f37c-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.523738"], ["updated_at", "2015-06-03 00:09:22.523738"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.528063"], ["updated_at", "2015-06-03 00:09:22.528063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c979f37c-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c97b100e-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c979f37c-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c97b100e-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.532572"], ["updated_at", "2015-06-03 00:09:22.532572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'c97b100e-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "c97b100e-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.537750"], ["updated_at", "2015-06-03 00:09:22.537750"], ["token", "5AcepLUYPz8B2E_Dj97fXhATI_p3mIgweS4YrhpBCvo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:22.541319') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "76547d74-de4c-4b2b-8b62-da9574f7ebe2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:22.543294"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:22.544367"], ["id", "76547d74-de4c-4b2b-8b62-da9574f7ebe2"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c979f37c-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c979f37c-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c97b100e-0984-11e5-9e1e-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'c97b100e-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "c97b100e-0984-11e5-9e1e-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.563570"], ["updated_at", "2015-06-03 00:09:22.563570"], ["token", "_C4juqPTJIuVbu_KIA1UflgcaY5Qm5tqqnLW_EJ6DTU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e5698447-84e1-4a57-ad59-456b062a32b7) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c980a1d6-0984-11e5-9e1e-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c980a1d6-0984-11e5-9e1e-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [e5698447-84e1-4a57-ad59-456b062a32b7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c980a1d6-0984-11e5-9e1e-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [e5698447-84e1-4a57-ad59-456b062a32b7] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c97b100e-0984-11e5-9e1e-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [e5698447-84e1-4a57-ad59-456b062a32b7] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [e5698447-84e1-4a57-ad59-456b062a32b7] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [e5698447-84e1-4a57-ad59-456b062a32b7] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [e5698447-84e1-4a57-ad59-456b062a32b7] Date: Tue, 02 Jun 2015 17:09:22 -0700 From: from@example.com To: email@example.com Message-ID: <556e45b28ba98_e26e3fc3348602045762e@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/_C4juqPTJIuVbu_KIA1UflgcaY5Qm5tqqnLW_EJ6DTU?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [e5698447-84e1-4a57-ad59-456b062a32b7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.01ms Completed 201 Created in 33ms (Views: 1.0ms | ActiveRecord: 4.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$MeVDgqu4dXofPf18GnDvne.KNWc2jZxVrovHuA7uCVLLCx.0RNzwi"], ["created_at", "2015-06-03 00:09:22.585702"], ["updated_at", "2015-06-03 00:09:22.585702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.587411"], ["user_id", "c983de82-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.588030"], ["updated_at", "2015-06-03 00:09:22.588030"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.593556"], ["updated_at", "2015-06-03 00:09:22.593556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c983de82-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c9850d84-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c983de82-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c9850d84-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.597329"], ["updated_at", "2015-06-03 00:09:22.597329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'c9850d84-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "c9850d84-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.602249"], ["updated_at", "2015-06-03 00:09:22.602249"], ["token", "XpcWQYQVm5ouv4szeVxiRkudA1dyYYyvZBH3tq5MbTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:22.608186') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7d7b05ca-e486-4afe-8285-cef89468d894"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:22.609611"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:22.610350"], ["id", "7d7b05ca-e486-4afe-8285-cef89468d894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c983de82-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c983de82-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c9850d84-0984-11e5-9e1e-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'c9850d84-0984-11e5-9e1e-a8667f0424ad') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$QYdciIJCWdxTHURfwxgaR.VZ6X2Lbvcb/TTIWk4W0wH0LvNL7dxBe"], ["created_at", "2015-06-03 00:09:22.630969"], ["updated_at", "2015-06-03 00:09:22.630969"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.635299"], ["user_id", "c98aed94-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.636579"], ["updated_at", "2015-06-03 00:09:22.636579"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.643280"], ["updated_at", "2015-06-03 00:09:22.643280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c98aed94-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c98cae5e-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c98aed94-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c98cae5e-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.647037"], ["updated_at", "2015-06-03 00:09:22.647037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'c98cae5e-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "c98cae5e-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.652003"], ["updated_at", "2015-06-03 00:09:22.652003"], ["token", "r4OrQnTJVdroIl7ClKMZg07lmXW_XmxCx363Eqnjqdo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$RXk9JzNOO9fpfPAF.IAuhuf0bOn3YBZnbipyRnRYaFoqHg5IOkowW"], ["created_at", "2015-06-03 00:09:22.664747"], ["updated_at", "2015-06-03 00:09:22.664747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.667043"], ["user_id", "c98ffcda-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.667807"], ["updated_at", "2015-06-03 00:09:22.667807"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.672918"], ["updated_at", "2015-06-03 00:09:22.672918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c98ffcda-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c99132c6-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c98ffcda-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c99132c6-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.676754"], ["updated_at", "2015-06-03 00:09:22.676754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'c99132c6-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "c99132c6-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.682466"], ["updated_at", "2015-06-03 00:09:22.682466"], ["token", "VfhNgJ14yVDIy8kTZClKqRyq2XGmspnmt6li_t11pac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c99132c6-0984-11e5-9e1e-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"c99132c6-0984-11e5-9e1e-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:22.686478') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "480d1a18-eb21-4c67-a406-eda3179096ac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:22.688282"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:22.689779"], ["id", "480d1a18-eb21-4c67-a406-eda3179096ac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c99132c6-0984-11e5-9e1e-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c98ffcda-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c98ffcda-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c99132c6-0984-11e5-9e1e-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'c99132c6-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "c99132c6-0984-11e5-9e1e-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.699052"], ["updated_at", "2015-06-03 00:09:22.699052"], ["token", "vBQmJgav2Xn3HZU7KWui4yjVGgF96LOIzsouDoP2J7U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a744ec43-c029-4899-8ece-9a407e886105) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c9952ca0-0984-11e5-9e1e-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c9952ca0-0984-11e5-9e1e-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [a744ec43-c029-4899-8ece-9a407e886105] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c9952ca0-0984-11e5-9e1e-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [a744ec43-c029-4899-8ece-9a407e886105] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c99132c6-0984-11e5-9e1e-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [a744ec43-c029-4899-8ece-9a407e886105] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [a744ec43-c029-4899-8ece-9a407e886105] Clubhouse::Mailer#invitation: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [a744ec43-c029-4899-8ece-9a407e886105] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [a744ec43-c029-4899-8ece-9a407e886105] Date: Tue, 02 Jun 2015 17:09:22 -0700 From: from@example.com To: email@example.com Message-ID: <556e45b2acb5b_e26e3fc33486020457762@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/vBQmJgav2Xn3HZU7KWui4yjVGgF96LOIzsouDoP2J7U?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a744ec43-c029-4899-8ece-9a407e886105] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.34ms Completed 201 Created in 23ms (Views: 0.7ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$3g4/IS0I7I3Hq4WIcfR1UemdboU/RmbJgorORTjZ7ONuMQc1Ziyeu"], ["created_at", "2015-06-03 00:09:22.716284"], ["updated_at", "2015-06-03 00:09:22.716284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.717919"], ["user_id", "c997ca50-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.718493"], ["updated_at", "2015-06-03 00:09:22.718493"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.724375"], ["updated_at", "2015-06-03 00:09:22.724375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c997ca50-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c99910cc-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c997ca50-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c99910cc-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.728097"], ["updated_at", "2015-06-03 00:09:22.728097"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'c99910cc-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "c99910cc-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.733248"], ["updated_at", "2015-06-03 00:09:22.733248"], ["token", "xhGU_kHrqiGFwmgbXV8zLxE3hspD6tET5wqo_9CxEhM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c99910cc-0984-11e5-9e1e-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"c99910cc-0984-11e5-9e1e-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:22.736073') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e63b4612-8d4a-4bea-bbdd-0b32819ef1c1"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:22.737947"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:22.738941"], ["id", "e63b4612-8d4a-4bea-bbdd-0b32819ef1c1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c99910cc-0984-11e5-9e1e-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c997ca50-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c997ca50-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c99910cc-0984-11e5-9e1e-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'c99910cc-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "c99910cc-0984-11e5-9e1e-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.748531"], ["updated_at", "2015-06-03 00:09:22.748531"], ["token", "hyhkVhL_LS4V-2RiZC2u8NM5tQ11IlUBOqyKMTwvoPo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1dba5fd1-b25d-4910-8870-ed833fd79ee8) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c99cc0f0-0984-11e5-9e1e-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c99cc0f0-0984-11e5-9e1e-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [1dba5fd1-b25d-4910-8870-ed833fd79ee8] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c99cc0f0-0984-11e5-9e1e-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [1dba5fd1-b25d-4910-8870-ed833fd79ee8] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c99910cc-0984-11e5-9e1e-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [1dba5fd1-b25d-4910-8870-ed833fd79ee8] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [1dba5fd1-b25d-4910-8870-ed833fd79ee8] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [1dba5fd1-b25d-4910-8870-ed833fd79ee8] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [1dba5fd1-b25d-4910-8870-ed833fd79ee8] Date: Tue, 02 Jun 2015 17:09:22 -0700 From: from@example.com To: email@example.com Message-ID: <556e45b2b8813_e26e3fc3348602045781b@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/hyhkVhL_LS4V-2RiZC2u8NM5tQ11IlUBOqyKMTwvoPo?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [1dba5fd1-b25d-4910-8870-ed833fd79ee8] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.09ms Completed 201 Created in 23ms (Views: 1.0ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$Su1SUQOf80076v4FRMtyje6GBj0/JmiHTuQ0bdEVZ8iqJLpDAwqHK"], ["created_at", "2015-06-03 00:09:22.765730"], ["updated_at", "2015-06-03 00:09:22.765730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.767449"], ["user_id", "c99f53d8-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.768155"], ["updated_at", "2015-06-03 00:09:22.768155"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.773269"], ["updated_at", "2015-06-03 00:09:22.773269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c99f53d8-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c9a08758-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c99f53d8-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c9a08758-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.777288"], ["updated_at", "2015-06-03 00:09:22.777288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'c9a08758-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "c9a08758-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.782522"], ["updated_at", "2015-06-03 00:09:22.782522"], ["token", "x_ZuN1mR_1odIwo6xFfGAunmwoQnOqYtnfcfQL33-9o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c9a08758-0984-11e5-9e1e-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"c9a08758-0984-11e5-9e1e-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:22.785835') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "328b2297-39c7-4396-8815-6b17767040d9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:22.787869"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:22.788643"], ["id", "328b2297-39c7-4396-8815-6b17767040d9"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c9a08758-0984-11e5-9e1e-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c99f53d8-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c99f53d8-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c9a08758-0984-11e5-9e1e-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'c9a08758-0984-11e5-9e1e-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$e7pppDuIFhxoTrMgyLH10u7uvcvuEcZ733BO9zHZ6ownsDi/biOLO"], ["created_at", "2015-06-03 00:09:22.806939"], ["updated_at", "2015-06-03 00:09:22.806939"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.809679"], ["user_id", "c9a5a8d2-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.810446"], ["updated_at", "2015-06-03 00:09:22.810446"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.815056"], ["updated_at", "2015-06-03 00:09:22.815056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9a5a8d2-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c9a6d982-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c9a5a8d2-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c9a6d982-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.817987"], ["updated_at", "2015-06-03 00:09:22.817987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'c9a6d982-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "c9a6d982-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.822656"], ["updated_at", "2015-06-03 00:09:22.822656"], ["token", "hGwy6TUVTB5zT87DxtFnTgfB-K4ObXm9M9_EVsvdv4E"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$YA7w3/5fRL22oqbQWEjocebXOYjz5KUvfwpiQ626DSBkKpMMgeJbS"], ["created_at", "2015-06-03 00:09:22.832677"], ["updated_at", "2015-06-03 00:09:22.832677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:09:22.834416"], ["user_id", "c9a98b32-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.835676"], ["updated_at", "2015-06-03 00:09:22.835676"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:09:22.842255"], ["updated_at", "2015-06-03 00:09:22.842255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9a98b32-0984-11e5-9e1e-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'c9ab16dc-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c9a98b32-0984-11e5-9e1e-a8667f0424ad"], ["organization_id", "c9ab16dc-0984-11e5-9e1e-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:09:22.846494"], ["updated_at", "2015-06-03 00:09:22.846494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'c9ab16dc-0984-11e5-9e1e-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "c9ab16dc-0984-11e5-9e1e-a8667f0424ad"], ["created_at", "2015-06-03 00:09:22.850508"], ["updated_at", "2015-06-03 00:09:22.850508"], ["token", "GBrrS59Xl_aeuAU5oaqRJGYrzCg31J-AGXiO2Na28cA"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/c9ac4958-0984-11e5-9e1e-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:09:22 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"c9ac4958-0984-11e5-9e1e-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:09:22.853802') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "04db3b11-fb60-4161-9eea-b61cb51ae9af"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:09:22.855151"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:09:22.855958"], ["id", "04db3b11-fb60-4161-9eea-b61cb51ae9af"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c9ac4958-0984-11e5-9e1e-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c9a98b32-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c9ab16dc-0984-11e5-9e1e-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c9a98b32-0984-11e5-9e1e-a8667f0424ad' LIMIT 1 [["organization_id", "c9ab16dc-0984-11e5-9e1e-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "c9ac4958-0984-11e5-9e1e-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (5.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$Wavs6QUD5uAm.aKhUeJk2.qj/p5OfBEdJbUHB0PneNpPLjm99OGX."], ["created_at", "2015-06-03 00:10:36.134470"], ["updated_at", "2015-06-03 00:10:36.134470"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$pxLcXkWP5cyK4dz7.EtRbOUeJr05orGWDYTlIqj1TryqXXUVZmwxS"], ["created_at", "2015-06-03 00:10:36.148944"], ["updated_at", "2015-06-03 00:10:36.148944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.175335"], ["user_id", "f55b2dc6-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.184255"], ["updated_at", "2015-06-03 00:10:36.184255"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.197120"], ["updated_at", "2015-06-03 00:10:36.197120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f55b2dc6-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5641e7c-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f55b2dc6-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5641e7c-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.209345"], ["updated_at", "2015-06-03 00:10:36.209345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f55cbe8e-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5641e7c-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f55cbe8e-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5641e7c-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.213184"], ["updated_at", "2015-06-03 00:10:36.213184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$o9d1Cc0hbCwh2n6WoPvizeq0jVMpl/W2iVyD6GY05eAPY4dmHsTGW"], ["created_at", "2015-06-03 00:10:36.245665"], ["updated_at", "2015-06-03 00:10:36.245665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$SoaIeeUP8mCYnBKAIGalVumdOukKROmEgAVCUBy3sJ6.VHCycaIuy"], ["created_at", "2015-06-03 00:10:36.252225"], ["updated_at", "2015-06-03 00:10:36.252225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.254623"], ["user_id", "f56b7fd2-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.255412"], ["updated_at", "2015-06-03 00:10:36.255412"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.262814"], ["updated_at", "2015-06-03 00:10:36.262814"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f56b7fd2-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f56e2d5e-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f56b7fd2-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f56e2d5e-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.268200"], ["updated_at", "2015-06-03 00:10:36.268200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f56c9124-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f56e2d5e-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f56c9124-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f56e2d5e-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.272874"], ["updated_at", "2015-06-03 00:10:36.272874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/f56fc466-0984-11e5-9263-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"f56fc466-0984-11e5-9263-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:10:36.277789') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5d490c09-e75a-4033-a607-17bd4ebbbc86"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:10:36.285191"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:10:36.286419"], ["id", "5d490c09-e75a-4033-a607-17bd4ebbbc86"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "f56fc466-0984-11e5-9263-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f56b7fd2-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f56e2d5e-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f56b7fd2-0984-11e5-9263-a8667f0424ad' LIMIT 1 [["organization_id", "f56e2d5e-0984-11e5-9263-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f56c9124-0984-11e5-9263-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "f56fc466-0984-11e5-9263-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 33ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$kuvOiYBQ/xmSQ.kYSpUCeOkGN9uFmE8pNP/bePrWMFHKRRDxMW27y"], ["created_at", "2015-06-03 00:10:36.320766"], ["updated_at", "2015-06-03 00:10:36.320766"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$8/LSMUZUF2qqU9qFeeTu9eBoG61R3NXiB03Io1w6dnW1zx3sRSrHa"], ["created_at", "2015-06-03 00:10:36.327935"], ["updated_at", "2015-06-03 00:10:36.327935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.329639"], ["user_id", "f5770226-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.330246"], ["updated_at", "2015-06-03 00:10:36.330246"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.334418"], ["updated_at", "2015-06-03 00:10:36.334418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5770226-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f57904a4-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5770226-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f57904a4-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.337438"], ["updated_at", "2015-06-03 00:10:36.337438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5780a9a-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f57904a4-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5780a9a-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f57904a4-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.341479"], ["updated_at", "2015-06-03 00:10:36.341479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$z8pHZu.kET8By4XY6mCMhuxusGOXwdKi7pTyYUXrhzuhcIGqMfuBy"], ["created_at", "2015-06-03 00:10:36.348082"], ["updated_at", "2015-06-03 00:10:36.348082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.350317"], ["user_id", "f57b2806-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.350900"], ["updated_at", "2015-06-03 00:10:36.350900"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'f57904a4-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "f57904a4-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.363951"], ["updated_at", "2015-06-03 00:10:36.363951"], ["token", "m_6lwO0dIwqGgiq0cwzMYjL17ma4C38QV69mmZ56RhE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$Tka0aqfVX7084l8xKoJ6Zu7stgol.GXiQ1SOjVOFuZDPl35gKHDFy"], ["created_at", "2015-06-03 00:10:36.378529"], ["updated_at", "2015-06-03 00:10:36.378529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$IX6fgCPFPYLvGgZW60...uzVYHW55rslBZaZyXu9J0yMGiym9LaZW"], ["created_at", "2015-06-03 00:10:36.384748"], ["updated_at", "2015-06-03 00:10:36.384748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.386494"], ["user_id", "f57fc9a6-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.387166"], ["updated_at", "2015-06-03 00:10:36.387166"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.391672"], ["updated_at", "2015-06-03 00:10:36.391672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f57fc9a6-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f581cdbe-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f57fc9a6-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f581cdbe-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.395366"], ["updated_at", "2015-06-03 00:10:36.395366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f580b46a-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f581cdbe-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f580b46a-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f581cdbe-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.398100"], ["updated_at", "2015-06-03 00:10:36.398100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$blSVRcBikh1TH6YRbVNEue3B1VaA0BRHdp1JBtruDIv5wPLXAONM6"], ["created_at", "2015-06-03 00:10:36.403508"], ["updated_at", "2015-06-03 00:10:36.403508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.406158"], ["user_id", "f5839c98-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.407071"], ["updated_at", "2015-06-03 00:10:36.407071"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'f581cdbe-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "f581cdbe-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.411930"], ["updated_at", "2015-06-03 00:10:36.411930"], ["token", "QWkupzlVJRIe_OgrEmHmeVsyoF-kIqZBsnzpojHsbeQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/f581cdbe-0984-11e5-9263-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"QWkupzlVJRIe_OgrEmHmeVsyoF-kIqZBsnzpojHsbeQ", "organization_id"=>"f581cdbe-0984-11e5-9263-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:10:36.415072') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8f2dff01-da3c-497b-a864-588f6d677ef2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:10:36.416419"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:10:36.417172"], ["id", "8f2dff01-da3c-497b-a864-588f6d677ef2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f581cdbe-0984-11e5-9263-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5839c98-0984-11e5-9263-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "QWkupzlVJRIe_OgrEmHmeVsyoF-kIqZBsnzpojHsbeQ"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f581cdbe-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5839c98-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f581cdbe-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "f581cdbe-0984-11e5-9263-a8667f0424ad"], ["member_id", "f5839c98-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.426716"], ["updated_at", "2015-06-03 00:10:36.426716"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "f584dc52-0984-11e5-9263-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 28ms (Views: 13.2ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$i9nt9ZroK.kHAyK2DqLJmes1Ml7I6n5oJsPqN4JVah/mui2zzLChC"], ["created_at", "2015-06-03 00:10:36.452190"], ["updated_at", "2015-06-03 00:10:36.452190"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (2.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$VvK09XehACKBlsZenUDrzeh/4sHnzm4FwbTcSCEXNgZD.YqEPMfJy"], ["created_at", "2015-06-03 00:10:36.472695"], ["updated_at", "2015-06-03 00:10:36.472695"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.479172"], ["user_id", "f58b1b26-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.481512"], ["updated_at", "2015-06-03 00:10:36.481512"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.489425"], ["updated_at", "2015-06-03 00:10:36.489425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f58b1b26-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f590c0ee-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f58b1b26-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f590c0ee-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.493422"], ["updated_at", "2015-06-03 00:10:36.493422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f58e61a0-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f590c0ee-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f58e61a0-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f590c0ee-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.496477"], ["updated_at", "2015-06-03 00:10:36.496477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$R/oSdIrk22VaQ9Lhv3HnyOMzY2DLKMb80MsrzKP39trtfcS9zdmHG"], ["created_at", "2015-06-03 00:10:36.503095"], ["updated_at", "2015-06-03 00:10:36.503095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.504940"], ["user_id", "f592c858-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.505561"], ["updated_at", "2015-06-03 00:10:36.505561"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'f590c0ee-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "f590c0ee-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.511235"], ["updated_at", "2015-06-03 00:10:36.511235"], ["token", "sbyLB1HAh-NMD3qFVFtKQl93FooO62_0bFuEBy8lbTY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/f590c0ee-0984-11e5-9263-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"f590c0ee-0984-11e5-9263-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:10:36.516845') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "553a85f5-f829-4047-ab01-5a2cbba48223"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:10:36.518604"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:10:36.519419"], ["id", "553a85f5-f829-4047-ab01-5a2cbba48223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f590c0ee-0984-11e5-9263-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f592c858-0984-11e5-9263-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms (ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$CADVuOqEzJkI.UExZkQZGuq/NiRCq8hTkItqP1q3AmFzowPGVeaau"], ["created_at", "2015-06-03 00:10:36.535387"], ["updated_at", "2015-06-03 00:10:36.535387"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$gxxCsNhf47oLY.xaZmL9he9VEUpeNqJ5uT1xfZ.3XD93aNY3wg8Hq"], ["created_at", "2015-06-03 00:10:36.542941"], ["updated_at", "2015-06-03 00:10:36.542941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.544593"], ["user_id", "f597c484-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.545213"], ["updated_at", "2015-06-03 00:10:36.545213"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.549217"], ["updated_at", "2015-06-03 00:10:36.549217"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f597c484-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f599c964-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f597c484-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f599c964-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.554342"], ["updated_at", "2015-06-03 00:10:36.554342"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f598d82e-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f599c964-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f598d82e-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f599c964-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.559466"], ["updated_at", "2015-06-03 00:10:36.559466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$DrBkTxJuyfB6RE1g2Waj4uuAvD.yqer5f8gP5SJjfkV0FDj7E6mbS"], ["created_at", "2015-06-03 00:10:36.569694"], ["updated_at", "2015-06-03 00:10:36.569694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$0EgIKspewMYGzgWQDBiCtu0agKwHpfQIAKar1Fa4DoBY8Ee/99lsu"], ["created_at", "2015-06-03 00:10:36.576270"], ["updated_at", "2015-06-03 00:10:36.576270"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.578880"], ["user_id", "f59cf1de-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.579635"], ["updated_at", "2015-06-03 00:10:36.579635"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.585532"], ["updated_at", "2015-06-03 00:10:36.585532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f59cf1de-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f59f61e4-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f59cf1de-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f59f61e4-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.590320"], ["updated_at", "2015-06-03 00:10:36.590320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f59dff34-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f59f61e4-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f59dff34-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f59f61e4-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.594267"], ["updated_at", "2015-06-03 00:10:36.594267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/f59f61e4-0984-11e5-9263-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"f59f61e4-0984-11e5-9263-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:10:36.597282') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "61f6b782-fca8-463f-ac56-c03e39c6c0b5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:10:36.598778"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:10:36.599627"], ["id", "61f6b782-fca8-463f-ac56-c03e39c6c0b5"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f59f61e4-0984-11e5-9263-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f59cf1de-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f59cf1de-0984-11e5-9263-a8667f0424ad' LIMIT 1 [["organization_id", "f59f61e4-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "f59f61e4-0984-11e5-9263-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f59cf1de-0984-11e5-9263-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f59dff34-0984-11e5-9263-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 3.7ms | ActiveRecord: 2.1ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$DY5ppEdCBWIvTokWtU11xOhS0CMT5B06xHvKzT0R6Qynv9wqAT7YW"], ["created_at", "2015-06-03 00:10:36.622879"], ["updated_at", "2015-06-03 00:10:36.622879"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$Nugsu.5NMjPUVgNTxzX3eum5BbXsJrjfmNJPUOPbIY2Omw.QgUiO6"], ["created_at", "2015-06-03 00:10:36.630586"], ["updated_at", "2015-06-03 00:10:36.630586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.633130"], ["user_id", "f5a521ce-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.634262"], ["updated_at", "2015-06-03 00:10:36.634262"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.640321"], ["updated_at", "2015-06-03 00:10:36.640321"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5a521ce-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5a7c226-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5a521ce-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5a7c226-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.645285"], ["updated_at", "2015-06-03 00:10:36.645285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5a6477a-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5a7c226-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5a6477a-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5a7c226-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.648144"], ["updated_at", "2015-06-03 00:10:36.648144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$RsQ.66qhzRjCiK6WTFy3ke3nSf9/5J9EgpqXZflaj3XrhK5l2gPx2"], ["created_at", "2015-06-03 00:10:36.655683"], ["updated_at", "2015-06-03 00:10:36.655683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.658501"], ["user_id", "f5aa1f1c-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.659526"], ["updated_at", "2015-06-03 00:10:36.659526"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'f5a7c226-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "f5a7c226-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.664277"], ["updated_at", "2015-06-03 00:10:36.664277"], ["token", "P_o6-hBFLxXe3LbGqK2qV33kYHpKcdYCXcorM1zNx-s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$ZxXyQfm4U8v70kuWkUcv8OOf9hWujeErcKtK1IQaFEBlbrHgjE2wK"], ["created_at", "2015-06-03 00:10:36.676014"], ["updated_at", "2015-06-03 00:10:36.676014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$H3HISnqyVFDJ5QJ9/Xz29.OOp2N9Wp0HvpVQ5H.QTxtf.eBYnlLUi"], ["created_at", "2015-06-03 00:10:36.681986"], ["updated_at", "2015-06-03 00:10:36.681986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.683836"], ["user_id", "f5ad33b4-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.684601"], ["updated_at", "2015-06-03 00:10:36.684601"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.689903"], ["updated_at", "2015-06-03 00:10:36.689903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5ad33b4-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5af5072-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5ad33b4-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5af5072-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.694013"], ["updated_at", "2015-06-03 00:10:36.694013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5ae0d3e-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5af5072-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5ae0d3e-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5af5072-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.696878"], ["updated_at", "2015-06-03 00:10:36.696878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$/SJ4SKsQz04jbJFgxqwm7ek/ie32CeC7/avjO7zWYbeeIWxGwsKmu"], ["created_at", "2015-06-03 00:10:36.702242"], ["updated_at", "2015-06-03 00:10:36.702242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.704045"], ["user_id", "f5b12b68-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.704924"], ["updated_at", "2015-06-03 00:10:36.704924"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'f5af5072-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "f5af5072-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.710522"], ["updated_at", "2015-06-03 00:10:36.710522"], ["token", "OmF9YVF4dmUKWwmTGswxDAV8IOVc8KLiO9nuG8ITHGg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"OmF9YVF4dmUKWwmTGswxDAV8IOVc8KLiO9nuG8ITHGg", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:10:36.713612') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "408c41be-21e0-47e0-918b-be55abf31271"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:10:36.714995"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:10:36.715725"], ["id", "408c41be-21e0-47e0-918b-be55abf31271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5b12b68-0984-11e5-9263-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "OmF9YVF4dmUKWwmTGswxDAV8IOVc8KLiO9nuG8ITHGg"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f5af5072-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5b12b68-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5af5072-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "f5af5072-0984-11e5-9263-a8667f0424ad"], ["member_id", "f5b12b68-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.723853"], ["updated_at", "2015-06-03 00:10:36.723853"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "f5b26b7c-0984-11e5-9263-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.7ms | ActiveRecord: 3.1ms)  (1.7ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$6w/FM05VDU3WoefmpoAgW.2xR9SCXJTYSiLEDsKJXIaPdVIDZSpj."], ["created_at", "2015-06-03 00:10:36.748342"], ["updated_at", "2015-06-03 00:10:36.748342"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$2AuQbxFFAffHpLQfke6gp.py6Wemu8W9AIpcx2CtDz7BMXvfIqhnm"], ["created_at", "2015-06-03 00:10:36.758389"], ["updated_at", "2015-06-03 00:10:36.758389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.761610"], ["user_id", "f5b83e94-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.762851"], ["updated_at", "2015-06-03 00:10:36.762851"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.773085"], ["updated_at", "2015-06-03 00:10:36.773085"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5b83e94-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5bc1456-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5b83e94-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5bc1456-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.779822"], ["updated_at", "2015-06-03 00:10:36.779822"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5b9cbc4-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5bc1456-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5b9cbc4-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5bc1456-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.786222"], ["updated_at", "2015-06-03 00:10:36.786222"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$c9r/dU.1T9GJE15hBhUyQe9I3GE7DoD9hK01MuZESWja3/dxsdciW"], ["created_at", "2015-06-03 00:10:36.796401"], ["updated_at", "2015-06-03 00:10:36.796401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.798355"], ["user_id", "f5bf8a3c-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.798995"], ["updated_at", "2015-06-03 00:10:36.798995"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'f5bc1456-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "f5bc1456-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.804248"], ["updated_at", "2015-06-03 00:10:36.804248"], ["token", "CoZ8BqoDh6bB1u3t27-4i9wZEaBiHVqckY_BxhRhixE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:10:36.808611') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cbbfef87-e207-4908-aeb3-64761e536c47"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:10:36.812880"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:10:36.816506"], ["id", "cbbfef87-e207-4908-aeb3-64761e536c47"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5bf8a3c-0984-11e5-9263-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 17ms (ActiveRecord: 2.2ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (8.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$gWWq5WWTUFQEh7qRE2AU7OzCNuCsZKe56CoZV3/.fKLGvRzk7Xxve"], ["created_at", "2015-06-03 00:10:36.838672"], ["updated_at", "2015-06-03 00:10:36.838672"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$1GuMm1Fcun30ktLzoaFLIO7TiP.84BTXWX6EomJuyk007DvV7dgUm"], ["created_at", "2015-06-03 00:10:36.860146"], ["updated_at", "2015-06-03 00:10:36.860146"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.864170"], ["user_id", "f5c74880-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.865647"], ["updated_at", "2015-06-03 00:10:36.865647"], ["client", "App"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.880038"], ["updated_at", "2015-06-03 00:10:36.880038"]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5c74880-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5cc8052-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5c74880-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5cc8052-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.895496"], ["updated_at", "2015-06-03 00:10:36.895496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5c95f12-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5cc8052-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5c95f12-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5cc8052-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.898964"], ["updated_at", "2015-06-03 00:10:36.898964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$yYvZyp7YmP1D6a6ixyU37uZgmgtLmfnOCcxqRi7NTxLCHFalmn32S"], ["created_at", "2015-06-03 00:10:36.914191"], ["updated_at", "2015-06-03 00:10:36.914191"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$KW/FvIGifX2fDcBVh5YSh.yQ4k17rz.6Z9HsVKbX1n1Ti4M8Pgvcy"], ["created_at", "2015-06-03 00:10:36.926148"], ["updated_at", "2015-06-03 00:10:36.926148"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:36.930588"], ["user_id", "f5d1b0fe-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.931760"], ["updated_at", "2015-06-03 00:10:36.931760"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:36.943398"], ["updated_at", "2015-06-03 00:10:36.943398"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5d1b0fe-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5d61496-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5d1b0fe-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5d61496-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:36.955435"], ["updated_at", "2015-06-03 00:10:36.955435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5d37312-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5d61496-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5d37312-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5d61496-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:36.961262"], ["updated_at", "2015-06-03 00:10:36.961262"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/f5d7db28-0984-11e5-9263-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:10:36 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"f5d7db28-0984-11e5-9263-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:10:36.968585') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3b151a96-d57e-4978-859f-607826b748d8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:10:36.970785"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:10:36.971832"], ["id", "3b151a96-d57e-4978-859f-607826b748d8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.5ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "f5d7db28-0984-11e5-9263-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5d1b0fe-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f5d61496-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f5d1b0fe-0984-11e5-9263-a8667f0424ad' LIMIT 1 [["organization_id", "f5d61496-0984-11e5-9263-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5d1b0fe-0984-11e5-9263-a8667f0424ad"]] Completed 200 OK in 15ms (Views: 2.1ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$Ty2.4oJq0dcDgTwU.sqJ7uehBqaKYvPcSkNsAUxcGAR40Pdf9B5Qy"], ["created_at", "2015-06-03 00:10:36.992170"], ["updated_at", "2015-06-03 00:10:36.992170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$W/ewwdNKlhjdI2uWrexxj.vLWOijO.MYrpRkFyIcgPaqT2P9BgBO2"], ["created_at", "2015-06-03 00:10:37.003254"], ["updated_at", "2015-06-03 00:10:37.003254"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:37.005619"], ["user_id", "f5ddccc2-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:37.006570"], ["updated_at", "2015-06-03 00:10:37.006570"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:37.014299"], ["updated_at", "2015-06-03 00:10:37.014299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5ddccc2-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5e0cc1a-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5ddccc2-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5e0cc1a-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:37.019531"], ["updated_at", "2015-06-03 00:10:37.019531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5df2162-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5e0cc1a-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5df2162-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5e0cc1a-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:37.024680"], ["updated_at", "2015-06-03 00:10:37.024680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 17:10:37 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$o/IMHuld7dUx86QgNbx0w.eS9anPlLfvsKLFTeeQetHMSLZ4iCx/O"], ["created_at", "2015-06-03 00:10:37.040307"], ["updated_at", "2015-06-03 00:10:37.040307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$eXLuQKVfG7p4m057su7WVegDBlDctEGwzmnwC4j.16EhVBhQd6kZ6"], ["created_at", "2015-06-03 00:10:37.048176"], ["updated_at", "2015-06-03 00:10:37.048176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:37.050259"], ["user_id", "f5e4d814-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:37.051130"], ["updated_at", "2015-06-03 00:10:37.051130"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:37.056277"], ["updated_at", "2015-06-03 00:10:37.056277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5e4d814-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5e73fbe-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5e4d814-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5e73fbe-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:37.062790"], ["updated_at", "2015-06-03 00:10:37.062790"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5e5f46a-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5e73fbe-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5e5f46a-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5e73fbe-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:37.072058"], ["updated_at", "2015-06-03 00:10:37.072058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/f5e99930-0984-11e5-9263-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:10:37 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"f5e99930-0984-11e5-9263-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:10:37.075562') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c68061b3-0ef6-43bf-8735-c6bcd06559d4"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:10:37.077354"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:10:37.078543"], ["id", "c68061b3-0ef6-43bf-8735-c6bcd06559d4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "f5e99930-0984-11e5-9263-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5e4d814-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f5e73fbe-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f5e4d814-0984-11e5-9263-a8667f0424ad' LIMIT 1 [["organization_id", "f5e73fbe-0984-11e5-9263-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5e5f46a-0984-11e5-9263-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5e5f46a-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."id" != 'f5e99930-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5e73fbe-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:10:37.087187"], ["id", "f5e99930-0984-11e5-9263-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 2.1ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$zUOX9bPXiz7RUOyqhJCvNevmiOp9K/XCsEk6Bv8Bx494/Xf9ZKLrK"], ["created_at", "2015-06-03 00:10:37.099463"], ["updated_at", "2015-06-03 00:10:37.099463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$vEBQv1DYGDg62yQNjcJjU.uW5Fbi9C1YQLGALh.o58uh8t.IIJteW"], ["created_at", "2015-06-03 00:10:37.104994"], ["updated_at", "2015-06-03 00:10:37.104994"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:37.109124"], ["user_id", "f5edc3ac-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:37.109931"], ["updated_at", "2015-06-03 00:10:37.109931"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:37.115652"], ["updated_at", "2015-06-03 00:10:37.115652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5edc3ac-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5f043f2-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5edc3ac-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5f043f2-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:37.120084"], ["updated_at", "2015-06-03 00:10:37.120084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5eeae48-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5f043f2-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5eeae48-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5f043f2-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:37.123521"], ["updated_at", "2015-06-03 00:10:37.123521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:10:37 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$utiX3QI72JZmqcbD7mw6ve/BTBTiovSGCKDVSHT2GuJi.DwDVXzq2"], ["created_at", "2015-06-03 00:10:37.134888"], ["updated_at", "2015-06-03 00:10:37.134888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$kkhDHMpNDbNwY1fSCq76LObBnNVuulGNPKU9liV5UXWitRwK6NXnG"], ["created_at", "2015-06-03 00:10:37.141030"], ["updated_at", "2015-06-03 00:10:37.141030"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:10:37.143605"], ["user_id", "f5f32ef0-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:37.144487"], ["updated_at", "2015-06-03 00:10:37.144487"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:10:37.149721"], ["updated_at", "2015-06-03 00:10:37.149721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5f32ef0-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5f57570-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5f32ef0-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5f57570-0984-11e5-9263-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:10:37.153326"], ["updated_at", "2015-06-03 00:10:37.153326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5f424b8-0984-11e5-9263-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = 'f5f57570-0984-11e5-9263-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5f424b8-0984-11e5-9263-a8667f0424ad"], ["organization_id", "f5f57570-0984-11e5-9263-a8667f0424ad"], ["created_at", "2015-06-03 00:10:37.156451"], ["updated_at", "2015-06-03 00:10:37.156451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:10:37 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:10:37.158989') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9d5eb182-93e2-4562-9fb8-b44443d96099"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:10:37.160323"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:10:37.161360"], ["id", "9d5eb182-93e2-4562-9fb8-b44443d96099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5f32ef0-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f5f32ef0-0984-11e5-9263-a8667f0424ad' LIMIT 1 [["organization_id", "f5f57570-0984-11e5-9263-a8667f0424ad"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "f5f57570-0984-11e5-9263-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5f32ef0-0984-11e5-9263-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5f424b8-0984-11e5-9263-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 4.1ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$WBsG0tcc01E02i8lou88yuIm.fAwq0GlV9UU1RKnnZCfg9VCOuLpG"], ["created_at", "2015-06-03 00:11:17.584803"], ["updated_at", "2015-06-03 00:11:17.584803"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$m9pXxoEnocbu44BzzInohOUH0hto48R8afcRqTBSUoT/wOcr/3FsO"], ["created_at", "2015-06-03 00:11:17.598149"], ["updated_at", "2015-06-03 00:11:17.598149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:17.626826"], ["user_id", "0e1003dc-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.634508"], ["updated_at", "2015-06-03 00:11:17.634508"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:17.648158"], ["updated_at", "2015-06-03 00:11:17.648158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e1003dc-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e190ea0-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e1003dc-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e190ea0-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:17.662344"], ["updated_at", "2015-06-03 00:11:17.662344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e116952-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e190ea0-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e116952-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e190ea0-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.666782"], ["updated_at", "2015-06-03 00:11:17.666782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$L7XqocL3aXvWVRUV9hrfWe2KAjpQddRp7Ko9r4L0vxnhQL0g2u/7m"], ["created_at", "2015-06-03 00:11:17.673789"], ["updated_at", "2015-06-03 00:11:17.673789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:17.676131"], ["user_id", "0e1cfd80-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.676828"], ["updated_at", "2015-06-03 00:11:17.676828"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0e190ea0-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "0e190ea0-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:17.694425"], ["updated_at", "2015-06-03 00:11:17.694425"], ["token", "Ko0IXe2zlpc3Usj9KhHW-9y8nIuxma2sELhtXi0Uejo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:11:17 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$nzbfbvgNHfR6Lc3EbI/QX.oeBy6ihG8kCuRQbQBH1fIwsOfri6ZPi"], ["created_at", "2015-06-03 00:11:17.728669"], ["updated_at", "2015-06-03 00:11:17.728669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$ppGKE0ECqyFlG3OM/BxVa.kg06IeoNdk.gYSMmq/i/PW9WHBtIgs."], ["created_at", "2015-06-03 00:11:17.738860"], ["updated_at", "2015-06-03 00:11:17.738860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:17.742003"], ["user_id", "0e25773a-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.743101"], ["updated_at", "2015-06-03 00:11:17.743101"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:17.748438"], ["updated_at", "2015-06-03 00:11:17.748438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e25773a-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e28679c-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e25773a-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e28679c-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:17.753070"], ["updated_at", "2015-06-03 00:11:17.753070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e26fc9a-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e28679c-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e26fc9a-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e28679c-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.758407"], ["updated_at", "2015-06-03 00:11:17.758407"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$fXhs7fgkP6z78ANEF4E0veA2Ldsn.U97qJQrKCiYRHlrWNamG2lnS"], ["created_at", "2015-06-03 00:11:17.766412"], ["updated_at", "2015-06-03 00:11:17.766412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:17.768526"], ["user_id", "0e2b1488-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.769246"], ["updated_at", "2015-06-03 00:11:17.769246"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '0e28679c-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "0e28679c-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:17.774778"], ["updated_at", "2015-06-03 00:11:17.774778"], ["token", "65xscFgnqTFQK6TJM3xoX1Dxzm8y-2IaCQcTA31gw4k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0e28679c-0985-11e5-879a-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:11:17 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"65xscFgnqTFQK6TJM3xoX1Dxzm8y-2IaCQcTA31gw4k", "organization_id"=>"0e28679c-0985-11e5-879a-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:17.779900') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3b661d78-3cb5-4a1b-b6d5-4795dce931aa"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:17.794544"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:17.795902"], ["id", "3b661d78-3cb5-4a1b-b6d5-4795dce931aa"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0e28679c-0985-11e5-879a-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e2b1488-0985-11e5-879a-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "65xscFgnqTFQK6TJM3xoX1Dxzm8y-2IaCQcTA31gw4k"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e28679c-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e2b1488-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e28679c-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "0e28679c-0985-11e5-879a-a8667f0424ad"], ["member_id", "0e2b1488-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:17.829014"], ["updated_at", "2015-06-03 00:11:17.829014"]] SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "0e2c6482-0985-11e5-879a-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 68ms (Views: 13.7ms | ActiveRecord: 4.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$QAXKlyiTUc9tjNQnTnYN1OvSpeGpOMXbQup0lwEAAufPef4i.KrFG"], ["created_at", "2015-06-03 00:11:17.859102"], ["updated_at", "2015-06-03 00:11:17.859102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$ov/fgUyS6rBZiFIIUwUawuLr/o/nD7KaFs43I/y/I.f.2kPzC1yx2"], ["created_at", "2015-06-03 00:11:17.865305"], ["updated_at", "2015-06-03 00:11:17.865305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:17.868061"], ["user_id", "0e39390a-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.868840"], ["updated_at", "2015-06-03 00:11:17.868840"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:17.873982"], ["updated_at", "2015-06-03 00:11:17.873982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e39390a-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e3b772e-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e39390a-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e3b772e-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:17.877217"], ["updated_at", "2015-06-03 00:11:17.877217"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e3a2c84-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e3b772e-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e3a2c84-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e3b772e-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.882648"], ["updated_at", "2015-06-03 00:11:17.882648"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$8QD38V2QI0bwiy3ocTktPeClkJUMUANfsTck/Xmyo0mogwsHy4LC2"], ["created_at", "2015-06-03 00:11:17.893114"], ["updated_at", "2015-06-03 00:11:17.893114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:17.895480"], ["user_id", "0e3e6920-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.896331"], ["updated_at", "2015-06-03 00:11:17.896331"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '0e3b772e-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "0e3b772e-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:17.901392"], ["updated_at", "2015-06-03 00:11:17.901392"], ["token", "N5mWD9HtMJXqiWIsTkcpmxgKcMBbcL44U_4Vsvw2MiM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0e3b772e-0985-11e5-879a-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:11:17 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"0e3b772e-0985-11e5-879a-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:17.907210') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "335460f1-b27e-4744-9561-91a89b991837"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:17.909405"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:17.910404"], ["id", "335460f1-b27e-4744-9561-91a89b991837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0e3b772e-0985-11e5-879a-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e3e6920-0985-11e5-879a-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$BoGCMvYPdpdy84WQhQB2vuSG2hN69012P8XzyD19AQwLKBrEnlhHS"], ["created_at", "2015-06-03 00:11:17.924028"], ["updated_at", "2015-06-03 00:11:17.924028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$bVcJ2xt9K3xUzwf2CxC0bOlqt/XwenxwfmyQ5c0l0LaybVHh3y8Ki"], ["created_at", "2015-06-03 00:11:17.931164"], ["updated_at", "2015-06-03 00:11:17.931164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:17.933649"], ["user_id", "0e432050-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.934924"], ["updated_at", "2015-06-03 00:11:17.934924"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:17.941954"], ["updated_at", "2015-06-03 00:11:17.941954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e432050-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e45dc00-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e432050-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e45dc00-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:17.946055"], ["updated_at", "2015-06-03 00:11:17.946055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e44380a-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e45dc00-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e44380a-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e45dc00-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.958357"], ["updated_at", "2015-06-03 00:11:17.958357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 17:11:17 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$7dHA/Ndq8R1bxkEQzG5AtOW02fr5TSpAAhLIs4rU7d3UzbFoOnKUG"], ["created_at", "2015-06-03 00:11:17.970087"], ["updated_at", "2015-06-03 00:11:17.970087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$K/0XG3SEDW1b/av78EsIUecRlAiHVXDvysozzer/XtRrIgX17aqE6"], ["created_at", "2015-06-03 00:11:17.976567"], ["updated_at", "2015-06-03 00:11:17.976567"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:17.979203"], ["user_id", "0e4a27c4-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.980281"], ["updated_at", "2015-06-03 00:11:17.980281"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:17.986427"], ["updated_at", "2015-06-03 00:11:17.986427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e4a27c4-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e4caa44-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e4a27c4-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e4caa44-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:17.990919"], ["updated_at", "2015-06-03 00:11:17.990919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e4b21e2-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e4caa44-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e4b21e2-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e4caa44-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:17.994985"], ["updated_at", "2015-06-03 00:11:17.994985"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/0e4dfae8-0985-11e5-879a-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:11:17 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"0e4dfae8-0985-11e5-879a-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:17.999548') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "07538461-0d1c-459d-bbcd-1c34ac7c543a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:18.001273"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:18.002169"], ["id", "07538461-0d1c-459d-bbcd-1c34ac7c543a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "0e4dfae8-0985-11e5-879a-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e4a27c4-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e4caa44-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0e4a27c4-0985-11e5-879a-a8667f0424ad' LIMIT 1 [["organization_id", "0e4caa44-0985-11e5-879a-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e4b21e2-0985-11e5-879a-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e4b21e2-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."id" != '0e4dfae8-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e4caa44-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:11:18.014222"], ["id", "0e4dfae8-0985-11e5-879a-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.0ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$60K7ntIxDrusfr.d2ykjZu9KtV1/jyd4Aj0iMbgjIksPnNqhftUGe"], ["created_at", "2015-06-03 00:11:18.029262"], ["updated_at", "2015-06-03 00:11:18.029262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$9VJhLmoBnVHyIt4rmGrVyedGjOEpf4TLI16k6K0klJqblVvhBKD6m"], ["created_at", "2015-06-03 00:11:18.038327"], ["updated_at", "2015-06-03 00:11:18.038327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.040462"], ["user_id", "0e533f9e-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.041202"], ["updated_at", "2015-06-03 00:11:18.041202"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.047576"], ["updated_at", "2015-06-03 00:11:18.047576"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e533f9e-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e55fe96-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e533f9e-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e55fe96-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.052110"], ["updated_at", "2015-06-03 00:11:18.052110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e5493f8-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e55fe96-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e5493f8-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e55fe96-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.056459"], ["updated_at", "2015-06-03 00:11:18.056459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$DL3e3E8LZeSyvS6t6XTlJeO.dxevljekw2/1UvudyTOX/9hdUfUrC"], ["created_at", "2015-06-03 00:11:18.069069"], ["updated_at", "2015-06-03 00:11:18.069069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$OdKfFUxmGCehDhBc5lDOp.yYhOXjwbNVO.z9mZCLKwpMXTY9ta4bK"], ["created_at", "2015-06-03 00:11:18.075023"], ["updated_at", "2015-06-03 00:11:18.075023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.077641"], ["user_id", "0e593fac-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.078619"], ["updated_at", "2015-06-03 00:11:18.078619"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.084268"], ["updated_at", "2015-06-03 00:11:18.084268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e593fac-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e5b973e-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e593fac-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e5b973e-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.088717"], ["updated_at", "2015-06-03 00:11:18.088717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e5a304c-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e5b973e-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e5a304c-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e5b973e-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.092239"], ["updated_at", "2015-06-03 00:11:18.092239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:18.095366') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "175d9dab-087a-4026-9743-dd8a0f985e04"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:18.097216"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:18.098104"], ["id", "175d9dab-087a-4026-9743-dd8a0f985e04"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e593fac-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0e593fac-0985-11e5-879a-a8667f0424ad' LIMIT 1 [["organization_id", "0e5b973e-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "0e5b973e-0985-11e5-879a-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e593fac-0985-11e5-879a-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e5a304c-0985-11e5-879a-a8667f0424ad"]] Completed 200 OK in 17ms (Views: 5.6ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$AL10aIBJ8R2kjENS3htKGeYyBu.JUg61u5MxegOfDVLQOX6evXAsK"], ["created_at", "2015-06-03 00:11:18.120773"], ["updated_at", "2015-06-03 00:11:18.120773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$qcXSFu/me1nJ5AIHxI.xmurzsr/Duonjn0uN6EuPQqWqMZ70wTMP6"], ["created_at", "2015-06-03 00:11:18.126193"], ["updated_at", "2015-06-03 00:11:18.126193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.127945"], ["user_id", "0e611ec0-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.129518"], ["updated_at", "2015-06-03 00:11:18.129518"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.134462"], ["updated_at", "2015-06-03 00:11:18.134462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e611ec0-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e633638-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e611ec0-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e633638-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.138468"], ["updated_at", "2015-06-03 00:11:18.138468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e61f228-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e633638-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e61f228-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e633638-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.141510"], ["updated_at", "2015-06-03 00:11:18.141510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$frYWlLjBaEuflCEXYPPiyuxZ9sOpqWfVIRTR5tFn3pYz07GiDxhmO"], ["created_at", "2015-06-03 00:11:18.151565"], ["updated_at", "2015-06-03 00:11:18.151565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$/ZQjb6U1mLqY7UixM5mSAOUsuZhhKj/7zPIVY4kXwuitomtzja21y"], ["created_at", "2015-06-03 00:11:18.158989"], ["updated_at", "2015-06-03 00:11:18.158989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.160782"], ["user_id", "0e65e338-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.161460"], ["updated_at", "2015-06-03 00:11:18.161460"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.166521"], ["updated_at", "2015-06-03 00:11:18.166521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e65e338-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e68196e-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e65e338-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e68196e-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.170076"], ["updated_at", "2015-06-03 00:11:18.170076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e66f480-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e68196e-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e66f480-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e68196e-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.173058"], ["updated_at", "2015-06-03 00:11:18.173058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/0e68a3a2-0985-11e5-879a-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"0e68a3a2-0985-11e5-879a-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:18.175858') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "62ccdecf-798a-4924-a802-1c628ccfdd22"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:18.177610"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:18.178563"], ["id", "62ccdecf-798a-4924-a802-1c628ccfdd22"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "0e68a3a2-0985-11e5-879a-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e65e338-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e68196e-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0e65e338-0985-11e5-879a-a8667f0424ad' LIMIT 1 [["organization_id", "0e68196e-0985-11e5-879a-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e65e338-0985-11e5-879a-a8667f0424ad"]] Completed 200 OK in 11ms (Views: 1.8ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$0ubuqs/HWUJ0LBmJJvMJQuADgs2MVAspdbY5Cy4TEUk.2RTbvecEy"], ["created_at", "2015-06-03 00:11:18.194151"], ["updated_at", "2015-06-03 00:11:18.194151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$ld6vk6vTxBaMIf4.hVfDQ.gCMp25TID3A2zCXBjATDQo6mqHTstjy"], ["created_at", "2015-06-03 00:11:18.199431"], ["updated_at", "2015-06-03 00:11:18.199431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.201510"], ["user_id", "0e6c51fa-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.202276"], ["updated_at", "2015-06-03 00:11:18.202276"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.206655"], ["updated_at", "2015-06-03 00:11:18.206655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e6c51fa-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e6e35f6-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e6c51fa-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e6e35f6-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.210000"], ["updated_at", "2015-06-03 00:11:18.210000"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e6d1d56-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e6e35f6-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e6d1d56-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e6e35f6-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.214154"], ["updated_at", "2015-06-03 00:11:18.214154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$0wUS8rqHPI2jiDuqHAUQ.ejjvwhi0ykSd4rmjlKTF2odZbdSHSv3i"], ["created_at", "2015-06-03 00:11:18.225914"], ["updated_at", "2015-06-03 00:11:18.225914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$6c28O8P3ffUW7dDy2Wt5IebowAheuY1U3czHCIjDYGBC.nrlkLxdi"], ["created_at", "2015-06-03 00:11:18.231988"], ["updated_at", "2015-06-03 00:11:18.231988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.233593"], ["user_id", "0e71374c-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.234382"], ["updated_at", "2015-06-03 00:11:18.234382"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.239806"], ["updated_at", "2015-06-03 00:11:18.239806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e71374c-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e7352fc-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e71374c-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e7352fc-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.243662"], ["updated_at", "2015-06-03 00:11:18.243662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e72148c-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e7352fc-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e72148c-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e7352fc-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.246736"], ["updated_at", "2015-06-03 00:11:18.246736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/0e745652-0985-11e5-879a-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"0e745652-0985-11e5-879a-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:18.249656') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "24cf1b86-6a04-4298-9d75-ad79f48f480d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:18.251059"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:18.251826"], ["id", "24cf1b86-6a04-4298-9d75-ad79f48f480d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "0e745652-0985-11e5-879a-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e71374c-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e7352fc-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0e71374c-0985-11e5-879a-a8667f0424ad' LIMIT 1 [["organization_id", "0e7352fc-0985-11e5-879a-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e72148c-0985-11e5-879a-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "0e745652-0985-11e5-879a-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$Oa5S8jiZpw6fu1AwuocFsOLxKMxPc11Edpc2.68ZTO2ikgMx.K/yC"], ["created_at", "2015-06-03 00:11:18.267229"], ["updated_at", "2015-06-03 00:11:18.267229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$U5JgZl0SFNrXmIfWR1ffmuwqq0rL1oohT/HcyoJ1wXeYlpGNPGV3W"], ["created_at", "2015-06-03 00:11:18.273174"], ["updated_at", "2015-06-03 00:11:18.273174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.275351"], ["user_id", "0e7779f4-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.276045"], ["updated_at", "2015-06-03 00:11:18.276045"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.280744"], ["updated_at", "2015-06-03 00:11:18.280744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e7779f4-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e798528-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e7779f4-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e798528-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.283838"], ["updated_at", "2015-06-03 00:11:18.283838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e786486-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e798528-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e786486-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e798528-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.286975"], ["updated_at", "2015-06-03 00:11:18.286975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$omoALudq7q8MdSaQuD6Q6OSxbVwgxUg0tFbJZT2jOSkJ1HuQVHoxW"], ["created_at", "2015-06-03 00:11:18.298257"], ["updated_at", "2015-06-03 00:11:18.298257"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$NmrZHTL8vXiNqf5txlo1YeK8Q80IQ/aEC0bVruSSWL.w8VAJXEu72"], ["created_at", "2015-06-03 00:11:18.305180"], ["updated_at", "2015-06-03 00:11:18.305180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.307965"], ["user_id", "0e7c4286-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.309179"], ["updated_at", "2015-06-03 00:11:18.309179"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.314405"], ["updated_at", "2015-06-03 00:11:18.314405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e7c4286-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e7eabd4-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e7c4286-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e7eabd4-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.318813"], ["updated_at", "2015-06-03 00:11:18.318813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e7d50f4-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e7eabd4-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e7d50f4-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e7eabd4-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.337537"], ["updated_at", "2015-06-03 00:11:18.337537"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/0e7eabd4-0985-11e5-879a-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"0e7eabd4-0985-11e5-879a-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:18.344127') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a795ba8d-0ca6-414a-96d5-4e531a534852"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:18.346133"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:18.347063"], ["id", "a795ba8d-0ca6-414a-96d5-4e531a534852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0e7eabd4-0985-11e5-879a-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e7c4286-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0e7c4286-0985-11e5-879a-a8667f0424ad' LIMIT 1 [["organization_id", "0e7eabd4-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "0e7eabd4-0985-11e5-879a-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e7c4286-0985-11e5-879a-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e7d50f4-0985-11e5-879a-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 4.4ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$O13wL4NwhDJ/dUQYqvXhYu.CcCsiAy5/.hLHlgrTpshztX2lgNacC"], ["created_at", "2015-06-03 00:11:18.367283"], ["updated_at", "2015-06-03 00:11:18.367283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$mn3xA2DZRLAUFjkS8/nGvORhoC6cEeHq1vv9oERRntWCEcZclrmlm"], ["created_at", "2015-06-03 00:11:18.376134"], ["updated_at", "2015-06-03 00:11:18.376134"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.378856"], ["user_id", "0e86c9b8-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.380023"], ["updated_at", "2015-06-03 00:11:18.380023"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.386840"], ["updated_at", "2015-06-03 00:11:18.386840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e86c9b8-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e89c046-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e86c9b8-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e89c046-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.391274"], ["updated_at", "2015-06-03 00:11:18.391274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e882416-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e89c046-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e882416-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e89c046-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.394457"], ["updated_at", "2015-06-03 00:11:18.394457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$ZnSB03aPVK2VUudzTABYt.9pLhJNychq.yv8qz8yVe4r3Fllzq1hm"], ["created_at", "2015-06-03 00:11:18.401176"], ["updated_at", "2015-06-03 00:11:18.401176"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.403653"], ["user_id", "0e8befce-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.404732"], ["updated_at", "2015-06-03 00:11:18.404732"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '0e89c046-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "0e89c046-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.410009"], ["updated_at", "2015-06-03 00:11:18.410009"], ["token", "QN9CsY6tKIf4gATlhqJ405C9Masl81wpi3_8HqwwLgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$c5nq0iFwDhqsVKXqSe32ueYMf4iGiSQlAetT1Kurel6n.TiLvIDtq"], ["created_at", "2015-06-03 00:11:18.420796"], ["updated_at", "2015-06-03 00:11:18.420796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$IMp5b9ZKDcv1QwiuOdyEmOpoHUPYFbCqhlOMalpZJf6XNTWXU0jOC"], ["created_at", "2015-06-03 00:11:18.426676"], ["updated_at", "2015-06-03 00:11:18.426676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.428956"], ["user_id", "0e8eeaee-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.429684"], ["updated_at", "2015-06-03 00:11:18.429684"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.435985"], ["updated_at", "2015-06-03 00:11:18.435985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e8eeaee-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e914546-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e8eeaee-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e914546-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.440676"], ["updated_at", "2015-06-03 00:11:18.440676"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e8fd58a-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e914546-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e8fd58a-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e914546-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.445696"], ["updated_at", "2015-06-03 00:11:18.445696"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$WHSGoLvACutbm8oYrgtXOO0ZC8E5PwU70ld1P0L4RZ2qwBaXxVgf6"], ["created_at", "2015-06-03 00:11:18.460076"], ["updated_at", "2015-06-03 00:11:18.460076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.462692"], ["user_id", "0e94fb00-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.463478"], ["updated_at", "2015-06-03 00:11:18.463478"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '0e914546-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "0e914546-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.473256"], ["updated_at", "2015-06-03 00:11:18.473256"], ["token", "AjliIoSs_06dnAu3xwhF2izOlUNqpEww8-G8qA1kPis"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"AjliIoSs_06dnAu3xwhF2izOlUNqpEww8-G8qA1kPis", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:18.478458') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "420d794d-01b9-49f3-8141-7d63db2279e0"]]  (0.8ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:18.480609"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:18.482601"], ["id", "420d794d-01b9-49f3-8141-7d63db2279e0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (1.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0e94fb00-0985-11e5-879a-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "AjliIoSs_06dnAu3xwhF2izOlUNqpEww8-G8qA1kPis"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e914546-0985-11e5-879a-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e94fb00-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e914546-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "0e914546-0985-11e5-879a-a8667f0424ad"], ["member_id", "0e94fb00-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.494452"], ["updated_at", "2015-06-03 00:11:18.494452"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "0e970468-0985-11e5-879a-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 0.9ms | ActiveRecord: 4.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$wCwC3rusk4JG8T7sL8mrQOzJU6tnAAwCtxgWnqYbC7SXTPlK6VJri"], ["created_at", "2015-06-03 00:11:18.504969"], ["updated_at", "2015-06-03 00:11:18.504969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$sQ5MjLFUv8P4NR8s6YytNejTF8c1n8TVuXep61uSouiK6zL95jcrm"], ["created_at", "2015-06-03 00:11:18.511690"], ["updated_at", "2015-06-03 00:11:18.511690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.513622"], ["user_id", "0e9bd0ec-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.514901"], ["updated_at", "2015-06-03 00:11:18.514901"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:18.520620"], ["updated_at", "2015-06-03 00:11:18.520620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e9bd0ec-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e9e2aae-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e9bd0ec-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e9e2aae-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.525128"], ["updated_at", "2015-06-03 00:11:18.525128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e9cc47a-0985-11e5-879a-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '0e9e2aae-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0e9cc47a-0985-11e5-879a-a8667f0424ad"], ["organization_id", "0e9e2aae-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.529185"], ["updated_at", "2015-06-03 00:11:18.529185"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$1kierZpsM7a9qJpxTnd4n.unTv23qTT3PvtIeIYcEBrCOQuj525z."], ["created_at", "2015-06-03 00:11:18.537235"], ["updated_at", "2015-06-03 00:11:18.537235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:18.539914"], ["user_id", "0ea0bb8e-0985-11e5-879a-a8667f0424ad"], ["created_at", "2015-06-03 00:11:18.541361"], ["updated_at", "2015-06-03 00:11:18.541361"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '0e9e2aae-0985-11e5-879a-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "0e9e2aae-0985-11e5-879a-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:18.548450"], ["updated_at", "2015-06-03 00:11:18.548450"], ["token", "-fX6YIS205LnqikEQx_fdGK5_3d2Yy_Wsp91cTC-wjo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:11:18 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:18.552988') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "63f61a00-c9e3-408d-a971-ca221814b126"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:18.555463"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:18.556790"], ["id", "63f61a00-c9e3-408d-a971-ca221814b126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ea0bb8e-0985-11e5-879a-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 13ms (ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$B8pKv3XdnTiJOs0Q/i5SJu4GT8cNTyjRQwiJ9YjTyjQFNxjHcg2A6"], ["created_at", "2015-06-03 00:11:43.373794"], ["updated_at", "2015-06-03 00:11:43.373794"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$Op6.BS0eAmeN/PpMQEVf5.aI/8jxOtKceuSEkzJq6GF7m1Y1gNpVW"], ["created_at", "2015-06-03 00:11:43.386291"], ["updated_at", "2015-06-03 00:11:43.386291"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.410767"], ["user_id", "1d6eda42-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.418135"], ["updated_at", "2015-06-03 00:11:43.418135"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.429662"], ["updated_at", "2015-06-03 00:11:43.429662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d6eda42-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1d7701ea-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1d6eda42-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1d7701ea-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.444045"], ["updated_at", "2015-06-03 00:11:43.444045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d7062fe-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1d7701ea-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1d7062fe-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1d7701ea-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.448040"], ["updated_at", "2015-06-03 00:11:43.448040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$uygwnInq/MYi1toW.OPz2.NbXEkgBdRf/Uh0k1YdRYD5YEVvwP23m"], ["created_at", "2015-06-03 00:11:43.454236"], ["updated_at", "2015-06-03 00:11:43.454236"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.457731"], ["user_id", "1d7ace42-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.458870"], ["updated_at", "2015-06-03 00:11:43.458870"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '1d7701ea-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "1d7701ea-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.472940"], ["updated_at", "2015-06-03 00:11:43.472940"], ["token", "U2XsCIKVlbCArxUPHOUma_V5Xw0trDDF2Y6V4oaZWWk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:11:43 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$witM0TeZY4S1AbCjmXPUJua1j2Rr8ShNLqV85px92VMUS4i56r79u"], ["created_at", "2015-06-03 00:11:43.508842"], ["updated_at", "2015-06-03 00:11:43.508842"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$xybUcT8Vi.bKh0w0q4bdbeTsfx4Beu..2Vu6NTxo3DdPrXXOoXuSW"], ["created_at", "2015-06-03 00:11:43.520511"], ["updated_at", "2015-06-03 00:11:43.520511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.523266"], ["user_id", "1d832fce-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.524213"], ["updated_at", "2015-06-03 00:11:43.524213"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.530447"], ["updated_at", "2015-06-03 00:11:43.530447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d832fce-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1d865672-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1d832fce-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1d865672-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.534192"], ["updated_at", "2015-06-03 00:11:43.534192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d84e42c-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1d865672-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1d84e42c-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1d865672-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.538122"], ["updated_at", "2015-06-03 00:11:43.538122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$0OuA9AC.7IVOwZSko3/BXuVsjYrgeplVOwy6dRjkFGaYou/I4x3ZK"], ["created_at", "2015-06-03 00:11:43.543919"], ["updated_at", "2015-06-03 00:11:43.543919"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.546181"], ["user_id", "1d8867dc-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.547054"], ["updated_at", "2015-06-03 00:11:43.547054"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '1d865672-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "1d865672-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.552102"], ["updated_at", "2015-06-03 00:11:43.552102"], ["token", "vmGUTTDjbOxXgKq6v2aBQckFfoCEb0nUeXstfkTY2_4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:11:43 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:43.558053') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ea70e7ad-7781-4862-8934-3268e742dafd"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:43.566747"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:43.568035"], ["id", "ea70e7ad-7781-4862-8934-3268e742dafd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1d8867dc-0985-11e5-bd44-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 42ms (ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$4RLL63pUDDQdgnlQJ1fsa.GtYyu1GyTTeX5Xld1UiQu5JUIaDpOyG"], ["created_at", "2015-06-03 00:11:43.607108"], ["updated_at", "2015-06-03 00:11:43.607108"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$57fkQ9mdGpVN/TiJpSDsMuFyx9ZLiiRN/2jNgR5AP5GvYkC9cy7aO"], ["created_at", "2015-06-03 00:11:43.614835"], ["updated_at", "2015-06-03 00:11:43.614835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.617021"], ["user_id", "1d920d00-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.617755"], ["updated_at", "2015-06-03 00:11:43.617755"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.622042"], ["updated_at", "2015-06-03 00:11:43.622042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d920d00-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1d944c28-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1d920d00-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1d944c28-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.626056"], ["updated_at", "2015-06-03 00:11:43.626056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d933ec8-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1d944c28-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1d933ec8-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1d944c28-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.629294"], ["updated_at", "2015-06-03 00:11:43.629294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$POpsaHit1nDi1sw1w66AZueCIJJifJXJ0nIGuuonMuMySloPy/drm"], ["created_at", "2015-06-03 00:11:43.635033"], ["updated_at", "2015-06-03 00:11:43.635033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.636858"], ["user_id", "1d96482a-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.637725"], ["updated_at", "2015-06-03 00:11:43.637725"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '1d944c28-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "1d944c28-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.642725"], ["updated_at", "2015-06-03 00:11:43.642725"], ["token", "teea0LzekDbAYlcvkdu_8VhIcqMFdjaZEoXu8il2i2I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:11:43 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"teea0LzekDbAYlcvkdu_8VhIcqMFdjaZEoXu8il2i2I", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:43.645989') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "52dbe278-1ba7-4590-927e-c3cb6cb06ec7"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:43.647554"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:43.648537"], ["id", "52dbe278-1ba7-4590-927e-c3cb6cb06ec7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1d96482a-0985-11e5-bd44-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "teea0LzekDbAYlcvkdu_8VhIcqMFdjaZEoXu8il2i2I"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1d944c28-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d96482a-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1d944c28-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "1d944c28-0985-11e5-bd44-a8667f0424ad"], ["member_id", "1d96482a-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.656666"], ["updated_at", "2015-06-03 00:11:43.656666"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "1d9777a4-0985-11e5-bd44-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 26ms (Views: 12.4ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$6yF26PydSuI4gfCtZxl7jOWvT1wA.UtsNrinjV1LnBJyV8vADx0Zi"], ["created_at", "2015-06-03 00:11:43.681397"], ["updated_at", "2015-06-03 00:11:43.681397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$fnIDWtJaESUzQqtR6r1uAugJF4B2UcUt3yWYoeo3JKVYMGcheCdvy"], ["created_at", "2015-06-03 00:11:43.687388"], ["updated_at", "2015-06-03 00:11:43.687388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.689023"], ["user_id", "1d9d66c8-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.689669"], ["updated_at", "2015-06-03 00:11:43.689669"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.694179"], ["updated_at", "2015-06-03 00:11:43.694179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d9d66c8-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1d9f5316-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1d9d66c8-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1d9f5316-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.697704"], ["updated_at", "2015-06-03 00:11:43.697704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d9e450c-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1d9f5316-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1d9e450c-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1d9f5316-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.700693"], ["updated_at", "2015-06-03 00:11:43.700693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1da19af4-0985-11e5-bd44-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:11:43 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1da19af4-0985-11e5-bd44-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:43.712978') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "aaf096d3-43a5-4df3-9e06-3a587f0bdbfb"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:43.714562"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:43.715340"], ["id", "aaf096d3-43a5-4df3-9e06-3a587f0bdbfb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "1da19af4-0985-11e5-bd44-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1d9d66c8-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1d9f5316-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1d9d66c8-0985-11e5-bd44-a8667f0424ad' LIMIT 1 [["organization_id", "1d9f5316-0985-11e5-bd44-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1d9e450c-0985-11e5-bd44-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "1da19af4-0985-11e5-bd44-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 15ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$wyCECtlIa50FkyJBpvuJGO2lamr0QrG.b3YiUamvU6IvunXAQOF0C"], ["created_at", "2015-06-03 00:11:43.736197"], ["updated_at", "2015-06-03 00:11:43.736197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$oRWMbw9xQG82GtgsWsPxu.vH3xQdegp0FR5koDERfj4APWHsWz41u"], ["created_at", "2015-06-03 00:11:43.742699"], ["updated_at", "2015-06-03 00:11:43.742699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.744485"], ["user_id", "1da5bb66-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.745108"], ["updated_at", "2015-06-03 00:11:43.745108"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.749556"], ["updated_at", "2015-06-03 00:11:43.749556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1da5bb66-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1da7c2bc-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1da5bb66-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1da7c2bc-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.753264"], ["updated_at", "2015-06-03 00:11:43.753264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1da6b98a-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1da7c2bc-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1da6b98a-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1da7c2bc-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.759146"], ["updated_at", "2015-06-03 00:11:43.759146"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 17:11:43 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$UguzS1Be4rJl97JAXgUTb.QIaBmAcU31PTwa4VFLJtySuM1uFUq8y"], ["created_at", "2015-06-03 00:11:43.775520"], ["updated_at", "2015-06-03 00:11:43.775520"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$0yPTaQsHfgSp/.ynTR.SdemqYmCrmrQfOSpdpMk11GZz4x2WhPC1K"], ["created_at", "2015-06-03 00:11:43.783826"], ["updated_at", "2015-06-03 00:11:43.783826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.785673"], ["user_id", "1dabbcb4-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.786387"], ["updated_at", "2015-06-03 00:11:43.786387"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.791255"], ["updated_at", "2015-06-03 00:11:43.791255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dabbcb4-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dae2116-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dabbcb4-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dae2116-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.794843"], ["updated_at", "2015-06-03 00:11:43.794843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dad00c4-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dae2116-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1dad00c4-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dae2116-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.797617"], ["updated_at", "2015-06-03 00:11:43.797617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:11:43 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:43.800550') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e863ad41-ea51-44c0-ae68-90e7762cb1af"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:43.801897"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:43.802576"], ["id", "e863ad41-ea51-44c0-ae68-90e7762cb1af"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1dabbcb4-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1dabbcb4-0985-11e5-bd44-a8667f0424ad' LIMIT 1 [["organization_id", "1dae2116-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "1dae2116-0985-11e5-bd44-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1dabbcb4-0985-11e5-bd44-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1dad00c4-0985-11e5-bd44-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 3.3ms | ActiveRecord: 2.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$yOkLwsGQ/VfTauDZy4TzZO.rCekZg5gSbREL3WvAZ3Y9yFqOPbnK."], ["created_at", "2015-06-03 00:11:43.827377"], ["updated_at", "2015-06-03 00:11:43.827377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$ppoon6b1Be7RE42l8l4pU.qTAo4dSn1JcIjCOSGuIIz08v6/BwUZ6"], ["created_at", "2015-06-03 00:11:43.834173"], ["updated_at", "2015-06-03 00:11:43.834173"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.836252"], ["user_id", "1db3ac08-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.837229"], ["updated_at", "2015-06-03 00:11:43.837229"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.842164"], ["updated_at", "2015-06-03 00:11:43.842164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1db3ac08-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1db5ebda-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1db3ac08-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1db5ebda-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.845567"], ["updated_at", "2015-06-03 00:11:43.845567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1db4ad42-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1db5ebda-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1db4ad42-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1db5ebda-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.848288"], ["updated_at", "2015-06-03 00:11:43.848288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:11:43 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$dgVBqqis7gS7XYL9taG92OyYW0h6DWlDuvcbyKPt3ep8sGLP7aaF2"], ["created_at", "2015-06-03 00:11:43.858113"], ["updated_at", "2015-06-03 00:11:43.858113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$DaBoFIRe269FmaHAZ2Wk5.ZKLcRxO35hAe1oKL/aT11CY8Nt23ude"], ["created_at", "2015-06-03 00:11:43.863959"], ["updated_at", "2015-06-03 00:11:43.863959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.865637"], ["user_id", "1db85a3c-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.866240"], ["updated_at", "2015-06-03 00:11:43.866240"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.872059"], ["updated_at", "2015-06-03 00:11:43.872059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1db85a3c-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dba763c-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1db85a3c-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dba763c-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.876487"], ["updated_at", "2015-06-03 00:11:43.876487"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1db9388a-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dba763c-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1db9388a-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dba763c-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.880779"], ["updated_at", "2015-06-03 00:11:43.880779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1dbbca8c-0985-11e5-bd44-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:11:43 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"1dbbca8c-0985-11e5-bd44-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:43.884715') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fa47f368-af3a-4220-b52a-c20a49cf2f34"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:43.886891"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:43.887913"], ["id", "fa47f368-af3a-4220-b52a-c20a49cf2f34"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "1dbbca8c-0985-11e5-bd44-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1db85a3c-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1dba763c-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1db85a3c-0985-11e5-bd44-a8667f0424ad' LIMIT 1 [["organization_id", "1dba763c-0985-11e5-bd44-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1db9388a-0985-11e5-bd44-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1db9388a-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."id" != '1dbbca8c-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dba763c-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:11:43.898346"], ["id", "1dbbca8c-0985-11e5-bd44-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.9ms | ActiveRecord: 3.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$ENVan9rskFmm8LGbtCOVd.P2mEE7C6K0DisGwUwZFSDa1oxxmCQVW"], ["created_at", "2015-06-03 00:11:43.906972"], ["updated_at", "2015-06-03 00:11:43.906972"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$sDzzYR6vCCe2mo8X2JYZjOCr7Lup.7qSBtGlArP3ksNqijd3nEfIa"], ["created_at", "2015-06-03 00:11:43.913000"], ["updated_at", "2015-06-03 00:11:43.913000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.914641"], ["user_id", "1dbfd5fa-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.915214"], ["updated_at", "2015-06-03 00:11:43.915214"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.920028"], ["updated_at", "2015-06-03 00:11:43.920028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dbfd5fa-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dc1c3a6-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dbfd5fa-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dc1c3a6-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.923009"], ["updated_at", "2015-06-03 00:11:43.923009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dc0b3a8-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dc1c3a6-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1dc0b3a8-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dc1c3a6-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.928154"], ["updated_at", "2015-06-03 00:11:43.928154"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 17:11:43 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$RXipo/p29ZovmLI60Cj8L.sb3rBQKHkaVjmIveAhtswrA5Hv05aW2"], ["created_at", "2015-06-03 00:11:43.938708"], ["updated_at", "2015-06-03 00:11:43.938708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$nxzcBLkhPCqTF9xRIw0wru17oMCfFjjn1AQglp71nu2unhBTkVCE."], ["created_at", "2015-06-03 00:11:43.945453"], ["updated_at", "2015-06-03 00:11:43.945453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.947274"], ["user_id", "1dc4ac6a-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.947911"], ["updated_at", "2015-06-03 00:11:43.947911"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.952382"], ["updated_at", "2015-06-03 00:11:43.952382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dc4ac6a-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dc6b654-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dc4ac6a-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dc6b654-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.956094"], ["updated_at", "2015-06-03 00:11:43.956094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dc5a8d6-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dc6b654-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1dc5a8d6-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dc6b654-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.960219"], ["updated_at", "2015-06-03 00:11:43.960219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1dc6b654-0985-11e5-bd44-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:11:43 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1dc6b654-0985-11e5-bd44-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:43.963141') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0d307ddd-0c69-4124-920f-998272295d1a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:43.964469"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:43.965212"], ["id", "0d307ddd-0c69-4124-920f-998272295d1a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1dc6b654-0985-11e5-bd44-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1dc4ac6a-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1dc4ac6a-0985-11e5-bd44-a8667f0424ad' LIMIT 1 [["organization_id", "1dc6b654-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "1dc6b654-0985-11e5-bd44-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1dc4ac6a-0985-11e5-bd44-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1dc5a8d6-0985-11e5-bd44-a8667f0424ad"]] Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$4dGAsVbEZCyf7PCeHA6UdemRtafajyuMl3TmeRaEP6WA2sXewpEuu"], ["created_at", "2015-06-03 00:11:43.982287"], ["updated_at", "2015-06-03 00:11:43.982287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$4zvy0oYTYHMYyzITM46rqu7YJA.FgiY4UdyL5wy8EELxKIWORr/TK"], ["created_at", "2015-06-03 00:11:43.987775"], ["updated_at", "2015-06-03 00:11:43.987775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:43.989623"], ["user_id", "1dcb473c-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:43.990264"], ["updated_at", "2015-06-03 00:11:43.990264"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:43.995838"], ["updated_at", "2015-06-03 00:11:43.995838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dcb473c-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dcd5b12-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dcb473c-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dcd5b12-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:43.999875"], ["updated_at", "2015-06-03 00:11:43.999875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dcc203a-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dcd5b12-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1dcc203a-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dcd5b12-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.002866"], ["updated_at", "2015-06-03 00:11:44.002866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:11:44 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$DBbEA.A8q0NkO7FcbMYZzOTE74Ae80lOXe2l.tAq2Y6cCuoD5oymS"], ["created_at", "2015-06-03 00:11:44.014636"], ["updated_at", "2015-06-03 00:11:44.014636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$VvInbhlGYzcLMDMu5TFY0el7CgrOndQ7GtMpSGuX0kuTpfdkPJH/a"], ["created_at", "2015-06-03 00:11:44.021925"], ["updated_at", "2015-06-03 00:11:44.021925"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:44.024505"], ["user_id", "1dd03936-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.025465"], ["updated_at", "2015-06-03 00:11:44.025465"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:44.031906"], ["updated_at", "2015-06-03 00:11:44.031906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dd03936-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dd2dd76-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dd03936-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dd2dd76-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:44.035525"], ["updated_at", "2015-06-03 00:11:44.035525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dd15ff0-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dd2dd76-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1dd15ff0-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dd2dd76-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.038640"], ["updated_at", "2015-06-03 00:11:44.038640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1dd36200-0985-11e5-bd44-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:11:44 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1dd36200-0985-11e5-bd44-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:44.041607') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "51074022-0247-48a8-a092-afe0ab6455e1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:44.043195"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:44.044216"], ["id", "51074022-0247-48a8-a092-afe0ab6455e1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "1dd36200-0985-11e5-bd44-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1dd03936-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1dd2dd76-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1dd03936-0985-11e5-bd44-a8667f0424ad' LIMIT 1 [["organization_id", "1dd2dd76-0985-11e5-bd44-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1dd03936-0985-11e5-bd44-a8667f0424ad"]] Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$UperIe3RmgSnMeQ2mO/DVec11DqNmYMlBZAKhqGvaXgTQQfweVNsi"], ["created_at", "2015-06-03 00:11:44.067125"], ["updated_at", "2015-06-03 00:11:44.067125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$CNZF7jWgRRlz5S4RV/KXV.DmxEd8OrFkzvl/PjFL7SF6hKu8Dn5Cu"], ["created_at", "2015-06-03 00:11:44.073277"], ["updated_at", "2015-06-03 00:11:44.073277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:44.075004"], ["user_id", "1dd83b54-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.076060"], ["updated_at", "2015-06-03 00:11:44.076060"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:44.081087"], ["updated_at", "2015-06-03 00:11:44.081087"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dd83b54-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dda6762-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dd83b54-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dda6762-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:44.084676"], ["updated_at", "2015-06-03 00:11:44.084676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dd92640-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1dda6762-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1dd92640-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1dda6762-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.087574"], ["updated_at", "2015-06-03 00:11:44.087574"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 17:11:44 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$YZyd3bMv.9Fk3lLzNVrZN.R3LtliQJbLx8DOyhOVbKhkjAMsO1Jdy"], ["created_at", "2015-06-03 00:11:44.098490"], ["updated_at", "2015-06-03 00:11:44.098490"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$KvX3XmwojNqupauwgp8Vrumeg5lhmiWf.o8ULDV9uGrThzNbMnXsm"], ["created_at", "2015-06-03 00:11:44.105038"], ["updated_at", "2015-06-03 00:11:44.105038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:44.106554"], ["user_id", "1ddd0562-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.107123"], ["updated_at", "2015-06-03 00:11:44.107123"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:44.111610"], ["updated_at", "2015-06-03 00:11:44.111610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1ddd0562-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1ddf0b5a-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1ddd0562-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1ddf0b5a-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:44.116199"], ["updated_at", "2015-06-03 00:11:44.116199"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dddfea4-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1ddf0b5a-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1dddfea4-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1ddf0b5a-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.120454"], ["updated_at", "2015-06-03 00:11:44.120454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$L2GFKKMYVywcC1UgN5kR3e14tBWAt.AfOmMogkEoKbas5bH/NSk52"], ["created_at", "2015-06-03 00:11:44.129414"], ["updated_at", "2015-06-03 00:11:44.129414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:44.131640"], ["user_id", "1de1c6ce-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.132291"], ["updated_at", "2015-06-03 00:11:44.132291"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '1ddf0b5a-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "1ddf0b5a-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:44.137105"], ["updated_at", "2015-06-03 00:11:44.137105"], ["token", "xrkMugA7YzuuYslW4gX2NtKtTrUbtGrnDWIgByB21Pc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:11:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$XHjY43qJ5pGwVaAAx9bn3.6KTf6P1eh5c9uXNAfnaMgMf48WpyVJi"], ["created_at", "2015-06-03 00:11:44.147167"], ["updated_at", "2015-06-03 00:11:44.147167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$k54j5T6JerGTiK2xjovYEuU1Mi/hx0.eRh93CFDXxl6q.o.v1qb6S"], ["created_at", "2015-06-03 00:11:44.154028"], ["updated_at", "2015-06-03 00:11:44.154028"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:44.156866"], ["user_id", "1de46dfc-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.158020"], ["updated_at", "2015-06-03 00:11:44.158020"], ["client", "App"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:44.168160"], ["updated_at", "2015-06-03 00:11:44.168160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1de46dfc-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1de7ae68-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1de46dfc-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1de7ae68-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:44.172265"], ["updated_at", "2015-06-03 00:11:44.172265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1de580a2-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1de7ae68-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1de580a2-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1de7ae68-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.175838"], ["updated_at", "2015-06-03 00:11:44.175838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$ZtED3Fg9L7xKjAeiQWKfvuDe2UsSNO9hMSkDQUCgcV/LJ7JFp6TXS"], ["created_at", "2015-06-03 00:11:44.185630"], ["updated_at", "2015-06-03 00:11:44.185630"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:44.187781"], ["user_id", "1dea50a0-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.188715"], ["updated_at", "2015-06-03 00:11:44.188715"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '1de7ae68-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "1de7ae68-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:44.194224"], ["updated_at", "2015-06-03 00:11:44.194224"], ["token", "bWXkByGgMocBEC5tsmdtVU13zX3fN_VNtFJIo_eK0JY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1de7ae68-0985-11e5-bd44-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:11:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"1de7ae68-0985-11e5-bd44-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:44.197399') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "06b8fdb6-139d-4094-b602-0d935681eaa6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:44.198905"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:44.199799"], ["id", "06b8fdb6-139d-4094-b602-0d935681eaa6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1de7ae68-0985-11e5-bd44-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1dea50a0-0985-11e5-bd44-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$iX9X02eAxmWSz8PVUEqCseUSLv51PvKsWPL8uQyjj3AqxynRhkz1u"], ["created_at", "2015-06-03 00:11:44.213552"], ["updated_at", "2015-06-03 00:11:44.213552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$Drql/kvhzICjOGERlwVeH.5sEXDUDjltsN6byORcq0kjgUWSYCWrS"], ["created_at", "2015-06-03 00:11:44.219970"], ["updated_at", "2015-06-03 00:11:44.219970"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:44.221857"], ["user_id", "1dee8cce-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.222631"], ["updated_at", "2015-06-03 00:11:44.222631"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:11:44.227807"], ["updated_at", "2015-06-03 00:11:44.227807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1dee8cce-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1df0b8d2-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1dee8cce-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1df0b8d2-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:44.230801"], ["updated_at", "2015-06-03 00:11:44.230801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1def8eb2-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1df0b8d2-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1def8eb2-0985-11e5-bd44-a8667f0424ad"], ["organization_id", "1df0b8d2-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.234494"], ["updated_at", "2015-06-03 00:11:44.234494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$deOYjfs76g8DZzjGu1UgyuIY3IlukAesc87Iu2O1W/NGo3KCFRFLy"], ["created_at", "2015-06-03 00:11:44.239937"], ["updated_at", "2015-06-03 00:11:44.239937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:11:44.242369"], ["user_id", "1df2a37c-0985-11e5-bd44-a8667f0424ad"], ["created_at", "2015-06-03 00:11:44.243337"], ["updated_at", "2015-06-03 00:11:44.243337"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '1df0b8d2-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "1df0b8d2-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:44.248405"], ["updated_at", "2015-06-03 00:11:44.248405"], ["token", "qQ3q0sLTm-K32yP4MhzGwFakiiy4SYenqSjMcvaxd8o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1df0b8d2-0985-11e5-bd44-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:11:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"qQ3q0sLTm-K32yP4MhzGwFakiiy4SYenqSjMcvaxd8o", "organization_id"=>"1df0b8d2-0985-11e5-bd44-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:11:44.252376') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b4be72aa-4328-48ee-9a03-88ae918a52b9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:11:44.254200"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:11:44.255586"], ["id", "b4be72aa-4328-48ee-9a03-88ae918a52b9"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1df0b8d2-0985-11e5-bd44-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1df2a37c-0985-11e5-bd44-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "qQ3q0sLTm-K32yP4MhzGwFakiiy4SYenqSjMcvaxd8o"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1df0b8d2-0985-11e5-bd44-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1df2a37c-0985-11e5-bd44-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '1df0b8d2-0985-11e5-bd44-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "1df0b8d2-0985-11e5-bd44-a8667f0424ad"], ["member_id", "1df2a37c-0985-11e5-bd44-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:11:44.269207"], ["updated_at", "2015-06-03 00:11:44.269207"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "1df3e1f6-0985-11e5-bd44-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 0.9ms | ActiveRecord: 3.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$Wj/y6QggMb0J6Eo41x9c3O8s5zVgIFEqF47woftlxT2fbVWI4Mk1y"], ["created_at", "2015-06-03 00:12:08.474628"], ["updated_at", "2015-06-03 00:12:08.474628"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$eKeocgR004ATHcHS6KooRejfB7w994QSxJYKQFvmjhhLNILEWQ6Yu"], ["created_at", "2015-06-03 00:12:08.488160"], ["updated_at", "2015-06-03 00:12:08.488160"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:08.521594"], ["user_id", "2c64e9d8-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.529494"], ["updated_at", "2015-06-03 00:12:08.529494"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:08.545557"], ["updated_at", "2015-06-03 00:12:08.545557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c64e9d8-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c6f6976-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c64e9d8-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c6f6976-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:08.558826"], ["updated_at", "2015-06-03 00:12:08.558826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c66cdf2-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c6f6976-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2c66cdf2-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c6f6976-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.563477"], ["updated_at", "2015-06-03 00:12:08.563477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:12:08 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:08.585929') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d3a09e3b-06c4-42f4-863a-588b14045f77"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:08.593633"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:08.594997"], ["id", "d3a09e3b-06c4-42f4-863a-588b14045f77"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2c64e9d8-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2c64e9d8-0985-11e5-9d77-a8667f0424ad' LIMIT 1 [["organization_id", "2c6f6976-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "2c6f6976-0985-11e5-9d77-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2c64e9d8-0985-11e5-9d77-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2c66cdf2-0985-11e5-9d77-a8667f0424ad"]] Completed 200 OK in 47ms (Views: 16.4ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$aSbg29oFioKbA.1Or2jbWuDSmiZYXeVTaTbpUghlaIXWZo14LnWV6"], ["created_at", "2015-06-03 00:12:08.643119"], ["updated_at", "2015-06-03 00:12:08.643119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$PuJ6ZNbbW5lNHD5NnnB21eZXWZ59/ZjEfcBSk0bbSovrhxPXeWgzy"], ["created_at", "2015-06-03 00:12:08.649268"], ["updated_at", "2015-06-03 00:12:08.649268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:08.652117"], ["user_id", "2c7e3a46-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.652828"], ["updated_at", "2015-06-03 00:12:08.652828"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:08.657762"], ["updated_at", "2015-06-03 00:12:08.657762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c7e3a46-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c80736a-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c7e3a46-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c80736a-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:08.662134"], ["updated_at", "2015-06-03 00:12:08.662134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c7f3b1c-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c80736a-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2c7f3b1c-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c80736a-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.665817"], ["updated_at", "2015-06-03 00:12:08.665817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:12:08 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$5sRhSA5.xlPdccQCuBDQbe0..9zeytE52YLhKRtbb1D92xp4xwdEO"], ["created_at", "2015-06-03 00:12:08.677932"], ["updated_at", "2015-06-03 00:12:08.677932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$9nOKCq3OuVN71SnsJv/xR.p3dqoMVlMNhLqOw2U8vjOSRtw1RQsOu"], ["created_at", "2015-06-03 00:12:08.684913"], ["updated_at", "2015-06-03 00:12:08.684913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:08.686842"], ["user_id", "2c83986a-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.687586"], ["updated_at", "2015-06-03 00:12:08.687586"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:08.692143"], ["updated_at", "2015-06-03 00:12:08.692143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c83986a-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c85b366-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c83986a-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c85b366-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:08.695609"], ["updated_at", "2015-06-03 00:12:08.695609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c849c6a-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c85b366-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2c849c6a-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c85b366-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.701127"], ["updated_at", "2015-06-03 00:12:08.701127"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/2c872034-0985-11e5-9d77-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:12:08 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"2c872034-0985-11e5-9d77-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:08.708805') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "af94722c-ca35-420a-9c5c-bd74d2fcff61"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:08.711079"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:08.711851"], ["id", "af94722c-ca35-420a-9c5c-bd74d2fcff61"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "2c872034-0985-11e5-9d77-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2c83986a-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2c85b366-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2c83986a-0985-11e5-9d77-a8667f0424ad' LIMIT 1 [["organization_id", "2c85b366-0985-11e5-9d77-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2c849c6a-0985-11e5-9d77-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c849c6a-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."id" != '2c872034-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c85b366-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:12:08.724381"], ["id", "2c872034-0985-11e5-9d77-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.2ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$lcS6ZMGu5ny0YEbBRup96.3g4I1l0asqgzl3Be4Yd3WfaZrSO7JCS"], ["created_at", "2015-06-03 00:12:08.735565"], ["updated_at", "2015-06-03 00:12:08.735565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$B3gLTcHFfURpaeKItamFHOmkc7guhpu8BqRn9jk3v3NRsd7mKPOyu"], ["created_at", "2015-06-03 00:12:08.741880"], ["updated_at", "2015-06-03 00:12:08.741880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:08.743855"], ["user_id", "2c8c5658-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.744943"], ["updated_at", "2015-06-03 00:12:08.744943"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:08.751431"], ["updated_at", "2015-06-03 00:12:08.751431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c8c5658-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c8ec28a-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c8c5658-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c8ec28a-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:08.754951"], ["updated_at", "2015-06-03 00:12:08.754951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c8d4dce-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c8ec28a-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2c8d4dce-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c8ec28a-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.759310"], ["updated_at", "2015-06-03 00:12:08.759310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 17:12:08 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$YHRkDSEinANh3ri.Bd34bOGttKqhmdFbzoKPypUeJKiQBFG8A8EMq"], ["created_at", "2015-06-03 00:12:08.770710"], ["updated_at", "2015-06-03 00:12:08.770710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$/r3cERzc6LqZbTBITXzgp.9T5KAz2iKp/5Bf/v.dAfEBTUOwEg50y"], ["created_at", "2015-06-03 00:12:08.775911"], ["updated_at", "2015-06-03 00:12:08.775911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:08.777512"], ["user_id", "2c91b10c-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.778473"], ["updated_at", "2015-06-03 00:12:08.778473"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:08.784469"], ["updated_at", "2015-06-03 00:12:08.784469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c91b10c-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c93d63a-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c91b10c-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c93d63a-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:08.788447"], ["updated_at", "2015-06-03 00:12:08.788447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c927934-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c93d63a-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2c927934-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c93d63a-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.791412"], ["updated_at", "2015-06-03 00:12:08.791412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/2c9462a8-0985-11e5-9d77-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:12:08 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"2c9462a8-0985-11e5-9d77-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:08.794355') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "124a6513-433b-40b1-8f43-aaee07b73980"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:08.795704"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:08.796444"], ["id", "124a6513-433b-40b1-8f43-aaee07b73980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "2c9462a8-0985-11e5-9d77-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2c91b10c-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2c93d63a-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2c91b10c-0985-11e5-9d77-a8667f0424ad' LIMIT 1 [["organization_id", "2c93d63a-0985-11e5-9d77-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2c91b10c-0985-11e5-9d77-a8667f0424ad"]] Completed 200 OK in 19ms (Views: 11.1ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$3DIyyqbU/K6pyc98ZsYomOkJiQOdsX3ou/FVmMDKS7cZX3NshnFQ2"], ["created_at", "2015-06-03 00:12:08.821635"], ["updated_at", "2015-06-03 00:12:08.821635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$6yG14Ow2Gt4hsgqDpjFXqOhoFviV1rza11Iv6qSmytKpRuX8HgcZO"], ["created_at", "2015-06-03 00:12:08.827559"], ["updated_at", "2015-06-03 00:12:08.827559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:08.829392"], ["user_id", "2c99796e-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.830208"], ["updated_at", "2015-06-03 00:12:08.830208"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:08.835014"], ["updated_at", "2015-06-03 00:12:08.835014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c99796e-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c9b8164-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c99796e-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c9b8164-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:08.839177"], ["updated_at", "2015-06-03 00:12:08.839177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c9a5fdc-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2c9b8164-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2c9a5fdc-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2c9b8164-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.842740"], ["updated_at", "2015-06-03 00:12:08.842740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 17:12:08 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$Bnl9vgpelgIwHBLEU3Cd0OXa0mp3cJfzmPcLSUODitN1BLmMvsCJ2"], ["created_at", "2015-06-03 00:12:08.853658"], ["updated_at", "2015-06-03 00:12:08.853658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$hV/Vou3g2YyC18UTAYVkTOuFDxmorB4TqDGqipf7wKs4m0HJexa1G"], ["created_at", "2015-06-03 00:12:08.859331"], ["updated_at", "2015-06-03 00:12:08.859331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:08.860857"], ["user_id", "2c9e5e16-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.861433"], ["updated_at", "2015-06-03 00:12:08.861433"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:08.865683"], ["updated_at", "2015-06-03 00:12:08.865683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c9e5e16-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2ca03c72-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c9e5e16-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2ca03c72-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:08.869763"], ["updated_at", "2015-06-03 00:12:08.869763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c9f32be-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2ca03c72-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2c9f32be-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2ca03c72-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.873330"], ["updated_at", "2015-06-03 00:12:08.873330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$i2netnkjTjRZxFEnL8yuz./n3C698UsoRGFpz.VLHbYVYui9clF8m"], ["created_at", "2015-06-03 00:12:08.878411"], ["updated_at", "2015-06-03 00:12:08.878411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:08.880275"], ["user_id", "2ca21fce-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.880907"], ["updated_at", "2015-06-03 00:12:08.880907"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2ca03c72-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "2ca03c72-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:08.892924"], ["updated_at", "2015-06-03 00:12:08.892924"], ["token", "EWias-8hcj6LT7q4e4ZZfxc1SzMG78AvM1RAV-rl4QU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:12:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$oY8KZ1jcCITgulFtx9RXnuBm3pNHah9wR4edjvnpc.7kXk4TFt4Bi"], ["created_at", "2015-06-03 00:12:08.905699"], ["updated_at", "2015-06-03 00:12:08.905699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$5mxSaD4BqbXyE.YP8wZN1OS/mRrAUCISk63uPeWvHy.4h60xygaiu"], ["created_at", "2015-06-03 00:12:08.912735"], ["updated_at", "2015-06-03 00:12:08.912735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:08.915044"], ["user_id", "2ca64dd8-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.916261"], ["updated_at", "2015-06-03 00:12:08.916261"], ["client", "App"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:08.927725"], ["updated_at", "2015-06-03 00:12:08.927725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ca64dd8-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2ca9bd60-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ca64dd8-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2ca9bd60-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:08.940230"], ["updated_at", "2015-06-03 00:12:08.940230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ca76088-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2ca9bd60-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ca76088-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2ca9bd60-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.944097"], ["updated_at", "2015-06-03 00:12:08.944097"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$.8wgUFtG6BQAlpI0hVb5XecInRrtkFPwS3qb/eGCg84hB.S2Rfs7u"], ["created_at", "2015-06-03 00:12:08.950512"], ["updated_at", "2015-06-03 00:12:08.950512"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:08.953907"], ["user_id", "2cad3be8-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:08.955454"], ["updated_at", "2015-06-03 00:12:08.955454"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '2ca9bd60-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "2ca9bd60-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:08.968567"], ["updated_at", "2015-06-03 00:12:08.968567"], ["token", "LOE5at2OFKP-VEuxfFdpbHnbtEgqsbhYMgBdOhpvynA"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2ca9bd60-0985-11e5-9d77-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:12:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"2ca9bd60-0985-11e5-9d77-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:08.975193') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "605ddc99-db2b-429b-b182-eac3ee939075"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:08.976700"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:08.978146"], ["id", "605ddc99-db2b-429b-b182-eac3ee939075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2ca9bd60-0985-11e5-9d77-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2cad3be8-0985-11e5-9d77-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 14ms (ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$pyjGadbsBeiNn3FKBPijjeIlCoMfep65JDc/2u0dduZt.AP.LrkEC"], ["created_at", "2015-06-03 00:12:08.996806"], ["updated_at", "2015-06-03 00:12:08.996806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$9xBDtl5IWs9eu5H.Uqof0OHetPB2Yh6Cm9WIiWp9t3Gak4TXVXaV2"], ["created_at", "2015-06-03 00:12:09.003360"], ["updated_at", "2015-06-03 00:12:09.003360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.005007"], ["user_id", "2cb4336c-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.005631"], ["updated_at", "2015-06-03 00:12:09.005631"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:09.011075"], ["updated_at", "2015-06-03 00:12:09.011075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cb4336c-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cb6666e-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cb4336c-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cb6666e-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.015127"], ["updated_at", "2015-06-03 00:12:09.015127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cb52cc2-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cb6666e-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2cb52cc2-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cb6666e-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.018658"], ["updated_at", "2015-06-03 00:12:09.018658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$frMPj0RzoXkp/CNVlOf4puVKMcJ1FIUjHskiHB.dUCnFgEkUW4HiO"], ["created_at", "2015-06-03 00:12:09.024256"], ["updated_at", "2015-06-03 00:12:09.024256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.026860"], ["user_id", "2cb86824-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.028164"], ["updated_at", "2015-06-03 00:12:09.028164"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '2cb6666e-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "2cb6666e-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.033636"], ["updated_at", "2015-06-03 00:12:09.033636"], ["token", "06YSTBBkaJ0LdlwXxiSmFTVppK2EH3N9JRFYlGAVNj8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2cb6666e-0985-11e5-9d77-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:12:09 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"06YSTBBkaJ0LdlwXxiSmFTVppK2EH3N9JRFYlGAVNj8", "organization_id"=>"2cb6666e-0985-11e5-9d77-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:09.037442') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4ae16fe3-426d-4db8-85b9-3fa61d659f9e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:09.038986"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:09.039848"], ["id", "4ae16fe3-426d-4db8-85b9-3fa61d659f9e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2cb6666e-0985-11e5-9d77-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2cb86824-0985-11e5-9d77-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "06YSTBBkaJ0LdlwXxiSmFTVppK2EH3N9JRFYlGAVNj8"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2cb6666e-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cb86824-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cb6666e-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "2cb6666e-0985-11e5-9d77-a8667f0424ad"], ["member_id", "2cb86824-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.047628"], ["updated_at", "2015-06-03 00:12:09.047628"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "2cb9d39e-0985-11e5-9d77-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.1ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$W1k43d0jp/hLEllLKV0gEuokJ8yVnk8Rj6X1rbH17DkNh4ed7msd2"], ["created_at", "2015-06-03 00:12:09.058502"], ["updated_at", "2015-06-03 00:12:09.058502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$0mjQuN.//L3fX7unGLEHGucEz76qzQijtGCHXPCdKgOQ4kwbC8H02"], ["created_at", "2015-06-03 00:12:09.064983"], ["updated_at", "2015-06-03 00:12:09.064983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.067702"], ["user_id", "2cbda49c-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.068429"], ["updated_at", "2015-06-03 00:12:09.068429"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:09.075330"], ["updated_at", "2015-06-03 00:12:09.075330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cbda49c-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cc03158-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cbda49c-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cc03158-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.080136"], ["updated_at", "2015-06-03 00:12:09.080136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cbea838-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cc03158-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2cbea838-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cc03158-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.083999"], ["updated_at", "2015-06-03 00:12:09.083999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/2cc18030-0985-11e5-9d77-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:12:09 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"2cc18030-0985-11e5-9d77-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:09.087166') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "708f7f87-ed8e-4459-9707-a5c9a8fd6559"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:09.088811"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:09.089887"], ["id", "708f7f87-ed8e-4459-9707-a5c9a8fd6559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "2cc18030-0985-11e5-9d77-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2cbda49c-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2cc03158-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2cbda49c-0985-11e5-9d77-a8667f0424ad' LIMIT 1 [["organization_id", "2cc03158-0985-11e5-9d77-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2cbea838-0985-11e5-9d77-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "2cc18030-0985-11e5-9d77-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$xNXWYlPLUOo8/FBea6Q.5OC6uCojqKKR05UNq3fDjDECxp5tQ4mG."], ["created_at", "2015-06-03 00:12:09.106741"], ["updated_at", "2015-06-03 00:12:09.106741"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$6MDkovTh.OSaPMDL93U8ueZhUr5b/AxjB5G9xogQ/rvjSpm3TL3ka"], ["created_at", "2015-06-03 00:12:09.116443"], ["updated_at", "2015-06-03 00:12:09.116443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.119865"], ["user_id", "2cc50b06-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.120803"], ["updated_at", "2015-06-03 00:12:09.120803"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:09.126469"], ["updated_at", "2015-06-03 00:12:09.126469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cc50b06-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cc7fa00-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cc50b06-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cc7fa00-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.129955"], ["updated_at", "2015-06-03 00:12:09.129955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cc6a0f6-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cc7fa00-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2cc6a0f6-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cc7fa00-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.134373"], ["updated_at", "2015-06-03 00:12:09.134373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 17:12:09 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$Wpv4joiC9hQcfCg6r97PQuK.njmiyQ/xdm9Z280K181/jW07kl2eq"], ["created_at", "2015-06-03 00:12:09.146366"], ["updated_at", "2015-06-03 00:12:09.146366"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$GbmyepzFzSPMB.mZr5VEbeOIj7xxNItwmxhysNaUXgVhyjfMKwqi2"], ["created_at", "2015-06-03 00:12:09.153618"], ["updated_at", "2015-06-03 00:12:09.153618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.155228"], ["user_id", "2ccb0cc2-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.155842"], ["updated_at", "2015-06-03 00:12:09.155842"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:09.160189"], ["updated_at", "2015-06-03 00:12:09.160189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ccb0cc2-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2ccd1e86-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ccb0cc2-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2ccd1e86-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.163857"], ["updated_at", "2015-06-03 00:12:09.163857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ccc1aae-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2ccd1e86-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ccc1aae-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2ccd1e86-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.167431"], ["updated_at", "2015-06-03 00:12:09.167431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$9SIgd68RatPwg92CDvO6ZOWFD2a29nmnnNttLv408ELp1geMQH.Im"], ["created_at", "2015-06-03 00:12:09.172626"], ["updated_at", "2015-06-03 00:12:09.172626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.174249"], ["user_id", "2ccf021e-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.174867"], ["updated_at", "2015-06-03 00:12:09.174867"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '2ccd1e86-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "2ccd1e86-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.181546"], ["updated_at", "2015-06-03 00:12:09.181546"], ["token", "tAlvAhS3fiGebsgkb9_zC_8ImOrfvrmbisAEWJB0dNE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:12:09 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$YqqqcjJ52u66slYB8.U58OWQiS1EucLrZ79cFkgyJclwxUE38aJQy"], ["created_at", "2015-06-03 00:12:09.193843"], ["updated_at", "2015-06-03 00:12:09.193843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$6jRp4AFUk5cBGvN3LJJ./u7pFKCwxvth7jeYb6/Itn/3i5FjXPHva"], ["created_at", "2015-06-03 00:12:09.199538"], ["updated_at", "2015-06-03 00:12:09.199538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.209152"], ["user_id", "2cd24366-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.209967"], ["updated_at", "2015-06-03 00:12:09.209967"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:09.215071"], ["updated_at", "2015-06-03 00:12:09.215071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cd24366-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cd58328-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cd24366-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cd58328-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.218935"], ["updated_at", "2015-06-03 00:12:09.218935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cd442ba-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cd58328-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2cd442ba-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cd58328-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.221933"], ["updated_at", "2015-06-03 00:12:09.221933"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$3DXJ5wStBYwL3phwTtzvTe9AlwWvWB8otCtOUUbyywj0WckoiAloO"], ["created_at", "2015-06-03 00:12:09.228253"], ["updated_at", "2015-06-03 00:12:09.228253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.230260"], ["user_id", "2cd7874a-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.230919"], ["updated_at", "2015-06-03 00:12:09.230919"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '2cd58328-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "2cd58328-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.236520"], ["updated_at", "2015-06-03 00:12:09.236520"], ["token", "D1aKoUGoAApJwndLF1sVrvWvM-n5umBtQnZ6E1uL03k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:12:09 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:09.241317') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3ffc1ef6-93f9-49ee-aaac-d6e38dacc878"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:09.242928"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:09.243825"], ["id", "3ffc1ef6-93f9-49ee-aaac-d6e38dacc878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2cd7874a-0985-11e5-9d77-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$E5tnUojQUWovY/aqULJ71OEZW/0SQcGiZeItnA7EN7edddavc50em"], ["created_at", "2015-06-03 00:12:09.256671"], ["updated_at", "2015-06-03 00:12:09.256671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$WPR6j15Q3YGmV7MNyNZXs.x6y7ipdQWXPZuOeZDBAHVtHt63TQYjK"], ["created_at", "2015-06-03 00:12:09.264189"], ["updated_at", "2015-06-03 00:12:09.264189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.267718"], ["user_id", "2cdbde08-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.268929"], ["updated_at", "2015-06-03 00:12:09.268929"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:09.275078"], ["updated_at", "2015-06-03 00:12:09.275078"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cdbde08-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cdeaa98-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cdbde08-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cdeaa98-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.280054"], ["updated_at", "2015-06-03 00:12:09.280054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cdd15d4-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cdeaa98-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2cdd15d4-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cdeaa98-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.284264"], ["updated_at", "2015-06-03 00:12:09.284264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$8ZQCHW122TJOYI7nokF7mu2BWpFkzEmWAIcEYT0zKzHcIG9RNhXs2"], ["created_at", "2015-06-03 00:12:09.291188"], ["updated_at", "2015-06-03 00:12:09.291188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.293404"], ["user_id", "2ce11c42-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.294193"], ["updated_at", "2015-06-03 00:12:09.294193"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '2cdeaa98-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "2cdeaa98-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.299415"], ["updated_at", "2015-06-03 00:12:09.299415"], ["token", "bmJnlgftfRlZHsiZv6KBMmMj4yu-laTV_ygmOm7H_WY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:12:09 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"bmJnlgftfRlZHsiZv6KBMmMj4yu-laTV_ygmOm7H_WY", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:09.303182') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d2b66f96-a477-4deb-bfcf-7491043406d3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:09.304546"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:09.305375"], ["id", "d2b66f96-a477-4deb-bfcf-7491043406d3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2ce11c42-0985-11e5-9d77-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "bmJnlgftfRlZHsiZv6KBMmMj4yu-laTV_ygmOm7H_WY"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2cdeaa98-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ce11c42-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cdeaa98-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "2cdeaa98-0985-11e5-9d77-a8667f0424ad"], ["member_id", "2ce11c42-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.312827"], ["updated_at", "2015-06-03 00:12:09.312827"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "2ce26b38-0985-11e5-9d77-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 1.3ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$3XxRP4QK.29M2EtHKZNWpOy7Ab.lOqFwHHco9tMey9C3kgoRFNGSa"], ["created_at", "2015-06-03 00:12:09.324224"], ["updated_at", "2015-06-03 00:12:09.324224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$/0cnSua5OZfhYByVmbZp/u5wVtY8Irp7KmZPGj80ziz0cFhf35jMG"], ["created_at", "2015-06-03 00:12:09.330260"], ["updated_at", "2015-06-03 00:12:09.330260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.332451"], ["user_id", "2ce6276e-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.333346"], ["updated_at", "2015-06-03 00:12:09.333346"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:09.337948"], ["updated_at", "2015-06-03 00:12:09.337948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ce6276e-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2ce83b94-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ce6276e-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2ce83b94-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.341274"], ["updated_at", "2015-06-03 00:12:09.341274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ce71994-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2ce83b94-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2ce71994-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2ce83b94-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.344135"], ["updated_at", "2015-06-03 00:12:09.344135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/2ce83b94-0985-11e5-9d77-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:12:09 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"2ce83b94-0985-11e5-9d77-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:09.347257') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7c01a565-f176-4ffb-8751-6f4e86fb27b1"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:09.349040"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:09.350242"], ["id", "7c01a565-f176-4ffb-8751-6f4e86fb27b1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2ce83b94-0985-11e5-9d77-a8667f0424ad"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2ce6276e-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2ce6276e-0985-11e5-9d77-a8667f0424ad' LIMIT 1 [["organization_id", "2ce83b94-0985-11e5-9d77-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "2ce83b94-0985-11e5-9d77-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2ce6276e-0985-11e5-9d77-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2ce71994-0985-11e5-9d77-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 3.7ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$XqOMaA7cn/fmAhIQPxYLo.Sb/mB/Br90NxoL7.Rn4cxXkt6N4.ETO"], ["created_at", "2015-06-03 00:12:09.369204"], ["updated_at", "2015-06-03 00:12:09.369204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$6/qWAmJC9qWQygUmEJa.SO37rHro/RSgBb0D8kJRmYdoXKk2pLPaK"], ["created_at", "2015-06-03 00:12:09.375564"], ["updated_at", "2015-06-03 00:12:09.375564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:09.377785"], ["user_id", "2ced07b4-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.378429"], ["updated_at", "2015-06-03 00:12:09.378429"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:09.383918"], ["updated_at", "2015-06-03 00:12:09.383918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ced07b4-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cef4f10-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ced07b4-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cef4f10-0985-11e5-9d77-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:09.389019"], ["updated_at", "2015-06-03 00:12:09.389019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cee0056-0985-11e5-9d77-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '2cef4f10-0985-11e5-9d77-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2cee0056-0985-11e5-9d77-a8667f0424ad"], ["organization_id", "2cef4f10-0985-11e5-9d77-a8667f0424ad"], ["created_at", "2015-06-03 00:12:09.392829"], ["updated_at", "2015-06-03 00:12:09.392829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:12:09 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$WljV2d0rRoTv5pRr/o/C1OXHZGzVNO9f8Z/ZcEdvb.z7VOqdrQLcu"], ["created_at", "2015-06-03 00:12:22.363697"], ["updated_at", "2015-06-03 00:12:22.363697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$MeD222/HAudqjQAyu3MzI.zLngVp6SOafEqPrgxe/qI1sF1S8Jyfe"], ["created_at", "2015-06-03 00:12:22.373828"], ["updated_at", "2015-06-03 00:12:22.373828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.396088"], ["user_id", "34ac3fb0-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.403775"], ["updated_at", "2015-06-03 00:12:22.403775"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.421047"], ["updated_at", "2015-06-03 00:12:22.421047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34ac3fb0-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34b4b1c2-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34ac3fb0-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34b4b1c2-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.434981"], ["updated_at", "2015-06-03 00:12:22.434981"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34ad5c06-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34b4b1c2-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34ad5c06-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34b4b1c2-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.439953"], ["updated_at", "2015-06-03 00:12:22.439953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$ZMrplnuJZdgryxy6cpzGoudkDrnftDmFe4paTs6CAW0P2Ig4BpgUG"], ["created_at", "2015-06-03 00:12:22.445922"], ["updated_at", "2015-06-03 00:12:22.445922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.448239"], ["user_id", "34b86042-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.449222"], ["updated_at", "2015-06-03 00:12:22.449222"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '34b4b1c2-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "34b4b1c2-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.467326"], ["updated_at", "2015-06-03 00:12:22.467326"], ["token", "yK_lRRFdknAcivb1RpB0YI7sYJon4-GEbTXFBkNM6QQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:12:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$8aAMZeEtw54BRzFKOD62U.TVRqM27CeX.mlu2mxlctbtbg5s/yrGS"], ["created_at", "2015-06-03 00:12:22.503560"], ["updated_at", "2015-06-03 00:12:22.503560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$jIKj4Dv6O8Sk4qtft1b1mOYWvJpzieYqAqx3nCRN/RNQy.LwD1YJC"], ["created_at", "2015-06-03 00:12:22.510165"], ["updated_at", "2015-06-03 00:12:22.510165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.511789"], ["user_id", "34c130c8-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.512437"], ["updated_at", "2015-06-03 00:12:22.512437"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.516837"], ["updated_at", "2015-06-03 00:12:22.516837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34c130c8-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34c32d42-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34c130c8-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34c32d42-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.520114"], ["updated_at", "2015-06-03 00:12:22.520114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34c22726-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34c32d42-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34c22726-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34c32d42-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.523566"], ["updated_at", "2015-06-03 00:12:22.523566"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$727UiAO.hGVfUVdoavqLBeUZZpQncOpExPPw88jHCrXl00ZJF.ty2"], ["created_at", "2015-06-03 00:12:22.532949"], ["updated_at", "2015-06-03 00:12:22.532949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.536436"], ["user_id", "34c5c48a-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.537558"], ["updated_at", "2015-06-03 00:12:22.537558"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '34c32d42-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "34c32d42-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.543879"], ["updated_at", "2015-06-03 00:12:22.543879"], ["token", "36P-VRii3lbatBQU6Pt2dXkK3TV75HcY4nRztj5YLJQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/34c32d42-0985-11e5-aeb4-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:12:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"34c32d42-0985-11e5-aeb4-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:22.549000') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ac467c64-5300-4fde-8037-9267aa7d8c9c"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:22.557382"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:22.559274"], ["id", "ac467c64-5300-4fde-8037-9267aa7d8c9c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "34c32d42-0985-11e5-aeb4-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "34c5c48a-0985-11e5-aeb4-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 38ms (ActiveRecord: 2.3ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$Nq7t5Bya5EUA19lBcDxOROx8FQLJNIO1WIM16m/QKvD9JGnuFpSq6"], ["created_at", "2015-06-03 00:12:22.595643"], ["updated_at", "2015-06-03 00:12:22.595643"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$iN0n.b85LIum94HIu4D4J.pP9egPx.1GkjkRS/dEHlp.6k9F.Y1Ni"], ["created_at", "2015-06-03 00:12:22.601585"], ["updated_at", "2015-06-03 00:12:22.601585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.603299"], ["user_id", "34cf3a56-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.603944"], ["updated_at", "2015-06-03 00:12:22.603944"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.609290"], ["updated_at", "2015-06-03 00:12:22.609290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34cf3a56-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34d14c88-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34cf3a56-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34d14c88-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.612918"], ["updated_at", "2015-06-03 00:12:22.612918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34d01bc4-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34d14c88-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34d01bc4-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34d14c88-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.616170"], ["updated_at", "2015-06-03 00:12:22.616170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$xqKH7JPGssXS.b1Tq65rrO8pcGqhs2oJvb0gev73bisTbuTRfCVXG"], ["created_at", "2015-06-03 00:12:22.621415"], ["updated_at", "2015-06-03 00:12:22.621415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.623186"], ["user_id", "34d3230a-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.624158"], ["updated_at", "2015-06-03 00:12:22.624158"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '34d14c88-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "34d14c88-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.630565"], ["updated_at", "2015-06-03 00:12:22.630565"], ["token", "g3ZY7xVkDOluuMz4yunD1qgRJgFLDmB-zT2qEywPGoE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/34d14c88-0985-11e5-aeb4-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:12:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"g3ZY7xVkDOluuMz4yunD1qgRJgFLDmB-zT2qEywPGoE", "organization_id"=>"34d14c88-0985-11e5-aeb4-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:22.634068') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "59a1d9dd-051e-44a1-8782-6f4ab8e444be"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:22.635472"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:22.636267"], ["id", "59a1d9dd-051e-44a1-8782-6f4ab8e444be"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "34d14c88-0985-11e5-aeb4-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "34d3230a-0985-11e5-aeb4-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "g3ZY7xVkDOluuMz4yunD1qgRJgFLDmB-zT2qEywPGoE"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "34d14c88-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34d3230a-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34d14c88-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "34d14c88-0985-11e5-aeb4-a8667f0424ad"], ["member_id", "34d3230a-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.644695"], ["updated_at", "2015-06-03 00:12:22.644695"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "34d48be6-0985-11e5-aeb4-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 11.4ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$3gzby0P0xcyCJs7cCx1QduyWFwN.n8an6fdqJbfq1x1VeJUpQbJJ6"], ["created_at", "2015-06-03 00:12:22.668028"], ["updated_at", "2015-06-03 00:12:22.668028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$9zrpmrG1EsqSLWe2t2YVgukWSSrELAe4J51T2.A862TkeOfIR9oY."], ["created_at", "2015-06-03 00:12:22.673874"], ["updated_at", "2015-06-03 00:12:22.673874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.675587"], ["user_id", "34da43ec-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.676316"], ["updated_at", "2015-06-03 00:12:22.676316"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.681057"], ["updated_at", "2015-06-03 00:12:22.681057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34da43ec-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34dc3aa8-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34da43ec-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34dc3aa8-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.684577"], ["updated_at", "2015-06-03 00:12:22.684577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34db241a-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34dc3aa8-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34db241a-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34dc3aa8-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.687702"], ["updated_at", "2015-06-03 00:12:22.687702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/34de91cc-0985-11e5-aeb4-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:12:22 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"34de91cc-0985-11e5-aeb4-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:22.700075') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4deb83d2-a00b-4e53-bcba-a982cab77194"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:22.701531"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:22.702367"], ["id", "4deb83d2-a00b-4e53-bcba-a982cab77194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "34de91cc-0985-11e5-aeb4-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "34da43ec-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "34dc3aa8-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '34da43ec-0985-11e5-aeb4-a8667f0424ad' LIMIT 1 [["organization_id", "34dc3aa8-0985-11e5-aeb4-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "34db241a-0985-11e5-aeb4-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "34de91cc-0985-11e5-aeb4-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$oUjo/IKJwTrDyoV7ZgwCGeI1pBswDZbQ0x1vLGajAYWbgCLmJwmO2"], ["created_at", "2015-06-03 00:12:22.719778"], ["updated_at", "2015-06-03 00:12:22.719778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$zx43SLvXnBwmHdj9bzcXUOq4HIfWy0zmJ09CQgj3sYl0LL9YqRDVS"], ["created_at", "2015-06-03 00:12:22.726899"], ["updated_at", "2015-06-03 00:12:22.726899"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.729186"], ["user_id", "34e223aa-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.729919"], ["updated_at", "2015-06-03 00:12:22.729919"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.734343"], ["updated_at", "2015-06-03 00:12:22.734343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34e223aa-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34e46714-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34e223aa-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34e46714-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.738360"], ["updated_at", "2015-06-03 00:12:22.738360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34e34032-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34e46714-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34e34032-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34e46714-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.742083"], ["updated_at", "2015-06-03 00:12:22.742083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 17:12:22 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$z/cajf6I6rYybzJpFjSIde1j4TMJC3K12xoDCuGilLF93cFuMNTTy"], ["created_at", "2015-06-03 00:12:22.751439"], ["updated_at", "2015-06-03 00:12:22.751439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$Xx0IEJUTO2ALYCJB0AckuuxGpE3Mc7N6mi072bJytSLRymyxGNmR."], ["created_at", "2015-06-03 00:12:22.756809"], ["updated_at", "2015-06-03 00:12:22.756809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.758362"], ["user_id", "34e7005a-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.758963"], ["updated_at", "2015-06-03 00:12:22.758963"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.763985"], ["updated_at", "2015-06-03 00:12:22.763985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34e7005a-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34e8e8ca-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34e7005a-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34e8e8ca-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.767364"], ["updated_at", "2015-06-03 00:12:22.767364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34e7c8fa-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34e8e8ca-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34e7c8fa-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34e8e8ca-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.770288"], ["updated_at", "2015-06-03 00:12:22.770288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/34e8e8ca-0985-11e5-aeb4-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:12:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"34e8e8ca-0985-11e5-aeb4-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:22.774193') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "74da7f6f-a59e-41ed-90be-13793d0a6db1"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:22.776272"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:22.778094"], ["id", "74da7f6f-a59e-41ed-90be-13793d0a6db1"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "34e8e8ca-0985-11e5-aeb4-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "34e7005a-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '34e7005a-0985-11e5-aeb4-a8667f0424ad' LIMIT 1 [["organization_id", "34e8e8ca-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "34e8e8ca-0985-11e5-aeb4-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "34e7005a-0985-11e5-aeb4-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "34e7c8fa-0985-11e5-aeb4-a8667f0424ad"]] Completed 200 OK in 20ms (Views: 5.2ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$92frfvF7LsWvBJVP6/dt6OGt6h9rc2Zvr3PJhERBQcFju6u6Rdn9."], ["created_at", "2015-06-03 00:12:22.808011"], ["updated_at", "2015-06-03 00:12:22.808011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$aFsDy87fhewAyrTN0YvWrusG/pumMSuiOeqSmz9YxRM6I4aIokep2"], ["created_at", "2015-06-03 00:12:22.818313"], ["updated_at", "2015-06-03 00:12:22.818313"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.821467"], ["user_id", "34efddd8-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.822958"], ["updated_at", "2015-06-03 00:12:22.822958"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.830742"], ["updated_at", "2015-06-03 00:12:22.830742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34efddd8-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34f31f0c-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34efddd8-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34f31f0c-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.836025"], ["updated_at", "2015-06-03 00:12:22.836025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34f1436c-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34f31f0c-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34f1436c-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34f31f0c-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.840343"], ["updated_at", "2015-06-03 00:12:22.840343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:12:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$zLgyPYgikSFI5/2OikKMGeEiBQFs6adZXDGxH0MOFtchAqX7PKWYC"], ["created_at", "2015-06-03 00:12:22.850979"], ["updated_at", "2015-06-03 00:12:22.850979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$4b7b.F60Q1DKJqHTHLOOm.0KNH8Tr/dmPgjBtF8MDCi2IiJREz.Ne"], ["created_at", "2015-06-03 00:12:22.857183"], ["updated_at", "2015-06-03 00:12:22.857183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.858927"], ["user_id", "34f62e7c-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.859597"], ["updated_at", "2015-06-03 00:12:22.859597"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.863638"], ["updated_at", "2015-06-03 00:12:22.863638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34f62e7c-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34f81598-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34f62e7c-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34f81598-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.867369"], ["updated_at", "2015-06-03 00:12:22.867369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34f71c74-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34f81598-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34f71c74-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34f81598-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.871099"], ["updated_at", "2015-06-03 00:12:22.871099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/34f93a18-0985-11e5-aeb4-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:12:22 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"34f93a18-0985-11e5-aeb4-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:22.874043') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b02fd902-9929-4f40-945d-f8297691ad11"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:22.875430"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:22.876198"], ["id", "b02fd902-9929-4f40-945d-f8297691ad11"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "34f93a18-0985-11e5-aeb4-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "34f62e7c-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "34f81598-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '34f62e7c-0985-11e5-aeb4-a8667f0424ad' LIMIT 1 [["organization_id", "34f81598-0985-11e5-aeb4-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "34f71c74-0985-11e5-aeb4-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34f71c74-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."id" != '34f93a18-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34f81598-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:12:22.885051"], ["id", "34f93a18-0985-11e5-aeb4-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$GvmDCm.ZCB/qkD6qir7OCeXYvYhlmDhcGj9C/heP/lb48kO6vPATO"], ["created_at", "2015-06-03 00:12:22.895002"], ["updated_at", "2015-06-03 00:12:22.895002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$47sjN2rJ4w68Wxhn5LTUMuI1bClYTbSYJbNFsA9oW2x/DkPHY7ZXG"], ["created_at", "2015-06-03 00:12:22.901650"], ["updated_at", "2015-06-03 00:12:22.901650"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.904354"], ["user_id", "34fced0c-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.905245"], ["updated_at", "2015-06-03 00:12:22.905245"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.911617"], ["updated_at", "2015-06-03 00:12:22.911617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34fced0c-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34ff77e8-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34fced0c-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34ff77e8-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.916526"], ["updated_at", "2015-06-03 00:12:22.916526"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34fdf2ec-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '34ff77e8-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34fdf2ec-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "34ff77e8-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.921081"], ["updated_at", "2015-06-03 00:12:22.921081"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 17:12:22 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$XP94SR7bb3fV5ltpPt3Hpeog7/53BAdkf3XYQrNXXZzYItAp1eP7q"], ["created_at", "2015-06-03 00:12:22.934313"], ["updated_at", "2015-06-03 00:12:22.934313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$8lJGS4/0WPeFWSwMp0i7MOuDgtBM/ICiXl3HGWmMwbbjKwGnokLqC"], ["created_at", "2015-06-03 00:12:22.942816"], ["updated_at", "2015-06-03 00:12:22.942816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.944748"], ["user_id", "3502f27e-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.945430"], ["updated_at", "2015-06-03 00:12:22.945430"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.950494"], ["updated_at", "2015-06-03 00:12:22.950494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3502f27e-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '350558de-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3502f27e-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "350558de-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:22.953795"], ["updated_at", "2015-06-03 00:12:22.953795"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '350431b6-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '350558de-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "350431b6-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "350558de-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.957646"], ["updated_at", "2015-06-03 00:12:22.957646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:12:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:22.960767') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "484eeb84-e2ed-41fa-b0ea-05b5466d881f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:22.962245"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:22.963118"], ["id", "484eeb84-e2ed-41fa-b0ea-05b5466d881f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3502f27e-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3502f27e-0985-11e5-aeb4-a8667f0424ad' LIMIT 1 [["organization_id", "350558de-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "350558de-0985-11e5-aeb4-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3502f27e-0985-11e5-aeb4-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "350431b6-0985-11e5-aeb4-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 3.1ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$UJBwRJrnORM8B8wtAPVNO.WCtm9OfNNFPeP.b50rzcpHRAOk9XEoC"], ["created_at", "2015-06-03 00:12:22.982860"], ["updated_at", "2015-06-03 00:12:22.982860"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$6df6dR3DZQ0je4QM5jDWCOza0DbrTiM9qteYfncWTIkFQXivsXOu."], ["created_at", "2015-06-03 00:12:22.989350"], ["updated_at", "2015-06-03 00:12:22.989350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:22.991457"], ["user_id", "350a510e-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:22.992185"], ["updated_at", "2015-06-03 00:12:22.992185"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:22.997082"], ["updated_at", "2015-06-03 00:12:22.997082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '350a510e-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '350c7420-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "350a510e-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "350c7420-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:23.000580"], ["updated_at", "2015-06-03 00:12:23.000580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '350b4eec-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '350c7420-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "350b4eec-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "350c7420-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.004454"], ["updated_at", "2015-06-03 00:12:23.004454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:12:23 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$IhzzN5T/BC.VWbiLN3IWIu2LeU6besZh.1E7lwJ346lp3kXuTxPv6"], ["created_at", "2015-06-03 00:12:23.015374"], ["updated_at", "2015-06-03 00:12:23.015374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$hCZakDqvtWbxgJHeQQX.lu6WXDZrxXwu8EvDQp.dkXB7Fo.QjXbCy"], ["created_at", "2015-06-03 00:12:23.021046"], ["updated_at", "2015-06-03 00:12:23.021046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:23.023416"], ["user_id", "350f43ee-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.024543"], ["updated_at", "2015-06-03 00:12:23.024543"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:23.031054"], ["updated_at", "2015-06-03 00:12:23.031054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '350f43ee-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3511b6e2-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "350f43ee-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "3511b6e2-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:23.035100"], ["updated_at", "2015-06-03 00:12:23.035100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35102002-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3511b6e2-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35102002-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "3511b6e2-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.041287"], ["updated_at", "2015-06-03 00:12:23.041287"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$867lNv8cpweroEVrj.epyOe4JdiuAqNTxBzN.Eehc29AFeL5mmNke"], ["created_at", "2015-06-03 00:12:23.052003"], ["updated_at", "2015-06-03 00:12:23.052003"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:23.054760"], ["user_id", "3514e4e8-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.055765"], ["updated_at", "2015-06-03 00:12:23.055765"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '3511b6e2-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "3511b6e2-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:23.062384"], ["updated_at", "2015-06-03 00:12:23.062384"], ["token", "xx3e7Gmn7tNY8wRj0pAWnfv8YGV87rKXFBWWm4K9u7k"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:12:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$rWGwAD11NgDJRwmxszwTXux4CUXdC/IKcOMFq7g1sH/7g4bdLaTsu"], ["created_at", "2015-06-03 00:12:23.074153"], ["updated_at", "2015-06-03 00:12:23.074153"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$O4LbIUHEsCpyq0R4REqwp.j1DgZjPLrKIh47Z5.WOBcfYWg8MB8Ny"], ["created_at", "2015-06-03 00:12:23.088376"], ["updated_at", "2015-06-03 00:12:23.088376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:23.090494"], ["user_id", "35195424-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.091228"], ["updated_at", "2015-06-03 00:12:23.091228"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:23.095522"], ["updated_at", "2015-06-03 00:12:23.095522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35195424-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '351b7862-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35195424-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "351b7862-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:23.099538"], ["updated_at", "2015-06-03 00:12:23.099538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '351a6b8e-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '351b7862-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "351a6b8e-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "351b7862-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.104376"], ["updated_at", "2015-06-03 00:12:23.104376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$AsOhptxVUjJ7M9I2VTycbe4QEF.4GI/cAXaRdHVLqmhzEAahQ3VuO"], ["created_at", "2015-06-03 00:12:23.111901"], ["updated_at", "2015-06-03 00:12:23.111901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:23.113639"], ["user_id", "351dfc9a-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.114349"], ["updated_at", "2015-06-03 00:12:23.114349"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '351b7862-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "351b7862-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:23.119550"], ["updated_at", "2015-06-03 00:12:23.119550"], ["token", "mr5CarV9iBO8O8Pl6rPbtWm4G3DGVMk0cd16pp9BfY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:12:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:23.122756') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f5535b39-71ac-42b0-9d02-1f29ec24646e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:23.124234"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:23.124974"], ["id", "f5535b39-71ac-42b0-9d02-1f29ec24646e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "351dfc9a-0985-11e5-aeb4-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$tVHKL3hvsJdqXJpQBBug3.Zke0hly69JN29JVXPgS6mo1HuiyMiQe"], ["created_at", "2015-06-03 00:12:23.136739"], ["updated_at", "2015-06-03 00:12:23.136739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$erzpZ5MMYk/L6umyV4iIFuI0UNrP.vrwDsMoFFZVQ8nGaBFs6wi6S"], ["created_at", "2015-06-03 00:12:23.142636"], ["updated_at", "2015-06-03 00:12:23.142636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:23.144325"], ["user_id", "3521c85c-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.145020"], ["updated_at", "2015-06-03 00:12:23.145020"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:23.149147"], ["updated_at", "2015-06-03 00:12:23.149147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3521c85c-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3523a51e-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3521c85c-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "3523a51e-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:23.152133"], ["updated_at", "2015-06-03 00:12:23.152133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3522aa56-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3523a51e-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3522aa56-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "3523a51e-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.155533"], ["updated_at", "2015-06-03 00:12:23.155533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$FZvj1WYWW5Hd41gIb5c3EOC9oMSmKb7lkN09c/sTxxeTZIsKvlgAK"], ["created_at", "2015-06-03 00:12:23.160887"], ["updated_at", "2015-06-03 00:12:23.160887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:23.162807"], ["user_id", "35257218-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.163502"], ["updated_at", "2015-06-03 00:12:23.163502"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '3523a51e-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "3523a51e-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:23.168908"], ["updated_at", "2015-06-03 00:12:23.168908"], ["token", "eEbs8a8USxw5P9nOcysI1e5q7Xw2fiNl6lC1PeJiQ1o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:12:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"eEbs8a8USxw5P9nOcysI1e5q7Xw2fiNl6lC1PeJiQ1o", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:23.172548') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "36f8f726-a791-4d72-be81-9a0005bc4feb"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:23.174171"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:23.174923"], ["id", "36f8f726-a791-4d72-be81-9a0005bc4feb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35257218-0985-11e5-aeb4-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "eEbs8a8USxw5P9nOcysI1e5q7Xw2fiNl6lC1PeJiQ1o"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3523a51e-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35257218-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '3523a51e-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "3523a51e-0985-11e5-aeb4-a8667f0424ad"], ["member_id", "35257218-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:23.183579"], ["updated_at", "2015-06-03 00:12:23.183579"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "3526af98-0985-11e5-aeb4-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.1ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$QU0Fnk9KaDpL5wyor5btF.VlPWLsubSompm5zG3JmHVVTQbdIpneK"], ["created_at", "2015-06-03 00:12:23.194608"], ["updated_at", "2015-06-03 00:12:23.194608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$rxPWiakRsfKT6dyG00DthO4y8cGQ7917nYeSJN7syrLDmD75TaoMe"], ["created_at", "2015-06-03 00:12:23.199670"], ["updated_at", "2015-06-03 00:12:23.199670"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:23.201447"], ["user_id", "352a99dc-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.202094"], ["updated_at", "2015-06-03 00:12:23.202094"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:23.206459"], ["updated_at", "2015-06-03 00:12:23.206459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '352a99dc-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '352c6a32-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "352a99dc-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "352c6a32-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:23.210379"], ["updated_at", "2015-06-03 00:12:23.210379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '352b5d0e-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '352c6a32-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "352b5d0e-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "352c6a32-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.213569"], ["updated_at", "2015-06-03 00:12:23.213569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/352cff9c-0985-11e5-aeb4-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:12:23 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"352cff9c-0985-11e5-aeb4-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:23.216774') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8e06618c-2a0e-4397-bc4c-1eeca06a731b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:23.218070"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:23.218779"], ["id", "8e06618c-2a0e-4397-bc4c-1eeca06a731b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "352cff9c-0985-11e5-aeb4-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "352a99dc-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "352c6a32-0985-11e5-aeb4-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '352a99dc-0985-11e5-aeb4-a8667f0424ad' LIMIT 1 [["organization_id", "352c6a32-0985-11e5-aeb4-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "352a99dc-0985-11e5-aeb4-a8667f0424ad"]] Completed 200 OK in 9ms (Views: 2.1ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$SL4WVHJ4KDZ74QQLL5YKSeLSMNkwesas.ujd0GY7st0Sqlw2mkP8i"], ["created_at", "2015-06-03 00:12:23.232425"], ["updated_at", "2015-06-03 00:12:23.232425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$IzJ.mWLkJQzobHzEvme9fO03NHqdN65v984/4f.eYmD9phGKw0TVu"], ["created_at", "2015-06-03 00:12:23.238040"], ["updated_at", "2015-06-03 00:12:23.238040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:23.240321"], ["user_id", "35305c78-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.241203"], ["updated_at", "2015-06-03 00:12:23.241203"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:23.247059"], ["updated_at", "2015-06-03 00:12:23.247059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35305c78-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '35329ba0-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35305c78-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "35329ba0-0985-11e5-aeb4-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:23.250328"], ["updated_at", "2015-06-03 00:12:23.250328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35313c4c-0985-11e5-aeb4-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '35329ba0-0985-11e5-aeb4-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35313c4c-0985-11e5-aeb4-a8667f0424ad"], ["organization_id", "35329ba0-0985-11e5-aeb4-a8667f0424ad"], ["created_at", "2015-06-03 00:12:23.253168"], ["updated_at", "2015-06-03 00:12:23.253168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 17:12:23 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (5.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$VgKSuTIomgsaDPtIHnKtc.O3lnHipSteqbgkJhOg6Dui2.tdIBTWq"], ["created_at", "2015-06-03 00:12:46.941467"], ["updated_at", "2015-06-03 00:12:46.941467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$2U.cZAeRk5XGkWMJlC57QOH2a.33i2JCPOuopatv72W8hoAZ52O.a"], ["created_at", "2015-06-03 00:12:46.960307"], ["updated_at", "2015-06-03 00:12:46.960307"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:46.987639"], ["user_id", "43531e9e-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:46.994935"], ["updated_at", "2015-06-03 00:12:46.994935"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.008784"], ["updated_at", "2015-06-03 00:12:47.008784"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43531e9e-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '435c79e4-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43531e9e-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "435c79e4-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.020886"], ["updated_at", "2015-06-03 00:12:47.020886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4354fa3e-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '435c79e4-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4354fa3e-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "435c79e4-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.025638"], ["updated_at", "2015-06-03 00:12:47.025638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/435ef02a-0985-11e5-bb89-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"435ef02a-0985-11e5-bb89-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:47.050582') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "88afcc2e-f3b8-46f5-91ed-f3d5670ad222"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:47.058041"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:47.059306"], ["id", "88afcc2e-f3b8-46f5-91ed-f3d5670ad222"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "435ef02a-0985-11e5-bb89-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43531e9e-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "435c79e4-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '43531e9e-0985-11e5-bb89-a8667f0424ad' LIMIT 1 [["organization_id", "435c79e4-0985-11e5-bb89-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4354fa3e-0985-11e5-bb89-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4354fa3e-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."id" != '435ef02a-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '435c79e4-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:12:47.089853"], ["id", "435ef02a-0985-11e5-bb89-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 53ms (Views: 12.0ms | ActiveRecord: 3.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$w4kWj9N9m5BO3./NeRjteO6V..2.Id0.6jMCRMicu4EKqTX9NmASK"], ["created_at", "2015-06-03 00:12:47.119768"], ["updated_at", "2015-06-03 00:12:47.119768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$x0jSroqPPjn3Imxlq42cg.w0S.ZNKiur8lxed/tNAP94XNWSpJPY2"], ["created_at", "2015-06-03 00:12:47.128570"], ["updated_at", "2015-06-03 00:12:47.128570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.130943"], ["user_id", "436d541c-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.131825"], ["updated_at", "2015-06-03 00:12:47.131825"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.137377"], ["updated_at", "2015-06-03 00:12:47.137377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '436d541c-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '436ff8c0-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "436d541c-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "436ff8c0-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.141399"], ["updated_at", "2015-06-03 00:12:47.141399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '436eb096-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '436ff8c0-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "436eb096-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "436ff8c0-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.145331"], ["updated_at", "2015-06-03 00:12:47.145331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$x3IX2T4YzYEJZByn8p62R.XKF6UhbHpA/7bFJbgPI6vzZASulCH5e"], ["created_at", "2015-06-03 00:12:47.160813"], ["updated_at", "2015-06-03 00:12:47.160813"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$a2S33sb.vtQD5O89TP9iCOKZFdqxd8UZ9b5Jpe86gKH.ElaqUDzoK"], ["created_at", "2015-06-03 00:12:47.170602"], ["updated_at", "2015-06-03 00:12:47.170602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.172802"], ["user_id", "4373cf9a-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.173606"], ["updated_at", "2015-06-03 00:12:47.173606"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.180304"], ["updated_at", "2015-06-03 00:12:47.180304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4373cf9a-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '437690c2-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4373cf9a-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "437690c2-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.184680"], ["updated_at", "2015-06-03 00:12:47.184680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4375140e-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '437690c2-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4375140e-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "437690c2-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.188466"], ["updated_at", "2015-06-03 00:12:47.188466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$B5i8eRPxba/BY2.QjwdHJuDpcgHhchuaCY22lYkXkaaPYusdglWwG"], ["created_at", "2015-06-03 00:12:47.195074"], ["updated_at", "2015-06-03 00:12:47.195074"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.198936"], ["user_id", "4378cefa-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.200025"], ["updated_at", "2015-06-03 00:12:47.200025"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '437690c2-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "437690c2-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.214577"], ["updated_at", "2015-06-03 00:12:47.214577"], ["token", "0NYv5oAq3hfmzmyITpERVEXwkxOvuy-_6Kpbw2EGsnw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$v8q9T4G1OEqFH6RUAfosx.utneBRkg.fOvDt9bBBaYJYTnZJWO6L."], ["created_at", "2015-06-03 00:12:47.226996"], ["updated_at", "2015-06-03 00:12:47.226996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$dzG6iE26OTZo/zcNX9OW7.5K0PzwrpvrZfcAWKKpfgX1N4LrYFS2m"], ["created_at", "2015-06-03 00:12:47.233907"], ["updated_at", "2015-06-03 00:12:47.233907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.236236"], ["user_id", "437db708-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.237594"], ["updated_at", "2015-06-03 00:12:47.237594"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.243361"], ["updated_at", "2015-06-03 00:12:47.243361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '437db708-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '4380270e-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "437db708-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "4380270e-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.247181"], ["updated_at", "2015-06-03 00:12:47.247181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '437ebcb6-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '4380270e-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "437ebcb6-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "4380270e-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.251158"], ["updated_at", "2015-06-03 00:12:47.251158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$QFIEu7enam7u2jhPXJQnAOaP8HVRkblCA4UizSJXRMHN2Mjw18gMq"], ["created_at", "2015-06-03 00:12:47.257855"], ["updated_at", "2015-06-03 00:12:47.257855"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.261931"], ["user_id", "43826456-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.263445"], ["updated_at", "2015-06-03 00:12:47.263445"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '4380270e-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "4380270e-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.270782"], ["updated_at", "2015-06-03 00:12:47.270782"], ["token", "myAlh2J_43f7y91d4t9OaGUbFAnGR1HD2YDwWsL7xg0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:47.276600') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fabd934b-bd71-4495-9999-f20f141e8344"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:47.278175"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:47.279040"], ["id", "fabd934b-bd71-4495-9999-f20f141e8344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43826456-0985-11e5-bb89-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 13ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$V8MVaU5DKiFM0/aU91ysGeuizOyKrBdtGNdaThvMyqs8B1KrHBP4u"], ["created_at", "2015-06-03 00:12:47.305719"], ["updated_at", "2015-06-03 00:12:47.305719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$574U/MEF/kXHWuPsUraA5.1pQSrl1tjx1DdH8Y68qcz30R2jk5PPS"], ["created_at", "2015-06-03 00:12:47.311298"], ["updated_at", "2015-06-03 00:12:47.311298"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.314396"], ["user_id", "4389ae14-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.315275"], ["updated_at", "2015-06-03 00:12:47.315275"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.320460"], ["updated_at", "2015-06-03 00:12:47.320460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4389ae14-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '438bea3a-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4389ae14-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "438bea3a-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.323872"], ["updated_at", "2015-06-03 00:12:47.323872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '438a8334-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '438bea3a-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "438a8334-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "438bea3a-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.330276"], ["updated_at", "2015-06-03 00:12:47.330276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$bmXHQ3Rp1MtlGkwRx2boEOx8.7x2hHmzIKxRtv68940qZC.pfLnI2"], ["created_at", "2015-06-03 00:12:47.336811"], ["updated_at", "2015-06-03 00:12:47.336811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.339468"], ["user_id", "438e712e-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.340465"], ["updated_at", "2015-06-03 00:12:47.340465"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '438bea3a-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "438bea3a-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.348052"], ["updated_at", "2015-06-03 00:12:47.348052"], ["token", "b6Ns4FiebQV6NTMhz2HShb8OwNf1pUEzXb-_in-VqNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"b6Ns4FiebQV6NTMhz2HShb8OwNf1pUEzXb-_in-VqNc", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:47.352222') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "13a5b09d-8b7b-462b-a81a-d9ea6793e458"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:47.353804"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:47.354830"], ["id", "13a5b09d-8b7b-462b-a81a-d9ea6793e458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "438e712e-0985-11e5-bb89-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "b6Ns4FiebQV6NTMhz2HShb8OwNf1pUEzXb-_in-VqNc"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "438bea3a-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '438e712e-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '438bea3a-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "438bea3a-0985-11e5-bb89-a8667f0424ad"], ["member_id", "438e712e-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.365788"], ["updated_at", "2015-06-03 00:12:47.365788"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "43903374-0985-11e5-bb89-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.0ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$Z9WBQCzZgvsK0893iWEM4ucbnAcpK7.kEQ2c3qb8U3l76eyRfaFbq"], ["created_at", "2015-06-03 00:12:47.377697"], ["updated_at", "2015-06-03 00:12:47.377697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$qKwm3jNAS.DUqF3XhHeVbuDbuLDdwRXqIj2ZrmMGFsaFGW/ju.R0i"], ["created_at", "2015-06-03 00:12:47.384663"], ["updated_at", "2015-06-03 00:12:47.384663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.386637"], ["user_id", "4394b188-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.387361"], ["updated_at", "2015-06-03 00:12:47.387361"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.393681"], ["updated_at", "2015-06-03 00:12:47.393681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4394b188-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '4397215c-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4394b188-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "4397215c-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.397883"], ["updated_at", "2015-06-03 00:12:47.397883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4395b948-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '4397215c-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4395b948-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "4397215c-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.400958"], ["updated_at", "2015-06-03 00:12:47.400958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:47.404176') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "24b00803-d64b-425f-8635-c335e0f9eb62"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:47.406092"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:47.407465"], ["id", "24b00803-d64b-425f-8635-c335e0f9eb62"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4394b188-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4394b188-0985-11e5-bb89-a8667f0424ad' LIMIT 1 [["organization_id", "4397215c-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "4397215c-0985-11e5-bb89-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4394b188-0985-11e5-bb89-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4395b948-0985-11e5-bb89-a8667f0424ad"]] Completed 200 OK in 15ms (Views: 4.5ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$FSqXvKZztn8C5PCu.5Um/uWRFyjmC8MJC6Fz4wvx/GoMpPYdKOrrO"], ["created_at", "2015-06-03 00:12:47.429459"], ["updated_at", "2015-06-03 00:12:47.429459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$t1sVzZwkkktC9u2Yg9ogeeDKCZ/KuzRT8go5Ji9BgI2EP54eSAG0e"], ["created_at", "2015-06-03 00:12:47.435760"], ["updated_at", "2015-06-03 00:12:47.435760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.437595"], ["user_id", "439c931c-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.438345"], ["updated_at", "2015-06-03 00:12:47.438345"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.446895"], ["updated_at", "2015-06-03 00:12:47.446895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '439c931c-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '439f409e-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "439c931c-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "439f409e-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.453584"], ["updated_at", "2015-06-03 00:12:47.453584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '439d83d0-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '439f409e-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "439d83d0-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "439f409e-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.458169"], ["updated_at", "2015-06-03 00:12:47.458169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$NIJYGwsaUoduMoivuj3pFuIpPripUsBParI8lqZYA0Pmsxs4ZiEHC"], ["created_at", "2015-06-03 00:12:47.469012"], ["updated_at", "2015-06-03 00:12:47.469012"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$IboXbFCusAy/27dLa1RSH.61KPjvbHj/gc8D8HmWt2.ddbNc5e/N."], ["created_at", "2015-06-03 00:12:47.480683"], ["updated_at", "2015-06-03 00:12:47.480683"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.483756"], ["user_id", "43a294c4-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.484740"], ["updated_at", "2015-06-03 00:12:47.484740"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.491672"], ["updated_at", "2015-06-03 00:12:47.491672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43a294c4-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43a617b6-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43a294c4-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43a617b6-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.495820"], ["updated_at", "2015-06-03 00:12:47.495820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43a4733e-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43a617b6-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "43a4733e-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43a617b6-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.499823"], ["updated_at", "2015-06-03 00:12:47.499823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/43a617b6-0985-11e5-bb89-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"43a617b6-0985-11e5-bb89-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:47.503579') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e31630ca-2df0-48ff-95f0-2f948990df56"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:47.505085"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:47.505959"], ["id", "e31630ca-2df0-48ff-95f0-2f948990df56"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "43a617b6-0985-11e5-bb89-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43a294c4-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '43a294c4-0985-11e5-bb89-a8667f0424ad' LIMIT 1 [["organization_id", "43a617b6-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "43a617b6-0985-11e5-bb89-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43a294c4-0985-11e5-bb89-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43a4733e-0985-11e5-bb89-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 5.1ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$JXcfwAQcKF7phzSD7ywDX.EuL4ESJjhutsF8S31p.7SxOmfAMfINK"], ["created_at", "2015-06-03 00:12:47.526641"], ["updated_at", "2015-06-03 00:12:47.526641"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$wHOtNI2fsIDn9Al75sz7DeSS9B4DXxJCxOWw/UPZ/k9ZriPk4dKOC"], ["created_at", "2015-06-03 00:12:47.535089"], ["updated_at", "2015-06-03 00:12:47.535089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.536833"], ["user_id", "43ab8bec-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.537460"], ["updated_at", "2015-06-03 00:12:47.537460"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.542102"], ["updated_at", "2015-06-03 00:12:47.542102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43ab8bec-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43adb9f8-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43ab8bec-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43adb9f8-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.545365"], ["updated_at", "2015-06-03 00:12:47.545365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43aca96e-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43adb9f8-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "43aca96e-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43adb9f8-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.549173"], ["updated_at", "2015-06-03 00:12:47.549173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$tAa7JFdEaoAgIQo8MvrRCutaLoVGCLTHJJ8SkWnmHBQTDOoxncwm6"], ["created_at", "2015-06-03 00:12:47.560724"], ["updated_at", "2015-06-03 00:12:47.560724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$tt16OFG6GjA7PGVzCvTIeOviMtAesl3vh9REyB8CyoDdBFhTPuVSK"], ["created_at", "2015-06-03 00:12:47.568838"], ["updated_at", "2015-06-03 00:12:47.568838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.570672"], ["user_id", "43b0ce72-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.571350"], ["updated_at", "2015-06-03 00:12:47.571350"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.575918"], ["updated_at", "2015-06-03 00:12:47.575918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43b0ce72-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43b309b2-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43b0ce72-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43b309b2-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.582236"], ["updated_at", "2015-06-03 00:12:47.582236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43b1d150-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43b309b2-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "43b1d150-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43b309b2-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.585918"], ["updated_at", "2015-06-03 00:12:47.585918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$vMJg6h8SZNLW5ugXAfi6ue9DMmURvYaEfRPbeTux31.j7E1CR3ceK"], ["created_at", "2015-06-03 00:12:47.591629"], ["updated_at", "2015-06-03 00:12:47.591629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.593661"], ["user_id", "43b54dee-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.594408"], ["updated_at", "2015-06-03 00:12:47.594408"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '43b309b2-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "43b309b2-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.600390"], ["updated_at", "2015-06-03 00:12:47.600390"], ["token", "RvuA4QvXHHKoQ2DHZA4aLUh0bMMTxNK46dAmKzOAHIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$mehsHUHg6Hlaz65MWIiTp.0d0TrWTlo7B/Sq18FVnO8jodchLpxpK"], ["created_at", "2015-06-03 00:12:47.612825"], ["updated_at", "2015-06-03 00:12:47.612825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$aZHJvomiWJ3uKQYaetB3r.Amz0bYKv.Ulw54C4xQzH9kgKbCDEPWe"], ["created_at", "2015-06-03 00:12:47.619232"], ["updated_at", "2015-06-03 00:12:47.619232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.621331"], ["user_id", "43b88a54-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.622092"], ["updated_at", "2015-06-03 00:12:47.622092"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.627334"], ["updated_at", "2015-06-03 00:12:47.627334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43b88a54-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43babec8-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43b88a54-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43babec8-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.631412"], ["updated_at", "2015-06-03 00:12:47.631412"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43b98562-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43babec8-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "43b98562-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43babec8-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.635615"], ["updated_at", "2015-06-03 00:12:47.635615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$I0U068E4zqZKEC6cKzgczeANnsf0NfDXTUCHZGEMHVrwGc.Appe6K"], ["created_at", "2015-06-03 00:12:47.641504"], ["updated_at", "2015-06-03 00:12:47.641504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.644368"], ["user_id", "43bcf968-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.645358"], ["updated_at", "2015-06-03 00:12:47.645358"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '43babec8-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "43babec8-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.651477"], ["updated_at", "2015-06-03 00:12:47.651477"], ["token", "h0jK8JraAbUoUvdPLzAAUkKGUOJbKvrG_gUiIPnDMC8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/43babec8-0985-11e5-bb89-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"43babec8-0985-11e5-bb89-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:47.656648') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b01b20a1-f3ba-4fb6-89c4-12713f85edf9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:47.658225"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:47.659198"], ["id", "b01b20a1-f3ba-4fb6-89c4-12713f85edf9"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "43babec8-0985-11e5-bb89-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43bcf968-0985-11e5-bb89-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$xkCARbVnqJCmmr2GIjBBj.IfoHfd2JCdMITol3pm28Ioq7LiG/v4q"], ["created_at", "2015-06-03 00:12:47.675667"], ["updated_at", "2015-06-03 00:12:47.675667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$zHZaL6YjM4Wiz14ImXO8G.MblBjviZmK3.Sho6e/01J7eu6YivvQu"], ["created_at", "2015-06-03 00:12:47.682523"], ["updated_at", "2015-06-03 00:12:47.682523"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.686131"], ["user_id", "43c22d20-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.687823"], ["updated_at", "2015-06-03 00:12:47.687823"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.696394"], ["updated_at", "2015-06-03 00:12:47.696394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43c22d20-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43c56508-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43c22d20-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43c56508-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.701731"], ["updated_at", "2015-06-03 00:12:47.701731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43c33882-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43c56508-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "43c33882-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43c56508-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.713711"], ["updated_at", "2015-06-03 00:12:47.713711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$v0EaxsPTbZ3QLkBqm4x.2OGpyUi/h.RvBzB5NaTQ93bExhG8rq7Ua"], ["created_at", "2015-06-03 00:12:47.720132"], ["updated_at", "2015-06-03 00:12:47.720132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.722294"], ["user_id", "43c8e9e4-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.722961"], ["updated_at", "2015-06-03 00:12:47.722961"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '43c56508-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "43c56508-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.730748"], ["updated_at", "2015-06-03 00:12:47.730748"], ["token", "IRUKhu1-qkTyKp3gh716RKHM-Q5e7tBOlIvMFcxNLJE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/43c56508-0985-11e5-bb89-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"IRUKhu1-qkTyKp3gh716RKHM-Q5e7tBOlIvMFcxNLJE", "organization_id"=>"43c56508-0985-11e5-bb89-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:47.740639') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "07731a74-31f8-4c45-b7f3-49f3b1eaa4d0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:47.743722"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:47.745388"], ["id", "07731a74-31f8-4c45-b7f3-49f3b1eaa4d0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "43c56508-0985-11e5-bb89-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43c8e9e4-0985-11e5-bb89-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "IRUKhu1-qkTyKp3gh716RKHM-Q5e7tBOlIvMFcxNLJE"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "43c56508-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43c8e9e4-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43c56508-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "43c56508-0985-11e5-bb89-a8667f0424ad"], ["member_id", "43c8e9e4-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.759248"], ["updated_at", "2015-06-03 00:12:47.759248"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "43caa84c-0985-11e5-bb89-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 24ms (Views: 1.4ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$opoMZnQ8b1tIFJrTve7xJe92afoS8VZo7fFjs1N2L2TuqQaSwPKkO"], ["created_at", "2015-06-03 00:12:47.772770"], ["updated_at", "2015-06-03 00:12:47.772770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$uLA7iQOBFHjjLNoLUhnKaeVHUZwnvsfkvzLtfJALGsuBbdjziRX0O"], ["created_at", "2015-06-03 00:12:47.779800"], ["updated_at", "2015-06-03 00:12:47.779800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.782186"], ["user_id", "43d0f170-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.782929"], ["updated_at", "2015-06-03 00:12:47.782929"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.789066"], ["updated_at", "2015-06-03 00:12:47.789066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43d0f170-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43d380fc-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43d0f170-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43d380fc-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.794931"], ["updated_at", "2015-06-03 00:12:47.794931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43d20772-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43d380fc-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "43d20772-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43d380fc-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.799079"], ["updated_at", "2015-06-03 00:12:47.799079"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/43d45856-0985-11e5-bb89-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"43d45856-0985-11e5-bb89-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:47.804352') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "733b8045-3404-4ecd-b8aa-b9f05c98981e"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:47.806322"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:47.807548"], ["id", "733b8045-3404-4ecd-b8aa-b9f05c98981e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "43d45856-0985-11e5-bb89-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43d0f170-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "43d380fc-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '43d0f170-0985-11e5-bb89-a8667f0424ad' LIMIT 1 [["organization_id", "43d380fc-0985-11e5-bb89-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43d0f170-0985-11e5-bb89-a8667f0424ad"]] Completed 200 OK in 14ms (Views: 2.5ms | ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$I9cu.kFcaMyVfZMQMQNNwuCtqgcuVesQ.9p7ZvAElLB1YKTd72eEi"], ["created_at", "2015-06-03 00:12:47.826255"], ["updated_at", "2015-06-03 00:12:47.826255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$nnCvfh.QT3jktp5.NBfTH.zt/Mk1V9vKpCo9Odvj/XW8Pld3gTcyq"], ["created_at", "2015-06-03 00:12:47.839738"], ["updated_at", "2015-06-03 00:12:47.839738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.841741"], ["user_id", "43d955b8-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.842671"], ["updated_at", "2015-06-03 00:12:47.842671"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.847877"], ["updated_at", "2015-06-03 00:12:47.847877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43d955b8-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43dc6e2e-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43d955b8-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43dc6e2e-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.852572"], ["updated_at", "2015-06-03 00:12:47.852572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43db2a1e-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43dc6e2e-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "43db2a1e-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43dc6e2e-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.856165"], ["updated_at", "2015-06-03 00:12:47.856165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$CqvW/xvnAQL/LL9urnn5/eBA5aDEpnZSyVM.8XTlEEImlMXnZ1Q/m"], ["created_at", "2015-06-03 00:12:47.868657"], ["updated_at", "2015-06-03 00:12:47.868657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$TNxFOtO6onoA53nSiccWyOBmMNxca.N8MmliP66dpfJ6r3MST9.WC"], ["created_at", "2015-06-03 00:12:47.877438"], ["updated_at", "2015-06-03 00:12:47.877438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.882453"], ["user_id", "43df9fc2-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.883722"], ["updated_at", "2015-06-03 00:12:47.883722"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.889655"], ["updated_at", "2015-06-03 00:12:47.889655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43df9fc2-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43e2d9da-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43df9fc2-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43e2d9da-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.896074"], ["updated_at", "2015-06-03 00:12:47.896074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43e13b98-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43e2d9da-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "43e13b98-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43e2d9da-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.900991"], ["updated_at", "2015-06-03 00:12:47.900991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/43e48118-0985-11e5-bb89-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"43e48118-0985-11e5-bb89-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:12:47.904749') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "877bb66c-4e65-4c11-b178-f89cb786d56d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:12:47.906516"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:12:47.907552"], ["id", "877bb66c-4e65-4c11-b178-f89cb786d56d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "43e48118-0985-11e5-bb89-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43df9fc2-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "43e2d9da-0985-11e5-bb89-a8667f0424ad"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '43df9fc2-0985-11e5-bb89-a8667f0424ad' LIMIT 1 [["organization_id", "43e2d9da-0985-11e5-bb89-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43e13b98-0985-11e5-bb89-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "43e48118-0985-11e5-bb89-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$RlrvbAJLhY.LzilB8Pe59OmBvKnNNmwh/lnoT4rhHbBGzGTCWTWhq"], ["created_at", "2015-06-03 00:12:47.925087"], ["updated_at", "2015-06-03 00:12:47.925087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$zTHD.bCPyY9FHUD5QavkXuYUg0SZuHmcqVL7a4QMmvEjkMjRsC2ZG"], ["created_at", "2015-06-03 00:12:47.935097"], ["updated_at", "2015-06-03 00:12:47.935097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:12:47.938189"], ["user_id", "43e86c06-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.939184"], ["updated_at", "2015-06-03 00:12:47.939184"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:12:47.945974"], ["updated_at", "2015-06-03 00:12:47.945974"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43e86c06-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43eb810c-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43e86c06-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43eb810c-0985-11e5-bb89-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:12:47.953149"], ["updated_at", "2015-06-03 00:12:47.953149"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43e9c95c-0985-11e5-bb89-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '43eb810c-0985-11e5-bb89-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "43e9c95c-0985-11e5-bb89-a8667f0424ad"], ["organization_id", "43eb810c-0985-11e5-bb89-a8667f0424ad"], ["created_at", "2015-06-03 00:12:47.959036"], ["updated_at", "2015-06-03 00:12:47.959036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 17:12:47 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (3.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$I8WZHQCdw9zDVXtND2F4UebHyXKuhOd/kNtC4YC2D162zxPxZgZLC"], ["created_at", "2015-06-03 00:13:49.689551"], ["updated_at", "2015-06-03 00:13:49.689551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$klafAAJ68acph.4TaQ450ejKCLfzTDD5nnZKm8DBme5FxsgutFk5S"], ["created_at", "2015-06-03 00:13:49.702625"], ["updated_at", "2015-06-03 00:13:49.702625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:49.734657"], ["user_id", "68b93de4-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:49.742566"], ["updated_at", "2015-06-03 00:13:49.742566"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:49.754930"], ["updated_at", "2015-06-03 00:13:49.754930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68b93de4-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68c2b93c-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68b93de4-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68c2b93c-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:49.768419"], ["updated_at", "2015-06-03 00:13:49.768419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68bab1e2-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68c2b93c-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68bab1e2-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68c2b93c-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:49.773270"], ["updated_at", "2015-06-03 00:13:49.773270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:13:49 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$4hejQFwaT8IjXM3qk4Ittu3.QytGIa/2MtHbGGoNtuec55e/tvh6K"], ["created_at", "2015-06-03 00:13:49.809138"], ["updated_at", "2015-06-03 00:13:49.809138"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$inmrTNa4eW8qKJnfUwBK.OEgwt.RTCq1/Frdx3AwlFfdWhy26NFiG"], ["created_at", "2015-06-03 00:13:49.816774"], ["updated_at", "2015-06-03 00:13:49.816774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:49.819039"], ["user_id", "68caf55c-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:49.819804"], ["updated_at", "2015-06-03 00:13:49.819804"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:49.824661"], ["updated_at", "2015-06-03 00:13:49.824661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68caf55c-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68cd56a8-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68caf55c-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68cd56a8-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:49.829210"], ["updated_at", "2015-06-03 00:13:49.829210"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68cc1e5a-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68cd56a8-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68cc1e5a-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68cd56a8-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:49.833737"], ["updated_at", "2015-06-03 00:13:49.833737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:13:49 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:13:49.837348') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "279ebb8a-371c-4b31-9754-2610dd597dbc"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:13:49.846647"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:13:49.850052"], ["id", "279ebb8a-371c-4b31-9754-2610dd597dbc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68caf55c-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '68caf55c-0985-11e5-9805-a8667f0424ad' LIMIT 1 [["organization_id", "68cd56a8-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "68cd56a8-0985-11e5-9805-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68caf55c-0985-11e5-9805-a8667f0424ad"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68cc1e5a-0985-11e5-9805-a8667f0424ad"]] Completed 200 OK in 64ms (Views: 21.4ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$7eemO9wTzux1D4U4h3BE3.Q87bSTUyyh3MCSWX/ecjERmDJpcMQoe"], ["created_at", "2015-06-03 00:13:49.915369"], ["updated_at", "2015-06-03 00:13:49.915369"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$7RZuWtSwhZJFA60I5F2LeOitexU9D25syP3IJfpvjd7.AsCtW1yXW"], ["created_at", "2015-06-03 00:13:49.924169"], ["updated_at", "2015-06-03 00:13:49.924169"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:49.927957"], ["user_id", "68db45ba-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:49.928971"], ["updated_at", "2015-06-03 00:13:49.928971"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:49.934938"], ["updated_at", "2015-06-03 00:13:49.934938"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68db45ba-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68de3676-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68db45ba-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68de3676-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:49.942355"], ["updated_at", "2015-06-03 00:13:49.942355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68dc900a-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68de3676-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68dc900a-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68de3676-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:49.948010"], ["updated_at", "2015-06-03 00:13:49.948010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 17:13:49 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$7cS3dM8MVeuT6.KI/Sic2uKirvKj0p8/itY5zKrIZHQfDOweuSKla"], ["created_at", "2015-06-03 00:13:49.960880"], ["updated_at", "2015-06-03 00:13:49.960880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$6aaWIBBp2VRPINkYJIkkJuOnawbOPFUEh58a4yoCduytLf/g4f0XW"], ["created_at", "2015-06-03 00:13:49.966282"], ["updated_at", "2015-06-03 00:13:49.966282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:49.968112"], ["user_id", "68e215d4-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:49.968785"], ["updated_at", "2015-06-03 00:13:49.968785"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:49.975545"], ["updated_at", "2015-06-03 00:13:49.975545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68e215d4-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68e46136-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68e215d4-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68e46136-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:49.979793"], ["updated_at", "2015-06-03 00:13:49.979793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68e2e9c8-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68e46136-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68e2e9c8-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68e46136-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:49.984321"], ["updated_at", "2015-06-03 00:13:49.984321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/68e5a640-0985-11e5-9805-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:13:49 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"68e5a640-0985-11e5-9805-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:13:49.987446') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8fbb179e-6f6d-4289-8a08-395a087ec286"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:13:49.988908"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:13:49.990585"], ["id", "8fbb179e-6f6d-4289-8a08-395a087ec286"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "68e5a640-0985-11e5-9805-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68e215d4-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "68e46136-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '68e215d4-0985-11e5-9805-a8667f0424ad' LIMIT 1 [["organization_id", "68e46136-0985-11e5-9805-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68e2e9c8-0985-11e5-9805-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "68e5a640-0985-11e5-9805-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 17ms (ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$IrFIR.rh9do.T39LoZaqNumPR8xHy3OgPevdRSu3wG7Jc.L1o.fHO"], ["created_at", "2015-06-03 00:13:50.013662"], ["updated_at", "2015-06-03 00:13:50.013662"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$vJ24oisnj8Vw428xfgPXG.gPYHt9RaIeLl/gym9.MpUB9KojeNmxq"], ["created_at", "2015-06-03 00:13:50.021578"], ["updated_at", "2015-06-03 00:13:50.021578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.023456"], ["user_id", "68ea44d4-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.024109"], ["updated_at", "2015-06-03 00:13:50.024109"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.030130"], ["updated_at", "2015-06-03 00:13:50.030130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68ea44d4-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68ecac6a-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68ea44d4-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68ecac6a-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.033742"], ["updated_at", "2015-06-03 00:13:50.033742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68eb5be4-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68ecac6a-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68eb5be4-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68ecac6a-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.036737"], ["updated_at", "2015-06-03 00:13:50.036737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$aWZCnan8mIO8xKiTyTL6h.mrdQWL/Bis6w2trN9UIhBQRfQtZD9Ka"], ["created_at", "2015-06-03 00:13:50.048122"], ["updated_at", "2015-06-03 00:13:50.048122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$p/G9G0UXKRAU.lLOLhEeI.3ZPN8ggQdki4rZ2s/iIIskW.72X8jV2"], ["created_at", "2015-06-03 00:13:50.056475"], ["updated_at", "2015-06-03 00:13:50.056475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.058431"], ["user_id", "68efa708-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.059767"], ["updated_at", "2015-06-03 00:13:50.059767"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.064830"], ["updated_at", "2015-06-03 00:13:50.064830"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68efa708-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68f1f35a-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68efa708-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68f1f35a-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.079655"], ["updated_at", "2015-06-03 00:13:50.079655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68f0ad74-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68f1f35a-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68f0ad74-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68f1f35a-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.084665"], ["updated_at", "2015-06-03 00:13:50.084665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/68f1f35a-0985-11e5-9805-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"68f1f35a-0985-11e5-9805-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:13:50.088980') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "52594633-a7d4-4ec6-8f3a-c11860e18754"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:13:50.090834"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:13:50.091854"], ["id", "52594633-a7d4-4ec6-8f3a-c11860e18754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "68f1f35a-0985-11e5-9805-a8667f0424ad"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68efa708-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '68efa708-0985-11e5-9805-a8667f0424ad' LIMIT 1 [["organization_id", "68f1f35a-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "68f1f35a-0985-11e5-9805-a8667f0424ad"]] CACHE (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68efa708-0985-11e5-9805-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68f0ad74-0985-11e5-9805-a8667f0424ad"]] Completed 200 OK in 19ms (Views: 4.8ms | ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$RW2PCQUzJfWTMHU6de7Y8Oc7.UZmbQNmBIWXwzcFq5LHXEl2.TAQm"], ["created_at", "2015-06-03 00:13:50.119796"], ["updated_at", "2015-06-03 00:13:50.119796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$FHTElp1VCyPEAIRU2nfcLu2uKKkOlpULPNVgvhKpY3.zZhwammj06"], ["created_at", "2015-06-03 00:13:50.127841"], ["updated_at", "2015-06-03 00:13:50.127841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.130452"], ["user_id", "68fa5cde-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.131280"], ["updated_at", "2015-06-03 00:13:50.131280"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.138312"], ["updated_at", "2015-06-03 00:13:50.138312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68fa5cde-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68fd303a-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68fa5cde-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68fd303a-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.142560"], ["updated_at", "2015-06-03 00:13:50.142560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68fb9fc2-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '68fd303a-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68fb9fc2-0985-11e5-9805-a8667f0424ad"], ["organization_id", "68fd303a-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.147742"], ["updated_at", "2015-06-03 00:13:50.147742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$vmFXtRZ87Sfx0I2/Y976xOoluSyVV9ud.aOkedBXiGFBHg6H/ji.a"], ["created_at", "2015-06-03 00:13:50.158787"], ["updated_at", "2015-06-03 00:13:50.158787"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$nO7BBOp9JjxtsVOTcEQYSOjtKiMGGye1bxMUNLzpARFzNpAdPNl5S"], ["created_at", "2015-06-03 00:13:50.167749"], ["updated_at", "2015-06-03 00:13:50.167749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.169686"], ["user_id", "69004d6a-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.170313"], ["updated_at", "2015-06-03 00:13:50.170313"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.176871"], ["updated_at", "2015-06-03 00:13:50.176871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69004d6a-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6903164e-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69004d6a-0985-11e5-9805-a8667f0424ad"], ["organization_id", "6903164e-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.181651"], ["updated_at", "2015-06-03 00:13:50.181651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6901aa16-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6903164e-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6901aa16-0985-11e5-9805-a8667f0424ad"], ["organization_id", "6903164e-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.185321"], ["updated_at", "2015-06-03 00:13:50.185321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/69045324-0985-11e5-9805-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"69045324-0985-11e5-9805-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:13:50.189226') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c4682e6c-410f-41ee-85d4-57c92ba7628c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:13:50.190794"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:13:50.191723"], ["id", "c4682e6c-410f-41ee-85d4-57c92ba7628c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "69045324-0985-11e5-9805-a8667f0424ad"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69004d6a-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6903164e-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '69004d6a-0985-11e5-9805-a8667f0424ad' LIMIT 1 [["organization_id", "6903164e-0985-11e5-9805-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6901aa16-0985-11e5-9805-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6901aa16-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."id" != '69045324-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6903164e-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:13:50.204319"], ["id", "69045324-0985-11e5-9805-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.2ms | ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$Ltj4o2E1dWOYDK4DrExawOjCiCKiiIxuRZIUGlWIseaoDh/jbIt.q"], ["created_at", "2015-06-03 00:13:50.217354"], ["updated_at", "2015-06-03 00:13:50.217354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$JDQljIekmAir97oXARGIGObi2B.IE1394AEev7qalcHY.bCbn5wae"], ["created_at", "2015-06-03 00:13:50.226248"], ["updated_at", "2015-06-03 00:13:50.226248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.229049"], ["user_id", "69094f8c-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.231266"], ["updated_at", "2015-06-03 00:13:50.231266"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.236097"], ["updated_at", "2015-06-03 00:13:50.236097"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69094f8c-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '690c106e-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69094f8c-0985-11e5-9805-a8667f0424ad"], ["organization_id", "690c106e-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.239765"], ["updated_at", "2015-06-03 00:13:50.239765"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '690aa8f0-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '690c106e-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "690aa8f0-0985-11e5-9805-a8667f0424ad"], ["organization_id", "690c106e-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.243570"], ["updated_at", "2015-06-03 00:13:50.243570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$CI8MHvl1QNej9FNI675yzOJC4VgdwEh0xF8w9ckSCybtWumn9WFOq"], ["created_at", "2015-06-03 00:13:50.254823"], ["updated_at", "2015-06-03 00:13:50.254823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$zE9YqOSlZIPPD6EA7vCWX.2B7o1Mr.2Jzi864CgZTt6UGhyO/XoXK"], ["created_at", "2015-06-03 00:13:50.261553"], ["updated_at", "2015-06-03 00:13:50.261553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.263375"], ["user_id", "690f06a2-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.265912"], ["updated_at", "2015-06-03 00:13:50.265912"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.272466"], ["updated_at", "2015-06-03 00:13:50.272466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '690f06a2-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6911aba0-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "690f06a2-0985-11e5-9805-a8667f0424ad"], ["organization_id", "6911aba0-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.277085"], ["updated_at", "2015-06-03 00:13:50.277085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '690ff71a-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '6911aba0-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "690ff71a-0985-11e5-9805-a8667f0424ad"], ["organization_id", "6911aba0-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.281582"], ["updated_at", "2015-06-03 00:13:50.281582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/69125960-0985-11e5-9805-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"69125960-0985-11e5-9805-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:13:50.285376') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cb6e0af2-91d5-4cfd-8475-c4f65ac00892"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:13:50.286932"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:13:50.287975"], ["id", "cb6e0af2-91d5-4cfd-8475-c4f65ac00892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "69125960-0985-11e5-9805-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "690f06a2-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6911aba0-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '690f06a2-0985-11e5-9805-a8667f0424ad' LIMIT 1 [["organization_id", "6911aba0-0985-11e5-9805-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "690f06a2-0985-11e5-9805-a8667f0424ad"]] Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$YC8sVgF/KkJbD8c5DCXWI.6BZ9rC2ofkuK0sh025RZcZnAk.Gsj9C"], ["created_at", "2015-06-03 00:13:50.306780"], ["updated_at", "2015-06-03 00:13:50.306780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$pPF2DG6ymm8FO7bFvZ5xz.aBWyYafE1gbWIyHczNdfCfozXCbc.7W"], ["created_at", "2015-06-03 00:13:50.313073"], ["updated_at", "2015-06-03 00:13:50.313073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.314870"], ["user_id", "6916e6a6-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.315544"], ["updated_at", "2015-06-03 00:13:50.315544"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.322088"], ["updated_at", "2015-06-03 00:13:50.322088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6916e6a6-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '69193c8a-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6916e6a6-0985-11e5-9805-a8667f0424ad"], ["organization_id", "69193c8a-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.325843"], ["updated_at", "2015-06-03 00:13:50.325843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6917cf9e-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '69193c8a-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6917cf9e-0985-11e5-9805-a8667f0424ad"], ["organization_id", "69193c8a-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.329433"], ["updated_at", "2015-06-03 00:13:50.329433"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$bxOcDYViocRedMk19TdWmOBl.La3iwO0e61sCx3a1WySl3VaA.pYe"], ["created_at", "2015-06-03 00:13:50.338920"], ["updated_at", "2015-06-03 00:13:50.338920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.341027"], ["user_id", "691bc91e-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.341725"], ["updated_at", "2015-06-03 00:13:50.341725"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '69193c8a-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "69193c8a-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.358228"], ["updated_at", "2015-06-03 00:13:50.358228"], ["token", "83sTqOY00hJeY7NYeixIcWXd-xafLLC8Zxw1zzQ5PsY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$NP3IkTkB.Jg5P2JifbnKNuCXxJXce4bAUyzL3J2CYvsu5RKPJ3Jgq"], ["created_at", "2015-06-03 00:13:50.372849"], ["updated_at", "2015-06-03 00:13:50.372849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$6TbZKcdBig28ni9aQ81lZ.LanPeH3nka3goZR3ObIm1yTBd5hUn5i"], ["created_at", "2015-06-03 00:13:50.381627"], ["updated_at", "2015-06-03 00:13:50.381627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.384407"], ["user_id", "69210348-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.385685"], ["updated_at", "2015-06-03 00:13:50.385685"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.392801"], ["updated_at", "2015-06-03 00:13:50.392801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69210348-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '692405f2-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "69210348-0985-11e5-9805-a8667f0424ad"], ["organization_id", "692405f2-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.398158"], ["updated_at", "2015-06-03 00:13:50.398158"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '692259d2-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '692405f2-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "692259d2-0985-11e5-9805-a8667f0424ad"], ["organization_id", "692405f2-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.405591"], ["updated_at", "2015-06-03 00:13:50.405591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$AjbCsCAdCVe3NsDuBXqTlOzHTjAOe8m8FFV3lEYPHGHCUv71sD7/u"], ["created_at", "2015-06-03 00:13:50.412391"], ["updated_at", "2015-06-03 00:13:50.412391"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.415170"], ["user_id", "6926fe10-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.416406"], ["updated_at", "2015-06-03 00:13:50.416406"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '692405f2-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "692405f2-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.424010"], ["updated_at", "2015-06-03 00:13:50.424010"], ["token", "h4CRJ_09mOKJymfIgLyH1wXq6aif_ghEJShzGh6Sz58"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/692405f2-0985-11e5-9805-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"h4CRJ_09mOKJymfIgLyH1wXq6aif_ghEJShzGh6Sz58", "organization_id"=>"692405f2-0985-11e5-9805-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:13:50.428781') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cbfbc2ca-6b63-4158-a663-a5474ace2a0d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:13:50.430399"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:13:50.431294"], ["id", "cbfbc2ca-6b63-4158-a663-a5474ace2a0d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "692405f2-0985-11e5-9805-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6926fe10-0985-11e5-9805-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "h4CRJ_09mOKJymfIgLyH1wXq6aif_ghEJShzGh6Sz58"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "692405f2-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6926fe10-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '692405f2-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "692405f2-0985-11e5-9805-a8667f0424ad"], ["member_id", "6926fe10-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.443523"], ["updated_at", "2015-06-03 00:13:50.443523"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6928ec16-0985-11e5-9805-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 1.2ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (3.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$8RPUIJd1GtHur3FGMw6HkelcVVq5JGYMzM9hmJc4Q59r8XqAYxOHK"], ["created_at", "2015-06-03 00:13:50.464723"], ["updated_at", "2015-06-03 00:13:50.464723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$Me.9GYNdEOQ1m1W05UOGAeuZ2DyFK28R/xque3dYEYFzkbJOa5Z8e"], ["created_at", "2015-06-03 00:13:50.472328"], ["updated_at", "2015-06-03 00:13:50.472328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.474975"], ["user_id", "692f01a0-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.476047"], ["updated_at", "2015-06-03 00:13:50.476047"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.486113"], ["updated_at", "2015-06-03 00:13:50.486113"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '692f01a0-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '693257e2-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "692f01a0-0985-11e5-9805-a8667f0424ad"], ["organization_id", "693257e2-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.491964"], ["updated_at", "2015-06-03 00:13:50.491964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69302e86-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '693257e2-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "69302e86-0985-11e5-9805-a8667f0424ad"], ["organization_id", "693257e2-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.495433"], ["updated_at", "2015-06-03 00:13:50.495433"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$67AQ8jDnP9IkFnSowVH8xeSbh8jOd4FOCHafIbTkMMSR4zo54ahLy"], ["created_at", "2015-06-03 00:13:50.503413"], ["updated_at", "2015-06-03 00:13:50.503413"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.513278"], ["user_id", "6934e0d4-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.514810"], ["updated_at", "2015-06-03 00:13:50.514810"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '693257e2-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "693257e2-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.520708"], ["updated_at", "2015-06-03 00:13:50.520708"], ["token", "B534F0pwqM32HfMeT9MS_03oApnFn-qphUyRXLoiOQ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/693257e2-0985-11e5-9805-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"693257e2-0985-11e5-9805-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:13:50.527558') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f0c90822-b6e0-4552-bbbf-e5100d363849"]]  (1.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:13:50.531327"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:13:50.534174"], ["id", "f0c90822-b6e0-4552-bbbf-e5100d363849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "693257e2-0985-11e5-9805-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6934e0d4-0985-11e5-9805-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 15ms (ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$lCtdMRgvTq8WFuiX6PSH2.lC7.GGsoobSMEVEnDHl4znRt7dJEIxe"], ["created_at", "2015-06-03 00:13:50.549199"], ["updated_at", "2015-06-03 00:13:50.549199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$vdvKAz.WxC8wvA7FzEbkX.4Aiqf26RqkCoEGIjpQe1B0lDlv0X4d6"], ["created_at", "2015-06-03 00:13:50.554784"], ["updated_at", "2015-06-03 00:13:50.554784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.556400"], ["user_id", "693bdbfa-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.557039"], ["updated_at", "2015-06-03 00:13:50.557039"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.562224"], ["updated_at", "2015-06-03 00:13:50.562224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '693bdbfa-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '693ddba8-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "693bdbfa-0985-11e5-9805-a8667f0424ad"], ["organization_id", "693ddba8-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.565833"], ["updated_at", "2015-06-03 00:13:50.565833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '693cb0e8-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '693ddba8-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "693cb0e8-0985-11e5-9805-a8667f0424ad"], ["organization_id", "693ddba8-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.569654"], ["updated_at", "2015-06-03 00:13:50.569654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$BQy9ehciUsp7pbyJz9mofuYvzfJajleuvJkj8qX2LEkEjTZ9zEay2"], ["created_at", "2015-06-03 00:13:50.576346"], ["updated_at", "2015-06-03 00:13:50.576346"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.579142"], ["user_id", "69401968-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.580313"], ["updated_at", "2015-06-03 00:13:50.580313"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '693ddba8-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "693ddba8-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.588609"], ["updated_at", "2015-06-03 00:13:50.588609"], ["token", "8RVIewbx9OrOg8tDSyUX2Auk8kb4944jbzT8HE8NnJY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$iaJ3.6d9fAvYaShxuuxtMeNpqUXki3fvpZ/t26.y9Vw9WWVmHsQMS"], ["created_at", "2015-06-03 00:13:50.601677"], ["updated_at", "2015-06-03 00:13:50.601677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$aD0s4yBwbB7zxBflZ8yDSeOrnxvC19gDJG.6meHFcMlWKaNegFPK."], ["created_at", "2015-06-03 00:13:50.608233"], ["updated_at", "2015-06-03 00:13:50.608233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.609907"], ["user_id", "6943ebd8-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.610586"], ["updated_at", "2015-06-03 00:13:50.610586"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.616848"], ["updated_at", "2015-06-03 00:13:50.616848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6943ebd8-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '69463a78-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6943ebd8-0985-11e5-9805-a8667f0424ad"], ["organization_id", "69463a78-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.621297"], ["updated_at", "2015-06-03 00:13:50.621297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6944db1a-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '69463a78-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6944db1a-0985-11e5-9805-a8667f0424ad"], ["organization_id", "69463a78-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.624628"], ["updated_at", "2015-06-03 00:13:50.624628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$YeMG/ufNzBCqpT1gBFDQy.TIOmawnSDIu0BfLkyGh.zm1BS7Kg9Ni"], ["created_at", "2015-06-03 00:13:50.630439"], ["updated_at", "2015-06-03 00:13:50.630439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.632398"], ["user_id", "69483e2c-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.633368"], ["updated_at", "2015-06-03 00:13:50.633368"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '69463a78-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "69463a78-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.639398"], ["updated_at", "2015-06-03 00:13:50.639398"], ["token", "9YBLExYnHFv3wKEM_U_EfrxLFezLc4VAYvbgYMsgY-k"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"9YBLExYnHFv3wKEM_U_EfrxLFezLc4VAYvbgYMsgY-k", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:13:50.643669') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "661cc4f2-a433-4b34-a50c-a4def428331d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:13:50.645088"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:13:50.645917"], ["id", "661cc4f2-a433-4b34-a50c-a4def428331d"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69483e2c-0985-11e5-9805-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "9YBLExYnHFv3wKEM_U_EfrxLFezLc4VAYvbgYMsgY-k"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "69463a78-0985-11e5-9805-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69483e2c-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '69463a78-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "69463a78-0985-11e5-9805-a8667f0424ad"], ["member_id", "69483e2c-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.657845"], ["updated_at", "2015-06-03 00:13:50.657845"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6949a6c2-0985-11e5-9805-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 1.0ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$Yai0F3rybDQ5ju6MKWbzwugFMTrNRHfhzG7xOjByUCUwYsSRiEV/e"], ["created_at", "2015-06-03 00:13:50.668579"], ["updated_at", "2015-06-03 00:13:50.668579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$vZChTCgXwWSNSOboN.3a7.Y5aGLJPzWnb25PH4rkRG8NMk24z7pWC"], ["created_at", "2015-06-03 00:13:50.675534"], ["updated_at", "2015-06-03 00:13:50.675534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.677357"], ["user_id", "694e210c-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.678078"], ["updated_at", "2015-06-03 00:13:50.678078"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:13:50.682495"], ["updated_at", "2015-06-03 00:13:50.682495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '694e210c-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '69503424-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "694e210c-0985-11e5-9805-a8667f0424ad"], ["organization_id", "69503424-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.686021"], ["updated_at", "2015-06-03 00:13:50.686021"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '694f2282-0985-11e5-9805-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '69503424-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "694f2282-0985-11e5-9805-a8667f0424ad"], ["organization_id", "69503424-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.692139"], ["updated_at", "2015-06-03 00:13:50.692139"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$oi9jem9zYoQuq64O/ICnQ.DI0WVlRTbx9tOIW5oOsPsmI6nZ.QETy"], ["created_at", "2015-06-03 00:13:50.703893"], ["updated_at", "2015-06-03 00:13:50.703893"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:13:50.707175"], ["user_id", "69537ed6-0985-11e5-9805-a8667f0424ad"], ["created_at", "2015-06-03 00:13:50.708198"], ["updated_at", "2015-06-03 00:13:50.708198"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '69503424-0985-11e5-9805-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "69503424-0985-11e5-9805-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:13:50.715226"], ["updated_at", "2015-06-03 00:13:50.715226"], ["token", "aVW-p4d2C3q1QyJwktSuPiJgcvAk-e8NEbgpZLtPW_c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:13:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:13:50.720398') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c2e2758f-1b0c-4dae-b166-889dbf88bec4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:13:50.722366"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:13:50.723357"], ["id", "c2e2758f-1b0c-4dae-b166-889dbf88bec4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69537ed6-0985-11e5-9805-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 13ms (ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$.Mej2VnrkPbrpg4MQtlCIOGJLlqbIh3NB.BRO1s2/q4EaV8iz.aXa"], ["created_at", "2015-06-03 00:14:08.634565"], ["updated_at", "2015-06-03 00:14:08.634565"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$e9RSvuVB58essk3UMVVUd.8gYgIZ7m177dk550S.no/Jgg.cuvVR6"], ["created_at", "2015-06-03 00:14:08.647234"], ["updated_at", "2015-06-03 00:14:08.647234"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:08.672548"], ["user_id", "7403f31a-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.684189"], ["updated_at", "2015-06-03 00:14:08.684189"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:08.700183"], ["updated_at", "2015-06-03 00:14:08.700183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7403f31a-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '740d8632-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7403f31a-0985-11e5-b577-a8667f0424ad"], ["organization_id", "740d8632-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:08.715181"], ["updated_at", "2015-06-03 00:14:08.715181"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '740571a4-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '740d8632-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "740571a4-0985-11e5-b577-a8667f0424ad"], ["organization_id", "740d8632-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.723347"], ["updated_at", "2015-06-03 00:14:08.723347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:14:08 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$FQkFCjZirmaHpf9AZEIUvuxkZ5xnxuY5lDHgM.BHmxOL6Zvx5V52e"], ["created_at", "2015-06-03 00:14:08.758801"], ["updated_at", "2015-06-03 00:14:08.758801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$QWs7Nu6uBSu8i2XZu/IBA.sA8N8sOM3WDltoJ5khN9vqOHrZ92dIC"], ["created_at", "2015-06-03 00:14:08.766550"], ["updated_at", "2015-06-03 00:14:08.766550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:08.769490"], ["user_id", "74167cf6-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.770654"], ["updated_at", "2015-06-03 00:14:08.770654"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:08.778670"], ["updated_at", "2015-06-03 00:14:08.778670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74167cf6-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '741985e0-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74167cf6-0985-11e5-b577-a8667f0424ad"], ["organization_id", "741985e0-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:08.783672"], ["updated_at", "2015-06-03 00:14:08.783672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7417b058-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '741985e0-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7417b058-0985-11e5-b577-a8667f0424ad"], ["organization_id", "741985e0-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.788460"], ["updated_at", "2015-06-03 00:14:08.788460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/741985e0-0985-11e5-b577-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:14:08 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"741985e0-0985-11e5-b577-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:08.792853') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e42f11cd-e80c-41b0-99d2-6897d997870d"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:08.802700"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:08.804700"], ["id", "e42f11cd-e80c-41b0-99d2-6897d997870d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "741985e0-0985-11e5-b577-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74167cf6-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '74167cf6-0985-11e5-b577-a8667f0424ad' LIMIT 1 [["organization_id", "741985e0-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "741985e0-0985-11e5-b577-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74167cf6-0985-11e5-b577-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7417b058-0985-11e5-b577-a8667f0424ad"]] Completed 200 OK in 58ms (Views: 18.9ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$rAAjUjy/XXm40qbeVibikej4WU4GDtldNSoa.Yx3VK8sJE5a2L8Qi"], ["created_at", "2015-06-03 00:14:08.863268"], ["updated_at", "2015-06-03 00:14:08.863268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$JPNqb3dJW.yH8golEE6s/.ptQgj13Gf/zsm6wlVTHt4dE/rr.3i5m"], ["created_at", "2015-06-03 00:14:08.869616"], ["updated_at", "2015-06-03 00:14:08.869616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:08.872771"], ["user_id", "74265e1e-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.873636"], ["updated_at", "2015-06-03 00:14:08.873636"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:08.878896"], ["updated_at", "2015-06-03 00:14:08.878896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74265e1e-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7428c776-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74265e1e-0985-11e5-b577-a8667f0424ad"], ["organization_id", "7428c776-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:08.883010"], ["updated_at", "2015-06-03 00:14:08.883010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74276548-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7428c776-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "74276548-0985-11e5-b577-a8667f0424ad"], ["organization_id", "7428c776-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.886726"], ["updated_at", "2015-06-03 00:14:08.886726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 17:14:08 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$0Yf3QN1Fp5xOdGdaEbaE3uW45WIlOzXDunLrM/17NO8e4nM0YPN1q"], ["created_at", "2015-06-03 00:14:08.899301"], ["updated_at", "2015-06-03 00:14:08.899301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$7P6Qnjnmp4oMvR9/wKCG9umubLCh44lTBz8UjSZ3mTUeIoGwzPuu2"], ["created_at", "2015-06-03 00:14:08.906328"], ["updated_at", "2015-06-03 00:14:08.906328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:08.908655"], ["user_id", "742be514-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.909389"], ["updated_at", "2015-06-03 00:14:08.909389"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:08.914034"], ["updated_at", "2015-06-03 00:14:08.914034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '742be514-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '742e1866-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "742be514-0985-11e5-b577-a8667f0424ad"], ["organization_id", "742e1866-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:08.917408"], ["updated_at", "2015-06-03 00:14:08.917408"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '742cf530-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '742e1866-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "742cf530-0985-11e5-b577-a8667f0424ad"], ["organization_id", "742e1866-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.922275"], ["updated_at", "2015-06-03 00:14:08.922275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/742ea358-0985-11e5-b577-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:08 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"742ea358-0985-11e5-b577-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:08.926063') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "42af1415-08bb-44d9-ac5d-7536a426383b"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:08.928485"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:08.930341"], ["id", "42af1415-08bb-44d9-ac5d-7536a426383b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "742ea358-0985-11e5-b577-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "742be514-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "742e1866-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '742be514-0985-11e5-b577-a8667f0424ad' LIMIT 1 [["organization_id", "742e1866-0985-11e5-b577-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "742be514-0985-11e5-b577-a8667f0424ad"]] Completed 200 OK in 15ms (Views: 2.1ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$FPLukV.Ve2BSm8T6M2uvx.chIi2aGJwwcuNBGa2pJSSMFOp5J//hO"], ["created_at", "2015-06-03 00:14:08.950003"], ["updated_at", "2015-06-03 00:14:08.950003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$UsB7ZOHCHo1.Em6Jn.rGSOi7QOty7IScoNYDNBMJ.b1VerKKI1/Dy"], ["created_at", "2015-06-03 00:14:08.955776"], ["updated_at", "2015-06-03 00:14:08.955776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:08.957734"], ["user_id", "74339a34-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.958499"], ["updated_at", "2015-06-03 00:14:08.958499"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:08.963235"], ["updated_at", "2015-06-03 00:14:08.963235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74339a34-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74359bfe-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74339a34-0985-11e5-b577-a8667f0424ad"], ["organization_id", "74359bfe-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:08.966541"], ["updated_at", "2015-06-03 00:14:08.966541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74347ad0-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74359bfe-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "74347ad0-0985-11e5-b577-a8667f0424ad"], ["organization_id", "74359bfe-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.969607"], ["updated_at", "2015-06-03 00:14:08.969607"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$J8JcKXoOu4/lMoAIJEkqQ.DiO1Ieyvoc/JDU8qhemmylYFxKZUWyi"], ["created_at", "2015-06-03 00:14:08.977137"], ["updated_at", "2015-06-03 00:14:08.977137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:08.979896"], ["user_id", "7437cdd4-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:08.980844"], ["updated_at", "2015-06-03 00:14:08.980844"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '74359bfe-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "74359bfe-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.004393"], ["updated_at", "2015-06-03 00:14:09.004393"], ["token", "ypYCri9ispeIqpaqEPUPEqafzX4YzHo1Lv9oE2TUPKg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$Ot94M/SmuwSBVZ9nKKWVPOTosfmZXlnGBs8T0H4cxecMHWSJModSy"], ["created_at", "2015-06-03 00:14:09.017078"], ["updated_at", "2015-06-03 00:14:09.017078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$/Kd5yp4.sJSCaGkI2veUGejzfHIADJLPeZKJUyCfyAhQ2uiuBf4Wq"], ["created_at", "2015-06-03 00:14:09.022682"], ["updated_at", "2015-06-03 00:14:09.022682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.024507"], ["user_id", "743dd5bc-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.025438"], ["updated_at", "2015-06-03 00:14:09.025438"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.030479"], ["updated_at", "2015-06-03 00:14:09.030479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '743dd5bc-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '743fed52-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "743dd5bc-0985-11e5-b577-a8667f0424ad"], ["organization_id", "743fed52-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.034537"], ["updated_at", "2015-06-03 00:14:09.034537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '743eabfe-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '743fed52-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "743eabfe-0985-11e5-b577-a8667f0424ad"], ["organization_id", "743fed52-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.037544"], ["updated_at", "2015-06-03 00:14:09.037544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$8639fZ2sYoWL/ycIutv2T.n22VSW5zdGKK3rbqpbLMqRMZ1Cv0W9O"], ["created_at", "2015-06-03 00:14:09.043193"], ["updated_at", "2015-06-03 00:14:09.043193"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.045184"], ["user_id", "7441d0ea-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.046122"], ["updated_at", "2015-06-03 00:14:09.046122"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '743fed52-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "743fed52-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.051924"], ["updated_at", "2015-06-03 00:14:09.051924"], ["token", "ci9zmMmuRG_IztapSiTHOKXs8ZuKgxs86SxUt_lcqx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/743fed52-0985-11e5-b577-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"ci9zmMmuRG_IztapSiTHOKXs8ZuKgxs86SxUt_lcqx0", "organization_id"=>"743fed52-0985-11e5-b577-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:09.055900') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "213655b9-f606-49d4-b452-584f6ad5f5f3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:09.057535"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:09.058321"], ["id", "213655b9-f606-49d4-b452-584f6ad5f5f3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "743fed52-0985-11e5-b577-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7441d0ea-0985-11e5-b577-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "ci9zmMmuRG_IztapSiTHOKXs8ZuKgxs86SxUt_lcqx0"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "743fed52-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7441d0ea-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '743fed52-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "743fed52-0985-11e5-b577-a8667f0424ad"], ["member_id", "7441d0ea-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.068861"], ["updated_at", "2015-06-03 00:14:09.068861"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "74433174-0985-11e5-b577-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$lx/CABdor1ifoW8a6U/gNOrpYewkUnIabejmDZUlh8191mT74vpTq"], ["created_at", "2015-06-03 00:14:09.084315"], ["updated_at", "2015-06-03 00:14:09.084315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$WbmEzmXaWhOE0mYOPiyAF.oXf8./AreqLQcWJcJDd..E0PgaJqw.m"], ["created_at", "2015-06-03 00:14:09.093242"], ["updated_at", "2015-06-03 00:14:09.093242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.095369"], ["user_id", "74485442-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.096234"], ["updated_at", "2015-06-03 00:14:09.096234"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.100905"], ["updated_at", "2015-06-03 00:14:09.100905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74485442-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '744aa53a-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74485442-0985-11e5-b577-a8667f0424ad"], ["organization_id", "744aa53a-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.105490"], ["updated_at", "2015-06-03 00:14:09.105490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74497408-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '744aa53a-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "74497408-0985-11e5-b577-a8667f0424ad"], ["organization_id", "744aa53a-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.112057"], ["updated_at", "2015-06-03 00:14:09.112057"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$cXKMXNAA1aq4jAo.snsJM.zoZr3YeHEWyy5m3YYE6yCGGd0EqLAy6"], ["created_at", "2015-06-03 00:14:09.119249"], ["updated_at", "2015-06-03 00:14:09.119249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.121196"], ["user_id", "744d6d60-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.122041"], ["updated_at", "2015-06-03 00:14:09.122041"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '744aa53a-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "744aa53a-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.126873"], ["updated_at", "2015-06-03 00:14:09.126873"], ["token", "_Wk7VoCrgH8Vc0m903gprqvfExTM7FGvGDtOBa4TORU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/744aa53a-0985-11e5-b577-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"744aa53a-0985-11e5-b577-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:09.133048') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f7b2eb86-2624-4762-9885-d9e0dd2fd59a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:09.135271"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:09.136278"], ["id", "f7b2eb86-2624-4762-9885-d9e0dd2fd59a"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "744aa53a-0985-11e5-b577-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "744d6d60-0985-11e5-b577-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms (ActiveRecord: 2.2ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$l0Z6BRXH0/S6rhBb90NsFuWIQc6SVN8nCC3vr0tQc8LVMFgzIAPym"], ["created_at", "2015-06-03 00:14:09.157643"], ["updated_at", "2015-06-03 00:14:09.157643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$uyJk3YEhllt9CTZaZ8tz7u5Q5udXbmjY.MxZTnRtp6Kym9j3a9Tkq"], ["created_at", "2015-06-03 00:14:09.164936"], ["updated_at", "2015-06-03 00:14:09.164936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.166852"], ["user_id", "74535d38-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.167543"], ["updated_at", "2015-06-03 00:14:09.167543"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.172071"], ["updated_at", "2015-06-03 00:14:09.172071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74535d38-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74557a82-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74535d38-0985-11e5-b577-a8667f0424ad"], ["organization_id", "74557a82-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.176318"], ["updated_at", "2015-06-03 00:14:09.176318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7454671e-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74557a82-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7454671e-0985-11e5-b577-a8667f0424ad"], ["organization_id", "74557a82-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.179992"], ["updated_at", "2015-06-03 00:14:09.179992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$pkRmPVCY5FpWAdbof/M6TemGy6Y7oEAPndizbXcs5Qw4QxMPTq4ii"], ["created_at", "2015-06-03 00:14:09.191537"], ["updated_at", "2015-06-03 00:14:09.191537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$BfvzyKHZaqSqbVvMr25oO.1NHU8PImXKFeYpXAtVHJUnFiQhk.mEO"], ["created_at", "2015-06-03 00:14:09.198639"], ["updated_at", "2015-06-03 00:14:09.198639"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.200860"], ["user_id", "7458839e-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.201634"], ["updated_at", "2015-06-03 00:14:09.201634"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.207255"], ["updated_at", "2015-06-03 00:14:09.207255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7458839e-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '745ae170-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7458839e-0985-11e5-b577-a8667f0424ad"], ["organization_id", "745ae170-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.212121"], ["updated_at", "2015-06-03 00:14:09.212121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74598b90-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '745ae170-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "74598b90-0985-11e5-b577-a8667f0424ad"], ["organization_id", "745ae170-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.216936"], ["updated_at", "2015-06-03 00:14:09.216936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/745c69f0-0985-11e5-b577-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"745c69f0-0985-11e5-b577-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:09.221561') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dea08ae3-24fa-4f1d-85ed-44e149742802"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:09.223837"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:09.225183"], ["id", "dea08ae3-24fa-4f1d-85ed-44e149742802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "745c69f0-0985-11e5-b577-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7458839e-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "745ae170-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7458839e-0985-11e5-b577-a8667f0424ad' LIMIT 1 [["organization_id", "745ae170-0985-11e5-b577-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74598b90-0985-11e5-b577-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74598b90-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."id" != '745c69f0-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '745ae170-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:14:09.235097"], ["id", "745c69f0-0985-11e5-b577-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.5ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$92MYjbfKegwceNCa05AgUegdlq90E3.UfIWfXCuW1EBN43RP7OWHq"], ["created_at", "2015-06-03 00:14:09.247495"], ["updated_at", "2015-06-03 00:14:09.247495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$fWdJRibMOKfpoGGr9yYKLuEHMkJOGs9UkvPY5cQEXBtbR6JRlFXTm"], ["created_at", "2015-06-03 00:14:09.256808"], ["updated_at", "2015-06-03 00:14:09.256808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.259142"], ["user_id", "74610564-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.260019"], ["updated_at", "2015-06-03 00:14:09.260019"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.266265"], ["updated_at", "2015-06-03 00:14:09.266265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74610564-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7463df3c-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74610564-0985-11e5-b577-a8667f0424ad"], ["organization_id", "7463df3c-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.270296"], ["updated_at", "2015-06-03 00:14:09.270296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74626ff8-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7463df3c-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "74626ff8-0985-11e5-b577-a8667f0424ad"], ["organization_id", "7463df3c-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.274404"], ["updated_at", "2015-06-03 00:14:09.274404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$pll.ULO2/d9YsvNWS/H9V.5VMAZQmRbxOPkPmnXMVBLD3mcahsVDS"], ["created_at", "2015-06-03 00:14:09.282996"], ["updated_at", "2015-06-03 00:14:09.282996"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.286096"], ["user_id", "7466802a-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.287584"], ["updated_at", "2015-06-03 00:14:09.287584"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '7463df3c-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "7463df3c-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.295388"], ["updated_at", "2015-06-03 00:14:09.295388"], ["token", "r3-G6sR1jfUgS-UNmqTO-M7SiZ1PaRzN2iCdxpWkb44"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$ANcOVZW8eAdZ/KAmsrpfyu3pj01YoEmM76KVLZ4MJoCASlLLUyJfu"], ["created_at", "2015-06-03 00:14:09.307397"], ["updated_at", "2015-06-03 00:14:09.307397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$NWEUYrPBEKJ1HQ4Mcft8Z.yddHBsMtdMeO7iNFFkOv.Cabz47pOsW"], ["created_at", "2015-06-03 00:14:09.312808"], ["updated_at", "2015-06-03 00:14:09.312808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.314968"], ["user_id", "746a1fdc-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.315738"], ["updated_at", "2015-06-03 00:14:09.315738"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.321215"], ["updated_at", "2015-06-03 00:14:09.321215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '746a1fdc-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '746c447e-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "746a1fdc-0985-11e5-b577-a8667f0424ad"], ["organization_id", "746c447e-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.325055"], ["updated_at", "2015-06-03 00:14:09.325055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '746af2ae-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '746c447e-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "746af2ae-0985-11e5-b577-a8667f0424ad"], ["organization_id", "746c447e-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.328142"], ["updated_at", "2015-06-03 00:14:09.328142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$S84MyiPY6Gzoq2JGVFv5ieLr944YMgcW5CSEm/vVZLLXL.IbT5jgW"], ["created_at", "2015-06-03 00:14:09.334647"], ["updated_at", "2015-06-03 00:14:09.334647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.337277"], ["user_id", "746e53c2-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.338338"], ["updated_at", "2015-06-03 00:14:09.338338"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '746c447e-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "746c447e-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.345059"], ["updated_at", "2015-06-03 00:14:09.345059"], ["token", "tLxhcLN4wYrBQS27P2pEjq7ju57Iv043cL2SNsCH8M0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"tLxhcLN4wYrBQS27P2pEjq7ju57Iv043cL2SNsCH8M0", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:09.348849') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fad7866d-7ecc-4028-9f50-d05372e95b69"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:09.350315"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:09.351364"], ["id", "fad7866d-7ecc-4028-9f50-d05372e95b69"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "746e53c2-0985-11e5-b577-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "tLxhcLN4wYrBQS27P2pEjq7ju57Iv043cL2SNsCH8M0"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "746c447e-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '746e53c2-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '746c447e-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "746c447e-0985-11e5-b577-a8667f0424ad"], ["member_id", "746e53c2-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.360631"], ["updated_at", "2015-06-03 00:14:09.360631"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "746fefe8-0985-11e5-b577-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$O1O/DjZEWlK7Ex9LAgIyxeHsEJmKu.Di0JSMFI3AoqhtSUaNAkjgS"], ["created_at", "2015-06-03 00:14:09.373501"], ["updated_at", "2015-06-03 00:14:09.373501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$wRrVDQ1rKXUSPlEmdIJI0eQFPzmv3np/zJCT5dNWv8YTPCawi0rYC"], ["created_at", "2015-06-03 00:14:09.379347"], ["updated_at", "2015-06-03 00:14:09.379347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.381201"], ["user_id", "74743e5e-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.381901"], ["updated_at", "2015-06-03 00:14:09.381901"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.387360"], ["updated_at", "2015-06-03 00:14:09.387360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74743e5e-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74766436-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74743e5e-0985-11e5-b577-a8667f0424ad"], ["organization_id", "74766436-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.399868"], ["updated_at", "2015-06-03 00:14:09.399868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '747519a0-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74766436-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "747519a0-0985-11e5-b577-a8667f0424ad"], ["organization_id", "74766436-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.405893"], ["updated_at", "2015-06-03 00:14:09.405893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$797lY7bFTKj0ovoAcZGFvOgI7oBCGSUcG4S7J/TVCQ3.DkCI/bzR2"], ["created_at", "2015-06-03 00:14:09.413580"], ["updated_at", "2015-06-03 00:14:09.413580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.415830"], ["user_id", "747a5ae6-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.416690"], ["updated_at", "2015-06-03 00:14:09.416690"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '74766436-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "74766436-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.423104"], ["updated_at", "2015-06-03 00:14:09.423104"], ["token", "rlHa-YepxZFY9feKM3rgvr1Ch-Uh8z87AhkKHyLfsPg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:09.428284') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "35fc7262-6e92-48d8-aaa1-968a3f90949f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:09.430149"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:09.431049"], ["id", "35fc7262-6e92-48d8-aaa1-968a3f90949f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "747a5ae6-0985-11e5-b577-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$d5kdx2r71Le5S9Se0CY3LOH18pEpHFkzuVFd4POQNN7AU4qeIkUti"], ["created_at", "2015-06-03 00:14:09.444880"], ["updated_at", "2015-06-03 00:14:09.444880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$J7NUJp4INP.Ri/DLn4q5yOH1LApjpLjiStttzQtxY8JkXx4nHVk5W"], ["created_at", "2015-06-03 00:14:09.458302"], ["updated_at", "2015-06-03 00:14:09.458302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.460392"], ["user_id", "747f1bf8-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.461298"], ["updated_at", "2015-06-03 00:14:09.461298"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.465545"], ["updated_at", "2015-06-03 00:14:09.465545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '747f1bf8-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7482418e-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "747f1bf8-0985-11e5-b577-a8667f0424ad"], ["organization_id", "7482418e-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.468940"], ["updated_at", "2015-06-03 00:14:09.468940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '748133b6-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7482418e-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "748133b6-0985-11e5-b577-a8667f0424ad"], ["organization_id", "7482418e-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.472716"], ["updated_at", "2015-06-03 00:14:09.472716"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$uwf9KpVfh0/Au3WsyfjPdOPLEd1AABO/muqS5oFNZnfvs9XwuBs9a"], ["created_at", "2015-06-03 00:14:09.504554"], ["updated_at", "2015-06-03 00:14:09.504554"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$yBPawhV3DKkgHhKicM/jbekCLj.7lVoNIQo1OGnMqYv8RQ1lOKL/G"], ["created_at", "2015-06-03 00:14:09.514291"], ["updated_at", "2015-06-03 00:14:09.514291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.516628"], ["user_id", "748844d0-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.517379"], ["updated_at", "2015-06-03 00:14:09.517379"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.522667"], ["updated_at", "2015-06-03 00:14:09.522667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '748844d0-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '748b03e6-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "748844d0-0985-11e5-b577-a8667f0424ad"], ["organization_id", "748b03e6-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.528147"], ["updated_at", "2015-06-03 00:14:09.528147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7489b64e-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '748b03e6-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7489b64e-0985-11e5-b577-a8667f0424ad"], ["organization_id", "748b03e6-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.535559"], ["updated_at", "2015-06-03 00:14:09.535559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/748cf8fe-0985-11e5-b577-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"748cf8fe-0985-11e5-b577-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:09.539436') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f75e1152-4794-461c-bded-2a3606676ddd"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:09.541080"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:09.541962"], ["id", "f75e1152-4794-461c-bded-2a3606676ddd"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "748cf8fe-0985-11e5-b577-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "748844d0-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "748b03e6-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '748844d0-0985-11e5-b577-a8667f0424ad' LIMIT 1 [["organization_id", "748b03e6-0985-11e5-b577-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7489b64e-0985-11e5-b577-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "748cf8fe-0985-11e5-b577-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 29ms (ActiveRecord: 3.2ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$sVK.hSrBDyXjdTHaJOax0e0BPfUCwbQpTBGwq2GV9WlvA0fgS.4gi"], ["created_at", "2015-06-03 00:14:09.579897"], ["updated_at", "2015-06-03 00:14:09.579897"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$6xCynPHS49gMstUARG2FpeYyjmuzWJS7fRdg./U3uovJ5shf50af6"], ["created_at", "2015-06-03 00:14:09.591440"], ["updated_at", "2015-06-03 00:14:09.591440"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.594590"], ["user_id", "7493d58e-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.596889"], ["updated_at", "2015-06-03 00:14:09.596889"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.603421"], ["updated_at", "2015-06-03 00:14:09.603421"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7493d58e-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74977414-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7493d58e-0985-11e5-b577-a8667f0424ad"], ["organization_id", "74977414-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.621071"], ["updated_at", "2015-06-03 00:14:09.621071"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7495888e-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74977414-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7495888e-0985-11e5-b577-a8667f0424ad"], ["organization_id", "74977414-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.640714"], ["updated_at", "2015-06-03 00:14:09.640714"]]  (2.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$EyvVJU/wJHDDr7v6sbTfhe0CB7PviBDyVH.QnVqqn9fOsqOJhsQlW"], ["created_at", "2015-06-03 00:14:09.659094"], ["updated_at", "2015-06-03 00:14:09.659094"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$H1GMD.vfSdLcLTWpO3wU9Oox.rv6C06iCjrKBH6BnuqLP1t99PC86"], ["created_at", "2015-06-03 00:14:09.675038"], ["updated_at", "2015-06-03 00:14:09.675038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:09.679280"], ["user_id", "74a0c2ee-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.681141"], ["updated_at", "2015-06-03 00:14:09.681141"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:09.700663"], ["updated_at", "2015-06-03 00:14:09.700663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74a0c2ee-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74a6527c-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74a0c2ee-0985-11e5-b577-a8667f0424ad"], ["organization_id", "74a6527c-0985-11e5-b577-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:09.708628"], ["updated_at", "2015-06-03 00:14:09.708628"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74a26518-0985-11e5-b577-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '74a6527c-0985-11e5-b577-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "74a26518-0985-11e5-b577-a8667f0424ad"], ["organization_id", "74a6527c-0985-11e5-b577-a8667f0424ad"], ["created_at", "2015-06-03 00:14:09.720338"], ["updated_at", "2015-06-03 00:14:09.720338"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:14:09 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:09.729573') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e9f7cd0e-7f1c-4a07-8895-9e4539d2c7e6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:09.733273"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:09.734648"], ["id", "e9f7cd0e-7f1c-4a07-8895-9e4539d2c7e6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74a0c2ee-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '74a0c2ee-0985-11e5-b577-a8667f0424ad' LIMIT 1 [["organization_id", "74a6527c-0985-11e5-b577-a8667f0424ad"]] Clubhouse::Membership Load (1.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "74a6527c-0985-11e5-b577-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74a0c2ee-0985-11e5-b577-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74a26518-0985-11e5-b577-a8667f0424ad"]] Completed 200 OK in 34ms (Views: 9.6ms | ActiveRecord: 3.4ms)  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$SEEKUjdk5Tj8U13k8KBIFOrJRFedk47eoS4qqwH6.dzuIJLVKHlLq"], ["created_at", "2015-06-03 00:14:18.978815"], ["updated_at", "2015-06-03 00:14:18.978815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$irbTu.Li2yO0BbvNcqGiBOKIKlrzxN.lz1h6Vckt.WJtOFQa1jMCK"], ["created_at", "2015-06-03 00:14:18.986929"], ["updated_at", "2015-06-03 00:14:18.986929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:18.999322"], ["user_id", "7a2e0d20-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.003788"], ["updated_at", "2015-06-03 00:14:19.003788"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.013974"], ["updated_at", "2015-06-03 00:14:19.013974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a2e0d20-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a3341f0-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a2e0d20-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a3341f0-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.026528"], ["updated_at", "2015-06-03 00:14:19.026528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a2f1a30-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a3341f0-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a2f1a30-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a3341f0-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.030439"], ["updated_at", "2015-06-03 00:14:19.030439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:19.049005') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5634b7e3-e38e-4edf-a996-e8b351387183"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:19.054546"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:19.055659"], ["id", "5634b7e3-e38e-4edf-a996-e8b351387183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a2e0d20-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7a2e0d20-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7a3341f0-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "7a3341f0-0985-11e5-8fc5-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a2e0d20-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a2f1a30-0985-11e5-8fc5-a8667f0424ad"]] Completed 200 OK in 41ms (Views: 14.4ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$guGGT3ghljC2QdXdNtJ1Euds2M5g9YMZN/Vgw1gnrHvdPEYX3FvAu"], ["created_at", "2015-06-03 00:14:19.099430"], ["updated_at", "2015-06-03 00:14:19.099430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$v8UGz..5sXVxsyybyi2gzuoU21LB8zTvbuRzm0r/QrKK2CZU2BXkq"], ["created_at", "2015-06-03 00:14:19.107979"], ["updated_at", "2015-06-03 00:14:19.107979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.110278"], ["user_id", "7a4053b8-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.110975"], ["updated_at", "2015-06-03 00:14:19.110975"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.116826"], ["updated_at", "2015-06-03 00:14:19.116826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a4053b8-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a42f5d2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a4053b8-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a42f5d2-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.120865"], ["updated_at", "2015-06-03 00:14:19.120865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a419e58-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a42f5d2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a419e58-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a42f5d2-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.124668"], ["updated_at", "2015-06-03 00:14:19.124668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$rj7wDHotdycumya1jQARbuS9Qyoqhw0BdkGstEq0BXvBiiCO5uLai"], ["created_at", "2015-06-03 00:14:19.137884"], ["updated_at", "2015-06-03 00:14:19.137884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$YhX5.DXu9AuZVxiKqKgISuPcX5sWbZobsFapCWrp6fIXLj7ed6sfy"], ["created_at", "2015-06-03 00:14:19.144266"], ["updated_at", "2015-06-03 00:14:19.144266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.145965"], ["user_id", "7a463378-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.146572"], ["updated_at", "2015-06-03 00:14:19.146572"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.164097"], ["updated_at", "2015-06-03 00:14:19.164097"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a463378-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a4a47f6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a463378-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a4a47f6-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.171170"], ["updated_at", "2015-06-03 00:14:19.171170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a471cca-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a4a47f6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a471cca-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a4a47f6-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.177337"], ["updated_at", "2015-06-03 00:14:19.177337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/7a4c2db4-0985-11e5-8fc5-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"7a4c2db4-0985-11e5-8fc5-a8667f0424ad", "membership"=>{"admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:19.181280') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fc1c383e-cafe-4bb0-9418-5ec132d96fee"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:19.183939"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:19.186674"], ["id", "fc1c383e-cafe-4bb0-9418-5ec132d96fee"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "7a4c2db4-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a463378-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a4a47f6-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7a463378-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7a4a47f6-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a471cca-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a471cca-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."id" != '7a4c2db4-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a4a47f6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:14:19.198992"], ["id", "7a4c2db4-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 0.9ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$79nNlp6OAgwigQman6.qa.Fj/nSQgJrlVFRj0Gc4SESThQbdzJOpm"], ["created_at", "2015-06-03 00:14:19.210030"], ["updated_at", "2015-06-03 00:14:19.210030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$o35D8CylpjnvITobeksg9.bpc.4GDZDlilS16U1VIYhH7H9W7V8s2"], ["created_at", "2015-06-03 00:14:19.216470"], ["updated_at", "2015-06-03 00:14:19.216470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.219353"], ["user_id", "7a512d64-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.220323"], ["updated_at", "2015-06-03 00:14:19.220323"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.225654"], ["updated_at", "2015-06-03 00:14:19.225654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a512d64-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a538d5c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a512d64-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a538d5c-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.229354"], ["updated_at", "2015-06-03 00:14:19.229354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a523452-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a538d5c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a523452-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a538d5c-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.232363"], ["updated_at", "2015-06-03 00:14:19.232363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$pLYsjE8EvjfbmZxt062qbe11sGX8eRrHTC6/0xDtzSvAgGTtq7HCO"], ["created_at", "2015-06-03 00:14:19.243441"], ["updated_at", "2015-06-03 00:14:19.243441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$gmnLQvTkfHL0QReh1jb6A.7VE4vuXhHUSe/U/ebqK6VLjdL4HWeXW"], ["created_at", "2015-06-03 00:14:19.249040"], ["updated_at", "2015-06-03 00:14:19.249040"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.251834"], ["user_id", "7a564178-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.253442"], ["updated_at", "2015-06-03 00:14:19.253442"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.257865"], ["updated_at", "2015-06-03 00:14:19.257865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a564178-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a586ed0-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a564178-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a586ed0-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.261604"], ["updated_at", "2015-06-03 00:14:19.261604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a571a94-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a586ed0-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a571a94-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a586ed0-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.264866"], ["updated_at", "2015-06-03 00:14:19.264866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7a586ed0-0985-11e5-8fc5-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"7a586ed0-0985-11e5-8fc5-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:19.268076') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "55ca2750-b172-4d5f-a544-689baa33f0ed"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:19.269404"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:19.270202"], ["id", "55ca2750-b172-4d5f-a544-689baa33f0ed"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7a586ed0-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a564178-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7a564178-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7a586ed0-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "7a586ed0-0985-11e5-8fc5-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a564178-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a571a94-0985-11e5-8fc5-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 3.4ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$aIZ6Fe4yerMtO8ZGW43Y0eUZ55FIJD2jPXBqQEKKrio4AmGZkWpLS"], ["created_at", "2015-06-03 00:14:19.286922"], ["updated_at", "2015-06-03 00:14:19.286922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$Rdq1JpNdpXgc1mdJdMuJ9uZ9DenTQSnybeZrB8NuQPtoZd1OCqxta"], ["created_at", "2015-06-03 00:14:19.292596"], ["updated_at", "2015-06-03 00:14:19.292596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.294196"], ["user_id", "7a5ce2bc-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.295282"], ["updated_at", "2015-06-03 00:14:19.295282"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.300109"], ["updated_at", "2015-06-03 00:14:19.300109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a5ce2bc-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a5eef30-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a5ce2bc-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a5eef30-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.303578"], ["updated_at", "2015-06-03 00:14:19.303578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a5dbcaa-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a5eef30-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a5dbcaa-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a5eef30-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.306372"], ["updated_at", "2015-06-03 00:14:19.306372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$Mk3QNeHo3PAZq15mn/Vn9.zi6WmZJaaOrE6i.RBbfWMT9U.ripxUy"], ["created_at", "2015-06-03 00:14:19.315953"], ["updated_at", "2015-06-03 00:14:19.315953"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$WEaXTv9lrK1Xqfzd/.BvhuyLcvqmk8e1nekE0/3EhXIEUOqE/6geu"], ["created_at", "2015-06-03 00:14:19.321931"], ["updated_at", "2015-06-03 00:14:19.321931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.324107"], ["user_id", "7a615748-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.324955"], ["updated_at", "2015-06-03 00:14:19.324955"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.329614"], ["updated_at", "2015-06-03 00:14:19.329614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a615748-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a6361fa-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a615748-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a6361fa-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.333190"], ["updated_at", "2015-06-03 00:14:19.333190"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a623a64-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a6361fa-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a623a64-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a6361fa-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.337827"], ["updated_at", "2015-06-03 00:14:19.337827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7a64a3e4-0985-11e5-8fc5-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7a64a3e4-0985-11e5-8fc5-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:19.340635') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "90691e97-a8c6-4d25-9b06-95efe780ea98"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:19.342127"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:19.343005"], ["id", "90691e97-a8c6-4d25-9b06-95efe780ea98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "7a64a3e4-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a615748-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a6361fa-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7a615748-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7a6361fa-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a623a64-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "7a64a3e4-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$N9J7/QlN2l7EU9v7Wu2GQuvMk.CWB59y6ua.L2vTGtFdQt8xQeCjW"], ["created_at", "2015-06-03 00:14:19.357263"], ["updated_at", "2015-06-03 00:14:19.357263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$pBN4Ezm5azbI9TFEuf07cOcqTTqEQwOAeeUNiAUMzbk6nueP7TtVS"], ["created_at", "2015-06-03 00:14:19.362713"], ["updated_at", "2015-06-03 00:14:19.362713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.364251"], ["user_id", "7a679c98-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.364909"], ["updated_at", "2015-06-03 00:14:19.364909"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.370415"], ["updated_at", "2015-06-03 00:14:19.370415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a679c98-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a69a182-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a679c98-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a69a182-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.373707"], ["updated_at", "2015-06-03 00:14:19.373707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a686e84-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a69a182-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a686e84-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a69a182-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.376436"], ["updated_at", "2015-06-03 00:14:19.376436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$DS1Tz5UfCd9GbKMPb97sheOtKolc9tcqTThZOohEFkk5.qcuqSqza"], ["created_at", "2015-06-03 00:14:19.385707"], ["updated_at", "2015-06-03 00:14:19.385707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$2mCLNSTKZlL7INQs8Lsl1OFIEjm3s5EqrL9bzOStSddqLzEsjoJti"], ["created_at", "2015-06-03 00:14:19.391724"], ["updated_at", "2015-06-03 00:14:19.391724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.393264"], ["user_id", "7a6bfca2-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.393818"], ["updated_at", "2015-06-03 00:14:19.393818"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.397757"], ["updated_at", "2015-06-03 00:14:19.397757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a6bfca2-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a6dcee2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a6bfca2-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a6dcee2-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.403507"], ["updated_at", "2015-06-03 00:14:19.403507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a6cdd02-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a6dcee2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a6cdd02-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a6dcee2-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.407084"], ["updated_at", "2015-06-03 00:14:19.407084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$NYals6SvvklMrsOuGvzO2OPcIkG3lGFTxXdbSdxONpAn0VCJWwzve"], ["created_at", "2015-06-03 00:14:19.412558"], ["updated_at", "2015-06-03 00:14:19.412558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.414155"], ["user_id", "7a700b3a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.414771"], ["updated_at", "2015-06-03 00:14:19.414771"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '7a6dcee2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "7a6dcee2-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.425415"], ["updated_at", "2015-06-03 00:14:19.425415"], ["token", "PNXp3HxZPxpCsh8G4yoTxpKlbAwVoRecE8Y4TrOVWGI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$gqnEqU3mSuGccKHRmLMppOYzVue8fAWtjTys0thH6916CptyFz.tm"], ["created_at", "2015-06-03 00:14:19.437007"], ["updated_at", "2015-06-03 00:14:19.437007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$6F5GUNdk7SV8BRTw8nqiJedo6qLjWT2QRGZb.tn/8GleBoya6lTg2"], ["created_at", "2015-06-03 00:14:19.442064"], ["updated_at", "2015-06-03 00:14:19.442064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.443584"], ["user_id", "7a73c7de-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.444154"], ["updated_at", "2015-06-03 00:14:19.444154"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.450133"], ["updated_at", "2015-06-03 00:14:19.450133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a73c7de-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a75df92-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a73c7de-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a75df92-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.454334"], ["updated_at", "2015-06-03 00:14:19.454334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a748908-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a75df92-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a748908-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a75df92-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.457970"], ["updated_at", "2015-06-03 00:14:19.457970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$Xrdxqu1hiSR9cK5InefKKOcMt.aztHe7MFu1KCk2JvwwsCkl5oHwe"], ["created_at", "2015-06-03 00:14:19.463112"], ["updated_at", "2015-06-03 00:14:19.463112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.464620"], ["user_id", "7a77bf88-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.465180"], ["updated_at", "2015-06-03 00:14:19.465180"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '7a75df92-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "7a75df92-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.474312"], ["updated_at", "2015-06-03 00:14:19.474312"], ["token", "fLnfTcNEr_skEwEBBPvZtBQNhxOjPGhZ-_jQlSNYkG4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7a75df92-0985-11e5-8fc5-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"7a75df92-0985-11e5-8fc5-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:19.487253') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dc96cd2e-1fb4-48f9-b65f-eec1f1675a40"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:19.489413"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:19.490326"], ["id", "dc96cd2e-1fb4-48f9-b65f-eec1f1675a40"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7a75df92-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a77bf88-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 14ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$QBTvBeXf/izF0n60c4DCW.Lufk06Qu.pTwZSwQc57hPzUoB35pfTy"], ["created_at", "2015-06-03 00:14:19.509477"], ["updated_at", "2015-06-03 00:14:19.509477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$QRTPW8yFOZQNjnwJAgd9juXHE.2DSy.UKxIOqdxN1qN06YtNoNRb2"], ["created_at", "2015-06-03 00:14:19.515504"], ["updated_at", "2015-06-03 00:14:19.515504"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.518115"], ["user_id", "7a7ee5f6-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.518971"], ["updated_at", "2015-06-03 00:14:19.518971"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.523228"], ["updated_at", "2015-06-03 00:14:19.523228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a7ee5f6-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a80ecac-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a7ee5f6-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a80ecac-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.527210"], ["updated_at", "2015-06-03 00:14:19.527210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a7fc732-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a80ecac-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a7fc732-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a80ecac-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.530162"], ["updated_at", "2015-06-03 00:14:19.530162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$brA3H40aEn9QKTao1nLu8ealPvgXA4JooVhNuAscUz8PiESwGoByS"], ["created_at", "2015-06-03 00:14:19.535759"], ["updated_at", "2015-06-03 00:14:19.535759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.537986"], ["user_id", "7a82e48a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.538609"], ["updated_at", "2015-06-03 00:14:19.538609"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '7a80ecac-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "7a80ecac-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.543310"], ["updated_at", "2015-06-03 00:14:19.543310"], ["token", "Hgn6rJKkZQ3Bx94wSoKE4mktANr0eMKm_mfUlw84H6s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7a80ecac-0985-11e5-8fc5-a8667f0424ad/memberships" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Hgn6rJKkZQ3Bx94wSoKE4mktANr0eMKm_mfUlw84H6s", "organization_id"=>"7a80ecac-0985-11e5-8fc5-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:19.546302') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "159e822b-560f-4e29-9eac-365592c01cf1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:19.547652"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:19.548544"], ["id", "159e822b-560f-4e29-9eac-365592c01cf1"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7a80ecac-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a82e48a-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "Hgn6rJKkZQ3Bx94wSoKE4mktANr0eMKm_mfUlw84H6s"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a80ecac-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a82e48a-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a80ecac-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "7a80ecac-0985-11e5-8fc5-a8667f0424ad"], ["member_id", "7a82e48a-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.559277"], ["updated_at", "2015-06-03 00:14:19.559277"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7a83ffc8-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.8ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$8aaWzF66iDUwN/GMdq8e..TlPTpng2Aw7fKB/g.pN4c.p1l8s5BlG"], ["created_at", "2015-06-03 00:14:19.570289"], ["updated_at", "2015-06-03 00:14:19.570289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$V4YF.KVwzFGrhYFXor0k5.ElDQkQrObGSoSgMVnL4Tda4AScORC/e"], ["created_at", "2015-06-03 00:14:19.576501"], ["updated_at", "2015-06-03 00:14:19.576501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.578076"], ["user_id", "7a882544-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.578701"], ["updated_at", "2015-06-03 00:14:19.578701"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.582921"], ["updated_at", "2015-06-03 00:14:19.582921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a882544-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a8a1c82-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a882544-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a8a1c82-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.587241"], ["updated_at", "2015-06-03 00:14:19.587241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a890efa-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a8a1c82-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a890efa-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a8a1c82-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.591664"], ["updated_at", "2015-06-03 00:14:19.591664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$GwkyhSGr3XOFEYefxt6DAunfC6u1T5BXGWxUs6dxI8JhLV4N3lNg2"], ["created_at", "2015-06-03 00:14:19.597096"], ["updated_at", "2015-06-03 00:14:19.597096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.598746"], ["user_id", "7a8c3526-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.599301"], ["updated_at", "2015-06-03 00:14:19.599301"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '7a8a1c82-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "7a8a1c82-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.605111"], ["updated_at", "2015-06-03 00:14:19.605111"], ["token", "2KGXXX634tgkRqefS4uDZiARv3BfWZKHmSTZ1_XgPsU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$f.kRzr88KUCrDuJHriVzvupiDf3IEGSDsmbomm5b8IqK3MDsQAiPG"], ["created_at", "2015-06-03 00:14:19.614571"], ["updated_at", "2015-06-03 00:14:19.614571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$aCZuXQriYcSlfKSlrP.0D.wiNi35LUboKXW3qcdLFnrSKY8wJeJye"], ["created_at", "2015-06-03 00:14:19.621973"], ["updated_at", "2015-06-03 00:14:19.621973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.623686"], ["user_id", "7a8ee424-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.624268"], ["updated_at", "2015-06-03 00:14:19.624268"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.629925"], ["updated_at", "2015-06-03 00:14:19.629925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a8ee424-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a913742-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a8ee424-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a913742-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.633039"], ["updated_at", "2015-06-03 00:14:19.633039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a900214-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a913742-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a900214-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a913742-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.636120"], ["updated_at", "2015-06-03 00:14:19.636120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$8EUS2uZNL4FmA.5Src7xmuZmdSb6/oaBLRT5h9ib4XIoWMt5SUogC"], ["created_at", "2015-06-03 00:14:19.642526"], ["updated_at", "2015-06-03 00:14:19.642526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.644147"], ["user_id", "7a932430-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.644753"], ["updated_at", "2015-06-03 00:14:19.644753"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '7a913742-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "7a913742-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.649058"], ["updated_at", "2015-06-03 00:14:19.649058"], ["token", "rVOUz8Ala4Eicppzs6Fv0WpJjzDmxTIfJmYqym6MNWM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:19.652618') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c7091e35-a93d-44cd-b470-2d839c95bc98"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:19.654576"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:19.655837"], ["id", "c7091e35-a93d-44cd-b470-2d839c95bc98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a932430-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$swR4RYeHN256xdgixeLC0OadeCoMNjBWSNMK1RvtS616gVPRbyoOW"], ["created_at", "2015-06-03 00:14:19.669495"], ["updated_at", "2015-06-03 00:14:19.669495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$5liWc5Jw.oMMmhcf1RX8AOJn3Lea51vo8v89QtSXheQDMk.sE75zK"], ["created_at", "2015-06-03 00:14:19.675631"], ["updated_at", "2015-06-03 00:14:19.675631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.677577"], ["user_id", "7a974d76-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.678277"], ["updated_at", "2015-06-03 00:14:19.678277"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.685233"], ["updated_at", "2015-06-03 00:14:19.685233"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a974d76-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a99bb06-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a974d76-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a99bb06-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.691839"], ["updated_at", "2015-06-03 00:14:19.691839"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a9834c0-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a99bb06-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a9834c0-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7a99bb06-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.698344"], ["updated_at", "2015-06-03 00:14:19.698344"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$vLIJIuLA3ujuWYWXTL7ke.HRjJEySSdvaBM1kAgnNFgX7Uqme2OgW"], ["created_at", "2015-06-03 00:14:19.711012"], ["updated_at", "2015-06-03 00:14:19.711012"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.714117"], ["user_id", "7a9db31e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.715257"], ["updated_at", "2015-06-03 00:14:19.715257"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '7a99bb06-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "7a99bb06-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.726518"], ["updated_at", "2015-06-03 00:14:19.726518"], ["token", "fpVNYf0T04GpOlF3GDfLgN8GYCUfPlSrnaPh3bPwjGg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"fpVNYf0T04GpOlF3GDfLgN8GYCUfPlSrnaPh3bPwjGg", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:19.730799') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "741d9d94-6bf4-429a-89ee-ce3f58c96835"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:19.732612"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:19.733888"], ["id", "741d9d94-6bf4-429a-89ee-ce3f58c96835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a9db31e-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "fpVNYf0T04GpOlF3GDfLgN8GYCUfPlSrnaPh3bPwjGg"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7a99bb06-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a9db31e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7a99bb06-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "7a99bb06-0985-11e5-8fc5-a8667f0424ad"], ["member_id", "7a9db31e-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.742425"], ["updated_at", "2015-06-03 00:14:19.742425"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7aa0033a-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 1.1ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$qRIp/I4oFAJJIBsx1wsdLeGfxKfht6OcRR0rOYfBGf.4p7TRdH0Zu"], ["created_at", "2015-06-03 00:14:19.752576"], ["updated_at", "2015-06-03 00:14:19.752576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$d00erRmN9UueHuD4hdJhaO8OU1zu1.D956YxEkA0TdVEsi6t6dg/."], ["created_at", "2015-06-03 00:14:19.758178"], ["updated_at", "2015-06-03 00:14:19.758178"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.760951"], ["user_id", "7aa3eeb4-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.761763"], ["updated_at", "2015-06-03 00:14:19.761763"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.766061"], ["updated_at", "2015-06-03 00:14:19.766061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aa3eeb4-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7aa616da-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7aa3eeb4-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7aa616da-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.770551"], ["updated_at", "2015-06-03 00:14:19.770551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aa4ce9c-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7aa616da-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7aa4ce9c-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7aa616da-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.775166"], ["updated_at", "2015-06-03 00:14:19.775166"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/7aa6bca2-0985-11e5-8fc5-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"7aa6bca2-0985-11e5-8fc5-a8667f0424ad", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:19.779500') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ef77c6df-5c5c-48c4-bf46-c82534837d33"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:19.780820"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:19.781494"], ["id", "ef77c6df-5c5c-48c4-bf46-c82534837d33"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "7aa6bca2-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7aa3eeb4-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7aa616da-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7aa3eeb4-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7aa616da-0985-11e5-8fc5-a8667f0424ad"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7aa3eeb4-0985-11e5-8fc5-a8667f0424ad"]] Completed 200 OK in 9ms (Views: 1.5ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$7DYob2ilwR2e6JxexEFZiOS8WI2v1LvobuOSq.QzkQNvJRRkDOpLO"], ["created_at", "2015-06-03 00:14:19.795885"], ["updated_at", "2015-06-03 00:14:19.795885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$EK7cqFpRWzDc.EHfhTc41uwQ.u6FkaP9s4/70e3WcdwwbwMIDJka."], ["created_at", "2015-06-03 00:14:19.802976"], ["updated_at", "2015-06-03 00:14:19.802976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:19.805274"], ["user_id", "7aaa8896-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.805863"], ["updated_at", "2015-06-03 00:14:19.805863"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.810511"], ["updated_at", "2015-06-03 00:14:19.810511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aaa8896-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7aacc25a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7aaa8896-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7aacc25a-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:19.813552"], ["updated_at", "2015-06-03 00:14:19.813552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7aabb50e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7aacc25a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7aabb50e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7aacc25a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.816285"], ["updated_at", "2015-06-03 00:14:19.816285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 17:14:19 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 39"], ["email", "user.39@example.com"], ["password_digest", "$2a$04$4XqKZcB1klY4aNEeQOKhYuNB0aLVrjn3S7Iq.wOt0A8TtZyWs9lES"], ["created_at", "2015-06-03 00:14:19.825640"], ["updated_at", "2015-06-03 00:14:19.825640"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.830289"], ["updated_at", "2015-06-03 00:14:19.830289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '7aafc6e4-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "7aafc6e4-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.835424"], ["updated_at", "2015-06-03 00:14:19.835424"], ["token", "0nDfbE1FN7K22nAj3v6BNN22QiIy8hqtHx3wNBsdJ_4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7aaf1c9e-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7aafc6e4-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 40"], ["email", "user.40@example.com"], ["password_digest", "$2a$04$k7mRBz/O287vIte6Gu8E7u5rLXCAXTZ.t/XA6icj/hn1REbzOmxb6"], ["created_at", "2015-06-03 00:14:19.845248"], ["updated_at", "2015-06-03 00:14:19.845248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.850657"], ["updated_at", "2015-06-03 00:14:19.850657"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '7ab31d9e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "7ab31d9e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.856931"], ["updated_at", "2015-06-03 00:14:19.856931"], ["token", "qjbxhcVK5OJjLxURYUn786eFfhZ_Nq-YGPrVupul8OI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ab21624-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7ab31d9e-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 41"], ["email", "user.41@example.com"], ["password_digest", "$2a$04$Xa4cj29CouSkeaFXkmPyzuB.71ZwlaOv3Fbopc/VDZZJx8DkEDRTK"], ["created_at", "2015-06-03 00:14:19.865426"], ["updated_at", "2015-06-03 00:14:19.865426"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.870730"], ["updated_at", "2015-06-03 00:14:19.870730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '7ab5f802-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "7ab5f802-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.875082"], ["updated_at", "2015-06-03 00:14:19.875082"], ["token", "mEqnroBIms7uaC6NqwC1xe3QE9VFo0jVvOjaqaAvPOA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ab52b34-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7ab5f802-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 42"], ["email", "user.42@example.com"], ["password_digest", "$2a$04$XQlqwrkWNZh7i6LUpvZzA.sMGv/W9EN9bWA5LA5FNKdzsY1Mh3tLq"], ["created_at", "2015-06-03 00:14:19.884468"], ["updated_at", "2015-06-03 00:14:19.884468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.889256"], ["updated_at", "2015-06-03 00:14:19.889256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '7ab8cfaa-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "7ab8cfaa-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.893755"], ["updated_at", "2015-06-03 00:14:19.893755"], ["token", "bUyYEDnVDLOw4cVv1JWBFNCfMi_qAdCHEXwEz1CjxFc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ab80ee4-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7ab8cfaa-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 43"], ["email", "user.43@example.com"], ["password_digest", "$2a$04$aYXfDymY2jTvsbaBCmqDleDbRNmhy7PNkaeHyrIxZXHP39rNbUNiO"], ["created_at", "2015-06-03 00:14:19.904461"], ["updated_at", "2015-06-03 00:14:19.904461"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.910289"], ["updated_at", "2015-06-03 00:14:19.910289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7abb4ad2-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7abbfc70-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 44"], ["email", "user.44@example.com"], ["password_digest", "$2a$04$WgZ8SLTxH3wI2cG95Z9QaO4dIPFz6ucVkE9ZSBxLNroFY3r5bNmWy"], ["created_at", "2015-06-03 00:14:19.919975"], ["updated_at", "2015-06-03 00:14:19.919975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.923840"], ["updated_at", "2015-06-03 00:14:19.923840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7abd787a-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7abe19a6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7abd787a-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7abe19a6-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.927535"], ["updated_at", "2015-06-03 00:14:19.927535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '7abe19a6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "7abe19a6-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.933162"], ["updated_at", "2015-06-03 00:14:19.933162"], ["token", "7UkIRaoAPzNJxYhNUzqNsqLYAnZtq5I6Nwg5nX6MogE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7abd787a-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7abe19a6-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 45"], ["email", "user.45@example.com"], ["password_digest", "$2a$04$vKW7sVjdCanlrrtAtqj32.R8bnAIXlj7iNxYIjC04pErnd8bTnEuK"], ["created_at", "2015-06-03 00:14:19.943909"], ["updated_at", "2015-06-03 00:14:19.943909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.948213"], ["updated_at", "2015-06-03 00:14:19.948213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ac11e4e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7ac1cf38-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ac11e4e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7ac1cf38-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.954130"], ["updated_at", "2015-06-03 00:14:19.954130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '7ac1cf38-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "7ac1cf38-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.959044"], ["updated_at", "2015-06-03 00:14:19.959044"], ["token", "zG87Sm7Jr9iAVJu1MuokpfjGZiVdgYsN_qfOyvK89NM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ac11e4e-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7ac1cf38-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 46"], ["email", "user.46@example.com"], ["password_digest", "$2a$04$ta8d3Qg23A4uaHtg.mE.A.9.L/VH8.3SuR0OerVSrkQjeBIARZeg."], ["created_at", "2015-06-03 00:14:19.968093"], ["updated_at", "2015-06-03 00:14:19.968093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.972267"], ["updated_at", "2015-06-03 00:14:19.972267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ac4d638-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7ac5719c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ac4d638-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7ac5719c-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.975340"], ["updated_at", "2015-06-03 00:14:19.975340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '7ac5719c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "7ac5719c-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.979822"], ["updated_at", "2015-06-03 00:14:19.979822"], ["token", "U66YqqdS3eNVZKndpKSevXEFuSv6D_PUZFnY9xHYuZk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ac4d638-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7ac5719c-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 47"], ["email", "user.47@example.com"], ["password_digest", "$2a$04$.jgNKo8.te2NH2UfzrIuc.zrQJ9..qEtfI0qXeobvNmAK7NwBX.y."], ["created_at", "2015-06-03 00:14:19.989913"], ["updated_at", "2015-06-03 00:14:19.989913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:19.995145"], ["updated_at", "2015-06-03 00:14:19.995145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ac8291e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7ac8f6aa-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ac8291e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7ac8f6aa-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:19.998488"], ["updated_at", "2015-06-03 00:14:19.998488"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '7ac8f6aa-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "7ac8f6aa-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.005783"], ["updated_at", "2015-06-03 00:14:20.005783"], ["token", "4EIB9Ev6QE3Ku777FO50nb2u2RUaCXVPzOhOCPx_WIM"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ac8291e-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7ac8f6aa-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 48"], ["email", "user.48@example.com"], ["password_digest", "$2a$04$4QWQViWbHC4eG10zfTPYP.oZznH6Oui/IvL03Ki/Fur3A4.IXauyq"], ["created_at", "2015-06-03 00:14:20.015605"], ["updated_at", "2015-06-03 00:14:20.015605"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.020638"], ["updated_at", "2015-06-03 00:14:20.020638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7acc193e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7accd22a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7acc193e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7accd22a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.024298"], ["updated_at", "2015-06-03 00:14:20.024298"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7acc193e-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7accd22a-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 49"], ["email", "user.49@example.com"], ["password_digest", "$2a$04$qeo5tu8CZnZCakd.gv.7X.D.jrjIJ6qz5oJ00wb.S8gfXlfEncaRW"], ["created_at", "2015-06-03 00:14:20.034874"], ["updated_at", "2015-06-03 00:14:20.034874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.040240"], ["updated_at", "2015-06-03 00:14:20.040240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7acf1a62-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7acfd2fe-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7acf1a62-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7acfd2fe-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.043530"], ["updated_at", "2015-06-03 00:14:20.043530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '7acfd2fe-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "7acfd2fe-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.048751"], ["updated_at", "2015-06-03 00:14:20.048751"], ["token", "8x5hQ8uRRBlHg1fOx9Lie-KJ5cZaRqPx1tWp0ejrOuQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7acf1a62-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7acfd2fe-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 50"], ["email", "user.50@example.com"], ["password_digest", "$2a$04$qD3UiNrGZqVNoULyb.rYR.VNtuHSnGugs0RBtbJJvyk5c7F3Qu5sO"], ["created_at", "2015-06-03 00:14:20.060561"], ["updated_at", "2015-06-03 00:14:20.060561"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.065995"], ["updated_at", "2015-06-03 00:14:20.065995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad2f592-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7ad3bf0e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ad2f592-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7ad3bf0e-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.068989"], ["updated_at", "2015-06-03 00:14:20.068989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '7ad3bf0e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "7ad3bf0e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.073804"], ["updated_at", "2015-06-03 00:14:20.073804"], ["token", "y9sBx82Tj8u_9WkRKcuXiDMDDv5tzSTIhbJxZVX5-Dk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ad2f592-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7ad3bf0e-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 51"], ["email", "user.51@example.com"], ["password_digest", "$2a$04$HblkH.WSIlR2ENk4skCswOL3zKRfJHdn2kX0sHDKitvAw3xAuFEmO"], ["created_at", "2015-06-03 00:14:20.084939"], ["updated_at", "2015-06-03 00:14:20.084939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.090360"], ["updated_at", "2015-06-03 00:14:20.090360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ad6acdc-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7ad7a948-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ad6acdc-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7ad7a948-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.095199"], ["updated_at", "2015-06-03 00:14:20.095199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '7ad7a948-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "7ad7a948-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.100600"], ["updated_at", "2015-06-03 00:14:20.100600"], ["token", "QpGg4SYiRFxWNxt8SO7AvKOc6ixoLum99QVujGEQ1KU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ad6acdc-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7ad7a948-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 52"], ["email", "user.52@example.com"], ["password_digest", "$2a$04$6WYIXk2yGo.Yx7pAS0f/quY.I3L0Mj6pW.Si0omwDI7hz21IlDeE."], ["created_at", "2015-06-03 00:14:20.111324"], ["updated_at", "2015-06-03 00:14:20.111324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.116239"], ["updated_at", "2015-06-03 00:14:20.116239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7adab520-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7adb80a4-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7adab520-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7adb80a4-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.120356"], ["updated_at", "2015-06-03 00:14:20.120356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '7adb80a4-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "7adb80a4-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.125235"], ["updated_at", "2015-06-03 00:14:20.125235"], ["token", "j5N49pDRUN1zGoY8LB3s3Yhnl3gtpuwptsoDYZgevqE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7adab520-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7adb80a4-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 53"], ["email", "user.53@example.com"], ["password_digest", "$2a$04$8Hg/NuVDGB2JORwMi4YynuxAdJ6e9WjTHA3JggbjPXxut1AoRqAVi"], ["created_at", "2015-06-03 00:14:20.133549"], ["updated_at", "2015-06-03 00:14:20.133549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.138511"], ["updated_at", "2015-06-03 00:14:20.138511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ade174c-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7adecfe8-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ade174c-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7adecfe8-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.142877"], ["updated_at", "2015-06-03 00:14:20.142877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7ade174c-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7adecfe8-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.179442"], ["updated_at", "2015-06-03 00:14:20.179442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '7ae50d22-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "7ae50d22-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.183084"], ["updated_at", "2015-06-03 00:14:20.183084"], ["token", "ME0chqBTQaT8PhD8M7wlXUf1uLjqRmR_dx5FMUQ-juM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7ae50d22-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '7ae50d22-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7ae50d22-0985-11e5-8fc5-a8667f0424ae"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '7ae50d22-0985-11e5-8fc5-a8667f0424ae') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.203905"], ["updated_at", "2015-06-03 00:14:20.203905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7ae8cd68-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "7ae8cd68-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.208277"], ["updated_at", "2015-06-03 00:14:20.208277"], ["token", "a04EnAim091ANXgktagMBsbFFt7DaEtoOt05T7SFQR4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.215440"], ["updated_at", "2015-06-03 00:14:20.215440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.247097"], ["updated_at", "2015-06-03 00:14:20.247097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.267024"], ["updated_at", "2015-06-03 00:14:20.267024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.291796"], ["updated_at", "2015-06-03 00:14:20.291796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.298159"], ["updated_at", "2015-06-03 00:14:20.298159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7af72c28-0985-11e5-8fc5-a8667f0424ad"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 54"], ["email", "user.54@example.com"], ["password_digest", "$2a$04$f8OFbuMwOU5PYQkIKTyVW.18RBQtJQXP0a.BitynL.lE5MVxEsIaO"], ["created_at", "2015-06-03 00:14:20.308319"], ["updated_at", "2015-06-03 00:14:20.308319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.314587"], ["updated_at", "2015-06-03 00:14:20.314587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7af8c3e4-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7af9b5e2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7af8c3e4-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7af9b5e2-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.318772"], ["updated_at", "2015-06-03 00:14:20.318772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7af8c3e4-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7af9b5e2-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7af8c3e4-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7af9b5e2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7af9b5e2-0985-11e5-8fc5-a8667f0424ae"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7af8c3e4-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7af9b5e2-0985-11e5-8fc5-a8667f0424ae') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 55"], ["email", "user.55@example.com"], ["password_digest", "$2a$04$G2zOorPVXiF4Lg1Y9rB1PeWl0SlTbE6z6JK6ujoymWNztIA6QoVj."], ["created_at", "2015-06-03 00:14:20.346643"], ["updated_at", "2015-06-03 00:14:20.346643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 56"], ["email", "user.56@example.com"], ["password_digest", "$2a$04$wH4xDQMy6mjT6UyHNIl9QOiZG9ZAu1fmXE9TfKIkwaeIjYvRnCXmq"], ["created_at", "2015-06-03 00:14:20.354190"], ["updated_at", "2015-06-03 00:14:20.354190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.358644"], ["updated_at", "2015-06-03 00:14:20.358644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7affbbae-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b00735a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7affbbae-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b00735a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.362399"], ["updated_at", "2015-06-03 00:14:20.362399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7afe92d8-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b00735a-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 57"], ["email", "user.57@example.com"], ["password_digest", "$2a$04$xkrfeklJaND4GNCPDkAtRuYdmbFEWVA8FF/lqIHOfkbD9D/qajkMe"], ["created_at", "2015-06-03 00:14:20.371838"], ["updated_at", "2015-06-03 00:14:20.371838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 58"], ["email", "user.58@example.com"], ["password_digest", "$2a$04$wGgxRoe8vVVFGK74Jy5Rz.Wp8l9XSoaTPa93iQPKhA47LpFaeNGGy"], ["created_at", "2015-06-03 00:14:20.376981"], ["updated_at", "2015-06-03 00:14:20.376981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.381129"], ["updated_at", "2015-06-03 00:14:20.381129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b0332d4-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b03d6bc-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b0332d4-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b03d6bc-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.385018"], ["updated_at", "2015-06-03 00:14:20.385018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b026d7c-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b03d6bc-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 59"], ["email", "user.59@example.com"], ["password_digest", "$2a$04$LObCfFemldCjrFFu4D7GkeRlhWFn82FP4FJm8GylUr.T2A0uNNkPy"], ["created_at", "2015-06-03 00:14:20.394188"], ["updated_at", "2015-06-03 00:14:20.394188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 60"], ["email", "user.60@example.com"], ["password_digest", "$2a$04$KlwEnBrexP23krZjnBjlxu0sBBoiDfnzLEVS9G3.SrUObTMle/xR2"], ["created_at", "2015-06-03 00:14:20.399777"], ["updated_at", "2015-06-03 00:14:20.399777"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.406021"], ["updated_at", "2015-06-03 00:14:20.406021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b06cae8-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b07a1f2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b06cae8-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b07a1f2-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.409274"], ["updated_at", "2015-06-03 00:14:20.409274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7b05d80e-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b07a1f2-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 61"], ["email", "user.61@example.com"], ["password_digest", "$2a$04$v/LU4BiJXNwVzlOXcKUgfeXozlFhkQ97IGHCCWu4t45dKUce5.cfK"], ["created_at", "2015-06-03 00:14:20.418213"], ["updated_at", "2015-06-03 00:14:20.418213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 62"], ["email", "user.62@example.com"], ["password_digest", "$2a$04$xcO9YpUwxm7oL..kf.vnVuu.Tgvo/dQkMUSdvtIZbBId0o3b8ITle"], ["created_at", "2015-06-03 00:14:20.423944"], ["updated_at", "2015-06-03 00:14:20.423944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.9ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.438527"], ["updated_at", "2015-06-03 00:14:20.438527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b0a5e24-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b0ca30a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b0a5e24-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b0ca30a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.441993"], ["updated_at", "2015-06-03 00:14:20.441993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (1.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 63"], ["email", "user.63@example.com"], ["password_digest", "$2a$04$fFjgq94c0Q.Eqt4NaTkOseCpwTOMAeUQ4zcMhawumrsRQNniFHqNy"], ["created_at", "2015-06-03 00:14:20.449127"], ["updated_at", "2015-06-03 00:14:20.449127"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.459746"], ["updated_at", "2015-06-03 00:14:20.459746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7b0e768a-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b0fe48e-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 64"], ["email", "user.64@example.com"], ["password_digest", "$2a$04$NV9NC6/wBia7pDo5Ip7oiOW009u0hmAU4mJ9XeR/i6YEAu./G55au"], ["created_at", "2015-06-03 00:14:20.471244"], ["updated_at", "2015-06-03 00:14:20.471244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.478454"], ["updated_at", "2015-06-03 00:14:20.478454"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b11aa26-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b12c064-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b11aa26-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b12c064-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.484931"], ["updated_at", "2015-06-03 00:14:20.484931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b11aa26-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b12c064-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 65"], ["email", "user.65@example.com"], ["password_digest", "$2a$04$9ou5CBeGAm3BD4dNhtHfLumh6hvoqxQDqlQQrIUwWjgShnbtlrQLC"], ["created_at", "2015-06-03 00:14:20.495339"], ["updated_at", "2015-06-03 00:14:20.495339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.499915"], ["updated_at", "2015-06-03 00:14:20.499915"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b154546-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b162b96-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b154546-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b162b96-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.505474"], ["updated_at", "2015-06-03 00:14:20.505474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b154546-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b162b96-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 66"], ["email", "user.66@example.com"], ["password_digest", "$2a$04$mLmFVhP4.TdgGVkgDMGo/u.CQAV5pgnkETHjVQg88DDI1gclSDNzO"], ["created_at", "2015-06-03 00:14:20.515745"], ["updated_at", "2015-06-03 00:14:20.515745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.520920"], ["updated_at", "2015-06-03 00:14:20.520920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b18752c-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b193110-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b18752c-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b193110-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.524927"], ["updated_at", "2015-06-03 00:14:20.524927"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7b18752c-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b193110-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 67"], ["email", "user.67@example.com"], ["password_digest", "$2a$04$7YwE5pyJK9QT.6DUtedet.iDKgEL99NTbjQagyVi40x3.L7Dvvcnq"], ["created_at", "2015-06-03 00:14:20.535942"], ["updated_at", "2015-06-03 00:14:20.535942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.540886"], ["updated_at", "2015-06-03 00:14:20.540886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b1b801e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b1c44a4-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b1b801e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b1c44a4-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.544845"], ["updated_at", "2015-06-03 00:14:20.544845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 68"], ["email", "user.68@example.com"], ["password_digest", "$2a$04$vHgx1K4iqIC8TqVGhCktBezqXFzBQQ2f7M2gEkq6RPcPvSZx33J9y"], ["created_at", "2015-06-03 00:14:20.555307"], ["updated_at", "2015-06-03 00:14:20.555307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.560837"], ["updated_at", "2015-06-03 00:14:20.560837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b1e724c-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b1f4d8e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b1e724c-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b1f4d8e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.564756"], ["updated_at", "2015-06-03 00:14:20.564756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7b1e724c-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b1f4d8e-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 69"], ["email", "user.69@example.com"], ["password_digest", "$2a$04$CfH06MYC5VHul8Xo.h/8wu1ZgkJtAOgxkZGLWa.DGgPioJQLcXAsi"], ["created_at", "2015-06-03 00:14:20.574360"], ["updated_at", "2015-06-03 00:14:20.574360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.579816"], ["updated_at", "2015-06-03 00:14:20.579816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b2159c6-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b2230ee-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b2159c6-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b2230ee-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.584521"], ["updated_at", "2015-06-03 00:14:20.584521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 70"], ["email", "user.70@example.com"], ["password_digest", "$2a$04$dKtelzv4kmVamd7jSp8Mj.qWhBeUA4SBmC.dA58iBt/TtpVHxoGmS"], ["created_at", "2015-06-03 00:14:20.591040"], ["updated_at", "2015-06-03 00:14:20.591040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b23e8b2-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b2230ee-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b23e8b2-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b2230ee-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.594554"], ["updated_at", "2015-06-03 00:14:20.594554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b2159c6-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b2230ee-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 71"], ["email", "user.71@example.com"], ["password_digest", "$2a$04$0czoq.Bkk9MMLNsDUffM7u9a8aGWrCFfJ553dcAqIBr6VDY8wfN5q"], ["created_at", "2015-06-03 00:14:20.605807"], ["updated_at", "2015-06-03 00:14:20.605807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.609861"], ["updated_at", "2015-06-03 00:14:20.609861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b261da8-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b26c06e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b261da8-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b26c06e-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.614026"], ["updated_at", "2015-06-03 00:14:20.614026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 72"], ["email", "user.72@example.com"], ["password_digest", "$2a$04$6U5oDFNCmp5yycOavBti2ezqkxAtlAu1licwoXyDe9GmNyxyJwGFu"], ["created_at", "2015-06-03 00:14:20.620911"], ["updated_at", "2015-06-03 00:14:20.620911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b286ac2-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b26c06e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b286ac2-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b26c06e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.624529"], ["updated_at", "2015-06-03 00:14:20.624529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b261da8-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b26c06e-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 73"], ["email", "user.73@example.com"], ["password_digest", "$2a$04$MaFgwgtxq/fJnOT0wjl5YO2yuJPDa.xk.o28sCyrw5n2mTh2r3TYS"], ["created_at", "2015-06-03 00:14:20.633574"], ["updated_at", "2015-06-03 00:14:20.633574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.638573"], ["updated_at", "2015-06-03 00:14:20.638573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b2a5fe4-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b2b2492-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b2a5fe4-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b2b2492-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.642163"], ["updated_at", "2015-06-03 00:14:20.642163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 74"], ["email", "user.74@example.com"], ["password_digest", "$2a$04$8mtiXjHImQH1xthjAV7OguAt2udyvqobSTfjMaNPWnQOn8/rCvRkW"], ["created_at", "2015-06-03 00:14:20.647519"], ["updated_at", "2015-06-03 00:14:20.647519"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b2c8148-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b2b2492-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b2c8148-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b2b2492-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.653509"], ["updated_at", "2015-06-03 00:14:20.653509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7b2a5fe4-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b2b2492-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 75"], ["email", "user.75@example.com"], ["password_digest", "$2a$04$hI5.Y7pAScMo3TDLN9p.pe4ZXsiz5almrdZXJzxaCIhoi/n693MdG"], ["created_at", "2015-06-03 00:14:20.662855"], ["updated_at", "2015-06-03 00:14:20.662855"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.669982"], ["updated_at", "2015-06-03 00:14:20.669982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b2ee924-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b2ff4f4-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b2ee924-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b2ff4f4-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.673951"], ["updated_at", "2015-06-03 00:14:20.673951"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 76"], ["email", "user.76@example.com"], ["password_digest", "$2a$04$HlOLXV8wuMzdZVjjv2adn.wxw5FgQ2WpKTWY4tlA5fs9MF5amDM6a"], ["created_at", "2015-06-03 00:14:20.681344"], ["updated_at", "2015-06-03 00:14:20.681344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b31aa7e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b2ff4f4-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b31aa7e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b2ff4f4-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.685208"], ["updated_at", "2015-06-03 00:14:20.685208"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 77"], ["email", "user.77@example.com"], ["password_digest", "$2a$04$ENjGWH4UAcib.ZHFasXsNeoq6zoBhNg2VGiumQpWwqB09dz10sFXW"], ["created_at", "2015-06-03 00:14:20.694619"], ["updated_at", "2015-06-03 00:14:20.694619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.699979"], ["updated_at", "2015-06-03 00:14:20.699979"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b33ba9e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b34b278-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b33ba9e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b34b278-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.706410"], ["updated_at", "2015-06-03 00:14:20.706410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b33ba9e-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b34b278-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 78"], ["email", "user.78@example.com"], ["password_digest", "$2a$04$PySZ0eZGrJipzJYmeduBX.5m1vUeqrDm41bvxAfj.q5imbQPsHBHy"], ["created_at", "2015-06-03 00:14:20.714977"], ["updated_at", "2015-06-03 00:14:20.714977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.719366"], ["updated_at", "2015-06-03 00:14:20.719366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b36caea-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b377166-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b36caea-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b377166-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.723322"], ["updated_at", "2015-06-03 00:14:20.723322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b36caea-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b377166-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 79"], ["email", "user.79@example.com"], ["password_digest", "$2a$04$uhp./h.5OWTOIgEVFhttou2jDIP/cTTf6Se8w1T7gTlj7X2uXnCaO"], ["created_at", "2015-06-03 00:14:20.732189"], ["updated_at", "2015-06-03 00:14:20.732189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.737939"], ["updated_at", "2015-06-03 00:14:20.737939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b396f20-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b3a5296-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b396f20-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b3a5296-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.741791"], ["updated_at", "2015-06-03 00:14:20.741791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7b396f20-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b3a5296-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 80"], ["email", "user.80@example.com"], ["password_digest", "$2a$04$dVv8U3HqEYejxePcoSUOe./QBtoRiSAFSTHbQYWVOD3IaRK4/Cq2a"], ["created_at", "2015-06-03 00:14:20.750376"], ["updated_at", "2015-06-03 00:14:20.750376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.757586"], ["updated_at", "2015-06-03 00:14:20.757586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b3c6072-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b3d5b44-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b3c6072-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b3d5b44-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.761788"], ["updated_at", "2015-06-03 00:14:20.761788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 81"], ["email", "user.81@example.com"], ["password_digest", "$2a$04$BAy6EbVJRiLV65KWQGyXwueED/sW5DOj3SWx5znx//F2rETNTpcnu"], ["created_at", "2015-06-03 00:14:20.769771"], ["updated_at", "2015-06-03 00:14:20.769771"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.774075"], ["updated_at", "2015-06-03 00:14:20.774075"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b3f264a-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b3fe116-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b3f264a-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b3fe116-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.778901"], ["updated_at", "2015-06-03 00:14:20.778901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7b3f264a-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b3fe116-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 82"], ["email", "user.82@example.com"], ["password_digest", "$2a$04$wTHxdfsM4SmhqXXsnhdbUuq5QJzaTvW3KoBUu7p8XTSjsQU6KxS1K"], ["created_at", "2015-06-03 00:14:20.788565"], ["updated_at", "2015-06-03 00:14:20.788565"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:20.790883"], ["user_id", "7b42109e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.791755"], ["updated_at", "2015-06-03 00:14:20.791755"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.796821"], ["updated_at", "2015-06-03 00:14:20.796821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b42109e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b43498c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b42109e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b43498c-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.801943"], ["updated_at", "2015-06-03 00:14:20.801943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 17:14:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 83"], ["email", "user.83@example.com"], ["password_digest", "$2a$04$BegdLshlMCKRotFyh.XtkuDKSgBQ3B2Tm.HDGJx7rb2.LYaPe79wy"], ["created_at", "2015-06-03 00:14:20.818050"], ["updated_at", "2015-06-03 00:14:20.818050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:20.819893"], ["user_id", "7b46819c-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.821003"], ["updated_at", "2015-06-03 00:14:20.821003"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.826096"], ["updated_at", "2015-06-03 00:14:20.826096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b46819c-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b47bd3c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b46819c-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b47bd3c-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.829273"], ["updated_at", "2015-06-03 00:14:20.829273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 17:14:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:20.833372') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "900f468f-6479-4ae7-bfee-d261d4a8e037"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:20.835265"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:20.836123"], ["id", "900f468f-6479-4ae7-bfee-d261d4a8e037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b46819c-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameter: organization  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 84"], ["email", "user.84@example.com"], ["password_digest", "$2a$04$3O5raqq2LXpQA7C6ti7ZDei/vMYUH4NQJSZi8dX8WF4CulmHPXns."], ["created_at", "2015-06-03 00:14:20.858611"], ["updated_at", "2015-06-03 00:14:20.858611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:20.860294"], ["user_id", "7b4cb54e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.860871"], ["updated_at", "2015-06-03 00:14:20.860871"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.865064"], ["updated_at", "2015-06-03 00:14:20.865064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b4cb54e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b4dbc82-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b4cb54e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b4dbc82-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.871058"], ["updated_at", "2015-06-03 00:14:20.871058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 17:14:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:20.874030') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "99ba0d02-62df-4b39-a93c-ca6e53edd3d5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:20.875346"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:20.876103"], ["id", "99ba0d02-62df-4b39-a93c-ca6e53edd3d5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b4cb54e-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.882491"], ["updated_at", "2015-06-03 00:14:20.882491"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b4cb54e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b505ef6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b4cb54e-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["organization_id", "7b505ef6-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.886035"], ["updated_at", "2015-06-03 00:14:20.886035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.6ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 85"], ["email", "user.85@example.com"], ["password_digest", "$2a$04$JDbiV3lIFjdEiLrzb6AZHuAcbXoMkHXPHARgnsQGJaCI7N40yKnam"], ["created_at", "2015-06-03 00:14:20.895378"], ["updated_at", "2015-06-03 00:14:20.895378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:20.896960"], ["user_id", "7b524dd8-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.897580"], ["updated_at", "2015-06-03 00:14:20.897580"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.903400"], ["updated_at", "2015-06-03 00:14:20.903400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b524dd8-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b5389e6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b524dd8-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b5389e6-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.907816"], ["updated_at", "2015-06-03 00:14:20.907816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-43" for 127.0.0.1 at 2015-06-02 17:14:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-43", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:20.911465') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d4573160-ad3a-4fbc-af54-3b8fb5129074"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:20.912806"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:20.913564"], ["id", "d4573160-ad3a-4fbc-af54-3b8fb5129074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-43"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b524dd8-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7b524dd8-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b5389e6-0985-11e5-8fc5-a8667f0424ad"]] Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 86"], ["email", "user.86@example.com"], ["password_digest", "$2a$04$s..uzLxrOOvJFM0Nb5Ua/udFLanoRgrjtoz53iCckldeyIRFUAaNC"], ["created_at", "2015-06-03 00:14:20.929568"], ["updated_at", "2015-06-03 00:14:20.929568"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:20.932739"], ["user_id", "7b57858c-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.934067"], ["updated_at", "2015-06-03 00:14:20.934067"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.941620"], ["updated_at", "2015-06-03 00:14:20.941620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b57858c-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b596adc-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b57858c-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b596adc-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.945976"], ["updated_at", "2015-06-03 00:14:20.945976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 17:14:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 87"], ["email", "user.87@example.com"], ["password_digest", "$2a$04$hrILBT1w3en1b.u6h4QyPe9il5Qr4I3BAxB1IyStVGdHLTsGiGBUC"], ["created_at", "2015-06-03 00:14:20.955766"], ["updated_at", "2015-06-03 00:14:20.955766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:20.957360"], ["user_id", "7b5b842a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.957915"], ["updated_at", "2015-06-03 00:14:20.957915"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.962582"], ["updated_at", "2015-06-03 00:14:20.962582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b5b842a-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b5c8eba-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b5b842a-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b5c8eba-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:20.966148"], ["updated_at", "2015-06-03 00:14:20.966148"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-45" for 127.0.0.1 at 2015-06-02 17:14:20 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-45", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:20.972207') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "99d6e358-e9da-41f3-baab-ef0840080bdf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:20.973515"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:20.974415"], ["id", "99d6e358-e9da-41f3-baab-ef0840080bdf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-45"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b5b842a-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b5b842a-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b5c8eba-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "7b5c8eba-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 88"], ["email", "user.88@example.com"], ["password_digest", "$2a$04$DmMEv2.96n6bVcuF9QEYqODA58c6wNTSRXaL4/qd7B6VuoNI2DNM."], ["created_at", "2015-06-03 00:14:20.991670"], ["updated_at", "2015-06-03 00:14:20.991670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:20.993231"], ["user_id", "7b60ff04-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:20.993805"], ["updated_at", "2015-06-03 00:14:20.993805"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:20.998331"], ["updated_at", "2015-06-03 00:14:20.998331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b60ff04-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b620660-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b60ff04-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b620660-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.002291"], ["updated_at", "2015-06-03 00:14:21.002291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 89"], ["email", "user.89@example.com"], ["password_digest", "$2a$04$qkp99OlLyTUv2DpHrnZnpuntdTuJvXNT.hOf2ka0Vh4jHF0s0dL2i"], ["created_at", "2015-06-03 00:14:21.010927"], ["updated_at", "2015-06-03 00:14:21.010927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.012458"], ["user_id", "7b63ee26-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.013039"], ["updated_at", "2015-06-03 00:14:21.013039"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.018362"], ["updated_at", "2015-06-03 00:14:21.018362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b63ee26-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b651490-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b63ee26-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b651490-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.021754"], ["updated_at", "2015-06-03 00:14:21.021754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 17:14:21 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 90"], ["email", "user.90@example.com"], ["password_digest", "$2a$04$KuVLDGkSZsgkzHhtXc.H2eeALMaV3j1z51IIUx81VQJ34erd6S.dW"], ["created_at", "2015-06-03 00:14:21.030492"], ["updated_at", "2015-06-03 00:14:21.030492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.032733"], ["user_id", "7b66f7e2-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.034248"], ["updated_at", "2015-06-03 00:14:21.034248"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.041997"], ["updated_at", "2015-06-03 00:14:21.041997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b66f7e2-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b68b118-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b66f7e2-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b68b118-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.045345"], ["updated_at", "2015-06-03 00:14:21.045345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 17:14:21 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 91"], ["email", "user.91@example.com"], ["password_digest", "$2a$04$B5ptgFVCIcGNY5KtaRo74.vn7spquZFsY/TWMSi6pcBWuFojC3.ou"], ["created_at", "2015-06-03 00:14:21.055743"], ["updated_at", "2015-06-03 00:14:21.055743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.057434"], ["user_id", "7b6ac84a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.057997"], ["updated_at", "2015-06-03 00:14:21.057997"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.062331"], ["updated_at", "2015-06-03 00:14:21.062331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b6ac84a-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b6bc830-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b6ac84a-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b6bc830-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.065478"], ["updated_at", "2015-06-03 00:14:21.065478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-49" for 127.0.0.1 at 2015-06-02 17:14:21 -0700  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 92"], ["email", "user.92@example.com"], ["password_digest", "$2a$04$a6.nn0KYmwrlgKm3s.Qah.GxJ.qj9yCiDcU3krKuGBFBUwce/nIyK"], ["created_at", "2015-06-03 00:14:21.074438"], ["updated_at", "2015-06-03 00:14:21.074438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.076674"], ["user_id", "7b6dac18-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.077334"], ["updated_at", "2015-06-03 00:14:21.077334"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.082479"], ["updated_at", "2015-06-03 00:14:21.082479"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b6dac18-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b6edf7a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b6dac18-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b6edf7a-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.088638"], ["updated_at", "2015-06-03 00:14:21.088638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 93"], ["email", "user.93@example.com"], ["password_digest", "$2a$04$2OFimUa/e2tFUR.CvCJEi.lJY3Ye3KJtSwKVRJ9Mlyp.l25Hr3CU2"], ["created_at", "2015-06-03 00:14:21.097650"], ["updated_at", "2015-06-03 00:14:21.097650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.099631"], ["user_id", "7b712fbe-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.100259"], ["updated_at", "2015-06-03 00:14:21.100259"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.104666"], ["updated_at", "2015-06-03 00:14:21.104666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b712fbe-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b724930-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b712fbe-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b724930-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.108264"], ["updated_at", "2015-06-03 00:14:21.108264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/7b724930-0985-11e5-8fc5-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"7b724930-0985-11e5-8fc5-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:21.111117') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e8b19d6c-2d6c-474c-b6d5-bccc02c08abd"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:21.112411"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:21.113137"], ["id", "e8b19d6c-2d6c-474c-b6d5-bccc02c08abd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7b724930-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b712fbe-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b712fbe-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b724930-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7b724930-0985-11e5-8fc5-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 94"], ["email", "user.94@example.com"], ["password_digest", "$2a$04$GJPgqdickgbCS3maaGgioek.y8yDe7pEXIFuW7o0BFn6OMOCK6MyW"], ["created_at", "2015-06-03 00:14:21.130959"], ["updated_at", "2015-06-03 00:14:21.130959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.133369"], ["user_id", "7b764f6c-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.134497"], ["updated_at", "2015-06-03 00:14:21.134497"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.141322"], ["updated_at", "2015-06-03 00:14:21.141322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b764f6c-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b77d3c8-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b764f6c-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b77d3c8-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.144499"], ["updated_at", "2015-06-03 00:14:21.144499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/7b77d3c8-0985-11e5-8fc5-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"7b77d3c8-0985-11e5-8fc5-a8667f0424ad", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:21.147255') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bf7ca80c-6fd3-4275-9c06-36ef632f8520"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:21.148551"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:21.149310"], ["id", "bf7ca80c-6fd3-4275-9c06-36ef632f8520"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7b77d3c8-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b764f6c-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b764f6c-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b77d3c8-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7b77d3c8-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-03 00:14:21.162470"], ["id", "7b77d3c8-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.2ms | ActiveRecord: 3.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 95"], ["email", "user.95@example.com"], ["password_digest", "$2a$04$hRaoJDNJWwqJ0169OP2oROinUL37W33bfWqVampT3nk3xsKRpxLeS"], ["created_at", "2015-06-03 00:14:21.179618"], ["updated_at", "2015-06-03 00:14:21.179618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.181862"], ["user_id", "7b7dba54-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.183056"], ["updated_at", "2015-06-03 00:14:21.183056"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.189401"], ["updated_at", "2015-06-03 00:14:21.189401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b7dba54-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b7f2be6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b7dba54-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b7f2be6-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.193321"], ["updated_at", "2015-06-03 00:14:21.193321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 96"], ["email", "user.96@example.com"], ["password_digest", "$2a$04$rHkH.OBQO6QykB8jhECln.Ypjx6RBtk8ZPNokhn5eCxMr8fO/c15W"], ["created_at", "2015-06-03 00:14:21.198961"], ["updated_at", "2015-06-03 00:14:21.198961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.204838"], ["updated_at", "2015-06-03 00:14:21.204838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b80a354-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b81908e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b80a354-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b81908e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.209612"], ["updated_at", "2015-06-03 00:14:21.209612"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:21.212893') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "32ed25e8-afaa-49c0-822f-80d84d31604c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:21.214265"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:21.214953"], ["id", "32ed25e8-afaa-49c0-822f-80d84d31604c"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b7dba54-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "7b7dba54-0985-11e5-8fc5-a8667f0424ad"]] Completed 200 OK in 12ms (Views: 2.6ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 97"], ["email", "user.97@example.com"], ["password_digest", "$2a$04$RFpogpdFkRkSy7FCdYH.3ObO4ezHeYx9EybDQ9mTpHPwnmxIv3hMu"], ["created_at", "2015-06-03 00:14:21.231596"], ["updated_at", "2015-06-03 00:14:21.231596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.233205"], ["user_id", "7b8599e0-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.234043"], ["updated_at", "2015-06-03 00:14:21.234043"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.238948"], ["updated_at", "2015-06-03 00:14:21.238948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b8599e0-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b86ba0a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b8599e0-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b86ba0a-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.242487"], ["updated_at", "2015-06-03 00:14:21.242487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 98"], ["email", "user.98@example.com"], ["password_digest", "$2a$04$EpiZ6hXtKKLyJnl9zZExquN90C1Si79gGd0yy5AIVs.Is4iYS6qsu"], ["created_at", "2015-06-03 00:14:21.247999"], ["updated_at", "2015-06-03 00:14:21.247999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.251834"], ["updated_at", "2015-06-03 00:14:21.251834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b881a4e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b88c2a0-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b881a4e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b88c2a0-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.256595"], ["updated_at", "2015-06-03 00:14:21.256595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 99"], ["email", "user.99@example.com"], ["password_digest", "$2a$04$hLS5ZUxp6vWob5MfUgj9Uees4qHsStNWzeMu1Vy7n8Hebz/iUn0gS"], ["created_at", "2015-06-03 00:14:21.267181"], ["updated_at", "2015-06-03 00:14:21.267181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.270908"], ["user_id", "7b8b4084-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.271535"], ["updated_at", "2015-06-03 00:14:21.271535"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.275849"], ["updated_at", "2015-06-03 00:14:21.275849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b8b4084-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b8c5a14-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b8b4084-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b8c5a14-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.278729"], ["updated_at", "2015-06-03 00:14:21.278729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 100"], ["email", "user.100@example.com"], ["password_digest", "$2a$04$ix0bpMutUOx2iHnOw3REK.zsV0Gm1MsrXZNu5bDqSG2Maf7o8g75K"], ["created_at", "2015-06-03 00:14:21.287509"], ["updated_at", "2015-06-03 00:14:21.287509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.289297"], ["user_id", "7b8e227c-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.290007"], ["updated_at", "2015-06-03 00:14:21.290007"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.293992"], ["updated_at", "2015-06-03 00:14:21.293992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b8e227c-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b8f1e02-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b8e227c-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b8f1e02-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.296806"], ["updated_at", "2015-06-03 00:14:21.296806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-58" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-58", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:21.299834') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f1eaa6a2-8ccd-420f-aa65-137a7053b37b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:21.301099"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:21.301818"], ["id", "f1eaa6a2-8ccd-420f-aa65-137a7053b37b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-58"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b8e227c-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b8e227c-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b8f1e02-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7b8f1e02-0985-11e5-8fc5-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 101"], ["email", "user.101@example.com"], ["password_digest", "$2a$04$rqlPz4yzTrnLG5vDREmVJ.uxCAIW0IBM3ogzFo/9bczT51wo14iuC"], ["created_at", "2015-06-03 00:14:21.315766"], ["updated_at", "2015-06-03 00:14:21.315766"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.319319"], ["user_id", "7b927ee4-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.320020"], ["updated_at", "2015-06-03 00:14:21.320020"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.324043"], ["updated_at", "2015-06-03 00:14:21.324043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b927ee4-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b93b6b0-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b927ee4-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b93b6b0-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.327167"], ["updated_at", "2015-06-03 00:14:21.327167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-59" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-59", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:21.329669') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "41b721d7-d986-4a7d-aa8c-d8bd46fcc6ec"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:21.330894"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:21.331552"], ["id", "41b721d7-d986-4a7d-aa8c-d8bd46fcc6ec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-59"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b927ee4-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b927ee4-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b93b6b0-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7b93b6b0-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-03 00:14:21.340892"], ["id", "7b93b6b0-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 102"], ["email", "user.102@example.com"], ["password_digest", "$2a$04$uxIGAdGzE2j3Sgr2hoDNxulcKlRaDlyY0Fzt6P4yrzlVfjoIle3li"], ["created_at", "2015-06-03 00:14:21.349917"], ["updated_at", "2015-06-03 00:14:21.349917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.351936"], ["user_id", "7b97ac8e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.352614"], ["updated_at", "2015-06-03 00:14:21.352614"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.357202"], ["updated_at", "2015-06-03 00:14:21.357202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b97ac8e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b98c560-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b97ac8e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b98c560-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.360190"], ["updated_at", "2015-06-03 00:14:21.360190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7b98c560-0985-11e5-8fc5-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"7b98c560-0985-11e5-8fc5-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:21.362723') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ab81e2e1-2456-4836-a40e-56fe6e2f665f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:21.363907"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:21.364586"], ["id", "ab81e2e1-2456-4836-a40e-56fe6e2f665f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7b98c560-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b97ac8e-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7b97ac8e-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7b98c560-0985-11e5-8fc5-a8667f0424ad"]] Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 103"], ["email", "user.103@example.com"], ["password_digest", "$2a$04$YkGCZftAJLRR7Hb.tgMDaekk8eaIh53Qs50IR/toe8IjmkOo.7q1i"], ["created_at", "2015-06-03 00:14:21.378486"], ["updated_at", "2015-06-03 00:14:21.378486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.380879"], ["user_id", "7b9c10a8-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.381792"], ["updated_at", "2015-06-03 00:14:21.381792"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.387949"], ["updated_at", "2015-06-03 00:14:21.387949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b9c10a8-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7b9d7718-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b9c10a8-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7b9d7718-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.390987"], ["updated_at", "2015-06-03 00:14:21.390987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 104"], ["email", "user.104@example.com"], ["password_digest", "$2a$04$oCwr6w2DPlydMv3JbKTZTe1uFirA2GKUk6FZFX.24h228hxB5/dyK"], ["created_at", "2015-06-03 00:14:21.399816"], ["updated_at", "2015-06-03 00:14:21.399816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.401361"], ["user_id", "7b9f46a6-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.401906"], ["updated_at", "2015-06-03 00:14:21.401906"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.406156"], ["updated_at", "2015-06-03 00:14:21.406156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b9f46a6-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7ba04506-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b9f46a6-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7ba04506-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.409360"], ["updated_at", "2015-06-03 00:14:21.409360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/7ba04506-0985-11e5-8fc5-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"7ba04506-0985-11e5-8fc5-a8667f0424ad", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:21.411788') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "80c7903b-f2c9-476e-9673-0f8dace2d921"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:21.413176"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:21.413874"], ["id", "80c7903b-f2c9-476e-9673-0f8dace2d921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7ba04506-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b9f46a6-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b9f46a6-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7ba04506-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "7ba04506-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 7ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 105"], ["email", "user.105@example.com"], ["password_digest", "$2a$04$xfGS9bUq9MiZ7noubWSzK.s5TPmCWiIksQuMWPm0U6IQAiADU3cgW"], ["created_at", "2015-06-03 00:14:21.426240"], ["updated_at", "2015-06-03 00:14:21.426240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:21.428491"], ["user_id", "7ba35868-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.429108"], ["updated_at", "2015-06-03 00:14:21.429108"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.437301"], ["updated_at", "2015-06-03 00:14:21.437301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ba35868-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7ba50a14-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ba35868-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7ba50a14-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.440941"], ["updated_at", "2015-06-03 00:14:21.440941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 17:14:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (2.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.651179"], ["updated_at", "2015-06-03 00:14:21.651179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7bc5ad5a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7bc5ad5a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.655849"], ["updated_at", "2015-06-03 00:14:21.655849"], ["token", "7pAYxp8tXhhGl9doSa12HN9u76UjsEj9FyHHaybxdjk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.7ms) Clubhouse::Mailer#invitation: processed outbound mail in 51.4ms Sent mail to john@example.com (11.1ms) Date: Tue, 02 Jun 2015 17:14:21 -0700 From: from@example.com To: john@example.com Message-ID: <556e46ddaf765_e3ec3fe2988602081565d@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/7pAYxp8tXhhGl9doSa12HN9u76UjsEj9FyHHaybxdjk?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.731253"], ["updated_at", "2015-06-03 00:14:21.731253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7bd1df12-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7bd1df12-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.736968"], ["updated_at", "2015-06-03 00:14:21.736968"], ["token", "7PfNW0w9oDFLazUVJoV1IWsV7QBSP2J2N3YcRB9suRI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (2.1ms) Date: Tue, 02 Jun 2015 17:14:21 -0700 From: from@example.com To: john@example.com Message-ID: <556e46ddb4cec_e3ec3fe298860208157fd@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/7PfNW0w9oDFLazUVJoV1IWsV7QBSP2J2N3YcRB9suRI?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.748102"], ["updated_at", "2015-06-03 00:14:21.748102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7bd46f5c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7bd46f5c-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.752672"], ["updated_at", "2015-06-03 00:14:21.752672"], ["token", "uHmB1CdU0m94zy5elW6n4E58iv3XaObgjZUaJ2tRvj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.0ms Sent mail to john@example.com (1.9ms) Date: Tue, 02 Jun 2015 17:14:21 -0700 From: from@example.com To: john@example.com Message-ID: <556e46ddb88ae_e3ec3fe298860208158b6@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/uHmB1CdU0m94zy5elW6n4E58iv3XaObgjZUaJ2tRvj0?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.762848"], ["updated_at", "2015-06-03 00:14:21.762848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '7bd6b118-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "7bd6b118-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.767220"], ["updated_at", "2015-06-03 00:14:21.767220"], ["token", "yCytr-cL8hztb0VfwJ9_ou9wNDAr1cHvk4Zmn2KeLj8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.4ms) Date: Tue, 02 Jun 2015 17:14:21 -0700 From: from@example.com To: john@example.com Message-ID: <556e46ddbc8ec_e3ec3fe29886020815992@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/yCytr-cL8hztb0VfwJ9_ou9wNDAr1cHvk4Zmn2KeLj8?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 106"], ["email", "user.106@example.com"], ["password_digest", "$2a$04$cq17sN/4H34cLZo.8BtqjO3IcCN2gBY2mxyBpP1F3N9gCp3HpX/OC"], ["created_at", "2015-06-03 00:14:21.780804"], ["updated_at", "2015-06-03 00:14:21.780804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.784861"], ["updated_at", "2015-06-03 00:14:21.784861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 107"], ["email", "user.107@example.com"], ["password_digest", "$2a$04$aKE24C.ZwyilFURIdOjOyOffZj/tQwq0HgcqDyqd3.K.mAd4Ety3m"], ["created_at", "2015-06-03 00:14:21.791644"], ["updated_at", "2015-06-03 00:14:21.791644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.795984"], ["updated_at", "2015-06-03 00:14:21.795984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7bdb1be0-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7bdbc4fa-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 108"], ["email", "user.108@example.com"], ["password_digest", "$2a$04$OoApZvJneOMtvIR11zUB6.trSZrS9TZL0QwERKXD7MW570U95bFCu"], ["created_at", "2015-06-03 00:14:21.804430"], ["updated_at", "2015-06-03 00:14:21.804430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.808529"], ["updated_at", "2015-06-03 00:14:21.808529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 109"], ["email", "user.109@example.com"], ["password_digest", "$2a$04$5GfnEecDXkqUDd94qoGHTOiNk8atX02O5DD7CCwmsrMcbOSlK.4qS"], ["created_at", "2015-06-03 00:14:21.816051"], ["updated_at", "2015-06-03 00:14:21.816051"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.822432"], ["updated_at", "2015-06-03 00:14:21.822432"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7bdeca6a-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7bdfc0dc-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 110"], ["email", "user.110@example.com"], ["password_digest", "$2a$04$J7oR6nEISoQSalXhGvEPduU3I51zh3t9WRl34NqyUz34uNmQZLjqK"], ["created_at", "2015-06-03 00:14:21.831823"], ["updated_at", "2015-06-03 00:14:21.831823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.836409"], ["updated_at", "2015-06-03 00:14:21.836409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7be131ba-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7be1e326-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 111"], ["email", "user.111@example.com"], ["password_digest", "$2a$04$CUGMjZws.r.2cQZ9OiKBaOumNj4iSD64ogkFEpW37u8Mh4IWJtYEW"], ["created_at", "2015-06-03 00:14:21.844336"], ["updated_at", "2015-06-03 00:14:21.844336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.848701"], ["updated_at", "2015-06-03 00:14:21.848701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7be31dae-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7be3c448-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7be31dae-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7be3c448-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.852236"], ["updated_at", "2015-06-03 00:14:21.852236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 112"], ["email", "user.112@example.com"], ["password_digest", "$2a$04$VLEtUd8F/7vfAj6NwrUnFuyu/CYPBH9wsNirB1oE0R3PqMmMDIhd2"], ["created_at", "2015-06-03 00:14:21.859539"], ["updated_at", "2015-06-03 00:14:21.859539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.864037"], ["updated_at", "2015-06-03 00:14:21.864037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7be57054-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7be61d6a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7be57054-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7be61d6a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.867510"], ["updated_at", "2015-06-03 00:14:21.867510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7be57054-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7be61d6a-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 113"], ["email", "user.113@example.com"], ["password_digest", "$2a$04$a0YEnSFfEvGl/f4IjUmMyuuTTFHFbtwrE5VYhqvEvu1FlCUBwqH3i"], ["created_at", "2015-06-03 00:14:21.877824"], ["updated_at", "2015-06-03 00:14:21.877824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.882875"], ["updated_at", "2015-06-03 00:14:21.882875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7be83c80-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7be90250-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7be83c80-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7be90250-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.886362"], ["updated_at", "2015-06-03 00:14:21.886362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 114"], ["email", "user.114@example.com"], ["password_digest", "$2a$04$UDKdXeKMbAGnARouvvE9oOENihMnOXL8yQodVGHKcmw.RfWkemjkC"], ["created_at", "2015-06-03 00:14:21.892794"], ["updated_at", "2015-06-03 00:14:21.892794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.896739"], ["updated_at", "2015-06-03 00:14:21.896739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bea81b6-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7beb1658-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7bea81b6-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7beb1658-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.899718"], ["updated_at", "2015-06-03 00:14:21.899718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7bea81b6-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7beb1658-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 115"], ["email", "user.115@example.com"], ["password_digest", "$2a$04$aL8SOXKbi2UX.585eT/4Tu/2MfMNYP/PbVHF6q0zXMKT0SxFIqRBG"], ["created_at", "2015-06-03 00:14:21.909343"], ["updated_at", "2015-06-03 00:14:21.909343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.913242"], ["updated_at", "2015-06-03 00:14:21.913242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bed04cc-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7bed9ae0-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7bed04cc-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7bed9ae0-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:21.916196"], ["updated_at", "2015-06-03 00:14:21.916196"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7bed04cc-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7bed9ae0-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 116"], ["email", "user.116@example.com"], ["password_digest", "$2a$04$IUYHLh/S58OD3.qRh83lSuRBb4qg41bRKd45oc3EJssAfxsJXSF1S"], ["created_at", "2015-06-03 00:14:21.927309"], ["updated_at", "2015-06-03 00:14:21.927309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.931744"], ["updated_at", "2015-06-03 00:14:21.931744"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7befc324-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7bf06fb8-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7befc324-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7bf06fb8-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.935504"], ["updated_at", "2015-06-03 00:14:21.935504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 117"], ["email", "user.117@example.com"], ["password_digest", "$2a$04$5Tqc5R6GigL.rbXdsG961.j35OJW8A1lymL//F0zT77oA05KGyGXO"], ["created_at", "2015-06-03 00:14:21.942037"], ["updated_at", "2015-06-03 00:14:21.942037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.946726"], ["updated_at", "2015-06-03 00:14:21.946726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bf203be-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7bf2b7b4-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bf203be-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7bf2b7b4-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.949641"], ["updated_at", "2015-06-03 00:14:21.949641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7bf203be-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7bf2b7b4-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 118"], ["email", "user.118@example.com"], ["password_digest", "$2a$04$pk9uzYLyXNDjXdofbDSsZuQRdM/o9wFAxarIC1nywKMgJ/4k/NR0q"], ["created_at", "2015-06-03 00:14:21.959681"], ["updated_at", "2015-06-03 00:14:21.959681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.963846"], ["updated_at", "2015-06-03 00:14:21.963846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bf4b4a6-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7bf5546a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bf4b4a6-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7bf5546a-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.966851"], ["updated_at", "2015-06-03 00:14:21.966851"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 119"], ["email", "user.119@example.com"], ["password_digest", "$2a$04$Z0JD64XBrYDOZAhKXLGLTutFZjsSlDwkhGh8MKTi.1KqHlVU4hBXy"], ["created_at", "2015-06-03 00:14:21.976435"], ["updated_at", "2015-06-03 00:14:21.976435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.980790"], ["updated_at", "2015-06-03 00:14:21.980790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bf745d6-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7bf7eaf4-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bf745d6-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7bf7eaf4-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:21.985431"], ["updated_at", "2015-06-03 00:14:21.985431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7bf745d6-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7bf7eaf4-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 120"], ["email", "user.120@example.com"], ["password_digest", "$2a$04$R2QTOYi4NysyqI/iMUjoKeBv4.cXRyYkPRY6E4xM6piy0eiySmjiC"], ["created_at", "2015-06-03 00:14:21.993994"], ["updated_at", "2015-06-03 00:14:21.993994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:21.997744"], ["updated_at", "2015-06-03 00:14:21.997744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bf9eff2-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7bfa7f3a-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bf9eff2-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7bfa7f3a-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.001121"], ["updated_at", "2015-06-03 00:14:22.001121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7bf9eff2-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7bfa7f3a-0985-11e5-8fc5-a8667f0424ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 121"], ["email", "user.121@example.com"], ["password_digest", "$2a$04$rdQCNCeMC68OWB2x3fSy2OHC2giCV/DsdWMMP29JpFsIddufefWCq"], ["created_at", "2015-06-03 00:14:22.010791"], ["updated_at", "2015-06-03 00:14:22.010791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 122"], ["email", "user.122@example.com"], ["password_digest", "$2a$04$9AMz/wNC1IVVXBVQCtYUBeI/PujADksq.Xx4hkuXs29//WiCt3Doa"], ["created_at", "2015-06-03 00:14:22.019581"], ["updated_at", "2015-06-03 00:14:22.019581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.021917"], ["user_id", "7bfdf048-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.022530"], ["updated_at", "2015-06-03 00:14:22.022530"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.028379"], ["updated_at", "2015-06-03 00:14:22.028379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bfdf048-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7bff33ea-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bfdf048-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7bff33ea-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.032441"], ["updated_at", "2015-06-03 00:14:22.032441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '7bff33ea-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "7bff33ea-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.037377"], ["updated_at", "2015-06-03 00:14:22.037377"], ["token", "RVVkL61fjizCSzNtHpA5rT0gKX0E8OxMlTqdpAF42Oc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 123"], ["email", "user.123@example.com"], ["password_digest", "$2a$04$hi3frigzxF1uLiI9VDqz2uLXtlfsXNGgd4pR.f4lYT6wNYf2p0Nmu"], ["created_at", "2015-06-03 00:14:22.043324"], ["updated_at", "2015-06-03 00:14:22.043324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.047266"], ["updated_at", "2015-06-03 00:14:22.047266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c0177c2-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c020dea-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7c0177c2-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c020dea-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.050009"], ["updated_at", "2015-06-03 00:14:22.050009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.056731') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "73b60048-f624-4225-841f-f5d1fd0c3aba"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.058556"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.059377"], ["id", "73b60048-f624-4225-841f-f5d1fd0c3aba"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7bfdf048-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7bfdf048-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7bff33ea-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "7bff33ea-0985-11e5-8fc5-a8667f0424ad"]] Completed 200 OK in 13ms (Views: 4.3ms | ActiveRecord: 1.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 124"], ["email", "user.124@example.com"], ["password_digest", "$2a$04$r8/YpIHzYdvzHTqDGjLFfeko6jvYJOaIrh3wpGFbrU1k7Xu9z4Y7O"], ["created_at", "2015-06-03 00:14:22.078562"], ["updated_at", "2015-06-03 00:14:22.078562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.080346"], ["user_id", "7c06dc30-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.080941"], ["updated_at", "2015-06-03 00:14:22.080941"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.086864"], ["updated_at", "2015-06-03 00:14:22.086864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c06dc30-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c081dca-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c06dc30-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c081dca-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.091077"], ["updated_at", "2015-06-03 00:14:22.091077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '7c081dca-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "7c081dca-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.095873"], ["updated_at", "2015-06-03 00:14:22.095873"], ["token", "hQaq9hxjLhi-d4NduNrJ9ALM_3hUPjG_lpyBdboW6tI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 125"], ["email", "user.125@example.com"], ["password_digest", "$2a$04$6VAjL54.NtM5NYjvV.xGLuybRhBhamNJ2Mm7DSfOPl8OMlVOEmIHm"], ["created_at", "2015-06-03 00:14:22.101773"], ["updated_at", "2015-06-03 00:14:22.101773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.105911"], ["updated_at", "2015-06-03 00:14:22.105911"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c0a67c4-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c0b0238-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7c0a67c4-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c0b0238-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.110376"], ["updated_at", "2015-06-03 00:14:22.110376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 126"], ["email", "user.126@example.com"], ["password_digest", "$2a$04$NxZyiyf7aiMZIMPIieljIO24V6wPl69LLnt.LPIvuibKrybgDQR4i"], ["created_at", "2015-06-03 00:14:22.121931"], ["updated_at", "2015-06-03 00:14:22.121931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.123804"], ["user_id", "7c0d7a36-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.124916"], ["updated_at", "2015-06-03 00:14:22.124916"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.131254"], ["updated_at", "2015-06-03 00:14:22.131254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c0d7a36-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c0ef1c2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c0d7a36-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c0ef1c2-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.135495"], ["updated_at", "2015-06-03 00:14:22.135495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '7c0ef1c2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "7c0ef1c2-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.140282"], ["updated_at", "2015-06-03 00:14:22.140282"], ["token", "siFW5_rf-1MtwLEdk5GlRmeaBDFvMSY4wli-jafSDRo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/7c105044-0985-11e5-8fc5-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"7c105044-0985-11e5-8fc5-a8667f0424ad", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.144268') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "105181b0-d628-4f02-94a3-c5a0e95e0b2b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.145941"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.146721"], ["id", "105181b0-d628-4f02-94a3-c5a0e95e0b2b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c105044-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c0d7a36-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c0ef1c2-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c0d7a36-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7c0ef1c2-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."id" != '7c105044-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_invitations"."organization_id" = '7c0ef1c2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:14:22.155159"], ["id", "7c105044-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 127"], ["email", "user.127@example.com"], ["password_digest", "$2a$04$Rxpzrg2XiKmB7a1S55IUKenU5eB4LTho7Lc0/p/A5i2073kIG3flm"], ["created_at", "2015-06-03 00:14:22.165753"], ["updated_at", "2015-06-03 00:14:22.165753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.167867"], ["user_id", "7c142728-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.169381"], ["updated_at", "2015-06-03 00:14:22.169381"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.174859"], ["updated_at", "2015-06-03 00:14:22.174859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c142728-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c158eb0-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c142728-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c158eb0-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.178205"], ["updated_at", "2015-06-03 00:14:22.178205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '7c158eb0-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "7c158eb0-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.182364"], ["updated_at", "2015-06-03 00:14:22.182364"], ["token", "E1B17kDAz7SJzkxLEaavKQ496uThYV06gJ_cYMhj0a0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 128"], ["email", "user.128@example.com"], ["password_digest", "$2a$04$06OBXFbTk3sKo4PsOzYK.eya0E2mTCRfz7fPK05VD26dOUTEtLMRq"], ["created_at", "2015-06-03 00:14:22.191479"], ["updated_at", "2015-06-03 00:14:22.191479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.193702"], ["user_id", "7c18195a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.194309"], ["updated_at", "2015-06-03 00:14:22.194309"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.198968"], ["updated_at", "2015-06-03 00:14:22.198968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c18195a-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c1935f6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c18195a-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c1935f6-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.202584"], ["updated_at", "2015-06-03 00:14:22.202584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '7c1935f6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "7c1935f6-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.207223"], ["updated_at", "2015-06-03 00:14:22.207223"], ["token", "6_2i3ST9lxXzMJESZc5Sfd7-E6GaM40uVB7ARWr0c30"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 129"], ["email", "user.129@example.com"], ["password_digest", "$2a$04$YGudqihe6NFhGFd10liF0e5tGU1H7QGBh.5.NggvwQmLiVVm7uYMi"], ["created_at", "2015-06-03 00:14:22.213033"], ["updated_at", "2015-06-03 00:14:22.213033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.217027"], ["updated_at", "2015-06-03 00:14:22.217027"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c1b5b2e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c1c0cd6-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7c1b5b2e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c1c0cd6-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.221741"], ["updated_at", "2015-06-03 00:14:22.221741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/7c1935f6-0985-11e5-8fc5-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"7c1935f6-0985-11e5-8fc5-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.224969') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "92af3779-d403-4279-9842-1e66b5701551"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.226352"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.227086"], ["id", "92af3779-d403-4279-9842-1e66b5701551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7c1935f6-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c18195a-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c18195a-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7c1935f6-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "7c1935f6-0985-11e5-8fc5-a8667f0424ad"]] Completed 200 OK in 9ms (Views: 1.3ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 130"], ["email", "user.130@example.com"], ["password_digest", "$2a$04$.DHsNthO7COdjVkhwYpesOW94iRNOMqBO7R1r7CK8rTFHYHAwDm2C"], ["created_at", "2015-06-03 00:14:22.240935"], ["updated_at", "2015-06-03 00:14:22.240935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.243011"], ["user_id", "7c1faecc-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.243616"], ["updated_at", "2015-06-03 00:14:22.243616"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.247574"], ["updated_at", "2015-06-03 00:14:22.247574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c1faecc-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c209dc8-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c1faecc-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c209dc8-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.250343"], ["updated_at", "2015-06-03 00:14:22.250343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '7c209dc8-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "7c209dc8-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.254500"], ["updated_at", "2015-06-03 00:14:22.254500"], ["token", "XUtznuAX6MW5j2LsD39JYnxV5qOHvjWDPfyepKqQr88"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 131"], ["email", "user.131@example.com"], ["password_digest", "$2a$04$9DMpKrzm6ylWjPP/iylJGu4O.Am714g1ZCE/IBgQlfUC6dWuIQcyy"], ["created_at", "2015-06-03 00:14:22.260549"], ["updated_at", "2015-06-03 00:14:22.260549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.264609"], ["updated_at", "2015-06-03 00:14:22.264609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c229d9e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c2337fe-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7c229d9e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c2337fe-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.268261"], ["updated_at", "2015-06-03 00:14:22.268261"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 132"], ["email", "user.132@example.com"], ["password_digest", "$2a$04$cBlyf9PUSnahLKT86BMojuigAdxsOBgMe6pnkNCyDHfLvHy8S/PU2"], ["created_at", "2015-06-03 00:14:22.278611"], ["updated_at", "2015-06-03 00:14:22.278611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.280387"], ["user_id", "7c256358-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.280967"], ["updated_at", "2015-06-03 00:14:22.280967"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.285838"], ["updated_at", "2015-06-03 00:14:22.285838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c256358-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c26a84e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c256358-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c26a84e-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.291012"], ["updated_at", "2015-06-03 00:14:22.291012"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '7c26a84e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "7c26a84e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.295989"], ["updated_at", "2015-06-03 00:14:22.295989"], ["token", "t33IL1m0-BstxUZtH2Q2Ys3wfTv9zWPzX5TR4GPJ41A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/7c2806bc-0985-11e5-8fc5-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"7c2806bc-0985-11e5-8fc5-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.298747') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dccc19e7-d721-4a72-9a16-a31a8f1eaa56"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.299965"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.300655"], ["id", "dccc19e7-d721-4a72-9a16-a31a8f1eaa56"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c2806bc-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c256358-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c26a84e-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c256358-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7c26a84e-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "7c2806bc-0985-11e5-8fc5-a8667f0424ad"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 133"], ["email", "user.133@example.com"], ["password_digest", "$2a$04$/.UcbRiMTaFhPTgI3XO4K.ZgYaB6v71k5VTfnUhHLv166PzPuZMfy"], ["created_at", "2015-06-03 00:14:22.312863"], ["updated_at", "2015-06-03 00:14:22.312863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.314373"], ["user_id", "7c2a97a6-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.314927"], ["updated_at", "2015-06-03 00:14:22.314927"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.318995"], ["updated_at", "2015-06-03 00:14:22.318995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c2a97a6-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c2b874c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c2a97a6-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c2b874c-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.323285"], ["updated_at", "2015-06-03 00:14:22.323285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '7c2b874c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "7c2b874c-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.328639"], ["updated_at", "2015-06-03 00:14:22.328639"], ["token", "Nt5vmSUD3qc_23hc9MgIzCFP4n_YAglRmYkSzTMNg6I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 134"], ["email", "user.134@example.com"], ["password_digest", "$2a$04$7hDR3RW780g9Nij3Jk2ZIeQJQ.PGCHn61k/Orea7QNpWCSxPvDfRu"], ["created_at", "2015-06-03 00:14:22.339923"], ["updated_at", "2015-06-03 00:14:22.339923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.342278"], ["user_id", "7c2ec9c0-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.343291"], ["updated_at", "2015-06-03 00:14:22.343291"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.348079"], ["updated_at", "2015-06-03 00:14:22.348079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c2ec9c0-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c2ff692-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c2ec9c0-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c2ff692-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.352058"], ["updated_at", "2015-06-03 00:14:22.352058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '7c2ff692-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "7c2ff692-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.357491"], ["updated_at", "2015-06-03 00:14:22.357491"], ["token", "gi21cwzy-S6LTI6pPyQNhRAEJsUBDeejEfPd0umxNuw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 135"], ["email", "user.135@example.com"], ["password_digest", "$2a$04$oba91Gp8RnTJMvOZ0S56keQnots/V7OAquch6Whz7zlW4wDUXiLVO"], ["created_at", "2015-06-03 00:14:22.368747"], ["updated_at", "2015-06-03 00:14:22.368747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.370436"], ["user_id", "7c332132-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.371309"], ["updated_at", "2015-06-03 00:14:22.371309"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.376079"], ["updated_at", "2015-06-03 00:14:22.376079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c332132-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c343c3e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c332132-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c343c3e-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.379215"], ["updated_at", "2015-06-03 00:14:22.379215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '7c343c3e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "7c343c3e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.385582"], ["updated_at", "2015-06-03 00:14:22.385582"], ["token", "g1aUvu0v8KiaC8v1FqnEad_NnCkJUMxkVoOdN7QvA_s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7c343c3e-0985-11e5-8fc5-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"7c343c3e-0985-11e5-8fc5-a8667f0424ad", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.389219') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e002ceb6-8d92-4c48-8b70-eb58140093e8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.390619"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.391421"], ["id", "e002ceb6-8d92-4c48-8b70-eb58140093e8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7c343c3e-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c332132-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c332132-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7c343c3e-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '7c343c3e-0985-11e5-8fc5-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 24ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 136"], ["email", "user.136@example.com"], ["password_digest", "$2a$04$6tJpxik62iwN/Sa4kDITh.s6P1.yzH4VXiE.hlQb5/2yZ2oX56hpa"], ["created_at", "2015-06-03 00:14:22.418918"], ["updated_at", "2015-06-03 00:14:22.418918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.420880"], ["user_id", "7c3ad1ac-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.421455"], ["updated_at", "2015-06-03 00:14:22.421455"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.426385"], ["updated_at", "2015-06-03 00:14:22.426385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c3ad1ac-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c3beb28-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c3ad1ac-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c3beb28-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.429863"], ["updated_at", "2015-06-03 00:14:22.429863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '7c3beb28-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "7c3beb28-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.434278"], ["updated_at", "2015-06-03 00:14:22.434278"], ["token", "TdGWiCdMS2X7X1qg6BgDIgDKLqD0b_FfrGJcyXFyzGM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7c3beb28-0985-11e5-8fc5-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"7c3beb28-0985-11e5-8fc5-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.438175') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7c31363e-59cf-45e5-8188-bd92b52e0a49"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.439532"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.440308"], ["id", "7c31363e-59cf-45e5-8188-bd92b52e0a49"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7c3beb28-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c3ad1ac-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c3ad1ac-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7c3beb28-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (4.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7c3beb28-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "7c3beb28-0985-11e5-8fc5-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.457441"], ["updated_at", "2015-06-03 00:14:22.457441"], ["token", "TZmhp5AJagcEazhTY0miJUgNAQlaJwW25VTvrGDeyGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9828cb9c-d7be-472b-8118-f602ed958fb6) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c40ce2c-0985-11e5-8fc5-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c40ce2c-0985-11e5-8fc5-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [9828cb9c-d7be-472b-8118-f602ed958fb6] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c40ce2c-0985-11e5-8fc5-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [9828cb9c-d7be-472b-8118-f602ed958fb6] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c3beb28-0985-11e5-8fc5-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [9828cb9c-d7be-472b-8118-f602ed958fb6] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [9828cb9c-d7be-472b-8118-f602ed958fb6] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [9828cb9c-d7be-472b-8118-f602ed958fb6] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [9828cb9c-d7be-472b-8118-f602ed958fb6] Date: Tue, 02 Jun 2015 17:14:22 -0700 From: from@example.com To: email@example.com Message-ID: <556e46de79b56_e3ec3fe29886020816094@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/TZmhp5AJagcEazhTY0miJUgNAQlaJwW25VTvrGDeyGs?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9828cb9c-d7be-472b-8118-f602ed958fb6] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.88ms Completed 201 Created in 62ms (Views: 0.7ms | ActiveRecord: 7.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 137"], ["email", "user.137@example.com"], ["password_digest", "$2a$04$Q2nlCuiDNEhNQxSkJuPeI.94jWF3I9pvlO10.shhmSr9q/jMfrzii"], ["created_at", "2015-06-03 00:14:22.507306"], ["updated_at", "2015-06-03 00:14:22.507306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.509480"], ["user_id", "7c484b8e-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.510065"], ["updated_at", "2015-06-03 00:14:22.510065"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.514133"], ["updated_at", "2015-06-03 00:14:22.514133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c484b8e-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c494b4c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c484b8e-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c494b4c-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.517486"], ["updated_at", "2015-06-03 00:14:22.517486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '7c494b4c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "7c494b4c-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.522714"], ["updated_at", "2015-06-03 00:14:22.522714"], ["token", "WSKFk79RpbRDWAmwJXS-uaSm86_R847lM22Kgx_HGiM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7c494b4c-0985-11e5-8fc5-a8667f0424ad/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"7c494b4c-0985-11e5-8fc5-a8667f0424ad", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.528093') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b3c0eb4e-d669-4918-88e7-60ce7ac00910"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.530453"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.531848"], ["id", "b3c0eb4e-d669-4918-88e7-60ce7ac00910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7c494b4c-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c484b8e-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c484b8e-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7c494b4c-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7c494b4c-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "7c494b4c-0985-11e5-8fc5-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.541636"], ["updated_at", "2015-06-03 00:14:22.541636"], ["token", "j7CRcigsup7mB4VfTlrfHPXSZI-Baji8zc1N1hPTzog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: deda5814-d032-4354-a604-59de8727f42f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c4d8c66-0985-11e5-8fc5-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c4d8c66-0985-11e5-8fc5-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [deda5814-d032-4354-a604-59de8727f42f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c4d8c66-0985-11e5-8fc5-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [deda5814-d032-4354-a604-59de8727f42f] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c494b4c-0985-11e5-8fc5-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [deda5814-d032-4354-a604-59de8727f42f] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [deda5814-d032-4354-a604-59de8727f42f] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [deda5814-d032-4354-a604-59de8727f42f] Sent mail to email@example.com (1.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [deda5814-d032-4354-a604-59de8727f42f] Date: Tue, 02 Jun 2015 17:14:22 -0700 From: from@example.com To: email@example.com Message-ID: <556e46de85f5f_e3ec3fe298860208161a8@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/j7CRcigsup7mB4VfTlrfHPXSZI-Baji8zc1N1hPTzog?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [deda5814-d032-4354-a604-59de8727f42f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.72ms Completed 201 Created in 23ms (Views: 1.1ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 138"], ["email", "user.138@example.com"], ["password_digest", "$2a$04$JNsTVDEkznFCW33CVOO7QO.Y0raBo26cGg1URliGTYJkQVGGsgzXa"], ["created_at", "2015-06-03 00:14:22.559420"], ["updated_at", "2015-06-03 00:14:22.559420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.561025"], ["user_id", "7c5037f4-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.561624"], ["updated_at", "2015-06-03 00:14:22.561624"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.566634"], ["updated_at", "2015-06-03 00:14:22.566634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c5037f4-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c516142-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c5037f4-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c516142-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.571484"], ["updated_at", "2015-06-03 00:14:22.571484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '7c516142-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "7c516142-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.577655"], ["updated_at", "2015-06-03 00:14:22.577655"], ["token", "M2bGULjm0YDeDwtxh6UJar-dn-zlxKWY90PlE2DCzns"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 139"], ["email", "user.139@example.com"], ["password_digest", "$2a$04$kIrBTzltuhhSwX/4wAlcGexXbYGaQzhkpRQQjiwMs9VfCJIW0/ckK"], ["created_at", "2015-06-03 00:14:22.589302"], ["updated_at", "2015-06-03 00:14:22.589302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.591312"], ["user_id", "7c54d20a-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.591914"], ["updated_at", "2015-06-03 00:14:22.591914"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.596248"], ["updated_at", "2015-06-03 00:14:22.596248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c54d20a-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c55d6d2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c54d20a-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c55d6d2-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.600502"], ["updated_at", "2015-06-03 00:14:22.600502"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '7c55d6d2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "7c55d6d2-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.606436"], ["updated_at", "2015-06-03 00:14:22.606436"], ["token", "wtHKnLilFL2CcyWbZ9ds3guT_GsrwfWuEgLmoYkVTCE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.609645') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3c50bf88-1cb7-46d1-a7f9-9ac7daecf88d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.611079"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.611820"], ["id", "3c50bf88-1cb7-46d1-a7f9-9ac7daecf88d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c54d20a-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c54d20a-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7c55d6d2-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '7c55d6d2-0985-11e5-8fc5-a8667f0424ad') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 140"], ["email", "user.140@example.com"], ["password_digest", "$2a$04$vrxwwjM.QfX7zgBXb7n/kO4nv98jGl9kI2a3HknRxeZr4jYUOY7J6"], ["created_at", "2015-06-03 00:14:22.627937"], ["updated_at", "2015-06-03 00:14:22.627937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.630183"], ["user_id", "7c5ab436-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.630787"], ["updated_at", "2015-06-03 00:14:22.630787"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.635951"], ["updated_at", "2015-06-03 00:14:22.635951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c5ab436-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c5be748-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c5ab436-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c5be748-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.639037"], ["updated_at", "2015-06-03 00:14:22.639037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '7c5be748-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "7c5be748-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.644056"], ["updated_at", "2015-06-03 00:14:22.644056"], ["token", "Tz1GYopq5pUsvjZbJOxOz3Rk7vmX_OOpnN-c6TK4mvM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.647120') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "238e03c7-58cf-44a6-acae-e4329d961733"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.648365"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.649081"], ["id", "238e03c7-58cf-44a6-acae-e4329d961733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c5ab436-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c5ab436-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7c5be748-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7c5be748-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "7c5be748-0985-11e5-8fc5-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.657266"], ["updated_at", "2015-06-03 00:14:22.657266"], ["token", "4uDZV6ZP9yqEMwdm6gzXdUnn01Cmcg6j6x7_8U1Bs-Q"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 149c8b7a-9f10-41e9-bf3d-a7fb50b5cfb9) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c5f34de-0985-11e5-8fc5-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c5f34de-0985-11e5-8fc5-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [149c8b7a-9f10-41e9-bf3d-a7fb50b5cfb9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c5f34de-0985-11e5-8fc5-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [149c8b7a-9f10-41e9-bf3d-a7fb50b5cfb9] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c5be748-0985-11e5-8fc5-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [149c8b7a-9f10-41e9-bf3d-a7fb50b5cfb9] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [149c8b7a-9f10-41e9-bf3d-a7fb50b5cfb9] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [149c8b7a-9f10-41e9-bf3d-a7fb50b5cfb9] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [149c8b7a-9f10-41e9-bf3d-a7fb50b5cfb9] Date: Tue, 02 Jun 2015 17:14:22 -0700 From: from@example.com To: email@example.com Message-ID: <556e46dea22a3_e3ec3fe298860208162c9@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/4uDZV6ZP9yqEMwdm6gzXdUnn01Cmcg6j6x7_8U1Bs-Q?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [149c8b7a-9f10-41e9-bf3d-a7fb50b5cfb9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.7ms Completed 201 Created in 19ms (Views: 0.7ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 141"], ["email", "user.141@example.com"], ["password_digest", "$2a$04$Qinq9em4yw.0pHRuoArp4OXxs9knw2TYfIVi7r229RIDHMTDSUGgm"], ["created_at", "2015-06-03 00:14:22.672117"], ["updated_at", "2015-06-03 00:14:22.672117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.674193"], ["user_id", "7c616fb0-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.674869"], ["updated_at", "2015-06-03 00:14:22.674869"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.681982"], ["updated_at", "2015-06-03 00:14:22.681982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c616fb0-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c62ea48-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c616fb0-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c62ea48-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.685277"], ["updated_at", "2015-06-03 00:14:22.685277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '7c62ea48-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "7c62ea48-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.689764"], ["updated_at", "2015-06-03 00:14:22.689764"], ["token", "yKkqyRj-KnxX_gKtFltJhPmcpSDjNpZ3a3upkvYF6lk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.694189') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b93fcaac-821e-42c9-84fb-e07f91fc5fb1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.695512"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.696238"], ["id", "b93fcaac-821e-42c9-84fb-e07f91fc5fb1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c616fb0-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c616fb0-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7c62ea48-0985-11e5-8fc5-a8667f0424ad"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7c62ea48-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "7c62ea48-0985-11e5-8fc5-a8667f0424ad"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.703772"], ["updated_at", "2015-06-03 00:14:22.703772"], ["token", "SVMdLJEfQpoxeGO8Q-2qqvh9ZE2naREO8YvzP-SmrpM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 010e301e-f5cd-405b-b650-8347a8294e51) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c6640bc-0985-11e5-8fc5-a8667f0424ad [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c6640bc-0985-11e5-8fc5-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [010e301e-f5cd-405b-b650-8347a8294e51] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7c6640bc-0985-11e5-8fc5-a8667f0424ad [ActiveJob] [ActionMailer::DeliveryJob] [010e301e-f5cd-405b-b650-8347a8294e51] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c62ea48-0985-11e5-8fc5-a8667f0424ad"]] [ActiveJob] [ActionMailer::DeliveryJob] [010e301e-f5cd-405b-b650-8347a8294e51] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [010e301e-f5cd-405b-b650-8347a8294e51] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [010e301e-f5cd-405b-b650-8347a8294e51] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [010e301e-f5cd-405b-b650-8347a8294e51] Date: Tue, 02 Jun 2015 17:14:22 -0700 From: from@example.com To: email@example.com Message-ID: <556e46dead6aa_e3ec3fe2988602081634a@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/SVMdLJEfQpoxeGO8Q-2qqvh9ZE2naREO8YvzP-SmrpM?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [010e301e-f5cd-405b-b650-8347a8294e51] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.03ms Completed 201 Created in 18ms (Views: 0.7ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 142"], ["email", "user.142@example.com"], ["password_digest", "$2a$04$N5dAFe/mDOq/zcHZqnBa7eOVX87WQ83qeqF8T66DvQYdTLmHdMqSm"], ["created_at", "2015-06-03 00:14:22.723130"], ["updated_at", "2015-06-03 00:14:22.723130"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.727144"], ["user_id", "7c694d98-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.729349"], ["updated_at", "2015-06-03 00:14:22.729349"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.734919"], ["updated_at", "2015-06-03 00:14:22.734919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c694d98-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c6b0480-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c694d98-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c6b0480-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.739307"], ["updated_at", "2015-06-03 00:14:22.739307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '7c6b0480-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "7c6b0480-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.744659"], ["updated_at", "2015-06-03 00:14:22.744659"], ["token", "AZ1PFs_pYFr7v88McniI98kto8uMQuRhU1-PIvJ9THE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/7c6c7d42-0985-11e5-8fc5-a8667f0424ad" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"7c6c7d42-0985-11e5-8fc5-a8667f0424ad", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:14:22.747833') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e4f183d3-961d-485e-bc85-b23fe7346489"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:14:22.749183"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:14:22.749892"], ["id", "e4f183d3-961d-485e-bc85-b23fe7346489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7c6c7d42-0985-11e5-8fc5-a8667f0424ad"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c694d98-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c6b0480-0985-11e5-8fc5-a8667f0424ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c694d98-0985-11e5-8fc5-a8667f0424ad' LIMIT 1 [["organization_id", "7c6b0480-0985-11e5-8fc5-a8667f0424ad"]] Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 143"], ["email", "user.143@example.com"], ["password_digest", "$2a$04$/U.7J7sNPf50lK5vevf3/OU9v0ck5N7n1KtqrKIARjzqOB45aXI7C"], ["created_at", "2015-06-03 00:14:22.764176"], ["updated_at", "2015-06-03 00:14:22.764176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:14:22.766493"], ["user_id", "7c6f8410-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.767215"], ["updated_at", "2015-06-03 00:14:22.767215"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:14:22.771487"], ["updated_at", "2015-06-03 00:14:22.771487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c6f8410-0985-11e5-8fc5-a8667f0424ad' AND "clubhouse_memberships"."organization_id" = '7c709288-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c6f8410-0985-11e5-8fc5-a8667f0424ad"], ["organization_id", "7c709288-0985-11e5-8fc5-a8667f0424ad"], ["admin", "t"], ["created_at", "2015-06-03 00:14:22.776080"], ["updated_at", "2015-06-03 00:14:22.776080"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '7c709288-0985-11e5-8fc5-a8667f0424ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "7c709288-0985-11e5-8fc5-a8667f0424ad"], ["created_at", "2015-06-03 00:14:22.784003"], ["updated_at", "2015-06-03 00:14:22.784003"], ["token", "k98jW_g_lG2QguLqMjE2GxAeH624DGcM6r-yOO-m4OA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 17:14:22 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$Ye9QEHk8gda97PsFlO0oX.bB.5V0G4CZgfS0qzeqUXMjDWic4G9ya"], ["created_at", "2015-06-03 00:18:53.916614"], ["updated_at", "2015-06-03 00:18:53.916614"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (4.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:53.952659"], ["user_id", "ea0ef1a7-ccbf-4236-85c5-b07350c7feb0"], ["created_at", "2015-06-03 00:18:53.960069"], ["updated_at", "2015-06-03 00:18:53.960069"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:53.988096"], ["updated_at", "2015-06-03 00:18:53.988096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea0ef1a7-ccbf-4236-85c5-b07350c7feb0' AND "clubhouse_memberships"."organization_id" = '1f422cc3-0780-4234-9877-daf9b17e79ee') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea0ef1a7-ccbf-4236-85c5-b07350c7feb0"], ["organization_id", "1f422cc3-0780-4234-9877-daf9b17e79ee"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.002392"], ["updated_at", "2015-06-03 00:18:54.002392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '1f422cc3-0780-4234-9877-daf9b17e79ee') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "1f422cc3-0780-4234-9877-daf9b17e79ee"], ["created_at", "2015-06-03 00:18:54.014782"], ["updated_at", "2015-06-03 00:18:54.014782"], ["token", "L4fzZnb3mCcyxv5f_O82gyD7FKkXoJC65KKaSF2JLmE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/fd1e36ff-690c-4355-b330-72983624b034" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"fd1e36ff-690c-4355-b330-72983624b034", "invitation"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:54.044845') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e20092fe-4ed9-4063-8214-c7e14af5a040"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:54.058827"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:54.060909"], ["id", "e20092fe-4ed9-4063-8214-c7e14af5a040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "fd1e36ff-690c-4355-b330-72983624b034"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ea0ef1a7-ccbf-4236-85c5-b07350c7feb0"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1f422cc3-0780-4234-9877-daf9b17e79ee"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea0ef1a7-ccbf-4236-85c5-b07350c7feb0' LIMIT 1 [["organization_id", "1f422cc3-0780-4234-9877-daf9b17e79ee"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "fd1e36ff-690c-4355-b330-72983624b034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 49ms (ActiveRecord: 3.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$y0N8RAL2t.5fzZPVTGM2cecVwc.73RlYdK4vD8XK/7oR/Bf2ip0R."], ["created_at", "2015-06-03 00:18:54.103924"], ["updated_at", "2015-06-03 00:18:54.103924"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:54.106751"], ["user_id", "5091ad06-af1c-48a2-af39-aa95c6b9a96c"], ["created_at", "2015-06-03 00:18:54.107773"], ["updated_at", "2015-06-03 00:18:54.107773"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.114400"], ["updated_at", "2015-06-03 00:18:54.114400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5091ad06-af1c-48a2-af39-aa95c6b9a96c' AND "clubhouse_memberships"."organization_id" = 'aedad191-5c14-440e-ba4b-f2e421aafcd1') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5091ad06-af1c-48a2-af39-aa95c6b9a96c"], ["organization_id", "aedad191-5c14-440e-ba4b-f2e421aafcd1"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.118802"], ["updated_at", "2015-06-03 00:18:54.118802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'aedad191-5c14-440e-ba4b-f2e421aafcd1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "aedad191-5c14-440e-ba4b-f2e421aafcd1"], ["created_at", "2015-06-03 00:18:54.125034"], ["updated_at", "2015-06-03 00:18:54.125034"], ["token", "ohLf3HK93_1KTx-RsrDPQ1HG_lqsS27ZnCvfSQu-E_I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$vnyZS3mPxw6Zc2/jl6mydepwxnBXOHNYqHXTqjMSqlUWKQ2L6twDm"], ["created_at", "2015-06-03 00:18:54.138572"], ["updated_at", "2015-06-03 00:18:54.138572"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:54.141709"], ["user_id", "ca8a3307-4743-475f-a800-3c3190fca601"], ["created_at", "2015-06-03 00:18:54.143195"], ["updated_at", "2015-06-03 00:18:54.143195"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.149445"], ["updated_at", "2015-06-03 00:18:54.149445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ca8a3307-4743-475f-a800-3c3190fca601' AND "clubhouse_memberships"."organization_id" = 'f2eb982b-d196-4ed5-9db6-e4c893ac76b1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ca8a3307-4743-475f-a800-3c3190fca601"], ["organization_id", "f2eb982b-d196-4ed5-9db6-e4c893ac76b1"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.152882"], ["updated_at", "2015-06-03 00:18:54.152882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'f2eb982b-d196-4ed5-9db6-e4c893ac76b1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "f2eb982b-d196-4ed5-9db6-e4c893ac76b1"], ["created_at", "2015-06-03 00:18:54.157284"], ["updated_at", "2015-06-03 00:18:54.157284"], ["token", "8SkV7mHWN82AexXnavbXd3-JxJ3ftP6Oju5dbEdciGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/d064808d-4575-4a73-80d0-3da43122b425" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"d064808d-4575-4a73-80d0-3da43122b425", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:54.160742') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "eb1c2794-8ac0-4fdb-b1b1-9221c725506a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:54.162532"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:54.163556"], ["id", "eb1c2794-8ac0-4fdb-b1b1-9221c725506a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d064808d-4575-4a73-80d0-3da43122b425"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ca8a3307-4743-475f-a800-3c3190fca601"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f2eb982b-d196-4ed5-9db6-e4c893ac76b1"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ca8a3307-4743-475f-a800-3c3190fca601' LIMIT 1 [["organization_id", "f2eb982b-d196-4ed5-9db6-e4c893ac76b1"]] Completed 200 OK in 35ms (Views: 25.7ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$5f0sZ7HAV5Gac.UvK45Bvuuxmm495FYrVIlHm68ggQHmzSl3owoBy"], ["created_at", "2015-06-03 00:18:54.207197"], ["updated_at", "2015-06-03 00:18:54.207197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:54.209538"], ["user_id", "c79c0ced-a61f-4d4c-a842-eacb65186502"], ["created_at", "2015-06-03 00:18:54.210302"], ["updated_at", "2015-06-03 00:18:54.210302"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.214794"], ["updated_at", "2015-06-03 00:18:54.214794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c79c0ced-a61f-4d4c-a842-eacb65186502' AND "clubhouse_memberships"."organization_id" = 'e5ad7c71-48cd-47a5-9709-72498c9e99de') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c79c0ced-a61f-4d4c-a842-eacb65186502"], ["organization_id", "e5ad7c71-48cd-47a5-9709-72498c9e99de"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.219236"], ["updated_at", "2015-06-03 00:18:54.219236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'e5ad7c71-48cd-47a5-9709-72498c9e99de') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "e5ad7c71-48cd-47a5-9709-72498c9e99de"], ["created_at", "2015-06-03 00:18:54.223772"], ["updated_at", "2015-06-03 00:18:54.223772"], ["token", "_CjmsNrE157QNdaioKZo7fyiiQ3yi02DT9m85ocG2AM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$kCHcmFF4LFHtho/do/0.ruJvF3lQuQmLmARRWkkacGEqLYqedidD6"], ["created_at", "2015-06-03 00:18:54.234401"], ["updated_at", "2015-06-03 00:18:54.234401"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:54.237293"], ["user_id", "caeb29ea-8140-461a-bd4d-2747f99eebe5"], ["created_at", "2015-06-03 00:18:54.238100"], ["updated_at", "2015-06-03 00:18:54.238100"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.244916"], ["updated_at", "2015-06-03 00:18:54.244916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'caeb29ea-8140-461a-bd4d-2747f99eebe5' AND "clubhouse_memberships"."organization_id" = '9b4a5e78-d07b-430f-abee-ef1777edb2e2') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "caeb29ea-8140-461a-bd4d-2747f99eebe5"], ["organization_id", "9b4a5e78-d07b-430f-abee-ef1777edb2e2"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.249358"], ["updated_at", "2015-06-03 00:18:54.249358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '9b4a5e78-d07b-430f-abee-ef1777edb2e2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "9b4a5e78-d07b-430f-abee-ef1777edb2e2"], ["created_at", "2015-06-03 00:18:54.255097"], ["updated_at", "2015-06-03 00:18:54.255097"], ["token", "FSB_eFyQBlZyUFCvoHG6h6RBPPyTESy-BS1_UBsZZz4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$.UE26fXVaPfxw6MxR4coTuTxABagfRbeJUxbLedMq3PfqwajyjOya"], ["created_at", "2015-06-03 00:18:54.261293"], ["updated_at", "2015-06-03 00:18:54.261293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.265411"], ["updated_at", "2015-06-03 00:18:54.265411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40791681-78b8-4c94-a95d-523947b6be2e' AND "clubhouse_memberships"."organization_id" = 'ce585407-90e9-45fb-ad3d-29d5a110de1b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "40791681-78b8-4c94-a95d-523947b6be2e"], ["organization_id", "ce585407-90e9-45fb-ad3d-29d5a110de1b"], ["created_at", "2015-06-03 00:18:54.269881"], ["updated_at", "2015-06-03 00:18:54.269881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:54.273814') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4f3d4e30-2197-4e4b-8c9a-62fe083248c1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:54.276073"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:54.276905"], ["id", "4f3d4e30-2197-4e4b-8c9a-62fe083248c1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "caeb29ea-8140-461a-bd4d-2747f99eebe5"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'caeb29ea-8140-461a-bd4d-2747f99eebe5' LIMIT 1 [["organization_id", "9b4a5e78-d07b-430f-abee-ef1777edb2e2"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "9b4a5e78-d07b-430f-abee-ef1777edb2e2"]] Completed 200 OK in 14ms (Views: 2.8ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$604bbTCgRh3INb0HAqZpMuQdS7k7cj7LTap7Es1XFAx554x1Lb1RG"], ["created_at", "2015-06-03 00:18:54.295913"], ["updated_at", "2015-06-03 00:18:54.295913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:54.298396"], ["user_id", "a42d0086-a79f-4e6f-aef8-edb59362350e"], ["created_at", "2015-06-03 00:18:54.299250"], ["updated_at", "2015-06-03 00:18:54.299250"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.304311"], ["updated_at", "2015-06-03 00:18:54.304311"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a42d0086-a79f-4e6f-aef8-edb59362350e' AND "clubhouse_memberships"."organization_id" = 'f7d9ee0f-c784-4564-8e90-5889e5b2959e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a42d0086-a79f-4e6f-aef8-edb59362350e"], ["organization_id", "f7d9ee0f-c784-4564-8e90-5889e5b2959e"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.311156"], ["updated_at", "2015-06-03 00:18:54.311156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'f7d9ee0f-c784-4564-8e90-5889e5b2959e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "f7d9ee0f-c784-4564-8e90-5889e5b2959e"], ["created_at", "2015-06-03 00:18:54.316545"], ["updated_at", "2015-06-03 00:18:54.316545"], ["token", "5mE-DPR-x3oX4thfU1AXxNcqm0JjlbLp3Xswr9_JmUg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$p0RfwRhMwW2tXUsvn4UytOtvAhX8H.SJQN39hJ4OHd3ZfHqBM79A2"], ["created_at", "2015-06-03 00:18:54.323501"], ["updated_at", "2015-06-03 00:18:54.323501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.328822"], ["updated_at", "2015-06-03 00:18:54.328822"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dcf72f74-c9d1-4a98-ad37-bae2ebbe6042' AND "clubhouse_memberships"."organization_id" = '24a7495d-8a0b-4a5c-a1fc-d81c151f33f2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dcf72f74-c9d1-4a98-ad37-bae2ebbe6042"], ["organization_id", "24a7495d-8a0b-4a5c-a1fc-d81c151f33f2"], ["created_at", "2015-06-03 00:18:54.333099"], ["updated_at", "2015-06-03 00:18:54.333099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$AK4bDly4tioue1T3w9Tjae76hmVSQaiYpxWsz6.aFzLT5bBRSM8Aq"], ["created_at", "2015-06-03 00:18:54.345628"], ["updated_at", "2015-06-03 00:18:54.345628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:54.347981"], ["user_id", "e807db60-e581-4bf6-aa1e-ef2e83d76936"], ["created_at", "2015-06-03 00:18:54.348921"], ["updated_at", "2015-06-03 00:18:54.348921"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.353574"], ["updated_at", "2015-06-03 00:18:54.353574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e807db60-e581-4bf6-aa1e-ef2e83d76936' AND "clubhouse_memberships"."organization_id" = '30cb317b-2094-459e-9ac0-ec6ad43defdb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e807db60-e581-4bf6-aa1e-ef2e83d76936"], ["organization_id", "30cb317b-2094-459e-9ac0-ec6ad43defdb"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.357021"], ["updated_at", "2015-06-03 00:18:54.357021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '30cb317b-2094-459e-9ac0-ec6ad43defdb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "30cb317b-2094-459e-9ac0-ec6ad43defdb"], ["created_at", "2015-06-03 00:18:54.361874"], ["updated_at", "2015-06-03 00:18:54.361874"], ["token", "4CacQBiOzFw34bgKQT75j-Z4jVCGbfw4VD3vunLX0IE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$35rpLwU6K/ZZLi0jgwzg6eCWyKAN/MrqLNOsbUGME8R9DQ.aPhPEm"], ["created_at", "2015-06-03 00:18:54.367350"], ["updated_at", "2015-06-03 00:18:54.367350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.371651"], ["updated_at", "2015-06-03 00:18:54.371651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '01ded45c-7f0a-4403-b0ae-601a097f6a61' AND "clubhouse_memberships"."organization_id" = 'd11a9c84-ee96-4401-ba75-f0a7a5f25d84') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "01ded45c-7f0a-4403-b0ae-601a097f6a61"], ["organization_id", "d11a9c84-ee96-4401-ba75-f0a7a5f25d84"], ["created_at", "2015-06-03 00:18:54.375960"], ["updated_at", "2015-06-03 00:18:54.375960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/30cb317b-2094-459e-9ac0-ec6ad43defdb/invitations" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"30cb317b-2094-459e-9ac0-ec6ad43defdb", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:54.379442') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "914c39bc-b5a5-40af-90dd-6c8471458399"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:54.381440"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:54.382461"], ["id", "914c39bc-b5a5-40af-90dd-6c8471458399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "30cb317b-2094-459e-9ac0-ec6ad43defdb"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e807db60-e581-4bf6-aa1e-ef2e83d76936"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e807db60-e581-4bf6-aa1e-ef2e83d76936' LIMIT 1 [["organization_id", "30cb317b-2094-459e-9ac0-ec6ad43defdb"]] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "30cb317b-2094-459e-9ac0-ec6ad43defdb"]] Completed 200 OK in 14ms (Views: 4.0ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$kWwnc/C0xamtL6ftLhdGC.Xcr9uyavT8oAsGyNqZVMVKWZezIwpc6"], ["created_at", "2015-06-03 00:18:54.401884"], ["updated_at", "2015-06-03 00:18:54.401884"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:54.404424"], ["user_id", "1f568aa1-df37-499f-a210-8752f6391b85"], ["created_at", "2015-06-03 00:18:54.405285"], ["updated_at", "2015-06-03 00:18:54.405285"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.411445"], ["updated_at", "2015-06-03 00:18:54.411445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f568aa1-df37-499f-a210-8752f6391b85' AND "clubhouse_memberships"."organization_id" = '1b854504-8092-4eda-8c90-e77f6f328594') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1f568aa1-df37-499f-a210-8752f6391b85"], ["organization_id", "1b854504-8092-4eda-8c90-e77f6f328594"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.414881"], ["updated_at", "2015-06-03 00:18:54.414881"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '1b854504-8092-4eda-8c90-e77f6f328594') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "1b854504-8092-4eda-8c90-e77f6f328594"], ["created_at", "2015-06-03 00:18:54.421106"], ["updated_at", "2015-06-03 00:18:54.421106"], ["token", "aX4TWykuRuAEYRIT0ME9BTNo3bQ79eo6Kgk2synYJMc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$Nweb00z0GYEdSPKuuDHr9uXJj39G4Msz/yIRENwAPJQ6HuzTF3h0q"], ["created_at", "2015-06-03 00:18:54.428244"], ["updated_at", "2015-06-03 00:18:54.428244"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.433555"], ["updated_at", "2015-06-03 00:18:54.433555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75d429de-08a1-463e-9a37-8a9ed8bde8bf' AND "clubhouse_memberships"."organization_id" = 'cec07eb4-59fc-4c91-b9c7-513ac3e9b66b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "75d429de-08a1-463e-9a37-8a9ed8bde8bf"], ["organization_id", "cec07eb4-59fc-4c91-b9c7-513ac3e9b66b"], ["created_at", "2015-06-03 00:18:54.437466"], ["updated_at", "2015-06-03 00:18:54.437466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$WUsjYYYJefKGW10elX8bTebFP6V.XomlmGzx5YMwuyz4Dr6SBfbyG"], ["created_at", "2015-06-03 00:18:54.451378"], ["updated_at", "2015-06-03 00:18:54.451378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:54.453999"], ["user_id", "00ac4823-7ee9-4dbf-91ad-61283c6e775c"], ["created_at", "2015-06-03 00:18:54.455326"], ["updated_at", "2015-06-03 00:18:54.455326"], ["client", "App"]]  (3.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.465197"], ["updated_at", "2015-06-03 00:18:54.465197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '00ac4823-7ee9-4dbf-91ad-61283c6e775c' AND "clubhouse_memberships"."organization_id" = 'b5cf0a71-e7cd-4d37-b91e-547352607244') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "00ac4823-7ee9-4dbf-91ad-61283c6e775c"], ["organization_id", "b5cf0a71-e7cd-4d37-b91e-547352607244"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.469559"], ["updated_at", "2015-06-03 00:18:54.469559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (7.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'b5cf0a71-e7cd-4d37-b91e-547352607244') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "b5cf0a71-e7cd-4d37-b91e-547352607244"], ["created_at", "2015-06-03 00:18:54.484594"], ["updated_at", "2015-06-03 00:18:54.484594"], ["token", "HTU4Iq8PNQgOeFzK1azJBq-ORlXx4S3zrjt3O_sBbh8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$rbOND69RJ0O9.YDuadp0FeL0CpE4mY5WGaP.Ua6GdrcvvnOEiwzxG"], ["created_at", "2015-06-03 00:18:54.500493"], ["updated_at", "2015-06-03 00:18:54.500493"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:54.506585"], ["user_id", "15464559-a1bd-49a2-bf49-1799c722ec58"], ["created_at", "2015-06-03 00:18:54.507621"], ["updated_at", "2015-06-03 00:18:54.507621"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.522216"], ["updated_at", "2015-06-03 00:18:54.522216"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15464559-a1bd-49a2-bf49-1799c722ec58' AND "clubhouse_memberships"."organization_id" = '51bc17bf-11f7-4728-be4b-f508cae4dd0d') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15464559-a1bd-49a2-bf49-1799c722ec58"], ["organization_id", "51bc17bf-11f7-4728-be4b-f508cae4dd0d"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.533092"], ["updated_at", "2015-06-03 00:18:54.533092"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '51bc17bf-11f7-4728-be4b-f508cae4dd0d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "51bc17bf-11f7-4728-be4b-f508cae4dd0d"], ["created_at", "2015-06-03 00:18:54.541709"], ["updated_at", "2015-06-03 00:18:54.541709"], ["token", "pxQrD2Y6RF_2Msy-JFyKKyCwTYA1WdEavdYiRY36NT8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:54.547768') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8123cc01-150f-4f7a-b229-7566809033c1"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:54.549978"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:54.551203"], ["id", "8123cc01-150f-4f7a-b229-7566809033c1"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "15464559-a1bd-49a2-bf49-1799c722ec58"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15464559-a1bd-49a2-bf49-1799c722ec58' LIMIT 1 [["organization_id", "51bc17bf-11f7-4728-be4b-f508cae4dd0d"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '51bc17bf-11f7-4728-be4b-f508cae4dd0d') LIMIT 1  (0.6ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 35ms (ActiveRecord: 3.7ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$.xQtETLrYnqRxK1YN0AfJ.dzWmzHLTJc/gZRWKJJEak7QMNaeF9.S"], ["created_at", "2015-06-03 00:18:54.593715"], ["updated_at", "2015-06-03 00:18:54.593715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:54.597418"], ["user_id", "bacd7c19-ce71-4975-ac32-524d3d32288b"], ["created_at", "2015-06-03 00:18:54.598265"], ["updated_at", "2015-06-03 00:18:54.598265"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:54.604550"], ["updated_at", "2015-06-03 00:18:54.604550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bacd7c19-ce71-4975-ac32-524d3d32288b' AND "clubhouse_memberships"."organization_id" = '6ba53a1a-a43d-489c-9f6f-4caf01ff5fc1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bacd7c19-ce71-4975-ac32-524d3d32288b"], ["organization_id", "6ba53a1a-a43d-489c-9f6f-4caf01ff5fc1"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.609216"], ["updated_at", "2015-06-03 00:18:54.609216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '6ba53a1a-a43d-489c-9f6f-4caf01ff5fc1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "6ba53a1a-a43d-489c-9f6f-4caf01ff5fc1"], ["created_at", "2015-06-03 00:18:54.615033"], ["updated_at", "2015-06-03 00:18:54.615033"], ["token", "JeUYpXwHqqy9jRRzlL0B6aVph3D0Yd_-Wg2d-pziGrI"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:18:54 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:54.619468') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f6d3c005-4839-4b00-975a-b9b7b67b1890"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:54.621742"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:54.622977"], ["id", "f6d3c005-4839-4b00-975a-b9b7b67b1890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bacd7c19-ce71-4975-ac32-524d3d32288b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bacd7c19-ce71-4975-ac32-524d3d32288b' LIMIT 1 [["organization_id", "6ba53a1a-a43d-489c-9f6f-4caf01ff5fc1"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '6ba53a1a-a43d-489c-9f6f-4caf01ff5fc1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "6ba53a1a-a43d-489c-9f6f-4caf01ff5fc1"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:18:54.634168"], ["updated_at", "2015-06-03 00:18:54.634168"], ["token", "cWl8UbNq-CECJd6DWZyFx4O0HRoaRZmtxFq4ltSowR0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 89eda8a6-9d89-4f82-bd55-da099f72eded) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/f1420e63-eb9e-4f6e-ba04-fbfcc7f86304 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "f1420e63-eb9e-4f6e-ba04-fbfcc7f86304"]] [ActiveJob] [ActionMailer::DeliveryJob] [89eda8a6-9d89-4f82-bd55-da099f72eded] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/f1420e63-eb9e-4f6e-ba04-fbfcc7f86304 [ActiveJob] [ActionMailer::DeliveryJob] [89eda8a6-9d89-4f82-bd55-da099f72eded] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6ba53a1a-a43d-489c-9f6f-4caf01ff5fc1"]] [ActiveJob] [ActionMailer::DeliveryJob] [89eda8a6-9d89-4f82-bd55-da099f72eded] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [89eda8a6-9d89-4f82-bd55-da099f72eded] Clubhouse::Mailer#invitation: processed outbound mail in 360.9ms [ActiveJob] [ActionMailer::DeliveryJob] [89eda8a6-9d89-4f82-bd55-da099f72eded] Sent mail to email@example.com (9.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [89eda8a6-9d89-4f82-bd55-da099f72eded] Date: Tue, 02 Jun 2015 17:18:55 -0700 From: from@example.com To: email@example.com Message-ID: <556e47ef87ea_e46f3fc970860208868f9@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/cWl8UbNq-CECJd6DWZyFx4O0HRoaRZmtxFq4ltSowR0?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [89eda8a6-9d89-4f82-bd55-da099f72eded] Performed ActionMailer::DeliveryJob from Inline(mailers) in 371.57ms Completed 201 Created in 421ms (Views: 1.0ms | ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$78XdvM5ETFCse4We/XkOke1aq139fP.ok.deX/Be0LYNYVW9AQZ72"], ["created_at", "2015-06-03 00:18:55.051883"], ["updated_at", "2015-06-03 00:18:55.051883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.054555"], ["user_id", "a8fed8c6-41ce-47c4-83c4-433970276f5e"], ["created_at", "2015-06-03 00:18:55.055303"], ["updated_at", "2015-06-03 00:18:55.055303"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.061274"], ["updated_at", "2015-06-03 00:18:55.061274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a8fed8c6-41ce-47c4-83c4-433970276f5e' AND "clubhouse_memberships"."organization_id" = '9d1e9490-10ee-464f-bf9f-6a3533f5577e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a8fed8c6-41ce-47c4-83c4-433970276f5e"], ["organization_id", "9d1e9490-10ee-464f-bf9f-6a3533f5577e"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.064433"], ["updated_at", "2015-06-03 00:18:55.064433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '9d1e9490-10ee-464f-bf9f-6a3533f5577e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "9d1e9490-10ee-464f-bf9f-6a3533f5577e"], ["created_at", "2015-06-03 00:18:55.070371"], ["updated_at", "2015-06-03 00:18:55.070371"], ["token", "s2SNkhr6168D453J5yNrd0sduEx83X7As4zeinnyzqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-06-02 17:18:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:55.075651') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f9ddeb08-3c70-47a9-a93c-06f2ca1b92d8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:55.077550"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:55.078472"], ["id", "f9ddeb08-3c70-47a9-a93c-06f2ca1b92d8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a8fed8c6-41ce-47c4-83c4-433970276f5e"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a8fed8c6-41ce-47c4-83c4-433970276f5e' LIMIT 1 [["organization_id", "9d1e9490-10ee-464f-bf9f-6a3533f5577e"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '9d1e9490-10ee-464f-bf9f-6a3533f5577e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "9d1e9490-10ee-464f-bf9f-6a3533f5577e"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.089093"], ["updated_at", "2015-06-03 00:18:55.089093"], ["token", "H24GckzOTTUH0MzsIGA-Zn3Kk02skBgofm_TAAjc42I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e6aac539-d762-4937-8746-9108ebc97441) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bd9f712f-baf2-441b-86e6-0d305e83050a [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bd9f712f-baf2-441b-86e6-0d305e83050a"]] [ActiveJob] [ActionMailer::DeliveryJob] [e6aac539-d762-4937-8746-9108ebc97441] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bd9f712f-baf2-441b-86e6-0d305e83050a [ActiveJob] [ActionMailer::DeliveryJob] [e6aac539-d762-4937-8746-9108ebc97441] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9d1e9490-10ee-464f-bf9f-6a3533f5577e"]] [ActiveJob] [ActionMailer::DeliveryJob] [e6aac539-d762-4937-8746-9108ebc97441] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [e6aac539-d762-4937-8746-9108ebc97441] Clubhouse::Mailer#invitation: processed outbound mail in 3.3ms [ActiveJob] [ActionMailer::DeliveryJob] [e6aac539-d762-4937-8746-9108ebc97441] Sent mail to email@example.com (2.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [e6aac539-d762-4937-8746-9108ebc97441] Date: Tue, 02 Jun 2015 17:18:55 -0700 From: from@example.com To: email@example.com Message-ID: <556e47ef181ec_e46f3fc9708602088697a@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/H24GckzOTTUH0MzsIGA-Zn3Kk02skBgofm_TAAjc42I?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [e6aac539-d762-4937-8746-9108ebc97441] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.24ms Completed 201 Created in 28ms (Views: 2.2ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$Sh0zYqMBV31lUmomF10k.e/n3PQ1E5adnWj1yOPquDnM0wYFygY2i"], ["created_at", "2015-06-03 00:18:55.111121"], ["updated_at", "2015-06-03 00:18:55.111121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.113819"], ["user_id", "92fa9cf4-d045-4cdb-9cf3-f4197395175b"], ["created_at", "2015-06-03 00:18:55.114826"], ["updated_at", "2015-06-03 00:18:55.114826"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.120472"], ["updated_at", "2015-06-03 00:18:55.120472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92fa9cf4-d045-4cdb-9cf3-f4197395175b' AND "clubhouse_memberships"."organization_id" = 'e471e99e-a711-491c-b890-408c6f1c680e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "92fa9cf4-d045-4cdb-9cf3-f4197395175b"], ["organization_id", "e471e99e-a711-491c-b890-408c6f1c680e"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.125476"], ["updated_at", "2015-06-03 00:18:55.125476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'e471e99e-a711-491c-b890-408c6f1c680e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "e471e99e-a711-491c-b890-408c6f1c680e"], ["created_at", "2015-06-03 00:18:55.131230"], ["updated_at", "2015-06-03 00:18:55.131230"], ["token", "tphfor7IPMKalVF9l-ltPimyly8wfybMEL57u3sJ3P8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/ff8d571b-2e5c-4caa-bb46-1a65e1115d58" for 127.0.0.1 at 2015-06-02 17:18:55 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"ff8d571b-2e5c-4caa-bb46-1a65e1115d58", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:55.134945') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c12a2f6c-9857-4c7d-b9a2-9b5a13964a0f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:55.136222"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:55.136990"], ["id", "c12a2f6c-9857-4c7d-b9a2-9b5a13964a0f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ff8d571b-2e5c-4caa-bb46-1a65e1115d58"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "92fa9cf4-d045-4cdb-9cf3-f4197395175b"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e471e99e-a711-491c-b890-408c6f1c680e"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '92fa9cf4-d045-4cdb-9cf3-f4197395175b' LIMIT 1 [["organization_id", "e471e99e-a711-491c-b890-408c6f1c680e"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."id" != 'ff8d571b-2e5c-4caa-bb46-1a65e1115d58' AND "clubhouse_invitations"."organization_id" = 'e471e99e-a711-491c-b890-408c6f1c680e') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:18:55.147019"], ["id", "ff8d571b-2e5c-4caa-bb46-1a65e1115d58"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$S/gAIX53EVcbI4SIOZ8MHOcdGC7wHDsBPrIsN5q.l5xdjyKwWjFTq"], ["created_at", "2015-06-03 00:18:55.159038"], ["updated_at", "2015-06-03 00:18:55.159038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.163295"], ["user_id", "76d6ba26-d136-4fdf-b0e0-4eb6d24776c0"], ["created_at", "2015-06-03 00:18:55.164261"], ["updated_at", "2015-06-03 00:18:55.164261"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.169899"], ["updated_at", "2015-06-03 00:18:55.169899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76d6ba26-d136-4fdf-b0e0-4eb6d24776c0' AND "clubhouse_memberships"."organization_id" = 'b31c0241-dc68-4bfd-9af8-56e2ccf9984e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76d6ba26-d136-4fdf-b0e0-4eb6d24776c0"], ["organization_id", "b31c0241-dc68-4bfd-9af8-56e2ccf9984e"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.173368"], ["updated_at", "2015-06-03 00:18:55.173368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'b31c0241-dc68-4bfd-9af8-56e2ccf9984e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "b31c0241-dc68-4bfd-9af8-56e2ccf9984e"], ["created_at", "2015-06-03 00:18:55.180333"], ["updated_at", "2015-06-03 00:18:55.180333"], ["token", "lzOkUsm01GKEujpD35Sy-9uBcCK8rwV236McjZDzrxk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-06-02 17:18:55 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$bLdGoWb9K.qyjuSn0nhHs.nukEhrrIgZsFHlgxoCYZXFvBh/Zm1km"], ["created_at", "2015-06-03 00:18:55.191978"], ["updated_at", "2015-06-03 00:18:55.191978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.194096"], ["user_id", "2cd79023-915e-42ef-9687-b8944500a921"], ["created_at", "2015-06-03 00:18:55.194793"], ["updated_at", "2015-06-03 00:18:55.194793"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.201476"], ["updated_at", "2015-06-03 00:18:55.201476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cd79023-915e-42ef-9687-b8944500a921' AND "clubhouse_memberships"."organization_id" = '53bf4f29-496c-4076-a103-7915b745c86d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cd79023-915e-42ef-9687-b8944500a921"], ["organization_id", "53bf4f29-496c-4076-a103-7915b745c86d"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.205040"], ["updated_at", "2015-06-03 00:18:55.205040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '53bf4f29-496c-4076-a103-7915b745c86d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "53bf4f29-496c-4076-a103-7915b745c86d"], ["created_at", "2015-06-03 00:18:55.211476"], ["updated_at", "2015-06-03 00:18:55.211476"], ["token", "leuFH-P9L45RQScy9Gtzy7qUbzKamrpMU93g-8JRNnk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-06-02 17:18:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$xNgzjvTcXI5U8ZaTsKdhs.QPyICrr0WYbbKbV945CUCJosMlNXi7i"], ["created_at", "2015-06-03 00:18:55.222807"], ["updated_at", "2015-06-03 00:18:55.222807"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.226085"], ["user_id", "c5031502-6a46-4b27-8ba9-eada710da379"], ["created_at", "2015-06-03 00:18:55.227085"], ["updated_at", "2015-06-03 00:18:55.227085"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.232931"], ["updated_at", "2015-06-03 00:18:55.232931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5031502-6a46-4b27-8ba9-eada710da379' AND "clubhouse_memberships"."organization_id" = '0b2adff3-3823-432f-919e-b91898ac8e64') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5031502-6a46-4b27-8ba9-eada710da379"], ["organization_id", "0b2adff3-3823-432f-919e-b91898ac8e64"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.237076"], ["updated_at", "2015-06-03 00:18:55.237076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '0b2adff3-3823-432f-919e-b91898ac8e64') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "0b2adff3-3823-432f-919e-b91898ac8e64"], ["created_at", "2015-06-03 00:18:55.241557"], ["updated_at", "2015-06-03 00:18:55.241557"], ["token", "RsSZnhSmTzamIIqv_oiChR_Rc5_cjqB6Pv7EqBLXSO8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0b2adff3-3823-432f-919e-b91898ac8e64/invitations" for 127.0.0.1 at 2015-06-02 17:18:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"0b2adff3-3823-432f-919e-b91898ac8e64", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:55.245321') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "360cc1b4-e5be-4ed5-af45-e5c0cf0518de"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:55.247808"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:55.249165"], ["id", "360cc1b4-e5be-4ed5-af45-e5c0cf0518de"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0b2adff3-3823-432f-919e-b91898ac8e64"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c5031502-6a46-4b27-8ba9-eada710da379"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c5031502-6a46-4b27-8ba9-eada710da379' LIMIT 1 [["organization_id", "0b2adff3-3823-432f-919e-b91898ac8e64"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '0b2adff3-3823-432f-919e-b91898ac8e64') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$OebMPMgM9aHUjvs.0DlT2.CnHY9ggBQaxyAfmrf6Cv0MK2.5pg.d2"], ["created_at", "2015-06-03 00:18:55.270186"], ["updated_at", "2015-06-03 00:18:55.270186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.271931"], ["user_id", "a138ccd6-92b3-44dc-9224-3569ba830803"], ["created_at", "2015-06-03 00:18:55.272576"], ["updated_at", "2015-06-03 00:18:55.272576"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.279111"], ["updated_at", "2015-06-03 00:18:55.279111"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a138ccd6-92b3-44dc-9224-3569ba830803' AND "clubhouse_memberships"."organization_id" = 'cc4da923-9ce1-4043-8be4-98936e8d77bb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a138ccd6-92b3-44dc-9224-3569ba830803"], ["organization_id", "cc4da923-9ce1-4043-8be4-98936e8d77bb"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.286044"], ["updated_at", "2015-06-03 00:18:55.286044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'cc4da923-9ce1-4043-8be4-98936e8d77bb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "cc4da923-9ce1-4043-8be4-98936e8d77bb"], ["created_at", "2015-06-03 00:18:55.291856"], ["updated_at", "2015-06-03 00:18:55.291856"], ["token", "CpklWdDQ-HBojCzEdg7jzCh_ByuD3PzYxBP1YD19bQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/cc4da923-9ce1-4043-8be4-98936e8d77bb/invitations" for 127.0.0.1 at 2015-06-02 17:18:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"cc4da923-9ce1-4043-8be4-98936e8d77bb", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:55.295342') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c7974e10-cc7f-4952-ada4-bec6fa154a3f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:55.296889"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:55.297766"], ["id", "c7974e10-cc7f-4952-ada4-bec6fa154a3f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cc4da923-9ce1-4043-8be4-98936e8d77bb"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a138ccd6-92b3-44dc-9224-3569ba830803"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a138ccd6-92b3-44dc-9224-3569ba830803' LIMIT 1 [["organization_id", "cc4da923-9ce1-4043-8be4-98936e8d77bb"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'cc4da923-9ce1-4043-8be4-98936e8d77bb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "cc4da923-9ce1-4043-8be4-98936e8d77bb"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.311349"], ["updated_at", "2015-06-03 00:18:55.311349"], ["token", "VYWNSsQTb-rQ1cI_ht8AzFysNGZq6-N_xclkyPHXmww"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0f30fac1-5cfd-40a1-b101-8fb955425d5e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/23a70e64-5c7a-4c1e-9a8d-92c172c2d63a [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "23a70e64-5c7a-4c1e-9a8d-92c172c2d63a"]] [ActiveJob] [ActionMailer::DeliveryJob] [0f30fac1-5cfd-40a1-b101-8fb955425d5e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/23a70e64-5c7a-4c1e-9a8d-92c172c2d63a [ActiveJob] [ActionMailer::DeliveryJob] [0f30fac1-5cfd-40a1-b101-8fb955425d5e] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cc4da923-9ce1-4043-8be4-98936e8d77bb"]] [ActiveJob] [ActionMailer::DeliveryJob] [0f30fac1-5cfd-40a1-b101-8fb955425d5e] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [0f30fac1-5cfd-40a1-b101-8fb955425d5e] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [0f30fac1-5cfd-40a1-b101-8fb955425d5e] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [0f30fac1-5cfd-40a1-b101-8fb955425d5e] Date: Tue, 02 Jun 2015 17:18:55 -0700 From: from@example.com To: email@example.com Message-ID: <556e47ef4df27_e46f3fc970860208870f7@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/VYWNSsQTb-rQ1cI_ht8AzFysNGZq6-N_xclkyPHXmww?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0f30fac1-5cfd-40a1-b101-8fb955425d5e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.71ms Completed 201 Created in 26ms (Views: 0.8ms | ActiveRecord: 3.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$e2QNDVOUSmOvdzJC5ht8D.kvUnty.hhyrtqO2E1FWQuccQZOYeinG"], ["created_at", "2015-06-03 00:18:55.328164"], ["updated_at", "2015-06-03 00:18:55.328164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.329928"], ["user_id", "8fc65ffe-c9df-4bd6-8792-079e58730a16"], ["created_at", "2015-06-03 00:18:55.330591"], ["updated_at", "2015-06-03 00:18:55.330591"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.336376"], ["updated_at", "2015-06-03 00:18:55.336376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fc65ffe-c9df-4bd6-8792-079e58730a16' AND "clubhouse_memberships"."organization_id" = '190fdfc7-603a-470d-adb2-17db282ef191') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fc65ffe-c9df-4bd6-8792-079e58730a16"], ["organization_id", "190fdfc7-603a-470d-adb2-17db282ef191"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.341184"], ["updated_at", "2015-06-03 00:18:55.341184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '190fdfc7-603a-470d-adb2-17db282ef191') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "190fdfc7-603a-470d-adb2-17db282ef191"], ["created_at", "2015-06-03 00:18:55.347142"], ["updated_at", "2015-06-03 00:18:55.347142"], ["token", "uL89yJsnx6rA4APsfE_-p-g65YuVvUgIkCZVn2lgygg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/190fdfc7-603a-470d-adb2-17db282ef191/invitations" for 127.0.0.1 at 2015-06-02 17:18:55 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"190fdfc7-603a-470d-adb2-17db282ef191", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:55.352038') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9a10b28d-8a0f-4da4-845c-06d10ce6854f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:55.353899"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:55.354893"], ["id", "9a10b28d-8a0f-4da4-845c-06d10ce6854f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "190fdfc7-603a-470d-adb2-17db282ef191"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8fc65ffe-c9df-4bd6-8792-079e58730a16"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8fc65ffe-c9df-4bd6-8792-079e58730a16' LIMIT 1 [["organization_id", "190fdfc7-603a-470d-adb2-17db282ef191"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '190fdfc7-603a-470d-adb2-17db282ef191') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "190fdfc7-603a-470d-adb2-17db282ef191"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.364470"], ["updated_at", "2015-06-03 00:18:55.364470"], ["token", "nKJbXkfdgTYxlLYtw58TpA5DmqfZC5hM5Bhghsq5vXU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: bd535dc2-1c84-4a45-b361-7202b18d824c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/b567606e-5f38-42df-b914-478aeb2b1e50 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "b567606e-5f38-42df-b914-478aeb2b1e50"]] [ActiveJob] [ActionMailer::DeliveryJob] [bd535dc2-1c84-4a45-b361-7202b18d824c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/b567606e-5f38-42df-b914-478aeb2b1e50 [ActiveJob] [ActionMailer::DeliveryJob] [bd535dc2-1c84-4a45-b361-7202b18d824c] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "190fdfc7-603a-470d-adb2-17db282ef191"]] [ActiveJob] [ActionMailer::DeliveryJob] [bd535dc2-1c84-4a45-b361-7202b18d824c] Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [bd535dc2-1c84-4a45-b361-7202b18d824c] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [bd535dc2-1c84-4a45-b361-7202b18d824c] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [bd535dc2-1c84-4a45-b361-7202b18d824c] Date: Tue, 02 Jun 2015 17:18:55 -0700 From: from@example.com To: email@example.com Message-ID: <556e47ef5adfc_e46f3fc970860208871cf@Jasons-MacBook.local.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/nKJbXkfdgTYxlLYtw58TpA5DmqfZC5hM5Bhghsq5vXU?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [bd535dc2-1c84-4a45-b361-7202b18d824c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.97ms Completed 201 Created in 23ms (Views: 0.9ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.390778"], ["updated_at", "2015-06-03 00:18:55.390778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '593ae091-d097-4249-985a-628e8b210458') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "593ae091-d097-4249-985a-628e8b210458"], ["created_at", "2015-06-03 00:18:55.395114"], ["updated_at", "2015-06-03 00:18:55.395114"], ["token", "g_iQ_naGCx-AVOSiYGHoW_PKiT7Tpa2RsBpiVIeomZU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.401116"], ["updated_at", "2015-06-03 00:18:55.401116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '73563e4f-2eae-4929-8878-cd00ee48751f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "73563e4f-2eae-4929-8878-cd00ee48751f"], ["created_at", "2015-06-03 00:18:55.405152"], ["updated_at", "2015-06-03 00:18:55.405152"], ["token", "rw27Tv3IYWK0OTvgNk1Pz6ZqqEerbLVGCikifT3vrYs"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "73563e4f-2eae-4929-8878-cd00ee48751f"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '73563e4f-2eae-4929-8878-cd00ee48751f') LIMIT 1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (3.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$Q06NemjDo.n8uuE/6kwoj.UZ8RzVUtVzw6.UWPE/QcjV2cu645YHO"], ["created_at", "2015-06-03 00:18:55.441684"], ["updated_at", "2015-06-03 00:18:55.441684"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$a7PssgV2kN9mPL4eKbKFJeJcGrIAK4jzKksDK87cOvF3JDdqQWEce"], ["created_at", "2015-06-03 00:18:55.465604"], ["updated_at", "2015-06-03 00:18:55.465604"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.473152"], ["updated_at", "2015-06-03 00:18:55.473152"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$BZBGN54owrlcuQ/ggROJBOkRfjAmeU2d463Jp4w11s1dsDCd2/Rj2"], ["created_at", "2015-06-03 00:18:55.484658"], ["updated_at", "2015-06-03 00:18:55.484658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.490156"], ["updated_at", "2015-06-03 00:18:55.490156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a9c10aa9-3ed2-46a4-be33-e0bc83ffe653' LIMIT 1 [["organization_id", "2a544ece-07ef-48dc-97fb-975265d3eb8e"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$lWlRgOkJBLxNKTUmiYOwGOlBHUX6i/mcGBr9ZgSrx0Oxh4WOOouku"], ["created_at", "2015-06-03 00:18:55.502230"], ["updated_at", "2015-06-03 00:18:55.502230"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.506557"], ["updated_at", "2015-06-03 00:18:55.506557"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dcd72456-528d-42f4-8f74-10b72d38cac1' LIMIT 1 [["organization_id", "4acb8c13-003f-48ca-b992-ffae9b21602f"]]  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$Mx1aQ7GrGiGNh9yQFKYoiOXNXfKKU/tARCE7heSN6Hj6g89izp2lO"], ["created_at", "2015-06-03 00:18:55.518531"], ["updated_at", "2015-06-03 00:18:55.518531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.523634"], ["updated_at", "2015-06-03 00:18:55.523634"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$B5RWeIGsN19Lf7da4xw9q.ZNENTCbE8PpickKQsdwA6.mSggjzrWq"], ["created_at", "2015-06-03 00:18:55.535041"], ["updated_at", "2015-06-03 00:18:55.535041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.539738"], ["updated_at", "2015-06-03 00:18:55.539738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '711f2713-34e4-4273-8cef-51c7a6953a97' LIMIT 1 [["organization_id", "6855b437-ddf1-4068-b83b-7d9822325904"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$nbLdyEvPPeSPWcrOftkv5OcvyxD1W10NutzfhPYK6ahIegtrErmjW"], ["created_at", "2015-06-03 00:18:55.549065"], ["updated_at", "2015-06-03 00:18:55.549065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.553155"], ["updated_at", "2015-06-03 00:18:55.553155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '176ad285-a6d4-42a7-a078-a7bde9311344' AND "clubhouse_memberships"."organization_id" = '02335895-d091-4605-a1d5-5f4bfdace236') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "176ad285-a6d4-42a7-a078-a7bde9311344"], ["organization_id", "02335895-d091-4605-a1d5-5f4bfdace236"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.556870"], ["updated_at", "2015-06-03 00:18:55.556870"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$IynWCTLKFlyuRd3TGVF1rewXlZ8v3smAt9L0wwil9ULFoFROi7L6W"], ["created_at", "2015-06-03 00:18:55.566266"], ["updated_at", "2015-06-03 00:18:55.566266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.570310"], ["updated_at", "2015-06-03 00:18:55.570310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dc549e13-31bd-4d59-883b-04f90b29358a' AND "clubhouse_memberships"."organization_id" = 'd25ecd5a-dd3d-45f2-9b71-fe881050f4a5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dc549e13-31bd-4d59-883b-04f90b29358a"], ["organization_id", "d25ecd5a-dd3d-45f2-9b71-fe881050f4a5"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.574378"], ["updated_at", "2015-06-03 00:18:55.574378"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dc549e13-31bd-4d59-883b-04f90b29358a' LIMIT 1 [["organization_id", "d25ecd5a-dd3d-45f2-9b71-fe881050f4a5"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$aFUWR6Zvi.y99S/6xmNLN.UsohlR0CuaiPa9Q3lAnfHllf1ZA0JLe"], ["created_at", "2015-06-03 00:18:55.586542"], ["updated_at", "2015-06-03 00:18:55.586542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.591373"], ["updated_at", "2015-06-03 00:18:55.591373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b4da3353-2c3b-4f74-b516-5cc5f8fffbc6' AND "clubhouse_memberships"."organization_id" = '03e40d45-e094-484e-86b1-05afc59d7469') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b4da3353-2c3b-4f74-b516-5cc5f8fffbc6"], ["organization_id", "03e40d45-e094-484e-86b1-05afc59d7469"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.595271"], ["updated_at", "2015-06-03 00:18:55.595271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b4da3353-2c3b-4f74-b516-5cc5f8fffbc6' LIMIT 1 [["organization_id", "03e40d45-e094-484e-86b1-05afc59d7469"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$C7KdE/jf65v5m54JOSqYTexHUC2GMoi6.3qFfVkgCmOUtnvXohMa."], ["created_at", "2015-06-03 00:18:55.605302"], ["updated_at", "2015-06-03 00:18:55.605302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.610973"], ["updated_at", "2015-06-03 00:18:55.610973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '259cd045-1c6a-407a-b3b5-eb9ff233a4e3' AND "clubhouse_memberships"."organization_id" = '39e2e971-f910-4425-ba92-e3231e2e0df0') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "259cd045-1c6a-407a-b3b5-eb9ff233a4e3"], ["organization_id", "39e2e971-f910-4425-ba92-e3231e2e0df0"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.614509"], ["updated_at", "2015-06-03 00:18:55.614509"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$257JISW9hI49hygc8dDv..XnXvl.I/QZSI5Ie/Bm3wtsrRP7X9mha"], ["created_at", "2015-06-03 00:18:55.624480"], ["updated_at", "2015-06-03 00:18:55.624480"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.632150"], ["updated_at", "2015-06-03 00:18:55.632150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6cb5d94f-4f0c-4d5d-9cf4-82be0fa440c4' AND "clubhouse_memberships"."organization_id" = 'eaf1a840-965a-42db-80fd-36693ff47e69') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6cb5d94f-4f0c-4d5d-9cf4-82be0fa440c4"], ["organization_id", "eaf1a840-965a-42db-80fd-36693ff47e69"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.637001"], ["updated_at", "2015-06-03 00:18:55.637001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6cb5d94f-4f0c-4d5d-9cf4-82be0fa440c4' LIMIT 1 [["organization_id", "eaf1a840-965a-42db-80fd-36693ff47e69"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$NNbc.RAfo7eVQzcLGa1HiOHJobtjhZWiqBRnajU5.s6RmwX9A/Z6."], ["created_at", "2015-06-03 00:18:55.645647"], ["updated_at", "2015-06-03 00:18:55.645647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.650121"], ["updated_at", "2015-06-03 00:18:55.650121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '555c266f-563b-470a-9988-fd7c10a5073b' AND "clubhouse_memberships"."organization_id" = '040c626a-2fd1-4e68-a9da-0a13a8f4b057') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "555c266f-563b-470a-9988-fd7c10a5073b"], ["organization_id", "040c626a-2fd1-4e68-a9da-0a13a8f4b057"], ["created_at", "2015-06-03 00:18:55.654058"], ["updated_at", "2015-06-03 00:18:55.654058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$7sGAPImrbv1EPhirVJ1cCOxGn7ppVKxvv3qq1jZUWg1Kq3uQ.eOu."], ["created_at", "2015-06-03 00:18:55.661246"], ["updated_at", "2015-06-03 00:18:55.661246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.665789"], ["updated_at", "2015-06-03 00:18:55.665789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff46e39d-4d87-4318-a248-30d93c01af6f' AND "clubhouse_memberships"."organization_id" = 'c94645cb-f502-4900-a36f-7a16bef26198') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ff46e39d-4d87-4318-a248-30d93c01af6f"], ["organization_id", "c94645cb-f502-4900-a36f-7a16bef26198"], ["created_at", "2015-06-03 00:18:55.670009"], ["updated_at", "2015-06-03 00:18:55.670009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ff46e39d-4d87-4318-a248-30d93c01af6f' LIMIT 1 [["organization_id", "c94645cb-f502-4900-a36f-7a16bef26198"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$hkajVGZXKOWg3B5dKdMiD.niuTktxxWib1J9C7qirneMMgfixmkGK"], ["created_at", "2015-06-03 00:18:55.682209"], ["updated_at", "2015-06-03 00:18:55.682209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.688277"], ["updated_at", "2015-06-03 00:18:55.688277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0144288b-3d00-4ec0-b1a2-439dbb75513e' AND "clubhouse_memberships"."organization_id" = 'a397ffaf-c0f8-45a3-8b73-58abc9c59840') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0144288b-3d00-4ec0-b1a2-439dbb75513e"], ["organization_id", "a397ffaf-c0f8-45a3-8b73-58abc9c59840"], ["created_at", "2015-06-03 00:18:55.693772"], ["updated_at", "2015-06-03 00:18:55.693772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0144288b-3d00-4ec0-b1a2-439dbb75513e' LIMIT 1 [["organization_id", "a397ffaf-c0f8-45a3-8b73-58abc9c59840"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$fEnyurfJAWgOyQPjk4ziAeyjNNzq4YYLN1FYxZpAA5X4oOaV6T0pW"], ["created_at", "2015-06-03 00:18:55.702868"], ["updated_at", "2015-06-03 00:18:55.702868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.707610"], ["updated_at", "2015-06-03 00:18:55.707610"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f539744-b1a6-4e9d-a7f2-8e80b2b64015' AND "clubhouse_memberships"."organization_id" = '65422ff9-7bcc-4ff6-bfbb-0b744c8a6461') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4f539744-b1a6-4e9d-a7f2-8e80b2b64015"], ["organization_id", "65422ff9-7bcc-4ff6-bfbb-0b744c8a6461"], ["created_at", "2015-06-03 00:18:55.714059"], ["updated_at", "2015-06-03 00:18:55.714059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$Pby/gusJ/YCmSFzuXh6WXO2BKmMLtSCeFNKYTfnVe.Yyq2TruCOmS"], ["created_at", "2015-06-03 00:18:55.723909"], ["updated_at", "2015-06-03 00:18:55.723909"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.730844"], ["updated_at", "2015-06-03 00:18:55.730844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5b9a70d-895a-4652-9dfe-69b4dab4e046' AND "clubhouse_memberships"."organization_id" = '5539d59f-0bbc-495f-b833-e49d33d9024f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5b9a70d-895a-4652-9dfe-69b4dab4e046"], ["organization_id", "5539d59f-0bbc-495f-b833-e49d33d9024f"], ["created_at", "2015-06-03 00:18:55.734682"], ["updated_at", "2015-06-03 00:18:55.734682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e5b9a70d-895a-4652-9dfe-69b4dab4e046' LIMIT 1 [["organization_id", "5539d59f-0bbc-495f-b833-e49d33d9024f"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.743628"], ["updated_at", "2015-06-03 00:18:55.743628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'ad309d7c-f3fd-4ea3-9b20-eecff3d684cf') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "ad309d7c-f3fd-4ea3-9b20-eecff3d684cf"], ["created_at", "2015-06-03 00:18:55.748839"], ["updated_at", "2015-06-03 00:18:55.748839"], ["token", "Dx6k6tqFxPqWUMaW-l8sO-F9OB-4WiqSK4SNAFIbkWU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.5ms) Date: Tue, 02 Jun 2015 17:18:55 -0700 From: from@example.com To: john@example.com Message-ID: <556e47efb7bcf_e46f3fc970860208872c8@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/Dx6k6tqFxPqWUMaW-l8sO-F9OB-4WiqSK4SNAFIbkWU?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.758797"], ["updated_at", "2015-06-03 00:18:55.758797"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'f29f83e2-552a-444d-a220-dccd5e9f71c6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "f29f83e2-552a-444d-a220-dccd5e9f71c6"], ["created_at", "2015-06-03 00:18:55.764139"], ["updated_at", "2015-06-03 00:18:55.764139"], ["token", "oE2lx8FRYNageYkDCSLJy7Qi_yqmleOcyDDxcReCLJc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.9ms) Date: Tue, 02 Jun 2015 17:18:55 -0700 From: from@example.com To: john@example.com Message-ID: <556e47efbba6b_e46f3fc970860208873b5@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/oE2lx8FRYNageYkDCSLJy7Qi_yqmleOcyDDxcReCLJc?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.777536"], ["updated_at", "2015-06-03 00:18:55.777536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '85596740-fe3b-4281-b93f-02c9105aa7d3') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "85596740-fe3b-4281-b93f-02c9105aa7d3"], ["created_at", "2015-06-03 00:18:55.783211"], ["updated_at", "2015-06-03 00:18:55.783211"], ["token", "mif1WSzbrMgRz0filIgF_TU6SxuUOYl0SpRdEQtlBwo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (1.9ms) Date: Tue, 02 Jun 2015 17:18:55 -0700 From: from@example.com To: john@example.com Message-ID: <556e47efc07b4_e46f3fc970860208874d1@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/mif1WSzbrMgRz0filIgF_TU6SxuUOYl0SpRdEQtlBwo?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.794823"], ["updated_at", "2015-06-03 00:18:55.794823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '4e5b3091-978d-4002-8aa4-7a44853de884') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "4e5b3091-978d-4002-8aa4-7a44853de884"], ["created_at", "2015-06-03 00:18:55.799505"], ["updated_at", "2015-06-03 00:18:55.799505"], ["token", "HpUXB5dBfO1PM7ijrKywdsNKTuvXYdToDAzsgRPmn34"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/Downloads/migration/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.5ms) Date: Tue, 02 Jun 2015 17:18:55 -0700 From: from@example.com To: john@example.com Message-ID: <556e47efc428a_e46f3fc970860208875ba@Jasons-MacBook.local.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/HpUXB5dBfO1PM7ijrKywdsNKTuvXYdToDAzsgRPmn34?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 39"], ["email", "user.39@example.com"], ["password_digest", "$2a$04$EkNnBz7t6dZauz9AKuFT2eLNWQbgAzb4zMlLYRa7m8z9joq36Tw1."], ["created_at", "2015-06-03 00:18:55.812073"], ["updated_at", "2015-06-03 00:18:55.812073"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 40"], ["email", "user.40@example.com"], ["password_digest", "$2a$04$teHZFNmwzXCRMwsNhOVnSu1QVQ9CRAtqteu6Sw3/4i/p986uh8SHG"], ["created_at", "2015-06-03 00:18:55.818699"], ["updated_at", "2015-06-03 00:18:55.818699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.820623"], ["user_id", "07371bb0-3ddf-4ac1-8bee-00c1c50e917d"], ["created_at", "2015-06-03 00:18:55.821396"], ["updated_at", "2015-06-03 00:18:55.821396"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.828091"], ["updated_at", "2015-06-03 00:18:55.828091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07371bb0-3ddf-4ac1-8bee-00c1c50e917d' AND "clubhouse_memberships"."organization_id" = '0e895f9b-25f5-4a39-9047-e56af958c624') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07371bb0-3ddf-4ac1-8bee-00c1c50e917d"], ["organization_id", "0e895f9b-25f5-4a39-9047-e56af958c624"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.832618"], ["updated_at", "2015-06-03 00:18:55.832618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '697f1f52-4ef7-44dc-9922-3bd4ad44749a' AND "clubhouse_memberships"."organization_id" = '0e895f9b-25f5-4a39-9047-e56af958c624') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "697f1f52-4ef7-44dc-9922-3bd4ad44749a"], ["organization_id", "0e895f9b-25f5-4a39-9047-e56af958c624"], ["created_at", "2015-06-03 00:18:55.836194"], ["updated_at", "2015-06-03 00:18:55.836194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/86fce102-9e29-4bc3-8516-ff573c4ffd87" for 127.0.0.1 at 2015-06-02 17:18:55 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"86fce102-9e29-4bc3-8516-ff573c4ffd87", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:55.844556') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9d75d965-416d-4e55-95dd-494fa95fa5f5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:55.846211"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:55.847272"], ["id", "9d75d965-416d-4e55-95dd-494fa95fa5f5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "86fce102-9e29-4bc3-8516-ff573c4ffd87"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07371bb0-3ddf-4ac1-8bee-00c1c50e917d"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e895f9b-25f5-4a39-9047-e56af958c624"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '07371bb0-3ddf-4ac1-8bee-00c1c50e917d' LIMIT 1 [["organization_id", "0e895f9b-25f5-4a39-9047-e56af958c624"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "697f1f52-4ef7-44dc-9922-3bd4ad44749a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "86fce102-9e29-4bc3-8516-ff573c4ffd87"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 15ms (ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 41"], ["email", "user.41@example.com"], ["password_digest", "$2a$04$ZPjOhC6CbKUn1XWYhJMRZeqb8doMTJNuLl7WKUcHNn447c0B0M87i"], ["created_at", "2015-06-03 00:18:55.867292"], ["updated_at", "2015-06-03 00:18:55.867292"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 42"], ["email", "user.42@example.com"], ["password_digest", "$2a$04$aFI4QPcQIbAmLK7hZ.3.luohIZ1lVxKEoelXwhI5NWYsXIiqAlfZS"], ["created_at", "2015-06-03 00:18:55.874118"], ["updated_at", "2015-06-03 00:18:55.874118"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.876690"], ["user_id", "3100ade0-ae49-4cff-9e6c-361e39ffab81"], ["created_at", "2015-06-03 00:18:55.877415"], ["updated_at", "2015-06-03 00:18:55.877415"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.882561"], ["updated_at", "2015-06-03 00:18:55.882561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3100ade0-ae49-4cff-9e6c-361e39ffab81' AND "clubhouse_memberships"."organization_id" = '5043a26c-c61f-4eeb-8261-6aa0986ea8aa') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3100ade0-ae49-4cff-9e6c-361e39ffab81"], ["organization_id", "5043a26c-c61f-4eeb-8261-6aa0986ea8aa"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.888271"], ["updated_at", "2015-06-03 00:18:55.888271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1320d0fc-05fb-46b1-a1e7-d8e36447f814' AND "clubhouse_memberships"."organization_id" = '5043a26c-c61f-4eeb-8261-6aa0986ea8aa') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1320d0fc-05fb-46b1-a1e7-d8e36447f814"], ["organization_id", "5043a26c-c61f-4eeb-8261-6aa0986ea8aa"], ["created_at", "2015-06-03 00:18:55.892170"], ["updated_at", "2015-06-03 00:18:55.892170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-06-02 17:18:55 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 43"], ["email", "user.43@example.com"], ["password_digest", "$2a$04$IHyigRUtR.zoHjyEJgwyPeotMNrK3KA6VnHNDHQ1IrlSRt3.cKO/q"], ["created_at", "2015-06-03 00:18:55.902829"], ["updated_at", "2015-06-03 00:18:55.902829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 44"], ["email", "user.44@example.com"], ["password_digest", "$2a$04$eqlTsdUldLzNBjBBZWgOB.JsU./LSUAdepFn48OgVU.L0sKrSsoP2"], ["created_at", "2015-06-03 00:18:55.909792"], ["updated_at", "2015-06-03 00:18:55.909792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.912337"], ["user_id", "f5fcdf62-8dd5-4263-af56-0e4e658ea363"], ["created_at", "2015-06-03 00:18:55.913551"], ["updated_at", "2015-06-03 00:18:55.913551"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.927862"], ["updated_at", "2015-06-03 00:18:55.927862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5fcdf62-8dd5-4263-af56-0e4e658ea363' AND "clubhouse_memberships"."organization_id" = 'ca16c192-0437-45a8-9f6d-a7f3546bea35') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5fcdf62-8dd5-4263-af56-0e4e658ea363"], ["organization_id", "ca16c192-0437-45a8-9f6d-a7f3546bea35"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.935117"], ["updated_at", "2015-06-03 00:18:55.935117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b2631295-d5da-4c21-a53b-4e9f5b4cfa54' AND "clubhouse_memberships"."organization_id" = 'ca16c192-0437-45a8-9f6d-a7f3546bea35') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b2631295-d5da-4c21-a53b-4e9f5b4cfa54"], ["organization_id", "ca16c192-0437-45a8-9f6d-a7f3546bea35"], ["created_at", "2015-06-03 00:18:55.942696"], ["updated_at", "2015-06-03 00:18:55.942696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/c7853701-691e-46e6-a8f0-81d1cf943a74" for 127.0.0.1 at 2015-06-02 17:18:55 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"c7853701-691e-46e6-a8f0-81d1cf943a74", "membership"=>{}} Pollett::Context Load (1.1ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:55.946656') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "49371c26-6b7f-489d-a303-58a0e915d197"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:55.957688"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:55.958794"], ["id", "49371c26-6b7f-489d-a303-58a0e915d197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "c7853701-691e-46e6-a8f0-81d1cf943a74"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5fcdf62-8dd5-4263-af56-0e4e658ea363"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ca16c192-0437-45a8-9f6d-a7f3546bea35"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f5fcdf62-8dd5-4263-af56-0e4e658ea363' LIMIT 1 [["organization_id", "ca16c192-0437-45a8-9f6d-a7f3546bea35"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5fcdf62-8dd5-4263-af56-0e4e658ea363"]] Completed 200 OK in 24ms (Views: 6.0ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 45"], ["email", "user.45@example.com"], ["password_digest", "$2a$04$RQpryY39SmESSowNVHvZAunjIGJ0yxf/7MyU6qEENHW5FEZ1/NMKm"], ["created_at", "2015-06-03 00:18:55.979274"], ["updated_at", "2015-06-03 00:18:55.979274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 46"], ["email", "user.46@example.com"], ["password_digest", "$2a$04$MsJmGSf7BKS8C5RhLLxVzuJkxMFi0JuACZtPPzWrbDlVCf3/JNuBy"], ["created_at", "2015-06-03 00:18:55.985490"], ["updated_at", "2015-06-03 00:18:55.985490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:55.987164"], ["user_id", "1d943c26-6817-436d-8780-81845a599686"], ["created_at", "2015-06-03 00:18:55.987802"], ["updated_at", "2015-06-03 00:18:55.987802"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:55.994317"], ["updated_at", "2015-06-03 00:18:55.994317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d943c26-6817-436d-8780-81845a599686' AND "clubhouse_memberships"."organization_id" = '92eda418-92ce-4771-a3fb-55eeecb37f1f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1d943c26-6817-436d-8780-81845a599686"], ["organization_id", "92eda418-92ce-4771-a3fb-55eeecb37f1f"], ["admin", "t"], ["created_at", "2015-06-03 00:18:55.999224"], ["updated_at", "2015-06-03 00:18:55.999224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '046eb8fb-0b67-4fac-884e-c1ac2d8db533' AND "clubhouse_memberships"."organization_id" = '92eda418-92ce-4771-a3fb-55eeecb37f1f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "046eb8fb-0b67-4fac-884e-c1ac2d8db533"], ["organization_id", "92eda418-92ce-4771-a3fb-55eeecb37f1f"], ["created_at", "2015-06-03 00:18:56.002118"], ["updated_at", "2015-06-03 00:18:56.002118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 47"], ["email", "user.47@example.com"], ["password_digest", "$2a$04$8ndgXO1mL/1wN5sXnwZcGePqDWN/73XUIvcS9d/iMZ/JtWxKnXumS"], ["created_at", "2015-06-03 00:18:56.014582"], ["updated_at", "2015-06-03 00:18:56.014582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 48"], ["email", "user.48@example.com"], ["password_digest", "$2a$04$EFpCb0Yn6JjFJitNfWOAduES8S3SJF2paHU0pj/De1bXcW/qhAweK"], ["created_at", "2015-06-03 00:18:56.019880"], ["updated_at", "2015-06-03 00:18:56.019880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.021501"], ["user_id", "ff9d9682-40fe-446e-bac1-be8ed1aa678c"], ["created_at", "2015-06-03 00:18:56.022196"], ["updated_at", "2015-06-03 00:18:56.022196"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.027663"], ["updated_at", "2015-06-03 00:18:56.027663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff9d9682-40fe-446e-bac1-be8ed1aa678c' AND "clubhouse_memberships"."organization_id" = '300e6b81-81bb-4ee4-be53-66bca7f755e3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ff9d9682-40fe-446e-bac1-be8ed1aa678c"], ["organization_id", "300e6b81-81bb-4ee4-be53-66bca7f755e3"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.032640"], ["updated_at", "2015-06-03 00:18:56.032640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5999b27b-5752-496b-8b17-8012a29df994' AND "clubhouse_memberships"."organization_id" = '300e6b81-81bb-4ee4-be53-66bca7f755e3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5999b27b-5752-496b-8b17-8012a29df994"], ["organization_id", "300e6b81-81bb-4ee4-be53-66bca7f755e3"], ["created_at", "2015-06-03 00:18:56.036051"], ["updated_at", "2015-06-03 00:18:56.036051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:56.038838') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "20a5f662-3f55-47d1-b1b7-a6c9d5f14918"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:56.040086"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:56.040859"], ["id", "20a5f662-3f55-47d1-b1b7-a6c9d5f14918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ff9d9682-40fe-446e-bac1-be8ed1aa678c"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ff9d9682-40fe-446e-bac1-be8ed1aa678c' LIMIT 1 [["organization_id", "300e6b81-81bb-4ee4-be53-66bca7f755e3"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "300e6b81-81bb-4ee4-be53-66bca7f755e3"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ff9d9682-40fe-446e-bac1-be8ed1aa678c"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5999b27b-5752-496b-8b17-8012a29df994"]] Completed 200 OK in 15ms (Views: 4.5ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 49"], ["email", "user.49@example.com"], ["password_digest", "$2a$04$oeBc5ToMSQv9vgdya5LZLOGOBmK60Y6.cyIyPfiCvJzVdUelLC5mS"], ["created_at", "2015-06-03 00:18:56.063380"], ["updated_at", "2015-06-03 00:18:56.063380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 50"], ["email", "user.50@example.com"], ["password_digest", "$2a$04$.SfTHAmdz6.R9o0Cej8wLuGKKmdM3aHJ/pNMPntd0HH0kJVex/tAO"], ["created_at", "2015-06-03 00:18:56.079375"], ["updated_at", "2015-06-03 00:18:56.079375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.081505"], ["user_id", "afbeec4c-a93a-484e-bb0e-929e9e7c44f5"], ["created_at", "2015-06-03 00:18:56.082341"], ["updated_at", "2015-06-03 00:18:56.082341"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.088008"], ["updated_at", "2015-06-03 00:18:56.088008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'afbeec4c-a93a-484e-bb0e-929e9e7c44f5' AND "clubhouse_memberships"."organization_id" = '91a2c217-e172-4209-9cc7-d08a215686de') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "afbeec4c-a93a-484e-bb0e-929e9e7c44f5"], ["organization_id", "91a2c217-e172-4209-9cc7-d08a215686de"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.091573"], ["updated_at", "2015-06-03 00:18:56.091573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3cf97fa6-0a84-471d-8e62-23d3471c3b90' AND "clubhouse_memberships"."organization_id" = '91a2c217-e172-4209-9cc7-d08a215686de') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3cf97fa6-0a84-471d-8e62-23d3471c3b90"], ["organization_id", "91a2c217-e172-4209-9cc7-d08a215686de"], ["created_at", "2015-06-03 00:18:56.096290"], ["updated_at", "2015-06-03 00:18:56.096290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 51"], ["email", "user.51@example.com"], ["password_digest", "$2a$04$Xeo7vCpltCts.cpnp01LTu2SJ55ZzRZT6sFMSgFVEIT.YaF1AoRv."], ["created_at", "2015-06-03 00:18:56.106617"], ["updated_at", "2015-06-03 00:18:56.106617"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 52"], ["email", "user.52@example.com"], ["password_digest", "$2a$04$IZrDb84VVM0JgtjGIkaGCuI3mp2wvG4LiA.0d.usOwbRXj5i2Znfu"], ["created_at", "2015-06-03 00:18:56.114001"], ["updated_at", "2015-06-03 00:18:56.114001"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.119182"], ["user_id", "3b3043a8-48fd-4d32-8340-6c2835ac3c0d"], ["created_at", "2015-06-03 00:18:56.120168"], ["updated_at", "2015-06-03 00:18:56.120168"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.124880"], ["updated_at", "2015-06-03 00:18:56.124880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b3043a8-48fd-4d32-8340-6c2835ac3c0d' AND "clubhouse_memberships"."organization_id" = '70d2d439-f856-4715-a7d2-a9657a7a16a6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b3043a8-48fd-4d32-8340-6c2835ac3c0d"], ["organization_id", "70d2d439-f856-4715-a7d2-a9657a7a16a6"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.130114"], ["updated_at", "2015-06-03 00:18:56.130114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a2f5b41-6d30-4b50-854f-7edac3adb787' AND "clubhouse_memberships"."organization_id" = '70d2d439-f856-4715-a7d2-a9657a7a16a6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1a2f5b41-6d30-4b50-854f-7edac3adb787"], ["organization_id", "70d2d439-f856-4715-a7d2-a9657a7a16a6"], ["created_at", "2015-06-03 00:18:56.133654"], ["updated_at", "2015-06-03 00:18:56.133654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/70d2d439-f856-4715-a7d2-a9657a7a16a6/memberships" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"70d2d439-f856-4715-a7d2-a9657a7a16a6", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:56.137186') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c9081d17-d6a7-40c7-83f4-9dd51d822860"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:56.138815"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:56.139627"], ["id", "c9081d17-d6a7-40c7-83f4-9dd51d822860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "70d2d439-f856-4715-a7d2-a9657a7a16a6"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b3043a8-48fd-4d32-8340-6c2835ac3c0d"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b3043a8-48fd-4d32-8340-6c2835ac3c0d' LIMIT 1 [["organization_id", "70d2d439-f856-4715-a7d2-a9657a7a16a6"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "70d2d439-f856-4715-a7d2-a9657a7a16a6"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3b3043a8-48fd-4d32-8340-6c2835ac3c0d"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1a2f5b41-6d30-4b50-854f-7edac3adb787"]] Completed 200 OK in 12ms (Views: 2.8ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 53"], ["email", "user.53@example.com"], ["password_digest", "$2a$04$FncJkefhscjEN5TkR37YE.bRnJ4GePhSO3rp4P3AgZtgMh2BwUyq."], ["created_at", "2015-06-03 00:18:56.156423"], ["updated_at", "2015-06-03 00:18:56.156423"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 54"], ["email", "user.54@example.com"], ["password_digest", "$2a$04$r/2weVm2.E9YHyxQDrFIg.bEJcO4sqPk6LZwbQNUDQ0nsaziynKwm"], ["created_at", "2015-06-03 00:18:56.167290"], ["updated_at", "2015-06-03 00:18:56.167290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.169305"], ["user_id", "0c886397-a613-47a3-807b-78987fbd4c53"], ["created_at", "2015-06-03 00:18:56.170317"], ["updated_at", "2015-06-03 00:18:56.170317"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.175902"], ["updated_at", "2015-06-03 00:18:56.175902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c886397-a613-47a3-807b-78987fbd4c53' AND "clubhouse_memberships"."organization_id" = '454af670-2efd-4dc3-8513-19b1b96399a4') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0c886397-a613-47a3-807b-78987fbd4c53"], ["organization_id", "454af670-2efd-4dc3-8513-19b1b96399a4"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.180503"], ["updated_at", "2015-06-03 00:18:56.180503"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cdf2a4c-a940-4680-b8e8-e02f4135255d' AND "clubhouse_memberships"."organization_id" = '454af670-2efd-4dc3-8513-19b1b96399a4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4cdf2a4c-a940-4680-b8e8-e02f4135255d"], ["organization_id", "454af670-2efd-4dc3-8513-19b1b96399a4"], ["created_at", "2015-06-03 00:18:56.186092"], ["updated_at", "2015-06-03 00:18:56.186092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 55"], ["email", "user.55@example.com"], ["password_digest", "$2a$04$MPufkqygMv3tSGfg4kOsnuzpH4UrKyKUTtq5ygMXCiKXEdjpmsmrm"], ["created_at", "2015-06-03 00:18:56.199234"], ["updated_at", "2015-06-03 00:18:56.199234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 56"], ["email", "user.56@example.com"], ["password_digest", "$2a$04$LcoNeDyizfJ5kB2vi19FNe.HCJdcz78ZVYIQqtaahu8eu9aihCijy"], ["created_at", "2015-06-03 00:18:56.207075"], ["updated_at", "2015-06-03 00:18:56.207075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.209163"], ["user_id", "da35886d-a322-4c00-b18d-b37dd93c4fbe"], ["created_at", "2015-06-03 00:18:56.209884"], ["updated_at", "2015-06-03 00:18:56.209884"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.214832"], ["updated_at", "2015-06-03 00:18:56.214832"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'da35886d-a322-4c00-b18d-b37dd93c4fbe' AND "clubhouse_memberships"."organization_id" = '4a11a328-c442-4819-8ddb-a495f1265386') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "da35886d-a322-4c00-b18d-b37dd93c4fbe"], ["organization_id", "4a11a328-c442-4819-8ddb-a495f1265386"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.220034"], ["updated_at", "2015-06-03 00:18:56.220034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ab11df8c-c284-4e9c-afa3-d1b95035a2cb' AND "clubhouse_memberships"."organization_id" = '4a11a328-c442-4819-8ddb-a495f1265386') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ab11df8c-c284-4e9c-afa3-d1b95035a2cb"], ["organization_id", "4a11a328-c442-4819-8ddb-a495f1265386"], ["created_at", "2015-06-03 00:18:56.225771"], ["updated_at", "2015-06-03 00:18:56.225771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 57"], ["email", "user.57@example.com"], ["password_digest", "$2a$04$Of2tqII9K7KoEnQPJzon8OhDe1KkFqBBlE3BXXBx5o/qe.Lb7wcz6"], ["created_at", "2015-06-03 00:18:56.233229"], ["updated_at", "2015-06-03 00:18:56.233229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.235751"], ["user_id", "748d0ad0-117c-4853-87c5-e5a13172e7c4"], ["created_at", "2015-06-03 00:18:56.236425"], ["updated_at", "2015-06-03 00:18:56.236425"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '4a11a328-c442-4819-8ddb-a495f1265386') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "4a11a328-c442-4819-8ddb-a495f1265386"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.241208"], ["updated_at", "2015-06-03 00:18:56.241208"], ["token", "JUAaAsAr5Invc5wv95cr1L-Rf31trItNoqkEJjADXqo"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 58"], ["email", "user.58@example.com"], ["password_digest", "$2a$04$rW2N7noLW5CjjpZJYApy3.h/gItzvIL/iwnib3ScM7Ntm7a5IoW/y"], ["created_at", "2015-06-03 00:18:56.256271"], ["updated_at", "2015-06-03 00:18:56.256271"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 59"], ["email", "user.59@example.com"], ["password_digest", "$2a$04$e5Pv9GVdPWDBRhpOXIJX6.oeOsVYfr39IT9WPeXole6F93SE/cGkS"], ["created_at", "2015-06-03 00:18:56.263917"], ["updated_at", "2015-06-03 00:18:56.263917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.266139"], ["user_id", "4be283c3-9ef5-40a2-9100-e8661867563a"], ["created_at", "2015-06-03 00:18:56.267336"], ["updated_at", "2015-06-03 00:18:56.267336"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.273083"], ["updated_at", "2015-06-03 00:18:56.273083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4be283c3-9ef5-40a2-9100-e8661867563a' AND "clubhouse_memberships"."organization_id" = 'c0509d87-7a1c-4dd5-9b98-721dbd71c6cd') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4be283c3-9ef5-40a2-9100-e8661867563a"], ["organization_id", "c0509d87-7a1c-4dd5-9b98-721dbd71c6cd"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.277128"], ["updated_at", "2015-06-03 00:18:56.277128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8d33ed7a-03bc-446e-aab8-57f76e43091d' AND "clubhouse_memberships"."organization_id" = 'c0509d87-7a1c-4dd5-9b98-721dbd71c6cd') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8d33ed7a-03bc-446e-aab8-57f76e43091d"], ["organization_id", "c0509d87-7a1c-4dd5-9b98-721dbd71c6cd"], ["created_at", "2015-06-03 00:18:56.280485"], ["updated_at", "2015-06-03 00:18:56.280485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 60"], ["email", "user.60@example.com"], ["password_digest", "$2a$04$L2UbU6hxS/XJoDMc.dIbr.QjIf01eeh/RZdy2JfRL3uAYcOXT.2Ha"], ["created_at", "2015-06-03 00:18:56.287086"], ["updated_at", "2015-06-03 00:18:56.287086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.289188"], ["user_id", "08003731-db22-4f8f-bd91-71101fcb51df"], ["created_at", "2015-06-03 00:18:56.289873"], ["updated_at", "2015-06-03 00:18:56.289873"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'c0509d87-7a1c-4dd5-9b98-721dbd71c6cd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "c0509d87-7a1c-4dd5-9b98-721dbd71c6cd"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.298295"], ["updated_at", "2015-06-03 00:18:56.298295"], ["token", "u0U3yviY0gdmwB2S82CWgeaoQFVxxT09oxBkXfPm16U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:56.303053') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6755ad1e-1f49-4c3e-b7ee-d578474577d6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:56.304834"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:56.305797"], ["id", "6755ad1e-1f49-4c3e-b7ee-d578474577d6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08003731-db22-4f8f-bd91-71101fcb51df"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 15ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 61"], ["email", "user.61@example.com"], ["password_digest", "$2a$04$N13U1X/wwnr0pbmrcy56/eG9AauOuo8hNGWFHgBwDM2b5j4aLibby"], ["created_at", "2015-06-03 00:18:56.328810"], ["updated_at", "2015-06-03 00:18:56.328810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 62"], ["email", "user.62@example.com"], ["password_digest", "$2a$04$sgKvcnUgj01LsIuQQn2Zwe4AgNMpIHRpJOfrIWgzc1sCOJCCIsOCi"], ["created_at", "2015-06-03 00:18:56.335483"], ["updated_at", "2015-06-03 00:18:56.335483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.337395"], ["user_id", "15b8a6b7-117c-4609-bb17-c5d74e1ded94"], ["created_at", "2015-06-03 00:18:56.338560"], ["updated_at", "2015-06-03 00:18:56.338560"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.345353"], ["updated_at", "2015-06-03 00:18:56.345353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15b8a6b7-117c-4609-bb17-c5d74e1ded94' AND "clubhouse_memberships"."organization_id" = 'e27ac592-8a48-454d-bc58-11ac2acb79e0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15b8a6b7-117c-4609-bb17-c5d74e1ded94"], ["organization_id", "e27ac592-8a48-454d-bc58-11ac2acb79e0"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.349415"], ["updated_at", "2015-06-03 00:18:56.349415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1fcc032a-91a0-4132-9a09-51dfe3bcba74' AND "clubhouse_memberships"."organization_id" = 'e27ac592-8a48-454d-bc58-11ac2acb79e0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1fcc032a-91a0-4132-9a09-51dfe3bcba74"], ["organization_id", "e27ac592-8a48-454d-bc58-11ac2acb79e0"], ["created_at", "2015-06-03 00:18:56.353369"], ["updated_at", "2015-06-03 00:18:56.353369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 63"], ["email", "user.63@example.com"], ["password_digest", "$2a$04$uZPNJyBQyDfy0QniZXZ8eOjKGuP7n2i6XRormEqwK.A7SicHrA6aW"], ["created_at", "2015-06-03 00:18:56.360214"], ["updated_at", "2015-06-03 00:18:56.360214"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.363236"], ["user_id", "6fc7d4d5-816e-4a36-bdfc-529163407de9"], ["created_at", "2015-06-03 00:18:56.364182"], ["updated_at", "2015-06-03 00:18:56.364182"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = 'e27ac592-8a48-454d-bc58-11ac2acb79e0') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "e27ac592-8a48-454d-bc58-11ac2acb79e0"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.370686"], ["updated_at", "2015-06-03 00:18:56.370686"], ["token", "CseTzkeaw8AsuCkSY_LghNsWPb7bJCc8KE7A49XNWEU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"CseTzkeaw8AsuCkSY_LghNsWPb7bJCc8KE7A49XNWEU", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (1.0ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:56.377215') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "18b9f5b6-dd20-4c4b-9043-47d8e51c1fc1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:56.381272"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:56.382344"], ["id", "18b9f5b6-dd20-4c4b-9043-47d8e51c1fc1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6fc7d4d5-816e-4a36-bdfc-529163407de9"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "CseTzkeaw8AsuCkSY_LghNsWPb7bJCc8KE7A49XNWEU"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e27ac592-8a48-454d-bc58-11ac2acb79e0"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6fc7d4d5-816e-4a36-bdfc-529163407de9' AND "clubhouse_memberships"."organization_id" = 'e27ac592-8a48-454d-bc58-11ac2acb79e0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "e27ac592-8a48-454d-bc58-11ac2acb79e0"], ["member_id", "6fc7d4d5-816e-4a36-bdfc-529163407de9"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.389677"], ["updated_at", "2015-06-03 00:18:56.389677"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "ee841c51-2f54-4cd9-a83e-bd748ea79972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 1.3ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 64"], ["email", "user.64@example.com"], ["password_digest", "$2a$04$NRVdO3i7I.YEBHQybNWh0e2mPrF5uWG7aOtfnYnrncvnEYVb5JPEm"], ["created_at", "2015-06-03 00:18:56.403871"], ["updated_at", "2015-06-03 00:18:56.403871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 65"], ["email", "user.65@example.com"], ["password_digest", "$2a$04$nUr1dPo715Qruuzku5FnC.jtlb8HS5d2NcET9dLGRlm1.pFxtGVKq"], ["created_at", "2015-06-03 00:18:56.409346"], ["updated_at", "2015-06-03 00:18:56.409346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.411772"], ["user_id", "cfef246c-000b-440d-821c-67582930140d"], ["created_at", "2015-06-03 00:18:56.412742"], ["updated_at", "2015-06-03 00:18:56.412742"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.417685"], ["updated_at", "2015-06-03 00:18:56.417685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cfef246c-000b-440d-821c-67582930140d' AND "clubhouse_memberships"."organization_id" = '2e7bf962-041d-409e-bf44-057c731fafc2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cfef246c-000b-440d-821c-67582930140d"], ["organization_id", "2e7bf962-041d-409e-bf44-057c731fafc2"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.421710"], ["updated_at", "2015-06-03 00:18:56.421710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1bec98ed-a635-474e-82f6-c51e8664c2fe' AND "clubhouse_memberships"."organization_id" = '2e7bf962-041d-409e-bf44-057c731fafc2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1bec98ed-a635-474e-82f6-c51e8664c2fe"], ["organization_id", "2e7bf962-041d-409e-bf44-057c731fafc2"], ["created_at", "2015-06-03 00:18:56.424874"], ["updated_at", "2015-06-03 00:18:56.424874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/49d13052-1346-4c71-9354-91969297fbd2" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"49d13052-1346-4c71-9354-91969297fbd2", "membership"=>{"admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:56.428872') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b2fb75d1-2efd-4f61-8bde-c242ccbd4711"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:56.431684"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:56.432991"], ["id", "b2fb75d1-2efd-4f61-8bde-c242ccbd4711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "49d13052-1346-4c71-9354-91969297fbd2"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cfef246c-000b-440d-821c-67582930140d"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2e7bf962-041d-409e-bf44-057c731fafc2"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cfef246c-000b-440d-821c-67582930140d' LIMIT 1 [["organization_id", "2e7bf962-041d-409e-bf44-057c731fafc2"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1bec98ed-a635-474e-82f6-c51e8664c2fe"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1bec98ed-a635-474e-82f6-c51e8664c2fe' AND "clubhouse_memberships"."id" != '49d13052-1346-4c71-9354-91969297fbd2' AND "clubhouse_memberships"."organization_id" = '2e7bf962-041d-409e-bf44-057c731fafc2') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-06-03 00:18:56.447206"], ["id", "49d13052-1346-4c71-9354-91969297fbd2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 23ms (Views: 1.1ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 66"], ["email", "user.66@example.com"], ["password_digest", "$2a$04$8AN//s3JGYrHRiGbwxWBV.N1CLsfzgXI6PWlapbm7fNR4Y6yKuJ0e"], ["created_at", "2015-06-03 00:18:56.467730"], ["updated_at", "2015-06-03 00:18:56.467730"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 67"], ["email", "user.67@example.com"], ["password_digest", "$2a$04$ssBzw.IiXXnVrqgfczEguukCtgh5BoZN4ZPDmB7dgORMeoq7U/pTO"], ["created_at", "2015-06-03 00:18:56.484062"], ["updated_at", "2015-06-03 00:18:56.484062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.486296"], ["user_id", "d1af4670-b1ea-40fa-afe8-db2c23902b5a"], ["created_at", "2015-06-03 00:18:56.487169"], ["updated_at", "2015-06-03 00:18:56.487169"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.495593"], ["updated_at", "2015-06-03 00:18:56.495593"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd1af4670-b1ea-40fa-afe8-db2c23902b5a' AND "clubhouse_memberships"."organization_id" = '74a29608-0b34-43bc-9cd3-2711021a6c66') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d1af4670-b1ea-40fa-afe8-db2c23902b5a"], ["organization_id", "74a29608-0b34-43bc-9cd3-2711021a6c66"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.500567"], ["updated_at", "2015-06-03 00:18:56.500567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbe3d6d2-ce2a-44da-9d93-6d1eb36cd9f1' AND "clubhouse_memberships"."organization_id" = '74a29608-0b34-43bc-9cd3-2711021a6c66') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbe3d6d2-ce2a-44da-9d93-6d1eb36cd9f1"], ["organization_id", "74a29608-0b34-43bc-9cd3-2711021a6c66"], ["created_at", "2015-06-03 00:18:56.503663"], ["updated_at", "2015-06-03 00:18:56.503663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 68"], ["email", "user.68@example.com"], ["password_digest", "$2a$04$Ks.iT7434oXS1GgytvPLiuhOoj1M8M2GK4ucafCXDjK2g6ATu2jU."], ["created_at", "2015-06-03 00:18:56.515057"], ["updated_at", "2015-06-03 00:18:56.515057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 69"], ["email", "user.69@example.com"], ["password_digest", "$2a$04$rS1/y7oGoxYOFgHWiQvCp.v80WjZK0oSolqbmZvKdo.Z7ky3UwnP."], ["created_at", "2015-06-03 00:18:56.522435"], ["updated_at", "2015-06-03 00:18:56.522435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.525520"], ["user_id", "f8362e33-172e-4e08-bb8c-9075370a3007"], ["created_at", "2015-06-03 00:18:56.526336"], ["updated_at", "2015-06-03 00:18:56.526336"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.533333"], ["updated_at", "2015-06-03 00:18:56.533333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f8362e33-172e-4e08-bb8c-9075370a3007' AND "clubhouse_memberships"."organization_id" = '8fac3989-f4a6-4b52-8262-dcd5d38388b4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f8362e33-172e-4e08-bb8c-9075370a3007"], ["organization_id", "8fac3989-f4a6-4b52-8262-dcd5d38388b4"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.538199"], ["updated_at", "2015-06-03 00:18:56.538199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '26227b40-6cbb-4a91-a780-c9eae8a5a847' AND "clubhouse_memberships"."organization_id" = '8fac3989-f4a6-4b52-8262-dcd5d38388b4') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "26227b40-6cbb-4a91-a780-c9eae8a5a847"], ["organization_id", "8fac3989-f4a6-4b52-8262-dcd5d38388b4"], ["created_at", "2015-06-03 00:18:56.541555"], ["updated_at", "2015-06-03 00:18:56.541555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 70"], ["email", "user.70@example.com"], ["password_digest", "$2a$04$ZgFBeUuTHCFKbbVXrMAoje76VMND64QNboDTbyhF70EOUX73oEaUW"], ["created_at", "2015-06-03 00:18:56.549267"], ["updated_at", "2015-06-03 00:18:56.549267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.551406"], ["user_id", "859d1586-7103-43aa-b076-6fa2d9186728"], ["created_at", "2015-06-03 00:18:56.552232"], ["updated_at", "2015-06-03 00:18:56.552232"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '8fac3989-f4a6-4b52-8262-dcd5d38388b4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "8fac3989-f4a6-4b52-8262-dcd5d38388b4"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.556843"], ["updated_at", "2015-06-03 00:18:56.556843"], ["token", "LtCMpXhD-ay_nLIRixmSaLAnY2LajoAW49oTdOMq0Vo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 71"], ["email", "user.71@example.com"], ["password_digest", "$2a$04$pdcvJrgTfWqFHJaDNkBucuvGPjP7PvbDq5y0URST46P/KrAN9SCLu"], ["created_at", "2015-06-03 00:18:56.571489"], ["updated_at", "2015-06-03 00:18:56.571489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 72"], ["email", "user.72@example.com"], ["password_digest", "$2a$04$Vzxfgev72mWEYrKh1BGOROSGUIZLEuiAq0LwsZDUp1GAl2OfRRFdK"], ["created_at", "2015-06-03 00:18:56.577244"], ["updated_at", "2015-06-03 00:18:56.577244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.579372"], ["user_id", "309625c6-6b38-4489-b435-026804eb03fa"], ["created_at", "2015-06-03 00:18:56.580791"], ["updated_at", "2015-06-03 00:18:56.580791"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.587903"], ["updated_at", "2015-06-03 00:18:56.587903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '309625c6-6b38-4489-b435-026804eb03fa' AND "clubhouse_memberships"."organization_id" = '5900298b-a887-4146-9397-e8e093330eda') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "309625c6-6b38-4489-b435-026804eb03fa"], ["organization_id", "5900298b-a887-4146-9397-e8e093330eda"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.593415"], ["updated_at", "2015-06-03 00:18:56.593415"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c17a74ad-d274-43e8-bd87-a745621d35a2' AND "clubhouse_memberships"."organization_id" = '5900298b-a887-4146-9397-e8e093330eda') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c17a74ad-d274-43e8-bd87-a745621d35a2"], ["organization_id", "5900298b-a887-4146-9397-e8e093330eda"], ["created_at", "2015-06-03 00:18:56.598644"], ["updated_at", "2015-06-03 00:18:56.598644"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 73"], ["email", "user.73@example.com"], ["password_digest", "$2a$04$x/drtd0CyBcC/sEquAGK4Oenc0MnGCxqPMyIfZDD1LywBM0Y./ml2"], ["created_at", "2015-06-03 00:18:56.605629"], ["updated_at", "2015-06-03 00:18:56.605629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.607414"], ["user_id", "89de39fe-208f-44f5-a262-ab940a2ece6f"], ["created_at", "2015-06-03 00:18:56.608357"], ["updated_at", "2015-06-03 00:18:56.608357"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '5900298b-a887-4146-9397-e8e093330eda') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "5900298b-a887-4146-9397-e8e093330eda"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.616206"], ["updated_at", "2015-06-03 00:18:56.616206"], ["token", "5-5oHfWOh9yKspah6sO1sHzkCzKJiq_8uTGDcf4Pf5U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5900298b-a887-4146-9397-e8e093330eda/memberships" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"5900298b-a887-4146-9397-e8e093330eda", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:56.621096') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7c6fd646-2038-4b63-8098-96991c349b66"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:56.622863"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:56.623741"], ["id", "7c6fd646-2038-4b63-8098-96991c349b66"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5900298b-a887-4146-9397-e8e093330eda"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "89de39fe-208f-44f5-a262-ab940a2ece6f"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 74"], ["email", "user.74@example.com"], ["password_digest", "$2a$04$dBJxXKqj0Gtxth7qitYunuFLVpgryO8zZdU92IQbeqxV69n02SLQm"], ["created_at", "2015-06-03 00:18:56.638894"], ["updated_at", "2015-06-03 00:18:56.638894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 75"], ["email", "user.75@example.com"], ["password_digest", "$2a$04$e/akS4XM5q1CzR3F3pTgq.qeG1aZk.5nnenYx6Ouig2Q7.6sL1N5O"], ["created_at", "2015-06-03 00:18:56.644256"], ["updated_at", "2015-06-03 00:18:56.644256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.645855"], ["user_id", "1f3e5629-7c2f-472b-9afe-0a9cbfc5cfd6"], ["created_at", "2015-06-03 00:18:56.646550"], ["updated_at", "2015-06-03 00:18:56.646550"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.653295"], ["updated_at", "2015-06-03 00:18:56.653295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1f3e5629-7c2f-472b-9afe-0a9cbfc5cfd6' AND "clubhouse_memberships"."organization_id" = '43637375-ad9f-4c64-861c-b44268ebe8e9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1f3e5629-7c2f-472b-9afe-0a9cbfc5cfd6"], ["organization_id", "43637375-ad9f-4c64-861c-b44268ebe8e9"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.659244"], ["updated_at", "2015-06-03 00:18:56.659244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52df3666-1f0a-463f-9a3d-be15ded64163' AND "clubhouse_memberships"."organization_id" = '43637375-ad9f-4c64-861c-b44268ebe8e9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "52df3666-1f0a-463f-9a3d-be15ded64163"], ["organization_id", "43637375-ad9f-4c64-861c-b44268ebe8e9"], ["created_at", "2015-06-03 00:18:56.663158"], ["updated_at", "2015-06-03 00:18:56.663158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 76"], ["email", "user.76@example.com"], ["password_digest", "$2a$04$Ads0Y2ZqJJo77y/ijMmO3.GJEMFXDEBe80IXIBHzauP4pkHj/z30C"], ["created_at", "2015-06-03 00:18:56.672555"], ["updated_at", "2015-06-03 00:18:56.672555"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.676950"], ["user_id", "43df690f-f878-4bd0-a257-41d290d6d41c"], ["created_at", "2015-06-03 00:18:56.678302"], ["updated_at", "2015-06-03 00:18:56.678302"], ["client", "App"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '43637375-ad9f-4c64-861c-b44268ebe8e9') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "43637375-ad9f-4c64-861c-b44268ebe8e9"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.687416"], ["updated_at", "2015-06-03 00:18:56.687416"], ["token", "5yFiUpcTgguK2qn5gFzOX5h6VuY7HpL5kjjK-ZLCPxI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/43637375-ad9f-4c64-861c-b44268ebe8e9/memberships" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"5yFiUpcTgguK2qn5gFzOX5h6VuY7HpL5kjjK-ZLCPxI", "organization_id"=>"43637375-ad9f-4c64-861c-b44268ebe8e9", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:56.691793') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "96545926-93d9-42e9-ac2e-2c0147f8f319"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:56.693865"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:56.694749"], ["id", "96545926-93d9-42e9-ac2e-2c0147f8f319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "43637375-ad9f-4c64-861c-b44268ebe8e9"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "43df690f-f878-4bd0-a257-41d290d6d41c"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "5yFiUpcTgguK2qn5gFzOX5h6VuY7HpL5kjjK-ZLCPxI"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "43637375-ad9f-4c64-861c-b44268ebe8e9"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43df690f-f878-4bd0-a257-41d290d6d41c' AND "clubhouse_memberships"."organization_id" = '43637375-ad9f-4c64-861c-b44268ebe8e9') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "43637375-ad9f-4c64-861c-b44268ebe8e9"], ["member_id", "43df690f-f878-4bd0-a257-41d290d6d41c"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.704527"], ["updated_at", "2015-06-03 00:18:56.704527"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "80d11420-d90c-456d-b74f-8ca6d38cda38"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 1.2ms | ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 77"], ["email", "user.77@example.com"], ["password_digest", "$2a$04$3hRZtachoOl3b8Ra9m01GuvBxLIInzRs2UcYym7X9V50o1TfcgE16"], ["created_at", "2015-06-03 00:18:56.729637"], ["updated_at", "2015-06-03 00:18:56.729637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.733995"], ["updated_at", "2015-06-03 00:18:56.733995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32f3d15e-b905-4983-b39f-ecbeb673bacb' AND "clubhouse_memberships"."organization_id" = '8a2682a4-b83f-4319-a495-de0dbdf8411c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "32f3d15e-b905-4983-b39f-ecbeb673bacb"], ["organization_id", "8a2682a4-b83f-4319-a495-de0dbdf8411c"], ["created_at", "2015-06-03 00:18:56.736962"], ["updated_at", "2015-06-03 00:18:56.736962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "32f3d15e-b905-4983-b39f-ecbeb673bacb"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8a2682a4-b83f-4319-a495-de0dbdf8411c"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32f3d15e-b905-4983-b39f-ecbeb673bacb' AND "clubhouse_memberships"."organization_id" = '8a2682a4-b83f-4319-a495-de0dbdf8411c') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8a2682a4-b83f-4319-a495-de0dbdf8411d"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32f3d15e-b905-4983-b39f-ecbeb673bacb' AND "clubhouse_memberships"."organization_id" = '8a2682a4-b83f-4319-a495-de0dbdf8411d') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 78"], ["email", "user.78@example.com"], ["password_digest", "$2a$04$adNuiWErdYsIew2.TLIaxuatCXyQbiCSIL/CEXgo8ShQht1nC2CeO"], ["created_at", "2015-06-03 00:18:56.757186"], ["updated_at", "2015-06-03 00:18:56.757186"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.759870"], ["user_id", "d9943130-6a34-44ae-8b9b-b6c74dc1d70c"], ["created_at", "2015-06-03 00:18:56.761850"], ["updated_at", "2015-06-03 00:18:56.761850"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.766790"], ["updated_at", "2015-06-03 00:18:56.766790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd9943130-6a34-44ae-8b9b-b6c74dc1d70c' AND "clubhouse_memberships"."organization_id" = '084fe2d1-998d-4eba-b334-0f95bf446929') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d9943130-6a34-44ae-8b9b-b6c74dc1d70c"], ["organization_id", "084fe2d1-998d-4eba-b334-0f95bf446929"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.771760"], ["updated_at", "2015-06-03 00:18:56.771760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-06-02 17:18:56 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 79"], ["email", "user.79@example.com"], ["password_digest", "$2a$04$7SZUbYxMVb3uSzxaePBqUu8lnz3ezvZZJsIm3eujocNCHLx41AI4e"], ["created_at", "2015-06-03 00:18:56.781657"], ["updated_at", "2015-06-03 00:18:56.781657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.783967"], ["user_id", "7b9fa195-f16e-4ba1-80e4-933510373964"], ["created_at", "2015-06-03 00:18:56.784682"], ["updated_at", "2015-06-03 00:18:56.784682"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.789498"], ["updated_at", "2015-06-03 00:18:56.789498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b9fa195-f16e-4ba1-80e4-933510373964' AND "clubhouse_memberships"."organization_id" = '63f8dd4a-e675-4060-a4d8-e59f0e4c3c48') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b9fa195-f16e-4ba1-80e4-933510373964"], ["organization_id", "63f8dd4a-e675-4060-a4d8-e59f0e4c3c48"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.794328"], ["updated_at", "2015-06-03 00:18:56.794328"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-06-02 17:18:56 -0700  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 80"], ["email", "user.80@example.com"], ["password_digest", "$2a$04$EkjG4gZ4pF37Pi./5wNdvef3UgqlhaVDP2OZv.dGziroHgTuGIcTq"], ["created_at", "2015-06-03 00:18:56.805531"], ["updated_at", "2015-06-03 00:18:56.805531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.808202"], ["user_id", "e2d594e4-ab33-4676-ad0b-88ade7e13a27"], ["created_at", "2015-06-03 00:18:56.809286"], ["updated_at", "2015-06-03 00:18:56.809286"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.815485"], ["updated_at", "2015-06-03 00:18:56.815485"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2d594e4-ab33-4676-ad0b-88ade7e13a27' AND "clubhouse_memberships"."organization_id" = '2bcdee3f-e114-4bd2-84c2-747db02c5a41') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2d594e4-ab33-4676-ad0b-88ade7e13a27"], ["organization_id", "2bcdee3f-e114-4bd2-84c2-747db02c5a41"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.821551"], ["updated_at", "2015-06-03 00:18:56.821551"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-25" for 127.0.0.1 at 2015-06-02 17:18:56 -0700  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 81"], ["email", "user.81@example.com"], ["password_digest", "$2a$04$HYuLE1257qEtpCNrqJoaUOA.tmdCa8z4MMTpyJ.3ZT3NJ3ITGgz/u"], ["created_at", "2015-06-03 00:18:56.834648"], ["updated_at", "2015-06-03 00:18:56.834648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.836809"], ["user_id", "1ce0f11d-33d0-4840-a79d-1189e96872c0"], ["created_at", "2015-06-03 00:18:56.837485"], ["updated_at", "2015-06-03 00:18:56.837485"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.842922"], ["updated_at", "2015-06-03 00:18:56.842922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1ce0f11d-33d0-4840-a79d-1189e96872c0' AND "clubhouse_memberships"."organization_id" = 'e178b7e3-84b8-4b57-85c9-700b34a2bc5d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1ce0f11d-33d0-4840-a79d-1189e96872c0"], ["organization_id", "e178b7e3-84b8-4b57-85c9-700b34a2bc5d"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.846640"], ["updated_at", "2015-06-03 00:18:56.846640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/e178b7e3-84b8-4b57-85c9-700b34a2bc5d" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"e178b7e3-84b8-4b57-85c9-700b34a2bc5d", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:56.853084') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "98fffc65-6ad0-4dd7-842b-8da449065198"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:56.855267"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:56.856336"], ["id", "98fffc65-6ad0-4dd7-842b-8da449065198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e178b7e3-84b8-4b57-85c9-700b34a2bc5d"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1ce0f11d-33d0-4840-a79d-1189e96872c0"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1ce0f11d-33d0-4840-a79d-1189e96872c0' LIMIT 1 [["organization_id", "e178b7e3-84b8-4b57-85c9-700b34a2bc5d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "e178b7e3-84b8-4b57-85c9-700b34a2bc5d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 15ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 82"], ["email", "user.82@example.com"], ["password_digest", "$2a$04$6kvHvEUYw2PTRn0He/.UN.6avomxlAFJ7nc96XfTZ/ZImpZFcD6TK"], ["created_at", "2015-06-03 00:18:56.877542"], ["updated_at", "2015-06-03 00:18:56.877542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.880267"], ["user_id", "92f9dca1-c4de-45eb-98ba-3ec603b8b041"], ["created_at", "2015-06-03 00:18:56.881431"], ["updated_at", "2015-06-03 00:18:56.881431"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.888039"], ["updated_at", "2015-06-03 00:18:56.888039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92f9dca1-c4de-45eb-98ba-3ec603b8b041' AND "clubhouse_memberships"."organization_id" = 'd467fedb-e9a4-4315-ac55-d8c674ab7cb8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "92f9dca1-c4de-45eb-98ba-3ec603b8b041"], ["organization_id", "d467fedb-e9a4-4315-ac55-d8c674ab7cb8"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.892578"], ["updated_at", "2015-06-03 00:18:56.892578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 83"], ["email", "user.83@example.com"], ["password_digest", "$2a$04$HkvW3KYILeL0kZGzoA6ijebJskaRbYfUevGBD1/qL.7RkF0OSIwyW"], ["created_at", "2015-06-03 00:18:56.904981"], ["updated_at", "2015-06-03 00:18:56.904981"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.908123"], ["user_id", "499656e5-e318-4bc3-be21-a9a586b94e58"], ["created_at", "2015-06-03 00:18:56.909393"], ["updated_at", "2015-06-03 00:18:56.909393"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.915066"], ["updated_at", "2015-06-03 00:18:56.915066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '499656e5-e318-4bc3-be21-a9a586b94e58' AND "clubhouse_memberships"."organization_id" = '3a6a5627-4211-421a-8f4f-951246df478f') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "499656e5-e318-4bc3-be21-a9a586b94e58"], ["organization_id", "3a6a5627-4211-421a-8f4f-951246df478f"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.919924"], ["updated_at", "2015-06-03 00:18:56.919924"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 84"], ["email", "user.84@example.com"], ["password_digest", "$2a$04$Qpd8mEMG5rw9nULwicI5puRMUpyDJBA6WY0B0sEVB1BXYvKcnwDxi"], ["created_at", "2015-06-03 00:18:56.930762"], ["updated_at", "2015-06-03 00:18:56.930762"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.936536"], ["updated_at", "2015-06-03 00:18:56.936536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6088e0d3-7aee-4ec3-9e7b-d0b8c3b2e5e3' AND "clubhouse_memberships"."organization_id" = 'b74ed9da-8218-4acd-a7b7-8bfb3f8ec34c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6088e0d3-7aee-4ec3-9e7b-d0b8c3b2e5e3"], ["organization_id", "b74ed9da-8218-4acd-a7b7-8bfb3f8ec34c"], ["created_at", "2015-06-03 00:18:56.940337"], ["updated_at", "2015-06-03 00:18:56.940337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:56.943410') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2bb4c457-1fd3-4ffa-93e9-4ca9a496e8e6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:56.944868"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:56.945666"], ["id", "2bb4c457-1fd3-4ffa-93e9-4ca9a496e8e6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "499656e5-e318-4bc3-be21-a9a586b94e58"]] Clubhouse::Organization Load (0.9ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "499656e5-e318-4bc3-be21-a9a586b94e58"]] Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 85"], ["email", "user.85@example.com"], ["password_digest", "$2a$04$iiiv7.A4Ord7IWRXnSV3UeBo0hrZB8mnQuAqp1zxEC9y.e5DNfWGe"], ["created_at", "2015-06-03 00:18:56.962452"], ["updated_at", "2015-06-03 00:18:56.962452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:56.964531"], ["user_id", "d4f4cae2-9f34-42a9-9fc6-c15d70d9c9b5"], ["created_at", "2015-06-03 00:18:56.965412"], ["updated_at", "2015-06-03 00:18:56.965412"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.970609"], ["updated_at", "2015-06-03 00:18:56.970609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4f4cae2-9f34-42a9-9fc6-c15d70d9c9b5' AND "clubhouse_memberships"."organization_id" = '9e63fc5e-1d07-4623-ab84-77e71e63acfa') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4f4cae2-9f34-42a9-9fc6-c15d70d9c9b5"], ["organization_id", "9e63fc5e-1d07-4623-ab84-77e71e63acfa"], ["admin", "t"], ["created_at", "2015-06-03 00:18:56.974280"], ["updated_at", "2015-06-03 00:18:56.974280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 86"], ["email", "user.86@example.com"], ["password_digest", "$2a$04$hKE1Pvl2pe0yJmmpxtYi1OzFjj/bd7aQz3sv9sjfcWC3K8T1VrdB6"], ["created_at", "2015-06-03 00:18:56.980673"], ["updated_at", "2015-06-03 00:18:56.980673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:56.985824"], ["updated_at", "2015-06-03 00:18:56.985824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4212a4c6-2f54-4a53-9d01-bdea879b0f3c' AND "clubhouse_memberships"."organization_id" = '43392856-e4db-44a9-86c4-eea4959fe04e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4212a4c6-2f54-4a53-9d01-bdea879b0f3c"], ["organization_id", "43392856-e4db-44a9-86c4-eea4959fe04e"], ["created_at", "2015-06-03 00:18:56.989970"], ["updated_at", "2015-06-03 00:18:56.989970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-06-02 17:18:56 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 87"], ["email", "user.87@example.com"], ["password_digest", "$2a$04$0Cv982YdFgMtmhZ5aWu3fuqUkcThF/SKZ5ndQlCU9I0pULpCyv2lW"], ["created_at", "2015-06-03 00:18:57.001469"], ["updated_at", "2015-06-03 00:18:57.001469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.003226"], ["user_id", "f9f5b842-d893-4f39-bdc7-2deeec9e7543"], ["created_at", "2015-06-03 00:18:57.003919"], ["updated_at", "2015-06-03 00:18:57.003919"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.010947"], ["updated_at", "2015-06-03 00:18:57.010947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f9f5b842-d893-4f39-bdc7-2deeec9e7543' AND "clubhouse_memberships"."organization_id" = 'efd3c16e-5161-41dd-b1d2-2e8160ba67fa') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f9f5b842-d893-4f39-bdc7-2deeec9e7543"], ["organization_id", "efd3c16e-5161-41dd-b1d2-2e8160ba67fa"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.015419"], ["updated_at", "2015-06-03 00:18:57.015419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 88"], ["email", "user.88@example.com"], ["password_digest", "$2a$04$YidGGHLOmRtlNUt/qaSDveIY0S9/ELfffbrKuG8NyxT0q2TSHLxPW"], ["created_at", "2015-06-03 00:18:57.026448"], ["updated_at", "2015-06-03 00:18:57.026448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.028569"], ["user_id", "fe85397f-84a0-4a1f-90be-c44d84066c47"], ["created_at", "2015-06-03 00:18:57.029330"], ["updated_at", "2015-06-03 00:18:57.029330"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.033471"], ["updated_at", "2015-06-03 00:18:57.033471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fe85397f-84a0-4a1f-90be-c44d84066c47' AND "clubhouse_memberships"."organization_id" = '603400dc-fc44-4a7a-86e7-523035ce30b9') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fe85397f-84a0-4a1f-90be-c44d84066c47"], ["organization_id", "603400dc-fc44-4a7a-86e7-523035ce30b9"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.036485"], ["updated_at", "2015-06-03 00:18:57.036485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-33" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-33", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:57.040504') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "76ff1489-35f2-4e3a-b36a-a5fdb71f7597"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:57.042383"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:57.043985"], ["id", "76ff1489-35f2-4e3a-b36a-a5fdb71f7597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-33"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fe85397f-84a0-4a1f-90be-c44d84066c47"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'fe85397f-84a0-4a1f-90be-c44d84066c47' LIMIT 1 [["organization_id", "603400dc-fc44-4a7a-86e7-523035ce30b9"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '603400dc-fc44-4a7a-86e7-523035ce30b9') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 89"], ["email", "user.89@example.com"], ["password_digest", "$2a$04$sfOlDqY9L0LVLHK10lNRMOUobFyvw2yF7AzpAIU9vDKTIN9/Uv.3a"], ["created_at", "2015-06-03 00:18:57.066375"], ["updated_at", "2015-06-03 00:18:57.066375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.069151"], ["user_id", "691cde2b-b7a2-43c6-a377-94e3b967ad36"], ["created_at", "2015-06-03 00:18:57.070027"], ["updated_at", "2015-06-03 00:18:57.070027"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.077332"], ["updated_at", "2015-06-03 00:18:57.077332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '691cde2b-b7a2-43c6-a377-94e3b967ad36' AND "clubhouse_memberships"."organization_id" = '38aaf412-7437-41cc-9f1c-e9836b68fa68') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "691cde2b-b7a2-43c6-a377-94e3b967ad36"], ["organization_id", "38aaf412-7437-41cc-9f1c-e9836b68fa68"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.082439"], ["updated_at", "2015-06-03 00:18:57.082439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-34" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-34", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:57.086228') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "027fa496-d462-43f1-b52f-525d26ce8441"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:57.087969"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:57.089186"], ["id", "027fa496-d462-43f1-b52f-525d26ce8441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-34"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "691cde2b-b7a2-43c6-a377-94e3b967ad36"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '691cde2b-b7a2-43c6-a377-94e3b967ad36' LIMIT 1 [["organization_id", "38aaf412-7437-41cc-9f1c-e9836b68fa68"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '38aaf412-7437-41cc-9f1c-e9836b68fa68') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-03 00:18:57.099118"], ["id", "38aaf412-7437-41cc-9f1c-e9836b68fa68"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.7ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 90"], ["email", "user.90@example.com"], ["password_digest", "$2a$04$gTCxqk2O0dXSLy7VLusQ7epygjIILbeDxdALKmG2ERrsUSQuew7FO"], ["created_at", "2015-06-03 00:18:57.109624"], ["updated_at", "2015-06-03 00:18:57.109624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.113417"], ["user_id", "b27cd548-1233-48dd-83a7-9c6977e88d65"], ["created_at", "2015-06-03 00:18:57.114368"], ["updated_at", "2015-06-03 00:18:57.114368"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.118528"], ["updated_at", "2015-06-03 00:18:57.118528"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b27cd548-1233-48dd-83a7-9c6977e88d65' AND "clubhouse_memberships"."organization_id" = 'c51093d3-9a09-4b53-aa83-9350b2c9e928') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b27cd548-1233-48dd-83a7-9c6977e88d65"], ["organization_id", "c51093d3-9a09-4b53-aa83-9350b2c9e928"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.124938"], ["updated_at", "2015-06-03 00:18:57.124938"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c51093d3-9a09-4b53-aa83-9350b2c9e928" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"c51093d3-9a09-4b53-aa83-9350b2c9e928", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:57.130735') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c8fe5b6c-2943-4bcf-a3a4-6b2e4650f8f2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:57.132421"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:57.133398"], ["id", "c8fe5b6c-2943-4bcf-a3a4-6b2e4650f8f2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c51093d3-9a09-4b53-aa83-9350b2c9e928"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b27cd548-1233-48dd-83a7-9c6977e88d65"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b27cd548-1233-48dd-83a7-9c6977e88d65' LIMIT 1 [["organization_id", "c51093d3-9a09-4b53-aa83-9350b2c9e928"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 91"], ["email", "user.91@example.com"], ["password_digest", "$2a$04$vdiloAFkuTxb4YKlT31Uhe7FUXjNsKxyMhBuVMT3MWyimyC/v9t9q"], ["created_at", "2015-06-03 00:18:57.149382"], ["updated_at", "2015-06-03 00:18:57.149382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.151403"], ["user_id", "218b3bb4-4c2c-4a29-abe3-602aa2c0b6e0"], ["created_at", "2015-06-03 00:18:57.152099"], ["updated_at", "2015-06-03 00:18:57.152099"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.156916"], ["updated_at", "2015-06-03 00:18:57.156916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '218b3bb4-4c2c-4a29-abe3-602aa2c0b6e0' AND "clubhouse_memberships"."organization_id" = '70e2a03d-0348-42e8-bf77-4beef6a28f9c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "218b3bb4-4c2c-4a29-abe3-602aa2c0b6e0"], ["organization_id", "70e2a03d-0348-42e8-bf77-4beef6a28f9c"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.162534"], ["updated_at", "2015-06-03 00:18:57.162534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 92"], ["email", "user.92@example.com"], ["password_digest", "$2a$04$pOflQDCE6rwUYaws8RR8QOVthb42D3OXTPCjgZWII4HYyf8Pjqthi"], ["created_at", "2015-06-03 00:18:57.172913"], ["updated_at", "2015-06-03 00:18:57.172913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.175288"], ["user_id", "ba874945-ddc4-40bf-8cee-a5ab4b344123"], ["created_at", "2015-06-03 00:18:57.176061"], ["updated_at", "2015-06-03 00:18:57.176061"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.181504"], ["updated_at", "2015-06-03 00:18:57.181504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba874945-ddc4-40bf-8cee-a5ab4b344123' AND "clubhouse_memberships"."organization_id" = '7cee60b2-edd8-45d3-98fa-930fe20292f1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ba874945-ddc4-40bf-8cee-a5ab4b344123"], ["organization_id", "7cee60b2-edd8-45d3-98fa-930fe20292f1"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.184583"], ["updated_at", "2015-06-03 00:18:57.184583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 93"], ["email", "user.93@example.com"], ["password_digest", "$2a$04$KF8h4G813NpoWXLe8eAcy.ZBNcAgTWpIj5L//2gNnkq3DmPzadA3a"], ["created_at", "2015-06-03 00:18:57.194385"], ["updated_at", "2015-06-03 00:18:57.194385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.196196"], ["user_id", "a627ec23-427d-4f00-9558-fe017c852bcb"], ["created_at", "2015-06-03 00:18:57.197261"], ["updated_at", "2015-06-03 00:18:57.197261"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.202207"], ["updated_at", "2015-06-03 00:18:57.202207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a627ec23-427d-4f00-9558-fe017c852bcb' AND "clubhouse_memberships"."organization_id" = '4d8eea44-d541-44b7-b403-e1702c2787fd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a627ec23-427d-4f00-9558-fe017c852bcb"], ["organization_id", "4d8eea44-d541-44b7-b403-e1702c2787fd"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.206366"], ["updated_at", "2015-06-03 00:18:57.206366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:57.211462') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f2038100-42c3-4d60-a63d-c12251ef0e0d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:57.213841"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:57.214736"], ["id", "f2038100-42c3-4d60-a63d-c12251ef0e0d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a627ec23-427d-4f00-9558-fe017c852bcb"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 94"], ["email", "user.94@example.com"], ["password_digest", "$2a$04$s5sQ74qEwuTjXrh/8b.VMe0YZ6ChGgZ1nvidDdX7whcxgcQc8a16m"], ["created_at", "2015-06-03 00:18:57.238023"], ["updated_at", "2015-06-03 00:18:57.238023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.240150"], ["user_id", "94740f7c-bf75-4341-bcc3-3a8399217209"], ["created_at", "2015-06-03 00:18:57.240898"], ["updated_at", "2015-06-03 00:18:57.240898"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.245551"], ["updated_at", "2015-06-03 00:18:57.245551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94740f7c-bf75-4341-bcc3-3a8399217209' AND "clubhouse_memberships"."organization_id" = 'ec937065-0b96-4400-9342-d4056ff2add5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94740f7c-bf75-4341-bcc3-3a8399217209"], ["organization_id", "ec937065-0b96-4400-9342-d4056ff2add5"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.250174"], ["updated_at", "2015-06-03 00:18:57.250174"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:57.254012') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9e1a4da2-d023-478c-a74f-ea0adfce894f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:57.255708"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:57.256608"], ["id", "9e1a4da2-d023-478c-a74f-ea0adfce894f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94740f7c-bf75-4341-bcc3-3a8399217209"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.264540"], ["updated_at", "2015-06-03 00:18:57.264540"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94740f7c-bf75-4341-bcc3-3a8399217209' AND "clubhouse_memberships"."organization_id" = '6cba6a67-7359-4f8f-ae61-b178cb00f872') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94740f7c-bf75-4341-bcc3-3a8399217209"], ["admin", "t"], ["organization_id", "6cba6a67-7359-4f8f-ae61-b178cb00f872"], ["created_at", "2015-06-03 00:18:57.268628"], ["updated_at", "2015-06-03 00:18:57.268628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 0.7ms | ActiveRecord: 2.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 95"], ["email", "user.95@example.com"], ["password_digest", "$2a$04$ft7/nN1ZG/ktCan9pM7tGOm6Qfe/syfWypKPH0MSP2fl7TsyMzGvC"], ["created_at", "2015-06-03 00:18:57.281652"], ["updated_at", "2015-06-03 00:18:57.281652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.283972"], ["user_id", "e5bd47f3-0da6-4ca5-b797-bcd76095c1b7"], ["created_at", "2015-06-03 00:18:57.284669"], ["updated_at", "2015-06-03 00:18:57.284669"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.289075"], ["updated_at", "2015-06-03 00:18:57.289075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5bd47f3-0da6-4ca5-b797-bcd76095c1b7' AND "clubhouse_memberships"."organization_id" = '41b31296-5476-4244-838d-ebacef68eae1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5bd47f3-0da6-4ca5-b797-bcd76095c1b7"], ["organization_id", "41b31296-5476-4244-838d-ebacef68eae1"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.293780"], ["updated_at", "2015-06-03 00:18:57.293780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-40" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-40", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:57.297332') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "66e02b15-c35f-41c1-88e6-29dff5d25d75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:57.298786"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:57.299563"], ["id", "66e02b15-c35f-41c1-88e6-29dff5d25d75"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-40"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e5bd47f3-0da6-4ca5-b797-bcd76095c1b7"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e5bd47f3-0da6-4ca5-b797-bcd76095c1b7' LIMIT 1 [["organization_id", "41b31296-5476-4244-838d-ebacef68eae1"]] Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 96"], ["email", "user.96@example.com"], ["password_digest", "$2a$04$vm/gv.LkFz6AjUsjYCBlJeqiFdSWtopX0rNd1cLz4AUhjT5TfhOJi"], ["created_at", "2015-06-03 00:18:57.316993"], ["updated_at", "2015-06-03 00:18:57.316993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.319761"], ["user_id", "9ca0efc0-366e-40b9-85ff-f962b95a5b52"], ["created_at", "2015-06-03 00:18:57.320782"], ["updated_at", "2015-06-03 00:18:57.320782"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.328908"], ["updated_at", "2015-06-03 00:18:57.328908"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9ca0efc0-366e-40b9-85ff-f962b95a5b52' AND "clubhouse_memberships"."organization_id" = '3b686783-8418-449f-b08b-67a5e62918e1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9ca0efc0-366e-40b9-85ff-f962b95a5b52"], ["organization_id", "3b686783-8418-449f-b08b-67a5e62918e1"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.333941"], ["updated_at", "2015-06-03 00:18:57.333941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 97"], ["email", "user.97@example.com"], ["password_digest", "$2a$04$y/T6CbUEBhSkNL5Bd5MpR.QgxqJIgXXjdmDNsopg3wWJReehLKCfO"], ["created_at", "2015-06-03 00:18:57.344328"], ["updated_at", "2015-06-03 00:18:57.344328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.346125"], ["user_id", "f2043f95-41bd-4e19-a646-85b48b9b125d"], ["created_at", "2015-06-03 00:18:57.346784"], ["updated_at", "2015-06-03 00:18:57.346784"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.350921"], ["updated_at", "2015-06-03 00:18:57.350921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f2043f95-41bd-4e19-a646-85b48b9b125d' AND "clubhouse_memberships"."organization_id" = '43a003bd-65be-4e62-9150-37b8845d8103') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f2043f95-41bd-4e19-a646-85b48b9b125d"], ["organization_id", "43a003bd-65be-4e62-9150-37b8845d8103"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.354638"], ["updated_at", "2015-06-03 00:18:57.354638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-42" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-42", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:57.358163') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ccb8a3d9-7ddd-4b90-a083-c7e140632ed2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:57.360286"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:57.361161"], ["id", "ccb8a3d9-7ddd-4b90-a083-c7e140632ed2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-42"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f2043f95-41bd-4e19-a646-85b48b9b125d"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f2043f95-41bd-4e19-a646-85b48b9b125d' LIMIT 1 [["organization_id", "43a003bd-65be-4e62-9150-37b8845d8103"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "43a003bd-65be-4e62-9150-37b8845d8103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 98"], ["email", "user.98@example.com"], ["password_digest", "$2a$04$QLwpWK0ZdW2.XeEC3ecQGuNLSgmPpCMuIOmjPKoKAUG6WsfD11qfW"], ["created_at", "2015-06-03 00:18:57.375133"], ["updated_at", "2015-06-03 00:18:57.375133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.378461"], ["user_id", "45f10c1d-ae26-4ab2-9d94-bd29b81811b0"], ["created_at", "2015-06-03 00:18:57.379271"], ["updated_at", "2015-06-03 00:18:57.379271"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.384173"], ["updated_at", "2015-06-03 00:18:57.384173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45f10c1d-ae26-4ab2-9d94-bd29b81811b0' AND "clubhouse_memberships"."organization_id" = '77def5bc-a58f-4e6a-ac5e-08fb36c00608') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45f10c1d-ae26-4ab2-9d94-bd29b81811b0"], ["organization_id", "77def5bc-a58f-4e6a-ac5e-08fb36c00608"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.388478"], ["updated_at", "2015-06-03 00:18:57.388478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 99"], ["email", "user.99@example.com"], ["password_digest", "$2a$04$tu1XiS5rZUSL3XWt/pAoCOrsY9ql3l/We2FJO2vwbnzjexE2Bc7re"], ["created_at", "2015-06-03 00:18:57.401723"], ["updated_at", "2015-06-03 00:18:57.401723"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.404129"], ["user_id", "1a7c6359-bb1c-4e8d-857e-bd95aa72f996"], ["created_at", "2015-06-03 00:18:57.405011"], ["updated_at", "2015-06-03 00:18:57.405011"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.410779"], ["updated_at", "2015-06-03 00:18:57.410779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a7c6359-bb1c-4e8d-857e-bd95aa72f996' AND "clubhouse_memberships"."organization_id" = '64ee0192-2e43-4152-bad0-7fcab0c04310') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a7c6359-bb1c-4e8d-857e-bd95aa72f996"], ["organization_id", "64ee0192-2e43-4152-bad0-7fcab0c04310"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.414903"], ["updated_at", "2015-06-03 00:18:57.414903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 100"], ["email", "user.100@example.com"], ["password_digest", "$2a$04$Ic8Q/eVT5sVbs9giLvvhsu1wavUNWTP3lDSn0Ls3IK4T4wHjiyCOu"], ["created_at", "2015-06-03 00:18:57.425445"], ["updated_at", "2015-06-03 00:18:57.425445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.427938"], ["user_id", "4ef68856-3d5e-4988-b859-327d501093c6"], ["created_at", "2015-06-03 00:18:57.428828"], ["updated_at", "2015-06-03 00:18:57.428828"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.435631"], ["updated_at", "2015-06-03 00:18:57.435631"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ef68856-3d5e-4988-b859-327d501093c6' AND "clubhouse_memberships"."organization_id" = '6b2909be-6df7-45d1-9dc5-fdcc1a91cc6e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ef68856-3d5e-4988-b859-327d501093c6"], ["organization_id", "6b2909be-6df7-45d1-9dc5-fdcc1a91cc6e"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.439937"], ["updated_at", "2015-06-03 00:18:57.439937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/6b2909be-6df7-45d1-9dc5-fdcc1a91cc6e" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"6b2909be-6df7-45d1-9dc5-fdcc1a91cc6e", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:57.446416') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b476aaf0-5c83-4484-ae1a-eb78020ed839"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:57.448990"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:57.450258"], ["id", "b476aaf0-5c83-4484-ae1a-eb78020ed839"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6b2909be-6df7-45d1-9dc5-fdcc1a91cc6e"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4ef68856-3d5e-4988-b859-327d501093c6"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4ef68856-3d5e-4988-b859-327d501093c6' LIMIT 1 [["organization_id", "6b2909be-6df7-45d1-9dc5-fdcc1a91cc6e"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6b2909be-6df7-45d1-9dc5-fdcc1a91cc6e') LIMIT 1  (1.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 19ms (ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 101"], ["email", "user.101@example.com"], ["password_digest", "$2a$04$XAkmJ0/5g.BvcLKXb5iFEeMW42NL8nq9h60FtHkv6IehiYRmd78Iq"], ["created_at", "2015-06-03 00:18:57.472505"], ["updated_at", "2015-06-03 00:18:57.472505"]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-06-03 00:18:57.477665"], ["user_id", "d2464be5-5fc3-4196-9752-62707b1a7a44"], ["created_at", "2015-06-03 00:18:57.478945"], ["updated_at", "2015-06-03 00:18:57.478945"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.485071"], ["updated_at", "2015-06-03 00:18:57.485071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd2464be5-5fc3-4196-9752-62707b1a7a44' AND "clubhouse_memberships"."organization_id" = '7e9fa691-8c11-41be-88a7-34ec026199b7') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d2464be5-5fc3-4196-9752-62707b1a7a44"], ["organization_id", "7e9fa691-8c11-41be-88a7-34ec026199b7"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.497498"], ["updated_at", "2015-06-03 00:18:57.497498"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/7e9fa691-8c11-41be-88a7-34ec026199b7" for 127.0.0.1 at 2015-06-02 17:18:57 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"7e9fa691-8c11-41be-88a7-34ec026199b7", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-05-20 00:18:57.504239') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1172ccca-5e63-4445-9ef2-a2b6833b0517"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-06-03 00:18:57.506152"], ["ip", "127.0.0.1"], ["updated_at", "2015-06-03 00:18:57.507261"], ["id", "1172ccca-5e63-4445-9ef2-a2b6833b0517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7e9fa691-8c11-41be-88a7-34ec026199b7"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d2464be5-5fc3-4196-9752-62707b1a7a44"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd2464be5-5fc3-4196-9752-62707b1a7a44' LIMIT 1 [["organization_id", "7e9fa691-8c11-41be-88a7-34ec026199b7"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7e9fa691-8c11-41be-88a7-34ec026199b7') LIMIT 1 SQL (0.6ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-06-03 00:18:57.518607"], ["id", "7e9fa691-8c11-41be-88a7-34ec026199b7"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 1.6ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 102"], ["email", "user.102@example.com"], ["password_digest", "$2a$04$jUvTLiAH26RxGMm5h9AUwO3XmfH139pFRdWuQw4qqCJa/Xyv/yt4."], ["created_at", "2015-06-03 00:18:57.532663"], ["updated_at", "2015-06-03 00:18:57.532663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.537342"], ["updated_at", "2015-06-03 00:18:57.537342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a0a44e3a-ef87-4180-8d4d-a23d20cc4dd4' AND "clubhouse_memberships"."organization_id" = 'cc414aea-ff48-426b-a4ad-57582bc9fc25') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a0a44e3a-ef87-4180-8d4d-a23d20cc4dd4"], ["organization_id", "cc414aea-ff48-426b-a4ad-57582bc9fc25"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.542203"], ["updated_at", "2015-06-03 00:18:57.542203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = 'cc414aea-ff48-426b-a4ad-57582bc9fc25') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "cc414aea-ff48-426b-a4ad-57582bc9fc25"], ["created_at", "2015-06-03 00:18:57.548567"], ["updated_at", "2015-06-03 00:18:57.548567"], ["token", "aX48hg5WtSe2DV78R9oV-epbdFg6JmkmV2wunJjSn4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a0a44e3a-ef87-4180-8d4d-a23d20cc4dd4' LIMIT 1 [["organization_id", "cc414aea-ff48-426b-a4ad-57582bc9fc25"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 103"], ["email", "user.103@example.com"], ["password_digest", "$2a$04$DUEvi93wR/11cuxYAaLloeB2WVe2E.fe2Liw3pUyTQW3mkGNW9DQm"], ["created_at", "2015-06-03 00:18:57.558032"], ["updated_at", "2015-06-03 00:18:57.558032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.564532"], ["updated_at", "2015-06-03 00:18:57.564532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd102f7a5-ff57-4407-afe6-9c58f3919b4d' AND "clubhouse_memberships"."organization_id" = 'c492bc59-f97a-42ac-972b-70b44995c20d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d102f7a5-ff57-4407-afe6-9c58f3919b4d"], ["organization_id", "c492bc59-f97a-42ac-972b-70b44995c20d"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.568542"], ["updated_at", "2015-06-03 00:18:57.568542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'c492bc59-f97a-42ac-972b-70b44995c20d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "c492bc59-f97a-42ac-972b-70b44995c20d"], ["created_at", "2015-06-03 00:18:57.574261"], ["updated_at", "2015-06-03 00:18:57.574261"], ["token", "dwfoxaDuMh1nC9bR_fF3Z-wwyoXsTCXzStNI2qaJJ70"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd102f7a5-ff57-4407-afe6-9c58f3919b4d' LIMIT 1 [["organization_id", "c492bc59-f97a-42ac-972b-70b44995c20d"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 104"], ["email", "user.104@example.com"], ["password_digest", "$2a$04$Qt44WVAn6HyE1x7Ibv8z7u7nM/v3on916P4wjrXwWF4G4sYGiThkq"], ["created_at", "2015-06-03 00:18:57.587457"], ["updated_at", "2015-06-03 00:18:57.587457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.592850"], ["updated_at", "2015-06-03 00:18:57.592850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74b04728-30f7-4d2d-88fa-b2cb855c0cff' AND "clubhouse_memberships"."organization_id" = '53f812e0-f0e1-47a2-ac7e-8350d6d4db02') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74b04728-30f7-4d2d-88fa-b2cb855c0cff"], ["organization_id", "53f812e0-f0e1-47a2-ac7e-8350d6d4db02"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.597759"], ["updated_at", "2015-06-03 00:18:57.597759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '53f812e0-f0e1-47a2-ac7e-8350d6d4db02') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "53f812e0-f0e1-47a2-ac7e-8350d6d4db02"], ["created_at", "2015-06-03 00:18:57.602682"], ["updated_at", "2015-06-03 00:18:57.602682"], ["token", "WAIPbLnjBAiZfS4dNfMDzwkIyhWJjT5FzJi3XFuNO50"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '74b04728-30f7-4d2d-88fa-b2cb855c0cff' LIMIT 1 [["organization_id", "53f812e0-f0e1-47a2-ac7e-8350d6d4db02"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 105"], ["email", "user.105@example.com"], ["password_digest", "$2a$04$rbGAi7f8theTesm8.juxIudUFB7vztq.TZ0Kk61dbOMqo4u3Sp9uu"], ["created_at", "2015-06-03 00:18:57.613094"], ["updated_at", "2015-06-03 00:18:57.613094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.618587"], ["updated_at", "2015-06-03 00:18:57.618587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea8c408b-b905-44f2-8731-13f13ba95378' AND "clubhouse_memberships"."organization_id" = 'ba7c4c4d-fa75-4dfd-9755-3f8cf7d2ed82') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea8c408b-b905-44f2-8731-13f13ba95378"], ["organization_id", "ba7c4c4d-fa75-4dfd-9755-3f8cf7d2ed82"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.623684"], ["updated_at", "2015-06-03 00:18:57.623684"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'ba7c4c4d-fa75-4dfd-9755-3f8cf7d2ed82') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "ba7c4c4d-fa75-4dfd-9755-3f8cf7d2ed82"], ["created_at", "2015-06-03 00:18:57.632355"], ["updated_at", "2015-06-03 00:18:57.632355"], ["token", "VxgOeEh_NoLuZ7mejGj1Ab5azwwQvTRGciLNv9nBZqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea8c408b-b905-44f2-8731-13f13ba95378' LIMIT 1 [["organization_id", "ba7c4c4d-fa75-4dfd-9755-3f8cf7d2ed82"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 106"], ["email", "user.106@example.com"], ["password_digest", "$2a$04$AbrL2H0hR8enyoEeIAl17ekJ0M78yQBRXA1o2KSSjIBvwIkFX4jdq"], ["created_at", "2015-06-03 00:18:57.643327"], ["updated_at", "2015-06-03 00:18:57.643327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.649316"], ["updated_at", "2015-06-03 00:18:57.649316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ae9af6ab-7a92-4f31-9cf2-16a2f2e7d9dd' AND "clubhouse_memberships"."organization_id" = '2f2bc2c2-5a33-4eca-ad13-e3534a1bdd7d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ae9af6ab-7a92-4f31-9cf2-16a2f2e7d9dd"], ["organization_id", "2f2bc2c2-5a33-4eca-ad13-e3534a1bdd7d"], ["admin", "t"], ["created_at", "2015-06-03 00:18:57.653530"], ["updated_at", "2015-06-03 00:18:57.653530"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ae9af6ab-7a92-4f31-9cf2-16a2f2e7d9dd' LIMIT 1 [["organization_id", "2f2bc2c2-5a33-4eca-ad13-e3534a1bdd7d"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 107"], ["email", "user.107@example.com"], ["password_digest", "$2a$04$3ERNrXIfjB2MqRC4mhnvsOvzUDI/5b.96LAoQdk.6orzXSk1f/2IK"], ["created_at", "2015-06-03 00:18:57.668136"], ["updated_at", "2015-06-03 00:18:57.668136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.674097"], ["updated_at", "2015-06-03 00:18:57.674097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a33b4ca8-6132-4929-a70a-b7ec75c1a2b6' AND "clubhouse_memberships"."organization_id" = '9eb6cc7d-f2fe-47bb-8c98-711378624a4a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a33b4ca8-6132-4929-a70a-b7ec75c1a2b6"], ["organization_id", "9eb6cc7d-f2fe-47bb-8c98-711378624a4a"], ["created_at", "2015-06-03 00:18:57.679116"], ["updated_at", "2015-06-03 00:18:57.679116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '9eb6cc7d-f2fe-47bb-8c98-711378624a4a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "9eb6cc7d-f2fe-47bb-8c98-711378624a4a"], ["created_at", "2015-06-03 00:18:57.683841"], ["updated_at", "2015-06-03 00:18:57.683841"], ["token", "qd3sHB9MbMdFtDByOaTSDoo0x0xAmq-lJlz7DsJ6bdY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a33b4ca8-6132-4929-a70a-b7ec75c1a2b6' LIMIT 1 [["organization_id", "9eb6cc7d-f2fe-47bb-8c98-711378624a4a"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 108"], ["email", "user.108@example.com"], ["password_digest", "$2a$04$S8Pih8QiYt/3HNmBXrdwneXDYF239OOaBQPpuHBL7wBM9VNYNEqqq"], ["created_at", "2015-06-03 00:18:57.693291"], ["updated_at", "2015-06-03 00:18:57.693291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.701133"], ["updated_at", "2015-06-03 00:18:57.701133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'baf1fc6a-2059-41c5-8d51-f22e15d5b1fa' AND "clubhouse_memberships"."organization_id" = 'de51fa54-c8b8-40d3-9db8-4a0667232f15') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "baf1fc6a-2059-41c5-8d51-f22e15d5b1fa"], ["organization_id", "de51fa54-c8b8-40d3-9db8-4a0667232f15"], ["created_at", "2015-06-03 00:18:57.705691"], ["updated_at", "2015-06-03 00:18:57.705691"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'de51fa54-c8b8-40d3-9db8-4a0667232f15') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "de51fa54-c8b8-40d3-9db8-4a0667232f15"], ["created_at", "2015-06-03 00:18:57.713059"], ["updated_at", "2015-06-03 00:18:57.713059"], ["token", "uL7uvAI2Bxn8YfppbSyXESJqXqhHeMLlaIPY6Q6WcjE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'baf1fc6a-2059-41c5-8d51-f22e15d5b1fa' LIMIT 1 [["organization_id", "de51fa54-c8b8-40d3-9db8-4a0667232f15"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 109"], ["email", "user.109@example.com"], ["password_digest", "$2a$04$4XfJ8S6ZhAvG.Nr3d4T5nen0f8QbAiVXTrEZ8wOt5TIel9tpvjpYi"], ["created_at", "2015-06-03 00:18:57.723516"], ["updated_at", "2015-06-03 00:18:57.723516"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.733266"], ["updated_at", "2015-06-03 00:18:57.733266"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '416d1b71-37ba-4c3e-8b71-4b87364fd64d' AND "clubhouse_memberships"."organization_id" = '9cc2f148-4677-482e-9285-6cfa8cb22558') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "416d1b71-37ba-4c3e-8b71-4b87364fd64d"], ["organization_id", "9cc2f148-4677-482e-9285-6cfa8cb22558"], ["created_at", "2015-06-03 00:18:57.738842"], ["updated_at", "2015-06-03 00:18:57.738842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '9cc2f148-4677-482e-9285-6cfa8cb22558') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "9cc2f148-4677-482e-9285-6cfa8cb22558"], ["created_at", "2015-06-03 00:18:57.747873"], ["updated_at", "2015-06-03 00:18:57.747873"], ["token", "AlfTOKVH7Eyr5EvRlrmHGt7HLvk2uaumjOnDn9ZQG-s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '416d1b71-37ba-4c3e-8b71-4b87364fd64d' LIMIT 1 [["organization_id", "9cc2f148-4677-482e-9285-6cfa8cb22558"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 110"], ["email", "user.110@example.com"], ["password_digest", "$2a$04$KyFGjErP7mNLfnwykYT7jeRKo6OIsoJ55iFx2IOQ3pJF2zeFRLMnG"], ["created_at", "2015-06-03 00:18:57.758345"], ["updated_at", "2015-06-03 00:18:57.758345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.764420"], ["updated_at", "2015-06-03 00:18:57.764420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9f99184-4a26-413b-9f8b-d2ae3a2a72fe' AND "clubhouse_memberships"."organization_id" = '7f0b291e-1b18-42c2-809d-e8a8e7567e86') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c9f99184-4a26-413b-9f8b-d2ae3a2a72fe"], ["organization_id", "7f0b291e-1b18-42c2-809d-e8a8e7567e86"], ["created_at", "2015-06-03 00:18:57.769071"], ["updated_at", "2015-06-03 00:18:57.769071"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '7f0b291e-1b18-42c2-809d-e8a8e7567e86') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "7f0b291e-1b18-42c2-809d-e8a8e7567e86"], ["created_at", "2015-06-03 00:18:57.776177"], ["updated_at", "2015-06-03 00:18:57.776177"], ["token", "JiWpslFzl8IgngOesyZUraSRNdoC3N6wr2ZpCuVbD7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c9f99184-4a26-413b-9f8b-d2ae3a2a72fe' LIMIT 1 [["organization_id", "7f0b291e-1b18-42c2-809d-e8a8e7567e86"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 111"], ["email", "user.111@example.com"], ["password_digest", "$2a$04$2iiDg/GicB6yBrGqUymjlORg23zfPb3tRB7AjqZ/w8c2y9t1RPsjO"], ["created_at", "2015-06-03 00:18:57.787158"], ["updated_at", "2015-06-03 00:18:57.787158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.795444"], ["updated_at", "2015-06-03 00:18:57.795444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0995cddb-8605-407e-b372-3f3a6f84f388' AND "clubhouse_memberships"."organization_id" = '85b87067-9aab-43e3-a263-9fb1ba31c8ae') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0995cddb-8605-407e-b372-3f3a6f84f388"], ["organization_id", "85b87067-9aab-43e3-a263-9fb1ba31c8ae"], ["created_at", "2015-06-03 00:18:57.800488"], ["updated_at", "2015-06-03 00:18:57.800488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0995cddb-8605-407e-b372-3f3a6f84f388' LIMIT 1 [["organization_id", "85b87067-9aab-43e3-a263-9fb1ba31c8ae"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 112"], ["email", "user.112@example.com"], ["password_digest", "$2a$04$2Bz3vcTwUKx.OGDSjDGGgOlJLET/ylGnKO9vFu8e3SoxnfNolcpw6"], ["created_at", "2015-06-03 00:18:57.810796"], ["updated_at", "2015-06-03 00:18:57.810796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.816257"], ["updated_at", "2015-06-03 00:18:57.816257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '09306abe-e70e-4c61-9dc1-1b7b640f54d9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "09306abe-e70e-4c61-9dc1-1b7b640f54d9"], ["created_at", "2015-06-03 00:18:57.821322"], ["updated_at", "2015-06-03 00:18:57.821322"], ["token", "FnKn26IRJ3YL48Bp51Yh3KAUVwOkhA2TOP0XCg54M44"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'df90a031-ebe5-46f4-9f38-406065b7a0f0' LIMIT 1 [["organization_id", "09306abe-e70e-4c61-9dc1-1b7b640f54d9"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 113"], ["email", "user.113@example.com"], ["password_digest", "$2a$04$hNCqs0NtS0VrIYXaS0LVpuoeLMTINek3vc8mMmLf3Q1YmHGea.GDe"], ["created_at", "2015-06-03 00:18:57.830555"], ["updated_at", "2015-06-03 00:18:57.830555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.835461"], ["updated_at", "2015-06-03 00:18:57.835461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '9e8d4210-417c-493d-886a-4c25b805dc04') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "9e8d4210-417c-493d-886a-4c25b805dc04"], ["created_at", "2015-06-03 00:18:57.841104"], ["updated_at", "2015-06-03 00:18:57.841104"], ["token", "GJ3VoC-7DnMLT6qsPVtSTpdxG7sRWeMI1lSKug1s9Lc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '858df5b4-04e9-4e71-9c5a-793b92b25b59' LIMIT 1 [["organization_id", "9e8d4210-417c-493d-886a-4c25b805dc04"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 114"], ["email", "user.114@example.com"], ["password_digest", "$2a$04$AgLUHZAKaVNRSn5PhY79ZudTmotMIdbYIT/ZV2aUtA0HDs.6khj.6"], ["created_at", "2015-06-03 00:18:57.851202"], ["updated_at", "2015-06-03 00:18:57.851202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.856598"], ["updated_at", "2015-06-03 00:18:57.856598"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'fbe9392b-d292-422f-99bf-19e86151ee70') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "fbe9392b-d292-422f-99bf-19e86151ee70"], ["created_at", "2015-06-03 00:18:57.865223"], ["updated_at", "2015-06-03 00:18:57.865223"], ["token", "RR5DcG-UBBNPiHRGMIGCtHLW2ExURi-HR-i23_PyIoU"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38b033f2-b6a7-4b54-bcfc-9801dabe818c' LIMIT 1 [["organization_id", "fbe9392b-d292-422f-99bf-19e86151ee70"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 115"], ["email", "user.115@example.com"], ["password_digest", "$2a$04$EpaKKMzUfIcNduaFhGb.5eCs6qnBAbTfIii80VlU88TBNpdQ/Rtj."], ["created_at", "2015-06-03 00:18:57.878256"], ["updated_at", "2015-06-03 00:18:57.878256"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.884033"], ["updated_at", "2015-06-03 00:18:57.884033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'eec88859-001e-4542-8b10-878538348095') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "eec88859-001e-4542-8b10-878538348095"], ["created_at", "2015-06-03 00:18:57.889567"], ["updated_at", "2015-06-03 00:18:57.889567"], ["token", "8kiKSxuYZX5kMNPOreShAvVh4bENXoVAf0NNzKgTyZU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '521532b4-6312-4672-8466-9940e408d010' LIMIT 1 [["organization_id", "eec88859-001e-4542-8b10-878538348095"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 116"], ["email", "user.116@example.com"], ["password_digest", "$2a$04$hyUoD4tSE2Pz.1OMLZGBnuSmF.TtparM3SvWg7aIWcO67rbGnW3j."], ["created_at", "2015-06-03 00:18:57.900224"], ["updated_at", "2015-06-03 00:18:57.900224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.905861"], ["updated_at", "2015-06-03 00:18:57.905861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e0da667f-758a-422a-bc86-063921d75c8f' LIMIT 1 [["organization_id", "0ab28258-502a-44e7-86a1-749a7be0938d"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.947428"], ["updated_at", "2015-06-03 00:18:57.947428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.953993"], ["updated_at", "2015-06-03 00:18:57.953993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.969642"], ["updated_at", "2015-06-03 00:18:57.969642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:57.998791"], ["updated_at", "2015-06-03 00:18:57.998791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.005538"], ["updated_at", "2015-06-03 00:18:58.005538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "9819ddff-ba97-4c0e-8168-90013dc76211"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 117"], ["email", "user.117@example.com"], ["password_digest", "$2a$04$Ez7IiFHwSKvjFIpIvvghMe.gE/zeWjKkjK2Z6YJ0Vfr6pSM5XV1Ca"], ["created_at", "2015-06-03 00:18:58.017347"], ["updated_at", "2015-06-03 00:18:58.017347"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.024579"], ["updated_at", "2015-06-03 00:18:58.024579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '16d067e5-054d-449c-a149-6d1f2cd679d7' AND "clubhouse_memberships"."organization_id" = 'edf525f5-7b5c-4769-89b2-70ddd0639832') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "16d067e5-054d-449c-a149-6d1f2cd679d7"], ["organization_id", "edf525f5-7b5c-4769-89b2-70ddd0639832"], ["admin", "t"], ["created_at", "2015-06-03 00:18:58.029431"], ["updated_at", "2015-06-03 00:18:58.029431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '16d067e5-054d-449c-a149-6d1f2cd679d7' LIMIT 1 [["organization_id", "edf525f5-7b5c-4769-89b2-70ddd0639832"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 118"], ["email", "user.118@example.com"], ["password_digest", "$2a$04$Wb.ItIUh8G/LxByEK/7bHuywRuhRevSAmsEpFutriPWt7j5QdkD9."], ["created_at", "2015-06-03 00:18:58.040602"], ["updated_at", "2015-06-03 00:18:58.040602"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.048081"], ["updated_at", "2015-06-03 00:18:58.048081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '512f2919-d0d9-4932-8216-dc306a9042b3' AND "clubhouse_memberships"."organization_id" = '423a65a4-4530-4d33-b779-cf086dee6477') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "512f2919-d0d9-4932-8216-dc306a9042b3"], ["organization_id", "423a65a4-4530-4d33-b779-cf086dee6477"], ["admin", "t"], ["created_at", "2015-06-03 00:18:58.053000"], ["updated_at", "2015-06-03 00:18:58.053000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 119"], ["email", "user.119@example.com"], ["password_digest", "$2a$04$jTUZloiLHoCk1b1iN3FFx.TItMBcTj2QpfdwOFHR37aljFG6eZI/y"], ["created_at", "2015-06-03 00:18:58.062387"], ["updated_at", "2015-06-03 00:18:58.062387"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.068842"], ["updated_at", "2015-06-03 00:18:58.068842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b716891-c9c4-413a-911e-c81a9a65d16f' AND "clubhouse_memberships"."organization_id" = 'bc37a41b-7389-4127-9cfb-b9080082730c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b716891-c9c4-413a-911e-c81a9a65d16f"], ["organization_id", "bc37a41b-7389-4127-9cfb-b9080082730c"], ["admin", "t"], ["created_at", "2015-06-03 00:18:58.073776"], ["updated_at", "2015-06-03 00:18:58.073776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7b716891-c9c4-413a-911e-c81a9a65d16f' LIMIT 1 [["organization_id", "bc37a41b-7389-4127-9cfb-b9080082730c"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 120"], ["email", "user.120@example.com"], ["password_digest", "$2a$04$ANrJPLxUAZJJOiVv5qJ65.BjCwQg2TZB/G0qpxFqhf/2kIk8qzVv."], ["created_at", "2015-06-03 00:18:58.085367"], ["updated_at", "2015-06-03 00:18:58.085367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.091752"], ["updated_at", "2015-06-03 00:18:58.091752"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e103c1d-0492-4b43-9bb0-0103d3b1ec97' AND "clubhouse_memberships"."organization_id" = '9775c32e-54df-44cd-acfa-61834b31190f') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e103c1d-0492-4b43-9bb0-0103d3b1ec97"], ["organization_id", "9775c32e-54df-44cd-acfa-61834b31190f"], ["admin", "t"], ["created_at", "2015-06-03 00:18:58.098122"], ["updated_at", "2015-06-03 00:18:58.098122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1e103c1d-0492-4b43-9bb0-0103d3b1ec97' LIMIT 1 [["organization_id", "9775c32e-54df-44cd-acfa-61834b31190f"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 121"], ["email", "user.121@example.com"], ["password_digest", "$2a$04$o6H13OgR6eufdv8DzExgoev/3sBRhUEVejbecz4BHqHKTJcw3UiaW"], ["created_at", "2015-06-03 00:18:58.110020"], ["updated_at", "2015-06-03 00:18:58.110020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.117000"], ["updated_at", "2015-06-03 00:18:58.117000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8557abe-b756-4ac9-94a4-bb044f603d28' AND "clubhouse_memberships"."organization_id" = '984c81e5-a9de-4fe8-8cea-0d1a91611797') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8557abe-b756-4ac9-94a4-bb044f603d28"], ["organization_id", "984c81e5-a9de-4fe8-8cea-0d1a91611797"], ["admin", "t"], ["created_at", "2015-06-03 00:18:58.122583"], ["updated_at", "2015-06-03 00:18:58.122583"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c8557abe-b756-4ac9-94a4-bb044f603d28' LIMIT 1 [["organization_id", "984c81e5-a9de-4fe8-8cea-0d1a91611797"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 122"], ["email", "user.122@example.com"], ["password_digest", "$2a$04$KqY0NRnemCirEi24na.4iOjw4Jpn/LrcRi.11WeErJXLlCyRxayWG"], ["created_at", "2015-06-03 00:18:58.135795"], ["updated_at", "2015-06-03 00:18:58.135795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.143208"], ["updated_at", "2015-06-03 00:18:58.143208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1f11fd2-64ba-4cb2-b025-1f99ff32dc54' AND "clubhouse_memberships"."organization_id" = 'e52655c1-b83b-4be5-9425-d1b5da4686b4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1f11fd2-64ba-4cb2-b025-1f99ff32dc54"], ["organization_id", "e52655c1-b83b-4be5-9425-d1b5da4686b4"], ["admin", "t"], ["created_at", "2015-06-03 00:18:58.149789"], ["updated_at", "2015-06-03 00:18:58.149789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 123"], ["email", "user.123@example.com"], ["password_digest", "$2a$04$nn/PVDzltmx/yqQcmJyWW.Se6M6q/sZxLfaXe9fxNmhGSNjwZVbC2"], ["created_at", "2015-06-03 00:18:58.158403"], ["updated_at", "2015-06-03 00:18:58.158403"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '571c5d8d-1814-4eff-b4af-4ce20591bda0' AND "clubhouse_memberships"."organization_id" = 'e52655c1-b83b-4be5-9425-d1b5da4686b4') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "571c5d8d-1814-4eff-b4af-4ce20591bda0"], ["organization_id", "e52655c1-b83b-4be5-9425-d1b5da4686b4"], ["created_at", "2015-06-03 00:18:58.165248"], ["updated_at", "2015-06-03 00:18:58.165248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 124"], ["email", "user.124@example.com"], ["password_digest", "$2a$04$larJ3FGUAJaDTxq6BqwapefpKi3nd3uLau4eqFn5gO0ZQMqiGKL0a"], ["created_at", "2015-06-03 00:18:58.176024"], ["updated_at", "2015-06-03 00:18:58.176024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.181964"], ["updated_at", "2015-06-03 00:18:58.181964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c45e1979-f5ff-47cb-adcf-a5d0d1a8d07f' AND "clubhouse_memberships"."organization_id" = '6b5c24ef-a137-4893-9788-ff1bd0090669') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c45e1979-f5ff-47cb-adcf-a5d0d1a8d07f"], ["organization_id", "6b5c24ef-a137-4893-9788-ff1bd0090669"], ["admin", "t"], ["created_at", "2015-06-03 00:18:58.186968"], ["updated_at", "2015-06-03 00:18:58.186968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 125"], ["email", "user.125@example.com"], ["password_digest", "$2a$04$rijdzFYzziXXUcXuvDNGMeL/8oPeOxoKPXyDQQoVkbb/SfvN/7Cca"], ["created_at", "2015-06-03 00:18:58.192497"], ["updated_at", "2015-06-03 00:18:58.192497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd039bbeb-1b4c-4315-abf8-9bbc952ddf6b' AND "clubhouse_memberships"."organization_id" = '6b5c24ef-a137-4893-9788-ff1bd0090669') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d039bbeb-1b4c-4315-abf8-9bbc952ddf6b"], ["organization_id", "6b5c24ef-a137-4893-9788-ff1bd0090669"], ["created_at", "2015-06-03 00:18:58.196562"], ["updated_at", "2015-06-03 00:18:58.196562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c45e1979-f5ff-47cb-adcf-a5d0d1a8d07f' LIMIT 1 [["organization_id", "6b5c24ef-a137-4893-9788-ff1bd0090669"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 126"], ["email", "user.126@example.com"], ["password_digest", "$2a$04$1XsfoFuZHif2VfIxA7pBi.eraQXDobvY4w9MUWYRrM8XDXyRepC9y"], ["created_at", "2015-06-03 00:18:58.207542"], ["updated_at", "2015-06-03 00:18:58.207542"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.214722"], ["updated_at", "2015-06-03 00:18:58.214722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c9e6d95-96ce-4c80-a4fd-6ca05e501296' AND "clubhouse_memberships"."organization_id" = 'e0b07d4a-0ce3-4288-803e-eb0d188e9afd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c9e6d95-96ce-4c80-a4fd-6ca05e501296"], ["organization_id", "e0b07d4a-0ce3-4288-803e-eb0d188e9afd"], ["admin", "t"], ["created_at", "2015-06-03 00:18:58.219171"], ["updated_at", "2015-06-03 00:18:58.219171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 127"], ["email", "user.127@example.com"], ["password_digest", "$2a$04$w6KbB.BtzXg7ZCZyGATd.OPrYcy9xfZN/FufJEItokGMCbrV/4y16"], ["created_at", "2015-06-03 00:18:58.226235"], ["updated_at", "2015-06-03 00:18:58.226235"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '14abc7cd-98f0-4b15-ab13-af2c684e340b' AND "clubhouse_memberships"."organization_id" = 'e0b07d4a-0ce3-4288-803e-eb0d188e9afd') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "14abc7cd-98f0-4b15-ab13-af2c684e340b"], ["organization_id", "e0b07d4a-0ce3-4288-803e-eb0d188e9afd"], ["created_at", "2015-06-03 00:18:58.230460"], ["updated_at", "2015-06-03 00:18:58.230460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5c9e6d95-96ce-4c80-a4fd-6ca05e501296' LIMIT 1 [["organization_id", "e0b07d4a-0ce3-4288-803e-eb0d188e9afd"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 128"], ["email", "user.128@example.com"], ["password_digest", "$2a$04$39JvOh1Ok.nL6Uyssm3j.OOKwHAbFZz9HbGtd/IZmLYdu2zZlvfu6"], ["created_at", "2015-06-03 00:18:58.241888"], ["updated_at", "2015-06-03 00:18:58.241888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.247209"], ["updated_at", "2015-06-03 00:18:58.247209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c06601cf-c6d6-4021-a151-99a47253827c' AND "clubhouse_memberships"."organization_id" = 'f404e6f2-2cdb-40be-8443-fef5ebb9ae78') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c06601cf-c6d6-4021-a151-99a47253827c"], ["organization_id", "f404e6f2-2cdb-40be-8443-fef5ebb9ae78"], ["admin", "t"], ["created_at", "2015-06-03 00:18:58.252648"], ["updated_at", "2015-06-03 00:18:58.252648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 129"], ["email", "user.129@example.com"], ["password_digest", "$2a$04$NPsLuclLOMKqj7oI//mRbuFAG/u5tgpT.w9SwlUSGqrGxZLB1F8R2"], ["created_at", "2015-06-03 00:18:58.259257"], ["updated_at", "2015-06-03 00:18:58.259257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cacfe13f-f1bc-4e36-af49-6891b8a006e2' AND "clubhouse_memberships"."organization_id" = 'f404e6f2-2cdb-40be-8443-fef5ebb9ae78') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cacfe13f-f1bc-4e36-af49-6891b8a006e2"], ["organization_id", "f404e6f2-2cdb-40be-8443-fef5ebb9ae78"], ["created_at", "2015-06-03 00:18:58.264882"], ["updated_at", "2015-06-03 00:18:58.264882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c06601cf-c6d6-4021-a151-99a47253827c' LIMIT 1 [["organization_id", "f404e6f2-2cdb-40be-8443-fef5ebb9ae78"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 130"], ["email", "user.130@example.com"], ["password_digest", "$2a$04$9zWKk6Lt0Z3dLVPnjiNxkuirPzj17xUC/dkuNad2uGkGZSMD9nrxq"], ["created_at", "2015-06-03 00:18:58.279752"], ["updated_at", "2015-06-03 00:18:58.279752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.286895"], ["updated_at", "2015-06-03 00:18:58.286895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e5dc4e2-4ee1-432d-b84d-8b6d5783d8b2' AND "clubhouse_memberships"."organization_id" = 'd55a8e81-8afb-429b-b25f-79ab2a65bbe3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7e5dc4e2-4ee1-432d-b84d-8b6d5783d8b2"], ["organization_id", "d55a8e81-8afb-429b-b25f-79ab2a65bbe3"], ["created_at", "2015-06-03 00:18:58.291531"], ["updated_at", "2015-06-03 00:18:58.291531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 131"], ["email", "user.131@example.com"], ["password_digest", "$2a$04$19JPqsqGXTyW1FtXJYtysuLX5BKoGpK3SH/DM61Uyj3GtbbLckIuy"], ["created_at", "2015-06-03 00:18:58.299009"], ["updated_at", "2015-06-03 00:18:58.299009"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.304525"], ["updated_at", "2015-06-03 00:18:58.304525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3230f3de-8c04-4ed6-9be9-8c486589c4a3' AND "clubhouse_memberships"."organization_id" = 'c3d9c7bb-0d6d-446b-ad47-eb14f58ba926') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3230f3de-8c04-4ed6-9be9-8c486589c4a3"], ["organization_id", "c3d9c7bb-0d6d-446b-ad47-eb14f58ba926"], ["created_at", "2015-06-03 00:18:58.309356"], ["updated_at", "2015-06-03 00:18:58.309356"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3230f3de-8c04-4ed6-9be9-8c486589c4a3' LIMIT 1 [["organization_id", "c3d9c7bb-0d6d-446b-ad47-eb14f58ba926"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 132"], ["email", "user.132@example.com"], ["password_digest", "$2a$04$CPApu7YpE7/IZrSdZiBYBeYCuDQIc/6.rukOErfPzqYbaetWK0e1W"], ["created_at", "2015-06-03 00:18:58.322418"], ["updated_at", "2015-06-03 00:18:58.322418"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.331233"], ["updated_at", "2015-06-03 00:18:58.331233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cfbd27bc-af45-40c7-ab11-6381b70d3621' AND "clubhouse_memberships"."organization_id" = 'a854ffbd-5f8c-4043-ac64-33aa9c86a0f6') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cfbd27bc-af45-40c7-ab11-6381b70d3621"], ["organization_id", "a854ffbd-5f8c-4043-ac64-33aa9c86a0f6"], ["created_at", "2015-06-03 00:18:58.335689"], ["updated_at", "2015-06-03 00:18:58.335689"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cfbd27bc-af45-40c7-ab11-6381b70d3621' LIMIT 1 [["organization_id", "a854ffbd-5f8c-4043-ac64-33aa9c86a0f6"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 133"], ["email", "user.133@example.com"], ["password_digest", "$2a$04$8XOikyccBV13V.Xu1IBtsuaaJIPhC7SRhDTvDf2Wz/qdI7lo1QZIK"], ["created_at", "2015-06-03 00:18:58.348041"], ["updated_at", "2015-06-03 00:18:58.348041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.353027"], ["updated_at", "2015-06-03 00:18:58.353027"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1c35de4a-775b-4d0b-9811-2d6e70a57c52' AND "clubhouse_memberships"."organization_id" = 'b2359a56-5b80-4b9c-9448-eadc9b9f5cba') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1c35de4a-775b-4d0b-9811-2d6e70a57c52"], ["organization_id", "b2359a56-5b80-4b9c-9448-eadc9b9f5cba"], ["created_at", "2015-06-03 00:18:58.357593"], ["updated_at", "2015-06-03 00:18:58.357593"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1c35de4a-775b-4d0b-9811-2d6e70a57c52' LIMIT 1 [["organization_id", "b2359a56-5b80-4b9c-9448-eadc9b9f5cba"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 134"], ["email", "user.134@example.com"], ["password_digest", "$2a$04$2eM2CuUwhBiqHx3hzReVMudltM1dIJursl5SCnKXAAAK3QsMB0cgq"], ["created_at", "2015-06-03 00:18:58.368474"], ["updated_at", "2015-06-03 00:18:58.368474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.374624"], ["updated_at", "2015-06-03 00:18:58.374624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3813fa97-904a-4bd3-82d3-65dc6392f873' AND "clubhouse_memberships"."organization_id" = '5da070cb-da46-4582-87b7-16eed0b177ee') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3813fa97-904a-4bd3-82d3-65dc6392f873"], ["organization_id", "5da070cb-da46-4582-87b7-16eed0b177ee"], ["created_at", "2015-06-03 00:18:58.381431"], ["updated_at", "2015-06-03 00:18:58.381431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3813fa97-904a-4bd3-82d3-65dc6392f873' LIMIT 1 [["organization_id", "5da070cb-da46-4582-87b7-16eed0b177ee"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 135"], ["email", "user.135@example.com"], ["password_digest", "$2a$04$svam8D7RZUyynpVE.JmR.uJclZsZeDSFW7h/ps3oxHRAfrv3sMP2i"], ["created_at", "2015-06-03 00:18:58.393414"], ["updated_at", "2015-06-03 00:18:58.393414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 136"], ["email", "user.136@example.com"], ["password_digest", "$2a$04$I3n7T4rSNi5mCERXi1JR/eCz5DUs9p/KOQxE41kq5nDWONk8MUd4u"], ["created_at", "2015-06-03 00:18:58.399697"], ["updated_at", "2015-06-03 00:18:58.399697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.404750"], ["updated_at", "2015-06-03 00:18:58.404750"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ed912104-89b0-4597-a843-da85d059dffe' AND "clubhouse_memberships"."organization_id" = '3c6b319f-016a-46c3-8f73-38b8ab8d2b2b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ed912104-89b0-4597-a843-da85d059dffe"], ["organization_id", "3c6b319f-016a-46c3-8f73-38b8ab8d2b2b"], ["created_at", "2015-06-03 00:18:58.409771"], ["updated_at", "2015-06-03 00:18:58.409771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 137"], ["email", "user.137@example.com"], ["password_digest", "$2a$04$mrbHiqVWtvhLVw3kC5vCneuJnkWZXsp0BmOpDsetN9gY7Dn41A9S2"], ["created_at", "2015-06-03 00:18:58.417945"], ["updated_at", "2015-06-03 00:18:58.417945"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 138"], ["email", "user.138@example.com"], ["password_digest", "$2a$04$ZOux/p0JVV3npvLbN6d5V.49Dat8BUzXLq6Qchq3V99wHUeBHGBzS"], ["created_at", "2015-06-03 00:18:58.426097"], ["updated_at", "2015-06-03 00:18:58.426097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.432989"], ["updated_at", "2015-06-03 00:18:58.432989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5e549d5-39ae-4e61-98a2-b4d80a5245a0' AND "clubhouse_memberships"."organization_id" = '4c8a11e0-2372-4f20-b229-2704fe355895') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e5e549d5-39ae-4e61-98a2-b4d80a5245a0"], ["organization_id", "4c8a11e0-2372-4f20-b229-2704fe355895"], ["created_at", "2015-06-03 00:18:58.437802"], ["updated_at", "2015-06-03 00:18:58.437802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bd5d026b-af7b-4c7f-87ed-659aec389f12' LIMIT 1 [["organization_id", "4c8a11e0-2372-4f20-b229-2704fe355895"]]  (4.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 139"], ["email", "user.139@example.com"], ["password_digest", "$2a$04$FNjWu/c7YKfW8.eGs80.buVWt6bf2/Mld/LillR1j3yufo2rthufC"], ["created_at", "2015-06-03 00:18:58.455792"], ["updated_at", "2015-06-03 00:18:58.455792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 140"], ["email", "user.140@example.com"], ["password_digest", "$2a$04$CCPsORARD1GbcgNPmkZbhecmXytvwC9Marfey.uSAXn8Kh3lp9DEm"], ["created_at", "2015-06-03 00:18:58.462110"], ["updated_at", "2015-06-03 00:18:58.462110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.467232"], ["updated_at", "2015-06-03 00:18:58.467232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0765da34-5b55-470e-a9b5-4beb7fada4f2' AND "clubhouse_memberships"."organization_id" = '9d0ff4de-5996-4cb3-a55e-7d94ca920815') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0765da34-5b55-470e-a9b5-4beb7fada4f2"], ["organization_id", "9d0ff4de-5996-4cb3-a55e-7d94ca920815"], ["created_at", "2015-06-03 00:18:58.473278"], ["updated_at", "2015-06-03 00:18:58.473278"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3ad7f942-3449-48a3-9d39-fba4286e2832' LIMIT 1 [["organization_id", "9d0ff4de-5996-4cb3-a55e-7d94ca920815"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 141"], ["email", "user.141@example.com"], ["password_digest", "$2a$04$6HpWFbN2oVb85x2.ZfUeteioN2tkMlzuQOWGUgZV89usuudZCE30C"], ["created_at", "2015-06-03 00:18:58.487324"], ["updated_at", "2015-06-03 00:18:58.487324"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 142"], ["email", "user.142@example.com"], ["password_digest", "$2a$04$JjfipdKG5HgGin.ruxwwy.JNRO0C6a4shRmiPyhMRg.7cNpC43P9G"], ["created_at", "2015-06-03 00:18:58.495655"], ["updated_at", "2015-06-03 00:18:58.495655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.500827"], ["updated_at", "2015-06-03 00:18:58.500827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bef097f7-c10b-4fa0-bb8a-53c39a3238a1' AND "clubhouse_memberships"."organization_id" = '1e01caa5-2685-4b59-8609-90ccc160b26e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bef097f7-c10b-4fa0-bb8a-53c39a3238a1"], ["organization_id", "1e01caa5-2685-4b59-8609-90ccc160b26e"], ["created_at", "2015-06-03 00:18:58.506937"], ["updated_at", "2015-06-03 00:18:58.506937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '53e320e2-9162-469f-a9f4-a6e2dbdb8dee' LIMIT 1 [["organization_id", "1e01caa5-2685-4b59-8609-90ccc160b26e"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 143"], ["email", "user.143@example.com"], ["password_digest", "$2a$04$JuCLJrs0rdiHjG/BtOatVeF/Ga9i8cL7ineJVaHPI6ju62q5Ki5JS"], ["created_at", "2015-06-03 00:18:58.518844"], ["updated_at", "2015-06-03 00:18:58.518844"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-06-03 00:18:58.528204"], ["updated_at", "2015-06-03 00:18:58.528204"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3e74369b-3ddc-4865-b9f0-b3e57d0a0afb' LIMIT 1 [["organization_id", "38aa300f-e088-4f22-8feb-b80e8594cc81"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 User Exists (8.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (12.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$H29FwmGUsceXmOUEEjlC3.q8gsvXIN4Cf26Sm/vguYeSZtyp9vjYS"], ["created_at", "2015-07-06 20:48:56.936909"], ["updated_at", "2015-07-06 20:48:56.936909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$TY1rGjD.u6iHMXmsrqJJfeSktswcBjYKTRtk1POAf1W3/6nKXyooO"], ["created_at", "2015-07-06 20:48:56.959431"], ["updated_at", "2015-07-06 20:48:56.959431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (11.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:56.972554"], ["user_id", "081da825-ef88-4640-81ea-71aa51d560ad"], ["created_at", "2015-07-06 20:48:56.980351"], ["updated_at", "2015-07-06 20:48:56.980351"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.007212"], ["updated_at", "2015-07-06 20:48:57.007212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (6.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '081da825-ef88-4640-81ea-71aa51d560ad' AND "clubhouse_memberships"."organization_id" = '0c3094d2-9b63-4487-a833-267f4d2e449c') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "081da825-ef88-4640-81ea-71aa51d560ad"], ["organization_id", "0c3094d2-9b63-4487-a833-267f4d2e449c"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.026874"], ["updated_at", "2015-07-06 20:48:57.026874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0813cdc3-80ce-431d-8112-7c619fda4ca5' AND "clubhouse_memberships"."organization_id" = '0c3094d2-9b63-4487-a833-267f4d2e449c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0813cdc3-80ce-431d-8112-7c619fda4ca5"], ["organization_id", "0c3094d2-9b63-4487-a833-267f4d2e449c"], ["created_at", "2015-07-06 20:48:57.034374"], ["updated_at", "2015-07-06 20:48:57.034374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$FVMPVZ2dqSQxMoFkpAYg8ufCjEbuCZ/johpjLGDmt43xK1wbhFKJO"], ["created_at", "2015-07-06 20:48:57.041522"], ["updated_at", "2015-07-06 20:48:57.041522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.043641"], ["user_id", "e8c4dcd3-97b7-4318-8440-f904d030813f"], ["created_at", "2015-07-06 20:48:57.044256"], ["updated_at", "2015-07-06 20:48:57.044256"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (3.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '0c3094d2-9b63-4487-a833-267f4d2e449c') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "0c3094d2-9b63-4487-a833-267f4d2e449c"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.062148"], ["updated_at", "2015-07-06 20:48:57.062148"], ["token", "Pe-JU4F1Ar5y49b7rKj70YyHe0wOE9ldnKS_AxX9s-I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$s98cMhMueGYM0CznqqsMEOFX87z0UFo2wDe7.tbM336Co7OTi3Izy"], ["created_at", "2015-07-06 20:48:57.096987"], ["updated_at", "2015-07-06 20:48:57.096987"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$CqVgE4KKdDSdzGiIJZ0Pfe03uRdcsbvYfPLsq8b8icEAynH0Zlf3S"], ["created_at", "2015-07-06 20:48:57.107356"], ["updated_at", "2015-07-06 20:48:57.107356"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.109892"], ["user_id", "6aaacf8d-5d03-424b-982f-8fa98753b0e2"], ["created_at", "2015-07-06 20:48:57.110730"], ["updated_at", "2015-07-06 20:48:57.110730"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.117188"], ["updated_at", "2015-07-06 20:48:57.117188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6aaacf8d-5d03-424b-982f-8fa98753b0e2' AND "clubhouse_memberships"."organization_id" = '15cc6ec4-2e5d-4a0f-ab9a-9957c4a2845f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6aaacf8d-5d03-424b-982f-8fa98753b0e2"], ["organization_id", "15cc6ec4-2e5d-4a0f-ab9a-9957c4a2845f"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.122128"], ["updated_at", "2015-07-06 20:48:57.122128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc38a386-0027-40c4-96b0-566716c277dd' AND "clubhouse_memberships"."organization_id" = '15cc6ec4-2e5d-4a0f-ab9a-9957c4a2845f') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc38a386-0027-40c4-96b0-566716c277dd"], ["organization_id", "15cc6ec4-2e5d-4a0f-ab9a-9957c4a2845f"], ["created_at", "2015-07-06 20:48:57.125966"], ["updated_at", "2015-07-06 20:48:57.125966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$5QJ95RY8DqZYZFNB6ahvee6pPN0fGwFIpTbaQEGtwSztkg7SGj9iC"], ["created_at", "2015-07-06 20:48:57.132418"], ["updated_at", "2015-07-06 20:48:57.132418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.134234"], ["user_id", "39ec94c6-8b28-4d52-a8d8-2028512aa96f"], ["created_at", "2015-07-06 20:48:57.135099"], ["updated_at", "2015-07-06 20:48:57.135099"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '15cc6ec4-2e5d-4a0f-ab9a-9957c4a2845f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "15cc6ec4-2e5d-4a0f-ab9a-9957c4a2845f"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.140371"], ["updated_at", "2015-07-06 20:48:57.140371"], ["token", "ttXtiGREFOaMFqSQQx53VwurR3YXngeFfKJZZTh2fqY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.147561') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5f6d30ed-ffba-4e1f-bbd3-ed4edeafc72b"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.161968"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.163441"], ["id", "5f6d30ed-ffba-4e1f-bbd3-ed4edeafc72b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39ec94c6-8b28-4d52-a8d8-2028512aa96f"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.7ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 42ms (ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$rZNdwA0dYxBWKErGAgsC1uBaWs8pgtRees/IHhacrNr2ie5yJwNjC"], ["created_at", "2015-07-06 20:48:57.207674"], ["updated_at", "2015-07-06 20:48:57.207674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$uoRyfxT1YItEpxynFf7t8uds/eCM85sGeVV2NfThncVdM.O0JA5dO"], ["created_at", "2015-07-06 20:48:57.213835"], ["updated_at", "2015-07-06 20:48:57.213835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.215362"], ["user_id", "7a7c98d8-92d2-447e-9e7f-90ed6534fe3e"], ["created_at", "2015-07-06 20:48:57.215958"], ["updated_at", "2015-07-06 20:48:57.215958"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.220775"], ["updated_at", "2015-07-06 20:48:57.220775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a7c98d8-92d2-447e-9e7f-90ed6534fe3e' AND "clubhouse_memberships"."organization_id" = 'f91e3dee-8ce1-4779-b9f8-a8594730f886') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a7c98d8-92d2-447e-9e7f-90ed6534fe3e"], ["organization_id", "f91e3dee-8ce1-4779-b9f8-a8594730f886"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.224256"], ["updated_at", "2015-07-06 20:48:57.224256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '017df9bf-2e2b-4a83-8b70-d4e786c2f8a0' AND "clubhouse_memberships"."organization_id" = 'f91e3dee-8ce1-4779-b9f8-a8594730f886') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "017df9bf-2e2b-4a83-8b70-d4e786c2f8a0"], ["organization_id", "f91e3dee-8ce1-4779-b9f8-a8594730f886"], ["created_at", "2015-07-06 20:48:57.228796"], ["updated_at", "2015-07-06 20:48:57.228796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$mJoVRe6KvoGbMYhGRslxQ.eJBz346d27Bk9kg4lyLKF.mtdkgLCxC"], ["created_at", "2015-07-06 20:48:57.234922"], ["updated_at", "2015-07-06 20:48:57.234922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.236952"], ["user_id", "62aa026c-da7c-4f93-846e-c0691618a622"], ["created_at", "2015-07-06 20:48:57.237686"], ["updated_at", "2015-07-06 20:48:57.237686"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'f91e3dee-8ce1-4779-b9f8-a8594730f886') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "f91e3dee-8ce1-4779-b9f8-a8594730f886"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.242690"], ["updated_at", "2015-07-06 20:48:57.242690"], ["token", "Fn_zEuNhwCSHX1OzW2ch8OeEDUQ2_uak3xZA-fYKsY0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Fn_zEuNhwCSHX1OzW2ch8OeEDUQ2_uak3xZA-fYKsY0", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.246461') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ac6026a3-ccf4-45f2-8804-b562ba15d804"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.247743"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.248593"], ["id", "ac6026a3-ccf4-45f2-8804-b562ba15d804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "62aa026c-da7c-4f93-846e-c0691618a622"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "Fn_zEuNhwCSHX1OzW2ch8OeEDUQ2_uak3xZA-fYKsY0"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f91e3dee-8ce1-4779-b9f8-a8594730f886"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62aa026c-da7c-4f93-846e-c0691618a622' AND "clubhouse_memberships"."organization_id" = 'f91e3dee-8ce1-4779-b9f8-a8594730f886') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "f91e3dee-8ce1-4779-b9f8-a8594730f886"], ["member_id", "62aa026c-da7c-4f93-846e-c0691618a622"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.256607"], ["updated_at", "2015-07-06 20:48:57.256607"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "2455423a-ee51-4892-b23e-bbc432072840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 11.9ms | ActiveRecord: 2.5ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$97AqHAh1.5NMJnRx.aHXJOWwiAgjVf03QuqBzWXARW8PzWzUlypPS"], ["created_at", "2015-07-06 20:48:57.288357"], ["updated_at", "2015-07-06 20:48:57.288357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$bNGr2o.u1zkLd8pG0KQLGuElAeWnMTrRl9GZpGQk2Ccrf9/tuYx4e"], ["created_at", "2015-07-06 20:48:57.295591"], ["updated_at", "2015-07-06 20:48:57.295591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.297569"], ["user_id", "12a8ad23-ef34-4103-85da-bfe4e06e89c7"], ["created_at", "2015-07-06 20:48:57.298562"], ["updated_at", "2015-07-06 20:48:57.298562"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.303147"], ["updated_at", "2015-07-06 20:48:57.303147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12a8ad23-ef34-4103-85da-bfe4e06e89c7' AND "clubhouse_memberships"."organization_id" = '6bb3cbe7-9773-4310-a1bd-fe8e729a517e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "12a8ad23-ef34-4103-85da-bfe4e06e89c7"], ["organization_id", "6bb3cbe7-9773-4310-a1bd-fe8e729a517e"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.307123"], ["updated_at", "2015-07-06 20:48:57.307123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d442092-c563-4c0a-9ac4-58b6f09b34a9' AND "clubhouse_memberships"."organization_id" = '6bb3cbe7-9773-4310-a1bd-fe8e729a517e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d442092-c563-4c0a-9ac4-58b6f09b34a9"], ["organization_id", "6bb3cbe7-9773-4310-a1bd-fe8e729a517e"], ["created_at", "2015-07-06 20:48:57.310867"], ["updated_at", "2015-07-06 20:48:57.310867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/7d00015a-f462-4d3d-b0d2-82c14153ad3d" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"7d00015a-f462-4d3d-b0d2-82c14153ad3d", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.314060') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4d6d7c29-f446-4010-a7cb-51726fc98f5d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.316241"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.317283"], ["id", "4d6d7c29-f446-4010-a7cb-51726fc98f5d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "7d00015a-f462-4d3d-b0d2-82c14153ad3d"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "12a8ad23-ef34-4103-85da-bfe4e06e89c7"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6bb3cbe7-9773-4310-a1bd-fe8e729a517e"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '12a8ad23-ef34-4103-85da-bfe4e06e89c7' LIMIT 1 [["organization_id", "6bb3cbe7-9773-4310-a1bd-fe8e729a517e"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5d442092-c563-4c0a-9ac4-58b6f09b34a9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "7d00015a-f462-4d3d-b0d2-82c14153ad3d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$Ve1EwRNX7fd2CYI9Efo4CevL.SN1ckq1IipEKIkR/B8xoPsM1I/Se"], ["created_at", "2015-07-06 20:48:57.335517"], ["updated_at", "2015-07-06 20:48:57.335517"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$yXYHzo0JaBsmETU0UJyfWun425fqTgyJ2TJJPv/KzErqWAJex2Lvu"], ["created_at", "2015-07-06 20:48:57.341703"], ["updated_at", "2015-07-06 20:48:57.341703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.343594"], ["user_id", "d2ee767b-b94f-4998-96ea-1ce6076bd8e7"], ["created_at", "2015-07-06 20:48:57.344270"], ["updated_at", "2015-07-06 20:48:57.344270"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.348934"], ["updated_at", "2015-07-06 20:48:57.348934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd2ee767b-b94f-4998-96ea-1ce6076bd8e7' AND "clubhouse_memberships"."organization_id" = '1e44789b-3617-4f5f-99e4-53dd6cf0c3a4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d2ee767b-b94f-4998-96ea-1ce6076bd8e7"], ["organization_id", "1e44789b-3617-4f5f-99e4-53dd6cf0c3a4"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.352635"], ["updated_at", "2015-07-06 20:48:57.352635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8aafdc6-c46a-4ed8-86d4-c8d0b3923a48' AND "clubhouse_memberships"."organization_id" = '1e44789b-3617-4f5f-99e4-53dd6cf0c3a4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8aafdc6-c46a-4ed8-86d4-c8d0b3923a48"], ["organization_id", "1e44789b-3617-4f5f-99e4-53dd6cf0c3a4"], ["created_at", "2015-07-06 20:48:57.356033"], ["updated_at", "2015-07-06 20:48:57.356033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$Y7GJmZKMn2Suu0btiltp0errX7j/6lfU8SnLLW4BhYHPcCpJ/lnwC"], ["created_at", "2015-07-06 20:48:57.366365"], ["updated_at", "2015-07-06 20:48:57.366365"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$xwco7Rfcks58XtOGLka.J.j/.L7edK4U3PxgnW/SocwQxVKG/O6/m"], ["created_at", "2015-07-06 20:48:57.373212"], ["updated_at", "2015-07-06 20:48:57.373212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.374970"], ["user_id", "b35f3c53-7914-42d2-aa23-c4dbf7da8691"], ["created_at", "2015-07-06 20:48:57.375666"], ["updated_at", "2015-07-06 20:48:57.375666"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.380016"], ["updated_at", "2015-07-06 20:48:57.380016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b35f3c53-7914-42d2-aa23-c4dbf7da8691' AND "clubhouse_memberships"."organization_id" = '0451625c-9619-4b32-92d8-b0cd5a08da1e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b35f3c53-7914-42d2-aa23-c4dbf7da8691"], ["organization_id", "0451625c-9619-4b32-92d8-b0cd5a08da1e"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.383175"], ["updated_at", "2015-07-06 20:48:57.383175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7da314ed-24c1-4566-a044-ca4cfb16ec55' AND "clubhouse_memberships"."organization_id" = '0451625c-9619-4b32-92d8-b0cd5a08da1e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7da314ed-24c1-4566-a044-ca4cfb16ec55"], ["organization_id", "0451625c-9619-4b32-92d8-b0cd5a08da1e"], ["created_at", "2015-07-06 20:48:57.386197"], ["updated_at", "2015-07-06 20:48:57.386197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$/LxCyBlrhfIAvmQ7.tcNReSMCsuKqMuhCzEl2TdoxwUU977xAkxT."], ["created_at", "2015-07-06 20:48:57.393047"], ["updated_at", "2015-07-06 20:48:57.393047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.394596"], ["user_id", "126fa93f-0bef-418e-843a-5ec962e73044"], ["created_at", "2015-07-06 20:48:57.395193"], ["updated_at", "2015-07-06 20:48:57.395193"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '0451625c-9619-4b32-92d8-b0cd5a08da1e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "0451625c-9619-4b32-92d8-b0cd5a08da1e"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.400467"], ["updated_at", "2015-07-06 20:48:57.400467"], ["token", "BYgGgKyvdW-EmXetV7ZnnrRENEYOl_QnSZin1e4tdaA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$L5gk044Yl9jL2GfnQplXKOnjJunv1bHOgOkCAKUeNdh1jP0xScnwq"], ["created_at", "2015-07-06 20:48:57.411069"], ["updated_at", "2015-07-06 20:48:57.411069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$FCNVH2ruyaFPtFQjEr4jc.i8KKCFseDfiIa88h0Lr1wi/drDVUIDO"], ["created_at", "2015-07-06 20:48:57.416215"], ["updated_at", "2015-07-06 20:48:57.416215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.417747"], ["user_id", "980838eb-767b-4f30-83e3-9bdf93c11e8e"], ["created_at", "2015-07-06 20:48:57.418369"], ["updated_at", "2015-07-06 20:48:57.418369"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.422791"], ["updated_at", "2015-07-06 20:48:57.422791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '980838eb-767b-4f30-83e3-9bdf93c11e8e' AND "clubhouse_memberships"."organization_id" = 'ec4faaa4-ca76-478d-bd2a-dca547d7e15b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "980838eb-767b-4f30-83e3-9bdf93c11e8e"], ["organization_id", "ec4faaa4-ca76-478d-bd2a-dca547d7e15b"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.426130"], ["updated_at", "2015-07-06 20:48:57.426130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e0c16449-aa95-4fef-86ec-6fdb1d04d777' AND "clubhouse_memberships"."organization_id" = 'ec4faaa4-ca76-478d-bd2a-dca547d7e15b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e0c16449-aa95-4fef-86ec-6fdb1d04d777"], ["organization_id", "ec4faaa4-ca76-478d-bd2a-dca547d7e15b"], ["created_at", "2015-07-06 20:48:57.429523"], ["updated_at", "2015-07-06 20:48:57.429523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$NkrXrlKWV6X.roBqUtHkzecf5.aYY6TmV9XehCqvsa7ZlF/6t39hC"], ["created_at", "2015-07-06 20:48:57.434643"], ["updated_at", "2015-07-06 20:48:57.434643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.436479"], ["user_id", "1fa8e394-c1c7-41eb-9e53-7ae0708cee8c"], ["created_at", "2015-07-06 20:48:57.437125"], ["updated_at", "2015-07-06 20:48:57.437125"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'ec4faaa4-ca76-478d-bd2a-dca547d7e15b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "ec4faaa4-ca76-478d-bd2a-dca547d7e15b"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.442695"], ["updated_at", "2015-07-06 20:48:57.442695"], ["token", "q0Fr3zliQZDc6D5HRu8_D4PyzucPnNQoOK-rkJwi104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ec4faaa4-ca76-478d-bd2a-dca547d7e15b/memberships" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"ec4faaa4-ca76-478d-bd2a-dca547d7e15b", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.446657') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cc82d037-1723-4b6f-acbb-0e04b0e58d13"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.447992"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.448713"], ["id", "cc82d037-1723-4b6f-acbb-0e04b0e58d13"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ec4faaa4-ca76-478d-bd2a-dca547d7e15b"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1fa8e394-c1c7-41eb-9e53-7ae0708cee8c"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$N91jMbCDkpHvWvDkYG7V/eWBVw44J3/nNeTgwi.tR2Iln96wQ8JPa"], ["created_at", "2015-07-06 20:48:57.460474"], ["updated_at", "2015-07-06 20:48:57.460474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$XotWfqScqpUg1sjdn40X6.rZiKizHVY1Wi/e4A3HlfrWnKEiZxoVe"], ["created_at", "2015-07-06 20:48:57.465637"], ["updated_at", "2015-07-06 20:48:57.465637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.467204"], ["user_id", "227b0539-9c6c-4068-a9d6-d1a496afb8e5"], ["created_at", "2015-07-06 20:48:57.467898"], ["updated_at", "2015-07-06 20:48:57.467898"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.472429"], ["updated_at", "2015-07-06 20:48:57.472429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '227b0539-9c6c-4068-a9d6-d1a496afb8e5' AND "clubhouse_memberships"."organization_id" = 'e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "227b0539-9c6c-4068-a9d6-d1a496afb8e5"], ["organization_id", "e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.475701"], ["updated_at", "2015-07-06 20:48:57.475701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67190319-b85f-42c5-acda-f1465437734a' AND "clubhouse_memberships"."organization_id" = 'e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "67190319-b85f-42c5-acda-f1465437734a"], ["organization_id", "e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce"], ["created_at", "2015-07-06 20:48:57.479085"], ["updated_at", "2015-07-06 20:48:57.479085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$bhINNXhBn7Z28797kY.b6ew6c.t5GtV4kpWmrjJW9toyUhpeDTEzy"], ["created_at", "2015-07-06 20:48:57.484286"], ["updated_at", "2015-07-06 20:48:57.484286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.485964"], ["user_id", "04bdf1d8-aa19-454c-a0b5-a23ddf00ca41"], ["created_at", "2015-07-06 20:48:57.486553"], ["updated_at", "2015-07-06 20:48:57.486553"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.491256"], ["updated_at", "2015-07-06 20:48:57.491256"], ["token", "s8APoIGgZtJSkfIsFVx4VD6MnMvkJghYoT0krUNjRjU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce/memberships" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"s8APoIGgZtJSkfIsFVx4VD6MnMvkJghYoT0krUNjRjU", "organization_id"=>"e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.494743') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3c7085b4-5da9-4a98-867a-10bcbc71d16f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.496047"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.496767"], ["id", "3c7085b4-5da9-4a98-867a-10bcbc71d16f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "04bdf1d8-aa19-454c-a0b5-a23ddf00ca41"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (2.6ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "s8APoIGgZtJSkfIsFVx4VD6MnMvkJghYoT0krUNjRjU"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04bdf1d8-aa19-454c-a0b5-a23ddf00ca41' AND "clubhouse_memberships"."organization_id" = 'e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "e0f4c1b4-f11f-4c50-838e-e4b09b05b7ce"], ["member_id", "04bdf1d8-aa19-454c-a0b5-a23ddf00ca41"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.510030"], ["updated_at", "2015-07-06 20:48:57.510030"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "606854c6-cbc7-4cd7-890b-577e484a31ae"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 0.9ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$DserSx5hSpFlkn.TnQThSeoKbQ.pXj0U1UXP0TLFJA9C7sKUPf78W"], ["created_at", "2015-07-06 20:48:57.520373"], ["updated_at", "2015-07-06 20:48:57.520373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$Ojfe3bXsrDRnDzpeB9PUiOX4HNhsrXblJDHxY8sXwPg5g17d.o6im"], ["created_at", "2015-07-06 20:48:57.525815"], ["updated_at", "2015-07-06 20:48:57.525815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.527468"], ["user_id", "f69cd6c2-2a32-49e0-ab47-08e840ae6c2a"], ["created_at", "2015-07-06 20:48:57.528045"], ["updated_at", "2015-07-06 20:48:57.528045"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.532097"], ["updated_at", "2015-07-06 20:48:57.532097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f69cd6c2-2a32-49e0-ab47-08e840ae6c2a' AND "clubhouse_memberships"."organization_id" = '7d206f3f-0926-43ba-b4d7-8709b7a5407b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f69cd6c2-2a32-49e0-ab47-08e840ae6c2a"], ["organization_id", "7d206f3f-0926-43ba-b4d7-8709b7a5407b"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.535252"], ["updated_at", "2015-07-06 20:48:57.535252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b284efb0-1232-4de0-b225-fd08554529c6' AND "clubhouse_memberships"."organization_id" = '7d206f3f-0926-43ba-b4d7-8709b7a5407b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b284efb0-1232-4de0-b225-fd08554529c6"], ["organization_id", "7d206f3f-0926-43ba-b4d7-8709b7a5407b"], ["created_at", "2015-07-06 20:48:57.538208"], ["updated_at", "2015-07-06 20:48:57.538208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/0035d00b-8874-4209-ba4d-8197425fe99a" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"0035d00b-8874-4209-ba4d-8197425fe99a", "membership"=>{"admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.541514') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b96a8452-2b4a-4ce7-8d94-80fe46cf4fb3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.542837"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.543547"], ["id", "b96a8452-2b4a-4ce7-8d94-80fe46cf4fb3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "0035d00b-8874-4209-ba4d-8197425fe99a"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f69cd6c2-2a32-49e0-ab47-08e840ae6c2a"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7d206f3f-0926-43ba-b4d7-8709b7a5407b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f69cd6c2-2a32-49e0-ab47-08e840ae6c2a' LIMIT 1 [["organization_id", "7d206f3f-0926-43ba-b4d7-8709b7a5407b"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b284efb0-1232-4de0-b225-fd08554529c6"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b284efb0-1232-4de0-b225-fd08554529c6' AND "clubhouse_memberships"."id" != '0035d00b-8874-4209-ba4d-8197425fe99a' AND "clubhouse_memberships"."organization_id" = '7d206f3f-0926-43ba-b4d7-8709b7a5407b') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 20:48:57.553643"], ["id", "0035d00b-8874-4209-ba4d-8197425fe99a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.9ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$G7oE9xw.NRAy.VqL2VEKjeECe0hPiwL2W.KXI13AElmxVei0ClN/."], ["created_at", "2015-07-06 20:48:57.565099"], ["updated_at", "2015-07-06 20:48:57.565099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$g8nmeE8yv9kpKmyR..Lg8OJo.2IhAKcqGhlUBIvgtfcP5H5fNuB1a"], ["created_at", "2015-07-06 20:48:57.571394"], ["updated_at", "2015-07-06 20:48:57.571394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.573463"], ["user_id", "fb95ca76-50fe-44d8-a1b7-c593c29d9203"], ["created_at", "2015-07-06 20:48:57.574147"], ["updated_at", "2015-07-06 20:48:57.574147"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.579955"], ["updated_at", "2015-07-06 20:48:57.579955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fb95ca76-50fe-44d8-a1b7-c593c29d9203' AND "clubhouse_memberships"."organization_id" = '1d3d281a-ec5d-4cac-98f8-183d596c7ca2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fb95ca76-50fe-44d8-a1b7-c593c29d9203"], ["organization_id", "1d3d281a-ec5d-4cac-98f8-183d596c7ca2"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.583665"], ["updated_at", "2015-07-06 20:48:57.583665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b75731e9-7221-4594-890f-376931d2a117' AND "clubhouse_memberships"."organization_id" = '1d3d281a-ec5d-4cac-98f8-183d596c7ca2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b75731e9-7221-4594-890f-376931d2a117"], ["organization_id", "1d3d281a-ec5d-4cac-98f8-183d596c7ca2"], ["created_at", "2015-07-06 20:48:57.586686"], ["updated_at", "2015-07-06 20:48:57.586686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$zEm4oAJoml44.PcRUiXnEu/yKk.vtDvFRx0y.pbnkX56FBCqZ11K2"], ["created_at", "2015-07-06 20:48:57.598067"], ["updated_at", "2015-07-06 20:48:57.598067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$9The01AsjIEsFmR6Y.wdTePZd/YdkQpa9KiIc7W4WWySXRdt9anMO"], ["created_at", "2015-07-06 20:48:57.604146"], ["updated_at", "2015-07-06 20:48:57.604146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.606374"], ["user_id", "1c6f5ef3-e129-4d85-b3e5-35ced581c9bc"], ["created_at", "2015-07-06 20:48:57.607478"], ["updated_at", "2015-07-06 20:48:57.607478"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.612472"], ["updated_at", "2015-07-06 20:48:57.612472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1c6f5ef3-e129-4d85-b3e5-35ced581c9bc' AND "clubhouse_memberships"."organization_id" = 'e4ad2b92-cf12-4630-bd92-64f669fe585b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1c6f5ef3-e129-4d85-b3e5-35ced581c9bc"], ["organization_id", "e4ad2b92-cf12-4630-bd92-64f669fe585b"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.615947"], ["updated_at", "2015-07-06 20:48:57.615947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '55e52c51-c503-440e-9d71-30b1950eed2d' AND "clubhouse_memberships"."organization_id" = 'e4ad2b92-cf12-4630-bd92-64f669fe585b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "55e52c51-c503-440e-9d71-30b1950eed2d"], ["organization_id", "e4ad2b92-cf12-4630-bd92-64f669fe585b"], ["created_at", "2015-07-06 20:48:57.619020"], ["updated_at", "2015-07-06 20:48:57.619020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/e4ad2b92-cf12-4630-bd92-64f669fe585b/memberships" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"e4ad2b92-cf12-4630-bd92-64f669fe585b", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.622544') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1d63e35b-1160-49e2-9740-92e9798e15a2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.624189"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.625106"], ["id", "1d63e35b-1160-49e2-9740-92e9798e15a2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e4ad2b92-cf12-4630-bd92-64f669fe585b"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1c6f5ef3-e129-4d85-b3e5-35ced581c9bc"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1c6f5ef3-e129-4d85-b3e5-35ced581c9bc' LIMIT 1 [["organization_id", "e4ad2b92-cf12-4630-bd92-64f669fe585b"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "e4ad2b92-cf12-4630-bd92-64f669fe585b"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1c6f5ef3-e129-4d85-b3e5-35ced581c9bc"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "55e52c51-c503-440e-9d71-30b1950eed2d"]] Completed 200 OK in 14ms (Views: 4.0ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$DoAQQF11Hdq22lOMK/OFwuSPeyDea9JBegGhoizYrhBlqlHszyW1q"], ["created_at", "2015-07-06 20:48:57.644288"], ["updated_at", "2015-07-06 20:48:57.644288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$Qj6BEpq2TzJu4XC0EVKSeO387BAhD9DiBo.uCnh.a1F3DcX6rI2ye"], ["created_at", "2015-07-06 20:48:57.650035"], ["updated_at", "2015-07-06 20:48:57.650035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.651802"], ["user_id", "34ec37cf-4f15-4bdb-867b-ce330a91b2b3"], ["created_at", "2015-07-06 20:48:57.652505"], ["updated_at", "2015-07-06 20:48:57.652505"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.658163"], ["updated_at", "2015-07-06 20:48:57.658163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34ec37cf-4f15-4bdb-867b-ce330a91b2b3' AND "clubhouse_memberships"."organization_id" = '3338717d-760d-455b-83af-6ccfd8b8a25e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34ec37cf-4f15-4bdb-867b-ce330a91b2b3"], ["organization_id", "3338717d-760d-455b-83af-6ccfd8b8a25e"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.661933"], ["updated_at", "2015-07-06 20:48:57.661933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64bb6e22-ecdd-4d8f-8819-4947d3a9ebd4' AND "clubhouse_memberships"."organization_id" = '3338717d-760d-455b-83af-6ccfd8b8a25e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64bb6e22-ecdd-4d8f-8819-4947d3a9ebd4"], ["organization_id", "3338717d-760d-455b-83af-6ccfd8b8a25e"], ["created_at", "2015-07-06 20:48:57.665522"], ["updated_at", "2015-07-06 20:48:57.665522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$9uyO1Yuy2aITC90dx3ZU0.fiWl2A7ZolvMW0al0val4H3jXHLYwnm"], ["created_at", "2015-07-06 20:48:57.678175"], ["updated_at", "2015-07-06 20:48:57.678175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$bGxEVXQMVovNydHEkEWBuuHA8ZzhkbkjtFek3xCpi9S9QySbLTzVm"], ["created_at", "2015-07-06 20:48:57.684741"], ["updated_at", "2015-07-06 20:48:57.684741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.687033"], ["user_id", "ad5edec2-c61e-434b-98e7-16eb75719d28"], ["created_at", "2015-07-06 20:48:57.687819"], ["updated_at", "2015-07-06 20:48:57.687819"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.693149"], ["updated_at", "2015-07-06 20:48:57.693149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad5edec2-c61e-434b-98e7-16eb75719d28' AND "clubhouse_memberships"."organization_id" = '8df8f832-a524-4391-a3d6-a80503661dbb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad5edec2-c61e-434b-98e7-16eb75719d28"], ["organization_id", "8df8f832-a524-4391-a3d6-a80503661dbb"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.697246"], ["updated_at", "2015-07-06 20:48:57.697246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ed798818-762d-4730-8bd3-09023ee51a5a' AND "clubhouse_memberships"."organization_id" = '8df8f832-a524-4391-a3d6-a80503661dbb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ed798818-762d-4730-8bd3-09023ee51a5a"], ["organization_id", "8df8f832-a524-4391-a3d6-a80503661dbb"], ["created_at", "2015-07-06 20:48:57.700350"], ["updated_at", "2015-07-06 20:48:57.700350"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.703765') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ce502b8c-ad15-4e9c-8ed7-0c9777100f65"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.705353"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.706159"], ["id", "ce502b8c-ad15-4e9c-8ed7-0c9777100f65"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad5edec2-c61e-434b-98e7-16eb75719d28"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ad5edec2-c61e-434b-98e7-16eb75719d28' LIMIT 1 [["organization_id", "8df8f832-a524-4391-a3d6-a80503661dbb"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "8df8f832-a524-4391-a3d6-a80503661dbb"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad5edec2-c61e-434b-98e7-16eb75719d28"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ed798818-762d-4730-8bd3-09023ee51a5a"]] Completed 200 OK in 12ms (Views: 3.5ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$.J4ZoND/oNchF800gLzI4.Tih8ksGYgE4ca/V2ktb506leixygsD6"], ["created_at", "2015-07-06 20:48:57.723564"], ["updated_at", "2015-07-06 20:48:57.723564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$y4I8GN8KynGWEHi6Olh3ge0mpiw2wdJHIY9y6buNCOQmyQzCim46m"], ["created_at", "2015-07-06 20:48:57.729229"], ["updated_at", "2015-07-06 20:48:57.729229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.730908"], ["user_id", "6cff3117-76d5-4f64-a6c2-5e256744cc23"], ["created_at", "2015-07-06 20:48:57.731592"], ["updated_at", "2015-07-06 20:48:57.731592"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.736445"], ["updated_at", "2015-07-06 20:48:57.736445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6cff3117-76d5-4f64-a6c2-5e256744cc23' AND "clubhouse_memberships"."organization_id" = 'fa2d95e6-a9ba-40ef-89dd-0501d48ec6f5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6cff3117-76d5-4f64-a6c2-5e256744cc23"], ["organization_id", "fa2d95e6-a9ba-40ef-89dd-0501d48ec6f5"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.740364"], ["updated_at", "2015-07-06 20:48:57.740364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b5176bff-e636-49e5-a57b-e4fe11ce1287' AND "clubhouse_memberships"."organization_id" = 'fa2d95e6-a9ba-40ef-89dd-0501d48ec6f5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b5176bff-e636-49e5-a57b-e4fe11ce1287"], ["organization_id", "fa2d95e6-a9ba-40ef-89dd-0501d48ec6f5"], ["created_at", "2015-07-06 20:48:57.743724"], ["updated_at", "2015-07-06 20:48:57.743724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$HOxVa0o9lroVsiKiB.E5kenjS1DsLTxcFCWGnTTGTh.4CGRPBd782"], ["created_at", "2015-07-06 20:48:57.753431"], ["updated_at", "2015-07-06 20:48:57.753431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$aRXmrxUBU0kJT84VHMSj.eIwtw.Lag6jQ4CxQ2AwQgqtqSletzpKK"], ["created_at", "2015-07-06 20:48:57.760412"], ["updated_at", "2015-07-06 20:48:57.760412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.762152"], ["user_id", "dfcf58f7-dd73-4ceb-90e3-d88cf9d516ba"], ["created_at", "2015-07-06 20:48:57.762800"], ["updated_at", "2015-07-06 20:48:57.762800"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.767012"], ["updated_at", "2015-07-06 20:48:57.767012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dfcf58f7-dd73-4ceb-90e3-d88cf9d516ba' AND "clubhouse_memberships"."organization_id" = '173771e9-5680-4461-a04b-907230764921') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dfcf58f7-dd73-4ceb-90e3-d88cf9d516ba"], ["organization_id", "173771e9-5680-4461-a04b-907230764921"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.770503"], ["updated_at", "2015-07-06 20:48:57.770503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52c67201-789f-4b89-bfa8-e56fb14caf86' AND "clubhouse_memberships"."organization_id" = '173771e9-5680-4461-a04b-907230764921') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "52c67201-789f-4b89-bfa8-e56fb14caf86"], ["organization_id", "173771e9-5680-4461-a04b-907230764921"], ["created_at", "2015-07-06 20:48:57.773482"], ["updated_at", "2015-07-06 20:48:57.773482"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/77460017-df79-4143-8f6c-6bfe01f726fd" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"77460017-df79-4143-8f6c-6bfe01f726fd", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.776722') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "74415069-8d83-445f-a7c8-348cc2a4449f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.778252"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.779023"], ["id", "74415069-8d83-445f-a7c8-348cc2a4449f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "77460017-df79-4143-8f6c-6bfe01f726fd"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dfcf58f7-dd73-4ceb-90e3-d88cf9d516ba"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "173771e9-5680-4461-a04b-907230764921"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'dfcf58f7-dd73-4ceb-90e3-d88cf9d516ba' LIMIT 1 [["organization_id", "173771e9-5680-4461-a04b-907230764921"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dfcf58f7-dd73-4ceb-90e3-d88cf9d516ba"]] Completed 200 OK in 10ms (Views: 1.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$SV.MLxtz26uNcPyZvXFBgOZdu5Y9xNC3f2ZaoL98Y3JfC3M/tlIV2"], ["created_at", "2015-07-06 20:48:57.794661"], ["updated_at", "2015-07-06 20:48:57.794661"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$oVtHVBHfswc3ENp2BceHb.LZTJoRyQtMkOpoMS9AHWhtdk4oGo0mu"], ["created_at", "2015-07-06 20:48:57.802912"], ["updated_at", "2015-07-06 20:48:57.802912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.805349"], ["user_id", "236c0364-3b00-4ed5-9696-06e647fea034"], ["created_at", "2015-07-06 20:48:57.806421"], ["updated_at", "2015-07-06 20:48:57.806421"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.812075"], ["updated_at", "2015-07-06 20:48:57.812075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '236c0364-3b00-4ed5-9696-06e647fea034' AND "clubhouse_memberships"."organization_id" = '0a49b8e6-7c96-4774-a2ef-f32c5366a591') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "236c0364-3b00-4ed5-9696-06e647fea034"], ["organization_id", "0a49b8e6-7c96-4774-a2ef-f32c5366a591"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.816378"], ["updated_at", "2015-07-06 20:48:57.816378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '052c6930-391e-4544-92a5-56fa332ddfe2' AND "clubhouse_memberships"."organization_id" = '0a49b8e6-7c96-4774-a2ef-f32c5366a591') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "052c6930-391e-4544-92a5-56fa332ddfe2"], ["organization_id", "0a49b8e6-7c96-4774-a2ef-f32c5366a591"], ["created_at", "2015-07-06 20:48:57.820189"], ["updated_at", "2015-07-06 20:48:57.820189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 39"], ["email", "user.39@example.com"], ["password_digest", "$2a$04$AuUK3N70xe7MOxGDm50vROk7YTlCr6bcSViJeOwiDWOzkssU23T3q"], ["created_at", "2015-07-06 20:48:57.830313"], ["updated_at", "2015-07-06 20:48:57.830313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.832536"], ["user_id", "d3e20a12-789c-4ff2-a1f2-cf636da92af6"], ["created_at", "2015-07-06 20:48:57.833293"], ["updated_at", "2015-07-06 20:48:57.833293"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.838269"], ["updated_at", "2015-07-06 20:48:57.838269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3e20a12-789c-4ff2-a1f2-cf636da92af6' AND "clubhouse_memberships"."organization_id" = '3daa6907-10f9-4a08-a900-ee2665cdd2fa') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d3e20a12-789c-4ff2-a1f2-cf636da92af6"], ["organization_id", "3daa6907-10f9-4a08-a900-ee2665cdd2fa"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.842631"], ["updated_at", "2015-07-06 20:48:57.842631"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '3daa6907-10f9-4a08-a900-ee2665cdd2fa') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "3daa6907-10f9-4a08-a900-ee2665cdd2fa"], ["created_at", "2015-07-06 20:48:57.848106"], ["updated_at", "2015-07-06 20:48:57.848106"], ["token", "GrLjLxg9GABuxz8Abg40yMrrsNubFZsGilyfWuhwWYg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (2.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 40"], ["email", "user.40@example.com"], ["password_digest", "$2a$04$4/HmF3PHwg8SWv3KXXfZpumJMKehwmkD299db8vObE9vl3lNqkam2"], ["created_at", "2015-07-06 20:48:57.866524"], ["updated_at", "2015-07-06 20:48:57.866524"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.872001"], ["user_id", "8d44b7a5-f076-492c-872d-f1c5d87492f1"], ["created_at", "2015-07-06 20:48:57.873518"], ["updated_at", "2015-07-06 20:48:57.873518"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.879254"], ["updated_at", "2015-07-06 20:48:57.879254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8d44b7a5-f076-492c-872d-f1c5d87492f1' AND "clubhouse_memberships"."organization_id" = '7b04a8e3-fd98-4bbe-a2ec-1f56837393cb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8d44b7a5-f076-492c-872d-f1c5d87492f1"], ["organization_id", "7b04a8e3-fd98-4bbe-a2ec-1f56837393cb"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.882877"], ["updated_at", "2015-07-06 20:48:57.882877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '7b04a8e3-fd98-4bbe-a2ec-1f56837393cb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "7b04a8e3-fd98-4bbe-a2ec-1f56837393cb"], ["created_at", "2015-07-06 20:48:57.887528"], ["updated_at", "2015-07-06 20:48:57.887528"], ["token", "PM7kl_nJxnPRdEpkiaPs28UmOQa8kpCjzA8Z6rILddo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.891430') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0cbdec6f-99fe-4c25-b4cf-0b055ee2bdac"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.892853"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.893640"], ["id", "0cbdec6f-99fe-4c25-b4cf-0b055ee2bdac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8d44b7a5-f076-492c-872d-f1c5d87492f1"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8d44b7a5-f076-492c-872d-f1c5d87492f1' LIMIT 1 [["organization_id", "7b04a8e3-fd98-4bbe-a2ec-1f56837393cb"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '7b04a8e3-fd98-4bbe-a2ec-1f56837393cb') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 28ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 41"], ["email", "user.41@example.com"], ["password_digest", "$2a$04$tIiba0KtileLuL6DOdzeZuuhlBNedGh8Ds/cl4pvFtvVJV/dDUyCS"], ["created_at", "2015-07-06 20:48:57.926351"], ["updated_at", "2015-07-06 20:48:57.926351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:57.928275"], ["user_id", "88028d92-a995-4df6-8b56-722044301562"], ["created_at", "2015-07-06 20:48:57.928990"], ["updated_at", "2015-07-06 20:48:57.928990"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:57.933072"], ["updated_at", "2015-07-06 20:48:57.933072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88028d92-a995-4df6-8b56-722044301562' AND "clubhouse_memberships"."organization_id" = 'cf37e3bf-1233-47f6-bb82-1423a4bc136a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88028d92-a995-4df6-8b56-722044301562"], ["organization_id", "cf37e3bf-1233-47f6-bb82-1423a4bc136a"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.936001"], ["updated_at", "2015-07-06 20:48:57.936001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'cf37e3bf-1233-47f6-bb82-1423a4bc136a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "cf37e3bf-1233-47f6-bb82-1423a4bc136a"], ["created_at", "2015-07-06 20:48:57.940884"], ["updated_at", "2015-07-06 20:48:57.940884"], ["token", "a8er_RqNxj0OOsNmQJW8iQNYrNQVUvd8IoW5pTGY-1o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 13:48:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:57.943816') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "418be613-85b1-48c8-948c-199dc8848ae1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:57.945576"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:57.946582"], ["id", "418be613-85b1-48c8-948c-199dc8848ae1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "88028d92-a995-4df6-8b56-722044301562"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '88028d92-a995-4df6-8b56-722044301562' LIMIT 1 [["organization_id", "cf37e3bf-1233-47f6-bb82-1423a4bc136a"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'cf37e3bf-1233-47f6-bb82-1423a4bc136a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "cf37e3bf-1233-47f6-bb82-1423a4bc136a"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 20:48:57.959322"], ["updated_at", "2015-07-06 20:48:57.959322"], ["token", "vBFp5qg1sIbvpHLPMJ-h8mIoUO-kG11hR8KTOYQlNZE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8d36e893-dea8-47dd-ade7-c29f5956dd47) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/947786d1-107a-43af-afad-0e5d076a9202 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "947786d1-107a-43af-afad-0e5d076a9202"]] [ActiveJob] [ActionMailer::DeliveryJob] [8d36e893-dea8-47dd-ade7-c29f5956dd47] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/947786d1-107a-43af-afad-0e5d076a9202 [ActiveJob] [ActionMailer::DeliveryJob] [8d36e893-dea8-47dd-ade7-c29f5956dd47] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cf37e3bf-1233-47f6-bb82-1423a4bc136a"]] [ActiveJob] [ActionMailer::DeliveryJob] [8d36e893-dea8-47dd-ade7-c29f5956dd47] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [8d36e893-dea8-47dd-ade7-c29f5956dd47] Clubhouse::Mailer#invitation: processed outbound mail in 238.1ms [ActiveJob] [ActionMailer::DeliveryJob] [8d36e893-dea8-47dd-ade7-c29f5956dd47] Sent mail to email@example.com (13.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [8d36e893-dea8-47dd-ade7-c29f5956dd47] Date: Mon, 06 Jul 2015 13:48:58 -0700 From: from@example.com To: email@example.com Message-ID: <559ae9ba39ac7_105063ff65485e2086827@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/vBFp5qg1sIbvpHLPMJ-h8mIoUO-kG11hR8KTOYQlNZE?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [8d36e893-dea8-47dd-ade7-c29f5956dd47] Performed ActionMailer::DeliveryJob from Inline(mailers) in 252.8ms Completed 201 Created in 299ms (Views: 1.7ms | ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 42"], ["email", "user.42@example.com"], ["password_digest", "$2a$04$0cp/WRryvaT8nofFvl2LaOzvH41NnomApexXDaqtWE3Gm5sCjr9Wu"], ["created_at", "2015-07-06 20:48:58.255180"], ["updated_at", "2015-07-06 20:48:58.255180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.257171"], ["user_id", "41b7784f-fe29-46a8-8c1b-76697dc47ce9"], ["created_at", "2015-07-06 20:48:58.257899"], ["updated_at", "2015-07-06 20:48:58.257899"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.263123"], ["updated_at", "2015-07-06 20:48:58.263123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41b7784f-fe29-46a8-8c1b-76697dc47ce9' AND "clubhouse_memberships"."organization_id" = 'b974c2fc-611d-4408-ad48-da32aad9cdd8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "41b7784f-fe29-46a8-8c1b-76697dc47ce9"], ["organization_id", "b974c2fc-611d-4408-ad48-da32aad9cdd8"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.266353"], ["updated_at", "2015-07-06 20:48:58.266353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'b974c2fc-611d-4408-ad48-da32aad9cdd8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "b974c2fc-611d-4408-ad48-da32aad9cdd8"], ["created_at", "2015-07-06 20:48:58.270827"], ["updated_at", "2015-07-06 20:48:58.270827"], ["token", "uZH_ies6p-mVYYO9zpq91v3EiRQTepnrOyn_67xl7UM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:58.274251') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c3450129-96a1-42a2-ba4e-877a5d3cb235"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:58.276225"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:58.277037"], ["id", "c3450129-96a1-42a2-ba4e-877a5d3cb235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "41b7784f-fe29-46a8-8c1b-76697dc47ce9"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '41b7784f-fe29-46a8-8c1b-76697dc47ce9' LIMIT 1 [["organization_id", "b974c2fc-611d-4408-ad48-da32aad9cdd8"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'b974c2fc-611d-4408-ad48-da32aad9cdd8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "b974c2fc-611d-4408-ad48-da32aad9cdd8"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.285329"], ["updated_at", "2015-07-06 20:48:58.285329"], ["token", "cY3A-PSJQRz31L0csjoOlU9M7cqhCLEFSenwyNTAqXM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4d0853b2-7f4d-49d3-94cb-412302c81f3c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/75f4ae7b-fc6d-4c78-9a3c-2546f2669937 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "75f4ae7b-fc6d-4c78-9a3c-2546f2669937"]] [ActiveJob] [ActionMailer::DeliveryJob] [4d0853b2-7f4d-49d3-94cb-412302c81f3c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/75f4ae7b-fc6d-4c78-9a3c-2546f2669937 [ActiveJob] [ActionMailer::DeliveryJob] [4d0853b2-7f4d-49d3-94cb-412302c81f3c] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b974c2fc-611d-4408-ad48-da32aad9cdd8"]] [ActiveJob] [ActionMailer::DeliveryJob] [4d0853b2-7f4d-49d3-94cb-412302c81f3c] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [4d0853b2-7f4d-49d3-94cb-412302c81f3c] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [4d0853b2-7f4d-49d3-94cb-412302c81f3c] Sent mail to email@example.com (2.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4d0853b2-7f4d-49d3-94cb-412302c81f3c] Date: Mon, 06 Jul 2015 13:48:58 -0700 From: from@example.com To: email@example.com Message-ID: <559ae9ba47398_105063ff65485e208683d3@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/cY3A-PSJQRz31L0csjoOlU9M7cqhCLEFSenwyNTAqXM?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4d0853b2-7f4d-49d3-94cb-412302c81f3c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.65ms Completed 201 Created in 20ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 43"], ["email", "user.43@example.com"], ["password_digest", "$2a$04$q3DXGYCkYsd6RkByh.JyGeAZ7ISFG7dcBNEyDeqFcsEOQHNSKZ7mC"], ["created_at", "2015-07-06 20:48:58.301813"], ["updated_at", "2015-07-06 20:48:58.301813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.303453"], ["user_id", "6872ae15-4552-4db3-b76e-15fb93200c0e"], ["created_at", "2015-07-06 20:48:58.304078"], ["updated_at", "2015-07-06 20:48:58.304078"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.308996"], ["updated_at", "2015-07-06 20:48:58.308996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6872ae15-4552-4db3-b76e-15fb93200c0e' AND "clubhouse_memberships"."organization_id" = 'c0b38e0e-bd20-4692-948a-0a9ea3d7538c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6872ae15-4552-4db3-b76e-15fb93200c0e"], ["organization_id", "c0b38e0e-bd20-4692-948a-0a9ea3d7538c"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.312409"], ["updated_at", "2015-07-06 20:48:58.312409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'c0b38e0e-bd20-4692-948a-0a9ea3d7538c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "c0b38e0e-bd20-4692-948a-0a9ea3d7538c"], ["created_at", "2015-07-06 20:48:58.316910"], ["updated_at", "2015-07-06 20:48:58.316910"], ["token", "yN6Prk5ipsWPu4EU0fgK6X3Vubi-y1VznsWgRexuspQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/88fcc8c5-09b1-45a7-bac5-f1e1f50c5230" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"88fcc8c5-09b1-45a7-bac5-f1e1f50c5230", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:58.320355') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "482c0189-f4fa-424e-b7ac-7c8919a7c0d3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:58.321694"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:58.322499"], ["id", "482c0189-f4fa-424e-b7ac-7c8919a7c0d3"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "88fcc8c5-09b1-45a7-bac5-f1e1f50c5230"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6872ae15-4552-4db3-b76e-15fb93200c0e"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c0b38e0e-bd20-4692-948a-0a9ea3d7538c"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6872ae15-4552-4db3-b76e-15fb93200c0e' LIMIT 1 [["organization_id", "c0b38e0e-bd20-4692-948a-0a9ea3d7538c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "88fcc8c5-09b1-45a7-bac5-f1e1f50c5230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 44"], ["email", "user.44@example.com"], ["password_digest", "$2a$04$2kUB22I1S8L6KxBnQBXUF.LV1afc0dQ8xZf.Kwu6XsIrFbwzdjGPS"], ["created_at", "2015-07-06 20:48:58.339699"], ["updated_at", "2015-07-06 20:48:58.339699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.342137"], ["user_id", "02513f63-4e67-4ec9-a0f5-7e36a1d8f0c4"], ["created_at", "2015-07-06 20:48:58.343080"], ["updated_at", "2015-07-06 20:48:58.343080"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.347580"], ["updated_at", "2015-07-06 20:48:58.347580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02513f63-4e67-4ec9-a0f5-7e36a1d8f0c4' AND "clubhouse_memberships"."organization_id" = '621a9737-6e8e-4869-a225-b707fd557d0f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02513f63-4e67-4ec9-a0f5-7e36a1d8f0c4"], ["organization_id", "621a9737-6e8e-4869-a225-b707fd557d0f"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.351464"], ["updated_at", "2015-07-06 20:48:58.351464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '621a9737-6e8e-4869-a225-b707fd557d0f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "621a9737-6e8e-4869-a225-b707fd557d0f"], ["created_at", "2015-07-06 20:48:58.355815"], ["updated_at", "2015-07-06 20:48:58.355815"], ["token", "Chq4zaVi_RdjSANcqL5tgbW2MQFdWAjcmshzG-rSlsE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 45"], ["email", "user.45@example.com"], ["password_digest", "$2a$04$OhXEs5af/AaXLunFxw8keOcwVmYSuhQ2oAGCxuNJopls39faZlrvO"], ["created_at", "2015-07-06 20:48:58.366214"], ["updated_at", "2015-07-06 20:48:58.366214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.368050"], ["user_id", "67761f04-de3a-45c4-a0fc-695a1c787c09"], ["created_at", "2015-07-06 20:48:58.368964"], ["updated_at", "2015-07-06 20:48:58.368964"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.374722"], ["updated_at", "2015-07-06 20:48:58.374722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '67761f04-de3a-45c4-a0fc-695a1c787c09' AND "clubhouse_memberships"."organization_id" = '38cdaa2f-f506-414e-8759-9ed2194e416b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "67761f04-de3a-45c4-a0fc-695a1c787c09"], ["organization_id", "38cdaa2f-f506-414e-8759-9ed2194e416b"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.378525"], ["updated_at", "2015-07-06 20:48:58.378525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '38cdaa2f-f506-414e-8759-9ed2194e416b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "38cdaa2f-f506-414e-8759-9ed2194e416b"], ["created_at", "2015-07-06 20:48:58.383424"], ["updated_at", "2015-07-06 20:48:58.383424"], ["token", "zmN4k1w4yo_iIzO1qzc4Es_5OuaBZ0Eni3jG1xVb5mU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 46"], ["email", "user.46@example.com"], ["password_digest", "$2a$04$gP3Z5GysQkCYVGBM/bJoP.VB0r6CPFv2mMWSlHeynu2DnrthkBuPS"], ["created_at", "2015-07-06 20:48:58.393373"], ["updated_at", "2015-07-06 20:48:58.393373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.395194"], ["user_id", "7c63e50e-87e6-46c7-898d-5fdec5ba5f83"], ["created_at", "2015-07-06 20:48:58.395944"], ["updated_at", "2015-07-06 20:48:58.395944"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.400700"], ["updated_at", "2015-07-06 20:48:58.400700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c63e50e-87e6-46c7-898d-5fdec5ba5f83' AND "clubhouse_memberships"."organization_id" = '44119958-7ff3-4f3b-b1f5-8533097bf523') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c63e50e-87e6-46c7-898d-5fdec5ba5f83"], ["organization_id", "44119958-7ff3-4f3b-b1f5-8533097bf523"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.404074"], ["updated_at", "2015-07-06 20:48:58.404074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '44119958-7ff3-4f3b-b1f5-8533097bf523') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "44119958-7ff3-4f3b-b1f5-8533097bf523"], ["created_at", "2015-07-06 20:48:58.408897"], ["updated_at", "2015-07-06 20:48:58.408897"], ["token", "pH6JFCwiGcwzdOR_tosDzG_k0pO7-h5TwjmHJVYWswo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/44119958-7ff3-4f3b-b1f5-8533097bf523/invitations" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"44119958-7ff3-4f3b-b1f5-8533097bf523", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:58.412053') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "85f7406b-5712-42f0-a625-fe99a4ad4997"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:58.413689"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:58.414654"], ["id", "85f7406b-5712-42f0-a625-fe99a4ad4997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "44119958-7ff3-4f3b-b1f5-8533097bf523"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7c63e50e-87e6-46c7-898d-5fdec5ba5f83"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7c63e50e-87e6-46c7-898d-5fdec5ba5f83' LIMIT 1 [["organization_id", "44119958-7ff3-4f3b-b1f5-8533097bf523"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '44119958-7ff3-4f3b-b1f5-8533097bf523') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 47"], ["email", "user.47@example.com"], ["password_digest", "$2a$04$k8DUtBCpbmKbKfk2T0KsWuotpdGpvQuJollBxuKQn/nX9kJXq5dvi"], ["created_at", "2015-07-06 20:48:58.435340"], ["updated_at", "2015-07-06 20:48:58.435340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.437481"], ["user_id", "1b340293-27d6-4a70-8671-d98a9d8c10c9"], ["created_at", "2015-07-06 20:48:58.438619"], ["updated_at", "2015-07-06 20:48:58.438619"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.443655"], ["updated_at", "2015-07-06 20:48:58.443655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1b340293-27d6-4a70-8671-d98a9d8c10c9' AND "clubhouse_memberships"."organization_id" = '13c2a433-ce18-43ea-bf6a-942a22aa7a70') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1b340293-27d6-4a70-8671-d98a9d8c10c9"], ["organization_id", "13c2a433-ce18-43ea-bf6a-942a22aa7a70"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.447556"], ["updated_at", "2015-07-06 20:48:58.447556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '13c2a433-ce18-43ea-bf6a-942a22aa7a70') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "13c2a433-ce18-43ea-bf6a-942a22aa7a70"], ["created_at", "2015-07-06 20:48:58.452281"], ["updated_at", "2015-07-06 20:48:58.452281"], ["token", "ToJt3sIzlwTzhhluHbCHzwa2-XzhDfxLK4sPo4ANWAQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/13c2a433-ce18-43ea-bf6a-942a22aa7a70/invitations" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"13c2a433-ce18-43ea-bf6a-942a22aa7a70", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:58.455872') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "94380c92-c384-4982-b736-d82a55068f8a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:58.457389"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:58.458240"], ["id", "94380c92-c384-4982-b736-d82a55068f8a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "13c2a433-ce18-43ea-bf6a-942a22aa7a70"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1b340293-27d6-4a70-8671-d98a9d8c10c9"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1b340293-27d6-4a70-8671-d98a9d8c10c9' LIMIT 1 [["organization_id", "13c2a433-ce18-43ea-bf6a-942a22aa7a70"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '13c2a433-ce18-43ea-bf6a-942a22aa7a70') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "13c2a433-ce18-43ea-bf6a-942a22aa7a70"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.471751"], ["updated_at", "2015-07-06 20:48:58.471751"], ["token", "mLi4cOM_bCiINAyAREGaQTn_r9lSLM16TdpBw2aOMX4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b16ff61a-9b19-49ca-9c70-f5499d484998) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ee39ff11-82f4-4c06-b70b-f597b19b294e [ActiveJob] Clubhouse::Invitation Load (0.7ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ee39ff11-82f4-4c06-b70b-f597b19b294e"]] [ActiveJob] [ActionMailer::DeliveryJob] [b16ff61a-9b19-49ca-9c70-f5499d484998] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ee39ff11-82f4-4c06-b70b-f597b19b294e [ActiveJob] [ActionMailer::DeliveryJob] [b16ff61a-9b19-49ca-9c70-f5499d484998] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "13c2a433-ce18-43ea-bf6a-942a22aa7a70"]] [ActiveJob] [ActionMailer::DeliveryJob] [b16ff61a-9b19-49ca-9c70-f5499d484998] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [b16ff61a-9b19-49ca-9c70-f5499d484998] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [b16ff61a-9b19-49ca-9c70-f5499d484998] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [b16ff61a-9b19-49ca-9c70-f5499d484998] Date: Mon, 06 Jul 2015 13:48:58 -0700 From: from@example.com To: email@example.com Message-ID: <559ae9ba7585a_105063ff65485e20868494@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/mLi4cOM_bCiINAyAREGaQTn_r9lSLM16TdpBw2aOMX4?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b16ff61a-9b19-49ca-9c70-f5499d484998] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.4ms Completed 201 Created in 28ms (Views: 0.8ms | ActiveRecord: 3.6ms)  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 48"], ["email", "user.48@example.com"], ["password_digest", "$2a$04$u4qhW4ZZ6fdB.dlQProzWeuaUvNxnmlOjmk5BQ4XMKdz/52MwkgDq"], ["created_at", "2015-07-06 20:48:58.492696"], ["updated_at", "2015-07-06 20:48:58.492696"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.495925"], ["user_id", "489419f1-6711-4e4f-8c94-8ef203f715d1"], ["created_at", "2015-07-06 20:48:58.496933"], ["updated_at", "2015-07-06 20:48:58.496933"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.504305"], ["updated_at", "2015-07-06 20:48:58.504305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '489419f1-6711-4e4f-8c94-8ef203f715d1' AND "clubhouse_memberships"."organization_id" = 'db841770-ddef-4218-83a5-e5e0b19c442b') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "489419f1-6711-4e4f-8c94-8ef203f715d1"], ["organization_id", "db841770-ddef-4218-83a5-e5e0b19c442b"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.509391"], ["updated_at", "2015-07-06 20:48:58.509391"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'db841770-ddef-4218-83a5-e5e0b19c442b') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "db841770-ddef-4218-83a5-e5e0b19c442b"], ["created_at", "2015-07-06 20:48:58.519418"], ["updated_at", "2015-07-06 20:48:58.519418"], ["token", "w0-XBgm4Nq-j5ekNBUVRQRBRBSgRS3WYPFfEnp_RlKg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/db841770-ddef-4218-83a5-e5e0b19c442b/invitations" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"db841770-ddef-4218-83a5-e5e0b19c442b", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:58.525094') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fd767863-f9ba-40af-b62b-9cde059e969c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:58.527075"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:58.528081"], ["id", "fd767863-f9ba-40af-b62b-9cde059e969c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "db841770-ddef-4218-83a5-e5e0b19c442b"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "489419f1-6711-4e4f-8c94-8ef203f715d1"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '489419f1-6711-4e4f-8c94-8ef203f715d1' LIMIT 1 [["organization_id", "db841770-ddef-4218-83a5-e5e0b19c442b"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'db841770-ddef-4218-83a5-e5e0b19c442b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "db841770-ddef-4218-83a5-e5e0b19c442b"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.538137"], ["updated_at", "2015-07-06 20:48:58.538137"], ["token", "fMYi_JNgI3GT7jX8GkyRHSjckR8ks54cxAZtsqbngVo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0b50f059-9116-4528-b1ca-e31b12788e1b) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9bdcb908-49e9-4e5c-bb74-a26287e45e24 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "9bdcb908-49e9-4e5c-bb74-a26287e45e24"]] [ActiveJob] [ActionMailer::DeliveryJob] [0b50f059-9116-4528-b1ca-e31b12788e1b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9bdcb908-49e9-4e5c-bb74-a26287e45e24 [ActiveJob] [ActionMailer::DeliveryJob] [0b50f059-9116-4528-b1ca-e31b12788e1b] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "db841770-ddef-4218-83a5-e5e0b19c442b"]] [ActiveJob] [ActionMailer::DeliveryJob] [0b50f059-9116-4528-b1ca-e31b12788e1b] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [0b50f059-9116-4528-b1ca-e31b12788e1b] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [0b50f059-9116-4528-b1ca-e31b12788e1b] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [0b50f059-9116-4528-b1ca-e31b12788e1b] Date: Mon, 06 Jul 2015 13:48:58 -0700 From: from@example.com To: email@example.com Message-ID: <559ae9ba85719_105063ff65485e20868568@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/fMYi_JNgI3GT7jX8GkyRHSjckR8ks54cxAZtsqbngVo?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0b50f059-9116-4528-b1ca-e31b12788e1b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.44ms Completed 201 Created in 24ms (Views: 1.0ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 49"], ["email", "user.49@example.com"], ["password_digest", "$2a$04$0eV2ItYY9DOn.yVX1067wO9PDtKHRqAnVGK53tTsZjlX0eTxyC8wm"], ["created_at", "2015-07-06 20:48:58.557817"], ["updated_at", "2015-07-06 20:48:58.557817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.560684"], ["user_id", "b2ae99fb-fa67-47eb-a75a-da8b6f12dcb8"], ["created_at", "2015-07-06 20:48:58.561484"], ["updated_at", "2015-07-06 20:48:58.561484"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.566996"], ["updated_at", "2015-07-06 20:48:58.566996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b2ae99fb-fa67-47eb-a75a-da8b6f12dcb8' AND "clubhouse_memberships"."organization_id" = 'd0e3bee6-f0f5-4dc2-bcf2-746647a9e837') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b2ae99fb-fa67-47eb-a75a-da8b6f12dcb8"], ["organization_id", "d0e3bee6-f0f5-4dc2-bcf2-746647a9e837"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.573041"], ["updated_at", "2015-07-06 20:48:58.573041"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'd0e3bee6-f0f5-4dc2-bcf2-746647a9e837') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "d0e3bee6-f0f5-4dc2-bcf2-746647a9e837"], ["created_at", "2015-07-06 20:48:58.578629"], ["updated_at", "2015-07-06 20:48:58.578629"], ["token", "u03k1VqfxU3PFQTRD_pPtr0sIWH6QPjJ6xMk9gI5QVg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/94a2e331-520a-4b9a-a397-603af4444c7b" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"94a2e331-520a-4b9a-a397-603af4444c7b", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:58.583060') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5313b347-2a0b-42de-b2b9-61d70fef3e41"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:58.585163"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:58.587262"], ["id", "5313b347-2a0b-42de-b2b9-61d70fef3e41"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "94a2e331-520a-4b9a-a397-603af4444c7b"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b2ae99fb-fa67-47eb-a75a-da8b6f12dcb8"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d0e3bee6-f0f5-4dc2-bcf2-746647a9e837"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b2ae99fb-fa67-47eb-a75a-da8b6f12dcb8' LIMIT 1 [["organization_id", "d0e3bee6-f0f5-4dc2-bcf2-746647a9e837"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."id" != '94a2e331-520a-4b9a-a397-603af4444c7b' AND "clubhouse_invitations"."organization_id" = 'd0e3bee6-f0f5-4dc2-bcf2-746647a9e837') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 20:48:58.598088"], ["id", "94a2e331-520a-4b9a-a397-603af4444c7b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 0.8ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 50"], ["email", "user.50@example.com"], ["password_digest", "$2a$04$6HEr8KofWHsY0g8rm6O6ae.zO7LFmhpunq1H/L/GmwgOUrTC62eOW"], ["created_at", "2015-07-06 20:48:58.610178"], ["updated_at", "2015-07-06 20:48:58.610178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.612080"], ["user_id", "fa1d4a61-4327-4ec8-a676-d2cff23d6367"], ["created_at", "2015-07-06 20:48:58.612777"], ["updated_at", "2015-07-06 20:48:58.612777"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.619415"], ["updated_at", "2015-07-06 20:48:58.619415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fa1d4a61-4327-4ec8-a676-d2cff23d6367' AND "clubhouse_memberships"."organization_id" = 'a0ed9c6a-c68f-4ea4-9877-5a2ba3396cbd') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fa1d4a61-4327-4ec8-a676-d2cff23d6367"], ["organization_id", "a0ed9c6a-c68f-4ea4-9877-5a2ba3396cbd"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.625108"], ["updated_at", "2015-07-06 20:48:58.625108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'a0ed9c6a-c68f-4ea4-9877-5a2ba3396cbd') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "a0ed9c6a-c68f-4ea4-9877-5a2ba3396cbd"], ["created_at", "2015-07-06 20:48:58.630597"], ["updated_at", "2015-07-06 20:48:58.630597"], ["token", "3IC8XxN8tgzPG60R6GDK5GTuu2K9xLrQKcwwP-lqKOY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 51"], ["email", "user.51@example.com"], ["password_digest", "$2a$04$tqPeivq8di2WVrf4rR41aOgKoLkEFzKQKjAknhpcRX9l5H6r4maMy"], ["created_at", "2015-07-06 20:48:58.642573"], ["updated_at", "2015-07-06 20:48:58.642573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.644756"], ["user_id", "08996203-f064-4faa-a69b-e68775fb3c85"], ["created_at", "2015-07-06 20:48:58.645713"], ["updated_at", "2015-07-06 20:48:58.645713"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.652054"], ["updated_at", "2015-07-06 20:48:58.652054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08996203-f064-4faa-a69b-e68775fb3c85' AND "clubhouse_memberships"."organization_id" = '753c4789-1090-454a-a3a0-4e5d2dd0520b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08996203-f064-4faa-a69b-e68775fb3c85"], ["organization_id", "753c4789-1090-454a-a3a0-4e5d2dd0520b"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.657916"], ["updated_at", "2015-07-06 20:48:58.657916"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '753c4789-1090-454a-a3a0-4e5d2dd0520b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "753c4789-1090-454a-a3a0-4e5d2dd0520b"], ["created_at", "2015-07-06 20:48:58.666222"], ["updated_at", "2015-07-06 20:48:58.666222"], ["token", "BYkhfVmS5wSdMv6A0me2UyOw6dBLmCt8RPIOnprwWnk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 52"], ["email", "user.52@example.com"], ["password_digest", "$2a$04$FdR6ZXacka/XeqTb3Q4keej0qhv99WNONJXJpGQVRKHx97f/uY8lG"], ["created_at", "2015-07-06 20:48:58.673111"], ["updated_at", "2015-07-06 20:48:58.673111"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.678991"], ["updated_at", "2015-07-06 20:48:58.678991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2852120b-4e5b-4401-8235-f59c7d6122b9' AND "clubhouse_memberships"."organization_id" = '3e87ce9f-351d-4283-937a-7028c01a922b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2852120b-4e5b-4401-8235-f59c7d6122b9"], ["organization_id", "3e87ce9f-351d-4283-937a-7028c01a922b"], ["created_at", "2015-07-06 20:48:58.682731"], ["updated_at", "2015-07-06 20:48:58.682731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/753c4789-1090-454a-a3a0-4e5d2dd0520b/invitations" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"753c4789-1090-454a-a3a0-4e5d2dd0520b", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:58.685426') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8d90eed3-b4e1-42b7-833b-2172a7c96271"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:58.686713"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:58.687460"], ["id", "8d90eed3-b4e1-42b7-833b-2172a7c96271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "753c4789-1090-454a-a3a0-4e5d2dd0520b"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08996203-f064-4faa-a69b-e68775fb3c85"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '08996203-f064-4faa-a69b-e68775fb3c85' LIMIT 1 [["organization_id", "753c4789-1090-454a-a3a0-4e5d2dd0520b"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "753c4789-1090-454a-a3a0-4e5d2dd0520b"]] Completed 200 OK in 11ms (Views: 2.1ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 53"], ["email", "user.53@example.com"], ["password_digest", "$2a$04$RfVOP8GnmWAQxgInfuo1We0PmX7YQquWdV5AzN62H1Fp5M0BpRPoK"], ["created_at", "2015-07-06 20:48:58.703504"], ["updated_at", "2015-07-06 20:48:58.703504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.705814"], ["user_id", "2f0e2e61-ed74-4acb-b13b-732fb1b6573d"], ["created_at", "2015-07-06 20:48:58.706527"], ["updated_at", "2015-07-06 20:48:58.706527"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.712818"], ["updated_at", "2015-07-06 20:48:58.712818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f0e2e61-ed74-4acb-b13b-732fb1b6573d' AND "clubhouse_memberships"."organization_id" = '6984c430-9a91-4d4c-a9ed-d163e34db581') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f0e2e61-ed74-4acb-b13b-732fb1b6573d"], ["organization_id", "6984c430-9a91-4d4c-a9ed-d163e34db581"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.717184"], ["updated_at", "2015-07-06 20:48:58.717184"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '6984c430-9a91-4d4c-a9ed-d163e34db581') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "6984c430-9a91-4d4c-a9ed-d163e34db581"], ["created_at", "2015-07-06 20:48:58.722790"], ["updated_at", "2015-07-06 20:48:58.722790"], ["token", "xqKIbQy0m9ytXK_Hp6I0QVabMYeDvxLFr9PVL8Z2gj4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 54"], ["email", "user.54@example.com"], ["password_digest", "$2a$04$4H91WMAVvy519jxjlUY9Y.3hYCzlpNfVWg7TjpFBow1p0TRaW6WMi"], ["created_at", "2015-07-06 20:48:58.729132"], ["updated_at", "2015-07-06 20:48:58.729132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.733416"], ["updated_at", "2015-07-06 20:48:58.733416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4f532220-78f3-4dbb-b6a9-22680f52f32e' AND "clubhouse_memberships"."organization_id" = '5ae54577-9e16-4b38-916f-90cc1ae57489') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4f532220-78f3-4dbb-b6a9-22680f52f32e"], ["organization_id", "5ae54577-9e16-4b38-916f-90cc1ae57489"], ["created_at", "2015-07-06 20:48:58.737938"], ["updated_at", "2015-07-06 20:48:58.737938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 55"], ["email", "user.55@example.com"], ["password_digest", "$2a$04$UnTZRi6k1hB2tww7CFwpI.x75MVU9gfeJ5fkgmLyNe18kfycf1qdy"], ["created_at", "2015-07-06 20:48:58.749035"], ["updated_at", "2015-07-06 20:48:58.749035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.750925"], ["user_id", "d4c263a0-a2c3-4155-a39c-010169d75476"], ["created_at", "2015-07-06 20:48:58.751670"], ["updated_at", "2015-07-06 20:48:58.751670"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.756858"], ["updated_at", "2015-07-06 20:48:58.756858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4c263a0-a2c3-4155-a39c-010169d75476' AND "clubhouse_memberships"."organization_id" = '631f90bb-9b69-4c1f-8759-d82b0ccbd897') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4c263a0-a2c3-4155-a39c-010169d75476"], ["organization_id", "631f90bb-9b69-4c1f-8759-d82b0ccbd897"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.759937"], ["updated_at", "2015-07-06 20:48:58.759937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '631f90bb-9b69-4c1f-8759-d82b0ccbd897') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "631f90bb-9b69-4c1f-8759-d82b0ccbd897"], ["created_at", "2015-07-06 20:48:58.765310"], ["updated_at", "2015-07-06 20:48:58.765310"], ["token", "n3IU_R1igGQJle8lZ6MCxczhv1jqvKCEUOX5vL6P5Jg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 56"], ["email", "user.56@example.com"], ["password_digest", "$2a$04$OFwmfkTirISSu8vkWcGyzuJ.O5/E4KWNs7vDaxaifNvPW3xxy.9eG"], ["created_at", "2015-07-06 20:48:58.772486"], ["updated_at", "2015-07-06 20:48:58.772486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.776948"], ["updated_at", "2015-07-06 20:48:58.776948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '00463050-243b-4789-9906-bc081a1f1027' AND "clubhouse_memberships"."organization_id" = 'acf2e947-decf-4674-b5c7-2f4e8ea60cee') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "00463050-243b-4789-9906-bc081a1f1027"], ["organization_id", "acf2e947-decf-4674-b5c7-2f4e8ea60cee"], ["created_at", "2015-07-06 20:48:58.781106"], ["updated_at", "2015-07-06 20:48:58.781106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:58.784149') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cff43749-d676-4f48-95b7-951a290a674a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:58.785670"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:58.786554"], ["id", "cff43749-d676-4f48-95b7-951a290a674a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d4c263a0-a2c3-4155-a39c-010169d75476"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd4c263a0-a2c3-4155-a39c-010169d75476' LIMIT 1 [["organization_id", "631f90bb-9b69-4c1f-8759-d82b0ccbd897"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "631f90bb-9b69-4c1f-8759-d82b0ccbd897"]] Completed 200 OK in 10ms (Views: 1.5ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 57"], ["email", "user.57@example.com"], ["password_digest", "$2a$04$Voz5vrOtykh5pvf4MScvle/mZu5Pd36DFq5oWyfkdkxlYWFPX7aoW"], ["created_at", "2015-07-06 20:48:58.801877"], ["updated_at", "2015-07-06 20:48:58.801877"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.805480"], ["user_id", "99af86f3-ff4d-4a46-a337-eed18c350171"], ["created_at", "2015-07-06 20:48:58.806771"], ["updated_at", "2015-07-06 20:48:58.806771"], ["client", "App"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.815938"], ["updated_at", "2015-07-06 20:48:58.815938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '99af86f3-ff4d-4a46-a337-eed18c350171' AND "clubhouse_memberships"."organization_id" = '357753c4-76c1-46e5-8257-2b03806db703') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "99af86f3-ff4d-4a46-a337-eed18c350171"], ["organization_id", "357753c4-76c1-46e5-8257-2b03806db703"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.822513"], ["updated_at", "2015-07-06 20:48:58.822513"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '357753c4-76c1-46e5-8257-2b03806db703') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "357753c4-76c1-46e5-8257-2b03806db703"], ["created_at", "2015-07-06 20:48:58.833581"], ["updated_at", "2015-07-06 20:48:58.833581"], ["token", "J_jpZ_-5E1SWgrSGqAXepJx_n6SG0CX_M9CmRVM5630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 58"], ["email", "user.58@example.com"], ["password_digest", "$2a$04$Mo4QaU7DrqvWidLkaGDOE.bNKoFX3p.P1h0RFdsIzmPod44Ihuxpm"], ["created_at", "2015-07-06 20:48:58.840039"], ["updated_at", "2015-07-06 20:48:58.840039"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.844939"], ["updated_at", "2015-07-06 20:48:58.844939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68a54912-2c37-4a90-88bf-5bfac92cb2df' AND "clubhouse_memberships"."organization_id" = 'fe19eb38-f67a-47e1-9bd6-7cd756ba2cd3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "68a54912-2c37-4a90-88bf-5bfac92cb2df"], ["organization_id", "fe19eb38-f67a-47e1-9bd6-7cd756ba2cd3"], ["created_at", "2015-07-06 20:48:58.847723"], ["updated_at", "2015-07-06 20:48:58.847723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 59"], ["email", "user.59@example.com"], ["password_digest", "$2a$04$bF/8llpxiUwsKC3CbfkNs.QAB7wumy8FgPlyTYPx5bCH.RRsdjwci"], ["created_at", "2015-07-06 20:48:58.856723"], ["updated_at", "2015-07-06 20:48:58.856723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.858796"], ["user_id", "dd60d064-57aa-4d63-a18a-df68b9531197"], ["created_at", "2015-07-06 20:48:58.859415"], ["updated_at", "2015-07-06 20:48:58.859415"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.863514"], ["updated_at", "2015-07-06 20:48:58.863514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dd60d064-57aa-4d63-a18a-df68b9531197' AND "clubhouse_memberships"."organization_id" = '416d9227-ead7-4338-9b18-f083ed1b96ed') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dd60d064-57aa-4d63-a18a-df68b9531197"], ["organization_id", "416d9227-ead7-4338-9b18-f083ed1b96ed"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.867088"], ["updated_at", "2015-07-06 20:48:58.867088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '416d9227-ead7-4338-9b18-f083ed1b96ed') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "416d9227-ead7-4338-9b18-f083ed1b96ed"], ["created_at", "2015-07-06 20:48:58.871262"], ["updated_at", "2015-07-06 20:48:58.871262"], ["token", "Wi0ld8WmZ8Ji0-UnvrwQZNM2osYoZ5CgH0oAH3OzvQo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/dcfd5576-f2cd-4c78-aa26-942a1576ca21" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"dcfd5576-f2cd-4c78-aa26-942a1576ca21", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:58.874793') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9b93cdad-feca-4d0b-ae47-539a075b180d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:58.876160"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:58.876851"], ["id", "9b93cdad-feca-4d0b-ae47-539a075b180d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "dcfd5576-f2cd-4c78-aa26-942a1576ca21"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dd60d064-57aa-4d63-a18a-df68b9531197"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "416d9227-ead7-4338-9b18-f083ed1b96ed"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dd60d064-57aa-4d63-a18a-df68b9531197' LIMIT 1 [["organization_id", "416d9227-ead7-4338-9b18-f083ed1b96ed"]] Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 60"], ["email", "user.60@example.com"], ["password_digest", "$2a$04$9LXjPoNlgQ5RsbfJ55MvdOgxHc8/jrS6pPqtwmmJRqq7M3VRfpml6"], ["created_at", "2015-07-06 20:48:58.892015"], ["updated_at", "2015-07-06 20:48:58.892015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:58.893966"], ["user_id", "65306538-1e75-40a0-b912-a1f33bc7120c"], ["created_at", "2015-07-06 20:48:58.894677"], ["updated_at", "2015-07-06 20:48:58.894677"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.899595"], ["updated_at", "2015-07-06 20:48:58.899595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '65306538-1e75-40a0-b912-a1f33bc7120c' AND "clubhouse_memberships"."organization_id" = '845a7d0c-e449-4c41-916b-2173b39feecc') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "65306538-1e75-40a0-b912-a1f33bc7120c"], ["organization_id", "845a7d0c-e449-4c41-916b-2173b39feecc"], ["admin", "t"], ["created_at", "2015-07-06 20:48:58.903109"], ["updated_at", "2015-07-06 20:48:58.903109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '845a7d0c-e449-4c41-916b-2173b39feecc') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "845a7d0c-e449-4c41-916b-2173b39feecc"], ["created_at", "2015-07-06 20:48:58.909946"], ["updated_at", "2015-07-06 20:48:58.909946"], ["token", "GHsiynokLuQ8J-dcBL3UTD75H10e32s002NRbq-WaDw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-07-06 13:48:58 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.919675"], ["updated_at", "2015-07-06 20:48:58.919675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.943437"], ["updated_at", "2015-07-06 20:48:58.943437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:58.956312"], ["updated_at", "2015-07-06 20:48:58.956312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.007653"], ["updated_at", "2015-07-06 20:48:59.007653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.014818"], ["updated_at", "2015-07-06 20:48:59.014818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5b88f7b0-7636-441c-a9b3-cd04f01d038d"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 61"], ["email", "user.61@example.com"], ["password_digest", "$2a$04$6AMHwzxrdKcoLGgojchbLOpFY73CGkATbLnq5d8kEv7IcWk.7X9ei"], ["created_at", "2015-07-06 20:48:59.024097"], ["updated_at", "2015-07-06 20:48:59.024097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.031376"], ["updated_at", "2015-07-06 20:48:59.031376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80fdb741-0924-4937-a811-bee6a2d5178e' AND "clubhouse_memberships"."organization_id" = 'd9eb37ee-361f-48c1-8025-dc9175e6a2d8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "80fdb741-0924-4937-a811-bee6a2d5178e"], ["organization_id", "d9eb37ee-361f-48c1-8025-dc9175e6a2d8"], ["created_at", "2015-07-06 20:48:59.034461"], ["updated_at", "2015-07-06 20:48:59.034461"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "80fdb741-0924-4937-a811-bee6a2d5178e"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d9eb37ee-361f-48c1-8025-dc9175e6a2d8"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80fdb741-0924-4937-a811-bee6a2d5178e' AND "clubhouse_memberships"."organization_id" = 'd9eb37ee-361f-48c1-8025-dc9175e6a2d8') LIMIT 1 Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d9eb37ee-361f-48c1-8025-dc9175e6a2d9"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80fdb741-0924-4937-a811-bee6a2d5178e' AND "clubhouse_memberships"."organization_id" = 'd9eb37ee-361f-48c1-8025-dc9175e6a2d9') LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 62"], ["email", "user.62@example.com"], ["password_digest", "$2a$04$K7IUelDnv9eOQb6wfCEpgOH04xDROIljBMb2YwVGU9ttXzAjQKxTq"], ["created_at", "2015-07-06 20:48:59.079430"], ["updated_at", "2015-07-06 20:48:59.079430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.084215"], ["user_id", "6c0221f3-dc0c-40ba-be02-6ecac8a1ab92"], ["created_at", "2015-07-06 20:48:59.085605"], ["updated_at", "2015-07-06 20:48:59.085605"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.092717"], ["updated_at", "2015-07-06 20:48:59.092717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6c0221f3-dc0c-40ba-be02-6ecac8a1ab92' AND "clubhouse_memberships"."organization_id" = 'f2150332-1a06-4586-915f-daec4b9af3fe') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6c0221f3-dc0c-40ba-be02-6ecac8a1ab92"], ["organization_id", "f2150332-1a06-4586-915f-daec4b9af3fe"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.096405"], ["updated_at", "2015-07-06 20:48:59.096405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/f2150332-1a06-4586-915f-daec4b9af3fe" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"f2150332-1a06-4586-915f-daec4b9af3fe", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:59.103287') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c7123d8a-1cc4-4bcb-9e45-9c634d5ab509"]]  (0.7ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:59.105580"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:59.108008"], ["id", "c7123d8a-1cc4-4bcb-9e45-9c634d5ab509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f2150332-1a06-4586-915f-daec4b9af3fe"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6c0221f3-dc0c-40ba-be02-6ecac8a1ab92"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6c0221f3-dc0c-40ba-be02-6ecac8a1ab92' LIMIT 1 [["organization_id", "f2150332-1a06-4586-915f-daec4b9af3fe"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "f2150332-1a06-4586-915f-daec4b9af3fe"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 18ms (ActiveRecord: 6.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 63"], ["email", "user.63@example.com"], ["password_digest", "$2a$04$5FNK6cWLPvlpitlNOECUD.XGUBQXKmQKKAopSKpo82/6smUO4Wafi"], ["created_at", "2015-07-06 20:48:59.128606"], ["updated_at", "2015-07-06 20:48:59.128606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.130827"], ["user_id", "993344a6-dca3-4362-ab68-80337e184e9a"], ["created_at", "2015-07-06 20:48:59.131674"], ["updated_at", "2015-07-06 20:48:59.131674"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.137586"], ["updated_at", "2015-07-06 20:48:59.137586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '993344a6-dca3-4362-ab68-80337e184e9a' AND "clubhouse_memberships"."organization_id" = 'cdb04c65-5f82-450b-8810-0dc6fd3e964d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "993344a6-dca3-4362-ab68-80337e184e9a"], ["organization_id", "cdb04c65-5f82-450b-8810-0dc6fd3e964d"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.142253"], ["updated_at", "2015-07-06 20:48:59.142253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 64"], ["email", "user.64@example.com"], ["password_digest", "$2a$04$9cfcVOpl8J7MxZ3NGwFmQu..eHRmXRxj2x7uqEBk038QEwkfl3cAm"], ["created_at", "2015-07-06 20:48:59.153831"], ["updated_at", "2015-07-06 20:48:59.153831"]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.158416"], ["user_id", "3f41491b-abfc-4e40-92bf-a22e5a9f349c"], ["created_at", "2015-07-06 20:48:59.159923"], ["updated_at", "2015-07-06 20:48:59.159923"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.168083"], ["updated_at", "2015-07-06 20:48:59.168083"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f41491b-abfc-4e40-92bf-a22e5a9f349c' AND "clubhouse_memberships"."organization_id" = '63b0c3c7-4b38-45ce-86fb-3f9d4d575eb9') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f41491b-abfc-4e40-92bf-a22e5a9f349c"], ["organization_id", "63b0c3c7-4b38-45ce-86fb-3f9d4d575eb9"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.175110"], ["updated_at", "2015-07-06 20:48:59.175110"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 65"], ["email", "user.65@example.com"], ["password_digest", "$2a$04$wq6CBdZ0RtnaSIrW82NRi.u6FQh/kxt1lOAyOS7Q814htXUI3.4/O"], ["created_at", "2015-07-06 20:48:59.191745"], ["updated_at", "2015-07-06 20:48:59.191745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.194622"], ["user_id", "38c1c141-78e5-4dd8-817e-fb65d4b7d19b"], ["created_at", "2015-07-06 20:48:59.195466"], ["updated_at", "2015-07-06 20:48:59.195466"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.200752"], ["updated_at", "2015-07-06 20:48:59.200752"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38c1c141-78e5-4dd8-817e-fb65d4b7d19b' AND "clubhouse_memberships"."organization_id" = '778a22c7-b967-4d98-81ca-ed8809d8391c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38c1c141-78e5-4dd8-817e-fb65d4b7d19b"], ["organization_id", "778a22c7-b967-4d98-81ca-ed8809d8391c"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.206561"], ["updated_at", "2015-07-06 20:48:59.206561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/778a22c7-b967-4d98-81ca-ed8809d8391c" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"778a22c7-b967-4d98-81ca-ed8809d8391c", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:59.210617') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ad2dc557-b956-4de3-9f00-3749649283a9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:59.212031"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:59.212860"], ["id", "ad2dc557-b956-4de3-9f00-3749649283a9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "778a22c7-b967-4d98-81ca-ed8809d8391c"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38c1c141-78e5-4dd8-817e-fb65d4b7d19b"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '38c1c141-78e5-4dd8-817e-fb65d4b7d19b' LIMIT 1 [["organization_id", "778a22c7-b967-4d98-81ca-ed8809d8391c"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '778a22c7-b967-4d98-81ca-ed8809d8391c') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 66"], ["email", "user.66@example.com"], ["password_digest", "$2a$04$N/QNICVyKxGKVV5zMaymq.PF4dtLG8Iv5yBgGkq2A8BcvTMvAsf76"], ["created_at", "2015-07-06 20:48:59.234734"], ["updated_at", "2015-07-06 20:48:59.234734"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.237551"], ["user_id", "ed342e79-f939-4f19-8ebc-478fb02d25b9"], ["created_at", "2015-07-06 20:48:59.238710"], ["updated_at", "2015-07-06 20:48:59.238710"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.244339"], ["updated_at", "2015-07-06 20:48:59.244339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ed342e79-f939-4f19-8ebc-478fb02d25b9' AND "clubhouse_memberships"."organization_id" = '2e9f150c-c06b-49cb-ad1d-d749cec89155') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ed342e79-f939-4f19-8ebc-478fb02d25b9"], ["organization_id", "2e9f150c-c06b-49cb-ad1d-d749cec89155"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.249964"], ["updated_at", "2015-07-06 20:48:59.249964"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/2e9f150c-c06b-49cb-ad1d-d749cec89155" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"2e9f150c-c06b-49cb-ad1d-d749cec89155", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:59.255576') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "04a45e7f-0ced-43b1-b6a8-4077b5896d91"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:59.258216"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:59.259766"], ["id", "04a45e7f-0ced-43b1-b6a8-4077b5896d91"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2e9f150c-c06b-49cb-ad1d-d749cec89155"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ed342e79-f939-4f19-8ebc-478fb02d25b9"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ed342e79-f939-4f19-8ebc-478fb02d25b9' LIMIT 1 [["organization_id", "2e9f150c-c06b-49cb-ad1d-d749cec89155"]] Unpermitted parameters: id, organization  (1.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2e9f150c-c06b-49cb-ad1d-d749cec89155') LIMIT 1 SQL (1.0ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 20:48:59.280460"], ["id", "2e9f150c-c06b-49cb-ad1d-d749cec89155"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 33ms (Views: 2.9ms | ActiveRecord: 6.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 67"], ["email", "user.67@example.com"], ["password_digest", "$2a$04$w6nG5TIbxPTGjN3zj1nHa.OhKMbobRG/BhACpQjt7XyoekPDhonNy"], ["created_at", "2015-07-06 20:48:59.298467"], ["updated_at", "2015-07-06 20:48:59.298467"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.301395"], ["user_id", "e29624d9-5b8e-4d7c-a042-dc52acd05b36"], ["created_at", "2015-07-06 20:48:59.302613"], ["updated_at", "2015-07-06 20:48:59.302613"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.314701"], ["updated_at", "2015-07-06 20:48:59.314701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e29624d9-5b8e-4d7c-a042-dc52acd05b36' AND "clubhouse_memberships"."organization_id" = '928b69a4-ffee-43e7-aa76-da962c23bafd') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e29624d9-5b8e-4d7c-a042-dc52acd05b36"], ["organization_id", "928b69a4-ffee-43e7-aa76-da962c23bafd"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.318982"], ["updated_at", "2015-07-06 20:48:59.318982"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-13" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:59.324464') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "89babedf-e1e3-40f7-bf59-1889a94c65b2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:59.327971"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:59.329344"], ["id", "89babedf-e1e3-40f7-bf59-1889a94c65b2"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e29624d9-5b8e-4d7c-a042-dc52acd05b36"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e29624d9-5b8e-4d7c-a042-dc52acd05b36' LIMIT 1 [["organization_id", "928b69a4-ffee-43e7-aa76-da962c23bafd"]] Completed 200 OK in 15ms (Views: 1.2ms | ActiveRecord: 1.9ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 68"], ["email", "user.68@example.com"], ["password_digest", "$2a$04$sz/9/VAcz9m7UPPXt6xiJOcGnIn0woDFnLzwKCN2SLAqdayQdTolq"], ["created_at", "2015-07-06 20:48:59.350801"], ["updated_at", "2015-07-06 20:48:59.350801"]]  (3.4ms) RELEASE SAVEPOINT active_record_1  (1.8ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.357682"], ["user_id", "88236aa5-e96d-4535-9206-5c0e09969ba9"], ["created_at", "2015-07-06 20:48:59.360919"], ["updated_at", "2015-07-06 20:48:59.360919"], ["client", "App"]]  (3.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (5.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.381515"], ["updated_at", "2015-07-06 20:48:59.381515"]]  (3.8ms) RELEASE SAVEPOINT active_record_1  (1.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88236aa5-e96d-4535-9206-5c0e09969ba9' AND "clubhouse_memberships"."organization_id" = '254d6c86-815a-458e-89d4-3e506a8d843e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88236aa5-e96d-4535-9206-5c0e09969ba9"], ["organization_id", "254d6c86-815a-458e-89d4-3e506a8d843e"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.431293"], ["updated_at", "2015-07-06 20:48:59.431293"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (2.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 69"], ["email", "user.69@example.com"], ["password_digest", "$2a$04$7X8O3s9eNzhBjSgWdb394eD1KfFZcdDNpWob7wRVOWDlt0SIVaHfC"], ["created_at", "2015-07-06 20:48:59.461964"], ["updated_at", "2015-07-06 20:48:59.461964"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.465846"], ["user_id", "959e7c5c-78f0-4ab3-8246-c496e450771e"], ["created_at", "2015-07-06 20:48:59.477709"], ["updated_at", "2015-07-06 20:48:59.477709"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.500803"], ["updated_at", "2015-07-06 20:48:59.500803"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '959e7c5c-78f0-4ab3-8246-c496e450771e' AND "clubhouse_memberships"."organization_id" = 'f8173a98-2284-4b7a-b7c5-a59b9e6eab65') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "959e7c5c-78f0-4ab3-8246-c496e450771e"], ["organization_id", "f8173a98-2284-4b7a-b7c5-a59b9e6eab65"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.515939"], ["updated_at", "2015-07-06 20:48:59.515939"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/f8173a98-2284-4b7a-b7c5-a59b9e6eab65" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"f8173a98-2284-4b7a-b7c5-a59b9e6eab65", "organization"=>{}} Pollett::Context Load (2.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:59.521674') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ce60a63a-8308-4a24-bdea-092bf55cb10a"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:59.528935"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:59.530537"], ["id", "ce60a63a-8308-4a24-bdea-092bf55cb10a"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f8173a98-2284-4b7a-b7c5-a59b9e6eab65"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "959e7c5c-78f0-4ab3-8246-c496e450771e"]] Clubhouse::Membership Exists (8.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '959e7c5c-78f0-4ab3-8246-c496e450771e' LIMIT 1 [["organization_id", "f8173a98-2284-4b7a-b7c5-a59b9e6eab65"]] Completed 200 OK in 58ms (Views: 3.1ms | ActiveRecord: 14.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 70"], ["email", "user.70@example.com"], ["password_digest", "$2a$04$59fey/GBqWRoAdQ4wPZjseb18G5oeMmrunvxnGbAWlJVPuaOYLLPm"], ["created_at", "2015-07-06 20:48:59.613073"], ["updated_at", "2015-07-06 20:48:59.613073"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.622332"], ["user_id", "c0ef67a6-71bf-40b1-815d-3745fd153dd3"], ["created_at", "2015-07-06 20:48:59.623365"], ["updated_at", "2015-07-06 20:48:59.623365"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.629292"], ["updated_at", "2015-07-06 20:48:59.629292"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c0ef67a6-71bf-40b1-815d-3745fd153dd3' AND "clubhouse_memberships"."organization_id" = 'c0c7df62-4609-41a7-977a-970ecb0417ba') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c0ef67a6-71bf-40b1-815d-3745fd153dd3"], ["organization_id", "c0c7df62-4609-41a7-977a-970ecb0417ba"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.633568"], ["updated_at", "2015-07-06 20:48:59.633568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 71"], ["email", "user.71@example.com"], ["password_digest", "$2a$04$WibVCnZUDsg1FcVfKrEl/eTn5soqxOMARizzvDZWrEMcyzou7MwTO"], ["created_at", "2015-07-06 20:48:59.651511"], ["updated_at", "2015-07-06 20:48:59.651511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.654775"], ["user_id", "73bf927b-55a1-4400-8cf4-c8e8b65acf0e"], ["created_at", "2015-07-06 20:48:59.655614"], ["updated_at", "2015-07-06 20:48:59.655614"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.665188"], ["updated_at", "2015-07-06 20:48:59.665188"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '73bf927b-55a1-4400-8cf4-c8e8b65acf0e' AND "clubhouse_memberships"."organization_id" = '582c89af-c863-41d3-8674-9a3bd4f4cbb7') LIMIT 1 SQL (7.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "73bf927b-55a1-4400-8cf4-c8e8b65acf0e"], ["organization_id", "582c89af-c863-41d3-8674-9a3bd4f4cbb7"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.671058"], ["updated_at", "2015-07-06 20:48:59.671058"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-17" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-17", "organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:59.686422') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "067d0a38-eb0a-4f48-b8c8-852ed811d455"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:59.688949"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:59.689930"], ["id", "067d0a38-eb0a-4f48-b8c8-852ed811d455"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-17"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "73bf927b-55a1-4400-8cf4-c8e8b65acf0e"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '73bf927b-55a1-4400-8cf4-c8e8b65acf0e' LIMIT 1 [["organization_id", "582c89af-c863-41d3-8674-9a3bd4f4cbb7"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "582c89af-c863-41d3-8674-9a3bd4f4cbb7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 17ms (ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 72"], ["email", "user.72@example.com"], ["password_digest", "$2a$04$y/gHA5uZ1LwYyxBLzhZCwO0C9tWRgU72ftkt3AslG0SwJtUz/PXQ6"], ["created_at", "2015-07-06 20:48:59.714887"], ["updated_at", "2015-07-06 20:48:59.714887"]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.721513"], ["user_id", "44101ad3-9fe5-42a8-911b-49d64d75ec7a"], ["created_at", "2015-07-06 20:48:59.727567"], ["updated_at", "2015-07-06 20:48:59.727567"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.740292"], ["updated_at", "2015-07-06 20:48:59.740292"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44101ad3-9fe5-42a8-911b-49d64d75ec7a' AND "clubhouse_memberships"."organization_id" = '80485546-7e2c-48a2-9eec-66bc1c3da5f6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44101ad3-9fe5-42a8-911b-49d64d75ec7a"], ["organization_id", "80485546-7e2c-48a2-9eec-66bc1c3da5f6"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.756759"], ["updated_at", "2015-07-06 20:48:59.756759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 73"], ["email", "user.73@example.com"], ["password_digest", "$2a$04$2QLCNGAg3.A.RNxCwa4wFeOCN6xaf97Xq/o6hVkNfZA4ymsfabYPy"], ["created_at", "2015-07-06 20:48:59.780720"], ["updated_at", "2015-07-06 20:48:59.780720"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.785810"], ["user_id", "e4911d65-eced-4e23-85ee-f50cf89037bd"], ["created_at", "2015-07-06 20:48:59.787166"], ["updated_at", "2015-07-06 20:48:59.787166"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.795922"], ["updated_at", "2015-07-06 20:48:59.795922"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e4911d65-eced-4e23-85ee-f50cf89037bd' AND "clubhouse_memberships"."organization_id" = '18b8a8bf-264d-4220-b534-c514a2aba4f7') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e4911d65-eced-4e23-85ee-f50cf89037bd"], ["organization_id", "18b8a8bf-264d-4220-b534-c514a2aba4f7"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.812887"], ["updated_at", "2015-07-06 20:48:59.812887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 74"], ["email", "user.74@example.com"], ["password_digest", "$2a$04$9Me.2f6sBzTlD4FJ42ZMhOp1Yccb8rjY.5fKq39n/oaFLQWCzfRJC"], ["created_at", "2015-07-06 20:48:59.824425"], ["updated_at", "2015-07-06 20:48:59.824425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.834355"], ["updated_at", "2015-07-06 20:48:59.834355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '407448cd-3357-4780-834a-3b8d8f2c10fb' AND "clubhouse_memberships"."organization_id" = 'cdd50a36-3776-4d10-9493-56f758f91e31') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "407448cd-3357-4780-834a-3b8d8f2c10fb"], ["organization_id", "cdd50a36-3776-4d10-9493-56f758f91e31"], ["created_at", "2015-07-06 20:48:59.838464"], ["updated_at", "2015-07-06 20:48:59.838464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:59.841447') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bbf32a55-9b7d-49c9-ac8c-1e0d2bfe26c9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:59.843221"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:59.844081"], ["id", "bbf32a55-9b7d-49c9-ac8c-1e0d2bfe26c9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e4911d65-eced-4e23-85ee-f50cf89037bd"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "e4911d65-eced-4e23-85ee-f50cf89037bd"]] Completed 200 OK in 19ms (Views: 4.7ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 75"], ["email", "user.75@example.com"], ["password_digest", "$2a$04$HG2EETUrJ8vVGchWkBdCI.80ZFgSoB2NrxAnQhOEPOVbRNtBctQM2"], ["created_at", "2015-07-06 20:48:59.868647"], ["updated_at", "2015-07-06 20:48:59.868647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.870846"], ["user_id", "1fb8e960-a3b4-42c4-848d-14febb631564"], ["created_at", "2015-07-06 20:48:59.871907"], ["updated_at", "2015-07-06 20:48:59.871907"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.878805"], ["updated_at", "2015-07-06 20:48:59.878805"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1fb8e960-a3b4-42c4-848d-14febb631564' AND "clubhouse_memberships"."organization_id" = '9e89faa9-5c80-42ee-99d1-47b593187007') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1fb8e960-a3b4-42c4-848d-14febb631564"], ["organization_id", "9e89faa9-5c80-42ee-99d1-47b593187007"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.888386"], ["updated_at", "2015-07-06 20:48:59.888386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 76"], ["email", "user.76@example.com"], ["password_digest", "$2a$04$UZjjAUFVie/sSfkOQL5EMecdEWnNsQgHLqrZ.i6fDrfe2OZoGhFH."], ["created_at", "2015-07-06 20:48:59.896701"], ["updated_at", "2015-07-06 20:48:59.896701"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.904163"], ["updated_at", "2015-07-06 20:48:59.904163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc7c1896-b001-41eb-aaf7-9523f1b216a4' AND "clubhouse_memberships"."organization_id" = '84b6c47b-cb9f-4bae-9fc4-b8e5c1751238') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc7c1896-b001-41eb-aaf7-9523f1b216a4"], ["organization_id", "84b6c47b-cb9f-4bae-9fc4-b8e5c1751238"], ["created_at", "2015-07-06 20:48:59.909341"], ["updated_at", "2015-07-06 20:48:59.909341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 77"], ["email", "user.77@example.com"], ["password_digest", "$2a$04$LSAOusgf5xMMS77ci4ByweDE9z5n7d8JrGz/2vsaUwsenflGh8OjK"], ["created_at", "2015-07-06 20:48:59.918641"], ["updated_at", "2015-07-06 20:48:59.918641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.921973"], ["user_id", "9b2dbfa3-0492-4654-bb2d-c3c814b097a0"], ["created_at", "2015-07-06 20:48:59.922825"], ["updated_at", "2015-07-06 20:48:59.922825"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.927094"], ["updated_at", "2015-07-06 20:48:59.927094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9b2dbfa3-0492-4654-bb2d-c3c814b097a0' AND "clubhouse_memberships"."organization_id" = 'ccab3e48-6839-4dd9-87b9-f88e4894ca4d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9b2dbfa3-0492-4654-bb2d-c3c814b097a0"], ["organization_id", "ccab3e48-6839-4dd9-87b9-f88e4894ca4d"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.931388"], ["updated_at", "2015-07-06 20:48:59.931388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 78"], ["email", "user.78@example.com"], ["password_digest", "$2a$04$tuN8.AYqEv6dXEmMXs32AeDGtQqYjzjhePK2.ju/RjqGuLkZln7Hu"], ["created_at", "2015-07-06 20:48:59.944500"], ["updated_at", "2015-07-06 20:48:59.944500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.946544"], ["user_id", "d860cf39-a67b-4463-be72-37ba6d923f61"], ["created_at", "2015-07-06 20:48:59.947266"], ["updated_at", "2015-07-06 20:48:59.947266"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:48:59.952792"], ["updated_at", "2015-07-06 20:48:59.952792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd860cf39-a67b-4463-be72-37ba6d923f61' AND "clubhouse_memberships"."organization_id" = 'd7c351a1-5197-414e-acd9-6a8ae692e6a5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d860cf39-a67b-4463-be72-37ba6d923f61"], ["organization_id", "d7c351a1-5197-414e-acd9-6a8ae692e6a5"], ["admin", "t"], ["created_at", "2015-07-06 20:48:59.957379"], ["updated_at", "2015-07-06 20:48:59.957379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-07-06 13:48:59 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:48:59.960609') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f0054247-ad85-44cb-ba5b-6c68bfa3667c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:48:59.962212"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:48:59.963325"], ["id", "f0054247-ad85-44cb-ba5b-6c68bfa3667c"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d860cf39-a67b-4463-be72-37ba6d923f61"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd860cf39-a67b-4463-be72-37ba6d923f61' LIMIT 1 [["organization_id", "d7c351a1-5197-414e-acd9-6a8ae692e6a5"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd7c351a1-5197-414e-acd9-6a8ae692e6a5') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 79"], ["email", "user.79@example.com"], ["password_digest", "$2a$04$pYIfK7GxQo3b7If4JTkA3OEiN6SBBxtwr1d9Xtt.YGW1ScufXj9G6"], ["created_at", "2015-07-06 20:48:59.992180"], ["updated_at", "2015-07-06 20:48:59.992180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:48:59.994285"], ["user_id", "bb812e9e-c91f-4dfb-b631-da2e8733ebae"], ["created_at", "2015-07-06 20:48:59.995271"], ["updated_at", "2015-07-06 20:48:59.995271"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.001585"], ["updated_at", "2015-07-06 20:49:00.001585"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb812e9e-c91f-4dfb-b631-da2e8733ebae' AND "clubhouse_memberships"."organization_id" = 'a1a0ae6c-6c48-49d7-977e-657a7a550cb8') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb812e9e-c91f-4dfb-b631-da2e8733ebae"], ["organization_id", "a1a0ae6c-6c48-49d7-977e-657a7a550cb8"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.009310"], ["updated_at", "2015-07-06 20:49:00.009310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-25" for 127.0.0.1 at 2015-07-06 13:49:00 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-25", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:49:00.014630') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7bb31ba4-ef2a-4092-829e-a3dc298e4fce"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:49:00.017088"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:49:00.018446"], ["id", "7bb31ba4-ef2a-4092-829e-a3dc298e4fce"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-25"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bb812e9e-c91f-4dfb-b631-da2e8733ebae"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'bb812e9e-c91f-4dfb-b631-da2e8733ebae' LIMIT 1 [["organization_id", "a1a0ae6c-6c48-49d7-977e-657a7a550cb8"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a1a0ae6c-6c48-49d7-977e-657a7a550cb8') LIMIT 1 SQL (0.6ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 20:49:00.029427"], ["id", "a1a0ae6c-6c48-49d7-977e-657a7a550cb8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.0ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (1.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 80"], ["email", "user.80@example.com"], ["password_digest", "$2a$04$4fJBln.IBNOWBsV49PCkVu.oe8C0idRLRKJmRpGaMHr/zgCShhRxC"], ["created_at", "2015-07-06 20:49:00.053907"], ["updated_at", "2015-07-06 20:49:00.053907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:49:00.056597"], ["user_id", "a08821a3-5b37-4331-9493-bf789031b50f"], ["created_at", "2015-07-06 20:49:00.058779"], ["updated_at", "2015-07-06 20:49:00.058779"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.067173"], ["updated_at", "2015-07-06 20:49:00.067173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a08821a3-5b37-4331-9493-bf789031b50f' AND "clubhouse_memberships"."organization_id" = 'e167d830-b84d-449c-8570-455266767b42') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a08821a3-5b37-4331-9493-bf789031b50f"], ["organization_id", "e167d830-b84d-449c-8570-455266767b42"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.074111"], ["updated_at", "2015-07-06 20:49:00.074111"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 13:49:00 -0700  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 81"], ["email", "user.81@example.com"], ["password_digest", "$2a$04$WWb4dtxLIaXHChBSm7N.POPNSn1ZhUU.FTAf5rDU4kct0YBUUaVR."], ["created_at", "2015-07-06 20:49:00.101417"], ["updated_at", "2015-07-06 20:49:00.101417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:49:00.119224"], ["user_id", "89ced910-46f1-4c2f-b471-4dbbe6079019"], ["created_at", "2015-07-06 20:49:00.120373"], ["updated_at", "2015-07-06 20:49:00.120373"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.127827"], ["updated_at", "2015-07-06 20:49:00.127827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89ced910-46f1-4c2f-b471-4dbbe6079019' AND "clubhouse_memberships"."organization_id" = '99a9e9c8-ea8f-4796-a086-316628e2fd25') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "89ced910-46f1-4c2f-b471-4dbbe6079019"], ["organization_id", "99a9e9c8-ea8f-4796-a086-316628e2fd25"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.130923"], ["updated_at", "2015-07-06 20:49:00.130923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 13:49:00 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 82"], ["email", "user.82@example.com"], ["password_digest", "$2a$04$l/Mlr26me5ihM7hV.hdYH.gDE6KNmFKB6Qr8DX0ZT0E7UE8BU5ruy"], ["created_at", "2015-07-06 20:49:00.140527"], ["updated_at", "2015-07-06 20:49:00.140527"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:49:00.142792"], ["user_id", "5263b85a-87a3-4431-a158-1e4b86526832"], ["created_at", "2015-07-06 20:49:00.143544"], ["updated_at", "2015-07-06 20:49:00.143544"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.149041"], ["updated_at", "2015-07-06 20:49:00.149041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5263b85a-87a3-4431-a158-1e4b86526832' AND "clubhouse_memberships"."organization_id" = 'a9113ab7-aa14-4d1d-8a17-e8cff389aa79') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5263b85a-87a3-4431-a158-1e4b86526832"], ["organization_id", "a9113ab7-aa14-4d1d-8a17-e8cff389aa79"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.153852"], ["updated_at", "2015-07-06 20:49:00.153852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-28" for 127.0.0.1 at 2015-07-06 13:49:00 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 83"], ["email", "user.83@example.com"], ["password_digest", "$2a$04$.G4nGmxRBFT7RTlaqr9vOeB88xr7bhACjszTTLZvQ6fKM7fE/IYJC"], ["created_at", "2015-07-06 20:49:00.164314"], ["updated_at", "2015-07-06 20:49:00.164314"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:49:00.166947"], ["user_id", "ad6ba94f-f4a8-49c4-986d-378643e4123f"], ["created_at", "2015-07-06 20:49:00.168105"], ["updated_at", "2015-07-06 20:49:00.168105"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.173686"], ["updated_at", "2015-07-06 20:49:00.173686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad6ba94f-f4a8-49c4-986d-378643e4123f' AND "clubhouse_memberships"."organization_id" = '385f2c16-b792-42e3-8c6a-bf1575a731d3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad6ba94f-f4a8-49c4-986d-378643e4123f"], ["organization_id", "385f2c16-b792-42e3-8c6a-bf1575a731d3"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.177086"], ["updated_at", "2015-07-06 20:49:00.177086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 13:49:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 84"], ["email", "user.84@example.com"], ["password_digest", "$2a$04$XtnS9RtPhJo5MhGUKSsKh.GYoe0uQaa9jAMUk9aYMMbPISBChiqCu"], ["created_at", "2015-07-06 20:49:00.187096"], ["updated_at", "2015-07-06 20:49:00.187096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:49:00.188734"], ["user_id", "e074538d-9dfe-4a20-a943-addc826741ad"], ["created_at", "2015-07-06 20:49:00.189323"], ["updated_at", "2015-07-06 20:49:00.189323"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.193710"], ["updated_at", "2015-07-06 20:49:00.193710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e074538d-9dfe-4a20-a943-addc826741ad' AND "clubhouse_memberships"."organization_id" = '3e5789fc-05e7-4dcc-8030-0c1044c971dc') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e074538d-9dfe-4a20-a943-addc826741ad"], ["organization_id", "3e5789fc-05e7-4dcc-8030-0c1044c971dc"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.196725"], ["updated_at", "2015-07-06 20:49:00.196725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 13:49:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:49:00.200198') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1919175d-fb67-49fb-bbbe-dba4cb84abc6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:49:00.201529"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:49:00.202270"], ["id", "1919175d-fb67-49fb-bbbe-dba4cb84abc6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e074538d-9dfe-4a20-a943-addc826741ad"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms (ActiveRecord: 1.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 85"], ["email", "user.85@example.com"], ["password_digest", "$2a$04$dTDv1wb/0VCQWxPVWMxb8OMpR9I1MVI7QiLAaUZocF9Y3vQ5nNEuK"], ["created_at", "2015-07-06 20:49:00.224990"], ["updated_at", "2015-07-06 20:49:00.224990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 20:49:00.227124"], ["user_id", "7b8b01a6-c414-402d-909a-c404c964fd82"], ["created_at", "2015-07-06 20:49:00.227842"], ["updated_at", "2015-07-06 20:49:00.227842"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.232479"], ["updated_at", "2015-07-06 20:49:00.232479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b8b01a6-c414-402d-909a-c404c964fd82' AND "clubhouse_memberships"."organization_id" = '9b99f587-bad1-4aab-8406-f73d7ec3b61f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b8b01a6-c414-402d-909a-c404c964fd82"], ["organization_id", "9b99f587-bad1-4aab-8406-f73d7ec3b61f"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.235755"], ["updated_at", "2015-07-06 20:49:00.235755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 13:49:00 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 20:49:00.238584') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8f4372ca-5e0f-4731-a129-b39036078bb7"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 20:49:00.239834"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 20:49:00.240791"], ["id", "8f4372ca-5e0f-4731-a129-b39036078bb7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b8b01a6-c414-402d-909a-c404c964fd82"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.246420"], ["updated_at", "2015-07-06 20:49:00.246420"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b8b01a6-c414-402d-909a-c404c964fd82' AND "clubhouse_memberships"."organization_id" = 'e055c5c4-a1be-4390-82cd-ecddf4bb5d75') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b8b01a6-c414-402d-909a-c404c964fd82"], ["admin", "t"], ["organization_id", "e055c5c4-a1be-4390-82cd-ecddf4bb5d75"], ["created_at", "2015-07-06 20:49:00.249301"], ["updated_at", "2015-07-06 20:49:00.249301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 86"], ["email", "user.86@example.com"], ["password_digest", "$2a$04$b3Is6NQndygMWdWeN/MQse71obIe1/eu0oi0lIyVbQH7M/gopIhWK"], ["created_at", "2015-07-06 20:49:00.258943"], ["updated_at", "2015-07-06 20:49:00.258943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 87"], ["email", "user.87@example.com"], ["password_digest", "$2a$04$mAkJOKRJmntQ/DdvsW1K/eZtVE4RitBtkRK/hCG999N.uL6Ej1rqm"], ["created_at", "2015-07-06 20:49:00.264264"], ["updated_at", "2015-07-06 20:49:00.264264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.267918"], ["updated_at", "2015-07-06 20:49:00.267918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '190aaf42-74d7-482f-b95f-d6a62ce08467' AND "clubhouse_memberships"."organization_id" = 'd222506e-caad-4f0b-8263-8de057f397bb') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "190aaf42-74d7-482f-b95f-d6a62ce08467"], ["organization_id", "d222506e-caad-4f0b-8263-8de057f397bb"], ["created_at", "2015-07-06 20:49:00.270663"], ["updated_at", "2015-07-06 20:49:00.270663"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e5bb7a48-42cb-40e2-ba9f-f7ab0d602550' LIMIT 1 [["organization_id", "d222506e-caad-4f0b-8263-8de057f397bb"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 88"], ["email", "user.88@example.com"], ["password_digest", "$2a$04$95XhDEBu38hUugD.uD/TheGUwJsFZl8Y9EvXET/PmyBhhtRpfGdLC"], ["created_at", "2015-07-06 20:49:00.281547"], ["updated_at", "2015-07-06 20:49:00.281547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 89"], ["email", "user.89@example.com"], ["password_digest", "$2a$04$XSytZiQP7.gkih9QxVC5j.HUe2dpI.dmjQv2xrhUALAKHk6TovX4O"], ["created_at", "2015-07-06 20:49:00.288169"], ["updated_at", "2015-07-06 20:49:00.288169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.293470"], ["updated_at", "2015-07-06 20:49:00.293470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7056553a-5de4-41a7-b52d-8b4da663f32d' AND "clubhouse_memberships"."organization_id" = '627ec8b7-e6de-4cef-8108-ec93d8efeb24') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7056553a-5de4-41a7-b52d-8b4da663f32d"], ["organization_id", "627ec8b7-e6de-4cef-8108-ec93d8efeb24"], ["created_at", "2015-07-06 20:49:00.296717"], ["updated_at", "2015-07-06 20:49:00.296717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '090f21f0-c55c-4a3f-8fe3-3b1d01a7b703' LIMIT 1 [["organization_id", "627ec8b7-e6de-4cef-8108-ec93d8efeb24"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 90"], ["email", "user.90@example.com"], ["password_digest", "$2a$04$2XobTP1B73lAsVkOvZfhMOjnLBTKEVgvMrwrnI00An3gPRsYpKYgW"], ["created_at", "2015-07-06 20:49:00.304577"], ["updated_at", "2015-07-06 20:49:00.304577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 91"], ["email", "user.91@example.com"], ["password_digest", "$2a$04$kKhiWAoltCRySvQPqdclI.QMkNFiJAEs8ff8kUk2IU.mQIpD/doUK"], ["created_at", "2015-07-06 20:49:00.310027"], ["updated_at", "2015-07-06 20:49:00.310027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.314056"], ["updated_at", "2015-07-06 20:49:00.314056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a457ce52-987a-4295-84d3-82a8b3b14724' AND "clubhouse_memberships"."organization_id" = '6dbfbe05-66f5-4150-8427-fb24793ef475') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a457ce52-987a-4295-84d3-82a8b3b14724"], ["organization_id", "6dbfbe05-66f5-4150-8427-fb24793ef475"], ["created_at", "2015-07-06 20:49:00.317183"], ["updated_at", "2015-07-06 20:49:00.317183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c44d9f36-04e4-47ad-b116-30cbd435aa6e' LIMIT 1 [["organization_id", "6dbfbe05-66f5-4150-8427-fb24793ef475"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 92"], ["email", "user.92@example.com"], ["password_digest", "$2a$04$lQRYZVbz8unQHnRpTNbofOSYZR7LUksTa0Sxi/UvsU6YzJEN0DcwW"], ["created_at", "2015-07-06 20:49:00.325650"], ["updated_at", "2015-07-06 20:49:00.325650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 93"], ["email", "user.93@example.com"], ["password_digest", "$2a$04$6VpQJg082RnzyM628BmE.OBl3Kw5SV8m4.4I6.aGC46efmDsPylgK"], ["created_at", "2015-07-06 20:49:00.331063"], ["updated_at", "2015-07-06 20:49:00.331063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.336127"], ["updated_at", "2015-07-06 20:49:00.336127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8d6e36a7-341f-4cb0-9529-b5b22254e2ae' AND "clubhouse_memberships"."organization_id" = 'c3d2e236-cc71-4ac6-bdd4-fbebc341e6aa') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8d6e36a7-341f-4cb0-9529-b5b22254e2ae"], ["organization_id", "c3d2e236-cc71-4ac6-bdd4-fbebc341e6aa"], ["created_at", "2015-07-06 20:49:00.340788"], ["updated_at", "2015-07-06 20:49:00.340788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 94"], ["email", "user.94@example.com"], ["password_digest", "$2a$04$4BFq5QrUjF8Y2od8vcszgeul1P8Juiv8YqSKB7r3MJ5jsfrBdQJaS"], ["created_at", "2015-07-06 20:49:00.348128"], ["updated_at", "2015-07-06 20:49:00.348128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.352077"], ["updated_at", "2015-07-06 20:49:00.352077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6a9285d5-f85e-4b84-8692-2fb56b2f425e' LIMIT 1 [["organization_id", "83aa1269-7542-4f28-ad75-54ae7582cad8"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 95"], ["email", "user.95@example.com"], ["password_digest", "$2a$04$bM2JmXegSM35IYcAGscSh.Kb0Ix1hTAKdbJLdURYqD1IpXcZZehp6"], ["created_at", "2015-07-06 20:49:00.361365"], ["updated_at", "2015-07-06 20:49:00.361365"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.366217"], ["updated_at", "2015-07-06 20:49:00.366217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fccad19d-6e9b-455f-a781-ae915016a68b' AND "clubhouse_memberships"."organization_id" = 'd65d8825-c756-4fe0-b3da-130a7e57a3d4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fccad19d-6e9b-455f-a781-ae915016a68b"], ["organization_id", "d65d8825-c756-4fe0-b3da-130a7e57a3d4"], ["created_at", "2015-07-06 20:49:00.369195"], ["updated_at", "2015-07-06 20:49:00.369195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'fccad19d-6e9b-455f-a781-ae915016a68b' LIMIT 1 [["organization_id", "d65d8825-c756-4fe0-b3da-130a7e57a3d4"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 96"], ["email", "user.96@example.com"], ["password_digest", "$2a$04$myAU4fnL2tsIXMryORDDUeKK9ljAn5qGVl.5y68R.wB1N6pbXUxwC"], ["created_at", "2015-07-06 20:49:00.377592"], ["updated_at", "2015-07-06 20:49:00.377592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.382443"], ["updated_at", "2015-07-06 20:49:00.382443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f8fab76-51a1-4704-b3da-8aeb127ee108' AND "clubhouse_memberships"."organization_id" = '7632d80f-bdf7-4368-ad2b-b20137f6eeba') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f8fab76-51a1-4704-b3da-8aeb127ee108"], ["organization_id", "7632d80f-bdf7-4368-ad2b-b20137f6eeba"], ["created_at", "2015-07-06 20:49:00.385526"], ["updated_at", "2015-07-06 20:49:00.385526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '8f8fab76-51a1-4704-b3da-8aeb127ee108' LIMIT 1 [["organization_id", "7632d80f-bdf7-4368-ad2b-b20137f6eeba"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 97"], ["email", "user.97@example.com"], ["password_digest", "$2a$04$KigiCHEET5dt7X1mkGYhIO8wzYQS3qH7tRvEnpkDMuFuEQf/AkeCy"], ["created_at", "2015-07-06 20:49:00.393872"], ["updated_at", "2015-07-06 20:49:00.393872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.398279"], ["updated_at", "2015-07-06 20:49:00.398279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b4325e1-f283-4cb5-bd78-64d3fd1b78e5' AND "clubhouse_memberships"."organization_id" = '40b778fd-c86a-4377-9436-64e7158be170') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6b4325e1-f283-4cb5-bd78-64d3fd1b78e5"], ["organization_id", "40b778fd-c86a-4377-9436-64e7158be170"], ["created_at", "2015-07-06 20:49:00.401475"], ["updated_at", "2015-07-06 20:49:00.401475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6b4325e1-f283-4cb5-bd78-64d3fd1b78e5' LIMIT 1 [["organization_id", "40b778fd-c86a-4377-9436-64e7158be170"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 98"], ["email", "user.98@example.com"], ["password_digest", "$2a$04$kbYZNZB0yeqcMWghiMgh9.FN1CxO6VDMtO4zqjoK2tfNsF3fU6prq"], ["created_at", "2015-07-06 20:49:00.410057"], ["updated_at", "2015-07-06 20:49:00.410057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.414387"], ["updated_at", "2015-07-06 20:49:00.414387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '846d3f42-6a53-4861-8cc8-e5b083a8b466' AND "clubhouse_memberships"."organization_id" = '8d5c5ef2-6ffd-40ff-adac-4b4b4370a212') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "846d3f42-6a53-4861-8cc8-e5b083a8b466"], ["organization_id", "8d5c5ef2-6ffd-40ff-adac-4b4b4370a212"], ["created_at", "2015-07-06 20:49:00.417913"], ["updated_at", "2015-07-06 20:49:00.417913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 99"], ["email", "user.99@example.com"], ["password_digest", "$2a$04$mkdFLAiEIaAvYW73sPOQuesPoqpMgQcNK4zNmpjItryKg3LQ6IFiC"], ["created_at", "2015-07-06 20:49:00.426208"], ["updated_at", "2015-07-06 20:49:00.426208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.430919"], ["updated_at", "2015-07-06 20:49:00.430919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d9e8be8-a8d1-449e-9b0b-300ee0dc7f27' AND "clubhouse_memberships"."organization_id" = 'd365d872-23f2-475e-9fda-92e2525a3c89') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d9e8be8-a8d1-449e-9b0b-300ee0dc7f27"], ["organization_id", "d365d872-23f2-475e-9fda-92e2525a3c89"], ["created_at", "2015-07-06 20:49:00.433909"], ["updated_at", "2015-07-06 20:49:00.433909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9d9e8be8-a8d1-449e-9b0b-300ee0dc7f27' LIMIT 1 [["organization_id", "d365d872-23f2-475e-9fda-92e2525a3c89"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 100"], ["email", "user.100@example.com"], ["password_digest", "$2a$04$h3vgHI/72enJzLdw7ourE.ZwPFcV7W8BUxVxea6K7WNUh8Wy.N1aG"], ["created_at", "2015-07-06 20:49:00.442070"], ["updated_at", "2015-07-06 20:49:00.442070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.446046"], ["updated_at", "2015-07-06 20:49:00.446046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6b277bd2-1697-4d25-bd1d-947ed2959eac' AND "clubhouse_memberships"."organization_id" = '3b20ec61-a771-41a3-bdcc-2172b651faf4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6b277bd2-1697-4d25-bd1d-947ed2959eac"], ["organization_id", "3b20ec61-a771-41a3-bdcc-2172b651faf4"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.449099"], ["updated_at", "2015-07-06 20:49:00.449099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 101"], ["email", "user.101@example.com"], ["password_digest", "$2a$04$UdANpZ.5iROSNXpzah/yTeAb2vL2Of50b14IBtM0WxnoHk0xqDVj."], ["created_at", "2015-07-06 20:49:00.454226"], ["updated_at", "2015-07-06 20:49:00.454226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '250aeb22-22ab-40bb-9bc8-3168732f3dcb' AND "clubhouse_memberships"."organization_id" = '3b20ec61-a771-41a3-bdcc-2172b651faf4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "250aeb22-22ab-40bb-9bc8-3168732f3dcb"], ["organization_id", "3b20ec61-a771-41a3-bdcc-2172b651faf4"], ["created_at", "2015-07-06 20:49:00.457226"], ["updated_at", "2015-07-06 20:49:00.457226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '6b277bd2-1697-4d25-bd1d-947ed2959eac' LIMIT 1 [["organization_id", "3b20ec61-a771-41a3-bdcc-2172b651faf4"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 102"], ["email", "user.102@example.com"], ["password_digest", "$2a$04$6MHqXlRnxFLahHlW0l1tKulr3lante5SbwBRb1w3YaqaRCEDzzIEK"], ["created_at", "2015-07-06 20:49:00.465113"], ["updated_at", "2015-07-06 20:49:00.465113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.469475"], ["updated_at", "2015-07-06 20:49:00.469475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5eaae69a-1b4d-4b47-aec6-d20a63e72e52' AND "clubhouse_memberships"."organization_id" = '08c0dfa4-6415-46dc-a7a2-c47ee5bdb104') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5eaae69a-1b4d-4b47-aec6-d20a63e72e52"], ["organization_id", "08c0dfa4-6415-46dc-a7a2-c47ee5bdb104"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.472825"], ["updated_at", "2015-07-06 20:49:00.472825"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 103"], ["email", "user.103@example.com"], ["password_digest", "$2a$04$zIkkoSwFHPxT1VhWzdJOO.pTS41eI/6DJa8UhIGHe7VRXZGWQSqxO"], ["created_at", "2015-07-06 20:49:00.479005"], ["updated_at", "2015-07-06 20:49:00.479005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '29478a2a-8a82-4c77-8118-88c08061e19b' AND "clubhouse_memberships"."organization_id" = '08c0dfa4-6415-46dc-a7a2-c47ee5bdb104') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "29478a2a-8a82-4c77-8118-88c08061e19b"], ["organization_id", "08c0dfa4-6415-46dc-a7a2-c47ee5bdb104"], ["created_at", "2015-07-06 20:49:00.482140"], ["updated_at", "2015-07-06 20:49:00.482140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5eaae69a-1b4d-4b47-aec6-d20a63e72e52' LIMIT 1 [["organization_id", "08c0dfa4-6415-46dc-a7a2-c47ee5bdb104"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 104"], ["email", "user.104@example.com"], ["password_digest", "$2a$04$yvN15gMuLRa2leGxKxqqCerD84CWEFwuEyAMK8o/I0QUSjYskG6BS"], ["created_at", "2015-07-06 20:49:00.490459"], ["updated_at", "2015-07-06 20:49:00.490459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.494657"], ["updated_at", "2015-07-06 20:49:00.494657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '80e6054b-4e0d-4853-904e-988b792abf03' AND "clubhouse_memberships"."organization_id" = 'a2804ddd-cfaa-402a-baf4-de5ded9a4866') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "80e6054b-4e0d-4853-904e-988b792abf03"], ["organization_id", "a2804ddd-cfaa-402a-baf4-de5ded9a4866"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.497429"], ["updated_at", "2015-07-06 20:49:00.497429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (2.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 105"], ["email", "user.105@example.com"], ["password_digest", "$2a$04$rL0CnzeXegWErdpY8K6pD.R9vBg0K6.0/gnvOVD/3jFwl/tcV/VzC"], ["created_at", "2015-07-06 20:49:00.502328"], ["updated_at", "2015-07-06 20:49:00.502328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a289bf57-ae3f-43bd-981b-15d3c9993267' AND "clubhouse_memberships"."organization_id" = 'a2804ddd-cfaa-402a-baf4-de5ded9a4866') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a289bf57-ae3f-43bd-981b-15d3c9993267"], ["organization_id", "a2804ddd-cfaa-402a-baf4-de5ded9a4866"], ["created_at", "2015-07-06 20:49:00.508534"], ["updated_at", "2015-07-06 20:49:00.508534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '80e6054b-4e0d-4853-904e-988b792abf03' LIMIT 1 [["organization_id", "a2804ddd-cfaa-402a-baf4-de5ded9a4866"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 106"], ["email", "user.106@example.com"], ["password_digest", "$2a$04$xYhBW.OnucdRuLLfoDhF0eycFmtaa23jimlXqvtYAuDZSgOzO02U2"], ["created_at", "2015-07-06 20:49:00.518137"], ["updated_at", "2015-07-06 20:49:00.518137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.524181"], ["updated_at", "2015-07-06 20:49:00.524181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '392b63b2-e800-49a6-ba46-f910c398034c' AND "clubhouse_memberships"."organization_id" = '03f6f97a-f252-4ecb-84e5-b28746a70276') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "392b63b2-e800-49a6-ba46-f910c398034c"], ["organization_id", "03f6f97a-f252-4ecb-84e5-b28746a70276"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.527768"], ["updated_at", "2015-07-06 20:49:00.527768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 107"], ["email", "user.107@example.com"], ["password_digest", "$2a$04$F4Gll.pIZsOlfDqn.ukUO.u5yOwuviC7nM23ZtYcfkHwwoqx09fDO"], ["created_at", "2015-07-06 20:49:00.533429"], ["updated_at", "2015-07-06 20:49:00.533429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '51b7f76c-21c4-48b7-b4dc-737bd87ea449' AND "clubhouse_memberships"."organization_id" = '03f6f97a-f252-4ecb-84e5-b28746a70276') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "51b7f76c-21c4-48b7-b4dc-737bd87ea449"], ["organization_id", "03f6f97a-f252-4ecb-84e5-b28746a70276"], ["created_at", "2015-07-06 20:49:00.536300"], ["updated_at", "2015-07-06 20:49:00.536300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 108"], ["email", "user.108@example.com"], ["password_digest", "$2a$04$U6ErMdPQpENfFwhoEaheT.V4JVISYBb3PyVYTAQjHpzo8vY2iJisC"], ["created_at", "2015-07-06 20:49:00.542901"], ["updated_at", "2015-07-06 20:49:00.542901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.546628"], ["updated_at", "2015-07-06 20:49:00.546628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '901ded1f-8aa0-45b5-9dbc-9f11b2510467' AND "clubhouse_memberships"."organization_id" = 'd9da81aa-6e70-4461-9754-840bbd4f5c82') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "901ded1f-8aa0-45b5-9dbc-9f11b2510467"], ["organization_id", "d9da81aa-6e70-4461-9754-840bbd4f5c82"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.549542"], ["updated_at", "2015-07-06 20:49:00.549542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '901ded1f-8aa0-45b5-9dbc-9f11b2510467' LIMIT 1 [["organization_id", "d9da81aa-6e70-4461-9754-840bbd4f5c82"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 109"], ["email", "user.109@example.com"], ["password_digest", "$2a$04$MVxKXilcYiHYvsRHCZYvXuvM9yU9hFGK32PYS/JlR5Vqf6e/bNW1."], ["created_at", "2015-07-06 20:49:00.557129"], ["updated_at", "2015-07-06 20:49:00.557129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.561070"], ["updated_at", "2015-07-06 20:49:00.561070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4aee32be-843b-4cbc-b898-ee8c29496c24' AND "clubhouse_memberships"."organization_id" = '1bca28f9-94e4-4dbb-981d-9493796aa56e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4aee32be-843b-4cbc-b898-ee8c29496c24"], ["organization_id", "1bca28f9-94e4-4dbb-981d-9493796aa56e"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.563902"], ["updated_at", "2015-07-06 20:49:00.563902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4aee32be-843b-4cbc-b898-ee8c29496c24' LIMIT 1 [["organization_id", "1bca28f9-94e4-4dbb-981d-9493796aa56e"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 110"], ["email", "user.110@example.com"], ["password_digest", "$2a$04$RxA/Y7tBTDsJQ9t5HUIPyeaioRlSXM2.4Ga.iIVHwooQqE2Uace8a"], ["created_at", "2015-07-06 20:49:00.571293"], ["updated_at", "2015-07-06 20:49:00.571293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.575882"], ["updated_at", "2015-07-06 20:49:00.575882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '702e3e61-6045-40f5-89f6-1a1ea201cf12' AND "clubhouse_memberships"."organization_id" = '8848bb51-52c3-498d-9a96-564d03093983') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "702e3e61-6045-40f5-89f6-1a1ea201cf12"], ["organization_id", "8848bb51-52c3-498d-9a96-564d03093983"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.578873"], ["updated_at", "2015-07-06 20:49:00.578873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '702e3e61-6045-40f5-89f6-1a1ea201cf12' LIMIT 1 [["organization_id", "8848bb51-52c3-498d-9a96-564d03093983"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 111"], ["email", "user.111@example.com"], ["password_digest", "$2a$04$zvc2GNYGCrOmUyaLa0iNI.anLYcJ07rFnqXZW.yv9LDCfXcLN6xoG"], ["created_at", "2015-07-06 20:49:00.586609"], ["updated_at", "2015-07-06 20:49:00.586609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.590337"], ["updated_at", "2015-07-06 20:49:00.590337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ed33ad11-db99-4f7e-bde1-10edc4e30172' AND "clubhouse_memberships"."organization_id" = '3ce82de4-1af5-4a0b-ba33-2e9d85c411f1') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ed33ad11-db99-4f7e-bde1-10edc4e30172"], ["organization_id", "3ce82de4-1af5-4a0b-ba33-2e9d85c411f1"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.593275"], ["updated_at", "2015-07-06 20:49:00.593275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 112"], ["email", "user.112@example.com"], ["password_digest", "$2a$04$fXUq/yq6OrmJ8XNOshyhtOXbkamlcZkFuQJbPW7Qj3OukBVzV9uo2"], ["created_at", "2015-07-06 20:49:00.599893"], ["updated_at", "2015-07-06 20:49:00.599893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.604035"], ["updated_at", "2015-07-06 20:49:00.604035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d2b4d3a-f8a8-4e9d-a514-3d5ddd608c93' AND "clubhouse_memberships"."organization_id" = '69447446-0d36-4234-8a41-6c85e78129f8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d2b4d3a-f8a8-4e9d-a514-3d5ddd608c93"], ["organization_id", "69447446-0d36-4234-8a41-6c85e78129f8"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.606897"], ["updated_at", "2015-07-06 20:49:00.606897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5d2b4d3a-f8a8-4e9d-a514-3d5ddd608c93' LIMIT 1 [["organization_id", "69447446-0d36-4234-8a41-6c85e78129f8"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.614156"], ["updated_at", "2015-07-06 20:49:00.614156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '402ea7c6-5c8c-4dfe-848b-7496d1c6e004') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "402ea7c6-5c8c-4dfe-848b-7496d1c6e004"], ["created_at", "2015-07-06 20:49:00.619512"], ["updated_at", "2015-07-06 20:49:00.619512"], ["token", "2yeC2uuFWGs7ZgiYuk9xM8WLT67iiouZwSRJg2vPFdE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.3ms) Date: Mon, 06 Jul 2015 13:49:00 -0700 From: from@example.com To: john@example.com Message-ID: <559ae9bc9814f_105063ff65485e208686ba@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/2yeC2uuFWGs7ZgiYuk9xM8WLT67iiouZwSRJg2vPFdE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.628724"], ["updated_at", "2015-07-06 20:49:00.628724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'ba9e75b4-4568-41e9-a596-bf691ddba1f1') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "ba9e75b4-4568-41e9-a596-bf691ddba1f1"], ["created_at", "2015-07-06 20:49:00.632785"], ["updated_at", "2015-07-06 20:49:00.632785"], ["token", "o2y_7D6KmmtWg5phqvY-fgpkh9Xu87OPn0M3XtIJWJw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.0ms Sent mail to john@example.com (1.3ms) Date: Mon, 06 Jul 2015 13:49:00 -0700 From: from@example.com To: john@example.com Message-ID: <559ae9bc9b3a9_105063ff65485e20868724@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/o2y_7D6KmmtWg5phqvY-fgpkh9Xu87OPn0M3XtIJWJw?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.641483"], ["updated_at", "2015-07-06 20:49:00.641483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'cb797354-369a-42a6-8249-7f7a7069bc0b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "cb797354-369a-42a6-8249-7f7a7069bc0b"], ["created_at", "2015-07-06 20:49:00.645750"], ["updated_at", "2015-07-06 20:49:00.645750"], ["token", "5Y18gxWEBWVB5gksNFeZRReV4gpX1YWplBJN2ydMSpE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.3ms) Date: Mon, 06 Jul 2015 13:49:00 -0700 From: from@example.com To: john@example.com Message-ID: <559ae9bc9e667_105063ff65485e20868843@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/5Y18gxWEBWVB5gksNFeZRReV4gpX1YWplBJN2ydMSpE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.653955"], ["updated_at", "2015-07-06 20:49:00.653955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '5b3c4294-7f09-404a-a0f4-1080490c13b4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "5b3c4294-7f09-404a-a0f4-1080490c13b4"], ["created_at", "2015-07-06 20:49:00.657808"], ["updated_at", "2015-07-06 20:49:00.657808"], ["token", "RIYjwDke6DgbOn8aU2wbo7NovgSt0wetbbCKNm5Q6zY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (10.9ms) Date: Mon, 06 Jul 2015 13:49:00 -0700 From: from@example.com To: john@example.com Message-ID: <559ae9bca37c9_105063ff65485e2086893@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/RIYjwDke6DgbOn8aU2wbo7NovgSt0wetbbCKNm5Q6zY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 113"], ["email", "user.113@example.com"], ["password_digest", "$2a$04$dxcMnL6q9/j8BOj.UAEXcuz8eY6EcgXbb5kF26yqvrxkkZrKtrKi2"], ["created_at", "2015-07-06 20:49:00.678372"], ["updated_at", "2015-07-06 20:49:00.678372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.683062"], ["updated_at", "2015-07-06 20:49:00.683062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ab8f14fc-28ee-4cc4-a039-450ef6fac298' AND "clubhouse_memberships"."organization_id" = '71ebaf7a-5492-435a-a5f5-ce57c8b197bc') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ab8f14fc-28ee-4cc4-a039-450ef6fac298"], ["organization_id", "71ebaf7a-5492-435a-a5f5-ce57c8b197bc"], ["created_at", "2015-07-06 20:49:00.686540"], ["updated_at", "2015-07-06 20:49:00.686540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ab8f14fc-28ee-4cc4-a039-450ef6fac298' LIMIT 1 [["organization_id", "71ebaf7a-5492-435a-a5f5-ce57c8b197bc"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 114"], ["email", "user.114@example.com"], ["password_digest", "$2a$04$wdom9xHVezdzI6XXzbXKz.9U4VoZQQZ5l5Ah37u9YFzsziD7xeQOq"], ["created_at", "2015-07-06 20:49:00.695772"], ["updated_at", "2015-07-06 20:49:00.695772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.700099"], ["updated_at", "2015-07-06 20:49:00.700099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2a523e72-a5f0-4f6e-81ed-1b735dd7f387' AND "clubhouse_memberships"."organization_id" = 'ddc47a0c-c863-472a-8fb6-061a034af071') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2a523e72-a5f0-4f6e-81ed-1b735dd7f387"], ["organization_id", "ddc47a0c-c863-472a-8fb6-061a034af071"], ["created_at", "2015-07-06 20:49:00.703554"], ["updated_at", "2015-07-06 20:49:00.703554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 115"], ["email", "user.115@example.com"], ["password_digest", "$2a$04$z6rC4I1tpPTCQ5YYaTeWhOwwOLDCvXL1dU0RViyCzwx0oXhHnt8UO"], ["created_at", "2015-07-06 20:49:00.712269"], ["updated_at", "2015-07-06 20:49:00.712269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.717953"], ["updated_at", "2015-07-06 20:49:00.717953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '504a16b8-5c97-450f-9f79-cc13f068834a' AND "clubhouse_memberships"."organization_id" = '9026b9ee-8133-4008-85d7-1fa72243676d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "504a16b8-5c97-450f-9f79-cc13f068834a"], ["organization_id", "9026b9ee-8133-4008-85d7-1fa72243676d"], ["created_at", "2015-07-06 20:49:00.721719"], ["updated_at", "2015-07-06 20:49:00.721719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '504a16b8-5c97-450f-9f79-cc13f068834a' LIMIT 1 [["organization_id", "9026b9ee-8133-4008-85d7-1fa72243676d"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 116"], ["email", "user.116@example.com"], ["password_digest", "$2a$04$DDN6HBJJ0FlY6fUJgVW8kOEnIjdV0bHZdE5wM1vJNzupJgHKKTOT2"], ["created_at", "2015-07-06 20:49:00.730606"], ["updated_at", "2015-07-06 20:49:00.730606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.738117"], ["updated_at", "2015-07-06 20:49:00.738117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0248c072-f1ad-472d-82bd-dd8aeb5ae959' AND "clubhouse_memberships"."organization_id" = 'f166d68a-6993-4456-b2d1-ba97d8f806c1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0248c072-f1ad-472d-82bd-dd8aeb5ae959"], ["organization_id", "f166d68a-6993-4456-b2d1-ba97d8f806c1"], ["created_at", "2015-07-06 20:49:00.743747"], ["updated_at", "2015-07-06 20:49:00.743747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 117"], ["email", "user.117@example.com"], ["password_digest", "$2a$04$yo6CbtEkqN/kg7/YLz/8re7XpYQ9PoGD3MaYUIEur0sjHwWLfJ0kW"], ["created_at", "2015-07-06 20:49:00.752030"], ["updated_at", "2015-07-06 20:49:00.752030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.756867"], ["updated_at", "2015-07-06 20:49:00.756867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaa893ca-1b57-43af-b0cf-0c8c712e1ece' AND "clubhouse_memberships"."organization_id" = '13c838df-9549-40d7-bf30-890b0c535c01') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eaa893ca-1b57-43af-b0cf-0c8c712e1ece"], ["organization_id", "13c838df-9549-40d7-bf30-890b0c535c01"], ["created_at", "2015-07-06 20:49:00.760664"], ["updated_at", "2015-07-06 20:49:00.760664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eaa893ca-1b57-43af-b0cf-0c8c712e1ece' LIMIT 1 [["organization_id", "13c838df-9549-40d7-bf30-890b0c535c01"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 118"], ["email", "user.118@example.com"], ["password_digest", "$2a$04$os9I7f8xZr4Th98synyI6emNANSISO9frSAAUYc3KqV7M6ZkWZQbe"], ["created_at", "2015-07-06 20:49:00.770570"], ["updated_at", "2015-07-06 20:49:00.770570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.775535"], ["updated_at", "2015-07-06 20:49:00.775535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b26a2979-2374-498e-b651-28d258025f6a' LIMIT 1 [["organization_id", "a328f726-1f78-4777-a255-500a8298330d"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 119"], ["email", "user.119@example.com"], ["password_digest", "$2a$04$2S4ND.v1mNmVeOAzsQsMcOqiedtsW2iZ1iNrhcCiKCy9bldYMFsGq"], ["created_at", "2015-07-06 20:49:00.784253"], ["updated_at", "2015-07-06 20:49:00.784253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.788072"], ["updated_at", "2015-07-06 20:49:00.788072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 120"], ["email", "user.120@example.com"], ["password_digest", "$2a$04$w3qT82sdy5G31hm4BMHcJ.OMebhYruUdVrif4wkR.CgiUK5sR1QQm"], ["created_at", "2015-07-06 20:49:00.795335"], ["updated_at", "2015-07-06 20:49:00.795335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.799452"], ["updated_at", "2015-07-06 20:49:00.799452"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '83b3ec36-a123-48c6-8ca2-586824c0d4ac' LIMIT 1 [["organization_id", "9388e1c6-757f-4f22-8f7b-a96c2cd4deae"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 121"], ["email", "user.121@example.com"], ["password_digest", "$2a$04$ZMFA2mFxGkJwZgv8D79EnudE6LX9eqSFT/BwXsEBr2eF6P2ANqOyC"], ["created_at", "2015-07-06 20:49:00.812604"], ["updated_at", "2015-07-06 20:49:00.812604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.819061"], ["updated_at", "2015-07-06 20:49:00.819061"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 122"], ["email", "user.122@example.com"], ["password_digest", "$2a$04$4iqHkMweVhRdWVfrykWw.er7cqwtUTfadVrOln6iR08KprcnaVRCi"], ["created_at", "2015-07-06 20:49:00.828140"], ["updated_at", "2015-07-06 20:49:00.828140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.832202"], ["updated_at", "2015-07-06 20:49:00.832202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '9197d405-343b-4465-bb05-ebd3e7c33955' LIMIT 1 [["organization_id", "ec29f667-2d46-456e-8ef0-e4f467ef0006"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 123"], ["email", "user.123@example.com"], ["password_digest", "$2a$04$IB.uKbPrsNLgrfEq71nmKubxQn4aettIBv6xxwm47biV.pdvCIE9u"], ["created_at", "2015-07-06 20:49:00.840262"], ["updated_at", "2015-07-06 20:49:00.840262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.845323"], ["updated_at", "2015-07-06 20:49:00.845323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f06e71ab-c3b0-4e22-9bbb-3b824acedf9a' AND "clubhouse_memberships"."organization_id" = '9260643b-4d07-4d23-bc35-ae2c4ca84c43') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f06e71ab-c3b0-4e22-9bbb-3b824acedf9a"], ["organization_id", "9260643b-4d07-4d23-bc35-ae2c4ca84c43"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.848654"], ["updated_at", "2015-07-06 20:49:00.848654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'f06e71ab-c3b0-4e22-9bbb-3b824acedf9a' LIMIT 1 [["organization_id", "9260643b-4d07-4d23-bc35-ae2c4ca84c43"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 124"], ["email", "user.124@example.com"], ["password_digest", "$2a$04$U2jEDiPfaodTHTsSb3v.2.kr7K2it2UN2RGSQ4HuXd.2BCi52zo3m"], ["created_at", "2015-07-06 20:49:00.857116"], ["updated_at", "2015-07-06 20:49:00.857116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.861442"], ["updated_at", "2015-07-06 20:49:00.861442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5998633a-d2e2-4ca5-8002-7ec13ceeb71f' AND "clubhouse_memberships"."organization_id" = '5a5c7490-862a-4747-8257-06fb1cff5d68') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5998633a-d2e2-4ca5-8002-7ec13ceeb71f"], ["organization_id", "5a5c7490-862a-4747-8257-06fb1cff5d68"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.865023"], ["updated_at", "2015-07-06 20:49:00.865023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 125"], ["email", "user.125@example.com"], ["password_digest", "$2a$04$qjadoJmOtZ2lqqNnyx48h.qDEJyN/EzbH0p8b2jRAbXhGUMiqjE6e"], ["created_at", "2015-07-06 20:49:00.873589"], ["updated_at", "2015-07-06 20:49:00.873589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.878261"], ["updated_at", "2015-07-06 20:49:00.878261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de47430c-7291-484e-810f-ed3883638c72' AND "clubhouse_memberships"."organization_id" = '83174358-97ac-480b-9417-d71365ff61dd') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "de47430c-7291-484e-810f-ed3883638c72"], ["organization_id", "83174358-97ac-480b-9417-d71365ff61dd"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.881740"], ["updated_at", "2015-07-06 20:49:00.881740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'de47430c-7291-484e-810f-ed3883638c72' LIMIT 1 [["organization_id", "83174358-97ac-480b-9417-d71365ff61dd"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 126"], ["email", "user.126@example.com"], ["password_digest", "$2a$04$Ozp4O97PBPoEYO7KyL1WC.5MvreddjpMQ0k0q67r9tlOcKp8ELKU."], ["created_at", "2015-07-06 20:49:00.890621"], ["updated_at", "2015-07-06 20:49:00.890621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.896108"], ["updated_at", "2015-07-06 20:49:00.896108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f001fd9-5a89-4100-9e01-a2dda937b234' AND "clubhouse_memberships"."organization_id" = 'a3dff98b-94d4-46f4-9178-c323d960c15a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f001fd9-5a89-4100-9e01-a2dda937b234"], ["organization_id", "a3dff98b-94d4-46f4-9178-c323d960c15a"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.899207"], ["updated_at", "2015-07-06 20:49:00.899207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 127"], ["email", "user.127@example.com"], ["password_digest", "$2a$04$m0e5xcxetXfh0Pf6z0Tns.flCe.EzvYSSVtTHz9OyM2.EC6./DwPi"], ["created_at", "2015-07-06 20:49:00.905895"], ["updated_at", "2015-07-06 20:49:00.905895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.910491"], ["updated_at", "2015-07-06 20:49:00.910491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7d15b423-74f3-4db0-862f-3147638596b2' AND "clubhouse_memberships"."organization_id" = 'f08bc606-f755-42c1-9805-0c58419247c6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7d15b423-74f3-4db0-862f-3147638596b2"], ["organization_id", "f08bc606-f755-42c1-9805-0c58419247c6"], ["admin", "t"], ["created_at", "2015-07-06 20:49:00.914221"], ["updated_at", "2015-07-06 20:49:00.914221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '7d15b423-74f3-4db0-862f-3147638596b2' LIMIT 1 [["organization_id", "f08bc606-f755-42c1-9805-0c58419247c6"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 128"], ["email", "user.128@example.com"], ["password_digest", "$2a$04$4KBVNysqtn5Eh8MEysK5E.XNAZiHt3GqEK5v8oGBEoeLJo6jf.eyK"], ["created_at", "2015-07-06 20:49:00.922991"], ["updated_at", "2015-07-06 20:49:00.922991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.929922"], ["updated_at", "2015-07-06 20:49:00.929922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'a6f49fb8-088e-44d1-86a4-1d5a06d3fc0b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "a6f49fb8-088e-44d1-86a4-1d5a06d3fc0b"], ["created_at", "2015-07-06 20:49:00.934017"], ["updated_at", "2015-07-06 20:49:00.934017"], ["token", "LGq6lpbOiHu9FD2EcsFJwQZkBFkv6wg8uJH8tS13-hM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6f49fb8-088e-44d1-86a4-1d5a06d3fc0b"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'a6f49fb8-088e-44d1-86a4-1d5a06d3fc0b') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a6f49fb8-088e-44d1-86a4-1d5a06d3fc0c"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'a6f49fb8-088e-44d1-86a4-1d5a06d3fc0c') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.968560"], ["updated_at", "2015-07-06 20:49:00.968560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8fb4dc0c-20db-440b-b705-5be1e791b849') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "8fb4dc0c-20db-440b-b705-5be1e791b849"], ["created_at", "2015-07-06 20:49:00.972311"], ["updated_at", "2015-07-06 20:49:00.972311"], ["token", "XshnU_-5XxJW4WyposTBTAQWd26OWmugqtUuFrfWvWQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 129"], ["email", "user.129@example.com"], ["password_digest", "$2a$04$ZhhDPodYohmitD7l2dzVBOnibbRSmovnn2HmOyyTJTS9Xjx55X41S"], ["created_at", "2015-07-06 20:49:00.979516"], ["updated_at", "2015-07-06 20:49:00.979516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:00.984261"], ["updated_at", "2015-07-06 20:49:00.984261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '1c56f4e5-f9d9-426f-b97d-10bfbc66890c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "1c56f4e5-f9d9-426f-b97d-10bfbc66890c"], ["created_at", "2015-07-06 20:49:00.988608"], ["updated_at", "2015-07-06 20:49:00.988608"], ["token", "faVy6E04sFlYWe02mQYuzPqMEFgPhoFOdO6v3hcgoNg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '15e8be18-a5ab-415a-a142-c12d8c8a34bf' LIMIT 1 [["organization_id", "1c56f4e5-f9d9-426f-b97d-10bfbc66890c"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 130"], ["email", "user.130@example.com"], ["password_digest", "$2a$04$7LvkdeliaplNfB0NxKYHt.jOq0GwbpLtogny1Q.dW42FomQDQpQ7q"], ["created_at", "2015-07-06 20:49:00.996774"], ["updated_at", "2015-07-06 20:49:00.996774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.000990"], ["updated_at", "2015-07-06 20:49:01.000990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '2ad7dbd9-cebe-46c4-aa77-989cf2132f72') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "2ad7dbd9-cebe-46c4-aa77-989cf2132f72"], ["created_at", "2015-07-06 20:49:01.005695"], ["updated_at", "2015-07-06 20:49:01.005695"], ["token", "0Z5EpYUukzp9wnTO4m-STAjgnErCQ_rNuuqNIjEjCFY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e5e74e31-64b4-47ea-92c6-4395981b865d' LIMIT 1 [["organization_id", "2ad7dbd9-cebe-46c4-aa77-989cf2132f72"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 131"], ["email", "user.131@example.com"], ["password_digest", "$2a$04$f3lD1qfNw4rC1JdB4rLDWOQ9mDfhewaEFLrm8PSkyAQNPzSIw4sFG"], ["created_at", "2015-07-06 20:49:01.014088"], ["updated_at", "2015-07-06 20:49:01.014088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.018057"], ["updated_at", "2015-07-06 20:49:01.018057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'e6a5dbb1-49c5-49cd-83a0-28e1aa8571cb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "e6a5dbb1-49c5-49cd-83a0-28e1aa8571cb"], ["created_at", "2015-07-06 20:49:01.022652"], ["updated_at", "2015-07-06 20:49:01.022652"], ["token", "Yt6q8wpXoxz6fESnsApK95bGqMh8rjbs5dkVBDfJHzM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea0f9571-3489-4497-84ae-c33b6272b089' LIMIT 1 [["organization_id", "e6a5dbb1-49c5-49cd-83a0-28e1aa8571cb"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 132"], ["email", "user.132@example.com"], ["password_digest", "$2a$04$bhbSNZB78h0GchQuIINnx.S3Ehyolf/PLB2hPeMuaZWntMrgoN.mi"], ["created_at", "2015-07-06 20:49:01.032003"], ["updated_at", "2015-07-06 20:49:01.032003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.036113"], ["updated_at", "2015-07-06 20:49:01.036113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '3e8ed703-4627-41da-87e2-55181b1962ef') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "3e8ed703-4627-41da-87e2-55181b1962ef"], ["created_at", "2015-07-06 20:49:01.040428"], ["updated_at", "2015-07-06 20:49:01.040428"], ["token", "TtZveOgBOtvEP-NM2r5iyrNC-GHXlgjCx0NK6LBfOHo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cf949c24-56b5-4304-9578-3a2b6abeeceb' LIMIT 1 [["organization_id", "3e8ed703-4627-41da-87e2-55181b1962ef"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 133"], ["email", "user.133@example.com"], ["password_digest", "$2a$04$u2BM20i7RNJR82b7.9xwlu287n71Hfh5Z4wZ9mayFwG3d4/.xcNue"], ["created_at", "2015-07-06 20:49:01.048803"], ["updated_at", "2015-07-06 20:49:01.048803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.052893"], ["updated_at", "2015-07-06 20:49:01.052893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ea5146e1-7d80-4d02-9b29-4ead1ec24840' LIMIT 1 [["organization_id", "c2e8cf7b-ba75-4b31-a6b2-008a9efb95f5"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 134"], ["email", "user.134@example.com"], ["password_digest", "$2a$04$iiwnNQH.ea8y28TaPNxZAetHjdDOUWK44LgO2ODc/TGS6gUUGCcLG"], ["created_at", "2015-07-06 20:49:01.061344"], ["updated_at", "2015-07-06 20:49:01.061344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.066222"], ["updated_at", "2015-07-06 20:49:01.066222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1efb07ee-2ffd-47c6-9a9b-00e549f74450' AND "clubhouse_memberships"."organization_id" = '890163e9-532c-4e7a-8d63-725f09058f3f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1efb07ee-2ffd-47c6-9a9b-00e549f74450"], ["organization_id", "890163e9-532c-4e7a-8d63-725f09058f3f"], ["created_at", "2015-07-06 20:49:01.069544"], ["updated_at", "2015-07-06 20:49:01.069544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '890163e9-532c-4e7a-8d63-725f09058f3f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "890163e9-532c-4e7a-8d63-725f09058f3f"], ["created_at", "2015-07-06 20:49:01.073911"], ["updated_at", "2015-07-06 20:49:01.073911"], ["token", "EH4yLPcqJ6S2gCrdLheNBRkTgc6PkqVHhJP6bt89jec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1efb07ee-2ffd-47c6-9a9b-00e549f74450' LIMIT 1 [["organization_id", "890163e9-532c-4e7a-8d63-725f09058f3f"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 135"], ["email", "user.135@example.com"], ["password_digest", "$2a$04$F55E5xD6/YHqzouWLqPeAeH.26wPYs6Kv8xAOEWS2rtBohciBwvY2"], ["created_at", "2015-07-06 20:49:01.082278"], ["updated_at", "2015-07-06 20:49:01.082278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.086230"], ["updated_at", "2015-07-06 20:49:01.086230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20cc38bb-ca00-4e46-88ae-d1e6b31d1483' AND "clubhouse_memberships"."organization_id" = '5a6069c7-97db-45e3-950e-456627df757a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20cc38bb-ca00-4e46-88ae-d1e6b31d1483"], ["organization_id", "5a6069c7-97db-45e3-950e-456627df757a"], ["created_at", "2015-07-06 20:49:01.089359"], ["updated_at", "2015-07-06 20:49:01.089359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '5a6069c7-97db-45e3-950e-456627df757a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "5a6069c7-97db-45e3-950e-456627df757a"], ["created_at", "2015-07-06 20:49:01.093724"], ["updated_at", "2015-07-06 20:49:01.093724"], ["token", "P1OHygPtIT5lujLJlEUntgxZGfk84LyP8LFYkvuQCUA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '20cc38bb-ca00-4e46-88ae-d1e6b31d1483' LIMIT 1 [["organization_id", "5a6069c7-97db-45e3-950e-456627df757a"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 136"], ["email", "user.136@example.com"], ["password_digest", "$2a$04$xJRrus..WLJup/3Nr7/g4OtomG7STPNsEuidXStQv.2iLGUKBMVWm"], ["created_at", "2015-07-06 20:49:01.102243"], ["updated_at", "2015-07-06 20:49:01.102243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.106458"], ["updated_at", "2015-07-06 20:49:01.106458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b4065da3-423a-4722-b0f6-382510499f8a' AND "clubhouse_memberships"."organization_id" = '1d5796ca-298d-4414-bf11-1a9b20fc358b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b4065da3-423a-4722-b0f6-382510499f8a"], ["organization_id", "1d5796ca-298d-4414-bf11-1a9b20fc358b"], ["created_at", "2015-07-06 20:49:01.109825"], ["updated_at", "2015-07-06 20:49:01.109825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '1d5796ca-298d-4414-bf11-1a9b20fc358b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "1d5796ca-298d-4414-bf11-1a9b20fc358b"], ["created_at", "2015-07-06 20:49:01.115832"], ["updated_at", "2015-07-06 20:49:01.115832"], ["token", "bn8tpJbYWyhxh5v5LjPmhsUNfLpIVh_uMHvrr2i6_G0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b4065da3-423a-4722-b0f6-382510499f8a' LIMIT 1 [["organization_id", "1d5796ca-298d-4414-bf11-1a9b20fc358b"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 137"], ["email", "user.137@example.com"], ["password_digest", "$2a$04$OljdAxXRvBB.C73Hgn3U3O30QmvqOkZlH6/eGQqDvjtTd2fnYqhma"], ["created_at", "2015-07-06 20:49:01.126630"], ["updated_at", "2015-07-06 20:49:01.126630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.130777"], ["updated_at", "2015-07-06 20:49:01.130777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cfe94cfb-6b37-45f9-b424-316a7afcf0d7' AND "clubhouse_memberships"."organization_id" = 'b44615d1-6ac7-445e-a5f2-842f1304f9ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cfe94cfb-6b37-45f9-b424-316a7afcf0d7"], ["organization_id", "b44615d1-6ac7-445e-a5f2-842f1304f9ad"], ["created_at", "2015-07-06 20:49:01.135821"], ["updated_at", "2015-07-06 20:49:01.135821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'b44615d1-6ac7-445e-a5f2-842f1304f9ad') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "b44615d1-6ac7-445e-a5f2-842f1304f9ad"], ["created_at", "2015-07-06 20:49:01.141030"], ["updated_at", "2015-07-06 20:49:01.141030"], ["token", "qbLqwg2yJM7f24XXD3cqfKSKbERE7t1ccVX4ywRt-4Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cfe94cfb-6b37-45f9-b424-316a7afcf0d7' LIMIT 1 [["organization_id", "b44615d1-6ac7-445e-a5f2-842f1304f9ad"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 138"], ["email", "user.138@example.com"], ["password_digest", "$2a$04$kigjksRBiCEgzJ7bjA3wfeckbPuyV9Wh2skTMSfJilVKgbBa/gZfu"], ["created_at", "2015-07-06 20:49:01.151750"], ["updated_at", "2015-07-06 20:49:01.151750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.158562"], ["updated_at", "2015-07-06 20:49:01.158562"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8931e88-9e4f-4834-baa8-990bfe9a21e1' AND "clubhouse_memberships"."organization_id" = '52167d71-b320-47dd-8d90-eb89ee182996') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8931e88-9e4f-4834-baa8-990bfe9a21e1"], ["organization_id", "52167d71-b320-47dd-8d90-eb89ee182996"], ["created_at", "2015-07-06 20:49:01.164788"], ["updated_at", "2015-07-06 20:49:01.164788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8931e88-9e4f-4834-baa8-990bfe9a21e1' LIMIT 1 [["organization_id", "52167d71-b320-47dd-8d90-eb89ee182996"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 139"], ["email", "user.139@example.com"], ["password_digest", "$2a$04$M6cWrKvR.UenRw47TgikwuSsPw7IB0rwrp9CfOKs4jEbFZSgKbJQ."], ["created_at", "2015-07-06 20:49:01.175912"], ["updated_at", "2015-07-06 20:49:01.175912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.180722"], ["updated_at", "2015-07-06 20:49:01.180722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dee3f862-7859-4c80-a26e-4300b5978fd5' AND "clubhouse_memberships"."organization_id" = '4082dc7e-beb3-444f-abb1-558b6ac2d4fc') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dee3f862-7859-4c80-a26e-4300b5978fd5"], ["organization_id", "4082dc7e-beb3-444f-abb1-558b6ac2d4fc"], ["admin", "t"], ["created_at", "2015-07-06 20:49:01.184079"], ["updated_at", "2015-07-06 20:49:01.184079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '4082dc7e-beb3-444f-abb1-558b6ac2d4fc') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "4082dc7e-beb3-444f-abb1-558b6ac2d4fc"], ["created_at", "2015-07-06 20:49:01.189148"], ["updated_at", "2015-07-06 20:49:01.189148"], ["token", "cUt_d0VbNDLllSH5RLaTTzqf8i_sOQGjIBRu2W9bQjg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'dee3f862-7859-4c80-a26e-4300b5978fd5' LIMIT 1 [["organization_id", "4082dc7e-beb3-444f-abb1-558b6ac2d4fc"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 140"], ["email", "user.140@example.com"], ["password_digest", "$2a$04$.HojeX.PJUN9pE64g9hd5elmuHbY70MEAsE0WbEMaPByQl1lNRYV2"], ["created_at", "2015-07-06 20:49:01.198221"], ["updated_at", "2015-07-06 20:49:01.198221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.202464"], ["updated_at", "2015-07-06 20:49:01.202464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b0da745d-6125-45a2-81eb-27d9b23942ea' AND "clubhouse_memberships"."organization_id" = '378a2bb4-f144-44ce-8abb-1af3a7636ff9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b0da745d-6125-45a2-81eb-27d9b23942ea"], ["organization_id", "378a2bb4-f144-44ce-8abb-1af3a7636ff9"], ["admin", "t"], ["created_at", "2015-07-06 20:49:01.207194"], ["updated_at", "2015-07-06 20:49:01.207194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '378a2bb4-f144-44ce-8abb-1af3a7636ff9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "378a2bb4-f144-44ce-8abb-1af3a7636ff9"], ["created_at", "2015-07-06 20:49:01.211709"], ["updated_at", "2015-07-06 20:49:01.211709"], ["token", "HZmt526lceppt21jU4LdqI5pQ-7m2gUmrpWRSPncAKc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b0da745d-6125-45a2-81eb-27d9b23942ea' LIMIT 1 [["organization_id", "378a2bb4-f144-44ce-8abb-1af3a7636ff9"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 141"], ["email", "user.141@example.com"], ["password_digest", "$2a$04$aiacL.1.LBNoVPCOhcsi7OxQzqvP2IrrMO5b2fMKtqxJ2e8m0UdCm"], ["created_at", "2015-07-06 20:49:01.220136"], ["updated_at", "2015-07-06 20:49:01.220136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.224484"], ["updated_at", "2015-07-06 20:49:01.224484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b0ec8f9a-2b3f-4ed6-9be8-74379c92f3ef' AND "clubhouse_memberships"."organization_id" = 'e064c272-fef5-4516-b42a-aa95c8f81423') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b0ec8f9a-2b3f-4ed6-9be8-74379c92f3ef"], ["organization_id", "e064c272-fef5-4516-b42a-aa95c8f81423"], ["admin", "t"], ["created_at", "2015-07-06 20:49:01.228366"], ["updated_at", "2015-07-06 20:49:01.228366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'e064c272-fef5-4516-b42a-aa95c8f81423') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "e064c272-fef5-4516-b42a-aa95c8f81423"], ["created_at", "2015-07-06 20:49:01.232782"], ["updated_at", "2015-07-06 20:49:01.232782"], ["token", "r4fISIPXMzjJ-MxCZF-CRC3p1EMMMEBESLfZHgP1EF4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b0ec8f9a-2b3f-4ed6-9be8-74379c92f3ef' LIMIT 1 [["organization_id", "e064c272-fef5-4516-b42a-aa95c8f81423"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 142"], ["email", "user.142@example.com"], ["password_digest", "$2a$04$Y6IANPKM6yhK5mQTLF/gr.FP9rA1mpME11OaZAOwslt/sIpHPyj0K"], ["created_at", "2015-07-06 20:49:01.241175"], ["updated_at", "2015-07-06 20:49:01.241175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.245480"], ["updated_at", "2015-07-06 20:49:01.245480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e906f495-357a-465b-889c-d619c8bce0b7' AND "clubhouse_memberships"."organization_id" = '2d14df21-aa99-4df0-a553-330db2b903e3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e906f495-357a-465b-889c-d619c8bce0b7"], ["organization_id", "2d14df21-aa99-4df0-a553-330db2b903e3"], ["admin", "t"], ["created_at", "2015-07-06 20:49:01.248761"], ["updated_at", "2015-07-06 20:49:01.248761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '2d14df21-aa99-4df0-a553-330db2b903e3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "2d14df21-aa99-4df0-a553-330db2b903e3"], ["created_at", "2015-07-06 20:49:01.254207"], ["updated_at", "2015-07-06 20:49:01.254207"], ["token", "fxXJt9hjBcmpdwSUl7aRq880dX3hR8PAZO1sLlx92is"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e906f495-357a-465b-889c-d619c8bce0b7' LIMIT 1 [["organization_id", "2d14df21-aa99-4df0-a553-330db2b903e3"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 143"], ["email", "user.143@example.com"], ["password_digest", "$2a$04$3SkpqsIHVSrXgq00685MVe.FzzRpc3oBAoR1NoM7pL7uuo2JuXVyG"], ["created_at", "2015-07-06 20:49:01.263761"], ["updated_at", "2015-07-06 20:49:01.263761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-07-06 20:49:01.268062"], ["updated_at", "2015-07-06 20:49:01.268062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b4ebda0d-7b98-407f-8aee-6a980aa285c4' AND "clubhouse_memberships"."organization_id" = '4c38318e-4836-4641-9056-6778607d5240') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b4ebda0d-7b98-407f-8aee-6a980aa285c4"], ["organization_id", "4c38318e-4836-4641-9056-6778607d5240"], ["admin", "t"], ["created_at", "2015-07-06 20:49:01.271141"], ["updated_at", "2015-07-06 20:49:01.271141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b4ebda0d-7b98-407f-8aee-6a980aa285c4' LIMIT 1 [["organization_id", "4c38318e-4836-4641-9056-6778607d5240"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$5cGylVuE4YhtT/20kMucveiatJ.BU3WrMRFZ7kcaFVGBaRRkpSXOm"], ["created_at", "2015-07-06 21:15:18.688869"], ["updated_at", "2015-07-06 21:15:18.688869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.703506"], ["updated_at", "2015-07-06 21:15:18.703506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'eaed8a0e-f103-4370-bf61-3de4ed5ff5d8') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "eaed8a0e-f103-4370-bf61-3de4ed5ff5d8"], ["created_at", "2015-07-06 21:15:18.726485"], ["updated_at", "2015-07-06 21:15:18.726485"], ["token", "vNmB0-EfbRmZSL08-MGObvo1Ikd1iJOG_yTmjYl6bzY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '835de514-6870-4315-8bd8-cd9558746e15' LIMIT 1 [["organization_id", "eaed8a0e-f103-4370-bf61-3de4ed5ff5d8"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$u8a9aUTOaXlgfexjuDiyK.2Yjl9d6GgM64fOFrGT04rKm7eCgKf8m"], ["created_at", "2015-07-06 21:15:18.763552"], ["updated_at", "2015-07-06 21:15:18.763552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.769617"], ["updated_at", "2015-07-06 21:15:18.769617"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'cf3ac2ac-3228-4ed7-86a4-23eed9940772') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "cf3ac2ac-3228-4ed7-86a4-23eed9940772"], ["created_at", "2015-07-06 21:15:18.777605"], ["updated_at", "2015-07-06 21:15:18.777605"], ["token", "w4h9t0gZh4V-_lD9_YsBGCm7bPrhGJg52Q6h4mwQJRM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '259dff2e-c880-4456-8e65-87401376037f' LIMIT 1 [["organization_id", "cf3ac2ac-3228-4ed7-86a4-23eed9940772"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$ywIaZzAMiNz9rEwNw.5rme/XQwezY1qA67mxgCiDvFtRYInE5.dfq"], ["created_at", "2015-07-06 21:15:18.789820"], ["updated_at", "2015-07-06 21:15:18.789820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.795523"], ["updated_at", "2015-07-06 21:15:18.795523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c8f51927-7e8c-463b-aac2-9eaa0eddb921') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c8f51927-7e8c-463b-aac2-9eaa0eddb921"], ["created_at", "2015-07-06 21:15:18.799594"], ["updated_at", "2015-07-06 21:15:18.799594"], ["token", "x_S8u8JZK5qS2j8R2NUL6domm_0HWzEaLUVgwuU7o6A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'a7527752-a3b3-4d16-87e7-b84c64ed6cae' LIMIT 1 [["organization_id", "c8f51927-7e8c-463b-aac2-9eaa0eddb921"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$EFwwHIoHwFv.xopGnKqeD.7pr1zCJUiX37uLq188fDFpgHK8iiS3O"], ["created_at", "2015-07-06 21:15:18.808521"], ["updated_at", "2015-07-06 21:15:18.808521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.812328"], ["updated_at", "2015-07-06 21:15:18.812328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '8fc34d83-f9cb-40fc-bb53-517edb62e5de') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "8fc34d83-f9cb-40fc-bb53-517edb62e5de"], ["created_at", "2015-07-06 21:15:18.816400"], ["updated_at", "2015-07-06 21:15:18.816400"], ["token", "lM1pfd1WbCtTiFz6QzDB_PsFIo8WV5I2OMmJZjPE6hw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e43d262e-5917-4294-872d-a01ef200fdda' LIMIT 1 [["organization_id", "8fc34d83-f9cb-40fc-bb53-517edb62e5de"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$Lh16MMB/RMpEykKKppp9t.S9QB3QIU0iRBieipG8KAu0SB9ejyWsi"], ["created_at", "2015-07-06 21:15:18.826299"], ["updated_at", "2015-07-06 21:15:18.826299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.830457"], ["updated_at", "2015-07-06 21:15:18.830457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd0afd3d1-9fa1-40ea-9b4e-4f9625d0ec28' LIMIT 1 [["organization_id", "b68fd299-cf83-46ca-89ba-1f224d00b7dc"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$lSUS/kIjkno/MCCZYd5Cl.I/6A0DLy5GOrJL1NUola/9K6M7lzkYq"], ["created_at", "2015-07-06 21:15:18.840918"], ["updated_at", "2015-07-06 21:15:18.840918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.846024"], ["updated_at", "2015-07-06 21:15:18.846024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '99c9d422-6738-425b-a00b-2585ab017bdb' AND "clubhouse_memberships"."organization_id" = '24dbceb8-bf73-4940-8b2e-c753fd1ee2d6') LIMIT 1 SQL (2.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "99c9d422-6738-425b-a00b-2585ab017bdb"], ["organization_id", "24dbceb8-bf73-4940-8b2e-c753fd1ee2d6"], ["created_at", "2015-07-06 21:15:18.856743"], ["updated_at", "2015-07-06 21:15:18.856743"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '24dbceb8-bf73-4940-8b2e-c753fd1ee2d6') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "24dbceb8-bf73-4940-8b2e-c753fd1ee2d6"], ["created_at", "2015-07-06 21:15:18.867441"], ["updated_at", "2015-07-06 21:15:18.867441"], ["token", "J7VT5GUWb0iP0aAUzojQwRN8mdaeu26rWY1craeggnE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '99c9d422-6738-425b-a00b-2585ab017bdb' LIMIT 1 [["organization_id", "24dbceb8-bf73-4940-8b2e-c753fd1ee2d6"]]  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$X1Pa9I.IUv2hhEcC/tFZRuYRYw.GYpCn4OcX4l49l0GEPFG0iTeh2"], ["created_at", "2015-07-06 21:15:18.888859"], ["updated_at", "2015-07-06 21:15:18.888859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.893207"], ["updated_at", "2015-07-06 21:15:18.893207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92ceec49-e3d9-4607-843f-49a4962d9ddf' AND "clubhouse_memberships"."organization_id" = '6110f4cf-b0f6-4ffc-9a44-ab867d837246') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "92ceec49-e3d9-4607-843f-49a4962d9ddf"], ["organization_id", "6110f4cf-b0f6-4ffc-9a44-ab867d837246"], ["created_at", "2015-07-06 21:15:18.896160"], ["updated_at", "2015-07-06 21:15:18.896160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '6110f4cf-b0f6-4ffc-9a44-ab867d837246') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "6110f4cf-b0f6-4ffc-9a44-ab867d837246"], ["created_at", "2015-07-06 21:15:18.900493"], ["updated_at", "2015-07-06 21:15:18.900493"], ["token", "0j50QfMfi-lwjX9rmo9sgrv_0VM-svcJL-LXb-wN4Mo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '92ceec49-e3d9-4607-843f-49a4962d9ddf' LIMIT 1 [["organization_id", "6110f4cf-b0f6-4ffc-9a44-ab867d837246"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$T5.AJLhJwIkio2fk.JuVCuEUhc2oQthZbogZThxav2a8Jn2I4Bv0C"], ["created_at", "2015-07-06 21:15:18.917447"], ["updated_at", "2015-07-06 21:15:18.917447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.923930"], ["updated_at", "2015-07-06 21:15:18.923930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2076ca56-6a93-4f4b-98c6-ad9f2e3eea98' AND "clubhouse_memberships"."organization_id" = '73b89eb4-b87c-4974-b52d-0b9868f33b1d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2076ca56-6a93-4f4b-98c6-ad9f2e3eea98"], ["organization_id", "73b89eb4-b87c-4974-b52d-0b9868f33b1d"], ["created_at", "2015-07-06 21:15:18.928331"], ["updated_at", "2015-07-06 21:15:18.928331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '73b89eb4-b87c-4974-b52d-0b9868f33b1d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "73b89eb4-b87c-4974-b52d-0b9868f33b1d"], ["created_at", "2015-07-06 21:15:18.934105"], ["updated_at", "2015-07-06 21:15:18.934105"], ["token", "CtfOQd9ORa53GK39tXERfTTVQ0-TcEtGkioEWBe_Ahk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2076ca56-6a93-4f4b-98c6-ad9f2e3eea98' LIMIT 1 [["organization_id", "73b89eb4-b87c-4974-b52d-0b9868f33b1d"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$nHaj3h14WsAsi6yZk.QoXe28.BAY8GZ4d/l1jblAzVoC0CSSSa1jK"], ["created_at", "2015-07-06 21:15:18.943975"], ["updated_at", "2015-07-06 21:15:18.943975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.948563"], ["updated_at", "2015-07-06 21:15:18.948563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cabc21bb-ff4c-47c1-8899-78cc30baf99f' AND "clubhouse_memberships"."organization_id" = '03f9e5cc-1e88-4da5-b64b-f255e8905a3f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cabc21bb-ff4c-47c1-8899-78cc30baf99f"], ["organization_id", "03f9e5cc-1e88-4da5-b64b-f255e8905a3f"], ["created_at", "2015-07-06 21:15:18.953237"], ["updated_at", "2015-07-06 21:15:18.953237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '03f9e5cc-1e88-4da5-b64b-f255e8905a3f') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "03f9e5cc-1e88-4da5-b64b-f255e8905a3f"], ["created_at", "2015-07-06 21:15:18.958311"], ["updated_at", "2015-07-06 21:15:18.958311"], ["token", "M1MmJOQ6z55t3eGipBJv3p-53Bm2QoS8NFBJbDztTAo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'cabc21bb-ff4c-47c1-8899-78cc30baf99f' LIMIT 1 [["organization_id", "03f9e5cc-1e88-4da5-b64b-f255e8905a3f"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$yOsTv6RcTBfjJZ.C4OAfmu7ZK/Pnc7I.TRAvpUWxHCEUxOEacbl2."], ["created_at", "2015-07-06 21:15:18.968769"], ["updated_at", "2015-07-06 21:15:18.968769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.973616"], ["updated_at", "2015-07-06 21:15:18.973616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '14902d26-fccc-4615-bdc1-1c6601197229' AND "clubhouse_memberships"."organization_id" = 'c9f79590-2b89-45a5-a5b9-0d2010c5ba42') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "14902d26-fccc-4615-bdc1-1c6601197229"], ["organization_id", "c9f79590-2b89-45a5-a5b9-0d2010c5ba42"], ["created_at", "2015-07-06 21:15:18.978420"], ["updated_at", "2015-07-06 21:15:18.978420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '14902d26-fccc-4615-bdc1-1c6601197229' LIMIT 1 [["organization_id", "c9f79590-2b89-45a5-a5b9-0d2010c5ba42"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$rqmvr9.kdct0edBdAKK1POy3vVONP.mKGSfZD4Swb7ndsMeUrWd9S"], ["created_at", "2015-07-06 21:15:18.988842"], ["updated_at", "2015-07-06 21:15:18.988842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:18.997449"], ["updated_at", "2015-07-06 21:15:18.997449"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '73fdd735-8f9c-4265-b077-2c8ea425f0b9' AND "clubhouse_memberships"."organization_id" = '1479c069-dd78-4f43-b634-b92d14f88975') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "73fdd735-8f9c-4265-b077-2c8ea425f0b9"], ["organization_id", "1479c069-dd78-4f43-b634-b92d14f88975"], ["admin", "t"], ["created_at", "2015-07-06 21:15:19.009190"], ["updated_at", "2015-07-06 21:15:19.009190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '1479c069-dd78-4f43-b634-b92d14f88975') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "1479c069-dd78-4f43-b634-b92d14f88975"], ["created_at", "2015-07-06 21:15:19.014730"], ["updated_at", "2015-07-06 21:15:19.014730"], ["token", "SxQhrpmKNwyxPVFsSQjTbeE6lju9bjBTcNdqHBboNX8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '73fdd735-8f9c-4265-b077-2c8ea425f0b9' LIMIT 1 [["organization_id", "1479c069-dd78-4f43-b634-b92d14f88975"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$EZzsHV/bqTHI82KkjibKhObrfShXxTmmSt5zWch4xNnbix/2iNhPm"], ["created_at", "2015-07-06 21:15:19.025267"], ["updated_at", "2015-07-06 21:15:19.025267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.029623"], ["updated_at", "2015-07-06 21:15:19.029623"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd738cf81-943b-4072-88ef-ac5220e8d740' AND "clubhouse_memberships"."organization_id" = '61746d85-93be-4781-9b72-29651a979fbd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d738cf81-943b-4072-88ef-ac5220e8d740"], ["organization_id", "61746d85-93be-4781-9b72-29651a979fbd"], ["admin", "t"], ["created_at", "2015-07-06 21:15:19.043838"], ["updated_at", "2015-07-06 21:15:19.043838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '61746d85-93be-4781-9b72-29651a979fbd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "61746d85-93be-4781-9b72-29651a979fbd"], ["created_at", "2015-07-06 21:15:19.049467"], ["updated_at", "2015-07-06 21:15:19.049467"], ["token", "JK2nQK7tfpXO9Y5NcfobMxYBrb5JoYcu7VkMMI856XQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd738cf81-943b-4072-88ef-ac5220e8d740' LIMIT 1 [["organization_id", "61746d85-93be-4781-9b72-29651a979fbd"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$DRkSq.0KptaXzvlOgX3XcOP2C7eGdgCNc/DU34akBZz/OaECwbn66"], ["created_at", "2015-07-06 21:15:19.060626"], ["updated_at", "2015-07-06 21:15:19.060626"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.065485"], ["updated_at", "2015-07-06 21:15:19.065485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84bd049d-84b6-409d-a40f-5d85d1336c9c' AND "clubhouse_memberships"."organization_id" = 'bb98b4c4-cedb-47e0-9b9f-d2e9eefcc449') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84bd049d-84b6-409d-a40f-5d85d1336c9c"], ["organization_id", "bb98b4c4-cedb-47e0-9b9f-d2e9eefcc449"], ["admin", "t"], ["created_at", "2015-07-06 21:15:19.069905"], ["updated_at", "2015-07-06 21:15:19.069905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'bb98b4c4-cedb-47e0-9b9f-d2e9eefcc449') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "bb98b4c4-cedb-47e0-9b9f-d2e9eefcc449"], ["created_at", "2015-07-06 21:15:19.074987"], ["updated_at", "2015-07-06 21:15:19.074987"], ["token", "ALy9hjYDMoaMuFDf9_-y91V9wSGuxY5tfzKCE52EApI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '84bd049d-84b6-409d-a40f-5d85d1336c9c' LIMIT 1 [["organization_id", "bb98b4c4-cedb-47e0-9b9f-d2e9eefcc449"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$N8yzILFRGcYpNDRi1z.gf.IqQoAnlpRGiboUWvja3PLLCRDEyAnyi"], ["created_at", "2015-07-06 21:15:19.083864"], ["updated_at", "2015-07-06 21:15:19.083864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.089245"], ["updated_at", "2015-07-06 21:15:19.089245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad4a8a55-d799-4b9e-b50f-8bd65bdaea2d' AND "clubhouse_memberships"."organization_id" = '8da9ac47-1f27-4219-8c32-f1a51fb56a4f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad4a8a55-d799-4b9e-b50f-8bd65bdaea2d"], ["organization_id", "8da9ac47-1f27-4219-8c32-f1a51fb56a4f"], ["admin", "t"], ["created_at", "2015-07-06 21:15:19.092491"], ["updated_at", "2015-07-06 21:15:19.092491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '8da9ac47-1f27-4219-8c32-f1a51fb56a4f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "8da9ac47-1f27-4219-8c32-f1a51fb56a4f"], ["created_at", "2015-07-06 21:15:19.096916"], ["updated_at", "2015-07-06 21:15:19.096916"], ["token", "YubIsw5v4H1dtlGGsQXnBV1k8j6C8b_x_RyTPxmr3jM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ad4a8a55-d799-4b9e-b50f-8bd65bdaea2d' LIMIT 1 [["organization_id", "8da9ac47-1f27-4219-8c32-f1a51fb56a4f"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$1N.vYd1VD7PTG1LeH6H5leveinUMuKS0327LgZGj.rQ7aNhpWFj1y"], ["created_at", "2015-07-06 21:15:19.106472"], ["updated_at", "2015-07-06 21:15:19.106472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.110841"], ["updated_at", "2015-07-06 21:15:19.110841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6db24f4-138c-4d57-8b15-b830aa2b951c' AND "clubhouse_memberships"."organization_id" = 'ea30ff69-f3f2-40b2-a473-08999b52e17b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6db24f4-138c-4d57-8b15-b830aa2b951c"], ["organization_id", "ea30ff69-f3f2-40b2-a473-08999b52e17b"], ["admin", "t"], ["created_at", "2015-07-06 21:15:19.114963"], ["updated_at", "2015-07-06 21:15:19.114963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd6db24f4-138c-4d57-8b15-b830aa2b951c' LIMIT 1 [["organization_id", "ea30ff69-f3f2-40b2-a473-08999b52e17b"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$.7T6p5A6UomJNQ6p/lYwNuoWGfp49ZdHqO0GnPEYpKc4wY9BFOvP2"], ["created_at", "2015-07-06 21:15:19.126653"], ["updated_at", "2015-07-06 21:15:19.126653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.131436"], ["updated_at", "2015-07-06 21:15:19.131436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41ac7788-bc26-4e28-8fbc-653563ad0601' AND "clubhouse_memberships"."organization_id" = 'bd88b381-874c-4e3c-981f-41ed85c8879e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "41ac7788-bc26-4e28-8fbc-653563ad0601"], ["organization_id", "bd88b381-874c-4e3c-981f-41ed85c8879e"], ["created_at", "2015-07-06 21:15:19.134717"], ["updated_at", "2015-07-06 21:15:19.134717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.8ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "41ac7788-bc26-4e28-8fbc-653563ad0601"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bd88b381-874c-4e3c-981f-41ed85c8879e"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41ac7788-bc26-4e28-8fbc-653563ad0601' AND "clubhouse_memberships"."organization_id" = 'bd88b381-874c-4e3c-981f-41ed85c8879e') LIMIT 1 Clubhouse::Membership Load (0.7ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "bd88b381-874c-4e3c-981f-41ed85c8879f"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41ac7788-bc26-4e28-8fbc-653563ad0601' AND "clubhouse_memberships"."organization_id" = 'bd88b381-874c-4e3c-981f-41ed85c8879f') LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.181433"], ["updated_at", "2015-07-06 21:15:19.181433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'fce4cba4-195f-48f3-bfc0-c02f5402edb2') LIMIT 1 SQL (3.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "fce4cba4-195f-48f3-bfc0-c02f5402edb2"], ["created_at", "2015-07-06 21:15:19.186315"], ["updated_at", "2015-07-06 21:15:19.186315"], ["token", "OUzFSGWah7K3G2RFuDkk3YqOfE0NfUYGXDc2IrIOuf0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.215588"], ["updated_at", "2015-07-06 21:15:19.215588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '064c723a-fd7a-48ba-aedb-734680ecb2b2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "064c723a-fd7a-48ba-aedb-734680ecb2b2"], ["created_at", "2015-07-06 21:15:19.220291"], ["updated_at", "2015-07-06 21:15:19.220291"], ["token", "zD8T2nsrwUc_uA3iJTpVovUOtUiRzvPUDD1Q4R5TIyY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "064c723a-fd7a-48ba-aedb-734680ecb2b2"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '064c723a-fd7a-48ba-aedb-734680ecb2b2') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "064c723a-fd7a-48ba-aedb-734680ecb2b3"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '064c723a-fd7a-48ba-aedb-734680ecb2b3') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.511241"], ["updated_at", "2015-07-06 21:15:19.511241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '67120325-11a7-4ad2-9602-9d1075531f33') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "67120325-11a7-4ad2-9602-9d1075531f33"], ["created_at", "2015-07-06 21:15:19.517384"], ["updated_at", "2015-07-06 21:15:19.517384"], ["token", "B9ZtZui3KM5NtkLAEtDf9g8FSiFMFh9jy5i12e3skY4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.9ms) Clubhouse::Mailer#invitation: processed outbound mail in 42.9ms Sent mail to john@example.com (8.2ms) Date: Mon, 06 Jul 2015 14:15:19 -0700 From: from@example.com To: john@example.com Message-ID: <559aefe78b2f0_108273fd7908042047769@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/B9ZtZui3KM5NtkLAEtDf9g8FSiFMFh9jy5i12e3skY4?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.579983"], ["updated_at", "2015-07-06 21:15:19.579983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '90346ca0-f30c-4d28-8411-58cbbaf15611') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "90346ca0-f30c-4d28-8411-58cbbaf15611"], ["created_at", "2015-07-06 21:15:19.585355"], ["updated_at", "2015-07-06 21:15:19.585355"], ["token", "pvvG2T46fxNfZrFyTpY-jX2fOu3vthhMFWlts8XTygw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.8ms) Date: Mon, 06 Jul 2015 14:15:19 -0700 From: from@example.com To: john@example.com Message-ID: <559aefe78ff1c_108273fd79080420477780@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/pvvG2T46fxNfZrFyTpY-jX2fOu3vthhMFWlts8XTygw?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.596913"], ["updated_at", "2015-07-06 21:15:19.596913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a5d3a69e-74f1-4a38-8ec5-d7bde6ab8b3a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a5d3a69e-74f1-4a38-8ec5-d7bde6ab8b3a"], ["created_at", "2015-07-06 21:15:19.604932"], ["updated_at", "2015-07-06 21:15:19.604932"], ["token", "TxVmdIX9zL09jTncjkyGwBPLdXomEewi0SYzN3kV4BE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.4ms) Date: Mon, 06 Jul 2015 14:15:19 -0700 From: from@example.com To: john@example.com Message-ID: <559aefe794b01_108273fd790804204778a3@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/TxVmdIX9zL09jTncjkyGwBPLdXomEewi0SYzN3kV4BE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.615764"], ["updated_at", "2015-07-06 21:15:19.615764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '18fa8932-492b-4e6f-bd85-cf79478f5e2f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "18fa8932-492b-4e6f-bd85-cf79478f5e2f"], ["created_at", "2015-07-06 21:15:19.621125"], ["updated_at", "2015-07-06 21:15:19.621125"], ["token", "zsUqCpii5FRI476Nhg9h_JMhTvIPguEFA80NB4jaPdo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.2ms Sent mail to john@example.com (1.6ms) Date: Mon, 06 Jul 2015 14:15:19 -0700 From: from@example.com To: john@example.com Message-ID: <559aefe7988ce_108273fd79080420477972@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/zsUqCpii5FRI476Nhg9h_JMhTvIPguEFA80NB4jaPdo?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$Sb9PqaAwUX3TLtwtsifiJuofKIQsRc6SpobSVVv8mQnCDhZnDE/2u"], ["created_at", "2015-07-06 21:15:19.632290"], ["updated_at", "2015-07-06 21:15:19.632290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.637707"], ["updated_at", "2015-07-06 21:15:19.637707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1ea9d85b-d885-415e-99ff-040439dffa90' LIMIT 1 [["organization_id", "0bcf98bb-2608-4a9d-bd41-a7a707cdc190"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$xz0JuNIKMZXWoFWok7PYfOJvhfn0pSxsSSgV3skjKJIgDLvkov00K"], ["created_at", "2015-07-06 21:15:19.647680"], ["updated_at", "2015-07-06 21:15:19.647680"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.653412"], ["updated_at", "2015-07-06 21:15:19.653412"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3dd0019b-862f-4c15-85f4-ad8387fae580' LIMIT 1 [["organization_id", "c78ce801-cd3d-4fb8-bbc1-0042facbce1a"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$OvOkP.vXT/X.pDU1mnqof.VjefdAGzTbSiX0CfDb1ojoYh4tPPM6i"], ["created_at", "2015-07-06 21:15:19.663388"], ["updated_at", "2015-07-06 21:15:19.663388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.669652"], ["updated_at", "2015-07-06 21:15:19.669652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$Vw08Jj23r/FS8f9kBESY4.6PE5JdlLJZ5ql7Oe1aOosjF6v4pyxGW"], ["created_at", "2015-07-06 21:15:19.678399"], ["updated_at", "2015-07-06 21:15:19.678399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.683456"], ["updated_at", "2015-07-06 21:15:19.683456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '993748b6-4809-41c5-b784-d681322ef650' LIMIT 1 [["organization_id", "4654a631-cd5f-4ffb-ad75-fdd7f424a040"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$DwjuVYBpKcZDksnIH77Oc.Syvc4bVYJ2d8E1w86PmMJvKQnFAgL0i"], ["created_at", "2015-07-06 21:15:19.697663"], ["updated_at", "2015-07-06 21:15:19.697663"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.704223"], ["updated_at", "2015-07-06 21:15:19.704223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$2N4ulMcJLGrP4nG.rrWSzOcPPvQ8u3VnR9XMwgwLKluNnaTWdjJ32"], ["created_at", "2015-07-06 21:15:19.712797"], ["updated_at", "2015-07-06 21:15:19.712797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.717819"], ["updated_at", "2015-07-06 21:15:19.717819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8fc7a47-fdfa-4949-a18d-f3a8dd7cee9c' AND "clubhouse_memberships"."organization_id" = 'e27d1b86-a4b3-49b0-a334-81ecf36cc4d0') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8fc7a47-fdfa-4949-a18d-f3a8dd7cee9c"], ["organization_id", "e27d1b86-a4b3-49b0-a334-81ecf36cc4d0"], ["created_at", "2015-07-06 21:15:19.721629"], ["updated_at", "2015-07-06 21:15:19.721629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b8fc7a47-fdfa-4949-a18d-f3a8dd7cee9c' LIMIT 1 [["organization_id", "e27d1b86-a4b3-49b0-a334-81ecf36cc4d0"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$OSYVxCFpz2Fya2OzikZ./ufi2h/6afINYoPDBPW/l8e98j2aoDEXC"], ["created_at", "2015-07-06 21:15:19.729522"], ["updated_at", "2015-07-06 21:15:19.729522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.733560"], ["updated_at", "2015-07-06 21:15:19.733560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd568ce95-00b3-433e-86f3-30d37a9cacb8' AND "clubhouse_memberships"."organization_id" = 'f2a37b44-2b31-4cf3-a206-f326a60803f9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d568ce95-00b3-433e-86f3-30d37a9cacb8"], ["organization_id", "f2a37b44-2b31-4cf3-a206-f326a60803f9"], ["created_at", "2015-07-06 21:15:19.737447"], ["updated_at", "2015-07-06 21:15:19.737447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd568ce95-00b3-433e-86f3-30d37a9cacb8' LIMIT 1 [["organization_id", "f2a37b44-2b31-4cf3-a206-f326a60803f9"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$duQ5ugf7AcFJ7lcZ8ffFHe7f3PzmjJ9KWH.TUj.FN0yA5NQEfClrS"], ["created_at", "2015-07-06 21:15:19.746635"], ["updated_at", "2015-07-06 21:15:19.746635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.751169"], ["updated_at", "2015-07-06 21:15:19.751169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '338705b5-9fe0-4176-aa87-4d16b750ee21' AND "clubhouse_memberships"."organization_id" = 'cafff46a-9b8e-46c8-8b37-77b6e8af2431') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "338705b5-9fe0-4176-aa87-4d16b750ee21"], ["organization_id", "cafff46a-9b8e-46c8-8b37-77b6e8af2431"], ["created_at", "2015-07-06 21:15:19.754469"], ["updated_at", "2015-07-06 21:15:19.754469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$GPlp8/VG5n97Swd7mmSro.Lu8KU6rzK/ntRYl5NCfSdBS3Wv2g/yS"], ["created_at", "2015-07-06 21:15:19.760978"], ["updated_at", "2015-07-06 21:15:19.760978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.766784"], ["updated_at", "2015-07-06 21:15:19.766784"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ffbae8de-56d2-460d-8c4e-d82373afb89e' AND "clubhouse_memberships"."organization_id" = 'a9e47553-723a-43b7-8509-eae610d33631') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ffbae8de-56d2-460d-8c4e-d82373afb89e"], ["organization_id", "a9e47553-723a-43b7-8509-eae610d33631"], ["created_at", "2015-07-06 21:15:19.772317"], ["updated_at", "2015-07-06 21:15:19.772317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ffbae8de-56d2-460d-8c4e-d82373afb89e' LIMIT 1 [["organization_id", "a9e47553-723a-43b7-8509-eae610d33631"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$hIvuFCJMFiG85VqAJ4.t5.UfNYp.ADVZ1zmBEfbTdzxe3SN.9RvYy"], ["created_at", "2015-07-06 21:15:19.783030"], ["updated_at", "2015-07-06 21:15:19.783030"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.788874"], ["updated_at", "2015-07-06 21:15:19.788874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f242b49-fbc7-4b76-a0c5-51cd9d317bf3' AND "clubhouse_memberships"."organization_id" = '5db7cd24-102f-4372-bd20-9400f07a30f9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f242b49-fbc7-4b76-a0c5-51cd9d317bf3"], ["organization_id", "5db7cd24-102f-4372-bd20-9400f07a30f9"], ["created_at", "2015-07-06 21:15:19.793470"], ["updated_at", "2015-07-06 21:15:19.793470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$ID654ZDgeScJmDVP1fG41eBnNPDMIHBNA7X83RFrX4pC2541yr6l6"], ["created_at", "2015-07-06 21:15:19.801466"], ["updated_at", "2015-07-06 21:15:19.801466"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.807152"], ["updated_at", "2015-07-06 21:15:19.807152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5787c4cd-f3e0-4545-950d-b4f494b59ca4' AND "clubhouse_memberships"."organization_id" = 'b621905f-3927-4947-a0ba-acd6ae1d7834') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5787c4cd-f3e0-4545-950d-b4f494b59ca4"], ["organization_id", "b621905f-3927-4947-a0ba-acd6ae1d7834"], ["admin", "t"], ["created_at", "2015-07-06 21:15:19.810527"], ["updated_at", "2015-07-06 21:15:19.810527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5787c4cd-f3e0-4545-950d-b4f494b59ca4' LIMIT 1 [["organization_id", "b621905f-3927-4947-a0ba-acd6ae1d7834"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$YPXNANvDZHCjUQT7Ymiz1uP3RZoc82aYd/QXqQccc.xu9M08V6gOO"], ["created_at", "2015-07-06 21:15:19.819053"], ["updated_at", "2015-07-06 21:15:19.819053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.824038"], ["updated_at", "2015-07-06 21:15:19.824038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b56fa2e9-3f45-4598-b88c-28a15f0630fd' AND "clubhouse_memberships"."organization_id" = '9dcc1945-3ef0-4c5c-8635-d7140765ff0d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b56fa2e9-3f45-4598-b88c-28a15f0630fd"], ["organization_id", "9dcc1945-3ef0-4c5c-8635-d7140765ff0d"], ["admin", "t"], ["created_at", "2015-07-06 21:15:19.827074"], ["updated_at", "2015-07-06 21:15:19.827074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b56fa2e9-3f45-4598-b88c-28a15f0630fd' LIMIT 1 [["organization_id", "9dcc1945-3ef0-4c5c-8635-d7140765ff0d"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$xhWLfGqjTFTQG3wkDTDbLuWdZrCJjmKnuKsayT2xJRRVzmzHzZCOO"], ["created_at", "2015-07-06 21:15:19.835679"], ["updated_at", "2015-07-06 21:15:19.835679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.840142"], ["updated_at", "2015-07-06 21:15:19.840142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7208a3b-4a43-4ad1-aa8d-e6f91f8412f7' AND "clubhouse_memberships"."organization_id" = '37b8c5bf-54fb-42bc-b929-97ce9abd2701') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c7208a3b-4a43-4ad1-aa8d-e6f91f8412f7"], ["organization_id", "37b8c5bf-54fb-42bc-b929-97ce9abd2701"], ["admin", "t"], ["created_at", "2015-07-06 21:15:19.843388"], ["updated_at", "2015-07-06 21:15:19.843388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$AV2G6L3BoCfoY9l.MLi/f.CFNO0VYKeUNiIFtEqdmIxw..zzk7MnO"], ["created_at", "2015-07-06 21:15:19.850031"], ["updated_at", "2015-07-06 21:15:19.850031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.855142"], ["updated_at", "2015-07-06 21:15:19.855142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e033c92-50c7-4a26-916f-25b0462a3740' AND "clubhouse_memberships"."organization_id" = '58f1df2c-ad6f-49b0-ae23-7a445f71dc60') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e033c92-50c7-4a26-916f-25b0462a3740"], ["organization_id", "58f1df2c-ad6f-49b0-ae23-7a445f71dc60"], ["admin", "t"], ["created_at", "2015-07-06 21:15:19.859488"], ["updated_at", "2015-07-06 21:15:19.859488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4e033c92-50c7-4a26-916f-25b0462a3740' LIMIT 1 [["organization_id", "58f1df2c-ad6f-49b0-ae23-7a445f71dc60"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$HJEsqblmOHWxTsUwBLWFHuDTrEiTorVWJ6BEwKtsrU4MKKVbIU142"], ["created_at", "2015-07-06 21:15:19.869484"], ["updated_at", "2015-07-06 21:15:19.869484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.874817"], ["updated_at", "2015-07-06 21:15:19.874817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c08f8d36-06ef-4771-87d4-ab0a503882dc' AND "clubhouse_memberships"."organization_id" = '7b51115e-7ccd-4c70-9e5c-f4db91627c4a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c08f8d36-06ef-4771-87d4-ab0a503882dc"], ["organization_id", "7b51115e-7ccd-4c70-9e5c-f4db91627c4a"], ["admin", "t"], ["created_at", "2015-07-06 21:15:19.878538"], ["updated_at", "2015-07-06 21:15:19.878538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$CSi9AW0FFvS2eUHx7IHZjOAStlXGw6TTp8fuzh.yEbYjUvus8qdgK"], ["created_at", "2015-07-06 21:15:19.885697"], ["updated_at", "2015-07-06 21:15:19.885697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$65F8m2VW5UL4tG1zY.m7QOj2MzWNpq6i.B8bMSjEF147vaY5MYBCW"], ["created_at", "2015-07-06 21:15:19.910595"], ["updated_at", "2015-07-06 21:15:19.910595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$q08e7z7AU/xB2yS4OjoTkeunOEbZMvQ42t4dNfxyCwwNBPmw48X7i"], ["created_at", "2015-07-06 21:15:19.917200"], ["updated_at", "2015-07-06 21:15:19.917200"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.927548"], ["updated_at", "2015-07-06 21:15:19.927548"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0488b1b0-3c02-4869-836c-4bda17971257' AND "clubhouse_memberships"."organization_id" = 'dc32bfbd-8341-4cbc-93f6-e4779ef36997') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0488b1b0-3c02-4869-836c-4bda17971257"], ["organization_id", "dc32bfbd-8341-4cbc-93f6-e4779ef36997"], ["created_at", "2015-07-06 21:15:19.938952"], ["updated_at", "2015-07-06 21:15:19.938952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5489ade5-3705-42e6-8172-4e6b57f529df' LIMIT 1 [["organization_id", "dc32bfbd-8341-4cbc-93f6-e4779ef36997"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$59olEjwBI0O0yvVHwnTBfubE99tcMVEaTyrUq.UlnxeWfcVV6qUvm"], ["created_at", "2015-07-06 21:15:19.949760"], ["updated_at", "2015-07-06 21:15:19.949760"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$5suF2lnbkOTWU6BOnR.A4.MZgPD4PnO7HK8iPoaQzdTwistNir84."], ["created_at", "2015-07-06 21:15:19.959946"], ["updated_at", "2015-07-06 21:15:19.959946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.966420"], ["updated_at", "2015-07-06 21:15:19.966420"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '975e2759-a9bc-4d7d-b153-2ae3801eaa2f' AND "clubhouse_memberships"."organization_id" = '7832f688-13f3-4c02-ba55-3bfe5465bef8') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "975e2759-a9bc-4d7d-b153-2ae3801eaa2f"], ["organization_id", "7832f688-13f3-4c02-ba55-3bfe5465bef8"], ["created_at", "2015-07-06 21:15:19.971935"], ["updated_at", "2015-07-06 21:15:19.971935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '5e2bfbd7-f266-41c4-815e-601577822186' LIMIT 1 [["organization_id", "7832f688-13f3-4c02-ba55-3bfe5465bef8"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$.S0wUiGTtqMo92.AdF9kyupwI23UVq6Z5d8XDhNQDanAGi7H1vYgi"], ["created_at", "2015-07-06 21:15:19.985507"], ["updated_at", "2015-07-06 21:15:19.985507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$hMQiXbHRJCV7iC8CqIIpNOXbDNc0qVJtiW01lJRHru6zAia41vi12"], ["created_at", "2015-07-06 21:15:19.992635"], ["updated_at", "2015-07-06 21:15:19.992635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:19.997085"], ["updated_at", "2015-07-06 21:15:19.997085"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c22f8bbf-ebb1-467a-9146-4bd23de380da' AND "clubhouse_memberships"."organization_id" = '7e26ad88-3bd7-4ca7-b275-ee396b965f38') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c22f8bbf-ebb1-467a-9146-4bd23de380da"], ["organization_id", "7e26ad88-3bd7-4ca7-b275-ee396b965f38"], ["created_at", "2015-07-06 21:15:20.002812"], ["updated_at", "2015-07-06 21:15:20.002812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1cf0e2cf-ec22-4eff-abe5-49234de4c30e' LIMIT 1 [["organization_id", "7e26ad88-3bd7-4ca7-b275-ee396b965f38"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 39"], ["email", "user.39@example.com"], ["password_digest", "$2a$04$fkeCZKokzaJ4W0JrrfA7uuo20MqSpU/HgmMUP7Pg244/HeF8kkUte"], ["created_at", "2015-07-06 21:15:20.013336"], ["updated_at", "2015-07-06 21:15:20.013336"]]  (31.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 40"], ["email", "user.40@example.com"], ["password_digest", "$2a$04$oNriIHQMUw4VDsSFYQekx.DxOaKCHcWnwdUg9csuKKE6ZpWMAdRfS"], ["created_at", "2015-07-06 21:15:20.054327"], ["updated_at", "2015-07-06 21:15:20.054327"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.063217"], ["updated_at", "2015-07-06 21:15:20.063217"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8746d29-bbb1-4253-8bfc-df7608e33425' AND "clubhouse_memberships"."organization_id" = '7ca306c3-403e-4357-bc39-03ff345ceefe') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8746d29-bbb1-4253-8bfc-df7608e33425"], ["organization_id", "7ca306c3-403e-4357-bc39-03ff345ceefe"], ["created_at", "2015-07-06 21:15:20.075170"], ["updated_at", "2015-07-06 21:15:20.075170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 41"], ["email", "user.41@example.com"], ["password_digest", "$2a$04$FKXy43vz6jemC0fMpI0pdODNk7a95IRQ/4IMz17aVrkmAhMj7nc/C"], ["created_at", "2015-07-06 21:15:20.090459"], ["updated_at", "2015-07-06 21:15:20.090459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.099140"], ["updated_at", "2015-07-06 21:15:20.099140"]]  (2.6ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '22b8e420-4b46-4eb2-96bb-2f41ebacef5f' LIMIT 1 [["organization_id", "266f8f96-e06a-45bb-b757-23214e29caa5"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 42"], ["email", "user.42@example.com"], ["password_digest", "$2a$04$rU0gfvFjFcxRn73F97o6sO/jsBVgITgsyxdunQByYKhZz8Cl6w72S"], ["created_at", "2015-07-06 21:15:20.123084"], ["updated_at", "2015-07-06 21:15:20.123084"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.130307"], ["updated_at", "2015-07-06 21:15:20.130307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84dacc0c-bcfc-4382-99f3-371d9f8332ab' AND "clubhouse_memberships"."organization_id" = '1df06d00-41ea-410e-8da5-edfc545a468d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "84dacc0c-bcfc-4382-99f3-371d9f8332ab"], ["organization_id", "1df06d00-41ea-410e-8da5-edfc545a468d"], ["created_at", "2015-07-06 21:15:20.135201"], ["updated_at", "2015-07-06 21:15:20.135201"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '84dacc0c-bcfc-4382-99f3-371d9f8332ab' LIMIT 1 [["organization_id", "1df06d00-41ea-410e-8da5-edfc545a468d"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 43"], ["email", "user.43@example.com"], ["password_digest", "$2a$04$.PbIFi.yd40MEX7exOTpu.1mZuoK4iFWz78S1Fmdd6.JmwrF8jRNC"], ["created_at", "2015-07-06 21:15:20.148488"], ["updated_at", "2015-07-06 21:15:20.148488"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.156040"], ["updated_at", "2015-07-06 21:15:20.156040"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb5c36d4-eeb0-4613-ac85-79769422dcef' AND "clubhouse_memberships"."organization_id" = '8d2713cd-26da-464c-9bab-7dc59fd21168') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb5c36d4-eeb0-4613-ac85-79769422dcef"], ["organization_id", "8d2713cd-26da-464c-9bab-7dc59fd21168"], ["created_at", "2015-07-06 21:15:20.163587"], ["updated_at", "2015-07-06 21:15:20.163587"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'eb5c36d4-eeb0-4613-ac85-79769422dcef' LIMIT 1 [["organization_id", "8d2713cd-26da-464c-9bab-7dc59fd21168"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 44"], ["email", "user.44@example.com"], ["password_digest", "$2a$04$sNs9aIWuHO9ydzZYKpbDYOhfYR7ulWiphtxgJs2M94gbtZmtD.IFu"], ["created_at", "2015-07-06 21:15:20.179040"], ["updated_at", "2015-07-06 21:15:20.179040"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.193641"], ["updated_at", "2015-07-06 21:15:20.193641"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98c066af-f1fa-4dd5-b132-7ab381060d44' AND "clubhouse_memberships"."organization_id" = '0498f99b-7596-4b8f-901c-5080712fa743') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98c066af-f1fa-4dd5-b132-7ab381060d44"], ["organization_id", "0498f99b-7596-4b8f-901c-5080712fa743"], ["created_at", "2015-07-06 21:15:20.199224"], ["updated_at", "2015-07-06 21:15:20.199224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '98c066af-f1fa-4dd5-b132-7ab381060d44' LIMIT 1 [["organization_id", "0498f99b-7596-4b8f-901c-5080712fa743"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 45"], ["email", "user.45@example.com"], ["password_digest", "$2a$04$314PNfDVg56g2Lp8YFd9QupMLwE5SbrOCnsoUfTGdk0iVN2MzgN/e"], ["created_at", "2015-07-06 21:15:20.210653"], ["updated_at", "2015-07-06 21:15:20.210653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.217793"], ["updated_at", "2015-07-06 21:15:20.217793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f30c5440-1280-4e1d-89fd-651bfc503646' AND "clubhouse_memberships"."organization_id" = '76d667f8-d9e0-4442-85ba-73fa863a4c9c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f30c5440-1280-4e1d-89fd-651bfc503646"], ["organization_id", "76d667f8-d9e0-4442-85ba-73fa863a4c9c"], ["created_at", "2015-07-06 21:15:20.224802"], ["updated_at", "2015-07-06 21:15:20.224802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 46"], ["email", "user.46@example.com"], ["password_digest", "$2a$04$F8pbthbJ51mJpm7bIG6aWOLl5pSdxLNTPqf1xWudqIGpjqKLub1MW"], ["created_at", "2015-07-06 21:15:20.250465"], ["updated_at", "2015-07-06 21:15:20.250465"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.275482"], ["updated_at", "2015-07-06 21:15:20.275482"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '778caff7-c0af-4983-b29b-5f8ae7af811d' AND "clubhouse_memberships"."organization_id" = 'f1572d6e-920f-416c-966f-09334da94e25') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "778caff7-c0af-4983-b29b-5f8ae7af811d"], ["organization_id", "f1572d6e-920f-416c-966f-09334da94e25"], ["created_at", "2015-07-06 21:15:20.292628"], ["updated_at", "2015-07-06 21:15:20.292628"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '778caff7-c0af-4983-b29b-5f8ae7af811d' LIMIT 1 [["organization_id", "f1572d6e-920f-416c-966f-09334da94e25"]]  (0.1ms) ROLLBACK  (0.5ms) BEGIN  (2.0ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 47"], ["email", "user.47@example.com"], ["password_digest", "$2a$04$FDzRE9mS/fpnOknNvr0/5exEaCjkiUXz.9LjY2qLvR2Srs35fKOBe"], ["created_at", "2015-07-06 21:15:20.331011"], ["updated_at", "2015-07-06 21:15:20.331011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (4.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.341243"], ["updated_at", "2015-07-06 21:15:20.341243"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '289364a3-47a2-4879-b2d4-e3c926746bdd' AND "clubhouse_memberships"."organization_id" = 'aed27bb5-4740-42cb-82b4-34d7bfbbdfdf') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "289364a3-47a2-4879-b2d4-e3c926746bdd"], ["organization_id", "aed27bb5-4740-42cb-82b4-34d7bfbbdfdf"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.353320"], ["updated_at", "2015-07-06 21:15:20.353320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 48"], ["email", "user.48@example.com"], ["password_digest", "$2a$04$766H.1r0dk2TFa04gxyZDejSicgsZqNksncwyVdx092iGt7tmL9jq"], ["created_at", "2015-07-06 21:15:20.368313"], ["updated_at", "2015-07-06 21:15:20.368313"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9118de4-61d9-438d-a5bd-ef9ac3b30a9e' AND "clubhouse_memberships"."organization_id" = 'aed27bb5-4740-42cb-82b4-34d7bfbbdfdf') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e9118de4-61d9-438d-a5bd-ef9ac3b30a9e"], ["organization_id", "aed27bb5-4740-42cb-82b4-34d7bfbbdfdf"], ["created_at", "2015-07-06 21:15:20.377712"], ["updated_at", "2015-07-06 21:15:20.377712"]]  (1.6ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '289364a3-47a2-4879-b2d4-e3c926746bdd' LIMIT 1 [["organization_id", "aed27bb5-4740-42cb-82b4-34d7bfbbdfdf"]]  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 49"], ["email", "user.49@example.com"], ["password_digest", "$2a$04$LAYTQttkr2FTo7nwadcEcu8Bb8oWVLQZJWI/JKtkuNBivCmK9FFJ6"], ["created_at", "2015-07-06 21:15:20.406006"], ["updated_at", "2015-07-06 21:15:20.406006"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.424865"], ["updated_at", "2015-07-06 21:15:20.424865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0dcf19b5-abe9-4436-a5b2-6eb9ae6799b5' AND "clubhouse_memberships"."organization_id" = '776aad66-6ff8-463e-a22a-74a73eea0cae') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0dcf19b5-abe9-4436-a5b2-6eb9ae6799b5"], ["organization_id", "776aad66-6ff8-463e-a22a-74a73eea0cae"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.441496"], ["updated_at", "2015-07-06 21:15:20.441496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 50"], ["email", "user.50@example.com"], ["password_digest", "$2a$04$1G6et1bnes1ZhIHKvs56weQKYj/vDV9K/NjEzcDdIjU7KVi9d6s2u"], ["created_at", "2015-07-06 21:15:20.449913"], ["updated_at", "2015-07-06 21:15:20.449913"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b7b1b6ee-06fa-4fb3-ad05-9e9fee2cbfe8' AND "clubhouse_memberships"."organization_id" = '776aad66-6ff8-463e-a22a-74a73eea0cae') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b7b1b6ee-06fa-4fb3-ad05-9e9fee2cbfe8"], ["organization_id", "776aad66-6ff8-463e-a22a-74a73eea0cae"], ["created_at", "2015-07-06 21:15:20.462875"], ["updated_at", "2015-07-06 21:15:20.462875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '0dcf19b5-abe9-4436-a5b2-6eb9ae6799b5' LIMIT 1 [["organization_id", "776aad66-6ff8-463e-a22a-74a73eea0cae"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 51"], ["email", "user.51@example.com"], ["password_digest", "$2a$04$25lLJjfvTnR4jcztxXa4rOv0vUJ/xEci3pKqVXU1ibeduxZ8HCyRC"], ["created_at", "2015-07-06 21:15:20.475487"], ["updated_at", "2015-07-06 21:15:20.475487"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.484107"], ["updated_at", "2015-07-06 21:15:20.484107"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e41ea8db-2926-429f-94f5-d3811beaf62d' AND "clubhouse_memberships"."organization_id" = 'f36a760f-f5c7-4307-a0cc-b142b16a4802') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e41ea8db-2926-429f-94f5-d3811beaf62d"], ["organization_id", "f36a760f-f5c7-4307-a0cc-b142b16a4802"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.490184"], ["updated_at", "2015-07-06 21:15:20.490184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 52"], ["email", "user.52@example.com"], ["password_digest", "$2a$04$cJZIpNDwpkLdVpc1LgW6Detck9nSnrPiZvxGw8286/zpqt83STthW"], ["created_at", "2015-07-06 21:15:20.499662"], ["updated_at", "2015-07-06 21:15:20.499662"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '69dc77c2-476f-439a-99e9-48f9a13842c4' AND "clubhouse_memberships"."organization_id" = 'f36a760f-f5c7-4307-a0cc-b142b16a4802') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "69dc77c2-476f-439a-99e9-48f9a13842c4"], ["organization_id", "f36a760f-f5c7-4307-a0cc-b142b16a4802"], ["created_at", "2015-07-06 21:15:20.510657"], ["updated_at", "2015-07-06 21:15:20.510657"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e41ea8db-2926-429f-94f5-d3811beaf62d' LIMIT 1 [["organization_id", "f36a760f-f5c7-4307-a0cc-b142b16a4802"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 53"], ["email", "user.53@example.com"], ["password_digest", "$2a$04$beFDPEBjTQuGHSmIowfwG.Y/je2yK4pENBjf02laPHCh1PDOPYB.C"], ["created_at", "2015-07-06 21:15:20.527264"], ["updated_at", "2015-07-06 21:15:20.527264"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.540331"], ["updated_at", "2015-07-06 21:15:20.540331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ae2237c-b14a-4faa-be99-5b8d9b0f0e44' AND "clubhouse_memberships"."organization_id" = '4b4d4bce-d61c-4c02-8765-8f7bba5cd751') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ae2237c-b14a-4faa-be99-5b8d9b0f0e44"], ["organization_id", "4b4d4bce-d61c-4c02-8765-8f7bba5cd751"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.545293"], ["updated_at", "2015-07-06 21:15:20.545293"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 54"], ["email", "user.54@example.com"], ["password_digest", "$2a$04$xgxNuCO5yWxmRgOQ2PQioukC68RIyoQf/.aDzscXIwmBgXFlMDR2u"], ["created_at", "2015-07-06 21:15:20.558033"], ["updated_at", "2015-07-06 21:15:20.558033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c88da67-dfea-4aa6-b5de-1be9107091a9' AND "clubhouse_memberships"."organization_id" = '4b4d4bce-d61c-4c02-8765-8f7bba5cd751') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5c88da67-dfea-4aa6-b5de-1be9107091a9"], ["organization_id", "4b4d4bce-d61c-4c02-8765-8f7bba5cd751"], ["created_at", "2015-07-06 21:15:20.562925"], ["updated_at", "2015-07-06 21:15:20.562925"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 55"], ["email", "user.55@example.com"], ["password_digest", "$2a$04$HdiXh.FoECrr.8lFQyVtNu3lua3ck3aqgiBC5YsGfN0en7l7R/U4O"], ["created_at", "2015-07-06 21:15:20.580841"], ["updated_at", "2015-07-06 21:15:20.580841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.589126"], ["updated_at", "2015-07-06 21:15:20.589126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95223a77-aada-4168-8c0b-f3da4cf91418' AND "clubhouse_memberships"."organization_id" = 'e8481194-b0a4-47ad-8e2c-76b7cd069939') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "95223a77-aada-4168-8c0b-f3da4cf91418"], ["organization_id", "e8481194-b0a4-47ad-8e2c-76b7cd069939"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.596345"], ["updated_at", "2015-07-06 21:15:20.596345"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '95223a77-aada-4168-8c0b-f3da4cf91418' LIMIT 1 [["organization_id", "e8481194-b0a4-47ad-8e2c-76b7cd069939"]]  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 56"], ["email", "user.56@example.com"], ["password_digest", "$2a$04$dB6BAksKM4rbcEHyzjuyJeVVWV7Ngm0muYP4SWXgtZOtsHcorv9.i"], ["created_at", "2015-07-06 21:15:20.623845"], ["updated_at", "2015-07-06 21:15:20.623845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.627632"], ["updated_at", "2015-07-06 21:15:20.627632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c47f844f-c74f-440f-874b-325c6e884743' AND "clubhouse_memberships"."organization_id" = '82f98ed4-340d-4d17-bd23-464e47c877b2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c47f844f-c74f-440f-874b-325c6e884743"], ["organization_id", "82f98ed4-340d-4d17-bd23-464e47c877b2"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.630977"], ["updated_at", "2015-07-06 21:15:20.630977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'c47f844f-c74f-440f-874b-325c6e884743' LIMIT 1 [["organization_id", "82f98ed4-340d-4d17-bd23-464e47c877b2"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 57"], ["email", "user.57@example.com"], ["password_digest", "$2a$04$7ZaZ7.oCX4KTIxJpwiNfSe/9rwRN3H6/DYQNaNq0C7gHW0N0aljqu"], ["created_at", "2015-07-06 21:15:20.645384"], ["updated_at", "2015-07-06 21:15:20.645384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.652238"], ["updated_at", "2015-07-06 21:15:20.652238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5db793a-3530-4c17-96d9-45d3c303b581' AND "clubhouse_memberships"."organization_id" = '0dcc451e-bb42-4720-b6a9-7592ba2b9a5c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5db793a-3530-4c17-96d9-45d3c303b581"], ["organization_id", "0dcc451e-bb42-4720-b6a9-7592ba2b9a5c"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.659921"], ["updated_at", "2015-07-06 21:15:20.659921"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f5db793a-3530-4c17-96d9-45d3c303b581' LIMIT 1 [["organization_id", "0dcc451e-bb42-4720-b6a9-7592ba2b9a5c"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 58"], ["email", "user.58@example.com"], ["password_digest", "$2a$04$.7MOV.g9dWmCwDSd1FgzKeEdijxbrq28o7/NhkdMjOQLO/YSTXbr2"], ["created_at", "2015-07-06 21:15:20.670463"], ["updated_at", "2015-07-06 21:15:20.670463"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.676284"], ["updated_at", "2015-07-06 21:15:20.676284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2248a93-418a-4aa7-a397-2692ae95cfe0' AND "clubhouse_memberships"."organization_id" = '10d26acd-6c7c-428d-9e07-5ff7217a4b0b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c2248a93-418a-4aa7-a397-2692ae95cfe0"], ["organization_id", "10d26acd-6c7c-428d-9e07-5ff7217a4b0b"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.679885"], ["updated_at", "2015-07-06 21:15:20.679885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 59"], ["email", "user.59@example.com"], ["password_digest", "$2a$04$NVndmIkMgBwocGc5D.h60emSE51.3Tj6GwYdnhn9r452Ge2cOPyNu"], ["created_at", "2015-07-06 21:15:20.697667"], ["updated_at", "2015-07-06 21:15:20.697667"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.703238"], ["updated_at", "2015-07-06 21:15:20.703238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cb98a2ad-c7da-41d0-87ff-ff138dc86714' AND "clubhouse_memberships"."organization_id" = 'aaca2769-2733-4fa1-be32-8c3aded05efd') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cb98a2ad-c7da-41d0-87ff-ff138dc86714"], ["organization_id", "aaca2769-2733-4fa1-be32-8c3aded05efd"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.707482"], ["updated_at", "2015-07-06 21:15:20.707482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cb98a2ad-c7da-41d0-87ff-ff138dc86714' LIMIT 1 [["organization_id", "aaca2769-2733-4fa1-be32-8c3aded05efd"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 60"], ["email", "user.60@example.com"], ["password_digest", "$2a$04$JYq2YHmrhOBuaDmcqVHizuLLQcX4qVrbgMnJwAHcREIpQ94dEyp8m"], ["created_at", "2015-07-06 21:15:20.716607"], ["updated_at", "2015-07-06 21:15:20.716607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:20.736467"], ["user_id", "aab587a2-7aa5-4a3d-8561-ecd98d88ee0d"], ["created_at", "2015-07-06 21:15:20.738561"], ["updated_at", "2015-07-06 21:15:20.738561"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.747384"], ["updated_at", "2015-07-06 21:15:20.747384"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aab587a2-7aa5-4a3d-8561-ecd98d88ee0d' AND "clubhouse_memberships"."organization_id" = '6b778b21-d031-4b47-9b51-315dc68ea8a9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aab587a2-7aa5-4a3d-8561-ecd98d88ee0d"], ["organization_id", "6b778b21-d031-4b47-9b51-315dc68ea8a9"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.753293"], ["updated_at", "2015-07-06 21:15:20.753293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:15:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 61"], ["email", "user.61@example.com"], ["password_digest", "$2a$04$MRq7iBwOUEyCJW8UO0eu1udGzY/WSSmIDGjn7Oou9mZKOhoYgymwO"], ["created_at", "2015-07-06 21:15:20.809871"], ["updated_at", "2015-07-06 21:15:20.809871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:20.813240"], ["user_id", "5cd5d28a-7d02-41c4-ab9a-8142d80d3616"], ["created_at", "2015-07-06 21:15:20.813845"], ["updated_at", "2015-07-06 21:15:20.813845"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.818294"], ["updated_at", "2015-07-06 21:15:20.818294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cd5d28a-7d02-41c4-ab9a-8142d80d3616' AND "clubhouse_memberships"."organization_id" = '41dd4458-8a35-4fab-9afb-6d06794a3ef8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cd5d28a-7d02-41c4-ab9a-8142d80d3616"], ["organization_id", "41dd4458-8a35-4fab-9afb-6d06794a3ef8"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.822932"], ["updated_at", "2015-07-06 21:15:20.822932"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:15:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:20.829982') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d91ebecb-42c0-4140-89cf-9b5ec5300905"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:20.831911"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:20.832836"], ["id", "d91ebecb-42c0-4140-89cf-9b5ec5300905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cd5d28a-7d02-41c4-ab9a-8142d80d3616"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 62"], ["email", "user.62@example.com"], ["password_digest", "$2a$04$clGDCQUlbpRXB5mkZLdzQ.DXGVrsdyk0vlaTMWP3Y57hKL.ef079a"], ["created_at", "2015-07-06 21:15:20.855180"], ["updated_at", "2015-07-06 21:15:20.855180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:20.857215"], ["user_id", "44b1e601-9102-45a5-bb90-936320142646"], ["created_at", "2015-07-06 21:15:20.857861"], ["updated_at", "2015-07-06 21:15:20.857861"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.862423"], ["updated_at", "2015-07-06 21:15:20.862423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44b1e601-9102-45a5-bb90-936320142646' AND "clubhouse_memberships"."organization_id" = '054265e4-6685-4a8c-b0f9-855d7dde382a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44b1e601-9102-45a5-bb90-936320142646"], ["organization_id", "054265e4-6685-4a8c-b0f9-855d7dde382a"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.867299"], ["updated_at", "2015-07-06 21:15:20.867299"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:15:20 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:20.871753') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9a51d5f5-8c34-48d8-81f4-e8276dd7ca46"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:20.873734"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:20.874669"], ["id", "9a51d5f5-8c34-48d8-81f4-e8276dd7ca46"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "44b1e601-9102-45a5-bb90-936320142646"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.883759"], ["updated_at", "2015-07-06 21:15:20.883759"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44b1e601-9102-45a5-bb90-936320142646' AND "clubhouse_memberships"."organization_id" = '926a2a5a-2122-40e0-b927-7a4a713e1018') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44b1e601-9102-45a5-bb90-936320142646"], ["admin", "t"], ["organization_id", "926a2a5a-2122-40e0-b927-7a4a713e1018"], ["created_at", "2015-07-06 21:15:20.889557"], ["updated_at", "2015-07-06 21:15:20.889557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 29ms (Views: 9.1ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 63"], ["email", "user.63@example.com"], ["password_digest", "$2a$04$UFm74r3EJy2TW4g7FODPCepkqGr1nNsUlT1PH040hmyk.o1ztYxeW"], ["created_at", "2015-07-06 21:15:20.913031"], ["updated_at", "2015-07-06 21:15:20.913031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:20.915054"], ["user_id", "da6ac4ac-baf3-4470-8ffa-6384b8ec180c"], ["created_at", "2015-07-06 21:15:20.915765"], ["updated_at", "2015-07-06 21:15:20.915765"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.920634"], ["updated_at", "2015-07-06 21:15:20.920634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'da6ac4ac-baf3-4470-8ffa-6384b8ec180c' AND "clubhouse_memberships"."organization_id" = '07154944-5551-41b6-9e8b-cedd6b3f50cf') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "da6ac4ac-baf3-4470-8ffa-6384b8ec180c"], ["organization_id", "07154944-5551-41b6-9e8b-cedd6b3f50cf"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.924253"], ["updated_at", "2015-07-06 21:15:20.924253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/07154944-5551-41b6-9e8b-cedd6b3f50cf" for 127.0.0.1 at 2015-07-06 14:15:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"07154944-5551-41b6-9e8b-cedd6b3f50cf", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:20.928445') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0d88a728-25bb-4af3-a37b-d94134e57057"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:20.929913"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:20.930770"], ["id", "0d88a728-25bb-4af3-a37b-d94134e57057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "07154944-5551-41b6-9e8b-cedd6b3f50cf"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "da6ac4ac-baf3-4470-8ffa-6384b8ec180c"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'da6ac4ac-baf3-4470-8ffa-6384b8ec180c' LIMIT 1 [["organization_id", "07154944-5551-41b6-9e8b-cedd6b3f50cf"]] Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 64"], ["email", "user.64@example.com"], ["password_digest", "$2a$04$fgcrroiVZst1OgexF6ah.uSJY7RPWvHaepa4NODQU4CyNq6vTRPoC"], ["created_at", "2015-07-06 21:15:20.945880"], ["updated_at", "2015-07-06 21:15:20.945880"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:20.948108"], ["user_id", "6022b489-4e29-4a0e-ace0-b1ff8d8ee174"], ["created_at", "2015-07-06 21:15:20.948786"], ["updated_at", "2015-07-06 21:15:20.948786"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.953547"], ["updated_at", "2015-07-06 21:15:20.953547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6022b489-4e29-4a0e-ace0-b1ff8d8ee174' AND "clubhouse_memberships"."organization_id" = '1652e635-d91d-4391-91f9-3ec387f8bcbb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6022b489-4e29-4a0e-ace0-b1ff8d8ee174"], ["organization_id", "1652e635-d91d-4391-91f9-3ec387f8bcbb"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.956937"], ["updated_at", "2015-07-06 21:15:20.956937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:15:20 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 65"], ["email", "user.65@example.com"], ["password_digest", "$2a$04$3HGbiuhhOw3vodei3bVNk./32UA/mKaABRttrN0bKsecbWA04Zrwu"], ["created_at", "2015-07-06 21:15:20.966422"], ["updated_at", "2015-07-06 21:15:20.966422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:20.968489"], ["user_id", "ae85da0c-9bed-407b-b3c8-5a14e42d8e13"], ["created_at", "2015-07-06 21:15:20.969611"], ["updated_at", "2015-07-06 21:15:20.969611"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.974758"], ["updated_at", "2015-07-06 21:15:20.974758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ae85da0c-9bed-407b-b3c8-5a14e42d8e13' AND "clubhouse_memberships"."organization_id" = '67fabdf1-4952-4c36-bbf7-b8f252effb12') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ae85da0c-9bed-407b-b3c8-5a14e42d8e13"], ["organization_id", "67fabdf1-4952-4c36-bbf7-b8f252effb12"], ["admin", "t"], ["created_at", "2015-07-06 21:15:20.978794"], ["updated_at", "2015-07-06 21:15:20.978794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:15:20 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 66"], ["email", "user.66@example.com"], ["password_digest", "$2a$04$lDgAzeD57/8tFfjUzdmjYOoZS1c/n9ffhuygjMHzB5GWmKjG216Pi"], ["created_at", "2015-07-06 21:15:20.988049"], ["updated_at", "2015-07-06 21:15:20.988049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:20.989845"], ["user_id", "450b924d-16e9-4201-a54d-8036026cbecb"], ["created_at", "2015-07-06 21:15:20.990480"], ["updated_at", "2015-07-06 21:15:20.990480"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:20.995279"], ["updated_at", "2015-07-06 21:15:20.995279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '450b924d-16e9-4201-a54d-8036026cbecb' AND "clubhouse_memberships"."organization_id" = 'b5309973-5dc7-4e37-b98b-ea07311817e0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "450b924d-16e9-4201-a54d-8036026cbecb"], ["organization_id", "b5309973-5dc7-4e37-b98b-ea07311817e0"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.000584"], ["updated_at", "2015-07-06 21:15:21.000584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:15:21 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 67"], ["email", "user.67@example.com"], ["password_digest", "$2a$04$sizAFPkHkwK1yUlXJJhnuOugusnIUq1ZSq5JaS79ht.5EviBidYsy"], ["created_at", "2015-07-06 21:15:21.010553"], ["updated_at", "2015-07-06 21:15:21.010553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.012655"], ["user_id", "bebdfe05-d2af-449f-b40c-9231f87f0b20"], ["created_at", "2015-07-06 21:15:21.013337"], ["updated_at", "2015-07-06 21:15:21.013337"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.017443"], ["updated_at", "2015-07-06 21:15:21.017443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bebdfe05-d2af-449f-b40c-9231f87f0b20' AND "clubhouse_memberships"."organization_id" = '559b488c-bbf4-475c-a8b0-812eb266dc34') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bebdfe05-d2af-449f-b40c-9231f87f0b20"], ["organization_id", "559b488c-bbf4-475c-a8b0-812eb266dc34"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.021104"], ["updated_at", "2015-07-06 21:15:21.021104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-60" for 127.0.0.1 at 2015-07-06 14:15:21 -0700  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 68"], ["email", "user.68@example.com"], ["password_digest", "$2a$04$0LPjFtFFv56gCdQTnO3u2.RLPsD.1h2Vb/NpADytld/A/Ww34gjzm"], ["created_at", "2015-07-06 21:15:21.029525"], ["updated_at", "2015-07-06 21:15:21.029525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.031447"], ["user_id", "ec5e9526-6f31-4ae2-808a-ca5172169641"], ["created_at", "2015-07-06 21:15:21.032113"], ["updated_at", "2015-07-06 21:15:21.032113"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.036806"], ["updated_at", "2015-07-06 21:15:21.036806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ec5e9526-6f31-4ae2-808a-ca5172169641' AND "clubhouse_memberships"."organization_id" = '71effb72-b5d1-4521-ac38-198f740c88cf') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ec5e9526-6f31-4ae2-808a-ca5172169641"], ["organization_id", "71effb72-b5d1-4521-ac38-198f740c88cf"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.042335"], ["updated_at", "2015-07-06 21:15:21.042335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 69"], ["email", "user.69@example.com"], ["password_digest", "$2a$04$XFYrU7V8BozT/IM6mb/CT.T/q8LmuY/QTHKgWNOgzqRl.npkvYbbm"], ["created_at", "2015-07-06 21:15:21.048902"], ["updated_at", "2015-07-06 21:15:21.048902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.053758"], ["updated_at", "2015-07-06 21:15:21.053758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e3f4752-8972-4f9e-9a3f-4e08178ed96b' AND "clubhouse_memberships"."organization_id" = '3fd72edb-9d47-404e-ab61-ab38bb7b3eff') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1e3f4752-8972-4f9e-9a3f-4e08178ed96b"], ["organization_id", "3fd72edb-9d47-404e-ab61-ab38bb7b3eff"], ["created_at", "2015-07-06 21:15:21.056924"], ["updated_at", "2015-07-06 21:15:21.056924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.060097') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c3ebd083-2237-4b33-999f-c8a741373126"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.061500"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.062665"], ["id", "c3ebd083-2237-4b33-999f-c8a741373126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ec5e9526-6f31-4ae2-808a-ca5172169641"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "ec5e9526-6f31-4ae2-808a-ca5172169641"]] Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 70"], ["email", "user.70@example.com"], ["password_digest", "$2a$04$bocuSyWBKzbOBO/ooVYq5.DtiKSG7925TjhW89P6D59vBbFEWAW1u"], ["created_at", "2015-07-06 21:15:21.078251"], ["updated_at", "2015-07-06 21:15:21.078251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.080101"], ["user_id", "20c07bca-0af9-4158-8838-e801ead0630b"], ["created_at", "2015-07-06 21:15:21.080729"], ["updated_at", "2015-07-06 21:15:21.080729"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.084907"], ["updated_at", "2015-07-06 21:15:21.084907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20c07bca-0af9-4158-8838-e801ead0630b' AND "clubhouse_memberships"."organization_id" = 'b362f4d8-375b-4568-9d9d-d2ac1a4c9530') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20c07bca-0af9-4158-8838-e801ead0630b"], ["organization_id", "b362f4d8-375b-4568-9d9d-d2ac1a4c9530"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.088645"], ["updated_at", "2015-07-06 21:15:21.088645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 71"], ["email", "user.71@example.com"], ["password_digest", "$2a$04$ni4xMzrX0LyHFcXw6PQBRemB7il6Gh3RyYa4ps.Pmqh3O/IDQBoVK"], ["created_at", "2015-07-06 21:15:21.093867"], ["updated_at", "2015-07-06 21:15:21.093867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.098044"], ["updated_at", "2015-07-06 21:15:21.098044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78031527-5b93-4e28-9d1f-7989530d134d' AND "clubhouse_memberships"."organization_id" = '02b08beb-5cec-4a8d-8dcf-5d9a3274063f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78031527-5b93-4e28-9d1f-7989530d134d"], ["organization_id", "02b08beb-5cec-4a8d-8dcf-5d9a3274063f"], ["created_at", "2015-07-06 21:15:21.101592"], ["updated_at", "2015-07-06 21:15:21.101592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 72"], ["email", "user.72@example.com"], ["password_digest", "$2a$04$DRz8Lj/fpqXEJJVmpnGn6.GhZ/fFMFda6vjGXgUiTuIcR2DhaekZC"], ["created_at", "2015-07-06 21:15:21.112762"], ["updated_at", "2015-07-06 21:15:21.112762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.114544"], ["user_id", "2ca8edf1-85f7-4f0c-b90b-f0e109a7ad34"], ["created_at", "2015-07-06 21:15:21.115167"], ["updated_at", "2015-07-06 21:15:21.115167"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.119445"], ["updated_at", "2015-07-06 21:15:21.119445"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2ca8edf1-85f7-4f0c-b90b-f0e109a7ad34' AND "clubhouse_memberships"."organization_id" = '03453c5a-1b23-45ae-8acd-34456c971c15') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2ca8edf1-85f7-4f0c-b90b-f0e109a7ad34"], ["organization_id", "03453c5a-1b23-45ae-8acd-34456c971c15"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.123606"], ["updated_at", "2015-07-06 21:15:21.123606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 73"], ["email", "user.73@example.com"], ["password_digest", "$2a$04$85X0K5qoscxQeO/GUE9aj.D9OhpEApZjqCq0rv6zu9xGQgjM9dQWm"], ["created_at", "2015-07-06 21:15:21.133512"], ["updated_at", "2015-07-06 21:15:21.133512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.135535"], ["user_id", "1265e14e-711b-4e55-9119-1efc73fe33e0"], ["created_at", "2015-07-06 21:15:21.136351"], ["updated_at", "2015-07-06 21:15:21.136351"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.140545"], ["updated_at", "2015-07-06 21:15:21.140545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1265e14e-711b-4e55-9119-1efc73fe33e0' AND "clubhouse_memberships"."organization_id" = 'a82ee2ff-4d8e-4ab9-b710-ebc6e25778d5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1265e14e-711b-4e55-9119-1efc73fe33e0"], ["organization_id", "a82ee2ff-4d8e-4ab9-b710-ebc6e25778d5"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.143671"], ["updated_at", "2015-07-06 21:15:21.143671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a82ee2ff-4d8e-4ab9-b710-ebc6e25778d5" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"a82ee2ff-4d8e-4ab9-b710-ebc6e25778d5", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.146556') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8000e35c-14f5-4bc8-b61c-26aca93e2479"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.148101"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.148928"], ["id", "8000e35c-14f5-4bc8-b61c-26aca93e2479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a82ee2ff-4d8e-4ab9-b710-ebc6e25778d5"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1265e14e-711b-4e55-9119-1efc73fe33e0"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '1265e14e-711b-4e55-9119-1efc73fe33e0' LIMIT 1 [["organization_id", "a82ee2ff-4d8e-4ab9-b710-ebc6e25778d5"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a82ee2ff-4d8e-4ab9-b710-ebc6e25778d5') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 74"], ["email", "user.74@example.com"], ["password_digest", "$2a$04$Hb56E/famJXGqC0Ka6Ui0OSnFQdtthhDtcM436doQzzU7ydHq8Oyq"], ["created_at", "2015-07-06 21:15:21.166529"], ["updated_at", "2015-07-06 21:15:21.166529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.168793"], ["user_id", "712b26a3-676e-4bdc-84c4-154d49435b47"], ["created_at", "2015-07-06 21:15:21.169471"], ["updated_at", "2015-07-06 21:15:21.169471"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.173759"], ["updated_at", "2015-07-06 21:15:21.173759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '712b26a3-676e-4bdc-84c4-154d49435b47' AND "clubhouse_memberships"."organization_id" = '1a73ec65-98a8-4fc9-adba-0d6dee923e9b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "712b26a3-676e-4bdc-84c4-154d49435b47"], ["organization_id", "1a73ec65-98a8-4fc9-adba-0d6dee923e9b"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.176796"], ["updated_at", "2015-07-06 21:15:21.176796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1a73ec65-98a8-4fc9-adba-0d6dee923e9b" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"1a73ec65-98a8-4fc9-adba-0d6dee923e9b", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.179464') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f2f8e191-cca2-4cec-a876-ff7cee6055e9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.181076"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.181899"], ["id", "f2f8e191-cca2-4cec-a876-ff7cee6055e9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1a73ec65-98a8-4fc9-adba-0d6dee923e9b"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "712b26a3-676e-4bdc-84c4-154d49435b47"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '712b26a3-676e-4bdc-84c4-154d49435b47' LIMIT 1 [["organization_id", "1a73ec65-98a8-4fc9-adba-0d6dee923e9b"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '1a73ec65-98a8-4fc9-adba-0d6dee923e9b') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:15:21.191029"], ["id", "1a73ec65-98a8-4fc9-adba-0d6dee923e9b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 75"], ["email", "user.75@example.com"], ["password_digest", "$2a$04$eqGgQhIZHELGuBoeyF3/8.XLXJCsSg7DRugNKa5NO5UM.IIbm0BsK"], ["created_at", "2015-07-06 21:15:21.203360"], ["updated_at", "2015-07-06 21:15:21.203360"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.209088"], ["user_id", "7315a21e-1d8d-4c60-b658-503b44ddad13"], ["created_at", "2015-07-06 21:15:21.210835"], ["updated_at", "2015-07-06 21:15:21.210835"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.219702"], ["updated_at", "2015-07-06 21:15:21.219702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7315a21e-1d8d-4c60-b658-503b44ddad13' AND "clubhouse_memberships"."organization_id" = '963377ca-cae0-4102-ac89-0ed97f7395cd') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7315a21e-1d8d-4c60-b658-503b44ddad13"], ["organization_id", "963377ca-cae0-4102-ac89-0ed97f7395cd"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.224324"], ["updated_at", "2015-07-06 21:15:21.224324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 76"], ["email", "user.76@example.com"], ["password_digest", "$2a$04$9yuTEynY9vuKWnTh5frkgOiOjfGH2FcsA4ErL/d3lEbKnsGxXxeue"], ["created_at", "2015-07-06 21:15:21.242756"], ["updated_at", "2015-07-06 21:15:21.242756"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.245519"], ["user_id", "83b44c20-2f26-4314-882a-afb8ff0856f3"], ["created_at", "2015-07-06 21:15:21.246321"], ["updated_at", "2015-07-06 21:15:21.246321"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.253334"], ["updated_at", "2015-07-06 21:15:21.253334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83b44c20-2f26-4314-882a-afb8ff0856f3' AND "clubhouse_memberships"."organization_id" = 'fb14afcf-5974-4759-8e4b-b3bfc68ca787') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "83b44c20-2f26-4314-882a-afb8ff0856f3"], ["organization_id", "fb14afcf-5974-4759-8e4b-b3bfc68ca787"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.258502"], ["updated_at", "2015-07-06 21:15:21.258502"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-69" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-69", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.265934') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6e61925a-262b-4910-be92-e231fb44f46a"]]  (1.6ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.268838"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.272014"], ["id", "6e61925a-262b-4910-be92-e231fb44f46a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-69"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "83b44c20-2f26-4314-882a-afb8ff0856f3"]] Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '83b44c20-2f26-4314-882a-afb8ff0856f3' LIMIT 1 [["organization_id", "fb14afcf-5974-4759-8e4b-b3bfc68ca787"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'fb14afcf-5974-4759-8e4b-b3bfc68ca787') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms (ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 77"], ["email", "user.77@example.com"], ["password_digest", "$2a$04$I2Wd77wvHjoFVraW6/Cr6.8ZU4Xh59INDw5mDfhkEGTPVJeyTyBhi"], ["created_at", "2015-07-06 21:15:21.297524"], ["updated_at", "2015-07-06 21:15:21.297524"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.300298"], ["user_id", "51edfeed-970c-478a-bbe4-bf893144dd8d"], ["created_at", "2015-07-06 21:15:21.301347"], ["updated_at", "2015-07-06 21:15:21.301347"], ["client", "App"]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.312947"], ["updated_at", "2015-07-06 21:15:21.312947"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '51edfeed-970c-478a-bbe4-bf893144dd8d' AND "clubhouse_memberships"."organization_id" = 'fdd4cce5-22eb-4efd-b94a-c0cc656ab350') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "51edfeed-970c-478a-bbe4-bf893144dd8d"], ["organization_id", "fdd4cce5-22eb-4efd-b94a-c0cc656ab350"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.321519"], ["updated_at", "2015-07-06 21:15:21.321519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-70" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-70", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.326052') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6ebc32e6-e79b-4771-a9fb-7dddc3a37dd9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.327512"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.328282"], ["id", "6ebc32e6-e79b-4771-a9fb-7dddc3a37dd9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-70"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "51edfeed-970c-478a-bbe4-bf893144dd8d"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '51edfeed-970c-478a-bbe4-bf893144dd8d' LIMIT 1 [["organization_id", "fdd4cce5-22eb-4efd-b94a-c0cc656ab350"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'fdd4cce5-22eb-4efd-b94a-c0cc656ab350') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:15:21.339563"], ["id", "fdd4cce5-22eb-4efd-b94a-c0cc656ab350"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.0ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 78"], ["email", "user.78@example.com"], ["password_digest", "$2a$04$gLMxJzVYFRaNPHwSVoiN9.B/4JsTtWMO9xcTdr4eYHtrFU1AyALPe"], ["created_at", "2015-07-06 21:15:21.355323"], ["updated_at", "2015-07-06 21:15:21.355323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.361852"], ["user_id", "0cafb456-fa63-4fd8-8ae4-6006ce3444a9"], ["created_at", "2015-07-06 21:15:21.363236"], ["updated_at", "2015-07-06 21:15:21.363236"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.372844"], ["updated_at", "2015-07-06 21:15:21.372844"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0cafb456-fa63-4fd8-8ae4-6006ce3444a9' AND "clubhouse_memberships"."organization_id" = '64a579df-a17b-4049-8852-62eee7d851f4') LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0cafb456-fa63-4fd8-8ae4-6006ce3444a9"], ["organization_id", "64a579df-a17b-4049-8852-62eee7d851f4"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.383302"], ["updated_at", "2015-07-06 21:15:21.383302"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-71" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-71", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.393876') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "51efebba-93b8-4a02-b82e-7bb60776cb5f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.395224"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.395955"], ["id", "51efebba-93b8-4a02-b82e-7bb60776cb5f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-71"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0cafb456-fa63-4fd8-8ae4-6006ce3444a9"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0cafb456-fa63-4fd8-8ae4-6006ce3444a9' LIMIT 1 [["organization_id", "64a579df-a17b-4049-8852-62eee7d851f4"]] Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 79"], ["email", "user.79@example.com"], ["password_digest", "$2a$04$5Uet98u3i8VRllLptGQZH.tHUz0XqrGTQAZRQL2iaICvBFnA9aDQi"], ["created_at", "2015-07-06 21:15:21.411921"], ["updated_at", "2015-07-06 21:15:21.411921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.413766"], ["user_id", "7f22da28-1075-4450-84f5-b0bcadc84546"], ["created_at", "2015-07-06 21:15:21.414387"], ["updated_at", "2015-07-06 21:15:21.414387"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.419382"], ["updated_at", "2015-07-06 21:15:21.419382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7f22da28-1075-4450-84f5-b0bcadc84546' AND "clubhouse_memberships"."organization_id" = 'c396a4ab-04d9-47d5-9900-86a69129890c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7f22da28-1075-4450-84f5-b0bcadc84546"], ["organization_id", "c396a4ab-04d9-47d5-9900-86a69129890c"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.423366"], ["updated_at", "2015-07-06 21:15:21.423366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 80"], ["email", "user.80@example.com"], ["password_digest", "$2a$04$T3TbD3hCqhXhrjs.Wje8NuUNLoSw90zcuKkwnlbY8xiD1U2pYs4T6"], ["created_at", "2015-07-06 21:15:21.432917"], ["updated_at", "2015-07-06 21:15:21.432917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.434768"], ["user_id", "e00dc44b-bd19-46dd-b574-6e4da587405a"], ["created_at", "2015-07-06 21:15:21.435498"], ["updated_at", "2015-07-06 21:15:21.435498"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.441417"], ["updated_at", "2015-07-06 21:15:21.441417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e00dc44b-bd19-46dd-b574-6e4da587405a' AND "clubhouse_memberships"."organization_id" = '48845065-06ca-45d5-aa89-21eb9b3e0947') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e00dc44b-bd19-46dd-b574-6e4da587405a"], ["organization_id", "48845065-06ca-45d5-aa89-21eb9b3e0947"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.445830"], ["updated_at", "2015-07-06 21:15:21.445830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/48845065-06ca-45d5-aa89-21eb9b3e0947" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"48845065-06ca-45d5-aa89-21eb9b3e0947", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.448990') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "295789bc-6dcd-4570-a15b-fb4556355e2d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.450548"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.451617"], ["id", "295789bc-6dcd-4570-a15b-fb4556355e2d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "48845065-06ca-45d5-aa89-21eb9b3e0947"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e00dc44b-bd19-46dd-b574-6e4da587405a"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e00dc44b-bd19-46dd-b574-6e4da587405a' LIMIT 1 [["organization_id", "48845065-06ca-45d5-aa89-21eb9b3e0947"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "48845065-06ca-45d5-aa89-21eb9b3e0947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 81"], ["email", "user.81@example.com"], ["password_digest", "$2a$04$8yGhiBMcAXjzDEDWuOGzc.7jD0zv4apAbGNJoDLhcZ4dm05297LQu"], ["created_at", "2015-07-06 21:15:21.465984"], ["updated_at", "2015-07-06 21:15:21.465984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.467738"], ["user_id", "2052ded0-a66d-46b7-9ac7-346a4c9b9675"], ["created_at", "2015-07-06 21:15:21.468551"], ["updated_at", "2015-07-06 21:15:21.468551"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.473202"], ["updated_at", "2015-07-06 21:15:21.473202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2052ded0-a66d-46b7-9ac7-346a4c9b9675' AND "clubhouse_memberships"."organization_id" = '1070590e-8bde-46c5-bd8a-0486594632a0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2052ded0-a66d-46b7-9ac7-346a4c9b9675"], ["organization_id", "1070590e-8bde-46c5-bd8a-0486594632a0"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.476903"], ["updated_at", "2015-07-06 21:15:21.476903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 82"], ["email", "user.82@example.com"], ["password_digest", "$2a$04$F/9b2wSK0YnO3fc8bqLWV.FXEkYuwPhwVh2EBc.gCm/guVWY9QNe."], ["created_at", "2015-07-06 21:15:21.487122"], ["updated_at", "2015-07-06 21:15:21.487122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.488760"], ["user_id", "76ffebf1-882f-41d5-a3f3-5b35a19bc2e3"], ["created_at", "2015-07-06 21:15:21.489378"], ["updated_at", "2015-07-06 21:15:21.489378"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.493231"], ["updated_at", "2015-07-06 21:15:21.493231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76ffebf1-882f-41d5-a3f3-5b35a19bc2e3' AND "clubhouse_memberships"."organization_id" = '6a658252-fafe-44cd-b593-f158c9048844') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76ffebf1-882f-41d5-a3f3-5b35a19bc2e3"], ["organization_id", "6a658252-fafe-44cd-b593-f158c9048844"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.496812"], ["updated_at", "2015-07-06 21:15:21.496812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-75" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-75", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.500661') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ff965df1-69e1-46e7-996b-e6e8f9324128"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.502457"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.503432"], ["id", "ff965df1-69e1-46e7-996b-e6e8f9324128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-75"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "76ffebf1-882f-41d5-a3f3-5b35a19bc2e3"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '76ffebf1-882f-41d5-a3f3-5b35a19bc2e3' LIMIT 1 [["organization_id", "6a658252-fafe-44cd-b593-f158c9048844"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "6a658252-fafe-44cd-b593-f158c9048844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 83"], ["email", "user.83@example.com"], ["password_digest", "$2a$04$UioNGTOL21Yv9vU9seL9budaQmfjmzaH.wUfGmKWR9NeMAdyiRFgC"], ["created_at", "2015-07-06 21:15:21.515498"], ["updated_at", "2015-07-06 21:15:21.515498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.518537"], ["user_id", "db0bd87b-c515-4ba8-b489-ba1633b5e989"], ["created_at", "2015-07-06 21:15:21.519808"], ["updated_at", "2015-07-06 21:15:21.519808"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.525332"], ["updated_at", "2015-07-06 21:15:21.525332"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'db0bd87b-c515-4ba8-b489-ba1633b5e989' AND "clubhouse_memberships"."organization_id" = '6b79b379-5645-441b-99f7-a7f955df0495') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "db0bd87b-c515-4ba8-b489-ba1633b5e989"], ["organization_id", "6b79b379-5645-441b-99f7-a7f955df0495"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.530498"], ["updated_at", "2015-07-06 21:15:21.530498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN Clubhouse::Organization Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.552669"], ["updated_at", "2015-07-06 21:15:21.552669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.594497"], ["updated_at", "2015-07-06 21:15:21.594497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.613351"], ["updated_at", "2015-07-06 21:15:21.613351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.622081"], ["updated_at", "2015-07-06 21:15:21.622081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.630540"], ["updated_at", "2015-07-06 21:15:21.630540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7b8b9797-48a6-4431-b5a0-99f63903702c"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 84"], ["email", "user.84@example.com"], ["password_digest", "$2a$04$P4.9BTimVsbSKhrRXTSnGuz1z0nEu9BCjo5kRV/DBFDpSCeHqAjCS"], ["created_at", "2015-07-06 21:15:21.639687"], ["updated_at", "2015-07-06 21:15:21.639687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.641413"], ["user_id", "2d3a2ccb-10cb-4e7f-91a3-acef50489ee0"], ["created_at", "2015-07-06 21:15:21.642056"], ["updated_at", "2015-07-06 21:15:21.642056"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.646477"], ["updated_at", "2015-07-06 21:15:21.646477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d3a2ccb-10cb-4e7f-91a3-acef50489ee0' AND "clubhouse_memberships"."organization_id" = 'd3a2ae42-d94f-4909-93c9-1f592cd977a1') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d3a2ccb-10cb-4e7f-91a3-acef50489ee0"], ["organization_id", "d3a2ae42-d94f-4909-93c9-1f592cd977a1"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.649503"], ["updated_at", "2015-07-06 21:15:21.649503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'd3a2ae42-d94f-4909-93c9-1f592cd977a1') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "d3a2ae42-d94f-4909-93c9-1f592cd977a1"], ["created_at", "2015-07-06 21:15:21.654946"], ["updated_at", "2015-07-06 21:15:21.654946"], ["token", "trMnyDZ90nSXSDJEDF6wo5MdTAx2MkS83J0RzMBTFOg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/0abe1241-e5f0-4b6a-93e6-47ea64d4eb63" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"0abe1241-e5f0-4b6a-93e6-47ea64d4eb63", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.661582') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bf976334-e20b-499d-8065-a3040aca2b21"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.663923"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.664984"], ["id", "bf976334-e20b-499d-8065-a3040aca2b21"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0abe1241-e5f0-4b6a-93e6-47ea64d4eb63"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d3a2ccb-10cb-4e7f-91a3-acef50489ee0"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d3a2ae42-d94f-4909-93c9-1f592cd977a1"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '2d3a2ccb-10cb-4e7f-91a3-acef50489ee0' LIMIT 1 [["organization_id", "d3a2ae42-d94f-4909-93c9-1f592cd977a1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "0abe1241-e5f0-4b6a-93e6-47ea64d4eb63"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 85"], ["email", "user.85@example.com"], ["password_digest", "$2a$04$uqU4262FW64CNqcR1zKr3.Pr.j.9Y/fIh5aWCSEa5JsHMEYiFvCNW"], ["created_at", "2015-07-06 21:15:21.680005"], ["updated_at", "2015-07-06 21:15:21.680005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.681648"], ["user_id", "8ae8c8a7-f3ab-4cf4-a5e6-8b3e4441f94e"], ["created_at", "2015-07-06 21:15:21.682275"], ["updated_at", "2015-07-06 21:15:21.682275"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.686546"], ["updated_at", "2015-07-06 21:15:21.686546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ae8c8a7-f3ab-4cf4-a5e6-8b3e4441f94e' AND "clubhouse_memberships"."organization_id" = 'e7f6da5e-2b28-4214-92d0-ef77a04d0fce') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ae8c8a7-f3ab-4cf4-a5e6-8b3e4441f94e"], ["organization_id", "e7f6da5e-2b28-4214-92d0-ef77a04d0fce"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.689696"], ["updated_at", "2015-07-06 21:15:21.689696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'e7f6da5e-2b28-4214-92d0-ef77a04d0fce') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "e7f6da5e-2b28-4214-92d0-ef77a04d0fce"], ["created_at", "2015-07-06 21:15:21.694773"], ["updated_at", "2015-07-06 21:15:21.694773"], ["token", "A65Kstb6YsaKFxtrJ-0oy6aoBMlI5h_LmH-9pVO_U0I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 86"], ["email", "user.86@example.com"], ["password_digest", "$2a$04$jmc6wS3eLitgW/5/QxA2C.4JhDUqV/tCh6p5ziVr9dmdlr8RRosee"], ["created_at", "2015-07-06 21:15:21.706937"], ["updated_at", "2015-07-06 21:15:21.706937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.709118"], ["user_id", "13231066-23bf-4cd8-9438-b75a93f2af4d"], ["created_at", "2015-07-06 21:15:21.709959"], ["updated_at", "2015-07-06 21:15:21.709959"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.715826"], ["updated_at", "2015-07-06 21:15:21.715826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13231066-23bf-4cd8-9438-b75a93f2af4d' AND "clubhouse_memberships"."organization_id" = '7cbe5cbe-8170-4c9a-934c-724ac9db1592') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "13231066-23bf-4cd8-9438-b75a93f2af4d"], ["organization_id", "7cbe5cbe-8170-4c9a-934c-724ac9db1592"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.719277"], ["updated_at", "2015-07-06 21:15:21.719277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '7cbe5cbe-8170-4c9a-934c-724ac9db1592') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "7cbe5cbe-8170-4c9a-934c-724ac9db1592"], ["created_at", "2015-07-06 21:15:21.723973"], ["updated_at", "2015-07-06 21:15:21.723973"], ["token", "CYNw_hEGm3ZmM9egDYC4IbqIFyVXyRc13vwGUSQFe5o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 87"], ["email", "user.87@example.com"], ["password_digest", "$2a$04$kycWdLG2AoJfhKJW03mHcOs9o4EuDD7SpzsaTY2QAN5eAcBeZKVCi"], ["created_at", "2015-07-06 21:15:21.734169"], ["updated_at", "2015-07-06 21:15:21.734169"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.737220"], ["user_id", "b44ef678-ca30-40d9-bd40-aab406991e6a"], ["created_at", "2015-07-06 21:15:21.737873"], ["updated_at", "2015-07-06 21:15:21.737873"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.742026"], ["updated_at", "2015-07-06 21:15:21.742026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b44ef678-ca30-40d9-bd40-aab406991e6a' AND "clubhouse_memberships"."organization_id" = '34599c54-575c-4789-a9bd-bb63f74c4942') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b44ef678-ca30-40d9-bd40-aab406991e6a"], ["organization_id", "34599c54-575c-4789-a9bd-bb63f74c4942"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.745014"], ["updated_at", "2015-07-06 21:15:21.745014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '34599c54-575c-4789-a9bd-bb63f74c4942') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "34599c54-575c-4789-a9bd-bb63f74c4942"], ["created_at", "2015-07-06 21:15:21.749983"], ["updated_at", "2015-07-06 21:15:21.749983"], ["token", "Q_MA2OSG9kx4zweczLgEJMr8gk36MqJSGGXuq4X3H0E"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/34599c54-575c-4789-a9bd-bb63f74c4942/invitations" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"34599c54-575c-4789-a9bd-bb63f74c4942", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.755678') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4bd37594-8b91-403b-bd63-bfd43fbff6e1"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.758386"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.759882"], ["id", "4bd37594-8b91-403b-bd63-bfd43fbff6e1"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "34599c54-575c-4789-a9bd-bb63f74c4942"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b44ef678-ca30-40d9-bd40-aab406991e6a"]] Clubhouse::Membership Exists (2.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'b44ef678-ca30-40d9-bd40-aab406991e6a' LIMIT 1 [["organization_id", "34599c54-575c-4789-a9bd-bb63f74c4942"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '34599c54-575c-4789-a9bd-bb63f74c4942') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 27ms (ActiveRecord: 4.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 88"], ["email", "user.88@example.com"], ["password_digest", "$2a$04$canJdnBhiBpQ8pq0UeyNje7DjW5SiUmzASAIQw5kE3YSALnKrH.L6"], ["created_at", "2015-07-06 21:15:21.792173"], ["updated_at", "2015-07-06 21:15:21.792173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.793956"], ["user_id", "21cc7c6d-1cf3-41d5-a358-601367723ebd"], ["created_at", "2015-07-06 21:15:21.794540"], ["updated_at", "2015-07-06 21:15:21.794540"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.798470"], ["updated_at", "2015-07-06 21:15:21.798470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21cc7c6d-1cf3-41d5-a358-601367723ebd' AND "clubhouse_memberships"."organization_id" = 'a834f41f-2ed1-48c0-bb5c-61db4aef4856') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21cc7c6d-1cf3-41d5-a358-601367723ebd"], ["organization_id", "a834f41f-2ed1-48c0-bb5c-61db4aef4856"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.802546"], ["updated_at", "2015-07-06 21:15:21.802546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'a834f41f-2ed1-48c0-bb5c-61db4aef4856') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "a834f41f-2ed1-48c0-bb5c-61db4aef4856"], ["created_at", "2015-07-06 21:15:21.807834"], ["updated_at", "2015-07-06 21:15:21.807834"], ["token", "o3r_UvVaej_ZeCm77fTcR28vVZNyIgz5UI3nNC5_bgQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a834f41f-2ed1-48c0-bb5c-61db4aef4856/invitations" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"a834f41f-2ed1-48c0-bb5c-61db4aef4856", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.810960') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e5aca391-75a4-4b9c-b5bb-788d2c59b44a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.812228"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.812938"], ["id", "e5aca391-75a4-4b9c-b5bb-788d2c59b44a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a834f41f-2ed1-48c0-bb5c-61db4aef4856"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "21cc7c6d-1cf3-41d5-a358-601367723ebd"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '21cc7c6d-1cf3-41d5-a358-601367723ebd' LIMIT 1 [["organization_id", "a834f41f-2ed1-48c0-bb5c-61db4aef4856"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a834f41f-2ed1-48c0-bb5c-61db4aef4856') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "a834f41f-2ed1-48c0-bb5c-61db4aef4856"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.822404"], ["updated_at", "2015-07-06 21:15:21.822404"], ["token", "d5VrJljRFV4gkqp5IsYhlfsl4qxijVthsp3kSZlurog"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: bed8ab4d-a796-48a8-89c0-9c6f45c5b427) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/edab771a-d0bd-416d-8de4-319f16ad9d6a [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "edab771a-d0bd-416d-8de4-319f16ad9d6a"]] [ActiveJob] [ActionMailer::DeliveryJob] [bed8ab4d-a796-48a8-89c0-9c6f45c5b427] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/edab771a-d0bd-416d-8de4-319f16ad9d6a [ActiveJob] [ActionMailer::DeliveryJob] [bed8ab4d-a796-48a8-89c0-9c6f45c5b427] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a834f41f-2ed1-48c0-bb5c-61db4aef4856"]] [ActiveJob] [ActionMailer::DeliveryJob] [bed8ab4d-a796-48a8-89c0-9c6f45c5b427] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [bed8ab4d-a796-48a8-89c0-9c6f45c5b427] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [bed8ab4d-a796-48a8-89c0-9c6f45c5b427] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [bed8ab4d-a796-48a8-89c0-9c6f45c5b427] Date: Mon, 06 Jul 2015 14:15:21 -0700 From: from@example.com To: email@example.com Message-ID: <559aefe9cf731_108273fd7908042047803f@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/d5VrJljRFV4gkqp5IsYhlfsl4qxijVthsp3kSZlurog?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [bed8ab4d-a796-48a8-89c0-9c6f45c5b427] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.03ms Completed 201 Created in 42ms (Views: 1.5ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 89"], ["email", "user.89@example.com"], ["password_digest", "$2a$04$wE8n7H3OJEUM5.X5IKTxQuwE0AjUk9VchwjWpeTWpSF.dtqk8gGi."], ["created_at", "2015-07-06 21:15:21.860600"], ["updated_at", "2015-07-06 21:15:21.860600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.862443"], ["user_id", "ab2563cd-4688-47b6-8467-354f1be5e100"], ["created_at", "2015-07-06 21:15:21.863079"], ["updated_at", "2015-07-06 21:15:21.863079"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.867185"], ["updated_at", "2015-07-06 21:15:21.867185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ab2563cd-4688-47b6-8467-354f1be5e100' AND "clubhouse_memberships"."organization_id" = 'e1db6a26-06af-4da3-8894-1e749baa4f24') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ab2563cd-4688-47b6-8467-354f1be5e100"], ["organization_id", "e1db6a26-06af-4da3-8894-1e749baa4f24"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.871921"], ["updated_at", "2015-07-06 21:15:21.871921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'e1db6a26-06af-4da3-8894-1e749baa4f24') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "e1db6a26-06af-4da3-8894-1e749baa4f24"], ["created_at", "2015-07-06 21:15:21.879289"], ["updated_at", "2015-07-06 21:15:21.879289"], ["token", "P5hO9OmYBLLn2v59XIYZ4bCjIFmuqVlgyz04nTztLpc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e1db6a26-06af-4da3-8894-1e749baa4f24/invitations" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"e1db6a26-06af-4da3-8894-1e749baa4f24", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.882737') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7c695be2-095c-4c13-8dd2-50651a215f75"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.884094"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.884904"], ["id", "7c695be2-095c-4c13-8dd2-50651a215f75"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e1db6a26-06af-4da3-8894-1e749baa4f24"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ab2563cd-4688-47b6-8467-354f1be5e100"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ab2563cd-4688-47b6-8467-354f1be5e100' LIMIT 1 [["organization_id", "e1db6a26-06af-4da3-8894-1e749baa4f24"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'e1db6a26-06af-4da3-8894-1e749baa4f24') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "e1db6a26-06af-4da3-8894-1e749baa4f24"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.894406"], ["updated_at", "2015-07-06 21:15:21.894406"], ["token", "ZZM-y9JPdvJ34GHDZHI0Lf2U9TjALNXOz8WMFxIQ4f4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 21c0a3ec-fa91-4ba1-98de-ab57855f337f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a43710d4-2f2d-49bf-84e0-b7485e4e44a8 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a43710d4-2f2d-49bf-84e0-b7485e4e44a8"]] [ActiveJob] [ActionMailer::DeliveryJob] [21c0a3ec-fa91-4ba1-98de-ab57855f337f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a43710d4-2f2d-49bf-84e0-b7485e4e44a8 [ActiveJob] [ActionMailer::DeliveryJob] [21c0a3ec-fa91-4ba1-98de-ab57855f337f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e1db6a26-06af-4da3-8894-1e749baa4f24"]] [ActiveJob] [ActionMailer::DeliveryJob] [21c0a3ec-fa91-4ba1-98de-ab57855f337f] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [21c0a3ec-fa91-4ba1-98de-ab57855f337f] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [21c0a3ec-fa91-4ba1-98de-ab57855f337f] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [21c0a3ec-fa91-4ba1-98de-ab57855f337f] Date: Mon, 06 Jul 2015 14:15:21 -0700 From: from@example.com To: email@example.com Message-ID: <559aefe9dc2ab_108273fd7908042047819d@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/ZZM-y9JPdvJ34GHDZHI0Lf2U9TjALNXOz8WMFxIQ4f4?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [21c0a3ec-fa91-4ba1-98de-ab57855f337f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.14ms Completed 201 Created in 21ms (Views: 0.7ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 90"], ["email", "user.90@example.com"], ["password_digest", "$2a$04$5nGbkAypJ44APN9LBpoljOi96Xwc4uB8acbyMummkRfGf6BH.Ubbu"], ["created_at", "2015-07-06 21:15:21.910568"], ["updated_at", "2015-07-06 21:15:21.910568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.912220"], ["user_id", "e8a7fa80-9548-4f23-a539-bf1000b13abc"], ["created_at", "2015-07-06 21:15:21.912841"], ["updated_at", "2015-07-06 21:15:21.912841"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.917265"], ["updated_at", "2015-07-06 21:15:21.917265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8a7fa80-9548-4f23-a539-bf1000b13abc' AND "clubhouse_memberships"."organization_id" = '65c117a9-cb4b-4e27-9a8c-7a96e9825bf7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e8a7fa80-9548-4f23-a539-bf1000b13abc"], ["organization_id", "65c117a9-cb4b-4e27-9a8c-7a96e9825bf7"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.920345"], ["updated_at", "2015-07-06 21:15:21.920345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '65c117a9-cb4b-4e27-9a8c-7a96e9825bf7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "65c117a9-cb4b-4e27-9a8c-7a96e9825bf7"], ["created_at", "2015-07-06 21:15:21.924382"], ["updated_at", "2015-07-06 21:15:21.924382"], ["token", "cEayWbe6TdMFDPkVG-s78Am0UKm0PFZ7WClDQPIIywU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 91"], ["email", "user.91@example.com"], ["password_digest", "$2a$04$qykFmoY0OB5OnoRf0Vq10OukOJdE0Stow6/Phf1ruDneQ4wjSIOoS"], ["created_at", "2015-07-06 21:15:21.929493"], ["updated_at", "2015-07-06 21:15:21.929493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.933460"], ["updated_at", "2015-07-06 21:15:21.933460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '03fca647-042c-422f-a036-8796900b10e7' AND "clubhouse_memberships"."organization_id" = '723bfe72-40a9-42dd-93b8-194c1acbf122') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "03fca647-042c-422f-a036-8796900b10e7"], ["organization_id", "723bfe72-40a9-42dd-93b8-194c1acbf122"], ["created_at", "2015-07-06 21:15:21.938034"], ["updated_at", "2015-07-06 21:15:21.938034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:15:21 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:21.941985') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8ee3a329-139c-4bdf-9fdd-9de938329d14"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:21.944206"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:21.945834"], ["id", "8ee3a329-139c-4bdf-9fdd-9de938329d14"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e8a7fa80-9548-4f23-a539-bf1000b13abc"]] Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'e8a7fa80-9548-4f23-a539-bf1000b13abc' LIMIT 1 [["organization_id", "65c117a9-cb4b-4e27-9a8c-7a96e9825bf7"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "65c117a9-cb4b-4e27-9a8c-7a96e9825bf7"]] Completed 200 OK in 18ms (Views: 4.4ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 92"], ["email", "user.92@example.com"], ["password_digest", "$2a$04$GDrgiYZ0hqkVUSrBrgpc9.H9irzlWpmzXK0sW84AxGlQx46ga.GNe"], ["created_at", "2015-07-06 21:15:21.972650"], ["updated_at", "2015-07-06 21:15:21.972650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:21.975774"], ["user_id", "56bc6398-12a8-4300-9f1d-5f42f028869f"], ["created_at", "2015-07-06 21:15:21.978041"], ["updated_at", "2015-07-06 21:15:21.978041"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:21.984585"], ["updated_at", "2015-07-06 21:15:21.984585"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56bc6398-12a8-4300-9f1d-5f42f028869f' AND "clubhouse_memberships"."organization_id" = '3b039502-2915-47f5-98e2-3d88e11e283a') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56bc6398-12a8-4300-9f1d-5f42f028869f"], ["organization_id", "3b039502-2915-47f5-98e2-3d88e11e283a"], ["admin", "t"], ["created_at", "2015-07-06 21:15:21.992961"], ["updated_at", "2015-07-06 21:15:21.992961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '3b039502-2915-47f5-98e2-3d88e11e283a') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "3b039502-2915-47f5-98e2-3d88e11e283a"], ["created_at", "2015-07-06 21:15:22.001571"], ["updated_at", "2015-07-06 21:15:22.001571"], ["token", "BLnoCZMliTWP5YcM4zVHSWyEKY0PLdOhgltraz3ogTI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 93"], ["email", "user.93@example.com"], ["password_digest", "$2a$04$1ac1kv/ZDq02mSpi3h2/Gec48LG6NBxLOBICrpLjhp5DwnPNHXWty"], ["created_at", "2015-07-06 21:15:22.012894"], ["updated_at", "2015-07-06 21:15:22.012894"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.036175"], ["updated_at", "2015-07-06 21:15:22.036175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a101b99b-9985-4f14-a9b3-639b8c0da1ae' AND "clubhouse_memberships"."organization_id" = '2087a361-397f-42c3-8737-2a2b0fafbccc') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a101b99b-9985-4f14-a9b3-639b8c0da1ae"], ["organization_id", "2087a361-397f-42c3-8737-2a2b0fafbccc"], ["created_at", "2015-07-06 21:15:22.041626"], ["updated_at", "2015-07-06 21:15:22.041626"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 94"], ["email", "user.94@example.com"], ["password_digest", "$2a$04$phkShJzOxg2am7a5ddTJV.4kG1HQLRo76c2Zza4v6LKcaiooON0WG"], ["created_at", "2015-07-06 21:15:22.059974"], ["updated_at", "2015-07-06 21:15:22.059974"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.064169"], ["user_id", "ef38c037-584e-454d-acc3-b47367642d69"], ["created_at", "2015-07-06 21:15:22.068115"], ["updated_at", "2015-07-06 21:15:22.068115"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.075976"], ["updated_at", "2015-07-06 21:15:22.075976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef38c037-584e-454d-acc3-b47367642d69' AND "clubhouse_memberships"."organization_id" = '8e898869-d7c6-4939-8713-226449a25bf7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ef38c037-584e-454d-acc3-b47367642d69"], ["organization_id", "8e898869-d7c6-4939-8713-226449a25bf7"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.080868"], ["updated_at", "2015-07-06 21:15:22.080868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '8e898869-d7c6-4939-8713-226449a25bf7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "8e898869-d7c6-4939-8713-226449a25bf7"], ["created_at", "2015-07-06 21:15:22.087037"], ["updated_at", "2015-07-06 21:15:22.087037"], ["token", "PiicSrL41KBJjtaerZ6qJtzPwmFA3dMXN-W9SQzOwVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/e8de274d-d687-4934-868d-1b1ea23897a0" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"e8de274d-d687-4934-868d-1b1ea23897a0", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.091913') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dc92caa5-d992-4c3e-9b38-554b1cda17bb"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.093735"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.094708"], ["id", "dc92caa5-d992-4c3e-9b38-554b1cda17bb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "e8de274d-d687-4934-868d-1b1ea23897a0"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef38c037-584e-454d-acc3-b47367642d69"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8e898869-d7c6-4939-8713-226449a25bf7"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ef38c037-584e-454d-acc3-b47367642d69' LIMIT 1 [["organization_id", "8e898869-d7c6-4939-8713-226449a25bf7"]] Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 95"], ["email", "user.95@example.com"], ["password_digest", "$2a$04$RLGAxJmHtSBnqXZGFfUiKOfzGbf3vPVZP996GyJoQm4PyiPcOmj8S"], ["created_at", "2015-07-06 21:15:22.111574"], ["updated_at", "2015-07-06 21:15:22.111574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.114239"], ["user_id", "c9f3f15b-563d-4d5c-a824-44c5652179f5"], ["created_at", "2015-07-06 21:15:22.115174"], ["updated_at", "2015-07-06 21:15:22.115174"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.124096"], ["updated_at", "2015-07-06 21:15:22.124096"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9f3f15b-563d-4d5c-a824-44c5652179f5' AND "clubhouse_memberships"."organization_id" = '985c14de-46f1-4670-bb77-282059c98c5b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c9f3f15b-563d-4d5c-a824-44c5652179f5"], ["organization_id", "985c14de-46f1-4670-bb77-282059c98c5b"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.131916"], ["updated_at", "2015-07-06 21:15:22.131916"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '985c14de-46f1-4670-bb77-282059c98c5b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "985c14de-46f1-4670-bb77-282059c98c5b"], ["created_at", "2015-07-06 21:15:22.143283"], ["updated_at", "2015-07-06 21:15:22.143283"], ["token", "VVI8eBupXoVXaVVZfWE5EzjCvKU4duE38U9lJzjyFwM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 96"], ["email", "user.96@example.com"], ["password_digest", "$2a$04$dYOr204IWxfKx.yMlWeCce6nIr8e3uf/Rj1nrQKcD.3fZdftKGSpa"], ["created_at", "2015-07-06 21:15:22.159863"], ["updated_at", "2015-07-06 21:15:22.159863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.167474"], ["user_id", "4fb1f1c4-3a22-496f-93b4-38cc87367c1e"], ["created_at", "2015-07-06 21:15:22.172065"], ["updated_at", "2015-07-06 21:15:22.172065"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.181523"], ["updated_at", "2015-07-06 21:15:22.181523"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fb1f1c4-3a22-496f-93b4-38cc87367c1e' AND "clubhouse_memberships"."organization_id" = '40c86942-0654-4458-8abe-d98a3801f4fe') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fb1f1c4-3a22-496f-93b4-38cc87367c1e"], ["organization_id", "40c86942-0654-4458-8abe-d98a3801f4fe"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.186578"], ["updated_at", "2015-07-06 21:15:22.186578"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '40c86942-0654-4458-8abe-d98a3801f4fe') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "40c86942-0654-4458-8abe-d98a3801f4fe"], ["created_at", "2015-07-06 21:15:22.196504"], ["updated_at", "2015-07-06 21:15:22.196504"], ["token", "YLur4G62MEIK4zXox3s_GHBw5WUNqJjAoWDb0Yh6RmI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/de3271c0-964c-4b26-9853-e118231a3088" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"de3271c0-964c-4b26-9853-e118231a3088", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.204539') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "219f1d84-b173-44e2-8e71-0d24ff177c7c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.209440"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.210268"], ["id", "219f1d84-b173-44e2-8e71-0d24ff177c7c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "de3271c0-964c-4b26-9853-e118231a3088"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4fb1f1c4-3a22-496f-93b4-38cc87367c1e"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "40c86942-0654-4458-8abe-d98a3801f4fe"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '4fb1f1c4-3a22-496f-93b4-38cc87367c1e' LIMIT 1 [["organization_id", "40c86942-0654-4458-8abe-d98a3801f4fe"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."id" != 'de3271c0-964c-4b26-9853-e118231a3088' AND "clubhouse_invitations"."organization_id" = '40c86942-0654-4458-8abe-d98a3801f4fe') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:15:22.219200"], ["id", "de3271c0-964c-4b26-9853-e118231a3088"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 2.0ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 97"], ["email", "user.97@example.com"], ["password_digest", "$2a$04$X608/4Nxk8byUkeNW6pfken59t8tS0OAyBIgmPlTfHZLD3qOjpsmS"], ["created_at", "2015-07-06 21:15:22.240852"], ["updated_at", "2015-07-06 21:15:22.240852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.242807"], ["user_id", "77c8e4fe-a68a-4cfc-a13b-4cde5cba97fc"], ["created_at", "2015-07-06 21:15:22.243479"], ["updated_at", "2015-07-06 21:15:22.243479"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.248014"], ["updated_at", "2015-07-06 21:15:22.248014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '77c8e4fe-a68a-4cfc-a13b-4cde5cba97fc' AND "clubhouse_memberships"."organization_id" = '83beebb0-cccd-476d-91cd-d1893705e54f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "77c8e4fe-a68a-4cfc-a13b-4cde5cba97fc"], ["organization_id", "83beebb0-cccd-476d-91cd-d1893705e54f"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.253823"], ["updated_at", "2015-07-06 21:15:22.253823"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '83beebb0-cccd-476d-91cd-d1893705e54f') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "83beebb0-cccd-476d-91cd-d1893705e54f"], ["created_at", "2015-07-06 21:15:22.266682"], ["updated_at", "2015-07-06 21:15:22.266682"], ["token", "NMxSMNpki3RFDeutxXHgMExupPNZttpec0xhQR5RHCM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 98"], ["email", "user.98@example.com"], ["password_digest", "$2a$04$KR24LIXX8KhWyduCXi1ljuae07jVpZAgARpOftUzU5lHVN2QOh9qS"], ["created_at", "2015-07-06 21:15:22.290945"], ["updated_at", "2015-07-06 21:15:22.290945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.294644"], ["user_id", "12952859-de67-40e3-8d92-376a44859e38"], ["created_at", "2015-07-06 21:15:22.296008"], ["updated_at", "2015-07-06 21:15:22.296008"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.306200"], ["updated_at", "2015-07-06 21:15:22.306200"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12952859-de67-40e3-8d92-376a44859e38' AND "clubhouse_memberships"."organization_id" = '4da931c0-95ff-4b94-bf86-36d1cb9b82cf') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "12952859-de67-40e3-8d92-376a44859e38"], ["organization_id", "4da931c0-95ff-4b94-bf86-36d1cb9b82cf"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.314019"], ["updated_at", "2015-07-06 21:15:22.314019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '4da931c0-95ff-4b94-bf86-36d1cb9b82cf') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "4da931c0-95ff-4b94-bf86-36d1cb9b82cf"], ["created_at", "2015-07-06 21:15:22.320612"], ["updated_at", "2015-07-06 21:15:22.320612"], ["token", "4cFWk4EUmlFzUn-_aWphikdZhg8ksoMcN9ucTtzH-6w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 99"], ["email", "user.99@example.com"], ["password_digest", "$2a$04$GjBfNykCRWC/uHRoUNquaOxC/dsfTejvLNIL3f2o3Eftkeig21l.C"], ["created_at", "2015-07-06 21:15:22.333071"], ["updated_at", "2015-07-06 21:15:22.333071"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.336042"], ["user_id", "3a01cefb-eb2f-43e7-86a6-02ca384ab85f"], ["created_at", "2015-07-06 21:15:22.337542"], ["updated_at", "2015-07-06 21:15:22.337542"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.343796"], ["updated_at", "2015-07-06 21:15:22.343796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a01cefb-eb2f-43e7-86a6-02ca384ab85f' AND "clubhouse_memberships"."organization_id" = 'b70993f4-d0f9-48ed-ac58-8f5256c49d1a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a01cefb-eb2f-43e7-86a6-02ca384ab85f"], ["organization_id", "b70993f4-d0f9-48ed-ac58-8f5256c49d1a"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.348245"], ["updated_at", "2015-07-06 21:15:22.348245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'b70993f4-d0f9-48ed-ac58-8f5256c49d1a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "b70993f4-d0f9-48ed-ac58-8f5256c49d1a"], ["created_at", "2015-07-06 21:15:22.353857"], ["updated_at", "2015-07-06 21:15:22.353857"], ["token", "8KOwW5gMEikK1sgTnbc6GLUCN8-4lI_-OXqF9yRTySE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.357998') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "75a69d22-5eab-45d7-bff0-7f54e8981b8c"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.360369"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.361770"], ["id", "75a69d22-5eab-45d7-bff0-7f54e8981b8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a01cefb-eb2f-43e7-86a6-02ca384ab85f"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '3a01cefb-eb2f-43e7-86a6-02ca384ab85f' LIMIT 1 [["organization_id", "b70993f4-d0f9-48ed-ac58-8f5256c49d1a"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'b70993f4-d0f9-48ed-ac58-8f5256c49d1a') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 24ms (ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 100"], ["email", "user.100@example.com"], ["password_digest", "$2a$04$tzOFsUHvb1x3PqkfG5u/peys8iLqbLe9a6UshSEBH5Zq0GWtuQ6Gm"], ["created_at", "2015-07-06 21:15:22.389684"], ["updated_at", "2015-07-06 21:15:22.389684"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.392155"], ["user_id", "258ecc4d-7a17-459f-8584-bc1ff29eaba0"], ["created_at", "2015-07-06 21:15:22.392962"], ["updated_at", "2015-07-06 21:15:22.392962"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.398246"], ["updated_at", "2015-07-06 21:15:22.398246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '258ecc4d-7a17-459f-8584-bc1ff29eaba0' AND "clubhouse_memberships"."organization_id" = '1ab92b16-9b80-4e88-b498-52b50a755be4') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "258ecc4d-7a17-459f-8584-bc1ff29eaba0"], ["organization_id", "1ab92b16-9b80-4e88-b498-52b50a755be4"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.402726"], ["updated_at", "2015-07-06 21:15:22.402726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '1ab92b16-9b80-4e88-b498-52b50a755be4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "1ab92b16-9b80-4e88-b498-52b50a755be4"], ["created_at", "2015-07-06 21:15:22.408286"], ["updated_at", "2015-07-06 21:15:22.408286"], ["token", "nzPXFW25UkYSeoM7-QmlNi__sCYlJ4xvelsGjMwhYC4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.411283') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cf170667-a316-4e72-a239-66909110b5f8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.412716"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.413541"], ["id", "cf170667-a316-4e72-a239-66909110b5f8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "258ecc4d-7a17-459f-8584-bc1ff29eaba0"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '258ecc4d-7a17-459f-8584-bc1ff29eaba0' LIMIT 1 [["organization_id", "1ab92b16-9b80-4e88-b498-52b50a755be4"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '1ab92b16-9b80-4e88-b498-52b50a755be4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "1ab92b16-9b80-4e88-b498-52b50a755be4"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.422800"], ["updated_at", "2015-07-06 21:15:22.422800"], ["token", "M8Gfw16vsxCpnS-RxZ2d_1-wZ95HZEKZmoohofavako"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 9b31c923-dce2-417a-9ad2-a99b5c906a3a) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bf3f79d5-83b2-4146-ac68-7f79915bed56 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bf3f79d5-83b2-4146-ac68-7f79915bed56"]] [ActiveJob] [ActionMailer::DeliveryJob] [9b31c923-dce2-417a-9ad2-a99b5c906a3a] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bf3f79d5-83b2-4146-ac68-7f79915bed56 [ActiveJob] [ActionMailer::DeliveryJob] [9b31c923-dce2-417a-9ad2-a99b5c906a3a] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1ab92b16-9b80-4e88-b498-52b50a755be4"]] [ActiveJob] [ActionMailer::DeliveryJob] [9b31c923-dce2-417a-9ad2-a99b5c906a3a] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [9b31c923-dce2-417a-9ad2-a99b5c906a3a] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [9b31c923-dce2-417a-9ad2-a99b5c906a3a] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [9b31c923-dce2-417a-9ad2-a99b5c906a3a] Date: Mon, 06 Jul 2015 14:15:22 -0700 From: from@example.com To: email@example.com Message-ID: <559aefea692b5_108273fd79080420478283@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/M8Gfw16vsxCpnS-RxZ2d_1-wZ95HZEKZmoohofavako?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [9b31c923-dce2-417a-9ad2-a99b5c906a3a] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.74ms Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 101"], ["email", "user.101@example.com"], ["password_digest", "$2a$04$.VWhC8HH1B.MyvOJFQckUOkhoLU5XRWonzQW5rX25ZT2DMHX6/kaq"], ["created_at", "2015-07-06 21:15:22.440342"], ["updated_at", "2015-07-06 21:15:22.440342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.442067"], ["user_id", "d8389912-917e-4cf8-9811-702d6f2e4f3e"], ["created_at", "2015-07-06 21:15:22.442677"], ["updated_at", "2015-07-06 21:15:22.442677"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.446709"], ["updated_at", "2015-07-06 21:15:22.446709"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8389912-917e-4cf8-9811-702d6f2e4f3e' AND "clubhouse_memberships"."organization_id" = 'cf462b76-a1ef-473d-a92d-8666d5329e52') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d8389912-917e-4cf8-9811-702d6f2e4f3e"], ["organization_id", "cf462b76-a1ef-473d-a92d-8666d5329e52"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.452292"], ["updated_at", "2015-07-06 21:15:22.452292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'cf462b76-a1ef-473d-a92d-8666d5329e52') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "cf462b76-a1ef-473d-a92d-8666d5329e52"], ["created_at", "2015-07-06 21:15:22.459005"], ["updated_at", "2015-07-06 21:15:22.459005"], ["token", "LxhFSbIUYK517rtq306YDbWOa0OorTeEyp9nq93c6X0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.464810') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "636bbeb3-c85a-4169-b02b-ea9eb11722f6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.467007"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.468015"], ["id", "636bbeb3-c85a-4169-b02b-ea9eb11722f6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8389912-917e-4cf8-9811-702d6f2e4f3e"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'd8389912-917e-4cf8-9811-702d6f2e4f3e' LIMIT 1 [["organization_id", "cf462b76-a1ef-473d-a92d-8666d5329e52"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'cf462b76-a1ef-473d-a92d-8666d5329e52') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "cf462b76-a1ef-473d-a92d-8666d5329e52"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.480202"], ["updated_at", "2015-07-06 21:15:22.480202"], ["token", "Xtbu-fXtXGPMW2IIXhR6Coxa8jCaFA78TZ4S_qo_Ye0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 7d83568b-6c91-4945-96ed-7d33c3f1b558) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6f8df7ac-618a-4842-9842-58efa4dc59f6 [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6f8df7ac-618a-4842-9842-58efa4dc59f6"]] [ActiveJob] [ActionMailer::DeliveryJob] [7d83568b-6c91-4945-96ed-7d33c3f1b558] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6f8df7ac-618a-4842-9842-58efa4dc59f6 [ActiveJob] [ActionMailer::DeliveryJob] [7d83568b-6c91-4945-96ed-7d33c3f1b558] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cf462b76-a1ef-473d-a92d-8666d5329e52"]] [ActiveJob] [ActionMailer::DeliveryJob] [7d83568b-6c91-4945-96ed-7d33c3f1b558] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [7d83568b-6c91-4945-96ed-7d33c3f1b558] Clubhouse::Mailer#invitation: processed outbound mail in 3.1ms [ActiveJob] [ActionMailer::DeliveryJob] [7d83568b-6c91-4945-96ed-7d33c3f1b558] Sent mail to email@example.com (2.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [7d83568b-6c91-4945-96ed-7d33c3f1b558] Date: Mon, 06 Jul 2015 14:15:22 -0700 From: from@example.com To: email@example.com Message-ID: <559aefea774bb_108273fd79080420478394@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Xtbu-fXtXGPMW2IIXhR6Coxa8jCaFA78TZ4S_qo_Ye0?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [7d83568b-6c91-4945-96ed-7d33c3f1b558] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.95ms Completed 201 Created in 27ms (Views: 1.0ms | ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 102"], ["email", "user.102@example.com"], ["password_digest", "$2a$04$IU9TGyGf89vckieRFd0dIeaEBejDFFGmejLWQxG3rQvfhp3UtYBpW"], ["created_at", "2015-07-06 21:15:22.499672"], ["updated_at", "2015-07-06 21:15:22.499672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.501520"], ["user_id", "31c2d877-5751-44ea-b282-5cc1c64e576e"], ["created_at", "2015-07-06 21:15:22.502494"], ["updated_at", "2015-07-06 21:15:22.502494"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.507119"], ["updated_at", "2015-07-06 21:15:22.507119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '31c2d877-5751-44ea-b282-5cc1c64e576e' AND "clubhouse_memberships"."organization_id" = 'b9a2f25c-63fe-4685-b7a7-5129ecc51894') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "31c2d877-5751-44ea-b282-5cc1c64e576e"], ["organization_id", "b9a2f25c-63fe-4685-b7a7-5129ecc51894"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.510242"], ["updated_at", "2015-07-06 21:15:22.510242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'b9a2f25c-63fe-4685-b7a7-5129ecc51894') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "b9a2f25c-63fe-4685-b7a7-5129ecc51894"], ["created_at", "2015-07-06 21:15:22.514255"], ["updated_at", "2015-07-06 21:15:22.514255"], ["token", "hggdcsBv53kEUEPaLD2iJ2iyA1R2aUzha7GjBXr6icg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 103"], ["email", "user.103@example.com"], ["password_digest", "$2a$04$6ksVlpvsVHY0tLCYbMRMUOhWWUtaRY9srI8l/ZMQjgNnJMbyP1drm"], ["created_at", "2015-07-06 21:15:22.520029"], ["updated_at", "2015-07-06 21:15:22.520029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.526108"], ["updated_at", "2015-07-06 21:15:22.526108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78ecf7f0-285e-487c-844f-e60a42dedd2e' AND "clubhouse_memberships"."organization_id" = 'b33952fc-99d4-4196-ba70-30be6bd969e3') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78ecf7f0-285e-487c-844f-e60a42dedd2e"], ["organization_id", "b33952fc-99d4-4196-ba70-30be6bd969e3"], ["created_at", "2015-07-06 21:15:22.530768"], ["updated_at", "2015-07-06 21:15:22.530768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/b9a2f25c-63fe-4685-b7a7-5129ecc51894/invitations" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"b9a2f25c-63fe-4685-b7a7-5129ecc51894", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.535198') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c8b5a3b0-ee66-43ba-ba66-c132f8fd358a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.537218"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.538352"], ["id", "c8b5a3b0-ee66-43ba-ba66-c132f8fd358a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b9a2f25c-63fe-4685-b7a7-5129ecc51894"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "31c2d877-5751-44ea-b282-5cc1c64e576e"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = '31c2d877-5751-44ea-b282-5cc1c64e576e' LIMIT 1 [["organization_id", "b9a2f25c-63fe-4685-b7a7-5129ecc51894"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "b9a2f25c-63fe-4685-b7a7-5129ecc51894"]] Completed 200 OK in 10ms (Views: 1.5ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 104"], ["email", "user.104@example.com"], ["password_digest", "$2a$04$fMeWkIDpL3A51jsdu8WaX.63DM6b6HpeuBZXhFpUNiD.iQSAXKD8W"], ["created_at", "2015-07-06 21:15:22.553467"], ["updated_at", "2015-07-06 21:15:22.553467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.555559"], ["user_id", "c3176972-5e0c-40b3-9f6a-3ec74ce5afa3"], ["created_at", "2015-07-06 21:15:22.556281"], ["updated_at", "2015-07-06 21:15:22.556281"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.564454"], ["updated_at", "2015-07-06 21:15:22.564454"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c3176972-5e0c-40b3-9f6a-3ec74ce5afa3' AND "clubhouse_memberships"."organization_id" = '81cd1f09-8a5c-4e8f-8ad2-ea82d8cb98a5') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c3176972-5e0c-40b3-9f6a-3ec74ce5afa3"], ["organization_id", "81cd1f09-8a5c-4e8f-8ad2-ea82d8cb98a5"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.568460"], ["updated_at", "2015-07-06 21:15:22.568460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '81cd1f09-8a5c-4e8f-8ad2-ea82d8cb98a5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "81cd1f09-8a5c-4e8f-8ad2-ea82d8cb98a5"], ["created_at", "2015-07-06 21:15:22.574524"], ["updated_at", "2015-07-06 21:15:22.574524"], ["token", "95gapu5x4sbv2SMgpYzf_4oX6NQ6aQyb2mlEtgRp1-k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 105"], ["email", "user.105@example.com"], ["password_digest", "$2a$04$uUeX3aawHWYR1GRgeeR.UuQmquqVUHX50Q1Qr1gUUEJdWPpdGfwPW"], ["created_at", "2015-07-06 21:15:22.581222"], ["updated_at", "2015-07-06 21:15:22.581222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.586564"], ["updated_at", "2015-07-06 21:15:22.586564"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6fac22ce-6b20-4b7e-b6f9-812cb2c83950' AND "clubhouse_memberships"."organization_id" = '72064025-5d57-4b3b-8718-7a143806847f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6fac22ce-6b20-4b7e-b6f9-812cb2c83950"], ["organization_id", "72064025-5d57-4b3b-8718-7a143806847f"], ["created_at", "2015-07-06 21:15:22.591997"], ["updated_at", "2015-07-06 21:15:22.591997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 106"], ["email", "user.106@example.com"], ["password_digest", "$2a$04$KFmI36ED4LbnDWx6JyaA0u3KEFkVxJ9W8tMcrAtuTqvZ9Uk/ZUoD2"], ["created_at", "2015-07-06 21:15:22.602618"], ["updated_at", "2015-07-06 21:15:22.602618"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 107"], ["email", "user.107@example.com"], ["password_digest", "$2a$04$GB9B3P0X.k8JbqF7LGE56OKGb72IXi70rqBb9oxpvl9Cz7Gy20UBu"], ["created_at", "2015-07-06 21:15:22.609333"], ["updated_at", "2015-07-06 21:15:22.609333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.611119"], ["user_id", "ec0875ad-0a1d-44e5-ab5e-afce7b5c20b4"], ["created_at", "2015-07-06 21:15:22.611738"], ["updated_at", "2015-07-06 21:15:22.611738"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.616510"], ["updated_at", "2015-07-06 21:15:22.616510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ec0875ad-0a1d-44e5-ab5e-afce7b5c20b4' AND "clubhouse_memberships"."organization_id" = '20bc5733-84d0-4308-9df1-8abc086800fa') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ec0875ad-0a1d-44e5-ab5e-afce7b5c20b4"], ["organization_id", "20bc5733-84d0-4308-9df1-8abc086800fa"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.621170"], ["updated_at", "2015-07-06 21:15:22.621170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64c23e87-7c5a-444a-92d3-06c7b3052d32' AND "clubhouse_memberships"."organization_id" = '20bc5733-84d0-4308-9df1-8abc086800fa') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64c23e87-7c5a-444a-92d3-06c7b3052d32"], ["organization_id", "20bc5733-84d0-4308-9df1-8abc086800fa"], ["created_at", "2015-07-06 21:15:22.625033"], ["updated_at", "2015-07-06 21:15:22.625033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/8f1917ff-ce4a-46a6-aa39-c4652350cc45" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"8f1917ff-ce4a-46a6-aa39-c4652350cc45", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.632822') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c1ce40f7-1033-4f18-a25c-86f9ef480459"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.634941"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.636490"], ["id", "c1ce40f7-1033-4f18-a25c-86f9ef480459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "8f1917ff-ce4a-46a6-aa39-c4652350cc45"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ec0875ad-0a1d-44e5-ab5e-afce7b5c20b4"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "20bc5733-84d0-4308-9df1-8abc086800fa"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'ec0875ad-0a1d-44e5-ab5e-afce7b5c20b4' LIMIT 1 [["organization_id", "20bc5733-84d0-4308-9df1-8abc086800fa"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64c23e87-7c5a-444a-92d3-06c7b3052d32"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "8f1917ff-ce4a-46a6-aa39-c4652350cc45"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 108"], ["email", "user.108@example.com"], ["password_digest", "$2a$04$bewo88jPRYHhr4rgs/sis.leL1bhSaqq3ttLhCSjaCA2SIjYk8ps2"], ["created_at", "2015-07-06 21:15:22.654609"], ["updated_at", "2015-07-06 21:15:22.654609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 109"], ["email", "user.109@example.com"], ["password_digest", "$2a$04$RzoQ4kr0DEcYeDuLT9aHAeLs5ysTa6v47oVJmT2UyFW4/aYAbylDO"], ["created_at", "2015-07-06 21:15:22.659992"], ["updated_at", "2015-07-06 21:15:22.659992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.661577"], ["user_id", "f7b87dd2-f533-4071-b3d7-e7421710329d"], ["created_at", "2015-07-06 21:15:22.662352"], ["updated_at", "2015-07-06 21:15:22.662352"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.667044"], ["updated_at", "2015-07-06 21:15:22.667044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f7b87dd2-f533-4071-b3d7-e7421710329d' AND "clubhouse_memberships"."organization_id" = 'd8c73c4a-886b-4bc7-8242-4f463c8abf1e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f7b87dd2-f533-4071-b3d7-e7421710329d"], ["organization_id", "d8c73c4a-886b-4bc7-8242-4f463c8abf1e"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.670621"], ["updated_at", "2015-07-06 21:15:22.670621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df9e6a2b-60c5-4f50-8f29-d9e72c7fce7c' AND "clubhouse_memberships"."organization_id" = 'd8c73c4a-886b-4bc7-8242-4f463c8abf1e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "df9e6a2b-60c5-4f50-8f29-d9e72c7fce7c"], ["organization_id", "d8c73c4a-886b-4bc7-8242-4f463c8abf1e"], ["created_at", "2015-07-06 21:15:22.673835"], ["updated_at", "2015-07-06 21:15:22.673835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 110"], ["email", "user.110@example.com"], ["password_digest", "$2a$04$X4QhhfrlGwpDkORP3lo45evvFUKhDwRaZSfaAr/nbMEimjt7HfaD6"], ["created_at", "2015-07-06 21:15:22.685255"], ["updated_at", "2015-07-06 21:15:22.685255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 111"], ["email", "user.111@example.com"], ["password_digest", "$2a$04$5sohix4VUXMCuSXMNyrfne8Yy/yxfYiesRp/CTpBD/ak/P5cghZ46"], ["created_at", "2015-07-06 21:15:22.692049"], ["updated_at", "2015-07-06 21:15:22.692049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.694107"], ["user_id", "0adb5708-768a-4203-a069-9412f672fdcd"], ["created_at", "2015-07-06 21:15:22.695183"], ["updated_at", "2015-07-06 21:15:22.695183"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.699896"], ["updated_at", "2015-07-06 21:15:22.699896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0adb5708-768a-4203-a069-9412f672fdcd' AND "clubhouse_memberships"."organization_id" = '99277991-271f-4b9f-9e68-b368441563b1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0adb5708-768a-4203-a069-9412f672fdcd"], ["organization_id", "99277991-271f-4b9f-9e68-b368441563b1"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.704066"], ["updated_at", "2015-07-06 21:15:22.704066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71b5367d-04ae-42e7-a5ef-a337232efac7' AND "clubhouse_memberships"."organization_id" = '99277991-271f-4b9f-9e68-b368441563b1') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71b5367d-04ae-42e7-a5ef-a337232efac7"], ["organization_id", "99277991-271f-4b9f-9e68-b368441563b1"], ["created_at", "2015-07-06 21:15:22.707298"], ["updated_at", "2015-07-06 21:15:22.707298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 112"], ["email", "user.112@example.com"], ["password_digest", "$2a$04$uH36uboLpP1TawFcaKhvF.YU1CyTrzy27uMkfGFLClJOYz5tAlc/i"], ["created_at", "2015-07-06 21:15:22.713057"], ["updated_at", "2015-07-06 21:15:22.713057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.714787"], ["user_id", "ed134c4d-5b30-40c5-bdd2-379bb65aa5a5"], ["created_at", "2015-07-06 21:15:22.715452"], ["updated_at", "2015-07-06 21:15:22.715452"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '99277991-271f-4b9f-9e68-b368441563b1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "99277991-271f-4b9f-9e68-b368441563b1"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.720115"], ["updated_at", "2015-07-06 21:15:22.720115"], ["token", "sZHTLkX_Cl6FwGZxFdJSBzHEZ1FPVcQG3U5JMN22oN8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 113"], ["email", "user.113@example.com"], ["password_digest", "$2a$04$tdEpv668n0ZV8Isel29nJOfmlRGMknkN7s62DRhUZmDGTkZp0Y.4u"], ["created_at", "2015-07-06 21:15:22.730012"], ["updated_at", "2015-07-06 21:15:22.730012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 114"], ["email", "user.114@example.com"], ["password_digest", "$2a$04$6v7bxHW.sKVa90m/MoEVQ.ogyUXY7mCF5RhkzXP06cl27BoUzOCmO"], ["created_at", "2015-07-06 21:15:22.735451"], ["updated_at", "2015-07-06 21:15:22.735451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.737540"], ["user_id", "655923d6-a709-46ba-8e29-4bf31f8cc619"], ["created_at", "2015-07-06 21:15:22.738528"], ["updated_at", "2015-07-06 21:15:22.738528"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.742937"], ["updated_at", "2015-07-06 21:15:22.742937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '655923d6-a709-46ba-8e29-4bf31f8cc619' AND "clubhouse_memberships"."organization_id" = 'eac13f40-adbb-4d9c-86f7-22808caa6ee2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "655923d6-a709-46ba-8e29-4bf31f8cc619"], ["organization_id", "eac13f40-adbb-4d9c-86f7-22808caa6ee2"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.746529"], ["updated_at", "2015-07-06 21:15:22.746529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ab8844ba-a2fb-483d-b50f-852132b01365' AND "clubhouse_memberships"."organization_id" = 'eac13f40-adbb-4d9c-86f7-22808caa6ee2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ab8844ba-a2fb-483d-b50f-852132b01365"], ["organization_id", "eac13f40-adbb-4d9c-86f7-22808caa6ee2"], ["created_at", "2015-07-06 21:15:22.750077"], ["updated_at", "2015-07-06 21:15:22.750077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 115"], ["email", "user.115@example.com"], ["password_digest", "$2a$04$vY0wqRb3IV9HmHRf596aXedoookkztZGzGkspLQqLhmI43cTxFwoi"], ["created_at", "2015-07-06 21:15:22.755433"], ["updated_at", "2015-07-06 21:15:22.755433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.757086"], ["user_id", "c15634f2-624b-4e6d-beb7-8216c60cd78d"], ["created_at", "2015-07-06 21:15:22.757679"], ["updated_at", "2015-07-06 21:15:22.757679"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'eac13f40-adbb-4d9c-86f7-22808caa6ee2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "eac13f40-adbb-4d9c-86f7-22808caa6ee2"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.763611"], ["updated_at", "2015-07-06 21:15:22.763611"], ["token", "qP_-jlWjQ6bTQwr-WtGdppU4DhYnoM587n87sYqFik4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/eac13f40-adbb-4d9c-86f7-22808caa6ee2/memberships" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"eac13f40-adbb-4d9c-86f7-22808caa6ee2", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.767036') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cb8324ad-2925-4a93-b07f-b2e0ab77eb63"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.769075"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.770986"], ["id", "cb8324ad-2925-4a93-b07f-b2e0ab77eb63"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "eac13f40-adbb-4d9c-86f7-22808caa6ee2"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c15634f2-624b-4e6d-beb7-8216c60cd78d"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 18ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 116"], ["email", "user.116@example.com"], ["password_digest", "$2a$04$uFOF.ghuqsfrzxaXvSsILOyR9YTV4puxKwRikl/mmJl7.nK9CHFO."], ["created_at", "2015-07-06 21:15:22.794065"], ["updated_at", "2015-07-06 21:15:22.794065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 117"], ["email", "user.117@example.com"], ["password_digest", "$2a$04$HtotKpWSb6UuPPICdxISbewIoptqMYYVrPLEU8xDdN/jBwbUDFhiG"], ["created_at", "2015-07-06 21:15:22.803350"], ["updated_at", "2015-07-06 21:15:22.803350"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.807231"], ["user_id", "4d74a3bf-532f-4d17-accc-bc7ea8487473"], ["created_at", "2015-07-06 21:15:22.807986"], ["updated_at", "2015-07-06 21:15:22.807986"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.812028"], ["updated_at", "2015-07-06 21:15:22.812028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d74a3bf-532f-4d17-accc-bc7ea8487473' AND "clubhouse_memberships"."organization_id" = '80ba2402-fb59-4ab2-bd06-5720b4c8309e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d74a3bf-532f-4d17-accc-bc7ea8487473"], ["organization_id", "80ba2402-fb59-4ab2-bd06-5720b4c8309e"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.815276"], ["updated_at", "2015-07-06 21:15:22.815276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2bc49b22-5289-40a0-8579-a6d1f1114591' AND "clubhouse_memberships"."organization_id" = '80ba2402-fb59-4ab2-bd06-5720b4c8309e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2bc49b22-5289-40a0-8579-a6d1f1114591"], ["organization_id", "80ba2402-fb59-4ab2-bd06-5720b4c8309e"], ["created_at", "2015-07-06 21:15:22.818146"], ["updated_at", "2015-07-06 21:15:22.818146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 118"], ["email", "user.118@example.com"], ["password_digest", "$2a$04$n27JIoW0JH8QmgB9tkR5FuibcWEGD36T2kzNw/rnvVfNQTSziuq9i"], ["created_at", "2015-07-06 21:15:22.825668"], ["updated_at", "2015-07-06 21:15:22.825668"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.831265"], ["user_id", "253cea6a-a56f-45e4-b8ca-b84a66dfd3ba"], ["created_at", "2015-07-06 21:15:22.832335"], ["updated_at", "2015-07-06 21:15:22.832335"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '80ba2402-fb59-4ab2-bd06-5720b4c8309e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "80ba2402-fb59-4ab2-bd06-5720b4c8309e"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.837841"], ["updated_at", "2015-07-06 21:15:22.837841"], ["token", "5BtGcf-aCOmGP2EO1ZfuDY6EFVkmycL-K0EY6HLsBiA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/80ba2402-fb59-4ab2-bd06-5720b4c8309e/memberships" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"5BtGcf-aCOmGP2EO1ZfuDY6EFVkmycL-K0EY6HLsBiA", "organization_id"=>"80ba2402-fb59-4ab2-bd06-5720b4c8309e", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.841555') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7ecc1b32-db71-4448-afaa-70242eec6eb9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.843018"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.843888"], ["id", "7ecc1b32-db71-4448-afaa-70242eec6eb9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "80ba2402-fb59-4ab2-bd06-5720b4c8309e"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "253cea6a-a56f-45e4-b8ca-b84a66dfd3ba"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "5BtGcf-aCOmGP2EO1ZfuDY6EFVkmycL-K0EY6HLsBiA"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "80ba2402-fb59-4ab2-bd06-5720b4c8309e"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '253cea6a-a56f-45e4-b8ca-b84a66dfd3ba' AND "clubhouse_memberships"."organization_id" = '80ba2402-fb59-4ab2-bd06-5720b4c8309e') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "80ba2402-fb59-4ab2-bd06-5720b4c8309e"], ["member_id", "253cea6a-a56f-45e4-b8ca-b84a66dfd3ba"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.850977"], ["updated_at", "2015-07-06 21:15:22.850977"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "812d20e4-abf3-4b72-ae47-f6feeb9e7aef"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 18ms (Views: 4.2ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 119"], ["email", "user.119@example.com"], ["password_digest", "$2a$04$VzFdnBquXFcuBlV2t.i26OpGqDt7K9SrzxXSRccmEIN6hZREC8B2i"], ["created_at", "2015-07-06 21:15:22.868657"], ["updated_at", "2015-07-06 21:15:22.868657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 120"], ["email", "user.120@example.com"], ["password_digest", "$2a$04$mwnBNYuQ7BWnKyR1iE3u8uWhCUHLQow27EsPYBVvB43pb7VLXmg9C"], ["created_at", "2015-07-06 21:15:22.877330"], ["updated_at", "2015-07-06 21:15:22.877330"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.880258"], ["user_id", "70b55d63-fde5-4963-8934-ff189e3e7556"], ["created_at", "2015-07-06 21:15:22.881461"], ["updated_at", "2015-07-06 21:15:22.881461"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.887369"], ["updated_at", "2015-07-06 21:15:22.887369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '70b55d63-fde5-4963-8934-ff189e3e7556' AND "clubhouse_memberships"."organization_id" = '2c77f854-435b-47cb-b264-7d309e994dee') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "70b55d63-fde5-4963-8934-ff189e3e7556"], ["organization_id", "2c77f854-435b-47cb-b264-7d309e994dee"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.891706"], ["updated_at", "2015-07-06 21:15:22.891706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3071af05-b3ad-4761-8ea4-6345f3579772' AND "clubhouse_memberships"."organization_id" = '2c77f854-435b-47cb-b264-7d309e994dee') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3071af05-b3ad-4761-8ea4-6345f3579772"], ["organization_id", "2c77f854-435b-47cb-b264-7d309e994dee"], ["created_at", "2015-07-06 21:15:22.895060"], ["updated_at", "2015-07-06 21:15:22.895060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.898797') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "232eaa87-33c8-49f9-bbe4-2f217975ff0c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.900975"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.902510"], ["id", "232eaa87-33c8-49f9-bbe4-2f217975ff0c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "70b55d63-fde5-4963-8934-ff189e3e7556"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '70b55d63-fde5-4963-8934-ff189e3e7556' LIMIT 1 [["organization_id", "2c77f854-435b-47cb-b264-7d309e994dee"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "2c77f854-435b-47cb-b264-7d309e994dee"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "70b55d63-fde5-4963-8934-ff189e3e7556"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3071af05-b3ad-4761-8ea4-6345f3579772"]] Completed 200 OK in 15ms (Views: 3.6ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 121"], ["email", "user.121@example.com"], ["password_digest", "$2a$04$0exawfdBjeMrbzM7OsOlwemOHU57drGj1zB2HyKWpE55BcuowIrRa"], ["created_at", "2015-07-06 21:15:22.921793"], ["updated_at", "2015-07-06 21:15:22.921793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 122"], ["email", "user.122@example.com"], ["password_digest", "$2a$04$aHrS/edRACp0POYD.s6QR.HoCvQumh84wme2ZdNv1Ea282ro1JYY6"], ["created_at", "2015-07-06 21:15:22.927570"], ["updated_at", "2015-07-06 21:15:22.927570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.929143"], ["user_id", "939d2860-168f-4095-bd0e-04de42119d07"], ["created_at", "2015-07-06 21:15:22.929762"], ["updated_at", "2015-07-06 21:15:22.929762"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.934608"], ["updated_at", "2015-07-06 21:15:22.934608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '939d2860-168f-4095-bd0e-04de42119d07' AND "clubhouse_memberships"."organization_id" = '8d167cc8-dad0-4b22-80bc-92e5d96572ee') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "939d2860-168f-4095-bd0e-04de42119d07"], ["organization_id", "8d167cc8-dad0-4b22-80bc-92e5d96572ee"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.937966"], ["updated_at", "2015-07-06 21:15:22.937966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46ea3f99-b162-4be7-b31f-61ebbfc40d5c' AND "clubhouse_memberships"."organization_id" = '8d167cc8-dad0-4b22-80bc-92e5d96572ee') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46ea3f99-b162-4be7-b31f-61ebbfc40d5c"], ["organization_id", "8d167cc8-dad0-4b22-80bc-92e5d96572ee"], ["created_at", "2015-07-06 21:15:22.940883"], ["updated_at", "2015-07-06 21:15:22.940883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 123"], ["email", "user.123@example.com"], ["password_digest", "$2a$04$E2OAH3XcRStl7wQ1AP6jiOjaTfzrHH8cyQ/smRzYKTWm0BHPJfxji"], ["created_at", "2015-07-06 21:15:22.952341"], ["updated_at", "2015-07-06 21:15:22.952341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 124"], ["email", "user.124@example.com"], ["password_digest", "$2a$04$QDYQVsrgKCcaq82QLNrfIu3Zrsg9EYZd/ijo3Cpg0ZZkGs.s8CqeK"], ["created_at", "2015-07-06 21:15:22.958194"], ["updated_at", "2015-07-06 21:15:22.958194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:22.959879"], ["user_id", "2d3d7e4e-e988-40eb-8749-d233a16ce009"], ["created_at", "2015-07-06 21:15:22.960545"], ["updated_at", "2015-07-06 21:15:22.960545"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:22.965416"], ["updated_at", "2015-07-06 21:15:22.965416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d3d7e4e-e988-40eb-8749-d233a16ce009' AND "clubhouse_memberships"."organization_id" = 'b1673f6b-3b05-4168-a9fe-a8b215f63c74') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d3d7e4e-e988-40eb-8749-d233a16ce009"], ["organization_id", "b1673f6b-3b05-4168-a9fe-a8b215f63c74"], ["admin", "t"], ["created_at", "2015-07-06 21:15:22.969597"], ["updated_at", "2015-07-06 21:15:22.969597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7cc60180-f1d4-4b5c-9a2e-0ddacb13a648' AND "clubhouse_memberships"."organization_id" = 'b1673f6b-3b05-4168-a9fe-a8b215f63c74') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7cc60180-f1d4-4b5c-9a2e-0ddacb13a648"], ["organization_id", "b1673f6b-3b05-4168-a9fe-a8b215f63c74"], ["created_at", "2015-07-06 21:15:22.972762"], ["updated_at", "2015-07-06 21:15:22.972762"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1552723a-351e-45e0-a438-c8df717e7fa5" for 127.0.0.1 at 2015-07-06 14:15:22 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1552723a-351e-45e0-a438-c8df717e7fa5", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:22.977091') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "748e9b5d-0d00-471e-ab8d-a5384edf934f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:22.978575"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:22.979420"], ["id", "748e9b5d-0d00-471e-ab8d-a5384edf934f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "1552723a-351e-45e0-a438-c8df717e7fa5"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d3d7e4e-e988-40eb-8749-d233a16ce009"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b1673f6b-3b05-4168-a9fe-a8b215f63c74"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2d3d7e4e-e988-40eb-8749-d233a16ce009' LIMIT 1 [["organization_id", "b1673f6b-3b05-4168-a9fe-a8b215f63c74"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2d3d7e4e-e988-40eb-8749-d233a16ce009"]] Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 125"], ["email", "user.125@example.com"], ["password_digest", "$2a$04$UYvs2xUkWqdGX73btAyiPOm8rYsNIVfs8wMaMSNugN6cYb9dCSEUC"], ["created_at", "2015-07-06 21:15:22.996257"], ["updated_at", "2015-07-06 21:15:22.996257"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 126"], ["email", "user.126@example.com"], ["password_digest", "$2a$04$OCQpscslisNOQX/qV3idnujUP2HNFkIm/RqBMbZ8a06Ch4Ow1SXt2"], ["created_at", "2015-07-06 21:15:23.005424"], ["updated_at", "2015-07-06 21:15:23.005424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.008411"], ["user_id", "6e7a8473-5f65-44a8-827c-fe5e25b9a4b4"], ["created_at", "2015-07-06 21:15:23.009649"], ["updated_at", "2015-07-06 21:15:23.009649"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:23.015888"], ["updated_at", "2015-07-06 21:15:23.015888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e7a8473-5f65-44a8-827c-fe5e25b9a4b4' AND "clubhouse_memberships"."organization_id" = '8ca6bad9-a3ce-45c6-bf0b-53cf1d7455eb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e7a8473-5f65-44a8-827c-fe5e25b9a4b4"], ["organization_id", "8ca6bad9-a3ce-45c6-bf0b-53cf1d7455eb"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.020753"], ["updated_at", "2015-07-06 21:15:23.020753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '169720b2-23dc-441b-95f5-067c475ba820' AND "clubhouse_memberships"."organization_id" = '8ca6bad9-a3ce-45c6-bf0b-53cf1d7455eb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "169720b2-23dc-441b-95f5-067c475ba820"], ["organization_id", "8ca6bad9-a3ce-45c6-bf0b-53cf1d7455eb"], ["created_at", "2015-07-06 21:15:23.024508"], ["updated_at", "2015-07-06 21:15:23.024508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:15:23 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 127"], ["email", "user.127@example.com"], ["password_digest", "$2a$04$omEe5ytmYi8xh0gjhn7YteZmPXThtirTlmd4.Fjt.uaqQvUm3ViHK"], ["created_at", "2015-07-06 21:15:23.036577"], ["updated_at", "2015-07-06 21:15:23.036577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 128"], ["email", "user.128@example.com"], ["password_digest", "$2a$04$mu.sxjvdRn5k5UoSH6.4RuMsARkwa.mERrESUg0ZRZ7AaVH9Dz8/u"], ["created_at", "2015-07-06 21:15:23.042009"], ["updated_at", "2015-07-06 21:15:23.042009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.043546"], ["user_id", "aea0ba06-9184-4c92-903d-31aa81c4b8c8"], ["created_at", "2015-07-06 21:15:23.044156"], ["updated_at", "2015-07-06 21:15:23.044156"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:23.048858"], ["updated_at", "2015-07-06 21:15:23.048858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aea0ba06-9184-4c92-903d-31aa81c4b8c8' AND "clubhouse_memberships"."organization_id" = '46d4924e-d930-4e05-aff4-21a0e5bf72bf') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aea0ba06-9184-4c92-903d-31aa81c4b8c8"], ["organization_id", "46d4924e-d930-4e05-aff4-21a0e5bf72bf"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.052429"], ["updated_at", "2015-07-06 21:15:23.052429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aed2f0b7-2fdc-4ba7-8b18-9f1db220ac50' AND "clubhouse_memberships"."organization_id" = '46d4924e-d930-4e05-aff4-21a0e5bf72bf') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "aed2f0b7-2fdc-4ba7-8b18-9f1db220ac50"], ["organization_id", "46d4924e-d930-4e05-aff4-21a0e5bf72bf"], ["created_at", "2015-07-06 21:15:23.055244"], ["updated_at", "2015-07-06 21:15:23.055244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/744d95b7-4896-40ab-ad3d-519102e0bdb9" for 127.0.0.1 at 2015-07-06 14:15:23 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"744d95b7-4896-40ab-ad3d-519102e0bdb9", "membership"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:23.059377') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "494898cd-d20e-40ef-9c3c-78457b20158b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:23.061066"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:23.062017"], ["id", "494898cd-d20e-40ef-9c3c-78457b20158b"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "744d95b7-4896-40ab-ad3d-519102e0bdb9"]] User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aea0ba06-9184-4c92-903d-31aa81c4b8c8"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "46d4924e-d930-4e05-aff4-21a0e5bf72bf"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = 't' AND "clubhouse_memberships"."member_id" = 'aea0ba06-9184-4c92-903d-31aa81c4b8c8' LIMIT 1 [["organization_id", "46d4924e-d930-4e05-aff4-21a0e5bf72bf"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aed2f0b7-2fdc-4ba7-8b18-9f1db220ac50"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aed2f0b7-2fdc-4ba7-8b18-9f1db220ac50' AND "clubhouse_memberships"."id" != '744d95b7-4896-40ab-ad3d-519102e0bdb9' AND "clubhouse_memberships"."organization_id" = '46d4924e-d930-4e05-aff4-21a0e5bf72bf') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:15:23.073214"], ["id", "744d95b7-4896-40ab-ad3d-519102e0bdb9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.8ms | ActiveRecord: 4.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 129"], ["email", "user.129@example.com"], ["password_digest", "$2a$04$hUiMM3nfprd4V9x.SXjHre.eke4UlDWl0NcTip.e/BxGkRsIWFTV2"], ["created_at", "2015-07-06 21:15:23.082635"], ["updated_at", "2015-07-06 21:15:23.082635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 130"], ["email", "user.130@example.com"], ["password_digest", "$2a$04$AlZqB8AZAa/AarP34WQdAu/P7R0j/.x7WFbG7WNsccJNQ9LVuA1jK"], ["created_at", "2015-07-06 21:15:23.091126"], ["updated_at", "2015-07-06 21:15:23.091126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.093033"], ["user_id", "87fcb248-ef76-43a0-a35a-eb516ebb777d"], ["created_at", "2015-07-06 21:15:23.093871"], ["updated_at", "2015-07-06 21:15:23.093871"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:23.098993"], ["updated_at", "2015-07-06 21:15:23.098993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87fcb248-ef76-43a0-a35a-eb516ebb777d' AND "clubhouse_memberships"."organization_id" = 'e2b3af74-89aa-4c02-9602-696ce387bd47') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87fcb248-ef76-43a0-a35a-eb516ebb777d"], ["organization_id", "e2b3af74-89aa-4c02-9602-696ce387bd47"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.102548"], ["updated_at", "2015-07-06 21:15:23.102548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8589201b-eac9-4ec0-849f-eec016508dd7' AND "clubhouse_memberships"."organization_id" = 'e2b3af74-89aa-4c02-9602-696ce387bd47') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8589201b-eac9-4ec0-849f-eec016508dd7"], ["organization_id", "e2b3af74-89aa-4c02-9602-696ce387bd47"], ["created_at", "2015-07-06 21:15:23.105238"], ["updated_at", "2015-07-06 21:15:23.105238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:15:23 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 131"], ["email", "user.131@example.com"], ["password_digest", "$2a$04$RxztTKWz0Bc1kptLcBE3WeqahKgcZezELBZopDwMlTlEA0eWH35Em"], ["created_at", "2015-07-06 21:15:23.114973"], ["updated_at", "2015-07-06 21:15:23.114973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 132"], ["email", "user.132@example.com"], ["password_digest", "$2a$04$UoRM3Exne5qwjcYpZSXYIu/cK8zX726t5tg/v9HBz0t9D4N8W3mC2"], ["created_at", "2015-07-06 21:15:23.122152"], ["updated_at", "2015-07-06 21:15:23.122152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.123780"], ["user_id", "bd6baada-9463-4bc3-84e2-b4dc9d896b70"], ["created_at", "2015-07-06 21:15:23.124435"], ["updated_at", "2015-07-06 21:15:23.124435"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:23.128931"], ["updated_at", "2015-07-06 21:15:23.128931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bd6baada-9463-4bc3-84e2-b4dc9d896b70' AND "clubhouse_memberships"."organization_id" = '1c0ffde9-c22c-440c-8f0c-e74c690c9e74') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bd6baada-9463-4bc3-84e2-b4dc9d896b70"], ["organization_id", "1c0ffde9-c22c-440c-8f0c-e74c690c9e74"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.132468"], ["updated_at", "2015-07-06 21:15:23.132468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c32dbedd-6f5f-4d12-80c6-9878fa06fc9e' AND "clubhouse_memberships"."organization_id" = '1c0ffde9-c22c-440c-8f0c-e74c690c9e74') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c32dbedd-6f5f-4d12-80c6-9878fa06fc9e"], ["organization_id", "1c0ffde9-c22c-440c-8f0c-e74c690c9e74"], ["created_at", "2015-07-06 21:15:23.135902"], ["updated_at", "2015-07-06 21:15:23.135902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 133"], ["email", "user.133@example.com"], ["password_digest", "$2a$04$h1EIFDSaFYKDHJgBsreu3eT5DJog5jySgYU3eWc7mIjd54N5lyyni"], ["created_at", "2015-07-06 21:15:23.143673"], ["updated_at", "2015-07-06 21:15:23.143673"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.145749"], ["user_id", "a42c4852-087e-463e-879e-1baf93092331"], ["created_at", "2015-07-06 21:15:23.146551"], ["updated_at", "2015-07-06 21:15:23.146551"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '1c0ffde9-c22c-440c-8f0c-e74c690c9e74') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "1c0ffde9-c22c-440c-8f0c-e74c690c9e74"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.151533"], ["updated_at", "2015-07-06 21:15:23.151533"], ["token", "4vnj_56T9rdGQF5J6VwmefFfCD3rO5Tsx9GxKybJYx0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:15:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 134"], ["email", "user.134@example.com"], ["password_digest", "$2a$04$CeV.kr13GRuzIxYirt6gKutkDUzs2/g/DQ5CaEgWwLv8Jc54vXa4q"], ["created_at", "2015-07-06 21:15:23.161748"], ["updated_at", "2015-07-06 21:15:23.161748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 135"], ["email", "user.135@example.com"], ["password_digest", "$2a$04$TJcfaZpS7mXCCQ3hYeE6DOZEH9XcPoKgcS5Hx4Hc5r54aEIa84s02"], ["created_at", "2015-07-06 21:15:23.166995"], ["updated_at", "2015-07-06 21:15:23.166995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.168624"], ["user_id", "3a81f242-0229-4530-ba48-59d8827e51f1"], ["created_at", "2015-07-06 21:15:23.169252"], ["updated_at", "2015-07-06 21:15:23.169252"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:23.173189"], ["updated_at", "2015-07-06 21:15:23.173189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a81f242-0229-4530-ba48-59d8827e51f1' AND "clubhouse_memberships"."organization_id" = '6c4426c4-6a4a-47bf-8a0d-1af2ea6709c5') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a81f242-0229-4530-ba48-59d8827e51f1"], ["organization_id", "6c4426c4-6a4a-47bf-8a0d-1af2ea6709c5"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.178192"], ["updated_at", "2015-07-06 21:15:23.178192"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b2e11c2-6b7a-4c2a-9488-4bfdf6f60e20' AND "clubhouse_memberships"."organization_id" = '6c4426c4-6a4a-47bf-8a0d-1af2ea6709c5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7b2e11c2-6b7a-4c2a-9488-4bfdf6f60e20"], ["organization_id", "6c4426c4-6a4a-47bf-8a0d-1af2ea6709c5"], ["created_at", "2015-07-06 21:15:23.183108"], ["updated_at", "2015-07-06 21:15:23.183108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 136"], ["email", "user.136@example.com"], ["password_digest", "$2a$04$aIwvxS5/1mrfrrWAWtRj3OkVg1vlpo5qYgUtGbRq3buUaRFWI3cFO"], ["created_at", "2015-07-06 21:15:23.190291"], ["updated_at", "2015-07-06 21:15:23.190291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.192642"], ["user_id", "7d57c1ce-e478-4af6-858f-ba36e87d9114"], ["created_at", "2015-07-06 21:15:23.193792"], ["updated_at", "2015-07-06 21:15:23.193792"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '6c4426c4-6a4a-47bf-8a0d-1af2ea6709c5') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "6c4426c4-6a4a-47bf-8a0d-1af2ea6709c5"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.201106"], ["updated_at", "2015-07-06 21:15:23.201106"], ["token", "IgHkGtPR4OM4VH0KpItdraAuPwQXbcWH6_NMPd0TLnY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:15:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:23.210254') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "980c0667-16da-4f0d-a1b6-3f426f28ee9e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:23.213088"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:23.215906"], ["id", "980c0667-16da-4f0d-a1b6-3f426f28ee9e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7d57c1ce-e478-4af6-858f-ba36e87d9114"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 18ms (ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 137"], ["email", "user.137@example.com"], ["password_digest", "$2a$04$XL1iuIp9kxzwmAE3lz2UYu94dqT5Zhw7JBR/E8fivHLFfVy9G5pa6"], ["created_at", "2015-07-06 21:15:23.235952"], ["updated_at", "2015-07-06 21:15:23.235952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 138"], ["email", "user.138@example.com"], ["password_digest", "$2a$04$tgT1by1Enkzm9avL9xwDqeNFZ2.l.EtqIOL2OV.NZsHaDw2goqkZy"], ["created_at", "2015-07-06 21:15:23.242472"], ["updated_at", "2015-07-06 21:15:23.242472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.244242"], ["user_id", "5afbab71-32a5-4419-8672-70ce67dbb5e0"], ["created_at", "2015-07-06 21:15:23.244978"], ["updated_at", "2015-07-06 21:15:23.244978"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:23.251976"], ["updated_at", "2015-07-06 21:15:23.251976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5afbab71-32a5-4419-8672-70ce67dbb5e0' AND "clubhouse_memberships"."organization_id" = 'afa8bed8-c7ea-414f-ab9e-bf6740e86b30') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5afbab71-32a5-4419-8672-70ce67dbb5e0"], ["organization_id", "afa8bed8-c7ea-414f-ab9e-bf6740e86b30"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.256400"], ["updated_at", "2015-07-06 21:15:23.256400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8e9476ed-3732-4d5d-af54-4fd70ae3ccfb' AND "clubhouse_memberships"."organization_id" = 'afa8bed8-c7ea-414f-ab9e-bf6740e86b30') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8e9476ed-3732-4d5d-af54-4fd70ae3ccfb"], ["organization_id", "afa8bed8-c7ea-414f-ab9e-bf6740e86b30"], ["created_at", "2015-07-06 21:15:23.259591"], ["updated_at", "2015-07-06 21:15:23.259591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 139"], ["email", "user.139@example.com"], ["password_digest", "$2a$04$BopaIWMU6C/D6J5YshFMTupcvkrKWWNCFMqyMW9ivE85KexByi5Ti"], ["created_at", "2015-07-06 21:15:23.265767"], ["updated_at", "2015-07-06 21:15:23.265767"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.269485"], ["user_id", "bdadb5d6-b199-4392-bc90-290174ac9986"], ["created_at", "2015-07-06 21:15:23.270952"], ["updated_at", "2015-07-06 21:15:23.270952"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'afa8bed8-c7ea-414f-ab9e-bf6740e86b30') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "afa8bed8-c7ea-414f-ab9e-bf6740e86b30"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.275578"], ["updated_at", "2015-07-06 21:15:23.275578"], ["token", "SuTdUStR0ExpuVKbEZUaaSW8rCurpn998CRiVuewCvo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:15:23 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"SuTdUStR0ExpuVKbEZUaaSW8rCurpn998CRiVuewCvo", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:23.278595') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c8e5d68f-d0a1-49bb-a095-2f0154a728a2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:23.279829"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:23.280609"], ["id", "c8e5d68f-d0a1-49bb-a095-2f0154a728a2"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bdadb5d6-b199-4392-bc90-290174ac9986"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "SuTdUStR0ExpuVKbEZUaaSW8rCurpn998CRiVuewCvo"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "afa8bed8-c7ea-414f-ab9e-bf6740e86b30"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bdadb5d6-b199-4392-bc90-290174ac9986' AND "clubhouse_memberships"."organization_id" = 'afa8bed8-c7ea-414f-ab9e-bf6740e86b30') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "afa8bed8-c7ea-414f-ab9e-bf6740e86b30"], ["member_id", "bdadb5d6-b199-4392-bc90-290174ac9986"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.289380"], ["updated_at", "2015-07-06 21:15:23.289380"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "4e0dbb67-461d-4358-9c9b-e338b39a6a56"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.9ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 140"], ["email", "user.140@example.com"], ["password_digest", "$2a$04$Nu8IPOwGSKh.Q2AOCkzvy.WWeOFPo1.IrX7u1Os3OUocwzhVJqNCu"], ["created_at", "2015-07-06 21:15:23.300370"], ["updated_at", "2015-07-06 21:15:23.300370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 141"], ["email", "user.141@example.com"], ["password_digest", "$2a$04$ztHlmHGj8rlKjlZDt6IV8.MWQcEWRexCGyo2sPk6hO8S7I0xN0XPa"], ["created_at", "2015-07-06 21:15:23.305751"], ["updated_at", "2015-07-06 21:15:23.305751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.307310"], ["user_id", "84f6c6f1-bc15-49e8-91ec-cf1ab9086e50"], ["created_at", "2015-07-06 21:15:23.307930"], ["updated_at", "2015-07-06 21:15:23.307930"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:23.311976"], ["updated_at", "2015-07-06 21:15:23.311976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84f6c6f1-bc15-49e8-91ec-cf1ab9086e50' AND "clubhouse_memberships"."organization_id" = 'fcb26a51-31d9-45f4-97e3-eca0a72b5a7f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84f6c6f1-bc15-49e8-91ec-cf1ab9086e50"], ["organization_id", "fcb26a51-31d9-45f4-97e3-eca0a72b5a7f"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.315451"], ["updated_at", "2015-07-06 21:15:23.315451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '410dadd1-ed97-4285-8f51-01ece7661d87' AND "clubhouse_memberships"."organization_id" = 'fcb26a51-31d9-45f4-97e3-eca0a72b5a7f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "410dadd1-ed97-4285-8f51-01ece7661d87"], ["organization_id", "fcb26a51-31d9-45f4-97e3-eca0a72b5a7f"], ["created_at", "2015-07-06 21:15:23.319371"], ["updated_at", "2015-07-06 21:15:23.319371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/fcb26a51-31d9-45f4-97e3-eca0a72b5a7f/memberships" for 127.0.0.1 at 2015-07-06 14:15:23 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"fcb26a51-31d9-45f4-97e3-eca0a72b5a7f", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:15:23.322602') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ee986f5a-1018-47a2-88af-e193dfd01013"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:15:23.325123"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:15:23.326406"], ["id", "ee986f5a-1018-47a2-88af-e193dfd01013"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "fcb26a51-31d9-45f4-97e3-eca0a72b5a7f"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "84f6c6f1-bc15-49e8-91ec-cf1ab9086e50"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '84f6c6f1-bc15-49e8-91ec-cf1ab9086e50' LIMIT 1 [["organization_id", "fcb26a51-31d9-45f4-97e3-eca0a72b5a7f"]] Clubhouse::Membership Load (0.7ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "fcb26a51-31d9-45f4-97e3-eca0a72b5a7f"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "84f6c6f1-bc15-49e8-91ec-cf1ab9086e50"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "410dadd1-ed97-4285-8f51-01ece7661d87"]] Completed 200 OK in 19ms (Views: 4.8ms | ActiveRecord: 3.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 142"], ["email", "user.142@example.com"], ["password_digest", "$2a$04$tdh1/Fynl3Qn4./84hoPwON4KpKy6W4lZzVbbzJvB2wZ5s.kRvLdy"], ["created_at", "2015-07-06 21:15:23.350029"], ["updated_at", "2015-07-06 21:15:23.350029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 143"], ["email", "user.143@example.com"], ["password_digest", "$2a$04$exfcTZxuk0QunHHY1YcD8e1rXBgagB2XXFPi4/hHmuuPdfiwqWZ3S"], ["created_at", "2015-07-06 21:15:23.356064"], ["updated_at", "2015-07-06 21:15:23.356064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:15:23.357826"], ["user_id", "4424c9c8-3674-49e9-9d79-63b4f63de237"], ["created_at", "2015-07-06 21:15:23.358481"], ["updated_at", "2015-07-06 21:15:23.358481"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:15:23.363108"], ["updated_at", "2015-07-06 21:15:23.363108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4424c9c8-3674-49e9-9d79-63b4f63de237' AND "clubhouse_memberships"."organization_id" = 'bc95057d-7ccf-4899-bddf-07df37b33071') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4424c9c8-3674-49e9-9d79-63b4f63de237"], ["organization_id", "bc95057d-7ccf-4899-bddf-07df37b33071"], ["admin", "t"], ["created_at", "2015-07-06 21:15:23.369298"], ["updated_at", "2015-07-06 21:15:23.369298"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f017c3ce-6026-476e-b25d-5d86dac9ad39' AND "clubhouse_memberships"."organization_id" = 'bc95057d-7ccf-4899-bddf-07df37b33071') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f017c3ce-6026-476e-b25d-5d86dac9ad39"], ["organization_id", "bc95057d-7ccf-4899-bddf-07df37b33071"], ["created_at", "2015-07-06 21:15:23.373426"], ["updated_at", "2015-07-06 21:15:23.373426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:15:23 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (1.9ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.003818"], ["updated_at", "2015-07-06 21:17:24.003818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '673ec354-8559-4103-ba89-c80b43964341') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "673ec354-8559-4103-ba89-c80b43964341"], ["created_at", "2015-07-06 21:17:24.027270"], ["updated_at", "2015-07-06 21:17:24.027270"], ["token", "wP8Wt2EqA7JVomydORiovw-MLd1vuVIr8ZulFPyF-bI"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (4.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 97.6ms Sent mail to john@example.com (23.0ms) Date: Mon, 06 Jul 2015 14:17:24 -0700 From: from@example.com To: john@example.com Message-ID: <559af064251c0_108ea3ff6904602006689@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/wP8Wt2EqA7JVomydORiovw-MLd1vuVIr8ZulFPyF-bI?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (1.8ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.180618"], ["updated_at", "2015-07-06 21:17:24.180618"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'c6bd0e55-f1f4-4f25-af20-0518926a0996') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "c6bd0e55-f1f4-4f25-af20-0518926a0996"], ["created_at", "2015-07-06 21:17:24.198696"], ["updated_at", "2015-07-06 21:17:24.198696"], ["token", "ujDPEGfOh_pDBr5gd0OqEz8lxmxvSQbO3HuneruNvGY"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.7ms) Clubhouse::Mailer#invitation: processed outbound mail in 6.9ms Sent mail to john@example.com (6.8ms) Date: Mon, 06 Jul 2015 14:17:24 -0700 From: from@example.com To: john@example.com Message-ID: <559af06433a84_108ea3ff690460200669d8@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/ujDPEGfOh_pDBr5gd0OqEz8lxmxvSQbO3HuneruNvGY?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.4ms) ROLLBACK  (1.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (3.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.238903"], ["updated_at", "2015-07-06 21:17:24.238903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'a1372977-7bf5-40d1-99bc-9fdc51b96a49') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "a1372977-7bf5-40d1-99bc-9fdc51b96a49"], ["created_at", "2015-07-06 21:17:24.252810"], ["updated_at", "2015-07-06 21:17:24.252810"], ["token", "Q_J8fm1wL2YEUbZQP422fXBTjMXg_igkOWwvQ4S14EE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.5ms Sent mail to john@example.com (2.3ms) Date: Mon, 06 Jul 2015 14:17:24 -0700 From: from@example.com To: john@example.com Message-ID: <559af0643f19a_108ea3ff6904602006705a@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/Q_J8fm1wL2YEUbZQP422fXBTjMXg_igkOWwvQ4S14EE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.275223"], ["updated_at", "2015-07-06 21:17:24.275223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '931235bd-bf77-4a97-91bd-2c10e13ac449') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "931235bd-bf77-4a97-91bd-2c10e13ac449"], ["created_at", "2015-07-06 21:17:24.286485"], ["updated_at", "2015-07-06 21:17:24.286485"], ["token", "pxWzCfFTP6ps1DDSSkxqp78hK4IOM03oot5y--yOB10"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.6ms) Clubhouse::Mailer#invitation: processed outbound mail in 4.8ms Sent mail to john@example.com (2.4ms) Date: Mon, 06 Jul 2015 14:17:24 -0700 From: from@example.com To: john@example.com Message-ID: <559af06449c4a_108ea3ff6904602006719@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/pxWzCfFTP6ps1DDSSkxqp78hK4IOM03oot5y--yOB10?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.327576"], ["updated_at", "2015-07-06 21:17:24.327576"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '83dbd229-a700-4f83-8fca-be82bba6010d') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "83dbd229-a700-4f83-8fca-be82bba6010d"], ["created_at", "2015-07-06 21:17:24.335015"], ["updated_at", "2015-07-06 21:17:24.335015"], ["token", "4KBLT_3JC6133YMiFcE8kKs-FplZ0VDireJquOd5XLg"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.365474"], ["updated_at", "2015-07-06 21:17:24.365474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '861e4409-ba43-420a-92c6-f4b3a679e57b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "861e4409-ba43-420a-92c6-f4b3a679e57b"], ["created_at", "2015-07-06 21:17:24.374268"], ["updated_at", "2015-07-06 21:17:24.374268"], ["token", "jx1ZqJ-IwSQb6Dm3FnHM22lxzPHaUuFuvL6lWl2xVKQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.6ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "861e4409-ba43-420a-92c6-f4b3a679e57b"]] Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '861e4409-ba43-420a-92c6-f4b3a679e57b') LIMIT 1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (1.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "861e4409-ba43-420a-92c6-f4b3a679e57c"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '861e4409-ba43-420a-92c6-f4b3a679e57c') LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.427940"], ["updated_at", "2015-07-06 21:17:24.427940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.453914"], ["updated_at", "2015-07-06 21:17:24.453914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.468126"], ["updated_at", "2015-07-06 21:17:24.468126"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.508848"], ["updated_at", "2015-07-06 21:17:24.508848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.520201"], ["updated_at", "2015-07-06 21:17:24.520201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "811dde8f-1a20-4cce-ba02-9e5f9b17ab22"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$DaQOqFxiDeMFsPaikfTVmeTNeiyIKxtKpyUV5asogrbSFG7ThDzXm"], ["created_at", "2015-07-06 21:17:24.541077"], ["updated_at", "2015-07-06 21:17:24.541077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.546456"], ["updated_at", "2015-07-06 21:17:24.546456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a77b233d-c53b-4846-a8bf-a53bf20c0177' AND "clubhouse_memberships"."organization_id" = 'd1761d38-f195-4d15-b66a-33a1a677359c') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a77b233d-c53b-4846-a8bf-a53bf20c0177"], ["organization_id", "d1761d38-f195-4d15-b66a-33a1a677359c"], ["admin", "t"], ["created_at", "2015-07-06 21:17:24.556910"], ["updated_at", "2015-07-06 21:17:24.556910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a77b233d-c53b-4846-a8bf-a53bf20c0177' LIMIT 1 [["organization_id", "d1761d38-f195-4d15-b66a-33a1a677359c"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$.bJ7u8Cx2r1UIj8INibSw.B/ShG7gTO5uT3XoGUF.VxgtELFRklku"], ["created_at", "2015-07-06 21:17:24.576592"], ["updated_at", "2015-07-06 21:17:24.576592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.581264"], ["updated_at", "2015-07-06 21:17:24.581264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '91163664-cdf4-42d0-86f4-beb6e5bdab34' AND "clubhouse_memberships"."organization_id" = 'f2a4c3ec-6144-4f06-a7c3-1bbaa5f22e44') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "91163664-cdf4-42d0-86f4-beb6e5bdab34"], ["organization_id", "f2a4c3ec-6144-4f06-a7c3-1bbaa5f22e44"], ["admin", "t"], ["created_at", "2015-07-06 21:17:24.584827"], ["updated_at", "2015-07-06 21:17:24.584827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '91163664-cdf4-42d0-86f4-beb6e5bdab34' LIMIT 1 [["organization_id", "f2a4c3ec-6144-4f06-a7c3-1bbaa5f22e44"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$xEUybi1p9tKRO0ulgcKaa.wqaLc/zrAabxtAqhoPx.iUkE6.VQXTy"], ["created_at", "2015-07-06 21:17:24.596406"], ["updated_at", "2015-07-06 21:17:24.596406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.600276"], ["updated_at", "2015-07-06 21:17:24.600276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1108bac1-da10-4750-b6e1-9a1ce4d31d57' AND "clubhouse_memberships"."organization_id" = '4490e44d-69ac-4ecf-91ab-b5fc724840ea') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1108bac1-da10-4750-b6e1-9a1ce4d31d57"], ["organization_id", "4490e44d-69ac-4ecf-91ab-b5fc724840ea"], ["admin", "t"], ["created_at", "2015-07-06 21:17:24.605385"], ["updated_at", "2015-07-06 21:17:24.605385"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '1108bac1-da10-4750-b6e1-9a1ce4d31d57' LIMIT 1 [["organization_id", "4490e44d-69ac-4ecf-91ab-b5fc724840ea"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$aGsWMTocOWOZdskhEqO1BuFfVhnSJdGeBy3AoLZra.f5QGrA6cOiC"], ["created_at", "2015-07-06 21:17:24.615175"], ["updated_at", "2015-07-06 21:17:24.615175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.621148"], ["updated_at", "2015-07-06 21:17:24.621148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '796b8acb-c452-45a3-887d-b35d2b44b658' AND "clubhouse_memberships"."organization_id" = 'b05973d8-eca6-48fd-9f99-daed5cf1d4ed') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "796b8acb-c452-45a3-887d-b35d2b44b658"], ["organization_id", "b05973d8-eca6-48fd-9f99-daed5cf1d4ed"], ["admin", "t"], ["created_at", "2015-07-06 21:17:24.625442"], ["updated_at", "2015-07-06 21:17:24.625442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$elHYJHDBc3dCTjJl35flSey8YKXe5ed9UjV2q5Q/g9pge/QoXsBHa"], ["created_at", "2015-07-06 21:17:24.632556"], ["updated_at", "2015-07-06 21:17:24.632556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.637747"], ["updated_at", "2015-07-06 21:17:24.637747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b209ee29-5363-4731-a168-0c9384115280' AND "clubhouse_memberships"."organization_id" = 'fb96afeb-2edb-4a20-82bd-25a36ce64660') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b209ee29-5363-4731-a168-0c9384115280"], ["organization_id", "fb96afeb-2edb-4a20-82bd-25a36ce64660"], ["admin", "t"], ["created_at", "2015-07-06 21:17:24.641876"], ["updated_at", "2015-07-06 21:17:24.641876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (1.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (1.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$C9IpieapisBmf9wMcVEmB.Ev3otEriRdot5lTV.qfDFG48TGAY8EC"], ["created_at", "2015-07-06 21:17:24.657125"], ["updated_at", "2015-07-06 21:17:24.657125"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$wJxLCYqImGNnH2GBpF9AXOVofXtKUfPB9IbeGtaBBMqkwoAK8hOam"], ["created_at", "2015-07-06 21:17:24.683613"], ["updated_at", "2015-07-06 21:17:24.683613"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.695383"], ["updated_at", "2015-07-06 21:17:24.695383"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ce2942b-ec8a-4aea-9d8f-23fd1243c198' AND "clubhouse_memberships"."organization_id" = 'ad011877-8e98-4f31-b862-bcdcaaba5b26') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7ce2942b-ec8a-4aea-9d8f-23fd1243c198"], ["organization_id", "ad011877-8e98-4f31-b862-bcdcaaba5b26"], ["created_at", "2015-07-06 21:17:24.703015"], ["updated_at", "2015-07-06 21:17:24.703015"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$P/FTYIUM32UEcARj7Qavs.YgzqHXwwRgDWUsL2.r.ITLFB6VvwqXa"], ["created_at", "2015-07-06 21:17:24.720489"], ["updated_at", "2015-07-06 21:17:24.720489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.732394"], ["updated_at", "2015-07-06 21:17:24.732394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ba1a549-b2ee-48ee-948a-0e3158d39394' AND "clubhouse_memberships"."organization_id" = 'f7e8b028-c20c-4209-87d1-b4fb0d4d9b92') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3ba1a549-b2ee-48ee-948a-0e3158d39394"], ["organization_id", "f7e8b028-c20c-4209-87d1-b4fb0d4d9b92"], ["created_at", "2015-07-06 21:17:24.740811"], ["updated_at", "2015-07-06 21:17:24.740811"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '3ba1a549-b2ee-48ee-948a-0e3158d39394' LIMIT 1 [["organization_id", "f7e8b028-c20c-4209-87d1-b4fb0d4d9b92"], ["admin", "t"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$wNTf8e.o2v9CRA5O/F4YE.mJWziRjn//7lrbc4U52F.fqmJ162CCi"], ["created_at", "2015-07-06 21:17:24.760158"], ["updated_at", "2015-07-06 21:17:24.760158"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.769089"], ["updated_at", "2015-07-06 21:17:24.769089"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d78e1d0-f256-40d1-a64d-6240a434a104' AND "clubhouse_memberships"."organization_id" = '44bcc34c-0bda-4fab-a70f-691df9ee40fd') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6d78e1d0-f256-40d1-a64d-6240a434a104"], ["organization_id", "44bcc34c-0bda-4fab-a70f-691df9ee40fd"], ["created_at", "2015-07-06 21:17:24.781760"], ["updated_at", "2015-07-06 21:17:24.781760"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6d78e1d0-f256-40d1-a64d-6240a434a104' LIMIT 1 [["organization_id", "44bcc34c-0bda-4fab-a70f-691df9ee40fd"], ["admin", "t"]]  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (4.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$FeYkG/QOYiEY/QGO1/87MeSYQg2nQ.wq.9SCBTxPrthEw8MC2Poqa"], ["created_at", "2015-07-06 21:17:24.808942"], ["updated_at", "2015-07-06 21:17:24.808942"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.820045"], ["updated_at", "2015-07-06 21:17:24.820045"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6256b538-bc70-4a29-b146-e0acc7649907' AND "clubhouse_memberships"."organization_id" = 'a58824f5-2897-4852-8a14-71342cedc655') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6256b538-bc70-4a29-b146-e0acc7649907"], ["organization_id", "a58824f5-2897-4852-8a14-71342cedc655"], ["created_at", "2015-07-06 21:17:24.831283"], ["updated_at", "2015-07-06 21:17:24.831283"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6256b538-bc70-4a29-b146-e0acc7649907' LIMIT 1 [["organization_id", "a58824f5-2897-4852-8a14-71342cedc655"]]  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$BHqGEY3XFRG2ZchBVy0co.R1EFQqfe4LzssknahmMdQwPwGFTtwXa"], ["created_at", "2015-07-06 21:17:24.856930"], ["updated_at", "2015-07-06 21:17:24.856930"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.865952"], ["updated_at", "2015-07-06 21:17:24.865952"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6eb6d06-9e3c-4de4-b3ec-1a65334f94f2' AND "clubhouse_memberships"."organization_id" = '64e56afe-3fc9-469a-a942-bf11f5da8419') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d6eb6d06-9e3c-4de4-b3ec-1a65334f94f2"], ["organization_id", "64e56afe-3fc9-469a-a942-bf11f5da8419"], ["created_at", "2015-07-06 21:17:24.879350"], ["updated_at", "2015-07-06 21:17:24.879350"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$gHBKvPBA3dASFpQw5WMeFOt0y8HwJ1tfmsnN2HEg8erCf.w8JqE3S"], ["created_at", "2015-07-06 21:17:24.899925"], ["updated_at", "2015-07-06 21:17:24.899925"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.909537"], ["updated_at", "2015-07-06 21:17:24.909537"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b7575fa9-f853-4071-b3aa-45033f1f2e71' LIMIT 1 [["organization_id", "8a3efb8f-b678-426c-ba45-2de7cb8f1cc5"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$0KwUedPGlc9EQRj2zCClNebAPF.MEG.dGD9mv9TeTh99mjwou8W3O"], ["created_at", "2015-07-06 21:17:24.921563"], ["updated_at", "2015-07-06 21:17:24.921563"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.930765"], ["updated_at", "2015-07-06 21:17:24.930765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$p59YfnR4cSE2tJXK7SUL4Ocek.zKS1j90ILma4I84Y.bFi4.kX7jC"], ["created_at", "2015-07-06 21:17:24.938868"], ["updated_at", "2015-07-06 21:17:24.938868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.943972"], ["updated_at", "2015-07-06 21:17:24.943972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$t8ibm1p5QhpNuQ7hki9iD.Fvz8V4Xqj8dETpUG5zHXlvnPD6juWXe"], ["created_at", "2015-07-06 21:17:24.952048"], ["updated_at", "2015-07-06 21:17:24.952048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.957141"], ["updated_at", "2015-07-06 21:17:24.957141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1eb9fc2d-9dbc-495b-ae1a-9ec42fb7adb2' LIMIT 1 [["organization_id", "b72114ae-c5bb-43c9-b2ec-4816edb10543"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$o02O1egcMPpnJTmhodWCZOCUK.v3k4WGrDhKOo10aSHdZVoSbUZ42"], ["created_at", "2015-07-06 21:17:24.966082"], ["updated_at", "2015-07-06 21:17:24.966082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:24.971204"], ["updated_at", "2015-07-06 21:17:24.971204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e276ca0b-758c-42b6-bfa1-bf1d4e9f2a04' LIMIT 1 [["organization_id", "35dae339-e774-42ec-82e0-fcce07692760"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$j2vl7fahvySqsagByOJaK.MhBxYxGgEf2Dvm7yZ.Fmr2d6wAKqTwm"], ["created_at", "2015-07-06 21:17:24.981874"], ["updated_at", "2015-07-06 21:17:24.981874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$nPkOtv8NmJW.130YRQwIzeij3EeP3EGRjH3oM/IRCc83xL8ZHVgMC"], ["created_at", "2015-07-06 21:17:24.987898"], ["updated_at", "2015-07-06 21:17:24.987898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:24.999242"], ["user_id", "1b1517a9-032d-4fdf-ba05-0d3a316e9323"], ["created_at", "2015-07-06 21:17:25.000146"], ["updated_at", "2015-07-06 21:17:25.000146"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.016986"], ["updated_at", "2015-07-06 21:17:25.016986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1b1517a9-032d-4fdf-ba05-0d3a316e9323' AND "clubhouse_memberships"."organization_id" = '791c22b3-572d-4805-99ee-242f270c3a21') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1b1517a9-032d-4fdf-ba05-0d3a316e9323"], ["organization_id", "791c22b3-572d-4805-99ee-242f270c3a21"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.020733"], ["updated_at", "2015-07-06 21:17:25.020733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd11e316d-06bd-4b99-b25c-f1f7ba653b9e' AND "clubhouse_memberships"."organization_id" = '791c22b3-572d-4805-99ee-242f270c3a21') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d11e316d-06bd-4b99-b25c-f1f7ba653b9e"], ["organization_id", "791c22b3-572d-4805-99ee-242f270c3a21"], ["created_at", "2015-07-06 21:17:25.024055"], ["updated_at", "2015-07-06 21:17:25.024055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/791c22b3-572d-4805-99ee-242f270c3a21/memberships" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"791c22b3-572d-4805-99ee-242f270c3a21", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:25.043292') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3861185c-352e-4508-b8bd-159204d516ab"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:25.045122"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:25.045999"], ["id", "3861185c-352e-4508-b8bd-159204d516ab"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "791c22b3-572d-4805-99ee-242f270c3a21"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1b1517a9-032d-4fdf-ba05-0d3a316e9323"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '1b1517a9-032d-4fdf-ba05-0d3a316e9323' LIMIT 1 [["organization_id", "791c22b3-572d-4805-99ee-242f270c3a21"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "791c22b3-572d-4805-99ee-242f270c3a21"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1b1517a9-032d-4fdf-ba05-0d3a316e9323"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d11e316d-06bd-4b99-b25c-f1f7ba653b9e"]] Completed 200 OK in 35ms (Views: 22.9ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$hu0JJav24O5D36GyXA7lNu1rSVotsezfXGlN1VCbGkV4I35yiq6GK"], ["created_at", "2015-07-06 21:17:25.130265"], ["updated_at", "2015-07-06 21:17:25.130265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$c9JESmh8uNtaUxdoyysjnO7QaGYndZaZ7itrs4Y85IBWpXnSWhzPG"], ["created_at", "2015-07-06 21:17:25.136925"], ["updated_at", "2015-07-06 21:17:25.136925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.139548"], ["user_id", "e5fa0483-6ec4-44f6-af42-a086171e3b72"], ["created_at", "2015-07-06 21:17:25.140627"], ["updated_at", "2015-07-06 21:17:25.140627"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.146519"], ["updated_at", "2015-07-06 21:17:25.146519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5fa0483-6ec4-44f6-af42-a086171e3b72' AND "clubhouse_memberships"."organization_id" = '01bc68c1-6838-450f-97a2-e59baff53715') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5fa0483-6ec4-44f6-af42-a086171e3b72"], ["organization_id", "01bc68c1-6838-450f-97a2-e59baff53715"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.151175"], ["updated_at", "2015-07-06 21:17:25.151175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b68d1da7-b61b-44be-92dd-a5977bead361' AND "clubhouse_memberships"."organization_id" = '01bc68c1-6838-450f-97a2-e59baff53715') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b68d1da7-b61b-44be-92dd-a5977bead361"], ["organization_id", "01bc68c1-6838-450f-97a2-e59baff53715"], ["created_at", "2015-07-06 21:17:25.156375"], ["updated_at", "2015-07-06 21:17:25.156375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$1Af.dprTnfeYKwxHDPd58eB.5jUHw7IdXtHweJ0GECme3sqXxJIzS"], ["created_at", "2015-07-06 21:17:25.169295"], ["updated_at", "2015-07-06 21:17:25.169295"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$48n6B/nsRUNF7RwLiYvLne4n4OGJxJXgvXXMmVzDfucz7cxhtptNq"], ["created_at", "2015-07-06 21:17:25.177807"], ["updated_at", "2015-07-06 21:17:25.177807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.179683"], ["user_id", "bed7054b-2295-4274-afd9-7941e544e55d"], ["created_at", "2015-07-06 21:17:25.180343"], ["updated_at", "2015-07-06 21:17:25.180343"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.185664"], ["updated_at", "2015-07-06 21:17:25.185664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bed7054b-2295-4274-afd9-7941e544e55d' AND "clubhouse_memberships"."organization_id" = '510a6e7f-3763-429a-b6f8-afadff6a3318') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bed7054b-2295-4274-afd9-7941e544e55d"], ["organization_id", "510a6e7f-3763-429a-b6f8-afadff6a3318"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.191626"], ["updated_at", "2015-07-06 21:17:25.191626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '26d572b2-4592-4825-bab1-22feb60961a0' AND "clubhouse_memberships"."organization_id" = '510a6e7f-3763-429a-b6f8-afadff6a3318') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "26d572b2-4592-4825-bab1-22feb60961a0"], ["organization_id", "510a6e7f-3763-429a-b6f8-afadff6a3318"], ["created_at", "2015-07-06 21:17:25.195189"], ["updated_at", "2015-07-06 21:17:25.195189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$Y.hD2GPxs3izDBXkAeQqZeA.XfWBpECniML8JK9EBjALLRxLATDMC"], ["created_at", "2015-07-06 21:17:25.202130"], ["updated_at", "2015-07-06 21:17:25.202130"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.204849"], ["user_id", "0ca3bd7d-41c3-4d08-90f5-42274253e84d"], ["created_at", "2015-07-06 21:17:25.206499"], ["updated_at", "2015-07-06 21:17:25.206499"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '510a6e7f-3763-429a-b6f8-afadff6a3318') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "510a6e7f-3763-429a-b6f8-afadff6a3318"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.212920"], ["updated_at", "2015-07-06 21:17:25.212920"], ["token", "gsnBDyxgRNH8MxvkgfeR_K0GQGuRo9V1YWPf6spoAhk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$6jliOQ0vrX8Gnrzu0t0FhOhhMwkPnSchj2aV4Rpu7HIa2tHzuZmg."], ["created_at", "2015-07-06 21:17:25.225796"], ["updated_at", "2015-07-06 21:17:25.225796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$dvH8P0/vfPG8aXBbyMrGauIq7OIffVd4pascSZ213lAXPqIpZnohK"], ["created_at", "2015-07-06 21:17:25.232080"], ["updated_at", "2015-07-06 21:17:25.232080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.234705"], ["user_id", "39df1d5f-86a8-46ae-a1c9-4c43b8881150"], ["created_at", "2015-07-06 21:17:25.235657"], ["updated_at", "2015-07-06 21:17:25.235657"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.242132"], ["updated_at", "2015-07-06 21:17:25.242132"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39df1d5f-86a8-46ae-a1c9-4c43b8881150' AND "clubhouse_memberships"."organization_id" = 'e06a7ee3-3608-4e5d-9229-eafc6b429c32') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39df1d5f-86a8-46ae-a1c9-4c43b8881150"], ["organization_id", "e06a7ee3-3608-4e5d-9229-eafc6b429c32"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.246657"], ["updated_at", "2015-07-06 21:17:25.246657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07659037-a0c5-46ef-bd53-430112849821' AND "clubhouse_memberships"."organization_id" = 'e06a7ee3-3608-4e5d-9229-eafc6b429c32') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "07659037-a0c5-46ef-bd53-430112849821"], ["organization_id", "e06a7ee3-3608-4e5d-9229-eafc6b429c32"], ["created_at", "2015-07-06 21:17:25.250441"], ["updated_at", "2015-07-06 21:17:25.250441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$/oHdVCoKZPZEVUeSf4XfxuXAbOBXwtSLFVJ4wnzYuFmqUbuM9PHCu"], ["created_at", "2015-07-06 21:17:25.258332"], ["updated_at", "2015-07-06 21:17:25.258332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.260618"], ["user_id", "47152077-669e-408c-820d-7cccb136b5e2"], ["created_at", "2015-07-06 21:17:25.261301"], ["updated_at", "2015-07-06 21:17:25.261301"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'e06a7ee3-3608-4e5d-9229-eafc6b429c32') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "e06a7ee3-3608-4e5d-9229-eafc6b429c32"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.266566"], ["updated_at", "2015-07-06 21:17:25.266566"], ["token", "YzZFWzeIhhA_pTbnywVzjjFWHU9rrM8UGX0HVyMOM3Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e06a7ee3-3608-4e5d-9229-eafc6b429c32/memberships" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"e06a7ee3-3608-4e5d-9229-eafc6b429c32", "membership"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:25.269640') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "01fa9249-8eac-407d-a1c8-e67ad4481a80"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:25.271889"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:25.272820"], ["id", "01fa9249-8eac-407d-a1c8-e67ad4481a80"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e06a7ee3-3608-4e5d-9229-eafc6b429c32"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "47152077-669e-408c-820d-7cccb136b5e2"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$rKKS6WfcdNG05wjP7F6PFeF1cx1QWKuDyV.DHCAR68mHGIvO4Beoy"], ["created_at", "2015-07-06 21:17:25.289409"], ["updated_at", "2015-07-06 21:17:25.289409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$gAgs6mXeeLf2nvu2mfLJ3e0tQ6L4epExjxT5eZ92sig9kMmcqvp2W"], ["created_at", "2015-07-06 21:17:25.295929"], ["updated_at", "2015-07-06 21:17:25.295929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.297699"], ["user_id", "6f9237bb-f974-44ff-a541-ea333b4daf12"], ["created_at", "2015-07-06 21:17:25.298339"], ["updated_at", "2015-07-06 21:17:25.298339"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.302782"], ["updated_at", "2015-07-06 21:17:25.302782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f9237bb-f974-44ff-a541-ea333b4daf12' AND "clubhouse_memberships"."organization_id" = '2b7b0782-6d7b-4aab-897c-aa052eb4a720') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f9237bb-f974-44ff-a541-ea333b4daf12"], ["organization_id", "2b7b0782-6d7b-4aab-897c-aa052eb4a720"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.306656"], ["updated_at", "2015-07-06 21:17:25.306656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bf61cec-b841-4750-bccf-b64f3e03cf46' AND "clubhouse_memberships"."organization_id" = '2b7b0782-6d7b-4aab-897c-aa052eb4a720') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6bf61cec-b841-4750-bccf-b64f3e03cf46"], ["organization_id", "2b7b0782-6d7b-4aab-897c-aa052eb4a720"], ["created_at", "2015-07-06 21:17:25.309827"], ["updated_at", "2015-07-06 21:17:25.309827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$tB/vElOOeHWPCVcbSN5Iq.bhT8aQ4U59sy9hqVsA.c7I194K/Fqvm"], ["created_at", "2015-07-06 21:17:25.315566"], ["updated_at", "2015-07-06 21:17:25.315566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.317155"], ["user_id", "95756fe7-4998-43da-b457-33025efafaac"], ["created_at", "2015-07-06 21:17:25.317997"], ["updated_at", "2015-07-06 21:17:25.317997"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '2b7b0782-6d7b-4aab-897c-aa052eb4a720') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "2b7b0782-6d7b-4aab-897c-aa052eb4a720"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.324229"], ["updated_at", "2015-07-06 21:17:25.324229"], ["token", "iogDXXUquC9b08IQA1Cuu7aNwnTdwgxM6f-CFL8myQk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2b7b0782-6d7b-4aab-897c-aa052eb4a720/memberships" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"iogDXXUquC9b08IQA1Cuu7aNwnTdwgxM6f-CFL8myQk", "organization_id"=>"2b7b0782-6d7b-4aab-897c-aa052eb4a720", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:25.327767') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9c6115b0-1557-4418-ba6c-a970e2e2d0ae"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:25.329242"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:25.329968"], ["id", "9c6115b0-1557-4418-ba6c-a970e2e2d0ae"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2b7b0782-6d7b-4aab-897c-aa052eb4a720"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "95756fe7-4998-43da-b457-33025efafaac"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "iogDXXUquC9b08IQA1Cuu7aNwnTdwgxM6f-CFL8myQk"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2b7b0782-6d7b-4aab-897c-aa052eb4a720"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '95756fe7-4998-43da-b457-33025efafaac' AND "clubhouse_memberships"."organization_id" = '2b7b0782-6d7b-4aab-897c-aa052eb4a720') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "2b7b0782-6d7b-4aab-897c-aa052eb4a720"], ["member_id", "95756fe7-4998-43da-b457-33025efafaac"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.337261"], ["updated_at", "2015-07-06 21:17:25.337261"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "5769ef76-c789-448f-b9c3-c2f9f91bcbcd"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$HVRemBCms1Cp1S66sgEUQe3HRhH3m15u3ASKwrhfMmh/k4FDgWDcW"], ["created_at", "2015-07-06 21:17:25.348242"], ["updated_at", "2015-07-06 21:17:25.348242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$flmvs.9N1H6RjUrFInCbEOB4mNWTxItg4COxomwYldA5iAe7otPhq"], ["created_at", "2015-07-06 21:17:25.353757"], ["updated_at", "2015-07-06 21:17:25.353757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.355331"], ["user_id", "dc2cbcab-120e-44dd-b780-f6d53ea26898"], ["created_at", "2015-07-06 21:17:25.355960"], ["updated_at", "2015-07-06 21:17:25.355960"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.362483"], ["updated_at", "2015-07-06 21:17:25.362483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dc2cbcab-120e-44dd-b780-f6d53ea26898' AND "clubhouse_memberships"."organization_id" = '7933a83d-7d0f-4821-b322-9c939e606a94') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dc2cbcab-120e-44dd-b780-f6d53ea26898"], ["organization_id", "7933a83d-7d0f-4821-b322-9c939e606a94"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.365665"], ["updated_at", "2015-07-06 21:17:25.365665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e1ebd122-85b0-422e-9121-c0ed5b96f6e0' AND "clubhouse_memberships"."organization_id" = '7933a83d-7d0f-4821-b322-9c939e606a94') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e1ebd122-85b0-422e-9121-c0ed5b96f6e0"], ["organization_id", "7933a83d-7d0f-4821-b322-9c939e606a94"], ["created_at", "2015-07-06 21:17:25.368856"], ["updated_at", "2015-07-06 21:17:25.368856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$23CSwVZNRKKTDhzQdfBkQ.8jUygE0JbuuSSilFUgiglrsBgsfTym2"], ["created_at", "2015-07-06 21:17:25.379413"], ["updated_at", "2015-07-06 21:17:25.379413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$dOYBm2Zt8MWsHvC//CkBV.OIDvU5Z.4cEh.OXRCXlmc1KONlWlEA2"], ["created_at", "2015-07-06 21:17:25.385149"], ["updated_at", "2015-07-06 21:17:25.385149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.386936"], ["user_id", "6be76470-28df-4e97-b937-4d00278544d7"], ["created_at", "2015-07-06 21:17:25.387584"], ["updated_at", "2015-07-06 21:17:25.387584"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.391784"], ["updated_at", "2015-07-06 21:17:25.391784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6be76470-28df-4e97-b937-4d00278544d7' AND "clubhouse_memberships"."organization_id" = 'd4460a0c-52c3-427e-bf9b-58bce8696e63') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6be76470-28df-4e97-b937-4d00278544d7"], ["organization_id", "d4460a0c-52c3-427e-bf9b-58bce8696e63"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.395658"], ["updated_at", "2015-07-06 21:17:25.395658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '251ab508-1cff-47f1-acac-4f6dcb1106ce' AND "clubhouse_memberships"."organization_id" = 'd4460a0c-52c3-427e-bf9b-58bce8696e63') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "251ab508-1cff-47f1-acac-4f6dcb1106ce"], ["organization_id", "d4460a0c-52c3-427e-bf9b-58bce8696e63"], ["created_at", "2015-07-06 21:17:25.398502"], ["updated_at", "2015-07-06 21:17:25.398502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/f769cbb4-7bc2-4d0e-bf57-b76f9380fcb5" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"f769cbb4-7bc2-4d0e-bf57-b76f9380fcb5", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:25.401373') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "031e1c59-7f2d-4196-b058-5e33aeaeae67"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:25.402829"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:25.403590"], ["id", "031e1c59-7f2d-4196-b058-5e33aeaeae67"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "f769cbb4-7bc2-4d0e-bf57-b76f9380fcb5"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6be76470-28df-4e97-b937-4d00278544d7"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d4460a0c-52c3-427e-bf9b-58bce8696e63"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6be76470-28df-4e97-b937-4d00278544d7' LIMIT 1 [["organization_id", "d4460a0c-52c3-427e-bf9b-58bce8696e63"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "251ab508-1cff-47f1-acac-4f6dcb1106ce"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "f769cbb4-7bc2-4d0e-bf57-b76f9380fcb5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$DjlV/SyHhQjTkPacxbmHQ.uVtQqm1QpF5C9RM9NAZz.B0YQxMo9qq"], ["created_at", "2015-07-06 21:17:25.418207"], ["updated_at", "2015-07-06 21:17:25.418207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$U6zNLemRHHErcWPCUxCy.OJpdAmcZip9.vSrzaspW5mCyScfrcXBS"], ["created_at", "2015-07-06 21:17:25.425233"], ["updated_at", "2015-07-06 21:17:25.425233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.427483"], ["user_id", "9c6d807d-b134-4cb1-aeb2-c9837ffa25b7"], ["created_at", "2015-07-06 21:17:25.428264"], ["updated_at", "2015-07-06 21:17:25.428264"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.432766"], ["updated_at", "2015-07-06 21:17:25.432766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c6d807d-b134-4cb1-aeb2-c9837ffa25b7' AND "clubhouse_memberships"."organization_id" = '1fd27d79-1a30-4dd0-94c0-31b0adc56f55') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9c6d807d-b134-4cb1-aeb2-c9837ffa25b7"], ["organization_id", "1fd27d79-1a30-4dd0-94c0-31b0adc56f55"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.436279"], ["updated_at", "2015-07-06 21:17:25.436279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12c959f5-3017-439b-8562-fcda5c811713' AND "clubhouse_memberships"."organization_id" = '1fd27d79-1a30-4dd0-94c0-31b0adc56f55') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "12c959f5-3017-439b-8562-fcda5c811713"], ["organization_id", "1fd27d79-1a30-4dd0-94c0-31b0adc56f55"], ["created_at", "2015-07-06 21:17:25.439043"], ["updated_at", "2015-07-06 21:17:25.439043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$m4j0xxM4uB3ZMymNBHpvwOfxJ58Igrjvitw3u1m4qmRyYKg/sdNo."], ["created_at", "2015-07-06 21:17:25.448023"], ["updated_at", "2015-07-06 21:17:25.448023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$3qT/ruW1jYKZ7PuaBkEVzO0Dp0g6Z9dA5HFkYloPigmOof5pp19p2"], ["created_at", "2015-07-06 21:17:25.454859"], ["updated_at", "2015-07-06 21:17:25.454859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.456457"], ["user_id", "29050a82-8c89-4c37-ad5f-c99a9749f2f0"], ["created_at", "2015-07-06 21:17:25.457697"], ["updated_at", "2015-07-06 21:17:25.457697"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.462480"], ["updated_at", "2015-07-06 21:17:25.462480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '29050a82-8c89-4c37-ad5f-c99a9749f2f0' AND "clubhouse_memberships"."organization_id" = '8767c492-548c-417a-a55c-a6fdfa1998df') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "29050a82-8c89-4c37-ad5f-c99a9749f2f0"], ["organization_id", "8767c492-548c-417a-a55c-a6fdfa1998df"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.467487"], ["updated_at", "2015-07-06 21:17:25.467487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b1b3c5c0-3075-44e7-ade9-2ab5d63c3c25' AND "clubhouse_memberships"."organization_id" = '8767c492-548c-417a-a55c-a6fdfa1998df') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b1b3c5c0-3075-44e7-ade9-2ab5d63c3c25"], ["organization_id", "8767c492-548c-417a-a55c-a6fdfa1998df"], ["created_at", "2015-07-06 21:17:25.471330"], ["updated_at", "2015-07-06 21:17:25.471330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/815b0265-5adb-4348-8c53-67834bc233c6" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"815b0265-5adb-4348-8c53-67834bc233c6", "membership"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:25.476720') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c168e9a7-3243-49a2-9170-af2f2b53161b"]]  (0.5ms) SAVEPOINT active_record_1 SQL (2.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:25.479625"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:25.482842"], ["id", "c168e9a7-3243-49a2-9170-af2f2b53161b"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (1.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "815b0265-5adb-4348-8c53-67834bc233c6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "29050a82-8c89-4c37-ad5f-c99a9749f2f0"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8767c492-548c-417a-a55c-a6fdfa1998df"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '29050a82-8c89-4c37-ad5f-c99a9749f2f0' LIMIT 1 [["organization_id", "8767c492-548c-417a-a55c-a6fdfa1998df"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "29050a82-8c89-4c37-ad5f-c99a9749f2f0"]] Completed 200 OK in 23ms (Views: 3.0ms | ActiveRecord: 5.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$GzTFiFBaQAuv.KfD.wVvHubqmIr.BeqvRAyTCYf9.lX7ovlYC.7R."], ["created_at", "2015-07-06 21:17:25.515368"], ["updated_at", "2015-07-06 21:17:25.515368"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 39"], ["email", "user.39@example.com"], ["password_digest", "$2a$04$QvrMxK2EGaveJjUO84OCPeJrzdb3ud3ELLNl0Iv21gbRi.rcrFwxy"], ["created_at", "2015-07-06 21:17:25.534420"], ["updated_at", "2015-07-06 21:17:25.534420"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.549462"], ["user_id", "f3358ffc-1eec-4db1-b601-851782f227e7"], ["created_at", "2015-07-06 21:17:25.556215"], ["updated_at", "2015-07-06 21:17:25.556215"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.570137"], ["updated_at", "2015-07-06 21:17:25.570137"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f3358ffc-1eec-4db1-b601-851782f227e7' AND "clubhouse_memberships"."organization_id" = '6f8f62df-af91-491d-8bb4-04ce2a7ed593') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f3358ffc-1eec-4db1-b601-851782f227e7"], ["organization_id", "6f8f62df-af91-491d-8bb4-04ce2a7ed593"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.578232"], ["updated_at", "2015-07-06 21:17:25.578232"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '324173d5-4e03-4bdf-a76f-9f0b7d8411e6' AND "clubhouse_memberships"."organization_id" = '6f8f62df-af91-491d-8bb4-04ce2a7ed593') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "324173d5-4e03-4bdf-a76f-9f0b7d8411e6"], ["organization_id", "6f8f62df-af91-491d-8bb4-04ce2a7ed593"], ["created_at", "2015-07-06 21:17:25.585533"], ["updated_at", "2015-07-06 21:17:25.585533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 40"], ["email", "user.40@example.com"], ["password_digest", "$2a$04$kQqQQuXiPzYIFPoMHO0jaeymdy9JD4QK6adT1vIZ28U8rpJ/ItXci"], ["created_at", "2015-07-06 21:17:25.597033"], ["updated_at", "2015-07-06 21:17:25.597033"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.599670"], ["user_id", "f0c05a7d-224d-4558-b68e-a6991a13ff07"], ["created_at", "2015-07-06 21:17:25.600898"], ["updated_at", "2015-07-06 21:17:25.600898"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '6f8f62df-af91-491d-8bb4-04ce2a7ed593') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "6f8f62df-af91-491d-8bb4-04ce2a7ed593"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.616092"], ["updated_at", "2015-07-06 21:17:25.616092"], ["token", "ti5Fs7qhKbMumTc9MuIN1bx17LHHJ0FZLaUs2fK64Gs"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 41"], ["email", "user.41@example.com"], ["password_digest", "$2a$04$Q6J0JIWNWN0g5/mgiHO6ZeTI5NU9q1uJo00vcTmZZ5.ixqexX5I8i"], ["created_at", "2015-07-06 21:17:25.630709"], ["updated_at", "2015-07-06 21:17:25.630709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 42"], ["email", "user.42@example.com"], ["password_digest", "$2a$04$EGdgHfJCTxcbyaqvZzHRnu6E0u6SLSY2hMlU2yX/aC8wVGkjKW9Ya"], ["created_at", "2015-07-06 21:17:25.638288"], ["updated_at", "2015-07-06 21:17:25.638288"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.640704"], ["user_id", "c1e7766f-9465-48fc-83a1-ceb0bf44167e"], ["created_at", "2015-07-06 21:17:25.642156"], ["updated_at", "2015-07-06 21:17:25.642156"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.647896"], ["updated_at", "2015-07-06 21:17:25.647896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1e7766f-9465-48fc-83a1-ceb0bf44167e' AND "clubhouse_memberships"."organization_id" = 'f3300f59-be28-4028-a7f5-071ff954419f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c1e7766f-9465-48fc-83a1-ceb0bf44167e"], ["organization_id", "f3300f59-be28-4028-a7f5-071ff954419f"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.652837"], ["updated_at", "2015-07-06 21:17:25.652837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '281bb982-7ace-4f9e-ac2f-b919f9434aa6' AND "clubhouse_memberships"."organization_id" = 'f3300f59-be28-4028-a7f5-071ff954419f') LIMIT 1 SQL (4.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "281bb982-7ace-4f9e-ac2f-b919f9434aa6"], ["organization_id", "f3300f59-be28-4028-a7f5-071ff954419f"], ["created_at", "2015-07-06 21:17:25.662009"], ["updated_at", "2015-07-06 21:17:25.662009"]]  (3.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 43"], ["email", "user.43@example.com"], ["password_digest", "$2a$04$6WI8K4p7B6.huvygY6RBcOonqmV5cbm2N2q708z6enHbvMPGFo922"], ["created_at", "2015-07-06 21:17:25.683083"], ["updated_at", "2015-07-06 21:17:25.683083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.686238"], ["user_id", "bc2e6062-853c-4af8-9546-ef0d8e4cc8b1"], ["created_at", "2015-07-06 21:17:25.687133"], ["updated_at", "2015-07-06 21:17:25.687133"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'f3300f59-be28-4028-a7f5-071ff954419f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "f3300f59-be28-4028-a7f5-071ff954419f"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.694122"], ["updated_at", "2015-07-06 21:17:25.694122"], ["token", "lOyVOksQd1u3id-8fcbGcDfjB-UkEOX5B0Qbd9Kijqc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"lOyVOksQd1u3id-8fcbGcDfjB-UkEOX5B0Qbd9Kijqc", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:25.698938') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fe1d8129-a495-48b4-8b57-0cabc22a2798"]]  (1.1ms) SAVEPOINT active_record_1 SQL (1.8ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:25.701641"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:25.705858"], ["id", "fe1d8129-a495-48b4-8b57-0cabc22a2798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc2e6062-853c-4af8-9546-ef0d8e4cc8b1"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "lOyVOksQd1u3id-8fcbGcDfjB-UkEOX5B0Qbd9Kijqc"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f3300f59-be28-4028-a7f5-071ff954419f"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc2e6062-853c-4af8-9546-ef0d8e4cc8b1' AND "clubhouse_memberships"."organization_id" = 'f3300f59-be28-4028-a7f5-071ff954419f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "f3300f59-be28-4028-a7f5-071ff954419f"], ["member_id", "bc2e6062-853c-4af8-9546-ef0d8e4cc8b1"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.716929"], ["updated_at", "2015-07-06 21:17:25.716929"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "65d9542b-0ce7-4983-a71c-fd15ef6ce0a4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 22ms (Views: 0.9ms | ActiveRecord: 5.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 44"], ["email", "user.44@example.com"], ["password_digest", "$2a$04$g.bmsgNi2rL3xiVEddnP2e/cftSwIL4YMUdvn6xnWEjWlkrSA.Jwy"], ["created_at", "2015-07-06 21:17:25.731153"], ["updated_at", "2015-07-06 21:17:25.731153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 45"], ["email", "user.45@example.com"], ["password_digest", "$2a$04$FcMn4GvBQb0REvekAmh4h.z7ZwLsk7YK1nLc2.QcRbOQbAnqa8HyG"], ["created_at", "2015-07-06 21:17:25.737914"], ["updated_at", "2015-07-06 21:17:25.737914"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.740946"], ["user_id", "30d6e908-1308-46dd-b30c-caed6aa1fce0"], ["created_at", "2015-07-06 21:17:25.741925"], ["updated_at", "2015-07-06 21:17:25.741925"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.747142"], ["updated_at", "2015-07-06 21:17:25.747142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30d6e908-1308-46dd-b30c-caed6aa1fce0' AND "clubhouse_memberships"."organization_id" = '9094730f-018f-49cb-826c-79338a88e23f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "30d6e908-1308-46dd-b30c-caed6aa1fce0"], ["organization_id", "9094730f-018f-49cb-826c-79338a88e23f"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.750641"], ["updated_at", "2015-07-06 21:17:25.750641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd2d31b8d-8ee9-4f86-bb01-93c5a5d651a4' AND "clubhouse_memberships"."organization_id" = '9094730f-018f-49cb-826c-79338a88e23f') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d2d31b8d-8ee9-4f86-bb01-93c5a5d651a4"], ["organization_id", "9094730f-018f-49cb-826c-79338a88e23f"], ["created_at", "2015-07-06 21:17:25.754226"], ["updated_at", "2015-07-06 21:17:25.754226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 46"], ["email", "user.46@example.com"], ["password_digest", "$2a$04$joOVUxokVOvhpkSCKk8JR.p.wARgBQO.c4xiohwtMviYsp6MY7zly"], ["created_at", "2015-07-06 21:17:25.762033"], ["updated_at", "2015-07-06 21:17:25.762033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.764298"], ["user_id", "9866b6c1-fd84-490b-8435-7187095f1a54"], ["created_at", "2015-07-06 21:17:25.765153"], ["updated_at", "2015-07-06 21:17:25.765153"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '9094730f-018f-49cb-826c-79338a88e23f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "9094730f-018f-49cb-826c-79338a88e23f"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.770638"], ["updated_at", "2015-07-06 21:17:25.770638"], ["token", "1GRax-RiV9TFDmfQZ7q8iHGNJIq0wNzDJxN1YU0UPTM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:25.776036') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dfc7da7f-0485-4c93-aaff-cb11cfec441d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:25.778453"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:25.780117"], ["id", "dfc7da7f-0485-4c93-aaff-cb11cfec441d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9866b6c1-fd84-490b-8435-7187095f1a54"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 13ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 47"], ["email", "user.47@example.com"], ["password_digest", "$2a$04$xMDXhRZx6Bgf2oBnAaFE2OjIjG/R5mUkF1CPl15iwFz55Jf1Nitxq"], ["created_at", "2015-07-06 21:17:25.795991"], ["updated_at", "2015-07-06 21:17:25.795991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 48"], ["email", "user.48@example.com"], ["password_digest", "$2a$04$T2pmUNJ6ZFDMPb.UylEFieHXm05jhaPbNAlYLipHJm2hUbJqWkBUy"], ["created_at", "2015-07-06 21:17:25.801700"], ["updated_at", "2015-07-06 21:17:25.801700"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.804523"], ["user_id", "3c7aec6c-c912-4ca6-b4af-6fd9cb2a5c03"], ["created_at", "2015-07-06 21:17:25.805421"], ["updated_at", "2015-07-06 21:17:25.805421"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.811025"], ["updated_at", "2015-07-06 21:17:25.811025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c7aec6c-c912-4ca6-b4af-6fd9cb2a5c03' AND "clubhouse_memberships"."organization_id" = 'e6b74953-8e64-462c-9ce5-b2ab2f0edc29') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c7aec6c-c912-4ca6-b4af-6fd9cb2a5c03"], ["organization_id", "e6b74953-8e64-462c-9ce5-b2ab2f0edc29"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.814980"], ["updated_at", "2015-07-06 21:17:25.814980"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd136c63c-7159-40d4-82c9-840ea605fc37' AND "clubhouse_memberships"."organization_id" = 'e6b74953-8e64-462c-9ce5-b2ab2f0edc29') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d136c63c-7159-40d4-82c9-840ea605fc37"], ["organization_id", "e6b74953-8e64-462c-9ce5-b2ab2f0edc29"], ["created_at", "2015-07-06 21:17:25.819505"], ["updated_at", "2015-07-06 21:17:25.819505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 49"], ["email", "user.49@example.com"], ["password_digest", "$2a$04$SGnflktBBKuSsRrQiUTMtuS7fJDpv87jIueRUpK2cSYsfRUOsTATe"], ["created_at", "2015-07-06 21:17:25.831688"], ["updated_at", "2015-07-06 21:17:25.831688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 50"], ["email", "user.50@example.com"], ["password_digest", "$2a$04$RR9S85L6AfQEobn3WSFNUuk3fi1dIFbyNvanmt/aRa3UIkNoTAQMO"], ["created_at", "2015-07-06 21:17:25.837431"], ["updated_at", "2015-07-06 21:17:25.837431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.839786"], ["user_id", "6ce3926f-c870-4526-b598-99470b652fc1"], ["created_at", "2015-07-06 21:17:25.840538"], ["updated_at", "2015-07-06 21:17:25.840538"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.845908"], ["updated_at", "2015-07-06 21:17:25.845908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ce3926f-c870-4526-b598-99470b652fc1' AND "clubhouse_memberships"."organization_id" = '33f0b045-4648-4e7d-82c0-9566756cb392') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ce3926f-c870-4526-b598-99470b652fc1"], ["organization_id", "33f0b045-4648-4e7d-82c0-9566756cb392"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.849941"], ["updated_at", "2015-07-06 21:17:25.849941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71375dc3-56bc-4121-962a-e4e7c91a2976' AND "clubhouse_memberships"."organization_id" = '33f0b045-4648-4e7d-82c0-9566756cb392') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "71375dc3-56bc-4121-962a-e4e7c91a2976"], ["organization_id", "33f0b045-4648-4e7d-82c0-9566756cb392"], ["created_at", "2015-07-06 21:17:25.854851"], ["updated_at", "2015-07-06 21:17:25.854851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:25.858538') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b4da6781-00b9-4c5d-b8f3-1ffe81c0c78d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:25.861407"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:25.862867"], ["id", "b4da6781-00b9-4c5d-b8f3-1ffe81c0c78d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ce3926f-c870-4526-b598-99470b652fc1"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6ce3926f-c870-4526-b598-99470b652fc1' LIMIT 1 [["organization_id", "33f0b045-4648-4e7d-82c0-9566756cb392"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "33f0b045-4648-4e7d-82c0-9566756cb392"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ce3926f-c870-4526-b598-99470b652fc1"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71375dc3-56bc-4121-962a-e4e7c91a2976"]] Completed 200 OK in 19ms (Views: 4.3ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 51"], ["email", "user.51@example.com"], ["password_digest", "$2a$04$wNboLhkoc0dNPO5tUc4cr.bRyxzdBtRe4K8r.yC9HjCPvdDM92QW6"], ["created_at", "2015-07-06 21:17:25.887148"], ["updated_at", "2015-07-06 21:17:25.887148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 52"], ["email", "user.52@example.com"], ["password_digest", "$2a$04$Z19N4elriV2HVibc/ESFE.xzVh.DXQmaqLEj5ih8X5uDjV7jZ8q9W"], ["created_at", "2015-07-06 21:17:25.893321"], ["updated_at", "2015-07-06 21:17:25.893321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.895500"], ["user_id", "d093d2cc-44db-40cd-8d18-09fdb00f7976"], ["created_at", "2015-07-06 21:17:25.896316"], ["updated_at", "2015-07-06 21:17:25.896316"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.901672"], ["updated_at", "2015-07-06 21:17:25.901672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd093d2cc-44db-40cd-8d18-09fdb00f7976' AND "clubhouse_memberships"."organization_id" = 'f7eed44d-4d58-45fc-8077-655ecc44c48f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d093d2cc-44db-40cd-8d18-09fdb00f7976"], ["organization_id", "f7eed44d-4d58-45fc-8077-655ecc44c48f"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.906563"], ["updated_at", "2015-07-06 21:17:25.906563"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '045566b7-44f6-419e-b451-dfc65f7a12c7' AND "clubhouse_memberships"."organization_id" = 'f7eed44d-4d58-45fc-8077-655ecc44c48f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "045566b7-44f6-419e-b451-dfc65f7a12c7"], ["organization_id", "f7eed44d-4d58-45fc-8077-655ecc44c48f"], ["created_at", "2015-07-06 21:17:25.911311"], ["updated_at", "2015-07-06 21:17:25.911311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 53"], ["email", "user.53@example.com"], ["password_digest", "$2a$04$zDGlYsCS4q.q4E9dgGMzKuf27F0P9Y9kgZF85E.cMp0vHZ3SOoroy"], ["created_at", "2015-07-06 21:17:25.922664"], ["updated_at", "2015-07-06 21:17:25.922664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 54"], ["email", "user.54@example.com"], ["password_digest", "$2a$04$sMMB5KPqXO0.Rn4nG9NZT.8hBeIYmedr32ZSMEjqdgciVU.HxZzmC"], ["created_at", "2015-07-06 21:17:25.929990"], ["updated_at", "2015-07-06 21:17:25.929990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.931926"], ["user_id", "8b2eefc3-385e-498d-9c80-e9cec0abc61e"], ["created_at", "2015-07-06 21:17:25.933079"], ["updated_at", "2015-07-06 21:17:25.933079"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.938349"], ["updated_at", "2015-07-06 21:17:25.938349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b2eefc3-385e-498d-9c80-e9cec0abc61e' AND "clubhouse_memberships"."organization_id" = '40a10cf2-37be-46b7-9607-42d1af685cab') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b2eefc3-385e-498d-9c80-e9cec0abc61e"], ["organization_id", "40a10cf2-37be-46b7-9607-42d1af685cab"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.942643"], ["updated_at", "2015-07-06 21:17:25.942643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c225add0-702f-4475-a5e2-10f4c9b8ef3e' AND "clubhouse_memberships"."organization_id" = '40a10cf2-37be-46b7-9607-42d1af685cab') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c225add0-702f-4475-a5e2-10f4c9b8ef3e"], ["organization_id", "40a10cf2-37be-46b7-9607-42d1af685cab"], ["created_at", "2015-07-06 21:17:25.946558"], ["updated_at", "2015-07-06 21:17:25.946558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/16129e4b-0726-4ba2-9132-a6bd78c584ba" for 127.0.0.1 at 2015-07-06 14:17:25 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"16129e4b-0726-4ba2-9132-a6bd78c584ba", "membership"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:25.953164') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bb7f6ac3-2e86-4014-94ef-e0f3e2380d14"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:25.955382"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:25.956498"], ["id", "bb7f6ac3-2e86-4014-94ef-e0f3e2380d14"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "16129e4b-0726-4ba2-9132-a6bd78c584ba"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8b2eefc3-385e-498d-9c80-e9cec0abc61e"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "40a10cf2-37be-46b7-9607-42d1af685cab"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '8b2eefc3-385e-498d-9c80-e9cec0abc61e' LIMIT 1 [["organization_id", "40a10cf2-37be-46b7-9607-42d1af685cab"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c225add0-702f-4475-a5e2-10f4c9b8ef3e"]] Unpermitted parameters: id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c225add0-702f-4475-a5e2-10f4c9b8ef3e' AND "clubhouse_memberships"."id" != '16129e4b-0726-4ba2-9132-a6bd78c584ba' AND "clubhouse_memberships"."organization_id" = '40a10cf2-37be-46b7-9607-42d1af685cab') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:17:25.968996"], ["id", "16129e4b-0726-4ba2-9132-a6bd78c584ba"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 1.6ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 55"], ["email", "user.55@example.com"], ["password_digest", "$2a$04$20rmMCkr0C6sI.i8ttiTCO7ZQtULnRJyDqhlrOBs/aP7X1ANFmjWu"], ["created_at", "2015-07-06 21:17:25.982584"], ["updated_at", "2015-07-06 21:17:25.982584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:25.985338"], ["user_id", "5ed60306-4398-423b-98e2-01246cb11c6d"], ["created_at", "2015-07-06 21:17:25.986474"], ["updated_at", "2015-07-06 21:17:25.986474"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:25.993443"], ["updated_at", "2015-07-06 21:17:25.993443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ed60306-4398-423b-98e2-01246cb11c6d' AND "clubhouse_memberships"."organization_id" = 'efd5fb74-d6cc-4261-aead-8d0539d1a9b0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ed60306-4398-423b-98e2-01246cb11c6d"], ["organization_id", "efd5fb74-d6cc-4261-aead-8d0539d1a9b0"], ["admin", "t"], ["created_at", "2015-07-06 21:17:25.999411"], ["updated_at", "2015-07-06 21:17:25.999411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'efd5fb74-d6cc-4261-aead-8d0539d1a9b0') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "efd5fb74-d6cc-4261-aead-8d0539d1a9b0"], ["created_at", "2015-07-06 21:17:26.004500"], ["updated_at", "2015-07-06 21:17:26.004500"], ["token", "C1cDlK1TtHdzhfkOhfTfN4warPEpaKxyr2SfxJb0Yts"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 56"], ["email", "user.56@example.com"], ["password_digest", "$2a$04$xErRr7JZWgs1AYgYSMxpMOZ1hvvYoLUmvs6uMwy29kqCfNxKsmKUa"], ["created_at", "2015-07-06 21:17:26.021658"], ["updated_at", "2015-07-06 21:17:26.021658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.023708"], ["user_id", "50d17b12-edfc-4ea7-b06e-1b287f40999a"], ["created_at", "2015-07-06 21:17:26.024396"], ["updated_at", "2015-07-06 21:17:26.024396"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.028963"], ["updated_at", "2015-07-06 21:17:26.028963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50d17b12-edfc-4ea7-b06e-1b287f40999a' AND "clubhouse_memberships"."organization_id" = 'faeff1e4-f062-4eec-b9fc-63195cbcddd9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "50d17b12-edfc-4ea7-b06e-1b287f40999a"], ["organization_id", "faeff1e4-f062-4eec-b9fc-63195cbcddd9"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.033263"], ["updated_at", "2015-07-06 21:17:26.033263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'faeff1e4-f062-4eec-b9fc-63195cbcddd9') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "faeff1e4-f062-4eec-b9fc-63195cbcddd9"], ["created_at", "2015-07-06 21:17:26.038455"], ["updated_at", "2015-07-06 21:17:26.038455"], ["token", "C33yUY82xIhd_BX194qx6nVuNSoBBMhUgjlfbANmn4s"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/88389798-1a22-44a0-813a-9e4961713a00" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"88389798-1a22-44a0-813a-9e4961713a00", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.042683') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bc0a8765-d134-4e5b-8436-50b8863d1685"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.044490"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.045798"], ["id", "bc0a8765-d134-4e5b-8436-50b8863d1685"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "88389798-1a22-44a0-813a-9e4961713a00"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "50d17b12-edfc-4ea7-b06e-1b287f40999a"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "faeff1e4-f062-4eec-b9fc-63195cbcddd9"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '50d17b12-edfc-4ea7-b06e-1b287f40999a' LIMIT 1 [["organization_id", "faeff1e4-f062-4eec-b9fc-63195cbcddd9"], ["admin", "t"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."id" != '88389798-1a22-44a0-813a-9e4961713a00' AND "clubhouse_invitations"."organization_id" = 'faeff1e4-f062-4eec-b9fc-63195cbcddd9') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:17:26.058911"], ["id", "88389798-1a22-44a0-813a-9e4961713a00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 1.9ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 57"], ["email", "user.57@example.com"], ["password_digest", "$2a$04$GZWB7yZS8mjzomuoZ73bvuW88SrvPN3uUl5K1zTRDK25UajkA5KdS"], ["created_at", "2015-07-06 21:17:26.071795"], ["updated_at", "2015-07-06 21:17:26.071795"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.074108"], ["user_id", "139408b7-c795-49b1-81f5-cb480dd64016"], ["created_at", "2015-07-06 21:17:26.074895"], ["updated_at", "2015-07-06 21:17:26.074895"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.080238"], ["updated_at", "2015-07-06 21:17:26.080238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '139408b7-c795-49b1-81f5-cb480dd64016' AND "clubhouse_memberships"."organization_id" = 'a496f649-4f58-49c1-b450-e2908aca8f0c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "139408b7-c795-49b1-81f5-cb480dd64016"], ["organization_id", "a496f649-4f58-49c1-b450-e2908aca8f0c"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.084413"], ["updated_at", "2015-07-06 21:17:26.084413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'a496f649-4f58-49c1-b450-e2908aca8f0c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "a496f649-4f58-49c1-b450-e2908aca8f0c"], ["created_at", "2015-07-06 21:17:26.089201"], ["updated_at", "2015-07-06 21:17:26.089201"], ["token", "-YKqhnhbUgEiR_eBFWhMZ1JFO7bMGZErr-cI7FXExGk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 58"], ["email", "user.58@example.com"], ["password_digest", "$2a$04$XFBNCj24Q1YRsKgBG7th2enfg8.7uAvJywk/BS4LXjgbe77CDFUJC"], ["created_at", "2015-07-06 21:17:26.099786"], ["updated_at", "2015-07-06 21:17:26.099786"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.102730"], ["user_id", "71c0a51f-8d9c-41dc-8aec-520b4294f869"], ["created_at", "2015-07-06 21:17:26.103875"], ["updated_at", "2015-07-06 21:17:26.103875"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.109416"], ["updated_at", "2015-07-06 21:17:26.109416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '71c0a51f-8d9c-41dc-8aec-520b4294f869' AND "clubhouse_memberships"."organization_id" = '7395c27d-384f-4453-b5bd-fd3207c9dd72') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "71c0a51f-8d9c-41dc-8aec-520b4294f869"], ["organization_id", "7395c27d-384f-4453-b5bd-fd3207c9dd72"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.114865"], ["updated_at", "2015-07-06 21:17:26.114865"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '7395c27d-384f-4453-b5bd-fd3207c9dd72') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "7395c27d-384f-4453-b5bd-fd3207c9dd72"], ["created_at", "2015-07-06 21:17:26.120574"], ["updated_at", "2015-07-06 21:17:26.120574"], ["token", "GtWAUAAjLkdPyzQJRQE3456n7MBmrSu_YahGgX150q8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.123874') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "df7df044-05f8-4921-b3fa-2ba5b3158c6f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.125297"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.126032"], ["id", "df7df044-05f8-4921-b3fa-2ba5b3158c6f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "71c0a51f-8d9c-41dc-8aec-520b4294f869"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '71c0a51f-8d9c-41dc-8aec-520b4294f869' LIMIT 1 [["organization_id", "7395c27d-384f-4453-b5bd-fd3207c9dd72"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '7395c27d-384f-4453-b5bd-fd3207c9dd72') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 59"], ["email", "user.59@example.com"], ["password_digest", "$2a$04$GSMqL4sBPK2K6Uysy6/EAOnacdBp3NOOdoyYfBvxbnJSXZbZl855e"], ["created_at", "2015-07-06 21:17:26.146355"], ["updated_at", "2015-07-06 21:17:26.146355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.147931"], ["user_id", "9756d2f2-95d4-46f4-bf4e-b9c53bbdb6e1"], ["created_at", "2015-07-06 21:17:26.148538"], ["updated_at", "2015-07-06 21:17:26.148538"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.153743"], ["updated_at", "2015-07-06 21:17:26.153743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9756d2f2-95d4-46f4-bf4e-b9c53bbdb6e1' AND "clubhouse_memberships"."organization_id" = '74dce594-3db2-49f9-89c5-9198eb3f298e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9756d2f2-95d4-46f4-bf4e-b9c53bbdb6e1"], ["organization_id", "74dce594-3db2-49f9-89c5-9198eb3f298e"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.157113"], ["updated_at", "2015-07-06 21:17:26.157113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '74dce594-3db2-49f9-89c5-9198eb3f298e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "74dce594-3db2-49f9-89c5-9198eb3f298e"], ["created_at", "2015-07-06 21:17:26.161781"], ["updated_at", "2015-07-06 21:17:26.161781"], ["token", "VKLPl9fCQi2yJiDToJvGaEJAtPivRGYoZg0Th2LObI4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.164516') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "eb61075e-18a5-4233-bcbd-704bd45face9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.165792"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.166764"], ["id", "eb61075e-18a5-4233-bcbd-704bd45face9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9756d2f2-95d4-46f4-bf4e-b9c53bbdb6e1"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9756d2f2-95d4-46f4-bf4e-b9c53bbdb6e1' LIMIT 1 [["organization_id", "74dce594-3db2-49f9-89c5-9198eb3f298e"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '74dce594-3db2-49f9-89c5-9198eb3f298e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "74dce594-3db2-49f9-89c5-9198eb3f298e"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.175324"], ["updated_at", "2015-07-06 21:17:26.175324"], ["token", "u2rQxfuAPSWSxx__YzVBHA6H2rTjF9hwOTys0z31P7Y"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4ff1f155-1381-44ac-aa4c-1782054bc807) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/b599919a-ffa0-44f1-bf49-18d6189ae2ab [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "b599919a-ffa0-44f1-bf49-18d6189ae2ab"]] [ActiveJob] [ActionMailer::DeliveryJob] [4ff1f155-1381-44ac-aa4c-1782054bc807] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/b599919a-ffa0-44f1-bf49-18d6189ae2ab [ActiveJob] [ActionMailer::DeliveryJob] [4ff1f155-1381-44ac-aa4c-1782054bc807] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "74dce594-3db2-49f9-89c5-9198eb3f298e"]] [ActiveJob] [ActionMailer::DeliveryJob] [4ff1f155-1381-44ac-aa4c-1782054bc807] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4ff1f155-1381-44ac-aa4c-1782054bc807] Clubhouse::Mailer#invitation: processed outbound mail in 3.2ms [ActiveJob] [ActionMailer::DeliveryJob] [4ff1f155-1381-44ac-aa4c-1782054bc807] Sent mail to email@example.com (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [4ff1f155-1381-44ac-aa4c-1782054bc807] Date: Mon, 06 Jul 2015 14:17:26 -0700 From: from@example.com To: email@example.com Message-ID: <559af06632420_108ea3ff69046020067215@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/u2rQxfuAPSWSxx__YzVBHA6H2rTjF9hwOTys0z31P7Y?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4ff1f155-1381-44ac-aa4c-1782054bc807] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.77ms Completed 201 Created in 44ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 60"], ["email", "user.60@example.com"], ["password_digest", "$2a$04$rj84cwX7bDq2bruDzSa1SePfuv0d9dtjABqCLV6rEQdnXTjdWFSEu"], ["created_at", "2015-07-06 21:17:26.216062"], ["updated_at", "2015-07-06 21:17:26.216062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.219314"], ["user_id", "b5aeea0d-6c92-44b9-a97f-83aaed639773"], ["created_at", "2015-07-06 21:17:26.223989"], ["updated_at", "2015-07-06 21:17:26.223989"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.231218"], ["updated_at", "2015-07-06 21:17:26.231218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b5aeea0d-6c92-44b9-a97f-83aaed639773' AND "clubhouse_memberships"."organization_id" = 'aa7c2fac-90b3-408b-89d5-f236879f2252') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b5aeea0d-6c92-44b9-a97f-83aaed639773"], ["organization_id", "aa7c2fac-90b3-408b-89d5-f236879f2252"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.236318"], ["updated_at", "2015-07-06 21:17:26.236318"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'aa7c2fac-90b3-408b-89d5-f236879f2252') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "aa7c2fac-90b3-408b-89d5-f236879f2252"], ["created_at", "2015-07-06 21:17:26.247026"], ["updated_at", "2015-07-06 21:17:26.247026"], ["token", "f7UucGwRkBzcfSAfFkZrE1emMOm5NtlrZ7-mt6tr5cg"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.255090') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bc1efe49-66b8-4c1b-ac80-5452dc55bd5e"]]  (0.5ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.259550"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.262738"], ["id", "bc1efe49-66b8-4c1b-ac80-5452dc55bd5e"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b5aeea0d-6c92-44b9-a97f-83aaed639773"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b5aeea0d-6c92-44b9-a97f-83aaed639773' LIMIT 1 [["organization_id", "aa7c2fac-90b3-408b-89d5-f236879f2252"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (3.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'aa7c2fac-90b3-408b-89d5-f236879f2252') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "aa7c2fac-90b3-408b-89d5-f236879f2252"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.284941"], ["updated_at", "2015-07-06 21:17:26.284941"], ["token", "Ym6GogSxG9fKiRZBgznFxJOm06D_zRDALRn-K0mtP64"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fa6b7554-bf23-44f6-9137-e236ca6a902b) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/f0c67ccd-e61b-4b48-b91f-0f45e3a451f9 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "f0c67ccd-e61b-4b48-b91f-0f45e3a451f9"]] [ActiveJob] [ActionMailer::DeliveryJob] [fa6b7554-bf23-44f6-9137-e236ca6a902b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/f0c67ccd-e61b-4b48-b91f-0f45e3a451f9 [ActiveJob] [ActionMailer::DeliveryJob] [fa6b7554-bf23-44f6-9137-e236ca6a902b] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "aa7c2fac-90b3-408b-89d5-f236879f2252"]] [ActiveJob] [ActionMailer::DeliveryJob] [fa6b7554-bf23-44f6-9137-e236ca6a902b] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [fa6b7554-bf23-44f6-9137-e236ca6a902b] Clubhouse::Mailer#invitation: processed outbound mail in 3.7ms [ActiveJob] [ActionMailer::DeliveryJob] [fa6b7554-bf23-44f6-9137-e236ca6a902b] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [fa6b7554-bf23-44f6-9137-e236ca6a902b] Date: Mon, 06 Jul 2015 14:17:26 -0700 From: from@example.com To: email@example.com Message-ID: <559af06648fc9_108ea3ff69046020067323@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Ym6GogSxG9fKiRZBgznFxJOm06D_zRDALRn-K0mtP64?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [fa6b7554-bf23-44f6-9137-e236ca6a902b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.73ms Completed 201 Created in 46ms (Views: 0.7ms | ActiveRecord: 9.6ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 61"], ["email", "user.61@example.com"], ["password_digest", "$2a$04$VQ2IZJm7RmSAjbbedd8rZeL8QHbxo/g.1NKboDzDwoKLVUZP0qaD."], ["created_at", "2015-07-06 21:17:26.311922"], ["updated_at", "2015-07-06 21:17:26.311922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.315619"], ["user_id", "19fe7934-aab5-4f06-9dcc-c6812c8dba8d"], ["created_at", "2015-07-06 21:17:26.317124"], ["updated_at", "2015-07-06 21:17:26.317124"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.332142"], ["updated_at", "2015-07-06 21:17:26.332142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '19fe7934-aab5-4f06-9dcc-c6812c8dba8d' AND "clubhouse_memberships"."organization_id" = '15914909-4aaa-40bc-9108-e24135abec0a') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "19fe7934-aab5-4f06-9dcc-c6812c8dba8d"], ["organization_id", "15914909-4aaa-40bc-9108-e24135abec0a"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.339349"], ["updated_at", "2015-07-06 21:17:26.339349"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '15914909-4aaa-40bc-9108-e24135abec0a') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "15914909-4aaa-40bc-9108-e24135abec0a"], ["created_at", "2015-07-06 21:17:26.351663"], ["updated_at", "2015-07-06 21:17:26.351663"], ["token", "2N3NPLVgkXuxEInFbm3_z5KcO6ei7m0HIMqqiKaZJYg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 62"], ["email", "user.62@example.com"], ["password_digest", "$2a$04$rW9bqKdTh7sw5ot6lZ5ShOJM3bSXJEX89ZOAy1.6ocY0Lc4fUxvNa"], ["created_at", "2015-07-06 21:17:26.363429"], ["updated_at", "2015-07-06 21:17:26.363429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.371751"], ["updated_at", "2015-07-06 21:17:26.371751"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ec19b28-d677-40b9-a0fe-485668dbf5c3' AND "clubhouse_memberships"."organization_id" = '4f463acf-3766-4a01-af3d-dea352dbfdd9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8ec19b28-d677-40b9-a0fe-485668dbf5c3"], ["organization_id", "4f463acf-3766-4a01-af3d-dea352dbfdd9"], ["created_at", "2015-07-06 21:17:26.377084"], ["updated_at", "2015-07-06 21:17:26.377084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/15914909-4aaa-40bc-9108-e24135abec0a/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"15914909-4aaa-40bc-9108-e24135abec0a", "invitation"=>{}} Pollett::Context Load (1.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.383000') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b99e7563-9fab-4255-9785-0856057554b5"]]  (0.7ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.387983"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.393100"], ["id", "b99e7563-9fab-4255-9785-0856057554b5"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "15914909-4aaa-40bc-9108-e24135abec0a"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "19fe7934-aab5-4f06-9dcc-c6812c8dba8d"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '19fe7934-aab5-4f06-9dcc-c6812c8dba8d' LIMIT 1 [["organization_id", "15914909-4aaa-40bc-9108-e24135abec0a"], ["admin", "t"]] Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "15914909-4aaa-40bc-9108-e24135abec0a"]] Completed 200 OK in 31ms (Views: 5.4ms | ActiveRecord: 4.9ms)  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 63"], ["email", "user.63@example.com"], ["password_digest", "$2a$04$Lck8cnhFnxK0Qug4haL43.h78Iivd2hwINSMds9l82UnhzTv1wbTi"], ["created_at", "2015-07-06 21:17:26.431429"], ["updated_at", "2015-07-06 21:17:26.431429"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.453590"], ["user_id", "8bb0b3a1-dcda-46c1-af39-fde370698fb0"], ["created_at", "2015-07-06 21:17:26.454819"], ["updated_at", "2015-07-06 21:17:26.454819"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.473297"], ["updated_at", "2015-07-06 21:17:26.473297"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (3.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8bb0b3a1-dcda-46c1-af39-fde370698fb0' AND "clubhouse_memberships"."organization_id" = '827d6344-52b5-46a3-a6b6-eb56c6ae07d8') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8bb0b3a1-dcda-46c1-af39-fde370698fb0"], ["organization_id", "827d6344-52b5-46a3-a6b6-eb56c6ae07d8"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.493063"], ["updated_at", "2015-07-06 21:17:26.493063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '827d6344-52b5-46a3-a6b6-eb56c6ae07d8') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "827d6344-52b5-46a3-a6b6-eb56c6ae07d8"], ["created_at", "2015-07-06 21:17:26.499285"], ["updated_at", "2015-07-06 21:17:26.499285"], ["token", "-VIn8Voo9ZyywgIRkgK7yMl5M7FRBHtGMiWJZ5qo2wY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 64"], ["email", "user.64@example.com"], ["password_digest", "$2a$04$m1FoUunqLSF5MiDS2abGjOzun3iUo/XrkaCQWXy5X6auXSZ5kmUyW"], ["created_at", "2015-07-06 21:17:26.509282"], ["updated_at", "2015-07-06 21:17:26.509282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.514041"], ["updated_at", "2015-07-06 21:17:26.514041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '91745e72-e4cf-4e43-9221-658f960ea079' AND "clubhouse_memberships"."organization_id" = 'e8c98413-faa7-4fa1-b852-9d33b4e4c87f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "91745e72-e4cf-4e43-9221-658f960ea079"], ["organization_id", "e8c98413-faa7-4fa1-b852-9d33b4e4c87f"], ["created_at", "2015-07-06 21:17:26.517986"], ["updated_at", "2015-07-06 21:17:26.517986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 65"], ["email", "user.65@example.com"], ["password_digest", "$2a$04$15o2RyNzv5fRks4Bvb/ncOcjEjjINZh5f4HrAl6h.gWQO5QXnYIuO"], ["created_at", "2015-07-06 21:17:26.532363"], ["updated_at", "2015-07-06 21:17:26.532363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.534988"], ["user_id", "a76ef9e5-968d-4216-b122-6581e9c79347"], ["created_at", "2015-07-06 21:17:26.536705"], ["updated_at", "2015-07-06 21:17:26.536705"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.543210"], ["updated_at", "2015-07-06 21:17:26.543210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a76ef9e5-968d-4216-b122-6581e9c79347' AND "clubhouse_memberships"."organization_id" = '93079fcf-a9bf-4626-9eeb-4cb4206df5d1') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a76ef9e5-968d-4216-b122-6581e9c79347"], ["organization_id", "93079fcf-a9bf-4626-9eeb-4cb4206df5d1"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.547372"], ["updated_at", "2015-07-06 21:17:26.547372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '93079fcf-a9bf-4626-9eeb-4cb4206df5d1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "93079fcf-a9bf-4626-9eeb-4cb4206df5d1"], ["created_at", "2015-07-06 21:17:26.552265"], ["updated_at", "2015-07-06 21:17:26.552265"], ["token", "GpkpESaN_ift35sopxCdIhnv4pEylgARYyHjBIwBYaw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 66"], ["email", "user.66@example.com"], ["password_digest", "$2a$04$q8Stutic61afXzZgSf3wA.VVRb0fq1qeHgoblEavvcxH3FFKuiIRe"], ["created_at", "2015-07-06 21:17:26.564203"], ["updated_at", "2015-07-06 21:17:26.564203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.566393"], ["user_id", "12c54e38-9e5a-48d6-8d8a-7b2745bd788e"], ["created_at", "2015-07-06 21:17:26.566972"], ["updated_at", "2015-07-06 21:17:26.566972"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.571777"], ["updated_at", "2015-07-06 21:17:26.571777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12c54e38-9e5a-48d6-8d8a-7b2745bd788e' AND "clubhouse_memberships"."organization_id" = '3845b87b-506e-4049-859c-cf54b8df8964') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "12c54e38-9e5a-48d6-8d8a-7b2745bd788e"], ["organization_id", "3845b87b-506e-4049-859c-cf54b8df8964"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.575235"], ["updated_at", "2015-07-06 21:17:26.575235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '3845b87b-506e-4049-859c-cf54b8df8964') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "3845b87b-506e-4049-859c-cf54b8df8964"], ["created_at", "2015-07-06 21:17:26.579979"], ["updated_at", "2015-07-06 21:17:26.579979"], ["token", "WtpAcW4vNYquLQuQBrPpJND0eZLhyD2qwJZViToJNEY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/0ba3c8d6-3ac6-4c50-8bf8-4e5eece2a430" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"0ba3c8d6-3ac6-4c50-8bf8-4e5eece2a430", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.584746') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d466c48d-d4b2-4dfb-b718-49227ef84623"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.587141"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.588552"], ["id", "d466c48d-d4b2-4dfb-b718-49227ef84623"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0ba3c8d6-3ac6-4c50-8bf8-4e5eece2a430"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "12c54e38-9e5a-48d6-8d8a-7b2745bd788e"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3845b87b-506e-4049-859c-cf54b8df8964"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '12c54e38-9e5a-48d6-8d8a-7b2745bd788e' LIMIT 1 [["organization_id", "3845b87b-506e-4049-859c-cf54b8df8964"], ["admin", "t"]] Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 67"], ["email", "user.67@example.com"], ["password_digest", "$2a$04$Bbni/YJbAeWsyS8I5OjSDek6S1NLm4VRMsFMN6i0UtgCIfvqURvhS"], ["created_at", "2015-07-06 21:17:26.606601"], ["updated_at", "2015-07-06 21:17:26.606601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.608666"], ["user_id", "61723e38-d196-453d-bee8-fe948d229a5d"], ["created_at", "2015-07-06 21:17:26.609320"], ["updated_at", "2015-07-06 21:17:26.609320"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.614201"], ["updated_at", "2015-07-06 21:17:26.614201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61723e38-d196-453d-bee8-fe948d229a5d' AND "clubhouse_memberships"."organization_id" = '5ae82b3a-f818-4b34-a45f-c0287befae8e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "61723e38-d196-453d-bee8-fe948d229a5d"], ["organization_id", "5ae82b3a-f818-4b34-a45f-c0287befae8e"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.617931"], ["updated_at", "2015-07-06 21:17:26.617931"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '5ae82b3a-f818-4b34-a45f-c0287befae8e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "5ae82b3a-f818-4b34-a45f-c0287befae8e"], ["created_at", "2015-07-06 21:17:26.624328"], ["updated_at", "2015-07-06 21:17:26.624328"], ["token", "rBEheRy7sj1409i9tas6aTiJ3EBzXZ-qJImfBMAQT_M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 68"], ["email", "user.68@example.com"], ["password_digest", "$2a$04$XMXZoeicokChs4t0l5E/CuFAHyRw48d6vMNYd6jHYlMsKbNHWZtYG"], ["created_at", "2015-07-06 21:17:26.633643"], ["updated_at", "2015-07-06 21:17:26.633643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.635515"], ["user_id", "39cb919f-29fc-4132-88bf-b0b0f685a1dc"], ["created_at", "2015-07-06 21:17:26.636339"], ["updated_at", "2015-07-06 21:17:26.636339"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.642054"], ["updated_at", "2015-07-06 21:17:26.642054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39cb919f-29fc-4132-88bf-b0b0f685a1dc' AND "clubhouse_memberships"."organization_id" = '8609cb85-ca9b-4a8a-a542-a23a2c0d7438') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39cb919f-29fc-4132-88bf-b0b0f685a1dc"], ["organization_id", "8609cb85-ca9b-4a8a-a542-a23a2c0d7438"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.645530"], ["updated_at", "2015-07-06 21:17:26.645530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '8609cb85-ca9b-4a8a-a542-a23a2c0d7438') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "8609cb85-ca9b-4a8a-a542-a23a2c0d7438"], ["created_at", "2015-07-06 21:17:26.649711"], ["updated_at", "2015-07-06 21:17:26.649711"], ["token", "-aw19bUzJ2NrnJ95vlXSsI2POhWH_Rz9RHljoFQ2VVU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/d47a1d39-4e73-400a-a22f-e317be318df6" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"d47a1d39-4e73-400a-a22f-e317be318df6", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.652506') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "04814c5d-e7f9-4198-a947-3ad004b32e0e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.654217"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.655022"], ["id", "04814c5d-e7f9-4198-a947-3ad004b32e0e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "d47a1d39-4e73-400a-a22f-e317be318df6"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39cb919f-29fc-4132-88bf-b0b0f685a1dc"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8609cb85-ca9b-4a8a-a542-a23a2c0d7438"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '39cb919f-29fc-4132-88bf-b0b0f685a1dc' LIMIT 1 [["organization_id", "8609cb85-ca9b-4a8a-a542-a23a2c0d7438"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "d47a1d39-4e73-400a-a22f-e317be318df6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 69"], ["email", "user.69@example.com"], ["password_digest", "$2a$04$Grf.88xL6z49AB6.lOoH6uE.xm8k6zRI3RDaxwjF2XR1xHEykgQPm"], ["created_at", "2015-07-06 21:17:26.667018"], ["updated_at", "2015-07-06 21:17:26.667018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.668616"], ["user_id", "4193810c-365d-4779-9685-a91e622692b2"], ["created_at", "2015-07-06 21:17:26.669306"], ["updated_at", "2015-07-06 21:17:26.669306"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.674932"], ["updated_at", "2015-07-06 21:17:26.674932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4193810c-365d-4779-9685-a91e622692b2' AND "clubhouse_memberships"."organization_id" = 'e11e404b-6137-42eb-8ef7-a3cb3841d1d4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4193810c-365d-4779-9685-a91e622692b2"], ["organization_id", "e11e404b-6137-42eb-8ef7-a3cb3841d1d4"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.679268"], ["updated_at", "2015-07-06 21:17:26.679268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = 'e11e404b-6137-42eb-8ef7-a3cb3841d1d4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "e11e404b-6137-42eb-8ef7-a3cb3841d1d4"], ["created_at", "2015-07-06 21:17:26.684268"], ["updated_at", "2015-07-06 21:17:26.684268"], ["token", "MYCaNHRf5dlTU93Mu3ruYdp2YdhiROyDIzH9NevdgL0"]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 70"], ["email", "user.70@example.com"], ["password_digest", "$2a$04$pw5dDijaylDBZVT7jsizj.VCdu7LEehQR.Fo5..KY6HH/1aEnqFwW"], ["created_at", "2015-07-06 21:17:26.696781"], ["updated_at", "2015-07-06 21:17:26.696781"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.701047"], ["user_id", "b11d416a-57a3-4052-8e31-d050df0db50a"], ["created_at", "2015-07-06 21:17:26.702404"], ["updated_at", "2015-07-06 21:17:26.702404"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.713446"], ["updated_at", "2015-07-06 21:17:26.713446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b11d416a-57a3-4052-8e31-d050df0db50a' AND "clubhouse_memberships"."organization_id" = 'b0d65ad2-b56e-4255-af73-0493953b7e66') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b11d416a-57a3-4052-8e31-d050df0db50a"], ["organization_id", "b0d65ad2-b56e-4255-af73-0493953b7e66"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.716711"], ["updated_at", "2015-07-06 21:17:26.716711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'b0d65ad2-b56e-4255-af73-0493953b7e66') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "b0d65ad2-b56e-4255-af73-0493953b7e66"], ["created_at", "2015-07-06 21:17:26.721483"], ["updated_at", "2015-07-06 21:17:26.721483"], ["token", "3X6RM6wEQBS1vwWtxCvPNRMoHE1B0AcRObvgQSa0zL4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/b0d65ad2-b56e-4255-af73-0493953b7e66/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"b0d65ad2-b56e-4255-af73-0493953b7e66", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.725076') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6de87e2f-7c31-4cef-9ada-891cb8db7d2c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.727348"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.728435"], ["id", "6de87e2f-7c31-4cef-9ada-891cb8db7d2c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b0d65ad2-b56e-4255-af73-0493953b7e66"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b11d416a-57a3-4052-8e31-d050df0db50a"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b11d416a-57a3-4052-8e31-d050df0db50a' LIMIT 1 [["organization_id", "b0d65ad2-b56e-4255-af73-0493953b7e66"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'b0d65ad2-b56e-4255-af73-0493953b7e66') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "b0d65ad2-b56e-4255-af73-0493953b7e66"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.739663"], ["updated_at", "2015-07-06 21:17:26.739663"], ["token", "Bx7gk69rqynEoTfYhu_Zkuy42hPrnT4Wx5u4th5nYzU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 22561869-a298-4d14-b00e-b17aac9b51d4) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5bf84726-b78b-4091-a2e4-4ff5700f626b [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5bf84726-b78b-4091-a2e4-4ff5700f626b"]] [ActiveJob] [ActionMailer::DeliveryJob] [22561869-a298-4d14-b00e-b17aac9b51d4] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/5bf84726-b78b-4091-a2e4-4ff5700f626b [ActiveJob] [ActionMailer::DeliveryJob] [22561869-a298-4d14-b00e-b17aac9b51d4] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b0d65ad2-b56e-4255-af73-0493953b7e66"]] [ActiveJob] [ActionMailer::DeliveryJob] [22561869-a298-4d14-b00e-b17aac9b51d4] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [22561869-a298-4d14-b00e-b17aac9b51d4] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [22561869-a298-4d14-b00e-b17aac9b51d4] Sent mail to email@example.com (2.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [22561869-a298-4d14-b00e-b17aac9b51d4] Date: Mon, 06 Jul 2015 14:17:26 -0700 From: from@example.com To: email@example.com Message-ID: <559af066b68c3_108ea3ff69046020067446@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Bx7gk69rqynEoTfYhu_Zkuy42hPrnT4Wx5u4th5nYzU?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [22561869-a298-4d14-b00e-b17aac9b51d4] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.02ms Completed 201 Created in 26ms (Views: 1.0ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 71"], ["email", "user.71@example.com"], ["password_digest", "$2a$04$XyFIWc/DKbefACtzjSTW2.WeSrM1w2Rm0stUkMRR3sYiFhqMuNUJm"], ["created_at", "2015-07-06 21:17:26.762992"], ["updated_at", "2015-07-06 21:17:26.762992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.764864"], ["user_id", "46ead536-6903-47d5-b4c4-9798ad088bb7"], ["created_at", "2015-07-06 21:17:26.765624"], ["updated_at", "2015-07-06 21:17:26.765624"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.770903"], ["updated_at", "2015-07-06 21:17:26.770903"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46ead536-6903-47d5-b4c4-9798ad088bb7' AND "clubhouse_memberships"."organization_id" = 'e64bd568-2335-492d-9023-7c9a2b45f33f') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "46ead536-6903-47d5-b4c4-9798ad088bb7"], ["organization_id", "e64bd568-2335-492d-9023-7c9a2b45f33f"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.777032"], ["updated_at", "2015-07-06 21:17:26.777032"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = 'e64bd568-2335-492d-9023-7c9a2b45f33f') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "e64bd568-2335-492d-9023-7c9a2b45f33f"], ["created_at", "2015-07-06 21:17:26.785381"], ["updated_at", "2015-07-06 21:17:26.785381"], ["token", "PbGKMVrdxXFm9uKO1OS31m4ryCsNPITyPQD0BG8sM9E"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e64bd568-2335-492d-9023-7c9a2b45f33f/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"e64bd568-2335-492d-9023-7c9a2b45f33f", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.793235') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b5ea7b8c-a659-47db-a0bc-1537f5f21b06"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.795457"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.796525"], ["id", "b5ea7b8c-a659-47db-a0bc-1537f5f21b06"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e64bd568-2335-492d-9023-7c9a2b45f33f"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46ead536-6903-47d5-b4c4-9798ad088bb7"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '46ead536-6903-47d5-b4c4-9798ad088bb7' LIMIT 1 [["organization_id", "e64bd568-2335-492d-9023-7c9a2b45f33f"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'e64bd568-2335-492d-9023-7c9a2b45f33f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "e64bd568-2335-492d-9023-7c9a2b45f33f"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.805389"], ["updated_at", "2015-07-06 21:17:26.805389"], ["token", "6Oi2l9QBxiAHbvQLXWf4ulaXmnbELGvNqq_-QSBxuyo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1bc25c47-0cab-4c20-acb8-d160d04d7f3e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/18e91b5e-86d7-4edf-b254-0645eb091952 [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "18e91b5e-86d7-4edf-b254-0645eb091952"]] [ActiveJob] [ActionMailer::DeliveryJob] [1bc25c47-0cab-4c20-acb8-d160d04d7f3e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/18e91b5e-86d7-4edf-b254-0645eb091952 [ActiveJob] [ActionMailer::DeliveryJob] [1bc25c47-0cab-4c20-acb8-d160d04d7f3e] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e64bd568-2335-492d-9023-7c9a2b45f33f"]] [ActiveJob] [ActionMailer::DeliveryJob] [1bc25c47-0cab-4c20-acb8-d160d04d7f3e] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [1bc25c47-0cab-4c20-acb8-d160d04d7f3e] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [1bc25c47-0cab-4c20-acb8-d160d04d7f3e] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [1bc25c47-0cab-4c20-acb8-d160d04d7f3e] Date: Mon, 06 Jul 2015 14:17:26 -0700 From: from@example.com To: email@example.com Message-ID: <559af066c6229_108ea3ff690460200675b2@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/6Oi2l9QBxiAHbvQLXWf4ulaXmnbELGvNqq_-QSBxuyo?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [1bc25c47-0cab-4c20-acb8-d160d04d7f3e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.71ms Completed 201 Created in 20ms (Views: 0.6ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 72"], ["email", "user.72@example.com"], ["password_digest", "$2a$04$I.eRV.H6hzk7WV18R7uBqOy7S8NiNCXuRVm/E0KwgIYeYxKrKPLqu"], ["created_at", "2015-07-06 21:17:26.819807"], ["updated_at", "2015-07-06 21:17:26.819807"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.822641"], ["user_id", "6cf17e2e-ddf3-495f-86fb-275e11484a57"], ["created_at", "2015-07-06 21:17:26.823316"], ["updated_at", "2015-07-06 21:17:26.823316"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.827650"], ["updated_at", "2015-07-06 21:17:26.827650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6cf17e2e-ddf3-495f-86fb-275e11484a57' AND "clubhouse_memberships"."organization_id" = '5ef24c4a-8cc3-43f7-8bd0-e9dd4643d0ed') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6cf17e2e-ddf3-495f-86fb-275e11484a57"], ["organization_id", "5ef24c4a-8cc3-43f7-8bd0-e9dd4643d0ed"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.830863"], ["updated_at", "2015-07-06 21:17:26.830863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '5ef24c4a-8cc3-43f7-8bd0-e9dd4643d0ed') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "5ef24c4a-8cc3-43f7-8bd0-e9dd4643d0ed"], ["created_at", "2015-07-06 21:17:26.836494"], ["updated_at", "2015-07-06 21:17:26.836494"], ["token", "yqjaqM29qj-6duDIHgjZuuM7Iq6bw_4G7Ggg4U0r-uw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/5ef24c4a-8cc3-43f7-8bd0-e9dd4643d0ed/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"5ef24c4a-8cc3-43f7-8bd0-e9dd4643d0ed", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.840456') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "20fa9dcb-7d3f-45d5-a7c9-54f611e3a1ca"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.841966"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.842807"], ["id", "20fa9dcb-7d3f-45d5-a7c9-54f611e3a1ca"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "5ef24c4a-8cc3-43f7-8bd0-e9dd4643d0ed"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6cf17e2e-ddf3-495f-86fb-275e11484a57"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6cf17e2e-ddf3-495f-86fb-275e11484a57' LIMIT 1 [["organization_id", "5ef24c4a-8cc3-43f7-8bd0-e9dd4643d0ed"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '5ef24c4a-8cc3-43f7-8bd0-e9dd4643d0ed') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 73"], ["email", "user.73@example.com"], ["password_digest", "$2a$04$.QmBuOY.hhELaGQ6QPlZZOjoYE4xHzQQjvC8RYS5DKIknvs218uHO"], ["created_at", "2015-07-06 21:17:26.864595"], ["updated_at", "2015-07-06 21:17:26.864595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.867322"], ["user_id", "c250d06c-f826-4647-b250-65dff055afb4"], ["created_at", "2015-07-06 21:17:26.868042"], ["updated_at", "2015-07-06 21:17:26.868042"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.875603"], ["updated_at", "2015-07-06 21:17:26.875603"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c250d06c-f826-4647-b250-65dff055afb4' AND "clubhouse_memberships"."organization_id" = 'e3c3dee3-44a0-43fc-a99b-c264b48ee95e') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c250d06c-f826-4647-b250-65dff055afb4"], ["organization_id", "e3c3dee3-44a0-43fc-a99b-c264b48ee95e"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.884843"], ["updated_at", "2015-07-06 21:17:26.884843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = 'e3c3dee3-44a0-43fc-a99b-c264b48ee95e') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "e3c3dee3-44a0-43fc-a99b-c264b48ee95e"], ["created_at", "2015-07-06 21:17:26.892288"], ["updated_at", "2015-07-06 21:17:26.892288"], ["token", "NV0zHaelkYVFYw827qt6W_TJ3bA69JpDY5MFXi43j1I"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 74"], ["email", "user.74@example.com"], ["password_digest", "$2a$04$SfHCuCzJxf3AkVp6zpZDA.3Z1nETAE3FU3lQfFngTbd16jSgnPUCC"], ["created_at", "2015-07-06 21:17:26.902764"], ["updated_at", "2015-07-06 21:17:26.902764"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.912037"], ["updated_at", "2015-07-06 21:17:26.912037"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd23ed5eb-001d-484b-a0ba-b42180177b3b' AND "clubhouse_memberships"."organization_id" = '85e0f714-40ca-4c78-933b-8d4ca1dc22d1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d23ed5eb-001d-484b-a0ba-b42180177b3b"], ["organization_id", "85e0f714-40ca-4c78-933b-8d4ca1dc22d1"], ["created_at", "2015-07-06 21:17:26.918871"], ["updated_at", "2015-07-06 21:17:26.918871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 75"], ["email", "user.75@example.com"], ["password_digest", "$2a$04$KVyEQIf91kQCrxHv2WUzluwDKdyjiL.E5vM3HUijuwlPOfPioob/i"], ["created_at", "2015-07-06 21:17:26.931511"], ["updated_at", "2015-07-06 21:17:26.931511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:26.934028"], ["user_id", "5abb047b-69b3-4179-b256-7c84a3afae29"], ["created_at", "2015-07-06 21:17:26.934860"], ["updated_at", "2015-07-06 21:17:26.934860"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.940834"], ["updated_at", "2015-07-06 21:17:26.940834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5abb047b-69b3-4179-b256-7c84a3afae29' AND "clubhouse_memberships"."organization_id" = '70d974ea-e7d3-466b-b684-dcf66f1cd0e4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5abb047b-69b3-4179-b256-7c84a3afae29"], ["organization_id", "70d974ea-e7d3-466b-b684-dcf66f1cd0e4"], ["admin", "t"], ["created_at", "2015-07-06 21:17:26.944956"], ["updated_at", "2015-07-06 21:17:26.944956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '70d974ea-e7d3-466b-b684-dcf66f1cd0e4') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "70d974ea-e7d3-466b-b684-dcf66f1cd0e4"], ["created_at", "2015-07-06 21:17:26.950911"], ["updated_at", "2015-07-06 21:17:26.950911"], ["token", "d9R5F9eK67hJNdbg9-U2UhmbLQG0xeDq43J5c-ATAaY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 76"], ["email", "user.76@example.com"], ["password_digest", "$2a$04$y7iFdOYAtCcXe5MoyPynzuGrTuGWxikSz.HdPdS5E4xeKZ2mP5ZdG"], ["created_at", "2015-07-06 21:17:26.964036"], ["updated_at", "2015-07-06 21:17:26.964036"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:26.969342"], ["updated_at", "2015-07-06 21:17:26.969342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a10f3d87-99dc-4a73-b340-9dcbaad2864e' AND "clubhouse_memberships"."organization_id" = 'f6e0d170-9341-421d-905e-9e636b65129d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a10f3d87-99dc-4a73-b340-9dcbaad2864e"], ["organization_id", "f6e0d170-9341-421d-905e-9e636b65129d"], ["created_at", "2015-07-06 21:17:26.974138"], ["updated_at", "2015-07-06 21:17:26.974138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:17:26 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:26.978618') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0eba667b-7526-49ab-9719-453bb440042d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:26.980186"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:26.980983"], ["id", "0eba667b-7526-49ab-9719-453bb440042d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5abb047b-69b3-4179-b256-7c84a3afae29"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '5abb047b-69b3-4179-b256-7c84a3afae29' LIMIT 1 [["organization_id", "70d974ea-e7d3-466b-b684-dcf66f1cd0e4"], ["admin", "t"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "70d974ea-e7d3-466b-b684-dcf66f1cd0e4"]] Completed 200 OK in 12ms (Views: 2.1ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 77"], ["email", "user.77@example.com"], ["password_digest", "$2a$04$YMt717eah9XkS1nZKTp5veq6Lpptn04R0d.aICZ5xC2kvYJc.gh86"], ["created_at", "2015-07-06 21:17:26.998206"], ["updated_at", "2015-07-06 21:17:26.998206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.003038"], ["updated_at", "2015-07-06 21:17:27.003038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85e98962-73fb-49ba-81c7-61f577250abd' AND "clubhouse_memberships"."organization_id" = '9bdf2068-b45a-438c-b50b-8ff0ebed3e8c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "85e98962-73fb-49ba-81c7-61f577250abd"], ["organization_id", "9bdf2068-b45a-438c-b50b-8ff0ebed3e8c"], ["created_at", "2015-07-06 21:17:27.006966"], ["updated_at", "2015-07-06 21:17:27.006966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "85e98962-73fb-49ba-81c7-61f577250abd"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9bdf2068-b45a-438c-b50b-8ff0ebed3e8c"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85e98962-73fb-49ba-81c7-61f577250abd' AND "clubhouse_memberships"."organization_id" = '9bdf2068-b45a-438c-b50b-8ff0ebed3e8c') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9bdf2068-b45a-438c-b50b-8ff0ebed3e8d"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '85e98962-73fb-49ba-81c7-61f577250abd' AND "clubhouse_memberships"."organization_id" = '9bdf2068-b45a-438c-b50b-8ff0ebed3e8d') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 78"], ["email", "user.78@example.com"], ["password_digest", "$2a$04$LuQ3j1bTNaFsl0gOCI2aiuXwO1yVzNi5NtAQBZb2OpNETS82trfgy"], ["created_at", "2015-07-06 21:17:27.034253"], ["updated_at", "2015-07-06 21:17:27.034253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.038813"], ["updated_at", "2015-07-06 21:17:27.038813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8576a12-fd42-44f0-8177-5ba36a992f7d' AND "clubhouse_memberships"."organization_id" = '8a65ce31-4965-4584-a8de-c50eb00e1226') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e8576a12-fd42-44f0-8177-5ba36a992f7d"], ["organization_id", "8a65ce31-4965-4584-a8de-c50eb00e1226"], ["created_at", "2015-07-06 21:17:27.041814"], ["updated_at", "2015-07-06 21:17:27.041814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '8a65ce31-4965-4584-a8de-c50eb00e1226') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "8a65ce31-4965-4584-a8de-c50eb00e1226"], ["created_at", "2015-07-06 21:17:27.046218"], ["updated_at", "2015-07-06 21:17:27.046218"], ["token", "fs7ZT7dqvBWKMbkOADcG_eqQaSdavrsl95e1FTCjG0o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e8576a12-fd42-44f0-8177-5ba36a992f7d' LIMIT 1 [["organization_id", "8a65ce31-4965-4584-a8de-c50eb00e1226"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 79"], ["email", "user.79@example.com"], ["password_digest", "$2a$04$XV0oE2Am6LnM8jrimH.FQuiiqnm2Y4MAS48mZpnG9qV.UKKYiMxn."], ["created_at", "2015-07-06 21:17:27.055169"], ["updated_at", "2015-07-06 21:17:27.055169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.059287"], ["updated_at", "2015-07-06 21:17:27.059287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fbc43b05-3754-4656-acab-0c3872b96a72' AND "clubhouse_memberships"."organization_id" = 'f034af76-7d9b-4d96-85c1-5a964a7e35b7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fbc43b05-3754-4656-acab-0c3872b96a72"], ["organization_id", "f034af76-7d9b-4d96-85c1-5a964a7e35b7"], ["created_at", "2015-07-06 21:17:27.062310"], ["updated_at", "2015-07-06 21:17:27.062310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'f034af76-7d9b-4d96-85c1-5a964a7e35b7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "f034af76-7d9b-4d96-85c1-5a964a7e35b7"], ["created_at", "2015-07-06 21:17:27.066365"], ["updated_at", "2015-07-06 21:17:27.066365"], ["token", "wYUK2rMg9utdNuGBAgh4G02fDyX9itdB1cMEe7RArtc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'fbc43b05-3754-4656-acab-0c3872b96a72' LIMIT 1 [["organization_id", "f034af76-7d9b-4d96-85c1-5a964a7e35b7"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 80"], ["email", "user.80@example.com"], ["password_digest", "$2a$04$sxIVDdoRgahcBQOp47j4w.SPTfTibS5YYm70WxSkMsG0k4pVPxel6"], ["created_at", "2015-07-06 21:17:27.077328"], ["updated_at", "2015-07-06 21:17:27.077328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.081364"], ["updated_at", "2015-07-06 21:17:27.081364"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3a37546-69af-4bb3-a172-fcee3df4c38b' AND "clubhouse_memberships"."organization_id" = '27ff2d6d-555a-4caf-8fb2-7fecb991143c') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3a37546-69af-4bb3-a172-fcee3df4c38b"], ["organization_id", "27ff2d6d-555a-4caf-8fb2-7fecb991143c"], ["created_at", "2015-07-06 21:17:27.086273"], ["updated_at", "2015-07-06 21:17:27.086273"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '27ff2d6d-555a-4caf-8fb2-7fecb991143c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "27ff2d6d-555a-4caf-8fb2-7fecb991143c"], ["created_at", "2015-07-06 21:17:27.094817"], ["updated_at", "2015-07-06 21:17:27.094817"], ["token", "O_nZ3zkQmy2VOJps1J-QjNQHdZIYqHpniTvqpZrNvyg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a3a37546-69af-4bb3-a172-fcee3df4c38b' LIMIT 1 [["organization_id", "27ff2d6d-555a-4caf-8fb2-7fecb991143c"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 81"], ["email", "user.81@example.com"], ["password_digest", "$2a$04$RRu7GtoIuc3gJKh7M2N64O30a7ox8FrDqMVKws7niXY1JQ3/07cKq"], ["created_at", "2015-07-06 21:17:27.110990"], ["updated_at", "2015-07-06 21:17:27.110990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.117390"], ["updated_at", "2015-07-06 21:17:27.117390"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a03f831d-465e-431a-86a6-e69a1d607a86' AND "clubhouse_memberships"."organization_id" = '40580d17-a4f7-4373-8978-7be5536c5481') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a03f831d-465e-431a-86a6-e69a1d607a86"], ["organization_id", "40580d17-a4f7-4373-8978-7be5536c5481"], ["created_at", "2015-07-06 21:17:27.123927"], ["updated_at", "2015-07-06 21:17:27.123927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '40580d17-a4f7-4373-8978-7be5536c5481') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "40580d17-a4f7-4373-8978-7be5536c5481"], ["created_at", "2015-07-06 21:17:27.129060"], ["updated_at", "2015-07-06 21:17:27.129060"], ["token", "8AAIGZ7dXF2k5j2wyal9wg8jwPGv9M0FzSSPSGp26Z0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a03f831d-465e-431a-86a6-e69a1d607a86' LIMIT 1 [["organization_id", "40580d17-a4f7-4373-8978-7be5536c5481"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 82"], ["email", "user.82@example.com"], ["password_digest", "$2a$04$/JET6cy/pa9YXVUTAuz/yeqIyZnlWEot9Mco2Xlma99nEymDEuYZm"], ["created_at", "2015-07-06 21:17:27.137651"], ["updated_at", "2015-07-06 21:17:27.137651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.144600"], ["updated_at", "2015-07-06 21:17:27.144600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59718772-c19b-41e1-b3b0-e6c13fec477a' AND "clubhouse_memberships"."organization_id" = '3cd6b44f-975a-4763-ba3b-8f760a61f4fa') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "59718772-c19b-41e1-b3b0-e6c13fec477a"], ["organization_id", "3cd6b44f-975a-4763-ba3b-8f760a61f4fa"], ["created_at", "2015-07-06 21:17:27.148706"], ["updated_at", "2015-07-06 21:17:27.148706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '59718772-c19b-41e1-b3b0-e6c13fec477a' LIMIT 1 [["organization_id", "3cd6b44f-975a-4763-ba3b-8f760a61f4fa"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 83"], ["email", "user.83@example.com"], ["password_digest", "$2a$04$ioHJ67hMHCSZ0Zp8NX.XquAYyOvyHuSj.vDXlZF3rV.ayvGLGytCK"], ["created_at", "2015-07-06 21:17:27.159120"], ["updated_at", "2015-07-06 21:17:27.159120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.163189"], ["updated_at", "2015-07-06 21:17:27.163189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'a53a368f-c560-42c8-82bd-d0f42167d3a7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "a53a368f-c560-42c8-82bd-d0f42167d3a7"], ["created_at", "2015-07-06 21:17:27.167495"], ["updated_at", "2015-07-06 21:17:27.167495"], ["token", "j_-mLqZQDaT9sm5nj2vLJcTMuH32uLB0f7s6qPAX0HQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e0beab24-29a5-4f5b-a158-12bbfe249864' LIMIT 1 [["organization_id", "a53a368f-c560-42c8-82bd-d0f42167d3a7"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 84"], ["email", "user.84@example.com"], ["password_digest", "$2a$04$tAGy536bqxyxo75s8cFfhuVrlR68jUVPxXr5T2WJL0yZ4s3fhhx.G"], ["created_at", "2015-07-06 21:17:27.179740"], ["updated_at", "2015-07-06 21:17:27.179740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.185746"], ["updated_at", "2015-07-06 21:17:27.185746"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = '3991a086-d02b-489c-998f-fc6c60455056') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "3991a086-d02b-489c-998f-fc6c60455056"], ["created_at", "2015-07-06 21:17:27.193972"], ["updated_at", "2015-07-06 21:17:27.193972"], ["token", "JbpK-X0ZfPH9UPAktQPuqI-YsNO5QeS0UUVwVAFpcKU"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'f51e69b1-9b29-41c7-a35b-a1f96248cfdc' LIMIT 1 [["organization_id", "3991a086-d02b-489c-998f-fc6c60455056"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 85"], ["email", "user.85@example.com"], ["password_digest", "$2a$04$NZSPt2zI3ZVoFPtHMBzqGu0UTMuko8y1d2.GFheCzTB6N.KgBAwIy"], ["created_at", "2015-07-06 21:17:27.210470"], ["updated_at", "2015-07-06 21:17:27.210470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.216841"], ["updated_at", "2015-07-06 21:17:27.216841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '6170051e-81e5-47b3-a2fe-0072ce2228ae') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "6170051e-81e5-47b3-a2fe-0072ce2228ae"], ["created_at", "2015-07-06 21:17:27.223850"], ["updated_at", "2015-07-06 21:17:27.223850"], ["token", "rR093vCtHt2JEyI-J5-3qaqlMnwnQsBPZxyFdzhWdG8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd08382ed-9bf8-4026-b38d-01b029bd62ac' LIMIT 1 [["organization_id", "6170051e-81e5-47b3-a2fe-0072ce2228ae"], ["admin", "t"]]  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 86"], ["email", "user.86@example.com"], ["password_digest", "$2a$04$cM.fyqH87dP3ixm8i2vcleeQhI11aW1kWE0Wft9g/CjEyjbhja4WS"], ["created_at", "2015-07-06 21:17:27.243812"], ["updated_at", "2015-07-06 21:17:27.243812"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.254950"], ["updated_at", "2015-07-06 21:17:27.254950"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '7419042f-591b-4563-bc84-2dc883979a1c') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "7419042f-591b-4563-bc84-2dc883979a1c"], ["created_at", "2015-07-06 21:17:27.266860"], ["updated_at", "2015-07-06 21:17:27.266860"], ["token", "f6R4GrTSHfirhfAkjOfL8mgEEeq3QwtzpZ26T3e5EMQ"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b2737f5f-80c2-4a96-9581-215e1b2b0054' LIMIT 1 [["organization_id", "7419042f-591b-4563-bc84-2dc883979a1c"], ["admin", "t"]]  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (1.6ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 87"], ["email", "user.87@example.com"], ["password_digest", "$2a$04$mpixyPo7Bqv2nKAGDWgl1uSRqGwvmjENrUqQa9WU.tLVFuzdBzb8e"], ["created_at", "2015-07-06 21:17:27.294157"], ["updated_at", "2015-07-06 21:17:27.294157"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.302969"], ["updated_at", "2015-07-06 21:17:27.302969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b7d8bd42-1256-410a-bb01-09c569a9041c' LIMIT 1 [["organization_id", "e005bc00-fa72-442c-881d-782263c0f215"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 88"], ["email", "user.88@example.com"], ["password_digest", "$2a$04$K5nroROQt4nc4PWrFitZ9.xVTTyx2aXJlDic1uOsHIdi1AfEjCPmm"], ["created_at", "2015-07-06 21:17:27.316502"], ["updated_at", "2015-07-06 21:17:27.316502"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.322336"], ["updated_at", "2015-07-06 21:17:27.322336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd15ea11a-2bf5-43fd-96c2-124471ea7b06' AND "clubhouse_memberships"."organization_id" = '09e865f4-4c16-4445-8227-5cc605088f46') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d15ea11a-2bf5-43fd-96c2-124471ea7b06"], ["organization_id", "09e865f4-4c16-4445-8227-5cc605088f46"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.328400"], ["updated_at", "2015-07-06 21:17:27.328400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '09e865f4-4c16-4445-8227-5cc605088f46') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "09e865f4-4c16-4445-8227-5cc605088f46"], ["created_at", "2015-07-06 21:17:27.335085"], ["updated_at", "2015-07-06 21:17:27.335085"], ["token", "CxRGfGusVEpPoMVQ88bq7B9jE4Eo_w9u0h843CMuwuE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd15ea11a-2bf5-43fd-96c2-124471ea7b06' LIMIT 1 [["organization_id", "09e865f4-4c16-4445-8227-5cc605088f46"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 89"], ["email", "user.89@example.com"], ["password_digest", "$2a$04$FUgF6WJlp8xGrPpUfT9AferQJJtPL0/bkNk4yMV8qtlbDflhV2g9O"], ["created_at", "2015-07-06 21:17:27.344735"], ["updated_at", "2015-07-06 21:17:27.344735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.348845"], ["updated_at", "2015-07-06 21:17:27.348845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34920412-b337-4add-886d-c305a814349a' AND "clubhouse_memberships"."organization_id" = '6d38886e-fadd-4e28-8bd1-b68b1bad01b9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34920412-b337-4add-886d-c305a814349a"], ["organization_id", "6d38886e-fadd-4e28-8bd1-b68b1bad01b9"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.352507"], ["updated_at", "2015-07-06 21:17:27.352507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '6d38886e-fadd-4e28-8bd1-b68b1bad01b9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "6d38886e-fadd-4e28-8bd1-b68b1bad01b9"], ["created_at", "2015-07-06 21:17:27.357383"], ["updated_at", "2015-07-06 21:17:27.357383"], ["token", "0CqgOPtDnUR-JO7zyVTGzGeqHrjA_csSdsrNrL858FU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '34920412-b337-4add-886d-c305a814349a' LIMIT 1 [["organization_id", "6d38886e-fadd-4e28-8bd1-b68b1bad01b9"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 90"], ["email", "user.90@example.com"], ["password_digest", "$2a$04$JuEhtwULHW2mLCAdY4iS9eK80NHX.FPFViVZGDoz9IFJ7WF6UOO6C"], ["created_at", "2015-07-06 21:17:27.366116"], ["updated_at", "2015-07-06 21:17:27.366116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.370700"], ["updated_at", "2015-07-06 21:17:27.370700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9add2bed-4270-427b-89f5-f21f7a8a252e' AND "clubhouse_memberships"."organization_id" = 'bfe2ee5b-c088-4734-aac8-9b3af492aa8f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9add2bed-4270-427b-89f5-f21f7a8a252e"], ["organization_id", "bfe2ee5b-c088-4734-aac8-9b3af492aa8f"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.375023"], ["updated_at", "2015-07-06 21:17:27.375023"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'bfe2ee5b-c088-4734-aac8-9b3af492aa8f') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "bfe2ee5b-c088-4734-aac8-9b3af492aa8f"], ["created_at", "2015-07-06 21:17:27.382303"], ["updated_at", "2015-07-06 21:17:27.382303"], ["token", "ECyB1SmOCFkRtaIYzKZ7riZY4B6ZvDmbcnF2FKpDf7A"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9add2bed-4270-427b-89f5-f21f7a8a252e' LIMIT 1 [["organization_id", "bfe2ee5b-c088-4734-aac8-9b3af492aa8f"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 91"], ["email", "user.91@example.com"], ["password_digest", "$2a$04$edWud/YeonXPxYZC1b8jq.Ujj9i.cTkmzafklDtGQLjEcTzz.hOpO"], ["created_at", "2015-07-06 21:17:27.396895"], ["updated_at", "2015-07-06 21:17:27.396895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.401060"], ["updated_at", "2015-07-06 21:17:27.401060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2acb0f9b-d5d4-4407-aec8-4d6b9ac2bba5' AND "clubhouse_memberships"."organization_id" = '585bd192-7ea3-4045-9d66-39b81bec4441') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2acb0f9b-d5d4-4407-aec8-4d6b9ac2bba5"], ["organization_id", "585bd192-7ea3-4045-9d66-39b81bec4441"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.404613"], ["updated_at", "2015-07-06 21:17:27.404613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '585bd192-7ea3-4045-9d66-39b81bec4441') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "585bd192-7ea3-4045-9d66-39b81bec4441"], ["created_at", "2015-07-06 21:17:27.411554"], ["updated_at", "2015-07-06 21:17:27.411554"], ["token", "P1iJQSrGV2pihwlAs5AN8VXGkaBknpkyZ1GktWr7d-M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2acb0f9b-d5d4-4407-aec8-4d6b9ac2bba5' LIMIT 1 [["organization_id", "585bd192-7ea3-4045-9d66-39b81bec4441"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 92"], ["email", "user.92@example.com"], ["password_digest", "$2a$04$F4ynk1ZQoGXc.0M9EuVrQO4DSHWeJUP63/tXhAK2XXwO495qoGcS6"], ["created_at", "2015-07-06 21:17:27.421738"], ["updated_at", "2015-07-06 21:17:27.421738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.427334"], ["updated_at", "2015-07-06 21:17:27.427334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c1f23c0-767e-4c61-9f06-4e9739b2d58b' AND "clubhouse_memberships"."organization_id" = '6f8ab369-6b16-4ccf-8cc6-a496aeb36cbe') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0c1f23c0-767e-4c61-9f06-4e9739b2d58b"], ["organization_id", "6f8ab369-6b16-4ccf-8cc6-a496aeb36cbe"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.431637"], ["updated_at", "2015-07-06 21:17:27.431637"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '0c1f23c0-767e-4c61-9f06-4e9739b2d58b' LIMIT 1 [["organization_id", "6f8ab369-6b16-4ccf-8cc6-a496aeb36cbe"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 93"], ["email", "user.93@example.com"], ["password_digest", "$2a$04$bBaF95MMYkw.DFBtMugBd.FzcVb4D/.hUzTvzS8JFfKLx2OhXOg3y"], ["created_at", "2015-07-06 21:17:27.442651"], ["updated_at", "2015-07-06 21:17:27.442651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.447012"], ["updated_at", "2015-07-06 21:17:27.447012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57e2dcf0-6ac6-42f7-8874-62c478ba782c' AND "clubhouse_memberships"."organization_id" = 'ab2a00b8-ed7e-4359-8d97-a746fb1394f3') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57e2dcf0-6ac6-42f7-8874-62c478ba782c"], ["organization_id", "ab2a00b8-ed7e-4359-8d97-a746fb1394f3"], ["created_at", "2015-07-06 21:17:27.451101"], ["updated_at", "2015-07-06 21:17:27.451101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 94"], ["email", "user.94@example.com"], ["password_digest", "$2a$04$MJQXwsf56eOy49h8yc6xheagprR92UiQaN0GNn6WiXzPj/0IS9B9y"], ["created_at", "2015-07-06 21:17:27.458266"], ["updated_at", "2015-07-06 21:17:27.458266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.462304"], ["updated_at", "2015-07-06 21:17:27.462304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6400ba62-d0b2-44e7-a004-f91aaf609729' AND "clubhouse_memberships"."organization_id" = '5dadbd5a-0b12-4150-9e07-4a74f628d5b8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6400ba62-d0b2-44e7-a004-f91aaf609729"], ["organization_id", "5dadbd5a-0b12-4150-9e07-4a74f628d5b8"], ["created_at", "2015-07-06 21:17:27.465892"], ["updated_at", "2015-07-06 21:17:27.465892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6400ba62-d0b2-44e7-a004-f91aaf609729' LIMIT 1 [["organization_id", "5dadbd5a-0b12-4150-9e07-4a74f628d5b8"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 95"], ["email", "user.95@example.com"], ["password_digest", "$2a$04$NOCFw0JJaDXBVLy9XRAFNuyGoYiewWSMpP/rwA5RlB0bU3E7dJr6K"], ["created_at", "2015-07-06 21:17:27.475662"], ["updated_at", "2015-07-06 21:17:27.475662"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.480987"], ["updated_at", "2015-07-06 21:17:27.480987"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15406de4-fe84-4fdb-bfe0-4314141befbb' AND "clubhouse_memberships"."organization_id" = '10d28f51-8946-4401-840d-9dc4506c738d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "15406de4-fe84-4fdb-bfe0-4314141befbb"], ["organization_id", "10d28f51-8946-4401-840d-9dc4506c738d"], ["created_at", "2015-07-06 21:17:27.484967"], ["updated_at", "2015-07-06 21:17:27.484967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '15406de4-fe84-4fdb-bfe0-4314141befbb' LIMIT 1 [["organization_id", "10d28f51-8946-4401-840d-9dc4506c738d"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (2.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 96"], ["email", "user.96@example.com"], ["password_digest", "$2a$04$q8JfeFajPzNB.OXl0ap0Zeakph9MNbQ5SYbMPF1bMj/vijqsp34bi"], ["created_at", "2015-07-06 21:17:27.494173"], ["updated_at", "2015-07-06 21:17:27.494173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.502613"], ["updated_at", "2015-07-06 21:17:27.502613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a03cc1b6-ffc2-48d8-aaf3-3b140fdab167' AND "clubhouse_memberships"."organization_id" = '657bf615-8818-4763-92ee-81f3295882db') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a03cc1b6-ffc2-48d8-aaf3-3b140fdab167"], ["organization_id", "657bf615-8818-4763-92ee-81f3295882db"], ["created_at", "2015-07-06 21:17:27.506976"], ["updated_at", "2015-07-06 21:17:27.506976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a03cc1b6-ffc2-48d8-aaf3-3b140fdab167' LIMIT 1 [["organization_id", "657bf615-8818-4763-92ee-81f3295882db"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 97"], ["email", "user.97@example.com"], ["password_digest", "$2a$04$584MWh9Vb/BavT0a9Exw3.R/sn3AE4HS1.KF.TxQs.E5k7.jIRMm."], ["created_at", "2015-07-06 21:17:27.518360"], ["updated_at", "2015-07-06 21:17:27.518360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.523369"], ["updated_at", "2015-07-06 21:17:27.523369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c30bda05-fdb5-4629-96cc-6d7d5a0ef3fa' AND "clubhouse_memberships"."organization_id" = '7e100080-3bfc-4bd2-b9bb-a54ffbdfd9c4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c30bda05-fdb5-4629-96cc-6d7d5a0ef3fa"], ["organization_id", "7e100080-3bfc-4bd2-b9bb-a54ffbdfd9c4"], ["created_at", "2015-07-06 21:17:27.527310"], ["updated_at", "2015-07-06 21:17:27.527310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c30bda05-fdb5-4629-96cc-6d7d5a0ef3fa' LIMIT 1 [["organization_id", "7e100080-3bfc-4bd2-b9bb-a54ffbdfd9c4"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 98"], ["email", "user.98@example.com"], ["password_digest", "$2a$04$V3.Mu9W/kKxs2Fr1MHeD6ekkSN1ZRF740Ppqm.gfoSFWsGVIPniK2"], ["created_at", "2015-07-06 21:17:27.537604"], ["updated_at", "2015-07-06 21:17:27.537604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 99"], ["email", "user.99@example.com"], ["password_digest", "$2a$04$Zllr1x.zxh6znZD3ABu6auW7Xzy2WKIK7xMH2eHx/jBdAAq4sVcnO"], ["created_at", "2015-07-06 21:17:27.542636"], ["updated_at", "2015-07-06 21:17:27.542636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.546480"], ["updated_at", "2015-07-06 21:17:27.546480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd058bda4-01e7-45ba-a0f9-3bb0252096f1' AND "clubhouse_memberships"."organization_id" = '255e8164-ac09-4633-b706-d7d70df179a3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d058bda4-01e7-45ba-a0f9-3bb0252096f1"], ["organization_id", "255e8164-ac09-4633-b706-d7d70df179a3"], ["created_at", "2015-07-06 21:17:27.551109"], ["updated_at", "2015-07-06 21:17:27.551109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '4ae7bd7a-5377-4406-aabc-423c9b76f0a3' LIMIT 1 [["organization_id", "255e8164-ac09-4633-b706-d7d70df179a3"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 100"], ["email", "user.100@example.com"], ["password_digest", "$2a$04$JjLpQb1OckZB8guCHS106Ovcvuw0Ao462EZidh9l1mIot4uWA7O6S"], ["created_at", "2015-07-06 21:17:27.561824"], ["updated_at", "2015-07-06 21:17:27.561824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 101"], ["email", "user.101@example.com"], ["password_digest", "$2a$04$4FMr5oRvMMGK0LV5Rom3zOehm2duf/BG2w8sdSeTXzrVg0eglxL8O"], ["created_at", "2015-07-06 21:17:27.568807"], ["updated_at", "2015-07-06 21:17:27.568807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.573776"], ["updated_at", "2015-07-06 21:17:27.573776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42a5a53e-6f12-4afc-912a-6c893e576eb4' AND "clubhouse_memberships"."organization_id" = '8828797d-b8cb-4c6f-a483-19b836138d67') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "42a5a53e-6f12-4afc-912a-6c893e576eb4"], ["organization_id", "8828797d-b8cb-4c6f-a483-19b836138d67"], ["created_at", "2015-07-06 21:17:27.576898"], ["updated_at", "2015-07-06 21:17:27.576898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '87194212-8910-46d5-800a-add7972cd410' LIMIT 1 [["organization_id", "8828797d-b8cb-4c6f-a483-19b836138d67"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 102"], ["email", "user.102@example.com"], ["password_digest", "$2a$04$hq58Ulqk/y63vSKgu3FMpu//AWx25gwGSOZ9mu3nuXHMc1RApsIJC"], ["created_at", "2015-07-06 21:17:27.585549"], ["updated_at", "2015-07-06 21:17:27.585549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 103"], ["email", "user.103@example.com"], ["password_digest", "$2a$04$4LzWXnfXiUF4a/oakQIxweuc.p0FOeQkNdg5qUwWTdEHQNWwIpfY6"], ["created_at", "2015-07-06 21:17:27.592310"], ["updated_at", "2015-07-06 21:17:27.592310"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.600475"], ["updated_at", "2015-07-06 21:17:27.600475"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2bc5a46c-4289-4795-852f-237ac6a76888' AND "clubhouse_memberships"."organization_id" = '734f23c7-866d-40ed-b905-a8a1b1c60d92') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2bc5a46c-4289-4795-852f-237ac6a76888"], ["organization_id", "734f23c7-866d-40ed-b905-a8a1b1c60d92"], ["created_at", "2015-07-06 21:17:27.605888"], ["updated_at", "2015-07-06 21:17:27.605888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2c1241ee-b307-44e1-847c-bc8446d2b204' LIMIT 1 [["organization_id", "734f23c7-866d-40ed-b905-a8a1b1c60d92"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 104"], ["email", "user.104@example.com"], ["password_digest", "$2a$04$rS.IoVvLbtBmcGI10gNnVefDd/xirBsbqe7NvmUGJf3zSyM.7A2Ni"], ["created_at", "2015-07-06 21:17:27.617867"], ["updated_at", "2015-07-06 21:17:27.617867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 105"], ["email", "user.105@example.com"], ["password_digest", "$2a$04$fwYP/OeJ04kH8Ga6Asep8.c3nXj7Emiiy1/a8wpBavvd.UCpyH58K"], ["created_at", "2015-07-06 21:17:27.625117"], ["updated_at", "2015-07-06 21:17:27.625117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.629391"], ["updated_at", "2015-07-06 21:17:27.629391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '937d2cf3-ea5d-4473-ae23-f891b3c49496' AND "clubhouse_memberships"."organization_id" = '7368ad89-7b30-4c69-87ac-2840f6805d9d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "937d2cf3-ea5d-4473-ae23-f891b3c49496"], ["organization_id", "7368ad89-7b30-4c69-87ac-2840f6805d9d"], ["created_at", "2015-07-06 21:17:27.633445"], ["updated_at", "2015-07-06 21:17:27.633445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 106"], ["email", "user.106@example.com"], ["password_digest", "$2a$04$G6uq0cFH9Mw9BTeGStPE2ujm2wGp.nQmv7tIk687QWgQdBL1aLuP6"], ["created_at", "2015-07-06 21:17:27.640681"], ["updated_at", "2015-07-06 21:17:27.640681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.645157"], ["updated_at", "2015-07-06 21:17:27.645157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2f27384e-cc07-4d84-8eb2-22d5ff4e0c4c' LIMIT 1 [["organization_id", "6e3c6a26-b384-4b63-9830-ccd800f3b918"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 107"], ["email", "user.107@example.com"], ["password_digest", "$2a$04$1iBygFMieOpUV85cH7Q9CO0Eo3e/3azG7MvFu5xyyROmfLMPqsDi."], ["created_at", "2015-07-06 21:17:27.656359"], ["updated_at", "2015-07-06 21:17:27.656359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.660838"], ["updated_at", "2015-07-06 21:17:27.660838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8468fd3-f3e0-4cd8-92aa-902a41d86a55' AND "clubhouse_memberships"."organization_id" = '237a43ae-ea27-4516-ba62-12a46dbfad95') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8468fd3-f3e0-4cd8-92aa-902a41d86a55"], ["organization_id", "237a43ae-ea27-4516-ba62-12a46dbfad95"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.664420"], ["updated_at", "2015-07-06 21:17:27.664420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 108"], ["email", "user.108@example.com"], ["password_digest", "$2a$04$YyNdy.B5DKwyxve83Hd9j.Im./8NzQu308OwM7XWAmT6OWUlcCq1a"], ["created_at", "2015-07-06 21:17:27.672045"], ["updated_at", "2015-07-06 21:17:27.672045"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.677650"], ["updated_at", "2015-07-06 21:17:27.677650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30224935-939d-49ba-b387-67fda78be111' AND "clubhouse_memberships"."organization_id" = '76144dbf-0979-4a3c-bed3-18de7474074e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "30224935-939d-49ba-b387-67fda78be111"], ["organization_id", "76144dbf-0979-4a3c-bed3-18de7474074e"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.681861"], ["updated_at", "2015-07-06 21:17:27.681861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '30224935-939d-49ba-b387-67fda78be111' LIMIT 1 [["organization_id", "76144dbf-0979-4a3c-bed3-18de7474074e"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 109"], ["email", "user.109@example.com"], ["password_digest", "$2a$04$kFP.A6pR34ESrEXAeTQfEOvUu9ULzG8MWM.LFdtb.PxDT84LEM7Za"], ["created_at", "2015-07-06 21:17:27.690248"], ["updated_at", "2015-07-06 21:17:27.690248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.695900"], ["updated_at", "2015-07-06 21:17:27.695900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a20ff218-1773-4359-b916-6f505cb45381' AND "clubhouse_memberships"."organization_id" = 'ebb9b7a0-00a6-4023-bb1c-e40fa485db53') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a20ff218-1773-4359-b916-6f505cb45381"], ["organization_id", "ebb9b7a0-00a6-4023-bb1c-e40fa485db53"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.702165"], ["updated_at", "2015-07-06 21:17:27.702165"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a20ff218-1773-4359-b916-6f505cb45381' LIMIT 1 [["organization_id", "ebb9b7a0-00a6-4023-bb1c-e40fa485db53"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 110"], ["email", "user.110@example.com"], ["password_digest", "$2a$04$u2vPhBiXHw4KZmkmAJdimODPgV56rU00SRIKpvhU6rzO.cZemAvAm"], ["created_at", "2015-07-06 21:17:27.719779"], ["updated_at", "2015-07-06 21:17:27.719779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.727249"], ["updated_at", "2015-07-06 21:17:27.727249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '410d489a-c790-495f-ab96-10cdefbe2789' AND "clubhouse_memberships"."organization_id" = 'ca1da95c-28d8-4b54-b312-788fde9e3c56') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "410d489a-c790-495f-ab96-10cdefbe2789"], ["organization_id", "ca1da95c-28d8-4b54-b312-788fde9e3c56"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.731556"], ["updated_at", "2015-07-06 21:17:27.731556"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '410d489a-c790-495f-ab96-10cdefbe2789' LIMIT 1 [["organization_id", "ca1da95c-28d8-4b54-b312-788fde9e3c56"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 111"], ["email", "user.111@example.com"], ["password_digest", "$2a$04$aVLt5PNoH7SfZEBdUQgiouERD7lPB97ImvdBJjtKmTKgd56oJsn82"], ["created_at", "2015-07-06 21:17:27.741860"], ["updated_at", "2015-07-06 21:17:27.741860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.748524"], ["updated_at", "2015-07-06 21:17:27.748524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44056950-85ba-4b44-8263-77cd6fc06d6f' AND "clubhouse_memberships"."organization_id" = '92427196-08f0-4ab0-a4ee-1aea67f04ff4') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44056950-85ba-4b44-8263-77cd6fc06d6f"], ["organization_id", "92427196-08f0-4ab0-a4ee-1aea67f04ff4"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.753146"], ["updated_at", "2015-07-06 21:17:27.753146"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '44056950-85ba-4b44-8263-77cd6fc06d6f' LIMIT 1 [["organization_id", "92427196-08f0-4ab0-a4ee-1aea67f04ff4"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 112"], ["email", "user.112@example.com"], ["password_digest", "$2a$04$u0TXul1P4T6KT2uA8hVxEejxLPHq2uZgl/aW.9YMMjPk05vZ0wEZO"], ["created_at", "2015-07-06 21:17:27.765002"], ["updated_at", "2015-07-06 21:17:27.765002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.771410"], ["updated_at", "2015-07-06 21:17:27.771410"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f8bc7de-8a86-4678-8d36-13050b744d53' AND "clubhouse_memberships"."organization_id" = '7cb0ec50-3983-4ba8-90d0-4f467d3c3645') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9f8bc7de-8a86-4678-8d36-13050b744d53"], ["organization_id", "7cb0ec50-3983-4ba8-90d0-4f467d3c3645"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.777936"], ["updated_at", "2015-07-06 21:17:27.777936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 113"], ["email", "user.113@example.com"], ["password_digest", "$2a$04$DW9UEcRBmw9vJJBIv1N4L.TugfYuuekXjqg4tDXdJRVlceBVbJxVe"], ["created_at", "2015-07-06 21:17:27.788238"], ["updated_at", "2015-07-06 21:17:27.788238"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc807450-a9a8-4784-b6bd-dbb742c992ba' AND "clubhouse_memberships"."organization_id" = '7cb0ec50-3983-4ba8-90d0-4f467d3c3645') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc807450-a9a8-4784-b6bd-dbb742c992ba"], ["organization_id", "7cb0ec50-3983-4ba8-90d0-4f467d3c3645"], ["created_at", "2015-07-06 21:17:27.796500"], ["updated_at", "2015-07-06 21:17:27.796500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9f8bc7de-8a86-4678-8d36-13050b744d53' LIMIT 1 [["organization_id", "7cb0ec50-3983-4ba8-90d0-4f467d3c3645"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 114"], ["email", "user.114@example.com"], ["password_digest", "$2a$04$KTVkHkF0Rahddgs.XzByl..XVjhCMR5R3GKoY9QDwycsF/3NS4Nay"], ["created_at", "2015-07-06 21:17:27.806580"], ["updated_at", "2015-07-06 21:17:27.806580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.812659"], ["updated_at", "2015-07-06 21:17:27.812659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fb416f7-5a84-4110-93bf-46cdb4de238e' AND "clubhouse_memberships"."organization_id" = 'db5ac78a-545d-4ac9-90f6-ef8d4fbe6d74') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fb416f7-5a84-4110-93bf-46cdb4de238e"], ["organization_id", "db5ac78a-545d-4ac9-90f6-ef8d4fbe6d74"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.816941"], ["updated_at", "2015-07-06 21:17:27.816941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 115"], ["email", "user.115@example.com"], ["password_digest", "$2a$04$59hwmDxMHrNjy.5P7O0tmO/AP2XXuN8mznFmihHHYxXgbIrn8zPKS"], ["created_at", "2015-07-06 21:17:27.823128"], ["updated_at", "2015-07-06 21:17:27.823128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21f04f0a-d6b7-446d-a1ee-12558ba864ed' AND "clubhouse_memberships"."organization_id" = 'db5ac78a-545d-4ac9-90f6-ef8d4fbe6d74') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "21f04f0a-d6b7-446d-a1ee-12558ba864ed"], ["organization_id", "db5ac78a-545d-4ac9-90f6-ef8d4fbe6d74"], ["created_at", "2015-07-06 21:17:27.826837"], ["updated_at", "2015-07-06 21:17:27.826837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '3fb416f7-5a84-4110-93bf-46cdb4de238e' LIMIT 1 [["organization_id", "db5ac78a-545d-4ac9-90f6-ef8d4fbe6d74"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 116"], ["email", "user.116@example.com"], ["password_digest", "$2a$04$GIALDvaWYch2UCiQ106/.eJg2sLipgGMVewNMFRJZS1g1vDzNqS6O"], ["created_at", "2015-07-06 21:17:27.841080"], ["updated_at", "2015-07-06 21:17:27.841080"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.851156"], ["updated_at", "2015-07-06 21:17:27.851156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9417ff3-d0c9-42f4-bba6-a3e6c4505f27' AND "clubhouse_memberships"."organization_id" = '1e3d4a64-048f-4cc6-ad68-4c9fe6642a95') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9417ff3-d0c9-42f4-bba6-a3e6c4505f27"], ["organization_id", "1e3d4a64-048f-4cc6-ad68-4c9fe6642a95"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.856485"], ["updated_at", "2015-07-06 21:17:27.856485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 117"], ["email", "user.117@example.com"], ["password_digest", "$2a$04$tG4XG/dbdKjUIySsy0gt4.aRX3BX2XCajIwW1bRjzLPulC0XUs59u"], ["created_at", "2015-07-06 21:17:27.863182"], ["updated_at", "2015-07-06 21:17:27.863182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd917198a-6c45-4d8b-8dfb-28a74b96672a' AND "clubhouse_memberships"."organization_id" = '1e3d4a64-048f-4cc6-ad68-4c9fe6642a95') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d917198a-6c45-4d8b-8dfb-28a74b96672a"], ["organization_id", "1e3d4a64-048f-4cc6-ad68-4c9fe6642a95"], ["created_at", "2015-07-06 21:17:27.867476"], ["updated_at", "2015-07-06 21:17:27.867476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 118"], ["email", "user.118@example.com"], ["password_digest", "$2a$04$MsaMCohSnArs7FfPSr.bCe1YwQmWcduj3mckT7m6fPECP3kdky5pW"], ["created_at", "2015-07-06 21:17:27.874097"], ["updated_at", "2015-07-06 21:17:27.874097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.878272"], ["updated_at", "2015-07-06 21:17:27.878272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '772639e1-64d8-4ba1-a10a-571245458833' AND "clubhouse_memberships"."organization_id" = '21addf98-28eb-4b6e-a7d2-4afa4b6028c4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "772639e1-64d8-4ba1-a10a-571245458833"], ["organization_id", "21addf98-28eb-4b6e-a7d2-4afa4b6028c4"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.882382"], ["updated_at", "2015-07-06 21:17:27.882382"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 119"], ["email", "user.119@example.com"], ["password_digest", "$2a$04$0C.9B7UgxULTCLfwFNKB7eqZ4dhXtcM1/N8LaUkAOyohlTK7R8cja"], ["created_at", "2015-07-06 21:17:27.888058"], ["updated_at", "2015-07-06 21:17:27.888058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd36ebcce-aa8c-4dee-ab9c-e59d43c65675' AND "clubhouse_memberships"."organization_id" = '21addf98-28eb-4b6e-a7d2-4afa4b6028c4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d36ebcce-aa8c-4dee-ab9c-e59d43c65675"], ["organization_id", "21addf98-28eb-4b6e-a7d2-4afa4b6028c4"], ["created_at", "2015-07-06 21:17:27.891426"], ["updated_at", "2015-07-06 21:17:27.891426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '772639e1-64d8-4ba1-a10a-571245458833' LIMIT 1 [["organization_id", "21addf98-28eb-4b6e-a7d2-4afa4b6028c4"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 120"], ["email", "user.120@example.com"], ["password_digest", "$2a$04$bgzVyZKsuecs4S9Oh5Macu6xpYD7Go0ixg5IYOefOngfFCaAS62TK"], ["created_at", "2015-07-06 21:17:27.900989"], ["updated_at", "2015-07-06 21:17:27.900989"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:27.910993"], ["user_id", "428615ce-a787-4949-a183-ffbd3ebf1722"], ["created_at", "2015-07-06 21:17:27.912173"], ["updated_at", "2015-07-06 21:17:27.912173"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.917856"], ["updated_at", "2015-07-06 21:17:27.917856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '428615ce-a787-4949-a183-ffbd3ebf1722' AND "clubhouse_memberships"."organization_id" = '326961c2-eb14-4a88-8249-ce91526d59a4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "428615ce-a787-4949-a183-ffbd3ebf1722"], ["organization_id", "326961c2-eb14-4a88-8249-ce91526d59a4"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.921839"], ["updated_at", "2015-07-06 21:17:27.921839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:17:27 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 121"], ["email", "user.121@example.com"], ["password_digest", "$2a$04$hlh470a9/qMl27VMn7tjqO2kMkihBVaGr/eBKcC7zVN/Mto6gT2rW"], ["created_at", "2015-07-06 21:17:27.937039"], ["updated_at", "2015-07-06 21:17:27.937039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:27.938822"], ["user_id", "163a19b2-bd1f-4940-9c7e-ca29047abb4c"], ["created_at", "2015-07-06 21:17:27.939442"], ["updated_at", "2015-07-06 21:17:27.939442"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.943675"], ["updated_at", "2015-07-06 21:17:27.943675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '163a19b2-bd1f-4940-9c7e-ca29047abb4c' AND "clubhouse_memberships"."organization_id" = 'e1f1a639-e45a-4512-ae9e-b690eb98e282') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "163a19b2-bd1f-4940-9c7e-ca29047abb4c"], ["organization_id", "e1f1a639-e45a-4512-ae9e-b690eb98e282"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.946983"], ["updated_at", "2015-07-06 21:17:27.946983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-60" for 127.0.0.1 at 2015-07-06 14:17:27 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-60", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:27.951176') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b5360fb2-1f30-4a26-be5a-d7d5fd4dcccc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:27.952578"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:27.953477"], ["id", "b5360fb2-1f30-4a26-be5a-d7d5fd4dcccc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-60"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "163a19b2-bd1f-4940-9c7e-ca29047abb4c"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '163a19b2-bd1f-4940-9c7e-ca29047abb4c' LIMIT 1 [["organization_id", "e1f1a639-e45a-4512-ae9e-b690eb98e282"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 122"], ["email", "user.122@example.com"], ["password_digest", "$2a$04$PJ.7unVZgm4/BlKrSxOW8..cek9dvLFDDt2y87Y/ljESP17EhEsEC"], ["created_at", "2015-07-06 21:17:27.967568"], ["updated_at", "2015-07-06 21:17:27.967568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:27.969815"], ["user_id", "57dd2a8f-a289-4581-ab5e-3a55d5dc0994"], ["created_at", "2015-07-06 21:17:27.970791"], ["updated_at", "2015-07-06 21:17:27.970791"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.975611"], ["updated_at", "2015-07-06 21:17:27.975611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57dd2a8f-a289-4581-ab5e-3a55d5dc0994' AND "clubhouse_memberships"."organization_id" = 'c9523a95-667a-499c-9d40-074de002b44d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57dd2a8f-a289-4581-ab5e-3a55d5dc0994"], ["organization_id", "c9523a95-667a-499c-9d40-074de002b44d"], ["admin", "t"], ["created_at", "2015-07-06 21:17:27.978854"], ["updated_at", "2015-07-06 21:17:27.978854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 123"], ["email", "user.123@example.com"], ["password_digest", "$2a$04$mnS/lWrpZeOe0vf2GM0Rxuuy.pbwFkgwqWxP7Rr5nBRYfMev0Dngy"], ["created_at", "2015-07-06 21:17:27.985036"], ["updated_at", "2015-07-06 21:17:27.985036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:27.988985"], ["updated_at", "2015-07-06 21:17:27.988985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62f7c67f-21f8-48c7-8ed1-43bb5c55dc92' AND "clubhouse_memberships"."organization_id" = 'b8d9a2cd-d5ef-46cf-ab41-20e3766bbe99') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "62f7c67f-21f8-48c7-8ed1-43bb5c55dc92"], ["organization_id", "b8d9a2cd-d5ef-46cf-ab41-20e3766bbe99"], ["created_at", "2015-07-06 21:17:27.991867"], ["updated_at", "2015-07-06 21:17:27.991867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:17:27 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 124"], ["email", "user.124@example.com"], ["password_digest", "$2a$04$HuvQN8Plva3eETQ/zUmoTOBcWOLU7R8D3hbxds5WuG6gNJR.54Hxi"], ["created_at", "2015-07-06 21:17:28.001225"], ["updated_at", "2015-07-06 21:17:28.001225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.002846"], ["user_id", "acd392ca-65a2-4a24-b9f6-b9d038888b9e"], ["created_at", "2015-07-06 21:17:28.003440"], ["updated_at", "2015-07-06 21:17:28.003440"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.007513"], ["updated_at", "2015-07-06 21:17:28.007513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'acd392ca-65a2-4a24-b9f6-b9d038888b9e' AND "clubhouse_memberships"."organization_id" = '44457d78-7f46-456e-8a64-f541ccb0d058') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "acd392ca-65a2-4a24-b9f6-b9d038888b9e"], ["organization_id", "44457d78-7f46-456e-8a64-f541ccb0d058"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.011285"], ["updated_at", "2015-07-06 21:17:28.011285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 125"], ["email", "user.125@example.com"], ["password_digest", "$2a$04$k8h0cy8RA0KgeOl4cjST2e7gMNzVx1tLsIDliao1EDjpzhqUOPgxu"], ["created_at", "2015-07-06 21:17:28.018007"], ["updated_at", "2015-07-06 21:17:28.018007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.022241"], ["updated_at", "2015-07-06 21:17:28.022241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cea0dc7f-1da7-4d16-bdd9-e877cf162faf' AND "clubhouse_memberships"."organization_id" = '31ef51a2-c36c-4551-a347-5a1f34b2af01') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cea0dc7f-1da7-4d16-bdd9-e877cf162faf"], ["organization_id", "31ef51a2-c36c-4551-a347-5a1f34b2af01"], ["created_at", "2015-07-06 21:17:28.025225"], ["updated_at", "2015-07-06 21:17:28.025225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.027915') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9672c176-9796-4ea6-8576-13f324653444"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.029393"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.030590"], ["id", "9672c176-9796-4ea6-8576-13f324653444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "acd392ca-65a2-4a24-b9f6-b9d038888b9e"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "acd392ca-65a2-4a24-b9f6-b9d038888b9e"]] Completed 200 OK in 11ms (Views: 3.1ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 126"], ["email", "user.126@example.com"], ["password_digest", "$2a$04$nY0phzHtVNcAojX2ccmqdOxCm37GWU6gG380GaFQqh.6otg/6PI/m"], ["created_at", "2015-07-06 21:17:28.046008"], ["updated_at", "2015-07-06 21:17:28.046008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.048446"], ["user_id", "083c00a6-484d-4594-aa23-9c00e678fe39"], ["created_at", "2015-07-06 21:17:28.049187"], ["updated_at", "2015-07-06 21:17:28.049187"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.053569"], ["updated_at", "2015-07-06 21:17:28.053569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '083c00a6-484d-4594-aa23-9c00e678fe39' AND "clubhouse_memberships"."organization_id" = '8596220e-8abd-4a3a-93e7-e3f2021f3221') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "083c00a6-484d-4594-aa23-9c00e678fe39"], ["organization_id", "8596220e-8abd-4a3a-93e7-e3f2021f3221"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.057049"], ["updated_at", "2015-07-06 21:17:28.057049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-65" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-65", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.060178') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a6281e54-d419-4996-97a5-b894474948e6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.061574"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.062335"], ["id", "a6281e54-d419-4996-97a5-b894474948e6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-65"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "083c00a6-484d-4594-aa23-9c00e678fe39"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '083c00a6-484d-4594-aa23-9c00e678fe39' LIMIT 1 [["organization_id", "8596220e-8abd-4a3a-93e7-e3f2021f3221"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8596220e-8abd-4a3a-93e7-e3f2021f3221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 127"], ["email", "user.127@example.com"], ["password_digest", "$2a$04$o.ytUjFogRc.dUTBvCuuQuZJn0vwYd7jbO5T3cYZscgz6OvhQN9h6"], ["created_at", "2015-07-06 21:17:28.080244"], ["updated_at", "2015-07-06 21:17:28.080244"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.083531"], ["user_id", "0bf41103-9652-48b1-aece-23efc0d79c8e"], ["created_at", "2015-07-06 21:17:28.084445"], ["updated_at", "2015-07-06 21:17:28.084445"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.090289"], ["updated_at", "2015-07-06 21:17:28.090289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0bf41103-9652-48b1-aece-23efc0d79c8e' AND "clubhouse_memberships"."organization_id" = '380c6497-87c2-4463-817d-b7c6db636ecd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0bf41103-9652-48b1-aece-23efc0d79c8e"], ["organization_id", "380c6497-87c2-4463-817d-b7c6db636ecd"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.093608"], ["updated_at", "2015-07-06 21:17:28.093608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 128"], ["email", "user.128@example.com"], ["password_digest", "$2a$04$K0zDd38JlhVHLhpc9IsEduShSOdPC9YNj7a9Z8B1t1OtJ69xq64Da"], ["created_at", "2015-07-06 21:17:28.103286"], ["updated_at", "2015-07-06 21:17:28.103286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.105452"], ["user_id", "d213f04a-4670-47e7-ba7f-ca8f6fb74375"], ["created_at", "2015-07-06 21:17:28.106144"], ["updated_at", "2015-07-06 21:17:28.106144"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.110760"], ["updated_at", "2015-07-06 21:17:28.110760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd213f04a-4670-47e7-ba7f-ca8f6fb74375' AND "clubhouse_memberships"."organization_id" = '79234cd3-88d5-4447-9f1e-77dbbb4de1cb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d213f04a-4670-47e7-ba7f-ca8f6fb74375"], ["organization_id", "79234cd3-88d5-4447-9f1e-77dbbb4de1cb"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.115794"], ["updated_at", "2015-07-06 21:17:28.115794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 129"], ["email", "user.129@example.com"], ["password_digest", "$2a$04$9SdV02KDJCw/rou/GmV1H.3xmKdCBlSL9GwDnPzukaNWcOwzEHhg6"], ["created_at", "2015-07-06 21:17:28.130197"], ["updated_at", "2015-07-06 21:17:28.130197"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.135110"], ["user_id", "200d406e-a019-4885-a55d-5722df7447f4"], ["created_at", "2015-07-06 21:17:28.136345"], ["updated_at", "2015-07-06 21:17:28.136345"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.144418"], ["updated_at", "2015-07-06 21:17:28.144418"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '200d406e-a019-4885-a55d-5722df7447f4' AND "clubhouse_memberships"."organization_id" = '7b87a15b-ec1d-4bae-b9df-ea67c8558342') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "200d406e-a019-4885-a55d-5722df7447f4"], ["organization_id", "7b87a15b-ec1d-4bae-b9df-ea67c8558342"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.154615"], ["updated_at", "2015-07-06 21:17:28.154615"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-68" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-68", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.157899') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6b699fe7-53d6-428c-aef2-b41c6e3d0b87"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.159365"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.160132"], ["id", "6b699fe7-53d6-428c-aef2-b41c6e3d0b87"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-68"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "200d406e-a019-4885-a55d-5722df7447f4"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '200d406e-a019-4885-a55d-5722df7447f4' LIMIT 1 [["organization_id", "7b87a15b-ec1d-4bae-b9df-ea67c8558342"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7b87a15b-ec1d-4bae-b9df-ea67c8558342') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:17:28.168905"], ["id", "7b87a15b-ec1d-4bae-b9df-ea67c8558342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.1ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 130"], ["email", "user.130@example.com"], ["password_digest", "$2a$04$M5RYF3ph9PPLNpAaU0n6bOL0AY46CJ9dtg9Nu4kv27gmsnnrya0S."], ["created_at", "2015-07-06 21:17:28.179128"], ["updated_at", "2015-07-06 21:17:28.179128"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.181630"], ["user_id", "45df1527-bb39-4364-a8be-5c79ef135f0b"], ["created_at", "2015-07-06 21:17:28.182398"], ["updated_at", "2015-07-06 21:17:28.182398"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.186819"], ["updated_at", "2015-07-06 21:17:28.186819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45df1527-bb39-4364-a8be-5c79ef135f0b' AND "clubhouse_memberships"."organization_id" = '6192c90c-9455-4c79-87bf-a124d0ff09e3') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45df1527-bb39-4364-a8be-5c79ef135f0b"], ["organization_id", "6192c90c-9455-4c79-87bf-a124d0ff09e3"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.190264"], ["updated_at", "2015-07-06 21:17:28.190264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-69" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-69", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.195656') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "136d9056-b87c-4cbe-b4fa-836a67ed23a2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.198379"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.199949"], ["id", "136d9056-b87c-4cbe-b4fa-836a67ed23a2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-69"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45df1527-bb39-4364-a8be-5c79ef135f0b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '45df1527-bb39-4364-a8be-5c79ef135f0b' LIMIT 1 [["organization_id", "6192c90c-9455-4c79-87bf-a124d0ff09e3"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6192c90c-9455-4c79-87bf-a124d0ff09e3') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 131"], ["email", "user.131@example.com"], ["password_digest", "$2a$04$.Yh7ZkhK4mk1rdm2tzgE3ufrcT4bmuwHfM1yPtRdsw7Z/8tD0AbCG"], ["created_at", "2015-07-06 21:17:28.220393"], ["updated_at", "2015-07-06 21:17:28.220393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.222521"], ["user_id", "014bc6fc-bda1-4c03-94b0-7932193037ad"], ["created_at", "2015-07-06 21:17:28.223360"], ["updated_at", "2015-07-06 21:17:28.223360"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.228722"], ["updated_at", "2015-07-06 21:17:28.228722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '014bc6fc-bda1-4c03-94b0-7932193037ad' AND "clubhouse_memberships"."organization_id" = '0623bb96-f45f-479d-a35a-1c8a92f37780') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "014bc6fc-bda1-4c03-94b0-7932193037ad"], ["organization_id", "0623bb96-f45f-479d-a35a-1c8a92f37780"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.233872"], ["updated_at", "2015-07-06 21:17:28.233872"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 132"], ["email", "user.132@example.com"], ["password_digest", "$2a$04$iuU5ngay.f1hvuc3YXWB/ejAcmJDvZNBLAMWiKOGIEyN9lyIGravi"], ["created_at", "2015-07-06 21:17:28.248552"], ["updated_at", "2015-07-06 21:17:28.248552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.251670"], ["user_id", "3aae05fa-23e1-426c-8124-02f427692301"], ["created_at", "2015-07-06 21:17:28.252325"], ["updated_at", "2015-07-06 21:17:28.252325"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.257305"], ["updated_at", "2015-07-06 21:17:28.257305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3aae05fa-23e1-426c-8124-02f427692301' AND "clubhouse_memberships"."organization_id" = 'ad962509-6f0c-4f0c-a4ed-35406e269296') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3aae05fa-23e1-426c-8124-02f427692301"], ["organization_id", "ad962509-6f0c-4f0c-a4ed-35406e269296"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.261481"], ["updated_at", "2015-07-06 21:17:28.261481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.265012') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8ed5a38b-b555-4014-99c8-1536644fd633"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.266738"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.267838"], ["id", "8ed5a38b-b555-4014-99c8-1536644fd633"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 7ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 133"], ["email", "user.133@example.com"], ["password_digest", "$2a$04$qa8Qf4xvm0rjh4rPjr0B7.T1MgdPYxHIvDLdFu5ZwvcT4LG7fPzjq"], ["created_at", "2015-07-06 21:17:28.279772"], ["updated_at", "2015-07-06 21:17:28.279772"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.282792"], ["user_id", "d23d49c6-d3a0-4509-86f2-413c11ef37bd"], ["created_at", "2015-07-06 21:17:28.284041"], ["updated_at", "2015-07-06 21:17:28.284041"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.291494"], ["updated_at", "2015-07-06 21:17:28.291494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd23d49c6-d3a0-4509-86f2-413c11ef37bd' AND "clubhouse_memberships"."organization_id" = 'a6f1f62b-84cb-44c7-9368-41729a4ad706') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d23d49c6-d3a0-4509-86f2-413c11ef37bd"], ["organization_id", "a6f1f62b-84cb-44c7-9368-41729a4ad706"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.298248"], ["updated_at", "2015-07-06 21:17:28.298248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-72" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-72", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.303628') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1dd69c4f-db27-4794-a853-5591622237c1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.305593"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.306663"], ["id", "1dd69c4f-db27-4794-a853-5591622237c1"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-72"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d23d49c6-d3a0-4509-86f2-413c11ef37bd"]] Completed 200 OK in 9ms (ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 134"], ["email", "user.134@example.com"], ["password_digest", "$2a$04$x5ltWryaZb9VjekSYOYOFuhUJT3WpvHlMKRrWCUg2L2cI7YAHljCS"], ["created_at", "2015-07-06 21:17:28.320896"], ["updated_at", "2015-07-06 21:17:28.320896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.322617"], ["user_id", "8ecf353c-bd81-42ad-b658-624365710cd3"], ["created_at", "2015-07-06 21:17:28.323220"], ["updated_at", "2015-07-06 21:17:28.323220"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.327489"], ["updated_at", "2015-07-06 21:17:28.327489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ecf353c-bd81-42ad-b658-624365710cd3' AND "clubhouse_memberships"."organization_id" = 'c3e853f1-6fe2-46e8-86af-956e5c03129a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ecf353c-bd81-42ad-b658-624365710cd3"], ["organization_id", "c3e853f1-6fe2-46e8-86af-956e5c03129a"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.330829"], ["updated_at", "2015-07-06 21:17:28.330829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 135"], ["email", "user.135@example.com"], ["password_digest", "$2a$04$6kpMkifZu1VOAhPTNQeHBe4MFJ/hrG9993htXhdEPkhfgRPIFyfv6"], ["created_at", "2015-07-06 21:17:28.340069"], ["updated_at", "2015-07-06 21:17:28.340069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.341689"], ["user_id", "eaccaf4b-1bb7-4d48-8feb-b72551b0bacf"], ["created_at", "2015-07-06 21:17:28.342298"], ["updated_at", "2015-07-06 21:17:28.342298"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.346257"], ["updated_at", "2015-07-06 21:17:28.346257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaccaf4b-1bb7-4d48-8feb-b72551b0bacf' AND "clubhouse_memberships"."organization_id" = '5115c64d-456a-49cb-a867-96fd59bc3216') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eaccaf4b-1bb7-4d48-8feb-b72551b0bacf"], ["organization_id", "5115c64d-456a-49cb-a867-96fd59bc3216"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.350201"], ["updated_at", "2015-07-06 21:17:28.350201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.353013') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "32aa551d-6434-445b-a674-cb4388464f62"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.354482"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.355223"], ["id", "32aa551d-6434-445b-a674-cb4388464f62"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eaccaf4b-1bb7-4d48-8feb-b72551b0bacf"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.364333"], ["updated_at", "2015-07-06 21:17:28.364333"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eaccaf4b-1bb7-4d48-8feb-b72551b0bacf' AND "clubhouse_memberships"."organization_id" = '89f0f679-fe1e-4740-b739-69c93764c798') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eaccaf4b-1bb7-4d48-8feb-b72551b0bacf"], ["admin", "t"], ["organization_id", "89f0f679-fe1e-4740-b739-69c93764c798"], ["created_at", "2015-07-06 21:17:28.368631"], ["updated_at", "2015-07-06 21:17:28.368631"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 136"], ["email", "user.136@example.com"], ["password_digest", "$2a$04$CvcH8XrwFwi3GCAY2l/JQOGjNR37VZabZSbkg8Uif36VRZ2nc07t2"], ["created_at", "2015-07-06 21:17:28.383263"], ["updated_at", "2015-07-06 21:17:28.383263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.385506"], ["user_id", "b70f8608-2655-4b99-9d81-7ef3a5e316af"], ["created_at", "2015-07-06 21:17:28.386125"], ["updated_at", "2015-07-06 21:17:28.386125"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.390234"], ["updated_at", "2015-07-06 21:17:28.390234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b70f8608-2655-4b99-9d81-7ef3a5e316af' AND "clubhouse_memberships"."organization_id" = '9551d157-7874-4ff4-93ea-be172e8ca17b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b70f8608-2655-4b99-9d81-7ef3a5e316af"], ["organization_id", "9551d157-7874-4ff4-93ea-be172e8ca17b"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.393292"], ["updated_at", "2015-07-06 21:17:28.393292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.396045') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1204ac75-e099-4a9e-8ddd-16927f778902"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.397510"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.398649"], ["id", "1204ac75-e099-4a9e-8ddd-16927f778902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b70f8608-2655-4b99-9d81-7ef3a5e316af"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 137"], ["email", "user.137@example.com"], ["password_digest", "$2a$04$7u6VeVJint3whuJa.YJzhOc.HNh3vPmFtWVsTrDXd2UOh6wcDJ0TC"], ["created_at", "2015-07-06 21:17:28.413248"], ["updated_at", "2015-07-06 21:17:28.413248"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.415698"], ["user_id", "15413921-c61c-416f-b1d5-9ecead8ca1c7"], ["created_at", "2015-07-06 21:17:28.416553"], ["updated_at", "2015-07-06 21:17:28.416553"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.421568"], ["updated_at", "2015-07-06 21:17:28.421568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15413921-c61c-416f-b1d5-9ecead8ca1c7' AND "clubhouse_memberships"."organization_id" = '4d99b31b-15b9-4614-a648-08f6b164a153') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15413921-c61c-416f-b1d5-9ecead8ca1c7"], ["organization_id", "4d99b31b-15b9-4614-a648-08f6b164a153"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.424585"], ["updated_at", "2015-07-06 21:17:28.424585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 138"], ["email", "user.138@example.com"], ["password_digest", "$2a$04$PcfkDMEKgKqSKmwey/nlG.scVKvf.XNyiRBAJM6CPoZ1UWBHGp4Qi"], ["created_at", "2015-07-06 21:17:28.434407"], ["updated_at", "2015-07-06 21:17:28.434407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.436500"], ["user_id", "97c7b1a7-729b-4757-b35d-b34ec67ce325"], ["created_at", "2015-07-06 21:17:28.437133"], ["updated_at", "2015-07-06 21:17:28.437133"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.441255"], ["updated_at", "2015-07-06 21:17:28.441255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97c7b1a7-729b-4757-b35d-b34ec67ce325' AND "clubhouse_memberships"."organization_id" = '1e8d20aa-0231-4235-9dc3-9a6fd81b6047') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97c7b1a7-729b-4757-b35d-b34ec67ce325"], ["organization_id", "1e8d20aa-0231-4235-9dc3-9a6fd81b6047"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.444363"], ["updated_at", "2015-07-06 21:17:28.444363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1e8d20aa-0231-4235-9dc3-9a6fd81b6047" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1e8d20aa-0231-4235-9dc3-9a6fd81b6047", "organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.447948') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ecaccb32-8cad-4315-9df0-3693298b7ab4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.450526"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.451895"], ["id", "ecaccb32-8cad-4315-9df0-3693298b7ab4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1e8d20aa-0231-4235-9dc3-9a6fd81b6047"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "97c7b1a7-729b-4757-b35d-b34ec67ce325"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '97c7b1a7-729b-4757-b35d-b34ec67ce325' LIMIT 1 [["organization_id", "1e8d20aa-0231-4235-9dc3-9a6fd81b6047"]] Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 139"], ["email", "user.139@example.com"], ["password_digest", "$2a$04$bzK6dm2xdJHTo7vgNKtTP.WdV24.s5Aph9GGUg3loSA5SFVzdEEny"], ["created_at", "2015-07-06 21:17:28.470153"], ["updated_at", "2015-07-06 21:17:28.470153"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.473336"], ["user_id", "92b3e20d-a923-4ca8-bf04-e6695464bbc1"], ["created_at", "2015-07-06 21:17:28.474169"], ["updated_at", "2015-07-06 21:17:28.474169"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.480368"], ["updated_at", "2015-07-06 21:17:28.480368"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92b3e20d-a923-4ca8-bf04-e6695464bbc1' AND "clubhouse_memberships"."organization_id" = '459ad98b-1e89-4d1d-81c7-424c93ea4856') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "92b3e20d-a923-4ca8-bf04-e6695464bbc1"], ["organization_id", "459ad98b-1e89-4d1d-81c7-424c93ea4856"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.488672"], ["updated_at", "2015-07-06 21:17:28.488672"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/459ad98b-1e89-4d1d-81c7-424c93ea4856" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"459ad98b-1e89-4d1d-81c7-424c93ea4856", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.492710') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "698b9da9-9167-474a-aa85-e741a1b58989"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.494058"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.494758"], ["id", "698b9da9-9167-474a-aa85-e741a1b58989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "459ad98b-1e89-4d1d-81c7-424c93ea4856"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "92b3e20d-a923-4ca8-bf04-e6695464bbc1"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '92b3e20d-a923-4ca8-bf04-e6695464bbc1' LIMIT 1 [["organization_id", "459ad98b-1e89-4d1d-81c7-424c93ea4856"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "459ad98b-1e89-4d1d-81c7-424c93ea4856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 140"], ["email", "user.140@example.com"], ["password_digest", "$2a$04$VGQyZhMcg7IzjpuxeH38DuQhNMhpItK13qAE2VTd0Wd1uqUxWrXta"], ["created_at", "2015-07-06 21:17:28.509179"], ["updated_at", "2015-07-06 21:17:28.509179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.510901"], ["user_id", "57380b59-b5d4-4fca-9620-c9bf192e24cf"], ["created_at", "2015-07-06 21:17:28.511531"], ["updated_at", "2015-07-06 21:17:28.511531"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.516261"], ["updated_at", "2015-07-06 21:17:28.516261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57380b59-b5d4-4fca-9620-c9bf192e24cf' AND "clubhouse_memberships"."organization_id" = '5241154d-dc09-4ad8-95bf-b7e81ac99172') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "57380b59-b5d4-4fca-9620-c9bf192e24cf"], ["organization_id", "5241154d-dc09-4ad8-95bf-b7e81ac99172"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.520235"], ["updated_at", "2015-07-06 21:17:28.520235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 141"], ["email", "user.141@example.com"], ["password_digest", "$2a$04$H7cS/StzuA4iW.82Az4vLuEya4KcHf1vMJC6h5yT/7/kv/eBWBDoe"], ["created_at", "2015-07-06 21:17:28.529594"], ["updated_at", "2015-07-06 21:17:28.529594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.531749"], ["user_id", "7ce23298-ed99-4fe1-a33e-6a86d4c6ffde"], ["created_at", "2015-07-06 21:17:28.532574"], ["updated_at", "2015-07-06 21:17:28.532574"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.536703"], ["updated_at", "2015-07-06 21:17:28.536703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ce23298-ed99-4fe1-a33e-6a86d4c6ffde' AND "clubhouse_memberships"."organization_id" = '225382b4-34ae-4eae-a2dc-b18500d24f98') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ce23298-ed99-4fe1-a33e-6a86d4c6ffde"], ["organization_id", "225382b4-34ae-4eae-a2dc-b18500d24f98"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.540360"], ["updated_at", "2015-07-06 21:17:28.540360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 142"], ["email", "user.142@example.com"], ["password_digest", "$2a$04$RnJQ0RMYMBCzirN66W9eHu.KmGTqpisfxZfIP4dPcJCtiydWKVEEC"], ["created_at", "2015-07-06 21:17:28.551170"], ["updated_at", "2015-07-06 21:17:28.551170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.552859"], ["user_id", "cbe6b444-0c7d-47f0-8d6b-eceff6925cf1"], ["created_at", "2015-07-06 21:17:28.553525"], ["updated_at", "2015-07-06 21:17:28.553525"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.557462"], ["updated_at", "2015-07-06 21:17:28.557462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe6b444-0c7d-47f0-8d6b-eceff6925cf1' AND "clubhouse_memberships"."organization_id" = '2fa74a59-2125-417b-a579-8fab94d21bc4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cbe6b444-0c7d-47f0-8d6b-eceff6925cf1"], ["organization_id", "2fa74a59-2125-417b-a579-8fab94d21bc4"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.560978"], ["updated_at", "2015-07-06 21:17:28.560978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/2fa74a59-2125-417b-a579-8fab94d21bc4" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"2fa74a59-2125-417b-a579-8fab94d21bc4", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.564807') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5fd0e592-210a-4a8d-b1e3-9a8fe7243cf4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.566327"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.567062"], ["id", "5fd0e592-210a-4a8d-b1e3-9a8fe7243cf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2fa74a59-2125-417b-a579-8fab94d21bc4"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cbe6b444-0c7d-47f0-8d6b-eceff6925cf1"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'cbe6b444-0c7d-47f0-8d6b-eceff6925cf1' LIMIT 1 [["organization_id", "2fa74a59-2125-417b-a579-8fab94d21bc4"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2fa74a59-2125-417b-a579-8fab94d21bc4') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 143"], ["email", "user.143@example.com"], ["password_digest", "$2a$04$lQuE2T.9.wzB/xNyDa7SyeUXIpSzh/h9tpF0vHaQPOQvqfwE3XiLu"], ["created_at", "2015-07-06 21:17:28.582489"], ["updated_at", "2015-07-06 21:17:28.582489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:17:28.584593"], ["user_id", "9d7df997-c4c8-4797-ae75-63b457a035b3"], ["created_at", "2015-07-06 21:17:28.585355"], ["updated_at", "2015-07-06 21:17:28.585355"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:17:28.590484"], ["updated_at", "2015-07-06 21:17:28.590484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d7df997-c4c8-4797-ae75-63b457a035b3' AND "clubhouse_memberships"."organization_id" = '455da78d-1460-486c-a07c-ba8ad7544054') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d7df997-c4c8-4797-ae75-63b457a035b3"], ["organization_id", "455da78d-1460-486c-a07c-ba8ad7544054"], ["admin", "t"], ["created_at", "2015-07-06 21:17:28.593813"], ["updated_at", "2015-07-06 21:17:28.593813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/455da78d-1460-486c-a07c-ba8ad7544054" for 127.0.0.1 at 2015-07-06 14:17:28 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"455da78d-1460-486c-a07c-ba8ad7544054", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:17:28.596620') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "eff74d3b-40f4-4fc5-ae0a-78d2512b6628"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:17:28.598662"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:17:28.600326"], ["id", "eff74d3b-40f4-4fc5-ae0a-78d2512b6628"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "455da78d-1460-486c-a07c-ba8ad7544054"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9d7df997-c4c8-4797-ae75-63b457a035b3"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9d7df997-c4c8-4797-ae75-63b457a035b3' LIMIT 1 [["organization_id", "455da78d-1460-486c-a07c-ba8ad7544054"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '455da78d-1460-486c-a07c-ba8ad7544054') LIMIT 1 SQL (0.5ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:17:28.616937"], ["id", "455da78d-1460-486c-a07c-ba8ad7544054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 24ms (Views: 0.7ms | ActiveRecord: 3.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (4.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$RxQeD54xEWwm.Qz3icfRDe1FkhZXcjLSMjhUJ8WHi7yICAFmbklpW"], ["created_at", "2015-07-06 21:18:04.365261"], ["updated_at", "2015-07-06 21:18:04.365261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.384360"], ["updated_at", "2015-07-06 21:18:04.384360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc424f44-4363-4f29-9f26-7e6c1013d134' AND "clubhouse_memberships"."organization_id" = 'c7fbed5f-81ee-4abd-8320-0b96e3625f15') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc424f44-4363-4f29-9f26-7e6c1013d134"], ["organization_id", "c7fbed5f-81ee-4abd-8320-0b96e3625f15"], ["created_at", "2015-07-06 21:18:04.388511"], ["updated_at", "2015-07-06 21:18:04.388511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.7ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cc424f44-4363-4f29-9f26-7e6c1013d134"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c7fbed5f-81ee-4abd-8320-0b96e3625f15"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc424f44-4363-4f29-9f26-7e6c1013d134' AND "clubhouse_memberships"."organization_id" = 'c7fbed5f-81ee-4abd-8320-0b96e3625f15') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c7fbed5f-81ee-4abd-8320-0b96e3625f16"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc424f44-4363-4f29-9f26-7e6c1013d134' AND "clubhouse_memberships"."organization_id" = 'c7fbed5f-81ee-4abd-8320-0b96e3625f16') LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$leX0jWZNKo.BHyeuGWlEzezoUgJNMG1M36TFSwTxWejgUoeZTPCMW"], ["created_at", "2015-07-06 21:18:04.421401"], ["updated_at", "2015-07-06 21:18:04.421401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$cC/GAlAMvG5Dp58SQdmUIeIxH/QQlRM9BNXphI3mS5JuNFtLEh/Vq"], ["created_at", "2015-07-06 21:18:04.429434"], ["updated_at", "2015-07-06 21:18:04.429434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.434186"], ["updated_at", "2015-07-06 21:18:04.434186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '005ce399-26f0-4cdc-8390-9fce51142b72' AND "clubhouse_memberships"."organization_id" = '846cbc98-50cb-4b7f-9133-82deb47c2dbd') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "005ce399-26f0-4cdc-8390-9fce51142b72"], ["organization_id", "846cbc98-50cb-4b7f-9133-82deb47c2dbd"], ["created_at", "2015-07-06 21:18:04.437607"], ["updated_at", "2015-07-06 21:18:04.437607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'ea1a851d-aebd-4d51-b24d-537c2b328dc8' LIMIT 1 [["organization_id", "846cbc98-50cb-4b7f-9133-82deb47c2dbd"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$HXnA4W7V.2pq3CGr8iH4hOwm25e.oQ2pv8xMgA.LEZFduuauFfTSq"], ["created_at", "2015-07-06 21:18:04.464860"], ["updated_at", "2015-07-06 21:18:04.464860"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$OpdVb/4qSZ0lwZxmZh3R.On3S1fJlb2sPtIBf3T7jUzJ7crV/Olwe"], ["created_at", "2015-07-06 21:18:04.473002"], ["updated_at", "2015-07-06 21:18:04.473002"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.480733"], ["updated_at", "2015-07-06 21:18:04.480733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7d366680-bb19-442b-ad17-df3f9de7c6b5' AND "clubhouse_memberships"."organization_id" = '6cf18272-64be-4ee6-8415-3d564b3fb4b6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7d366680-bb19-442b-ad17-df3f9de7c6b5"], ["organization_id", "6cf18272-64be-4ee6-8415-3d564b3fb4b6"], ["created_at", "2015-07-06 21:18:04.484273"], ["updated_at", "2015-07-06 21:18:04.484273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$Dg.wpOjp7MAw4KSD.poLcuYRfJINn9M6jsBJj8BzOzsuOJB2m9eqe"], ["created_at", "2015-07-06 21:18:04.491001"], ["updated_at", "2015-07-06 21:18:04.491001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$RtNGaNp82O2Wwek6Edy8k.PYzL8HGjA73ux.vaViPdAKpn.EFKv/O"], ["created_at", "2015-07-06 21:18:04.496900"], ["updated_at", "2015-07-06 21:18:04.496900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.504321"], ["updated_at", "2015-07-06 21:18:04.504321"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e0670ee-03a1-4a48-a088-43152e692b17' AND "clubhouse_memberships"."organization_id" = 'b3743660-1632-4121-8600-20124e2c9506') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6e0670ee-03a1-4a48-a088-43152e692b17"], ["organization_id", "b3743660-1632-4121-8600-20124e2c9506"], ["created_at", "2015-07-06 21:18:04.510883"], ["updated_at", "2015-07-06 21:18:04.510883"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '1f68688f-d824-4a80-9473-2456e388b77d' LIMIT 1 [["organization_id", "b3743660-1632-4121-8600-20124e2c9506"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$cg.SmXRYlIoLjAiTco8De.G3BeFaoV89mVDDeTgMyJPVdWePCPKR."], ["created_at", "2015-07-06 21:18:04.523755"], ["updated_at", "2015-07-06 21:18:04.523755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$Ta7mVBy/SiiDWg9TWbnsYeBBIQjGJ3CsRp/GJmUOqML6r1By/rbQy"], ["created_at", "2015-07-06 21:18:04.530586"], ["updated_at", "2015-07-06 21:18:04.530586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.534785"], ["updated_at", "2015-07-06 21:18:04.534785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8621034-946b-439f-8c99-0f9ad115cc04' AND "clubhouse_memberships"."organization_id" = 'b2b62896-90f5-4502-ba15-186a19e0a935') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d8621034-946b-439f-8c99-0f9ad115cc04"], ["organization_id", "b2b62896-90f5-4502-ba15-186a19e0a935"], ["created_at", "2015-07-06 21:18:04.537991"], ["updated_at", "2015-07-06 21:18:04.537991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '35a245ed-d07d-47a6-ad0b-bdc73d9b19bf' LIMIT 1 [["organization_id", "b2b62896-90f5-4502-ba15-186a19e0a935"]]  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$RBNPHequAfKh0sBmPVcp0.aR3/Ltlk6KL0EgZwZMlZOm3RD08XKOO"], ["created_at", "2015-07-06 21:18:04.550227"], ["updated_at", "2015-07-06 21:18:04.550227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.555077"], ["updated_at", "2015-07-06 21:18:04.555077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3cfc98ce-f96b-48a6-8004-f1b14dd8e649' LIMIT 1 [["organization_id", "fc3e0152-7870-4b7c-92a7-9ea1c90e18e2"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$z6mhP9Nf4gDiPugV/7zag.mn7cjJLUsHtM..IZ3qZzmTHsO6Qj2b6"], ["created_at", "2015-07-06 21:18:04.564752"], ["updated_at", "2015-07-06 21:18:04.564752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.570145"], ["updated_at", "2015-07-06 21:18:04.570145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35ad6912-d7ab-40e3-a0f0-57e025c9e894' AND "clubhouse_memberships"."organization_id" = '89e9a829-328e-494f-91e5-845043f475ef') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "35ad6912-d7ab-40e3-a0f0-57e025c9e894"], ["organization_id", "89e9a829-328e-494f-91e5-845043f475ef"], ["created_at", "2015-07-06 21:18:04.573900"], ["updated_at", "2015-07-06 21:18:04.573900"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '35ad6912-d7ab-40e3-a0f0-57e025c9e894' LIMIT 1 [["organization_id", "89e9a829-328e-494f-91e5-845043f475ef"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$ZOP7cAcspkZBbL4i9Z/U3e22M.Dg4A973UecPqp4VogjaZflFHMlO"], ["created_at", "2015-07-06 21:18:04.584100"], ["updated_at", "2015-07-06 21:18:04.584100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.588548"], ["updated_at", "2015-07-06 21:18:04.588548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7a1ffd3-d9f9-4f8b-bce5-183ce38ca288' AND "clubhouse_memberships"."organization_id" = '6e5644be-cc21-4c41-b35a-f7e139b796ad') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d7a1ffd3-d9f9-4f8b-bce5-183ce38ca288"], ["organization_id", "6e5644be-cc21-4c41-b35a-f7e139b796ad"], ["created_at", "2015-07-06 21:18:04.594461"], ["updated_at", "2015-07-06 21:18:04.594461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd7a1ffd3-d9f9-4f8b-bce5-183ce38ca288' LIMIT 1 [["organization_id", "6e5644be-cc21-4c41-b35a-f7e139b796ad"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$b082DyHyHpPAWSTgj9gu6.zmrbb/IblmyNwMSrvmreku1WBrYSGAW"], ["created_at", "2015-07-06 21:18:04.603451"], ["updated_at", "2015-07-06 21:18:04.603451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.607477"], ["updated_at", "2015-07-06 21:18:04.607477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '827ac31f-586d-4633-b3fd-7296e82fcde0' AND "clubhouse_memberships"."organization_id" = 'bb4619c5-361e-4772-9274-89a174cdc212') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "827ac31f-586d-4633-b3fd-7296e82fcde0"], ["organization_id", "bb4619c5-361e-4772-9274-89a174cdc212"], ["created_at", "2015-07-06 21:18:04.611759"], ["updated_at", "2015-07-06 21:18:04.611759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$kEI4NfnJc2.oUL30nLl.mOC4bR1.5JSxZrAmPNptaFf8ZcjWzU8bO"], ["created_at", "2015-07-06 21:18:04.619296"], ["updated_at", "2015-07-06 21:18:04.619296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.623389"], ["updated_at", "2015-07-06 21:18:04.623389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6847354b-c163-44e7-a2ff-f7d6e2f5a169' AND "clubhouse_memberships"."organization_id" = 'a0a4cc5b-1984-4da0-8fc3-3656d9b7c6cd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6847354b-c163-44e7-a2ff-f7d6e2f5a169"], ["organization_id", "a0a4cc5b-1984-4da0-8fc3-3656d9b7c6cd"], ["created_at", "2015-07-06 21:18:04.626424"], ["updated_at", "2015-07-06 21:18:04.626424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6847354b-c163-44e7-a2ff-f7d6e2f5a169' LIMIT 1 [["organization_id", "a0a4cc5b-1984-4da0-8fc3-3656d9b7c6cd"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$KNZiZkBYE4wP0LcFBC2h9.hTCt2JOk78yP3ZYmeXZcf4c4A7L2pLO"], ["created_at", "2015-07-06 21:18:04.636227"], ["updated_at", "2015-07-06 21:18:04.636227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.640553"], ["updated_at", "2015-07-06 21:18:04.640553"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84d53f7f-4237-4aef-a116-a23d6e8f7ebe' AND "clubhouse_memberships"."organization_id" = '5ba9868a-bb7b-4d8e-b1a7-630dbd1d6e72') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "84d53f7f-4237-4aef-a116-a23d6e8f7ebe"], ["organization_id", "5ba9868a-bb7b-4d8e-b1a7-630dbd1d6e72"], ["created_at", "2015-07-06 21:18:04.646211"], ["updated_at", "2015-07-06 21:18:04.646211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '84d53f7f-4237-4aef-a116-a23d6e8f7ebe' LIMIT 1 [["organization_id", "5ba9868a-bb7b-4d8e-b1a7-630dbd1d6e72"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$wz2NPB.4mPsjH6CYoV446.E4RNwA5H9CCPgb3U0wXQONqsABxvLii"], ["created_at", "2015-07-06 21:18:04.655310"], ["updated_at", "2015-07-06 21:18:04.655310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.659394"], ["updated_at", "2015-07-06 21:18:04.659394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c2814ee-d125-4e72-8559-1fab904775fa' AND "clubhouse_memberships"."organization_id" = 'ee0f87da-0743-4d3d-a7a4-3eb9618e8f1f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c2814ee-d125-4e72-8559-1fab904775fa"], ["organization_id", "ee0f87da-0743-4d3d-a7a4-3eb9618e8f1f"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.663267"], ["updated_at", "2015-07-06 21:18:04.663267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$yGqoDhjPaV2Ntk9SBFL5JuyxSM27JmWfyHlj/0b9Z8T7oRmAlCNU2"], ["created_at", "2015-07-06 21:18:04.671546"], ["updated_at", "2015-07-06 21:18:04.671546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6533214b-99bb-4328-80ba-8b11d12a7677' AND "clubhouse_memberships"."organization_id" = 'ee0f87da-0743-4d3d-a7a4-3eb9618e8f1f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6533214b-99bb-4328-80ba-8b11d12a7677"], ["organization_id", "ee0f87da-0743-4d3d-a7a4-3eb9618e8f1f"], ["created_at", "2015-07-06 21:18:04.676649"], ["updated_at", "2015-07-06 21:18:04.676649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$JBdqGgmQnHl81/cZ7qe2ReqLmQDKtkr2lKTox59/QzaSi61JvhhY."], ["created_at", "2015-07-06 21:18:04.685726"], ["updated_at", "2015-07-06 21:18:04.685726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.693481"], ["updated_at", "2015-07-06 21:18:04.693481"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a33249d1-22c1-45ab-96c1-5fc54136254d' AND "clubhouse_memberships"."organization_id" = '9a8caa37-4521-4eb0-86e3-8839e4cfbcf0') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a33249d1-22c1-45ab-96c1-5fc54136254d"], ["organization_id", "9a8caa37-4521-4eb0-86e3-8839e4cfbcf0"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.697747"], ["updated_at", "2015-07-06 21:18:04.697747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$xebLxlg4mlvoGa3oLclYDO9HX1eRlFed1ZLgfJFviau9LCStyBQJK"], ["created_at", "2015-07-06 21:18:04.704341"], ["updated_at", "2015-07-06 21:18:04.704341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1c1d33a2-0406-43f1-b6a9-15ef4c221cac' AND "clubhouse_memberships"."organization_id" = '9a8caa37-4521-4eb0-86e3-8839e4cfbcf0') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1c1d33a2-0406-43f1-b6a9-15ef4c221cac"], ["organization_id", "9a8caa37-4521-4eb0-86e3-8839e4cfbcf0"], ["created_at", "2015-07-06 21:18:04.708106"], ["updated_at", "2015-07-06 21:18:04.708106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a33249d1-22c1-45ab-96c1-5fc54136254d' LIMIT 1 [["organization_id", "9a8caa37-4521-4eb0-86e3-8839e4cfbcf0"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$wk0KTTCn2NkEN/UqNhePgO069KgLoOI4q4sx1UN82yrWyGvlnL7v6"], ["created_at", "2015-07-06 21:18:04.717512"], ["updated_at", "2015-07-06 21:18:04.717512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.721706"], ["updated_at", "2015-07-06 21:18:04.721706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c82c821-35f4-4cfe-9669-5b4fa003d159' AND "clubhouse_memberships"."organization_id" = 'f202424e-53eb-41c1-b75b-3a46f4e0a340') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c82c821-35f4-4cfe-9669-5b4fa003d159"], ["organization_id", "f202424e-53eb-41c1-b75b-3a46f4e0a340"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.724743"], ["updated_at", "2015-07-06 21:18:04.724743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$IbhlLcG2h5T4t2fiQ68CWe0LGjEeySCyq2y5GrD4Gx3rI/xjlRtBi"], ["created_at", "2015-07-06 21:18:04.731093"], ["updated_at", "2015-07-06 21:18:04.731093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2edf1b59-c6a0-4196-a92b-e6930138c042' AND "clubhouse_memberships"."organization_id" = 'f202424e-53eb-41c1-b75b-3a46f4e0a340') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2edf1b59-c6a0-4196-a92b-e6930138c042"], ["organization_id", "f202424e-53eb-41c1-b75b-3a46f4e0a340"], ["created_at", "2015-07-06 21:18:04.734711"], ["updated_at", "2015-07-06 21:18:04.734711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '3c82c821-35f4-4cfe-9669-5b4fa003d159' LIMIT 1 [["organization_id", "f202424e-53eb-41c1-b75b-3a46f4e0a340"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$/ebviASTBC6EUet4Ef/6sO7jACTc/XdLIb6DCXy4iHB9F2y9.M97S"], ["created_at", "2015-07-06 21:18:04.743494"], ["updated_at", "2015-07-06 21:18:04.743494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.748433"], ["updated_at", "2015-07-06 21:18:04.748433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dea67c88-2b31-4bd3-8cb0-580267da054e' AND "clubhouse_memberships"."organization_id" = '37c80c74-622c-4f55-a3d5-ccca31ee7715') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dea67c88-2b31-4bd3-8cb0-580267da054e"], ["organization_id", "37c80c74-622c-4f55-a3d5-ccca31ee7715"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.752390"], ["updated_at", "2015-07-06 21:18:04.752390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$L3nLUFx1dfmtgzRLfqxXW.EgcmLcnUfv69PiOfl1mad16xfPqxUia"], ["created_at", "2015-07-06 21:18:04.759906"], ["updated_at", "2015-07-06 21:18:04.759906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94945b8f-4d85-433b-bbac-1211cc915a02' AND "clubhouse_memberships"."organization_id" = '37c80c74-622c-4f55-a3d5-ccca31ee7715') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "94945b8f-4d85-433b-bbac-1211cc915a02"], ["organization_id", "37c80c74-622c-4f55-a3d5-ccca31ee7715"], ["created_at", "2015-07-06 21:18:04.765210"], ["updated_at", "2015-07-06 21:18:04.765210"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'dea67c88-2b31-4bd3-8cb0-580267da054e' LIMIT 1 [["organization_id", "37c80c74-622c-4f55-a3d5-ccca31ee7715"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$PNyu5aElB9JUh8LjPeUAXu8C56m4756e9De5tQAx9tEzEb.gM8W1."], ["created_at", "2015-07-06 21:18:04.780002"], ["updated_at", "2015-07-06 21:18:04.780002"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.786765"], ["updated_at", "2015-07-06 21:18:04.786765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '49c4e539-92c4-44a9-b7c7-eeb416614e21' AND "clubhouse_memberships"."organization_id" = '6b0386c5-db5a-40e9-84da-ced114ae8a52') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "49c4e539-92c4-44a9-b7c7-eeb416614e21"], ["organization_id", "6b0386c5-db5a-40e9-84da-ced114ae8a52"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.790709"], ["updated_at", "2015-07-06 21:18:04.790709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '49c4e539-92c4-44a9-b7c7-eeb416614e21' LIMIT 1 [["organization_id", "6b0386c5-db5a-40e9-84da-ced114ae8a52"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$u3jP93iI22QGxx4PvDO5N.2f19WRLkWY62K06X/KJ7za7HJxmkwGK"], ["created_at", "2015-07-06 21:18:04.800261"], ["updated_at", "2015-07-06 21:18:04.800261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.804502"], ["updated_at", "2015-07-06 21:18:04.804502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bf49cbca-69df-4805-88d4-a71c32eea890' AND "clubhouse_memberships"."organization_id" = '5db96cb6-fd06-4b31-8e4f-4ce906676f68') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bf49cbca-69df-4805-88d4-a71c32eea890"], ["organization_id", "5db96cb6-fd06-4b31-8e4f-4ce906676f68"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.808695"], ["updated_at", "2015-07-06 21:18:04.808695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'bf49cbca-69df-4805-88d4-a71c32eea890' LIMIT 1 [["organization_id", "5db96cb6-fd06-4b31-8e4f-4ce906676f68"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$69xPQBkb67SviMrE.E46zuu/u2JQbB4qKmi/pWNkwI9ic/IJI7axO"], ["created_at", "2015-07-06 21:18:04.818009"], ["updated_at", "2015-07-06 21:18:04.818009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.822126"], ["updated_at", "2015-07-06 21:18:04.822126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09de2acf-b0f8-4499-b3db-5326ae0a8b54' AND "clubhouse_memberships"."organization_id" = 'd32b5b63-e4e8-406b-9db2-64b379f49ebd') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "09de2acf-b0f8-4499-b3db-5326ae0a8b54"], ["organization_id", "d32b5b63-e4e8-406b-9db2-64b379f49ebd"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.828386"], ["updated_at", "2015-07-06 21:18:04.828386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '09de2acf-b0f8-4499-b3db-5326ae0a8b54' LIMIT 1 [["organization_id", "d32b5b63-e4e8-406b-9db2-64b379f49ebd"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$wEUIZPsti3RzSP9RiiyZzOcitUkGkUbYlHiu9oeBq8difWz/4N.qS"], ["created_at", "2015-07-06 21:18:04.837305"], ["updated_at", "2015-07-06 21:18:04.837305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.841163"], ["updated_at", "2015-07-06 21:18:04.841163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd404be1a-2f1a-4117-8fd9-77d2a5de6f5f' AND "clubhouse_memberships"."organization_id" = '4fab17c8-7f06-4055-9e3c-04d733c1f2fb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d404be1a-2f1a-4117-8fd9-77d2a5de6f5f"], ["organization_id", "4fab17c8-7f06-4055-9e3c-04d733c1f2fb"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.844480"], ["updated_at", "2015-07-06 21:18:04.844480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$waSRTvhzRmFyuMZMMAx2pe5cNyaFXhiWNp5jFkewF3DsIGWnRxm7a"], ["created_at", "2015-07-06 21:18:04.853374"], ["updated_at", "2015-07-06 21:18:04.853374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.857419"], ["updated_at", "2015-07-06 21:18:04.857419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3b9ac2f0-f295-4349-ae2a-651d27f02615' AND "clubhouse_memberships"."organization_id" = '1b85d48d-d0b7-465c-8202-2bc4ae47f727') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3b9ac2f0-f295-4349-ae2a-651d27f02615"], ["organization_id", "1b85d48d-d0b7-465c-8202-2bc4ae47f727"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.860811"], ["updated_at", "2015-07-06 21:18:04.860811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3b9ac2f0-f295-4349-ae2a-651d27f02615' LIMIT 1 [["organization_id", "1b85d48d-d0b7-465c-8202-2bc4ae47f727"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$rWkF.4E8fRQIcXGEGiBzPuQYQq0m1bIVh7flzw3v2k37JWzodcoOO"], ["created_at", "2015-07-06 21:18:04.872772"], ["updated_at", "2015-07-06 21:18:04.872772"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:04.887997"], ["user_id", "41bea5d5-7689-41d0-a6d5-8fa364832cd9"], ["created_at", "2015-07-06 21:18:04.889113"], ["updated_at", "2015-07-06 21:18:04.889113"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.894965"], ["updated_at", "2015-07-06 21:18:04.894965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41bea5d5-7689-41d0-a6d5-8fa364832cd9' AND "clubhouse_memberships"."organization_id" = '7b15b183-c237-4d71-9246-1b271116d49a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "41bea5d5-7689-41d0-a6d5-8fa364832cd9"], ["organization_id", "7b15b183-c237-4d71-9246-1b271116d49a"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.898555"], ["updated_at", "2015-07-06 21:18:04.898555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:18:04 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$TIbQ4CBD48wYR2c6CoXV3um7BEU4DsN9eMqRjac/E/Rf3htiwFcp6"], ["created_at", "2015-07-06 21:18:04.932766"], ["updated_at", "2015-07-06 21:18:04.932766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:04.936632"], ["user_id", "3a0880f7-0e36-4ff2-83dc-a0c318a73ed4"], ["created_at", "2015-07-06 21:18:04.937328"], ["updated_at", "2015-07-06 21:18:04.937328"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:04.941854"], ["updated_at", "2015-07-06 21:18:04.941854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a0880f7-0e36-4ff2-83dc-a0c318a73ed4' AND "clubhouse_memberships"."organization_id" = '04d94940-21c8-4d9d-9cc4-7c1d41ac8d8c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a0880f7-0e36-4ff2-83dc-a0c318a73ed4"], ["organization_id", "04d94940-21c8-4d9d-9cc4-7c1d41ac8d8c"], ["admin", "t"], ["created_at", "2015-07-06 21:18:04.944985"], ["updated_at", "2015-07-06 21:18:04.944985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/04d94940-21c8-4d9d-9cc4-7c1d41ac8d8c" for 127.0.0.1 at 2015-07-06 14:18:04 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"04d94940-21c8-4d9d-9cc4-7c1d41ac8d8c", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:04.948002') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e2e9ac75-5b76-4879-b30b-b513ec0ebee4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:04.949658"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:04.950492"], ["id", "e2e9ac75-5b76-4879-b30b-b513ec0ebee4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "04d94940-21c8-4d9d-9cc4-7c1d41ac8d8c"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3a0880f7-0e36-4ff2-83dc-a0c318a73ed4"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '3a0880f7-0e36-4ff2-83dc-a0c318a73ed4' LIMIT 1 [["organization_id", "04d94940-21c8-4d9d-9cc4-7c1d41ac8d8c"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '04d94940-21c8-4d9d-9cc4-7c1d41ac8d8c') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:18:04.961664"], ["id", "04d94940-21c8-4d9d-9cc4-7c1d41ac8d8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 30ms (Views: 13.7ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$zie9/pNmv5CR8HUBWpetX.aS76y2KGN/OdmtZHupfj/b9U/8VVoQu"], ["created_at", "2015-07-06 21:18:05.016172"], ["updated_at", "2015-07-06 21:18:05.016172"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.020075"], ["user_id", "2b58d983-8f10-4b80-aa70-8d4abbc8b646"], ["created_at", "2015-07-06 21:18:05.021309"], ["updated_at", "2015-07-06 21:18:05.021309"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.028851"], ["updated_at", "2015-07-06 21:18:05.028851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b58d983-8f10-4b80-aa70-8d4abbc8b646' AND "clubhouse_memberships"."organization_id" = '526abab8-1370-4d78-851f-488af839415e') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2b58d983-8f10-4b80-aa70-8d4abbc8b646"], ["organization_id", "526abab8-1370-4d78-851f-488af839415e"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.034330"], ["updated_at", "2015-07-06 21:18:05.034330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/526abab8-1370-4d78-851f-488af839415e" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"526abab8-1370-4d78-851f-488af839415e", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.041682') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "37ace170-b76b-4b28-873b-9da16f86cd66"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.043517"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.045107"], ["id", "37ace170-b76b-4b28-873b-9da16f86cd66"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "526abab8-1370-4d78-851f-488af839415e"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b58d983-8f10-4b80-aa70-8d4abbc8b646"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2b58d983-8f10-4b80-aa70-8d4abbc8b646' LIMIT 1 [["organization_id", "526abab8-1370-4d78-851f-488af839415e"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '526abab8-1370-4d78-851f-488af839415e') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms (ActiveRecord: 2.5ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (4.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$qcIrADwyxogPTa2Tw0UZK.8CbcpnM89hc.7g547oRAFvED3WCVusu"], ["created_at", "2015-07-06 21:18:05.068010"], ["updated_at", "2015-07-06 21:18:05.068010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.074742"], ["user_id", "20d7d14a-efed-4476-a96c-60c56ff37ad0"], ["created_at", "2015-07-06 21:18:05.075628"], ["updated_at", "2015-07-06 21:18:05.075628"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.082590"], ["updated_at", "2015-07-06 21:18:05.082590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20d7d14a-efed-4476-a96c-60c56ff37ad0' AND "clubhouse_memberships"."organization_id" = '04390819-b5dc-4711-ac70-c1676127c222') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20d7d14a-efed-4476-a96c-60c56ff37ad0"], ["organization_id", "04390819-b5dc-4711-ac70-c1676127c222"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.086682"], ["updated_at", "2015-07-06 21:18:05.086682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-24" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-24", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.089952') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f98afd1a-cc92-4c7f-815a-181f13d0f5a1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.091473"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.092280"], ["id", "f98afd1a-cc92-4c7f-815a-181f13d0f5a1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20d7d14a-efed-4476-a96c-60c56ff37ad0"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '20d7d14a-efed-4476-a96c-60c56ff37ad0' LIMIT 1 [["organization_id", "04390819-b5dc-4711-ac70-c1676127c222"], ["admin", "t"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "04390819-b5dc-4711-ac70-c1676127c222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$LImEYpaI4qH.NVljom.Ejelo5pvHwSAHONHdpN7CDyHzxaQxidD5y"], ["created_at", "2015-07-06 21:18:05.107627"], ["updated_at", "2015-07-06 21:18:05.107627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.111560"], ["user_id", "88642050-c385-4912-8757-d5918f219cb4"], ["created_at", "2015-07-06 21:18:05.112320"], ["updated_at", "2015-07-06 21:18:05.112320"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.116973"], ["updated_at", "2015-07-06 21:18:05.116973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88642050-c385-4912-8757-d5918f219cb4' AND "clubhouse_memberships"."organization_id" = '3e7b3edb-cab4-4ee7-abef-4148cd6788b6') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88642050-c385-4912-8757-d5918f219cb4"], ["organization_id", "3e7b3edb-cab4-4ee7-abef-4148cd6788b6"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.119998"], ["updated_at", "2015-07-06 21:18:05.119998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$d7zWSH2W2cZ1DtXNt0vQROtS2GK83Z/XorwaH8Y2rNzQBSiFewS4y"], ["created_at", "2015-07-06 21:18:05.128903"], ["updated_at", "2015-07-06 21:18:05.128903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.130510"], ["user_id", "87c8df82-c321-4104-bb28-06cac5ac8112"], ["created_at", "2015-07-06 21:18:05.131107"], ["updated_at", "2015-07-06 21:18:05.131107"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.135547"], ["updated_at", "2015-07-06 21:18:05.135547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87c8df82-c321-4104-bb28-06cac5ac8112' AND "clubhouse_memberships"."organization_id" = 'e880f475-9180-4dfd-afda-f544266bc78e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87c8df82-c321-4104-bb28-06cac5ac8112"], ["organization_id", "e880f475-9180-4dfd-afda-f544266bc78e"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.138692"], ["updated_at", "2015-07-06 21:18:05.138692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$voq.IVRJQGRDQappvBaSBeEJMeYHFbW1pznUoxcSCulGd1X5FYgU."], ["created_at", "2015-07-06 21:18:05.147929"], ["updated_at", "2015-07-06 21:18:05.147929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.150199"], ["user_id", "59255e61-e6a2-424c-89c1-dea66626f3f6"], ["created_at", "2015-07-06 21:18:05.150823"], ["updated_at", "2015-07-06 21:18:05.150823"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.154814"], ["updated_at", "2015-07-06 21:18:05.154814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '59255e61-e6a2-424c-89c1-dea66626f3f6' AND "clubhouse_memberships"."organization_id" = '6d87c4f9-6d9f-41b7-a9ed-7ba94e4e02c0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "59255e61-e6a2-424c-89c1-dea66626f3f6"], ["organization_id", "6d87c4f9-6d9f-41b7-a9ed-7ba94e4e02c0"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.159238"], ["updated_at", "2015-07-06 21:18:05.159238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-27" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-27", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.163544') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "48d06e09-bc05-4ca7-bc89-d9bf50764645"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.164935"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.165736"], ["id", "48d06e09-bc05-4ca7-bc89-d9bf50764645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-27"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "59255e61-e6a2-424c-89c1-dea66626f3f6"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '59255e61-e6a2-424c-89c1-dea66626f3f6' LIMIT 1 [["organization_id", "6d87c4f9-6d9f-41b7-a9ed-7ba94e4e02c0"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6d87c4f9-6d9f-41b7-a9ed-7ba94e4e02c0') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms (ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$EEWqqTIie76aKw61Dt4WgeVILJJqdEIpwhzg5DlKQ/lvKTJFZ/pxe"], ["created_at", "2015-07-06 21:18:05.181269"], ["updated_at", "2015-07-06 21:18:05.181269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.183390"], ["user_id", "d11afeb0-2bde-4cc6-b731-e66682b151aa"], ["created_at", "2015-07-06 21:18:05.184566"], ["updated_at", "2015-07-06 21:18:05.184566"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.191384"], ["updated_at", "2015-07-06 21:18:05.191384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd11afeb0-2bde-4cc6-b731-e66682b151aa' AND "clubhouse_memberships"."organization_id" = '10e4e6c5-bc26-428d-b974-bd0e6cb3ef38') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d11afeb0-2bde-4cc6-b731-e66682b151aa"], ["organization_id", "10e4e6c5-bc26-428d-b974-bd0e6cb3ef38"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.195423"], ["updated_at", "2015-07-06 21:18:05.195423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-28" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-28", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.199654') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "84dd9f61-34df-4052-bfac-a4b9f7721c3b"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.202111"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.203362"], ["id", "84dd9f61-34df-4052-bfac-a4b9f7721c3b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-28"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d11afeb0-2bde-4cc6-b731-e66682b151aa"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd11afeb0-2bde-4cc6-b731-e66682b151aa' LIMIT 1 [["organization_id", "10e4e6c5-bc26-428d-b974-bd0e6cb3ef38"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '10e4e6c5-bc26-428d-b974-bd0e6cb3ef38') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:18:05.213233"], ["id", "10e4e6c5-bc26-428d-b974-bd0e6cb3ef38"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.7ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$51BppyyScPZf/cmVpzzFi.KJZEgEHu.Ach6KUF6tHLl7wmbsFMDYu"], ["created_at", "2015-07-06 21:18:05.223366"], ["updated_at", "2015-07-06 21:18:05.223366"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.227364"], ["user_id", "60718278-4ae9-42ba-ad49-4b8c12153a6f"], ["created_at", "2015-07-06 21:18:05.228185"], ["updated_at", "2015-07-06 21:18:05.228185"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.232576"], ["updated_at", "2015-07-06 21:18:05.232576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60718278-4ae9-42ba-ad49-4b8c12153a6f' AND "clubhouse_memberships"."organization_id" = '5b0f66ec-00e4-4931-a830-2a5cd3b153c3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60718278-4ae9-42ba-ad49-4b8c12153a6f"], ["organization_id", "5b0f66ec-00e4-4931-a830-2a5cd3b153c3"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.236203"], ["updated_at", "2015-07-06 21:18:05.236203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$IuVQnKQphLrPs734p4To0ewGQh5q6cgsVOP8TxRL1OAO2Hilltuha"], ["created_at", "2015-07-06 21:18:05.242742"], ["updated_at", "2015-07-06 21:18:05.242742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.247935"], ["updated_at", "2015-07-06 21:18:05.247935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05631145-2be0-49b2-83fd-4b49be282a33' AND "clubhouse_memberships"."organization_id" = '2d3b6c36-afb7-42da-962b-7f7ab4298b30') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "05631145-2be0-49b2-83fd-4b49be282a33"], ["organization_id", "2d3b6c36-afb7-42da-962b-7f7ab4298b30"], ["created_at", "2015-07-06 21:18:05.251577"], ["updated_at", "2015-07-06 21:18:05.251577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 39"], ["email", "user.39@example.com"], ["password_digest", "$2a$04$WnLwDyM2BvIB55W.McFN4OZeZuSViTLqWyeRm1nc866HUwc3sz2Pa"], ["created_at", "2015-07-06 21:18:05.260680"], ["updated_at", "2015-07-06 21:18:05.260680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.263960"], ["user_id", "0794a943-a7af-41b5-b9a5-e6ff379843e8"], ["created_at", "2015-07-06 21:18:05.265117"], ["updated_at", "2015-07-06 21:18:05.265117"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.269862"], ["updated_at", "2015-07-06 21:18:05.269862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0794a943-a7af-41b5-b9a5-e6ff379843e8' AND "clubhouse_memberships"."organization_id" = 'fdebe9ae-6cc9-4929-a298-2534b5460b8c') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0794a943-a7af-41b5-b9a5-e6ff379843e8"], ["organization_id", "fdebe9ae-6cc9-4929-a298-2534b5460b8c"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.273147"], ["updated_at", "2015-07-06 21:18:05.273147"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 40"], ["email", "user.40@example.com"], ["password_digest", "$2a$04$ryRRb2QH8pMu4EXUTp2XO.lBo5XeUeR9e2mbfRN9E2s1c8NSBi6em"], ["created_at", "2015-07-06 21:18:05.281436"], ["updated_at", "2015-07-06 21:18:05.281436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.286410"], ["updated_at", "2015-07-06 21:18:05.286410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c3abf859-0c0c-46bf-914f-22e806dab97b' AND "clubhouse_memberships"."organization_id" = 'a56665af-2c70-483b-a2a1-6ba19750eecb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c3abf859-0c0c-46bf-914f-22e806dab97b"], ["organization_id", "a56665af-2c70-483b-a2a1-6ba19750eecb"], ["created_at", "2015-07-06 21:18:05.290010"], ["updated_at", "2015-07-06 21:18:05.290010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.293554') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1e4a6ec2-1f4c-4b24-bb18-7684f41e1dea"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.295968"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.297542"], ["id", "1e4a6ec2-1f4c-4b24-bb18-7684f41e1dea"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0794a943-a7af-41b5-b9a5-e6ff379843e8"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "0794a943-a7af-41b5-b9a5-e6ff379843e8"]] Completed 200 OK in 18ms (Views: 3.5ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 41"], ["email", "user.41@example.com"], ["password_digest", "$2a$04$VoqawjX3qEoyYRdUp1RiRut84EZjiOf6eUDWgs23DmVbYhQa1Hw/S"], ["created_at", "2015-07-06 21:18:05.321919"], ["updated_at", "2015-07-06 21:18:05.321919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.323825"], ["user_id", "b3baeb8b-f822-4ace-8e9f-4e78fcce7cee"], ["created_at", "2015-07-06 21:18:05.324582"], ["updated_at", "2015-07-06 21:18:05.324582"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.330171"], ["updated_at", "2015-07-06 21:18:05.330171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b3baeb8b-f822-4ace-8e9f-4e78fcce7cee' AND "clubhouse_memberships"."organization_id" = '620ee132-dc69-4709-8b62-42e3a641a27e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b3baeb8b-f822-4ace-8e9f-4e78fcce7cee"], ["organization_id", "620ee132-dc69-4709-8b62-42e3a641a27e"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.333863"], ["updated_at", "2015-07-06 21:18:05.333863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 42"], ["email", "user.42@example.com"], ["password_digest", "$2a$04$cc7TqjqJ.hMxlkdiiLhdg.iwJC6SEeE0P3BToug6FQygi9YxeQTTK"], ["created_at", "2015-07-06 21:18:05.344848"], ["updated_at", "2015-07-06 21:18:05.344848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.347015"], ["user_id", "c26fab5d-e206-4d12-8e53-ffa246c2258e"], ["created_at", "2015-07-06 21:18:05.347710"], ["updated_at", "2015-07-06 21:18:05.347710"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.353375"], ["updated_at", "2015-07-06 21:18:05.353375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c26fab5d-e206-4d12-8e53-ffa246c2258e' AND "clubhouse_memberships"."organization_id" = '12221328-f32d-4606-8cf1-c897416a44d8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c26fab5d-e206-4d12-8e53-ffa246c2258e"], ["organization_id", "12221328-f32d-4606-8cf1-c897416a44d8"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.357312"], ["updated_at", "2015-07-06 21:18:05.357312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-34" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-34", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.363595') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "19df60ba-68b2-4c4b-9359-4ac563472c56"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.365414"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.366509"], ["id", "19df60ba-68b2-4c4b-9359-4ac563472c56"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-34"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c26fab5d-e206-4d12-8e53-ffa246c2258e"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c26fab5d-e206-4d12-8e53-ffa246c2258e' LIMIT 1 [["organization_id", "12221328-f32d-4606-8cf1-c897416a44d8"]] Completed 200 OK in 10ms (Views: 0.8ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 43"], ["email", "user.43@example.com"], ["password_digest", "$2a$04$.B3HcXEF2aQ3omfn3zg/rOQCJtQU5xASji.dSjTbr2IRGAucR9Tc."], ["created_at", "2015-07-06 21:18:05.384002"], ["updated_at", "2015-07-06 21:18:05.384002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.386008"], ["user_id", "e09d90cc-b935-44d2-a751-da21f5a2fa0b"], ["created_at", "2015-07-06 21:18:05.386720"], ["updated_at", "2015-07-06 21:18:05.386720"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.392299"], ["updated_at", "2015-07-06 21:18:05.392299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e09d90cc-b935-44d2-a751-da21f5a2fa0b' AND "clubhouse_memberships"."organization_id" = '31094f1c-4dfe-41fc-a98d-0bfb07b1ce51') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e09d90cc-b935-44d2-a751-da21f5a2fa0b"], ["organization_id", "31094f1c-4dfe-41fc-a98d-0bfb07b1ce51"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.398618"], ["updated_at", "2015-07-06 21:18:05.398618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 44"], ["email", "user.44@example.com"], ["password_digest", "$2a$04$2qmAfZ4BLtWC/MB5K2k8UOni0pXmCQHD56bmjNdXHuacelwKY2Yte"], ["created_at", "2015-07-06 21:18:05.408935"], ["updated_at", "2015-07-06 21:18:05.408935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.411970"], ["user_id", "2d7545c9-1b31-4142-a57c-99af3e3d1b0e"], ["created_at", "2015-07-06 21:18:05.413372"], ["updated_at", "2015-07-06 21:18:05.413372"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.419302"], ["updated_at", "2015-07-06 21:18:05.419302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d7545c9-1b31-4142-a57c-99af3e3d1b0e' AND "clubhouse_memberships"."organization_id" = '120e49bd-c00d-4a54-b3f4-ea5521c12155') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2d7545c9-1b31-4142-a57c-99af3e3d1b0e"], ["organization_id", "120e49bd-c00d-4a54-b3f4-ea5521c12155"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.422924"], ["updated_at", "2015-07-06 21:18:05.422924"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.429308') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "08a7c1e9-a35d-44e5-83bd-7619644c1960"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.431383"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.432321"], ["id", "08a7c1e9-a35d-44e5-83bd-7619644c1960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 45"], ["email", "user.45@example.com"], ["password_digest", "$2a$04$tQO.0FWiilBMIqTWBNzYouDtgzShDYFxClaM7PhJ7R10NgHlzI5cm"], ["created_at", "2015-07-06 21:18:05.442346"], ["updated_at", "2015-07-06 21:18:05.442346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.444893"], ["user_id", "6f7fddd9-144c-41f8-984a-a79d4bad9f3a"], ["created_at", "2015-07-06 21:18:05.445699"], ["updated_at", "2015-07-06 21:18:05.445699"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.450720"], ["updated_at", "2015-07-06 21:18:05.450720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f7fddd9-144c-41f8-984a-a79d4bad9f3a' AND "clubhouse_memberships"."organization_id" = 'bc3cbdd5-4c76-40cb-8cf7-bd9711be770f') LIMIT 1 SQL (2.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f7fddd9-144c-41f8-984a-a79d4bad9f3a"], ["organization_id", "bc3cbdd5-4c76-40cb-8cf7-bd9711be770f"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.453965"], ["updated_at", "2015-07-06 21:18:05.453965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-37" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-37", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.459563') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "690c5660-34a5-4df6-9634-67cc9b0adfa5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.461360"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.462277"], ["id", "690c5660-34a5-4df6-9634-67cc9b0adfa5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-37"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6f7fddd9-144c-41f8-984a-a79d4bad9f3a"]] Completed 200 OK in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 46"], ["email", "user.46@example.com"], ["password_digest", "$2a$04$3OCYJBMX51PHbwAC84QyW.ELKQ.01z2Mh0AT6rbBA/rDUuitfn0b6"], ["created_at", "2015-07-06 21:18:05.474800"], ["updated_at", "2015-07-06 21:18:05.474800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.478064"], ["user_id", "9eb6f216-59d7-4259-aa40-427f615477a8"], ["created_at", "2015-07-06 21:18:05.479251"], ["updated_at", "2015-07-06 21:18:05.479251"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.484043"], ["updated_at", "2015-07-06 21:18:05.484043"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9eb6f216-59d7-4259-aa40-427f615477a8' AND "clubhouse_memberships"."organization_id" = 'f8a7877d-c85e-484e-a7ab-f90ddf0516da') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9eb6f216-59d7-4259-aa40-427f615477a8"], ["organization_id", "f8a7877d-c85e-484e-a7ab-f90ddf0516da"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.500318"], ["updated_at", "2015-07-06 21:18:05.500318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 47"], ["email", "user.47@example.com"], ["password_digest", "$2a$04$XLbIxqo7cEqoR0M2eC0p2uoQc98CZvlDSSSMhAqD8E7PtdfGWslPK"], ["created_at", "2015-07-06 21:18:05.510923"], ["updated_at", "2015-07-06 21:18:05.510923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.513857"], ["user_id", "309b4040-1f88-4ffb-80b5-f0bf7662d6e4"], ["created_at", "2015-07-06 21:18:05.514761"], ["updated_at", "2015-07-06 21:18:05.514761"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.519521"], ["updated_at", "2015-07-06 21:18:05.519521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '309b4040-1f88-4ffb-80b5-f0bf7662d6e4' AND "clubhouse_memberships"."organization_id" = '103613f9-e775-487f-b5d9-d82de432b679') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "309b4040-1f88-4ffb-80b5-f0bf7662d6e4"], ["organization_id", "103613f9-e775-487f-b5d9-d82de432b679"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.522731"], ["updated_at", "2015-07-06 21:18:05.522731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.525607') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5f361a2f-106c-48a1-82ea-35264a29bb28"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.527582"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.529426"], ["id", "5f361a2f-106c-48a1-82ea-35264a29bb28"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "309b4040-1f88-4ffb-80b5-f0bf7662d6e4"]] Unpermitted parameter: organization  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 2.1ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 48"], ["email", "user.48@example.com"], ["password_digest", "$2a$04$bZLO3EcojRYol50UG53inOPrvL6JisN1ont4..AOeJT.qkHPO.o2m"], ["created_at", "2015-07-06 21:18:05.550727"], ["updated_at", "2015-07-06 21:18:05.550727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.552737"], ["user_id", "927b355f-fa2a-45d0-9e5e-3e5159f7b66d"], ["created_at", "2015-07-06 21:18:05.553542"], ["updated_at", "2015-07-06 21:18:05.553542"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.557742"], ["updated_at", "2015-07-06 21:18:05.557742"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '927b355f-fa2a-45d0-9e5e-3e5159f7b66d' AND "clubhouse_memberships"."organization_id" = '92ab34a7-3108-400c-b87a-3472c7daf61b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "927b355f-fa2a-45d0-9e5e-3e5159f7b66d"], ["organization_id", "92ab34a7-3108-400c-b87a-3472c7daf61b"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.565154"], ["updated_at", "2015-07-06 21:18:05.565154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.569295') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f7426977-ee1d-49bb-abe7-cfff13c80f62"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.570960"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.571928"], ["id", "f7426977-ee1d-49bb-abe7-cfff13c80f62"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "927b355f-fa2a-45d0-9e5e-3e5159f7b66d"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.578596"], ["updated_at", "2015-07-06 21:18:05.578596"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '927b355f-fa2a-45d0-9e5e-3e5159f7b66d' AND "clubhouse_memberships"."organization_id" = 'cdd0f401-7970-4ca5-8757-9b1aa764266c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "927b355f-fa2a-45d0-9e5e-3e5159f7b66d"], ["admin", "t"], ["organization_id", "cdd0f401-7970-4ca5-8757-9b1aa764266c"], ["created_at", "2015-07-06 21:18:05.582727"], ["updated_at", "2015-07-06 21:18:05.582727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.6ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 49"], ["email", "user.49@example.com"], ["password_digest", "$2a$04$2YeUZe3MvyYOntvERzRlSOTBwmajRiFaLjKNv1nTDLZbcZmwLbwee"], ["created_at", "2015-07-06 21:18:05.593683"], ["updated_at", "2015-07-06 21:18:05.593683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.596062"], ["user_id", "2410e8bc-ccd7-4dae-9c64-c08216807ad0"], ["created_at", "2015-07-06 21:18:05.596914"], ["updated_at", "2015-07-06 21:18:05.596914"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.604245"], ["updated_at", "2015-07-06 21:18:05.604245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2410e8bc-ccd7-4dae-9c64-c08216807ad0' AND "clubhouse_memberships"."organization_id" = '2de04044-e26f-47c5-895b-17dc0454460a') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2410e8bc-ccd7-4dae-9c64-c08216807ad0"], ["organization_id", "2de04044-e26f-47c5-895b-17dc0454460a"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.609900"], ["updated_at", "2015-07-06 21:18:05.609900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 50"], ["email", "user.50@example.com"], ["password_digest", "$2a$04$Ib5XGvVT0jJHfwLbfQERU.F2beW/weTdm07DHfNf8yQ6T9YV1LtNu"], ["created_at", "2015-07-06 21:18:05.622942"], ["updated_at", "2015-07-06 21:18:05.622942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.625396"], ["user_id", "1351a1b5-0cbf-48f3-8c70-ceac65eda6d5"], ["created_at", "2015-07-06 21:18:05.626152"], ["updated_at", "2015-07-06 21:18:05.626152"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.630795"], ["updated_at", "2015-07-06 21:18:05.630795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1351a1b5-0cbf-48f3-8c70-ceac65eda6d5' AND "clubhouse_memberships"."organization_id" = '9fa3232e-d3dd-4794-ae39-bfacae8f6573') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1351a1b5-0cbf-48f3-8c70-ceac65eda6d5"], ["organization_id", "9fa3232e-d3dd-4794-ae39-bfacae8f6573"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.635713"], ["updated_at", "2015-07-06 21:18:05.635713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/9fa3232e-d3dd-4794-ae39-bfacae8f6573" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"9fa3232e-d3dd-4794-ae39-bfacae8f6573", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.638720') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "53f73fe3-4f72-4de3-93c2-86acf69e663b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.640233"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.641257"], ["id", "53f73fe3-4f72-4de3-93c2-86acf69e663b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "9fa3232e-d3dd-4794-ae39-bfacae8f6573"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1351a1b5-0cbf-48f3-8c70-ceac65eda6d5"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '1351a1b5-0cbf-48f3-8c70-ceac65eda6d5' LIMIT 1 [["organization_id", "9fa3232e-d3dd-4794-ae39-bfacae8f6573"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "9fa3232e-d3dd-4794-ae39-bfacae8f6573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 51"], ["email", "user.51@example.com"], ["password_digest", "$2a$04$7/4tOkFTQq9zk4Lk6cVt3u.QO0iF5DresaqTg9.kne8QSaYqFjLdi"], ["created_at", "2015-07-06 21:18:05.656364"], ["updated_at", "2015-07-06 21:18:05.656364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.658986"], ["user_id", "2f6df358-16d6-42a8-a064-69f10747522b"], ["created_at", "2015-07-06 21:18:05.659801"], ["updated_at", "2015-07-06 21:18:05.659801"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.664857"], ["updated_at", "2015-07-06 21:18:05.664857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f6df358-16d6-42a8-a064-69f10747522b' AND "clubhouse_memberships"."organization_id" = '7a5de991-6b92-4e39-b474-7c7bdf05df60') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f6df358-16d6-42a8-a064-69f10747522b"], ["organization_id", "7a5de991-6b92-4e39-b474-7c7bdf05df60"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.668780"], ["updated_at", "2015-07-06 21:18:05.668780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 52"], ["email", "user.52@example.com"], ["password_digest", "$2a$04$R6QBG4TWdBB7hd29POutF.Z0OYmdfLFwEolRs7m2psHRKC.FyTx.G"], ["created_at", "2015-07-06 21:18:05.681015"], ["updated_at", "2015-07-06 21:18:05.681015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:05.683332"], ["user_id", "e0d254b9-5041-4ca7-a4c4-400f5f742a7b"], ["created_at", "2015-07-06 21:18:05.684116"], ["updated_at", "2015-07-06 21:18:05.684116"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.688787"], ["updated_at", "2015-07-06 21:18:05.688787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e0d254b9-5041-4ca7-a4c4-400f5f742a7b' AND "clubhouse_memberships"."organization_id" = 'c3b82d85-219c-4ac9-8f65-6352b877def0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e0d254b9-5041-4ca7-a4c4-400f5f742a7b"], ["organization_id", "c3b82d85-219c-4ac9-8f65-6352b877def0"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.692595"], ["updated_at", "2015-07-06 21:18:05.692595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c3b82d85-219c-4ac9-8f65-6352b877def0" for 127.0.0.1 at 2015-07-06 14:18:05 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"c3b82d85-219c-4ac9-8f65-6352b877def0", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:05.696982') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "29e7f981-664b-4780-9c38-6bb9c6c4c251"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:05.699097"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:05.700099"], ["id", "29e7f981-664b-4780-9c38-6bb9c6c4c251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c3b82d85-219c-4ac9-8f65-6352b877def0"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e0d254b9-5041-4ca7-a4c4-400f5f742a7b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e0d254b9-5041-4ca7-a4c4-400f5f742a7b' LIMIT 1 [["organization_id", "c3b82d85-219c-4ac9-8f65-6352b877def0"]] Completed 200 OK in 10ms (Views: 0.8ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 53"], ["email", "user.53@example.com"], ["password_digest", "$2a$04$G.16Zdd6sh2A4zN8fWxc9usaJRwnOz0xJ8ktfMZrmRRmjK0ahYkwy"], ["created_at", "2015-07-06 21:18:05.715935"], ["updated_at", "2015-07-06 21:18:05.715935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 54"], ["email", "user.54@example.com"], ["password_digest", "$2a$04$WA/UqzfA1ZbkmAj.2bY4wuFHyqoWA5o0/woW1iQO36BA.NtV77ze."], ["created_at", "2015-07-06 21:18:05.726285"], ["updated_at", "2015-07-06 21:18:05.726285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.732946"], ["updated_at", "2015-07-06 21:18:05.732946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2d50abd9-f843-44f2-b919-415badca8c2a' AND "clubhouse_memberships"."organization_id" = '02832278-ca6c-453f-8829-eb3771d6be49') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2d50abd9-f843-44f2-b919-415badca8c2a"], ["organization_id", "02832278-ca6c-453f-8829-eb3771d6be49"], ["created_at", "2015-07-06 21:18:05.736120"], ["updated_at", "2015-07-06 21:18:05.736120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2d50abd9-f843-44f2-b919-415badca8c2a' LIMIT 1 [["organization_id", "02832278-ca6c-453f-8829-eb3771d6be49"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 55"], ["email", "user.55@example.com"], ["password_digest", "$2a$04$u82jCdXUbz92iS.o5CO0R.bmt7CYKhp/u8L.PDFhA51YeX7D1DLO6"], ["created_at", "2015-07-06 21:18:05.745965"], ["updated_at", "2015-07-06 21:18:05.745965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.750961"], ["updated_at", "2015-07-06 21:18:05.750961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3d0d3cba-b63e-4f25-bda4-8be7f85521b4' AND "clubhouse_memberships"."organization_id" = '86b32a09-516f-4eca-8879-d10682c4f4ab') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3d0d3cba-b63e-4f25-bda4-8be7f85521b4"], ["organization_id", "86b32a09-516f-4eca-8879-d10682c4f4ab"], ["created_at", "2015-07-06 21:18:05.754796"], ["updated_at", "2015-07-06 21:18:05.754796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 56"], ["email", "user.56@example.com"], ["password_digest", "$2a$04$u5wRvWfJSCDDQ7dk621MCuOHR.cMO69px80ZsypKezHKYlGNBcVdC"], ["created_at", "2015-07-06 21:18:05.763132"], ["updated_at", "2015-07-06 21:18:05.763132"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.770806"], ["updated_at", "2015-07-06 21:18:05.770806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56400c3f-5b77-45d5-a36a-8862b2b1f7af' AND "clubhouse_memberships"."organization_id" = '6b90a425-88d8-4460-b987-5cb8d5cf31c3') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56400c3f-5b77-45d5-a36a-8862b2b1f7af"], ["organization_id", "6b90a425-88d8-4460-b987-5cb8d5cf31c3"], ["created_at", "2015-07-06 21:18:05.775875"], ["updated_at", "2015-07-06 21:18:05.775875"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 57"], ["email", "user.57@example.com"], ["password_digest", "$2a$04$lCgGKe8EwqY8sQywSTEiYO9DPhd8DMgeOT5gyXQqZixf9hOki8ptC"], ["created_at", "2015-07-06 21:18:05.786269"], ["updated_at", "2015-07-06 21:18:05.786269"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.794138"], ["updated_at", "2015-07-06 21:18:05.794138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c4286d31-5374-4fd2-bddf-4d1f69f849af' AND "clubhouse_memberships"."organization_id" = '6c6ab1e4-03e7-42b6-9897-155a638fb341') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c4286d31-5374-4fd2-bddf-4d1f69f849af"], ["organization_id", "6c6ab1e4-03e7-42b6-9897-155a638fb341"], ["created_at", "2015-07-06 21:18:05.798514"], ["updated_at", "2015-07-06 21:18:05.798514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'c4286d31-5374-4fd2-bddf-4d1f69f849af' LIMIT 1 [["organization_id", "6c6ab1e4-03e7-42b6-9897-155a638fb341"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 58"], ["email", "user.58@example.com"], ["password_digest", "$2a$04$OdLyfJbal./vbAzr.RhLse6GBCrWcKi7.FESMYKooEQ/ZVa3LmKoW"], ["created_at", "2015-07-06 21:18:05.807135"], ["updated_at", "2015-07-06 21:18:05.807135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.812282"], ["updated_at", "2015-07-06 21:18:05.812282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a38dc256-846a-42a6-a93f-a4c8f3213ade' AND "clubhouse_memberships"."organization_id" = '65d6c924-e573-4a68-8e43-1c314470010f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a38dc256-846a-42a6-a93f-a4c8f3213ade"], ["organization_id", "65d6c924-e573-4a68-8e43-1c314470010f"], ["created_at", "2015-07-06 21:18:05.817166"], ["updated_at", "2015-07-06 21:18:05.817166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a38dc256-846a-42a6-a93f-a4c8f3213ade' LIMIT 1 [["organization_id", "65d6c924-e573-4a68-8e43-1c314470010f"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 59"], ["email", "user.59@example.com"], ["password_digest", "$2a$04$ZLK0ERDQzTy3r4gzsJFNZuelv72cuDevWFjP0nQ3dEAxLk.WfNf5C"], ["created_at", "2015-07-06 21:18:05.827025"], ["updated_at", "2015-07-06 21:18:05.827025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.832910"], ["updated_at", "2015-07-06 21:18:05.832910"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78ba4817-56a4-4b6f-808b-2917c7f1aae0' AND "clubhouse_memberships"."organization_id" = '48b8a1a1-d517-4bce-aaf9-6c00b298aef1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78ba4817-56a4-4b6f-808b-2917c7f1aae0"], ["organization_id", "48b8a1a1-d517-4bce-aaf9-6c00b298aef1"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.837702"], ["updated_at", "2015-07-06 21:18:05.837702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 60"], ["email", "user.60@example.com"], ["password_digest", "$2a$04$ynwYJ8eKISdpW2076Z.V.eSmPsJe/3N6bMkGx4vLpaew76m5IyqAu"], ["created_at", "2015-07-06 21:18:05.849012"], ["updated_at", "2015-07-06 21:18:05.849012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.855284"], ["updated_at", "2015-07-06 21:18:05.855284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ae9e7f8-10f3-4bc7-a21f-13d186e71623' AND "clubhouse_memberships"."organization_id" = '7111b2aa-2c12-423e-9448-60b66891b68c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ae9e7f8-10f3-4bc7-a21f-13d186e71623"], ["organization_id", "7111b2aa-2c12-423e-9448-60b66891b68c"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.859476"], ["updated_at", "2015-07-06 21:18:05.859476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 61"], ["email", "user.61@example.com"], ["password_digest", "$2a$04$VEPCb4kid4mGPcyuIoE5j.89F30JLsMWocIU3Ow0uxwSkoHGMK7.e"], ["created_at", "2015-07-06 21:18:05.868712"], ["updated_at", "2015-07-06 21:18:05.868712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.873811"], ["updated_at", "2015-07-06 21:18:05.873811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34d1fbc7-1db8-457b-8b9f-ac5c551e17a9' AND "clubhouse_memberships"."organization_id" = 'f6676596-d69d-4f9c-9434-da9848e8888d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34d1fbc7-1db8-457b-8b9f-ac5c551e17a9"], ["organization_id", "f6676596-d69d-4f9c-9434-da9848e8888d"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.877883"], ["updated_at", "2015-07-06 21:18:05.877883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '34d1fbc7-1db8-457b-8b9f-ac5c551e17a9' LIMIT 1 [["organization_id", "f6676596-d69d-4f9c-9434-da9848e8888d"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 62"], ["email", "user.62@example.com"], ["password_digest", "$2a$04$RAR2GFfwMmtbE.QDrDGW4uLdIzbF090MjKJ0R5GBN87Tl7o/A4T.."], ["created_at", "2015-07-06 21:18:05.888369"], ["updated_at", "2015-07-06 21:18:05.888369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.894934"], ["updated_at", "2015-07-06 21:18:05.894934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43c32100-c1d3-432c-8266-24c9dc8c866f' AND "clubhouse_memberships"."organization_id" = '360b07a5-fc35-4514-b2c4-4b8097a8f114') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43c32100-c1d3-432c-8266-24c9dc8c866f"], ["organization_id", "360b07a5-fc35-4514-b2c4-4b8097a8f114"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.898652"], ["updated_at", "2015-07-06 21:18:05.898652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '43c32100-c1d3-432c-8266-24c9dc8c866f' LIMIT 1 [["organization_id", "360b07a5-fc35-4514-b2c4-4b8097a8f114"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 63"], ["email", "user.63@example.com"], ["password_digest", "$2a$04$Xe/SafmYDW3hwx0WkithPumRBLXBfTEx9a7OR83rLMZm.ITSEkdFq"], ["created_at", "2015-07-06 21:18:05.908448"], ["updated_at", "2015-07-06 21:18:05.908448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.912816"], ["updated_at", "2015-07-06 21:18:05.912816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2415dc07-a29d-4b04-9895-3dc4cd511ba6' AND "clubhouse_memberships"."organization_id" = 'ac5d795a-a6de-4ba7-8438-baceb948d8b0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2415dc07-a29d-4b04-9895-3dc4cd511ba6"], ["organization_id", "ac5d795a-a6de-4ba7-8438-baceb948d8b0"], ["admin", "t"], ["created_at", "2015-07-06 21:18:05.917189"], ["updated_at", "2015-07-06 21:18:05.917189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2415dc07-a29d-4b04-9895-3dc4cd511ba6' LIMIT 1 [["organization_id", "ac5d795a-a6de-4ba7-8438-baceb948d8b0"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 64"], ["email", "user.64@example.com"], ["password_digest", "$2a$04$CfAiMnHYphA19zY//SmEZeoI4zBnx2YatwskSZ/u1mZjxWUpwgpz."], ["created_at", "2015-07-06 21:18:05.926587"], ["updated_at", "2015-07-06 21:18:05.926587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.931546"], ["updated_at", "2015-07-06 21:18:05.931546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 65"], ["email", "user.65@example.com"], ["password_digest", "$2a$04$FRZOEb3G8x5vLz.ChopnG.NUtnjarY9GUALjcU0jQW6hqnVbn0FU2"], ["created_at", "2015-07-06 21:18:05.939532"], ["updated_at", "2015-07-06 21:18:05.939532"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.946158"], ["updated_at", "2015-07-06 21:18:05.946158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'bea17d78-5fc3-4e26-8b21-c9ee66e4bcde' LIMIT 1 [["organization_id", "39ef75fd-e831-40fa-b2ea-6b08c39fd135"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 66"], ["email", "user.66@example.com"], ["password_digest", "$2a$04$mMBi3e31xGiY1y30AtPpQOaUjlB9xDdcrvFtEpLaBsuV4qt9NApwC"], ["created_at", "2015-07-06 21:18:05.954416"], ["updated_at", "2015-07-06 21:18:05.954416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.958301"], ["updated_at", "2015-07-06 21:18:05.958301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 67"], ["email", "user.67@example.com"], ["password_digest", "$2a$04$xryICmfiKBRKC5vl4UJWrO./63O58yT.ywpbPJZshFMfMRQbB8lk2"], ["created_at", "2015-07-06 21:18:05.965804"], ["updated_at", "2015-07-06 21:18:05.965804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.970008"], ["updated_at", "2015-07-06 21:18:05.970008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '10cd8c86-dec7-4705-ad8d-835f8ebb1959' LIMIT 1 [["organization_id", "a9b8349e-d77e-493a-b2e6-504be0647273"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 68"], ["email", "user.68@example.com"], ["password_digest", "$2a$04$5B6C4QNL1/lg5wQE741qYuyGoR8NsrvGiZ1/WQLmdoeC0RtzQY/vy"], ["created_at", "2015-07-06 21:18:05.979001"], ["updated_at", "2015-07-06 21:18:05.979001"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:05.985413"], ["updated_at", "2015-07-06 21:18:05.985413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '66d67b04-698e-437b-bd3e-22417fec6f2e' LIMIT 1 [["organization_id", "28898c95-bcb8-41d8-b397-f9bd63f592a1"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 69"], ["email", "user.69@example.com"], ["password_digest", "$2a$04$VrIWdQIYsdrFfVB/nJaBQeTNxwK19YCOhCbF1mkQOl8FxWXW2U5GO"], ["created_at", "2015-07-06 21:18:05.997470"], ["updated_at", "2015-07-06 21:18:05.997470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.002257"], ["updated_at", "2015-07-06 21:18:06.002257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c7039f0-65b4-4e8c-9450-3fde88347512' AND "clubhouse_memberships"."organization_id" = '6ef3161f-6fc3-4cd6-a215-42ad5159f03c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c7039f0-65b4-4e8c-9450-3fde88347512"], ["organization_id", "6ef3161f-6fc3-4cd6-a215-42ad5159f03c"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.006448"], ["updated_at", "2015-07-06 21:18:06.006448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '6ef3161f-6fc3-4cd6-a215-42ad5159f03c') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "6ef3161f-6fc3-4cd6-a215-42ad5159f03c"], ["created_at", "2015-07-06 21:18:06.017881"], ["updated_at", "2015-07-06 21:18:06.017881"], ["token", "TPCNhTuLzTE6KlPCGMsaZlFUkmqHFMOt4WW-u-wZj8U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '4c7039f0-65b4-4e8c-9450-3fde88347512' LIMIT 1 [["organization_id", "6ef3161f-6fc3-4cd6-a215-42ad5159f03c"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 70"], ["email", "user.70@example.com"], ["password_digest", "$2a$04$t.nnlQf2s7xQx3uTL0ujtuWb/2ZCyVg59V/MLYIQzzFYrhYn7qCCu"], ["created_at", "2015-07-06 21:18:06.028150"], ["updated_at", "2015-07-06 21:18:06.028150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.033477"], ["updated_at", "2015-07-06 21:18:06.033477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fd77f8b-a48d-468a-a8f0-3e214e4f295b' AND "clubhouse_memberships"."organization_id" = '5c4aa32d-16f1-456d-a4e2-b3d3dfc1f670') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fd77f8b-a48d-468a-a8f0-3e214e4f295b"], ["organization_id", "5c4aa32d-16f1-456d-a4e2-b3d3dfc1f670"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.037528"], ["updated_at", "2015-07-06 21:18:06.037528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '5c4aa32d-16f1-456d-a4e2-b3d3dfc1f670') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "5c4aa32d-16f1-456d-a4e2-b3d3dfc1f670"], ["created_at", "2015-07-06 21:18:06.044409"], ["updated_at", "2015-07-06 21:18:06.044409"], ["token", "4KT0WUvSIoprDdqS7-0rzGj69zHbmRbMmmJEjiYJ_RA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '8fd77f8b-a48d-468a-a8f0-3e214e4f295b' LIMIT 1 [["organization_id", "5c4aa32d-16f1-456d-a4e2-b3d3dfc1f670"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 71"], ["email", "user.71@example.com"], ["password_digest", "$2a$04$voeKhVmdt.AMdHC/cM/ULOs9RToyLrNIWFv0iOiv5zUCisaRT3JSW"], ["created_at", "2015-07-06 21:18:06.055194"], ["updated_at", "2015-07-06 21:18:06.055194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.059360"], ["updated_at", "2015-07-06 21:18:06.059360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '48ad2b9e-7f51-4cb2-8d85-6ddba29f9c3e' AND "clubhouse_memberships"."organization_id" = '04c87291-7c3a-47d2-af20-0992c7484873') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "48ad2b9e-7f51-4cb2-8d85-6ddba29f9c3e"], ["organization_id", "04c87291-7c3a-47d2-af20-0992c7484873"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.063086"], ["updated_at", "2015-07-06 21:18:06.063086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '04c87291-7c3a-47d2-af20-0992c7484873') LIMIT 1 SQL (2.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "04c87291-7c3a-47d2-af20-0992c7484873"], ["created_at", "2015-07-06 21:18:06.067700"], ["updated_at", "2015-07-06 21:18:06.067700"], ["token", "AkTcqO_8gQQiuIiev5NXFL1nUjnqVdZTkWu-G6_nbqk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '48ad2b9e-7f51-4cb2-8d85-6ddba29f9c3e' LIMIT 1 [["organization_id", "04c87291-7c3a-47d2-af20-0992c7484873"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 72"], ["email", "user.72@example.com"], ["password_digest", "$2a$04$m/1orm/I//.38TYa9/UTlOtvVBiW6Pb.vWDEdaXWSTYhR08ibZl5y"], ["created_at", "2015-07-06 21:18:06.080834"], ["updated_at", "2015-07-06 21:18:06.080834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.085903"], ["updated_at", "2015-07-06 21:18:06.085903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3f3a68d-a7f8-4ccb-a7e2-be95ca3d49dc' AND "clubhouse_memberships"."organization_id" = '78e47382-1c10-4e45-bc14-2ee900c09309') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e3f3a68d-a7f8-4ccb-a7e2-be95ca3d49dc"], ["organization_id", "78e47382-1c10-4e45-bc14-2ee900c09309"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.090023"], ["updated_at", "2015-07-06 21:18:06.090023"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '78e47382-1c10-4e45-bc14-2ee900c09309') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "78e47382-1c10-4e45-bc14-2ee900c09309"], ["created_at", "2015-07-06 21:18:06.097033"], ["updated_at", "2015-07-06 21:18:06.097033"], ["token", "BnjHiVrfAd6q3y7gn3ur9SuUepkxYi7uanhedPh10hg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e3f3a68d-a7f8-4ccb-a7e2-be95ca3d49dc' LIMIT 1 [["organization_id", "78e47382-1c10-4e45-bc14-2ee900c09309"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 73"], ["email", "user.73@example.com"], ["password_digest", "$2a$04$gVmyH1W/aVWQnNfaPdtKhOsLk485GR2GJn8BLtYKfgeAShAR1JYty"], ["created_at", "2015-07-06 21:18:06.106767"], ["updated_at", "2015-07-06 21:18:06.106767"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.112494"], ["updated_at", "2015-07-06 21:18:06.112494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '932b6ac9-834d-47d0-9121-1374fb25f4fe' AND "clubhouse_memberships"."organization_id" = '9f7ad9dd-9f2d-40a4-8536-d21a16c60f9d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "932b6ac9-834d-47d0-9121-1374fb25f4fe"], ["organization_id", "9f7ad9dd-9f2d-40a4-8536-d21a16c60f9d"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.116678"], ["updated_at", "2015-07-06 21:18:06.116678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '932b6ac9-834d-47d0-9121-1374fb25f4fe' LIMIT 1 [["organization_id", "9f7ad9dd-9f2d-40a4-8536-d21a16c60f9d"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 74"], ["email", "user.74@example.com"], ["password_digest", "$2a$04$mFTV7lD3oFN3Cmg5I4I27.J2ThYwzT5P.EgJ8zZmX7WNpfvHg5uHi"], ["created_at", "2015-07-06 21:18:06.127371"], ["updated_at", "2015-07-06 21:18:06.127371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.131319"], ["updated_at", "2015-07-06 21:18:06.131319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '723bd122-2fb9-4883-a5a3-1dcfd1a4f9e3' AND "clubhouse_memberships"."organization_id" = '51505241-9cce-4747-a5b9-63a564a8619e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "723bd122-2fb9-4883-a5a3-1dcfd1a4f9e3"], ["organization_id", "51505241-9cce-4747-a5b9-63a564a8619e"], ["created_at", "2015-07-06 21:18:06.134612"], ["updated_at", "2015-07-06 21:18:06.134612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '51505241-9cce-4747-a5b9-63a564a8619e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "51505241-9cce-4747-a5b9-63a564a8619e"], ["created_at", "2015-07-06 21:18:06.140103"], ["updated_at", "2015-07-06 21:18:06.140103"], ["token", "sUhYsOo4exvH4o9yRSuGWHoy-t6FiR33lScZfpXNNeI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '723bd122-2fb9-4883-a5a3-1dcfd1a4f9e3' LIMIT 1 [["organization_id", "51505241-9cce-4747-a5b9-63a564a8619e"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 75"], ["email", "user.75@example.com"], ["password_digest", "$2a$04$muryfm.uJleiECu1mMzDquNReHa7/o8SN6Bmm.4aoEU88MjDAV9HK"], ["created_at", "2015-07-06 21:18:06.149760"], ["updated_at", "2015-07-06 21:18:06.149760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.154031"], ["updated_at", "2015-07-06 21:18:06.154031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd3ad890e-e1f0-4978-ae3c-d37ee5638727' AND "clubhouse_memberships"."organization_id" = '882c147d-a12a-4fc5-9803-2eeaa42b96b7') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d3ad890e-e1f0-4978-ae3c-d37ee5638727"], ["organization_id", "882c147d-a12a-4fc5-9803-2eeaa42b96b7"], ["created_at", "2015-07-06 21:18:06.158054"], ["updated_at", "2015-07-06 21:18:06.158054"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '882c147d-a12a-4fc5-9803-2eeaa42b96b7') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "882c147d-a12a-4fc5-9803-2eeaa42b96b7"], ["created_at", "2015-07-06 21:18:06.165459"], ["updated_at", "2015-07-06 21:18:06.165459"], ["token", "hge9AlotmdNg0QBTVP_-rzOL_WFqTbZWTfCOzQaqSns"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd3ad890e-e1f0-4978-ae3c-d37ee5638727' LIMIT 1 [["organization_id", "882c147d-a12a-4fc5-9803-2eeaa42b96b7"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 76"], ["email", "user.76@example.com"], ["password_digest", "$2a$04$u05vyswP.lg1v.IqpNCBnOIYvDoB9JH0YreOyJSPE.08X5qGku6FO"], ["created_at", "2015-07-06 21:18:06.175452"], ["updated_at", "2015-07-06 21:18:06.175452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.180424"], ["updated_at", "2015-07-06 21:18:06.180424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56408ec1-61c2-4a15-87ce-c0d344e97d31' AND "clubhouse_memberships"."organization_id" = 'f96abb16-8753-4c5f-8525-d2ebd25e72be') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "56408ec1-61c2-4a15-87ce-c0d344e97d31"], ["organization_id", "f96abb16-8753-4c5f-8525-d2ebd25e72be"], ["created_at", "2015-07-06 21:18:06.184702"], ["updated_at", "2015-07-06 21:18:06.184702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = 'f96abb16-8753-4c5f-8525-d2ebd25e72be') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "f96abb16-8753-4c5f-8525-d2ebd25e72be"], ["created_at", "2015-07-06 21:18:06.189364"], ["updated_at", "2015-07-06 21:18:06.189364"], ["token", "xgnKCv8NBOrgYwf14DsbLJXHlEMrg0iGYOytTmC6GJ4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '56408ec1-61c2-4a15-87ce-c0d344e97d31' LIMIT 1 [["organization_id", "f96abb16-8753-4c5f-8525-d2ebd25e72be"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 77"], ["email", "user.77@example.com"], ["password_digest", "$2a$04$1KwmWpMsfANXNM2sw0KmxuT2eA7icNqjzveuvEW6wdRNaky8UaYXq"], ["created_at", "2015-07-06 21:18:06.199719"], ["updated_at", "2015-07-06 21:18:06.199719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.205194"], ["updated_at", "2015-07-06 21:18:06.205194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e66821e4-9f7d-4590-ba11-c9f172630f40' AND "clubhouse_memberships"."organization_id" = '58f725ed-6d3a-4675-aa02-d428fec5f4d5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e66821e4-9f7d-4590-ba11-c9f172630f40"], ["organization_id", "58f725ed-6d3a-4675-aa02-d428fec5f4d5"], ["created_at", "2015-07-06 21:18:06.211260"], ["updated_at", "2015-07-06 21:18:06.211260"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '58f725ed-6d3a-4675-aa02-d428fec5f4d5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "58f725ed-6d3a-4675-aa02-d428fec5f4d5"], ["created_at", "2015-07-06 21:18:06.217224"], ["updated_at", "2015-07-06 21:18:06.217224"], ["token", "EAYLj463EoeztxustNV13IAhcvYEgmvQF0dM_5T0VrM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e66821e4-9f7d-4590-ba11-c9f172630f40' LIMIT 1 [["organization_id", "58f725ed-6d3a-4675-aa02-d428fec5f4d5"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 78"], ["email", "user.78@example.com"], ["password_digest", "$2a$04$qI.miJaU/Xgur8PJEKcbW.bVPrL4Yx69ZQIO1RwpIOafaNpWktGyC"], ["created_at", "2015-07-06 21:18:06.227213"], ["updated_at", "2015-07-06 21:18:06.227213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.232304"], ["updated_at", "2015-07-06 21:18:06.232304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64c54de4-0dca-4bdc-a1ae-bd2e750dedd7' AND "clubhouse_memberships"."organization_id" = 'ebea8b1c-22b3-42f0-933a-57d0a1c9b8df') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "64c54de4-0dca-4bdc-a1ae-bd2e750dedd7"], ["organization_id", "ebea8b1c-22b3-42f0-933a-57d0a1c9b8df"], ["created_at", "2015-07-06 21:18:06.236159"], ["updated_at", "2015-07-06 21:18:06.236159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '64c54de4-0dca-4bdc-a1ae-bd2e750dedd7' LIMIT 1 [["organization_id", "ebea8b1c-22b3-42f0-933a-57d0a1c9b8df"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 79"], ["email", "user.79@example.com"], ["password_digest", "$2a$04$yZIs2u/.dZnql/zBEtF.IO783sivfq9b7zZ6IxCdAEnyTQiZdhJHy"], ["created_at", "2015-07-06 21:18:06.246465"], ["updated_at", "2015-07-06 21:18:06.246465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.250938"], ["updated_at", "2015-07-06 21:18:06.250938"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '40b23723-2441-4c9f-997d-53d8ee06fae5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "40b23723-2441-4c9f-997d-53d8ee06fae5"], ["created_at", "2015-07-06 21:18:06.255852"], ["updated_at", "2015-07-06 21:18:06.255852"], ["token", "HlYhAGpjy00ycq-LsmJ1vg1jW7mhOKLGDM4V5xEQDvg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'c6373612-78a5-47fc-acdc-74c35ff86c19' LIMIT 1 [["organization_id", "40b23723-2441-4c9f-997d-53d8ee06fae5"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 80"], ["email", "user.80@example.com"], ["password_digest", "$2a$04$dGmlNwFejYK8G/WkZpXrt..hBR4De5bHOSja1xadi7lx0ZLp.QcJa"], ["created_at", "2015-07-06 21:18:06.266442"], ["updated_at", "2015-07-06 21:18:06.266442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.270854"], ["updated_at", "2015-07-06 21:18:06.270854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '1e429a9a-ef5a-4529-902a-6d0176dc1585') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "1e429a9a-ef5a-4529-902a-6d0176dc1585"], ["created_at", "2015-07-06 21:18:06.278114"], ["updated_at", "2015-07-06 21:18:06.278114"], ["token", "JIwJvQbb6gPOPfKksgrijZUJpmT1lhM4829fKm9Ev38"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'bd7519db-16b1-4ee9-b069-a67862808bae' LIMIT 1 [["organization_id", "1e429a9a-ef5a-4529-902a-6d0176dc1585"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 81"], ["email", "user.81@example.com"], ["password_digest", "$2a$04$c76zZUu6PZpyE.cwzDPnBemcrizJxm8SnmznzBK4IwWcQ6cjqNKYK"], ["created_at", "2015-07-06 21:18:06.287664"], ["updated_at", "2015-07-06 21:18:06.287664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.292734"], ["updated_at", "2015-07-06 21:18:06.292734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'f5dd4d7c-9f5d-43b4-97f2-d861d383dd77') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "f5dd4d7c-9f5d-43b4-97f2-d861d383dd77"], ["created_at", "2015-07-06 21:18:06.298390"], ["updated_at", "2015-07-06 21:18:06.298390"], ["token", "IOfTWnxIUQqyktUZca_pnIdCla561cO10PT7Z7DMKuw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'eae8a082-87c2-4fbb-b6e4-76bff58f66a8' LIMIT 1 [["organization_id", "f5dd4d7c-9f5d-43b4-97f2-d861d383dd77"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 82"], ["email", "user.82@example.com"], ["password_digest", "$2a$04$qtrSkAGuLd5M0TC91piRYOqgGsEG9C5ayZ7AehsuaBt9EfE40yvbe"], ["created_at", "2015-07-06 21:18:06.308340"], ["updated_at", "2015-07-06 21:18:06.308340"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.314089"], ["updated_at", "2015-07-06 21:18:06.314089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'ff808fac-bcc7-4560-8d5a-074fa58d8bde') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "ff808fac-bcc7-4560-8d5a-074fa58d8bde"], ["created_at", "2015-07-06 21:18:06.319588"], ["updated_at", "2015-07-06 21:18:06.319588"], ["token", "yeZ-faLy48hloZzccV_-8RhmDRo79Mpyj69owIca-Kg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd49bb329-4625-475e-8942-be7711d58672' LIMIT 1 [["organization_id", "ff808fac-bcc7-4560-8d5a-074fa58d8bde"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 83"], ["email", "user.83@example.com"], ["password_digest", "$2a$04$tQvxxpdk3q2xrZNavVSLm.Sm6pbqJk88Q5Sk5htdMbREQGELmb28S"], ["created_at", "2015-07-06 21:18:06.332504"], ["updated_at", "2015-07-06 21:18:06.332504"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.337265"], ["updated_at", "2015-07-06 21:18:06.337265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd82a6154-401b-45e7-bc1b-b915b78f5015' LIMIT 1 [["organization_id", "e1204523-392b-4100-a329-7968de7c919c"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 84"], ["email", "user.84@example.com"], ["password_digest", "$2a$04$dcR15ItXLI.XrUYR6KuXo.FM0avgyGi/H/93ytYd1hdzRuDoGjOuO"], ["created_at", "2015-07-06 21:18:06.346718"], ["updated_at", "2015-07-06 21:18:06.346718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 85"], ["email", "user.85@example.com"], ["password_digest", "$2a$04$1zgapq0mZYNsMkWyH7jvAOy.ZuKBT7JdwNACMHIOOgqPCW3oqOEEK"], ["created_at", "2015-07-06 21:18:06.353166"], ["updated_at", "2015-07-06 21:18:06.353166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.354931"], ["user_id", "abdadf7e-ba23-40d1-87ab-eb2927cde3f8"], ["created_at", "2015-07-06 21:18:06.355613"], ["updated_at", "2015-07-06 21:18:06.355613"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.360252"], ["updated_at", "2015-07-06 21:18:06.360252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'abdadf7e-ba23-40d1-87ab-eb2927cde3f8' AND "clubhouse_memberships"."organization_id" = '420524b0-1a68-47f8-845a-7b9a82b2b55f') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "abdadf7e-ba23-40d1-87ab-eb2927cde3f8"], ["organization_id", "420524b0-1a68-47f8-845a-7b9a82b2b55f"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.363912"], ["updated_at", "2015-07-06 21:18:06.363912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02d22b72-fa40-480a-9826-656702d16a01' AND "clubhouse_memberships"."organization_id" = '420524b0-1a68-47f8-845a-7b9a82b2b55f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02d22b72-fa40-480a-9826-656702d16a01"], ["organization_id", "420524b0-1a68-47f8-845a-7b9a82b2b55f"], ["created_at", "2015-07-06 21:18:06.369011"], ["updated_at", "2015-07-06 21:18:06.369011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/420524b0-1a68-47f8-845a-7b9a82b2b55f/memberships" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"420524b0-1a68-47f8-845a-7b9a82b2b55f", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:06.378641') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ade0e698-519e-4bf6-898f-3c3b0245b2ab"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:06.380568"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:06.381498"], ["id", "ade0e698-519e-4bf6-898f-3c3b0245b2ab"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "420524b0-1a68-47f8-845a-7b9a82b2b55f"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "abdadf7e-ba23-40d1-87ab-eb2927cde3f8"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'abdadf7e-ba23-40d1-87ab-eb2927cde3f8' LIMIT 1 [["organization_id", "420524b0-1a68-47f8-845a-7b9a82b2b55f"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "420524b0-1a68-47f8-845a-7b9a82b2b55f"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "abdadf7e-ba23-40d1-87ab-eb2927cde3f8"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "02d22b72-fa40-480a-9826-656702d16a01"]] Completed 200 OK in 20ms (Views: 8.5ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 86"], ["email", "user.86@example.com"], ["password_digest", "$2a$04$3mdsiFA7DHGUOzLXMU7BPekYtMliZC/GH1qQ.QN1hgQq2TJoG/VPK"], ["created_at", "2015-07-06 21:18:06.406466"], ["updated_at", "2015-07-06 21:18:06.406466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 87"], ["email", "user.87@example.com"], ["password_digest", "$2a$04$gbOq1vSw6nV9v2jdLE4NkOjPelV1f6RiekeAWF357/30P3/GrAaVu"], ["created_at", "2015-07-06 21:18:06.412464"], ["updated_at", "2015-07-06 21:18:06.412464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.414238"], ["user_id", "4cec094c-4ea7-4862-b6c3-4f30cea545e4"], ["created_at", "2015-07-06 21:18:06.414963"], ["updated_at", "2015-07-06 21:18:06.414963"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.419634"], ["updated_at", "2015-07-06 21:18:06.419634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4cec094c-4ea7-4862-b6c3-4f30cea545e4' AND "clubhouse_memberships"."organization_id" = '1056b580-0209-4a9c-a25a-e847cefbf77d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4cec094c-4ea7-4862-b6c3-4f30cea545e4"], ["organization_id", "1056b580-0209-4a9c-a25a-e847cefbf77d"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.422884"], ["updated_at", "2015-07-06 21:18:06.422884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '708521f6-b0dc-4ee0-adc0-15a0773f06c9' AND "clubhouse_memberships"."organization_id" = '1056b580-0209-4a9c-a25a-e847cefbf77d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "708521f6-b0dc-4ee0-adc0-15a0773f06c9"], ["organization_id", "1056b580-0209-4a9c-a25a-e847cefbf77d"], ["created_at", "2015-07-06 21:18:06.426365"], ["updated_at", "2015-07-06 21:18:06.426365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 88"], ["email", "user.88@example.com"], ["password_digest", "$2a$04$rin..jDeN4b1hNoaKNMFMOCDWNENTL.UMEmOqFpvTUFeSez0XvjD2"], ["created_at", "2015-07-06 21:18:06.436467"], ["updated_at", "2015-07-06 21:18:06.436467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 89"], ["email", "user.89@example.com"], ["password_digest", "$2a$04$F0SRNbqWkQ6EzXLJQPoNE.XM8mvu9fEmxSPnpDV.5RzyE1uMFOw1O"], ["created_at", "2015-07-06 21:18:06.442821"], ["updated_at", "2015-07-06 21:18:06.442821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.444437"], ["user_id", "2065e09f-9c99-435f-8f3d-e75c8d25d358"], ["created_at", "2015-07-06 21:18:06.445056"], ["updated_at", "2015-07-06 21:18:06.445056"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.449680"], ["updated_at", "2015-07-06 21:18:06.449680"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2065e09f-9c99-435f-8f3d-e75c8d25d358' AND "clubhouse_memberships"."organization_id" = 'd097b052-0515-4edf-8776-98bcec5fcfe0') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2065e09f-9c99-435f-8f3d-e75c8d25d358"], ["organization_id", "d097b052-0515-4edf-8776-98bcec5fcfe0"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.453588"], ["updated_at", "2015-07-06 21:18:06.453588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '059c2d4c-5d18-4351-8325-c55f68c8871c' AND "clubhouse_memberships"."organization_id" = 'd097b052-0515-4edf-8776-98bcec5fcfe0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "059c2d4c-5d18-4351-8325-c55f68c8871c"], ["organization_id", "d097b052-0515-4edf-8776-98bcec5fcfe0"], ["created_at", "2015-07-06 21:18:06.456818"], ["updated_at", "2015-07-06 21:18:06.456818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/e027d2b5-2179-44b4-9020-77035a6535c4" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"e027d2b5-2179-44b4-9020-77035a6535c4", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:06.462265') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4e3565f0-631d-457b-88a2-b3cca6897736"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:06.464128"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:06.464990"], ["id", "4e3565f0-631d-457b-88a2-b3cca6897736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "e027d2b5-2179-44b4-9020-77035a6535c4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2065e09f-9c99-435f-8f3d-e75c8d25d358"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d097b052-0515-4edf-8776-98bcec5fcfe0"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2065e09f-9c99-435f-8f3d-e75c8d25d358' LIMIT 1 [["organization_id", "d097b052-0515-4edf-8776-98bcec5fcfe0"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "059c2d4c-5d18-4351-8325-c55f68c8871c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "e027d2b5-2179-44b4-9020-77035a6535c4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 90"], ["email", "user.90@example.com"], ["password_digest", "$2a$04$yw7fJ3LM0gn7CVv5sXlp4e004F8jm.tvg1HI97zfHITQ/13A.97gy"], ["created_at", "2015-07-06 21:18:06.479788"], ["updated_at", "2015-07-06 21:18:06.479788"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 91"], ["email", "user.91@example.com"], ["password_digest", "$2a$04$wjKOSydDPoYO2v78aw56f.KLdAot5AlHDh/2vaOFem.KXKvv3dA3u"], ["created_at", "2015-07-06 21:18:06.486943"], ["updated_at", "2015-07-06 21:18:06.486943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.489293"], ["user_id", "c5d26a37-64e3-45d1-bca9-e314c809d420"], ["created_at", "2015-07-06 21:18:06.490059"], ["updated_at", "2015-07-06 21:18:06.490059"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.494338"], ["updated_at", "2015-07-06 21:18:06.494338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c5d26a37-64e3-45d1-bca9-e314c809d420' AND "clubhouse_memberships"."organization_id" = 'da7fb6e8-5392-4e29-ba7d-87d481ae156e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c5d26a37-64e3-45d1-bca9-e314c809d420"], ["organization_id", "da7fb6e8-5392-4e29-ba7d-87d481ae156e"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.497676"], ["updated_at", "2015-07-06 21:18:06.497676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bea08b9d-42c1-4b1b-ae81-821c4ef5d4f6' AND "clubhouse_memberships"."organization_id" = 'da7fb6e8-5392-4e29-ba7d-87d481ae156e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bea08b9d-42c1-4b1b-ae81-821c4ef5d4f6"], ["organization_id", "da7fb6e8-5392-4e29-ba7d-87d481ae156e"], ["created_at", "2015-07-06 21:18:06.500592"], ["updated_at", "2015-07-06 21:18:06.500592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 92"], ["email", "user.92@example.com"], ["password_digest", "$2a$04$CKQzscYGqDlqqe4rLLnaE.m6lWlUbTNgR8/6rAV9e5ULjt4pRujbC"], ["created_at", "2015-07-06 21:18:06.509521"], ["updated_at", "2015-07-06 21:18:06.509521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 93"], ["email", "user.93@example.com"], ["password_digest", "$2a$04$BXgsd7FKmNn6yRVQ8GnFC.0k3rRptAVj8hzDKGDTmglxbunAHfXkW"], ["created_at", "2015-07-06 21:18:06.516149"], ["updated_at", "2015-07-06 21:18:06.516149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.517790"], ["user_id", "20bf1a6d-76a4-4842-aaa9-545f01b26fa7"], ["created_at", "2015-07-06 21:18:06.518439"], ["updated_at", "2015-07-06 21:18:06.518439"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.523470"], ["updated_at", "2015-07-06 21:18:06.523470"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20bf1a6d-76a4-4842-aaa9-545f01b26fa7' AND "clubhouse_memberships"."organization_id" = 'd37943a6-c254-4bd2-9ba8-56577d913a00') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20bf1a6d-76a4-4842-aaa9-545f01b26fa7"], ["organization_id", "d37943a6-c254-4bd2-9ba8-56577d913a00"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.529481"], ["updated_at", "2015-07-06 21:18:06.529481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d63cf01-faca-4479-a018-a129165fc135' AND "clubhouse_memberships"."organization_id" = 'd37943a6-c254-4bd2-9ba8-56577d913a00') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6d63cf01-faca-4479-a018-a129165fc135"], ["organization_id", "d37943a6-c254-4bd2-9ba8-56577d913a00"], ["created_at", "2015-07-06 21:18:06.532352"], ["updated_at", "2015-07-06 21:18:06.532352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 94"], ["email", "user.94@example.com"], ["password_digest", "$2a$04$fmWnMmw5d1F.9/CP8H5KjeL3L79B/Q6pwkbWidjDn8tdrWvT4z2Zi"], ["created_at", "2015-07-06 21:18:06.537350"], ["updated_at", "2015-07-06 21:18:06.537350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.538948"], ["user_id", "8ab77b91-0327-43a5-bd14-7731f8005f4f"], ["created_at", "2015-07-06 21:18:06.539548"], ["updated_at", "2015-07-06 21:18:06.539548"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'd37943a6-c254-4bd2-9ba8-56577d913a00') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "d37943a6-c254-4bd2-9ba8-56577d913a00"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.543896"], ["updated_at", "2015-07-06 21:18:06.543896"], ["token", "fYLE8bLnoExcdP4DFcgTAGYllpMHKrvV5cs0Yu9_Pac"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 95"], ["email", "user.95@example.com"], ["password_digest", "$2a$04$VbcCxHtvY0ytxf.cMbVB1eun.l5XaaaeFioRc/gcsPKdxqlfyiRJy"], ["created_at", "2015-07-06 21:18:06.555393"], ["updated_at", "2015-07-06 21:18:06.555393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 96"], ["email", "user.96@example.com"], ["password_digest", "$2a$04$7mx3vtrMS82SLlnIdPjlzuAWScTRxpc9oE96Qoff80o7HhHrkEdKO"], ["created_at", "2015-07-06 21:18:06.560811"], ["updated_at", "2015-07-06 21:18:06.560811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.562816"], ["user_id", "87432307-14c8-40a8-8f06-a892e0532947"], ["created_at", "2015-07-06 21:18:06.563484"], ["updated_at", "2015-07-06 21:18:06.563484"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.567479"], ["updated_at", "2015-07-06 21:18:06.567479"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87432307-14c8-40a8-8f06-a892e0532947' AND "clubhouse_memberships"."organization_id" = '921f5e1f-2b0d-4c16-b056-ea6fca1419b6') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87432307-14c8-40a8-8f06-a892e0532947"], ["organization_id", "921f5e1f-2b0d-4c16-b056-ea6fca1419b6"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.571442"], ["updated_at", "2015-07-06 21:18:06.571442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13cc8857-23c8-4b25-b669-317d0b436710' AND "clubhouse_memberships"."organization_id" = '921f5e1f-2b0d-4c16-b056-ea6fca1419b6') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "13cc8857-23c8-4b25-b669-317d0b436710"], ["organization_id", "921f5e1f-2b0d-4c16-b056-ea6fca1419b6"], ["created_at", "2015-07-06 21:18:06.574497"], ["updated_at", "2015-07-06 21:18:06.574497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 97"], ["email", "user.97@example.com"], ["password_digest", "$2a$04$6AgL/FM8Icq/Bhb/VLZyP.K/obsEMkcbfWyfQ8zo5ZoWgkzU1DN5."], ["created_at", "2015-07-06 21:18:06.579912"], ["updated_at", "2015-07-06 21:18:06.579912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.581587"], ["user_id", "76ce7b46-001f-4a7b-9987-2539b533bfd6"], ["created_at", "2015-07-06 21:18:06.582233"], ["updated_at", "2015-07-06 21:18:06.582233"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '921f5e1f-2b0d-4c16-b056-ea6fca1419b6') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "921f5e1f-2b0d-4c16-b056-ea6fca1419b6"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.587995"], ["updated_at", "2015-07-06 21:18:06.587995"], ["token", "yl02PbiMg7kze6ZN5hsdahVdW_QhOK3hG7aIbuttzMs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/921f5e1f-2b0d-4c16-b056-ea6fca1419b6/memberships" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"yl02PbiMg7kze6ZN5hsdahVdW_QhOK3hG7aIbuttzMs", "organization_id"=>"921f5e1f-2b0d-4c16-b056-ea6fca1419b6", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:06.591924') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "af89ffe2-759b-4b9b-b46e-f7bcc43e9964"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:06.595118"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:06.596126"], ["id", "af89ffe2-759b-4b9b-b46e-f7bcc43e9964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "921f5e1f-2b0d-4c16-b056-ea6fca1419b6"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "76ce7b46-001f-4a7b-9987-2539b533bfd6"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "yl02PbiMg7kze6ZN5hsdahVdW_QhOK3hG7aIbuttzMs"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "921f5e1f-2b0d-4c16-b056-ea6fca1419b6"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76ce7b46-001f-4a7b-9987-2539b533bfd6' AND "clubhouse_memberships"."organization_id" = '921f5e1f-2b0d-4c16-b056-ea6fca1419b6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "921f5e1f-2b0d-4c16-b056-ea6fca1419b6"], ["member_id", "76ce7b46-001f-4a7b-9987-2539b533bfd6"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.607937"], ["updated_at", "2015-07-06 21:18:06.607937"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "2094c220-6fc9-487a-9f03-3d58aa966fae"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 0.9ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 98"], ["email", "user.98@example.com"], ["password_digest", "$2a$04$XM5PSZpsY0JAy/q./iT7Uuo2mBrsrbCyR8YoCswhjBsKmVeqzHTem"], ["created_at", "2015-07-06 21:18:06.621387"], ["updated_at", "2015-07-06 21:18:06.621387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 99"], ["email", "user.99@example.com"], ["password_digest", "$2a$04$DAKIOQ0fGyuy7a2huTJwfee5EwuSxW8lmyoucQeqcXAP.IIOOUd6."], ["created_at", "2015-07-06 21:18:06.627293"], ["updated_at", "2015-07-06 21:18:06.627293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.628925"], ["user_id", "00923166-89a2-491f-9524-6c08de7eea9e"], ["created_at", "2015-07-06 21:18:06.629590"], ["updated_at", "2015-07-06 21:18:06.629590"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.634073"], ["updated_at", "2015-07-06 21:18:06.634073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '00923166-89a2-491f-9524-6c08de7eea9e' AND "clubhouse_memberships"."organization_id" = '748338bc-3a84-4247-9610-977d6e183c26') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "00923166-89a2-491f-9524-6c08de7eea9e"], ["organization_id", "748338bc-3a84-4247-9610-977d6e183c26"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.637443"], ["updated_at", "2015-07-06 21:18:06.637443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '11be5b7a-c654-4a94-8f5c-7742322d1ba3' AND "clubhouse_memberships"."organization_id" = '748338bc-3a84-4247-9610-977d6e183c26') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "11be5b7a-c654-4a94-8f5c-7742322d1ba3"], ["organization_id", "748338bc-3a84-4247-9610-977d6e183c26"], ["created_at", "2015-07-06 21:18:06.640317"], ["updated_at", "2015-07-06 21:18:06.640317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 100"], ["email", "user.100@example.com"], ["password_digest", "$2a$04$5VO/iFl5nf3BDUlBSnpBw.7Y9o23dbF5nzTSLPp6AYYETbhQQKXLm"], ["created_at", "2015-07-06 21:18:06.645849"], ["updated_at", "2015-07-06 21:18:06.645849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.647479"], ["user_id", "f76a8f38-4a43-407c-8b86-b4f4682173bd"], ["created_at", "2015-07-06 21:18:06.648122"], ["updated_at", "2015-07-06 21:18:06.648122"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '748338bc-3a84-4247-9610-977d6e183c26') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "748338bc-3a84-4247-9610-977d6e183c26"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.654810"], ["updated_at", "2015-07-06 21:18:06.654810"], ["token", "o1AYohECZlgp1xqJQvVcvQBPaZq2pHJHrxUIuzUme1M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/748338bc-3a84-4247-9610-977d6e183c26/memberships" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"748338bc-3a84-4247-9610-977d6e183c26", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:06.660951') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2fe3eca1-2372-479a-9e2f-1717697f5de6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:06.662799"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:06.663717"], ["id", "2fe3eca1-2372-479a-9e2f-1717697f5de6"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "748338bc-3a84-4247-9610-977d6e183c26"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f76a8f38-4a43-407c-8b86-b4f4682173bd"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 101"], ["email", "user.101@example.com"], ["password_digest", "$2a$04$WfcZJRrUI2iDO161WbwYWeFCiakVKwEEVzQ3u9E37ybaUdN2tr1lq"], ["created_at", "2015-07-06 21:18:06.675744"], ["updated_at", "2015-07-06 21:18:06.675744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 102"], ["email", "user.102@example.com"], ["password_digest", "$2a$04$kKEEql4EXBKL1JpkkCcFI.Nxxrx5qmJa1ugaSmlXpGkDzlvfukZDi"], ["created_at", "2015-07-06 21:18:06.683279"], ["updated_at", "2015-07-06 21:18:06.683279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.685242"], ["user_id", "65e47ccf-0a1d-4f3b-966f-b12ea4edb25a"], ["created_at", "2015-07-06 21:18:06.686077"], ["updated_at", "2015-07-06 21:18:06.686077"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.691258"], ["updated_at", "2015-07-06 21:18:06.691258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '65e47ccf-0a1d-4f3b-966f-b12ea4edb25a' AND "clubhouse_memberships"."organization_id" = '1b00f928-4b0e-47e7-bdd3-498c9be10d61') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "65e47ccf-0a1d-4f3b-966f-b12ea4edb25a"], ["organization_id", "1b00f928-4b0e-47e7-bdd3-498c9be10d61"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.694851"], ["updated_at", "2015-07-06 21:18:06.694851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9a31ebbd-d11e-4a6a-bf4c-985e4724c962' AND "clubhouse_memberships"."organization_id" = '1b00f928-4b0e-47e7-bdd3-498c9be10d61') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9a31ebbd-d11e-4a6a-bf4c-985e4724c962"], ["organization_id", "1b00f928-4b0e-47e7-bdd3-498c9be10d61"], ["created_at", "2015-07-06 21:18:06.698161"], ["updated_at", "2015-07-06 21:18:06.698161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 103"], ["email", "user.103@example.com"], ["password_digest", "$2a$04$vDGlq77BYN2hHiM0qRPIxeoEDR32b2gkgY0CK.IPvVsD43LYExjdi"], ["created_at", "2015-07-06 21:18:06.703395"], ["updated_at", "2015-07-06 21:18:06.703395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.704994"], ["user_id", "f29eb0b6-7220-41b7-9509-6f356e5a6415"], ["created_at", "2015-07-06 21:18:06.706076"], ["updated_at", "2015-07-06 21:18:06.706076"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '1b00f928-4b0e-47e7-bdd3-498c9be10d61') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "1b00f928-4b0e-47e7-bdd3-498c9be10d61"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.712077"], ["updated_at", "2015-07-06 21:18:06.712077"], ["token", "N3dM6V38rr86sGW-dPlt_cFtHAKtDRpqion994myGCY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 104"], ["email", "user.104@example.com"], ["password_digest", "$2a$04$0A0DldhrY9xMeYvXXxucxuiXrLtqbx0fs2ZMuTxiFYpfkCZABc4Ui"], ["created_at", "2015-07-06 21:18:06.721882"], ["updated_at", "2015-07-06 21:18:06.721882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 105"], ["email", "user.105@example.com"], ["password_digest", "$2a$04$5C/FB.0vlEj8Dha6o69cOeWvJ/jcqshrf4OcVfnqid8cIeKZYx7vy"], ["created_at", "2015-07-06 21:18:06.730269"], ["updated_at", "2015-07-06 21:18:06.730269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.732099"], ["user_id", "e2baa484-5d37-4ce9-a64f-943e58af3481"], ["created_at", "2015-07-06 21:18:06.732783"], ["updated_at", "2015-07-06 21:18:06.732783"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.736999"], ["updated_at", "2015-07-06 21:18:06.736999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2baa484-5d37-4ce9-a64f-943e58af3481' AND "clubhouse_memberships"."organization_id" = 'c53ee7c3-6c04-4e14-87f2-db4ba60b26f2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2baa484-5d37-4ce9-a64f-943e58af3481"], ["organization_id", "c53ee7c3-6c04-4e14-87f2-db4ba60b26f2"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.740332"], ["updated_at", "2015-07-06 21:18:06.740332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '558d7d5f-8128-4a17-b61b-517db2867a48' AND "clubhouse_memberships"."organization_id" = 'c53ee7c3-6c04-4e14-87f2-db4ba60b26f2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "558d7d5f-8128-4a17-b61b-517db2867a48"], ["organization_id", "c53ee7c3-6c04-4e14-87f2-db4ba60b26f2"], ["created_at", "2015-07-06 21:18:06.743319"], ["updated_at", "2015-07-06 21:18:06.743319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 106"], ["email", "user.106@example.com"], ["password_digest", "$2a$04$XInsjhhsuMiHSRqTE6a8H.9mFF05JU.dJ7KiAD9bWPIisjVCsj44."], ["created_at", "2015-07-06 21:18:06.749334"], ["updated_at", "2015-07-06 21:18:06.749334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.751067"], ["user_id", "0635ba28-254a-4e97-b0d5-750bcd18792f"], ["created_at", "2015-07-06 21:18:06.751957"], ["updated_at", "2015-07-06 21:18:06.751957"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = 'c53ee7c3-6c04-4e14-87f2-db4ba60b26f2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "c53ee7c3-6c04-4e14-87f2-db4ba60b26f2"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.757084"], ["updated_at", "2015-07-06 21:18:06.757084"], ["token", "jcJmoyHyFOLkjhr6TxgVhwyQnyUyjLgFUxhDsO0TnaM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"jcJmoyHyFOLkjhr6TxgVhwyQnyUyjLgFUxhDsO0TnaM", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:06.760379') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9cecb945-1ca2-4637-b06f-f0539fc82f85"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:06.762144"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:06.763268"], ["id", "9cecb945-1ca2-4637-b06f-f0539fc82f85"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0635ba28-254a-4e97-b0d5-750bcd18792f"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "jcJmoyHyFOLkjhr6TxgVhwyQnyUyjLgFUxhDsO0TnaM"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c53ee7c3-6c04-4e14-87f2-db4ba60b26f2"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0635ba28-254a-4e97-b0d5-750bcd18792f' AND "clubhouse_memberships"."organization_id" = 'c53ee7c3-6c04-4e14-87f2-db4ba60b26f2') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "c53ee7c3-6c04-4e14-87f2-db4ba60b26f2"], ["member_id", "0635ba28-254a-4e97-b0d5-750bcd18792f"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.779598"], ["updated_at", "2015-07-06 21:18:06.779598"]] SQL (0.3ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "c9217ce0-5e80-411b-8cd8-670ab2e39414"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 1.3ms | ActiveRecord: 4.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 107"], ["email", "user.107@example.com"], ["password_digest", "$2a$04$tootmyT/ZBvpahOIVKdkqOUZFvYctSUh3oDC.GWF0aD0wW4pbC.p6"], ["created_at", "2015-07-06 21:18:06.794385"], ["updated_at", "2015-07-06 21:18:06.794385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 108"], ["email", "user.108@example.com"], ["password_digest", "$2a$04$/fGn0p6zA4T5.gtbHQMyEuTCvxUUWIgTYZS9MFEHH3AKrKhmO9j46"], ["created_at", "2015-07-06 21:18:06.799957"], ["updated_at", "2015-07-06 21:18:06.799957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.801500"], ["user_id", "b49def75-5720-449c-88d1-ff6fbcc808df"], ["created_at", "2015-07-06 21:18:06.802112"], ["updated_at", "2015-07-06 21:18:06.802112"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.806362"], ["updated_at", "2015-07-06 21:18:06.806362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b49def75-5720-449c-88d1-ff6fbcc808df' AND "clubhouse_memberships"."organization_id" = '9be2344c-cb8a-4d39-b765-7a2959ceb9ff') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b49def75-5720-449c-88d1-ff6fbcc808df"], ["organization_id", "9be2344c-cb8a-4d39-b765-7a2959ceb9ff"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.809502"], ["updated_at", "2015-07-06 21:18:06.809502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a4275afb-daeb-4b2b-a631-e6f1f4da7fe3' AND "clubhouse_memberships"."organization_id" = '9be2344c-cb8a-4d39-b765-7a2959ceb9ff') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a4275afb-daeb-4b2b-a631-e6f1f4da7fe3"], ["organization_id", "9be2344c-cb8a-4d39-b765-7a2959ceb9ff"], ["created_at", "2015-07-06 21:18:06.812982"], ["updated_at", "2015-07-06 21:18:06.812982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 109"], ["email", "user.109@example.com"], ["password_digest", "$2a$04$5a/TssFD.jvr.D/Rj3HqlOOcd5wkmF4G8H0pr2KnqPjQkUQuaWo3m"], ["created_at", "2015-07-06 21:18:06.818162"], ["updated_at", "2015-07-06 21:18:06.818162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.820112"], ["user_id", "9458f84e-fd74-4258-87e5-ecbf4faa3d95"], ["created_at", "2015-07-06 21:18:06.820761"], ["updated_at", "2015-07-06 21:18:06.820761"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '9be2344c-cb8a-4d39-b765-7a2959ceb9ff') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "9be2344c-cb8a-4d39-b765-7a2959ceb9ff"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.835779"], ["updated_at", "2015-07-06 21:18:06.835779"], ["token", "z5mtp-_wIh_SO5FjuYwZorn6tTnzxc52wWR2kbGDGTQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:06.839488') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c5260008-51f7-4198-822a-8086756201b3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:06.841336"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:06.844249"], ["id", "c5260008-51f7-4198-822a-8086756201b3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9458f84e-fd74-4258-87e5-ecbf4faa3d95"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 110"], ["email", "user.110@example.com"], ["password_digest", "$2a$04$.jZlIjwRNKhwIRquKMQcRucvuYFFlBGlQ4Avdc9tVBsFHY7dccpny"], ["created_at", "2015-07-06 21:18:06.857980"], ["updated_at", "2015-07-06 21:18:06.857980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 111"], ["email", "user.111@example.com"], ["password_digest", "$2a$04$rBgKrcHGArx1cNEZsoINJexpSnnB63wyoghfWFB.ga1t5mZcP4.gW"], ["created_at", "2015-07-06 21:18:06.863416"], ["updated_at", "2015-07-06 21:18:06.863416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.865317"], ["user_id", "28746a4f-f487-4cad-b229-e75d99bf7706"], ["created_at", "2015-07-06 21:18:06.866033"], ["updated_at", "2015-07-06 21:18:06.866033"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.871389"], ["updated_at", "2015-07-06 21:18:06.871389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '28746a4f-f487-4cad-b229-e75d99bf7706' AND "clubhouse_memberships"."organization_id" = '68dab4b8-7b93-4489-9262-6506fe4f572c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "28746a4f-f487-4cad-b229-e75d99bf7706"], ["organization_id", "68dab4b8-7b93-4489-9262-6506fe4f572c"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.875154"], ["updated_at", "2015-07-06 21:18:06.875154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb112169-c2df-48da-b692-1df59e833495' AND "clubhouse_memberships"."organization_id" = '68dab4b8-7b93-4489-9262-6506fe4f572c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eb112169-c2df-48da-b692-1df59e833495"], ["organization_id", "68dab4b8-7b93-4489-9262-6506fe4f572c"], ["created_at", "2015-07-06 21:18:06.878515"], ["updated_at", "2015-07-06 21:18:06.878515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:06.881833') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bd20d2a3-a6ea-45bf-be4c-772c2ec541f3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:06.883458"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:06.884389"], ["id", "bd20d2a3-a6ea-45bf-be4c-772c2ec541f3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "28746a4f-f487-4cad-b229-e75d99bf7706"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '28746a4f-f487-4cad-b229-e75d99bf7706' LIMIT 1 [["organization_id", "68dab4b8-7b93-4489-9262-6506fe4f572c"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "68dab4b8-7b93-4489-9262-6506fe4f572c"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "28746a4f-f487-4cad-b229-e75d99bf7706"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb112169-c2df-48da-b692-1df59e833495"]] Completed 200 OK in 14ms (Views: 3.9ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 112"], ["email", "user.112@example.com"], ["password_digest", "$2a$04$bw.6ij8nR2fULu8uG/sA9efq6/2jBjmNaU2Tu53ly6MIjepfyGMQy"], ["created_at", "2015-07-06 21:18:06.903358"], ["updated_at", "2015-07-06 21:18:06.903358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 113"], ["email", "user.113@example.com"], ["password_digest", "$2a$04$Bp2omEeuPEPk8S0ApqISD.2lvcHOiudXiGVQa9U8JCYJ65RbMT6d2"], ["created_at", "2015-07-06 21:18:06.910748"], ["updated_at", "2015-07-06 21:18:06.910748"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.914376"], ["user_id", "f3aa6da2-7547-42ae-9ee4-4db7a14261dd"], ["created_at", "2015-07-06 21:18:06.915633"], ["updated_at", "2015-07-06 21:18:06.915633"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.921628"], ["updated_at", "2015-07-06 21:18:06.921628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f3aa6da2-7547-42ae-9ee4-4db7a14261dd' AND "clubhouse_memberships"."organization_id" = 'd5d71376-b106-42ad-8751-816be8a1d14f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f3aa6da2-7547-42ae-9ee4-4db7a14261dd"], ["organization_id", "d5d71376-b106-42ad-8751-816be8a1d14f"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.925943"], ["updated_at", "2015-07-06 21:18:06.925943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '613e97b7-a8ec-44e1-879c-9b145543eeec' AND "clubhouse_memberships"."organization_id" = 'd5d71376-b106-42ad-8751-816be8a1d14f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "613e97b7-a8ec-44e1-879c-9b145543eeec"], ["organization_id", "d5d71376-b106-42ad-8751-816be8a1d14f"], ["created_at", "2015-07-06 21:18:06.930304"], ["updated_at", "2015-07-06 21:18:06.930304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 114"], ["email", "user.114@example.com"], ["password_digest", "$2a$04$M1iHBhvS0grvCsF2dwEisOkB4umFIjUXc.Hi3ArqFO2H6d3DXUGHG"], ["created_at", "2015-07-06 21:18:06.941586"], ["updated_at", "2015-07-06 21:18:06.941586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 115"], ["email", "user.115@example.com"], ["password_digest", "$2a$04$GxSteaj8GMROYfZfn3oktek9ZU7IrP8ei7rz1W/kgIVJZerFtjMD6"], ["created_at", "2015-07-06 21:18:06.947709"], ["updated_at", "2015-07-06 21:18:06.947709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.949980"], ["user_id", "c605e4ae-2881-4ab6-87e1-9f7f9fe40afa"], ["created_at", "2015-07-06 21:18:06.950910"], ["updated_at", "2015-07-06 21:18:06.950910"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:06.957037"], ["updated_at", "2015-07-06 21:18:06.957037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c605e4ae-2881-4ab6-87e1-9f7f9fe40afa' AND "clubhouse_memberships"."organization_id" = '622d80f9-5f91-4de5-b4d5-18fe8f63d7bb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c605e4ae-2881-4ab6-87e1-9f7f9fe40afa"], ["organization_id", "622d80f9-5f91-4de5-b4d5-18fe8f63d7bb"], ["admin", "t"], ["created_at", "2015-07-06 21:18:06.963869"], ["updated_at", "2015-07-06 21:18:06.963869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f17cc40-29b2-480d-88e3-a724f4048e04' AND "clubhouse_memberships"."organization_id" = '622d80f9-5f91-4de5-b4d5-18fe8f63d7bb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9f17cc40-29b2-480d-88e3-a724f4048e04"], ["organization_id", "622d80f9-5f91-4de5-b4d5-18fe8f63d7bb"], ["created_at", "2015-07-06 21:18:06.967355"], ["updated_at", "2015-07-06 21:18:06.967355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/b97c4fdb-9f49-4e97-b7a9-13a56493941a" for 127.0.0.1 at 2015-07-06 14:18:06 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"b97c4fdb-9f49-4e97-b7a9-13a56493941a", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:06.971138') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e346ccde-3be8-4bd6-b978-e1c0ca983f2e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:06.973052"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:06.974054"], ["id", "e346ccde-3be8-4bd6-b978-e1c0ca983f2e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "b97c4fdb-9f49-4e97-b7a9-13a56493941a"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c605e4ae-2881-4ab6-87e1-9f7f9fe40afa"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "622d80f9-5f91-4de5-b4d5-18fe8f63d7bb"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c605e4ae-2881-4ab6-87e1-9f7f9fe40afa' LIMIT 1 [["organization_id", "622d80f9-5f91-4de5-b4d5-18fe8f63d7bb"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c605e4ae-2881-4ab6-87e1-9f7f9fe40afa"]] Completed 200 OK in 12ms (Views: 1.9ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 116"], ["email", "user.116@example.com"], ["password_digest", "$2a$04$IEXy00/rSkSmcovW5GbLQe8WF.DELJTJHddGSQPe8QsQwzHMNp9K2"], ["created_at", "2015-07-06 21:18:06.990043"], ["updated_at", "2015-07-06 21:18:06.990043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 117"], ["email", "user.117@example.com"], ["password_digest", "$2a$04$1grcOhi4214DOh0PRaNwKuFs9WUdYDKe2Vu6s/1cXvHyRXqRtH5qi"], ["created_at", "2015-07-06 21:18:06.995718"], ["updated_at", "2015-07-06 21:18:06.995718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:06.997710"], ["user_id", "29ac6cbc-53d1-4638-a6a3-e6776ce81912"], ["created_at", "2015-07-06 21:18:06.998361"], ["updated_at", "2015-07-06 21:18:06.998361"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.002779"], ["updated_at", "2015-07-06 21:18:07.002779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '29ac6cbc-53d1-4638-a6a3-e6776ce81912' AND "clubhouse_memberships"."organization_id" = '2d057808-a777-431e-93fa-74028d1973de') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "29ac6cbc-53d1-4638-a6a3-e6776ce81912"], ["organization_id", "2d057808-a777-431e-93fa-74028d1973de"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.006461"], ["updated_at", "2015-07-06 21:18:07.006461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37899ed5-06a8-4094-b79f-af6af4764b3e' AND "clubhouse_memberships"."organization_id" = '2d057808-a777-431e-93fa-74028d1973de') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "37899ed5-06a8-4094-b79f-af6af4764b3e"], ["organization_id", "2d057808-a777-431e-93fa-74028d1973de"], ["created_at", "2015-07-06 21:18:07.010655"], ["updated_at", "2015-07-06 21:18:07.010655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 118"], ["email", "user.118@example.com"], ["password_digest", "$2a$04$2Ly/DP7AkNd93HN8WPGhuOtsAfuX20/u5nubyNc3EySyjAbVQ9T96"], ["created_at", "2015-07-06 21:18:07.021987"], ["updated_at", "2015-07-06 21:18:07.021987"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 119"], ["email", "user.119@example.com"], ["password_digest", "$2a$04$mUi4VLs9nUTqSQFAv3Fwl.CAdbIFzkuCyw3BYFDr/SfrLSUb4Bm6C"], ["created_at", "2015-07-06 21:18:07.029234"], ["updated_at", "2015-07-06 21:18:07.029234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.031013"], ["user_id", "6bec360b-2096-45c8-af1a-b7d7d22d9d46"], ["created_at", "2015-07-06 21:18:07.031681"], ["updated_at", "2015-07-06 21:18:07.031681"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.036168"], ["updated_at", "2015-07-06 21:18:07.036168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bec360b-2096-45c8-af1a-b7d7d22d9d46' AND "clubhouse_memberships"."organization_id" = 'f48076fa-0aad-4a03-b9f8-6afb28d8950f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6bec360b-2096-45c8-af1a-b7d7d22d9d46"], ["organization_id", "f48076fa-0aad-4a03-b9f8-6afb28d8950f"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.039549"], ["updated_at", "2015-07-06 21:18:07.039549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd2c622ec-ea9e-437a-b51f-c45a0442e10d' AND "clubhouse_memberships"."organization_id" = 'f48076fa-0aad-4a03-b9f8-6afb28d8950f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d2c622ec-ea9e-437a-b51f-c45a0442e10d"], ["organization_id", "f48076fa-0aad-4a03-b9f8-6afb28d8950f"], ["created_at", "2015-07-06 21:18:07.044972"], ["updated_at", "2015-07-06 21:18:07.044972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/352b0486-63b6-4f38-a664-106c66e93857" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"352b0486-63b6-4f38-a664-106c66e93857", "membership"=>{"admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:07.048603') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9c7b1937-fb39-4785-88ca-69e62104a5f8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:07.049991"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:07.050770"], ["id", "9c7b1937-fb39-4785-88ca-69e62104a5f8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "352b0486-63b6-4f38-a664-106c66e93857"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6bec360b-2096-45c8-af1a-b7d7d22d9d46"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f48076fa-0aad-4a03-b9f8-6afb28d8950f"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6bec360b-2096-45c8-af1a-b7d7d22d9d46' LIMIT 1 [["organization_id", "f48076fa-0aad-4a03-b9f8-6afb28d8950f"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d2c622ec-ea9e-437a-b51f-c45a0442e10d"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd2c622ec-ea9e-437a-b51f-c45a0442e10d' AND "clubhouse_memberships"."id" != '352b0486-63b6-4f38-a664-106c66e93857' AND "clubhouse_memberships"."organization_id" = 'f48076fa-0aad-4a03-b9f8-6afb28d8950f') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:18:07.061942"], ["id", "352b0486-63b6-4f38-a664-106c66e93857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.0ms | ActiveRecord: 4.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 120"], ["email", "user.120@example.com"], ["password_digest", "$2a$04$lm0vEruZcIggbQT68KuGPeykWjYEFZMQVtzZbFC7TLRpKTzLBE6zi"], ["created_at", "2015-07-06 21:18:07.073240"], ["updated_at", "2015-07-06 21:18:07.073240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 121"], ["email", "user.121@example.com"], ["password_digest", "$2a$04$IC2oZ6JLDpAQZ/ZIu9dwHuRJmlIiUkTMoRYxvPhZYMvRXba1D2MLq"], ["created_at", "2015-07-06 21:18:07.079037"], ["updated_at", "2015-07-06 21:18:07.079037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.080845"], ["user_id", "81b35015-a460-41d6-832c-6e13433d0b67"], ["created_at", "2015-07-06 21:18:07.081520"], ["updated_at", "2015-07-06 21:18:07.081520"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.086972"], ["updated_at", "2015-07-06 21:18:07.086972"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81b35015-a460-41d6-832c-6e13433d0b67' AND "clubhouse_memberships"."organization_id" = 'c9e6a42d-b80e-48b5-b74b-9f26e5cce996') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "81b35015-a460-41d6-832c-6e13433d0b67"], ["organization_id", "c9e6a42d-b80e-48b5-b74b-9f26e5cce996"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.092889"], ["updated_at", "2015-07-06 21:18:07.092889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b2e4f903-1830-4e17-a124-801b59c5c367' AND "clubhouse_memberships"."organization_id" = 'c9e6a42d-b80e-48b5-b74b-9f26e5cce996') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b2e4f903-1830-4e17-a124-801b59c5c367"], ["organization_id", "c9e6a42d-b80e-48b5-b74b-9f26e5cce996"], ["created_at", "2015-07-06 21:18:07.097976"], ["updated_at", "2015-07-06 21:18:07.097976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 122"], ["email", "user.122@example.com"], ["password_digest", "$2a$04$meaK.wy95RAZ2p/k4F6piOh4ZU9jwTySNb4yMnpiiMXcm3CLeguRS"], ["created_at", "2015-07-06 21:18:07.111172"], ["updated_at", "2015-07-06 21:18:07.111172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.113328"], ["user_id", "d5a798e6-6868-45ed-8abf-4c5ec816cd53"], ["created_at", "2015-07-06 21:18:07.114174"], ["updated_at", "2015-07-06 21:18:07.114174"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.119244"], ["updated_at", "2015-07-06 21:18:07.119244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5a798e6-6868-45ed-8abf-4c5ec816cd53' AND "clubhouse_memberships"."organization_id" = '4627dc33-7133-403c-ab5f-a27829ac3149') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5a798e6-6868-45ed-8abf-4c5ec816cd53"], ["organization_id", "4627dc33-7133-403c-ab5f-a27829ac3149"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.123996"], ["updated_at", "2015-07-06 21:18:07.123996"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = '4627dc33-7133-403c-ab5f-a27829ac3149') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "4627dc33-7133-403c-ab5f-a27829ac3149"], ["created_at", "2015-07-06 21:18:07.132575"], ["updated_at", "2015-07-06 21:18:07.132575"], ["token", "RGEorDbRzx4U5qjPCQrc8wl7kmBj0V53wp5lt96kDYY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 123"], ["email", "user.123@example.com"], ["password_digest", "$2a$04$hjVdRiXP77L0pYSUy.ReI.asHQlIvWpZnO8PmvSYpCwyO5mvkvOkG"], ["created_at", "2015-07-06 21:18:07.151223"], ["updated_at", "2015-07-06 21:18:07.151223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.153681"], ["user_id", "9620d0b1-26f1-4c82-9c8a-d3187a3a36c4"], ["created_at", "2015-07-06 21:18:07.154479"], ["updated_at", "2015-07-06 21:18:07.154479"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.160049"], ["updated_at", "2015-07-06 21:18:07.160049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9620d0b1-26f1-4c82-9c8a-d3187a3a36c4' AND "clubhouse_memberships"."organization_id" = '39330c8a-f856-4be9-8979-994d25fd43cd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9620d0b1-26f1-4c82-9c8a-d3187a3a36c4"], ["organization_id", "39330c8a-f856-4be9-8979-994d25fd43cd"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.163625"], ["updated_at", "2015-07-06 21:18:07.163625"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '39330c8a-f856-4be9-8979-994d25fd43cd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "39330c8a-f856-4be9-8979-994d25fd43cd"], ["created_at", "2015-07-06 21:18:07.169765"], ["updated_at", "2015-07-06 21:18:07.169765"], ["token", "mGUdGK3SlSW3X_ZViIEmtvfeD7nBMh-xmFHxXDXggdE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/abefd4ba-db49-4cc9-9feb-f145df1ad095" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"abefd4ba-db49-4cc9-9feb-f145df1ad095", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:07.173583') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1b3ec922-337b-43b4-815c-8e8d4de243e5"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:07.175584"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:07.178346"], ["id", "1b3ec922-337b-43b4-815c-8e8d4de243e5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "abefd4ba-db49-4cc9-9feb-f145df1ad095"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9620d0b1-26f1-4c82-9c8a-d3187a3a36c4"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39330c8a-f856-4be9-8979-994d25fd43cd"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9620d0b1-26f1-4c82-9c8a-d3187a3a36c4' LIMIT 1 [["organization_id", "39330c8a-f856-4be9-8979-994d25fd43cd"], ["admin", "t"]] Completed 200 OK in 15ms (Views: 2.6ms | ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 124"], ["email", "user.124@example.com"], ["password_digest", "$2a$04$fQeSyl78q/V9uXlIQnDyIu9ERf3mNUFCcTgZ80xrahg/t1dzk9HOm"], ["created_at", "2015-07-06 21:18:07.197624"], ["updated_at", "2015-07-06 21:18:07.197624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.199566"], ["user_id", "a69c2579-59c8-47b0-96ed-94d579a40934"], ["created_at", "2015-07-06 21:18:07.200187"], ["updated_at", "2015-07-06 21:18:07.200187"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.204567"], ["updated_at", "2015-07-06 21:18:07.204567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a69c2579-59c8-47b0-96ed-94d579a40934' AND "clubhouse_memberships"."organization_id" = '3083954f-4835-4c67-9388-c7af115656f2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a69c2579-59c8-47b0-96ed-94d579a40934"], ["organization_id", "3083954f-4835-4c67-9388-c7af115656f2"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.208152"], ["updated_at", "2015-07-06 21:18:07.208152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '3083954f-4835-4c67-9388-c7af115656f2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "3083954f-4835-4c67-9388-c7af115656f2"], ["created_at", "2015-07-06 21:18:07.212519"], ["updated_at", "2015-07-06 21:18:07.212519"], ["token", "z1DKO0woyP8DCIk7LNdR5UNqj5wbk4JptrioiQq1cUM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 125"], ["email", "user.125@example.com"], ["password_digest", "$2a$04$G2W2L.xUlUzoq30QWXkHSuC3AeWvUuCFXQoFRaGYH.f0xMTjy6po2"], ["created_at", "2015-07-06 21:18:07.222828"], ["updated_at", "2015-07-06 21:18:07.222828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.224659"], ["user_id", "3560bf73-ddb0-423d-bdc7-ae99ecabec4b"], ["created_at", "2015-07-06 21:18:07.225489"], ["updated_at", "2015-07-06 21:18:07.225489"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.230516"], ["updated_at", "2015-07-06 21:18:07.230516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3560bf73-ddb0-423d-bdc7-ae99ecabec4b' AND "clubhouse_memberships"."organization_id" = '9f2950ae-a58d-451a-be82-de06924c1f33') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3560bf73-ddb0-423d-bdc7-ae99ecabec4b"], ["organization_id", "9f2950ae-a58d-451a-be82-de06924c1f33"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.234782"], ["updated_at", "2015-07-06 21:18:07.234782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '9f2950ae-a58d-451a-be82-de06924c1f33') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "9f2950ae-a58d-451a-be82-de06924c1f33"], ["created_at", "2015-07-06 21:18:07.239467"], ["updated_at", "2015-07-06 21:18:07.239467"], ["token", "62UeAdlHdC_CYTuhz7g0SCrtyx-iPgVLaVfzOKyjs9A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:07.245485') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e9aa0dc5-2428-4058-a298-04a0c2d142d8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:07.247802"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:07.249003"], ["id", "e9aa0dc5-2428-4058-a298-04a0c2d142d8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3560bf73-ddb0-423d-bdc7-ae99ecabec4b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '3560bf73-ddb0-423d-bdc7-ae99ecabec4b' LIMIT 1 [["organization_id", "9f2950ae-a58d-451a-be82-de06924c1f33"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '9f2950ae-a58d-451a-be82-de06924c1f33') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "9f2950ae-a58d-451a-be82-de06924c1f33"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.260582"], ["updated_at", "2015-07-06 21:18:07.260582"], ["token", "mxV1Dnt99kfUaOkE_HHl1qs-Es68973LTEpat0o4YsA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b7f7f217-21cc-4848-9ec9-a813778c5278) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/929e60e1-1eee-4427-b838-28fb421ce0e5 [ActiveJob] Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "929e60e1-1eee-4427-b838-28fb421ce0e5"]] [ActiveJob] [ActionMailer::DeliveryJob] [b7f7f217-21cc-4848-9ec9-a813778c5278] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/929e60e1-1eee-4427-b838-28fb421ce0e5 [ActiveJob] [ActionMailer::DeliveryJob] [b7f7f217-21cc-4848-9ec9-a813778c5278] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9f2950ae-a58d-451a-be82-de06924c1f33"]] [ActiveJob] [ActionMailer::DeliveryJob] [b7f7f217-21cc-4848-9ec9-a813778c5278] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [b7f7f217-21cc-4848-9ec9-a813778c5278] Clubhouse::Mailer#invitation: processed outbound mail in 209.9ms [ActiveJob] [ActionMailer::DeliveryJob] [b7f7f217-21cc-4848-9ec9-a813778c5278] Sent mail to email@example.com (8.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [b7f7f217-21cc-4848-9ec9-a813778c5278] Date: Mon, 06 Jul 2015 14:18:07 -0700 From: from@example.com To: email@example.com Message-ID: <559af08f7b4cb_109103fd45446020425743@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/mxV1Dnt99kfUaOkE_HHl1qs-Es68973LTEpat0o4YsA?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b7f7f217-21cc-4848-9ec9-a813778c5278] Performed ActionMailer::DeliveryJob from Inline(mailers) in 219.4ms Completed 201 Created in 264ms (Views: 1.0ms | ActiveRecord: 3.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 126"], ["email", "user.126@example.com"], ["password_digest", "$2a$04$1boFz0d5JEU/AbOTWQDmZOiuJ1QBzJooRMz4CEw82KpQ3dt2SR85G"], ["created_at", "2015-07-06 21:18:07.518142"], ["updated_at", "2015-07-06 21:18:07.518142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.519998"], ["user_id", "b0c013bb-9856-4851-a0e0-530b33e05905"], ["created_at", "2015-07-06 21:18:07.520670"], ["updated_at", "2015-07-06 21:18:07.520670"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.526189"], ["updated_at", "2015-07-06 21:18:07.526189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b0c013bb-9856-4851-a0e0-530b33e05905' AND "clubhouse_memberships"."organization_id" = '996218e3-b11e-4dc2-b11c-7a22945c01f4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b0c013bb-9856-4851-a0e0-530b33e05905"], ["organization_id", "996218e3-b11e-4dc2-b11c-7a22945c01f4"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.530520"], ["updated_at", "2015-07-06 21:18:07.530520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '996218e3-b11e-4dc2-b11c-7a22945c01f4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "996218e3-b11e-4dc2-b11c-7a22945c01f4"], ["created_at", "2015-07-06 21:18:07.534938"], ["updated_at", "2015-07-06 21:18:07.534938"], ["token", "bXQigts1Z6I8A3K-0eV8iYvdvU66ul4sW0ZyaoZkV4A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:07.539164') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ccba0c6f-abe8-4bb2-9ab6-efcb97d2f42d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:07.541701"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:07.543199"], ["id", "ccba0c6f-abe8-4bb2-9ab6-efcb97d2f42d"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b0c013bb-9856-4851-a0e0-530b33e05905"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b0c013bb-9856-4851-a0e0-530b33e05905' LIMIT 1 [["organization_id", "996218e3-b11e-4dc2-b11c-7a22945c01f4"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '996218e3-b11e-4dc2-b11c-7a22945c01f4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "996218e3-b11e-4dc2-b11c-7a22945c01f4"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.555726"], ["updated_at", "2015-07-06 21:18:07.555726"], ["token", "n4JokFx_b_EjheAlmAk15IqpdQVxjcsVEl1z-yVbz8w"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 86023268-d825-4484-bc39-b390ee196aa7) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7b5708b2-d702-49fa-8f1c-45f1d1c047da [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "7b5708b2-d702-49fa-8f1c-45f1d1c047da"]] [ActiveJob] [ActionMailer::DeliveryJob] [86023268-d825-4484-bc39-b390ee196aa7] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/7b5708b2-d702-49fa-8f1c-45f1d1c047da [ActiveJob] [ActionMailer::DeliveryJob] [86023268-d825-4484-bc39-b390ee196aa7] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "996218e3-b11e-4dc2-b11c-7a22945c01f4"]] [ActiveJob] [ActionMailer::DeliveryJob] [86023268-d825-4484-bc39-b390ee196aa7] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [86023268-d825-4484-bc39-b390ee196aa7] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [86023268-d825-4484-bc39-b390ee196aa7] Sent mail to email@example.com (1.7ms) [ActiveJob] [ActionMailer::DeliveryJob] [86023268-d825-4484-bc39-b390ee196aa7] Date: Mon, 06 Jul 2015 14:18:07 -0700 From: from@example.com To: email@example.com Message-ID: <559af08f8a645_109103fd45446020425874@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/n4JokFx_b_EjheAlmAk15IqpdQVxjcsVEl1z-yVbz8w?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [86023268-d825-4484-bc39-b390ee196aa7] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.94ms Completed 201 Created in 30ms (Views: 0.7ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 127"], ["email", "user.127@example.com"], ["password_digest", "$2a$04$nyfvwooSgYrYj3D0vsPX0O066muR8Lk8fqfeEF.NmiyHRQTjXDWgm"], ["created_at", "2015-07-06 21:18:07.580299"], ["updated_at", "2015-07-06 21:18:07.580299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.582929"], ["user_id", "d6f66fcd-ec98-44c7-ac5b-9b29d95a5d1b"], ["created_at", "2015-07-06 21:18:07.583797"], ["updated_at", "2015-07-06 21:18:07.583797"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.589202"], ["updated_at", "2015-07-06 21:18:07.589202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6f66fcd-ec98-44c7-ac5b-9b29d95a5d1b' AND "clubhouse_memberships"."organization_id" = 'f43ff7f0-8c64-4791-b91c-5ca7df00d68b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6f66fcd-ec98-44c7-ac5b-9b29d95a5d1b"], ["organization_id", "f43ff7f0-8c64-4791-b91c-5ca7df00d68b"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.593668"], ["updated_at", "2015-07-06 21:18:07.593668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = 'f43ff7f0-8c64-4791-b91c-5ca7df00d68b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "f43ff7f0-8c64-4791-b91c-5ca7df00d68b"], ["created_at", "2015-07-06 21:18:07.598820"], ["updated_at", "2015-07-06 21:18:07.598820"], ["token", "3Dw8ksQHAd_vEZMBaMpfPcfGjiDb9mXCi3ldSRjMoqE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:07.602732') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c840f330-0d03-4166-9176-07b9d1435ec3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:07.604602"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:07.605437"], ["id", "c840f330-0d03-4166-9176-07b9d1435ec3"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d6f66fcd-ec98-44c7-ac5b-9b29d95a5d1b"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd6f66fcd-ec98-44c7-ac5b-9b29d95a5d1b' LIMIT 1 [["organization_id", "f43ff7f0-8c64-4791-b91c-5ca7df00d68b"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'f43ff7f0-8c64-4791-b91c-5ca7df00d68b') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 128"], ["email", "user.128@example.com"], ["password_digest", "$2a$04$fsH/YEOFhBJV.4NWPNLWwe5rmKYpmNP1gpSY7HFic/jq8RevwcAny"], ["created_at", "2015-07-06 21:18:07.625218"], ["updated_at", "2015-07-06 21:18:07.625218"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.629211"], ["user_id", "3405e85b-4b44-4c3a-bac7-24d2bb607d85"], ["created_at", "2015-07-06 21:18:07.630066"], ["updated_at", "2015-07-06 21:18:07.630066"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.635331"], ["updated_at", "2015-07-06 21:18:07.635331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3405e85b-4b44-4c3a-bac7-24d2bb607d85' AND "clubhouse_memberships"."organization_id" = 'c5fb97a8-998f-4861-a60d-c89384a13fb9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3405e85b-4b44-4c3a-bac7-24d2bb607d85"], ["organization_id", "c5fb97a8-998f-4861-a60d-c89384a13fb9"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.639162"], ["updated_at", "2015-07-06 21:18:07.639162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'c5fb97a8-998f-4861-a60d-c89384a13fb9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "c5fb97a8-998f-4861-a60d-c89384a13fb9"], ["created_at", "2015-07-06 21:18:07.643992"], ["updated_at", "2015-07-06 21:18:07.643992"], ["token", "f4ot94LEJ1V6zwW_imX-dD2IhhCG522kSGo75jJidrQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 129"], ["email", "user.129@example.com"], ["password_digest", "$2a$04$TmYwDyz6bKObBRnsIZy6oOv2ATt7DO/Df9/oUOyG1dqnr38V0357y"], ["created_at", "2015-07-06 21:18:07.654065"], ["updated_at", "2015-07-06 21:18:07.654065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.656220"], ["user_id", "45fc12f0-2e72-4867-b021-f145308d4d74"], ["created_at", "2015-07-06 21:18:07.656933"], ["updated_at", "2015-07-06 21:18:07.656933"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.661653"], ["updated_at", "2015-07-06 21:18:07.661653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45fc12f0-2e72-4867-b021-f145308d4d74' AND "clubhouse_memberships"."organization_id" = '78aeaa64-260b-437f-a260-f9d4efd449a9') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45fc12f0-2e72-4867-b021-f145308d4d74"], ["organization_id", "78aeaa64-260b-437f-a260-f9d4efd449a9"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.665383"], ["updated_at", "2015-07-06 21:18:07.665383"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '78aeaa64-260b-437f-a260-f9d4efd449a9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "78aeaa64-260b-437f-a260-f9d4efd449a9"], ["created_at", "2015-07-06 21:18:07.671244"], ["updated_at", "2015-07-06 21:18:07.671244"], ["token", "sUbX-lOq5aiKGFAijOWj0vU_f_PrYdvA92FYd6Z9agM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/78aeaa64-260b-437f-a260-f9d4efd449a9/invitations" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"78aeaa64-260b-437f-a260-f9d4efd449a9", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:07.675621') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4139cb56-7514-48e6-b4dd-8e864660e6c6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:07.678696"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:07.679624"], ["id", "4139cb56-7514-48e6-b4dd-8e864660e6c6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "78aeaa64-260b-437f-a260-f9d4efd449a9"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45fc12f0-2e72-4867-b021-f145308d4d74"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '45fc12f0-2e72-4867-b021-f145308d4d74' LIMIT 1 [["organization_id", "78aeaa64-260b-437f-a260-f9d4efd449a9"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '78aeaa64-260b-437f-a260-f9d4efd449a9') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 130"], ["email", "user.130@example.com"], ["password_digest", "$2a$04$jnfNEtcIRyfH/SRiIlT44.Ai0lzP/np3A2NXLPqeNPgkUzTJjY9r2"], ["created_at", "2015-07-06 21:18:07.696244"], ["updated_at", "2015-07-06 21:18:07.696244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.698423"], ["user_id", "5e8bfce6-10c0-427c-ae7b-11d74afeb41b"], ["created_at", "2015-07-06 21:18:07.699196"], ["updated_at", "2015-07-06 21:18:07.699196"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.703254"], ["updated_at", "2015-07-06 21:18:07.703254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e8bfce6-10c0-427c-ae7b-11d74afeb41b' AND "clubhouse_memberships"."organization_id" = '7c1be691-e7b8-4256-80ed-9ed2986b45fc') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e8bfce6-10c0-427c-ae7b-11d74afeb41b"], ["organization_id", "7c1be691-e7b8-4256-80ed-9ed2986b45fc"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.706209"], ["updated_at", "2015-07-06 21:18:07.706209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '7c1be691-e7b8-4256-80ed-9ed2986b45fc') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "7c1be691-e7b8-4256-80ed-9ed2986b45fc"], ["created_at", "2015-07-06 21:18:07.710491"], ["updated_at", "2015-07-06 21:18:07.710491"], ["token", "7e2zOjdzpfLcJZOTDYDTUoYcTtEMloekYJEEX4A1rUc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7c1be691-e7b8-4256-80ed-9ed2986b45fc/invitations" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"7c1be691-e7b8-4256-80ed-9ed2986b45fc", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:07.713901') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "59171bdf-1d88-4196-a459-d80ea5013c92"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:07.715429"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:07.716187"], ["id", "59171bdf-1d88-4196-a459-d80ea5013c92"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7c1be691-e7b8-4256-80ed-9ed2986b45fc"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e8bfce6-10c0-427c-ae7b-11d74afeb41b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '5e8bfce6-10c0-427c-ae7b-11d74afeb41b' LIMIT 1 [["organization_id", "7c1be691-e7b8-4256-80ed-9ed2986b45fc"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '7c1be691-e7b8-4256-80ed-9ed2986b45fc') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "7c1be691-e7b8-4256-80ed-9ed2986b45fc"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.724307"], ["updated_at", "2015-07-06 21:18:07.724307"], ["token", "ef_qhCHDIkpm4rXzC5M8yyZXlqGUrAgHTwN_bjfPrlI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 27f89c8d-72b7-4a7b-a962-934d729b039b) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bd8d16d2-6f0a-4c44-a20e-1329976f02ab [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "bd8d16d2-6f0a-4c44-a20e-1329976f02ab"]] [ActiveJob] [ActionMailer::DeliveryJob] [27f89c8d-72b7-4a7b-a962-934d729b039b] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/bd8d16d2-6f0a-4c44-a20e-1329976f02ab [ActiveJob] [ActionMailer::DeliveryJob] [27f89c8d-72b7-4a7b-a962-934d729b039b] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c1be691-e7b8-4256-80ed-9ed2986b45fc"]] [ActiveJob] [ActionMailer::DeliveryJob] [27f89c8d-72b7-4a7b-a962-934d729b039b] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [27f89c8d-72b7-4a7b-a962-934d729b039b] Clubhouse::Mailer#invitation: processed outbound mail in 2.9ms [ActiveJob] [ActionMailer::DeliveryJob] [27f89c8d-72b7-4a7b-a962-934d729b039b] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [27f89c8d-72b7-4a7b-a962-934d729b039b] Date: Mon, 06 Jul 2015 14:18:07 -0700 From: from@example.com To: email@example.com Message-ID: <559af08fb2f9d_109103fd45446020425968@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/ef_qhCHDIkpm4rXzC5M8yyZXlqGUrAgHTwN_bjfPrlI?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [27f89c8d-72b7-4a7b-a962-934d729b039b] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.31ms Completed 201 Created in 21ms (Views: 0.7ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 131"], ["email", "user.131@example.com"], ["password_digest", "$2a$04$p3ZjsO2NXEt3ek7lNj3KTuLHf8gVeYfJDVLkxq4rjSkFSB9.PR9TS"], ["created_at", "2015-07-06 21:18:07.743471"], ["updated_at", "2015-07-06 21:18:07.743471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.745381"], ["user_id", "6ac758ed-a1c6-4adf-8307-def4afffd7d1"], ["created_at", "2015-07-06 21:18:07.746135"], ["updated_at", "2015-07-06 21:18:07.746135"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.753035"], ["updated_at", "2015-07-06 21:18:07.753035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6ac758ed-a1c6-4adf-8307-def4afffd7d1' AND "clubhouse_memberships"."organization_id" = '57bd6ade-1a50-454c-8bad-250816b51bf5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6ac758ed-a1c6-4adf-8307-def4afffd7d1"], ["organization_id", "57bd6ade-1a50-454c-8bad-250816b51bf5"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.757210"], ["updated_at", "2015-07-06 21:18:07.757210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = '57bd6ade-1a50-454c-8bad-250816b51bf5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "57bd6ade-1a50-454c-8bad-250816b51bf5"], ["created_at", "2015-07-06 21:18:07.761497"], ["updated_at", "2015-07-06 21:18:07.761497"], ["token", "N8rN4gDFRsc1fIpIgnriQEyj7uYsuEzGPMrRo1yfmbA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/57bd6ade-1a50-454c-8bad-250816b51bf5/invitations" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"57bd6ade-1a50-454c-8bad-250816b51bf5", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:07.764939') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bed1972a-ac5c-407f-bd75-7c9f56ebef01"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:07.766365"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:07.767156"], ["id", "bed1972a-ac5c-407f-bd75-7c9f56ebef01"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "57bd6ade-1a50-454c-8bad-250816b51bf5"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6ac758ed-a1c6-4adf-8307-def4afffd7d1"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6ac758ed-a1c6-4adf-8307-def4afffd7d1' LIMIT 1 [["organization_id", "57bd6ade-1a50-454c-8bad-250816b51bf5"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '57bd6ade-1a50-454c-8bad-250816b51bf5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "57bd6ade-1a50-454c-8bad-250816b51bf5"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.781977"], ["updated_at", "2015-07-06 21:18:07.781977"], ["token", "SPYOrTAUMUdnsDNZBXy8qJW0wiyBad4zTDDchmT1jTY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: bd86156e-9855-4505-a34b-8a57b81a5e87) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/cbfa0849-1f42-4766-8769-85c89d67ccd4 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "cbfa0849-1f42-4766-8769-85c89d67ccd4"]] [ActiveJob] [ActionMailer::DeliveryJob] [bd86156e-9855-4505-a34b-8a57b81a5e87] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/cbfa0849-1f42-4766-8769-85c89d67ccd4 [ActiveJob] [ActionMailer::DeliveryJob] [bd86156e-9855-4505-a34b-8a57b81a5e87] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "57bd6ade-1a50-454c-8bad-250816b51bf5"]] [ActiveJob] [ActionMailer::DeliveryJob] [bd86156e-9855-4505-a34b-8a57b81a5e87] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.3ms) [ActiveJob] [ActionMailer::DeliveryJob] [bd86156e-9855-4505-a34b-8a57b81a5e87] Clubhouse::Mailer#invitation: processed outbound mail in 3.1ms [ActiveJob] [ActionMailer::DeliveryJob] [bd86156e-9855-4505-a34b-8a57b81a5e87] Sent mail to email@example.com (2.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [bd86156e-9855-4505-a34b-8a57b81a5e87] Date: Mon, 06 Jul 2015 14:18:07 -0700 From: from@example.com To: email@example.com Message-ID: <559af08fc215e_109103fd45446020426067@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/SPYOrTAUMUdnsDNZBXy8qJW0wiyBad4zTDDchmT1jTY?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [bd86156e-9855-4505-a34b-8a57b81a5e87] Performed ActionMailer::DeliveryJob from Inline(mailers) in 6.22ms Completed 201 Created in 33ms (Views: 0.8ms | ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 132"], ["email", "user.132@example.com"], ["password_digest", "$2a$04$b1YdTgxbymLretXaf9.2g.0AzdBtU8mUj4iF58bUI30WMZQdXOnQK"], ["created_at", "2015-07-06 21:18:07.804701"], ["updated_at", "2015-07-06 21:18:07.804701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.806420"], ["user_id", "835bfedd-8ba0-4d19-bcd4-06637df20669"], ["created_at", "2015-07-06 21:18:07.807103"], ["updated_at", "2015-07-06 21:18:07.807103"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.811374"], ["updated_at", "2015-07-06 21:18:07.811374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '835bfedd-8ba0-4d19-bcd4-06637df20669' AND "clubhouse_memberships"."organization_id" = 'c6af9e17-ce48-4209-af50-034190c9d9ea') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "835bfedd-8ba0-4d19-bcd4-06637df20669"], ["organization_id", "c6af9e17-ce48-4209-af50-034190c9d9ea"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.816361"], ["updated_at", "2015-07-06 21:18:07.816361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = 'c6af9e17-ce48-4209-af50-034190c9d9ea') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "c6af9e17-ce48-4209-af50-034190c9d9ea"], ["created_at", "2015-07-06 21:18:07.823226"], ["updated_at", "2015-07-06 21:18:07.823226"], ["token", "dzYCpZMRyJB2tRP_EkiEA8mQYnM5D39Aqf_zUnT-H0I"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/de287bde-803e-4254-94f9-8ad498833c88" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"de287bde-803e-4254-94f9-8ad498833c88", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:07.826475') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3752f2d1-6ecc-410f-ac4c-3b4afcff40fe"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:07.828088"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:07.828857"], ["id", "3752f2d1-6ecc-410f-ac4c-3b4afcff40fe"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "de287bde-803e-4254-94f9-8ad498833c88"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "835bfedd-8ba0-4d19-bcd4-06637df20669"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c6af9e17-ce48-4209-af50-034190c9d9ea"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '835bfedd-8ba0-4d19-bcd4-06637df20669' LIMIT 1 [["organization_id", "c6af9e17-ce48-4209-af50-034190c9d9ea"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "de287bde-803e-4254-94f9-8ad498833c88"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 133"], ["email", "user.133@example.com"], ["password_digest", "$2a$04$h5oJP0gXrakHdLSXxdYx0ei1ZJr17f9ywntrA0WJrViGPBorxhYAm"], ["created_at", "2015-07-06 21:18:07.841335"], ["updated_at", "2015-07-06 21:18:07.841335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.844002"], ["user_id", "4a107a5d-5176-4c67-91bc-0ea52be5363e"], ["created_at", "2015-07-06 21:18:07.844733"], ["updated_at", "2015-07-06 21:18:07.844733"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.849597"], ["updated_at", "2015-07-06 21:18:07.849597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a107a5d-5176-4c67-91bc-0ea52be5363e' AND "clubhouse_memberships"."organization_id" = '61f9b8fe-f56d-4d21-8805-5c35fc59dc84') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a107a5d-5176-4c67-91bc-0ea52be5363e"], ["organization_id", "61f9b8fe-f56d-4d21-8805-5c35fc59dc84"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.854459"], ["updated_at", "2015-07-06 21:18:07.854459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '61f9b8fe-f56d-4d21-8805-5c35fc59dc84') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "61f9b8fe-f56d-4d21-8805-5c35fc59dc84"], ["created_at", "2015-07-06 21:18:07.860855"], ["updated_at", "2015-07-06 21:18:07.860855"], ["token", "r5WBdFbMTtErlSjakqjc5vPLMD9vd08BIVcGPjgYEM0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 134"], ["email", "user.134@example.com"], ["password_digest", "$2a$04$yL5J8ALyN4Mskk0cXAFZuOAOY3v/s89DhuLls.A/orXCByotTCZHK"], ["created_at", "2015-07-06 21:18:07.874607"], ["updated_at", "2015-07-06 21:18:07.874607"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.876789"], ["user_id", "d49077f6-f208-4dea-8ce3-b06f2f8edb57"], ["created_at", "2015-07-06 21:18:07.878223"], ["updated_at", "2015-07-06 21:18:07.878223"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.882719"], ["updated_at", "2015-07-06 21:18:07.882719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd49077f6-f208-4dea-8ce3-b06f2f8edb57' AND "clubhouse_memberships"."organization_id" = 'ef75b676-f374-40c1-99c8-f87371f60597') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d49077f6-f208-4dea-8ce3-b06f2f8edb57"], ["organization_id", "ef75b676-f374-40c1-99c8-f87371f60597"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.886056"], ["updated_at", "2015-07-06 21:18:07.886056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'ef75b676-f374-40c1-99c8-f87371f60597') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "ef75b676-f374-40c1-99c8-f87371f60597"], ["created_at", "2015-07-06 21:18:07.890281"], ["updated_at", "2015-07-06 21:18:07.890281"], ["token", "nRQ3GF8FhZ3PH_TOVTteCbWr6Mp-u9kjueWOAXCCaf4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 135"], ["email", "user.135@example.com"], ["password_digest", "$2a$04$1XVmUfM5vWyfvLC07cWsyuNJ5aXxecNcFnwBMnVs7rubpS6SvXkZe"], ["created_at", "2015-07-06 21:18:07.896262"], ["updated_at", "2015-07-06 21:18:07.896262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.900287"], ["updated_at", "2015-07-06 21:18:07.900287"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f168012a-67a8-49f9-975e-a2f4dbe9bc32' AND "clubhouse_memberships"."organization_id" = 'd6aaae0e-8f8c-4088-8f73-ad0b27cd7df5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f168012a-67a8-49f9-975e-a2f4dbe9bc32"], ["organization_id", "d6aaae0e-8f8c-4088-8f73-ad0b27cd7df5"], ["created_at", "2015-07-06 21:18:07.905168"], ["updated_at", "2015-07-06 21:18:07.905168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 136"], ["email", "user.136@example.com"], ["password_digest", "$2a$04$rA4AsYx//KOLF2xzfasAOeVR3k2Yn92Gr953fm20Kfe6m8fZHJhAC"], ["created_at", "2015-07-06 21:18:07.918186"], ["updated_at", "2015-07-06 21:18:07.918186"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.920795"], ["user_id", "a287529e-369a-48b7-ac91-a2f5440b7fa5"], ["created_at", "2015-07-06 21:18:07.921461"], ["updated_at", "2015-07-06 21:18:07.921461"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.926111"], ["updated_at", "2015-07-06 21:18:07.926111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a287529e-369a-48b7-ac91-a2f5440b7fa5' AND "clubhouse_memberships"."organization_id" = 'ebca5432-3812-4154-9715-feb143dc4f09') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a287529e-369a-48b7-ac91-a2f5440b7fa5"], ["organization_id", "ebca5432-3812-4154-9715-feb143dc4f09"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.929376"], ["updated_at", "2015-07-06 21:18:07.929376"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = 'ebca5432-3812-4154-9715-feb143dc4f09') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "ebca5432-3812-4154-9715-feb143dc4f09"], ["created_at", "2015-07-06 21:18:07.934611"], ["updated_at", "2015-07-06 21:18:07.934611"], ["token", "A_ZAGE2a4fbcPtrSvI0hFykrsUJQYRE2qCsreAPxZnA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 137"], ["email", "user.137@example.com"], ["password_digest", "$2a$04$5uuY.a1U4QRR7hQ9.W0o9OKa8S531MMshN4/EBXylR8XGegJAkYJW"], ["created_at", "2015-07-06 21:18:07.941581"], ["updated_at", "2015-07-06 21:18:07.941581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.946314"], ["updated_at", "2015-07-06 21:18:07.946314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c025e388-679c-42a4-88f8-20d680058e08' AND "clubhouse_memberships"."organization_id" = 'daef2902-f107-4516-872b-9235ee1e363a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c025e388-679c-42a4-88f8-20d680058e08"], ["organization_id", "daef2902-f107-4516-872b-9235ee1e363a"], ["created_at", "2015-07-06 21:18:07.949636"], ["updated_at", "2015-07-06 21:18:07.949636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:07.953595') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "95b55701-627c-4bf6-b4be-2197c5521456"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:07.955389"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:07.956376"], ["id", "95b55701-627c-4bf6-b4be-2197c5521456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a287529e-369a-48b7-ac91-a2f5440b7fa5"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a287529e-369a-48b7-ac91-a2f5440b7fa5' LIMIT 1 [["organization_id", "ebca5432-3812-4154-9715-feb143dc4f09"], ["admin", "t"]] Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "ebca5432-3812-4154-9715-feb143dc4f09"]] Completed 200 OK in 16ms (Views: 4.5ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 138"], ["email", "user.138@example.com"], ["password_digest", "$2a$04$mm102vk65ewjOAeObdUNG.yDflPSoDAKDIXQE/T/e6z.tvup7N0j6"], ["created_at", "2015-07-06 21:18:07.977830"], ["updated_at", "2015-07-06 21:18:07.977830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:07.979672"], ["user_id", "d52413f1-9d4c-4333-90c1-5bca63955c8b"], ["created_at", "2015-07-06 21:18:07.980312"], ["updated_at", "2015-07-06 21:18:07.980312"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:07.986241"], ["updated_at", "2015-07-06 21:18:07.986241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd52413f1-9d4c-4333-90c1-5bca63955c8b' AND "clubhouse_memberships"."organization_id" = '79cdf195-a4c9-4736-8489-c8da5135c965') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d52413f1-9d4c-4333-90c1-5bca63955c8b"], ["organization_id", "79cdf195-a4c9-4736-8489-c8da5135c965"], ["admin", "t"], ["created_at", "2015-07-06 21:18:07.990626"], ["updated_at", "2015-07-06 21:18:07.990626"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '79cdf195-a4c9-4736-8489-c8da5135c965') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "79cdf195-a4c9-4736-8489-c8da5135c965"], ["created_at", "2015-07-06 21:18:07.997171"], ["updated_at", "2015-07-06 21:18:07.997171"], ["token", "uIs9awzjirXdso7qd7VnQY7mUG7i9uS3mKiS3I2_IRw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-07-06 14:18:07 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 139"], ["email", "user.139@example.com"], ["password_digest", "$2a$04$PmOcdEZtFgOTf7copMpzZ.nAONLviGY3mOXDvo6IH0xJ9sCYLHnPi"], ["created_at", "2015-07-06 21:18:08.008136"], ["updated_at", "2015-07-06 21:18:08.008136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:08.010345"], ["user_id", "224bae1e-e91a-4752-b26f-eb5df2aa98fb"], ["created_at", "2015-07-06 21:18:08.011053"], ["updated_at", "2015-07-06 21:18:08.011053"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.016551"], ["updated_at", "2015-07-06 21:18:08.016551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '224bae1e-e91a-4752-b26f-eb5df2aa98fb' AND "clubhouse_memberships"."organization_id" = '0b12d1f3-ad02-4244-b58b-f53fbe0f1470') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "224bae1e-e91a-4752-b26f-eb5df2aa98fb"], ["organization_id", "0b12d1f3-ad02-4244-b58b-f53fbe0f1470"], ["admin", "t"], ["created_at", "2015-07-06 21:18:08.020522"], ["updated_at", "2015-07-06 21:18:08.020522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '0b12d1f3-ad02-4244-b58b-f53fbe0f1470') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "0b12d1f3-ad02-4244-b58b-f53fbe0f1470"], ["created_at", "2015-07-06 21:18:08.026025"], ["updated_at", "2015-07-06 21:18:08.026025"], ["token", "TLpYqGGm8Vvaj88PuQl27KRG0G1rMRENxsA5WXMRPgk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/2f9e6ab0-698c-4628-9e53-6a9e15c7a738" for 127.0.0.1 at 2015-07-06 14:18:08 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"2f9e6ab0-698c-4628-9e53-6a9e15c7a738", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:08.029320') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b27bd897-8d4d-4fcb-92ea-75c781baab9a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:08.031374"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:08.032880"], ["id", "b27bd897-8d4d-4fcb-92ea-75c781baab9a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2f9e6ab0-698c-4628-9e53-6a9e15c7a738"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "224bae1e-e91a-4752-b26f-eb5df2aa98fb"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0b12d1f3-ad02-4244-b58b-f53fbe0f1470"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '224bae1e-e91a-4752-b26f-eb5df2aa98fb' LIMIT 1 [["organization_id", "0b12d1f3-ad02-4244-b58b-f53fbe0f1470"], ["admin", "t"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."id" != '2f9e6ab0-698c-4628-9e53-6a9e15c7a738' AND "clubhouse_invitations"."organization_id" = '0b12d1f3-ad02-4244-b58b-f53fbe0f1470') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:18:08.043601"], ["id", "2f9e6ab0-698c-4628-9e53-6a9e15c7a738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.9ms | ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 140"], ["email", "user.140@example.com"], ["password_digest", "$2a$04$QPjv2zInAyqPl0F7nj2KJe4ovsmOmwRz7lbYA8b6umxb5RoqN0SZ."], ["created_at", "2015-07-06 21:18:08.054888"], ["updated_at", "2015-07-06 21:18:08.054888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:08.057245"], ["user_id", "9d58dd75-5627-4e86-8daf-c1a47c0cc523"], ["created_at", "2015-07-06 21:18:08.058504"], ["updated_at", "2015-07-06 21:18:08.058504"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.063552"], ["updated_at", "2015-07-06 21:18:08.063552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d58dd75-5627-4e86-8daf-c1a47c0cc523' AND "clubhouse_memberships"."organization_id" = '8704471c-08e6-4795-8af4-cdacac50d39c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d58dd75-5627-4e86-8daf-c1a47c0cc523"], ["organization_id", "8704471c-08e6-4795-8af4-cdacac50d39c"], ["admin", "t"], ["created_at", "2015-07-06 21:18:08.066628"], ["updated_at", "2015-07-06 21:18:08.066628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '8704471c-08e6-4795-8af4-cdacac50d39c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "8704471c-08e6-4795-8af4-cdacac50d39c"], ["created_at", "2015-07-06 21:18:08.070956"], ["updated_at", "2015-07-06 21:18:08.070956"], ["token", "o5Q2mfoyq5dVnfloO2Gc_pqD5RjnBmZ9OXpcAVSONas"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 141"], ["email", "user.141@example.com"], ["password_digest", "$2a$04$fVqDDLjaIKUbFsBJlOXeWe472hs96U3hpchSycFBmQkM.d.s6O3VC"], ["created_at", "2015-07-06 21:18:08.076956"], ["updated_at", "2015-07-06 21:18:08.076956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.081216"], ["updated_at", "2015-07-06 21:18:08.081216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f7ce649-e1c5-4032-8418-6f3b6fb8a3a1' AND "clubhouse_memberships"."organization_id" = 'dd5a1cc7-923d-4e45-959e-288cb6937a28') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0f7ce649-e1c5-4032-8418-6f3b6fb8a3a1"], ["organization_id", "dd5a1cc7-923d-4e45-959e-288cb6937a28"], ["created_at", "2015-07-06 21:18:08.084895"], ["updated_at", "2015-07-06 21:18:08.084895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-07-06 14:18:08 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 142"], ["email", "user.142@example.com"], ["password_digest", "$2a$04$guJPJeXZfmGm7L7DIJ9Aiu2G9FrKhDZG/Ba8Rz/OGjtNNp7.m1HAu"], ["created_at", "2015-07-06 21:18:08.095497"], ["updated_at", "2015-07-06 21:18:08.095497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:08.097830"], ["user_id", "02e0b4ef-e892-4f32-bb16-c615937bb346"], ["created_at", "2015-07-06 21:18:08.099307"], ["updated_at", "2015-07-06 21:18:08.099307"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.106356"], ["updated_at", "2015-07-06 21:18:08.106356"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02e0b4ef-e892-4f32-bb16-c615937bb346' AND "clubhouse_memberships"."organization_id" = 'e60f3def-3654-4c81-b9f7-ea5b0290d299') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "02e0b4ef-e892-4f32-bb16-c615937bb346"], ["organization_id", "e60f3def-3654-4c81-b9f7-ea5b0290d299"], ["admin", "t"], ["created_at", "2015-07-06 21:18:08.111285"], ["updated_at", "2015-07-06 21:18:08.111285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = 'e60f3def-3654-4c81-b9f7-ea5b0290d299') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "e60f3def-3654-4c81-b9f7-ea5b0290d299"], ["created_at", "2015-07-06 21:18:08.117016"], ["updated_at", "2015-07-06 21:18:08.117016"], ["token", "0zYb1aGoRuKmnlaOystr7L1lAVeZmG0GsiPPztPM8k8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 143"], ["email", "user.143@example.com"], ["password_digest", "$2a$04$HNJihkmCdRdmBU74D55fZ.R48x95SztfgKMrVpuULQ9bG0RwnHqZi"], ["created_at", "2015-07-06 21:18:08.124356"], ["updated_at", "2015-07-06 21:18:08.124356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.128718"], ["updated_at", "2015-07-06 21:18:08.128718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e07416f-dccd-4ab5-a069-88bf82f683cb' AND "clubhouse_memberships"."organization_id" = 'ea1e2f4e-fa42-44b6-a77e-bf6f3f6de971') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e07416f-dccd-4ab5-a069-88bf82f683cb"], ["organization_id", "ea1e2f4e-fa42-44b6-a77e-bf6f3f6de971"], ["created_at", "2015-07-06 21:18:08.131879"], ["updated_at", "2015-07-06 21:18:08.131879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/e60f3def-3654-4c81-b9f7-ea5b0290d299/invitations" for 127.0.0.1 at 2015-07-06 14:18:08 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"e60f3def-3654-4c81-b9f7-ea5b0290d299", "invitation"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:08.135198') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d725aa28-19f8-4292-91f3-9dbb308fff87"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:08.137405"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:08.138304"], ["id", "d725aa28-19f8-4292-91f3-9dbb308fff87"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e60f3def-3654-4c81-b9f7-ea5b0290d299"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "02e0b4ef-e892-4f32-bb16-c615937bb346"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '02e0b4ef-e892-4f32-bb16-c615937bb346' LIMIT 1 [["organization_id", "e60f3def-3654-4c81-b9f7-ea5b0290d299"], ["admin", "t"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "e60f3def-3654-4c81-b9f7-ea5b0290d299"]] Completed 200 OK in 13ms (Views: 2.0ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.179397"], ["updated_at", "2015-07-06 21:18:08.179397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.198590"], ["updated_at", "2015-07-06 21:18:08.198590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.223760"], ["updated_at", "2015-07-06 21:18:08.223760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.231606"], ["updated_at", "2015-07-06 21:18:08.231606"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "483f302e-4e8a-479b-849d-3030f92b7381"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.241709"], ["updated_at", "2015-07-06 21:18:08.241709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.251230"], ["updated_at", "2015-07-06 21:18:08.251230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'f2a39f86-4a52-4ffc-a563-2e2158408dbe') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "f2a39f86-4a52-4ffc-a563-2e2158408dbe"], ["created_at", "2015-07-06 21:18:08.255737"], ["updated_at", "2015-07-06 21:18:08.255737"], ["token", "V7HxTYZQI68x7tuEwf5VSkFSOyKyFkPxSO0RveaSTgI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.269497"], ["updated_at", "2015-07-06 21:18:08.269497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '1849cba9-fdb9-48c2-8bcc-9ebd979924b9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "1849cba9-fdb9-48c2-8bcc-9ebd979924b9"], ["created_at", "2015-07-06 21:18:08.275435"], ["updated_at", "2015-07-06 21:18:08.275435"], ["token", "ASLCePOkKD_cR2vaiNaKJBp2fPsGCa_fn7qBwTBfNVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1849cba9-fdb9-48c2-8bcc-9ebd979924b9"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '1849cba9-fdb9-48c2-8bcc-9ebd979924b9') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1849cba9-fdb9-48c2-8bcc-9ebd979924c0"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '1849cba9-fdb9-48c2-8bcc-9ebd979924c0') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.307543"], ["updated_at", "2015-07-06 21:18:08.307543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'e04e0bce-2a0a-4fd7-99b6-6cf2ef276230') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "e04e0bce-2a0a-4fd7-99b6-6cf2ef276230"], ["created_at", "2015-07-06 21:18:08.314856"], ["updated_at", "2015-07-06 21:18:08.314856"], ["token", "XuDGsXm34-rJjV_zv6QPa9ezq9duFNTZilEIIHy0JTI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.8ms Sent mail to john@example.com (2.1ms) Date: Mon, 06 Jul 2015 14:18:08 -0700 From: from@example.com To: john@example.com Message-ID: <559af0904e1da_109103fd45446020426152@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/XuDGsXm34-rJjV_zv6QPa9ezq9duFNTZilEIIHy0JTI?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.327249"], ["updated_at", "2015-07-06 21:18:08.327249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '120e0164-bd78-4554-bec9-76fb368fc16f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "120e0164-bd78-4554-bec9-76fb368fc16f"], ["created_at", "2015-07-06 21:18:08.332089"], ["updated_at", "2015-07-06 21:18:08.332089"], ["token", "gPXlVZnP47TA9jID2XDZLG4ST4t1U-4VhDfSuL5ER04"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.8ms) Date: Mon, 06 Jul 2015 14:18:08 -0700 From: from@example.com To: john@example.com Message-ID: <559af09051ee1_109103fd454460204262bd@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/gPXlVZnP47TA9jID2XDZLG4ST4t1U-4VhDfSuL5ER04?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.342311"], ["updated_at", "2015-07-06 21:18:08.342311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '3d2d075f-4e7d-4260-9ab5-8b62000e4b86') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "3d2d075f-4e7d-4260-9ab5-8b62000e4b86"], ["created_at", "2015-07-06 21:18:08.347968"], ["updated_at", "2015-07-06 21:18:08.347968"], ["token", "5koqI7HJ14aez18JXINygiUNnJ95HjAW51e1_69CQJk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.8ms) Date: Mon, 06 Jul 2015 14:18:08 -0700 From: from@example.com To: john@example.com Message-ID: <559af09055f99_109103fd45446020426368@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/5koqI7HJ14aez18JXINygiUNnJ95HjAW51e1_69CQJk?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:08.358715"], ["updated_at", "2015-07-06 21:18:08.358715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '98b4fe30-31c0-42e7-a6c1-a5c0dd349c02') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "98b4fe30-31c0-42e7-a6c1-a5c0dd349c02"], ["created_at", "2015-07-06 21:18:08.363443"], ["updated_at", "2015-07-06 21:18:08.363443"], ["token", "xqezTuEWEqMvH4b9dg_dJzMPrcb6W37Q8IddsZzIE-E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms Sent mail to john@example.com (2.3ms) Date: Mon, 06 Jul 2015 14:18:08 -0700 From: from@example.com To: john@example.com Message-ID: <559af0905a169_109103fd45446020426435@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/xqezTuEWEqMvH4b9dg_dJzMPrcb6W37Q8IddsZzIE-E?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$py1U6fy0eWf.2pD.aRNOn..fbVf/xZcqKq4tOGB0npaB62idU4W9u"], ["created_at", "2015-07-06 21:18:16.753951"], ["updated_at", "2015-07-06 21:18:16.753951"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:16.789389"], ["user_id", "2335a4c1-a2e1-446b-b81d-4eed6d90d373"], ["created_at", "2015-07-06 21:18:16.798294"], ["updated_at", "2015-07-06 21:18:16.798294"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:16.807963"], ["updated_at", "2015-07-06 21:18:16.807963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2335a4c1-a2e1-446b-b81d-4eed6d90d373' AND "clubhouse_memberships"."organization_id" = '91e823af-5d66-4b05-a49c-81884c676304') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2335a4c1-a2e1-446b-b81d-4eed6d90d373"], ["organization_id", "91e823af-5d66-4b05-a49c-81884c676304"], ["admin", "t"], ["created_at", "2015-07-06 21:18:16.818151"], ["updated_at", "2015-07-06 21:18:16.818151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:18:16 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$rePdHLuevaM1c6I/.Pn/2OZg1ILxGLw/8ziz63u0LTlABRVmxgpXa"], ["created_at", "2015-07-06 21:18:16.852757"], ["updated_at", "2015-07-06 21:18:16.852757"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:16.855890"], ["user_id", "8cb26cb8-b10a-47d3-88dc-a11848ff32d7"], ["created_at", "2015-07-06 21:18:16.856932"], ["updated_at", "2015-07-06 21:18:16.856932"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:16.862326"], ["updated_at", "2015-07-06 21:18:16.862326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8cb26cb8-b10a-47d3-88dc-a11848ff32d7' AND "clubhouse_memberships"."organization_id" = '872cc336-0371-470b-8902-9dbae2f0b1d8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8cb26cb8-b10a-47d3-88dc-a11848ff32d7"], ["organization_id", "872cc336-0371-470b-8902-9dbae2f0b1d8"], ["admin", "t"], ["created_at", "2015-07-06 21:18:16.865876"], ["updated_at", "2015-07-06 21:18:16.865876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-2" for 127.0.0.1 at 2015-07-06 14:18:16 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:16.869107') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9113ea86-2184-475d-b80f-23477bdc0680"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:16.878310"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:16.879843"], ["id", "9113ea86-2184-475d-b80f-23477bdc0680"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-2"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8cb26cb8-b10a-47d3-88dc-a11848ff32d7"]] Completed 200 OK in 29ms (ActiveRecord: 1.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$PySyHtUrqYKJPpTvpm9pyufl736IOpcj1c0QZomMVblAShgy/MvhS"], ["created_at", "2015-07-06 21:18:16.914581"], ["updated_at", "2015-07-06 21:18:16.914581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:16.916956"], ["user_id", "cf870507-c67e-4f35-bd0c-0fb53cdaab71"], ["created_at", "2015-07-06 21:18:16.917793"], ["updated_at", "2015-07-06 21:18:16.917793"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:16.924095"], ["updated_at", "2015-07-06 21:18:16.924095"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cf870507-c67e-4f35-bd0c-0fb53cdaab71' AND "clubhouse_memberships"."organization_id" = '65f081ec-d925-4a82-9492-9ffde9a29af1') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cf870507-c67e-4f35-bd0c-0fb53cdaab71"], ["organization_id", "65f081ec-d925-4a82-9492-9ffde9a29af1"], ["admin", "t"], ["created_at", "2015-07-06 21:18:16.929469"], ["updated_at", "2015-07-06 21:18:16.929469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:18:16 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:16.940699') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4a1e74f4-c6ff-4b31-937e-859f68f6d698"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:16.948742"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:16.952488"], ["id", "4a1e74f4-c6ff-4b31-937e-859f68f6d698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 17ms (ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$e4Jw7yhGYpzddoPY4DZ/uu77PgdJTpFcRORZic1gNiuWzgmjGE9Oy"], ["created_at", "2015-07-06 21:18:16.966529"], ["updated_at", "2015-07-06 21:18:16.966529"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:16.968808"], ["user_id", "f0e50dcc-7d0d-4cd7-96c9-afe9c27faaf0"], ["created_at", "2015-07-06 21:18:16.970098"], ["updated_at", "2015-07-06 21:18:16.970098"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:16.975760"], ["updated_at", "2015-07-06 21:18:16.975760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f0e50dcc-7d0d-4cd7-96c9-afe9c27faaf0' AND "clubhouse_memberships"."organization_id" = '0282f238-92e3-4826-86dc-5541f19b3104') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f0e50dcc-7d0d-4cd7-96c9-afe9c27faaf0"], ["organization_id", "0282f238-92e3-4826-86dc-5541f19b3104"], ["admin", "t"], ["created_at", "2015-07-06 21:18:16.980108"], ["updated_at", "2015-07-06 21:18:16.980108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/0282f238-92e3-4826-86dc-5541f19b3104" for 127.0.0.1 at 2015-07-06 14:18:16 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"0282f238-92e3-4826-86dc-5541f19b3104", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:16.984169') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e87783a2-bedd-4566-adb0-5cc5711390a0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:16.986131"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:16.987641"], ["id", "e87783a2-bedd-4566-adb0-5cc5711390a0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0282f238-92e3-4826-86dc-5541f19b3104"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f0e50dcc-7d0d-4cd7-96c9-afe9c27faaf0"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f0e50dcc-7d0d-4cd7-96c9-afe9c27faaf0' LIMIT 1 [["organization_id", "0282f238-92e3-4826-86dc-5541f19b3104"]] Completed 200 OK in 32ms (Views: 11.0ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$2i/fI54UlH7KiDioG7l5O.T/DSn.J1H61Cz4nWCa7m8wngWRo1Pge"], ["created_at", "2015-07-06 21:18:17.059414"], ["updated_at", "2015-07-06 21:18:17.059414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.061737"], ["user_id", "30f124cb-de4e-43b9-ad60-9fca229a7345"], ["created_at", "2015-07-06 21:18:17.062462"], ["updated_at", "2015-07-06 21:18:17.062462"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.067768"], ["updated_at", "2015-07-06 21:18:17.067768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '30f124cb-de4e-43b9-ad60-9fca229a7345' AND "clubhouse_memberships"."organization_id" = 'f1a4a296-8a1b-4c03-97bc-be913e3bc91f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "30f124cb-de4e-43b9-ad60-9fca229a7345"], ["organization_id", "f1a4a296-8a1b-4c03-97bc-be913e3bc91f"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.071966"], ["updated_at", "2015-07-06 21:18:17.071966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$nG0F.BlncpR8KUg4OLxya.04nyVYOHV24hdfbmMAvbijylQmATD0."], ["created_at", "2015-07-06 21:18:17.084119"], ["updated_at", "2015-07-06 21:18:17.084119"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.086491"], ["user_id", "f5f328f9-fb19-45e4-8764-fcd62f25d6ef"], ["created_at", "2015-07-06 21:18:17.087626"], ["updated_at", "2015-07-06 21:18:17.087626"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.093618"], ["updated_at", "2015-07-06 21:18:17.093618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5f328f9-fb19-45e4-8764-fcd62f25d6ef' AND "clubhouse_memberships"."organization_id" = '8e8d194a-88dc-4406-9603-98adaab37022') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5f328f9-fb19-45e4-8764-fcd62f25d6ef"], ["organization_id", "8e8d194a-88dc-4406-9603-98adaab37022"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.096787"], ["updated_at", "2015-07-06 21:18:17.096787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$1KIbX3sJn.aBojkAK3.G2uAkz8E2hbE5KIkRRslEYYSjG6g7Jl6x."], ["created_at", "2015-07-06 21:18:17.106411"], ["updated_at", "2015-07-06 21:18:17.106411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.108080"], ["user_id", "0dd48b92-006b-4757-a11b-761d2040e850"], ["created_at", "2015-07-06 21:18:17.108721"], ["updated_at", "2015-07-06 21:18:17.108721"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.112987"], ["updated_at", "2015-07-06 21:18:17.112987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0dd48b92-006b-4757-a11b-761d2040e850' AND "clubhouse_memberships"."organization_id" = '53b281f4-94a7-412b-9aa1-df8829d0b18a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0dd48b92-006b-4757-a11b-761d2040e850"], ["organization_id", "53b281f4-94a7-412b-9aa1-df8829d0b18a"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.116521"], ["updated_at", "2015-07-06 21:18:17.116521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:17.119596') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8969f467-ae8a-4ad7-b491-825be730d715"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:17.121671"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:17.122532"], ["id", "8969f467-ae8a-4ad7-b491-825be730d715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0dd48b92-006b-4757-a11b-761d2040e850"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 24ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$xva/wLc.JnXZurVEp44UTeL5RnxaqgAyGhs9WW6HyuALwEsTsUA2i"], ["created_at", "2015-07-06 21:18:17.148832"], ["updated_at", "2015-07-06 21:18:17.148832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.150439"], ["user_id", "e93127a7-59ec-4272-b3f2-c6f26d4c155a"], ["created_at", "2015-07-06 21:18:17.151072"], ["updated_at", "2015-07-06 21:18:17.151072"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.155790"], ["updated_at", "2015-07-06 21:18:17.155790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e93127a7-59ec-4272-b3f2-c6f26d4c155a' AND "clubhouse_memberships"."organization_id" = '314760bc-0269-407c-9b89-753b938db576') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e93127a7-59ec-4272-b3f2-c6f26d4c155a"], ["organization_id", "314760bc-0269-407c-9b89-753b938db576"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.158953"], ["updated_at", "2015-07-06 21:18:17.158953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.9ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:17.163240') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4a4c6471-65c8-42c1-9f4f-a1b92edbe928"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:17.166532"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:17.170996"], ["id", "4a4c6471-65c8-42c1-9f4f-a1b92edbe928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e93127a7-59ec-4272-b3f2-c6f26d4c155a"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.182059"], ["updated_at", "2015-07-06 21:18:17.182059"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e93127a7-59ec-4272-b3f2-c6f26d4c155a' AND "clubhouse_memberships"."organization_id" = '29680e15-5a5e-4edd-b630-cb97e85aee19') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e93127a7-59ec-4272-b3f2-c6f26d4c155a"], ["admin", "t"], ["organization_id", "29680e15-5a5e-4edd-b630-cb97e85aee19"], ["created_at", "2015-07-06 21:18:17.185509"], ["updated_at", "2015-07-06 21:18:17.185509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 0.7ms | ActiveRecord: 3.7ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$vrTo3IfsDQsYNKSGzmOcy.9izqJbNd.0AD2CVRi6VpKcny9AEU4iy"], ["created_at", "2015-07-06 21:18:17.198402"], ["updated_at", "2015-07-06 21:18:17.198402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.200429"], ["user_id", "a61399eb-7840-4d50-ad3c-17173893c249"], ["created_at", "2015-07-06 21:18:17.201149"], ["updated_at", "2015-07-06 21:18:17.201149"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.206578"], ["updated_at", "2015-07-06 21:18:17.206578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a61399eb-7840-4d50-ad3c-17173893c249' AND "clubhouse_memberships"."organization_id" = '924b17aa-3000-440c-878f-9b4443f2e6b3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a61399eb-7840-4d50-ad3c-17173893c249"], ["organization_id", "924b17aa-3000-440c-878f-9b4443f2e6b3"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.209566"], ["updated_at", "2015-07-06 21:18:17.209566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$V5PR2ghi/OQe6RK1L5LVOelWYSae7anmYXrmYIq6nky.bBdk.cmo2"], ["created_at", "2015-07-06 21:18:17.218775"], ["updated_at", "2015-07-06 21:18:17.218775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.220681"], ["user_id", "2c0985af-c954-4681-b56d-ab611f8bacc0"], ["created_at", "2015-07-06 21:18:17.221848"], ["updated_at", "2015-07-06 21:18:17.221848"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.226249"], ["updated_at", "2015-07-06 21:18:17.226249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c0985af-c954-4681-b56d-ab611f8bacc0' AND "clubhouse_memberships"."organization_id" = 'eaa9d1e2-4521-4056-8982-670c911a2af4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c0985af-c954-4681-b56d-ab611f8bacc0"], ["organization_id", "eaa9d1e2-4521-4056-8982-670c911a2af4"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.230608"], ["updated_at", "2015-07-06 21:18:17.230608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/eaa9d1e2-4521-4056-8982-670c911a2af4" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"eaa9d1e2-4521-4056-8982-670c911a2af4", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:17.233593') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9657e8e2-fca8-4f96-b252-6d9713d8b4e4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:17.234924"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:17.235753"], ["id", "9657e8e2-fca8-4f96-b252-6d9713d8b4e4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "eaa9d1e2-4521-4056-8982-670c911a2af4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2c0985af-c954-4681-b56d-ab611f8bacc0"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2c0985af-c954-4681-b56d-ab611f8bacc0' LIMIT 1 [["organization_id", "eaa9d1e2-4521-4056-8982-670c911a2af4"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'eaa9d1e2-4521-4056-8982-670c911a2af4') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:18:17.245457"], ["id", "eaa9d1e2-4521-4056-8982-670c911a2af4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$UQsKawxWr2o/WT0tdfsC2uBaV6Y5YPtAmi2mjeea3jmUyALcvuG0u"], ["created_at", "2015-07-06 21:18:17.255080"], ["updated_at", "2015-07-06 21:18:17.255080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.257775"], ["user_id", "1df2e6da-7055-4488-9e08-88f1d6a0fd2e"], ["created_at", "2015-07-06 21:18:17.258642"], ["updated_at", "2015-07-06 21:18:17.258642"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.264373"], ["updated_at", "2015-07-06 21:18:17.264373"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1df2e6da-7055-4488-9e08-88f1d6a0fd2e' AND "clubhouse_memberships"."organization_id" = 'dd25867e-9e98-48a7-819d-cb7dbee195ca') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1df2e6da-7055-4488-9e08-88f1d6a0fd2e"], ["organization_id", "dd25867e-9e98-48a7-819d-cb7dbee195ca"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.269142"], ["updated_at", "2015-07-06 21:18:17.269142"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/dd25867e-9e98-48a7-819d-cb7dbee195ca" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"dd25867e-9e98-48a7-819d-cb7dbee195ca", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:17.277077') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8346dd0d-d848-42a2-b56c-9138f1178394"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:17.279815"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:17.280909"], ["id", "8346dd0d-d848-42a2-b56c-9138f1178394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "dd25867e-9e98-48a7-819d-cb7dbee195ca"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1df2e6da-7055-4488-9e08-88f1d6a0fd2e"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '1df2e6da-7055-4488-9e08-88f1d6a0fd2e' LIMIT 1 [["organization_id", "dd25867e-9e98-48a7-819d-cb7dbee195ca"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'dd25867e-9e98-48a7-819d-cb7dbee195ca') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms (ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$/uDssDyM./pjzSdnl2iZx.Xjn1vrDS1yjlg7QL4d4lmKHpEZKiBZK"], ["created_at", "2015-07-06 21:18:17.306504"], ["updated_at", "2015-07-06 21:18:17.306504"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.309539"], ["user_id", "9d055ac8-a1fd-4186-a75a-ba21cc1b9ac5"], ["created_at", "2015-07-06 21:18:17.310554"], ["updated_at", "2015-07-06 21:18:17.310554"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.315972"], ["updated_at", "2015-07-06 21:18:17.315972"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d055ac8-a1fd-4186-a75a-ba21cc1b9ac5' AND "clubhouse_memberships"."organization_id" = 'b63c1476-e3e5-47ea-9f7e-f3ad3f0eba07') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9d055ac8-a1fd-4186-a75a-ba21cc1b9ac5"], ["organization_id", "b63c1476-e3e5-47ea-9f7e-f3ad3f0eba07"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.322080"], ["updated_at", "2015-07-06 21:18:17.322080"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$bDO6LwWHy88pwuUpZGMDiegI2PCM9Tp.Mxa1pOHrY.NOHmtZoxyb."], ["created_at", "2015-07-06 21:18:17.340572"], ["updated_at", "2015-07-06 21:18:17.340572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.344214"], ["user_id", "dacbd4ca-ddc8-40d8-bddd-e35b4f985ac9"], ["created_at", "2015-07-06 21:18:17.345761"], ["updated_at", "2015-07-06 21:18:17.345761"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.355318"], ["updated_at", "2015-07-06 21:18:17.355318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dacbd4ca-ddc8-40d8-bddd-e35b4f985ac9' AND "clubhouse_memberships"."organization_id" = 'c551fcfc-5863-4bfc-8c87-0bcc570b6368') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dacbd4ca-ddc8-40d8-bddd-e35b4f985ac9"], ["organization_id", "c551fcfc-5863-4bfc-8c87-0bcc570b6368"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.359721"], ["updated_at", "2015-07-06 21:18:17.359721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-13" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-13", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:17.363527') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b6e3b60c-c583-45c3-be69-bc819c380cf5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:17.365264"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:17.366264"], ["id", "b6e3b60c-c583-45c3-be69-bc819c380cf5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dacbd4ca-ddc8-40d8-bddd-e35b4f985ac9"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'dacbd4ca-ddc8-40d8-bddd-e35b4f985ac9' LIMIT 1 [["organization_id", "c551fcfc-5863-4bfc-8c87-0bcc570b6368"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c551fcfc-5863-4bfc-8c87-0bcc570b6368') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$nIfdH3A..GieLfdk3mgjfuGT7N9npylQ8A0jspDyjrDzHKIAiaUMq"], ["created_at", "2015-07-06 21:18:17.386020"], ["updated_at", "2015-07-06 21:18:17.386020"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.389466"], ["user_id", "48e93a63-9289-43ac-8f0a-1195a2fa5c54"], ["created_at", "2015-07-06 21:18:17.390376"], ["updated_at", "2015-07-06 21:18:17.390376"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.396134"], ["updated_at", "2015-07-06 21:18:17.396134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '48e93a63-9289-43ac-8f0a-1195a2fa5c54' AND "clubhouse_memberships"."organization_id" = 'f1451077-c492-4844-aad0-8c1ba02ab05c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "48e93a63-9289-43ac-8f0a-1195a2fa5c54"], ["organization_id", "f1451077-c492-4844-aad0-8c1ba02ab05c"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.400435"], ["updated_at", "2015-07-06 21:18:17.400435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-14" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-14", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:17.404639') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1ced110c-a3e5-4b94-a9b9-9607e6abbc9a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:17.406680"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:17.407640"], ["id", "1ced110c-a3e5-4b94-a9b9-9607e6abbc9a"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-14"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "48e93a63-9289-43ac-8f0a-1195a2fa5c54"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '48e93a63-9289-43ac-8f0a-1195a2fa5c54' LIMIT 1 [["organization_id", "f1451077-c492-4844-aad0-8c1ba02ab05c"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'f1451077-c492-4844-aad0-8c1ba02ab05c') LIMIT 1 SQL (1.6ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:18:17.425823"], ["id", "f1451077-c492-4844-aad0-8c1ba02ab05c"]]  (1.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 31ms (Views: 2.7ms | ActiveRecord: 7.0ms)  (0.6ms) ROLLBACK  (0.9ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$bF22DTGp1X5rp2WshLOTLOnjfhxVdK19LyHYpnrGLUDRdYCSpZ9Le"], ["created_at", "2015-07-06 21:18:17.456999"], ["updated_at", "2015-07-06 21:18:17.456999"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.461770"], ["user_id", "0358a9ae-614d-4998-8a50-cc017683f215"], ["created_at", "2015-07-06 21:18:17.462681"], ["updated_at", "2015-07-06 21:18:17.462681"], ["client", "App"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.480431"], ["updated_at", "2015-07-06 21:18:17.480431"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0358a9ae-614d-4998-8a50-cc017683f215' AND "clubhouse_memberships"."organization_id" = '0536138c-3655-4f88-a7d0-b4c7fffad3e6') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0358a9ae-614d-4998-8a50-cc017683f215"], ["organization_id", "0536138c-3655-4f88-a7d0-b4c7fffad3e6"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.494429"], ["updated_at", "2015-07-06 21:18:17.494429"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$pSZfW6Q5JX0sokWEq6IvUusO495Ck6wnPwnzD1lhAHcOpBYRSLPfy"], ["created_at", "2015-07-06 21:18:17.515959"], ["updated_at", "2015-07-06 21:18:17.515959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.518180"], ["user_id", "c287e5dd-80bb-4b80-a5d2-29092fc31f7b"], ["created_at", "2015-07-06 21:18:17.519482"], ["updated_at", "2015-07-06 21:18:17.519482"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.536322"], ["updated_at", "2015-07-06 21:18:17.536322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c287e5dd-80bb-4b80-a5d2-29092fc31f7b' AND "clubhouse_memberships"."organization_id" = '9e1b9c5e-065b-4d30-a9d6-dc2069f2b70a') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c287e5dd-80bb-4b80-a5d2-29092fc31f7b"], ["organization_id", "9e1b9c5e-065b-4d30-a9d6-dc2069f2b70a"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.542436"], ["updated_at", "2015-07-06 21:18:17.542436"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-16" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-16", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:17.554503') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5d5c7864-6d51-4280-901d-259fb44213ce"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:17.557628"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:17.559092"], ["id", "5d5c7864-6d51-4280-901d-259fb44213ce"]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c287e5dd-80bb-4b80-a5d2-29092fc31f7b"]] Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c287e5dd-80bb-4b80-a5d2-29092fc31f7b' LIMIT 1 [["organization_id", "9e1b9c5e-065b-4d30-a9d6-dc2069f2b70a"]] Completed 200 OK in 28ms (Views: 2.3ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$Np2oQPSWaS4WCNKDWWpgLOU6uLk8ruq9/B.kMVaSmF1/2P6x7t7Iq"], ["created_at", "2015-07-06 21:18:17.595460"], ["updated_at", "2015-07-06 21:18:17.595460"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.615539"], ["user_id", "f734c4c0-b9c0-4300-84f5-c85e6ba56a74"], ["created_at", "2015-07-06 21:18:17.617701"], ["updated_at", "2015-07-06 21:18:17.617701"], ["client", "App"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.638167"], ["updated_at", "2015-07-06 21:18:17.638167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f734c4c0-b9c0-4300-84f5-c85e6ba56a74' AND "clubhouse_memberships"."organization_id" = '7e38bdab-9ee0-4a9e-8ee2-24c0ed77dc75') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f734c4c0-b9c0-4300-84f5-c85e6ba56a74"], ["organization_id", "7e38bdab-9ee0-4a9e-8ee2-24c0ed77dc75"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.653033"], ["updated_at", "2015-07-06 21:18:17.653033"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (2.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$5xg2SfK.8Q/bstBuBlcGGu4.6eokOMzeldowrLBmwl1qfOBrggs.W"], ["created_at", "2015-07-06 21:18:17.677711"], ["updated_at", "2015-07-06 21:18:17.677711"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.685336"], ["user_id", "3c38f92a-3b9c-4ef1-b670-d4a0121f3b77"], ["created_at", "2015-07-06 21:18:17.686464"], ["updated_at", "2015-07-06 21:18:17.686464"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (5.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.702691"], ["updated_at", "2015-07-06 21:18:17.702691"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3c38f92a-3b9c-4ef1-b670-d4a0121f3b77' AND "clubhouse_memberships"."organization_id" = '77ac144f-bfd4-4f7c-a283-d40078f854c7') LIMIT 1 SQL (1.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3c38f92a-3b9c-4ef1-b670-d4a0121f3b77"], ["organization_id", "77ac144f-bfd4-4f7c-a283-d40078f854c7"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.708601"], ["updated_at", "2015-07-06 21:18:17.708601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/77ac144f-bfd4-4f7c-a283-d40078f854c7" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"77ac144f-bfd4-4f7c-a283-d40078f854c7", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:17.728237') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a4d0c967-4ff1-4b6a-9daa-ba88a1c86ca6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:17.734177"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:17.735316"], ["id", "a4d0c967-4ff1-4b6a-9daa-ba88a1c86ca6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "77ac144f-bfd4-4f7c-a283-d40078f854c7"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3c38f92a-3b9c-4ef1-b670-d4a0121f3b77"]] Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '3c38f92a-3b9c-4ef1-b670-d4a0121f3b77' LIMIT 1 [["organization_id", "77ac144f-bfd4-4f7c-a283-d40078f854c7"], ["admin", "t"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "77ac144f-bfd4-4f7c-a283-d40078f854c7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 30ms (ActiveRecord: 4.2ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (6.0ms) SAVEPOINT active_record_1 User Exists (11.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (2.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$GGN5K5G/lIWQ0wN2rL5KmOBkYA7bVOHAySHpi8CZTT2FFxdNeqnUW"], ["created_at", "2015-07-06 21:18:17.817512"], ["updated_at", "2015-07-06 21:18:17.817512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.827228"], ["user_id", "f08d5cf0-00c8-498f-b3b4-687a865083f9"], ["created_at", "2015-07-06 21:18:17.828096"], ["updated_at", "2015-07-06 21:18:17.828096"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.835078"], ["updated_at", "2015-07-06 21:18:17.835078"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f08d5cf0-00c8-498f-b3b4-687a865083f9' AND "clubhouse_memberships"."organization_id" = 'b65ec699-9f12-46d8-8c70-001cb61d697c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f08d5cf0-00c8-498f-b3b4-687a865083f9"], ["organization_id", "b65ec699-9f12-46d8-8c70-001cb61d697c"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.842397"], ["updated_at", "2015-07-06 21:18:17.842397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$oZvAWcOITwHrYaq2UAeiO.Vsa1O5hXBYVGkX5mkU4MmpFTfebS7Au"], ["created_at", "2015-07-06 21:18:17.852304"], ["updated_at", "2015-07-06 21:18:17.852304"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.860212"], ["updated_at", "2015-07-06 21:18:17.860212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '049059e1-3ff9-4223-99e2-df492027157e' AND "clubhouse_memberships"."organization_id" = '317e7330-6440-424e-bc60-3970ab65a4cd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "049059e1-3ff9-4223-99e2-df492027157e"], ["organization_id", "317e7330-6440-424e-bc60-3970ab65a4cd"], ["created_at", "2015-07-06 21:18:17.865153"], ["updated_at", "2015-07-06 21:18:17.865153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$B4sG1nmLOn6COUnUDLTsEuVLxvocxBL5ZkMohpnfDSEfpyn8MC22O"], ["created_at", "2015-07-06 21:18:17.878661"], ["updated_at", "2015-07-06 21:18:17.878661"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.881321"], ["user_id", "12637cfd-2562-48a8-8218-95599067b092"], ["created_at", "2015-07-06 21:18:17.882211"], ["updated_at", "2015-07-06 21:18:17.882211"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.887751"], ["updated_at", "2015-07-06 21:18:17.887751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12637cfd-2562-48a8-8218-95599067b092' AND "clubhouse_memberships"."organization_id" = '4202fc21-5319-4738-9dd1-5e1e0bd1777c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "12637cfd-2562-48a8-8218-95599067b092"], ["organization_id", "4202fc21-5319-4738-9dd1-5e1e0bd1777c"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.894008"], ["updated_at", "2015-07-06 21:18:17.894008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$lrWoZmqldEhPaB1RcrDo5.4S/kX3pWWLF3l15I.zqyxMWSbDEHury"], ["created_at", "2015-07-06 21:18:17.908582"], ["updated_at", "2015-07-06 21:18:17.908582"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.919633"], ["updated_at", "2015-07-06 21:18:17.919633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '83fedf65-529c-4c15-9667-1360176490c1' AND "clubhouse_memberships"."organization_id" = 'c5c65d63-a53d-4a57-907c-abf96ab1bf88') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "83fedf65-529c-4c15-9667-1360176490c1"], ["organization_id", "c5c65d63-a53d-4a57-907c-abf96ab1bf88"], ["created_at", "2015-07-06 21:18:17.925092"], ["updated_at", "2015-07-06 21:18:17.925092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:17.930024') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "515ace34-cbc7-4561-8ac9-e7fcb35ec1a6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:17.931684"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:17.932603"], ["id", "515ace34-cbc7-4561-8ac9-e7fcb35ec1a6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "12637cfd-2562-48a8-8218-95599067b092"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "12637cfd-2562-48a8-8218-95599067b092"]] Completed 200 OK in 14ms (Views: 4.0ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$4h5Q/o.1Dt.hIxWPGMKHEubwmbM04wR5DlEqBaAPZxadCZSqZPox6"], ["created_at", "2015-07-06 21:18:17.952376"], ["updated_at", "2015-07-06 21:18:17.952376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:17.955279"], ["user_id", "48c27dd0-acd4-46ed-b64d-c35d6b8334ad"], ["created_at", "2015-07-06 21:18:17.956496"], ["updated_at", "2015-07-06 21:18:17.956496"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:17.962858"], ["updated_at", "2015-07-06 21:18:17.962858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '48c27dd0-acd4-46ed-b64d-c35d6b8334ad' AND "clubhouse_memberships"."organization_id" = '313a97e9-990a-465f-99f2-8e8132e5bcb8') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "48c27dd0-acd4-46ed-b64d-c35d6b8334ad"], ["organization_id", "313a97e9-990a-465f-99f2-8e8132e5bcb8"], ["admin", "t"], ["created_at", "2015-07-06 21:18:17.978414"], ["updated_at", "2015-07-06 21:18:17.978414"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-23" for 127.0.0.1 at 2015-07-06 14:18:17 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-23", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:18:17.983680') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "46e273a0-bf7e-4a6a-b3f5-17faa1218e62"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:18:17.985516"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:18:17.987407"], ["id", "46e273a0-bf7e-4a6a-b3f5-17faa1218e62"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "48c27dd0-acd4-46ed-b64d-c35d6b8334ad"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '48c27dd0-acd4-46ed-b64d-c35d6b8334ad' LIMIT 1 [["organization_id", "313a97e9-990a-465f-99f2-8e8132e5bcb8"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "313a97e9-990a-465f-99f2-8e8132e5bcb8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 16ms (ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$eWhrlK1inzYBK8ACH2OTFu8MTeznOOzbMK8yRwh9ZG3qvPjjAIymS"], ["created_at", "2015-07-06 21:18:18.008903"], ["updated_at", "2015-07-06 21:18:18.008903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:18:18.011547"], ["user_id", "4fa21edd-9ef2-46e3-839d-0ee9e8773079"], ["created_at", "2015-07-06 21:18:18.012557"], ["updated_at", "2015-07-06 21:18:18.012557"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:18:18.017897"], ["updated_at", "2015-07-06 21:18:18.017897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fa21edd-9ef2-46e3-839d-0ee9e8773079' AND "clubhouse_memberships"."organization_id" = '76bfa7b1-4d22-4fdb-a35b-c2d50ad19845') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fa21edd-9ef2-46e3-839d-0ee9e8773079"], ["organization_id", "76bfa7b1-4d22-4fdb-a35b-c2d50ad19845"], ["admin", "t"], ["created_at", "2015-07-06 21:18:18.021677"], ["updated_at", "2015-07-06 21:18:18.021677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:18:18 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (3.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$klVxQpxF7fPKnnd3PNnBO.SDjRkhb5HeeiSyzKFgJ6Isolh9CzDWm"], ["created_at", "2015-07-06 21:19:18.766075"], ["updated_at", "2015-07-06 21:19:18.766075"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:18.795341"], ["user_id", "d6e1cac6-f394-42ca-9727-473be1be642c"], ["created_at", "2015-07-06 21:19:18.801736"], ["updated_at", "2015-07-06 21:19:18.801736"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:18.811378"], ["updated_at", "2015-07-06 21:19:18.811378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6e1cac6-f394-42ca-9727-473be1be642c' AND "clubhouse_memberships"."organization_id" = 'eb635435-7c14-4a51-82fb-052fb98d5c83') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6e1cac6-f394-42ca-9727-473be1be642c"], ["organization_id", "eb635435-7c14-4a51-82fb-052fb98d5c83"], ["admin", "t"], ["created_at", "2015-07-06 21:19:18.821489"], ["updated_at", "2015-07-06 21:19:18.821489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:19:18 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$I93KePO1U.wRKbXBcAB74.i7yMFSaPtcKom8FVvo0nbvnb8s6Uuy2"], ["created_at", "2015-07-06 21:19:18.857176"], ["updated_at", "2015-07-06 21:19:18.857176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:18.859129"], ["user_id", "10132877-3777-4231-a5b7-01dfa3305e94"], ["created_at", "2015-07-06 21:19:18.859797"], ["updated_at", "2015-07-06 21:19:18.859797"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:18.864303"], ["updated_at", "2015-07-06 21:19:18.864303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '10132877-3777-4231-a5b7-01dfa3305e94' AND "clubhouse_memberships"."organization_id" = 'd0c89a0e-d10e-4e4b-abde-77dbbe743430') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "10132877-3777-4231-a5b7-01dfa3305e94"], ["organization_id", "d0c89a0e-d10e-4e4b-abde-77dbbe743430"], ["admin", "t"], ["created_at", "2015-07-06 21:19:18.867524"], ["updated_at", "2015-07-06 21:19:18.867524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-2" for 127.0.0.1 at 2015-07-06 14:19:18 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:18.870514') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8fd56a02-7660-47f6-8b10-bf988fea99dc"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:18.879785"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:18.881171"], ["id", "8fd56a02-7660-47f6-8b10-bf988fea99dc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-2"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "10132877-3777-4231-a5b7-01dfa3305e94"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '10132877-3777-4231-a5b7-01dfa3305e94' LIMIT 1 [["organization_id", "d0c89a0e-d10e-4e4b-abde-77dbbe743430"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d0c89a0e-d10e-4e4b-abde-77dbbe743430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 40ms (ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$K0qVTdHcxhenSdfEFvKcuOd9qENk.LoJWhNoiq15GO8AXjRUXCTLu"], ["created_at", "2015-07-06 21:19:18.922209"], ["updated_at", "2015-07-06 21:19:18.922209"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:18.924766"], ["user_id", "5e3eeee8-5457-4d17-86b8-b1f748996f47"], ["created_at", "2015-07-06 21:19:18.925570"], ["updated_at", "2015-07-06 21:19:18.925570"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:18.930497"], ["updated_at", "2015-07-06 21:19:18.930497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e3eeee8-5457-4d17-86b8-b1f748996f47' AND "clubhouse_memberships"."organization_id" = 'cfc6f733-0094-4350-8a4f-f8a06771c3c4') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e3eeee8-5457-4d17-86b8-b1f748996f47"], ["organization_id", "cfc6f733-0094-4350-8a4f-f8a06771c3c4"], ["admin", "t"], ["created_at", "2015-07-06 21:19:18.934510"], ["updated_at", "2015-07-06 21:19:18.934510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:19:18 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$nAFo9h1Ji/lzRPdne4RzVeOI1KkFM7xHDYwEBi/p.GcweK1Z9wnWW"], ["created_at", "2015-07-06 21:19:18.944851"], ["updated_at", "2015-07-06 21:19:18.944851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:18.946984"], ["user_id", "52693c6d-1fd5-4d73-abb3-4bc2c277d419"], ["created_at", "2015-07-06 21:19:18.947847"], ["updated_at", "2015-07-06 21:19:18.947847"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:18.953634"], ["updated_at", "2015-07-06 21:19:18.953634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52693c6d-1fd5-4d73-abb3-4bc2c277d419' AND "clubhouse_memberships"."organization_id" = '50a9ae86-9b3b-4135-a5ee-34c39390b091') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "52693c6d-1fd5-4d73-abb3-4bc2c277d419"], ["organization_id", "50a9ae86-9b3b-4135-a5ee-34c39390b091"], ["admin", "t"], ["created_at", "2015-07-06 21:19:18.957445"], ["updated_at", "2015-07-06 21:19:18.957445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-4" for 127.0.0.1 at 2015-07-06 14:19:18 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-4", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:18.960829') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dc581ccc-ed8a-4e0e-a05d-e6a87d03da84"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:18.962341"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:18.963151"], ["id", "dc581ccc-ed8a-4e0e-a05d-e6a87d03da84"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "52693c6d-1fd5-4d73-abb3-4bc2c277d419"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '52693c6d-1fd5-4d73-abb3-4bc2c277d419' LIMIT 1 [["organization_id", "50a9ae86-9b3b-4135-a5ee-34c39390b091"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '50a9ae86-9b3b-4135-a5ee-34c39390b091') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:19:18.976676"], ["id", "50a9ae86-9b3b-4135-a5ee-34c39390b091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 31ms (Views: 12.9ms | ActiveRecord: 3.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$D8tR35BAVGaQY8COuBEqqup5H41/IqzB63SmQxWoKGKyeedFFZOSa"], ["created_at", "2015-07-06 21:19:19.042408"], ["updated_at", "2015-07-06 21:19:19.042408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.044339"], ["user_id", "782a41ad-b39d-48b1-9635-9af9eccc25b6"], ["created_at", "2015-07-06 21:19:19.045158"], ["updated_at", "2015-07-06 21:19:19.045158"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.049633"], ["updated_at", "2015-07-06 21:19:19.049633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '782a41ad-b39d-48b1-9635-9af9eccc25b6' AND "clubhouse_memberships"."organization_id" = 'de63041d-4297-4d2b-8cea-2d018f8e87f0') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "782a41ad-b39d-48b1-9635-9af9eccc25b6"], ["organization_id", "de63041d-4297-4d2b-8cea-2d018f8e87f0"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.053604"], ["updated_at", "2015-07-06 21:19:19.053604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-5" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-5", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.059379') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "86ab5192-0017-4f8a-a401-430b31e11392"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.061267"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.062372"], ["id", "86ab5192-0017-4f8a-a401-430b31e11392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-5"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "782a41ad-b39d-48b1-9635-9af9eccc25b6"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '782a41ad-b39d-48b1-9635-9af9eccc25b6' LIMIT 1 [["organization_id", "de63041d-4297-4d2b-8cea-2d018f8e87f0"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'de63041d-4297-4d2b-8cea-2d018f8e87f0') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$2aWKY4hhNB2FYoB4SlzQ4elgZV8Dwc0kIkucE8ML/mw5Vk2PC0Yjq"], ["created_at", "2015-07-06 21:19:19.090450"], ["updated_at", "2015-07-06 21:19:19.090450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.092724"], ["user_id", "d97b78df-9388-4ef4-97bb-457833694c6b"], ["created_at", "2015-07-06 21:19:19.093347"], ["updated_at", "2015-07-06 21:19:19.093347"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.097438"], ["updated_at", "2015-07-06 21:19:19.097438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd97b78df-9388-4ef4-97bb-457833694c6b' AND "clubhouse_memberships"."organization_id" = '841f97f7-cc6b-4434-afc8-22cede064155') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d97b78df-9388-4ef4-97bb-457833694c6b"], ["organization_id", "841f97f7-cc6b-4434-afc8-22cede064155"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.100832"], ["updated_at", "2015-07-06 21:19:19.100832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$mAVBTzw/fxf.ip8gBaqaUutI/QgWXmW0qH5b42HtFvPYINnR55oea"], ["created_at", "2015-07-06 21:19:19.111756"], ["updated_at", "2015-07-06 21:19:19.111756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.113695"], ["user_id", "3cba6391-51bb-49cf-b263-b60f18ffcb7f"], ["created_at", "2015-07-06 21:19:19.114458"], ["updated_at", "2015-07-06 21:19:19.114458"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.118780"], ["updated_at", "2015-07-06 21:19:19.118780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3cba6391-51bb-49cf-b263-b60f18ffcb7f' AND "clubhouse_memberships"."organization_id" = '706c0440-4d60-478c-94f6-240fb764c30a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3cba6391-51bb-49cf-b263-b60f18ffcb7f"], ["organization_id", "706c0440-4d60-478c-94f6-240fb764c30a"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.122370"], ["updated_at", "2015-07-06 21:19:19.122370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-7" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-7", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.126334') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1fcf2695-11bd-4c33-aa3c-b44ac0348f5c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.128106"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.128824"], ["id", "1fcf2695-11bd-4c33-aa3c-b44ac0348f5c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-7"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3cba6391-51bb-49cf-b263-b60f18ffcb7f"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3cba6391-51bb-49cf-b263-b60f18ffcb7f' LIMIT 1 [["organization_id", "706c0440-4d60-478c-94f6-240fb764c30a"]] Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$.mrNLdDKL3qCsm56z8NmI.HUybiO.QWcJeWG.S4303iaKHOCSPy3q"], ["created_at", "2015-07-06 21:19:19.144230"], ["updated_at", "2015-07-06 21:19:19.144230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.146004"], ["user_id", "e142a406-b780-47ed-8502-5d1a45e680fc"], ["created_at", "2015-07-06 21:19:19.146661"], ["updated_at", "2015-07-06 21:19:19.146661"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.150887"], ["updated_at", "2015-07-06 21:19:19.150887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e142a406-b780-47ed-8502-5d1a45e680fc' AND "clubhouse_memberships"."organization_id" = '83789e3d-f6e3-4250-9d4b-8b97a46d7604') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e142a406-b780-47ed-8502-5d1a45e680fc"], ["organization_id", "83789e3d-f6e3-4250-9d4b-8b97a46d7604"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.154909"], ["updated_at", "2015-07-06 21:19:19.154909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$Cr0Xz6yP68HdlxoHDevGheeai1K9J4u6rvcmX0r/jjPpflvtflBmK"], ["created_at", "2015-07-06 21:19:19.164226"], ["updated_at", "2015-07-06 21:19:19.164226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.165848"], ["user_id", "6c9e9d6c-245f-4df9-961c-ee8d14321172"], ["created_at", "2015-07-06 21:19:19.166511"], ["updated_at", "2015-07-06 21:19:19.166511"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.170551"], ["updated_at", "2015-07-06 21:19:19.170551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6c9e9d6c-245f-4df9-961c-ee8d14321172' AND "clubhouse_memberships"."organization_id" = '7b2e7d8d-28cb-4320-840b-dd46b30091e7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6c9e9d6c-245f-4df9-961c-ee8d14321172"], ["organization_id", "7b2e7d8d-28cb-4320-840b-dd46b30091e7"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.173635"], ["updated_at", "2015-07-06 21:19:19.173635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/7b2e7d8d-28cb-4320-840b-dd46b30091e7" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"7b2e7d8d-28cb-4320-840b-dd46b30091e7", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.177353') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c6576294-38b0-4027-ace8-05f1385c696b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.178989"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.179753"], ["id", "c6576294-38b0-4027-ace8-05f1385c696b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7b2e7d8d-28cb-4320-840b-dd46b30091e7"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6c9e9d6c-245f-4df9-961c-ee8d14321172"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6c9e9d6c-245f-4df9-961c-ee8d14321172' LIMIT 1 [["organization_id", "7b2e7d8d-28cb-4320-840b-dd46b30091e7"], ["admin", "t"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "7b2e7d8d-28cb-4320-840b-dd46b30091e7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$SOZG51Shdqd2KpOu1oL2Weq4Gv9W.zDxUtqdY9LKcGBxS2lQNY/4G"], ["created_at", "2015-07-06 21:19:19.196977"], ["updated_at", "2015-07-06 21:19:19.196977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.199033"], ["user_id", "5b07ee35-de4d-4164-9b4c-7983b77fb952"], ["created_at", "2015-07-06 21:19:19.199725"], ["updated_at", "2015-07-06 21:19:19.199725"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.204061"], ["updated_at", "2015-07-06 21:19:19.204061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5b07ee35-de4d-4164-9b4c-7983b77fb952' AND "clubhouse_memberships"."organization_id" = 'd12295d6-ce6b-450d-bf5f-7c01ac71b3eb') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5b07ee35-de4d-4164-9b4c-7983b77fb952"], ["organization_id", "d12295d6-ce6b-450d-bf5f-7c01ac71b3eb"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.208141"], ["updated_at", "2015-07-06 21:19:19.208141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/d12295d6-ce6b-450d-bf5f-7c01ac71b3eb" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"d12295d6-ce6b-450d-bf5f-7c01ac71b3eb", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.212600') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "778fbd35-99e3-40bf-8720-44b7854c0d6d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.214324"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.215187"], ["id", "778fbd35-99e3-40bf-8720-44b7854c0d6d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d12295d6-ce6b-450d-bf5f-7c01ac71b3eb"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5b07ee35-de4d-4164-9b4c-7983b77fb952"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5b07ee35-de4d-4164-9b4c-7983b77fb952' LIMIT 1 [["organization_id", "d12295d6-ce6b-450d-bf5f-7c01ac71b3eb"]] Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$yC9Zlp.MiMwjoc08E5yn9uWQibfPSneT5LhFCMybdePowlUPLKrTC"], ["created_at", "2015-07-06 21:19:19.229177"], ["updated_at", "2015-07-06 21:19:19.229177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.231308"], ["user_id", "ffb1b139-f1c9-4a8e-aaea-50c50bb294e7"], ["created_at", "2015-07-06 21:19:19.232058"], ["updated_at", "2015-07-06 21:19:19.232058"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.238685"], ["updated_at", "2015-07-06 21:19:19.238685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ffb1b139-f1c9-4a8e-aaea-50c50bb294e7' AND "clubhouse_memberships"."organization_id" = 'f1932e5c-8c9c-44c0-844c-fa5d1f23c34b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ffb1b139-f1c9-4a8e-aaea-50c50bb294e7"], ["organization_id", "f1932e5c-8c9c-44c0-844c-fa5d1f23c34b"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.242845"], ["updated_at", "2015-07-06 21:19:19.242845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$UILx8G27zHYcbBApiQBhBOZtxARmMC2cmashuVaaqNq185BDnOA.i"], ["created_at", "2015-07-06 21:19:19.253317"], ["updated_at", "2015-07-06 21:19:19.253317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.254903"], ["user_id", "226adf09-1f18-49c6-885c-d6ab73b88249"], ["created_at", "2015-07-06 21:19:19.255484"], ["updated_at", "2015-07-06 21:19:19.255484"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.259575"], ["updated_at", "2015-07-06 21:19:19.259575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '226adf09-1f18-49c6-885c-d6ab73b88249' AND "clubhouse_memberships"."organization_id" = '72d5cfc4-952b-4110-b6e1-082b78a39f1c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "226adf09-1f18-49c6-885c-d6ab73b88249"], ["organization_id", "72d5cfc4-952b-4110-b6e1-082b78a39f1c"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.262701"], ["updated_at", "2015-07-06 21:19:19.262701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$L19tDFw7g9zFT61ueurLJuN5e0rXfnzud//69s.76ywE1osgww8I6"], ["created_at", "2015-07-06 21:19:19.268142"], ["updated_at", "2015-07-06 21:19:19.268142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.271966"], ["updated_at", "2015-07-06 21:19:19.271966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '162b2b91-bded-46af-87f3-fb78f4fc5d81' AND "clubhouse_memberships"."organization_id" = 'f131b30b-b468-49bf-8615-600640f9ef1e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "162b2b91-bded-46af-87f3-fb78f4fc5d81"], ["organization_id", "f131b30b-b468-49bf-8615-600640f9ef1e"], ["created_at", "2015-07-06 21:19:19.274818"], ["updated_at", "2015-07-06 21:19:19.274818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$9mbfu7x55efTGlDbzh1aS.TIvv/jEwnxJeki41iB4hD.gLDVN.biG"], ["created_at", "2015-07-06 21:19:19.284138"], ["updated_at", "2015-07-06 21:19:19.284138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.286492"], ["user_id", "6fc92f4f-59a1-40ac-8721-195049b8b10e"], ["created_at", "2015-07-06 21:19:19.287407"], ["updated_at", "2015-07-06 21:19:19.287407"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.292493"], ["updated_at", "2015-07-06 21:19:19.292493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6fc92f4f-59a1-40ac-8721-195049b8b10e' AND "clubhouse_memberships"."organization_id" = '8052653b-3321-4c44-8658-376be42699b1') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6fc92f4f-59a1-40ac-8721-195049b8b10e"], ["organization_id", "8052653b-3321-4c44-8658-376be42699b1"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.297936"], ["updated_at", "2015-07-06 21:19:19.297936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$Xs3CRJaLv0stw.sYZgimLu17CUFOI2AGTyII2s3kX.tTauEOe0axa"], ["created_at", "2015-07-06 21:19:19.303110"], ["updated_at", "2015-07-06 21:19:19.303110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.307631"], ["updated_at", "2015-07-06 21:19:19.307631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f7bff891-8194-4a1e-a775-dd95a17f5a76' AND "clubhouse_memberships"."organization_id" = '655f3ccf-b47c-48d3-bff5-416e312e58ef') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f7bff891-8194-4a1e-a775-dd95a17f5a76"], ["organization_id", "655f3ccf-b47c-48d3-bff5-416e312e58ef"], ["created_at", "2015-07-06 21:19:19.310682"], ["updated_at", "2015-07-06 21:19:19.310682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.313587') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e1e1f12e-833c-4308-9b41-233ac3b4a45f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.315016"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.315732"], ["id", "e1e1f12e-833c-4308-9b41-233ac3b4a45f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6fc92f4f-59a1-40ac-8721-195049b8b10e"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "6fc92f4f-59a1-40ac-8721-195049b8b10e"]] Completed 200 OK in 14ms (Views: 2.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$nU0/pKaSXlsL3kQRkFxxVeYQMuBHKMfdd.AT7ilmm2qC2YIR5p98q"], ["created_at", "2015-07-06 21:19:19.334216"], ["updated_at", "2015-07-06 21:19:19.334216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.335832"], ["user_id", "819e2ecf-d3a3-445f-babb-8637b6d7f56c"], ["created_at", "2015-07-06 21:19:19.336458"], ["updated_at", "2015-07-06 21:19:19.336458"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.340592"], ["updated_at", "2015-07-06 21:19:19.340592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '819e2ecf-d3a3-445f-babb-8637b6d7f56c' AND "clubhouse_memberships"."organization_id" = 'd76080a6-a263-4cdd-8232-a9e39a7f7ee2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "819e2ecf-d3a3-445f-babb-8637b6d7f56c"], ["organization_id", "d76080a6-a263-4cdd-8232-a9e39a7f7ee2"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.343631"], ["updated_at", "2015-07-06 21:19:19.343631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$3TerZ8hxZMT2t2NlMsld5O.ZCM.BevuqCC/cdJ0nD1kKiXNpsBb4W"], ["created_at", "2015-07-06 21:19:19.352298"], ["updated_at", "2015-07-06 21:19:19.352298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.353893"], ["user_id", "32574b5c-7557-490e-a721-edf9ce427ffb"], ["created_at", "2015-07-06 21:19:19.354487"], ["updated_at", "2015-07-06 21:19:19.354487"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.358541"], ["updated_at", "2015-07-06 21:19:19.358541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32574b5c-7557-490e-a721-edf9ce427ffb' AND "clubhouse_memberships"."organization_id" = 'bfefa141-36fb-4e3e-8f71-d6cf9117327b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "32574b5c-7557-490e-a721-edf9ce427ffb"], ["organization_id", "bfefa141-36fb-4e3e-8f71-d6cf9117327b"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.362038"], ["updated_at", "2015-07-06 21:19:19.362038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/bfefa141-36fb-4e3e-8f71-d6cf9117327b" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"bfefa141-36fb-4e3e-8f71-d6cf9117327b", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.365450') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e3aee716-88f2-4a22-bad0-ed12d12eb81a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.367472"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.368248"], ["id", "e3aee716-88f2-4a22-bad0-ed12d12eb81a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bfefa141-36fb-4e3e-8f71-d6cf9117327b"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "32574b5c-7557-490e-a721-edf9ce427ffb"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '32574b5c-7557-490e-a721-edf9ce427ffb' LIMIT 1 [["organization_id", "bfefa141-36fb-4e3e-8f71-d6cf9117327b"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'bfefa141-36fb-4e3e-8f71-d6cf9117327b') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:19:19.377559"], ["id", "bfefa141-36fb-4e3e-8f71-d6cf9117327b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$6UpIvFDJ0E05IupHRJOnteG92Ol9AjtnGo5OMNv.LGYFZguN2E1WC"], ["created_at", "2015-07-06 21:19:19.386985"], ["updated_at", "2015-07-06 21:19:19.386985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.388975"], ["user_id", "75ce33d1-bf37-4dcf-80ff-5bbd98117833"], ["created_at", "2015-07-06 21:19:19.389668"], ["updated_at", "2015-07-06 21:19:19.389668"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.393663"], ["updated_at", "2015-07-06 21:19:19.393663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75ce33d1-bf37-4dcf-80ff-5bbd98117833' AND "clubhouse_memberships"."organization_id" = 'e1c758c0-1d9e-4c1d-a5c6-4b55ea4926b1') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75ce33d1-bf37-4dcf-80ff-5bbd98117833"], ["organization_id", "e1c758c0-1d9e-4c1d-a5c6-4b55ea4926b1"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.397025"], ["updated_at", "2015-07-06 21:19:19.397025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/e1c758c0-1d9e-4c1d-a5c6-4b55ea4926b1" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"e1c758c0-1d9e-4c1d-a5c6-4b55ea4926b1", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.400044') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dde647d8-83f7-49f0-acc3-1cce1e746d1e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.401491"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.402226"], ["id", "dde647d8-83f7-49f0-acc3-1cce1e746d1e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e1c758c0-1d9e-4c1d-a5c6-4b55ea4926b1"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "75ce33d1-bf37-4dcf-80ff-5bbd98117833"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '75ce33d1-bf37-4dcf-80ff-5bbd98117833' LIMIT 1 [["organization_id", "e1c758c0-1d9e-4c1d-a5c6-4b55ea4926b1"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'e1c758c0-1d9e-4c1d-a5c6-4b55ea4926b1') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$N0Z7qVJx8ZPVYluNP8.ODOVUIusWw3qgBSLKbAEY48HLdbNOK77yK"], ["created_at", "2015-07-06 21:19:19.418460"], ["updated_at", "2015-07-06 21:19:19.418460"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.421394"], ["user_id", "796f46c5-1a7f-434e-9279-8420758a5dc6"], ["created_at", "2015-07-06 21:19:19.422080"], ["updated_at", "2015-07-06 21:19:19.422080"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.428519"], ["updated_at", "2015-07-06 21:19:19.428519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '796f46c5-1a7f-434e-9279-8420758a5dc6' AND "clubhouse_memberships"."organization_id" = '51f25962-a9f1-4b89-8603-35c31c4a125c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "796f46c5-1a7f-434e-9279-8420758a5dc6"], ["organization_id", "51f25962-a9f1-4b89-8603-35c31c4a125c"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.432194"], ["updated_at", "2015-07-06 21:19:19.432194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$AVMWretoWE18sN4KgLOBmu27S9RrW07BmIibyXOlL6xRFmAGBuQn6"], ["created_at", "2015-07-06 21:19:19.441725"], ["updated_at", "2015-07-06 21:19:19.441725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.443374"], ["user_id", "a04049bf-4836-4b49-ad61-496646171a35"], ["created_at", "2015-07-06 21:19:19.443994"], ["updated_at", "2015-07-06 21:19:19.443994"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.447980"], ["updated_at", "2015-07-06 21:19:19.447980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a04049bf-4836-4b49-ad61-496646171a35' AND "clubhouse_memberships"."organization_id" = 'd5c689a6-0c27-4fc0-bd32-62c70fae6d6f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a04049bf-4836-4b49-ad61-496646171a35"], ["organization_id", "d5c689a6-0c27-4fc0-bd32-62c70fae6d6f"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.451069"], ["updated_at", "2015-07-06 21:19:19.451069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-20" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-20", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.454135') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "26ea4a35-d3b5-4595-9206-e7e8e7763bd9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.455658"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.456737"], ["id", "26ea4a35-d3b5-4595-9206-e7e8e7763bd9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-20"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a04049bf-4836-4b49-ad61-496646171a35"]] Completed 200 OK in 7ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$LXJMoNoMuavRvRfV/luQc.bykn.jop.1LVjBlqKtWpBbgF.nssdxW"], ["created_at", "2015-07-06 21:19:19.466307"], ["updated_at", "2015-07-06 21:19:19.466307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.467920"], ["user_id", "403e61c8-9c86-4c04-875a-30971ca24e66"], ["created_at", "2015-07-06 21:19:19.468613"], ["updated_at", "2015-07-06 21:19:19.468613"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.473792"], ["updated_at", "2015-07-06 21:19:19.473792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '403e61c8-9c86-4c04-875a-30971ca24e66' AND "clubhouse_memberships"."organization_id" = 'f52af762-0f3f-4881-b57e-73a4b69616c4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "403e61c8-9c86-4c04-875a-30971ca24e66"], ["organization_id", "f52af762-0f3f-4881-b57e-73a4b69616c4"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.478085"], ["updated_at", "2015-07-06 21:19:19.478085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.481211') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0ddc5704-f570-464c-9011-0baca6c7ad53"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.482634"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.483315"], ["id", "0ddc5704-f570-464c-9011-0baca6c7ad53"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$zGPtY8PwGCKUpeatNT0NoezmtDN/mle/KAOJWF3vjW0kZiRxK4Ar."], ["created_at", "2015-07-06 21:19:19.493192"], ["updated_at", "2015-07-06 21:19:19.493192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.496584"], ["user_id", "7bbac120-6438-4538-b999-69b2bf9c4d2e"], ["created_at", "2015-07-06 21:19:19.497341"], ["updated_at", "2015-07-06 21:19:19.497341"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.502332"], ["updated_at", "2015-07-06 21:19:19.502332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7bbac120-6438-4538-b999-69b2bf9c4d2e' AND "clubhouse_memberships"."organization_id" = '638699ef-5044-409c-a8bf-0d6f8036cf06') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7bbac120-6438-4538-b999-69b2bf9c4d2e"], ["organization_id", "638699ef-5044-409c-a8bf-0d6f8036cf06"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.505926"], ["updated_at", "2015-07-06 21:19:19.505926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$ukzijWquTyptnfWbsvSHX.VisIU2AI.uXufUkGUYGOcqQhrNiz5wy"], ["created_at", "2015-07-06 21:19:19.516558"], ["updated_at", "2015-07-06 21:19:19.516558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.518709"], ["user_id", "8542315c-c5d2-46a5-a526-8a3e4596bf9b"], ["created_at", "2015-07-06 21:19:19.519473"], ["updated_at", "2015-07-06 21:19:19.519473"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.524332"], ["updated_at", "2015-07-06 21:19:19.524332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8542315c-c5d2-46a5-a526-8a3e4596bf9b' AND "clubhouse_memberships"."organization_id" = '71c62996-9896-4d9d-ad2e-baec86f8fe0e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8542315c-c5d2-46a5-a526-8a3e4596bf9b"], ["organization_id", "71c62996-9896-4d9d-ad2e-baec86f8fe0e"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.527722"], ["updated_at", "2015-07-06 21:19:19.527722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.531123') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "216aab73-463c-404a-a4d9-82138f1b5b16"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.532642"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.534049"], ["id", "216aab73-463c-404a-a4d9-82138f1b5b16"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8542315c-c5d2-46a5-a526-8a3e4596bf9b"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$ekKbnw.NEJCgJUza7Z5CaeH4H9cQO1SvK50mYQi5M7nvQcEUOIRjK"], ["created_at", "2015-07-06 21:19:19.553318"], ["updated_at", "2015-07-06 21:19:19.553318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:19.555087"], ["user_id", "eb3f7769-f721-4c14-b85d-439bed170c36"], ["created_at", "2015-07-06 21:19:19.556111"], ["updated_at", "2015-07-06 21:19:19.556111"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.560331"], ["updated_at", "2015-07-06 21:19:19.560331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb3f7769-f721-4c14-b85d-439bed170c36' AND "clubhouse_memberships"."organization_id" = '68d742e2-aa05-4251-b4a4-789dbe401a35') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb3f7769-f721-4c14-b85d-439bed170c36"], ["organization_id", "68d742e2-aa05-4251-b4a4-789dbe401a35"], ["admin", "t"], ["created_at", "2015-07-06 21:19:19.563956"], ["updated_at", "2015-07-06 21:19:19.563956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:19:19 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:19.567523') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2d9d0074-d3e9-403b-a645-9aa66c900c4c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:19.569084"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:19.569822"], ["id", "2d9d0074-d3e9-403b-a645-9aa66c900c4c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb3f7769-f721-4c14-b85d-439bed170c36"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:19.575497"], ["updated_at", "2015-07-06 21:19:19.575497"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb3f7769-f721-4c14-b85d-439bed170c36' AND "clubhouse_memberships"."organization_id" = '23b12826-758c-425f-9a69-dc3897f41b81') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb3f7769-f721-4c14-b85d-439bed170c36"], ["admin", "t"], ["organization_id", "23b12826-758c-425f-9a69-dc3897f41b81"], ["created_at", "2015-07-06 21:19:19.578407"], ["updated_at", "2015-07-06 21:19:19.578407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 0.4ms | ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$FRgZj/GjrVdo0RQQozPQEuBo1HpTyQK8AnEqgllCiCjQv0gmVQfDC"], ["created_at", "2015-07-06 21:19:46.425334"], ["updated_at", "2015-07-06 21:19:46.425334"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.448530"], ["user_id", "d8fc1004-1728-40bd-8a30-526edbbc8dd6"], ["created_at", "2015-07-06 21:19:46.457340"], ["updated_at", "2015-07-06 21:19:46.457340"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.470641"], ["updated_at", "2015-07-06 21:19:46.470641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8fc1004-1728-40bd-8a30-526edbbc8dd6' AND "clubhouse_memberships"."organization_id" = '611384d3-9af6-455d-91ce-417f9cd71be3') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d8fc1004-1728-40bd-8a30-526edbbc8dd6"], ["organization_id", "611384d3-9af6-455d-91ce-417f9cd71be3"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.482517"], ["updated_at", "2015-07-06 21:19:46.482517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-1" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:46.508773') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d5374f39-a77f-48f5-92f5-0ac13dca4aa8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:46.517019"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:46.518598"], ["id", "d5374f39-a77f-48f5-92f5-0ac13dca4aa8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-1"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8fc1004-1728-40bd-8a30-526edbbc8dd6"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd8fc1004-1728-40bd-8a30-526edbbc8dd6' LIMIT 1 [["organization_id", "611384d3-9af6-455d-91ce-417f9cd71be3"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "611384d3-9af6-455d-91ce-417f9cd71be3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 37ms (ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$yb9YYSrOltIZY79QQzNQPel1vsmvhmFAOWw8LcfdLVOBXuhUnNmSq"], ["created_at", "2015-07-06 21:19:46.554065"], ["updated_at", "2015-07-06 21:19:46.554065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.555838"], ["user_id", "379728fb-5d21-49db-931c-4c2e5b4459da"], ["created_at", "2015-07-06 21:19:46.556473"], ["updated_at", "2015-07-06 21:19:46.556473"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.560882"], ["updated_at", "2015-07-06 21:19:46.560882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '379728fb-5d21-49db-931c-4c2e5b4459da' AND "clubhouse_memberships"."organization_id" = '9045c31a-55f0-458c-aca0-90395d3a469a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "379728fb-5d21-49db-931c-4c2e5b4459da"], ["organization_id", "9045c31a-55f0-458c-aca0-90395d3a469a"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.563997"], ["updated_at", "2015-07-06 21:19:46.563997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$V5E9Mp6lkwebzZlTCOBdwOUR3YHQLhXHgezFQ39TDG.9Yfeb9ZBgi"], ["created_at", "2015-07-06 21:19:46.574185"], ["updated_at", "2015-07-06 21:19:46.574185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.575915"], ["user_id", "73f59676-b632-4e60-9b63-fb6dc985a812"], ["created_at", "2015-07-06 21:19:46.576550"], ["updated_at", "2015-07-06 21:19:46.576550"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.580689"], ["updated_at", "2015-07-06 21:19:46.580689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '73f59676-b632-4e60-9b63-fb6dc985a812' AND "clubhouse_memberships"."organization_id" = 'c6b9eb01-158c-48a3-810b-50dfa6c05050') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "73f59676-b632-4e60-9b63-fb6dc985a812"], ["organization_id", "c6b9eb01-158c-48a3-810b-50dfa6c05050"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.584260"], ["updated_at", "2015-07-06 21:19:46.584260"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-3" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-3", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:46.588226') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2db750a8-4909-48a7-979b-b801dec1b5d6"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:46.590597"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:46.593684"], ["id", "2db750a8-4909-48a7-979b-b801dec1b5d6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-3"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "73f59676-b632-4e60-9b63-fb6dc985a812"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '73f59676-b632-4e60-9b63-fb6dc985a812' LIMIT 1 [["organization_id", "c6b9eb01-158c-48a3-810b-50dfa6c05050"]] Completed 200 OK in 22ms (Views: 10.8ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$1Rt32OrNJOzQAlo/KyhsaOFqgy16SNdF5G9Nn1MBIuu79qLvIPQQ2"], ["created_at", "2015-07-06 21:19:46.654864"], ["updated_at", "2015-07-06 21:19:46.654864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.656649"], ["user_id", "26fffb4b-1dd1-4c4c-9763-34a36e90cc33"], ["created_at", "2015-07-06 21:19:46.657315"], ["updated_at", "2015-07-06 21:19:46.657315"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.661428"], ["updated_at", "2015-07-06 21:19:46.661428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '26fffb4b-1dd1-4c4c-9763-34a36e90cc33' AND "clubhouse_memberships"."organization_id" = '1a02d123-55c9-4e50-a86c-f3cb22534f40') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "26fffb4b-1dd1-4c4c-9763-34a36e90cc33"], ["organization_id", "1a02d123-55c9-4e50-a86c-f3cb22534f40"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.664589"], ["updated_at", "2015-07-06 21:19:46.664589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$XxdziWVFuIAboqZnEjo.nu3c.a69pshWgHu9xMru36U6HOxzuzBQW"], ["created_at", "2015-07-06 21:19:46.675781"], ["updated_at", "2015-07-06 21:19:46.675781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.677443"], ["user_id", "a1794aee-74e6-4f78-8d0a-f8d30692532c"], ["created_at", "2015-07-06 21:19:46.678036"], ["updated_at", "2015-07-06 21:19:46.678036"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.681948"], ["updated_at", "2015-07-06 21:19:46.681948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1794aee-74e6-4f78-8d0a-f8d30692532c' AND "clubhouse_memberships"."organization_id" = '2749eacb-a853-4e8d-ae3f-8119771d33d2') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1794aee-74e6-4f78-8d0a-f8d30692532c"], ["organization_id", "2749eacb-a853-4e8d-ae3f-8119771d33d2"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.685592"], ["updated_at", "2015-07-06 21:19:46.685592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$HYQYEh78XYdCx8x6M9vO3Oyux4ee3XfTt0kX8kAxa/Mg6ybnqymAK"], ["created_at", "2015-07-06 21:19:46.698751"], ["updated_at", "2015-07-06 21:19:46.698751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.700600"], ["user_id", "dbd2a13f-c9d9-46d6-acc3-6f28b0f983c8"], ["created_at", "2015-07-06 21:19:46.701231"], ["updated_at", "2015-07-06 21:19:46.701231"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.705922"], ["updated_at", "2015-07-06 21:19:46.705922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dbd2a13f-c9d9-46d6-acc3-6f28b0f983c8' AND "clubhouse_memberships"."organization_id" = '69cca600-667a-4463-b40b-e4174ad3f7a7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dbd2a13f-c9d9-46d6-acc3-6f28b0f983c8"], ["organization_id", "69cca600-667a-4463-b40b-e4174ad3f7a7"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.708977"], ["updated_at", "2015-07-06 21:19:46.708977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-6" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-6", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:46.712230') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "32256dba-f4d1-43f6-814b-cf3ea0afa1ab"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:46.713923"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:46.714777"], ["id", "32256dba-f4d1-43f6-814b-cf3ea0afa1ab"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dbd2a13f-c9d9-46d6-acc3-6f28b0f983c8"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'dbd2a13f-c9d9-46d6-acc3-6f28b0f983c8' LIMIT 1 [["organization_id", "69cca600-667a-4463-b40b-e4174ad3f7a7"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '69cca600-667a-4463-b40b-e4174ad3f7a7') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:19:46.723190"], ["id", "69cca600-667a-4463-b40b-e4174ad3f7a7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$I1rpTltUcWEai6rRnARCJuzofDF10SUKCTaB5O0tyN4DJFqFIv97C"], ["created_at", "2015-07-06 21:19:46.733272"], ["updated_at", "2015-07-06 21:19:46.733272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.735088"], ["user_id", "8993bd30-0133-44b9-b53a-2a0a65ba7da6"], ["created_at", "2015-07-06 21:19:46.735717"], ["updated_at", "2015-07-06 21:19:46.735717"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.742111"], ["updated_at", "2015-07-06 21:19:46.742111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8993bd30-0133-44b9-b53a-2a0a65ba7da6' AND "clubhouse_memberships"."organization_id" = '6d2bf3a5-edd1-4cc5-8a87-f1d4f18295e9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8993bd30-0133-44b9-b53a-2a0a65ba7da6"], ["organization_id", "6d2bf3a5-edd1-4cc5-8a87-f1d4f18295e9"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.745614"], ["updated_at", "2015-07-06 21:19:46.745614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-7" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-7", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:46.751029') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1f1b35d6-a3c2-4203-82a2-ca25f4a754fd"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:46.752913"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:46.753784"], ["id", "1f1b35d6-a3c2-4203-82a2-ca25f4a754fd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-7"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8993bd30-0133-44b9-b53a-2a0a65ba7da6"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '8993bd30-0133-44b9-b53a-2a0a65ba7da6' LIMIT 1 [["organization_id", "6d2bf3a5-edd1-4cc5-8a87-f1d4f18295e9"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6d2bf3a5-edd1-4cc5-8a87-f1d4f18295e9') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 23ms (ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$p20mH5vt5w8pVBmGdHPKcej9A32KEUZUIN.6zuSuUy/Viznzy3u5S"], ["created_at", "2015-07-06 21:19:46.782131"], ["updated_at", "2015-07-06 21:19:46.782131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.784529"], ["user_id", "72038a5f-4745-4239-a9db-6dcb9463381d"], ["created_at", "2015-07-06 21:19:46.785397"], ["updated_at", "2015-07-06 21:19:46.785397"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.789992"], ["updated_at", "2015-07-06 21:19:46.789992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '72038a5f-4745-4239-a9db-6dcb9463381d' AND "clubhouse_memberships"."organization_id" = '49b6266a-6261-4cfc-b59e-7eb69dc73577') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "72038a5f-4745-4239-a9db-6dcb9463381d"], ["organization_id", "49b6266a-6261-4cfc-b59e-7eb69dc73577"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.793197"], ["updated_at", "2015-07-06 21:19:46.793197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$Hkeg/FpkLasJu.KvpM/AuuXRjAQrgC6hK2ugtNT8X3sYAT3WRsFKa"], ["created_at", "2015-07-06 21:19:46.801869"], ["updated_at", "2015-07-06 21:19:46.801869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.803449"], ["user_id", "8121a572-d893-4d2c-adc9-c71221527526"], ["created_at", "2015-07-06 21:19:46.804041"], ["updated_at", "2015-07-06 21:19:46.804041"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.807974"], ["updated_at", "2015-07-06 21:19:46.807974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8121a572-d893-4d2c-adc9-c71221527526' AND "clubhouse_memberships"."organization_id" = 'cdbcc307-018b-455f-a74d-7a341296a494') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8121a572-d893-4d2c-adc9-c71221527526"], ["organization_id", "cdbcc307-018b-455f-a74d-7a341296a494"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.811928"], ["updated_at", "2015-07-06 21:19:46.811928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/cdbcc307-018b-455f-a74d-7a341296a494" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"cdbcc307-018b-455f-a74d-7a341296a494", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:46.815518') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "54a06885-a17f-4139-8b6e-96dbc9aeeb03"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:46.817459"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:46.818241"], ["id", "54a06885-a17f-4139-8b6e-96dbc9aeeb03"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cdbcc307-018b-455f-a74d-7a341296a494"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8121a572-d893-4d2c-adc9-c71221527526"]] Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '8121a572-d893-4d2c-adc9-c71221527526' LIMIT 1 [["organization_id", "cdbcc307-018b-455f-a74d-7a341296a494"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "cdbcc307-018b-455f-a74d-7a341296a494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$mlIcBpVYOeBqWuTOzUAWNuEGXsnRyBvZo/DFXucd5cH6EvYwChv06"], ["created_at", "2015-07-06 21:19:46.834555"], ["updated_at", "2015-07-06 21:19:46.834555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.836130"], ["user_id", "fd6d1e09-982e-46da-a793-5bb77ac7a5c9"], ["created_at", "2015-07-06 21:19:46.836729"], ["updated_at", "2015-07-06 21:19:46.836729"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.840631"], ["updated_at", "2015-07-06 21:19:46.840631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fd6d1e09-982e-46da-a793-5bb77ac7a5c9' AND "clubhouse_memberships"."organization_id" = '4d5a6289-db3a-45ee-84c6-9da3667dc60b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fd6d1e09-982e-46da-a793-5bb77ac7a5c9"], ["organization_id", "4d5a6289-db3a-45ee-84c6-9da3667dc60b"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.843857"], ["updated_at", "2015-07-06 21:19:46.843857"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$bexjGJ8iCqR90hUR5FEohegGm6FattLMJ7e1zXrR4cHoiBhwmNKfC"], ["created_at", "2015-07-06 21:19:46.850707"], ["updated_at", "2015-07-06 21:19:46.850707"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.856240"], ["updated_at", "2015-07-06 21:19:46.856240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b6e0ab9-5052-48eb-aa38-2df51474bff1' AND "clubhouse_memberships"."organization_id" = 'e886c03b-a1ff-47b7-917e-9121c413212c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8b6e0ab9-5052-48eb-aa38-2df51474bff1"], ["organization_id", "e886c03b-a1ff-47b7-917e-9121c413212c"], ["created_at", "2015-07-06 21:19:46.860315"], ["updated_at", "2015-07-06 21:19:46.860315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:46.864305') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "29b9ca8e-848f-438e-85e9-c4d538d59175"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:46.867733"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:46.868814"], ["id", "29b9ca8e-848f-438e-85e9-c4d538d59175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fd6d1e09-982e-46da-a793-5bb77ac7a5c9"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "fd6d1e09-982e-46da-a793-5bb77ac7a5c9"]] Completed 200 OK in 21ms (Views: 3.1ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$oaZBbhSbBRCwDhzuHrJCr.yzesCRYAHvYIXRtlt8D0bkNcmwLQzQ."], ["created_at", "2015-07-06 21:19:46.891756"], ["updated_at", "2015-07-06 21:19:46.891756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.893449"], ["user_id", "4afae08a-007f-4d1b-a927-b05a8470f289"], ["created_at", "2015-07-06 21:19:46.894099"], ["updated_at", "2015-07-06 21:19:46.894099"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.898071"], ["updated_at", "2015-07-06 21:19:46.898071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4afae08a-007f-4d1b-a927-b05a8470f289' AND "clubhouse_memberships"."organization_id" = '455453c7-1a94-40f9-885a-1b38df8cccb6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4afae08a-007f-4d1b-a927-b05a8470f289"], ["organization_id", "455453c7-1a94-40f9-885a-1b38df8cccb6"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.901608"], ["updated_at", "2015-07-06 21:19:46.901608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$C7Wc8/hcKCXdjBkIdm452e2eU4KtqSVtnqUG4AqcSK9O9bDo0fyTa"], ["created_at", "2015-07-06 21:19:46.907032"], ["updated_at", "2015-07-06 21:19:46.907032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.910750"], ["updated_at", "2015-07-06 21:19:46.910750"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '48f4cc29-f223-4d80-902d-d12d1f2ad6f6' AND "clubhouse_memberships"."organization_id" = '15e94c23-9246-45b4-8925-662ee47972c1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "48f4cc29-f223-4d80-902d-d12d1f2ad6f6"], ["organization_id", "15e94c23-9246-45b4-8925-662ee47972c1"], ["created_at", "2015-07-06 21:19:46.915112"], ["updated_at", "2015-07-06 21:19:46.915112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$5jrAnQ6rQ3gaiamWZ7xJCeXCEC04okKJ6uDDsulpa0VUcG0uNV.Dm"], ["created_at", "2015-07-06 21:19:46.926521"], ["updated_at", "2015-07-06 21:19:46.926521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.928926"], ["user_id", "0d12af27-501a-4d13-b374-7cd89560c400"], ["created_at", "2015-07-06 21:19:46.929674"], ["updated_at", "2015-07-06 21:19:46.929674"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.934427"], ["updated_at", "2015-07-06 21:19:46.934427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d12af27-501a-4d13-b374-7cd89560c400' AND "clubhouse_memberships"."organization_id" = '1e6783a6-b090-4f80-ae77-a3921339cfd1') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d12af27-501a-4d13-b374-7cd89560c400"], ["organization_id", "1e6783a6-b090-4f80-ae77-a3921339cfd1"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.937782"], ["updated_at", "2015-07-06 21:19:46.937782"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$a8AWrf4U6.UlDfvl3eCalObWWcqDJSfa8TSyb/o88Tu4hSstoYVsW"], ["created_at", "2015-07-06 21:19:46.949622"], ["updated_at", "2015-07-06 21:19:46.949622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.951199"], ["user_id", "b17453a1-9a5f-4a72-af7c-39593a182107"], ["created_at", "2015-07-06 21:19:46.951836"], ["updated_at", "2015-07-06 21:19:46.951836"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.956033"], ["updated_at", "2015-07-06 21:19:46.956033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b17453a1-9a5f-4a72-af7c-39593a182107' AND "clubhouse_memberships"."organization_id" = '3891aeef-4be8-4600-a7de-8cb349b3fb52') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b17453a1-9a5f-4a72-af7c-39593a182107"], ["organization_id", "3891aeef-4be8-4600-a7de-8cb349b3fb52"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.959348"], ["updated_at", "2015-07-06 21:19:46.959348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/3891aeef-4be8-4600-a7de-8cb349b3fb52" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"3891aeef-4be8-4600-a7de-8cb349b3fb52", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:46.962325') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c1bb067f-9e79-415c-bc9b-81253948c693"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:46.963702"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:46.964484"], ["id", "c1bb067f-9e79-415c-bc9b-81253948c693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3891aeef-4be8-4600-a7de-8cb349b3fb52"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b17453a1-9a5f-4a72-af7c-39593a182107"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b17453a1-9a5f-4a72-af7c-39593a182107' LIMIT 1 [["organization_id", "3891aeef-4be8-4600-a7de-8cb349b3fb52"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3891aeef-4be8-4600-a7de-8cb349b3fb52') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 11ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$vqnsXt.VSCv.lAp3dx9q4eT9KOcvMHw19xGXr8FQl9abKk2.UILo."], ["created_at", "2015-07-06 21:19:46.979460"], ["updated_at", "2015-07-06 21:19:46.979460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:46.981902"], ["user_id", "39c7bd8c-f60a-45a7-aa89-e81f4df78443"], ["created_at", "2015-07-06 21:19:46.983048"], ["updated_at", "2015-07-06 21:19:46.983048"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:46.987331"], ["updated_at", "2015-07-06 21:19:46.987331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39c7bd8c-f60a-45a7-aa89-e81f4df78443' AND "clubhouse_memberships"."organization_id" = '825c1507-4ccb-4086-8b7a-16d9c522e3ab') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39c7bd8c-f60a-45a7-aa89-e81f4df78443"], ["organization_id", "825c1507-4ccb-4086-8b7a-16d9c522e3ab"], ["admin", "t"], ["created_at", "2015-07-06 21:19:46.993145"], ["updated_at", "2015-07-06 21:19:46.993145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/825c1507-4ccb-4086-8b7a-16d9c522e3ab" for 127.0.0.1 at 2015-07-06 14:19:46 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"825c1507-4ccb-4086-8b7a-16d9c522e3ab", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:46.996291') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8c1ed629-1801-41cf-9255-bb0bd54af65e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:46.997686"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:46.998447"], ["id", "8c1ed629-1801-41cf-9255-bb0bd54af65e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "825c1507-4ccb-4086-8b7a-16d9c522e3ab"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39c7bd8c-f60a-45a7-aa89-e81f4df78443"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '39c7bd8c-f60a-45a7-aa89-e81f4df78443' LIMIT 1 [["organization_id", "825c1507-4ccb-4086-8b7a-16d9c522e3ab"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '825c1507-4ccb-4086-8b7a-16d9c522e3ab') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:19:47.005525"], ["id", "825c1507-4ccb-4086-8b7a-16d9c522e3ab"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$RL2wqsd/a/OWgcz.D5FxyugDdX2kapnm3Ru9am7Y1cfMu3y2WYcH2"], ["created_at", "2015-07-06 21:19:47.014506"], ["updated_at", "2015-07-06 21:19:47.014506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:47.016287"], ["user_id", "01236e7f-fd45-4783-b6c6-9b77b1c30809"], ["created_at", "2015-07-06 21:19:47.016979"], ["updated_at", "2015-07-06 21:19:47.016979"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:47.020893"], ["updated_at", "2015-07-06 21:19:47.020893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '01236e7f-fd45-4783-b6c6-9b77b1c30809' AND "clubhouse_memberships"."organization_id" = '86de7ec6-7165-4467-a106-9c6312be4f18') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "01236e7f-fd45-4783-b6c6-9b77b1c30809"], ["organization_id", "86de7ec6-7165-4467-a106-9c6312be4f18"], ["admin", "t"], ["created_at", "2015-07-06 21:19:47.024112"], ["updated_at", "2015-07-06 21:19:47.024112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:19:47 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$oRb.WnnsB5L6AVh71hB9.OP6JXwm9ES.U1UgA.CG1eWBSII5AQ7jC"], ["created_at", "2015-07-06 21:19:47.033731"], ["updated_at", "2015-07-06 21:19:47.033731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:47.035516"], ["user_id", "ad819eee-aeda-4269-bc71-cbaea00b8e40"], ["created_at", "2015-07-06 21:19:47.036131"], ["updated_at", "2015-07-06 21:19:47.036131"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:47.040296"], ["updated_at", "2015-07-06 21:19:47.040296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad819eee-aeda-4269-bc71-cbaea00b8e40' AND "clubhouse_memberships"."organization_id" = 'e20a4ecc-66eb-4d67-8c13-9a12a887ba38') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad819eee-aeda-4269-bc71-cbaea00b8e40"], ["organization_id", "e20a4ecc-66eb-4d67-8c13-9a12a887ba38"], ["admin", "t"], ["created_at", "2015-07-06 21:19:47.043687"], ["updated_at", "2015-07-06 21:19:47.043687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/e20a4ecc-66eb-4d67-8c13-9a12a887ba38" for 127.0.0.1 at 2015-07-06 14:19:47 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"e20a4ecc-66eb-4d67-8c13-9a12a887ba38", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:47.047289') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "32bc0a72-e9c2-45e0-a3fa-f1b34faf3c91"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:47.049183"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:47.049964"], ["id", "32bc0a72-e9c2-45e0-a3fa-f1b34faf3c91"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e20a4ecc-66eb-4d67-8c13-9a12a887ba38"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad819eee-aeda-4269-bc71-cbaea00b8e40"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ad819eee-aeda-4269-bc71-cbaea00b8e40' LIMIT 1 [["organization_id", "e20a4ecc-66eb-4d67-8c13-9a12a887ba38"]] Completed 200 OK in 8ms (Views: 0.7ms | ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$zXUDZoF3FM0Z/l7U9/o.1ONiCK2YCa9WQPKZLonyxQhXEul.hcAcq"], ["created_at", "2015-07-06 21:19:47.064221"], ["updated_at", "2015-07-06 21:19:47.064221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:47.065926"], ["user_id", "f25fa335-a49f-4db5-9eb8-c6fa0285e8fe"], ["created_at", "2015-07-06 21:19:47.066629"], ["updated_at", "2015-07-06 21:19:47.066629"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:47.070651"], ["updated_at", "2015-07-06 21:19:47.070651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f25fa335-a49f-4db5-9eb8-c6fa0285e8fe' AND "clubhouse_memberships"."organization_id" = 'dcd7183e-21e2-4ce0-b782-418db81e973f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f25fa335-a49f-4db5-9eb8-c6fa0285e8fe"], ["organization_id", "dcd7183e-21e2-4ce0-b782-418db81e973f"], ["admin", "t"], ["created_at", "2015-07-06 21:19:47.073575"], ["updated_at", "2015-07-06 21:19:47.073575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:19:47 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$N9wzm/WrG/ecx1NodHZKBOGRclTZFi/CCtu5LF/mU5y1WE4hCo/SG"], ["created_at", "2015-07-06 21:19:47.084189"], ["updated_at", "2015-07-06 21:19:47.084189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:47.086185"], ["user_id", "165433cf-040d-4092-a3f0-42b0127ba881"], ["created_at", "2015-07-06 21:19:47.086912"], ["updated_at", "2015-07-06 21:19:47.086912"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:47.090919"], ["updated_at", "2015-07-06 21:19:47.090919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '165433cf-040d-4092-a3f0-42b0127ba881' AND "clubhouse_memberships"."organization_id" = '6e2ec6dd-bb2f-4a55-9840-ee8e1d7bc111') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "165433cf-040d-4092-a3f0-42b0127ba881"], ["organization_id", "6e2ec6dd-bb2f-4a55-9840-ee8e1d7bc111"], ["admin", "t"], ["created_at", "2015-07-06 21:19:47.094570"], ["updated_at", "2015-07-06 21:19:47.094570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:19:47 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:47.098268') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8b169432-0691-4591-8c4b-b4064b289ecb"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:47.099624"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:47.100410"], ["id", "8b169432-0691-4591-8c4b-b4064b289ecb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$q7c0rhzQIm1grNL3.inuDOEOFQR2u39PPDrJM4TaJzeuWSXV0HOXK"], ["created_at", "2015-07-06 21:19:47.112235"], ["updated_at", "2015-07-06 21:19:47.112235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:47.114045"], ["user_id", "0bd8d6ff-f4f6-4553-a1ed-92b967477a1d"], ["created_at", "2015-07-06 21:19:47.114722"], ["updated_at", "2015-07-06 21:19:47.114722"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:47.119325"], ["updated_at", "2015-07-06 21:19:47.119325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0bd8d6ff-f4f6-4553-a1ed-92b967477a1d' AND "clubhouse_memberships"."organization_id" = '97cc874e-7e3f-462a-bdc8-3bad3963fda8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0bd8d6ff-f4f6-4553-a1ed-92b967477a1d"], ["organization_id", "97cc874e-7e3f-462a-bdc8-3bad3963fda8"], ["admin", "t"], ["created_at", "2015-07-06 21:19:47.122513"], ["updated_at", "2015-07-06 21:19:47.122513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-21" for 127.0.0.1 at 2015-07-06 14:19:47 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-21", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:47.125352') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "043b8502-a244-464b-9558-7a5b4ebf34f2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:47.126670"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:47.127458"], ["id", "043b8502-a244-464b-9558-7a5b4ebf34f2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0bd8d6ff-f4f6-4553-a1ed-92b967477a1d"]] Completed 200 OK in 6ms (ActiveRecord: 1.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$Azd.3f1O7W4St4JYTHMYN.PE/wuuc0dHKOUSBkNgdNa48O.4N74m2"], ["created_at", "2015-07-06 21:19:47.137560"], ["updated_at", "2015-07-06 21:19:47.137560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:47.139174"], ["user_id", "b2573a12-d085-4404-9710-df1c26ad583b"], ["created_at", "2015-07-06 21:19:47.139769"], ["updated_at", "2015-07-06 21:19:47.139769"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:47.144542"], ["updated_at", "2015-07-06 21:19:47.144542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b2573a12-d085-4404-9710-df1c26ad583b' AND "clubhouse_memberships"."organization_id" = 'bb7dd878-5cf1-4046-9d71-6df207962105') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b2573a12-d085-4404-9710-df1c26ad583b"], ["organization_id", "bb7dd878-5cf1-4046-9d71-6df207962105"], ["admin", "t"], ["created_at", "2015-07-06 21:19:47.148743"], ["updated_at", "2015-07-06 21:19:47.148743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:19:47 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$O7MThvqjs5ZjryyPNPMDMeck6d.f7/rhnE9TBUvEutBSAllMVnBh2"], ["created_at", "2015-07-06 21:19:47.159086"], ["updated_at", "2015-07-06 21:19:47.159086"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:47.162416"], ["user_id", "6e3bc925-ed94-413c-b3ee-8d7956c776a9"], ["created_at", "2015-07-06 21:19:47.163261"], ["updated_at", "2015-07-06 21:19:47.163261"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:47.168276"], ["updated_at", "2015-07-06 21:19:47.168276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6e3bc925-ed94-413c-b3ee-8d7956c776a9' AND "clubhouse_memberships"."organization_id" = 'd96275b0-cb34-48ea-9f48-29dc01bd1813') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6e3bc925-ed94-413c-b3ee-8d7956c776a9"], ["organization_id", "d96275b0-cb34-48ea-9f48-29dc01bd1813"], ["admin", "t"], ["created_at", "2015-07-06 21:19:47.172366"], ["updated_at", "2015-07-06 21:19:47.172366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:19:47 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:47.175522') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "db4e48e2-db1c-48e9-93f6-8af08ff98c2f"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:47.177334"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:47.178704"], ["id", "db4e48e2-db1c-48e9-93f6-8af08ff98c2f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6e3bc925-ed94-413c-b3ee-8d7956c776a9"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$LnhCNmv3vzTbpsDxxo45TepcLbhxlyFOtyZQq1MT3BqfuzBY61792"], ["created_at", "2015-07-06 21:19:47.204420"], ["updated_at", "2015-07-06 21:19:47.204420"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:19:47.208689"], ["user_id", "cdd625f2-0074-41ef-a74d-dda6cffb2d7c"], ["created_at", "2015-07-06 21:19:47.209736"], ["updated_at", "2015-07-06 21:19:47.209736"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:47.214596"], ["updated_at", "2015-07-06 21:19:47.214596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdd625f2-0074-41ef-a74d-dda6cffb2d7c' AND "clubhouse_memberships"."organization_id" = 'ed9a613b-0e1d-47d0-b47a-868f5fa2e0f4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdd625f2-0074-41ef-a74d-dda6cffb2d7c"], ["organization_id", "ed9a613b-0e1d-47d0-b47a-868f5fa2e0f4"], ["admin", "t"], ["created_at", "2015-07-06 21:19:47.217582"], ["updated_at", "2015-07-06 21:19:47.217582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:19:47 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:19:47.220450') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9911379b-0c37-4127-b90c-bfd7be2d24ef"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:19:47.221788"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:19:47.222544"], ["id", "9911379b-0c37-4127-b90c-bfd7be2d24ef"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cdd625f2-0074-41ef-a74d-dda6cffb2d7c"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:19:47.228114"], ["updated_at", "2015-07-06 21:19:47.228114"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cdd625f2-0074-41ef-a74d-dda6cffb2d7c' AND "clubhouse_memberships"."organization_id" = '8f9ca006-b4b4-4806-95a2-5dd726a0e3ba') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cdd625f2-0074-41ef-a74d-dda6cffb2d7c"], ["admin", "t"], ["organization_id", "8f9ca006-b4b4-4806-95a2-5dd726a0e3ba"], ["created_at", "2015-07-06 21:19:47.231029"], ["updated_at", "2015-07-06 21:19:47.231029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 13ms (Views: 0.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (3.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$K8eKu.EYRZEs6z62aXnyfu.nVzRR1IQDVvKW5ChzLboCDU1pV.6kK"], ["created_at", "2015-07-06 21:20:12.601417"], ["updated_at", "2015-07-06 21:20:12.601417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:12.628236"], ["user_id", "f639c43d-83da-4e0b-9225-1c31925df8f8"], ["created_at", "2015-07-06 21:20:12.636765"], ["updated_at", "2015-07-06 21:20:12.636765"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:12.649454"], ["updated_at", "2015-07-06 21:20:12.649454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f639c43d-83da-4e0b-9225-1c31925df8f8' AND "clubhouse_memberships"."organization_id" = 'fe042261-034d-4d7a-95c9-80b056e190f4') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f639c43d-83da-4e0b-9225-1c31925df8f8"], ["organization_id", "fe042261-034d-4d7a-95c9-80b056e190f4"], ["admin", "t"], ["created_at", "2015-07-06 21:20:12.663923"], ["updated_at", "2015-07-06 21:20:12.663923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:12 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$DWut0GYHsnmKFb7TbSKKkuTOjKcxQPJPY3rhYAz2QHJmq5p0MwmjO"], ["created_at", "2015-07-06 21:20:12.695494"], ["updated_at", "2015-07-06 21:20:12.695494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:12.697476"], ["user_id", "b517eea0-1cbf-4da8-9048-e04598de80b6"], ["created_at", "2015-07-06 21:20:12.698196"], ["updated_at", "2015-07-06 21:20:12.698196"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:12.702935"], ["updated_at", "2015-07-06 21:20:12.702935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b517eea0-1cbf-4da8-9048-e04598de80b6' AND "clubhouse_memberships"."organization_id" = 'c4320421-a793-4da7-80b1-5d9a21f6f52f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b517eea0-1cbf-4da8-9048-e04598de80b6"], ["organization_id", "c4320421-a793-4da7-80b1-5d9a21f6f52f"], ["admin", "t"], ["created_at", "2015-07-06 21:20:12.706336"], ["updated_at", "2015-07-06 21:20:12.706336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:12 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:12.710231') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fb9290dc-2e04-4bcf-aec6-89b7d519b193"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:12.718054"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:12.719517"], ["id", "fb9290dc-2e04-4bcf-aec6-89b7d519b193"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b517eea0-1cbf-4da8-9048-e04598de80b6"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:12.755232"], ["updated_at", "2015-07-06 21:20:12.755232"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b517eea0-1cbf-4da8-9048-e04598de80b6' AND "clubhouse_memberships"."organization_id" = 'fbfbbf85-d41c-4f0b-bec4-13c5123b7fe5') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b517eea0-1cbf-4da8-9048-e04598de80b6"], ["admin", "t"], ["organization_id", "fbfbbf85-d41c-4f0b-bec4-13c5123b7fe5"], ["created_at", "2015-07-06 21:20:12.759905"], ["updated_at", "2015-07-06 21:20:12.759905"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 68ms (Views: 16.0ms | ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$QFALXXHaogsMKgonLs115uxCM3WiGO71Xnli13cyf162/t6B29USC"], ["created_at", "2015-07-06 21:20:12.823181"], ["updated_at", "2015-07-06 21:20:12.823181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:12.825496"], ["user_id", "86a95698-60c0-4042-bffd-aea5e9ab5194"], ["created_at", "2015-07-06 21:20:12.826454"], ["updated_at", "2015-07-06 21:20:12.826454"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:12.832594"], ["updated_at", "2015-07-06 21:20:12.832594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '86a95698-60c0-4042-bffd-aea5e9ab5194' AND "clubhouse_memberships"."organization_id" = '7ccac3e5-4f90-42bd-9fc9-df0488072b4b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "86a95698-60c0-4042-bffd-aea5e9ab5194"], ["organization_id", "7ccac3e5-4f90-42bd-9fc9-df0488072b4b"], ["admin", "t"], ["created_at", "2015-07-06 21:20:12.847616"], ["updated_at", "2015-07-06 21:20:12.847616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:12 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:12.855372') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e44501e8-0b23-4ef7-b6ed-337447aa762b"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:12.858566"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:12.860249"], ["id", "e44501e8-0b23-4ef7-b6ed-337447aa762b"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "86a95698-60c0-4042-bffd-aea5e9ab5194"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 29ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$yBqN1hf8WU7UjHLwRSW5dez5vCq6cSQwv2gkfswcFNCzI7SnbjV/C"], ["created_at", "2015-07-06 21:20:12.892538"], ["updated_at", "2015-07-06 21:20:12.892538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:12.895467"], ["user_id", "a183f8c4-af63-4a58-8071-5f5341bf9ce6"], ["created_at", "2015-07-06 21:20:12.896377"], ["updated_at", "2015-07-06 21:20:12.896377"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:12.902232"], ["updated_at", "2015-07-06 21:20:12.902232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a183f8c4-af63-4a58-8071-5f5341bf9ce6' AND "clubhouse_memberships"."organization_id" = '5d0d0799-8179-4976-aaae-5c1cc664607e') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a183f8c4-af63-4a58-8071-5f5341bf9ce6"], ["organization_id", "5d0d0799-8179-4976-aaae-5c1cc664607e"], ["admin", "t"], ["created_at", "2015-07-06 21:20:12.907286"], ["updated_at", "2015-07-06 21:20:12.907286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-4" for 127.0.0.1 at 2015-07-06 14:20:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-4", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:12.911657') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a2373d7a-5108-4401-bdf6-b1d3fa2afe5a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:12.913510"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:12.914486"], ["id", "a2373d7a-5108-4401-bdf6-b1d3fa2afe5a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a183f8c4-af63-4a58-8071-5f5341bf9ce6"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a183f8c4-af63-4a58-8071-5f5341bf9ce6' LIMIT 1 [["organization_id", "5d0d0799-8179-4976-aaae-5c1cc664607e"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "5d0d0799-8179-4976-aaae-5c1cc664607e"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$xx62O1HMuhf.OJA5PiM9sesPPXfFj3V5yPX6iOJA183NOQsP45TGW"], ["created_at", "2015-07-06 21:20:12.932761"], ["updated_at", "2015-07-06 21:20:12.932761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:12.934592"], ["user_id", "f156dc1e-8c01-4170-8b12-fba1fc96ad6f"], ["created_at", "2015-07-06 21:20:12.935269"], ["updated_at", "2015-07-06 21:20:12.935269"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:12.939962"], ["updated_at", "2015-07-06 21:20:12.939962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f156dc1e-8c01-4170-8b12-fba1fc96ad6f' AND "clubhouse_memberships"."organization_id" = 'f3c44d84-ae7a-4198-a161-6bf051f94baa') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f156dc1e-8c01-4170-8b12-fba1fc96ad6f"], ["organization_id", "f3c44d84-ae7a-4198-a161-6bf051f94baa"], ["admin", "t"], ["created_at", "2015-07-06 21:20:12.943998"], ["updated_at", "2015-07-06 21:20:12.943998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:12 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$R8figZ4fy/1ptrl7G/RzSuSxfLkoV80fHBo8LBF.y89BgdEo0mMFW"], ["created_at", "2015-07-06 21:20:12.954443"], ["updated_at", "2015-07-06 21:20:12.954443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:12.956248"], ["user_id", "12f266e2-9594-4c20-b85c-657e771a0e7c"], ["created_at", "2015-07-06 21:20:12.956935"], ["updated_at", "2015-07-06 21:20:12.956935"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:12.961827"], ["updated_at", "2015-07-06 21:20:12.961827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12f266e2-9594-4c20-b85c-657e771a0e7c' AND "clubhouse_memberships"."organization_id" = 'e2dab9a6-0d64-4740-bb4c-55370d13f9ed') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "12f266e2-9594-4c20-b85c-657e771a0e7c"], ["organization_id", "e2dab9a6-0d64-4740-bb4c-55370d13f9ed"], ["admin", "t"], ["created_at", "2015-07-06 21:20:12.966403"], ["updated_at", "2015-07-06 21:20:12.966403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$2F0Lsp5lpu7mbghFHIi0..MewhspaY1174D7LKGd8pq2uptyriXPW"], ["created_at", "2015-07-06 21:20:12.977258"], ["updated_at", "2015-07-06 21:20:12.977258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:12.979348"], ["user_id", "4fcea280-dfd9-41e8-96f9-504a18fe151f"], ["created_at", "2015-07-06 21:20:12.980095"], ["updated_at", "2015-07-06 21:20:12.980095"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:12.984566"], ["updated_at", "2015-07-06 21:20:12.984566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fcea280-dfd9-41e8-96f9-504a18fe151f' AND "clubhouse_memberships"."organization_id" = '2dd2c034-8013-478f-bd27-e3f42b283724') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fcea280-dfd9-41e8-96f9-504a18fe151f"], ["organization_id", "2dd2c034-8013-478f-bd27-e3f42b283724"], ["admin", "t"], ["created_at", "2015-07-06 21:20:12.989121"], ["updated_at", "2015-07-06 21:20:12.989121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-7" for 127.0.0.1 at 2015-07-06 14:20:12 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-7", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:12.993282') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d543763e-015c-4638-a9ab-916f3d865850"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:12.995268"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:12.996257"], ["id", "d543763e-015c-4638-a9ab-916f3d865850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-7"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4fcea280-dfd9-41e8-96f9-504a18fe151f"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '4fcea280-dfd9-41e8-96f9-504a18fe151f' LIMIT 1 [["organization_id", "2dd2c034-8013-478f-bd27-e3f42b283724"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2dd2c034-8013-478f-bd27-e3f42b283724') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:20:13.005556"], ["id", "2dd2c034-8013-478f-bd27-e3f42b283724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 1.0ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$eUO713xndgDOl2wIleYXDOpEjk5H/tzRfUqVhhxR8n14UU7AvzKBy"], ["created_at", "2015-07-06 21:20:13.017925"], ["updated_at", "2015-07-06 21:20:13.017925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.020490"], ["user_id", "b92a5f2a-c208-4b27-ae47-d86f27283a49"], ["created_at", "2015-07-06 21:20:13.021315"], ["updated_at", "2015-07-06 21:20:13.021315"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.026581"], ["updated_at", "2015-07-06 21:20:13.026581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b92a5f2a-c208-4b27-ae47-d86f27283a49' AND "clubhouse_memberships"."organization_id" = 'd77fabbb-ece6-4801-a1ff-81f097e75ee8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b92a5f2a-c208-4b27-ae47-d86f27283a49"], ["organization_id", "d77fabbb-ece6-4801-a1ff-81f097e75ee8"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.030697"], ["updated_at", "2015-07-06 21:20:13.030697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-8" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-8", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:13.033694') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f1bf1605-3def-40cd-b792-8297a2b51952"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:13.035143"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:13.036337"], ["id", "f1bf1605-3def-40cd-b792-8297a2b51952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-8"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b92a5f2a-c208-4b27-ae47-d86f27283a49"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b92a5f2a-c208-4b27-ae47-d86f27283a49' LIMIT 1 [["organization_id", "d77fabbb-ece6-4801-a1ff-81f097e75ee8"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd77fabbb-ece6-4801-a1ff-81f097e75ee8') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$rC00/CQ0nvmHmIsuS/5mUe84cPdCpdnyWkrkN6Dw6Ag6zYtfA47Gi"], ["created_at", "2015-07-06 21:20:13.055741"], ["updated_at", "2015-07-06 21:20:13.055741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.057531"], ["user_id", "6985e952-c552-4d07-891c-63652909677e"], ["created_at", "2015-07-06 21:20:13.058219"], ["updated_at", "2015-07-06 21:20:13.058219"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.063399"], ["updated_at", "2015-07-06 21:20:13.063399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6985e952-c552-4d07-891c-63652909677e' AND "clubhouse_memberships"."organization_id" = '95ef39df-7b71-4fae-b767-a4aa2e95a1fc') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6985e952-c552-4d07-891c-63652909677e"], ["organization_id", "95ef39df-7b71-4fae-b767-a4aa2e95a1fc"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.066884"], ["updated_at", "2015-07-06 21:20:13.066884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$6MZo935OBwR9qDkSxGnKAO0y6tn0sdv9fCr.5zrNLKsI7EfrBY1Um"], ["created_at", "2015-07-06 21:20:13.078082"], ["updated_at", "2015-07-06 21:20:13.078082"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.080780"], ["user_id", "d4a5e017-2bfb-4fe4-90c6-ec7a59ee4bf2"], ["created_at", "2015-07-06 21:20:13.081661"], ["updated_at", "2015-07-06 21:20:13.081661"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.087852"], ["updated_at", "2015-07-06 21:20:13.087852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd4a5e017-2bfb-4fe4-90c6-ec7a59ee4bf2' AND "clubhouse_memberships"."organization_id" = '79f9a925-2cf6-4cda-ae02-06079256fad9') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d4a5e017-2bfb-4fe4-90c6-ec7a59ee4bf2"], ["organization_id", "79f9a925-2cf6-4cda-ae02-06079256fad9"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.092247"], ["updated_at", "2015-07-06 21:20:13.092247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/79f9a925-2cf6-4cda-ae02-06079256fad9" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"79f9a925-2cf6-4cda-ae02-06079256fad9", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:13.096642') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "83b726f2-a62e-4179-a38d-d4928ce4d4a6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:13.098036"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:13.098873"], ["id", "83b726f2-a62e-4179-a38d-d4928ce4d4a6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "79f9a925-2cf6-4cda-ae02-06079256fad9"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d4a5e017-2bfb-4fe4-90c6-ec7a59ee4bf2"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd4a5e017-2bfb-4fe4-90c6-ec7a59ee4bf2' LIMIT 1 [["organization_id", "79f9a925-2cf6-4cda-ae02-06079256fad9"]] Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$Xi/KNJ0/9tpjZOY6DgbaN.vGeJ6RMYkkuLLXhDAJKsxADRna.RQzK"], ["created_at", "2015-07-06 21:20:13.113481"], ["updated_at", "2015-07-06 21:20:13.113481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.115362"], ["user_id", "4674893f-5673-46d4-b56b-9350dac5c645"], ["created_at", "2015-07-06 21:20:13.116073"], ["updated_at", "2015-07-06 21:20:13.116073"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.120490"], ["updated_at", "2015-07-06 21:20:13.120490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4674893f-5673-46d4-b56b-9350dac5c645' AND "clubhouse_memberships"."organization_id" = 'd07b09a4-ce26-4970-8fa7-97cccc391148') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4674893f-5673-46d4-b56b-9350dac5c645"], ["organization_id", "d07b09a4-ce26-4970-8fa7-97cccc391148"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.123602"], ["updated_at", "2015-07-06 21:20:13.123602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$Dm9MWONd.maw5ZJsCfD3nuijv/z6GCEPquFOfqJJnZaE3sjGQfoJ2"], ["created_at", "2015-07-06 21:20:13.130690"], ["updated_at", "2015-07-06 21:20:13.130690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.135151"], ["updated_at", "2015-07-06 21:20:13.135151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46471902-25a0-4645-9fd7-2311a6b8fc33' AND "clubhouse_memberships"."organization_id" = 'ef4c8f03-057b-49f9-95da-94c561e66a69') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46471902-25a0-4645-9fd7-2311a6b8fc33"], ["organization_id", "ef4c8f03-057b-49f9-95da-94c561e66a69"], ["created_at", "2015-07-06 21:20:13.138443"], ["updated_at", "2015-07-06 21:20:13.138443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$AtfOTAYnBAJzDf0ZeRqS5OOL82UCHw3UoYJz9tyalumAQPNuGdUEy"], ["created_at", "2015-07-06 21:20:13.149475"], ["updated_at", "2015-07-06 21:20:13.149475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.151308"], ["user_id", "796229e0-cc0b-4012-a09a-257a5cc5aa84"], ["created_at", "2015-07-06 21:20:13.151987"], ["updated_at", "2015-07-06 21:20:13.151987"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.156367"], ["updated_at", "2015-07-06 21:20:13.156367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '796229e0-cc0b-4012-a09a-257a5cc5aa84' AND "clubhouse_memberships"."organization_id" = '6c9a0691-d9f7-4006-988e-1b8d1055d53d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "796229e0-cc0b-4012-a09a-257a5cc5aa84"], ["organization_id", "6c9a0691-d9f7-4006-988e-1b8d1055d53d"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.159933"], ["updated_at", "2015-07-06 21:20:13.159933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$ZQfNrvdtFTgjG88cmOwl5e91dWmpieVZhxbZHiumHl4Wzat0k.wxW"], ["created_at", "2015-07-06 21:20:13.165397"], ["updated_at", "2015-07-06 21:20:13.165397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.169546"], ["updated_at", "2015-07-06 21:20:13.169546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a33c6523-9d0c-43ff-9dbe-6e4ed6896e04' AND "clubhouse_memberships"."organization_id" = '86406c9b-fc68-41cd-971a-0eae0401b1d8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a33c6523-9d0c-43ff-9dbe-6e4ed6896e04"], ["organization_id", "86406c9b-fc68-41cd-971a-0eae0401b1d8"], ["created_at", "2015-07-06 21:20:13.173130"], ["updated_at", "2015-07-06 21:20:13.173130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:13.176714') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8e3fc634-d3b6-47b6-a435-96e9cff8a3a3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:13.178135"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:13.178917"], ["id", "8e3fc634-d3b6-47b6-a435-96e9cff8a3a3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "796229e0-cc0b-4012-a09a-257a5cc5aa84"]] Clubhouse::Organization Load (0.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "796229e0-cc0b-4012-a09a-257a5cc5aa84"]] Completed 200 OK in 14ms (Views: 4.9ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$2EFFz8Q3ef1R0EC2C8icxulBXrM02AYIB9Ud31J.xiGUR4HDw763a"], ["created_at", "2015-07-06 21:20:13.201203"], ["updated_at", "2015-07-06 21:20:13.201203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.202926"], ["user_id", "e92f37a4-bca4-4825-a163-9d2391051a59"], ["created_at", "2015-07-06 21:20:13.203586"], ["updated_at", "2015-07-06 21:20:13.203586"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.208528"], ["updated_at", "2015-07-06 21:20:13.208528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e92f37a4-bca4-4825-a163-9d2391051a59' AND "clubhouse_memberships"."organization_id" = '62fbeeb7-6409-413c-a865-64ab067cbad8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e92f37a4-bca4-4825-a163-9d2391051a59"], ["organization_id", "62fbeeb7-6409-413c-a865-64ab067cbad8"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.212857"], ["updated_at", "2015-07-06 21:20:13.212857"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$QfT/r6Q13nMtAPpTIfeCo.gZa3fn0TKr9y7bFznbx4BKuvkaquOLq"], ["created_at", "2015-07-06 21:20:13.225465"], ["updated_at", "2015-07-06 21:20:13.225465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.228621"], ["user_id", "330fc373-1adc-4035-9e50-09df612bcd6b"], ["created_at", "2015-07-06 21:20:13.230115"], ["updated_at", "2015-07-06 21:20:13.230115"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.236581"], ["updated_at", "2015-07-06 21:20:13.236581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '330fc373-1adc-4035-9e50-09df612bcd6b' AND "clubhouse_memberships"."organization_id" = 'd8da4231-ac0b-41a9-a22f-558f4d455470') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "330fc373-1adc-4035-9e50-09df612bcd6b"], ["organization_id", "d8da4231-ac0b-41a9-a22f-558f4d455470"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.240777"], ["updated_at", "2015-07-06 21:20:13.240777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-16" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-16", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:13.245154') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "db145fb3-21ab-46b9-ac1b-972c3659474e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:13.246911"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:13.247836"], ["id", "db145fb3-21ab-46b9-ac1b-972c3659474e"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "330fc373-1adc-4035-9e50-09df612bcd6b"]] Completed 200 OK in 10ms (ActiveRecord: 1.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$GTYzXh.jrB.ZMoV2RCXmAOkYoMkBeOnCnWlIZ.ox9anKZ7cd4B0AO"], ["created_at", "2015-07-06 21:20:13.263765"], ["updated_at", "2015-07-06 21:20:13.263765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.265832"], ["user_id", "75631ee1-14ac-4750-a727-2e880187c530"], ["created_at", "2015-07-06 21:20:13.266557"], ["updated_at", "2015-07-06 21:20:13.266557"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.270747"], ["updated_at", "2015-07-06 21:20:13.270747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75631ee1-14ac-4750-a727-2e880187c530' AND "clubhouse_memberships"."organization_id" = '4eafd562-f4f3-49b7-8ea0-755130417ab6') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75631ee1-14ac-4750-a727-2e880187c530"], ["organization_id", "4eafd562-f4f3-49b7-8ea0-755130417ab6"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.273860"], ["updated_at", "2015-07-06 21:20:13.273860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:13.277522') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bf263f90-e490-4d74-bd23-306485890a25"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:13.279458"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:13.280431"], ["id", "bf263f90-e490-4d74-bd23-306485890a25"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$0CvsiuClvgoxm7BEEfiMCe./EZBzrzOh9TiHhw2w4jL3LrK13l.Ea"], ["created_at", "2015-07-06 21:20:13.291212"], ["updated_at", "2015-07-06 21:20:13.291212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.294006"], ["user_id", "2c511db8-faa3-483c-b2d5-57bad4cddf6c"], ["created_at", "2015-07-06 21:20:13.295057"], ["updated_at", "2015-07-06 21:20:13.295057"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.300407"], ["updated_at", "2015-07-06 21:20:13.300407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c511db8-faa3-483c-b2d5-57bad4cddf6c' AND "clubhouse_memberships"."organization_id" = 'a6d0bf61-167e-46bd-bb35-925cdd37772d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c511db8-faa3-483c-b2d5-57bad4cddf6c"], ["organization_id", "a6d0bf61-167e-46bd-bb35-925cdd37772d"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.303593"], ["updated_at", "2015-07-06 21:20:13.303593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$Oo.pa5tXwg.MMAUrxaOmx.eeuhqBLo8V3KHe8L2cyEscWUUu3qJQO"], ["created_at", "2015-07-06 21:20:13.314403"], ["updated_at", "2015-07-06 21:20:13.314403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.316434"], ["user_id", "15e7a47f-f7dd-48c8-b694-41362476d64b"], ["created_at", "2015-07-06 21:20:13.317199"], ["updated_at", "2015-07-06 21:20:13.317199"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.321530"], ["updated_at", "2015-07-06 21:20:13.321530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15e7a47f-f7dd-48c8-b694-41362476d64b' AND "clubhouse_memberships"."organization_id" = 'ab484d5c-63de-4279-b09e-34cf8e758cc9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15e7a47f-f7dd-48c8-b694-41362476d64b"], ["organization_id", "ab484d5c-63de-4279-b09e-34cf8e758cc9"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.324707"], ["updated_at", "2015-07-06 21:20:13.324707"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/ab484d5c-63de-4279-b09e-34cf8e758cc9" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"ab484d5c-63de-4279-b09e-34cf8e758cc9", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:13.328969') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f76ea4c6-01e4-4462-9faf-cc5491ce43cd"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:13.330570"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:13.331386"], ["id", "f76ea4c6-01e4-4462-9faf-cc5491ce43cd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ab484d5c-63de-4279-b09e-34cf8e758cc9"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "15e7a47f-f7dd-48c8-b694-41362476d64b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '15e7a47f-f7dd-48c8-b694-41362476d64b' LIMIT 1 [["organization_id", "ab484d5c-63de-4279-b09e-34cf8e758cc9"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ab484d5c-63de-4279-b09e-34cf8e758cc9') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$ESxmgUekWuCDaqhaOA1lYePzfaJPynN/G6x/uUZkPtr8jePgfzuEO"], ["created_at", "2015-07-06 21:20:13.348902"], ["updated_at", "2015-07-06 21:20:13.348902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.351142"], ["user_id", "70ff0560-2423-4834-b531-d57e3481ff97"], ["created_at", "2015-07-06 21:20:13.351928"], ["updated_at", "2015-07-06 21:20:13.351928"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.356853"], ["updated_at", "2015-07-06 21:20:13.356853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '70ff0560-2423-4834-b531-d57e3481ff97' AND "clubhouse_memberships"."organization_id" = 'b5dc0a4d-5089-4aab-943f-1f59a427827c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "70ff0560-2423-4834-b531-d57e3481ff97"], ["organization_id", "b5dc0a4d-5089-4aab-943f-1f59a427827c"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.360927"], ["updated_at", "2015-07-06 21:20:13.360927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/b5dc0a4d-5089-4aab-943f-1f59a427827c" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"b5dc0a4d-5089-4aab-943f-1f59a427827c", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:13.364468') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2aeeb1f5-b186-4c4d-b98c-416074a9874b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:13.366431"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:13.367299"], ["id", "2aeeb1f5-b186-4c4d-b98c-416074a9874b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b5dc0a4d-5089-4aab-943f-1f59a427827c"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "70ff0560-2423-4834-b531-d57e3481ff97"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '70ff0560-2423-4834-b531-d57e3481ff97' LIMIT 1 [["organization_id", "b5dc0a4d-5089-4aab-943f-1f59a427827c"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'b5dc0a4d-5089-4aab-943f-1f59a427827c') LIMIT 1 SQL (0.5ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:20:13.379062"], ["id", "b5dc0a4d-5089-4aab-943f-1f59a427827c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$nmCDOxfMSD0w9S5OKO5NseNKl1zoefB0QozIRGAgnDUlq5YDiO8ui"], ["created_at", "2015-07-06 21:20:13.392474"], ["updated_at", "2015-07-06 21:20:13.392474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.394936"], ["user_id", "38171708-c304-4531-9f61-e0462582255a"], ["created_at", "2015-07-06 21:20:13.395600"], ["updated_at", "2015-07-06 21:20:13.395600"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.399932"], ["updated_at", "2015-07-06 21:20:13.399932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38171708-c304-4531-9f61-e0462582255a' AND "clubhouse_memberships"."organization_id" = '7128bebd-c368-4dc6-842c-66a01d9990f1') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38171708-c304-4531-9f61-e0462582255a"], ["organization_id", "7128bebd-c368-4dc6-842c-66a01d9990f1"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.403417"], ["updated_at", "2015-07-06 21:20:13.403417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-21" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-21", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:13.406610') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d8577aab-1080-43e4-8df9-aa88fe40384f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:13.408068"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:13.408878"], ["id", "d8577aab-1080-43e4-8df9-aa88fe40384f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "38171708-c304-4531-9f61-e0462582255a"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '38171708-c304-4531-9f61-e0462582255a' LIMIT 1 [["organization_id", "7128bebd-c368-4dc6-842c-66a01d9990f1"]] Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$lLgaUa5QIymgk0M6dsmAEeuhuMukBxoWSiQKs4N9vjSrHKqM0M1p."], ["created_at", "2015-07-06 21:20:13.423200"], ["updated_at", "2015-07-06 21:20:13.423200"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.426353"], ["user_id", "fe25cf6f-376d-4f27-a87f-04c6dbd15afc"], ["created_at", "2015-07-06 21:20:13.427413"], ["updated_at", "2015-07-06 21:20:13.427413"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.432951"], ["updated_at", "2015-07-06 21:20:13.432951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fe25cf6f-376d-4f27-a87f-04c6dbd15afc' AND "clubhouse_memberships"."organization_id" = '7b7cad96-a25d-4a67-a8e6-55919acc0330') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fe25cf6f-376d-4f27-a87f-04c6dbd15afc"], ["organization_id", "7b7cad96-a25d-4a67-a8e6-55919acc0330"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.436541"], ["updated_at", "2015-07-06 21:20:13.436541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$iFJSMnHczDbumhiVaZ2aledCfsMbA95PL77/Hj5Abhoj66VG04XjW"], ["created_at", "2015-07-06 21:20:13.447700"], ["updated_at", "2015-07-06 21:20:13.447700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.449686"], ["user_id", "e214efaa-4da2-4e1d-8369-4648cbd3c25c"], ["created_at", "2015-07-06 21:20:13.450367"], ["updated_at", "2015-07-06 21:20:13.450367"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.454514"], ["updated_at", "2015-07-06 21:20:13.454514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e214efaa-4da2-4e1d-8369-4648cbd3c25c' AND "clubhouse_memberships"."organization_id" = 'a0e44319-cd5b-4cc1-833a-e64f89b3b408') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e214efaa-4da2-4e1d-8369-4648cbd3c25c"], ["organization_id", "a0e44319-cd5b-4cc1-833a-e64f89b3b408"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.457690"], ["updated_at", "2015-07-06 21:20:13.457690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$RCbz.u8TIPraH7gF2U4swOQVmoanhoqMlTAaC/BFBdiiekt2qPJ4K"], ["created_at", "2015-07-06 21:20:13.467861"], ["updated_at", "2015-07-06 21:20:13.467861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:13.469650"], ["user_id", "d8d92758-2f73-4b41-ac2e-5d92c3554caa"], ["created_at", "2015-07-06 21:20:13.470346"], ["updated_at", "2015-07-06 21:20:13.470346"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:13.474544"], ["updated_at", "2015-07-06 21:20:13.474544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd8d92758-2f73-4b41-ac2e-5d92c3554caa' AND "clubhouse_memberships"."organization_id" = '52516c41-3d86-4137-b703-1abaa1a27e0d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d8d92758-2f73-4b41-ac2e-5d92c3554caa"], ["organization_id", "52516c41-3d86-4137-b703-1abaa1a27e0d"], ["admin", "t"], ["created_at", "2015-07-06 21:20:13.478946"], ["updated_at", "2015-07-06 21:20:13.478946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/52516c41-3d86-4137-b703-1abaa1a27e0d" for 127.0.0.1 at 2015-07-06 14:20:13 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"52516c41-3d86-4137-b703-1abaa1a27e0d", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:13.482921') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0e2df2f6-bd6c-4017-a144-d82118a13b95"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:13.484568"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:13.485490"], ["id", "0e2df2f6-bd6c-4017-a144-d82118a13b95"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "52516c41-3d86-4137-b703-1abaa1a27e0d"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d8d92758-2f73-4b41-ac2e-5d92c3554caa"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd8d92758-2f73-4b41-ac2e-5d92c3554caa' LIMIT 1 [["organization_id", "52516c41-3d86-4137-b703-1abaa1a27e0d"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "52516c41-3d86-4137-b703-1abaa1a27e0d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$PsPskdZ3PGwT0dTxY50XeeZ5wklIOkib2P9mBCapz2xb3uyg5ewrS"], ["created_at", "2015-07-06 21:20:28.934375"], ["updated_at", "2015-07-06 21:20:28.934375"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:28.951201"], ["user_id", "3864af80-b00e-4bc6-9ac5-2d260bfbd8eb"], ["created_at", "2015-07-06 21:20:28.960667"], ["updated_at", "2015-07-06 21:20:28.960667"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:28.974257"], ["updated_at", "2015-07-06 21:20:28.974257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3864af80-b00e-4bc6-9ac5-2d260bfbd8eb' AND "clubhouse_memberships"."organization_id" = '87c7e2ac-bd10-4c56-aae9-331a8607a2f2') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3864af80-b00e-4bc6-9ac5-2d260bfbd8eb"], ["organization_id", "87c7e2ac-bd10-4c56-aae9-331a8607a2f2"], ["admin", "t"], ["created_at", "2015-07-06 21:20:28.985447"], ["updated_at", "2015-07-06 21:20:28.985447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:28 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$tSfEdxr5NISiwnG//TcuEugYY1IghDja7Dlc6qsuYAL06a5f1UCja"], ["created_at", "2015-07-06 21:20:29.024555"], ["updated_at", "2015-07-06 21:20:29.024555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.026788"], ["user_id", "cde29bc9-6e43-4eff-919a-ff317ddcf8cf"], ["created_at", "2015-07-06 21:20:29.027637"], ["updated_at", "2015-07-06 21:20:29.027637"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.032316"], ["updated_at", "2015-07-06 21:20:29.032316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cde29bc9-6e43-4eff-919a-ff317ddcf8cf' AND "clubhouse_memberships"."organization_id" = 'a897b9da-07e8-4b67-a807-8b326f74acc9') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cde29bc9-6e43-4eff-919a-ff317ddcf8cf"], ["organization_id", "a897b9da-07e8-4b67-a807-8b326f74acc9"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.035625"], ["updated_at", "2015-07-06 21:20:29.035625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-2" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Context Load (0.9ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.038961') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "170508cb-c095-4ae7-9a3f-6bfb611ce730"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.047986"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.049333"], ["id", "170508cb-c095-4ae7-9a3f-6bfb611ce730"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-2"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cde29bc9-6e43-4eff-919a-ff317ddcf8cf"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cde29bc9-6e43-4eff-919a-ff317ddcf8cf' LIMIT 1 [["organization_id", "a897b9da-07e8-4b67-a807-8b326f74acc9"]] Completed 200 OK in 47ms (Views: 10.6ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$xTt.h1jHKtbfZCVNqTXeyurmAFsiu3zOR3P3cXLKumahT4DYNYj42"], ["created_at", "2015-07-06 21:20:29.095842"], ["updated_at", "2015-07-06 21:20:29.095842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.097729"], ["user_id", "e7efa780-97a9-4709-8e91-82c61b20e4d9"], ["created_at", "2015-07-06 21:20:29.098430"], ["updated_at", "2015-07-06 21:20:29.098430"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.102904"], ["updated_at", "2015-07-06 21:20:29.102904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e7efa780-97a9-4709-8e91-82c61b20e4d9' AND "clubhouse_memberships"."organization_id" = '0f8aa337-5ae8-4949-8957-8f9920504676') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e7efa780-97a9-4709-8e91-82c61b20e4d9"], ["organization_id", "0f8aa337-5ae8-4949-8957-8f9920504676"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.106214"], ["updated_at", "2015-07-06 21:20:29.106214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$yFU65CTw8AwHWk/b1ntf9uvV0gKxzjBETwPNhvjiE1v.D.8aHi47q"], ["created_at", "2015-07-06 21:20:29.116347"], ["updated_at", "2015-07-06 21:20:29.116347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.118220"], ["user_id", "1499f5ea-5c34-4ff2-a49d-f9b39ab9a1d1"], ["created_at", "2015-07-06 21:20:29.118957"], ["updated_at", "2015-07-06 21:20:29.118957"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.123388"], ["updated_at", "2015-07-06 21:20:29.123388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1499f5ea-5c34-4ff2-a49d-f9b39ab9a1d1' AND "clubhouse_memberships"."organization_id" = '55fe0f18-ebd3-4866-9acc-6f4f7cb1089d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1499f5ea-5c34-4ff2-a49d-f9b39ab9a1d1"], ["organization_id", "55fe0f18-ebd3-4866-9acc-6f4f7cb1089d"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.128110"], ["updated_at", "2015-07-06 21:20:29.128110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-4" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-4", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.131656') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d0a4e001-ff8f-475e-b4a4-f029910c7cee"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.133076"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.133864"], ["id", "d0a4e001-ff8f-475e-b4a4-f029910c7cee"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-4"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1499f5ea-5c34-4ff2-a49d-f9b39ab9a1d1"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '1499f5ea-5c34-4ff2-a49d-f9b39ab9a1d1' LIMIT 1 [["organization_id", "55fe0f18-ebd3-4866-9acc-6f4f7cb1089d"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "55fe0f18-ebd3-4866-9acc-6f4f7cb1089d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$MIM/El6Wz26vc6IBXQMPluGidQPaRd5qPsDvXQoP8Dr3aFmzP4J5W"], ["created_at", "2015-07-06 21:20:29.151396"], ["updated_at", "2015-07-06 21:20:29.151396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.153191"], ["user_id", "8f746d76-b8da-45e5-afc3-b1c88e6f26f6"], ["created_at", "2015-07-06 21:20:29.153878"], ["updated_at", "2015-07-06 21:20:29.153878"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.158183"], ["updated_at", "2015-07-06 21:20:29.158183"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f746d76-b8da-45e5-afc3-b1c88e6f26f6' AND "clubhouse_memberships"."organization_id" = 'ec8143c8-2f7c-43a1-a602-579661e67467') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f746d76-b8da-45e5-afc3-b1c88e6f26f6"], ["organization_id", "ec8143c8-2f7c-43a1-a602-579661e67467"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.162742"], ["updated_at", "2015-07-06 21:20:29.162742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$o66nK.DZrGe4wHjuJ0rn0uQeoE5GiU22L2w1hd2Hxsq5vgSGm1C3q"], ["created_at", "2015-07-06 21:20:29.174565"], ["updated_at", "2015-07-06 21:20:29.174565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.176736"], ["user_id", "79b2e78d-1d16-4fee-a4e9-fb35286caee0"], ["created_at", "2015-07-06 21:20:29.177719"], ["updated_at", "2015-07-06 21:20:29.177719"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.183956"], ["updated_at", "2015-07-06 21:20:29.183956"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79b2e78d-1d16-4fee-a4e9-fb35286caee0' AND "clubhouse_memberships"."organization_id" = '85ad9617-eb94-4ecc-89db-f25a5b65c22a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79b2e78d-1d16-4fee-a4e9-fb35286caee0"], ["organization_id", "85ad9617-eb94-4ecc-89db-f25a5b65c22a"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.190908"], ["updated_at", "2015-07-06 21:20:29.190908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/85ad9617-eb94-4ecc-89db-f25a5b65c22a" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"85ad9617-eb94-4ecc-89db-f25a5b65c22a", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.205560') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7a75821f-b48e-42ce-adfd-28ae81f41092"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.207308"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.208119"], ["id", "7a75821f-b48e-42ce-adfd-28ae81f41092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "85ad9617-eb94-4ecc-89db-f25a5b65c22a"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79b2e78d-1d16-4fee-a4e9-fb35286caee0"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '79b2e78d-1d16-4fee-a4e9-fb35286caee0' LIMIT 1 [["organization_id", "85ad9617-eb94-4ecc-89db-f25a5b65c22a"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '85ad9617-eb94-4ecc-89db-f25a5b65c22a') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:20:29.217940"], ["id", "85ad9617-eb94-4ecc-89db-f25a5b65c22a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 2.1ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$LtygAfYjxUj6lsjlgp9NYuRNcplhA10cvWh7Post4bHMDVgJe3HOW"], ["created_at", "2015-07-06 21:20:29.256279"], ["updated_at", "2015-07-06 21:20:29.256279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.258146"], ["user_id", "7b388d7d-6362-4fab-909c-1e416f6d35e4"], ["created_at", "2015-07-06 21:20:29.258880"], ["updated_at", "2015-07-06 21:20:29.258880"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.263380"], ["updated_at", "2015-07-06 21:20:29.263380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b388d7d-6362-4fab-909c-1e416f6d35e4' AND "clubhouse_memberships"."organization_id" = '3bf6dafa-54c6-4793-b638-39e7c8149829') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b388d7d-6362-4fab-909c-1e416f6d35e4"], ["organization_id", "3bf6dafa-54c6-4793-b638-39e7c8149829"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.266668"], ["updated_at", "2015-07-06 21:20:29.266668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/3bf6dafa-54c6-4793-b638-39e7c8149829" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"3bf6dafa-54c6-4793-b638-39e7c8149829", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.274055') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "07337bec-d203-43b4-a838-626adb4b5dd9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.277046"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.278304"], ["id", "07337bec-d203-43b4-a838-626adb4b5dd9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3bf6dafa-54c6-4793-b638-39e7c8149829"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7b388d7d-6362-4fab-909c-1e416f6d35e4"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '7b388d7d-6362-4fab-909c-1e416f6d35e4' LIMIT 1 [["organization_id", "3bf6dafa-54c6-4793-b638-39e7c8149829"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '3bf6dafa-54c6-4793-b638-39e7c8149829') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 27ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$l.ZNr2.tM1UKz7Nph9Y6JeeMX2qZ5tFURSrttOiQDA4T5IsnIIqg2"], ["created_at", "2015-07-06 21:20:29.309356"], ["updated_at", "2015-07-06 21:20:29.309356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.311251"], ["user_id", "cd9f165c-824f-4a79-a886-89b185b7a4cf"], ["created_at", "2015-07-06 21:20:29.312105"], ["updated_at", "2015-07-06 21:20:29.312105"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.316471"], ["updated_at", "2015-07-06 21:20:29.316471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd9f165c-824f-4a79-a886-89b185b7a4cf' AND "clubhouse_memberships"."organization_id" = 'd0464876-4b21-4b36-baac-365bdff05fa7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd9f165c-824f-4a79-a886-89b185b7a4cf"], ["organization_id", "d0464876-4b21-4b36-baac-365bdff05fa7"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.319575"], ["updated_at", "2015-07-06 21:20:29.319575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$xfrVab6CNxBagHYC0Maze.0L69x3aDlU2xjFO5kAP8rEQyFLhii3m"], ["created_at", "2015-07-06 21:20:29.329489"], ["updated_at", "2015-07-06 21:20:29.329489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.331246"], ["user_id", "9603f364-80e6-4d34-b003-f2a2d750e36b"], ["created_at", "2015-07-06 21:20:29.331978"], ["updated_at", "2015-07-06 21:20:29.331978"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.336426"], ["updated_at", "2015-07-06 21:20:29.336426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9603f364-80e6-4d34-b003-f2a2d750e36b' AND "clubhouse_memberships"."organization_id" = 'c7097b4c-a744-4dd2-ae19-29c3dc73093f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9603f364-80e6-4d34-b003-f2a2d750e36b"], ["organization_id", "c7097b4c-a744-4dd2-ae19-29c3dc73093f"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.340237"], ["updated_at", "2015-07-06 21:20:29.340237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.344882') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6e5d8e7a-6827-4a9a-a2f3-c81553331eea"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.346741"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.347934"], ["id", "6e5d8e7a-6827-4a9a-a2f3-c81553331eea"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 7ms (ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$K4DuT2S9bsKqwiAykK1iQ.9hgtU4KZEjc3dLyJo/Y9LVIfs/E59M2"], ["created_at", "2015-07-06 21:20:29.359584"], ["updated_at", "2015-07-06 21:20:29.359584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.361487"], ["user_id", "44607051-9341-40a8-8a5b-bb775861b529"], ["created_at", "2015-07-06 21:20:29.362336"], ["updated_at", "2015-07-06 21:20:29.362336"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.366752"], ["updated_at", "2015-07-06 21:20:29.366752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44607051-9341-40a8-8a5b-bb775861b529' AND "clubhouse_memberships"."organization_id" = '2b35e40d-efad-4644-9d04-fc355c643aea') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "44607051-9341-40a8-8a5b-bb775861b529"], ["organization_id", "2b35e40d-efad-4644-9d04-fc355c643aea"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.369909"], ["updated_at", "2015-07-06 21:20:29.369909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-10" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.372844') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "617a4de6-6db5-418f-b2cf-16f157c0d031"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.374490"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.375338"], ["id", "617a4de6-6db5-418f-b2cf-16f157c0d031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "44607051-9341-40a8-8a5b-bb775861b529"]] Completed 200 OK in 7ms (ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$dSSDqUi.S93fuSjlac/yXumQzzzGFZdzsx93HnRwnUQLzszrZaHRq"], ["created_at", "2015-07-06 21:20:29.387429"], ["updated_at", "2015-07-06 21:20:29.387429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.389161"], ["user_id", "a9dafde3-1960-4a5e-b2a8-45f0db3c99fc"], ["created_at", "2015-07-06 21:20:29.389868"], ["updated_at", "2015-07-06 21:20:29.389868"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.395291"], ["updated_at", "2015-07-06 21:20:29.395291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9dafde3-1960-4a5e-b2a8-45f0db3c99fc' AND "clubhouse_memberships"."organization_id" = '694b57e7-4b7b-4811-8dca-0034433726c0') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9dafde3-1960-4a5e-b2a8-45f0db3c99fc"], ["organization_id", "694b57e7-4b7b-4811-8dca-0034433726c0"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.398696"], ["updated_at", "2015-07-06 21:20:29.398696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$RbYa5AuYufy0Pc6VEdtrHOkoL1/tRwmYcXzUTiJiyejhhARyBw89q"], ["created_at", "2015-07-06 21:20:29.410938"], ["updated_at", "2015-07-06 21:20:29.410938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.413893"], ["user_id", "b936ab31-2db8-4240-a7ee-8552ebe340d8"], ["created_at", "2015-07-06 21:20:29.414901"], ["updated_at", "2015-07-06 21:20:29.414901"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.421151"], ["updated_at", "2015-07-06 21:20:29.421151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b936ab31-2db8-4240-a7ee-8552ebe340d8' AND "clubhouse_memberships"."organization_id" = '1e1d86de-1a2c-4c53-b22b-0734938d64de') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b936ab31-2db8-4240-a7ee-8552ebe340d8"], ["organization_id", "1e1d86de-1a2c-4c53-b22b-0734938d64de"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.425300"], ["updated_at", "2015-07-06 21:20:29.425300"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-12" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-12", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.430171') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ac2ca96a-b74b-445e-ac1e-cf7cc742e5d2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.432108"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.433039"], ["id", "ac2ca96a-b74b-445e-ac1e-cf7cc742e5d2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b936ab31-2db8-4240-a7ee-8552ebe340d8"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b936ab31-2db8-4240-a7ee-8552ebe340d8' LIMIT 1 [["organization_id", "1e1d86de-1a2c-4c53-b22b-0734938d64de"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '1e1d86de-1a2c-4c53-b22b-0734938d64de') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$sXsOH3infCcO1afnYdFDIeC2bUG.OnxW6Ni7hjQ/vgxJaTrfTOj7."], ["created_at", "2015-07-06 21:20:29.450643"], ["updated_at", "2015-07-06 21:20:29.450643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.452813"], ["user_id", "f05fc678-38b4-4f3b-9091-d98f96a55557"], ["created_at", "2015-07-06 21:20:29.453766"], ["updated_at", "2015-07-06 21:20:29.453766"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.461555"], ["updated_at", "2015-07-06 21:20:29.461555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f05fc678-38b4-4f3b-9091-d98f96a55557' AND "clubhouse_memberships"."organization_id" = '287c9e77-dd99-4b2e-9da8-f620a9f6b6b0') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f05fc678-38b4-4f3b-9091-d98f96a55557"], ["organization_id", "287c9e77-dd99-4b2e-9da8-f620a9f6b6b0"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.465358"], ["updated_at", "2015-07-06 21:20:29.465358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-13" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-13", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.468433') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a5e31047-b28d-44ba-bc30-299372473f57"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.469797"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.470540"], ["id", "a5e31047-b28d-44ba-bc30-299372473f57"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f05fc678-38b4-4f3b-9091-d98f96a55557"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'f05fc678-38b4-4f3b-9091-d98f96a55557' LIMIT 1 [["organization_id", "287c9e77-dd99-4b2e-9da8-f620a9f6b6b0"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '287c9e77-dd99-4b2e-9da8-f620a9f6b6b0') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:20:29.478612"], ["id", "287c9e77-dd99-4b2e-9da8-f620a9f6b6b0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$NiiVnyIqNYA95stiPDiRtu243AHPLwDS1t2NbKdnJZuUjxv5KI6Fq"], ["created_at", "2015-07-06 21:20:29.490566"], ["updated_at", "2015-07-06 21:20:29.490566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.493163"], ["user_id", "d20a7578-0c43-43c9-9211-a73ef7579e1d"], ["created_at", "2015-07-06 21:20:29.494146"], ["updated_at", "2015-07-06 21:20:29.494146"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.500073"], ["updated_at", "2015-07-06 21:20:29.500073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd20a7578-0c43-43c9-9211-a73ef7579e1d' AND "clubhouse_memberships"."organization_id" = '27a22c78-34bc-48a7-9637-02033a18a87c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d20a7578-0c43-43c9-9211-a73ef7579e1d"], ["organization_id", "27a22c78-34bc-48a7-9637-02033a18a87c"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.503684"], ["updated_at", "2015-07-06 21:20:29.503684"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$Pbwee/irtJTBPWRcx4f0Tuh61Qelpbt2pgjAU/.fnpcNJOu0DUQnu"], ["created_at", "2015-07-06 21:20:29.512547"], ["updated_at", "2015-07-06 21:20:29.512547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.516669"], ["updated_at", "2015-07-06 21:20:29.516669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '873b3c05-6618-4834-b82d-763e181df2e9' AND "clubhouse_memberships"."organization_id" = 'ad16fa33-73ed-4df3-a643-7415c683ed51') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "873b3c05-6618-4834-b82d-763e181df2e9"], ["organization_id", "ad16fa33-73ed-4df3-a643-7415c683ed51"], ["created_at", "2015-07-06 21:20:29.519898"], ["updated_at", "2015-07-06 21:20:29.519898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$FYtLDvjix4t1isRmvFGyke.YDi3iitrKIhaq5mnfwfBzi.I/UJnaO"], ["created_at", "2015-07-06 21:20:29.529635"], ["updated_at", "2015-07-06 21:20:29.529635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.531448"], ["user_id", "b94d48f1-f408-4219-bb9e-5e689a5ade25"], ["created_at", "2015-07-06 21:20:29.532117"], ["updated_at", "2015-07-06 21:20:29.532117"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.536180"], ["updated_at", "2015-07-06 21:20:29.536180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b94d48f1-f408-4219-bb9e-5e689a5ade25' AND "clubhouse_memberships"."organization_id" = '1199912d-6ef6-4b8d-8487-4e2ce154a3d0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b94d48f1-f408-4219-bb9e-5e689a5ade25"], ["organization_id", "1199912d-6ef6-4b8d-8487-4e2ce154a3d0"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.539444"], ["updated_at", "2015-07-06 21:20:29.539444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$VpF9mQv6fvb3Qt4S/0RVpOk/.DvaX7iVmO6g8skhAoIh/s3Tra2Ba"], ["created_at", "2015-07-06 21:20:29.545124"], ["updated_at", "2015-07-06 21:20:29.545124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.549147"], ["updated_at", "2015-07-06 21:20:29.549147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a396482-d3ec-4d5e-8dad-640d56a88619' AND "clubhouse_memberships"."organization_id" = '23d2b467-6e3a-43e8-837c-6e8bb7ea6035') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a396482-d3ec-4d5e-8dad-640d56a88619"], ["organization_id", "23d2b467-6e3a-43e8-837c-6e8bb7ea6035"], ["created_at", "2015-07-06 21:20:29.552240"], ["updated_at", "2015-07-06 21:20:29.552240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.555040') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2c40a3d5-8a89-421c-96d5-f4af3081feb4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.556513"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.557343"], ["id", "2c40a3d5-8a89-421c-96d5-f4af3081feb4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b94d48f1-f408-4219-bb9e-5e689a5ade25"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "b94d48f1-f408-4219-bb9e-5e689a5ade25"]] Completed 200 OK in 18ms (Views: 4.2ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$DpBK5NKpCIKQBmA97h5mw.UBZEnG4wF.1RHDLWdpeX/ZzzpbReoB2"], ["created_at", "2015-07-06 21:20:29.582067"], ["updated_at", "2015-07-06 21:20:29.582067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.583774"], ["user_id", "b35f1f00-5ed6-4fe0-8ad4-896a120629d7"], ["created_at", "2015-07-06 21:20:29.584505"], ["updated_at", "2015-07-06 21:20:29.584505"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.589854"], ["updated_at", "2015-07-06 21:20:29.589854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b35f1f00-5ed6-4fe0-8ad4-896a120629d7' AND "clubhouse_memberships"."organization_id" = '4abcbb9e-baed-4316-8f22-33b32479db89') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b35f1f00-5ed6-4fe0-8ad4-896a120629d7"], ["organization_id", "4abcbb9e-baed-4316-8f22-33b32479db89"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.593307"], ["updated_at", "2015-07-06 21:20:29.593307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$YfF64VYBc7Nb0RuQMTpcxun/yBMzoqPUaZFHAUVi5K.hvGlnrDc2q"], ["created_at", "2015-07-06 21:20:29.603505"], ["updated_at", "2015-07-06 21:20:29.603505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.605298"], ["user_id", "0c81efbb-111e-4351-bc85-d86f69bb701e"], ["created_at", "2015-07-06 21:20:29.605958"], ["updated_at", "2015-07-06 21:20:29.605958"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.610222"], ["updated_at", "2015-07-06 21:20:29.610222"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c81efbb-111e-4351-bc85-d86f69bb701e' AND "clubhouse_memberships"."organization_id" = '360f929d-5526-4125-8737-ad7dbbf3e823') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0c81efbb-111e-4351-bc85-d86f69bb701e"], ["organization_id", "360f929d-5526-4125-8737-ad7dbbf3e823"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.614963"], ["updated_at", "2015-07-06 21:20:29.614963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.619190') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "748a0ced-dc5e-414a-b05b-aa4544009561"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.621045"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.622578"], ["id", "748a0ced-dc5e-414a-b05b-aa4544009561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c81efbb-111e-4351-bc85-d86f69bb701e"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.633410"], ["updated_at", "2015-07-06 21:20:29.633410"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c81efbb-111e-4351-bc85-d86f69bb701e' AND "clubhouse_memberships"."organization_id" = '24637133-47fe-49c0-98ce-76ae3311657a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0c81efbb-111e-4351-bc85-d86f69bb701e"], ["admin", "t"], ["organization_id", "24637133-47fe-49c0-98ce-76ae3311657a"], ["created_at", "2015-07-06 21:20:29.636868"], ["updated_at", "2015-07-06 21:20:29.636868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 0.5ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$MWw1N.ngCdCN1ujr17fltO4nKOKHiwubopaMVEpARzCMLAmUIrGL6"], ["created_at", "2015-07-06 21:20:29.646619"], ["updated_at", "2015-07-06 21:20:29.646619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.648370"], ["user_id", "0f0f0c2a-d8f3-4fc2-a8df-317043ee0d4a"], ["created_at", "2015-07-06 21:20:29.649034"], ["updated_at", "2015-07-06 21:20:29.649034"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.653173"], ["updated_at", "2015-07-06 21:20:29.653173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f0f0c2a-d8f3-4fc2-a8df-317043ee0d4a' AND "clubhouse_memberships"."organization_id" = '4557c4a0-fa42-4c3a-8458-f7f9888f6358') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f0f0c2a-d8f3-4fc2-a8df-317043ee0d4a"], ["organization_id", "4557c4a0-fa42-4c3a-8458-f7f9888f6358"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.656406"], ["updated_at", "2015-07-06 21:20:29.656406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.659649') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2de5d878-f785-4183-a831-76e40189e061"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.661090"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.661921"], ["id", "2de5d878-f785-4183-a831-76e40189e061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0f0f0c2a-d8f3-4fc2-a8df-317043ee0d4a"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms (ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$2QYatygZBvsl/F5jIoCATeqOjNPOxzjKyrPOoSDx4MloJ6zq5b6PK"], ["created_at", "2015-07-06 21:20:29.676908"], ["updated_at", "2015-07-06 21:20:29.676908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.679418"], ["user_id", "0624ecb9-7b33-4fc7-aedd-632ae6120f32"], ["created_at", "2015-07-06 21:20:29.680466"], ["updated_at", "2015-07-06 21:20:29.680466"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.684906"], ["updated_at", "2015-07-06 21:20:29.684906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0624ecb9-7b33-4fc7-aedd-632ae6120f32' AND "clubhouse_memberships"."organization_id" = '338b5b92-c170-44e6-8c51-b4f19c9bfebb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0624ecb9-7b33-4fc7-aedd-632ae6120f32"], ["organization_id", "338b5b92-c170-44e6-8c51-b4f19c9bfebb"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.689842"], ["updated_at", "2015-07-06 21:20:29.689842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/338b5b92-c170-44e6-8c51-b4f19c9bfebb" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"338b5b92-c170-44e6-8c51-b4f19c9bfebb", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.693768') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "24e9e26b-4a5f-4025-9551-a23a88e24083"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.695763"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.696636"], ["id", "24e9e26b-4a5f-4025-9551-a23a88e24083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "338b5b92-c170-44e6-8c51-b4f19c9bfebb"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0624ecb9-7b33-4fc7-aedd-632ae6120f32"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0624ecb9-7b33-4fc7-aedd-632ae6120f32' LIMIT 1 [["organization_id", "338b5b92-c170-44e6-8c51-b4f19c9bfebb"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$//L6K8IZNj1siO33hd7xQetORUdEva1ycvTocchYcLtgusAUioAjW"], ["created_at", "2015-07-06 21:20:29.710696"], ["updated_at", "2015-07-06 21:20:29.710696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.712521"], ["user_id", "823e14b2-4924-4217-befc-0cb150d5acb6"], ["created_at", "2015-07-06 21:20:29.713228"], ["updated_at", "2015-07-06 21:20:29.713228"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.717508"], ["updated_at", "2015-07-06 21:20:29.717508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '823e14b2-4924-4217-befc-0cb150d5acb6' AND "clubhouse_memberships"."organization_id" = 'dd1c396a-cde1-48db-bfe3-c1889340dff9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "823e14b2-4924-4217-befc-0cb150d5acb6"], ["organization_id", "dd1c396a-cde1-48db-bfe3-c1889340dff9"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.720384"], ["updated_at", "2015-07-06 21:20:29.720384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$j64fk41iLDbcVbpuW3wo4e/Ix1kEAgkJPtFReKG5TIF3Xp66RKblO"], ["created_at", "2015-07-06 21:20:29.729479"], ["updated_at", "2015-07-06 21:20:29.729479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.731121"], ["user_id", "039207dc-1136-4c2c-85d8-e1c4f2c68032"], ["created_at", "2015-07-06 21:20:29.731723"], ["updated_at", "2015-07-06 21:20:29.731723"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.735656"], ["updated_at", "2015-07-06 21:20:29.735656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '039207dc-1136-4c2c-85d8-e1c4f2c68032' AND "clubhouse_memberships"."organization_id" = '46d8ce00-8202-45e3-9a72-b3431901c84c') LIMIT 1 SQL (1.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "039207dc-1136-4c2c-85d8-e1c4f2c68032"], ["organization_id", "46d8ce00-8202-45e3-9a72-b3431901c84c"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.739315"], ["updated_at", "2015-07-06 21:20:29.739315"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/46d8ce00-8202-45e3-9a72-b3431901c84c" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"46d8ce00-8202-45e3-9a72-b3431901c84c", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:29.745681') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d933b5b6-b881-482a-8750-14bc588225bb"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:29.748743"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:29.749505"], ["id", "d933b5b6-b881-482a-8750-14bc588225bb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "46d8ce00-8202-45e3-9a72-b3431901c84c"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "039207dc-1136-4c2c-85d8-e1c4f2c68032"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '039207dc-1136-4c2c-85d8-e1c4f2c68032' LIMIT 1 [["organization_id", "46d8ce00-8202-45e3-9a72-b3431901c84c"], ["admin", "t"]]  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "46d8ce00-8202-45e3-9a72-b3431901c84c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.6ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$d1A.3qdjJ5URyf0BW6/hdulIJdWb93eO6mUjq.pOFXIEXw6XxjVSi"], ["created_at", "2015-07-06 21:20:29.766537"], ["updated_at", "2015-07-06 21:20:29.766537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:29.768706"], ["user_id", "99b3ffec-71f6-4c95-82b1-b0f293cb903e"], ["created_at", "2015-07-06 21:20:29.769613"], ["updated_at", "2015-07-06 21:20:29.769613"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:29.774997"], ["updated_at", "2015-07-06 21:20:29.774997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '99b3ffec-71f6-4c95-82b1-b0f293cb903e' AND "clubhouse_memberships"."organization_id" = 'a9214a31-940a-427f-b06d-eb5dd0a5f080') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "99b3ffec-71f6-4c95-82b1-b0f293cb903e"], ["organization_id", "a9214a31-940a-427f-b06d-eb5dd0a5f080"], ["admin", "t"], ["created_at", "2015-07-06 21:20:29.779781"], ["updated_at", "2015-07-06 21:20:29.779781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:29 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (14.0ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$zz2mD0/h3GTriKjYdbvZgOgpIo41LP471Ui5VQI.LA/.lHYDSm.KW"], ["created_at", "2015-07-06 21:20:49.299697"], ["updated_at", "2015-07-06 21:20:49.299697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.314846"], ["user_id", "7c49ae87-1261-44c5-9d80-f427820dbf55"], ["created_at", "2015-07-06 21:20:49.319432"], ["updated_at", "2015-07-06 21:20:49.319432"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.329662"], ["updated_at", "2015-07-06 21:20:49.329662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c49ae87-1261-44c5-9d80-f427820dbf55' AND "clubhouse_memberships"."organization_id" = 'f1a0df77-3451-4dcd-824a-2afef760fd18') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c49ae87-1261-44c5-9d80-f427820dbf55"], ["organization_id", "f1a0df77-3451-4dcd-824a-2afef760fd18"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.341769"], ["updated_at", "2015-07-06 21:20:49.341769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$rXk6supsAPuR08/P9zCj2ueE3HWzhK1mMpeJFjvpjh0uKjlYph2h."], ["created_at", "2015-07-06 21:20:49.348580"], ["updated_at", "2015-07-06 21:20:49.348580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.353182"], ["updated_at", "2015-07-06 21:20:49.353182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b647ce75-9ce9-4457-92ba-389eb643d86c' AND "clubhouse_memberships"."organization_id" = '9fc7ea55-f249-4d4c-9f74-883c48e58506') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b647ce75-9ce9-4457-92ba-389eb643d86c"], ["organization_id", "9fc7ea55-f249-4d4c-9f74-883c48e58506"], ["created_at", "2015-07-06 21:20:49.357613"], ["updated_at", "2015-07-06 21:20:49.357613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$eB2Qx7csVwOl6lhq/eZydesUnDVqY45u7g9saauzw2CB3PY5NqUFC"], ["created_at", "2015-07-06 21:20:49.386015"], ["updated_at", "2015-07-06 21:20:49.386015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.388837"], ["user_id", "45732595-53b4-482b-9782-68ed0d973e6c"], ["created_at", "2015-07-06 21:20:49.389572"], ["updated_at", "2015-07-06 21:20:49.389572"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.394095"], ["updated_at", "2015-07-06 21:20:49.394095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45732595-53b4-482b-9782-68ed0d973e6c' AND "clubhouse_memberships"."organization_id" = '80dfaf27-a577-47cf-8f52-b66d6f80c704') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45732595-53b4-482b-9782-68ed0d973e6c"], ["organization_id", "80dfaf27-a577-47cf-8f52-b66d6f80c704"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.397935"], ["updated_at", "2015-07-06 21:20:49.397935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$HyJwgxLsi4l1tVwBeEDbLubTzP./fdL2f1qb6HDSSnZW/fukOGgsO"], ["created_at", "2015-07-06 21:20:49.403804"], ["updated_at", "2015-07-06 21:20:49.403804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.408805"], ["updated_at", "2015-07-06 21:20:49.408805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20d2d559-1894-4d93-bb83-d2a4c151a3df' AND "clubhouse_memberships"."organization_id" = '2199f497-1753-49b8-9c3f-f9d379ec3424') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "20d2d559-1894-4d93-bb83-d2a4c151a3df"], ["organization_id", "2199f497-1753-49b8-9c3f-f9d379ec3424"], ["created_at", "2015-07-06 21:20:49.412751"], ["updated_at", "2015-07-06 21:20:49.412751"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:49.417296') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7f5bb2af-bc9d-47e6-92b4-d47c9df22b13"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:49.423809"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:49.424840"], ["id", "7f5bb2af-bc9d-47e6-92b4-d47c9df22b13"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45732595-53b4-482b-9782-68ed0d973e6c"]] Clubhouse::Organization Load (1.8ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "45732595-53b4-482b-9782-68ed0d973e6c"]] Completed 200 OK in 46ms (Views: 14.5ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$uM8Kcd7Uq1nd9RDLflf4Su6vzaGxvWq6RO9X82SbzyGr1lpO3oEDy"], ["created_at", "2015-07-06 21:20:49.502825"], ["updated_at", "2015-07-06 21:20:49.502825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.505513"], ["user_id", "134be1a7-d98f-4917-b971-43762187d1b1"], ["created_at", "2015-07-06 21:20:49.506514"], ["updated_at", "2015-07-06 21:20:49.506514"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.511056"], ["updated_at", "2015-07-06 21:20:49.511056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '134be1a7-d98f-4917-b971-43762187d1b1' AND "clubhouse_memberships"."organization_id" = 'da3cad1b-80f8-491d-b1b9-fa38a1cd9040') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "134be1a7-d98f-4917-b971-43762187d1b1"], ["organization_id", "da3cad1b-80f8-491d-b1b9-fa38a1cd9040"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.514459"], ["updated_at", "2015-07-06 21:20:49.514459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$byYO2SZMRqwuD9b/qmoZJ.IWz/SyVby5rPnfXQ8m2zLaHcUeixZzm"], ["created_at", "2015-07-06 21:20:49.525061"], ["updated_at", "2015-07-06 21:20:49.525061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.527490"], ["user_id", "6d7bca33-86eb-43aa-a90e-5836ec03d013"], ["created_at", "2015-07-06 21:20:49.528369"], ["updated_at", "2015-07-06 21:20:49.528369"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.533592"], ["updated_at", "2015-07-06 21:20:49.533592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6d7bca33-86eb-43aa-a90e-5836ec03d013' AND "clubhouse_memberships"."organization_id" = '80f4b13a-9b00-49cb-a7e4-2771307b5014') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6d7bca33-86eb-43aa-a90e-5836ec03d013"], ["organization_id", "80f4b13a-9b00-49cb-a7e4-2771307b5014"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.536870"], ["updated_at", "2015-07-06 21:20:49.536870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-6" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:49.540890') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d48d744d-14d2-4c82-a4ef-35b419271444"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:49.542949"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:49.544024"], ["id", "d48d744d-14d2-4c82-a4ef-35b419271444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6d7bca33-86eb-43aa-a90e-5836ec03d013"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '6d7bca33-86eb-43aa-a90e-5836ec03d013' LIMIT 1 [["organization_id", "80f4b13a-9b00-49cb-a7e4-2771307b5014"]] Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$JkcBcI0yNquvOY3P2PPalO9fTZvQvr9r00Uu7UWVQ1Q07P5rz3WtW"], ["created_at", "2015-07-06 21:20:49.560316"], ["updated_at", "2015-07-06 21:20:49.560316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.562052"], ["user_id", "0ff9f560-97b9-490a-8a7e-598ce2e0ca56"], ["created_at", "2015-07-06 21:20:49.562670"], ["updated_at", "2015-07-06 21:20:49.562670"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.567079"], ["updated_at", "2015-07-06 21:20:49.567079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ff9f560-97b9-490a-8a7e-598ce2e0ca56' AND "clubhouse_memberships"."organization_id" = 'c5dd49ad-20b7-483d-b07d-fecd13609426') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ff9f560-97b9-490a-8a7e-598ce2e0ca56"], ["organization_id", "c5dd49ad-20b7-483d-b07d-fecd13609426"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.571221"], ["updated_at", "2015-07-06 21:20:49.571221"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$JQQQBKcJPh5yU4OE49yUd.qPpRrlDQjeT0Juk1/qSVLjSFk7xN4KG"], ["created_at", "2015-07-06 21:20:49.584467"], ["updated_at", "2015-07-06 21:20:49.584467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.586573"], ["user_id", "4eefe69c-b53f-4a50-bedf-c6da8a51d816"], ["created_at", "2015-07-06 21:20:49.587683"], ["updated_at", "2015-07-06 21:20:49.587683"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.594304"], ["updated_at", "2015-07-06 21:20:49.594304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eefe69c-b53f-4a50-bedf-c6da8a51d816' AND "clubhouse_memberships"."organization_id" = '0a0e56ac-37e9-4049-8cdc-bf64bdbbdf88') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4eefe69c-b53f-4a50-bedf-c6da8a51d816"], ["organization_id", "0a0e56ac-37e9-4049-8cdc-bf64bdbbdf88"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.598600"], ["updated_at", "2015-07-06 21:20:49.598600"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-8" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-8", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:49.603940') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "52e84086-e0b2-44ef-8251-9ae2ff7b5667"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:49.606747"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:49.607948"], ["id", "52e84086-e0b2-44ef-8251-9ae2ff7b5667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-8"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4eefe69c-b53f-4a50-bedf-c6da8a51d816"]] Completed 200 OK in 9ms (ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$IH2ReGEejMX8n/IsyN9jyOhxDe26Q7FFaj9/POy6p7BiJLlrUG4S."], ["created_at", "2015-07-06 21:20:49.621754"], ["updated_at", "2015-07-06 21:20:49.621754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.624397"], ["user_id", "4b7a4875-778b-425a-93e5-f955923b4738"], ["created_at", "2015-07-06 21:20:49.625137"], ["updated_at", "2015-07-06 21:20:49.625137"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.629877"], ["updated_at", "2015-07-06 21:20:49.629877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4b7a4875-778b-425a-93e5-f955923b4738' AND "clubhouse_memberships"."organization_id" = 'b1c8a4fb-339e-4711-ba5f-190199d331fc') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4b7a4875-778b-425a-93e5-f955923b4738"], ["organization_id", "b1c8a4fb-339e-4711-ba5f-190199d331fc"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.633541"], ["updated_at", "2015-07-06 21:20:49.633541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:49.639180') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0ecf8645-c31d-42b5-b25e-85888a682740"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:49.641093"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:49.642087"], ["id", "0ecf8645-c31d-42b5-b25e-85888a682740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 7ms (ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$7yrmoboH42L2pAD2Y7ETJuT3TilA17evvJ2KWQqWnDBNjf5haxOsa"], ["created_at", "2015-07-06 21:20:49.654302"], ["updated_at", "2015-07-06 21:20:49.654302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.656242"], ["user_id", "dbc1b40b-1eaa-4eca-ba29-22071d92386e"], ["created_at", "2015-07-06 21:20:49.657054"], ["updated_at", "2015-07-06 21:20:49.657054"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.661320"], ["updated_at", "2015-07-06 21:20:49.661320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dbc1b40b-1eaa-4eca-ba29-22071d92386e' AND "clubhouse_memberships"."organization_id" = 'd0848e75-4de9-4f95-8b44-73d13401faec') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dbc1b40b-1eaa-4eca-ba29-22071d92386e"], ["organization_id", "d0848e75-4de9-4f95-8b44-73d13401faec"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.664707"], ["updated_at", "2015-07-06 21:20:49.664707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-10" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-10", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:49.667949') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "97afab06-19db-4742-8095-8f87a28f332d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:49.669335"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:49.670508"], ["id", "97afab06-19db-4742-8095-8f87a28f332d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dbc1b40b-1eaa-4eca-ba29-22071d92386e"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'dbc1b40b-1eaa-4eca-ba29-22071d92386e' LIMIT 1 [["organization_id", "d0848e75-4de9-4f95-8b44-73d13401faec"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "d0848e75-4de9-4f95-8b44-73d13401faec"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$MkJa3NLq9hyzIB8weAcr/uvw1NL9stxQvpoheF.3ZlMqhn3HToWB6"], ["created_at", "2015-07-06 21:20:49.686426"], ["updated_at", "2015-07-06 21:20:49.686426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.689124"], ["user_id", "ca5fac9d-39aa-426b-aee0-bc00dad89afb"], ["created_at", "2015-07-06 21:20:49.690051"], ["updated_at", "2015-07-06 21:20:49.690051"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.695386"], ["updated_at", "2015-07-06 21:20:49.695386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ca5fac9d-39aa-426b-aee0-bc00dad89afb' AND "clubhouse_memberships"."organization_id" = '73270142-66f5-4155-a70e-25a4470aa669') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ca5fac9d-39aa-426b-aee0-bc00dad89afb"], ["organization_id", "73270142-66f5-4155-a70e-25a4470aa669"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.698710"], ["updated_at", "2015-07-06 21:20:49.698710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$oVFyFdy2cZdlIQM9jAjDq.rOhIQvuaIcZ2xP5EC4niCgTKFFm/1Lq"], ["created_at", "2015-07-06 21:20:49.709654"], ["updated_at", "2015-07-06 21:20:49.709654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.712056"], ["user_id", "4b38c969-1780-4b7e-bfe9-c7ae6b1b1fc9"], ["created_at", "2015-07-06 21:20:49.712755"], ["updated_at", "2015-07-06 21:20:49.712755"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.717910"], ["updated_at", "2015-07-06 21:20:49.717910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4b38c969-1780-4b7e-bfe9-c7ae6b1b1fc9' AND "clubhouse_memberships"."organization_id" = 'b887d959-5df7-4618-abc4-904d377b7e17') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4b38c969-1780-4b7e-bfe9-c7ae6b1b1fc9"], ["organization_id", "b887d959-5df7-4618-abc4-904d377b7e17"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.722121"], ["updated_at", "2015-07-06 21:20:49.722121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$G5IY6B6gCmLQGfS1Q7meb.yAvaJS6q.M/3PIoTRQI/YmAlw6udB6G"], ["created_at", "2015-07-06 21:20:49.731627"], ["updated_at", "2015-07-06 21:20:49.731627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.733217"], ["user_id", "d764be8e-55d0-4560-8b3f-8612656b9020"], ["created_at", "2015-07-06 21:20:49.733828"], ["updated_at", "2015-07-06 21:20:49.733828"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.738942"], ["updated_at", "2015-07-06 21:20:49.738942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd764be8e-55d0-4560-8b3f-8612656b9020' AND "clubhouse_memberships"."organization_id" = '6e95d8cf-173d-4b63-86b4-f1d8195134d9') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d764be8e-55d0-4560-8b3f-8612656b9020"], ["organization_id", "6e95d8cf-173d-4b63-86b4-f1d8195134d9"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.742893"], ["updated_at", "2015-07-06 21:20:49.742893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:49.746348') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "794fa89d-0264-4797-ae1d-e0009c785880"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:49.747723"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:49.748523"], ["id", "794fa89d-0264-4797-ae1d-e0009c785880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d764be8e-55d0-4560-8b3f-8612656b9020"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 2.8ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$Tt9.e8ehbcAY/ceNuo/9Muno2o5IhyZMWDZIplgnsuM2apEsvo2kO"], ["created_at", "2015-07-06 21:20:49.773446"], ["updated_at", "2015-07-06 21:20:49.773446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.775869"], ["user_id", "2b34a716-d543-42c6-a077-731685df7e00"], ["created_at", "2015-07-06 21:20:49.776731"], ["updated_at", "2015-07-06 21:20:49.776731"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.782644"], ["updated_at", "2015-07-06 21:20:49.782644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b34a716-d543-42c6-a077-731685df7e00' AND "clubhouse_memberships"."organization_id" = '17ba1add-1559-41c8-ad15-9a680b1a02cf') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2b34a716-d543-42c6-a077-731685df7e00"], ["organization_id", "17ba1add-1559-41c8-ad15-9a680b1a02cf"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.786948"], ["updated_at", "2015-07-06 21:20:49.786948"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:49.790458') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f83141df-bea4-48d0-9bcf-789d9bed3fd3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:49.792102"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:49.792847"], ["id", "f83141df-bea4-48d0-9bcf-789d9bed3fd3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2b34a716-d543-42c6-a077-731685df7e00"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.798694"], ["updated_at", "2015-07-06 21:20:49.798694"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2b34a716-d543-42c6-a077-731685df7e00' AND "clubhouse_memberships"."organization_id" = 'e7801914-c93d-4c37-9e3d-74c8a2fdc408') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2b34a716-d543-42c6-a077-731685df7e00"], ["admin", "t"], ["organization_id", "e7801914-c93d-4c37-9e3d-74c8a2fdc408"], ["created_at", "2015-07-06 21:20:49.802996"], ["updated_at", "2015-07-06 21:20:49.802996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.5ms | ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$vC3bDWM/TPZi9CP7KTuLr.Gb5CiEgichYV53gR73IL8zXGhClStZ."], ["created_at", "2015-07-06 21:20:49.812310"], ["updated_at", "2015-07-06 21:20:49.812310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.813910"], ["user_id", "48af8170-99ce-45bd-ae80-52770cf48984"], ["created_at", "2015-07-06 21:20:49.814532"], ["updated_at", "2015-07-06 21:20:49.814532"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.819250"], ["updated_at", "2015-07-06 21:20:49.819250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '48af8170-99ce-45bd-ae80-52770cf48984' AND "clubhouse_memberships"."organization_id" = '90f8969a-9137-48fc-8f9d-648403361e75') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "48af8170-99ce-45bd-ae80-52770cf48984"], ["organization_id", "90f8969a-9137-48fc-8f9d-648403361e75"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.823141"], ["updated_at", "2015-07-06 21:20:49.823141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$2e3W9AIfZLAzLOW/WFRIYeOy12WT6MKmLlSyxdLsqhKQ2FlQL/rUK"], ["created_at", "2015-07-06 21:20:49.833916"], ["updated_at", "2015-07-06 21:20:49.833916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.835773"], ["user_id", "f1355c98-8de9-4d22-a1c8-53c9a237b797"], ["created_at", "2015-07-06 21:20:49.836495"], ["updated_at", "2015-07-06 21:20:49.836495"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.840741"], ["updated_at", "2015-07-06 21:20:49.840741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f1355c98-8de9-4d22-a1c8-53c9a237b797' AND "clubhouse_memberships"."organization_id" = '450c354c-86eb-444e-b821-fce2d59fc5e7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f1355c98-8de9-4d22-a1c8-53c9a237b797"], ["organization_id", "450c354c-86eb-444e-b821-fce2d59fc5e7"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.845792"], ["updated_at", "2015-07-06 21:20:49.845792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/450c354c-86eb-444e-b821-fce2d59fc5e7" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"450c354c-86eb-444e-b821-fce2d59fc5e7", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:49.849169') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5f5de6bc-99f7-45db-bad4-ced466ab78a0"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:49.850876"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:49.851648"], ["id", "5f5de6bc-99f7-45db-bad4-ced466ab78a0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "450c354c-86eb-444e-b821-fce2d59fc5e7"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f1355c98-8de9-4d22-a1c8-53c9a237b797"]] Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'f1355c98-8de9-4d22-a1c8-53c9a237b797' LIMIT 1 [["organization_id", "450c354c-86eb-444e-b821-fce2d59fc5e7"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '450c354c-86eb-444e-b821-fce2d59fc5e7') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms (ActiveRecord: 4.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$NDKB9iyEc3Zl//glbUn3AOMiV3vcsR6q1lOvvKckixW4cWjgWdxve"], ["created_at", "2015-07-06 21:20:49.877615"], ["updated_at", "2015-07-06 21:20:49.877615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.880120"], ["user_id", "d83bda35-3cbc-49ba-b756-45fb1d467738"], ["created_at", "2015-07-06 21:20:49.880900"], ["updated_at", "2015-07-06 21:20:49.880900"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.885326"], ["updated_at", "2015-07-06 21:20:49.885326"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd83bda35-3cbc-49ba-b756-45fb1d467738' AND "clubhouse_memberships"."organization_id" = '59bf90b4-6c9a-47a7-9602-1d0976180582') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d83bda35-3cbc-49ba-b756-45fb1d467738"], ["organization_id", "59bf90b4-6c9a-47a7-9602-1d0976180582"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.889902"], ["updated_at", "2015-07-06 21:20:49.889902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/59bf90b4-6c9a-47a7-9602-1d0976180582" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"59bf90b4-6c9a-47a7-9602-1d0976180582", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:49.892731') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "651c7056-da37-41ac-9830-06d58547df53"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:49.894181"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:49.894927"], ["id", "651c7056-da37-41ac-9830-06d58547df53"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "59bf90b4-6c9a-47a7-9602-1d0976180582"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d83bda35-3cbc-49ba-b756-45fb1d467738"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd83bda35-3cbc-49ba-b756-45fb1d467738' LIMIT 1 [["organization_id", "59bf90b4-6c9a-47a7-9602-1d0976180582"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '59bf90b4-6c9a-47a7-9602-1d0976180582') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:20:49.908842"], ["id", "59bf90b4-6c9a-47a7-9602-1d0976180582"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 21ms (Views: 1.0ms | ActiveRecord: 3.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$rWNvecOTqXT1hOhiDVFn4uZzESxEdM8DJ40w5IwdqpVUCbnoKyb2O"], ["created_at", "2015-07-06 21:20:49.922847"], ["updated_at", "2015-07-06 21:20:49.922847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.924965"], ["user_id", "e986ecbf-694f-4ab0-a72e-98c4106c93ad"], ["created_at", "2015-07-06 21:20:49.926057"], ["updated_at", "2015-07-06 21:20:49.926057"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.931366"], ["updated_at", "2015-07-06 21:20:49.931366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e986ecbf-694f-4ab0-a72e-98c4106c93ad' AND "clubhouse_memberships"."organization_id" = 'bdf92924-3aad-44ba-88dd-1ccf522c1320') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e986ecbf-694f-4ab0-a72e-98c4106c93ad"], ["organization_id", "bdf92924-3aad-44ba-88dd-1ccf522c1320"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.934353"], ["updated_at", "2015-07-06 21:20:49.934353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/bdf92924-3aad-44ba-88dd-1ccf522c1320" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"bdf92924-3aad-44ba-88dd-1ccf522c1320", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:49.937357') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "84631e5d-a613-47af-b129-42093839ad41"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:49.939194"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:49.939966"], ["id", "84631e5d-a613-47af-b129-42093839ad41"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bdf92924-3aad-44ba-88dd-1ccf522c1320"]] User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e986ecbf-694f-4ab0-a72e-98c4106c93ad"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e986ecbf-694f-4ab0-a72e-98c4106c93ad' LIMIT 1 [["organization_id", "bdf92924-3aad-44ba-88dd-1ccf522c1320"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bdf92924-3aad-44ba-88dd-1ccf522c1320"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.4ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$CXCFJcWwLznkT4519wV9kOQ0VR/ozIxv/gfPPc6Ds9uh0N4DVIAx2"], ["created_at", "2015-07-06 21:20:49.958055"], ["updated_at", "2015-07-06 21:20:49.958055"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.961177"], ["user_id", "c70ee4d8-b196-4ca3-a450-d1bacc55dddf"], ["created_at", "2015-07-06 21:20:49.962570"], ["updated_at", "2015-07-06 21:20:49.962570"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.967239"], ["updated_at", "2015-07-06 21:20:49.967239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c70ee4d8-b196-4ca3-a450-d1bacc55dddf' AND "clubhouse_memberships"."organization_id" = 'b26149fc-71cc-4fe5-bf8b-b994b97c51c6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c70ee4d8-b196-4ca3-a450-d1bacc55dddf"], ["organization_id", "b26149fc-71cc-4fe5-bf8b-b994b97c51c6"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.971843"], ["updated_at", "2015-07-06 21:20:49.971843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$SRz47uuU1gGr2.Dts9bxiOMlm75Kd6M807ZuLoFPxih8JOtQOeW7q"], ["created_at", "2015-07-06 21:20:49.981022"], ["updated_at", "2015-07-06 21:20:49.981022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:49.982642"], ["user_id", "4d9a2831-8eed-4d78-9275-a250e8fabe12"], ["created_at", "2015-07-06 21:20:49.983249"], ["updated_at", "2015-07-06 21:20:49.983249"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:49.987592"], ["updated_at", "2015-07-06 21:20:49.987592"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d9a2831-8eed-4d78-9275-a250e8fabe12' AND "clubhouse_memberships"."organization_id" = 'b7fccafb-aa78-4327-a656-7242315791bb') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d9a2831-8eed-4d78-9275-a250e8fabe12"], ["organization_id", "b7fccafb-aa78-4327-a656-7242315791bb"], ["admin", "t"], ["created_at", "2015-07-06 21:20:49.994469"], ["updated_at", "2015-07-06 21:20:49.994469"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:49 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$46bWzTMgvzQASA0njj0GquGvVKHNxFin6OqzmJ/dsrFwptMp.qPRO"], ["created_at", "2015-07-06 21:20:50.006447"], ["updated_at", "2015-07-06 21:20:50.006447"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:50.008885"], ["user_id", "0584c883-6d40-42d1-8136-5c709d1cd242"], ["created_at", "2015-07-06 21:20:50.009765"], ["updated_at", "2015-07-06 21:20:50.009765"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:50.014957"], ["updated_at", "2015-07-06 21:20:50.014957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0584c883-6d40-42d1-8136-5c709d1cd242' AND "clubhouse_memberships"."organization_id" = 'defd6e98-6b59-44e9-9d65-9b1aa32c51e2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0584c883-6d40-42d1-8136-5c709d1cd242"], ["organization_id", "defd6e98-6b59-44e9-9d65-9b1aa32c51e2"], ["admin", "t"], ["created_at", "2015-07-06 21:20:50.018743"], ["updated_at", "2015-07-06 21:20:50.018743"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/defd6e98-6b59-44e9-9d65-9b1aa32c51e2" for 127.0.0.1 at 2015-07-06 14:20:50 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"defd6e98-6b59-44e9-9d65-9b1aa32c51e2", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:50.022428') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8f7aca9e-20f0-470f-9be7-d5c23f7cb159"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:50.024153"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:50.025315"], ["id", "8f7aca9e-20f0-470f-9be7-d5c23f7cb159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "defd6e98-6b59-44e9-9d65-9b1aa32c51e2"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0584c883-6d40-42d1-8136-5c709d1cd242"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0584c883-6d40-42d1-8136-5c709d1cd242' LIMIT 1 [["organization_id", "defd6e98-6b59-44e9-9d65-9b1aa32c51e2"]] Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$XAo.c8f7xMw6MNF1yCaw4OGSPflDhOCwbSX0iqqNVdG3YCRIlS/K2"], ["created_at", "2015-07-06 21:20:50.041402"], ["updated_at", "2015-07-06 21:20:50.041402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:50.043326"], ["user_id", "53f84e22-bb5e-48a0-98b4-edc8fbcc2f85"], ["created_at", "2015-07-06 21:20:50.043962"], ["updated_at", "2015-07-06 21:20:50.043962"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:50.049519"], ["updated_at", "2015-07-06 21:20:50.049519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53f84e22-bb5e-48a0-98b4-edc8fbcc2f85' AND "clubhouse_memberships"."organization_id" = '395ba4f4-8ef0-4c81-af00-42da4b9db17c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53f84e22-bb5e-48a0-98b4-edc8fbcc2f85"], ["organization_id", "395ba4f4-8ef0-4c81-af00-42da4b9db17c"], ["admin", "t"], ["created_at", "2015-07-06 21:20:50.053984"], ["updated_at", "2015-07-06 21:20:50.053984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:50 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$0i0X55TY/soc0dJ40r3uh.fr1BCMB/8ZpjMGf0PGRaiTru7UMYms."], ["created_at", "2015-07-06 21:20:50.066140"], ["updated_at", "2015-07-06 21:20:50.066140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:50.068126"], ["user_id", "265c4fcf-7451-4af0-8c4a-d77dd3a62227"], ["created_at", "2015-07-06 21:20:50.068819"], ["updated_at", "2015-07-06 21:20:50.068819"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:50.074363"], ["updated_at", "2015-07-06 21:20:50.074363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '265c4fcf-7451-4af0-8c4a-d77dd3a62227' AND "clubhouse_memberships"."organization_id" = '9e586ca4-e8a8-41b4-8a05-d354514e3d18') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "265c4fcf-7451-4af0-8c4a-d77dd3a62227"], ["organization_id", "9e586ca4-e8a8-41b4-8a05-d354514e3d18"], ["admin", "t"], ["created_at", "2015-07-06 21:20:50.077698"], ["updated_at", "2015-07-06 21:20:50.077698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-23" for 127.0.0.1 at 2015-07-06 14:20:50 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-23", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:50.080430') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "45f5c61d-0f99-4f77-826d-c087ec282dd1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:50.082074"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:50.082983"], ["id", "45f5c61d-0f99-4f77-826d-c087ec282dd1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "265c4fcf-7451-4af0-8c4a-d77dd3a62227"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '265c4fcf-7451-4af0-8c4a-d77dd3a62227' LIMIT 1 [["organization_id", "9e586ca4-e8a8-41b4-8a05-d354514e3d18"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9e586ca4-e8a8-41b4-8a05-d354514e3d18') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:20:50.091489"], ["id", "9e586ca4-e8a8-41b4-8a05-d354514e3d18"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$.S3WS2FXgdKRGpeqtusYD.hChqPGDVWenxMKlKTEePJ9T9U2opcIK"], ["created_at", "2015-07-06 21:20:50.102699"], ["updated_at", "2015-07-06 21:20:50.102699"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:50.105420"], ["user_id", "8a6544a1-f02b-4440-8adb-fa05a4c1873d"], ["created_at", "2015-07-06 21:20:50.106501"], ["updated_at", "2015-07-06 21:20:50.106501"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:50.111813"], ["updated_at", "2015-07-06 21:20:50.111813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a6544a1-f02b-4440-8adb-fa05a4c1873d' AND "clubhouse_memberships"."organization_id" = 'a13e7a91-8e9e-4912-9d1d-b81a48f2e812') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8a6544a1-f02b-4440-8adb-fa05a4c1873d"], ["organization_id", "a13e7a91-8e9e-4912-9d1d-b81a48f2e812"], ["admin", "t"], ["created_at", "2015-07-06 21:20:50.116001"], ["updated_at", "2015-07-06 21:20:50.116001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-24" for 127.0.0.1 at 2015-07-06 14:20:50 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-24", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:50.119021') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8964b009-ee5d-4641-9477-6be0b14ba44a"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:50.120797"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:50.122364"], ["id", "8964b009-ee5d-4641-9477-6be0b14ba44a"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-24"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8a6544a1-f02b-4440-8adb-fa05a4c1873d"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '8a6544a1-f02b-4440-8adb-fa05a4c1873d' LIMIT 1 [["organization_id", "a13e7a91-8e9e-4912-9d1d-b81a48f2e812"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a13e7a91-8e9e-4912-9d1d-b81a48f2e812') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 22ms (ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$wIw50S5NaNMazRbsfNKxLevXvU3ceKnlRReHNV8NIPIwqxFE.Wxm2"], ["created_at", "2015-07-06 21:20:57.863033"], ["updated_at", "2015-07-06 21:20:57.863033"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:57.878110"], ["user_id", "be81f22e-5aae-4304-924c-90e8ffc0c43b"], ["created_at", "2015-07-06 21:20:57.882200"], ["updated_at", "2015-07-06 21:20:57.882200"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:57.892715"], ["updated_at", "2015-07-06 21:20:57.892715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be81f22e-5aae-4304-924c-90e8ffc0c43b' AND "clubhouse_memberships"."organization_id" = 'b62394d9-3299-4068-b3fd-4b8bd4b632bd') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "be81f22e-5aae-4304-924c-90e8ffc0c43b"], ["organization_id", "b62394d9-3299-4068-b3fd-4b8bd4b632bd"], ["admin", "t"], ["created_at", "2015-07-06 21:20:57.902731"], ["updated_at", "2015-07-06 21:20:57.902731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-1" for 127.0.0.1 at 2015-07-06 14:20:57 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-1", "organization"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:57.935501') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4e301c1c-5aa9-407a-bf89-787c0934c584"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:57.942066"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:57.943257"], ["id", "4e301c1c-5aa9-407a-bf89-787c0934c584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-1"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "be81f22e-5aae-4304-924c-90e8ffc0c43b"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'be81f22e-5aae-4304-924c-90e8ffc0c43b' LIMIT 1 [["organization_id", "b62394d9-3299-4068-b3fd-4b8bd4b632bd"]] Completed 200 OK in 34ms (Views: 7.7ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$MrPpSRGEFWTiFS.UFZZFfOG/v5KgZZQ/DbikFSUoC/DIS3MLUDt6W"], ["created_at", "2015-07-06 21:20:57.979144"], ["updated_at", "2015-07-06 21:20:57.979144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:57.981047"], ["user_id", "d756f1c5-75b6-4785-b7d7-ba18806e76fe"], ["created_at", "2015-07-06 21:20:57.981703"], ["updated_at", "2015-07-06 21:20:57.981703"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:57.986135"], ["updated_at", "2015-07-06 21:20:57.986135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd756f1c5-75b6-4785-b7d7-ba18806e76fe' AND "clubhouse_memberships"."organization_id" = 'e81c05b7-51e7-4236-b86e-6d971b583141') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d756f1c5-75b6-4785-b7d7-ba18806e76fe"], ["organization_id", "e81c05b7-51e7-4236-b86e-6d971b583141"], ["admin", "t"], ["created_at", "2015-07-06 21:20:57.989500"], ["updated_at", "2015-07-06 21:20:57.989500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:57 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$HeB1HeDGzrGYOEGb2pOWvOvs3CrA4zVHWKlObrf7qeAS3gn9WAwj."], ["created_at", "2015-07-06 21:20:58.001158"], ["updated_at", "2015-07-06 21:20:58.001158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.002916"], ["user_id", "6927bd4a-db0b-46f6-b552-78afdf21d12f"], ["created_at", "2015-07-06 21:20:58.003547"], ["updated_at", "2015-07-06 21:20:58.003547"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.008528"], ["updated_at", "2015-07-06 21:20:58.008528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6927bd4a-db0b-46f6-b552-78afdf21d12f' AND "clubhouse_memberships"."organization_id" = '56a50850-2489-4057-8028-9b7e7f161934') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6927bd4a-db0b-46f6-b552-78afdf21d12f"], ["organization_id", "56a50850-2489-4057-8028-9b7e7f161934"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.012937"], ["updated_at", "2015-07-06 21:20:58.012937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$g2pMorWbpEqdaxvmeBA29uHg892pXRcVkUYgNC6DttnomWN6iEsUu"], ["created_at", "2015-07-06 21:20:58.024427"], ["updated_at", "2015-07-06 21:20:58.024427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.026354"], ["user_id", "3f4fe222-a109-44ef-88d4-bd1aaa9595f7"], ["created_at", "2015-07-06 21:20:58.027004"], ["updated_at", "2015-07-06 21:20:58.027004"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.031439"], ["updated_at", "2015-07-06 21:20:58.031439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f4fe222-a109-44ef-88d4-bd1aaa9595f7' AND "clubhouse_memberships"."organization_id" = 'ee412d13-18ce-4ea9-b35b-e89b5834fc98') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f4fe222-a109-44ef-88d4-bd1aaa9595f7"], ["organization_id", "ee412d13-18ce-4ea9-b35b-e89b5834fc98"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.034735"], ["updated_at", "2015-07-06 21:20:58.034735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/ee412d13-18ce-4ea9-b35b-e89b5834fc98" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"ee412d13-18ce-4ea9-b35b-e89b5834fc98", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.038095') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "15cfc639-5ded-4af3-8c9d-0e2f8f109d97"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.039488"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.040349"], ["id", "15cfc639-5ded-4af3-8c9d-0e2f8f109d97"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ee412d13-18ce-4ea9-b35b-e89b5834fc98"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3f4fe222-a109-44ef-88d4-bd1aaa9595f7"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '3f4fe222-a109-44ef-88d4-bd1aaa9595f7' LIMIT 1 [["organization_id", "ee412d13-18ce-4ea9-b35b-e89b5834fc98"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'ee412d13-18ce-4ea9-b35b-e89b5834fc98') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:20:58.053469"], ["id", "ee412d13-18ce-4ea9-b35b-e89b5834fc98"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$IhD8b9k4pTWEBirtC/q3Z.LcndsQa37lQrSdMVpZC7zegl4Z.AoA."], ["created_at", "2015-07-06 21:20:58.098732"], ["updated_at", "2015-07-06 21:20:58.098732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.100638"], ["user_id", "bccc1b38-2901-456a-9a91-e8316ee887ee"], ["created_at", "2015-07-06 21:20:58.101596"], ["updated_at", "2015-07-06 21:20:58.101596"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.106256"], ["updated_at", "2015-07-06 21:20:58.106256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bccc1b38-2901-456a-9a91-e8316ee887ee' AND "clubhouse_memberships"."organization_id" = 'c605e74f-8c48-4b9f-8ef4-6f5f40d94b6a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bccc1b38-2901-456a-9a91-e8316ee887ee"], ["organization_id", "c605e74f-8c48-4b9f-8ef4-6f5f40d94b6a"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.109754"], ["updated_at", "2015-07-06 21:20:58.109754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c605e74f-8c48-4b9f-8ef4-6f5f40d94b6a" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"c605e74f-8c48-4b9f-8ef4-6f5f40d94b6a", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.115072') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6f4d6274-fa2f-40a2-b046-e2d7fa040e35"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.116666"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.117448"], ["id", "6f4d6274-fa2f-40a2-b046-e2d7fa040e35"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c605e74f-8c48-4b9f-8ef4-6f5f40d94b6a"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bccc1b38-2901-456a-9a91-e8316ee887ee"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'bccc1b38-2901-456a-9a91-e8316ee887ee' LIMIT 1 [["organization_id", "c605e74f-8c48-4b9f-8ef4-6f5f40d94b6a"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c605e74f-8c48-4b9f-8ef4-6f5f40d94b6a') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$IGmo3GATF7jEci8qtWFc9O.ZUY9OUFDOpGtDryJASG7fNhhnsKi0S"], ["created_at", "2015-07-06 21:20:58.141009"], ["updated_at", "2015-07-06 21:20:58.141009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.143041"], ["user_id", "31ad11f4-7ed1-4a6e-9abb-b5bf3b8e0523"], ["created_at", "2015-07-06 21:20:58.143686"], ["updated_at", "2015-07-06 21:20:58.143686"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.148027"], ["updated_at", "2015-07-06 21:20:58.148027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '31ad11f4-7ed1-4a6e-9abb-b5bf3b8e0523' AND "clubhouse_memberships"."organization_id" = '3a399058-d26f-4d64-b247-276d5690576f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "31ad11f4-7ed1-4a6e-9abb-b5bf3b8e0523"], ["organization_id", "3a399058-d26f-4d64-b247-276d5690576f"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.151076"], ["updated_at", "2015-07-06 21:20:58.151076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$NaXDshOLXJocrcaRcBL.r.QEXxpp0ui2xdA8mCttgM3ozD7AOr4Ne"], ["created_at", "2015-07-06 21:20:58.156410"], ["updated_at", "2015-07-06 21:20:58.156410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.160652"], ["updated_at", "2015-07-06 21:20:58.160652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3d47b0b5-ed12-4998-84ca-414b3054494b' AND "clubhouse_memberships"."organization_id" = 'a26d960f-04ae-4e86-940c-0847d8b9a9c2') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3d47b0b5-ed12-4998-84ca-414b3054494b"], ["organization_id", "a26d960f-04ae-4e86-940c-0847d8b9a9c2"], ["created_at", "2015-07-06 21:20:58.164224"], ["updated_at", "2015-07-06 21:20:58.164224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$4lVqJxSQHSyKkCAU/oglGuPlhzvLyWDS8nzooUCdxuTm83/K9sHyq"], ["created_at", "2015-07-06 21:20:58.173328"], ["updated_at", "2015-07-06 21:20:58.173328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.175991"], ["user_id", "881cb4e3-e5f8-4c2f-b003-4439f00835a6"], ["created_at", "2015-07-06 21:20:58.177309"], ["updated_at", "2015-07-06 21:20:58.177309"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.181625"], ["updated_at", "2015-07-06 21:20:58.181625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '881cb4e3-e5f8-4c2f-b003-4439f00835a6' AND "clubhouse_memberships"."organization_id" = '6301cec7-384c-4dea-8441-2985061c9d5f') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "881cb4e3-e5f8-4c2f-b003-4439f00835a6"], ["organization_id", "6301cec7-384c-4dea-8441-2985061c9d5f"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.185751"], ["updated_at", "2015-07-06 21:20:58.185751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$5ccwmcrFLwicvwQnFXw.HO/4WjuUds8B2hizM7WLLFBs68QsQ7IOa"], ["created_at", "2015-07-06 21:20:58.192839"], ["updated_at", "2015-07-06 21:20:58.192839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.196876"], ["updated_at", "2015-07-06 21:20:58.196876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff69b4c4-92ee-4ec3-a622-0f87f5d258a0' AND "clubhouse_memberships"."organization_id" = 'cd7ec73b-dcce-45a2-ad7f-0abf6335c8f8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ff69b4c4-92ee-4ec3-a622-0f87f5d258a0"], ["organization_id", "cd7ec73b-dcce-45a2-ad7f-0abf6335c8f8"], ["created_at", "2015-07-06 21:20:58.199725"], ["updated_at", "2015-07-06 21:20:58.199725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.202469') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2599d94a-b915-4876-b1d0-cbebb64ce22a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.203929"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.204676"], ["id", "2599d94a-b915-4876-b1d0-cbebb64ce22a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "881cb4e3-e5f8-4c2f-b003-4439f00835a6"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "881cb4e3-e5f8-4c2f-b003-4439f00835a6"]] Completed 200 OK in 13ms (Views: 2.5ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$voWnHd0O1MCCAQv95FUpg.pwfe2Dc199dlyqpmb95noieI56PPfni"], ["created_at", "2015-07-06 21:20:58.222879"], ["updated_at", "2015-07-06 21:20:58.222879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.224906"], ["user_id", "6faa13d2-75ac-4b3b-8fa2-8630b977975a"], ["created_at", "2015-07-06 21:20:58.225749"], ["updated_at", "2015-07-06 21:20:58.225749"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.229953"], ["updated_at", "2015-07-06 21:20:58.229953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6faa13d2-75ac-4b3b-8fa2-8630b977975a' AND "clubhouse_memberships"."organization_id" = 'eae6fc59-e773-4358-9ba8-ba845aa1dd27') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6faa13d2-75ac-4b3b-8fa2-8630b977975a"], ["organization_id", "eae6fc59-e773-4358-9ba8-ba845aa1dd27"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.233581"], ["updated_at", "2015-07-06 21:20:58.233581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$hEnThdS/q5XPX4umHIhleuKxDfQfcaXECdAlTNBpTw9tgLlA/Y7se"], ["created_at", "2015-07-06 21:20:58.242844"], ["updated_at", "2015-07-06 21:20:58.242844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.244510"], ["user_id", "b3276948-4165-47fd-b045-68cbd323547a"], ["created_at", "2015-07-06 21:20:58.245151"], ["updated_at", "2015-07-06 21:20:58.245151"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.249232"], ["updated_at", "2015-07-06 21:20:58.249232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b3276948-4165-47fd-b045-68cbd323547a' AND "clubhouse_memberships"."organization_id" = 'a95077f3-ced1-4ace-a430-1ffc43e4d07c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b3276948-4165-47fd-b045-68cbd323547a"], ["organization_id", "a95077f3-ced1-4ace-a430-1ffc43e4d07c"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.252675"], ["updated_at", "2015-07-06 21:20:58.252675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-11" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-11", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.256752') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f85a1953-7454-470f-8482-597678653d97"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.258131"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.258830"], ["id", "f85a1953-7454-470f-8482-597678653d97"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-11"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b3276948-4165-47fd-b045-68cbd323547a"]] Completed 200 OK in 6ms (ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$NMaltoo/fLTlck2v1JiaWO/VsagXBloGRMX/du.jo6Ms6FuvEepce"], ["created_at", "2015-07-06 21:20:58.268955"], ["updated_at", "2015-07-06 21:20:58.268955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.272075"], ["user_id", "b80251c1-4abb-48f8-adb4-a8f4362e6202"], ["created_at", "2015-07-06 21:20:58.272773"], ["updated_at", "2015-07-06 21:20:58.272773"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.276941"], ["updated_at", "2015-07-06 21:20:58.276941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b80251c1-4abb-48f8-adb4-a8f4362e6202' AND "clubhouse_memberships"."organization_id" = 'aabf82df-1990-4108-8bcf-2c04937cfe4d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b80251c1-4abb-48f8-adb4-a8f4362e6202"], ["organization_id", "aabf82df-1990-4108-8bcf-2c04937cfe4d"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.279947"], ["updated_at", "2015-07-06 21:20:58.279947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.282813') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4daee5bc-0e07-46f3-a4f2-b703566bdc5d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.284250"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.285092"], ["id", "4daee5bc-0e07-46f3-a4f2-b703566bdc5d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$tvqqVTVvXzO68jQa.c.hAulGlbQhA9kopC4i2GKvlBYntNjMHwqle"], ["created_at", "2015-07-06 21:20:58.293767"], ["updated_at", "2015-07-06 21:20:58.293767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.295440"], ["user_id", "2817a0e1-fcde-4c8e-ba1a-db5ded7f757c"], ["created_at", "2015-07-06 21:20:58.296093"], ["updated_at", "2015-07-06 21:20:58.296093"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.300079"], ["updated_at", "2015-07-06 21:20:58.300079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2817a0e1-fcde-4c8e-ba1a-db5ded7f757c' AND "clubhouse_memberships"."organization_id" = '052fe2cf-ca56-47db-b6b3-c7ea79b206b8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2817a0e1-fcde-4c8e-ba1a-db5ded7f757c"], ["organization_id", "052fe2cf-ca56-47db-b6b3-c7ea79b206b8"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.303030"], ["updated_at", "2015-07-06 21:20:58.303030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-13" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.306219') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8481246a-db32-4bfb-81a5-6dc77538fde7"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.308249"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.309543"], ["id", "8481246a-db32-4bfb-81a5-6dc77538fde7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2817a0e1-fcde-4c8e-ba1a-db5ded7f757c"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2817a0e1-fcde-4c8e-ba1a-db5ded7f757c' LIMIT 1 [["organization_id", "052fe2cf-ca56-47db-b6b3-c7ea79b206b8"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "052fe2cf-ca56-47db-b6b3-c7ea79b206b8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$Yoo6TpErH3LMSptZT3hqL.Pu4rBykKOwQIFWs8V7igPyPDaNsTZWS"], ["created_at", "2015-07-06 21:20:58.324079"], ["updated_at", "2015-07-06 21:20:58.324079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.325828"], ["user_id", "25fb5d77-c193-46bc-82d6-fb6c92cac18c"], ["created_at", "2015-07-06 21:20:58.326429"], ["updated_at", "2015-07-06 21:20:58.326429"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.330470"], ["updated_at", "2015-07-06 21:20:58.330470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25fb5d77-c193-46bc-82d6-fb6c92cac18c' AND "clubhouse_memberships"."organization_id" = 'b9905ae4-ff6b-423d-be71-0f75a1b99105') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25fb5d77-c193-46bc-82d6-fb6c92cac18c"], ["organization_id", "b9905ae4-ff6b-423d-be71-0f75a1b99105"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.333750"], ["updated_at", "2015-07-06 21:20:58.333750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$I8EuOHqikxZcdC76LnSVwugwXkfTAjToQXU2SPz7QHzXkOBrrXofK"], ["created_at", "2015-07-06 21:20:58.342878"], ["updated_at", "2015-07-06 21:20:58.342878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.344759"], ["user_id", "599d3d73-25bc-4bf2-8393-67525603ed5d"], ["created_at", "2015-07-06 21:20:58.345377"], ["updated_at", "2015-07-06 21:20:58.345377"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.349456"], ["updated_at", "2015-07-06 21:20:58.349456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '599d3d73-25bc-4bf2-8393-67525603ed5d' AND "clubhouse_memberships"."organization_id" = '793e53e2-3ba7-4cdc-9a89-7a1261f6e8ba') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "599d3d73-25bc-4bf2-8393-67525603ed5d"], ["organization_id", "793e53e2-3ba7-4cdc-9a89-7a1261f6e8ba"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.352575"], ["updated_at", "2015-07-06 21:20:58.352575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$197oJUrPq7SgM0kcMckOF.oN56EzblBaOomgu93nkeGMGZBHPTvHu"], ["created_at", "2015-07-06 21:20:58.363101"], ["updated_at", "2015-07-06 21:20:58.363101"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.365615"], ["user_id", "37850531-8adf-443c-a01b-d9d8eb769dba"], ["created_at", "2015-07-06 21:20:58.366428"], ["updated_at", "2015-07-06 21:20:58.366428"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.373179"], ["updated_at", "2015-07-06 21:20:58.373179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37850531-8adf-443c-a01b-d9d8eb769dba' AND "clubhouse_memberships"."organization_id" = 'b8fbf7b1-6787-48c5-9a17-ac3970dc2f79') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37850531-8adf-443c-a01b-d9d8eb769dba"], ["organization_id", "b8fbf7b1-6787-48c5-9a17-ac3970dc2f79"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.376496"], ["updated_at", "2015-07-06 21:20:58.376496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.379378') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e94fd7df-7a90-4f14-8a65-6671ea08fe63"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.380976"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.381769"], ["id", "e94fd7df-7a90-4f14-8a65-6671ea08fe63"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "37850531-8adf-443c-a01b-d9d8eb769dba"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.389943"], ["updated_at", "2015-07-06 21:20:58.389943"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37850531-8adf-443c-a01b-d9d8eb769dba' AND "clubhouse_memberships"."organization_id" = 'efc7439d-7eb3-4bb0-8a54-3701ecf26311') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37850531-8adf-443c-a01b-d9d8eb769dba"], ["admin", "t"], ["organization_id", "efc7439d-7eb3-4bb0-8a54-3701ecf26311"], ["created_at", "2015-07-06 21:20:58.393051"], ["updated_at", "2015-07-06 21:20:58.393051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.4ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$i/AgHgQZxjUORUx/9LUUwOPjh08dCNJQtfSTeSo.zKjWDrCep/WTq"], ["created_at", "2015-07-06 21:20:58.401960"], ["updated_at", "2015-07-06 21:20:58.401960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.403581"], ["user_id", "e93527bc-d9cb-4fda-84ad-9623c761abf2"], ["created_at", "2015-07-06 21:20:58.404153"], ["updated_at", "2015-07-06 21:20:58.404153"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.409198"], ["updated_at", "2015-07-06 21:20:58.409198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e93527bc-d9cb-4fda-84ad-9623c761abf2' AND "clubhouse_memberships"."organization_id" = 'af30dc63-ae1e-48e7-befd-d2ea18463395') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e93527bc-d9cb-4fda-84ad-9623c761abf2"], ["organization_id", "af30dc63-ae1e-48e7-befd-d2ea18463395"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.413070"], ["updated_at", "2015-07-06 21:20:58.413070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.416243') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4188589d-f503-4dc7-a1b4-5c2c04cdb9ff"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.417819"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.418871"], ["id", "4188589d-f503-4dc7-a1b4-5c2c04cdb9ff"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e93527bc-d9cb-4fda-84ad-9623c761abf2"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$xq4BTqJg6cNNjB/ey4YQpONqfSBhjagB1DHfrBfg4DtprAS5v/J96"], ["created_at", "2015-07-06 21:20:58.434172"], ["updated_at", "2015-07-06 21:20:58.434172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.435869"], ["user_id", "098d2d27-5635-484a-910b-0bbac3bd861e"], ["created_at", "2015-07-06 21:20:58.436515"], ["updated_at", "2015-07-06 21:20:58.436515"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.441043"], ["updated_at", "2015-07-06 21:20:58.441043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '098d2d27-5635-484a-910b-0bbac3bd861e' AND "clubhouse_memberships"."organization_id" = '49c60867-b482-489d-963e-b5b121053e9f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "098d2d27-5635-484a-910b-0bbac3bd861e"], ["organization_id", "49c60867-b482-489d-963e-b5b121053e9f"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.444454"], ["updated_at", "2015-07-06 21:20:58.444454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$BdbhVYLQZhMwMAKxDm1GlerSipyM4wLkF90kUXdIBWPI/SPO0guGK"], ["created_at", "2015-07-06 21:20:58.453256"], ["updated_at", "2015-07-06 21:20:58.453256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.454838"], ["user_id", "0189b4d5-11e6-4de8-b6ec-828a31a94f84"], ["created_at", "2015-07-06 21:20:58.455451"], ["updated_at", "2015-07-06 21:20:58.455451"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.459424"], ["updated_at", "2015-07-06 21:20:58.459424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0189b4d5-11e6-4de8-b6ec-828a31a94f84' AND "clubhouse_memberships"."organization_id" = '83fe1b33-c809-450e-849e-9b9a4ce26aaa') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0189b4d5-11e6-4de8-b6ec-828a31a94f84"], ["organization_id", "83fe1b33-c809-450e-849e-9b9a4ce26aaa"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.463512"], ["updated_at", "2015-07-06 21:20:58.463512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/83fe1b33-c809-450e-849e-9b9a4ce26aaa" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"83fe1b33-c809-450e-849e-9b9a4ce26aaa", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.467401') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "28a5fe72-ef1a-4782-9b31-c9155beb5576"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.469295"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.470084"], ["id", "28a5fe72-ef1a-4782-9b31-c9155beb5576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "83fe1b33-c809-450e-849e-9b9a4ce26aaa"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0189b4d5-11e6-4de8-b6ec-828a31a94f84"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '0189b4d5-11e6-4de8-b6ec-828a31a94f84' LIMIT 1 [["organization_id", "83fe1b33-c809-450e-849e-9b9a4ce26aaa"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "83fe1b33-c809-450e-849e-9b9a4ce26aaa"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$UcjJIvTBf1hel3HyM8s4ZerYv56hrlv0Z/lUP/zgdBIXUmV7qdwQq"], ["created_at", "2015-07-06 21:20:58.481784"], ["updated_at", "2015-07-06 21:20:58.481784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.483406"], ["user_id", "5a5c5d4e-1580-4aaf-96fa-e627a1074a44"], ["created_at", "2015-07-06 21:20:58.484087"], ["updated_at", "2015-07-06 21:20:58.484087"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.490265"], ["updated_at", "2015-07-06 21:20:58.490265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5a5c5d4e-1580-4aaf-96fa-e627a1074a44' AND "clubhouse_memberships"."organization_id" = 'bdb906d1-48a2-4cba-86e3-19edf1a8088c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5a5c5d4e-1580-4aaf-96fa-e627a1074a44"], ["organization_id", "bdb906d1-48a2-4cba-86e3-19edf1a8088c"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.493906"], ["updated_at", "2015-07-06 21:20:58.493906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$kZkIg9eCWi9.EgsSfHQJeeZHLAMYnPpOuh8.NiNAlg/vG.hI3al6u"], ["created_at", "2015-07-06 21:20:58.502955"], ["updated_at", "2015-07-06 21:20:58.502955"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.505794"], ["user_id", "74a79a5a-ff91-4dcf-b9da-f0d37fee5ec0"], ["created_at", "2015-07-06 21:20:58.506585"], ["updated_at", "2015-07-06 21:20:58.506585"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.511393"], ["updated_at", "2015-07-06 21:20:58.511393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74a79a5a-ff91-4dcf-b9da-f0d37fee5ec0' AND "clubhouse_memberships"."organization_id" = '9e9e4416-6ef6-4bd9-b756-5930319a64d3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74a79a5a-ff91-4dcf-b9da-f0d37fee5ec0"], ["organization_id", "9e9e4416-6ef6-4bd9-b756-5930319a64d3"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.514697"], ["updated_at", "2015-07-06 21:20:58.514697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-21" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-21", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.517631') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a6038f10-6cf5-4b4d-a967-a9c32b919ac2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.519030"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.519758"], ["id", "a6038f10-6cf5-4b4d-a967-a9c32b919ac2"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74a79a5a-ff91-4dcf-b9da-f0d37fee5ec0"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '74a79a5a-ff91-4dcf-b9da-f0d37fee5ec0' LIMIT 1 [["organization_id", "9e9e4416-6ef6-4bd9-b756-5930319a64d3"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9e9e4416-6ef6-4bd9-b756-5930319a64d3') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$LHmkkr9cP8BxfUpqOmuhUuqjJ8WB1S1fOfcoXiipL44Gm8I2ZqpFm"], ["created_at", "2015-07-06 21:20:58.538050"], ["updated_at", "2015-07-06 21:20:58.538050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.540249"], ["user_id", "b51a94bb-237c-420e-8da9-ec807ee1a90d"], ["created_at", "2015-07-06 21:20:58.540982"], ["updated_at", "2015-07-06 21:20:58.540982"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.546023"], ["updated_at", "2015-07-06 21:20:58.546023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b51a94bb-237c-420e-8da9-ec807ee1a90d' AND "clubhouse_memberships"."organization_id" = '77742077-5323-4e97-aae3-950840db8661') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b51a94bb-237c-420e-8da9-ec807ee1a90d"], ["organization_id", "77742077-5323-4e97-aae3-950840db8661"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.549007"], ["updated_at", "2015-07-06 21:20:58.549007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-22" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-22", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.551960') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e97e411a-9c32-4981-b6be-36842a4560f6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.553455"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.554214"], ["id", "e97e411a-9c32-4981-b6be-36842a4560f6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-22"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b51a94bb-237c-420e-8da9-ec807ee1a90d"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b51a94bb-237c-420e-8da9-ec807ee1a90d' LIMIT 1 [["organization_id", "77742077-5323-4e97-aae3-950840db8661"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '77742077-5323-4e97-aae3-950840db8661') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:20:58.561357"], ["id", "77742077-5323-4e97-aae3-950840db8661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$W1t1VewxCCKvSOOY6MrNF.TyLN37I2hTf1JifPCxPuCUQQeS1s3zC"], ["created_at", "2015-07-06 21:20:58.570506"], ["updated_at", "2015-07-06 21:20:58.570506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.572255"], ["user_id", "88cf1623-dc32-4298-983f-d43f5739dbea"], ["created_at", "2015-07-06 21:20:58.573089"], ["updated_at", "2015-07-06 21:20:58.573089"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.578311"], ["updated_at", "2015-07-06 21:20:58.578311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '88cf1623-dc32-4298-983f-d43f5739dbea' AND "clubhouse_memberships"."organization_id" = 'f1fe796e-800b-4bd5-941e-09a153f73d22') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "88cf1623-dc32-4298-983f-d43f5739dbea"], ["organization_id", "f1fe796e-800b-4bd5-941e-09a153f73d22"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.581461"], ["updated_at", "2015-07-06 21:20:58.581461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$KvVQazg6u2dpRnFywiyHh.tXn4hde4JTuMRpYDg5Be0lJAq17rZVm"], ["created_at", "2015-07-06 21:20:58.592350"], ["updated_at", "2015-07-06 21:20:58.592350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:20:58.594140"], ["user_id", "f7849096-85b8-4179-9cab-c20ee3ae8cd5"], ["created_at", "2015-07-06 21:20:58.594734"], ["updated_at", "2015-07-06 21:20:58.594734"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:20:58.598625"], ["updated_at", "2015-07-06 21:20:58.598625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f7849096-85b8-4179-9cab-c20ee3ae8cd5' AND "clubhouse_memberships"."organization_id" = 'e3fc4fad-1f2a-480f-8c3b-ee6a1d368864') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f7849096-85b8-4179-9cab-c20ee3ae8cd5"], ["organization_id", "e3fc4fad-1f2a-480f-8c3b-ee6a1d368864"], ["admin", "t"], ["created_at", "2015-07-06 21:20:58.602117"], ["updated_at", "2015-07-06 21:20:58.602117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/e3fc4fad-1f2a-480f-8c3b-ee6a1d368864" for 127.0.0.1 at 2015-07-06 14:20:58 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"e3fc4fad-1f2a-480f-8c3b-ee6a1d368864", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:20:58.604821') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9c4c0df4-9e78-4354-9e23-090d131ee60a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:20:58.606366"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:20:58.607166"], ["id", "9c4c0df4-9e78-4354-9e23-090d131ee60a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e3fc4fad-1f2a-480f-8c3b-ee6a1d368864"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f7849096-85b8-4179-9cab-c20ee3ae8cd5"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f7849096-85b8-4179-9cab-c20ee3ae8cd5' LIMIT 1 [["organization_id", "e3fc4fad-1f2a-480f-8c3b-ee6a1d368864"]] Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$NuHsB88ZPEVFRl3wWg5OHe4rQsHpmuo5WuGRTEw79U.HDy4xSuMI2"], ["created_at", "2015-07-06 21:21:13.427710"], ["updated_at", "2015-07-06 21:21:13.427710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.444379"], ["user_id", "bae37cf8-b861-400c-81b4-ded22e7b26d7"], ["created_at", "2015-07-06 21:21:13.450414"], ["updated_at", "2015-07-06 21:21:13.450414"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.462006"], ["updated_at", "2015-07-06 21:21:13.462006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bae37cf8-b861-400c-81b4-ded22e7b26d7' AND "clubhouse_memberships"."organization_id" = 'c31d8e09-26b7-4b46-81f8-273f35cf9894') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bae37cf8-b861-400c-81b4-ded22e7b26d7"], ["organization_id", "c31d8e09-26b7-4b46-81f8-273f35cf9894"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.475223"], ["updated_at", "2015-07-06 21:21:13.475223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$A6Se6/CEsgpCZn3rSYRQfuj7ZsgK4pW8pNK5aIdWA9YC085ys.Boe"], ["created_at", "2015-07-06 21:21:13.505913"], ["updated_at", "2015-07-06 21:21:13.505913"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.508834"], ["user_id", "2f0122ee-3e25-4538-90f6-e5175a11564b"], ["created_at", "2015-07-06 21:21:13.510172"], ["updated_at", "2015-07-06 21:21:13.510172"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.516432"], ["updated_at", "2015-07-06 21:21:13.516432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f0122ee-3e25-4538-90f6-e5175a11564b' AND "clubhouse_memberships"."organization_id" = '6a5943e2-00b3-45d4-b5f1-5e336ec4bc03') LIMIT 1 SQL (3.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f0122ee-3e25-4538-90f6-e5175a11564b"], ["organization_id", "6a5943e2-00b3-45d4-b5f1-5e336ec4bc03"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.521151"], ["updated_at", "2015-07-06 21:21:13.521151"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-2" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:13.534067') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a2f82992-6b1e-44b4-93f6-c27d1d088d1c"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:13.544423"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:13.545829"], ["id", "a2f82992-6b1e-44b4-93f6-c27d1d088d1c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-2"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f0122ee-3e25-4538-90f6-e5175a11564b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2f0122ee-3e25-4538-90f6-e5175a11564b' LIMIT 1 [["organization_id", "6a5943e2-00b3-45d4-b5f1-5e336ec4bc03"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "6a5943e2-00b3-45d4-b5f1-5e336ec4bc03"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 39ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$Jh82rbU0fdJWnQ6cP0wb7OeSV568KSj4W9ybygwmtHu9SSXZV2vXm"], ["created_at", "2015-07-06 21:21:13.582635"], ["updated_at", "2015-07-06 21:21:13.582635"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.585540"], ["user_id", "f6787398-d7dd-4728-b42f-d736cb4e3fe9"], ["created_at", "2015-07-06 21:21:13.586458"], ["updated_at", "2015-07-06 21:21:13.586458"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.591148"], ["updated_at", "2015-07-06 21:21:13.591148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6787398-d7dd-4728-b42f-d736cb4e3fe9' AND "clubhouse_memberships"."organization_id" = '4a6178c1-f639-41b7-9bb3-1e6fcaad5f8e') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f6787398-d7dd-4728-b42f-d736cb4e3fe9"], ["organization_id", "4a6178c1-f639-41b7-9bb3-1e6fcaad5f8e"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.595878"], ["updated_at", "2015-07-06 21:21:13.595878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/4a6178c1-f639-41b7-9bb3-1e6fcaad5f8e" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"4a6178c1-f639-41b7-9bb3-1e6fcaad5f8e", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:13.601351') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5034fec4-bffe-497b-a550-5a739f3b6e2b"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:13.603238"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:13.604386"], ["id", "5034fec4-bffe-497b-a550-5a739f3b6e2b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "4a6178c1-f639-41b7-9bb3-1e6fcaad5f8e"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6787398-d7dd-4728-b42f-d736cb4e3fe9"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f6787398-d7dd-4728-b42f-d736cb4e3fe9' LIMIT 1 [["organization_id", "4a6178c1-f639-41b7-9bb3-1e6fcaad5f8e"]] Completed 200 OK in 28ms (Views: 15.2ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$vMQv6YFxYaXyNMqJE0fcsO24dl3svScH9MponC2aVJGU8dQNwrGz2"], ["created_at", "2015-07-06 21:21:13.641904"], ["updated_at", "2015-07-06 21:21:13.641904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.644589"], ["user_id", "db5aceb7-4fa2-4b3b-94af-c0f57341f681"], ["created_at", "2015-07-06 21:21:13.645492"], ["updated_at", "2015-07-06 21:21:13.645492"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.652970"], ["updated_at", "2015-07-06 21:21:13.652970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'db5aceb7-4fa2-4b3b-94af-c0f57341f681' AND "clubhouse_memberships"."organization_id" = '004911a7-82b1-456a-83dd-925e3972074c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "db5aceb7-4fa2-4b3b-94af-c0f57341f681"], ["organization_id", "004911a7-82b1-456a-83dd-925e3972074c"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.657065"], ["updated_at", "2015-07-06 21:21:13.657065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$PYQKrfQ9Y5ZBUo3a0l4LiuX0hc4fzqUHXhdseIdgkXdVfhZ0n2HDW"], ["created_at", "2015-07-06 21:21:13.669715"], ["updated_at", "2015-07-06 21:21:13.669715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.672380"], ["user_id", "29df3609-3a83-4c82-a5a9-41695f41fdf0"], ["created_at", "2015-07-06 21:21:13.673304"], ["updated_at", "2015-07-06 21:21:13.673304"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.678105"], ["updated_at", "2015-07-06 21:21:13.678105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '29df3609-3a83-4c82-a5a9-41695f41fdf0' AND "clubhouse_memberships"."organization_id" = 'd0b89999-2ff2-4685-a0c8-360d5eb3d492') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "29df3609-3a83-4c82-a5a9-41695f41fdf0"], ["organization_id", "d0b89999-2ff2-4685-a0c8-360d5eb3d492"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.682798"], ["updated_at", "2015-07-06 21:21:13.682798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$lY2jY51JIkdFgLndKGUXA.SD2H3bMDfIUsfbVrhNNI/.WpfdaKNs6"], ["created_at", "2015-07-06 21:21:13.694519"], ["updated_at", "2015-07-06 21:21:13.694519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.696862"], ["user_id", "3480c6eb-e0a5-43ed-a307-7a8c9fc5f2b6"], ["created_at", "2015-07-06 21:21:13.698228"], ["updated_at", "2015-07-06 21:21:13.698228"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.703815"], ["updated_at", "2015-07-06 21:21:13.703815"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3480c6eb-e0a5-43ed-a307-7a8c9fc5f2b6' AND "clubhouse_memberships"."organization_id" = '2864d5ad-4f85-4956-badd-6f770945f384') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3480c6eb-e0a5-43ed-a307-7a8c9fc5f2b6"], ["organization_id", "2864d5ad-4f85-4956-badd-6f770945f384"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.708231"], ["updated_at", "2015-07-06 21:21:13.708231"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/2864d5ad-4f85-4956-badd-6f770945f384" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"2864d5ad-4f85-4956-badd-6f770945f384", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:13.724725') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ff3a13b6-e6c4-470c-8959-ca4d87fd139a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:13.727181"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:13.728244"], ["id", "ff3a13b6-e6c4-470c-8959-ca4d87fd139a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2864d5ad-4f85-4956-badd-6f770945f384"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3480c6eb-e0a5-43ed-a307-7a8c9fc5f2b6"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '3480c6eb-e0a5-43ed-a307-7a8c9fc5f2b6' LIMIT 1 [["organization_id", "2864d5ad-4f85-4956-badd-6f770945f384"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '2864d5ad-4f85-4956-badd-6f770945f384') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 28ms (ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (1.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$.T/GY2QUB.R1.z7Z8smFo.6ILEu7H8zJGAnSPN21w5/NZ2pIs7yty"], ["created_at", "2015-07-06 21:21:13.760599"], ["updated_at", "2015-07-06 21:21:13.760599"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.765147"], ["user_id", "10b4c03c-aa0c-4673-aaf1-23953600486d"], ["created_at", "2015-07-06 21:21:13.766324"], ["updated_at", "2015-07-06 21:21:13.766324"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.772667"], ["updated_at", "2015-07-06 21:21:13.772667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '10b4c03c-aa0c-4673-aaf1-23953600486d' AND "clubhouse_memberships"."organization_id" = '9b297e71-37d4-4aef-a1b6-8d777a4e2087') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "10b4c03c-aa0c-4673-aaf1-23953600486d"], ["organization_id", "9b297e71-37d4-4aef-a1b6-8d777a4e2087"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.777031"], ["updated_at", "2015-07-06 21:21:13.777031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/9b297e71-37d4-4aef-a1b6-8d777a4e2087" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"9b297e71-37d4-4aef-a1b6-8d777a4e2087", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:13.782412') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3372bf05-c670-4dc1-bf01-2002de224a62"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:13.784731"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:13.786388"], ["id", "3372bf05-c670-4dc1-bf01-2002de224a62"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "9b297e71-37d4-4aef-a1b6-8d777a4e2087"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "10b4c03c-aa0c-4673-aaf1-23953600486d"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '10b4c03c-aa0c-4673-aaf1-23953600486d' LIMIT 1 [["organization_id", "9b297e71-37d4-4aef-a1b6-8d777a4e2087"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '9b297e71-37d4-4aef-a1b6-8d777a4e2087') LIMIT 1 SQL (0.6ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:21:13.806058"], ["id", "9b297e71-37d4-4aef-a1b6-8d777a4e2087"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 30ms (Views: 1.4ms | ActiveRecord: 4.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$uOlE7kVe5CVCBERJw.4KiO8evXAkYP/H6gHxq4AzwSi6TVraWtqrC"], ["created_at", "2015-07-06 21:21:13.848991"], ["updated_at", "2015-07-06 21:21:13.848991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.851944"], ["user_id", "584555b0-8abf-45f8-9c8f-a313b0bfb89a"], ["created_at", "2015-07-06 21:21:13.852781"], ["updated_at", "2015-07-06 21:21:13.852781"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.858239"], ["updated_at", "2015-07-06 21:21:13.858239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '584555b0-8abf-45f8-9c8f-a313b0bfb89a' AND "clubhouse_memberships"."organization_id" = 'd32ea3b5-2cb7-4004-8997-9de57864d9b1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "584555b0-8abf-45f8-9c8f-a313b0bfb89a"], ["organization_id", "d32ea3b5-2cb7-4004-8997-9de57864d9b1"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.862823"], ["updated_at", "2015-07-06 21:21:13.862823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$80s0n3l9lI7RRyHwLM.8D.08O1ZE1IVyJ6HeZxBu2h3RIf8aeuPEO"], ["created_at", "2015-07-06 21:21:13.875269"], ["updated_at", "2015-07-06 21:21:13.875269"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.878023"], ["user_id", "7dac02fc-93f3-4483-88d1-cf119329e445"], ["created_at", "2015-07-06 21:21:13.879096"], ["updated_at", "2015-07-06 21:21:13.879096"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.885813"], ["updated_at", "2015-07-06 21:21:13.885813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7dac02fc-93f3-4483-88d1-cf119329e445' AND "clubhouse_memberships"."organization_id" = '0fe1ec6c-bb50-4fa6-8d32-74c0c284562c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7dac02fc-93f3-4483-88d1-cf119329e445"], ["organization_id", "0fe1ec6c-bb50-4fa6-8d32-74c0c284562c"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.889179"], ["updated_at", "2015-07-06 21:21:13.889179"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/0fe1ec6c-bb50-4fa6-8d32-74c0c284562c" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"0fe1ec6c-bb50-4fa6-8d32-74c0c284562c", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:13.892599') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "82141b8f-a86f-48b3-95a9-a93cd179340b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:13.894331"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:13.895217"], ["id", "82141b8f-a86f-48b3-95a9-a93cd179340b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0fe1ec6c-bb50-4fa6-8d32-74c0c284562c"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7dac02fc-93f3-4483-88d1-cf119329e445"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '7dac02fc-93f3-4483-88d1-cf119329e445' LIMIT 1 [["organization_id", "0fe1ec6c-bb50-4fa6-8d32-74c0c284562c"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "0fe1ec6c-bb50-4fa6-8d32-74c0c284562c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$YxxMjfDCVBAjxO7xtLCstOannLUl2IGafZtHSjKpyjmviRyTQ2FHi"], ["created_at", "2015-07-06 21:21:13.911222"], ["updated_at", "2015-07-06 21:21:13.911222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.912973"], ["user_id", "23668c01-b708-4c3e-84ef-c393bb30c366"], ["created_at", "2015-07-06 21:21:13.913640"], ["updated_at", "2015-07-06 21:21:13.913640"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.918970"], ["updated_at", "2015-07-06 21:21:13.918970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '23668c01-b708-4c3e-84ef-c393bb30c366' AND "clubhouse_memberships"."organization_id" = '78179d01-e996-40b9-b31e-d7f7c30e3913') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "23668c01-b708-4c3e-84ef-c393bb30c366"], ["organization_id", "78179d01-e996-40b9-b31e-d7f7c30e3913"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.922873"], ["updated_at", "2015-07-06 21:21:13.922873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$8gOSZ/yNBxLXg3Lh2Xiu/.CTL20UdEXjFT7Vkke8K8uevQwJ6X4J."], ["created_at", "2015-07-06 21:21:13.929117"], ["updated_at", "2015-07-06 21:21:13.929117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.933577"], ["updated_at", "2015-07-06 21:21:13.933577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17fec913-42ae-4a3b-ac91-cf0190a1a95e' AND "clubhouse_memberships"."organization_id" = '32d11184-7e0f-4689-907c-8f24f7dc807b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "17fec913-42ae-4a3b-ac91-cf0190a1a95e"], ["organization_id", "32d11184-7e0f-4689-907c-8f24f7dc807b"], ["created_at", "2015-07-06 21:21:13.937357"], ["updated_at", "2015-07-06 21:21:13.937357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:13.941613') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "43c0a262-8436-42ba-a80e-61e2ce494fb8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:13.943902"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:13.944950"], ["id", "43c0a262-8436-42ba-a80e-61e2ce494fb8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "23668c01-b708-4c3e-84ef-c393bb30c366"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "23668c01-b708-4c3e-84ef-c393bb30c366"]] Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$tbHJ4yJ7FHaAWJeFwP5hH.CyWD7s/WfMeASEZX7BvkGoULFU01lBO"], ["created_at", "2015-07-06 21:21:13.969800"], ["updated_at", "2015-07-06 21:21:13.969800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:13.971973"], ["user_id", "2cabfb41-d3e9-488f-b510-ba33a610eee7"], ["created_at", "2015-07-06 21:21:13.973066"], ["updated_at", "2015-07-06 21:21:13.973066"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.978140"], ["updated_at", "2015-07-06 21:21:13.978140"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2cabfb41-d3e9-488f-b510-ba33a610eee7' AND "clubhouse_memberships"."organization_id" = 'bc29202e-46d4-483a-a07a-fb9606d0f696') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2cabfb41-d3e9-488f-b510-ba33a610eee7"], ["organization_id", "bc29202e-46d4-483a-a07a-fb9606d0f696"], ["admin", "t"], ["created_at", "2015-07-06 21:21:13.982609"], ["updated_at", "2015-07-06 21:21:13.982609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$2jiUzZxfsJvwiONKLSQRGerrGYXiMo/gsLbU8xe48QTKNBlSFEORW"], ["created_at", "2015-07-06 21:21:13.989077"], ["updated_at", "2015-07-06 21:21:13.989077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:13.993426"], ["updated_at", "2015-07-06 21:21:13.993426"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87e808e1-8b19-4b8d-94a9-d4b4f216f152' AND "clubhouse_memberships"."organization_id" = 'f7acf13b-a25c-494d-912e-a59d68e499f6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "87e808e1-8b19-4b8d-94a9-d4b4f216f152"], ["organization_id", "f7acf13b-a25c-494d-912e-a59d68e499f6"], ["created_at", "2015-07-06 21:21:13.996996"], ["updated_at", "2015-07-06 21:21:13.996996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:21:13 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$XtMGnv.wAwfvfWrzgstDLORxqTL3kW37d5tBVrMNlEnE8x13WXipq"], ["created_at", "2015-07-06 21:21:14.008862"], ["updated_at", "2015-07-06 21:21:14.008862"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.011074"], ["user_id", "0f186e3d-3e3c-496d-8d81-72b19b117a6e"], ["created_at", "2015-07-06 21:21:14.011952"], ["updated_at", "2015-07-06 21:21:14.011952"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.017111"], ["updated_at", "2015-07-06 21:21:14.017111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0f186e3d-3e3c-496d-8d81-72b19b117a6e' AND "clubhouse_memberships"."organization_id" = '5c49d657-7052-408c-857a-6d4bca8f5575') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0f186e3d-3e3c-496d-8d81-72b19b117a6e"], ["organization_id", "5c49d657-7052-408c-857a-6d4bca8f5575"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.021927"], ["updated_at", "2015-07-06 21:21:14.021927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$Mi/Fh/jxnZsQKiSlj0qfT.ctGyp5rNJ.dj2bB0TMD.ZCwsiZx93gy"], ["created_at", "2015-07-06 21:21:14.032721"], ["updated_at", "2015-07-06 21:21:14.032721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.035194"], ["user_id", "2074173f-fb08-4052-8cc8-29bb39abc00c"], ["created_at", "2015-07-06 21:21:14.035901"], ["updated_at", "2015-07-06 21:21:14.035901"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.041899"], ["updated_at", "2015-07-06 21:21:14.041899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2074173f-fb08-4052-8cc8-29bb39abc00c' AND "clubhouse_memberships"."organization_id" = '5bb65871-f7f6-417a-ac46-feffd39d3fab') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2074173f-fb08-4052-8cc8-29bb39abc00c"], ["organization_id", "5bb65871-f7f6-417a-ac46-feffd39d3fab"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.046747"], ["updated_at", "2015-07-06 21:21:14.046747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-15" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-15", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:14.050301') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0c224cbf-8280-4b26-9d4f-e5bf76e48b1d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:14.052257"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:14.053197"], ["id", "0c224cbf-8280-4b26-9d4f-e5bf76e48b1d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-15"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2074173f-fb08-4052-8cc8-29bb39abc00c"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2074173f-fb08-4052-8cc8-29bb39abc00c' LIMIT 1 [["organization_id", "5bb65871-f7f6-417a-ac46-feffd39d3fab"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '5bb65871-f7f6-417a-ac46-feffd39d3fab') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$LPDxGs.TlYYc6oFgwMnaieY4qmvgW1A3X.Q6Y5SZ0sEH.jFXPDr7W"], ["created_at", "2015-07-06 21:21:14.071596"], ["updated_at", "2015-07-06 21:21:14.071596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.073374"], ["user_id", "a69d9772-c685-4adf-829d-39828eabc0d6"], ["created_at", "2015-07-06 21:21:14.074044"], ["updated_at", "2015-07-06 21:21:14.074044"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.079290"], ["updated_at", "2015-07-06 21:21:14.079290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a69d9772-c685-4adf-829d-39828eabc0d6' AND "clubhouse_memberships"."organization_id" = 'd31593ee-d8bc-49cb-87b3-43831b90a399') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a69d9772-c685-4adf-829d-39828eabc0d6"], ["organization_id", "d31593ee-d8bc-49cb-87b3-43831b90a399"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.083944"], ["updated_at", "2015-07-06 21:21:14.083944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-16" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-16", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:14.088583') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d9cbf227-5ef7-406b-b019-5f33b3172c22"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:14.090482"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:14.091596"], ["id", "d9cbf227-5ef7-406b-b019-5f33b3172c22"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-16"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a69d9772-c685-4adf-829d-39828eabc0d6"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a69d9772-c685-4adf-829d-39828eabc0d6' LIMIT 1 [["organization_id", "d31593ee-d8bc-49cb-87b3-43831b90a399"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'd31593ee-d8bc-49cb-87b3-43831b90a399') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:21:14.102410"], ["id", "d31593ee-d8bc-49cb-87b3-43831b90a399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.7ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$pkjLBVSd.oakgLxHdV1kZuyHbxUAfvFBEMlxdcjGMjlWqnBprZZ5G"], ["created_at", "2015-07-06 21:21:14.113557"], ["updated_at", "2015-07-06 21:21:14.113557"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.115497"], ["user_id", "3e906057-08d5-41c4-b591-a9f40a0b3ceb"], ["created_at", "2015-07-06 21:21:14.116177"], ["updated_at", "2015-07-06 21:21:14.116177"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.121269"], ["updated_at", "2015-07-06 21:21:14.121269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3e906057-08d5-41c4-b591-a9f40a0b3ceb' AND "clubhouse_memberships"."organization_id" = '2d0ffa3a-29fe-4f9f-9eab-228118de0d06') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3e906057-08d5-41c4-b591-a9f40a0b3ceb"], ["organization_id", "2d0ffa3a-29fe-4f9f-9eab-228118de0d06"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.124545"], ["updated_at", "2015-07-06 21:21:14.124545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-17" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-17", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:14.128496') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d66a5b86-e502-425a-93a6-8180058aa506"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:14.130094"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:14.131010"], ["id", "d66a5b86-e502-425a-93a6-8180058aa506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-17"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3e906057-08d5-41c4-b591-a9f40a0b3ceb"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3e906057-08d5-41c4-b591-a9f40a0b3ceb' LIMIT 1 [["organization_id", "2d0ffa3a-29fe-4f9f-9eab-228118de0d06"]] Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$iqwGN8h3JmuSI50GKVoC2uOon3EvgZRB1vMPQzhXTT1Nk44..y/vW"], ["created_at", "2015-07-06 21:21:14.147850"], ["updated_at", "2015-07-06 21:21:14.147850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.150129"], ["user_id", "e77d4431-cae8-4d54-bafe-99b86e56280f"], ["created_at", "2015-07-06 21:21:14.150999"], ["updated_at", "2015-07-06 21:21:14.150999"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.155526"], ["updated_at", "2015-07-06 21:21:14.155526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e77d4431-cae8-4d54-bafe-99b86e56280f' AND "clubhouse_memberships"."organization_id" = '18e66375-a338-4e13-b5ba-3f1304dd640c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e77d4431-cae8-4d54-bafe-99b86e56280f"], ["organization_id", "18e66375-a338-4e13-b5ba-3f1304dd640c"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.160226"], ["updated_at", "2015-07-06 21:21:14.160226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$p7BKD2r4aNJholOZbJZDIe9SvXIhFtmxg6wNNLkKQ5.UxhRaoqppq"], ["created_at", "2015-07-06 21:21:14.171918"], ["updated_at", "2015-07-06 21:21:14.171918"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.173983"], ["user_id", "1ca8a20b-cbc4-434e-aab5-6537a93ea00b"], ["created_at", "2015-07-06 21:21:14.175014"], ["updated_at", "2015-07-06 21:21:14.175014"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.179602"], ["updated_at", "2015-07-06 21:21:14.179602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1ca8a20b-cbc4-434e-aab5-6537a93ea00b' AND "clubhouse_memberships"."organization_id" = '6dedf665-40d3-44d0-9044-0def7b371b84') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1ca8a20b-cbc4-434e-aab5-6537a93ea00b"], ["organization_id", "6dedf665-40d3-44d0-9044-0def7b371b84"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.183975"], ["updated_at", "2015-07-06 21:21:14.183975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$Hn/xO9y8wEB2LZFTCMLsFOR5rQTupVcLpYQH3.d7ek9tQWeoFT/DS"], ["created_at", "2015-07-06 21:21:14.199681"], ["updated_at", "2015-07-06 21:21:14.199681"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.203896"], ["user_id", "b63e9414-6cf7-4412-83b9-abbae85ef64f"], ["created_at", "2015-07-06 21:21:14.205564"], ["updated_at", "2015-07-06 21:21:14.205564"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.211446"], ["updated_at", "2015-07-06 21:21:14.211446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b63e9414-6cf7-4412-83b9-abbae85ef64f' AND "clubhouse_memberships"."organization_id" = 'fbc7dcb0-105d-419b-b8da-dfbe5ddee125') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b63e9414-6cf7-4412-83b9-abbae85ef64f"], ["organization_id", "fbc7dcb0-105d-419b-b8da-dfbe5ddee125"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.215566"], ["updated_at", "2015-07-06 21:21:14.215566"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:14.219960') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a247b4dc-167b-4b50-a340-04e6e8731cae"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:14.222782"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:14.224407"], ["id", "a247b4dc-167b-4b50-a340-04e6e8731cae"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b63e9414-6cf7-4412-83b9-abbae85ef64f"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.237147"], ["updated_at", "2015-07-06 21:21:14.237147"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b63e9414-6cf7-4412-83b9-abbae85ef64f' AND "clubhouse_memberships"."organization_id" = 'e674b803-1ea0-4cbe-af5d-52b41b29140b') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b63e9414-6cf7-4412-83b9-abbae85ef64f"], ["admin", "t"], ["organization_id", "e674b803-1ea0-4cbe-af5d-52b41b29140b"], ["created_at", "2015-07-06 21:21:14.242219"], ["updated_at", "2015-07-06 21:21:14.242219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 0.6ms | ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$1/WESWmVv50JGG.9YP4RwO/mKW4ndT4.zaz4Mzhxa7uoyuZzYa/82"], ["created_at", "2015-07-06 21:21:14.254681"], ["updated_at", "2015-07-06 21:21:14.254681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.256930"], ["user_id", "4ad1f6ba-c1d3-4af6-a810-9a88cb9767de"], ["created_at", "2015-07-06 21:21:14.257652"], ["updated_at", "2015-07-06 21:21:14.257652"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.261978"], ["updated_at", "2015-07-06 21:21:14.261978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4ad1f6ba-c1d3-4af6-a810-9a88cb9767de' AND "clubhouse_memberships"."organization_id" = 'ca8e4305-e1c4-46b6-914b-0618cb9cb471') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4ad1f6ba-c1d3-4af6-a810-9a88cb9767de"], ["organization_id", "ca8e4305-e1c4-46b6-914b-0618cb9cb471"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.266388"], ["updated_at", "2015-07-06 21:21:14.266388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:14.271375') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a1fedb90-4d6d-4b7a-83a4-243abcce4c04"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:14.273077"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:14.274194"], ["id", "a1fedb90-4d6d-4b7a-83a4-243abcce4c04"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4ad1f6ba-c1d3-4af6-a810-9a88cb9767de"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$LyxLx/bvHLY9A4VvI5XuoeC4lcybjjzvRbZfdeTyF61TQjyOaS3su"], ["created_at", "2015-07-06 21:21:14.291433"], ["updated_at", "2015-07-06 21:21:14.291433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.293281"], ["user_id", "25b48ad7-1639-4e1d-b84a-a777530c70fc"], ["created_at", "2015-07-06 21:21:14.293947"], ["updated_at", "2015-07-06 21:21:14.293947"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.299313"], ["updated_at", "2015-07-06 21:21:14.299313"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25b48ad7-1639-4e1d-b84a-a777530c70fc' AND "clubhouse_memberships"."organization_id" = '4a7e92eb-5a39-49bb-b52e-8715c4c092cc') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25b48ad7-1639-4e1d-b84a-a777530c70fc"], ["organization_id", "4a7e92eb-5a39-49bb-b52e-8715c4c092cc"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.304333"], ["updated_at", "2015-07-06 21:21:14.304333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$Oi2BT4F0h1VN8EMjT/v/sO1G6S/VtD2rzLSVGMdGpE1FbBC1w0JpG"], ["created_at", "2015-07-06 21:21:14.315046"], ["updated_at", "2015-07-06 21:21:14.315046"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.317321"], ["user_id", "7ebdf148-e398-41d4-8945-248696197050"], ["created_at", "2015-07-06 21:21:14.318390"], ["updated_at", "2015-07-06 21:21:14.318390"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.337751"], ["updated_at", "2015-07-06 21:21:14.337751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7ebdf148-e398-41d4-8945-248696197050' AND "clubhouse_memberships"."organization_id" = '2424ecc5-acf6-4f71-a481-91a9decc4e5d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7ebdf148-e398-41d4-8945-248696197050"], ["organization_id", "2424ecc5-acf6-4f71-a481-91a9decc4e5d"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.342413"], ["updated_at", "2015-07-06 21:21:14.342413"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-23" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-23", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:14.346197') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cf18ae7a-e3fd-48cb-8ad6-7645c3fb0d69"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:14.347711"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:14.348543"], ["id", "cf18ae7a-e3fd-48cb-8ad6-7645c3fb0d69"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-23"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7ebdf148-e398-41d4-8945-248696197050"]] Completed 200 OK in 7ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$WGOiTR/dZdxHl98cW3ZVbO3DrVYCWXAS4s9Z5kvcT5AO1xbtLYNsW"], ["created_at", "2015-07-06 21:21:14.361675"], ["updated_at", "2015-07-06 21:21:14.361675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:14.363996"], ["user_id", "3a24d0d5-3ac5-4e96-8da2-ec29413b4867"], ["created_at", "2015-07-06 21:21:14.364948"], ["updated_at", "2015-07-06 21:21:14.364948"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:14.370566"], ["updated_at", "2015-07-06 21:21:14.370566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a24d0d5-3ac5-4e96-8da2-ec29413b4867' AND "clubhouse_memberships"."organization_id" = '6a22f76f-69dd-4ae4-be85-d2fcb085ac9a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3a24d0d5-3ac5-4e96-8da2-ec29413b4867"], ["organization_id", "6a22f76f-69dd-4ae4-be85-d2fcb085ac9a"], ["admin", "t"], ["created_at", "2015-07-06 21:21:14.374051"], ["updated_at", "2015-07-06 21:21:14.374051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:21:14 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:14.377929') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "46db5d93-9c79-4231-a283-0922ee53933f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:14.379701"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:14.380651"], ["id", "46db5d93-9c79-4231-a283-0922ee53933f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 6ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$w3hn5CmMGUTlw5OLNn1LyecOP6Mi.y4cW8n6yzqQv/O2Qw1MIFVtq"], ["created_at", "2015-07-06 21:21:29.386266"], ["updated_at", "2015-07-06 21:21:29.386266"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.406201"], ["user_id", "78b59c2b-3328-403f-a3d9-5648bc0be508"], ["created_at", "2015-07-06 21:21:29.412976"], ["updated_at", "2015-07-06 21:21:29.412976"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.425628"], ["updated_at", "2015-07-06 21:21:29.425628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78b59c2b-3328-403f-a3d9-5648bc0be508' AND "clubhouse_memberships"."organization_id" = '53faf86d-2574-425a-bf61-458fcd772703') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "78b59c2b-3328-403f-a3d9-5648bc0be508"], ["organization_id", "53faf86d-2574-425a-bf61-458fcd772703"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.440125"], ["updated_at", "2015-07-06 21:21:29.440125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/53faf86d-2574-425a-bf61-458fcd772703" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"53faf86d-2574-425a-bf61-458fcd772703", "organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:29.479199') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b32f8a6d-96da-4a49-a2e1-df239f03c1f2"]]  (1.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:29.491233"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:29.495214"], ["id", "b32f8a6d-96da-4a49-a2e1-df239f03c1f2"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "53faf86d-2574-425a-bf61-458fcd772703"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78b59c2b-3328-403f-a3d9-5648bc0be508"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '78b59c2b-3328-403f-a3d9-5648bc0be508' LIMIT 1 [["organization_id", "53faf86d-2574-425a-bf61-458fcd772703"], ["admin", "t"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "53faf86d-2574-425a-bf61-458fcd772703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 51ms (ActiveRecord: 4.9ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$/xoBXvq8lIDNU2N87evLVOWVmR24g9wMgV.7pSmC.p3EnQRHFoRiG"], ["created_at", "2015-07-06 21:21:29.543101"], ["updated_at", "2015-07-06 21:21:29.543101"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.549230"], ["user_id", "bf1690aa-c11e-40ab-a8b5-70e9ba2e3d4c"], ["created_at", "2015-07-06 21:21:29.550592"], ["updated_at", "2015-07-06 21:21:29.550592"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.559917"], ["updated_at", "2015-07-06 21:21:29.559917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bf1690aa-c11e-40ab-a8b5-70e9ba2e3d4c' AND "clubhouse_memberships"."organization_id" = 'bb51c4c8-2bdd-46d4-92bc-b1b63abd69f6') LIMIT 1 SQL (2.0ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bf1690aa-c11e-40ab-a8b5-70e9ba2e3d4c"], ["organization_id", "bb51c4c8-2bdd-46d4-92bc-b1b63abd69f6"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.566612"], ["updated_at", "2015-07-06 21:21:29.566612"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$p7Iu.iHd43EdJXU91JwDDeOYO94aJxt7OkV3lVbCfMxFL21ofWZVy"], ["created_at", "2015-07-06 21:21:29.589499"], ["updated_at", "2015-07-06 21:21:29.589499"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.592382"], ["user_id", "4eb715aa-963f-4a93-a8f8-eab09a6422f7"], ["created_at", "2015-07-06 21:21:29.593198"], ["updated_at", "2015-07-06 21:21:29.593198"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (2.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.601756"], ["updated_at", "2015-07-06 21:21:29.601756"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (5.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4eb715aa-963f-4a93-a8f8-eab09a6422f7' AND "clubhouse_memberships"."organization_id" = '167397cd-33e1-430b-b57b-44b84b079558') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4eb715aa-963f-4a93-a8f8-eab09a6422f7"], ["organization_id", "167397cd-33e1-430b-b57b-44b84b079558"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.623619"], ["updated_at", "2015-07-06 21:21:29.623619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$yQl/hAmcoDFZ64jNWszSNewj2Yd.Xpdn.fMOO/Krm2vKQ17yqaW12"], ["created_at", "2015-07-06 21:21:29.635172"], ["updated_at", "2015-07-06 21:21:29.635172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.637170"], ["user_id", "b17fdcaf-4480-4cb0-b011-a8793c7793f8"], ["created_at", "2015-07-06 21:21:29.637866"], ["updated_at", "2015-07-06 21:21:29.637866"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.643164"], ["updated_at", "2015-07-06 21:21:29.643164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b17fdcaf-4480-4cb0-b011-a8793c7793f8' AND "clubhouse_memberships"."organization_id" = '1d12cc3a-631c-4411-a8ef-39538c500828') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b17fdcaf-4480-4cb0-b011-a8793c7793f8"], ["organization_id", "1d12cc3a-631c-4411-a8ef-39538c500828"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.647476"], ["updated_at", "2015-07-06 21:21:29.647476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1d12cc3a-631c-4411-a8ef-39538c500828" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1d12cc3a-631c-4411-a8ef-39538c500828", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:29.650972') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "21186deb-e558-4039-9c7e-0f31c8df61f2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:29.652404"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:29.653297"], ["id", "21186deb-e558-4039-9c7e-0f31c8df61f2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1d12cc3a-631c-4411-a8ef-39538c500828"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b17fdcaf-4480-4cb0-b011-a8793c7793f8"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b17fdcaf-4480-4cb0-b011-a8793c7793f8' LIMIT 1 [["organization_id", "1d12cc3a-631c-4411-a8ef-39538c500828"]] Completed 200 OK in 25ms (Views: 16.2ms | ActiveRecord: 1.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$CH7j2a766G6j0rjBj1vYqueF9muxowDM9C0bL28WPTxrVyVTPkh5W"], ["created_at", "2015-07-06 21:21:29.690128"], ["updated_at", "2015-07-06 21:21:29.690128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.692632"], ["user_id", "d910ad14-d8c6-4240-a46a-3d4696c2c0e8"], ["created_at", "2015-07-06 21:21:29.693428"], ["updated_at", "2015-07-06 21:21:29.693428"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.698555"], ["updated_at", "2015-07-06 21:21:29.698555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd910ad14-d8c6-4240-a46a-3d4696c2c0e8' AND "clubhouse_memberships"."organization_id" = '8b6bbe93-2ad0-44a4-be25-291112c5b2a3') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d910ad14-d8c6-4240-a46a-3d4696c2c0e8"], ["organization_id", "8b6bbe93-2ad0-44a4-be25-291112c5b2a3"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.702540"], ["updated_at", "2015-07-06 21:21:29.702540"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$GlhmdsLjn0gclbPgXNVkZOIhWGI2baqJsaxvTQ.3.3KstQGN117Tu"], ["created_at", "2015-07-06 21:21:29.718371"], ["updated_at", "2015-07-06 21:21:29.718371"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.722732"], ["user_id", "45ef64dc-da9a-420e-a9bc-b204d121d77a"], ["created_at", "2015-07-06 21:21:29.723835"], ["updated_at", "2015-07-06 21:21:29.723835"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.731061"], ["updated_at", "2015-07-06 21:21:29.731061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '45ef64dc-da9a-420e-a9bc-b204d121d77a' AND "clubhouse_memberships"."organization_id" = '5feed1b4-9251-45e0-a4ae-13d1b11fa212') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "45ef64dc-da9a-420e-a9bc-b204d121d77a"], ["organization_id", "5feed1b4-9251-45e0-a4ae-13d1b11fa212"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.734868"], ["updated_at", "2015-07-06 21:21:29.734868"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-6" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:29.753038') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e0a833cd-9c43-43a8-9d0c-cb26dcc6433a"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:29.757011"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:29.758256"], ["id", "e0a833cd-9c43-43a8-9d0c-cb26dcc6433a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "45ef64dc-da9a-420e-a9bc-b204d121d77a"]] Completed 200 OK in 12ms (ActiveRecord: 2.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$dqoxj8LHrhCS/zob3JMHpOYA9ut9tVMzmTO5cHQM/ANWmCCJBtTdO"], ["created_at", "2015-07-06 21:21:29.775533"], ["updated_at", "2015-07-06 21:21:29.775533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.778947"], ["user_id", "0346a497-ea5f-475c-a64b-83d3bfb4b8be"], ["created_at", "2015-07-06 21:21:29.779927"], ["updated_at", "2015-07-06 21:21:29.779927"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.786262"], ["updated_at", "2015-07-06 21:21:29.786262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0346a497-ea5f-475c-a64b-83d3bfb4b8be' AND "clubhouse_memberships"."organization_id" = '69fe4231-a5fd-4e4b-9b43-95f44ef4401a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0346a497-ea5f-475c-a64b-83d3bfb4b8be"], ["organization_id", "69fe4231-a5fd-4e4b-9b43-95f44ef4401a"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.790837"], ["updated_at", "2015-07-06 21:21:29.790837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:29.796506') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d7b14e43-dedf-4426-b35c-b3f7ded47ce5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:29.797895"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:29.798750"], ["id", "d7b14e43-dedf-4426-b35c-b3f7ded47ce5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$vNJbfIETiAScGSqyF2C8Le/A/GBVLDI7XJo5QUVtNvo4Zw9HtGHhi"], ["created_at", "2015-07-06 21:21:29.808444"], ["updated_at", "2015-07-06 21:21:29.808444"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.811202"], ["user_id", "75c09858-ebf6-424d-ae62-8626101e09d9"], ["created_at", "2015-07-06 21:21:29.812172"], ["updated_at", "2015-07-06 21:21:29.812172"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.817032"], ["updated_at", "2015-07-06 21:21:29.817032"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75c09858-ebf6-424d-ae62-8626101e09d9' AND "clubhouse_memberships"."organization_id" = '06d1d6fc-18a1-4e2e-b2a4-8ba55840f631') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75c09858-ebf6-424d-ae62-8626101e09d9"], ["organization_id", "06d1d6fc-18a1-4e2e-b2a4-8ba55840f631"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.821596"], ["updated_at", "2015-07-06 21:21:29.821596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$wn1U9m1bzlV7wLsmIqycpOuQxWLWZeyaZK7L0C1Fi238IKOvGZBkG"], ["created_at", "2015-07-06 21:21:29.836671"], ["updated_at", "2015-07-06 21:21:29.836671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.838565"], ["user_id", "0b1bde55-1163-4c6e-ae5d-857ccc0cd2a1"], ["created_at", "2015-07-06 21:21:29.839522"], ["updated_at", "2015-07-06 21:21:29.839522"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.844654"], ["updated_at", "2015-07-06 21:21:29.844654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0b1bde55-1163-4c6e-ae5d-857ccc0cd2a1' AND "clubhouse_memberships"."organization_id" = '06f5c9f6-14be-4a74-a631-83c26f3f54b5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0b1bde55-1163-4c6e-ae5d-857ccc0cd2a1"], ["organization_id", "06f5c9f6-14be-4a74-a631-83c26f3f54b5"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.848606"], ["updated_at", "2015-07-06 21:21:29.848606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-9" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-9", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:29.852050') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2dcdbc3f-9eb5-4261-bca9-93bb67049427"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:29.853677"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:29.854449"], ["id", "2dcdbc3f-9eb5-4261-bca9-93bb67049427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-9"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0b1bde55-1163-4c6e-ae5d-857ccc0cd2a1"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '0b1bde55-1163-4c6e-ae5d-857ccc0cd2a1' LIMIT 1 [["organization_id", "06f5c9f6-14be-4a74-a631-83c26f3f54b5"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '06f5c9f6-14be-4a74-a631-83c26f3f54b5') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:21:29.864925"], ["id", "06f5c9f6-14be-4a74-a631-83c26f3f54b5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.6ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$hdMEpfylrm0R4HU9uhK3G.Vtid2kUVXYzqFrGUjJbdPc7feNCUlpK"], ["created_at", "2015-07-06 21:21:29.877665"], ["updated_at", "2015-07-06 21:21:29.877665"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.882880"], ["user_id", "422fbf3f-8115-4526-973a-eaebb56b779b"], ["created_at", "2015-07-06 21:21:29.884086"], ["updated_at", "2015-07-06 21:21:29.884086"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.889184"], ["updated_at", "2015-07-06 21:21:29.889184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '422fbf3f-8115-4526-973a-eaebb56b779b' AND "clubhouse_memberships"."organization_id" = '7dec7c66-0986-4f13-9cd2-af94b9cc11a1') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "422fbf3f-8115-4526-973a-eaebb56b779b"], ["organization_id", "7dec7c66-0986-4f13-9cd2-af94b9cc11a1"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.893442"], ["updated_at", "2015-07-06 21:21:29.893442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-10" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-10", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:29.897554') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "54b943e1-91ca-4e05-82f4-0cf3f708c548"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:29.899285"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:29.900160"], ["id", "54b943e1-91ca-4e05-82f4-0cf3f708c548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-10"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "422fbf3f-8115-4526-973a-eaebb56b779b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '422fbf3f-8115-4526-973a-eaebb56b779b' LIMIT 1 [["organization_id", "7dec7c66-0986-4f13-9cd2-af94b9cc11a1"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '7dec7c66-0986-4f13-9cd2-af94b9cc11a1') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 25ms (ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$BL/WFFWJDl2OeSHygzdUW.vct3qjtcGJax6dS0Rky.aEP4La07Ao6"], ["created_at", "2015-07-06 21:21:29.933831"], ["updated_at", "2015-07-06 21:21:29.933831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.936803"], ["user_id", "f6c7c9c3-7066-47d4-a06d-475f06fdbdb8"], ["created_at", "2015-07-06 21:21:29.937718"], ["updated_at", "2015-07-06 21:21:29.937718"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.942337"], ["updated_at", "2015-07-06 21:21:29.942337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6c7c9c3-7066-47d4-a06d-475f06fdbdb8' AND "clubhouse_memberships"."organization_id" = 'e8f80ee8-7c9e-40af-a05e-c5846fccf039') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f6c7c9c3-7066-47d4-a06d-475f06fdbdb8"], ["organization_id", "e8f80ee8-7c9e-40af-a05e-c5846fccf039"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.945826"], ["updated_at", "2015-07-06 21:21:29.945826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-11" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-11", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:29.949312') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f62b9b7e-2866-42af-b08f-01695989f6f5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:29.951037"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:29.952042"], ["id", "f62b9b7e-2866-42af-b08f-01695989f6f5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-11"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6c7c9c3-7066-47d4-a06d-475f06fdbdb8"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'f6c7c9c3-7066-47d4-a06d-475f06fdbdb8' LIMIT 1 [["organization_id", "e8f80ee8-7c9e-40af-a05e-c5846fccf039"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "e8f80ee8-7c9e-40af-a05e-c5846fccf039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$K1/2cEaViOYawB7B6vZdzuVZRAZxhRbMFqdOuB4z2TETjp4FlYR7G"], ["created_at", "2015-07-06 21:21:29.964828"], ["updated_at", "2015-07-06 21:21:29.964828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.966883"], ["user_id", "4fc67ed7-9d9a-4b6a-bc13-b0565e3a0bcd"], ["created_at", "2015-07-06 21:21:29.968009"], ["updated_at", "2015-07-06 21:21:29.968009"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:29.976066"], ["updated_at", "2015-07-06 21:21:29.976066"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fc67ed7-9d9a-4b6a-bc13-b0565e3a0bcd' AND "clubhouse_memberships"."organization_id" = 'a157f589-aec0-454c-a7ad-9e22bffa7a80') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4fc67ed7-9d9a-4b6a-bc13-b0565e3a0bcd"], ["organization_id", "a157f589-aec0-454c-a7ad-9e22bffa7a80"], ["admin", "t"], ["created_at", "2015-07-06 21:21:29.981865"], ["updated_at", "2015-07-06 21:21:29.981865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:29 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$NTPit40HjBvbutiQr3/67uJanADjEZLeCgoe.73kwgoPw7omBTGka"], ["created_at", "2015-07-06 21:21:29.992996"], ["updated_at", "2015-07-06 21:21:29.992996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:29.995425"], ["user_id", "9baf5765-f046-4efd-b67b-64ecbd3efb80"], ["created_at", "2015-07-06 21:21:29.996096"], ["updated_at", "2015-07-06 21:21:29.996096"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.000648"], ["updated_at", "2015-07-06 21:21:30.000648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9baf5765-f046-4efd-b67b-64ecbd3efb80' AND "clubhouse_memberships"."organization_id" = '78ac35ac-33d3-41da-b082-c53d8906c0fb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9baf5765-f046-4efd-b67b-64ecbd3efb80"], ["organization_id", "78ac35ac-33d3-41da-b082-c53d8906c0fb"], ["admin", "t"], ["created_at", "2015-07-06 21:21:30.003835"], ["updated_at", "2015-07-06 21:21:30.003835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$0KllW3puXzqSPavTlRRkPOvZdSGr.A9SvXdOIWpx8ncRw6QQntnqq"], ["created_at", "2015-07-06 21:21:30.008865"], ["updated_at", "2015-07-06 21:21:30.008865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.012869"], ["updated_at", "2015-07-06 21:21:30.012869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1224dd8c-1054-405b-8b5e-26b406eed24a' AND "clubhouse_memberships"."organization_id" = 'c1c1de33-2452-49f9-ad0b-bc80a91b3e75') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1224dd8c-1054-405b-8b5e-26b406eed24a"], ["organization_id", "c1c1de33-2452-49f9-ad0b-bc80a91b3e75"], ["created_at", "2015-07-06 21:21:30.016355"], ["updated_at", "2015-07-06 21:21:30.016355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:21:30 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$/Ya6a/KKocwvVrfjVNgqkuteDEg502rB3zwDbFWslfQuooZfPltr."], ["created_at", "2015-07-06 21:21:30.030189"], ["updated_at", "2015-07-06 21:21:30.030189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:30.032963"], ["user_id", "8f0e1eec-b991-4112-bd86-c4255c663c07"], ["created_at", "2015-07-06 21:21:30.034873"], ["updated_at", "2015-07-06 21:21:30.034873"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.042919"], ["updated_at", "2015-07-06 21:21:30.042919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f0e1eec-b991-4112-bd86-c4255c663c07' AND "clubhouse_memberships"."organization_id" = '5830c632-e5c4-4960-8486-23a7fd3e12d8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8f0e1eec-b991-4112-bd86-c4255c663c07"], ["organization_id", "5830c632-e5c4-4960-8486-23a7fd3e12d8"], ["admin", "t"], ["created_at", "2015-07-06 21:21:30.046219"], ["updated_at", "2015-07-06 21:21:30.046219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$qYQ14P4FyiGH9RWM1uY7BunAAMa2ubAafLmtUJ5LM7ufr4zsqJpB2"], ["created_at", "2015-07-06 21:21:30.051497"], ["updated_at", "2015-07-06 21:21:30.051497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.055238"], ["updated_at", "2015-07-06 21:21:30.055238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3e3bd648-896a-4f13-924f-446aa9df486d' AND "clubhouse_memberships"."organization_id" = 'f3921512-a123-4c85-92c2-ac2e93271083') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3e3bd648-896a-4f13-924f-446aa9df486d"], ["organization_id", "f3921512-a123-4c85-92c2-ac2e93271083"], ["created_at", "2015-07-06 21:21:30.058550"], ["updated_at", "2015-07-06 21:21:30.058550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:21:30 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:30.062278') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ddeade8b-5751-4d83-a63c-676047797f6b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:30.063938"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:30.064812"], ["id", "ddeade8b-5751-4d83-a63c-676047797f6b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8f0e1eec-b991-4112-bd86-c4255c663c07"]] Clubhouse::Organization Load (1.0ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "8f0e1eec-b991-4112-bd86-c4255c663c07"]] Completed 200 OK in 24ms (Views: 5.5ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$CS8fQu6YBEd28RlSpL9qG.1rnY9Le1p2Q3hrcYXM1nzURoJ7l/72u"], ["created_at", "2015-07-06 21:21:30.102449"], ["updated_at", "2015-07-06 21:21:30.102449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:30.105334"], ["user_id", "5cc69402-0702-4a35-913b-83a5453a6cd6"], ["created_at", "2015-07-06 21:21:30.106334"], ["updated_at", "2015-07-06 21:21:30.106334"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.111824"], ["updated_at", "2015-07-06 21:21:30.111824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cc69402-0702-4a35-913b-83a5453a6cd6' AND "clubhouse_memberships"."organization_id" = '7a753931-ddb3-477a-ac9d-c02d5664a11e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cc69402-0702-4a35-913b-83a5453a6cd6"], ["organization_id", "7a753931-ddb3-477a-ac9d-c02d5664a11e"], ["admin", "t"], ["created_at", "2015-07-06 21:21:30.115575"], ["updated_at", "2015-07-06 21:21:30.115575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:30 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$.dSDBKczzGUJS350f.jpQOYTp/DOjmcoV4jY5ATjgPOU.rfn51DuC"], ["created_at", "2015-07-06 21:21:30.125353"], ["updated_at", "2015-07-06 21:21:30.125353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:30.127482"], ["user_id", "a6b492f9-5d90-4cbb-9051-d7a8cfe718b1"], ["created_at", "2015-07-06 21:21:30.128178"], ["updated_at", "2015-07-06 21:21:30.128178"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.132305"], ["updated_at", "2015-07-06 21:21:30.132305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a6b492f9-5d90-4cbb-9051-d7a8cfe718b1' AND "clubhouse_memberships"."organization_id" = 'c55ab508-e692-4113-b3a9-71d840be731f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a6b492f9-5d90-4cbb-9051-d7a8cfe718b1"], ["organization_id", "c55ab508-e692-4113-b3a9-71d840be731f"], ["admin", "t"], ["created_at", "2015-07-06 21:21:30.137613"], ["updated_at", "2015-07-06 21:21:30.137613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-18" for 127.0.0.1 at 2015-07-06 14:21:30 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-18", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:30.140421') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "57d1f074-e087-445f-9d19-07a47f154798"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:30.141871"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:30.142679"], ["id", "57d1f074-e087-445f-9d19-07a47f154798"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-18"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a6b492f9-5d90-4cbb-9051-d7a8cfe718b1"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a6b492f9-5d90-4cbb-9051-d7a8cfe718b1' LIMIT 1 [["organization_id", "c55ab508-e692-4113-b3a9-71d840be731f"]] Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$kvvmsMs/nCuIrISzH6Y9nOkOjbl3TNC1ueoG83pUK5rybCpUQmKfe"], ["created_at", "2015-07-06 21:21:30.159278"], ["updated_at", "2015-07-06 21:21:30.159278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:30.161084"], ["user_id", "848928a0-3a4a-43fb-bc92-1d6de0ed79db"], ["created_at", "2015-07-06 21:21:30.161695"], ["updated_at", "2015-07-06 21:21:30.161695"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.165571"], ["updated_at", "2015-07-06 21:21:30.165571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '848928a0-3a4a-43fb-bc92-1d6de0ed79db' AND "clubhouse_memberships"."organization_id" = '45c7dc86-6d84-428f-9762-54a515629963') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "848928a0-3a4a-43fb-bc92-1d6de0ed79db"], ["organization_id", "45c7dc86-6d84-428f-9762-54a515629963"], ["admin", "t"], ["created_at", "2015-07-06 21:21:30.168574"], ["updated_at", "2015-07-06 21:21:30.168574"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:21:30 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$MjKiM0ExzS0VCTuZVqG5jOHD6yxKUfeeUE4UyeVDO3u2.4nsxKGZ6"], ["created_at", "2015-07-06 21:21:30.177516"], ["updated_at", "2015-07-06 21:21:30.177516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:30.179174"], ["user_id", "355d334b-fba6-48d2-beb4-75ac039c29b8"], ["created_at", "2015-07-06 21:21:30.179757"], ["updated_at", "2015-07-06 21:21:30.179757"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.183757"], ["updated_at", "2015-07-06 21:21:30.183757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '355d334b-fba6-48d2-beb4-75ac039c29b8' AND "clubhouse_memberships"."organization_id" = 'cd8c7267-f121-42b8-9428-6f07e102978d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "355d334b-fba6-48d2-beb4-75ac039c29b8"], ["organization_id", "cd8c7267-f121-42b8-9428-6f07e102978d"], ["admin", "t"], ["created_at", "2015-07-06 21:21:30.186785"], ["updated_at", "2015-07-06 21:21:30.186785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:21:30 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:30.190429') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5f2a4ad6-d7c5-4eca-acb9-ff1c3960c6a3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:30.192045"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:30.193097"], ["id", "5f2a4ad6-d7c5-4eca-acb9-ff1c3960c6a3"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "355d334b-fba6-48d2-beb4-75ac039c29b8"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$Oc0Dhlg7wn4Acpb5JHNduuTZpGP33opClXC8XRUSRBD1qyUH92OsK"], ["created_at", "2015-07-06 21:21:30.210833"], ["updated_at", "2015-07-06 21:21:30.210833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:30.212411"], ["user_id", "281c9fb8-df56-46e9-a215-6ddc2316b846"], ["created_at", "2015-07-06 21:21:30.213007"], ["updated_at", "2015-07-06 21:21:30.213007"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.219474"], ["updated_at", "2015-07-06 21:21:30.219474"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '281c9fb8-df56-46e9-a215-6ddc2316b846' AND "clubhouse_memberships"."organization_id" = 'a5ab36c4-4b25-4cf5-b539-9141a1eea3b2') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "281c9fb8-df56-46e9-a215-6ddc2316b846"], ["organization_id", "a5ab36c4-4b25-4cf5-b539-9141a1eea3b2"], ["admin", "t"], ["created_at", "2015-07-06 21:21:30.225566"], ["updated_at", "2015-07-06 21:21:30.225566"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:21:30 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:30.230382') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a988ab17-7187-43a0-9036-9005cfa9bc61"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:30.232135"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:30.233151"], ["id", "a988ab17-7187-43a0-9036-9005cfa9bc61"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "281c9fb8-df56-46e9-a215-6ddc2316b846"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.241557"], ["updated_at", "2015-07-06 21:21:30.241557"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '281c9fb8-df56-46e9-a215-6ddc2316b846' AND "clubhouse_memberships"."organization_id" = '724b6ba3-3974-4499-9fff-7b27cb61a0f6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "281c9fb8-df56-46e9-a215-6ddc2316b846"], ["admin", "t"], ["organization_id", "724b6ba3-3974-4499-9fff-7b27cb61a0f6"], ["created_at", "2015-07-06 21:21:30.245969"], ["updated_at", "2015-07-06 21:21:30.245969"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$NnORm7883qOMDNWV83B34.pPftO6jAJ7FGK3Jl7VUR.DMP40J7Y92"], ["created_at", "2015-07-06 21:21:30.255503"], ["updated_at", "2015-07-06 21:21:30.255503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:30.257066"], ["user_id", "eddd06d9-c4eb-491c-a8dc-b4044c5fc65f"], ["created_at", "2015-07-06 21:21:30.257653"], ["updated_at", "2015-07-06 21:21:30.257653"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.264811"], ["updated_at", "2015-07-06 21:21:30.264811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eddd06d9-c4eb-491c-a8dc-b4044c5fc65f' AND "clubhouse_memberships"."organization_id" = '58b88ea9-6fde-4ac9-afae-ed628265d4d9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eddd06d9-c4eb-491c-a8dc-b4044c5fc65f"], ["organization_id", "58b88ea9-6fde-4ac9-afae-ed628265d4d9"], ["admin", "t"], ["created_at", "2015-07-06 21:21:30.268148"], ["updated_at", "2015-07-06 21:21:30.268148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:21:30 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$CTs3BjdEsClZ66ER7zE2JO3apgITZi3fEV6FIEMvZTY1iqB6CZ3ue"], ["created_at", "2015-07-06 21:21:30.277454"], ["updated_at", "2015-07-06 21:21:30.277454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:30.279106"], ["user_id", "94c96b01-ddcf-463a-a305-a8a780c440d5"], ["created_at", "2015-07-06 21:21:30.279729"], ["updated_at", "2015-07-06 21:21:30.279729"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.284952"], ["updated_at", "2015-07-06 21:21:30.284952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94c96b01-ddcf-463a-a305-a8a780c440d5' AND "clubhouse_memberships"."organization_id" = 'a2d297f7-052f-493b-ae8e-dadfc2211dbf') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94c96b01-ddcf-463a-a305-a8a780c440d5"], ["organization_id", "a2d297f7-052f-493b-ae8e-dadfc2211dbf"], ["admin", "t"], ["created_at", "2015-07-06 21:21:30.288822"], ["updated_at", "2015-07-06 21:21:30.288822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/a2d297f7-052f-493b-ae8e-dadfc2211dbf" for 127.0.0.1 at 2015-07-06 14:21:30 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"a2d297f7-052f-493b-ae8e-dadfc2211dbf", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:30.291741') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9647546d-6393-4e39-8837-0567be40f2b1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:30.293088"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:30.294084"], ["id", "9647546d-6393-4e39-8837-0567be40f2b1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a2d297f7-052f-493b-ae8e-dadfc2211dbf"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "94c96b01-ddcf-463a-a305-a8a780c440d5"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '94c96b01-ddcf-463a-a305-a8a780c440d5' LIMIT 1 [["organization_id", "a2d297f7-052f-493b-ae8e-dadfc2211dbf"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a2d297f7-052f-493b-ae8e-dadfc2211dbf') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$iLScuDrQIiTOpRDNn3ZYzONB2xf6XvO44DY9b3wJR48bdVmvvAXgS"], ["created_at", "2015-07-06 21:21:30.315693"], ["updated_at", "2015-07-06 21:21:30.315693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:30.318041"], ["user_id", "60b92cdb-46a8-4f83-9ba3-bcdbcaabb3ed"], ["created_at", "2015-07-06 21:21:30.318902"], ["updated_at", "2015-07-06 21:21:30.318902"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:30.323693"], ["updated_at", "2015-07-06 21:21:30.323693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60b92cdb-46a8-4f83-9ba3-bcdbcaabb3ed' AND "clubhouse_memberships"."organization_id" = '1428a708-a26b-447a-abd7-e6d3374e8e5f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "60b92cdb-46a8-4f83-9ba3-bcdbcaabb3ed"], ["organization_id", "1428a708-a26b-447a-abd7-e6d3374e8e5f"], ["admin", "t"], ["created_at", "2015-07-06 21:21:30.326714"], ["updated_at", "2015-07-06 21:21:30.326714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1428a708-a26b-447a-abd7-e6d3374e8e5f" for 127.0.0.1 at 2015-07-06 14:21:30 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"1428a708-a26b-447a-abd7-e6d3374e8e5f", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:30.329862') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d2972e8a-7ee6-433b-a633-3f3067924439"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:30.332287"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:30.333728"], ["id", "d2972e8a-7ee6-433b-a633-3f3067924439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1428a708-a26b-447a-abd7-e6d3374e8e5f"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60b92cdb-46a8-4f83-9ba3-bcdbcaabb3ed"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '60b92cdb-46a8-4f83-9ba3-bcdbcaabb3ed' LIMIT 1 [["organization_id", "1428a708-a26b-447a-abd7-e6d3374e8e5f"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '1428a708-a26b-447a-abd7-e6d3374e8e5f') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:21:30.345034"], ["id", "1428a708-a26b-447a-abd7-e6d3374e8e5f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 0.6ms | ActiveRecord: 2.7ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$rPtb2aExZPWYRNYgLTsp0eSzFGAOXWTLTj2yJtd3Uu2/IQj6Wo9Ia"], ["created_at", "2015-07-06 21:21:41.751539"], ["updated_at", "2015-07-06 21:21:41.751539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:41.771168"], ["user_id", "ca4a7d7e-2733-4f25-b57b-589ef95c6e87"], ["created_at", "2015-07-06 21:21:41.785218"], ["updated_at", "2015-07-06 21:21:41.785218"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:41.808535"], ["updated_at", "2015-07-06 21:21:41.808535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ca4a7d7e-2733-4f25-b57b-589ef95c6e87' AND "clubhouse_memberships"."organization_id" = '977ff701-dc87-47ea-a535-a0418f2be9b9') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ca4a7d7e-2733-4f25-b57b-589ef95c6e87"], ["organization_id", "977ff701-dc87-47ea-a535-a0418f2be9b9"], ["admin", "t"], ["created_at", "2015-07-06 21:21:41.819392"], ["updated_at", "2015-07-06 21:21:41.819392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:21:41 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$WkIIUMxCBKtPh3yGhFt5bODfcO7Ip.1XtdkY.OuaNPAW4t36.nlJO"], ["created_at", "2015-07-06 21:21:41.852060"], ["updated_at", "2015-07-06 21:21:41.852060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:41.853875"], ["user_id", "757ba4ba-7691-42ce-bd75-d962af3d8136"], ["created_at", "2015-07-06 21:21:41.854570"], ["updated_at", "2015-07-06 21:21:41.854570"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:41.860970"], ["updated_at", "2015-07-06 21:21:41.860970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '757ba4ba-7691-42ce-bd75-d962af3d8136' AND "clubhouse_memberships"."organization_id" = '6e402ce7-34dc-4efb-bae8-cf70a57869b5') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "757ba4ba-7691-42ce-bd75-d962af3d8136"], ["organization_id", "6e402ce7-34dc-4efb-bae8-cf70a57869b5"], ["admin", "t"], ["created_at", "2015-07-06 21:21:41.865884"], ["updated_at", "2015-07-06 21:21:41.865884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/6e402ce7-34dc-4efb-bae8-cf70a57869b5" for 127.0.0.1 at 2015-07-06 14:21:41 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"6e402ce7-34dc-4efb-bae8-cf70a57869b5", "organization"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:41.869843') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "16e23478-1f7a-4b23-a22c-01757e632c79"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:41.880939"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:41.884552"], ["id", "16e23478-1f7a-4b23-a22c-01757e632c79"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6e402ce7-34dc-4efb-bae8-cf70a57869b5"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "757ba4ba-7691-42ce-bd75-d962af3d8136"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '757ba4ba-7691-42ce-bd75-d962af3d8136' LIMIT 1 [["organization_id", "6e402ce7-34dc-4efb-bae8-cf70a57869b5"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "6e402ce7-34dc-4efb-bae8-cf70a57869b5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 45ms (ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$HmWVPa4jSJD1K0L8IzxJDuf39a.GIqAbBUwCO2wain4kSDOqled52"], ["created_at", "2015-07-06 21:21:41.923245"], ["updated_at", "2015-07-06 21:21:41.923245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:41.925315"], ["user_id", "41df4793-3030-444b-b4d3-810a5210653f"], ["created_at", "2015-07-06 21:21:41.926122"], ["updated_at", "2015-07-06 21:21:41.926122"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:41.930822"], ["updated_at", "2015-07-06 21:21:41.930822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '41df4793-3030-444b-b4d3-810a5210653f' AND "clubhouse_memberships"."organization_id" = 'e28b0a58-e3fa-47ed-b29f-d8100410a7b7') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "41df4793-3030-444b-b4d3-810a5210653f"], ["organization_id", "e28b0a58-e3fa-47ed-b29f-d8100410a7b7"], ["admin", "t"], ["created_at", "2015-07-06 21:21:41.934609"], ["updated_at", "2015-07-06 21:21:41.934609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/e28b0a58-e3fa-47ed-b29f-d8100410a7b7" for 127.0.0.1 at 2015-07-06 14:21:41 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"e28b0a58-e3fa-47ed-b29f-d8100410a7b7", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:41.938254') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e1a7935c-a0e5-4055-b595-0bfb2cf84186"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:41.939815"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:41.940676"], ["id", "e1a7935c-a0e5-4055-b595-0bfb2cf84186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e28b0a58-e3fa-47ed-b29f-d8100410a7b7"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "41df4793-3030-444b-b4d3-810a5210653f"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '41df4793-3030-444b-b4d3-810a5210653f' LIMIT 1 [["organization_id", "e28b0a58-e3fa-47ed-b29f-d8100410a7b7"]] Completed 200 OK in 19ms (Views: 11.1ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$H8NttsB.gxVcjEv7Qh0NCeGQ186TxuTwiM/F9/ICVlsnX/AB/D4C."], ["created_at", "2015-07-06 21:21:41.966905"], ["updated_at", "2015-07-06 21:21:41.966905"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:41.969560"], ["user_id", "c81ab73b-2949-4106-a5a6-5fdbbbe95a40"], ["created_at", "2015-07-06 21:21:41.971121"], ["updated_at", "2015-07-06 21:21:41.971121"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:41.978607"], ["updated_at", "2015-07-06 21:21:41.978607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c81ab73b-2949-4106-a5a6-5fdbbbe95a40' AND "clubhouse_memberships"."organization_id" = '76ea3a8c-7c0d-4bed-a929-bbf457faf1ef') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c81ab73b-2949-4106-a5a6-5fdbbbe95a40"], ["organization_id", "76ea3a8c-7c0d-4bed-a929-bbf457faf1ef"], ["admin", "t"], ["created_at", "2015-07-06 21:21:41.982442"], ["updated_at", "2015-07-06 21:21:41.982442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:21:41 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$9rY2vlR1F8DUWaGaochdweDKBEQHwo5ZUBSf8sU33TOSYD8r22ova"], ["created_at", "2015-07-06 21:21:41.993049"], ["updated_at", "2015-07-06 21:21:41.993049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:41.995288"], ["user_id", "49573d3b-e0f4-4a0e-904f-2054c6fe6729"], ["created_at", "2015-07-06 21:21:41.996072"], ["updated_at", "2015-07-06 21:21:41.996072"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.000627"], ["updated_at", "2015-07-06 21:21:42.000627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '49573d3b-e0f4-4a0e-904f-2054c6fe6729' AND "clubhouse_memberships"."organization_id" = '2a5fcb88-5b48-48a0-8c9d-8c3eab825c4e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "49573d3b-e0f4-4a0e-904f-2054c6fe6729"], ["organization_id", "2a5fcb88-5b48-48a0-8c9d-8c3eab825c4e"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.003873"], ["updated_at", "2015-07-06 21:21:42.003873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-5" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-5", "organization"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.007118') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "78f6ade9-c9ab-4579-b25b-2e180273b5fc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.009672"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.010831"], ["id", "78f6ade9-c9ab-4579-b25b-2e180273b5fc"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-5"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "49573d3b-e0f4-4a0e-904f-2054c6fe6729"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '49573d3b-e0f4-4a0e-904f-2054c6fe6729' LIMIT 1 [["organization_id", "2a5fcb88-5b48-48a0-8c9d-8c3eab825c4e"]] Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$VSsc9FDduXgLAhuGD2YUp.wpMBJo3AkVobb9p0otbVMUe4ISuZbky"], ["created_at", "2015-07-06 21:21:42.029473"], ["updated_at", "2015-07-06 21:21:42.029473"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.043120"], ["user_id", "34397162-076f-44b2-a86c-d6208ced8cf5"], ["created_at", "2015-07-06 21:21:42.044906"], ["updated_at", "2015-07-06 21:21:42.044906"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.052158"], ["updated_at", "2015-07-06 21:21:42.052158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34397162-076f-44b2-a86c-d6208ced8cf5' AND "clubhouse_memberships"."organization_id" = '7eeaaf79-bda6-4c2b-807d-314c22ceb715') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "34397162-076f-44b2-a86c-d6208ced8cf5"], ["organization_id", "7eeaaf79-bda6-4c2b-807d-314c22ceb715"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.056751"], ["updated_at", "2015-07-06 21:21:42.056751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$mVbIix.OY7yhlZVGUijRXOJTHa3BN0xmfcO/MIVEPlQ3FzdXTyKOC"], ["created_at", "2015-07-06 21:21:42.067017"], ["updated_at", "2015-07-06 21:21:42.067017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.069186"], ["user_id", "05ab09a1-0e93-495a-81a0-f7905f43ca0e"], ["created_at", "2015-07-06 21:21:42.070064"], ["updated_at", "2015-07-06 21:21:42.070064"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.077141"], ["updated_at", "2015-07-06 21:21:42.077141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05ab09a1-0e93-495a-81a0-f7905f43ca0e' AND "clubhouse_memberships"."organization_id" = 'b12e82b4-cce8-472e-b6b1-9819c126f28d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "05ab09a1-0e93-495a-81a0-f7905f43ca0e"], ["organization_id", "b12e82b4-cce8-472e-b6b1-9819c126f28d"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.080630"], ["updated_at", "2015-07-06 21:21:42.080630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$elZ3RZKEDEdYXP1HisaZJ.uDskfJPN6xUhBjhEs6aYrwm/FE3aq.i"], ["created_at", "2015-07-06 21:21:42.086155"], ["updated_at", "2015-07-06 21:21:42.086155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.090072"], ["updated_at", "2015-07-06 21:21:42.090072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c663134-6b16-446f-8edf-2d3baa163593' AND "clubhouse_memberships"."organization_id" = '19af0877-7c9a-4e72-83cd-91a48c11b61d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2c663134-6b16-446f-8edf-2d3baa163593"], ["organization_id", "19af0877-7c9a-4e72-83cd-91a48c11b61d"], ["created_at", "2015-07-06 21:21:42.093532"], ["updated_at", "2015-07-06 21:21:42.093532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$6DVSCMIzLCpM.n1ygOYLEeF9o2980L4a4.yXddRKkMfwxO.wO/FK2"], ["created_at", "2015-07-06 21:21:42.103916"], ["updated_at", "2015-07-06 21:21:42.103916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.106161"], ["user_id", "2155157f-178f-4618-8673-719e5c9ec6c0"], ["created_at", "2015-07-06 21:21:42.106862"], ["updated_at", "2015-07-06 21:21:42.106862"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.112104"], ["updated_at", "2015-07-06 21:21:42.112104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2155157f-178f-4618-8673-719e5c9ec6c0' AND "clubhouse_memberships"."organization_id" = '4a08d506-6782-4bd5-ba9b-baa1e9f592c8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2155157f-178f-4618-8673-719e5c9ec6c0"], ["organization_id", "4a08d506-6782-4bd5-ba9b-baa1e9f592c8"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.115568"], ["updated_at", "2015-07-06 21:21:42.115568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$zjigyYVe46YkSvyMWosgoOGHhqjYB2fy6aboY7lYKvfLr.YCkbuwS"], ["created_at", "2015-07-06 21:21:42.123667"], ["updated_at", "2015-07-06 21:21:42.123667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.128520"], ["updated_at", "2015-07-06 21:21:42.128520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd1b1de1d-bebf-489d-b5af-d349f71f3926' AND "clubhouse_memberships"."organization_id" = '09b03763-aaaf-45fe-a905-c776084021cb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d1b1de1d-bebf-489d-b5af-d349f71f3926"], ["organization_id", "09b03763-aaaf-45fe-a905-c776084021cb"], ["created_at", "2015-07-06 21:21:42.132198"], ["updated_at", "2015-07-06 21:21:42.132198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.136239') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8924d6d5-63d1-475b-9979-07e3bc40ec37"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.138039"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.138902"], ["id", "8924d6d5-63d1-475b-9979-07e3bc40ec37"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2155157f-178f-4618-8673-719e5c9ec6c0"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "2155157f-178f-4618-8673-719e5c9ec6c0"]] Completed 200 OK in 17ms (Views: 3.1ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$ne.PTOp1J3pA8nj0Y.sOiuIZEb/bI/gfl1Hf1e/mXn4f7AelButO."], ["created_at", "2015-07-06 21:21:42.160824"], ["updated_at", "2015-07-06 21:21:42.160824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.162647"], ["user_id", "af8efe48-8347-4fa1-accc-4f059be063a3"], ["created_at", "2015-07-06 21:21:42.163336"], ["updated_at", "2015-07-06 21:21:42.163336"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.168150"], ["updated_at", "2015-07-06 21:21:42.168150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'af8efe48-8347-4fa1-accc-4f059be063a3' AND "clubhouse_memberships"."organization_id" = '40b565c0-3c19-46e6-8ace-db102e559438') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "af8efe48-8347-4fa1-accc-4f059be063a3"], ["organization_id", "40b565c0-3c19-46e6-8ace-db102e559438"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.171447"], ["updated_at", "2015-07-06 21:21:42.171447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$0D17w9rAzlUz.heGdPUiIe.JMt2T7c37YNAUyseQLzVLggTE8xB66"], ["created_at", "2015-07-06 21:21:42.182782"], ["updated_at", "2015-07-06 21:21:42.182782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.184452"], ["user_id", "b9ffebde-9f19-4a27-9a21-fa3f0800f53f"], ["created_at", "2015-07-06 21:21:42.185153"], ["updated_at", "2015-07-06 21:21:42.185153"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.189495"], ["updated_at", "2015-07-06 21:21:42.189495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9ffebde-9f19-4a27-9a21-fa3f0800f53f' AND "clubhouse_memberships"."organization_id" = '40638cac-d6dd-4992-8a53-34245bfebfda') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9ffebde-9f19-4a27-9a21-fa3f0800f53f"], ["organization_id", "40638cac-d6dd-4992-8a53-34245bfebfda"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.194727"], ["updated_at", "2015-07-06 21:21:42.194727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-12" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-12", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.200598') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ffebf0cd-6f2e-410e-81ef-12e4630e6a6c"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.203145"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.205375"], ["id", "ffebf0cd-6f2e-410e-81ef-12e4630e6a6c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9ffebde-9f19-4a27-9a21-fa3f0800f53f"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b9ffebde-9f19-4a27-9a21-fa3f0800f53f' LIMIT 1 [["organization_id", "40638cac-d6dd-4992-8a53-34245bfebfda"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '40638cac-d6dd-4992-8a53-34245bfebfda') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 27ms (ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$lkRPXHnUYC.G8eDRjpf4nO5KvuWPLBU3TTw5QRX0DHk26PUIQ1eDi"], ["created_at", "2015-07-06 21:21:42.234804"], ["updated_at", "2015-07-06 21:21:42.234804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.236602"], ["user_id", "13ef2b6f-2311-48d3-96a5-940d554a56f0"], ["created_at", "2015-07-06 21:21:42.237264"], ["updated_at", "2015-07-06 21:21:42.237264"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.241568"], ["updated_at", "2015-07-06 21:21:42.241568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '13ef2b6f-2311-48d3-96a5-940d554a56f0' AND "clubhouse_memberships"."organization_id" = 'f9a68407-d33b-4c35-a562-c4b8a786c46a') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "13ef2b6f-2311-48d3-96a5-940d554a56f0"], ["organization_id", "f9a68407-d33b-4c35-a562-c4b8a786c46a"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.245386"], ["updated_at", "2015-07-06 21:21:42.245386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-13" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-13", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.248604') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "226ab7ab-58b0-4666-bb6f-85a73612fea2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.249957"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.250774"], ["id", "226ab7ab-58b0-4666-bb6f-85a73612fea2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "13ef2b6f-2311-48d3-96a5-940d554a56f0"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '13ef2b6f-2311-48d3-96a5-940d554a56f0' LIMIT 1 [["organization_id", "f9a68407-d33b-4c35-a562-c4b8a786c46a"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'f9a68407-d33b-4c35-a562-c4b8a786c46a') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:21:42.261614"], ["id", "f9a68407-d33b-4c35-a562-c4b8a786c46a"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.9ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$fwddUB3SWf.59xYlLsJAh.fRG1DlyYGVoEuj4opYnasq3QpA3H53O"], ["created_at", "2015-07-06 21:21:42.275823"], ["updated_at", "2015-07-06 21:21:42.275823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.278151"], ["user_id", "589359e7-9eb7-4167-8f2e-c4f0fd85db0c"], ["created_at", "2015-07-06 21:21:42.278881"], ["updated_at", "2015-07-06 21:21:42.278881"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.285500"], ["updated_at", "2015-07-06 21:21:42.285500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '589359e7-9eb7-4167-8f2e-c4f0fd85db0c' AND "clubhouse_memberships"."organization_id" = 'ca2e97ac-d954-4691-8205-82d0bf4ab57a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "589359e7-9eb7-4167-8f2e-c4f0fd85db0c"], ["organization_id", "ca2e97ac-d954-4691-8205-82d0bf4ab57a"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.289327"], ["updated_at", "2015-07-06 21:21:42.289327"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$3Q1Jzw3qVJLq2300fLPFq.SHLv2dCgVE8EXsgiUFyF1UZxv3EVriW"], ["created_at", "2015-07-06 21:21:42.302383"], ["updated_at", "2015-07-06 21:21:42.302383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.304386"], ["user_id", "2f29551a-5b62-4c7f-91c0-c9a0f0083689"], ["created_at", "2015-07-06 21:21:42.305105"], ["updated_at", "2015-07-06 21:21:42.305105"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.311279"], ["updated_at", "2015-07-06 21:21:42.311279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f29551a-5b62-4c7f-91c0-c9a0f0083689' AND "clubhouse_memberships"."organization_id" = '4322391f-a027-471c-8cc3-f1bdd7effed7') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f29551a-5b62-4c7f-91c0-c9a0f0083689"], ["organization_id", "4322391f-a027-471c-8cc3-f1bdd7effed7"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.314905"], ["updated_at", "2015-07-06 21:21:42.314905"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-15" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-15", "organization"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.318943') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "63bf590b-2ad6-46a6-b9fd-cc9dfde78c6e"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.322447"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.324056"], ["id", "63bf590b-2ad6-46a6-b9fd-cc9dfde78c6e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-15"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f29551a-5b62-4c7f-91c0-c9a0f0083689"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2f29551a-5b62-4c7f-91c0-c9a0f0083689' LIMIT 1 [["organization_id", "4322391f-a027-471c-8cc3-f1bdd7effed7"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "4322391f-a027-471c-8cc3-f1bdd7effed7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$cYtU8BBDvSpohQJfRS7LSeq.LVZB2/LsqOHGgqSlRFDCXEpDr6rYe"], ["created_at", "2015-07-06 21:21:42.337366"], ["updated_at", "2015-07-06 21:21:42.337366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.339210"], ["user_id", "d5931482-31d8-4baa-a9fe-d3728b3a5054"], ["created_at", "2015-07-06 21:21:42.339882"], ["updated_at", "2015-07-06 21:21:42.339882"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.344237"], ["updated_at", "2015-07-06 21:21:42.344237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5931482-31d8-4baa-a9fe-d3728b3a5054' AND "clubhouse_memberships"."organization_id" = '39148a78-731c-4300-8e86-03a38aaf4763') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d5931482-31d8-4baa-a9fe-d3728b3a5054"], ["organization_id", "39148a78-731c-4300-8e86-03a38aaf4763"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.348259"], ["updated_at", "2015-07-06 21:21:42.348259"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$0HhE21AblPD8u..N/3r.UuTYWi3r0N.P3oKjWzzCvGUlrFKUYxJ7W"], ["created_at", "2015-07-06 21:21:42.362618"], ["updated_at", "2015-07-06 21:21:42.362618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.364726"], ["user_id", "e5aee721-cc49-4ae9-945c-7e1df273b16c"], ["created_at", "2015-07-06 21:21:42.365873"], ["updated_at", "2015-07-06 21:21:42.365873"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.372607"], ["updated_at", "2015-07-06 21:21:42.372607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5aee721-cc49-4ae9-945c-7e1df273b16c' AND "clubhouse_memberships"."organization_id" = '6829668e-4514-4c8e-a6d3-fb958995c7ef') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5aee721-cc49-4ae9-945c-7e1df273b16c"], ["organization_id", "6829668e-4514-4c8e-a6d3-fb958995c7ef"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.375892"], ["updated_at", "2015-07-06 21:21:42.375892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/6829668e-4514-4c8e-a6d3-fb958995c7ef" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"6829668e-4514-4c8e-a6d3-fb958995c7ef", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.379813') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3264f422-5d2b-4c40-9e21-3f17da74b043"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.381766"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.382681"], ["id", "3264f422-5d2b-4c40-9e21-3f17da74b043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6829668e-4514-4c8e-a6d3-fb958995c7ef"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e5aee721-cc49-4ae9-945c-7e1df273b16c"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e5aee721-cc49-4ae9-945c-7e1df273b16c' LIMIT 1 [["organization_id", "6829668e-4514-4c8e-a6d3-fb958995c7ef"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6829668e-4514-4c8e-a6d3-fb958995c7ef') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$gVeuegaUNCod4n1O7IoYgeMJBdVr3Ux.yzYpRGCghQxsZkoFMgjVa"], ["created_at", "2015-07-06 21:21:42.403369"], ["updated_at", "2015-07-06 21:21:42.403369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.405077"], ["user_id", "06574f58-5136-4b48-a825-0b422e070689"], ["created_at", "2015-07-06 21:21:42.405741"], ["updated_at", "2015-07-06 21:21:42.405741"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.410905"], ["updated_at", "2015-07-06 21:21:42.410905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06574f58-5136-4b48-a825-0b422e070689' AND "clubhouse_memberships"."organization_id" = 'c5059e5d-0470-4fe3-aa55-76a8d50445ae') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "06574f58-5136-4b48-a825-0b422e070689"], ["organization_id", "c5059e5d-0470-4fe3-aa55-76a8d50445ae"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.415688"], ["updated_at", "2015-07-06 21:21:42.415688"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c5059e5d-0470-4fe3-aa55-76a8d50445ae" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"c5059e5d-0470-4fe3-aa55-76a8d50445ae", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.421083') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a005d40c-0c74-4467-9d65-a6e2153c6bd7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.423632"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.424988"], ["id", "a005d40c-0c74-4467-9d65-a6e2153c6bd7"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c5059e5d-0470-4fe3-aa55-76a8d50445ae"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "06574f58-5136-4b48-a825-0b422e070689"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '06574f58-5136-4b48-a825-0b422e070689' LIMIT 1 [["organization_id", "c5059e5d-0470-4fe3-aa55-76a8d50445ae"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c5059e5d-0470-4fe3-aa55-76a8d50445ae') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:21:42.436281"], ["id", "c5059e5d-0470-4fe3-aa55-76a8d50445ae"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 0.9ms | ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$ZjIqwgMMit.g4TOLPv.8LODI7yYTgfSfuoZ.Dx07iVYCzvi87vB.C"], ["created_at", "2015-07-06 21:21:42.449311"], ["updated_at", "2015-07-06 21:21:42.449311"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.451417"], ["user_id", "1ad2ceee-e2a2-43e3-8fe5-080c6657966f"], ["created_at", "2015-07-06 21:21:42.452634"], ["updated_at", "2015-07-06 21:21:42.452634"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.460439"], ["updated_at", "2015-07-06 21:21:42.460439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1ad2ceee-e2a2-43e3-8fe5-080c6657966f' AND "clubhouse_memberships"."organization_id" = 'a8a8e79f-727c-40d4-9a81-d4147a3b30bd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1ad2ceee-e2a2-43e3-8fe5-080c6657966f"], ["organization_id", "a8a8e79f-727c-40d4-9a81-d4147a3b30bd"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.464067"], ["updated_at", "2015-07-06 21:21:42.464067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$bs64YqqCGp8RG9175M8kqeq/fyoGJG7WhFNGvYx7ZOG9MzYRrjIvC"], ["created_at", "2015-07-06 21:21:42.473842"], ["updated_at", "2015-07-06 21:21:42.473842"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.477084"], ["user_id", "c397908d-5ef1-499b-ac3a-2dbb27879740"], ["created_at", "2015-07-06 21:21:42.478274"], ["updated_at", "2015-07-06 21:21:42.478274"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.487850"], ["updated_at", "2015-07-06 21:21:42.487850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c397908d-5ef1-499b-ac3a-2dbb27879740' AND "clubhouse_memberships"."organization_id" = '92226198-f685-4aca-932e-9732b57d1aa9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c397908d-5ef1-499b-ac3a-2dbb27879740"], ["organization_id", "92226198-f685-4aca-932e-9732b57d1aa9"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.492586"], ["updated_at", "2015-07-06 21:21:42.492586"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.497467') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "eb45648c-19e7-4907-9368-31444dc5c615"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.499228"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.500326"], ["id", "eb45648c-19e7-4907-9368-31444dc5c615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 9ms (ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$.ij360EpKR3r/Dcf4USvSOvKl.qmTIGEN9R9zV14RLa2mYHz2Uyvq"], ["created_at", "2015-07-06 21:21:42.513781"], ["updated_at", "2015-07-06 21:21:42.513781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.515587"], ["user_id", "a71a6d08-fe0f-448f-aaef-d0d8ef542526"], ["created_at", "2015-07-06 21:21:42.516257"], ["updated_at", "2015-07-06 21:21:42.516257"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.520298"], ["updated_at", "2015-07-06 21:21:42.520298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a71a6d08-fe0f-448f-aaef-d0d8ef542526' AND "clubhouse_memberships"."organization_id" = '14b5fd35-3b29-4bd4-b9ee-ca0a2e922288') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a71a6d08-fe0f-448f-aaef-d0d8ef542526"], ["organization_id", "14b5fd35-3b29-4bd4-b9ee-ca0a2e922288"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.523706"], ["updated_at", "2015-07-06 21:21:42.523706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-21" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-21", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.527040') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b744ca23-f139-4232-a4a6-461f2992d799"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.528622"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.529529"], ["id", "b744ca23-f139-4232-a4a6-461f2992d799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a71a6d08-fe0f-448f-aaef-d0d8ef542526"]] Completed 200 OK in 7ms (ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$nEJHBBjtSfMLx4dpnsQ7ruBOm.koWGfLKNYvotauGrmPoeOdj.GBi"], ["created_at", "2015-07-06 21:21:42.542012"], ["updated_at", "2015-07-06 21:21:42.542012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.544458"], ["user_id", "911236ef-9271-4fa1-a160-d15a165ed779"], ["created_at", "2015-07-06 21:21:42.545934"], ["updated_at", "2015-07-06 21:21:42.545934"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.550558"], ["updated_at", "2015-07-06 21:21:42.550558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '911236ef-9271-4fa1-a160-d15a165ed779' AND "clubhouse_memberships"."organization_id" = '4409dd53-27b7-4c82-8cda-88ac06cab322') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "911236ef-9271-4fa1-a160-d15a165ed779"], ["organization_id", "4409dd53-27b7-4c82-8cda-88ac06cab322"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.556297"], ["updated_at", "2015-07-06 21:21:42.556297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$BUjuQzg2G.wxIsvaB/2/lu7ZrRiKszCvrsZdWXJNktO3/.oqstygG"], ["created_at", "2015-07-06 21:21:42.566754"], ["updated_at", "2015-07-06 21:21:42.566754"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.568859"], ["user_id", "506c2c5b-d43b-4153-bf5c-f179f5fa029f"], ["created_at", "2015-07-06 21:21:42.569579"], ["updated_at", "2015-07-06 21:21:42.569579"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.573919"], ["updated_at", "2015-07-06 21:21:42.573919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '506c2c5b-d43b-4153-bf5c-f179f5fa029f' AND "clubhouse_memberships"."organization_id" = '11a05bd5-43b2-40a6-bbea-e68784f6eaae') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "506c2c5b-d43b-4153-bf5c-f179f5fa029f"], ["organization_id", "11a05bd5-43b2-40a6-bbea-e68784f6eaae"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.577644"], ["updated_at", "2015-07-06 21:21:42.577644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.581054') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b5ea47f5-e50d-495f-9600-67149e181422"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.582426"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.583217"], ["id", "b5ea47f5-e50d-495f-9600-67149e181422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "506c2c5b-d43b-4153-bf5c-f179f5fa029f"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$TkFiZsIp6HxXqiuzz8fU6.4cQqFYjF0X7Ne4CzqrSbCPjuC8AlKsi"], ["created_at", "2015-07-06 21:21:42.605613"], ["updated_at", "2015-07-06 21:21:42.605613"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:42.610986"], ["user_id", "e3a3d172-347a-4112-8598-887bb372236e"], ["created_at", "2015-07-06 21:21:42.612550"], ["updated_at", "2015-07-06 21:21:42.612550"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.620193"], ["updated_at", "2015-07-06 21:21:42.620193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3a3d172-347a-4112-8598-887bb372236e' AND "clubhouse_memberships"."organization_id" = '96c6c637-7ea9-48ae-98d3-00878a7bd8fd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e3a3d172-347a-4112-8598-887bb372236e"], ["organization_id", "96c6c637-7ea9-48ae-98d3-00878a7bd8fd"], ["admin", "t"], ["created_at", "2015-07-06 21:21:42.624126"], ["updated_at", "2015-07-06 21:21:42.624126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:21:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:42.628032') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1dc844e9-1241-43b4-8bd8-d6b067c4c605"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:42.630117"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:42.631068"], ["id", "1dc844e9-1241-43b4-8bd8-d6b067c4c605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e3a3d172-347a-4112-8598-887bb372236e"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:42.638044"], ["updated_at", "2015-07-06 21:21:42.638044"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3a3d172-347a-4112-8598-887bb372236e' AND "clubhouse_memberships"."organization_id" = '97033b23-10f0-4661-af01-7f4c063ffe27') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e3a3d172-347a-4112-8598-887bb372236e"], ["admin", "t"], ["organization_id", "97033b23-10f0-4661-af01-7f4c063ffe27"], ["created_at", "2015-07-06 21:21:42.641189"], ["updated_at", "2015-07-06 21:21:42.641189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.8ms | ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$3bJveFTXbJrUda6fNxAMbO3QD2AVWkyTykyEy5/4ZxdTGFOF9Dixi"], ["created_at", "2015-07-06 21:21:50.240656"], ["updated_at", "2015-07-06 21:21:50.240656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$NvKcmkQhbdfXWUS7F46vlehhIP0siZVeKcvgCMij.c8PamXHx/nYa"], ["created_at", "2015-07-06 21:21:50.253191"], ["updated_at", "2015-07-06 21:21:50.253191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.268331"], ["user_id", "617f967b-1704-403c-8510-5d0f2a6926e0"], ["created_at", "2015-07-06 21:21:50.275956"], ["updated_at", "2015-07-06 21:21:50.275956"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.286975"], ["updated_at", "2015-07-06 21:21:50.286975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '617f967b-1704-403c-8510-5d0f2a6926e0' AND "clubhouse_memberships"."organization_id" = '18858fe8-957d-4fad-9a51-f24561f1e99b') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "617f967b-1704-403c-8510-5d0f2a6926e0"], ["organization_id", "18858fe8-957d-4fad-9a51-f24561f1e99b"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.297121"], ["updated_at", "2015-07-06 21:21:50.297121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '60fc2446-f7b1-4db0-9ad8-74313e7c55ac' AND "clubhouse_memberships"."organization_id" = '18858fe8-957d-4fad-9a51-f24561f1e99b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "60fc2446-f7b1-4db0-9ad8-74313e7c55ac"], ["organization_id", "18858fe8-957d-4fad-9a51-f24561f1e99b"], ["created_at", "2015-07-06 21:21:50.300797"], ["updated_at", "2015-07-06 21:21:50.300797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/18858fe8-957d-4fad-9a51-f24561f1e99b/memberships" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"18858fe8-957d-4fad-9a51-f24561f1e99b", "membership"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:50.319901') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "27149583-0749-4720-960f-f1fded74059f"]]  (0.2ms) SAVEPOINT active_record_1 SQL (2.9ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:50.330719"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:50.332504"], ["id", "27149583-0749-4720-960f-f1fded74059f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "18858fe8-957d-4fad-9a51-f24561f1e99b"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "617f967b-1704-403c-8510-5d0f2a6926e0"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '617f967b-1704-403c-8510-5d0f2a6926e0' LIMIT 1 [["organization_id", "18858fe8-957d-4fad-9a51-f24561f1e99b"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "18858fe8-957d-4fad-9a51-f24561f1e99b"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "617f967b-1704-403c-8510-5d0f2a6926e0"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "60fc2446-f7b1-4db0-9ad8-74313e7c55ac"]] Completed 200 OK in 71ms (Views: 26.2ms | ActiveRecord: 5.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$Y.Q2Rg.pXmbGiJbJwHf6auuvEMCfoyhx6PqQ1qQsnWXVaZuJXm1jS"], ["created_at", "2015-07-06 21:21:50.424646"], ["updated_at", "2015-07-06 21:21:50.424646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$oByvzqjrESxJzBoJXBkn1.Ndg200cp48YrONQANOioNRrnm4IsqZW"], ["created_at", "2015-07-06 21:21:50.430134"], ["updated_at", "2015-07-06 21:21:50.430134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.431754"], ["user_id", "a372fddd-f296-4a4e-b22f-0e160db5b1f3"], ["created_at", "2015-07-06 21:21:50.432435"], ["updated_at", "2015-07-06 21:21:50.432435"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.437008"], ["updated_at", "2015-07-06 21:21:50.437008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a372fddd-f296-4a4e-b22f-0e160db5b1f3' AND "clubhouse_memberships"."organization_id" = '95dd69ca-fd4e-45a6-9f77-01751b8ac4de') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a372fddd-f296-4a4e-b22f-0e160db5b1f3"], ["organization_id", "95dd69ca-fd4e-45a6-9f77-01751b8ac4de"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.441073"], ["updated_at", "2015-07-06 21:21:50.441073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '61fedd5b-d9ac-4546-8e48-b378d23875f3' AND "clubhouse_memberships"."organization_id" = '95dd69ca-fd4e-45a6-9f77-01751b8ac4de') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "61fedd5b-d9ac-4546-8e48-b378d23875f3"], ["organization_id", "95dd69ca-fd4e-45a6-9f77-01751b8ac4de"], ["created_at", "2015-07-06 21:21:50.444881"], ["updated_at", "2015-07-06 21:21:50.444881"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$vgR0TNdez6VTkMJ7cg76duNkF3GRWyo/VheQFNCKC7LheV6Vy8eme"], ["created_at", "2015-07-06 21:21:50.458620"], ["updated_at", "2015-07-06 21:21:50.458620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$8lt4sqzFLl0lstzLGzkBteTThl0lo5HLSG5Jct2z4hhyvDw0Ajie2"], ["created_at", "2015-07-06 21:21:50.472765"], ["updated_at", "2015-07-06 21:21:50.472765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.474455"], ["user_id", "cb3c1624-8b91-434f-9971-31ea07a52c6d"], ["created_at", "2015-07-06 21:21:50.475055"], ["updated_at", "2015-07-06 21:21:50.475055"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.479144"], ["updated_at", "2015-07-06 21:21:50.479144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cb3c1624-8b91-434f-9971-31ea07a52c6d' AND "clubhouse_memberships"."organization_id" = '88a5fbbc-20ea-438a-9325-2a20825a4b5d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cb3c1624-8b91-434f-9971-31ea07a52c6d"], ["organization_id", "88a5fbbc-20ea-438a-9325-2a20825a4b5d"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.482229"], ["updated_at", "2015-07-06 21:21:50.482229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dc0aecf-7461-48fe-952c-39bf1ee2ffca' AND "clubhouse_memberships"."organization_id" = '88a5fbbc-20ea-438a-9325-2a20825a4b5d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4dc0aecf-7461-48fe-952c-39bf1ee2ffca"], ["organization_id", "88a5fbbc-20ea-438a-9325-2a20825a4b5d"], ["created_at", "2015-07-06 21:21:50.485673"], ["updated_at", "2015-07-06 21:21:50.485673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$rj9oZ5qHt6JIErkpv9VI5.ch3PHqPmGSc8uiPvJTxgeTR1L.SCXBO"], ["created_at", "2015-07-06 21:21:50.491185"], ["updated_at", "2015-07-06 21:21:50.491185"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.492867"], ["user_id", "39ef3523-501d-45a2-8b62-9eef448a8aa9"], ["created_at", "2015-07-06 21:21:50.493492"], ["updated_at", "2015-07-06 21:21:50.493492"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '88a5fbbc-20ea-438a-9325-2a20825a4b5d') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "88a5fbbc-20ea-438a-9325-2a20825a4b5d"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.503763"], ["updated_at", "2015-07-06 21:21:50.503763"], ["token", "vhkjLpkeDfiBF4WevIemBUm980tNL88z5cFrR7fvUFQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$Z00Qucoc7A8WGpTHghA.q.j4AA1rQGLf2pIA4FwDLr7fXhpraJ3OK"], ["created_at", "2015-07-06 21:21:50.515626"], ["updated_at", "2015-07-06 21:21:50.515626"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$v.kFUO7u/oRy7pfTkltp7eVHjSNKurAgPCdtzvztQXyukzCa9SaL."], ["created_at", "2015-07-06 21:21:50.524738"], ["updated_at", "2015-07-06 21:21:50.524738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.526516"], ["user_id", "bb0527b6-0107-4c23-92a8-f5d1f5c16246"], ["created_at", "2015-07-06 21:21:50.527209"], ["updated_at", "2015-07-06 21:21:50.527209"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.531580"], ["updated_at", "2015-07-06 21:21:50.531580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb0527b6-0107-4c23-92a8-f5d1f5c16246' AND "clubhouse_memberships"."organization_id" = '50028598-b1b6-4da1-b9a8-391114be4706') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bb0527b6-0107-4c23-92a8-f5d1f5c16246"], ["organization_id", "50028598-b1b6-4da1-b9a8-391114be4706"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.534772"], ["updated_at", "2015-07-06 21:21:50.534772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '72013f72-f7f7-47b0-99f1-60bbdaaa36dd' AND "clubhouse_memberships"."organization_id" = '50028598-b1b6-4da1-b9a8-391114be4706') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "72013f72-f7f7-47b0-99f1-60bbdaaa36dd"], ["organization_id", "50028598-b1b6-4da1-b9a8-391114be4706"], ["created_at", "2015-07-06 21:21:50.537526"], ["updated_at", "2015-07-06 21:21:50.537526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$MejgUVzMa6x6P1.gZ.e2AOYNLlnTxpH5Lmg9OvDaLtgJmyrUKEav6"], ["created_at", "2015-07-06 21:21:50.542660"], ["updated_at", "2015-07-06 21:21:50.542660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.544331"], ["user_id", "715db96e-fafb-4ad7-b9e7-3a19d32c9718"], ["created_at", "2015-07-06 21:21:50.544959"], ["updated_at", "2015-07-06 21:21:50.544959"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '50028598-b1b6-4da1-b9a8-391114be4706') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "50028598-b1b6-4da1-b9a8-391114be4706"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.549205"], ["updated_at", "2015-07-06 21:21:50.549205"], ["token", "osJ5YAbd449C_Uk--RcJShdJ7_ctgYOWHjJF9Mw399A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"osJ5YAbd449C_Uk--RcJShdJ7_ctgYOWHjJF9Mw399A", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:50.552606') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7d8aa071-e1fc-4c9c-b4f3-09d61eb60408"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:50.554087"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:50.555031"], ["id", "7d8aa071-e1fc-4c9c-b4f3-09d61eb60408"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "715db96e-fafb-4ad7-b9e7-3a19d32c9718"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "osJ5YAbd449C_Uk--RcJShdJ7_ctgYOWHjJF9Mw399A"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "50028598-b1b6-4da1-b9a8-391114be4706"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '715db96e-fafb-4ad7-b9e7-3a19d32c9718' AND "clubhouse_memberships"."organization_id" = '50028598-b1b6-4da1-b9a8-391114be4706') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "50028598-b1b6-4da1-b9a8-391114be4706"], ["member_id", "715db96e-fafb-4ad7-b9e7-3a19d32c9718"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.569628"], ["updated_at", "2015-07-06 21:21:50.569628"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "f7635c71-ac10-462a-8a68-0705e7d5d53b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 21ms (Views: 0.9ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$wxVJDBH00OMypM17olveReV2felkIVHtPkcrR2y0ZrT3qreXdN4qe"], ["created_at", "2015-07-06 21:21:50.579546"], ["updated_at", "2015-07-06 21:21:50.579546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$FEZJFzlsy8ScOom135hBd.4Pvl8O/0j2fVqeunW/1XcIxl4.mqLvS"], ["created_at", "2015-07-06 21:21:50.584659"], ["updated_at", "2015-07-06 21:21:50.584659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.586472"], ["user_id", "774d151a-0d40-4e42-acde-a5a11cfeefa1"], ["created_at", "2015-07-06 21:21:50.587409"], ["updated_at", "2015-07-06 21:21:50.587409"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.591529"], ["updated_at", "2015-07-06 21:21:50.591529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '774d151a-0d40-4e42-acde-a5a11cfeefa1' AND "clubhouse_memberships"."organization_id" = 'b25b1225-645d-4c82-a94a-81e5aafb84cd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "774d151a-0d40-4e42-acde-a5a11cfeefa1"], ["organization_id", "b25b1225-645d-4c82-a94a-81e5aafb84cd"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.594970"], ["updated_at", "2015-07-06 21:21:50.594970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06be6e20-873e-4a63-b647-db63f80e2540' AND "clubhouse_memberships"."organization_id" = 'b25b1225-645d-4c82-a94a-81e5aafb84cd') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06be6e20-873e-4a63-b647-db63f80e2540"], ["organization_id", "b25b1225-645d-4c82-a94a-81e5aafb84cd"], ["created_at", "2015-07-06 21:21:50.597885"], ["updated_at", "2015-07-06 21:21:50.597885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$RDXQvwdDUZeEecSnw9CJReF7/20eqZUHAk.M3kdiTf1GSuImTQwzm"], ["created_at", "2015-07-06 21:21:50.604543"], ["updated_at", "2015-07-06 21:21:50.604543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.606978"], ["user_id", "d217e82a-91cc-4f56-aa62-88e0195d4f46"], ["created_at", "2015-07-06 21:21:50.607788"], ["updated_at", "2015-07-06 21:21:50.607788"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'b25b1225-645d-4c82-a94a-81e5aafb84cd') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "b25b1225-645d-4c82-a94a-81e5aafb84cd"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.614471"], ["updated_at", "2015-07-06 21:21:50.614471"], ["token", "LE9d7M1uIyh37PrqPsS7vRFLcmGM0-W-ZzLHLXXrj9U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:50.621010') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ce2a611b-fb88-44ce-885b-c553dadda5f1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:50.622432"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:50.623174"], ["id", "ce2a611b-fb88-44ce-885b-c553dadda5f1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d217e82a-91cc-4f56-aa62-88e0195d4f46"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 7ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$2gpCyACAHwO49cuETs5PauY8aCiU4bFf5mXAU2swwYHvmqJ4vEPqm"], ["created_at", "2015-07-06 21:21:50.634484"], ["updated_at", "2015-07-06 21:21:50.634484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$nDygJanVFINN4YPqbE/Uc.Yp3f3O4V1V5sKgnVeCJj..hSogqew9O"], ["created_at", "2015-07-06 21:21:50.640202"], ["updated_at", "2015-07-06 21:21:50.640202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.641912"], ["user_id", "a1903318-4b6f-4488-82e9-8f1f1a362152"], ["created_at", "2015-07-06 21:21:50.642899"], ["updated_at", "2015-07-06 21:21:50.642899"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.647139"], ["updated_at", "2015-07-06 21:21:50.647139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a1903318-4b6f-4488-82e9-8f1f1a362152' AND "clubhouse_memberships"."organization_id" = '349da041-7924-4230-a53e-279c9f89081d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a1903318-4b6f-4488-82e9-8f1f1a362152"], ["organization_id", "349da041-7924-4230-a53e-279c9f89081d"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.650098"], ["updated_at", "2015-07-06 21:21:50.650098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0960316b-a239-42ae-85de-7d512ec781de' AND "clubhouse_memberships"."organization_id" = '349da041-7924-4230-a53e-279c9f89081d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0960316b-a239-42ae-85de-7d512ec781de"], ["organization_id", "349da041-7924-4230-a53e-279c9f89081d"], ["created_at", "2015-07-06 21:21:50.652963"], ["updated_at", "2015-07-06 21:21:50.652963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$ijel.1nz6ABldScWKwoWfeWjkQiQMKZA7defw9bqGNlezegWxMyJa"], ["created_at", "2015-07-06 21:21:50.661995"], ["updated_at", "2015-07-06 21:21:50.661995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$x0EtTRRxkpzZZWg783eZL.ZEEXeseqK7dmWB7By9Cw6pJ2Uteb3eC"], ["created_at", "2015-07-06 21:21:50.668225"], ["updated_at", "2015-07-06 21:21:50.668225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.669878"], ["user_id", "84bd1e1e-9355-4c4e-bcc7-5195c6485122"], ["created_at", "2015-07-06 21:21:50.670472"], ["updated_at", "2015-07-06 21:21:50.670472"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.675165"], ["updated_at", "2015-07-06 21:21:50.675165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84bd1e1e-9355-4c4e-bcc7-5195c6485122' AND "clubhouse_memberships"."organization_id" = '12c66f44-addb-4788-bd23-45b6206c7050') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "84bd1e1e-9355-4c4e-bcc7-5195c6485122"], ["organization_id", "12c66f44-addb-4788-bd23-45b6206c7050"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.678451"], ["updated_at", "2015-07-06 21:21:50.678451"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd51d93db-99dd-4c7f-ab60-f99471deb905' AND "clubhouse_memberships"."organization_id" = '12c66f44-addb-4788-bd23-45b6206c7050') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d51d93db-99dd-4c7f-ab60-f99471deb905"], ["organization_id", "12c66f44-addb-4788-bd23-45b6206c7050"], ["created_at", "2015-07-06 21:21:50.683990"], ["updated_at", "2015-07-06 21:21:50.683990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/09845070-9c19-4f02-a5d4-634f69c03d52" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"09845070-9c19-4f02-a5d4-634f69c03d52", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:50.686994') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "36adb2b3-2999-4b35-a96f-39e50ac34647"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:50.688375"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:50.689155"], ["id", "36adb2b3-2999-4b35-a96f-39e50ac34647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "09845070-9c19-4f02-a5d4-634f69c03d52"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "84bd1e1e-9355-4c4e-bcc7-5195c6485122"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "12c66f44-addb-4788-bd23-45b6206c7050"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '84bd1e1e-9355-4c4e-bcc7-5195c6485122' LIMIT 1 [["organization_id", "12c66f44-addb-4788-bd23-45b6206c7050"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "84bd1e1e-9355-4c4e-bcc7-5195c6485122"]] Completed 200 OK in 10ms (Views: 1.3ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$HGoPfBzTr/Mktm.DOTS6cOC8MqDg6jGNLENEr0tMz/glnNvWLpCY2"], ["created_at", "2015-07-06 21:21:50.703931"], ["updated_at", "2015-07-06 21:21:50.703931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$G.ZE6Pp3xny6AVpW/AiAoeutU31GT6zyg7.UfpTIbDvfmuwHu2PWu"], ["created_at", "2015-07-06 21:21:50.710088"], ["updated_at", "2015-07-06 21:21:50.710088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.712501"], ["user_id", "b93f3d98-8a31-492f-b48e-102f8dd26aa8"], ["created_at", "2015-07-06 21:21:50.713312"], ["updated_at", "2015-07-06 21:21:50.713312"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.718675"], ["updated_at", "2015-07-06 21:21:50.718675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b93f3d98-8a31-492f-b48e-102f8dd26aa8' AND "clubhouse_memberships"."organization_id" = 'dcc51c2e-272a-4126-a7d9-2c191e99e2fe') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b93f3d98-8a31-492f-b48e-102f8dd26aa8"], ["organization_id", "dcc51c2e-272a-4126-a7d9-2c191e99e2fe"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.722735"], ["updated_at", "2015-07-06 21:21:50.722735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbe7e245-3eba-439e-8fd6-d3afd97ae388' AND "clubhouse_memberships"."organization_id" = 'dcc51c2e-272a-4126-a7d9-2c191e99e2fe') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbe7e245-3eba-439e-8fd6-d3afd97ae388"], ["organization_id", "dcc51c2e-272a-4126-a7d9-2c191e99e2fe"], ["created_at", "2015-07-06 21:21:50.726058"], ["updated_at", "2015-07-06 21:21:50.726058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$24Phgsg6Hiud3x5FwRKpBe47oAApDbjC0QL0np8B5/GuABUTh.wJy"], ["created_at", "2015-07-06 21:21:50.735258"], ["updated_at", "2015-07-06 21:21:50.735258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$.DPI9uQGEEFrKrU75R1XYeMNuvpCGMg7G2vVxE7toLCwgV06crbC6"], ["created_at", "2015-07-06 21:21:50.740946"], ["updated_at", "2015-07-06 21:21:50.740946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.742476"], ["user_id", "c9897c1e-7d5b-46ab-a5a8-8a9535a41e6a"], ["created_at", "2015-07-06 21:21:50.743106"], ["updated_at", "2015-07-06 21:21:50.743106"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.749500"], ["updated_at", "2015-07-06 21:21:50.749500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9897c1e-7d5b-46ab-a5a8-8a9535a41e6a' AND "clubhouse_memberships"."organization_id" = '40deafe2-195b-4500-82e2-2d8348080373') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c9897c1e-7d5b-46ab-a5a8-8a9535a41e6a"], ["organization_id", "40deafe2-195b-4500-82e2-2d8348080373"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.752923"], ["updated_at", "2015-07-06 21:21:50.752923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c38a64c-5b60-4fef-96fd-0c5eab151bda' AND "clubhouse_memberships"."organization_id" = '40deafe2-195b-4500-82e2-2d8348080373') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2c38a64c-5b60-4fef-96fd-0c5eab151bda"], ["organization_id", "40deafe2-195b-4500-82e2-2d8348080373"], ["created_at", "2015-07-06 21:21:50.755961"], ["updated_at", "2015-07-06 21:21:50.755961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:50.758781') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0971fe74-78b9-4c63-93d3-0e59a528dd69"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:50.760027"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:50.760740"], ["id", "0971fe74-78b9-4c63-93d3-0e59a528dd69"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c9897c1e-7d5b-46ab-a5a8-8a9535a41e6a"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c9897c1e-7d5b-46ab-a5a8-8a9535a41e6a' LIMIT 1 [["organization_id", "40deafe2-195b-4500-82e2-2d8348080373"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "40deafe2-195b-4500-82e2-2d8348080373"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c9897c1e-7d5b-46ab-a5a8-8a9535a41e6a"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2c38a64c-5b60-4fef-96fd-0c5eab151bda"]] Completed 200 OK in 16ms (Views: 5.3ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$Dq5/3aDW35Iixx9EMCfPdu5MNQYnYai53OHF5t4cw9t0jAbGqUeYe"], ["created_at", "2015-07-06 21:21:50.784509"], ["updated_at", "2015-07-06 21:21:50.784509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$NbF7nmCCLIcv2cTsOlZrgeJcXJEO5ZvvVKrbommgZXTjXGbU3dYGm"], ["created_at", "2015-07-06 21:21:50.790847"], ["updated_at", "2015-07-06 21:21:50.790847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.792443"], ["user_id", "a9fdaa3a-4333-40cd-8870-6aab13aaaa17"], ["created_at", "2015-07-06 21:21:50.793070"], ["updated_at", "2015-07-06 21:21:50.793070"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.797027"], ["updated_at", "2015-07-06 21:21:50.797027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9fdaa3a-4333-40cd-8870-6aab13aaaa17' AND "clubhouse_memberships"."organization_id" = 'aaa03db6-0ae8-4a88-8784-d6903d921918') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9fdaa3a-4333-40cd-8870-6aab13aaaa17"], ["organization_id", "aaa03db6-0ae8-4a88-8784-d6903d921918"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.799941"], ["updated_at", "2015-07-06 21:21:50.799941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1c7e079d-651a-4192-bb9b-8d3a409c4673' AND "clubhouse_memberships"."organization_id" = 'aaa03db6-0ae8-4a88-8784-d6903d921918') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1c7e079d-651a-4192-bb9b-8d3a409c4673"], ["organization_id", "aaa03db6-0ae8-4a88-8784-d6903d921918"], ["created_at", "2015-07-06 21:21:50.803001"], ["updated_at", "2015-07-06 21:21:50.803001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$m3ChfdijUPcggSpHz7nPHuk4bSd3ofbwpC0pmulXiu8NBNFuA3Yha"], ["created_at", "2015-07-06 21:21:50.808058"], ["updated_at", "2015-07-06 21:21:50.808058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.809701"], ["user_id", "e34500ab-2c79-4515-a87a-294fbe1b0814"], ["created_at", "2015-07-06 21:21:50.810333"], ["updated_at", "2015-07-06 21:21:50.810333"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'aaa03db6-0ae8-4a88-8784-d6903d921918') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "aaa03db6-0ae8-4a88-8784-d6903d921918"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.815773"], ["updated_at", "2015-07-06 21:21:50.815773"], ["token", "waNDZqlMxihFM6qo2cbR_6_TOD01nPg3tyU0kQvWAJw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$ezM4mp/zA3R4TiAf0FMchOz4bpLYw6IcfY3jsBIdSn0PPvktzJ7py"], ["created_at", "2015-07-06 21:21:50.825098"], ["updated_at", "2015-07-06 21:21:50.825098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$sMgq96mpFmZaRivOgDQPFeJOVeisMGb1Nc120ypS4/jaiEFMP1HWa"], ["created_at", "2015-07-06 21:21:50.831595"], ["updated_at", "2015-07-06 21:21:50.831595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.834378"], ["user_id", "7b9abe3d-e908-412d-bfc6-3ff1866c2095"], ["created_at", "2015-07-06 21:21:50.835051"], ["updated_at", "2015-07-06 21:21:50.835051"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.840106"], ["updated_at", "2015-07-06 21:21:50.840106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b9abe3d-e908-412d-bfc6-3ff1866c2095' AND "clubhouse_memberships"."organization_id" = '120ea1d7-0e94-45f0-9a9f-1cf2691ff082') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b9abe3d-e908-412d-bfc6-3ff1866c2095"], ["organization_id", "120ea1d7-0e94-45f0-9a9f-1cf2691ff082"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.844011"], ["updated_at", "2015-07-06 21:21:50.844011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1cbb4848-9bac-491f-a075-f1e4e018249e' AND "clubhouse_memberships"."organization_id" = '120ea1d7-0e94-45f0-9a9f-1cf2691ff082') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1cbb4848-9bac-491f-a075-f1e4e018249e"], ["organization_id", "120ea1d7-0e94-45f0-9a9f-1cf2691ff082"], ["created_at", "2015-07-06 21:21:50.847014"], ["updated_at", "2015-07-06 21:21:50.847014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$E/YPNBJy7jzF8jGjBhU.W.EOLEcdZAqJpNQQBcbBvlpaWNDivNug2"], ["created_at", "2015-07-06 21:21:50.852700"], ["updated_at", "2015-07-06 21:21:50.852700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.854450"], ["user_id", "3af3a93b-93cc-4d83-9ed6-b45e7830f5f8"], ["created_at", "2015-07-06 21:21:50.855122"], ["updated_at", "2015-07-06 21:21:50.855122"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '120ea1d7-0e94-45f0-9a9f-1cf2691ff082') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "120ea1d7-0e94-45f0-9a9f-1cf2691ff082"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.860021"], ["updated_at", "2015-07-06 21:21:50.860021"], ["token", "Dy7__8XIIobgRSB1X8kgl1NFBxPZ8D_MU6b1bd3T6e8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/120ea1d7-0e94-45f0-9a9f-1cf2691ff082/memberships" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"120ea1d7-0e94-45f0-9a9f-1cf2691ff082", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:50.863079') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ffa91308-2be6-4b33-b6fe-f87b36b866d6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:50.864415"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:50.865148"], ["id", "ffa91308-2be6-4b33-b6fe-f87b36b866d6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "120ea1d7-0e94-45f0-9a9f-1cf2691ff082"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3af3a93b-93cc-4d83-9ed6-b45e7830f5f8"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms (ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$6GdUb0sbIsUOuiTldSf1pu/AILgMeEvRq3yiJ8dUqP8RX3KUg3UDS"], ["created_at", "2015-07-06 21:21:50.879808"], ["updated_at", "2015-07-06 21:21:50.879808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$PXSqPMvyQNnSWQotiSzxWOQGVJ4lnN1YAuUa7sJ.sqxvWOys/3hm6"], ["created_at", "2015-07-06 21:21:50.887249"], ["updated_at", "2015-07-06 21:21:50.887249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.889009"], ["user_id", "c654e823-b26d-4ec7-a438-4dc4e8f7fb4c"], ["created_at", "2015-07-06 21:21:50.889956"], ["updated_at", "2015-07-06 21:21:50.889956"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.894585"], ["updated_at", "2015-07-06 21:21:50.894585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c654e823-b26d-4ec7-a438-4dc4e8f7fb4c' AND "clubhouse_memberships"."organization_id" = 'cd109f23-a686-49d1-b648-e82920cde11d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c654e823-b26d-4ec7-a438-4dc4e8f7fb4c"], ["organization_id", "cd109f23-a686-49d1-b648-e82920cde11d"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.897952"], ["updated_at", "2015-07-06 21:21:50.897952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b1ecc89a-1a21-4033-b12b-3bad66235d98' AND "clubhouse_memberships"."organization_id" = 'cd109f23-a686-49d1-b648-e82920cde11d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b1ecc89a-1a21-4033-b12b-3bad66235d98"], ["organization_id", "cd109f23-a686-49d1-b648-e82920cde11d"], ["created_at", "2015-07-06 21:21:50.900647"], ["updated_at", "2015-07-06 21:21:50.900647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$H9QqN4/b2XvG0WvATFCv1O8CmOUJvi9NGA5GdhXDPBFLXV22Cyxx2"], ["created_at", "2015-07-06 21:21:50.905936"], ["updated_at", "2015-07-06 21:21:50.905936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.907509"], ["user_id", "ae587c40-41ea-4196-9ab8-36bfbec1b942"], ["created_at", "2015-07-06 21:21:50.908106"], ["updated_at", "2015-07-06 21:21:50.908106"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'cd109f23-a686-49d1-b648-e82920cde11d') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "cd109f23-a686-49d1-b648-e82920cde11d"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.914574"], ["updated_at", "2015-07-06 21:21:50.914574"], ["token", "AXX4D3jBZI14rlxpOrw0qVrbF6rbLLGU9JuCmcJ5jKk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/cd109f23-a686-49d1-b648-e82920cde11d/memberships" for 127.0.0.1 at 2015-07-06 14:21:50 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"AXX4D3jBZI14rlxpOrw0qVrbF6rbLLGU9JuCmcJ5jKk", "organization_id"=>"cd109f23-a686-49d1-b648-e82920cde11d", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:50.923312') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c3e88474-99f1-4a55-a144-849abd68f122"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:50.925257"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:50.926969"], ["id", "c3e88474-99f1-4a55-a144-849abd68f122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "cd109f23-a686-49d1-b648-e82920cde11d"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ae587c40-41ea-4196-9ab8-36bfbec1b942"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "AXX4D3jBZI14rlxpOrw0qVrbF6rbLLGU9JuCmcJ5jKk"]] Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cd109f23-a686-49d1-b648-e82920cde11d"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ae587c40-41ea-4196-9ab8-36bfbec1b942' AND "clubhouse_memberships"."organization_id" = 'cd109f23-a686-49d1-b648-e82920cde11d') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "cd109f23-a686-49d1-b648-e82920cde11d"], ["member_id", "ae587c40-41ea-4196-9ab8-36bfbec1b942"], ["admin", "t"], ["created_at", "2015-07-06 21:21:50.941823"], ["updated_at", "2015-07-06 21:21:50.941823"]] SQL (0.7ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "f29a1f0a-c1fa-4054-8eb6-c2c468478775"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 25ms (Views: 1.2ms | ActiveRecord: 4.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$vvVUoU6J3K6kWfPtwXqUnudfkBOBCvN6hG4O6Ni.JiU22NGyualg2"], ["created_at", "2015-07-06 21:21:50.958528"], ["updated_at", "2015-07-06 21:21:50.958528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (1.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$r.6mITZ2jNrktXln6d68HuoFGYkPiR2lDguoD1xl.RBn2xsHCcEZe"], ["created_at", "2015-07-06 21:21:50.969827"], ["updated_at", "2015-07-06 21:21:50.969827"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:50.975372"], ["user_id", "116dc411-9a13-4ee2-ad06-afe7e73bc9a8"], ["created_at", "2015-07-06 21:21:50.976659"], ["updated_at", "2015-07-06 21:21:50.976659"], ["client", "App"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:50.993594"], ["updated_at", "2015-07-06 21:21:50.993594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '116dc411-9a13-4ee2-ad06-afe7e73bc9a8' AND "clubhouse_memberships"."organization_id" = 'a4b7368f-f641-4b7f-a62c-5b5e31615c03') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "116dc411-9a13-4ee2-ad06-afe7e73bc9a8"], ["organization_id", "a4b7368f-f641-4b7f-a62c-5b5e31615c03"], ["admin", "t"], ["created_at", "2015-07-06 21:21:51.002047"], ["updated_at", "2015-07-06 21:21:51.002047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f1379de9-bbf8-450e-af03-6f96dbb8f8c0' AND "clubhouse_memberships"."organization_id" = 'a4b7368f-f641-4b7f-a62c-5b5e31615c03') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f1379de9-bbf8-450e-af03-6f96dbb8f8c0"], ["organization_id", "a4b7368f-f641-4b7f-a62c-5b5e31615c03"], ["created_at", "2015-07-06 21:21:51.006657"], ["updated_at", "2015-07-06 21:21:51.006657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:21:51 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$jz1nr6EujGMmubS1Wxynbue1sc0n1qRs0HL5LROygEHoqJCIDNBWS"], ["created_at", "2015-07-06 21:21:51.021163"], ["updated_at", "2015-07-06 21:21:51.021163"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$CNKUfgklK2AnM0cRVOdyP.7ySGDYZdtDBbcw0WkMmrol/UUG2PY.C"], ["created_at", "2015-07-06 21:21:51.056803"], ["updated_at", "2015-07-06 21:21:51.056803"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:51.060288"], ["user_id", "68136dbf-5798-4d11-8c8f-84e9af35a86f"], ["created_at", "2015-07-06 21:21:51.061473"], ["updated_at", "2015-07-06 21:21:51.061473"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:51.069558"], ["updated_at", "2015-07-06 21:21:51.069558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '68136dbf-5798-4d11-8c8f-84e9af35a86f' AND "clubhouse_memberships"."organization_id" = 'b47c005d-9ce9-446e-835c-161688835b7b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "68136dbf-5798-4d11-8c8f-84e9af35a86f"], ["organization_id", "b47c005d-9ce9-446e-835c-161688835b7b"], ["admin", "t"], ["created_at", "2015-07-06 21:21:51.076361"], ["updated_at", "2015-07-06 21:21:51.076361"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f86c3988-2a29-4736-a0c3-cd573499515d' AND "clubhouse_memberships"."organization_id" = 'b47c005d-9ce9-446e-835c-161688835b7b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f86c3988-2a29-4736-a0c3-cd573499515d"], ["organization_id", "b47c005d-9ce9-446e-835c-161688835b7b"], ["created_at", "2015-07-06 21:21:51.081368"], ["updated_at", "2015-07-06 21:21:51.081368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1d49fd1b-8de5-4772-a4ca-405107b76ccb" for 127.0.0.1 at 2015-07-06 14:21:51 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1d49fd1b-8de5-4772-a4ca-405107b76ccb", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:51.084916') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "88d5c911-d760-4006-866d-f7fbf3e957c0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:51.086615"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:51.087988"], ["id", "88d5c911-d760-4006-866d-f7fbf3e957c0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "1d49fd1b-8de5-4772-a4ca-405107b76ccb"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "68136dbf-5798-4d11-8c8f-84e9af35a86f"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b47c005d-9ce9-446e-835c-161688835b7b"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '68136dbf-5798-4d11-8c8f-84e9af35a86f' LIMIT 1 [["organization_id", "b47c005d-9ce9-446e-835c-161688835b7b"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f86c3988-2a29-4736-a0c3-cd573499515d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "1d49fd1b-8de5-4772-a4ca-405107b76ccb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 16ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$W43ddqpR6vhOpvVeqZjOLeKIFwLhQ4mBKX/HXQu3qkQaOeZiYDjcW"], ["created_at", "2015-07-06 21:21:51.108983"], ["updated_at", "2015-07-06 21:21:51.108983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$u1aYpXSplqzquI7xDBMI9.8XMYNAHUY94hwip0nIBFEbx11fJxqd6"], ["created_at", "2015-07-06 21:21:51.117803"], ["updated_at", "2015-07-06 21:21:51.117803"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:51.121166"], ["user_id", "17680bb5-e0ba-406a-bf21-f1af2ca4651e"], ["created_at", "2015-07-06 21:21:51.122172"], ["updated_at", "2015-07-06 21:21:51.122172"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:51.130162"], ["updated_at", "2015-07-06 21:21:51.130162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '17680bb5-e0ba-406a-bf21-f1af2ca4651e' AND "clubhouse_memberships"."organization_id" = '5eb2d760-60e9-439c-b7a0-0a18537decbb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "17680bb5-e0ba-406a-bf21-f1af2ca4651e"], ["organization_id", "5eb2d760-60e9-439c-b7a0-0a18537decbb"], ["admin", "t"], ["created_at", "2015-07-06 21:21:51.136496"], ["updated_at", "2015-07-06 21:21:51.136496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ab339602-224a-44a1-a2a8-523df30cdd66' AND "clubhouse_memberships"."organization_id" = '5eb2d760-60e9-439c-b7a0-0a18537decbb') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ab339602-224a-44a1-a2a8-523df30cdd66"], ["organization_id", "5eb2d760-60e9-439c-b7a0-0a18537decbb"], ["created_at", "2015-07-06 21:21:51.140209"], ["updated_at", "2015-07-06 21:21:51.140209"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/3ab93a3c-bb1a-4ddd-96ac-ea24e54f9d17" for 127.0.0.1 at 2015-07-06 14:21:51 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"3ab93a3c-bb1a-4ddd-96ac-ea24e54f9d17", "membership"=>{"admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:21:51.145397') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "34125e19-a542-45ef-abae-8ba4f3cdee2a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:21:51.147503"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:21:51.148782"], ["id", "34125e19-a542-45ef-abae-8ba4f3cdee2a"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "3ab93a3c-bb1a-4ddd-96ac-ea24e54f9d17"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "17680bb5-e0ba-406a-bf21-f1af2ca4651e"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5eb2d760-60e9-439c-b7a0-0a18537decbb"]] Clubhouse::Membership Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '17680bb5-e0ba-406a-bf21-f1af2ca4651e' LIMIT 1 [["organization_id", "5eb2d760-60e9-439c-b7a0-0a18537decbb"], ["admin", "t"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ab339602-224a-44a1-a2a8-523df30cdd66"]] Unpermitted parameters: id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ab339602-224a-44a1-a2a8-523df30cdd66' AND "clubhouse_memberships"."id" != '3ab93a3c-bb1a-4ddd-96ac-ea24e54f9d17' AND "clubhouse_memberships"."organization_id" = '5eb2d760-60e9-439c-b7a0-0a18537decbb') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:21:51.168981"], ["id", "3ab93a3c-bb1a-4ddd-96ac-ea24e54f9d17"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 27ms (Views: 1.2ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$P/kQaV9e5.kvaHF0AvKA5OL41/B6Ptrt7109xXHOYcClAp1gxhJf6"], ["created_at", "2015-07-06 21:21:51.184081"], ["updated_at", "2015-07-06 21:21:51.184081"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$QUbKmg7SykQjfmd.MfUSGOWB5viSI3zyrMpew0g7hvdlS460k0ySa"], ["created_at", "2015-07-06 21:21:51.193406"], ["updated_at", "2015-07-06 21:21:51.193406"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:21:51.196459"], ["user_id", "82754a43-e356-45d6-9e1e-04de7e381bf6"], ["created_at", "2015-07-06 21:21:51.197419"], ["updated_at", "2015-07-06 21:21:51.197419"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:21:51.203595"], ["updated_at", "2015-07-06 21:21:51.203595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82754a43-e356-45d6-9e1e-04de7e381bf6' AND "clubhouse_memberships"."organization_id" = '78556426-31fd-40af-8dc2-ff0eb897dc8e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82754a43-e356-45d6-9e1e-04de7e381bf6"], ["organization_id", "78556426-31fd-40af-8dc2-ff0eb897dc8e"], ["admin", "t"], ["created_at", "2015-07-06 21:21:51.209311"], ["updated_at", "2015-07-06 21:21:51.209311"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '944d986e-8933-44cf-bd0a-bf1e1c56847a' AND "clubhouse_memberships"."organization_id" = '78556426-31fd-40af-8dc2-ff0eb897dc8e') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "944d986e-8933-44cf-bd0a-bf1e1c56847a"], ["organization_id", "78556426-31fd-40af-8dc2-ff0eb897dc8e"], ["created_at", "2015-07-06 21:21:51.214739"], ["updated_at", "2015-07-06 21:21:51.214739"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:21:51 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$Ev6MQu6kBZ8ouuzLiTx15uJ6y39LNzZNv3H.kBi51id6ujhNOPuuO"], ["created_at", "2015-07-06 21:22:26.788314"], ["updated_at", "2015-07-06 21:22:26.788314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$9c/K3VlD93X1EuazUtIWgudeNsLcYVziYtBHQWEJGa6tV3nPM2MuO"], ["created_at", "2015-07-06 21:22:26.797802"], ["updated_at", "2015-07-06 21:22:26.797802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:26.813426"], ["user_id", "1bb25dac-6585-4647-8bc4-201d8dc17ddb"], ["created_at", "2015-07-06 21:22:26.824948"], ["updated_at", "2015-07-06 21:22:26.824948"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:26.836013"], ["updated_at", "2015-07-06 21:22:26.836013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1bb25dac-6585-4647-8bc4-201d8dc17ddb' AND "clubhouse_memberships"."organization_id" = '858608c8-c4f6-43a4-b8c7-40120a17b364') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1bb25dac-6585-4647-8bc4-201d8dc17ddb"], ["organization_id", "858608c8-c4f6-43a4-b8c7-40120a17b364"], ["admin", "t"], ["created_at", "2015-07-06 21:22:26.847313"], ["updated_at", "2015-07-06 21:22:26.847313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d5969dc-591d-4320-8fe5-fc505c66e42e' AND "clubhouse_memberships"."organization_id" = '858608c8-c4f6-43a4-b8c7-40120a17b364') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d5969dc-591d-4320-8fe5-fc505c66e42e"], ["organization_id", "858608c8-c4f6-43a4-b8c7-40120a17b364"], ["created_at", "2015-07-06 21:22:26.851538"], ["updated_at", "2015-07-06 21:22:26.851538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:22:26 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$P.LAz3VbIBr1.8.qoN9C4unmq..WQIqyHCCTZxpERFyK4qppL8oHm"], ["created_at", "2015-07-06 21:22:26.885402"], ["updated_at", "2015-07-06 21:22:26.885402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$kbszhuj8gy.OeJLX8Wmbwu882.FrKqi0xTpOSNeHCiFAXXpTV2MAy"], ["created_at", "2015-07-06 21:22:26.891447"], ["updated_at", "2015-07-06 21:22:26.891447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:26.893277"], ["user_id", "01e6e7ba-fe05-4551-bf7f-8d7e46e87941"], ["created_at", "2015-07-06 21:22:26.893963"], ["updated_at", "2015-07-06 21:22:26.893963"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:26.898506"], ["updated_at", "2015-07-06 21:22:26.898506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '01e6e7ba-fe05-4551-bf7f-8d7e46e87941' AND "clubhouse_memberships"."organization_id" = '6a6aed45-2d66-4b59-ae6b-70d6cf5bab09') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "01e6e7ba-fe05-4551-bf7f-8d7e46e87941"], ["organization_id", "6a6aed45-2d66-4b59-ae6b-70d6cf5bab09"], ["admin", "t"], ["created_at", "2015-07-06 21:22:26.901759"], ["updated_at", "2015-07-06 21:22:26.901759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a36fdc49-b420-4e9c-a85e-d07ef25e1834' AND "clubhouse_memberships"."organization_id" = '6a6aed45-2d66-4b59-ae6b-70d6cf5bab09') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a36fdc49-b420-4e9c-a85e-d07ef25e1834"], ["organization_id", "6a6aed45-2d66-4b59-ae6b-70d6cf5bab09"], ["created_at", "2015-07-06 21:22:26.905133"], ["updated_at", "2015-07-06 21:22:26.905133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/7eefd474-3ca8-4666-bffd-3a293bc76c51" for 127.0.0.1 at 2015-07-06 14:22:26 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"7eefd474-3ca8-4666-bffd-3a293bc76c51", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:26.908618') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d3bee847-c8e9-4b56-a4ae-163bb4b03453"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:26.917339"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:26.918523"], ["id", "d3bee847-c8e9-4b56-a4ae-163bb4b03453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "7eefd474-3ca8-4666-bffd-3a293bc76c51"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "01e6e7ba-fe05-4551-bf7f-8d7e46e87941"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6a6aed45-2d66-4b59-ae6b-70d6cf5bab09"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '01e6e7ba-fe05-4551-bf7f-8d7e46e87941' LIMIT 1 [["organization_id", "6a6aed45-2d66-4b59-ae6b-70d6cf5bab09"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "01e6e7ba-fe05-4551-bf7f-8d7e46e87941"]] Completed 200 OK in 66ms (Views: 27.2ms | ActiveRecord: 2.4ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$rTwzGU4/ERHaHVdxYYExleUIfMqCgeMXq/UDRmUZBdsWTT7f9TQCq"], ["created_at", "2015-07-06 21:22:27.012742"], ["updated_at", "2015-07-06 21:22:27.012742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$e2yJ7E52ooVyKYDR0XWhlOrzKcMqlTuvoveRyxw4XzesBWyeWP1YO"], ["created_at", "2015-07-06 21:22:27.019135"], ["updated_at", "2015-07-06 21:22:27.019135"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.032247"], ["user_id", "bd672da3-41c0-45f1-8699-8ab4275d2ec7"], ["created_at", "2015-07-06 21:22:27.033229"], ["updated_at", "2015-07-06 21:22:27.033229"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.037957"], ["updated_at", "2015-07-06 21:22:27.037957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bd672da3-41c0-45f1-8699-8ab4275d2ec7' AND "clubhouse_memberships"."organization_id" = '6cd10852-3a3a-48a1-8e9b-9ea0951c2ad7') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bd672da3-41c0-45f1-8699-8ab4275d2ec7"], ["organization_id", "6cd10852-3a3a-48a1-8e9b-9ea0951c2ad7"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.041243"], ["updated_at", "2015-07-06 21:22:27.041243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b47162b3-0f56-4856-bc43-99defee46dc3' AND "clubhouse_memberships"."organization_id" = '6cd10852-3a3a-48a1-8e9b-9ea0951c2ad7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b47162b3-0f56-4856-bc43-99defee46dc3"], ["organization_id", "6cd10852-3a3a-48a1-8e9b-9ea0951c2ad7"], ["created_at", "2015-07-06 21:22:27.044570"], ["updated_at", "2015-07-06 21:22:27.044570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/6cd10852-3a3a-48a1-8e9b-9ea0951c2ad7/memberships" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"6cd10852-3a3a-48a1-8e9b-9ea0951c2ad7", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:27.048537') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5e91f6cc-0ac7-49f3-967b-54c3a9bf2181"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:27.051136"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:27.052665"], ["id", "5e91f6cc-0ac7-49f3-967b-54c3a9bf2181"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6cd10852-3a3a-48a1-8e9b-9ea0951c2ad7"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bd672da3-41c0-45f1-8699-8ab4275d2ec7"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bd672da3-41c0-45f1-8699-8ab4275d2ec7' LIMIT 1 [["organization_id", "6cd10852-3a3a-48a1-8e9b-9ea0951c2ad7"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "6cd10852-3a3a-48a1-8e9b-9ea0951c2ad7"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bd672da3-41c0-45f1-8699-8ab4275d2ec7"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b47162b3-0f56-4856-bc43-99defee46dc3"]] Completed 200 OK in 25ms (Views: 3.9ms | ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$rPoA4JFRiwUwWmgKBab0/u1u3IX5C0o8Tkm/jIQRfBCMuDA8aSnCS"], ["created_at", "2015-07-06 21:22:27.082355"], ["updated_at", "2015-07-06 21:22:27.082355"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$dIO95yBB.EL2f4AVi4VbMeQu8RQadTw7Utr10U/rNjdsgyD.fx1VG"], ["created_at", "2015-07-06 21:22:27.089999"], ["updated_at", "2015-07-06 21:22:27.089999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.093007"], ["user_id", "f452703a-f754-42fc-89c3-d1b169f413f1"], ["created_at", "2015-07-06 21:22:27.095165"], ["updated_at", "2015-07-06 21:22:27.095165"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.101485"], ["updated_at", "2015-07-06 21:22:27.101485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f452703a-f754-42fc-89c3-d1b169f413f1' AND "clubhouse_memberships"."organization_id" = '8deaa396-80b1-41ec-bd8c-470a2d198a14') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f452703a-f754-42fc-89c3-d1b169f413f1"], ["organization_id", "8deaa396-80b1-41ec-bd8c-470a2d198a14"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.105561"], ["updated_at", "2015-07-06 21:22:27.105561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22d0044e-208d-4bb1-babc-92fae2ed56e3' AND "clubhouse_memberships"."organization_id" = '8deaa396-80b1-41ec-bd8c-470a2d198a14') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "22d0044e-208d-4bb1-babc-92fae2ed56e3"], ["organization_id", "8deaa396-80b1-41ec-bd8c-470a2d198a14"], ["created_at", "2015-07-06 21:22:27.108793"], ["updated_at", "2015-07-06 21:22:27.108793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$hsL8FtsO2H03bTkIJxA8hOgiX3qWkjirbeAGsev/EWJiLOQco2Pb6"], ["created_at", "2015-07-06 21:22:27.119654"], ["updated_at", "2015-07-06 21:22:27.119654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$t9ShHTV6rJeSWHfM7idKyuDj/KCO.gCcWTC.4feTc6pYfUuptzREu"], ["created_at", "2015-07-06 21:22:27.125237"], ["updated_at", "2015-07-06 21:22:27.125237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.127131"], ["user_id", "09ed2380-df3f-45a9-b4ce-ad72dd3e20ff"], ["created_at", "2015-07-06 21:22:27.128235"], ["updated_at", "2015-07-06 21:22:27.128235"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.133408"], ["updated_at", "2015-07-06 21:22:27.133408"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09ed2380-df3f-45a9-b4ce-ad72dd3e20ff' AND "clubhouse_memberships"."organization_id" = '44b41c0f-8855-4496-a401-576b18301ef4') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "09ed2380-df3f-45a9-b4ce-ad72dd3e20ff"], ["organization_id", "44b41c0f-8855-4496-a401-576b18301ef4"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.139265"], ["updated_at", "2015-07-06 21:22:27.139265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b15e9b74-ced0-4aca-81ea-ca065b0b1ec7' AND "clubhouse_memberships"."organization_id" = '44b41c0f-8855-4496-a401-576b18301ef4') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b15e9b74-ced0-4aca-81ea-ca065b0b1ec7"], ["organization_id", "44b41c0f-8855-4496-a401-576b18301ef4"], ["created_at", "2015-07-06 21:22:27.146511"], ["updated_at", "2015-07-06 21:22:27.146511"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:27.153904') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e2ac3806-0bc2-4b7c-ac28-44ce4f65a512"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:27.155935"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:27.156792"], ["id", "e2ac3806-0bc2-4b7c-ac28-44ce4f65a512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09ed2380-df3f-45a9-b4ce-ad72dd3e20ff"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '09ed2380-df3f-45a9-b4ce-ad72dd3e20ff' LIMIT 1 [["organization_id", "44b41c0f-8855-4496-a401-576b18301ef4"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "44b41c0f-8855-4496-a401-576b18301ef4"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09ed2380-df3f-45a9-b4ce-ad72dd3e20ff"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b15e9b74-ced0-4aca-81ea-ca065b0b1ec7"]] Completed 200 OK in 12ms (Views: 2.7ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$z/BiR7jWfrLlKFUTbyMMw.PH8Zws6p1Wye1q17ckflMihcPJ.4t1m"], ["created_at", "2015-07-06 21:22:27.173948"], ["updated_at", "2015-07-06 21:22:27.173948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$02FMPkxlJGceC/GfPATi9.Vrdc4S4R1CWhm.hPrDRaRTLuwyQIfvS"], ["created_at", "2015-07-06 21:22:27.179542"], ["updated_at", "2015-07-06 21:22:27.179542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.181242"], ["user_id", "5363a8b0-db34-422b-a712-d46ce2d24a5d"], ["created_at", "2015-07-06 21:22:27.181889"], ["updated_at", "2015-07-06 21:22:27.181889"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.186149"], ["updated_at", "2015-07-06 21:22:27.186149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5363a8b0-db34-422b-a712-d46ce2d24a5d' AND "clubhouse_memberships"."organization_id" = '6a1c88d7-6886-4bc0-a586-f3746844b4b9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5363a8b0-db34-422b-a712-d46ce2d24a5d"], ["organization_id", "6a1c88d7-6886-4bc0-a586-f3746844b4b9"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.189520"], ["updated_at", "2015-07-06 21:22:27.189520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a69df0c6-ca72-4ff9-8779-f513b125a16f' AND "clubhouse_memberships"."organization_id" = '6a1c88d7-6886-4bc0-a586-f3746844b4b9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a69df0c6-ca72-4ff9-8779-f513b125a16f"], ["organization_id", "6a1c88d7-6886-4bc0-a586-f3746844b4b9"], ["created_at", "2015-07-06 21:22:27.192993"], ["updated_at", "2015-07-06 21:22:27.192993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$mjdIHbmrY5E1r2G2PBQTF.8gbVgDQISAQKAWhi6HEV9JpUTEgTYBq"], ["created_at", "2015-07-06 21:22:27.202965"], ["updated_at", "2015-07-06 21:22:27.202965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$CP.HWQejWY8mR7XJNRrWOe6IMHFtpe.DFxIRtscK9V/YtrPZ4eHaa"], ["created_at", "2015-07-06 21:22:27.211380"], ["updated_at", "2015-07-06 21:22:27.211380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.215439"], ["user_id", "0e064cb2-634c-48f4-9926-4c5e6c20472a"], ["created_at", "2015-07-06 21:22:27.216278"], ["updated_at", "2015-07-06 21:22:27.216278"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.220542"], ["updated_at", "2015-07-06 21:22:27.220542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e064cb2-634c-48f4-9926-4c5e6c20472a' AND "clubhouse_memberships"."organization_id" = '9a30ba9c-d90f-4227-a31e-053ec58956fe') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e064cb2-634c-48f4-9926-4c5e6c20472a"], ["organization_id", "9a30ba9c-d90f-4227-a31e-053ec58956fe"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.223529"], ["updated_at", "2015-07-06 21:22:27.223529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3aec074-a4bc-4076-a3b7-90ea1d6e5d25' AND "clubhouse_memberships"."organization_id" = '9a30ba9c-d90f-4227-a31e-053ec58956fe') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e3aec074-a4bc-4076-a3b7-90ea1d6e5d25"], ["organization_id", "9a30ba9c-d90f-4227-a31e-053ec58956fe"], ["created_at", "2015-07-06 21:22:27.226523"], ["updated_at", "2015-07-06 21:22:27.226523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$lvuCnhronbsT.p9EphQYr.EIkUjjPlvt0GpvyVugtBuCp7OtA3oV6"], ["created_at", "2015-07-06 21:22:27.231831"], ["updated_at", "2015-07-06 21:22:27.231831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.234002"], ["user_id", "3eb80545-5ccf-40f5-936f-c54313313152"], ["created_at", "2015-07-06 21:22:27.235102"], ["updated_at", "2015-07-06 21:22:27.235102"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '9a30ba9c-d90f-4227-a31e-053ec58956fe') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "9a30ba9c-d90f-4227-a31e-053ec58956fe"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.255314"], ["updated_at", "2015-07-06 21:22:27.255314"], ["token", "IxJEiW85ZDxKkK3C6oPZ1E2ddnJUCZ-qF8KVPjlgywU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$kRkQsOTyiK/JlsRLWkFsLODIsX8m.18sFUyhkXXMcPGiUcaqGhHHe"], ["created_at", "2015-07-06 21:22:27.265489"], ["updated_at", "2015-07-06 21:22:27.265489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$p.fDwOwWMhnNFuRhM0Piau/2AvRmvFacf1k/fLblQ.unHgaBmTMKS"], ["created_at", "2015-07-06 21:22:27.271095"], ["updated_at", "2015-07-06 21:22:27.271095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.273246"], ["user_id", "89861862-9304-42e5-b3e2-e70dd72e8530"], ["created_at", "2015-07-06 21:22:27.273956"], ["updated_at", "2015-07-06 21:22:27.273956"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.278304"], ["updated_at", "2015-07-06 21:22:27.278304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '89861862-9304-42e5-b3e2-e70dd72e8530' AND "clubhouse_memberships"."organization_id" = 'eaf11eee-4fa5-4aca-b917-5786b58b573c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "89861862-9304-42e5-b3e2-e70dd72e8530"], ["organization_id", "eaf11eee-4fa5-4aca-b917-5786b58b573c"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.281849"], ["updated_at", "2015-07-06 21:22:27.281849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f213208-d692-423a-976e-d54924bfd135' AND "clubhouse_memberships"."organization_id" = 'eaf11eee-4fa5-4aca-b917-5786b58b573c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f213208-d692-423a-976e-d54924bfd135"], ["organization_id", "eaf11eee-4fa5-4aca-b917-5786b58b573c"], ["created_at", "2015-07-06 21:22:27.284785"], ["updated_at", "2015-07-06 21:22:27.284785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$fUb3zfufaVD36Zu/Gp33ju1REoWkvCqw6UjQXYHnQVNLZVlq3WuRO"], ["created_at", "2015-07-06 21:22:27.290433"], ["updated_at", "2015-07-06 21:22:27.290433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.293013"], ["user_id", "4d68dbdc-6490-4950-9eef-95ea760980fb"], ["created_at", "2015-07-06 21:22:27.294102"], ["updated_at", "2015-07-06 21:22:27.294102"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'eaf11eee-4fa5-4aca-b917-5786b58b573c') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "eaf11eee-4fa5-4aca-b917-5786b58b573c"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.300517"], ["updated_at", "2015-07-06 21:22:27.300517"], ["token", "BN7hL_4SFYPuTEAH0p-D4fEuexQUd9pB0x94y6296bw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/eaf11eee-4fa5-4aca-b917-5786b58b573c/memberships" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"eaf11eee-4fa5-4aca-b917-5786b58b573c", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:27.307413') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0a403b8e-b5a7-4833-a9b5-cce9ac6ca3b2"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:27.310335"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:27.313064"], ["id", "0a403b8e-b5a7-4833-a9b5-cce9ac6ca3b2"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "eaf11eee-4fa5-4aca-b917-5786b58b573c"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d68dbdc-6490-4950-9eef-95ea760980fb"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 19ms (ActiveRecord: 2.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$tlx.7SqKWHu1DhVdIA31uehNj3f8bnLeKY93aeU9MBOqO5i3IK9Hu"], ["created_at", "2015-07-06 21:22:27.333702"], ["updated_at", "2015-07-06 21:22:27.333702"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$SAdGMXntFHXUO30J43dryuTDZMCwt/rm5yv33CQWEljr0YZK9PyYu"], ["created_at", "2015-07-06 21:22:27.341902"], ["updated_at", "2015-07-06 21:22:27.341902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.343879"], ["user_id", "fa6f0ffa-9832-4505-8c7b-fc19a384e42c"], ["created_at", "2015-07-06 21:22:27.344611"], ["updated_at", "2015-07-06 21:22:27.344611"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.349444"], ["updated_at", "2015-07-06 21:22:27.349444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fa6f0ffa-9832-4505-8c7b-fc19a384e42c' AND "clubhouse_memberships"."organization_id" = 'febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fa6f0ffa-9832-4505-8c7b-fc19a384e42c"], ["organization_id", "febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.352985"], ["updated_at", "2015-07-06 21:22:27.352985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '72440418-778a-430f-901e-d22055d2ac28' AND "clubhouse_memberships"."organization_id" = 'febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "72440418-778a-430f-901e-d22055d2ac28"], ["organization_id", "febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90"], ["created_at", "2015-07-06 21:22:27.356365"], ["updated_at", "2015-07-06 21:22:27.356365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$L.oKyMOqdXzRZxHldrRZl.ZPomZ3hYyKCwqoVsqOX4CTaJbs8cZeW"], ["created_at", "2015-07-06 21:22:27.361946"], ["updated_at", "2015-07-06 21:22:27.361946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.364734"], ["user_id", "b7e763cf-6bb5-4cf1-a99e-5054a9fab3f6"], ["created_at", "2015-07-06 21:22:27.365933"], ["updated_at", "2015-07-06 21:22:27.365933"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.370599"], ["updated_at", "2015-07-06 21:22:27.370599"], ["token", "RQwtl_9H0gvc2Ct4Sd3tQClY6x_hrZmDoIxEa1bBAgI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90/memberships" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"RQwtl_9H0gvc2Ct4Sd3tQClY6x_hrZmDoIxEa1bBAgI", "organization_id"=>"febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90", "membership"=>{}} Pollett::Context Load (1.0ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:27.374527') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "72937c4a-c355-4eba-8030-9f6261992fa2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:27.378265"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:27.379662"], ["id", "72937c4a-c355-4eba-8030-9f6261992fa2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b7e763cf-6bb5-4cf1-a99e-5054a9fab3f6"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "RQwtl_9H0gvc2Ct4Sd3tQClY6x_hrZmDoIxEa1bBAgI"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b7e763cf-6bb5-4cf1-a99e-5054a9fab3f6' AND "clubhouse_memberships"."organization_id" = 'febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "febb1cce-1a2a-4cfc-8ca8-1b0d9443cd90"], ["member_id", "b7e763cf-6bb5-4cf1-a99e-5054a9fab3f6"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.387725"], ["updated_at", "2015-07-06 21:22:27.387725"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "1e98dc74-a2d2-4e3e-99fd-40ee7adad397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.7ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$08O8eur7819Hof3gptbz4.tAisBsDPNpGkpCNz1x5V8kx.uNb8026"], ["created_at", "2015-07-06 21:22:27.398472"], ["updated_at", "2015-07-06 21:22:27.398472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$UTCyazikQYcq2xRbUZ2hMeijZgqVmQV4RvaWkhpppVic5zZXLsb4O"], ["created_at", "2015-07-06 21:22:27.405612"], ["updated_at", "2015-07-06 21:22:27.405612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.407964"], ["user_id", "65893379-d899-48ed-9d88-a03ffa1af70d"], ["created_at", "2015-07-06 21:22:27.408778"], ["updated_at", "2015-07-06 21:22:27.408778"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.413493"], ["updated_at", "2015-07-06 21:22:27.413493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '65893379-d899-48ed-9d88-a03ffa1af70d' AND "clubhouse_memberships"."organization_id" = '2aa97e2b-2bea-4ac3-84d0-e5ed959cbf65') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "65893379-d899-48ed-9d88-a03ffa1af70d"], ["organization_id", "2aa97e2b-2bea-4ac3-84d0-e5ed959cbf65"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.416701"], ["updated_at", "2015-07-06 21:22:27.416701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '669ee9b1-f768-4283-a2dc-0b46cba3d1fc' AND "clubhouse_memberships"."organization_id" = '2aa97e2b-2bea-4ac3-84d0-e5ed959cbf65') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "669ee9b1-f768-4283-a2dc-0b46cba3d1fc"], ["organization_id", "2aa97e2b-2bea-4ac3-84d0-e5ed959cbf65"], ["created_at", "2015-07-06 21:22:27.419594"], ["updated_at", "2015-07-06 21:22:27.419594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$mdgPyG7hKtTtL2lAKbhS1u95bmNz2Ng6G27FdBLPaWLAv88fWknNe"], ["created_at", "2015-07-06 21:22:27.425185"], ["updated_at", "2015-07-06 21:22:27.425185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.427052"], ["user_id", "6885fc1e-4ca1-416e-9fce-00ea29ad6d6b"], ["created_at", "2015-07-06 21:22:27.427894"], ["updated_at", "2015-07-06 21:22:27.427894"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '2aa97e2b-2bea-4ac3-84d0-e5ed959cbf65') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "2aa97e2b-2bea-4ac3-84d0-e5ed959cbf65"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.433943"], ["updated_at", "2015-07-06 21:22:27.433943"], ["token", "Wm2YkNLeRyGD2ZGpjmgAaEEXwn7SlIzF94du2qRVLug"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$1lgz1wFJ1.sMjSchRz2qMe1ZvO3wnxCqi/W7RBrV6ZiaXv409cpRu"], ["created_at", "2015-07-06 21:22:27.449031"], ["updated_at", "2015-07-06 21:22:27.449031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$v38pCqfb8iVNSdxwFbCtbu1C3ufxrfEjE3qIfEz91AqRrGf85B586"], ["created_at", "2015-07-06 21:22:27.455912"], ["updated_at", "2015-07-06 21:22:27.455912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.458771"], ["user_id", "ce352b0c-1091-42d3-93d0-ac1ccf248b1b"], ["created_at", "2015-07-06 21:22:27.459491"], ["updated_at", "2015-07-06 21:22:27.459491"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.464764"], ["updated_at", "2015-07-06 21:22:27.464764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ce352b0c-1091-42d3-93d0-ac1ccf248b1b' AND "clubhouse_memberships"."organization_id" = '1eabe61d-3ae6-49cb-82ee-f8d15b09a91a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ce352b0c-1091-42d3-93d0-ac1ccf248b1b"], ["organization_id", "1eabe61d-3ae6-49cb-82ee-f8d15b09a91a"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.468970"], ["updated_at", "2015-07-06 21:22:27.468970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fa774c7-e69e-4394-87ee-fb5e238388c1' AND "clubhouse_memberships"."organization_id" = '1eabe61d-3ae6-49cb-82ee-f8d15b09a91a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8fa774c7-e69e-4394-87ee-fb5e238388c1"], ["organization_id", "1eabe61d-3ae6-49cb-82ee-f8d15b09a91a"], ["created_at", "2015-07-06 21:22:27.472483"], ["updated_at", "2015-07-06 21:22:27.472483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$Lz7ALGLt333eNxx3bBImo.QuWja.suQDIeKU1qBNn.2f3nJjj3TF."], ["created_at", "2015-07-06 21:22:27.478650"], ["updated_at", "2015-07-06 21:22:27.478650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.480811"], ["user_id", "58a81b2c-1e36-472e-857d-82645c0a4ef8"], ["created_at", "2015-07-06 21:22:27.481849"], ["updated_at", "2015-07-06 21:22:27.481849"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '1eabe61d-3ae6-49cb-82ee-f8d15b09a91a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "1eabe61d-3ae6-49cb-82ee-f8d15b09a91a"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.487559"], ["updated_at", "2015-07-06 21:22:27.487559"], ["token", "H8GOkrDXXTvSNgAYWxVAguqdHD6SCHNr_58hr_RDXAo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:27.491122') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "aa4091ea-08dd-4643-bdf1-3b001ad63dd1"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:27.493742"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:27.496503"], ["id", "aa4091ea-08dd-4643-bdf1-3b001ad63dd1"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "58a81b2c-1e36-472e-857d-82645c0a4ef8"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 13ms (ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$6.79G46BV8YZ7iS8Q2YuxO6WA28nWLqMs1vjU4cDWMskeXnrKabnm"], ["created_at", "2015-07-06 21:22:27.510734"], ["updated_at", "2015-07-06 21:22:27.510734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$PsBMDZ9RDbmHw7xzTeP/Eud7QgFBJO49idwtlyeFIGp2qnyzFoeRW"], ["created_at", "2015-07-06 21:22:27.516225"], ["updated_at", "2015-07-06 21:22:27.516225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.517994"], ["user_id", "8de34895-9dcb-4a35-b6a1-07ed425ce70b"], ["created_at", "2015-07-06 21:22:27.519018"], ["updated_at", "2015-07-06 21:22:27.519018"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.523799"], ["updated_at", "2015-07-06 21:22:27.523799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8de34895-9dcb-4a35-b6a1-07ed425ce70b' AND "clubhouse_memberships"."organization_id" = '9a063ecc-07c1-4dd4-a582-dedb5089e677') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8de34895-9dcb-4a35-b6a1-07ed425ce70b"], ["organization_id", "9a063ecc-07c1-4dd4-a582-dedb5089e677"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.527691"], ["updated_at", "2015-07-06 21:22:27.527691"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f5ffa1d-4250-4ab6-a7de-d03186c848b0' AND "clubhouse_memberships"."organization_id" = '9a063ecc-07c1-4dd4-a582-dedb5089e677') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3f5ffa1d-4250-4ab6-a7de-d03186c848b0"], ["organization_id", "9a063ecc-07c1-4dd4-a582-dedb5089e677"], ["created_at", "2015-07-06 21:22:27.532043"], ["updated_at", "2015-07-06 21:22:27.532043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$g02TX8bU8Pl3MBFUymH/BeNGn.rxjdr8tU7Xa/.7KYc.Kt4XyQ13."], ["created_at", "2015-07-06 21:22:27.537952"], ["updated_at", "2015-07-06 21:22:27.537952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.540762"], ["user_id", "f9222435-1014-4f95-8e72-adfc846ff700"], ["created_at", "2015-07-06 21:22:27.541797"], ["updated_at", "2015-07-06 21:22:27.541797"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '9a063ecc-07c1-4dd4-a582-dedb5089e677') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "9a063ecc-07c1-4dd4-a582-dedb5089e677"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.547367"], ["updated_at", "2015-07-06 21:22:27.547367"], ["token", "x23R44AG6i2JvsgFrneQDqNc54IQD2HkXYFRgdqgzkg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"x23R44AG6i2JvsgFrneQDqNc54IQD2HkXYFRgdqgzkg", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:27.550859') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "48478fc9-141d-41aa-931a-057485763cc9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:27.552159"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:27.552944"], ["id", "48478fc9-141d-41aa-931a-057485763cc9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f9222435-1014-4f95-8e72-adfc846ff700"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "x23R44AG6i2JvsgFrneQDqNc54IQD2HkXYFRgdqgzkg"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9a063ecc-07c1-4dd4-a582-dedb5089e677"]] Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f9222435-1014-4f95-8e72-adfc846ff700' AND "clubhouse_memberships"."organization_id" = '9a063ecc-07c1-4dd4-a582-dedb5089e677') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "9a063ecc-07c1-4dd4-a582-dedb5089e677"], ["member_id", "f9222435-1014-4f95-8e72-adfc846ff700"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.562967"], ["updated_at", "2015-07-06 21:22:27.562967"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "b9911a90-6cbb-4b51-863f-0bb60f2f3016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 16ms (Views: 0.9ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$KgxeZCOVRu2qhbeamdyBAee81zgUrVt4zvAr0Fp6aVF5URq4jlh6a"], ["created_at", "2015-07-06 21:22:27.574025"], ["updated_at", "2015-07-06 21:22:27.574025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$aJVssgTu0U8JcABslhaq/OC/CpSNoIsU8KdGHweuHfRxgiJ.q5Pv."], ["created_at", "2015-07-06 21:22:27.579598"], ["updated_at", "2015-07-06 21:22:27.579598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.581502"], ["user_id", "655e49cb-8ba3-40a3-b061-0628705b254e"], ["created_at", "2015-07-06 21:22:27.582181"], ["updated_at", "2015-07-06 21:22:27.582181"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.586383"], ["updated_at", "2015-07-06 21:22:27.586383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '655e49cb-8ba3-40a3-b061-0628705b254e' AND "clubhouse_memberships"."organization_id" = '03ee75b9-f982-4a66-98b1-3ee5dc15500b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "655e49cb-8ba3-40a3-b061-0628705b254e"], ["organization_id", "03ee75b9-f982-4a66-98b1-3ee5dc15500b"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.589473"], ["updated_at", "2015-07-06 21:22:27.589473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f374500b-d406-4b3a-8f3e-48dd6df02242' AND "clubhouse_memberships"."organization_id" = '03ee75b9-f982-4a66-98b1-3ee5dc15500b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f374500b-d406-4b3a-8f3e-48dd6df02242"], ["organization_id", "03ee75b9-f982-4a66-98b1-3ee5dc15500b"], ["created_at", "2015-07-06 21:22:27.592726"], ["updated_at", "2015-07-06 21:22:27.592726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$HJBdCogo4V02xZupkSwwwevm7TimwlntSpGPI19BwYLVskAXinTAa"], ["created_at", "2015-07-06 21:22:27.602888"], ["updated_at", "2015-07-06 21:22:27.602888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$6DvHGw19cQ.UzSs54ZZ.TeOkhRafo6hxJOAXMt5epvrTC6NqCCDx."], ["created_at", "2015-07-06 21:22:27.611513"], ["updated_at", "2015-07-06 21:22:27.611513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.614654"], ["user_id", "b7c6805d-119f-4d45-88c7-a6e489f03093"], ["created_at", "2015-07-06 21:22:27.615495"], ["updated_at", "2015-07-06 21:22:27.615495"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.620753"], ["updated_at", "2015-07-06 21:22:27.620753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b7c6805d-119f-4d45-88c7-a6e489f03093' AND "clubhouse_memberships"."organization_id" = 'd0e608d1-a814-487a-9d78-714d3f19d298') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b7c6805d-119f-4d45-88c7-a6e489f03093"], ["organization_id", "d0e608d1-a814-487a-9d78-714d3f19d298"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.624490"], ["updated_at", "2015-07-06 21:22:27.624490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '507484ae-72af-40b0-94b0-60d568f6e97f' AND "clubhouse_memberships"."organization_id" = 'd0e608d1-a814-487a-9d78-714d3f19d298') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "507484ae-72af-40b0-94b0-60d568f6e97f"], ["organization_id", "d0e608d1-a814-487a-9d78-714d3f19d298"], ["created_at", "2015-07-06 21:22:27.627415"], ["updated_at", "2015-07-06 21:22:27.627415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/01088864-0bae-4635-8509-8f2f1e8d26f4" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"01088864-0bae-4635-8509-8f2f1e8d26f4", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:27.630573') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5867a7d0-89fc-439a-bbe2-e24ca4bf70b0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:27.632050"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:27.632916"], ["id", "5867a7d0-89fc-439a-bbe2-e24ca4bf70b0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "01088864-0bae-4635-8509-8f2f1e8d26f4"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b7c6805d-119f-4d45-88c7-a6e489f03093"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d0e608d1-a814-487a-9d78-714d3f19d298"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b7c6805d-119f-4d45-88c7-a6e489f03093' LIMIT 1 [["organization_id", "d0e608d1-a814-487a-9d78-714d3f19d298"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "507484ae-72af-40b0-94b0-60d568f6e97f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "01088864-0bae-4635-8509-8f2f1e8d26f4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$UxRnLYy6FtUwkNc0puY/M./xPU8iM2LR3EjUUU5g6.T72jhJ5SaHq"], ["created_at", "2015-07-06 21:22:27.647438"], ["updated_at", "2015-07-06 21:22:27.647438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$pwG23v73RbAFsLRWljPyDeFKkfwofZ.4yOQJQimZEttr.y1jUYKsG"], ["created_at", "2015-07-06 21:22:27.653042"], ["updated_at", "2015-07-06 21:22:27.653042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.655174"], ["user_id", "79c2fb70-4bc7-46ce-a8db-d4c4048fcf72"], ["created_at", "2015-07-06 21:22:27.656027"], ["updated_at", "2015-07-06 21:22:27.656027"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.660175"], ["updated_at", "2015-07-06 21:22:27.660175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79c2fb70-4bc7-46ce-a8db-d4c4048fcf72' AND "clubhouse_memberships"."organization_id" = 'fcc53a48-25d9-4b7d-b801-c88fa4d421a9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79c2fb70-4bc7-46ce-a8db-d4c4048fcf72"], ["organization_id", "fcc53a48-25d9-4b7d-b801-c88fa4d421a9"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.663461"], ["updated_at", "2015-07-06 21:22:27.663461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ade0e033-788b-4049-a84b-bf35d9c1e0d4' AND "clubhouse_memberships"."organization_id" = 'fcc53a48-25d9-4b7d-b801-c88fa4d421a9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ade0e033-788b-4049-a84b-bf35d9c1e0d4"], ["organization_id", "fcc53a48-25d9-4b7d-b801-c88fa4d421a9"], ["created_at", "2015-07-06 21:22:27.666445"], ["updated_at", "2015-07-06 21:22:27.666445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$ZyKbznbsXd5RrolF1mkr5.57DvRtAmEDahE.4SmMk/5nypUEoejAO"], ["created_at", "2015-07-06 21:22:27.677304"], ["updated_at", "2015-07-06 21:22:27.677304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$HSy3493e95wXQvI3PtO0L.ThaMFOH/fyjVUUzVyU8il.XgkpeGASe"], ["created_at", "2015-07-06 21:22:27.684237"], ["updated_at", "2015-07-06 21:22:27.684237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:27.685910"], ["user_id", "0638a836-f648-4563-8eae-bac979e424a3"], ["created_at", "2015-07-06 21:22:27.686597"], ["updated_at", "2015-07-06 21:22:27.686597"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:27.690840"], ["updated_at", "2015-07-06 21:22:27.690840"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0638a836-f648-4563-8eae-bac979e424a3' AND "clubhouse_memberships"."organization_id" = 'a46e0709-cb09-4a09-a3eb-01984625c148') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0638a836-f648-4563-8eae-bac979e424a3"], ["organization_id", "a46e0709-cb09-4a09-a3eb-01984625c148"], ["admin", "t"], ["created_at", "2015-07-06 21:22:27.697619"], ["updated_at", "2015-07-06 21:22:27.697619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84013204-082e-469c-9cf2-7892b7114dd7' AND "clubhouse_memberships"."organization_id" = 'a46e0709-cb09-4a09-a3eb-01984625c148') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "84013204-082e-469c-9cf2-7892b7114dd7"], ["organization_id", "a46e0709-cb09-4a09-a3eb-01984625c148"], ["created_at", "2015-07-06 21:22:27.701759"], ["updated_at", "2015-07-06 21:22:27.701759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/90147f70-a699-4d96-aa60-038e75c601e5" for 127.0.0.1 at 2015-07-06 14:22:27 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"90147f70-a699-4d96-aa60-038e75c601e5", "membership"=>{"admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:27.705536') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b6e67d2d-db60-47cd-9735-b7b187e7bc90"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:27.707162"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:27.708034"], ["id", "b6e67d2d-db60-47cd-9735-b7b187e7bc90"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "90147f70-a699-4d96-aa60-038e75c601e5"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0638a836-f648-4563-8eae-bac979e424a3"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a46e0709-cb09-4a09-a3eb-01984625c148"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '0638a836-f648-4563-8eae-bac979e424a3' LIMIT 1 [["organization_id", "a46e0709-cb09-4a09-a3eb-01984625c148"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "84013204-082e-469c-9cf2-7892b7114dd7"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84013204-082e-469c-9cf2-7892b7114dd7' AND "clubhouse_memberships"."id" != '90147f70-a699-4d96-aa60-038e75c601e5' AND "clubhouse_memberships"."organization_id" = 'a46e0709-cb09-4a09-a3eb-01984625c148') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:22:27.718147"], ["id", "90147f70-a699-4d96-aa60-038e75c601e5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$lHl.qCKdDc1HcS3GYWT70u43tkJe9rlS42jGU6Xq66igphRS4TkcK"], ["created_at", "2015-07-06 21:22:40.424897"], ["updated_at", "2015-07-06 21:22:40.424897"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$OIirKRlwSGdSBX78.TKcBOd/2DTIxZ3S.btfYvD2x19AXkB01mYMC"], ["created_at", "2015-07-06 21:22:40.437362"], ["updated_at", "2015-07-06 21:22:40.437362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.463778"], ["user_id", "274942d8-4718-400f-8bb3-227b8b26415a"], ["created_at", "2015-07-06 21:22:40.471690"], ["updated_at", "2015-07-06 21:22:40.471690"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:40.483988"], ["updated_at", "2015-07-06 21:22:40.483988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '274942d8-4718-400f-8bb3-227b8b26415a' AND "clubhouse_memberships"."organization_id" = '214df076-0eb5-4ca7-a8e3-364d24287818') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "274942d8-4718-400f-8bb3-227b8b26415a"], ["organization_id", "214df076-0eb5-4ca7-a8e3-364d24287818"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.495244"], ["updated_at", "2015-07-06 21:22:40.495244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '203b3f11-fd9f-4689-ae54-f742fec3b23b' AND "clubhouse_memberships"."organization_id" = '214df076-0eb5-4ca7-a8e3-364d24287818') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "203b3f11-fd9f-4689-ae54-f742fec3b23b"], ["organization_id", "214df076-0eb5-4ca7-a8e3-364d24287818"], ["created_at", "2015-07-06 21:22:40.498936"], ["updated_at", "2015-07-06 21:22:40.498936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$P2EfSukrQZwlwPBNtxSDueQyZe2wtiGFIj/ChdrUzu68DJEAMIgRO"], ["created_at", "2015-07-06 21:22:40.504352"], ["updated_at", "2015-07-06 21:22:40.504352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.505975"], ["user_id", "b0202f32-fa5a-4ae5-b8f2-74b60478a668"], ["created_at", "2015-07-06 21:22:40.506590"], ["updated_at", "2015-07-06 21:22:40.506590"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '214df076-0eb5-4ca7-a8e3-364d24287818') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "214df076-0eb5-4ca7-a8e3-364d24287818"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.522982"], ["updated_at", "2015-07-06 21:22:40.522982"], ["token", "W2YX-QeVCC1zicTgwfbKCqmglWJMuV6-mDTe9yS6KTU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:22:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$UvOwRtPQPiDD1FC9MsET9.zW2V1mQ8bw4xCp3gmXh2juCs4Ne27Oy"], ["created_at", "2015-07-06 21:22:40.558377"], ["updated_at", "2015-07-06 21:22:40.558377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$5YUHgFH7V5TXFlbHkf/2YuLRKCNvsXEJo1PwiImYutF15wEClYwWG"], ["created_at", "2015-07-06 21:22:40.563365"], ["updated_at", "2015-07-06 21:22:40.563365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.564975"], ["user_id", "e9caf8d2-0496-45fc-96b1-65f6f4fbbfd7"], ["created_at", "2015-07-06 21:22:40.565594"], ["updated_at", "2015-07-06 21:22:40.565594"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:40.569754"], ["updated_at", "2015-07-06 21:22:40.569754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e9caf8d2-0496-45fc-96b1-65f6f4fbbfd7' AND "clubhouse_memberships"."organization_id" = '6d1a9b0c-dd29-4180-9ccf-4d846a177e4d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e9caf8d2-0496-45fc-96b1-65f6f4fbbfd7"], ["organization_id", "6d1a9b0c-dd29-4180-9ccf-4d846a177e4d"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.572913"], ["updated_at", "2015-07-06 21:22:40.572913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '65fd233e-018b-4398-b2cd-c91101b9cd52' AND "clubhouse_memberships"."organization_id" = '6d1a9b0c-dd29-4180-9ccf-4d846a177e4d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "65fd233e-018b-4398-b2cd-c91101b9cd52"], ["organization_id", "6d1a9b0c-dd29-4180-9ccf-4d846a177e4d"], ["created_at", "2015-07-06 21:22:40.576038"], ["updated_at", "2015-07-06 21:22:40.576038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$NFXk8LWpBsHQDK8h5afKSeobuln.5nYy4GfCIgSa1cXnm/FIonZyG"], ["created_at", "2015-07-06 21:22:40.581160"], ["updated_at", "2015-07-06 21:22:40.581160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.583014"], ["user_id", "ba4a6877-943d-411f-837d-4bbded82e9e6"], ["created_at", "2015-07-06 21:22:40.583663"], ["updated_at", "2015-07-06 21:22:40.583663"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '6d1a9b0c-dd29-4180-9ccf-4d846a177e4d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "6d1a9b0c-dd29-4180-9ccf-4d846a177e4d"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.588679"], ["updated_at", "2015-07-06 21:22:40.588679"], ["token", "A8LT3_hthADaLJbgVm0V_vPrf9-eNdlimSOx02B9IK8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:22:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"A8LT3_hthADaLJbgVm0V_vPrf9-eNdlimSOx02B9IK8", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:40.593118') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "34bddf4a-7f21-45bc-a62f-6bb37823746a"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:40.602411"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:40.603446"], ["id", "34bddf4a-7f21-45bc-a62f-6bb37823746a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ba4a6877-943d-411f-837d-4bbded82e9e6"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "A8LT3_hthADaLJbgVm0V_vPrf9-eNdlimSOx02B9IK8"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6d1a9b0c-dd29-4180-9ccf-4d846a177e4d"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ba4a6877-943d-411f-837d-4bbded82e9e6' AND "clubhouse_memberships"."organization_id" = '6d1a9b0c-dd29-4180-9ccf-4d846a177e4d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "6d1a9b0c-dd29-4180-9ccf-4d846a177e4d"], ["member_id", "ba4a6877-943d-411f-837d-4bbded82e9e6"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.629255"], ["updated_at", "2015-07-06 21:22:40.629255"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "25f76227-4222-47f4-aa7f-51678b05ef77"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 61ms (Views: 22.1ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$eiggl8iArblvmSRZTV8d1OtRtVlIWLMl0Gb2c2VeGNwLjIKjXjUMO"], ["created_at", "2015-07-06 21:22:40.663995"], ["updated_at", "2015-07-06 21:22:40.663995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$iMgLLv8KXNz05otjqUPypunkUPI1Y8xAepEJjDRx7qoeqk6eXEFC2"], ["created_at", "2015-07-06 21:22:40.669948"], ["updated_at", "2015-07-06 21:22:40.669948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.671733"], ["user_id", "edd8855f-f19b-4091-809f-25002ebe81ec"], ["created_at", "2015-07-06 21:22:40.672472"], ["updated_at", "2015-07-06 21:22:40.672472"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:40.676983"], ["updated_at", "2015-07-06 21:22:40.676983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'edd8855f-f19b-4091-809f-25002ebe81ec' AND "clubhouse_memberships"."organization_id" = '6a29f2c9-88ff-4d80-a53f-cbdfc3fe772d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "edd8855f-f19b-4091-809f-25002ebe81ec"], ["organization_id", "6a29f2c9-88ff-4d80-a53f-cbdfc3fe772d"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.680289"], ["updated_at", "2015-07-06 21:22:40.680289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '574b7906-1002-4f53-b327-5d757c9de125' AND "clubhouse_memberships"."organization_id" = '6a29f2c9-88ff-4d80-a53f-cbdfc3fe772d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "574b7906-1002-4f53-b327-5d757c9de125"], ["organization_id", "6a29f2c9-88ff-4d80-a53f-cbdfc3fe772d"], ["created_at", "2015-07-06 21:22:40.683582"], ["updated_at", "2015-07-06 21:22:40.683582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$7A7Ib0fU3xXdEwCN.o2diO2UIN0UtsCRq7Ug80Z92Yx2rcCo1jD9K"], ["created_at", "2015-07-06 21:22:40.697903"], ["updated_at", "2015-07-06 21:22:40.697903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.699411"], ["user_id", "69262bed-f482-48b3-9737-72884ce25bd9"], ["created_at", "2015-07-06 21:22:40.699989"], ["updated_at", "2015-07-06 21:22:40.699989"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '6a29f2c9-88ff-4d80-a53f-cbdfc3fe772d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "6a29f2c9-88ff-4d80-a53f-cbdfc3fe772d"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.704579"], ["updated_at", "2015-07-06 21:22:40.704579"], ["token", "EGStg7GbHbePpcKSxRDoT5uPlVXaS-mNFYTzO0OeXcs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:22:40 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:40.710034') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "05d4c614-d627-4597-91ae-5560e09a06c5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:40.712023"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:40.713342"], ["id", "05d4c614-d627-4597-91ae-5560e09a06c5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "69262bed-f482-48b3-9737-72884ce25bd9"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$RYiypAO7AOogBOCcbXo1kO/R2NudT2ZpuFed7EgY.eLmpjArcg3dy"], ["created_at", "2015-07-06 21:22:40.727363"], ["updated_at", "2015-07-06 21:22:40.727363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$C9VMr8J2SsSuC12LqVTTRuwVRJRio7URa0QmB5G5Ioeqi.AnniOHu"], ["created_at", "2015-07-06 21:22:40.732311"], ["updated_at", "2015-07-06 21:22:40.732311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.733787"], ["user_id", "51bcccad-9455-421f-9137-ca062cd1afe0"], ["created_at", "2015-07-06 21:22:40.734504"], ["updated_at", "2015-07-06 21:22:40.734504"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:40.741271"], ["updated_at", "2015-07-06 21:22:40.741271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '51bcccad-9455-421f-9137-ca062cd1afe0' AND "clubhouse_memberships"."organization_id" = '86510493-e31c-45af-8904-7690245692cd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "51bcccad-9455-421f-9137-ca062cd1afe0"], ["organization_id", "86510493-e31c-45af-8904-7690245692cd"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.746083"], ["updated_at", "2015-07-06 21:22:40.746083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '01521b40-fdf8-460e-8845-66f05cd29935' AND "clubhouse_memberships"."organization_id" = '86510493-e31c-45af-8904-7690245692cd') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "01521b40-fdf8-460e-8845-66f05cd29935"], ["organization_id", "86510493-e31c-45af-8904-7690245692cd"], ["created_at", "2015-07-06 21:22:40.749660"], ["updated_at", "2015-07-06 21:22:40.749660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/f9f33794-c817-4d2c-ba78-9f49411708f1" for 127.0.0.1 at 2015-07-06 14:22:40 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"f9f33794-c817-4d2c-ba78-9f49411708f1", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:40.752932') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "af5f30e5-8764-49ad-87f8-e05f3235d51c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:40.754542"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:40.755309"], ["id", "af5f30e5-8764-49ad-87f8-e05f3235d51c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "f9f33794-c817-4d2c-ba78-9f49411708f1"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "51bcccad-9455-421f-9137-ca062cd1afe0"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "86510493-e31c-45af-8904-7690245692cd"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '51bcccad-9455-421f-9137-ca062cd1afe0' LIMIT 1 [["organization_id", "86510493-e31c-45af-8904-7690245692cd"], ["admin", "t"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "01521b40-fdf8-460e-8845-66f05cd29935"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "f9f33794-c817-4d2c-ba78-9f49411708f1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 18ms (ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$riwK5WIzgaGH3NHfxZu9d.CQS2nMPvG4ufTu2XptKkyfX0Imo8I62"], ["created_at", "2015-07-06 21:22:40.781148"], ["updated_at", "2015-07-06 21:22:40.781148"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$A5XZ8hJ0kaakf7U2e5XnP.jHvfW4qIKcDU6XnNQD1fqYN.AIZ25iC"], ["created_at", "2015-07-06 21:22:40.788149"], ["updated_at", "2015-07-06 21:22:40.788149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.790018"], ["user_id", "c8a60c0d-2b51-492a-8567-d34bda9f82bd"], ["created_at", "2015-07-06 21:22:40.790651"], ["updated_at", "2015-07-06 21:22:40.790651"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:40.794650"], ["updated_at", "2015-07-06 21:22:40.794650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8a60c0d-2b51-492a-8567-d34bda9f82bd' AND "clubhouse_memberships"."organization_id" = '109855f0-b89b-40f5-a514-7973d4a78de0') LIMIT 1 SQL (2.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8a60c0d-2b51-492a-8567-d34bda9f82bd"], ["organization_id", "109855f0-b89b-40f5-a514-7973d4a78de0"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.798303"], ["updated_at", "2015-07-06 21:22:40.798303"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a491c96-7b69-474a-8027-2ad3a580558a' AND "clubhouse_memberships"."organization_id" = '109855f0-b89b-40f5-a514-7973d4a78de0') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a491c96-7b69-474a-8027-2ad3a580558a"], ["organization_id", "109855f0-b89b-40f5-a514-7973d4a78de0"], ["created_at", "2015-07-06 21:22:40.806384"], ["updated_at", "2015-07-06 21:22:40.806384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:22:40 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$DQUbIa51gaEUzCfWUMGOsuY0mNZjjMJxI6Y63c7QmnhHLsjzulzDW"], ["created_at", "2015-07-06 21:22:40.820410"], ["updated_at", "2015-07-06 21:22:40.820410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$gGDNjoGiqoepn21gj3kcx.5p80gylAgjX8kBBDbyZBWmWb.r6urJ."], ["created_at", "2015-07-06 21:22:40.829639"], ["updated_at", "2015-07-06 21:22:40.829639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.831764"], ["user_id", "b9aabfd3-4488-4be2-8acf-02148189d5d6"], ["created_at", "2015-07-06 21:22:40.832610"], ["updated_at", "2015-07-06 21:22:40.832610"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:40.837836"], ["updated_at", "2015-07-06 21:22:40.837836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b9aabfd3-4488-4be2-8acf-02148189d5d6' AND "clubhouse_memberships"."organization_id" = 'af6978a6-865d-44b0-967b-619992cc0558') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b9aabfd3-4488-4be2-8acf-02148189d5d6"], ["organization_id", "af6978a6-865d-44b0-967b-619992cc0558"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.841223"], ["updated_at", "2015-07-06 21:22:40.841223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '341ed7b7-e301-4aab-bb18-f9ee035854ce' AND "clubhouse_memberships"."organization_id" = 'af6978a6-865d-44b0-967b-619992cc0558') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "341ed7b7-e301-4aab-bb18-f9ee035854ce"], ["organization_id", "af6978a6-865d-44b0-967b-619992cc0558"], ["created_at", "2015-07-06 21:22:40.844131"], ["updated_at", "2015-07-06 21:22:40.844131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:22:40 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:40.847138') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5109c8ed-2f14-4ca6-8697-f0398b3a2c0a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:40.848518"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:40.849238"], ["id", "5109c8ed-2f14-4ca6-8697-f0398b3a2c0a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9aabfd3-4488-4be2-8acf-02148189d5d6"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'b9aabfd3-4488-4be2-8acf-02148189d5d6' LIMIT 1 [["organization_id", "af6978a6-865d-44b0-967b-619992cc0558"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "af6978a6-865d-44b0-967b-619992cc0558"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b9aabfd3-4488-4be2-8acf-02148189d5d6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "341ed7b7-e301-4aab-bb18-f9ee035854ce"]] Completed 200 OK in 12ms (Views: 3.2ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$l5t3fulMjdMcSq.PkyJ7OOIwG5PXHn9aOrn2KLFRua5qEi6TNkos2"], ["created_at", "2015-07-06 21:22:40.892488"], ["updated_at", "2015-07-06 21:22:40.892488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$Fpg/1uTQ6bMgh6Gqs5G/Ru2nBN6JdSX8yHm8YU25Q6KuDZEt0ufGO"], ["created_at", "2015-07-06 21:22:40.898561"], ["updated_at", "2015-07-06 21:22:40.898561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.900105"], ["user_id", "f312d8de-cb36-4009-8db3-2b783eec4f92"], ["created_at", "2015-07-06 21:22:40.900709"], ["updated_at", "2015-07-06 21:22:40.900709"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:40.904784"], ["updated_at", "2015-07-06 21:22:40.904784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f312d8de-cb36-4009-8db3-2b783eec4f92' AND "clubhouse_memberships"."organization_id" = '0bf75719-bcfa-45c4-8a6f-6809f7fcd091') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f312d8de-cb36-4009-8db3-2b783eec4f92"], ["organization_id", "0bf75719-bcfa-45c4-8a6f-6809f7fcd091"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.907946"], ["updated_at", "2015-07-06 21:22:40.907946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'de562633-819f-43d9-b334-8ad39a415522' AND "clubhouse_memberships"."organization_id" = '0bf75719-bcfa-45c4-8a6f-6809f7fcd091') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "de562633-819f-43d9-b334-8ad39a415522"], ["organization_id", "0bf75719-bcfa-45c4-8a6f-6809f7fcd091"], ["created_at", "2015-07-06 21:22:40.910707"], ["updated_at", "2015-07-06 21:22:40.910707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:22:40 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$dZ/aLVeUSsBy9ABby/B.vubDcfTBMoe/8yGSg3x2hVtX30qR9TA8C"], ["created_at", "2015-07-06 21:22:40.919633"], ["updated_at", "2015-07-06 21:22:40.919633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$cHQ3Hk1Wd947gFD.7emw/ObCGbuK18dZtoIdq.7a1qeGdrnBtuo8C"], ["created_at", "2015-07-06 21:22:40.926075"], ["updated_at", "2015-07-06 21:22:40.926075"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.929714"], ["user_id", "96d2bbf6-60ba-41f0-a0ab-25233dde78ed"], ["created_at", "2015-07-06 21:22:40.930348"], ["updated_at", "2015-07-06 21:22:40.930348"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:40.934643"], ["updated_at", "2015-07-06 21:22:40.934643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '96d2bbf6-60ba-41f0-a0ab-25233dde78ed' AND "clubhouse_memberships"."organization_id" = '83de9c8c-f44c-4f9e-ba23-f9f7b7464daa') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "96d2bbf6-60ba-41f0-a0ab-25233dde78ed"], ["organization_id", "83de9c8c-f44c-4f9e-ba23-f9f7b7464daa"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.937781"], ["updated_at", "2015-07-06 21:22:40.937781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5c89763-7f1d-4b74-8320-76253f39dcec' AND "clubhouse_memberships"."organization_id" = '83de9c8c-f44c-4f9e-ba23-f9f7b7464daa') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f5c89763-7f1d-4b74-8320-76253f39dcec"], ["organization_id", "83de9c8c-f44c-4f9e-ba23-f9f7b7464daa"], ["created_at", "2015-07-06 21:22:40.940814"], ["updated_at", "2015-07-06 21:22:40.940814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/532ed86d-f188-497a-b2a0-5b3913e00983" for 127.0.0.1 at 2015-07-06 14:22:40 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"532ed86d-f188-497a-b2a0-5b3913e00983", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:40.943754') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ccf9e619-a783-460e-8823-bcd027087322"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:40.945727"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:40.947217"], ["id", "ccf9e619-a783-460e-8823-bcd027087322"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "532ed86d-f188-497a-b2a0-5b3913e00983"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "96d2bbf6-60ba-41f0-a0ab-25233dde78ed"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "83de9c8c-f44c-4f9e-ba23-f9f7b7464daa"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '96d2bbf6-60ba-41f0-a0ab-25233dde78ed' LIMIT 1 [["organization_id", "83de9c8c-f44c-4f9e-ba23-f9f7b7464daa"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "96d2bbf6-60ba-41f0-a0ab-25233dde78ed"]] Completed 200 OK in 16ms (Views: 2.6ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$LcJ9.uAV49FcIbVuVKCBV.aZx8.O8QOtJ7TEqN.Wb2drFo5JbwuDK"], ["created_at", "2015-07-06 21:22:40.968314"], ["updated_at", "2015-07-06 21:22:40.968314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$5q7DnSsY.UVh5ugZew169eR48c.PqRLH3YDtt4OYxDN1./jDWBJGG"], ["created_at", "2015-07-06 21:22:40.974476"], ["updated_at", "2015-07-06 21:22:40.974476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:40.976329"], ["user_id", "915edf4c-2a1c-45fe-b24c-d7ffbdf56024"], ["created_at", "2015-07-06 21:22:40.976938"], ["updated_at", "2015-07-06 21:22:40.976938"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:40.981219"], ["updated_at", "2015-07-06 21:22:40.981219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '915edf4c-2a1c-45fe-b24c-d7ffbdf56024' AND "clubhouse_memberships"."organization_id" = '2b08b638-8569-4c76-bee4-14257cfad53c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "915edf4c-2a1c-45fe-b24c-d7ffbdf56024"], ["organization_id", "2b08b638-8569-4c76-bee4-14257cfad53c"], ["admin", "t"], ["created_at", "2015-07-06 21:22:40.985420"], ["updated_at", "2015-07-06 21:22:40.985420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '63e45f97-25cb-4e1e-8b6a-5c46c3ad95d5' AND "clubhouse_memberships"."organization_id" = '2b08b638-8569-4c76-bee4-14257cfad53c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "63e45f97-25cb-4e1e-8b6a-5c46c3ad95d5"], ["organization_id", "2b08b638-8569-4c76-bee4-14257cfad53c"], ["created_at", "2015-07-06 21:22:40.989016"], ["updated_at", "2015-07-06 21:22:40.989016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:22:40 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$vDVkicBNRgdH7GbyOp7K1uUh7eRQj8ZsYDLXRO4Qsc/3dwDnmDH86"], ["created_at", "2015-07-06 21:22:40.998949"], ["updated_at", "2015-07-06 21:22:40.998949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$yoq4iH1hiT0epIGzkI9Ice4z1AHE58EwFBECpRs1vf2J.HIO8ohua"], ["created_at", "2015-07-06 21:22:41.005020"], ["updated_at", "2015-07-06 21:22:41.005020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:41.006514"], ["user_id", "82459976-7673-48cd-90ba-32dcbfffc7fe"], ["created_at", "2015-07-06 21:22:41.007095"], ["updated_at", "2015-07-06 21:22:41.007095"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:41.014274"], ["updated_at", "2015-07-06 21:22:41.014274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82459976-7673-48cd-90ba-32dcbfffc7fe' AND "clubhouse_memberships"."organization_id" = '2658c902-73ef-45ff-91e8-2a2e9b5a2c8e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "82459976-7673-48cd-90ba-32dcbfffc7fe"], ["organization_id", "2658c902-73ef-45ff-91e8-2a2e9b5a2c8e"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.018475"], ["updated_at", "2015-07-06 21:22:41.018475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad15aefa-dd64-4d62-95c2-d57b04aeee5c' AND "clubhouse_memberships"."organization_id" = '2658c902-73ef-45ff-91e8-2a2e9b5a2c8e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ad15aefa-dd64-4d62-95c2-d57b04aeee5c"], ["organization_id", "2658c902-73ef-45ff-91e8-2a2e9b5a2c8e"], ["created_at", "2015-07-06 21:22:41.021859"], ["updated_at", "2015-07-06 21:22:41.021859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$5WDorHF7.g2XpO90w1L.3OosADUOrOesg2lzHU60jpmw92OZQFW7y"], ["created_at", "2015-07-06 21:22:41.027354"], ["updated_at", "2015-07-06 21:22:41.027354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:41.028889"], ["user_id", "0d836082-10b5-46d9-a8c0-37bacd4739f8"], ["created_at", "2015-07-06 21:22:41.029515"], ["updated_at", "2015-07-06 21:22:41.029515"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '2658c902-73ef-45ff-91e8-2a2e9b5a2c8e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "2658c902-73ef-45ff-91e8-2a2e9b5a2c8e"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.037871"], ["updated_at", "2015-07-06 21:22:41.037871"], ["token", "dCxDnEMD2QiekQaykXYSyP6kUYFLL21YzEoMeFz0XeQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:22:41 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$OG6F7XXnp/xdVSpnQBgaFe9GyDxrFVHgtRkWggtgUB/q7XFZvvDsu"], ["created_at", "2015-07-06 21:22:41.049706"], ["updated_at", "2015-07-06 21:22:41.049706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$95l8gYsEhXwOozvyUrJSaO0e200ISzriJB/UWBFERZsvIfNfqH/X."], ["created_at", "2015-07-06 21:22:41.055368"], ["updated_at", "2015-07-06 21:22:41.055368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:41.056961"], ["user_id", "df1b5c4f-a09d-4d07-aa52-a9470867a73e"], ["created_at", "2015-07-06 21:22:41.057574"], ["updated_at", "2015-07-06 21:22:41.057574"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:41.063073"], ["updated_at", "2015-07-06 21:22:41.063073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df1b5c4f-a09d-4d07-aa52-a9470867a73e' AND "clubhouse_memberships"."organization_id" = '15091d42-47b2-4228-8c10-e3a7d4f11370') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df1b5c4f-a09d-4d07-aa52-a9470867a73e"], ["organization_id", "15091d42-47b2-4228-8c10-e3a7d4f11370"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.067333"], ["updated_at", "2015-07-06 21:22:41.067333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a33d2bf5-9c5c-4877-bfa7-d832253065e1' AND "clubhouse_memberships"."organization_id" = '15091d42-47b2-4228-8c10-e3a7d4f11370') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a33d2bf5-9c5c-4877-bfa7-d832253065e1"], ["organization_id", "15091d42-47b2-4228-8c10-e3a7d4f11370"], ["created_at", "2015-07-06 21:22:41.070489"], ["updated_at", "2015-07-06 21:22:41.070489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$LMnDRdlNYtvf7EON6kqHueNpGQcy7CDTTmeDDeTkYjBHUaGs.DsrS"], ["created_at", "2015-07-06 21:22:41.075747"], ["updated_at", "2015-07-06 21:22:41.075747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:41.077928"], ["user_id", "0065c35a-4ba8-41bd-8876-7bb85335a7a2"], ["created_at", "2015-07-06 21:22:41.078691"], ["updated_at", "2015-07-06 21:22:41.078691"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '15091d42-47b2-4228-8c10-e3a7d4f11370') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "15091d42-47b2-4228-8c10-e3a7d4f11370"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.083724"], ["updated_at", "2015-07-06 21:22:41.083724"], ["token", "bAwpb8KKDnNUTWgv6ikVw7HuCm8me95JICOwWcVmcV8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/15091d42-47b2-4228-8c10-e3a7d4f11370/memberships" for 127.0.0.1 at 2015-07-06 14:22:41 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"15091d42-47b2-4228-8c10-e3a7d4f11370", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:41.087068') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0af48224-8772-4fa4-8dd0-30e300fb84f6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:41.088354"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:41.089092"], ["id", "0af48224-8772-4fa4-8dd0-30e300fb84f6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "15091d42-47b2-4228-8c10-e3a7d4f11370"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0065c35a-4ba8-41bd-8876-7bb85335a7a2"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms (ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$ZJTW5iWH4Gij90FiRz4og.P0Y7WpeKqJnxzC4Ax2wOYd7XF46NYk."], ["created_at", "2015-07-06 21:22:41.103241"], ["updated_at", "2015-07-06 21:22:41.103241"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$DDfVRW..pbjkiKpxbElryOj2YcXfSBRYE9GtkHmQ/ZD1fjBRwOGL2"], ["created_at", "2015-07-06 21:22:41.110741"], ["updated_at", "2015-07-06 21:22:41.110741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:41.112497"], ["user_id", "9e92cb50-c8b4-42e4-b721-eadb342b65ec"], ["created_at", "2015-07-06 21:22:41.113304"], ["updated_at", "2015-07-06 21:22:41.113304"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:41.118414"], ["updated_at", "2015-07-06 21:22:41.118414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e92cb50-c8b4-42e4-b721-eadb342b65ec' AND "clubhouse_memberships"."organization_id" = '07239306-394e-4919-9ccc-0566014b8231') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e92cb50-c8b4-42e4-b721-eadb342b65ec"], ["organization_id", "07239306-394e-4919-9ccc-0566014b8231"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.122301"], ["updated_at", "2015-07-06 21:22:41.122301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '037600ea-36eb-4b5c-9bae-e5232a365009' AND "clubhouse_memberships"."organization_id" = '07239306-394e-4919-9ccc-0566014b8231') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "037600ea-36eb-4b5c-9bae-e5232a365009"], ["organization_id", "07239306-394e-4919-9ccc-0566014b8231"], ["created_at", "2015-07-06 21:22:41.125345"], ["updated_at", "2015-07-06 21:22:41.125345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$kWV2m3z6.ZXhZ0nVi9Vhae8wE1UuyDW5T9CT/u3/s0VjgccliWTRC"], ["created_at", "2015-07-06 21:22:41.130729"], ["updated_at", "2015-07-06 21:22:41.130729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:41.132373"], ["user_id", "ef0c19f7-4f53-4ee1-9961-290e0c20838a"], ["created_at", "2015-07-06 21:22:41.133186"], ["updated_at", "2015-07-06 21:22:41.133186"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '07239306-394e-4919-9ccc-0566014b8231') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "07239306-394e-4919-9ccc-0566014b8231"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.138951"], ["updated_at", "2015-07-06 21:22:41.138951"], ["token", "nLjEDCQqwqhoY14Z62Jp8O1ungyk3gU9JK7GcoFb-jg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/07239306-394e-4919-9ccc-0566014b8231/memberships" for 127.0.0.1 at 2015-07-06 14:22:41 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"nLjEDCQqwqhoY14Z62Jp8O1ungyk3gU9JK7GcoFb-jg", "organization_id"=>"07239306-394e-4919-9ccc-0566014b8231", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:41.142177') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "124f9eb3-cb31-40e2-a195-d6fb3db43421"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:41.145226"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:41.146476"], ["id", "124f9eb3-cb31-40e2-a195-d6fb3db43421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "07239306-394e-4919-9ccc-0566014b8231"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ef0c19f7-4f53-4ee1-9961-290e0c20838a"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "nLjEDCQqwqhoY14Z62Jp8O1ungyk3gU9JK7GcoFb-jg"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "07239306-394e-4919-9ccc-0566014b8231"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ef0c19f7-4f53-4ee1-9961-290e0c20838a' AND "clubhouse_memberships"."organization_id" = '07239306-394e-4919-9ccc-0566014b8231') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "07239306-394e-4919-9ccc-0566014b8231"], ["member_id", "ef0c19f7-4f53-4ee1-9961-290e0c20838a"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.154456"], ["updated_at", "2015-07-06 21:22:41.154456"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "d6ba7689-1d57-40a7-addf-6ac535877c97"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.7ms | ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$6BCU8rnsTgPYR3I1jQzEdOML1yVBHsoNwjWZyHUm0XpMKlO.og0MG"], ["created_at", "2015-07-06 21:22:41.163760"], ["updated_at", "2015-07-06 21:22:41.163760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$/wxNLvQYG2.xxQ4ytdLEhOy.VVkUDui7ZjqR6YPYDsy9zGWOC3PRi"], ["created_at", "2015-07-06 21:22:41.168872"], ["updated_at", "2015-07-06 21:22:41.168872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:41.170402"], ["user_id", "fe0be871-3dfd-4836-b353-db04023b323e"], ["created_at", "2015-07-06 21:22:41.171055"], ["updated_at", "2015-07-06 21:22:41.171055"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:41.175059"], ["updated_at", "2015-07-06 21:22:41.175059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fe0be871-3dfd-4836-b353-db04023b323e' AND "clubhouse_memberships"."organization_id" = '584fa957-9924-442f-b8fa-f4d38a8e6f84') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fe0be871-3dfd-4836-b353-db04023b323e"], ["organization_id", "584fa957-9924-442f-b8fa-f4d38a8e6f84"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.178140"], ["updated_at", "2015-07-06 21:22:41.178140"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '82c4cd14-fa6b-4a83-b9de-34bef2cdfa10' AND "clubhouse_memberships"."organization_id" = '584fa957-9924-442f-b8fa-f4d38a8e6f84') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "82c4cd14-fa6b-4a83-b9de-34bef2cdfa10"], ["organization_id", "584fa957-9924-442f-b8fa-f4d38a8e6f84"], ["created_at", "2015-07-06 21:22:41.181663"], ["updated_at", "2015-07-06 21:22:41.181663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/584fa957-9924-442f-b8fa-f4d38a8e6f84/memberships" for 127.0.0.1 at 2015-07-06 14:22:41 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"584fa957-9924-442f-b8fa-f4d38a8e6f84", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:41.184613') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "35d3037e-be96-4be5-8558-078193f0f44b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:41.185966"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:41.186707"], ["id", "35d3037e-be96-4be5-8558-078193f0f44b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "584fa957-9924-442f-b8fa-f4d38a8e6f84"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fe0be871-3dfd-4836-b353-db04023b323e"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'fe0be871-3dfd-4836-b353-db04023b323e' LIMIT 1 [["organization_id", "584fa957-9924-442f-b8fa-f4d38a8e6f84"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "584fa957-9924-442f-b8fa-f4d38a8e6f84"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fe0be871-3dfd-4836-b353-db04023b323e"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "82c4cd14-fa6b-4a83-b9de-34bef2cdfa10"]] Completed 200 OK in 11ms (Views: 3.2ms | ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$RUN5wgMqffCbr/EAVz3IP.O3cx.kfvxdU7TCMWdF07OTT4lG5WhM2"], ["created_at", "2015-07-06 21:22:41.202699"], ["updated_at", "2015-07-06 21:22:41.202699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$HS2ND5loiz3YWbnya1PR4.L4Nw/ADS/CShD3vkMSp5dHimUMj1r8S"], ["created_at", "2015-07-06 21:22:41.208178"], ["updated_at", "2015-07-06 21:22:41.208178"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:41.212237"], ["user_id", "5c57b760-f404-4c82-897c-8ee208bee951"], ["created_at", "2015-07-06 21:22:41.213587"], ["updated_at", "2015-07-06 21:22:41.213587"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:41.218727"], ["updated_at", "2015-07-06 21:22:41.218727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5c57b760-f404-4c82-897c-8ee208bee951' AND "clubhouse_memberships"."organization_id" = '8f257241-6051-4d65-8538-62194eeb4726') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5c57b760-f404-4c82-897c-8ee208bee951"], ["organization_id", "8f257241-6051-4d65-8538-62194eeb4726"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.221719"], ["updated_at", "2015-07-06 21:22:41.221719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05ace244-5248-4f2a-b834-bf47a7010ead' AND "clubhouse_memberships"."organization_id" = '8f257241-6051-4d65-8538-62194eeb4726') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "05ace244-5248-4f2a-b834-bf47a7010ead"], ["organization_id", "8f257241-6051-4d65-8538-62194eeb4726"], ["created_at", "2015-07-06 21:22:41.224450"], ["updated_at", "2015-07-06 21:22:41.224450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:22:41 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$YbfXPpMRd59S4WAm9nFIXuD5sDYDtiK1CCqE9Jcy0SizhECqa.O5e"], ["created_at", "2015-07-06 21:22:41.234143"], ["updated_at", "2015-07-06 21:22:41.234143"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$TaT2f0DcZoVJLfPrrIaCOupYUxguC/qjbjuicOeqcT2TPH0pZPcZO"], ["created_at", "2015-07-06 21:22:41.240456"], ["updated_at", "2015-07-06 21:22:41.240456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:41.242081"], ["user_id", "4af65e5d-62b9-4c3d-9bf7-fca22071a318"], ["created_at", "2015-07-06 21:22:41.242714"], ["updated_at", "2015-07-06 21:22:41.242714"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:41.247403"], ["updated_at", "2015-07-06 21:22:41.247403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4af65e5d-62b9-4c3d-9bf7-fca22071a318' AND "clubhouse_memberships"."organization_id" = '1d9e8360-11e6-4807-9992-60a6e6675341') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4af65e5d-62b9-4c3d-9bf7-fca22071a318"], ["organization_id", "1d9e8360-11e6-4807-9992-60a6e6675341"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.252080"], ["updated_at", "2015-07-06 21:22:41.252080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52a82d26-a259-4748-9b97-747a6a731630' AND "clubhouse_memberships"."organization_id" = '1d9e8360-11e6-4807-9992-60a6e6675341') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "52a82d26-a259-4748-9b97-747a6a731630"], ["organization_id", "1d9e8360-11e6-4807-9992-60a6e6675341"], ["created_at", "2015-07-06 21:22:41.256005"], ["updated_at", "2015-07-06 21:22:41.256005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/363e7f78-3b0f-47e0-a58d-94ba87e1a14c" for 127.0.0.1 at 2015-07-06 14:22:41 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"363e7f78-3b0f-47e0-a58d-94ba87e1a14c", "membership"=>{"admin"=>true}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:41.259541') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "89c7b320-4434-4029-9ff7-f5b3a36ecf15"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:41.262702"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:41.263843"], ["id", "89c7b320-4434-4029-9ff7-f5b3a36ecf15"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "363e7f78-3b0f-47e0-a58d-94ba87e1a14c"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4af65e5d-62b9-4c3d-9bf7-fca22071a318"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1d9e8360-11e6-4807-9992-60a6e6675341"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '4af65e5d-62b9-4c3d-9bf7-fca22071a318' LIMIT 1 [["organization_id", "1d9e8360-11e6-4807-9992-60a6e6675341"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "52a82d26-a259-4748-9b97-747a6a731630"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '52a82d26-a259-4748-9b97-747a6a731630' AND "clubhouse_memberships"."id" != '363e7f78-3b0f-47e0-a58d-94ba87e1a14c' AND "clubhouse_memberships"."organization_id" = '1d9e8360-11e6-4807-9992-60a6e6675341') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:22:41.271714"], ["id", "363e7f78-3b0f-47e0-a58d-94ba87e1a14c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 2.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$U6L5xgVVnU4rSdJnfJ2tsuKMP49lx2snWX7UP5PJhr9FqOmF3XknO"], ["created_at", "2015-07-06 21:22:41.280714"], ["updated_at", "2015-07-06 21:22:41.280714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$ivbt63Y812/4mGZ3.wW.E.qkQNW4ElRtgmSmmA1K6d4xPtyITdXzi"], ["created_at", "2015-07-06 21:22:41.285824"], ["updated_at", "2015-07-06 21:22:41.285824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:41.287461"], ["user_id", "fce734cf-4b4c-4af5-990e-41797ba0e309"], ["created_at", "2015-07-06 21:22:41.288088"], ["updated_at", "2015-07-06 21:22:41.288088"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:41.292540"], ["updated_at", "2015-07-06 21:22:41.292540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fce734cf-4b4c-4af5-990e-41797ba0e309' AND "clubhouse_memberships"."organization_id" = '871e66c9-a1f9-4600-a403-98822c939bca') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fce734cf-4b4c-4af5-990e-41797ba0e309"], ["organization_id", "871e66c9-a1f9-4600-a403-98822c939bca"], ["admin", "t"], ["created_at", "2015-07-06 21:22:41.295603"], ["updated_at", "2015-07-06 21:22:41.295603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e44ff395-ba9b-4c10-8185-0df93ab98ea4' AND "clubhouse_memberships"."organization_id" = '871e66c9-a1f9-4600-a403-98822c939bca') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e44ff395-ba9b-4c10-8185-0df93ab98ea4"], ["organization_id", "871e66c9-a1f9-4600-a403-98822c939bca"], ["created_at", "2015-07-06 21:22:41.298748"], ["updated_at", "2015-07-06 21:22:41.298748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:22:41 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$u/i3pCuMC6Maj1RQWn0tVu7VOtZt3WuhF7i0gpZKeROdcELYzQ8uq"], ["created_at", "2015-07-06 21:22:59.506811"], ["updated_at", "2015-07-06 21:22:59.506811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$.k9nQDKOQwyuO/jqNcneOeboKYnDsNWhL.yeWHrhU3htPfThTNNtK"], ["created_at", "2015-07-06 21:22:59.515483"], ["updated_at", "2015-07-06 21:22:59.515483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:59.531876"], ["user_id", "79269974-7401-4cd7-8c4c-3ff4474a7060"], ["created_at", "2015-07-06 21:22:59.542262"], ["updated_at", "2015-07-06 21:22:59.542262"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:59.558293"], ["updated_at", "2015-07-06 21:22:59.558293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79269974-7401-4cd7-8c4c-3ff4474a7060' AND "clubhouse_memberships"."organization_id" = 'd5aa5c1a-1cb1-4dd5-8e8a-7c8587cdab8d') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "79269974-7401-4cd7-8c4c-3ff4474a7060"], ["organization_id", "d5aa5c1a-1cb1-4dd5-8e8a-7c8587cdab8d"], ["admin", "t"], ["created_at", "2015-07-06 21:22:59.570161"], ["updated_at", "2015-07-06 21:22:59.570161"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f05d2235-afd3-4ee4-91da-714241d45e8e' AND "clubhouse_memberships"."organization_id" = 'd5aa5c1a-1cb1-4dd5-8e8a-7c8587cdab8d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f05d2235-afd3-4ee4-91da-714241d45e8e"], ["organization_id", "d5aa5c1a-1cb1-4dd5-8e8a-7c8587cdab8d"], ["created_at", "2015-07-06 21:22:59.574273"], ["updated_at", "2015-07-06 21:22:59.574273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/75f1f2ec-ab1f-4c1e-8d4d-240ccd442cd4" for 127.0.0.1 at 2015-07-06 14:22:59 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"75f1f2ec-ab1f-4c1e-8d4d-240ccd442cd4", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:59.599159') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "498f4f23-bb1d-452b-9ca0-e101bdcb1a0a"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:59.607945"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:59.609341"], ["id", "498f4f23-bb1d-452b-9ca0-e101bdcb1a0a"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "75f1f2ec-ab1f-4c1e-8d4d-240ccd442cd4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79269974-7401-4cd7-8c4c-3ff4474a7060"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d5aa5c1a-1cb1-4dd5-8e8a-7c8587cdab8d"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '79269974-7401-4cd7-8c4c-3ff4474a7060' LIMIT 1 [["organization_id", "d5aa5c1a-1cb1-4dd5-8e8a-7c8587cdab8d"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f05d2235-afd3-4ee4-91da-714241d45e8e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "75f1f2ec-ab1f-4c1e-8d4d-240ccd442cd4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 36ms (ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$M7nBTBisP4ZpFDjT.h0NpO73hjR2ulYbNM7betGmCJ04O98mtrbk2"], ["created_at", "2015-07-06 21:22:59.644626"], ["updated_at", "2015-07-06 21:22:59.644626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$m7hSWj9s4NzevTRYThfQl.0UXq1RYWNLh8F2umEzwCwrMKmrJB8L2"], ["created_at", "2015-07-06 21:22:59.650063"], ["updated_at", "2015-07-06 21:22:59.650063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:59.651661"], ["user_id", "ec15dd32-4287-4052-b1b0-954ec7f6dc97"], ["created_at", "2015-07-06 21:22:59.652272"], ["updated_at", "2015-07-06 21:22:59.652272"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:59.656923"], ["updated_at", "2015-07-06 21:22:59.656923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ec15dd32-4287-4052-b1b0-954ec7f6dc97' AND "clubhouse_memberships"."organization_id" = 'e96eb96e-39f2-4dea-a554-6f230e28136e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ec15dd32-4287-4052-b1b0-954ec7f6dc97"], ["organization_id", "e96eb96e-39f2-4dea-a554-6f230e28136e"], ["admin", "t"], ["created_at", "2015-07-06 21:22:59.660660"], ["updated_at", "2015-07-06 21:22:59.660660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25560d36-ff80-4ffb-8fe7-282034aecd8d' AND "clubhouse_memberships"."organization_id" = 'e96eb96e-39f2-4dea-a554-6f230e28136e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "25560d36-ff80-4ffb-8fe7-282034aecd8d"], ["organization_id", "e96eb96e-39f2-4dea-a554-6f230e28136e"], ["created_at", "2015-07-06 21:22:59.663588"], ["updated_at", "2015-07-06 21:22:59.663588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:22:59 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$hxAp1Ca.rgxkPteNAR/tIOgmpRk1deTlTD9/T/8x4t4rz.jLiT4Eq"], ["created_at", "2015-07-06 21:22:59.674023"], ["updated_at", "2015-07-06 21:22:59.674023"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$pd.vQyDQQn85b.de6JOWiuLnUbtmn/6n/BHrlWEArJ1op3DeHzoZW"], ["created_at", "2015-07-06 21:22:59.680155"], ["updated_at", "2015-07-06 21:22:59.680155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:59.681763"], ["user_id", "28ae6db6-dc79-4687-9287-eaa147019f48"], ["created_at", "2015-07-06 21:22:59.682384"], ["updated_at", "2015-07-06 21:22:59.682384"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:59.687118"], ["updated_at", "2015-07-06 21:22:59.687118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '28ae6db6-dc79-4687-9287-eaa147019f48' AND "clubhouse_memberships"."organization_id" = 'c94f308e-0b1f-4006-9388-12d8a45922f6') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "28ae6db6-dc79-4687-9287-eaa147019f48"], ["organization_id", "c94f308e-0b1f-4006-9388-12d8a45922f6"], ["admin", "t"], ["created_at", "2015-07-06 21:22:59.693359"], ["updated_at", "2015-07-06 21:22:59.693359"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5888f58a-a8cc-4787-b4c0-db9206c9f0e5' AND "clubhouse_memberships"."organization_id" = 'c94f308e-0b1f-4006-9388-12d8a45922f6') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5888f58a-a8cc-4787-b4c0-db9206c9f0e5"], ["organization_id", "c94f308e-0b1f-4006-9388-12d8a45922f6"], ["created_at", "2015-07-06 21:22:59.697025"], ["updated_at", "2015-07-06 21:22:59.697025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/c94f308e-0b1f-4006-9388-12d8a45922f6/memberships" for 127.0.0.1 at 2015-07-06 14:22:59 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"c94f308e-0b1f-4006-9388-12d8a45922f6", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:59.700699') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1b0a0976-f00e-4e83-bd81-2cac0fc5da78"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:59.702259"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:59.703026"], ["id", "1b0a0976-f00e-4e83-bd81-2cac0fc5da78"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c94f308e-0b1f-4006-9388-12d8a45922f6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "28ae6db6-dc79-4687-9287-eaa147019f48"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '28ae6db6-dc79-4687-9287-eaa147019f48' LIMIT 1 [["organization_id", "c94f308e-0b1f-4006-9388-12d8a45922f6"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "c94f308e-0b1f-4006-9388-12d8a45922f6"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "28ae6db6-dc79-4687-9287-eaa147019f48"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5888f58a-a8cc-4787-b4c0-db9206c9f0e5"]] Completed 200 OK in 34ms (Views: 24.5ms | ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$CuQCmMxnR7lcRxUOoVJMr.4ybnmpbdLEPsXjRooLH/2bN3cZMO74q"], ["created_at", "2015-07-06 21:22:59.787471"], ["updated_at", "2015-07-06 21:22:59.787471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$Hs5KtsVUdOW8RmGYQWjaDOIveH3kY7/pxzwx6FeRfj0.FComE5gDK"], ["created_at", "2015-07-06 21:22:59.793655"], ["updated_at", "2015-07-06 21:22:59.793655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:59.795806"], ["user_id", "c10ec031-fde0-4ec9-b088-a5c2648a4639"], ["created_at", "2015-07-06 21:22:59.796687"], ["updated_at", "2015-07-06 21:22:59.796687"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:59.802692"], ["updated_at", "2015-07-06 21:22:59.802692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c10ec031-fde0-4ec9-b088-a5c2648a4639' AND "clubhouse_memberships"."organization_id" = 'b4228ec4-58aa-431d-aa50-40bde7bd9843') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c10ec031-fde0-4ec9-b088-a5c2648a4639"], ["organization_id", "b4228ec4-58aa-431d-aa50-40bde7bd9843"], ["admin", "t"], ["created_at", "2015-07-06 21:22:59.806581"], ["updated_at", "2015-07-06 21:22:59.806581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '452ccf10-9604-4ac6-a875-a9a6ac9280fb' AND "clubhouse_memberships"."organization_id" = 'b4228ec4-58aa-431d-aa50-40bde7bd9843') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "452ccf10-9604-4ac6-a875-a9a6ac9280fb"], ["organization_id", "b4228ec4-58aa-431d-aa50-40bde7bd9843"], ["created_at", "2015-07-06 21:22:59.809951"], ["updated_at", "2015-07-06 21:22:59.809951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:22:59 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$D5tzyniWgS8S94SrPfyHWOwswG7qCEEk7i6d8b5a9kkfFiruz8dYC"], ["created_at", "2015-07-06 21:22:59.820171"], ["updated_at", "2015-07-06 21:22:59.820171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$YcCGm6scCmf0OSRRTcvaTeyOH1AwrPgiFjjbLR2k/5jvM7L01hENm"], ["created_at", "2015-07-06 21:22:59.827879"], ["updated_at", "2015-07-06 21:22:59.827879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:59.829785"], ["user_id", "8fd0d973-6693-4249-a0ee-b600d8c45666"], ["created_at", "2015-07-06 21:22:59.830559"], ["updated_at", "2015-07-06 21:22:59.830559"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:59.835646"], ["updated_at", "2015-07-06 21:22:59.835646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fd0d973-6693-4249-a0ee-b600d8c45666' AND "clubhouse_memberships"."organization_id" = 'af0c50af-ec14-488f-8518-f63f29a56efc') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fd0d973-6693-4249-a0ee-b600d8c45666"], ["organization_id", "af0c50af-ec14-488f-8518-f63f29a56efc"], ["admin", "t"], ["created_at", "2015-07-06 21:22:59.839026"], ["updated_at", "2015-07-06 21:22:59.839026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2a8221c1-012e-4fae-bf8b-02f56273f671' AND "clubhouse_memberships"."organization_id" = 'af0c50af-ec14-488f-8518-f63f29a56efc') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2a8221c1-012e-4fae-bf8b-02f56273f671"], ["organization_id", "af0c50af-ec14-488f-8518-f63f29a56efc"], ["created_at", "2015-07-06 21:22:59.841945"], ["updated_at", "2015-07-06 21:22:59.841945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:22:59 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$6ow9HO94JrhcXK.PfiUhPe2gJ3uFGedkmClXUEztGB4jvq8UHcwXy"], ["created_at", "2015-07-06 21:22:59.850798"], ["updated_at", "2015-07-06 21:22:59.850798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$Bsj/TV8xNtF9JuVXqWwaouIj/EUXZz8i1QmpEyKpYGJ.hj5Ch1EwS"], ["created_at", "2015-07-06 21:22:59.855783"], ["updated_at", "2015-07-06 21:22:59.855783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:59.857646"], ["user_id", "bc7930eb-344c-4481-8429-07f45f8867f1"], ["created_at", "2015-07-06 21:22:59.858258"], ["updated_at", "2015-07-06 21:22:59.858258"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:59.862794"], ["updated_at", "2015-07-06 21:22:59.862794"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7930eb-344c-4481-8429-07f45f8867f1' AND "clubhouse_memberships"."organization_id" = 'dacdb69d-f09a-4988-9dab-c675d2f1c30f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bc7930eb-344c-4481-8429-07f45f8867f1"], ["organization_id", "dacdb69d-f09a-4988-9dab-c675d2f1c30f"], ["admin", "t"], ["created_at", "2015-07-06 21:22:59.867483"], ["updated_at", "2015-07-06 21:22:59.867483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '66b2b1c8-e7b3-45c1-8eb8-20ea78c813cb' AND "clubhouse_memberships"."organization_id" = 'dacdb69d-f09a-4988-9dab-c675d2f1c30f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "66b2b1c8-e7b3-45c1-8eb8-20ea78c813cb"], ["organization_id", "dacdb69d-f09a-4988-9dab-c675d2f1c30f"], ["created_at", "2015-07-06 21:22:59.871001"], ["updated_at", "2015-07-06 21:22:59.871001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/2306016d-8cf7-48aa-93f9-514d440a4e20" for 127.0.0.1 at 2015-07-06 14:22:59 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"2306016d-8cf7-48aa-93f9-514d440a4e20", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:59.874213') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ac47cf87-431d-4e94-9e22-ac932073d55f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:59.875754"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:59.876565"], ["id", "ac47cf87-431d-4e94-9e22-ac932073d55f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "2306016d-8cf7-48aa-93f9-514d440a4e20"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7930eb-344c-4481-8429-07f45f8867f1"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dacdb69d-f09a-4988-9dab-c675d2f1c30f"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bc7930eb-344c-4481-8429-07f45f8867f1' LIMIT 1 [["organization_id", "dacdb69d-f09a-4988-9dab-c675d2f1c30f"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bc7930eb-344c-4481-8429-07f45f8867f1"]] Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$yruLLxJhbAlF7lY/A02Vbel8NViLISUtZaHkkIfeXHJF6Cr.WMwr6"], ["created_at", "2015-07-06 21:22:59.893775"], ["updated_at", "2015-07-06 21:22:59.893775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$k6e3WvC4bf.Ve1MABzDDj.MblDRQ/lZ.3QTW9JmZWm0TtBrOt96y6"], ["created_at", "2015-07-06 21:22:59.900338"], ["updated_at", "2015-07-06 21:22:59.900338"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:59.902739"], ["user_id", "20b73dda-c2f1-4d15-963d-fa63e98fb7f7"], ["created_at", "2015-07-06 21:22:59.903393"], ["updated_at", "2015-07-06 21:22:59.903393"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:59.907880"], ["updated_at", "2015-07-06 21:22:59.907880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20b73dda-c2f1-4d15-963d-fa63e98fb7f7' AND "clubhouse_memberships"."organization_id" = '5319361f-4943-4866-a800-255fafc7eb6b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20b73dda-c2f1-4d15-963d-fa63e98fb7f7"], ["organization_id", "5319361f-4943-4866-a800-255fafc7eb6b"], ["admin", "t"], ["created_at", "2015-07-06 21:22:59.911000"], ["updated_at", "2015-07-06 21:22:59.911000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ab527e4a-25a5-4ef1-88f2-71f7058a6b72' AND "clubhouse_memberships"."organization_id" = '5319361f-4943-4866-a800-255fafc7eb6b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ab527e4a-25a5-4ef1-88f2-71f7058a6b72"], ["organization_id", "5319361f-4943-4866-a800-255fafc7eb6b"], ["created_at", "2015-07-06 21:22:59.914965"], ["updated_at", "2015-07-06 21:22:59.914965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$6dVx1DXRODGHaEoohQDAsesD7/WsMBi0vDa5srwaxU2YFNY8wBVFS"], ["created_at", "2015-07-06 21:22:59.921880"], ["updated_at", "2015-07-06 21:22:59.921880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:59.924386"], ["user_id", "1eb84239-14cb-4f8d-8820-27b2c644c6b5"], ["created_at", "2015-07-06 21:22:59.925152"], ["updated_at", "2015-07-06 21:22:59.925152"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5319361f-4943-4866-a800-255fafc7eb6b') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "5319361f-4943-4866-a800-255fafc7eb6b"], ["admin", "t"], ["created_at", "2015-07-06 21:22:59.938931"], ["updated_at", "2015-07-06 21:22:59.938931"], ["token", "15psgV3RRwqTjSClN7EZnckK0a6AiRLhfmE2rB5X3vQ"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:22:59 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$lVaXWKIuajYcDupKZvlMDONlTclwfgyistErSrGzV8HxO3j/DCFAC"], ["created_at", "2015-07-06 21:22:59.951312"], ["updated_at", "2015-07-06 21:22:59.951312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$SS09nY5nxdyC24.qwIQJf.8Xjm9uhiC4xP8K9AJCmdv7xzXi7TxPO"], ["created_at", "2015-07-06 21:22:59.956448"], ["updated_at", "2015-07-06 21:22:59.956448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:59.957997"], ["user_id", "fb1263d0-7972-40dd-9499-278be2051ea6"], ["created_at", "2015-07-06 21:22:59.958669"], ["updated_at", "2015-07-06 21:22:59.958669"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:22:59.962703"], ["updated_at", "2015-07-06 21:22:59.962703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fb1263d0-7972-40dd-9499-278be2051ea6' AND "clubhouse_memberships"."organization_id" = '21d13f41-f147-4158-b7d5-a2ab369dc693') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fb1263d0-7972-40dd-9499-278be2051ea6"], ["organization_id", "21d13f41-f147-4158-b7d5-a2ab369dc693"], ["admin", "t"], ["created_at", "2015-07-06 21:22:59.966525"], ["updated_at", "2015-07-06 21:22:59.966525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '06e96759-f315-40f4-a711-eb992e9f1170' AND "clubhouse_memberships"."organization_id" = '21d13f41-f147-4158-b7d5-a2ab369dc693') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "06e96759-f315-40f4-a711-eb992e9f1170"], ["organization_id", "21d13f41-f147-4158-b7d5-a2ab369dc693"], ["created_at", "2015-07-06 21:22:59.969628"], ["updated_at", "2015-07-06 21:22:59.969628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$2iDI3YoNbHdpOAVR4SopLOhEjO8a9pLe7Zab81fNw6Zsz4bBwkXg2"], ["created_at", "2015-07-06 21:22:59.976289"], ["updated_at", "2015-07-06 21:22:59.976289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:22:59.979098"], ["user_id", "0ad3ac51-f9a8-4ac0-b42b-8b8195fbe52e"], ["created_at", "2015-07-06 21:22:59.980135"], ["updated_at", "2015-07-06 21:22:59.980135"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '21d13f41-f147-4158-b7d5-a2ab369dc693') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "21d13f41-f147-4158-b7d5-a2ab369dc693"], ["admin", "t"], ["created_at", "2015-07-06 21:22:59.987410"], ["updated_at", "2015-07-06 21:22:59.987410"], ["token", "fVNDFDpC9X_0pNSX476HbZ_M7xihqa8yJcA-qGg-rdg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:22:59 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"fVNDFDpC9X_0pNSX476HbZ_M7xihqa8yJcA-qGg-rdg", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:22:59.992411') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9689d400-0a90-4bb9-ac85-6b3ab06b5da0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:22:59.994723"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:22:59.996518"], ["id", "9689d400-0a90-4bb9-ac85-6b3ab06b5da0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ad3ac51-f9a8-4ac0-b42b-8b8195fbe52e"]] Unpermitted parameters: organization_id, membership  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "fVNDFDpC9X_0pNSX476HbZ_M7xihqa8yJcA-qGg-rdg"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "21d13f41-f147-4158-b7d5-a2ab369dc693"]] Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ad3ac51-f9a8-4ac0-b42b-8b8195fbe52e' AND "clubhouse_memberships"."organization_id" = '21d13f41-f147-4158-b7d5-a2ab369dc693') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "21d13f41-f147-4158-b7d5-a2ab369dc693"], ["member_id", "0ad3ac51-f9a8-4ac0-b42b-8b8195fbe52e"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.013928"], ["updated_at", "2015-07-06 21:23:00.013928"]] SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "47b7b6b7-e82c-4688-96fc-e1738f1a1ba0"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 30ms (Views: 1.6ms | ActiveRecord: 5.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$HJGMbxA/6C9IhvmRDkeV7.SxQ5oAaH3iPoBZkOZglserNjWpq.Rya"], ["created_at", "2015-07-06 21:23:00.039400"], ["updated_at", "2015-07-06 21:23:00.039400"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$Sdi8edM98aq50u5p6gEyMeh7DoZ.dWn92CHV5/DfEPGHb8rEnQGi."], ["created_at", "2015-07-06 21:23:00.053300"], ["updated_at", "2015-07-06 21:23:00.053300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.056273"], ["user_id", "189f9976-ec7a-4cad-a5db-370a7ea3feeb"], ["created_at", "2015-07-06 21:23:00.057391"], ["updated_at", "2015-07-06 21:23:00.057391"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:00.066545"], ["updated_at", "2015-07-06 21:23:00.066545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '189f9976-ec7a-4cad-a5db-370a7ea3feeb' AND "clubhouse_memberships"."organization_id" = 'c8cfb8d0-2317-4704-9f2d-da04e715c927') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "189f9976-ec7a-4cad-a5db-370a7ea3feeb"], ["organization_id", "c8cfb8d0-2317-4704-9f2d-da04e715c927"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.069694"], ["updated_at", "2015-07-06 21:23:00.069694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f01ead8e-a265-4d65-8fbe-147ea0df5f9d' AND "clubhouse_memberships"."organization_id" = 'c8cfb8d0-2317-4704-9f2d-da04e715c927') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f01ead8e-a265-4d65-8fbe-147ea0df5f9d"], ["organization_id", "c8cfb8d0-2317-4704-9f2d-da04e715c927"], ["created_at", "2015-07-06 21:23:00.073150"], ["updated_at", "2015-07-06 21:23:00.073150"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$KY/XHVo3AEauDP1ILvrpU.QR4VvKS/.XHypUWrsBbJlOHH.WAd5Da"], ["created_at", "2015-07-06 21:23:00.081100"], ["updated_at", "2015-07-06 21:23:00.081100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.082766"], ["user_id", "9f91e31e-0893-46a9-a4b6-7fe4e839e999"], ["created_at", "2015-07-06 21:23:00.083352"], ["updated_at", "2015-07-06 21:23:00.083352"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c8cfb8d0-2317-4704-9f2d-da04e715c927') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c8cfb8d0-2317-4704-9f2d-da04e715c927"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.087713"], ["updated_at", "2015-07-06 21:23:00.087713"], ["token", "xadVgWkl1rE10Sxlf7HcrtzhDpRhRWL8yPolYuc5XWM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:00.092803') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7b646358-b1ee-42d6-bc1b-096d4c6038d2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:00.094561"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:00.095362"], ["id", "7b646358-b1ee-42d6-bc1b-096d4c6038d2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9f91e31e-0893-46a9-a4b6-7fe4e839e999"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$RBBREnVT5o8uPGThpbi/E.tMBFZsJljJMRU6Dhy9x4z9mfF9Ta9gG"], ["created_at", "2015-07-06 21:23:00.110016"], ["updated_at", "2015-07-06 21:23:00.110016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$l3p0PhJ0iENm2DZE28FKNul6qYxwPxRy0P1EEAVDtZD99.Uxco2s2"], ["created_at", "2015-07-06 21:23:00.115937"], ["updated_at", "2015-07-06 21:23:00.115937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.117758"], ["user_id", "14b3996f-251c-495a-b604-993cc333049f"], ["created_at", "2015-07-06 21:23:00.118388"], ["updated_at", "2015-07-06 21:23:00.118388"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:00.122324"], ["updated_at", "2015-07-06 21:23:00.122324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '14b3996f-251c-495a-b604-993cc333049f' AND "clubhouse_memberships"."organization_id" = '225506f7-4989-4989-b644-cb28eac0fca4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "14b3996f-251c-495a-b604-993cc333049f"], ["organization_id", "225506f7-4989-4989-b644-cb28eac0fca4"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.125288"], ["updated_at", "2015-07-06 21:23:00.125288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cc84dcf8-6bf1-4f1c-9ea9-3e03c6c8cdd4' AND "clubhouse_memberships"."organization_id" = '225506f7-4989-4989-b644-cb28eac0fca4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cc84dcf8-6bf1-4f1c-9ea9-3e03c6c8cdd4"], ["organization_id", "225506f7-4989-4989-b644-cb28eac0fca4"], ["created_at", "2015-07-06 21:23:00.128591"], ["updated_at", "2015-07-06 21:23:00.128591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$Zl1tewY8tjPXk0Qob3xEOO0FGXqochB6mhXKmaVaDBj7z5VMPELF2"], ["created_at", "2015-07-06 21:23:00.133658"], ["updated_at", "2015-07-06 21:23:00.133658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.135166"], ["user_id", "f12084e5-756b-41d5-b77d-ae82b6865e5e"], ["created_at", "2015-07-06 21:23:00.135763"], ["updated_at", "2015-07-06 21:23:00.135763"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '225506f7-4989-4989-b644-cb28eac0fca4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "225506f7-4989-4989-b644-cb28eac0fca4"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.142813"], ["updated_at", "2015-07-06 21:23:00.142813"], ["token", "eEzkPgmQExlM2I0qjl8vP_tUe_esarw78kx6F3Rilic"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:23:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$0g8RMoys1kz0L6RPfB58xeA/XhYdlLPb8taZO0QG0MA/7UhIU7aVa"], ["created_at", "2015-07-06 21:23:00.151988"], ["updated_at", "2015-07-06 21:23:00.151988"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$6wY4WziIJSBmku8qm3a3MeGXiVZn.2HKg7TiQ4GBSsZePgJ2WxCNG"], ["created_at", "2015-07-06 21:23:00.161208"], ["updated_at", "2015-07-06 21:23:00.161208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.163024"], ["user_id", "0d8b4e9a-7bab-4115-862d-08a19db1e158"], ["created_at", "2015-07-06 21:23:00.163691"], ["updated_at", "2015-07-06 21:23:00.163691"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:00.167943"], ["updated_at", "2015-07-06 21:23:00.167943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d8b4e9a-7bab-4115-862d-08a19db1e158' AND "clubhouse_memberships"."organization_id" = '903acc82-da09-45f3-8538-36cc81c30f8f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0d8b4e9a-7bab-4115-862d-08a19db1e158"], ["organization_id", "903acc82-da09-45f3-8538-36cc81c30f8f"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.170907"], ["updated_at", "2015-07-06 21:23:00.170907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8b047bb-ee4d-4d37-ae9e-0851e0b5e622' AND "clubhouse_memberships"."organization_id" = '903acc82-da09-45f3-8538-36cc81c30f8f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8b047bb-ee4d-4d37-ae9e-0851e0b5e622"], ["organization_id", "903acc82-da09-45f3-8538-36cc81c30f8f"], ["created_at", "2015-07-06 21:23:00.173731"], ["updated_at", "2015-07-06 21:23:00.173731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$wx.4m6cMhrR57dIPtzhGQuuuPUrghWGWeHGEGBTvwsx/vT9ohyp6S"], ["created_at", "2015-07-06 21:23:00.179176"], ["updated_at", "2015-07-06 21:23:00.179176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.180825"], ["user_id", "67fdab55-92e3-499d-9cdd-f476b67b024d"], ["created_at", "2015-07-06 21:23:00.181436"], ["updated_at", "2015-07-06 21:23:00.181436"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '903acc82-da09-45f3-8538-36cc81c30f8f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "903acc82-da09-45f3-8538-36cc81c30f8f"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.185772"], ["updated_at", "2015-07-06 21:23:00.185772"], ["token", "1t5MQV2fJqp1ytK4dZhpOSSZN5hkOgSxG43z5EU68FU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/903acc82-da09-45f3-8538-36cc81c30f8f/memberships" for 127.0.0.1 at 2015-07-06 14:23:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"903acc82-da09-45f3-8538-36cc81c30f8f", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:00.188901') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4beb78f9-5de3-4391-b2bc-a033d318cb77"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:00.190347"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:00.191296"], ["id", "4beb78f9-5de3-4391-b2bc-a033d318cb77"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "903acc82-da09-45f3-8538-36cc81c30f8f"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "67fdab55-92e3-499d-9cdd-f476b67b024d"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$PyoxqgsjAWb8tvBryLuBSe/9G5lpG2SR4nrTt7h.fd4l/XIv6q8AS"], ["created_at", "2015-07-06 21:23:00.206257"], ["updated_at", "2015-07-06 21:23:00.206257"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$d0OHxVBaAOOCbRXb/457euSyrtCYXhwuAG//WkENtvZq5UbdfihJG"], ["created_at", "2015-07-06 21:23:00.214398"], ["updated_at", "2015-07-06 21:23:00.214398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.216098"], ["user_id", "dfcdf88e-6ee5-4ec4-b32b-ee704aa2652f"], ["created_at", "2015-07-06 21:23:00.216746"], ["updated_at", "2015-07-06 21:23:00.216746"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:00.222469"], ["updated_at", "2015-07-06 21:23:00.222469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dfcdf88e-6ee5-4ec4-b32b-ee704aa2652f' AND "clubhouse_memberships"."organization_id" = '737e5dc3-0af7-4aab-b25f-fcf6596965c8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dfcdf88e-6ee5-4ec4-b32b-ee704aa2652f"], ["organization_id", "737e5dc3-0af7-4aab-b25f-fcf6596965c8"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.226025"], ["updated_at", "2015-07-06 21:23:00.226025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fe1d8465-50f3-4dcd-b106-484ce794270b' AND "clubhouse_memberships"."organization_id" = '737e5dc3-0af7-4aab-b25f-fcf6596965c8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fe1d8465-50f3-4dcd-b106-484ce794270b"], ["organization_id", "737e5dc3-0af7-4aab-b25f-fcf6596965c8"], ["created_at", "2015-07-06 21:23:00.229451"], ["updated_at", "2015-07-06 21:23:00.229451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$eZvsSCe8kWTvQeAZ9AgGue2lm/zCg9s0lfWKDSgeCP5xy3MsKsUE."], ["created_at", "2015-07-06 21:23:00.236728"], ["updated_at", "2015-07-06 21:23:00.236728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.238591"], ["user_id", "9fc301c2-c45f-404a-bb16-7cc2cc055321"], ["created_at", "2015-07-06 21:23:00.239230"], ["updated_at", "2015-07-06 21:23:00.239230"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '737e5dc3-0af7-4aab-b25f-fcf6596965c8') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "737e5dc3-0af7-4aab-b25f-fcf6596965c8"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.244175"], ["updated_at", "2015-07-06 21:23:00.244175"], ["token", "Fu9pNJl3VkN0TzfXE4Vuk1Lnszx6Tyw6N4aENuYkj-4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/737e5dc3-0af7-4aab-b25f-fcf6596965c8/memberships" for 127.0.0.1 at 2015-07-06 14:23:00 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"Fu9pNJl3VkN0TzfXE4Vuk1Lnszx6Tyw6N4aENuYkj-4", "organization_id"=>"737e5dc3-0af7-4aab-b25f-fcf6596965c8", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:00.248180') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ae099e04-ed46-4e81-9131-ab694af931c9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:00.249697"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:00.250767"], ["id", "ae099e04-ed46-4e81-9131-ab694af931c9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "737e5dc3-0af7-4aab-b25f-fcf6596965c8"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9fc301c2-c45f-404a-bb16-7cc2cc055321"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "Fu9pNJl3VkN0TzfXE4Vuk1Lnszx6Tyw6N4aENuYkj-4"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "737e5dc3-0af7-4aab-b25f-fcf6596965c8"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9fc301c2-c45f-404a-bb16-7cc2cc055321' AND "clubhouse_memberships"."organization_id" = '737e5dc3-0af7-4aab-b25f-fcf6596965c8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "737e5dc3-0af7-4aab-b25f-fcf6596965c8"], ["member_id", "9fc301c2-c45f-404a-bb16-7cc2cc055321"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.262398"], ["updated_at", "2015-07-06 21:23:00.262398"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "48a0843a-256a-4923-a203-5b333c9028d6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.7ms | ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$NtnWKYsGZETsL/SW3F8axOOaB2S1eC7BGYyUF1QDw/t2wHts3Uc5e"], ["created_at", "2015-07-06 21:23:00.271984"], ["updated_at", "2015-07-06 21:23:00.271984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$a3YT/sejoeF7BqACgicIo.0WPKWZCt3etrdm83RgIlUlqPsVl3z26"], ["created_at", "2015-07-06 21:23:00.277026"], ["updated_at", "2015-07-06 21:23:00.277026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.278523"], ["user_id", "d6e89a6a-c14e-4407-9caf-2bcc989a7c74"], ["created_at", "2015-07-06 21:23:00.279157"], ["updated_at", "2015-07-06 21:23:00.279157"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:00.283576"], ["updated_at", "2015-07-06 21:23:00.283576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd6e89a6a-c14e-4407-9caf-2bcc989a7c74' AND "clubhouse_memberships"."organization_id" = 'cbab587b-8166-47d3-9290-1a6ead4f3a44') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d6e89a6a-c14e-4407-9caf-2bcc989a7c74"], ["organization_id", "cbab587b-8166-47d3-9290-1a6ead4f3a44"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.286718"], ["updated_at", "2015-07-06 21:23:00.286718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62f6bce4-2bad-43cc-8c88-24f660403bf1' AND "clubhouse_memberships"."organization_id" = 'cbab587b-8166-47d3-9290-1a6ead4f3a44') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "62f6bce4-2bad-43cc-8c88-24f660403bf1"], ["organization_id", "cbab587b-8166-47d3-9290-1a6ead4f3a44"], ["created_at", "2015-07-06 21:23:00.289584"], ["updated_at", "2015-07-06 21:23:00.289584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:23:00 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$9fN.POohbIILw6CQ5o392eLzLqpJCN8oDJDAOzn0QtT6oKnG.HDN."], ["created_at", "2015-07-06 21:23:00.303509"], ["updated_at", "2015-07-06 21:23:00.303509"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$.MkOeSYv.JHr7IWFOJM5ie0ueBOk8ITM7ZEATtHgq3dh6yrEnqq9i"], ["created_at", "2015-07-06 21:23:00.309732"], ["updated_at", "2015-07-06 21:23:00.309732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.311481"], ["user_id", "3fe9e7ea-23bf-49ff-a656-ee95d1c700bf"], ["created_at", "2015-07-06 21:23:00.312112"], ["updated_at", "2015-07-06 21:23:00.312112"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:00.316249"], ["updated_at", "2015-07-06 21:23:00.316249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fe9e7ea-23bf-49ff-a656-ee95d1c700bf' AND "clubhouse_memberships"."organization_id" = '2b1e45ce-840a-4bef-b1a3-d9299b9825d9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fe9e7ea-23bf-49ff-a656-ee95d1c700bf"], ["organization_id", "2b1e45ce-840a-4bef-b1a3-d9299b9825d9"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.320597"], ["updated_at", "2015-07-06 21:23:00.320597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '106956e0-88fe-44f1-b3fa-e43b33205995' AND "clubhouse_memberships"."organization_id" = '2b1e45ce-840a-4bef-b1a3-d9299b9825d9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "106956e0-88fe-44f1-b3fa-e43b33205995"], ["organization_id", "2b1e45ce-840a-4bef-b1a3-d9299b9825d9"], ["created_at", "2015-07-06 21:23:00.326249"], ["updated_at", "2015-07-06 21:23:00.326249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:00 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:00.329634') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "73422e01-93bd-46b4-835d-c5388aacfb56"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:00.331048"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:00.331753"], ["id", "73422e01-93bd-46b4-835d-c5388aacfb56"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3fe9e7ea-23bf-49ff-a656-ee95d1c700bf"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3fe9e7ea-23bf-49ff-a656-ee95d1c700bf' LIMIT 1 [["organization_id", "2b1e45ce-840a-4bef-b1a3-d9299b9825d9"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "2b1e45ce-840a-4bef-b1a3-d9299b9825d9"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3fe9e7ea-23bf-49ff-a656-ee95d1c700bf"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "106956e0-88fe-44f1-b3fa-e43b33205995"]] Completed 200 OK in 15ms (Views: 4.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$sLwuNoRWd6yDEgWlz/7ZLOD9DWVwQsGdH07bai1VeM0KIoR.uDwq2"], ["created_at", "2015-07-06 21:23:00.354318"], ["updated_at", "2015-07-06 21:23:00.354318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$7Tg5WulgTtpWbA3fqWctvOBUrgoI2IEmSX7L2MTrIpLxh.2SKTGQa"], ["created_at", "2015-07-06 21:23:00.360405"], ["updated_at", "2015-07-06 21:23:00.360405"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.362872"], ["user_id", "e7b40bba-9089-47a3-b310-0df3037e5219"], ["created_at", "2015-07-06 21:23:00.364091"], ["updated_at", "2015-07-06 21:23:00.364091"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:00.371794"], ["updated_at", "2015-07-06 21:23:00.371794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e7b40bba-9089-47a3-b310-0df3037e5219' AND "clubhouse_memberships"."organization_id" = '6c02b316-21ec-49fe-bb5e-4e5986c02a2b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e7b40bba-9089-47a3-b310-0df3037e5219"], ["organization_id", "6c02b316-21ec-49fe-bb5e-4e5986c02a2b"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.376123"], ["updated_at", "2015-07-06 21:23:00.376123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1414e68-54de-4c24-9f99-6be9ab40b6e2' AND "clubhouse_memberships"."organization_id" = '6c02b316-21ec-49fe-bb5e-4e5986c02a2b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1414e68-54de-4c24-9f99-6be9ab40b6e2"], ["organization_id", "6c02b316-21ec-49fe-bb5e-4e5986c02a2b"], ["created_at", "2015-07-06 21:23:00.379694"], ["updated_at", "2015-07-06 21:23:00.379694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/43ca20e1-2ec7-40b6-bb00-0e8b3b21bda1" for 127.0.0.1 at 2015-07-06 14:23:00 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"43ca20e1-2ec7-40b6-bb00-0e8b3b21bda1", "membership"=>{"admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:00.383663') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5796f3bf-7b5c-45f1-aaf1-022abb6f11c7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:00.385621"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:00.386391"], ["id", "5796f3bf-7b5c-45f1-aaf1-022abb6f11c7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "43ca20e1-2ec7-40b6-bb00-0e8b3b21bda1"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e7b40bba-9089-47a3-b310-0df3037e5219"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "6c02b316-21ec-49fe-bb5e-4e5986c02a2b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e7b40bba-9089-47a3-b310-0df3037e5219' LIMIT 1 [["organization_id", "6c02b316-21ec-49fe-bb5e-4e5986c02a2b"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1414e68-54de-4c24-9f99-6be9ab40b6e2"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1414e68-54de-4c24-9f99-6be9ab40b6e2' AND "clubhouse_memberships"."id" != '43ca20e1-2ec7-40b6-bb00-0e8b3b21bda1' AND "clubhouse_memberships"."organization_id" = '6c02b316-21ec-49fe-bb5e-4e5986c02a2b') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:23:00.397712"], ["id", "43ca20e1-2ec7-40b6-bb00-0e8b3b21bda1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 0.8ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$9VxakgXgQF2SULhbEiZWQO41hhgOL/3dsKbQqY7m.QPXHSSzQDmiK"], ["created_at", "2015-07-06 21:23:00.406670"], ["updated_at", "2015-07-06 21:23:00.406670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$CxXFm.8/qZAFkZ2cWz24kuNuW5crtO515cA4Nyz.ZoIBY/VbSKn3i"], ["created_at", "2015-07-06 21:23:00.411938"], ["updated_at", "2015-07-06 21:23:00.411938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:00.413902"], ["user_id", "97863976-57b8-4b1f-8c17-ef32c881506a"], ["created_at", "2015-07-06 21:23:00.414627"], ["updated_at", "2015-07-06 21:23:00.414627"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:00.419353"], ["updated_at", "2015-07-06 21:23:00.419353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '97863976-57b8-4b1f-8c17-ef32c881506a' AND "clubhouse_memberships"."organization_id" = 'ea4d610b-ddc5-4c4f-b8de-f2bbc414dfdb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "97863976-57b8-4b1f-8c17-ef32c881506a"], ["organization_id", "ea4d610b-ddc5-4c4f-b8de-f2bbc414dfdb"], ["admin", "t"], ["created_at", "2015-07-06 21:23:00.422636"], ["updated_at", "2015-07-06 21:23:00.422636"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '371dcd5f-f0c0-4850-ad6f-3c1067c1fede' AND "clubhouse_memberships"."organization_id" = 'ea4d610b-ddc5-4c4f-b8de-f2bbc414dfdb') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "371dcd5f-f0c0-4850-ad6f-3c1067c1fede"], ["organization_id", "ea4d610b-ddc5-4c4f-b8de-f2bbc414dfdb"], ["created_at", "2015-07-06 21:23:00.427317"], ["updated_at", "2015-07-06 21:23:00.427317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:00 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (4.1ms) SAVEPOINT active_record_1 User Exists (2.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (7.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$dnoHtAUQORbBCN3G168tfueXgjEWy5MoQ23RwO0GITtG/EgYA5rIa"], ["created_at", "2015-07-06 21:23:19.807326"], ["updated_at", "2015-07-06 21:23:19.807326"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$nSrUFtZzJeUtfSMFjxs1/.uXuy6q6NqrPkKaGfYe5uoM.cJziolZK"], ["created_at", "2015-07-06 21:23:19.829674"], ["updated_at", "2015-07-06 21:23:19.829674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:19.866426"], ["user_id", "062ccf99-e2b4-4beb-a48d-dd1dd615ba47"], ["created_at", "2015-07-06 21:23:19.882159"], ["updated_at", "2015-07-06 21:23:19.882159"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:19.905652"], ["updated_at", "2015-07-06 21:23:19.905652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '062ccf99-e2b4-4beb-a48d-dd1dd615ba47' AND "clubhouse_memberships"."organization_id" = '08beb9c9-1ee6-4468-9e2c-d46527646c0f') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "062ccf99-e2b4-4beb-a48d-dd1dd615ba47"], ["organization_id", "08beb9c9-1ee6-4468-9e2c-d46527646c0f"], ["admin", "t"], ["created_at", "2015-07-06 21:23:19.933870"], ["updated_at", "2015-07-06 21:23:19.933870"]]  (2.1ms) RELEASE SAVEPOINT active_record_1  (8.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2575c4e1-3db2-4dfa-8ffe-e3c6827c5351' AND "clubhouse_memberships"."organization_id" = '08beb9c9-1ee6-4468-9e2c-d46527646c0f') LIMIT 1 SQL (3.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2575c4e1-3db2-4dfa-8ffe-e3c6827c5351"], ["organization_id", "08beb9c9-1ee6-4468-9e2c-d46527646c0f"], ["created_at", "2015-07-06 21:23:19.966493"], ["updated_at", "2015-07-06 21:23:19.966493"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:23:19 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$t5rXjkKTI/9kV5b3wyedt.8fr12FzGYXL2zDkPbSOBkRfSLvud.rO"], ["created_at", "2015-07-06 21:23:20.013750"], ["updated_at", "2015-07-06 21:23:20.013750"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$wWvRqZ89oVAW0clUQrKP4.XTS6mUq7I1DkOczZ6/cy1DdcmR6FB.2"], ["created_at", "2015-07-06 21:23:20.025978"], ["updated_at", "2015-07-06 21:23:20.025978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.029111"], ["user_id", "7a236c72-97a1-4a9b-ab8c-369b8eb46314"], ["created_at", "2015-07-06 21:23:20.030387"], ["updated_at", "2015-07-06 21:23:20.030387"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:20.036646"], ["updated_at", "2015-07-06 21:23:20.036646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a236c72-97a1-4a9b-ab8c-369b8eb46314' AND "clubhouse_memberships"."organization_id" = '011a0ddd-f380-46a6-8dda-b3cf5b66e37b') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7a236c72-97a1-4a9b-ab8c-369b8eb46314"], ["organization_id", "011a0ddd-f380-46a6-8dda-b3cf5b66e37b"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.043138"], ["updated_at", "2015-07-06 21:23:20.043138"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4feb55e1-182d-40b8-841d-02c1f85ddb9a' AND "clubhouse_memberships"."organization_id" = '011a0ddd-f380-46a6-8dda-b3cf5b66e37b') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4feb55e1-182d-40b8-841d-02c1f85ddb9a"], ["organization_id", "011a0ddd-f380-46a6-8dda-b3cf5b66e37b"], ["created_at", "2015-07-06 21:23:20.048690"], ["updated_at", "2015-07-06 21:23:20.048690"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/011a0ddd-f380-46a6-8dda-b3cf5b66e37b/memberships" for 127.0.0.1 at 2015-07-06 14:23:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"011a0ddd-f380-46a6-8dda-b3cf5b66e37b", "membership"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:20.054989') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "daf3b9bf-8045-40b7-a9a4-291fa0597119"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:20.077476"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:20.079459"], ["id", "daf3b9bf-8045-40b7-a9a4-291fa0597119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "011a0ddd-f380-46a6-8dda-b3cf5b66e37b"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a236c72-97a1-4a9b-ab8c-369b8eb46314"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7a236c72-97a1-4a9b-ab8c-369b8eb46314' LIMIT 1 [["organization_id", "011a0ddd-f380-46a6-8dda-b3cf5b66e37b"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "011a0ddd-f380-46a6-8dda-b3cf5b66e37b"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7a236c72-97a1-4a9b-ab8c-369b8eb46314"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4feb55e1-182d-40b8-841d-02c1f85ddb9a"]] Completed 200 OK in 81ms (Views: 23.6ms | ActiveRecord: 3.7ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$kORz/HWJn7/xFUOvep.rpefc8wokYQW6Ou/zaaK7yPOYKkwHTnMKi"], ["created_at", "2015-07-06 21:23:20.199111"], ["updated_at", "2015-07-06 21:23:20.199111"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$0Io03M4l4355z/XPPrh4/uNnoOqd.FDDO4W/K5bVWo6ymAaFz6G2a"], ["created_at", "2015-07-06 21:23:20.235803"], ["updated_at", "2015-07-06 21:23:20.235803"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.240888"], ["user_id", "d727bd22-0122-4f5f-8d94-bb721dc07ee6"], ["created_at", "2015-07-06 21:23:20.242058"], ["updated_at", "2015-07-06 21:23:20.242058"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:20.249073"], ["updated_at", "2015-07-06 21:23:20.249073"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd727bd22-0122-4f5f-8d94-bb721dc07ee6' AND "clubhouse_memberships"."organization_id" = '23a0587f-8063-42fd-951e-787802ca5656') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d727bd22-0122-4f5f-8d94-bb721dc07ee6"], ["organization_id", "23a0587f-8063-42fd-951e-787802ca5656"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.264097"], ["updated_at", "2015-07-06 21:23:20.264097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea02f30d-31e8-4f3d-8ab0-060e68213226' AND "clubhouse_memberships"."organization_id" = '23a0587f-8063-42fd-951e-787802ca5656') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ea02f30d-31e8-4f3d-8ab0-060e68213226"], ["organization_id", "23a0587f-8063-42fd-951e-787802ca5656"], ["created_at", "2015-07-06 21:23:20.268002"], ["updated_at", "2015-07-06 21:23:20.268002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:23:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$lslUJMclmmX7rGEYhsNxN.Jq8plUXhoVnh8cu2UhaaRkF4ps1trr2"], ["created_at", "2015-07-06 21:23:20.299337"], ["updated_at", "2015-07-06 21:23:20.299337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$ZYGfgarjIC831hCJx0jaoeptp0fa2HxEKRL3Ei.gQCAzbVHyOil/O"], ["created_at", "2015-07-06 21:23:20.315333"], ["updated_at", "2015-07-06 21:23:20.315333"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.319167"], ["user_id", "bad1d01a-8c34-48f9-bed2-754c61a7ef2a"], ["created_at", "2015-07-06 21:23:20.320423"], ["updated_at", "2015-07-06 21:23:20.320423"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:20.341738"], ["updated_at", "2015-07-06 21:23:20.341738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bad1d01a-8c34-48f9-bed2-754c61a7ef2a' AND "clubhouse_memberships"."organization_id" = 'ad514548-9041-429b-8bc3-221bfec65e95') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bad1d01a-8c34-48f9-bed2-754c61a7ef2a"], ["organization_id", "ad514548-9041-429b-8bc3-221bfec65e95"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.346870"], ["updated_at", "2015-07-06 21:23:20.346870"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6c95e0a0-a06c-4760-92ba-6ffd9eb30299' AND "clubhouse_memberships"."organization_id" = 'ad514548-9041-429b-8bc3-221bfec65e95') LIMIT 1 SQL (2.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6c95e0a0-a06c-4760-92ba-6ffd9eb30299"], ["organization_id", "ad514548-9041-429b-8bc3-221bfec65e95"], ["created_at", "2015-07-06 21:23:20.353036"], ["updated_at", "2015-07-06 21:23:20.353036"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:20 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:20.363529') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "87c72e2a-5fef-4dae-ac73-26f25bcb5494"]]  (0.2ms) SAVEPOINT active_record_1 SQL (3.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:20.366094"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:20.367840"], ["id", "87c72e2a-5fef-4dae-ac73-26f25bcb5494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bad1d01a-8c34-48f9-bed2-754c61a7ef2a"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'bad1d01a-8c34-48f9-bed2-754c61a7ef2a' LIMIT 1 [["organization_id", "ad514548-9041-429b-8bc3-221bfec65e95"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "ad514548-9041-429b-8bc3-221bfec65e95"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bad1d01a-8c34-48f9-bed2-754c61a7ef2a"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6c95e0a0-a06c-4760-92ba-6ffd9eb30299"]] Completed 200 OK in 35ms (Views: 3.7ms | ActiveRecord: 6.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$8gkZgqR0tuhsB5xqU8obAeD4zDJs6z46oqC41dTWB091De48mTvyu"], ["created_at", "2015-07-06 21:23:20.415368"], ["updated_at", "2015-07-06 21:23:20.415368"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$Bg3zgHFjy7cT9yCDJkF2zeP7VhuHEIqlow8j/YBVj2i8pOwjXjv0a"], ["created_at", "2015-07-06 21:23:20.432335"], ["updated_at", "2015-07-06 21:23:20.432335"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.438481"], ["user_id", "c1d4e16d-cb75-437f-b6b9-9107034213bc"], ["created_at", "2015-07-06 21:23:20.440377"], ["updated_at", "2015-07-06 21:23:20.440377"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:20.453202"], ["updated_at", "2015-07-06 21:23:20.453202"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1d4e16d-cb75-437f-b6b9-9107034213bc' AND "clubhouse_memberships"."organization_id" = '014d6032-fc70-4b6b-bbf1-ec97fe06d7bb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c1d4e16d-cb75-437f-b6b9-9107034213bc"], ["organization_id", "014d6032-fc70-4b6b-bbf1-ec97fe06d7bb"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.464533"], ["updated_at", "2015-07-06 21:23:20.464533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3d01489e-2a1f-4b86-81c7-6fe80e05055f' AND "clubhouse_memberships"."organization_id" = '014d6032-fc70-4b6b-bbf1-ec97fe06d7bb') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3d01489e-2a1f-4b86-81c7-6fe80e05055f"], ["organization_id", "014d6032-fc70-4b6b-bbf1-ec97fe06d7bb"], ["created_at", "2015-07-06 21:23:20.469472"], ["updated_at", "2015-07-06 21:23:20.469472"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/43e3c53c-2bf4-40d7-9408-b6e340092530" for 127.0.0.1 at 2015-07-06 14:23:20 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"43e3c53c-2bf4-40d7-9408-b6e340092530", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:20.477073') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bfe265f2-443a-4179-a5f0-87b89bea98b4"]]  (0.9ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:20.480304"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:20.482387"], ["id", "bfe265f2-443a-4179-a5f0-87b89bea98b4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.7ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "43e3c53c-2bf4-40d7-9408-b6e340092530"]] User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1d4e16d-cb75-437f-b6b9-9107034213bc"]] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "014d6032-fc70-4b6b-bbf1-ec97fe06d7bb"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c1d4e16d-cb75-437f-b6b9-9107034213bc' LIMIT 1 [["organization_id", "014d6032-fc70-4b6b-bbf1-ec97fe06d7bb"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1d4e16d-cb75-437f-b6b9-9107034213bc"]] Completed 200 OK in 24ms (Views: 3.4ms | ActiveRecord: 4.7ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$2rp9YPtk2SLBTET6m.J/e.nxI.zhgIh0qt26BnLu95eKqT3NjijN6"], ["created_at", "2015-07-06 21:23:20.514340"], ["updated_at", "2015-07-06 21:23:20.514340"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (4.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$K4NhQnryfyVKaqqmGkbTIOBcnOnrQHBkNGhUsmsr95teCL9RzZDmW"], ["created_at", "2015-07-06 21:23:20.526791"], ["updated_at", "2015-07-06 21:23:20.526791"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.531485"], ["user_id", "2136f303-8ae8-4ed4-9923-3d00f17942e4"], ["created_at", "2015-07-06 21:23:20.532233"], ["updated_at", "2015-07-06 21:23:20.532233"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:20.541331"], ["updated_at", "2015-07-06 21:23:20.541331"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2136f303-8ae8-4ed4-9923-3d00f17942e4' AND "clubhouse_memberships"."organization_id" = 'a25615ce-0d7d-404e-be90-17431022207b') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2136f303-8ae8-4ed4-9923-3d00f17942e4"], ["organization_id", "a25615ce-0d7d-404e-be90-17431022207b"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.550490"], ["updated_at", "2015-07-06 21:23:20.550490"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6286d59c-ade1-4be7-8095-c8427d288b7a' AND "clubhouse_memberships"."organization_id" = 'a25615ce-0d7d-404e-be90-17431022207b') LIMIT 1 SQL (1.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6286d59c-ade1-4be7-8095-c8427d288b7a"], ["organization_id", "a25615ce-0d7d-404e-be90-17431022207b"], ["created_at", "2015-07-06 21:23:20.559104"], ["updated_at", "2015-07-06 21:23:20.559104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:20 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$HBsmIxvSUMUZdONvF2/FtuXInGZYTVE2qpqiKKZ/RHYnxfstFPS66"], ["created_at", "2015-07-06 21:23:20.581819"], ["updated_at", "2015-07-06 21:23:20.581819"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$GN5.aa8XJEtnTwbopjvZ7.76bV8bhVSxJxl8WZQyFCZJ7RLekZXVq"], ["created_at", "2015-07-06 21:23:20.592914"], ["updated_at", "2015-07-06 21:23:20.592914"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.596771"], ["user_id", "11bc8a35-67fa-4b23-a273-963d674ada9b"], ["created_at", "2015-07-06 21:23:20.598908"], ["updated_at", "2015-07-06 21:23:20.598908"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:20.610344"], ["updated_at", "2015-07-06 21:23:20.610344"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (2.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '11bc8a35-67fa-4b23-a273-963d674ada9b' AND "clubhouse_memberships"."organization_id" = '338ca846-881e-498f-a6ef-de195c80b16b') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "11bc8a35-67fa-4b23-a273-963d674ada9b"], ["organization_id", "338ca846-881e-498f-a6ef-de195c80b16b"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.625715"], ["updated_at", "2015-07-06 21:23:20.625715"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '184bb9d7-56f3-4b65-b9ec-3c40be71c01a' AND "clubhouse_memberships"."organization_id" = '338ca846-881e-498f-a6ef-de195c80b16b') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "184bb9d7-56f3-4b65-b9ec-3c40be71c01a"], ["organization_id", "338ca846-881e-498f-a6ef-de195c80b16b"], ["created_at", "2015-07-06 21:23:20.631271"], ["updated_at", "2015-07-06 21:23:20.631271"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$VL1lZfXRO.C1Rwf0ylOXX.VsZHT3GW5EQMhbj847IUjwSP4DgFrn2"], ["created_at", "2015-07-06 21:23:20.644050"], ["updated_at", "2015-07-06 21:23:20.644050"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.647955"], ["user_id", "b57d681d-e32a-4ec5-9c3e-884ff2509694"], ["created_at", "2015-07-06 21:23:20.650040"], ["updated_at", "2015-07-06 21:23:20.650040"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '338ca846-881e-498f-a6ef-de195c80b16b') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "338ca846-881e-498f-a6ef-de195c80b16b"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.676700"], ["updated_at", "2015-07-06 21:23:20.676700"], ["token", "xqmGdiG1vCXNF7AGtqb0ntHpX6uQew7LUx5m2AKNxBY"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:23:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$l12.N5/fmp4TbYIecdoSguA3wvxsMmAgRc1bTN7uEKjbWqg/RAaFe"], ["created_at", "2015-07-06 21:23:20.696477"], ["updated_at", "2015-07-06 21:23:20.696477"]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$oN60iN0HOALhCiLcIL6FNeQqBNqg3FI9mahi0H0VnCx6q.8o476xK"], ["created_at", "2015-07-06 21:23:20.714039"], ["updated_at", "2015-07-06 21:23:20.714039"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.719228"], ["user_id", "cad3b597-e018-413d-9194-782491deb310"], ["created_at", "2015-07-06 21:23:20.726979"], ["updated_at", "2015-07-06 21:23:20.726979"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:20.736420"], ["updated_at", "2015-07-06 21:23:20.736420"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cad3b597-e018-413d-9194-782491deb310' AND "clubhouse_memberships"."organization_id" = '2d5fa9c4-86fb-475b-8ff0-fd530c864361') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cad3b597-e018-413d-9194-782491deb310"], ["organization_id", "2d5fa9c4-86fb-475b-8ff0-fd530c864361"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.749811"], ["updated_at", "2015-07-06 21:23:20.749811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f27ef571-d7e1-421d-9897-415023367a8e' AND "clubhouse_memberships"."organization_id" = '2d5fa9c4-86fb-475b-8ff0-fd530c864361') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f27ef571-d7e1-421d-9897-415023367a8e"], ["organization_id", "2d5fa9c4-86fb-475b-8ff0-fd530c864361"], ["created_at", "2015-07-06 21:23:20.760253"], ["updated_at", "2015-07-06 21:23:20.760253"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$CtgjwyeROs1UNOIYePgrCuzdmUmR4jSzK1p5De3clUfFkPPPFms6u"], ["created_at", "2015-07-06 21:23:20.778328"], ["updated_at", "2015-07-06 21:23:20.778328"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.785253"], ["user_id", "dc3fffeb-2f2e-4baa-ae4d-527d4d535d6d"], ["created_at", "2015-07-06 21:23:20.793560"], ["updated_at", "2015-07-06 21:23:20.793560"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '2d5fa9c4-86fb-475b-8ff0-fd530c864361') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "2d5fa9c4-86fb-475b-8ff0-fd530c864361"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.812110"], ["updated_at", "2015-07-06 21:23:20.812110"], ["token", "KPir1A4kGnBPQt7iF-y9PN9AHp77a11bsNJc1DT5IKk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2d5fa9c4-86fb-475b-8ff0-fd530c864361/memberships" for 127.0.0.1 at 2015-07-06 14:23:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"2d5fa9c4-86fb-475b-8ff0-fd530c864361", "membership"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:20.832562') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "352cad85-2185-46e9-8cd6-e09aade478b6"]]  (0.3ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:20.835573"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:20.840175"], ["id", "352cad85-2185-46e9-8cd6-e09aade478b6"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2d5fa9c4-86fb-475b-8ff0-fd530c864361"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dc3fffeb-2f2e-4baa-ae4d-527d4d535d6d"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 30ms (ActiveRecord: 4.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$yx2FcTmcr2yCsNssnf4DJeh0dl4fagUOs/A6V1ohKWxzsFlI7bui."], ["created_at", "2015-07-06 21:23:20.877774"], ["updated_at", "2015-07-06 21:23:20.877774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$6Mq8B7lGOhWsetRi7LR/3.VmoYZk7T22MyTfXb7BO6WiGJwsa/mXe"], ["created_at", "2015-07-06 21:23:20.884537"], ["updated_at", "2015-07-06 21:23:20.884537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.886069"], ["user_id", "05edca8b-d8c2-4957-85a3-c08cdae0e8af"], ["created_at", "2015-07-06 21:23:20.887550"], ["updated_at", "2015-07-06 21:23:20.887550"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:20.895680"], ["updated_at", "2015-07-06 21:23:20.895680"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '05edca8b-d8c2-4957-85a3-c08cdae0e8af' AND "clubhouse_memberships"."organization_id" = 'c7093b54-2cf8-458e-8a44-a0e886fd8ac9') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "05edca8b-d8c2-4957-85a3-c08cdae0e8af"], ["organization_id", "c7093b54-2cf8-458e-8a44-a0e886fd8ac9"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.905795"], ["updated_at", "2015-07-06 21:23:20.905795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ea31fd9-5213-42c7-8208-4441de01d408' AND "clubhouse_memberships"."organization_id" = 'c7093b54-2cf8-458e-8a44-a0e886fd8ac9') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ea31fd9-5213-42c7-8208-4441de01d408"], ["organization_id", "c7093b54-2cf8-458e-8a44-a0e886fd8ac9"], ["created_at", "2015-07-06 21:23:20.912322"], ["updated_at", "2015-07-06 21:23:20.912322"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$ZscpEdbGeFFQwWYaIrqsEO4B4tmBz6iQM8V6aEOVrbayjoFLVblX2"], ["created_at", "2015-07-06 21:23:20.923824"], ["updated_at", "2015-07-06 21:23:20.923824"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.928238"], ["user_id", "4dfaf575-8589-43a1-87fb-f96406ebb2fd"], ["created_at", "2015-07-06 21:23:20.929392"], ["updated_at", "2015-07-06 21:23:20.929392"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'c7093b54-2cf8-458e-8a44-a0e886fd8ac9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "c7093b54-2cf8-458e-8a44-a0e886fd8ac9"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.934175"], ["updated_at", "2015-07-06 21:23:20.934175"], ["token", "dZCjNOHu9hkRbV410GDtodNZ88mLKttSTy_AfMxILvs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c7093b54-2cf8-458e-8a44-a0e886fd8ac9/memberships" for 127.0.0.1 at 2015-07-06 14:23:20 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"dZCjNOHu9hkRbV410GDtodNZ88mLKttSTy_AfMxILvs", "organization_id"=>"c7093b54-2cf8-458e-8a44-a0e886fd8ac9", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:20.938206') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4f09ce1d-caec-4a7b-a1e6-f8789d788adb"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:20.941081"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:20.942439"], ["id", "4f09ce1d-caec-4a7b-a1e6-f8789d788adb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c7093b54-2cf8-458e-8a44-a0e886fd8ac9"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4dfaf575-8589-43a1-87fb-f96406ebb2fd"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "dZCjNOHu9hkRbV410GDtodNZ88mLKttSTy_AfMxILvs"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c7093b54-2cf8-458e-8a44-a0e886fd8ac9"]] Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dfaf575-8589-43a1-87fb-f96406ebb2fd' AND "clubhouse_memberships"."organization_id" = 'c7093b54-2cf8-458e-8a44-a0e886fd8ac9') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "c7093b54-2cf8-458e-8a44-a0e886fd8ac9"], ["member_id", "4dfaf575-8589-43a1-87fb-f96406ebb2fd"], ["admin", "t"], ["created_at", "2015-07-06 21:23:20.958994"], ["updated_at", "2015-07-06 21:23:20.958994"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "00b0c9d6-afc0-4d9d-a9fc-74b4f47db6d2"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 28ms (Views: 1.1ms | ActiveRecord: 4.3ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$K4zXbzArX8lv9lwIP.BnFuRBTrSxvjsZ8G4j6YPdtwxlInSM3R57y"], ["created_at", "2015-07-06 21:23:20.977091"], ["updated_at", "2015-07-06 21:23:20.977091"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$htWpE.0KVR3pdAEe71PqDOTn2Uc/UtGWhjYpY0rzo4RxZrqzO4IZC"], ["created_at", "2015-07-06 21:23:20.986721"], ["updated_at", "2015-07-06 21:23:20.986721"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:20.994468"], ["user_id", "c9584e13-64ca-47c6-97b4-91505d1ed848"], ["created_at", "2015-07-06 21:23:20.996349"], ["updated_at", "2015-07-06 21:23:20.996349"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:21.008638"], ["updated_at", "2015-07-06 21:23:21.008638"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9584e13-64ca-47c6-97b4-91505d1ed848' AND "clubhouse_memberships"."organization_id" = 'd2a91f8c-d731-4490-bf2a-51936705cb1f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c9584e13-64ca-47c6-97b4-91505d1ed848"], ["organization_id", "d2a91f8c-d731-4490-bf2a-51936705cb1f"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.022171"], ["updated_at", "2015-07-06 21:23:21.022171"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3de8111b-7090-4e02-8b4d-5e0343d6bbed' AND "clubhouse_memberships"."organization_id" = 'd2a91f8c-d731-4490-bf2a-51936705cb1f') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3de8111b-7090-4e02-8b4d-5e0343d6bbed"], ["organization_id", "d2a91f8c-d731-4490-bf2a-51936705cb1f"], ["created_at", "2015-07-06 21:23:21.029595"], ["updated_at", "2015-07-06 21:23:21.029595"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/80c105ee-79fc-405d-baba-9ebcd760db49" for 127.0.0.1 at 2015-07-06 14:23:21 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"80c105ee-79fc-405d-baba-9ebcd760db49", "membership"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:21.035508') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "12706cd8-c5e3-42e5-9226-2977e40b8253"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:21.037725"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:21.039375"], ["id", "12706cd8-c5e3-42e5-9226-2977e40b8253"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.8ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "80c105ee-79fc-405d-baba-9ebcd760db49"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c9584e13-64ca-47c6-97b4-91505d1ed848"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d2a91f8c-d731-4490-bf2a-51936705cb1f"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'c9584e13-64ca-47c6-97b4-91505d1ed848' LIMIT 1 [["organization_id", "d2a91f8c-d731-4490-bf2a-51936705cb1f"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3de8111b-7090-4e02-8b4d-5e0343d6bbed"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "80c105ee-79fc-405d-baba-9ebcd760db49"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 21ms (ActiveRecord: 4.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$Td1PBnWYZPKkjTFHJsRdGeENP0tQZurW5sxy.pTTxWeR.JIY.Rrke"], ["created_at", "2015-07-06 21:23:21.070960"], ["updated_at", "2015-07-06 21:23:21.070960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$2hRNAz.ZsRhywEW8uBTy2OCfhNiQy1iitpL8nJwDf7W5NiD2G07JO"], ["created_at", "2015-07-06 21:23:21.083014"], ["updated_at", "2015-07-06 21:23:21.083014"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:21.089502"], ["user_id", "310e753a-4ec7-4bd5-9fb3-d6b35b83bfc9"], ["created_at", "2015-07-06 21:23:21.091074"], ["updated_at", "2015-07-06 21:23:21.091074"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:21.098289"], ["updated_at", "2015-07-06 21:23:21.098289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '310e753a-4ec7-4bd5-9fb3-d6b35b83bfc9' AND "clubhouse_memberships"."organization_id" = '8e729e07-caba-4e98-8cd3-beee4513a5c2') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "310e753a-4ec7-4bd5-9fb3-d6b35b83bfc9"], ["organization_id", "8e729e07-caba-4e98-8cd3-beee4513a5c2"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.104977"], ["updated_at", "2015-07-06 21:23:21.104977"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '31e9a285-8ea5-4015-8f1d-b95b2f627c2f' AND "clubhouse_memberships"."organization_id" = '8e729e07-caba-4e98-8cd3-beee4513a5c2') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "31e9a285-8ea5-4015-8f1d-b95b2f627c2f"], ["organization_id", "8e729e07-caba-4e98-8cd3-beee4513a5c2"], ["created_at", "2015-07-06 21:23:21.112223"], ["updated_at", "2015-07-06 21:23:21.112223"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:21 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$pH.Y/oQ.HXMwPieFsJGyPewNKW5vlbFEdfbqrzBVGcv/vrPkFmJEu"], ["created_at", "2015-07-06 21:23:21.133840"], ["updated_at", "2015-07-06 21:23:21.133840"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$eqW.SWWwC.ZSQv//HL.FOuMWVVcA2augTzDQGQG15VFuQ6ITCx5ma"], ["created_at", "2015-07-06 21:23:21.145890"], ["updated_at", "2015-07-06 21:23:21.145890"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:21.150550"], ["user_id", "f4d4347e-8778-4335-83bc-29d8c3500a01"], ["created_at", "2015-07-06 21:23:21.152187"], ["updated_at", "2015-07-06 21:23:21.152187"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:21.163685"], ["updated_at", "2015-07-06 21:23:21.163685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f4d4347e-8778-4335-83bc-29d8c3500a01' AND "clubhouse_memberships"."organization_id" = '5d947bce-851a-46f9-8e5e-42f3d36f386a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f4d4347e-8778-4335-83bc-29d8c3500a01"], ["organization_id", "5d947bce-851a-46f9-8e5e-42f3d36f386a"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.166861"], ["updated_at", "2015-07-06 21:23:21.166861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ce37d3a6-f1ca-4333-a9a4-89b0fb9f78b4' AND "clubhouse_memberships"."organization_id" = '5d947bce-851a-46f9-8e5e-42f3d36f386a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ce37d3a6-f1ca-4333-a9a4-89b0fb9f78b4"], ["organization_id", "5d947bce-851a-46f9-8e5e-42f3d36f386a"], ["created_at", "2015-07-06 21:23:21.169949"], ["updated_at", "2015-07-06 21:23:21.169949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/c32cfa2e-7e55-4060-957b-f24202a5c68c" for 127.0.0.1 at 2015-07-06 14:23:21 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"c32cfa2e-7e55-4060-957b-f24202a5c68c", "membership"=>{"admin"=>true}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:21.173880') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7915609a-a53e-4036-a22f-66a34d64f3f0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:21.176339"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:21.177709"], ["id", "7915609a-a53e-4036-a22f-66a34d64f3f0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "c32cfa2e-7e55-4060-957b-f24202a5c68c"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f4d4347e-8778-4335-83bc-29d8c3500a01"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5d947bce-851a-46f9-8e5e-42f3d36f386a"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'f4d4347e-8778-4335-83bc-29d8c3500a01' LIMIT 1 [["organization_id", "5d947bce-851a-46f9-8e5e-42f3d36f386a"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ce37d3a6-f1ca-4333-a9a4-89b0fb9f78b4"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ce37d3a6-f1ca-4333-a9a4-89b0fb9f78b4' AND "clubhouse_memberships"."id" != 'c32cfa2e-7e55-4060-957b-f24202a5c68c' AND "clubhouse_memberships"."organization_id" = '5d947bce-851a-46f9-8e5e-42f3d36f386a') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:23:21.187124"], ["id", "c32cfa2e-7e55-4060-957b-f24202a5c68c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 17ms (Views: 1.2ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$CDAEL7/8YSipJD5gptHtUet9Tl5wcCM6aVkcByCMDlX6gvkRbGfLa"], ["created_at", "2015-07-06 21:23:21.198336"], ["updated_at", "2015-07-06 21:23:21.198336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$x7d1nYKFTSNXLpu.jBt7TO/.5t.XzzDcZBG8mo1wHxt2MiMPmztq6"], ["created_at", "2015-07-06 21:23:21.203470"], ["updated_at", "2015-07-06 21:23:21.203470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:21.205223"], ["user_id", "00b50ea1-8b5c-46c4-90f5-f30c7d4cbad1"], ["created_at", "2015-07-06 21:23:21.206252"], ["updated_at", "2015-07-06 21:23:21.206252"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:21.211178"], ["updated_at", "2015-07-06 21:23:21.211178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '00b50ea1-8b5c-46c4-90f5-f30c7d4cbad1' AND "clubhouse_memberships"."organization_id" = '879f8813-ec6e-4203-a056-b46a1544522b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "00b50ea1-8b5c-46c4-90f5-f30c7d4cbad1"], ["organization_id", "879f8813-ec6e-4203-a056-b46a1544522b"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.214259"], ["updated_at", "2015-07-06 21:23:21.214259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e3b7666-226d-471a-bd32-3754ead1c700' AND "clubhouse_memberships"."organization_id" = '879f8813-ec6e-4203-a056-b46a1544522b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4e3b7666-226d-471a-bd32-3754ead1c700"], ["organization_id", "879f8813-ec6e-4203-a056-b46a1544522b"], ["created_at", "2015-07-06 21:23:21.217071"], ["updated_at", "2015-07-06 21:23:21.217071"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:21 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$Txucqap.CEJMA5J5jMY9c.vxKWjrd/QWe6dfv7peEUwuj9FFypn/2"], ["created_at", "2015-07-06 21:23:21.235109"], ["updated_at", "2015-07-06 21:23:21.235109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$T0x74TPZzWBaf9VrIle5m.53U3wsX/4iWTuCuud11L8m3nmvvlMUC"], ["created_at", "2015-07-06 21:23:21.243580"], ["updated_at", "2015-07-06 21:23:21.243580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:21.245588"], ["user_id", "4c9a6d54-a9f6-48b6-9b25-6987e3964d1a"], ["created_at", "2015-07-06 21:23:21.246353"], ["updated_at", "2015-07-06 21:23:21.246353"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:21.251220"], ["updated_at", "2015-07-06 21:23:21.251220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c9a6d54-a9f6-48b6-9b25-6987e3964d1a' AND "clubhouse_memberships"."organization_id" = 'd03bab15-c9bb-4842-90dc-546afea1ddda') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4c9a6d54-a9f6-48b6-9b25-6987e3964d1a"], ["organization_id", "d03bab15-c9bb-4842-90dc-546afea1ddda"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.255189"], ["updated_at", "2015-07-06 21:23:21.255189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4b532dce-4c48-4bc2-b0a9-e66d76d9f541' AND "clubhouse_memberships"."organization_id" = 'd03bab15-c9bb-4842-90dc-546afea1ddda') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4b532dce-4c48-4bc2-b0a9-e66d76d9f541"], ["organization_id", "d03bab15-c9bb-4842-90dc-546afea1ddda"], ["created_at", "2015-07-06 21:23:21.259185"], ["updated_at", "2015-07-06 21:23:21.259185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$b25XmnqfFnJZv2pOTKPFju7lV8g4tP.ZjAbfD5cz5R4.wWX31mxvi"], ["created_at", "2015-07-06 21:23:21.264208"], ["updated_at", "2015-07-06 21:23:21.264208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:21.265699"], ["user_id", "1ee2a19a-ad1f-48b6-8ecb-3e5f2ebb74f3"], ["created_at", "2015-07-06 21:23:21.266282"], ["updated_at", "2015-07-06 21:23:21.266282"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'd03bab15-c9bb-4842-90dc-546afea1ddda') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "d03bab15-c9bb-4842-90dc-546afea1ddda"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.271566"], ["updated_at", "2015-07-06 21:23:21.271566"], ["token", "Wbax_DZqhnimj6M-7NKiKJrz2s_SRdOG7T48oG4nOX0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:23:21 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$VZ73VS0MZdvoK1rCWqWl1u.t/HqcEFGxvrwGzU5gN7/h28iSmjNAS"], ["created_at", "2015-07-06 21:23:21.283162"], ["updated_at", "2015-07-06 21:23:21.283162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$vHJZuYQzac2JkCNZIGpgLeQHz.6ouxFh31yYJtVU8NI1krxowtWx2"], ["created_at", "2015-07-06 21:23:21.288385"], ["updated_at", "2015-07-06 21:23:21.288385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:21.290319"], ["user_id", "6f670e87-15cf-4470-b1c1-e60a2c07a135"], ["created_at", "2015-07-06 21:23:21.291159"], ["updated_at", "2015-07-06 21:23:21.291159"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:21.295478"], ["updated_at", "2015-07-06 21:23:21.295478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f670e87-15cf-4470-b1c1-e60a2c07a135' AND "clubhouse_memberships"."organization_id" = '2653ed05-a2a5-4216-85a5-519cf977ad6e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f670e87-15cf-4470-b1c1-e60a2c07a135"], ["organization_id", "2653ed05-a2a5-4216-85a5-519cf977ad6e"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.298411"], ["updated_at", "2015-07-06 21:23:21.298411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '339cfd5f-3b05-436e-a2e3-ba4584c62451' AND "clubhouse_memberships"."organization_id" = '2653ed05-a2a5-4216-85a5-519cf977ad6e') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "339cfd5f-3b05-436e-a2e3-ba4584c62451"], ["organization_id", "2653ed05-a2a5-4216-85a5-519cf977ad6e"], ["created_at", "2015-07-06 21:23:21.303299"], ["updated_at", "2015-07-06 21:23:21.303299"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$6m4Iw05mx0t7PFJ6jEktsOGVJgIquo/cdzfgrc3aKAppf.tINOTaK"], ["created_at", "2015-07-06 21:23:21.314367"], ["updated_at", "2015-07-06 21:23:21.314367"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:21.318199"], ["user_id", "543f0d86-4429-4d5b-9457-416ef688ce4e"], ["created_at", "2015-07-06 21:23:21.319452"], ["updated_at", "2015-07-06 21:23:21.319452"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '2653ed05-a2a5-4216-85a5-519cf977ad6e') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "2653ed05-a2a5-4216-85a5-519cf977ad6e"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.329107"], ["updated_at", "2015-07-06 21:23:21.329107"], ["token", "M4Mx31zkQh65tdkwBzEPAVIz5O4Ysn8D67cIjnKMqgg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:21 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"M4Mx31zkQh65tdkwBzEPAVIz5O4Ysn8D67cIjnKMqgg", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:21.336185') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a815d0c9-cc4f-433a-be13-7196a2b36e33"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:21.338687"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:21.340941"], ["id", "a815d0c9-cc4f-433a-be13-7196a2b36e33"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "543f0d86-4429-4d5b-9457-416ef688ce4e"]] Unpermitted parameters: organization_id, membership  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "M4Mx31zkQh65tdkwBzEPAVIz5O4Ysn8D67cIjnKMqgg"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2653ed05-a2a5-4216-85a5-519cf977ad6e"]] Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '543f0d86-4429-4d5b-9457-416ef688ce4e' AND "clubhouse_memberships"."organization_id" = '2653ed05-a2a5-4216-85a5-519cf977ad6e') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "2653ed05-a2a5-4216-85a5-519cf977ad6e"], ["member_id", "543f0d86-4429-4d5b-9457-416ef688ce4e"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.358900"], ["updated_at", "2015-07-06 21:23:21.358900"]] SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "e9ba980e-dbc3-4b20-bbeb-36bc8b790cc8"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 28ms (Views: 1.0ms | ActiveRecord: 5.5ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$AvaRZ/ECD0YicxhDq5uO7OxEb0M4b4eWl2rQnuJ5JwRHw862kybi."], ["created_at", "2015-07-06 21:23:21.371577"], ["updated_at", "2015-07-06 21:23:21.371577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$fYBlZeAuMIjIks/SGUWpIOpgOaRBSqbBWydN1py1sQC/KXi.szpsC"], ["created_at", "2015-07-06 21:23:21.378616"], ["updated_at", "2015-07-06 21:23:21.378616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:21.380955"], ["user_id", "01d12adf-ae21-4725-958c-6f663594cb5d"], ["created_at", "2015-07-06 21:23:21.381590"], ["updated_at", "2015-07-06 21:23:21.381590"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:21.385717"], ["updated_at", "2015-07-06 21:23:21.385717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '01d12adf-ae21-4725-958c-6f663594cb5d' AND "clubhouse_memberships"."organization_id" = 'b768027d-f3f5-4af0-8d00-2a40c96e52a7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "01d12adf-ae21-4725-958c-6f663594cb5d"], ["organization_id", "b768027d-f3f5-4af0-8d00-2a40c96e52a7"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.389323"], ["updated_at", "2015-07-06 21:23:21.389323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4af86c3e-216b-4c4b-8bde-02e746966f3f' AND "clubhouse_memberships"."organization_id" = 'b768027d-f3f5-4af0-8d00-2a40c96e52a7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4af86c3e-216b-4c4b-8bde-02e746966f3f"], ["organization_id", "b768027d-f3f5-4af0-8d00-2a40c96e52a7"], ["created_at", "2015-07-06 21:23:21.393122"], ["updated_at", "2015-07-06 21:23:21.393122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$5nncGNRlqvFvFm53Q3RUOefpzD9jb8r4S6cOHe7/jbrSyBFLqoMLy"], ["created_at", "2015-07-06 21:23:21.398294"], ["updated_at", "2015-07-06 21:23:21.398294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:21.400245"], ["user_id", "f6c6958f-6757-4d8e-b3ff-ae821c5fc6dd"], ["created_at", "2015-07-06 21:23:21.401571"], ["updated_at", "2015-07-06 21:23:21.401571"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'b768027d-f3f5-4af0-8d00-2a40c96e52a7') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "b768027d-f3f5-4af0-8d00-2a40c96e52a7"], ["admin", "t"], ["created_at", "2015-07-06 21:23:21.408560"], ["updated_at", "2015-07-06 21:23:21.408560"], ["token", "ajfRtrsPNn1VPkAj9VCeP0MEwXGdtf8mQf1W8pY_rPU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:21 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:21.412426') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "472a2169-769b-4ced-8e70-defd745ee3dd"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:21.413929"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:21.414735"], ["id", "472a2169-769b-4ced-8e70-defd745ee3dd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6c6958f-6757-4d8e-b3ff-ae821c5fc6dd"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 9ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$GBYvGWZ1DaZaCwNTihE5c..oavUSOazCRRzd/fCL77RmqlVgZVLSu"], ["created_at", "2015-07-06 21:23:32.905290"], ["updated_at", "2015-07-06 21:23:32.905290"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$zVMHlOD7IdRviI5rQOdA4.bHBFMiS09DLTZCPY/Ps.G3IBABAMDei"], ["created_at", "2015-07-06 21:23:32.914074"], ["updated_at", "2015-07-06 21:23:32.914074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:32.927089"], ["user_id", "12589a9c-2e93-47c8-b669-19c6a7504b20"], ["created_at", "2015-07-06 21:23:32.931728"], ["updated_at", "2015-07-06 21:23:32.931728"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:32.941922"], ["updated_at", "2015-07-06 21:23:32.941922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12589a9c-2e93-47c8-b669-19c6a7504b20' AND "clubhouse_memberships"."organization_id" = 'ff36d054-c686-4c91-8d66-75e62690ad57') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "12589a9c-2e93-47c8-b669-19c6a7504b20"], ["organization_id", "ff36d054-c686-4c91-8d66-75e62690ad57"], ["admin", "t"], ["created_at", "2015-07-06 21:23:32.955229"], ["updated_at", "2015-07-06 21:23:32.955229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '257ee004-2898-4ae3-b00c-63efe3b368d9' AND "clubhouse_memberships"."organization_id" = 'ff36d054-c686-4c91-8d66-75e62690ad57') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "257ee004-2898-4ae3-b00c-63efe3b368d9"], ["organization_id", "ff36d054-c686-4c91-8d66-75e62690ad57"], ["created_at", "2015-07-06 21:23:32.959850"], ["updated_at", "2015-07-06 21:23:32.959850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/78ace7a9-f48e-47d7-8ab9-189207a7e6e0" for 127.0.0.1 at 2015-07-06 14:23:32 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"78ace7a9-f48e-47d7-8ab9-189207a7e6e0", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:32.983074') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "511f9949-cb7d-48bc-828b-cbb059c41228"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:32.993652"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:32.995228"], ["id", "511f9949-cb7d-48bc-828b-cbb059c41228"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "78ace7a9-f48e-47d7-8ab9-189207a7e6e0"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "12589a9c-2e93-47c8-b669-19c6a7504b20"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ff36d054-c686-4c91-8d66-75e62690ad57"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '12589a9c-2e93-47c8-b669-19c6a7504b20' LIMIT 1 [["organization_id", "ff36d054-c686-4c91-8d66-75e62690ad57"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "12589a9c-2e93-47c8-b669-19c6a7504b20"]] Completed 200 OK in 51ms (Views: 14.2ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$mA9aUPNhxKuTAqTl4Z4/ReBuQHhD1owakkUMPiyl0p2zNOAi5GAHC"], ["created_at", "2015-07-06 21:23:33.069934"], ["updated_at", "2015-07-06 21:23:33.069934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$vNvb6hF7ZJj3PL0t6boYNulBwA2FnDSN/BUAJDzAnvyCup0WcFaB2"], ["created_at", "2015-07-06 21:23:33.076963"], ["updated_at", "2015-07-06 21:23:33.076963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.078946"], ["user_id", "3ddf2b9c-141c-4ec4-97de-ca1f4b18d512"], ["created_at", "2015-07-06 21:23:33.079609"], ["updated_at", "2015-07-06 21:23:33.079609"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.085248"], ["updated_at", "2015-07-06 21:23:33.085248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3ddf2b9c-141c-4ec4-97de-ca1f4b18d512' AND "clubhouse_memberships"."organization_id" = '96b4e822-5730-4201-886e-0033e95ed153') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3ddf2b9c-141c-4ec4-97de-ca1f4b18d512"], ["organization_id", "96b4e822-5730-4201-886e-0033e95ed153"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.088890"], ["updated_at", "2015-07-06 21:23:33.088890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e3a0a38b-9ba7-4835-a2ea-7ad9b69ec9ef' AND "clubhouse_memberships"."organization_id" = '96b4e822-5730-4201-886e-0033e95ed153') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e3a0a38b-9ba7-4835-a2ea-7ad9b69ec9ef"], ["organization_id", "96b4e822-5730-4201-886e-0033e95ed153"], ["created_at", "2015-07-06 21:23:33.093605"], ["updated_at", "2015-07-06 21:23:33.093605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$gvRfVBRiTTN/YtdeoagyleTebOcGfAMQc0YtaP6TnjcJ1iO5h4gAW"], ["created_at", "2015-07-06 21:23:33.106152"], ["updated_at", "2015-07-06 21:23:33.106152"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$wldiBSQjXBLuF9Tep.ls..ofs.Ao24HZ6mvGmAWEG3Lkx3/dqD6/C"], ["created_at", "2015-07-06 21:23:33.112663"], ["updated_at", "2015-07-06 21:23:33.112663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.115321"], ["user_id", "2e200732-1f95-466f-a93a-869a52c90e30"], ["created_at", "2015-07-06 21:23:33.116137"], ["updated_at", "2015-07-06 21:23:33.116137"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.130256"], ["updated_at", "2015-07-06 21:23:33.130256"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2e200732-1f95-466f-a93a-869a52c90e30' AND "clubhouse_memberships"."organization_id" = '95e4c1b7-e81d-41af-96ed-5d44e0709660') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2e200732-1f95-466f-a93a-869a52c90e30"], ["organization_id", "95e4c1b7-e81d-41af-96ed-5d44e0709660"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.137487"], ["updated_at", "2015-07-06 21:23:33.137487"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '470f7b11-8a40-40a2-92a6-c6989452cca2' AND "clubhouse_memberships"."organization_id" = '95e4c1b7-e81d-41af-96ed-5d44e0709660') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "470f7b11-8a40-40a2-92a6-c6989452cca2"], ["organization_id", "95e4c1b7-e81d-41af-96ed-5d44e0709660"], ["created_at", "2015-07-06 21:23:33.143393"], ["updated_at", "2015-07-06 21:23:33.143393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/95e4c1b7-e81d-41af-96ed-5d44e0709660/memberships" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"95e4c1b7-e81d-41af-96ed-5d44e0709660", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:33.147852') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5628117b-2db2-4b52-9da3-16c0fdea7e9b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:33.149580"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:33.150513"], ["id", "5628117b-2db2-4b52-9da3-16c0fdea7e9b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "95e4c1b7-e81d-41af-96ed-5d44e0709660"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e200732-1f95-466f-a93a-869a52c90e30"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2e200732-1f95-466f-a93a-869a52c90e30' LIMIT 1 [["organization_id", "95e4c1b7-e81d-41af-96ed-5d44e0709660"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "95e4c1b7-e81d-41af-96ed-5d44e0709660"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2e200732-1f95-466f-a93a-869a52c90e30"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "470f7b11-8a40-40a2-92a6-c6989452cca2"]] Completed 200 OK in 14ms (Views: 4.0ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$CPmdPk45HRUq904ohbGnluF9w1uNjHplBew7cC0rhJVHzBJupdZDW"], ["created_at", "2015-07-06 21:23:33.168503"], ["updated_at", "2015-07-06 21:23:33.168503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$tXcxdsIi.Ae.Vy13vz8gJ.GACZQk9XCGp0XkBida83ptASV.6afaO"], ["created_at", "2015-07-06 21:23:33.173997"], ["updated_at", "2015-07-06 21:23:33.173997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.176297"], ["user_id", "1161054b-4943-4bf0-8a2b-0b375a00af24"], ["created_at", "2015-07-06 21:23:33.177180"], ["updated_at", "2015-07-06 21:23:33.177180"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.183538"], ["updated_at", "2015-07-06 21:23:33.183538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1161054b-4943-4bf0-8a2b-0b375a00af24' AND "clubhouse_memberships"."organization_id" = 'ba5bb830-3587-4b89-a342-132f93e8642b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1161054b-4943-4bf0-8a2b-0b375a00af24"], ["organization_id", "ba5bb830-3587-4b89-a342-132f93e8642b"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.187763"], ["updated_at", "2015-07-06 21:23:33.187763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '66f7d223-afdf-4ee3-8b8a-7206b4696a45' AND "clubhouse_memberships"."organization_id" = 'ba5bb830-3587-4b89-a342-132f93e8642b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "66f7d223-afdf-4ee3-8b8a-7206b4696a45"], ["organization_id", "ba5bb830-3587-4b89-a342-132f93e8642b"], ["created_at", "2015-07-06 21:23:33.192052"], ["updated_at", "2015-07-06 21:23:33.192052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$q7OLCsXbqwgWznRLlrDqAOHCz.70XlpGQc8ABIfjRiaqv9hyysu/O"], ["created_at", "2015-07-06 21:23:33.203022"], ["updated_at", "2015-07-06 21:23:33.203022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$suvB5qUY1I.hYQ9KU8afneyRN9GCZ/FFMvo5awe2hYCB3Pk.WdDQG"], ["created_at", "2015-07-06 21:23:33.208916"], ["updated_at", "2015-07-06 21:23:33.208916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.210894"], ["user_id", "92a816e5-b118-49c3-afa6-fea200f5ba33"], ["created_at", "2015-07-06 21:23:33.211615"], ["updated_at", "2015-07-06 21:23:33.211615"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.215804"], ["updated_at", "2015-07-06 21:23:33.215804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92a816e5-b118-49c3-afa6-fea200f5ba33' AND "clubhouse_memberships"."organization_id" = 'a3ee0f05-daec-46c4-a446-995d315455f8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "92a816e5-b118-49c3-afa6-fea200f5ba33"], ["organization_id", "a3ee0f05-daec-46c4-a446-995d315455f8"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.219090"], ["updated_at", "2015-07-06 21:23:33.219090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e62f0a9f-e4c0-44ae-bf7b-f6cb7ec04555' AND "clubhouse_memberships"."organization_id" = 'a3ee0f05-daec-46c4-a446-995d315455f8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "e62f0a9f-e4c0-44ae-bf7b-f6cb7ec04555"], ["organization_id", "a3ee0f05-daec-46c4-a446-995d315455f8"], ["created_at", "2015-07-06 21:23:33.223143"], ["updated_at", "2015-07-06 21:23:33.223143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$w.IVfSYihmyNxvSRCBNh/uxQbonMEPgchSDPexq.IFXEMV7kepWwK"], ["created_at", "2015-07-06 21:23:33.232365"], ["updated_at", "2015-07-06 21:23:33.232365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$Zdm/ZA2ob8Y5eRh61zXyZuiUJwk7I.QFDkxtH9HsOPVbwMBFLWZrC"], ["created_at", "2015-07-06 21:23:33.238701"], ["updated_at", "2015-07-06 21:23:33.238701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.240800"], ["user_id", "e394acf9-dd82-4871-b24d-ec0ef8f535b4"], ["created_at", "2015-07-06 21:23:33.241834"], ["updated_at", "2015-07-06 21:23:33.241834"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.247083"], ["updated_at", "2015-07-06 21:23:33.247083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e394acf9-dd82-4871-b24d-ec0ef8f535b4' AND "clubhouse_memberships"."organization_id" = 'c8d4a536-9445-426c-b5d1-62dd17e79715') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e394acf9-dd82-4871-b24d-ec0ef8f535b4"], ["organization_id", "c8d4a536-9445-426c-b5d1-62dd17e79715"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.250336"], ["updated_at", "2015-07-06 21:23:33.250336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d7ba399-b9f6-4343-970c-8abac9c7d39d' AND "clubhouse_memberships"."organization_id" = 'c8d4a536-9445-426c-b5d1-62dd17e79715') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0d7ba399-b9f6-4343-970c-8abac9c7d39d"], ["organization_id", "c8d4a536-9445-426c-b5d1-62dd17e79715"], ["created_at", "2015-07-06 21:23:33.253872"], ["updated_at", "2015-07-06 21:23:33.253872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/94c296af-e6ef-4c94-bac1-2feef4e20458" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"94c296af-e6ef-4c94-bac1-2feef4e20458", "membership"=>{"admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:33.256940') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1e13aafd-fa35-4dcb-a163-b422cd6061bb"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:33.258481"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:33.259594"], ["id", "1e13aafd-fa35-4dcb-a163-b422cd6061bb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "94c296af-e6ef-4c94-bac1-2feef4e20458"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e394acf9-dd82-4871-b24d-ec0ef8f535b4"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c8d4a536-9445-426c-b5d1-62dd17e79715"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e394acf9-dd82-4871-b24d-ec0ef8f535b4' LIMIT 1 [["organization_id", "c8d4a536-9445-426c-b5d1-62dd17e79715"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0d7ba399-b9f6-4343-970c-8abac9c7d39d"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0d7ba399-b9f6-4343-970c-8abac9c7d39d' AND "clubhouse_memberships"."id" != '94c296af-e6ef-4c94-bac1-2feef4e20458' AND "clubhouse_memberships"."organization_id" = 'c8d4a536-9445-426c-b5d1-62dd17e79715') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:23:33.269496"], ["id", "94c296af-e6ef-4c94-bac1-2feef4e20458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.0ms | ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$uzFrP2OleegtfiHtD5leGuKrS8eEU0rArrSd0UmfPCVNRV7LpB3sG"], ["created_at", "2015-07-06 21:23:33.280666"], ["updated_at", "2015-07-06 21:23:33.280666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$5b1ogINgWRztul5vyOaHRe0WfMYL5mSgASFensG6OPfirCgKuys4K"], ["created_at", "2015-07-06 21:23:33.287184"], ["updated_at", "2015-07-06 21:23:33.287184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.289154"], ["user_id", "ff19e61d-66f4-4ec6-ba4c-5bbee47907af"], ["created_at", "2015-07-06 21:23:33.289800"], ["updated_at", "2015-07-06 21:23:33.289800"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.295148"], ["updated_at", "2015-07-06 21:23:33.295148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ff19e61d-66f4-4ec6-ba4c-5bbee47907af' AND "clubhouse_memberships"."organization_id" = 'b2c6f35e-9d71-4238-a256-b7c11b48e827') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ff19e61d-66f4-4ec6-ba4c-5bbee47907af"], ["organization_id", "b2c6f35e-9d71-4238-a256-b7c11b48e827"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.298319"], ["updated_at", "2015-07-06 21:23:33.298319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd37aa002-51dd-4cc9-a337-1d4255c2fe1a' AND "clubhouse_memberships"."organization_id" = 'b2c6f35e-9d71-4238-a256-b7c11b48e827') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d37aa002-51dd-4cc9-a337-1d4255c2fe1a"], ["organization_id", "b2c6f35e-9d71-4238-a256-b7c11b48e827"], ["created_at", "2015-07-06 21:23:33.304040"], ["updated_at", "2015-07-06 21:23:33.304040"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$8PdYc26GQWSn30Pr1XrajectrPtBxSkgW5Tj98TfWabTsV72pIgZy"], ["created_at", "2015-07-06 21:23:33.315701"], ["updated_at", "2015-07-06 21:23:33.315701"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.319520"], ["user_id", "c3727df6-b9b1-457c-a736-b7911093244b"], ["created_at", "2015-07-06 21:23:33.320709"], ["updated_at", "2015-07-06 21:23:33.320709"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'b2c6f35e-9d71-4238-a256-b7c11b48e827') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "b2c6f35e-9d71-4238-a256-b7c11b48e827"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.336392"], ["updated_at", "2015-07-06 21:23:33.336392"], ["token", "d4d5tGZ9X99yBbbX2yJ-fufF340CzRwLiiCq5mHOYF0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$6kKabWibNKpzKMDmIddO5OnQjySKfNlFrM4TDvsTRc6h7v7nxVbMW"], ["created_at", "2015-07-06 21:23:33.348358"], ["updated_at", "2015-07-06 21:23:33.348358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$zpBtu3LOuZ7sjDSwD7V0ce/L30ZNSchcDHj1WyIauXMtzCUx9Y5Y2"], ["created_at", "2015-07-06 21:23:33.353882"], ["updated_at", "2015-07-06 21:23:33.353882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.355476"], ["user_id", "5e37c0be-72f9-43a1-b30e-07b2fef1a825"], ["created_at", "2015-07-06 21:23:33.356277"], ["updated_at", "2015-07-06 21:23:33.356277"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.361757"], ["updated_at", "2015-07-06 21:23:33.361757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e37c0be-72f9-43a1-b30e-07b2fef1a825' AND "clubhouse_memberships"."organization_id" = 'd53d4fcf-f0ac-4385-ba9c-99dc04a95868') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5e37c0be-72f9-43a1-b30e-07b2fef1a825"], ["organization_id", "d53d4fcf-f0ac-4385-ba9c-99dc04a95868"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.365069"], ["updated_at", "2015-07-06 21:23:33.365069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bc7a39c9-0dcd-4063-8766-ad266012472f' AND "clubhouse_memberships"."organization_id" = 'd53d4fcf-f0ac-4385-ba9c-99dc04a95868') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bc7a39c9-0dcd-4063-8766-ad266012472f"], ["organization_id", "d53d4fcf-f0ac-4385-ba9c-99dc04a95868"], ["created_at", "2015-07-06 21:23:33.368000"], ["updated_at", "2015-07-06 21:23:33.368000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$/wizg6M/GmekLkYoyI91v.qOjHcvY6IJP4Hw1oXV3x4ORlYx2n4Eu"], ["created_at", "2015-07-06 21:23:33.373393"], ["updated_at", "2015-07-06 21:23:33.373393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.375895"], ["user_id", "2995bb2f-d21d-4cb6-a662-40ce7140a19b"], ["created_at", "2015-07-06 21:23:33.377001"], ["updated_at", "2015-07-06 21:23:33.377001"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'd53d4fcf-f0ac-4385-ba9c-99dc04a95868') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "d53d4fcf-f0ac-4385-ba9c-99dc04a95868"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.388534"], ["updated_at", "2015-07-06 21:23:33.388534"], ["token", "Zr_M6cpmTNvmJKqIKe0ohAL0UvRmPUSYYMqw_s6pVE0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:33.395546') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8c1c2aa9-3b42-4918-a58d-aa0c0c0cff83"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:33.398801"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:33.402120"], ["id", "8c1c2aa9-3b42-4918-a58d-aa0c0c0cff83"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2995bb2f-d21d-4cb6-a662-40ce7140a19b"]] Unpermitted parameters: organization_id, membership  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 24ms (ActiveRecord: 3.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$gGD9p1Ul8FehUOfh0MA8F.FF/qv6kMXBFTSY64Iho0zOyetn1DjwG"], ["created_at", "2015-07-06 21:23:33.430213"], ["updated_at", "2015-07-06 21:23:33.430213"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$XUMBGQBDwJ5OXGpJ0dSysubRVJ6z3uUJqKDMt7pVbOo7DfBtgPl/W"], ["created_at", "2015-07-06 21:23:33.442664"], ["updated_at", "2015-07-06 21:23:33.442664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.446476"], ["user_id", "051b43cd-6d13-42d9-93a2-e5ee59aff1b8"], ["created_at", "2015-07-06 21:23:33.447296"], ["updated_at", "2015-07-06 21:23:33.447296"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.463221"], ["updated_at", "2015-07-06 21:23:33.463221"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '051b43cd-6d13-42d9-93a2-e5ee59aff1b8' AND "clubhouse_memberships"."organization_id" = 'f2297a05-dac8-41e1-a84e-9ad1bc83ebb8') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "051b43cd-6d13-42d9-93a2-e5ee59aff1b8"], ["organization_id", "f2297a05-dac8-41e1-a84e-9ad1bc83ebb8"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.470633"], ["updated_at", "2015-07-06 21:23:33.470633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '28d6f1b5-d1ba-4de1-bb58-e18367f3f695' AND "clubhouse_memberships"."organization_id" = 'f2297a05-dac8-41e1-a84e-9ad1bc83ebb8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "28d6f1b5-d1ba-4de1-bb58-e18367f3f695"], ["organization_id", "f2297a05-dac8-41e1-a84e-9ad1bc83ebb8"], ["created_at", "2015-07-06 21:23:33.475589"], ["updated_at", "2015-07-06 21:23:33.475589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$Hjhim/t7ON9AXJKR.dh7eeqWBxMKWxlvwltfGgFRe4jVWYF3BMIZK"], ["created_at", "2015-07-06 21:23:33.483108"], ["updated_at", "2015-07-06 21:23:33.483108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.486102"], ["user_id", "46725214-7bec-4c47-8f44-56dadf8ac754"], ["created_at", "2015-07-06 21:23:33.487020"], ["updated_at", "2015-07-06 21:23:33.487020"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'f2297a05-dac8-41e1-a84e-9ad1bc83ebb8') LIMIT 1 SQL (1.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "f2297a05-dac8-41e1-a84e-9ad1bc83ebb8"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.496174"], ["updated_at", "2015-07-06 21:23:33.496174"], ["token", "xLfek53cby2TsAU8Z_CKXdR8ufOzRoUwal0Hy5boh9A"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"xLfek53cby2TsAU8Z_CKXdR8ufOzRoUwal0Hy5boh9A", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:33.507676') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ea754965-d441-43fd-aa3c-a987e6227227"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:33.510304"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:33.512751"], ["id", "ea754965-d441-43fd-aa3c-a987e6227227"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "46725214-7bec-4c47-8f44-56dadf8ac754"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.5ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "xLfek53cby2TsAU8Z_CKXdR8ufOzRoUwal0Hy5boh9A"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f2297a05-dac8-41e1-a84e-9ad1bc83ebb8"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46725214-7bec-4c47-8f44-56dadf8ac754' AND "clubhouse_memberships"."organization_id" = 'f2297a05-dac8-41e1-a84e-9ad1bc83ebb8') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "f2297a05-dac8-41e1-a84e-9ad1bc83ebb8"], ["member_id", "46725214-7bec-4c47-8f44-56dadf8ac754"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.531228"], ["updated_at", "2015-07-06 21:23:33.531228"]] SQL (1.0ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "c086e1eb-6237-4799-af46-806cb5c277cc"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 37ms (Views: 3.4ms | ActiveRecord: 6.2ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$u7zq02piiRWtXfc3kKS/ruR2tcQ4B2sR7dM4rIiRe7/vEUOHJCz2K"], ["created_at", "2015-07-06 21:23:33.562642"], ["updated_at", "2015-07-06 21:23:33.562642"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$AXz0iS4geEs.0n.GXkRW7Ocapk2lSWXLKIDXusmYWNLOWuk/Cp0oi"], ["created_at", "2015-07-06 21:23:33.573392"], ["updated_at", "2015-07-06 21:23:33.573392"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.579328"], ["user_id", "807badd4-633d-40ce-8ae4-8fd9f4a6ce44"], ["created_at", "2015-07-06 21:23:33.580823"], ["updated_at", "2015-07-06 21:23:33.580823"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.594334"], ["updated_at", "2015-07-06 21:23:33.594334"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '807badd4-633d-40ce-8ae4-8fd9f4a6ce44' AND "clubhouse_memberships"."organization_id" = 'caf56f10-4873-4ab2-b044-003a1acf0230') LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "807badd4-633d-40ce-8ae4-8fd9f4a6ce44"], ["organization_id", "caf56f10-4873-4ab2-b044-003a1acf0230"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.600591"], ["updated_at", "2015-07-06 21:23:33.600591"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '385b4127-aade-49c3-b83b-6ec8e9aecffa' AND "clubhouse_memberships"."organization_id" = 'caf56f10-4873-4ab2-b044-003a1acf0230') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "385b4127-aade-49c3-b83b-6ec8e9aecffa"], ["organization_id", "caf56f10-4873-4ab2-b044-003a1acf0230"], ["created_at", "2015-07-06 21:23:33.612624"], ["updated_at", "2015-07-06 21:23:33.612624"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$mHOaiHu40fiojsCV9s5tPO3x85qMN9gg3.1Xb3btP5PN5m92Btrm."], ["created_at", "2015-07-06 21:23:33.633004"], ["updated_at", "2015-07-06 21:23:33.633004"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$PkDMy9G.QrLQkRAefIzeKOpAue3MfjikBeY6xufhQZpOLzzRDMnXO"], ["created_at", "2015-07-06 21:23:33.639949"], ["updated_at", "2015-07-06 21:23:33.639949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.642314"], ["user_id", "9e481f48-05ae-44b5-b8b1-dcdede3a7abe"], ["created_at", "2015-07-06 21:23:33.643425"], ["updated_at", "2015-07-06 21:23:33.643425"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.647806"], ["updated_at", "2015-07-06 21:23:33.647806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e481f48-05ae-44b5-b8b1-dcdede3a7abe' AND "clubhouse_memberships"."organization_id" = 'c74f180e-de08-45d7-be1c-ad580ee9e940') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e481f48-05ae-44b5-b8b1-dcdede3a7abe"], ["organization_id", "c74f180e-de08-45d7-be1c-ad580ee9e940"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.651504"], ["updated_at", "2015-07-06 21:23:33.651504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6caffef1-8048-4d4e-80ac-7f9e692038fc' AND "clubhouse_memberships"."organization_id" = 'c74f180e-de08-45d7-be1c-ad580ee9e940') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6caffef1-8048-4d4e-80ac-7f9e692038fc"], ["organization_id", "c74f180e-de08-45d7-be1c-ad580ee9e940"], ["created_at", "2015-07-06 21:23:33.655260"], ["updated_at", "2015-07-06 21:23:33.655260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/df5e4823-bff0-4dae-a8f4-d9cb41fa49cb" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"df5e4823-bff0-4dae-a8f4-d9cb41fa49cb", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:33.658900') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fef7e50d-0d31-40a2-949b-4013cd40b759"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:33.661347"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:33.662712"], ["id", "fef7e50d-0d31-40a2-949b-4013cd40b759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "df5e4823-bff0-4dae-a8f4-d9cb41fa49cb"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9e481f48-05ae-44b5-b8b1-dcdede3a7abe"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c74f180e-de08-45d7-be1c-ad580ee9e940"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9e481f48-05ae-44b5-b8b1-dcdede3a7abe' LIMIT 1 [["organization_id", "c74f180e-de08-45d7-be1c-ad580ee9e940"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6caffef1-8048-4d4e-80ac-7f9e692038fc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "df5e4823-bff0-4dae-a8f4-d9cb41fa49cb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 12ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$QYBqqhIiq4db5FPJS5Lzl.C33T.lgsbaJyAkWw.G3bwXNRs1zF.Zi"], ["created_at", "2015-07-06 21:23:33.678360"], ["updated_at", "2015-07-06 21:23:33.678360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$MpqOS3tUn61bk3RdM9nmoO1jAmohbhCDDr.rlqkCiA0gc7F5DL79i"], ["created_at", "2015-07-06 21:23:33.684109"], ["updated_at", "2015-07-06 21:23:33.684109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.685987"], ["user_id", "261994d7-f604-46fd-a8ad-301fddee9129"], ["created_at", "2015-07-06 21:23:33.686631"], ["updated_at", "2015-07-06 21:23:33.686631"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.692090"], ["updated_at", "2015-07-06 21:23:33.692090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '261994d7-f604-46fd-a8ad-301fddee9129' AND "clubhouse_memberships"."organization_id" = '7432fbba-bee0-4f87-8957-eb6f312afe1f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "261994d7-f604-46fd-a8ad-301fddee9129"], ["organization_id", "7432fbba-bee0-4f87-8957-eb6f312afe1f"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.696082"], ["updated_at", "2015-07-06 21:23:33.696082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8f1e9dc2-06a4-47a5-8499-12bc0422faee' AND "clubhouse_memberships"."organization_id" = '7432fbba-bee0-4f87-8957-eb6f312afe1f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8f1e9dc2-06a4-47a5-8499-12bc0422faee"], ["organization_id", "7432fbba-bee0-4f87-8957-eb6f312afe1f"], ["created_at", "2015-07-06 21:23:33.699338"], ["updated_at", "2015-07-06 21:23:33.699338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$z2FG1RrBnP5U9IpSxwkzOu64p/Fdoo1Kziv3PJa3OIoa57nvhKhv2"], ["created_at", "2015-07-06 21:23:33.705892"], ["updated_at", "2015-07-06 21:23:33.705892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.708805"], ["user_id", "cce45f78-9492-4222-8d30-21d287530466"], ["created_at", "2015-07-06 21:23:33.709744"], ["updated_at", "2015-07-06 21:23:33.709744"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '7432fbba-bee0-4f87-8957-eb6f312afe1f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "7432fbba-bee0-4f87-8957-eb6f312afe1f"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.716182"], ["updated_at", "2015-07-06 21:23:33.716182"], ["token", "Iia1npZ0hqofzN1MkvD4BqmRkOZcgQ2ubCL44ZBjeTc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$K2vmptp.OlbcKJjbjxsZj.b.cBpv7GYq.7OP5DsAAHgqWdfkQJB8q"], ["created_at", "2015-07-06 21:23:33.725892"], ["updated_at", "2015-07-06 21:23:33.725892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$LKGtGdQUjdzWiRga0oQcF.SLmwLYRifaVNbwPQG0Y1tMwwmTW6.8m"], ["created_at", "2015-07-06 21:23:33.731590"], ["updated_at", "2015-07-06 21:23:33.731590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.733307"], ["user_id", "04df06ae-6016-42ba-b626-2b4c7ab18579"], ["created_at", "2015-07-06 21:23:33.733988"], ["updated_at", "2015-07-06 21:23:33.733988"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.737968"], ["updated_at", "2015-07-06 21:23:33.737968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '04df06ae-6016-42ba-b626-2b4c7ab18579' AND "clubhouse_memberships"."organization_id" = '7236154c-0bb9-435b-96e1-cdfb409d7cfb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "04df06ae-6016-42ba-b626-2b4c7ab18579"], ["organization_id", "7236154c-0bb9-435b-96e1-cdfb409d7cfb"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.742469"], ["updated_at", "2015-07-06 21:23:33.742469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1261683f-f165-44bd-9987-25fc8602a6ab' AND "clubhouse_memberships"."organization_id" = '7236154c-0bb9-435b-96e1-cdfb409d7cfb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1261683f-f165-44bd-9987-25fc8602a6ab"], ["organization_id", "7236154c-0bb9-435b-96e1-cdfb409d7cfb"], ["created_at", "2015-07-06 21:23:33.746278"], ["updated_at", "2015-07-06 21:23:33.746278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$UgGSN3ZwIjAoQUe6t0hGq.YdW7QY09Ofdu9LrwUQyWiOhiE61zU.6"], ["created_at", "2015-07-06 21:23:33.752671"], ["updated_at", "2015-07-06 21:23:33.752671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.754493"], ["user_id", "790c4624-ac84-47e6-8efd-dd276e8e7c1d"], ["created_at", "2015-07-06 21:23:33.755704"], ["updated_at", "2015-07-06 21:23:33.755704"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '7236154c-0bb9-435b-96e1-cdfb409d7cfb') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "7236154c-0bb9-435b-96e1-cdfb409d7cfb"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.763809"], ["updated_at", "2015-07-06 21:23:33.763809"], ["token", "vPOGeEmGwnFS-DZd18wpZcub-82FXcMNi1wA03HO2mc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/7236154c-0bb9-435b-96e1-cdfb409d7cfb/memberships" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"vPOGeEmGwnFS-DZd18wpZcub-82FXcMNi1wA03HO2mc", "organization_id"=>"7236154c-0bb9-435b-96e1-cdfb409d7cfb", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:33.768184') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "897e4b52-fa70-4b38-bfcc-10aab80cbdc4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:33.769865"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:33.770979"], ["id", "897e4b52-fa70-4b38-bfcc-10aab80cbdc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "7236154c-0bb9-435b-96e1-cdfb409d7cfb"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "790c4624-ac84-47e6-8efd-dd276e8e7c1d"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "vPOGeEmGwnFS-DZd18wpZcub-82FXcMNi1wA03HO2mc"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7236154c-0bb9-435b-96e1-cdfb409d7cfb"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '790c4624-ac84-47e6-8efd-dd276e8e7c1d' AND "clubhouse_memberships"."organization_id" = '7236154c-0bb9-435b-96e1-cdfb409d7cfb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "7236154c-0bb9-435b-96e1-cdfb409d7cfb"], ["member_id", "790c4624-ac84-47e6-8efd-dd276e8e7c1d"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.781862"], ["updated_at", "2015-07-06 21:23:33.781862"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "87ba6112-3360-4237-911a-2ce6ba31ab7d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.7ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$t7UKDZG7hUflOcxkEqrkCu7Ul.UcTwtQ/.OQydNix6TMVXgmsuQiO"], ["created_at", "2015-07-06 21:23:33.792753"], ["updated_at", "2015-07-06 21:23:33.792753"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$u03lgySHXwNGIKyclTSKgOADdVstw/S4uDgfWH5/iciHZBfilzlHO"], ["created_at", "2015-07-06 21:23:33.799456"], ["updated_at", "2015-07-06 21:23:33.799456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.801257"], ["user_id", "660c3306-5a05-44b9-ad51-1b115185c868"], ["created_at", "2015-07-06 21:23:33.802107"], ["updated_at", "2015-07-06 21:23:33.802107"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.807804"], ["updated_at", "2015-07-06 21:23:33.807804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '660c3306-5a05-44b9-ad51-1b115185c868' AND "clubhouse_memberships"."organization_id" = 'a941287f-69d5-4d62-a2f0-e49b4d0a295a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "660c3306-5a05-44b9-ad51-1b115185c868"], ["organization_id", "a941287f-69d5-4d62-a2f0-e49b4d0a295a"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.812841"], ["updated_at", "2015-07-06 21:23:33.812841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '992ccee1-cbab-49ba-a78b-b6dc09a9c507' AND "clubhouse_memberships"."organization_id" = 'a941287f-69d5-4d62-a2f0-e49b4d0a295a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "992ccee1-cbab-49ba-a78b-b6dc09a9c507"], ["organization_id", "a941287f-69d5-4d62-a2f0-e49b4d0a295a"], ["created_at", "2015-07-06 21:23:33.815986"], ["updated_at", "2015-07-06 21:23:33.815986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$NNiBOds7/BiDCkncW6cyXuoPJ1vtvVKuRY9BCMENPI0fjryeqf.km"], ["created_at", "2015-07-06 21:23:33.822117"], ["updated_at", "2015-07-06 21:23:33.822117"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.824818"], ["user_id", "c308b4e2-13b0-458f-84ee-e75099fbab91"], ["created_at", "2015-07-06 21:23:33.826026"], ["updated_at", "2015-07-06 21:23:33.826026"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a941287f-69d5-4d62-a2f0-e49b4d0a295a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a941287f-69d5-4d62-a2f0-e49b4d0a295a"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.831710"], ["updated_at", "2015-07-06 21:23:33.831710"], ["token", "h0EBBSwhP8zJeF5A61WMqgf50rgSfIhXg2I82IzZxbk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/a941287f-69d5-4d62-a2f0-e49b4d0a295a/memberships" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"a941287f-69d5-4d62-a2f0-e49b4d0a295a", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:33.834922') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8a7e5285-2ea7-46c3-9e9b-9ba6671b75b0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:33.836660"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:33.837508"], ["id", "8a7e5285-2ea7-46c3-9e9b-9ba6671b75b0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "a941287f-69d5-4d62-a2f0-e49b4d0a295a"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c308b4e2-13b0-458f-84ee-e75099fbab91"]] Unpermitted parameters: organization_id, membership  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms (ActiveRecord: 1.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$RiXUVnj1UiMNMv6FK.BWAO7dmFU3iYh1hgwHLRDTBhA3eOW8NimUG"], ["created_at", "2015-07-06 21:23:33.853256"], ["updated_at", "2015-07-06 21:23:33.853256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$sIaUhrHppxuw1n3LfEGn8OtTYBy2gue1pOHT0i2EhLyLOxLAyHhZi"], ["created_at", "2015-07-06 21:23:33.860229"], ["updated_at", "2015-07-06 21:23:33.860229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.862784"], ["user_id", "b6ac2bb2-b103-4d1e-a426-ac71e8ac741e"], ["created_at", "2015-07-06 21:23:33.863473"], ["updated_at", "2015-07-06 21:23:33.863473"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.867904"], ["updated_at", "2015-07-06 21:23:33.867904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b6ac2bb2-b103-4d1e-a426-ac71e8ac741e' AND "clubhouse_memberships"."organization_id" = '1a52c48a-eb5c-4df7-ac77-845f170239f6') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b6ac2bb2-b103-4d1e-a426-ac71e8ac741e"], ["organization_id", "1a52c48a-eb5c-4df7-ac77-845f170239f6"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.871303"], ["updated_at", "2015-07-06 21:23:33.871303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36fa3fc5-11e3-4699-888a-45d3ec2a022f' AND "clubhouse_memberships"."organization_id" = '1a52c48a-eb5c-4df7-ac77-845f170239f6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36fa3fc5-11e3-4699-888a-45d3ec2a022f"], ["organization_id", "1a52c48a-eb5c-4df7-ac77-845f170239f6"], ["created_at", "2015-07-06 21:23:33.874229"], ["updated_at", "2015-07-06 21:23:33.874229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$VzKCBorhuTL1AKkW2x9NS.6mfZXB/IDuw0KMM7iHAJd8cGBefvbp."], ["created_at", "2015-07-06 21:23:33.885959"], ["updated_at", "2015-07-06 21:23:33.885959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$cF8jkIE8ZnewmvrCdxH/f.Oiyp2xclo3MlJ774PkZBBt7uLij5fqS"], ["created_at", "2015-07-06 21:23:33.892216"], ["updated_at", "2015-07-06 21:23:33.892216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:33.894657"], ["user_id", "9a5ef9d4-3717-4214-9a5a-d301aff02d77"], ["created_at", "2015-07-06 21:23:33.895541"], ["updated_at", "2015-07-06 21:23:33.895541"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:33.901164"], ["updated_at", "2015-07-06 21:23:33.901164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9a5ef9d4-3717-4214-9a5a-d301aff02d77' AND "clubhouse_memberships"."organization_id" = 'ee6dc5ba-c51f-4ae2-9046-96d3370d1418') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9a5ef9d4-3717-4214-9a5a-d301aff02d77"], ["organization_id", "ee6dc5ba-c51f-4ae2-9046-96d3370d1418"], ["admin", "t"], ["created_at", "2015-07-06 21:23:33.904891"], ["updated_at", "2015-07-06 21:23:33.904891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4fac29a4-d64f-48ef-b7f7-50599f501158' AND "clubhouse_memberships"."organization_id" = 'ee6dc5ba-c51f-4ae2-9046-96d3370d1418') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4fac29a4-d64f-48ef-b7f7-50599f501158"], ["organization_id", "ee6dc5ba-c51f-4ae2-9046-96d3370d1418"], ["created_at", "2015-07-06 21:23:33.907977"], ["updated_at", "2015-07-06 21:23:33.907977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:33 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:33.912206') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "cdbd4db4-d353-4f8e-9895-da1aa04d1484"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:33.913773"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:33.914663"], ["id", "cdbd4db4-d353-4f8e-9895-da1aa04d1484"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9a5ef9d4-3717-4214-9a5a-d301aff02d77"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9a5ef9d4-3717-4214-9a5a-d301aff02d77' LIMIT 1 [["organization_id", "ee6dc5ba-c51f-4ae2-9046-96d3370d1418"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "ee6dc5ba-c51f-4ae2-9046-96d3370d1418"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9a5ef9d4-3717-4214-9a5a-d301aff02d77"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4fac29a4-d64f-48ef-b7f7-50599f501158"]] Completed 200 OK in 12ms (Views: 2.6ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (1.1ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$Pb1OhLsfWvwoRNRp20UG/.SuEXg.jxIp2VkGrRj0fKoDRqWfwdGWC"], ["created_at", "2015-07-06 21:23:41.671188"], ["updated_at", "2015-07-06 21:23:41.671188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$mu8mugFRmhUs67tqFFv9WOw/eAq8gN/GSo.ycmTmo8JDwj43EHFTu"], ["created_at", "2015-07-06 21:23:41.680262"], ["updated_at", "2015-07-06 21:23:41.680262"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:41.702405"], ["user_id", "4bc13964-668b-49a1-aab5-983c25fbf5a3"], ["created_at", "2015-07-06 21:23:41.706677"], ["updated_at", "2015-07-06 21:23:41.706677"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:41.724784"], ["updated_at", "2015-07-06 21:23:41.724784"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4bc13964-668b-49a1-aab5-983c25fbf5a3' AND "clubhouse_memberships"."organization_id" = '1fe1c671-3bf9-4ba1-9fa0-635ac0ab4cb1') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4bc13964-668b-49a1-aab5-983c25fbf5a3"], ["organization_id", "1fe1c671-3bf9-4ba1-9fa0-635ac0ab4cb1"], ["admin", "t"], ["created_at", "2015-07-06 21:23:41.737909"], ["updated_at", "2015-07-06 21:23:41.737909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02f1df81-dfce-4139-838d-6adfc88ce47c' AND "clubhouse_memberships"."organization_id" = '1fe1c671-3bf9-4ba1-9fa0-635ac0ab4cb1') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "02f1df81-dfce-4139-838d-6adfc88ce47c"], ["organization_id", "1fe1c671-3bf9-4ba1-9fa0-635ac0ab4cb1"], ["created_at", "2015-07-06 21:23:41.742183"], ["updated_at", "2015-07-06 21:23:41.742183"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/6901c9dd-1a3f-4c28-979a-453af26a1ad3" for 127.0.0.1 at 2015-07-06 14:23:41 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"6901c9dd-1a3f-4c28-979a-453af26a1ad3", "membership"=>{"admin"=>true}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:41.765939') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "db89afde-e01b-4b3b-a0c7-9a9e57b95f12"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:41.778331"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:41.780504"], ["id", "db89afde-e01b-4b3b-a0c7-9a9e57b95f12"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "6901c9dd-1a3f-4c28-979a-453af26a1ad3"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4bc13964-668b-49a1-aab5-983c25fbf5a3"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1fe1c671-3bf9-4ba1-9fa0-635ac0ab4cb1"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '4bc13964-668b-49a1-aab5-983c25fbf5a3' LIMIT 1 [["organization_id", "1fe1c671-3bf9-4ba1-9fa0-635ac0ab4cb1"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "02f1df81-dfce-4139-838d-6adfc88ce47c"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '02f1df81-dfce-4139-838d-6adfc88ce47c' AND "clubhouse_memberships"."id" != '6901c9dd-1a3f-4c28-979a-453af26a1ad3' AND "clubhouse_memberships"."organization_id" = '1fe1c671-3bf9-4ba1-9fa0-635ac0ab4cb1') LIMIT 1 SQL (0.4ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:23:41.814076"], ["id", "6901c9dd-1a3f-4c28-979a-453af26a1ad3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 65ms (Views: 14.0ms | ActiveRecord: 4.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$bBQC3mmBrkbvZNr5Tdk26eZQuVVFpf7PSKy8ri2RymThy.XIS.DCq"], ["created_at", "2015-07-06 21:23:41.843389"], ["updated_at", "2015-07-06 21:23:41.843389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$8SToZ5RXZZ/2Hv44LNCqs.N9B9JT/uCAvCnv/JR.5TY0zZQYCl8N."], ["created_at", "2015-07-06 21:23:41.850558"], ["updated_at", "2015-07-06 21:23:41.850558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:41.852370"], ["user_id", "9ae67063-09d0-440e-aa47-84083998e448"], ["created_at", "2015-07-06 21:23:41.853086"], ["updated_at", "2015-07-06 21:23:41.853086"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:41.857863"], ["updated_at", "2015-07-06 21:23:41.857863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9ae67063-09d0-440e-aa47-84083998e448' AND "clubhouse_memberships"."organization_id" = '3d56e495-db32-4476-921e-13235c30ace6') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9ae67063-09d0-440e-aa47-84083998e448"], ["organization_id", "3d56e495-db32-4476-921e-13235c30ace6"], ["admin", "t"], ["created_at", "2015-07-06 21:23:41.862265"], ["updated_at", "2015-07-06 21:23:41.862265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '34434368-59c2-433b-b16e-519939409128' AND "clubhouse_memberships"."organization_id" = '3d56e495-db32-4476-921e-13235c30ace6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "34434368-59c2-433b-b16e-519939409128"], ["organization_id", "3d56e495-db32-4476-921e-13235c30ace6"], ["created_at", "2015-07-06 21:23:41.866290"], ["updated_at", "2015-07-06 21:23:41.866290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:41 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$o//S2amnWsa84dV/QPLXZuQ0TZhVzsOjvc18HDX2JAMW1m9fRROMS"], ["created_at", "2015-07-06 21:23:41.880037"], ["updated_at", "2015-07-06 21:23:41.880037"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$l5Z2FkV682ke0ExhWo6OVu.W99ldZZ7DHYHsASwOhqfN94bNblzcm"], ["created_at", "2015-07-06 21:23:41.889692"], ["updated_at", "2015-07-06 21:23:41.889692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:41.891517"], ["user_id", "bd68a370-f3f8-4e8b-8e60-c9480a104039"], ["created_at", "2015-07-06 21:23:41.892192"], ["updated_at", "2015-07-06 21:23:41.892192"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:41.898287"], ["updated_at", "2015-07-06 21:23:41.898287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bd68a370-f3f8-4e8b-8e60-c9480a104039' AND "clubhouse_memberships"."organization_id" = '04561276-9c9e-4c51-8f89-45aff5bf6c26') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bd68a370-f3f8-4e8b-8e60-c9480a104039"], ["organization_id", "04561276-9c9e-4c51-8f89-45aff5bf6c26"], ["admin", "t"], ["created_at", "2015-07-06 21:23:41.903001"], ["updated_at", "2015-07-06 21:23:41.903001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b8801b02-2ca7-4e72-b65c-863ffc866330' AND "clubhouse_memberships"."organization_id" = '04561276-9c9e-4c51-8f89-45aff5bf6c26') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b8801b02-2ca7-4e72-b65c-863ffc866330"], ["organization_id", "04561276-9c9e-4c51-8f89-45aff5bf6c26"], ["created_at", "2015-07-06 21:23:41.906432"], ["updated_at", "2015-07-06 21:23:41.906432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5120d24b-8cfe-4076-b303-b0f815f7a5ee" for 127.0.0.1 at 2015-07-06 14:23:41 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"5120d24b-8cfe-4076-b303-b0f815f7a5ee", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:41.909837') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "565e816a-f4bf-45b1-8863-5233cb06c8f0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:41.911814"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:41.912850"], ["id", "565e816a-f4bf-45b1-8863-5233cb06c8f0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "5120d24b-8cfe-4076-b303-b0f815f7a5ee"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bd68a370-f3f8-4e8b-8e60-c9480a104039"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "04561276-9c9e-4c51-8f89-45aff5bf6c26"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'bd68a370-f3f8-4e8b-8e60-c9480a104039' LIMIT 1 [["organization_id", "04561276-9c9e-4c51-8f89-45aff5bf6c26"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b8801b02-2ca7-4e72-b65c-863ffc866330"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "5120d24b-8cfe-4076-b303-b0f815f7a5ee"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 14ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$6FVGm9mPU3nSCyZC4VR16.BYplNA2dU4LXI66/xr52FLQWQuOhMga"], ["created_at", "2015-07-06 21:23:41.933199"], ["updated_at", "2015-07-06 21:23:41.933199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$CDLZY/U8B6i2qOi4DG1qOeSdzYeYdcT477Jm4siXNr3U4Uznmhq0C"], ["created_at", "2015-07-06 21:23:41.939689"], ["updated_at", "2015-07-06 21:23:41.939689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:41.941442"], ["user_id", "f25c7cd3-6d4f-4cd2-8078-179161578c3f"], ["created_at", "2015-07-06 21:23:41.942075"], ["updated_at", "2015-07-06 21:23:41.942075"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:41.946364"], ["updated_at", "2015-07-06 21:23:41.946364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f25c7cd3-6d4f-4cd2-8078-179161578c3f' AND "clubhouse_memberships"."organization_id" = 'ef538a0e-b6ef-4c41-b4f8-324bf2820d70') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f25c7cd3-6d4f-4cd2-8078-179161578c3f"], ["organization_id", "ef538a0e-b6ef-4c41-b4f8-324bf2820d70"], ["admin", "t"], ["created_at", "2015-07-06 21:23:41.949531"], ["updated_at", "2015-07-06 21:23:41.949531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '01d8fc13-ca66-4913-bbe3-01fdc91aad23' AND "clubhouse_memberships"."organization_id" = 'ef538a0e-b6ef-4c41-b4f8-324bf2820d70') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "01d8fc13-ca66-4913-bbe3-01fdc91aad23"], ["organization_id", "ef538a0e-b6ef-4c41-b4f8-324bf2820d70"], ["created_at", "2015-07-06 21:23:41.961809"], ["updated_at", "2015-07-06 21:23:41.961809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:41 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$ec9bK4wv7smmQcuKV/UWt.Damq.nw9BU3.3UgIxYp3t8zx8MCvdGG"], ["created_at", "2015-07-06 21:23:41.971617"], ["updated_at", "2015-07-06 21:23:41.971617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$mF0tYmER/Z9fNd26MliU6.PSKaCntxO/wq7XtpySXpwYjXdO/gJwK"], ["created_at", "2015-07-06 21:23:41.977878"], ["updated_at", "2015-07-06 21:23:41.977878"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:41.981896"], ["user_id", "2fa711bf-e0c3-4e25-a2e5-9efcb60a8cc0"], ["created_at", "2015-07-06 21:23:41.982604"], ["updated_at", "2015-07-06 21:23:41.982604"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:41.987197"], ["updated_at", "2015-07-06 21:23:41.987197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fa711bf-e0c3-4e25-a2e5-9efcb60a8cc0' AND "clubhouse_memberships"."organization_id" = 'b68df3cd-9212-4004-8e8a-7a581139ca22') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2fa711bf-e0c3-4e25-a2e5-9efcb60a8cc0"], ["organization_id", "b68df3cd-9212-4004-8e8a-7a581139ca22"], ["admin", "t"], ["created_at", "2015-07-06 21:23:41.990332"], ["updated_at", "2015-07-06 21:23:41.990332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fa96a56f-4473-4897-abd2-f6c5f527b9cb' AND "clubhouse_memberships"."organization_id" = 'b68df3cd-9212-4004-8e8a-7a581139ca22') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fa96a56f-4473-4897-abd2-f6c5f527b9cb"], ["organization_id", "b68df3cd-9212-4004-8e8a-7a581139ca22"], ["created_at", "2015-07-06 21:23:41.993816"], ["updated_at", "2015-07-06 21:23:41.993816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:41 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:41.996729') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c0bb4267-f5be-4c8a-b545-db3e99109985"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:41.998073"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:41.998756"], ["id", "c0bb4267-f5be-4c8a-b545-db3e99109985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2fa711bf-e0c3-4e25-a2e5-9efcb60a8cc0"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '2fa711bf-e0c3-4e25-a2e5-9efcb60a8cc0' LIMIT 1 [["organization_id", "b68df3cd-9212-4004-8e8a-7a581139ca22"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "b68df3cd-9212-4004-8e8a-7a581139ca22"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2fa711bf-e0c3-4e25-a2e5-9efcb60a8cc0"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "fa96a56f-4473-4897-abd2-f6c5f527b9cb"]] Completed 200 OK in 19ms (Views: 5.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$ZDA2f38MV9vn1QDvXk/7iOzJc5v5JsybrBSQucuPKmSVPXXhFH/wm"], ["created_at", "2015-07-06 21:23:42.027014"], ["updated_at", "2015-07-06 21:23:42.027014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$YKK2Uhug//bGcVpnxQ0whuZ9HHx4Luzk7BgDo149kj1GwzppDnSXW"], ["created_at", "2015-07-06 21:23:42.036243"], ["updated_at", "2015-07-06 21:23:42.036243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.038567"], ["user_id", "a9e4238f-5722-44cc-b424-0b3babe1a9c5"], ["created_at", "2015-07-06 21:23:42.039422"], ["updated_at", "2015-07-06 21:23:42.039422"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.044645"], ["updated_at", "2015-07-06 21:23:42.044645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9e4238f-5722-44cc-b424-0b3babe1a9c5' AND "clubhouse_memberships"."organization_id" = '7af3a5a1-33a2-457c-a432-11a5d2fb203b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9e4238f-5722-44cc-b424-0b3babe1a9c5"], ["organization_id", "7af3a5a1-33a2-457c-a432-11a5d2fb203b"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.048340"], ["updated_at", "2015-07-06 21:23:42.048340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eff5cd5b-488f-49aa-8ab1-7f1310e22b88' AND "clubhouse_memberships"."organization_id" = '7af3a5a1-33a2-457c-a432-11a5d2fb203b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "eff5cd5b-488f-49aa-8ab1-7f1310e22b88"], ["organization_id", "7af3a5a1-33a2-457c-a432-11a5d2fb203b"], ["created_at", "2015-07-06 21:23:42.051335"], ["updated_at", "2015-07-06 21:23:42.051335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$5O5KAgaru98zUyTPvSRbgOCrgGQ6YrKn6w7upfymfufzzRZU4kMSC"], ["created_at", "2015-07-06 21:23:42.063809"], ["updated_at", "2015-07-06 21:23:42.063809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$cb3FLDvp8Lg9XHoegDrE1uF10lfpibIigm3vCYaydbXCt.LzPTsmq"], ["created_at", "2015-07-06 21:23:42.070354"], ["updated_at", "2015-07-06 21:23:42.070354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.072005"], ["user_id", "e87bc3f7-7f62-44dd-9121-e9c8911326fd"], ["created_at", "2015-07-06 21:23:42.072595"], ["updated_at", "2015-07-06 21:23:42.072595"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.076541"], ["updated_at", "2015-07-06 21:23:42.076541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e87bc3f7-7f62-44dd-9121-e9c8911326fd' AND "clubhouse_memberships"."organization_id" = '2c03c281-0abc-4d71-a639-40642796d85c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e87bc3f7-7f62-44dd-9121-e9c8911326fd"], ["organization_id", "2c03c281-0abc-4d71-a639-40642796d85c"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.079581"], ["updated_at", "2015-07-06 21:23:42.079581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c76bc37f-9371-4303-aa06-7c9cd78ed7dd' AND "clubhouse_memberships"."organization_id" = '2c03c281-0abc-4d71-a639-40642796d85c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c76bc37f-9371-4303-aa06-7c9cd78ed7dd"], ["organization_id", "2c03c281-0abc-4d71-a639-40642796d85c"], ["created_at", "2015-07-06 21:23:42.082441"], ["updated_at", "2015-07-06 21:23:42.082441"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$Y7/F9ljET0f9SjeClz/fdOjLUy8JMFOb1kFcytPBuMoa8rRrjf9gS"], ["created_at", "2015-07-06 21:23:42.087516"], ["updated_at", "2015-07-06 21:23:42.087516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.089055"], ["user_id", "8c57522e-9890-46c6-bf36-1047ed8b318e"], ["created_at", "2015-07-06 21:23:42.089782"], ["updated_at", "2015-07-06 21:23:42.089782"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '2c03c281-0abc-4d71-a639-40642796d85c') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "2c03c281-0abc-4d71-a639-40642796d85c"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.100947"], ["updated_at", "2015-07-06 21:23:42.100947"], ["token", "u6lBfrCwGQFAFzzL1u500Wt0z95oOUBNgu13qTnWBJc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$lB1oRRrpHmDqzsVqvo0TTeTx0ntquTXIlnM9zLcWcznJMgOVxyvcm"], ["created_at", "2015-07-06 21:23:42.113792"], ["updated_at", "2015-07-06 21:23:42.113792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$iFrUMQdAAVjUITWlsS3tZusxeF71oDJE67bBsr8HWVvgdnk.CRaXi"], ["created_at", "2015-07-06 21:23:42.120349"], ["updated_at", "2015-07-06 21:23:42.120349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.122015"], ["user_id", "0af97204-586f-4816-a49f-c819e4e7c0ff"], ["created_at", "2015-07-06 21:23:42.122694"], ["updated_at", "2015-07-06 21:23:42.122694"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.126961"], ["updated_at", "2015-07-06 21:23:42.126961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0af97204-586f-4816-a49f-c819e4e7c0ff' AND "clubhouse_memberships"."organization_id" = '513376c0-7daa-49d6-849e-d7c2995da0b3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0af97204-586f-4816-a49f-c819e4e7c0ff"], ["organization_id", "513376c0-7daa-49d6-849e-d7c2995da0b3"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.130199"], ["updated_at", "2015-07-06 21:23:42.130199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1020a306-4244-4ff3-8203-290320b0ab8f' AND "clubhouse_memberships"."organization_id" = '513376c0-7daa-49d6-849e-d7c2995da0b3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1020a306-4244-4ff3-8203-290320b0ab8f"], ["organization_id", "513376c0-7daa-49d6-849e-d7c2995da0b3"], ["created_at", "2015-07-06 21:23:42.133189"], ["updated_at", "2015-07-06 21:23:42.133189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$lRAs29AXUK5F4MSZNiDXu.Q1KvZY6MsoBdmtlhidb1vyP9sAZOG92"], ["created_at", "2015-07-06 21:23:42.138598"], ["updated_at", "2015-07-06 21:23:42.138598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.140148"], ["user_id", "7d3212ff-9072-486c-87d4-8bc0b821cf06"], ["created_at", "2015-07-06 21:23:42.140899"], ["updated_at", "2015-07-06 21:23:42.140899"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '513376c0-7daa-49d6-849e-d7c2995da0b3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "513376c0-7daa-49d6-849e-d7c2995da0b3"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.145323"], ["updated_at", "2015-07-06 21:23:42.145323"], ["token", "FKMPgCnFLD-iPsGmWonNIrMgy_4cLIgQrA1eZgHtJdI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/513376c0-7daa-49d6-849e-d7c2995da0b3/memberships" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"FKMPgCnFLD-iPsGmWonNIrMgy_4cLIgQrA1eZgHtJdI", "organization_id"=>"513376c0-7daa-49d6-849e-d7c2995da0b3", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:42.148237') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "73add3c7-67a5-4a48-8773-624eaeee96e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:42.150328"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:42.151827"], ["id", "73add3c7-67a5-4a48-8773-624eaeee96e3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "513376c0-7daa-49d6-849e-d7c2995da0b3"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7d3212ff-9072-486c-87d4-8bc0b821cf06"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "FKMPgCnFLD-iPsGmWonNIrMgy_4cLIgQrA1eZgHtJdI"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "513376c0-7daa-49d6-849e-d7c2995da0b3"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7d3212ff-9072-486c-87d4-8bc0b821cf06' AND "clubhouse_memberships"."organization_id" = '513376c0-7daa-49d6-849e-d7c2995da0b3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "513376c0-7daa-49d6-849e-d7c2995da0b3"], ["member_id", "7d3212ff-9072-486c-87d4-8bc0b821cf06"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.165205"], ["updated_at", "2015-07-06 21:23:42.165205"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "4c728674-2533-41b9-8ea0-b8e993f7589f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 20ms (Views: 0.7ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$TCOgzt8EpghgGng2eRS4KORRBk8kDyxkgW9Z/lt0rNaf4asKinq12"], ["created_at", "2015-07-06 21:23:42.175381"], ["updated_at", "2015-07-06 21:23:42.175381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$oyuuPJFBvaCw3CK3A6N5T.mj7oLR0A/IGdEq0ecFDYQtL.70KkgZa"], ["created_at", "2015-07-06 21:23:42.180328"], ["updated_at", "2015-07-06 21:23:42.180328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.182268"], ["user_id", "d7fdf672-d555-4e75-b3a5-006d51f8091e"], ["created_at", "2015-07-06 21:23:42.183405"], ["updated_at", "2015-07-06 21:23:42.183405"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.190002"], ["updated_at", "2015-07-06 21:23:42.190002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7fdf672-d555-4e75-b3a5-006d51f8091e' AND "clubhouse_memberships"."organization_id" = '78909e8e-c705-4632-af86-a677e5e5992c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d7fdf672-d555-4e75-b3a5-006d51f8091e"], ["organization_id", "78909e8e-c705-4632-af86-a677e5e5992c"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.194505"], ["updated_at", "2015-07-06 21:23:42.194505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42462f2d-4d13-4eeb-a558-41bd7bfdef92' AND "clubhouse_memberships"."organization_id" = '78909e8e-c705-4632-af86-a677e5e5992c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "42462f2d-4d13-4eeb-a558-41bd7bfdef92"], ["organization_id", "78909e8e-c705-4632-af86-a677e5e5992c"], ["created_at", "2015-07-06 21:23:42.198293"], ["updated_at", "2015-07-06 21:23:42.198293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$jB.zWkLqq2tXAcQhfT9mn.hS65bvyJZZT/Pn/eweVl3Hl7ZEb4Awa"], ["created_at", "2015-07-06 21:23:42.205057"], ["updated_at", "2015-07-06 21:23:42.205057"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.208160"], ["user_id", "b3701d65-8c72-4735-befc-f87f6e50c422"], ["created_at", "2015-07-06 21:23:42.209098"], ["updated_at", "2015-07-06 21:23:42.209098"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '78909e8e-c705-4632-af86-a677e5e5992c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "78909e8e-c705-4632-af86-a677e5e5992c"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.216715"], ["updated_at", "2015-07-06 21:23:42.216715"], ["token", "GilNwet_brLZstoxQ6Y3-lV2p5xUvuW0L9VSsbwouhc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/78909e8e-c705-4632-af86-a677e5e5992c/memberships" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"78909e8e-c705-4632-af86-a677e5e5992c", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:42.221936') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "46b9b850-a5e4-458b-94e3-183f904acfc6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:42.223566"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:42.224275"], ["id", "46b9b850-a5e4-458b-94e3-183f904acfc6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "78909e8e-c705-4632-af86-a677e5e5992c"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b3701d65-8c72-4735-befc-f87f6e50c422"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$0cCQC.AWlpzJeztV/Mwt.O3m8v.8ERVcRI.z5x..xm/A8wN3VAMou"], ["created_at", "2015-07-06 21:23:42.235444"], ["updated_at", "2015-07-06 21:23:42.235444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$iPYoluv06.MnAmf8uFp9aOEnv07/QfPXMC5sLrFMlYSAryi0fH9fu"], ["created_at", "2015-07-06 21:23:42.240367"], ["updated_at", "2015-07-06 21:23:42.240367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.242513"], ["user_id", "c993d231-b7c9-44a0-9766-34962c56a19a"], ["created_at", "2015-07-06 21:23:42.243232"], ["updated_at", "2015-07-06 21:23:42.243232"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.247288"], ["updated_at", "2015-07-06 21:23:42.247288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c993d231-b7c9-44a0-9766-34962c56a19a' AND "clubhouse_memberships"."organization_id" = 'b7186191-dc27-4015-8b79-55a2b1d7759f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c993d231-b7c9-44a0-9766-34962c56a19a"], ["organization_id", "b7186191-dc27-4015-8b79-55a2b1d7759f"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.250261"], ["updated_at", "2015-07-06 21:23:42.250261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5e4eb5a5-2699-4a02-b3a7-2e8cd34c18f6' AND "clubhouse_memberships"."organization_id" = 'b7186191-dc27-4015-8b79-55a2b1d7759f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5e4eb5a5-2699-4a02-b3a7-2e8cd34c18f6"], ["organization_id", "b7186191-dc27-4015-8b79-55a2b1d7759f"], ["created_at", "2015-07-06 21:23:42.253058"], ["updated_at", "2015-07-06 21:23:42.253058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/b7186191-dc27-4015-8b79-55a2b1d7759f/memberships" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"b7186191-dc27-4015-8b79-55a2b1d7759f", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:42.255865') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dbabae00-f1b8-4af5-928f-560b09744096"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:42.257462"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:42.258200"], ["id", "dbabae00-f1b8-4af5-928f-560b09744096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "b7186191-dc27-4015-8b79-55a2b1d7759f"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c993d231-b7c9-44a0-9766-34962c56a19a"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'c993d231-b7c9-44a0-9766-34962c56a19a' LIMIT 1 [["organization_id", "b7186191-dc27-4015-8b79-55a2b1d7759f"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "b7186191-dc27-4015-8b79-55a2b1d7759f"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c993d231-b7c9-44a0-9766-34962c56a19a"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5e4eb5a5-2699-4a02-b3a7-2e8cd34c18f6"]] Completed 200 OK in 12ms (Views: 3.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$9TpeduKV8skVqojnuIH/UOnx.K4cqEeF0Z6aguroFEYoLjs68JJVG"], ["created_at", "2015-07-06 21:23:42.276452"], ["updated_at", "2015-07-06 21:23:42.276452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$Pnh3gBOfOz.2RaBMozAVSeahI/teXeGT6QSqINUkscXVbHjgeFlqi"], ["created_at", "2015-07-06 21:23:42.281594"], ["updated_at", "2015-07-06 21:23:42.281594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.283235"], ["user_id", "94d39c33-5ea5-48aa-9258-1fbde6bbcc16"], ["created_at", "2015-07-06 21:23:42.283812"], ["updated_at", "2015-07-06 21:23:42.283812"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.287771"], ["updated_at", "2015-07-06 21:23:42.287771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '94d39c33-5ea5-48aa-9258-1fbde6bbcc16' AND "clubhouse_memberships"."organization_id" = 'cf162495-2a5f-447e-9a45-726d8db2d24d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "94d39c33-5ea5-48aa-9258-1fbde6bbcc16"], ["organization_id", "cf162495-2a5f-447e-9a45-726d8db2d24d"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.291430"], ["updated_at", "2015-07-06 21:23:42.291430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d573f33-c69e-4dc4-973f-741ea0195a6e' AND "clubhouse_memberships"."organization_id" = 'cf162495-2a5f-447e-9a45-726d8db2d24d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5d573f33-c69e-4dc4-973f-741ea0195a6e"], ["organization_id", "cf162495-2a5f-447e-9a45-726d8db2d24d"], ["created_at", "2015-07-06 21:23:42.294775"], ["updated_at", "2015-07-06 21:23:42.294775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$mYXjfmsb.TzbM.b70jVqFuNgugNmSw84p6uiKlQiFGibrvmQPabGO"], ["created_at", "2015-07-06 21:23:42.304412"], ["updated_at", "2015-07-06 21:23:42.304412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$OIthc6dQV1EAhfTGM/424un3IK9bUSyru6ZFSwxDFD2wG.7ph29Zq"], ["created_at", "2015-07-06 21:23:42.311382"], ["updated_at", "2015-07-06 21:23:42.311382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.313137"], ["user_id", "87494465-4841-433a-8542-d05b5ab1443c"], ["created_at", "2015-07-06 21:23:42.313901"], ["updated_at", "2015-07-06 21:23:42.313901"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.318512"], ["updated_at", "2015-07-06 21:23:42.318512"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '87494465-4841-433a-8542-d05b5ab1443c' AND "clubhouse_memberships"."organization_id" = 'f0b48407-6d3f-4da9-a7fe-f400b3dc83a0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "87494465-4841-433a-8542-d05b5ab1443c"], ["organization_id", "f0b48407-6d3f-4da9-a7fe-f400b3dc83a0"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.325177"], ["updated_at", "2015-07-06 21:23:42.325177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3df9eb55-c975-4950-b5a4-e4e5d49ec3c9' AND "clubhouse_memberships"."organization_id" = 'f0b48407-6d3f-4da9-a7fe-f400b3dc83a0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3df9eb55-c975-4950-b5a4-e4e5d49ec3c9"], ["organization_id", "f0b48407-6d3f-4da9-a7fe-f400b3dc83a0"], ["created_at", "2015-07-06 21:23:42.328849"], ["updated_at", "2015-07-06 21:23:42.328849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$2rRv5w/89KFgfi1UPwJmRev./PnV71C8/KFqspOzldzDJXnvVxzda"], ["created_at", "2015-07-06 21:23:42.334457"], ["updated_at", "2015-07-06 21:23:42.334457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.336841"], ["user_id", "6bf1cc3e-3663-4147-9b10-405271f087d8"], ["created_at", "2015-07-06 21:23:42.337638"], ["updated_at", "2015-07-06 21:23:42.337638"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'f0b48407-6d3f-4da9-a7fe-f400b3dc83a0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "f0b48407-6d3f-4da9-a7fe-f400b3dc83a0"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.342453"], ["updated_at", "2015-07-06 21:23:42.342453"], ["token", "6xBasSXaDAkIluUNBKOyKsm1iaeKEKBVZhOdI_gk1FI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$rXSElCY.3N2h4y3S..SOc.UsEKLfL3vtMspFPY5XNzVFMh/.fNjri"], ["created_at", "2015-07-06 21:23:42.352877"], ["updated_at", "2015-07-06 21:23:42.352877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$a6ycLHWVp8HfhSFJjrLKle/YDYHyRtgxZraV8M3eyQPGKqm6oOUIS"], ["created_at", "2015-07-06 21:23:42.358384"], ["updated_at", "2015-07-06 21:23:42.358384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.360009"], ["user_id", "894b2f08-859e-4a41-a283-a3e5a7618038"], ["created_at", "2015-07-06 21:23:42.360677"], ["updated_at", "2015-07-06 21:23:42.360677"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.364821"], ["updated_at", "2015-07-06 21:23:42.364821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '894b2f08-859e-4a41-a283-a3e5a7618038' AND "clubhouse_memberships"."organization_id" = 'c57b00e7-4929-4787-b4b5-2e1cf88b3737') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "894b2f08-859e-4a41-a283-a3e5a7618038"], ["organization_id", "c57b00e7-4929-4787-b4b5-2e1cf88b3737"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.367910"], ["updated_at", "2015-07-06 21:23:42.367910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'be0e186e-a87a-43fa-b342-63d2752313c0' AND "clubhouse_memberships"."organization_id" = 'c57b00e7-4929-4787-b4b5-2e1cf88b3737') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "be0e186e-a87a-43fa-b342-63d2752313c0"], ["organization_id", "c57b00e7-4929-4787-b4b5-2e1cf88b3737"], ["created_at", "2015-07-06 21:23:42.370912"], ["updated_at", "2015-07-06 21:23:42.370912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$Rs2uQUyg3rc0jLg07btD2Occ5n/FUb3h/mdAk8E/jWCAVyMXbh9sK"], ["created_at", "2015-07-06 21:23:42.376805"], ["updated_at", "2015-07-06 21:23:42.376805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.378427"], ["user_id", "5b2759be-f365-4016-929e-568a4eba4d98"], ["created_at", "2015-07-06 21:23:42.379059"], ["updated_at", "2015-07-06 21:23:42.379059"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'c57b00e7-4929-4787-b4b5-2e1cf88b3737') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "c57b00e7-4929-4787-b4b5-2e1cf88b3737"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.384186"], ["updated_at", "2015-07-06 21:23:42.384186"], ["token", "XW-dXgnzIVqtMoOyqgnMZwwMB_EYgDv5BXD_0iNhdwo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"XW-dXgnzIVqtMoOyqgnMZwwMB_EYgDv5BXD_0iNhdwo", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:42.387825') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3366f17e-ea6d-4981-8ccf-0751942752fc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:42.389177"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:42.389914"], ["id", "3366f17e-ea6d-4981-8ccf-0751942752fc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5b2759be-f365-4016-929e-568a4eba4d98"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "XW-dXgnzIVqtMoOyqgnMZwwMB_EYgDv5BXD_0iNhdwo"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c57b00e7-4929-4787-b4b5-2e1cf88b3737"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5b2759be-f365-4016-929e-568a4eba4d98' AND "clubhouse_memberships"."organization_id" = 'c57b00e7-4929-4787-b4b5-2e1cf88b3737') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "c57b00e7-4929-4787-b4b5-2e1cf88b3737"], ["member_id", "5b2759be-f365-4016-929e-568a4eba4d98"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.397210"], ["updated_at", "2015-07-06 21:23:42.397210"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "c0c0d44a-8fae-4c52-8a88-03bdf2faf0e9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 12ms (Views: 0.7ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$eUr99/cJYnxj9Skq0h3XXubJKMgFAijsVwE5.iCkGrYfsmbN0bbCu"], ["created_at", "2015-07-06 21:23:42.410388"], ["updated_at", "2015-07-06 21:23:42.410388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$AZzW3tWTtKSs.hrgwHIi4OQJU0Rw8tYRRMh0hAfgHrvmeRyp6kxJ2"], ["created_at", "2015-07-06 21:23:42.415797"], ["updated_at", "2015-07-06 21:23:42.415797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.417348"], ["user_id", "dcfca5a2-7f44-4a18-8b98-994948670b93"], ["created_at", "2015-07-06 21:23:42.418116"], ["updated_at", "2015-07-06 21:23:42.418116"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.422721"], ["updated_at", "2015-07-06 21:23:42.422721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dcfca5a2-7f44-4a18-8b98-994948670b93' AND "clubhouse_memberships"."organization_id" = 'a596a60c-df8d-4a20-8d9f-115d927eeaa1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dcfca5a2-7f44-4a18-8b98-994948670b93"], ["organization_id", "a596a60c-df8d-4a20-8d9f-115d927eeaa1"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.427215"], ["updated_at", "2015-07-06 21:23:42.427215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '878dcf08-a820-4bb3-8154-fdccda623c0f' AND "clubhouse_memberships"."organization_id" = 'a596a60c-df8d-4a20-8d9f-115d927eeaa1') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "878dcf08-a820-4bb3-8154-fdccda623c0f"], ["organization_id", "a596a60c-df8d-4a20-8d9f-115d927eeaa1"], ["created_at", "2015-07-06 21:23:42.430480"], ["updated_at", "2015-07-06 21:23:42.430480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$reMau3i5Mj7kNQZp264BE.bPoMWrs1SuGyp4hknISdVi2GA9RcD5."], ["created_at", "2015-07-06 21:23:42.435795"], ["updated_at", "2015-07-06 21:23:42.435795"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.437394"], ["user_id", "ae8812ac-a5fd-4a96-b3d6-90b2a4ce6c37"], ["created_at", "2015-07-06 21:23:42.437992"], ["updated_at", "2015-07-06 21:23:42.437992"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'a596a60c-df8d-4a20-8d9f-115d927eeaa1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "a596a60c-df8d-4a20-8d9f-115d927eeaa1"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.443782"], ["updated_at", "2015-07-06 21:23:42.443782"], ["token", "t8g-gTTiUHx26WQICJ94YJJ4vLBLQzW0mYjWY8hLOGs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:42.447076') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "16f670fb-1dd9-438b-8616-f2794e6897da"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:42.448386"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:42.449109"], ["id", "16f670fb-1dd9-438b-8616-f2794e6897da"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ae8812ac-a5fd-4a96-b3d6-90b2a4ce6c37"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 11ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$9eYJ8wRCLony/S6cnHGCIOOMAiwe6KdSpNO0FPdUL2.eUwYEKo7ny"], ["created_at", "2015-07-06 21:23:42.464763"], ["updated_at", "2015-07-06 21:23:42.464763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$zWtaCTXJS4NUE4QFzraWAund/1RvBszS7jUpqFaAxTqIpJnwGM1/e"], ["created_at", "2015-07-06 21:23:42.469729"], ["updated_at", "2015-07-06 21:23:42.469729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.471199"], ["user_id", "7033918a-2697-4c4c-9197-48bacafaf21e"], ["created_at", "2015-07-06 21:23:42.471804"], ["updated_at", "2015-07-06 21:23:42.471804"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.476796"], ["updated_at", "2015-07-06 21:23:42.476796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7033918a-2697-4c4c-9197-48bacafaf21e' AND "clubhouse_memberships"."organization_id" = 'be8385d6-3b5d-46d0-87af-f81297850e4a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7033918a-2697-4c4c-9197-48bacafaf21e"], ["organization_id", "be8385d6-3b5d-46d0-87af-f81297850e4a"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.480283"], ["updated_at", "2015-07-06 21:23:42.480283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c358ed55-7da5-4610-81e8-4a29ea974d0e' AND "clubhouse_memberships"."organization_id" = 'be8385d6-3b5d-46d0-87af-f81297850e4a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c358ed55-7da5-4610-81e8-4a29ea974d0e"], ["organization_id", "be8385d6-3b5d-46d0-87af-f81297850e4a"], ["created_at", "2015-07-06 21:23:42.483169"], ["updated_at", "2015-07-06 21:23:42.483169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/016635f9-c707-48ab-b3e7-04dedd4f9745" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"016635f9-c707-48ab-b3e7-04dedd4f9745", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:42.485938') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8dda8afc-10c8-4df1-87bc-2dc3b8477e79"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:42.487246"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:42.487959"], ["id", "8dda8afc-10c8-4df1-87bc-2dc3b8477e79"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "016635f9-c707-48ab-b3e7-04dedd4f9745"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7033918a-2697-4c4c-9197-48bacafaf21e"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "be8385d6-3b5d-46d0-87af-f81297850e4a"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '7033918a-2697-4c4c-9197-48bacafaf21e' LIMIT 1 [["organization_id", "be8385d6-3b5d-46d0-87af-f81297850e4a"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7033918a-2697-4c4c-9197-48bacafaf21e"]] Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$xz3xruWN5DNBZwbLqYnxde/gLEGRHY/Qpz76evXvM5bEJ/Ml9hohy"], ["created_at", "2015-07-06 21:23:42.521014"], ["updated_at", "2015-07-06 21:23:42.521014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$efk08lPYCThqm6hBujFJQOnGgshOTBvT0mULTMYVSqwXHgN5cD7ES"], ["created_at", "2015-07-06 21:23:42.529490"], ["updated_at", "2015-07-06 21:23:42.529490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:42.531465"], ["user_id", "f08ad8e7-0e6f-4570-9b5c-9eadadb2005a"], ["created_at", "2015-07-06 21:23:42.532426"], ["updated_at", "2015-07-06 21:23:42.532426"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:42.538318"], ["updated_at", "2015-07-06 21:23:42.538318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f08ad8e7-0e6f-4570-9b5c-9eadadb2005a' AND "clubhouse_memberships"."organization_id" = '4d1501c0-33b4-4f77-bf33-b98c333d4de7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f08ad8e7-0e6f-4570-9b5c-9eadadb2005a"], ["organization_id", "4d1501c0-33b4-4f77-bf33-b98c333d4de7"], ["admin", "t"], ["created_at", "2015-07-06 21:23:42.543032"], ["updated_at", "2015-07-06 21:23:42.543032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75f5f8f2-f8b2-4cb3-90c7-49a08aa77e53' AND "clubhouse_memberships"."organization_id" = '4d1501c0-33b4-4f77-bf33-b98c333d4de7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "75f5f8f2-f8b2-4cb3-90c7-49a08aa77e53"], ["organization_id", "4d1501c0-33b4-4f77-bf33-b98c333d4de7"], ["created_at", "2015-07-06 21:23:42.546122"], ["updated_at", "2015-07-06 21:23:42.546122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:42 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$ZbllEuhnTGJGwl6xsyJ3P.8huJSVuuh2F3BgX/sTEWwmgpEuSj7Pe"], ["created_at", "2015-07-06 21:23:52.000685"], ["updated_at", "2015-07-06 21:23:52.000685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$PAX4W0brqs.TwTUTS9xJ0u5YkwKPorI11tOp/4CCGsnmLO3tLBZ6O"], ["created_at", "2015-07-06 21:23:52.008000"], ["updated_at", "2015-07-06 21:23:52.008000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.020666"], ["user_id", "c1891d36-7716-4deb-8562-a9586b2cd9b4"], ["created_at", "2015-07-06 21:23:52.025359"], ["updated_at", "2015-07-06 21:23:52.025359"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.040091"], ["updated_at", "2015-07-06 21:23:52.040091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1891d36-7716-4deb-8562-a9586b2cd9b4' AND "clubhouse_memberships"."organization_id" = 'af0915ee-7006-447c-91a0-f0b539a67390') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c1891d36-7716-4deb-8562-a9586b2cd9b4"], ["organization_id", "af0915ee-7006-447c-91a0-f0b539a67390"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.051529"], ["updated_at", "2015-07-06 21:23:52.051529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7a636fa-9ced-408f-83b5-5f8b6bceaeee' AND "clubhouse_memberships"."organization_id" = 'af0915ee-7006-447c-91a0-f0b539a67390') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c7a636fa-9ced-408f-83b5-5f8b6bceaeee"], ["organization_id", "af0915ee-7006-447c-91a0-f0b539a67390"], ["created_at", "2015-07-06 21:23:52.055061"], ["updated_at", "2015-07-06 21:23:52.055061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/ad6e2131-09f4-4bd9-8acd-756ec21bd126" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"ad6e2131-09f4-4bd9-8acd-756ec21bd126", "membership"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:52.072296') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c61d5619-5da0-4236-be15-9c5f73682a0a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:52.077622"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:52.078592"], ["id", "c61d5619-5da0-4236-be15-9c5f73682a0a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "ad6e2131-09f4-4bd9-8acd-756ec21bd126"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c1891d36-7716-4deb-8562-a9586b2cd9b4"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "af0915ee-7006-447c-91a0-f0b539a67390"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'c1891d36-7716-4deb-8562-a9586b2cd9b4' LIMIT 1 [["organization_id", "af0915ee-7006-447c-91a0-f0b539a67390"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c7a636fa-9ced-408f-83b5-5f8b6bceaeee"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c7a636fa-9ced-408f-83b5-5f8b6bceaeee' AND "clubhouse_memberships"."id" != 'ad6e2131-09f4-4bd9-8acd-756ec21bd126' AND "clubhouse_memberships"."organization_id" = 'af0915ee-7006-447c-91a0-f0b539a67390') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:23:52.099596"], ["id", "ad6e2131-09f4-4bd9-8acd-756ec21bd126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 39ms (Views: 10.0ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$Kc4SiJbQ/I91uvUBvV/1Tuo3djtjfn5YKFzbLBW53S12pVfH1UAv6"], ["created_at", "2015-07-06 21:23:52.119258"], ["updated_at", "2015-07-06 21:23:52.119258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$cRorQTtRSH4u3f9Rb2sD3eRxlwhueD.asEV6BLeHUG.TltktS7vmG"], ["created_at", "2015-07-06 21:23:52.124239"], ["updated_at", "2015-07-06 21:23:52.124239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.125833"], ["user_id", "6369a8ac-a752-4081-9e0b-d2ae24e551f0"], ["created_at", "2015-07-06 21:23:52.126485"], ["updated_at", "2015-07-06 21:23:52.126485"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.130671"], ["updated_at", "2015-07-06 21:23:52.130671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6369a8ac-a752-4081-9e0b-d2ae24e551f0' AND "clubhouse_memberships"."organization_id" = 'd586f6f3-8832-4185-aac2-1b7b47fb5b6d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6369a8ac-a752-4081-9e0b-d2ae24e551f0"], ["organization_id", "d586f6f3-8832-4185-aac2-1b7b47fb5b6d"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.133815"], ["updated_at", "2015-07-06 21:23:52.133815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b4bbf103-67ba-4f18-8fbe-d91fb152a3db' AND "clubhouse_memberships"."organization_id" = 'd586f6f3-8832-4185-aac2-1b7b47fb5b6d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b4bbf103-67ba-4f18-8fbe-d91fb152a3db"], ["organization_id", "d586f6f3-8832-4185-aac2-1b7b47fb5b6d"], ["created_at", "2015-07-06 21:23:52.136827"], ["updated_at", "2015-07-06 21:23:52.136827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$gJd1XNY1k1GMv4WcFfYX/uw017inPKf6HYb5pZMFsVB87A2SPWVh6"], ["created_at", "2015-07-06 21:23:52.147052"], ["updated_at", "2015-07-06 21:23:52.147052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$VXl3UYlDLhGj71qdVyTeh.0LB3FkCKQlXruMT3.zI41tAXBS4WZ.q"], ["created_at", "2015-07-06 21:23:52.153075"], ["updated_at", "2015-07-06 21:23:52.153075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.154732"], ["user_id", "7e97f4c9-35e9-48ef-9812-9a6d63fb1b8f"], ["created_at", "2015-07-06 21:23:52.155425"], ["updated_at", "2015-07-06 21:23:52.155425"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.159868"], ["updated_at", "2015-07-06 21:23:52.159868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e97f4c9-35e9-48ef-9812-9a6d63fb1b8f' AND "clubhouse_memberships"."organization_id" = '79265614-8d4c-4f85-b078-fd604e4d4fed') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7e97f4c9-35e9-48ef-9812-9a6d63fb1b8f"], ["organization_id", "79265614-8d4c-4f85-b078-fd604e4d4fed"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.162953"], ["updated_at", "2015-07-06 21:23:52.162953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a57a285b-8321-4a46-ba2b-1abb020e9a2f' AND "clubhouse_memberships"."organization_id" = '79265614-8d4c-4f85-b078-fd604e4d4fed') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a57a285b-8321-4a46-ba2b-1abb020e9a2f"], ["organization_id", "79265614-8d4c-4f85-b078-fd604e4d4fed"], ["created_at", "2015-07-06 21:23:52.165950"], ["updated_at", "2015-07-06 21:23:52.165950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$ph.jDYqBMxRPiDp99ukLdeP.wHG0RS7uVZp2JBIPxGcrg.CsVjkPe"], ["created_at", "2015-07-06 21:23:52.177997"], ["updated_at", "2015-07-06 21:23:52.177997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$QQaSVFWM4mOJhMxuLoPyXOQS0KWl1r5cTCu/UY7DYGtMtQZRPRj6q"], ["created_at", "2015-07-06 21:23:52.183247"], ["updated_at", "2015-07-06 21:23:52.183247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.184861"], ["user_id", "e6e412aa-ec03-4c42-bece-15d9a2cffbe1"], ["created_at", "2015-07-06 21:23:52.185492"], ["updated_at", "2015-07-06 21:23:52.185492"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.189761"], ["updated_at", "2015-07-06 21:23:52.189761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6e412aa-ec03-4c42-bece-15d9a2cffbe1' AND "clubhouse_memberships"."organization_id" = '26c2fc5f-a05a-45f2-adc8-a8b4263d0bb5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e6e412aa-ec03-4c42-bece-15d9a2cffbe1"], ["organization_id", "26c2fc5f-a05a-45f2-adc8-a8b4263d0bb5"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.194216"], ["updated_at", "2015-07-06 21:23:52.194216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '727c7173-e9c8-4d20-88a4-812e684b93b3' AND "clubhouse_memberships"."organization_id" = '26c2fc5f-a05a-45f2-adc8-a8b4263d0bb5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "727c7173-e9c8-4d20-88a4-812e684b93b3"], ["organization_id", "26c2fc5f-a05a-45f2-adc8-a8b4263d0bb5"], ["created_at", "2015-07-06 21:23:52.197502"], ["updated_at", "2015-07-06 21:23:52.197502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:52.200538') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b7972730-306c-426a-be9b-a13dc841f6b9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:52.201895"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:52.202629"], ["id", "b7972730-306c-426a-be9b-a13dc841f6b9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e6e412aa-ec03-4c42-bece-15d9a2cffbe1"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e6e412aa-ec03-4c42-bece-15d9a2cffbe1' LIMIT 1 [["organization_id", "26c2fc5f-a05a-45f2-adc8-a8b4263d0bb5"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "26c2fc5f-a05a-45f2-adc8-a8b4263d0bb5"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e6e412aa-ec03-4c42-bece-15d9a2cffbe1"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "727c7173-e9c8-4d20-88a4-812e684b93b3"]] Completed 200 OK in 26ms (Views: 5.0ms | ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$Qrxje4MdB6IzmlaU5eZ76esmWW14Q6SzMZ3dg8m9CBL.qEatIS9mO"], ["created_at", "2015-07-06 21:23:52.234049"], ["updated_at", "2015-07-06 21:23:52.234049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$AtPWw8tWmyKbTUy5PXJ4T.2eMiFYtzea8AC7uV/xQDrkdhDpYPjP."], ["created_at", "2015-07-06 21:23:52.239486"], ["updated_at", "2015-07-06 21:23:52.239486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.241536"], ["user_id", "5d688c34-8935-49b1-93bd-b6fda549d03c"], ["created_at", "2015-07-06 21:23:52.242182"], ["updated_at", "2015-07-06 21:23:52.242182"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.246613"], ["updated_at", "2015-07-06 21:23:52.246613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d688c34-8935-49b1-93bd-b6fda549d03c' AND "clubhouse_memberships"."organization_id" = 'e61ec935-3dc7-4282-a8e6-12e1c9c7ec78') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d688c34-8935-49b1-93bd-b6fda549d03c"], ["organization_id", "e61ec935-3dc7-4282-a8e6-12e1c9c7ec78"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.249707"], ["updated_at", "2015-07-06 21:23:52.249707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50acab8f-8eeb-4767-bd6e-1bd9ded7e506' AND "clubhouse_memberships"."organization_id" = 'e61ec935-3dc7-4282-a8e6-12e1c9c7ec78') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "50acab8f-8eeb-4767-bd6e-1bd9ded7e506"], ["organization_id", "e61ec935-3dc7-4282-a8e6-12e1c9c7ec78"], ["created_at", "2015-07-06 21:23:52.252563"], ["updated_at", "2015-07-06 21:23:52.252563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$n/hTfGiDMlqp2HOZe14uru9r/jLlQy.cQwldYWr4Tejj4/.k4Mp/y"], ["created_at", "2015-07-06 21:23:52.262327"], ["updated_at", "2015-07-06 21:23:52.262327"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$XhlVMeYGXVsitoBuqs7aIOMBrJ.BkLOJT8VkcTSmuAbogpxpqtDbK"], ["created_at", "2015-07-06 21:23:52.270595"], ["updated_at", "2015-07-06 21:23:52.270595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.273887"], ["user_id", "873b930b-ffa6-418a-8c5c-4441b5e4f1d2"], ["created_at", "2015-07-06 21:23:52.274607"], ["updated_at", "2015-07-06 21:23:52.274607"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.278814"], ["updated_at", "2015-07-06 21:23:52.278814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '873b930b-ffa6-418a-8c5c-4441b5e4f1d2' AND "clubhouse_memberships"."organization_id" = '47685f86-27d4-47d0-a7c6-4e4a2ae57781') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "873b930b-ffa6-418a-8c5c-4441b5e4f1d2"], ["organization_id", "47685f86-27d4-47d0-a7c6-4e4a2ae57781"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.281807"], ["updated_at", "2015-07-06 21:23:52.281807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ce9b775-13da-48e7-aaf0-ed8f1c2c6788' AND "clubhouse_memberships"."organization_id" = '47685f86-27d4-47d0-a7c6-4e4a2ae57781') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ce9b775-13da-48e7-aaf0-ed8f1c2c6788"], ["organization_id", "47685f86-27d4-47d0-a7c6-4e4a2ae57781"], ["created_at", "2015-07-06 21:23:52.285120"], ["updated_at", "2015-07-06 21:23:52.285120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/8cbb451e-c1f4-49e6-95cd-6cdcff34ec8c" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"8cbb451e-c1f4-49e6-95cd-6cdcff34ec8c", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:52.287990') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "085dc654-22e3-4b3d-9e89-183ae2d21d84"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:52.289363"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:52.290118"], ["id", "085dc654-22e3-4b3d-9e89-183ae2d21d84"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "8cbb451e-c1f4-49e6-95cd-6cdcff34ec8c"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "873b930b-ffa6-418a-8c5c-4441b5e4f1d2"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "47685f86-27d4-47d0-a7c6-4e4a2ae57781"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '873b930b-ffa6-418a-8c5c-4441b5e4f1d2' LIMIT 1 [["organization_id", "47685f86-27d4-47d0-a7c6-4e4a2ae57781"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "873b930b-ffa6-418a-8c5c-4441b5e4f1d2"]] Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$deV649PN1mttpGIyrXuRF..RZaXK/7iVC/NgjgL3dOOBoOgvVfV42"], ["created_at", "2015-07-06 21:23:52.303885"], ["updated_at", "2015-07-06 21:23:52.303885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$.FAS9yKCfqAAK46Bi7FFouFSorf6P8KyM2lcl2q6L6vLukY2QszfC"], ["created_at", "2015-07-06 21:23:52.309561"], ["updated_at", "2015-07-06 21:23:52.309561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.311181"], ["user_id", "22a6fd0e-96ef-4918-8663-1d89f50e104a"], ["created_at", "2015-07-06 21:23:52.311806"], ["updated_at", "2015-07-06 21:23:52.311806"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.315844"], ["updated_at", "2015-07-06 21:23:52.315844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '22a6fd0e-96ef-4918-8663-1d89f50e104a' AND "clubhouse_memberships"."organization_id" = '8cf83071-31bc-46ba-96e6-c92f4774dbd9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "22a6fd0e-96ef-4918-8663-1d89f50e104a"], ["organization_id", "8cf83071-31bc-46ba-96e6-c92f4774dbd9"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.319159"], ["updated_at", "2015-07-06 21:23:52.319159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9ded3931-f3dc-4481-ac76-5eed7d34bed0' AND "clubhouse_memberships"."organization_id" = '8cf83071-31bc-46ba-96e6-c92f4774dbd9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9ded3931-f3dc-4481-ac76-5eed7d34bed0"], ["organization_id", "8cf83071-31bc-46ba-96e6-c92f4774dbd9"], ["created_at", "2015-07-06 21:23:52.322176"], ["updated_at", "2015-07-06 21:23:52.322176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/cbbbd289-6249-4c3c-aac5-ba94ed7596c9" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"cbbbd289-6249-4c3c-aac5-ba94ed7596c9", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:52.325504') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "47b282c6-23d6-4c20-af19-72964a57ef1a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:52.327367"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:52.328087"], ["id", "47b282c6-23d6-4c20-af19-72964a57ef1a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "cbbbd289-6249-4c3c-aac5-ba94ed7596c9"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "22a6fd0e-96ef-4918-8663-1d89f50e104a"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8cf83071-31bc-46ba-96e6-c92f4774dbd9"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '22a6fd0e-96ef-4918-8663-1d89f50e104a' LIMIT 1 [["organization_id", "8cf83071-31bc-46ba-96e6-c92f4774dbd9"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9ded3931-f3dc-4481-ac76-5eed7d34bed0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "cbbbd289-6249-4c3c-aac5-ba94ed7596c9"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 10ms (ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$7rkh9UoniDwMbo/CAJu0wO9VzloKC6AWw55NxYnr5YzuYTXc/ZwJa"], ["created_at", "2015-07-06 21:23:52.341281"], ["updated_at", "2015-07-06 21:23:52.341281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$IC.2RmGb8OZPjSwei5SUKuUwR/nE7pswf0mF.6WRwVzNSoB7vhBtW"], ["created_at", "2015-07-06 21:23:52.348926"], ["updated_at", "2015-07-06 21:23:52.348926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.350680"], ["user_id", "fe3f248d-2905-44e3-a2db-491dc189df26"], ["created_at", "2015-07-06 21:23:52.351372"], ["updated_at", "2015-07-06 21:23:52.351372"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.356046"], ["updated_at", "2015-07-06 21:23:52.356046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fe3f248d-2905-44e3-a2db-491dc189df26' AND "clubhouse_memberships"."organization_id" = '6d4337f5-4342-4d3e-8068-dffe0076756a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fe3f248d-2905-44e3-a2db-491dc189df26"], ["organization_id", "6d4337f5-4342-4d3e-8068-dffe0076756a"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.359651"], ["updated_at", "2015-07-06 21:23:52.359651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a913d969-ee9a-4eb6-823b-8ea4049824ed' AND "clubhouse_memberships"."organization_id" = '6d4337f5-4342-4d3e-8068-dffe0076756a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a913d969-ee9a-4eb6-823b-8ea4049824ed"], ["organization_id", "6d4337f5-4342-4d3e-8068-dffe0076756a"], ["created_at", "2015-07-06 21:23:52.362618"], ["updated_at", "2015-07-06 21:23:52.362618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$3BJlu7LOJcTsTBKc5jRKseJ7qq12iC/yemTaSjnyvhHDUTelziTVm"], ["created_at", "2015-07-06 21:23:52.372600"], ["updated_at", "2015-07-06 21:23:52.372600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$lPJiznk8I4g.9JX1wFgao.uByQYlQQeD5QRaKOWaKxzMezrRj5JEu"], ["created_at", "2015-07-06 21:23:52.377829"], ["updated_at", "2015-07-06 21:23:52.377829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.379415"], ["user_id", "9919cc9c-9296-4b10-a134-2462783a2238"], ["created_at", "2015-07-06 21:23:52.380049"], ["updated_at", "2015-07-06 21:23:52.380049"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.385422"], ["updated_at", "2015-07-06 21:23:52.385422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9919cc9c-9296-4b10-a134-2462783a2238' AND "clubhouse_memberships"."organization_id" = 'cdba6e2c-403e-49e4-9b71-7a8e73e1a9a4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9919cc9c-9296-4b10-a134-2462783a2238"], ["organization_id", "cdba6e2c-403e-49e4-9b71-7a8e73e1a9a4"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.388648"], ["updated_at", "2015-07-06 21:23:52.388648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '84e6a226-d794-41db-a9f5-80c808c45a86' AND "clubhouse_memberships"."organization_id" = 'cdba6e2c-403e-49e4-9b71-7a8e73e1a9a4') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "84e6a226-d794-41db-a9f5-80c808c45a86"], ["organization_id", "cdba6e2c-403e-49e4-9b71-7a8e73e1a9a4"], ["created_at", "2015-07-06 21:23:52.391991"], ["updated_at", "2015-07-06 21:23:52.391991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$mK3zicIIHxAZP11nRLA9.e4nSe8wHu6Sra2sPuQ.E0q4hhynA/Zze"], ["created_at", "2015-07-06 21:23:52.403018"], ["updated_at", "2015-07-06 21:23:52.403018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$13XxJiwOFW3raHv9H/hk.uOY.sU0iIr0VJKJjNghnWQOkMg9x8d1."], ["created_at", "2015-07-06 21:23:52.409348"], ["updated_at", "2015-07-06 21:23:52.409348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.411533"], ["user_id", "8e1e8387-7ed8-4014-80f7-3f8d3b040abe"], ["created_at", "2015-07-06 21:23:52.412749"], ["updated_at", "2015-07-06 21:23:52.412749"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.418841"], ["updated_at", "2015-07-06 21:23:52.418841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8e1e8387-7ed8-4014-80f7-3f8d3b040abe' AND "clubhouse_memberships"."organization_id" = '32faf567-ef30-44af-a0cd-caed473319e5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8e1e8387-7ed8-4014-80f7-3f8d3b040abe"], ["organization_id", "32faf567-ef30-44af-a0cd-caed473319e5"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.422624"], ["updated_at", "2015-07-06 21:23:52.422624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '78c85efe-b603-40bf-92f8-17467390ca6a' AND "clubhouse_memberships"."organization_id" = '32faf567-ef30-44af-a0cd-caed473319e5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "78c85efe-b603-40bf-92f8-17467390ca6a"], ["organization_id", "32faf567-ef30-44af-a0cd-caed473319e5"], ["created_at", "2015-07-06 21:23:52.425815"], ["updated_at", "2015-07-06 21:23:52.425815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/32faf567-ef30-44af-a0cd-caed473319e5/memberships" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"32faf567-ef30-44af-a0cd-caed473319e5", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:52.428846') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "37d869bc-6f09-4fb1-912e-694fa0deb436"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:52.430224"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:52.430923"], ["id", "37d869bc-6f09-4fb1-912e-694fa0deb436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "32faf567-ef30-44af-a0cd-caed473319e5"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8e1e8387-7ed8-4014-80f7-3f8d3b040abe"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '8e1e8387-7ed8-4014-80f7-3f8d3b040abe' LIMIT 1 [["organization_id", "32faf567-ef30-44af-a0cd-caed473319e5"]] Clubhouse::Membership Load (0.4ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "32faf567-ef30-44af-a0cd-caed473319e5"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8e1e8387-7ed8-4014-80f7-3f8d3b040abe"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "78c85efe-b603-40bf-92f8-17467390ca6a"]] Completed 200 OK in 14ms (Views: 4.2ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$GlbpXX/ba5kobLF8AoeAk.INjTiNOU1fS8UfGQiW4MGZyQMnQUnXi"], ["created_at", "2015-07-06 21:23:52.451264"], ["updated_at", "2015-07-06 21:23:52.451264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$nmT.RPWqzH/y6PXS5uIcSOWPPETn/ehtsNIvFbI.daGPFp4Dzsbpi"], ["created_at", "2015-07-06 21:23:52.456402"], ["updated_at", "2015-07-06 21:23:52.456402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.457954"], ["user_id", "a065acdd-7256-4851-b410-b0b31e8dd923"], ["created_at", "2015-07-06 21:23:52.458546"], ["updated_at", "2015-07-06 21:23:52.458546"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.462625"], ["updated_at", "2015-07-06 21:23:52.462625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a065acdd-7256-4851-b410-b0b31e8dd923' AND "clubhouse_memberships"."organization_id" = 'a3c8a4ea-7f46-409d-a670-d775daf03bbe') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a065acdd-7256-4851-b410-b0b31e8dd923"], ["organization_id", "a3c8a4ea-7f46-409d-a670-d775daf03bbe"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.466662"], ["updated_at", "2015-07-06 21:23:52.466662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cbd57ea3-0218-4add-8bd5-b6e18235b9bd' AND "clubhouse_memberships"."organization_id" = 'a3c8a4ea-7f46-409d-a670-d775daf03bbe') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cbd57ea3-0218-4add-8bd5-b6e18235b9bd"], ["organization_id", "a3c8a4ea-7f46-409d-a670-d775daf03bbe"], ["created_at", "2015-07-06 21:23:52.469960"], ["updated_at", "2015-07-06 21:23:52.469960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$.mAdtNwSWn0FuHPpPBmJ1.LXsRs9EdV9ymgW52narKmEDD.OT1kre"], ["created_at", "2015-07-06 21:23:52.475637"], ["updated_at", "2015-07-06 21:23:52.475637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.477143"], ["user_id", "4c3068c2-9300-4370-877f-621a7443f1fd"], ["created_at", "2015-07-06 21:23:52.477861"], ["updated_at", "2015-07-06 21:23:52.477861"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'a3c8a4ea-7f46-409d-a670-d775daf03bbe') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "a3c8a4ea-7f46-409d-a670-d775daf03bbe"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.489375"], ["updated_at", "2015-07-06 21:23:52.489375"], ["token", "xZ-FCqgJIM7lf-zTg0f-V_20wEuemWgAGrm-V02yM2A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$fyytKvSGehpneAQbIWbiSOSsW8ywpn1vKxDpw7fNU4lHfgyo4JVj."], ["created_at", "2015-07-06 21:23:52.506214"], ["updated_at", "2015-07-06 21:23:52.506214"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$d8/frlGOv2VqX/CN.hGi1OmVUDUhGnwny0LAsm/NOI0h5AmEWVsaO"], ["created_at", "2015-07-06 21:23:52.512477"], ["updated_at", "2015-07-06 21:23:52.512477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.514081"], ["user_id", "b5affc65-33f9-47f3-b368-8b344ac2873e"], ["created_at", "2015-07-06 21:23:52.514669"], ["updated_at", "2015-07-06 21:23:52.514669"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.518690"], ["updated_at", "2015-07-06 21:23:52.518690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b5affc65-33f9-47f3-b368-8b344ac2873e' AND "clubhouse_memberships"."organization_id" = '96fbf374-2931-4f1c-9488-86cc2929ead5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b5affc65-33f9-47f3-b368-8b344ac2873e"], ["organization_id", "96fbf374-2931-4f1c-9488-86cc2929ead5"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.522516"], ["updated_at", "2015-07-06 21:23:52.522516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d3482c2-752f-4deb-9d8d-f9c98b56b108' AND "clubhouse_memberships"."organization_id" = '96fbf374-2931-4f1c-9488-86cc2929ead5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1d3482c2-752f-4deb-9d8d-f9c98b56b108"], ["organization_id", "96fbf374-2931-4f1c-9488-86cc2929ead5"], ["created_at", "2015-07-06 21:23:52.525892"], ["updated_at", "2015-07-06 21:23:52.525892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$C9jgjRILsJH9piArPnKJEOS0pPjig.WvB7/WZ1kC9HLl3tTJ5EYCa"], ["created_at", "2015-07-06 21:23:52.531319"], ["updated_at", "2015-07-06 21:23:52.531319"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.533545"], ["user_id", "bcdc6d1a-6e15-48b9-bf22-53dee8cc6f45"], ["created_at", "2015-07-06 21:23:52.534770"], ["updated_at", "2015-07-06 21:23:52.534770"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '96fbf374-2931-4f1c-9488-86cc2929ead5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "96fbf374-2931-4f1c-9488-86cc2929ead5"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.543102"], ["updated_at", "2015-07-06 21:23:52.543102"], ["token", "t4_cIm-XM7rR2SWdKo9uneuTYauueO89ABV_GZGMRpk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/96fbf374-2931-4f1c-9488-86cc2929ead5/memberships" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"t4_cIm-XM7rR2SWdKo9uneuTYauueO89ABV_GZGMRpk", "organization_id"=>"96fbf374-2931-4f1c-9488-86cc2929ead5", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:52.546354') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "38717829-e305-433a-ae23-0fe00fb81d91"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:52.547668"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:52.548431"], ["id", "38717829-e305-433a-ae23-0fe00fb81d91"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "96fbf374-2931-4f1c-9488-86cc2929ead5"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcdc6d1a-6e15-48b9-bf22-53dee8cc6f45"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "t4_cIm-XM7rR2SWdKo9uneuTYauueO89ABV_GZGMRpk"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "96fbf374-2931-4f1c-9488-86cc2929ead5"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcdc6d1a-6e15-48b9-bf22-53dee8cc6f45' AND "clubhouse_memberships"."organization_id" = '96fbf374-2931-4f1c-9488-86cc2929ead5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "96fbf374-2931-4f1c-9488-86cc2929ead5"], ["member_id", "bcdc6d1a-6e15-48b9-bf22-53dee8cc6f45"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.557556"], ["updated_at", "2015-07-06 21:23:52.557556"]] SQL (0.4ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "a6132712-6a3e-4441-8da8-dc55aee36626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.8ms | ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$fcuiIdaLlDnNKvZ8WKmrNe5AxMamg.XbRPfcsAVPAWzujRkaLzWS2"], ["created_at", "2015-07-06 21:23:52.569638"], ["updated_at", "2015-07-06 21:23:52.569638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$3HFjATfJyzkxIMZAp4Jfye7AgbWN/X2l2myItPqyi.xB1BmAWtlaG"], ["created_at", "2015-07-06 21:23:52.576828"], ["updated_at", "2015-07-06 21:23:52.576828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.578418"], ["user_id", "d37a3a4c-4615-45bb-87cb-9088460716db"], ["created_at", "2015-07-06 21:23:52.579277"], ["updated_at", "2015-07-06 21:23:52.579277"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.587072"], ["updated_at", "2015-07-06 21:23:52.587072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd37a3a4c-4615-45bb-87cb-9088460716db' AND "clubhouse_memberships"."organization_id" = 'ed8e99a0-0abb-4906-82c8-09d76d93f694') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d37a3a4c-4615-45bb-87cb-9088460716db"], ["organization_id", "ed8e99a0-0abb-4906-82c8-09d76d93f694"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.591315"], ["updated_at", "2015-07-06 21:23:52.591315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '026e1a75-55b7-4f34-8980-c2a2cd7f6721' AND "clubhouse_memberships"."organization_id" = 'ed8e99a0-0abb-4906-82c8-09d76d93f694') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "026e1a75-55b7-4f34-8980-c2a2cd7f6721"], ["organization_id", "ed8e99a0-0abb-4906-82c8-09d76d93f694"], ["created_at", "2015-07-06 21:23:52.594840"], ["updated_at", "2015-07-06 21:23:52.594840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$2fH3NtsJ4LQF9wPCiAjSzOPXA/RFp7vvY18DwRUswy2FmC3FLFVPO"], ["created_at", "2015-07-06 21:23:52.601682"], ["updated_at", "2015-07-06 21:23:52.601682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.603771"], ["user_id", "79e99920-09bf-4ac3-811b-e6f9f635199d"], ["created_at", "2015-07-06 21:23:52.604425"], ["updated_at", "2015-07-06 21:23:52.604425"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'ed8e99a0-0abb-4906-82c8-09d76d93f694') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "ed8e99a0-0abb-4906-82c8-09d76d93f694"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.609025"], ["updated_at", "2015-07-06 21:23:52.609025"], ["token", "BPY6wGbL5LG4-MUFtlw2UuxueO_O7fBnLZfGk13BjKk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ed8e99a0-0abb-4906-82c8-09d76d93f694/memberships" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"ed8e99a0-0abb-4906-82c8-09d76d93f694", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:52.616908') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8accf1b8-0f26-447b-a24c-d99923a286a3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:52.619208"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:52.619995"], ["id", "8accf1b8-0f26-447b-a24c-d99923a286a3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ed8e99a0-0abb-4906-82c8-09d76d93f694"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "79e99920-09bf-4ac3-811b-e6f9f635199d"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms (ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$qNxJ5FQ9fJI5846Awnl2k.YegdJF7rrp/oouUzZsOJrmcbHxIuIbG"], ["created_at", "2015-07-06 21:23:52.631048"], ["updated_at", "2015-07-06 21:23:52.631048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$.5iQ4iPP1nS2xffb8h2Ie.7M6fp1CLNQ5COiQQ3NcBbqdAhgMpq/K"], ["created_at", "2015-07-06 21:23:52.637832"], ["updated_at", "2015-07-06 21:23:52.637832"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.639978"], ["user_id", "949b7c2b-42a8-4d1e-92b8-8b1eb3f49ad6"], ["created_at", "2015-07-06 21:23:52.640907"], ["updated_at", "2015-07-06 21:23:52.640907"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.647050"], ["updated_at", "2015-07-06 21:23:52.647050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '949b7c2b-42a8-4d1e-92b8-8b1eb3f49ad6' AND "clubhouse_memberships"."organization_id" = '0c1af490-0929-474c-bbcb-93edf8283c09') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "949b7c2b-42a8-4d1e-92b8-8b1eb3f49ad6"], ["organization_id", "0c1af490-0929-474c-bbcb-93edf8283c09"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.650801"], ["updated_at", "2015-07-06 21:23:52.650801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '90a8b3f2-0235-4cf7-a865-f0ae1db4095b' AND "clubhouse_memberships"."organization_id" = '0c1af490-0929-474c-bbcb-93edf8283c09') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "90a8b3f2-0235-4cf7-a865-f0ae1db4095b"], ["organization_id", "0c1af490-0929-474c-bbcb-93edf8283c09"], ["created_at", "2015-07-06 21:23:52.653905"], ["updated_at", "2015-07-06 21:23:52.653905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$TwyHZX/8jbM.VvJDTcQuPOUmMHimmp/vIWk0yZXqv2U0J.jZNpQXS"], ["created_at", "2015-07-06 21:23:52.659948"], ["updated_at", "2015-07-06 21:23:52.659948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.662208"], ["user_id", "75e4084c-d135-4177-a8fd-04c45f424876"], ["created_at", "2015-07-06 21:23:52.663170"], ["updated_at", "2015-07-06 21:23:52.663170"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '0c1af490-0929-474c-bbcb-93edf8283c09') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "0c1af490-0929-474c-bbcb-93edf8283c09"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.667575"], ["updated_at", "2015-07-06 21:23:52.667575"], ["token", "iI3pcIJSw-DdQ4gV0ZVRTaEVHy8Co8KFA0RwwSrHmMU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$99SkU3L.PFG.0zWdhFT2Zuu6FfqOp9bjN56mPFv7qjyBESPCSy9/W"], ["created_at", "2015-07-06 21:23:52.677771"], ["updated_at", "2015-07-06 21:23:52.677771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$orrqKlSeqAYmzGUaHv826ezm8PyNUw6Mvm3w/5zo/ul3SoZnaHWJG"], ["created_at", "2015-07-06 21:23:52.683806"], ["updated_at", "2015-07-06 21:23:52.683806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.685847"], ["user_id", "1427fd7d-2ce6-4b15-b341-eacac3b2a8f7"], ["created_at", "2015-07-06 21:23:52.686537"], ["updated_at", "2015-07-06 21:23:52.686537"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.690813"], ["updated_at", "2015-07-06 21:23:52.690813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1427fd7d-2ce6-4b15-b341-eacac3b2a8f7' AND "clubhouse_memberships"."organization_id" = '47b6718a-ec6a-4c69-9526-65a29f59df4d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1427fd7d-2ce6-4b15-b341-eacac3b2a8f7"], ["organization_id", "47b6718a-ec6a-4c69-9526-65a29f59df4d"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.693883"], ["updated_at", "2015-07-06 21:23:52.693883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '253123be-0d4b-4530-a244-59763557c39b' AND "clubhouse_memberships"."organization_id" = '47b6718a-ec6a-4c69-9526-65a29f59df4d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "253123be-0d4b-4530-a244-59763557c39b"], ["organization_id", "47b6718a-ec6a-4c69-9526-65a29f59df4d"], ["created_at", "2015-07-06 21:23:52.697242"], ["updated_at", "2015-07-06 21:23:52.697242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$k6japatvd0RQALpZSBYWUutJUMFcGowMqS6Nie1IdrLD0mR/trjTG"], ["created_at", "2015-07-06 21:23:52.704307"], ["updated_at", "2015-07-06 21:23:52.704307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.706172"], ["user_id", "1046f7cd-4750-4150-873b-a09333a9b517"], ["created_at", "2015-07-06 21:23:52.706970"], ["updated_at", "2015-07-06 21:23:52.706970"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '47b6718a-ec6a-4c69-9526-65a29f59df4d') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "47b6718a-ec6a-4c69-9526-65a29f59df4d"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.712920"], ["updated_at", "2015-07-06 21:23:52.712920"], ["token", "gf01ssLc7FVWFKeUZpSUi1m0DQSjBOW-8AzXDLvGN7o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"gf01ssLc7FVWFKeUZpSUi1m0DQSjBOW-8AzXDLvGN7o", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:52.717550') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e252e502-8449-4822-9d22-fc7bf1bc1cd7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:52.719039"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:52.719805"], ["id", "e252e502-8449-4822-9d22-fc7bf1bc1cd7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1046f7cd-4750-4150-873b-a09333a9b517"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "gf01ssLc7FVWFKeUZpSUi1m0DQSjBOW-8AzXDLvGN7o"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "47b6718a-ec6a-4c69-9526-65a29f59df4d"]] Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1046f7cd-4750-4150-873b-a09333a9b517' AND "clubhouse_memberships"."organization_id" = '47b6718a-ec6a-4c69-9526-65a29f59df4d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "47b6718a-ec6a-4c69-9526-65a29f59df4d"], ["member_id", "1046f7cd-4750-4150-873b-a09333a9b517"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.729390"], ["updated_at", "2015-07-06 21:23:52.729390"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "50f368e6-025d-47ff-bb98-8ac8e54d7f58"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 15ms (Views: 0.6ms | ActiveRecord: 3.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$VXY5K..2PbsgoLvltczGouMsVMW35ChPGUM5m/z3YTtxl7npjU.Wa"], ["created_at", "2015-07-06 21:23:52.738586"], ["updated_at", "2015-07-06 21:23:52.738586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$evBamlhOHmimlU4h3VWv9eoHfloRvILW1i3/4XV3leuqdvX.Ht8la"], ["created_at", "2015-07-06 21:23:52.744186"], ["updated_at", "2015-07-06 21:23:52.744186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.745678"], ["user_id", "7008d532-e41f-4319-a00a-4431a9937100"], ["created_at", "2015-07-06 21:23:52.746283"], ["updated_at", "2015-07-06 21:23:52.746283"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:23:52.750322"], ["updated_at", "2015-07-06 21:23:52.750322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7008d532-e41f-4319-a00a-4431a9937100' AND "clubhouse_memberships"."organization_id" = '1835d653-8ce0-4a9a-a2c3-d0ad5bae1d07') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7008d532-e41f-4319-a00a-4431a9937100"], ["organization_id", "1835d653-8ce0-4a9a-a2c3-d0ad5bae1d07"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.753296"], ["updated_at", "2015-07-06 21:23:52.753296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0596812d-94f7-48f1-a961-65b5ee5b6f09' AND "clubhouse_memberships"."organization_id" = '1835d653-8ce0-4a9a-a2c3-d0ad5bae1d07') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0596812d-94f7-48f1-a961-65b5ee5b6f09"], ["organization_id", "1835d653-8ce0-4a9a-a2c3-d0ad5bae1d07"], ["created_at", "2015-07-06 21:23:52.756404"], ["updated_at", "2015-07-06 21:23:52.756404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$qbUdxrZn9g81PYhJkdLtke7mcXyErnzrOW4ZhsZWMSN5e7XAIVbKO"], ["created_at", "2015-07-06 21:23:52.763739"], ["updated_at", "2015-07-06 21:23:52.763739"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:23:52.766703"], ["user_id", "0544e6e5-8934-4964-93f9-425529feb9e3"], ["created_at", "2015-07-06 21:23:52.768537"], ["updated_at", "2015-07-06 21:23:52.768537"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '1835d653-8ce0-4a9a-a2c3-d0ad5bae1d07') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "1835d653-8ce0-4a9a-a2c3-d0ad5bae1d07"], ["admin", "t"], ["created_at", "2015-07-06 21:23:52.776459"], ["updated_at", "2015-07-06 21:23:52.776459"], ["token", "kCthhlidETnIQdJrs2I7SzCNY3Diu1hrcNI5fAadtgg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:23:52 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:23:52.782060') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "64e0601e-66c1-4631-9748-9a243fa6dd8a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:23:52.784099"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:23:52.784939"], ["id", "64e0601e-66c1-4631-9748-9a243fa6dd8a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0544e6e5-8934-4964-93f9-425529feb9e3"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 8ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (1.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$/0oPzeJKAvUGmML50lRGze0eDNVFfkXjiaO1ULda/6CD2rJv4L2uy"], ["created_at", "2015-07-06 21:24:04.458161"], ["updated_at", "2015-07-06 21:24:04.458161"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:04.492241"], ["user_id", "2884cca5-b2f9-4410-8317-ec6e6855d7a3"], ["created_at", "2015-07-06 21:24:04.501094"], ["updated_at", "2015-07-06 21:24:04.501094"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:04.520678"], ["updated_at", "2015-07-06 21:24:04.520678"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2884cca5-b2f9-4410-8317-ec6e6855d7a3' AND "clubhouse_memberships"."organization_id" = '5d7b949e-2f0c-4e3d-bf1e-62cc8f28c556') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2884cca5-b2f9-4410-8317-ec6e6855d7a3"], ["organization_id", "5d7b949e-2f0c-4e3d-bf1e-62cc8f28c556"], ["admin", "t"], ["created_at", "2015-07-06 21:24:04.545181"], ["updated_at", "2015-07-06 21:24:04.545181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '5d7b949e-2f0c-4e3d-bf1e-62cc8f28c556') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "5d7b949e-2f0c-4e3d-bf1e-62cc8f28c556"], ["created_at", "2015-07-06 21:24:04.561256"], ["updated_at", "2015-07-06 21:24:04.561256"], ["token", "7-kqZsFKg0NrhqTD0ZTi3gYgT8FToUrHRvT0lVDWcVc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-07-06 14:24:04 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (1.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$HGZGzpvoENcdI.3wc9LGIesyfVfHuEO3p4O2BHl16PzKOWI0/yEZi"], ["created_at", "2015-07-06 21:24:04.625870"], ["updated_at", "2015-07-06 21:24:04.625870"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:04.633831"], ["user_id", "d98b25a1-3194-44f7-b835-7ede04decdfa"], ["created_at", "2015-07-06 21:24:04.637336"], ["updated_at", "2015-07-06 21:24:04.637336"], ["client", "App"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:04.651418"], ["updated_at", "2015-07-06 21:24:04.651418"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd98b25a1-3194-44f7-b835-7ede04decdfa' AND "clubhouse_memberships"."organization_id" = 'c074ace2-d30b-43d2-abba-760b265fc6a8') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d98b25a1-3194-44f7-b835-7ede04decdfa"], ["organization_id", "c074ace2-d30b-43d2-abba-760b265fc6a8"], ["admin", "t"], ["created_at", "2015-07-06 21:24:04.663447"], ["updated_at", "2015-07-06 21:24:04.663447"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'c074ace2-d30b-43d2-abba-760b265fc6a8') LIMIT 1 SQL (3.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "c074ace2-d30b-43d2-abba-760b265fc6a8"], ["created_at", "2015-07-06 21:24:04.673052"], ["updated_at", "2015-07-06 21:24:04.673052"], ["token", "rNSYSTVv-dD6x_Qnbpfe_TkmKGukR4ekehgNBli3sVg"]]  (2.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/c074ace2-d30b-43d2-abba-760b265fc6a8/invitations" for 127.0.0.1 at 2015-07-06 14:24:04 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"c074ace2-d30b-43d2-abba-760b265fc6a8", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:04.689489') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "19eab8d3-029a-4995-a259-8459bcc9ead4"]]  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:04.703387"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:04.707520"], ["id", "19eab8d3-029a-4995-a259-8459bcc9ead4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c074ace2-d30b-43d2-abba-760b265fc6a8"]] User Load (7.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d98b25a1-3194-44f7-b835-7ede04decdfa"]] Clubhouse::Membership Exists (2.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd98b25a1-3194-44f7-b835-7ede04decdfa' LIMIT 1 [["organization_id", "c074ace2-d30b-43d2-abba-760b265fc6a8"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'c074ace2-d30b-43d2-abba-760b265fc6a8') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "c074ace2-d30b-43d2-abba-760b265fc6a8"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:04.804047"], ["updated_at", "2015-07-06 21:24:04.804047"], ["token", "eSCmnez0W0jNug4oTUjzfLxiT8mb1BHKCNoxxsp59Eg"]]  (1.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fc06d53b-753c-40fd-9c8d-ba9a6b0a6115) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/27956c54-7f5c-41bd-8d46-665b9987f96d [ActiveJob] Clubhouse::Invitation Load (0.6ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "27956c54-7f5c-41bd-8d46-665b9987f96d"]] [ActiveJob] [ActionMailer::DeliveryJob] [fc06d53b-753c-40fd-9c8d-ba9a6b0a6115] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/27956c54-7f5c-41bd-8d46-665b9987f96d [ActiveJob] [ActionMailer::DeliveryJob] [fc06d53b-753c-40fd-9c8d-ba9a6b0a6115] Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c074ace2-d30b-43d2-abba-760b265fc6a8"]] [ActiveJob] [ActionMailer::DeliveryJob] [fc06d53b-753c-40fd-9c8d-ba9a6b0a6115] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (4.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [fc06d53b-753c-40fd-9c8d-ba9a6b0a6115] Clubhouse::Mailer#invitation: processed outbound mail in 394.8ms [ActiveJob] [ActionMailer::DeliveryJob] [fc06d53b-753c-40fd-9c8d-ba9a6b0a6115] Sent mail to email@example.com (10.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [fc06d53b-753c-40fd-9c8d-ba9a6b0a6115] Date: Mon, 06 Jul 2015 14:24:05 -0700 From: from@example.com To: email@example.com Message-ID: <559af1f5509e7_10bd73ff1818601fc306b7@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/eSCmnez0W0jNug4oTUjzfLxiT8mb1BHKCNoxxsp59Eg?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [fc06d53b-753c-40fd-9c8d-ba9a6b0a6115] Performed ActionMailer::DeliveryJob from Inline(mailers) in 405.98ms Completed 201 Created in 669ms (Views: 21.2ms | ActiveRecord: 18.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$7gcXIDeakLsM1rAUMXQX6.98CgmRbLOKbwu4St23cPranQqa6qUfa"], ["created_at", "2015-07-06 21:24:05.422236"], ["updated_at", "2015-07-06 21:24:05.422236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.425001"], ["user_id", "39be70cd-729b-4064-a652-88b241e72741"], ["created_at", "2015-07-06 21:24:05.426350"], ["updated_at", "2015-07-06 21:24:05.426350"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (1.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.437728"], ["updated_at", "2015-07-06 21:24:05.437728"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39be70cd-729b-4064-a652-88b241e72741' AND "clubhouse_memberships"."organization_id" = '0524ae3d-43ff-444b-b8f3-805ef3627246') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "39be70cd-729b-4064-a652-88b241e72741"], ["organization_id", "0524ae3d-43ff-444b-b8f3-805ef3627246"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.450186"], ["updated_at", "2015-07-06 21:24:05.450186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '0524ae3d-43ff-444b-b8f3-805ef3627246') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "0524ae3d-43ff-444b-b8f3-805ef3627246"], ["created_at", "2015-07-06 21:24:05.458664"], ["updated_at", "2015-07-06 21:24:05.458664"], ["token", "PW3dAY7gjDcVu2JpTQVblpz21n1XoO5gWUvxaPG_7d4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0524ae3d-43ff-444b-b8f3-805ef3627246/invitations" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"0524ae3d-43ff-444b-b8f3-805ef3627246", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:05.463418') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ae42a0bd-ddc2-478f-97d5-e7fe256dd9b4"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:05.465264"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:05.466742"], ["id", "ae42a0bd-ddc2-478f-97d5-e7fe256dd9b4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0524ae3d-43ff-444b-b8f3-805ef3627246"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "39be70cd-729b-4064-a652-88b241e72741"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '39be70cd-729b-4064-a652-88b241e72741' LIMIT 1 [["organization_id", "0524ae3d-43ff-444b-b8f3-805ef3627246"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0524ae3d-43ff-444b-b8f3-805ef3627246') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "0524ae3d-43ff-444b-b8f3-805ef3627246"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.478323"], ["updated_at", "2015-07-06 21:24:05.478323"], ["token", "I7Z8Qz6nL_5IkylTaVIEGglaNAKvSsa11MGeFpJLCxg"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 01ad9c5f-1dd3-40d2-abff-994df72d2f27) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/eb74ad41-b82c-4a08-885a-430060f61604 [ActiveJob] Clubhouse::Invitation Load (0.9ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "eb74ad41-b82c-4a08-885a-430060f61604"]] [ActiveJob] [ActionMailer::DeliveryJob] [01ad9c5f-1dd3-40d2-abff-994df72d2f27] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/eb74ad41-b82c-4a08-885a-430060f61604 [ActiveJob] [ActionMailer::DeliveryJob] [01ad9c5f-1dd3-40d2-abff-994df72d2f27] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0524ae3d-43ff-444b-b8f3-805ef3627246"]] [ActiveJob] [ActionMailer::DeliveryJob] [01ad9c5f-1dd3-40d2-abff-994df72d2f27] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [01ad9c5f-1dd3-40d2-abff-994df72d2f27] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [01ad9c5f-1dd3-40d2-abff-994df72d2f27] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [01ad9c5f-1dd3-40d2-abff-994df72d2f27] Date: Mon, 06 Jul 2015 14:24:05 -0700 From: from@example.com To: email@example.com Message-ID: <559af1f578214_10bd73ff1818601fc30734@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/I7Z8Qz6nL_5IkylTaVIEGglaNAKvSsa11MGeFpJLCxg?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [01ad9c5f-1dd3-40d2-abff-994df72d2f27] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.84ms Completed 201 Created in 31ms (Views: 0.7ms | ActiveRecord: 4.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$5w4k1V8Wr1l9XRbi0j2WZ.Fko9vZXhPoxrpvHEItjhpO31AZdk5yi"], ["created_at", "2015-07-06 21:24:05.504098"], ["updated_at", "2015-07-06 21:24:05.504098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.507191"], ["user_id", "9130b6b4-2e29-4249-97ec-c3f1823267fa"], ["created_at", "2015-07-06 21:24:05.507935"], ["updated_at", "2015-07-06 21:24:05.507935"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.512714"], ["updated_at", "2015-07-06 21:24:05.512714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9130b6b4-2e29-4249-97ec-c3f1823267fa' AND "clubhouse_memberships"."organization_id" = '2639e562-9b9a-411e-9be5-c97d8ac55843') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9130b6b4-2e29-4249-97ec-c3f1823267fa"], ["organization_id", "2639e562-9b9a-411e-9be5-c97d8ac55843"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.518175"], ["updated_at", "2015-07-06 21:24:05.518175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '2639e562-9b9a-411e-9be5-c97d8ac55843') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "2639e562-9b9a-411e-9be5-c97d8ac55843"], ["created_at", "2015-07-06 21:24:05.525272"], ["updated_at", "2015-07-06 21:24:05.525272"], ["token", "tp-bu4Pw3LEEKVrSewRzPCIqttl_HzbSp8nd8k6hV2w"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2639e562-9b9a-411e-9be5-c97d8ac55843/invitations" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"2639e562-9b9a-411e-9be5-c97d8ac55843", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:05.537045') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f3da2eac-4087-4551-b868-f75c9909541d"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:05.539294"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:05.541694"], ["id", "f3da2eac-4087-4551-b868-f75c9909541d"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (1.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2639e562-9b9a-411e-9be5-c97d8ac55843"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9130b6b4-2e29-4249-97ec-c3f1823267fa"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9130b6b4-2e29-4249-97ec-c3f1823267fa' LIMIT 1 [["organization_id", "2639e562-9b9a-411e-9be5-c97d8ac55843"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '2639e562-9b9a-411e-9be5-c97d8ac55843') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 25ms (ActiveRecord: 4.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$9bjv38Ie8sH7YdfE4ifOouA0E1YuLdMu/WLt6xPNzbZWLSFapZ3vW"], ["created_at", "2015-07-06 21:24:05.569418"], ["updated_at", "2015-07-06 21:24:05.569418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.571232"], ["user_id", "a9e97163-6ac4-44b6-891a-2ca8caffa1db"], ["created_at", "2015-07-06 21:24:05.571843"], ["updated_at", "2015-07-06 21:24:05.571843"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.575985"], ["updated_at", "2015-07-06 21:24:05.575985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a9e97163-6ac4-44b6-891a-2ca8caffa1db' AND "clubhouse_memberships"."organization_id" = 'd7d26063-7ed8-4aa7-8dcd-1bd2c89d3c42') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a9e97163-6ac4-44b6-891a-2ca8caffa1db"], ["organization_id", "d7d26063-7ed8-4aa7-8dcd-1bd2c89d3c42"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.580139"], ["updated_at", "2015-07-06 21:24:05.580139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'd7d26063-7ed8-4aa7-8dcd-1bd2c89d3c42') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "d7d26063-7ed8-4aa7-8dcd-1bd2c89d3c42"], ["created_at", "2015-07-06 21:24:05.586512"], ["updated_at", "2015-07-06 21:24:05.586512"], ["token", "UjNYspIfn5CzBjtIwQj5u07019rpKICg_YpwXDrCPOQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/c743e92c-05b5-4079-af34-a2f9e89819cb" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"c743e92c-05b5-4079-af34-a2f9e89819cb", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:05.590112') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9ac64be7-6dd7-4e1e-917f-c0b4362d1c31"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:05.591636"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:05.592513"], ["id", "9ac64be7-6dd7-4e1e-917f-c0b4362d1c31"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c743e92c-05b5-4079-af34-a2f9e89819cb"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a9e97163-6ac4-44b6-891a-2ca8caffa1db"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "d7d26063-7ed8-4aa7-8dcd-1bd2c89d3c42"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a9e97163-6ac4-44b6-891a-2ca8caffa1db' LIMIT 1 [["organization_id", "d7d26063-7ed8-4aa7-8dcd-1bd2c89d3c42"], ["admin", "t"]] Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$E/kiGEqvWfREvobGwUa2DuE5SaHeB09/fVPb2YfuwryMvlQNj8nie"], ["created_at", "2015-07-06 21:24:05.608586"], ["updated_at", "2015-07-06 21:24:05.608586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.610203"], ["user_id", "2c0c47ce-9102-46d0-9d43-5b4040954989"], ["created_at", "2015-07-06 21:24:05.610801"], ["updated_at", "2015-07-06 21:24:05.610801"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.617255"], ["updated_at", "2015-07-06 21:24:05.617255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c0c47ce-9102-46d0-9d43-5b4040954989' AND "clubhouse_memberships"."organization_id" = 'c5eced7f-bd28-4c04-a479-3ce775d6180f') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c0c47ce-9102-46d0-9d43-5b4040954989"], ["organization_id", "c5eced7f-bd28-4c04-a479-3ce775d6180f"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.621922"], ["updated_at", "2015-07-06 21:24:05.621922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = 'c5eced7f-bd28-4c04-a479-3ce775d6180f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "c5eced7f-bd28-4c04-a479-3ce775d6180f"], ["created_at", "2015-07-06 21:24:05.627873"], ["updated_at", "2015-07-06 21:24:05.627873"], ["token", "RifeNH-hTr8N697H5I94dewtZX_rQ2Ll2wKPbyVlgmA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$rPtAE0YfwQBEUNLW4mKA2OHmSUt62KXcU2eSktQkdRp/oCtiqlYuu"], ["created_at", "2015-07-06 21:24:05.639197"], ["updated_at", "2015-07-06 21:24:05.639197"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.641912"], ["user_id", "81a7725c-c8b2-4318-880b-79c960867e85"], ["created_at", "2015-07-06 21:24:05.642917"], ["updated_at", "2015-07-06 21:24:05.642917"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.647597"], ["updated_at", "2015-07-06 21:24:05.647597"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '81a7725c-c8b2-4318-880b-79c960867e85' AND "clubhouse_memberships"."organization_id" = '54bbe8d0-ef5d-4ffd-9f0b-cfa44470e532') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "81a7725c-c8b2-4318-880b-79c960867e85"], ["organization_id", "54bbe8d0-ef5d-4ffd-9f0b-cfa44470e532"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.651700"], ["updated_at", "2015-07-06 21:24:05.651700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '54bbe8d0-ef5d-4ffd-9f0b-cfa44470e532') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "54bbe8d0-ef5d-4ffd-9f0b-cfa44470e532"], ["created_at", "2015-07-06 21:24:05.656019"], ["updated_at", "2015-07-06 21:24:05.656019"], ["token", "SKWu8QuDtqZc4eWFAs8E4-lrup8VIUp4kZzE9cwNuoE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$2THst6oc6IY/ISrTrJgIjOZ9ilD4yRkhMEQcQvjhQ5/knraQy7JSi"], ["created_at", "2015-07-06 21:24:05.661128"], ["updated_at", "2015-07-06 21:24:05.661128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.664893"], ["updated_at", "2015-07-06 21:24:05.664893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4caed8df-ec04-4456-9c0f-f2eedae807d2' AND "clubhouse_memberships"."organization_id" = '11e90345-6a13-4aee-b55f-8d613b42e184') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4caed8df-ec04-4456-9c0f-f2eedae807d2"], ["organization_id", "11e90345-6a13-4aee-b55f-8d613b42e184"], ["created_at", "2015-07-06 21:24:05.668803"], ["updated_at", "2015-07-06 21:24:05.668803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$0Ex5hHG80kofjFGC6nEMgul/49xkRZCm3PWKfHyuneFP4S9Hzyna."], ["created_at", "2015-07-06 21:24:05.677710"], ["updated_at", "2015-07-06 21:24:05.677710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.679289"], ["user_id", "08116a7f-198b-4718-b456-0ff7b571a034"], ["created_at", "2015-07-06 21:24:05.679951"], ["updated_at", "2015-07-06 21:24:05.679951"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.685756"], ["updated_at", "2015-07-06 21:24:05.685756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08116a7f-198b-4718-b456-0ff7b571a034' AND "clubhouse_memberships"."organization_id" = 'e9454df4-5fff-4290-b8dc-043c338f3beb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08116a7f-198b-4718-b456-0ff7b571a034"], ["organization_id", "e9454df4-5fff-4290-b8dc-043c338f3beb"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.689351"], ["updated_at", "2015-07-06 21:24:05.689351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = 'e9454df4-5fff-4290-b8dc-043c338f3beb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "e9454df4-5fff-4290-b8dc-043c338f3beb"], ["created_at", "2015-07-06 21:24:05.694797"], ["updated_at", "2015-07-06 21:24:05.694797"], ["token", "zzRuZc5rM__LWWg_RMXqPZUwwxeyrJiaX_9g8mBudJU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$sttdFBYSVseYt8Y/gT1PeeYR1XxLcem7SVWdGr2SJcAMMotLPOXAq"], ["created_at", "2015-07-06 21:24:05.702080"], ["updated_at", "2015-07-06 21:24:05.702080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.706759"], ["updated_at", "2015-07-06 21:24:05.706759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '772ed7c1-9709-431a-a8c0-6c33746a1014' AND "clubhouse_memberships"."organization_id" = 'b5016238-a8e3-4099-9ec1-6835f17cd2b2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "772ed7c1-9709-431a-a8c0-6c33746a1014"], ["organization_id", "b5016238-a8e3-4099-9ec1-6835f17cd2b2"], ["created_at", "2015-07-06 21:24:05.710915"], ["updated_at", "2015-07-06 21:24:05.710915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:05.713978') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0fc564ae-0cf3-46c5-9955-1bafd4ca5f5d"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:05.715280"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:05.716141"], ["id", "0fc564ae-0cf3-46c5-9955-1bafd4ca5f5d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "08116a7f-198b-4718-b456-0ff7b571a034"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '08116a7f-198b-4718-b456-0ff7b571a034' LIMIT 1 [["organization_id", "e9454df4-5fff-4290-b8dc-043c338f3beb"], ["admin", "t"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "e9454df4-5fff-4290-b8dc-043c338f3beb"]] Completed 200 OK in 10ms (Views: 1.6ms | ActiveRecord: 1.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$sX6g0RCfIdh2uzRt5uKyr.8VhnFKCz/Km3kIKUtHYB79b7EkyljuK"], ["created_at", "2015-07-06 21:24:05.730547"], ["updated_at", "2015-07-06 21:24:05.730547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.732274"], ["user_id", "08d0cb28-5f92-4404-b12e-86283a99c9e7"], ["created_at", "2015-07-06 21:24:05.733146"], ["updated_at", "2015-07-06 21:24:05.733146"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.741166"], ["updated_at", "2015-07-06 21:24:05.741166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08d0cb28-5f92-4404-b12e-86283a99c9e7' AND "clubhouse_memberships"."organization_id" = 'd2cb2ceb-4e8c-4c09-968f-a508e37c49af') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08d0cb28-5f92-4404-b12e-86283a99c9e7"], ["organization_id", "d2cb2ceb-4e8c-4c09-968f-a508e37c49af"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.745757"], ["updated_at", "2015-07-06 21:24:05.745757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'd2cb2ceb-4e8c-4c09-968f-a508e37c49af') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "d2cb2ceb-4e8c-4c09-968f-a508e37c49af"], ["created_at", "2015-07-06 21:24:05.751120"], ["updated_at", "2015-07-06 21:24:05.751120"], ["token", "evfRlMrxLqWczbcrbec5fWQik_ecOPnIgeveCHBxbLQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$lGO/JWDqCOmMtOhBXyMq3eUM7YPxbAKFW4jrmK8jpGssSZ.QDuOhu"], ["created_at", "2015-07-06 21:24:05.762510"], ["updated_at", "2015-07-06 21:24:05.762510"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.765761"], ["user_id", "f4e7329b-c45b-4dcf-9c8c-7554d8ffcd9e"], ["created_at", "2015-07-06 21:24:05.767268"], ["updated_at", "2015-07-06 21:24:05.767268"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.773299"], ["updated_at", "2015-07-06 21:24:05.773299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f4e7329b-c45b-4dcf-9c8c-7554d8ffcd9e' AND "clubhouse_memberships"."organization_id" = '63f2bd5d-903e-42fa-b485-b9256747afce') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f4e7329b-c45b-4dcf-9c8c-7554d8ffcd9e"], ["organization_id", "63f2bd5d-903e-42fa-b485-b9256747afce"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.777776"], ["updated_at", "2015-07-06 21:24:05.777776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '63f2bd5d-903e-42fa-b485-b9256747afce') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "63f2bd5d-903e-42fa-b485-b9256747afce"], ["created_at", "2015-07-06 21:24:05.783631"], ["updated_at", "2015-07-06 21:24:05.783631"], ["token", "Jc8tcmzTFyK7JcxLnOUAhwr_Sc0E6wgVOQDiUqd8baI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/6a667131-c30a-4283-809f-876b5d55eebb" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"6a667131-c30a-4283-809f-876b5d55eebb", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:05.786602') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "59c075c5-939b-4b00-be9c-505ce94cf302"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:05.787867"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:05.788598"], ["id", "59c075c5-939b-4b00-be9c-505ce94cf302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6a667131-c30a-4283-809f-876b5d55eebb"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f4e7329b-c45b-4dcf-9c8c-7554d8ffcd9e"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63f2bd5d-903e-42fa-b485-b9256747afce"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'f4e7329b-c45b-4dcf-9c8c-7554d8ffcd9e' LIMIT 1 [["organization_id", "63f2bd5d-903e-42fa-b485-b9256747afce"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "6a667131-c30a-4283-809f-876b5d55eebb"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 8ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$wGpZIvuTomi0pVJeJywr5esh0VzXD4dftZJWw6Djpry7Yt8zQW4V2"], ["created_at", "2015-07-06 21:24:05.801236"], ["updated_at", "2015-07-06 21:24:05.801236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.803433"], ["user_id", "ea672d87-af8e-4c1a-afac-7bf735e69b65"], ["created_at", "2015-07-06 21:24:05.804204"], ["updated_at", "2015-07-06 21:24:05.804204"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.808983"], ["updated_at", "2015-07-06 21:24:05.808983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ea672d87-af8e-4c1a-afac-7bf735e69b65' AND "clubhouse_memberships"."organization_id" = '048e0851-3fb9-4336-bbd4-78e59b413947') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ea672d87-af8e-4c1a-afac-7bf735e69b65"], ["organization_id", "048e0851-3fb9-4336-bbd4-78e59b413947"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.812048"], ["updated_at", "2015-07-06 21:24:05.812048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '048e0851-3fb9-4336-bbd4-78e59b413947') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "048e0851-3fb9-4336-bbd4-78e59b413947"], ["created_at", "2015-07-06 21:24:05.816705"], ["updated_at", "2015-07-06 21:24:05.816705"], ["token", "TyZXgaMg6fj-_XmK58ejpHJfm9VW09qy_m2DP3wH-uU"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$xrsC/fy2uD2KvqcfL0i07e9tnIb3glfR8hS4rmpmkCqS/.HiXHyV2"], ["created_at", "2015-07-06 21:24:05.826165"], ["updated_at", "2015-07-06 21:24:05.826165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.827956"], ["user_id", "58e7ea15-d269-4275-83d8-ed6a465a3376"], ["created_at", "2015-07-06 21:24:05.828555"], ["updated_at", "2015-07-06 21:24:05.828555"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.833526"], ["updated_at", "2015-07-06 21:24:05.833526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58e7ea15-d269-4275-83d8-ed6a465a3376' AND "clubhouse_memberships"."organization_id" = '3ab1fe39-9476-460a-ae40-22b0803f199b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58e7ea15-d269-4275-83d8-ed6a465a3376"], ["organization_id", "3ab1fe39-9476-460a-ae40-22b0803f199b"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.837330"], ["updated_at", "2015-07-06 21:24:05.837330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '3ab1fe39-9476-460a-ae40-22b0803f199b') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "3ab1fe39-9476-460a-ae40-22b0803f199b"], ["created_at", "2015-07-06 21:24:05.841342"], ["updated_at", "2015-07-06 21:24:05.841342"], ["token", "-wZWsj66D4Px2XzFVavdWmXSNFoMwmX1b0P-NQqXzNc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/2c72e012-b977-447b-82bb-0f533a6383dd" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"2c72e012-b977-447b-82bb-0f533a6383dd", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:05.845404') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2180ba02-bf51-4df0-850c-f96dae4d6214"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:05.846816"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:05.847550"], ["id", "2180ba02-bf51-4df0-850c-f96dae4d6214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "2c72e012-b977-447b-82bb-0f533a6383dd"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "58e7ea15-d269-4275-83d8-ed6a465a3376"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3ab1fe39-9476-460a-ae40-22b0803f199b"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '58e7ea15-d269-4275-83d8-ed6a465a3376' LIMIT 1 [["organization_id", "3ab1fe39-9476-460a-ae40-22b0803f199b"], ["admin", "t"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."id" != '2c72e012-b977-447b-82bb-0f533a6383dd' AND "clubhouse_invitations"."organization_id" = '3ab1fe39-9476-460a-ae40-22b0803f199b') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:24:05.857394"], ["id", "2c72e012-b977-447b-82bb-0f533a6383dd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 2.6ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$0M77xNaeT1hLZNZKvZEpXuetkr5nVBw6R7K42vz.hugm8MGTZ/t7u"], ["created_at", "2015-07-06 21:24:05.868762"], ["updated_at", "2015-07-06 21:24:05.868762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.870728"], ["user_id", "ad73d1ff-92d5-4c14-a67d-527ed1b56a62"], ["created_at", "2015-07-06 21:24:05.871476"], ["updated_at", "2015-07-06 21:24:05.871476"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.875577"], ["updated_at", "2015-07-06 21:24:05.875577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad73d1ff-92d5-4c14-a67d-527ed1b56a62' AND "clubhouse_memberships"."organization_id" = '1082b06f-641a-4a2c-8604-216e3c2d7aa2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad73d1ff-92d5-4c14-a67d-527ed1b56a62"], ["organization_id", "1082b06f-641a-4a2c-8604-216e3c2d7aa2"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.878630"], ["updated_at", "2015-07-06 21:24:05.878630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '1082b06f-641a-4a2c-8604-216e3c2d7aa2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "1082b06f-641a-4a2c-8604-216e3c2d7aa2"], ["created_at", "2015-07-06 21:24:05.882542"], ["updated_at", "2015-07-06 21:24:05.882542"], ["token", "hNGZsDdeT6dP9FRZiBDGaliwQ0OCkRuYPz0mJh9Zd54"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$xBpSQUGfQAg3Al0.Mdvoq.bU9om8cl6as/wMY52usiQQ/0yU6vMvS"], ["created_at", "2015-07-06 21:24:05.887546"], ["updated_at", "2015-07-06 21:24:05.887546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.891389"], ["updated_at", "2015-07-06 21:24:05.891389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6be3abe7-b54c-4715-811a-70addee5e47e' AND "clubhouse_memberships"."organization_id" = '26b94673-cb76-47ee-824d-959ca3838098') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6be3abe7-b54c-4715-811a-70addee5e47e"], ["organization_id", "26b94673-cb76-47ee-824d-959ca3838098"], ["created_at", "2015-07-06 21:24:05.894527"], ["updated_at", "2015-07-06 21:24:05.894527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$cdiC1TaOpkqMe0H0.CmGNemOdjEjDB28z6SW1ExJ4AU6LZEVZP5BG"], ["created_at", "2015-07-06 21:24:05.904380"], ["updated_at", "2015-07-06 21:24:05.904380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.906042"], ["user_id", "11071db0-5782-40bb-8e6a-d84d51d4e0ba"], ["created_at", "2015-07-06 21:24:05.906667"], ["updated_at", "2015-07-06 21:24:05.906667"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.910603"], ["updated_at", "2015-07-06 21:24:05.910603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '11071db0-5782-40bb-8e6a-d84d51d4e0ba' AND "clubhouse_memberships"."organization_id" = '70fa9e6e-ac79-467c-828c-86b2bab19f0b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "11071db0-5782-40bb-8e6a-d84d51d4e0ba"], ["organization_id", "70fa9e6e-ac79-467c-828c-86b2bab19f0b"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.913735"], ["updated_at", "2015-07-06 21:24:05.913735"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '70fa9e6e-ac79-467c-828c-86b2bab19f0b') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "70fa9e6e-ac79-467c-828c-86b2bab19f0b"], ["created_at", "2015-07-06 21:24:05.918862"], ["updated_at", "2015-07-06 21:24:05.918862"], ["token", "jauSvIOUJRtUU9rrCdYvgHzHEp1vY87vygYZlR8bhSM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$nlN90ZppRRtvUAZHY6haPuZ2g0GjAGkvRiUd43F4GDlKfEOR5tvu."], ["created_at", "2015-07-06 21:24:05.924826"], ["updated_at", "2015-07-06 21:24:05.924826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.928576"], ["updated_at", "2015-07-06 21:24:05.928576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ec6343f5-b5e1-4d29-ae71-b1855ac1f7dd' AND "clubhouse_memberships"."organization_id" = '89dc86d0-4a82-4415-86dc-00990fc3b53a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ec6343f5-b5e1-4d29-ae71-b1855ac1f7dd"], ["organization_id", "89dc86d0-4a82-4415-86dc-00990fc3b53a"], ["created_at", "2015-07-06 21:24:05.931383"], ["updated_at", "2015-07-06 21:24:05.931383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/70fa9e6e-ac79-467c-828c-86b2bab19f0b/invitations" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"70fa9e6e-ac79-467c-828c-86b2bab19f0b", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:05.934835') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bbbe74ef-5888-4a57-907b-a0402ac75e8a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:05.936566"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:05.937557"], ["id", "bbbe74ef-5888-4a57-907b-a0402ac75e8a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "70fa9e6e-ac79-467c-828c-86b2bab19f0b"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "11071db0-5782-40bb-8e6a-d84d51d4e0ba"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '11071db0-5782-40bb-8e6a-d84d51d4e0ba' LIMIT 1 [["organization_id", "70fa9e6e-ac79-467c-828c-86b2bab19f0b"], ["admin", "t"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "70fa9e6e-ac79-467c-828c-86b2bab19f0b"]] Completed 200 OK in 10ms (Views: 1.2ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$2UFmL4ht97OdZd47NoAlMORAcKyVqz7KONCZQnxNNiXdnkbis/a1K"], ["created_at", "2015-07-06 21:24:05.951785"], ["updated_at", "2015-07-06 21:24:05.951785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.953457"], ["user_id", "f303afe6-35ef-4b43-8041-28bceb3fd24a"], ["created_at", "2015-07-06 21:24:05.954271"], ["updated_at", "2015-07-06 21:24:05.954271"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.958320"], ["updated_at", "2015-07-06 21:24:05.958320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f303afe6-35ef-4b43-8041-28bceb3fd24a' AND "clubhouse_memberships"."organization_id" = 'ea61a1d5-8b2b-4d51-99ee-8f745e6099f5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f303afe6-35ef-4b43-8041-28bceb3fd24a"], ["organization_id", "ea61a1d5-8b2b-4d51-99ee-8f745e6099f5"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.961194"], ["updated_at", "2015-07-06 21:24:05.961194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'ea61a1d5-8b2b-4d51-99ee-8f745e6099f5') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "ea61a1d5-8b2b-4d51-99ee-8f745e6099f5"], ["created_at", "2015-07-06 21:24:05.965150"], ["updated_at", "2015-07-06 21:24:05.965150"], ["token", "PG9MU4gq6CLecNG7Xxm8CbaWBzevqC0UPQwpLxN8P08"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:24:05 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$tkQQ7gSDHBjhNT5lDiC20eFNn3bi6QJe0DF6tVH57i1EY0BW6gXR."], ["created_at", "2015-07-06 21:24:05.985367"], ["updated_at", "2015-07-06 21:24:05.985367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:05.987734"], ["user_id", "27fc9280-7cc5-4256-a908-1672e2b2a111"], ["created_at", "2015-07-06 21:24:05.988546"], ["updated_at", "2015-07-06 21:24:05.988546"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:05.994598"], ["updated_at", "2015-07-06 21:24:05.994598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '27fc9280-7cc5-4256-a908-1672e2b2a111' AND "clubhouse_memberships"."organization_id" = '01b982cf-0b08-4f20-aac2-eddb3e3a2979') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "27fc9280-7cc5-4256-a908-1672e2b2a111"], ["organization_id", "01b982cf-0b08-4f20-aac2-eddb3e3a2979"], ["admin", "t"], ["created_at", "2015-07-06 21:24:05.998144"], ["updated_at", "2015-07-06 21:24:05.998144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '01b982cf-0b08-4f20-aac2-eddb3e3a2979') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "01b982cf-0b08-4f20-aac2-eddb3e3a2979"], ["created_at", "2015-07-06 21:24:06.003788"], ["updated_at", "2015-07-06 21:24:06.003788"], ["token", "D7zloWANIVAvLizZZetPR5LyfEZfLew3vVX8E76tIKA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:06 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:06.006804') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c684b8fc-2b80-4210-bcd1-cefa414c108c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:06.008371"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:06.009145"], ["id", "c684b8fc-2b80-4210-bcd1-cefa414c108c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "27fc9280-7cc5-4256-a908-1672e2b2a111"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '27fc9280-7cc5-4256-a908-1672e2b2a111' LIMIT 1 [["organization_id", "01b982cf-0b08-4f20-aac2-eddb3e3a2979"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '01b982cf-0b08-4f20-aac2-eddb3e3a2979') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$9uMUgaHHO/e7lZBk.kw7IufiVtiS/nDCZZopdhQcKbGwGeuO9va1W"], ["created_at", "2015-07-06 21:24:06.029911"], ["updated_at", "2015-07-06 21:24:06.029911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:06.031688"], ["user_id", "5932856c-8c45-4325-b654-e04c65ab0ad8"], ["created_at", "2015-07-06 21:24:06.032501"], ["updated_at", "2015-07-06 21:24:06.032501"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:06.037754"], ["updated_at", "2015-07-06 21:24:06.037754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5932856c-8c45-4325-b654-e04c65ab0ad8' AND "clubhouse_memberships"."organization_id" = '1946ab56-11b4-4d49-8eeb-7f1a89336f5d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5932856c-8c45-4325-b654-e04c65ab0ad8"], ["organization_id", "1946ab56-11b4-4d49-8eeb-7f1a89336f5d"], ["admin", "t"], ["created_at", "2015-07-06 21:24:06.040960"], ["updated_at", "2015-07-06 21:24:06.040960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '1946ab56-11b4-4d49-8eeb-7f1a89336f5d') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "1946ab56-11b4-4d49-8eeb-7f1a89336f5d"], ["created_at", "2015-07-06 21:24:06.045185"], ["updated_at", "2015-07-06 21:24:06.045185"], ["token", "zk-2Hkdxtzqfv2MLBzYOr-CrbaWXe0A6019mlK-uPrU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:06 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:06.048054') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f95ec697-4901-42ef-b13f-f96d6a36d571"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:06.049579"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:06.050479"], ["id", "f95ec697-4901-42ef-b13f-f96d6a36d571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5932856c-8c45-4325-b654-e04c65ab0ad8"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '5932856c-8c45-4325-b654-e04c65ab0ad8' LIMIT 1 [["organization_id", "1946ab56-11b4-4d49-8eeb-7f1a89336f5d"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '1946ab56-11b4-4d49-8eeb-7f1a89336f5d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "1946ab56-11b4-4d49-8eeb-7f1a89336f5d"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:06.073534"], ["updated_at", "2015-07-06 21:24:06.073534"], ["token", "3h7g8qLfoegP90SRNhKAoKL02EBCQTQPC5k_Bu4Jzpo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b5fdf3aa-93d5-4779-b144-9f662f6dbd6e) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3d85e0f7-47e8-48f2-9472-535bc5a6b215 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3d85e0f7-47e8-48f2-9472-535bc5a6b215"]] [ActiveJob] [ActionMailer::DeliveryJob] [b5fdf3aa-93d5-4779-b144-9f662f6dbd6e] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3d85e0f7-47e8-48f2-9472-535bc5a6b215 [ActiveJob] [ActionMailer::DeliveryJob] [b5fdf3aa-93d5-4779-b144-9f662f6dbd6e] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1946ab56-11b4-4d49-8eeb-7f1a89336f5d"]] [ActiveJob] [ActionMailer::DeliveryJob] [b5fdf3aa-93d5-4779-b144-9f662f6dbd6e] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [b5fdf3aa-93d5-4779-b144-9f662f6dbd6e] Clubhouse::Mailer#invitation: processed outbound mail in 2.5ms [ActiveJob] [ActionMailer::DeliveryJob] [b5fdf3aa-93d5-4779-b144-9f662f6dbd6e] Sent mail to email@example.com (1.9ms) [ActiveJob] [ActionMailer::DeliveryJob] [b5fdf3aa-93d5-4779-b144-9f662f6dbd6e] Date: Mon, 06 Jul 2015 14:24:06 -0700 From: from@example.com To: email@example.com Message-ID: <559af1f614007_10bd73ff1818601fc30859@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/3h7g8qLfoegP90SRNhKAoKL02EBCQTQPC5k_Bu4Jzpo?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b5fdf3aa-93d5-4779-b144-9f662f6dbd6e] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.93ms Completed 201 Created in 37ms (Views: 1.0ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$VFjnIPA9Yldd95VwTwFEu.QG8J3KCoHprMxdplVsOh6CzMD.uCaRm"], ["created_at", "2015-07-06 21:24:06.099195"], ["updated_at", "2015-07-06 21:24:06.099195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:06.101345"], ["user_id", "20569bfe-841c-4dc4-a081-815a4a8a4531"], ["created_at", "2015-07-06 21:24:06.102399"], ["updated_at", "2015-07-06 21:24:06.102399"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:06.108541"], ["updated_at", "2015-07-06 21:24:06.108541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20569bfe-841c-4dc4-a081-815a4a8a4531' AND "clubhouse_memberships"."organization_id" = '5567458c-c1b0-4ca1-9464-a7cf8b240562') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20569bfe-841c-4dc4-a081-815a4a8a4531"], ["organization_id", "5567458c-c1b0-4ca1-9464-a7cf8b240562"], ["admin", "t"], ["created_at", "2015-07-06 21:24:06.113716"], ["updated_at", "2015-07-06 21:24:06.113716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '5567458c-c1b0-4ca1-9464-a7cf8b240562') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "5567458c-c1b0-4ca1-9464-a7cf8b240562"], ["created_at", "2015-07-06 21:24:06.119719"], ["updated_at", "2015-07-06 21:24:06.119719"], ["token", "iqsEWKGzv_BVKF4riIZGRsQqTKmPd4DP7_-Fj0xUMfw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:06 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:06.124820') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4c63e133-ed57-454d-a45a-aae9c678ff82"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:06.127106"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:06.128069"], ["id", "4c63e133-ed57-454d-a45a-aae9c678ff82"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20569bfe-841c-4dc4-a081-815a4a8a4531"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '20569bfe-841c-4dc4-a081-815a4a8a4531' LIMIT 1 [["organization_id", "5567458c-c1b0-4ca1-9464-a7cf8b240562"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '5567458c-c1b0-4ca1-9464-a7cf8b240562') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "5567458c-c1b0-4ca1-9464-a7cf8b240562"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:06.138829"], ["updated_at", "2015-07-06 21:24:06.138829"], ["token", "lM5XQEL92LKqX70ibTX8gRPw2vJxGsxmiWwP2FppY1o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: b693c127-d0ba-41b0-9169-1b6be38179ea) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a97a040-574a-44ef-9083-be143ee574de [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3a97a040-574a-44ef-9083-be143ee574de"]] [ActiveJob] [ActionMailer::DeliveryJob] [b693c127-d0ba-41b0-9169-1b6be38179ea] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3a97a040-574a-44ef-9083-be143ee574de [ActiveJob] [ActionMailer::DeliveryJob] [b693c127-d0ba-41b0-9169-1b6be38179ea] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5567458c-c1b0-4ca1-9464-a7cf8b240562"]] [ActiveJob] [ActionMailer::DeliveryJob] [b693c127-d0ba-41b0-9169-1b6be38179ea] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [b693c127-d0ba-41b0-9169-1b6be38179ea] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [b693c127-d0ba-41b0-9169-1b6be38179ea] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [b693c127-d0ba-41b0-9169-1b6be38179ea] Date: Mon, 06 Jul 2015 14:24:06 -0700 From: from@example.com To: email@example.com Message-ID: <559af1f623d6c_10bd73ff1818601fc309e7@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/lM5XQEL92LKqX70ibTX8gRPw2vJxGsxmiWwP2FppY1o?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [b693c127-d0ba-41b0-9169-1b6be38179ea] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.89ms Completed 201 Created in 24ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$OPmyjdATXdk6/rjP7K9Wzuv5upvE60ThyYNHcdqp6EDFtPr9JF9/2"], ["created_at", "2015-07-06 21:24:33.581386"], ["updated_at", "2015-07-06 21:24:33.581386"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:33.603563"], ["user_id", "9b4931c1-a1bf-41b0-aada-fe9b61197a3d"], ["created_at", "2015-07-06 21:24:33.609863"], ["updated_at", "2015-07-06 21:24:33.609863"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:33.624849"], ["updated_at", "2015-07-06 21:24:33.624849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9b4931c1-a1bf-41b0-aada-fe9b61197a3d' AND "clubhouse_memberships"."organization_id" = '4e151c9a-2569-4bbe-86d4-9655355088bc') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9b4931c1-a1bf-41b0-aada-fe9b61197a3d"], ["organization_id", "4e151c9a-2569-4bbe-86d4-9655355088bc"], ["admin", "t"], ["created_at", "2015-07-06 21:24:33.636861"], ["updated_at", "2015-07-06 21:24:33.636861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = '4e151c9a-2569-4bbe-86d4-9655355088bc') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "4e151c9a-2569-4bbe-86d4-9655355088bc"], ["created_at", "2015-07-06 21:24:33.650612"], ["updated_at", "2015-07-06 21:24:33.650612"], ["token", "0rlMASWS51PRTY8ED22Bcode03gxbeypj0pKvi5uuH4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:24:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$gAfnOpE5zY.wOe9pvWBsze5EwmCk9N0Rn6QxeP.Y3Cs4PSpKZ0VCK"], ["created_at", "2015-07-06 21:24:33.683573"], ["updated_at", "2015-07-06 21:24:33.683573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:33.685456"], ["user_id", "9e03dfa7-66d6-4028-b107-8b42be3e4797"], ["created_at", "2015-07-06 21:24:33.686381"], ["updated_at", "2015-07-06 21:24:33.686381"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:33.690872"], ["updated_at", "2015-07-06 21:24:33.690872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e03dfa7-66d6-4028-b107-8b42be3e4797' AND "clubhouse_memberships"."organization_id" = '880cb91f-dc8b-48c5-944e-5e070fd5722a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e03dfa7-66d6-4028-b107-8b42be3e4797"], ["organization_id", "880cb91f-dc8b-48c5-944e-5e070fd5722a"], ["admin", "t"], ["created_at", "2015-07-06 21:24:33.694217"], ["updated_at", "2015-07-06 21:24:33.694217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '880cb91f-dc8b-48c5-944e-5e070fd5722a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "880cb91f-dc8b-48c5-944e-5e070fd5722a"], ["created_at", "2015-07-06 21:24:33.699487"], ["updated_at", "2015-07-06 21:24:33.699487"], ["token", "X5sYK5yfYp2kqoAfvXaeLUthOFaMucJStNPP_R3NOnU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:33 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:33.703659') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "becf4280-b716-4cf2-af0e-eaea4401f695"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:33.711989"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:33.713575"], ["id", "becf4280-b716-4cf2-af0e-eaea4401f695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9e03dfa7-66d6-4028-b107-8b42be3e4797"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9e03dfa7-66d6-4028-b107-8b42be3e4797' LIMIT 1 [["organization_id", "880cb91f-dc8b-48c5-944e-5e070fd5722a"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '880cb91f-dc8b-48c5-944e-5e070fd5722a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "880cb91f-dc8b-48c5-944e-5e070fd5722a"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:33.744680"], ["updated_at", "2015-07-06 21:24:33.744680"], ["token", "T59_3QtqwYhtrr3wCX_1qzvkdfDYNRKiVL0UTufhS9E"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 08a8890d-5555-4f09-b9bf-db85c0518de5) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6a9cd548-755c-498a-8030-8e659c27d7c6 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "6a9cd548-755c-498a-8030-8e659c27d7c6"]] [ActiveJob] [ActionMailer::DeliveryJob] [08a8890d-5555-4f09-b9bf-db85c0518de5] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/6a9cd548-755c-498a-8030-8e659c27d7c6 [ActiveJob] [ActionMailer::DeliveryJob] [08a8890d-5555-4f09-b9bf-db85c0518de5] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "880cb91f-dc8b-48c5-944e-5e070fd5722a"]] [ActiveJob] [ActionMailer::DeliveryJob] [08a8890d-5555-4f09-b9bf-db85c0518de5] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [08a8890d-5555-4f09-b9bf-db85c0518de5] Clubhouse::Mailer#invitation: processed outbound mail in 253.9ms [ActiveJob] [ActionMailer::DeliveryJob] [08a8890d-5555-4f09-b9bf-db85c0518de5] Sent mail to email@example.com (10.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [08a8890d-5555-4f09-b9bf-db85c0518de5] Date: Mon, 06 Jul 2015 14:24:34 -0700 From: from@example.com To: email@example.com Message-ID: <559af212b7b1_10bfd3ff90986020817778@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/T59_3QtqwYhtrr3wCX_1qzvkdfDYNRKiVL0UTufhS9E?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [08a8890d-5555-4f09-b9bf-db85c0518de5] Performed ActionMailer::DeliveryJob from Inline(mailers) in 264.88ms Completed 201 Created in 362ms (Views: 14.5ms | ActiveRecord: 3.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$cmIPsuXVM17w4wVtiuw64e9xFRuwyNhpVnpxRWS60kcMfxZ1fFgBW"], ["created_at", "2015-07-06 21:24:34.078214"], ["updated_at", "2015-07-06 21:24:34.078214"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.081068"], ["user_id", "2f2fc406-a32a-46ed-bb39-a9ea2665f705"], ["created_at", "2015-07-06 21:24:34.081936"], ["updated_at", "2015-07-06 21:24:34.081936"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.087523"], ["updated_at", "2015-07-06 21:24:34.087523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2f2fc406-a32a-46ed-bb39-a9ea2665f705' AND "clubhouse_memberships"."organization_id" = 'f5c0169a-8d63-4034-9cd6-0577047eaf0f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2f2fc406-a32a-46ed-bb39-a9ea2665f705"], ["organization_id", "f5c0169a-8d63-4034-9cd6-0577047eaf0f"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.091221"], ["updated_at", "2015-07-06 21:24:34.091221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'f5c0169a-8d63-4034-9cd6-0577047eaf0f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "f5c0169a-8d63-4034-9cd6-0577047eaf0f"], ["created_at", "2015-07-06 21:24:34.096152"], ["updated_at", "2015-07-06 21:24:34.096152"], ["token", "KhMG_K0IUukTZNC3Wr_MxeYGSGZIxDfcroZEAOxK4qs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:34.100455') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f4290764-c243-469f-b319-2ca33286a4d7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:34.101980"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:34.102901"], ["id", "f4290764-c243-469f-b319-2ca33286a4d7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2f2fc406-a32a-46ed-bb39-a9ea2665f705"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2f2fc406-a32a-46ed-bb39-a9ea2665f705' LIMIT 1 [["organization_id", "f5c0169a-8d63-4034-9cd6-0577047eaf0f"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'f5c0169a-8d63-4034-9cd6-0577047eaf0f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "f5c0169a-8d63-4034-9cd6-0577047eaf0f"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.115103"], ["updated_at", "2015-07-06 21:24:34.115103"], ["token", "WoCrn3Dd1d8ga8sWy0CtiRn8jhj7Za4RpJrrozIybyM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: c753010f-8d8d-4dfa-bac3-0df26818821c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/dddc38da-db64-4075-a5ea-e62faecd37de [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "dddc38da-db64-4075-a5ea-e62faecd37de"]] [ActiveJob] [ActionMailer::DeliveryJob] [c753010f-8d8d-4dfa-bac3-0df26818821c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/dddc38da-db64-4075-a5ea-e62faecd37de [ActiveJob] [ActionMailer::DeliveryJob] [c753010f-8d8d-4dfa-bac3-0df26818821c] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f5c0169a-8d63-4034-9cd6-0577047eaf0f"]] [ActiveJob] [ActionMailer::DeliveryJob] [c753010f-8d8d-4dfa-bac3-0df26818821c] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [c753010f-8d8d-4dfa-bac3-0df26818821c] Clubhouse::Mailer#invitation: processed outbound mail in 3.6ms [ActiveJob] [ActionMailer::DeliveryJob] [c753010f-8d8d-4dfa-bac3-0df26818821c] Sent mail to email@example.com (3.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [c753010f-8d8d-4dfa-bac3-0df26818821c] Date: Mon, 06 Jul 2015 14:24:34 -0700 From: from@example.com To: email@example.com Message-ID: <559af2121ee9b_10bfd3ff909860208178bc@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/WoCrn3Dd1d8ga8sWy0CtiRn8jhj7Za4RpJrrozIybyM?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [c753010f-8d8d-4dfa-bac3-0df26818821c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 7.7ms Completed 201 Created in 30ms (Views: 0.7ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$5HlqgC.lMKQsb08sNysdXOMnWfPOGCKxiTURZV7K./fNM9Qqw7K/q"], ["created_at", "2015-07-06 21:24:34.139133"], ["updated_at", "2015-07-06 21:24:34.139133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.141440"], ["user_id", "c290f82c-2539-45bb-b9a3-ee4791f75dd2"], ["created_at", "2015-07-06 21:24:34.142114"], ["updated_at", "2015-07-06 21:24:34.142114"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.147906"], ["updated_at", "2015-07-06 21:24:34.147906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c290f82c-2539-45bb-b9a3-ee4791f75dd2' AND "clubhouse_memberships"."organization_id" = 'b058f925-528d-4546-a7e8-80b8f9b87448') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c290f82c-2539-45bb-b9a3-ee4791f75dd2"], ["organization_id", "b058f925-528d-4546-a7e8-80b8f9b87448"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.151936"], ["updated_at", "2015-07-06 21:24:34.151936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'b058f925-528d-4546-a7e8-80b8f9b87448') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "b058f925-528d-4546-a7e8-80b8f9b87448"], ["created_at", "2015-07-06 21:24:34.157449"], ["updated_at", "2015-07-06 21:24:34.157449"], ["token", "qvkstej-hljzehKFwgjSha6MmExFJQlcNEzJCiKmGlc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:34.163192') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "60ba7c1d-14be-4f64-92f5-17556c7ec8d3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:34.165326"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:34.166450"], ["id", "60ba7c1d-14be-4f64-92f5-17556c7ec8d3"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c290f82c-2539-45bb-b9a3-ee4791f75dd2"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'c290f82c-2539-45bb-b9a3-ee4791f75dd2' LIMIT 1 [["organization_id", "b058f925-528d-4546-a7e8-80b8f9b87448"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'b058f925-528d-4546-a7e8-80b8f9b87448') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 17ms (ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$t7xV0TKcHPOF8s/0216Jn.6R7QaNHpt2jAA4bcGOVT.nwfzE0B/ve"], ["created_at", "2015-07-06 21:24:34.187444"], ["updated_at", "2015-07-06 21:24:34.187444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.189526"], ["user_id", "4a250b2e-0f58-4f00-80d3-e13f9284dc55"], ["created_at", "2015-07-06 21:24:34.190473"], ["updated_at", "2015-07-06 21:24:34.190473"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.195117"], ["updated_at", "2015-07-06 21:24:34.195117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4a250b2e-0f58-4f00-80d3-e13f9284dc55' AND "clubhouse_memberships"."organization_id" = '66a8d4bc-efb3-467e-ba4f-9d5422300c97') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4a250b2e-0f58-4f00-80d3-e13f9284dc55"], ["organization_id", "66a8d4bc-efb3-467e-ba4f-9d5422300c97"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.198818"], ["updated_at", "2015-07-06 21:24:34.198818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '66a8d4bc-efb3-467e-ba4f-9d5422300c97') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "66a8d4bc-efb3-467e-ba4f-9d5422300c97"], ["created_at", "2015-07-06 21:24:34.203823"], ["updated_at", "2015-07-06 21:24:34.203823"], ["token", "Ju2aRgwgyxLbbZJoAO9Z3JFZte2ojk5FBUfU5KLaAXw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$tkndX6hGm9MwF/uMd4azYebb/5XG26DuXjs3Zc19fz5HcLxTRTmqy"], ["created_at", "2015-07-06 21:24:34.210489"], ["updated_at", "2015-07-06 21:24:34.210489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.215125"], ["updated_at", "2015-07-06 21:24:34.215125"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '763e4570-a007-4336-bd46-3b05462e1416' AND "clubhouse_memberships"."organization_id" = 'f6d8a998-3f58-4759-a7d8-27ded629ad44') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "763e4570-a007-4336-bd46-3b05462e1416"], ["organization_id", "f6d8a998-3f58-4759-a7d8-27ded629ad44"], ["created_at", "2015-07-06 21:24:34.220277"], ["updated_at", "2015-07-06 21:24:34.220277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/66a8d4bc-efb3-467e-ba4f-9d5422300c97/invitations" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"66a8d4bc-efb3-467e-ba4f-9d5422300c97", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:34.224025') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "160ac59d-4429-4515-8e9b-3c11fc9cd322"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:34.226097"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:34.227214"], ["id", "160ac59d-4429-4515-8e9b-3c11fc9cd322"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "66a8d4bc-efb3-467e-ba4f-9d5422300c97"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4a250b2e-0f58-4f00-80d3-e13f9284dc55"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '4a250b2e-0f58-4f00-80d3-e13f9284dc55' LIMIT 1 [["organization_id", "66a8d4bc-efb3-467e-ba4f-9d5422300c97"], ["admin", "t"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "66a8d4bc-efb3-467e-ba4f-9d5422300c97"]] Completed 200 OK in 13ms (Views: 1.6ms | ActiveRecord: 2.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$m8zVZHESVIJJTwbt8t.u4OFx.v3XnG2gILMQoRQjKyRuhV4WIkRnK"], ["created_at", "2015-07-06 21:24:34.277973"], ["updated_at", "2015-07-06 21:24:34.277973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.279726"], ["user_id", "c633de83-9267-4229-affe-6543d08ff7c3"], ["created_at", "2015-07-06 21:24:34.280373"], ["updated_at", "2015-07-06 21:24:34.280373"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.284344"], ["updated_at", "2015-07-06 21:24:34.284344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c633de83-9267-4229-affe-6543d08ff7c3' AND "clubhouse_memberships"."organization_id" = '520248fb-eef3-4ef2-985a-7b0900694033') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c633de83-9267-4229-affe-6543d08ff7c3"], ["organization_id", "520248fb-eef3-4ef2-985a-7b0900694033"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.287262"], ["updated_at", "2015-07-06 21:24:34.287262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '520248fb-eef3-4ef2-985a-7b0900694033') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "520248fb-eef3-4ef2-985a-7b0900694033"], ["created_at", "2015-07-06 21:24:34.291428"], ["updated_at", "2015-07-06 21:24:34.291428"], ["token", "PmpxnZmGmoDjS4nKEqU7kqvkSNpsdSO21mbjBTZfRRY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$gcv4.EIudoeA/oYtRa6TEuyLciq87KdxGFqaipBd4poAnNq.vkvJm"], ["created_at", "2015-07-06 21:24:34.297048"], ["updated_at", "2015-07-06 21:24:34.297048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.300839"], ["updated_at", "2015-07-06 21:24:34.300839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2fbc631f-5834-433d-a2c2-34ef553d6da0' AND "clubhouse_memberships"."organization_id" = '48fdd6ba-8f5f-48af-afe6-2df12178a67b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2fbc631f-5834-433d-a2c2-34ef553d6da0"], ["organization_id", "48fdd6ba-8f5f-48af-afe6-2df12178a67b"], ["created_at", "2015-07-06 21:24:34.303635"], ["updated_at", "2015-07-06 21:24:34.303635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$qORsA7qHfs0x7sxMISJHBe5zO7m2GwcpDEz7/7qNPdgBYiL8Op7eK"], ["created_at", "2015-07-06 21:24:34.317516"], ["updated_at", "2015-07-06 21:24:34.317516"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.321701"], ["user_id", "a7d467fa-db09-43ba-b956-989e78696dcf"], ["created_at", "2015-07-06 21:24:34.323069"], ["updated_at", "2015-07-06 21:24:34.323069"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.328095"], ["updated_at", "2015-07-06 21:24:34.328095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a7d467fa-db09-43ba-b956-989e78696dcf' AND "clubhouse_memberships"."organization_id" = '5cf9ac0a-ce44-44c7-aa3b-4f28ed5b67e6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a7d467fa-db09-43ba-b956-989e78696dcf"], ["organization_id", "5cf9ac0a-ce44-44c7-aa3b-4f28ed5b67e6"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.332241"], ["updated_at", "2015-07-06 21:24:34.332241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '5cf9ac0a-ce44-44c7-aa3b-4f28ed5b67e6') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "5cf9ac0a-ce44-44c7-aa3b-4f28ed5b67e6"], ["created_at", "2015-07-06 21:24:34.337887"], ["updated_at", "2015-07-06 21:24:34.337887"], ["token", "K6K0niyYetCNGhkhmHe-wVqkhxO2sUGWZI5ADa2sblU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/4120cc29-56b0-4d63-ad0b-23739db1c27d" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"4120cc29-56b0-4d63-ad0b-23739db1c27d", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:34.341792') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "649b0de6-ccd9-4b11-b67d-c37dbce924a8"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:34.343652"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:34.345177"], ["id", "649b0de6-ccd9-4b11-b67d-c37dbce924a8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "4120cc29-56b0-4d63-ad0b-23739db1c27d"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a7d467fa-db09-43ba-b956-989e78696dcf"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "5cf9ac0a-ce44-44c7-aa3b-4f28ed5b67e6"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a7d467fa-db09-43ba-b956-989e78696dcf' LIMIT 1 [["organization_id", "5cf9ac0a-ce44-44c7-aa3b-4f28ed5b67e6"], ["admin", "t"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."id" != '4120cc29-56b0-4d63-ad0b-23739db1c27d' AND "clubhouse_invitations"."organization_id" = '5cf9ac0a-ce44-44c7-aa3b-4f28ed5b67e6') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:24:34.356760"], ["id", "4120cc29-56b0-4d63-ad0b-23739db1c27d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 0.9ms | ActiveRecord: 3.0ms)  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$RlfuXF7NJprczvNLqm4MnuJLU7WPk1R/6XtUMbBdhA2NWCxmUW3Ka"], ["created_at", "2015-07-06 21:24:34.372402"], ["updated_at", "2015-07-06 21:24:34.372402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.375663"], ["user_id", "869e6569-d099-4080-b7dd-3ac152387997"], ["created_at", "2015-07-06 21:24:34.377033"], ["updated_at", "2015-07-06 21:24:34.377033"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.386173"], ["updated_at", "2015-07-06 21:24:34.386173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '869e6569-d099-4080-b7dd-3ac152387997' AND "clubhouse_memberships"."organization_id" = '6c740596-f7b9-44ad-9d8e-2b941c557fce') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "869e6569-d099-4080-b7dd-3ac152387997"], ["organization_id", "6c740596-f7b9-44ad-9d8e-2b941c557fce"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.390218"], ["updated_at", "2015-07-06 21:24:34.390218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '6c740596-f7b9-44ad-9d8e-2b941c557fce') LIMIT 1 SQL (0.9ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "6c740596-f7b9-44ad-9d8e-2b941c557fce"], ["created_at", "2015-07-06 21:24:34.395681"], ["updated_at", "2015-07-06 21:24:34.395681"], ["token", "yxdJi7PrEaelnWUhuMnLMW3w6FxIscJHtfNxP1jb5TY"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$J0eTO3vNEBlamheUWN0aZ.ZX97uFotnqCjkzsxUYNvb/hn2/WVDUW"], ["created_at", "2015-07-06 21:24:34.408188"], ["updated_at", "2015-07-06 21:24:34.408188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.410297"], ["user_id", "9bb1add1-e30b-4562-a913-41c0ffd91576"], ["created_at", "2015-07-06 21:24:34.411194"], ["updated_at", "2015-07-06 21:24:34.411194"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.421394"], ["updated_at", "2015-07-06 21:24:34.421394"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9bb1add1-e30b-4562-a913-41c0ffd91576' AND "clubhouse_memberships"."organization_id" = 'ae46a49d-d0fc-4c9d-9437-ef880c50d5ef') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9bb1add1-e30b-4562-a913-41c0ffd91576"], ["organization_id", "ae46a49d-d0fc-4c9d-9437-ef880c50d5ef"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.426950"], ["updated_at", "2015-07-06 21:24:34.426950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'ae46a49d-d0fc-4c9d-9437-ef880c50d5ef') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "ae46a49d-d0fc-4c9d-9437-ef880c50d5ef"], ["created_at", "2015-07-06 21:24:34.433090"], ["updated_at", "2015-07-06 21:24:34.433090"], ["token", "MIo5Dx0iD-NUsV0N0x95KiFxuBPQl-8it7LW6mblP8U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$H.fwekkrquRBtRs2bY2wheHK2mJxyT6cu09tD/HZpJX99DU8BWv.G"], ["created_at", "2015-07-06 21:24:34.444554"], ["updated_at", "2015-07-06 21:24:34.444554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.446957"], ["user_id", "a5a4ca85-b6c2-44c4-909a-affc2c062383"], ["created_at", "2015-07-06 21:24:34.447783"], ["updated_at", "2015-07-06 21:24:34.447783"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.453306"], ["updated_at", "2015-07-06 21:24:34.453306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a5a4ca85-b6c2-44c4-909a-affc2c062383' AND "clubhouse_memberships"."organization_id" = '4b7ec274-d873-4138-81a1-523bc341e5d3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a5a4ca85-b6c2-44c4-909a-affc2c062383"], ["organization_id", "4b7ec274-d873-4138-81a1-523bc341e5d3"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.457685"], ["updated_at", "2015-07-06 21:24:34.457685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '4b7ec274-d873-4138-81a1-523bc341e5d3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "4b7ec274-d873-4138-81a1-523bc341e5d3"], ["created_at", "2015-07-06 21:24:34.463321"], ["updated_at", "2015-07-06 21:24:34.463321"], ["token", "IOXg8d8ftReCyGlzPJ42ANYZGjGDvYh956oBR-SX2xg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/0d59b0bf-c28c-4ba9-ac36-7a5fd692439c" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"0d59b0bf-c28c-4ba9-ac36-7a5fd692439c", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:34.467591') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c4c89435-c8be-4b8e-88a5-68d80dcf2080"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:34.469210"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:34.469998"], ["id", "c4c89435-c8be-4b8e-88a5-68d80dcf2080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0d59b0bf-c28c-4ba9-ac36-7a5fd692439c"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a5a4ca85-b6c2-44c4-909a-affc2c062383"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4b7ec274-d873-4138-81a1-523bc341e5d3"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a5a4ca85-b6c2-44c4-909a-affc2c062383' LIMIT 1 [["organization_id", "4b7ec274-d873-4138-81a1-523bc341e5d3"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "0d59b0bf-c28c-4ba9-ac36-7a5fd692439c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$P.0YDwxBTPdMw3WXOK9a6uOqRBGjE4cji9SKrmVUaNPT298giBan6"], ["created_at", "2015-07-06 21:24:34.483026"], ["updated_at", "2015-07-06 21:24:34.483026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.484654"], ["user_id", "9df8783d-99d9-434f-92d6-09274cd8530f"], ["created_at", "2015-07-06 21:24:34.485285"], ["updated_at", "2015-07-06 21:24:34.485285"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.489223"], ["updated_at", "2015-07-06 21:24:34.489223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9df8783d-99d9-434f-92d6-09274cd8530f' AND "clubhouse_memberships"."organization_id" = 'e13a9976-6058-4115-83ab-aef5cd8a9515') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9df8783d-99d9-434f-92d6-09274cd8530f"], ["organization_id", "e13a9976-6058-4115-83ab-aef5cd8a9515"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.492261"], ["updated_at", "2015-07-06 21:24:34.492261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'e13a9976-6058-4115-83ab-aef5cd8a9515') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "e13a9976-6058-4115-83ab-aef5cd8a9515"], ["created_at", "2015-07-06 21:24:34.496915"], ["updated_at", "2015-07-06 21:24:34.496915"], ["token", "BkGt6460K2c8TzfZKZt3H1bWKYbv4u4EB64gqh3LGqE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/71e08187-e3df-42bc-922e-683588d24d18" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"71e08187-e3df-42bc-922e-683588d24d18", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:34.499813') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "509ea391-aa44-4f07-b7b8-ed842b374fe9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:34.501318"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:34.502176"], ["id", "509ea391-aa44-4f07-b7b8-ed842b374fe9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "71e08187-e3df-42bc-922e-683588d24d18"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9df8783d-99d9-434f-92d6-09274cd8530f"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e13a9976-6058-4115-83ab-aef5cd8a9515"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9df8783d-99d9-434f-92d6-09274cd8530f' LIMIT 1 [["organization_id", "e13a9976-6058-4115-83ab-aef5cd8a9515"], ["admin", "t"]] Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$8BsfXdJhTcCDmLaqcHbypetLRQAb1LYiw7XPKmODTHxLYaXfb8sWW"], ["created_at", "2015-07-06 21:24:34.516244"], ["updated_at", "2015-07-06 21:24:34.516244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.517976"], ["user_id", "5fc7d1e7-399b-4168-bf08-e9d3e3280c0a"], ["created_at", "2015-07-06 21:24:34.518628"], ["updated_at", "2015-07-06 21:24:34.518628"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.523036"], ["updated_at", "2015-07-06 21:24:34.523036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5fc7d1e7-399b-4168-bf08-e9d3e3280c0a' AND "clubhouse_memberships"."organization_id" = '8c73e25f-3598-4ae7-bd49-5b67ea5e9d1b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5fc7d1e7-399b-4168-bf08-e9d3e3280c0a"], ["organization_id", "8c73e25f-3598-4ae7-bd49-5b67ea5e9d1b"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.525948"], ["updated_at", "2015-07-06 21:24:34.525948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '8c73e25f-3598-4ae7-bd49-5b67ea5e9d1b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "8c73e25f-3598-4ae7-bd49-5b67ea5e9d1b"], ["created_at", "2015-07-06 21:24:34.530658"], ["updated_at", "2015-07-06 21:24:34.530658"], ["token", "WrsBp-I-Y1e1vbUT6uE-fxeQPg4xzJLwfQS7SHyTbmI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$8OQVaeM3Lss55pJ3RrKVN.S5azAc9PWPKzJSRS.qm88Oy9J6MpFii"], ["created_at", "2015-07-06 21:24:34.540154"], ["updated_at", "2015-07-06 21:24:34.540154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.541852"], ["user_id", "ee1aca8c-3c46-47b2-a6a6-8bdf68e863f4"], ["created_at", "2015-07-06 21:24:34.542477"], ["updated_at", "2015-07-06 21:24:34.542477"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.547834"], ["updated_at", "2015-07-06 21:24:34.547834"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ee1aca8c-3c46-47b2-a6a6-8bdf68e863f4' AND "clubhouse_memberships"."organization_id" = '7d041059-2d70-4a99-a122-d733e63fd808') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ee1aca8c-3c46-47b2-a6a6-8bdf68e863f4"], ["organization_id", "7d041059-2d70-4a99-a122-d733e63fd808"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.551654"], ["updated_at", "2015-07-06 21:24:34.551654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '7d041059-2d70-4a99-a122-d733e63fd808') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "7d041059-2d70-4a99-a122-d733e63fd808"], ["created_at", "2015-07-06 21:24:34.557284"], ["updated_at", "2015-07-06 21:24:34.557284"], ["token", "VWBK1VYlHSdlV9Y9wQ_Dea-ONmRT94nqGOL64MWHVHA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$NkDPcro7mZqufnswROTsae8QUDGYhPHvBw7ump8Z.ZM6MB1xoQeLe"], ["created_at", "2015-07-06 21:24:34.567440"], ["updated_at", "2015-07-06 21:24:34.567440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.569080"], ["user_id", "6f22f610-b858-411a-a2b0-f5b5f62b62b2"], ["created_at", "2015-07-06 21:24:34.570011"], ["updated_at", "2015-07-06 21:24:34.570011"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.574383"], ["updated_at", "2015-07-06 21:24:34.574383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f22f610-b858-411a-a2b0-f5b5f62b62b2' AND "clubhouse_memberships"."organization_id" = '97944ea5-05aa-48ab-947a-40ebcf8ba7d8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f22f610-b858-411a-a2b0-f5b5f62b62b2"], ["organization_id", "97944ea5-05aa-48ab-947a-40ebcf8ba7d8"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.577279"], ["updated_at", "2015-07-06 21:24:34.577279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '97944ea5-05aa-48ab-947a-40ebcf8ba7d8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "97944ea5-05aa-48ab-947a-40ebcf8ba7d8"], ["created_at", "2015-07-06 21:24:34.582430"], ["updated_at", "2015-07-06 21:24:34.582430"], ["token", "dZeqWy1pZJLHRIqKirqLUYp5c4rpTh5rOK2up8V1LAc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/97944ea5-05aa-48ab-947a-40ebcf8ba7d8/invitations" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"97944ea5-05aa-48ab-947a-40ebcf8ba7d8", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:34.585375') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "17326c32-d990-49e6-bab3-b1eb0b316df4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:34.586977"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:34.587730"], ["id", "17326c32-d990-49e6-bab3-b1eb0b316df4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "97944ea5-05aa-48ab-947a-40ebcf8ba7d8"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6f22f610-b858-411a-a2b0-f5b5f62b62b2"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6f22f610-b858-411a-a2b0-f5b5f62b62b2' LIMIT 1 [["organization_id", "97944ea5-05aa-48ab-947a-40ebcf8ba7d8"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '97944ea5-05aa-48ab-947a-40ebcf8ba7d8') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "97944ea5-05aa-48ab-947a-40ebcf8ba7d8"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.597260"], ["updated_at", "2015-07-06 21:24:34.597260"], ["token", "f7I2bzpYfJlSpEckg-0LdJYlnKgWJLYW8E8sPUk548w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 0d8828b9-8268-40e1-8cf8-eaa5315a2bab) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0eee4598-1136-4c3b-819c-5ca720db58bf [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "0eee4598-1136-4c3b-819c-5ca720db58bf"]] [ActiveJob] [ActionMailer::DeliveryJob] [0d8828b9-8268-40e1-8cf8-eaa5315a2bab] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/0eee4598-1136-4c3b-819c-5ca720db58bf [ActiveJob] [ActionMailer::DeliveryJob] [0d8828b9-8268-40e1-8cf8-eaa5315a2bab] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "97944ea5-05aa-48ab-947a-40ebcf8ba7d8"]] [ActiveJob] [ActionMailer::DeliveryJob] [0d8828b9-8268-40e1-8cf8-eaa5315a2bab] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [0d8828b9-8268-40e1-8cf8-eaa5315a2bab] Clubhouse::Mailer#invitation: processed outbound mail in 3.0ms [ActiveJob] [ActionMailer::DeliveryJob] [0d8828b9-8268-40e1-8cf8-eaa5315a2bab] Sent mail to email@example.com (1.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [0d8828b9-8268-40e1-8cf8-eaa5315a2bab] Date: Mon, 06 Jul 2015 14:24:34 -0700 From: from@example.com To: email@example.com Message-ID: <559af21293db7_10bfd3ff90986020817956@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/f7I2bzpYfJlSpEckg-0LdJYlnKgWJLYW8E8sPUk548w?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [0d8828b9-8268-40e1-8cf8-eaa5315a2bab] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.85ms Completed 201 Created in 22ms (Views: 0.6ms | ActiveRecord: 2.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$VMgimwvS46Om2dFJd2nXT.qoefkLVip4PAB7mxhLfS2a..xRNV0x6"], ["created_at", "2015-07-06 21:24:34.614774"], ["updated_at", "2015-07-06 21:24:34.614774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.616435"], ["user_id", "d13ca3d6-0f46-4e64-9ce6-ba645839aa19"], ["created_at", "2015-07-06 21:24:34.617057"], ["updated_at", "2015-07-06 21:24:34.617057"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.621451"], ["updated_at", "2015-07-06 21:24:34.621451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd13ca3d6-0f46-4e64-9ce6-ba645839aa19' AND "clubhouse_memberships"."organization_id" = '41891be9-9233-4994-8c35-f76b0e5bed85') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d13ca3d6-0f46-4e64-9ce6-ba645839aa19"], ["organization_id", "41891be9-9233-4994-8c35-f76b0e5bed85"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.624498"], ["updated_at", "2015-07-06 21:24:34.624498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '41891be9-9233-4994-8c35-f76b0e5bed85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "41891be9-9233-4994-8c35-f76b0e5bed85"], ["created_at", "2015-07-06 21:24:34.629279"], ["updated_at", "2015-07-06 21:24:34.629279"], ["token", "_XHV-Qyexh3H2qKIVZS16gGDiGoxMXEDz7pqT2vcmtM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/41891be9-9233-4994-8c35-f76b0e5bed85/invitations" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"41891be9-9233-4994-8c35-f76b0e5bed85", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:34.632969') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f4cee997-a3f9-4ee7-a4e9-5cd0b634743a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:34.634792"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:34.635634"], ["id", "f4cee997-a3f9-4ee7-a4e9-5cd0b634743a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "41891be9-9233-4994-8c35-f76b0e5bed85"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d13ca3d6-0f46-4e64-9ce6-ba645839aa19"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd13ca3d6-0f46-4e64-9ce6-ba645839aa19' LIMIT 1 [["organization_id", "41891be9-9233-4994-8c35-f76b0e5bed85"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '41891be9-9233-4994-8c35-f76b0e5bed85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "41891be9-9233-4994-8c35-f76b0e5bed85"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.644401"], ["updated_at", "2015-07-06 21:24:34.644401"], ["token", "XQAAo1MiRv6oJx3qadzNdtFIgVmmM9DDPH4D9HEhgw4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: e5b652d9-0350-48b7-b9a8-7fda82ec7d2c) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/50ad53d3-4866-4922-9097-89f88b0992fc [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "50ad53d3-4866-4922-9097-89f88b0992fc"]] [ActiveJob] [ActionMailer::DeliveryJob] [e5b652d9-0350-48b7-b9a8-7fda82ec7d2c] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/50ad53d3-4866-4922-9097-89f88b0992fc [ActiveJob] [ActionMailer::DeliveryJob] [e5b652d9-0350-48b7-b9a8-7fda82ec7d2c] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "41891be9-9233-4994-8c35-f76b0e5bed85"]] [ActiveJob] [ActionMailer::DeliveryJob] [e5b652d9-0350-48b7-b9a8-7fda82ec7d2c] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [e5b652d9-0350-48b7-b9a8-7fda82ec7d2c] Clubhouse::Mailer#invitation: processed outbound mail in 2.8ms [ActiveJob] [ActionMailer::DeliveryJob] [e5b652d9-0350-48b7-b9a8-7fda82ec7d2c] Sent mail to email@example.com (1.8ms) [ActiveJob] [ActionMailer::DeliveryJob] [e5b652d9-0350-48b7-b9a8-7fda82ec7d2c] Date: Mon, 06 Jul 2015 14:24:34 -0700 From: from@example.com To: email@example.com Message-ID: <559af2129f4a8_10bfd3ff909860208180a2@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/XQAAo1MiRv6oJx3qadzNdtFIgVmmM9DDPH4D9HEhgw4?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [e5b652d9-0350-48b7-b9a8-7fda82ec7d2c] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.1ms Completed 201 Created in 22ms (Views: 0.8ms | ActiveRecord: 2.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (1.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$a4sgdJQtppocd1mgHkM1reZzilgYq1mZ9NVEHEAD6KwPLO1psOR.y"], ["created_at", "2015-07-06 21:24:34.663489"], ["updated_at", "2015-07-06 21:24:34.663489"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.670097"], ["user_id", "dbe0098c-2e56-4309-a0ff-5f39e6af28d8"], ["created_at", "2015-07-06 21:24:34.671779"], ["updated_at", "2015-07-06 21:24:34.671779"], ["client", "App"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.682419"], ["updated_at", "2015-07-06 21:24:34.682419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dbe0098c-2e56-4309-a0ff-5f39e6af28d8' AND "clubhouse_memberships"."organization_id" = 'ee4057d8-765f-46ee-a192-b1295a735521') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dbe0098c-2e56-4309-a0ff-5f39e6af28d8"], ["organization_id", "ee4057d8-765f-46ee-a192-b1295a735521"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.688267"], ["updated_at", "2015-07-06 21:24:34.688267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'ee4057d8-765f-46ee-a192-b1295a735521') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "ee4057d8-765f-46ee-a192-b1295a735521"], ["created_at", "2015-07-06 21:24:34.694290"], ["updated_at", "2015-07-06 21:24:34.694290"], ["token", "JhZus2a4-_gVkCQLCM3tIKvBWDvC1b2TG8twre6Qt7c"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/ee4057d8-765f-46ee-a192-b1295a735521/invitations" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"ee4057d8-765f-46ee-a192-b1295a735521", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:34.702374') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4a907f1d-d94b-464b-a1ac-ef636bf1e11b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:34.705046"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:34.705812"], ["id", "4a907f1d-d94b-464b-a1ac-ef636bf1e11b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ee4057d8-765f-46ee-a192-b1295a735521"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dbe0098c-2e56-4309-a0ff-5f39e6af28d8"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'dbe0098c-2e56-4309-a0ff-5f39e6af28d8' LIMIT 1 [["organization_id", "ee4057d8-765f-46ee-a192-b1295a735521"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'ee4057d8-765f-46ee-a192-b1295a735521') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 20ms (ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$1HVF0T2M.vlpErRGsI1tIO.4zweRnazpTtfoInAm7.t11XSMx3IWy"], ["created_at", "2015-07-06 21:24:34.731602"], ["updated_at", "2015-07-06 21:24:34.731602"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.736484"], ["user_id", "cd67ce93-8623-4d68-80f8-bb2da449f61d"], ["created_at", "2015-07-06 21:24:34.737736"], ["updated_at", "2015-07-06 21:24:34.737736"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.746479"], ["updated_at", "2015-07-06 21:24:34.746479"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cd67ce93-8623-4d68-80f8-bb2da449f61d' AND "clubhouse_memberships"."organization_id" = '8e42ba20-f914-4e29-ac03-1df531502a3a') LIMIT 1 SQL (1.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cd67ce93-8623-4d68-80f8-bb2da449f61d"], ["organization_id", "8e42ba20-f914-4e29-ac03-1df531502a3a"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.755961"], ["updated_at", "2015-07-06 21:24:34.755961"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '8e42ba20-f914-4e29-ac03-1df531502a3a') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "8e42ba20-f914-4e29-ac03-1df531502a3a"], ["created_at", "2015-07-06 21:24:34.784037"], ["updated_at", "2015-07-06 21:24:34.784037"], ["token", "s0Q_BQMX8bGZ9DA3EP6dhqKVpM1GjGiApGO8oEVLZ4U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$Jupj7l.CAsgvJOYGfPOKnulQVL135I7LvXivhozAyT.Sb6R0sp1KK"], ["created_at", "2015-07-06 21:24:34.794154"], ["updated_at", "2015-07-06 21:24:34.794154"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.801790"], ["updated_at", "2015-07-06 21:24:34.801790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9208d999-7b7e-43f1-b714-b958f9f93c61' AND "clubhouse_memberships"."organization_id" = '7d4841e8-4aac-4dd2-963a-c081092fa11e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9208d999-7b7e-43f1-b714-b958f9f93c61"], ["organization_id", "7d4841e8-4aac-4dd2-963a-c081092fa11e"], ["created_at", "2015-07-06 21:24:34.806098"], ["updated_at", "2015-07-06 21:24:34.806098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:34.808944') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f3c2b569-3d40-47ba-b68c-2c8bc58ea402"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:34.810313"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:34.811141"], ["id", "f3c2b569-3d40-47ba-b68c-2c8bc58ea402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cd67ce93-8623-4d68-80f8-bb2da449f61d"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'cd67ce93-8623-4d68-80f8-bb2da449f61d' LIMIT 1 [["organization_id", "8e42ba20-f914-4e29-ac03-1df531502a3a"], ["admin", "t"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "8e42ba20-f914-4e29-ac03-1df531502a3a"]] Completed 200 OK in 11ms (Views: 1.6ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$gfQd.GoaguG4RbQhQPAs0exk8fKDvqcDhVU83t9K216wfkmxhhQw6"], ["created_at", "2015-07-06 21:24:34.826855"], ["updated_at", "2015-07-06 21:24:34.826855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:34.829002"], ["user_id", "43f3a369-6ac7-46c8-b17f-a443de655703"], ["created_at", "2015-07-06 21:24:34.829776"], ["updated_at", "2015-07-06 21:24:34.829776"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.834567"], ["updated_at", "2015-07-06 21:24:34.834567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43f3a369-6ac7-46c8-b17f-a443de655703' AND "clubhouse_memberships"."organization_id" = 'c7b598ac-f375-4923-ac57-0f184937e99c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43f3a369-6ac7-46c8-b17f-a443de655703"], ["organization_id", "c7b598ac-f375-4923-ac57-0f184937e99c"], ["admin", "t"], ["created_at", "2015-07-06 21:24:34.838033"], ["updated_at", "2015-07-06 21:24:34.838033"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'c7b598ac-f375-4923-ac57-0f184937e99c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "c7b598ac-f375-4923-ac57-0f184937e99c"], ["created_at", "2015-07-06 21:24:34.843205"], ["updated_at", "2015-07-06 21:24:34.843205"], ["token", "EeRm-3kTnCCYrth-P3cxQttmKfm9TZFb9tO7vAYAoiM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$J.gfNoft0sbBpgLlGmaT7uFqLq8aY/W/sqaj43OdZGHA.PhNAd3C6"], ["created_at", "2015-07-06 21:24:34.850125"], ["updated_at", "2015-07-06 21:24:34.850125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:34.854717"], ["updated_at", "2015-07-06 21:24:34.854717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '634ac5c7-10e4-468a-85a4-be28a53a6afa' AND "clubhouse_memberships"."organization_id" = '440684ce-5bdd-408d-86c1-bb3f56b85ed6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "634ac5c7-10e4-468a-85a4-be28a53a6afa"], ["organization_id", "440684ce-5bdd-408d-86c1-bb3f56b85ed6"], ["created_at", "2015-07-06 21:24:34.859533"], ["updated_at", "2015-07-06 21:24:34.859533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:24:34 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$ZO7lHVHZYMV085V4T1JF.OLXCWnu4sPv9hWYulG6vrC0xQMOQfy/q"], ["created_at", "2015-07-06 21:24:56.676334"], ["updated_at", "2015-07-06 21:24:56.676334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:56.699980"], ["user_id", "08a82c45-30dc-470f-a16a-16f861efc307"], ["created_at", "2015-07-06 21:24:56.706257"], ["updated_at", "2015-07-06 21:24:56.706257"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:56.715534"], ["updated_at", "2015-07-06 21:24:56.715534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '08a82c45-30dc-470f-a16a-16f861efc307' AND "clubhouse_memberships"."organization_id" = 'bed66a20-1df3-43e4-b742-79661c75d16e') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "08a82c45-30dc-470f-a16a-16f861efc307"], ["organization_id", "bed66a20-1df3-43e4-b742-79661c75d16e"], ["admin", "t"], ["created_at", "2015-07-06 21:24:56.726108"], ["updated_at", "2015-07-06 21:24:56.726108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'bed66a20-1df3-43e4-b742-79661c75d16e') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "bed66a20-1df3-43e4-b742-79661c75d16e"], ["created_at", "2015-07-06 21:24:56.736638"], ["updated_at", "2015-07-06 21:24:56.736638"], ["token", "wp6r4fL5Xk0K8leFuqQqTI4TnLyDDVfmqpjhfqK4Axw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:24:56 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$8ueyXofvQN1LGCUkneFfdO1nnNFIbglE0GkMacjgSfnOjgmkbD8e."], ["created_at", "2015-07-06 21:24:56.768738"], ["updated_at", "2015-07-06 21:24:56.768738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:56.771825"], ["user_id", "774a330e-f202-4fb0-b92a-e566ca58ce57"], ["created_at", "2015-07-06 21:24:56.773146"], ["updated_at", "2015-07-06 21:24:56.773146"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:56.780803"], ["updated_at", "2015-07-06 21:24:56.780803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '774a330e-f202-4fb0-b92a-e566ca58ce57' AND "clubhouse_memberships"."organization_id" = 'cf83385b-eaa3-4f39-9340-542f97691836') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "774a330e-f202-4fb0-b92a-e566ca58ce57"], ["organization_id", "cf83385b-eaa3-4f39-9340-542f97691836"], ["admin", "t"], ["created_at", "2015-07-06 21:24:56.784490"], ["updated_at", "2015-07-06 21:24:56.784490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = 'cf83385b-eaa3-4f39-9340-542f97691836') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "cf83385b-eaa3-4f39-9340-542f97691836"], ["created_at", "2015-07-06 21:24:56.789025"], ["updated_at", "2015-07-06 21:24:56.789025"], ["token", "s9TiRpp5h6VNN_lu664-mugOJ6viQJUsa0Qiyy85RVI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:56 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:56.792111') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "757baed1-02cf-4c30-a5aa-14ce7f2b41ab"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:56.800101"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:56.802163"], ["id", "757baed1-02cf-4c30-a5aa-14ce7f2b41ab"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "774a330e-f202-4fb0-b92a-e566ca58ce57"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '774a330e-f202-4fb0-b92a-e566ca58ce57' LIMIT 1 [["organization_id", "cf83385b-eaa3-4f39-9340-542f97691836"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'cf83385b-eaa3-4f39-9340-542f97691836') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "cf83385b-eaa3-4f39-9340-542f97691836"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:56.833893"], ["updated_at", "2015-07-06 21:24:56.833893"], ["token", "1H1cv3o4MY0zC42WqyU3rQDheendw5ptiPj1AnFmNVs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: dc8360c3-2745-4c5a-ab8d-88f834ea6601) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c6f0f9e7-c241-45b1-abd9-71836d56a9e9 [ActiveJob] Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "c6f0f9e7-c241-45b1-abd9-71836d56a9e9"]] [ActiveJob] [ActionMailer::DeliveryJob] [dc8360c3-2745-4c5a-ab8d-88f834ea6601] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/c6f0f9e7-c241-45b1-abd9-71836d56a9e9 [ActiveJob] [ActionMailer::DeliveryJob] [dc8360c3-2745-4c5a-ab8d-88f834ea6601] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "cf83385b-eaa3-4f39-9340-542f97691836"]] [ActiveJob] [ActionMailer::DeliveryJob] [dc8360c3-2745-4c5a-ab8d-88f834ea6601] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.5ms) [ActiveJob] [ActionMailer::DeliveryJob] [dc8360c3-2745-4c5a-ab8d-88f834ea6601] Clubhouse::Mailer#invitation: processed outbound mail in 211.6ms [ActiveJob] [ActionMailer::DeliveryJob] [dc8360c3-2745-4c5a-ab8d-88f834ea6601] Sent mail to email@example.com (8.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [dc8360c3-2745-4c5a-ab8d-88f834ea6601] Date: Mon, 06 Jul 2015 14:24:57 -0700 From: from@example.com To: email@example.com Message-ID: <559af22917fa6_10c223ffaa6060208139ca@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/1H1cv3o4MY0zC42WqyU3rQDheendw5ptiPj1AnFmNVs?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [dc8360c3-2745-4c5a-ab8d-88f834ea6601] Performed ActionMailer::DeliveryJob from Inline(mailers) in 220.82ms Completed 201 Created in 325ms (Views: 14.5ms | ActiveRecord: 3.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$1U0dpSO2mKz9bSJULXZ2X.VA4lcghyjlZxeO6JhxMSbRmMLcwMHzG"], ["created_at", "2015-07-06 21:24:57.128947"], ["updated_at", "2015-07-06 21:24:57.128947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.130993"], ["user_id", "74d53cca-3d51-4741-898f-16acf2472552"], ["created_at", "2015-07-06 21:24:57.131801"], ["updated_at", "2015-07-06 21:24:57.131801"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.136307"], ["updated_at", "2015-07-06 21:24:57.136307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74d53cca-3d51-4741-898f-16acf2472552' AND "clubhouse_memberships"."organization_id" = 'a435a375-4e87-40b9-8ec2-f38af3c63720') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74d53cca-3d51-4741-898f-16acf2472552"], ["organization_id", "a435a375-4e87-40b9-8ec2-f38af3c63720"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.139843"], ["updated_at", "2015-07-06 21:24:57.139843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'a435a375-4e87-40b9-8ec2-f38af3c63720') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "a435a375-4e87-40b9-8ec2-f38af3c63720"], ["created_at", "2015-07-06 21:24:57.144586"], ["updated_at", "2015-07-06 21:24:57.144586"], ["token", "msmYaJ9XWZx72SoUNZ3DVYPMuvoyDnaXjXFgtGTzETo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:57.148607') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "43f16c0b-a58a-4a19-a10e-8037c5d642e3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:57.150026"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:57.150815"], ["id", "43f16c0b-a58a-4a19-a10e-8037c5d642e3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74d53cca-3d51-4741-898f-16acf2472552"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '74d53cca-3d51-4741-898f-16acf2472552' LIMIT 1 [["organization_id", "a435a375-4e87-40b9-8ec2-f38af3c63720"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'a435a375-4e87-40b9-8ec2-f38af3c63720') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "a435a375-4e87-40b9-8ec2-f38af3c63720"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.160636"], ["updated_at", "2015-07-06 21:24:57.160636"], ["token", "U6UdjXubaId1FYijVAO16dtKQVEDTt9dPtamNd_T564"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2bd60882-c517-40b7-951e-744e17c8a600) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c0509f1-1291-4e7b-a0d3-3a84e49ca7e4 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8c0509f1-1291-4e7b-a0d3-3a84e49ca7e4"]] [ActiveJob] [ActionMailer::DeliveryJob] [2bd60882-c517-40b7-951e-744e17c8a600] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/8c0509f1-1291-4e7b-a0d3-3a84e49ca7e4 [ActiveJob] [ActionMailer::DeliveryJob] [2bd60882-c517-40b7-951e-744e17c8a600] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "a435a375-4e87-40b9-8ec2-f38af3c63720"]] [ActiveJob] [ActionMailer::DeliveryJob] [2bd60882-c517-40b7-951e-744e17c8a600] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2bd60882-c517-40b7-951e-744e17c8a600] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [2bd60882-c517-40b7-951e-744e17c8a600] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [2bd60882-c517-40b7-951e-744e17c8a600] Date: Mon, 06 Jul 2015 14:24:57 -0700 From: from@example.com To: email@example.com Message-ID: <559af22929257_10c223ffaa606020814030@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/U6UdjXubaId1FYijVAO16dtKQVEDTt9dPtamNd_T564?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [2bd60882-c517-40b7-951e-744e17c8a600] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.7ms Completed 201 Created in 22ms (Views: 0.6ms | ActiveRecord: 2.8ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$o3yRGrN9B90ZVJnbXSOYDOSy1cP1p.Pv3ctCtdhT5b5wQaSnAMs12"], ["created_at", "2015-07-06 21:24:57.181812"], ["updated_at", "2015-07-06 21:24:57.181812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.183730"], ["user_id", "837ec201-0d4e-4645-86e5-26875cadab26"], ["created_at", "2015-07-06 21:24:57.184416"], ["updated_at", "2015-07-06 21:24:57.184416"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.190346"], ["updated_at", "2015-07-06 21:24:57.190346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '837ec201-0d4e-4645-86e5-26875cadab26' AND "clubhouse_memberships"."organization_id" = 'cfba5f7e-5e20-4849-b682-35aa4d0cbe92') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "837ec201-0d4e-4645-86e5-26875cadab26"], ["organization_id", "cfba5f7e-5e20-4849-b682-35aa4d0cbe92"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.193502"], ["updated_at", "2015-07-06 21:24:57.193502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'cfba5f7e-5e20-4849-b682-35aa4d0cbe92') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "cfba5f7e-5e20-4849-b682-35aa4d0cbe92"], ["created_at", "2015-07-06 21:24:57.197996"], ["updated_at", "2015-07-06 21:24:57.197996"], ["token", "rkZTMDs2eZb51Cjc_bPeT09rwAC-sFA8_NVbKT62SUk"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:57.202601') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ae921162-0411-46d7-9b0f-516ec70c5e3a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:57.204466"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:57.205591"], ["id", "ae921162-0411-46d7-9b0f-516ec70c5e3a"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "837ec201-0d4e-4645-86e5-26875cadab26"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '837ec201-0d4e-4645-86e5-26875cadab26' LIMIT 1 [["organization_id", "cfba5f7e-5e20-4849-b682-35aa4d0cbe92"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = 'cfba5f7e-5e20-4849-b682-35aa4d0cbe92') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$5dak7qhbCtKPE.2DPMCDxuwf.rx1XNtZvZr9eZ7FT0FPCuBzP6oQy"], ["created_at", "2015-07-06 21:24:57.227714"], ["updated_at", "2015-07-06 21:24:57.227714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.229398"], ["user_id", "5cc48f6d-5f94-4061-9578-4d7ce09b31c8"], ["created_at", "2015-07-06 21:24:57.229992"], ["updated_at", "2015-07-06 21:24:57.229992"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.233879"], ["updated_at", "2015-07-06 21:24:57.233879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5cc48f6d-5f94-4061-9578-4d7ce09b31c8' AND "clubhouse_memberships"."organization_id" = '1229684f-3968-4eec-b74d-4c41b1ebe373') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5cc48f6d-5f94-4061-9578-4d7ce09b31c8"], ["organization_id", "1229684f-3968-4eec-b74d-4c41b1ebe373"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.236831"], ["updated_at", "2015-07-06 21:24:57.236831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = '1229684f-3968-4eec-b74d-4c41b1ebe373') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "1229684f-3968-4eec-b74d-4c41b1ebe373"], ["created_at", "2015-07-06 21:24:57.241348"], ["updated_at", "2015-07-06 21:24:57.241348"], ["token", "0zjdxI1Endm5dv9_JOmVhqeqzuhWqIQXimfk6WiEYQA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/32fc8688-ab1f-462f-ac65-446a74725813" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"32fc8688-ab1f-462f-ac65-446a74725813", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:57.244360') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "2377f8ee-4213-4243-bd88-808cb1f350c1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:57.246306"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:57.247392"], ["id", "2377f8ee-4213-4243-bd88-808cb1f350c1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "32fc8688-ab1f-462f-ac65-446a74725813"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5cc48f6d-5f94-4061-9578-4d7ce09b31c8"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "1229684f-3968-4eec-b74d-4c41b1ebe373"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '5cc48f6d-5f94-4061-9578-4d7ce09b31c8' LIMIT 1 [["organization_id", "1229684f-3968-4eec-b74d-4c41b1ebe373"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "32fc8688-ab1f-462f-ac65-446a74725813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 13ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$zordf2U9VDAslKvmvCsBAejlbCqzOLCMfetdJewfofhv3nSYvc2aK"], ["created_at", "2015-07-06 21:24:57.263091"], ["updated_at", "2015-07-06 21:24:57.263091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.264707"], ["user_id", "e039d5b3-0651-4b89-ae56-a349a55c6ed9"], ["created_at", "2015-07-06 21:24:57.265324"], ["updated_at", "2015-07-06 21:24:57.265324"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.269327"], ["updated_at", "2015-07-06 21:24:57.269327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e039d5b3-0651-4b89-ae56-a349a55c6ed9' AND "clubhouse_memberships"."organization_id" = '3cae4104-ab3c-43c5-9265-15df355b5b1c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e039d5b3-0651-4b89-ae56-a349a55c6ed9"], ["organization_id", "3cae4104-ab3c-43c5-9265-15df355b5b1c"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.272853"], ["updated_at", "2015-07-06 21:24:57.272853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '3cae4104-ab3c-43c5-9265-15df355b5b1c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "3cae4104-ab3c-43c5-9265-15df355b5b1c"], ["created_at", "2015-07-06 21:24:57.278029"], ["updated_at", "2015-07-06 21:24:57.278029"], ["token", "qfp6_DuP6K2pBS0pgRTt2joPe3ZF10B0iAMc2DdEpsI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$YyXHgzHfB8MFWl/CysJqO..EkTbq.JD00ZqvCBgTeMP28fLme75Fe"], ["created_at", "2015-07-06 21:24:57.290113"], ["updated_at", "2015-07-06 21:24:57.290113"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.292764"], ["user_id", "8ca0560e-2c30-4c6f-8013-eea2e51f0e49"], ["created_at", "2015-07-06 21:24:57.293861"], ["updated_at", "2015-07-06 21:24:57.293861"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.298979"], ["updated_at", "2015-07-06 21:24:57.298979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8ca0560e-2c30-4c6f-8013-eea2e51f0e49' AND "clubhouse_memberships"."organization_id" = '66fcc5a5-c3c8-4cd5-9865-ef37b82e00d0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8ca0560e-2c30-4c6f-8013-eea2e51f0e49"], ["organization_id", "66fcc5a5-c3c8-4cd5-9865-ef37b82e00d0"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.305121"], ["updated_at", "2015-07-06 21:24:57.305121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '66fcc5a5-c3c8-4cd5-9865-ef37b82e00d0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "66fcc5a5-c3c8-4cd5-9865-ef37b82e00d0"], ["created_at", "2015-07-06 21:24:57.311963"], ["updated_at", "2015-07-06 21:24:57.311963"], ["token", "g5cNZRrKJywofGKBgUtXFgoc9IqFN2KngUrHVEL2Cag"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$DOv3ZFcNH3mHyyhlI8ply.pIowOUVciYoP.Wlm7bDVqCWy1x31N.."], ["created_at", "2015-07-06 21:24:57.323263"], ["updated_at", "2015-07-06 21:24:57.323263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.325349"], ["user_id", "bcc21184-ee32-4590-b524-64b90ec16f9e"], ["created_at", "2015-07-06 21:24:57.326115"], ["updated_at", "2015-07-06 21:24:57.326115"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.331139"], ["updated_at", "2015-07-06 21:24:57.331139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bcc21184-ee32-4590-b524-64b90ec16f9e' AND "clubhouse_memberships"."organization_id" = '40010efc-2064-4c3c-8172-0f5f9ffe9558') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bcc21184-ee32-4590-b524-64b90ec16f9e"], ["organization_id", "40010efc-2064-4c3c-8172-0f5f9ffe9558"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.334838"], ["updated_at", "2015-07-06 21:24:57.334838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '40010efc-2064-4c3c-8172-0f5f9ffe9558') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "40010efc-2064-4c3c-8172-0f5f9ffe9558"], ["created_at", "2015-07-06 21:24:57.338949"], ["updated_at", "2015-07-06 21:24:57.338949"], ["token", "0kstxafiPkC6z5-0BjFJFNjELASEpGBHG69gU6I8Mds"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/40010efc-2064-4c3c-8172-0f5f9ffe9558/invitations" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"40010efc-2064-4c3c-8172-0f5f9ffe9558", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:57.341756') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e5f81290-8a5c-47bc-9290-b3eb52073423"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:57.343019"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:57.343709"], ["id", "e5f81290-8a5c-47bc-9290-b3eb52073423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "40010efc-2064-4c3c-8172-0f5f9ffe9558"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "bcc21184-ee32-4590-b524-64b90ec16f9e"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'bcc21184-ee32-4590-b524-64b90ec16f9e' LIMIT 1 [["organization_id", "40010efc-2064-4c3c-8172-0f5f9ffe9558"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '40010efc-2064-4c3c-8172-0f5f9ffe9558') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms (ActiveRecord: 1.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$3VO4KSwVIxMD/0lV/VwNO.VLIczhZb5MSA9k0HpGWAdCafK6hUlrO"], ["created_at", "2015-07-06 21:24:57.359591"], ["updated_at", "2015-07-06 21:24:57.359591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.361770"], ["user_id", "e7d9d0df-a3ea-4117-ad88-a7d66cdebde9"], ["created_at", "2015-07-06 21:24:57.362438"], ["updated_at", "2015-07-06 21:24:57.362438"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.366461"], ["updated_at", "2015-07-06 21:24:57.366461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e7d9d0df-a3ea-4117-ad88-a7d66cdebde9' AND "clubhouse_memberships"."organization_id" = 'e11974fe-85f1-40f3-a3a9-3c222ebfec93') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e7d9d0df-a3ea-4117-ad88-a7d66cdebde9"], ["organization_id", "e11974fe-85f1-40f3-a3a9-3c222ebfec93"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.372177"], ["updated_at", "2015-07-06 21:24:57.372177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = 'e11974fe-85f1-40f3-a3a9-3c222ebfec93') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "e11974fe-85f1-40f3-a3a9-3c222ebfec93"], ["created_at", "2015-07-06 21:24:57.376621"], ["updated_at", "2015-07-06 21:24:57.376621"], ["token", "OCmEjdirR7bnH9WLE-16akUD_xgTV33qreJeRoMwFOg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/e11974fe-85f1-40f3-a3a9-3c222ebfec93/invitations" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"e11974fe-85f1-40f3-a3a9-3c222ebfec93", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:57.379937') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "6b687a97-a445-49f6-bbf2-affc32227dd9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:57.381198"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:57.381915"], ["id", "6b687a97-a445-49f6-bbf2-affc32227dd9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e11974fe-85f1-40f3-a3a9-3c222ebfec93"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e7d9d0df-a3ea-4117-ad88-a7d66cdebde9"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e7d9d0df-a3ea-4117-ad88-a7d66cdebde9' LIMIT 1 [["organization_id", "e11974fe-85f1-40f3-a3a9-3c222ebfec93"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'e11974fe-85f1-40f3-a3a9-3c222ebfec93') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "e11974fe-85f1-40f3-a3a9-3c222ebfec93"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.389948"], ["updated_at", "2015-07-06 21:24:57.389948"], ["token", "IiT3D3W0irLJPtlZnW23bQmQocO9Xll2mnq8towe8SQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a66dad13-e997-445f-bcee-9cfaf1416b85) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a00a083f-7cd0-4572-a23f-d6ffdcd35f86 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "a00a083f-7cd0-4572-a23f-d6ffdcd35f86"]] [ActiveJob] [ActionMailer::DeliveryJob] [a66dad13-e997-445f-bcee-9cfaf1416b85] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/a00a083f-7cd0-4572-a23f-d6ffdcd35f86 [ActiveJob] [ActionMailer::DeliveryJob] [a66dad13-e997-445f-bcee-9cfaf1416b85] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "e11974fe-85f1-40f3-a3a9-3c222ebfec93"]] [ActiveJob] [ActionMailer::DeliveryJob] [a66dad13-e997-445f-bcee-9cfaf1416b85] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [a66dad13-e997-445f-bcee-9cfaf1416b85] Clubhouse::Mailer#invitation: processed outbound mail in 2.1ms [ActiveJob] [ActionMailer::DeliveryJob] [a66dad13-e997-445f-bcee-9cfaf1416b85] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [a66dad13-e997-445f-bcee-9cfaf1416b85] Date: Mon, 06 Jul 2015 14:24:57 -0700 From: from@example.com To: email@example.com Message-ID: <559af22960d1e_10c223ffaa606020814142@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/IiT3D3W0irLJPtlZnW23bQmQocO9Xll2mnq8towe8SQ?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [a66dad13-e997-445f-bcee-9cfaf1416b85] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.48ms Completed 201 Created in 19ms (Views: 0.6ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$sALT1EoihRbuwZkeMyMs2OOg7cAW1JXT7meIzZcUo2CqhBLhWCwZS"], ["created_at", "2015-07-06 21:24:57.404804"], ["updated_at", "2015-07-06 21:24:57.404804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.407718"], ["user_id", "983b0cb9-d596-4fe2-8ff6-a92a28833dff"], ["created_at", "2015-07-06 21:24:57.408877"], ["updated_at", "2015-07-06 21:24:57.408877"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.412989"], ["updated_at", "2015-07-06 21:24:57.412989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '983b0cb9-d596-4fe2-8ff6-a92a28833dff' AND "clubhouse_memberships"."organization_id" = '2226dbdf-48c3-41ee-aff5-de041f0f5488') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "983b0cb9-d596-4fe2-8ff6-a92a28833dff"], ["organization_id", "2226dbdf-48c3-41ee-aff5-de041f0f5488"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.416007"], ["updated_at", "2015-07-06 21:24:57.416007"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '2226dbdf-48c3-41ee-aff5-de041f0f5488') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "2226dbdf-48c3-41ee-aff5-de041f0f5488"], ["created_at", "2015-07-06 21:24:57.422721"], ["updated_at", "2015-07-06 21:24:57.422721"], ["token", "ls66K_lzNUBB7uETvmAYZOJNw1oGxMZpcxUGXsGX4S8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/2226dbdf-48c3-41ee-aff5-de041f0f5488/invitations" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"2226dbdf-48c3-41ee-aff5-de041f0f5488", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:57.425767') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4d4f89fb-41f3-4133-a48d-bb5798d79bfc"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:57.427137"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:57.427877"], ["id", "4d4f89fb-41f3-4133-a48d-bb5798d79bfc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2226dbdf-48c3-41ee-aff5-de041f0f5488"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "983b0cb9-d596-4fe2-8ff6-a92a28833dff"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '983b0cb9-d596-4fe2-8ff6-a92a28833dff' LIMIT 1 [["organization_id", "2226dbdf-48c3-41ee-aff5-de041f0f5488"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '2226dbdf-48c3-41ee-aff5-de041f0f5488') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "2226dbdf-48c3-41ee-aff5-de041f0f5488"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.435185"], ["updated_at", "2015-07-06 21:24:57.435185"], ["token", "iPkedXepY0F0j5V55G9o13yg9vFOYt9PobEhLiy9M_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 1df34024-7a64-40be-ba10-414b28cd803f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/29e22bdc-cb17-47c9-9541-1cf0f781b887 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "29e22bdc-cb17-47c9-9541-1cf0f781b887"]] [ActiveJob] [ActionMailer::DeliveryJob] [1df34024-7a64-40be-ba10-414b28cd803f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/29e22bdc-cb17-47c9-9541-1cf0f781b887 [ActiveJob] [ActionMailer::DeliveryJob] [1df34024-7a64-40be-ba10-414b28cd803f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "2226dbdf-48c3-41ee-aff5-de041f0f5488"]] [ActiveJob] [ActionMailer::DeliveryJob] [1df34024-7a64-40be-ba10-414b28cd803f] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [1df34024-7a64-40be-ba10-414b28cd803f] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [1df34024-7a64-40be-ba10-414b28cd803f] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [1df34024-7a64-40be-ba10-414b28cd803f] Date: Mon, 06 Jul 2015 14:24:57 -0700 From: from@example.com To: email@example.com Message-ID: <559af2296bea5_10c223ffaa6060208142f9@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/iPkedXepY0F0j5V55G9o13yg9vFOYt9PobEhLiy9M_0?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [1df34024-7a64-40be-ba10-414b28cd803f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.32ms Completed 201 Created in 18ms (Views: 0.6ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$Rib285yK89iX2PORmaW.Gu.iwcOiAZUAP5i5O/4xJl1n6Z5SQdd8y"], ["created_at", "2015-07-06 21:24:57.450358"], ["updated_at", "2015-07-06 21:24:57.450358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.451870"], ["user_id", "755b2ed7-a1b9-4d3d-a7a7-796534f81e8e"], ["created_at", "2015-07-06 21:24:57.452448"], ["updated_at", "2015-07-06 21:24:57.452448"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.456447"], ["updated_at", "2015-07-06 21:24:57.456447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '755b2ed7-a1b9-4d3d-a7a7-796534f81e8e' AND "clubhouse_memberships"."organization_id" = 'ad137226-3c76-4840-8da7-82f7b7a4e4d3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "755b2ed7-a1b9-4d3d-a7a7-796534f81e8e"], ["organization_id", "ad137226-3c76-4840-8da7-82f7b7a4e4d3"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.459241"], ["updated_at", "2015-07-06 21:24:57.459241"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'ad137226-3c76-4840-8da7-82f7b7a4e4d3') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "ad137226-3c76-4840-8da7-82f7b7a4e4d3"], ["created_at", "2015-07-06 21:24:57.463369"], ["updated_at", "2015-07-06 21:24:57.463369"], ["token", "3W30yZuZweOKEZNVzo1c-O264ZUgxM3_MXzLsNJy3Mc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$jURmzv4R8T1aK9dWIxGUWe9zZQYsDK4UEt0xc8O9Iow57KFwI4aOK"], ["created_at", "2015-07-06 21:24:57.468430"], ["updated_at", "2015-07-06 21:24:57.468430"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.472500"], ["updated_at", "2015-07-06 21:24:57.472500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '26bb10ed-3ea0-47fd-b8c7-d2ed0025c86e' AND "clubhouse_memberships"."organization_id" = '4a4bacce-5db0-4673-b454-14b98c3072e4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "26bb10ed-3ea0-47fd-b8c7-d2ed0025c86e"], ["organization_id", "4a4bacce-5db0-4673-b454-14b98c3072e4"], ["created_at", "2015-07-06 21:24:57.475315"], ["updated_at", "2015-07-06 21:24:57.475315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/ad137226-3c76-4840-8da7-82f7b7a4e4d3/invitations" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"ad137226-3c76-4840-8da7-82f7b7a4e4d3", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:57.478152') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0a67d15e-b370-4e54-8f88-c3dc2e747811"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:57.479424"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:57.480589"], ["id", "0a67d15e-b370-4e54-8f88-c3dc2e747811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "ad137226-3c76-4840-8da7-82f7b7a4e4d3"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "755b2ed7-a1b9-4d3d-a7a7-796534f81e8e"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '755b2ed7-a1b9-4d3d-a7a7-796534f81e8e' LIMIT 1 [["organization_id", "ad137226-3c76-4840-8da7-82f7b7a4e4d3"], ["admin", "t"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "ad137226-3c76-4840-8da7-82f7b7a4e4d3"]] Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$M9M2OBDQJ0QXa88Smy89qejNNyneMF7nsGWSTsJubp81hZuMb4QlO"], ["created_at", "2015-07-06 21:24:57.496870"], ["updated_at", "2015-07-06 21:24:57.496870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.499617"], ["user_id", "a51a6cc0-f271-4897-9d24-e428442ba4e3"], ["created_at", "2015-07-06 21:24:57.500816"], ["updated_at", "2015-07-06 21:24:57.500816"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.507325"], ["updated_at", "2015-07-06 21:24:57.507325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a51a6cc0-f271-4897-9d24-e428442ba4e3' AND "clubhouse_memberships"."organization_id" = 'ae268e9f-71a4-47bf-8151-74bc768fc30c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a51a6cc0-f271-4897-9d24-e428442ba4e3"], ["organization_id", "ae268e9f-71a4-47bf-8151-74bc768fc30c"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.510268"], ["updated_at", "2015-07-06 21:24:57.510268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = 'ae268e9f-71a4-47bf-8151-74bc768fc30c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "ae268e9f-71a4-47bf-8151-74bc768fc30c"], ["created_at", "2015-07-06 21:24:57.514258"], ["updated_at", "2015-07-06 21:24:57.514258"], ["token", "EOOz7sWRBtl2lNUWrfla0hUpWeeq0AEOoNgfHQD79JU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$5hWSqQ6dVoVX/gFcnvHcrehJZ65zQBFVZAtHA937ZXtBgdJyLC1/C"], ["created_at", "2015-07-06 21:24:57.519251"], ["updated_at", "2015-07-06 21:24:57.519251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.523402"], ["updated_at", "2015-07-06 21:24:57.523402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3a4e91d1-d106-4444-a82c-f89ba1063a5f' AND "clubhouse_memberships"."organization_id" = '776f38ee-99a0-46d0-bdee-7a02cbf42414') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3a4e91d1-d106-4444-a82c-f89ba1063a5f"], ["organization_id", "776f38ee-99a0-46d0-bdee-7a02cbf42414"], ["created_at", "2015-07-06 21:24:57.528194"], ["updated_at", "2015-07-06 21:24:57.528194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$dg7JpfTZ5PTyy0k2WHmfGeMmcei2oKlskTR2k61luxQW/XOBbm5qu"], ["created_at", "2015-07-06 21:24:57.537425"], ["updated_at", "2015-07-06 21:24:57.537425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.540026"], ["user_id", "49256dc6-277e-4aea-9cd5-ea9e095fcba1"], ["created_at", "2015-07-06 21:24:57.541028"], ["updated_at", "2015-07-06 21:24:57.541028"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.546241"], ["updated_at", "2015-07-06 21:24:57.546241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '49256dc6-277e-4aea-9cd5-ea9e095fcba1' AND "clubhouse_memberships"."organization_id" = '5b21441e-6c8c-4b1e-b48a-c627c636adbe') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "49256dc6-277e-4aea-9cd5-ea9e095fcba1"], ["organization_id", "5b21441e-6c8c-4b1e-b48a-c627c636adbe"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.549609"], ["updated_at", "2015-07-06 21:24:57.549609"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = '5b21441e-6c8c-4b1e-b48a-c627c636adbe') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "5b21441e-6c8c-4b1e-b48a-c627c636adbe"], ["created_at", "2015-07-06 21:24:57.556263"], ["updated_at", "2015-07-06 21:24:57.556263"], ["token", "Vh8Pc2ykcXmuINHEM_3ZnXDb2AzX_ELbxOEuoIDAcIY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$h0p/yh41IgFsiQar5JxgPu46EpnWVEgG7XggQmxikZCACuEUWmq9y"], ["created_at", "2015-07-06 21:24:57.566743"], ["updated_at", "2015-07-06 21:24:57.566743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.568671"], ["user_id", "f6e9d744-23c7-4070-a714-e2d44436af20"], ["created_at", "2015-07-06 21:24:57.569831"], ["updated_at", "2015-07-06 21:24:57.569831"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.576213"], ["updated_at", "2015-07-06 21:24:57.576213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f6e9d744-23c7-4070-a714-e2d44436af20' AND "clubhouse_memberships"."organization_id" = 'c9771b3b-a5d0-4cbe-be2f-9110c34c9978') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f6e9d744-23c7-4070-a714-e2d44436af20"], ["organization_id", "c9771b3b-a5d0-4cbe-be2f-9110c34c9978"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.582023"], ["updated_at", "2015-07-06 21:24:57.582023"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = 'c9771b3b-a5d0-4cbe-be2f-9110c34c9978') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "c9771b3b-a5d0-4cbe-be2f-9110c34c9978"], ["created_at", "2015-07-06 21:24:57.589475"], ["updated_at", "2015-07-06 21:24:57.589475"], ["token", "DMERrvoHlUt4lIRdXtBNHkcWZFZUqTzmMKRQ0_QlAhc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/8ad599c1-b2bd-4ed3-8234-491aa14c5ce6" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"8ad599c1-b2bd-4ed3-8234-491aa14c5ce6", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:57.592389') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "19799d51-1d61-46ea-b3bb-856a078aa486"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:57.593759"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:57.594450"], ["id", "19799d51-1d61-46ea-b3bb-856a078aa486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "8ad599c1-b2bd-4ed3-8234-491aa14c5ce6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f6e9d744-23c7-4070-a714-e2d44436af20"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "c9771b3b-a5d0-4cbe-be2f-9110c34c9978"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'f6e9d744-23c7-4070-a714-e2d44436af20' LIMIT 1 [["organization_id", "c9771b3b-a5d0-4cbe-be2f-9110c34c9978"], ["admin", "t"]] Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 1.6ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$XyoyWQdSK4Xt85xNMoLwvOwnpgITko.BbGEfX7OfKKNgTxXxyAgQm"], ["created_at", "2015-07-06 21:24:57.610220"], ["updated_at", "2015-07-06 21:24:57.610220"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.612189"], ["user_id", "5959f4ad-af0b-440f-b56c-f574713297fb"], ["created_at", "2015-07-06 21:24:57.613392"], ["updated_at", "2015-07-06 21:24:57.613392"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.622437"], ["updated_at", "2015-07-06 21:24:57.622437"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5959f4ad-af0b-440f-b56c-f574713297fb' AND "clubhouse_memberships"."organization_id" = 'ad3d8f70-4d46-4b22-a4f8-7fb3c91175b7') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5959f4ad-af0b-440f-b56c-f574713297fb"], ["organization_id", "ad3d8f70-4d46-4b22-a4f8-7fb3c91175b7"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.629041"], ["updated_at", "2015-07-06 21:24:57.629041"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = 'ad3d8f70-4d46-4b22-a4f8-7fb3c91175b7') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "ad3d8f70-4d46-4b22-a4f8-7fb3c91175b7"], ["created_at", "2015-07-06 21:24:57.637020"], ["updated_at", "2015-07-06 21:24:57.637020"], ["token", "rxJ6tDEl2ER-cxus8YZ_sQGXEQJOEMtrpJcUiBubPP0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$pRn.mbCcy5s6hDZxwWA/XuEtNbKxDCKCzzbNr6Of7CQDDtQdPKHcq"], ["created_at", "2015-07-06 21:24:57.648691"], ["updated_at", "2015-07-06 21:24:57.648691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.651082"], ["user_id", "58e263db-3c97-42d3-954c-ce09da78eb7a"], ["created_at", "2015-07-06 21:24:57.652903"], ["updated_at", "2015-07-06 21:24:57.652903"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.659354"], ["updated_at", "2015-07-06 21:24:57.659354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58e263db-3c97-42d3-954c-ce09da78eb7a' AND "clubhouse_memberships"."organization_id" = 'ca6def7d-455a-4693-bdbc-6d2ea15000d9') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "58e263db-3c97-42d3-954c-ce09da78eb7a"], ["organization_id", "ca6def7d-455a-4693-bdbc-6d2ea15000d9"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.664234"], ["updated_at", "2015-07-06 21:24:57.664234"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'ca6def7d-455a-4693-bdbc-6d2ea15000d9') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "ca6def7d-455a-4693-bdbc-6d2ea15000d9"], ["created_at", "2015-07-06 21:24:57.672138"], ["updated_at", "2015-07-06 21:24:57.672138"], ["token", "Gu8oU4bVnInGi9dG6DxfmxJX2MGFUlAwEtEBgOwBqpM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/5d110dd3-245e-4151-917c-07629c2f0fb6" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"5d110dd3-245e-4151-917c-07629c2f0fb6", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:57.677448') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "52e6dbb4-b7c8-4ffb-99f8-90a37449cb88"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:57.680060"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:57.681384"], ["id", "52e6dbb4-b7c8-4ffb-99f8-90a37449cb88"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "5d110dd3-245e-4151-917c-07629c2f0fb6"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "58e263db-3c97-42d3-954c-ce09da78eb7a"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ca6def7d-455a-4693-bdbc-6d2ea15000d9"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '58e263db-3c97-42d3-954c-ce09da78eb7a' LIMIT 1 [["organization_id", "ca6def7d-455a-4693-bdbc-6d2ea15000d9"], ["admin", "t"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."id" != '5d110dd3-245e-4151-917c-07629c2f0fb6' AND "clubhouse_invitations"."organization_id" = 'ca6def7d-455a-4693-bdbc-6d2ea15000d9') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:24:57.693221"], ["id", "5d110dd3-245e-4151-917c-07629c2f0fb6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 0.6ms | ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$uWu1qHdU63sB18iO8zBhzOZmBxs1jCc0Rn181tq65FM.Ta/CqeiGK"], ["created_at", "2015-07-06 21:24:57.703941"], ["updated_at", "2015-07-06 21:24:57.703941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.706081"], ["user_id", "b50ab5f0-c745-4199-b38b-90e37aa59720"], ["created_at", "2015-07-06 21:24:57.706740"], ["updated_at", "2015-07-06 21:24:57.706740"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.710833"], ["updated_at", "2015-07-06 21:24:57.710833"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b50ab5f0-c745-4199-b38b-90e37aa59720' AND "clubhouse_memberships"."organization_id" = '6e893d00-f2d0-4d58-88f7-3533004af8f4') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b50ab5f0-c745-4199-b38b-90e37aa59720"], ["organization_id", "6e893d00-f2d0-4d58-88f7-3533004af8f4"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.716853"], ["updated_at", "2015-07-06 21:24:57.716853"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '6e893d00-f2d0-4d58-88f7-3533004af8f4') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "6e893d00-f2d0-4d58-88f7-3533004af8f4"], ["created_at", "2015-07-06 21:24:57.724553"], ["updated_at", "2015-07-06 21:24:57.724553"], ["token", "XBKGHHl8aYabF4hBENowBkz4H5Qyqq3nHV3UyH5yFYE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$qPBJ7uNpqbwNumravPYSqOEK97eOqvUeLe/0yG8aVHV.l3l5HBEiG"], ["created_at", "2015-07-06 21:24:57.734791"], ["updated_at", "2015-07-06 21:24:57.734791"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.741583"], ["updated_at", "2015-07-06 21:24:57.741583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '194882a3-e456-4cfd-9611-13d72d36a6a3' AND "clubhouse_memberships"."organization_id" = '7f24156d-4245-4679-89ff-f59eac83ab7d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "194882a3-e456-4cfd-9611-13d72d36a6a3"], ["organization_id", "7f24156d-4245-4679-89ff-f59eac83ab7d"], ["created_at", "2015-07-06 21:24:57.744980"], ["updated_at", "2015-07-06 21:24:57.744980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$J3xCtS5bGDd5J31v4AFSLOv2hGcHzlZ20A2qZ5f1b7YZWJWrYZOwK"], ["created_at", "2015-07-06 21:24:57.756045"], ["updated_at", "2015-07-06 21:24:57.756045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:24:57.757739"], ["user_id", "b396882b-df9d-431a-afe3-486526ef8aa4"], ["created_at", "2015-07-06 21:24:57.759474"], ["updated_at", "2015-07-06 21:24:57.759474"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.768172"], ["updated_at", "2015-07-06 21:24:57.768172"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b396882b-df9d-431a-afe3-486526ef8aa4' AND "clubhouse_memberships"."organization_id" = '95095481-9f72-4300-8c1b-d968e9f24d92') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b396882b-df9d-431a-afe3-486526ef8aa4"], ["organization_id", "95095481-9f72-4300-8c1b-d968e9f24d92"], ["admin", "t"], ["created_at", "2015-07-06 21:24:57.772857"], ["updated_at", "2015-07-06 21:24:57.772857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = '95095481-9f72-4300-8c1b-d968e9f24d92') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "95095481-9f72-4300-8c1b-d968e9f24d92"], ["created_at", "2015-07-06 21:24:57.779665"], ["updated_at", "2015-07-06 21:24:57.779665"], ["token", "CDNdH4G6ljcKnhH__dEfBglKCipS7lgesrq-wHyOy9c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$N6goQ2VHRXcGOJs83RsYvepCxjseSr689jq5qaPND93irVKgsAQFO"], ["created_at", "2015-07-06 21:24:57.786662"], ["updated_at", "2015-07-06 21:24:57.786662"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:24:57.792129"], ["updated_at", "2015-07-06 21:24:57.792129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bb4b1e44-d964-475a-9b78-7aa82170b62e' AND "clubhouse_memberships"."organization_id" = '74bee18f-2c0c-47de-b608-eb1ce6643a91') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bb4b1e44-d964-475a-9b78-7aa82170b62e"], ["organization_id", "74bee18f-2c0c-47de-b608-eb1ce6643a91"], ["created_at", "2015-07-06 21:24:57.795043"], ["updated_at", "2015-07-06 21:24:57.795043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:24:57 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:24:57.797759') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "8ceb6a90-ed4b-4c81-b861-8744d0564a56"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:24:57.799892"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:24:57.800777"], ["id", "8ceb6a90-ed4b-4c81-b861-8744d0564a56"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "b396882b-df9d-431a-afe3-486526ef8aa4"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b396882b-df9d-431a-afe3-486526ef8aa4' LIMIT 1 [["organization_id", "95095481-9f72-4300-8c1b-d968e9f24d92"], ["admin", "t"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "95095481-9f72-4300-8c1b-d968e9f24d92"]] Completed 200 OK in 21ms (Views: 1.6ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (2.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$3XXNCFq4qshR8E2Z0bJtmeT.12k/KRCkWDE.1QZLTPbGbuk7Uu2Ly"], ["created_at", "2015-07-06 21:25:08.270556"], ["updated_at", "2015-07-06 21:25:08.270556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$h/U9srXMIf6Swx6VgIB9KOcpmaQuAXBebPnA4CHF/CRFMDBmtYgY2"], ["created_at", "2015-07-06 21:25:08.281358"], ["updated_at", "2015-07-06 21:25:08.281358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.293948"], ["user_id", "9f8e031c-37aa-4275-9035-ddef1457bd52"], ["created_at", "2015-07-06 21:25:08.304666"], ["updated_at", "2015-07-06 21:25:08.304666"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.319631"], ["updated_at", "2015-07-06 21:25:08.319631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f8e031c-37aa-4275-9035-ddef1457bd52' AND "clubhouse_memberships"."organization_id" = 'c4c1b945-300d-4a25-8c6e-def8954de4c0') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9f8e031c-37aa-4275-9035-ddef1457bd52"], ["organization_id", "c4c1b945-300d-4a25-8c6e-def8954de4c0"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.332438"], ["updated_at", "2015-07-06 21:25:08.332438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '79399be6-8b99-4aa4-9570-877c60cf7874' AND "clubhouse_memberships"."organization_id" = 'c4c1b945-300d-4a25-8c6e-def8954de4c0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "79399be6-8b99-4aa4-9570-877c60cf7874"], ["organization_id", "c4c1b945-300d-4a25-8c6e-def8954de4c0"], ["created_at", "2015-07-06 21:25:08.336327"], ["updated_at", "2015-07-06 21:25:08.336327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$ljCmd2GEncZk3b1/n8zjruZasCsFw1M3JkKRYRd20QwB7gkUcyiTK"], ["created_at", "2015-07-06 21:25:08.343240"], ["updated_at", "2015-07-06 21:25:08.343240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.345975"], ["user_id", "5fc9e668-78fb-4a01-97cb-069d9beab299"], ["created_at", "2015-07-06 21:25:08.346707"], ["updated_at", "2015-07-06 21:25:08.346707"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'c4c1b945-300d-4a25-8c6e-def8954de4c0') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "c4c1b945-300d-4a25-8c6e-def8954de4c0"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.357423"], ["updated_at", "2015-07-06 21:25:08.357423"], ["token", "d1D7yXD_VhNkMc-99BTbqOom3_QC-tWL4nUoTTpiaYI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$Ur.NCjAZurufipPaX3SJ0eneokqVkqctcC3w2EsMFocFy3OlH6KpS"], ["created_at", "2015-07-06 21:25:08.385530"], ["updated_at", "2015-07-06 21:25:08.385530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$JdAzVGpnm7fwyChQrvUwY.y2rP9w8yZLcvI3F4yuTV4mox2M2bvXO"], ["created_at", "2015-07-06 21:25:08.390835"], ["updated_at", "2015-07-06 21:25:08.390835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.392377"], ["user_id", "11fde72a-b048-4e1c-b469-1f6485c4a0e2"], ["created_at", "2015-07-06 21:25:08.392972"], ["updated_at", "2015-07-06 21:25:08.392972"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.397016"], ["updated_at", "2015-07-06 21:25:08.397016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '11fde72a-b048-4e1c-b469-1f6485c4a0e2' AND "clubhouse_memberships"."organization_id" = '0f899a37-98d5-45f6-a327-d171e91a2803') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "11fde72a-b048-4e1c-b469-1f6485c4a0e2"], ["organization_id", "0f899a37-98d5-45f6-a327-d171e91a2803"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.400082"], ["updated_at", "2015-07-06 21:25:08.400082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c9a97ed-2e5e-4ad5-b4ea-8d4b75b650f4' AND "clubhouse_memberships"."organization_id" = '0f899a37-98d5-45f6-a327-d171e91a2803') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c9a97ed-2e5e-4ad5-b4ea-8d4b75b650f4"], ["organization_id", "0f899a37-98d5-45f6-a327-d171e91a2803"], ["created_at", "2015-07-06 21:25:08.402946"], ["updated_at", "2015-07-06 21:25:08.402946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$Xu6YalnA1yplmBBJXAmUo.kF8MYaj3QkfaLtMKdzo0BDHDkz4VRLW"], ["created_at", "2015-07-06 21:25:08.409677"], ["updated_at", "2015-07-06 21:25:08.409677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.411327"], ["user_id", "82e2219a-df7f-4030-853e-771c039e303a"], ["created_at", "2015-07-06 21:25:08.411937"], ["updated_at", "2015-07-06 21:25:08.411937"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '0f899a37-98d5-45f6-a327-d171e91a2803') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "0f899a37-98d5-45f6-a327-d171e91a2803"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.417209"], ["updated_at", "2015-07-06 21:25:08.417209"], ["token", "3Uefgbkdgd1xu81YSCwcgGsGO6Nl7bBK-dDv90L4I_0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0f899a37-98d5-45f6-a327-d171e91a2803/memberships" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"0f899a37-98d5-45f6-a327-d171e91a2803", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:08.422726') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d0a3df28-47a9-49ae-bff2-27357cd8c69a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:08.432709"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:08.433901"], ["id", "d0a3df28-47a9-49ae-bff2-27357cd8c69a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0f899a37-98d5-45f6-a327-d171e91a2803"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "82e2219a-df7f-4030-853e-771c039e303a"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 36ms (ActiveRecord: 2.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$5iMnhkTe3gwv8ZzRhW03B.FHFlPItZMEQFxod8exql2o3BMZTz1SS"], ["created_at", "2015-07-06 21:25:08.466040"], ["updated_at", "2015-07-06 21:25:08.466040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$Af7Nj1ioeD/oHtxoOxKHvugg5khN4SVKXt/bei1s/UGP0ioBUMDeC"], ["created_at", "2015-07-06 21:25:08.471644"], ["updated_at", "2015-07-06 21:25:08.471644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.473305"], ["user_id", "53a98678-5aef-430d-939e-e6d942ab542a"], ["created_at", "2015-07-06 21:25:08.473909"], ["updated_at", "2015-07-06 21:25:08.473909"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.478222"], ["updated_at", "2015-07-06 21:25:08.478222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '53a98678-5aef-430d-939e-e6d942ab542a' AND "clubhouse_memberships"."organization_id" = 'f3e4649c-4dd6-4113-914f-de1f9c0a46d0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "53a98678-5aef-430d-939e-e6d942ab542a"], ["organization_id", "f3e4649c-4dd6-4113-914f-de1f9c0a46d0"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.481820"], ["updated_at", "2015-07-06 21:25:08.481820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a32beca2-387c-4c62-abfc-b5f31550712d' AND "clubhouse_memberships"."organization_id" = 'f3e4649c-4dd6-4113-914f-de1f9c0a46d0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a32beca2-387c-4c62-abfc-b5f31550712d"], ["organization_id", "f3e4649c-4dd6-4113-914f-de1f9c0a46d0"], ["created_at", "2015-07-06 21:25:08.484796"], ["updated_at", "2015-07-06 21:25:08.484796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$c6icXR5c97k.yvSobjup/.NOG8cuWgTUpRca9w2jbpAAKU5WUQuuq"], ["created_at", "2015-07-06 21:25:08.490029"], ["updated_at", "2015-07-06 21:25:08.490029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.491630"], ["user_id", "464e3ee7-67f3-412a-a711-b12895820cb1"], ["created_at", "2015-07-06 21:25:08.492285"], ["updated_at", "2015-07-06 21:25:08.492285"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = 'f3e4649c-4dd6-4113-914f-de1f9c0a46d0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "f3e4649c-4dd6-4113-914f-de1f9c0a46d0"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.497505"], ["updated_at", "2015-07-06 21:25:08.497505"], ["token", "pRay_6QZMBxRCg0_WLprzpXzjIddWh9LWaOsjfkbVXE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/f3e4649c-4dd6-4113-914f-de1f9c0a46d0/memberships" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"pRay_6QZMBxRCg0_WLprzpXzjIddWh9LWaOsjfkbVXE", "organization_id"=>"f3e4649c-4dd6-4113-914f-de1f9c0a46d0", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:08.500675') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9e60628b-2971-4c20-93af-6512e21d8515"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:08.502071"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:08.502791"], ["id", "9e60628b-2971-4c20-93af-6512e21d8515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "f3e4649c-4dd6-4113-914f-de1f9c0a46d0"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "464e3ee7-67f3-412a-a711-b12895820cb1"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "pRay_6QZMBxRCg0_WLprzpXzjIddWh9LWaOsjfkbVXE"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "f3e4649c-4dd6-4113-914f-de1f9c0a46d0"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '464e3ee7-67f3-412a-a711-b12895820cb1' AND "clubhouse_memberships"."organization_id" = 'f3e4649c-4dd6-4113-914f-de1f9c0a46d0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "f3e4649c-4dd6-4113-914f-de1f9c0a46d0"], ["member_id", "464e3ee7-67f3-412a-a711-b12895820cb1"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.512943"], ["updated_at", "2015-07-06 21:25:08.512943"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "d60ec434-17f8-4294-aa51-556edbca76b2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 33ms (Views: 18.4ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$.HRLXF8Q93Zd.o8ZH3EjpeAfd8sfcucQXnbjY7IWo9vWwiM2gZnKK"], ["created_at", "2015-07-06 21:25:08.546157"], ["updated_at", "2015-07-06 21:25:08.546157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$EkHYwWtZVFNV7lhBf77i6ekMAmsqr3nT5KLsjszreKObfqg3uoS9."], ["created_at", "2015-07-06 21:25:08.552568"], ["updated_at", "2015-07-06 21:25:08.552568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.554528"], ["user_id", "12c7dcee-eba3-4cc0-95de-bff52197dc05"], ["created_at", "2015-07-06 21:25:08.555274"], ["updated_at", "2015-07-06 21:25:08.555274"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.559684"], ["updated_at", "2015-07-06 21:25:08.559684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '12c7dcee-eba3-4cc0-95de-bff52197dc05' AND "clubhouse_memberships"."organization_id" = 'a712a015-277c-4491-af05-3646d2651571') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "12c7dcee-eba3-4cc0-95de-bff52197dc05"], ["organization_id", "a712a015-277c-4491-af05-3646d2651571"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.562724"], ["updated_at", "2015-07-06 21:25:08.562724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '520ccb13-5cb9-4cb5-987b-ccfe89cb438a' AND "clubhouse_memberships"."organization_id" = 'a712a015-277c-4491-af05-3646d2651571') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "520ccb13-5cb9-4cb5-987b-ccfe89cb438a"], ["organization_id", "a712a015-277c-4491-af05-3646d2651571"], ["created_at", "2015-07-06 21:25:08.565478"], ["updated_at", "2015-07-06 21:25:08.565478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$yofWs90p9Hm5xzURglWKlOQVL3ACOfDBOyMM0qvhWPnd1U1V5lEoC"], ["created_at", "2015-07-06 21:25:08.573177"], ["updated_at", "2015-07-06 21:25:08.573177"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.577694"], ["user_id", "83955f47-faec-498e-b1a1-7de19deabb5c"], ["created_at", "2015-07-06 21:25:08.578912"], ["updated_at", "2015-07-06 21:25:08.578912"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = 'a712a015-277c-4491-af05-3646d2651571') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "a712a015-277c-4491-af05-3646d2651571"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.587331"], ["updated_at", "2015-07-06 21:25:08.587331"], ["token", "SQM_UmNa1fAehE1veOntfhebxoskEmJfmDzo7SOgo4A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$QiIbCvNAI/vJ8DSMOmxBv.VVR9KNKVmAAOe0rfKcYZKAlFM7JjGSK"], ["created_at", "2015-07-06 21:25:08.600742"], ["updated_at", "2015-07-06 21:25:08.600742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$nSFzmt3IERoW1FvaIicD4utyiOehIEU6o1ilg/P0olnCjFY4U7Vsy"], ["created_at", "2015-07-06 21:25:08.607484"], ["updated_at", "2015-07-06 21:25:08.607484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.609186"], ["user_id", "fe313706-31cb-46f2-b52a-d6020bb5dc45"], ["created_at", "2015-07-06 21:25:08.609761"], ["updated_at", "2015-07-06 21:25:08.609761"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.614182"], ["updated_at", "2015-07-06 21:25:08.614182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fe313706-31cb-46f2-b52a-d6020bb5dc45' AND "clubhouse_memberships"."organization_id" = 'c7d2d052-99cc-436a-b38d-e1f862f9f2d7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "fe313706-31cb-46f2-b52a-d6020bb5dc45"], ["organization_id", "c7d2d052-99cc-436a-b38d-e1f862f9f2d7"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.617312"], ["updated_at", "2015-07-06 21:25:08.617312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42bdb073-8b64-4bdd-9295-375f8b4f6ead' AND "clubhouse_memberships"."organization_id" = 'c7d2d052-99cc-436a-b38d-e1f862f9f2d7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "42bdb073-8b64-4bdd-9295-375f8b4f6ead"], ["organization_id", "c7d2d052-99cc-436a-b38d-e1f862f9f2d7"], ["created_at", "2015-07-06 21:25:08.620242"], ["updated_at", "2015-07-06 21:25:08.620242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$Su/UmCBSyyYCDnPsnHhx7upfwwEm6G63yyPPquEKTavalGKl7J76C"], ["created_at", "2015-07-06 21:25:08.625401"], ["updated_at", "2015-07-06 21:25:08.625401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.626872"], ["user_id", "a2d70a71-67f5-409d-b139-8b8a02859b02"], ["created_at", "2015-07-06 21:25:08.627438"], ["updated_at", "2015-07-06 21:25:08.627438"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'c7d2d052-99cc-436a-b38d-e1f862f9f2d7') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "c7d2d052-99cc-436a-b38d-e1f862f9f2d7"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.635260"], ["updated_at", "2015-07-06 21:25:08.635260"], ["token", "ZHZq5Sqie4g9sg2gNPrWx230fB_BETsuQn_Jb9pIzOU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:08.639283') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5ffb8c3e-35ca-4776-9fcb-7615e46d3990"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:08.640881"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:08.641682"], ["id", "5ffb8c3e-35ca-4776-9fcb-7615e46d3990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a2d70a71-67f5-409d-b139-8b8a02859b02"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.4ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 15ms (ActiveRecord: 3.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$6TQ18WTdKQqqgSWpVls/HuD9g82uDRNEozGp7ZP4xmPP0YMCUFajW"], ["created_at", "2015-07-06 21:25:08.661420"], ["updated_at", "2015-07-06 21:25:08.661420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$9LmmCENOKOLkvO25m8zkXu2z596eHX4uHzrSevfWelSgtcg8Q1f6m"], ["created_at", "2015-07-06 21:25:08.667859"], ["updated_at", "2015-07-06 21:25:08.667859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.670034"], ["user_id", "37a1cae1-28c3-4ac5-ae47-444aad5491a0"], ["created_at", "2015-07-06 21:25:08.670866"], ["updated_at", "2015-07-06 21:25:08.670866"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.675463"], ["updated_at", "2015-07-06 21:25:08.675463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37a1cae1-28c3-4ac5-ae47-444aad5491a0' AND "clubhouse_memberships"."organization_id" = '70919cff-ad2b-4ab7-9204-ba2aa9b46485') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37a1cae1-28c3-4ac5-ae47-444aad5491a0"], ["organization_id", "70919cff-ad2b-4ab7-9204-ba2aa9b46485"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.679406"], ["updated_at", "2015-07-06 21:25:08.679406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8baa642e-c6b0-4693-9081-1ebc0151e924' AND "clubhouse_memberships"."organization_id" = '70919cff-ad2b-4ab7-9204-ba2aa9b46485') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8baa642e-c6b0-4693-9081-1ebc0151e924"], ["organization_id", "70919cff-ad2b-4ab7-9204-ba2aa9b46485"], ["created_at", "2015-07-06 21:25:08.684225"], ["updated_at", "2015-07-06 21:25:08.684225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$kdgJ.DHc8LpbeqSmyosYsOIYIFUd9QspoaNAT1F8RdGaxQISpvhki"], ["created_at", "2015-07-06 21:25:08.689379"], ["updated_at", "2015-07-06 21:25:08.689379"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.692108"], ["user_id", "74c3dfa3-4f8a-4123-a7bf-f18eb03ddf0c"], ["created_at", "2015-07-06 21:25:08.693327"], ["updated_at", "2015-07-06 21:25:08.693327"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '70919cff-ad2b-4ab7-9204-ba2aa9b46485') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "70919cff-ad2b-4ab7-9204-ba2aa9b46485"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.701788"], ["updated_at", "2015-07-06 21:25:08.701788"], ["token", "xtVrpjYJ7ELk2fLS4K0wtmAAkU_pUR6crtMWYAxP2dE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"xtVrpjYJ7ELk2fLS4K0wtmAAkU_pUR6crtMWYAxP2dE", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:08.711898') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c0a3ddab-9526-446b-9117-395ed33a5cf9"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:08.713449"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:08.714264"], ["id", "c0a3ddab-9526-446b-9117-395ed33a5cf9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "74c3dfa3-4f8a-4123-a7bf-f18eb03ddf0c"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "xtVrpjYJ7ELk2fLS4K0wtmAAkU_pUR6crtMWYAxP2dE"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "70919cff-ad2b-4ab7-9204-ba2aa9b46485"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74c3dfa3-4f8a-4123-a7bf-f18eb03ddf0c' AND "clubhouse_memberships"."organization_id" = '70919cff-ad2b-4ab7-9204-ba2aa9b46485') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "70919cff-ad2b-4ab7-9204-ba2aa9b46485"], ["member_id", "74c3dfa3-4f8a-4123-a7bf-f18eb03ddf0c"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.722029"], ["updated_at", "2015-07-06 21:25:08.722029"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "24c7b747-bca4-4534-9a89-f00364eb6193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.7ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$yt9gWJ/Qx.DzHIESse3eqONabeqI8zGf0.vXUtoa5WcAhQwibX.Mq"], ["created_at", "2015-07-06 21:25:08.731849"], ["updated_at", "2015-07-06 21:25:08.731849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$isS1E53IoJCQhHF40/SJlO6M3HXeJMPAQN3GoCTCv5qFX9U0hkvwS"], ["created_at", "2015-07-06 21:25:08.738917"], ["updated_at", "2015-07-06 21:25:08.738917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.740722"], ["user_id", "40c9e90e-7ffc-4fe0-bcdf-fd7a84cac48e"], ["created_at", "2015-07-06 21:25:08.741384"], ["updated_at", "2015-07-06 21:25:08.741384"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.747154"], ["updated_at", "2015-07-06 21:25:08.747154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '40c9e90e-7ffc-4fe0-bcdf-fd7a84cac48e' AND "clubhouse_memberships"."organization_id" = '91255a17-ba13-4a51-b5a0-86147ed76ddf') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "40c9e90e-7ffc-4fe0-bcdf-fd7a84cac48e"], ["organization_id", "91255a17-ba13-4a51-b5a0-86147ed76ddf"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.750632"], ["updated_at", "2015-07-06 21:25:08.750632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd808035f-8de5-400e-a926-af50fc919adf' AND "clubhouse_memberships"."organization_id" = '91255a17-ba13-4a51-b5a0-86147ed76ddf') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d808035f-8de5-400e-a926-af50fc919adf"], ["organization_id", "91255a17-ba13-4a51-b5a0-86147ed76ddf"], ["created_at", "2015-07-06 21:25:08.753851"], ["updated_at", "2015-07-06 21:25:08.753851"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (1.8ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$FZCzCkCrL2VfwGQSf527Ye9LDpUXc40RDDIP5uH.QMjShLpA6v5R."], ["created_at", "2015-07-06 21:25:08.773393"], ["updated_at", "2015-07-06 21:25:08.773393"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$/88QCunbKPu7Y/zhPINKlujB4dNAIEhmQDy/MhDp3NvrehK0Qytdu"], ["created_at", "2015-07-06 21:25:08.782673"], ["updated_at", "2015-07-06 21:25:08.782673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.785742"], ["user_id", "dc90744f-1891-4832-9229-fb529a4597d0"], ["created_at", "2015-07-06 21:25:08.786397"], ["updated_at", "2015-07-06 21:25:08.786397"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.790560"], ["updated_at", "2015-07-06 21:25:08.790560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dc90744f-1891-4832-9229-fb529a4597d0' AND "clubhouse_memberships"."organization_id" = '0ed5a0ab-bfb8-49fa-8a59-1e3f41615b31') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dc90744f-1891-4832-9229-fb529a4597d0"], ["organization_id", "0ed5a0ab-bfb8-49fa-8a59-1e3f41615b31"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.793550"], ["updated_at", "2015-07-06 21:25:08.793550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7d8f36c5-a60c-4aca-b887-34ffaff401f0' AND "clubhouse_memberships"."organization_id" = '0ed5a0ab-bfb8-49fa-8a59-1e3f41615b31') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7d8f36c5-a60c-4aca-b887-34ffaff401f0"], ["organization_id", "0ed5a0ab-bfb8-49fa-8a59-1e3f41615b31"], ["created_at", "2015-07-06 21:25:08.796258"], ["updated_at", "2015-07-06 21:25:08.796258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/ce293a08-7a90-4ad2-856b-78058e674a68" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"ce293a08-7a90-4ad2-856b-78058e674a68", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:08.799074') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "3f2b422d-a729-46bd-a955-39af6e5d0d00"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:08.800380"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:08.801094"], ["id", "3f2b422d-a729-46bd-a955-39af6e5d0d00"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "ce293a08-7a90-4ad2-856b-78058e674a68"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "dc90744f-1891-4832-9229-fb529a4597d0"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0ed5a0ab-bfb8-49fa-8a59-1e3f41615b31"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'dc90744f-1891-4832-9229-fb529a4597d0' LIMIT 1 [["organization_id", "0ed5a0ab-bfb8-49fa-8a59-1e3f41615b31"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7d8f36c5-a60c-4aca-b887-34ffaff401f0"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "ce293a08-7a90-4ad2-856b-78058e674a68"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$xNDu4bteQVCq/sispDNHzOp9Dct1Z.NgQOGZMhVFBCSgPtXXNEn02"], ["created_at", "2015-07-06 21:25:08.817026"], ["updated_at", "2015-07-06 21:25:08.817026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$sh/v.WFkedZYvIPAsjcCp.Q16.F17vwUTpIPSUHoiy.a0bev4sD.2"], ["created_at", "2015-07-06 21:25:08.823065"], ["updated_at", "2015-07-06 21:25:08.823065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.824665"], ["user_id", "f5a13432-0861-4830-adeb-743197520bcd"], ["created_at", "2015-07-06 21:25:08.825328"], ["updated_at", "2015-07-06 21:25:08.825328"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.829484"], ["updated_at", "2015-07-06 21:25:08.829484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f5a13432-0861-4830-adeb-743197520bcd' AND "clubhouse_memberships"."organization_id" = 'd3b70294-581d-43de-89ae-b47bdb785ef2') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "f5a13432-0861-4830-adeb-743197520bcd"], ["organization_id", "d3b70294-581d-43de-89ae-b47bdb785ef2"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.832935"], ["updated_at", "2015-07-06 21:25:08.832935"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '063c5889-e7a8-474b-a61d-2b3f963b6e7e' AND "clubhouse_memberships"."organization_id" = 'd3b70294-581d-43de-89ae-b47bdb785ef2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "063c5889-e7a8-474b-a61d-2b3f963b6e7e"], ["organization_id", "d3b70294-581d-43de-89ae-b47bdb785ef2"], ["created_at", "2015-07-06 21:25:08.838106"], ["updated_at", "2015-07-06 21:25:08.838106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:08.842253') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ffe33800-e1e6-4f1b-878d-7f1f3ca26a52"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:08.844522"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:08.845501"], ["id", "ffe33800-e1e6-4f1b-878d-7f1f3ca26a52"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5a13432-0861-4830-adeb-743197520bcd"]] Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f5a13432-0861-4830-adeb-743197520bcd' LIMIT 1 [["organization_id", "d3b70294-581d-43de-89ae-b47bdb785ef2"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "d3b70294-581d-43de-89ae-b47bdb785ef2"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "f5a13432-0861-4830-adeb-743197520bcd"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "063c5889-e7a8-474b-a61d-2b3f963b6e7e"]] Completed 200 OK in 19ms (Views: 5.0ms | ActiveRecord: 2.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$PsqjEYDVtszgC/4g0.dABunFr1wEe1i4BryzNYJEIROoKB96ixtKy"], ["created_at", "2015-07-06 21:25:08.871740"], ["updated_at", "2015-07-06 21:25:08.871740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$wvXoAep/lhNTjki.NUf66ePMyxKd.7FNzSNdclMc4ZGikLIPl1oce"], ["created_at", "2015-07-06 21:25:08.877214"], ["updated_at", "2015-07-06 21:25:08.877214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.878681"], ["user_id", "37c59ac9-a831-4767-8023-0b4e904b66fd"], ["created_at", "2015-07-06 21:25:08.879274"], ["updated_at", "2015-07-06 21:25:08.879274"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.883907"], ["updated_at", "2015-07-06 21:25:08.883907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37c59ac9-a831-4767-8023-0b4e904b66fd' AND "clubhouse_memberships"."organization_id" = 'dddd3417-0b8e-42d1-aea1-09e669fd8a24') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37c59ac9-a831-4767-8023-0b4e904b66fd"], ["organization_id", "dddd3417-0b8e-42d1-aea1-09e669fd8a24"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.887848"], ["updated_at", "2015-07-06 21:25:08.887848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3e19af36-f172-466f-9b2b-5b59f209cdbe' AND "clubhouse_memberships"."organization_id" = 'dddd3417-0b8e-42d1-aea1-09e669fd8a24') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "3e19af36-f172-466f-9b2b-5b59f209cdbe"], ["organization_id", "dddd3417-0b8e-42d1-aea1-09e669fd8a24"], ["created_at", "2015-07-06 21:25:08.891243"], ["updated_at", "2015-07-06 21:25:08.891243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$62iKAVZjBBRtBkHsGqX.6ejeGPf2eXH7NeaVOr0A5Jk4hUQ1eh/ga"], ["created_at", "2015-07-06 21:25:08.900503"], ["updated_at", "2015-07-06 21:25:08.900503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$lZLUIyOfVyafmXfGNmCZ3OYlggMnlL3ef4AL5S91/vinhkmiVCHAy"], ["created_at", "2015-07-06 21:25:08.906241"], ["updated_at", "2015-07-06 21:25:08.906241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.908133"], ["user_id", "bf6a3d60-c094-418c-a190-60323b17c7e7"], ["created_at", "2015-07-06 21:25:08.908737"], ["updated_at", "2015-07-06 21:25:08.908737"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.912736"], ["updated_at", "2015-07-06 21:25:08.912736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bf6a3d60-c094-418c-a190-60323b17c7e7' AND "clubhouse_memberships"."organization_id" = 'fc90a857-a104-4364-ac33-cc46395fe3a8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "bf6a3d60-c094-418c-a190-60323b17c7e7"], ["organization_id", "fc90a857-a104-4364-ac33-cc46395fe3a8"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.917956"], ["updated_at", "2015-07-06 21:25:08.917956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ae80aa8d-294c-4a2e-8c46-d0422c4b105b' AND "clubhouse_memberships"."organization_id" = 'fc90a857-a104-4364-ac33-cc46395fe3a8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ae80aa8d-294c-4a2e-8c46-d0422c4b105b"], ["organization_id", "fc90a857-a104-4364-ac33-cc46395fe3a8"], ["created_at", "2015-07-06 21:25:08.921565"], ["updated_at", "2015-07-06 21:25:08.921565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$Rir0iaoQ9ItXHO4ySzzqluc6XJBi6GhW6ICLTWFSmH4ExNaPya.eO"], ["created_at", "2015-07-06 21:25:08.931007"], ["updated_at", "2015-07-06 21:25:08.931007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$3R.pTsi7xjbl86LiBP.l4eCMKV47WwNutWrOfF5MCQnFmAbOUk8EO"], ["created_at", "2015-07-06 21:25:08.937297"], ["updated_at", "2015-07-06 21:25:08.937297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:08.940158"], ["user_id", "ad37cd4a-3c56-4739-8514-8a10b639df01"], ["created_at", "2015-07-06 21:25:08.941499"], ["updated_at", "2015-07-06 21:25:08.941499"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:08.949316"], ["updated_at", "2015-07-06 21:25:08.949316"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ad37cd4a-3c56-4739-8514-8a10b639df01' AND "clubhouse_memberships"."organization_id" = '99788cad-0677-491f-a5c1-cb7899de616c') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ad37cd4a-3c56-4739-8514-8a10b639df01"], ["organization_id", "99788cad-0677-491f-a5c1-cb7899de616c"], ["admin", "t"], ["created_at", "2015-07-06 21:25:08.959387"], ["updated_at", "2015-07-06 21:25:08.959387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '70898162-c26f-4d9a-a33b-db0a37e18ea6' AND "clubhouse_memberships"."organization_id" = '99788cad-0677-491f-a5c1-cb7899de616c') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "70898162-c26f-4d9a-a33b-db0a37e18ea6"], ["organization_id", "99788cad-0677-491f-a5c1-cb7899de616c"], ["created_at", "2015-07-06 21:25:08.966580"], ["updated_at", "2015-07-06 21:25:08.966580"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/70c8ece6-2e13-414b-b138-20c74ed0fac1" for 127.0.0.1 at 2015-07-06 14:25:08 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"70c8ece6-2e13-414b-b138-20c74ed0fac1", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:08.973954') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a0bea650-c96f-4c74-b28a-8e499284f13c"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:08.980382"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:08.992414"], ["id", "a0bea650-c96f-4c74-b28a-8e499284f13c"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (1.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "70c8ece6-2e13-414b-b138-20c74ed0fac1"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad37cd4a-3c56-4739-8514-8a10b639df01"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "99788cad-0677-491f-a5c1-cb7899de616c"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ad37cd4a-3c56-4739-8514-8a10b639df01' LIMIT 1 [["organization_id", "99788cad-0677-491f-a5c1-cb7899de616c"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "ad37cd4a-3c56-4739-8514-8a10b639df01"]] Completed 200 OK in 41ms (Views: 2.0ms | ActiveRecord: 3.8ms)  (2.9ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$sUHJCkE8FHxzjG3QX7HX1.q/93OROyWyYp/C4LWLm0LGAPHTHDdf."], ["created_at", "2015-07-06 21:25:09.040347"], ["updated_at", "2015-07-06 21:25:09.040347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (1.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$PZLwjuTsujUMZ4iAonUfP.wauTR0Gg6fTJm9YGx9tiebElfv/9F5a"], ["created_at", "2015-07-06 21:25:09.048338"], ["updated_at", "2015-07-06 21:25:09.048338"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.054768"], ["user_id", "1ac76ec8-3b90-4d0e-b2e9-2588432c6186"], ["created_at", "2015-07-06 21:25:09.056858"], ["updated_at", "2015-07-06 21:25:09.056858"], ["client", "App"]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.074950"], ["updated_at", "2015-07-06 21:25:09.074950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1ac76ec8-3b90-4d0e-b2e9-2588432c6186' AND "clubhouse_memberships"."organization_id" = '39be956f-e880-446c-9bdf-f072c6859948') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1ac76ec8-3b90-4d0e-b2e9-2588432c6186"], ["organization_id", "39be956f-e880-446c-9bdf-f072c6859948"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.083167"], ["updated_at", "2015-07-06 21:25:09.083167"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cb8dc34e-206e-42d6-b42f-af9d589022f0' AND "clubhouse_memberships"."organization_id" = '39be956f-e880-446c-9bdf-f072c6859948') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "cb8dc34e-206e-42d6-b42f-af9d589022f0"], ["organization_id", "39be956f-e880-446c-9bdf-f072c6859948"], ["created_at", "2015-07-06 21:25:09.092787"], ["updated_at", "2015-07-06 21:25:09.092787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/15ec6348-8370-4b38-93f4-ad56cf1c1d0d" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"15ec6348-8370-4b38-93f4-ad56cf1c1d0d", "membership"=>{"admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.099369') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9598ea67-34c5-4c7d-9625-8a66e55b1937"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.101607"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.102765"], ["id", "9598ea67-34c5-4c7d-9625-8a66e55b1937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "15ec6348-8370-4b38-93f4-ad56cf1c1d0d"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1ac76ec8-3b90-4d0e-b2e9-2588432c6186"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "39be956f-e880-446c-9bdf-f072c6859948"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '1ac76ec8-3b90-4d0e-b2e9-2588432c6186' LIMIT 1 [["organization_id", "39be956f-e880-446c-9bdf-f072c6859948"], ["admin", "t"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cb8dc34e-206e-42d6-b42f-af9d589022f0"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cb8dc34e-206e-42d6-b42f-af9d589022f0' AND "clubhouse_memberships"."id" != '15ec6348-8370-4b38-93f4-ad56cf1c1d0d' AND "clubhouse_memberships"."organization_id" = '39be956f-e880-446c-9bdf-f072c6859948') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:25:09.114201"], ["id", "15ec6348-8370-4b38-93f4-ad56cf1c1d0d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 1.0ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$DvLGkUTl2oZQLagiewkwj.ujwUr7/b0f9toj8Eh1HgawRjls.Z192"], ["created_at", "2015-07-06 21:25:09.128720"], ["updated_at", "2015-07-06 21:25:09.128720"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$ENPv4hlLSI6bDZuO67rZb.wOt5LRurXr3aDYFDAx2AR5twFMF0bsa"], ["created_at", "2015-07-06 21:25:09.150239"], ["updated_at", "2015-07-06 21:25:09.150239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.153308"], ["user_id", "630623c7-70d4-488b-a1ee-229c6ae99176"], ["created_at", "2015-07-06 21:25:09.168972"], ["updated_at", "2015-07-06 21:25:09.168972"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.179905"], ["updated_at", "2015-07-06 21:25:09.179905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '630623c7-70d4-488b-a1ee-229c6ae99176' AND "clubhouse_memberships"."organization_id" = '685dbc31-436c-4686-bf43-3ff6701c9c1f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "630623c7-70d4-488b-a1ee-229c6ae99176"], ["organization_id", "685dbc31-436c-4686-bf43-3ff6701c9c1f"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.185491"], ["updated_at", "2015-07-06 21:25:09.185491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '862a1e83-498c-4018-8fce-6fbd51bdd691' AND "clubhouse_memberships"."organization_id" = '685dbc31-436c-4686-bf43-3ff6701c9c1f') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "862a1e83-498c-4018-8fce-6fbd51bdd691"], ["organization_id", "685dbc31-436c-4686-bf43-3ff6701c9c1f"], ["created_at", "2015-07-06 21:25:09.193272"], ["updated_at", "2015-07-06 21:25:09.193272"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$OUyxo8uaCFXsFcL/T0HntuC/dPrp8pQM2nEqgsJGf5v/jqdY.mXk2"], ["created_at", "2015-07-06 21:25:09.206302"], ["updated_at", "2015-07-06 21:25:09.206302"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$IxbtJGMCYFxj1FjZDoR6KuBX4aDCDhHku6b9JW14FWCfi94hIV9ui"], ["created_at", "2015-07-06 21:25:09.215850"], ["updated_at", "2015-07-06 21:25:09.215850"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.218468"], ["user_id", "574044fd-79b4-4163-900a-e7c64468822a"], ["created_at", "2015-07-06 21:25:09.219915"], ["updated_at", "2015-07-06 21:25:09.219915"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.227746"], ["updated_at", "2015-07-06 21:25:09.227746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '574044fd-79b4-4163-900a-e7c64468822a' AND "clubhouse_memberships"."organization_id" = '56dad11e-d528-4088-ac1c-2f1bf6ddabcb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "574044fd-79b4-4163-900a-e7c64468822a"], ["organization_id", "56dad11e-d528-4088-ac1c-2f1bf6ddabcb"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.239986"], ["updated_at", "2015-07-06 21:25:09.239986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '27b04ed4-60b1-4b57-af7d-8a91a6feae83' AND "clubhouse_memberships"."organization_id" = '56dad11e-d528-4088-ac1c-2f1bf6ddabcb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "27b04ed4-60b1-4b57-af7d-8a91a6feae83"], ["organization_id", "56dad11e-d528-4088-ac1c-2f1bf6ddabcb"], ["created_at", "2015-07-06 21:25:09.244399"], ["updated_at", "2015-07-06 21:25:09.244399"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/56dad11e-d528-4088-ac1c-2f1bf6ddabcb/memberships" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"56dad11e-d528-4088-ac1c-2f1bf6ddabcb", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.248806') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bf71d091-7a32-4559-83db-98ee735cb96b"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.250627"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.251845"], ["id", "bf71d091-7a32-4559-83db-98ee735cb96b"]]  (1.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "56dad11e-d528-4088-ac1c-2f1bf6ddabcb"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "574044fd-79b4-4163-900a-e7c64468822a"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '574044fd-79b4-4163-900a-e7c64468822a' LIMIT 1 [["organization_id", "56dad11e-d528-4088-ac1c-2f1bf6ddabcb"]] Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "56dad11e-d528-4088-ac1c-2f1bf6ddabcb"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "574044fd-79b4-4163-900a-e7c64468822a"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "27b04ed4-60b1-4b57-af7d-8a91a6feae83"]] Completed 200 OK in 21ms (Views: 6.7ms | ActiveRecord: 3.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$BNnbogWPFra1KDCxX.MQzO5FEWkvWmo529eUXk2Z1Bol67l8SwRNC"], ["created_at", "2015-07-06 21:25:09.280405"], ["updated_at", "2015-07-06 21:25:09.280405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$GZ5/T0stATI03bdZxLe4S.8UYrT.VE5.L4U9e/Rnfks4xQ49mNmIK"], ["created_at", "2015-07-06 21:25:09.288568"], ["updated_at", "2015-07-06 21:25:09.288568"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.291818"], ["user_id", "b3b2c2a4-1d74-4bf4-a55a-bd648bc3e8fd"], ["created_at", "2015-07-06 21:25:09.293229"], ["updated_at", "2015-07-06 21:25:09.293229"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.299400"], ["updated_at", "2015-07-06 21:25:09.299400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b3b2c2a4-1d74-4bf4-a55a-bd648bc3e8fd' AND "clubhouse_memberships"."organization_id" = '9ca1b47e-d39d-4dba-b935-c2777f2c0200') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b3b2c2a4-1d74-4bf4-a55a-bd648bc3e8fd"], ["organization_id", "9ca1b47e-d39d-4dba-b935-c2777f2c0200"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.304062"], ["updated_at", "2015-07-06 21:25:09.304062"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd628d550-867d-4d29-b260-1c972cd1716d' AND "clubhouse_memberships"."organization_id" = '9ca1b47e-d39d-4dba-b935-c2777f2c0200') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d628d550-867d-4d29-b260-1c972cd1716d"], ["organization_id", "9ca1b47e-d39d-4dba-b935-c2777f2c0200"], ["created_at", "2015-07-06 21:25:09.310135"], ["updated_at", "2015-07-06 21:25:09.310135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 39"], ["email", "user.39@example.com"], ["password_digest", "$2a$04$IqBjIQmmL6UiIeSRAmh3UeVztl4vXxIFLYdNlWatOuqbVdXElt7y6"], ["created_at", "2015-07-06 21:25:09.325166"], ["updated_at", "2015-07-06 21:25:09.325166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.327415"], ["user_id", "d66fca59-03dc-4677-b7b5-df55bd7b77d4"], ["created_at", "2015-07-06 21:25:09.328222"], ["updated_at", "2015-07-06 21:25:09.328222"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.334384"], ["updated_at", "2015-07-06 21:25:09.334384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd66fca59-03dc-4677-b7b5-df55bd7b77d4' AND "clubhouse_memberships"."organization_id" = '51968fdb-38e2-4b3d-aaa9-6b6a85fe7073') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d66fca59-03dc-4677-b7b5-df55bd7b77d4"], ["organization_id", "51968fdb-38e2-4b3d-aaa9-6b6a85fe7073"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.339051"], ["updated_at", "2015-07-06 21:25:09.339051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 40"], ["email", "user.40@example.com"], ["password_digest", "$2a$04$iZOQV3j.l72vB1EFDIwoXeLmhYFW9vvrgl/hEhR4mQ1JgqMvsokIy"], ["created_at", "2015-07-06 21:25:09.353564"], ["updated_at", "2015-07-06 21:25:09.353564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.355532"], ["user_id", "20222486-39e3-4326-bdee-d42ce8425994"], ["created_at", "2015-07-06 21:25:09.356302"], ["updated_at", "2015-07-06 21:25:09.356302"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.361562"], ["updated_at", "2015-07-06 21:25:09.361562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '20222486-39e3-4326-bdee-d42ce8425994' AND "clubhouse_memberships"."organization_id" = 'ea94aa71-fc80-42aa-a9aa-885f257636f2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "20222486-39e3-4326-bdee-d42ce8425994"], ["organization_id", "ea94aa71-fc80-42aa-a9aa-885f257636f2"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.366909"], ["updated_at", "2015-07-06 21:25:09.366909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-2" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-2", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.370396') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c6024f2a-0e77-436b-9bb1-bce821d183a3"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.371978"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.372737"], ["id", "c6024f2a-0e77-436b-9bb1-bce821d183a3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-2"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "20222486-39e3-4326-bdee-d42ce8425994"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '20222486-39e3-4326-bdee-d42ce8425994' LIMIT 1 [["organization_id", "ea94aa71-fc80-42aa-a9aa-885f257636f2"]] Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 41"], ["email", "user.41@example.com"], ["password_digest", "$2a$04$fYLadTLmQ8dykDY.XZA0.eg.iuU/F1ApKeVrNOQJ8DJLdvhRVns9y"], ["created_at", "2015-07-06 21:25:09.388462"], ["updated_at", "2015-07-06 21:25:09.388462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.390663"], ["user_id", "dcd97bd7-6f37-438e-a196-a8015b84955a"], ["created_at", "2015-07-06 21:25:09.391344"], ["updated_at", "2015-07-06 21:25:09.391344"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.396356"], ["updated_at", "2015-07-06 21:25:09.396356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dcd97bd7-6f37-438e-a196-a8015b84955a' AND "clubhouse_memberships"."organization_id" = '962c4917-89eb-432c-b7e6-f1fd9c0d3590') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "dcd97bd7-6f37-438e-a196-a8015b84955a"], ["organization_id", "962c4917-89eb-432c-b7e6-f1fd9c0d3590"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.400964"], ["updated_at", "2015-07-06 21:25:09.400964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 42"], ["email", "user.42@example.com"], ["password_digest", "$2a$04$hXHYyO8W.7uczpk18pSzWe6mxUvnbhKaRzr7yBvNBA3ebi9.MFujW"], ["created_at", "2015-07-06 21:25:09.410795"], ["updated_at", "2015-07-06 21:25:09.410795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.413488"], ["user_id", "64b296d4-66f8-4ba0-aa86-056c8c606238"], ["created_at", "2015-07-06 21:25:09.414508"], ["updated_at", "2015-07-06 21:25:09.414508"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.425143"], ["updated_at", "2015-07-06 21:25:09.425143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '64b296d4-66f8-4ba0-aa86-056c8c606238' AND "clubhouse_memberships"."organization_id" = '6cce0f41-0049-47da-8957-272a676c6cc1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "64b296d4-66f8-4ba0-aa86-056c8c606238"], ["organization_id", "6cce0f41-0049-47da-8957-272a676c6cc1"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.429994"], ["updated_at", "2015-07-06 21:25:09.429994"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/6cce0f41-0049-47da-8957-272a676c6cc1" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"6cce0f41-0049-47da-8957-272a676c6cc1", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.8ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.434478') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bbabfbdb-d8fd-4727-bdfc-8babb9c30ca9"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.438649"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.439673"], ["id", "bbabfbdb-d8fd-4727-bdfc-8babb9c30ca9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "6cce0f41-0049-47da-8957-272a676c6cc1"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "64b296d4-66f8-4ba0-aa86-056c8c606238"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '64b296d4-66f8-4ba0-aa86-056c8c606238' LIMIT 1 [["organization_id", "6cce0f41-0049-47da-8957-272a676c6cc1"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '6cce0f41-0049-47da-8957-272a676c6cc1') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 24ms (ActiveRecord: 2.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 43"], ["email", "user.43@example.com"], ["password_digest", "$2a$04$eMFlaQpzP70tWXkNwsYUG.d9s6oKgWxFxw4/gzSUUL5JJycyLFfQS"], ["created_at", "2015-07-06 21:25:09.464744"], ["updated_at", "2015-07-06 21:25:09.464744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.466617"], ["user_id", "d545bae1-d191-46b2-a66f-9848100cc969"], ["created_at", "2015-07-06 21:25:09.467250"], ["updated_at", "2015-07-06 21:25:09.467250"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.471905"], ["updated_at", "2015-07-06 21:25:09.471905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd545bae1-d191-46b2-a66f-9848100cc969' AND "clubhouse_memberships"."organization_id" = 'c5796060-b946-48ad-978e-a05698105c37') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d545bae1-d191-46b2-a66f-9848100cc969"], ["organization_id", "c5796060-b946-48ad-978e-a05698105c37"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.475209"], ["updated_at", "2015-07-06 21:25:09.475209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/c5796060-b946-48ad-978e-a05698105c37" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"c5796060-b946-48ad-978e-a05698105c37", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.478507') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bc82cb6b-75d4-44f2-81d8-a963effc6ef7"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.480285"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.481083"], ["id", "bc82cb6b-75d4-44f2-81d8-a963effc6ef7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "c5796060-b946-48ad-978e-a05698105c37"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d545bae1-d191-46b2-a66f-9848100cc969"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd545bae1-d191-46b2-a66f-9848100cc969' LIMIT 1 [["organization_id", "c5796060-b946-48ad-978e-a05698105c37"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'c5796060-b946-48ad-978e-a05698105c37') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:25:09.490611"], ["id", "c5796060-b946-48ad-978e-a05698105c37"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 0.9ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 44"], ["email", "user.44@example.com"], ["password_digest", "$2a$04$.wjYd7Xn6umyZOno9SFP2.qM3iK6WXsRYY3RfFL1GxSJ8eZnWiSAG"], ["created_at", "2015-07-06 21:25:09.502973"], ["updated_at", "2015-07-06 21:25:09.502973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.504783"], ["user_id", "1d9050e0-17db-4d00-84e9-719162332555"], ["created_at", "2015-07-06 21:25:09.505403"], ["updated_at", "2015-07-06 21:25:09.505403"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.509528"], ["updated_at", "2015-07-06 21:25:09.509528"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d9050e0-17db-4d00-84e9-719162332555' AND "clubhouse_memberships"."organization_id" = '094da4f0-5af4-4f25-90c7-9d0a4d491ea7') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1d9050e0-17db-4d00-84e9-719162332555"], ["organization_id", "094da4f0-5af4-4f25-90c7-9d0a4d491ea7"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.513710"], ["updated_at", "2015-07-06 21:25:09.513710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 45"], ["email", "user.45@example.com"], ["password_digest", "$2a$04$Qx4tcS7ylzlMiwOBqxztU.EG71.oqCKea22Co4OSnp82PKmv3jnkK"], ["created_at", "2015-07-06 21:25:09.524487"], ["updated_at", "2015-07-06 21:25:09.524487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.526169"], ["user_id", "3f57c3c4-df09-46fe-ba16-470c271a66e0"], ["created_at", "2015-07-06 21:25:09.527199"], ["updated_at", "2015-07-06 21:25:09.527199"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.536643"], ["updated_at", "2015-07-06 21:25:09.536643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f57c3c4-df09-46fe-ba16-470c271a66e0' AND "clubhouse_memberships"."organization_id" = '92efbad5-8d55-4fd0-b80a-e23804a8b71e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f57c3c4-df09-46fe-ba16-470c271a66e0"], ["organization_id", "92efbad5-8d55-4fd0-b80a-e23804a8b71e"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.541020"], ["updated_at", "2015-07-06 21:25:09.541020"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-7" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-7", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.545866') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e874de91-9fb7-41fa-a07a-db153ceb358f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.548184"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.549007"], ["id", "e874de91-9fb7-41fa-a07a-db153ceb358f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.6ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-7"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3f57c3c4-df09-46fe-ba16-470c271a66e0"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '3f57c3c4-df09-46fe-ba16-470c271a66e0' LIMIT 1 [["organization_id", "92efbad5-8d55-4fd0-b80a-e23804a8b71e"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '92efbad5-8d55-4fd0-b80a-e23804a8b71e') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 16ms (ActiveRecord: 2.5ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 46"], ["email", "user.46@example.com"], ["password_digest", "$2a$04$KLUftFCgUZm3acQfY8Ip3.efGt3UJtd1ShmEKgCjdYSO5GkQSbAy6"], ["created_at", "2015-07-06 21:25:09.569049"], ["updated_at", "2015-07-06 21:25:09.569049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.571319"], ["user_id", "e2516005-9d5f-47a8-8692-341b414a3b06"], ["created_at", "2015-07-06 21:25:09.572024"], ["updated_at", "2015-07-06 21:25:09.572024"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.590005"], ["updated_at", "2015-07-06 21:25:09.590005"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e2516005-9d5f-47a8-8692-341b414a3b06' AND "clubhouse_memberships"."organization_id" = '389ae89c-9b06-45e2-a0b5-5c6130a7b262') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e2516005-9d5f-47a8-8692-341b414a3b06"], ["organization_id", "389ae89c-9b06-45e2-a0b5-5c6130a7b262"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.598157"], ["updated_at", "2015-07-06 21:25:09.598157"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-8" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-8", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.605374') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d222f306-a589-426d-a363-eae6ece7e41e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.606759"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.607510"], ["id", "d222f306-a589-426d-a363-eae6ece7e41e"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-8"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e2516005-9d5f-47a8-8692-341b414a3b06"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e2516005-9d5f-47a8-8692-341b414a3b06' LIMIT 1 [["organization_id", "389ae89c-9b06-45e2-a0b5-5c6130a7b262"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '389ae89c-9b06-45e2-a0b5-5c6130a7b262') LIMIT 1 SQL (0.5ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:25:09.621744"], ["id", "389ae89c-9b06-45e2-a0b5-5c6130a7b262"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 0.6ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 47"], ["email", "user.47@example.com"], ["password_digest", "$2a$04$ctuhKm6BNlLIDQSq8CzGbO/CJBThIytHbkemlyw3XO72DRHLaoCE."], ["created_at", "2015-07-06 21:25:09.633502"], ["updated_at", "2015-07-06 21:25:09.633502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.635627"], ["user_id", "9bc81d6a-282c-476a-b4d0-39a273dc8d24"], ["created_at", "2015-07-06 21:25:09.636234"], ["updated_at", "2015-07-06 21:25:09.636234"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.641009"], ["updated_at", "2015-07-06 21:25:09.641009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9bc81d6a-282c-476a-b4d0-39a273dc8d24' AND "clubhouse_memberships"."organization_id" = '23c9d79d-6b04-4f2b-ad4d-0496916f6e78') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9bc81d6a-282c-476a-b4d0-39a273dc8d24"], ["organization_id", "23c9d79d-6b04-4f2b-ad4d-0496916f6e78"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.644319"], ["updated_at", "2015-07-06 21:25:09.644319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 48"], ["email", "user.48@example.com"], ["password_digest", "$2a$04$CAOKFJVWckAgkUdN/go6BuuqasLEB9BuLWxgA9Of2FX3cpf949rQS"], ["created_at", "2015-07-06 21:25:09.654242"], ["updated_at", "2015-07-06 21:25:09.654242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.656198"], ["user_id", "35311a60-7d55-4277-b255-25509db143e5"], ["created_at", "2015-07-06 21:25:09.657069"], ["updated_at", "2015-07-06 21:25:09.657069"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.662392"], ["updated_at", "2015-07-06 21:25:09.662392"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35311a60-7d55-4277-b255-25509db143e5' AND "clubhouse_memberships"."organization_id" = '3dcfec83-517a-4ef8-849a-a803f8ae520d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35311a60-7d55-4277-b255-25509db143e5"], ["organization_id", "3dcfec83-517a-4ef8-849a-a803f8ae520d"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.668465"], ["updated_at", "2015-07-06 21:25:09.668465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.671839') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d116395e-589c-4789-a792-642a592cb7c4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.673622"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.674506"], ["id", "d116395e-589c-4789-a792-642a592cb7c4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35311a60-7d55-4277-b255-25509db143e5"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 21ms (ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 49"], ["email", "user.49@example.com"], ["password_digest", "$2a$04$BycGYkaNMihkgvRqEsh.ROGXMQH3M5Z5YFEo6PFm7ordkJHUfdVc."], ["created_at", "2015-07-06 21:25:09.699830"], ["updated_at", "2015-07-06 21:25:09.699830"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.701942"], ["user_id", "e5a05354-d279-48ce-9d75-fd8cdb669c73"], ["created_at", "2015-07-06 21:25:09.702562"], ["updated_at", "2015-07-06 21:25:09.702562"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.707460"], ["updated_at", "2015-07-06 21:25:09.707460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5a05354-d279-48ce-9d75-fd8cdb669c73' AND "clubhouse_memberships"."organization_id" = '60ed14c9-d8dd-4253-81f9-b3e130b5d144') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5a05354-d279-48ce-9d75-fd8cdb669c73"], ["organization_id", "60ed14c9-d8dd-4253-81f9-b3e130b5d144"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.710888"], ["updated_at", "2015-07-06 21:25:09.710888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.714515') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "78fa9cea-3c50-4f99-91a3-3aa817ceca13"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.716296"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.717579"], ["id", "78fa9cea-3c50-4f99-91a3-3aa817ceca13"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e5a05354-d279-48ce-9d75-fd8cdb669c73"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.725195"], ["updated_at", "2015-07-06 21:25:09.725195"]] Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e5a05354-d279-48ce-9d75-fd8cdb669c73' AND "clubhouse_memberships"."organization_id" = '84fa844d-0970-4936-89af-dcc3c8947b9c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e5a05354-d279-48ce-9d75-fd8cdb669c73"], ["admin", "t"], ["organization_id", "84fa844d-0970-4936-89af-dcc3c8947b9c"], ["created_at", "2015-07-06 21:25:09.729547"], ["updated_at", "2015-07-06 21:25:09.729547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 19ms (Views: 0.9ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 50"], ["email", "user.50@example.com"], ["password_digest", "$2a$04$a3wPUr4rqFdUJfXo0q767uOO8RHqI569QvbggyRlaMM4UmdDpu1Zy"], ["created_at", "2015-07-06 21:25:09.741663"], ["updated_at", "2015-07-06 21:25:09.741663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.743349"], ["user_id", "92ac01c1-fc7a-47dc-b9e4-fa39f6f1cb1d"], ["created_at", "2015-07-06 21:25:09.744007"], ["updated_at", "2015-07-06 21:25:09.744007"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.749692"], ["updated_at", "2015-07-06 21:25:09.749692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '92ac01c1-fc7a-47dc-b9e4-fa39f6f1cb1d' AND "clubhouse_memberships"."organization_id" = '3ce0199d-c157-4d97-9a36-708d7823180a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "92ac01c1-fc7a-47dc-b9e4-fa39f6f1cb1d"], ["organization_id", "3ce0199d-c157-4d97-9a36-708d7823180a"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.754562"], ["updated_at", "2015-07-06 21:25:09.754562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 51"], ["email", "user.51@example.com"], ["password_digest", "$2a$04$6NuE8/nxlUKYVFnQHChkb.whI6udzYNbwX8Shh4HwmwZDrnjfXA7m"], ["created_at", "2015-07-06 21:25:09.769981"], ["updated_at", "2015-07-06 21:25:09.769981"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.773875"], ["user_id", "0a99e6a5-b262-4f4c-9ef6-97b6369f96de"], ["created_at", "2015-07-06 21:25:09.775220"], ["updated_at", "2015-07-06 21:25:09.775220"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.783355"], ["updated_at", "2015-07-06 21:25:09.783355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0a99e6a5-b262-4f4c-9ef6-97b6369f96de' AND "clubhouse_memberships"."organization_id" = '4d06a5c3-b2c3-4de2-baec-5bccbcaf8aeb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0a99e6a5-b262-4f4c-9ef6-97b6369f96de"], ["organization_id", "4d06a5c3-b2c3-4de2-baec-5bccbcaf8aeb"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.787713"], ["updated_at", "2015-07-06 21:25:09.787713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-13" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-13", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.790809') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4049c66a-b864-48e2-b468-fc1dcd74b1ea"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.792312"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.793276"], ["id", "4049c66a-b864-48e2-b468-fc1dcd74b1ea"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0a99e6a5-b262-4f4c-9ef6-97b6369f96de"]] Completed 200 OK in 7ms (ActiveRecord: 1.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 52"], ["email", "user.52@example.com"], ["password_digest", "$2a$04$NRmGNytJ7GCEaM5F8ABWquXv/XiPNZEazk12uvdwZHUnOdNPLCNKy"], ["created_at", "2015-07-06 21:25:09.806026"], ["updated_at", "2015-07-06 21:25:09.806026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.807941"], ["user_id", "df1782a1-4e4b-4da0-b45f-b6f85698e8d6"], ["created_at", "2015-07-06 21:25:09.808546"], ["updated_at", "2015-07-06 21:25:09.808546"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.815136"], ["updated_at", "2015-07-06 21:25:09.815136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'df1782a1-4e4b-4da0-b45f-b6f85698e8d6' AND "clubhouse_memberships"."organization_id" = '9f43d827-1e9e-4c2b-8992-6d1d66644586') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "df1782a1-4e4b-4da0-b45f-b6f85698e8d6"], ["organization_id", "9f43d827-1e9e-4c2b-8992-6d1d66644586"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.823436"], ["updated_at", "2015-07-06 21:25:09.823436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.828313') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f653361e-93f1-465c-8c6a-0326d9dab056"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.829995"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.831342"], ["id", "f653361e-93f1-465c-8c6a-0326d9dab056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 8ms (ActiveRecord: 1.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 53"], ["email", "user.53@example.com"], ["password_digest", "$2a$04$udWLG0pQbHPXN8IeqKbjyOkOxm5D.IeJKsc2a.Rk9jalMsiRzP6ZK"], ["created_at", "2015-07-06 21:25:09.846801"], ["updated_at", "2015-07-06 21:25:09.846801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.851364"], ["user_id", "600f7b74-f7af-4b09-9044-9b0724091fbe"], ["created_at", "2015-07-06 21:25:09.852139"], ["updated_at", "2015-07-06 21:25:09.852139"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.859423"], ["updated_at", "2015-07-06 21:25:09.859423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '600f7b74-f7af-4b09-9044-9b0724091fbe' AND "clubhouse_memberships"."organization_id" = 'b0bbfd43-c5d0-4820-91e2-cdb39f333f27') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "600f7b74-f7af-4b09-9044-9b0724091fbe"], ["organization_id", "b0bbfd43-c5d0-4820-91e2-cdb39f333f27"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.863535"], ["updated_at", "2015-07-06 21:25:09.863535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 54"], ["email", "user.54@example.com"], ["password_digest", "$2a$04$Lk916UjtOqnu3MAz.mEaVOHZbxLkg9l5igDeDH4xjvvD3V43odxyq"], ["created_at", "2015-07-06 21:25:09.876894"], ["updated_at", "2015-07-06 21:25:09.876894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.878749"], ["user_id", "5850ecb6-63c7-417a-a450-ab29670c9fe3"], ["created_at", "2015-07-06 21:25:09.879357"], ["updated_at", "2015-07-06 21:25:09.879357"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.884639"], ["updated_at", "2015-07-06 21:25:09.884639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5850ecb6-63c7-417a-a450-ab29670c9fe3' AND "clubhouse_memberships"."organization_id" = 'bb6cf651-0a31-4265-bbf0-e71845618fe6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5850ecb6-63c7-417a-a450-ab29670c9fe3"], ["organization_id", "bb6cf651-0a31-4265-bbf0-e71845618fe6"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.888346"], ["updated_at", "2015-07-06 21:25:09.888346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/bb6cf651-0a31-4265-bbf0-e71845618fe6" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"bb6cf651-0a31-4265-bbf0-e71845618fe6", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.891838') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1cf3f1aa-f782-4bed-abe6-9b5edf4d279e"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.893296"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.894088"], ["id", "1cf3f1aa-f782-4bed-abe6-9b5edf4d279e"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "bb6cf651-0a31-4265-bbf0-e71845618fe6"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "5850ecb6-63c7-417a-a450-ab29670c9fe3"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '5850ecb6-63c7-417a-a450-ab29670c9fe3' LIMIT 1 [["organization_id", "bb6cf651-0a31-4265-bbf0-e71845618fe6"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "bb6cf651-0a31-4265-bbf0-e71845618fe6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 55"], ["email", "user.55@example.com"], ["password_digest", "$2a$04$hrkeAgdMxSdVNdtX4cNph.nEt6bjtDPCrGqch1yBUlxoUmecOwq3W"], ["created_at", "2015-07-06 21:25:09.911082"], ["updated_at", "2015-07-06 21:25:09.911082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.912747"], ["user_id", "0ecf461d-9984-482c-ae73-15bdc2879663"], ["created_at", "2015-07-06 21:25:09.913531"], ["updated_at", "2015-07-06 21:25:09.913531"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.918613"], ["updated_at", "2015-07-06 21:25:09.918613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ecf461d-9984-482c-ae73-15bdc2879663' AND "clubhouse_memberships"."organization_id" = 'c19090fa-c280-4157-8668-c7eacea90ccc') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ecf461d-9984-482c-ae73-15bdc2879663"], ["organization_id", "c19090fa-c280-4157-8668-c7eacea90ccc"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.921882"], ["updated_at", "2015-07-06 21:25:09.921882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 56"], ["email", "user.56@example.com"], ["password_digest", "$2a$04$UtZyCLfGbAwhahZMuqyZ8eSrwO80ps1h/BgNUqPwHcSE.Pwn3R43W"], ["created_at", "2015-07-06 21:25:09.929005"], ["updated_at", "2015-07-06 21:25:09.929005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.934378"], ["updated_at", "2015-07-06 21:25:09.934378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fef58df8-cf38-4ed4-91d6-6c47ee7e7afe' AND "clubhouse_memberships"."organization_id" = 'af1eea6f-937e-4b77-b91b-045b2968a579') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fef58df8-cf38-4ed4-91d6-6c47ee7e7afe"], ["organization_id", "af1eea6f-937e-4b77-b91b-045b2968a579"], ["created_at", "2015-07-06 21:25:09.938011"], ["updated_at", "2015-07-06 21:25:09.938011"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 57"], ["email", "user.57@example.com"], ["password_digest", "$2a$04$s9mIxQ5IhUGlzVbzFMKRK./uUZdlMdhnq6Er8VYaJUY6ZYu8uKP4."], ["created_at", "2015-07-06 21:25:09.952477"], ["updated_at", "2015-07-06 21:25:09.952477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:09.954280"], ["user_id", "9a684dd1-a660-4524-b559-1f6d74d04064"], ["created_at", "2015-07-06 21:25:09.955100"], ["updated_at", "2015-07-06 21:25:09.955100"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.959757"], ["updated_at", "2015-07-06 21:25:09.959757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9a684dd1-a660-4524-b559-1f6d74d04064' AND "clubhouse_memberships"."organization_id" = 'ab270a7d-41a3-4eb1-ac2b-0c676ad6af28') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9a684dd1-a660-4524-b559-1f6d74d04064"], ["organization_id", "ab270a7d-41a3-4eb1-ac2b-0c676ad6af28"], ["admin", "t"], ["created_at", "2015-07-06 21:25:09.963036"], ["updated_at", "2015-07-06 21:25:09.963036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 58"], ["email", "user.58@example.com"], ["password_digest", "$2a$04$a5wpDAG3lX3zi8ZuMwVIyuYZDfov6P4uyoWlzjq10vlWOFELSGPR."], ["created_at", "2015-07-06 21:25:09.969802"], ["updated_at", "2015-07-06 21:25:09.969802"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:09.975122"], ["updated_at", "2015-07-06 21:25:09.975122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fe3eaf1b-06e5-46aa-9ba9-4a096ac2ce4c' AND "clubhouse_memberships"."organization_id" = 'ccf6ba1c-e0f5-4937-a161-73e9110d5fed') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fe3eaf1b-06e5-46aa-9ba9-4a096ac2ce4c"], ["organization_id", "ccf6ba1c-e0f5-4937-a161-73e9110d5fed"], ["created_at", "2015-07-06 21:25:09.978727"], ["updated_at", "2015-07-06 21:25:09.978727"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:25:09 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:09.986267') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d0686f3c-d29d-4022-9d0a-e4c57358c648"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:09.988455"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:09.989667"], ["id", "d0686f3c-d29d-4022-9d0a-e4c57358c648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9a684dd1-a660-4524-b559-1f6d74d04064"]] Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "9a684dd1-a660-4524-b559-1f6d74d04064"]] Completed 200 OK in 12ms (Views: 3.3ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 59"], ["email", "user.59@example.com"], ["password_digest", "$2a$04$RJmJVuv1iAZNna0dUDnkqeQzoMPhYM4ESavXVanWka7LDVdVVs8Ci"], ["created_at", "2015-07-06 21:25:10.007660"], ["updated_at", "2015-07-06 21:25:10.007660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:10.010504"], ["user_id", "634ebeef-81e6-4b41-8ee2-30a5096ed0e0"], ["created_at", "2015-07-06 21:25:10.011400"], ["updated_at", "2015-07-06 21:25:10.011400"], ["client", "App"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.017727"], ["updated_at", "2015-07-06 21:25:10.017727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '634ebeef-81e6-4b41-8ee2-30a5096ed0e0' AND "clubhouse_memberships"."organization_id" = '8ff60841-ba4e-4f53-b027-646325d8ff2c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "634ebeef-81e6-4b41-8ee2-30a5096ed0e0"], ["organization_id", "8ff60841-ba4e-4f53-b027-646325d8ff2c"], ["admin", "t"], ["created_at", "2015-07-06 21:25:10.022076"], ["updated_at", "2015-07-06 21:25:10.022076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-21" for 127.0.0.1 at 2015-07-06 14:25:10 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-21", "organization"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:10.026030') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "1c8bdbc8-6a6a-4ec0-b810-121f054a7fa3"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:10.028593"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:10.030462"], ["id", "1c8bdbc8-6a6a-4ec0-b810-121f054a7fa3"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (1.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-21"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "634ebeef-81e6-4b41-8ee2-30a5096ed0e0"]] Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '634ebeef-81e6-4b41-8ee2-30a5096ed0e0' LIMIT 1 [["organization_id", "8ff60841-ba4e-4f53-b027-646325d8ff2c"], ["admin", "t"]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "8ff60841-ba4e-4f53-b027-646325d8ff2c"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 24ms (ActiveRecord: 7.2ms)  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 60"], ["email", "user.60@example.com"], ["password_digest", "$2a$04$3VmqhoINgxM1/j/D.XA0Eux.SWPFKZ905uJOad.bAVaoKPCLJfuqO"], ["created_at", "2015-07-06 21:25:10.059585"], ["updated_at", "2015-07-06 21:25:10.059585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:10.065665"], ["user_id", "76def56a-9b0c-483a-9c20-5e77ef515d59"], ["created_at", "2015-07-06 21:25:10.066416"], ["updated_at", "2015-07-06 21:25:10.066416"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.072341"], ["updated_at", "2015-07-06 21:25:10.072341"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76def56a-9b0c-483a-9c20-5e77ef515d59' AND "clubhouse_memberships"."organization_id" = 'd794e598-f9cf-4c59-9301-c72164d7e9a9') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "76def56a-9b0c-483a-9c20-5e77ef515d59"], ["organization_id", "d794e598-f9cf-4c59-9301-c72164d7e9a9"], ["admin", "t"], ["created_at", "2015-07-06 21:25:10.085553"], ["updated_at", "2015-07-06 21:25:10.085553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:25:10 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 61"], ["email", "user.61@example.com"], ["password_digest", "$2a$04$.k/5qjxP/bWNwP4Aktd9nuBW9SrVJcVjTj4iuoTFb1Ll3mwh/gHDO"], ["created_at", "2015-07-06 21:25:10.108891"], ["updated_at", "2015-07-06 21:25:10.108891"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:10.117900"], ["user_id", "3bb9a122-3a13-4bfa-b8e8-9a10f5f6ce74"], ["created_at", "2015-07-06 21:25:10.119184"], ["updated_at", "2015-07-06 21:25:10.119184"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.129066"], ["updated_at", "2015-07-06 21:25:10.129066"]]  (2.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3bb9a122-3a13-4bfa-b8e8-9a10f5f6ce74' AND "clubhouse_memberships"."organization_id" = '3aa4f72c-56f0-4273-9519-f7d8e73eddc9') LIMIT 1 SQL (3.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3bb9a122-3a13-4bfa-b8e8-9a10f5f6ce74"], ["organization_id", "3aa4f72c-56f0-4273-9519-f7d8e73eddc9"], ["admin", "t"], ["created_at", "2015-07-06 21:25:10.148932"], ["updated_at", "2015-07-06 21:25:10.148932"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/3aa4f72c-56f0-4273-9519-f7d8e73eddc9" for 127.0.0.1 at 2015-07-06 14:25:10 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"3aa4f72c-56f0-4273-9519-f7d8e73eddc9", "organization"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:10.160749') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ec9eb153-c79f-4405-8e22-9dcd6fab9377"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:10.167245"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:10.170535"], ["id", "ec9eb153-c79f-4405-8e22-9dcd6fab9377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3aa4f72c-56f0-4273-9519-f7d8e73eddc9"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "3bb9a122-3a13-4bfa-b8e8-9a10f5f6ce74"]] Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3bb9a122-3a13-4bfa-b8e8-9a10f5f6ce74' LIMIT 1 [["organization_id", "3aa4f72c-56f0-4273-9519-f7d8e73eddc9"]] Completed 200 OK in 22ms (Views: 4.7ms | ActiveRecord: 2.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 62"], ["email", "user.62@example.com"], ["password_digest", "$2a$04$BOgKGyCImm09SWtVfTXaEOncXMoAOPvx/yatcOJbTE38rW0cqULVW"], ["created_at", "2015-07-06 21:25:10.196758"], ["updated_at", "2015-07-06 21:25:10.196758"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:10.200044"], ["user_id", "5d05f7c3-78d4-4c32-b7f7-e4176251b1b8"], ["created_at", "2015-07-06 21:25:10.200896"], ["updated_at", "2015-07-06 21:25:10.200896"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.211034"], ["updated_at", "2015-07-06 21:25:10.211034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5d05f7c3-78d4-4c32-b7f7-e4176251b1b8' AND "clubhouse_memberships"."organization_id" = '45b7b375-08b5-4ed6-badb-b01ece663b55') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5d05f7c3-78d4-4c32-b7f7-e4176251b1b8"], ["organization_id", "45b7b375-08b5-4ed6-badb-b01ece663b55"], ["admin", "t"], ["created_at", "2015-07-06 21:25:10.216629"], ["updated_at", "2015-07-06 21:25:10.216629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:25:10 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.449864"], ["updated_at", "2015-07-06 21:25:10.449864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '1683a6f2-d38d-458f-ace1-f4d17b864907') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "1683a6f2-d38d-458f-ace1-f4d17b864907"], ["created_at", "2015-07-06 21:25:10.455460"], ["updated_at", "2015-07-06 21:25:10.455460"], ["token", "Sx4fcX263eR96OFkcYsddzsgZT_XUFwp63f-AGgkTAg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.7ms) Clubhouse::Mailer#invitation: processed outbound mail in 44.5ms Sent mail to john@example.com (10.7ms) Date: Mon, 06 Jul 2015 14:25:10 -0700 From: from@example.com To: john@example.com Message-ID: <559af2367cb3f_10c473fcaf846020049026@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/Sx4fcX263eR96OFkcYsddzsgZT_XUFwp63f-AGgkTAg?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.522325"], ["updated_at", "2015-07-06 21:25:10.522325"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'ef4e3da7-b142-44c8-9416-17a0235da24a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "ef4e3da7-b142-44c8-9416-17a0235da24a"], ["created_at", "2015-07-06 21:25:10.528057"], ["updated_at", "2015-07-06 21:25:10.528057"], ["token", "WsYv8dhyfAiR0ypaiWXiIfO4MCkf97bMuogAAEpDZfE"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (1.9ms) Date: Mon, 06 Jul 2015 14:25:10 -0700 From: from@example.com To: john@example.com Message-ID: <559af23681ed2_10c473fcaf8460200491c7@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/WsYv8dhyfAiR0ypaiWXiIfO4MCkf97bMuogAAEpDZfE?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.541712"], ["updated_at", "2015-07-06 21:25:10.541712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'f193f0bb-8617-4500-8cd9-7682a2aed4fb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "f193f0bb-8617-4500-8cd9-7682a2aed4fb"], ["created_at", "2015-07-06 21:25:10.545997"], ["updated_at", "2015-07-06 21:25:10.545997"], ["token", "_fd3FdqcAgpSulVa70SGrRerGEkLz0T1w0T3YLGiuck"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.5ms Sent mail to john@example.com (2.5ms) Date: Mon, 06 Jul 2015 14:25:10 -0700 From: from@example.com To: john@example.com Message-ID: <559af236865d8_10c473fcaf846020049299@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/_fd3FdqcAgpSulVa70SGrRerGEkLz0T1w0T3YLGiuck?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.557989"], ["updated_at", "2015-07-06 21:25:10.557989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = 'dcfbc6f7-e43c-4f28-a865-cab2bf57c942') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "dcfbc6f7-e43c-4f28-a865-cab2bf57c942"], ["created_at", "2015-07-06 21:25:10.562758"], ["updated_at", "2015-07-06 21:25:10.562758"], ["token", "jVHVb2eFy3ggB--18MMoihxkggvkGlMKr2nG8Q3j3zA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.6ms Sent mail to john@example.com (1.9ms) Date: Mon, 06 Jul 2015 14:25:10 -0700 From: from@example.com To: john@example.com Message-ID: <559af2368a6ba_10c473fcaf846020049312@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/jVHVb2eFy3ggB--18MMoihxkggvkGlMKr2nG8Q3j3zA?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.574941"], ["updated_at", "2015-07-06 21:25:10.574941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'f52cb938-d389-4ba1-9a76-ee01e4951044') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "f52cb938-d389-4ba1-9a76-ee01e4951044"], ["created_at", "2015-07-06 21:25:10.578785"], ["updated_at", "2015-07-06 21:25:10.578785"], ["token", "9dkKchy2qWwn8scjSZUnjeSQj7TSf2IzHGS_tNc0OuY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.606751"], ["updated_at", "2015-07-06 21:25:10.606751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '0884bfe4-f663-4a69-9434-ad4a82bbb29b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "0884bfe4-f663-4a69-9434-ad4a82bbb29b"], ["created_at", "2015-07-06 21:25:10.610678"], ["updated_at", "2015-07-06 21:25:10.610678"], ["token", "fXpaiPclui4Aa7_uOEhDZd3cpVeE9Ku0iQub_Fz_XWc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0884bfe4-f663-4a69-9434-ad4a82bbb29b"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '0884bfe4-f663-4a69-9434-ad4a82bbb29b') LIMIT 1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0884bfe4-f663-4a69-9434-ad4a82bbb29c"]] Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '0884bfe4-f663-4a69-9434-ad4a82bbb29c') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 63"], ["email", "user.63@example.com"], ["password_digest", "$2a$04$RrNqybm5MsiaeItKJmLikulGOYipjTsYZYjpozgEdJyREAzg3C/eK"], ["created_at", "2015-07-06 21:25:10.633421"], ["updated_at", "2015-07-06 21:25:10.633421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.638289"], ["updated_at", "2015-07-06 21:25:10.638289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36b1d0e1-0a84-47d6-abdc-32a5dc84da3b' AND "clubhouse_memberships"."organization_id" = '7041f9dd-2de3-49f7-80af-6ec2dae08774') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36b1d0e1-0a84-47d6-abdc-32a5dc84da3b"], ["organization_id", "7041f9dd-2de3-49f7-80af-6ec2dae08774"], ["created_at", "2015-07-06 21:25:10.641863"], ["updated_at", "2015-07-06 21:25:10.641863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.5ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "36b1d0e1-0a84-47d6-abdc-32a5dc84da3b"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7041f9dd-2de3-49f7-80af-6ec2dae08774"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36b1d0e1-0a84-47d6-abdc-32a5dc84da3b' AND "clubhouse_memberships"."organization_id" = '7041f9dd-2de3-49f7-80af-6ec2dae08774') LIMIT 1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7041f9dd-2de3-49f7-80af-6ec2dae08775"]] Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36b1d0e1-0a84-47d6-abdc-32a5dc84da3b' AND "clubhouse_memberships"."organization_id" = '7041f9dd-2de3-49f7-80af-6ec2dae08775') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 64"], ["email", "user.64@example.com"], ["password_digest", "$2a$04$CmdCkC1xkpHNEkQGobD0VexCObehX/U3Pi2Wvei6RWxphPX8ktvHW"], ["created_at", "2015-07-06 21:25:10.672794"], ["updated_at", "2015-07-06 21:25:10.672794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.677911"], ["updated_at", "2015-07-06 21:25:10.677911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '98fb53b6-e21c-49da-b539-db649169e953' AND "clubhouse_memberships"."organization_id" = '97b24144-d710-4150-8d1a-8d7ae9697f85') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "98fb53b6-e21c-49da-b539-db649169e953"], ["organization_id", "97b24144-d710-4150-8d1a-8d7ae9697f85"], ["created_at", "2015-07-06 21:25:10.681070"], ["updated_at", "2015-07-06 21:25:10.681070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '98fb53b6-e21c-49da-b539-db649169e953' LIMIT 1 [["organization_id", "97b24144-d710-4150-8d1a-8d7ae9697f85"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 65"], ["email", "user.65@example.com"], ["password_digest", "$2a$04$xnID06HLdBZoO8CfM50OsuNFUt6FI.sengn4vwVxPST5MNJ97X.n2"], ["created_at", "2015-07-06 21:25:10.691463"], ["updated_at", "2015-07-06 21:25:10.691463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.696777"], ["updated_at", "2015-07-06 21:25:10.696777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a901842d-367b-4a07-955a-5e5678695c3e' AND "clubhouse_memberships"."organization_id" = '934c21d8-6d14-4249-accb-c82e0be6f692') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a901842d-367b-4a07-955a-5e5678695c3e"], ["organization_id", "934c21d8-6d14-4249-accb-c82e0be6f692"], ["created_at", "2015-07-06 21:25:10.700289"], ["updated_at", "2015-07-06 21:25:10.700289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'a901842d-367b-4a07-955a-5e5678695c3e' LIMIT 1 [["organization_id", "934c21d8-6d14-4249-accb-c82e0be6f692"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 66"], ["email", "user.66@example.com"], ["password_digest", "$2a$04$Eg/HNZc77ePVF06yUyLpZOO3hAgQI2d38y6ih8jmfwLagswJgyQdi"], ["created_at", "2015-07-06 21:25:10.708888"], ["updated_at", "2015-07-06 21:25:10.708888"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.713992"], ["updated_at", "2015-07-06 21:25:10.713992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b3464d2d-0ffe-4df5-a098-d75697201d70' AND "clubhouse_memberships"."organization_id" = 'da3ea58c-edb2-4f17-87de-34a8bb08c5e0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b3464d2d-0ffe-4df5-a098-d75697201d70"], ["organization_id", "da3ea58c-edb2-4f17-87de-34a8bb08c5e0"], ["created_at", "2015-07-06 21:25:10.717336"], ["updated_at", "2015-07-06 21:25:10.717336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 67"], ["email", "user.67@example.com"], ["password_digest", "$2a$04$HDP169jwNQjExxX/fhwigeHjt57JcCnY7rWP8zDxaXaSTcya6n5Aq"], ["created_at", "2015-07-06 21:25:10.724932"], ["updated_at", "2015-07-06 21:25:10.724932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.729461"], ["updated_at", "2015-07-06 21:25:10.729461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '660fff9c-0c14-4895-bdaa-9f4553cdd954' AND "clubhouse_memberships"."organization_id" = '76403d95-63f6-424a-b52d-6bd1981b7779') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "660fff9c-0c14-4895-bdaa-9f4553cdd954"], ["organization_id", "76403d95-63f6-424a-b52d-6bd1981b7779"], ["created_at", "2015-07-06 21:25:10.732639"], ["updated_at", "2015-07-06 21:25:10.732639"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '660fff9c-0c14-4895-bdaa-9f4553cdd954' LIMIT 1 [["organization_id", "76403d95-63f6-424a-b52d-6bd1981b7779"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 68"], ["email", "user.68@example.com"], ["password_digest", "$2a$04$3IKzk/VxH9XM7c6UVxHEs.b.53060tHzjMF31R6Y9HScZcUxXISiS"], ["created_at", "2015-07-06 21:25:10.745106"], ["updated_at", "2015-07-06 21:25:10.745106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.749061"], ["updated_at", "2015-07-06 21:25:10.749061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a3647ac5-e9a1-470d-b8ca-b757fccad2d8' AND "clubhouse_memberships"."organization_id" = 'c797c256-8393-45b4-ad96-24e19c06f34e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a3647ac5-e9a1-470d-b8ca-b757fccad2d8"], ["organization_id", "c797c256-8393-45b4-ad96-24e19c06f34e"], ["created_at", "2015-07-06 21:25:10.752643"], ["updated_at", "2015-07-06 21:25:10.752643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 69"], ["email", "user.69@example.com"], ["password_digest", "$2a$04$A2hhs/a4vy/LDjYEyTsqQ.mhqkiAfT/jeU96kasOx3KoJcXlQD4HK"], ["created_at", "2015-07-06 21:25:10.761182"], ["updated_at", "2015-07-06 21:25:10.761182"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.768627"], ["updated_at", "2015-07-06 21:25:10.768627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd98f69f7-5b37-44c6-850f-47c9cfa9b586' AND "clubhouse_memberships"."organization_id" = '46bdaf39-d056-4d23-b687-abb7227b9a81') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d98f69f7-5b37-44c6-850f-47c9cfa9b586"], ["organization_id", "46bdaf39-d056-4d23-b687-abb7227b9a81"], ["admin", "t"], ["created_at", "2015-07-06 21:25:10.774167"], ["updated_at", "2015-07-06 21:25:10.774167"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 70"], ["email", "user.70@example.com"], ["password_digest", "$2a$04$VvTDqmDlKyZ/irsg9HFHHe5BTCw6XfSWkbzxCGh7.dexzyNV9Eox6"], ["created_at", "2015-07-06 21:25:10.783839"], ["updated_at", "2015-07-06 21:25:10.783839"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.788824"], ["updated_at", "2015-07-06 21:25:10.788824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '32edb0f8-cb03-4709-952c-2af1abea10ff' AND "clubhouse_memberships"."organization_id" = '043d44cf-a53b-4fae-bc3d-39bd0707a465') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "32edb0f8-cb03-4709-952c-2af1abea10ff"], ["organization_id", "043d44cf-a53b-4fae-bc3d-39bd0707a465"], ["admin", "t"], ["created_at", "2015-07-06 21:25:10.792578"], ["updated_at", "2015-07-06 21:25:10.792578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 71"], ["email", "user.71@example.com"], ["password_digest", "$2a$04$KRiZBcbg3SGE.HDicGZ0fOCqqoBEmpE4SdJpqyYwf9OX.l3Mjjqwq"], ["created_at", "2015-07-06 21:25:10.799439"], ["updated_at", "2015-07-06 21:25:10.799439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.803522"], ["updated_at", "2015-07-06 21:25:10.803522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '43d83956-f428-4e02-97d8-d28c7cb09da3' AND "clubhouse_memberships"."organization_id" = 'c14828ff-a5fe-4f63-a19b-c6f8a8172652') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "43d83956-f428-4e02-97d8-d28c7cb09da3"], ["organization_id", "c14828ff-a5fe-4f63-a19b-c6f8a8172652"], ["admin", "t"], ["created_at", "2015-07-06 21:25:10.807007"], ["updated_at", "2015-07-06 21:25:10.807007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '43d83956-f428-4e02-97d8-d28c7cb09da3' LIMIT 1 [["organization_id", "c14828ff-a5fe-4f63-a19b-c6f8a8172652"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 72"], ["email", "user.72@example.com"], ["password_digest", "$2a$04$6cV6rfiez44IcgurgVR/PuqLg9cZl2nZWrTWiiGZWdXcB3EU6iWnq"], ["created_at", "2015-07-06 21:25:10.816754"], ["updated_at", "2015-07-06 21:25:10.816754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.821193"], ["updated_at", "2015-07-06 21:25:10.821193"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '087efb83-49fc-4738-8d1c-0517fc113478' AND "clubhouse_memberships"."organization_id" = 'a2a9798a-5002-4f25-aa04-59c215cf4a7e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "087efb83-49fc-4738-8d1c-0517fc113478"], ["organization_id", "a2a9798a-5002-4f25-aa04-59c215cf4a7e"], ["admin", "t"], ["created_at", "2015-07-06 21:25:10.825404"], ["updated_at", "2015-07-06 21:25:10.825404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '087efb83-49fc-4738-8d1c-0517fc113478' LIMIT 1 [["organization_id", "a2a9798a-5002-4f25-aa04-59c215cf4a7e"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 73"], ["email", "user.73@example.com"], ["password_digest", "$2a$04$kN8BHjNQmxlbBKE/x6H8sOvtzapyDnD77.aonXSWRq/rxli3TlyO."], ["created_at", "2015-07-06 21:25:10.834423"], ["updated_at", "2015-07-06 21:25:10.834423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.840124"], ["updated_at", "2015-07-06 21:25:10.840124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7203219f-de2c-42f8-9bd4-ea8ddf6f995d' AND "clubhouse_memberships"."organization_id" = '71e73f0b-6b91-46a4-a52c-c913816e49e5') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7203219f-de2c-42f8-9bd4-ea8ddf6f995d"], ["organization_id", "71e73f0b-6b91-46a4-a52c-c913816e49e5"], ["admin", "t"], ["created_at", "2015-07-06 21:25:10.843311"], ["updated_at", "2015-07-06 21:25:10.843311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '7203219f-de2c-42f8-9bd4-ea8ddf6f995d' LIMIT 1 [["organization_id", "71e73f0b-6b91-46a4-a52c-c913816e49e5"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 74"], ["email", "user.74@example.com"], ["password_digest", "$2a$04$TMVL3f0W8ms90WNEBnI7pun5XdtzoPihPdA.0ycWUBvecp/MPvlA2"], ["created_at", "2015-07-06 21:25:10.851969"], ["updated_at", "2015-07-06 21:25:10.851969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 75"], ["email", "user.75@example.com"], ["password_digest", "$2a$04$yP6mTGbT12GX/IGkQvQ2EeQbWhe7dTpXQnNuIGQl5EpAGcmsoxSOy"], ["created_at", "2015-07-06 21:25:10.860719"], ["updated_at", "2015-07-06 21:25:10.860719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.867641"], ["updated_at", "2015-07-06 21:25:10.867641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'f21d22dd-470a-4a5d-87a5-f80a758b18ae' LIMIT 1 [["organization_id", "2e291e64-6371-4ac2-8203-00a12e61f0f5"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 76"], ["email", "user.76@example.com"], ["password_digest", "$2a$04$sHTU/duDt1X2SmE1HlR8puX1pKBYndutxqktwPzR69nxtZz.MBpt6"], ["created_at", "2015-07-06 21:25:10.876417"], ["updated_at", "2015-07-06 21:25:10.876417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.881301"], ["updated_at", "2015-07-06 21:25:10.881301"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 77"], ["email", "user.77@example.com"], ["password_digest", "$2a$04$dtraOF3q68F.1ChBbQxEZ.7VJreLdLEyG7d4iuMix5FjBmVm5kHVC"], ["created_at", "2015-07-06 21:25:10.895583"], ["updated_at", "2015-07-06 21:25:10.895583"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.903063"], ["updated_at", "2015-07-06 21:25:10.903063"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '98e522bf-d5b9-4adc-911e-6762d356b633' LIMIT 1 [["organization_id", "8223b070-03cb-4ddd-9183-95caf585e00e"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 78"], ["email", "user.78@example.com"], ["password_digest", "$2a$04$ro2u66At8WkJxtnq1QaRXu.bYsZGar8ukjkS0r6o8q25s1GzaP2Da"], ["created_at", "2015-07-06 21:25:10.915019"], ["updated_at", "2015-07-06 21:25:10.915019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.920014"], ["updated_at", "2015-07-06 21:25:10.920014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 79"], ["email", "user.79@example.com"], ["password_digest", "$2a$04$ZCJ7vGty9Ap1CCHfD1fiw.ucEt9mRJ5RljrCREzc40t6.nA8QEn8q"], ["created_at", "2015-07-06 21:25:10.927041"], ["updated_at", "2015-07-06 21:25:10.927041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.931668"], ["updated_at", "2015-07-06 21:25:10.931668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '5ae7fa35-672c-49b0-b85e-381ef5bb7e30' LIMIT 1 [["organization_id", "82060e47-d3ad-4f3d-b986-850e1b76c5dc"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:10.940066"], ["updated_at", "2015-07-06 21:25:10.940066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.004126"], ["updated_at", "2015-07-06 21:25:11.004126"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.014159"], ["updated_at", "2015-07-06 21:25:11.014159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.028593"], ["updated_at", "2015-07-06 21:25:11.028593"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.4ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e62d4bdb-0114-40f9-9911-3ba7e4b2a6f8"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.037629"], ["updated_at", "2015-07-06 21:25:11.037629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.9ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 80"], ["email", "user.80@example.com"], ["password_digest", "$2a$04$FKRmlNQ1Mumb.zVlkpbrmeYoJX6oH4nvby7PEEjHGXQbFw/xRXcba"], ["created_at", "2015-07-06 21:25:11.048859"], ["updated_at", "2015-07-06 21:25:11.048859"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.058258"], ["updated_at", "2015-07-06 21:25:11.058258"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '9d368eda-4be9-4596-aebe-3d55078f580a') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "9d368eda-4be9-4596-aebe-3d55078f580a"], ["created_at", "2015-07-06 21:25:11.064877"], ["updated_at", "2015-07-06 21:25:11.064877"], ["token", "XuIfOKxd9J5H6Fjfl03m3d31idig7PooqoE383JT5Tw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '927a75d6-313e-4f8a-9482-3b608dffd5de' LIMIT 1 [["organization_id", "9d368eda-4be9-4596-aebe-3d55078f580a"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 81"], ["email", "user.81@example.com"], ["password_digest", "$2a$04$AfBgWldm0jnZTN9bRaA9Au1fQ8fseUV.UziLOU24Bzkmw9cT4/kM."], ["created_at", "2015-07-06 21:25:11.077879"], ["updated_at", "2015-07-06 21:25:11.077879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.083738"], ["updated_at", "2015-07-06 21:25:11.083738"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '02fffd5b-7945-4a76-aaf8-8d07f8ac7e5f') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "02fffd5b-7945-4a76-aaf8-8d07f8ac7e5f"], ["created_at", "2015-07-06 21:25:11.092263"], ["updated_at", "2015-07-06 21:25:11.092263"], ["token", "BVnJs0p-cDtXu_zwFnKt2ZHb1XgbrVn9dFDhkKN1x0s"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '602cfa51-0d88-4709-a05d-95db9279e38a' LIMIT 1 [["organization_id", "02fffd5b-7945-4a76-aaf8-8d07f8ac7e5f"], ["admin", "t"]]  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 82"], ["email", "user.82@example.com"], ["password_digest", "$2a$04$MU55RIgmWvaETY2W.W5piO9Vf2cKAPOMbmgLR0FTne.28B4AnsJAK"], ["created_at", "2015-07-06 21:25:11.112801"], ["updated_at", "2015-07-06 21:25:11.112801"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.123056"], ["updated_at", "2015-07-06 21:25:11.123056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (1.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = 'db114f4e-d309-4b99-87f7-d658f763a76c') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "db114f4e-d309-4b99-87f7-d658f763a76c"], ["created_at", "2015-07-06 21:25:11.131844"], ["updated_at", "2015-07-06 21:25:11.131844"], ["token", "o_Otf0IXlBs1D1rHzggAc4ceySvL_fr2RVs6ejkrO1E"]]  (1.5ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '0f5be078-86bb-4f12-952e-0c0850925919' LIMIT 1 [["organization_id", "db114f4e-d309-4b99-87f7-d658f763a76c"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 83"], ["email", "user.83@example.com"], ["password_digest", "$2a$04$pekEEuIxG.mS9ymToZc27uo71bH9SBgaw1zx9OlI3gaXBOLDAwJNq"], ["created_at", "2015-07-06 21:25:11.147990"], ["updated_at", "2015-07-06 21:25:11.147990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.156553"], ["updated_at", "2015-07-06 21:25:11.156553"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (2.2ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = 'a7d6f6e3-a069-4852-b04f-66c22bba4315') LIMIT 1 SQL (1.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "a7d6f6e3-a069-4852-b04f-66c22bba4315"], ["created_at", "2015-07-06 21:25:11.172281"], ["updated_at", "2015-07-06 21:25:11.172281"], ["token", "WFtf5vgh0AthcLoyrJx-VJ1TU-Z22ZB12wO5OTkTJr0"]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '237f084f-1b39-49c7-9683-51f14ce17e9c' LIMIT 1 [["organization_id", "a7d6f6e3-a069-4852-b04f-66c22bba4315"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 84"], ["email", "user.84@example.com"], ["password_digest", "$2a$04$Rv6M.wAlYpxx7HfON5QZZOoBqDt0lmLqaSV5A/M7vZVqfQSD1I4Wa"], ["created_at", "2015-07-06 21:25:11.188711"], ["updated_at", "2015-07-06 21:25:11.188711"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.197631"], ["updated_at", "2015-07-06 21:25:11.197631"]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '346ecf4c-9362-40a4-944d-00278cc860d8' LIMIT 1 [["organization_id", "fd8d4f3a-8a57-4522-abb8-af4374f31de4"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (1.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 85"], ["email", "user.85@example.com"], ["password_digest", "$2a$04$4J0u2XFBpkWoHxRfTUatg.0MmSqVFIpN271Cnln1HO9tP3zHvYN8i"], ["created_at", "2015-07-06 21:25:11.217438"], ["updated_at", "2015-07-06 21:25:11.217438"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.224153"], ["updated_at", "2015-07-06 21:25:11.224153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd77fbeb8-f755-4415-81e5-5e656bb12b3a' AND "clubhouse_memberships"."organization_id" = '2e51339e-9818-406e-9978-6c77838499f8') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d77fbeb8-f755-4415-81e5-5e656bb12b3a"], ["organization_id", "2e51339e-9818-406e-9978-6c77838499f8"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.229638"], ["updated_at", "2015-07-06 21:25:11.229638"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '2e51339e-9818-406e-9978-6c77838499f8') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "2e51339e-9818-406e-9978-6c77838499f8"], ["created_at", "2015-07-06 21:25:11.238346"], ["updated_at", "2015-07-06 21:25:11.238346"], ["token", "GvzbJXx2urFqiEI2Eh69SF6Mv6BIIHXHdKn_oTVE1Ew"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd77fbeb8-f755-4415-81e5-5e656bb12b3a' LIMIT 1 [["organization_id", "2e51339e-9818-406e-9978-6c77838499f8"], ["admin", "t"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 86"], ["email", "user.86@example.com"], ["password_digest", "$2a$04$zKURTeTfTh0P0zJs0odq8ujgmCflVVuhjxLH5olZW7bzNrL066R8q"], ["created_at", "2015-07-06 21:25:11.253882"], ["updated_at", "2015-07-06 21:25:11.253882"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.260811"], ["updated_at", "2015-07-06 21:25:11.260811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b793aedf-82c3-4f34-a078-d767d9719134' AND "clubhouse_memberships"."organization_id" = 'b25023cd-c77f-4f97-9375-6217a4242754') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b793aedf-82c3-4f34-a078-d767d9719134"], ["organization_id", "b25023cd-c77f-4f97-9375-6217a4242754"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.266110"], ["updated_at", "2015-07-06 21:25:11.266110"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'b25023cd-c77f-4f97-9375-6217a4242754') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "b25023cd-c77f-4f97-9375-6217a4242754"], ["created_at", "2015-07-06 21:25:11.274544"], ["updated_at", "2015-07-06 21:25:11.274544"], ["token", "LbZolQwniV-SJ4Pzqic0w2dBwLIS29GOr_nIoWkhxJk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b793aedf-82c3-4f34-a078-d767d9719134' LIMIT 1 [["organization_id", "b25023cd-c77f-4f97-9375-6217a4242754"], ["admin", "t"]]  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 87"], ["email", "user.87@example.com"], ["password_digest", "$2a$04$wZEqE8digsrawtGSUyFq8eL0cwueIbnDXiRNnsTN8o/PPhE9BvFyq"], ["created_at", "2015-07-06 21:25:11.293152"], ["updated_at", "2015-07-06 21:25:11.293152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.299003"], ["updated_at", "2015-07-06 21:25:11.299003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '503e53d3-63ce-4d22-8b3d-d65448561ebf' AND "clubhouse_memberships"."organization_id" = '2557bd16-deb8-4473-97d9-07b45cd0b12e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "503e53d3-63ce-4d22-8b3d-d65448561ebf"], ["organization_id", "2557bd16-deb8-4473-97d9-07b45cd0b12e"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.303351"], ["updated_at", "2015-07-06 21:25:11.303351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '2557bd16-deb8-4473-97d9-07b45cd0b12e') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "2557bd16-deb8-4473-97d9-07b45cd0b12e"], ["created_at", "2015-07-06 21:25:11.310181"], ["updated_at", "2015-07-06 21:25:11.310181"], ["token", "Vww6PS2kmJ5Qs-IJYqjjCueyN3k-dSCc4XzpLGdaRSU"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '503e53d3-63ce-4d22-8b3d-d65448561ebf' LIMIT 1 [["organization_id", "2557bd16-deb8-4473-97d9-07b45cd0b12e"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 88"], ["email", "user.88@example.com"], ["password_digest", "$2a$04$gkBama14LYrmqJYjO2gMYuNlfgcO2Q4Cs.XpeozVeCbkdZYKyvyAK"], ["created_at", "2015-07-06 21:25:11.328019"], ["updated_at", "2015-07-06 21:25:11.328019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.337260"], ["updated_at", "2015-07-06 21:25:11.337260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8fecfa88-c5d3-40ba-8514-0e6240a0a41e' AND "clubhouse_memberships"."organization_id" = '1144d6d2-b5a9-499c-83dd-ad3407105e20') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8fecfa88-c5d3-40ba-8514-0e6240a0a41e"], ["organization_id", "1144d6d2-b5a9-499c-83dd-ad3407105e20"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.342363"], ["updated_at", "2015-07-06 21:25:11.342363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '1144d6d2-b5a9-499c-83dd-ad3407105e20') LIMIT 1 SQL (1.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "1144d6d2-b5a9-499c-83dd-ad3407105e20"], ["created_at", "2015-07-06 21:25:11.349466"], ["updated_at", "2015-07-06 21:25:11.349466"], ["token", "wEx3Hfz_wZi0Csldetyej1sQn6BjECYX8hbwzWYG8A0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.1ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '8fecfa88-c5d3-40ba-8514-0e6240a0a41e' LIMIT 1 [["organization_id", "1144d6d2-b5a9-499c-83dd-ad3407105e20"], ["admin", "t"]]  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 89"], ["email", "user.89@example.com"], ["password_digest", "$2a$04$VF6CceUCUfSZ8tW9/aF5POi/p8LIMgJ32dzAH4gdJZz.7QZ93C7oy"], ["created_at", "2015-07-06 21:25:11.369219"], ["updated_at", "2015-07-06 21:25:11.369219"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.375309"], ["updated_at", "2015-07-06 21:25:11.375309"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd539f036-5f2e-4d65-a220-1ce97c35a4c7' AND "clubhouse_memberships"."organization_id" = '521c3120-f589-4c4c-a190-893c7173ef05') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d539f036-5f2e-4d65-a220-1ce97c35a4c7"], ["organization_id", "521c3120-f589-4c4c-a190-893c7173ef05"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.383128"], ["updated_at", "2015-07-06 21:25:11.383128"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd539f036-5f2e-4d65-a220-1ce97c35a4c7' LIMIT 1 [["organization_id", "521c3120-f589-4c4c-a190-893c7173ef05"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.7ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 90"], ["email", "user.90@example.com"], ["password_digest", "$2a$04$T.OfHQiQBi6l5Q3oyTeZyeBUVzEJ3nT4lbLUazsdE/TVyNkeadP2e"], ["created_at", "2015-07-06 21:25:11.396936"], ["updated_at", "2015-07-06 21:25:11.396936"]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.408567"], ["updated_at", "2015-07-06 21:25:11.408567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f967b791-9cc9-4d64-b6bb-06e3b699fdcf' AND "clubhouse_memberships"."organization_id" = 'a0ba680f-4362-442f-b274-2a9a1fa3885a') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f967b791-9cc9-4d64-b6bb-06e3b699fdcf"], ["organization_id", "a0ba680f-4362-442f-b274-2a9a1fa3885a"], ["created_at", "2015-07-06 21:25:11.415337"], ["updated_at", "2015-07-06 21:25:11.415337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = 'a0ba680f-4362-442f-b274-2a9a1fa3885a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "a0ba680f-4362-442f-b274-2a9a1fa3885a"], ["created_at", "2015-07-06 21:25:11.421953"], ["updated_at", "2015-07-06 21:25:11.421953"], ["token", "NMjA0KPViWVk3gTzyW2GEjzGNwNplYe523q5mMLLr7U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'f967b791-9cc9-4d64-b6bb-06e3b699fdcf' LIMIT 1 [["organization_id", "a0ba680f-4362-442f-b274-2a9a1fa3885a"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (1.0ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 91"], ["email", "user.91@example.com"], ["password_digest", "$2a$04$TyjZjJ0zwkpNzUg2bspg/.NXX3Z.q3Q5Yj/OoCOOToexQg4GZGkNS"], ["created_at", "2015-07-06 21:25:11.435611"], ["updated_at", "2015-07-06 21:25:11.435611"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.444848"], ["updated_at", "2015-07-06 21:25:11.444848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1d439fe4-9022-44a4-9538-fe42c415c567' AND "clubhouse_memberships"."organization_id" = '71fa40b5-a5b5-4610-a6dd-2ed709c59f4e') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "1d439fe4-9022-44a4-9538-fe42c415c567"], ["organization_id", "71fa40b5-a5b5-4610-a6dd-2ed709c59f4e"], ["created_at", "2015-07-06 21:25:11.452497"], ["updated_at", "2015-07-06 21:25:11.452497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '71fa40b5-a5b5-4610-a6dd-2ed709c59f4e') LIMIT 1 SQL (0.8ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "71fa40b5-a5b5-4610-a6dd-2ed709c59f4e"], ["created_at", "2015-07-06 21:25:11.460998"], ["updated_at", "2015-07-06 21:25:11.460998"], ["token", "GagCBoGdKGbcvZx0HIiCK1pQB_e84KS6mgxI3_s-kQM"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '1d439fe4-9022-44a4-9538-fe42c415c567' LIMIT 1 [["organization_id", "71fa40b5-a5b5-4610-a6dd-2ed709c59f4e"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 92"], ["email", "user.92@example.com"], ["password_digest", "$2a$04$6soCILnR8yM8ux4MKVgryuE4YT87Ro4PlHfgc/HtMtdtU9y6T/3DC"], ["created_at", "2015-07-06 21:25:11.474702"], ["updated_at", "2015-07-06 21:25:11.474702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.481957"], ["updated_at", "2015-07-06 21:25:11.481957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'fcea05eb-b774-4f7a-9639-9d4e56d2582b' AND "clubhouse_memberships"."organization_id" = 'daf22722-724e-4679-88a9-e013a9c8124f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "fcea05eb-b774-4f7a-9639-9d4e56d2582b"], ["organization_id", "daf22722-724e-4679-88a9-e013a9c8124f"], ["created_at", "2015-07-06 21:25:11.485427"], ["updated_at", "2015-07-06 21:25:11.485427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'daf22722-724e-4679-88a9-e013a9c8124f') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "daf22722-724e-4679-88a9-e013a9c8124f"], ["created_at", "2015-07-06 21:25:11.492147"], ["updated_at", "2015-07-06 21:25:11.492147"], ["token", "k2pXUDzpvMWHc1aQuNRMRaAe8APimQuzJG1j88Jef-A"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'fcea05eb-b774-4f7a-9639-9d4e56d2582b' LIMIT 1 [["organization_id", "daf22722-724e-4679-88a9-e013a9c8124f"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 93"], ["email", "user.93@example.com"], ["password_digest", "$2a$04$Q1BVCa6/PBorzlc8jHk6xOuWlYwrErKXB1ZURC8zRgv1DYSfHQz5W"], ["created_at", "2015-07-06 21:25:11.501443"], ["updated_at", "2015-07-06 21:25:11.501443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.507177"], ["updated_at", "2015-07-06 21:25:11.507177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9368a2ba-57ff-4150-a344-991c948f0954' AND "clubhouse_memberships"."organization_id" = 'cafd6f66-9f2d-4e4e-9cd7-2108772358d2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9368a2ba-57ff-4150-a344-991c948f0954"], ["organization_id", "cafd6f66-9f2d-4e4e-9cd7-2108772358d2"], ["created_at", "2015-07-06 21:25:11.510183"], ["updated_at", "2015-07-06 21:25:11.510183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'cafd6f66-9f2d-4e4e-9cd7-2108772358d2') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "cafd6f66-9f2d-4e4e-9cd7-2108772358d2"], ["created_at", "2015-07-06 21:25:11.514105"], ["updated_at", "2015-07-06 21:25:11.514105"], ["token", "l4gfRahP_EOGiHRSuACT55Vrz35Lqys-U70lclXoq7M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9368a2ba-57ff-4150-a344-991c948f0954' LIMIT 1 [["organization_id", "cafd6f66-9f2d-4e4e-9cd7-2108772358d2"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 94"], ["email", "user.94@example.com"], ["password_digest", "$2a$04$haFSJnkDU4HMRCayk24Be.9kMwnLV2eU3tqWnl2cN33pb7vDwHGJu"], ["created_at", "2015-07-06 21:25:11.524007"], ["updated_at", "2015-07-06 21:25:11.524007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.527910"], ["updated_at", "2015-07-06 21:25:11.527910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21ed41fd-adf6-42cf-935a-a59989f9a984' AND "clubhouse_memberships"."organization_id" = '7690bc44-d7f2-4eb3-8d85-3ec19a91305a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "21ed41fd-adf6-42cf-935a-a59989f9a984"], ["organization_id", "7690bc44-d7f2-4eb3-8d85-3ec19a91305a"], ["created_at", "2015-07-06 21:25:11.530979"], ["updated_at", "2015-07-06 21:25:11.530979"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '21ed41fd-adf6-42cf-935a-a59989f9a984' LIMIT 1 [["organization_id", "7690bc44-d7f2-4eb3-8d85-3ec19a91305a"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 95"], ["email", "user.95@example.com"], ["password_digest", "$2a$04$PBg62FXx77iP6UJ5V2uz0OsM3l2oE7bfMz49wC7BS6mNm/lCyHQx."], ["created_at", "2015-07-06 21:25:11.545606"], ["updated_at", "2015-07-06 21:25:11.545606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.547662"], ["user_id", "c2c9a262-99a1-4be1-9df5-092946026100"], ["created_at", "2015-07-06 21:25:11.548701"], ["updated_at", "2015-07-06 21:25:11.548701"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.554345"], ["updated_at", "2015-07-06 21:25:11.554345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2c9a262-99a1-4be1-9df5-092946026100' AND "clubhouse_memberships"."organization_id" = 'fd7d8e53-9de5-48be-ba74-e341473b0a7f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c2c9a262-99a1-4be1-9df5-092946026100"], ["organization_id", "fd7d8e53-9de5-48be-ba74-e341473b0a7f"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.558673"], ["updated_at", "2015-07-06 21:25:11.558673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = 'fd7d8e53-9de5-48be-ba74-e341473b0a7f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "fd7d8e53-9de5-48be-ba74-e341473b0a7f"], ["created_at", "2015-07-06 21:25:11.562622"], ["updated_at", "2015-07-06 21:25:11.562622"], ["token", "1jZz3NtrWqjCuuRBCHtneFIPBV46kJEqhzmBc3sJVxE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-07-06 14:25:11 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 96"], ["email", "user.96@example.com"], ["password_digest", "$2a$04$/pH2o3E0lojDLSdxMZsmAOPICxzPuQOS9KZA00.Nl7hPn88KEzNWO"], ["created_at", "2015-07-06 21:25:11.574827"], ["updated_at", "2015-07-06 21:25:11.574827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.576839"], ["user_id", "15f55827-2aea-417e-bf17-9ffcca1ba0ce"], ["created_at", "2015-07-06 21:25:11.577505"], ["updated_at", "2015-07-06 21:25:11.577505"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.581776"], ["updated_at", "2015-07-06 21:25:11.581776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '15f55827-2aea-417e-bf17-9ffcca1ba0ce' AND "clubhouse_memberships"."organization_id" = '87b1b1f8-e616-4315-9807-8881f0d1c5c5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "15f55827-2aea-417e-bf17-9ffcca1ba0ce"], ["organization_id", "87b1b1f8-e616-4315-9807-8881f0d1c5c5"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.586352"], ["updated_at", "2015-07-06 21:25:11.586352"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = '87b1b1f8-e616-4315-9807-8881f0d1c5c5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "87b1b1f8-e616-4315-9807-8881f0d1c5c5"], ["created_at", "2015-07-06 21:25:11.592025"], ["updated_at", "2015-07-06 21:25:11.592025"], ["token", "TGhaEmTuajdbd-1O8lDo8Hd7aAxozcrYsJ-6d_jPA2k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/29bfd856-ec0f-41dc-b5dc-854cf1161b74" for 127.0.0.1 at 2015-07-06 14:25:11 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"29bfd856-ec0f-41dc-b5dc-854cf1161b74", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:11.595444') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0c0bccc6-b6a6-4451-bea7-273e917883e4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:11.597056"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:11.598039"], ["id", "0c0bccc6-b6a6-4451-bea7-273e917883e4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "29bfd856-ec0f-41dc-b5dc-854cf1161b74"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "15f55827-2aea-417e-bf17-9ffcca1ba0ce"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "87b1b1f8-e616-4315-9807-8881f0d1c5c5"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '15f55827-2aea-417e-bf17-9ffcca1ba0ce' LIMIT 1 [["organization_id", "87b1b1f8-e616-4315-9807-8881f0d1c5c5"], ["admin", "t"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."id" != '29bfd856-ec0f-41dc-b5dc-854cf1161b74' AND "clubhouse_invitations"."organization_id" = '87b1b1f8-e616-4315-9807-8881f0d1c5c5') LIMIT 1 SQL (0.3ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:25:11.610020"], ["id", "29bfd856-ec0f-41dc-b5dc-854cf1161b74"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 18ms (Views: 1.6ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 97"], ["email", "user.97@example.com"], ["password_digest", "$2a$04$xwQql5RQuQJjWsW4UUC1HuGWybCHbQsfNXcf7YWXBQawHH5DE1iga"], ["created_at", "2015-07-06 21:25:11.622129"], ["updated_at", "2015-07-06 21:25:11.622129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.624380"], ["user_id", "75358560-f655-4911-abb2-76da801aa216"], ["created_at", "2015-07-06 21:25:11.625100"], ["updated_at", "2015-07-06 21:25:11.625100"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.629239"], ["updated_at", "2015-07-06 21:25:11.629239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '75358560-f655-4911-abb2-76da801aa216' AND "clubhouse_memberships"."organization_id" = '320f45dc-d3f0-4154-9bb8-b6c004024aed') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "75358560-f655-4911-abb2-76da801aa216"], ["organization_id", "320f45dc-d3f0-4154-9bb8-b6c004024aed"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.632503"], ["updated_at", "2015-07-06 21:25:11.632503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '320f45dc-d3f0-4154-9bb8-b6c004024aed') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "320f45dc-d3f0-4154-9bb8-b6c004024aed"], ["created_at", "2015-07-06 21:25:11.636976"], ["updated_at", "2015-07-06 21:25:11.636976"], ["token", "ZLIvRYFa2kxcSmkGXGluNmJsp1msjbBvq8DrBev3cpU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 98"], ["email", "user.98@example.com"], ["password_digest", "$2a$04$tVJiCYn30XPLUlcbMx93ee7hUjue0z9FiOfI8uXzjE3R9CwYkUN/."], ["created_at", "2015-07-06 21:25:11.642385"], ["updated_at", "2015-07-06 21:25:11.642385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.646292"], ["updated_at", "2015-07-06 21:25:11.646292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '62c92e1e-b14e-4198-b1bc-b778abf8e080' AND "clubhouse_memberships"."organization_id" = '33137bbc-667a-4f5a-9517-46c1304027e6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "62c92e1e-b14e-4198-b1bc-b778abf8e080"], ["organization_id", "33137bbc-667a-4f5a-9517-46c1304027e6"], ["created_at", "2015-07-06 21:25:11.650170"], ["updated_at", "2015-07-06 21:25:11.650170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:25:11 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 99"], ["email", "user.99@example.com"], ["password_digest", "$2a$04$j7pEk2.H8akU7bWo6vcyWO1tfVhQxp4BMPNADTvNOWxXr80ocV1Fa"], ["created_at", "2015-07-06 21:25:11.659502"], ["updated_at", "2015-07-06 21:25:11.659502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.661056"], ["user_id", "aa87b5df-00ae-4da2-a871-9c574ebdef47"], ["created_at", "2015-07-06 21:25:11.661671"], ["updated_at", "2015-07-06 21:25:11.661671"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.665819"], ["updated_at", "2015-07-06 21:25:11.665819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aa87b5df-00ae-4da2-a871-9c574ebdef47' AND "clubhouse_memberships"."organization_id" = '99bb35b6-f1b3-454e-beae-317b51ff6459') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aa87b5df-00ae-4da2-a871-9c574ebdef47"], ["organization_id", "99bb35b6-f1b3-454e-beae-317b51ff6459"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.669878"], ["updated_at", "2015-07-06 21:25:11.669878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = '99bb35b6-f1b3-454e-beae-317b51ff6459') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "99bb35b6-f1b3-454e-beae-317b51ff6459"], ["created_at", "2015-07-06 21:25:11.674358"], ["updated_at", "2015-07-06 21:25:11.674358"], ["token", "yCYpoE5W2sguY15Ok1wPAiXF3GS-TJgG3bWaRd0wzw4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 100"], ["email", "user.100@example.com"], ["password_digest", "$2a$04$VG1MBtwTNZC5ZRmiyvJUl.KCq2kBoB.mRGHhFZjWHMdtYA8CZw9U2"], ["created_at", "2015-07-06 21:25:11.679694"], ["updated_at", "2015-07-06 21:25:11.679694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.684189"], ["updated_at", "2015-07-06 21:25:11.684189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c614967-054b-47c2-96e9-02a8aa7a6a85' AND "clubhouse_memberships"."organization_id" = '15554b10-c66b-44e1-b91d-14c28e426217') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4c614967-054b-47c2-96e9-02a8aa7a6a85"], ["organization_id", "15554b10-c66b-44e1-b91d-14c28e426217"], ["created_at", "2015-07-06 21:25:11.687827"], ["updated_at", "2015-07-06 21:25:11.687827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:25:11 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:11.690969') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "d3ada434-0fd4-4ccf-a824-2173c4975704"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:11.693171"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:11.694012"], ["id", "d3ada434-0fd4-4ccf-a824-2173c4975704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aa87b5df-00ae-4da2-a871-9c574ebdef47"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'aa87b5df-00ae-4da2-a871-9c574ebdef47' LIMIT 1 [["organization_id", "99bb35b6-f1b3-454e-beae-317b51ff6459"], ["admin", "t"]] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "99bb35b6-f1b3-454e-beae-317b51ff6459"]] Completed 200 OK in 12ms (Views: 2.5ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 101"], ["email", "user.101@example.com"], ["password_digest", "$2a$04$Zl9KEpciGUIzOgqpDSo3jufeu/m1zvyi4XoB0Jqn7htfQuC/vLPWK"], ["created_at", "2015-07-06 21:25:11.710369"], ["updated_at", "2015-07-06 21:25:11.710369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.712112"], ["user_id", "51857e8a-20b8-400f-badd-c94443e4b872"], ["created_at", "2015-07-06 21:25:11.712750"], ["updated_at", "2015-07-06 21:25:11.712750"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.717875"], ["updated_at", "2015-07-06 21:25:11.717875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '51857e8a-20b8-400f-badd-c94443e4b872' AND "clubhouse_memberships"."organization_id" = '4ef77b28-078e-44ab-8866-dda3b26bbf0d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "51857e8a-20b8-400f-badd-c94443e4b872"], ["organization_id", "4ef77b28-078e-44ab-8866-dda3b26bbf0d"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.721433"], ["updated_at", "2015-07-06 21:25:11.721433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '4ef77b28-078e-44ab-8866-dda3b26bbf0d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "4ef77b28-078e-44ab-8866-dda3b26bbf0d"], ["created_at", "2015-07-06 21:25:11.725836"], ["updated_at", "2015-07-06 21:25:11.725836"], ["token", "bvtp6rkWCCX--fYvyPwM5ac0ZkoBafRq3llsAUsoPbU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 102"], ["email", "user.102@example.com"], ["password_digest", "$2a$04$3ZLv4VvYU2TMuT/R4xi74Olybvf/0GfEIZFXT.LiVKDaUr2XmwGru"], ["created_at", "2015-07-06 21:25:11.731589"], ["updated_at", "2015-07-06 21:25:11.731589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.736083"], ["updated_at", "2015-07-06 21:25:11.736083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '57ceebec-6cac-4bfa-bc44-ae9c74f52ff9' AND "clubhouse_memberships"."organization_id" = '02df7ec4-3fc9-4438-b98e-cea875abf541') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "57ceebec-6cac-4bfa-bc44-ae9c74f52ff9"], ["organization_id", "02df7ec4-3fc9-4438-b98e-cea875abf541"], ["created_at", "2015-07-06 21:25:11.739369"], ["updated_at", "2015-07-06 21:25:11.739369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-07-06 14:25:11 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 103"], ["email", "user.103@example.com"], ["password_digest", "$2a$04$vQnKCDLOUoyWgllckKHXnuL8iG5n3CI1yLJQWB.8kVMf.1DLmU/Gu"], ["created_at", "2015-07-06 21:25:11.750408"], ["updated_at", "2015-07-06 21:25:11.750408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.752465"], ["user_id", "e8ace23a-3da7-4ccc-871e-3a63cad24ee2"], ["created_at", "2015-07-06 21:25:11.753331"], ["updated_at", "2015-07-06 21:25:11.753331"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.759436"], ["updated_at", "2015-07-06 21:25:11.759436"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e8ace23a-3da7-4ccc-871e-3a63cad24ee2' AND "clubhouse_memberships"."organization_id" = '57dd8b74-c1d5-4857-a198-c1287e36c07c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e8ace23a-3da7-4ccc-871e-3a63cad24ee2"], ["organization_id", "57dd8b74-c1d5-4857-a198-c1287e36c07c"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.764783"], ["updated_at", "2015-07-06 21:25:11.764783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = '57dd8b74-c1d5-4857-a198-c1287e36c07c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "57dd8b74-c1d5-4857-a198-c1287e36c07c"], ["created_at", "2015-07-06 21:25:11.770831"], ["updated_at", "2015-07-06 21:25:11.770831"], ["token", "WfIzE699cCxKBycrLYjDHWMw105QPEGnEnKyRyZQcS8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 104"], ["email", "user.104@example.com"], ["password_digest", "$2a$04$DUYpgcykPQ4Yo7msdsjKk.FeQY3FHq3fRZDvwA71eiUH6r3OPoqWi"], ["created_at", "2015-07-06 21:25:11.777686"], ["updated_at", "2015-07-06 21:25:11.777686"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.782567"], ["updated_at", "2015-07-06 21:25:11.782567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ec6a0f89-89bd-4c29-8618-b719a51d0bff' AND "clubhouse_memberships"."organization_id" = '49c63f9e-fe5e-4e5b-9733-3cab69fc799e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "ec6a0f89-89bd-4c29-8618-b719a51d0bff"], ["organization_id", "49c63f9e-fe5e-4e5b-9733-3cab69fc799e"], ["created_at", "2015-07-06 21:25:11.786768"], ["updated_at", "2015-07-06 21:25:11.786768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/57dd8b74-c1d5-4857-a198-c1287e36c07c/invitations" for 127.0.0.1 at 2015-07-06 14:25:11 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"57dd8b74-c1d5-4857-a198-c1287e36c07c", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:11.790249') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "afaa000d-7332-4a5d-8849-b2dd06620841"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:11.791946"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:11.792860"], ["id", "afaa000d-7332-4a5d-8849-b2dd06620841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "57dd8b74-c1d5-4857-a198-c1287e36c07c"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "e8ace23a-3da7-4ccc-871e-3a63cad24ee2"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e8ace23a-3da7-4ccc-871e-3a63cad24ee2' LIMIT 1 [["organization_id", "57dd8b74-c1d5-4857-a198-c1287e36c07c"], ["admin", "t"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "57dd8b74-c1d5-4857-a198-c1287e36c07c"]] Completed 200 OK in 14ms (Views: 1.4ms | ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 105"], ["email", "user.105@example.com"], ["password_digest", "$2a$04$nAvhrxodragQio/fH1aEGO3B4Fqxbuhncm7GpNb1eriXbg8WHNSl."], ["created_at", "2015-07-06 21:25:11.810940"], ["updated_at", "2015-07-06 21:25:11.810940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.812657"], ["user_id", "8b1c96a4-38d1-42bf-a1eb-727524b6c380"], ["created_at", "2015-07-06 21:25:11.813262"], ["updated_at", "2015-07-06 21:25:11.813262"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.818104"], ["updated_at", "2015-07-06 21:25:11.818104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8b1c96a4-38d1-42bf-a1eb-727524b6c380' AND "clubhouse_memberships"."organization_id" = '8b00debc-e422-4734-a189-79938dba420e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8b1c96a4-38d1-42bf-a1eb-727524b6c380"], ["organization_id", "8b00debc-e422-4734-a189-79938dba420e"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.821265"], ["updated_at", "2015-07-06 21:25:11.821265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = '8b00debc-e422-4734-a189-79938dba420e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "8b00debc-e422-4734-a189-79938dba420e"], ["created_at", "2015-07-06 21:25:11.825236"], ["updated_at", "2015-07-06 21:25:11.825236"], ["token", "hE5izN4kVpqhJHaQO-WXRtgQpRh3oRHuUVSeKZPqg8k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:25:11 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 106"], ["email", "user.106@example.com"], ["password_digest", "$2a$04$QcA7ZigZS40rWt9pe5xFDu/1T8t9ax/db49z3RWXpYduZRSGTpH9q"], ["created_at", "2015-07-06 21:25:11.834855"], ["updated_at", "2015-07-06 21:25:11.834855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.836718"], ["user_id", "7d8d4334-fe92-4793-ba9b-abfb9f082421"], ["created_at", "2015-07-06 21:25:11.837372"], ["updated_at", "2015-07-06 21:25:11.837372"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.842003"], ["updated_at", "2015-07-06 21:25:11.842003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7d8d4334-fe92-4793-ba9b-abfb9f082421' AND "clubhouse_memberships"."organization_id" = '8525c028-174f-4847-bc15-d3c473368f5a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7d8d4334-fe92-4793-ba9b-abfb9f082421"], ["organization_id", "8525c028-174f-4847-bc15-d3c473368f5a"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.845883"], ["updated_at", "2015-07-06 21:25:11.845883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = '8525c028-174f-4847-bc15-d3c473368f5a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "8525c028-174f-4847-bc15-d3c473368f5a"], ["created_at", "2015-07-06 21:25:11.849940"], ["updated_at", "2015-07-06 21:25:11.849940"], ["token", "-tlI5ff5rKXSEGODjlNlYvbJlbmqEmWchwBaKp8XOfU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:25:11 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:11.853232') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c24d153a-94fe-4bd3-a946-42810947e525"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:11.854749"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:11.855590"], ["id", "c24d153a-94fe-4bd3-a946-42810947e525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7d8d4334-fe92-4793-ba9b-abfb9f082421"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '7d8d4334-fe92-4793-ba9b-abfb9f082421' LIMIT 1 [["organization_id", "8525c028-174f-4847-bc15-d3c473368f5a"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8525c028-174f-4847-bc15-d3c473368f5a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "8525c028-174f-4847-bc15-d3c473368f5a"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.865773"], ["updated_at", "2015-07-06 21:25:11.865773"], ["token", "rfFBPVuLuozlm7yGioMMk61E4SZFTsTW6s_oM2B_pnE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d5129022-a629-46be-8a2b-78ec406ec329) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/964e10c8-7930-40da-8e18-4c2203132e85 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "964e10c8-7930-40da-8e18-4c2203132e85"]] [ActiveJob] [ActionMailer::DeliveryJob] [d5129022-a629-46be-8a2b-78ec406ec329] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/964e10c8-7930-40da-8e18-4c2203132e85 [ActiveJob] [ActionMailer::DeliveryJob] [d5129022-a629-46be-8a2b-78ec406ec329] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8525c028-174f-4847-bc15-d3c473368f5a"]] [ActiveJob] [ActionMailer::DeliveryJob] [d5129022-a629-46be-8a2b-78ec406ec329] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [d5129022-a629-46be-8a2b-78ec406ec329] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [d5129022-a629-46be-8a2b-78ec406ec329] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [d5129022-a629-46be-8a2b-78ec406ec329] Date: Mon, 06 Jul 2015 14:25:11 -0700 From: from@example.com To: email@example.com Message-ID: <559af237db036_10c473fcaf84602004942d@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/rfFBPVuLuozlm7yGioMMk61E4SZFTsTW6s_oM2B_pnE?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d5129022-a629-46be-8a2b-78ec406ec329] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.78ms Completed 201 Created in 46ms (Views: 0.7ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 107"], ["email", "user.107@example.com"], ["password_digest", "$2a$04$L7NbuECVeIUbarNJBcApxeNNwcJlcKbGCkjA3GypGcgjvuRhqeqtC"], ["created_at", "2015-07-06 21:25:11.905322"], ["updated_at", "2015-07-06 21:25:11.905322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.906936"], ["user_id", "563ccb76-9eee-4a3f-9740-c2cea43dc1f9"], ["created_at", "2015-07-06 21:25:11.907524"], ["updated_at", "2015-07-06 21:25:11.907524"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.911924"], ["updated_at", "2015-07-06 21:25:11.911924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '563ccb76-9eee-4a3f-9740-c2cea43dc1f9' AND "clubhouse_memberships"."organization_id" = 'df3819ec-2db9-48a6-8735-218e5d41ac35') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "563ccb76-9eee-4a3f-9740-c2cea43dc1f9"], ["organization_id", "df3819ec-2db9-48a6-8735-218e5d41ac35"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.914924"], ["updated_at", "2015-07-06 21:25:11.914924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'df3819ec-2db9-48a6-8735-218e5d41ac35') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "df3819ec-2db9-48a6-8735-218e5d41ac35"], ["created_at", "2015-07-06 21:25:11.918884"], ["updated_at", "2015-07-06 21:25:11.918884"], ["token", "G6bIX_gAt3d9r_IlkiBIDsF-I4itTtRvNWxjLLkehBw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:25:11 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:11.921987') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "b9eda5c0-b961-4e32-9bec-4c39aeeaabdf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:11.923368"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:11.924129"], ["id", "b9eda5c0-b961-4e32-9bec-4c39aeeaabdf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "563ccb76-9eee-4a3f-9740-c2cea43dc1f9"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '563ccb76-9eee-4a3f-9740-c2cea43dc1f9' LIMIT 1 [["organization_id", "df3819ec-2db9-48a6-8735-218e5d41ac35"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'df3819ec-2db9-48a6-8735-218e5d41ac35') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "df3819ec-2db9-48a6-8735-218e5d41ac35"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.931926"], ["updated_at", "2015-07-06 21:25:11.931926"], ["token", "VJ7WpilgMTYAQLBwAjcoC2E34yI_HuvKPhDEGauSyC0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 4b3405c7-16d4-40e7-847f-823ed3d3056f) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/cbeddf6f-d67f-477a-a4ad-c1100341a70f [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "cbeddf6f-d67f-477a-a4ad-c1100341a70f"]] [ActiveJob] [ActionMailer::DeliveryJob] [4b3405c7-16d4-40e7-847f-823ed3d3056f] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/cbeddf6f-d67f-477a-a4ad-c1100341a70f [ActiveJob] [ActionMailer::DeliveryJob] [4b3405c7-16d4-40e7-847f-823ed3d3056f] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "df3819ec-2db9-48a6-8735-218e5d41ac35"]] [ActiveJob] [ActionMailer::DeliveryJob] [4b3405c7-16d4-40e7-847f-823ed3d3056f] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [4b3405c7-16d4-40e7-847f-823ed3d3056f] Clubhouse::Mailer#invitation: processed outbound mail in 2.6ms [ActiveJob] [ActionMailer::DeliveryJob] [4b3405c7-16d4-40e7-847f-823ed3d3056f] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [4b3405c7-16d4-40e7-847f-823ed3d3056f] Date: Mon, 06 Jul 2015 14:25:11 -0700 From: from@example.com To: email@example.com Message-ID: <559af237e5d90_10c473fcaf8460200495a1@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/VJ7WpilgMTYAQLBwAjcoC2E34yI_HuvKPhDEGauSyC0?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [4b3405c7-16d4-40e7-847f-823ed3d3056f] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.41ms Completed 201 Created in 21ms (Views: 0.6ms | ActiveRecord: 2.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 108"], ["email", "user.108@example.com"], ["password_digest", "$2a$04$ZbWUHv8/PQ.bLV3nfFz9LenCCva9UVZ/.gtbuX.ZoLTREwQdwLP2e"], ["created_at", "2015-07-06 21:25:11.949758"], ["updated_at", "2015-07-06 21:25:11.949758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.951513"], ["user_id", "9db572d0-4caa-49b0-ba7f-7160280b7314"], ["created_at", "2015-07-06 21:25:11.952118"], ["updated_at", "2015-07-06 21:25:11.952118"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:11.956097"], ["updated_at", "2015-07-06 21:25:11.956097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9db572d0-4caa-49b0-ba7f-7160280b7314' AND "clubhouse_memberships"."organization_id" = '5d507a53-113b-408e-b0e9-6e8092b8eb17') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9db572d0-4caa-49b0-ba7f-7160280b7314"], ["organization_id", "5d507a53-113b-408e-b0e9-6e8092b8eb17"], ["admin", "t"], ["created_at", "2015-07-06 21:25:11.959026"], ["updated_at", "2015-07-06 21:25:11.959026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '5d507a53-113b-408e-b0e9-6e8092b8eb17') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "5d507a53-113b-408e-b0e9-6e8092b8eb17"], ["created_at", "2015-07-06 21:25:11.963385"], ["updated_at", "2015-07-06 21:25:11.963385"], ["token", "qnwDxv4t5NJjhK1vaG8dnxKyCYsMygmdUm-Yn0Bj8uo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:25:11 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:11.966279') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9858b731-bf51-4e8e-af65-d1b551053e3b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:11.967654"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:11.968391"], ["id", "9858b731-bf51-4e8e-af65-d1b551053e3b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9db572d0-4caa-49b0-ba7f-7160280b7314"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9db572d0-4caa-49b0-ba7f-7160280b7314' LIMIT 1 [["organization_id", "5d507a53-113b-408e-b0e9-6e8092b8eb17"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '5d507a53-113b-408e-b0e9-6e8092b8eb17') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 15ms (ActiveRecord: 2.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 109"], ["email", "user.109@example.com"], ["password_digest", "$2a$04$t6Unl5vpkZhr0weleArwtO.w4U62mz7uFIoVU15CL7vRf/2kjKfn6"], ["created_at", "2015-07-06 21:25:11.998219"], ["updated_at", "2015-07-06 21:25:11.998219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:11.999882"], ["user_id", "21105f15-3768-4c0c-961b-536fd8c24ca5"], ["created_at", "2015-07-06 21:25:12.000502"], ["updated_at", "2015-07-06 21:25:12.000502"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.004448"], ["updated_at", "2015-07-06 21:25:12.004448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '21105f15-3768-4c0c-961b-536fd8c24ca5' AND "clubhouse_memberships"."organization_id" = '7c8f4e32-2454-4bdb-b1e4-dcf450201a49') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "21105f15-3768-4c0c-961b-536fd8c24ca5"], ["organization_id", "7c8f4e32-2454-4bdb-b1e4-dcf450201a49"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.007553"], ["updated_at", "2015-07-06 21:25:12.007553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = '7c8f4e32-2454-4bdb-b1e4-dcf450201a49') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "7c8f4e32-2454-4bdb-b1e4-dcf450201a49"], ["created_at", "2015-07-06 21:25:12.011837"], ["updated_at", "2015-07-06 21:25:12.011837"], ["token", "UOyj6yGFMbVMRH1VhEVGKydlT1I3VwQirdiZJ-7AYF8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/86fa61f0-8bd3-4416-ad7d-86cbe10a5d8c" for 127.0.0.1 at 2015-07-06 14:25:12 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"86fa61f0-8bd3-4416-ad7d-86cbe10a5d8c", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:12.014871') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e1081659-03b4-49e9-b2a0-facfcf1636be"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:12.017279"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:12.018345"], ["id", "e1081659-03b4-49e9-b2a0-facfcf1636be"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "86fa61f0-8bd3-4416-ad7d-86cbe10a5d8c"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "21105f15-3768-4c0c-961b-536fd8c24ca5"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "7c8f4e32-2454-4bdb-b1e4-dcf450201a49"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '21105f15-3768-4c0c-961b-536fd8c24ca5' LIMIT 1 [["organization_id", "7c8f4e32-2454-4bdb-b1e4-dcf450201a49"], ["admin", "t"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "86fa61f0-8bd3-4416-ad7d-86cbe10a5d8c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 110"], ["email", "user.110@example.com"], ["password_digest", "$2a$04$zYCi3n22BPCI9.4s8wWMRucjsgSaPLoX5u6w1.2MjRbCvzc2ysrKG"], ["created_at", "2015-07-06 21:25:12.031893"], ["updated_at", "2015-07-06 21:25:12.031893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:12.033626"], ["user_id", "74ff24e9-f6dd-4cbf-97f8-69276937e7b4"], ["created_at", "2015-07-06 21:25:12.034352"], ["updated_at", "2015-07-06 21:25:12.034352"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.038722"], ["updated_at", "2015-07-06 21:25:12.038722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '74ff24e9-f6dd-4cbf-97f8-69276937e7b4' AND "clubhouse_memberships"."organization_id" = 'b48c35b9-58bf-46b0-b754-a753fd389d2e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "74ff24e9-f6dd-4cbf-97f8-69276937e7b4"], ["organization_id", "b48c35b9-58bf-46b0-b754-a753fd389d2e"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.041842"], ["updated_at", "2015-07-06 21:25:12.041842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'b48c35b9-58bf-46b0-b754-a753fd389d2e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "b48c35b9-58bf-46b0-b754-a753fd389d2e"], ["created_at", "2015-07-06 21:25:12.045845"], ["updated_at", "2015-07-06 21:25:12.045845"], ["token", "3QIMcCaRffvigBnozTGmrcIjz5chq-DM4uewjHAskbY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-07-06 14:25:12 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 111"], ["email", "user.111@example.com"], ["password_digest", "$2a$04$HTIlfjEKase/U/THnlf2V.hHvrPMWgM4AdQfSdnr13tL1n4KlSh6a"], ["created_at", "2015-07-06 21:25:12.054784"], ["updated_at", "2015-07-06 21:25:12.054784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:12.056340"], ["user_id", "1303a6b2-077a-4f7b-ae77-3d75793aa43d"], ["created_at", "2015-07-06 21:25:12.056924"], ["updated_at", "2015-07-06 21:25:12.056924"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.060810"], ["updated_at", "2015-07-06 21:25:12.060810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1303a6b2-077a-4f7b-ae77-3d75793aa43d' AND "clubhouse_memberships"."organization_id" = '3046ad67-9f28-4700-9ec6-1d135299d3a9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1303a6b2-077a-4f7b-ae77-3d75793aa43d"], ["organization_id", "3046ad67-9f28-4700-9ec6-1d135299d3a9"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.064647"], ["updated_at", "2015-07-06 21:25:12.064647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '3046ad67-9f28-4700-9ec6-1d135299d3a9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "3046ad67-9f28-4700-9ec6-1d135299d3a9"], ["created_at", "2015-07-06 21:25:12.068831"], ["updated_at", "2015-07-06 21:25:12.068831"], ["token", "vDVLcdoLoNDmit5cIqg7a5Tdm_ON5VdxUNQ5oQ6D7aQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/227196e9-47a4-425e-883b-c8a3c9312d73" for 127.0.0.1 at 2015-07-06 14:25:12 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"227196e9-47a4-425e-883b-c8a3c9312d73", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:12.071783') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4e5ae648-552e-47cd-ae9e-52e4bcc26b54"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:12.073310"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:12.074191"], ["id", "4e5ae648-552e-47cd-ae9e-52e4bcc26b54"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "227196e9-47a4-425e-883b-c8a3c9312d73"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1303a6b2-077a-4f7b-ae77-3d75793aa43d"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "3046ad67-9f28-4700-9ec6-1d135299d3a9"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '1303a6b2-077a-4f7b-ae77-3d75793aa43d' LIMIT 1 [["organization_id", "3046ad67-9f28-4700-9ec6-1d135299d3a9"], ["admin", "t"]] Completed 200 OK in 9ms (Views: 0.9ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 112"], ["email", "user.112@example.com"], ["password_digest", "$2a$04$nMi1UXobiuMqkz/L6OlwgOBxMhzRKUhks78HQ0Q8YHOquvXxF2AVS"], ["created_at", "2015-07-06 21:25:12.087811"], ["updated_at", "2015-07-06 21:25:12.087811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:12.089642"], ["user_id", "3f4b4e22-860c-4b92-8b27-c81cf387781d"], ["created_at", "2015-07-06 21:25:12.090346"], ["updated_at", "2015-07-06 21:25:12.090346"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.094603"], ["updated_at", "2015-07-06 21:25:12.094603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3f4b4e22-860c-4b92-8b27-c81cf387781d' AND "clubhouse_memberships"."organization_id" = '92b46887-bdf3-4573-afea-0ac178184329') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3f4b4e22-860c-4b92-8b27-c81cf387781d"], ["organization_id", "92b46887-bdf3-4573-afea-0ac178184329"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.097949"], ["updated_at", "2015-07-06 21:25:12.097949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = '92b46887-bdf3-4573-afea-0ac178184329') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "92b46887-bdf3-4573-afea-0ac178184329"], ["created_at", "2015-07-06 21:25:12.102209"], ["updated_at", "2015-07-06 21:25:12.102209"], ["token", "ZOEC5ZP9CwFKXlE0zJuo62zepi5W8SODFhmRstWskFI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-07-06 14:25:12 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 113"], ["email", "user.113@example.com"], ["password_digest", "$2a$04$IP8YSAy/q9Bulw5s3Xf8j.RFLR492vQPYFj0BvhB2gtLfNRQW09Du"], ["created_at", "2015-07-06 21:25:12.113908"], ["updated_at", "2015-07-06 21:25:12.113908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:12.115899"], ["user_id", "c218672d-3658-493d-b633-7c868af1d0d5"], ["created_at", "2015-07-06 21:25:12.116654"], ["updated_at", "2015-07-06 21:25:12.116654"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.122861"], ["updated_at", "2015-07-06 21:25:12.122861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c218672d-3658-493d-b633-7c868af1d0d5' AND "clubhouse_memberships"."organization_id" = 'c1d71c9c-6397-48f7-89f7-4693f141aa46') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c218672d-3658-493d-b633-7c868af1d0d5"], ["organization_id", "c1d71c9c-6397-48f7-89f7-4693f141aa46"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.126469"], ["updated_at", "2015-07-06 21:25:12.126469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = 'c1d71c9c-6397-48f7-89f7-4693f141aa46') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "c1d71c9c-6397-48f7-89f7-4693f141aa46"], ["created_at", "2015-07-06 21:25:12.130857"], ["updated_at", "2015-07-06 21:25:12.130857"], ["token", "VUSym3-7GsaeFfirlcW5Vr1CR0cIc7evpDoOuq3t8WM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-07-06 14:25:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 114"], ["email", "user.114@example.com"], ["password_digest", "$2a$04$1B5dh6Vv7yRFjOF5S4nJwOynx1dqD7SIrGMayJ003Uh2H4UNGOATO"], ["created_at", "2015-07-06 21:25:12.140616"], ["updated_at", "2015-07-06 21:25:12.140616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:12.142445"], ["user_id", "10d330c5-01b8-4f2e-81be-facf19f1900a"], ["created_at", "2015-07-06 21:25:12.143024"], ["updated_at", "2015-07-06 21:25:12.143024"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.147080"], ["updated_at", "2015-07-06 21:25:12.147080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '10d330c5-01b8-4f2e-81be-facf19f1900a' AND "clubhouse_memberships"."organization_id" = '9c0df72b-0bd5-4da3-b2f3-a75ffce7209f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "10d330c5-01b8-4f2e-81be-facf19f1900a"], ["organization_id", "9c0df72b-0bd5-4da3-b2f3-a75ffce7209f"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.150186"], ["updated_at", "2015-07-06 21:25:12.150186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '9c0df72b-0bd5-4da3-b2f3-a75ffce7209f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "9c0df72b-0bd5-4da3-b2f3-a75ffce7209f"], ["created_at", "2015-07-06 21:25:12.154142"], ["updated_at", "2015-07-06 21:25:12.154142"], ["token", "pQfotZDM8sEJabO4fA0zIe1foEUYjBwumUo7BKcsO3U"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/9c0df72b-0bd5-4da3-b2f3-a75ffce7209f/invitations" for 127.0.0.1 at 2015-07-06 14:25:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"9c0df72b-0bd5-4da3-b2f3-a75ffce7209f", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:12.157316') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4b319517-7ec7-43e1-ac8c-047a389a854f"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:12.158668"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:12.159397"], ["id", "4b319517-7ec7-43e1-ac8c-047a389a854f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "9c0df72b-0bd5-4da3-b2f3-a75ffce7209f"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "10d330c5-01b8-4f2e-81be-facf19f1900a"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '10d330c5-01b8-4f2e-81be-facf19f1900a' LIMIT 1 [["organization_id", "9c0df72b-0bd5-4da3-b2f3-a75ffce7209f"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '9c0df72b-0bd5-4da3-b2f3-a75ffce7209f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "9c0df72b-0bd5-4da3-b2f3-a75ffce7209f"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.167174"], ["updated_at", "2015-07-06 21:25:12.167174"], ["token", "gYonCeXwIzY3GscXD8GydXS3Dhg_Zhjy_XTaLP5MiC4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ea15436b-1786-4ef8-a9ab-147beb6db471) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/dca885ce-0762-48e7-a1bb-2eba55e6d329 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "dca885ce-0762-48e7-a1bb-2eba55e6d329"]] [ActiveJob] [ActionMailer::DeliveryJob] [ea15436b-1786-4ef8-a9ab-147beb6db471] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/dca885ce-0762-48e7-a1bb-2eba55e6d329 [ActiveJob] [ActionMailer::DeliveryJob] [ea15436b-1786-4ef8-a9ab-147beb6db471] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9c0df72b-0bd5-4da3-b2f3-a75ffce7209f"]] [ActiveJob] [ActionMailer::DeliveryJob] [ea15436b-1786-4ef8-a9ab-147beb6db471] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [ea15436b-1786-4ef8-a9ab-147beb6db471] Clubhouse::Mailer#invitation: processed outbound mail in 2.3ms [ActiveJob] [ActionMailer::DeliveryJob] [ea15436b-1786-4ef8-a9ab-147beb6db471] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [ea15436b-1786-4ef8-a9ab-147beb6db471] Date: Mon, 06 Jul 2015 14:25:12 -0700 From: from@example.com To: email@example.com Message-ID: <559af2382aae8_10c473fcaf8460200496b9@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/gYonCeXwIzY3GscXD8GydXS3Dhg_Zhjy_XTaLP5MiC4?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [ea15436b-1786-4ef8-a9ab-147beb6db471] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.51ms Completed 201 Created in 19ms (Views: 0.6ms | ActiveRecord: 2.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 115"], ["email", "user.115@example.com"], ["password_digest", "$2a$04$eCl3y3l5PHWPgNxmRrjvhOJYSbasJOUfdn84oPGMeZ3UjaZqhdSWm"], ["created_at", "2015-07-06 21:25:12.183348"], ["updated_at", "2015-07-06 21:25:12.183348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:12.185049"], ["user_id", "9f1d707b-15ce-442a-be66-b7e229f7775c"], ["created_at", "2015-07-06 21:25:12.185889"], ["updated_at", "2015-07-06 21:25:12.185889"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.190608"], ["updated_at", "2015-07-06 21:25:12.190608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f1d707b-15ce-442a-be66-b7e229f7775c' AND "clubhouse_memberships"."organization_id" = '40da9f37-53f1-4bc4-9fa1-99846ae747c4') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9f1d707b-15ce-442a-be66-b7e229f7775c"], ["organization_id", "40da9f37-53f1-4bc4-9fa1-99846ae747c4"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.194163"], ["updated_at", "2015-07-06 21:25:12.194163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '40da9f37-53f1-4bc4-9fa1-99846ae747c4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "40da9f37-53f1-4bc4-9fa1-99846ae747c4"], ["created_at", "2015-07-06 21:25:12.198577"], ["updated_at", "2015-07-06 21:25:12.198577"], ["token", "f8tHBbV1TtpeojLPGP1O1GJxXPz60e4t7y6jsdCgs0I"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/40da9f37-53f1-4bc4-9fa1-99846ae747c4/invitations" for 127.0.0.1 at 2015-07-06 14:25:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"40da9f37-53f1-4bc4-9fa1-99846ae747c4", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.5ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:12.203382') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "efb53668-f4de-425c-b3af-f5d4b97d4e1a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:12.206145"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:12.207632"], ["id", "efb53668-f4de-425c-b3af-f5d4b97d4e1a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "40da9f37-53f1-4bc4-9fa1-99846ae747c4"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9f1d707b-15ce-442a-be66-b7e229f7775c"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9f1d707b-15ce-442a-be66-b7e229f7775c' LIMIT 1 [["organization_id", "40da9f37-53f1-4bc4-9fa1-99846ae747c4"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '40da9f37-53f1-4bc4-9fa1-99846ae747c4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "40da9f37-53f1-4bc4-9fa1-99846ae747c4"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.219403"], ["updated_at", "2015-07-06 21:25:12.219403"], ["token", "Hcvnu2qOKU5qJZCn0yxjqEXHiHOaqZp8Hk7yqAzE30o"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 8ad4f07f-859b-4c06-9c54-08e189d35d68) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9d9ce4ef-51d9-4dac-9d81-1f46cba5f84c [ActiveJob] Clubhouse::Invitation Load (0.1ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "9d9ce4ef-51d9-4dac-9d81-1f46cba5f84c"]] [ActiveJob] [ActionMailer::DeliveryJob] [8ad4f07f-859b-4c06-9c54-08e189d35d68] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/9d9ce4ef-51d9-4dac-9d81-1f46cba5f84c [ActiveJob] [ActionMailer::DeliveryJob] [8ad4f07f-859b-4c06-9c54-08e189d35d68] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "40da9f37-53f1-4bc4-9fa1-99846ae747c4"]] [ActiveJob] [ActionMailer::DeliveryJob] [8ad4f07f-859b-4c06-9c54-08e189d35d68] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [8ad4f07f-859b-4c06-9c54-08e189d35d68] Clubhouse::Mailer#invitation: processed outbound mail in 2.7ms [ActiveJob] [ActionMailer::DeliveryJob] [8ad4f07f-859b-4c06-9c54-08e189d35d68] Sent mail to email@example.com (1.6ms) [ActiveJob] [ActionMailer::DeliveryJob] [8ad4f07f-859b-4c06-9c54-08e189d35d68] Date: Mon, 06 Jul 2015 14:25:12 -0700 From: from@example.com To: email@example.com Message-ID: <559af2383791b_10c473fcaf8460200497c0@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/Hcvnu2qOKU5qJZCn0yxjqEXHiHOaqZp8Hk7yqAzE30o?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [8ad4f07f-859b-4c06-9c54-08e189d35d68] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.76ms Completed 201 Created in 27ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 116"], ["email", "user.116@example.com"], ["password_digest", "$2a$04$/3QGALszieiLVHMDZSrxLulRLfzDoUU5HdjSHW8SA7pWCSEhA4Vfy"], ["created_at", "2015-07-06 21:25:12.236850"], ["updated_at", "2015-07-06 21:25:12.236850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:12.238915"], ["user_id", "499c55dd-8903-47cf-a7d9-d717fff126d3"], ["created_at", "2015-07-06 21:25:12.239595"], ["updated_at", "2015-07-06 21:25:12.239595"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.244210"], ["updated_at", "2015-07-06 21:25:12.244210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '499c55dd-8903-47cf-a7d9-d717fff126d3' AND "clubhouse_memberships"."organization_id" = '1a664039-c739-40a9-8c50-2ca64eb110fe') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "499c55dd-8903-47cf-a7d9-d717fff126d3"], ["organization_id", "1a664039-c739-40a9-8c50-2ca64eb110fe"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.247906"], ["updated_at", "2015-07-06 21:25:12.247906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = '1a664039-c739-40a9-8c50-2ca64eb110fe') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "1a664039-c739-40a9-8c50-2ca64eb110fe"], ["created_at", "2015-07-06 21:25:12.252375"], ["updated_at", "2015-07-06 21:25:12.252375"], ["token", "5iK9-doR9ls-qvdmCWktYgNQ5uY-8UO8Y_xc8CSgkEg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1a664039-c739-40a9-8c50-2ca64eb110fe/invitations" for 127.0.0.1 at 2015-07-06 14:25:12 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"1a664039-c739-40a9-8c50-2ca64eb110fe", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:12.256002') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "25de723d-45d1-4ffd-b48b-f45be0a02841"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:12.257449"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:12.258317"], ["id", "25de723d-45d1-4ffd-b48b-f45be0a02841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1a664039-c739-40a9-8c50-2ca64eb110fe"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "499c55dd-8903-47cf-a7d9-d717fff126d3"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '499c55dd-8903-47cf-a7d9-d717fff126d3' LIMIT 1 [["organization_id", "1a664039-c739-40a9-8c50-2ca64eb110fe"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '1a664039-c739-40a9-8c50-2ca64eb110fe') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 1.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 117"], ["email", "user.117@example.com"], ["password_digest", "$2a$04$0y0quzoMEprMPi8MHxMH1erqjh.XVQEkU0DMW9MYeuvzkvGC1YfUW"], ["created_at", "2015-07-06 21:25:12.276514"], ["updated_at", "2015-07-06 21:25:12.276514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 118"], ["email", "user.118@example.com"], ["password_digest", "$2a$04$zsbOed8RTOFjaw4ceRBj/OKi975gCORgpL3Koyiij11ZQ2OMrRTD."], ["created_at", "2015-07-06 21:25:12.281671"], ["updated_at", "2015-07-06 21:25:12.281671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.285673"], ["updated_at", "2015-07-06 21:25:12.285673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b51b6acb-831b-426f-9fe5-da7855879882' AND "clubhouse_memberships"."organization_id" = 'e31db3ac-9671-406d-a264-0c7c7620ecd7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b51b6acb-831b-426f-9fe5-da7855879882"], ["organization_id", "e31db3ac-9671-406d-a264-0c7c7620ecd7"], ["created_at", "2015-07-06 21:25:12.288856"], ["updated_at", "2015-07-06 21:25:12.288856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '5b06d066-fe0d-463d-affb-e8840a2794c2' LIMIT 1 [["organization_id", "e31db3ac-9671-406d-a264-0c7c7620ecd7"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 119"], ["email", "user.119@example.com"], ["password_digest", "$2a$04$H2Ywg0QWoYV/STT4XvM36uQ7MoFIiqG9ow.MF8fqStXOvJVATI3ae"], ["created_at", "2015-07-06 21:25:12.297318"], ["updated_at", "2015-07-06 21:25:12.297318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 120"], ["email", "user.120@example.com"], ["password_digest", "$2a$04$3oL7wCb63p/OBHbYIw8ndeyFm6lvWqzst7Agg915FGaouyAqKiQT6"], ["created_at", "2015-07-06 21:25:12.302530"], ["updated_at", "2015-07-06 21:25:12.302530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.307278"], ["updated_at", "2015-07-06 21:25:12.307278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8df36d63-da7b-4b0e-85cb-68f95c4f3706' AND "clubhouse_memberships"."organization_id" = '891bd9dc-befa-4f43-86dc-9a1fbfc46f8b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "8df36d63-da7b-4b0e-85cb-68f95c4f3706"], ["organization_id", "891bd9dc-befa-4f43-86dc-9a1fbfc46f8b"], ["created_at", "2015-07-06 21:25:12.311230"], ["updated_at", "2015-07-06 21:25:12.311230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '815455c3-e829-4e06-b4d0-a75e3db7bd70' LIMIT 1 [["organization_id", "891bd9dc-befa-4f43-86dc-9a1fbfc46f8b"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 121"], ["email", "user.121@example.com"], ["password_digest", "$2a$04$2EDOpQs9vt51Nk6TtCU8Nepu8uefAF5l1A5jPvqi9j5q4tRAZbbpS"], ["created_at", "2015-07-06 21:25:12.319882"], ["updated_at", "2015-07-06 21:25:12.319882"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 122"], ["email", "user.122@example.com"], ["password_digest", "$2a$04$x2gIdMwew86SrDmv6crTi.NsrJyKqoolYf.SFrO0UwOeo4qIrGcfi"], ["created_at", "2015-07-06 21:25:12.325675"], ["updated_at", "2015-07-06 21:25:12.325675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.329975"], ["updated_at", "2015-07-06 21:25:12.329975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4dbed2de-6a55-46c6-a518-828d01034633' AND "clubhouse_memberships"."organization_id" = '7e885c86-469a-47c8-ab79-07b583de42a7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4dbed2de-6a55-46c6-a518-828d01034633"], ["organization_id", "7e885c86-469a-47c8-ab79-07b583de42a7"], ["created_at", "2015-07-06 21:25:12.333496"], ["updated_at", "2015-07-06 21:25:12.333496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 123"], ["email", "user.123@example.com"], ["password_digest", "$2a$04$MmGVCNCiEQvQtT8cREZ8Lut2yMkfZyKPb31VFxOf9EqY/topAjJcW"], ["created_at", "2015-07-06 21:25:12.340938"], ["updated_at", "2015-07-06 21:25:12.340938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 124"], ["email", "user.124@example.com"], ["password_digest", "$2a$04$lyrjGk/wGsbGg1oCjk3zWePhImlJxWa4ZDS3JTVlrPjB/.prCdMGe"], ["created_at", "2015-07-06 21:25:12.347363"], ["updated_at", "2015-07-06 21:25:12.347363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.353267"], ["updated_at", "2015-07-06 21:25:12.353267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c1af9d44-11c7-4b99-92f2-da6a5324bcb0' AND "clubhouse_memberships"."organization_id" = '582574ba-9a6d-4000-89ec-f26a1ff54f33') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c1af9d44-11c7-4b99-92f2-da6a5324bcb0"], ["organization_id", "582574ba-9a6d-4000-89ec-f26a1ff54f33"], ["created_at", "2015-07-06 21:25:12.357407"], ["updated_at", "2015-07-06 21:25:12.357407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6138d73c-cefc-4f36-881d-28d5ff5f4c93' LIMIT 1 [["organization_id", "582574ba-9a6d-4000-89ec-f26a1ff54f33"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 125"], ["email", "user.125@example.com"], ["password_digest", "$2a$04$U0vSiElGvV78Mp5yGlOwY.RsjFEI0VkCKr1XVS1Nh1SbNv32tFJYa"], ["created_at", "2015-07-06 21:25:12.367862"], ["updated_at", "2015-07-06 21:25:12.367862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.372842"], ["updated_at", "2015-07-06 21:25:12.372842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f87e4101-8c0c-416b-a6b5-24c8533a68b4' LIMIT 1 [["organization_id", "de0f0ac6-f2eb-44b7-a6f0-1d17e99e7173"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 126"], ["email", "user.126@example.com"], ["password_digest", "$2a$04$0I8mUpEFYLmUoy91uuoJouiQl8DdQrrB0RJZGrg/Jj/tR4JV78G2e"], ["created_at", "2015-07-06 21:25:12.383165"], ["updated_at", "2015-07-06 21:25:12.383165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.387987"], ["updated_at", "2015-07-06 21:25:12.387987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a0ffba59-45d4-4b2b-9978-0300daccfdce' AND "clubhouse_memberships"."organization_id" = 'e67f6d65-2ff8-445f-83f3-cee267900e76') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "a0ffba59-45d4-4b2b-9978-0300daccfdce"], ["organization_id", "e67f6d65-2ff8-445f-83f3-cee267900e76"], ["created_at", "2015-07-06 21:25:12.391755"], ["updated_at", "2015-07-06 21:25:12.391755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a0ffba59-45d4-4b2b-9978-0300daccfdce' LIMIT 1 [["organization_id", "e67f6d65-2ff8-445f-83f3-cee267900e76"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 127"], ["email", "user.127@example.com"], ["password_digest", "$2a$04$EthYzKiwSDQ.PCQpBaGJD.ItVCpkD7x3UMVl8oROYJ7FOBB1qL.VK"], ["created_at", "2015-07-06 21:25:12.403224"], ["updated_at", "2015-07-06 21:25:12.403224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.407768"], ["updated_at", "2015-07-06 21:25:12.407768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9c927143-6f72-4905-86b4-0390c8ffb087' AND "clubhouse_memberships"."organization_id" = '6e48a0ba-ba0f-4e1e-b51d-d93cd9de7ddd') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9c927143-6f72-4905-86b4-0390c8ffb087"], ["organization_id", "6e48a0ba-ba0f-4e1e-b51d-d93cd9de7ddd"], ["created_at", "2015-07-06 21:25:12.412022"], ["updated_at", "2015-07-06 21:25:12.412022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9c927143-6f72-4905-86b4-0390c8ffb087' LIMIT 1 [["organization_id", "6e48a0ba-ba0f-4e1e-b51d-d93cd9de7ddd"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 128"], ["email", "user.128@example.com"], ["password_digest", "$2a$04$i6.h9tzDe5VChiD5W19f8ekhzT5moCXF9me.mdJ65i0UmIunrUtWy"], ["created_at", "2015-07-06 21:25:12.420637"], ["updated_at", "2015-07-06 21:25:12.420637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.424798"], ["updated_at", "2015-07-06 21:25:12.424798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '27980899-dace-4b9a-aaaf-905a088207e6' AND "clubhouse_memberships"."organization_id" = 'd650e418-a50d-484c-9da5-ab260abb9ef9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "27980899-dace-4b9a-aaaf-905a088207e6"], ["organization_id", "d650e418-a50d-484c-9da5-ab260abb9ef9"], ["created_at", "2015-07-06 21:25:12.428028"], ["updated_at", "2015-07-06 21:25:12.428028"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '27980899-dace-4b9a-aaaf-905a088207e6' LIMIT 1 [["organization_id", "d650e418-a50d-484c-9da5-ab260abb9ef9"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 129"], ["email", "user.129@example.com"], ["password_digest", "$2a$04$RNkOUvl77y07bU9EHShysOUtu2Ttu83trijsZ972gq1LwRlURk07i"], ["created_at", "2015-07-06 21:25:12.437337"], ["updated_at", "2015-07-06 21:25:12.437337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.442581"], ["updated_at", "2015-07-06 21:25:12.442581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '39bc1f1f-4c6c-4736-98d5-8d1cf5bd6161' AND "clubhouse_memberships"."organization_id" = 'cf3c0b3c-39a1-45d8-b412-bb08f506cffd') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "39bc1f1f-4c6c-4736-98d5-8d1cf5bd6161"], ["organization_id", "cf3c0b3c-39a1-45d8-b412-bb08f506cffd"], ["created_at", "2015-07-06 21:25:12.445932"], ["updated_at", "2015-07-06 21:25:12.445932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 130"], ["email", "user.130@example.com"], ["password_digest", "$2a$04$5P0S4GvX7JbJYn0ZZGAjJeHqJWNz3pYZFlFNiOZXuSmIv7L2bHyAO"], ["created_at", "2015-07-06 21:25:12.454242"], ["updated_at", "2015-07-06 21:25:12.454242"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.458981"], ["updated_at", "2015-07-06 21:25:12.458981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9eb45ca0-c108-4647-bf13-0b34072ee0ac' AND "clubhouse_memberships"."organization_id" = '2d919648-fb2f-4a33-b8ec-1c37aee0da67') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9eb45ca0-c108-4647-bf13-0b34072ee0ac"], ["organization_id", "2d919648-fb2f-4a33-b8ec-1c37aee0da67"], ["created_at", "2015-07-06 21:25:12.462244"], ["updated_at", "2015-07-06 21:25:12.462244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9eb45ca0-c108-4647-bf13-0b34072ee0ac' LIMIT 1 [["organization_id", "2d919648-fb2f-4a33-b8ec-1c37aee0da67"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 131"], ["email", "user.131@example.com"], ["password_digest", "$2a$04$8TZIoytRsdIvEB68SkNKJOMdXahHIyWXPfz7AK98KxIKD72NKmwz6"], ["created_at", "2015-07-06 21:25:12.471816"], ["updated_at", "2015-07-06 21:25:12.471816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.476019"], ["updated_at", "2015-07-06 21:25:12.476019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2989ae1d-9ae0-4960-8d2a-e80f21e7810b' AND "clubhouse_memberships"."organization_id" = '8e37ebd5-2fdc-4620-9432-77c6c5e1f125') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2989ae1d-9ae0-4960-8d2a-e80f21e7810b"], ["organization_id", "8e37ebd5-2fdc-4620-9432-77c6c5e1f125"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.479555"], ["updated_at", "2015-07-06 21:25:12.479555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2989ae1d-9ae0-4960-8d2a-e80f21e7810b' LIMIT 1 [["organization_id", "8e37ebd5-2fdc-4620-9432-77c6c5e1f125"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 132"], ["email", "user.132@example.com"], ["password_digest", "$2a$04$5.N8D2u4Vpaydm75vinAHe4hIMw6uexQveGoUTjzSrPhfzJkZYf3a"], ["created_at", "2015-07-06 21:25:12.489732"], ["updated_at", "2015-07-06 21:25:12.489732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.494080"], ["updated_at", "2015-07-06 21:25:12.494080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd835c0c6-d010-4a4e-94cb-ed681a2a18db' AND "clubhouse_memberships"."organization_id" = '1e7bbdec-5b7a-48e4-a7a4-7db7d254a308') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d835c0c6-d010-4a4e-94cb-ed681a2a18db"], ["organization_id", "1e7bbdec-5b7a-48e4-a7a4-7db7d254a308"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.497617"], ["updated_at", "2015-07-06 21:25:12.497617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd835c0c6-d010-4a4e-94cb-ed681a2a18db' LIMIT 1 [["organization_id", "1e7bbdec-5b7a-48e4-a7a4-7db7d254a308"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 133"], ["email", "user.133@example.com"], ["password_digest", "$2a$04$vtKbGbE/VCoE/MRn7NQs6.Eb.KeJ1.rf2njo/3kJRlr4mi.2WLoJe"], ["created_at", "2015-07-06 21:25:12.506208"], ["updated_at", "2015-07-06 21:25:12.506208"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.511331"], ["updated_at", "2015-07-06 21:25:12.511331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e70e3e71-a4ea-4e6c-b077-568bb654d970' AND "clubhouse_memberships"."organization_id" = '601b3884-ccb8-41ee-b8c8-3b6e810d3cfa') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e70e3e71-a4ea-4e6c-b077-568bb654d970"], ["organization_id", "601b3884-ccb8-41ee-b8c8-3b6e810d3cfa"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.514631"], ["updated_at", "2015-07-06 21:25:12.514631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'e70e3e71-a4ea-4e6c-b077-568bb654d970' LIMIT 1 [["organization_id", "601b3884-ccb8-41ee-b8c8-3b6e810d3cfa"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 134"], ["email", "user.134@example.com"], ["password_digest", "$2a$04$7DBLrakdVpILbJYq1HnMBezAMSomGAJoG.fdYy2LeReVfIID64ejy"], ["created_at", "2015-07-06 21:25:12.524105"], ["updated_at", "2015-07-06 21:25:12.524105"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.528764"], ["updated_at", "2015-07-06 21:25:12.528764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a0021451-8319-4885-8190-67804da678c9' AND "clubhouse_memberships"."organization_id" = '3c21fc5b-c5bf-4a52-8a5c-d675a91c415e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a0021451-8319-4885-8190-67804da678c9"], ["organization_id", "3c21fc5b-c5bf-4a52-8a5c-d675a91c415e"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.531998"], ["updated_at", "2015-07-06 21:25:12.531998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 135"], ["email", "user.135@example.com"], ["password_digest", "$2a$04$XazgzgIPL3J70V0ujAlmgewclTwmJAK20Lr3HBSsEMjZL00q1dX96"], ["created_at", "2015-07-06 21:25:12.539038"], ["updated_at", "2015-07-06 21:25:12.539038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.543388"], ["updated_at", "2015-07-06 21:25:12.543388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0912b18b-b43e-41c4-98a5-029e319fc995' AND "clubhouse_memberships"."organization_id" = '82d95fba-8715-4ce2-9af8-a3aee28d74fb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0912b18b-b43e-41c4-98a5-029e319fc995"], ["organization_id", "82d95fba-8715-4ce2-9af8-a3aee28d74fb"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.546604"], ["updated_at", "2015-07-06 21:25:12.546604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '0912b18b-b43e-41c4-98a5-029e319fc995' LIMIT 1 [["organization_id", "82d95fba-8715-4ce2-9af8-a3aee28d74fb"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 136"], ["email", "user.136@example.com"], ["password_digest", "$2a$04$qPlIo92SJCLS9HisfBD33.AGlw8w0PAaJKctfzVKDdYpw/QjVbRAy"], ["created_at", "2015-07-06 21:25:12.555336"], ["updated_at", "2015-07-06 21:25:12.555336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.559327"], ["updated_at", "2015-07-06 21:25:12.559327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c0b949b7-af90-4f87-a978-d6c67a4e4209' AND "clubhouse_memberships"."organization_id" = '4c392fac-49a2-483a-ab80-f5f14c309a35') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c0b949b7-af90-4f87-a978-d6c67a4e4209"], ["organization_id", "4c392fac-49a2-483a-ab80-f5f14c309a35"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.563385"], ["updated_at", "2015-07-06 21:25:12.563385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 137"], ["email", "user.137@example.com"], ["password_digest", "$2a$04$QmBDsv0kJtv6fp4DkjTDpOkg3dhlka86C.cEXIROTydvGiHT7igwi"], ["created_at", "2015-07-06 21:25:12.569715"], ["updated_at", "2015-07-06 21:25:12.569715"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5eb5b95c-bf8b-43db-a981-e47af4d0b557' AND "clubhouse_memberships"."organization_id" = '4c392fac-49a2-483a-ab80-f5f14c309a35') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5eb5b95c-bf8b-43db-a981-e47af4d0b557"], ["organization_id", "4c392fac-49a2-483a-ab80-f5f14c309a35"], ["created_at", "2015-07-06 21:25:12.574498"], ["updated_at", "2015-07-06 21:25:12.574498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'c0b949b7-af90-4f87-a978-d6c67a4e4209' LIMIT 1 [["organization_id", "4c392fac-49a2-483a-ab80-f5f14c309a35"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 138"], ["email", "user.138@example.com"], ["password_digest", "$2a$04$1oG8a0hdck8ehFqW17fx1ehu1feLeJ.KV42yJeOVt/GA4TNkCpa/m"], ["created_at", "2015-07-06 21:25:12.583285"], ["updated_at", "2015-07-06 21:25:12.583285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.588480"], ["updated_at", "2015-07-06 21:25:12.588480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '523907c4-9542-450d-b5e5-a07c8004f2e2' AND "clubhouse_memberships"."organization_id" = '1573b3c5-579a-4e9a-8bc0-76154f4c569e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "523907c4-9542-450d-b5e5-a07c8004f2e2"], ["organization_id", "1573b3c5-579a-4e9a-8bc0-76154f4c569e"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.592088"], ["updated_at", "2015-07-06 21:25:12.592088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 139"], ["email", "user.139@example.com"], ["password_digest", "$2a$04$7vUlFZd00N2LnI3pXn58yuZrUZeL9NfOTQSMBM0sUELBPcQLKFhee"], ["created_at", "2015-07-06 21:25:12.598758"], ["updated_at", "2015-07-06 21:25:12.598758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '113dee5f-23c9-48c9-a751-fb9ea536f58a' AND "clubhouse_memberships"."organization_id" = '1573b3c5-579a-4e9a-8bc0-76154f4c569e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "113dee5f-23c9-48c9-a751-fb9ea536f58a"], ["organization_id", "1573b3c5-579a-4e9a-8bc0-76154f4c569e"], ["created_at", "2015-07-06 21:25:12.603771"], ["updated_at", "2015-07-06 21:25:12.603771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '523907c4-9542-450d-b5e5-a07c8004f2e2' LIMIT 1 [["organization_id", "1573b3c5-579a-4e9a-8bc0-76154f4c569e"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 140"], ["email", "user.140@example.com"], ["password_digest", "$2a$04$AgggDS7dIEmZRxKTzI3BW.Mi1t9KXtRDEQiS46LLtbkHsoH/2PV2y"], ["created_at", "2015-07-06 21:25:12.616033"], ["updated_at", "2015-07-06 21:25:12.616033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.621460"], ["updated_at", "2015-07-06 21:25:12.621460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2388a336-f6f8-4d60-a23c-ac85d69f0024' AND "clubhouse_memberships"."organization_id" = '7df03c01-207d-4687-a152-bce8eae12949') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2388a336-f6f8-4d60-a23c-ac85d69f0024"], ["organization_id", "7df03c01-207d-4687-a152-bce8eae12949"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.626240"], ["updated_at", "2015-07-06 21:25:12.626240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 141"], ["email", "user.141@example.com"], ["password_digest", "$2a$04$oQftNiD4Fmas5oPDJVVF2eE/2v.M.g8ny3PXKmu6YCO5tzkC6Il/O"], ["created_at", "2015-07-06 21:25:12.632619"], ["updated_at", "2015-07-06 21:25:12.632619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6993d08a-e272-4d44-b82f-ae973cea5396' AND "clubhouse_memberships"."organization_id" = '7df03c01-207d-4687-a152-bce8eae12949') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6993d08a-e272-4d44-b82f-ae973cea5396"], ["organization_id", "7df03c01-207d-4687-a152-bce8eae12949"], ["created_at", "2015-07-06 21:25:12.635563"], ["updated_at", "2015-07-06 21:25:12.635563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2388a336-f6f8-4d60-a23c-ac85d69f0024' LIMIT 1 [["organization_id", "7df03c01-207d-4687-a152-bce8eae12949"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 142"], ["email", "user.142@example.com"], ["password_digest", "$2a$04$JsbXKAjrm4GkYn.g3MBr5OvJaFhwuWt/diz0xsyKP2f/DRfuLR5hy"], ["created_at", "2015-07-06 21:25:12.643518"], ["updated_at", "2015-07-06 21:25:12.643518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:12.647296"], ["updated_at", "2015-07-06 21:25:12.647296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8aa1c9fe-1cbb-4c3f-a03a-9588af12ca2d' AND "clubhouse_memberships"."organization_id" = '6dbedb8e-3174-4989-8ec3-c1fed519537c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8aa1c9fe-1cbb-4c3f-a03a-9588af12ca2d"], ["organization_id", "6dbedb8e-3174-4989-8ec3-c1fed519537c"], ["admin", "t"], ["created_at", "2015-07-06 21:25:12.650298"], ["updated_at", "2015-07-06 21:25:12.650298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 143"], ["email", "user.143@example.com"], ["password_digest", "$2a$04$qNXtXEFiphXLl/NzFo319evIvEA5v49tJ17ZndUB4Tf2EyH/kCtQm"], ["created_at", "2015-07-06 21:25:12.655478"], ["updated_at", "2015-07-06 21:25:12.655478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46f9a969-e92d-4004-90ca-0208b8c6ac76' AND "clubhouse_memberships"."organization_id" = '6dbedb8e-3174-4989-8ec3-c1fed519537c') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46f9a969-e92d-4004-90ca-0208b8c6ac76"], ["organization_id", "6dbedb8e-3174-4989-8ec3-c1fed519537c"], ["created_at", "2015-07-06 21:25:12.658415"], ["updated_at", "2015-07-06 21:25:12.658415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (4.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.271632"], ["updated_at", "2015-07-06 21:25:41.271632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '032af07f-8a2e-4cdb-93b4-140390bcc00a') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "032af07f-8a2e-4cdb-93b4-140390bcc00a"], ["created_at", "2015-07-06 21:25:41.295881"], ["updated_at", "2015-07-06 21:25:41.295881"], ["token", "i2CeTvt_hQrPmYgIrgm1ZFP_Opzcw8N1UHUPB7Jt1wI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (2.8ms) Clubhouse::Mailer#invitation: processed outbound mail in 46.9ms Sent mail to john@example.com (9.4ms) Date: Mon, 06 Jul 2015 14:25:41 -0700 From: from@example.com To: john@example.com Message-ID: <559af25556151_10c703fc9510601f84918@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/i2CeTvt_hQrPmYgIrgm1ZFP_Opzcw8N1UHUPB7Jt1wI?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.362514"], ["updated_at", "2015-07-06 21:25:41.362514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '861a6339-db5f-4cab-9544-149e999090b9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "861a6339-db5f-4cab-9544-149e999090b9"], ["created_at", "2015-07-06 21:25:41.367570"], ["updated_at", "2015-07-06 21:25:41.367570"], ["token", "7wAFkvEhsJZY9h6VvAE9DH7UI8mVQoRSzY-cBtyDQtA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.4ms Sent mail to john@example.com (2.8ms) Date: Mon, 06 Jul 2015 14:25:41 -0700 From: from@example.com To: john@example.com Message-ID: <559af2555acb7_10c703fc9510601f85072@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/7wAFkvEhsJZY9h6VvAE9DH7UI8mVQoRSzY-cBtyDQtA?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.381807"], ["updated_at", "2015-07-06 21:25:41.381807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '76e68d4a-24d9-4e34-b24f-db1ac6ccde8c') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "76e68d4a-24d9-4e34-b24f-db1ac6ccde8c"], ["created_at", "2015-07-06 21:25:41.386758"], ["updated_at", "2015-07-06 21:25:41.386758"], ["token", "sn6XbiHQsibbPFA6Tn8ZXUFpCs4b29M-ETSf3q1fE1Q"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.3ms Sent mail to john@example.com (1.9ms) Date: Mon, 06 Jul 2015 14:25:41 -0700 From: from@example.com To: john@example.com Message-ID: <559af2555f6b5_10c703fc9510601f851e@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/sn6XbiHQsibbPFA6Tn8ZXUFpCs4b29M-ETSf3q1fE1Q?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.398111"], ["updated_at", "2015-07-06 21:25:41.398111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'john@example.com' AND "clubhouse_invitations"."organization_id" = '3d1ca7b2-725b-4852-95c8-f4e272c1ab97') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "john@example.com"], ["organization_id", "3d1ca7b2-725b-4852-95c8-f4e272c1ab97"], ["created_at", "2015-07-06 21:25:41.402160"], ["updated_at", "2015-07-06 21:25:41.402160"], ["token", "PdhUfeB8mU3IkZoZdho6i44mLL24_leJhtcunBz1wOM"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) Clubhouse::Mailer#invitation: processed outbound mail in 1.1ms Sent mail to john@example.com (1.3ms) Date: Mon, 06 Jul 2015 14:25:41 -0700 From: from@example.com To: john@example.com Message-ID: <559af255631e5_10c703fc9510601f85251@Jasons-MacBook.mail> Subject: You've been invited to join org-name Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org-name/invitations/PdhUfeB8mU3IkZoZdho6i44mLL24_leJhtcunBz1wOM?email=john@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.1@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 1"], ["email", "user.1@example.com"], ["password_digest", "$2a$04$noCjU84drKvr2udSkGZSFu57c2M3oWWncJuBmd6TRfUvJMRB01Huq"], ["created_at", "2015-07-06 21:25:41.420708"], ["updated_at", "2015-07-06 21:25:41.420708"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.434360"], ["user_id", "8e6a52b8-d8f6-409a-8169-300156b112e8"], ["created_at", "2015-07-06 21:25:41.435394"], ["updated_at", "2015-07-06 21:25:41.435394"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.441514"], ["updated_at", "2015-07-06 21:25:41.441514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (1.0ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8e6a52b8-d8f6-409a-8169-300156b112e8' AND "clubhouse_memberships"."organization_id" = 'fdd68b29-feef-4441-8027-f3dbaca5729a') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8e6a52b8-d8f6-409a-8169-300156b112e8"], ["organization_id", "fdd68b29-feef-4441-8027-f3dbaca5729a"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.454887"], ["updated_at", "2015-07-06 21:25:41.454887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-1@example.com' AND "clubhouse_invitations"."organization_id" = 'fdd68b29-feef-4441-8027-f3dbaca5729a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-1@example.com"], ["organization_id", "fdd68b29-feef-4441-8027-f3dbaca5729a"], ["created_at", "2015-07-06 21:25:41.459811"], ["updated_at", "2015-07-06 21:25:41.459811"], ["token", "Q-9-FTpM05Tj_mg-GxvwlcwWZuAV5D0F2g3Ph38MuYE"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.2@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 2"], ["email", "user.2@example.com"], ["password_digest", "$2a$04$A7Ozg9Hy00sDF0ffP/4J3uUzzNcHLAt0iHzxQ0co.ZpKp7fP8/HBm"], ["created_at", "2015-07-06 21:25:41.465726"], ["updated_at", "2015-07-06 21:25:41.465726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-1' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-1"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.470148"], ["updated_at", "2015-07-06 21:25:41.470148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '44695b9c-7f08-4c64-90db-3d059914db94' AND "clubhouse_memberships"."organization_id" = '9cb0040a-9793-4385-8f83-3b4a5cf01bce') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "44695b9c-7f08-4c64-90db-3d059914db94"], ["organization_id", "9cb0040a-9793-4385-8f83-3b4a5cf01bce"], ["created_at", "2015-07-06 21:25:41.473265"], ["updated_at", "2015-07-06 21:25:41.473265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/invitations" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.3@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 3"], ["email", "user.3@example.com"], ["password_digest", "$2a$04$Lpm.vUXRfBVDNGKgb/.f0uwzw.Fl3/NTlb0BPpvVoGQ9fp0DspViq"], ["created_at", "2015-07-06 21:25:41.510253"], ["updated_at", "2015-07-06 21:25:41.510253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.512154"], ["user_id", "7e80e4dd-e4ef-4d51-af23-2de9a287b206"], ["created_at", "2015-07-06 21:25:41.512988"], ["updated_at", "2015-07-06 21:25:41.512988"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.517720"], ["updated_at", "2015-07-06 21:25:41.517720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7e80e4dd-e4ef-4d51-af23-2de9a287b206' AND "clubhouse_memberships"."organization_id" = '502134fc-7456-4f89-9537-72e666a45489') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7e80e4dd-e4ef-4d51-af23-2de9a287b206"], ["organization_id", "502134fc-7456-4f89-9537-72e666a45489"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.520705"], ["updated_at", "2015-07-06 21:25:41.520705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-2@example.com' AND "clubhouse_invitations"."organization_id" = '502134fc-7456-4f89-9537-72e666a45489') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-2@example.com"], ["organization_id", "502134fc-7456-4f89-9537-72e666a45489"], ["created_at", "2015-07-06 21:25:41.524936"], ["updated_at", "2015-07-06 21:25:41.524936"], ["token", "ymEbitTMe4kGNNXiKRWwfvFqdhrTDQZ8e09SuPqhsoc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.4@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 4"], ["email", "user.4@example.com"], ["password_digest", "$2a$04$L9pvbs96tFp9BLaCz2Bnw.Tpwcg6iVf0ckdvRBWW0F/oiFcPhZQf."], ["created_at", "2015-07-06 21:25:41.530416"], ["updated_at", "2015-07-06 21:25:41.530416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-2' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-2"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.534332"], ["updated_at", "2015-07-06 21:25:41.534332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b06633d9-87e1-4cbb-94fc-555c5c846b9c' AND "clubhouse_memberships"."organization_id" = 'ec817bca-a81b-4849-bff9-e1ed6ebddad0') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b06633d9-87e1-4cbb-94fc-555c5c846b9c"], ["organization_id", "ec817bca-a81b-4849-bff9-e1ed6ebddad0"], ["created_at", "2015-07-06 21:25:41.537425"], ["updated_at", "2015-07-06 21:25:41.537425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/502134fc-7456-4f89-9537-72e666a45489/invitations" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"502134fc-7456-4f89-9537-72e666a45489", "invitation"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:41.540677') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "fc560b32-9297-48c1-934f-b2ec38dc618c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:41.548896"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:41.550107"], ["id", "fc560b32-9297-48c1-934f-b2ec38dc618c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "502134fc-7456-4f89-9537-72e666a45489"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "7e80e4dd-e4ef-4d51-af23-2de9a287b206"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '7e80e4dd-e4ef-4d51-af23-2de9a287b206' LIMIT 1 [["organization_id", "502134fc-7456-4f89-9537-72e666a45489"], ["admin", "t"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "502134fc-7456-4f89-9537-72e666a45489"]] Completed 200 OK in 54ms (Views: 18.3ms | ActiveRecord: 2.1ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.5@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 5"], ["email", "user.5@example.com"], ["password_digest", "$2a$04$epDLs2MILKTmGtaskLGHpemoga4l/7v7SW1epBCuydxYNOCXUBKYO"], ["created_at", "2015-07-06 21:25:41.605061"], ["updated_at", "2015-07-06 21:25:41.605061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.606817"], ["user_id", "af9c0ef2-d168-454b-b907-e2b1278dac81"], ["created_at", "2015-07-06 21:25:41.607533"], ["updated_at", "2015-07-06 21:25:41.607533"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.611744"], ["updated_at", "2015-07-06 21:25:41.611744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'af9c0ef2-d168-454b-b907-e2b1278dac81' AND "clubhouse_memberships"."organization_id" = '31c99681-7c5e-4043-b8c9-57a08332d0dc') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "af9c0ef2-d168-454b-b907-e2b1278dac81"], ["organization_id", "31c99681-7c5e-4043-b8c9-57a08332d0dc"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.614636"], ["updated_at", "2015-07-06 21:25:41.614636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-3@example.com' AND "clubhouse_invitations"."organization_id" = '31c99681-7c5e-4043-b8c9-57a08332d0dc') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-3@example.com"], ["organization_id", "31c99681-7c5e-4043-b8c9-57a08332d0dc"], ["created_at", "2015-07-06 21:25:41.618752"], ["updated_at", "2015-07-06 21:25:41.618752"], ["token", "SDHkKUzUWgxI29IaJngFSDKPO8EJRJDUooL1GVmGrR8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/:organization_id/invitations" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>":organization_id", "invitation"=>{}} Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.6@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 6"], ["email", "user.6@example.com"], ["password_digest", "$2a$04$wWxOpx6xDdloAFjta2CEQOW5i3gTfskhBr7dpNWLnmIRQE7rL4iU6"], ["created_at", "2015-07-06 21:25:41.634832"], ["updated_at", "2015-07-06 21:25:41.634832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.637204"], ["user_id", "cace375a-b45b-477d-954d-1a47c14b0e2a"], ["created_at", "2015-07-06 21:25:41.637952"], ["updated_at", "2015-07-06 21:25:41.637952"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.642212"], ["updated_at", "2015-07-06 21:25:41.642212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cace375a-b45b-477d-954d-1a47c14b0e2a' AND "clubhouse_memberships"."organization_id" = '0b855de5-9f63-40b6-9c7d-25fbd0c961c0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cace375a-b45b-477d-954d-1a47c14b0e2a"], ["organization_id", "0b855de5-9f63-40b6-9c7d-25fbd0c961c0"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.647516"], ["updated_at", "2015-07-06 21:25:41.647516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-4@example.com' AND "clubhouse_invitations"."organization_id" = '0b855de5-9f63-40b6-9c7d-25fbd0c961c0') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-4@example.com"], ["organization_id", "0b855de5-9f63-40b6-9c7d-25fbd0c961c0"], ["created_at", "2015-07-06 21:25:41.652062"], ["updated_at", "2015-07-06 21:25:41.652062"], ["token", "AJj0O2Px3ihXmVIIH0Bx8jjVtYuImTGBNgKUXWsvHAw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0b855de5-9f63-40b6-9c7d-25fbd0c961c0/invitations" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"0b855de5-9f63-40b6-9c7d-25fbd0c961c0", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:41.656689') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "dd98c9e6-0016-4fee-8f95-a85730319978"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:41.658091"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:41.658818"], ["id", "dd98c9e6-0016-4fee-8f95-a85730319978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0b855de5-9f63-40b6-9c7d-25fbd0c961c0"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "cace375a-b45b-477d-954d-1a47c14b0e2a"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'cace375a-b45b-477d-954d-1a47c14b0e2a' LIMIT 1 [["organization_id", "0b855de5-9f63-40b6-9c7d-25fbd0c961c0"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '0b855de5-9f63-40b6-9c7d-25fbd0c961c0') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 18ms (ActiveRecord: 2.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.7@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 7"], ["email", "user.7@example.com"], ["password_digest", "$2a$04$b0xowxhCXMVy7QUpqQpmnu37qJiV7VnUoyINO.wnZpE5Fhq3g5hou"], ["created_at", "2015-07-06 21:25:41.682460"], ["updated_at", "2015-07-06 21:25:41.682460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.684377"], ["user_id", "9f9fff32-7bf8-4889-8933-659cd5d93c34"], ["created_at", "2015-07-06 21:25:41.685177"], ["updated_at", "2015-07-06 21:25:41.685177"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.689739"], ["updated_at", "2015-07-06 21:25:41.689739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9f9fff32-7bf8-4889-8933-659cd5d93c34' AND "clubhouse_memberships"."organization_id" = 'afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9f9fff32-7bf8-4889-8933-659cd5d93c34"], ["organization_id", "afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.692636"], ["updated_at", "2015-07-06 21:25:41.692636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-5@example.com' AND "clubhouse_invitations"."organization_id" = 'afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-5@example.com"], ["organization_id", "afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390"], ["created_at", "2015-07-06 21:25:41.696613"], ["updated_at", "2015-07-06 21:25:41.696613"], ["token", "VbrPciNNPq417SkUGGZcqhIXykFbucK9Js9i-ZXCDtY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390/invitations" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:41.699496') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7bb4cda8-af32-45a2-a26f-3d59c1759dd8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:41.700796"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:41.701515"], ["id", "7bb4cda8-af32-45a2-a26f-3d59c1759dd8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9f9fff32-7bf8-4889-8933-659cd5d93c34"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '9f9fff32-7bf8-4889-8933-659cd5d93c34' LIMIT 1 [["organization_id", "afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.710253"], ["updated_at", "2015-07-06 21:25:41.710253"], ["token", "JR5x7q3NI-a5mf2zS0KcdbaQ8-G-fo0V7TDTQySUisQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: fad9708b-23c0-4273-a266-a717d19c7a47) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1c99d242-f296-4613-b1dd-d23944fff48d [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1c99d242-f296-4613-b1dd-d23944fff48d"]] [ActiveJob] [ActionMailer::DeliveryJob] [fad9708b-23c0-4273-a266-a717d19c7a47] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/1c99d242-f296-4613-b1dd-d23944fff48d [ActiveJob] [ActionMailer::DeliveryJob] [fad9708b-23c0-4273-a266-a717d19c7a47] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "afe96bcb-a6e6-4e34-b2fd-cfb7fa09f390"]] [ActiveJob] [ActionMailer::DeliveryJob] [fad9708b-23c0-4273-a266-a717d19c7a47] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [fad9708b-23c0-4273-a266-a717d19c7a47] Clubhouse::Mailer#invitation: processed outbound mail in 3.5ms [ActiveJob] [ActionMailer::DeliveryJob] [fad9708b-23c0-4273-a266-a717d19c7a47] Sent mail to email@example.com (2.0ms) [ActiveJob] [ActionMailer::DeliveryJob] [fad9708b-23c0-4273-a266-a717d19c7a47] Date: Mon, 06 Jul 2015 14:25:41 -0700 From: from@example.com To: email@example.com Message-ID: <559af255b622a_10c703fc9510601f85394@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/JR5x7q3NI-a5mf2zS0KcdbaQ8-G-fo0V7TDTQySUisQ?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [fad9708b-23c0-4273-a266-a717d19c7a47] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.97ms Completed 201 Created in 49ms (Views: 0.8ms | ActiveRecord: 2.8ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.8@example.com' LIMIT 1 SQL (0.5ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 8"], ["email", "user.8@example.com"], ["password_digest", "$2a$04$XG5aaHGGlyFCuQLap3ksHuWTFJlvQUCJomQHdB6lX3NEeb/k5hD5i"], ["created_at", "2015-07-06 21:25:41.758200"], ["updated_at", "2015-07-06 21:25:41.758200"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.761841"], ["user_id", "a28e9090-d7d5-4cae-9e1f-e52d3b42c361"], ["created_at", "2015-07-06 21:25:41.762925"], ["updated_at", "2015-07-06 21:25:41.762925"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.769040"], ["updated_at", "2015-07-06 21:25:41.769040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a28e9090-d7d5-4cae-9e1f-e52d3b42c361' AND "clubhouse_memberships"."organization_id" = '0c620d6f-e51d-48e4-99c2-4673b8ef4592') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a28e9090-d7d5-4cae-9e1f-e52d3b42c361"], ["organization_id", "0c620d6f-e51d-48e4-99c2-4673b8ef4592"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.773470"], ["updated_at", "2015-07-06 21:25:41.773470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-6@example.com' AND "clubhouse_invitations"."organization_id" = '0c620d6f-e51d-48e4-99c2-4673b8ef4592') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-6@example.com"], ["organization_id", "0c620d6f-e51d-48e4-99c2-4673b8ef4592"], ["created_at", "2015-07-06 21:25:41.778934"], ["updated_at", "2015-07-06 21:25:41.778934"], ["token", "MJ10jb8fzUAPEX4__v3rIa2gcPPLIAQvxqf3aZIovNM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/0c620d6f-e51d-48e4-99c2-4673b8ef4592/invitations" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"0c620d6f-e51d-48e4-99c2-4673b8ef4592", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:41.782505') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "bf09abe4-bd5b-4ca5-8b64-d84d502eb989"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:41.784246"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:41.785277"], ["id", "bf09abe4-bd5b-4ca5-8b64-d84d502eb989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "0c620d6f-e51d-48e4-99c2-4673b8ef4592"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a28e9090-d7d5-4cae-9e1f-e52d3b42c361"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a28e9090-d7d5-4cae-9e1f-e52d3b42c361' LIMIT 1 [["organization_id", "0c620d6f-e51d-48e4-99c2-4673b8ef4592"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '0c620d6f-e51d-48e4-99c2-4673b8ef4592') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "0c620d6f-e51d-48e4-99c2-4673b8ef4592"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.793395"], ["updated_at", "2015-07-06 21:25:41.793395"], ["token", "-2cM1g8S8rMpDtl4qb38sL41iLWNQNcWpu2Mjazdg8M"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: d1050c74-db44-4ec6-b673-92756bc0c515) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ea305f39-6c8a-4d27-a3e2-787c132530cb [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "ea305f39-6c8a-4d27-a3e2-787c132530cb"]] [ActiveJob] [ActionMailer::DeliveryJob] [d1050c74-db44-4ec6-b673-92756bc0c515] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/ea305f39-6c8a-4d27-a3e2-787c132530cb [ActiveJob] [ActionMailer::DeliveryJob] [d1050c74-db44-4ec6-b673-92756bc0c515] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0c620d6f-e51d-48e4-99c2-4673b8ef4592"]] [ActiveJob] [ActionMailer::DeliveryJob] [d1050c74-db44-4ec6-b673-92756bc0c515] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [d1050c74-db44-4ec6-b673-92756bc0c515] Clubhouse::Mailer#invitation: processed outbound mail in 2.4ms [ActiveJob] [ActionMailer::DeliveryJob] [d1050c74-db44-4ec6-b673-92756bc0c515] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [d1050c74-db44-4ec6-b673-92756bc0c515] Date: Mon, 06 Jul 2015 14:25:41 -0700 From: from@example.com To: email@example.com Message-ID: <559af255c3f26_10c703fc9510601f8547d@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/-2cM1g8S8rMpDtl4qb38sL41iLWNQNcWpu2Mjazdg8M?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [d1050c74-db44-4ec6-b673-92756bc0c515] Performed ActionMailer::DeliveryJob from Inline(mailers) in 4.24ms Completed 201 Created in 22ms (Views: 0.6ms | ActiveRecord: 3.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.9@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 9"], ["email", "user.9@example.com"], ["password_digest", "$2a$04$uosEvyW8uoPdoFBK6Dw0IOKF12xnlgLXoNZjL60UMuvUAuzrfqsoS"], ["created_at", "2015-07-06 21:25:41.810992"], ["updated_at", "2015-07-06 21:25:41.810992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.812575"], ["user_id", "0682ac21-80dd-40b7-8e0d-4bcb08fcab67"], ["created_at", "2015-07-06 21:25:41.813173"], ["updated_at", "2015-07-06 21:25:41.813173"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.817556"], ["updated_at", "2015-07-06 21:25:41.817556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0682ac21-80dd-40b7-8e0d-4bcb08fcab67' AND "clubhouse_memberships"."organization_id" = '3de1681c-829f-4d23-be9f-c6874eca749b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0682ac21-80dd-40b7-8e0d-4bcb08fcab67"], ["organization_id", "3de1681c-829f-4d23-be9f-c6874eca749b"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.820897"], ["updated_at", "2015-07-06 21:25:41.820897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-7@example.com' AND "clubhouse_invitations"."organization_id" = '3de1681c-829f-4d23-be9f-c6874eca749b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-7@example.com"], ["organization_id", "3de1681c-829f-4d23-be9f-c6874eca749b"], ["created_at", "2015-07-06 21:25:41.825509"], ["updated_at", "2015-07-06 21:25:41.825509"], ["token", "xYXIS_wRCzWD0WItKnvRWaz9K1iD_vl5W0bKfnnb1gw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.10@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 10"], ["email", "user.10@example.com"], ["password_digest", "$2a$04$xM0gYXsbgUeZx5Wh1FQy.OYsg.tUUIM/mCW.bI5HXKPfJlfQNgGay"], ["created_at", "2015-07-06 21:25:41.830557"], ["updated_at", "2015-07-06 21:25:41.830557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-3' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-3"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.834566"], ["updated_at", "2015-07-06 21:25:41.834566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4879ed5b-9ef5-4b0e-b076-3120bed20530' AND "clubhouse_memberships"."organization_id" = '04a97ee8-99ed-4f81-9b23-b9bb188961a8') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4879ed5b-9ef5-4b0e-b076-3120bed20530"], ["organization_id", "04a97ee8-99ed-4f81-9b23-b9bb188961a8"], ["created_at", "2015-07-06 21:25:41.837646"], ["updated_at", "2015-07-06 21:25:41.837646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.11@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 11"], ["email", "user.11@example.com"], ["password_digest", "$2a$04$m/U1.QdGa89u2/a0f0iiPeupWxNas7mqGe/6nPrJK1Kn0wXfEJxOy"], ["created_at", "2015-07-06 21:25:41.847782"], ["updated_at", "2015-07-06 21:25:41.847782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.849346"], ["user_id", "0c3e12f6-8bfd-4e76-ab5d-2b6ce57148c7"], ["created_at", "2015-07-06 21:25:41.849948"], ["updated_at", "2015-07-06 21:25:41.849948"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.854019"], ["updated_at", "2015-07-06 21:25:41.854019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0c3e12f6-8bfd-4e76-ab5d-2b6ce57148c7' AND "clubhouse_memberships"."organization_id" = '23bedc6e-13e4-4cbb-a81f-c0233b211bc3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0c3e12f6-8bfd-4e76-ab5d-2b6ce57148c7"], ["organization_id", "23bedc6e-13e4-4cbb-a81f-c0233b211bc3"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.857274"], ["updated_at", "2015-07-06 21:25:41.857274"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-8@example.com' AND "clubhouse_invitations"."organization_id" = '23bedc6e-13e4-4cbb-a81f-c0233b211bc3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-8@example.com"], ["organization_id", "23bedc6e-13e4-4cbb-a81f-c0233b211bc3"], ["created_at", "2015-07-06 21:25:41.875220"], ["updated_at", "2015-07-06 21:25:41.875220"], ["token", "DtLdyBgRz2KAntLaDACtEf3IVGK-5vFaI5D-0dyb0sY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.12@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 12"], ["email", "user.12@example.com"], ["password_digest", "$2a$04$nADP6HLfw2hEJdAq.70rIOGJC5jBxmpfOJ7cou1rlrab3K03NyGAi"], ["created_at", "2015-07-06 21:25:41.880389"], ["updated_at", "2015-07-06 21:25:41.880389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-4' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-4"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.884551"], ["updated_at", "2015-07-06 21:25:41.884551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '082a4f94-a2c3-42e1-8096-44b6e4b10748' AND "clubhouse_memberships"."organization_id" = '1284a0a7-35de-4dea-ab38-4bce2aa5653c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "082a4f94-a2c3-42e1-8096-44b6e4b10748"], ["organization_id", "1284a0a7-35de-4dea-ab38-4bce2aa5653c"], ["created_at", "2015-07-06 21:25:41.887798"], ["updated_at", "2015-07-06 21:25:41.887798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#index as HTML Parameters: {"organization_id"=>"org", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:41.890824') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e2bc3d66-7edd-4004-b0af-eff13ec1cf0c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:41.892237"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:41.893048"], ["id", "e2bc3d66-7edd-4004-b0af-eff13ec1cf0c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0c3e12f6-8bfd-4e76-ab5d-2b6ce57148c7"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '0c3e12f6-8bfd-4e76-ab5d-2b6ce57148c7' LIMIT 1 [["organization_id", "23bedc6e-13e4-4cbb-a81f-c0233b211bc3"], ["admin", "t"]] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."organization_id" = $1 [["organization_id", "23bedc6e-13e4-4cbb-a81f-c0233b211bc3"]] Completed 200 OK in 11ms (Views: 2.1ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.13@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 13"], ["email", "user.13@example.com"], ["password_digest", "$2a$04$MStMsqP4yaam9I5Tcg1mu.hWIqH/RmSM6fNNvOLsRXEXOTGBfbLYm"], ["created_at", "2015-07-06 21:25:41.909363"], ["updated_at", "2015-07-06 21:25:41.909363"]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.914432"], ["user_id", "2977534d-d7e3-4a11-a033-59de2157973b"], ["created_at", "2015-07-06 21:25:41.915666"], ["updated_at", "2015-07-06 21:25:41.915666"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.921379"], ["updated_at", "2015-07-06 21:25:41.921379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2977534d-d7e3-4a11-a033-59de2157973b' AND "clubhouse_memberships"."organization_id" = '7407527b-d53d-42ea-a7f5-dc3b6b6f3005') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2977534d-d7e3-4a11-a033-59de2157973b"], ["organization_id", "7407527b-d53d-42ea-a7f5-dc3b6b6f3005"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.924805"], ["updated_at", "2015-07-06 21:25:41.924805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-9@example.com' AND "clubhouse_invitations"."organization_id" = '7407527b-d53d-42ea-a7f5-dc3b6b6f3005') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-9@example.com"], ["organization_id", "7407527b-d53d-42ea-a7f5-dc3b6b6f3005"], ["created_at", "2015-07-06 21:25:41.928781"], ["updated_at", "2015-07-06 21:25:41.928781"], ["token", "qhy8Cj9NkBzUFsMpmMbv8ypwk6ydR5R_cnFXJk5BehM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/1" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.14@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 14"], ["email", "user.14@example.com"], ["password_digest", "$2a$04$QDx267vvbroZXHMybgESpOZ8rSEXY5b5GGkZICJr5nWt61il1OC3q"], ["created_at", "2015-07-06 21:25:41.937503"], ["updated_at", "2015-07-06 21:25:41.937503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.939259"], ["user_id", "4333e5fb-e27e-494b-ac5d-588c552e1d86"], ["created_at", "2015-07-06 21:25:41.939870"], ["updated_at", "2015-07-06 21:25:41.939870"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.943979"], ["updated_at", "2015-07-06 21:25:41.943979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4333e5fb-e27e-494b-ac5d-588c552e1d86' AND "clubhouse_memberships"."organization_id" = '027a6248-9097-4e83-86fd-da926401034e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4333e5fb-e27e-494b-ac5d-588c552e1d86"], ["organization_id", "027a6248-9097-4e83-86fd-da926401034e"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.946968"], ["updated_at", "2015-07-06 21:25:41.946968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."organization_id" = '027a6248-9097-4e83-86fd-da926401034e') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-10@example.com"], ["organization_id", "027a6248-9097-4e83-86fd-da926401034e"], ["created_at", "2015-07-06 21:25:41.952270"], ["updated_at", "2015-07-06 21:25:41.952270"], ["token", "Mfnxt8PNK9zZ5NcapZ9QPdvGhC06UpR0qg3y9tN7vNs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/invitations/20ead3b2-51cb-474a-baae-8601f301bee8" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#update as HTML Parameters: {"admin"=>true, "id"=>"20ead3b2-51cb-474a-baae-8601f301bee8", "invitation"=>{"admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:41.955390') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c11d4287-80a0-47cc-bcec-0f9e9ee0842a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:41.956757"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:41.957540"], ["id", "c11d4287-80a0-47cc-bcec-0f9e9ee0842a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "20ead3b2-51cb-474a-baae-8601f301bee8"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4333e5fb-e27e-494b-ac5d-588c552e1d86"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "027a6248-9097-4e83-86fd-da926401034e"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '4333e5fb-e27e-494b-ac5d-588c552e1d86' LIMIT 1 [["organization_id", "027a6248-9097-4e83-86fd-da926401034e"], ["admin", "t"]] Unpermitted parameters: id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-10@example.com' AND "clubhouse_invitations"."id" != '20ead3b2-51cb-474a-baae-8601f301bee8' AND "clubhouse_invitations"."organization_id" = '027a6248-9097-4e83-86fd-da926401034e') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_invitations" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_invitations"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:25:41.968990"], ["id", "20ead3b2-51cb-474a-baae-8601f301bee8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 16ms (Views: 0.6ms | ActiveRecord: 2.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.15@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 15"], ["email", "user.15@example.com"], ["password_digest", "$2a$04$02GNyrJX7C8JkTIZ4PFLbu6wtF8A0EGQkoL12RT458/5vl2..a7Py"], ["created_at", "2015-07-06 21:25:41.978757"], ["updated_at", "2015-07-06 21:25:41.978757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:41.980446"], ["user_id", "087096f2-db2c-4dbd-9a25-216f5fdbad38"], ["created_at", "2015-07-06 21:25:41.981144"], ["updated_at", "2015-07-06 21:25:41.981144"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:41.985539"], ["updated_at", "2015-07-06 21:25:41.985539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '087096f2-db2c-4dbd-9a25-216f5fdbad38' AND "clubhouse_memberships"."organization_id" = '565084d6-fb41-434c-92cf-085bbc3bfac2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "087096f2-db2c-4dbd-9a25-216f5fdbad38"], ["organization_id", "565084d6-fb41-434c-92cf-085bbc3bfac2"], ["admin", "t"], ["created_at", "2015-07-06 21:25:41.989145"], ["updated_at", "2015-07-06 21:25:41.989145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-11@example.com' AND "clubhouse_invitations"."organization_id" = '565084d6-fb41-434c-92cf-085bbc3bfac2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-11@example.com"], ["organization_id", "565084d6-fb41-434c-92cf-085bbc3bfac2"], ["created_at", "2015-07-06 21:25:41.993267"], ["updated_at", "2015-07-06 21:25:41.993267"], ["token", "z4_JcdbDJ9D-vk6ddmLREnCklwQzT55GzB7ltek8zhs"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/1" for 127.0.0.1 at 2015-07-06 14:25:41 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.16@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 16"], ["email", "user.16@example.com"], ["password_digest", "$2a$04$nmHskfTq3dLF6VGl3zMr8OF//viDBF1BgZbO1uiT.a4yFLzOKm2ni"], ["created_at", "2015-07-06 21:25:42.002268"], ["updated_at", "2015-07-06 21:25:42.002268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.004022"], ["user_id", "6c9c9ef2-1a1f-4e48-8133-57dce2304d43"], ["created_at", "2015-07-06 21:25:42.004683"], ["updated_at", "2015-07-06 21:25:42.004683"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.009155"], ["updated_at", "2015-07-06 21:25:42.009155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6c9c9ef2-1a1f-4e48-8133-57dce2304d43' AND "clubhouse_memberships"."organization_id" = '4a097864-77a9-43a0-93be-98a8654faf81') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6c9c9ef2-1a1f-4e48-8133-57dce2304d43"], ["organization_id", "4a097864-77a9-43a0-93be-98a8654faf81"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.013063"], ["updated_at", "2015-07-06 21:25:42.013063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-12@example.com' AND "clubhouse_invitations"."organization_id" = '4a097864-77a9-43a0-93be-98a8654faf81') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-12@example.com"], ["organization_id", "4a097864-77a9-43a0-93be-98a8654faf81"], ["created_at", "2015-07-06 21:25:42.017122"], ["updated_at", "2015-07-06 21:25:42.017122"], ["token", "emprlvbL1G_OviqbXC2_cbujR_TgselrVAwVaTPqDj0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/invitations/b3807f36-af84-4a66-b9f8-f5b222162de9" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::InvitationsController#show as HTML Parameters: {"id"=>"b3807f36-af84-4a66-b9f8-f5b222162de9", "invitation"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.020388') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5a1871cf-d1ac-4821-977b-cd6957b29527"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.021849"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.022711"], ["id", "5a1871cf-d1ac-4821-977b-cd6957b29527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "b3807f36-af84-4a66-b9f8-f5b222162de9"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6c9c9ef2-1a1f-4e48-8133-57dce2304d43"]] Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "4a097864-77a9-43a0-93be-98a8654faf81"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6c9c9ef2-1a1f-4e48-8133-57dce2304d43' LIMIT 1 [["organization_id", "4a097864-77a9-43a0-93be-98a8654faf81"], ["admin", "t"]] Completed 200 OK in 11ms (Views: 0.8ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.17@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 17"], ["email", "user.17@example.com"], ["password_digest", "$2a$04$5JHRhU.d4dtcDq4aJAwb4eF/ShBEfzUgfW7yYt.zT9qGMmr9kgKqu"], ["created_at", "2015-07-06 21:25:42.038994"], ["updated_at", "2015-07-06 21:25:42.038994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.040659"], ["user_id", "eb9d49b7-beee-4d26-992a-508ea38b55e0"], ["created_at", "2015-07-06 21:25:42.041259"], ["updated_at", "2015-07-06 21:25:42.041259"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.045192"], ["updated_at", "2015-07-06 21:25:42.045192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eb9d49b7-beee-4d26-992a-508ea38b55e0' AND "clubhouse_memberships"."organization_id" = 'dd66ae03-deb6-49a7-b7ce-aaafcedaad23') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eb9d49b7-beee-4d26-992a-508ea38b55e0"], ["organization_id", "dd66ae03-deb6-49a7-b7ce-aaafcedaad23"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.048970"], ["updated_at", "2015-07-06 21:25:42.048970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-13@example.com' AND "clubhouse_invitations"."organization_id" = 'dd66ae03-deb6-49a7-b7ce-aaafcedaad23') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-13@example.com"], ["organization_id", "dd66ae03-deb6-49a7-b7ce-aaafcedaad23"], ["created_at", "2015-07-06 21:25:42.055116"], ["updated_at", "2015-07-06 21:25:42.055116"], ["token", "rGiZHUgZ_U0rqsjQKfhCwxDBxgamSDrpZS0nZS-mBQ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1b14bd89-5504-40f8-a0f8-1692e6fa8d55" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1b14bd89-5504-40f8-a0f8-1692e6fa8d55", "invitation"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.058534') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "74b061c5-3271-4e08-b89c-b26bae726db2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.059960"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.060790"], ["id", "74b061c5-3271-4e08-b89c-b26bae726db2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "1b14bd89-5504-40f8-a0f8-1692e6fa8d55"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "eb9d49b7-beee-4d26-992a-508ea38b55e0"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "dd66ae03-deb6-49a7-b7ce-aaafcedaad23"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'eb9d49b7-beee-4d26-992a-508ea38b55e0' LIMIT 1 [["organization_id", "dd66ae03-deb6-49a7-b7ce-aaafcedaad23"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "1b14bd89-5504-40f8-a0f8-1692e6fa8d55"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.18@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 18"], ["email", "user.18@example.com"], ["password_digest", "$2a$04$gyMIIjRCvkJPF4TOcVmijOSqVOKmpjD8BP5sd.SPubVCVGJDPavCG"], ["created_at", "2015-07-06 21:25:42.074882"], ["updated_at", "2015-07-06 21:25:42.074882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.076753"], ["user_id", "25255d85-096e-40cd-a372-66d906d4f65f"], ["created_at", "2015-07-06 21:25:42.078604"], ["updated_at", "2015-07-06 21:25:42.078604"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.084218"], ["updated_at", "2015-07-06 21:25:42.084218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '25255d85-096e-40cd-a372-66d906d4f65f' AND "clubhouse_memberships"."organization_id" = '2f353f46-9a90-4c6b-bb8b-58698c6a38a1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "25255d85-096e-40cd-a372-66d906d4f65f"], ["organization_id", "2f353f46-9a90-4c6b-bb8b-58698c6a38a1"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.087543"], ["updated_at", "2015-07-06 21:25:42.087543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-14@example.com' AND "clubhouse_invitations"."organization_id" = '2f353f46-9a90-4c6b-bb8b-58698c6a38a1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-14@example.com"], ["organization_id", "2f353f46-9a90-4c6b-bb8b-58698c6a38a1"], ["created_at", "2015-07-06 21:25:42.091838"], ["updated_at", "2015-07-06 21:25:42.091838"], ["token", "0YHJP8YmOd2J_Vcm952ZiWbPKTqZsu6wzzQfMY1hgHw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/invitations/1" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::InvitationsController#destroy as HTML Parameters: {"id"=>"1", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.19@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 19"], ["email", "user.19@example.com"], ["password_digest", "$2a$04$K68n804VyW1DhobSJ9LdkOoLyAevV9HzeLtpa7ym/k3kMCnhBDx4W"], ["created_at", "2015-07-06 21:25:42.100919"], ["updated_at", "2015-07-06 21:25:42.100919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.102584"], ["user_id", "3fe0cdb6-9676-4947-bcfa-04ac5a434cb8"], ["created_at", "2015-07-06 21:25:42.103189"], ["updated_at", "2015-07-06 21:25:42.103189"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.107906"], ["updated_at", "2015-07-06 21:25:42.107906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3fe0cdb6-9676-4947-bcfa-04ac5a434cb8' AND "clubhouse_memberships"."organization_id" = '9abdae22-4565-41a4-94c7-1b72872fd3e2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3fe0cdb6-9676-4947-bcfa-04ac5a434cb8"], ["organization_id", "9abdae22-4565-41a4-94c7-1b72872fd3e2"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.110990"], ["updated_at", "2015-07-06 21:25:42.110990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-15@example.com' AND "clubhouse_invitations"."organization_id" = '9abdae22-4565-41a4-94c7-1b72872fd3e2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-15@example.com"], ["organization_id", "9abdae22-4565-41a4-94c7-1b72872fd3e2"], ["created_at", "2015-07-06 21:25:42.115919"], ["updated_at", "2015-07-06 21:25:42.115919"], ["token", "_BRdsaTzJmzmQxmS-7Khufb50q4tqKXk4AraVihLmBc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/invitations" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"organization_id"=>"name", "invitation"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.20@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 20"], ["email", "user.20@example.com"], ["password_digest", "$2a$04$UXS7Rd8xD7yj8/C/fXerwOzjfWux5tVRvz56EvQiq8aD3m/PQHYY6"], ["created_at", "2015-07-06 21:25:42.125704"], ["updated_at", "2015-07-06 21:25:42.125704"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.128903"], ["user_id", "6691f2dd-25cd-46b2-bab3-ea06a53722c9"], ["created_at", "2015-07-06 21:25:42.130276"], ["updated_at", "2015-07-06 21:25:42.130276"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.134660"], ["updated_at", "2015-07-06 21:25:42.134660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6691f2dd-25cd-46b2-bab3-ea06a53722c9' AND "clubhouse_memberships"."organization_id" = '0b7e719a-5ced-4227-8805-f7f6802e56eb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6691f2dd-25cd-46b2-bab3-ea06a53722c9"], ["organization_id", "0b7e719a-5ced-4227-8805-f7f6802e56eb"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.137874"], ["updated_at", "2015-07-06 21:25:42.137874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-16@example.com' AND "clubhouse_invitations"."organization_id" = '0b7e719a-5ced-4227-8805-f7f6802e56eb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-16@example.com"], ["organization_id", "0b7e719a-5ced-4227-8805-f7f6802e56eb"], ["created_at", "2015-07-06 21:25:42.141898"], ["updated_at", "2015-07-06 21:25:42.141898"], ["token", "3tqND_rXhzVBrrYIZH5EaZTFtoEoEmtiwXuJSAJGUI8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>nil, "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>nil, "admin"=>true}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.144773') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0630ace5-9a31-4e93-b911-a589063c84ea"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.146111"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.146872"], ["id", "0630ace5-9a31-4e93-b911-a589063c84ea"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6691f2dd-25cd-46b2-bab3-ea06a53722c9"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6691f2dd-25cd-46b2-bab3-ea06a53722c9' LIMIT 1 [["organization_id", "0b7e719a-5ced-4227-8805-f7f6802e56eb"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" = '0b7e719a-5ced-4227-8805-f7f6802e56eb') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 13ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.21@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 21"], ["email", "user.21@example.com"], ["password_digest", "$2a$04$5R.eVfJOxfdan4ocFCUaouHVY86KRKVnG/LroN/4S8PosaRIHozVG"], ["created_at", "2015-07-06 21:25:42.163399"], ["updated_at", "2015-07-06 21:25:42.163399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.165542"], ["user_id", "a34e2195-0207-4530-bcb7-6277f25c7213"], ["created_at", "2015-07-06 21:25:42.166483"], ["updated_at", "2015-07-06 21:25:42.166483"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.171251"], ["updated_at", "2015-07-06 21:25:42.171251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'a34e2195-0207-4530-bcb7-6277f25c7213' AND "clubhouse_memberships"."organization_id" = '8bf93640-4d01-49b1-a39c-442a76c8943b') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "a34e2195-0207-4530-bcb7-6277f25c7213"], ["organization_id", "8bf93640-4d01-49b1-a39c-442a76c8943b"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.174204"], ["updated_at", "2015-07-06 21:25:42.174204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-17@example.com' AND "clubhouse_invitations"."organization_id" = '8bf93640-4d01-49b1-a39c-442a76c8943b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-17@example.com"], ["organization_id", "8bf93640-4d01-49b1-a39c-442a76c8943b"], ["created_at", "2015-07-06 21:25:42.180087"], ["updated_at", "2015-07-06 21:25:42.180087"], ["token", "_KSCYvK-3CHipjdn597bu3Ml_wLtZw3j0XSVtF2CoIw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.183400') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "e0291677-b671-4e10-87d7-53fc740deb0a"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.184782"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.185543"], ["id", "e0291677-b671-4e10-87d7-53fc740deb0a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "a34e2195-0207-4530-bcb7-6277f25c7213"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a34e2195-0207-4530-bcb7-6277f25c7213' LIMIT 1 [["organization_id", "8bf93640-4d01-49b1-a39c-442a76c8943b"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '8bf93640-4d01-49b1-a39c-442a76c8943b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "8bf93640-4d01-49b1-a39c-442a76c8943b"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.193179"], ["updated_at", "2015-07-06 21:25:42.193179"], ["token", "UY6gpVUC30-D697WmfX14VPO5pnyfmvN0zxjY5nQZ8k"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: 2e6fb506-7884-45b3-832c-56c98e06f7c9) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/87c0ed68-358d-465b-977d-9e7338dbf058 [ActiveJob] Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "87c0ed68-358d-465b-977d-9e7338dbf058"]] [ActiveJob] [ActionMailer::DeliveryJob] [2e6fb506-7884-45b3-832c-56c98e06f7c9] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/87c0ed68-358d-465b-977d-9e7338dbf058 [ActiveJob] [ActionMailer::DeliveryJob] [2e6fb506-7884-45b3-832c-56c98e06f7c9] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "8bf93640-4d01-49b1-a39c-442a76c8943b"]] [ActiveJob] [ActionMailer::DeliveryJob] [2e6fb506-7884-45b3-832c-56c98e06f7c9] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.2ms) [ActiveJob] [ActionMailer::DeliveryJob] [2e6fb506-7884-45b3-832c-56c98e06f7c9] Clubhouse::Mailer#invitation: processed outbound mail in 2.0ms [ActiveJob] [ActionMailer::DeliveryJob] [2e6fb506-7884-45b3-832c-56c98e06f7c9] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [2e6fb506-7884-45b3-832c-56c98e06f7c9] Date: Mon, 06 Jul 2015 14:25:42 -0700 From: from@example.com To: email@example.com Message-ID: <559af25630a51_10c703fc9510601f855fd@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/UY6gpVUC30-D697WmfX14VPO5pnyfmvN0zxjY5nQZ8k?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [2e6fb506-7884-45b3-832c-56c98e06f7c9] Performed ActionMailer::DeliveryJob from Inline(mailers) in 3.71ms Completed 201 Created in 18ms (Views: 0.6ms | ActiveRecord: 2.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.22@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 22"], ["email", "user.22@example.com"], ["password_digest", "$2a$04$vVbwZN3djDHFDZY/lBoUBOi5sEWDwhTTwXR712ilVN.FHmM3OqDFe"], ["created_at", "2015-07-06 21:25:42.207923"], ["updated_at", "2015-07-06 21:25:42.207923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.209649"], ["user_id", "712b6a6d-a558-40c6-8278-09d5ea4052b9"], ["created_at", "2015-07-06 21:25:42.210456"], ["updated_at", "2015-07-06 21:25:42.210456"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.214496"], ["updated_at", "2015-07-06 21:25:42.214496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '712b6a6d-a558-40c6-8278-09d5ea4052b9' AND "clubhouse_memberships"."organization_id" = 'eefd0295-ff1a-4945-9028-274d284acfd2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "712b6a6d-a558-40c6-8278-09d5ea4052b9"], ["organization_id", "eefd0295-ff1a-4945-9028-274d284acfd2"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.217496"], ["updated_at", "2015-07-06 21:25:42.217496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-18@example.com' AND "clubhouse_invitations"."organization_id" = 'eefd0295-ff1a-4945-9028-274d284acfd2') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-18@example.com"], ["organization_id", "eefd0295-ff1a-4945-9028-274d284acfd2"], ["created_at", "2015-07-06 21:25:42.221440"], ["updated_at", "2015-07-06 21:25:42.221440"], ["token", "CXFA-pWsF7DZtgbpSSsyHlAwfVySWl0Xdz_SFgBQelo"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/invitations" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::InvitationsController#create as HTML Parameters: {"email"=>"email@example.com", "admin"=>true, "organization_id"=>"org", "invitation"=>{"email"=>"email@example.com", "admin"=>true}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.225865') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a49f5cf7-955b-4c08-a856-f0e3a7ab97e5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.228056"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.229161"], ["id", "a49f5cf7-955b-4c08-a856-f0e3a7ab97e5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "712b6a6d-a558-40c6-8278-09d5ea4052b9"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '712b6a6d-a558-40c6-8278-09d5ea4052b9' LIMIT 1 [["organization_id", "eefd0295-ff1a-4945-9028-274d284acfd2"], ["admin", "t"]] Unpermitted parameters: organization_id, invitation  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = 'eefd0295-ff1a-4945-9028-274d284acfd2') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_invitations" ("organization_id", "email", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["organization_id", "eefd0295-ff1a-4945-9028-274d284acfd2"], ["email", "email@example.com"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.238755"], ["updated_at", "2015-07-06 21:25:42.238755"], ["token", "lkOnX1YY7oGs3TCRWwBDL_r3YenTOEROLEkaO-OPvk0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: ef8cb38f-819c-4167-a920-d056f4b96f51) to Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3d7061ef-d636-4528-bb02-f09d24d21ce0 [ActiveJob] Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 LIMIT 1 [["id", "3d7061ef-d636-4528-bb02-f09d24d21ce0"]] [ActiveJob] [ActionMailer::DeliveryJob] [ef8cb38f-819c-4167-a920-d056f4b96f51] Performing ActionMailer::DeliveryJob from Inline(mailers) with arguments: "Clubhouse::Mailer", "invitation", "deliver_now", gid://dummy/Clubhouse::Invitation/3d7061ef-d636-4528-bb02-f09d24d21ce0 [ActiveJob] [ActionMailer::DeliveryJob] [ef8cb38f-819c-4167-a920-d056f4b96f51] Clubhouse::Organization Load (0.5ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "eefd0295-ff1a-4945-9028-274d284acfd2"]] [ActiveJob] [ActionMailer::DeliveryJob] [ef8cb38f-819c-4167-a920-d056f4b96f51] Rendered /Users/jasonkriss/projects/clubhouse/app/views/clubhouse/mailer/invitation.text.erb within layouts/mailer (0.1ms) [ActiveJob] [ActionMailer::DeliveryJob] [ef8cb38f-819c-4167-a920-d056f4b96f51] Clubhouse::Mailer#invitation: processed outbound mail in 3.8ms [ActiveJob] [ActionMailer::DeliveryJob] [ef8cb38f-819c-4167-a920-d056f4b96f51] Sent mail to email@example.com (1.4ms) [ActiveJob] [ActionMailer::DeliveryJob] [ef8cb38f-819c-4167-a920-d056f4b96f51] Date: Mon, 06 Jul 2015 14:25:42 -0700 From: from@example.com To: email@example.com Message-ID: <559af2563cb35_10c703fc9510601f8562@Jasons-MacBook.mail> Subject: You've been invited to join org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi there, To accept your invitation, just follow this link: https://example.com/organizations/org/invitations/lkOnX1YY7oGs3TCRWwBDL_r3YenTOEROLEkaO-OPvk0?email=email@example.com If you don't wish to join the organization, simply ignore this email. Cheers! - The Clubhouse Team [ActiveJob] [ActionMailer::DeliveryJob] [ef8cb38f-819c-4167-a920-d056f4b96f51] Performed ActionMailer::DeliveryJob from Inline(mailers) in 5.73ms Completed 201 Created in 25ms (Views: 0.7ms | ActiveRecord: 3.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.23@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 23"], ["email", "user.23@example.com"], ["password_digest", "$2a$04$LDMabqOOCT1OUOGd/b8aAexVPWja3exGWnSTRmVmlXe4onBfDxJsO"], ["created_at", "2015-07-06 21:25:42.257284"], ["updated_at", "2015-07-06 21:25:42.257284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.258852"], ["user_id", "677d2d11-1cf2-49bb-8eca-3f9551706c9d"], ["created_at", "2015-07-06 21:25:42.259430"], ["updated_at", "2015-07-06 21:25:42.259430"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-5' LIMIT 1 SQL (0.1ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-5"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.263298"], ["updated_at", "2015-07-06 21:25:42.263298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '677d2d11-1cf2-49bb-8eca-3f9551706c9d' AND "clubhouse_memberships"."organization_id" = '264e6268-257f-4175-bc54-9da0db0ce426') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "677d2d11-1cf2-49bb-8eca-3f9551706c9d"], ["organization_id", "264e6268-257f-4175-bc54-9da0db0ce426"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.266406"], ["updated_at", "2015-07-06 21:25:42.266406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/name" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.24@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 24"], ["email", "user.24@example.com"], ["password_digest", "$2a$04$onGhxZcnNBiZy7.P0O5kve1E6Ch8.1pqve6stWg1LqsNc22JCjuou"], ["created_at", "2015-07-06 21:25:42.281435"], ["updated_at", "2015-07-06 21:25:42.281435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.283521"], ["user_id", "d9a0fb48-76bb-4724-839b-1128a8d9112a"], ["created_at", "2015-07-06 21:25:42.284306"], ["updated_at", "2015-07-06 21:25:42.284306"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-6' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-6"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.289927"], ["updated_at", "2015-07-06 21:25:42.289927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd9a0fb48-76bb-4724-839b-1128a8d9112a' AND "clubhouse_memberships"."organization_id" = '5ab003c7-9ec5-4235-bb9b-3bb4652fcdc8') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d9a0fb48-76bb-4724-839b-1128a8d9112a"], ["organization_id", "5ab003c7-9ec5-4235-bb9b-3bb4652fcdc8"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.293447"], ["updated_at", "2015-07-06 21:25:42.293447"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/org-6" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"org-6", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.298732') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "20bc0a0f-af3d-4579-943b-2a9f326a4c90"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.300495"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.301344"], ["id", "20bc0a0f-af3d-4579-943b-2a9f326a4c90"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-6"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d9a0fb48-76bb-4724-839b-1128a8d9112a"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'd9a0fb48-76bb-4724-839b-1128a8d9112a' LIMIT 1 [["organization_id", "5ab003c7-9ec5-4235-bb9b-3bb4652fcdc8"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "5ab003c7-9ec5-4235-bb9b-3bb4652fcdc8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 9ms (ActiveRecord: 1.9ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.25@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 25"], ["email", "user.25@example.com"], ["password_digest", "$2a$04$yfuzAUPqdlhTaqtx8tnVmuykUmKwZUK54fHeAKrvc/exqFhKdGAqK"], ["created_at", "2015-07-06 21:25:42.314929"], ["updated_at", "2015-07-06 21:25:42.314929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.317501"], ["user_id", "ed9f6a81-5b24-4541-85a0-11b607494bef"], ["created_at", "2015-07-06 21:25:42.318153"], ["updated_at", "2015-07-06 21:25:42.318153"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-7' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-7"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.322512"], ["updated_at", "2015-07-06 21:25:42.322512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ed9f6a81-5b24-4541-85a0-11b607494bef' AND "clubhouse_memberships"."organization_id" = 'e9cb5555-1a31-4008-9c0f-8072fb7cb13f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ed9f6a81-5b24-4541-85a0-11b607494bef"], ["organization_id", "e9cb5555-1a31-4008-9c0f-8072fb7cb13f"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.325907"], ["updated_at", "2015-07-06 21:25:42.325907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.26@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 26"], ["email", "user.26@example.com"], ["password_digest", "$2a$04$xHv.4pbInl2FSNn5v3nG2OMYQg9zuisWXJQHLGy3xsEuxU62DyASe"], ["created_at", "2015-07-06 21:25:42.331000"], ["updated_at", "2015-07-06 21:25:42.331000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-8' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-8"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.334985"], ["updated_at", "2015-07-06 21:25:42.334985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '822351ad-3af0-486e-95f2-19ff042d64cb' AND "clubhouse_memberships"."organization_id" = '5a50f686-cc5f-4cba-9e65-7b5e639b77e8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "822351ad-3af0-486e-95f2-19ff042d64cb"], ["organization_id", "5a50f686-cc5f-4cba-9e65-7b5e639b77e8"], ["created_at", "2015-07-06 21:25:42.337901"], ["updated_at", "2015-07-06 21:25:42.337901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.27@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 27"], ["email", "user.27@example.com"], ["password_digest", "$2a$04$Hp0JV0wpAX4GWtcck0QXu./4KOYBIy1tX5V3zTAo5uZPSMHFlZEFC"], ["created_at", "2015-07-06 21:25:42.347915"], ["updated_at", "2015-07-06 21:25:42.347915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.349917"], ["user_id", "4e50a95e-3cfc-4708-90bd-76575c4616c6"], ["created_at", "2015-07-06 21:25:42.350639"], ["updated_at", "2015-07-06 21:25:42.350639"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-9' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-9"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.354988"], ["updated_at", "2015-07-06 21:25:42.354988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4e50a95e-3cfc-4708-90bd-76575c4616c6' AND "clubhouse_memberships"."organization_id" = 'd9e0db68-17b7-4cd2-965e-369fbd9d3b76') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4e50a95e-3cfc-4708-90bd-76575c4616c6"], ["organization_id", "d9e0db68-17b7-4cd2-965e-369fbd9d3b76"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.358086"], ["updated_at", "2015-07-06 21:25:42.358086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.28@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 28"], ["email", "user.28@example.com"], ["password_digest", "$2a$04$Yor85Rq.MB4QNaZvUTXD6.KdRnWVrfxa5cPz/aT919.Pgl9sQt6jC"], ["created_at", "2015-07-06 21:25:42.365521"], ["updated_at", "2015-07-06 21:25:42.365521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-10' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-10"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.370290"], ["updated_at", "2015-07-06 21:25:42.370290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '644990de-ecf1-44ce-adb8-9e865a0a0579' AND "clubhouse_memberships"."organization_id" = '3c761c6f-dc42-404d-8c0a-9b72885d12b0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "644990de-ecf1-44ce-adb8-9e865a0a0579"], ["organization_id", "3c761c6f-dc42-404d-8c0a-9b72885d12b0"], ["created_at", "2015-07-06 21:25:42.373530"], ["updated_at", "2015-07-06 21:25:42.373530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#index as HTML Parameters: {"organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.376236') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "7c227372-dcdd-4b06-9c73-d3994e6398b5"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.377585"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.378440"], ["id", "7c227372-dcdd-4b06-9c73-d3994e6398b5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4e50a95e-3cfc-4708-90bd-76575c4616c6"]] Clubhouse::Organization Load (0.7ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" INNER JOIN "clubhouse_memberships" ON "clubhouse_organizations"."id" = "clubhouse_memberships"."organization_id" WHERE "clubhouse_memberships"."member_id" = $1 [["member_id", "4e50a95e-3cfc-4708-90bd-76575c4616c6"]] Completed 200 OK in 16ms (Views: 2.7ms | ActiveRecord: 1.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.29@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 29"], ["email", "user.29@example.com"], ["password_digest", "$2a$04$xJjDTIJfXG1/nAoi166vCuCgU.KfTRODxtAxStNiBnXDDokmV8YIC"], ["created_at", "2015-07-06 21:25:42.399693"], ["updated_at", "2015-07-06 21:25:42.399693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.401453"], ["user_id", "163962a5-8532-459a-b3eb-e668fe740fdc"], ["created_at", "2015-07-06 21:25:42.402116"], ["updated_at", "2015-07-06 21:25:42.402116"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-11' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-11"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.408838"], ["updated_at", "2015-07-06 21:25:42.408838"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '163962a5-8532-459a-b3eb-e668fe740fdc' AND "clubhouse_memberships"."organization_id" = '1dd40752-92e3-4c81-b19f-e26949c151fa') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "163962a5-8532-459a-b3eb-e668fe740fdc"], ["organization_id", "1dd40752-92e3-4c81-b19f-e26949c151fa"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.413976"], ["updated_at", "2015-07-06 21:25:42.413976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/name" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.30@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 30"], ["email", "user.30@example.com"], ["password_digest", "$2a$04$sdO8T7eAdOVBOgFHnQ7r9eoMYRm8txYdXrECFBCb/riOSQyOTzsd6"], ["created_at", "2015-07-06 21:25:42.424839"], ["updated_at", "2015-07-06 21:25:42.424839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.426856"], ["user_id", "01677bcb-a476-4cd9-917a-d6666c6f3204"], ["created_at", "2015-07-06 21:25:42.427619"], ["updated_at", "2015-07-06 21:25:42.427619"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-12' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-12"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.432850"], ["updated_at", "2015-07-06 21:25:42.432850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '01677bcb-a476-4cd9-917a-d6666c6f3204' AND "clubhouse_memberships"."organization_id" = '91b127db-2373-445e-84e5-77d2613714a3') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "01677bcb-a476-4cd9-917a-d6666c6f3204"], ["organization_id", "91b127db-2373-445e-84e5-77d2613714a3"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.436004"], ["updated_at", "2015-07-06 21:25:42.436004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-12" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"org-12", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.439916') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "0876c39c-1b39-4dc4-9ee5-5d3e10f468e6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.441314"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.442085"], ["id", "0876c39c-1b39-4dc4-9ee5-5d3e10f468e6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-12"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "01677bcb-a476-4cd9-917a-d6666c6f3204"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '01677bcb-a476-4cd9-917a-d6666c6f3204' LIMIT 1 [["organization_id", "91b127db-2373-445e-84e5-77d2613714a3"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '91b127db-2373-445e-84e5-77d2613714a3') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 14ms (ActiveRecord: 2.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.31@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 31"], ["email", "user.31@example.com"], ["password_digest", "$2a$04$ebe2meYU0Z/tcomOQKEF2u//xoW2KSQFdxKQWgNT882TlP15NmnO2"], ["created_at", "2015-07-06 21:25:42.459899"], ["updated_at", "2015-07-06 21:25:42.459899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.461506"], ["user_id", "07f88967-667a-4e29-b0d9-5953e80d0e54"], ["created_at", "2015-07-06 21:25:42.462150"], ["updated_at", "2015-07-06 21:25:42.462150"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-13' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-13"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.466289"], ["updated_at", "2015-07-06 21:25:42.466289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '07f88967-667a-4e29-b0d9-5953e80d0e54' AND "clubhouse_memberships"."organization_id" = 'a36d4a37-b9d0-4fd2-bb3d-e50226579701') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "07f88967-667a-4e29-b0d9-5953e80d0e54"], ["organization_id", "a36d4a37-b9d0-4fd2-bb3d-e50226579701"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.469996"], ["updated_at", "2015-07-06 21:25:42.469996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/org-13" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"org-13", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.473259') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "090c1e4f-0e19-4195-8125-9ac8b55bab91"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.474711"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.475488"], ["id", "090c1e4f-0e19-4195-8125-9ac8b55bab91"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-13"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "07f88967-667a-4e29-b0d9-5953e80d0e54"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '07f88967-667a-4e29-b0d9-5953e80d0e54' LIMIT 1 [["organization_id", "a36d4a37-b9d0-4fd2-bb3d-e50226579701"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'a36d4a37-b9d0-4fd2-bb3d-e50226579701') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:25:42.482561"], ["id", "a36d4a37-b9d0-4fd2-bb3d-e50226579701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.32@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 32"], ["email", "user.32@example.com"], ["password_digest", "$2a$04$4qBijdiLLUwHbpIgE7ZiCu55XT7Bjx3DBLx8G6CwDySWsHUqmd6E."], ["created_at", "2015-07-06 21:25:42.492086"], ["updated_at", "2015-07-06 21:25:42.492086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.494281"], ["user_id", "6fb7ff1b-b4d4-48b3-9976-f63cf7c122d7"], ["created_at", "2015-07-06 21:25:42.496067"], ["updated_at", "2015-07-06 21:25:42.496067"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-14' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-14"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.501348"], ["updated_at", "2015-07-06 21:25:42.501348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6fb7ff1b-b4d4-48b3-9976-f63cf7c122d7' AND "clubhouse_memberships"."organization_id" = 'f4e3a6cc-b2e3-4592-8db8-3934461ada14') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6fb7ff1b-b4d4-48b3-9976-f63cf7c122d7"], ["organization_id", "f4e3a6cc-b2e3-4592-8db8-3934461ada14"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.504513"], ["updated_at", "2015-07-06 21:25:42.504513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/1" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.33@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 33"], ["email", "user.33@example.com"], ["password_digest", "$2a$04$nuLPOmFr395PXzLnUo58eObT90oI889fdZNs7idVC8j/iehQWWahm"], ["created_at", "2015-07-06 21:25:42.513536"], ["updated_at", "2015-07-06 21:25:42.513536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.515189"], ["user_id", "785d28b8-fbb2-4c98-8cf3-cadbe96ec147"], ["created_at", "2015-07-06 21:25:42.515832"], ["updated_at", "2015-07-06 21:25:42.515832"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-15' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-15"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.521221"], ["updated_at", "2015-07-06 21:25:42.521221"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '785d28b8-fbb2-4c98-8cf3-cadbe96ec147' AND "clubhouse_memberships"."organization_id" = '3d05085f-96b3-4195-8117-01a38cb1753f') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "785d28b8-fbb2-4c98-8cf3-cadbe96ec147"], ["organization_id", "3d05085f-96b3-4195-8117-01a38cb1753f"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.525902"], ["updated_at", "2015-07-06 21:25:42.525902"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/organizations/3d05085f-96b3-4195-8117-01a38cb1753f" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#destroy as HTML Parameters: {"id"=>"3d05085f-96b3-4195-8117-01a38cb1753f", "organization"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.530959') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5d608e7e-c8e4-4151-bd12-665660d4892c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.532745"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.533783"], ["id", "5d608e7e-c8e4-4151-bd12-665660d4892c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "3d05085f-96b3-4195-8117-01a38cb1753f"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "785d28b8-fbb2-4c98-8cf3-cadbe96ec147"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '785d28b8-fbb2-4c98-8cf3-cadbe96ec147' LIMIT 1 [["organization_id", "3d05085f-96b3-4195-8117-01a38cb1753f"], ["admin", "t"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 [["id", "3d05085f-96b3-4195-8117-01a38cb1753f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 11ms (ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.34@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 34"], ["email", "user.34@example.com"], ["password_digest", "$2a$04$WVT/sWrMBr35.eOaBNSjW.Kj0nz.vWGZui5yFupUr9ixmYFKaoFmW"], ["created_at", "2015-07-06 21:25:42.549421"], ["updated_at", "2015-07-06 21:25:42.549421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.551038"], ["user_id", "052fa9e2-e34d-4a55-b546-be1055a684dc"], ["created_at", "2015-07-06 21:25:42.551660"], ["updated_at", "2015-07-06 21:25:42.551660"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-16' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-16"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.555805"], ["updated_at", "2015-07-06 21:25:42.555805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '052fa9e2-e34d-4a55-b546-be1055a684dc' AND "clubhouse_memberships"."organization_id" = 'd0337385-504b-45af-ade8-f091ff336a68') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "052fa9e2-e34d-4a55-b546-be1055a684dc"], ["organization_id", "d0337385-504b-45af-ade8-f091ff336a68"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.559828"], ["updated_at", "2015-07-06 21:25:42.559828"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.35@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 35"], ["email", "user.35@example.com"], ["password_digest", "$2a$04$3q7WRL0ueVX2pAa2.9LUmOx.4IM5biuQPjqzUwThGF.H7/nmaOBM."], ["created_at", "2015-07-06 21:25:42.571997"], ["updated_at", "2015-07-06 21:25:42.571997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.573634"], ["user_id", "1eaea7b3-7e97-43fd-a259-f7d98de4aebd"], ["created_at", "2015-07-06 21:25:42.574240"], ["updated_at", "2015-07-06 21:25:42.574240"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-17' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-17"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.578091"], ["updated_at", "2015-07-06 21:25:42.578091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1eaea7b3-7e97-43fd-a259-f7d98de4aebd' AND "clubhouse_memberships"."organization_id" = 'e0a44e81-d8c2-48bd-a100-49fbbf9a3e0f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1eaea7b3-7e97-43fd-a259-f7d98de4aebd"], ["organization_id", "e0a44e81-d8c2-48bd-a100-49fbbf9a3e0f"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.580886"], ["updated_at", "2015-07-06 21:25:42.580886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/e0a44e81-d8c2-48bd-a100-49fbbf9a3e0f" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>"newemail@example.com", "id"=>"e0a44e81-d8c2-48bd-a100-49fbbf9a3e0f", "organization"=>{"name"=>"new-name", "email"=>"newemail@example.com"}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.583702') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c9e0b976-0069-406e-8d0c-512f47037daf"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.585042"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.585783"], ["id", "c9e0b976-0069-406e-8d0c-512f47037daf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "e0a44e81-d8c2-48bd-a100-49fbbf9a3e0f"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "1eaea7b3-7e97-43fd-a259-f7d98de4aebd"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '1eaea7b3-7e97-43fd-a259-f7d98de4aebd' LIMIT 1 [["organization_id", "e0a44e81-d8c2-48bd-a100-49fbbf9a3e0f"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != 'e0a44e81-d8c2-48bd-a100-49fbbf9a3e0f') LIMIT 1 SQL (0.2ms) UPDATE "clubhouse_organizations" SET "name" = $1, "email" = $2, "updated_at" = $3 WHERE "clubhouse_organizations"."id" = $4 [["name", "new-name"], ["email", "newemail@example.com"], ["updated_at", "2015-07-06 21:25:42.592847"], ["id", "e0a44e81-d8c2-48bd-a100-49fbbf9a3e0f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.36@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 36"], ["email", "user.36@example.com"], ["password_digest", "$2a$04$VpyDzpkoT0IBwSS.VIy52.kUENUhVTnKFnCxFvPG3MF2W5gdM448S"], ["created_at", "2015-07-06 21:25:42.602295"], ["updated_at", "2015-07-06 21:25:42.602295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.604117"], ["user_id", "56dcd8c7-abe8-415d-8f35-d26b73ae6800"], ["created_at", "2015-07-06 21:25:42.604734"], ["updated_at", "2015-07-06 21:25:42.604734"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-18' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-18"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.608598"], ["updated_at", "2015-07-06 21:25:42.608598"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.8ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '56dcd8c7-abe8-415d-8f35-d26b73ae6800' AND "clubhouse_memberships"."organization_id" = '1518b4e5-57ee-47c0-8e34-08200b8364c6') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "56dcd8c7-abe8-415d-8f35-d26b73ae6800"], ["organization_id", "1518b4e5-57ee-47c0-8e34-08200b8364c6"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.613678"], ["updated_at", "2015-07-06 21:25:42.613678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/organizations/1518b4e5-57ee-47c0-8e34-08200b8364c6" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#update as HTML Parameters: {"name"=>"new-name", "email"=>nil, "id"=>"1518b4e5-57ee-47c0-8e34-08200b8364c6", "organization"=>{"name"=>"new-name", "email"=>nil}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.616821') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "62d11fbf-9e74-411b-81d7-d043f5a0fa86"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.618424"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.619267"], ["id", "62d11fbf-9e74-411b-81d7-d043f5a0fa86"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1518b4e5-57ee-47c0-8e34-08200b8364c6"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "56dcd8c7-abe8-415d-8f35-d26b73ae6800"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '56dcd8c7-abe8-415d-8f35-d26b73ae6800' LIMIT 1 [["organization_id", "1518b4e5-57ee-47c0-8e34-08200b8364c6"], ["admin", "t"]] Unpermitted parameters: id, organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE ("clubhouse_organizations"."name" = 'new-name' AND "clubhouse_organizations"."id" != '1518b4e5-57ee-47c0-8e34-08200b8364c6') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 12ms (ActiveRecord: 1.7ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.37@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 37"], ["email", "user.37@example.com"], ["password_digest", "$2a$04$CFv/Rn2HVGya1NUM03NlIOoni2gMun4/Pad5AYu1ppcF/Gh.4qI4i"], ["created_at", "2015-07-06 21:25:42.635275"], ["updated_at", "2015-07-06 21:25:42.635275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.636931"], ["user_id", "e67483a2-404e-4a5d-97cd-693534a1efd5"], ["created_at", "2015-07-06 21:25:42.637624"], ["updated_at", "2015-07-06 21:25:42.637624"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-19' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-19"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.641557"], ["updated_at", "2015-07-06 21:25:42.641557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e67483a2-404e-4a5d-97cd-693534a1efd5' AND "clubhouse_memberships"."organization_id" = 'd479b1a7-7061-4d89-9d87-c22ec26680c2') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e67483a2-404e-4a5d-97cd-693534a1efd5"], ["organization_id", "d479b1a7-7061-4d89-9d87-c22ec26680c2"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.644463"], ["updated_at", "2015-07-06 21:25:42.644463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.38@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 38"], ["email", "user.38@example.com"], ["password_digest", "$2a$04$KjetNQLRgNvSfwkbBoWUzufsgUpfCEI3oe3/mHB9txw06H7WlkYCW"], ["created_at", "2015-07-06 21:25:42.653326"], ["updated_at", "2015-07-06 21:25:42.653326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.654909"], ["user_id", "415d5697-02cd-4f13-a1a0-d557a6b0b520"], ["created_at", "2015-07-06 21:25:42.655534"], ["updated_at", "2015-07-06 21:25:42.655534"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-20' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-20"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.659442"], ["updated_at", "2015-07-06 21:25:42.659442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '415d5697-02cd-4f13-a1a0-d557a6b0b520' AND "clubhouse_memberships"."organization_id" = 'bee36b3e-45de-441a-bc4a-bf49ba56526f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "415d5697-02cd-4f13-a1a0-d557a6b0b520"], ["organization_id", "bee36b3e-45de-441a-bc4a-bf49ba56526f"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.662315"], ["updated_at", "2015-07-06 21:25:42.662315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>"email@example.com", "organization"=>{"name"=>"name", "email"=>"email@example.com"}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.665432') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "32a8ea18-0478-4fc8-adb3-0fb7379a3c31"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.667513"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.668594"], ["id", "32a8ea18-0478-4fc8-adb3-0fb7379a3c31"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "415d5697-02cd-4f13-a1a0-d557a6b0b520"]] Unpermitted parameter: organization  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (1.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.681084"], ["updated_at", "2015-07-06 21:25:42.681084"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '415d5697-02cd-4f13-a1a0-d557a6b0b520' AND "clubhouse_memberships"."organization_id" = '421a9716-0394-45ee-b021-a64be717e151') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "admin", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "415d5697-02cd-4f13-a1a0-d557a6b0b520"], ["admin", "t"], ["organization_id", "421a9716-0394-45ee-b021-a64be717e151"], ["created_at", "2015-07-06 21:25:42.685176"], ["updated_at", "2015-07-06 21:25:42.685176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 22ms (Views: 0.6ms | ActiveRecord: 3.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.39@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 39"], ["email", "user.39@example.com"], ["password_digest", "$2a$04$alnlluWqtb.KVEgyaGGHfekbGlI21.ac/7bOEC/pVxAnOHiVT4fEu"], ["created_at", "2015-07-06 21:25:42.695272"], ["updated_at", "2015-07-06 21:25:42.695272"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.697778"], ["user_id", "09312164-2d78-4664-9b9d-6d50480b29e0"], ["created_at", "2015-07-06 21:25:42.698707"], ["updated_at", "2015-07-06 21:25:42.698707"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-21' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-21"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.703107"], ["updated_at", "2015-07-06 21:25:42.703107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '09312164-2d78-4664-9b9d-6d50480b29e0' AND "clubhouse_memberships"."organization_id" = 'bdd73be5-f6ac-43be-9c67-f25ba834e994') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "09312164-2d78-4664-9b9d-6d50480b29e0"], ["organization_id", "bdd73be5-f6ac-43be-9c67-f25ba834e994"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.706228"], ["updated_at", "2015-07-06 21:25:42.706228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#create as HTML Parameters: {"name"=>"name", "email"=>nil, "organization"=>{"name"=>"name", "email"=>nil}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.709025') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "52624cd5-a2a5-4d81-acf0-8bc3d1e9eba8"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.710452"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.711150"], ["id", "52624cd5-a2a5-4d81-acf0-8bc3d1e9eba8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09312164-2d78-4664-9b9d-6d50480b29e0"]] Unpermitted parameter: organization  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 422 Unprocessable Entity in 10ms (ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.40@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 40"], ["email", "user.40@example.com"], ["password_digest", "$2a$04$IYcG1VQVYJG5wU7Qf.dsquuYssyFyaTd1QHX/YDEUOrRoX9CSwT.q"], ["created_at", "2015-07-06 21:25:42.726333"], ["updated_at", "2015-07-06 21:25:42.726333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.728455"], ["user_id", "aabfe022-7265-4bee-b218-25ebb8b00c65"], ["created_at", "2015-07-06 21:25:42.729163"], ["updated_at", "2015-07-06 21:25:42.729163"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-22' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-22"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.733061"], ["updated_at", "2015-07-06 21:25:42.733061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'aabfe022-7265-4bee-b218-25ebb8b00c65' AND "clubhouse_memberships"."organization_id" = '5ce34eb9-82f8-4f55-bb31-bb3c459361f4') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "aabfe022-7265-4bee-b218-25ebb8b00c65"], ["organization_id", "5ce34eb9-82f8-4f55-bb31-bb3c459361f4"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.736257"], ["updated_at", "2015-07-06 21:25:42.736257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org-22" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"org-22", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.739260') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "f73cb611-83da-4820-a30a-dca584892243"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.740542"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.741301"], ["id", "f73cb611-83da-4820-a30a-dca584892243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-22"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "aabfe022-7265-4bee-b218-25ebb8b00c65"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'aabfe022-7265-4bee-b218-25ebb8b00c65' LIMIT 1 [["organization_id", "5ce34eb9-82f8-4f55-bb31-bb3c459361f4"]] Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 1.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.41@example.com' LIMIT 1 SQL (0.8ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 41"], ["email", "user.41@example.com"], ["password_digest", "$2a$04$PJWhuCs9W6lSk4mppuGjw.qqrpwYA1o0J26auQmUZiv9zpqWVW7ZO"], ["created_at", "2015-07-06 21:25:42.756257"], ["updated_at", "2015-07-06 21:25:42.756257"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.759279"], ["user_id", "d7cc1a79-b437-4c61-b8ca-2eb78084efd3"], ["created_at", "2015-07-06 21:25:42.760568"], ["updated_at", "2015-07-06 21:25:42.760568"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-23' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-23"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.767924"], ["updated_at", "2015-07-06 21:25:42.767924"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd7cc1a79-b437-4c61-b8ca-2eb78084efd3' AND "clubhouse_memberships"."organization_id" = 'f528e3e4-1307-4c66-a659-f60b1c06cd7a') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "d7cc1a79-b437-4c61-b8ca-2eb78084efd3"], ["organization_id", "f528e3e4-1307-4c66-a659-f60b1c06cd7a"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.774807"], ["updated_at", "2015-07-06 21:25:42.774807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.42@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 42"], ["email", "user.42@example.com"], ["password_digest", "$2a$04$4OoJEmbzAeh1MPXYJKO8mO8Sn1D3geMANn1NrCUfrETvB/nTCINBS"], ["created_at", "2015-07-06 21:25:42.786490"], ["updated_at", "2015-07-06 21:25:42.786490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.789275"], ["user_id", "4d4b30d7-a4d6-45ac-8bfc-0b248a624865"], ["created_at", "2015-07-06 21:25:42.790060"], ["updated_at", "2015-07-06 21:25:42.790060"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-24' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-24"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.796025"], ["updated_at", "2015-07-06 21:25:42.796025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d4b30d7-a4d6-45ac-8bfc-0b248a624865' AND "clubhouse_memberships"."organization_id" = '04046249-b801-4e94-a627-b893bc35f64f') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4d4b30d7-a4d6-45ac-8bfc-0b248a624865"], ["organization_id", "04046249-b801-4e94-a627-b893bc35f64f"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.799946"], ["updated_at", "2015-07-06 21:25:42.799946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/04046249-b801-4e94-a627-b893bc35f64f" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"04046249-b801-4e94-a627-b893bc35f64f", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.802718') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "89007c59-16e0-4e22-b100-cd83cdbf3b4b"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.804051"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.804765"], ["id", "89007c59-16e0-4e22-b100-cd83cdbf3b4b"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "04046249-b801-4e94-a627-b893bc35f64f"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4d4b30d7-a4d6-45ac-8bfc-0b248a624865"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '4d4b30d7-a4d6-45ac-8bfc-0b248a624865' LIMIT 1 [["organization_id", "04046249-b801-4e94-a627-b893bc35f64f"]] Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 1.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.43@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 43"], ["email", "user.43@example.com"], ["password_digest", "$2a$04$q7mj3jUqlP2UA2KeNGw4ve4l3RPzmHuitN0mUj5LxpnnOBJZnvL7e"], ["created_at", "2015-07-06 21:25:42.816221"], ["updated_at", "2015-07-06 21:25:42.816221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.817797"], ["user_id", "896d5c04-c33d-4097-8d12-7fba56bc6d4f"], ["created_at", "2015-07-06 21:25:42.818434"], ["updated_at", "2015-07-06 21:25:42.818434"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-25' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-25"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.822706"], ["updated_at", "2015-07-06 21:25:42.822706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '896d5c04-c33d-4097-8d12-7fba56bc6d4f' AND "clubhouse_memberships"."organization_id" = '7322234c-b293-44fe-82d9-cae9f619d1f3') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "896d5c04-c33d-4097-8d12-7fba56bc6d4f"], ["organization_id", "7322234c-b293-44fe-82d9-cae9f619d1f3"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.825973"], ["updated_at", "2015-07-06 21:25:42.825973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#show as HTML Parameters: {"id"=>"1", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.44@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 44"], ["email", "user.44@example.com"], ["password_digest", "$2a$04$jw.7pz9PQ.vB0FUiPEajXupuMsrknPxYbLzCQgL7ULjFyfGqKOLya"], ["created_at", "2015-07-06 21:25:42.834918"], ["updated_at", "2015-07-06 21:25:42.834918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.836524"], ["user_id", "1a53ca84-cb7d-4588-b79a-70f1e388513a"], ["created_at", "2015-07-06 21:25:42.837143"], ["updated_at", "2015-07-06 21:25:42.837143"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-26' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-26"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.841044"], ["updated_at", "2015-07-06 21:25:42.841044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1a53ca84-cb7d-4588-b79a-70f1e388513a' AND "clubhouse_memberships"."organization_id" = '04eacb45-19b9-4a83-bf75-ba1a89d22d46') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1a53ca84-cb7d-4588-b79a-70f1e388513a"], ["organization_id", "04eacb45-19b9-4a83-bf75-ba1a89d22d46"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.843904"], ["updated_at", "2015-07-06 21:25:42.843904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/name" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"name", "organization"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.45@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 45"], ["email", "user.45@example.com"], ["password_digest", "$2a$04$ya9476ALEQiA/CNFvXzBf.rYFMvmBAupO6cKjwQG7YKD6jfGsJICa"], ["created_at", "2015-07-06 21:25:42.857344"], ["updated_at", "2015-07-06 21:25:42.857344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.859550"], ["user_id", "8cd09ac9-febd-4507-ad1a-1fd2fa434437"], ["created_at", "2015-07-06 21:25:42.860621"], ["updated_at", "2015-07-06 21:25:42.860621"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-27' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-27"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.867940"], ["updated_at", "2015-07-06 21:25:42.867940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8cd09ac9-febd-4507-ad1a-1fd2fa434437' AND "clubhouse_memberships"."organization_id" = '88d24ba6-fc63-440b-8845-d6aac686b0bb') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8cd09ac9-febd-4507-ad1a-1fd2fa434437"], ["organization_id", "88d24ba6-fc63-440b-8845-d6aac686b0bb"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.871407"], ["updated_at", "2015-07-06 21:25:42.871407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/org-27" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"org-27", "organization"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.874304') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "ba220dfd-05cb-4473-923f-89ff5da0ee18"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.875700"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.876451"], ["id", "ba220dfd-05cb-4473-923f-89ff5da0ee18"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org-27"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "8cd09ac9-febd-4507-ad1a-1fd2fa434437"]] Completed 200 OK in 5ms (ActiveRecord: 0.9ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.46@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 46"], ["email", "user.46@example.com"], ["password_digest", "$2a$04$a5j8/TjI4nmedpX1rpHuduJJrQuzm5CPLRNZOU80vSTG9oKBrwSZm"], ["created_at", "2015-07-06 21:25:42.886962"], ["updated_at", "2015-07-06 21:25:42.886962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:42.888777"], ["user_id", "42867054-09eb-4be7-90ff-7f4a5e8cad63"], ["created_at", "2015-07-06 21:25:42.889367"], ["updated_at", "2015-07-06 21:25:42.889367"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-28' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-28"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.893209"], ["updated_at", "2015-07-06 21:25:42.893209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '42867054-09eb-4be7-90ff-7f4a5e8cad63' AND "clubhouse_memberships"."organization_id" = '329074a6-42a9-4610-bbd2-da1cebcada63') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "42867054-09eb-4be7-90ff-7f4a5e8cad63"], ["organization_id", "329074a6-42a9-4610-bbd2-da1cebcada63"], ["admin", "t"], ["created_at", "2015-07-06 21:25:42.896592"], ["updated_at", "2015-07-06 21:25:42.896592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started HEAD "/organizations/available" for 127.0.0.1 at 2015-07-06 14:25:42 -0700 Processing by Clubhouse::OrganizationsController#check as HTML Parameters: {"id"=>"available", "organization"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:42.900246') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "99547d43-e0bc-4cb4-bb17-4a5b4ce5d035"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:42.902662"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:42.904266"], ["id", "99547d43-e0bc-4cb4-bb17-4a5b4ce5d035"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "available"]] Completed 404 Not Found in 10ms (ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.47@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 47"], ["email", "user.47@example.com"], ["password_digest", "$2a$04$tiBUYpz01bGLCMrlJX3HXO/RIzLg7Vk7kp3HPAIqcu7TgfOM0Muaq"], ["created_at", "2015-07-06 21:25:42.925483"], ["updated_at", "2015-07-06 21:25:42.925483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-29' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-29"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.930914"], ["updated_at", "2015-07-06 21:25:42.930914"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '452f241f-22c1-4352-b8af-ae3262c90b6a' AND "clubhouse_memberships"."organization_id" = '755d01f1-a923-47fe-aa94-b8c5903027fc') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "452f241f-22c1-4352-b8af-ae3262c90b6a"], ["organization_id", "755d01f1-a923-47fe-aa94-b8c5903027fc"], ["created_at", "2015-07-06 21:25:42.936054"], ["updated_at", "2015-07-06 21:25:42.936054"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.3ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" ORDER BY "clubhouse_memberships"."id" ASC LIMIT 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "452f241f-22c1-4352-b8af-ae3262c90b6a"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "755d01f1-a923-47fe-aa94-b8c5903027fc"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '452f241f-22c1-4352-b8af-ae3262c90b6a' AND "clubhouse_memberships"."organization_id" = '755d01f1-a923-47fe-aa94-b8c5903027fc') LIMIT 1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "755d01f1-a923-47fe-aa94-b8c5903027fd"]] Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '452f241f-22c1-4352-b8af-ae3262c90b6a' AND "clubhouse_memberships"."organization_id" = '755d01f1-a923-47fe-aa94-b8c5903027fd') LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" IS NULL AND "clubhouse_memberships"."organization_id" IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.48@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 48"], ["email", "user.48@example.com"], ["password_digest", "$2a$04$RYNkVvesQgq0rDg6UVxTt.ObUYoS6nvMkeML6P1C5Dg4TZFODzt.u"], ["created_at", "2015-07-06 21:25:42.958802"], ["updated_at", "2015-07-06 21:25:42.958802"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-30' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-30"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.967117"], ["updated_at", "2015-07-06 21:25:42.967117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'af90ef1d-1f9c-4541-998c-9a8bd4466005' AND "clubhouse_memberships"."organization_id" = 'a1f313df-9408-47c6-814a-a53d30b314f7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "af90ef1d-1f9c-4541-998c-9a8bd4466005"], ["organization_id", "a1f313df-9408-47c6-814a-a53d30b314f7"], ["created_at", "2015-07-06 21:25:42.970865"], ["updated_at", "2015-07-06 21:25:42.970865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-19@example.com' AND "clubhouse_invitations"."organization_id" = 'a1f313df-9408-47c6-814a-a53d30b314f7') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-19@example.com"], ["organization_id", "a1f313df-9408-47c6-814a-a53d30b314f7"], ["created_at", "2015-07-06 21:25:42.983641"], ["updated_at", "2015-07-06 21:25:42.983641"], ["token", "iSf02rL_Z36x5oZzsQzZASmBvAPsM5FJ4DOxriQZ7oI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'af90ef1d-1f9c-4541-998c-9a8bd4466005' LIMIT 1 [["organization_id", "a1f313df-9408-47c6-814a-a53d30b314f7"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.49@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 49"], ["email", "user.49@example.com"], ["password_digest", "$2a$04$KjzuoF8268nIA9aNOhS0juGMgTBWOlpT11AEq2PAp1WQVHkUeACYG"], ["created_at", "2015-07-06 21:25:42.993010"], ["updated_at", "2015-07-06 21:25:42.993010"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-31' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-31"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:42.999932"], ["updated_at", "2015-07-06 21:25:42.999932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '76047b5d-9b16-4ccd-89ca-7be4b1c61efb' AND "clubhouse_memberships"."organization_id" = '40b632e0-9b68-4211-8e3f-d38adac3099a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "76047b5d-9b16-4ccd-89ca-7be4b1c61efb"], ["organization_id", "40b632e0-9b68-4211-8e3f-d38adac3099a"], ["created_at", "2015-07-06 21:25:43.003651"], ["updated_at", "2015-07-06 21:25:43.003651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-20@example.com' AND "clubhouse_invitations"."organization_id" = '40b632e0-9b68-4211-8e3f-d38adac3099a') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-20@example.com"], ["organization_id", "40b632e0-9b68-4211-8e3f-d38adac3099a"], ["created_at", "2015-07-06 21:25:43.007959"], ["updated_at", "2015-07-06 21:25:43.007959"], ["token", "3IVJiRvmMIj747YyfuhG3onZmEopvcsfk7x6yghnaQ8"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '76047b5d-9b16-4ccd-89ca-7be4b1c61efb' LIMIT 1 [["organization_id", "40b632e0-9b68-4211-8e3f-d38adac3099a"], ["admin", "t"]]  (0.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.50@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 50"], ["email", "user.50@example.com"], ["password_digest", "$2a$04$G/H/XDjMd3avRuv757xiauGvCJJlqiL8DJ7TtL6AwukCfhSpNfeYa"], ["created_at", "2015-07-06 21:25:43.019233"], ["updated_at", "2015-07-06 21:25:43.019233"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-32' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-32"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.026481"], ["updated_at", "2015-07-06 21:25:43.026481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '46b5461a-48a1-4be3-9413-21d348eed4a5' AND "clubhouse_memberships"."organization_id" = 'e50c5a6b-42d1-49c6-8a13-7475f2c08204') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "46b5461a-48a1-4be3-9413-21d348eed4a5"], ["organization_id", "e50c5a6b-42d1-49c6-8a13-7475f2c08204"], ["created_at", "2015-07-06 21:25:43.030195"], ["updated_at", "2015-07-06 21:25:43.030195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-21@example.com' AND "clubhouse_invitations"."organization_id" = 'e50c5a6b-42d1-49c6-8a13-7475f2c08204') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-21@example.com"], ["organization_id", "e50c5a6b-42d1-49c6-8a13-7475f2c08204"], ["created_at", "2015-07-06 21:25:43.035102"], ["updated_at", "2015-07-06 21:25:43.035102"], ["token", "RVHeLIWVd9oGGXkK_pZemFo4-y9kN3hxlx7ALUQ3mJ0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '46b5461a-48a1-4be3-9413-21d348eed4a5' LIMIT 1 [["organization_id", "e50c5a6b-42d1-49c6-8a13-7475f2c08204"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.51@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 51"], ["email", "user.51@example.com"], ["password_digest", "$2a$04$1zF2s3DJa7uluqPYYVzj.uvaATqauIMyz1V9yST4aveCUbExce4na"], ["created_at", "2015-07-06 21:25:43.043480"], ["updated_at", "2015-07-06 21:25:43.043480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-33' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-33"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.047589"], ["updated_at", "2015-07-06 21:25:43.047589"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b2b687f7-1c33-41d3-a2e1-d1662a364016' AND "clubhouse_memberships"."organization_id" = '8facef49-36d6-43a6-a75f-d4a435aa40f8') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "b2b687f7-1c33-41d3-a2e1-d1662a364016"], ["organization_id", "8facef49-36d6-43a6-a75f-d4a435aa40f8"], ["created_at", "2015-07-06 21:25:43.053450"], ["updated_at", "2015-07-06 21:25:43.053450"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-22@example.com' AND "clubhouse_invitations"."organization_id" = '8facef49-36d6-43a6-a75f-d4a435aa40f8') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-22@example.com"], ["organization_id", "8facef49-36d6-43a6-a75f-d4a435aa40f8"], ["created_at", "2015-07-06 21:25:43.063422"], ["updated_at", "2015-07-06 21:25:43.063422"], ["token", "q54llKn0Go0ZOPAtgd8TzH0N1ErJKnSA6fuEdBZOGHY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'b2b687f7-1c33-41d3-a2e1-d1662a364016' LIMIT 1 [["organization_id", "8facef49-36d6-43a6-a75f-d4a435aa40f8"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.52@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 52"], ["email", "user.52@example.com"], ["password_digest", "$2a$04$QOrZcNTW0qcyKEt.gDCzSOfAmra/0PNTzTqgTUprYaqTqpNRx0za6"], ["created_at", "2015-07-06 21:25:43.075183"], ["updated_at", "2015-07-06 21:25:43.075183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-34' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-34"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.079232"], ["updated_at", "2015-07-06 21:25:43.079232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a675afd-b3e4-45ee-99e1-c98e7c5a2787' AND "clubhouse_memberships"."organization_id" = '74cbdbdf-d411-4fd2-97f6-3a43b75d0c9d') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a675afd-b3e4-45ee-99e1-c98e7c5a2787"], ["organization_id", "74cbdbdf-d411-4fd2-97f6-3a43b75d0c9d"], ["created_at", "2015-07-06 21:25:43.082400"], ["updated_at", "2015-07-06 21:25:43.082400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '7a675afd-b3e4-45ee-99e1-c98e7c5a2787' LIMIT 1 [["organization_id", "74cbdbdf-d411-4fd2-97f6-3a43b75d0c9d"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.53@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 53"], ["email", "user.53@example.com"], ["password_digest", "$2a$04$fzf4ajkwwYyGeeRNlBHhkeIUzT8nGz4iVikz9M8yOXPY2Ti3CtZQC"], ["created_at", "2015-07-06 21:25:43.091891"], ["updated_at", "2015-07-06 21:25:43.091891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-35' LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-35"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.098902"], ["updated_at", "2015-07-06 21:25:43.098902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-23@example.com' AND "clubhouse_invitations"."organization_id" = 'dd71be35-4723-44af-aacc-a78646ff6812') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-23@example.com"], ["organization_id", "dd71be35-4723-44af-aacc-a78646ff6812"], ["created_at", "2015-07-06 21:25:43.105464"], ["updated_at", "2015-07-06 21:25:43.105464"], ["token", "rxxj15zwefQBYHXP2J49KPnUrN3i62UEmHVwanRYVaM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'e2e0f1c8-a20f-435d-b5fe-569648393ee4' LIMIT 1 [["organization_id", "dd71be35-4723-44af-aacc-a78646ff6812"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.54@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 54"], ["email", "user.54@example.com"], ["password_digest", "$2a$04$rFHcLiTjqGuByGxdVYlY/O5x3b4Ei3wYhwyUlKi3SZBSncQXeNu9K"], ["created_at", "2015-07-06 21:25:43.117766"], ["updated_at", "2015-07-06 21:25:43.117766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-36' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-36"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.123334"], ["updated_at", "2015-07-06 21:25:43.123334"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-24@example.com' AND "clubhouse_invitations"."organization_id" = '7efeff07-4861-4360-8f7b-2dee99ee835b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-24@example.com"], ["organization_id", "7efeff07-4861-4360-8f7b-2dee99ee835b"], ["created_at", "2015-07-06 21:25:43.130401"], ["updated_at", "2015-07-06 21:25:43.130401"], ["token", "gRcOSa6Ktytoko1jaFenidp8XXYjeTC4Xlnf2EFBULI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'a838ca7d-6884-4d73-aca7-a9e1e9c9ad76' LIMIT 1 [["organization_id", "7efeff07-4861-4360-8f7b-2dee99ee835b"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.55@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 55"], ["email", "user.55@example.com"], ["password_digest", "$2a$04$pEX.cII8gFOk8QB.SA1yZeAiLGox0yGGH7/o.bSL.frF9DOWIr8ny"], ["created_at", "2015-07-06 21:25:43.139457"], ["updated_at", "2015-07-06 21:25:43.139457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-37' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-37"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.143581"], ["updated_at", "2015-07-06 21:25:43.143581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-25@example.com' AND "clubhouse_invitations"."organization_id" = 'c3863d27-b562-4123-9756-d0dde8dec1d9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-25@example.com"], ["organization_id", "c3863d27-b562-4123-9756-d0dde8dec1d9"], ["created_at", "2015-07-06 21:25:43.147760"], ["updated_at", "2015-07-06 21:25:43.147760"], ["token", "rr9GGtvUcDg5QesHbJbY3cgoet4GPfglGpQ706-pQMA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '104c9ecb-a245-4c2d-8358-08defcd75519' LIMIT 1 [["organization_id", "c3863d27-b562-4123-9756-d0dde8dec1d9"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.56@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 56"], ["email", "user.56@example.com"], ["password_digest", "$2a$04$OFUDjQgECw3vtjfKagRR1.y6ePmlu6M7yzdsRp7FAINJyLfXjSdbm"], ["created_at", "2015-07-06 21:25:43.160275"], ["updated_at", "2015-07-06 21:25:43.160275"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-38' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-38"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.167480"], ["updated_at", "2015-07-06 21:25:43.167480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-26@example.com' AND "clubhouse_invitations"."organization_id" = 'd78567e3-395c-4030-bf81-1c3089883820') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-26@example.com"], ["organization_id", "d78567e3-395c-4030-bf81-1c3089883820"], ["created_at", "2015-07-06 21:25:43.172453"], ["updated_at", "2015-07-06 21:25:43.172453"], ["token", "_dhaRNsf-JfLbOsX3aEqxBievVCnG-H7ACk00RrKyhc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '7679b65c-0574-4b48-aebf-9bb04ab448f3' LIMIT 1 [["organization_id", "d78567e3-395c-4030-bf81-1c3089883820"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.57@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 57"], ["email", "user.57@example.com"], ["password_digest", "$2a$04$WZCAaAjow5UPJT3L8W0mYeo7CitChJ0c9YyjMUrVd/qJiNiL79uh6"], ["created_at", "2015-07-06 21:25:43.183015"], ["updated_at", "2015-07-06 21:25:43.183015"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-39' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-39"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.189347"], ["updated_at", "2015-07-06 21:25:43.189347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'ef3499d8-7d2e-4c15-b1f2-8b4c113ff2fc' LIMIT 1 [["organization_id", "05fb3a6f-b258-43e1-a0c4-d55d11b5e908"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.58@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 58"], ["email", "user.58@example.com"], ["password_digest", "$2a$04$sEockA9Dc6IiPwsNQsyMxOo6hWJcVaFfuEYl5MdjasK89bypMD.k6"], ["created_at", "2015-07-06 21:25:43.201466"], ["updated_at", "2015-07-06 21:25:43.201466"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-40' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-40"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.207297"], ["updated_at", "2015-07-06 21:25:43.207297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c521fa69-d961-4488-aafb-2f0ab8e398ae' AND "clubhouse_memberships"."organization_id" = 'f4cc9ad6-6161-4fce-9bb8-cfad43a8e64d') LIMIT 1 SQL (0.6ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c521fa69-d961-4488-aafb-2f0ab8e398ae"], ["organization_id", "f4cc9ad6-6161-4fce-9bb8-cfad43a8e64d"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.214941"], ["updated_at", "2015-07-06 21:25:43.214941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-27@example.com' AND "clubhouse_invitations"."organization_id" = 'f4cc9ad6-6161-4fce-9bb8-cfad43a8e64d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-27@example.com"], ["organization_id", "f4cc9ad6-6161-4fce-9bb8-cfad43a8e64d"], ["created_at", "2015-07-06 21:25:43.220359"], ["updated_at", "2015-07-06 21:25:43.220359"], ["token", "lhq_FS-nbCQ2AvpyQBRtB5JUWfilcg294TBQeDGGuCY"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'c521fa69-d961-4488-aafb-2f0ab8e398ae' LIMIT 1 [["organization_id", "f4cc9ad6-6161-4fce-9bb8-cfad43a8e64d"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.59@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 59"], ["email", "user.59@example.com"], ["password_digest", "$2a$04$5Q/MClp45OySDooqXqs9oO1hBb.p8r9TQIje2D8cR7VMmgGCualx."], ["created_at", "2015-07-06 21:25:43.230911"], ["updated_at", "2015-07-06 21:25:43.230911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-41' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-41"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.236817"], ["updated_at", "2015-07-06 21:25:43.236817"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ce98e65a-7b6f-4cfc-a50b-a921652f0ae2' AND "clubhouse_memberships"."organization_id" = 'd2a056ca-b358-437c-91f7-58d03326fc7e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ce98e65a-7b6f-4cfc-a50b-a921652f0ae2"], ["organization_id", "d2a056ca-b358-437c-91f7-58d03326fc7e"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.242055"], ["updated_at", "2015-07-06 21:25:43.242055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-28@example.com' AND "clubhouse_invitations"."organization_id" = 'd2a056ca-b358-437c-91f7-58d03326fc7e') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-28@example.com"], ["organization_id", "d2a056ca-b358-437c-91f7-58d03326fc7e"], ["created_at", "2015-07-06 21:25:43.247468"], ["updated_at", "2015-07-06 21:25:43.247468"], ["token", "Ms5SDGHS34CSNGGBrHxD35s_Ly2gRDnSndtCnf9EGsg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'ce98e65a-7b6f-4cfc-a50b-a921652f0ae2' LIMIT 1 [["organization_id", "d2a056ca-b358-437c-91f7-58d03326fc7e"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.60@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 60"], ["email", "user.60@example.com"], ["password_digest", "$2a$04$l4sjkir4PHcg0b9pUdQLN.mQGdgbwM0ZTuN0e4Iyi/8RNrIqh1Kv6"], ["created_at", "2015-07-06 21:25:43.256652"], ["updated_at", "2015-07-06 21:25:43.256652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-42' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-42"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.260644"], ["updated_at", "2015-07-06 21:25:43.260644"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c2a9f1dd-c131-4fc4-a7c9-f432ef720128' AND "clubhouse_memberships"."organization_id" = '7af5e5d9-f64c-478e-9e58-5826b763a490') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c2a9f1dd-c131-4fc4-a7c9-f432ef720128"], ["organization_id", "7af5e5d9-f64c-478e-9e58-5826b763a490"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.266669"], ["updated_at", "2015-07-06 21:25:43.266669"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-29@example.com' AND "clubhouse_invitations"."organization_id" = '7af5e5d9-f64c-478e-9e58-5826b763a490') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-29@example.com"], ["organization_id", "7af5e5d9-f64c-478e-9e58-5826b763a490"], ["created_at", "2015-07-06 21:25:43.273066"], ["updated_at", "2015-07-06 21:25:43.273066"], ["token", "7if_jb2Ad_EA_NiQWZd8XOMdXm6p5YjDA3eXawu1aqM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'c2a9f1dd-c131-4fc4-a7c9-f432ef720128' LIMIT 1 [["organization_id", "7af5e5d9-f64c-478e-9e58-5826b763a490"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.61@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 61"], ["email", "user.61@example.com"], ["password_digest", "$2a$04$EOQfcvxgic3/izoK9HFP4esk9YUBIZMhkeswjlGBbgQ.5D7Fp3VRi"], ["created_at", "2015-07-06 21:25:43.282621"], ["updated_at", "2015-07-06 21:25:43.282621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-43' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-43"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.287045"], ["updated_at", "2015-07-06 21:25:43.287045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ba92f54-5495-4efc-a37c-86db94c5e888' AND "clubhouse_memberships"."organization_id" = 'a9a35d88-4405-45b4-8729-4e96cc46db02') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "5ba92f54-5495-4efc-a37c-86db94c5e888"], ["organization_id", "a9a35d88-4405-45b4-8729-4e96cc46db02"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.290041"], ["updated_at", "2015-07-06 21:25:43.290041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-30@example.com' AND "clubhouse_invitations"."organization_id" = 'a9a35d88-4405-45b4-8729-4e96cc46db02') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-30@example.com"], ["organization_id", "a9a35d88-4405-45b4-8729-4e96cc46db02"], ["created_at", "2015-07-06 21:25:43.295309"], ["updated_at", "2015-07-06 21:25:43.295309"], ["token", "502sRt-z1XIELtmL5nGd3jYoNO72gjpvlSbXCZ0fkhk"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '5ba92f54-5495-4efc-a37c-86db94c5e888' LIMIT 1 [["organization_id", "a9a35d88-4405-45b4-8729-4e96cc46db02"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.62@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 62"], ["email", "user.62@example.com"], ["password_digest", "$2a$04$cUu/PMGmtPBFdq.bfypLgOuBz3s4mpcbvg.BcB4KH8M0tmscR2CZq"], ["created_at", "2015-07-06 21:25:43.308552"], ["updated_at", "2015-07-06 21:25:43.308552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-44' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-44"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.316146"], ["updated_at", "2015-07-06 21:25:43.316146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6f3e164e-2ce9-48fb-91c1-ed19f4f56ffc' AND "clubhouse_memberships"."organization_id" = '6e68073a-196f-4d8c-90c2-4bdb222b266b') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6f3e164e-2ce9-48fb-91c1-ed19f4f56ffc"], ["organization_id", "6e68073a-196f-4d8c-90c2-4bdb222b266b"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.319776"], ["updated_at", "2015-07-06 21:25:43.319776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6f3e164e-2ce9-48fb-91c1-ed19f4f56ffc' LIMIT 1 [["organization_id", "6e68073a-196f-4d8c-90c2-4bdb222b266b"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.63@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 63"], ["email", "user.63@example.com"], ["password_digest", "$2a$04$H8e1f0LmlolbsjEbsYqgauIgSp4BdCJ5gMh3DJmPSdexqha2rjcb6"], ["created_at", "2015-07-06 21:25:43.331037"], ["updated_at", "2015-07-06 21:25:43.331037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-45' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-45"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.335881"], ["updated_at", "2015-07-06 21:25:43.335881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '47b3b4ca-a780-43d6-ba05-d82a5df4af86' AND "clubhouse_memberships"."organization_id" = 'adbae48a-e3db-45c9-8a2e-f947e856d5a8') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "47b3b4ca-a780-43d6-ba05-d82a5df4af86"], ["organization_id", "adbae48a-e3db-45c9-8a2e-f947e856d5a8"], ["created_at", "2015-07-06 21:25:43.340496"], ["updated_at", "2015-07-06 21:25:43.340496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.64@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 64"], ["email", "user.64@example.com"], ["password_digest", "$2a$04$HnPxUKz1xdAwZmci4eP2zO8v0l4PQsWKyD6BsjVbeei4oDBmKKMjS"], ["created_at", "2015-07-06 21:25:43.348750"], ["updated_at", "2015-07-06 21:25:43.348750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-46' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-46"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.355007"], ["updated_at", "2015-07-06 21:25:43.355007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f084a5a8-9d17-4058-b1ad-9fa6c7b35757' AND "clubhouse_memberships"."organization_id" = '95ce517f-c9b4-468c-98ca-ae4580b3998c') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f084a5a8-9d17-4058-b1ad-9fa6c7b35757"], ["organization_id", "95ce517f-c9b4-468c-98ca-ae4580b3998c"], ["created_at", "2015-07-06 21:25:43.359319"], ["updated_at", "2015-07-06 21:25:43.359319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'f084a5a8-9d17-4058-b1ad-9fa6c7b35757' LIMIT 1 [["organization_id", "95ce517f-c9b4-468c-98ca-ae4580b3998c"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.65@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 65"], ["email", "user.65@example.com"], ["password_digest", "$2a$04$YRpIpGJ5q5dIW0Ce9rqBm.yu.zsM0k8JRv3Kz3APcZ1UExxudxO1O"], ["created_at", "2015-07-06 21:25:43.370947"], ["updated_at", "2015-07-06 21:25:43.370947"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-47' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-47"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.376549"], ["updated_at", "2015-07-06 21:25:43.376549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'f9aa0b02-76c7-4044-a90e-a608dae5d0b7' AND "clubhouse_memberships"."organization_id" = '51a8c52b-be1f-4317-ab4d-c1405891ccb7') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "f9aa0b02-76c7-4044-a90e-a608dae5d0b7"], ["organization_id", "51a8c52b-be1f-4317-ab4d-c1405891ccb7"], ["created_at", "2015-07-06 21:25:43.381989"], ["updated_at", "2015-07-06 21:25:43.381989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'f9aa0b02-76c7-4044-a90e-a608dae5d0b7' LIMIT 1 [["organization_id", "51a8c52b-be1f-4317-ab4d-c1405891ccb7"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.66@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 66"], ["email", "user.66@example.com"], ["password_digest", "$2a$04$dgoKWpQU9dnKX5CGUWIaI.u8BbDdBPadOZ9s3qH5UXxLmn2ai3dT."], ["created_at", "2015-07-06 21:25:43.390317"], ["updated_at", "2015-07-06 21:25:43.390317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-48' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-48"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.394212"], ["updated_at", "2015-07-06 21:25:43.394212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2901568b-416b-45e1-90de-2cc99c96ce02' AND "clubhouse_memberships"."organization_id" = '5790ef1d-b6c7-400f-9627-e7e2c30870c1') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2901568b-416b-45e1-90de-2cc99c96ce02"], ["organization_id", "5790ef1d-b6c7-400f-9627-e7e2c30870c1"], ["created_at", "2015-07-06 21:25:43.397255"], ["updated_at", "2015-07-06 21:25:43.397255"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.67@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 67"], ["email", "user.67@example.com"], ["password_digest", "$2a$04$2NVUSYiKQkfMnBYLZGDj2ulZITZ686grdMGzx3VMvIRwIcyd4XQKy"], ["created_at", "2015-07-06 21:25:43.407309"], ["updated_at", "2015-07-06 21:25:43.407309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-49' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-49"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.411167"], ["updated_at", "2015-07-06 21:25:43.411167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bdc2cbed-bf64-47b6-a6ec-6ff4877809ca' AND "clubhouse_memberships"."organization_id" = '1853660d-6abe-4c8f-b85f-1ed24395ab29') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bdc2cbed-bf64-47b6-a6ec-6ff4877809ca"], ["organization_id", "1853660d-6abe-4c8f-b85f-1ed24395ab29"], ["created_at", "2015-07-06 21:25:43.414013"], ["updated_at", "2015-07-06 21:25:43.414013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'bdc2cbed-bf64-47b6-a6ec-6ff4877809ca' LIMIT 1 [["organization_id", "1853660d-6abe-4c8f-b85f-1ed24395ab29"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.68@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 68"], ["email", "user.68@example.com"], ["password_digest", "$2a$04$7l/.mIdVCqg99ou5fPvhre22PV2exQTl.wIHMT6qcYGuu6jGcqQte"], ["created_at", "2015-07-06 21:25:43.423797"], ["updated_at", "2015-07-06 21:25:43.423797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.69@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 69"], ["email", "user.69@example.com"], ["password_digest", "$2a$04$4z.8xy7/Q3..i8VTIPk8ae14lOSmwUBTP7Kxomme60W9WDDtz9XRO"], ["created_at", "2015-07-06 21:25:43.435929"], ["updated_at", "2015-07-06 21:25:43.435929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-50' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-50"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.440422"], ["updated_at", "2015-07-06 21:25:43.440422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e0534bf3-06fa-4391-aa47-7d4a6c1e0928' AND "clubhouse_memberships"."organization_id" = 'ab796eb8-06bf-4063-8dba-9d7833029a1a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e0534bf3-06fa-4391-aa47-7d4a6c1e0928"], ["organization_id", "ab796eb8-06bf-4063-8dba-9d7833029a1a"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.443403"], ["updated_at", "2015-07-06 21:25:43.443403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.70@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 70"], ["email", "user.70@example.com"], ["password_digest", "$2a$04$l4v03nkM.vm4.k.sWHssse41BIUwvczs02CXVhHTpwV7Raabn4WeC"], ["created_at", "2015-07-06 21:25:43.450062"], ["updated_at", "2015-07-06 21:25:43.450062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-51' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-51"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.454113"], ["updated_at", "2015-07-06 21:25:43.454113"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '150182b7-d076-4de2-9cb0-a93b693f8315' AND "clubhouse_memberships"."organization_id" = '0537be23-a5e5-4698-8433-5afc022038fa') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "150182b7-d076-4de2-9cb0-a93b693f8315"], ["organization_id", "0537be23-a5e5-4698-8433-5afc022038fa"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.458528"], ["updated_at", "2015-07-06 21:25:43.458528"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '150182b7-d076-4de2-9cb0-a93b693f8315' LIMIT 1 [["organization_id", "0537be23-a5e5-4698-8433-5afc022038fa"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.71@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 71"], ["email", "user.71@example.com"], ["password_digest", "$2a$04$7i.3n/pUp6kFuh.EG/kH6eZZzbDlzVzV6mAhqGPbK1FtcGoDte8oy"], ["created_at", "2015-07-06 21:25:43.469634"], ["updated_at", "2015-07-06 21:25:43.469634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-52' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-52"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.473713"], ["updated_at", "2015-07-06 21:25:43.473713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0e0b95c1-4921-4a7d-8549-9525e51cd845' AND "clubhouse_memberships"."organization_id" = '659dd84a-cd8f-420a-9d40-bb589ac6af5f') LIMIT 1 SQL (0.7ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0e0b95c1-4921-4a7d-8549-9525e51cd845"], ["organization_id", "659dd84a-cd8f-420a-9d40-bb589ac6af5f"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.477115"], ["updated_at", "2015-07-06 21:25:43.477115"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.72@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 72"], ["email", "user.72@example.com"], ["password_digest", "$2a$04$lUlQvc6.Meo.i7zkrLCS6uENlewoTVnG.kDZnB7hO8RcMVilPH0fa"], ["created_at", "2015-07-06 21:25:43.486877"], ["updated_at", "2015-07-06 21:25:43.486877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-53' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-53"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.492416"], ["updated_at", "2015-07-06 21:25:43.492416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'cee38144-f3a3-4fe7-b42f-9d512e98bf13' AND "clubhouse_memberships"."organization_id" = '15d588d4-c4f3-4f09-a8a0-ba185dcc6f57') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "cee38144-f3a3-4fe7-b42f-9d512e98bf13"], ["organization_id", "15d588d4-c4f3-4f09-a8a0-ba185dcc6f57"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.496440"], ["updated_at", "2015-07-06 21:25:43.496440"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'cee38144-f3a3-4fe7-b42f-9d512e98bf13' LIMIT 1 [["organization_id", "15d588d4-c4f3-4f09-a8a0-ba185dcc6f57"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.73@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 73"], ["email", "user.73@example.com"], ["password_digest", "$2a$04$WDnuyPu9nBNpKeVbsotmwOaMJzU5nhtUI7O43eyez4/cEEoM53Z2q"], ["created_at", "2015-07-06 21:25:43.508868"], ["updated_at", "2015-07-06 21:25:43.508868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-54' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-54"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.515024"], ["updated_at", "2015-07-06 21:25:43.515024"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2c17f96c-e0c0-4ef0-bc64-23c4632cbbec' AND "clubhouse_memberships"."organization_id" = 'd4a2035d-3185-4573-882f-001522200dae') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "2c17f96c-e0c0-4ef0-bc64-23c4632cbbec"], ["organization_id", "d4a2035d-3185-4573-882f-001522200dae"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.521844"], ["updated_at", "2015-07-06 21:25:43.521844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '2c17f96c-e0c0-4ef0-bc64-23c4632cbbec' LIMIT 1 [["organization_id", "d4a2035d-3185-4573-882f-001522200dae"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.74@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 74"], ["email", "user.74@example.com"], ["password_digest", "$2a$04$Ko5GNfn6jUA2XsC74TcI7.pcfuhw48eweaf6WInTYRN2buBEojsye"], ["created_at", "2015-07-06 21:25:43.533348"], ["updated_at", "2015-07-06 21:25:43.533348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-55' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-55"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.538240"], ["updated_at", "2015-07-06 21:25:43.538240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.75@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 75"], ["email", "user.75@example.com"], ["password_digest", "$2a$04$4kfogEqELZoyeQeTCx/VGexUoM7HKkt5.P6u0AhQ2abmmLaXUmk66"], ["created_at", "2015-07-06 21:25:43.548861"], ["updated_at", "2015-07-06 21:25:43.548861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-56' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-56"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.554012"], ["updated_at", "2015-07-06 21:25:43.554012"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '796bcc6e-054f-4dc6-aa82-70c040e61b7b' LIMIT 1 [["organization_id", "f536df0e-4551-48c5-8cc6-a80ba7485fbf"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.76@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 76"], ["email", "user.76@example.com"], ["password_digest", "$2a$04$B9OHpidSL/5v3RX3i.VZp.K3xjOVeMyITsPvG2THz.WrR3HHDRLm."], ["created_at", "2015-07-06 21:25:43.564319"], ["updated_at", "2015-07-06 21:25:43.564319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-57' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-57"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.569258"], ["updated_at", "2015-07-06 21:25:43.569258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '25dc97ba-c8f2-406f-921f-122aa589e667' LIMIT 1 [["organization_id", "56b276bd-5bff-4a8d-816d-e24b78f06b9e"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.77@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 77"], ["email", "user.77@example.com"], ["password_digest", "$2a$04$btEDZqkZKjVh6GTxxHj4W.bn8Wt.Quzay4zjcSeTCQ2yQQM8Fc9pG"], ["created_at", "2015-07-06 21:25:43.578396"], ["updated_at", "2015-07-06 21:25:43.578396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-58' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-58"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.585636"], ["updated_at", "2015-07-06 21:25:43.585636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '3e0bf36f-5c50-49a4-88bc-d37901c59224' LIMIT 1 [["organization_id", "d5ed1c7f-b556-429c-bd90-a16e479a0170"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.78@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 78"], ["email", "user.78@example.com"], ["password_digest", "$2a$04$Xixf1jMiNLWLBu/j/QYVWuADLlqMzgA82hekMbNyV6PvAeXKLFtk2"], ["created_at", "2015-07-06 21:25:43.595599"], ["updated_at", "2015-07-06 21:25:43.595599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-59' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-59"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.600058"], ["updated_at", "2015-07-06 21:25:43.600058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.79@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 79"], ["email", "user.79@example.com"], ["password_digest", "$2a$04$srPMGw12q6LUAS3DaRY2YOHtGApViGQztwwGvYNdQTt7EipY9b.Eu"], ["created_at", "2015-07-06 21:25:43.607290"], ["updated_at", "2015-07-06 21:25:43.607290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.80@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 80"], ["email", "user.80@example.com"], ["password_digest", "$2a$04$AfH374ULWSPZbA1e5h2mR.qntdBLqCnfIwXbDEWPy1xsbIzM35lma"], ["created_at", "2015-07-06 21:25:43.612749"], ["updated_at", "2015-07-06 21:25:43.612749"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:43.615562"], ["user_id", "9e988f80-89b0-497a-b68d-e8143f980a67"], ["created_at", "2015-07-06 21:25:43.617064"], ["updated_at", "2015-07-06 21:25:43.617064"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.623366"], ["updated_at", "2015-07-06 21:25:43.623366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9e988f80-89b0-497a-b68d-e8143f980a67' AND "clubhouse_memberships"."organization_id" = 'd10e6aab-6848-48fd-9ce9-2d4d24198489') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "9e988f80-89b0-497a-b68d-e8143f980a67"], ["organization_id", "d10e6aab-6848-48fd-9ce9-2d4d24198489"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.626675"], ["updated_at", "2015-07-06 21:25:43.626675"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '2bc8801d-f362-49be-a5aa-6cb4d166d48c' AND "clubhouse_memberships"."organization_id" = 'd10e6aab-6848-48fd-9ce9-2d4d24198489') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "2bc8801d-f362-49be-a5aa-6cb4d166d48c"], ["organization_id", "d10e6aab-6848-48fd-9ce9-2d4d24198489"], ["created_at", "2015-07-06 21:25:43.631953"], ["updated_at", "2015-07-06 21:25:43.631953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/d10e6aab-6848-48fd-9ce9-2d4d24198489/memberships" for 127.0.0.1 at 2015-07-06 14:25:43 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"d10e6aab-6848-48fd-9ce9-2d4d24198489", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:43.640892') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "9ea79c94-e483-40a1-933a-aa5101a3cdac"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:43.642811"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:43.644202"], ["id", "9ea79c94-e483-40a1-933a-aa5101a3cdac"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "d10e6aab-6848-48fd-9ce9-2d4d24198489"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9e988f80-89b0-497a-b68d-e8143f980a67"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '9e988f80-89b0-497a-b68d-e8143f980a67' LIMIT 1 [["organization_id", "d10e6aab-6848-48fd-9ce9-2d4d24198489"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "d10e6aab-6848-48fd-9ce9-2d4d24198489"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "9e988f80-89b0-497a-b68d-e8143f980a67"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "2bc8801d-f362-49be-a5aa-6cb4d166d48c"]] Completed 200 OK in 22ms (Views: 10.1ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.81@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 81"], ["email", "user.81@example.com"], ["password_digest", "$2a$04$OcgLsDwxPaLiNTD.o0QOLuZFe9/Lr/M6i/hTGvTaat2LV71gTXcPy"], ["created_at", "2015-07-06 21:25:43.671812"], ["updated_at", "2015-07-06 21:25:43.671812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.82@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 82"], ["email", "user.82@example.com"], ["password_digest", "$2a$04$nF3O3.T9vcFannMZI9Jlee7ijwSVV/SJEZWu5PBUpYUHWRkHbsNv2"], ["created_at", "2015-07-06 21:25:43.680586"], ["updated_at", "2015-07-06 21:25:43.680586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:43.682169"], ["user_id", "e35daad7-871e-436c-ae09-77544d261d0b"], ["created_at", "2015-07-06 21:25:43.682781"], ["updated_at", "2015-07-06 21:25:43.682781"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.686962"], ["updated_at", "2015-07-06 21:25:43.686962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e35daad7-871e-436c-ae09-77544d261d0b' AND "clubhouse_memberships"."organization_id" = 'ace57aae-cca8-4dd3-bab9-6be4fc44c6f6') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e35daad7-871e-436c-ae09-77544d261d0b"], ["organization_id", "ace57aae-cca8-4dd3-bab9-6be4fc44c6f6"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.690233"], ["updated_at", "2015-07-06 21:25:43.690233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '096a9cf0-fdd2-4f74-bf00-508538e0b95c' AND "clubhouse_memberships"."organization_id" = 'ace57aae-cca8-4dd3-bab9-6be4fc44c6f6') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "096a9cf0-fdd2-4f74-bf00-508538e0b95c"], ["organization_id", "ace57aae-cca8-4dd3-bab9-6be4fc44c6f6"], ["created_at", "2015-07-06 21:25:43.693463"], ["updated_at", "2015-07-06 21:25:43.693463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:25:43 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.83@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 83"], ["email", "user.83@example.com"], ["password_digest", "$2a$04$vOA.qulq3vBVR1jR9wd65eDNJki7oYSb4YjZ959CqWrwetuTMTs8."], ["created_at", "2015-07-06 21:25:43.704219"], ["updated_at", "2015-07-06 21:25:43.704219"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.84@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 84"], ["email", "user.84@example.com"], ["password_digest", "$2a$04$c7SzKAN21D7g8e3GjhWQAePc8CZ.Jd0B0CRu4p8Rk6YG.OEGjw34m"], ["created_at", "2015-07-06 21:25:43.713854"], ["updated_at", "2015-07-06 21:25:43.713854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:43.716622"], ["user_id", "307dbea4-798d-46af-a08d-c2ffbcd27f63"], ["created_at", "2015-07-06 21:25:43.717379"], ["updated_at", "2015-07-06 21:25:43.717379"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.722087"], ["updated_at", "2015-07-06 21:25:43.722087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '307dbea4-798d-46af-a08d-c2ffbcd27f63' AND "clubhouse_memberships"."organization_id" = 'e98423aa-7366-4f68-aad8-645f5f26c36a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "307dbea4-798d-46af-a08d-c2ffbcd27f63"], ["organization_id", "e98423aa-7366-4f68-aad8-645f5f26c36a"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.725208"], ["updated_at", "2015-07-06 21:25:43.725208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '819ab704-a549-4e86-864e-9b7c2af4f646' AND "clubhouse_memberships"."organization_id" = 'e98423aa-7366-4f68-aad8-645f5f26c36a') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "819ab704-a549-4e86-864e-9b7c2af4f646"], ["organization_id", "e98423aa-7366-4f68-aad8-645f5f26c36a"], ["created_at", "2015-07-06 21:25:43.728061"], ["updated_at", "2015-07-06 21:25:43.728061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:25:43 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:43.731432') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "191a0f2c-3cb4-473c-a9f5-2c5fe198b166"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:43.732948"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:43.733768"], ["id", "191a0f2c-3cb4-473c-a9f5-2c5fe198b166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "307dbea4-798d-46af-a08d-c2ffbcd27f63"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '307dbea4-798d-46af-a08d-c2ffbcd27f63' LIMIT 1 [["organization_id", "e98423aa-7366-4f68-aad8-645f5f26c36a"]] Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 [["organization_id", "e98423aa-7366-4f68-aad8-645f5f26c36a"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "307dbea4-798d-46af-a08d-c2ffbcd27f63"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "819ab704-a549-4e86-864e-9b7c2af4f646"]] Completed 200 OK in 12ms (Views: 2.6ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.85@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 85"], ["email", "user.85@example.com"], ["password_digest", "$2a$04$3ZTcUFwuFLRaqN.HF2S2nuQgas69U5AozloWm5JyaGHx.qG0TLIVK"], ["created_at", "2015-07-06 21:25:43.749872"], ["updated_at", "2015-07-06 21:25:43.749872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.86@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 86"], ["email", "user.86@example.com"], ["password_digest", "$2a$04$WdEnFk7f1PqytOFOntLehOjEAluuL/.SOMVcpFTWyv7rMoHyPbnFq"], ["created_at", "2015-07-06 21:25:43.755720"], ["updated_at", "2015-07-06 21:25:43.755720"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:43.758201"], ["user_id", "ac753809-ce6b-4aa2-844f-3e8b5fb256cd"], ["created_at", "2015-07-06 21:25:43.759246"], ["updated_at", "2015-07-06 21:25:43.759246"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.766052"], ["updated_at", "2015-07-06 21:25:43.766052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ac753809-ce6b-4aa2-844f-3e8b5fb256cd' AND "clubhouse_memberships"."organization_id" = 'b5ef1aa3-0eee-4ac4-9442-694925850cc1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ac753809-ce6b-4aa2-844f-3e8b5fb256cd"], ["organization_id", "b5ef1aa3-0eee-4ac4-9442-694925850cc1"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.770270"], ["updated_at", "2015-07-06 21:25:43.770270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c9fb9ea5-f345-441c-a330-91c313912902' AND "clubhouse_memberships"."organization_id" = 'b5ef1aa3-0eee-4ac4-9442-694925850cc1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c9fb9ea5-f345-441c-a330-91c313912902"], ["organization_id", "b5ef1aa3-0eee-4ac4-9442-694925850cc1"], ["created_at", "2015-07-06 21:25:43.774361"], ["updated_at", "2015-07-06 21:25:43.774361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:25:43 -0700 Processing by Clubhouse::MembershipsController#index as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.87@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 87"], ["email", "user.87@example.com"], ["password_digest", "$2a$04$In2h9vdz30x/OPvHcsRAZuCWsB4iNqLmluTLLXo6HasXO51eBCOy2"], ["created_at", "2015-07-06 21:25:43.785793"], ["updated_at", "2015-07-06 21:25:43.785793"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.88@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 88"], ["email", "user.88@example.com"], ["password_digest", "$2a$04$ospj5ZIN0rYYh4H90iExOeSwGE/8U3PG9AY8FHdPZDU4wWyPHzkUK"], ["created_at", "2015-07-06 21:25:43.795716"], ["updated_at", "2015-07-06 21:25:43.795716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:43.799070"], ["user_id", "0ba2cd61-b351-4d06-9eca-1af94a95f8a0"], ["created_at", "2015-07-06 21:25:43.800034"], ["updated_at", "2015-07-06 21:25:43.800034"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.806243"], ["updated_at", "2015-07-06 21:25:43.806243"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0ba2cd61-b351-4d06-9eca-1af94a95f8a0' AND "clubhouse_memberships"."organization_id" = 'b418cdf5-e9bc-434f-8e93-1961e8d3ada0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "0ba2cd61-b351-4d06-9eca-1af94a95f8a0"], ["organization_id", "b418cdf5-e9bc-434f-8e93-1961e8d3ada0"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.811228"], ["updated_at", "2015-07-06 21:25:43.811228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bcd6242-38b4-462f-b1ee-681925bb8d96' AND "clubhouse_memberships"."organization_id" = 'b418cdf5-e9bc-434f-8e93-1961e8d3ada0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6bcd6242-38b4-462f-b1ee-681925bb8d96"], ["organization_id", "b418cdf5-e9bc-434f-8e93-1961e8d3ada0"], ["created_at", "2015-07-06 21:25:43.814709"], ["updated_at", "2015-07-06 21:25:43.814709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/e2e4d091-dd04-4b59-b529-8bb104336fa0" for 127.0.0.1 at 2015-07-06 14:25:43 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"admin"=>true, "id"=>"e2e4d091-dd04-4b59-b529-8bb104336fa0", "membership"=>{"admin"=>true}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:43.818431') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4045310c-d415-4af3-92e0-d9049972ae3c"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:43.820745"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:43.821669"], ["id", "4045310c-d415-4af3-92e0-d9049972ae3c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "e2e4d091-dd04-4b59-b529-8bb104336fa0"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "0ba2cd61-b351-4d06-9eca-1af94a95f8a0"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "b418cdf5-e9bc-434f-8e93-1961e8d3ada0"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '0ba2cd61-b351-4d06-9eca-1af94a95f8a0' LIMIT 1 [["organization_id", "b418cdf5-e9bc-434f-8e93-1961e8d3ada0"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "6bcd6242-38b4-462f-b1ee-681925bb8d96"]] Unpermitted parameters: id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6bcd6242-38b4-462f-b1ee-681925bb8d96' AND "clubhouse_memberships"."id" != 'e2e4d091-dd04-4b59-b529-8bb104336fa0' AND "clubhouse_memberships"."organization_id" = 'b418cdf5-e9bc-434f-8e93-1961e8d3ada0') LIMIT 1 SQL (0.5ms) UPDATE "clubhouse_memberships" SET "admin" = $1, "updated_at" = $2 WHERE "clubhouse_memberships"."id" = $3 [["admin", "t"], ["updated_at", "2015-07-06 21:25:43.832038"], ["id", "e2e4d091-dd04-4b59-b529-8bb104336fa0"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 19ms (Views: 1.6ms | ActiveRecord: 3.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.89@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 89"], ["email", "user.89@example.com"], ["password_digest", "$2a$04$CqkHzBwhiJ8UDgOnWj3Q6O5K.tmxkE4BHUbXAlsaS5DaVAqPmzaGO"], ["created_at", "2015-07-06 21:25:43.846728"], ["updated_at", "2015-07-06 21:25:43.846728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.90@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 90"], ["email", "user.90@example.com"], ["password_digest", "$2a$04$6euDh5yn75G72tu60Ec86uUJ9keI3shL29FnzckNXqFVJyTQtBPYO"], ["created_at", "2015-07-06 21:25:43.854242"], ["updated_at", "2015-07-06 21:25:43.854242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:43.856540"], ["user_id", "7b807c34-cd97-4c58-8e12-895c23005caa"], ["created_at", "2015-07-06 21:25:43.857302"], ["updated_at", "2015-07-06 21:25:43.857302"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.864099"], ["updated_at", "2015-07-06 21:25:43.864099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7b807c34-cd97-4c58-8e12-895c23005caa' AND "clubhouse_memberships"."organization_id" = 'a16bdbd2-c6d5-4373-b231-9733ebb951c5') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7b807c34-cd97-4c58-8e12-895c23005caa"], ["organization_id", "a16bdbd2-c6d5-4373-b231-9733ebb951c5"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.869158"], ["updated_at", "2015-07-06 21:25:43.869158"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '58d8c1f8-64ad-40f3-bad5-63ca4a1d0a75' AND "clubhouse_memberships"."organization_id" = 'a16bdbd2-c6d5-4373-b231-9733ebb951c5') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "58d8c1f8-64ad-40f3-bad5-63ca4a1d0a75"], ["organization_id", "a16bdbd2-c6d5-4373-b231-9733ebb951c5"], ["created_at", "2015-07-06 21:25:43.874023"], ["updated_at", "2015-07-06 21:25:43.874023"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started PUT "/memberships/1" for 127.0.0.1 at 2015-07-06 14:25:43 -0700 Processing by Clubhouse::MembershipsController#update as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.91@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 91"], ["email", "user.91@example.com"], ["password_digest", "$2a$04$zLmggaD2AgHqHkob37fx6OmldhQhcc5h0DREJckQGog5sVQzYXxSu"], ["created_at", "2015-07-06 21:25:43.886088"], ["updated_at", "2015-07-06 21:25:43.886088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.92@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 92"], ["email", "user.92@example.com"], ["password_digest", "$2a$04$SFnQFMFB8ErPjqbtw12lU.IXjtrIHRfE6fyjMDqcRQY72FrxTf8iK"], ["created_at", "2015-07-06 21:25:43.891915"], ["updated_at", "2015-07-06 21:25:43.891915"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:43.895119"], ["user_id", "1e9c5bdf-17b2-4a42-b8c3-90be102bc3f4"], ["created_at", "2015-07-06 21:25:43.897022"], ["updated_at", "2015-07-06 21:25:43.897022"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.903270"], ["updated_at", "2015-07-06 21:25:43.903270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '1e9c5bdf-17b2-4a42-b8c3-90be102bc3f4' AND "clubhouse_memberships"."organization_id" = 'b69faf16-c63c-4d33-ba6f-c727d0dcb865') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "1e9c5bdf-17b2-4a42-b8c3-90be102bc3f4"], ["organization_id", "b69faf16-c63c-4d33-ba6f-c727d0dcb865"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.906998"], ["updated_at", "2015-07-06 21:25:43.906998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7498ffab-e758-43ce-a347-5b210e1f8f5c' AND "clubhouse_memberships"."organization_id" = 'b69faf16-c63c-4d33-ba6f-c727d0dcb865') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7498ffab-e758-43ce-a347-5b210e1f8f5c"], ["organization_id", "b69faf16-c63c-4d33-ba6f-c727d0dcb865"], ["created_at", "2015-07-06 21:25:43.910158"], ["updated_at", "2015-07-06 21:25:43.910158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.93@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 93"], ["email", "user.93@example.com"], ["password_digest", "$2a$04$o097Y7JTUTMXvhWVlvmkIOx9j4xH7QVkOOz8WLFYsPz661dMvx6fq"], ["created_at", "2015-07-06 21:25:43.915264"], ["updated_at", "2015-07-06 21:25:43.915264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:43.917146"], ["user_id", "c6dd3649-4902-4909-8bc2-0fe119865b55"], ["created_at", "2015-07-06 21:25:43.917827"], ["updated_at", "2015-07-06 21:25:43.917827"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-31@example.com' AND "clubhouse_invitations"."organization_id" = 'b69faf16-c63c-4d33-ba6f-c727d0dcb865') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-31@example.com"], ["organization_id", "b69faf16-c63c-4d33-ba6f-c727d0dcb865"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.923931"], ["updated_at", "2015-07-06 21:25:43.923931"], ["token", "HTi_nfUGXLfH2yfwLw_dPiKqi40IAS1s4w1c87peqno"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/name/memberships" for 127.0.0.1 at 2015-07-06 14:25:43 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"name", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.94@example.com' LIMIT 1 SQL (0.6ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 94"], ["email", "user.94@example.com"], ["password_digest", "$2a$04$0MCInzBGb8nhUYrmOm2er.33QzdAoa9ZGQMMf01Xaq6HjdxjuYoW2"], ["created_at", "2015-07-06 21:25:43.937189"], ["updated_at", "2015-07-06 21:25:43.937189"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.95@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 95"], ["email", "user.95@example.com"], ["password_digest", "$2a$04$zKJ.BfHTu791EAP0jy7ck.uoAHliXIaiPUf2av2gF7tcBetAhcKJ6"], ["created_at", "2015-07-06 21:25:43.944227"], ["updated_at", "2015-07-06 21:25:43.944227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:43.946001"], ["user_id", "8a61de87-0e92-4565-a79e-483b492cd5c0"], ["created_at", "2015-07-06 21:25:43.946693"], ["updated_at", "2015-07-06 21:25:43.946693"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:43.952602"], ["updated_at", "2015-07-06 21:25:43.952602"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '8a61de87-0e92-4565-a79e-483b492cd5c0' AND "clubhouse_memberships"."organization_id" = '78777ea4-4853-4ca3-8466-d109cbb8d572') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "8a61de87-0e92-4565-a79e-483b492cd5c0"], ["organization_id", "78777ea4-4853-4ca3-8466-d109cbb8d572"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.958274"], ["updated_at", "2015-07-06 21:25:43.958274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5f0f0498-dd7b-4f96-bc2a-90c250ef2b39' AND "clubhouse_memberships"."organization_id" = '78777ea4-4853-4ca3-8466-d109cbb8d572') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5f0f0498-dd7b-4f96-bc2a-90c250ef2b39"], ["organization_id", "78777ea4-4853-4ca3-8466-d109cbb8d572"], ["created_at", "2015-07-06 21:25:43.961403"], ["updated_at", "2015-07-06 21:25:43.961403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.96@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 96"], ["email", "user.96@example.com"], ["password_digest", "$2a$04$jpFtteP/zUssCsSg6LA2revcSos1uTNx4bzJkoW6hXaMgUBf6qN5e"], ["created_at", "2015-07-06 21:25:43.967048"], ["updated_at", "2015-07-06 21:25:43.967048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:43.969440"], ["user_id", "d5d1fcb3-5039-4fb8-9005-3d15aff775f6"], ["created_at", "2015-07-06 21:25:43.970085"], ["updated_at", "2015-07-06 21:25:43.970085"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-32@example.com' AND "clubhouse_invitations"."organization_id" = '78777ea4-4853-4ca3-8466-d109cbb8d572') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-32@example.com"], ["organization_id", "78777ea4-4853-4ca3-8466-d109cbb8d572"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.974505"], ["updated_at", "2015-07-06 21:25:43.974505"], ["token", "KGvL2K6H6c_av7EftB5DHGKlLDFe-Rsk2FKg-1GgNtc"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:25:43 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"KGvL2K6H6c_av7EftB5DHGKlLDFe-Rsk2FKg-1GgNtc", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.7ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:43.978013') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "c280e76f-61ee-4281-9c75-2c8b0311700c"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:43.981209"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:43.982287"], ["id", "c280e76f-61ee-4281-9c75-2c8b0311700c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "d5d1fcb3-5039-4fb8-9005-3d15aff775f6"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "KGvL2K6H6c_av7EftB5DHGKlLDFe-Rsk2FKg-1GgNtc"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "78777ea4-4853-4ca3-8466-d109cbb8d572"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd5d1fcb3-5039-4fb8-9005-3d15aff775f6' AND "clubhouse_memberships"."organization_id" = '78777ea4-4853-4ca3-8466-d109cbb8d572') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "78777ea4-4853-4ca3-8466-d109cbb8d572"], ["member_id", "d5d1fcb3-5039-4fb8-9005-3d15aff775f6"], ["admin", "t"], ["created_at", "2015-07-06 21:25:43.991629"], ["updated_at", "2015-07-06 21:25:43.991629"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "2038d845-bfe5-4037-b03e-bcdacfa54a80"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 17ms (Views: 0.6ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.97@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 97"], ["email", "user.97@example.com"], ["password_digest", "$2a$04$fmGzcHs1Foxeo3L7GhuCIu9EOi5PtrLojBnQWGCwir4gf5iCKBMGa"], ["created_at", "2015-07-06 21:25:44.001030"], ["updated_at", "2015-07-06 21:25:44.001030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.98@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 98"], ["email", "user.98@example.com"], ["password_digest", "$2a$04$gvovZihRLcheeGSXTV1ci.cbXtyxQOqkESNSkChgkLU3V1yhgUXke"], ["created_at", "2015-07-06 21:25:44.007697"], ["updated_at", "2015-07-06 21:25:44.007697"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.010652"], ["user_id", "b77d3e20-3aa4-40bf-a080-fd2bce6df7fc"], ["created_at", "2015-07-06 21:25:44.011830"], ["updated_at", "2015-07-06 21:25:44.011830"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.017256"], ["updated_at", "2015-07-06 21:25:44.017256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b77d3e20-3aa4-40bf-a080-fd2bce6df7fc' AND "clubhouse_memberships"."organization_id" = 'a0c25205-0509-489d-b1a7-db0d629e75fe') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b77d3e20-3aa4-40bf-a080-fd2bce6df7fc"], ["organization_id", "a0c25205-0509-489d-b1a7-db0d629e75fe"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.020404"], ["updated_at", "2015-07-06 21:25:44.020404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '716cf403-dde9-4fd1-a3e8-206c28804e4c' AND "clubhouse_memberships"."organization_id" = 'a0c25205-0509-489d-b1a7-db0d629e75fe') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "716cf403-dde9-4fd1-a3e8-206c28804e4c"], ["organization_id", "a0c25205-0509-489d-b1a7-db0d629e75fe"], ["created_at", "2015-07-06 21:25:44.023149"], ["updated_at", "2015-07-06 21:25:44.023149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.99@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 99"], ["email", "user.99@example.com"], ["password_digest", "$2a$04$c.Rd8fVKs2EEbOET79rA1eI4H0d7WyRTfYSpRdHFy0QhCU9kK1eHe"], ["created_at", "2015-07-06 21:25:44.028208"], ["updated_at", "2015-07-06 21:25:44.028208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.029830"], ["user_id", "09ff618c-1814-4f01-a283-b8739748f560"], ["created_at", "2015-07-06 21:25:44.030619"], ["updated_at", "2015-07-06 21:25:44.030619"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-33@example.com' AND "clubhouse_invitations"."organization_id" = 'a0c25205-0509-489d-b1a7-db0d629e75fe') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-33@example.com"], ["organization_id", "a0c25205-0509-489d-b1a7-db0d629e75fe"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.035846"], ["updated_at", "2015-07-06 21:25:44.035846"], ["token", "snmxQ12e_cCxYOxgw8m4MIG4RzHWENrU49o5xclfEe0"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/org/memberships" for 127.0.0.1 at 2015-07-06 14:25:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"org", "membership"=>{}} Pollett::Context Load (0.6ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:44.040575') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "371d1bf2-fe11-4ab5-888d-addc81bebbd4"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:44.043621"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:44.044645"], ["id", "371d1bf2-fe11-4ab5-888d-addc81bebbd4"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "org"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "09ff618c-1814-4f01-a283-b8739748f560"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 12ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.100@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 100"], ["email", "user.100@example.com"], ["password_digest", "$2a$04$hBiZQaG7ESR0FTnlEsbUC.K5J9SWU0FDMC4DMN4DU01QNRUm26XTK"], ["created_at", "2015-07-06 21:25:44.061019"], ["updated_at", "2015-07-06 21:25:44.061019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.101@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 101"], ["email", "user.101@example.com"], ["password_digest", "$2a$04$xU7.kjYHN8JkcUV.kZflyex.4Z9jQwBLUAwr5Ou88JOi4LuZlsxCq"], ["created_at", "2015-07-06 21:25:44.066013"], ["updated_at", "2015-07-06 21:25:44.066013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.067826"], ["user_id", "35eae99f-81a4-480f-9999-78c2732c839d"], ["created_at", "2015-07-06 21:25:44.068505"], ["updated_at", "2015-07-06 21:25:44.068505"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.073321"], ["updated_at", "2015-07-06 21:25:44.073321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '35eae99f-81a4-480f-9999-78c2732c839d' AND "clubhouse_memberships"."organization_id" = '0e5da763-7aee-4553-ab43-3d3685c60822') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "35eae99f-81a4-480f-9999-78c2732c839d"], ["organization_id", "0e5da763-7aee-4553-ab43-3d3685c60822"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.076434"], ["updated_at", "2015-07-06 21:25:44.076434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '173ddffb-b32e-43f5-b905-393a28bbcf87' AND "clubhouse_memberships"."organization_id" = '0e5da763-7aee-4553-ab43-3d3685c60822') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "173ddffb-b32e-43f5-b905-393a28bbcf87"], ["organization_id", "0e5da763-7aee-4553-ab43-3d3685c60822"], ["created_at", "2015-07-06 21:25:44.079178"], ["updated_at", "2015-07-06 21:25:44.079178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/e109b157-fd1c-4061-b298-29dc531fb896" for 127.0.0.1 at 2015-07-06 14:25:44 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"e109b157-fd1c-4061-b298-29dc531fb896", "membership"=>{}} Pollett::Context Load (0.4ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:44.082368') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "49d1a8ea-9516-45c0-951c-1ee83848ac69"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:44.084609"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:44.086116"], ["id", "49d1a8ea-9516-45c0-951c-1ee83848ac69"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.6ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "e109b157-fd1c-4061-b298-29dc531fb896"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35eae99f-81a4-480f-9999-78c2732c839d"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "0e5da763-7aee-4553-ab43-3d3685c60822"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '35eae99f-81a4-480f-9999-78c2732c839d' LIMIT 1 [["organization_id", "0e5da763-7aee-4553-ab43-3d3685c60822"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "35eae99f-81a4-480f-9999-78c2732c839d"]] Completed 200 OK in 15ms (Views: 2.8ms | ActiveRecord: 2.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.102@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 102"], ["email", "user.102@example.com"], ["password_digest", "$2a$04$x/8EIE1xubC4PCYnwF9bTeok6wsNFhHxxqhm/lGsY0V7ONmdRAtOu"], ["created_at", "2015-07-06 21:25:44.104565"], ["updated_at", "2015-07-06 21:25:44.104565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.103@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 103"], ["email", "user.103@example.com"], ["password_digest", "$2a$04$BxAyBIwv1G4P0vTpmstXDODCQuRBsjlWBcl6GAX/7hMzo7rANZXJG"], ["created_at", "2015-07-06 21:25:44.110177"], ["updated_at", "2015-07-06 21:25:44.110177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.111925"], ["user_id", "31308e06-80f1-487a-aa5e-68ffd3582b03"], ["created_at", "2015-07-06 21:25:44.112846"], ["updated_at", "2015-07-06 21:25:44.112846"], ["client", "App"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.119829"], ["updated_at", "2015-07-06 21:25:44.119829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '31308e06-80f1-487a-aa5e-68ffd3582b03' AND "clubhouse_memberships"."organization_id" = '8beeae39-ed45-4964-a56a-851b5a592f44') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "31308e06-80f1-487a-aa5e-68ffd3582b03"], ["organization_id", "8beeae39-ed45-4964-a56a-851b5a592f44"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.123036"], ["updated_at", "2015-07-06 21:25:44.123036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '0a778c24-783c-4ad5-bee7-96ba81c89910' AND "clubhouse_memberships"."organization_id" = '8beeae39-ed45-4964-a56a-851b5a592f44') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "0a778c24-783c-4ad5-bee7-96ba81c89910"], ["organization_id", "8beeae39-ed45-4964-a56a-851b5a592f44"], ["created_at", "2015-07-06 21:25:44.125877"], ["updated_at", "2015-07-06 21:25:44.125877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/memberships/1" for 127.0.0.1 at 2015-07-06 14:25:44 -0700 Processing by Clubhouse::MembershipsController#show as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.104@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 104"], ["email", "user.104@example.com"], ["password_digest", "$2a$04$8Avj78j6v3kZTL4P6SUqzO0x8AHSTiaP0q90f0gMfVtd/vnKHBRpS"], ["created_at", "2015-07-06 21:25:44.135544"], ["updated_at", "2015-07-06 21:25:44.135544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.105@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 105"], ["email", "user.105@example.com"], ["password_digest", "$2a$04$q2xR9lguwRAzE6QS9xqrgegf4/2G6zEAjhLDeGyJwcvjyhedw4tPq"], ["created_at", "2015-07-06 21:25:44.141572"], ["updated_at", "2015-07-06 21:25:44.141572"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.144890"], ["user_id", "b2f3a7a4-a80a-46d4-a0ae-369ac5382195"], ["created_at", "2015-07-06 21:25:44.146232"], ["updated_at", "2015-07-06 21:25:44.146232"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.152927"], ["updated_at", "2015-07-06 21:25:44.152927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'b2f3a7a4-a80a-46d4-a0ae-369ac5382195' AND "clubhouse_memberships"."organization_id" = '7c5dafe5-0aac-4471-a3e0-803eaf756e03') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "b2f3a7a4-a80a-46d4-a0ae-369ac5382195"], ["organization_id", "7c5dafe5-0aac-4471-a3e0-803eaf756e03"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.156223"], ["updated_at", "2015-07-06 21:25:44.156223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5374fae2-79aa-4c1a-8054-c10ade4678de' AND "clubhouse_memberships"."organization_id" = '7c5dafe5-0aac-4471-a3e0-803eaf756e03') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5374fae2-79aa-4c1a-8054-c10ade4678de"], ["organization_id", "7c5dafe5-0aac-4471-a3e0-803eaf756e03"], ["created_at", "2015-07-06 21:25:44.159233"], ["updated_at", "2015-07-06 21:25:44.159233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.106@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 106"], ["email", "user.106@example.com"], ["password_digest", "$2a$04$R6W3VmBRokE0fqZJoZGxoOFqnHMud3N5j5XSx6BrC/rxRkpmkdnly"], ["created_at", "2015-07-06 21:25:44.164269"], ["updated_at", "2015-07-06 21:25:44.164269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.165708"], ["user_id", "7c996f20-2f7d-41dc-b163-2a5ce9f293f4"], ["created_at", "2015-07-06 21:25:44.166285"], ["updated_at", "2015-07-06 21:25:44.166285"], ["client", "App"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-34@example.com' AND "clubhouse_invitations"."organization_id" = '7c5dafe5-0aac-4471-a3e0-803eaf756e03') LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-34@example.com"], ["organization_id", "7c5dafe5-0aac-4471-a3e0-803eaf756e03"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.172906"], ["updated_at", "2015-07-06 21:25:44.172906"], ["token", "4g5lVSDDX3a3Q8SmdHXfwZdQepdhxkCToJKYq1Z5QWc"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1/memberships" for 127.0.0.1 at 2015-07-06 14:25:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"organization_id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.107@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 107"], ["email", "user.107@example.com"], ["password_digest", "$2a$04$sybHIegOMSRMGOMv.86FHuaFEv3GFJBdk.yhbheW/0vmCJRcbQFJm"], ["created_at", "2015-07-06 21:25:44.184781"], ["updated_at", "2015-07-06 21:25:44.184781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.108@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 108"], ["email", "user.108@example.com"], ["password_digest", "$2a$04$bPtC7EfEqqtxhnuPFlGMpeG.f1wkZyHQNIZ0YFgZzelEzTCg9ToI2"], ["created_at", "2015-07-06 21:25:44.190021"], ["updated_at", "2015-07-06 21:25:44.190021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.191546"], ["user_id", "125e7fba-430e-4b0a-acff-439ba3f4cf16"], ["created_at", "2015-07-06 21:25:44.192143"], ["updated_at", "2015-07-06 21:25:44.192143"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.195946"], ["updated_at", "2015-07-06 21:25:44.195946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '125e7fba-430e-4b0a-acff-439ba3f4cf16' AND "clubhouse_memberships"."organization_id" = '9540f89a-3816-49d6-a308-41a869e0d7eb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "125e7fba-430e-4b0a-acff-439ba3f4cf16"], ["organization_id", "9540f89a-3816-49d6-a308-41a869e0d7eb"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.198783"], ["updated_at", "2015-07-06 21:25:44.198783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4d4fa366-5aa5-4a17-8143-cb431b5bc76b' AND "clubhouse_memberships"."organization_id" = '9540f89a-3816-49d6-a308-41a869e0d7eb') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "4d4fa366-5aa5-4a17-8143-cb431b5bc76b"], ["organization_id", "9540f89a-3816-49d6-a308-41a869e0d7eb"], ["created_at", "2015-07-06 21:25:44.202136"], ["updated_at", "2015-07-06 21:25:44.202136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.109@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 109"], ["email", "user.109@example.com"], ["password_digest", "$2a$04$Tr4pMg2YdpTkT3FGLK3MLO/Rt1doaMdQyLTPFNKEYXUB9UXB2/UZq"], ["created_at", "2015-07-06 21:25:44.209759"], ["updated_at", "2015-07-06 21:25:44.209759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.211232"], ["user_id", "4c4b59e5-e2b8-4fd0-9dd3-5a6c16e435db"], ["created_at", "2015-07-06 21:25:44.211849"], ["updated_at", "2015-07-06 21:25:44.211849"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-35@example.com' AND "clubhouse_invitations"."organization_id" = '9540f89a-3816-49d6-a308-41a869e0d7eb') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-35@example.com"], ["organization_id", "9540f89a-3816-49d6-a308-41a869e0d7eb"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.216777"], ["updated_at", "2015-07-06 21:25:44.216777"], ["token", "nMEXum0V19QFmcgEJeoZ30l3IkRk2eQOlRZrSyzk2DI"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/9540f89a-3816-49d6-a308-41a869e0d7eb/memberships" for 127.0.0.1 at 2015-07-06 14:25:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"nMEXum0V19QFmcgEJeoZ30l3IkRk2eQOlRZrSyzk2DI", "organization_id"=>"9540f89a-3816-49d6-a308-41a869e0d7eb", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:44.219965') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "4312969c-4d3e-4ac3-b59a-7441b96db1ae"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:44.221365"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:44.222057"], ["id", "4312969c-4d3e-4ac3-b59a-7441b96db1ae"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "9540f89a-3816-49d6-a308-41a869e0d7eb"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "4c4b59e5-e2b8-4fd0-9dd3-5a6c16e435db"]] Unpermitted parameters: organization_id, membership  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "nMEXum0V19QFmcgEJeoZ30l3IkRk2eQOlRZrSyzk2DI"]] Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "9540f89a-3816-49d6-a308-41a869e0d7eb"]] Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4c4b59e5-e2b8-4fd0-9dd3-5a6c16e435db' AND "clubhouse_memberships"."organization_id" = '9540f89a-3816-49d6-a308-41a869e0d7eb') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("organization_id", "member_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["organization_id", "9540f89a-3816-49d6-a308-41a869e0d7eb"], ["member_id", "4c4b59e5-e2b8-4fd0-9dd3-5a6c16e435db"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.229761"], ["updated_at", "2015-07-06 21:25:44.229761"]] SQL (0.2ms) DELETE FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."id" = $1 [["id", "dcfa25dc-1527-475f-807a-da760596743f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 14ms (Views: 0.7ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.110@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 110"], ["email", "user.110@example.com"], ["password_digest", "$2a$04$Wf2p4wqENL8rQnXB8mhUsOiVWkhoM7BWi3J5KxblIOzlTP2f86FXC"], ["created_at", "2015-07-06 21:25:44.240032"], ["updated_at", "2015-07-06 21:25:44.240032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.111@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 111"], ["email", "user.111@example.com"], ["password_digest", "$2a$04$AJYG8iwpmMyvxCk.3bYnY.7OvaLqZwmFxEl6xlVExLPgnbiuoB9Qe"], ["created_at", "2015-07-06 21:25:44.245328"], ["updated_at", "2015-07-06 21:25:44.245328"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.247201"], ["user_id", "7cdf31ec-7fdb-4474-83bf-7a64006a7964"], ["created_at", "2015-07-06 21:25:44.247893"], ["updated_at", "2015-07-06 21:25:44.247893"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.253182"], ["updated_at", "2015-07-06 21:25:44.253182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7cdf31ec-7fdb-4474-83bf-7a64006a7964' AND "clubhouse_memberships"."organization_id" = '1b5f326f-f662-47bb-b1af-56123ffb1c33') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7cdf31ec-7fdb-4474-83bf-7a64006a7964"], ["organization_id", "1b5f326f-f662-47bb-b1af-56123ffb1c33"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.257604"], ["updated_at", "2015-07-06 21:25:44.257604"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.6ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '5ad7a4f5-6d5d-42d2-9b11-9837d5cec3c2' AND "clubhouse_memberships"."organization_id" = '1b5f326f-f662-47bb-b1af-56123ffb1c33') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "5ad7a4f5-6d5d-42d2-9b11-9837d5cec3c2"], ["organization_id", "1b5f326f-f662-47bb-b1af-56123ffb1c33"], ["created_at", "2015-07-06 21:25:44.262692"], ["updated_at", "2015-07-06 21:25:44.262692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.112@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 112"], ["email", "user.112@example.com"], ["password_digest", "$2a$04$RRJNN9FSRj8zX/mpCCxrH.oifnRY4oBVv6IySoJaxEm4DJ8vl/sC."], ["created_at", "2015-07-06 21:25:44.267894"], ["updated_at", "2015-07-06 21:25:44.267894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.269836"], ["user_id", "292f4af6-a74f-4dc9-b7bd-583f13cc0c16"], ["created_at", "2015-07-06 21:25:44.270849"], ["updated_at", "2015-07-06 21:25:44.270849"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-36@example.com' AND "clubhouse_invitations"."organization_id" = '1b5f326f-f662-47bb-b1af-56123ffb1c33') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "admin", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["email", "invitation-36@example.com"], ["organization_id", "1b5f326f-f662-47bb-b1af-56123ffb1c33"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.276033"], ["updated_at", "2015-07-06 21:25:44.276033"], ["token", "uOXH4UeieyGZbs-X9nZmILdgk_TbXuqn3XoZ5rJE92c"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/organizations/1b5f326f-f662-47bb-b1af-56123ffb1c33/memberships" for 127.0.0.1 at 2015-07-06 14:25:44 -0700 Processing by Clubhouse::MembershipsController#create as HTML Parameters: {"token"=>"invalid", "organization_id"=>"1b5f326f-f662-47bb-b1af-56123ffb1c33", "membership"=>{}} Pollett::Context Load (0.3ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:44.281103') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "5359a8b6-145e-48e3-a763-3987c9760c17"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:44.282615"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:44.283326"], ["id", "5359a8b6-145e-48e3-a763-3987c9760c17"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "1b5f326f-f662-47bb-b1af-56123ffb1c33"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "292f4af6-a74f-4dc9-b7bd-583f13cc0c16"]] Unpermitted parameters: organization_id, membership  (0.3ms) SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.3ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" WHERE "clubhouse_invitations"."token" = $1 LIMIT 1 [["token", "invalid"]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 404 Not Found in 10ms (ActiveRecord: 1.8ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.113@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 113"], ["email", "user.113@example.com"], ["password_digest", "$2a$04$IZd/ksI2qB28qeWfpCxu9.yvK2HnA7HCFxP.PsFtBV5cKWtp0AFk."], ["created_at", "2015-07-06 21:25:44.298629"], ["updated_at", "2015-07-06 21:25:44.298629"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.114@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 114"], ["email", "user.114@example.com"], ["password_digest", "$2a$04$yzX.U6S/.674z7/V64OCH.wkTbApO48cciHjBcnxLoPJorx/IaTq."], ["created_at", "2015-07-06 21:25:44.306020"], ["updated_at", "2015-07-06 21:25:44.306020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.308547"], ["user_id", "c8a72589-29f7-4f06-8dd0-8219d252eb4c"], ["created_at", "2015-07-06 21:25:44.309405"], ["updated_at", "2015-07-06 21:25:44.309405"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.314372"], ["updated_at", "2015-07-06 21:25:44.314372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c8a72589-29f7-4f06-8dd0-8219d252eb4c' AND "clubhouse_memberships"."organization_id" = '63282d5a-e8e6-4371-864e-ecbd59423dab') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "c8a72589-29f7-4f06-8dd0-8219d252eb4c"], ["organization_id", "63282d5a-e8e6-4371-864e-ecbd59423dab"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.317480"], ["updated_at", "2015-07-06 21:25:44.317480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '50ffa145-4597-460b-b935-f55b6d7f6b12' AND "clubhouse_memberships"."organization_id" = '63282d5a-e8e6-4371-864e-ecbd59423dab') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "50ffa145-4597-460b-b935-f55b6d7f6b12"], ["organization_id", "63282d5a-e8e6-4371-864e-ecbd59423dab"], ["created_at", "2015-07-06 21:25:44.320330"], ["updated_at", "2015-07-06 21:25:44.320330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/5950484f-0c83-4948-97d3-88de97c01877" for 127.0.0.1 at 2015-07-06 14:25:44 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"5950484f-0c83-4948-97d3-88de97c01877", "membership"=>{}} Pollett::Context Load (0.2ms) SELECT "pollett_contexts".* FROM "pollett_contexts" WHERE (((type = 'Pollett::Session' AND accessed_at >= '2015-06-22 21:25:44.323217') OR (type = 'Pollett::Key')) AND revoked_at IS NULL) AND "pollett_contexts"."id" = $1 LIMIT 1 [["id", "a90fef5a-6934-429f-ae84-4e37112333e6"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "pollett_contexts" SET "accessed_at" = $1, "ip" = $2, "updated_at" = $3 WHERE "pollett_contexts"."id" = $4 [["accessed_at", "2015-07-06 21:25:44.324775"], ["ip", "127.0.0.1"], ["updated_at", "2015-07-06 21:25:44.325524"], ["id", "a90fef5a-6934-429f-ae84-4e37112333e6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Load (0.2ms) SELECT "clubhouse_memberships".* FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 LIMIT 1 [["id", "5950484f-0c83-4948-97d3-88de97c01877"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "c8a72589-29f7-4f06-8dd0-8219d252eb4c"]] Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "63282d5a-e8e6-4371-864e-ecbd59423dab"]] Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'c8a72589-29f7-4f06-8dd0-8219d252eb4c' LIMIT 1 [["organization_id", "63282d5a-e8e6-4371-864e-ecbd59423dab"], ["admin", "t"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", "50ffa145-4597-460b-b935-f55b6d7f6b12"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."id" = $1 [["id", "5950484f-0c83-4948-97d3-88de97c01877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 204 No Content in 19ms (ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.115@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 115"], ["email", "user.115@example.com"], ["password_digest", "$2a$04$zo7ycmPlKEvWhADceB/xh.KtW3k7EI167y04k5k0.X4UBtDepNpqm"], ["created_at", "2015-07-06 21:25:44.349742"], ["updated_at", "2015-07-06 21:25:44.349742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.116@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 116"], ["email", "user.116@example.com"], ["password_digest", "$2a$04$zf2jXcxIjvjb/BXLZPnr4eP84AGNs77v4XBG1ZrB5nKan3U4tYWge"], ["created_at", "2015-07-06 21:25:44.355774"], ["updated_at", "2015-07-06 21:25:44.355774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "pollett_contexts" ("type", "accessed_at", "user_id", "created_at", "updated_at", "client") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["type", "Pollett::Session"], ["accessed_at", "2015-07-06 21:25:44.357353"], ["user_id", "eedd1e56-216f-4353-a1aa-408b6afc0de4"], ["created_at", "2015-07-06 21:25:44.357977"], ["updated_at", "2015-07-06 21:25:44.357977"], ["client", "App"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.362411"], ["updated_at", "2015-07-06 21:25:44.362411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'eedd1e56-216f-4353-a1aa-408b6afc0de4' AND "clubhouse_memberships"."organization_id" = '1c28093d-27b2-4066-a867-761270ea3780') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "eedd1e56-216f-4353-a1aa-408b6afc0de4"], ["organization_id", "1c28093d-27b2-4066-a867-761270ea3780"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.366916"], ["updated_at", "2015-07-06 21:25:44.366916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'c42069a4-69d3-4d90-b381-5810686b9165' AND "clubhouse_memberships"."organization_id" = '1c28093d-27b2-4066-a867-761270ea3780') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "c42069a4-69d3-4d90-b381-5810686b9165"], ["organization_id", "1c28093d-27b2-4066-a867-761270ea3780"], ["created_at", "2015-07-06 21:25:44.371041"], ["updated_at", "2015-07-06 21:25:44.371041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started DELETE "/memberships/1" for 127.0.0.1 at 2015-07-06 14:25:44 -0700 Processing by Clubhouse::MembershipsController#destroy as HTML Parameters: {"id"=>"1", "membership"=>{}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.117@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 117"], ["email", "user.117@example.com"], ["password_digest", "$2a$04$7iwDmYeXzZrJzCWN7HVjgetgCHhsWylLFKSn7pNi3Z.SJ1CB3nOn6"], ["created_at", "2015-07-06 21:25:44.381913"], ["updated_at", "2015-07-06 21:25:44.381913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.118@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 118"], ["email", "user.118@example.com"], ["password_digest", "$2a$04$8E4KZB2sr4bkuMqVATD7ce9267TgZgKqY4epreiyVhNdUILp1duPS"], ["created_at", "2015-07-06 21:25:44.389150"], ["updated_at", "2015-07-06 21:25:44.389150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-60' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-60"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.393312"], ["updated_at", "2015-07-06 21:25:44.393312"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7548f249-5b10-4d0d-be07-69911ddb9e65' AND "clubhouse_memberships"."organization_id" = '65a1f2d1-2196-42ca-a30a-59639b06328d') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7548f249-5b10-4d0d-be07-69911ddb9e65"], ["organization_id", "65a1f2d1-2196-42ca-a30a-59639b06328d"], ["created_at", "2015-07-06 21:25:44.399249"], ["updated_at", "2015-07-06 21:25:44.399249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.119@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 119"], ["email", "user.119@example.com"], ["password_digest", "$2a$04$lOMvTiiJ5sLLv4Xj5pmG2.08f6O5AocNqaeVwnADS98ephS41x98i"], ["created_at", "2015-07-06 21:25:44.407396"], ["updated_at", "2015-07-06 21:25:44.407396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.120@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 120"], ["email", "user.120@example.com"], ["password_digest", "$2a$04$WSTLrctfyxrR3FukI.g.b.98fk34mTpUQSjI/xKe5Fz5.w/6Oych2"], ["created_at", "2015-07-06 21:25:44.412644"], ["updated_at", "2015-07-06 21:25:44.412644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-61' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-61"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.416633"], ["updated_at", "2015-07-06 21:25:44.416633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'bbcaa80c-b911-4bb0-8672-e4dbd8440dce' AND "clubhouse_memberships"."organization_id" = 'b55fed5a-f89f-4a7a-8d6e-d9aa4af10032') LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "bbcaa80c-b911-4bb0-8672-e4dbd8440dce"], ["organization_id", "b55fed5a-f89f-4a7a-8d6e-d9aa4af10032"], ["created_at", "2015-07-06 21:25:44.421043"], ["updated_at", "2015-07-06 21:25:44.421043"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ce1d7c6e-e0c4-4007-bd81-f06111763bb4' LIMIT 1 [["organization_id", "b55fed5a-f89f-4a7a-8d6e-d9aa4af10032"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.121@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 121"], ["email", "user.121@example.com"], ["password_digest", "$2a$04$noMBnJOQ3WhXu8ZMezVwwOxexlm9kP6k.TUP324YqwIqMdjX8mZtK"], ["created_at", "2015-07-06 21:25:44.433195"], ["updated_at", "2015-07-06 21:25:44.433195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.122@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 122"], ["email", "user.122@example.com"], ["password_digest", "$2a$04$kZPKhV1p.1H5K60YhbA9h.6E3tKOqSmulgm7fMUgheWa6cnWKC4JO"], ["created_at", "2015-07-06 21:25:44.439865"], ["updated_at", "2015-07-06 21:25:44.439865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-62' LIMIT 1 SQL (0.5ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-62"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.444908"], ["updated_at", "2015-07-06 21:25:44.444908"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '36254f2e-6460-4c1a-b263-02b3a93738fb' AND "clubhouse_memberships"."organization_id" = '4892ff13-0018-45cf-953b-45a78baaca55') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "36254f2e-6460-4c1a-b263-02b3a93738fb"], ["organization_id", "4892ff13-0018-45cf-953b-45a78baaca55"], ["created_at", "2015-07-06 21:25:44.450434"], ["updated_at", "2015-07-06 21:25:44.450434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '67cacc90-fc77-4f53-bb85-2f17c7cdba83' LIMIT 1 [["organization_id", "4892ff13-0018-45cf-953b-45a78baaca55"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.123@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 123"], ["email", "user.123@example.com"], ["password_digest", "$2a$04$j/lNvFYskyDK0z8pZWvuOe94qN3MfsHN2r5a16hPIQHorTHci0eaa"], ["created_at", "2015-07-06 21:25:44.459044"], ["updated_at", "2015-07-06 21:25:44.459044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.124@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 124"], ["email", "user.124@example.com"], ["password_digest", "$2a$04$BnbcDdjnSsIGb.lIgF10YO8jnSsC7v5GmIpwzWPEyVUPFNUurQrxW"], ["created_at", "2015-07-06 21:25:44.466725"], ["updated_at", "2015-07-06 21:25:44.466725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.5ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-63' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-63"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.473802"], ["updated_at", "2015-07-06 21:25:44.473802"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '66b93beb-386d-4b25-b6ba-310181951bd9' AND "clubhouse_memberships"."organization_id" = '367be98d-51ba-4c66-a4be-e5b503cbd3e4') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "66b93beb-386d-4b25-b6ba-310181951bd9"], ["organization_id", "367be98d-51ba-4c66-a4be-e5b503cbd3e4"], ["created_at", "2015-07-06 21:25:44.481152"], ["updated_at", "2015-07-06 21:25:44.481152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '1f741d1f-48b5-439d-a5fb-a1075217c0c1' LIMIT 1 [["organization_id", "367be98d-51ba-4c66-a4be-e5b503cbd3e4"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.125@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 125"], ["email", "user.125@example.com"], ["password_digest", "$2a$04$FRXTD5DxuzHv.FX3cj8VzOiYbI.0CmKcsaFw5RzlsmtL.TtWMGe/u"], ["created_at", "2015-07-06 21:25:44.492045"], ["updated_at", "2015-07-06 21:25:44.492045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-64' LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-64"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.496194"], ["updated_at", "2015-07-06 21:25:44.496194"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '5893fefd-9184-494d-adcf-826f56f33dc5' LIMIT 1 [["organization_id", "5f9aeefa-9564-4c53-8180-c2dfaf924801"]]  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.126@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 126"], ["email", "user.126@example.com"], ["password_digest", "$2a$04$Z3aMlvvnIHQHj1JyIohcmuJvQCxuGrHeJmP4HGwQXmLIZvGO4WZjC"], ["created_at", "2015-07-06 21:25:44.509727"], ["updated_at", "2015-07-06 21:25:44.509727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-65' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-65"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.514202"], ["updated_at", "2015-07-06 21:25:44.514202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '48d91cba-e998-431b-a632-db22fa62718d' AND "clubhouse_memberships"."organization_id" = '34ec35c3-4b2b-4088-af1c-29edd3b76e14') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "48d91cba-e998-431b-a632-db22fa62718d"], ["organization_id", "34ec35c3-4b2b-4088-af1c-29edd3b76e14"], ["created_at", "2015-07-06 21:25:44.517168"], ["updated_at", "2015-07-06 21:25:44.517168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '48d91cba-e998-431b-a632-db22fa62718d' LIMIT 1 [["organization_id", "34ec35c3-4b2b-4088-af1c-29edd3b76e14"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.127@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 127"], ["email", "user.127@example.com"], ["password_digest", "$2a$04$hQZ84qpZlVv0SI9.qNDWf.bnb19ZlDSs3JwKQlO7uC8FKifsIPFKG"], ["created_at", "2015-07-06 21:25:44.526733"], ["updated_at", "2015-07-06 21:25:44.526733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-66' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-66"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.531015"], ["updated_at", "2015-07-06 21:25:44.531015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '9d32caed-0303-4514-809a-11f3a77e9639' AND "clubhouse_memberships"."organization_id" = '6a09b036-a278-441b-9d2b-7a5187d66c30') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "9d32caed-0303-4514-809a-11f3a77e9639"], ["organization_id", "6a09b036-a278-441b-9d2b-7a5187d66c30"], ["created_at", "2015-07-06 21:25:44.533969"], ["updated_at", "2015-07-06 21:25:44.533969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.128@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 128"], ["email", "user.128@example.com"], ["password_digest", "$2a$04$hBnt2KHYlsJvkdOxYTxHaeG7w29LK7hrhOA461uWI81X6QtdPI8rG"], ["created_at", "2015-07-06 21:25:44.541756"], ["updated_at", "2015-07-06 21:25:44.541756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-67' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-67"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.546303"], ["updated_at", "2015-07-06 21:25:44.546303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'd04a289b-01a0-480f-b26e-16fe9022f8fd' AND "clubhouse_memberships"."organization_id" = '5304e0d4-e456-4cab-9242-84c8a19ad0ec') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "d04a289b-01a0-480f-b26e-16fe9022f8fd"], ["organization_id", "5304e0d4-e456-4cab-9242-84c8a19ad0ec"], ["created_at", "2015-07-06 21:25:44.549733"], ["updated_at", "2015-07-06 21:25:44.549733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'd04a289b-01a0-480f-b26e-16fe9022f8fd' LIMIT 1 [["organization_id", "5304e0d4-e456-4cab-9242-84c8a19ad0ec"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.129@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 129"], ["email", "user.129@example.com"], ["password_digest", "$2a$04$LPUp8iJrPTlSxJ6ku6LXM.Coc9JOUkKyyQwvGfbdJGCja3jYouMX2"], ["created_at", "2015-07-06 21:25:44.561622"], ["updated_at", "2015-07-06 21:25:44.561622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-68' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-68"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.565881"], ["updated_at", "2015-07-06 21:25:44.565881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'deb16959-6f66-400c-980e-321e1376eb54' AND "clubhouse_memberships"."organization_id" = '126d2942-d2cb-4a48-9d4f-e93f9e799d49') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "deb16959-6f66-400c-980e-321e1376eb54"], ["organization_id", "126d2942-d2cb-4a48-9d4f-e93f9e799d49"], ["created_at", "2015-07-06 21:25:44.569096"], ["updated_at", "2015-07-06 21:25:44.569096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = 'deb16959-6f66-400c-980e-321e1376eb54' LIMIT 1 [["organization_id", "126d2942-d2cb-4a48-9d4f-e93f9e799d49"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.130@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 130"], ["email", "user.130@example.com"], ["password_digest", "$2a$04$r3cK3z0kjcg3.DjTieul8umzfcD46e8lpbLin5JMT1K/oTS4P6GQ."], ["created_at", "2015-07-06 21:25:44.577304"], ["updated_at", "2015-07-06 21:25:44.577304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-69' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-69"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.581315"], ["updated_at", "2015-07-06 21:25:44.581315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'dad5af43-f13c-481a-a1d9-569ea26f69c9' AND "clubhouse_memberships"."organization_id" = '35e13570-e9ee-4209-bda4-e136600a6039') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "dad5af43-f13c-481a-a1d9-569ea26f69c9"], ["organization_id", "35e13570-e9ee-4209-bda4-e136600a6039"], ["created_at", "2015-07-06 21:25:44.584433"], ["updated_at", "2015-07-06 21:25:44.584433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'dad5af43-f13c-481a-a1d9-569ea26f69c9' LIMIT 1 [["organization_id", "35e13570-e9ee-4209-bda4-e136600a6039"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.131@example.com' LIMIT 1 SQL (0.4ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 131"], ["email", "user.131@example.com"], ["password_digest", "$2a$04$tuYHSli/MIAE7IDMB1Y8Tu82D7DzHL0EUKcQMiNoEnanmecEv3oDW"], ["created_at", "2015-07-06 21:25:44.595115"], ["updated_at", "2015-07-06 21:25:44.595115"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-70' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-70"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.603691"], ["updated_at", "2015-07-06 21:25:44.603691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '37eb8e2e-8883-44fd-810a-4ac06f1f656b' AND "clubhouse_memberships"."organization_id" = 'c2f5debb-c831-44f6-80f1-6408edf94bb9') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "37eb8e2e-8883-44fd-810a-4ac06f1f656b"], ["organization_id", "c2f5debb-c831-44f6-80f1-6408edf94bb9"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.608302"], ["updated_at", "2015-07-06 21:25:44.608302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.132@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 132"], ["email", "user.132@example.com"], ["password_digest", "$2a$04$CfPFtdVqHnnwo.J4lnng0edjrKB4tTXo4wCFECKUu1KyVtpzlSqOW"], ["created_at", "2015-07-06 21:25:44.614008"], ["updated_at", "2015-07-06 21:25:44.614008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7a1adf77-2b9f-48bb-b34b-56f8d589d2a5' AND "clubhouse_memberships"."organization_id" = 'c2f5debb-c831-44f6-80f1-6408edf94bb9') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7a1adf77-2b9f-48bb-b34b-56f8d589d2a5"], ["organization_id", "c2f5debb-c831-44f6-80f1-6408edf94bb9"], ["created_at", "2015-07-06 21:25:44.617076"], ["updated_at", "2015-07-06 21:25:44.617076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.133@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 133"], ["email", "user.133@example.com"], ["password_digest", "$2a$04$KH4YoY.Va3A.B2FCUIQuauGKt.z3U4c0cMrQGS6osxmLapD3f/8kK"], ["created_at", "2015-07-06 21:25:44.623810"], ["updated_at", "2015-07-06 21:25:44.623810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-71' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-71"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.627816"], ["updated_at", "2015-07-06 21:25:44.627816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '458b6417-0718-42ce-8062-b6062b63e188' AND "clubhouse_memberships"."organization_id" = '34d14293-b05f-4d88-99d8-f831be2fdad8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "458b6417-0718-42ce-8062-b6062b63e188"], ["organization_id", "34d14293-b05f-4d88-99d8-f831be2fdad8"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.630789"], ["updated_at", "2015-07-06 21:25:44.630789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.134@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 134"], ["email", "user.134@example.com"], ["password_digest", "$2a$04$T1Q1.DsKoLlNr6Z.8yaPmOz7u0oNmUq6nHwgAxs6dxOqxBguX3CGG"], ["created_at", "2015-07-06 21:25:44.636079"], ["updated_at", "2015-07-06 21:25:44.636079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '210bdd62-ea0d-4cfa-8ae7-e4f04095c082' AND "clubhouse_memberships"."organization_id" = '34d14293-b05f-4d88-99d8-f831be2fdad8') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "210bdd62-ea0d-4cfa-8ae7-e4f04095c082"], ["organization_id", "34d14293-b05f-4d88-99d8-f831be2fdad8"], ["created_at", "2015-07-06 21:25:44.639287"], ["updated_at", "2015-07-06 21:25:44.639287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '458b6417-0718-42ce-8062-b6062b63e188' LIMIT 1 [["organization_id", "34d14293-b05f-4d88-99d8-f831be2fdad8"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.135@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 135"], ["email", "user.135@example.com"], ["password_digest", "$2a$04$0ukbLtNHiZOgYw5tSZZRSeVIsX9AuuMZn0YsAMiDxMnf8TqifzWVu"], ["created_at", "2015-07-06 21:25:44.647791"], ["updated_at", "2015-07-06 21:25:44.647791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-72' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-72"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.652559"], ["updated_at", "2015-07-06 21:25:44.652559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '4b581629-c3a5-476b-a76f-7701e6891df1' AND "clubhouse_memberships"."organization_id" = '17ba86da-55b2-4072-a26b-af8b9e774951') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "4b581629-c3a5-476b-a76f-7701e6891df1"], ["organization_id", "17ba86da-55b2-4072-a26b-af8b9e774951"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.656998"], ["updated_at", "2015-07-06 21:25:44.656998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.136@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 136"], ["email", "user.136@example.com"], ["password_digest", "$2a$04$U2ZOkFWA/yIs2ozr0zbkYOEmfBHv0W2cMoWR5JJi.lKKchkkmSKUi"], ["created_at", "2015-07-06 21:25:44.662288"], ["updated_at", "2015-07-06 21:25:44.662288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6926bc50-3663-4fcc-8197-31b444a15b75' AND "clubhouse_memberships"."organization_id" = '17ba86da-55b2-4072-a26b-af8b9e774951') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "6926bc50-3663-4fcc-8197-31b444a15b75"], ["organization_id", "17ba86da-55b2-4072-a26b-af8b9e774951"], ["created_at", "2015-07-06 21:25:44.665297"], ["updated_at", "2015-07-06 21:25:44.665297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '4b581629-c3a5-476b-a76f-7701e6891df1' LIMIT 1 [["organization_id", "17ba86da-55b2-4072-a26b-af8b9e774951"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.137@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 137"], ["email", "user.137@example.com"], ["password_digest", "$2a$04$peYQrxn8hsl.Bgo9KGjmlejeMFj4/J4joOn87u08KYsA8LglNsgi."], ["created_at", "2015-07-06 21:25:44.675500"], ["updated_at", "2015-07-06 21:25:44.675500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-73' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-73"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.679629"], ["updated_at", "2015-07-06 21:25:44.679629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'ed70ea52-2d67-4832-9f37-de3cf312f05f' AND "clubhouse_memberships"."organization_id" = '6b05147e-d04e-4521-b7fd-59def1ef3a97') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "ed70ea52-2d67-4832-9f37-de3cf312f05f"], ["organization_id", "6b05147e-d04e-4521-b7fd-59def1ef3a97"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.682534"], ["updated_at", "2015-07-06 21:25:44.682534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.138@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 138"], ["email", "user.138@example.com"], ["password_digest", "$2a$04$lq9XczkyFD0f5M0FAkQHX.a7bjuNWiPsS82UyU3td37hX1rLLNYCe"], ["created_at", "2015-07-06 21:25:44.687749"], ["updated_at", "2015-07-06 21:25:44.687749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7d0386be-b27e-4fee-a5b2-2cc529bbbb2c' AND "clubhouse_memberships"."organization_id" = '6b05147e-d04e-4521-b7fd-59def1ef3a97') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["member_id", "7d0386be-b27e-4fee-a5b2-2cc529bbbb2c"], ["organization_id", "6b05147e-d04e-4521-b7fd-59def1ef3a97"], ["created_at", "2015-07-06 21:25:44.691087"], ["updated_at", "2015-07-06 21:25:44.691087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = 'ed70ea52-2d67-4832-9f37-de3cf312f05f' LIMIT 1 [["organization_id", "6b05147e-d04e-4521-b7fd-59def1ef3a97"]]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.139@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 139"], ["email", "user.139@example.com"], ["password_digest", "$2a$04$PX6oNflHp0um3uoCrwPdtujfKvcc1H36SXY2bhiRIfKNUyACHdHo."], ["created_at", "2015-07-06 21:25:44.703684"], ["updated_at", "2015-07-06 21:25:44.703684"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-74' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-74"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.710199"], ["updated_at", "2015-07-06 21:25:44.710199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '6a782c22-ee87-44f6-89e2-e6f891a9136a' AND "clubhouse_memberships"."organization_id" = '4a7c1b71-e7b0-49e2-8bef-96266cbad9e1') LIMIT 1 SQL (2.5ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "6a782c22-ee87-44f6-89e2-e6f891a9136a"], ["organization_id", "4a7c1b71-e7b0-49e2-8bef-96266cbad9e1"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.713838"], ["updated_at", "2015-07-06 21:25:44.713838"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.7ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '6a782c22-ee87-44f6-89e2-e6f891a9136a' LIMIT 1 [["organization_id", "4a7c1b71-e7b0-49e2-8bef-96266cbad9e1"], ["admin", "t"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.140@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 140"], ["email", "user.140@example.com"], ["password_digest", "$2a$04$SPtgkkHM/khml5X2hJVROe2JhrJ4ezN/BOhjlH96yEuOfPJR4jvHO"], ["created_at", "2015-07-06 21:25:44.729373"], ["updated_at", "2015-07-06 21:25:44.729373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-75' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-75"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.733735"], ["updated_at", "2015-07-06 21:25:44.733735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '3eb033e2-3eaf-47ec-baab-8ae8967cd68d' AND "clubhouse_memberships"."organization_id" = '4621dd57-21b6-4825-8bde-51855d98dc05') LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "3eb033e2-3eaf-47ec-baab-8ae8967cd68d"], ["organization_id", "4621dd57-21b6-4825-8bde-51855d98dc05"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.736976"], ["updated_at", "2015-07-06 21:25:44.736976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '3eb033e2-3eaf-47ec-baab-8ae8967cd68d' LIMIT 1 [["organization_id", "4621dd57-21b6-4825-8bde-51855d98dc05"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.141@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 141"], ["email", "user.141@example.com"], ["password_digest", "$2a$04$AlJPZtyrFe6kFE8CYYNPGecWh5fhHf4qdo1BY9U3ug84G9U7/Dx7i"], ["created_at", "2015-07-06 21:25:44.745333"], ["updated_at", "2015-07-06 21:25:44.745333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-76' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-76"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.749505"], ["updated_at", "2015-07-06 21:25:44.749505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '7c0b2526-2a48-4519-abb9-ec6a60eeda01' AND "clubhouse_memberships"."organization_id" = '57b3c2c6-b570-4eab-8452-4ad4b69d9e75') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "7c0b2526-2a48-4519-abb9-ec6a60eeda01"], ["organization_id", "57b3c2c6-b570-4eab-8452-4ad4b69d9e75"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.752772"], ["updated_at", "2015-07-06 21:25:44.752772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."admin" = $2 AND "clubhouse_memberships"."member_id" = '7c0b2526-2a48-4519-abb9-ec6a60eeda01' LIMIT 1 [["organization_id", "57b3c2c6-b570-4eab-8452-4ad4b69d9e75"], ["admin", "t"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.142@example.com' LIMIT 1 SQL (0.3ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 142"], ["email", "user.142@example.com"], ["password_digest", "$2a$04$M6o.tqxqqQYJSIOQuOl2XOYgJtqeETajgvDBzOQt3eJOvpsMuXkQW"], ["created_at", "2015-07-06 21:25:44.763826"], ["updated_at", "2015-07-06 21:25:44.763826"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-77' LIMIT 1 SQL (0.4ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-77"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.772972"], ["updated_at", "2015-07-06 21:25:44.772972"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = 'e6d3d413-9cc2-4664-8ada-1ea481c2966f' AND "clubhouse_memberships"."organization_id" = 'dc1dbff2-85a1-4879-ad0f-7d87d4f2e6c0') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "e6d3d413-9cc2-4664-8ada-1ea481c2966f"], ["organization_id", "dc1dbff2-85a1-4879-ad0f-7d87d4f2e6c0"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.778484"], ["updated_at", "2015-07-06 21:25:44.778484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user.143@example.com' LIMIT 1 SQL (0.2ms) INSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "user 143"], ["email", "user.143@example.com"], ["password_digest", "$2a$04$QjLiuDfAaqyMCEkyH56r0u/4.OR1mbnm1TDGI5FQ5RIezxwpjNr2G"], ["created_at", "2015-07-06 21:25:44.786774"], ["updated_at", "2015-07-06 21:25:44.786774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-78' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-78"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.791722"], ["updated_at", "2015-07-06 21:25:44.791722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE ("clubhouse_memberships"."member_id" = '38b9d001-2c31-418e-bd00-37914526e157' AND "clubhouse_memberships"."organization_id" = 'a009452a-6b49-44ad-85c7-e210ba2255b1') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_memberships" ("member_id", "organization_id", "admin", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["member_id", "38b9d001-2c31-418e-bd00-37914526e157"], ["organization_id", "a009452a-6b49-44ad-85c7-e210ba2255b1"], ["admin", "t"], ["created_at", "2015-07-06 21:25:44.795510"], ["updated_at", "2015-07-06 21:25:44.795510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Membership Exists (0.2ms) SELECT 1 AS one FROM "clubhouse_memberships" WHERE "clubhouse_memberships"."organization_id" = $1 AND "clubhouse_memberships"."member_id" = '38b9d001-2c31-418e-bd00-37914526e157' LIMIT 1 [["organization_id", "a009452a-6b49-44ad-85c7-e210ba2255b1"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '1invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-79"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.813644"], ["updated_at", "2015-07-06 21:25:44.813644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.3ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-79' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'n-a-m-e' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "n-a-m-e"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.825413"], ["updated_at", "2015-07-06 21:25:44.825413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '-invalid' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'invalid_name' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-80' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-80"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.863612"], ["updated_at", "2015-07-06 21:25:44.863612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.869146"], ["updated_at", "2015-07-06 21:25:44.869146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.2ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'name' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "name"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.876293"], ["updated_at", "2015-07-06 21:25:44.876293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["id", "2779beb5-2eb4-4263-bf65-12c2c225bc5c"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = $1 ORDER BY "clubhouse_organizations"."id" ASC LIMIT 1 [["name", "name"]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.9ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-81' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-81"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.894330"], ["updated_at", "2015-07-06 21:25:44.894330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'ade01fc3-db6b-4f78-9521-20e4fbedcbff') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "invitation-37@example.com"], ["organization_id", "ade01fc3-db6b-4f78-9521-20e4fbedcbff"], ["created_at", "2015-07-06 21:25:44.898135"], ["updated_at", "2015-07-06 21:25:44.898135"], ["token", "9VLOXKH0wOm-Ee4-lzfHrXQTrYG0GIyigwK47lTom_4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" ORDER BY "clubhouse_invitations"."id" ASC LIMIT 1 Clubhouse::Organization Load (0.1ms) SELECT "clubhouse_organizations".* FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."id" = $1 LIMIT 1 [["id", "ade01fc3-db6b-4f78-9521-20e4fbedcbff"]] Clubhouse::Invitation Exists (0.4ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" = 'ade01fc3-db6b-4f78-9521-20e4fbedcbff') LIMIT 1 Clubhouse::Invitation Load (0.2ms) SELECT "clubhouse_invitations".* FROM "clubhouse_invitations" Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invitation-37@example.com' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'invalid@email' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Organization Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_organizations" WHERE "clubhouse_organizations"."name" = 'org-82' LIMIT 1 SQL (0.2ms) INSERT INTO "clubhouse_organizations" ("name", "email", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "org-82"], ["email", "email@example.com"], ["created_at", "2015-07-06 21:25:44.917225"], ["updated_at", "2015-07-06 21:25:44.917225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = 'email@example.com' AND "clubhouse_invitations"."organization_id" = '9e064240-d4e2-46b8-9a4a-9a61bc7521ea') LIMIT 1 SQL (0.3ms) INSERT INTO "clubhouse_invitations" ("email", "organization_id", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "email@example.com"], ["organization_id", "9e064240-d4e2-46b8-9a4a-9a61bc7521ea"], ["created_at", "2015-07-06 21:25:44.921192"], ["updated_at", "2015-07-06 21:25:44.921192"], ["token", "r1zzydj39xowtWWKkaD6P1I_c11aaB0uXobABjDwQWw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Clubhouse::Invitation Exists (0.3ms) SELECT 1 AS one FROM "clubhouse_invitations" WHERE ("clubhouse_invitations"."email" = '' AND "clubhouse_invitations"."organization_id" IS NULL) LIMIT 1  (0.1ms) ROLLBACK